@devries-cameron20 / t3code-1 / commits / f925d63942
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(codex): accept Codex 0.150 multi-agent events (#8346)

Theo Browne committed Aug 26, 2026 at 22:04 UTC f925d639421844f02b3166d29281905dbba6d529
3 files changed +638 -97
packages/effect-codex-app-server/scripts/generate.ts
+30 -1
@@ -145,6 +145,33 @@ const ManualSchemas: Record<string, Schema.Json> = {
145 },
146 };
147
148 +// Codex 0.150 added these multi-agent values before our next full protocol
149 +// refresh. Keep every generated response namespace compatible with them.
150 +const Codex0150DefinitionSchemas: Record<string, Schema.Json> = {
151 + CollabAgentTool: {
152 + type: "string",
153 + enum: [
154 + "spawnAgent",
155 + "sendInput",
156 + "resumeAgent",
157 + "wait",
158 + "closeAgent",
159 + "sendMessage",
160 + "followupTask",
161 + "interruptAgent",
162 + "listAgents",
163 + ],
164 + },
165 + CollabAgentToolCallStatus: {
166 + type: "string",
167 + enum: ["inProgress", "completed", "failed", "interrupted"],
168 + },
169 + SubAgentActivityKind: {
170 + type: "string",
171 + enum: ["started", "interacted", "interrupted", "completed"],
172 + },
173 +};
174 +
175 const getGeneratedPaths = Effect.fn("getGeneratedPaths")(function* () {
176 const path = yield* Path.Path;
177 const generatedDir = path.join(import.meta.dirname, "..", "src", "_generated");
@@ -556,10 +583,12 @@ const generateFiles = Effect.fn("generateFiles")(function* () {
583 );
584
585 for (const [definitionName, definitionSchema] of Object.entries(parsed.definitions ?? {})) {
586 + const compatibleDefinitionSchema =
587 + Codex0150DefinitionSchemas[definitionName] ?? definitionSchema;
588 aggregateSchemas[localDefinitionNames.get(definitionName)!] = stripNullDefaults(
589 normalizeNullableTypes(
590 rewriteExternalRefs(
562 - definitionSchema,
591 + compatibleDefinitionSchema,
592 localDefinitionNames,
593 file.namespace,
594 exportNameByQualifiedName,
packages/effect-codex-app-server/src/_generated/schema.gen.ts
+535 -96
@@ -2616,11 +2616,16 @@ export const ServerNotification__SpendControlLimitSnapshot = Schema.Struct({
2616 used: Schema.String,
2617 });
2618
2619 -export type ServerNotification__SubAgentActivityKind = "started" | "interacted" | "interrupted";
2619 +export type ServerNotification__SubAgentActivityKind =
2620 + | "started"
2621 + | "interacted"
2622 + | "interrupted"
2623 + | "completed";
2624 export const ServerNotification__SubAgentActivityKind = Schema.Literals([
2625 "started",
2626 "interacted",
2627 "interrupted",
2628 + "completed",
2629 ]);
2630
2631 export type ServerNotification__TerminalInteractionNotification = {
@@ -4710,11 +4715,13 @@ export const V2ItemCompletedNotification__ReasoningEffort = Schema.String.annota
4715 export type V2ItemCompletedNotification__SubAgentActivityKind =
4716 | "started"
4717 | "interacted"
4713 - | "interrupted";
4718 + | "interrupted"
4719 + | "completed";
4720 export const V2ItemCompletedNotification__SubAgentActivityKind = Schema.Literals([
4721 "started",
4722 "interacted",
4723 "interrupted",
4724 + "completed",
4725 ]);
4726
4727 export type V2ItemCompletedNotification__TextElement = {
@@ -5115,11 +5122,13 @@ export const V2ItemStartedNotification__ReasoningEffort = Schema.String.annotate
5122 export type V2ItemStartedNotification__SubAgentActivityKind =
5123 | "started"
5124 | "interacted"
5118 - | "interrupted";
5125 + | "interrupted"
5126 + | "completed";
5127 export const V2ItemStartedNotification__SubAgentActivityKind = Schema.Literals([
5128 "started",
5129 "interacted",
5130 "interrupted",
5131 + "completed",
5132 ]);
5133
5134 export type V2ItemStartedNotification__TextElement = {
@@ -6284,11 +6293,16 @@ export const V2ReviewStartResponse__ReasoningEffort = Schema.String.annotate({
6293 description: "A non-empty reasoning effort value advertised by the model.",
6294 }).check(Schema.isMinLength(1));
6295
6287 -export type V2ReviewStartResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
6296 +export type V2ReviewStartResponse__SubAgentActivityKind =
6297 + | "started"
6298 + | "interacted"
6299 + | "interrupted"
6300 + | "completed";
6301 export const V2ReviewStartResponse__SubAgentActivityKind = Schema.Literals([
6302 "started",
6303 "interacted",
6304 "interrupted",
6305 + "completed",
6306 ]);
6307
6308 export type V2ReviewStartResponse__TextElement = {
@@ -6720,11 +6734,16 @@ export const V2ThreadForkResponse__ReasoningEffort = Schema.String.annotate({
6734 description: "A non-empty reasoning effort value advertised by the model.",
6735 }).check(Schema.isMinLength(1));
6736
6723 -export type V2ThreadForkResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
6737 +export type V2ThreadForkResponse__SubAgentActivityKind =
6738 + | "started"
6739 + | "interacted"
6740 + | "interrupted"
6741 + | "completed";
6742 export const V2ThreadForkResponse__SubAgentActivityKind = Schema.Literals([
6743 "started",
6744 "interacted",
6745 "interrupted",
6746 + "completed",
6747 ]);
6748
6749 export type V2ThreadForkResponse__TextElement = {
@@ -7119,11 +7138,16 @@ export const V2ThreadListResponse__ReasoningEffort = Schema.String.annotate({
7138 description: "A non-empty reasoning effort value advertised by the model.",
7139 }).check(Schema.isMinLength(1));
7140
7122 -export type V2ThreadListResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
7141 +export type V2ThreadListResponse__SubAgentActivityKind =
7142 + | "started"
7143 + | "interacted"
7144 + | "interrupted"
7145 + | "completed";
7146 export const V2ThreadListResponse__SubAgentActivityKind = Schema.Literals([
7147 "started",
7148 "interacted",
7149 "interrupted",
7150 + "completed",
7151 ]);
7152
7153 export type V2ThreadListResponse__TextElement = {
@@ -7463,11 +7487,13 @@ export const V2ThreadMetadataUpdateResponse__ReasoningEffort = Schema.String.ann
7487 export type V2ThreadMetadataUpdateResponse__SubAgentActivityKind =
7488 | "started"
7489 | "interacted"
7466 - | "interrupted";
7490 + | "interrupted"
7491 + | "completed";
7492 export const V2ThreadMetadataUpdateResponse__SubAgentActivityKind = Schema.Literals([
7493 "started",
7494 "interacted",
7495 "interrupted",
7496 + "completed",
7497 ]);
7498
7499 export type V2ThreadMetadataUpdateResponse__TextElement = {
@@ -7760,11 +7786,16 @@ export const V2ThreadReadResponse__ReasoningEffort = Schema.String.annotate({
7786 description: "A non-empty reasoning effort value advertised by the model.",
7787 }).check(Schema.isMinLength(1));
7788
7763 -export type V2ThreadReadResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
7789 +export type V2ThreadReadResponse__SubAgentActivityKind =
7790 + | "started"
7791 + | "interacted"
7792 + | "interrupted"
7793 + | "completed";
7794 export const V2ThreadReadResponse__SubAgentActivityKind = Schema.Literals([
7795 "started",
7796 "interacted",
7797 "interrupted",
7798 + "completed",
7799 ]);
7800
7801 export type V2ThreadReadResponse__TextElement = {
@@ -8342,11 +8373,16 @@ export const V2ThreadResumeResponse__ReasoningEffort = Schema.String.annotate({
8373 description: "A non-empty reasoning effort value advertised by the model.",
8374 }).check(Schema.isMinLength(1));
8375
8345 -export type V2ThreadResumeResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
8376 +export type V2ThreadResumeResponse__SubAgentActivityKind =
8377 + | "started"
8378 + | "interacted"
8379 + | "interrupted"
8380 + | "completed";
8381 export const V2ThreadResumeResponse__SubAgentActivityKind = Schema.Literals([
8382 "started",
8383 "interacted",
8384 "interrupted",
8385 + "completed",
8386 ]);
8387
8388 export type V2ThreadResumeResponse__TextElement = {
@@ -8643,11 +8679,13 @@ export const V2ThreadRollbackResponse__ReasoningEffort = Schema.String.annotate(
8679 export type V2ThreadRollbackResponse__SubAgentActivityKind =
8680 | "started"
8681 | "interacted"
8646 - | "interrupted";
8682 + | "interrupted"
8683 + | "completed";
8684 export const V2ThreadRollbackResponse__SubAgentActivityKind = Schema.Literals([
8685 "started",
8686 "interacted",
8687 "interrupted",
8688 + "completed",
8689 ]);
8690
8691 export type V2ThreadRollbackResponse__TextElement = {
@@ -9051,11 +9089,13 @@ export const V2ThreadStartedNotification__ReasoningEffort = Schema.String.annota
9089 export type V2ThreadStartedNotification__SubAgentActivityKind =
9090 | "started"
9091 | "interacted"
9054 - | "interrupted";
9092 + | "interrupted"
9093 + | "completed";
9094 export const V2ThreadStartedNotification__SubAgentActivityKind = Schema.Literals([
9095 "started",
9096 "interacted",
9097 "interrupted",
9098 + "completed",
9099 ]);
9100
9101 export type V2ThreadStartedNotification__TextElement = {
@@ -9458,11 +9498,16 @@ export const V2ThreadStartResponse__ReasoningEffort = Schema.String.annotate({
9498 description: "A non-empty reasoning effort value advertised by the model.",
9499 }).check(Schema.isMinLength(1));
9500
9461 -export type V2ThreadStartResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
9501 +export type V2ThreadStartResponse__SubAgentActivityKind =
9502 + | "started"
9503 + | "interacted"
9504 + | "interrupted"
9505 + | "completed";
9506 export const V2ThreadStartResponse__SubAgentActivityKind = Schema.Literals([
9507 "started",
9508 "interacted",
9509 "interrupted",
9510 + "completed",
9511 ]);
9512
9513 export type V2ThreadStartResponse__TextElement = {
@@ -9791,11 +9836,13 @@ export const V2ThreadUnarchiveResponse__ReasoningEffort = Schema.String.annotate
9836 export type V2ThreadUnarchiveResponse__SubAgentActivityKind =
9837 | "started"
9838 | "interacted"
9794 - | "interrupted";
9839 + | "interrupted"
9840 + | "completed";
9841 export const V2ThreadUnarchiveResponse__SubAgentActivityKind = Schema.Literals([
9842 "started",
9843 "interacted",
9844 "interrupted",
9845 + "completed",
9846 ]);
9847
9848 export type V2ThreadUnarchiveResponse__TextElement = {
@@ -10095,11 +10142,13 @@ export const V2TurnCompletedNotification__ReasoningEffort = Schema.String.annota
10142 export type V2TurnCompletedNotification__SubAgentActivityKind =
10143 | "started"
10144 | "interacted"
10098 - | "interrupted";
10145 + | "interrupted"
10146 + | "completed";
10147 export const V2TurnCompletedNotification__SubAgentActivityKind = Schema.Literals([
10148 "started",
10149 "interacted",
10150 "interrupted",
10151 + "completed",
10152 ]);
10153
10154 export type V2TurnCompletedNotification__TextElement = {
@@ -10385,11 +10434,13 @@ export const V2TurnStartedNotification__ReasoningEffort = Schema.String.annotate
10434 export type V2TurnStartedNotification__SubAgentActivityKind =
10435 | "started"
10436 | "interacted"
10388 - | "interrupted";
10437 + | "interrupted"
10438 + | "completed";
10439 export const V2TurnStartedNotification__SubAgentActivityKind = Schema.Literals([
10440 "started",
10441 "interacted",
10442 "interrupted",
10443 + "completed",
10444 ]);
10445
10446 export type V2TurnStartedNotification__TextElement = {
@@ -10761,11 +10812,16 @@ export const V2TurnStartResponse__ReasoningEffort = Schema.String.annotate({
10812 description: "A non-empty reasoning effort value advertised by the model.",
10813 }).check(Schema.isMinLength(1));
10814
10764 -export type V2TurnStartResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
10815 +export type V2TurnStartResponse__SubAgentActivityKind =
10816 + | "started"
10817 + | "interacted"
10818 + | "interrupted"
10819 + | "completed";
10820 export const V2TurnStartResponse__SubAgentActivityKind = Schema.Literals([
10821 "started",
10822 "interacted",
10823 "interrupted",
10824 + "completed",
10825 ]);
10826
10827 export type V2TurnStartResponse__TextElement = {
@@ -20357,8 +20413,17 @@ export type ServerNotification__ThreadItem =
20413 readonly reasoningEffort?: ServerNotification__ReasoningEffort | null;
20414 readonly receiverThreadIds: ReadonlyArray<string>;
20415 readonly senderThreadId: string;
20360 - readonly status: "inProgress" | "completed" | "failed";
20361 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
20416 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
20417 + readonly tool:
20418 + | "spawnAgent"
20419 + | "sendInput"
20420 + | "resumeAgent"
20421 + | "wait"
20422 + | "closeAgent"
20423 + | "sendMessage"
20424 + | "followupTask"
20425 + | "interruptAgent"
20426 + | "listAgents";
20427 readonly type: "collabAgentToolCall";
20428 }
20429 | {
@@ -20580,7 +20645,7 @@ export const ServerNotification__ThreadItem = Schema.Union(
20645 senderThreadId: Schema.String.annotate({
20646 description: "Thread ID of the agent issuing the collab request.",
20647 }),
20583 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
20648 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
20649 description: "Current status of the collab tool call.",
20650 }),
20651 tool: Schema.Literals([
@@ -20589,6 +20654,10 @@ export const ServerNotification__ThreadItem = Schema.Union(
20654 "resumeAgent",
20655 "wait",
20656 "closeAgent",
20657 + "sendMessage",
20658 + "followupTask",
20659 + "interruptAgent",
20660 + "listAgents",
20661 ]).annotate({ description: "Name of the collab tool that was invoked." }),
20662 type: Schema.Literal("collabAgentToolCall").annotate({
20663 title: "CollabAgentToolCallThreadItemType",
@@ -21440,8 +21509,17 @@ export type V2ItemCompletedNotification__ThreadItem =
21509 readonly reasoningEffort?: V2ItemCompletedNotification__ReasoningEffort | null;
21510 readonly receiverThreadIds: ReadonlyArray<string>;
21511 readonly senderThreadId: string;
21443 - readonly status: "inProgress" | "completed" | "failed";
21444 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
21512 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
21513 + readonly tool:
21514 + | "spawnAgent"
21515 + | "sendInput"
21516 + | "resumeAgent"
21517 + | "wait"
21518 + | "closeAgent"
21519 + | "sendMessage"
21520 + | "followupTask"
21521 + | "interruptAgent"
21522 + | "listAgents";
21523 readonly type: "collabAgentToolCall";
21524 }
21525 | {
@@ -21668,7 +21746,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
21746 senderThreadId: Schema.String.annotate({
21747 description: "Thread ID of the agent issuing the collab request.",
21748 }),
21671 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
21749 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
21750 description: "Current status of the collab tool call.",
21751 }),
21752 tool: Schema.Literals([
@@ -21677,6 +21755,10 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
21755 "resumeAgent",
21756 "wait",
21757 "closeAgent",
21758 + "sendMessage",
21759 + "followupTask",
21760 + "interruptAgent",
21761 + "listAgents",
21762 ]).annotate({ description: "Name of the collab tool that was invoked." }),
21763 type: Schema.Literal("collabAgentToolCall").annotate({
21764 title: "CollabAgentToolCallThreadItemType",
@@ -21891,8 +21973,17 @@ export type V2ItemStartedNotification__ThreadItem =
21973 readonly reasoningEffort?: V2ItemStartedNotification__ReasoningEffort | null;
21974 readonly receiverThreadIds: ReadonlyArray<string>;
21975 readonly senderThreadId: string;
21894 - readonly status: "inProgress" | "completed" | "failed";
21895 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
21976 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
21977 + readonly tool:
21978 + | "spawnAgent"
21979 + | "sendInput"
21980 + | "resumeAgent"
21981 + | "wait"
21982 + | "closeAgent"
21983 + | "sendMessage"
21984 + | "followupTask"
21985 + | "interruptAgent"
21986 + | "listAgents";
21987 readonly type: "collabAgentToolCall";
21988 }
21989 | {
@@ -22119,7 +22210,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
22210 senderThreadId: Schema.String.annotate({
22211 description: "Thread ID of the agent issuing the collab request.",
22212 }),
22122 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
22213 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
22214 description: "Current status of the collab tool call.",
22215 }),
22216 tool: Schema.Literals([
@@ -22128,6 +22219,10 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
22219 "resumeAgent",
22220 "wait",
22221 "closeAgent",
22222 + "sendMessage",
22223 + "followupTask",
22224 + "interruptAgent",
22225 + "listAgents",
22226 ]).annotate({ description: "Name of the collab tool that was invoked." }),
22227 type: Schema.Literal("collabAgentToolCall").annotate({
22228 title: "CollabAgentToolCallThreadItemType",
@@ -22514,8 +22609,17 @@ export type V2ReviewStartResponse__ThreadItem =
22609 readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null;
22610 readonly receiverThreadIds: ReadonlyArray<string>;
22611 readonly senderThreadId: string;
22517 - readonly status: "inProgress" | "completed" | "failed";
22518 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
22612 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
22613 + readonly tool:
22614 + | "spawnAgent"
22615 + | "sendInput"
22616 + | "resumeAgent"
22617 + | "wait"
22618 + | "closeAgent"
22619 + | "sendMessage"
22620 + | "followupTask"
22621 + | "interruptAgent"
22622 + | "listAgents";
22623 readonly type: "collabAgentToolCall";
22624 }
22625 | {
@@ -22739,7 +22843,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
22843 senderThreadId: Schema.String.annotate({
22844 description: "Thread ID of the agent issuing the collab request.",
22845 }),
22742 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
22846 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
22847 description: "Current status of the collab tool call.",
22848 }),
22849 tool: Schema.Literals([
@@ -22748,6 +22852,10 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
22852 "resumeAgent",
22853 "wait",
22854 "closeAgent",
22855 + "sendMessage",
22856 + "followupTask",
22857 + "interruptAgent",
22858 + "listAgents",
22859 ]).annotate({ description: "Name of the collab tool that was invoked." }),
22860 type: Schema.Literal("collabAgentToolCall").annotate({
22861 title: "CollabAgentToolCallThreadItemType",
@@ -22950,8 +23058,17 @@ export type V2ThreadForkResponse__ThreadItem =
23058 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;
23059 readonly receiverThreadIds: ReadonlyArray<string>;
23060 readonly senderThreadId: string;
22953 - readonly status: "inProgress" | "completed" | "failed";
22954 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
23061 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
23062 + readonly tool:
23063 + | "spawnAgent"
23064 + | "sendInput"
23065 + | "resumeAgent"
23066 + | "wait"
23067 + | "closeAgent"
23068 + | "sendMessage"
23069 + | "followupTask"
23070 + | "interruptAgent"
23071 + | "listAgents";
23072 readonly type: "collabAgentToolCall";
23073 }
23074 | {
@@ -23175,7 +23292,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
23292 senderThreadId: Schema.String.annotate({
23293 description: "Thread ID of the agent issuing the collab request.",
23294 }),
23178 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
23295 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
23296 description: "Current status of the collab tool call.",
23297 }),
23298 tool: Schema.Literals([
@@ -23184,6 +23301,10 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
23301 "resumeAgent",
23302 "wait",
23303 "closeAgent",
23304 + "sendMessage",
23305 + "followupTask",
23306 + "interruptAgent",
23307 + "listAgents",
23308 ]).annotate({ description: "Name of the collab tool that was invoked." }),
23309 type: Schema.Literal("collabAgentToolCall").annotate({
23310 title: "CollabAgentToolCallThreadItemType",
@@ -23355,8 +23476,17 @@ export type V2ThreadListResponse__ThreadItem =
23476 readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null;
23477 readonly receiverThreadIds: ReadonlyArray<string>;
23478 readonly senderThreadId: string;
23358 - readonly status: "inProgress" | "completed" | "failed";
23359 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
23479 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
23480 + readonly tool:
23481 + | "spawnAgent"
23482 + | "sendInput"
23483 + | "resumeAgent"
23484 + | "wait"
23485 + | "closeAgent"
23486 + | "sendMessage"
23487 + | "followupTask"
23488 + | "interruptAgent"
23489 + | "listAgents";
23490 readonly type: "collabAgentToolCall";
23491 }
23492 | {
@@ -23580,7 +23710,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
23710 senderThreadId: Schema.String.annotate({
23711 description: "Thread ID of the agent issuing the collab request.",
23712 }),
23583 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
23713 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
23714 description: "Current status of the collab tool call.",
23715 }),
23716 tool: Schema.Literals([
@@ -23589,6 +23719,10 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
23719 "resumeAgent",
23720 "wait",
23721 "closeAgent",
23722 + "sendMessage",
23723 + "followupTask",
23724 + "interruptAgent",
23725 + "listAgents",
23726 ]).annotate({ description: "Name of the collab tool that was invoked." }),
23727 type: Schema.Literal("collabAgentToolCall").annotate({
23728 title: "CollabAgentToolCallThreadItemType",
@@ -23762,8 +23896,17 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =
23896 readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null;
23897 readonly receiverThreadIds: ReadonlyArray<string>;
23898 readonly senderThreadId: string;
23765 - readonly status: "inProgress" | "completed" | "failed";
23766 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
23899 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
23900 + readonly tool:
23901 + | "spawnAgent"
23902 + | "sendInput"
23903 + | "resumeAgent"
23904 + | "wait"
23905 + | "closeAgent"
23906 + | "sendMessage"
23907 + | "followupTask"
23908 + | "interruptAgent"
23909 + | "listAgents";
23910 readonly type: "collabAgentToolCall";
23911 }
23912 | {
@@ -23990,7 +24133,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
24133 senderThreadId: Schema.String.annotate({
24134 description: "Thread ID of the agent issuing the collab request.",
24135 }),
23993 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
24136 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
24137 description: "Current status of the collab tool call.",
24138 }),
24139 tool: Schema.Literals([
@@ -23999,6 +24142,10 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
24142 "resumeAgent",
24143 "wait",
24144 "closeAgent",
24145 + "sendMessage",
24146 + "followupTask",
24147 + "interruptAgent",
24148 + "listAgents",
24149 ]).annotate({ description: "Name of the collab tool that was invoked." }),
24150 type: Schema.Literal("collabAgentToolCall").annotate({
24151 title: "CollabAgentToolCallThreadItemType",
@@ -24170,8 +24317,17 @@ export type V2ThreadReadResponse__ThreadItem =
24317 readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null;
24318 readonly receiverThreadIds: ReadonlyArray<string>;
24319 readonly senderThreadId: string;
24173 - readonly status: "inProgress" | "completed" | "failed";
24174 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
24320 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
24321 + readonly tool:
24322 + | "spawnAgent"
24323 + | "sendInput"
24324 + | "resumeAgent"
24325 + | "wait"
24326 + | "closeAgent"
24327 + | "sendMessage"
24328 + | "followupTask"
24329 + | "interruptAgent"
24330 + | "listAgents";
24331 readonly type: "collabAgentToolCall";
24332 }
24333 | {
@@ -24395,7 +24551,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
24551 senderThreadId: Schema.String.annotate({
24552 description: "Thread ID of the agent issuing the collab request.",
24553 }),
24398 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
24554 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
24555 description: "Current status of the collab tool call.",
24556 }),
24557 tool: Schema.Literals([
@@ -24404,6 +24560,10 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
24560 "resumeAgent",
24561 "wait",
24562 "closeAgent",
24563 + "sendMessage",
24564 + "followupTask",
24565 + "interruptAgent",
24566 + "listAgents",
24567 ]).annotate({ description: "Name of the collab tool that was invoked." }),
24568 type: Schema.Literal("collabAgentToolCall").annotate({
24569 title: "CollabAgentToolCallThreadItemType",
@@ -24583,8 +24743,17 @@ export type V2ThreadResumeResponse__ThreadItem =
24743 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;
24744 readonly receiverThreadIds: ReadonlyArray<string>;
24745 readonly senderThreadId: string;
24586 - readonly status: "inProgress" | "completed" | "failed";
24587 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
24746 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
24747 + readonly tool:
24748 + | "spawnAgent"
24749 + | "sendInput"
24750 + | "resumeAgent"
24751 + | "wait"
24752 + | "closeAgent"
24753 + | "sendMessage"
24754 + | "followupTask"
24755 + | "interruptAgent"
24756 + | "listAgents";
24757 readonly type: "collabAgentToolCall";
24758 }
24759 | {
@@ -24808,7 +24977,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
24977 senderThreadId: Schema.String.annotate({
24978 description: "Thread ID of the agent issuing the collab request.",
24979 }),
24811 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
24980 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
24981 description: "Current status of the collab tool call.",
24982 }),
24983 tool: Schema.Literals([
@@ -24817,6 +24986,10 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
24986 "resumeAgent",
24987 "wait",
24988 "closeAgent",
24989 + "sendMessage",
24990 + "followupTask",
24991 + "interruptAgent",
24992 + "listAgents",
24993 ]).annotate({ description: "Name of the collab tool that was invoked." }),
24994 type: Schema.Literal("collabAgentToolCall").annotate({
24995 title: "CollabAgentToolCallThreadItemType",
@@ -24988,8 +25161,17 @@ export type V2ThreadRollbackResponse__ThreadItem =
25161 readonly reasoningEffort?: V2ThreadRollbackResponse__ReasoningEffort | null;
25162 readonly receiverThreadIds: ReadonlyArray<string>;
25163 readonly senderThreadId: string;
24991 - readonly status: "inProgress" | "completed" | "failed";
24992 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
25164 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
25165 + readonly tool:
25166 + | "spawnAgent"
25167 + | "sendInput"
25168 + | "resumeAgent"
25169 + | "wait"
25170 + | "closeAgent"
25171 + | "sendMessage"
25172 + | "followupTask"
25173 + | "interruptAgent"
25174 + | "listAgents";
25175 readonly type: "collabAgentToolCall";
25176 }
25177 | {
@@ -25216,7 +25398,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
25398 senderThreadId: Schema.String.annotate({
25399 description: "Thread ID of the agent issuing the collab request.",
25400 }),
25219 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
25401 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
25402 description: "Current status of the collab tool call.",
25403 }),
25404 tool: Schema.Literals([
@@ -25225,6 +25407,10 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
25407 "resumeAgent",
25408 "wait",
25409 "closeAgent",
25410 + "sendMessage",
25411 + "followupTask",
25412 + "interruptAgent",
25413 + "listAgents",
25414 ]).annotate({ description: "Name of the collab tool that was invoked." }),
25415 type: Schema.Literal("collabAgentToolCall").annotate({
25416 title: "CollabAgentToolCallThreadItemType",
@@ -25407,8 +25593,17 @@ export type V2ThreadStartedNotification__ThreadItem =
25593 readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null;
25594 readonly receiverThreadIds: ReadonlyArray<string>;
25595 readonly senderThreadId: string;
25410 - readonly status: "inProgress" | "completed" | "failed";
25411 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
25596 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
25597 + readonly tool:
25598 + | "spawnAgent"
25599 + | "sendInput"
25600 + | "resumeAgent"
25601 + | "wait"
25602 + | "closeAgent"
25603 + | "sendMessage"
25604 + | "followupTask"
25605 + | "interruptAgent"
25606 + | "listAgents";
25607 readonly type: "collabAgentToolCall";
25608 }
25609 | {
@@ -25635,7 +25830,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
25830 senderThreadId: Schema.String.annotate({
25831 description: "Thread ID of the agent issuing the collab request.",
25832 }),
25638 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
25833 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
25834 description: "Current status of the collab tool call.",
25835 }),
25836 tool: Schema.Literals([
@@ -25644,6 +25839,10 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
25839 "resumeAgent",
25840 "wait",
25841 "closeAgent",
25842 + "sendMessage",
25843 + "followupTask",
25844 + "interruptAgent",
25845 + "listAgents",
25846 ]).annotate({ description: "Name of the collab tool that was invoked." }),
25847 type: Schema.Literal("collabAgentToolCall").annotate({
25848 title: "CollabAgentToolCallThreadItemType",
@@ -25815,8 +26014,17 @@ export type V2ThreadStartResponse__ThreadItem =
26014 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;
26015 readonly receiverThreadIds: ReadonlyArray<string>;
26016 readonly senderThreadId: string;
25818 - readonly status: "inProgress" | "completed" | "failed";
25819 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
26017 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
26018 + readonly tool:
26019 + | "spawnAgent"
26020 + | "sendInput"
26021 + | "resumeAgent"
26022 + | "wait"
26023 + | "closeAgent"
26024 + | "sendMessage"
26025 + | "followupTask"
26026 + | "interruptAgent"
26027 + | "listAgents";
26028 readonly type: "collabAgentToolCall";
26029 }
26030 | {
@@ -26040,7 +26248,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
26248 senderThreadId: Schema.String.annotate({
26249 description: "Thread ID of the agent issuing the collab request.",
26250 }),
26043 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
26251 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
26252 description: "Current status of the collab tool call.",
26253 }),
26254 tool: Schema.Literals([
@@ -26049,6 +26257,10 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
26257 "resumeAgent",
26258 "wait",
26259 "closeAgent",
26260 + "sendMessage",
26261 + "followupTask",
26262 + "interruptAgent",
26263 + "listAgents",
26264 ]).annotate({ description: "Name of the collab tool that was invoked." }),
26265 type: Schema.Literal("collabAgentToolCall").annotate({
26266 title: "CollabAgentToolCallThreadItemType",
@@ -26220,8 +26432,17 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
26432 readonly reasoningEffort?: V2ThreadUnarchiveResponse__ReasoningEffort | null;
26433 readonly receiverThreadIds: ReadonlyArray<string>;
26434 readonly senderThreadId: string;
26223 - readonly status: "inProgress" | "completed" | "failed";
26224 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
26435 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
26436 + readonly tool:
26437 + | "spawnAgent"
26438 + | "sendInput"
26439 + | "resumeAgent"
26440 + | "wait"
26441 + | "closeAgent"
26442 + | "sendMessage"
26443 + | "followupTask"
26444 + | "interruptAgent"
26445 + | "listAgents";
26446 readonly type: "collabAgentToolCall";
26447 }
26448 | {
@@ -26448,7 +26669,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
26669 senderThreadId: Schema.String.annotate({
26670 description: "Thread ID of the agent issuing the collab request.",
26671 }),
26451 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
26672 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
26673 description: "Current status of the collab tool call.",
26674 }),
26675 tool: Schema.Literals([
@@ -26457,6 +26678,10 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
26678 "resumeAgent",
26679 "wait",
26680 "closeAgent",
26681 + "sendMessage",
26682 + "followupTask",
26683 + "interruptAgent",
26684 + "listAgents",
26685 ]).annotate({ description: "Name of the collab tool that was invoked." }),
26686 type: Schema.Literal("collabAgentToolCall").annotate({
26687 title: "CollabAgentToolCallThreadItemType",
@@ -26630,8 +26855,17 @@ export type V2TurnCompletedNotification__ThreadItem =
26855 readonly reasoningEffort?: V2TurnCompletedNotification__ReasoningEffort | null;
26856 readonly receiverThreadIds: ReadonlyArray<string>;
26857 readonly senderThreadId: string;
26633 - readonly status: "inProgress" | "completed" | "failed";
26634 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
26858 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
26859 + readonly tool:
26860 + | "spawnAgent"
26861 + | "sendInput"
26862 + | "resumeAgent"
26863 + | "wait"
26864 + | "closeAgent"
26865 + | "sendMessage"
26866 + | "followupTask"
26867 + | "interruptAgent"
26868 + | "listAgents";
26869 readonly type: "collabAgentToolCall";
26870 }
26871 | {
@@ -26858,7 +27092,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
27092 senderThreadId: Schema.String.annotate({
27093 description: "Thread ID of the agent issuing the collab request.",
27094 }),
26861 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
27095 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
27096 description: "Current status of the collab tool call.",
27097 }),
27098 tool: Schema.Literals([
@@ -26867,6 +27101,10 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
27101 "resumeAgent",
27102 "wait",
27103 "closeAgent",
27104 + "sendMessage",
27105 + "followupTask",
27106 + "interruptAgent",
27107 + "listAgents",
27108 ]).annotate({ description: "Name of the collab tool that was invoked." }),
27109 type: Schema.Literal("collabAgentToolCall").annotate({
27110 title: "CollabAgentToolCallThreadItemType",
@@ -27038,8 +27276,17 @@ export type V2TurnStartedNotification__ThreadItem =
27276 readonly reasoningEffort?: V2TurnStartedNotification__ReasoningEffort | null;
27277 readonly receiverThreadIds: ReadonlyArray<string>;
27278 readonly senderThreadId: string;
27041 - readonly status: "inProgress" | "completed" | "failed";
27042 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
27279 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
27280 + readonly tool:
27281 + | "spawnAgent"
27282 + | "sendInput"
27283 + | "resumeAgent"
27284 + | "wait"
27285 + | "closeAgent"
27286 + | "sendMessage"
27287 + | "followupTask"
27288 + | "interruptAgent"
27289 + | "listAgents";
27290 readonly type: "collabAgentToolCall";
27291 }
27292 | {
@@ -27266,7 +27513,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
27513 senderThreadId: Schema.String.annotate({
27514 description: "Thread ID of the agent issuing the collab request.",
27515 }),
27269 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
27516 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
27517 description: "Current status of the collab tool call.",
27518 }),
27519 tool: Schema.Literals([
@@ -27275,6 +27522,10 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
27522 "resumeAgent",
27523 "wait",
27524 "closeAgent",
27525 + "sendMessage",
27526 + "followupTask",
27527 + "interruptAgent",
27528 + "listAgents",
27529 ]).annotate({ description: "Name of the collab tool that was invoked." }),
27530 type: Schema.Literal("collabAgentToolCall").annotate({
27531 title: "CollabAgentToolCallThreadItemType",
@@ -27446,8 +27697,17 @@ export type V2TurnStartResponse__ThreadItem =
27697 readonly reasoningEffort?: V2TurnStartResponse__ReasoningEffort | null;
27698 readonly receiverThreadIds: ReadonlyArray<string>;
27699 readonly senderThreadId: string;
27449 - readonly status: "inProgress" | "completed" | "failed";
27450 - readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
27700 + readonly status: "inProgress" | "completed" | "failed" | "interrupted";
27701 + readonly tool:
27702 + | "spawnAgent"
27703 + | "sendInput"
27704 + | "resumeAgent"
27705 + | "wait"
27706 + | "closeAgent"
27707 + | "sendMessage"
27708 + | "followupTask"
27709 + | "interruptAgent"
27710 + | "listAgents";
27711 readonly type: "collabAgentToolCall";
27712 }
27713 | {
@@ -27669,7 +27929,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
27929 senderThreadId: Schema.String.annotate({
27930 description: "Thread ID of the agent issuing the collab request.",
27931 }),
27672 - status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
27932 + status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
27933 description: "Current status of the collab tool call.",
27934 }),
27935 tool: Schema.Literals([
@@ -27678,6 +27938,10 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
27938 "resumeAgent",
27939 "wait",
27940 "closeAgent",
27941 + "sendMessage",
27942 + "followupTask",
27943 + "interruptAgent",
27944 + "listAgents",
27945 ]).annotate({ description: "Name of the collab tool that was invoked." }),
27946 type: Schema.Literal("collabAgentToolCall").annotate({
27947 title: "CollabAgentToolCallThreadItemType",
@@ -35971,20 +36235,33 @@ export type ServerNotification__CollabAgentTool =
36235 | "sendInput"
36236 | "resumeAgent"
36237 | "wait"
35974 - | "closeAgent";
36238 + | "closeAgent"
36239 + | "sendMessage"
36240 + | "followupTask"
36241 + | "interruptAgent"
36242 + | "listAgents";
36243 export const ServerNotification__CollabAgentTool = Schema.Literals([
36244 "spawnAgent",
36245 "sendInput",
36246 "resumeAgent",
36247 "wait",
36248 "closeAgent",
36249 + "sendMessage",
36250 + "followupTask",
36251 + "interruptAgent",
36252 + "listAgents",
36253 ]);
36254
35983 -export type ServerNotification__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";
36255 +export type ServerNotification__CollabAgentToolCallStatus =
36256 + | "inProgress"
36257 + | "completed"
36258 + | "failed"
36259 + | "interrupted";
36260 export const ServerNotification__CollabAgentToolCallStatus = Schema.Literals([
36261 "inProgress",
36262 "completed",
36263 "failed",
36264 + "interrupted",
36265 ]);
36266
36267 export type ServerNotification__CommandExecOutputStream = "stdout" | "stderr";
@@ -38046,23 +38323,33 @@ export type V2ItemCompletedNotification__CollabAgentTool =
38323 | "sendInput"
38324 | "resumeAgent"
38325 | "wait"
38049 - | "closeAgent";
38326 + | "closeAgent"
38327 + | "sendMessage"
38328 + | "followupTask"
38329 + | "interruptAgent"
38330 + | "listAgents";
38331 export const V2ItemCompletedNotification__CollabAgentTool = Schema.Literals([
38332 "spawnAgent",
38333 "sendInput",
38334 "resumeAgent",
38335 "wait",
38336 "closeAgent",
38337 + "sendMessage",
38338 + "followupTask",
38339 + "interruptAgent",
38340 + "listAgents",
38341 ]);
38342
38343 export type V2ItemCompletedNotification__CollabAgentToolCallStatus =
38344 | "inProgress"
38345 | "completed"
38061 - | "failed";
38346 + | "failed"
38347 + | "interrupted";
38348 export const V2ItemCompletedNotification__CollabAgentToolCallStatus = Schema.Literals([
38349 "inProgress",
38350 "completed",
38351 "failed",
38352 + "interrupted",
38353 ]);
38354
38355 export type V2ItemCompletedNotification__CommandExecutionSource =
@@ -38183,23 +38470,33 @@ export type V2ItemStartedNotification__CollabAgentTool =
38470 | "sendInput"
38471 | "resumeAgent"
38472 | "wait"
38186 - | "closeAgent";
38473 + | "closeAgent"
38474 + | "sendMessage"
38475 + | "followupTask"
38476 + | "interruptAgent"
38477 + | "listAgents";
38478 export const V2ItemStartedNotification__CollabAgentTool = Schema.Literals([
38479 "spawnAgent",
38480 "sendInput",
38481 "resumeAgent",
38482 "wait",
38483 "closeAgent",
38484 + "sendMessage",
38485 + "followupTask",
38486 + "interruptAgent",
38487 + "listAgents",
38488 ]);
38489
38490 export type V2ItemStartedNotification__CollabAgentToolCallStatus =
38491 | "inProgress"
38492 | "completed"
38198 - | "failed";
38493 + | "failed"
38494 + | "interrupted";
38495 export const V2ItemStartedNotification__CollabAgentToolCallStatus = Schema.Literals([
38496 "inProgress",
38497 "completed",
38498 "failed",
38499 + "interrupted",
38500 ]);
38501
38502 export type V2ItemStartedNotification__CommandExecutionSource =
@@ -39200,23 +39497,33 @@ export type V2ReviewStartResponse__CollabAgentTool =
39497 | "sendInput"
39498 | "resumeAgent"
39499 | "wait"
39203 - | "closeAgent";
39500 + | "closeAgent"
39501 + | "sendMessage"
39502 + | "followupTask"
39503 + | "interruptAgent"
39504 + | "listAgents";
39505 export const V2ReviewStartResponse__CollabAgentTool = Schema.Literals([
39506 "spawnAgent",
39507 "sendInput",
39508 "resumeAgent",
39509 "wait",
39510 "closeAgent",
39511 + "sendMessage",
39512 + "followupTask",
39513 + "interruptAgent",
39514 + "listAgents",
39515 ]);
39516
39517 export type V2ReviewStartResponse__CollabAgentToolCallStatus =
39518 | "inProgress"
39519 | "completed"
39215 - | "failed";
39520 + | "failed"
39521 + | "interrupted";
39522 export const V2ReviewStartResponse__CollabAgentToolCallStatus = Schema.Literals([
39523 "inProgress",
39524 "completed",
39525 "failed",
39526 + "interrupted",
39527 ]);
39528
39529 export type V2ReviewStartResponse__CommandExecutionSource =
@@ -39598,20 +39905,33 @@ export type V2ThreadForkResponse__CollabAgentTool =
39905 | "sendInput"
39906 | "resumeAgent"
39907 | "wait"
39601 - | "closeAgent";
39908 + | "closeAgent"
39909 + | "sendMessage"
39910 + | "followupTask"
39911 + | "interruptAgent"
39912 + | "listAgents";
39913 export const V2ThreadForkResponse__CollabAgentTool = Schema.Literals([
39914 "spawnAgent",
39915 "sendInput",
39916 "resumeAgent",
39917 "wait",
39918 "closeAgent",
39919 + "sendMessage",
39920 + "followupTask",
39921 + "interruptAgent",
39922 + "listAgents",
39923 ]);
39924
39610 -export type V2ThreadForkResponse__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";
39925 +export type V2ThreadForkResponse__CollabAgentToolCallStatus =
39926 + | "inProgress"
39927 + | "completed"
39928 + | "failed"
39929 + | "interrupted";
39930 export const V2ThreadForkResponse__CollabAgentToolCallStatus = Schema.Literals([
39931 "inProgress",
39932 "completed",
39933 "failed",
39934 + "interrupted",
39935 ]);
39936
39937 export type V2ThreadForkResponse__CommandExecutionSource =
@@ -39955,20 +40275,33 @@ export type V2ThreadListResponse__CollabAgentTool =
40275 | "sendInput"
40276 | "resumeAgent"
40277 | "wait"
39958 - | "closeAgent";
40278 + | "closeAgent"
40279 + | "sendMessage"
40280 + | "followupTask"
40281 + | "interruptAgent"
40282 + | "listAgents";
40283 export const V2ThreadListResponse__CollabAgentTool = Schema.Literals([
40284 "spawnAgent",
40285 "sendInput",
40286 "resumeAgent",
40287 "wait",
40288 "closeAgent",
40289 + "sendMessage",
40290 + "followupTask",
40291 + "interruptAgent",
40292 + "listAgents",
40293 ]);
40294
39967 -export type V2ThreadListResponse__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";
40295 +export type V2ThreadListResponse__CollabAgentToolCallStatus =
40296 + | "inProgress"
40297 + | "completed"
40298 + | "failed"
40299 + | "interrupted";
40300 export const V2ThreadListResponse__CollabAgentToolCallStatus = Schema.Literals([
40301 "inProgress",
40302 "completed",
40303 "failed",
40304 + "interrupted",
40305 ]);
40306
40307 export type V2ThreadListResponse__CommandExecutionSource =
@@ -40131,23 +40464,33 @@ export type V2ThreadMetadataUpdateResponse__CollabAgentTool =
40464 | "sendInput"
40465 | "resumeAgent"
40466 | "wait"
40134 - | "closeAgent";
40467 + | "closeAgent"
40468 + | "sendMessage"
40469 + | "followupTask"
40470 + | "interruptAgent"
40471 + | "listAgents";
40472 export const V2ThreadMetadataUpdateResponse__CollabAgentTool = Schema.Literals([
40473 "spawnAgent",
40474 "sendInput",
40475 "resumeAgent",
40476 "wait",
40477 "closeAgent",
40478 + "sendMessage",
40479 + "followupTask",
40480 + "interruptAgent",
40481 + "listAgents",
40482 ]);
40483
40484 export type V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus =
40485 | "inProgress"
40486 | "completed"
40146 - | "failed";
40487 + | "failed"
40488 + | "interrupted";
40489 export const V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus = Schema.Literals([
40490 "inProgress",
40491 "completed",
40492 "failed",
40493 + "interrupted",
40494 ]);
40495
40496 export type V2ThreadMetadataUpdateResponse__CommandExecutionSource =
@@ -40265,20 +40608,33 @@ export type V2ThreadReadResponse__CollabAgentTool =
40608 | "sendInput"
40609 | "resumeAgent"
40610 | "wait"
40268 - | "closeAgent";
40611 + | "closeAgent"
40612 + | "sendMessage"
40613 + | "followupTask"
40614 + | "interruptAgent"
40615 + | "listAgents";
40616 export const V2ThreadReadResponse__CollabAgentTool = Schema.Literals([
40617 "spawnAgent",
40618 "sendInput",
40619 "resumeAgent",
40620 "wait",
40621 "closeAgent",
40622 + "sendMessage",
40623 + "followupTask",
40624 + "interruptAgent",
40625 + "listAgents",
40626 ]);
40627
40277 -export type V2ThreadReadResponse__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";
40628 +export type V2ThreadReadResponse__CollabAgentToolCallStatus =
40629 + | "inProgress"
40630 + | "completed"
40631 + | "failed"
40632 + | "interrupted";
40633 export const V2ThreadReadResponse__CollabAgentToolCallStatus = Schema.Literals([
40634 "inProgress",
40635 "completed",
40636 "failed",
40637 + "interrupted",
40638 ]);
40639
40640 export type V2ThreadReadResponse__CommandExecutionSource =
@@ -40964,23 +41320,33 @@ export type V2ThreadResumeResponse__CollabAgentTool =
41320 | "sendInput"
41321 | "resumeAgent"
41322 | "wait"
40967 - | "closeAgent";
41323 + | "closeAgent"
41324 + | "sendMessage"
41325 + | "followupTask"
41326 + | "interruptAgent"
41327 + | "listAgents";
41328 export const V2ThreadResumeResponse__CollabAgentTool = Schema.Literals([
41329 "spawnAgent",
41330 "sendInput",
41331 "resumeAgent",
41332 "wait",
41333 "closeAgent",
41334 + "sendMessage",
41335 + "followupTask",
41336 + "interruptAgent",
41337 + "listAgents",
41338 ]);
41339
41340 export type V2ThreadResumeResponse__CollabAgentToolCallStatus =
41341 | "inProgress"
41342 | "completed"
40979 - | "failed";
41343 + | "failed"
41344 + | "interrupted";
41345 export const V2ThreadResumeResponse__CollabAgentToolCallStatus = Schema.Literals([
41346 "inProgress",
41347 "completed",
41348 "failed",
41349 + "interrupted",
41350 ]);
41351
41352 export type V2ThreadResumeResponse__CommandExecutionSource =
@@ -41334,23 +41700,33 @@ export type V2ThreadRollbackResponse__CollabAgentTool =
41700 | "sendInput"
41701 | "resumeAgent"
41702 | "wait"
41337 - | "closeAgent";
41703 + | "closeAgent"
41704 + | "sendMessage"
41705 + | "followupTask"
41706 + | "interruptAgent"
41707 + | "listAgents";
41708 export const V2ThreadRollbackResponse__CollabAgentTool = Schema.Literals([
41709 "spawnAgent",
41710 "sendInput",
41711 "resumeAgent",
41712 "wait",
41713 "closeAgent",
41714 + "sendMessage",
41715 + "followupTask",
41716 + "interruptAgent",
41717 + "listAgents",
41718 ]);
41719
41720 export type V2ThreadRollbackResponse__CollabAgentToolCallStatus =
41721 | "inProgress"
41722 | "completed"
41349 - | "failed";
41723 + | "failed"
41724 + | "interrupted";
41725 export const V2ThreadRollbackResponse__CollabAgentToolCallStatus = Schema.Literals([
41726 "inProgress",
41727 "completed",
41728 "failed",
41729 + "interrupted",
41730 ]);
41731
41732 export type V2ThreadRollbackResponse__CommandExecutionSource =
@@ -41673,23 +42049,33 @@ export type V2ThreadStartedNotification__CollabAgentTool =
42049 | "sendInput"
42050 | "resumeAgent"
42051 | "wait"
41676 - | "closeAgent";
42052 + | "closeAgent"
42053 + | "sendMessage"
42054 + | "followupTask"
42055 + | "interruptAgent"
42056 + | "listAgents";
42057 export const V2ThreadStartedNotification__CollabAgentTool = Schema.Literals([
42058 "spawnAgent",
42059 "sendInput",
42060 "resumeAgent",
42061 "wait",
42062 "closeAgent",
42063 + "sendMessage",
42064 + "followupTask",
42065 + "interruptAgent",
42066 + "listAgents",
42067 ]);
42068
42069 export type V2ThreadStartedNotification__CollabAgentToolCallStatus =
42070 | "inProgress"
42071 | "completed"
41688 - | "failed";
42072 + | "failed"
42073 + | "interrupted";
42074 export const V2ThreadStartedNotification__CollabAgentToolCallStatus = Schema.Literals([
42075 "inProgress",
42076 "completed",
42077 "failed",
42078 + "interrupted",
42079 ]);
42080
42081 export type V2ThreadStartedNotification__CommandExecutionSource =
@@ -42075,23 +42461,33 @@ export type V2ThreadStartResponse__CollabAgentTool =
42461 | "sendInput"
42462 | "resumeAgent"
42463 | "wait"
42078 - | "closeAgent";
42464 + | "closeAgent"
42465 + | "sendMessage"
42466 + | "followupTask"
42467 + | "interruptAgent"
42468 + | "listAgents";
42469 export const V2ThreadStartResponse__CollabAgentTool = Schema.Literals([
42470 "spawnAgent",
42471 "sendInput",
42472 "resumeAgent",
42473 "wait",
42474 "closeAgent",
42475 + "sendMessage",
42476 + "followupTask",
42477 + "interruptAgent",
42478 + "listAgents",
42479 ]);
42480
42481 export type V2ThreadStartResponse__CollabAgentToolCallStatus =
42482 | "inProgress"
42483 | "completed"
42090 - | "failed";
42484 + | "failed"
42485 + | "interrupted";
42486 export const V2ThreadStartResponse__CollabAgentToolCallStatus = Schema.Literals([
42487 "inProgress",
42488 "completed",
42489 "failed",
42490 + "interrupted",
42491 ]);
42492
42493 export type V2ThreadStartResponse__CommandExecutionSource =
@@ -42278,23 +42674,33 @@ export type V2ThreadUnarchiveResponse__CollabAgentTool =
42674 | "sendInput"
42675 | "resumeAgent"
42676 | "wait"
42281 - | "closeAgent";
42677 + | "closeAgent"
42678 + | "sendMessage"
42679 + | "followupTask"
42680 + | "interruptAgent"
42681 + | "listAgents";
42682 export const V2ThreadUnarchiveResponse__CollabAgentTool = Schema.Literals([
42683 "spawnAgent",
42684 "sendInput",
42685 "resumeAgent",
42686 "wait",
42687 "closeAgent",
42688 + "sendMessage",
42689 + "followupTask",
42690 + "interruptAgent",
42691 + "listAgents",
42692 ]);
42693
42694 export type V2ThreadUnarchiveResponse__CollabAgentToolCallStatus =
42695 | "inProgress"
42696 | "completed"
42293 - | "failed";
42697 + | "failed"
42698 + | "interrupted";
42699 export const V2ThreadUnarchiveResponse__CollabAgentToolCallStatus = Schema.Literals([
42700 "inProgress",
42701 "completed",
42702 "failed",
42703 + "interrupted",
42704 ]);
42705
42706 export type V2ThreadUnarchiveResponse__CommandExecutionSource =
@@ -42412,23 +42818,33 @@ export type V2TurnCompletedNotification__CollabAgentTool =
42818 | "sendInput"
42819 | "resumeAgent"
42820 | "wait"
42415 - | "closeAgent";
42821 + | "closeAgent"
42822 + | "sendMessage"
42823 + | "followupTask"
42824 + | "interruptAgent"
42825 + | "listAgents";
42826 export const V2TurnCompletedNotification__CollabAgentTool = Schema.Literals([
42827 "spawnAgent",
42828 "sendInput",
42829 "resumeAgent",
42830 "wait",
42831 "closeAgent",
42832 + "sendMessage",
42833 + "followupTask",
42834 + "interruptAgent",
42835 + "listAgents",
42836 ]);
42837
42838 export type V2TurnCompletedNotification__CollabAgentToolCallStatus =
42839 | "inProgress"
42840 | "completed"
42427 - | "failed";
42841 + | "failed"
42842 + | "interrupted";
42843 export const V2TurnCompletedNotification__CollabAgentToolCallStatus = Schema.Literals([
42844 "inProgress",
42845 "completed",
42846 "failed",
42847 + "interrupted",
42848 ]);
42849
42850 export type V2TurnCompletedNotification__CommandExecutionSource =
@@ -42524,23 +42940,33 @@ export type V2TurnStartedNotification__CollabAgentTool =
42940 | "sendInput"
42941 | "resumeAgent"
42942 | "wait"
42527 - | "closeAgent";
42943 + | "closeAgent"
42944 + | "sendMessage"
42945 + | "followupTask"
42946 + | "interruptAgent"
42947 + | "listAgents";
42948 export const V2TurnStartedNotification__CollabAgentTool = Schema.Literals([
42949 "spawnAgent",
42950 "sendInput",
42951 "resumeAgent",
42952 "wait",
42953 "closeAgent",
42954 + "sendMessage",
42955 + "followupTask",
42956 + "interruptAgent",
42957 + "listAgents",
42958 ]);
42959
42960 export type V2TurnStartedNotification__CollabAgentToolCallStatus =
42961 | "inProgress"
42962 | "completed"
42539 - | "failed";
42963 + | "failed"
42964 + | "interrupted";
42965 export const V2TurnStartedNotification__CollabAgentToolCallStatus = Schema.Literals([
42966 "inProgress",
42967 "completed",
42968 "failed",
42969 + "interrupted",
42970 ]);
42971
42972 export type V2TurnStartedNotification__CommandExecutionSource =
@@ -42728,20 +43154,33 @@ export type V2TurnStartResponse__CollabAgentTool =
43154 | "sendInput"
43155 | "resumeAgent"
43156 | "wait"
42731 - | "closeAgent";
43157 + | "closeAgent"
43158 + | "sendMessage"
43159 + | "followupTask"
43160 + | "interruptAgent"
43161 + | "listAgents";
43162 export const V2TurnStartResponse__CollabAgentTool = Schema.Literals([
43163 "spawnAgent",
43164 "sendInput",
43165 "resumeAgent",
43166 "wait",
43167 "closeAgent",
43168 + "sendMessage",
43169 + "followupTask",
43170 + "interruptAgent",
43171 + "listAgents",
43172 ]);
43173
42740 -export type V2TurnStartResponse__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";
43174 +export type V2TurnStartResponse__CollabAgentToolCallStatus =
43175 + | "inProgress"
43176 + | "completed"
43177 + | "failed"
43178 + | "interrupted";
43179 export const V2TurnStartResponse__CollabAgentToolCallStatus = Schema.Literals([
43180 "inProgress",
43181 "completed",
43182 "failed",
43183 + "interrupted",
43184 ]);
43185
43186 export type V2TurnStartResponse__CommandExecutionSource =
packages/effect-codex-app-server/src/schema.test.ts new
+73
@@ -0,0 +1,73 @@
1 +import { assert, it } from "@effect/vitest";
2 +import * as Schema from "effect/Schema";
3 +
4 +import * as CodexSchema from "./schema.ts";
5 +
6 +it("accepts Codex 0.150 multi-agent values", () => {
7 + const schemas = [
8 + CodexSchema.ServerNotification__SubAgentActivityKind,
9 + CodexSchema.V2ItemStartedNotification__SubAgentActivityKind,
10 + CodexSchema.V2ItemCompletedNotification__SubAgentActivityKind,
11 + CodexSchema.V2ThreadReadResponse__SubAgentActivityKind,
12 + CodexSchema.V2ThreadResumeResponse__SubAgentActivityKind,
13 + ];
14 +
15 + for (const schema of schemas) {
16 + assert.equal(Schema.is(schema)("completed"), true);
17 + }
18 +
19 + for (const tool of ["sendMessage", "followupTask", "interruptAgent", "listAgents"]) {
20 + assert.equal(Schema.is(CodexSchema.ServerNotification__CollabAgentTool)(tool), true);
21 + assert.equal(Schema.is(CodexSchema.V2ThreadResumeResponse__CollabAgentTool)(tool), true);
22 + }
23 +
24 + assert.equal(
25 + Schema.is(CodexSchema.ServerNotification__CollabAgentToolCallStatus)("interrupted"),
26 + true,
27 + );
28 + assert.equal(
29 + Schema.is(CodexSchema.V2ThreadResumeResponse__CollabAgentToolCallStatus)("interrupted"),
30 + true,
31 + );
32 +
33 + const resumeResponse = {
34 + approvalPolicy: "never",
35 + approvalsReviewer: "user",
36 + cwd: "/tmp/project",
37 + model: "gpt-5.6-sol",
38 + modelProvider: "openai",
39 + sandbox: { type: "dangerFullAccess" },
40 + thread: {
41 + cliVersion: "0.150.0",
42 + createdAt: 0,
43 + cwd: "/tmp/project",
44 + ephemeral: false,
45 + id: "root-thread",
46 + modelProvider: "openai",
47 + preview: "",
48 + sessionId: "session-1",
49 + source: "cli",
50 + status: { type: "idle" },
51 + turns: [
52 + {
53 + id: "turn-1",
54 + status: "completed",
55 + items: [
56 + {
57 + agentsStates: {},
58 + id: "item-1",
59 + receiverThreadIds: ["child-thread"],
60 + senderThreadId: "root-thread",
61 + status: "interrupted",
62 + tool: "followupTask",
63 + type: "collabAgentToolCall",
64 + },
65 + ],
66 + },
67 + ],
68 + updatedAt: 0,
69 + },
70 + };
71 +
72 + assert.equal(Schema.is(CodexSchema.V2ThreadResumeResponse)(resumeResponse), true);
73 +});