feat(opencode): pass attachment file parts

This commit is contained in:
777genius 2026-05-09 01:23:03 +03:00
parent c20293f4de
commit b95033b9b7
2 changed files with 8 additions and 0 deletions

View file

@ -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'

View file

@ -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,