@hearsay-tools/squawk 0.18.0-pr3358.5904 → 0.18.0-pr3389.5932
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 +2 -2
- package/dist/ci-wait/controller.d.ts +37 -37
- package/dist/ci-wait/errors.js +1 -1
- package/dist/ci-wait/errors.js.map +1 -1
- package/dist/ci-wait/tools.js +1 -1
- package/dist/contract/conversations.d.ts +1 -1
- package/dist/contract/delegation.d.ts +9 -3
- package/dist/contract/index.js +14 -8
- package/dist/contract/runs.d.ts +28 -0
- package/dist/contract/waits.d.ts +1 -1
- package/dist/contract/workspace-events.d.ts +8 -0
- package/dist/core/claude-cli-runner.js +13 -0
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/managed-session.js +13 -1
- package/dist/core/managed-session.js.map +1 -1
- package/dist/core/provider-error.d.ts +21 -0
- package/dist/core/provider-error.js +32 -0
- package/dist/core/provider-error.js.map +1 -0
- package/dist/delegation/cli.js +8 -4
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/conversation-send.js +3 -2
- package/dist/delegation/conversation-send.js.map +1 -1
- package/dist/delegation/conversations.d.ts +2 -0
- package/dist/delegation/provision.js +5 -5
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/results.js +7 -1
- package/dist/delegation/results.js.map +1 -1
- package/dist/delegation/retry-backoff.d.ts +6 -0
- package/dist/delegation/retry-backoff.js +6 -0
- package/dist/delegation/retry-backoff.js.map +1 -1
- package/dist/delegation/routes.d.ts +1 -1
- package/dist/delegation/service.d.ts +7 -1
- package/dist/delegation/service.js +33 -2
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +1 -1
- package/dist/runs/record-write-rules.js +1 -0
- package/dist/runs/record-write-rules.js.map +1 -1
- package/dist/runs/run-exits.d.ts +13 -0
- package/dist/runs/run-exits.js +4 -1
- package/dist/runs/run-exits.js.map +1 -1
- package/dist/runs/store.d.ts +5 -0
- package/dist/runs/store.js +2 -2
- package/dist/runs/store.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/server.d.ts +116 -92
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/task-cli/projections.d.ts +3 -1
- package/dist/task-cli/projections.js +1 -1
- package/dist/task-cli/projections.js.map +1 -1
- package/dist/voice/routes.d.ts +19 -19
- package/dist/workflows/continuation-admission.d.ts +15 -2
- package/dist/workflows/continuation-admission.js +12 -8
- package/dist/workflows/continuation-admission.js.map +1 -1
- package/dist/workflows/run/auto-resume.d.ts +27 -7
- package/dist/workflows/run/auto-resume.js +87 -39
- package/dist/workflows/run/auto-resume.js.map +1 -1
- package/dist/workflows/run/continuation-acceptance.js +1 -0
- package/dist/workflows/run/continuation-acceptance.js.map +1 -1
- package/dist/workflows/run/family-reconciler.d.ts +4 -2
- package/dist/workflows/run/family-reconciler.js +6 -2
- package/dist/workflows/run/family-reconciler.js.map +1 -1
- package/dist/workflows/run/launch-read-resolver.d.ts +11 -0
- package/dist/workflows/run/launch-read-resolver.js +31 -3
- package/dist/workflows/run/launch-read-resolver.js.map +1 -1
- package/dist/workflows/run/queued-revival.js +4 -2
- package/dist/workflows/run/queued-revival.js.map +1 -1
- package/dist/workflows/run/run-cancel.d.ts +8 -0
- package/dist/workflows/run/run-cancel.js +21 -8
- package/dist/workflows/run/run-cancel.js.map +1 -1
- package/dist/workflows/run/run-recovery.d.ts +2 -1
- package/dist/workflows/run/run-recovery.js +7 -2
- package/dist/workflows/run/run-recovery.js.map +1 -1
- package/dist/workflows/run/run-settlement.js +5 -1
- package/dist/workflows/run/run-settlement.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +1 -0
- package/dist/workflows/run/wait-engine.js +2 -2
- package/dist/workflows/run/wait-engine.js.map +1 -1
- package/dist/workflows/run/wait-kinds.d.ts +1 -1
- package/dist/workflows/run/wait-kinds.js +4 -4
- package/dist/workflows/run/wait-kinds.js.map +1 -1
- package/dist/workflows/run-scheduling.d.ts +4 -3
- package/dist/workflows/run-scheduling.js +6 -3
- package/dist/workflows/run-scheduling.js.map +1 -1
- package/dist/workflows/run-states.js +8 -7
- package/dist/workflows/run-states.js.map +1 -1
- package/dist/workflows/waits.d.ts +2 -5
- package/dist/workflows/waits.js +3 -8
- package/dist/workflows/waits.js.map +1 -1
- package/package.json +4 -4
- package/scripts/mock-claude.mjs +16 -2
- package/scripts/mock-codex-app-server.mjs +15 -7
- package/scripts/mock-cursor-print.mjs +6 -5
- package/scripts/mock-omp-rpc.mjs +11 -8
- package/scripts/mock-opencode-serve.mjs +6 -6
- package/scripts/mock-pi-rpc.mjs +8 -7
- package/scripts/mock-provider-failures.mjs +60 -0
- package/scripts/mock-scenario.d.mts +5 -1
- package/scripts/mock-scenario.mjs +21 -2
- package/web/dist/assets/{activity-motion-Dj3dlCYS.js → activity-motion-XsGcc9eM.js} +2 -2
- package/web/dist/assets/{activity-route-CpjbEhk_.js → activity-route-DIDXHV7J.js} +1 -1
- package/web/dist/assets/agent-accounts-CuRvwNoA.js +18 -0
- package/web/dist/assets/{cez-idle-EVoUsgU3.js → cez-idle-DtpdVf_5.js} +1 -1
- package/web/dist/assets/commit-diff-panel-DtHg36xc.js +1 -0
- package/web/dist/assets/{control-locations-CD2r0mMU.js → control-locations-CljaLD_b.js} +1 -1
- package/web/dist/assets/dialog-Dw7fMdDQ.js +1 -0
- package/web/dist/assets/diff-ImdJ4tPA.js +3 -0
- package/web/dist/assets/{diff-view-wanjAW5U.js → diff-view-BMqNpcSH.js} +5 -5
- package/web/dist/assets/dist-DvNdR7gM.js +1 -0
- package/web/dist/assets/dropdown-menu-D7f0O7xR.js +1 -0
- package/web/dist/assets/{file-preview-YiP5f666.js → file-preview-C58stPPw.js} +2 -2
- package/web/dist/assets/git-toolbar-Dzp24LO7.js +1 -0
- package/web/dist/assets/github-Cn0hlJsH.js +1 -0
- package/web/dist/assets/github-sidebar-model-BSNdxNKJ.js +1 -0
- package/web/dist/assets/global-activity-route-D5ke1ZQa.js +1 -0
- package/web/dist/assets/index-lMBPAedr.js +17 -0
- package/web/dist/assets/input-DIwJvCgi.js +1 -0
- package/web/dist/assets/{live-protocol-BVn0UA_g.js → live-protocol-BAiIX_Mf.js} +1 -1
- package/web/dist/assets/{live-refetch-C2xZHKkJ.js → live-refetch-CstQIN6c.js} +1 -1
- package/web/dist/assets/{popover-s-Wchzjn.js → popover-N-u5z2xh.js} +1 -1
- package/web/dist/assets/preview-pane-connected-Cl-W1pDv.js +3 -0
- package/web/dist/assets/{project-router-BLO2IxbU.js → project-router-Dd63wBeA.js} +1 -1
- package/web/dist/assets/{project-scope-context-DbO9a0ii.js → project-scope-context-wlB-Y0ii.js} +2 -2
- package/web/dist/assets/{queries-C_DEjjv2.js → queries-BPdWfTBN.js} +1 -1
- package/web/dist/assets/repo-git-YYivBJ2x.js +1 -0
- package/web/dist/assets/report-reader-gGAlVnKU.js +1 -0
- package/web/dist/assets/reports-B_xpuTvK.js +1 -0
- package/web/dist/assets/run-header-CxRJxVsR.js +2 -0
- package/web/dist/assets/skills-CEFXcZA5.js +1 -0
- package/web/dist/assets/skills-DFBiAuJG.js +1 -0
- package/web/dist/assets/{tab-link-CqVqRhuM.js → tab-link-CDrve3Rf.js} +1 -1
- package/web/dist/assets/task-changes-Bm4gjXBb.js +1 -0
- package/web/dist/assets/task-commits-DYHV533w.js +1 -0
- package/web/dist/assets/task-files-Bqvj0rbX.js +1 -0
- package/web/dist/assets/{task-github-item-ux8yQOHs.js → task-github-item-YkTV2--_.js} +1 -1
- package/web/dist/assets/{task-thread-DAnwO8BU.js → task-thread-CempX7k0.js} +9 -9
- package/web/dist/assets/thread-state-BpcneWuV.js +4 -0
- package/web/dist/assets/use-hand-to-agent-state-B9qtivFb.js +1 -0
- package/web/dist/assets/{useInfiniteQuery-DCWsxLiy.js → useInfiniteQuery-hrWYY8aw.js} +1 -1
- package/web/dist/assets/useQuery-BHmKi9_o.js +1 -0
- package/web/dist/assets/workflows-z-CqJ0JW.js +7 -0
- package/web/dist/assets/{ws-BXdlGFIZ.js → ws-Cn8d-Fu-.js} +1 -1
- package/web/dist/index.html +20 -14
- package/web/dist/live-worker.js +1 -1
- package/web/dist/assets/commit-diff-panel-DGx2t9Pw.js +0 -1
- package/web/dist/assets/diff-qq2vW6Xc.js +0 -3
- package/web/dist/assets/dropdown-menu-CjLqyqwB.js +0 -1
- package/web/dist/assets/git-toolbar-D0mTYtOj.js +0 -1
- package/web/dist/assets/github-DizdAh0y.js +0 -1
- package/web/dist/assets/global-activity-route-DMbPEZPP.js +0 -1
- package/web/dist/assets/index-D51Su-nT.js +0 -34
- package/web/dist/assets/preview-pane-connected-DQYoGd9W.js +0 -3
- package/web/dist/assets/repo-git-CSTwuYJ5.js +0 -1
- package/web/dist/assets/report-reader-B8D_6si1.js +0 -1
- package/web/dist/assets/reports-Dr312nK-.js +0 -1
- package/web/dist/assets/run-header-B8M6-fvb.js +0 -2
- package/web/dist/assets/skills-Bz-itxvq.js +0 -1
- package/web/dist/assets/task-changes-6F8fNE6I.js +0 -1
- package/web/dist/assets/task-commits-1TKZD8tP.js +0 -1
- package/web/dist/assets/task-files-BitTchRw.js +0 -1
- package/web/dist/assets/thread-state-COdb27sX.js +0 -4
- package/web/dist/assets/use-hand-to-agent-state-CZK9cWMq.js +0 -1
- package/web/dist/assets/useQuery-C2HBIY3e.js +0 -1
- package/web/dist/assets/workflows-CNnPn5Zx.js +0 -7
package/README.md
CHANGED
|
@@ -818,11 +818,11 @@ Explicit default-account model pins are checked against a fresh, nonempty host c
|
|
|
818
818
|
|
|
819
819
|
Omitted `--runner` inherits the parent's active runner. Same-runner workers inherit omitted model/account/effort; `--runner <claude|codex|opencode|pi|cursor|omp>` selecting another runner resolves that runner's project/default account and model without forwarding another provider's settings. `--backend` is a permanent alias of `--runner`; giving both with different values is refused as `invalid_input`. Worker `inspect` and `collect` still report the selected runner in a field named `backend`. `--model <model>` selects a supported model, subject to existing locks. `--effort <low|medium|high|xhigh|max>` pins reasoning effort on same-runner and mixed-runner spawn; omitted `--effort` still inherits the parent pin on same-runner spawn and drops it on mixed-runner spawn. Accepted identity and grants remain fixed across queuing, restart and Continue, including explicit empty grants. Changing or deleting an account registry entry does not rebind a worker. Missing accepted identity evidence or account homes, incompatible Claude state-file layouts, and conflicting later model locks refuse execution explicitly. Credentials and vendor configuration are never copied; each worker receives its own delegation credential, and unspecified native models stay unspecified.
|
|
820
820
|
|
|
821
|
-
Wait registers immediately. End the parent turn to release scheduler capacity; Squawk resumes it on a selected settled outcome or the finite deadline. `any` is the default, `one` requires exactly one worker, and `all` waits for every selected worker. Review, completion, failure, cancellation with proven termination, and destruction are outcomes. Timeout defaults to 600 seconds (1–
|
|
821
|
+
Wait registers immediately. End the parent turn to release scheduler capacity; Squawk resumes it on a selected settled outcome or the finite deadline. `any` is the default, `one` requires exactly one worker, and `all` waits for every selected worker. Review, completion, failure, cancellation with proven termination, and destruction are outcomes. Timeout defaults to 600 seconds (1–7200 accepted). `cancel-wait` is idempotent for the retained wait ID and cannot cancel a newer wait. Empty dependency-deadline wakes do not spend the automatic-wake budget; explicit timers and native-subagent safety deadlines remain charged. Timeout and wait cancellation report partial outcomes and unresolved workers, never cancel workers, and never automatically re-wait. Steering is attributed agent input and cannot answer a pending human question.
|
|
822
822
|
|
|
823
823
|
Parents and owned workers can converse in both directions; a worker may address only its parent. `send --kind request` opens a reply obligation whose ID is the message ID; `send --kind progress` (or `progress`) does not. Follow-ups clarify an existing request; only an explicit correlated `reply` settles it as replied. Retry a message with the same ID and exact payload, including deadline duration; changed payloads are rejected. Acceptance, provider delivery, reply, and task completion are separate facts, visible in the task transcript and `conversation` JSON.
|
|
824
824
|
|
|
825
|
-
Messages allow 100,000 characters each, with at most 32 undelivered inputs per recipient, 1,024 messages per family, and 32 pending requests. Request deadlines default to 600 seconds, configurable per message with `--timeout-seconds 1–
|
|
825
|
+
Messages allow 100,000 characters each, with at most 32 undelivered inputs per recipient, 1,024 messages per family, and 32 pending requests. Request deadlines default to 600 seconds, configurable per message with `--timeout-seconds 1–7200`. Request waits use the same limits and `one`/`any`/`all` modes as worker waits, and each run has one active wait. Incoming conversation can interrupt a parked wait without settling its requests. `cancel-request` cancels an obligation; `cancel-wait` only stops waiting. Completion without a reply, failure, cancellation, destruction, timeout, or sender closure settle obligations distinctly. Late replies remain visible without reopening them.
|
|
826
826
|
|
|
827
827
|
Messages reach a live recipient as soon as they are accepted, including mid-turn: Claude, Codex, Pi, OMP and OpenCode steer them into the running turn, and the model reads them at its next step. Cursor delivers at the turn boundary, because a second prompt would cancel its running turn. Pending conversations go together, in order, up to 32 messages and 100,000 formatted characters per batch; a single valid message is never split. Every message keeps its ID, sender, delivery receipt and request outcome; receipts show queued, delivered and read (when the agent's harness can tell) separately. A pending human question holds messages until it is answered, then they follow right behind the answer. The thread's Details distinguish creation, delivery confirmation and event-recording times.
|
|
828
828
|
|
|
@@ -288,12 +288,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
288
288
|
"/api/v1/tools/ask": {
|
|
289
289
|
$post: {
|
|
290
290
|
output: {
|
|
291
|
-
|
|
292
|
-
code: 'unavailable';
|
|
291
|
+
code: 'capability_revoked';
|
|
293
292
|
message: string;
|
|
294
293
|
};
|
|
295
294
|
outputFormat: "json";
|
|
296
|
-
status:
|
|
295
|
+
status: 401;
|
|
297
296
|
input: {
|
|
298
297
|
json: {
|
|
299
298
|
questions: {
|
|
@@ -311,11 +310,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
311
310
|
};
|
|
312
311
|
} | {
|
|
313
312
|
output: {
|
|
314
|
-
|
|
313
|
+
ok: false;
|
|
314
|
+
code: 'unavailable';
|
|
315
315
|
message: string;
|
|
316
316
|
};
|
|
317
317
|
outputFormat: "json";
|
|
318
|
-
status:
|
|
318
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
319
319
|
input: {
|
|
320
320
|
json: {
|
|
321
321
|
questions: {
|
|
@@ -383,12 +383,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
383
383
|
"/api/v1/tools/cancel-wait": {
|
|
384
384
|
$post: {
|
|
385
385
|
output: {
|
|
386
|
-
|
|
387
|
-
code: 'unavailable';
|
|
386
|
+
code: 'capability_revoked';
|
|
388
387
|
message: string;
|
|
389
388
|
};
|
|
390
389
|
outputFormat: "json";
|
|
391
|
-
status:
|
|
390
|
+
status: 401;
|
|
392
391
|
input: {
|
|
393
392
|
json: {
|
|
394
393
|
wait_id: string;
|
|
@@ -396,11 +395,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
396
395
|
};
|
|
397
396
|
} | {
|
|
398
397
|
output: {
|
|
399
|
-
|
|
398
|
+
cancelled: false;
|
|
399
|
+
code: 'unavailable';
|
|
400
400
|
message: string;
|
|
401
401
|
};
|
|
402
402
|
outputFormat: "json";
|
|
403
|
-
status:
|
|
403
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
404
404
|
input: {
|
|
405
405
|
json: {
|
|
406
406
|
wait_id: string;
|
|
@@ -448,12 +448,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
448
448
|
"/api/v1/tools/done": {
|
|
449
449
|
$post: {
|
|
450
450
|
output: {
|
|
451
|
-
|
|
452
|
-
code: 'unavailable';
|
|
451
|
+
code: 'capability_revoked';
|
|
453
452
|
message: string;
|
|
454
453
|
};
|
|
455
454
|
outputFormat: "json";
|
|
456
|
-
status:
|
|
455
|
+
status: 401;
|
|
457
456
|
input: {
|
|
458
457
|
json: {
|
|
459
458
|
summary?: string | undefined;
|
|
@@ -461,11 +460,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
461
460
|
};
|
|
462
461
|
} | {
|
|
463
462
|
output: {
|
|
464
|
-
|
|
463
|
+
ok: false;
|
|
464
|
+
code: 'unavailable';
|
|
465
465
|
message: string;
|
|
466
466
|
};
|
|
467
467
|
outputFormat: "json";
|
|
468
|
-
status:
|
|
468
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
469
469
|
input: {
|
|
470
470
|
json: {
|
|
471
471
|
summary?: string | undefined;
|
|
@@ -533,13 +533,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
533
533
|
"/api/v1/tools/preview-stop": {
|
|
534
534
|
$post: {
|
|
535
535
|
output: {
|
|
536
|
-
|
|
537
|
-
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
536
|
+
code: 'capability_revoked';
|
|
538
537
|
message: string;
|
|
539
|
-
hint: string;
|
|
540
538
|
};
|
|
541
539
|
outputFormat: "json";
|
|
542
|
-
status:
|
|
540
|
+
status: 401;
|
|
543
541
|
input: {
|
|
544
542
|
json: {
|
|
545
543
|
port: number;
|
|
@@ -548,11 +546,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
548
546
|
};
|
|
549
547
|
} | {
|
|
550
548
|
output: {
|
|
551
|
-
|
|
549
|
+
ok: boolean;
|
|
550
|
+
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
552
551
|
message: string;
|
|
552
|
+
hint: string;
|
|
553
553
|
};
|
|
554
554
|
outputFormat: "json";
|
|
555
|
-
status:
|
|
555
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
556
556
|
input: {
|
|
557
557
|
json: {
|
|
558
558
|
port: number;
|
|
@@ -565,13 +565,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
565
565
|
"/api/v1/tools/preview-serve": {
|
|
566
566
|
$post: {
|
|
567
567
|
output: {
|
|
568
|
-
|
|
569
|
-
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
568
|
+
code: 'capability_revoked';
|
|
570
569
|
message: string;
|
|
571
|
-
hint: string;
|
|
572
570
|
};
|
|
573
571
|
outputFormat: "json";
|
|
574
|
-
status:
|
|
572
|
+
status: 401;
|
|
575
573
|
input: {
|
|
576
574
|
json: {
|
|
577
575
|
command: string;
|
|
@@ -583,11 +581,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
583
581
|
};
|
|
584
582
|
} | {
|
|
585
583
|
output: {
|
|
586
|
-
|
|
584
|
+
ok: boolean;
|
|
585
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
587
586
|
message: string;
|
|
587
|
+
hint: string;
|
|
588
588
|
};
|
|
589
589
|
outputFormat: "json";
|
|
590
|
-
status:
|
|
590
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
591
591
|
input: {
|
|
592
592
|
json: {
|
|
593
593
|
command: string;
|
|
@@ -603,12 +603,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
603
603
|
"/api/v1/tools/schedule-task": {
|
|
604
604
|
$post: {
|
|
605
605
|
output: {
|
|
606
|
-
|
|
607
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
606
|
+
code: 'capability_revoked';
|
|
608
607
|
message: string;
|
|
609
608
|
};
|
|
610
609
|
outputFormat: "json";
|
|
611
|
-
status:
|
|
610
|
+
status: 401;
|
|
612
611
|
input: {
|
|
613
612
|
json: {
|
|
614
613
|
at?: string | undefined;
|
|
@@ -625,11 +624,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
625
624
|
};
|
|
626
625
|
} | {
|
|
627
626
|
output: {
|
|
628
|
-
|
|
627
|
+
ok: false;
|
|
628
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
629
629
|
message: string;
|
|
630
630
|
};
|
|
631
631
|
outputFormat: "json";
|
|
632
|
-
status:
|
|
632
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
633
633
|
input: {
|
|
634
634
|
json: {
|
|
635
635
|
at?: string | undefined;
|
|
@@ -684,12 +684,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
684
684
|
"/api/v1/tools/scheduled-tasks": {
|
|
685
685
|
$post: {
|
|
686
686
|
output: {
|
|
687
|
-
|
|
688
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
687
|
+
code: 'capability_revoked';
|
|
689
688
|
message: string;
|
|
690
689
|
};
|
|
691
690
|
outputFormat: "json";
|
|
692
|
-
status:
|
|
691
|
+
status: 401;
|
|
693
692
|
input: {
|
|
694
693
|
json: {
|
|
695
694
|
at?: string | undefined;
|
|
@@ -722,11 +721,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
722
721
|
};
|
|
723
722
|
} | {
|
|
724
723
|
output: {
|
|
725
|
-
|
|
724
|
+
ok: false;
|
|
725
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
726
726
|
message: string;
|
|
727
727
|
};
|
|
728
728
|
outputFormat: "json";
|
|
729
|
-
status:
|
|
729
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
730
730
|
input: {
|
|
731
731
|
json: {
|
|
732
732
|
at?: string | undefined;
|
package/dist/ci-wait/errors.js
CHANGED
|
@@ -207,7 +207,7 @@ const WAIT_FIELD_RULES = {
|
|
|
207
207
|
pr: 'must be an HTTPS GitHub pull request URL (kind "pr")',
|
|
208
208
|
until: 'must be "checks", "merge" or "merge_or_blocked" (kind "pr")',
|
|
209
209
|
wake_on_conflict: 'must be true or false (kind "pr")',
|
|
210
|
-
timeout_seconds: 'must be an integer between 1 and 7200 (kind "pr"
|
|
210
|
+
timeout_seconds: 'must be an integer between 1 and 7200 (kind "pr", "process", "worker", "request" or "peer")',
|
|
211
211
|
worker_ids: 'must be 1 to 32 unique worker ids you own (kind "worker")',
|
|
212
212
|
request_ids: 'must be 1 to 32 unique ids of requests you sent (kind "request")',
|
|
213
213
|
peer_ids: 'must be 1 to 32 unique ids of peer root tasks in this project (kind "peer")',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/ci-wait/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAwE,MAAM,oCAAoC,CAAC;AAChK,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAKrE,8FAA8F;AAC9F,MAAM,QAAQ,GAAoC;IAChD,aAAa,EAAE,qDAAqD;IACpE,gBAAgB,EAAE,0GAA0G;IAC5H,UAAU,EAAE,yCAAyC;IACrD,cAAc,EAAE,uDAAuD;IACvE,eAAe,EAAE,yEAAyE;IAC1F,QAAQ,EAAE,0DAA0D;IACpE,WAAW,EAAE,4DAA4D;IACzE,aAAa,EAAE,iEAAiE;IAChF,eAAe,EAAE,4BAA4B;IAC7C,cAAc,EAAE,wEAAwE;IACxF,YAAY,EAAE,yFAAyF;IACvG,cAAc,EAAE,sEAAsE;IACtF,WAAW,EAAE,2EAA2E;IACxF,YAAY,EAAE,8FAA8F;IAC5G,gBAAgB,EAAE,2FAA2F;IAC7G,kBAAkB,EAAE,sEAAsE;IAC1F,WAAW,EAAE,mFAAmF;IAChG,eAAe,EAAE,4EAA4E;IAC7F,YAAY,EAAE,qFAAqF;IACnG,gBAAgB,EAAE,sGAAsG;IACxH,cAAc,EAAE,4EAA4E;IAC5F,aAAa,EAAE,gEAAgE;IAC/E,gBAAgB,EAAE,+FAA+F;IACjH,mBAAmB,EAAE,2EAA2E;IAChG,mBAAmB,EAAE,sIAAsI;I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C,CAAC;CACF"}
|
package/dist/ci-wait/tools.js
CHANGED
|
@@ -38,7 +38,7 @@ function flatWaitInputSchema() {
|
|
|
38
38
|
request_ids: field('request_ids', 'kind "request": the requests you sent, to a worker, your parent or a peer task, to wait for a reply to (1–32 unique ids).'),
|
|
39
39
|
peer_ids: field('peer_ids', 'kind "peer": the peer root tasks of this project to wait for (1–32 unique task ids; find them with `hsq message tasks`). A message from one of them, or one of them settling, ends the wait; other messages wake you and keep it open.'),
|
|
40
40
|
mode: field('mode', 'kind "worker" or "request": "any" wakes you when one selected id settles (default), "all" when every one has, "one" takes exactly one id.'),
|
|
41
|
-
timeout_seconds: field('timeout_seconds', 'The deadline in seconds. kind "pr": 1–7200, default 1800. kind "worker", "request" or "peer": 1–
|
|
41
|
+
timeout_seconds: field('timeout_seconds', 'The deadline in seconds. kind "pr": 1–7200, default 1800. kind "worker", "request" or "peer": 1–7200, default 600 (the default shown is the pr one). kind "process": 1–7200, default 1800.'),
|
|
42
42
|
seconds: field('seconds', 'kind "timer": seconds until the wake (60–7200).'),
|
|
43
43
|
pid: field('pid', 'kind "process": the PID of the background command: the `pid` the job start command printed.'),
|
|
44
44
|
exit_file: field('exit_file', 'kind "process": optional. Only a file that your own wrapper writes the exit code to, in $TMPDIR or the worktree, with a new name for each command. Leave it out for a command that is already running or that writes its status file somewhere else.'),
|
|
@@ -295,7 +295,7 @@ export declare const inboxReceiptResultSchema: z.ZodObject<{
|
|
|
295
295
|
export type InboxReceiptResult = z.infer<typeof inboxReceiptResultSchema>;
|
|
296
296
|
/** Resume rounds may outlast ordinary message exchanges; waits keep their own shorter bound. */
|
|
297
297
|
export declare const MAX_RESUME_REQUEST_SECONDS = 86400;
|
|
298
|
-
export declare const MAX_CONVERSATION_REQUEST_SECONDS =
|
|
298
|
+
export declare const MAX_CONVERSATION_REQUEST_SECONDS = 7200;
|
|
299
299
|
export declare const DEFAULT_CONVERSATION_REQUEST_SECONDS = 600;
|
|
300
300
|
export declare const conversationSendRequestSchema: z.ZodObject<{
|
|
301
301
|
id: z.ZodUUID;
|
|
@@ -343,7 +343,10 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
343
343
|
summary: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
344
344
|
state: z.ZodLiteral<"available">;
|
|
345
345
|
text: z.ZodString;
|
|
346
|
-
source: z.
|
|
346
|
+
source: z.ZodEnum<{
|
|
347
|
+
assistant: "assistant";
|
|
348
|
+
failure: "failure";
|
|
349
|
+
}>;
|
|
347
350
|
seq: z.ZodNumber;
|
|
348
351
|
truncated: z.ZodBoolean;
|
|
349
352
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -501,7 +504,10 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
501
504
|
summary: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
502
505
|
state: z.ZodLiteral<"available">;
|
|
503
506
|
text: z.ZodString;
|
|
504
|
-
source: z.
|
|
507
|
+
source: z.ZodEnum<{
|
|
508
|
+
assistant: "assistant";
|
|
509
|
+
failure: "failure";
|
|
510
|
+
}>;
|
|
505
511
|
seq: z.ZodNumber;
|
|
506
512
|
truncated: z.ZodBoolean;
|
|
507
513
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1905,7 +1911,7 @@ export declare const workerCancelWaitResultSchema: z.ZodObject<{
|
|
|
1905
1911
|
export type WorkerCancelWaitResult = z.infer<typeof workerCancelWaitResultSchema>;
|
|
1906
1912
|
/**
|
|
1907
1913
|
* `cez message wait --peer` (hearsay-tools/cezarion#1995): a root task waits on 1–32 named peer
|
|
1908
|
-
* root tasks, with a deadline of 1–
|
|
1914
|
+
* root tasks, with a deadline of 1–7,200 s (default 600). The wait answers as its list entry does:
|
|
1909
1915
|
* its phase, and once it resolved, why and from which peer.
|
|
1910
1916
|
*/
|
|
1911
1917
|
export declare const peerWaitRequestSchema: z.ZodObject<{
|
package/dist/contract/index.js
CHANGED
|
@@ -94,7 +94,7 @@ var inboxReceiptResultSchema = z2.object({
|
|
|
94
94
|
status: z2.enum(["acknowledged", "already-acknowledged", "released"])
|
|
95
95
|
}).strict();
|
|
96
96
|
var MAX_RESUME_REQUEST_SECONDS = 86400;
|
|
97
|
-
var MAX_CONVERSATION_REQUEST_SECONDS =
|
|
97
|
+
var MAX_CONVERSATION_REQUEST_SECONDS = 7200;
|
|
98
98
|
var DEFAULT_CONVERSATION_REQUEST_SECONDS = 600;
|
|
99
99
|
var conversationSendRequestSchema = z2.object({
|
|
100
100
|
id: z2.uuid(),
|
|
@@ -104,7 +104,7 @@ var conversationSendRequestSchema = z2.object({
|
|
|
104
104
|
text: z2.string().min(1).max(1e5).refine((text) => text.trim().length > 0),
|
|
105
105
|
timeoutSeconds: z2.number().int().min(1).max(MAX_RESUME_REQUEST_SECONDS).default(DEFAULT_CONVERSATION_REQUEST_SECONDS),
|
|
106
106
|
resume: z2.boolean().optional()
|
|
107
|
-
}).strict().refine((value) => value.timeoutSeconds <= MAX_CONVERSATION_REQUEST_SECONDS || value.resume === true && value.kind === "request", { path: ["timeoutSeconds"], message: "Only --resume requests accept deadlines above
|
|
107
|
+
}).strict().refine((value) => value.timeoutSeconds <= MAX_CONVERSATION_REQUEST_SECONDS || value.resume === true && value.kind === "request", { path: ["timeoutSeconds"], message: "Only --resume requests accept deadlines above 7200 seconds (maximum 86400)" }).refine((value) => (value.kind === "reply" || value.kind === "follow-up") === (value.requestId !== void 0), { message: "Replies and follow-ups require a request ID; new messages must omit it" }).refine((value) => !value.resume || value.kind === "request" || value.kind === "progress", { message: "--resume requires a new request or progress instruction" });
|
|
108
108
|
var conversationSendEffectSchema = z2.enum(["applied", "unchanged", "refused", "unknown"]);
|
|
109
109
|
var conversationSendResultSchema = z2.object({ message: conversationMessageSchema, delivery: z2.enum(["queued", "delivered", "consumed", "not-delivered"]), outcome: requestOutcomeSchema.optional(), effect: conversationSendEffectSchema.optional() }).strict();
|
|
110
110
|
var conversationInspectRequestSchema = z2.object({ recipientRunId: z2.uuid(), before: conversationCursorSchema.optional() }).strict();
|
|
@@ -112,7 +112,7 @@ var conversationCancelRequestSchema = z2.object({ requestId: z2.uuid() }).strict
|
|
|
112
112
|
var requestWaitRequestSchema = z2.object({
|
|
113
113
|
requestIds: z2.array(z2.uuid()).min(1).max(32).refine((ids) => new Set(ids).size === ids.length),
|
|
114
114
|
mode: z2.enum(["one", "any", "all"]).optional(),
|
|
115
|
-
timeoutSeconds: z2.number().int().min(1).max(
|
|
115
|
+
timeoutSeconds: z2.number().int().min(1).max(7200).default(600)
|
|
116
116
|
}).strict().refine((value) => value.mode !== "one" || value.requestIds.length === 1, { message: "one requires exactly one request" });
|
|
117
117
|
|
|
118
118
|
// ../contract/src/delegation.ts
|
|
@@ -616,7 +616,8 @@ var workerCollectedResultSchema = z8.object({
|
|
|
616
616
|
workspace: workerWorkspaceSchema.extend({ state: z8.enum(["available", "unavailable", "deleted"]).optional() }),
|
|
617
617
|
cleanup: z8.enum(["retained", "requested", "terminating", "cleaning", "complete", "incomplete"]),
|
|
618
618
|
summary: z8.discriminatedUnion("state", [
|
|
619
|
-
|
|
619
|
+
// `failure`: the worker failed, and the text names the runner's failure reason (hearsay-tools/squawk#3337).
|
|
620
|
+
z8.object({ state: z8.literal("available"), text: z8.string().min(1).max(4e3), source: z8.enum(["assistant", "failure"]), seq: z8.number().int().nonnegative(), truncated: z8.boolean() }).strict(),
|
|
620
621
|
unavailableEvidenceSchema,
|
|
621
622
|
deletedEvidenceSchema
|
|
622
623
|
]),
|
|
@@ -712,7 +713,7 @@ var workerSteerRequestSchema = z8.object({
|
|
|
712
713
|
}).strict();
|
|
713
714
|
var workerWaitRequestSchema = z8.object({
|
|
714
715
|
workerIds: workerIdsSchema,
|
|
715
|
-
timeoutSeconds: z8.number().int().min(1).max(
|
|
716
|
+
timeoutSeconds: z8.number().int().min(1).max(7200).default(600),
|
|
716
717
|
mode: workerWaitModeSchema.optional()
|
|
717
718
|
}).strict().refine((request) => request.mode !== "one" || request.workerIds.length === 1, { message: "one mode requires exactly one worker" });
|
|
718
719
|
var inboxClaimSchema = z8.object({
|
|
@@ -845,7 +846,7 @@ var workerCancelWaitRequestSchema = z8.object({ waitId: z8.uuid() }).strict();
|
|
|
845
846
|
var workerCancelWaitResultSchema = z8.object({ wait: workerWaitSchema }).strict();
|
|
846
847
|
var peerWaitRequestSchema = z8.object({
|
|
847
848
|
peerIds: workerIdsSchema,
|
|
848
|
-
timeoutSeconds: z8.number().int().min(1).max(
|
|
849
|
+
timeoutSeconds: z8.number().int().min(1).max(7200).default(600)
|
|
849
850
|
}).strict();
|
|
850
851
|
var peerWaitResultSchema = z8.discriminatedUnion("reason", [
|
|
851
852
|
z8.object({ reason: z8.literal("message"), peerRunId: z8.uuid(), messageId: z8.uuid() }).strict(),
|
|
@@ -1862,7 +1863,7 @@ var PROCESS_TIMEOUT_DEFAULT_SECONDS = 1800;
|
|
|
1862
1863
|
var PROCESS_TIMEOUT_MAX_SECONDS = 7200;
|
|
1863
1864
|
var PROCESS_EXIT_FILE_MAX = 4096;
|
|
1864
1865
|
var PEER_WAIT_DEFAULT_SECONDS = 600;
|
|
1865
|
-
var PEER_WAIT_MAX_SECONDS =
|
|
1866
|
+
var PEER_WAIT_MAX_SECONDS = 7200;
|
|
1866
1867
|
var SUBAGENT_WAIT_DEADLINE_SECONDS = 1800;
|
|
1867
1868
|
var SUBAGENT_WAIT_GRACE_SECONDS = 15;
|
|
1868
1869
|
var SUBAGENT_WAIT_CHILD_LIMIT = 32;
|
|
@@ -1944,7 +1945,7 @@ var workerWaitEntrySchema = z16.object({
|
|
|
1944
1945
|
kind: z16.literal("worker"),
|
|
1945
1946
|
// Cezar's completion wait has neither: it ends when its workers settle (hearsay-tools/cezarion#1301).
|
|
1946
1947
|
deadline: z16.iso.datetime().optional(),
|
|
1947
|
-
timeoutSeconds: z16.number().int().min(1).max(
|
|
1948
|
+
timeoutSeconds: z16.number().int().min(1).max(PEER_WAIT_MAX_SECONDS).optional(),
|
|
1948
1949
|
mode: workerWaitModeSchema.optional(),
|
|
1949
1950
|
workerIds: workerIdsSchema.optional(),
|
|
1950
1951
|
revisions: z16.array(z16.object({ workerId: z16.uuid(), revision: z16.number().int().nonnegative() }).strict()).max(32).optional(),
|
|
@@ -2640,6 +2641,8 @@ var runRecordSchema = z19.object({
|
|
|
2640
2641
|
autoResumeAt: z19.string().optional(),
|
|
2641
2642
|
/** Consecutive automatic resumes since the last human turn, against the safety cap. */
|
|
2642
2643
|
autoResumeAttempts: z19.number().optional(),
|
|
2644
|
+
/** Why the hold waits: `usage-limit`, or a `provider-error` retried with back-off (hearsay-tools/squawk#3337). */
|
|
2645
|
+
autoResumeReason: z19.enum(["usage-limit", "provider-error"]).optional(),
|
|
2643
2646
|
createdAt: z19.string(),
|
|
2644
2647
|
startedAt: z19.string().optional(),
|
|
2645
2648
|
finishedAt: z19.string().optional(),
|
|
@@ -2769,6 +2772,8 @@ var runSummarySchema = z19.object({
|
|
|
2769
2772
|
* it, so without it here a cross-project row would show a red "failed" dot and land in
|
|
2770
2773
|
* Recently finished for work that is simply waiting for its appointment. */
|
|
2771
2774
|
autoResumeAt: z19.string().optional(),
|
|
2775
|
+
/** Which hold it is (hearsay-tools/squawk#3337): the row names a provider error instead of a usage limit. */
|
|
2776
|
+
autoResumeReason: runRecordSchema.shape.autoResumeReason,
|
|
2772
2777
|
/** The workflow the run executes — the global Tasks page shows it in a column and groups by
|
|
2773
2778
|
* it. Always present on the record (`RunRecord.workflow`), so required here. The display
|
|
2774
2779
|
* name, which reads a `(planned)` chain as its first agent's name, is `workflowLabel` below. */
|
|
@@ -2853,6 +2858,7 @@ var SUMMARY_OPTIONAL_KEYS = [
|
|
|
2853
2858
|
"finishedAt",
|
|
2854
2859
|
"seenAt",
|
|
2855
2860
|
"autoResumeAt",
|
|
2861
|
+
"autoResumeReason",
|
|
2856
2862
|
"branch",
|
|
2857
2863
|
"startedAt",
|
|
2858
2864
|
"pullRequestUrl",
|
package/dist/contract/runs.d.ts
CHANGED
|
@@ -1966,6 +1966,10 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
1966
1966
|
hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
|
|
1967
1967
|
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
1968
1968
|
autoResumeAttempts: z.ZodOptional<z.ZodNumber>;
|
|
1969
|
+
autoResumeReason: z.ZodOptional<z.ZodEnum<{
|
|
1970
|
+
"provider-error": "provider-error";
|
|
1971
|
+
"usage-limit": "usage-limit";
|
|
1972
|
+
}>>;
|
|
1969
1973
|
createdAt: z.ZodString;
|
|
1970
1974
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
1971
1975
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -3892,6 +3896,10 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
3892
3896
|
hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
|
|
3893
3897
|
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
3894
3898
|
autoResumeAttempts: z.ZodOptional<z.ZodNumber>;
|
|
3899
|
+
autoResumeReason: z.ZodOptional<z.ZodEnum<{
|
|
3900
|
+
"provider-error": "provider-error";
|
|
3901
|
+
"usage-limit": "usage-limit";
|
|
3902
|
+
}>>;
|
|
3895
3903
|
createdAt: z.ZodString;
|
|
3896
3904
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
3897
3905
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -4178,6 +4186,10 @@ export declare const runSummarySchema: z.ZodObject<{
|
|
|
4178
4186
|
seenAt: z.ZodOptional<z.ZodString>;
|
|
4179
4187
|
archived: z.ZodBoolean;
|
|
4180
4188
|
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
4189
|
+
autoResumeReason: z.ZodOptional<z.ZodEnum<{
|
|
4190
|
+
"provider-error": "provider-error";
|
|
4191
|
+
"usage-limit": "usage-limit";
|
|
4192
|
+
}>>;
|
|
4181
4193
|
workflow: z.ZodString;
|
|
4182
4194
|
branch: z.ZodOptional<z.ZodString>;
|
|
4183
4195
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -4342,6 +4354,10 @@ export declare const runIndexEntrySchema: z.ZodObject<{
|
|
|
4342
4354
|
seenAt: z.ZodOptional<z.ZodString>;
|
|
4343
4355
|
archived: z.ZodBoolean;
|
|
4344
4356
|
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
4357
|
+
autoResumeReason: z.ZodOptional<z.ZodEnum<{
|
|
4358
|
+
"provider-error": "provider-error";
|
|
4359
|
+
"usage-limit": "usage-limit";
|
|
4360
|
+
}>>;
|
|
4345
4361
|
workflow: z.ZodString;
|
|
4346
4362
|
branch: z.ZodOptional<z.ZodString>;
|
|
4347
4363
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -4585,6 +4601,10 @@ export declare const archivedRunsResponseSchema: z.ZodObject<{
|
|
|
4585
4601
|
seenAt: z.ZodOptional<z.ZodString>;
|
|
4586
4602
|
archived: z.ZodBoolean;
|
|
4587
4603
|
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
4604
|
+
autoResumeReason: z.ZodOptional<z.ZodEnum<{
|
|
4605
|
+
"provider-error": "provider-error";
|
|
4606
|
+
"usage-limit": "usage-limit";
|
|
4607
|
+
}>>;
|
|
4588
4608
|
workflow: z.ZodString;
|
|
4589
4609
|
branch: z.ZodOptional<z.ZodString>;
|
|
4590
4610
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -4756,6 +4776,10 @@ export declare const runsSearchResponseSchema: z.ZodObject<{
|
|
|
4756
4776
|
seenAt: z.ZodOptional<z.ZodString>;
|
|
4757
4777
|
archived: z.ZodBoolean;
|
|
4758
4778
|
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
4779
|
+
autoResumeReason: z.ZodOptional<z.ZodEnum<{
|
|
4780
|
+
"provider-error": "provider-error";
|
|
4781
|
+
"usage-limit": "usage-limit";
|
|
4782
|
+
}>>;
|
|
4759
4783
|
workflow: z.ZodString;
|
|
4760
4784
|
branch: z.ZodOptional<z.ZodString>;
|
|
4761
4785
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -6577,6 +6601,10 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
6577
6601
|
hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
|
|
6578
6602
|
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
6579
6603
|
autoResumeAttempts: z.ZodOptional<z.ZodNumber>;
|
|
6604
|
+
autoResumeReason: z.ZodOptional<z.ZodEnum<{
|
|
6605
|
+
"provider-error": "provider-error";
|
|
6606
|
+
"usage-limit": "usage-limit";
|
|
6607
|
+
}>>;
|
|
6580
6608
|
createdAt: z.ZodString;
|
|
6581
6609
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
6582
6610
|
finishedAt: z.ZodOptional<z.ZodString>;
|
package/dist/contract/waits.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare const PROCESS_TIMEOUT_MAX_SECONDS = 7200;
|
|
|
30
30
|
export declare const PROCESS_EXIT_FILE_MAX = 4096;
|
|
31
31
|
/** A peer wait's deadline, and a request or worker wait's (hearsay-tools/cezarion#1995). */
|
|
32
32
|
export declare const PEER_WAIT_DEFAULT_SECONDS = 600;
|
|
33
|
-
export declare const PEER_WAIT_MAX_SECONDS =
|
|
33
|
+
export declare const PEER_WAIT_MAX_SECONDS = 7200;
|
|
34
34
|
/** A subagent wait (hearsay-tools/cezarion#2431): its safety deadline after the last child event,
|
|
35
35
|
* the grace after the last child ends before Cezar wakes the parent, and its child bound. */
|
|
36
36
|
export declare const SUBAGENT_WAIT_DEADLINE_SECONDS = 1800;
|
|
@@ -117,6 +117,10 @@ export declare const workspaceRunSummaryEventSchema: z.ZodObject<{
|
|
|
117
117
|
seenAt: z.ZodOptional<z.ZodString>;
|
|
118
118
|
archived: z.ZodBoolean;
|
|
119
119
|
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
120
|
+
autoResumeReason: z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
"provider-error": "provider-error";
|
|
122
|
+
"usage-limit": "usage-limit";
|
|
123
|
+
}>>;
|
|
120
124
|
workflow: z.ZodString;
|
|
121
125
|
branch: z.ZodOptional<z.ZodString>;
|
|
122
126
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -309,6 +313,10 @@ export declare const runsIndexResponseSchema: z.ZodObject<{
|
|
|
309
313
|
seenAt: z.ZodOptional<z.ZodString>;
|
|
310
314
|
archived: z.ZodBoolean;
|
|
311
315
|
autoResumeAt: z.ZodOptional<z.ZodString>;
|
|
316
|
+
autoResumeReason: z.ZodOptional<z.ZodEnum<{
|
|
317
|
+
"provider-error": "provider-error";
|
|
318
|
+
"usage-limit": "usage-limit";
|
|
319
|
+
}>>;
|
|
312
320
|
workflow: z.ZodString;
|
|
313
321
|
branch: z.ZodOptional<z.ZodString>;
|
|
314
322
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -338,6 +338,18 @@ export class ClaudeCliRunner {
|
|
|
338
338
|
opts.onAgentInputConsumed?.(ids);
|
|
339
339
|
return true;
|
|
340
340
|
};
|
|
341
|
+
/** Claude Code retries a failing API call itself and says so in a `system`/`api_retry` frame.
|
|
342
|
+
* A note names the provider error, so a no-progress kill during the retries holds the run
|
|
343
|
+
* instead of failing it (hearsay-tools/squawk#3337). */
|
|
344
|
+
const noteApiRetry = (msg) => {
|
|
345
|
+
if (msg.type !== 'system' || msg.subtype !== 'api_retry')
|
|
346
|
+
return;
|
|
347
|
+
const frame = msg;
|
|
348
|
+
const status = typeof frame.error_status === 'number' ? ` ${frame.error_status}` : '';
|
|
349
|
+
const error = typeof frame.error === 'string' ? ` ${frame.error}` : '';
|
|
350
|
+
const attempt = typeof frame.attempt === 'number' ? ` (attempt ${frame.attempt})` : '';
|
|
351
|
+
onEvent?.({ type: 'note', message: `Claude API retry: API Error:${status}${error}${attempt}` });
|
|
352
|
+
};
|
|
341
353
|
/** Record the reported model and session, mark attempt work, and return the identity. */
|
|
342
354
|
const observeFrame = (msg) => {
|
|
343
355
|
if (msg.type === 'system' && msg.subtype === 'init') {
|
|
@@ -497,6 +509,7 @@ export class ClaudeCliRunner {
|
|
|
497
509
|
if (consumeReplay(msg))
|
|
498
510
|
return;
|
|
499
511
|
opts.onActivity?.();
|
|
512
|
+
noteApiRetry(msg);
|
|
500
513
|
const identity = observeFrame(msg);
|
|
501
514
|
if (scheduleRefusalRetry(msg, identity))
|
|
502
515
|
return;
|