@hearsay-tools/squawk 0.18.0-pr3919.7387 → 0.18.0-pr3920.7401
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/activity/wait.js.map +1 -1
- package/dist/ci-wait/errors.d.ts +1 -1
- package/dist/ci-wait/errors.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +4 -4
- package/dist/contract/agent-input.d.ts +56 -0
- package/dist/contract/delegation.d.ts +202 -86
- package/dist/contract/index.js +2614 -2539
- package/dist/contract/runs.d.ts +27 -6
- package/dist/contract/wait-limits.d.ts +22 -0
- package/dist/contract/waiting-on.d.ts +46 -0
- package/dist/contract/waits.d.ts +4 -74
- package/dist/contract/worker-outcome.d.ts +24 -0
- package/dist/delegation/cli.js +14 -7
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/context.d.ts +40 -5
- package/dist/delegation/context.js +93 -75
- package/dist/delegation/context.js.map +1 -1
- package/dist/delegation/conversations.d.ts +158 -144
- package/dist/delegation/family-end.js.map +1 -1
- package/dist/delegation/input.js.map +1 -1
- package/dist/delegation/owned-workspace-release.d.ts +2 -2
- package/dist/delegation/owned-workspace-release.js.map +1 -1
- package/dist/delegation/provision.js +3 -1
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/results.js +17 -4
- package/dist/delegation/results.js.map +1 -1
- package/dist/delegation/routes.d.ts +53 -17
- package/dist/delegation/service.js +9 -5
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/shared-workspace.d.ts +25 -0
- package/dist/delegation/shared-workspace.js +100 -0
- package/dist/delegation/shared-workspace.js.map +1 -0
- package/dist/delegation/transport.d.ts +42 -6
- package/dist/delegation/worker-cleanup.js +2 -2
- package/dist/delegation/worker-cleanup.js.map +1 -1
- package/dist/delegation/workspace-git.d.ts +3 -3
- package/dist/delegation/workspace-git.js.map +1 -1
- package/dist/delegation/workspace-kinds.d.ts +28 -5
- package/dist/delegation/workspace-kinds.js +58 -6
- package/dist/delegation/workspace-kinds.js.map +1 -1
- package/dist/delegation/workspace-record.d.ts +4 -4
- package/dist/delegation/workspace-record.js +4 -4
- package/dist/delegation/workspace-record.js.map +1 -1
- package/dist/delegation/workspace-removal.d.ts +3 -3
- package/dist/delegation/workspace-removal.js.map +1 -1
- package/dist/delegation/workspace-state.d.ts +65 -0
- package/dist/delegation/workspace-state.js +270 -0
- package/dist/delegation/workspace-state.js.map +1 -0
- package/dist/delegation/workspace.d.ts +5 -5
- package/dist/delegation/workspace.js +4 -4
- package/dist/delegation/workspace.js.map +1 -1
- package/dist/delegation/worktree-teardown.d.ts +2 -2
- package/dist/delegation/worktree-teardown.js.map +1 -1
- package/dist/git-worktree.js +2 -2
- package/dist/git-worktree.js.map +1 -1
- package/dist/runs/delegation-state.d.ts +11 -3
- package/dist/runs/delegation-state.js.map +1 -1
- package/dist/runs/legacy-waits.js.map +1 -1
- package/dist/runs/live-tasks.js.map +1 -1
- package/dist/runs/outcome-commit.js.map +1 -1
- package/dist/runs/owned-run-create.js +12 -4
- package/dist/runs/owned-run-create.js.map +1 -1
- package/dist/runs/record-write-rules.js +2 -1
- package/dist/runs/record-write-rules.js.map +1 -1
- package/dist/runs/retention.d.ts +5 -3
- package/dist/runs/retention.js +10 -5
- package/dist/runs/retention.js.map +1 -1
- package/dist/runs/run-exits.d.ts +42 -0
- package/dist/runs/run-row.js +2 -1
- package/dist/runs/run-row.js.map +1 -1
- package/dist/runs/shared-hosts.d.ts +13 -0
- package/dist/runs/shared-hosts.js +24 -0
- package/dist/runs/shared-hosts.js.map +1 -0
- package/dist/runs/store.d.ts +16 -2
- package/dist/runs/store.js +4 -2
- package/dist/runs/store.js.map +1 -1
- package/dist/runs/wait-capacity.js.map +1 -1
- package/dist/runs/wait-registration-write.js.map +1 -1
- package/dist/runs/webhook.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/run-checkout.d.ts +1 -1
- package/dist/server/run-checkout.js +40 -12
- package/dist/server/run-checkout.js.map +1 -1
- package/dist/server/server.d.ts +180 -40
- package/dist/server/server.js +2 -2
- package/dist/server/server.js.map +1 -1
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/task-cli/cli.js.map +1 -1
- package/dist/workflows/completion-policy.js.map +1 -1
- package/dist/workflows/continuation-admission.d.ts +79 -72
- package/dist/workflows/continuation-admission.js.map +1 -1
- package/dist/workflows/run/auto-resume.js.map +1 -1
- package/dist/workflows/run/compose.js +3 -3
- package/dist/workflows/run/compose.js.map +1 -1
- package/dist/workflows/run/continuation-acceptance.js +2 -2
- package/dist/workflows/run/continuation-acceptance.js.map +1 -1
- package/dist/workflows/run/continuation-session.js +1 -1
- package/dist/workflows/run/continuation-session.js.map +1 -1
- package/dist/workflows/run/live-session-state.d.ts +5 -0
- package/dist/workflows/run/live-session-state.js +6 -0
- package/dist/workflows/run/live-session-state.js.map +1 -1
- package/dist/workflows/run/maintenance-claims.d.ts +12 -0
- package/dist/workflows/run/maintenance-claims.js +42 -2
- package/dist/workflows/run/maintenance-claims.js.map +1 -1
- package/dist/workflows/run/run-cancel.js +2 -1
- package/dist/workflows/run/run-cancel.js.map +1 -1
- package/dist/workflows/run/run-line.js.map +1 -1
- package/dist/workflows/run/run-recovery.js.map +1 -1
- package/dist/workflows/run/run-workspace.d.ts +6 -0
- package/dist/workflows/run/run-workspace.js +9 -0
- package/dist/workflows/run/run-workspace.js.map +1 -1
- package/dist/workflows/run/step-loop.d.ts +4 -0
- package/dist/workflows/run/step-loop.js +25 -14
- package/dist/workflows/run/step-loop.js.map +1 -1
- package/dist/workflows/run/subagent-waits.d.ts +1 -1
- package/dist/workflows/run/subagent-waits.js.map +1 -1
- package/dist/workflows/run/turn-settler.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +7 -0
- package/dist/workflows/run/wait-kinds.js +2 -1
- package/dist/workflows/run/wait-kinds.js.map +1 -1
- package/dist/workflows/run/wake-admission.d.ts +1 -1
- package/dist/workflows/run/wake-admission.js +2 -1
- package/dist/workflows/run/wake-admission.js.map +1 -1
- package/dist/workflows/run/worker-executions.d.ts +4 -0
- package/dist/workflows/run/worker-executions.js +17 -0
- package/dist/workflows/run/worker-executions.js.map +1 -1
- package/dist/workflows/run/worker-workspace-port.d.ts +9 -0
- package/dist/workflows/run/worker-workspace-port.js.map +1 -1
- package/dist/workflows/run/worktree-autosave.js +2 -2
- package/dist/workflows/run/worktree-autosave.js.map +1 -1
- package/dist/workflows/run-scheduling.js.map +1 -1
- package/dist/workflows/run-states.js.map +1 -1
- package/dist/workflows/run.d.ts +2 -1
- package/dist/workflows/run.js +4 -2
- package/dist/workflows/run.js.map +1 -1
- package/dist/workflows/wait-scope.js.map +1 -1
- package/dist/workflows/waits.d.ts +2 -1
- package/dist/workflows/waits.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/activity-motion-CnNNU76E.js +2 -0
- package/web/dist/assets/{activity-route-DORgO1AV.js → activity-route-1TwhBPc7.js} +1 -1
- package/web/dist/assets/agent-accounts-CS3tmtEb.js +1 -0
- package/web/dist/assets/attention-BaPuVqOo.js +1 -0
- package/web/dist/assets/cez-idle-C7yy2Oqo.js +1 -0
- package/web/dist/assets/{commit-diff-panel-BPo0nWFN.js → commit-diff-panel-DxHL4ckU.js} +1 -1
- package/web/dist/assets/{diff-Aj2SZJZM.js → diff-CTS51l3J.js} +2 -2
- package/web/dist/assets/{diff-view-BGUh3v9V.js → diff-view-aoRqC9WW.js} +1 -1
- package/web/dist/assets/{file-preview-66mSwryC.js → file-preview-CBS7Gd7i.js} +1 -1
- package/web/dist/assets/{git-toolbar-LISA40Bx.js → git-toolbar-gJgN1f48.js} +1 -1
- package/web/dist/assets/{github-DBY1WE_f.js → github-B78pFLP0.js} +1 -1
- package/web/dist/assets/{global-activity-route-CTHrQSts.js → global-activity-route-CF1i7AlK.js} +1 -1
- package/web/dist/assets/index-qXp4Pyl-.js +14 -0
- package/web/dist/assets/live-protocol-CjfZMf1X.js +64 -0
- package/web/dist/assets/{markdown-ASJCHR3o.js → markdown-CtUX5hPU.js} +1 -1
- package/web/dist/assets/picker-pill-Bcp5Ugj9.js +15 -0
- package/web/dist/assets/{preview-pane-connected-Bl_hZeYa.js → preview-pane-connected-D67DnQ-v.js} +2 -2
- package/web/dist/assets/{project-router-Bf4J43Ga.js → project-router-ODGzWO88.js} +1 -1
- package/web/dist/assets/project-scope-context-BRAz5bi1.js +4 -0
- package/web/dist/assets/{prompt-template-menu-BAySvlvh.js → prompt-template-menu-BKNJFAKP.js} +1 -1
- package/web/dist/assets/queries-D1wXJuEm.js +1 -0
- package/web/dist/assets/{reference-chip-CJzpvEa5.js → reference-chip-7W0oax8B.js} +1 -1
- package/web/dist/assets/repo-git-C7v4t904.js +1 -0
- package/web/dist/assets/{report-reader-B065yJZH.js → report-reader-D35d7ytJ.js} +1 -1
- package/web/dist/assets/reports-CfPEDtlZ.js +1 -0
- package/web/dist/assets/run-header-CtmGDGe3.js +2 -0
- package/web/dist/assets/{skills-DGFBZt0-.js → skills-zAJrBetw.js} +1 -1
- package/web/dist/assets/{tab-link-Cl3hgWd9.js → tab-link-5_aFGapW.js} +1 -1
- package/web/dist/assets/{task-changes-h49jwGms.js → task-changes-CE7Wb_Vo.js} +1 -1
- package/web/dist/assets/{task-commits-BLI7EWpv.js → task-commits-S1MGCpGG.js} +1 -1
- package/web/dist/assets/{task-files-GHiSUx9E.js → task-files-Cg1KF7MD.js} +1 -1
- package/web/dist/assets/{task-github-item-DQOOAzbC.js → task-github-item-BmE7hPsf.js} +1 -1
- package/web/dist/assets/{task-thread-DhInyYtH.js → task-thread-Ow8gLYET.js} +6 -6
- package/web/dist/assets/thread-state-BUosPCm9.js +4 -0
- package/web/dist/assets/use-desktop-D8SDtGkl.js +1 -0
- package/web/dist/assets/{use-hand-to-agent-state-Cxdu52IB.js → use-hand-to-agent-state-DVPb_dLA.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-C_MhqwND.js → useInfiniteQuery-s5fZ98n5.js} +1 -1
- package/web/dist/assets/useQuery-o7r9jcw8.js +1 -0
- package/web/dist/assets/{workflows-DC-YoIrq.js → workflows-C7lZcqrG.js} +2 -2
- package/web/dist/assets/{ws-D5qu0xrN.js → ws-B16ThUZy.js} +1 -1
- package/web/dist/index.html +15 -15
- package/web/dist/live-worker.js +1 -1
- package/web/dist/assets/activity-motion-DW9Uw5oA.js +0 -2
- package/web/dist/assets/agent-accounts--CSZxnob.js +0 -1
- package/web/dist/assets/attention-C8xGqYfS.js +0 -1
- package/web/dist/assets/cez-idle-C2a1bGFM.js +0 -1
- package/web/dist/assets/index-Cp-ezSqE.js +0 -14
- package/web/dist/assets/live-protocol-DATMWlI4.js +0 -64
- package/web/dist/assets/picker-pill-Cz_cV7Fp.js +0 -15
- package/web/dist/assets/project-scope-context-CWMEewWV.js +0 -4
- package/web/dist/assets/queries-BGUyUd4-.js +0 -1
- package/web/dist/assets/repo-git-h7WWx0jd.js +0 -1
- package/web/dist/assets/reports-CrB_OEux.js +0 -1
- package/web/dist/assets/run-header-CIWwn8Tt.js +0 -2
- package/web/dist/assets/thread-state-1xRwoDNq.js +0 -4
- package/web/dist/assets/use-desktop-CKg6hpQ_.js +0 -1
- package/web/dist/assets/useQuery-C53R8k3s.js +0 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export { agentInputSchema, inboxClaimSchema, type AgentInput, type InboxClaim } from './agent-input.ts';
|
|
3
|
+
export { workerOutcomeSchema, workerWaitModeSchema, type WorkerOutcome } from './worker-outcome.ts';
|
|
2
4
|
/** Owned workers (spec 2026-09-06). No import from runs: runs embeds this metadata. */
|
|
3
5
|
export declare const workerOperationSchema: z.ZodEnum<{
|
|
4
6
|
destroy: "destroy";
|
|
@@ -12,7 +14,8 @@ export declare const workerOperationSchema: z.ZodEnum<{
|
|
|
12
14
|
export type WorkerOperation = z.infer<typeof workerOperationSchema>;
|
|
13
15
|
/** 1–32 unique ids; the worker wait entry and `cezar_wait` reuse it for worker and request ids. */
|
|
14
16
|
export declare const workerIdsSchema: z.ZodArray<z.ZodUUID>;
|
|
15
|
-
|
|
17
|
+
/** A worker's own worktree and branch, forked from the baseline commit. */
|
|
18
|
+
export declare const ownedWorkspaceSchema: z.ZodObject<{
|
|
16
19
|
ownerRunId: z.ZodUUID;
|
|
17
20
|
resourceId: z.ZodUUID;
|
|
18
21
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
@@ -20,25 +23,38 @@ export declare const workerWorkspaceSchema: z.ZodObject<{
|
|
|
20
23
|
branch: z.ZodString;
|
|
21
24
|
baselineSha: z.ZodString;
|
|
22
25
|
}, z.core.$strict>;
|
|
23
|
-
export type
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
observedAt: z.ZodISODateTime;
|
|
33
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
34
|
-
revision: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
export type OwnedWorkerWorkspace = z.infer<typeof ownedWorkspaceSchema>;
|
|
27
|
+
/** Another run's directory, which the worker works in. It has no worktree and no branch of its own. */
|
|
28
|
+
export declare const sharedWorkspaceSchema: z.ZodObject<{
|
|
29
|
+
ownerRunId: z.ZodUUID;
|
|
30
|
+
resourceId: z.ZodUUID;
|
|
31
|
+
kind: z.ZodLiteral<"shared">;
|
|
32
|
+
path: z.ZodString;
|
|
33
|
+
hostRunId: z.ZodUUID;
|
|
34
|
+
baselineSha: z.ZodString;
|
|
35
35
|
}, z.core.$strict>;
|
|
36
|
-
export type
|
|
37
|
-
export declare const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
export type SharedWorkerWorkspace = z.infer<typeof sharedWorkspaceSchema>;
|
|
37
|
+
export declare const workerWorkspaceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38
|
+
ownerRunId: z.ZodUUID;
|
|
39
|
+
resourceId: z.ZodUUID;
|
|
40
|
+
kind: z.ZodLiteral<"owned-isolated">;
|
|
41
|
+
path: z.ZodString;
|
|
42
|
+
branch: z.ZodString;
|
|
43
|
+
baselineSha: z.ZodString;
|
|
44
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
45
|
+
ownerRunId: z.ZodUUID;
|
|
46
|
+
resourceId: z.ZodUUID;
|
|
47
|
+
kind: z.ZodLiteral<"shared">;
|
|
48
|
+
path: z.ZodString;
|
|
49
|
+
hostRunId: z.ZodUUID;
|
|
50
|
+
baselineSha: z.ZodString;
|
|
51
|
+
}, z.core.$strict>], "kind">;
|
|
52
|
+
export type WorkerWorkspace = z.infer<typeof workerWorkspaceSchema>;
|
|
53
|
+
export declare function ownsDirectory(workspace: WorkerWorkspace): workspace is OwnedWorkerWorkspace;
|
|
54
|
+
/** The workspace of a worker that owns its directory. Throws for one that does not. */
|
|
55
|
+
export declare function ownedWorkspace(workspace: WorkerWorkspace): OwnedWorkerWorkspace;
|
|
56
|
+
/** The text every refused directory action of such a worker starts with. */
|
|
57
|
+
export declare const SHARED_WORKSPACE_REFUSAL = "this worker runs in its parent's worktree";
|
|
42
58
|
export declare const workerWaitSchema: z.ZodObject<{
|
|
43
59
|
id: z.ZodUUID;
|
|
44
60
|
workerIds: z.ZodArray<z.ZodUUID>;
|
|
@@ -276,6 +292,28 @@ export declare const workerInputRecipeSchema: z.ZodObject<{
|
|
|
276
292
|
}, z.core.$strict>>;
|
|
277
293
|
}, z.core.$strict>;
|
|
278
294
|
export type WorkerInputRecipe = z.infer<typeof workerInputRecipeSchema>;
|
|
295
|
+
/** How many changed paths a change report names. */
|
|
296
|
+
export declare const WORKER_CHANGED_PATHS_CAP = 100;
|
|
297
|
+
/**
|
|
298
|
+
* Whether the host directory of a shared worker changed between the worker's first session start
|
|
299
|
+
* and its last settlement; a worker that still runs is compared with the directory as it is.
|
|
300
|
+
* The report covers HEAD, the checked-out branch, the index, tracked changes and untracked files;
|
|
301
|
+
* ignored files are out. It does not say who made a change.
|
|
302
|
+
*/
|
|
303
|
+
export declare const workerChangeReportSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
304
|
+
state: z.ZodLiteral<"unchanged">;
|
|
305
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
306
|
+
state: z.ZodLiteral<"changed">;
|
|
307
|
+
paths: z.ZodArray<z.ZodString>;
|
|
308
|
+
truncated: z.ZodBoolean;
|
|
309
|
+
headMoved: z.ZodBoolean;
|
|
310
|
+
branchMoved: z.ZodBoolean;
|
|
311
|
+
indexMoved: z.ZodBoolean;
|
|
312
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
313
|
+
state: z.ZodLiteral<"unavailable">;
|
|
314
|
+
reason: z.ZodString;
|
|
315
|
+
}, z.core.$strict>], "state">;
|
|
316
|
+
export type WorkerChangeReport = z.infer<typeof workerChangeReportSchema>;
|
|
279
317
|
export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
280
318
|
workerId: z.ZodUUID;
|
|
281
319
|
parentRunId: z.ZodUUID;
|
|
@@ -317,7 +355,7 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
317
355
|
}>>;
|
|
318
356
|
model: z.ZodOptional<z.ZodString>;
|
|
319
357
|
baselineSha: z.ZodString;
|
|
320
|
-
workspace: z.ZodObject<{
|
|
358
|
+
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
321
359
|
ownerRunId: z.ZodUUID;
|
|
322
360
|
resourceId: z.ZodUUID;
|
|
323
361
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
@@ -329,7 +367,19 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
329
367
|
deleted: "deleted";
|
|
330
368
|
unavailable: "unavailable";
|
|
331
369
|
}>>;
|
|
332
|
-
}, z.core.$strict
|
|
370
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
371
|
+
ownerRunId: z.ZodUUID;
|
|
372
|
+
resourceId: z.ZodUUID;
|
|
373
|
+
kind: z.ZodLiteral<"shared">;
|
|
374
|
+
path: z.ZodString;
|
|
375
|
+
hostRunId: z.ZodUUID;
|
|
376
|
+
baselineSha: z.ZodString;
|
|
377
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
378
|
+
available: "available";
|
|
379
|
+
deleted: "deleted";
|
|
380
|
+
unavailable: "unavailable";
|
|
381
|
+
}>>;
|
|
382
|
+
}, z.core.$strict>], "kind">;
|
|
333
383
|
cleanup: z.ZodEnum<{
|
|
334
384
|
cleaning: "cleaning";
|
|
335
385
|
complete: "complete";
|
|
@@ -353,6 +403,7 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
353
403
|
missing: "missing";
|
|
354
404
|
"no-assistant-output": "no-assistant-output";
|
|
355
405
|
unreadable: "unreadable";
|
|
406
|
+
unsupported: "unsupported";
|
|
356
407
|
unverified: "unverified";
|
|
357
408
|
}>;
|
|
358
409
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -369,6 +420,7 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
369
420
|
missing: "missing";
|
|
370
421
|
"no-assistant-output": "no-assistant-output";
|
|
371
422
|
unreadable: "unreadable";
|
|
423
|
+
unsupported: "unsupported";
|
|
372
424
|
unverified: "unverified";
|
|
373
425
|
}>;
|
|
374
426
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -389,6 +441,7 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
389
441
|
missing: "missing";
|
|
390
442
|
"no-assistant-output": "no-assistant-output";
|
|
391
443
|
unreadable: "unreadable";
|
|
444
|
+
unsupported: "unsupported";
|
|
392
445
|
unverified: "unverified";
|
|
393
446
|
}>;
|
|
394
447
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -396,6 +449,19 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
396
449
|
state: z.ZodLiteral<"deleted">;
|
|
397
450
|
reason: z.ZodLiteral<"missing">;
|
|
398
451
|
}, z.core.$strict>], "state">;
|
|
452
|
+
changes: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
453
|
+
state: z.ZodLiteral<"unchanged">;
|
|
454
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
455
|
+
state: z.ZodLiteral<"changed">;
|
|
456
|
+
paths: z.ZodArray<z.ZodString>;
|
|
457
|
+
truncated: z.ZodBoolean;
|
|
458
|
+
headMoved: z.ZodBoolean;
|
|
459
|
+
branchMoved: z.ZodBoolean;
|
|
460
|
+
indexMoved: z.ZodBoolean;
|
|
461
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
462
|
+
state: z.ZodLiteral<"unavailable">;
|
|
463
|
+
reason: z.ZodString;
|
|
464
|
+
}, z.core.$strict>], "state">>;
|
|
399
465
|
artifacts: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
400
466
|
state: z.ZodLiteral<"available">;
|
|
401
467
|
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -408,6 +474,7 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
408
474
|
missing: "missing";
|
|
409
475
|
"no-assistant-output": "no-assistant-output";
|
|
410
476
|
unreadable: "unreadable";
|
|
477
|
+
unsupported: "unsupported";
|
|
411
478
|
unverified: "unverified";
|
|
412
479
|
}>;
|
|
413
480
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -426,6 +493,7 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
426
493
|
missing: "missing";
|
|
427
494
|
"no-assistant-output": "no-assistant-output";
|
|
428
495
|
unreadable: "unreadable";
|
|
496
|
+
unsupported: "unsupported";
|
|
429
497
|
unverified: "unverified";
|
|
430
498
|
}>;
|
|
431
499
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -477,7 +545,7 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
477
545
|
}>>;
|
|
478
546
|
model: z.ZodOptional<z.ZodString>;
|
|
479
547
|
baselineSha: z.ZodString;
|
|
480
|
-
workspace: z.ZodObject<{
|
|
548
|
+
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
481
549
|
ownerRunId: z.ZodUUID;
|
|
482
550
|
resourceId: z.ZodUUID;
|
|
483
551
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
@@ -489,7 +557,19 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
489
557
|
deleted: "deleted";
|
|
490
558
|
unavailable: "unavailable";
|
|
491
559
|
}>>;
|
|
492
|
-
}, z.core.$strict
|
|
560
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
561
|
+
ownerRunId: z.ZodUUID;
|
|
562
|
+
resourceId: z.ZodUUID;
|
|
563
|
+
kind: z.ZodLiteral<"shared">;
|
|
564
|
+
path: z.ZodString;
|
|
565
|
+
hostRunId: z.ZodUUID;
|
|
566
|
+
baselineSha: z.ZodString;
|
|
567
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
568
|
+
available: "available";
|
|
569
|
+
deleted: "deleted";
|
|
570
|
+
unavailable: "unavailable";
|
|
571
|
+
}>>;
|
|
572
|
+
}, z.core.$strict>], "kind">;
|
|
493
573
|
cleanup: z.ZodEnum<{
|
|
494
574
|
cleaning: "cleaning";
|
|
495
575
|
complete: "complete";
|
|
@@ -513,6 +593,7 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
513
593
|
missing: "missing";
|
|
514
594
|
"no-assistant-output": "no-assistant-output";
|
|
515
595
|
unreadable: "unreadable";
|
|
596
|
+
unsupported: "unsupported";
|
|
516
597
|
unverified: "unverified";
|
|
517
598
|
}>;
|
|
518
599
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -529,6 +610,7 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
529
610
|
missing: "missing";
|
|
530
611
|
"no-assistant-output": "no-assistant-output";
|
|
531
612
|
unreadable: "unreadable";
|
|
613
|
+
unsupported: "unsupported";
|
|
532
614
|
unverified: "unverified";
|
|
533
615
|
}>;
|
|
534
616
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -549,6 +631,7 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
549
631
|
missing: "missing";
|
|
550
632
|
"no-assistant-output": "no-assistant-output";
|
|
551
633
|
unreadable: "unreadable";
|
|
634
|
+
unsupported: "unsupported";
|
|
552
635
|
unverified: "unverified";
|
|
553
636
|
}>;
|
|
554
637
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -556,6 +639,19 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
556
639
|
state: z.ZodLiteral<"deleted">;
|
|
557
640
|
reason: z.ZodLiteral<"missing">;
|
|
558
641
|
}, z.core.$strict>], "state">;
|
|
642
|
+
changes: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
643
|
+
state: z.ZodLiteral<"unchanged">;
|
|
644
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
645
|
+
state: z.ZodLiteral<"changed">;
|
|
646
|
+
paths: z.ZodArray<z.ZodString>;
|
|
647
|
+
truncated: z.ZodBoolean;
|
|
648
|
+
headMoved: z.ZodBoolean;
|
|
649
|
+
branchMoved: z.ZodBoolean;
|
|
650
|
+
indexMoved: z.ZodBoolean;
|
|
651
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
652
|
+
state: z.ZodLiteral<"unavailable">;
|
|
653
|
+
reason: z.ZodString;
|
|
654
|
+
}, z.core.$strict>], "state">>;
|
|
559
655
|
artifacts: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
560
656
|
state: z.ZodLiteral<"available">;
|
|
561
657
|
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -568,6 +664,7 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
568
664
|
missing: "missing";
|
|
569
665
|
"no-assistant-output": "no-assistant-output";
|
|
570
666
|
unreadable: "unreadable";
|
|
667
|
+
unsupported: "unsupported";
|
|
571
668
|
unverified: "unverified";
|
|
572
669
|
}>;
|
|
573
670
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -586,6 +683,7 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
586
683
|
missing: "missing";
|
|
587
684
|
"no-assistant-output": "no-assistant-output";
|
|
588
685
|
unreadable: "unreadable";
|
|
686
|
+
unsupported: "unsupported";
|
|
589
687
|
unverified: "unverified";
|
|
590
688
|
}>;
|
|
591
689
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -974,14 +1072,21 @@ export declare const delegationStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
974
1072
|
wait: "wait";
|
|
975
1073
|
}>>;
|
|
976
1074
|
parentRunId: z.ZodUUID;
|
|
977
|
-
workspace: z.ZodObject<{
|
|
1075
|
+
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
978
1076
|
ownerRunId: z.ZodUUID;
|
|
979
1077
|
resourceId: z.ZodUUID;
|
|
980
1078
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
981
1079
|
path: z.ZodString;
|
|
982
1080
|
branch: z.ZodString;
|
|
983
1081
|
baselineSha: z.ZodString;
|
|
984
|
-
}, z.core.$strict
|
|
1082
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1083
|
+
ownerRunId: z.ZodUUID;
|
|
1084
|
+
resourceId: z.ZodUUID;
|
|
1085
|
+
kind: z.ZodLiteral<"shared">;
|
|
1086
|
+
path: z.ZodString;
|
|
1087
|
+
hostRunId: z.ZodUUID;
|
|
1088
|
+
baselineSha: z.ZodString;
|
|
1089
|
+
}, z.core.$strict>], "kind">;
|
|
985
1090
|
destroy: z.ZodOptional<z.ZodObject<{
|
|
986
1091
|
requestedAt: z.ZodISODateTime;
|
|
987
1092
|
phase: z.ZodEnum<{
|
|
@@ -1052,9 +1157,35 @@ export declare const runDelegationSummarySchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
1052
1157
|
role: z.ZodLiteral<"invalid">;
|
|
1053
1158
|
}, z.core.$strip>], "role">;
|
|
1054
1159
|
export type RunDelegationSummary = z.infer<typeof runDelegationSummarySchema>;
|
|
1160
|
+
/** What `--workspace` takes, and the stored kind each choice plans. */
|
|
1161
|
+
export declare const WORKSPACE_CHOICES: {
|
|
1162
|
+
readonly isolated: 'owned-isolated';
|
|
1163
|
+
readonly shared: 'shared';
|
|
1164
|
+
};
|
|
1165
|
+
export declare const workerWorkspaceChoiceSchema: z.ZodEnum<{
|
|
1166
|
+
isolated: "isolated";
|
|
1167
|
+
shared: "shared";
|
|
1168
|
+
}>;
|
|
1169
|
+
export declare const SHARED_BASELINE_REFUSAL = "--baseline cannot be used with --workspace shared: a shared worker runs at its parent's HEAD";
|
|
1170
|
+
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";
|
|
1171
|
+
/** Why a spawn into a shared workspace is refused, or undefined. The schema accepts the request, so
|
|
1172
|
+
* the service and the CLI answer with these words instead of a generic validation error. */
|
|
1173
|
+
export declare function sharedSpawnRefusal(request: {
|
|
1174
|
+
workspace?: string | undefined;
|
|
1175
|
+
baseline?: string | undefined;
|
|
1176
|
+
context?: {
|
|
1177
|
+
artifacts?: ReadonlyArray<{
|
|
1178
|
+
kind: string;
|
|
1179
|
+
}> | undefined;
|
|
1180
|
+
} | undefined;
|
|
1181
|
+
}): string | undefined;
|
|
1055
1182
|
export declare const workerSpawnRequestSchema: z.ZodObject<{
|
|
1056
1183
|
task: z.ZodString;
|
|
1057
|
-
baseline: z.ZodString
|
|
1184
|
+
baseline: z.ZodOptional<z.ZodString>;
|
|
1185
|
+
workspace: z.ZodOptional<z.ZodEnum<{
|
|
1186
|
+
isolated: "isolated";
|
|
1187
|
+
shared: "shared";
|
|
1188
|
+
}>>;
|
|
1058
1189
|
requestId: z.ZodUUID;
|
|
1059
1190
|
context: z.ZodOptional<z.ZodObject<{
|
|
1060
1191
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -1096,56 +1227,6 @@ export declare const workerWaitRequestSchema: z.ZodObject<{
|
|
|
1096
1227
|
}>>;
|
|
1097
1228
|
}, z.core.$strict>;
|
|
1098
1229
|
export type WorkerWaitRequest = z.infer<typeof workerWaitRequestSchema>;
|
|
1099
|
-
export declare const inboxClaimSchema: z.ZodObject<{
|
|
1100
|
-
receiptId: z.ZodUUID;
|
|
1101
|
-
generation: z.ZodUUID;
|
|
1102
|
-
expiresAt: z.ZodISODateTime;
|
|
1103
|
-
acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1104
|
-
memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
1105
|
-
}, z.core.$strict>;
|
|
1106
|
-
export type InboxClaim = z.infer<typeof inboxClaimSchema>;
|
|
1107
|
-
export declare const agentInputSchema: z.ZodObject<{
|
|
1108
|
-
conversation: z.ZodOptional<z.ZodObject<{
|
|
1109
|
-
senderRunId: z.ZodUUID;
|
|
1110
|
-
recipientRunId: z.ZodUUID;
|
|
1111
|
-
kind: z.ZodEnum<{
|
|
1112
|
-
"follow-up": "follow-up";
|
|
1113
|
-
progress: "progress";
|
|
1114
|
-
reply: "reply";
|
|
1115
|
-
request: "request";
|
|
1116
|
-
}>;
|
|
1117
|
-
requestId: z.ZodOptional<z.ZodUUID>;
|
|
1118
|
-
relationship: z.ZodOptional<z.ZodEnum<{
|
|
1119
|
-
family: "family";
|
|
1120
|
-
peer: "peer";
|
|
1121
|
-
}>>;
|
|
1122
|
-
}, z.core.$strict>>;
|
|
1123
|
-
id: z.ZodUUID;
|
|
1124
|
-
source: z.ZodEnum<{
|
|
1125
|
-
agent: "agent";
|
|
1126
|
-
lifecycle: "lifecycle";
|
|
1127
|
-
}>;
|
|
1128
|
-
parentRunId: z.ZodUUID;
|
|
1129
|
-
text: z.ZodString;
|
|
1130
|
-
createdAt: z.ZodISODateTime;
|
|
1131
|
-
deliveredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1132
|
-
consumedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1133
|
-
awaitingRead: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1134
|
-
inboxClaim: z.ZodOptional<z.ZodObject<{
|
|
1135
|
-
receiptId: z.ZodUUID;
|
|
1136
|
-
generation: z.ZodUUID;
|
|
1137
|
-
expiresAt: z.ZodISODateTime;
|
|
1138
|
-
acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1139
|
-
memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
1140
|
-
}, z.core.$strict>>;
|
|
1141
|
-
purpose: z.ZodOptional<z.ZodEnum<{
|
|
1142
|
-
"completion-refusal": "completion-refusal";
|
|
1143
|
-
"undelivered-question": "undelivered-question";
|
|
1144
|
-
}>>;
|
|
1145
|
-
requestHash: z.ZodOptional<z.ZodString>;
|
|
1146
|
-
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
1147
|
-
}, z.core.$strict>;
|
|
1148
|
-
export type AgentInput = z.infer<typeof agentInputSchema>;
|
|
1149
1230
|
export declare const workerInspectionSchema: z.ZodObject<{
|
|
1150
1231
|
workerId: z.ZodUUID;
|
|
1151
1232
|
settled: z.ZodBoolean;
|
|
@@ -1160,14 +1241,21 @@ export declare const workerInspectionSchema: z.ZodObject<{
|
|
|
1160
1241
|
waiting: "waiting";
|
|
1161
1242
|
}>;
|
|
1162
1243
|
currentStepId: z.ZodOptional<z.ZodString>;
|
|
1163
|
-
workspace: z.ZodObject<{
|
|
1244
|
+
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1164
1245
|
ownerRunId: z.ZodUUID;
|
|
1165
1246
|
resourceId: z.ZodUUID;
|
|
1166
1247
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
1167
1248
|
path: z.ZodString;
|
|
1168
1249
|
branch: z.ZodString;
|
|
1169
1250
|
baselineSha: z.ZodString;
|
|
1170
|
-
}, z.core.$strict
|
|
1251
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1252
|
+
ownerRunId: z.ZodUUID;
|
|
1253
|
+
resourceId: z.ZodUUID;
|
|
1254
|
+
kind: z.ZodLiteral<"shared">;
|
|
1255
|
+
path: z.ZodString;
|
|
1256
|
+
hostRunId: z.ZodUUID;
|
|
1257
|
+
baselineSha: z.ZodString;
|
|
1258
|
+
}, z.core.$strict>], "kind">;
|
|
1171
1259
|
backend: z.ZodOptional<z.ZodEnum<{
|
|
1172
1260
|
claude: "claude";
|
|
1173
1261
|
codex: "codex";
|
|
@@ -1344,14 +1432,21 @@ export declare const workerListEntrySchema: z.ZodObject<{
|
|
|
1344
1432
|
running: "running";
|
|
1345
1433
|
waiting: "waiting";
|
|
1346
1434
|
}>;
|
|
1347
|
-
workspace: z.ZodObject<{
|
|
1435
|
+
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1348
1436
|
ownerRunId: z.ZodUUID;
|
|
1349
1437
|
resourceId: z.ZodUUID;
|
|
1350
1438
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
1351
1439
|
path: z.ZodString;
|
|
1352
1440
|
branch: z.ZodString;
|
|
1353
1441
|
baselineSha: z.ZodString;
|
|
1354
|
-
}, z.core.$strict
|
|
1442
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1443
|
+
ownerRunId: z.ZodUUID;
|
|
1444
|
+
resourceId: z.ZodUUID;
|
|
1445
|
+
kind: z.ZodLiteral<"shared">;
|
|
1446
|
+
path: z.ZodString;
|
|
1447
|
+
hostRunId: z.ZodUUID;
|
|
1448
|
+
baselineSha: z.ZodString;
|
|
1449
|
+
}, z.core.$strict>], "kind">;
|
|
1355
1450
|
destroy: z.ZodOptional<z.ZodObject<{
|
|
1356
1451
|
requestedAt: z.ZodISODateTime;
|
|
1357
1452
|
phase: z.ZodEnum<{
|
|
@@ -1390,14 +1485,21 @@ export declare const workerListResultSchema: z.ZodObject<{
|
|
|
1390
1485
|
running: "running";
|
|
1391
1486
|
waiting: "waiting";
|
|
1392
1487
|
}>;
|
|
1393
|
-
workspace: z.ZodObject<{
|
|
1488
|
+
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1394
1489
|
ownerRunId: z.ZodUUID;
|
|
1395
1490
|
resourceId: z.ZodUUID;
|
|
1396
1491
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
1397
1492
|
path: z.ZodString;
|
|
1398
1493
|
branch: z.ZodString;
|
|
1399
1494
|
baselineSha: z.ZodString;
|
|
1400
|
-
}, z.core.$strict
|
|
1495
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1496
|
+
ownerRunId: z.ZodUUID;
|
|
1497
|
+
resourceId: z.ZodUUID;
|
|
1498
|
+
kind: z.ZodLiteral<"shared">;
|
|
1499
|
+
path: z.ZodString;
|
|
1500
|
+
hostRunId: z.ZodUUID;
|
|
1501
|
+
baselineSha: z.ZodString;
|
|
1502
|
+
}, z.core.$strict>], "kind">;
|
|
1401
1503
|
destroy: z.ZodOptional<z.ZodObject<{
|
|
1402
1504
|
requestedAt: z.ZodISODateTime;
|
|
1403
1505
|
phase: z.ZodEnum<{
|
|
@@ -1443,14 +1545,21 @@ export declare const workerListPageSchema: z.ZodObject<{
|
|
|
1443
1545
|
running: "running";
|
|
1444
1546
|
waiting: "waiting";
|
|
1445
1547
|
}>;
|
|
1446
|
-
workspace: z.ZodObject<{
|
|
1548
|
+
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1447
1549
|
ownerRunId: z.ZodUUID;
|
|
1448
1550
|
resourceId: z.ZodUUID;
|
|
1449
1551
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
1450
1552
|
path: z.ZodString;
|
|
1451
1553
|
branch: z.ZodString;
|
|
1452
1554
|
baselineSha: z.ZodString;
|
|
1453
|
-
}, z.core.$strict
|
|
1555
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1556
|
+
ownerRunId: z.ZodUUID;
|
|
1557
|
+
resourceId: z.ZodUUID;
|
|
1558
|
+
kind: z.ZodLiteral<"shared">;
|
|
1559
|
+
path: z.ZodString;
|
|
1560
|
+
hostRunId: z.ZodUUID;
|
|
1561
|
+
baselineSha: z.ZodString;
|
|
1562
|
+
}, z.core.$strict>], "kind">;
|
|
1454
1563
|
destroy: z.ZodOptional<z.ZodObject<{
|
|
1455
1564
|
requestedAt: z.ZodISODateTime;
|
|
1456
1565
|
phase: z.ZodEnum<{
|
|
@@ -1552,14 +1661,21 @@ export declare const runRelationshipsSchema: z.ZodObject<{
|
|
|
1552
1661
|
waiting: "waiting";
|
|
1553
1662
|
}>;
|
|
1554
1663
|
currentStepId: z.ZodOptional<z.ZodString>;
|
|
1555
|
-
workspace: z.ZodObject<{
|
|
1664
|
+
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1556
1665
|
ownerRunId: z.ZodUUID;
|
|
1557
1666
|
resourceId: z.ZodUUID;
|
|
1558
1667
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
1559
1668
|
path: z.ZodString;
|
|
1560
1669
|
branch: z.ZodString;
|
|
1561
1670
|
baselineSha: z.ZodString;
|
|
1562
|
-
}, z.core.$strict
|
|
1671
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1672
|
+
ownerRunId: z.ZodUUID;
|
|
1673
|
+
resourceId: z.ZodUUID;
|
|
1674
|
+
kind: z.ZodLiteral<"shared">;
|
|
1675
|
+
path: z.ZodString;
|
|
1676
|
+
hostRunId: z.ZodUUID;
|
|
1677
|
+
baselineSha: z.ZodString;
|
|
1678
|
+
}, z.core.$strict>], "kind">;
|
|
1563
1679
|
backend: z.ZodOptional<z.ZodEnum<{
|
|
1564
1680
|
claude: "claude";
|
|
1565
1681
|
codex: "codex";
|