@wjarka/cezarion 0.14.8 → 0.14.9-dev.842
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -2
- package/dist/application-update/bin-recovery.d.ts +5 -0
- package/dist/application-update/bin-recovery.js +96 -0
- package/dist/application-update/bin-recovery.js.map +1 -0
- package/dist/application-update/discovery.d.ts +22 -0
- package/dist/application-update/discovery.js +91 -0
- package/dist/application-update/discovery.js.map +1 -0
- package/dist/application-update/helper.d.ts +57 -0
- package/dist/application-update/helper.js +374 -0
- package/dist/application-update/helper.js.map +1 -0
- package/dist/application-update/launcher.d.ts +8 -0
- package/dist/application-update/launcher.js +53 -0
- package/dist/application-update/launcher.js.map +1 -0
- package/dist/application-update/lock.d.ts +4 -0
- package/dist/application-update/lock.js +70 -0
- package/dist/application-update/lock.js.map +1 -0
- package/dist/application-update/npm-process.d.ts +17 -0
- package/dist/application-update/npm-process.js +133 -0
- package/dist/application-update/npm-process.js.map +1 -0
- package/dist/application-update/service.d.ts +69 -0
- package/dist/application-update/service.js +456 -0
- package/dist/application-update/service.js.map +1 -0
- package/dist/artifacts/cli.d.ts +1 -0
- package/dist/artifacts/cli.js +32 -0
- package/dist/artifacts/cli.js.map +1 -0
- package/dist/artifacts/lifecycle.d.ts +4 -0
- package/dist/artifacts/lifecycle.js +42 -0
- package/dist/artifacts/lifecycle.js.map +1 -0
- package/dist/artifacts/resolve.d.ts +18 -0
- package/dist/artifacts/resolve.js +102 -0
- package/dist/artifacts/resolve.js.map +1 -0
- package/dist/artifacts/store.d.ts +8 -0
- package/dist/artifacts/store.js +323 -0
- package/dist/artifacts/store.js.map +1 -0
- package/dist/ci-wait/mcp.d.ts +3 -0
- package/dist/ci-wait/mcp.js +14 -3
- package/dist/ci-wait/mcp.js.map +1 -1
- package/dist/contract/application-update.d.ts +32 -0
- package/dist/contract/artifacts.d.ts +83 -0
- package/dist/contract/ask-schema.d.ts +32 -0
- package/dist/contract/ask.d.ts +2 -32
- package/dist/contract/conversations.d.ts +165 -0
- package/dist/contract/delegation.d.ts +39 -0
- package/dist/contract/events.d.ts +49 -0
- package/dist/contract/health.d.ts +12 -0
- package/dist/contract/index.d.ts +2 -0
- package/dist/contract/index.js +1374 -1247
- package/dist/contract/runs.d.ts +143 -0
- package/dist/contract/skills.d.ts +28 -0
- package/dist/core/agent-runner.d.ts +33 -4
- package/dist/core/agent-runner.js +5 -0
- package/dist/core/agent-runner.js.map +1 -1
- package/dist/core/claude-cli-runner.d.ts +6 -12
- package/dist/core/claude-cli-runner.js +89 -19
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/codex-app-server-runner.d.ts +2 -1
- package/dist/core/codex-app-server-runner.js +327 -92
- package/dist/core/codex-app-server-runner.js.map +1 -1
- package/dist/core/codex-app-server-transport.d.ts +13 -1
- package/dist/core/codex-app-server-transport.js +58 -17
- package/dist/core/codex-app-server-transport.js.map +1 -1
- package/dist/core/cursor-acp-runner.d.ts +4 -1
- package/dist/core/cursor-acp-runner.js +3 -0
- package/dist/core/cursor-acp-runner.js.map +1 -1
- package/dist/core/cursor-provider-error.js +6 -1
- package/dist/core/cursor-provider-error.js.map +1 -1
- package/dist/core/input-submissions.d.ts +14 -0
- package/dist/core/input-submissions.js +26 -0
- package/dist/core/input-submissions.js.map +1 -0
- package/dist/core/opencode-server-runner.d.ts +4 -1
- package/dist/core/opencode-server-runner.js +144 -21
- package/dist/core/opencode-server-runner.js.map +1 -1
- package/dist/core/pi-runner.d.ts +2 -1
- package/dist/core/pi-runner.js +72 -7
- package/dist/core/pi-runner.js.map +1 -1
- package/dist/delegation/cli.js +102 -6
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/conversations.js +13 -5
- package/dist/delegation/conversations.js.map +1 -1
- package/dist/delegation/input.d.ts +2 -1
- package/dist/delegation/input.js +6 -1
- package/dist/delegation/input.js.map +1 -1
- package/dist/delegation/provision.js +5 -3
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/questions.d.ts +19 -0
- package/dist/delegation/questions.js +45 -0
- package/dist/delegation/questions.js.map +1 -0
- package/dist/delegation/results.d.ts +1 -1
- package/dist/delegation/results.js +23 -13
- package/dist/delegation/results.js.map +1 -1
- package/dist/delegation/routes.d.ts +142 -15
- package/dist/delegation/routes.js +4 -1
- package/dist/delegation/routes.js.map +1 -1
- package/dist/delegation/service.d.ts +9 -5
- package/dist/delegation/service.js +106 -7
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +188 -61
- package/dist/index.js +72 -26
- package/dist/index.js.map +1 -1
- package/dist/open-url.d.ts +2 -0
- package/dist/open-url.js +20 -0
- package/dist/open-url.js.map +1 -0
- package/dist/release/snapshot.d.ts +3 -3
- package/dist/release/snapshot.js +6 -6
- package/dist/release/snapshot.js.map +1 -1
- package/dist/runs/client-request.d.ts +11 -0
- package/dist/runs/client-request.js +26 -0
- package/dist/runs/client-request.js.map +1 -0
- package/dist/runs/delegation-state.d.ts +17 -0
- package/dist/runs/event-history.js +6 -0
- package/dist/runs/event-history.js.map +1 -1
- package/dist/runs/store.d.ts +78 -6
- package/dist/runs/store.js +163 -1
- package/dist/runs/store.js.map +1 -1
- package/dist/server/server.d.ts +3761 -1648
- package/dist/server/server.js +170 -4
- package/dist/server/server.js.map +1 -1
- package/dist/task-cli/cli.d.ts +38 -0
- package/dist/task-cli/cli.js +463 -0
- package/dist/task-cli/cli.js.map +1 -0
- package/dist/task-cli/discovery.d.ts +22 -0
- package/dist/task-cli/discovery.js +95 -0
- package/dist/task-cli/discovery.js.map +1 -0
- package/dist/task-cli/http.d.ts +43 -0
- package/dist/task-cli/http.js +101 -0
- package/dist/task-cli/http.js.map +1 -0
- package/dist/task-cli/projections.d.ts +40 -0
- package/dist/task-cli/projections.js +45 -0
- package/dist/task-cli/projections.js.map +1 -0
- package/dist/task-cli/watch.d.ts +78 -0
- package/dist/task-cli/watch.js +336 -0
- package/dist/task-cli/watch.js.map +1 -0
- package/dist/workflows/run.d.ts +93 -0
- package/dist/workflows/run.js +816 -81
- package/dist/workflows/run.js.map +1 -1
- package/dist/workspace/projects-cli.js +1 -1
- package/package.json +3 -3
- package/scripts/mock-claude.mjs +38 -2
- package/scripts/mock-codex-app-server.mjs +98 -1
- package/scripts/mock-cursor-acp.mjs +8 -0
- package/scripts/mock-opencode-serve.mjs +69 -2
- package/scripts/mock-pi-rpc.mjs +63 -2
- package/web/dist/assets/agent-accounts-JPfZPgKn.js +1 -0
- package/web/dist/assets/centered-state-HwCqQkH3.js +43 -0
- package/web/dist/assets/collapsible-CTymFdL7.js +1 -0
- package/web/dist/assets/commit-list-BZpYGQl2.js +1 -0
- package/web/dist/assets/compare-variants-9VkybaQ7.js +1 -0
- package/web/dist/assets/{diff-tRE59UNb2.js → diff-CZcD4D1r2.js} +2 -2
- package/web/dist/assets/diff-controls-CpcHG3Mm.js +1 -0
- package/web/dist/assets/{diff-stat-Cgnl_hYF.js → diff-stat-Cn7rzy1H.js} +1 -1
- package/web/dist/assets/{diff-view-DN1ort7Q.js → diff-view-C46nHiP2.js} +2 -2
- package/web/dist/assets/dropdown-menu-_YAzCaoQ.js +1 -0
- package/web/dist/assets/git-toolbar-BvKDz6uS.js +1 -0
- package/web/dist/assets/github-CgjJCGrD.js +1 -0
- package/web/dist/assets/{image-preview-C2JGcBlC.js → image-preview-B618kDBH.js} +1 -1
- package/web/dist/assets/index-BJtve0Pm.js +7 -0
- package/web/dist/assets/index-D0WAgmTQ.css +1 -0
- package/web/dist/assets/markdown-CFWZnvMh.js +2 -0
- package/web/dist/assets/pill-QfwkuR50.js +1 -0
- package/web/dist/assets/project-router-CkAA39N5.js +1 -0
- package/web/dist/assets/prompt-templates-Cfna_S0T.js +15 -0
- package/web/dist/assets/repo-git-DgzgJ0cP.js +1 -0
- package/web/dist/assets/{run-diff-CyG0Nciv.js → run-diff-YbCEQn5I.js} +2 -2
- package/web/dist/assets/run-header-DMgIbr1d.js +1 -0
- package/web/dist/assets/skills-BW79kUTd.js +1 -0
- package/web/dist/assets/{tab-link-BWNp3mLY.js → tab-link-MIHvczEm.js} +1 -1
- package/web/dist/assets/task-changes-C96ekt94.js +1 -0
- package/web/dist/assets/task-commits-DBfcMZyG.js +1 -0
- package/web/dist/assets/task-files-BKpH8dKQ.js +2 -0
- package/web/dist/assets/task-thread-Bw_nQuTx.css +1 -0
- package/web/dist/assets/task-thread-Dnq7Ek6W.js +9 -0
- package/web/dist/assets/textarea-D2vAVgYW.js +1 -0
- package/web/dist/assets/thread-loading-NW8Mthco.js +1 -0
- package/web/dist/assets/token-metrics-D188e6_0.js +1 -0
- package/web/dist/assets/utils-DKheTxGD.js +64 -0
- package/web/dist/assets/workflows-BFY1hgp3.js +11 -0
- package/web/dist/assets/{zoomable-image-Z3JDnm0b.js → zoomable-image-YW3Qdrr_.js} +1 -1
- package/web/dist/index.html +14 -14
- package/web/dist/assets/agent-accounts-BZm_2WAv.js +0 -1
- package/web/dist/assets/alert-dialog-B422RI-k.js +0 -43
- package/web/dist/assets/collapsible-Cy_Fmkrd.js +0 -1
- package/web/dist/assets/commit-list-Dcnk7TnI.js +0 -1
- package/web/dist/assets/compare-variants-Ciqwvd_f.js +0 -1
- package/web/dist/assets/diff-controls-BGrXGi7O.js +0 -1
- package/web/dist/assets/dropdown-menu-dwDGT8MM.js +0 -1
- package/web/dist/assets/git-toolbar-UiHnGvE0.js +0 -1
- package/web/dist/assets/github-D-MrkbJ7.js +0 -1
- package/web/dist/assets/ibm-plex-mono-regular-BF3vfe7_.ttf +0 -0
- package/web/dist/assets/index-BszfYvBq.js +0 -7
- package/web/dist/assets/index-CWh4pKP3.css +0 -1
- package/web/dist/assets/markdown-C_IcKVQd.js +0 -2
- package/web/dist/assets/pill-BsbO6G7y.js +0 -1
- package/web/dist/assets/project-router-DbLkll25.js +0 -1
- package/web/dist/assets/prompt-templates-BlTGJB5W.js +0 -15
- package/web/dist/assets/repo-git-Bm3s6Why.js +0 -1
- package/web/dist/assets/run-header-IFyIGCey.js +0 -1
- package/web/dist/assets/skills-C-C4DVFY.js +0 -1
- package/web/dist/assets/task-changes-D2PHtWUW.js +0 -1
- package/web/dist/assets/task-commits-N5u9U0_R.js +0 -1
- package/web/dist/assets/task-files-BS7c7CFm.js +0 -2
- package/web/dist/assets/task-thread-BQFdz1dJ.css +0 -1
- package/web/dist/assets/task-thread-DGM2dZV-.js +0 -9
- package/web/dist/assets/textarea-FjaU370i.js +0 -1
- package/web/dist/assets/thread-loading-77sJ8Yu_.js +0 -1
- package/web/dist/assets/token-metrics-Clxh03bE.js +0 -1
- package/web/dist/assets/utils-PYYcpCFZ.js +0 -64
- package/web/dist/assets/workflows-Czl0ZfXH.js +0 -11
package/dist/contract/runs.d.ts
CHANGED
|
@@ -190,6 +190,18 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
190
190
|
}>;
|
|
191
191
|
resumed: z.ZodOptional<z.ZodLiteral<true>>;
|
|
192
192
|
instruction: z.ZodOptional<z.ZodString>;
|
|
193
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
194
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
195
|
+
id: z.ZodOptional<z.ZodString>;
|
|
196
|
+
header: z.ZodString;
|
|
197
|
+
question: z.ZodString;
|
|
198
|
+
options: z.ZodArray<z.ZodObject<{
|
|
199
|
+
label: z.ZodString;
|
|
200
|
+
description: z.ZodOptional<z.ZodString>;
|
|
201
|
+
}, z.core.$strict>>;
|
|
202
|
+
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
+
}, z.core.$strict>>;
|
|
204
|
+
}, z.core.$strict>>;
|
|
193
205
|
}, z.core.$strict>>;
|
|
194
206
|
outcomes: z.ZodArray<z.ZodObject<{
|
|
195
207
|
requestId: z.ZodUUID;
|
|
@@ -198,6 +210,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
198
210
|
"completed-without-reply": "completed-without-reply";
|
|
199
211
|
destroyed: "destroyed";
|
|
200
212
|
failed: "failed";
|
|
213
|
+
"human-fallback": "human-fallback";
|
|
201
214
|
replied: "replied";
|
|
202
215
|
"sender-closed": "sender-closed";
|
|
203
216
|
"timed-out": "timed-out";
|
|
@@ -240,6 +253,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
240
253
|
"completed-without-reply": "completed-without-reply";
|
|
241
254
|
destroyed: "destroyed";
|
|
242
255
|
failed: "failed";
|
|
256
|
+
"human-fallback": "human-fallback";
|
|
243
257
|
replied: "replied";
|
|
244
258
|
"sender-closed": "sender-closed";
|
|
245
259
|
"timed-out": "timed-out";
|
|
@@ -293,6 +307,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
293
307
|
"completed-without-reply": "completed-without-reply";
|
|
294
308
|
destroyed: "destroyed";
|
|
295
309
|
failed: "failed";
|
|
310
|
+
"human-fallback": "human-fallback";
|
|
296
311
|
replied: "replied";
|
|
297
312
|
"sender-closed": "sender-closed";
|
|
298
313
|
"timed-out": "timed-out";
|
|
@@ -381,6 +396,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
381
396
|
"completed-without-reply": "completed-without-reply";
|
|
382
397
|
destroyed: "destroyed";
|
|
383
398
|
failed: "failed";
|
|
399
|
+
"human-fallback": "human-fallback";
|
|
384
400
|
replied: "replied";
|
|
385
401
|
"sender-closed": "sender-closed";
|
|
386
402
|
"timed-out": "timed-out";
|
|
@@ -434,6 +450,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
434
450
|
"completed-without-reply": "completed-without-reply";
|
|
435
451
|
destroyed: "destroyed";
|
|
436
452
|
failed: "failed";
|
|
453
|
+
"human-fallback": "human-fallback";
|
|
437
454
|
replied: "replied";
|
|
438
455
|
"sender-closed": "sender-closed";
|
|
439
456
|
"timed-out": "timed-out";
|
|
@@ -551,6 +568,15 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
551
568
|
text: z.ZodString;
|
|
552
569
|
createdAt: z.ZodISODateTime;
|
|
553
570
|
deliveredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
571
|
+
consumedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
572
|
+
awaitingRead: z.ZodOptional<z.ZodLiteral<true>>;
|
|
573
|
+
inboxClaim: z.ZodOptional<z.ZodObject<{
|
|
574
|
+
receiptId: z.ZodUUID;
|
|
575
|
+
generation: z.ZodUUID;
|
|
576
|
+
expiresAt: z.ZodISODateTime;
|
|
577
|
+
acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
578
|
+
memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
579
|
+
}, z.core.$strict>>;
|
|
554
580
|
}, z.core.$strict>>>;
|
|
555
581
|
ciWait: z.ZodOptional<z.ZodObject<{
|
|
556
582
|
prUrl: z.ZodString;
|
|
@@ -711,6 +737,8 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
711
737
|
worktreeReclaimedAt: z.ZodOptional<z.ZodString>;
|
|
712
738
|
groupId: z.ZodOptional<z.ZodString>;
|
|
713
739
|
variant: z.ZodOptional<z.ZodString>;
|
|
740
|
+
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
741
|
+
clientRequestHash: z.ZodOptional<z.ZodString>;
|
|
714
742
|
peakRssBytes: z.ZodOptional<z.ZodNumber>;
|
|
715
743
|
peakProcCount: z.ZodOptional<z.ZodNumber>;
|
|
716
744
|
archived: z.ZodBoolean;
|
|
@@ -859,6 +887,18 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
859
887
|
}>;
|
|
860
888
|
resumed: z.ZodOptional<z.ZodLiteral<true>>;
|
|
861
889
|
instruction: z.ZodOptional<z.ZodString>;
|
|
890
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
891
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
892
|
+
id: z.ZodOptional<z.ZodString>;
|
|
893
|
+
header: z.ZodString;
|
|
894
|
+
question: z.ZodString;
|
|
895
|
+
options: z.ZodArray<z.ZodObject<{
|
|
896
|
+
label: z.ZodString;
|
|
897
|
+
description: z.ZodOptional<z.ZodString>;
|
|
898
|
+
}, z.core.$strict>>;
|
|
899
|
+
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
900
|
+
}, z.core.$strict>>;
|
|
901
|
+
}, z.core.$strict>>;
|
|
862
902
|
}, z.core.$strict>>;
|
|
863
903
|
outcomes: z.ZodArray<z.ZodObject<{
|
|
864
904
|
requestId: z.ZodUUID;
|
|
@@ -867,6 +907,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
867
907
|
"completed-without-reply": "completed-without-reply";
|
|
868
908
|
destroyed: "destroyed";
|
|
869
909
|
failed: "failed";
|
|
910
|
+
"human-fallback": "human-fallback";
|
|
870
911
|
replied: "replied";
|
|
871
912
|
"sender-closed": "sender-closed";
|
|
872
913
|
"timed-out": "timed-out";
|
|
@@ -909,6 +950,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
909
950
|
"completed-without-reply": "completed-without-reply";
|
|
910
951
|
destroyed: "destroyed";
|
|
911
952
|
failed: "failed";
|
|
953
|
+
"human-fallback": "human-fallback";
|
|
912
954
|
replied: "replied";
|
|
913
955
|
"sender-closed": "sender-closed";
|
|
914
956
|
"timed-out": "timed-out";
|
|
@@ -962,6 +1004,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
962
1004
|
"completed-without-reply": "completed-without-reply";
|
|
963
1005
|
destroyed: "destroyed";
|
|
964
1006
|
failed: "failed";
|
|
1007
|
+
"human-fallback": "human-fallback";
|
|
965
1008
|
replied: "replied";
|
|
966
1009
|
"sender-closed": "sender-closed";
|
|
967
1010
|
"timed-out": "timed-out";
|
|
@@ -1050,6 +1093,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1050
1093
|
"completed-without-reply": "completed-without-reply";
|
|
1051
1094
|
destroyed: "destroyed";
|
|
1052
1095
|
failed: "failed";
|
|
1096
|
+
"human-fallback": "human-fallback";
|
|
1053
1097
|
replied: "replied";
|
|
1054
1098
|
"sender-closed": "sender-closed";
|
|
1055
1099
|
"timed-out": "timed-out";
|
|
@@ -1103,6 +1147,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1103
1147
|
"completed-without-reply": "completed-without-reply";
|
|
1104
1148
|
destroyed: "destroyed";
|
|
1105
1149
|
failed: "failed";
|
|
1150
|
+
"human-fallback": "human-fallback";
|
|
1106
1151
|
replied: "replied";
|
|
1107
1152
|
"sender-closed": "sender-closed";
|
|
1108
1153
|
"timed-out": "timed-out";
|
|
@@ -1220,6 +1265,15 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1220
1265
|
text: z.ZodString;
|
|
1221
1266
|
createdAt: z.ZodISODateTime;
|
|
1222
1267
|
deliveredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1268
|
+
consumedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1269
|
+
awaitingRead: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1270
|
+
inboxClaim: z.ZodOptional<z.ZodObject<{
|
|
1271
|
+
receiptId: z.ZodUUID;
|
|
1272
|
+
generation: z.ZodUUID;
|
|
1273
|
+
expiresAt: z.ZodISODateTime;
|
|
1274
|
+
acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1275
|
+
memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
1276
|
+
}, z.core.$strict>>;
|
|
1223
1277
|
}, z.core.$strict>>>;
|
|
1224
1278
|
ciWait: z.ZodOptional<z.ZodObject<{
|
|
1225
1279
|
prUrl: z.ZodString;
|
|
@@ -1380,6 +1434,8 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1380
1434
|
worktreeReclaimedAt: z.ZodOptional<z.ZodString>;
|
|
1381
1435
|
groupId: z.ZodOptional<z.ZodString>;
|
|
1382
1436
|
variant: z.ZodOptional<z.ZodString>;
|
|
1437
|
+
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
clientRequestHash: z.ZodOptional<z.ZodString>;
|
|
1383
1439
|
peakRssBytes: z.ZodOptional<z.ZodNumber>;
|
|
1384
1440
|
peakProcCount: z.ZodOptional<z.ZodNumber>;
|
|
1385
1441
|
archived: z.ZodBoolean;
|
|
@@ -1775,6 +1831,18 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1775
1831
|
}>;
|
|
1776
1832
|
resumed: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1777
1833
|
instruction: z.ZodOptional<z.ZodString>;
|
|
1834
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
1835
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
1836
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1837
|
+
header: z.ZodString;
|
|
1838
|
+
question: z.ZodString;
|
|
1839
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1840
|
+
label: z.ZodString;
|
|
1841
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1842
|
+
}, z.core.$strict>>;
|
|
1843
|
+
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
1844
|
+
}, z.core.$strict>>;
|
|
1845
|
+
}, z.core.$strict>>;
|
|
1778
1846
|
}, z.core.$strict>>;
|
|
1779
1847
|
outcomes: z.ZodArray<z.ZodObject<{
|
|
1780
1848
|
requestId: z.ZodUUID;
|
|
@@ -1783,6 +1851,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1783
1851
|
"completed-without-reply": "completed-without-reply";
|
|
1784
1852
|
destroyed: "destroyed";
|
|
1785
1853
|
failed: "failed";
|
|
1854
|
+
"human-fallback": "human-fallback";
|
|
1786
1855
|
replied: "replied";
|
|
1787
1856
|
"sender-closed": "sender-closed";
|
|
1788
1857
|
"timed-out": "timed-out";
|
|
@@ -1825,6 +1894,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1825
1894
|
"completed-without-reply": "completed-without-reply";
|
|
1826
1895
|
destroyed: "destroyed";
|
|
1827
1896
|
failed: "failed";
|
|
1897
|
+
"human-fallback": "human-fallback";
|
|
1828
1898
|
replied: "replied";
|
|
1829
1899
|
"sender-closed": "sender-closed";
|
|
1830
1900
|
"timed-out": "timed-out";
|
|
@@ -1878,6 +1948,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1878
1948
|
"completed-without-reply": "completed-without-reply";
|
|
1879
1949
|
destroyed: "destroyed";
|
|
1880
1950
|
failed: "failed";
|
|
1951
|
+
"human-fallback": "human-fallback";
|
|
1881
1952
|
replied: "replied";
|
|
1882
1953
|
"sender-closed": "sender-closed";
|
|
1883
1954
|
"timed-out": "timed-out";
|
|
@@ -1966,6 +2037,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1966
2037
|
"completed-without-reply": "completed-without-reply";
|
|
1967
2038
|
destroyed: "destroyed";
|
|
1968
2039
|
failed: "failed";
|
|
2040
|
+
"human-fallback": "human-fallback";
|
|
1969
2041
|
replied: "replied";
|
|
1970
2042
|
"sender-closed": "sender-closed";
|
|
1971
2043
|
"timed-out": "timed-out";
|
|
@@ -2019,6 +2091,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2019
2091
|
"completed-without-reply": "completed-without-reply";
|
|
2020
2092
|
destroyed: "destroyed";
|
|
2021
2093
|
failed: "failed";
|
|
2094
|
+
"human-fallback": "human-fallback";
|
|
2022
2095
|
replied: "replied";
|
|
2023
2096
|
"sender-closed": "sender-closed";
|
|
2024
2097
|
"timed-out": "timed-out";
|
|
@@ -2136,6 +2209,15 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2136
2209
|
text: z.ZodString;
|
|
2137
2210
|
createdAt: z.ZodISODateTime;
|
|
2138
2211
|
deliveredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2212
|
+
consumedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2213
|
+
awaitingRead: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2214
|
+
inboxClaim: z.ZodOptional<z.ZodObject<{
|
|
2215
|
+
receiptId: z.ZodUUID;
|
|
2216
|
+
generation: z.ZodUUID;
|
|
2217
|
+
expiresAt: z.ZodISODateTime;
|
|
2218
|
+
acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2219
|
+
memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
2220
|
+
}, z.core.$strict>>;
|
|
2139
2221
|
}, z.core.$strict>>>;
|
|
2140
2222
|
ciWait: z.ZodOptional<z.ZodObject<{
|
|
2141
2223
|
prUrl: z.ZodString;
|
|
@@ -2296,6 +2378,8 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2296
2378
|
worktreeReclaimedAt: z.ZodOptional<z.ZodString>;
|
|
2297
2379
|
groupId: z.ZodOptional<z.ZodString>;
|
|
2298
2380
|
variant: z.ZodOptional<z.ZodString>;
|
|
2381
|
+
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
2382
|
+
clientRequestHash: z.ZodOptional<z.ZodString>;
|
|
2299
2383
|
peakRssBytes: z.ZodOptional<z.ZodNumber>;
|
|
2300
2384
|
peakProcCount: z.ZodOptional<z.ZodNumber>;
|
|
2301
2385
|
archived: z.ZodBoolean;
|
|
@@ -2437,6 +2521,18 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2437
2521
|
}>;
|
|
2438
2522
|
resumed: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2439
2523
|
instruction: z.ZodOptional<z.ZodString>;
|
|
2524
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
2525
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
2526
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2527
|
+
header: z.ZodString;
|
|
2528
|
+
question: z.ZodString;
|
|
2529
|
+
options: z.ZodArray<z.ZodObject<{
|
|
2530
|
+
label: z.ZodString;
|
|
2531
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2532
|
+
}, z.core.$strict>>;
|
|
2533
|
+
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
2534
|
+
}, z.core.$strict>>;
|
|
2535
|
+
}, z.core.$strict>>;
|
|
2440
2536
|
}, z.core.$strict>>;
|
|
2441
2537
|
outcomes: z.ZodArray<z.ZodObject<{
|
|
2442
2538
|
requestId: z.ZodUUID;
|
|
@@ -2445,6 +2541,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2445
2541
|
"completed-without-reply": "completed-without-reply";
|
|
2446
2542
|
destroyed: "destroyed";
|
|
2447
2543
|
failed: "failed";
|
|
2544
|
+
"human-fallback": "human-fallback";
|
|
2448
2545
|
replied: "replied";
|
|
2449
2546
|
"sender-closed": "sender-closed";
|
|
2450
2547
|
"timed-out": "timed-out";
|
|
@@ -2487,6 +2584,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2487
2584
|
"completed-without-reply": "completed-without-reply";
|
|
2488
2585
|
destroyed: "destroyed";
|
|
2489
2586
|
failed: "failed";
|
|
2587
|
+
"human-fallback": "human-fallback";
|
|
2490
2588
|
replied: "replied";
|
|
2491
2589
|
"sender-closed": "sender-closed";
|
|
2492
2590
|
"timed-out": "timed-out";
|
|
@@ -2540,6 +2638,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2540
2638
|
"completed-without-reply": "completed-without-reply";
|
|
2541
2639
|
destroyed: "destroyed";
|
|
2542
2640
|
failed: "failed";
|
|
2641
|
+
"human-fallback": "human-fallback";
|
|
2543
2642
|
replied: "replied";
|
|
2544
2643
|
"sender-closed": "sender-closed";
|
|
2545
2644
|
"timed-out": "timed-out";
|
|
@@ -2628,6 +2727,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2628
2727
|
"completed-without-reply": "completed-without-reply";
|
|
2629
2728
|
destroyed: "destroyed";
|
|
2630
2729
|
failed: "failed";
|
|
2730
|
+
"human-fallback": "human-fallback";
|
|
2631
2731
|
replied: "replied";
|
|
2632
2732
|
"sender-closed": "sender-closed";
|
|
2633
2733
|
"timed-out": "timed-out";
|
|
@@ -2681,6 +2781,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2681
2781
|
"completed-without-reply": "completed-without-reply";
|
|
2682
2782
|
destroyed: "destroyed";
|
|
2683
2783
|
failed: "failed";
|
|
2784
|
+
"human-fallback": "human-fallback";
|
|
2684
2785
|
replied: "replied";
|
|
2685
2786
|
"sender-closed": "sender-closed";
|
|
2686
2787
|
"timed-out": "timed-out";
|
|
@@ -2798,6 +2899,15 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2798
2899
|
text: z.ZodString;
|
|
2799
2900
|
createdAt: z.ZodISODateTime;
|
|
2800
2901
|
deliveredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2902
|
+
consumedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2903
|
+
awaitingRead: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2904
|
+
inboxClaim: z.ZodOptional<z.ZodObject<{
|
|
2905
|
+
receiptId: z.ZodUUID;
|
|
2906
|
+
generation: z.ZodUUID;
|
|
2907
|
+
expiresAt: z.ZodISODateTime;
|
|
2908
|
+
acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2909
|
+
memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
2910
|
+
}, z.core.$strict>>;
|
|
2801
2911
|
}, z.core.$strict>>>;
|
|
2802
2912
|
ciWait: z.ZodOptional<z.ZodObject<{
|
|
2803
2913
|
prUrl: z.ZodString;
|
|
@@ -2958,6 +3068,8 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2958
3068
|
worktreeReclaimedAt: z.ZodOptional<z.ZodString>;
|
|
2959
3069
|
groupId: z.ZodOptional<z.ZodString>;
|
|
2960
3070
|
variant: z.ZodOptional<z.ZodString>;
|
|
3071
|
+
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
3072
|
+
clientRequestHash: z.ZodOptional<z.ZodString>;
|
|
2961
3073
|
peakRssBytes: z.ZodOptional<z.ZodNumber>;
|
|
2962
3074
|
peakProcCount: z.ZodOptional<z.ZodNumber>;
|
|
2963
3075
|
archived: z.ZodBoolean;
|
|
@@ -3306,6 +3418,18 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
3306
3418
|
}>;
|
|
3307
3419
|
resumed: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3308
3420
|
instruction: z.ZodOptional<z.ZodString>;
|
|
3421
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
3422
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
3423
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3424
|
+
header: z.ZodString;
|
|
3425
|
+
question: z.ZodString;
|
|
3426
|
+
options: z.ZodArray<z.ZodObject<{
|
|
3427
|
+
label: z.ZodString;
|
|
3428
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3429
|
+
}, z.core.$strict>>;
|
|
3430
|
+
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
3431
|
+
}, z.core.$strict>>;
|
|
3432
|
+
}, z.core.$strict>>;
|
|
3309
3433
|
}, z.core.$strict>>;
|
|
3310
3434
|
outcomes: z.ZodArray<z.ZodObject<{
|
|
3311
3435
|
requestId: z.ZodUUID;
|
|
@@ -3314,6 +3438,7 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
3314
3438
|
"completed-without-reply": "completed-without-reply";
|
|
3315
3439
|
destroyed: "destroyed";
|
|
3316
3440
|
failed: "failed";
|
|
3441
|
+
"human-fallback": "human-fallback";
|
|
3317
3442
|
replied: "replied";
|
|
3318
3443
|
"sender-closed": "sender-closed";
|
|
3319
3444
|
"timed-out": "timed-out";
|
|
@@ -3356,6 +3481,7 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
3356
3481
|
"completed-without-reply": "completed-without-reply";
|
|
3357
3482
|
destroyed: "destroyed";
|
|
3358
3483
|
failed: "failed";
|
|
3484
|
+
"human-fallback": "human-fallback";
|
|
3359
3485
|
replied: "replied";
|
|
3360
3486
|
"sender-closed": "sender-closed";
|
|
3361
3487
|
"timed-out": "timed-out";
|
|
@@ -3409,6 +3535,7 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
3409
3535
|
"completed-without-reply": "completed-without-reply";
|
|
3410
3536
|
destroyed: "destroyed";
|
|
3411
3537
|
failed: "failed";
|
|
3538
|
+
"human-fallback": "human-fallback";
|
|
3412
3539
|
replied: "replied";
|
|
3413
3540
|
"sender-closed": "sender-closed";
|
|
3414
3541
|
"timed-out": "timed-out";
|
|
@@ -3497,6 +3624,7 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
3497
3624
|
"completed-without-reply": "completed-without-reply";
|
|
3498
3625
|
destroyed: "destroyed";
|
|
3499
3626
|
failed: "failed";
|
|
3627
|
+
"human-fallback": "human-fallback";
|
|
3500
3628
|
replied: "replied";
|
|
3501
3629
|
"sender-closed": "sender-closed";
|
|
3502
3630
|
"timed-out": "timed-out";
|
|
@@ -3550,6 +3678,7 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
3550
3678
|
"completed-without-reply": "completed-without-reply";
|
|
3551
3679
|
destroyed: "destroyed";
|
|
3552
3680
|
failed: "failed";
|
|
3681
|
+
"human-fallback": "human-fallback";
|
|
3553
3682
|
replied: "replied";
|
|
3554
3683
|
"sender-closed": "sender-closed";
|
|
3555
3684
|
"timed-out": "timed-out";
|
|
@@ -3667,6 +3796,15 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
3667
3796
|
text: z.ZodString;
|
|
3668
3797
|
createdAt: z.ZodISODateTime;
|
|
3669
3798
|
deliveredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
3799
|
+
consumedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
3800
|
+
awaitingRead: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3801
|
+
inboxClaim: z.ZodOptional<z.ZodObject<{
|
|
3802
|
+
receiptId: z.ZodUUID;
|
|
3803
|
+
generation: z.ZodUUID;
|
|
3804
|
+
expiresAt: z.ZodISODateTime;
|
|
3805
|
+
acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
3806
|
+
memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
3807
|
+
}, z.core.$strict>>;
|
|
3670
3808
|
}, z.core.$strict>>>;
|
|
3671
3809
|
ciWait: z.ZodOptional<z.ZodObject<{
|
|
3672
3810
|
prUrl: z.ZodString;
|
|
@@ -3827,6 +3965,8 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
3827
3965
|
worktreeReclaimedAt: z.ZodOptional<z.ZodString>;
|
|
3828
3966
|
groupId: z.ZodOptional<z.ZodString>;
|
|
3829
3967
|
variant: z.ZodOptional<z.ZodString>;
|
|
3968
|
+
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
3969
|
+
clientRequestHash: z.ZodOptional<z.ZodString>;
|
|
3830
3970
|
peakRssBytes: z.ZodOptional<z.ZodNumber>;
|
|
3831
3971
|
peakProcCount: z.ZodOptional<z.ZodNumber>;
|
|
3832
3972
|
archived: z.ZodBoolean;
|
|
@@ -3968,6 +4108,8 @@ export declare const imageInputSchema: z.ZodObject<{
|
|
|
3968
4108
|
data: z.ZodString;
|
|
3969
4109
|
}, z.core.$strip>;
|
|
3970
4110
|
export type ImageInput = AttachmentInput;
|
|
4111
|
+
/** A request id names one run, so it cannot ask for ×2/×3. */
|
|
4112
|
+
export declare const CLIENT_REQUEST_VARIANTS_ERROR = "clientRequestId names one run; it cannot be combined with variants > 1";
|
|
3971
4113
|
/**
|
|
3972
4114
|
* The KEYS of `POST /runs`' body, before the XOR refinement that `createRunInputSchema` adds.
|
|
3973
4115
|
*
|
|
@@ -4075,6 +4217,7 @@ export declare const createRunInputSchema: z.ZodObject<{
|
|
|
4075
4217
|
data: z.ZodString;
|
|
4076
4218
|
}, z.core.$strip>>>;
|
|
4077
4219
|
todoId: z.ZodOptional<z.ZodString>;
|
|
4220
|
+
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
4078
4221
|
}, z.core.$strip>;
|
|
4079
4222
|
export type CreateRunInput = z.input<typeof createRunInputSchema>;
|
|
4080
4223
|
/**
|
|
@@ -124,6 +124,18 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
124
124
|
}>;
|
|
125
125
|
resumed: z.ZodOptional<z.ZodLiteral<true>>;
|
|
126
126
|
instruction: z.ZodOptional<z.ZodString>;
|
|
127
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
128
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
129
|
+
id: z.ZodOptional<z.ZodString>;
|
|
130
|
+
header: z.ZodString;
|
|
131
|
+
question: z.ZodString;
|
|
132
|
+
options: z.ZodArray<z.ZodObject<{
|
|
133
|
+
label: z.ZodString;
|
|
134
|
+
description: z.ZodOptional<z.ZodString>;
|
|
135
|
+
}, z.core.$strict>>;
|
|
136
|
+
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
}, z.core.$strict>>;
|
|
138
|
+
}, z.core.$strict>>;
|
|
127
139
|
}, z.core.$strict>>;
|
|
128
140
|
outcomes: z.ZodArray<z.ZodObject<{
|
|
129
141
|
requestId: z.ZodUUID;
|
|
@@ -132,6 +144,7 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
132
144
|
"completed-without-reply": "completed-without-reply";
|
|
133
145
|
destroyed: "destroyed";
|
|
134
146
|
failed: "failed";
|
|
147
|
+
"human-fallback": "human-fallback";
|
|
135
148
|
replied: "replied";
|
|
136
149
|
"sender-closed": "sender-closed";
|
|
137
150
|
"timed-out": "timed-out";
|
|
@@ -174,6 +187,7 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
174
187
|
"completed-without-reply": "completed-without-reply";
|
|
175
188
|
destroyed: "destroyed";
|
|
176
189
|
failed: "failed";
|
|
190
|
+
"human-fallback": "human-fallback";
|
|
177
191
|
replied: "replied";
|
|
178
192
|
"sender-closed": "sender-closed";
|
|
179
193
|
"timed-out": "timed-out";
|
|
@@ -227,6 +241,7 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
227
241
|
"completed-without-reply": "completed-without-reply";
|
|
228
242
|
destroyed: "destroyed";
|
|
229
243
|
failed: "failed";
|
|
244
|
+
"human-fallback": "human-fallback";
|
|
230
245
|
replied: "replied";
|
|
231
246
|
"sender-closed": "sender-closed";
|
|
232
247
|
"timed-out": "timed-out";
|
|
@@ -315,6 +330,7 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
315
330
|
"completed-without-reply": "completed-without-reply";
|
|
316
331
|
destroyed: "destroyed";
|
|
317
332
|
failed: "failed";
|
|
333
|
+
"human-fallback": "human-fallback";
|
|
318
334
|
replied: "replied";
|
|
319
335
|
"sender-closed": "sender-closed";
|
|
320
336
|
"timed-out": "timed-out";
|
|
@@ -368,6 +384,7 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
368
384
|
"completed-without-reply": "completed-without-reply";
|
|
369
385
|
destroyed: "destroyed";
|
|
370
386
|
failed: "failed";
|
|
387
|
+
"human-fallback": "human-fallback";
|
|
371
388
|
replied: "replied";
|
|
372
389
|
"sender-closed": "sender-closed";
|
|
373
390
|
"timed-out": "timed-out";
|
|
@@ -485,6 +502,15 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
485
502
|
text: z.ZodString;
|
|
486
503
|
createdAt: z.ZodISODateTime;
|
|
487
504
|
deliveredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
505
|
+
consumedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
506
|
+
awaitingRead: z.ZodOptional<z.ZodLiteral<true>>;
|
|
507
|
+
inboxClaim: z.ZodOptional<z.ZodObject<{
|
|
508
|
+
receiptId: z.ZodUUID;
|
|
509
|
+
generation: z.ZodUUID;
|
|
510
|
+
expiresAt: z.ZodISODateTime;
|
|
511
|
+
acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
512
|
+
memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
513
|
+
}, z.core.$strict>>;
|
|
488
514
|
}, z.core.$strict>>>;
|
|
489
515
|
ciWait: z.ZodOptional<z.ZodObject<{
|
|
490
516
|
prUrl: z.ZodString;
|
|
@@ -645,6 +671,8 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
645
671
|
worktreeReclaimedAt: z.ZodOptional<z.ZodString>;
|
|
646
672
|
groupId: z.ZodOptional<z.ZodString>;
|
|
647
673
|
variant: z.ZodOptional<z.ZodString>;
|
|
674
|
+
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
675
|
+
clientRequestHash: z.ZodOptional<z.ZodString>;
|
|
648
676
|
peakRssBytes: z.ZodOptional<z.ZodNumber>;
|
|
649
677
|
peakProcCount: z.ZodOptional<z.ZodNumber>;
|
|
650
678
|
archived: z.ZodBoolean;
|
|
@@ -186,8 +186,18 @@ export type AgentEvent = {
|
|
|
186
186
|
| {
|
|
187
187
|
type: 'session';
|
|
188
188
|
sessionId: string;
|
|
189
|
-
}
|
|
189
|
+
}
|
|
190
|
+
/** `unconsumedInputIds`: agent input accepted in this turn that the model never
|
|
191
|
+
* read before the turn ended idle (#505). */
|
|
192
|
+
| {
|
|
190
193
|
type: 'turn-end';
|
|
194
|
+
unconsumedInputIds?: readonly string[];
|
|
195
|
+
}
|
|
196
|
+
/** Accepted agent input the harness will not read without a new prompt, reported
|
|
197
|
+
* outside a turn (an OpenCode lost wake) (#505). */
|
|
198
|
+
| {
|
|
199
|
+
type: 'input-unconsumed';
|
|
200
|
+
inputIds: readonly string[];
|
|
191
201
|
} | {
|
|
192
202
|
type: 'note';
|
|
193
203
|
message: string;
|
|
@@ -226,6 +236,9 @@ export interface SessionOptions {
|
|
|
226
236
|
/** Readiness hint only, not an acknowledgement or a turn completion. The
|
|
227
237
|
* caller rechecks session identity, ask state and queue before retrying. */
|
|
228
238
|
onAgentInputReady?: () => void;
|
|
239
|
+
/** The model received these inputs (replay echo, userMessage item, …). Fires at most
|
|
240
|
+
* once per ID and never from a transport acknowledgement (#505). */
|
|
241
|
+
onAgentInputConsumed?: (inputIds: readonly string[]) => void;
|
|
229
242
|
}
|
|
230
243
|
/**
|
|
231
244
|
* A live agent session over one spawned backend process. The process stays
|
|
@@ -243,9 +256,11 @@ export interface AgentSession {
|
|
|
243
256
|
/** Write a user message into the live session. False when it is closed. */
|
|
244
257
|
sendMessage(content: ContentBlock[]): boolean;
|
|
245
258
|
/** Synchronous non-human reservation: false refuses without writing; a Promise
|
|
246
|
-
* confirms
|
|
247
|
-
*
|
|
248
|
-
|
|
259
|
+
* confirms the HARNESS ACCEPTED the input — mid-turn on a `steer` runner — not that
|
|
260
|
+
* the model consumed it (#505). Reject retains caller ownership for replay.
|
|
261
|
+
* `inputIds` correlate `onAgentInputConsumed` and `turn-end.unconsumedInputIds`.
|
|
262
|
+
* Never fall back to the human-answer seam. */
|
|
263
|
+
sendAgentMessage(content: ContentBlock[], inputIds?: readonly string[]): false | Promise<void>;
|
|
249
264
|
/**
|
|
250
265
|
* Drop follow-ups queued while a turn was still in flight. A `CEZ:ASK` park
|
|
251
266
|
* must call this so a mid-turn `sendMessage` cannot start a new turn after
|
|
@@ -260,10 +275,24 @@ export interface AgentSession {
|
|
|
260
275
|
/** True while the session still accepts messages. */
|
|
261
276
|
readonly open: boolean;
|
|
262
277
|
}
|
|
278
|
+
/** How a runner admits non-human input while a turn runs (#505). */
|
|
279
|
+
export interface InputDelivery {
|
|
280
|
+
/** `steer`: accepted mid-turn, consumed inside the running turn. `boundary`: refused while busy. */
|
|
281
|
+
readonly mode: 'steer' | 'boundary';
|
|
282
|
+
/** Whether the wire tells us when the model actually received the input. */
|
|
283
|
+
readonly consumption: 'observable' | 'unobservable';
|
|
284
|
+
/** The native mechanism, for AGENT_PROTOCOL.md and the parity matrix. */
|
|
285
|
+
readonly via: string;
|
|
286
|
+
}
|
|
287
|
+
export declare const BOUNDARY_INPUT_DELIVERY: InputDelivery;
|
|
288
|
+
/** Absent means the pre-#505 behavior every runner had. */
|
|
289
|
+
export declare function inputDeliveryOf(runner: Pick<AgentRunner, 'inputDelivery'>): InputDelivery;
|
|
263
290
|
export interface AgentRunner {
|
|
264
291
|
readonly backend: AgentBackend;
|
|
265
292
|
/** Which `AgentRunSpec` fields this runner honors, and how — see `AgentRunSpecSupport`. */
|
|
266
293
|
readonly specSupport: AgentRunSpecSupport;
|
|
294
|
+
/** How non-human input is admitted while a turn runs; absent means `boundary` (#505). */
|
|
295
|
+
readonly inputDelivery?: InputDelivery;
|
|
267
296
|
run(spec: AgentRunSpec, onEvent?: (event: AgentEvent) => void): Promise<AgentRunResult>;
|
|
268
297
|
startSession(spec: AgentRunSpec, onEvent?: (event: AgentEvent) => void, opts?: SessionOptions): AgentSession;
|
|
269
298
|
interrupt(): Promise<void>;
|
|
@@ -88,4 +88,9 @@ export function trackChildExit(child) {
|
|
|
88
88
|
});
|
|
89
89
|
return () => exited;
|
|
90
90
|
}
|
|
91
|
+
export const BOUNDARY_INPUT_DELIVERY = { mode: 'boundary', consumption: 'unobservable', via: 'next idle turn' };
|
|
92
|
+
/** Absent means the pre-#505 behavior every runner had. */
|
|
93
|
+
export function inputDeliveryOf(runner) {
|
|
94
|
+
return runner.inputDelivery ?? BOUNDARY_INPUT_DELIVERY;
|
|
95
|
+
}
|
|
91
96
|
//# sourceMappingURL=agent-runner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-runner.js","sourceRoot":"","sources":["../../src/core/agent-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,CAAU,CAAC;AAQnF,gFAAgF;AAChF,MAAM,UAAU,UAAU,CAAC,KAAa;IACtC,OAAQ,UAAgC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC3D,CAAC;AAiDD;;;;GAIG;AACH,MAAM,wBAAwB,GAA+C;IAC3E,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,IAAI;IACZ,GAAG,EAAE,IAAI;IACT,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,aAAa,EAAE,IAAI;IACnB,qBAAqB,EAAE,IAAI;IAC3B,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAiC,CAAC;AAsB3G;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,YAAgC,EAAE,UAAkB;IACtF,OAAO,YAAY,CAAC,CAAC,CAAC,GAAG,YAAY,cAAc,UAAU,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;AAC/E,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,uBAAuB,CAAC,QAAuB;IAC7D,OAAO,QAAQ,KAAK,GAAG,IAAI,QAAQ,KAAK,GAAG,IAAI,QAAQ,KAAK,GAAG,CAAC;AAClE,CAAC;AAUD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,cAAc,CAAC,KAAqB;IAClD,IAAI,MAAM,GAAG,KAAK,CAAC,QAAQ,IAAI,IAAI,IAAI,KAAK,CAAC,UAAU,IAAI,IAAI,CAAC;IAChE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE;QACtB,MAAM,GAAG,IAAI,CAAC;IAChB,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC;AACtB,CAAC"}
|
|
1
|
+
{"version":3,"file":"agent-runner.js","sourceRoot":"","sources":["../../src/core/agent-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,CAAU,CAAC;AAQnF,gFAAgF;AAChF,MAAM,UAAU,UAAU,CAAC,KAAa;IACtC,OAAQ,UAAgC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC3D,CAAC;AAiDD;;;;GAIG;AACH,MAAM,wBAAwB,GAA+C;IAC3E,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,IAAI;IACZ,GAAG,EAAE,IAAI;IACT,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,aAAa,EAAE,IAAI;IACnB,qBAAqB,EAAE,IAAI;IAC3B,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAiC,CAAC;AAsB3G;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,YAAgC,EAAE,UAAkB;IACtF,OAAO,YAAY,CAAC,CAAC,CAAC,GAAG,YAAY,cAAc,UAAU,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;AAC/E,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,uBAAuB,CAAC,QAAuB;IAC7D,OAAO,QAAQ,KAAK,GAAG,IAAI,QAAQ,KAAK,GAAG,IAAI,QAAQ,KAAK,GAAG,CAAC;AAClE,CAAC;AAUD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,cAAc,CAAC,KAAqB;IAClD,IAAI,MAAM,GAAG,KAAK,CAAC,QAAQ,IAAI,IAAI,IAAI,KAAK,CAAC,UAAU,IAAI,IAAI,CAAC;IAChE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE;QACtB,MAAM,GAAG,IAAI,CAAC;IAChB,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC;AACtB,CAAC;AAiHD,MAAM,CAAC,MAAM,uBAAuB,GAAkB,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,EAAE,gBAAgB,EAAE,CAAC;AAC/H,2DAA2D;AAC3D,MAAM,UAAU,eAAe,CAAC,MAA0C;IACxE,OAAO,MAAM,CAAC,aAAa,IAAI,uBAAuB,CAAC;AACzD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentEvent, AgentRunResult, AgentRunSpec, AgentRunner, AgentSession, SessionOptions, AgentRunSpecSupport } from './agent-runner.ts';
|
|
1
|
+
import type { AgentEvent, AgentRunResult, AgentRunSpec, AgentRunner, AgentSession, SessionOptions, AgentRunSpecSupport, InputDelivery } from './agent-runner.ts';
|
|
2
2
|
export type { AgentSession, SessionOptions } from './agent-runner.ts';
|
|
3
3
|
export interface ClaudeCliRunnerOptions {
|
|
4
4
|
/** Override the binary name/path; defaults to `claude` on PATH. */
|
|
@@ -30,6 +30,7 @@ export declare const CLAUDE_SPEC_SUPPORT: AgentRunSpecSupport;
|
|
|
30
30
|
export declare class ClaudeCliRunner implements AgentRunner {
|
|
31
31
|
readonly backend: 'claude';
|
|
32
32
|
readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.ts").SpecFieldSupport>>;
|
|
33
|
+
readonly inputDelivery: InputDelivery;
|
|
33
34
|
private readonly bin;
|
|
34
35
|
private readonly timeoutMs;
|
|
35
36
|
private lastSession;
|
|
@@ -39,17 +40,10 @@ export declare class ClaudeCliRunner implements AgentRunner {
|
|
|
39
40
|
interrupt(): Promise<void>;
|
|
40
41
|
startSession(spec: AgentRunSpec, onEvent?: (event: AgentEvent) => void, opts?: SessionOptions): AgentSession;
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
* `--allowedTools` proceed and everything else is denied instead of prompting.
|
|
47
|
-
* `CEZ_CLAUDE_PERMISSION_MODE` selects `dontAsk` / `acceptEdits` / `bypass`
|
|
48
|
-
* (`bypass` emits `--dangerously-skip-permissions` instead). Unset or unknown
|
|
49
|
-
* keeps today's path: `CEZ_APPROVAL_GATE=1` opts into `acceptEdits` (#435).
|
|
50
|
-
* `CEZ_CLAUDE_SETTING_SOURCES` optionally adds `--setting-sources`.
|
|
51
|
-
*/
|
|
52
|
-
export declare function buildClaudeArgs(spec: AgentRunSpec, env?: NodeJS.ProcessEnv): string[];
|
|
43
|
+
export declare function supportsReplayUserMessages(bin: string): boolean;
|
|
44
|
+
export declare function buildClaudeArgs(spec: AgentRunSpec, env?: NodeJS.ProcessEnv, features?: {
|
|
45
|
+
replayUserMessages: boolean;
|
|
46
|
+
}): string[];
|
|
53
47
|
/**
|
|
54
48
|
* Map `allowedTools` onto claude's `--allowedTools` syntax. `Bash` with a
|
|
55
49
|
* `bashAllowlist` becomes one `Bash(<prefix>:*)` entry per allowed prefix;
|