@codex-app-sdk/vue 0.0.0-stage → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +39 -2
- package/dist/audio/apple-speech-transcription.d.ts +12 -0
- package/dist/audio/apple-speech-transcription.d.ts.map +1 -0
- package/dist/audio/browser-audio-recorder.d.ts +21 -0
- package/dist/audio/browser-audio-recorder.d.ts.map +1 -0
- package/dist/chat/ChatAnimatedDiffStat.vue.d.ts +9 -0
- package/dist/chat/ChatAnimatedDiffStat.vue.d.ts.map +1 -0
- package/dist/chat/ChatApprovalCard.vue.d.ts +33 -0
- package/dist/chat/ChatApprovalCard.vue.d.ts.map +1 -0
- package/dist/chat/ChatAttachmentBlock.vue.d.ts +10 -0
- package/dist/chat/ChatAttachmentBlock.vue.d.ts.map +1 -0
- package/dist/chat/ChatCompactionMessage.vue.d.ts +9 -0
- package/dist/chat/ChatCompactionMessage.vue.d.ts.map +1 -0
- package/dist/chat/ChatComposerActionMenu.vue.d.ts +43 -0
- package/dist/chat/ChatComposerActionMenu.vue.d.ts.map +1 -0
- package/dist/chat/ChatComposerActiveModes.vue.d.ts +15 -0
- package/dist/chat/ChatComposerActiveModes.vue.d.ts.map +1 -0
- package/dist/chat/ChatComposerAtMentionMenu.vue.d.ts +38 -0
- package/dist/chat/ChatComposerAtMentionMenu.vue.d.ts.map +1 -0
- package/dist/chat/ChatComposerFileMentionMenu.vue.d.ts +14 -0
- package/dist/chat/ChatComposerFileMentionMenu.vue.d.ts.map +1 -0
- package/dist/chat/ChatComposerPluginMenu.vue.d.ts +13 -0
- package/dist/chat/ChatComposerPluginMenu.vue.d.ts.map +1 -0
- package/dist/chat/ChatComposerShelf.vue.d.ts +38 -0
- package/dist/chat/ChatComposerShelf.vue.d.ts.map +1 -0
- package/dist/chat/ChatComposerSkillMenu.vue.d.ts +15 -0
- package/dist/chat/ChatComposerSkillMenu.vue.d.ts.map +1 -0
- package/dist/chat/ChatComposerSlashMenu.vue.d.ts +16 -0
- package/dist/chat/ChatComposerSlashMenu.vue.d.ts.map +1 -0
- package/dist/chat/ChatComposerVoiceButton.vue.d.ts +14 -0
- package/dist/chat/ChatComposerVoiceButton.vue.d.ts.map +1 -0
- package/dist/chat/ChatComposerVoiceField.vue.d.ts +11 -0
- package/dist/chat/ChatComposerVoiceField.vue.d.ts.map +1 -0
- package/dist/chat/ChatComposerWaveform.vue.d.ts +20 -0
- package/dist/chat/ChatComposerWaveform.vue.d.ts.map +1 -0
- package/dist/chat/ChatConfirmationRequest.vue.d.ts +14 -0
- package/dist/chat/ChatConfirmationRequest.vue.d.ts.map +1 -0
- package/dist/chat/ChatContextUsageIndicator.vue.d.ts +8 -0
- package/dist/chat/ChatContextUsageIndicator.vue.d.ts.map +1 -0
- package/dist/chat/ChatCopyButton.vue.d.ts +10 -0
- package/dist/chat/ChatCopyButton.vue.d.ts.map +1 -0
- package/dist/chat/ChatFoldTransition.vue.d.ts +17 -0
- package/dist/chat/ChatFoldTransition.vue.d.ts.map +1 -0
- package/dist/chat/ChatFollowUps.vue.d.ts +12 -0
- package/dist/chat/ChatFollowUps.vue.d.ts.map +1 -0
- package/dist/chat/ChatGoal.vue.d.ts +14 -0
- package/dist/chat/ChatGoal.vue.d.ts.map +1 -0
- package/dist/chat/ChatIconButton.vue.d.ts +25 -0
- package/dist/chat/ChatIconButton.vue.d.ts.map +1 -0
- package/dist/chat/ChatImageLightbox.vue.d.ts +19 -0
- package/dist/chat/ChatImageLightbox.vue.d.ts.map +1 -0
- package/dist/chat/ChatMediaBlock.vue.d.ts +10 -0
- package/dist/chat/ChatMediaBlock.vue.d.ts.map +1 -0
- package/dist/chat/ChatMentionChip.vue.d.ts +11 -0
- package/dist/chat/ChatMentionChip.vue.d.ts.map +1 -0
- package/dist/chat/ChatMermaidBlock.vue.d.ts +7 -0
- package/dist/chat/ChatMermaidBlock.vue.d.ts.map +1 -0
- package/dist/chat/ChatMessageActions.vue.d.ts +36 -0
- package/dist/chat/ChatMessageActions.vue.d.ts.map +1 -0
- package/dist/chat/ChatMessageBlock.vue.d.ts +96 -0
- package/dist/chat/ChatMessageBlock.vue.d.ts.map +1 -0
- package/dist/chat/ChatMessageEditor.vue.d.ts +16 -0
- package/dist/chat/ChatMessageEditor.vue.d.ts.map +1 -0
- package/dist/chat/ChatModelReasoningSelector.vue.d.ts +36 -0
- package/dist/chat/ChatModelReasoningSelector.vue.d.ts.map +1 -0
- package/dist/chat/ChatQuestionRequest.vue.d.ts +17 -0
- package/dist/chat/ChatQuestionRequest.vue.d.ts.map +1 -0
- package/dist/chat/ChatQueuedPrompt.vue.d.ts +18 -0
- package/dist/chat/ChatQueuedPrompt.vue.d.ts.map +1 -0
- package/dist/chat/ChatQueuedPrompts.vue.d.ts +18 -0
- package/dist/chat/ChatQueuedPrompts.vue.d.ts.map +1 -0
- package/dist/chat/ChatRichTextEditor.vue.d.ts +63 -0
- package/dist/chat/ChatRichTextEditor.vue.d.ts.map +1 -0
- package/dist/chat/ChatToolCall.vue.d.ts +24 -0
- package/dist/chat/ChatToolCall.vue.d.ts.map +1 -0
- package/dist/chat/ChatToolCallTitle.vue.d.ts +24 -0
- package/dist/chat/ChatToolCallTitle.vue.d.ts.map +1 -0
- package/dist/chat/ChatToolConfirmation.vue.d.ts +24 -0
- package/dist/chat/ChatToolConfirmation.vue.d.ts.map +1 -0
- package/dist/chat/ChatToolGroup.vue.d.ts +23 -0
- package/dist/chat/ChatToolGroup.vue.d.ts.map +1 -0
- package/dist/chat/ChatToolIcon.vue.d.ts +10 -0
- package/dist/chat/ChatToolIcon.vue.d.ts.map +1 -0
- package/dist/chat/ChatToolUserInputRequest.vue.d.ts +27 -0
- package/dist/chat/ChatToolUserInputRequest.vue.d.ts.map +1 -0
- package/dist/chat/ChatTurnGitInfo.vue.d.ts +8 -0
- package/dist/chat/ChatTurnGitInfo.vue.d.ts.map +1 -0
- package/dist/chat/ChatUserText.vue.d.ts +37 -0
- package/dist/chat/ChatUserText.vue.d.ts.map +1 -0
- package/dist/chat/ChatVisualizationBlock.vue.d.ts +13 -0
- package/dist/chat/ChatVisualizationBlock.vue.d.ts.map +1 -0
- package/dist/chat/ChatWorkGroup.vue.d.ts +21 -0
- package/dist/chat/ChatWorkGroup.vue.d.ts.map +1 -0
- package/dist/chat/approval-presets.d.ts +10 -0
- package/dist/chat/approval-presets.d.ts.map +1 -0
- package/dist/chat/chat-i18n.d.ts +6 -0
- package/dist/chat/chat-i18n.d.ts.map +1 -0
- package/dist/chat/codex-capabilities.d.ts +3 -0
- package/dist/chat/codex-capabilities.d.ts.map +1 -0
- package/dist/chat/codex-commands.d.ts +3 -0
- package/dist/chat/codex-commands.d.ts.map +1 -0
- package/dist/chat/composer-commands.d.ts +11 -0
- package/dist/chat/composer-commands.d.ts.map +1 -0
- package/dist/chat/composer-mentions-custom.d.ts +25 -0
- package/dist/chat/composer-mentions-custom.d.ts.map +1 -0
- package/dist/chat/composer-mentions.d.ts +9 -0
- package/dist/chat/composer-mentions.d.ts.map +1 -0
- package/dist/chat/composer-plugins.d.ts +7 -0
- package/dist/chat/composer-plugins.d.ts.map +1 -0
- package/dist/chat/composer-prompt-history.d.ts +12 -0
- package/dist/chat/composer-prompt-history.d.ts.map +1 -0
- package/dist/chat/composer-search.d.ts +5 -0
- package/dist/chat/composer-search.d.ts.map +1 -0
- package/dist/chat/composer-skills.d.ts +22 -0
- package/dist/chat/composer-skills.d.ts.map +1 -0
- package/dist/chat/contracts.d.ts +194 -0
- package/dist/chat/contracts.d.ts.map +1 -0
- package/dist/chat/conversation-links.d.ts +9 -0
- package/dist/chat/conversation-links.d.ts.map +1 -0
- package/dist/chat/file-search.d.ts +5 -0
- package/dist/chat/file-search.d.ts.map +1 -0
- package/dist/chat/html-escape.d.ts +3 -0
- package/dist/chat/html-escape.d.ts.map +1 -0
- package/dist/chat/message-actions.d.ts +7 -0
- package/dist/chat/message-actions.d.ts.map +1 -0
- package/dist/chat/message-blocks.d.ts +55 -0
- package/dist/chat/message-blocks.d.ts.map +1 -0
- package/dist/chat/message-image.d.ts +18 -0
- package/dist/chat/message-image.d.ts.map +1 -0
- package/dist/chat/message-markdown.d.ts +13 -0
- package/dist/chat/message-markdown.d.ts.map +1 -0
- package/dist/chat/message-text-selection.d.ts +16 -0
- package/dist/chat/message-text-selection.d.ts.map +1 -0
- package/dist/chat/message-time.d.ts +3 -0
- package/dist/chat/message-time.d.ts.map +1 -0
- package/dist/chat/message-work-state.d.ts +20 -0
- package/dist/chat/message-work-state.d.ts.map +1 -0
- package/dist/chat/portal-theme.d.ts +6 -0
- package/dist/chat/portal-theme.d.ts.map +1 -0
- package/dist/chat/queued-prompts.d.ts +6 -0
- package/dist/chat/queued-prompts.d.ts.map +1 -0
- package/dist/chat/renderer-message-adapter.d.ts +7 -0
- package/dist/chat/renderer-message-adapter.d.ts.map +1 -0
- package/dist/chat/syntax-highlighting.d.ts +3 -0
- package/dist/chat/syntax-highlighting.d.ts.map +1 -0
- package/dist/chat/tool-call-details.d.ts +6 -0
- package/dist/chat/tool-call-details.d.ts.map +1 -0
- package/dist/chat/tool-presentation.d.ts +20 -0
- package/dist/chat/tool-presentation.d.ts.map +1 -0
- package/dist/chat/tool-status.d.ts +35 -0
- package/dist/chat/tool-status.d.ts.map +1 -0
- package/dist/chat/tool-visibility.d.ts +6 -0
- package/dist/chat/tool-visibility.d.ts.map +1 -0
- package/dist/chat/types.d.ts +95 -0
- package/dist/chat/types.d.ts.map +1 -0
- package/dist/chat/use-chat-composer-suggestions.d.ts +63 -0
- package/dist/chat/use-chat-composer-suggestions.d.ts.map +1 -0
- package/dist/chat/use-chat-composer-voice.d.ts +50 -0
- package/dist/chat/use-chat-composer-voice.d.ts.map +1 -0
- package/dist/chat/use-conversation-escape-interrupt.d.ts +13 -0
- package/dist/chat/use-conversation-escape-interrupt.d.ts.map +1 -0
- package/dist/chat/user-text.d.ts +32 -0
- package/dist/chat/user-text.d.ts.map +1 -0
- package/dist/chat/visualization.d.ts +6 -0
- package/dist/chat/visualization.d.ts.map +1 -0
- package/dist/codex-theme.d.ts +12 -0
- package/dist/codex-theme.d.ts.map +1 -0
- package/dist/components/CodexApprovalPrompt.vue.d.ts +15 -0
- package/dist/components/CodexApprovalPrompt.vue.d.ts.map +1 -0
- package/dist/components/CodexComposer.vue.d.ts +110 -0
- package/dist/components/CodexComposer.vue.d.ts.map +1 -0
- package/dist/components/CodexComposerMenu.vue.d.ts +43 -0
- package/dist/components/CodexComposerMenu.vue.d.ts.map +1 -0
- package/dist/components/CodexComposerMenuList.vue.d.ts +29 -0
- package/dist/components/CodexComposerMenuList.vue.d.ts.map +1 -0
- package/dist/components/CodexComposerSendButton.vue.d.ts +25 -0
- package/dist/components/CodexComposerSendButton.vue.d.ts.map +1 -0
- package/dist/components/CodexConversationHistoryLoader.vue.d.ts +4 -0
- package/dist/components/CodexConversationHistoryLoader.vue.d.ts.map +1 -0
- package/dist/components/CodexConversationPane.vue.d.ts +254 -0
- package/dist/components/CodexConversationPane.vue.d.ts.map +1 -0
- package/dist/components/CodexConversationSidebar.vue.d.ts +25 -0
- package/dist/components/CodexConversationSidebar.vue.d.ts.map +1 -0
- package/dist/components/CodexMessage.vue.d.ts +141 -0
- package/dist/components/CodexMessage.vue.d.ts.map +1 -0
- package/dist/components/CodexMessageList.vue.d.ts +178 -0
- package/dist/components/CodexMessageList.vue.d.ts.map +1 -0
- package/dist/components/CodexMessageTurn.vue.d.ts +28 -0
- package/dist/components/CodexMessageTurn.vue.d.ts.map +1 -0
- package/dist/components/CodexScrollToBottom.vue.d.ts +13 -0
- package/dist/components/CodexScrollToBottom.vue.d.ts.map +1 -0
- package/dist/components/CodexWorkbenchLayout.vue.d.ts +25 -0
- package/dist/components/CodexWorkbenchLayout.vue.d.ts.map +1 -0
- package/dist/components/composer-menu-items.d.ts +29 -0
- package/dist/components/composer-menu-items.d.ts.map +1 -0
- package/dist/composer-menu.d.ts +49 -0
- package/dist/composer-menu.d.ts.map +1 -0
- package/dist/composer-state.d.ts +8 -0
- package/dist/composer-state.d.ts.map +1 -0
- package/dist/conversation-pane-controller.d.ts +149 -0
- package/dist/conversation-pane-controller.d.ts.map +1 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/icons/app-icons.d.ts +2 -0
- package/dist/icons/app-icons.d.ts.map +1 -0
- package/dist/index.d.ts +99 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8668 -0
- package/dist/index.js.map +1 -0
- package/dist/native-capabilities.d.ts +11 -0
- package/dist/native-capabilities.d.ts.map +1 -0
- package/dist/styles.css +4 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/use-codex-live-chat.d.ts +34 -0
- package/dist/use-codex-live-chat.d.ts.map +1 -0
- package/dist/use-codex-surface.d.ts +3639 -0
- package/dist/use-codex-surface.d.ts.map +1 -0
- package/package.json +52 -4
|
@@ -0,0 +1,3639 @@
|
|
|
1
|
+
import type { CodexConversationHistory, CodexConversationPromptHistory, CodexSurfaceApprovalDecision, CodexSurfaceApprovalScope, CodexSurfaceClientRequestResponse, CodexSurfaceEvent, CodexSurfaceRendererApi, CodexSurfaceSnapshot, CreateCodexRendererConversationOptions, ListCodexConversationsOptions, ListCodexModelsOptions, CodexRendererSendMessageOptions, StartCodexReviewOptions, UpdateCodexConversationSettings } from '@codex-app-sdk/core/surface';
|
|
2
|
+
export declare function useCodexSurface(api: CodexSurfaceRendererApi): {
|
|
3
|
+
state: {
|
|
4
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceStatus;
|
|
5
|
+
readonly authentication: {
|
|
6
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceCatalogStatus;
|
|
7
|
+
readonly account: {
|
|
8
|
+
readonly type: "apiKey";
|
|
9
|
+
} | {
|
|
10
|
+
readonly type: "chatgpt";
|
|
11
|
+
readonly email: string | null;
|
|
12
|
+
readonly planType: string;
|
|
13
|
+
} | {
|
|
14
|
+
readonly type: "amazonBedrock";
|
|
15
|
+
readonly credentialSource: "codexManaged" | "awsManaged";
|
|
16
|
+
} | null;
|
|
17
|
+
readonly requiresOpenaiAuth: boolean | null;
|
|
18
|
+
readonly error: string | null;
|
|
19
|
+
readonly login: {
|
|
20
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceLoginStatus;
|
|
21
|
+
readonly loginId: string | null;
|
|
22
|
+
readonly authUrl: string | null;
|
|
23
|
+
readonly error: string | null;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
readonly conversations: readonly {
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly sessionId?: string | undefined;
|
|
29
|
+
readonly parentConversationId?: string | undefined;
|
|
30
|
+
readonly agentNickname?: string | undefined;
|
|
31
|
+
readonly agentRole?: string | undefined;
|
|
32
|
+
readonly title: string;
|
|
33
|
+
readonly preview: string;
|
|
34
|
+
readonly cwd: string;
|
|
35
|
+
readonly status: "idle" | "active" | "error";
|
|
36
|
+
readonly turnCount: number;
|
|
37
|
+
readonly createdAt: string;
|
|
38
|
+
readonly updatedAt: string;
|
|
39
|
+
}[];
|
|
40
|
+
readonly activeConversationId: string | null;
|
|
41
|
+
readonly activeTurnId: string | null;
|
|
42
|
+
readonly turns: readonly {
|
|
43
|
+
readonly id: string;
|
|
44
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceTurnStatus;
|
|
45
|
+
readonly error: {
|
|
46
|
+
readonly message: string;
|
|
47
|
+
readonly additionalDetails: string | null;
|
|
48
|
+
readonly codexErrorInfo: any;
|
|
49
|
+
} | null;
|
|
50
|
+
readonly willRetry: boolean;
|
|
51
|
+
readonly startedAt: string | null;
|
|
52
|
+
readonly completedAt: string | null;
|
|
53
|
+
readonly durationMs: number | null;
|
|
54
|
+
}[];
|
|
55
|
+
readonly messages: readonly {
|
|
56
|
+
readonly id: string;
|
|
57
|
+
readonly kind?: "compaction" | "steer" | undefined;
|
|
58
|
+
readonly role: "user" | "assistant" | "system";
|
|
59
|
+
readonly status: "complete" | "streaming" | "error";
|
|
60
|
+
readonly parts: readonly ({
|
|
61
|
+
readonly type: "text";
|
|
62
|
+
readonly text: string;
|
|
63
|
+
readonly itemId?: string | undefined;
|
|
64
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
65
|
+
} | {
|
|
66
|
+
readonly type: "reasoning";
|
|
67
|
+
readonly summary: string;
|
|
68
|
+
readonly itemId: string;
|
|
69
|
+
readonly summaryIndex: number;
|
|
70
|
+
} | {
|
|
71
|
+
readonly type: "status";
|
|
72
|
+
readonly text: string;
|
|
73
|
+
} | {
|
|
74
|
+
readonly type: "question";
|
|
75
|
+
readonly historical?: boolean | undefined;
|
|
76
|
+
readonly request: {
|
|
77
|
+
readonly id: string;
|
|
78
|
+
readonly kind: "ask_user";
|
|
79
|
+
readonly conversationId: string;
|
|
80
|
+
readonly turnId: string;
|
|
81
|
+
readonly itemId: string;
|
|
82
|
+
readonly payload: {
|
|
83
|
+
readonly request: {
|
|
84
|
+
readonly itemId: string;
|
|
85
|
+
readonly delivery: "tool" | "async";
|
|
86
|
+
readonly blocking: boolean;
|
|
87
|
+
readonly questions: readonly {
|
|
88
|
+
readonly id: string;
|
|
89
|
+
readonly header: string;
|
|
90
|
+
readonly question: string;
|
|
91
|
+
readonly isOther: boolean;
|
|
92
|
+
readonly isSecret: boolean;
|
|
93
|
+
readonly options: readonly {
|
|
94
|
+
readonly label: string;
|
|
95
|
+
readonly description: string;
|
|
96
|
+
}[] | null;
|
|
97
|
+
}[];
|
|
98
|
+
readonly autoResolutionMs?: number | undefined;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
} | {
|
|
103
|
+
readonly type: "attachment";
|
|
104
|
+
readonly attachment: {
|
|
105
|
+
readonly kind: "file" | "image";
|
|
106
|
+
readonly name: string;
|
|
107
|
+
readonly path?: string | undefined;
|
|
108
|
+
readonly url?: string | undefined;
|
|
109
|
+
readonly mimeType?: string | undefined;
|
|
110
|
+
};
|
|
111
|
+
} | {
|
|
112
|
+
readonly type: "media";
|
|
113
|
+
readonly media: {
|
|
114
|
+
readonly url: string;
|
|
115
|
+
readonly alt?: string | undefined;
|
|
116
|
+
readonly mimeType?: string | undefined;
|
|
117
|
+
readonly prompt?: string | undefined;
|
|
118
|
+
readonly title?: string | undefined;
|
|
119
|
+
};
|
|
120
|
+
readonly itemId?: string | undefined;
|
|
121
|
+
} | {
|
|
122
|
+
readonly type: "tool";
|
|
123
|
+
readonly id: string;
|
|
124
|
+
readonly title: string;
|
|
125
|
+
readonly kind?: string | undefined;
|
|
126
|
+
readonly status: "running" | "completed" | "failed";
|
|
127
|
+
readonly statusText?: string | undefined;
|
|
128
|
+
readonly body?: string | undefined;
|
|
129
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
130
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
131
|
+
readonly metadata?: {
|
|
132
|
+
readonly [x: string]: Readonly<unknown>;
|
|
133
|
+
} | undefined;
|
|
134
|
+
})[];
|
|
135
|
+
readonly createdAt?: string | undefined;
|
|
136
|
+
readonly turnId?: string | undefined;
|
|
137
|
+
readonly metadata?: {
|
|
138
|
+
readonly [x: string]: Readonly<unknown>;
|
|
139
|
+
} | undefined;
|
|
140
|
+
}[];
|
|
141
|
+
readonly clientRequests: readonly ({
|
|
142
|
+
readonly id: string;
|
|
143
|
+
readonly kind: "confirm_tool";
|
|
144
|
+
readonly conversationId: string;
|
|
145
|
+
readonly turnId: string | null;
|
|
146
|
+
readonly itemId: string;
|
|
147
|
+
readonly payload: {
|
|
148
|
+
readonly confirmation: {
|
|
149
|
+
readonly argumentsPreview: string;
|
|
150
|
+
readonly integrationId: string;
|
|
151
|
+
readonly integrationName: string;
|
|
152
|
+
readonly summary: string;
|
|
153
|
+
readonly toolName: string;
|
|
154
|
+
readonly allowConversation?: boolean | undefined;
|
|
155
|
+
readonly allowAlways?: boolean | undefined;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
} | {
|
|
159
|
+
readonly id: string;
|
|
160
|
+
readonly kind: "ask_user";
|
|
161
|
+
readonly conversationId: string;
|
|
162
|
+
readonly turnId: string;
|
|
163
|
+
readonly itemId: string;
|
|
164
|
+
readonly payload: {
|
|
165
|
+
readonly request: {
|
|
166
|
+
readonly itemId: string;
|
|
167
|
+
readonly delivery: "tool" | "async";
|
|
168
|
+
readonly blocking: boolean;
|
|
169
|
+
readonly questions: readonly {
|
|
170
|
+
readonly id: string;
|
|
171
|
+
readonly header: string;
|
|
172
|
+
readonly question: string;
|
|
173
|
+
readonly isOther: boolean;
|
|
174
|
+
readonly isSecret: boolean;
|
|
175
|
+
readonly options: readonly {
|
|
176
|
+
readonly label: string;
|
|
177
|
+
readonly description: string;
|
|
178
|
+
}[] | null;
|
|
179
|
+
}[];
|
|
180
|
+
readonly autoResolutionMs?: number | undefined;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
})[];
|
|
184
|
+
readonly answeredClientRequestIds: readonly string[];
|
|
185
|
+
readonly approvals: readonly {
|
|
186
|
+
readonly id: string;
|
|
187
|
+
readonly kind: "command" | "file-change" | "permissions";
|
|
188
|
+
readonly conversationId: string;
|
|
189
|
+
readonly turnId?: string | undefined;
|
|
190
|
+
readonly itemId: string;
|
|
191
|
+
readonly title: string;
|
|
192
|
+
readonly description?: string | undefined;
|
|
193
|
+
readonly command?: string | undefined;
|
|
194
|
+
readonly cwd?: string | undefined;
|
|
195
|
+
readonly requestedPermissions?: readonly ({
|
|
196
|
+
readonly kind: "filesystem";
|
|
197
|
+
readonly access: "read" | "write" | "deny";
|
|
198
|
+
readonly path: string;
|
|
199
|
+
} | {
|
|
200
|
+
readonly kind: "network";
|
|
201
|
+
readonly enabled: boolean;
|
|
202
|
+
readonly host?: string | undefined;
|
|
203
|
+
readonly protocol?: string | undefined;
|
|
204
|
+
})[] | undefined;
|
|
205
|
+
readonly allowedScopes?: readonly CodexSurfaceApprovalScope[] | undefined;
|
|
206
|
+
readonly canDeny?: boolean | undefined;
|
|
207
|
+
}[];
|
|
208
|
+
readonly models: readonly {
|
|
209
|
+
readonly id: string;
|
|
210
|
+
readonly model: string;
|
|
211
|
+
readonly displayName: string;
|
|
212
|
+
readonly description?: string | undefined;
|
|
213
|
+
readonly hidden?: boolean | undefined;
|
|
214
|
+
readonly supportedReasoningEfforts?: readonly {
|
|
215
|
+
readonly reasoningEffort: string;
|
|
216
|
+
readonly description: string;
|
|
217
|
+
}[] | undefined;
|
|
218
|
+
readonly defaultReasoningEffort?: string | null | undefined;
|
|
219
|
+
readonly serviceTiers?: readonly {
|
|
220
|
+
readonly id: string;
|
|
221
|
+
readonly name: string;
|
|
222
|
+
readonly description: string;
|
|
223
|
+
}[] | undefined;
|
|
224
|
+
readonly defaultServiceTier?: string | null | undefined;
|
|
225
|
+
readonly isDefault?: boolean | undefined;
|
|
226
|
+
readonly providerMetadata?: {
|
|
227
|
+
readonly [x: string]: Readonly<unknown>;
|
|
228
|
+
} | undefined;
|
|
229
|
+
}[];
|
|
230
|
+
readonly modelCatalogStatus: import("@codex-app-sdk/core/surface").CodexSurfaceCatalogStatus;
|
|
231
|
+
readonly skills: readonly {
|
|
232
|
+
readonly name: string;
|
|
233
|
+
readonly description?: string | undefined;
|
|
234
|
+
readonly shortDescription?: string | undefined;
|
|
235
|
+
readonly displayName?: string | undefined;
|
|
236
|
+
readonly iconSmall?: string | undefined;
|
|
237
|
+
readonly iconLarge?: string | undefined;
|
|
238
|
+
readonly brandColor?: string | undefined;
|
|
239
|
+
readonly defaultPrompt?: string | undefined;
|
|
240
|
+
readonly path: string;
|
|
241
|
+
readonly scope?: string | undefined;
|
|
242
|
+
readonly enabled: boolean;
|
|
243
|
+
}[];
|
|
244
|
+
readonly skillCatalogStatus: import("@codex-app-sdk/core/surface").CodexSurfaceCatalogStatus;
|
|
245
|
+
readonly plugins: readonly {
|
|
246
|
+
readonly id: string;
|
|
247
|
+
readonly name: string;
|
|
248
|
+
readonly displayName: string;
|
|
249
|
+
readonly shortDescription?: string | undefined;
|
|
250
|
+
readonly longDescription?: string | undefined;
|
|
251
|
+
readonly brandColor?: string | undefined;
|
|
252
|
+
readonly iconUrl?: string | undefined;
|
|
253
|
+
readonly iconUrlDark?: string | undefined;
|
|
254
|
+
readonly enabled: boolean;
|
|
255
|
+
}[];
|
|
256
|
+
readonly pluginCatalogStatus: import("@codex-app-sdk/core/surface").CodexSurfaceCatalogStatus;
|
|
257
|
+
readonly permissionProfiles: readonly {
|
|
258
|
+
readonly id: string;
|
|
259
|
+
readonly description: string | null;
|
|
260
|
+
readonly allowed: boolean;
|
|
261
|
+
}[];
|
|
262
|
+
readonly approvalPresets: readonly import("@codex-app-sdk/core/surface").CodexSurfaceApprovalPreset[];
|
|
263
|
+
readonly approvalPreset: import("@codex-app-sdk/core/surface").CodexSurfaceApprovalPreset | null;
|
|
264
|
+
readonly selectedModelId: string | null;
|
|
265
|
+
readonly selectedReasoningEffort: string | null;
|
|
266
|
+
readonly selectedServiceTier?: string | null | undefined;
|
|
267
|
+
readonly planMode: boolean;
|
|
268
|
+
readonly executionPlan?: {
|
|
269
|
+
readonly turnId: string;
|
|
270
|
+
readonly explanation: string | null;
|
|
271
|
+
readonly steps: readonly {
|
|
272
|
+
readonly step: string;
|
|
273
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfacePlanStepStatus;
|
|
274
|
+
}[];
|
|
275
|
+
readonly markdown: string;
|
|
276
|
+
readonly updatedAt: string;
|
|
277
|
+
} | null | undefined;
|
|
278
|
+
readonly contextUsage: {
|
|
279
|
+
readonly totalTokens: number;
|
|
280
|
+
readonly inputTokens: number;
|
|
281
|
+
readonly cachedInputTokens: number;
|
|
282
|
+
readonly outputTokens: number;
|
|
283
|
+
readonly reasoningOutputTokens: number;
|
|
284
|
+
readonly lastTotalTokens: number;
|
|
285
|
+
readonly modelContextWindow: number | null;
|
|
286
|
+
readonly usedPercent: number | null;
|
|
287
|
+
} | null;
|
|
288
|
+
readonly goal: {
|
|
289
|
+
readonly threadId: string;
|
|
290
|
+
readonly objective: string;
|
|
291
|
+
readonly status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
292
|
+
readonly tokenBudget: number | null;
|
|
293
|
+
readonly tokensUsed: number;
|
|
294
|
+
readonly timeUsedSeconds: number;
|
|
295
|
+
readonly createdAt: number;
|
|
296
|
+
readonly updatedAt: number;
|
|
297
|
+
} | null;
|
|
298
|
+
readonly turnGitDiff: {
|
|
299
|
+
readonly turnId: string;
|
|
300
|
+
readonly addedLines: number;
|
|
301
|
+
readonly removedLines: number;
|
|
302
|
+
readonly diff?: string | undefined;
|
|
303
|
+
readonly updatedAt: string;
|
|
304
|
+
} | null;
|
|
305
|
+
readonly threadStatus: {
|
|
306
|
+
readonly type: "notLoaded";
|
|
307
|
+
} | {
|
|
308
|
+
readonly type: "idle";
|
|
309
|
+
} | {
|
|
310
|
+
readonly type: "systemError";
|
|
311
|
+
} | {
|
|
312
|
+
readonly type: "active";
|
|
313
|
+
readonly activeFlags: readonly ("waitingOnApproval" | "waitingOnUserInput")[];
|
|
314
|
+
} | null;
|
|
315
|
+
readonly rateLimits: {
|
|
316
|
+
readonly rateLimits: {
|
|
317
|
+
readonly limitId: string | null;
|
|
318
|
+
readonly limitName: string | null;
|
|
319
|
+
readonly primary: {
|
|
320
|
+
readonly usedPercent: number;
|
|
321
|
+
readonly windowDurationMins: number | null;
|
|
322
|
+
readonly resetsAt: number | null;
|
|
323
|
+
} | null;
|
|
324
|
+
readonly secondary: {
|
|
325
|
+
readonly usedPercent: number;
|
|
326
|
+
readonly windowDurationMins: number | null;
|
|
327
|
+
readonly resetsAt: number | null;
|
|
328
|
+
} | null;
|
|
329
|
+
readonly credits: {
|
|
330
|
+
readonly hasCredits: boolean;
|
|
331
|
+
readonly unlimited: boolean;
|
|
332
|
+
readonly balance: string | null;
|
|
333
|
+
} | null;
|
|
334
|
+
readonly individualLimit: {
|
|
335
|
+
readonly limit: string;
|
|
336
|
+
readonly used: string;
|
|
337
|
+
readonly remainingPercent: number;
|
|
338
|
+
readonly resetsAt: number;
|
|
339
|
+
} | null;
|
|
340
|
+
readonly planType: string | null;
|
|
341
|
+
readonly rateLimitReachedType: string | null;
|
|
342
|
+
};
|
|
343
|
+
readonly rateLimitsByLimitId: {
|
|
344
|
+
readonly [x: string]: {
|
|
345
|
+
readonly limitId: string | null;
|
|
346
|
+
readonly limitName: string | null;
|
|
347
|
+
readonly primary: {
|
|
348
|
+
readonly usedPercent: number;
|
|
349
|
+
readonly windowDurationMins: number | null;
|
|
350
|
+
readonly resetsAt: number | null;
|
|
351
|
+
} | null;
|
|
352
|
+
readonly secondary: {
|
|
353
|
+
readonly usedPercent: number;
|
|
354
|
+
readonly windowDurationMins: number | null;
|
|
355
|
+
readonly resetsAt: number | null;
|
|
356
|
+
} | null;
|
|
357
|
+
readonly credits: {
|
|
358
|
+
readonly hasCredits: boolean;
|
|
359
|
+
readonly unlimited: boolean;
|
|
360
|
+
readonly balance: string | null;
|
|
361
|
+
} | null;
|
|
362
|
+
readonly individualLimit: {
|
|
363
|
+
readonly limit: string;
|
|
364
|
+
readonly used: string;
|
|
365
|
+
readonly remainingPercent: number;
|
|
366
|
+
readonly resetsAt: number;
|
|
367
|
+
} | null;
|
|
368
|
+
readonly planType: string | null;
|
|
369
|
+
readonly rateLimitReachedType: string | null;
|
|
370
|
+
};
|
|
371
|
+
} | null;
|
|
372
|
+
readonly rateLimitResetCredits: {
|
|
373
|
+
readonly availableCount: string;
|
|
374
|
+
readonly credits: readonly {
|
|
375
|
+
readonly id: string;
|
|
376
|
+
readonly resetType: string;
|
|
377
|
+
readonly status: string;
|
|
378
|
+
readonly grantedAt: number;
|
|
379
|
+
readonly expiresAt: number | null;
|
|
380
|
+
readonly title: string | null;
|
|
381
|
+
readonly description: string | null;
|
|
382
|
+
}[] | null;
|
|
383
|
+
} | null;
|
|
384
|
+
} | null;
|
|
385
|
+
readonly queuedPrompts: readonly {
|
|
386
|
+
readonly id: string;
|
|
387
|
+
readonly text: string;
|
|
388
|
+
readonly options?: {
|
|
389
|
+
readonly attachments?: readonly ({
|
|
390
|
+
readonly type: "image";
|
|
391
|
+
readonly path: string;
|
|
392
|
+
readonly detail?: "auto" | "low" | "high" | "original" | undefined;
|
|
393
|
+
readonly name?: string | undefined;
|
|
394
|
+
readonly mimeType?: string | undefined;
|
|
395
|
+
readonly previewUrl?: string | undefined;
|
|
396
|
+
} | {
|
|
397
|
+
readonly type: "file";
|
|
398
|
+
readonly path: string;
|
|
399
|
+
readonly name?: string | undefined;
|
|
400
|
+
readonly mimeType?: string | undefined;
|
|
401
|
+
})[] | undefined;
|
|
402
|
+
readonly inputMethod?: "typed" | "dictated" | undefined;
|
|
403
|
+
readonly model?: string | undefined;
|
|
404
|
+
readonly reasoningEffort?: string | undefined;
|
|
405
|
+
readonly serviceTier?: string | null | undefined;
|
|
406
|
+
readonly planMode?: boolean | undefined;
|
|
407
|
+
readonly skills?: readonly {
|
|
408
|
+
readonly name: string;
|
|
409
|
+
readonly path: string;
|
|
410
|
+
}[] | undefined;
|
|
411
|
+
readonly outputSchema?: any;
|
|
412
|
+
} | undefined;
|
|
413
|
+
}[];
|
|
414
|
+
readonly busy: boolean;
|
|
415
|
+
readonly historyLoading: boolean;
|
|
416
|
+
readonly historyState?: {
|
|
417
|
+
readonly loadingStrategy: import("@codex-app-sdk/core/surface").CodexConversationLoadingStrategy;
|
|
418
|
+
readonly hasOlder: boolean;
|
|
419
|
+
readonly loadingOlder: boolean;
|
|
420
|
+
readonly fullyLoaded: boolean;
|
|
421
|
+
} | undefined;
|
|
422
|
+
readonly error: string | null;
|
|
423
|
+
};
|
|
424
|
+
lastEvent: Readonly<import("vue").Ref<{
|
|
425
|
+
readonly seq: number;
|
|
426
|
+
readonly occurredAt: string;
|
|
427
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
428
|
+
readonly type: "surface.statusChanged";
|
|
429
|
+
readonly payload: {
|
|
430
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceStatus;
|
|
431
|
+
readonly error: string | null;
|
|
432
|
+
};
|
|
433
|
+
} | {
|
|
434
|
+
readonly seq: number;
|
|
435
|
+
readonly occurredAt: string;
|
|
436
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
437
|
+
readonly type: "authentication.changed";
|
|
438
|
+
readonly payload: {
|
|
439
|
+
readonly authentication: {
|
|
440
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceCatalogStatus;
|
|
441
|
+
readonly account: {
|
|
442
|
+
readonly type: "apiKey";
|
|
443
|
+
} | {
|
|
444
|
+
readonly type: "chatgpt";
|
|
445
|
+
readonly email: string | null;
|
|
446
|
+
readonly planType: string;
|
|
447
|
+
} | {
|
|
448
|
+
readonly type: "amazonBedrock";
|
|
449
|
+
readonly credentialSource: "codexManaged" | "awsManaged";
|
|
450
|
+
} | null;
|
|
451
|
+
readonly requiresOpenaiAuth: boolean | null;
|
|
452
|
+
readonly error: string | null;
|
|
453
|
+
readonly login: {
|
|
454
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceLoginStatus;
|
|
455
|
+
readonly loginId: string | null;
|
|
456
|
+
readonly authUrl: string | null;
|
|
457
|
+
readonly error: string | null;
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
} | {
|
|
462
|
+
readonly seq: number;
|
|
463
|
+
readonly occurredAt: string;
|
|
464
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
465
|
+
readonly type: "catalog.modelsChanged";
|
|
466
|
+
readonly payload: {
|
|
467
|
+
readonly models: readonly {
|
|
468
|
+
readonly id: string;
|
|
469
|
+
readonly model: string;
|
|
470
|
+
readonly displayName: string;
|
|
471
|
+
readonly description?: string | undefined;
|
|
472
|
+
readonly hidden?: boolean | undefined;
|
|
473
|
+
readonly supportedReasoningEfforts?: readonly {
|
|
474
|
+
readonly reasoningEffort: string;
|
|
475
|
+
readonly description: string;
|
|
476
|
+
}[] | undefined;
|
|
477
|
+
readonly defaultReasoningEffort?: string | null | undefined;
|
|
478
|
+
readonly serviceTiers?: readonly {
|
|
479
|
+
readonly id: string;
|
|
480
|
+
readonly name: string;
|
|
481
|
+
readonly description: string;
|
|
482
|
+
}[] | undefined;
|
|
483
|
+
readonly defaultServiceTier?: string | null | undefined;
|
|
484
|
+
readonly isDefault?: boolean | undefined;
|
|
485
|
+
readonly providerMetadata?: {
|
|
486
|
+
readonly [x: string]: Readonly<unknown>;
|
|
487
|
+
} | undefined;
|
|
488
|
+
}[];
|
|
489
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceCatalogStatus;
|
|
490
|
+
};
|
|
491
|
+
} | {
|
|
492
|
+
readonly seq: number;
|
|
493
|
+
readonly occurredAt: string;
|
|
494
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
495
|
+
readonly type: "catalog.skillsChanged";
|
|
496
|
+
readonly payload: {
|
|
497
|
+
readonly cwd: string | null;
|
|
498
|
+
readonly skills: readonly {
|
|
499
|
+
readonly name: string;
|
|
500
|
+
readonly description?: string | undefined;
|
|
501
|
+
readonly shortDescription?: string | undefined;
|
|
502
|
+
readonly displayName?: string | undefined;
|
|
503
|
+
readonly iconSmall?: string | undefined;
|
|
504
|
+
readonly iconLarge?: string | undefined;
|
|
505
|
+
readonly brandColor?: string | undefined;
|
|
506
|
+
readonly defaultPrompt?: string | undefined;
|
|
507
|
+
readonly path: string;
|
|
508
|
+
readonly scope?: string | undefined;
|
|
509
|
+
readonly enabled: boolean;
|
|
510
|
+
}[];
|
|
511
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceCatalogStatus;
|
|
512
|
+
};
|
|
513
|
+
} | {
|
|
514
|
+
readonly seq: number;
|
|
515
|
+
readonly occurredAt: string;
|
|
516
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
517
|
+
readonly type: "catalog.pluginsChanged";
|
|
518
|
+
readonly payload: {
|
|
519
|
+
readonly plugins: readonly {
|
|
520
|
+
readonly id: string;
|
|
521
|
+
readonly name: string;
|
|
522
|
+
readonly displayName: string;
|
|
523
|
+
readonly shortDescription?: string | undefined;
|
|
524
|
+
readonly longDescription?: string | undefined;
|
|
525
|
+
readonly brandColor?: string | undefined;
|
|
526
|
+
readonly iconUrl?: string | undefined;
|
|
527
|
+
readonly iconUrlDark?: string | undefined;
|
|
528
|
+
readonly enabled: boolean;
|
|
529
|
+
}[];
|
|
530
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceCatalogStatus;
|
|
531
|
+
};
|
|
532
|
+
} | {
|
|
533
|
+
readonly seq: number;
|
|
534
|
+
readonly occurredAt: string;
|
|
535
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
536
|
+
readonly type: "catalog.permissionsChanged";
|
|
537
|
+
readonly payload: {
|
|
538
|
+
readonly cwd: string | null;
|
|
539
|
+
readonly permissionProfiles: readonly {
|
|
540
|
+
readonly id: string;
|
|
541
|
+
readonly description: string | null;
|
|
542
|
+
readonly allowed: boolean;
|
|
543
|
+
}[];
|
|
544
|
+
readonly approvalPresets: readonly import("@codex-app-sdk/core/surface").CodexSurfaceApprovalPreset[];
|
|
545
|
+
};
|
|
546
|
+
} | {
|
|
547
|
+
readonly seq: number;
|
|
548
|
+
readonly occurredAt: string;
|
|
549
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
550
|
+
readonly type: "rateLimits.changed";
|
|
551
|
+
readonly payload: {
|
|
552
|
+
readonly rateLimits: {
|
|
553
|
+
readonly rateLimits: {
|
|
554
|
+
readonly limitId: string | null;
|
|
555
|
+
readonly limitName: string | null;
|
|
556
|
+
readonly primary: {
|
|
557
|
+
readonly usedPercent: number;
|
|
558
|
+
readonly windowDurationMins: number | null;
|
|
559
|
+
readonly resetsAt: number | null;
|
|
560
|
+
} | null;
|
|
561
|
+
readonly secondary: {
|
|
562
|
+
readonly usedPercent: number;
|
|
563
|
+
readonly windowDurationMins: number | null;
|
|
564
|
+
readonly resetsAt: number | null;
|
|
565
|
+
} | null;
|
|
566
|
+
readonly credits: {
|
|
567
|
+
readonly hasCredits: boolean;
|
|
568
|
+
readonly unlimited: boolean;
|
|
569
|
+
readonly balance: string | null;
|
|
570
|
+
} | null;
|
|
571
|
+
readonly individualLimit: {
|
|
572
|
+
readonly limit: string;
|
|
573
|
+
readonly used: string;
|
|
574
|
+
readonly remainingPercent: number;
|
|
575
|
+
readonly resetsAt: number;
|
|
576
|
+
} | null;
|
|
577
|
+
readonly planType: string | null;
|
|
578
|
+
readonly rateLimitReachedType: string | null;
|
|
579
|
+
};
|
|
580
|
+
readonly rateLimitsByLimitId: {
|
|
581
|
+
readonly [x: string]: {
|
|
582
|
+
readonly limitId: string | null;
|
|
583
|
+
readonly limitName: string | null;
|
|
584
|
+
readonly primary: {
|
|
585
|
+
readonly usedPercent: number;
|
|
586
|
+
readonly windowDurationMins: number | null;
|
|
587
|
+
readonly resetsAt: number | null;
|
|
588
|
+
} | null;
|
|
589
|
+
readonly secondary: {
|
|
590
|
+
readonly usedPercent: number;
|
|
591
|
+
readonly windowDurationMins: number | null;
|
|
592
|
+
readonly resetsAt: number | null;
|
|
593
|
+
} | null;
|
|
594
|
+
readonly credits: {
|
|
595
|
+
readonly hasCredits: boolean;
|
|
596
|
+
readonly unlimited: boolean;
|
|
597
|
+
readonly balance: string | null;
|
|
598
|
+
} | null;
|
|
599
|
+
readonly individualLimit: {
|
|
600
|
+
readonly limit: string;
|
|
601
|
+
readonly used: string;
|
|
602
|
+
readonly remainingPercent: number;
|
|
603
|
+
readonly resetsAt: number;
|
|
604
|
+
} | null;
|
|
605
|
+
readonly planType: string | null;
|
|
606
|
+
readonly rateLimitReachedType: string | null;
|
|
607
|
+
};
|
|
608
|
+
} | null;
|
|
609
|
+
readonly rateLimitResetCredits: {
|
|
610
|
+
readonly availableCount: string;
|
|
611
|
+
readonly credits: readonly {
|
|
612
|
+
readonly id: string;
|
|
613
|
+
readonly resetType: string;
|
|
614
|
+
readonly status: string;
|
|
615
|
+
readonly grantedAt: number;
|
|
616
|
+
readonly expiresAt: number | null;
|
|
617
|
+
readonly title: string | null;
|
|
618
|
+
readonly description: string | null;
|
|
619
|
+
}[] | null;
|
|
620
|
+
} | null;
|
|
621
|
+
} | null;
|
|
622
|
+
};
|
|
623
|
+
} | {
|
|
624
|
+
readonly seq: number;
|
|
625
|
+
readonly occurredAt: string;
|
|
626
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
627
|
+
readonly type: "remoteControl.statusChanged";
|
|
628
|
+
readonly payload: {
|
|
629
|
+
readonly status: {
|
|
630
|
+
readonly status: "disabled" | "connecting" | "connected" | "errored";
|
|
631
|
+
readonly serverName: string;
|
|
632
|
+
readonly installationId: string;
|
|
633
|
+
readonly environmentId: string | null;
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
} | {
|
|
637
|
+
readonly seq: number;
|
|
638
|
+
readonly occurredAt: string;
|
|
639
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
640
|
+
readonly type: "conversation.selected";
|
|
641
|
+
readonly payload: {
|
|
642
|
+
readonly conversationId: string | null;
|
|
643
|
+
};
|
|
644
|
+
} | {
|
|
645
|
+
readonly seq: number;
|
|
646
|
+
readonly occurredAt: string;
|
|
647
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
648
|
+
readonly type: "conversation.summaryUpserted";
|
|
649
|
+
readonly payload: {
|
|
650
|
+
readonly summary: {
|
|
651
|
+
readonly id: string;
|
|
652
|
+
readonly sessionId?: string | undefined;
|
|
653
|
+
readonly parentConversationId?: string | undefined;
|
|
654
|
+
readonly agentNickname?: string | undefined;
|
|
655
|
+
readonly agentRole?: string | undefined;
|
|
656
|
+
readonly title: string;
|
|
657
|
+
readonly preview: string;
|
|
658
|
+
readonly cwd: string;
|
|
659
|
+
readonly status: "idle" | "active" | "error";
|
|
660
|
+
readonly turnCount: number;
|
|
661
|
+
readonly createdAt: string;
|
|
662
|
+
readonly updatedAt: string;
|
|
663
|
+
};
|
|
664
|
+
readonly reason: "created" | "listed" | "resumed" | "started" | "updated";
|
|
665
|
+
};
|
|
666
|
+
readonly conversationId: string;
|
|
667
|
+
} | {
|
|
668
|
+
readonly seq: number;
|
|
669
|
+
readonly occurredAt: string;
|
|
670
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
671
|
+
readonly type: "conversation.summaryRemoved";
|
|
672
|
+
readonly payload: {
|
|
673
|
+
readonly reason: "archived" | "deleted";
|
|
674
|
+
};
|
|
675
|
+
readonly conversationId: string;
|
|
676
|
+
} | {
|
|
677
|
+
readonly seq: number;
|
|
678
|
+
readonly occurredAt: string;
|
|
679
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
680
|
+
readonly type: "conversation.historyReplaced";
|
|
681
|
+
readonly payload: {
|
|
682
|
+
readonly reason: import("@codex-app-sdk/core/surface").CodexSurfaceHistoryReason;
|
|
683
|
+
readonly messages: readonly {
|
|
684
|
+
readonly id: string;
|
|
685
|
+
readonly kind?: "compaction" | "steer" | undefined;
|
|
686
|
+
readonly role: "user" | "assistant" | "system";
|
|
687
|
+
readonly status: "complete" | "streaming" | "error";
|
|
688
|
+
readonly parts: readonly ({
|
|
689
|
+
readonly type: "text";
|
|
690
|
+
readonly text: string;
|
|
691
|
+
readonly itemId?: string | undefined;
|
|
692
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
693
|
+
} | {
|
|
694
|
+
readonly type: "reasoning";
|
|
695
|
+
readonly summary: string;
|
|
696
|
+
readonly itemId: string;
|
|
697
|
+
readonly summaryIndex: number;
|
|
698
|
+
} | {
|
|
699
|
+
readonly type: "status";
|
|
700
|
+
readonly text: string;
|
|
701
|
+
} | {
|
|
702
|
+
readonly type: "question";
|
|
703
|
+
readonly historical?: boolean | undefined;
|
|
704
|
+
readonly request: {
|
|
705
|
+
readonly id: string;
|
|
706
|
+
readonly kind: "ask_user";
|
|
707
|
+
readonly conversationId: string;
|
|
708
|
+
readonly turnId: string;
|
|
709
|
+
readonly itemId: string;
|
|
710
|
+
readonly payload: {
|
|
711
|
+
readonly request: {
|
|
712
|
+
readonly itemId: string;
|
|
713
|
+
readonly delivery: "tool" | "async";
|
|
714
|
+
readonly blocking: boolean;
|
|
715
|
+
readonly questions: readonly {
|
|
716
|
+
readonly id: string;
|
|
717
|
+
readonly header: string;
|
|
718
|
+
readonly question: string;
|
|
719
|
+
readonly isOther: boolean;
|
|
720
|
+
readonly isSecret: boolean;
|
|
721
|
+
readonly options: readonly {
|
|
722
|
+
readonly label: string;
|
|
723
|
+
readonly description: string;
|
|
724
|
+
}[] | null;
|
|
725
|
+
}[];
|
|
726
|
+
readonly autoResolutionMs?: number | undefined;
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
} | {
|
|
731
|
+
readonly type: "attachment";
|
|
732
|
+
readonly attachment: {
|
|
733
|
+
readonly kind: "file" | "image";
|
|
734
|
+
readonly name: string;
|
|
735
|
+
readonly path?: string | undefined;
|
|
736
|
+
readonly url?: string | undefined;
|
|
737
|
+
readonly mimeType?: string | undefined;
|
|
738
|
+
};
|
|
739
|
+
} | {
|
|
740
|
+
readonly type: "media";
|
|
741
|
+
readonly media: {
|
|
742
|
+
readonly url: string;
|
|
743
|
+
readonly alt?: string | undefined;
|
|
744
|
+
readonly mimeType?: string | undefined;
|
|
745
|
+
readonly prompt?: string | undefined;
|
|
746
|
+
readonly title?: string | undefined;
|
|
747
|
+
};
|
|
748
|
+
readonly itemId?: string | undefined;
|
|
749
|
+
} | {
|
|
750
|
+
readonly type: "tool";
|
|
751
|
+
readonly id: string;
|
|
752
|
+
readonly title: string;
|
|
753
|
+
readonly kind?: string | undefined;
|
|
754
|
+
readonly status: "running" | "completed" | "failed";
|
|
755
|
+
readonly statusText?: string | undefined;
|
|
756
|
+
readonly body?: string | undefined;
|
|
757
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
758
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
759
|
+
readonly metadata?: {
|
|
760
|
+
readonly [x: string]: Readonly<unknown>;
|
|
761
|
+
} | undefined;
|
|
762
|
+
})[];
|
|
763
|
+
readonly createdAt?: string | undefined;
|
|
764
|
+
readonly turnId?: string | undefined;
|
|
765
|
+
readonly metadata?: {
|
|
766
|
+
readonly [x: string]: Readonly<unknown>;
|
|
767
|
+
} | undefined;
|
|
768
|
+
}[];
|
|
769
|
+
readonly threadStatus: {
|
|
770
|
+
readonly type: "notLoaded";
|
|
771
|
+
} | {
|
|
772
|
+
readonly type: "idle";
|
|
773
|
+
} | {
|
|
774
|
+
readonly type: "systemError";
|
|
775
|
+
} | {
|
|
776
|
+
readonly type: "active";
|
|
777
|
+
readonly activeFlags: readonly ("waitingOnApproval" | "waitingOnUserInput")[];
|
|
778
|
+
} | null;
|
|
779
|
+
readonly state?: {
|
|
780
|
+
readonly error: string | null;
|
|
781
|
+
readonly activeTurnId: string | null;
|
|
782
|
+
readonly answeredClientRequestIds: readonly string[];
|
|
783
|
+
readonly busy: boolean;
|
|
784
|
+
readonly contextUsage: {
|
|
785
|
+
readonly totalTokens: number;
|
|
786
|
+
readonly inputTokens: number;
|
|
787
|
+
readonly cachedInputTokens: number;
|
|
788
|
+
readonly outputTokens: number;
|
|
789
|
+
readonly reasoningOutputTokens: number;
|
|
790
|
+
readonly lastTotalTokens: number;
|
|
791
|
+
readonly modelContextWindow: number | null;
|
|
792
|
+
readonly usedPercent: number | null;
|
|
793
|
+
} | null;
|
|
794
|
+
readonly executionPlan?: {
|
|
795
|
+
readonly turnId: string;
|
|
796
|
+
readonly explanation: string | null;
|
|
797
|
+
readonly steps: readonly {
|
|
798
|
+
readonly step: string;
|
|
799
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfacePlanStepStatus;
|
|
800
|
+
}[];
|
|
801
|
+
readonly markdown: string;
|
|
802
|
+
readonly updatedAt: string;
|
|
803
|
+
} | null | undefined;
|
|
804
|
+
readonly historyLoading: boolean;
|
|
805
|
+
readonly historyState?: {
|
|
806
|
+
readonly loadingStrategy: import("@codex-app-sdk/core/surface").CodexConversationLoadingStrategy;
|
|
807
|
+
readonly hasOlder: boolean;
|
|
808
|
+
readonly loadingOlder: boolean;
|
|
809
|
+
readonly fullyLoaded: boolean;
|
|
810
|
+
} | undefined;
|
|
811
|
+
readonly turnGitDiff: {
|
|
812
|
+
readonly turnId: string;
|
|
813
|
+
readonly addedLines: number;
|
|
814
|
+
readonly removedLines: number;
|
|
815
|
+
readonly diff?: string | undefined;
|
|
816
|
+
readonly updatedAt: string;
|
|
817
|
+
} | null;
|
|
818
|
+
readonly turnIds: readonly string[];
|
|
819
|
+
readonly turns: readonly {
|
|
820
|
+
readonly id: string;
|
|
821
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceTurnStatus;
|
|
822
|
+
readonly error: {
|
|
823
|
+
readonly message: string;
|
|
824
|
+
readonly additionalDetails: string | null;
|
|
825
|
+
readonly codexErrorInfo: any;
|
|
826
|
+
} | null;
|
|
827
|
+
readonly willRetry: boolean;
|
|
828
|
+
readonly startedAt: string | null;
|
|
829
|
+
readonly completedAt: string | null;
|
|
830
|
+
readonly durationMs: number | null;
|
|
831
|
+
}[];
|
|
832
|
+
} | undefined;
|
|
833
|
+
};
|
|
834
|
+
readonly conversationId: string;
|
|
835
|
+
} | {
|
|
836
|
+
readonly seq: number;
|
|
837
|
+
readonly occurredAt: string;
|
|
838
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
839
|
+
readonly type: "conversation.historyPrepended";
|
|
840
|
+
readonly payload: {
|
|
841
|
+
readonly messages: readonly {
|
|
842
|
+
readonly id: string;
|
|
843
|
+
readonly kind?: "compaction" | "steer" | undefined;
|
|
844
|
+
readonly role: "user" | "assistant" | "system";
|
|
845
|
+
readonly status: "complete" | "streaming" | "error";
|
|
846
|
+
readonly parts: readonly ({
|
|
847
|
+
readonly type: "text";
|
|
848
|
+
readonly text: string;
|
|
849
|
+
readonly itemId?: string | undefined;
|
|
850
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
851
|
+
} | {
|
|
852
|
+
readonly type: "reasoning";
|
|
853
|
+
readonly summary: string;
|
|
854
|
+
readonly itemId: string;
|
|
855
|
+
readonly summaryIndex: number;
|
|
856
|
+
} | {
|
|
857
|
+
readonly type: "status";
|
|
858
|
+
readonly text: string;
|
|
859
|
+
} | {
|
|
860
|
+
readonly type: "question";
|
|
861
|
+
readonly historical?: boolean | undefined;
|
|
862
|
+
readonly request: {
|
|
863
|
+
readonly id: string;
|
|
864
|
+
readonly kind: "ask_user";
|
|
865
|
+
readonly conversationId: string;
|
|
866
|
+
readonly turnId: string;
|
|
867
|
+
readonly itemId: string;
|
|
868
|
+
readonly payload: {
|
|
869
|
+
readonly request: {
|
|
870
|
+
readonly itemId: string;
|
|
871
|
+
readonly delivery: "tool" | "async";
|
|
872
|
+
readonly blocking: boolean;
|
|
873
|
+
readonly questions: readonly {
|
|
874
|
+
readonly id: string;
|
|
875
|
+
readonly header: string;
|
|
876
|
+
readonly question: string;
|
|
877
|
+
readonly isOther: boolean;
|
|
878
|
+
readonly isSecret: boolean;
|
|
879
|
+
readonly options: readonly {
|
|
880
|
+
readonly label: string;
|
|
881
|
+
readonly description: string;
|
|
882
|
+
}[] | null;
|
|
883
|
+
}[];
|
|
884
|
+
readonly autoResolutionMs?: number | undefined;
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
} | {
|
|
889
|
+
readonly type: "attachment";
|
|
890
|
+
readonly attachment: {
|
|
891
|
+
readonly kind: "file" | "image";
|
|
892
|
+
readonly name: string;
|
|
893
|
+
readonly path?: string | undefined;
|
|
894
|
+
readonly url?: string | undefined;
|
|
895
|
+
readonly mimeType?: string | undefined;
|
|
896
|
+
};
|
|
897
|
+
} | {
|
|
898
|
+
readonly type: "media";
|
|
899
|
+
readonly media: {
|
|
900
|
+
readonly url: string;
|
|
901
|
+
readonly alt?: string | undefined;
|
|
902
|
+
readonly mimeType?: string | undefined;
|
|
903
|
+
readonly prompt?: string | undefined;
|
|
904
|
+
readonly title?: string | undefined;
|
|
905
|
+
};
|
|
906
|
+
readonly itemId?: string | undefined;
|
|
907
|
+
} | {
|
|
908
|
+
readonly type: "tool";
|
|
909
|
+
readonly id: string;
|
|
910
|
+
readonly title: string;
|
|
911
|
+
readonly kind?: string | undefined;
|
|
912
|
+
readonly status: "running" | "completed" | "failed";
|
|
913
|
+
readonly statusText?: string | undefined;
|
|
914
|
+
readonly body?: string | undefined;
|
|
915
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
916
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
917
|
+
readonly metadata?: {
|
|
918
|
+
readonly [x: string]: Readonly<unknown>;
|
|
919
|
+
} | undefined;
|
|
920
|
+
})[];
|
|
921
|
+
readonly createdAt?: string | undefined;
|
|
922
|
+
readonly turnId?: string | undefined;
|
|
923
|
+
readonly metadata?: {
|
|
924
|
+
readonly [x: string]: Readonly<unknown>;
|
|
925
|
+
} | undefined;
|
|
926
|
+
}[];
|
|
927
|
+
readonly state?: {
|
|
928
|
+
readonly historyLoading: boolean;
|
|
929
|
+
readonly historyState?: {
|
|
930
|
+
readonly loadingStrategy: import("@codex-app-sdk/core/surface").CodexConversationLoadingStrategy;
|
|
931
|
+
readonly hasOlder: boolean;
|
|
932
|
+
readonly loadingOlder: boolean;
|
|
933
|
+
readonly fullyLoaded: boolean;
|
|
934
|
+
} | undefined;
|
|
935
|
+
readonly turnIds: readonly string[];
|
|
936
|
+
readonly turns: readonly {
|
|
937
|
+
readonly id: string;
|
|
938
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceTurnStatus;
|
|
939
|
+
readonly error: {
|
|
940
|
+
readonly message: string;
|
|
941
|
+
readonly additionalDetails: string | null;
|
|
942
|
+
readonly codexErrorInfo: any;
|
|
943
|
+
} | null;
|
|
944
|
+
readonly willRetry: boolean;
|
|
945
|
+
readonly startedAt: string | null;
|
|
946
|
+
readonly completedAt: string | null;
|
|
947
|
+
readonly durationMs: number | null;
|
|
948
|
+
}[];
|
|
949
|
+
} | undefined;
|
|
950
|
+
};
|
|
951
|
+
readonly conversationId: string;
|
|
952
|
+
} | {
|
|
953
|
+
readonly seq: number;
|
|
954
|
+
readonly occurredAt: string;
|
|
955
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
956
|
+
readonly type: "conversation.historyStateChanged";
|
|
957
|
+
readonly payload: {
|
|
958
|
+
readonly historyLoading: boolean;
|
|
959
|
+
readonly historyState: {
|
|
960
|
+
readonly loadingStrategy: import("@codex-app-sdk/core/surface").CodexConversationLoadingStrategy;
|
|
961
|
+
readonly hasOlder: boolean;
|
|
962
|
+
readonly loadingOlder: boolean;
|
|
963
|
+
readonly fullyLoaded: boolean;
|
|
964
|
+
};
|
|
965
|
+
readonly error: string | null;
|
|
966
|
+
};
|
|
967
|
+
readonly conversationId: string;
|
|
968
|
+
} | {
|
|
969
|
+
readonly seq: number;
|
|
970
|
+
readonly occurredAt: string;
|
|
971
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
972
|
+
readonly type: "conversation.activityChanged";
|
|
973
|
+
readonly payload: {
|
|
974
|
+
readonly threadStatus: {
|
|
975
|
+
readonly type: "notLoaded";
|
|
976
|
+
} | {
|
|
977
|
+
readonly type: "idle";
|
|
978
|
+
} | {
|
|
979
|
+
readonly type: "systemError";
|
|
980
|
+
} | {
|
|
981
|
+
readonly type: "active";
|
|
982
|
+
readonly activeFlags: readonly ("waitingOnApproval" | "waitingOnUserInput")[];
|
|
983
|
+
} | null;
|
|
984
|
+
readonly busy: boolean;
|
|
985
|
+
readonly error: string | null;
|
|
986
|
+
};
|
|
987
|
+
readonly conversationId: string;
|
|
988
|
+
} | {
|
|
989
|
+
readonly seq: number;
|
|
990
|
+
readonly occurredAt: string;
|
|
991
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
992
|
+
readonly type: "conversation.settingsChanged";
|
|
993
|
+
readonly payload: {
|
|
994
|
+
readonly approvalPreset: import("@codex-app-sdk/core/surface").CodexSurfaceApprovalPreset | null;
|
|
995
|
+
readonly selectedModelId: string | null;
|
|
996
|
+
readonly selectedReasoningEffort: string | null;
|
|
997
|
+
readonly selectedServiceTier?: string | null | undefined;
|
|
998
|
+
readonly planMode: boolean;
|
|
999
|
+
};
|
|
1000
|
+
readonly conversationId: string;
|
|
1001
|
+
} | {
|
|
1002
|
+
readonly seq: number;
|
|
1003
|
+
readonly occurredAt: string;
|
|
1004
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1005
|
+
readonly type: "conversation.goalChanged";
|
|
1006
|
+
readonly payload: {
|
|
1007
|
+
readonly goal: {
|
|
1008
|
+
readonly threadId: string;
|
|
1009
|
+
readonly objective: string;
|
|
1010
|
+
readonly status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
1011
|
+
readonly tokenBudget: number | null;
|
|
1012
|
+
readonly tokensUsed: number;
|
|
1013
|
+
readonly timeUsedSeconds: number;
|
|
1014
|
+
readonly createdAt: number;
|
|
1015
|
+
readonly updatedAt: number;
|
|
1016
|
+
} | null;
|
|
1017
|
+
};
|
|
1018
|
+
readonly conversationId: string;
|
|
1019
|
+
readonly turnId?: string | undefined;
|
|
1020
|
+
} | {
|
|
1021
|
+
readonly seq: number;
|
|
1022
|
+
readonly occurredAt: string;
|
|
1023
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1024
|
+
readonly type: "conversation.contextUsageChanged";
|
|
1025
|
+
readonly payload: {
|
|
1026
|
+
readonly contextUsage: {
|
|
1027
|
+
readonly totalTokens: number;
|
|
1028
|
+
readonly inputTokens: number;
|
|
1029
|
+
readonly cachedInputTokens: number;
|
|
1030
|
+
readonly outputTokens: number;
|
|
1031
|
+
readonly reasoningOutputTokens: number;
|
|
1032
|
+
readonly lastTotalTokens: number;
|
|
1033
|
+
readonly modelContextWindow: number | null;
|
|
1034
|
+
readonly usedPercent: number | null;
|
|
1035
|
+
} | null;
|
|
1036
|
+
};
|
|
1037
|
+
readonly conversationId: string;
|
|
1038
|
+
readonly turnId: string;
|
|
1039
|
+
} | {
|
|
1040
|
+
readonly seq: number;
|
|
1041
|
+
readonly occurredAt: string;
|
|
1042
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1043
|
+
readonly type: "conversation.skillsChanged";
|
|
1044
|
+
readonly payload: {
|
|
1045
|
+
readonly cwd: string | null;
|
|
1046
|
+
readonly skills: readonly {
|
|
1047
|
+
readonly name: string;
|
|
1048
|
+
readonly description?: string | undefined;
|
|
1049
|
+
readonly shortDescription?: string | undefined;
|
|
1050
|
+
readonly displayName?: string | undefined;
|
|
1051
|
+
readonly iconSmall?: string | undefined;
|
|
1052
|
+
readonly iconLarge?: string | undefined;
|
|
1053
|
+
readonly brandColor?: string | undefined;
|
|
1054
|
+
readonly defaultPrompt?: string | undefined;
|
|
1055
|
+
readonly path: string;
|
|
1056
|
+
readonly scope?: string | undefined;
|
|
1057
|
+
readonly enabled: boolean;
|
|
1058
|
+
}[];
|
|
1059
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceCatalogStatus;
|
|
1060
|
+
};
|
|
1061
|
+
readonly conversationId: string;
|
|
1062
|
+
} | {
|
|
1063
|
+
readonly seq: number;
|
|
1064
|
+
readonly occurredAt: string;
|
|
1065
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1066
|
+
readonly type: "conversation.permissionsChanged";
|
|
1067
|
+
readonly payload: {
|
|
1068
|
+
readonly cwd: string | null;
|
|
1069
|
+
readonly permissionProfiles: readonly {
|
|
1070
|
+
readonly id: string;
|
|
1071
|
+
readonly description: string | null;
|
|
1072
|
+
readonly allowed: boolean;
|
|
1073
|
+
}[];
|
|
1074
|
+
readonly approvalPresets: readonly import("@codex-app-sdk/core/surface").CodexSurfaceApprovalPreset[];
|
|
1075
|
+
};
|
|
1076
|
+
readonly conversationId: string;
|
|
1077
|
+
} | {
|
|
1078
|
+
readonly seq: number;
|
|
1079
|
+
readonly occurredAt: string;
|
|
1080
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1081
|
+
readonly type: "conversation.diffUpdated";
|
|
1082
|
+
readonly payload: {
|
|
1083
|
+
readonly diff: {
|
|
1084
|
+
readonly turnId: string;
|
|
1085
|
+
readonly addedLines: number;
|
|
1086
|
+
readonly removedLines: number;
|
|
1087
|
+
readonly diff?: string | undefined;
|
|
1088
|
+
readonly updatedAt: string;
|
|
1089
|
+
} | null;
|
|
1090
|
+
};
|
|
1091
|
+
readonly conversationId: string;
|
|
1092
|
+
} | {
|
|
1093
|
+
readonly seq: number;
|
|
1094
|
+
readonly occurredAt: string;
|
|
1095
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1096
|
+
readonly type: "conversation.queueChanged";
|
|
1097
|
+
readonly payload: {
|
|
1098
|
+
readonly queuedPrompts: readonly {
|
|
1099
|
+
readonly id: string;
|
|
1100
|
+
readonly text: string;
|
|
1101
|
+
readonly options?: {
|
|
1102
|
+
readonly attachments?: readonly ({
|
|
1103
|
+
readonly type: "image";
|
|
1104
|
+
readonly path: string;
|
|
1105
|
+
readonly detail?: "auto" | "low" | "high" | "original" | undefined;
|
|
1106
|
+
readonly name?: string | undefined;
|
|
1107
|
+
readonly mimeType?: string | undefined;
|
|
1108
|
+
readonly previewUrl?: string | undefined;
|
|
1109
|
+
} | {
|
|
1110
|
+
readonly type: "file";
|
|
1111
|
+
readonly path: string;
|
|
1112
|
+
readonly name?: string | undefined;
|
|
1113
|
+
readonly mimeType?: string | undefined;
|
|
1114
|
+
})[] | undefined;
|
|
1115
|
+
readonly inputMethod?: "typed" | "dictated" | undefined;
|
|
1116
|
+
readonly model?: string | undefined;
|
|
1117
|
+
readonly reasoningEffort?: string | undefined;
|
|
1118
|
+
readonly serviceTier?: string | null | undefined;
|
|
1119
|
+
readonly planMode?: boolean | undefined;
|
|
1120
|
+
readonly skills?: readonly {
|
|
1121
|
+
readonly name: string;
|
|
1122
|
+
readonly path: string;
|
|
1123
|
+
}[] | undefined;
|
|
1124
|
+
readonly outputSchema?: any;
|
|
1125
|
+
} | undefined;
|
|
1126
|
+
}[];
|
|
1127
|
+
};
|
|
1128
|
+
readonly conversationId: string;
|
|
1129
|
+
} | {
|
|
1130
|
+
readonly seq: number;
|
|
1131
|
+
readonly occurredAt: string;
|
|
1132
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1133
|
+
readonly type: "realtime.started";
|
|
1134
|
+
readonly payload: {
|
|
1135
|
+
readonly realtimeSessionId: string | null;
|
|
1136
|
+
readonly version: import("@codex-app-sdk/core/surface").CodexRealtimeVersion;
|
|
1137
|
+
};
|
|
1138
|
+
readonly conversationId: string;
|
|
1139
|
+
} | {
|
|
1140
|
+
readonly seq: number;
|
|
1141
|
+
readonly occurredAt: string;
|
|
1142
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1143
|
+
readonly type: "realtime.itemAdded";
|
|
1144
|
+
readonly payload: {
|
|
1145
|
+
readonly item: any;
|
|
1146
|
+
};
|
|
1147
|
+
readonly conversationId: string;
|
|
1148
|
+
} | {
|
|
1149
|
+
readonly seq: number;
|
|
1150
|
+
readonly occurredAt: string;
|
|
1151
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1152
|
+
readonly type: "realtime.itemStarted";
|
|
1153
|
+
readonly payload: {
|
|
1154
|
+
readonly item: any;
|
|
1155
|
+
};
|
|
1156
|
+
readonly conversationId: string;
|
|
1157
|
+
} | {
|
|
1158
|
+
readonly seq: number;
|
|
1159
|
+
readonly occurredAt: string;
|
|
1160
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1161
|
+
readonly type: "realtime.itemCompleted";
|
|
1162
|
+
readonly payload: {
|
|
1163
|
+
readonly item: any;
|
|
1164
|
+
};
|
|
1165
|
+
readonly conversationId: string;
|
|
1166
|
+
} | {
|
|
1167
|
+
readonly seq: number;
|
|
1168
|
+
readonly occurredAt: string;
|
|
1169
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1170
|
+
readonly type: "realtime.itemTranscriptDelta";
|
|
1171
|
+
readonly payload: {
|
|
1172
|
+
readonly itemId: string;
|
|
1173
|
+
readonly delta: string;
|
|
1174
|
+
};
|
|
1175
|
+
readonly conversationId: string;
|
|
1176
|
+
} | {
|
|
1177
|
+
readonly seq: number;
|
|
1178
|
+
readonly occurredAt: string;
|
|
1179
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1180
|
+
readonly type: "realtime.transcriptDelta";
|
|
1181
|
+
readonly payload: {
|
|
1182
|
+
readonly role: string;
|
|
1183
|
+
readonly delta: string;
|
|
1184
|
+
};
|
|
1185
|
+
readonly conversationId: string;
|
|
1186
|
+
} | {
|
|
1187
|
+
readonly seq: number;
|
|
1188
|
+
readonly occurredAt: string;
|
|
1189
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1190
|
+
readonly type: "realtime.transcriptCompleted";
|
|
1191
|
+
readonly payload: {
|
|
1192
|
+
readonly role: string;
|
|
1193
|
+
readonly text: string;
|
|
1194
|
+
};
|
|
1195
|
+
readonly conversationId: string;
|
|
1196
|
+
} | {
|
|
1197
|
+
readonly seq: number;
|
|
1198
|
+
readonly occurredAt: string;
|
|
1199
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1200
|
+
readonly type: "realtime.audioDelta";
|
|
1201
|
+
readonly payload: {
|
|
1202
|
+
readonly audio: {
|
|
1203
|
+
readonly data: {
|
|
1204
|
+
readonly [x: number]: number;
|
|
1205
|
+
readonly BYTES_PER_ELEMENT: number;
|
|
1206
|
+
readonly buffer: {
|
|
1207
|
+
readonly byteLength: number;
|
|
1208
|
+
readonly slice: (begin?: number, end?: number) => ArrayBuffer;
|
|
1209
|
+
readonly [Symbol.toStringTag]: "ArrayBuffer";
|
|
1210
|
+
} | {
|
|
1211
|
+
readonly byteLength: number;
|
|
1212
|
+
readonly slice: (begin?: number, end?: number) => SharedArrayBuffer;
|
|
1213
|
+
readonly [Symbol.toStringTag]: "SharedArrayBuffer";
|
|
1214
|
+
};
|
|
1215
|
+
readonly byteLength: number;
|
|
1216
|
+
readonly byteOffset: number;
|
|
1217
|
+
readonly copyWithin: (target: number, start: number, end?: number) => Uint8Array<ArrayBufferLike>;
|
|
1218
|
+
readonly every: (predicate: (value: number, index: number, array: Uint8Array<ArrayBufferLike>) => unknown, thisArg?: any) => boolean;
|
|
1219
|
+
readonly fill: (value: number, start?: number, end?: number) => Uint8Array<ArrayBufferLike>;
|
|
1220
|
+
readonly filter: (predicate: (value: number, index: number, array: Uint8Array<ArrayBufferLike>) => any, thisArg?: any) => Uint8Array<ArrayBuffer>;
|
|
1221
|
+
readonly find: (predicate: (value: number, index: number, obj: Uint8Array<ArrayBufferLike>) => boolean, thisArg?: any) => number | undefined;
|
|
1222
|
+
readonly findIndex: (predicate: (value: number, index: number, obj: Uint8Array<ArrayBufferLike>) => boolean, thisArg?: any) => number;
|
|
1223
|
+
readonly forEach: (callbackfn: (value: number, index: number, array: Uint8Array<ArrayBufferLike>) => void, thisArg?: any) => void;
|
|
1224
|
+
readonly indexOf: (searchElement: number, fromIndex?: number) => number;
|
|
1225
|
+
readonly join: (separator?: string) => string;
|
|
1226
|
+
readonly lastIndexOf: (searchElement: number, fromIndex?: number) => number;
|
|
1227
|
+
readonly length: number;
|
|
1228
|
+
readonly map: (callbackfn: (value: number, index: number, array: Uint8Array<ArrayBufferLike>) => number, thisArg?: any) => Uint8Array<ArrayBuffer>;
|
|
1229
|
+
readonly reduce: {
|
|
1230
|
+
(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array<ArrayBufferLike>) => number): number;
|
|
1231
|
+
(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array<ArrayBufferLike>) => number, initialValue: number): number;
|
|
1232
|
+
<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array<ArrayBufferLike>) => U, initialValue: U): U;
|
|
1233
|
+
};
|
|
1234
|
+
readonly reduceRight: {
|
|
1235
|
+
(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array<ArrayBufferLike>) => number): number;
|
|
1236
|
+
(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array<ArrayBufferLike>) => number, initialValue: number): number;
|
|
1237
|
+
<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array<ArrayBufferLike>) => U, initialValue: U): U;
|
|
1238
|
+
};
|
|
1239
|
+
readonly reverse: () => Uint8Array<ArrayBufferLike>;
|
|
1240
|
+
readonly set: (array: ArrayLike<number>, offset?: number) => void;
|
|
1241
|
+
readonly slice: (start?: number, end?: number) => Uint8Array<ArrayBuffer>;
|
|
1242
|
+
readonly some: (predicate: (value: number, index: number, array: Uint8Array<ArrayBufferLike>) => unknown, thisArg?: any) => boolean;
|
|
1243
|
+
readonly sort: (compareFn?: ((a: number, b: number) => number) | undefined) => Uint8Array<ArrayBufferLike>;
|
|
1244
|
+
readonly subarray: (begin?: number, end?: number) => Uint8Array<ArrayBufferLike>;
|
|
1245
|
+
readonly toLocaleString: {
|
|
1246
|
+
(): string;
|
|
1247
|
+
(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
1248
|
+
};
|
|
1249
|
+
readonly toString: () => string;
|
|
1250
|
+
readonly valueOf: () => Uint8Array<ArrayBufferLike>;
|
|
1251
|
+
readonly entries: () => ArrayIterator<[number, number]>;
|
|
1252
|
+
readonly keys: () => ArrayIterator<number>;
|
|
1253
|
+
readonly values: () => ArrayIterator<number>;
|
|
1254
|
+
readonly includes: (searchElement: number, fromIndex?: number) => boolean;
|
|
1255
|
+
readonly at: (index: number) => number | undefined;
|
|
1256
|
+
readonly [Symbol.iterator]: () => ArrayIterator<number>;
|
|
1257
|
+
readonly [Symbol.toStringTag]: "Uint8Array";
|
|
1258
|
+
};
|
|
1259
|
+
readonly sampleRate: number;
|
|
1260
|
+
readonly numChannels: number;
|
|
1261
|
+
readonly samplesPerChannel: number | null;
|
|
1262
|
+
readonly itemId: string | null;
|
|
1263
|
+
};
|
|
1264
|
+
};
|
|
1265
|
+
readonly conversationId: string;
|
|
1266
|
+
} | {
|
|
1267
|
+
readonly seq: number;
|
|
1268
|
+
readonly occurredAt: string;
|
|
1269
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1270
|
+
readonly type: "realtime.sdp";
|
|
1271
|
+
readonly payload: {
|
|
1272
|
+
readonly sdp: string;
|
|
1273
|
+
};
|
|
1274
|
+
readonly conversationId: string;
|
|
1275
|
+
} | {
|
|
1276
|
+
readonly seq: number;
|
|
1277
|
+
readonly occurredAt: string;
|
|
1278
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1279
|
+
readonly type: "realtime.error";
|
|
1280
|
+
readonly payload: {
|
|
1281
|
+
readonly message: string;
|
|
1282
|
+
};
|
|
1283
|
+
readonly conversationId: string;
|
|
1284
|
+
} | {
|
|
1285
|
+
readonly seq: number;
|
|
1286
|
+
readonly occurredAt: string;
|
|
1287
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1288
|
+
readonly type: "realtime.closed";
|
|
1289
|
+
readonly payload: {
|
|
1290
|
+
readonly reason: string | null;
|
|
1291
|
+
};
|
|
1292
|
+
readonly conversationId: string;
|
|
1293
|
+
} | {
|
|
1294
|
+
readonly seq: number;
|
|
1295
|
+
readonly occurredAt: string;
|
|
1296
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1297
|
+
readonly type: "turn.started";
|
|
1298
|
+
readonly payload: {
|
|
1299
|
+
readonly startedAt: string;
|
|
1300
|
+
};
|
|
1301
|
+
readonly conversationId: string;
|
|
1302
|
+
readonly turnId: string;
|
|
1303
|
+
} | {
|
|
1304
|
+
readonly seq: number;
|
|
1305
|
+
readonly occurredAt: string;
|
|
1306
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1307
|
+
readonly type: "turn.completed";
|
|
1308
|
+
readonly payload: {
|
|
1309
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceTurnStatus;
|
|
1310
|
+
readonly error: {
|
|
1311
|
+
readonly message: string;
|
|
1312
|
+
readonly additionalDetails: string | null;
|
|
1313
|
+
readonly codexErrorInfo: any;
|
|
1314
|
+
} | null;
|
|
1315
|
+
readonly willRetry: boolean;
|
|
1316
|
+
readonly startedAt: string | null;
|
|
1317
|
+
readonly completedAt: string | null;
|
|
1318
|
+
readonly durationMs: number | null;
|
|
1319
|
+
};
|
|
1320
|
+
readonly conversationId: string;
|
|
1321
|
+
readonly turnId: string;
|
|
1322
|
+
} | {
|
|
1323
|
+
readonly seq: number;
|
|
1324
|
+
readonly occurredAt: string;
|
|
1325
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1326
|
+
readonly type: "turn.error";
|
|
1327
|
+
readonly payload: {
|
|
1328
|
+
readonly error: {
|
|
1329
|
+
readonly message: string;
|
|
1330
|
+
readonly additionalDetails: string | null;
|
|
1331
|
+
readonly codexErrorInfo: any;
|
|
1332
|
+
};
|
|
1333
|
+
readonly willRetry: boolean;
|
|
1334
|
+
};
|
|
1335
|
+
readonly conversationId: string;
|
|
1336
|
+
readonly turnId: string;
|
|
1337
|
+
} | {
|
|
1338
|
+
readonly seq: number;
|
|
1339
|
+
readonly occurredAt: string;
|
|
1340
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1341
|
+
readonly type: "message.appended";
|
|
1342
|
+
readonly payload: {
|
|
1343
|
+
readonly message: {
|
|
1344
|
+
readonly id: string;
|
|
1345
|
+
readonly kind?: "compaction" | "steer" | undefined;
|
|
1346
|
+
readonly role: "user" | "assistant" | "system";
|
|
1347
|
+
readonly status: "complete" | "streaming" | "error";
|
|
1348
|
+
readonly parts: readonly ({
|
|
1349
|
+
readonly type: "text";
|
|
1350
|
+
readonly text: string;
|
|
1351
|
+
readonly itemId?: string | undefined;
|
|
1352
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
1353
|
+
} | {
|
|
1354
|
+
readonly type: "reasoning";
|
|
1355
|
+
readonly summary: string;
|
|
1356
|
+
readonly itemId: string;
|
|
1357
|
+
readonly summaryIndex: number;
|
|
1358
|
+
} | {
|
|
1359
|
+
readonly type: "status";
|
|
1360
|
+
readonly text: string;
|
|
1361
|
+
} | {
|
|
1362
|
+
readonly type: "question";
|
|
1363
|
+
readonly historical?: boolean | undefined;
|
|
1364
|
+
readonly request: {
|
|
1365
|
+
readonly id: string;
|
|
1366
|
+
readonly kind: "ask_user";
|
|
1367
|
+
readonly conversationId: string;
|
|
1368
|
+
readonly turnId: string;
|
|
1369
|
+
readonly itemId: string;
|
|
1370
|
+
readonly payload: {
|
|
1371
|
+
readonly request: {
|
|
1372
|
+
readonly itemId: string;
|
|
1373
|
+
readonly delivery: "tool" | "async";
|
|
1374
|
+
readonly blocking: boolean;
|
|
1375
|
+
readonly questions: readonly {
|
|
1376
|
+
readonly id: string;
|
|
1377
|
+
readonly header: string;
|
|
1378
|
+
readonly question: string;
|
|
1379
|
+
readonly isOther: boolean;
|
|
1380
|
+
readonly isSecret: boolean;
|
|
1381
|
+
readonly options: readonly {
|
|
1382
|
+
readonly label: string;
|
|
1383
|
+
readonly description: string;
|
|
1384
|
+
}[] | null;
|
|
1385
|
+
}[];
|
|
1386
|
+
readonly autoResolutionMs?: number | undefined;
|
|
1387
|
+
};
|
|
1388
|
+
};
|
|
1389
|
+
};
|
|
1390
|
+
} | {
|
|
1391
|
+
readonly type: "attachment";
|
|
1392
|
+
readonly attachment: {
|
|
1393
|
+
readonly kind: "file" | "image";
|
|
1394
|
+
readonly name: string;
|
|
1395
|
+
readonly path?: string | undefined;
|
|
1396
|
+
readonly url?: string | undefined;
|
|
1397
|
+
readonly mimeType?: string | undefined;
|
|
1398
|
+
};
|
|
1399
|
+
} | {
|
|
1400
|
+
readonly type: "media";
|
|
1401
|
+
readonly media: {
|
|
1402
|
+
readonly url: string;
|
|
1403
|
+
readonly alt?: string | undefined;
|
|
1404
|
+
readonly mimeType?: string | undefined;
|
|
1405
|
+
readonly prompt?: string | undefined;
|
|
1406
|
+
readonly title?: string | undefined;
|
|
1407
|
+
};
|
|
1408
|
+
readonly itemId?: string | undefined;
|
|
1409
|
+
} | {
|
|
1410
|
+
readonly type: "tool";
|
|
1411
|
+
readonly id: string;
|
|
1412
|
+
readonly title: string;
|
|
1413
|
+
readonly kind?: string | undefined;
|
|
1414
|
+
readonly status: "running" | "completed" | "failed";
|
|
1415
|
+
readonly statusText?: string | undefined;
|
|
1416
|
+
readonly body?: string | undefined;
|
|
1417
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
1418
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
1419
|
+
readonly metadata?: {
|
|
1420
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1421
|
+
} | undefined;
|
|
1422
|
+
})[];
|
|
1423
|
+
readonly createdAt?: string | undefined;
|
|
1424
|
+
readonly turnId?: string | undefined;
|
|
1425
|
+
readonly metadata?: {
|
|
1426
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1427
|
+
} | undefined;
|
|
1428
|
+
};
|
|
1429
|
+
};
|
|
1430
|
+
readonly conversationId: string;
|
|
1431
|
+
readonly turnId?: string | undefined;
|
|
1432
|
+
} | {
|
|
1433
|
+
readonly seq: number;
|
|
1434
|
+
readonly occurredAt: string;
|
|
1435
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1436
|
+
readonly type: "message.delta";
|
|
1437
|
+
readonly payload: {
|
|
1438
|
+
readonly messageId: string;
|
|
1439
|
+
readonly itemId: string;
|
|
1440
|
+
readonly delta: string;
|
|
1441
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
1442
|
+
};
|
|
1443
|
+
readonly conversationId: string;
|
|
1444
|
+
readonly turnId: string;
|
|
1445
|
+
} | {
|
|
1446
|
+
readonly seq: number;
|
|
1447
|
+
readonly occurredAt: string;
|
|
1448
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1449
|
+
readonly type: "message.updated";
|
|
1450
|
+
readonly payload: {
|
|
1451
|
+
readonly message: {
|
|
1452
|
+
readonly id: string;
|
|
1453
|
+
readonly kind?: "compaction" | "steer" | undefined;
|
|
1454
|
+
readonly role: "user" | "assistant" | "system";
|
|
1455
|
+
readonly status: "complete" | "streaming" | "error";
|
|
1456
|
+
readonly parts: readonly ({
|
|
1457
|
+
readonly type: "text";
|
|
1458
|
+
readonly text: string;
|
|
1459
|
+
readonly itemId?: string | undefined;
|
|
1460
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
1461
|
+
} | {
|
|
1462
|
+
readonly type: "reasoning";
|
|
1463
|
+
readonly summary: string;
|
|
1464
|
+
readonly itemId: string;
|
|
1465
|
+
readonly summaryIndex: number;
|
|
1466
|
+
} | {
|
|
1467
|
+
readonly type: "status";
|
|
1468
|
+
readonly text: string;
|
|
1469
|
+
} | {
|
|
1470
|
+
readonly type: "question";
|
|
1471
|
+
readonly historical?: boolean | undefined;
|
|
1472
|
+
readonly request: {
|
|
1473
|
+
readonly id: string;
|
|
1474
|
+
readonly kind: "ask_user";
|
|
1475
|
+
readonly conversationId: string;
|
|
1476
|
+
readonly turnId: string;
|
|
1477
|
+
readonly itemId: string;
|
|
1478
|
+
readonly payload: {
|
|
1479
|
+
readonly request: {
|
|
1480
|
+
readonly itemId: string;
|
|
1481
|
+
readonly delivery: "tool" | "async";
|
|
1482
|
+
readonly blocking: boolean;
|
|
1483
|
+
readonly questions: readonly {
|
|
1484
|
+
readonly id: string;
|
|
1485
|
+
readonly header: string;
|
|
1486
|
+
readonly question: string;
|
|
1487
|
+
readonly isOther: boolean;
|
|
1488
|
+
readonly isSecret: boolean;
|
|
1489
|
+
readonly options: readonly {
|
|
1490
|
+
readonly label: string;
|
|
1491
|
+
readonly description: string;
|
|
1492
|
+
}[] | null;
|
|
1493
|
+
}[];
|
|
1494
|
+
readonly autoResolutionMs?: number | undefined;
|
|
1495
|
+
};
|
|
1496
|
+
};
|
|
1497
|
+
};
|
|
1498
|
+
} | {
|
|
1499
|
+
readonly type: "attachment";
|
|
1500
|
+
readonly attachment: {
|
|
1501
|
+
readonly kind: "file" | "image";
|
|
1502
|
+
readonly name: string;
|
|
1503
|
+
readonly path?: string | undefined;
|
|
1504
|
+
readonly url?: string | undefined;
|
|
1505
|
+
readonly mimeType?: string | undefined;
|
|
1506
|
+
};
|
|
1507
|
+
} | {
|
|
1508
|
+
readonly type: "media";
|
|
1509
|
+
readonly media: {
|
|
1510
|
+
readonly url: string;
|
|
1511
|
+
readonly alt?: string | undefined;
|
|
1512
|
+
readonly mimeType?: string | undefined;
|
|
1513
|
+
readonly prompt?: string | undefined;
|
|
1514
|
+
readonly title?: string | undefined;
|
|
1515
|
+
};
|
|
1516
|
+
readonly itemId?: string | undefined;
|
|
1517
|
+
} | {
|
|
1518
|
+
readonly type: "tool";
|
|
1519
|
+
readonly id: string;
|
|
1520
|
+
readonly title: string;
|
|
1521
|
+
readonly kind?: string | undefined;
|
|
1522
|
+
readonly status: "running" | "completed" | "failed";
|
|
1523
|
+
readonly statusText?: string | undefined;
|
|
1524
|
+
readonly body?: string | undefined;
|
|
1525
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
1526
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
1527
|
+
readonly metadata?: {
|
|
1528
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1529
|
+
} | undefined;
|
|
1530
|
+
})[];
|
|
1531
|
+
readonly createdAt?: string | undefined;
|
|
1532
|
+
readonly turnId?: string | undefined;
|
|
1533
|
+
readonly metadata?: {
|
|
1534
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1535
|
+
} | undefined;
|
|
1536
|
+
};
|
|
1537
|
+
};
|
|
1538
|
+
readonly conversationId: string;
|
|
1539
|
+
readonly turnId: string;
|
|
1540
|
+
} | {
|
|
1541
|
+
readonly seq: number;
|
|
1542
|
+
readonly occurredAt: string;
|
|
1543
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1544
|
+
readonly type: "tool.started";
|
|
1545
|
+
readonly payload: {
|
|
1546
|
+
readonly messageId: string;
|
|
1547
|
+
readonly toolPart: {
|
|
1548
|
+
readonly type: "tool";
|
|
1549
|
+
readonly id: string;
|
|
1550
|
+
readonly title: string;
|
|
1551
|
+
readonly kind?: string | undefined;
|
|
1552
|
+
readonly status: "running" | "completed" | "failed";
|
|
1553
|
+
readonly statusText?: string | undefined;
|
|
1554
|
+
readonly body?: string | undefined;
|
|
1555
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
1556
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
1557
|
+
readonly metadata?: {
|
|
1558
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1559
|
+
} | undefined;
|
|
1560
|
+
};
|
|
1561
|
+
};
|
|
1562
|
+
readonly conversationId: string;
|
|
1563
|
+
readonly turnId: string;
|
|
1564
|
+
} | {
|
|
1565
|
+
readonly seq: number;
|
|
1566
|
+
readonly occurredAt: string;
|
|
1567
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1568
|
+
readonly type: "tool.updated";
|
|
1569
|
+
readonly payload: {
|
|
1570
|
+
readonly messageId: string;
|
|
1571
|
+
readonly update: {
|
|
1572
|
+
readonly itemId: string;
|
|
1573
|
+
readonly title?: string | undefined;
|
|
1574
|
+
readonly status?: import("@codex-app-sdk/core/surface").SurfaceMessageToolPart["status"] | undefined;
|
|
1575
|
+
readonly statusText?: string | null | undefined;
|
|
1576
|
+
readonly body?: string | undefined;
|
|
1577
|
+
readonly bodyDelta?: string | undefined;
|
|
1578
|
+
readonly bodyAppend?: string | undefined;
|
|
1579
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
1580
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
1581
|
+
readonly metadata?: {
|
|
1582
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1583
|
+
} | undefined;
|
|
1584
|
+
readonly fallbackToolPart?: {
|
|
1585
|
+
readonly type: "tool";
|
|
1586
|
+
readonly id: string;
|
|
1587
|
+
readonly title: string;
|
|
1588
|
+
readonly kind?: string | undefined;
|
|
1589
|
+
readonly status: "running" | "completed" | "failed";
|
|
1590
|
+
readonly statusText?: string | undefined;
|
|
1591
|
+
readonly body?: string | undefined;
|
|
1592
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
1593
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
1594
|
+
readonly metadata?: {
|
|
1595
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1596
|
+
} | undefined;
|
|
1597
|
+
} | undefined;
|
|
1598
|
+
};
|
|
1599
|
+
};
|
|
1600
|
+
readonly conversationId: string;
|
|
1601
|
+
readonly turnId: string;
|
|
1602
|
+
} | {
|
|
1603
|
+
readonly seq: number;
|
|
1604
|
+
readonly occurredAt: string;
|
|
1605
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1606
|
+
readonly type: "tool.completed";
|
|
1607
|
+
readonly payload: {
|
|
1608
|
+
readonly messageId: string;
|
|
1609
|
+
readonly toolPart: {
|
|
1610
|
+
readonly type: "tool";
|
|
1611
|
+
readonly id: string;
|
|
1612
|
+
readonly title: string;
|
|
1613
|
+
readonly kind?: string | undefined;
|
|
1614
|
+
readonly status: "running" | "completed" | "failed";
|
|
1615
|
+
readonly statusText?: string | undefined;
|
|
1616
|
+
readonly body?: string | undefined;
|
|
1617
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
1618
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
1619
|
+
readonly metadata?: {
|
|
1620
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1621
|
+
} | undefined;
|
|
1622
|
+
};
|
|
1623
|
+
};
|
|
1624
|
+
readonly conversationId: string;
|
|
1625
|
+
readonly turnId: string;
|
|
1626
|
+
} | {
|
|
1627
|
+
readonly seq: number;
|
|
1628
|
+
readonly occurredAt: string;
|
|
1629
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1630
|
+
readonly type: "file.activity";
|
|
1631
|
+
readonly payload: {
|
|
1632
|
+
readonly messageId: string;
|
|
1633
|
+
readonly itemId: string;
|
|
1634
|
+
readonly path: string;
|
|
1635
|
+
readonly action: import("@codex-app-sdk/core/surface").CodexSurfaceFileActivityAction;
|
|
1636
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceFileActivityStatus;
|
|
1637
|
+
};
|
|
1638
|
+
readonly conversationId: string;
|
|
1639
|
+
readonly turnId: string;
|
|
1640
|
+
} | {
|
|
1641
|
+
readonly seq: number;
|
|
1642
|
+
readonly occurredAt: string;
|
|
1643
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1644
|
+
readonly type: "subagent.toolCallChanged";
|
|
1645
|
+
readonly payload: {
|
|
1646
|
+
readonly lifecycle: import("@codex-app-sdk/core/surface").CodexSurfaceSubagentItemLifecycle;
|
|
1647
|
+
readonly toolCall: {
|
|
1648
|
+
readonly id: string;
|
|
1649
|
+
readonly tool: import("@codex-app-sdk/core/surface").CodexSurfaceSubagentTool;
|
|
1650
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceSubagentToolCallStatus;
|
|
1651
|
+
readonly senderConversationId: string;
|
|
1652
|
+
readonly receiverConversationIds: readonly string[];
|
|
1653
|
+
readonly prompt: string | null;
|
|
1654
|
+
readonly model: string | null;
|
|
1655
|
+
readonly reasoningEffort: string | null;
|
|
1656
|
+
readonly agentStates: {
|
|
1657
|
+
readonly [x: string]: {
|
|
1658
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceSubagentStatus;
|
|
1659
|
+
readonly message: string | null;
|
|
1660
|
+
};
|
|
1661
|
+
};
|
|
1662
|
+
};
|
|
1663
|
+
};
|
|
1664
|
+
readonly conversationId: string;
|
|
1665
|
+
readonly turnId: string;
|
|
1666
|
+
} | {
|
|
1667
|
+
readonly seq: number;
|
|
1668
|
+
readonly occurredAt: string;
|
|
1669
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1670
|
+
readonly type: "subagent.activity";
|
|
1671
|
+
readonly payload: {
|
|
1672
|
+
readonly lifecycle: import("@codex-app-sdk/core/surface").CodexSurfaceSubagentItemLifecycle;
|
|
1673
|
+
readonly activity: {
|
|
1674
|
+
readonly id: string;
|
|
1675
|
+
readonly kind: "started" | "interacted" | "interrupted" | "completed";
|
|
1676
|
+
readonly agentConversationId: string;
|
|
1677
|
+
readonly agentPath: string;
|
|
1678
|
+
};
|
|
1679
|
+
};
|
|
1680
|
+
readonly conversationId: string;
|
|
1681
|
+
readonly turnId: string;
|
|
1682
|
+
} | {
|
|
1683
|
+
readonly seq: number;
|
|
1684
|
+
readonly occurredAt: string;
|
|
1685
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1686
|
+
readonly type: "plan.delta";
|
|
1687
|
+
readonly payload: {
|
|
1688
|
+
readonly itemId: string;
|
|
1689
|
+
readonly delta: string;
|
|
1690
|
+
readonly markdown: string;
|
|
1691
|
+
};
|
|
1692
|
+
readonly conversationId: string;
|
|
1693
|
+
readonly turnId: string;
|
|
1694
|
+
} | {
|
|
1695
|
+
readonly seq: number;
|
|
1696
|
+
readonly occurredAt: string;
|
|
1697
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1698
|
+
readonly type: "plan.updated";
|
|
1699
|
+
readonly payload: {
|
|
1700
|
+
readonly explanation: string | null;
|
|
1701
|
+
readonly steps: readonly {
|
|
1702
|
+
readonly step: string;
|
|
1703
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfacePlanStepStatus;
|
|
1704
|
+
}[];
|
|
1705
|
+
readonly markdown: string;
|
|
1706
|
+
readonly status: "running" | "completed";
|
|
1707
|
+
};
|
|
1708
|
+
readonly conversationId: string;
|
|
1709
|
+
readonly turnId: string;
|
|
1710
|
+
} | {
|
|
1711
|
+
readonly seq: number;
|
|
1712
|
+
readonly occurredAt: string;
|
|
1713
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1714
|
+
readonly type: "plan.completed";
|
|
1715
|
+
readonly payload: {
|
|
1716
|
+
readonly itemId: string;
|
|
1717
|
+
readonly markdown: string;
|
|
1718
|
+
};
|
|
1719
|
+
readonly conversationId: string;
|
|
1720
|
+
readonly turnId: string;
|
|
1721
|
+
} | {
|
|
1722
|
+
readonly seq: number;
|
|
1723
|
+
readonly occurredAt: string;
|
|
1724
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1725
|
+
readonly type: "context.compactionStarted";
|
|
1726
|
+
readonly payload: {
|
|
1727
|
+
readonly itemId: string | null;
|
|
1728
|
+
};
|
|
1729
|
+
readonly conversationId: string;
|
|
1730
|
+
readonly turnId: string;
|
|
1731
|
+
} | {
|
|
1732
|
+
readonly seq: number;
|
|
1733
|
+
readonly occurredAt: string;
|
|
1734
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1735
|
+
readonly type: "context.compactionCompleted";
|
|
1736
|
+
readonly payload: {
|
|
1737
|
+
readonly itemId: string | null;
|
|
1738
|
+
readonly message: {
|
|
1739
|
+
readonly id: string;
|
|
1740
|
+
readonly kind?: "compaction" | "steer" | undefined;
|
|
1741
|
+
readonly role: "user" | "assistant" | "system";
|
|
1742
|
+
readonly status: "complete" | "streaming" | "error";
|
|
1743
|
+
readonly parts: readonly ({
|
|
1744
|
+
readonly type: "text";
|
|
1745
|
+
readonly text: string;
|
|
1746
|
+
readonly itemId?: string | undefined;
|
|
1747
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
1748
|
+
} | {
|
|
1749
|
+
readonly type: "reasoning";
|
|
1750
|
+
readonly summary: string;
|
|
1751
|
+
readonly itemId: string;
|
|
1752
|
+
readonly summaryIndex: number;
|
|
1753
|
+
} | {
|
|
1754
|
+
readonly type: "status";
|
|
1755
|
+
readonly text: string;
|
|
1756
|
+
} | {
|
|
1757
|
+
readonly type: "question";
|
|
1758
|
+
readonly historical?: boolean | undefined;
|
|
1759
|
+
readonly request: {
|
|
1760
|
+
readonly id: string;
|
|
1761
|
+
readonly kind: "ask_user";
|
|
1762
|
+
readonly conversationId: string;
|
|
1763
|
+
readonly turnId: string;
|
|
1764
|
+
readonly itemId: string;
|
|
1765
|
+
readonly payload: {
|
|
1766
|
+
readonly request: {
|
|
1767
|
+
readonly itemId: string;
|
|
1768
|
+
readonly delivery: "tool" | "async";
|
|
1769
|
+
readonly blocking: boolean;
|
|
1770
|
+
readonly questions: readonly {
|
|
1771
|
+
readonly id: string;
|
|
1772
|
+
readonly header: string;
|
|
1773
|
+
readonly question: string;
|
|
1774
|
+
readonly isOther: boolean;
|
|
1775
|
+
readonly isSecret: boolean;
|
|
1776
|
+
readonly options: readonly {
|
|
1777
|
+
readonly label: string;
|
|
1778
|
+
readonly description: string;
|
|
1779
|
+
}[] | null;
|
|
1780
|
+
}[];
|
|
1781
|
+
readonly autoResolutionMs?: number | undefined;
|
|
1782
|
+
};
|
|
1783
|
+
};
|
|
1784
|
+
};
|
|
1785
|
+
} | {
|
|
1786
|
+
readonly type: "attachment";
|
|
1787
|
+
readonly attachment: {
|
|
1788
|
+
readonly kind: "file" | "image";
|
|
1789
|
+
readonly name: string;
|
|
1790
|
+
readonly path?: string | undefined;
|
|
1791
|
+
readonly url?: string | undefined;
|
|
1792
|
+
readonly mimeType?: string | undefined;
|
|
1793
|
+
};
|
|
1794
|
+
} | {
|
|
1795
|
+
readonly type: "media";
|
|
1796
|
+
readonly media: {
|
|
1797
|
+
readonly url: string;
|
|
1798
|
+
readonly alt?: string | undefined;
|
|
1799
|
+
readonly mimeType?: string | undefined;
|
|
1800
|
+
readonly prompt?: string | undefined;
|
|
1801
|
+
readonly title?: string | undefined;
|
|
1802
|
+
};
|
|
1803
|
+
readonly itemId?: string | undefined;
|
|
1804
|
+
} | {
|
|
1805
|
+
readonly type: "tool";
|
|
1806
|
+
readonly id: string;
|
|
1807
|
+
readonly title: string;
|
|
1808
|
+
readonly kind?: string | undefined;
|
|
1809
|
+
readonly status: "running" | "completed" | "failed";
|
|
1810
|
+
readonly statusText?: string | undefined;
|
|
1811
|
+
readonly body?: string | undefined;
|
|
1812
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
1813
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
1814
|
+
readonly metadata?: {
|
|
1815
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1816
|
+
} | undefined;
|
|
1817
|
+
})[];
|
|
1818
|
+
readonly createdAt?: string | undefined;
|
|
1819
|
+
readonly turnId?: string | undefined;
|
|
1820
|
+
readonly metadata?: {
|
|
1821
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1822
|
+
} | undefined;
|
|
1823
|
+
};
|
|
1824
|
+
};
|
|
1825
|
+
readonly conversationId: string;
|
|
1826
|
+
readonly turnId: string;
|
|
1827
|
+
} | {
|
|
1828
|
+
readonly seq: number;
|
|
1829
|
+
readonly occurredAt: string;
|
|
1830
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1831
|
+
readonly type: "approval.requested";
|
|
1832
|
+
readonly payload: {
|
|
1833
|
+
readonly approval: {
|
|
1834
|
+
readonly id: string;
|
|
1835
|
+
readonly kind: "command" | "file-change" | "permissions";
|
|
1836
|
+
readonly conversationId: string;
|
|
1837
|
+
readonly turnId?: string | undefined;
|
|
1838
|
+
readonly itemId: string;
|
|
1839
|
+
readonly title: string;
|
|
1840
|
+
readonly description?: string | undefined;
|
|
1841
|
+
readonly command?: string | undefined;
|
|
1842
|
+
readonly cwd?: string | undefined;
|
|
1843
|
+
readonly requestedPermissions?: readonly ({
|
|
1844
|
+
readonly kind: "filesystem";
|
|
1845
|
+
readonly access: "read" | "write" | "deny";
|
|
1846
|
+
readonly path: string;
|
|
1847
|
+
} | {
|
|
1848
|
+
readonly kind: "network";
|
|
1849
|
+
readonly enabled: boolean;
|
|
1850
|
+
readonly host?: string | undefined;
|
|
1851
|
+
readonly protocol?: string | undefined;
|
|
1852
|
+
})[] | undefined;
|
|
1853
|
+
readonly allowedScopes?: readonly CodexSurfaceApprovalScope[] | undefined;
|
|
1854
|
+
readonly canDeny?: boolean | undefined;
|
|
1855
|
+
};
|
|
1856
|
+
};
|
|
1857
|
+
readonly conversationId: string;
|
|
1858
|
+
readonly turnId?: string | undefined;
|
|
1859
|
+
} | {
|
|
1860
|
+
readonly seq: number;
|
|
1861
|
+
readonly occurredAt: string;
|
|
1862
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1863
|
+
readonly type: "approval.resolved";
|
|
1864
|
+
readonly payload: {
|
|
1865
|
+
readonly approval: {
|
|
1866
|
+
readonly id: string;
|
|
1867
|
+
readonly kind: "command" | "file-change" | "permissions";
|
|
1868
|
+
readonly conversationId: string;
|
|
1869
|
+
readonly turnId?: string | undefined;
|
|
1870
|
+
readonly itemId: string;
|
|
1871
|
+
readonly title: string;
|
|
1872
|
+
readonly description?: string | undefined;
|
|
1873
|
+
readonly command?: string | undefined;
|
|
1874
|
+
readonly cwd?: string | undefined;
|
|
1875
|
+
readonly requestedPermissions?: readonly ({
|
|
1876
|
+
readonly kind: "filesystem";
|
|
1877
|
+
readonly access: "read" | "write" | "deny";
|
|
1878
|
+
readonly path: string;
|
|
1879
|
+
} | {
|
|
1880
|
+
readonly kind: "network";
|
|
1881
|
+
readonly enabled: boolean;
|
|
1882
|
+
readonly host?: string | undefined;
|
|
1883
|
+
readonly protocol?: string | undefined;
|
|
1884
|
+
})[] | undefined;
|
|
1885
|
+
readonly allowedScopes?: readonly CodexSurfaceApprovalScope[] | undefined;
|
|
1886
|
+
readonly canDeny?: boolean | undefined;
|
|
1887
|
+
};
|
|
1888
|
+
readonly decision: CodexSurfaceApprovalDecision | null;
|
|
1889
|
+
readonly scope: CodexSurfaceApprovalScope | null;
|
|
1890
|
+
readonly reason: "host" | "server" | "conversation_closed" | "conversation_removed" | "surface_disconnected";
|
|
1891
|
+
};
|
|
1892
|
+
readonly conversationId: string;
|
|
1893
|
+
readonly turnId?: string | undefined;
|
|
1894
|
+
} | {
|
|
1895
|
+
readonly seq: number;
|
|
1896
|
+
readonly occurredAt: string;
|
|
1897
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1898
|
+
readonly type: "clientRequest.requested";
|
|
1899
|
+
readonly payload: {
|
|
1900
|
+
readonly request: {
|
|
1901
|
+
readonly id: string;
|
|
1902
|
+
readonly kind: "ask_user";
|
|
1903
|
+
readonly conversationId: string;
|
|
1904
|
+
readonly turnId: string;
|
|
1905
|
+
readonly itemId: string;
|
|
1906
|
+
readonly payload: {
|
|
1907
|
+
readonly request: {
|
|
1908
|
+
readonly itemId: string;
|
|
1909
|
+
readonly delivery: "tool" | "async";
|
|
1910
|
+
readonly blocking: boolean;
|
|
1911
|
+
readonly questions: readonly {
|
|
1912
|
+
readonly id: string;
|
|
1913
|
+
readonly header: string;
|
|
1914
|
+
readonly question: string;
|
|
1915
|
+
readonly isOther: boolean;
|
|
1916
|
+
readonly isSecret: boolean;
|
|
1917
|
+
readonly options: readonly {
|
|
1918
|
+
readonly label: string;
|
|
1919
|
+
readonly description: string;
|
|
1920
|
+
}[] | null;
|
|
1921
|
+
}[];
|
|
1922
|
+
readonly autoResolutionMs?: number | undefined;
|
|
1923
|
+
};
|
|
1924
|
+
};
|
|
1925
|
+
} | {
|
|
1926
|
+
readonly id: string;
|
|
1927
|
+
readonly kind: "confirm_tool";
|
|
1928
|
+
readonly conversationId: string;
|
|
1929
|
+
readonly turnId: string | null;
|
|
1930
|
+
readonly itemId: string;
|
|
1931
|
+
readonly payload: {
|
|
1932
|
+
readonly confirmation: {
|
|
1933
|
+
readonly argumentsPreview: string;
|
|
1934
|
+
readonly integrationId: string;
|
|
1935
|
+
readonly integrationName: string;
|
|
1936
|
+
readonly summary: string;
|
|
1937
|
+
readonly toolName: string;
|
|
1938
|
+
readonly allowConversation?: boolean | undefined;
|
|
1939
|
+
readonly allowAlways?: boolean | undefined;
|
|
1940
|
+
};
|
|
1941
|
+
};
|
|
1942
|
+
};
|
|
1943
|
+
};
|
|
1944
|
+
readonly conversationId: string;
|
|
1945
|
+
readonly turnId?: string | undefined;
|
|
1946
|
+
} | {
|
|
1947
|
+
readonly seq: number;
|
|
1948
|
+
readonly occurredAt: string;
|
|
1949
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
1950
|
+
readonly type: "clientRequest.resolved";
|
|
1951
|
+
readonly payload: {
|
|
1952
|
+
readonly request: {
|
|
1953
|
+
readonly id: string;
|
|
1954
|
+
readonly kind: "ask_user";
|
|
1955
|
+
readonly conversationId: string;
|
|
1956
|
+
readonly turnId: string;
|
|
1957
|
+
readonly itemId: string;
|
|
1958
|
+
readonly payload: {
|
|
1959
|
+
readonly request: {
|
|
1960
|
+
readonly itemId: string;
|
|
1961
|
+
readonly delivery: "tool" | "async";
|
|
1962
|
+
readonly blocking: boolean;
|
|
1963
|
+
readonly questions: readonly {
|
|
1964
|
+
readonly id: string;
|
|
1965
|
+
readonly header: string;
|
|
1966
|
+
readonly question: string;
|
|
1967
|
+
readonly isOther: boolean;
|
|
1968
|
+
readonly isSecret: boolean;
|
|
1969
|
+
readonly options: readonly {
|
|
1970
|
+
readonly label: string;
|
|
1971
|
+
readonly description: string;
|
|
1972
|
+
}[] | null;
|
|
1973
|
+
}[];
|
|
1974
|
+
readonly autoResolutionMs?: number | undefined;
|
|
1975
|
+
};
|
|
1976
|
+
};
|
|
1977
|
+
} | {
|
|
1978
|
+
readonly id: string;
|
|
1979
|
+
readonly kind: "confirm_tool";
|
|
1980
|
+
readonly conversationId: string;
|
|
1981
|
+
readonly turnId: string | null;
|
|
1982
|
+
readonly itemId: string;
|
|
1983
|
+
readonly payload: {
|
|
1984
|
+
readonly confirmation: {
|
|
1985
|
+
readonly argumentsPreview: string;
|
|
1986
|
+
readonly integrationId: string;
|
|
1987
|
+
readonly integrationName: string;
|
|
1988
|
+
readonly summary: string;
|
|
1989
|
+
readonly toolName: string;
|
|
1990
|
+
readonly allowConversation?: boolean | undefined;
|
|
1991
|
+
readonly allowAlways?: boolean | undefined;
|
|
1992
|
+
};
|
|
1993
|
+
};
|
|
1994
|
+
};
|
|
1995
|
+
readonly response: {
|
|
1996
|
+
readonly id: string;
|
|
1997
|
+
readonly payload?: {
|
|
1998
|
+
readonly answers?: {
|
|
1999
|
+
readonly [x: string]: {
|
|
2000
|
+
readonly answers: readonly string[];
|
|
2001
|
+
};
|
|
2002
|
+
} | undefined;
|
|
2003
|
+
readonly cancelled?: boolean | undefined;
|
|
2004
|
+
readonly decision?: (import("@codex-app-sdk/core/surface").CodexSurfaceToolConfirmationDecision | null) | undefined;
|
|
2005
|
+
} | undefined;
|
|
2006
|
+
} | null;
|
|
2007
|
+
readonly reason: "host" | "server" | "conversation_closed" | "conversation_removed" | "surface_disconnected";
|
|
2008
|
+
};
|
|
2009
|
+
readonly conversationId: string;
|
|
2010
|
+
readonly turnId?: string | undefined;
|
|
2011
|
+
} | null, {
|
|
2012
|
+
readonly seq: number;
|
|
2013
|
+
readonly occurredAt: string;
|
|
2014
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2015
|
+
readonly type: "surface.statusChanged";
|
|
2016
|
+
readonly payload: {
|
|
2017
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceStatus;
|
|
2018
|
+
readonly error: string | null;
|
|
2019
|
+
};
|
|
2020
|
+
} | {
|
|
2021
|
+
readonly seq: number;
|
|
2022
|
+
readonly occurredAt: string;
|
|
2023
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2024
|
+
readonly type: "authentication.changed";
|
|
2025
|
+
readonly payload: {
|
|
2026
|
+
readonly authentication: {
|
|
2027
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceCatalogStatus;
|
|
2028
|
+
readonly account: {
|
|
2029
|
+
readonly type: "apiKey";
|
|
2030
|
+
} | {
|
|
2031
|
+
readonly type: "chatgpt";
|
|
2032
|
+
readonly email: string | null;
|
|
2033
|
+
readonly planType: string;
|
|
2034
|
+
} | {
|
|
2035
|
+
readonly type: "amazonBedrock";
|
|
2036
|
+
readonly credentialSource: "codexManaged" | "awsManaged";
|
|
2037
|
+
} | null;
|
|
2038
|
+
readonly requiresOpenaiAuth: boolean | null;
|
|
2039
|
+
readonly error: string | null;
|
|
2040
|
+
readonly login: {
|
|
2041
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceLoginStatus;
|
|
2042
|
+
readonly loginId: string | null;
|
|
2043
|
+
readonly authUrl: string | null;
|
|
2044
|
+
readonly error: string | null;
|
|
2045
|
+
};
|
|
2046
|
+
};
|
|
2047
|
+
};
|
|
2048
|
+
} | {
|
|
2049
|
+
readonly seq: number;
|
|
2050
|
+
readonly occurredAt: string;
|
|
2051
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2052
|
+
readonly type: "catalog.modelsChanged";
|
|
2053
|
+
readonly payload: {
|
|
2054
|
+
readonly models: readonly {
|
|
2055
|
+
readonly id: string;
|
|
2056
|
+
readonly model: string;
|
|
2057
|
+
readonly displayName: string;
|
|
2058
|
+
readonly description?: string | undefined;
|
|
2059
|
+
readonly hidden?: boolean | undefined;
|
|
2060
|
+
readonly supportedReasoningEfforts?: readonly {
|
|
2061
|
+
readonly reasoningEffort: string;
|
|
2062
|
+
readonly description: string;
|
|
2063
|
+
}[] | undefined;
|
|
2064
|
+
readonly defaultReasoningEffort?: string | null | undefined;
|
|
2065
|
+
readonly serviceTiers?: readonly {
|
|
2066
|
+
readonly id: string;
|
|
2067
|
+
readonly name: string;
|
|
2068
|
+
readonly description: string;
|
|
2069
|
+
}[] | undefined;
|
|
2070
|
+
readonly defaultServiceTier?: string | null | undefined;
|
|
2071
|
+
readonly isDefault?: boolean | undefined;
|
|
2072
|
+
readonly providerMetadata?: {
|
|
2073
|
+
readonly [x: string]: Readonly<unknown>;
|
|
2074
|
+
} | undefined;
|
|
2075
|
+
}[];
|
|
2076
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceCatalogStatus;
|
|
2077
|
+
};
|
|
2078
|
+
} | {
|
|
2079
|
+
readonly seq: number;
|
|
2080
|
+
readonly occurredAt: string;
|
|
2081
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2082
|
+
readonly type: "catalog.skillsChanged";
|
|
2083
|
+
readonly payload: {
|
|
2084
|
+
readonly cwd: string | null;
|
|
2085
|
+
readonly skills: readonly {
|
|
2086
|
+
readonly name: string;
|
|
2087
|
+
readonly description?: string | undefined;
|
|
2088
|
+
readonly shortDescription?: string | undefined;
|
|
2089
|
+
readonly displayName?: string | undefined;
|
|
2090
|
+
readonly iconSmall?: string | undefined;
|
|
2091
|
+
readonly iconLarge?: string | undefined;
|
|
2092
|
+
readonly brandColor?: string | undefined;
|
|
2093
|
+
readonly defaultPrompt?: string | undefined;
|
|
2094
|
+
readonly path: string;
|
|
2095
|
+
readonly scope?: string | undefined;
|
|
2096
|
+
readonly enabled: boolean;
|
|
2097
|
+
}[];
|
|
2098
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceCatalogStatus;
|
|
2099
|
+
};
|
|
2100
|
+
} | {
|
|
2101
|
+
readonly seq: number;
|
|
2102
|
+
readonly occurredAt: string;
|
|
2103
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2104
|
+
readonly type: "catalog.pluginsChanged";
|
|
2105
|
+
readonly payload: {
|
|
2106
|
+
readonly plugins: readonly {
|
|
2107
|
+
readonly id: string;
|
|
2108
|
+
readonly name: string;
|
|
2109
|
+
readonly displayName: string;
|
|
2110
|
+
readonly shortDescription?: string | undefined;
|
|
2111
|
+
readonly longDescription?: string | undefined;
|
|
2112
|
+
readonly brandColor?: string | undefined;
|
|
2113
|
+
readonly iconUrl?: string | undefined;
|
|
2114
|
+
readonly iconUrlDark?: string | undefined;
|
|
2115
|
+
readonly enabled: boolean;
|
|
2116
|
+
}[];
|
|
2117
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceCatalogStatus;
|
|
2118
|
+
};
|
|
2119
|
+
} | {
|
|
2120
|
+
readonly seq: number;
|
|
2121
|
+
readonly occurredAt: string;
|
|
2122
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2123
|
+
readonly type: "catalog.permissionsChanged";
|
|
2124
|
+
readonly payload: {
|
|
2125
|
+
readonly cwd: string | null;
|
|
2126
|
+
readonly permissionProfiles: readonly {
|
|
2127
|
+
readonly id: string;
|
|
2128
|
+
readonly description: string | null;
|
|
2129
|
+
readonly allowed: boolean;
|
|
2130
|
+
}[];
|
|
2131
|
+
readonly approvalPresets: readonly import("@codex-app-sdk/core/surface").CodexSurfaceApprovalPreset[];
|
|
2132
|
+
};
|
|
2133
|
+
} | {
|
|
2134
|
+
readonly seq: number;
|
|
2135
|
+
readonly occurredAt: string;
|
|
2136
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2137
|
+
readonly type: "rateLimits.changed";
|
|
2138
|
+
readonly payload: {
|
|
2139
|
+
readonly rateLimits: {
|
|
2140
|
+
readonly rateLimits: {
|
|
2141
|
+
readonly limitId: string | null;
|
|
2142
|
+
readonly limitName: string | null;
|
|
2143
|
+
readonly primary: {
|
|
2144
|
+
readonly usedPercent: number;
|
|
2145
|
+
readonly windowDurationMins: number | null;
|
|
2146
|
+
readonly resetsAt: number | null;
|
|
2147
|
+
} | null;
|
|
2148
|
+
readonly secondary: {
|
|
2149
|
+
readonly usedPercent: number;
|
|
2150
|
+
readonly windowDurationMins: number | null;
|
|
2151
|
+
readonly resetsAt: number | null;
|
|
2152
|
+
} | null;
|
|
2153
|
+
readonly credits: {
|
|
2154
|
+
readonly hasCredits: boolean;
|
|
2155
|
+
readonly unlimited: boolean;
|
|
2156
|
+
readonly balance: string | null;
|
|
2157
|
+
} | null;
|
|
2158
|
+
readonly individualLimit: {
|
|
2159
|
+
readonly limit: string;
|
|
2160
|
+
readonly used: string;
|
|
2161
|
+
readonly remainingPercent: number;
|
|
2162
|
+
readonly resetsAt: number;
|
|
2163
|
+
} | null;
|
|
2164
|
+
readonly planType: string | null;
|
|
2165
|
+
readonly rateLimitReachedType: string | null;
|
|
2166
|
+
};
|
|
2167
|
+
readonly rateLimitsByLimitId: {
|
|
2168
|
+
readonly [x: string]: {
|
|
2169
|
+
readonly limitId: string | null;
|
|
2170
|
+
readonly limitName: string | null;
|
|
2171
|
+
readonly primary: {
|
|
2172
|
+
readonly usedPercent: number;
|
|
2173
|
+
readonly windowDurationMins: number | null;
|
|
2174
|
+
readonly resetsAt: number | null;
|
|
2175
|
+
} | null;
|
|
2176
|
+
readonly secondary: {
|
|
2177
|
+
readonly usedPercent: number;
|
|
2178
|
+
readonly windowDurationMins: number | null;
|
|
2179
|
+
readonly resetsAt: number | null;
|
|
2180
|
+
} | null;
|
|
2181
|
+
readonly credits: {
|
|
2182
|
+
readonly hasCredits: boolean;
|
|
2183
|
+
readonly unlimited: boolean;
|
|
2184
|
+
readonly balance: string | null;
|
|
2185
|
+
} | null;
|
|
2186
|
+
readonly individualLimit: {
|
|
2187
|
+
readonly limit: string;
|
|
2188
|
+
readonly used: string;
|
|
2189
|
+
readonly remainingPercent: number;
|
|
2190
|
+
readonly resetsAt: number;
|
|
2191
|
+
} | null;
|
|
2192
|
+
readonly planType: string | null;
|
|
2193
|
+
readonly rateLimitReachedType: string | null;
|
|
2194
|
+
};
|
|
2195
|
+
} | null;
|
|
2196
|
+
readonly rateLimitResetCredits: {
|
|
2197
|
+
readonly availableCount: string;
|
|
2198
|
+
readonly credits: readonly {
|
|
2199
|
+
readonly id: string;
|
|
2200
|
+
readonly resetType: string;
|
|
2201
|
+
readonly status: string;
|
|
2202
|
+
readonly grantedAt: number;
|
|
2203
|
+
readonly expiresAt: number | null;
|
|
2204
|
+
readonly title: string | null;
|
|
2205
|
+
readonly description: string | null;
|
|
2206
|
+
}[] | null;
|
|
2207
|
+
} | null;
|
|
2208
|
+
} | null;
|
|
2209
|
+
};
|
|
2210
|
+
} | {
|
|
2211
|
+
readonly seq: number;
|
|
2212
|
+
readonly occurredAt: string;
|
|
2213
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2214
|
+
readonly type: "remoteControl.statusChanged";
|
|
2215
|
+
readonly payload: {
|
|
2216
|
+
readonly status: {
|
|
2217
|
+
readonly status: "disabled" | "connecting" | "connected" | "errored";
|
|
2218
|
+
readonly serverName: string;
|
|
2219
|
+
readonly installationId: string;
|
|
2220
|
+
readonly environmentId: string | null;
|
|
2221
|
+
};
|
|
2222
|
+
};
|
|
2223
|
+
} | {
|
|
2224
|
+
readonly seq: number;
|
|
2225
|
+
readonly occurredAt: string;
|
|
2226
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2227
|
+
readonly type: "conversation.selected";
|
|
2228
|
+
readonly payload: {
|
|
2229
|
+
readonly conversationId: string | null;
|
|
2230
|
+
};
|
|
2231
|
+
} | {
|
|
2232
|
+
readonly seq: number;
|
|
2233
|
+
readonly occurredAt: string;
|
|
2234
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2235
|
+
readonly type: "conversation.summaryUpserted";
|
|
2236
|
+
readonly payload: {
|
|
2237
|
+
readonly summary: {
|
|
2238
|
+
readonly id: string;
|
|
2239
|
+
readonly sessionId?: string | undefined;
|
|
2240
|
+
readonly parentConversationId?: string | undefined;
|
|
2241
|
+
readonly agentNickname?: string | undefined;
|
|
2242
|
+
readonly agentRole?: string | undefined;
|
|
2243
|
+
readonly title: string;
|
|
2244
|
+
readonly preview: string;
|
|
2245
|
+
readonly cwd: string;
|
|
2246
|
+
readonly status: "idle" | "active" | "error";
|
|
2247
|
+
readonly turnCount: number;
|
|
2248
|
+
readonly createdAt: string;
|
|
2249
|
+
readonly updatedAt: string;
|
|
2250
|
+
};
|
|
2251
|
+
readonly reason: "created" | "listed" | "resumed" | "started" | "updated";
|
|
2252
|
+
};
|
|
2253
|
+
readonly conversationId: string;
|
|
2254
|
+
} | {
|
|
2255
|
+
readonly seq: number;
|
|
2256
|
+
readonly occurredAt: string;
|
|
2257
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2258
|
+
readonly type: "conversation.summaryRemoved";
|
|
2259
|
+
readonly payload: {
|
|
2260
|
+
readonly reason: "archived" | "deleted";
|
|
2261
|
+
};
|
|
2262
|
+
readonly conversationId: string;
|
|
2263
|
+
} | {
|
|
2264
|
+
readonly seq: number;
|
|
2265
|
+
readonly occurredAt: string;
|
|
2266
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2267
|
+
readonly type: "conversation.historyReplaced";
|
|
2268
|
+
readonly payload: {
|
|
2269
|
+
readonly reason: import("@codex-app-sdk/core/surface").CodexSurfaceHistoryReason;
|
|
2270
|
+
readonly messages: readonly {
|
|
2271
|
+
readonly id: string;
|
|
2272
|
+
readonly kind?: "compaction" | "steer" | undefined;
|
|
2273
|
+
readonly role: "user" | "assistant" | "system";
|
|
2274
|
+
readonly status: "complete" | "streaming" | "error";
|
|
2275
|
+
readonly parts: readonly ({
|
|
2276
|
+
readonly type: "text";
|
|
2277
|
+
readonly text: string;
|
|
2278
|
+
readonly itemId?: string | undefined;
|
|
2279
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
2280
|
+
} | {
|
|
2281
|
+
readonly type: "reasoning";
|
|
2282
|
+
readonly summary: string;
|
|
2283
|
+
readonly itemId: string;
|
|
2284
|
+
readonly summaryIndex: number;
|
|
2285
|
+
} | {
|
|
2286
|
+
readonly type: "status";
|
|
2287
|
+
readonly text: string;
|
|
2288
|
+
} | {
|
|
2289
|
+
readonly type: "question";
|
|
2290
|
+
readonly historical?: boolean | undefined;
|
|
2291
|
+
readonly request: {
|
|
2292
|
+
readonly id: string;
|
|
2293
|
+
readonly kind: "ask_user";
|
|
2294
|
+
readonly conversationId: string;
|
|
2295
|
+
readonly turnId: string;
|
|
2296
|
+
readonly itemId: string;
|
|
2297
|
+
readonly payload: {
|
|
2298
|
+
readonly request: {
|
|
2299
|
+
readonly itemId: string;
|
|
2300
|
+
readonly delivery: "tool" | "async";
|
|
2301
|
+
readonly blocking: boolean;
|
|
2302
|
+
readonly questions: readonly {
|
|
2303
|
+
readonly id: string;
|
|
2304
|
+
readonly header: string;
|
|
2305
|
+
readonly question: string;
|
|
2306
|
+
readonly isOther: boolean;
|
|
2307
|
+
readonly isSecret: boolean;
|
|
2308
|
+
readonly options: readonly {
|
|
2309
|
+
readonly label: string;
|
|
2310
|
+
readonly description: string;
|
|
2311
|
+
}[] | null;
|
|
2312
|
+
}[];
|
|
2313
|
+
readonly autoResolutionMs?: number | undefined;
|
|
2314
|
+
};
|
|
2315
|
+
};
|
|
2316
|
+
};
|
|
2317
|
+
} | {
|
|
2318
|
+
readonly type: "attachment";
|
|
2319
|
+
readonly attachment: {
|
|
2320
|
+
readonly kind: "file" | "image";
|
|
2321
|
+
readonly name: string;
|
|
2322
|
+
readonly path?: string | undefined;
|
|
2323
|
+
readonly url?: string | undefined;
|
|
2324
|
+
readonly mimeType?: string | undefined;
|
|
2325
|
+
};
|
|
2326
|
+
} | {
|
|
2327
|
+
readonly type: "media";
|
|
2328
|
+
readonly media: {
|
|
2329
|
+
readonly url: string;
|
|
2330
|
+
readonly alt?: string | undefined;
|
|
2331
|
+
readonly mimeType?: string | undefined;
|
|
2332
|
+
readonly prompt?: string | undefined;
|
|
2333
|
+
readonly title?: string | undefined;
|
|
2334
|
+
};
|
|
2335
|
+
readonly itemId?: string | undefined;
|
|
2336
|
+
} | {
|
|
2337
|
+
readonly type: "tool";
|
|
2338
|
+
readonly id: string;
|
|
2339
|
+
readonly title: string;
|
|
2340
|
+
readonly kind?: string | undefined;
|
|
2341
|
+
readonly status: "running" | "completed" | "failed";
|
|
2342
|
+
readonly statusText?: string | undefined;
|
|
2343
|
+
readonly body?: string | undefined;
|
|
2344
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
2345
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
2346
|
+
readonly metadata?: {
|
|
2347
|
+
readonly [x: string]: Readonly<unknown>;
|
|
2348
|
+
} | undefined;
|
|
2349
|
+
})[];
|
|
2350
|
+
readonly createdAt?: string | undefined;
|
|
2351
|
+
readonly turnId?: string | undefined;
|
|
2352
|
+
readonly metadata?: {
|
|
2353
|
+
readonly [x: string]: Readonly<unknown>;
|
|
2354
|
+
} | undefined;
|
|
2355
|
+
}[];
|
|
2356
|
+
readonly threadStatus: {
|
|
2357
|
+
readonly type: "notLoaded";
|
|
2358
|
+
} | {
|
|
2359
|
+
readonly type: "idle";
|
|
2360
|
+
} | {
|
|
2361
|
+
readonly type: "systemError";
|
|
2362
|
+
} | {
|
|
2363
|
+
readonly type: "active";
|
|
2364
|
+
readonly activeFlags: readonly ("waitingOnApproval" | "waitingOnUserInput")[];
|
|
2365
|
+
} | null;
|
|
2366
|
+
readonly state?: {
|
|
2367
|
+
readonly error: string | null;
|
|
2368
|
+
readonly activeTurnId: string | null;
|
|
2369
|
+
readonly answeredClientRequestIds: readonly string[];
|
|
2370
|
+
readonly busy: boolean;
|
|
2371
|
+
readonly contextUsage: {
|
|
2372
|
+
readonly totalTokens: number;
|
|
2373
|
+
readonly inputTokens: number;
|
|
2374
|
+
readonly cachedInputTokens: number;
|
|
2375
|
+
readonly outputTokens: number;
|
|
2376
|
+
readonly reasoningOutputTokens: number;
|
|
2377
|
+
readonly lastTotalTokens: number;
|
|
2378
|
+
readonly modelContextWindow: number | null;
|
|
2379
|
+
readonly usedPercent: number | null;
|
|
2380
|
+
} | null;
|
|
2381
|
+
readonly executionPlan?: {
|
|
2382
|
+
readonly turnId: string;
|
|
2383
|
+
readonly explanation: string | null;
|
|
2384
|
+
readonly steps: readonly {
|
|
2385
|
+
readonly step: string;
|
|
2386
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfacePlanStepStatus;
|
|
2387
|
+
}[];
|
|
2388
|
+
readonly markdown: string;
|
|
2389
|
+
readonly updatedAt: string;
|
|
2390
|
+
} | null | undefined;
|
|
2391
|
+
readonly historyLoading: boolean;
|
|
2392
|
+
readonly historyState?: {
|
|
2393
|
+
readonly loadingStrategy: import("@codex-app-sdk/core/surface").CodexConversationLoadingStrategy;
|
|
2394
|
+
readonly hasOlder: boolean;
|
|
2395
|
+
readonly loadingOlder: boolean;
|
|
2396
|
+
readonly fullyLoaded: boolean;
|
|
2397
|
+
} | undefined;
|
|
2398
|
+
readonly turnGitDiff: {
|
|
2399
|
+
readonly turnId: string;
|
|
2400
|
+
readonly addedLines: number;
|
|
2401
|
+
readonly removedLines: number;
|
|
2402
|
+
readonly diff?: string | undefined;
|
|
2403
|
+
readonly updatedAt: string;
|
|
2404
|
+
} | null;
|
|
2405
|
+
readonly turnIds: readonly string[];
|
|
2406
|
+
readonly turns: readonly {
|
|
2407
|
+
readonly id: string;
|
|
2408
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceTurnStatus;
|
|
2409
|
+
readonly error: {
|
|
2410
|
+
readonly message: string;
|
|
2411
|
+
readonly additionalDetails: string | null;
|
|
2412
|
+
readonly codexErrorInfo: any;
|
|
2413
|
+
} | null;
|
|
2414
|
+
readonly willRetry: boolean;
|
|
2415
|
+
readonly startedAt: string | null;
|
|
2416
|
+
readonly completedAt: string | null;
|
|
2417
|
+
readonly durationMs: number | null;
|
|
2418
|
+
}[];
|
|
2419
|
+
} | undefined;
|
|
2420
|
+
};
|
|
2421
|
+
readonly conversationId: string;
|
|
2422
|
+
} | {
|
|
2423
|
+
readonly seq: number;
|
|
2424
|
+
readonly occurredAt: string;
|
|
2425
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2426
|
+
readonly type: "conversation.historyPrepended";
|
|
2427
|
+
readonly payload: {
|
|
2428
|
+
readonly messages: readonly {
|
|
2429
|
+
readonly id: string;
|
|
2430
|
+
readonly kind?: "compaction" | "steer" | undefined;
|
|
2431
|
+
readonly role: "user" | "assistant" | "system";
|
|
2432
|
+
readonly status: "complete" | "streaming" | "error";
|
|
2433
|
+
readonly parts: readonly ({
|
|
2434
|
+
readonly type: "text";
|
|
2435
|
+
readonly text: string;
|
|
2436
|
+
readonly itemId?: string | undefined;
|
|
2437
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
2438
|
+
} | {
|
|
2439
|
+
readonly type: "reasoning";
|
|
2440
|
+
readonly summary: string;
|
|
2441
|
+
readonly itemId: string;
|
|
2442
|
+
readonly summaryIndex: number;
|
|
2443
|
+
} | {
|
|
2444
|
+
readonly type: "status";
|
|
2445
|
+
readonly text: string;
|
|
2446
|
+
} | {
|
|
2447
|
+
readonly type: "question";
|
|
2448
|
+
readonly historical?: boolean | undefined;
|
|
2449
|
+
readonly request: {
|
|
2450
|
+
readonly id: string;
|
|
2451
|
+
readonly kind: "ask_user";
|
|
2452
|
+
readonly conversationId: string;
|
|
2453
|
+
readonly turnId: string;
|
|
2454
|
+
readonly itemId: string;
|
|
2455
|
+
readonly payload: {
|
|
2456
|
+
readonly request: {
|
|
2457
|
+
readonly itemId: string;
|
|
2458
|
+
readonly delivery: "tool" | "async";
|
|
2459
|
+
readonly blocking: boolean;
|
|
2460
|
+
readonly questions: readonly {
|
|
2461
|
+
readonly id: string;
|
|
2462
|
+
readonly header: string;
|
|
2463
|
+
readonly question: string;
|
|
2464
|
+
readonly isOther: boolean;
|
|
2465
|
+
readonly isSecret: boolean;
|
|
2466
|
+
readonly options: readonly {
|
|
2467
|
+
readonly label: string;
|
|
2468
|
+
readonly description: string;
|
|
2469
|
+
}[] | null;
|
|
2470
|
+
}[];
|
|
2471
|
+
readonly autoResolutionMs?: number | undefined;
|
|
2472
|
+
};
|
|
2473
|
+
};
|
|
2474
|
+
};
|
|
2475
|
+
} | {
|
|
2476
|
+
readonly type: "attachment";
|
|
2477
|
+
readonly attachment: {
|
|
2478
|
+
readonly kind: "file" | "image";
|
|
2479
|
+
readonly name: string;
|
|
2480
|
+
readonly path?: string | undefined;
|
|
2481
|
+
readonly url?: string | undefined;
|
|
2482
|
+
readonly mimeType?: string | undefined;
|
|
2483
|
+
};
|
|
2484
|
+
} | {
|
|
2485
|
+
readonly type: "media";
|
|
2486
|
+
readonly media: {
|
|
2487
|
+
readonly url: string;
|
|
2488
|
+
readonly alt?: string | undefined;
|
|
2489
|
+
readonly mimeType?: string | undefined;
|
|
2490
|
+
readonly prompt?: string | undefined;
|
|
2491
|
+
readonly title?: string | undefined;
|
|
2492
|
+
};
|
|
2493
|
+
readonly itemId?: string | undefined;
|
|
2494
|
+
} | {
|
|
2495
|
+
readonly type: "tool";
|
|
2496
|
+
readonly id: string;
|
|
2497
|
+
readonly title: string;
|
|
2498
|
+
readonly kind?: string | undefined;
|
|
2499
|
+
readonly status: "running" | "completed" | "failed";
|
|
2500
|
+
readonly statusText?: string | undefined;
|
|
2501
|
+
readonly body?: string | undefined;
|
|
2502
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
2503
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
2504
|
+
readonly metadata?: {
|
|
2505
|
+
readonly [x: string]: Readonly<unknown>;
|
|
2506
|
+
} | undefined;
|
|
2507
|
+
})[];
|
|
2508
|
+
readonly createdAt?: string | undefined;
|
|
2509
|
+
readonly turnId?: string | undefined;
|
|
2510
|
+
readonly metadata?: {
|
|
2511
|
+
readonly [x: string]: Readonly<unknown>;
|
|
2512
|
+
} | undefined;
|
|
2513
|
+
}[];
|
|
2514
|
+
readonly state?: {
|
|
2515
|
+
readonly historyLoading: boolean;
|
|
2516
|
+
readonly historyState?: {
|
|
2517
|
+
readonly loadingStrategy: import("@codex-app-sdk/core/surface").CodexConversationLoadingStrategy;
|
|
2518
|
+
readonly hasOlder: boolean;
|
|
2519
|
+
readonly loadingOlder: boolean;
|
|
2520
|
+
readonly fullyLoaded: boolean;
|
|
2521
|
+
} | undefined;
|
|
2522
|
+
readonly turnIds: readonly string[];
|
|
2523
|
+
readonly turns: readonly {
|
|
2524
|
+
readonly id: string;
|
|
2525
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceTurnStatus;
|
|
2526
|
+
readonly error: {
|
|
2527
|
+
readonly message: string;
|
|
2528
|
+
readonly additionalDetails: string | null;
|
|
2529
|
+
readonly codexErrorInfo: any;
|
|
2530
|
+
} | null;
|
|
2531
|
+
readonly willRetry: boolean;
|
|
2532
|
+
readonly startedAt: string | null;
|
|
2533
|
+
readonly completedAt: string | null;
|
|
2534
|
+
readonly durationMs: number | null;
|
|
2535
|
+
}[];
|
|
2536
|
+
} | undefined;
|
|
2537
|
+
};
|
|
2538
|
+
readonly conversationId: string;
|
|
2539
|
+
} | {
|
|
2540
|
+
readonly seq: number;
|
|
2541
|
+
readonly occurredAt: string;
|
|
2542
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2543
|
+
readonly type: "conversation.historyStateChanged";
|
|
2544
|
+
readonly payload: {
|
|
2545
|
+
readonly historyLoading: boolean;
|
|
2546
|
+
readonly historyState: {
|
|
2547
|
+
readonly loadingStrategy: import("@codex-app-sdk/core/surface").CodexConversationLoadingStrategy;
|
|
2548
|
+
readonly hasOlder: boolean;
|
|
2549
|
+
readonly loadingOlder: boolean;
|
|
2550
|
+
readonly fullyLoaded: boolean;
|
|
2551
|
+
};
|
|
2552
|
+
readonly error: string | null;
|
|
2553
|
+
};
|
|
2554
|
+
readonly conversationId: string;
|
|
2555
|
+
} | {
|
|
2556
|
+
readonly seq: number;
|
|
2557
|
+
readonly occurredAt: string;
|
|
2558
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2559
|
+
readonly type: "conversation.activityChanged";
|
|
2560
|
+
readonly payload: {
|
|
2561
|
+
readonly threadStatus: {
|
|
2562
|
+
readonly type: "notLoaded";
|
|
2563
|
+
} | {
|
|
2564
|
+
readonly type: "idle";
|
|
2565
|
+
} | {
|
|
2566
|
+
readonly type: "systemError";
|
|
2567
|
+
} | {
|
|
2568
|
+
readonly type: "active";
|
|
2569
|
+
readonly activeFlags: readonly ("waitingOnApproval" | "waitingOnUserInput")[];
|
|
2570
|
+
} | null;
|
|
2571
|
+
readonly busy: boolean;
|
|
2572
|
+
readonly error: string | null;
|
|
2573
|
+
};
|
|
2574
|
+
readonly conversationId: string;
|
|
2575
|
+
} | {
|
|
2576
|
+
readonly seq: number;
|
|
2577
|
+
readonly occurredAt: string;
|
|
2578
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2579
|
+
readonly type: "conversation.settingsChanged";
|
|
2580
|
+
readonly payload: {
|
|
2581
|
+
readonly approvalPreset: import("@codex-app-sdk/core/surface").CodexSurfaceApprovalPreset | null;
|
|
2582
|
+
readonly selectedModelId: string | null;
|
|
2583
|
+
readonly selectedReasoningEffort: string | null;
|
|
2584
|
+
readonly selectedServiceTier?: string | null | undefined;
|
|
2585
|
+
readonly planMode: boolean;
|
|
2586
|
+
};
|
|
2587
|
+
readonly conversationId: string;
|
|
2588
|
+
} | {
|
|
2589
|
+
readonly seq: number;
|
|
2590
|
+
readonly occurredAt: string;
|
|
2591
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2592
|
+
readonly type: "conversation.goalChanged";
|
|
2593
|
+
readonly payload: {
|
|
2594
|
+
readonly goal: {
|
|
2595
|
+
readonly threadId: string;
|
|
2596
|
+
readonly objective: string;
|
|
2597
|
+
readonly status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
2598
|
+
readonly tokenBudget: number | null;
|
|
2599
|
+
readonly tokensUsed: number;
|
|
2600
|
+
readonly timeUsedSeconds: number;
|
|
2601
|
+
readonly createdAt: number;
|
|
2602
|
+
readonly updatedAt: number;
|
|
2603
|
+
} | null;
|
|
2604
|
+
};
|
|
2605
|
+
readonly conversationId: string;
|
|
2606
|
+
readonly turnId?: string | undefined;
|
|
2607
|
+
} | {
|
|
2608
|
+
readonly seq: number;
|
|
2609
|
+
readonly occurredAt: string;
|
|
2610
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2611
|
+
readonly type: "conversation.contextUsageChanged";
|
|
2612
|
+
readonly payload: {
|
|
2613
|
+
readonly contextUsage: {
|
|
2614
|
+
readonly totalTokens: number;
|
|
2615
|
+
readonly inputTokens: number;
|
|
2616
|
+
readonly cachedInputTokens: number;
|
|
2617
|
+
readonly outputTokens: number;
|
|
2618
|
+
readonly reasoningOutputTokens: number;
|
|
2619
|
+
readonly lastTotalTokens: number;
|
|
2620
|
+
readonly modelContextWindow: number | null;
|
|
2621
|
+
readonly usedPercent: number | null;
|
|
2622
|
+
} | null;
|
|
2623
|
+
};
|
|
2624
|
+
readonly conversationId: string;
|
|
2625
|
+
readonly turnId: string;
|
|
2626
|
+
} | {
|
|
2627
|
+
readonly seq: number;
|
|
2628
|
+
readonly occurredAt: string;
|
|
2629
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2630
|
+
readonly type: "conversation.skillsChanged";
|
|
2631
|
+
readonly payload: {
|
|
2632
|
+
readonly cwd: string | null;
|
|
2633
|
+
readonly skills: readonly {
|
|
2634
|
+
readonly name: string;
|
|
2635
|
+
readonly description?: string | undefined;
|
|
2636
|
+
readonly shortDescription?: string | undefined;
|
|
2637
|
+
readonly displayName?: string | undefined;
|
|
2638
|
+
readonly iconSmall?: string | undefined;
|
|
2639
|
+
readonly iconLarge?: string | undefined;
|
|
2640
|
+
readonly brandColor?: string | undefined;
|
|
2641
|
+
readonly defaultPrompt?: string | undefined;
|
|
2642
|
+
readonly path: string;
|
|
2643
|
+
readonly scope?: string | undefined;
|
|
2644
|
+
readonly enabled: boolean;
|
|
2645
|
+
}[];
|
|
2646
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceCatalogStatus;
|
|
2647
|
+
};
|
|
2648
|
+
readonly conversationId: string;
|
|
2649
|
+
} | {
|
|
2650
|
+
readonly seq: number;
|
|
2651
|
+
readonly occurredAt: string;
|
|
2652
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2653
|
+
readonly type: "conversation.permissionsChanged";
|
|
2654
|
+
readonly payload: {
|
|
2655
|
+
readonly cwd: string | null;
|
|
2656
|
+
readonly permissionProfiles: readonly {
|
|
2657
|
+
readonly id: string;
|
|
2658
|
+
readonly description: string | null;
|
|
2659
|
+
readonly allowed: boolean;
|
|
2660
|
+
}[];
|
|
2661
|
+
readonly approvalPresets: readonly import("@codex-app-sdk/core/surface").CodexSurfaceApprovalPreset[];
|
|
2662
|
+
};
|
|
2663
|
+
readonly conversationId: string;
|
|
2664
|
+
} | {
|
|
2665
|
+
readonly seq: number;
|
|
2666
|
+
readonly occurredAt: string;
|
|
2667
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2668
|
+
readonly type: "conversation.diffUpdated";
|
|
2669
|
+
readonly payload: {
|
|
2670
|
+
readonly diff: {
|
|
2671
|
+
readonly turnId: string;
|
|
2672
|
+
readonly addedLines: number;
|
|
2673
|
+
readonly removedLines: number;
|
|
2674
|
+
readonly diff?: string | undefined;
|
|
2675
|
+
readonly updatedAt: string;
|
|
2676
|
+
} | null;
|
|
2677
|
+
};
|
|
2678
|
+
readonly conversationId: string;
|
|
2679
|
+
} | {
|
|
2680
|
+
readonly seq: number;
|
|
2681
|
+
readonly occurredAt: string;
|
|
2682
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2683
|
+
readonly type: "conversation.queueChanged";
|
|
2684
|
+
readonly payload: {
|
|
2685
|
+
readonly queuedPrompts: readonly {
|
|
2686
|
+
readonly id: string;
|
|
2687
|
+
readonly text: string;
|
|
2688
|
+
readonly options?: {
|
|
2689
|
+
readonly attachments?: readonly ({
|
|
2690
|
+
readonly type: "image";
|
|
2691
|
+
readonly path: string;
|
|
2692
|
+
readonly detail?: "auto" | "low" | "high" | "original" | undefined;
|
|
2693
|
+
readonly name?: string | undefined;
|
|
2694
|
+
readonly mimeType?: string | undefined;
|
|
2695
|
+
readonly previewUrl?: string | undefined;
|
|
2696
|
+
} | {
|
|
2697
|
+
readonly type: "file";
|
|
2698
|
+
readonly path: string;
|
|
2699
|
+
readonly name?: string | undefined;
|
|
2700
|
+
readonly mimeType?: string | undefined;
|
|
2701
|
+
})[] | undefined;
|
|
2702
|
+
readonly inputMethod?: "typed" | "dictated" | undefined;
|
|
2703
|
+
readonly model?: string | undefined;
|
|
2704
|
+
readonly reasoningEffort?: string | undefined;
|
|
2705
|
+
readonly serviceTier?: string | null | undefined;
|
|
2706
|
+
readonly planMode?: boolean | undefined;
|
|
2707
|
+
readonly skills?: readonly {
|
|
2708
|
+
readonly name: string;
|
|
2709
|
+
readonly path: string;
|
|
2710
|
+
}[] | undefined;
|
|
2711
|
+
readonly outputSchema?: any;
|
|
2712
|
+
} | undefined;
|
|
2713
|
+
}[];
|
|
2714
|
+
};
|
|
2715
|
+
readonly conversationId: string;
|
|
2716
|
+
} | {
|
|
2717
|
+
readonly seq: number;
|
|
2718
|
+
readonly occurredAt: string;
|
|
2719
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2720
|
+
readonly type: "realtime.started";
|
|
2721
|
+
readonly payload: {
|
|
2722
|
+
readonly realtimeSessionId: string | null;
|
|
2723
|
+
readonly version: import("@codex-app-sdk/core/surface").CodexRealtimeVersion;
|
|
2724
|
+
};
|
|
2725
|
+
readonly conversationId: string;
|
|
2726
|
+
} | {
|
|
2727
|
+
readonly seq: number;
|
|
2728
|
+
readonly occurredAt: string;
|
|
2729
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2730
|
+
readonly type: "realtime.itemAdded";
|
|
2731
|
+
readonly payload: {
|
|
2732
|
+
readonly item: any;
|
|
2733
|
+
};
|
|
2734
|
+
readonly conversationId: string;
|
|
2735
|
+
} | {
|
|
2736
|
+
readonly seq: number;
|
|
2737
|
+
readonly occurredAt: string;
|
|
2738
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2739
|
+
readonly type: "realtime.itemStarted";
|
|
2740
|
+
readonly payload: {
|
|
2741
|
+
readonly item: any;
|
|
2742
|
+
};
|
|
2743
|
+
readonly conversationId: string;
|
|
2744
|
+
} | {
|
|
2745
|
+
readonly seq: number;
|
|
2746
|
+
readonly occurredAt: string;
|
|
2747
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2748
|
+
readonly type: "realtime.itemCompleted";
|
|
2749
|
+
readonly payload: {
|
|
2750
|
+
readonly item: any;
|
|
2751
|
+
};
|
|
2752
|
+
readonly conversationId: string;
|
|
2753
|
+
} | {
|
|
2754
|
+
readonly seq: number;
|
|
2755
|
+
readonly occurredAt: string;
|
|
2756
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2757
|
+
readonly type: "realtime.itemTranscriptDelta";
|
|
2758
|
+
readonly payload: {
|
|
2759
|
+
readonly itemId: string;
|
|
2760
|
+
readonly delta: string;
|
|
2761
|
+
};
|
|
2762
|
+
readonly conversationId: string;
|
|
2763
|
+
} | {
|
|
2764
|
+
readonly seq: number;
|
|
2765
|
+
readonly occurredAt: string;
|
|
2766
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2767
|
+
readonly type: "realtime.transcriptDelta";
|
|
2768
|
+
readonly payload: {
|
|
2769
|
+
readonly role: string;
|
|
2770
|
+
readonly delta: string;
|
|
2771
|
+
};
|
|
2772
|
+
readonly conversationId: string;
|
|
2773
|
+
} | {
|
|
2774
|
+
readonly seq: number;
|
|
2775
|
+
readonly occurredAt: string;
|
|
2776
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2777
|
+
readonly type: "realtime.transcriptCompleted";
|
|
2778
|
+
readonly payload: {
|
|
2779
|
+
readonly role: string;
|
|
2780
|
+
readonly text: string;
|
|
2781
|
+
};
|
|
2782
|
+
readonly conversationId: string;
|
|
2783
|
+
} | {
|
|
2784
|
+
readonly seq: number;
|
|
2785
|
+
readonly occurredAt: string;
|
|
2786
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2787
|
+
readonly type: "realtime.audioDelta";
|
|
2788
|
+
readonly payload: {
|
|
2789
|
+
readonly audio: {
|
|
2790
|
+
readonly data: {
|
|
2791
|
+
readonly [x: number]: number;
|
|
2792
|
+
readonly BYTES_PER_ELEMENT: number;
|
|
2793
|
+
readonly buffer: {
|
|
2794
|
+
readonly byteLength: number;
|
|
2795
|
+
readonly slice: (begin?: number, end?: number) => ArrayBuffer;
|
|
2796
|
+
readonly [Symbol.toStringTag]: "ArrayBuffer";
|
|
2797
|
+
} | {
|
|
2798
|
+
readonly byteLength: number;
|
|
2799
|
+
readonly slice: (begin?: number, end?: number) => SharedArrayBuffer;
|
|
2800
|
+
readonly [Symbol.toStringTag]: "SharedArrayBuffer";
|
|
2801
|
+
};
|
|
2802
|
+
readonly byteLength: number;
|
|
2803
|
+
readonly byteOffset: number;
|
|
2804
|
+
readonly copyWithin: (target: number, start: number, end?: number) => Uint8Array<ArrayBufferLike>;
|
|
2805
|
+
readonly every: (predicate: (value: number, index: number, array: Uint8Array<ArrayBufferLike>) => unknown, thisArg?: any) => boolean;
|
|
2806
|
+
readonly fill: (value: number, start?: number, end?: number) => Uint8Array<ArrayBufferLike>;
|
|
2807
|
+
readonly filter: (predicate: (value: number, index: number, array: Uint8Array<ArrayBufferLike>) => any, thisArg?: any) => Uint8Array<ArrayBuffer>;
|
|
2808
|
+
readonly find: (predicate: (value: number, index: number, obj: Uint8Array<ArrayBufferLike>) => boolean, thisArg?: any) => number | undefined;
|
|
2809
|
+
readonly findIndex: (predicate: (value: number, index: number, obj: Uint8Array<ArrayBufferLike>) => boolean, thisArg?: any) => number;
|
|
2810
|
+
readonly forEach: (callbackfn: (value: number, index: number, array: Uint8Array<ArrayBufferLike>) => void, thisArg?: any) => void;
|
|
2811
|
+
readonly indexOf: (searchElement: number, fromIndex?: number) => number;
|
|
2812
|
+
readonly join: (separator?: string) => string;
|
|
2813
|
+
readonly lastIndexOf: (searchElement: number, fromIndex?: number) => number;
|
|
2814
|
+
readonly length: number;
|
|
2815
|
+
readonly map: (callbackfn: (value: number, index: number, array: Uint8Array<ArrayBufferLike>) => number, thisArg?: any) => Uint8Array<ArrayBuffer>;
|
|
2816
|
+
readonly reduce: {
|
|
2817
|
+
(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array<ArrayBufferLike>) => number): number;
|
|
2818
|
+
(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array<ArrayBufferLike>) => number, initialValue: number): number;
|
|
2819
|
+
<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array<ArrayBufferLike>) => U, initialValue: U): U;
|
|
2820
|
+
};
|
|
2821
|
+
readonly reduceRight: {
|
|
2822
|
+
(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array<ArrayBufferLike>) => number): number;
|
|
2823
|
+
(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array<ArrayBufferLike>) => number, initialValue: number): number;
|
|
2824
|
+
<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array<ArrayBufferLike>) => U, initialValue: U): U;
|
|
2825
|
+
};
|
|
2826
|
+
readonly reverse: () => Uint8Array<ArrayBufferLike>;
|
|
2827
|
+
readonly set: (array: ArrayLike<number>, offset?: number) => void;
|
|
2828
|
+
readonly slice: (start?: number, end?: number) => Uint8Array<ArrayBuffer>;
|
|
2829
|
+
readonly some: (predicate: (value: number, index: number, array: Uint8Array<ArrayBufferLike>) => unknown, thisArg?: any) => boolean;
|
|
2830
|
+
readonly sort: (compareFn?: ((a: number, b: number) => number) | undefined) => Uint8Array<ArrayBufferLike>;
|
|
2831
|
+
readonly subarray: (begin?: number, end?: number) => Uint8Array<ArrayBufferLike>;
|
|
2832
|
+
readonly toLocaleString: {
|
|
2833
|
+
(): string;
|
|
2834
|
+
(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
2835
|
+
};
|
|
2836
|
+
readonly toString: () => string;
|
|
2837
|
+
readonly valueOf: () => Uint8Array<ArrayBufferLike>;
|
|
2838
|
+
readonly entries: () => ArrayIterator<[number, number]>;
|
|
2839
|
+
readonly keys: () => ArrayIterator<number>;
|
|
2840
|
+
readonly values: () => ArrayIterator<number>;
|
|
2841
|
+
readonly includes: (searchElement: number, fromIndex?: number) => boolean;
|
|
2842
|
+
readonly at: (index: number) => number | undefined;
|
|
2843
|
+
readonly [Symbol.iterator]: () => ArrayIterator<number>;
|
|
2844
|
+
readonly [Symbol.toStringTag]: "Uint8Array";
|
|
2845
|
+
};
|
|
2846
|
+
readonly sampleRate: number;
|
|
2847
|
+
readonly numChannels: number;
|
|
2848
|
+
readonly samplesPerChannel: number | null;
|
|
2849
|
+
readonly itemId: string | null;
|
|
2850
|
+
};
|
|
2851
|
+
};
|
|
2852
|
+
readonly conversationId: string;
|
|
2853
|
+
} | {
|
|
2854
|
+
readonly seq: number;
|
|
2855
|
+
readonly occurredAt: string;
|
|
2856
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2857
|
+
readonly type: "realtime.sdp";
|
|
2858
|
+
readonly payload: {
|
|
2859
|
+
readonly sdp: string;
|
|
2860
|
+
};
|
|
2861
|
+
readonly conversationId: string;
|
|
2862
|
+
} | {
|
|
2863
|
+
readonly seq: number;
|
|
2864
|
+
readonly occurredAt: string;
|
|
2865
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2866
|
+
readonly type: "realtime.error";
|
|
2867
|
+
readonly payload: {
|
|
2868
|
+
readonly message: string;
|
|
2869
|
+
};
|
|
2870
|
+
readonly conversationId: string;
|
|
2871
|
+
} | {
|
|
2872
|
+
readonly seq: number;
|
|
2873
|
+
readonly occurredAt: string;
|
|
2874
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2875
|
+
readonly type: "realtime.closed";
|
|
2876
|
+
readonly payload: {
|
|
2877
|
+
readonly reason: string | null;
|
|
2878
|
+
};
|
|
2879
|
+
readonly conversationId: string;
|
|
2880
|
+
} | {
|
|
2881
|
+
readonly seq: number;
|
|
2882
|
+
readonly occurredAt: string;
|
|
2883
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2884
|
+
readonly type: "turn.started";
|
|
2885
|
+
readonly payload: {
|
|
2886
|
+
readonly startedAt: string;
|
|
2887
|
+
};
|
|
2888
|
+
readonly conversationId: string;
|
|
2889
|
+
readonly turnId: string;
|
|
2890
|
+
} | {
|
|
2891
|
+
readonly seq: number;
|
|
2892
|
+
readonly occurredAt: string;
|
|
2893
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2894
|
+
readonly type: "turn.completed";
|
|
2895
|
+
readonly payload: {
|
|
2896
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceTurnStatus;
|
|
2897
|
+
readonly error: {
|
|
2898
|
+
readonly message: string;
|
|
2899
|
+
readonly additionalDetails: string | null;
|
|
2900
|
+
readonly codexErrorInfo: any;
|
|
2901
|
+
} | null;
|
|
2902
|
+
readonly willRetry: boolean;
|
|
2903
|
+
readonly startedAt: string | null;
|
|
2904
|
+
readonly completedAt: string | null;
|
|
2905
|
+
readonly durationMs: number | null;
|
|
2906
|
+
};
|
|
2907
|
+
readonly conversationId: string;
|
|
2908
|
+
readonly turnId: string;
|
|
2909
|
+
} | {
|
|
2910
|
+
readonly seq: number;
|
|
2911
|
+
readonly occurredAt: string;
|
|
2912
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2913
|
+
readonly type: "turn.error";
|
|
2914
|
+
readonly payload: {
|
|
2915
|
+
readonly error: {
|
|
2916
|
+
readonly message: string;
|
|
2917
|
+
readonly additionalDetails: string | null;
|
|
2918
|
+
readonly codexErrorInfo: any;
|
|
2919
|
+
};
|
|
2920
|
+
readonly willRetry: boolean;
|
|
2921
|
+
};
|
|
2922
|
+
readonly conversationId: string;
|
|
2923
|
+
readonly turnId: string;
|
|
2924
|
+
} | {
|
|
2925
|
+
readonly seq: number;
|
|
2926
|
+
readonly occurredAt: string;
|
|
2927
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
2928
|
+
readonly type: "message.appended";
|
|
2929
|
+
readonly payload: {
|
|
2930
|
+
readonly message: {
|
|
2931
|
+
readonly id: string;
|
|
2932
|
+
readonly kind?: "compaction" | "steer" | undefined;
|
|
2933
|
+
readonly role: "user" | "assistant" | "system";
|
|
2934
|
+
readonly status: "complete" | "streaming" | "error";
|
|
2935
|
+
readonly parts: readonly ({
|
|
2936
|
+
readonly type: "text";
|
|
2937
|
+
readonly text: string;
|
|
2938
|
+
readonly itemId?: string | undefined;
|
|
2939
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
2940
|
+
} | {
|
|
2941
|
+
readonly type: "reasoning";
|
|
2942
|
+
readonly summary: string;
|
|
2943
|
+
readonly itemId: string;
|
|
2944
|
+
readonly summaryIndex: number;
|
|
2945
|
+
} | {
|
|
2946
|
+
readonly type: "status";
|
|
2947
|
+
readonly text: string;
|
|
2948
|
+
} | {
|
|
2949
|
+
readonly type: "question";
|
|
2950
|
+
readonly historical?: boolean | undefined;
|
|
2951
|
+
readonly request: {
|
|
2952
|
+
readonly id: string;
|
|
2953
|
+
readonly kind: "ask_user";
|
|
2954
|
+
readonly conversationId: string;
|
|
2955
|
+
readonly turnId: string;
|
|
2956
|
+
readonly itemId: string;
|
|
2957
|
+
readonly payload: {
|
|
2958
|
+
readonly request: {
|
|
2959
|
+
readonly itemId: string;
|
|
2960
|
+
readonly delivery: "tool" | "async";
|
|
2961
|
+
readonly blocking: boolean;
|
|
2962
|
+
readonly questions: readonly {
|
|
2963
|
+
readonly id: string;
|
|
2964
|
+
readonly header: string;
|
|
2965
|
+
readonly question: string;
|
|
2966
|
+
readonly isOther: boolean;
|
|
2967
|
+
readonly isSecret: boolean;
|
|
2968
|
+
readonly options: readonly {
|
|
2969
|
+
readonly label: string;
|
|
2970
|
+
readonly description: string;
|
|
2971
|
+
}[] | null;
|
|
2972
|
+
}[];
|
|
2973
|
+
readonly autoResolutionMs?: number | undefined;
|
|
2974
|
+
};
|
|
2975
|
+
};
|
|
2976
|
+
};
|
|
2977
|
+
} | {
|
|
2978
|
+
readonly type: "attachment";
|
|
2979
|
+
readonly attachment: {
|
|
2980
|
+
readonly kind: "file" | "image";
|
|
2981
|
+
readonly name: string;
|
|
2982
|
+
readonly path?: string | undefined;
|
|
2983
|
+
readonly url?: string | undefined;
|
|
2984
|
+
readonly mimeType?: string | undefined;
|
|
2985
|
+
};
|
|
2986
|
+
} | {
|
|
2987
|
+
readonly type: "media";
|
|
2988
|
+
readonly media: {
|
|
2989
|
+
readonly url: string;
|
|
2990
|
+
readonly alt?: string | undefined;
|
|
2991
|
+
readonly mimeType?: string | undefined;
|
|
2992
|
+
readonly prompt?: string | undefined;
|
|
2993
|
+
readonly title?: string | undefined;
|
|
2994
|
+
};
|
|
2995
|
+
readonly itemId?: string | undefined;
|
|
2996
|
+
} | {
|
|
2997
|
+
readonly type: "tool";
|
|
2998
|
+
readonly id: string;
|
|
2999
|
+
readonly title: string;
|
|
3000
|
+
readonly kind?: string | undefined;
|
|
3001
|
+
readonly status: "running" | "completed" | "failed";
|
|
3002
|
+
readonly statusText?: string | undefined;
|
|
3003
|
+
readonly body?: string | undefined;
|
|
3004
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
3005
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
3006
|
+
readonly metadata?: {
|
|
3007
|
+
readonly [x: string]: Readonly<unknown>;
|
|
3008
|
+
} | undefined;
|
|
3009
|
+
})[];
|
|
3010
|
+
readonly createdAt?: string | undefined;
|
|
3011
|
+
readonly turnId?: string | undefined;
|
|
3012
|
+
readonly metadata?: {
|
|
3013
|
+
readonly [x: string]: Readonly<unknown>;
|
|
3014
|
+
} | undefined;
|
|
3015
|
+
};
|
|
3016
|
+
};
|
|
3017
|
+
readonly conversationId: string;
|
|
3018
|
+
readonly turnId?: string | undefined;
|
|
3019
|
+
} | {
|
|
3020
|
+
readonly seq: number;
|
|
3021
|
+
readonly occurredAt: string;
|
|
3022
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3023
|
+
readonly type: "message.delta";
|
|
3024
|
+
readonly payload: {
|
|
3025
|
+
readonly messageId: string;
|
|
3026
|
+
readonly itemId: string;
|
|
3027
|
+
readonly delta: string;
|
|
3028
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
3029
|
+
};
|
|
3030
|
+
readonly conversationId: string;
|
|
3031
|
+
readonly turnId: string;
|
|
3032
|
+
} | {
|
|
3033
|
+
readonly seq: number;
|
|
3034
|
+
readonly occurredAt: string;
|
|
3035
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3036
|
+
readonly type: "message.updated";
|
|
3037
|
+
readonly payload: {
|
|
3038
|
+
readonly message: {
|
|
3039
|
+
readonly id: string;
|
|
3040
|
+
readonly kind?: "compaction" | "steer" | undefined;
|
|
3041
|
+
readonly role: "user" | "assistant" | "system";
|
|
3042
|
+
readonly status: "complete" | "streaming" | "error";
|
|
3043
|
+
readonly parts: readonly ({
|
|
3044
|
+
readonly type: "text";
|
|
3045
|
+
readonly text: string;
|
|
3046
|
+
readonly itemId?: string | undefined;
|
|
3047
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
3048
|
+
} | {
|
|
3049
|
+
readonly type: "reasoning";
|
|
3050
|
+
readonly summary: string;
|
|
3051
|
+
readonly itemId: string;
|
|
3052
|
+
readonly summaryIndex: number;
|
|
3053
|
+
} | {
|
|
3054
|
+
readonly type: "status";
|
|
3055
|
+
readonly text: string;
|
|
3056
|
+
} | {
|
|
3057
|
+
readonly type: "question";
|
|
3058
|
+
readonly historical?: boolean | undefined;
|
|
3059
|
+
readonly request: {
|
|
3060
|
+
readonly id: string;
|
|
3061
|
+
readonly kind: "ask_user";
|
|
3062
|
+
readonly conversationId: string;
|
|
3063
|
+
readonly turnId: string;
|
|
3064
|
+
readonly itemId: string;
|
|
3065
|
+
readonly payload: {
|
|
3066
|
+
readonly request: {
|
|
3067
|
+
readonly itemId: string;
|
|
3068
|
+
readonly delivery: "tool" | "async";
|
|
3069
|
+
readonly blocking: boolean;
|
|
3070
|
+
readonly questions: readonly {
|
|
3071
|
+
readonly id: string;
|
|
3072
|
+
readonly header: string;
|
|
3073
|
+
readonly question: string;
|
|
3074
|
+
readonly isOther: boolean;
|
|
3075
|
+
readonly isSecret: boolean;
|
|
3076
|
+
readonly options: readonly {
|
|
3077
|
+
readonly label: string;
|
|
3078
|
+
readonly description: string;
|
|
3079
|
+
}[] | null;
|
|
3080
|
+
}[];
|
|
3081
|
+
readonly autoResolutionMs?: number | undefined;
|
|
3082
|
+
};
|
|
3083
|
+
};
|
|
3084
|
+
};
|
|
3085
|
+
} | {
|
|
3086
|
+
readonly type: "attachment";
|
|
3087
|
+
readonly attachment: {
|
|
3088
|
+
readonly kind: "file" | "image";
|
|
3089
|
+
readonly name: string;
|
|
3090
|
+
readonly path?: string | undefined;
|
|
3091
|
+
readonly url?: string | undefined;
|
|
3092
|
+
readonly mimeType?: string | undefined;
|
|
3093
|
+
};
|
|
3094
|
+
} | {
|
|
3095
|
+
readonly type: "media";
|
|
3096
|
+
readonly media: {
|
|
3097
|
+
readonly url: string;
|
|
3098
|
+
readonly alt?: string | undefined;
|
|
3099
|
+
readonly mimeType?: string | undefined;
|
|
3100
|
+
readonly prompt?: string | undefined;
|
|
3101
|
+
readonly title?: string | undefined;
|
|
3102
|
+
};
|
|
3103
|
+
readonly itemId?: string | undefined;
|
|
3104
|
+
} | {
|
|
3105
|
+
readonly type: "tool";
|
|
3106
|
+
readonly id: string;
|
|
3107
|
+
readonly title: string;
|
|
3108
|
+
readonly kind?: string | undefined;
|
|
3109
|
+
readonly status: "running" | "completed" | "failed";
|
|
3110
|
+
readonly statusText?: string | undefined;
|
|
3111
|
+
readonly body?: string | undefined;
|
|
3112
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
3113
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
3114
|
+
readonly metadata?: {
|
|
3115
|
+
readonly [x: string]: Readonly<unknown>;
|
|
3116
|
+
} | undefined;
|
|
3117
|
+
})[];
|
|
3118
|
+
readonly createdAt?: string | undefined;
|
|
3119
|
+
readonly turnId?: string | undefined;
|
|
3120
|
+
readonly metadata?: {
|
|
3121
|
+
readonly [x: string]: Readonly<unknown>;
|
|
3122
|
+
} | undefined;
|
|
3123
|
+
};
|
|
3124
|
+
};
|
|
3125
|
+
readonly conversationId: string;
|
|
3126
|
+
readonly turnId: string;
|
|
3127
|
+
} | {
|
|
3128
|
+
readonly seq: number;
|
|
3129
|
+
readonly occurredAt: string;
|
|
3130
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3131
|
+
readonly type: "tool.started";
|
|
3132
|
+
readonly payload: {
|
|
3133
|
+
readonly messageId: string;
|
|
3134
|
+
readonly toolPart: {
|
|
3135
|
+
readonly type: "tool";
|
|
3136
|
+
readonly id: string;
|
|
3137
|
+
readonly title: string;
|
|
3138
|
+
readonly kind?: string | undefined;
|
|
3139
|
+
readonly status: "running" | "completed" | "failed";
|
|
3140
|
+
readonly statusText?: string | undefined;
|
|
3141
|
+
readonly body?: string | undefined;
|
|
3142
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
3143
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
3144
|
+
readonly metadata?: {
|
|
3145
|
+
readonly [x: string]: Readonly<unknown>;
|
|
3146
|
+
} | undefined;
|
|
3147
|
+
};
|
|
3148
|
+
};
|
|
3149
|
+
readonly conversationId: string;
|
|
3150
|
+
readonly turnId: string;
|
|
3151
|
+
} | {
|
|
3152
|
+
readonly seq: number;
|
|
3153
|
+
readonly occurredAt: string;
|
|
3154
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3155
|
+
readonly type: "tool.updated";
|
|
3156
|
+
readonly payload: {
|
|
3157
|
+
readonly messageId: string;
|
|
3158
|
+
readonly update: {
|
|
3159
|
+
readonly itemId: string;
|
|
3160
|
+
readonly title?: string | undefined;
|
|
3161
|
+
readonly status?: import("@codex-app-sdk/core/surface").SurfaceMessageToolPart["status"] | undefined;
|
|
3162
|
+
readonly statusText?: string | null | undefined;
|
|
3163
|
+
readonly body?: string | undefined;
|
|
3164
|
+
readonly bodyDelta?: string | undefined;
|
|
3165
|
+
readonly bodyAppend?: string | undefined;
|
|
3166
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
3167
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
3168
|
+
readonly metadata?: {
|
|
3169
|
+
readonly [x: string]: Readonly<unknown>;
|
|
3170
|
+
} | undefined;
|
|
3171
|
+
readonly fallbackToolPart?: {
|
|
3172
|
+
readonly type: "tool";
|
|
3173
|
+
readonly id: string;
|
|
3174
|
+
readonly title: string;
|
|
3175
|
+
readonly kind?: string | undefined;
|
|
3176
|
+
readonly status: "running" | "completed" | "failed";
|
|
3177
|
+
readonly statusText?: string | undefined;
|
|
3178
|
+
readonly body?: string | undefined;
|
|
3179
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
3180
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
3181
|
+
readonly metadata?: {
|
|
3182
|
+
readonly [x: string]: Readonly<unknown>;
|
|
3183
|
+
} | undefined;
|
|
3184
|
+
} | undefined;
|
|
3185
|
+
};
|
|
3186
|
+
};
|
|
3187
|
+
readonly conversationId: string;
|
|
3188
|
+
readonly turnId: string;
|
|
3189
|
+
} | {
|
|
3190
|
+
readonly seq: number;
|
|
3191
|
+
readonly occurredAt: string;
|
|
3192
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3193
|
+
readonly type: "tool.completed";
|
|
3194
|
+
readonly payload: {
|
|
3195
|
+
readonly messageId: string;
|
|
3196
|
+
readonly toolPart: {
|
|
3197
|
+
readonly type: "tool";
|
|
3198
|
+
readonly id: string;
|
|
3199
|
+
readonly title: string;
|
|
3200
|
+
readonly kind?: string | undefined;
|
|
3201
|
+
readonly status: "running" | "completed" | "failed";
|
|
3202
|
+
readonly statusText?: string | undefined;
|
|
3203
|
+
readonly body?: string | undefined;
|
|
3204
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
3205
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
3206
|
+
readonly metadata?: {
|
|
3207
|
+
readonly [x: string]: Readonly<unknown>;
|
|
3208
|
+
} | undefined;
|
|
3209
|
+
};
|
|
3210
|
+
};
|
|
3211
|
+
readonly conversationId: string;
|
|
3212
|
+
readonly turnId: string;
|
|
3213
|
+
} | {
|
|
3214
|
+
readonly seq: number;
|
|
3215
|
+
readonly occurredAt: string;
|
|
3216
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3217
|
+
readonly type: "file.activity";
|
|
3218
|
+
readonly payload: {
|
|
3219
|
+
readonly messageId: string;
|
|
3220
|
+
readonly itemId: string;
|
|
3221
|
+
readonly path: string;
|
|
3222
|
+
readonly action: import("@codex-app-sdk/core/surface").CodexSurfaceFileActivityAction;
|
|
3223
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceFileActivityStatus;
|
|
3224
|
+
};
|
|
3225
|
+
readonly conversationId: string;
|
|
3226
|
+
readonly turnId: string;
|
|
3227
|
+
} | {
|
|
3228
|
+
readonly seq: number;
|
|
3229
|
+
readonly occurredAt: string;
|
|
3230
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3231
|
+
readonly type: "subagent.toolCallChanged";
|
|
3232
|
+
readonly payload: {
|
|
3233
|
+
readonly lifecycle: import("@codex-app-sdk/core/surface").CodexSurfaceSubagentItemLifecycle;
|
|
3234
|
+
readonly toolCall: {
|
|
3235
|
+
readonly id: string;
|
|
3236
|
+
readonly tool: import("@codex-app-sdk/core/surface").CodexSurfaceSubagentTool;
|
|
3237
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceSubagentToolCallStatus;
|
|
3238
|
+
readonly senderConversationId: string;
|
|
3239
|
+
readonly receiverConversationIds: readonly string[];
|
|
3240
|
+
readonly prompt: string | null;
|
|
3241
|
+
readonly model: string | null;
|
|
3242
|
+
readonly reasoningEffort: string | null;
|
|
3243
|
+
readonly agentStates: {
|
|
3244
|
+
readonly [x: string]: {
|
|
3245
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfaceSubagentStatus;
|
|
3246
|
+
readonly message: string | null;
|
|
3247
|
+
};
|
|
3248
|
+
};
|
|
3249
|
+
};
|
|
3250
|
+
};
|
|
3251
|
+
readonly conversationId: string;
|
|
3252
|
+
readonly turnId: string;
|
|
3253
|
+
} | {
|
|
3254
|
+
readonly seq: number;
|
|
3255
|
+
readonly occurredAt: string;
|
|
3256
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3257
|
+
readonly type: "subagent.activity";
|
|
3258
|
+
readonly payload: {
|
|
3259
|
+
readonly lifecycle: import("@codex-app-sdk/core/surface").CodexSurfaceSubagentItemLifecycle;
|
|
3260
|
+
readonly activity: {
|
|
3261
|
+
readonly id: string;
|
|
3262
|
+
readonly kind: "started" | "interacted" | "interrupted" | "completed";
|
|
3263
|
+
readonly agentConversationId: string;
|
|
3264
|
+
readonly agentPath: string;
|
|
3265
|
+
};
|
|
3266
|
+
};
|
|
3267
|
+
readonly conversationId: string;
|
|
3268
|
+
readonly turnId: string;
|
|
3269
|
+
} | {
|
|
3270
|
+
readonly seq: number;
|
|
3271
|
+
readonly occurredAt: string;
|
|
3272
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3273
|
+
readonly type: "plan.delta";
|
|
3274
|
+
readonly payload: {
|
|
3275
|
+
readonly itemId: string;
|
|
3276
|
+
readonly delta: string;
|
|
3277
|
+
readonly markdown: string;
|
|
3278
|
+
};
|
|
3279
|
+
readonly conversationId: string;
|
|
3280
|
+
readonly turnId: string;
|
|
3281
|
+
} | {
|
|
3282
|
+
readonly seq: number;
|
|
3283
|
+
readonly occurredAt: string;
|
|
3284
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3285
|
+
readonly type: "plan.updated";
|
|
3286
|
+
readonly payload: {
|
|
3287
|
+
readonly explanation: string | null;
|
|
3288
|
+
readonly steps: readonly {
|
|
3289
|
+
readonly step: string;
|
|
3290
|
+
readonly status: import("@codex-app-sdk/core/surface").CodexSurfacePlanStepStatus;
|
|
3291
|
+
}[];
|
|
3292
|
+
readonly markdown: string;
|
|
3293
|
+
readonly status: "running" | "completed";
|
|
3294
|
+
};
|
|
3295
|
+
readonly conversationId: string;
|
|
3296
|
+
readonly turnId: string;
|
|
3297
|
+
} | {
|
|
3298
|
+
readonly seq: number;
|
|
3299
|
+
readonly occurredAt: string;
|
|
3300
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3301
|
+
readonly type: "plan.completed";
|
|
3302
|
+
readonly payload: {
|
|
3303
|
+
readonly itemId: string;
|
|
3304
|
+
readonly markdown: string;
|
|
3305
|
+
};
|
|
3306
|
+
readonly conversationId: string;
|
|
3307
|
+
readonly turnId: string;
|
|
3308
|
+
} | {
|
|
3309
|
+
readonly seq: number;
|
|
3310
|
+
readonly occurredAt: string;
|
|
3311
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3312
|
+
readonly type: "context.compactionStarted";
|
|
3313
|
+
readonly payload: {
|
|
3314
|
+
readonly itemId: string | null;
|
|
3315
|
+
};
|
|
3316
|
+
readonly conversationId: string;
|
|
3317
|
+
readonly turnId: string;
|
|
3318
|
+
} | {
|
|
3319
|
+
readonly seq: number;
|
|
3320
|
+
readonly occurredAt: string;
|
|
3321
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3322
|
+
readonly type: "context.compactionCompleted";
|
|
3323
|
+
readonly payload: {
|
|
3324
|
+
readonly itemId: string | null;
|
|
3325
|
+
readonly message: {
|
|
3326
|
+
readonly id: string;
|
|
3327
|
+
readonly kind?: "compaction" | "steer" | undefined;
|
|
3328
|
+
readonly role: "user" | "assistant" | "system";
|
|
3329
|
+
readonly status: "complete" | "streaming" | "error";
|
|
3330
|
+
readonly parts: readonly ({
|
|
3331
|
+
readonly type: "text";
|
|
3332
|
+
readonly text: string;
|
|
3333
|
+
readonly itemId?: string | undefined;
|
|
3334
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
3335
|
+
} | {
|
|
3336
|
+
readonly type: "reasoning";
|
|
3337
|
+
readonly summary: string;
|
|
3338
|
+
readonly itemId: string;
|
|
3339
|
+
readonly summaryIndex: number;
|
|
3340
|
+
} | {
|
|
3341
|
+
readonly type: "status";
|
|
3342
|
+
readonly text: string;
|
|
3343
|
+
} | {
|
|
3344
|
+
readonly type: "question";
|
|
3345
|
+
readonly historical?: boolean | undefined;
|
|
3346
|
+
readonly request: {
|
|
3347
|
+
readonly id: string;
|
|
3348
|
+
readonly kind: "ask_user";
|
|
3349
|
+
readonly conversationId: string;
|
|
3350
|
+
readonly turnId: string;
|
|
3351
|
+
readonly itemId: string;
|
|
3352
|
+
readonly payload: {
|
|
3353
|
+
readonly request: {
|
|
3354
|
+
readonly itemId: string;
|
|
3355
|
+
readonly delivery: "tool" | "async";
|
|
3356
|
+
readonly blocking: boolean;
|
|
3357
|
+
readonly questions: readonly {
|
|
3358
|
+
readonly id: string;
|
|
3359
|
+
readonly header: string;
|
|
3360
|
+
readonly question: string;
|
|
3361
|
+
readonly isOther: boolean;
|
|
3362
|
+
readonly isSecret: boolean;
|
|
3363
|
+
readonly options: readonly {
|
|
3364
|
+
readonly label: string;
|
|
3365
|
+
readonly description: string;
|
|
3366
|
+
}[] | null;
|
|
3367
|
+
}[];
|
|
3368
|
+
readonly autoResolutionMs?: number | undefined;
|
|
3369
|
+
};
|
|
3370
|
+
};
|
|
3371
|
+
};
|
|
3372
|
+
} | {
|
|
3373
|
+
readonly type: "attachment";
|
|
3374
|
+
readonly attachment: {
|
|
3375
|
+
readonly kind: "file" | "image";
|
|
3376
|
+
readonly name: string;
|
|
3377
|
+
readonly path?: string | undefined;
|
|
3378
|
+
readonly url?: string | undefined;
|
|
3379
|
+
readonly mimeType?: string | undefined;
|
|
3380
|
+
};
|
|
3381
|
+
} | {
|
|
3382
|
+
readonly type: "media";
|
|
3383
|
+
readonly media: {
|
|
3384
|
+
readonly url: string;
|
|
3385
|
+
readonly alt?: string | undefined;
|
|
3386
|
+
readonly mimeType?: string | undefined;
|
|
3387
|
+
readonly prompt?: string | undefined;
|
|
3388
|
+
readonly title?: string | undefined;
|
|
3389
|
+
};
|
|
3390
|
+
readonly itemId?: string | undefined;
|
|
3391
|
+
} | {
|
|
3392
|
+
readonly type: "tool";
|
|
3393
|
+
readonly id: string;
|
|
3394
|
+
readonly title: string;
|
|
3395
|
+
readonly kind?: string | undefined;
|
|
3396
|
+
readonly status: "running" | "completed" | "failed";
|
|
3397
|
+
readonly statusText?: string | undefined;
|
|
3398
|
+
readonly body?: string | undefined;
|
|
3399
|
+
readonly input?: Readonly<unknown> | undefined;
|
|
3400
|
+
readonly output?: Readonly<unknown> | undefined;
|
|
3401
|
+
readonly metadata?: {
|
|
3402
|
+
readonly [x: string]: Readonly<unknown>;
|
|
3403
|
+
} | undefined;
|
|
3404
|
+
})[];
|
|
3405
|
+
readonly createdAt?: string | undefined;
|
|
3406
|
+
readonly turnId?: string | undefined;
|
|
3407
|
+
readonly metadata?: {
|
|
3408
|
+
readonly [x: string]: Readonly<unknown>;
|
|
3409
|
+
} | undefined;
|
|
3410
|
+
};
|
|
3411
|
+
};
|
|
3412
|
+
readonly conversationId: string;
|
|
3413
|
+
readonly turnId: string;
|
|
3414
|
+
} | {
|
|
3415
|
+
readonly seq: number;
|
|
3416
|
+
readonly occurredAt: string;
|
|
3417
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3418
|
+
readonly type: "approval.requested";
|
|
3419
|
+
readonly payload: {
|
|
3420
|
+
readonly approval: {
|
|
3421
|
+
readonly id: string;
|
|
3422
|
+
readonly kind: "command" | "file-change" | "permissions";
|
|
3423
|
+
readonly conversationId: string;
|
|
3424
|
+
readonly turnId?: string | undefined;
|
|
3425
|
+
readonly itemId: string;
|
|
3426
|
+
readonly title: string;
|
|
3427
|
+
readonly description?: string | undefined;
|
|
3428
|
+
readonly command?: string | undefined;
|
|
3429
|
+
readonly cwd?: string | undefined;
|
|
3430
|
+
readonly requestedPermissions?: readonly ({
|
|
3431
|
+
readonly kind: "filesystem";
|
|
3432
|
+
readonly access: "read" | "write" | "deny";
|
|
3433
|
+
readonly path: string;
|
|
3434
|
+
} | {
|
|
3435
|
+
readonly kind: "network";
|
|
3436
|
+
readonly enabled: boolean;
|
|
3437
|
+
readonly host?: string | undefined;
|
|
3438
|
+
readonly protocol?: string | undefined;
|
|
3439
|
+
})[] | undefined;
|
|
3440
|
+
readonly allowedScopes?: readonly CodexSurfaceApprovalScope[] | undefined;
|
|
3441
|
+
readonly canDeny?: boolean | undefined;
|
|
3442
|
+
};
|
|
3443
|
+
};
|
|
3444
|
+
readonly conversationId: string;
|
|
3445
|
+
readonly turnId?: string | undefined;
|
|
3446
|
+
} | {
|
|
3447
|
+
readonly seq: number;
|
|
3448
|
+
readonly occurredAt: string;
|
|
3449
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3450
|
+
readonly type: "approval.resolved";
|
|
3451
|
+
readonly payload: {
|
|
3452
|
+
readonly approval: {
|
|
3453
|
+
readonly id: string;
|
|
3454
|
+
readonly kind: "command" | "file-change" | "permissions";
|
|
3455
|
+
readonly conversationId: string;
|
|
3456
|
+
readonly turnId?: string | undefined;
|
|
3457
|
+
readonly itemId: string;
|
|
3458
|
+
readonly title: string;
|
|
3459
|
+
readonly description?: string | undefined;
|
|
3460
|
+
readonly command?: string | undefined;
|
|
3461
|
+
readonly cwd?: string | undefined;
|
|
3462
|
+
readonly requestedPermissions?: readonly ({
|
|
3463
|
+
readonly kind: "filesystem";
|
|
3464
|
+
readonly access: "read" | "write" | "deny";
|
|
3465
|
+
readonly path: string;
|
|
3466
|
+
} | {
|
|
3467
|
+
readonly kind: "network";
|
|
3468
|
+
readonly enabled: boolean;
|
|
3469
|
+
readonly host?: string | undefined;
|
|
3470
|
+
readonly protocol?: string | undefined;
|
|
3471
|
+
})[] | undefined;
|
|
3472
|
+
readonly allowedScopes?: readonly CodexSurfaceApprovalScope[] | undefined;
|
|
3473
|
+
readonly canDeny?: boolean | undefined;
|
|
3474
|
+
};
|
|
3475
|
+
readonly decision: CodexSurfaceApprovalDecision | null;
|
|
3476
|
+
readonly scope: CodexSurfaceApprovalScope | null;
|
|
3477
|
+
readonly reason: "host" | "server" | "conversation_closed" | "conversation_removed" | "surface_disconnected";
|
|
3478
|
+
};
|
|
3479
|
+
readonly conversationId: string;
|
|
3480
|
+
readonly turnId?: string | undefined;
|
|
3481
|
+
} | {
|
|
3482
|
+
readonly seq: number;
|
|
3483
|
+
readonly occurredAt: string;
|
|
3484
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3485
|
+
readonly type: "clientRequest.requested";
|
|
3486
|
+
readonly payload: {
|
|
3487
|
+
readonly request: {
|
|
3488
|
+
readonly id: string;
|
|
3489
|
+
readonly kind: "ask_user";
|
|
3490
|
+
readonly conversationId: string;
|
|
3491
|
+
readonly turnId: string;
|
|
3492
|
+
readonly itemId: string;
|
|
3493
|
+
readonly payload: {
|
|
3494
|
+
readonly request: {
|
|
3495
|
+
readonly itemId: string;
|
|
3496
|
+
readonly delivery: "tool" | "async";
|
|
3497
|
+
readonly blocking: boolean;
|
|
3498
|
+
readonly questions: readonly {
|
|
3499
|
+
readonly id: string;
|
|
3500
|
+
readonly header: string;
|
|
3501
|
+
readonly question: string;
|
|
3502
|
+
readonly isOther: boolean;
|
|
3503
|
+
readonly isSecret: boolean;
|
|
3504
|
+
readonly options: readonly {
|
|
3505
|
+
readonly label: string;
|
|
3506
|
+
readonly description: string;
|
|
3507
|
+
}[] | null;
|
|
3508
|
+
}[];
|
|
3509
|
+
readonly autoResolutionMs?: number | undefined;
|
|
3510
|
+
};
|
|
3511
|
+
};
|
|
3512
|
+
} | {
|
|
3513
|
+
readonly id: string;
|
|
3514
|
+
readonly kind: "confirm_tool";
|
|
3515
|
+
readonly conversationId: string;
|
|
3516
|
+
readonly turnId: string | null;
|
|
3517
|
+
readonly itemId: string;
|
|
3518
|
+
readonly payload: {
|
|
3519
|
+
readonly confirmation: {
|
|
3520
|
+
readonly argumentsPreview: string;
|
|
3521
|
+
readonly integrationId: string;
|
|
3522
|
+
readonly integrationName: string;
|
|
3523
|
+
readonly summary: string;
|
|
3524
|
+
readonly toolName: string;
|
|
3525
|
+
readonly allowConversation?: boolean | undefined;
|
|
3526
|
+
readonly allowAlways?: boolean | undefined;
|
|
3527
|
+
};
|
|
3528
|
+
};
|
|
3529
|
+
};
|
|
3530
|
+
};
|
|
3531
|
+
readonly conversationId: string;
|
|
3532
|
+
readonly turnId?: string | undefined;
|
|
3533
|
+
} | {
|
|
3534
|
+
readonly seq: number;
|
|
3535
|
+
readonly occurredAt: string;
|
|
3536
|
+
readonly origin: import("@codex-app-sdk/core/surface").CodexSurfaceEventOrigin;
|
|
3537
|
+
readonly type: "clientRequest.resolved";
|
|
3538
|
+
readonly payload: {
|
|
3539
|
+
readonly request: {
|
|
3540
|
+
readonly id: string;
|
|
3541
|
+
readonly kind: "ask_user";
|
|
3542
|
+
readonly conversationId: string;
|
|
3543
|
+
readonly turnId: string;
|
|
3544
|
+
readonly itemId: string;
|
|
3545
|
+
readonly payload: {
|
|
3546
|
+
readonly request: {
|
|
3547
|
+
readonly itemId: string;
|
|
3548
|
+
readonly delivery: "tool" | "async";
|
|
3549
|
+
readonly blocking: boolean;
|
|
3550
|
+
readonly questions: readonly {
|
|
3551
|
+
readonly id: string;
|
|
3552
|
+
readonly header: string;
|
|
3553
|
+
readonly question: string;
|
|
3554
|
+
readonly isOther: boolean;
|
|
3555
|
+
readonly isSecret: boolean;
|
|
3556
|
+
readonly options: readonly {
|
|
3557
|
+
readonly label: string;
|
|
3558
|
+
readonly description: string;
|
|
3559
|
+
}[] | null;
|
|
3560
|
+
}[];
|
|
3561
|
+
readonly autoResolutionMs?: number | undefined;
|
|
3562
|
+
};
|
|
3563
|
+
};
|
|
3564
|
+
} | {
|
|
3565
|
+
readonly id: string;
|
|
3566
|
+
readonly kind: "confirm_tool";
|
|
3567
|
+
readonly conversationId: string;
|
|
3568
|
+
readonly turnId: string | null;
|
|
3569
|
+
readonly itemId: string;
|
|
3570
|
+
readonly payload: {
|
|
3571
|
+
readonly confirmation: {
|
|
3572
|
+
readonly argumentsPreview: string;
|
|
3573
|
+
readonly integrationId: string;
|
|
3574
|
+
readonly integrationName: string;
|
|
3575
|
+
readonly summary: string;
|
|
3576
|
+
readonly toolName: string;
|
|
3577
|
+
readonly allowConversation?: boolean | undefined;
|
|
3578
|
+
readonly allowAlways?: boolean | undefined;
|
|
3579
|
+
};
|
|
3580
|
+
};
|
|
3581
|
+
};
|
|
3582
|
+
readonly response: {
|
|
3583
|
+
readonly id: string;
|
|
3584
|
+
readonly payload?: {
|
|
3585
|
+
readonly answers?: {
|
|
3586
|
+
readonly [x: string]: {
|
|
3587
|
+
readonly answers: readonly string[];
|
|
3588
|
+
};
|
|
3589
|
+
} | undefined;
|
|
3590
|
+
readonly cancelled?: boolean | undefined;
|
|
3591
|
+
readonly decision?: (import("@codex-app-sdk/core/surface").CodexSurfaceToolConfirmationDecision | null) | undefined;
|
|
3592
|
+
} | undefined;
|
|
3593
|
+
} | null;
|
|
3594
|
+
readonly reason: "host" | "server" | "conversation_closed" | "conversation_removed" | "surface_disconnected";
|
|
3595
|
+
};
|
|
3596
|
+
readonly conversationId: string;
|
|
3597
|
+
readonly turnId?: string | undefined;
|
|
3598
|
+
} | null>>;
|
|
3599
|
+
answeredClientRequestIds: ReadonlySet<string>;
|
|
3600
|
+
onEvent: (listener: (event: CodexSurfaceEvent) => void) => () => boolean;
|
|
3601
|
+
archiveConversation: (conversationId: string) => Promise<CodexSurfaceSnapshot>;
|
|
3602
|
+
cancelLogin: (loginId?: string) => Promise<CodexSurfaceSnapshot>;
|
|
3603
|
+
clearGoal: () => Promise<CodexSurfaceSnapshot>;
|
|
3604
|
+
compactConversation: () => Promise<CodexSurfaceSnapshot>;
|
|
3605
|
+
continueInterruptedTurn: () => Promise<CodexSurfaceSnapshot>;
|
|
3606
|
+
connect: () => Promise<CodexSurfaceSnapshot>;
|
|
3607
|
+
createConversation: (options?: CreateCodexRendererConversationOptions) => Promise<CodexSurfaceSnapshot>;
|
|
3608
|
+
deleteConversation: (conversationId: string) => Promise<CodexSurfaceSnapshot>;
|
|
3609
|
+
deleteTurn: (turnId: string) => Promise<CodexSurfaceSnapshot>;
|
|
3610
|
+
deleteQueuedPrompt: (promptId: string) => Promise<CodexSurfaceSnapshot>;
|
|
3611
|
+
updateQueuedPrompt: (promptId: string, prompt: string) => Promise<CodexSurfaceSnapshot>;
|
|
3612
|
+
editTurn: (turnId: string, content: string) => Promise<CodexSurfaceSnapshot>;
|
|
3613
|
+
forkTurn: (turnId: string) => Promise<CodexSurfaceSnapshot>;
|
|
3614
|
+
interrupt: () => Promise<CodexSurfaceSnapshot>;
|
|
3615
|
+
listConversations: (options?: ListCodexConversationsOptions) => Promise<import("@codex-app-sdk/core/surface").CodexConversationSummary[]>;
|
|
3616
|
+
listModels: (options?: ListCodexModelsOptions) => Promise<import("@codex-app-sdk/core/surface").CodexSurfaceModel[]>;
|
|
3617
|
+
logout: () => Promise<CodexSurfaceSnapshot>;
|
|
3618
|
+
readConversationHistory: (conversationId?: string) => Promise<CodexConversationHistory>;
|
|
3619
|
+
readConversationPromptHistory: (conversationId?: string) => Promise<CodexConversationPromptHistory>;
|
|
3620
|
+
loadOlderConversationHistory: (conversationId?: string) => Promise<import("@codex-app-sdk/core/surface").CodexConversationHistoryPage>;
|
|
3621
|
+
refreshAccount: () => Promise<CodexSurfaceSnapshot>;
|
|
3622
|
+
refreshConversations: () => Promise<CodexSurfaceSnapshot>;
|
|
3623
|
+
renameConversation: (title: string) => Promise<CodexSurfaceSnapshot>;
|
|
3624
|
+
respondToClientRequest: (response: CodexSurfaceClientRequestResponse) => Promise<CodexSurfaceSnapshot>;
|
|
3625
|
+
resolveApproval: (approvalId: string, decision: CodexSurfaceApprovalDecision, scope?: CodexSurfaceApprovalScope) => Promise<CodexSurfaceSnapshot>;
|
|
3626
|
+
retryTurn: (turnId: string) => Promise<CodexSurfaceSnapshot>;
|
|
3627
|
+
setGoal: (objective: string, tokenBudget?: number | null) => Promise<CodexSurfaceSnapshot>;
|
|
3628
|
+
selectConversation: (conversationId: string) => Promise<CodexSurfaceSnapshot>;
|
|
3629
|
+
sendMessage: (prompt: string, options?: CodexRendererSendMessageOptions) => Promise<CodexSurfaceSnapshot>;
|
|
3630
|
+
startReview: (options?: StartCodexReviewOptions) => Promise<CodexSurfaceSnapshot>;
|
|
3631
|
+
startChatGptDeviceCodeLogin: () => Promise<import("@codex-app-sdk/core/surface").CodexSurfaceChatGptDeviceCodeLogin>;
|
|
3632
|
+
startChatGptLogin: () => Promise<import("@codex-app-sdk/core/surface").CodexSurfaceChatGptLogin>;
|
|
3633
|
+
steerMessage: (prompt: string, options?: CodexRendererSendMessageOptions) => Promise<CodexSurfaceSnapshot>;
|
|
3634
|
+
steerQueuedPrompt: (promptId: string, prompt?: string) => Promise<CodexSurfaceSnapshot>;
|
|
3635
|
+
unarchiveConversation: (conversationId: string) => Promise<CodexSurfaceSnapshot>;
|
|
3636
|
+
updateConversationSettings: (settings: UpdateCodexConversationSettings) => Promise<CodexSurfaceSnapshot>;
|
|
3637
|
+
};
|
|
3638
|
+
export type CodexSurfaceController = ReturnType<typeof useCodexSurface>;
|
|
3639
|
+
//# sourceMappingURL=use-codex-surface.d.ts.map
|