authorgravatar for me@t3.ggTheo Browne <me@t3.gg> 2026-08-26 22:04:37-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-08-26 22:04:37-07:00
logf925d639421844f02b3166d29281905dbba6d529
tree42a93a31c8b71de005de9870894e767d3a68d373
parent33b650a5b3b27382b35d2182dec6b22438c3da56
signature Signed by PGP key B5690EEEBB952194

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


3 files changed, 638 insertions(+), 97 deletions(-)

packages/effect-codex-app-server/scripts/generate.ts+30-1
...@@ -145,6 +145,33 @@ const ManualSchemas: Record<string, Schema.Json> = {...@@ -145,6 +145,33 @@ const ManualSchemas: Record<string, Schema.Json> = {
145 },145 },
146};146};
147147
148// Codex 0.150 added these multi-agent values before our next full protocol
149// refresh. Keep every generated response namespace compatible with them.
150const 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
148const getGeneratedPaths = Effect.fn("getGeneratedPaths")(function* () {175const getGeneratedPaths = Effect.fn("getGeneratedPaths")(function* () {
149 const path = yield* Path.Path;176 const path = yield* Path.Path;
150 const generatedDir = path.join(import.meta.dirname, "..", "src", "_generated");177 const generatedDir = path.join(import.meta.dirname, "..", "src", "_generated");
...@@ -556,10 +583,12 @@ const generateFiles = Effect.fn("generateFiles")(function* () {...@@ -556,10 +583,12 @@ const generateFiles = Effect.fn("generateFiles")(function* () {
556 );583 );
557584
558 for (const [definitionName, definitionSchema] of Object.entries(parsed.definitions ?? {})) {585 for (const [definitionName, definitionSchema] of Object.entries(parsed.definitions ?? {})) {
586 const compatibleDefinitionSchema =
587 Codex0150DefinitionSchemas[definitionName] ?? definitionSchema;
559 aggregateSchemas[localDefinitionNames.get(definitionName)!] = stripNullDefaults(588 aggregateSchemas[localDefinitionNames.get(definitionName)!] = stripNullDefaults(
560 normalizeNullableTypes(589 normalizeNullableTypes(
561 rewriteExternalRefs(590 rewriteExternalRefs(
562 definitionSchema,591 compatibleDefinitionSchema,
563 localDefinitionNames,592 localDefinitionNames,
564 file.namespace,593 file.namespace,
565 exportNameByQualifiedName,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,11 +2616,16 @@ export const ServerNotification__SpendControlLimitSnapshot = Schema.Struct({
2616 used: Schema.String,2616 used: Schema.String,
2617});2617});
26182618
2619export type ServerNotification__SubAgentActivityKind = "started" | "interacted" | "interrupted";2619export type ServerNotification__SubAgentActivityKind =
2620 | "started"
2621 | "interacted"
2622 | "interrupted"
2623 | "completed";
2620export const ServerNotification__SubAgentActivityKind = Schema.Literals([2624export const ServerNotification__SubAgentActivityKind = Schema.Literals([
2621 "started",2625 "started",
2622 "interacted",2626 "interacted",
2623 "interrupted",2627 "interrupted",
2628 "completed",
2624]);2629]);
26252630
2626export type ServerNotification__TerminalInteractionNotification = {2631export type ServerNotification__TerminalInteractionNotification = {
...@@ -4710,11 +4715,13 @@ export const V2ItemCompletedNotification__ReasoningEffort = Schema.String.annota...@@ -4710,11 +4715,13 @@ export const V2ItemCompletedNotification__ReasoningEffort = Schema.String.annota
4710export type V2ItemCompletedNotification__SubAgentActivityKind =4715export type V2ItemCompletedNotification__SubAgentActivityKind =
4711 | "started"4716 | "started"
4712 | "interacted"4717 | "interacted"
4713 | "interrupted";4718 | "interrupted"
4719 | "completed";
4714export const V2ItemCompletedNotification__SubAgentActivityKind = Schema.Literals([4720export const V2ItemCompletedNotification__SubAgentActivityKind = Schema.Literals([
4715 "started",4721 "started",
4716 "interacted",4722 "interacted",
4717 "interrupted",4723 "interrupted",
4724 "completed",
4718]);4725]);
47194726
4720export type V2ItemCompletedNotification__TextElement = {4727export type V2ItemCompletedNotification__TextElement = {
...@@ -5115,11 +5122,13 @@ export const V2ItemStartedNotification__ReasoningEffort = Schema.String.annotate...@@ -5115,11 +5122,13 @@ export const V2ItemStartedNotification__ReasoningEffort = Schema.String.annotate
5115export type V2ItemStartedNotification__SubAgentActivityKind =5122export type V2ItemStartedNotification__SubAgentActivityKind =
5116 | "started"5123 | "started"
5117 | "interacted"5124 | "interacted"
5118 | "interrupted";5125 | "interrupted"
5126 | "completed";
5119export const V2ItemStartedNotification__SubAgentActivityKind = Schema.Literals([5127export const V2ItemStartedNotification__SubAgentActivityKind = Schema.Literals([
5120 "started",5128 "started",
5121 "interacted",5129 "interacted",
5122 "interrupted",5130 "interrupted",
5131 "completed",
5123]);5132]);
51245133
5125export type V2ItemStartedNotification__TextElement = {5134export type V2ItemStartedNotification__TextElement = {
...@@ -6284,11 +6293,16 @@ export const V2ReviewStartResponse__ReasoningEffort = Schema.String.annotate({...@@ -6284,11 +6293,16 @@ export const V2ReviewStartResponse__ReasoningEffort = Schema.String.annotate({
6284 description: "A non-empty reasoning effort value advertised by the model.",6293 description: "A non-empty reasoning effort value advertised by the model.",
6285}).check(Schema.isMinLength(1));6294}).check(Schema.isMinLength(1));
62866295
6287export type V2ReviewStartResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";6296export type V2ReviewStartResponse__SubAgentActivityKind =
6297 | "started"
6298 | "interacted"
6299 | "interrupted"
6300 | "completed";
6288export const V2ReviewStartResponse__SubAgentActivityKind = Schema.Literals([6301export const V2ReviewStartResponse__SubAgentActivityKind = Schema.Literals([
6289 "started",6302 "started",
6290 "interacted",6303 "interacted",
6291 "interrupted",6304 "interrupted",
6305 "completed",
6292]);6306]);
62936307
6294export type V2ReviewStartResponse__TextElement = {6308export type V2ReviewStartResponse__TextElement = {
...@@ -6720,11 +6734,16 @@ export const V2ThreadForkResponse__ReasoningEffort = Schema.String.annotate({...@@ -6720,11 +6734,16 @@ export const V2ThreadForkResponse__ReasoningEffort = Schema.String.annotate({
6720 description: "A non-empty reasoning effort value advertised by the model.",6734 description: "A non-empty reasoning effort value advertised by the model.",
6721}).check(Schema.isMinLength(1));6735}).check(Schema.isMinLength(1));
67226736
6723export type V2ThreadForkResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";6737export type V2ThreadForkResponse__SubAgentActivityKind =
6738 | "started"
6739 | "interacted"
6740 | "interrupted"
6741 | "completed";
6724export const V2ThreadForkResponse__SubAgentActivityKind = Schema.Literals([6742export const V2ThreadForkResponse__SubAgentActivityKind = Schema.Literals([
6725 "started",6743 "started",
6726 "interacted",6744 "interacted",
6727 "interrupted",6745 "interrupted",
6746 "completed",
6728]);6747]);
67296748
6730export type V2ThreadForkResponse__TextElement = {6749export type V2ThreadForkResponse__TextElement = {
...@@ -7119,11 +7138,16 @@ export const V2ThreadListResponse__ReasoningEffort = Schema.String.annotate({...@@ -7119,11 +7138,16 @@ export const V2ThreadListResponse__ReasoningEffort = Schema.String.annotate({
7119 description: "A non-empty reasoning effort value advertised by the model.",7138 description: "A non-empty reasoning effort value advertised by the model.",
7120}).check(Schema.isMinLength(1));7139}).check(Schema.isMinLength(1));
71217140
7122export type V2ThreadListResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";7141export type V2ThreadListResponse__SubAgentActivityKind =
7142 | "started"
7143 | "interacted"
7144 | "interrupted"
7145 | "completed";
7123export const V2ThreadListResponse__SubAgentActivityKind = Schema.Literals([7146export const V2ThreadListResponse__SubAgentActivityKind = Schema.Literals([
7124 "started",7147 "started",
7125 "interacted",7148 "interacted",
7126 "interrupted",7149 "interrupted",
7150 "completed",
7127]);7151]);
71287152
7129export type V2ThreadListResponse__TextElement = {7153export type V2ThreadListResponse__TextElement = {
...@@ -7463,11 +7487,13 @@ export const V2ThreadMetadataUpdateResponse__ReasoningEffort = Schema.String.ann...@@ -7463,11 +7487,13 @@ export const V2ThreadMetadataUpdateResponse__ReasoningEffort = Schema.String.ann
7463export type V2ThreadMetadataUpdateResponse__SubAgentActivityKind =7487export type V2ThreadMetadataUpdateResponse__SubAgentActivityKind =
7464 | "started"7488 | "started"
7465 | "interacted"7489 | "interacted"
7466 | "interrupted";7490 | "interrupted"
7491 | "completed";
7467export const V2ThreadMetadataUpdateResponse__SubAgentActivityKind = Schema.Literals([7492export const V2ThreadMetadataUpdateResponse__SubAgentActivityKind = Schema.Literals([
7468 "started",7493 "started",
7469 "interacted",7494 "interacted",
7470 "interrupted",7495 "interrupted",
7496 "completed",
7471]);7497]);
74727498
7473export type V2ThreadMetadataUpdateResponse__TextElement = {7499export type V2ThreadMetadataUpdateResponse__TextElement = {
...@@ -7760,11 +7786,16 @@ export const V2ThreadReadResponse__ReasoningEffort = Schema.String.annotate({...@@ -7760,11 +7786,16 @@ export const V2ThreadReadResponse__ReasoningEffort = Schema.String.annotate({
7760 description: "A non-empty reasoning effort value advertised by the model.",7786 description: "A non-empty reasoning effort value advertised by the model.",
7761}).check(Schema.isMinLength(1));7787}).check(Schema.isMinLength(1));
77627788
7763export type V2ThreadReadResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";7789export type V2ThreadReadResponse__SubAgentActivityKind =
7790 | "started"
7791 | "interacted"
7792 | "interrupted"
7793 | "completed";
7764export const V2ThreadReadResponse__SubAgentActivityKind = Schema.Literals([7794export const V2ThreadReadResponse__SubAgentActivityKind = Schema.Literals([
7765 "started",7795 "started",
7766 "interacted",7796 "interacted",
7767 "interrupted",7797 "interrupted",
7798 "completed",
7768]);7799]);
77697800
7770export type V2ThreadReadResponse__TextElement = {7801export type V2ThreadReadResponse__TextElement = {
...@@ -8342,11 +8373,16 @@ export const V2ThreadResumeResponse__ReasoningEffort = Schema.String.annotate({...@@ -8342,11 +8373,16 @@ export const V2ThreadResumeResponse__ReasoningEffort = Schema.String.annotate({
8342 description: "A non-empty reasoning effort value advertised by the model.",8373 description: "A non-empty reasoning effort value advertised by the model.",
8343}).check(Schema.isMinLength(1));8374}).check(Schema.isMinLength(1));
83448375
8345export type V2ThreadResumeResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";8376export type V2ThreadResumeResponse__SubAgentActivityKind =
8377 | "started"
8378 | "interacted"
8379 | "interrupted"
8380 | "completed";
8346export const V2ThreadResumeResponse__SubAgentActivityKind = Schema.Literals([8381export const V2ThreadResumeResponse__SubAgentActivityKind = Schema.Literals([
8347 "started",8382 "started",
8348 "interacted",8383 "interacted",
8349 "interrupted",8384 "interrupted",
8385 "completed",
8350]);8386]);
83518387
8352export type V2ThreadResumeResponse__TextElement = {8388export type V2ThreadResumeResponse__TextElement = {
...@@ -8643,11 +8679,13 @@ export const V2ThreadRollbackResponse__ReasoningEffort = Schema.String.annotate(...@@ -8643,11 +8679,13 @@ export const V2ThreadRollbackResponse__ReasoningEffort = Schema.String.annotate(
8643export type V2ThreadRollbackResponse__SubAgentActivityKind =8679export type V2ThreadRollbackResponse__SubAgentActivityKind =
8644 | "started"8680 | "started"
8645 | "interacted"8681 | "interacted"
8646 | "interrupted";8682 | "interrupted"
8683 | "completed";
8647export const V2ThreadRollbackResponse__SubAgentActivityKind = Schema.Literals([8684export const V2ThreadRollbackResponse__SubAgentActivityKind = Schema.Literals([
8648 "started",8685 "started",
8649 "interacted",8686 "interacted",
8650 "interrupted",8687 "interrupted",
8688 "completed",
8651]);8689]);
86528690
8653export type V2ThreadRollbackResponse__TextElement = {8691export type V2ThreadRollbackResponse__TextElement = {
...@@ -9051,11 +9089,13 @@ export const V2ThreadStartedNotification__ReasoningEffort = Schema.String.annota...@@ -9051,11 +9089,13 @@ export const V2ThreadStartedNotification__ReasoningEffort = Schema.String.annota
9051export type V2ThreadStartedNotification__SubAgentActivityKind =9089export type V2ThreadStartedNotification__SubAgentActivityKind =
9052 | "started"9090 | "started"
9053 | "interacted"9091 | "interacted"
9054 | "interrupted";9092 | "interrupted"
9093 | "completed";
9055export const V2ThreadStartedNotification__SubAgentActivityKind = Schema.Literals([9094export const V2ThreadStartedNotification__SubAgentActivityKind = Schema.Literals([
9056 "started",9095 "started",
9057 "interacted",9096 "interacted",
9058 "interrupted",9097 "interrupted",
9098 "completed",
9059]);9099]);
90609100
9061export type V2ThreadStartedNotification__TextElement = {9101export type V2ThreadStartedNotification__TextElement = {
...@@ -9458,11 +9498,16 @@ export const V2ThreadStartResponse__ReasoningEffort = Schema.String.annotate({...@@ -9458,11 +9498,16 @@ export const V2ThreadStartResponse__ReasoningEffort = Schema.String.annotate({
9458 description: "A non-empty reasoning effort value advertised by the model.",9498 description: "A non-empty reasoning effort value advertised by the model.",
9459}).check(Schema.isMinLength(1));9499}).check(Schema.isMinLength(1));
94609500
9461export type V2ThreadStartResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";9501export type V2ThreadStartResponse__SubAgentActivityKind =
9502 | "started"
9503 | "interacted"
9504 | "interrupted"
9505 | "completed";
9462export const V2ThreadStartResponse__SubAgentActivityKind = Schema.Literals([9506export const V2ThreadStartResponse__SubAgentActivityKind = Schema.Literals([
9463 "started",9507 "started",
9464 "interacted",9508 "interacted",
9465 "interrupted",9509 "interrupted",
9510 "completed",
9466]);9511]);
94679512
9468export type V2ThreadStartResponse__TextElement = {9513export type V2ThreadStartResponse__TextElement = {
...@@ -9791,11 +9836,13 @@ export const V2ThreadUnarchiveResponse__ReasoningEffort = Schema.String.annotate...@@ -9791,11 +9836,13 @@ export const V2ThreadUnarchiveResponse__ReasoningEffort = Schema.String.annotate
9791export type V2ThreadUnarchiveResponse__SubAgentActivityKind =9836export type V2ThreadUnarchiveResponse__SubAgentActivityKind =
9792 | "started"9837 | "started"
9793 | "interacted"9838 | "interacted"
9794 | "interrupted";9839 | "interrupted"
9840 | "completed";
9795export const V2ThreadUnarchiveResponse__SubAgentActivityKind = Schema.Literals([9841export const V2ThreadUnarchiveResponse__SubAgentActivityKind = Schema.Literals([
9796 "started",9842 "started",
9797 "interacted",9843 "interacted",
9798 "interrupted",9844 "interrupted",
9845 "completed",
9799]);9846]);
98009847
9801export type V2ThreadUnarchiveResponse__TextElement = {9848export type V2ThreadUnarchiveResponse__TextElement = {
...@@ -10095,11 +10142,13 @@ export const V2TurnCompletedNotification__ReasoningEffort = Schema.String.annota...@@ -10095,11 +10142,13 @@ export const V2TurnCompletedNotification__ReasoningEffort = Schema.String.annota
10095export type V2TurnCompletedNotification__SubAgentActivityKind =10142export type V2TurnCompletedNotification__SubAgentActivityKind =
10096 | "started"10143 | "started"
10097 | "interacted"10144 | "interacted"
10098 | "interrupted";10145 | "interrupted"
10146 | "completed";
10099export const V2TurnCompletedNotification__SubAgentActivityKind = Schema.Literals([10147export const V2TurnCompletedNotification__SubAgentActivityKind = Schema.Literals([
10100 "started",10148 "started",
10101 "interacted",10149 "interacted",
10102 "interrupted",10150 "interrupted",
10151 "completed",
10103]);10152]);
1010410153
10105export type V2TurnCompletedNotification__TextElement = {10154export type V2TurnCompletedNotification__TextElement = {
...@@ -10385,11 +10434,13 @@ export const V2TurnStartedNotification__ReasoningEffort = Schema.String.annotate...@@ -10385,11 +10434,13 @@ export const V2TurnStartedNotification__ReasoningEffort = Schema.String.annotate
10385export type V2TurnStartedNotification__SubAgentActivityKind =10434export type V2TurnStartedNotification__SubAgentActivityKind =
10386 | "started"10435 | "started"
10387 | "interacted"10436 | "interacted"
10388 | "interrupted";10437 | "interrupted"
10438 | "completed";
10389export const V2TurnStartedNotification__SubAgentActivityKind = Schema.Literals([10439export const V2TurnStartedNotification__SubAgentActivityKind = Schema.Literals([
10390 "started",10440 "started",
10391 "interacted",10441 "interacted",
10392 "interrupted",10442 "interrupted",
10443 "completed",
10393]);10444]);
1039410445
10395export type V2TurnStartedNotification__TextElement = {10446export type V2TurnStartedNotification__TextElement = {
...@@ -10761,11 +10812,16 @@ export const V2TurnStartResponse__ReasoningEffort = Schema.String.annotate({...@@ -10761,11 +10812,16 @@ export const V2TurnStartResponse__ReasoningEffort = Schema.String.annotate({
10761 description: "A non-empty reasoning effort value advertised by the model.",10812 description: "A non-empty reasoning effort value advertised by the model.",
10762}).check(Schema.isMinLength(1));10813}).check(Schema.isMinLength(1));
1076310814
10764export type V2TurnStartResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";10815export type V2TurnStartResponse__SubAgentActivityKind =
10816 | "started"
10817 | "interacted"
10818 | "interrupted"
10819 | "completed";
10765export const V2TurnStartResponse__SubAgentActivityKind = Schema.Literals([10820export const V2TurnStartResponse__SubAgentActivityKind = Schema.Literals([
10766 "started",10821 "started",
10767 "interacted",10822 "interacted",
10768 "interrupted",10823 "interrupted",
10824 "completed",
10769]);10825]);
1077010826
10771export type V2TurnStartResponse__TextElement = {10827export type V2TurnStartResponse__TextElement = {
...@@ -20357,8 +20413,17 @@ export type ServerNotification__ThreadItem =...@@ -20357,8 +20413,17 @@ export type ServerNotification__ThreadItem =
20357 readonly reasoningEffort?: ServerNotification__ReasoningEffort | null;20413 readonly reasoningEffort?: ServerNotification__ReasoningEffort | null;
20358 readonly receiverThreadIds: ReadonlyArray<string>;20414 readonly receiverThreadIds: ReadonlyArray<string>;
20359 readonly senderThreadId: string;20415 readonly senderThreadId: string;
20360 readonly status: "inProgress" | "completed" | "failed";20416 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
20361 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";20417 readonly tool:
20418 | "spawnAgent"
20419 | "sendInput"
20420 | "resumeAgent"
20421 | "wait"
20422 | "closeAgent"
20423 | "sendMessage"
20424 | "followupTask"
20425 | "interruptAgent"
20426 | "listAgents";
20362 readonly type: "collabAgentToolCall";20427 readonly type: "collabAgentToolCall";
20363 }20428 }
20364 | {20429 | {
...@@ -20580,7 +20645,7 @@ export const ServerNotification__ThreadItem = Schema.Union(...@@ -20580,7 +20645,7 @@ export const ServerNotification__ThreadItem = Schema.Union(
20580 senderThreadId: Schema.String.annotate({20645 senderThreadId: Schema.String.annotate({
20581 description: "Thread ID of the agent issuing the collab request.",20646 description: "Thread ID of the agent issuing the collab request.",
20582 }),20647 }),
20583 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({20648 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
20584 description: "Current status of the collab tool call.",20649 description: "Current status of the collab tool call.",
20585 }),20650 }),
20586 tool: Schema.Literals([20651 tool: Schema.Literals([
...@@ -20589,6 +20654,10 @@ export const ServerNotification__ThreadItem = Schema.Union(...@@ -20589,6 +20654,10 @@ export const ServerNotification__ThreadItem = Schema.Union(
20589 "resumeAgent",20654 "resumeAgent",
20590 "wait",20655 "wait",
20591 "closeAgent",20656 "closeAgent",
20657 "sendMessage",
20658 "followupTask",
20659 "interruptAgent",
20660 "listAgents",
20592 ]).annotate({ description: "Name of the collab tool that was invoked." }),20661 ]).annotate({ description: "Name of the collab tool that was invoked." }),
20593 type: Schema.Literal("collabAgentToolCall").annotate({20662 type: Schema.Literal("collabAgentToolCall").annotate({
20594 title: "CollabAgentToolCallThreadItemType",20663 title: "CollabAgentToolCallThreadItemType",
...@@ -21440,8 +21509,17 @@ export type V2ItemCompletedNotification__ThreadItem =...@@ -21440,8 +21509,17 @@ export type V2ItemCompletedNotification__ThreadItem =
21440 readonly reasoningEffort?: V2ItemCompletedNotification__ReasoningEffort | null;21509 readonly reasoningEffort?: V2ItemCompletedNotification__ReasoningEffort | null;
21441 readonly receiverThreadIds: ReadonlyArray<string>;21510 readonly receiverThreadIds: ReadonlyArray<string>;
21442 readonly senderThreadId: string;21511 readonly senderThreadId: string;
21443 readonly status: "inProgress" | "completed" | "failed";21512 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
21444 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";21513 readonly tool:
21514 | "spawnAgent"
21515 | "sendInput"
21516 | "resumeAgent"
21517 | "wait"
21518 | "closeAgent"
21519 | "sendMessage"
21520 | "followupTask"
21521 | "interruptAgent"
21522 | "listAgents";
21445 readonly type: "collabAgentToolCall";21523 readonly type: "collabAgentToolCall";
21446 }21524 }
21447 | {21525 | {
...@@ -21668,7 +21746,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(...@@ -21668,7 +21746,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
21668 senderThreadId: Schema.String.annotate({21746 senderThreadId: Schema.String.annotate({
21669 description: "Thread ID of the agent issuing the collab request.",21747 description: "Thread ID of the agent issuing the collab request.",
21670 }),21748 }),
21671 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({21749 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
21672 description: "Current status of the collab tool call.",21750 description: "Current status of the collab tool call.",
21673 }),21751 }),
21674 tool: Schema.Literals([21752 tool: Schema.Literals([
...@@ -21677,6 +21755,10 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(...@@ -21677,6 +21755,10 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
21677 "resumeAgent",21755 "resumeAgent",
21678 "wait",21756 "wait",
21679 "closeAgent",21757 "closeAgent",
21758 "sendMessage",
21759 "followupTask",
21760 "interruptAgent",
21761 "listAgents",
21680 ]).annotate({ description: "Name of the collab tool that was invoked." }),21762 ]).annotate({ description: "Name of the collab tool that was invoked." }),
21681 type: Schema.Literal("collabAgentToolCall").annotate({21763 type: Schema.Literal("collabAgentToolCall").annotate({
21682 title: "CollabAgentToolCallThreadItemType",21764 title: "CollabAgentToolCallThreadItemType",
...@@ -21891,8 +21973,17 @@ export type V2ItemStartedNotification__ThreadItem =...@@ -21891,8 +21973,17 @@ export type V2ItemStartedNotification__ThreadItem =
21891 readonly reasoningEffort?: V2ItemStartedNotification__ReasoningEffort | null;21973 readonly reasoningEffort?: V2ItemStartedNotification__ReasoningEffort | null;
21892 readonly receiverThreadIds: ReadonlyArray<string>;21974 readonly receiverThreadIds: ReadonlyArray<string>;
21893 readonly senderThreadId: string;21975 readonly senderThreadId: string;
21894 readonly status: "inProgress" | "completed" | "failed";21976 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
21895 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";21977 readonly tool:
21978 | "spawnAgent"
21979 | "sendInput"
21980 | "resumeAgent"
21981 | "wait"
21982 | "closeAgent"
21983 | "sendMessage"
21984 | "followupTask"
21985 | "interruptAgent"
21986 | "listAgents";
21896 readonly type: "collabAgentToolCall";21987 readonly type: "collabAgentToolCall";
21897 }21988 }
21898 | {21989 | {
...@@ -22119,7 +22210,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(...@@ -22119,7 +22210,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
22119 senderThreadId: Schema.String.annotate({22210 senderThreadId: Schema.String.annotate({
22120 description: "Thread ID of the agent issuing the collab request.",22211 description: "Thread ID of the agent issuing the collab request.",
22121 }),22212 }),
22122 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({22213 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
22123 description: "Current status of the collab tool call.",22214 description: "Current status of the collab tool call.",
22124 }),22215 }),
22125 tool: Schema.Literals([22216 tool: Schema.Literals([
...@@ -22128,6 +22219,10 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(...@@ -22128,6 +22219,10 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
22128 "resumeAgent",22219 "resumeAgent",
22129 "wait",22220 "wait",
22130 "closeAgent",22221 "closeAgent",
22222 "sendMessage",
22223 "followupTask",
22224 "interruptAgent",
22225 "listAgents",
22131 ]).annotate({ description: "Name of the collab tool that was invoked." }),22226 ]).annotate({ description: "Name of the collab tool that was invoked." }),
22132 type: Schema.Literal("collabAgentToolCall").annotate({22227 type: Schema.Literal("collabAgentToolCall").annotate({
22133 title: "CollabAgentToolCallThreadItemType",22228 title: "CollabAgentToolCallThreadItemType",
...@@ -22514,8 +22609,17 @@ export type V2ReviewStartResponse__ThreadItem =...@@ -22514,8 +22609,17 @@ export type V2ReviewStartResponse__ThreadItem =
22514 readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null;22609 readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null;
22515 readonly receiverThreadIds: ReadonlyArray<string>;22610 readonly receiverThreadIds: ReadonlyArray<string>;
22516 readonly senderThreadId: string;22611 readonly senderThreadId: string;
22517 readonly status: "inProgress" | "completed" | "failed";22612 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
22518 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";22613 readonly tool:
22614 | "spawnAgent"
22615 | "sendInput"
22616 | "resumeAgent"
22617 | "wait"
22618 | "closeAgent"
22619 | "sendMessage"
22620 | "followupTask"
22621 | "interruptAgent"
22622 | "listAgents";
22519 readonly type: "collabAgentToolCall";22623 readonly type: "collabAgentToolCall";
22520 }22624 }
22521 | {22625 | {
...@@ -22739,7 +22843,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(...@@ -22739,7 +22843,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
22739 senderThreadId: Schema.String.annotate({22843 senderThreadId: Schema.String.annotate({
22740 description: "Thread ID of the agent issuing the collab request.",22844 description: "Thread ID of the agent issuing the collab request.",
22741 }),22845 }),
22742 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({22846 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
22743 description: "Current status of the collab tool call.",22847 description: "Current status of the collab tool call.",
22744 }),22848 }),
22745 tool: Schema.Literals([22849 tool: Schema.Literals([
...@@ -22748,6 +22852,10 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(...@@ -22748,6 +22852,10 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
22748 "resumeAgent",22852 "resumeAgent",
22749 "wait",22853 "wait",
22750 "closeAgent",22854 "closeAgent",
22855 "sendMessage",
22856 "followupTask",
22857 "interruptAgent",
22858 "listAgents",
22751 ]).annotate({ description: "Name of the collab tool that was invoked." }),22859 ]).annotate({ description: "Name of the collab tool that was invoked." }),
22752 type: Schema.Literal("collabAgentToolCall").annotate({22860 type: Schema.Literal("collabAgentToolCall").annotate({
22753 title: "CollabAgentToolCallThreadItemType",22861 title: "CollabAgentToolCallThreadItemType",
...@@ -22950,8 +23058,17 @@ export type V2ThreadForkResponse__ThreadItem =...@@ -22950,8 +23058,17 @@ export type V2ThreadForkResponse__ThreadItem =
22950 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;23058 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;
22951 readonly receiverThreadIds: ReadonlyArray<string>;23059 readonly receiverThreadIds: ReadonlyArray<string>;
22952 readonly senderThreadId: string;23060 readonly senderThreadId: string;
22953 readonly status: "inProgress" | "completed" | "failed";23061 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
22954 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";23062 readonly tool:
23063 | "spawnAgent"
23064 | "sendInput"
23065 | "resumeAgent"
23066 | "wait"
23067 | "closeAgent"
23068 | "sendMessage"
23069 | "followupTask"
23070 | "interruptAgent"
23071 | "listAgents";
22955 readonly type: "collabAgentToolCall";23072 readonly type: "collabAgentToolCall";
22956 }23073 }
22957 | {23074 | {
...@@ -23175,7 +23292,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(...@@ -23175,7 +23292,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
23175 senderThreadId: Schema.String.annotate({23292 senderThreadId: Schema.String.annotate({
23176 description: "Thread ID of the agent issuing the collab request.",23293 description: "Thread ID of the agent issuing the collab request.",
23177 }),23294 }),
23178 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({23295 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
23179 description: "Current status of the collab tool call.",23296 description: "Current status of the collab tool call.",
23180 }),23297 }),
23181 tool: Schema.Literals([23298 tool: Schema.Literals([
...@@ -23184,6 +23301,10 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(...@@ -23184,6 +23301,10 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
23184 "resumeAgent",23301 "resumeAgent",
23185 "wait",23302 "wait",
23186 "closeAgent",23303 "closeAgent",
23304 "sendMessage",
23305 "followupTask",
23306 "interruptAgent",
23307 "listAgents",
23187 ]).annotate({ description: "Name of the collab tool that was invoked." }),23308 ]).annotate({ description: "Name of the collab tool that was invoked." }),
23188 type: Schema.Literal("collabAgentToolCall").annotate({23309 type: Schema.Literal("collabAgentToolCall").annotate({
23189 title: "CollabAgentToolCallThreadItemType",23310 title: "CollabAgentToolCallThreadItemType",
...@@ -23355,8 +23476,17 @@ export type V2ThreadListResponse__ThreadItem =...@@ -23355,8 +23476,17 @@ export type V2ThreadListResponse__ThreadItem =
23355 readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null;23476 readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null;
23356 readonly receiverThreadIds: ReadonlyArray<string>;23477 readonly receiverThreadIds: ReadonlyArray<string>;
23357 readonly senderThreadId: string;23478 readonly senderThreadId: string;
23358 readonly status: "inProgress" | "completed" | "failed";23479 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
23359 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";23480 readonly tool:
23481 | "spawnAgent"
23482 | "sendInput"
23483 | "resumeAgent"
23484 | "wait"
23485 | "closeAgent"
23486 | "sendMessage"
23487 | "followupTask"
23488 | "interruptAgent"
23489 | "listAgents";
23360 readonly type: "collabAgentToolCall";23490 readonly type: "collabAgentToolCall";
23361 }23491 }
23362 | {23492 | {
...@@ -23580,7 +23710,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(...@@ -23580,7 +23710,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
23580 senderThreadId: Schema.String.annotate({23710 senderThreadId: Schema.String.annotate({
23581 description: "Thread ID of the agent issuing the collab request.",23711 description: "Thread ID of the agent issuing the collab request.",
23582 }),23712 }),
23583 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({23713 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
23584 description: "Current status of the collab tool call.",23714 description: "Current status of the collab tool call.",
23585 }),23715 }),
23586 tool: Schema.Literals([23716 tool: Schema.Literals([
...@@ -23589,6 +23719,10 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(...@@ -23589,6 +23719,10 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
23589 "resumeAgent",23719 "resumeAgent",
23590 "wait",23720 "wait",
23591 "closeAgent",23721 "closeAgent",
23722 "sendMessage",
23723 "followupTask",
23724 "interruptAgent",
23725 "listAgents",
23592 ]).annotate({ description: "Name of the collab tool that was invoked." }),23726 ]).annotate({ description: "Name of the collab tool that was invoked." }),
23593 type: Schema.Literal("collabAgentToolCall").annotate({23727 type: Schema.Literal("collabAgentToolCall").annotate({
23594 title: "CollabAgentToolCallThreadItemType",23728 title: "CollabAgentToolCallThreadItemType",
...@@ -23762,8 +23896,17 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =...@@ -23762,8 +23896,17 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =
23762 readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null;23896 readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null;
23763 readonly receiverThreadIds: ReadonlyArray<string>;23897 readonly receiverThreadIds: ReadonlyArray<string>;
23764 readonly senderThreadId: string;23898 readonly senderThreadId: string;
23765 readonly status: "inProgress" | "completed" | "failed";23899 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
23766 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";23900 readonly tool:
23901 | "spawnAgent"
23902 | "sendInput"
23903 | "resumeAgent"
23904 | "wait"
23905 | "closeAgent"
23906 | "sendMessage"
23907 | "followupTask"
23908 | "interruptAgent"
23909 | "listAgents";
23767 readonly type: "collabAgentToolCall";23910 readonly type: "collabAgentToolCall";
23768 }23911 }
23769 | {23912 | {
...@@ -23990,7 +24133,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(...@@ -23990,7 +24133,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
23990 senderThreadId: Schema.String.annotate({24133 senderThreadId: Schema.String.annotate({
23991 description: "Thread ID of the agent issuing the collab request.",24134 description: "Thread ID of the agent issuing the collab request.",
23992 }),24135 }),
23993 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({24136 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
23994 description: "Current status of the collab tool call.",24137 description: "Current status of the collab tool call.",
23995 }),24138 }),
23996 tool: Schema.Literals([24139 tool: Schema.Literals([
...@@ -23999,6 +24142,10 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(...@@ -23999,6 +24142,10 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
23999 "resumeAgent",24142 "resumeAgent",
24000 "wait",24143 "wait",
24001 "closeAgent",24144 "closeAgent",
24145 "sendMessage",
24146 "followupTask",
24147 "interruptAgent",
24148 "listAgents",
24002 ]).annotate({ description: "Name of the collab tool that was invoked." }),24149 ]).annotate({ description: "Name of the collab tool that was invoked." }),
24003 type: Schema.Literal("collabAgentToolCall").annotate({24150 type: Schema.Literal("collabAgentToolCall").annotate({
24004 title: "CollabAgentToolCallThreadItemType",24151 title: "CollabAgentToolCallThreadItemType",
...@@ -24170,8 +24317,17 @@ export type V2ThreadReadResponse__ThreadItem =...@@ -24170,8 +24317,17 @@ export type V2ThreadReadResponse__ThreadItem =
24170 readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null;24317 readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null;
24171 readonly receiverThreadIds: ReadonlyArray<string>;24318 readonly receiverThreadIds: ReadonlyArray<string>;
24172 readonly senderThreadId: string;24319 readonly senderThreadId: string;
24173 readonly status: "inProgress" | "completed" | "failed";24320 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
24174 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";24321 readonly tool:
24322 | "spawnAgent"
24323 | "sendInput"
24324 | "resumeAgent"
24325 | "wait"
24326 | "closeAgent"
24327 | "sendMessage"
24328 | "followupTask"
24329 | "interruptAgent"
24330 | "listAgents";
24175 readonly type: "collabAgentToolCall";24331 readonly type: "collabAgentToolCall";
24176 }24332 }
24177 | {24333 | {
...@@ -24395,7 +24551,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(...@@ -24395,7 +24551,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
24395 senderThreadId: Schema.String.annotate({24551 senderThreadId: Schema.String.annotate({
24396 description: "Thread ID of the agent issuing the collab request.",24552 description: "Thread ID of the agent issuing the collab request.",
24397 }),24553 }),
24398 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({24554 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
24399 description: "Current status of the collab tool call.",24555 description: "Current status of the collab tool call.",
24400 }),24556 }),
24401 tool: Schema.Literals([24557 tool: Schema.Literals([
...@@ -24404,6 +24560,10 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(...@@ -24404,6 +24560,10 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
24404 "resumeAgent",24560 "resumeAgent",
24405 "wait",24561 "wait",
24406 "closeAgent",24562 "closeAgent",
24563 "sendMessage",
24564 "followupTask",
24565 "interruptAgent",
24566 "listAgents",
24407 ]).annotate({ description: "Name of the collab tool that was invoked." }),24567 ]).annotate({ description: "Name of the collab tool that was invoked." }),
24408 type: Schema.Literal("collabAgentToolCall").annotate({24568 type: Schema.Literal("collabAgentToolCall").annotate({
24409 title: "CollabAgentToolCallThreadItemType",24569 title: "CollabAgentToolCallThreadItemType",
...@@ -24583,8 +24743,17 @@ export type V2ThreadResumeResponse__ThreadItem =...@@ -24583,8 +24743,17 @@ export type V2ThreadResumeResponse__ThreadItem =
24583 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;24743 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;
24584 readonly receiverThreadIds: ReadonlyArray<string>;24744 readonly receiverThreadIds: ReadonlyArray<string>;
24585 readonly senderThreadId: string;24745 readonly senderThreadId: string;
24586 readonly status: "inProgress" | "completed" | "failed";24746 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
24587 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";24747 readonly tool:
24748 | "spawnAgent"
24749 | "sendInput"
24750 | "resumeAgent"
24751 | "wait"
24752 | "closeAgent"
24753 | "sendMessage"
24754 | "followupTask"
24755 | "interruptAgent"
24756 | "listAgents";
24588 readonly type: "collabAgentToolCall";24757 readonly type: "collabAgentToolCall";
24589 }24758 }
24590 | {24759 | {
...@@ -24808,7 +24977,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(...@@ -24808,7 +24977,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
24808 senderThreadId: Schema.String.annotate({24977 senderThreadId: Schema.String.annotate({
24809 description: "Thread ID of the agent issuing the collab request.",24978 description: "Thread ID of the agent issuing the collab request.",
24810 }),24979 }),
24811 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({24980 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
24812 description: "Current status of the collab tool call.",24981 description: "Current status of the collab tool call.",
24813 }),24982 }),
24814 tool: Schema.Literals([24983 tool: Schema.Literals([
...@@ -24817,6 +24986,10 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(...@@ -24817,6 +24986,10 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
24817 "resumeAgent",24986 "resumeAgent",
24818 "wait",24987 "wait",
24819 "closeAgent",24988 "closeAgent",
24989 "sendMessage",
24990 "followupTask",
24991 "interruptAgent",
24992 "listAgents",
24820 ]).annotate({ description: "Name of the collab tool that was invoked." }),24993 ]).annotate({ description: "Name of the collab tool that was invoked." }),
24821 type: Schema.Literal("collabAgentToolCall").annotate({24994 type: Schema.Literal("collabAgentToolCall").annotate({
24822 title: "CollabAgentToolCallThreadItemType",24995 title: "CollabAgentToolCallThreadItemType",
...@@ -24988,8 +25161,17 @@ export type V2ThreadRollbackResponse__ThreadItem =...@@ -24988,8 +25161,17 @@ export type V2ThreadRollbackResponse__ThreadItem =
24988 readonly reasoningEffort?: V2ThreadRollbackResponse__ReasoningEffort | null;25161 readonly reasoningEffort?: V2ThreadRollbackResponse__ReasoningEffort | null;
24989 readonly receiverThreadIds: ReadonlyArray<string>;25162 readonly receiverThreadIds: ReadonlyArray<string>;
24990 readonly senderThreadId: string;25163 readonly senderThreadId: string;
24991 readonly status: "inProgress" | "completed" | "failed";25164 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
24992 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";25165 readonly tool:
25166 | "spawnAgent"
25167 | "sendInput"
25168 | "resumeAgent"
25169 | "wait"
25170 | "closeAgent"
25171 | "sendMessage"
25172 | "followupTask"
25173 | "interruptAgent"
25174 | "listAgents";
24993 readonly type: "collabAgentToolCall";25175 readonly type: "collabAgentToolCall";
24994 }25176 }
24995 | {25177 | {
...@@ -25216,7 +25398,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(...@@ -25216,7 +25398,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
25216 senderThreadId: Schema.String.annotate({25398 senderThreadId: Schema.String.annotate({
25217 description: "Thread ID of the agent issuing the collab request.",25399 description: "Thread ID of the agent issuing the collab request.",
25218 }),25400 }),
25219 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({25401 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
25220 description: "Current status of the collab tool call.",25402 description: "Current status of the collab tool call.",
25221 }),25403 }),
25222 tool: Schema.Literals([25404 tool: Schema.Literals([
...@@ -25225,6 +25407,10 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(...@@ -25225,6 +25407,10 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
25225 "resumeAgent",25407 "resumeAgent",
25226 "wait",25408 "wait",
25227 "closeAgent",25409 "closeAgent",
25410 "sendMessage",
25411 "followupTask",
25412 "interruptAgent",
25413 "listAgents",
25228 ]).annotate({ description: "Name of the collab tool that was invoked." }),25414 ]).annotate({ description: "Name of the collab tool that was invoked." }),
25229 type: Schema.Literal("collabAgentToolCall").annotate({25415 type: Schema.Literal("collabAgentToolCall").annotate({
25230 title: "CollabAgentToolCallThreadItemType",25416 title: "CollabAgentToolCallThreadItemType",
...@@ -25407,8 +25593,17 @@ export type V2ThreadStartedNotification__ThreadItem =...@@ -25407,8 +25593,17 @@ export type V2ThreadStartedNotification__ThreadItem =
25407 readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null;25593 readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null;
25408 readonly receiverThreadIds: ReadonlyArray<string>;25594 readonly receiverThreadIds: ReadonlyArray<string>;
25409 readonly senderThreadId: string;25595 readonly senderThreadId: string;
25410 readonly status: "inProgress" | "completed" | "failed";25596 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
25411 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";25597 readonly tool:
25598 | "spawnAgent"
25599 | "sendInput"
25600 | "resumeAgent"
25601 | "wait"
25602 | "closeAgent"
25603 | "sendMessage"
25604 | "followupTask"
25605 | "interruptAgent"
25606 | "listAgents";
25412 readonly type: "collabAgentToolCall";25607 readonly type: "collabAgentToolCall";
25413 }25608 }
25414 | {25609 | {
...@@ -25635,7 +25830,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(...@@ -25635,7 +25830,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
25635 senderThreadId: Schema.String.annotate({25830 senderThreadId: Schema.String.annotate({
25636 description: "Thread ID of the agent issuing the collab request.",25831 description: "Thread ID of the agent issuing the collab request.",
25637 }),25832 }),
25638 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({25833 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
25639 description: "Current status of the collab tool call.",25834 description: "Current status of the collab tool call.",
25640 }),25835 }),
25641 tool: Schema.Literals([25836 tool: Schema.Literals([
...@@ -25644,6 +25839,10 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(...@@ -25644,6 +25839,10 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
25644 "resumeAgent",25839 "resumeAgent",
25645 "wait",25840 "wait",
25646 "closeAgent",25841 "closeAgent",
25842 "sendMessage",
25843 "followupTask",
25844 "interruptAgent",
25845 "listAgents",
25647 ]).annotate({ description: "Name of the collab tool that was invoked." }),25846 ]).annotate({ description: "Name of the collab tool that was invoked." }),
25648 type: Schema.Literal("collabAgentToolCall").annotate({25847 type: Schema.Literal("collabAgentToolCall").annotate({
25649 title: "CollabAgentToolCallThreadItemType",25848 title: "CollabAgentToolCallThreadItemType",
...@@ -25815,8 +26014,17 @@ export type V2ThreadStartResponse__ThreadItem =...@@ -25815,8 +26014,17 @@ export type V2ThreadStartResponse__ThreadItem =
25815 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;26014 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;
25816 readonly receiverThreadIds: ReadonlyArray<string>;26015 readonly receiverThreadIds: ReadonlyArray<string>;
25817 readonly senderThreadId: string;26016 readonly senderThreadId: string;
25818 readonly status: "inProgress" | "completed" | "failed";26017 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
25819 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";26018 readonly tool:
26019 | "spawnAgent"
26020 | "sendInput"
26021 | "resumeAgent"
26022 | "wait"
26023 | "closeAgent"
26024 | "sendMessage"
26025 | "followupTask"
26026 | "interruptAgent"
26027 | "listAgents";
25820 readonly type: "collabAgentToolCall";26028 readonly type: "collabAgentToolCall";
25821 }26029 }
25822 | {26030 | {
...@@ -26040,7 +26248,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(...@@ -26040,7 +26248,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
26040 senderThreadId: Schema.String.annotate({26248 senderThreadId: Schema.String.annotate({
26041 description: "Thread ID of the agent issuing the collab request.",26249 description: "Thread ID of the agent issuing the collab request.",
26042 }),26250 }),
26043 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({26251 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
26044 description: "Current status of the collab tool call.",26252 description: "Current status of the collab tool call.",
26045 }),26253 }),
26046 tool: Schema.Literals([26254 tool: Schema.Literals([
...@@ -26049,6 +26257,10 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(...@@ -26049,6 +26257,10 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
26049 "resumeAgent",26257 "resumeAgent",
26050 "wait",26258 "wait",
26051 "closeAgent",26259 "closeAgent",
26260 "sendMessage",
26261 "followupTask",
26262 "interruptAgent",
26263 "listAgents",
26052 ]).annotate({ description: "Name of the collab tool that was invoked." }),26264 ]).annotate({ description: "Name of the collab tool that was invoked." }),
26053 type: Schema.Literal("collabAgentToolCall").annotate({26265 type: Schema.Literal("collabAgentToolCall").annotate({
26054 title: "CollabAgentToolCallThreadItemType",26266 title: "CollabAgentToolCallThreadItemType",
...@@ -26220,8 +26432,17 @@ export type V2ThreadUnarchiveResponse__ThreadItem =...@@ -26220,8 +26432,17 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
26220 readonly reasoningEffort?: V2ThreadUnarchiveResponse__ReasoningEffort | null;26432 readonly reasoningEffort?: V2ThreadUnarchiveResponse__ReasoningEffort | null;
26221 readonly receiverThreadIds: ReadonlyArray<string>;26433 readonly receiverThreadIds: ReadonlyArray<string>;
26222 readonly senderThreadId: string;26434 readonly senderThreadId: string;
26223 readonly status: "inProgress" | "completed" | "failed";26435 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
26224 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";26436 readonly tool:
26437 | "spawnAgent"
26438 | "sendInput"
26439 | "resumeAgent"
26440 | "wait"
26441 | "closeAgent"
26442 | "sendMessage"
26443 | "followupTask"
26444 | "interruptAgent"
26445 | "listAgents";
26225 readonly type: "collabAgentToolCall";26446 readonly type: "collabAgentToolCall";
26226 }26447 }
26227 | {26448 | {
...@@ -26448,7 +26669,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -26448,7 +26669,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
26448 senderThreadId: Schema.String.annotate({26669 senderThreadId: Schema.String.annotate({
26449 description: "Thread ID of the agent issuing the collab request.",26670 description: "Thread ID of the agent issuing the collab request.",
26450 }),26671 }),
26451 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({26672 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
26452 description: "Current status of the collab tool call.",26673 description: "Current status of the collab tool call.",
26453 }),26674 }),
26454 tool: Schema.Literals([26675 tool: Schema.Literals([
...@@ -26457,6 +26678,10 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -26457,6 +26678,10 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
26457 "resumeAgent",26678 "resumeAgent",
26458 "wait",26679 "wait",
26459 "closeAgent",26680 "closeAgent",
26681 "sendMessage",
26682 "followupTask",
26683 "interruptAgent",
26684 "listAgents",
26460 ]).annotate({ description: "Name of the collab tool that was invoked." }),26685 ]).annotate({ description: "Name of the collab tool that was invoked." }),
26461 type: Schema.Literal("collabAgentToolCall").annotate({26686 type: Schema.Literal("collabAgentToolCall").annotate({
26462 title: "CollabAgentToolCallThreadItemType",26687 title: "CollabAgentToolCallThreadItemType",
...@@ -26630,8 +26855,17 @@ export type V2TurnCompletedNotification__ThreadItem =...@@ -26630,8 +26855,17 @@ export type V2TurnCompletedNotification__ThreadItem =
26630 readonly reasoningEffort?: V2TurnCompletedNotification__ReasoningEffort | null;26855 readonly reasoningEffort?: V2TurnCompletedNotification__ReasoningEffort | null;
26631 readonly receiverThreadIds: ReadonlyArray<string>;26856 readonly receiverThreadIds: ReadonlyArray<string>;
26632 readonly senderThreadId: string;26857 readonly senderThreadId: string;
26633 readonly status: "inProgress" | "completed" | "failed";26858 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
26634 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";26859 readonly tool:
26860 | "spawnAgent"
26861 | "sendInput"
26862 | "resumeAgent"
26863 | "wait"
26864 | "closeAgent"
26865 | "sendMessage"
26866 | "followupTask"
26867 | "interruptAgent"
26868 | "listAgents";
26635 readonly type: "collabAgentToolCall";26869 readonly type: "collabAgentToolCall";
26636 }26870 }
26637 | {26871 | {
...@@ -26858,7 +27092,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(...@@ -26858,7 +27092,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
26858 senderThreadId: Schema.String.annotate({27092 senderThreadId: Schema.String.annotate({
26859 description: "Thread ID of the agent issuing the collab request.",27093 description: "Thread ID of the agent issuing the collab request.",
26860 }),27094 }),
26861 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({27095 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
26862 description: "Current status of the collab tool call.",27096 description: "Current status of the collab tool call.",
26863 }),27097 }),
26864 tool: Schema.Literals([27098 tool: Schema.Literals([
...@@ -26867,6 +27101,10 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(...@@ -26867,6 +27101,10 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
26867 "resumeAgent",27101 "resumeAgent",
26868 "wait",27102 "wait",
26869 "closeAgent",27103 "closeAgent",
27104 "sendMessage",
27105 "followupTask",
27106 "interruptAgent",
27107 "listAgents",
26870 ]).annotate({ description: "Name of the collab tool that was invoked." }),27108 ]).annotate({ description: "Name of the collab tool that was invoked." }),
26871 type: Schema.Literal("collabAgentToolCall").annotate({27109 type: Schema.Literal("collabAgentToolCall").annotate({
26872 title: "CollabAgentToolCallThreadItemType",27110 title: "CollabAgentToolCallThreadItemType",
...@@ -27038,8 +27276,17 @@ export type V2TurnStartedNotification__ThreadItem =...@@ -27038,8 +27276,17 @@ export type V2TurnStartedNotification__ThreadItem =
27038 readonly reasoningEffort?: V2TurnStartedNotification__ReasoningEffort | null;27276 readonly reasoningEffort?: V2TurnStartedNotification__ReasoningEffort | null;
27039 readonly receiverThreadIds: ReadonlyArray<string>;27277 readonly receiverThreadIds: ReadonlyArray<string>;
27040 readonly senderThreadId: string;27278 readonly senderThreadId: string;
27041 readonly status: "inProgress" | "completed" | "failed";27279 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
27042 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";27280 readonly tool:
27281 | "spawnAgent"
27282 | "sendInput"
27283 | "resumeAgent"
27284 | "wait"
27285 | "closeAgent"
27286 | "sendMessage"
27287 | "followupTask"
27288 | "interruptAgent"
27289 | "listAgents";
27043 readonly type: "collabAgentToolCall";27290 readonly type: "collabAgentToolCall";
27044 }27291 }
27045 | {27292 | {
...@@ -27266,7 +27513,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(...@@ -27266,7 +27513,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
27266 senderThreadId: Schema.String.annotate({27513 senderThreadId: Schema.String.annotate({
27267 description: "Thread ID of the agent issuing the collab request.",27514 description: "Thread ID of the agent issuing the collab request.",
27268 }),27515 }),
27269 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({27516 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
27270 description: "Current status of the collab tool call.",27517 description: "Current status of the collab tool call.",
27271 }),27518 }),
27272 tool: Schema.Literals([27519 tool: Schema.Literals([
...@@ -27275,6 +27522,10 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(...@@ -27275,6 +27522,10 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
27275 "resumeAgent",27522 "resumeAgent",
27276 "wait",27523 "wait",
27277 "closeAgent",27524 "closeAgent",
27525 "sendMessage",
27526 "followupTask",
27527 "interruptAgent",
27528 "listAgents",
27278 ]).annotate({ description: "Name of the collab tool that was invoked." }),27529 ]).annotate({ description: "Name of the collab tool that was invoked." }),
27279 type: Schema.Literal("collabAgentToolCall").annotate({27530 type: Schema.Literal("collabAgentToolCall").annotate({
27280 title: "CollabAgentToolCallThreadItemType",27531 title: "CollabAgentToolCallThreadItemType",
...@@ -27446,8 +27697,17 @@ export type V2TurnStartResponse__ThreadItem =...@@ -27446,8 +27697,17 @@ export type V2TurnStartResponse__ThreadItem =
27446 readonly reasoningEffort?: V2TurnStartResponse__ReasoningEffort | null;27697 readonly reasoningEffort?: V2TurnStartResponse__ReasoningEffort | null;
27447 readonly receiverThreadIds: ReadonlyArray<string>;27698 readonly receiverThreadIds: ReadonlyArray<string>;
27448 readonly senderThreadId: string;27699 readonly senderThreadId: string;
27449 readonly status: "inProgress" | "completed" | "failed";27700 readonly status: "inProgress" | "completed" | "failed" | "interrupted";
27450 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";27701 readonly tool:
27702 | "spawnAgent"
27703 | "sendInput"
27704 | "resumeAgent"
27705 | "wait"
27706 | "closeAgent"
27707 | "sendMessage"
27708 | "followupTask"
27709 | "interruptAgent"
27710 | "listAgents";
27451 readonly type: "collabAgentToolCall";27711 readonly type: "collabAgentToolCall";
27452 }27712 }
27453 | {27713 | {
...@@ -27669,7 +27929,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(...@@ -27669,7 +27929,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
27669 senderThreadId: Schema.String.annotate({27929 senderThreadId: Schema.String.annotate({
27670 description: "Thread ID of the agent issuing the collab request.",27930 description: "Thread ID of the agent issuing the collab request.",
27671 }),27931 }),
27672 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({27932 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
27673 description: "Current status of the collab tool call.",27933 description: "Current status of the collab tool call.",
27674 }),27934 }),
27675 tool: Schema.Literals([27935 tool: Schema.Literals([
...@@ -27678,6 +27938,10 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(...@@ -27678,6 +27938,10 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
27678 "resumeAgent",27938 "resumeAgent",
27679 "wait",27939 "wait",
27680 "closeAgent",27940 "closeAgent",
27941 "sendMessage",
27942 "followupTask",
27943 "interruptAgent",
27944 "listAgents",
27681 ]).annotate({ description: "Name of the collab tool that was invoked." }),27945 ]).annotate({ description: "Name of the collab tool that was invoked." }),
27682 type: Schema.Literal("collabAgentToolCall").annotate({27946 type: Schema.Literal("collabAgentToolCall").annotate({
27683 title: "CollabAgentToolCallThreadItemType",27947 title: "CollabAgentToolCallThreadItemType",
...@@ -35971,20 +36235,33 @@ export type ServerNotification__CollabAgentTool =...@@ -35971,20 +36235,33 @@ export type ServerNotification__CollabAgentTool =
35971 | "sendInput"36235 | "sendInput"
35972 | "resumeAgent"36236 | "resumeAgent"
35973 | "wait"36237 | "wait"
35974 | "closeAgent";36238 | "closeAgent"
36239 | "sendMessage"
36240 | "followupTask"
36241 | "interruptAgent"
36242 | "listAgents";
35975export const ServerNotification__CollabAgentTool = Schema.Literals([36243export const ServerNotification__CollabAgentTool = Schema.Literals([
35976 "spawnAgent",36244 "spawnAgent",
35977 "sendInput",36245 "sendInput",
35978 "resumeAgent",36246 "resumeAgent",
35979 "wait",36247 "wait",
35980 "closeAgent",36248 "closeAgent",
36249 "sendMessage",
36250 "followupTask",
36251 "interruptAgent",
36252 "listAgents",
35981]);36253]);
3598236254
35983export type ServerNotification__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";36255export type ServerNotification__CollabAgentToolCallStatus =
36256 | "inProgress"
36257 | "completed"
36258 | "failed"
36259 | "interrupted";
35984export const ServerNotification__CollabAgentToolCallStatus = Schema.Literals([36260export const ServerNotification__CollabAgentToolCallStatus = Schema.Literals([
35985 "inProgress",36261 "inProgress",
35986 "completed",36262 "completed",
35987 "failed",36263 "failed",
36264 "interrupted",
35988]);36265]);
3598936266
35990export type ServerNotification__CommandExecOutputStream = "stdout" | "stderr";36267export type ServerNotification__CommandExecOutputStream = "stdout" | "stderr";
...@@ -38046,23 +38323,33 @@ export type V2ItemCompletedNotification__CollabAgentTool =...@@ -38046,23 +38323,33 @@ export type V2ItemCompletedNotification__CollabAgentTool =
38046 | "sendInput"38323 | "sendInput"
38047 | "resumeAgent"38324 | "resumeAgent"
38048 | "wait"38325 | "wait"
38049 | "closeAgent";38326 | "closeAgent"
38327 | "sendMessage"
38328 | "followupTask"
38329 | "interruptAgent"
38330 | "listAgents";
38050export const V2ItemCompletedNotification__CollabAgentTool = Schema.Literals([38331export const V2ItemCompletedNotification__CollabAgentTool = Schema.Literals([
38051 "spawnAgent",38332 "spawnAgent",
38052 "sendInput",38333 "sendInput",
38053 "resumeAgent",38334 "resumeAgent",
38054 "wait",38335 "wait",
38055 "closeAgent",38336 "closeAgent",
38337 "sendMessage",
38338 "followupTask",
38339 "interruptAgent",
38340 "listAgents",
38056]);38341]);
3805738342
38058export type V2ItemCompletedNotification__CollabAgentToolCallStatus =38343export type V2ItemCompletedNotification__CollabAgentToolCallStatus =
38059 | "inProgress"38344 | "inProgress"
38060 | "completed"38345 | "completed"
38061 | "failed";38346 | "failed"
38347 | "interrupted";
38062export const V2ItemCompletedNotification__CollabAgentToolCallStatus = Schema.Literals([38348export const V2ItemCompletedNotification__CollabAgentToolCallStatus = Schema.Literals([
38063 "inProgress",38349 "inProgress",
38064 "completed",38350 "completed",
38065 "failed",38351 "failed",
38352 "interrupted",
38066]);38353]);
3806738354
38068export type V2ItemCompletedNotification__CommandExecutionSource =38355export type V2ItemCompletedNotification__CommandExecutionSource =
...@@ -38183,23 +38470,33 @@ export type V2ItemStartedNotification__CollabAgentTool =...@@ -38183,23 +38470,33 @@ export type V2ItemStartedNotification__CollabAgentTool =
38183 | "sendInput"38470 | "sendInput"
38184 | "resumeAgent"38471 | "resumeAgent"
38185 | "wait"38472 | "wait"
38186 | "closeAgent";38473 | "closeAgent"
38474 | "sendMessage"
38475 | "followupTask"
38476 | "interruptAgent"
38477 | "listAgents";
38187export const V2ItemStartedNotification__CollabAgentTool = Schema.Literals([38478export const V2ItemStartedNotification__CollabAgentTool = Schema.Literals([
38188 "spawnAgent",38479 "spawnAgent",
38189 "sendInput",38480 "sendInput",
38190 "resumeAgent",38481 "resumeAgent",
38191 "wait",38482 "wait",
38192 "closeAgent",38483 "closeAgent",
38484 "sendMessage",
38485 "followupTask",
38486 "interruptAgent",
38487 "listAgents",
38193]);38488]);
3819438489
38195export type V2ItemStartedNotification__CollabAgentToolCallStatus =38490export type V2ItemStartedNotification__CollabAgentToolCallStatus =
38196 | "inProgress"38491 | "inProgress"
38197 | "completed"38492 | "completed"
38198 | "failed";38493 | "failed"
38494 | "interrupted";
38199export const V2ItemStartedNotification__CollabAgentToolCallStatus = Schema.Literals([38495export const V2ItemStartedNotification__CollabAgentToolCallStatus = Schema.Literals([
38200 "inProgress",38496 "inProgress",
38201 "completed",38497 "completed",
38202 "failed",38498 "failed",
38499 "interrupted",
38203]);38500]);
3820438501
38205export type V2ItemStartedNotification__CommandExecutionSource =38502export type V2ItemStartedNotification__CommandExecutionSource =
...@@ -39200,23 +39497,33 @@ export type V2ReviewStartResponse__CollabAgentTool =...@@ -39200,23 +39497,33 @@ export type V2ReviewStartResponse__CollabAgentTool =
39200 | "sendInput"39497 | "sendInput"
39201 | "resumeAgent"39498 | "resumeAgent"
39202 | "wait"39499 | "wait"
39203 | "closeAgent";39500 | "closeAgent"
39501 | "sendMessage"
39502 | "followupTask"
39503 | "interruptAgent"
39504 | "listAgents";
39204export const V2ReviewStartResponse__CollabAgentTool = Schema.Literals([39505export const V2ReviewStartResponse__CollabAgentTool = Schema.Literals([
39205 "spawnAgent",39506 "spawnAgent",
39206 "sendInput",39507 "sendInput",
39207 "resumeAgent",39508 "resumeAgent",
39208 "wait",39509 "wait",
39209 "closeAgent",39510 "closeAgent",
39511 "sendMessage",
39512 "followupTask",
39513 "interruptAgent",
39514 "listAgents",
39210]);39515]);
3921139516
39212export type V2ReviewStartResponse__CollabAgentToolCallStatus =39517export type V2ReviewStartResponse__CollabAgentToolCallStatus =
39213 | "inProgress"39518 | "inProgress"
39214 | "completed"39519 | "completed"
39215 | "failed";39520 | "failed"
39521 | "interrupted";
39216export const V2ReviewStartResponse__CollabAgentToolCallStatus = Schema.Literals([39522export const V2ReviewStartResponse__CollabAgentToolCallStatus = Schema.Literals([
39217 "inProgress",39523 "inProgress",
39218 "completed",39524 "completed",
39219 "failed",39525 "failed",
39526 "interrupted",
39220]);39527]);
3922139528
39222export type V2ReviewStartResponse__CommandExecutionSource =39529export type V2ReviewStartResponse__CommandExecutionSource =
...@@ -39598,20 +39905,33 @@ export type V2ThreadForkResponse__CollabAgentTool =...@@ -39598,20 +39905,33 @@ export type V2ThreadForkResponse__CollabAgentTool =
39598 | "sendInput"39905 | "sendInput"
39599 | "resumeAgent"39906 | "resumeAgent"
39600 | "wait"39907 | "wait"
39601 | "closeAgent";39908 | "closeAgent"
39909 | "sendMessage"
39910 | "followupTask"
39911 | "interruptAgent"
39912 | "listAgents";
39602export const V2ThreadForkResponse__CollabAgentTool = Schema.Literals([39913export const V2ThreadForkResponse__CollabAgentTool = Schema.Literals([
39603 "spawnAgent",39914 "spawnAgent",
39604 "sendInput",39915 "sendInput",
39605 "resumeAgent",39916 "resumeAgent",
39606 "wait",39917 "wait",
39607 "closeAgent",39918 "closeAgent",
39919 "sendMessage",
39920 "followupTask",
39921 "interruptAgent",
39922 "listAgents",
39608]);39923]);
3960939924
39610export type V2ThreadForkResponse__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";39925export type V2ThreadForkResponse__CollabAgentToolCallStatus =
39926 | "inProgress"
39927 | "completed"
39928 | "failed"
39929 | "interrupted";
39611export const V2ThreadForkResponse__CollabAgentToolCallStatus = Schema.Literals([39930export const V2ThreadForkResponse__CollabAgentToolCallStatus = Schema.Literals([
39612 "inProgress",39931 "inProgress",
39613 "completed",39932 "completed",
39614 "failed",39933 "failed",
39934 "interrupted",
39615]);39935]);
3961639936
39617export type V2ThreadForkResponse__CommandExecutionSource =39937export type V2ThreadForkResponse__CommandExecutionSource =
...@@ -39955,20 +40275,33 @@ export type V2ThreadListResponse__CollabAgentTool =...@@ -39955,20 +40275,33 @@ export type V2ThreadListResponse__CollabAgentTool =
39955 | "sendInput"40275 | "sendInput"
39956 | "resumeAgent"40276 | "resumeAgent"
39957 | "wait"40277 | "wait"
39958 | "closeAgent";40278 | "closeAgent"
40279 | "sendMessage"
40280 | "followupTask"
40281 | "interruptAgent"
40282 | "listAgents";
39959export const V2ThreadListResponse__CollabAgentTool = Schema.Literals([40283export const V2ThreadListResponse__CollabAgentTool = Schema.Literals([
39960 "spawnAgent",40284 "spawnAgent",
39961 "sendInput",40285 "sendInput",
39962 "resumeAgent",40286 "resumeAgent",
39963 "wait",40287 "wait",
39964 "closeAgent",40288 "closeAgent",
40289 "sendMessage",
40290 "followupTask",
40291 "interruptAgent",
40292 "listAgents",
39965]);40293]);
3996640294
39967export type V2ThreadListResponse__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";40295export type V2ThreadListResponse__CollabAgentToolCallStatus =
40296 | "inProgress"
40297 | "completed"
40298 | "failed"
40299 | "interrupted";
39968export const V2ThreadListResponse__CollabAgentToolCallStatus = Schema.Literals([40300export const V2ThreadListResponse__CollabAgentToolCallStatus = Schema.Literals([
39969 "inProgress",40301 "inProgress",
39970 "completed",40302 "completed",
39971 "failed",40303 "failed",
40304 "interrupted",
39972]);40305]);
3997340306
39974export type V2ThreadListResponse__CommandExecutionSource =40307export type V2ThreadListResponse__CommandExecutionSource =
...@@ -40131,23 +40464,33 @@ export type V2ThreadMetadataUpdateResponse__CollabAgentTool =...@@ -40131,23 +40464,33 @@ export type V2ThreadMetadataUpdateResponse__CollabAgentTool =
40131 | "sendInput"40464 | "sendInput"
40132 | "resumeAgent"40465 | "resumeAgent"
40133 | "wait"40466 | "wait"
40134 | "closeAgent";40467 | "closeAgent"
40468 | "sendMessage"
40469 | "followupTask"
40470 | "interruptAgent"
40471 | "listAgents";
40135export const V2ThreadMetadataUpdateResponse__CollabAgentTool = Schema.Literals([40472export const V2ThreadMetadataUpdateResponse__CollabAgentTool = Schema.Literals([
40136 "spawnAgent",40473 "spawnAgent",
40137 "sendInput",40474 "sendInput",
40138 "resumeAgent",40475 "resumeAgent",
40139 "wait",40476 "wait",
40140 "closeAgent",40477 "closeAgent",
40478 "sendMessage",
40479 "followupTask",
40480 "interruptAgent",
40481 "listAgents",
40141]);40482]);
4014240483
40143export type V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus =40484export type V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus =
40144 | "inProgress"40485 | "inProgress"
40145 | "completed"40486 | "completed"
40146 | "failed";40487 | "failed"
40488 | "interrupted";
40147export const V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus = Schema.Literals([40489export const V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus = Schema.Literals([
40148 "inProgress",40490 "inProgress",
40149 "completed",40491 "completed",
40150 "failed",40492 "failed",
40493 "interrupted",
40151]);40494]);
4015240495
40153export type V2ThreadMetadataUpdateResponse__CommandExecutionSource =40496export type V2ThreadMetadataUpdateResponse__CommandExecutionSource =
...@@ -40265,20 +40608,33 @@ export type V2ThreadReadResponse__CollabAgentTool =...@@ -40265,20 +40608,33 @@ export type V2ThreadReadResponse__CollabAgentTool =
40265 | "sendInput"40608 | "sendInput"
40266 | "resumeAgent"40609 | "resumeAgent"
40267 | "wait"40610 | "wait"
40268 | "closeAgent";40611 | "closeAgent"
40612 | "sendMessage"
40613 | "followupTask"
40614 | "interruptAgent"
40615 | "listAgents";
40269export const V2ThreadReadResponse__CollabAgentTool = Schema.Literals([40616export const V2ThreadReadResponse__CollabAgentTool = Schema.Literals([
40270 "spawnAgent",40617 "spawnAgent",
40271 "sendInput",40618 "sendInput",
40272 "resumeAgent",40619 "resumeAgent",
40273 "wait",40620 "wait",
40274 "closeAgent",40621 "closeAgent",
40622 "sendMessage",
40623 "followupTask",
40624 "interruptAgent",
40625 "listAgents",
40275]);40626]);
4027640627
40277export type V2ThreadReadResponse__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";40628export type V2ThreadReadResponse__CollabAgentToolCallStatus =
40629 | "inProgress"
40630 | "completed"
40631 | "failed"
40632 | "interrupted";
40278export const V2ThreadReadResponse__CollabAgentToolCallStatus = Schema.Literals([40633export const V2ThreadReadResponse__CollabAgentToolCallStatus = Schema.Literals([
40279 "inProgress",40634 "inProgress",
40280 "completed",40635 "completed",
40281 "failed",40636 "failed",
40637 "interrupted",
40282]);40638]);
4028340639
40284export type V2ThreadReadResponse__CommandExecutionSource =40640export type V2ThreadReadResponse__CommandExecutionSource =
...@@ -40964,23 +41320,33 @@ export type V2ThreadResumeResponse__CollabAgentTool =...@@ -40964,23 +41320,33 @@ export type V2ThreadResumeResponse__CollabAgentTool =
40964 | "sendInput"41320 | "sendInput"
40965 | "resumeAgent"41321 | "resumeAgent"
40966 | "wait"41322 | "wait"
40967 | "closeAgent";41323 | "closeAgent"
41324 | "sendMessage"
41325 | "followupTask"
41326 | "interruptAgent"
41327 | "listAgents";
40968export const V2ThreadResumeResponse__CollabAgentTool = Schema.Literals([41328export const V2ThreadResumeResponse__CollabAgentTool = Schema.Literals([
40969 "spawnAgent",41329 "spawnAgent",
40970 "sendInput",41330 "sendInput",
40971 "resumeAgent",41331 "resumeAgent",
40972 "wait",41332 "wait",
40973 "closeAgent",41333 "closeAgent",
41334 "sendMessage",
41335 "followupTask",
41336 "interruptAgent",
41337 "listAgents",
40974]);41338]);
4097541339
40976export type V2ThreadResumeResponse__CollabAgentToolCallStatus =41340export type V2ThreadResumeResponse__CollabAgentToolCallStatus =
40977 | "inProgress"41341 | "inProgress"
40978 | "completed"41342 | "completed"
40979 | "failed";41343 | "failed"
41344 | "interrupted";
40980export const V2ThreadResumeResponse__CollabAgentToolCallStatus = Schema.Literals([41345export const V2ThreadResumeResponse__CollabAgentToolCallStatus = Schema.Literals([
40981 "inProgress",41346 "inProgress",
40982 "completed",41347 "completed",
40983 "failed",41348 "failed",
41349 "interrupted",
40984]);41350]);
4098541351
40986export type V2ThreadResumeResponse__CommandExecutionSource =41352export type V2ThreadResumeResponse__CommandExecutionSource =
...@@ -41334,23 +41700,33 @@ export type V2ThreadRollbackResponse__CollabAgentTool =...@@ -41334,23 +41700,33 @@ export type V2ThreadRollbackResponse__CollabAgentTool =
41334 | "sendInput"41700 | "sendInput"
41335 | "resumeAgent"41701 | "resumeAgent"
41336 | "wait"41702 | "wait"
41337 | "closeAgent";41703 | "closeAgent"
41704 | "sendMessage"
41705 | "followupTask"
41706 | "interruptAgent"
41707 | "listAgents";
41338export const V2ThreadRollbackResponse__CollabAgentTool = Schema.Literals([41708export const V2ThreadRollbackResponse__CollabAgentTool = Schema.Literals([
41339 "spawnAgent",41709 "spawnAgent",
41340 "sendInput",41710 "sendInput",
41341 "resumeAgent",41711 "resumeAgent",
41342 "wait",41712 "wait",
41343 "closeAgent",41713 "closeAgent",
41714 "sendMessage",
41715 "followupTask",
41716 "interruptAgent",
41717 "listAgents",
41344]);41718]);
4134541719
41346export type V2ThreadRollbackResponse__CollabAgentToolCallStatus =41720export type V2ThreadRollbackResponse__CollabAgentToolCallStatus =
41347 | "inProgress"41721 | "inProgress"
41348 | "completed"41722 | "completed"
41349 | "failed";41723 | "failed"
41724 | "interrupted";
41350export const V2ThreadRollbackResponse__CollabAgentToolCallStatus = Schema.Literals([41725export const V2ThreadRollbackResponse__CollabAgentToolCallStatus = Schema.Literals([
41351 "inProgress",41726 "inProgress",
41352 "completed",41727 "completed",
41353 "failed",41728 "failed",
41729 "interrupted",
41354]);41730]);
4135541731
41356export type V2ThreadRollbackResponse__CommandExecutionSource =41732export type V2ThreadRollbackResponse__CommandExecutionSource =
...@@ -41673,23 +42049,33 @@ export type V2ThreadStartedNotification__CollabAgentTool =...@@ -41673,23 +42049,33 @@ export type V2ThreadStartedNotification__CollabAgentTool =
41673 | "sendInput"42049 | "sendInput"
41674 | "resumeAgent"42050 | "resumeAgent"
41675 | "wait"42051 | "wait"
41676 | "closeAgent";42052 | "closeAgent"
42053 | "sendMessage"
42054 | "followupTask"
42055 | "interruptAgent"
42056 | "listAgents";
41677export const V2ThreadStartedNotification__CollabAgentTool = Schema.Literals([42057export const V2ThreadStartedNotification__CollabAgentTool = Schema.Literals([
41678 "spawnAgent",42058 "spawnAgent",
41679 "sendInput",42059 "sendInput",
41680 "resumeAgent",42060 "resumeAgent",
41681 "wait",42061 "wait",
41682 "closeAgent",42062 "closeAgent",
42063 "sendMessage",
42064 "followupTask",
42065 "interruptAgent",
42066 "listAgents",
41683]);42067]);
4168442068
41685export type V2ThreadStartedNotification__CollabAgentToolCallStatus =42069export type V2ThreadStartedNotification__CollabAgentToolCallStatus =
41686 | "inProgress"42070 | "inProgress"
41687 | "completed"42071 | "completed"
41688 | "failed";42072 | "failed"
42073 | "interrupted";
41689export const V2ThreadStartedNotification__CollabAgentToolCallStatus = Schema.Literals([42074export const V2ThreadStartedNotification__CollabAgentToolCallStatus = Schema.Literals([
41690 "inProgress",42075 "inProgress",
41691 "completed",42076 "completed",
41692 "failed",42077 "failed",
42078 "interrupted",
41693]);42079]);
4169442080
41695export type V2ThreadStartedNotification__CommandExecutionSource =42081export type V2ThreadStartedNotification__CommandExecutionSource =
...@@ -42075,23 +42461,33 @@ export type V2ThreadStartResponse__CollabAgentTool =...@@ -42075,23 +42461,33 @@ export type V2ThreadStartResponse__CollabAgentTool =
42075 | "sendInput"42461 | "sendInput"
42076 | "resumeAgent"42462 | "resumeAgent"
42077 | "wait"42463 | "wait"
42078 | "closeAgent";42464 | "closeAgent"
42465 | "sendMessage"
42466 | "followupTask"
42467 | "interruptAgent"
42468 | "listAgents";
42079export const V2ThreadStartResponse__CollabAgentTool = Schema.Literals([42469export const V2ThreadStartResponse__CollabAgentTool = Schema.Literals([
42080 "spawnAgent",42470 "spawnAgent",
42081 "sendInput",42471 "sendInput",
42082 "resumeAgent",42472 "resumeAgent",
42083 "wait",42473 "wait",
42084 "closeAgent",42474 "closeAgent",
42475 "sendMessage",
42476 "followupTask",
42477 "interruptAgent",
42478 "listAgents",
42085]);42479]);
4208642480
42087export type V2ThreadStartResponse__CollabAgentToolCallStatus =42481export type V2ThreadStartResponse__CollabAgentToolCallStatus =
42088 | "inProgress"42482 | "inProgress"
42089 | "completed"42483 | "completed"
42090 | "failed";42484 | "failed"
42485 | "interrupted";
42091export const V2ThreadStartResponse__CollabAgentToolCallStatus = Schema.Literals([42486export const V2ThreadStartResponse__CollabAgentToolCallStatus = Schema.Literals([
42092 "inProgress",42487 "inProgress",
42093 "completed",42488 "completed",
42094 "failed",42489 "failed",
42490 "interrupted",
42095]);42491]);
4209642492
42097export type V2ThreadStartResponse__CommandExecutionSource =42493export type V2ThreadStartResponse__CommandExecutionSource =
...@@ -42278,23 +42674,33 @@ export type V2ThreadUnarchiveResponse__CollabAgentTool =...@@ -42278,23 +42674,33 @@ export type V2ThreadUnarchiveResponse__CollabAgentTool =
42278 | "sendInput"42674 | "sendInput"
42279 | "resumeAgent"42675 | "resumeAgent"
42280 | "wait"42676 | "wait"
42281 | "closeAgent";42677 | "closeAgent"
42678 | "sendMessage"
42679 | "followupTask"
42680 | "interruptAgent"
42681 | "listAgents";
42282export const V2ThreadUnarchiveResponse__CollabAgentTool = Schema.Literals([42682export const V2ThreadUnarchiveResponse__CollabAgentTool = Schema.Literals([
42283 "spawnAgent",42683 "spawnAgent",
42284 "sendInput",42684 "sendInput",
42285 "resumeAgent",42685 "resumeAgent",
42286 "wait",42686 "wait",
42287 "closeAgent",42687 "closeAgent",
42688 "sendMessage",
42689 "followupTask",
42690 "interruptAgent",
42691 "listAgents",
42288]);42692]);
4228942693
42290export type V2ThreadUnarchiveResponse__CollabAgentToolCallStatus =42694export type V2ThreadUnarchiveResponse__CollabAgentToolCallStatus =
42291 | "inProgress"42695 | "inProgress"
42292 | "completed"42696 | "completed"
42293 | "failed";42697 | "failed"
42698 | "interrupted";
42294export const V2ThreadUnarchiveResponse__CollabAgentToolCallStatus = Schema.Literals([42699export const V2ThreadUnarchiveResponse__CollabAgentToolCallStatus = Schema.Literals([
42295 "inProgress",42700 "inProgress",
42296 "completed",42701 "completed",
42297 "failed",42702 "failed",
42703 "interrupted",
42298]);42704]);
4229942705
42300export type V2ThreadUnarchiveResponse__CommandExecutionSource =42706export type V2ThreadUnarchiveResponse__CommandExecutionSource =
...@@ -42412,23 +42818,33 @@ export type V2TurnCompletedNotification__CollabAgentTool =...@@ -42412,23 +42818,33 @@ export type V2TurnCompletedNotification__CollabAgentTool =
42412 | "sendInput"42818 | "sendInput"
42413 | "resumeAgent"42819 | "resumeAgent"
42414 | "wait"42820 | "wait"
42415 | "closeAgent";42821 | "closeAgent"
42822 | "sendMessage"
42823 | "followupTask"
42824 | "interruptAgent"
42825 | "listAgents";
42416export const V2TurnCompletedNotification__CollabAgentTool = Schema.Literals([42826export const V2TurnCompletedNotification__CollabAgentTool = Schema.Literals([
42417 "spawnAgent",42827 "spawnAgent",
42418 "sendInput",42828 "sendInput",
42419 "resumeAgent",42829 "resumeAgent",
42420 "wait",42830 "wait",
42421 "closeAgent",42831 "closeAgent",
42832 "sendMessage",
42833 "followupTask",
42834 "interruptAgent",
42835 "listAgents",
42422]);42836]);
4242342837
42424export type V2TurnCompletedNotification__CollabAgentToolCallStatus =42838export type V2TurnCompletedNotification__CollabAgentToolCallStatus =
42425 | "inProgress"42839 | "inProgress"
42426 | "completed"42840 | "completed"
42427 | "failed";42841 | "failed"
42842 | "interrupted";
42428export const V2TurnCompletedNotification__CollabAgentToolCallStatus = Schema.Literals([42843export const V2TurnCompletedNotification__CollabAgentToolCallStatus = Schema.Literals([
42429 "inProgress",42844 "inProgress",
42430 "completed",42845 "completed",
42431 "failed",42846 "failed",
42847 "interrupted",
42432]);42848]);
4243342849
42434export type V2TurnCompletedNotification__CommandExecutionSource =42850export type V2TurnCompletedNotification__CommandExecutionSource =
...@@ -42524,23 +42940,33 @@ export type V2TurnStartedNotification__CollabAgentTool =...@@ -42524,23 +42940,33 @@ export type V2TurnStartedNotification__CollabAgentTool =
42524 | "sendInput"42940 | "sendInput"
42525 | "resumeAgent"42941 | "resumeAgent"
42526 | "wait"42942 | "wait"
42527 | "closeAgent";42943 | "closeAgent"
42944 | "sendMessage"
42945 | "followupTask"
42946 | "interruptAgent"
42947 | "listAgents";
42528export const V2TurnStartedNotification__CollabAgentTool = Schema.Literals([42948export const V2TurnStartedNotification__CollabAgentTool = Schema.Literals([
42529 "spawnAgent",42949 "spawnAgent",
42530 "sendInput",42950 "sendInput",
42531 "resumeAgent",42951 "resumeAgent",
42532 "wait",42952 "wait",
42533 "closeAgent",42953 "closeAgent",
42954 "sendMessage",
42955 "followupTask",
42956 "interruptAgent",
42957 "listAgents",
42534]);42958]);
4253542959
42536export type V2TurnStartedNotification__CollabAgentToolCallStatus =42960export type V2TurnStartedNotification__CollabAgentToolCallStatus =
42537 | "inProgress"42961 | "inProgress"
42538 | "completed"42962 | "completed"
42539 | "failed";42963 | "failed"
42964 | "interrupted";
42540export const V2TurnStartedNotification__CollabAgentToolCallStatus = Schema.Literals([42965export const V2TurnStartedNotification__CollabAgentToolCallStatus = Schema.Literals([
42541 "inProgress",42966 "inProgress",
42542 "completed",42967 "completed",
42543 "failed",42968 "failed",
42969 "interrupted",
42544]);42970]);
4254542971
42546export type V2TurnStartedNotification__CommandExecutionSource =42972export type V2TurnStartedNotification__CommandExecutionSource =
...@@ -42728,20 +43154,33 @@ export type V2TurnStartResponse__CollabAgentTool =...@@ -42728,20 +43154,33 @@ export type V2TurnStartResponse__CollabAgentTool =
42728 | "sendInput"43154 | "sendInput"
42729 | "resumeAgent"43155 | "resumeAgent"
42730 | "wait"43156 | "wait"
42731 | "closeAgent";43157 | "closeAgent"
43158 | "sendMessage"
43159 | "followupTask"
43160 | "interruptAgent"
43161 | "listAgents";
42732export const V2TurnStartResponse__CollabAgentTool = Schema.Literals([43162export const V2TurnStartResponse__CollabAgentTool = Schema.Literals([
42733 "spawnAgent",43163 "spawnAgent",
42734 "sendInput",43164 "sendInput",
42735 "resumeAgent",43165 "resumeAgent",
42736 "wait",43166 "wait",
42737 "closeAgent",43167 "closeAgent",
43168 "sendMessage",
43169 "followupTask",
43170 "interruptAgent",
43171 "listAgents",
42738]);43172]);
4273943173
42740export type V2TurnStartResponse__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";43174export type V2TurnStartResponse__CollabAgentToolCallStatus =
43175 | "inProgress"
43176 | "completed"
43177 | "failed"
43178 | "interrupted";
42741export const V2TurnStartResponse__CollabAgentToolCallStatus = Schema.Literals([43179export const V2TurnStartResponse__CollabAgentToolCallStatus = Schema.Literals([
42742 "inProgress",43180 "inProgress",
42743 "completed",43181 "completed",
42744 "failed",43182 "failed",
43183 "interrupted",
42745]);43184]);
4274643185
42747export type V2TurnStartResponse__CommandExecutionSource =43186export type V2TurnStartResponse__CommandExecutionSource =
packages/effect-codex-app-server/src/schema.test.ts created+73
...@@ -0,0 +1,73 @@
1import { assert, it } from "@effect/vitest";
2import * as Schema from "effect/Schema";
3
4import * as CodexSchema from "./schema.ts";
5
6it("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});