@hearsay-tools/squawk 0.18.0-dev.7406 → 0.18.0-dev.7412
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/controller.d.ts +46 -46
- package/dist/ci-wait/tools.d.ts +4 -4
- package/dist/contract/delegation.d.ts +30 -0
- package/dist/contract/index.js +10 -0
- package/dist/contract/runs.d.ts +48 -0
- package/dist/delegation/capacity.d.ts +7 -1
- package/dist/delegation/capacity.js +21 -12
- package/dist/delegation/capacity.js.map +1 -1
- package/dist/delegation/conversation-send.d.ts +3 -10
- package/dist/delegation/conversation-send.js +4 -3
- package/dist/delegation/conversation-send.js.map +1 -1
- package/dist/delegation/conversations.d.ts +18 -2175
- package/dist/delegation/conversations.js +47 -62
- package/dist/delegation/conversations.js.map +1 -1
- package/dist/delegation/policy.d.ts +7 -4
- package/dist/delegation/policy.js +29 -27
- package/dist/delegation/policy.js.map +1 -1
- package/dist/delegation/readiness.js +3 -2
- package/dist/delegation/readiness.js.map +1 -1
- package/dist/delegation/routes.d.ts +75 -75
- package/dist/delegation/service.d.ts +4 -9
- package/dist/delegation/service.js +65 -78
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/task-discovery.js +3 -3
- package/dist/delegation/task-discovery.js.map +1 -1
- package/dist/delegation/transport.d.ts +79 -79
- package/dist/runs/delegation-state.d.ts +16 -0
- package/dist/runs/run-exits.d.ts +60 -0
- package/dist/runs/store.d.ts +98 -72
- package/dist/runs/task-rights.d.ts +68 -0
- package/dist/runs/task-rights.js +108 -0
- package/dist/runs/task-rights.js.map +1 -0
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/server.d.ts +3088 -2908
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/workflows/continuation-admission.d.ts +10 -0
- package/dist/workflows/input-acknowledgement.d.ts +24 -24
- package/dist/workflows/run/completion-gate.js +9 -10
- package/dist/workflows/run/completion-gate.js.map +1 -1
- package/dist/workflows/run/run-finish.js +4 -3
- package/dist/workflows/run/run-finish.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +82 -72
- package/dist/workflows/run/wait-registry.js +2 -2
- package/dist/workflows/run/wait-registry.js.map +1 -1
- package/dist/workflows/wait-scope.d.ts +6 -8
- package/dist/workflows/wait-scope.js +13 -14
- package/dist/workflows/wait-scope.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{activity-motion-GWiNidwF.js → activity-motion-CjiZJB7H.js} +1 -1
- package/web/dist/assets/{activity-route-ByFh99Eo.js → activity-route-1W0U2NqM.js} +1 -1
- package/web/dist/assets/{agent-accounts-BDB73Hg9.js → agent-accounts-DJbSC2sB.js} +1 -1
- package/web/dist/assets/attention-BdI3xSwD.js +1 -0
- package/web/dist/assets/{cez-idle-DreV5r0B.js → cez-idle-CKE0WtrH.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-CM6ogknc.js → commit-diff-panel-DkvsBvlr.js} +1 -1
- package/web/dist/assets/{diff-BU25IR0d.js → diff-BCSgE1l6.js} +2 -2
- package/web/dist/assets/{diff-view-CnGdaz-L.js → diff-view-B3eMq9Uw.js} +1 -1
- package/web/dist/assets/{file-preview-COpe5-X0.js → file-preview-BIHQ0YTn.js} +1 -1
- package/web/dist/assets/{git-toolbar-CMH0kDal.js → git-toolbar-BtU7xtmD.js} +1 -1
- package/web/dist/assets/{github-JeDKhIAK.js → github-INQcTy36.js} +1 -1
- package/web/dist/assets/{global-activity-route-x2Xn5g2h.js → global-activity-route-B3-2eIFG.js} +1 -1
- package/web/dist/assets/{index-3JtARe0j.js → index-DUuc-42H.js} +4 -4
- package/web/dist/assets/{live-protocol-kUxhOnN1.js → live-protocol-B5jzpJgG.js} +1 -1
- package/web/dist/assets/{markdown-BDuLh9lK.js → markdown-DcRzCfVU.js} +1 -1
- package/web/dist/assets/{picker-pill-DpZKt_In.js → picker-pill-x0hXGTLP.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-CwYbRQfS.js → preview-pane-connected-CCHDk6rz.js} +1 -1
- package/web/dist/assets/{project-router-DNqfLxdJ.js → project-router-_V9XDi3p.js} +1 -1
- package/web/dist/assets/{project-scope-context-CFEoNQTg.js → project-scope-context-VENshCVj.js} +1 -1
- package/web/dist/assets/{prompt-template-menu-DPEauS3z.js → prompt-template-menu-C60uqznw.js} +1 -1
- package/web/dist/assets/{queries-mk7hUEKT.js → queries-r1Fc1fWN.js} +1 -1
- package/web/dist/assets/{reference-chip-DQtQZJaX.js → reference-chip-GElOouoU.js} +1 -1
- package/web/dist/assets/{repo-git-CcfbTImd.js → repo-git-B09hWAxY.js} +1 -1
- package/web/dist/assets/{report-reader-CWXDg8JE.js → report-reader-y4t2Prir.js} +1 -1
- package/web/dist/assets/{reports-Bau_TxUs.js → reports-BU3a_4kU.js} +1 -1
- package/web/dist/assets/{run-header-C5wDUTls.js → run-header-BZukpHEK.js} +1 -1
- package/web/dist/assets/{skills-CFl4V447.js → skills-C6V0Yo95.js} +1 -1
- package/web/dist/assets/{tab-link-B7SjdDeU.js → tab-link-CuL027Wh.js} +1 -1
- package/web/dist/assets/{task-changes-Dnprgwc1.js → task-changes-Dx9OTRkk.js} +1 -1
- package/web/dist/assets/{task-commits-B0SApZKn.js → task-commits-ClWR4wQR.js} +1 -1
- package/web/dist/assets/{task-files-B_mLju-K.js → task-files-DCkrdsrz.js} +1 -1
- package/web/dist/assets/{task-github-item-BUoUh8t0.js → task-github-item-C3D4vDw7.js} +1 -1
- package/web/dist/assets/{task-thread-BQi3cH3M.js → task-thread-D0sTMg9h.js} +1 -1
- package/web/dist/assets/{thread-state-BOUrIjKm.js → thread-state-BHSYtS79.js} +1 -1
- package/web/dist/assets/{use-desktop-CkqdpZt0.js → use-desktop-BnWAyH1e.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-PCPwKRR0.js → use-hand-to-agent-state-VmvgZIh6.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-BL1dhFBm.js → useInfiniteQuery-DbCUWSLK.js} +1 -1
- package/web/dist/assets/useQuery-CxWGWuW4.js +1 -0
- package/web/dist/assets/{workflows-BRZR4pVb.js → workflows-B_HWC2FT.js} +1 -1
- package/web/dist/assets/{ws-DX0R2MDS.js → ws-jytXIi1s.js} +1 -1
- package/web/dist/index.html +15 -15
- package/web/dist/live-worker.js +1 -1
- package/web/dist/assets/attention-FrfXSNio.js +0 -1
- package/web/dist/assets/useQuery-B12MHZfS.js +0 -1
|
@@ -282,12 +282,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
282
282
|
"/api/v1/tools/ask": {
|
|
283
283
|
$post: {
|
|
284
284
|
output: {
|
|
285
|
-
|
|
286
|
-
code: 'unavailable';
|
|
285
|
+
code: 'capability_revoked';
|
|
287
286
|
message: string;
|
|
288
287
|
};
|
|
289
288
|
outputFormat: "json";
|
|
290
|
-
status:
|
|
289
|
+
status: 401;
|
|
291
290
|
input: {
|
|
292
291
|
json: {
|
|
293
292
|
questions: {
|
|
@@ -305,11 +304,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
305
304
|
};
|
|
306
305
|
} | {
|
|
307
306
|
output: {
|
|
308
|
-
|
|
307
|
+
ok: false;
|
|
308
|
+
code: 'unavailable';
|
|
309
309
|
message: string;
|
|
310
310
|
};
|
|
311
311
|
outputFormat: "json";
|
|
312
|
-
status:
|
|
312
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
313
313
|
input: {
|
|
314
314
|
json: {
|
|
315
315
|
questions: {
|
|
@@ -377,12 +377,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
377
377
|
"/api/v1/tools/cancel-wait": {
|
|
378
378
|
$post: {
|
|
379
379
|
output: {
|
|
380
|
-
|
|
381
|
-
code: 'unavailable';
|
|
380
|
+
code: 'capability_revoked';
|
|
382
381
|
message: string;
|
|
383
382
|
};
|
|
384
383
|
outputFormat: "json";
|
|
385
|
-
status:
|
|
384
|
+
status: 401;
|
|
386
385
|
input: {
|
|
387
386
|
json: {
|
|
388
387
|
wait_id: string;
|
|
@@ -390,11 +389,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
390
389
|
};
|
|
391
390
|
} | {
|
|
392
391
|
output: {
|
|
393
|
-
|
|
392
|
+
cancelled: false;
|
|
393
|
+
code: 'unavailable';
|
|
394
394
|
message: string;
|
|
395
395
|
};
|
|
396
396
|
outputFormat: "json";
|
|
397
|
-
status:
|
|
397
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
398
398
|
input: {
|
|
399
399
|
json: {
|
|
400
400
|
wait_id: string;
|
|
@@ -442,12 +442,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
442
442
|
"/api/v1/tools/done": {
|
|
443
443
|
$post: {
|
|
444
444
|
output: {
|
|
445
|
-
|
|
446
|
-
code: 'unavailable';
|
|
445
|
+
code: 'capability_revoked';
|
|
447
446
|
message: string;
|
|
448
447
|
};
|
|
449
448
|
outputFormat: "json";
|
|
450
|
-
status:
|
|
449
|
+
status: 401;
|
|
451
450
|
input: {
|
|
452
451
|
json: {
|
|
453
452
|
summary?: string | undefined;
|
|
@@ -455,11 +454,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
455
454
|
};
|
|
456
455
|
} | {
|
|
457
456
|
output: {
|
|
458
|
-
|
|
457
|
+
ok: false;
|
|
458
|
+
code: 'unavailable';
|
|
459
459
|
message: string;
|
|
460
460
|
};
|
|
461
461
|
outputFormat: "json";
|
|
462
|
-
status:
|
|
462
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
463
463
|
input: {
|
|
464
464
|
json: {
|
|
465
465
|
summary?: string | undefined;
|
|
@@ -542,13 +542,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
542
542
|
"/api/v1/tools/preview-stop": {
|
|
543
543
|
$post: {
|
|
544
544
|
output: {
|
|
545
|
-
|
|
546
|
-
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
545
|
+
code: 'capability_revoked';
|
|
547
546
|
message: string;
|
|
548
|
-
hint: string;
|
|
549
547
|
};
|
|
550
548
|
outputFormat: "json";
|
|
551
|
-
status:
|
|
549
|
+
status: 401;
|
|
552
550
|
input: {
|
|
553
551
|
json: {
|
|
554
552
|
port: number;
|
|
@@ -557,11 +555,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
557
555
|
};
|
|
558
556
|
} | {
|
|
559
557
|
output: {
|
|
560
|
-
|
|
558
|
+
ok: boolean;
|
|
559
|
+
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
561
560
|
message: string;
|
|
561
|
+
hint: string;
|
|
562
562
|
};
|
|
563
563
|
outputFormat: "json";
|
|
564
|
-
status:
|
|
564
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
565
565
|
input: {
|
|
566
566
|
json: {
|
|
567
567
|
port: number;
|
|
@@ -574,13 +574,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
574
574
|
"/api/v1/tools/preview-serve": {
|
|
575
575
|
$post: {
|
|
576
576
|
output: {
|
|
577
|
-
|
|
578
|
-
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
577
|
+
code: 'capability_revoked';
|
|
579
578
|
message: string;
|
|
580
|
-
hint: string;
|
|
581
579
|
};
|
|
582
580
|
outputFormat: "json";
|
|
583
|
-
status:
|
|
581
|
+
status: 401;
|
|
584
582
|
input: {
|
|
585
583
|
json: {
|
|
586
584
|
command: string;
|
|
@@ -592,11 +590,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
592
590
|
};
|
|
593
591
|
} | {
|
|
594
592
|
output: {
|
|
595
|
-
|
|
593
|
+
ok: boolean;
|
|
594
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
596
595
|
message: string;
|
|
596
|
+
hint: string;
|
|
597
597
|
};
|
|
598
598
|
outputFormat: "json";
|
|
599
|
-
status:
|
|
599
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
600
600
|
input: {
|
|
601
601
|
json: {
|
|
602
602
|
command: string;
|
|
@@ -612,12 +612,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
612
612
|
"/api/v1/tools/automation": {
|
|
613
613
|
$post: {
|
|
614
614
|
output: {
|
|
615
|
-
|
|
616
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
615
|
+
code: 'capability_revoked';
|
|
617
616
|
message: string;
|
|
618
617
|
};
|
|
619
618
|
outputFormat: "json";
|
|
620
|
-
status:
|
|
619
|
+
status: 401;
|
|
621
620
|
input: {
|
|
622
621
|
json: {
|
|
623
622
|
action: "create";
|
|
@@ -697,11 +696,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
697
696
|
};
|
|
698
697
|
} | {
|
|
699
698
|
output: {
|
|
700
|
-
|
|
699
|
+
ok: false;
|
|
700
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
701
701
|
message: string;
|
|
702
702
|
};
|
|
703
703
|
outputFormat: "json";
|
|
704
|
-
status:
|
|
704
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
705
705
|
input: {
|
|
706
706
|
json: {
|
|
707
707
|
action: "create";
|
|
@@ -957,12 +957,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
957
957
|
"/api/v1/tools/schedule-task": {
|
|
958
958
|
$post: {
|
|
959
959
|
output: {
|
|
960
|
-
|
|
961
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
960
|
+
code: 'capability_revoked';
|
|
962
961
|
message: string;
|
|
963
962
|
};
|
|
964
963
|
outputFormat: "json";
|
|
965
|
-
status:
|
|
964
|
+
status: 401;
|
|
966
965
|
input: {
|
|
967
966
|
json: {
|
|
968
967
|
at?: string | undefined;
|
|
@@ -979,11 +978,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
979
978
|
};
|
|
980
979
|
} | {
|
|
981
980
|
output: {
|
|
982
|
-
|
|
981
|
+
ok: false;
|
|
982
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
983
983
|
message: string;
|
|
984
984
|
};
|
|
985
985
|
outputFormat: "json";
|
|
986
|
-
status:
|
|
986
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
987
987
|
input: {
|
|
988
988
|
json: {
|
|
989
989
|
at?: string | undefined;
|
|
@@ -1000,6 +1000,10 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1000
1000
|
};
|
|
1001
1001
|
} | {
|
|
1002
1002
|
output: {
|
|
1003
|
+
ok: false;
|
|
1004
|
+
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
1005
|
+
message: string;
|
|
1006
|
+
} | {
|
|
1003
1007
|
ok: true;
|
|
1004
1008
|
task: {
|
|
1005
1009
|
id: string;
|
|
@@ -1011,10 +1015,6 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1011
1015
|
url?: string | undefined;
|
|
1012
1016
|
};
|
|
1013
1017
|
note: string;
|
|
1014
|
-
} | {
|
|
1015
|
-
ok: false;
|
|
1016
|
-
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
1017
|
-
message: string;
|
|
1018
1018
|
};
|
|
1019
1019
|
outputFormat: "json";
|
|
1020
1020
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -1038,12 +1038,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1038
1038
|
"/api/v1/tools/scheduled-tasks": {
|
|
1039
1039
|
$post: {
|
|
1040
1040
|
output: {
|
|
1041
|
-
|
|
1042
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
1041
|
+
code: 'capability_revoked';
|
|
1043
1042
|
message: string;
|
|
1044
1043
|
};
|
|
1045
1044
|
outputFormat: "json";
|
|
1046
|
-
status:
|
|
1045
|
+
status: 401;
|
|
1047
1046
|
input: {
|
|
1048
1047
|
json: {
|
|
1049
1048
|
at?: string | undefined;
|
|
@@ -1076,11 +1075,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1076
1075
|
};
|
|
1077
1076
|
} | {
|
|
1078
1077
|
output: {
|
|
1079
|
-
|
|
1078
|
+
ok: false;
|
|
1079
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
1080
1080
|
message: string;
|
|
1081
1081
|
};
|
|
1082
1082
|
outputFormat: "json";
|
|
1083
|
-
status:
|
|
1083
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1084
1084
|
input: {
|
|
1085
1085
|
json: {
|
|
1086
1086
|
at?: string | undefined;
|
package/dist/ci-wait/tools.d.ts
CHANGED
|
@@ -263,6 +263,10 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
|
|
|
263
263
|
}[];
|
|
264
264
|
isError: boolean;
|
|
265
265
|
details: {
|
|
266
|
+
ok: false;
|
|
267
|
+
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
268
|
+
message: string;
|
|
269
|
+
} | {
|
|
266
270
|
ok: true;
|
|
267
271
|
task: {
|
|
268
272
|
id: string;
|
|
@@ -274,10 +278,6 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
|
|
|
274
278
|
url?: string | undefined;
|
|
275
279
|
};
|
|
276
280
|
note: string;
|
|
277
|
-
} | {
|
|
278
|
-
ok: false;
|
|
279
|
-
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
280
|
-
message: string;
|
|
281
281
|
};
|
|
282
282
|
}>;
|
|
283
283
|
export declare function invokeScheduledTasksTool(input: unknown): Promise<{
|
|
@@ -53,6 +53,20 @@ export declare function ownsDirectory(workspace: WorkerWorkspace): workspace is
|
|
|
53
53
|
export declare function ownedWorkspace(workspace: WorkerWorkspace): OwnedWorkerWorkspace;
|
|
54
54
|
/** The text every refused directory action of such a worker starts with. */
|
|
55
55
|
export declare const SHARED_WORKSPACE_REFUSAL = "this worker runs in its parent's worktree";
|
|
56
|
+
/**
|
|
57
|
+
* What a task may spawn: the workspace kinds it may start, how many outstanding workers it may
|
|
58
|
+
* have itself, and the grant each worker it starts gets. No `children` means its workers may spawn
|
|
59
|
+
* nothing. Absent on a stored record, the grant is the default of the record's role.
|
|
60
|
+
*/
|
|
61
|
+
export declare const spawnGrantSchema: z.ZodObject<{
|
|
62
|
+
kinds: z.ZodArray<z.ZodEnum<{
|
|
63
|
+
"owned-isolated": "owned-isolated";
|
|
64
|
+
shared: "shared";
|
|
65
|
+
}>>;
|
|
66
|
+
live: z.ZodNumber;
|
|
67
|
+
children: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strict>>;
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
export type SpawnGrant = z.infer<typeof spawnGrantSchema>;
|
|
56
70
|
export declare const workerOutcomeSchema: z.ZodObject<{
|
|
57
71
|
workerId: z.ZodUUID;
|
|
58
72
|
status: z.ZodEnum<{
|
|
@@ -805,6 +819,14 @@ export declare const delegationStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
805
819
|
stop: "stop";
|
|
806
820
|
wait: "wait";
|
|
807
821
|
}>>;
|
|
822
|
+
spawnGrant: z.ZodOptional<z.ZodObject<{
|
|
823
|
+
kinds: z.ZodArray<z.ZodEnum<{
|
|
824
|
+
"owned-isolated": "owned-isolated";
|
|
825
|
+
shared: "shared";
|
|
826
|
+
}>>;
|
|
827
|
+
live: z.ZodNumber;
|
|
828
|
+
children: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strict>>;
|
|
829
|
+
}, z.core.$strict>>;
|
|
808
830
|
receipts: z.ZodArray<z.ZodObject<{
|
|
809
831
|
requestId: z.ZodUUID;
|
|
810
832
|
workerId: z.ZodUUID;
|
|
@@ -1087,6 +1109,14 @@ export declare const delegationStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1087
1109
|
stop: "stop";
|
|
1088
1110
|
wait: "wait";
|
|
1089
1111
|
}>>;
|
|
1112
|
+
spawnGrant: z.ZodOptional<z.ZodObject<{
|
|
1113
|
+
kinds: z.ZodArray<z.ZodEnum<{
|
|
1114
|
+
"owned-isolated": "owned-isolated";
|
|
1115
|
+
shared: "shared";
|
|
1116
|
+
}>>;
|
|
1117
|
+
live: z.ZodNumber;
|
|
1118
|
+
children: z.ZodOptional<z.ZodObject<any, z.core.$strict>>;
|
|
1119
|
+
}, z.core.$strict>>;
|
|
1090
1120
|
parentRunId: z.ZodUUID;
|
|
1091
1121
|
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1092
1122
|
ownerRunId: z.ZodUUID;
|
package/dist/contract/index.js
CHANGED
|
@@ -562,6 +562,13 @@ function ownedWorkspace(workspace) {
|
|
|
562
562
|
return workspace;
|
|
563
563
|
}
|
|
564
564
|
var SHARED_WORKSPACE_REFUSAL = "this worker runs in its parent's worktree";
|
|
565
|
+
var spawnGrantSchema = z8.strictObject({
|
|
566
|
+
kinds: z8.array(z8.enum(["owned-isolated", "shared"])).max(2).refine((kinds) => new Set(kinds).size === kinds.length),
|
|
567
|
+
live: z8.number().int().min(0).max(32),
|
|
568
|
+
get children() {
|
|
569
|
+
return spawnGrantSchema.optional();
|
|
570
|
+
}
|
|
571
|
+
});
|
|
565
572
|
var workerOutcomeSchema = z8.object({
|
|
566
573
|
workerId: z8.uuid(),
|
|
567
574
|
status: z8.enum(["review", "done", "failed", "cancelled"]),
|
|
@@ -721,6 +728,7 @@ var delegationStateSchema = z8.discriminatedUnion("role", [
|
|
|
721
728
|
role: z8.literal("root"),
|
|
722
729
|
conversation: conversationStateSchema.optional(),
|
|
723
730
|
permissions: permissionsSchema,
|
|
731
|
+
spawnGrant: spawnGrantSchema.optional(),
|
|
724
732
|
// #816: bounded by the creation ceiling (WORKER_CREATION_LIMIT), not by capacity.
|
|
725
733
|
receipts: z8.array(workerCreationReceiptSchema).max(1024).refine((receipts) => new Set(receipts.map((receipt) => receipt.requestId)).size === receipts.length && new Set(receipts.map((receipt) => receipt.workerId)).size === receipts.length),
|
|
726
734
|
// `wait`, `lastWait` and `completion` are the old worker-wait engine's, never written since
|
|
@@ -739,6 +747,7 @@ var delegationStateSchema = z8.discriminatedUnion("role", [
|
|
|
739
747
|
wait: workerWaitSchema.optional(),
|
|
740
748
|
lastWait: workerWaitSchema.optional(),
|
|
741
749
|
permissions: permissionsSchema,
|
|
750
|
+
spawnGrant: spawnGrantSchema.optional(),
|
|
742
751
|
parentRunId: z8.uuid(),
|
|
743
752
|
workspace: workerWorkspaceSchema,
|
|
744
753
|
destroy: workerDestroySchema.optional(),
|
|
@@ -6520,6 +6529,7 @@ export {
|
|
|
6520
6529
|
sharedWorkspaceSchema,
|
|
6521
6530
|
sidebarLimitsSchema,
|
|
6522
6531
|
skillSchema,
|
|
6532
|
+
spawnGrantSchema,
|
|
6523
6533
|
sqlPrefilterTokens,
|
|
6524
6534
|
squawkAskAnswerSchema,
|
|
6525
6535
|
squawkAskRequestSchema,
|
package/dist/contract/runs.d.ts
CHANGED
|
@@ -317,6 +317,14 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
317
317
|
stop: "stop";
|
|
318
318
|
wait: "wait";
|
|
319
319
|
}>>;
|
|
320
|
+
spawnGrant: z.ZodOptional<z.ZodObject<{
|
|
321
|
+
kinds: z.ZodArray<z.ZodEnum<{
|
|
322
|
+
"owned-isolated": "owned-isolated";
|
|
323
|
+
shared: "shared";
|
|
324
|
+
}>>;
|
|
325
|
+
live: z.ZodNumber;
|
|
326
|
+
children: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strict>>;
|
|
327
|
+
}, z.core.$strict>>;
|
|
320
328
|
receipts: z.ZodArray<z.ZodObject<{
|
|
321
329
|
requestId: z.ZodUUID;
|
|
322
330
|
workerId: z.ZodUUID;
|
|
@@ -599,6 +607,14 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
599
607
|
stop: "stop";
|
|
600
608
|
wait: "wait";
|
|
601
609
|
}>>;
|
|
610
|
+
spawnGrant: z.ZodOptional<z.ZodObject<{
|
|
611
|
+
kinds: z.ZodArray<z.ZodEnum<{
|
|
612
|
+
"owned-isolated": "owned-isolated";
|
|
613
|
+
shared: "shared";
|
|
614
|
+
}>>;
|
|
615
|
+
live: z.ZodNumber;
|
|
616
|
+
children: z.ZodOptional<z.ZodObject<any, z.core.$strict>>;
|
|
617
|
+
}, z.core.$strict>>;
|
|
602
618
|
parentRunId: z.ZodUUID;
|
|
603
619
|
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
604
620
|
ownerRunId: z.ZodUUID;
|
|
@@ -2282,6 +2298,14 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
2282
2298
|
stop: "stop";
|
|
2283
2299
|
wait: "wait";
|
|
2284
2300
|
}>>;
|
|
2301
|
+
spawnGrant: z.ZodOptional<z.ZodObject<{
|
|
2302
|
+
kinds: z.ZodArray<z.ZodEnum<{
|
|
2303
|
+
"owned-isolated": "owned-isolated";
|
|
2304
|
+
shared: "shared";
|
|
2305
|
+
}>>;
|
|
2306
|
+
live: z.ZodNumber;
|
|
2307
|
+
children: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strict>>;
|
|
2308
|
+
}, z.core.$strict>>;
|
|
2285
2309
|
receipts: z.ZodArray<z.ZodObject<{
|
|
2286
2310
|
requestId: z.ZodUUID;
|
|
2287
2311
|
workerId: z.ZodUUID;
|
|
@@ -2564,6 +2588,14 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
2564
2588
|
stop: "stop";
|
|
2565
2589
|
wait: "wait";
|
|
2566
2590
|
}>>;
|
|
2591
|
+
spawnGrant: z.ZodOptional<z.ZodObject<{
|
|
2592
|
+
kinds: z.ZodArray<z.ZodEnum<{
|
|
2593
|
+
"owned-isolated": "owned-isolated";
|
|
2594
|
+
shared: "shared";
|
|
2595
|
+
}>>;
|
|
2596
|
+
live: z.ZodNumber;
|
|
2597
|
+
children: z.ZodOptional<z.ZodObject<any, z.core.$strict>>;
|
|
2598
|
+
}, z.core.$strict>>;
|
|
2567
2599
|
parentRunId: z.ZodUUID;
|
|
2568
2600
|
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2569
2601
|
ownerRunId: z.ZodUUID;
|
|
@@ -5018,6 +5050,14 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
5018
5050
|
stop: "stop";
|
|
5019
5051
|
wait: "wait";
|
|
5020
5052
|
}>>;
|
|
5053
|
+
spawnGrant: z.ZodOptional<z.ZodObject<{
|
|
5054
|
+
kinds: z.ZodArray<z.ZodEnum<{
|
|
5055
|
+
"owned-isolated": "owned-isolated";
|
|
5056
|
+
shared: "shared";
|
|
5057
|
+
}>>;
|
|
5058
|
+
live: z.ZodNumber;
|
|
5059
|
+
children: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strict>>;
|
|
5060
|
+
}, z.core.$strict>>;
|
|
5021
5061
|
receipts: z.ZodArray<z.ZodObject<{
|
|
5022
5062
|
requestId: z.ZodUUID;
|
|
5023
5063
|
workerId: z.ZodUUID;
|
|
@@ -5300,6 +5340,14 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
5300
5340
|
stop: "stop";
|
|
5301
5341
|
wait: "wait";
|
|
5302
5342
|
}>>;
|
|
5343
|
+
spawnGrant: z.ZodOptional<z.ZodObject<{
|
|
5344
|
+
kinds: z.ZodArray<z.ZodEnum<{
|
|
5345
|
+
"owned-isolated": "owned-isolated";
|
|
5346
|
+
shared: "shared";
|
|
5347
|
+
}>>;
|
|
5348
|
+
live: z.ZodNumber;
|
|
5349
|
+
children: z.ZodOptional<z.ZodObject<any, z.core.$strict>>;
|
|
5350
|
+
}, z.core.$strict>>;
|
|
5303
5351
|
parentRunId: z.ZodUUID;
|
|
5304
5352
|
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5305
5353
|
ownerRunId: z.ZodUUID;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { WorkerCapacity } from '../contract/index.js';
|
|
2
2
|
import type { RunRecord } from '../runs/store.ts';
|
|
3
|
+
import { type Lookup } from '../runs/task-rights.ts';
|
|
3
4
|
/**
|
|
4
5
|
* Fixed resource capacity and lifetime creation ceiling. Verified destroy reclaims capacity;
|
|
5
6
|
* neither limit is a spending budget.
|
|
@@ -10,6 +11,11 @@ export declare const WORKER_CREATION_LIMIT = 1024;
|
|
|
10
11
|
* Derive capacity from durable receipts. Only verified complete destroy or completed history
|
|
11
12
|
* deletion releases one; a missing record still consumes capacity.
|
|
12
13
|
*/
|
|
13
|
-
export declare function workerCapacity(
|
|
14
|
+
export declare function workerCapacity(family: RunRecord, getRun: Lookup): WorkerCapacity;
|
|
15
|
+
/** The family's outstanding workers that count against `supervisor`'s own limit: the ones it
|
|
16
|
+
* supervises, and the ones whose record is gone, which name no supervisor. */
|
|
17
|
+
export declare function supervisedOutstanding(family: RunRecord, supervisor: RunRecord, getRun: Lookup): number;
|
|
18
|
+
/** What a refused creation says when the family or its caller has no free slot. */
|
|
19
|
+
export declare const OUTSTANDING_REFUSAL = "Parent has 32 outstanding workers (accepted, live, or not verifiably destroyed). Collect results, then destroy finished workers to free capacity; incomplete cleanup holds its slot until a retry completes";
|
|
14
20
|
/** The refusal for a NEW creation, naming its recovery; undefined when a creation fits. */
|
|
15
21
|
export declare function capacityError(capacity: WorkerCapacity): string | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { receiptsOf, supervisorIdOf } from '../runs/task-rights.js';
|
|
1
2
|
/**
|
|
2
3
|
* Fixed resource capacity and lifetime creation ceiling. Verified destroy reclaims capacity;
|
|
3
4
|
* neither limit is a spending budget.
|
|
@@ -8,23 +9,31 @@ export const WORKER_CREATION_LIMIT = 1_024;
|
|
|
8
9
|
* Derive capacity from durable receipts. Only verified complete destroy or completed history
|
|
9
10
|
* deletion releases one; a missing record still consumes capacity.
|
|
10
11
|
*/
|
|
11
|
-
export function workerCapacity(
|
|
12
|
-
const receipts =
|
|
13
|
-
const outstanding = receipts.filter(receipt =>
|
|
14
|
-
if (receipt.deletion)
|
|
15
|
-
return false;
|
|
16
|
-
const owned = getRun(receipt.workerId)?.delegation;
|
|
17
|
-
return !(owned?.role === 'worker' && owned.destroy?.phase === 'complete' && owned.destroy.remaining.length === 0);
|
|
18
|
-
}).length;
|
|
12
|
+
export function workerCapacity(family, getRun) {
|
|
13
|
+
const receipts = receiptsOf(family);
|
|
14
|
+
const outstanding = receipts.filter(receipt => holdsSlot(receipt, getRun(receipt.workerId))).length;
|
|
19
15
|
return { outstanding, limit: WORKER_CAPACITY, created: receipts.length, creationLimit: WORKER_CREATION_LIMIT };
|
|
20
16
|
}
|
|
17
|
+
function holdsSlot(receipt, worker) {
|
|
18
|
+
if (receipt.deletion)
|
|
19
|
+
return false;
|
|
20
|
+
const owned = worker?.delegation;
|
|
21
|
+
return !(owned?.role === 'worker' && owned.destroy?.phase === 'complete' && owned.destroy.remaining.length === 0);
|
|
22
|
+
}
|
|
23
|
+
/** The family's outstanding workers that count against `supervisor`'s own limit: the ones it
|
|
24
|
+
* supervises, and the ones whose record is gone, which name no supervisor. */
|
|
25
|
+
export function supervisedOutstanding(family, supervisor, getRun) {
|
|
26
|
+
return receiptsOf(family).filter(receipt => {
|
|
27
|
+
const worker = getRun(receipt.workerId);
|
|
28
|
+
return holdsSlot(receipt, worker) && (!worker || supervisorIdOf(worker) === supervisor.id);
|
|
29
|
+
}).length;
|
|
30
|
+
}
|
|
31
|
+
/** What a refused creation says when the family or its caller has no free slot. */
|
|
32
|
+
export const OUTSTANDING_REFUSAL = 'Parent has 32 outstanding workers (accepted, live, or not verifiably destroyed). Collect results, then destroy finished workers to free capacity; incomplete cleanup holds its slot until a retry completes';
|
|
21
33
|
/** The refusal for a NEW creation, naming its recovery; undefined when a creation fits. */
|
|
22
34
|
export function capacityError(capacity) {
|
|
23
35
|
if (capacity.created >= capacity.creationLimit)
|
|
24
36
|
return 'Parent reached 1,024 worker creations; start a new task to delegate further';
|
|
25
|
-
|
|
26
|
-
return 'Parent has 32 outstanding workers (accepted, live, or not verifiably destroyed). Collect results, then destroy finished workers to free capacity; incomplete cleanup holds its slot until a retry completes';
|
|
27
|
-
}
|
|
28
|
-
return undefined;
|
|
37
|
+
return capacity.outstanding >= capacity.limit ? OUTSTANDING_REFUSAL : undefined;
|
|
29
38
|
}
|
|
30
39
|
//# sourceMappingURL=capacity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capacity.js","sourceRoot":"","sources":["../../src/delegation/capacity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"capacity.js","sourceRoot":"","sources":["../../src/delegation/capacity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAe,MAAM,wBAAwB,CAAC;AAEjF;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAC;AAClC,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAE3C;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,MAAiB,EAAE,MAAc;IAC9D,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IACpC,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CA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,CAAC,KAAK,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;AAClF,CAAC"}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import type { AgentInput, ConversationMessage, ConversationSendRequest, ConversationState, RequestOutcome } from '../contract/index.js';
|
|
2
2
|
import type { RunRecord } from '../runs/store.ts';
|
|
3
3
|
import type { DelegationProject } from './service.ts';
|
|
4
|
+
import { type ResolvedPair } from './conversations.ts';
|
|
4
5
|
export type ConversationPair = {
|
|
5
6
|
project: DelegationProject;
|
|
6
|
-
|
|
7
|
-
recipient: RunRecord;
|
|
8
|
-
} & ({
|
|
9
|
-
relationship: 'peer';
|
|
10
|
-
} | {
|
|
11
|
-
relationship: 'family';
|
|
12
|
-
root: RunRecord;
|
|
13
|
-
worker: RunRecord;
|
|
14
|
-
});
|
|
7
|
+
} & ResolvedPair;
|
|
15
8
|
export declare function sendRequestContext(state: ConversationState, request: ConversationSendRequest, sender: RunRecord, recipient: RunRecord): {
|
|
16
9
|
original: {
|
|
17
10
|
senderRunId: string;
|
|
@@ -49,7 +42,7 @@ export declare function sendRequestContext(state: ConversationState, request: Co
|
|
|
49
42
|
} | undefined;
|
|
50
43
|
};
|
|
51
44
|
export declare function assertReplyDirection(state: ConversationState, request: ConversationSendRequest, sender: RunRecord, recipient: RunRecord): void;
|
|
52
|
-
export declare function sendAdmission(pair: ConversationPair,
|
|
45
|
+
export declare function sendAdmission(pair: ConversationPair, request: ConversationSendRequest): {
|
|
53
46
|
destroyed: boolean;
|
|
54
47
|
resumable: boolean;
|
|
55
48
|
resume: boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { commandText } from '../home/command.js';
|
|
2
2
|
import { MAX_CONVERSATION_REQUEST_SECONDS } from '../contract/index.js';
|
|
3
3
|
import { messagingAllowed } from '../contract/index.js';
|
|
4
|
-
import { finishing
|
|
4
|
+
import { finishing } from '../runs/task-rights.js';
|
|
5
|
+
import { notDeliveredInstruction } from './conversations.js';
|
|
5
6
|
import { DelegationPolicyError } from './policy.js';
|
|
6
7
|
export function sendRequestContext(state, request, sender, recipient) {
|
|
7
8
|
assertReplyDirection(state, request, sender, recipient);
|
|
@@ -24,7 +25,7 @@ export function assertReplyDirection(state, request, sender, recipient) {
|
|
|
24
25
|
if (original)
|
|
25
26
|
throw new DelegationPolicyError('incompatible_state', commandText(`Cannot reply to your own request. Use cez message follow-up ${recipient.id} "<text>" --id <new-message-UUID> --request-id ${original.id}; for a new request, use cez message request ${recipient.id} "<text>" --id <new-message-UUID>.`));
|
|
26
27
|
}
|
|
27
|
-
export function sendAdmission(pair,
|
|
28
|
+
export function sendAdmission(pair, request) {
|
|
28
29
|
const { recipient, relationship } = pair;
|
|
29
30
|
const peer = relationship === 'peer';
|
|
30
31
|
const destroyed = recipient.delegation?.role === 'worker' && recipient.delegation.destroy?.phase === 'complete';
|
|
@@ -41,7 +42,7 @@ export function sendAdmission(pair, root, request) {
|
|
|
41
42
|
assertSendResume(recipient, resume, destroyed);
|
|
42
43
|
const instruction = destroyed ? 'Not delivered: this worker was destroyed. Spawn a new worker for further work.'
|
|
43
44
|
: closed ? 'Not delivered: this task does not accept task messages.'
|
|
44
|
-
: resumable && !resume ? notDeliveredInstruction(pair
|
|
45
|
+
: resumable && !resume ? notDeliveredInstruction(pair) : undefined;
|
|
45
46
|
return { destroyed, resumable, resume, instruction };
|
|
46
47
|
}
|
|
47
48
|
/** A cancelled worker resumes like a settled one (hearsay-tools/squawk#3337); destroy is the permanent end. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-send.js","sourceRoot":"","sources":["../../src/delegation/conversation-send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAG7E,OAAO,EAAE,SAAS,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