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> = {
145145 },
146146};
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
148175const getGeneratedPaths = Effect.fn("getGeneratedPaths")(function* () {
149176 const path = yield* Path.Path;
150177 const generatedDir = path.join(import.meta.dirname, "..", "src", "_generated");
......@@ -556,10 +583,12 @@ const generateFiles = Effect.fn("generateFiles")(function* () {
556583 );
557584
558585 for (const [definitionName, definitionSchema] of Object.entries(parsed.definitions ?? {})) {
586 const compatibleDefinitionSchema =
587 Codex0150DefinitionSchemas[definitionName] ?? definitionSchema;
559588 aggregateSchemas[localDefinitionNames.get(definitionName)!] = stripNullDefaults(
560589 normalizeNullableTypes(
561590 rewriteExternalRefs(
562 definitionSchema,
591 compatibleDefinitionSchema,
563592 localDefinitionNames,
564593 file.namespace,
565594 exportNameByQualifiedName,
packages/effect-codex-app-server/src/_generated/schema.gen.ts+535-96
......@@ -2616,11 +2616,16 @@ export const ServerNotification__SpendControlLimitSnapshot = Schema.Struct({
26162616 used: Schema.String,
26172617});
26182618
2619export type ServerNotification__SubAgentActivityKind = "started" | "interacted" | "interrupted";
2619export type ServerNotification__SubAgentActivityKind =
2620 | "started"
2621 | "interacted"
2622 | "interrupted"
2623 | "completed";
26202624export const ServerNotification__SubAgentActivityKind = Schema.Literals([
26212625 "started",
26222626 "interacted",
26232627 "interrupted",
2628 "completed",
26242629]);
26252630
26262631export type ServerNotification__TerminalInteractionNotification = {
......@@ -4710,11 +4715,13 @@ export const V2ItemCompletedNotification__ReasoningEffort = Schema.String.annota
47104715export type V2ItemCompletedNotification__SubAgentActivityKind =
47114716 | "started"
47124717 | "interacted"
4713 | "interrupted";
4718 | "interrupted"
4719 | "completed";
47144720export const V2ItemCompletedNotification__SubAgentActivityKind = Schema.Literals([
47154721 "started",
47164722 "interacted",
47174723 "interrupted",
4724 "completed",
47184725]);
47194726
47204727export type V2ItemCompletedNotification__TextElement = {
......@@ -5115,11 +5122,13 @@ export const V2ItemStartedNotification__ReasoningEffort = Schema.String.annotate
51155122export type V2ItemStartedNotification__SubAgentActivityKind =
51165123 | "started"
51175124 | "interacted"
5118 | "interrupted";
5125 | "interrupted"
5126 | "completed";
51195127export const V2ItemStartedNotification__SubAgentActivityKind = Schema.Literals([
51205128 "started",
51215129 "interacted",
51225130 "interrupted",
5131 "completed",
51235132]);
51245133
51255134export type V2ItemStartedNotification__TextElement = {
......@@ -6284,11 +6293,16 @@ export const V2ReviewStartResponse__ReasoningEffort = Schema.String.annotate({
62846293 description: "A non-empty reasoning effort value advertised by the model.",
62856294}).check(Schema.isMinLength(1));
62866295
6287export type V2ReviewStartResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
6296export type V2ReviewStartResponse__SubAgentActivityKind =
6297 | "started"
6298 | "interacted"
6299 | "interrupted"
6300 | "completed";
62886301export const V2ReviewStartResponse__SubAgentActivityKind = Schema.Literals([
62896302 "started",
62906303 "interacted",
62916304 "interrupted",
6305 "completed",
62926306]);
62936307
62946308export type V2ReviewStartResponse__TextElement = {
......@@ -6720,11 +6734,16 @@ export const V2ThreadForkResponse__ReasoningEffort = Schema.String.annotate({
67206734 description: "A non-empty reasoning effort value advertised by the model.",
67216735}).check(Schema.isMinLength(1));
67226736
6723export type V2ThreadForkResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
6737export type V2ThreadForkResponse__SubAgentActivityKind =
6738 | "started"
6739 | "interacted"
6740 | "interrupted"
6741 | "completed";
67246742export const V2ThreadForkResponse__SubAgentActivityKind = Schema.Literals([
67256743 "started",
67266744 "interacted",
67276745 "interrupted",
6746 "completed",
67286747]);
67296748
67306749export type V2ThreadForkResponse__TextElement = {
......@@ -7119,11 +7138,16 @@ export const V2ThreadListResponse__ReasoningEffort = Schema.String.annotate({
71197138 description: "A non-empty reasoning effort value advertised by the model.",
71207139}).check(Schema.isMinLength(1));
71217140
7122export type V2ThreadListResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
7141export type V2ThreadListResponse__SubAgentActivityKind =
7142 | "started"
7143 | "interacted"
7144 | "interrupted"
7145 | "completed";
71237146export const V2ThreadListResponse__SubAgentActivityKind = Schema.Literals([
71247147 "started",
71257148 "interacted",
71267149 "interrupted",
7150 "completed",
71277151]);
71287152
71297153export type V2ThreadListResponse__TextElement = {
......@@ -7463,11 +7487,13 @@ export const V2ThreadMetadataUpdateResponse__ReasoningEffort = Schema.String.ann
74637487export type V2ThreadMetadataUpdateResponse__SubAgentActivityKind =
74647488 | "started"
74657489 | "interacted"
7466 | "interrupted";
7490 | "interrupted"
7491 | "completed";
74677492export const V2ThreadMetadataUpdateResponse__SubAgentActivityKind = Schema.Literals([
74687493 "started",
74697494 "interacted",
74707495 "interrupted",
7496 "completed",
74717497]);
74727498
74737499export type V2ThreadMetadataUpdateResponse__TextElement = {
......@@ -7760,11 +7786,16 @@ export const V2ThreadReadResponse__ReasoningEffort = Schema.String.annotate({
77607786 description: "A non-empty reasoning effort value advertised by the model.",
77617787}).check(Schema.isMinLength(1));
77627788
7763export type V2ThreadReadResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
7789export type V2ThreadReadResponse__SubAgentActivityKind =
7790 | "started"
7791 | "interacted"
7792 | "interrupted"
7793 | "completed";
77647794export const V2ThreadReadResponse__SubAgentActivityKind = Schema.Literals([
77657795 "started",
77667796 "interacted",
77677797 "interrupted",
7798 "completed",
77687799]);
77697800
77707801export type V2ThreadReadResponse__TextElement = {
......@@ -8342,11 +8373,16 @@ export const V2ThreadResumeResponse__ReasoningEffort = Schema.String.annotate({
83428373 description: "A non-empty reasoning effort value advertised by the model.",
83438374}).check(Schema.isMinLength(1));
83448375
8345export type V2ThreadResumeResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
8376export type V2ThreadResumeResponse__SubAgentActivityKind =
8377 | "started"
8378 | "interacted"
8379 | "interrupted"
8380 | "completed";
83468381export const V2ThreadResumeResponse__SubAgentActivityKind = Schema.Literals([
83478382 "started",
83488383 "interacted",
83498384 "interrupted",
8385 "completed",
83508386]);
83518387
83528388export type V2ThreadResumeResponse__TextElement = {
......@@ -8643,11 +8679,13 @@ export const V2ThreadRollbackResponse__ReasoningEffort = Schema.String.annotate(
86438679export type V2ThreadRollbackResponse__SubAgentActivityKind =
86448680 | "started"
86458681 | "interacted"
8646 | "interrupted";
8682 | "interrupted"
8683 | "completed";
86478684export const V2ThreadRollbackResponse__SubAgentActivityKind = Schema.Literals([
86488685 "started",
86498686 "interacted",
86508687 "interrupted",
8688 "completed",
86518689]);
86528690
86538691export type V2ThreadRollbackResponse__TextElement = {
......@@ -9051,11 +9089,13 @@ export const V2ThreadStartedNotification__ReasoningEffort = Schema.String.annota
90519089export type V2ThreadStartedNotification__SubAgentActivityKind =
90529090 | "started"
90539091 | "interacted"
9054 | "interrupted";
9092 | "interrupted"
9093 | "completed";
90559094export const V2ThreadStartedNotification__SubAgentActivityKind = Schema.Literals([
90569095 "started",
90579096 "interacted",
90589097 "interrupted",
9098 "completed",
90599099]);
90609100
90619101export type V2ThreadStartedNotification__TextElement = {
......@@ -9458,11 +9498,16 @@ export const V2ThreadStartResponse__ReasoningEffort = Schema.String.annotate({
94589498 description: "A non-empty reasoning effort value advertised by the model.",
94599499}).check(Schema.isMinLength(1));
94609500
9461export type V2ThreadStartResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
9501export type V2ThreadStartResponse__SubAgentActivityKind =
9502 | "started"
9503 | "interacted"
9504 | "interrupted"
9505 | "completed";
94629506export const V2ThreadStartResponse__SubAgentActivityKind = Schema.Literals([
94639507 "started",
94649508 "interacted",
94659509 "interrupted",
9510 "completed",
94669511]);
94679512
94689513export type V2ThreadStartResponse__TextElement = {
......@@ -9791,11 +9836,13 @@ export const V2ThreadUnarchiveResponse__ReasoningEffort = Schema.String.annotate
97919836export type V2ThreadUnarchiveResponse__SubAgentActivityKind =
97929837 | "started"
97939838 | "interacted"
9794 | "interrupted";
9839 | "interrupted"
9840 | "completed";
97959841export const V2ThreadUnarchiveResponse__SubAgentActivityKind = Schema.Literals([
97969842 "started",
97979843 "interacted",
97989844 "interrupted",
9845 "completed",
97999846]);
98009847
98019848export type V2ThreadUnarchiveResponse__TextElement = {
......@@ -10095,11 +10142,13 @@ export const V2TurnCompletedNotification__ReasoningEffort = Schema.String.annota
1009510142export type V2TurnCompletedNotification__SubAgentActivityKind =
1009610143 | "started"
1009710144 | "interacted"
10098 | "interrupted";
10145 | "interrupted"
10146 | "completed";
1009910147export const V2TurnCompletedNotification__SubAgentActivityKind = Schema.Literals([
1010010148 "started",
1010110149 "interacted",
1010210150 "interrupted",
10151 "completed",
1010310152]);
1010410153
1010510154export type V2TurnCompletedNotification__TextElement = {
......@@ -10385,11 +10434,13 @@ export const V2TurnStartedNotification__ReasoningEffort = Schema.String.annotate
1038510434export type V2TurnStartedNotification__SubAgentActivityKind =
1038610435 | "started"
1038710436 | "interacted"
10388 | "interrupted";
10437 | "interrupted"
10438 | "completed";
1038910439export const V2TurnStartedNotification__SubAgentActivityKind = Schema.Literals([
1039010440 "started",
1039110441 "interacted",
1039210442 "interrupted",
10443 "completed",
1039310444]);
1039410445
1039510446export type V2TurnStartedNotification__TextElement = {
......@@ -10761,11 +10812,16 @@ export const V2TurnStartResponse__ReasoningEffort = Schema.String.annotate({
1076110812 description: "A non-empty reasoning effort value advertised by the model.",
1076210813}).check(Schema.isMinLength(1));
1076310814
10764export type V2TurnStartResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
10815export type V2TurnStartResponse__SubAgentActivityKind =
10816 | "started"
10817 | "interacted"
10818 | "interrupted"
10819 | "completed";
1076510820export const V2TurnStartResponse__SubAgentActivityKind = Schema.Literals([
1076610821 "started",
1076710822 "interacted",
1076810823 "interrupted",
10824 "completed",
1076910825]);
1077010826
1077110827export type V2TurnStartResponse__TextElement = {
......@@ -20357,8 +20413,17 @@ export type ServerNotification__ThreadItem =
2035720413 readonly reasoningEffort?: ServerNotification__ReasoningEffort | null;
2035820414 readonly receiverThreadIds: ReadonlyArray<string>;
2035920415 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";
2036220427 readonly type: "collabAgentToolCall";
2036320428 }
2036420429 | {
......@@ -20580,7 +20645,7 @@ export const ServerNotification__ThreadItem = Schema.Union(
2058020645 senderThreadId: Schema.String.annotate({
2058120646 description: "Thread ID of the agent issuing the collab request.",
2058220647 }),
20583 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
20648 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2058420649 description: "Current status of the collab tool call.",
2058520650 }),
2058620651 tool: Schema.Literals([
......@@ -20589,6 +20654,10 @@ export const ServerNotification__ThreadItem = Schema.Union(
2058920654 "resumeAgent",
2059020655 "wait",
2059120656 "closeAgent",
20657 "sendMessage",
20658 "followupTask",
20659 "interruptAgent",
20660 "listAgents",
2059220661 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2059320662 type: Schema.Literal("collabAgentToolCall").annotate({
2059420663 title: "CollabAgentToolCallThreadItemType",
......@@ -21440,8 +21509,17 @@ export type V2ItemCompletedNotification__ThreadItem =
2144021509 readonly reasoningEffort?: V2ItemCompletedNotification__ReasoningEffort | null;
2144121510 readonly receiverThreadIds: ReadonlyArray<string>;
2144221511 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";
2144521523 readonly type: "collabAgentToolCall";
2144621524 }
2144721525 | {
......@@ -21668,7 +21746,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
2166821746 senderThreadId: Schema.String.annotate({
2166921747 description: "Thread ID of the agent issuing the collab request.",
2167021748 }),
21671 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
21749 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2167221750 description: "Current status of the collab tool call.",
2167321751 }),
2167421752 tool: Schema.Literals([
......@@ -21677,6 +21755,10 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
2167721755 "resumeAgent",
2167821756 "wait",
2167921757 "closeAgent",
21758 "sendMessage",
21759 "followupTask",
21760 "interruptAgent",
21761 "listAgents",
2168021762 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2168121763 type: Schema.Literal("collabAgentToolCall").annotate({
2168221764 title: "CollabAgentToolCallThreadItemType",
......@@ -21891,8 +21973,17 @@ export type V2ItemStartedNotification__ThreadItem =
2189121973 readonly reasoningEffort?: V2ItemStartedNotification__ReasoningEffort | null;
2189221974 readonly receiverThreadIds: ReadonlyArray<string>;
2189321975 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";
2189621987 readonly type: "collabAgentToolCall";
2189721988 }
2189821989 | {
......@@ -22119,7 +22210,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
2211922210 senderThreadId: Schema.String.annotate({
2212022211 description: "Thread ID of the agent issuing the collab request.",
2212122212 }),
22122 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
22213 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2212322214 description: "Current status of the collab tool call.",
2212422215 }),
2212522216 tool: Schema.Literals([
......@@ -22128,6 +22219,10 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
2212822219 "resumeAgent",
2212922220 "wait",
2213022221 "closeAgent",
22222 "sendMessage",
22223 "followupTask",
22224 "interruptAgent",
22225 "listAgents",
2213122226 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2213222227 type: Schema.Literal("collabAgentToolCall").annotate({
2213322228 title: "CollabAgentToolCallThreadItemType",
......@@ -22514,8 +22609,17 @@ export type V2ReviewStartResponse__ThreadItem =
2251422609 readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null;
2251522610 readonly receiverThreadIds: ReadonlyArray<string>;
2251622611 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";
2251922623 readonly type: "collabAgentToolCall";
2252022624 }
2252122625 | {
......@@ -22739,7 +22843,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2273922843 senderThreadId: Schema.String.annotate({
2274022844 description: "Thread ID of the agent issuing the collab request.",
2274122845 }),
22742 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
22846 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2274322847 description: "Current status of the collab tool call.",
2274422848 }),
2274522849 tool: Schema.Literals([
......@@ -22748,6 +22852,10 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2274822852 "resumeAgent",
2274922853 "wait",
2275022854 "closeAgent",
22855 "sendMessage",
22856 "followupTask",
22857 "interruptAgent",
22858 "listAgents",
2275122859 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2275222860 type: Schema.Literal("collabAgentToolCall").annotate({
2275322861 title: "CollabAgentToolCallThreadItemType",
......@@ -22950,8 +23058,17 @@ export type V2ThreadForkResponse__ThreadItem =
2295023058 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;
2295123059 readonly receiverThreadIds: ReadonlyArray<string>;
2295223060 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";
2295523072 readonly type: "collabAgentToolCall";
2295623073 }
2295723074 | {
......@@ -23175,7 +23292,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2317523292 senderThreadId: Schema.String.annotate({
2317623293 description: "Thread ID of the agent issuing the collab request.",
2317723294 }),
23178 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
23295 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2317923296 description: "Current status of the collab tool call.",
2318023297 }),
2318123298 tool: Schema.Literals([
......@@ -23184,6 +23301,10 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2318423301 "resumeAgent",
2318523302 "wait",
2318623303 "closeAgent",
23304 "sendMessage",
23305 "followupTask",
23306 "interruptAgent",
23307 "listAgents",
2318723308 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2318823309 type: Schema.Literal("collabAgentToolCall").annotate({
2318923310 title: "CollabAgentToolCallThreadItemType",
......@@ -23355,8 +23476,17 @@ export type V2ThreadListResponse__ThreadItem =
2335523476 readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null;
2335623477 readonly receiverThreadIds: ReadonlyArray<string>;
2335723478 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";
2336023490 readonly type: "collabAgentToolCall";
2336123491 }
2336223492 | {
......@@ -23580,7 +23710,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2358023710 senderThreadId: Schema.String.annotate({
2358123711 description: "Thread ID of the agent issuing the collab request.",
2358223712 }),
23583 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
23713 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2358423714 description: "Current status of the collab tool call.",
2358523715 }),
2358623716 tool: Schema.Literals([
......@@ -23589,6 +23719,10 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2358923719 "resumeAgent",
2359023720 "wait",
2359123721 "closeAgent",
23722 "sendMessage",
23723 "followupTask",
23724 "interruptAgent",
23725 "listAgents",
2359223726 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2359323727 type: Schema.Literal("collabAgentToolCall").annotate({
2359423728 title: "CollabAgentToolCallThreadItemType",
......@@ -23762,8 +23896,17 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =
2376223896 readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null;
2376323897 readonly receiverThreadIds: ReadonlyArray<string>;
2376423898 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";
2376723910 readonly type: "collabAgentToolCall";
2376823911 }
2376923912 | {
......@@ -23990,7 +24133,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2399024133 senderThreadId: Schema.String.annotate({
2399124134 description: "Thread ID of the agent issuing the collab request.",
2399224135 }),
23993 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
24136 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2399424137 description: "Current status of the collab tool call.",
2399524138 }),
2399624139 tool: Schema.Literals([
......@@ -23999,6 +24142,10 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2399924142 "resumeAgent",
2400024143 "wait",
2400124144 "closeAgent",
24145 "sendMessage",
24146 "followupTask",
24147 "interruptAgent",
24148 "listAgents",
2400224149 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2400324150 type: Schema.Literal("collabAgentToolCall").annotate({
2400424151 title: "CollabAgentToolCallThreadItemType",
......@@ -24170,8 +24317,17 @@ export type V2ThreadReadResponse__ThreadItem =
2417024317 readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null;
2417124318 readonly receiverThreadIds: ReadonlyArray<string>;
2417224319 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";
2417524331 readonly type: "collabAgentToolCall";
2417624332 }
2417724333 | {
......@@ -24395,7 +24551,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2439524551 senderThreadId: Schema.String.annotate({
2439624552 description: "Thread ID of the agent issuing the collab request.",
2439724553 }),
24398 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
24554 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2439924555 description: "Current status of the collab tool call.",
2440024556 }),
2440124557 tool: Schema.Literals([
......@@ -24404,6 +24560,10 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2440424560 "resumeAgent",
2440524561 "wait",
2440624562 "closeAgent",
24563 "sendMessage",
24564 "followupTask",
24565 "interruptAgent",
24566 "listAgents",
2440724567 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2440824568 type: Schema.Literal("collabAgentToolCall").annotate({
2440924569 title: "CollabAgentToolCallThreadItemType",
......@@ -24583,8 +24743,17 @@ export type V2ThreadResumeResponse__ThreadItem =
2458324743 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;
2458424744 readonly receiverThreadIds: ReadonlyArray<string>;
2458524745 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";
2458824757 readonly type: "collabAgentToolCall";
2458924758 }
2459024759 | {
......@@ -24808,7 +24977,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
2480824977 senderThreadId: Schema.String.annotate({
2480924978 description: "Thread ID of the agent issuing the collab request.",
2481024979 }),
24811 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
24980 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2481224981 description: "Current status of the collab tool call.",
2481324982 }),
2481424983 tool: Schema.Literals([
......@@ -24817,6 +24986,10 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
2481724986 "resumeAgent",
2481824987 "wait",
2481924988 "closeAgent",
24989 "sendMessage",
24990 "followupTask",
24991 "interruptAgent",
24992 "listAgents",
2482024993 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2482124994 type: Schema.Literal("collabAgentToolCall").annotate({
2482224995 title: "CollabAgentToolCallThreadItemType",
......@@ -24988,8 +25161,17 @@ export type V2ThreadRollbackResponse__ThreadItem =
2498825161 readonly reasoningEffort?: V2ThreadRollbackResponse__ReasoningEffort | null;
2498925162 readonly receiverThreadIds: ReadonlyArray<string>;
2499025163 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";
2499325175 readonly type: "collabAgentToolCall";
2499425176 }
2499525177 | {
......@@ -25216,7 +25398,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
2521625398 senderThreadId: Schema.String.annotate({
2521725399 description: "Thread ID of the agent issuing the collab request.",
2521825400 }),
25219 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
25401 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2522025402 description: "Current status of the collab tool call.",
2522125403 }),
2522225404 tool: Schema.Literals([
......@@ -25225,6 +25407,10 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
2522525407 "resumeAgent",
2522625408 "wait",
2522725409 "closeAgent",
25410 "sendMessage",
25411 "followupTask",
25412 "interruptAgent",
25413 "listAgents",
2522825414 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2522925415 type: Schema.Literal("collabAgentToolCall").annotate({
2523025416 title: "CollabAgentToolCallThreadItemType",
......@@ -25407,8 +25593,17 @@ export type V2ThreadStartedNotification__ThreadItem =
2540725593 readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null;
2540825594 readonly receiverThreadIds: ReadonlyArray<string>;
2540925595 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";
2541225607 readonly type: "collabAgentToolCall";
2541325608 }
2541425609 | {
......@@ -25635,7 +25830,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2563525830 senderThreadId: Schema.String.annotate({
2563625831 description: "Thread ID of the agent issuing the collab request.",
2563725832 }),
25638 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
25833 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2563925834 description: "Current status of the collab tool call.",
2564025835 }),
2564125836 tool: Schema.Literals([
......@@ -25644,6 +25839,10 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2564425839 "resumeAgent",
2564525840 "wait",
2564625841 "closeAgent",
25842 "sendMessage",
25843 "followupTask",
25844 "interruptAgent",
25845 "listAgents",
2564725846 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2564825847 type: Schema.Literal("collabAgentToolCall").annotate({
2564925848 title: "CollabAgentToolCallThreadItemType",
......@@ -25815,8 +26014,17 @@ export type V2ThreadStartResponse__ThreadItem =
2581526014 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;
2581626015 readonly receiverThreadIds: ReadonlyArray<string>;
2581726016 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";
2582026028 readonly type: "collabAgentToolCall";
2582126029 }
2582226030 | {
......@@ -26040,7 +26248,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2604026248 senderThreadId: Schema.String.annotate({
2604126249 description: "Thread ID of the agent issuing the collab request.",
2604226250 }),
26043 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
26251 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2604426252 description: "Current status of the collab tool call.",
2604526253 }),
2604626254 tool: Schema.Literals([
......@@ -26049,6 +26257,10 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2604926257 "resumeAgent",
2605026258 "wait",
2605126259 "closeAgent",
26260 "sendMessage",
26261 "followupTask",
26262 "interruptAgent",
26263 "listAgents",
2605226264 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2605326265 type: Schema.Literal("collabAgentToolCall").annotate({
2605426266 title: "CollabAgentToolCallThreadItemType",
......@@ -26220,8 +26432,17 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
2622026432 readonly reasoningEffort?: V2ThreadUnarchiveResponse__ReasoningEffort | null;
2622126433 readonly receiverThreadIds: ReadonlyArray<string>;
2622226434 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";
2622526446 readonly type: "collabAgentToolCall";
2622626447 }
2622726448 | {
......@@ -26448,7 +26669,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2644826669 senderThreadId: Schema.String.annotate({
2644926670 description: "Thread ID of the agent issuing the collab request.",
2645026671 }),
26451 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
26672 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2645226673 description: "Current status of the collab tool call.",
2645326674 }),
2645426675 tool: Schema.Literals([
......@@ -26457,6 +26678,10 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2645726678 "resumeAgent",
2645826679 "wait",
2645926680 "closeAgent",
26681 "sendMessage",
26682 "followupTask",
26683 "interruptAgent",
26684 "listAgents",
2646026685 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2646126686 type: Schema.Literal("collabAgentToolCall").annotate({
2646226687 title: "CollabAgentToolCallThreadItemType",
......@@ -26630,8 +26855,17 @@ export type V2TurnCompletedNotification__ThreadItem =
2663026855 readonly reasoningEffort?: V2TurnCompletedNotification__ReasoningEffort | null;
2663126856 readonly receiverThreadIds: ReadonlyArray<string>;
2663226857 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";
2663526869 readonly type: "collabAgentToolCall";
2663626870 }
2663726871 | {
......@@ -26858,7 +27092,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
2685827092 senderThreadId: Schema.String.annotate({
2685927093 description: "Thread ID of the agent issuing the collab request.",
2686027094 }),
26861 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
27095 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2686227096 description: "Current status of the collab tool call.",
2686327097 }),
2686427098 tool: Schema.Literals([
......@@ -26867,6 +27101,10 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
2686727101 "resumeAgent",
2686827102 "wait",
2686927103 "closeAgent",
27104 "sendMessage",
27105 "followupTask",
27106 "interruptAgent",
27107 "listAgents",
2687027108 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2687127109 type: Schema.Literal("collabAgentToolCall").annotate({
2687227110 title: "CollabAgentToolCallThreadItemType",
......@@ -27038,8 +27276,17 @@ export type V2TurnStartedNotification__ThreadItem =
2703827276 readonly reasoningEffort?: V2TurnStartedNotification__ReasoningEffort | null;
2703927277 readonly receiverThreadIds: ReadonlyArray<string>;
2704027278 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";
2704327290 readonly type: "collabAgentToolCall";
2704427291 }
2704527292 | {
......@@ -27266,7 +27513,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
2726627513 senderThreadId: Schema.String.annotate({
2726727514 description: "Thread ID of the agent issuing the collab request.",
2726827515 }),
27269 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
27516 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2727027517 description: "Current status of the collab tool call.",
2727127518 }),
2727227519 tool: Schema.Literals([
......@@ -27275,6 +27522,10 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
2727527522 "resumeAgent",
2727627523 "wait",
2727727524 "closeAgent",
27525 "sendMessage",
27526 "followupTask",
27527 "interruptAgent",
27528 "listAgents",
2727827529 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2727927530 type: Schema.Literal("collabAgentToolCall").annotate({
2728027531 title: "CollabAgentToolCallThreadItemType",
......@@ -27446,8 +27697,17 @@ export type V2TurnStartResponse__ThreadItem =
2744627697 readonly reasoningEffort?: V2TurnStartResponse__ReasoningEffort | null;
2744727698 readonly receiverThreadIds: ReadonlyArray<string>;
2744827699 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";
2745127711 readonly type: "collabAgentToolCall";
2745227712 }
2745327713 | {
......@@ -27669,7 +27929,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2766927929 senderThreadId: Schema.String.annotate({
2767027930 description: "Thread ID of the agent issuing the collab request.",
2767127931 }),
27672 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
27932 status: Schema.Literals(["inProgress", "completed", "failed", "interrupted"]).annotate({
2767327933 description: "Current status of the collab tool call.",
2767427934 }),
2767527935 tool: Schema.Literals([
......@@ -27678,6 +27938,10 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2767827938 "resumeAgent",
2767927939 "wait",
2768027940 "closeAgent",
27941 "sendMessage",
27942 "followupTask",
27943 "interruptAgent",
27944 "listAgents",
2768127945 ]).annotate({ description: "Name of the collab tool that was invoked." }),
2768227946 type: Schema.Literal("collabAgentToolCall").annotate({
2768327947 title: "CollabAgentToolCallThreadItemType",
......@@ -35971,20 +36235,33 @@ export type ServerNotification__CollabAgentTool =
3597136235 | "sendInput"
3597236236 | "resumeAgent"
3597336237 | "wait"
35974 | "closeAgent";
36238 | "closeAgent"
36239 | "sendMessage"
36240 | "followupTask"
36241 | "interruptAgent"
36242 | "listAgents";
3597536243export const ServerNotification__CollabAgentTool = Schema.Literals([
3597636244 "spawnAgent",
3597736245 "sendInput",
3597836246 "resumeAgent",
3597936247 "wait",
3598036248 "closeAgent",
36249 "sendMessage",
36250 "followupTask",
36251 "interruptAgent",
36252 "listAgents",
3598136253]);
3598236254
35983export type ServerNotification__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";
36255export type ServerNotification__CollabAgentToolCallStatus =
36256 | "inProgress"
36257 | "completed"
36258 | "failed"
36259 | "interrupted";
3598436260export const ServerNotification__CollabAgentToolCallStatus = Schema.Literals([
3598536261 "inProgress",
3598636262 "completed",
3598736263 "failed",
36264 "interrupted",
3598836265]);
3598936266
3599036267export type ServerNotification__CommandExecOutputStream = "stdout" | "stderr";
......@@ -38046,23 +38323,33 @@ export type V2ItemCompletedNotification__CollabAgentTool =
3804638323 | "sendInput"
3804738324 | "resumeAgent"
3804838325 | "wait"
38049 | "closeAgent";
38326 | "closeAgent"
38327 | "sendMessage"
38328 | "followupTask"
38329 | "interruptAgent"
38330 | "listAgents";
3805038331export const V2ItemCompletedNotification__CollabAgentTool = Schema.Literals([
3805138332 "spawnAgent",
3805238333 "sendInput",
3805338334 "resumeAgent",
3805438335 "wait",
3805538336 "closeAgent",
38337 "sendMessage",
38338 "followupTask",
38339 "interruptAgent",
38340 "listAgents",
3805638341]);
3805738342
3805838343export type V2ItemCompletedNotification__CollabAgentToolCallStatus =
3805938344 | "inProgress"
3806038345 | "completed"
38061 | "failed";
38346 | "failed"
38347 | "interrupted";
3806238348export const V2ItemCompletedNotification__CollabAgentToolCallStatus = Schema.Literals([
3806338349 "inProgress",
3806438350 "completed",
3806538351 "failed",
38352 "interrupted",
3806638353]);
3806738354
3806838355export type V2ItemCompletedNotification__CommandExecutionSource =
......@@ -38183,23 +38470,33 @@ export type V2ItemStartedNotification__CollabAgentTool =
3818338470 | "sendInput"
3818438471 | "resumeAgent"
3818538472 | "wait"
38186 | "closeAgent";
38473 | "closeAgent"
38474 | "sendMessage"
38475 | "followupTask"
38476 | "interruptAgent"
38477 | "listAgents";
3818738478export const V2ItemStartedNotification__CollabAgentTool = Schema.Literals([
3818838479 "spawnAgent",
3818938480 "sendInput",
3819038481 "resumeAgent",
3819138482 "wait",
3819238483 "closeAgent",
38484 "sendMessage",
38485 "followupTask",
38486 "interruptAgent",
38487 "listAgents",
3819338488]);
3819438489
3819538490export type V2ItemStartedNotification__CollabAgentToolCallStatus =
3819638491 | "inProgress"
3819738492 | "completed"
38198 | "failed";
38493 | "failed"
38494 | "interrupted";
3819938495export const V2ItemStartedNotification__CollabAgentToolCallStatus = Schema.Literals([
3820038496 "inProgress",
3820138497 "completed",
3820238498 "failed",
38499 "interrupted",
3820338500]);
3820438501
3820538502export type V2ItemStartedNotification__CommandExecutionSource =
......@@ -39200,23 +39497,33 @@ export type V2ReviewStartResponse__CollabAgentTool =
3920039497 | "sendInput"
3920139498 | "resumeAgent"
3920239499 | "wait"
39203 | "closeAgent";
39500 | "closeAgent"
39501 | "sendMessage"
39502 | "followupTask"
39503 | "interruptAgent"
39504 | "listAgents";
3920439505export const V2ReviewStartResponse__CollabAgentTool = Schema.Literals([
3920539506 "spawnAgent",
3920639507 "sendInput",
3920739508 "resumeAgent",
3920839509 "wait",
3920939510 "closeAgent",
39511 "sendMessage",
39512 "followupTask",
39513 "interruptAgent",
39514 "listAgents",
3921039515]);
3921139516
3921239517export type V2ReviewStartResponse__CollabAgentToolCallStatus =
3921339518 | "inProgress"
3921439519 | "completed"
39215 | "failed";
39520 | "failed"
39521 | "interrupted";
3921639522export const V2ReviewStartResponse__CollabAgentToolCallStatus = Schema.Literals([
3921739523 "inProgress",
3921839524 "completed",
3921939525 "failed",
39526 "interrupted",
3922039527]);
3922139528
3922239529export type V2ReviewStartResponse__CommandExecutionSource =
......@@ -39598,20 +39905,33 @@ export type V2ThreadForkResponse__CollabAgentTool =
3959839905 | "sendInput"
3959939906 | "resumeAgent"
3960039907 | "wait"
39601 | "closeAgent";
39908 | "closeAgent"
39909 | "sendMessage"
39910 | "followupTask"
39911 | "interruptAgent"
39912 | "listAgents";
3960239913export const V2ThreadForkResponse__CollabAgentTool = Schema.Literals([
3960339914 "spawnAgent",
3960439915 "sendInput",
3960539916 "resumeAgent",
3960639917 "wait",
3960739918 "closeAgent",
39919 "sendMessage",
39920 "followupTask",
39921 "interruptAgent",
39922 "listAgents",
3960839923]);
3960939924
39610export type V2ThreadForkResponse__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";
39925export type V2ThreadForkResponse__CollabAgentToolCallStatus =
39926 | "inProgress"
39927 | "completed"
39928 | "failed"
39929 | "interrupted";
3961139930export const V2ThreadForkResponse__CollabAgentToolCallStatus = Schema.Literals([
3961239931 "inProgress",
3961339932 "completed",
3961439933 "failed",
39934 "interrupted",
3961539935]);
3961639936
3961739937export type V2ThreadForkResponse__CommandExecutionSource =
......@@ -39955,20 +40275,33 @@ export type V2ThreadListResponse__CollabAgentTool =
3995540275 | "sendInput"
3995640276 | "resumeAgent"
3995740277 | "wait"
39958 | "closeAgent";
40278 | "closeAgent"
40279 | "sendMessage"
40280 | "followupTask"
40281 | "interruptAgent"
40282 | "listAgents";
3995940283export const V2ThreadListResponse__CollabAgentTool = Schema.Literals([
3996040284 "spawnAgent",
3996140285 "sendInput",
3996240286 "resumeAgent",
3996340287 "wait",
3996440288 "closeAgent",
40289 "sendMessage",
40290 "followupTask",
40291 "interruptAgent",
40292 "listAgents",
3996540293]);
3996640294
39967export type V2ThreadListResponse__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";
40295export type V2ThreadListResponse__CollabAgentToolCallStatus =
40296 | "inProgress"
40297 | "completed"
40298 | "failed"
40299 | "interrupted";
3996840300export const V2ThreadListResponse__CollabAgentToolCallStatus = Schema.Literals([
3996940301 "inProgress",
3997040302 "completed",
3997140303 "failed",
40304 "interrupted",
3997240305]);
3997340306
3997440307export type V2ThreadListResponse__CommandExecutionSource =
......@@ -40131,23 +40464,33 @@ export type V2ThreadMetadataUpdateResponse__CollabAgentTool =
4013140464 | "sendInput"
4013240465 | "resumeAgent"
4013340466 | "wait"
40134 | "closeAgent";
40467 | "closeAgent"
40468 | "sendMessage"
40469 | "followupTask"
40470 | "interruptAgent"
40471 | "listAgents";
4013540472export const V2ThreadMetadataUpdateResponse__CollabAgentTool = Schema.Literals([
4013640473 "spawnAgent",
4013740474 "sendInput",
4013840475 "resumeAgent",
4013940476 "wait",
4014040477 "closeAgent",
40478 "sendMessage",
40479 "followupTask",
40480 "interruptAgent",
40481 "listAgents",
4014140482]);
4014240483
4014340484export type V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus =
4014440485 | "inProgress"
4014540486 | "completed"
40146 | "failed";
40487 | "failed"
40488 | "interrupted";
4014740489export const V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus = Schema.Literals([
4014840490 "inProgress",
4014940491 "completed",
4015040492 "failed",
40493 "interrupted",
4015140494]);
4015240495
4015340496export type V2ThreadMetadataUpdateResponse__CommandExecutionSource =
......@@ -40265,20 +40608,33 @@ export type V2ThreadReadResponse__CollabAgentTool =
4026540608 | "sendInput"
4026640609 | "resumeAgent"
4026740610 | "wait"
40268 | "closeAgent";
40611 | "closeAgent"
40612 | "sendMessage"
40613 | "followupTask"
40614 | "interruptAgent"
40615 | "listAgents";
4026940616export const V2ThreadReadResponse__CollabAgentTool = Schema.Literals([
4027040617 "spawnAgent",
4027140618 "sendInput",
4027240619 "resumeAgent",
4027340620 "wait",
4027440621 "closeAgent",
40622 "sendMessage",
40623 "followupTask",
40624 "interruptAgent",
40625 "listAgents",
4027540626]);
4027640627
40277export type V2ThreadReadResponse__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";
40628export type V2ThreadReadResponse__CollabAgentToolCallStatus =
40629 | "inProgress"
40630 | "completed"
40631 | "failed"
40632 | "interrupted";
4027840633export const V2ThreadReadResponse__CollabAgentToolCallStatus = Schema.Literals([
4027940634 "inProgress",
4028040635 "completed",
4028140636 "failed",
40637 "interrupted",
4028240638]);
4028340639
4028440640export type V2ThreadReadResponse__CommandExecutionSource =
......@@ -40964,23 +41320,33 @@ export type V2ThreadResumeResponse__CollabAgentTool =
4096441320 | "sendInput"
4096541321 | "resumeAgent"
4096641322 | "wait"
40967 | "closeAgent";
41323 | "closeAgent"
41324 | "sendMessage"
41325 | "followupTask"
41326 | "interruptAgent"
41327 | "listAgents";
4096841328export const V2ThreadResumeResponse__CollabAgentTool = Schema.Literals([
4096941329 "spawnAgent",
4097041330 "sendInput",
4097141331 "resumeAgent",
4097241332 "wait",
4097341333 "closeAgent",
41334 "sendMessage",
41335 "followupTask",
41336 "interruptAgent",
41337 "listAgents",
4097441338]);
4097541339
4097641340export type V2ThreadResumeResponse__CollabAgentToolCallStatus =
4097741341 | "inProgress"
4097841342 | "completed"
40979 | "failed";
41343 | "failed"
41344 | "interrupted";
4098041345export const V2ThreadResumeResponse__CollabAgentToolCallStatus = Schema.Literals([
4098141346 "inProgress",
4098241347 "completed",
4098341348 "failed",
41349 "interrupted",
4098441350]);
4098541351
4098641352export type V2ThreadResumeResponse__CommandExecutionSource =
......@@ -41334,23 +41700,33 @@ export type V2ThreadRollbackResponse__CollabAgentTool =
4133441700 | "sendInput"
4133541701 | "resumeAgent"
4133641702 | "wait"
41337 | "closeAgent";
41703 | "closeAgent"
41704 | "sendMessage"
41705 | "followupTask"
41706 | "interruptAgent"
41707 | "listAgents";
4133841708export const V2ThreadRollbackResponse__CollabAgentTool = Schema.Literals([
4133941709 "spawnAgent",
4134041710 "sendInput",
4134141711 "resumeAgent",
4134241712 "wait",
4134341713 "closeAgent",
41714 "sendMessage",
41715 "followupTask",
41716 "interruptAgent",
41717 "listAgents",
4134441718]);
4134541719
4134641720export type V2ThreadRollbackResponse__CollabAgentToolCallStatus =
4134741721 | "inProgress"
4134841722 | "completed"
41349 | "failed";
41723 | "failed"
41724 | "interrupted";
4135041725export const V2ThreadRollbackResponse__CollabAgentToolCallStatus = Schema.Literals([
4135141726 "inProgress",
4135241727 "completed",
4135341728 "failed",
41729 "interrupted",
4135441730]);
4135541731
4135641732export type V2ThreadRollbackResponse__CommandExecutionSource =
......@@ -41673,23 +42049,33 @@ export type V2ThreadStartedNotification__CollabAgentTool =
4167342049 | "sendInput"
4167442050 | "resumeAgent"
4167542051 | "wait"
41676 | "closeAgent";
42052 | "closeAgent"
42053 | "sendMessage"
42054 | "followupTask"
42055 | "interruptAgent"
42056 | "listAgents";
4167742057export const V2ThreadStartedNotification__CollabAgentTool = Schema.Literals([
4167842058 "spawnAgent",
4167942059 "sendInput",
4168042060 "resumeAgent",
4168142061 "wait",
4168242062 "closeAgent",
42063 "sendMessage",
42064 "followupTask",
42065 "interruptAgent",
42066 "listAgents",
4168342067]);
4168442068
4168542069export type V2ThreadStartedNotification__CollabAgentToolCallStatus =
4168642070 | "inProgress"
4168742071 | "completed"
41688 | "failed";
42072 | "failed"
42073 | "interrupted";
4168942074export const V2ThreadStartedNotification__CollabAgentToolCallStatus = Schema.Literals([
4169042075 "inProgress",
4169142076 "completed",
4169242077 "failed",
42078 "interrupted",
4169342079]);
4169442080
4169542081export type V2ThreadStartedNotification__CommandExecutionSource =
......@@ -42075,23 +42461,33 @@ export type V2ThreadStartResponse__CollabAgentTool =
4207542461 | "sendInput"
4207642462 | "resumeAgent"
4207742463 | "wait"
42078 | "closeAgent";
42464 | "closeAgent"
42465 | "sendMessage"
42466 | "followupTask"
42467 | "interruptAgent"
42468 | "listAgents";
4207942469export const V2ThreadStartResponse__CollabAgentTool = Schema.Literals([
4208042470 "spawnAgent",
4208142471 "sendInput",
4208242472 "resumeAgent",
4208342473 "wait",
4208442474 "closeAgent",
42475 "sendMessage",
42476 "followupTask",
42477 "interruptAgent",
42478 "listAgents",
4208542479]);
4208642480
4208742481export type V2ThreadStartResponse__CollabAgentToolCallStatus =
4208842482 | "inProgress"
4208942483 | "completed"
42090 | "failed";
42484 | "failed"
42485 | "interrupted";
4209142486export const V2ThreadStartResponse__CollabAgentToolCallStatus = Schema.Literals([
4209242487 "inProgress",
4209342488 "completed",
4209442489 "failed",
42490 "interrupted",
4209542491]);
4209642492
4209742493export type V2ThreadStartResponse__CommandExecutionSource =
......@@ -42278,23 +42674,33 @@ export type V2ThreadUnarchiveResponse__CollabAgentTool =
4227842674 | "sendInput"
4227942675 | "resumeAgent"
4228042676 | "wait"
42281 | "closeAgent";
42677 | "closeAgent"
42678 | "sendMessage"
42679 | "followupTask"
42680 | "interruptAgent"
42681 | "listAgents";
4228242682export const V2ThreadUnarchiveResponse__CollabAgentTool = Schema.Literals([
4228342683 "spawnAgent",
4228442684 "sendInput",
4228542685 "resumeAgent",
4228642686 "wait",
4228742687 "closeAgent",
42688 "sendMessage",
42689 "followupTask",
42690 "interruptAgent",
42691 "listAgents",
4228842692]);
4228942693
4229042694export type V2ThreadUnarchiveResponse__CollabAgentToolCallStatus =
4229142695 | "inProgress"
4229242696 | "completed"
42293 | "failed";
42697 | "failed"
42698 | "interrupted";
4229442699export const V2ThreadUnarchiveResponse__CollabAgentToolCallStatus = Schema.Literals([
4229542700 "inProgress",
4229642701 "completed",
4229742702 "failed",
42703 "interrupted",
4229842704]);
4229942705
4230042706export type V2ThreadUnarchiveResponse__CommandExecutionSource =
......@@ -42412,23 +42818,33 @@ export type V2TurnCompletedNotification__CollabAgentTool =
4241242818 | "sendInput"
4241342819 | "resumeAgent"
4241442820 | "wait"
42415 | "closeAgent";
42821 | "closeAgent"
42822 | "sendMessage"
42823 | "followupTask"
42824 | "interruptAgent"
42825 | "listAgents";
4241642826export const V2TurnCompletedNotification__CollabAgentTool = Schema.Literals([
4241742827 "spawnAgent",
4241842828 "sendInput",
4241942829 "resumeAgent",
4242042830 "wait",
4242142831 "closeAgent",
42832 "sendMessage",
42833 "followupTask",
42834 "interruptAgent",
42835 "listAgents",
4242242836]);
4242342837
4242442838export type V2TurnCompletedNotification__CollabAgentToolCallStatus =
4242542839 | "inProgress"
4242642840 | "completed"
42427 | "failed";
42841 | "failed"
42842 | "interrupted";
4242842843export const V2TurnCompletedNotification__CollabAgentToolCallStatus = Schema.Literals([
4242942844 "inProgress",
4243042845 "completed",
4243142846 "failed",
42847 "interrupted",
4243242848]);
4243342849
4243442850export type V2TurnCompletedNotification__CommandExecutionSource =
......@@ -42524,23 +42940,33 @@ export type V2TurnStartedNotification__CollabAgentTool =
4252442940 | "sendInput"
4252542941 | "resumeAgent"
4252642942 | "wait"
42527 | "closeAgent";
42943 | "closeAgent"
42944 | "sendMessage"
42945 | "followupTask"
42946 | "interruptAgent"
42947 | "listAgents";
4252842948export const V2TurnStartedNotification__CollabAgentTool = Schema.Literals([
4252942949 "spawnAgent",
4253042950 "sendInput",
4253142951 "resumeAgent",
4253242952 "wait",
4253342953 "closeAgent",
42954 "sendMessage",
42955 "followupTask",
42956 "interruptAgent",
42957 "listAgents",
4253442958]);
4253542959
4253642960export type V2TurnStartedNotification__CollabAgentToolCallStatus =
4253742961 | "inProgress"
4253842962 | "completed"
42539 | "failed";
42963 | "failed"
42964 | "interrupted";
4254042965export const V2TurnStartedNotification__CollabAgentToolCallStatus = Schema.Literals([
4254142966 "inProgress",
4254242967 "completed",
4254342968 "failed",
42969 "interrupted",
4254442970]);
4254542971
4254642972export type V2TurnStartedNotification__CommandExecutionSource =
......@@ -42728,20 +43154,33 @@ export type V2TurnStartResponse__CollabAgentTool =
4272843154 | "sendInput"
4272943155 | "resumeAgent"
4273043156 | "wait"
42731 | "closeAgent";
43157 | "closeAgent"
43158 | "sendMessage"
43159 | "followupTask"
43160 | "interruptAgent"
43161 | "listAgents";
4273243162export const V2TurnStartResponse__CollabAgentTool = Schema.Literals([
4273343163 "spawnAgent",
4273443164 "sendInput",
4273543165 "resumeAgent",
4273643166 "wait",
4273743167 "closeAgent",
43168 "sendMessage",
43169 "followupTask",
43170 "interruptAgent",
43171 "listAgents",
4273843172]);
4273943173
42740export type V2TurnStartResponse__CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";
43174export type V2TurnStartResponse__CollabAgentToolCallStatus =
43175 | "inProgress"
43176 | "completed"
43177 | "failed"
43178 | "interrupted";
4274143179export const V2TurnStartResponse__CollabAgentToolCallStatus = Schema.Literals([
4274243180 "inProgress",
4274343181 "completed",
4274443182 "failed",
43183 "interrupted",
4274543184]);
4274643185
4274743186export 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});