@hearsay-tools/squawk 0.18.0-dev.7420 → 0.18.0-dev.7432
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 +1 -1
- package/dist/ci-wait/errors.js +2 -0
- package/dist/ci-wait/errors.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +5 -5
- package/dist/contract/attention.d.ts +1 -1
- package/dist/contract/delegation.d.ts +20 -1
- package/dist/contract/index.js +37 -12
- package/dist/contract/runs.d.ts +10 -0
- package/dist/contract/waits.d.ts +4 -1
- package/dist/contract/workspace-events.d.ts +2 -0
- package/dist/delegation/capacity.d.ts +12 -3
- package/dist/delegation/capacity.js +23 -8
- package/dist/delegation/capacity.js.map +1 -1
- package/dist/delegation/cli.js +3 -5
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/conversations.d.ts +3 -0
- package/dist/delegation/conversations.js +4 -1
- package/dist/delegation/conversations.js.map +1 -1
- package/dist/delegation/policy.d.ts +13 -3
- package/dist/delegation/policy.js +30 -14
- package/dist/delegation/policy.js.map +1 -1
- package/dist/delegation/provision.js +11 -6
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/readiness.d.ts +4 -2
- package/dist/delegation/readiness.js +9 -8
- package/dist/delegation/readiness.js.map +1 -1
- package/dist/delegation/routes.d.ts +77 -75
- package/dist/delegation/service.d.ts +1 -0
- package/dist/delegation/service.js +56 -35
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +22 -20
- package/dist/delegation/worker-cleanup.d.ts +12 -0
- package/dist/delegation/worker-cleanup.js +55 -1
- package/dist/delegation/worker-cleanup.js.map +1 -1
- package/dist/delegation/workspace-kinds.d.ts +0 -3
- package/dist/delegation/workspace-kinds.js +4 -6
- package/dist/delegation/workspace-kinds.js.map +1 -1
- package/dist/runs/delegation-state.d.ts +2 -0
- package/dist/runs/owned-run-create.js +33 -9
- package/dist/runs/owned-run-create.js.map +1 -1
- package/dist/runs/run-exits.d.ts +12 -0
- package/dist/runs/shared-hosts.d.ts +4 -0
- package/dist/runs/shared-hosts.js +6 -0
- package/dist/runs/shared-hosts.js.map +1 -1
- package/dist/runs/store.d.ts +6 -3
- package/dist/runs/store.js +5 -6
- package/dist/runs/store.js.map +1 -1
- package/dist/runs/supervised.d.ts +21 -0
- package/dist/runs/supervised.js +28 -0
- package/dist/runs/supervised.js.map +1 -0
- package/dist/runs/task-rights.d.ts +22 -3
- package/dist/runs/task-rights.js +58 -13
- package/dist/runs/task-rights.js.map +1 -1
- package/dist/server/run-checkout.js +4 -0
- package/dist/server/run-checkout.js.map +1 -1
- package/dist/server/run-relationships.d.ts +14 -0
- package/dist/server/run-relationships.js +47 -0
- package/dist/server/run-relationships.js.map +1 -0
- package/dist/server/server.d.ts +416 -370
- package/dist/server/server.js +2 -32
- package/dist/server/server.js.map +1 -1
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/workflows/completion-policy.d.ts +7 -1
- package/dist/workflows/completion-policy.js +13 -3
- package/dist/workflows/completion-policy.js.map +1 -1
- package/dist/workflows/continuation-admission.d.ts +2 -0
- package/dist/workflows/continuation-admission.js +6 -0
- package/dist/workflows/continuation-admission.js.map +1 -1
- package/dist/workflows/question-routing.d.ts +2 -0
- package/dist/workflows/question-routing.js +7 -0
- package/dist/workflows/question-routing.js.map +1 -1
- package/dist/workflows/run/completion-gate.d.ts +3 -0
- package/dist/workflows/run/completion-gate.js +12 -7
- package/dist/workflows/run/completion-gate.js.map +1 -1
- package/dist/workflows/run/family-reconciler.d.ts +13 -8
- package/dist/workflows/run/family-reconciler.js +26 -17
- package/dist/workflows/run/family-reconciler.js.map +1 -1
- package/dist/workflows/run/run-cancel.d.ts +2 -1
- package/dist/workflows/run/run-cancel.js +5 -3
- package/dist/workflows/run/run-cancel.js.map +1 -1
- package/dist/workflows/run/run-finish.js +4 -6
- package/dist/workflows/run/run-finish.js.map +1 -1
- package/dist/workflows/run/run-recovery.js +10 -0
- package/dist/workflows/run/run-recovery.js.map +1 -1
- package/dist/workflows/run/run-workspace.js +3 -2
- package/dist/workflows/run/run-workspace.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +2 -0
- package/dist/workflows/run/wait-engine.js +2 -1
- package/dist/workflows/run/wait-engine.js.map +1 -1
- package/dist/workflows/run/wait-registry.d.ts +4 -1
- package/dist/workflows/run/wait-registry.js +12 -3
- package/dist/workflows/run/wait-registry.js.map +1 -1
- package/dist/workflows/run/worker-questions.d.ts +11 -3
- package/dist/workflows/run/worker-questions.js +38 -18
- package/dist/workflows/run/worker-questions.js.map +1 -1
- package/dist/workflows/wait-scope.d.ts +2 -2
- package/dist/workflows/wait-scope.js +4 -4
- package/dist/workflows/wait-scope.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/activity-motion-CQKAazEg.js +2 -0
- package/web/dist/assets/{activity-route-BbwWWjLu.js → activity-route-C6oKznjI.js} +1 -1
- package/web/dist/assets/{agent-accounts-DuPt97Nw.js → agent-accounts-T6Q6vL9r.js} +1 -1
- package/web/dist/assets/attention-KYhxOgNq.js +1 -0
- package/web/dist/assets/{commit-diff-panel-Bnvq61J-.js → commit-diff-panel-DUeb6EUF.js} +1 -1
- package/web/dist/assets/{diff-B8GNyr9F.js → diff-DVALb2F0.js} +2 -2
- package/web/dist/assets/{diff-view-tvmfpdwD.js → diff-view-DxV_tLUt.js} +1 -1
- package/web/dist/assets/{file-preview-DyJ7pa7M.js → file-preview-BFS1UwXr.js} +1 -1
- package/web/dist/assets/{git-toolbar-BEwf9FAg.js → git-toolbar-C89FoROy.js} +1 -1
- package/web/dist/assets/{github-065AS6rF.js → github-B4Meld9S.js} +1 -1
- package/web/dist/assets/{global-activity-route-BTzn2tW0.js → global-activity-route-CuU0bmKz.js} +1 -1
- package/web/dist/assets/{index-B1a7IUEx.js → index-Cwfi9cG9.js} +9 -9
- package/web/dist/assets/{markdown-WEuLU4Vx.js → markdown-DuVt8jbQ.js} +1 -1
- package/web/dist/assets/{picker-pill-S8ZHSbEz.js → picker-pill-CwbEYCjL.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-8L_L03y-.js → preview-pane-connected-CSwZ6Xl5.js} +2 -2
- package/web/dist/assets/{project-router-DghsITyi.js → project-router-B73juPC3.js} +1 -1
- package/web/dist/assets/project-scope-context-B2P3zXB1.js +4 -0
- package/web/dist/assets/{prompt-template-menu-CWB1yVtQ.js → prompt-template-menu-nShN9uXQ.js} +1 -1
- package/web/dist/assets/queries-B6a1W2sa.js +1 -0
- package/web/dist/assets/{reference-chip-BPDNXClC.js → reference-chip-yXXzlbts.js} +1 -1
- package/web/dist/assets/{repo-git-C8f2sO_m.js → repo-git-CDOCx8X4.js} +1 -1
- package/web/dist/assets/{report-reader-DfsQnNMV.js → report-reader-CgYcjz5W.js} +1 -1
- package/web/dist/assets/reports-nt1YPqOJ.js +1 -0
- package/web/dist/assets/run-header-DaqWXi5W.js +2 -0
- package/web/dist/assets/{skills-B06yAjnR.js → skills-D45ND2YB.js} +1 -1
- package/web/dist/assets/{tab-link-CJVHsPcP.js → tab-link-BwGcrAfg.js} +1 -1
- package/web/dist/assets/{task-changes-DwKiWfHR.js → task-changes-NPbEK_pM.js} +1 -1
- package/web/dist/assets/{task-commits-DDh8b5KF.js → task-commits-D_YFcFld.js} +1 -1
- package/web/dist/assets/{task-files--h7-YLZ5.js → task-files-eHbJ4ftX.js} +1 -1
- package/web/dist/assets/{task-github-item-Djf7nc-_.js → task-github-item-D0splQvy.js} +1 -1
- package/web/dist/assets/task-thread-B_pBPheb.js +9 -0
- package/web/dist/assets/{thread-state-C0SrNkfb.js → thread-state-DFXgDkC_.js} +1 -1
- package/web/dist/assets/{use-desktop-DPqRiTb2.js → use-desktop-D3W91YLi.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-BnOqq8ll.js → use-hand-to-agent-state-CVgHwx89.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-DiYIgx71.js → useInfiniteQuery-B6Kx_mBY.js} +1 -1
- package/web/dist/assets/useQuery-D8aTqerT.js +1 -0
- package/web/dist/assets/{workflows-3Sy7hfUX.js → workflows-fidBxppB.js} +1 -1
- package/web/dist/assets/ws-Bb6iWQU5.js +1 -0
- package/web/dist/index.html +13 -13
- package/web/dist/assets/activity-motion-CFD_Hwe7.js +0 -2
- package/web/dist/assets/attention-BmEhfFZ0.js +0 -1
- package/web/dist/assets/project-scope-context-DNKOo_im.js +0 -4
- package/web/dist/assets/queries-bxk8LCaR.js +0 -1
- package/web/dist/assets/reports-DnROeG5A.js +0 -1
- package/web/dist/assets/run-header-HqBmAMyy.js +0 -2
- package/web/dist/assets/task-thread-B_Oe62EY.js +0 -9
- package/web/dist/assets/useQuery-DbMHYDKn.js +0 -1
- package/web/dist/assets/ws-C09Vt-Eu.js +0 -1
|
@@ -341,7 +341,7 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
341
341
|
})[];
|
|
342
342
|
} | {
|
|
343
343
|
ok: false;
|
|
344
|
-
code: "autonomous_run" | "capability_revoked" | "capacity" | "finish_requested" | "generation_mismatch" | "invalid_request" | "manager_disposed" | "persistence" | "root_finish_pending" | "run_cancelled" | "run_missing" | "run_not_running" | "run_stopping" | "session_closed" | "session_replaced" | "unauthorized" | "unavailable" | "worker_execution_stopped" | "worker_wait_pending";
|
|
344
|
+
code: "autonomous_run" | "capability_revoked" | "capacity" | "finish_requested" | "generation_mismatch" | "invalid_request" | "manager_disposed" | "persistence" | "root_finish_pending" | "run_cancelled" | "run_missing" | "run_not_running" | "run_stopping" | "session_closed" | "session_replaced" | "supervisor_is_worker" | "unauthorized" | "unavailable" | "worker_execution_stopped" | "worker_wait_pending";
|
|
345
345
|
message: string;
|
|
346
346
|
open_waits?: ({
|
|
347
347
|
wait_id: string;
|
package/dist/ci-wait/errors.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { commandText } from '../home/command.js';
|
|
1
2
|
import { productIdentity } from '../home/identity.js';
|
|
2
3
|
import { TIMER_MAX_SECONDS, TIMER_MIN_SECONDS } from '../contract/index.js';
|
|
3
4
|
import { MESSAGING_OFF } from '../delegation/policy.js';
|
|
@@ -97,6 +98,7 @@ const askMessages = {
|
|
|
97
98
|
worker_wait_pending: 'A worker wait is still pending, including any result awaiting delivery. End your turn to receive its result, then ask again if you still need the user.',
|
|
98
99
|
worker_execution_stopped: 'Worker execution has stopped. Ask the parent to resume the worker before asking.',
|
|
99
100
|
root_finish_pending: 'The parent is finishing. End your turn; the parent completes that transition.',
|
|
101
|
+
supervisor_is_worker: commandText('A worker started this task, so no question card reaches it. Send your question to that worker with cez message request, then wait for its reply with cez message wait --request.'),
|
|
100
102
|
};
|
|
101
103
|
export function askErrorMessage(code) {
|
|
102
104
|
return askMessages[code];
|
|
@@ -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;AAEtD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAChG,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;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,CAAC,iCAAiC,YAAY,CAAC,EAAE,yBAAyB,UAAU,IAAI,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,uBAAuB,2CAA2C,CAAC,CAAC;4BADrL,YAAY;IAEjC,CAAC;CACF"}
|
package/dist/ci-wait/tools.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export declare function invokeAskTool(input: unknown): Promise<{
|
|
|
54
54
|
})[];
|
|
55
55
|
} | {
|
|
56
56
|
ok: false;
|
|
57
|
-
code: "autonomous_run" | "capability_revoked" | "capacity" | "finish_requested" | "generation_mismatch" | "invalid_request" | "manager_disposed" | "persistence" | "root_finish_pending" | "run_cancelled" | "run_missing" | "run_not_running" | "run_stopping" | "session_closed" | "session_replaced" | "unauthorized" | "unavailable" | "worker_execution_stopped" | "worker_wait_pending";
|
|
57
|
+
code: "autonomous_run" | "capability_revoked" | "capacity" | "finish_requested" | "generation_mismatch" | "invalid_request" | "manager_disposed" | "persistence" | "root_finish_pending" | "run_cancelled" | "run_missing" | "run_not_running" | "run_stopping" | "session_closed" | "session_replaced" | "supervisor_is_worker" | "unauthorized" | "unavailable" | "worker_execution_stopped" | "worker_wait_pending";
|
|
58
58
|
message: string;
|
|
59
59
|
open_waits?: ({
|
|
60
60
|
wait_id: string;
|
|
@@ -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<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type WorkerWait } from './delegation.ts';
|
|
2
2
|
import type { RunIndexEntry, RunRecord, RunSummary } from './runs.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Canonical Node-free attention classification for browser and CLI. Map run facts to bucket,
|
|
@@ -224,6 +224,7 @@ export declare const workerCreationReceiptSchema: z.ZodObject<{
|
|
|
224
224
|
requestId: z.ZodUUID;
|
|
225
225
|
workerId: z.ZodUUID;
|
|
226
226
|
requestHash: z.ZodString;
|
|
227
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
227
228
|
deletion: z.ZodOptional<z.ZodObject<{
|
|
228
229
|
phase: z.ZodEnum<{
|
|
229
230
|
complete: "complete";
|
|
@@ -815,6 +816,7 @@ export declare const delegationStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
815
816
|
requestId: z.ZodUUID;
|
|
816
817
|
workerId: z.ZodUUID;
|
|
817
818
|
requestHash: z.ZodString;
|
|
819
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
818
820
|
deletion: z.ZodOptional<z.ZodObject<{
|
|
819
821
|
phase: z.ZodEnum<{
|
|
820
822
|
complete: "complete";
|
|
@@ -1102,6 +1104,7 @@ export declare const delegationStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1102
1104
|
children: z.ZodOptional<z.ZodObject<any, z.core.$strict>>;
|
|
1103
1105
|
}, z.core.$strict>>;
|
|
1104
1106
|
parentRunId: z.ZodUUID;
|
|
1107
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
1105
1108
|
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1106
1109
|
ownerRunId: z.ZodUUID;
|
|
1107
1110
|
resourceId: z.ZodUUID;
|
|
@@ -1157,6 +1160,12 @@ export declare const delegationStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1157
1160
|
role: z.ZodLiteral<"invalid">;
|
|
1158
1161
|
}, z.core.$strict>], "role">;
|
|
1159
1162
|
export type DelegationState = z.infer<typeof delegationStateSchema>;
|
|
1163
|
+
/** Whether a task with this record can have workers to list: the task that holds the family's
|
|
1164
|
+
* receipts, and a worker that holds a spawn grant. The cockpit's Workers section, its verdict and
|
|
1165
|
+
* the completion wait's view all ask this. */
|
|
1166
|
+
export declare function listsWorkers(delegation: (Pick<DelegationState, 'role'> & {
|
|
1167
|
+
spawnGrant?: SpawnGrant | undefined;
|
|
1168
|
+
}) | null | undefined): boolean;
|
|
1160
1169
|
/** Slim list/palette projection. Never copies resource paths, permissions or receipts. */
|
|
1161
1170
|
export declare const runDelegationSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1162
1171
|
role: z.ZodLiteral<"root">;
|
|
@@ -1175,6 +1184,7 @@ export declare const runDelegationSummarySchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
1175
1184
|
}, z.core.$strip>, z.ZodObject<{
|
|
1176
1185
|
role: z.ZodLiteral<"worker">;
|
|
1177
1186
|
parentRunId: z.ZodUUID;
|
|
1187
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
1178
1188
|
wait: z.ZodOptional<z.ZodObject<{
|
|
1179
1189
|
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
1180
1190
|
phase: z.ZodEnum<{
|
|
@@ -1196,7 +1206,10 @@ export declare const workerWorkspaceChoiceSchema: z.ZodEnum<{
|
|
|
1196
1206
|
isolated: "isolated";
|
|
1197
1207
|
shared: "shared";
|
|
1198
1208
|
}>;
|
|
1199
|
-
|
|
1209
|
+
/** `parent-head` names what a shared worker already runs at, so it is accepted; any other ref is refused. */
|
|
1210
|
+
export declare const SHARED_BASELINE = "parent-head";
|
|
1211
|
+
export declare const SHARED_BASELINE_REFUSAL = "--baseline cannot be used with --workspace shared: a shared worker runs at its parent's HEAD; leave --baseline out or pass parent-head";
|
|
1212
|
+
export declare const ISOLATED_BASELINE_REFUSAL = "--baseline is required for an isolated workspace";
|
|
1200
1213
|
export declare const SHARED_ATTACH_REFUSAL = "--attach cannot be used with --workspace shared: the worker runs in your worktree, so the file is already there";
|
|
1201
1214
|
/** Why a spawn into a shared workspace is refused, or undefined. The schema accepts the request, so
|
|
1202
1215
|
* the service and the CLI answer with these words instead of a generic validation error. */
|
|
@@ -1261,6 +1274,7 @@ export declare const workerInspectionSchema: z.ZodObject<{
|
|
|
1261
1274
|
workerId: z.ZodUUID;
|
|
1262
1275
|
settled: z.ZodBoolean;
|
|
1263
1276
|
parentRunId: z.ZodUUID;
|
|
1277
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
1264
1278
|
status: z.ZodEnum<{
|
|
1265
1279
|
cancelled: "cancelled";
|
|
1266
1280
|
done: "done";
|
|
@@ -1453,6 +1467,7 @@ export type WorkerInspection = z.infer<typeof workerInspectionSchema>;
|
|
|
1453
1467
|
export declare const workerListEntrySchema: z.ZodObject<{
|
|
1454
1468
|
workerId: z.ZodUUID;
|
|
1455
1469
|
parentRunId: z.ZodUUID;
|
|
1470
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
1456
1471
|
status: z.ZodEnum<{
|
|
1457
1472
|
cancelled: "cancelled";
|
|
1458
1473
|
done: "done";
|
|
@@ -1506,6 +1521,7 @@ export declare const workerListResultSchema: z.ZodObject<{
|
|
|
1506
1521
|
workers: z.ZodArray<z.ZodObject<{
|
|
1507
1522
|
workerId: z.ZodUUID;
|
|
1508
1523
|
parentRunId: z.ZodUUID;
|
|
1524
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
1509
1525
|
status: z.ZodEnum<{
|
|
1510
1526
|
cancelled: "cancelled";
|
|
1511
1527
|
done: "done";
|
|
@@ -1566,6 +1582,7 @@ export declare const workerListPageSchema: z.ZodObject<{
|
|
|
1566
1582
|
workers: z.ZodArray<z.ZodObject<{
|
|
1567
1583
|
workerId: z.ZodUUID;
|
|
1568
1584
|
parentRunId: z.ZodUUID;
|
|
1585
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
1569
1586
|
status: z.ZodEnum<{
|
|
1570
1587
|
cancelled: "cancelled";
|
|
1571
1588
|
done: "done";
|
|
@@ -1677,10 +1694,12 @@ export declare const relatedRunTitleSchema: z.ZodObject<{
|
|
|
1677
1694
|
export type RelatedRunTitle = z.infer<typeof relatedRunTitleSchema>;
|
|
1678
1695
|
export declare const runRelationshipsSchema: z.ZodObject<{
|
|
1679
1696
|
parentRunId: z.ZodOptional<z.ZodUUID>;
|
|
1697
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
1680
1698
|
workers: z.ZodArray<z.ZodObject<{
|
|
1681
1699
|
workerId: z.ZodUUID;
|
|
1682
1700
|
settled: z.ZodBoolean;
|
|
1683
1701
|
parentRunId: z.ZodUUID;
|
|
1702
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
1684
1703
|
status: z.ZodEnum<{
|
|
1685
1704
|
cancelled: "cancelled";
|
|
1686
1705
|
done: "done";
|
package/dist/contract/index.js
CHANGED
|
@@ -780,6 +780,9 @@ var workerCreationReceiptSchema = z11.object({
|
|
|
780
780
|
workerId: z11.uuid(),
|
|
781
781
|
/** Hash of the original normalized spawn request, NOT the resolved commit or inherited settings. */
|
|
782
782
|
requestHash: requestHashSchema,
|
|
783
|
+
/** The task that started the worker. Absent: the task that holds this receipt. A request ID is
|
|
784
|
+
* unique among the receipts of one supervisor. */
|
|
785
|
+
supervisorRunId: z11.uuid().optional(),
|
|
783
786
|
deletion: z11.object({ phase: z11.enum(["pending", "complete"]), revision: z11.number().int().nonnegative(), resourceId: z11.uuid(), generation: z11.uuid() }).strict().optional()
|
|
784
787
|
}).strict();
|
|
785
788
|
var workerBackendSchema = z11.enum(runnerSchema.options);
|
|
@@ -902,7 +905,7 @@ var delegationStateSchema = z11.discriminatedUnion("role", [
|
|
|
902
905
|
permissions: permissionsSchema,
|
|
903
906
|
spawnGrant: spawnGrantSchema.optional(),
|
|
904
907
|
// #816: bounded by the creation ceiling (WORKER_CREATION_LIMIT), not by capacity.
|
|
905
|
-
receipts: z11.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),
|
|
908
|
+
receipts: z11.array(workerCreationReceiptSchema).max(1024).refine((receipts) => new Set(receipts.map((receipt) => `${receipt.supervisorRunId ?? ""} ${receipt.requestId}`)).size === receipts.length && new Set(receipts.map((receipt) => receipt.workerId)).size === receipts.length),
|
|
906
909
|
// `wait`, `lastWait` and `completion` are the old worker-wait engine's, never written since
|
|
907
910
|
// hearsay-tools/cezarion#1301: every worker wait is a list entry. Kept optional so old rows
|
|
908
911
|
// parse; the store reads them into the list on open (store schemas 6 and 7).
|
|
@@ -920,7 +923,10 @@ var delegationStateSchema = z11.discriminatedUnion("role", [
|
|
|
920
923
|
lastWait: workerWaitSchema.optional(),
|
|
921
924
|
permissions: permissionsSchema,
|
|
922
925
|
spawnGrant: spawnGrantSchema.optional(),
|
|
926
|
+
/** The task that holds the family's receipts and its conversation ledger. */
|
|
923
927
|
parentRunId: z11.uuid(),
|
|
928
|
+
/** The task that started this worker and supervises it. Absent: `parentRunId`. */
|
|
929
|
+
supervisorRunId: z11.uuid().optional(),
|
|
924
930
|
workspace: workerWorkspaceSchema,
|
|
925
931
|
destroy: workerDestroySchema.optional(),
|
|
926
932
|
context: workerInputRecipeSchema.optional(),
|
|
@@ -930,6 +936,9 @@ var delegationStateSchema = z11.discriminatedUnion("role", [
|
|
|
930
936
|
// A persisted quarantine is distinct from absent legacy metadata and grants no authority.
|
|
931
937
|
z11.object({ role: z11.literal("invalid") }).strict()
|
|
932
938
|
]);
|
|
939
|
+
function listsWorkers(delegation) {
|
|
940
|
+
return delegation?.role === "root" || delegation?.role === "worker" && !!delegation.spawnGrant?.kinds.length;
|
|
941
|
+
}
|
|
933
942
|
var runDelegationSummarySchema = z11.discriminatedUnion("role", [
|
|
934
943
|
delegationStateSchema.options[0].pick({ role: true }).strip().extend({
|
|
935
944
|
// The awaited worker ids and which of them reported (ids only) keep a list's counted label,
|
|
@@ -939,26 +948,30 @@ var runDelegationSummarySchema = z11.discriminatedUnion("role", [
|
|
|
939
948
|
}).optional()
|
|
940
949
|
}),
|
|
941
950
|
// `parentRunId` is the one worker field a list needs: the sidebar lights the parent's row for
|
|
942
|
-
// a worker URL, and `cez task list` hides workers by it (#817).
|
|
943
|
-
|
|
951
|
+
// a worker URL, and `cez task list` hides workers by it (#817). `supervisorRunId` names the
|
|
952
|
+
// worker whose Workers section lists this one. Never paths or permissions.
|
|
953
|
+
delegationStateSchema.options[1].pick({ role: true, parentRunId: true, supervisorRunId: true }).strip().extend({
|
|
944
954
|
wait: workerWaitSchema.pick({ phase: true, requestIds: true }).strip().optional()
|
|
945
955
|
}),
|
|
946
956
|
delegationStateSchema.options[2].strip()
|
|
947
957
|
]);
|
|
948
958
|
var WORKSPACE_CHOICES = { isolated: "owned-isolated", shared: "shared" };
|
|
949
959
|
var workerWorkspaceChoiceSchema = z11.enum(["isolated", "shared"]);
|
|
950
|
-
var
|
|
960
|
+
var SHARED_BASELINE = "parent-head";
|
|
961
|
+
var SHARED_BASELINE_REFUSAL = "--baseline cannot be used with --workspace shared: a shared worker runs at its parent's HEAD; leave --baseline out or pass parent-head";
|
|
962
|
+
var ISOLATED_BASELINE_REFUSAL = "--baseline is required for an isolated workspace";
|
|
951
963
|
var SHARED_ATTACH_REFUSAL = "--attach cannot be used with --workspace shared: the worker runs in your worktree, so the file is already there";
|
|
952
964
|
function sharedSpawnRefusal(request) {
|
|
953
965
|
if (request.workspace !== "shared") return void 0;
|
|
954
|
-
if (request.baseline !== void 0) return SHARED_BASELINE_REFUSAL;
|
|
966
|
+
if (request.baseline !== void 0 && request.baseline !== SHARED_BASELINE) return SHARED_BASELINE_REFUSAL;
|
|
955
967
|
return request.context?.artifacts?.some((artifact) => artifact.kind === "parent-file") ? SHARED_ATTACH_REFUSAL : void 0;
|
|
956
968
|
}
|
|
957
969
|
var workerSpawnRequestSchema = z11.object({
|
|
958
970
|
task: z11.string().min(1).max(1e5),
|
|
959
|
-
/** Required for an isolated workspace
|
|
971
|
+
/** Required for an isolated workspace. A shared one runs at its host's HEAD: only `parent-head` is accepted.
|
|
972
|
+
* The service decides, since an absent `workspace` depends on the caller's grant. */
|
|
960
973
|
baseline: z11.string().min(1).max(1024).optional(),
|
|
961
|
-
/**
|
|
974
|
+
/** Absent: the first kind the caller's spawn grant allows. */
|
|
962
975
|
workspace: workerWorkspaceChoiceSchema.optional(),
|
|
963
976
|
requestId: z11.uuid(),
|
|
964
977
|
context: workerContextSchema.optional(),
|
|
@@ -969,7 +982,7 @@ var workerSpawnRequestSchema = z11.object({
|
|
|
969
982
|
workflow: z11.string().trim().min(1).max(200).optional(),
|
|
970
983
|
/** Discovered skill to run as a one-step task, mutually exclusive with workflow (#778). */
|
|
971
984
|
skill: z11.string().trim().min(1).max(200).optional()
|
|
972
|
-
}).strict().refine((request) => request.skill === void 0 || request.workflow === void 0, { message: "--skill and --workflow cannot be used together" }).refine((request) => request.
|
|
985
|
+
}).strict().refine((request) => request.skill === void 0 || request.workflow === void 0, { message: "--skill and --workflow cannot be used together" }).refine((request) => request.task.length + (request.context?.text?.length ?? 0) <= 1e5, { message: "Combined task and context exceed 100000 characters" });
|
|
973
986
|
var workerSteerRequestSchema = z11.object({
|
|
974
987
|
text: z11.string().max(1e5).refine((text) => text.trim().length > 0)
|
|
975
988
|
}).strict();
|
|
@@ -981,7 +994,10 @@ var workerWaitRequestSchema = z11.object({
|
|
|
981
994
|
var workerInspectionSchema = z11.object({
|
|
982
995
|
workerId: z11.uuid(),
|
|
983
996
|
settled: z11.boolean(),
|
|
997
|
+
/** The task that holds the family's receipts. */
|
|
984
998
|
parentRunId: z11.uuid(),
|
|
999
|
+
/** The worker that supervises this one. Absent: `parentRunId` supervises it. */
|
|
1000
|
+
supervisorRunId: z11.uuid().optional(),
|
|
985
1001
|
status: z11.enum(["queued", "running", "waiting", ...workerOutcomeSchema.shape.status.options]),
|
|
986
1002
|
currentStepId: z11.string().optional(),
|
|
987
1003
|
workspace: workerWorkspaceSchema,
|
|
@@ -1000,6 +1016,7 @@ var workerInspectionSchema = z11.object({
|
|
|
1000
1016
|
var workerListEntrySchema = workerInspectionSchema.pick({
|
|
1001
1017
|
workerId: true,
|
|
1002
1018
|
parentRunId: true,
|
|
1019
|
+
supervisorRunId: true,
|
|
1003
1020
|
status: true,
|
|
1004
1021
|
workspace: true,
|
|
1005
1022
|
destroy: true
|
|
@@ -1048,8 +1065,11 @@ var relatedRunTitleSchema = z11.object({
|
|
|
1048
1065
|
});
|
|
1049
1066
|
var runRelationshipsSchema = z11.object({
|
|
1050
1067
|
parentRunId: z11.uuid().optional(),
|
|
1068
|
+
/** For a worker that another worker supervises: that worker. Absent: `parentRunId` supervises it. */
|
|
1069
|
+
supervisorRunId: z11.uuid().optional(),
|
|
1070
|
+
/** A root's whole family; a worker's supervised workers. */
|
|
1051
1071
|
workers: z11.array(workerInspectionSchema).max(1024),
|
|
1052
|
-
/** The parent's title for a worker, each worker's
|
|
1072
|
+
/** The parent's and the supervisor's title for a worker, each listed worker's; absent when there is none. */
|
|
1053
1073
|
titles: z11.array(relatedRunTitleSchema).max(1025).optional(),
|
|
1054
1074
|
/** Present for a delegation root only. */
|
|
1055
1075
|
capacity: workerCapacitySchema.optional()
|
|
@@ -2365,7 +2385,8 @@ var askErrorCodeSchema = z19.enum([
|
|
|
2365
2385
|
"generation_mismatch",
|
|
2366
2386
|
"worker_wait_pending",
|
|
2367
2387
|
"worker_execution_stopped",
|
|
2368
|
-
"root_finish_pending"
|
|
2388
|
+
"root_finish_pending",
|
|
2389
|
+
"supervisor_is_worker"
|
|
2369
2390
|
]);
|
|
2370
2391
|
var squawkAskAnswerSchema = z19.discriminatedUnion("ok", [
|
|
2371
2392
|
z19.object({ ok: z19.literal(true), wait_id: z19.uuid(), open_waits: z19.array(openWaitSchema).max(WAIT_LIMIT) }).strict(),
|
|
@@ -2503,7 +2524,7 @@ function workerCompletionWaitProjection(entry, run) {
|
|
|
2503
2524
|
};
|
|
2504
2525
|
}
|
|
2505
2526
|
function completionWaitView(run) {
|
|
2506
|
-
if (run.delegation
|
|
2527
|
+
if (!listsWorkers(run.delegation)) return void 0;
|
|
2507
2528
|
const entry = completionWaitEntry(run.waits);
|
|
2508
2529
|
return entry ? workerCompletionWaitProjection(entry, run) : void 0;
|
|
2509
2530
|
}
|
|
@@ -3306,7 +3327,8 @@ function owesWorkerWake(run) {
|
|
|
3306
3327
|
}
|
|
3307
3328
|
function workerAttention(run, waitingOn) {
|
|
3308
3329
|
const attention = attentionOfRung("waiting-on-workers");
|
|
3309
|
-
|
|
3330
|
+
const ownWorkers = listsWorkers(run.delegation) && !waitingOn.replies && !!waitingOn.count;
|
|
3331
|
+
if (run.delegation?.role === "worker" && !ownWorkers) return { ...attention, shape: "ring", label: "waiting on parent reply" };
|
|
3310
3332
|
if (waitingOn.replies) return { ...attention, label: waitingOn.peers ? "waiting on replies" : "waiting on worker replies" };
|
|
3311
3333
|
const count2 = waitingOn.count;
|
|
3312
3334
|
return { ...attention, label: count2 ? `waiting on ${count2} worker${count2 === 1 ? "" : "s"}` : attention.label };
|
|
@@ -5983,6 +6005,7 @@ export {
|
|
|
5983
6005
|
HOME_FILE_PATTERN,
|
|
5984
6006
|
HOME_RECOVERY_REASONS,
|
|
5985
6007
|
HUMAN_ASK_EVENT_TYPES,
|
|
6008
|
+
ISOLATED_BASELINE_REFUSAL,
|
|
5986
6009
|
LAST_WAITS_LIMIT,
|
|
5987
6010
|
LEASE_MS,
|
|
5988
6011
|
LIVE_BYTE_LIMIT,
|
|
@@ -6026,6 +6049,7 @@ export {
|
|
|
6026
6049
|
SCHEDULE_HOURS_OPTIONS,
|
|
6027
6050
|
SCHEDULE_TYPES,
|
|
6028
6051
|
SHARED_ATTACH_REFUSAL,
|
|
6052
|
+
SHARED_BASELINE,
|
|
6029
6053
|
SHARED_BASELINE_REFUSAL,
|
|
6030
6054
|
SHARED_WORKSPACE_REFUSAL,
|
|
6031
6055
|
SUBAGENT_WAIT_CHILD_LIMIT,
|
|
@@ -6308,6 +6332,7 @@ export {
|
|
|
6308
6332
|
isoWeekday,
|
|
6309
6333
|
latestSession,
|
|
6310
6334
|
latestSessionStep,
|
|
6335
|
+
listsWorkers,
|
|
6311
6336
|
liveDemandSchema,
|
|
6312
6337
|
liveEntrySchema,
|
|
6313
6338
|
liveRunBatchResponseSchema,
|
package/dist/contract/runs.d.ts
CHANGED
|
@@ -329,6 +329,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
329
329
|
requestId: z.ZodUUID;
|
|
330
330
|
workerId: z.ZodUUID;
|
|
331
331
|
requestHash: z.ZodString;
|
|
332
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
332
333
|
deletion: z.ZodOptional<z.ZodObject<{
|
|
333
334
|
phase: z.ZodEnum<{
|
|
334
335
|
complete: "complete";
|
|
@@ -616,6 +617,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
616
617
|
children: z.ZodOptional<z.ZodObject<any, z.core.$strict>>;
|
|
617
618
|
}, z.core.$strict>>;
|
|
618
619
|
parentRunId: z.ZodUUID;
|
|
620
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
619
621
|
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
620
622
|
ownerRunId: z.ZodUUID;
|
|
621
623
|
resourceId: z.ZodUUID;
|
|
@@ -2310,6 +2312,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
2310
2312
|
requestId: z.ZodUUID;
|
|
2311
2313
|
workerId: z.ZodUUID;
|
|
2312
2314
|
requestHash: z.ZodString;
|
|
2315
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
2313
2316
|
deletion: z.ZodOptional<z.ZodObject<{
|
|
2314
2317
|
phase: z.ZodEnum<{
|
|
2315
2318
|
complete: "complete";
|
|
@@ -2597,6 +2600,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
2597
2600
|
children: z.ZodOptional<z.ZodObject<any, z.core.$strict>>;
|
|
2598
2601
|
}, z.core.$strict>>;
|
|
2599
2602
|
parentRunId: z.ZodUUID;
|
|
2603
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
2600
2604
|
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2601
2605
|
ownerRunId: z.ZodUUID;
|
|
2602
2606
|
resourceId: z.ZodUUID;
|
|
@@ -4238,6 +4242,7 @@ export declare const runSummarySchema: z.ZodObject<{
|
|
|
4238
4242
|
}, z.core.$strip>, z.ZodObject<{
|
|
4239
4243
|
role: z.ZodLiteral<"worker">;
|
|
4240
4244
|
parentRunId: z.ZodUUID;
|
|
4245
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
4241
4246
|
wait: z.ZodOptional<z.ZodObject<{
|
|
4242
4247
|
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
4243
4248
|
phase: z.ZodEnum<{
|
|
@@ -4405,6 +4410,7 @@ export declare const runIndexEntrySchema: z.ZodObject<{
|
|
|
4405
4410
|
}, z.core.$strip>, z.ZodObject<{
|
|
4406
4411
|
role: z.ZodLiteral<"worker">;
|
|
4407
4412
|
parentRunId: z.ZodUUID;
|
|
4413
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
4408
4414
|
wait: z.ZodOptional<z.ZodObject<{
|
|
4409
4415
|
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
4410
4416
|
phase: z.ZodEnum<{
|
|
@@ -4651,6 +4657,7 @@ export declare const archivedRunsResponseSchema: z.ZodObject<{
|
|
|
4651
4657
|
}, z.core.$strip>, z.ZodObject<{
|
|
4652
4658
|
role: z.ZodLiteral<"worker">;
|
|
4653
4659
|
parentRunId: z.ZodUUID;
|
|
4660
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
4654
4661
|
wait: z.ZodOptional<z.ZodObject<{
|
|
4655
4662
|
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
4656
4663
|
phase: z.ZodEnum<{
|
|
@@ -4825,6 +4832,7 @@ export declare const runsSearchResponseSchema: z.ZodObject<{
|
|
|
4825
4832
|
}, z.core.$strip>, z.ZodObject<{
|
|
4826
4833
|
role: z.ZodLiteral<"worker">;
|
|
4827
4834
|
parentRunId: z.ZodUUID;
|
|
4835
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
4828
4836
|
wait: z.ZodOptional<z.ZodObject<{
|
|
4829
4837
|
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
4830
4838
|
phase: z.ZodEnum<{
|
|
@@ -5062,6 +5070,7 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
5062
5070
|
requestId: z.ZodUUID;
|
|
5063
5071
|
workerId: z.ZodUUID;
|
|
5064
5072
|
requestHash: z.ZodString;
|
|
5073
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
5065
5074
|
deletion: z.ZodOptional<z.ZodObject<{
|
|
5066
5075
|
phase: z.ZodEnum<{
|
|
5067
5076
|
complete: "complete";
|
|
@@ -5349,6 +5358,7 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
5349
5358
|
children: z.ZodOptional<z.ZodObject<any, z.core.$strict>>;
|
|
5350
5359
|
}, z.core.$strict>>;
|
|
5351
5360
|
parentRunId: z.ZodUUID;
|
|
5361
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
5352
5362
|
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5353
5363
|
ownerRunId: z.ZodUUID;
|
|
5354
5364
|
resourceId: z.ZodUUID;
|
package/dist/contract/waits.d.ts
CHANGED
|
@@ -1605,6 +1605,7 @@ export declare const askErrorCodeSchema: z.ZodEnum<{
|
|
|
1605
1605
|
run_stopping: "run_stopping";
|
|
1606
1606
|
session_closed: "session_closed";
|
|
1607
1607
|
session_replaced: "session_replaced";
|
|
1608
|
+
supervisor_is_worker: "supervisor_is_worker";
|
|
1608
1609
|
unauthorized: "unauthorized";
|
|
1609
1610
|
unavailable: "unavailable";
|
|
1610
1611
|
worker_execution_stopped: "worker_execution_stopped";
|
|
@@ -1649,6 +1650,7 @@ export declare const squawkAskAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1649
1650
|
run_stopping: "run_stopping";
|
|
1650
1651
|
session_closed: "session_closed";
|
|
1651
1652
|
session_replaced: "session_replaced";
|
|
1653
|
+
supervisor_is_worker: "supervisor_is_worker";
|
|
1652
1654
|
unauthorized: "unauthorized";
|
|
1653
1655
|
unavailable: "unavailable";
|
|
1654
1656
|
worker_execution_stopped: "worker_execution_stopped";
|
|
@@ -1947,7 +1949,8 @@ export declare function completionWaitEntry(waits: readonly Wait[] | undefined,
|
|
|
1947
1949
|
* like `workerWaitView` (hearsay-tools/cezarion#1301): its phases map as the legacy shape's do.
|
|
1948
1950
|
*/
|
|
1949
1951
|
export declare function workerCompletionWaitProjection(entry: WorkerWaitEntry, run: Partial<Pick<RunRecord, 'status' | 'waits'>>): WorkerCompletionWait;
|
|
1950
|
-
/** A run's deadline-less completion wait in its projection, for the relationships view
|
|
1952
|
+
/** A run's deadline-less completion wait in its projection, for the relationships view: for every
|
|
1953
|
+
* run that lists workers, a supervising worker included. */
|
|
1951
1954
|
export declare function completionWaitView(run: Partial<Pick<RunRecord, 'status' | 'waits' | 'delegation'>>): WorkerCompletionWait | undefined;
|
|
1952
1955
|
/**
|
|
1953
1956
|
* A worker wait as `cez worker wait` and `cez worker cancel-wait` answer it: the old
|
|
@@ -101,6 +101,7 @@ export declare const workspaceRunSummaryEventSchema: z.ZodObject<{
|
|
|
101
101
|
}, z.core.$strip>, z.ZodObject<{
|
|
102
102
|
role: z.ZodLiteral<"worker">;
|
|
103
103
|
parentRunId: z.ZodUUID;
|
|
104
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
104
105
|
wait: z.ZodOptional<z.ZodObject<{
|
|
105
106
|
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
106
107
|
phase: z.ZodEnum<{
|
|
@@ -296,6 +297,7 @@ export declare const runsIndexResponseSchema: z.ZodObject<{
|
|
|
296
297
|
}, z.core.$strip>, z.ZodObject<{
|
|
297
298
|
role: z.ZodLiteral<"worker">;
|
|
298
299
|
parentRunId: z.ZodUUID;
|
|
300
|
+
supervisorRunId: z.ZodOptional<z.ZodUUID>;
|
|
299
301
|
wait: z.ZodOptional<z.ZodObject<{
|
|
300
302
|
requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
301
303
|
phase: z.ZodEnum<{
|
|
@@ -12,10 +12,19 @@ export declare const WORKER_CREATION_LIMIT = 1024;
|
|
|
12
12
|
* deletion releases one; a missing record still consumes capacity.
|
|
13
13
|
*/
|
|
14
14
|
export declare function workerCapacity(family: RunRecord, getRun: Lookup): WorkerCapacity;
|
|
15
|
-
/** The
|
|
16
|
-
*
|
|
15
|
+
/** The outstanding workers that count against `supervisor`'s own limit: the ones it started,
|
|
16
|
+
* by the receipts of its family record. A receipt whose record is gone still counts. */
|
|
17
17
|
export declare function supervisedOutstanding(family: RunRecord, supervisor: RunRecord, getRun: Lookup): number;
|
|
18
|
-
/** What a refused creation says when the family
|
|
18
|
+
/** What a refused creation says when the family has no free slot. */
|
|
19
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";
|
|
20
20
|
/** The refusal for a NEW creation, naming its recovery; undefined when a creation fits. */
|
|
21
21
|
export declare function capacityError(capacity: WorkerCapacity): string | undefined;
|
|
22
|
+
/** What a refused creation says when the caller holds no spawn grant. */
|
|
23
|
+
export declare const NO_SPAWN_GRANT = "This task cannot spawn Squawk workers.";
|
|
24
|
+
/** What a refused creation says when the caller's own limit is full. */
|
|
25
|
+
export declare function ownLimitRefusal(outstanding: number, limit: number): string;
|
|
26
|
+
/**
|
|
27
|
+
* Why `supervisor` may not start one more worker in `family`, or undefined. A creation needs room
|
|
28
|
+
* in both: the family record (32 outstanding, 1,024 creations) and the supervisor's own limit.
|
|
29
|
+
*/
|
|
30
|
+
export declare function spawnCapacityRefusal(family: RunRecord, supervisor: RunRecord, getRun: Lookup): string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { receiptsOf,
|
|
1
|
+
import { grantsOf, hasSpawnRoom, receiptsOf, supervisedReceipts } from '../runs/task-rights.js';
|
|
2
2
|
/**
|
|
3
3
|
* Fixed resource capacity and lifetime creation ceiling. Verified destroy reclaims capacity;
|
|
4
4
|
* neither limit is a spending budget.
|
|
@@ -20,15 +20,12 @@ function holdsSlot(receipt, worker) {
|
|
|
20
20
|
const owned = worker?.delegation;
|
|
21
21
|
return !(owned?.role === 'worker' && owned.destroy?.phase === 'complete' && owned.destroy.remaining.length === 0);
|
|
22
22
|
}
|
|
23
|
-
/** The
|
|
24
|
-
*
|
|
23
|
+
/** The outstanding workers that count against `supervisor`'s own limit: the ones it started,
|
|
24
|
+
* by the receipts of its family record. A receipt whose record is gone still counts. */
|
|
25
25
|
export function supervisedOutstanding(family, supervisor, getRun) {
|
|
26
|
-
return
|
|
27
|
-
const worker = getRun(receipt.workerId);
|
|
28
|
-
return holdsSlot(receipt, worker) && (!worker || supervisorIdOf(worker) === supervisor.id);
|
|
29
|
-
}).length;
|
|
26
|
+
return supervisedReceipts(family, supervisor.id).filter(receipt => holdsSlot(receipt, getRun(receipt.workerId))).length;
|
|
30
27
|
}
|
|
31
|
-
/** What a refused creation says when the family
|
|
28
|
+
/** What a refused creation says when the family has no free slot. */
|
|
32
29
|
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';
|
|
33
30
|
/** The refusal for a NEW creation, naming its recovery; undefined when a creation fits. */
|
|
34
31
|
export function capacityError(capacity) {
|
|
@@ -36,4 +33,22 @@ export function capacityError(capacity) {
|
|
|
36
33
|
return 'Parent reached 1,024 worker creations; start a new task to delegate further';
|
|
37
34
|
return capacity.outstanding >= capacity.limit ? OUTSTANDING_REFUSAL : undefined;
|
|
38
35
|
}
|
|
36
|
+
/** What a refused creation says when the caller holds no spawn grant. */
|
|
37
|
+
export const NO_SPAWN_GRANT = `This task cannot spawn Squawk workers.`;
|
|
38
|
+
/** What a refused creation says when the caller's own limit is full. */
|
|
39
|
+
export function ownLimitRefusal(outstanding, limit) {
|
|
40
|
+
return `You have ${outstanding} outstanding ${outstanding === 1 ? 'worker' : 'workers'} of the ${limit} you may have at a time (accepted, live, or not verifiably destroyed). Collect its result, then destroy a finished worker (worker destroy <worker-id>) before you start another`;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Why `supervisor` may not start one more worker in `family`, or undefined. A creation needs room
|
|
44
|
+
* in both: the family record (32 outstanding, 1,024 creations) and the supervisor's own limit.
|
|
45
|
+
*/
|
|
46
|
+
export function spawnCapacityRefusal(family, supervisor, getRun) {
|
|
47
|
+
const grant = grantsOf(supervisor).spawn;
|
|
48
|
+
if (!grant)
|
|
49
|
+
return NO_SPAWN_GRANT;
|
|
50
|
+
const outstanding = supervisedOutstanding(family, supervisor, getRun);
|
|
51
|
+
return capacityError(workerCapacity(family, getRun)) ??
|
|
52
|
+
(hasSpawnRoom(supervisor, outstanding) ? undefined : ownLimitRefusal(outstanding, grant.live));
|
|
53
|
+
}
|
|
39
54
|
//# sourceMappingURL=capacity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capacity.js","sourceRoot":"","sources":["../../src/delegation/capacity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"capacity.js","sourceRoot":"","sources":["../../src/delegation/capacity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAe,MAAM,wBAAwB,CAAC;AAE7G;;;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,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IACpG,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,qBAAqB,EAAE,CAAC;AACjH,CAAC;AAGD,SAAS,SAAS,CAAC,OAAgB,EAAE,MAA6B;IAChE,IAAI,OAAO,CAAC,QAAQ;QAAE,OAAO,KAAK,CAAC;IACnC,MAAM,KAAK,GAAG,MAAM,EAAE,UAAU,CAAC;IACjC,OAAO,CAAC,CAAC,KAAK,EAAE,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,EAAE,KAAK,KAAK,UAAU,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;AACpH,CAAC;AAED;yFACyF;AACzF,MAAM,UAAU,qBAAqB,CAAC,MAA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AAC,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACnG,CAAC"}
|
package/dist/delegation/cli.js
CHANGED
|
@@ -64,7 +64,7 @@ const WORKER_USAGE = { operations: [
|
|
|
64
64
|
] };
|
|
65
65
|
const WORKER_HELP = {
|
|
66
66
|
resume: { args: '<worker-id> "<instruction>" --id <UUID>', description: 'Resume a settled owned worker with a request; --timeout-seconds accepts 1-86400.' },
|
|
67
|
-
spawn: { args: '"<task>" --request-id <UUID>
|
|
67
|
+
spawn: { args: '"<task>" --request-id <UUID> [--baseline <ref> | --workspace shared]', description: 'Create an owned worker: in its own worktree from a committed baseline, or in your worktree with --workspace shared. A worker may start one shared worker at a time, and no flag is needed: wait for it (worker wait), read its result (worker collect) and destroy it (worker destroy) before you start the next.' },
|
|
68
68
|
list: { args: '', description: 'List your owned workers, execution revisions and remaining cleanup resources.' },
|
|
69
69
|
inspect: { args: '<worker-id>', description: 'Show worker state and input locations.' },
|
|
70
70
|
steer: { args: '<worker-id> "<text>"', description: 'Send instructions to a running worker.' },
|
|
@@ -76,8 +76,8 @@ const WORKER_HELP = {
|
|
|
76
76
|
'cancel-wait': { args: '<wait-id>', description: 'Stops one wait by its id; never cancels requests or workers, and your other waits stay open.' },
|
|
77
77
|
};
|
|
78
78
|
const WORKER_FLAG_HELP = {
|
|
79
|
-
'--baseline': '<ref> Committed ref or parent-head; excludes dirty edits. Required
|
|
80
|
-
'--workspace': '<isolated|shared> isolated
|
|
79
|
+
'--baseline': '<ref> Committed ref or parent-head; excludes dirty edits. Required for an isolated workspace. A shared workspace takes only parent-head, or none.',
|
|
80
|
+
'--workspace': '<isolated|shared> Default: the first kind you may start (a task: isolated; a worker: shared, its only kind). isolated: own worktree and branch. shared: the worker runs in your worktree at your HEAD, with no worktree, branch or diff of its own; collect reports whether the worktree changed. Not with --attach; of --baseline only parent-head.',
|
|
81
81
|
'--request-id': '<UUID> Spawn retry ID, or request being followed up/replied to.',
|
|
82
82
|
'--runner': `<name> ${RUNNER_IDS.join(' | ')}.`,
|
|
83
83
|
'--backend': '<name> Alias of --runner.',
|
|
@@ -512,8 +512,6 @@ async function spawnPayload(values, positionals, argv) {
|
|
|
512
512
|
throw new WorkerCliError(`spawn refused: ${refusal}`);
|
|
513
513
|
const attached = await attachPaths(typed);
|
|
514
514
|
const context = { text, artifacts: attached.length ? attached.map(path => ({ kind: 'parent-file', path })) : undefined };
|
|
515
|
-
if (values.workspace !== 'shared' && values.baseline === undefined)
|
|
516
|
-
throw new WorkerCliError('spawn is missing --baseline');
|
|
517
515
|
const parsed = workerSpawnRequestSchema.safeParse({ task: positionals[0], baseline: values.baseline, workspace: values.workspace, requestId: values['request-id'], backend: runner,
|
|
518
516
|
model: values.model, effort: values.effort, workflow: values.workflow, skill: values.skill,
|
|
519
517
|
context: text === undefined && !attached.length ? undefined : context });
|