feat(opencode): pass attachment file parts
This commit is contained in:
parent
c20293f4de
commit
b95033b9b7
2 changed files with 8 additions and 0 deletions
|
|
@ -170,6 +170,12 @@ export interface OpenCodeSendMessageCommandBody {
|
|||
memberName: string;
|
||||
text: string;
|
||||
messageId?: string;
|
||||
fileParts?: {
|
||||
type: 'file';
|
||||
mime: 'image/png' | 'image/jpeg' | 'image/webp';
|
||||
url: string;
|
||||
filename: string;
|
||||
}[];
|
||||
actionMode?: 'do' | 'ask' | 'delegate';
|
||||
messageKind?:
|
||||
| 'default'
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ export interface OpenCodeTeamRuntimeMessageInput {
|
|||
cwd: string;
|
||||
text: string;
|
||||
messageId?: string;
|
||||
fileParts?: OpenCodeSendMessageCommandBody['fileParts'];
|
||||
replyRecipient?: string;
|
||||
actionMode?: AgentActionMode;
|
||||
messageKind?: InboxMessageKind;
|
||||
|
|
@ -327,6 +328,7 @@ export class OpenCodeTeamRuntimeAdapter implements TeamLaunchRuntimeAdapter {
|
|||
memberName: input.memberName,
|
||||
text: buildOpenCodeRuntimeMessageText(input),
|
||||
messageId: input.messageId,
|
||||
fileParts: input.fileParts,
|
||||
actionMode: input.actionMode,
|
||||
messageKind: input.messageKind,
|
||||
taskRefs: input.taskRefs,
|
||||
|
|
|
|||
Loading…
Reference in a new issue