@skaile/workspaces 3.16.2 → 3.17.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/app-sdk/index.js +1 -1
  3. package/dist/bridge/codex-app-server.d.ts +2 -0
  4. package/dist/bridge/codex-app-server.js +206 -0
  5. package/dist/bridge/codex-app-server.js.map +1 -0
  6. package/dist/bridge/src/codex/native-protocol.generated.d.ts +1325 -0
  7. package/dist/bridge/src/codex/native-protocol.generated.d.ts.map +1 -0
  8. package/dist/bridge/src/codex-app-server.d.ts +55 -0
  9. package/dist/bridge/src/codex-app-server.d.ts.map +1 -0
  10. package/dist/{chunk-GRVSSAAQ.js → chunk-2XGFQKNJ.js} +2 -2
  11. package/dist/{chunk-GRVSSAAQ.js.map → chunk-2XGFQKNJ.js.map} +1 -1
  12. package/dist/{chunk-2KBA5OO2.js → chunk-BCOGOM6F.js} +4 -4
  13. package/dist/{chunk-2KBA5OO2.js.map → chunk-BCOGOM6F.js.map} +1 -1
  14. package/dist/{chunk-DUMD4AA2.js → chunk-HEKLK4NG.js} +2 -2
  15. package/dist/{chunk-DUMD4AA2.js.map → chunk-HEKLK4NG.js.map} +1 -1
  16. package/dist/{chunk-I3COVVFB.js → chunk-KCI7DAKE.js} +111 -40
  17. package/dist/chunk-KCI7DAKE.js.map +1 -0
  18. package/dist/{chunk-4W2OOVN5.js → chunk-NMAICJUA.js} +3 -3
  19. package/dist/{chunk-4W2OOVN5.js.map → chunk-NMAICJUA.js.map} +1 -1
  20. package/dist/{chunk-L2UE4YJO.js → chunk-PYX4WZLJ.js} +4 -4
  21. package/dist/{chunk-L2UE4YJO.js.map → chunk-PYX4WZLJ.js.map} +1 -1
  22. package/dist/cli/index.js +7 -7
  23. package/dist/factory-assets/connectors/flow/run-flow.js +1 -1
  24. package/dist/runner/index.js +4 -4
  25. package/dist/runner/src/codex-init.d.ts +14 -0
  26. package/dist/runner/src/codex-init.d.ts.map +1 -0
  27. package/dist/runner/src/serve.d.ts.map +1 -1
  28. package/dist/sdk/index.js +4 -4
  29. package/dist/sdk/runner.js +4 -4
  30. package/dist/sdk/session.js +2 -2
  31. package/dist/sdk/types.js +1 -1
  32. package/dist/session/index.js +2 -2
  33. package/dist/{source-6PBVTACZ.js → source-ODR4IU6R.js} +3 -3
  34. package/dist/{source-6PBVTACZ.js.map → source-ODR4IU6R.js.map} +1 -1
  35. package/dist/{source-manifest-publish-VBVNW7KL.js → source-manifest-publish-WCJY3GAM.js} +3 -3
  36. package/dist/{source-manifest-publish-VBVNW7KL.js.map → source-manifest-publish-WCJY3GAM.js.map} +1 -1
  37. package/dist/tui/index.js +4 -4
  38. package/dist/types/index.js +1 -1
  39. package/dist/types/src/index.d.ts +1 -1
  40. package/dist/types/src/index.d.ts.map +1 -1
  41. package/dist/types/src/lifecycle.d.ts +43 -0
  42. package/dist/types/src/lifecycle.d.ts.map +1 -1
  43. package/dist/types/src/version.d.ts +1 -1
  44. package/dist/workspace-plugin/adapters/mcp.js +1 -1
  45. package/dist/workspace-plugin/index.js +1 -1
  46. package/package.json +8 -1
  47. package/dist/chunk-I3COVVFB.js.map +0 -1
@@ -0,0 +1,1325 @@
1
+ export type NativeRequests = {
2
+ initialize: {
3
+ params: InitializeParams;
4
+ result: InitializeResponse;
5
+ };
6
+ "account/login/start": {
7
+ params: v2_LoginAccountParams;
8
+ result: v2_LoginAccountResponse;
9
+ };
10
+ "account/login/cancel": {
11
+ params: v2_CancelLoginAccountParams;
12
+ result: v2_CancelLoginAccountResponse;
13
+ };
14
+ "account/read": {
15
+ params: v2_GetAccountParams;
16
+ result: v2_GetAccountResponse;
17
+ };
18
+ "account/logout": {
19
+ params: null;
20
+ result: v2_LogoutAccountResponse;
21
+ };
22
+ "model/list": {
23
+ params: v2_ModelListParams;
24
+ result: v2_ModelListResponse;
25
+ };
26
+ "thread/start": {
27
+ params: v2_ThreadStartParams;
28
+ result: v2_ThreadStartResponse;
29
+ };
30
+ "thread/resume": {
31
+ params: v2_ThreadResumeParams;
32
+ result: v2_ThreadResumeResponse;
33
+ };
34
+ "thread/read": {
35
+ params: v2_ThreadReadParams;
36
+ result: v2_ThreadReadResponse;
37
+ };
38
+ "turn/start": {
39
+ params: v2_TurnStartParams;
40
+ result: v2_TurnStartResponse;
41
+ };
42
+ "turn/interrupt": {
43
+ params: v2_TurnInterruptParams;
44
+ result: v2_TurnInterruptResponse;
45
+ };
46
+ };
47
+ export type NativeServerRequests = {
48
+ "account/chatgptAuthTokens/refresh": {
49
+ params: ChatgptAuthTokensRefreshParams;
50
+ result: ChatgptAuthTokensRefreshResponse;
51
+ };
52
+ "item/tool/call": {
53
+ params: DynamicToolCallParams;
54
+ result: DynamicToolCallResponse;
55
+ };
56
+ "item/tool/requestUserInput": {
57
+ params: ToolRequestUserInputParams;
58
+ result: ToolRequestUserInputResponse;
59
+ };
60
+ "item/commandExecution/requestApproval": {
61
+ params: CommandExecutionRequestApprovalParams;
62
+ result: CommandExecutionRequestApprovalResponse;
63
+ };
64
+ "item/fileChange/requestApproval": {
65
+ params: FileChangeRequestApprovalParams;
66
+ result: FileChangeRequestApprovalResponse;
67
+ };
68
+ "item/permissions/requestApproval": {
69
+ params: PermissionsRequestApprovalParams;
70
+ result: PermissionsRequestApprovalResponse;
71
+ };
72
+ "mcpServer/elicitation/request": {
73
+ params: McpServerElicitationRequestParams;
74
+ result: McpServerElicitationRequestResponse;
75
+ };
76
+ };
77
+ type InitializeParams = {
78
+ capabilities?: InitializeCapabilities | null;
79
+ clientInfo: ClientInfo;
80
+ };
81
+ type InitializeResponse = {
82
+ codexHome: v2_AbsolutePathBuf;
83
+ platformFamily: string;
84
+ platformOs: string;
85
+ userAgent: string;
86
+ };
87
+ type v2_LoginAccountParams = {
88
+ apiKey: string;
89
+ type: "apiKey";
90
+ } | {
91
+ appBrand?: v2_LoginAppBrand | null;
92
+ codexStreamlinedLogin?: boolean;
93
+ type: "chatgpt";
94
+ useHostedLoginSuccessPage?: boolean;
95
+ } | {
96
+ type: "chatgptDeviceCode";
97
+ } | {
98
+ accessToken: string;
99
+ chatgptAccountId: string;
100
+ chatgptPlanType?: string | null;
101
+ type: "chatgptAuthTokens";
102
+ } | {
103
+ apiKey: string;
104
+ region: string;
105
+ type: "amazonBedrock";
106
+ } | {
107
+ accessKeyId: string;
108
+ region: string;
109
+ secretAccessKey: string;
110
+ sessionToken?: string | null;
111
+ type: "amazonBedrockAccessKeys";
112
+ };
113
+ type v2_LoginAccountResponse = {
114
+ type: "apiKey";
115
+ } | {
116
+ authUrl: string;
117
+ loginId: string;
118
+ type: "chatgpt";
119
+ } | {
120
+ loginId: string;
121
+ type: "chatgptDeviceCode";
122
+ userCode: string;
123
+ verificationUrl: string;
124
+ } | {
125
+ type: "chatgptAuthTokens";
126
+ } | {
127
+ type: "amazonBedrock";
128
+ };
129
+ type v2_CancelLoginAccountParams = {
130
+ loginId: string;
131
+ };
132
+ type v2_CancelLoginAccountResponse = {
133
+ status: v2_CancelLoginAccountStatus;
134
+ };
135
+ type v2_GetAccountParams = {
136
+ refreshToken?: boolean;
137
+ };
138
+ type v2_GetAccountResponse = {
139
+ account?: v2_Account | null;
140
+ requiresOpenaiAuth: boolean;
141
+ };
142
+ type v2_LogoutAccountResponse = Record<string, never>;
143
+ type v2_ModelListParams = {
144
+ cursor?: string | null;
145
+ includeHidden?: boolean | null;
146
+ limit?: number | null;
147
+ };
148
+ type v2_ModelListResponse = {
149
+ data: Array<v2_Model>;
150
+ nextCursor?: string | null;
151
+ };
152
+ type v2_ThreadStartParams = {
153
+ allowProviderModelFallback?: boolean;
154
+ approvalPolicy?: v2_AskForApproval | null;
155
+ approvalsReviewer?: v2_ApprovalsReviewer | null;
156
+ baseInstructions?: string | null;
157
+ config?: {
158
+ [key: string]: unknown;
159
+ } | null;
160
+ cwd?: string | null;
161
+ developerInstructions?: string | null;
162
+ dynamicTools?: Array<v2_DynamicToolSpec> | null;
163
+ environments?: Array<v2_TurnEnvironmentParams> | null;
164
+ ephemeral?: boolean | null;
165
+ experimentalRawEvents?: boolean;
166
+ historyMode?: v2_ThreadHistoryMode | null;
167
+ mockExperimentalField?: string | null;
168
+ model?: string | null;
169
+ modelProvider?: string | null;
170
+ multiAgentMode?: v2_MultiAgentMode | null;
171
+ permissions?: string | null;
172
+ personality?: v2_Personality | null;
173
+ projectId?: string | null;
174
+ runtimeWorkspaceRoots?: Array<v2_AbsolutePathBuf> | null;
175
+ sandbox?: v2_SandboxMode | null;
176
+ selectedCapabilityRoots?: Array<v2_SelectedCapabilityRoot> | null;
177
+ serviceName?: string | null;
178
+ serviceTier?: string | null;
179
+ sessionStartSource?: v2_ThreadStartSource | null;
180
+ threadSource?: v2_ThreadSource | null;
181
+ };
182
+ type v2_ThreadStartResponse = {
183
+ activePermissionProfile?: v2_ActivePermissionProfile | null;
184
+ approvalPolicy: v2_AskForApproval;
185
+ approvalsReviewer: v2_ApprovalsReviewer;
186
+ cwd: v2_AbsolutePathBuf;
187
+ instructionSources?: Array<v2_LegacyAppPathString>;
188
+ model: string;
189
+ modelProvider: string;
190
+ multiAgentMode?: v2_MultiAgentMode;
191
+ reasoningEffort?: v2_ReasoningEffort | null;
192
+ runtimeWorkspaceRoots?: Array<v2_AbsolutePathBuf>;
193
+ sandbox: v2_SandboxPolicy;
194
+ serviceTier?: string | null;
195
+ thread: v2_Thread;
196
+ };
197
+ type v2_ThreadResumeParams = {
198
+ approvalPolicy?: v2_AskForApproval | null;
199
+ approvalsReviewer?: v2_ApprovalsReviewer | null;
200
+ baseInstructions?: string | null;
201
+ config?: {
202
+ [key: string]: unknown;
203
+ } | null;
204
+ cwd?: string | null;
205
+ developerInstructions?: string | null;
206
+ excludeTurns?: boolean;
207
+ history?: Array<v2_ResponseItem> | null;
208
+ initialTurnsPage?: v2_ThreadResumeInitialTurnsPageParams | null;
209
+ model?: string | null;
210
+ modelProvider?: string | null;
211
+ path?: string | null;
212
+ permissions?: string | null;
213
+ personality?: v2_Personality | null;
214
+ runtimeWorkspaceRoots?: Array<v2_AbsolutePathBuf> | null;
215
+ sandbox?: v2_SandboxMode | null;
216
+ serviceTier?: string | null;
217
+ threadId: string;
218
+ };
219
+ type v2_ThreadResumeResponse = {
220
+ activePermissionProfile?: v2_ActivePermissionProfile | null;
221
+ approvalPolicy: v2_AskForApproval;
222
+ approvalsReviewer: v2_ApprovalsReviewer;
223
+ cwd: v2_AbsolutePathBuf;
224
+ initialTurnsPage?: v2_TurnsPage | null;
225
+ instructionSources?: Array<v2_LegacyAppPathString>;
226
+ itemsBackwardsCursor?: string | null;
227
+ model: string;
228
+ modelProvider: string;
229
+ multiAgentMode?: v2_MultiAgentMode;
230
+ reasoningEffort?: v2_ReasoningEffort | null;
231
+ runtimeWorkspaceRoots?: Array<v2_AbsolutePathBuf>;
232
+ sandbox: v2_SandboxPolicy;
233
+ serviceTier?: string | null;
234
+ thread: v2_Thread;
235
+ turnsBackwardsCursor?: string | null;
236
+ };
237
+ type v2_ThreadReadParams = {
238
+ includeTurns?: boolean;
239
+ threadId: string;
240
+ };
241
+ type v2_ThreadReadResponse = {
242
+ thread: v2_Thread;
243
+ };
244
+ type v2_TurnStartParams = {
245
+ additionalContext?: {
246
+ [key: string]: v2_AdditionalContextEntry;
247
+ } | null;
248
+ approvalPolicy?: v2_AskForApproval | null;
249
+ approvalsReviewer?: v2_ApprovalsReviewer | null;
250
+ clientUserMessageId?: string | null;
251
+ collaborationMode?: v2_CollaborationMode | null;
252
+ cwd?: string | null;
253
+ cyberAccessProgram?: v2_CyberAccessProgram | null;
254
+ effort?: v2_ReasoningEffort | null;
255
+ environments?: Array<v2_TurnEnvironmentParams> | null;
256
+ input: Array<v2_UserInput>;
257
+ model?: string | null;
258
+ multiAgentMode?: v2_MultiAgentMode | null;
259
+ outputSchema?: unknown;
260
+ permissions?: string | null;
261
+ personality?: v2_Personality | null;
262
+ responsesapiClientMetadata?: {
263
+ [key: string]: string;
264
+ } | null;
265
+ runtimeWorkspaceRoots?: Array<v2_AbsolutePathBuf> | null;
266
+ sandboxPolicy?: v2_SandboxPolicy | null;
267
+ serviceTier?: string | null;
268
+ serviceTierForTurn?: string | null;
269
+ summary?: v2_ReasoningSummary | null;
270
+ threadId: string;
271
+ toolOutput?: v2_TurnToolOutput | null;
272
+ turnTrigger?: string | null;
273
+ };
274
+ type v2_TurnStartResponse = {
275
+ turn: v2_Turn;
276
+ };
277
+ type v2_TurnInterruptParams = {
278
+ threadId: string;
279
+ turnId: string;
280
+ };
281
+ type v2_TurnInterruptResponse = Record<string, never>;
282
+ type ChatgptAuthTokensRefreshParams = {
283
+ previousAccountId?: string | null;
284
+ reason: ChatgptAuthTokensRefreshReason;
285
+ };
286
+ type ChatgptAuthTokensRefreshResponse = {
287
+ accessToken: string;
288
+ chatgptAccountId: string;
289
+ chatgptPlanType?: string | null;
290
+ };
291
+ type DynamicToolCallParams = {
292
+ arguments: unknown;
293
+ callId: string;
294
+ namespace?: string | null;
295
+ threadId: string;
296
+ tool: string;
297
+ turnId: string;
298
+ };
299
+ type DynamicToolCallResponse = {
300
+ contentItems: Array<v2_DynamicToolCallOutputContentItem>;
301
+ success: boolean;
302
+ };
303
+ type ToolRequestUserInputParams = {
304
+ autoResolutionMs?: number | null;
305
+ isBlocking: boolean;
306
+ itemId: string;
307
+ questions: Array<ToolRequestUserInputQuestion>;
308
+ threadId: string;
309
+ turnId: string;
310
+ };
311
+ type ToolRequestUserInputResponse = {
312
+ answers: {
313
+ [key: string]: ToolRequestUserInputAnswer;
314
+ };
315
+ };
316
+ type CommandExecutionRequestApprovalParams = {
317
+ additionalPermissions?: AdditionalPermissionProfile | null;
318
+ approvalId?: string | null;
319
+ availableDecisions?: Array<CommandExecutionApprovalDecision> | null;
320
+ command?: string | null;
321
+ commandActions?: Array<v2_CommandAction> | null;
322
+ cwd?: v2_LegacyAppPathString | null;
323
+ environmentId?: string | null;
324
+ itemId: string;
325
+ kind?: CommandExecutionApprovalKind;
326
+ networkApprovalContext?: NetworkApprovalContext | null;
327
+ proposedExecpolicyAmendment?: Array<string> | null;
328
+ proposedNetworkPolicyAmendments?: Array<NetworkPolicyAmendment> | null;
329
+ reason?: string | null;
330
+ startedAtMs: number;
331
+ threadId: string;
332
+ turnId: string;
333
+ };
334
+ type CommandExecutionRequestApprovalResponse = {
335
+ decision: CommandExecutionApprovalDecision;
336
+ };
337
+ type FileChangeRequestApprovalParams = {
338
+ grantRoot?: string | null;
339
+ itemId: string;
340
+ reason?: string | null;
341
+ startedAtMs: number;
342
+ threadId: string;
343
+ turnId: string;
344
+ };
345
+ type FileChangeRequestApprovalResponse = {
346
+ decision: FileChangeApprovalDecision;
347
+ };
348
+ type PermissionsRequestApprovalParams = {
349
+ cwd: v2_AbsolutePathBuf;
350
+ environmentId?: string | null;
351
+ itemId: string;
352
+ permissions: v2_RequestPermissionProfile;
353
+ reason?: string | null;
354
+ startedAtMs: number;
355
+ threadId: string;
356
+ turnId: string;
357
+ };
358
+ type PermissionsRequestApprovalResponse = {
359
+ permissions: GrantedPermissionProfile;
360
+ scope?: PermissionGrantScope;
361
+ strictAutoReview?: boolean | null;
362
+ };
363
+ type McpServerElicitationRequestParams = {
364
+ _meta?: unknown;
365
+ message: string;
366
+ mode: "form";
367
+ requestedSchema: McpElicitationSchema;
368
+ } | {
369
+ _meta?: unknown;
370
+ message: string;
371
+ mode: "openai/form";
372
+ requestedSchema: unknown;
373
+ } | {
374
+ _meta?: unknown;
375
+ message: string;
376
+ mode: "openaiForm";
377
+ requestedSchema: unknown;
378
+ } | {
379
+ _meta?: unknown;
380
+ elicitationId: string;
381
+ message: string;
382
+ mode: "url";
383
+ url: string;
384
+ };
385
+ type McpServerElicitationRequestResponse = {
386
+ _meta?: unknown;
387
+ action: McpServerElicitationAction;
388
+ content?: unknown;
389
+ };
390
+ type InitializeCapabilities = {
391
+ experimentalApi?: boolean;
392
+ extensions?: {
393
+ [key: string]: unknown;
394
+ } | null;
395
+ mcpServerOpenaiFormElicitation?: boolean;
396
+ optOutNotificationMethods?: Array<string> | null;
397
+ requestAttestation?: boolean;
398
+ };
399
+ type ClientInfo = {
400
+ name: string;
401
+ title?: string | null;
402
+ version: string;
403
+ };
404
+ type v2_AbsolutePathBuf = string;
405
+ type v2_LoginAppBrand = "codex" | "chatgpt";
406
+ type v2_CancelLoginAccountStatus = "canceled" | "notFound";
407
+ type v2_Account = {
408
+ type: "apiKey";
409
+ } | {
410
+ email: string | null;
411
+ planType: v2_PlanType;
412
+ type: "chatgpt";
413
+ } | {
414
+ type: "amazonBedrock";
415
+ usesCodexManagedCredentials?: boolean;
416
+ };
417
+ type v2_Model = {
418
+ additionalSpeedTiers?: Array<string>;
419
+ availabilityNux?: v2_ModelAvailabilityNux | null;
420
+ defaultReasoningEffort: v2_ReasoningEffort;
421
+ defaultServiceTier?: string | null;
422
+ description: string;
423
+ displayName: string;
424
+ hidden: boolean;
425
+ id: string;
426
+ inputModalities?: Array<v2_InputModality>;
427
+ isDefault: boolean;
428
+ model: string;
429
+ modelSpecialty?: string | null;
430
+ multiAgentVersion?: v2_MultiAgentVersion | null;
431
+ serviceTiers?: Array<v2_ModelServiceTier>;
432
+ supportedReasoningEfforts: Array<v2_ReasoningEffortOption>;
433
+ supportsPersonality?: boolean;
434
+ upgrade?: string | null;
435
+ upgradeInfo?: v2_ModelUpgradeInfo | null;
436
+ };
437
+ type v2_AskForApproval = "untrusted" | "on-request" | "never" | {
438
+ granular: {
439
+ mcp_elicitations: boolean;
440
+ request_permissions?: boolean;
441
+ rules: boolean;
442
+ sandbox_approval: boolean;
443
+ skill_approval?: boolean;
444
+ };
445
+ };
446
+ type v2_ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
447
+ type v2_DynamicToolSpec = {
448
+ deferLoading?: boolean;
449
+ description: string;
450
+ inputSchema: unknown;
451
+ name: string;
452
+ type: "function";
453
+ } | {
454
+ description: string;
455
+ name: string;
456
+ tools: Array<v2_DynamicToolNamespaceTool>;
457
+ type: "namespace";
458
+ };
459
+ type v2_TurnEnvironmentParams = {
460
+ cwd: v2_LegacyAppPathString;
461
+ environmentId: string;
462
+ runtimeWorkspaceRoots?: Array<v2_LegacyAppPathString> | null;
463
+ };
464
+ type v2_ThreadHistoryMode = "legacy" | "paginated";
465
+ type v2_MultiAgentMode = "explicitRequestOnly" | "proactive" | {
466
+ custom: string;
467
+ };
468
+ type v2_Personality = "none" | "friendly" | "pragmatic";
469
+ type v2_SandboxMode = "read-only" | "workspace-write" | "danger-full-access";
470
+ type v2_SelectedCapabilityRoot = {
471
+ id: string;
472
+ location: v2_CapabilityRootLocation;
473
+ };
474
+ type v2_ThreadStartSource = "startup" | "clear";
475
+ type v2_ThreadSource = string;
476
+ type v2_ActivePermissionProfile = {
477
+ extends?: string | null;
478
+ id: string;
479
+ };
480
+ type v2_LegacyAppPathString = string;
481
+ type v2_ReasoningEffort = string;
482
+ type v2_SandboxPolicy = {
483
+ type: "dangerFullAccess";
484
+ } | {
485
+ networkAccess?: boolean;
486
+ type: "readOnly";
487
+ } | {
488
+ networkAccess?: v2_NetworkAccess;
489
+ type: "externalSandbox";
490
+ } | {
491
+ excludeSlashTmp?: boolean;
492
+ excludeTmpdirEnvVar?: boolean;
493
+ networkAccess?: boolean;
494
+ type: "workspaceWrite";
495
+ writableRoots?: Array<v2_AbsolutePathBuf>;
496
+ };
497
+ type v2_Thread = {
498
+ agentNickname?: string | null;
499
+ agentRole?: string | null;
500
+ canAcceptDirectInput?: boolean | null;
501
+ cliVersion: string;
502
+ createdAt: number;
503
+ cwd: v2_AbsolutePathBuf;
504
+ ephemeral: boolean;
505
+ extra?: v2_ThreadExtra | null;
506
+ forkedFromId?: string | null;
507
+ gitInfo?: v2_GitInfo | null;
508
+ historyMode?: v2_ThreadHistoryMode;
509
+ id: string;
510
+ model?: string | null;
511
+ modelProvider: string;
512
+ name?: string | null;
513
+ parentThreadId?: string | null;
514
+ path?: string | null;
515
+ preview: string;
516
+ projectId: string | null;
517
+ reasoningEffort?: v2_ReasoningEffort | null;
518
+ recencyAt?: number | null;
519
+ section?: v2_ThreadSection | null;
520
+ sectionEnteredAt?: number | null;
521
+ sessionId: string;
522
+ source: v2_SessionSource;
523
+ status: v2_ThreadStatus;
524
+ threadSource?: v2_ThreadSource | null;
525
+ turns: Array<v2_Turn>;
526
+ updatedAt: number;
527
+ };
528
+ type v2_ResponseItem = {
529
+ content: Array<v2_ContentItem>;
530
+ id?: string | null;
531
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
532
+ phase?: v2_MessagePhase | null;
533
+ role: string;
534
+ type: "message";
535
+ } | {
536
+ author: string;
537
+ content: Array<v2_AgentMessageInputContent>;
538
+ id?: string | null;
539
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
540
+ recipient: string;
541
+ type: "agent_message";
542
+ } | {
543
+ content?: Array<v2_ReasoningItemContent> | null;
544
+ encrypted_content?: string | null;
545
+ id?: string | null;
546
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
547
+ summary: Array<v2_ReasoningItemReasoningSummary>;
548
+ type: "reasoning";
549
+ } | {
550
+ action: v2_LocalShellAction;
551
+ call_id?: string | null;
552
+ id?: string | null;
553
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
554
+ status: v2_LocalShellStatus;
555
+ type: "local_shell_call";
556
+ } | {
557
+ arguments: string;
558
+ call_id: string;
559
+ encrypted_function_args?: Array<string> | null;
560
+ id?: string | null;
561
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
562
+ name: string;
563
+ namespace?: string | null;
564
+ type: "function_call";
565
+ } | {
566
+ arguments: unknown;
567
+ call_id?: string | null;
568
+ execution: string;
569
+ id?: string | null;
570
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
571
+ status?: string | null;
572
+ type: "tool_search_call";
573
+ } | {
574
+ call_id?: string | null;
575
+ id?: string | null;
576
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
577
+ name?: string | null;
578
+ namespace?: string | null;
579
+ output: v2_FunctionCallOutputBody;
580
+ type: "function_call_output";
581
+ } | {
582
+ call_id: string;
583
+ id?: string | null;
584
+ input: string;
585
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
586
+ name: string;
587
+ namespace?: string | null;
588
+ status?: string | null;
589
+ type: "custom_tool_call";
590
+ } | {
591
+ call_id: string;
592
+ id?: string | null;
593
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
594
+ name?: string | null;
595
+ output: v2_FunctionCallOutputBody;
596
+ type: "custom_tool_call_output";
597
+ } | {
598
+ call_id?: string | null;
599
+ execution: string;
600
+ id?: string | null;
601
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
602
+ status: string;
603
+ tools: Array<unknown>;
604
+ type: "tool_search_output";
605
+ } | {
606
+ action?: v2_ResponsesApiWebSearchAction | null;
607
+ id?: string | null;
608
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
609
+ status?: string | null;
610
+ type: "web_search_call";
611
+ } | {
612
+ id?: string | null;
613
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
614
+ result: string;
615
+ revised_prompt?: string | null;
616
+ status: string;
617
+ type: "image_generation_call";
618
+ } | {
619
+ encrypted_content: string;
620
+ id?: string | null;
621
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
622
+ type: "compaction";
623
+ } | {
624
+ type: "compaction_trigger";
625
+ } | {
626
+ encrypted_content?: string | null;
627
+ id?: string | null;
628
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
629
+ type: "context_compaction";
630
+ } | {
631
+ type: "other";
632
+ };
633
+ type v2_ThreadResumeInitialTurnsPageParams = {
634
+ itemsView?: v2_TurnItemsView | null;
635
+ limit?: number | null;
636
+ sortDirection?: v2_SortDirection | null;
637
+ };
638
+ type v2_TurnsPage = {
639
+ backwardsCursor?: string | null;
640
+ data: Array<v2_Turn>;
641
+ nextCursor?: string | null;
642
+ };
643
+ type v2_AdditionalContextEntry = {
644
+ kind: v2_AdditionalContextKind;
645
+ value: string;
646
+ };
647
+ type v2_CollaborationMode = {
648
+ mode: v2_ModeKind;
649
+ settings: v2_Settings;
650
+ };
651
+ type v2_CyberAccessProgram = "standard" | "daybreakBlue" | "daybreakRed";
652
+ type v2_UserInput = {
653
+ text: string;
654
+ text_elements?: Array<v2_TextElement>;
655
+ type: "text";
656
+ } | {
657
+ detail?: v2_ImageDetail | null;
658
+ type: "image";
659
+ url: string;
660
+ } | {
661
+ detail?: v2_ImageDetail | null;
662
+ path: string;
663
+ type: "localImage";
664
+ } | {
665
+ type: "audio";
666
+ url: string;
667
+ } | {
668
+ path: string;
669
+ type: "localAudio";
670
+ } | {
671
+ name: string;
672
+ path: string;
673
+ type: "skill";
674
+ } | {
675
+ name: string;
676
+ path: string;
677
+ type: "mention";
678
+ };
679
+ type v2_ReasoningSummary = "auto" | "concise" | "detailed" | "none";
680
+ type v2_TurnToolOutput = {
681
+ name: string;
682
+ namespace?: string | null;
683
+ output: v2_FunctionCallOutputBody;
684
+ };
685
+ type v2_Turn = {
686
+ completedAt?: number | null;
687
+ durationMs?: number | null;
688
+ error?: v2_TurnError | null;
689
+ id: string;
690
+ items: Array<v2_ThreadItem>;
691
+ itemsView?: v2_TurnItemsView;
692
+ startedAt?: number | null;
693
+ status: v2_TurnStatus;
694
+ };
695
+ type ChatgptAuthTokensRefreshReason = "unauthorized";
696
+ type v2_DynamicToolCallOutputContentItem = {
697
+ text: string;
698
+ type: "inputText";
699
+ } | {
700
+ imageUrl: string;
701
+ type: "inputImage";
702
+ } | {
703
+ audioUrl: string;
704
+ type: "inputAudio";
705
+ };
706
+ type ToolRequestUserInputQuestion = {
707
+ header: string;
708
+ id: string;
709
+ isOther?: boolean;
710
+ isSecret?: boolean;
711
+ options?: Array<ToolRequestUserInputOption> | null;
712
+ question: string;
713
+ };
714
+ type ToolRequestUserInputAnswer = {
715
+ answers: Array<string>;
716
+ };
717
+ type AdditionalPermissionProfile = {
718
+ fileSystem?: v2_AdditionalFileSystemPermissions | null;
719
+ network?: v2_AdditionalNetworkPermissions | null;
720
+ };
721
+ type CommandExecutionApprovalDecision = "accept" | "acceptForSession" | {
722
+ acceptWithExecpolicyAmendment: {
723
+ execpolicy_amendment: Array<string>;
724
+ };
725
+ } | {
726
+ applyNetworkPolicyAmendment: {
727
+ network_policy_amendment: NetworkPolicyAmendment;
728
+ };
729
+ } | "decline" | "cancel";
730
+ type v2_CommandAction = {
731
+ command: string;
732
+ name: string;
733
+ path: v2_LegacyAppPathString;
734
+ type: "read";
735
+ } | {
736
+ command: string;
737
+ path?: string | null;
738
+ type: "listFiles";
739
+ } | {
740
+ command: string;
741
+ path?: string | null;
742
+ query?: string | null;
743
+ type: "search";
744
+ } | {
745
+ command: string;
746
+ type: "unknown";
747
+ };
748
+ type CommandExecutionApprovalKind = "command" | "writeStdin";
749
+ type NetworkApprovalContext = {
750
+ host: string;
751
+ protocol: v2_NetworkApprovalProtocol;
752
+ };
753
+ type NetworkPolicyAmendment = {
754
+ action: NetworkPolicyRuleAction;
755
+ host: string;
756
+ };
757
+ type FileChangeApprovalDecision = "accept" | "acceptForSession" | "decline" | "cancel";
758
+ type v2_RequestPermissionProfile = {
759
+ fileSystem?: v2_AdditionalFileSystemPermissions | null;
760
+ network?: v2_AdditionalNetworkPermissions | null;
761
+ };
762
+ type GrantedPermissionProfile = {
763
+ fileSystem?: v2_AdditionalFileSystemPermissions | null;
764
+ network?: v2_AdditionalNetworkPermissions | null;
765
+ };
766
+ type PermissionGrantScope = "turn" | "session";
767
+ type McpElicitationSchema = {
768
+ $schema?: string | null;
769
+ properties: {
770
+ [key: string]: McpElicitationPrimitiveSchema;
771
+ };
772
+ required?: Array<string> | null;
773
+ type: McpElicitationObjectType;
774
+ };
775
+ type McpServerElicitationAction = "accept" | "decline" | "cancel";
776
+ type v2_PlanType = "free" | "go" | "plus" | "pro" | "prolite" | "team" | "self_serve_business_prolite" | "self_serve_business_usage_based" | "business" | "ent26" | "enterprise_cbp_automation" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "edu_plus" | "edu_pro" | "unknown";
777
+ type v2_ModelAvailabilityNux = {
778
+ message: string;
779
+ };
780
+ type v2_InputModality = "text" | "image" | "audio";
781
+ type v2_MultiAgentVersion = "disabled" | "v1" | "v2";
782
+ type v2_ModelServiceTier = {
783
+ description: string;
784
+ id: string;
785
+ name: string;
786
+ };
787
+ type v2_ReasoningEffortOption = {
788
+ description: string;
789
+ reasoningEffort: v2_ReasoningEffort;
790
+ };
791
+ type v2_ModelUpgradeInfo = {
792
+ migrationMarkdown?: string | null;
793
+ model: string;
794
+ modelLink?: string | null;
795
+ retirementAt?: number | null;
796
+ upgradeCopy?: string | null;
797
+ };
798
+ type v2_DynamicToolNamespaceTool = {
799
+ deferLoading?: boolean;
800
+ description: string;
801
+ inputSchema: unknown;
802
+ name: string;
803
+ type: "function";
804
+ };
805
+ type v2_CapabilityRootLocation = {
806
+ environmentId: string;
807
+ path: string;
808
+ type: "environment";
809
+ };
810
+ type v2_NetworkAccess = "restricted" | "enabled";
811
+ type v2_ThreadExtra = Record<string, never>;
812
+ type v2_GitInfo = {
813
+ branch?: string | null;
814
+ originUrl?: string | null;
815
+ sha?: string | null;
816
+ };
817
+ type v2_ThreadSection = {
818
+ appearance?: v2_ThreadSectionAppearance | null;
819
+ id: string;
820
+ name: string;
821
+ };
822
+ type v2_SessionSource = "cli" | "vscode" | "exec" | "appServer" | "unknown" | {
823
+ custom: string;
824
+ } | {
825
+ subAgent: v2_SubAgentSource;
826
+ };
827
+ type v2_ThreadStatus = {
828
+ type: "notLoaded";
829
+ } | {
830
+ type: "idle";
831
+ } | {
832
+ type: "systemError";
833
+ } | {
834
+ activeFlags: Array<v2_ThreadActiveFlag>;
835
+ type: "active";
836
+ };
837
+ type v2_ContentItem = {
838
+ text: string;
839
+ type: "input_text";
840
+ } | {
841
+ detail?: v2_ImageDetail | null;
842
+ image_url: string;
843
+ type: "input_image";
844
+ } | {
845
+ audio_url: string;
846
+ type: "input_audio";
847
+ } | {
848
+ text: string;
849
+ type: "output_text";
850
+ };
851
+ type v2_InternalChatMessageMetadataPassthrough = {
852
+ turn_id?: string | null;
853
+ };
854
+ type v2_MessagePhase = "commentary" | "final_answer";
855
+ type v2_AgentMessageInputContent = {
856
+ text: string;
857
+ type: "input_text";
858
+ } | {
859
+ encrypted_content: string;
860
+ type: "encrypted_content";
861
+ };
862
+ type v2_ReasoningItemContent = {
863
+ text: string;
864
+ type: "reasoning_text";
865
+ } | {
866
+ text: string;
867
+ type: "text";
868
+ };
869
+ type v2_ReasoningItemReasoningSummary = {
870
+ text: string;
871
+ type: "summary_text";
872
+ };
873
+ type v2_LocalShellAction = {
874
+ command: Array<string>;
875
+ env?: {
876
+ [key: string]: string;
877
+ } | null;
878
+ timeout_ms?: number | null;
879
+ type: "exec";
880
+ user?: string | null;
881
+ working_directory?: string | null;
882
+ };
883
+ type v2_LocalShellStatus = "completed" | "in_progress" | "incomplete";
884
+ type v2_FunctionCallOutputBody = string | Array<v2_FunctionCallOutputContentItem>;
885
+ type v2_ResponsesApiWebSearchAction = {
886
+ queries?: Array<string> | null;
887
+ query?: string | null;
888
+ type: "search";
889
+ } | {
890
+ type: "open_page";
891
+ url?: string | null;
892
+ } | {
893
+ pattern?: string | null;
894
+ type: "find_in_page";
895
+ url?: string | null;
896
+ } | {
897
+ type: "other";
898
+ };
899
+ type v2_TurnItemsView = "notLoaded" | "summary" | "full";
900
+ type v2_SortDirection = "asc" | "desc";
901
+ type v2_AdditionalContextKind = "untrusted" | "application";
902
+ type v2_ModeKind = "plan" | "default";
903
+ type v2_Settings = {
904
+ developer_instructions?: string | null;
905
+ model: string;
906
+ reasoning_effort?: v2_ReasoningEffort | null;
907
+ };
908
+ type v2_TextElement = {
909
+ byteRange: v2_ByteRange;
910
+ placeholder?: string | null;
911
+ };
912
+ type v2_ImageDetail = "auto" | "low" | "high" | "original";
913
+ type v2_TurnError = {
914
+ additionalDetails?: string | null;
915
+ codexErrorInfo?: v2_CodexErrorInfo | null;
916
+ message: string;
917
+ misalignment?: v2_MisalignmentErrorDetails | null;
918
+ };
919
+ type v2_ThreadItem = {
920
+ clientId?: string | null;
921
+ content: Array<v2_UserInput>;
922
+ id: string;
923
+ type: "userMessage";
924
+ } | {
925
+ fragments: Array<v2_HookPromptFragment>;
926
+ id: string;
927
+ type: "hookPrompt";
928
+ } | {
929
+ delivery?: v2_AgentMessageDelivery | null;
930
+ id: string;
931
+ memoryCitation?: v2_MemoryCitation | null;
932
+ phase?: v2_MessagePhase | null;
933
+ questions?: Array<v2_AsyncUserInputQuestion> | null;
934
+ text: string;
935
+ type: "agentMessage";
936
+ } | {
937
+ id: string;
938
+ name: string;
939
+ namespace?: string | null;
940
+ output: v2_FunctionCallOutputBody;
941
+ type: "functionCallOutput";
942
+ } | {
943
+ id: string;
944
+ text: string;
945
+ type: "plan";
946
+ } | {
947
+ content?: Array<string>;
948
+ id: string;
949
+ summary?: Array<string>;
950
+ type: "reasoning";
951
+ } | {
952
+ aggregatedOutput?: string | null;
953
+ command: string;
954
+ commandActions: Array<v2_CommandAction>;
955
+ cwd: v2_LegacyAppPathString;
956
+ durationMs?: number | null;
957
+ exitCode?: number | null;
958
+ id: string;
959
+ pluginId?: string | null;
960
+ processId?: string | null;
961
+ scriptPath?: string | null;
962
+ source?: v2_CommandExecutionSource;
963
+ status: v2_CommandExecutionStatus;
964
+ type: "commandExecution";
965
+ } | {
966
+ changes: Array<v2_FileUpdateChange>;
967
+ id: string;
968
+ status: v2_PatchApplyStatus;
969
+ type: "fileChange";
970
+ } | {
971
+ appContext?: v2_McpToolCallAppContext | null;
972
+ arguments: unknown;
973
+ durationMs?: number | null;
974
+ error?: v2_McpToolCallError | null;
975
+ id: string;
976
+ mcpAppResourceUri?: string | null;
977
+ pluginId?: string | null;
978
+ readOnlyHint?: boolean | null;
979
+ result?: v2_McpToolCallResult | null;
980
+ server: string;
981
+ status: v2_McpToolCallStatus;
982
+ tool: string;
983
+ type: "mcpToolCall";
984
+ } | {
985
+ arguments: unknown;
986
+ contentItems?: Array<v2_DynamicToolCallOutputContentItem> | null;
987
+ durationMs?: number | null;
988
+ id: string;
989
+ namespace?: string | null;
990
+ status: v2_DynamicToolCallStatus;
991
+ success?: boolean | null;
992
+ tool: string;
993
+ type: "dynamicToolCall";
994
+ } | {
995
+ agentsStates: {
996
+ [key: string]: v2_CollabAgentState;
997
+ };
998
+ id: string;
999
+ model?: string | null;
1000
+ prompt?: string | null;
1001
+ reasoningEffort?: v2_ReasoningEffort | null;
1002
+ receiverThreadIds: Array<string>;
1003
+ senderThreadId: string;
1004
+ status: v2_CollabAgentToolCallStatus;
1005
+ tool: v2_CollabAgentTool;
1006
+ type: "collabAgentToolCall";
1007
+ } | {
1008
+ agentPath: string;
1009
+ agentThreadId: string;
1010
+ id: string;
1011
+ kind: v2_SubAgentActivityKind;
1012
+ type: "subAgentActivity";
1013
+ } | {
1014
+ action?: v2_WebSearchAction | null;
1015
+ id: string;
1016
+ query: string;
1017
+ results?: Array<unknown> | null;
1018
+ type: "webSearch";
1019
+ } | {
1020
+ id: string;
1021
+ path: v2_LegacyAppPathString;
1022
+ type: "imageView";
1023
+ } | {
1024
+ durationMs: number;
1025
+ id: string;
1026
+ type: "sleep";
1027
+ } | {
1028
+ failure?: v2_ImageGenerationFailure | null;
1029
+ id: string;
1030
+ result: string;
1031
+ revisedPrompt?: string | null;
1032
+ savedPath?: v2_AbsolutePathBuf | null;
1033
+ status: string;
1034
+ transparentBackground?: boolean | null;
1035
+ type: "imageGeneration";
1036
+ } | {
1037
+ id: string;
1038
+ review: string;
1039
+ type: "enteredReviewMode";
1040
+ } | {
1041
+ id: string;
1042
+ review: string;
1043
+ type: "exitedReviewMode";
1044
+ } | {
1045
+ id: string;
1046
+ type: "contextCompaction";
1047
+ };
1048
+ type v2_TurnStatus = "completed" | "interrupted" | "failed" | "inProgress";
1049
+ type ToolRequestUserInputOption = {
1050
+ description: string;
1051
+ label: string;
1052
+ };
1053
+ type v2_AdditionalFileSystemPermissions = {
1054
+ entries?: Array<v2_FileSystemSandboxEntry> | null;
1055
+ globScanMaxDepth?: number | null;
1056
+ read?: Array<v2_LegacyAppPathString> | null;
1057
+ write?: Array<v2_LegacyAppPathString> | null;
1058
+ };
1059
+ type v2_AdditionalNetworkPermissions = {
1060
+ enabled?: boolean | null;
1061
+ };
1062
+ type v2_NetworkApprovalProtocol = "http" | "https" | "socks5Tcp" | "socks5Udp";
1063
+ type NetworkPolicyRuleAction = "allow" | "deny";
1064
+ type McpElicitationPrimitiveSchema = McpElicitationEnumSchema | McpElicitationStringSchema | McpElicitationNumberSchema | McpElicitationBooleanSchema;
1065
+ type McpElicitationObjectType = "object";
1066
+ type v2_ThreadSectionAppearance = {
1067
+ color?: string | null;
1068
+ icon?: string | null;
1069
+ };
1070
+ type v2_SubAgentSource = "review" | "compact" | "memory_consolidation" | {
1071
+ thread_spawn: {
1072
+ agent_nickname?: string | null;
1073
+ agent_path?: v2_AgentPath | null;
1074
+ agent_role?: string | null;
1075
+ depth: number;
1076
+ parent_thread_id: v2_ThreadId;
1077
+ };
1078
+ } | {
1079
+ other: string;
1080
+ };
1081
+ type v2_ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput";
1082
+ type v2_FunctionCallOutputContentItem = {
1083
+ text: string;
1084
+ type: "input_text";
1085
+ } | {
1086
+ detail?: v2_ImageDetail | null;
1087
+ image_url: string;
1088
+ type: "input_image";
1089
+ } | {
1090
+ audio_url: string;
1091
+ type: "input_audio";
1092
+ } | {
1093
+ encrypted_content: string;
1094
+ type: "encrypted_content";
1095
+ };
1096
+ type v2_ByteRange = {
1097
+ end: number;
1098
+ start: number;
1099
+ };
1100
+ type v2_CodexErrorInfo = "contextWindowExceeded" | "sessionBudgetExceeded" | "usageLimitExceeded" | "rateLimitExceeded" | "serverOverloaded" | "cyberPolicy" | "misalignmentPolicyViolation" | "internalServerError" | "unauthorized" | "badRequest" | "threadRollbackFailed" | "sandboxError" | "other" | {
1101
+ httpConnectionFailed: {
1102
+ httpStatusCode?: number | null;
1103
+ };
1104
+ } | {
1105
+ responseStreamConnectionFailed: {
1106
+ httpStatusCode?: number | null;
1107
+ };
1108
+ } | {
1109
+ responseStreamDisconnected: {
1110
+ httpStatusCode?: number | null;
1111
+ };
1112
+ } | {
1113
+ responseTooManyFailedAttempts: {
1114
+ httpStatusCode?: number | null;
1115
+ };
1116
+ } | {
1117
+ activeTurnNotSteerable: {
1118
+ turnKind: v2_NonSteerableTurnKind;
1119
+ };
1120
+ };
1121
+ type v2_MisalignmentErrorDetails = {
1122
+ detailedExplanation?: string | null;
1123
+ errorType?: string | null;
1124
+ steer?: v2_MisalignmentSteer | null;
1125
+ };
1126
+ type v2_HookPromptFragment = {
1127
+ hookRunId: string;
1128
+ text: string;
1129
+ };
1130
+ type v2_AgentMessageDelivery = "async";
1131
+ type v2_MemoryCitation = {
1132
+ entries: Array<v2_MemoryCitationEntry>;
1133
+ threadIds: Array<string>;
1134
+ };
1135
+ type v2_AsyncUserInputQuestion = {
1136
+ options?: Array<string> | null;
1137
+ title: string;
1138
+ };
1139
+ type v2_CommandExecutionSource = "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
1140
+ type v2_CommandExecutionStatus = "inProgress" | "completed" | "failed" | "declined";
1141
+ type v2_FileUpdateChange = {
1142
+ diff: string;
1143
+ kind: v2_PatchChangeKind;
1144
+ path: string;
1145
+ };
1146
+ type v2_PatchApplyStatus = "inProgress" | "completed" | "failed" | "declined";
1147
+ type v2_McpToolCallAppContext = {
1148
+ actionName?: string | null;
1149
+ appName?: string | null;
1150
+ connectorId: string;
1151
+ linkId?: string | null;
1152
+ resourceUri?: string | null;
1153
+ };
1154
+ type v2_McpToolCallError = {
1155
+ message: string;
1156
+ };
1157
+ type v2_McpToolCallResult = {
1158
+ _meta?: unknown;
1159
+ content: Array<unknown>;
1160
+ structuredContent?: unknown;
1161
+ };
1162
+ type v2_McpToolCallStatus = "inProgress" | "completed" | "failed";
1163
+ type v2_DynamicToolCallStatus = "inProgress" | "completed" | "failed";
1164
+ type v2_CollabAgentState = {
1165
+ message?: string | null;
1166
+ status: v2_CollabAgentStatus;
1167
+ };
1168
+ type v2_CollabAgentToolCallStatus = "inProgress" | "completed" | "failed" | "interrupted";
1169
+ type v2_CollabAgentTool = "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent" | "sendMessage" | "followupTask" | "interruptAgent" | "listAgents";
1170
+ type v2_SubAgentActivityKind = "started" | "interacted" | "interrupted" | "completed";
1171
+ type v2_WebSearchAction = {
1172
+ queries?: Array<string> | null;
1173
+ query?: string | null;
1174
+ type: "search";
1175
+ } | {
1176
+ type: "openPage";
1177
+ url?: string | null;
1178
+ } | {
1179
+ pattern?: string | null;
1180
+ type: "findInPage";
1181
+ url?: string | null;
1182
+ } | {
1183
+ type: "other";
1184
+ };
1185
+ type v2_ImageGenerationFailure = {
1186
+ limitId: string;
1187
+ resetsAt?: number | null;
1188
+ type: "usageLimitExceeded";
1189
+ };
1190
+ type v2_FileSystemSandboxEntry = {
1191
+ access: v2_FileSystemAccessMode;
1192
+ path: v2_FileSystemPath;
1193
+ };
1194
+ type McpElicitationEnumSchema = McpElicitationSingleSelectEnumSchema | McpElicitationMultiSelectEnumSchema | McpElicitationLegacyTitledEnumSchema;
1195
+ type McpElicitationStringSchema = {
1196
+ default?: string | null;
1197
+ description?: string | null;
1198
+ format?: McpElicitationStringFormat | null;
1199
+ maxLength?: number | null;
1200
+ minLength?: number | null;
1201
+ title?: string | null;
1202
+ type: McpElicitationStringType;
1203
+ };
1204
+ type McpElicitationNumberSchema = {
1205
+ default?: number | null;
1206
+ description?: string | null;
1207
+ maximum?: number | null;
1208
+ minimum?: number | null;
1209
+ title?: string | null;
1210
+ type: McpElicitationNumberType;
1211
+ };
1212
+ type McpElicitationBooleanSchema = {
1213
+ default?: boolean | null;
1214
+ description?: string | null;
1215
+ title?: string | null;
1216
+ type: McpElicitationBooleanType;
1217
+ };
1218
+ type v2_AgentPath = string;
1219
+ type v2_ThreadId = string;
1220
+ type v2_NonSteerableTurnKind = "review" | "compact";
1221
+ type v2_MisalignmentSteer = {
1222
+ message: string;
1223
+ };
1224
+ type v2_MemoryCitationEntry = {
1225
+ lineEnd: number;
1226
+ lineStart: number;
1227
+ note: string;
1228
+ path: string;
1229
+ };
1230
+ type v2_PatchChangeKind = {
1231
+ type: "add";
1232
+ } | {
1233
+ type: "delete";
1234
+ } | {
1235
+ move_path?: string | null;
1236
+ type: "update";
1237
+ };
1238
+ type v2_CollabAgentStatus = "pendingInit" | "running" | "interrupted" | "completed" | "errored" | "shutdown" | "notFound";
1239
+ type v2_FileSystemAccessMode = "read" | "write" | "deny";
1240
+ type v2_FileSystemPath = {
1241
+ path: v2_LegacyAppPathString;
1242
+ type: "path";
1243
+ } | {
1244
+ pattern: string;
1245
+ type: "glob_pattern";
1246
+ } | {
1247
+ type: "special";
1248
+ value: v2_FileSystemSpecialPath;
1249
+ };
1250
+ type McpElicitationSingleSelectEnumSchema = McpElicitationUntitledSingleSelectEnumSchema | McpElicitationTitledSingleSelectEnumSchema;
1251
+ type McpElicitationMultiSelectEnumSchema = McpElicitationUntitledMultiSelectEnumSchema | McpElicitationTitledMultiSelectEnumSchema;
1252
+ type McpElicitationLegacyTitledEnumSchema = {
1253
+ default?: string | null;
1254
+ description?: string | null;
1255
+ enum: Array<string>;
1256
+ enumNames?: Array<string> | null;
1257
+ title?: string | null;
1258
+ type: McpElicitationStringType;
1259
+ };
1260
+ type McpElicitationStringFormat = "email" | "uri" | "date" | "date-time";
1261
+ type McpElicitationStringType = "string";
1262
+ type McpElicitationNumberType = "number" | "integer";
1263
+ type McpElicitationBooleanType = "boolean";
1264
+ type v2_FileSystemSpecialPath = {
1265
+ kind: "root";
1266
+ } | {
1267
+ kind: "minimal";
1268
+ } | {
1269
+ kind: "project_roots";
1270
+ subpath?: v2_LegacyAppPathString | null;
1271
+ } | {
1272
+ kind: "tmpdir";
1273
+ } | {
1274
+ kind: "slash_tmp";
1275
+ } | {
1276
+ kind: "unknown";
1277
+ path: string;
1278
+ subpath?: v2_LegacyAppPathString | null;
1279
+ };
1280
+ type McpElicitationUntitledSingleSelectEnumSchema = {
1281
+ default?: string | null;
1282
+ description?: string | null;
1283
+ enum: Array<string>;
1284
+ title?: string | null;
1285
+ type: McpElicitationStringType;
1286
+ };
1287
+ type McpElicitationTitledSingleSelectEnumSchema = {
1288
+ default?: string | null;
1289
+ description?: string | null;
1290
+ oneOf: Array<McpElicitationConstOption>;
1291
+ title?: string | null;
1292
+ type: McpElicitationStringType;
1293
+ };
1294
+ type McpElicitationUntitledMultiSelectEnumSchema = {
1295
+ default?: Array<string> | null;
1296
+ description?: string | null;
1297
+ items: McpElicitationUntitledEnumItems;
1298
+ maxItems?: number | null;
1299
+ minItems?: number | null;
1300
+ title?: string | null;
1301
+ type: McpElicitationArrayType;
1302
+ };
1303
+ type McpElicitationTitledMultiSelectEnumSchema = {
1304
+ default?: Array<string> | null;
1305
+ description?: string | null;
1306
+ items: McpElicitationTitledEnumItems;
1307
+ maxItems?: number | null;
1308
+ minItems?: number | null;
1309
+ title?: string | null;
1310
+ type: McpElicitationArrayType;
1311
+ };
1312
+ type McpElicitationConstOption = {
1313
+ const: string;
1314
+ title: string;
1315
+ };
1316
+ type McpElicitationUntitledEnumItems = {
1317
+ enum: Array<string>;
1318
+ type: McpElicitationStringType;
1319
+ };
1320
+ type McpElicitationArrayType = "array";
1321
+ type McpElicitationTitledEnumItems = {
1322
+ anyOf: Array<McpElicitationConstOption>;
1323
+ };
1324
+ export {};
1325
+ //# sourceMappingURL=native-protocol.generated.d.ts.map