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;
|
memberName: string;
|
||||||
text: string;
|
text: string;
|
||||||
messageId?: string;
|
messageId?: string;
|
||||||
|
fileParts?: {
|
||||||
|
type: 'file';
|
||||||
|
mime: 'image/png' | 'image/jpeg' | 'image/webp';
|
||||||
|
url: string;
|
||||||
|
filename: string;
|
||||||
|
}[];
|
||||||
actionMode?: 'do' | 'ask' | 'delegate';
|
actionMode?: 'do' | 'ask' | 'delegate';
|
||||||
messageKind?:
|
messageKind?:
|
||||||
| 'default'
|
| 'default'
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ export interface OpenCodeTeamRuntimeMessageInput {
|
||||||
cwd: string;
|
cwd: string;
|
||||||
text: string;
|
text: string;
|
||||||
messageId?: string;
|
messageId?: string;
|
||||||
|
fileParts?: OpenCodeSendMessageCommandBody['fileParts'];
|
||||||
replyRecipient?: string;
|
replyRecipient?: string;
|
||||||
actionMode?: AgentActionMode;
|
actionMode?: AgentActionMode;
|
||||||
messageKind?: InboxMessageKind;
|
messageKind?: InboxMessageKind;
|
||||||
|
|
@ -327,6 +328,7 @@ export class OpenCodeTeamRuntimeAdapter implements TeamLaunchRuntimeAdapter {
|
||||||
memberName: input.memberName,
|
memberName: input.memberName,
|
||||||
text: buildOpenCodeRuntimeMessageText(input),
|
text: buildOpenCodeRuntimeMessageText(input),
|
||||||
messageId: input.messageId,
|
messageId: input.messageId,
|
||||||
|
fileParts: input.fileParts,
|
||||||
actionMode: input.actionMode,
|
actionMode: input.actionMode,
|
||||||
messageKind: input.messageKind,
|
messageKind: input.messageKind,
|
||||||
taskRefs: input.taskRefs,
|
taskRefs: input.taskRefs,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue