@hearsay-tools/squawk 0.18.0-pr4151.8017 → 0.18.0-pr4153.8018
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/dist/ci-wait/client.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +5 -6
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/contract/index.d.ts +0 -1
- package/dist/contract/index.js +615 -622
- package/dist/contract/wait-limits.d.ts +0 -3
- package/dist/contract/waits.d.ts +441 -2
- package/dist/delegation/routes.d.ts +4 -4
- package/dist/delegation/transport.d.ts +15 -15
- package/dist/runs/run-archive.d.ts +72 -72
- package/dist/runs/run-decode.d.ts +72 -72
- package/dist/runs/run-exits.d.ts +336 -336
- package/dist/workflows/continuation-admission.d.ts +72 -72
- package/dist/workflows/run/compose.d.ts +1 -2
- package/dist/workflows/run/compose.js.map +1 -1
- package/dist/workflows/run/run-finish.js.map +1 -1
- package/dist/workflows/run/squawk-tools.d.ts +1 -2
- package/dist/workflows/run/squawk-tools.js.map +1 -1
- package/dist/workflows/run/wait-registration-tool.js +1 -2
- package/dist/workflows/run/wait-registration-tool.js.map +1 -1
- package/dist/workflows/run/wait-registration.d.ts +1 -2
- package/dist/workflows/run/wait-registration.js.map +1 -1
- package/dist/workflows/run/wait-registry.d.ts +1 -2
- package/dist/workflows/run/wait-registry.js.map +1 -1
- package/dist/workflows/run.d.ts +1 -2
- package/dist/workflows/run.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-Lxa13E8O.js → accounts-section-CJ1xR0FN.js} +1 -1
- package/web/dist/assets/{activity-motion-D-8GF_WP.js → activity-motion-C01GEN0y.js} +1 -1
- package/web/dist/assets/{activity-route-Bo-Cyzsz.js → activity-route-BZ1NIKSY.js} +1 -1
- package/web/dist/assets/{agent-config-section-BE239EYo.js → agent-config-section-DvFcRRLD.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-Bj5dO6F3.js → agent-defaults-section-BE88c2RN.js} +1 -1
- package/web/dist/assets/{appearance-C2v7z5MF.js → appearance-B9Z6lNEm.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-Ta3WlY1p.js → archive-on-merge-field-DtR7twJI.js} +1 -1
- package/web/dist/assets/attention-B6NEiTGm.js +1 -0
- package/web/dist/assets/{automations-route-DPpaFR0Q.js → automations-route-Dpa01C3j.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-CzY8bO3p.js → commit-diff-panel-CGjhxIPJ.js} +1 -1
- package/web/dist/assets/{diff-3jSM3IH7.js → diff-DQ18_bA-.js} +2 -2
- package/web/dist/assets/{diff-view-C3cwyYRv.js → diff-view-CMwe_Rx7.js} +1 -1
- package/web/dist/assets/{file-preview-B71T62DU.js → file-preview-_lAUlt5u.js} +1 -1
- package/web/dist/assets/{folder-browser-BTYMFLBY.js → folder-browser-Cy26Y6YK.js} +1 -1
- package/web/dist/assets/{git-toolbar-Dng31AhK.js → git-toolbar-BJM3pWHY.js} +1 -1
- package/web/dist/assets/{github-Cft2RNHM.js → github-aO7y0526.js} +1 -1
- package/web/dist/assets/{global-activity-route-CngRjBlD.js → global-activity-route-BWOfw2C5.js} +1 -1
- package/web/dist/assets/{index-MG3T7zFQ.js → index-D-Y1olb1.js} +5 -5
- package/web/dist/assets/{label-C9IGG0mW.js → label-CbEJ99h4.js} +1 -1
- package/web/dist/assets/{markdown-BDWm6oGX.js → markdown-BDWII3gy.js} +1 -1
- package/web/dist/assets/{notifications-section-BxIKJ1NF.js → notifications-section-Z_4IW83J.js} +1 -1
- package/web/dist/assets/{open-in-menu-LbTu2sP4.js → open-in-menu-21vcjK3t.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-CGQngtTw.js → preview-pane-connected-CxwvH4pt.js} +1 -1
- package/web/dist/assets/{project-location-B-18C392.js → project-location-CvJMe_Vp.js} +1 -1
- package/web/dist/assets/{project-router-DImKA81z.js → project-router-hhGBPlav.js} +1 -1
- package/web/dist/assets/project-scope-context-BiijuuWU.js +4 -0
- package/web/dist/assets/{projects-section-DQ1LxJ3A.js → projects-section-CQ34YFnT.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-C5AYB6Ig.js → prompt-templates-section-UIxQCLJq.js} +1 -1
- package/web/dist/assets/{queries-BaHOUYn4.js → queries-D6ioEk6c.js} +1 -1
- package/web/dist/assets/{reference-chip-CdOqXRll.js → reference-chip-B5br2cfV.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-BTdflMqO.js → remote-settings-notice-BWDpTH5W.js} +1 -1
- package/web/dist/assets/{repo-git-DChiMWrS.js → repo-git-U12bPaG-.js} +1 -1
- package/web/dist/assets/{report-reader-nV2G6iRk.js → report-reader-B5vipU-m.js} +1 -1
- package/web/dist/assets/{reports-CoQqVEy4.js → reports-Cdk8Dc-w.js} +1 -1
- package/web/dist/assets/{resources-section-CVaIlicS.js → resources-section-BCLu3v1Z.js} +1 -1
- package/web/dist/assets/{run-header-xPtXOBkm.js → run-header-gOqc0BKa.js} +1 -1
- package/web/dist/assets/{runners-DccsyraI.js → runners-5cgs0qUY.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-ixlEQ-MP.js → settings-agent-picker-CB7l8AW-.js} +1 -1
- package/web/dist/assets/{settings-shell-BwknM_fs.js → settings-shell-BUHHoCDs.js} +1 -1
- package/web/dist/assets/{sidebar-section-BNy-fRPU.js → sidebar-section-8dTKLdQw.js} +1 -1
- package/web/dist/assets/{skills-CKceHo5J.js → skills-thuBrq2s.js} +1 -1
- package/web/dist/assets/{tab-link-VCVNqxFc.js → tab-link-DaFUyEhe.js} +1 -1
- package/web/dist/assets/{task-changes-D4H5YbMo.js → task-changes-DSpeg6sX.js} +1 -1
- package/web/dist/assets/{task-commits-BNu0VTTf.js → task-commits-DRDRswBh.js} +1 -1
- package/web/dist/assets/{task-files-C8q8GHYK.js → task-files-Cevz9Mex.js} +1 -1
- package/web/dist/assets/{task-github-item-D5kHfnwY.js → task-github-item-DpLkKSKy.js} +1 -1
- package/web/dist/assets/{task-groups-C7yO8nMy.js → task-groups-CafTiSSz.js} +1 -1
- package/web/dist/assets/{task-thread-Dhts8Nbu.js → task-thread-BvM4rEQe.js} +1 -1
- package/web/dist/assets/{tasks-table-I_z4e7uI.js → tasks-table-DYjfmofR.js} +1 -1
- package/web/dist/assets/{thread-state-DV19z3BD.js → thread-state-A3TSuI5v.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-C6e6Mgi1.js → use-hand-to-agent-state-IepoiFbj.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-DR5UfhCS.js → useInfiniteQuery-B20OnjTe.js} +1 -1
- package/web/dist/assets/useQuery-BTg3x78A.js +1 -0
- package/web/dist/assets/{workflows-BNHmFZRc.js → workflows-B0TaHAzz.js} +1 -1
- package/web/dist/assets/{workspace-tools-UHJAnHEN.js → workspace-tools-B8sP_p5c.js} +1 -1
- package/web/dist/assets/{worktrees-section-B4XPx6R5.js → worktrees-section-BDfwadB6.js} +1 -1
- package/web/dist/assets/{ws-CH3zNFKR.js → ws-ExzR2_Yn.js} +1 -1
- package/web/dist/index.html +15 -15
- package/dist/contract/wait-tools.d.ts +0 -440
- package/web/dist/assets/attention-B1Ei1IW6.js +0 -1
- package/web/dist/assets/project-scope-context-D3_4Nfjk.js +0 -4
- package/web/dist/assets/useQuery-BMyCehPp.js +0 -1
|
@@ -20,6 +20,3 @@ export declare const SUBAGENT_WAIT_GRACE_SECONDS = 15;
|
|
|
20
20
|
export declare const SUBAGENT_WAIT_CHILD_LIMIT = 32;
|
|
21
21
|
/** The bound on every wait and done refusal's `message`; the run manager fits its own to it. */
|
|
22
22
|
export declare const WAIT_MESSAGE_MAX = 4096;
|
|
23
|
-
/** The bound on a timer or process wait's `note`, and the lowest PID a process wait accepts. */
|
|
24
|
-
export declare const NOTE_MAX = 512;
|
|
25
|
-
export declare const PID_MIN = 2;
|
package/dist/contract/waits.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
import type { PeerWaitView, WorkerCompletionWait, WorkerWait } from './delegation.ts';
|
|
3
3
|
import type { RunRecord } from './runs.ts';
|
|
4
4
|
import { isUsageLimitHold } from './usage-limit-hold.ts';
|
|
5
|
-
import { WAIT_LIMIT, LAST_WAITS_LIMIT, TIMER_MIN_SECONDS, TIMER_MAX_SECONDS, PROCESS_TIMEOUT_DEFAULT_SECONDS, PROCESS_TIMEOUT_MAX_SECONDS, PROCESS_EXIT_FILE_MAX, PEER_WAIT_DEFAULT_SECONDS, PEER_WAIT_MAX_SECONDS, SUBAGENT_WAIT_DEADLINE_SECONDS, SUBAGENT_WAIT_GRACE_SECONDS, SUBAGENT_WAIT_CHILD_LIMIT, WAIT_MESSAGE_MAX
|
|
5
|
+
import { WAIT_LIMIT, LAST_WAITS_LIMIT, TIMER_MIN_SECONDS, TIMER_MAX_SECONDS, PROCESS_TIMEOUT_DEFAULT_SECONDS, PROCESS_TIMEOUT_MAX_SECONDS, PROCESS_EXIT_FILE_MAX, PEER_WAIT_DEFAULT_SECONDS, PEER_WAIT_MAX_SECONDS, SUBAGENT_WAIT_DEADLINE_SECONDS, SUBAGENT_WAIT_GRACE_SECONDS, SUBAGENT_WAIT_CHILD_LIMIT, WAIT_MESSAGE_MAX } from './wait-limits.ts';
|
|
6
6
|
export { withRootLedger, requestsToPeers, workerWaitTargets, computeWaitingOn, asksHuman, asksQuestion, hasResolvedWait, resolveWaitingOn, type WaitingOnInput, type WorkerWaitTarget, } from './waiting-on.ts';
|
|
7
|
-
export { isUsageLimitHold, WAIT_LIMIT, LAST_WAITS_LIMIT, TIMER_MIN_SECONDS, TIMER_MAX_SECONDS, PROCESS_TIMEOUT_DEFAULT_SECONDS, PROCESS_TIMEOUT_MAX_SECONDS, PROCESS_EXIT_FILE_MAX, PEER_WAIT_DEFAULT_SECONDS, PEER_WAIT_MAX_SECONDS, SUBAGENT_WAIT_DEADLINE_SECONDS, SUBAGENT_WAIT_GRACE_SECONDS, SUBAGENT_WAIT_CHILD_LIMIT, WAIT_MESSAGE_MAX,
|
|
7
|
+
export { isUsageLimitHold, WAIT_LIMIT, LAST_WAITS_LIMIT, TIMER_MIN_SECONDS, TIMER_MAX_SECONDS, PROCESS_TIMEOUT_DEFAULT_SECONDS, PROCESS_TIMEOUT_MAX_SECONDS, PROCESS_EXIT_FILE_MAX, PEER_WAIT_DEFAULT_SECONDS, PEER_WAIT_MAX_SECONDS, SUBAGENT_WAIT_DEADLINE_SECONDS, SUBAGENT_WAIT_GRACE_SECONDS, SUBAGENT_WAIT_CHILD_LIMIT, WAIT_MESSAGE_MAX, };
|
|
8
8
|
/** `open` → `resolved` (its event fired or its deadline passed) → `delivered`, or `cancelled`. */
|
|
9
9
|
export declare const waitPhaseSchema: z.ZodEnum<{
|
|
10
10
|
cancelled: "cancelled";
|
|
@@ -931,6 +931,63 @@ export declare const waitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
931
931
|
}, z.core.$strict>>;
|
|
932
932
|
}, z.core.$strict>], "kind">;
|
|
933
933
|
export type Wait = z.infer<typeof waitSchema>;
|
|
934
|
+
export declare const squawkWaitRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
935
|
+
pr: z.ZodString;
|
|
936
|
+
until: z.ZodDefault<z.ZodEnum<{
|
|
937
|
+
checks: "checks";
|
|
938
|
+
merge: "merge";
|
|
939
|
+
merge_or_blocked: "merge_or_blocked";
|
|
940
|
+
}>>;
|
|
941
|
+
wake_on_conflict: z.ZodDefault<z.ZodBoolean>;
|
|
942
|
+
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
943
|
+
head_sha: z.ZodOptional<z.ZodString>;
|
|
944
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
945
|
+
kind: z.ZodLiteral<"pr">;
|
|
946
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
947
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
948
|
+
kind: z.ZodLiteral<"worker">;
|
|
949
|
+
worker_ids: z.ZodArray<z.ZodUUID>;
|
|
950
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
951
|
+
all: "all";
|
|
952
|
+
any: "any";
|
|
953
|
+
one: "one";
|
|
954
|
+
}>>;
|
|
955
|
+
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
956
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
957
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
958
|
+
kind: z.ZodLiteral<"request">;
|
|
959
|
+
request_ids: z.ZodArray<z.ZodUUID>;
|
|
960
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
961
|
+
all: "all";
|
|
962
|
+
any: "any";
|
|
963
|
+
one: "one";
|
|
964
|
+
}>>;
|
|
965
|
+
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
966
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
967
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
968
|
+
kind: z.ZodLiteral<"peer">;
|
|
969
|
+
peer_ids: z.ZodArray<z.ZodUUID>;
|
|
970
|
+
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
971
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
972
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
973
|
+
kind: z.ZodLiteral<"timer">;
|
|
974
|
+
seconds: z.ZodNumber;
|
|
975
|
+
note: z.ZodOptional<z.ZodString>;
|
|
976
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
977
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
978
|
+
kind: z.ZodLiteral<"process">;
|
|
979
|
+
pid: z.ZodNumber;
|
|
980
|
+
exit_file: z.ZodOptional<z.ZodString>;
|
|
981
|
+
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
982
|
+
note: z.ZodOptional<z.ZodString>;
|
|
983
|
+
}, z.core.$strict>], "kind">;
|
|
984
|
+
export type SquawkWaitRequest = z.infer<typeof squawkWaitRequestSchema>;
|
|
985
|
+
/** What a caller may send: the defaults (`until`, `wake_on_conflict`, `timeout_seconds`) still unset. */
|
|
986
|
+
export type SquawkWaitRequestInput = z.input<typeof squawkWaitRequestSchema>;
|
|
987
|
+
export declare const squawkCancelWaitRequestSchema: z.ZodObject<{
|
|
988
|
+
wait_id: z.ZodUUID;
|
|
989
|
+
}, z.core.$strict>;
|
|
990
|
+
export type SquawkCancelWaitRequest = z.infer<typeof squawkCancelWaitRequestSchema>;
|
|
934
991
|
export declare const openWaitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
935
992
|
wait_id: z.ZodUUID;
|
|
936
993
|
summary: z.ZodString;
|
|
@@ -1394,6 +1451,154 @@ export declare const waitRegistrationReceiptSchema: z.ZodObject<{
|
|
|
1394
1451
|
deduplicated: z.ZodBoolean;
|
|
1395
1452
|
}, z.core.$strict>;
|
|
1396
1453
|
export type WaitRegistrationReceipt = z.infer<typeof waitRegistrationReceiptSchema>;
|
|
1454
|
+
export declare const squawkWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1455
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
1456
|
+
ok: z.ZodLiteral<true>;
|
|
1457
|
+
effect: z.ZodOptional<z.ZodEnum<{
|
|
1458
|
+
applied: "applied";
|
|
1459
|
+
unchanged: "unchanged";
|
|
1460
|
+
}>>;
|
|
1461
|
+
deduplicated: z.ZodOptional<z.ZodBoolean>;
|
|
1462
|
+
replayed: z.ZodOptional<z.ZodBoolean>;
|
|
1463
|
+
wait_phase: z.ZodOptional<z.ZodEnum<{
|
|
1464
|
+
cancelled: "cancelled";
|
|
1465
|
+
delivered: "delivered";
|
|
1466
|
+
open: "open";
|
|
1467
|
+
resolved: "resolved";
|
|
1468
|
+
unavailable: "unavailable";
|
|
1469
|
+
}>>;
|
|
1470
|
+
wait_id: z.ZodUUID;
|
|
1471
|
+
kind: z.ZodEnum<{
|
|
1472
|
+
peer: "peer";
|
|
1473
|
+
pr: "pr";
|
|
1474
|
+
process: "process";
|
|
1475
|
+
request: "request";
|
|
1476
|
+
timer: "timer";
|
|
1477
|
+
worker: "worker";
|
|
1478
|
+
}>;
|
|
1479
|
+
deadline: z.ZodISODateTime;
|
|
1480
|
+
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1481
|
+
wait_id: z.ZodUUID;
|
|
1482
|
+
summary: z.ZodString;
|
|
1483
|
+
kind: z.ZodEnum<{
|
|
1484
|
+
peer: "peer";
|
|
1485
|
+
pr: "pr";
|
|
1486
|
+
process: "process";
|
|
1487
|
+
subagent: "subagent";
|
|
1488
|
+
timer: "timer";
|
|
1489
|
+
worker: "worker";
|
|
1490
|
+
}>;
|
|
1491
|
+
deadline: z.ZodISODateTime;
|
|
1492
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1493
|
+
wait_id: z.ZodUUID;
|
|
1494
|
+
summary: z.ZodString;
|
|
1495
|
+
kind: z.ZodLiteral<"human">;
|
|
1496
|
+
}, z.core.$strict>], "kind">>;
|
|
1497
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1498
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
1499
|
+
ok: z.ZodLiteral<false>;
|
|
1500
|
+
effect: z.ZodOptional<z.ZodEnum<{
|
|
1501
|
+
refused: "refused";
|
|
1502
|
+
unknown: "unknown";
|
|
1503
|
+
}>>;
|
|
1504
|
+
retained_wait: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1505
|
+
wait_id: z.ZodUUID;
|
|
1506
|
+
summary: z.ZodString;
|
|
1507
|
+
kind: z.ZodEnum<{
|
|
1508
|
+
peer: "peer";
|
|
1509
|
+
pr: "pr";
|
|
1510
|
+
process: "process";
|
|
1511
|
+
subagent: "subagent";
|
|
1512
|
+
timer: "timer";
|
|
1513
|
+
worker: "worker";
|
|
1514
|
+
}>;
|
|
1515
|
+
deadline: z.ZodISODateTime;
|
|
1516
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1517
|
+
wait_id: z.ZodUUID;
|
|
1518
|
+
summary: z.ZodString;
|
|
1519
|
+
kind: z.ZodLiteral<"human">;
|
|
1520
|
+
}, z.core.$strict>], "kind">>;
|
|
1521
|
+
code: z.ZodEnum<{
|
|
1522
|
+
authentication: "authentication";
|
|
1523
|
+
capability_revoked: "capability_revoked";
|
|
1524
|
+
capacity: "capacity";
|
|
1525
|
+
command_failed: "command_failed";
|
|
1526
|
+
denied_scope: "denied_scope";
|
|
1527
|
+
duplicate_deadline: "duplicate_deadline";
|
|
1528
|
+
exit_file_outside: "exit_file_outside";
|
|
1529
|
+
finish_requested: "finish_requested";
|
|
1530
|
+
generation_mismatch: "generation_mismatch";
|
|
1531
|
+
gh_missing: "gh_missing";
|
|
1532
|
+
inaccessible_pr: "inaccessible_pr";
|
|
1533
|
+
invalid_request: "invalid_request";
|
|
1534
|
+
malformed_data: "malformed_data";
|
|
1535
|
+
manager_disposed: "manager_disposed";
|
|
1536
|
+
messaging_off: "messaging_off";
|
|
1537
|
+
operation_conflict: "operation_conflict";
|
|
1538
|
+
outcome_unknown: "outcome_unknown";
|
|
1539
|
+
output_limit: "output_limit";
|
|
1540
|
+
persistence: "persistence";
|
|
1541
|
+
process_not_allowed: "process_not_allowed";
|
|
1542
|
+
process_not_owned: "process_not_owned";
|
|
1543
|
+
query_timeout: "query_timeout";
|
|
1544
|
+
registration_aborted: "registration_aborted";
|
|
1545
|
+
root_finish_pending: "root_finish_pending";
|
|
1546
|
+
run_cancelled: "run_cancelled";
|
|
1547
|
+
run_missing: "run_missing";
|
|
1548
|
+
run_not_running: "run_not_running";
|
|
1549
|
+
run_stopping: "run_stopping";
|
|
1550
|
+
session_closed: "session_closed";
|
|
1551
|
+
session_replaced: "session_replaced";
|
|
1552
|
+
timers_disabled: "timers_disabled";
|
|
1553
|
+
turn_changed: "turn_changed";
|
|
1554
|
+
unauthorized: "unauthorized";
|
|
1555
|
+
unavailable: "unavailable";
|
|
1556
|
+
unsupported_host: "unsupported_host";
|
|
1557
|
+
wait_conflict: "wait_conflict";
|
|
1558
|
+
wake_budget_spent: "wake_budget_spent";
|
|
1559
|
+
worker_execution_stopped: "worker_execution_stopped";
|
|
1560
|
+
worker_wait_pending: "worker_wait_pending";
|
|
1561
|
+
}>;
|
|
1562
|
+
message: z.ZodString;
|
|
1563
|
+
open_waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1564
|
+
wait_id: z.ZodUUID;
|
|
1565
|
+
summary: z.ZodString;
|
|
1566
|
+
kind: z.ZodEnum<{
|
|
1567
|
+
peer: "peer";
|
|
1568
|
+
pr: "pr";
|
|
1569
|
+
process: "process";
|
|
1570
|
+
subagent: "subagent";
|
|
1571
|
+
timer: "timer";
|
|
1572
|
+
worker: "worker";
|
|
1573
|
+
}>;
|
|
1574
|
+
deadline: z.ZodISODateTime;
|
|
1575
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1576
|
+
wait_id: z.ZodUUID;
|
|
1577
|
+
summary: z.ZodString;
|
|
1578
|
+
kind: z.ZodLiteral<"human">;
|
|
1579
|
+
}, z.core.$strict>], "kind">>>;
|
|
1580
|
+
}, z.core.$strict>], "ok">;
|
|
1581
|
+
export type SquawkWaitAnswer = z.infer<typeof squawkWaitAnswerSchema>;
|
|
1582
|
+
/**
|
|
1583
|
+
* `cezar_ask` (hearsay-tools/cezarion#1234): the user's answer, asked with a card. A question
|
|
1584
|
+
* without options is open, and the user types its answer. The wait it opens has no deadline.
|
|
1585
|
+
* `context` is required here (hearsay-tools/cezarion#1458), optional in every stored shape.
|
|
1586
|
+
*/
|
|
1587
|
+
export declare const squawkAskRequestSchema: z.ZodObject<{
|
|
1588
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
1589
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1590
|
+
header: z.ZodString;
|
|
1591
|
+
question: z.ZodString;
|
|
1592
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1593
|
+
label: z.ZodString;
|
|
1594
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1595
|
+
}, z.core.$strict>>>;
|
|
1596
|
+
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
1597
|
+
allowFreeText: z.ZodOptional<z.ZodBoolean>;
|
|
1598
|
+
}, z.core.$strict>>;
|
|
1599
|
+
context: z.ZodString;
|
|
1600
|
+
}, z.core.$strict>;
|
|
1601
|
+
export type SquawkAskRequest = z.infer<typeof squawkAskRequestSchema>;
|
|
1397
1602
|
/** The refusals a question can meet: the session's, the run's capacity, and an autonomous run. */
|
|
1398
1603
|
export declare const askErrorCodeSchema: z.ZodEnum<{
|
|
1399
1604
|
autonomous_run: "autonomous_run";
|
|
@@ -1418,6 +1623,126 @@ export declare const askErrorCodeSchema: z.ZodEnum<{
|
|
|
1418
1623
|
worker_wait_pending: "worker_wait_pending";
|
|
1419
1624
|
}>;
|
|
1420
1625
|
export type AskErrorCode = z.infer<typeof askErrorCodeSchema>;
|
|
1626
|
+
export declare const squawkAskAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1627
|
+
ok: z.ZodLiteral<true>;
|
|
1628
|
+
wait_id: z.ZodUUID;
|
|
1629
|
+
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1630
|
+
wait_id: z.ZodUUID;
|
|
1631
|
+
summary: z.ZodString;
|
|
1632
|
+
kind: z.ZodEnum<{
|
|
1633
|
+
peer: "peer";
|
|
1634
|
+
pr: "pr";
|
|
1635
|
+
process: "process";
|
|
1636
|
+
subagent: "subagent";
|
|
1637
|
+
timer: "timer";
|
|
1638
|
+
worker: "worker";
|
|
1639
|
+
}>;
|
|
1640
|
+
deadline: z.ZodISODateTime;
|
|
1641
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1642
|
+
wait_id: z.ZodUUID;
|
|
1643
|
+
summary: z.ZodString;
|
|
1644
|
+
kind: z.ZodLiteral<"human">;
|
|
1645
|
+
}, z.core.$strict>], "kind">>;
|
|
1646
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1647
|
+
ok: z.ZodLiteral<false>;
|
|
1648
|
+
code: z.ZodEnum<{
|
|
1649
|
+
autonomous_run: "autonomous_run";
|
|
1650
|
+
capability_revoked: "capability_revoked";
|
|
1651
|
+
capacity: "capacity";
|
|
1652
|
+
finish_requested: "finish_requested";
|
|
1653
|
+
generation_mismatch: "generation_mismatch";
|
|
1654
|
+
invalid_request: "invalid_request";
|
|
1655
|
+
manager_disposed: "manager_disposed";
|
|
1656
|
+
persistence: "persistence";
|
|
1657
|
+
root_finish_pending: "root_finish_pending";
|
|
1658
|
+
run_cancelled: "run_cancelled";
|
|
1659
|
+
run_missing: "run_missing";
|
|
1660
|
+
run_not_running: "run_not_running";
|
|
1661
|
+
run_stopping: "run_stopping";
|
|
1662
|
+
session_closed: "session_closed";
|
|
1663
|
+
session_replaced: "session_replaced";
|
|
1664
|
+
supervisor_is_worker: "supervisor_is_worker";
|
|
1665
|
+
unauthorized: "unauthorized";
|
|
1666
|
+
unavailable: "unavailable";
|
|
1667
|
+
worker_execution_stopped: "worker_execution_stopped";
|
|
1668
|
+
worker_wait_pending: "worker_wait_pending";
|
|
1669
|
+
}>;
|
|
1670
|
+
message: z.ZodString;
|
|
1671
|
+
open_waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1672
|
+
wait_id: z.ZodUUID;
|
|
1673
|
+
summary: z.ZodString;
|
|
1674
|
+
kind: z.ZodEnum<{
|
|
1675
|
+
peer: "peer";
|
|
1676
|
+
pr: "pr";
|
|
1677
|
+
process: "process";
|
|
1678
|
+
subagent: "subagent";
|
|
1679
|
+
timer: "timer";
|
|
1680
|
+
worker: "worker";
|
|
1681
|
+
}>;
|
|
1682
|
+
deadline: z.ZodISODateTime;
|
|
1683
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1684
|
+
wait_id: z.ZodUUID;
|
|
1685
|
+
summary: z.ZodString;
|
|
1686
|
+
kind: z.ZodLiteral<"human">;
|
|
1687
|
+
}, z.core.$strict>], "kind">>>;
|
|
1688
|
+
}, z.core.$strict>], "ok">;
|
|
1689
|
+
export type SquawkAskAnswer = z.infer<typeof squawkAskAnswerSchema>;
|
|
1690
|
+
/** `already_resolved`: the result is owed and arrives with the next wake; cancelling is a no-op.
|
|
1691
|
+
* `human_question`: the question already reached the user, so only their answer ends it. */
|
|
1692
|
+
export declare const squawkCancelWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1693
|
+
cancelled: z.ZodLiteral<true>;
|
|
1694
|
+
wait_id: z.ZodUUID;
|
|
1695
|
+
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1696
|
+
wait_id: z.ZodUUID;
|
|
1697
|
+
summary: z.ZodString;
|
|
1698
|
+
kind: z.ZodEnum<{
|
|
1699
|
+
peer: "peer";
|
|
1700
|
+
pr: "pr";
|
|
1701
|
+
process: "process";
|
|
1702
|
+
subagent: "subagent";
|
|
1703
|
+
timer: "timer";
|
|
1704
|
+
worker: "worker";
|
|
1705
|
+
}>;
|
|
1706
|
+
deadline: z.ZodISODateTime;
|
|
1707
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1708
|
+
wait_id: z.ZodUUID;
|
|
1709
|
+
summary: z.ZodString;
|
|
1710
|
+
kind: z.ZodLiteral<"human">;
|
|
1711
|
+
}, z.core.$strict>], "kind">>;
|
|
1712
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1713
|
+
cancelled: z.ZodLiteral<false>;
|
|
1714
|
+
code: z.ZodEnum<{
|
|
1715
|
+
already_resolved: "already_resolved";
|
|
1716
|
+
human_question: "human_question";
|
|
1717
|
+
invalid_request: "invalid_request";
|
|
1718
|
+
not_found: "not_found";
|
|
1719
|
+
unavailable: "unavailable";
|
|
1720
|
+
}>;
|
|
1721
|
+
message: z.ZodString;
|
|
1722
|
+
open_waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1723
|
+
wait_id: z.ZodUUID;
|
|
1724
|
+
summary: z.ZodString;
|
|
1725
|
+
kind: z.ZodEnum<{
|
|
1726
|
+
peer: "peer";
|
|
1727
|
+
pr: "pr";
|
|
1728
|
+
process: "process";
|
|
1729
|
+
subagent: "subagent";
|
|
1730
|
+
timer: "timer";
|
|
1731
|
+
worker: "worker";
|
|
1732
|
+
}>;
|
|
1733
|
+
deadline: z.ZodISODateTime;
|
|
1734
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1735
|
+
wait_id: z.ZodUUID;
|
|
1736
|
+
summary: z.ZodString;
|
|
1737
|
+
kind: z.ZodLiteral<"human">;
|
|
1738
|
+
}, z.core.$strict>], "kind">>>;
|
|
1739
|
+
}, z.core.$strict>], "cancelled">;
|
|
1740
|
+
export type SquawkCancelWaitAnswer = z.infer<typeof squawkCancelWaitAnswerSchema>;
|
|
1741
|
+
/** `cezar_done`: the run finishes when this turn ends. The summary becomes the closing note. */
|
|
1742
|
+
export declare const squawkDoneRequestSchema: z.ZodObject<{
|
|
1743
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1744
|
+
}, z.core.$strict>;
|
|
1745
|
+
export type SquawkDoneRequest = z.infer<typeof squawkDoneRequestSchema>;
|
|
1421
1746
|
export declare const doneErrorCodeSchema: z.ZodEnum<{
|
|
1422
1747
|
capability_revoked: "capability_revoked";
|
|
1423
1748
|
finish_requested: "finish_requested";
|
|
@@ -1463,6 +1788,120 @@ export declare const doneOwedInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1463
1788
|
input_id: z.ZodString;
|
|
1464
1789
|
}, z.core.$strict>], "kind">;
|
|
1465
1790
|
export type DoneOwedInput = z.infer<typeof doneOwedInputSchema>;
|
|
1791
|
+
/** An accepted done finishes the task, or, in a workflow step that is not the last, completes that
|
|
1792
|
+
* step and starts `next_step`, named as the run's rail names it (hearsay-tools/cezarion#1620). */
|
|
1793
|
+
export declare const squawkDoneAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1794
|
+
ok: z.ZodLiteral<true>;
|
|
1795
|
+
finishes: z.ZodLiteral<"at_turn_end">;
|
|
1796
|
+
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1797
|
+
wait_id: z.ZodUUID;
|
|
1798
|
+
summary: z.ZodString;
|
|
1799
|
+
kind: z.ZodEnum<{
|
|
1800
|
+
peer: "peer";
|
|
1801
|
+
pr: "pr";
|
|
1802
|
+
process: "process";
|
|
1803
|
+
subagent: "subagent";
|
|
1804
|
+
timer: "timer";
|
|
1805
|
+
worker: "worker";
|
|
1806
|
+
}>;
|
|
1807
|
+
deadline: z.ZodISODateTime;
|
|
1808
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1809
|
+
wait_id: z.ZodUUID;
|
|
1810
|
+
summary: z.ZodString;
|
|
1811
|
+
kind: z.ZodLiteral<"human">;
|
|
1812
|
+
}, z.core.$strict>], "kind">>;
|
|
1813
|
+
completes: z.ZodLiteral<"task">;
|
|
1814
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1815
|
+
ok: z.ZodLiteral<true>;
|
|
1816
|
+
finishes: z.ZodLiteral<"at_turn_end">;
|
|
1817
|
+
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1818
|
+
wait_id: z.ZodUUID;
|
|
1819
|
+
summary: z.ZodString;
|
|
1820
|
+
kind: z.ZodEnum<{
|
|
1821
|
+
peer: "peer";
|
|
1822
|
+
pr: "pr";
|
|
1823
|
+
process: "process";
|
|
1824
|
+
subagent: "subagent";
|
|
1825
|
+
timer: "timer";
|
|
1826
|
+
worker: "worker";
|
|
1827
|
+
}>;
|
|
1828
|
+
deadline: z.ZodISODateTime;
|
|
1829
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1830
|
+
wait_id: z.ZodUUID;
|
|
1831
|
+
summary: z.ZodString;
|
|
1832
|
+
kind: z.ZodLiteral<"human">;
|
|
1833
|
+
}, z.core.$strict>], "kind">>;
|
|
1834
|
+
completes: z.ZodLiteral<"step">;
|
|
1835
|
+
next_step: z.ZodString;
|
|
1836
|
+
}, z.core.$strict>], "completes">, z.ZodObject<{
|
|
1837
|
+
ok: z.ZodLiteral<false>;
|
|
1838
|
+
code: z.ZodEnum<{
|
|
1839
|
+
capability_revoked: "capability_revoked";
|
|
1840
|
+
finish_requested: "finish_requested";
|
|
1841
|
+
generation_mismatch: "generation_mismatch";
|
|
1842
|
+
human_question_pending: "human_question_pending";
|
|
1843
|
+
input_pending: "input_pending";
|
|
1844
|
+
invalid_request: "invalid_request";
|
|
1845
|
+
manager_disposed: "manager_disposed";
|
|
1846
|
+
not_final_step: "not_final_step";
|
|
1847
|
+
requests_outstanding: "requests_outstanding";
|
|
1848
|
+
requests_unanswered: "requests_unanswered";
|
|
1849
|
+
root_finish_pending: "root_finish_pending";
|
|
1850
|
+
run_cancelled: "run_cancelled";
|
|
1851
|
+
run_missing: "run_missing";
|
|
1852
|
+
run_not_running: "run_not_running";
|
|
1853
|
+
run_stopping: "run_stopping";
|
|
1854
|
+
session_closed: "session_closed";
|
|
1855
|
+
session_replaced: "session_replaced";
|
|
1856
|
+
unavailable: "unavailable";
|
|
1857
|
+
worker_questions: "worker_questions";
|
|
1858
|
+
worker_wait_pending: "worker_wait_pending";
|
|
1859
|
+
workers_outstanding: "workers_outstanding";
|
|
1860
|
+
workers_uncollected: "workers_uncollected";
|
|
1861
|
+
}>;
|
|
1862
|
+
message: z.ZodString;
|
|
1863
|
+
workers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1864
|
+
worker_id: z.ZodString;
|
|
1865
|
+
reason: z.ZodEnum<{
|
|
1866
|
+
outstanding: "outstanding";
|
|
1867
|
+
question: "question";
|
|
1868
|
+
uncollected: "uncollected";
|
|
1869
|
+
}>;
|
|
1870
|
+
}, z.core.$strict>>>;
|
|
1871
|
+
open_waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1872
|
+
wait_id: z.ZodUUID;
|
|
1873
|
+
summary: z.ZodString;
|
|
1874
|
+
kind: z.ZodEnum<{
|
|
1875
|
+
peer: "peer";
|
|
1876
|
+
pr: "pr";
|
|
1877
|
+
process: "process";
|
|
1878
|
+
subagent: "subagent";
|
|
1879
|
+
timer: "timer";
|
|
1880
|
+
worker: "worker";
|
|
1881
|
+
}>;
|
|
1882
|
+
deadline: z.ZodISODateTime;
|
|
1883
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1884
|
+
wait_id: z.ZodUUID;
|
|
1885
|
+
summary: z.ZodString;
|
|
1886
|
+
kind: z.ZodLiteral<"human">;
|
|
1887
|
+
}, z.core.$strict>], "kind">>>;
|
|
1888
|
+
owed: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1889
|
+
kind: z.ZodLiteral<"wait_result">;
|
|
1890
|
+
wait_id: z.ZodString;
|
|
1891
|
+
wait_kind: z.ZodString;
|
|
1892
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1893
|
+
kind: z.ZodLiteral<"queued">;
|
|
1894
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
1895
|
+
source: z.ZodString;
|
|
1896
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1897
|
+
kind: z.ZodLiteral<"in_flight">;
|
|
1898
|
+
input_id: z.ZodString;
|
|
1899
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1900
|
+
kind: z.ZodLiteral<"unread">;
|
|
1901
|
+
input_id: z.ZodString;
|
|
1902
|
+
}, z.core.$strict>], "kind">>>;
|
|
1903
|
+
}, z.core.$strict>], "ok">;
|
|
1904
|
+
export type SquawkDoneAnswer = z.infer<typeof squawkDoneAnswerSchema>;
|
|
1466
1905
|
/** Stored summaries written before hearsay-tools/cezarion#1425 carry `{ kind: 'ci' }`: a checks wait. */
|
|
1467
1906
|
export declare const waitingOnSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1468
1907
|
kind: z.ZodLiteral<"human">;
|
|
@@ -232,13 +232,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
232
232
|
status: 200;
|
|
233
233
|
input: {
|
|
234
234
|
json: {
|
|
235
|
-
requestIds: string[];
|
|
236
|
-
mode?: "all" | "any" | "one" | undefined;
|
|
237
|
-
timeoutSeconds?: number | undefined;
|
|
238
|
-
} | {
|
|
239
235
|
workerIds: string[];
|
|
240
236
|
timeoutSeconds?: number | undefined;
|
|
241
237
|
mode?: "all" | "any" | "one" | undefined;
|
|
238
|
+
} | {
|
|
239
|
+
requestIds: string[];
|
|
240
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
241
|
+
timeoutSeconds?: number | undefined;
|
|
242
242
|
} | {
|
|
243
243
|
peerIds: string[];
|
|
244
244
|
timeoutSeconds?: number | undefined;
|
|
@@ -66,17 +66,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
66
66
|
"/discover": {
|
|
67
67
|
$post: {
|
|
68
68
|
output: {
|
|
69
|
-
runner: string;
|
|
70
|
-
models: {
|
|
71
|
-
id: string;
|
|
72
|
-
label: string;
|
|
73
|
-
description: string;
|
|
74
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
75
|
-
}[];
|
|
76
|
-
source: "cache" | "live" | "unavailable";
|
|
77
|
-
stale: boolean;
|
|
78
|
-
reason?: string | undefined;
|
|
79
|
-
} | {
|
|
80
69
|
scope: "host-default-account";
|
|
81
70
|
runners: {
|
|
82
71
|
requiresAccountHome?: boolean | undefined;
|
|
@@ -98,6 +87,17 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
98
87
|
reason?: string | undefined;
|
|
99
88
|
}[];
|
|
100
89
|
nextOffset?: number | undefined;
|
|
90
|
+
} | {
|
|
91
|
+
runner: string;
|
|
92
|
+
models: {
|
|
93
|
+
id: string;
|
|
94
|
+
label: string;
|
|
95
|
+
description: string;
|
|
96
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
97
|
+
}[];
|
|
98
|
+
source: "cache" | "live" | "unavailable";
|
|
99
|
+
stale: boolean;
|
|
100
|
+
reason?: string | undefined;
|
|
101
101
|
};
|
|
102
102
|
outputFormat: "json";
|
|
103
103
|
status: 200;
|
|
@@ -207,13 +207,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
207
207
|
status: 200;
|
|
208
208
|
input: {
|
|
209
209
|
json: {
|
|
210
|
-
requestIds: string[];
|
|
211
|
-
mode?: "all" | "any" | "one" | undefined;
|
|
212
|
-
timeoutSeconds?: number | undefined;
|
|
213
|
-
} | {
|
|
214
210
|
workerIds: string[];
|
|
215
211
|
timeoutSeconds?: number | undefined;
|
|
216
212
|
mode?: "all" | "any" | "one" | undefined;
|
|
213
|
+
} | {
|
|
214
|
+
requestIds: string[];
|
|
215
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
216
|
+
timeoutSeconds?: number | undefined;
|
|
217
217
|
} | {
|
|
218
218
|
peerIds: string[];
|
|
219
219
|
timeoutSeconds?: number | undefined;
|