@hearsay-tools/squawk 0.18.0-pr3910.7358 → 0.18.0-pr3913.7362
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/tools.d.ts +4 -4
- package/dist/contract/delegation.d.ts +18 -200
- package/dist/contract/index.js +5 -70
- package/dist/contract/runs.d.ts +6 -27
- package/dist/delegation/cli.js +7 -14
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/context.d.ts +5 -40
- package/dist/delegation/context.js +75 -93
- package/dist/delegation/context.js.map +1 -1
- package/dist/delegation/conversations.d.ts +144 -158
- package/dist/delegation/family-end.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 +1 -3
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/results.js +3 -12
- package/dist/delegation/results.js.map +1 -1
- package/dist/delegation/routes.d.ts +17 -53
- package/dist/delegation/service.js +5 -9
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +19 -55
- 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 +5 -28
- package/dist/delegation/workspace-kinds.js +6 -58
- 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.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 +2 -9
- package/dist/runs/owned-run-create.js +4 -12
- package/dist/runs/owned-run-create.js.map +1 -1
- package/dist/runs/retention.d.ts +1 -2
- package/dist/runs/retention.js +3 -5
- package/dist/runs/retention.js.map +1 -1
- package/dist/runs/run-exits.d.ts +0 -42
- package/dist/runs/run-row.js +1 -2
- package/dist/runs/run-row.js.map +1 -1
- package/dist/runs/store.d.ts +2 -16
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/run-checkout.d.ts +1 -1
- package/dist/server/run-checkout.js +12 -40
- package/dist/server/run-checkout.js.map +1 -1
- package/dist/server/server.d.ts +98 -238
- package/dist/workflows/continuation-admission.d.ts +72 -79
- package/dist/workflows/run/compose.js +4 -4
- package/dist/workflows/run/compose.js.map +1 -1
- package/dist/workflows/run/continuation-acceptance.js +1 -1
- package/dist/workflows/run/continuation-acceptance.js.map +1 -1
- package/dist/workflows/run/continuation-session.js +2 -2
- package/dist/workflows/run/continuation-session.js.map +1 -1
- package/dist/workflows/run/maintenance-claims.d.ts +0 -8
- package/dist/workflows/run/maintenance-claims.js +2 -26
- package/dist/workflows/run/maintenance-claims.js.map +1 -1
- package/dist/workflows/run/run-workspace.d.ts +0 -4
- package/dist/workflows/run/run-workspace.js +0 -7
- package/dist/workflows/run/run-workspace.js.map +1 -1
- package/dist/workflows/run/step-loop.d.ts +0 -4
- package/dist/workflows/run/step-loop.js +14 -23
- package/dist/workflows/run/step-loop.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +72 -79
- package/dist/workflows/run/worker-executions.d.ts +0 -4
- package/dist/workflows/run/worker-executions.js +0 -17
- package/dist/workflows/run/worker-executions.js.map +1 -1
- package/dist/workflows/run/worker-orphans.d.ts +0 -5
- package/dist/workflows/run/worker-orphans.js +0 -10
- package/dist/workflows/run/worker-orphans.js.map +1 -1
- package/dist/workflows/run/worker-workspace-port.d.ts +0 -9
- package/dist/workflows/run/worker-workspace-port.js.map +1 -1
- package/dist/workflows/run/worktree-autosave.d.ts +0 -2
- package/dist/workflows/run/worktree-autosave.js +2 -12
- package/dist/workflows/run/worktree-autosave.js.map +1 -1
- package/dist/workflows/run.js +2 -2
- package/dist/workflows/run.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/activity-motion-Ctg50eXm.js +2 -0
- package/web/dist/assets/{activity-route-CAUrcPHu.js → activity-route-CIrBgiGz.js} +1 -1
- package/web/dist/assets/{agent-accounts-QrC5jz43.js → agent-accounts-Bxqcccek.js} +1 -1
- package/web/dist/assets/attention-D15PtJnc.js +1 -0
- package/web/dist/assets/{cez-idle-BvZ_gmxd.js → cez-idle-Catc8I8F.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-Crssaj5L.js → commit-diff-panel-OWVorWVw.js} +1 -1
- package/web/dist/assets/{diff-CEPhFiLV.js → diff-BvBs4Gxp.js} +2 -2
- package/web/dist/assets/{diff-view-RCD2iOmH.js → diff-view-CSrp8jyv.js} +1 -1
- package/web/dist/assets/{file-preview-T85oMxsd.js → file-preview-B6mM_dbK.js} +1 -1
- package/web/dist/assets/{git-toolbar-ejICsCJb.js → git-toolbar-CvG0gvVf.js} +1 -1
- package/web/dist/assets/{github-BBHt0vrY.js → github-Dra1J1Oi.js} +1 -1
- package/web/dist/assets/{global-activity-route-DXW6YzJP.js → global-activity-route-8H2KkpXH.js} +1 -1
- package/web/dist/assets/{index-D0jlfeQc.js → index-aCWAgBiE.js} +8 -8
- package/web/dist/assets/live-protocol-B8HJ-VW8.js +64 -0
- package/web/dist/assets/{markdown-CsTsw0vz.js → markdown-D4ZGAuSC.js} +1 -1
- package/web/dist/assets/picker-pill-B6QPSEUZ.js +15 -0
- package/web/dist/assets/{preview-pane-connected-C8T8r8ms.js → preview-pane-connected-Bhb5eJ5Z.js} +1 -1
- package/web/dist/assets/{project-router-BGIouZPF.js → project-router-0DHZ1s8l.js} +1 -1
- package/web/dist/assets/project-scope-context-qMCI2vmR.js +4 -0
- package/web/dist/assets/{prompt-template-menu-Bxyeax09.js → prompt-template-menu-_WK10gNW.js} +1 -1
- package/web/dist/assets/{queries-Dd4lOB8Z.js → queries-DFchmPfl.js} +1 -1
- package/web/dist/assets/{reference-chip-70Rgnh7I.js → reference-chip-BJe4UIpL.js} +1 -1
- package/web/dist/assets/{repo-git-8Z5tRSUn.js → repo-git-DAhDX80l.js} +1 -1
- package/web/dist/assets/{report-reader-BAVoy0Yl.js → report-reader-DsYm5b9J.js} +1 -1
- package/web/dist/assets/reports-BosE8lj8.js +1 -0
- package/web/dist/assets/run-header-DBbM_xNy.js +2 -0
- package/web/dist/assets/{skills-DXJYBDXR.js → skills-BHAGfLNq.js} +1 -1
- package/web/dist/assets/{tab-link-C72bTLvz.js → tab-link-lVQ2eOeD.js} +1 -1
- package/web/dist/assets/{task-changes-DfC7cyQy.js → task-changes-Jg7Xzrfa.js} +1 -1
- package/web/dist/assets/{task-commits-BvvC8FJl.js → task-commits-DecgF6zx.js} +1 -1
- package/web/dist/assets/{task-files-BUvykkqX.js → task-files-D7N-vFyz.js} +1 -1
- package/web/dist/assets/{task-github-item-CAFyUSdB.js → task-github-item-C8fBdico.js} +1 -1
- package/web/dist/assets/{task-thread-BjfZoBwy.js → task-thread-DifTEOeK.js} +3 -3
- package/web/dist/assets/{thread-state-_ZNTkbgY.js → thread-state-i29D-4yN.js} +1 -1
- package/web/dist/assets/{use-desktop-Do_nEc-y.js → use-desktop-CdWXLHne.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-Dnvb96sj.js → use-hand-to-agent-state-CPxNdj4_.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-DseIJXqT.js → useInfiniteQuery-Bn5hIzUm.js} +1 -1
- package/web/dist/assets/useQuery-DjkTL27e.js +1 -0
- package/web/dist/assets/{workflows-CASKWpGo.js → workflows-CflCv_rB.js} +1 -1
- package/web/dist/assets/{ws-ChC1I19z.js → ws-DfKMAUWf.js} +1 -1
- package/web/dist/index.html +15 -15
- package/web/dist/live-worker.js +1 -1
- package/dist/delegation/shared-workspace.d.ts +0 -25
- package/dist/delegation/shared-workspace.js +0 -100
- package/dist/delegation/shared-workspace.js.map +0 -1
- package/dist/delegation/workspace-state.d.ts +0 -65
- package/dist/delegation/workspace-state.js +0 -252
- package/dist/delegation/workspace-state.js.map +0 -1
- package/dist/runs/shared-hosts.d.ts +0 -13
- package/dist/runs/shared-hosts.js +0 -24
- package/dist/runs/shared-hosts.js.map +0 -1
- package/web/dist/assets/activity-motion-B5x1v2Fu.js +0 -2
- package/web/dist/assets/attention-CsAcQa0H.js +0 -1
- package/web/dist/assets/live-protocol-BfJEBmoK.js +0 -64
- package/web/dist/assets/picker-pill-C-9MatV_.js +0 -15
- package/web/dist/assets/project-scope-context-DoVn_JsC.js +0 -4
- package/web/dist/assets/reports-BtneNHIz.js +0 -1
- package/web/dist/assets/run-header-Bj9yUATx.js +0 -2
- package/web/dist/assets/useQuery-zlfTwROI.js +0 -1
package/dist/ci-wait/tools.d.ts
CHANGED
|
@@ -263,10 +263,6 @@ 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
|
-
} | {
|
|
270
266
|
ok: true;
|
|
271
267
|
task: {
|
|
272
268
|
id: string;
|
|
@@ -278,6 +274,10 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
|
|
|
278
274
|
url?: string | undefined;
|
|
279
275
|
};
|
|
280
276
|
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<{
|
|
@@ -12,8 +12,7 @@ export declare const workerOperationSchema: z.ZodEnum<{
|
|
|
12
12
|
export type WorkerOperation = z.infer<typeof workerOperationSchema>;
|
|
13
13
|
/** 1–32 unique ids; the worker wait entry and `cezar_wait` reuse it for worker and request ids. */
|
|
14
14
|
export declare const workerIdsSchema: z.ZodArray<z.ZodUUID>;
|
|
15
|
-
|
|
16
|
-
export declare const ownedWorkspaceSchema: z.ZodObject<{
|
|
15
|
+
export declare const workerWorkspaceSchema: z.ZodObject<{
|
|
17
16
|
ownerRunId: z.ZodUUID;
|
|
18
17
|
resourceId: z.ZodUUID;
|
|
19
18
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
@@ -21,38 +20,7 @@ export declare const ownedWorkspaceSchema: z.ZodObject<{
|
|
|
21
20
|
branch: z.ZodString;
|
|
22
21
|
baselineSha: z.ZodString;
|
|
23
22
|
}, z.core.$strict>;
|
|
24
|
-
export type OwnedWorkerWorkspace = z.infer<typeof ownedWorkspaceSchema>;
|
|
25
|
-
/** Another run's directory, which the worker works in. It has no worktree and no branch of its own. */
|
|
26
|
-
export declare const sharedWorkspaceSchema: z.ZodObject<{
|
|
27
|
-
ownerRunId: z.ZodUUID;
|
|
28
|
-
resourceId: z.ZodUUID;
|
|
29
|
-
kind: z.ZodLiteral<"shared">;
|
|
30
|
-
path: z.ZodString;
|
|
31
|
-
hostRunId: z.ZodUUID;
|
|
32
|
-
baselineSha: z.ZodString;
|
|
33
|
-
}, z.core.$strict>;
|
|
34
|
-
export type SharedWorkerWorkspace = z.infer<typeof sharedWorkspaceSchema>;
|
|
35
|
-
export declare const workerWorkspaceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
-
ownerRunId: z.ZodUUID;
|
|
37
|
-
resourceId: z.ZodUUID;
|
|
38
|
-
kind: z.ZodLiteral<"owned-isolated">;
|
|
39
|
-
path: z.ZodString;
|
|
40
|
-
branch: z.ZodString;
|
|
41
|
-
baselineSha: z.ZodString;
|
|
42
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
43
|
-
ownerRunId: z.ZodUUID;
|
|
44
|
-
resourceId: z.ZodUUID;
|
|
45
|
-
kind: z.ZodLiteral<"shared">;
|
|
46
|
-
path: z.ZodString;
|
|
47
|
-
hostRunId: z.ZodUUID;
|
|
48
|
-
baselineSha: z.ZodString;
|
|
49
|
-
}, z.core.$strict>], "kind">;
|
|
50
23
|
export type WorkerWorkspace = z.infer<typeof workerWorkspaceSchema>;
|
|
51
|
-
export declare function ownsDirectory(workspace: WorkerWorkspace): workspace is OwnedWorkerWorkspace;
|
|
52
|
-
/** The workspace of a worker that owns its directory. Throws for one that does not. */
|
|
53
|
-
export declare function ownedWorkspace(workspace: WorkerWorkspace): OwnedWorkerWorkspace;
|
|
54
|
-
/** The text every refused directory action of such a worker starts with. */
|
|
55
|
-
export declare const SHARED_WORKSPACE_REFUSAL = "this worker runs in its parent's worktree";
|
|
56
24
|
export declare const workerOutcomeSchema: z.ZodObject<{
|
|
57
25
|
workerId: z.ZodUUID;
|
|
58
26
|
status: z.ZodEnum<{
|
|
@@ -308,28 +276,6 @@ export declare const workerInputRecipeSchema: z.ZodObject<{
|
|
|
308
276
|
}, z.core.$strict>>;
|
|
309
277
|
}, z.core.$strict>;
|
|
310
278
|
export type WorkerInputRecipe = z.infer<typeof workerInputRecipeSchema>;
|
|
311
|
-
/** How many changed paths a change report names. */
|
|
312
|
-
export declare const WORKER_CHANGED_PATHS_CAP = 100;
|
|
313
|
-
/**
|
|
314
|
-
* Whether the host directory of a shared worker changed between the worker's first session start
|
|
315
|
-
* and its last settlement; a worker that still runs is compared with the directory as it is.
|
|
316
|
-
* The report covers HEAD, the checked-out branch, the index, tracked changes and untracked files;
|
|
317
|
-
* ignored files are out. It does not say who made a change.
|
|
318
|
-
*/
|
|
319
|
-
export declare const workerChangeReportSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
320
|
-
state: z.ZodLiteral<"unchanged">;
|
|
321
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
322
|
-
state: z.ZodLiteral<"changed">;
|
|
323
|
-
paths: z.ZodArray<z.ZodString>;
|
|
324
|
-
truncated: z.ZodBoolean;
|
|
325
|
-
headMoved: z.ZodBoolean;
|
|
326
|
-
branchMoved: z.ZodBoolean;
|
|
327
|
-
indexMoved: z.ZodBoolean;
|
|
328
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
329
|
-
state: z.ZodLiteral<"unavailable">;
|
|
330
|
-
reason: z.ZodString;
|
|
331
|
-
}, z.core.$strict>], "state">;
|
|
332
|
-
export type WorkerChangeReport = z.infer<typeof workerChangeReportSchema>;
|
|
333
279
|
export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
334
280
|
workerId: z.ZodUUID;
|
|
335
281
|
parentRunId: z.ZodUUID;
|
|
@@ -371,7 +317,7 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
371
317
|
}>>;
|
|
372
318
|
model: z.ZodOptional<z.ZodString>;
|
|
373
319
|
baselineSha: z.ZodString;
|
|
374
|
-
workspace: z.
|
|
320
|
+
workspace: z.ZodObject<{
|
|
375
321
|
ownerRunId: z.ZodUUID;
|
|
376
322
|
resourceId: z.ZodUUID;
|
|
377
323
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
@@ -383,19 +329,7 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
383
329
|
deleted: "deleted";
|
|
384
330
|
unavailable: "unavailable";
|
|
385
331
|
}>>;
|
|
386
|
-
}, z.core.$strict
|
|
387
|
-
ownerRunId: z.ZodUUID;
|
|
388
|
-
resourceId: z.ZodUUID;
|
|
389
|
-
kind: z.ZodLiteral<"shared">;
|
|
390
|
-
path: z.ZodString;
|
|
391
|
-
hostRunId: z.ZodUUID;
|
|
392
|
-
baselineSha: z.ZodString;
|
|
393
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
394
|
-
available: "available";
|
|
395
|
-
deleted: "deleted";
|
|
396
|
-
unavailable: "unavailable";
|
|
397
|
-
}>>;
|
|
398
|
-
}, z.core.$strict>], "kind">;
|
|
332
|
+
}, z.core.$strict>;
|
|
399
333
|
cleanup: z.ZodEnum<{
|
|
400
334
|
cleaning: "cleaning";
|
|
401
335
|
complete: "complete";
|
|
@@ -419,7 +353,6 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
419
353
|
missing: "missing";
|
|
420
354
|
"no-assistant-output": "no-assistant-output";
|
|
421
355
|
unreadable: "unreadable";
|
|
422
|
-
unsupported: "unsupported";
|
|
423
356
|
unverified: "unverified";
|
|
424
357
|
}>;
|
|
425
358
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -436,7 +369,6 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
436
369
|
missing: "missing";
|
|
437
370
|
"no-assistant-output": "no-assistant-output";
|
|
438
371
|
unreadable: "unreadable";
|
|
439
|
-
unsupported: "unsupported";
|
|
440
372
|
unverified: "unverified";
|
|
441
373
|
}>;
|
|
442
374
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -457,7 +389,6 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
457
389
|
missing: "missing";
|
|
458
390
|
"no-assistant-output": "no-assistant-output";
|
|
459
391
|
unreadable: "unreadable";
|
|
460
|
-
unsupported: "unsupported";
|
|
461
392
|
unverified: "unverified";
|
|
462
393
|
}>;
|
|
463
394
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -465,19 +396,6 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
465
396
|
state: z.ZodLiteral<"deleted">;
|
|
466
397
|
reason: z.ZodLiteral<"missing">;
|
|
467
398
|
}, z.core.$strict>], "state">;
|
|
468
|
-
changes: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
469
|
-
state: z.ZodLiteral<"unchanged">;
|
|
470
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
471
|
-
state: z.ZodLiteral<"changed">;
|
|
472
|
-
paths: z.ZodArray<z.ZodString>;
|
|
473
|
-
truncated: z.ZodBoolean;
|
|
474
|
-
headMoved: z.ZodBoolean;
|
|
475
|
-
branchMoved: z.ZodBoolean;
|
|
476
|
-
indexMoved: z.ZodBoolean;
|
|
477
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
478
|
-
state: z.ZodLiteral<"unavailable">;
|
|
479
|
-
reason: z.ZodString;
|
|
480
|
-
}, z.core.$strict>], "state">>;
|
|
481
399
|
artifacts: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
482
400
|
state: z.ZodLiteral<"available">;
|
|
483
401
|
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -490,7 +408,6 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
490
408
|
missing: "missing";
|
|
491
409
|
"no-assistant-output": "no-assistant-output";
|
|
492
410
|
unreadable: "unreadable";
|
|
493
|
-
unsupported: "unsupported";
|
|
494
411
|
unverified: "unverified";
|
|
495
412
|
}>;
|
|
496
413
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -509,7 +426,6 @@ export declare const workerCollectedResultSchema: z.ZodObject<{
|
|
|
509
426
|
missing: "missing";
|
|
510
427
|
"no-assistant-output": "no-assistant-output";
|
|
511
428
|
unreadable: "unreadable";
|
|
512
|
-
unsupported: "unsupported";
|
|
513
429
|
unverified: "unverified";
|
|
514
430
|
}>;
|
|
515
431
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -561,7 +477,7 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
561
477
|
}>>;
|
|
562
478
|
model: z.ZodOptional<z.ZodString>;
|
|
563
479
|
baselineSha: z.ZodString;
|
|
564
|
-
workspace: z.
|
|
480
|
+
workspace: z.ZodObject<{
|
|
565
481
|
ownerRunId: z.ZodUUID;
|
|
566
482
|
resourceId: z.ZodUUID;
|
|
567
483
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
@@ -573,19 +489,7 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
573
489
|
deleted: "deleted";
|
|
574
490
|
unavailable: "unavailable";
|
|
575
491
|
}>>;
|
|
576
|
-
}, z.core.$strict
|
|
577
|
-
ownerRunId: z.ZodUUID;
|
|
578
|
-
resourceId: z.ZodUUID;
|
|
579
|
-
kind: z.ZodLiteral<"shared">;
|
|
580
|
-
path: z.ZodString;
|
|
581
|
-
hostRunId: z.ZodUUID;
|
|
582
|
-
baselineSha: z.ZodString;
|
|
583
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
584
|
-
available: "available";
|
|
585
|
-
deleted: "deleted";
|
|
586
|
-
unavailable: "unavailable";
|
|
587
|
-
}>>;
|
|
588
|
-
}, z.core.$strict>], "kind">;
|
|
492
|
+
}, z.core.$strict>;
|
|
589
493
|
cleanup: z.ZodEnum<{
|
|
590
494
|
cleaning: "cleaning";
|
|
591
495
|
complete: "complete";
|
|
@@ -609,7 +513,6 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
609
513
|
missing: "missing";
|
|
610
514
|
"no-assistant-output": "no-assistant-output";
|
|
611
515
|
unreadable: "unreadable";
|
|
612
|
-
unsupported: "unsupported";
|
|
613
516
|
unverified: "unverified";
|
|
614
517
|
}>;
|
|
615
518
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -626,7 +529,6 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
626
529
|
missing: "missing";
|
|
627
530
|
"no-assistant-output": "no-assistant-output";
|
|
628
531
|
unreadable: "unreadable";
|
|
629
|
-
unsupported: "unsupported";
|
|
630
532
|
unverified: "unverified";
|
|
631
533
|
}>;
|
|
632
534
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -647,7 +549,6 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
647
549
|
missing: "missing";
|
|
648
550
|
"no-assistant-output": "no-assistant-output";
|
|
649
551
|
unreadable: "unreadable";
|
|
650
|
-
unsupported: "unsupported";
|
|
651
552
|
unverified: "unverified";
|
|
652
553
|
}>;
|
|
653
554
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -655,19 +556,6 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
655
556
|
state: z.ZodLiteral<"deleted">;
|
|
656
557
|
reason: z.ZodLiteral<"missing">;
|
|
657
558
|
}, z.core.$strict>], "state">;
|
|
658
|
-
changes: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
659
|
-
state: z.ZodLiteral<"unchanged">;
|
|
660
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
661
|
-
state: z.ZodLiteral<"changed">;
|
|
662
|
-
paths: z.ZodArray<z.ZodString>;
|
|
663
|
-
truncated: z.ZodBoolean;
|
|
664
|
-
headMoved: z.ZodBoolean;
|
|
665
|
-
branchMoved: z.ZodBoolean;
|
|
666
|
-
indexMoved: z.ZodBoolean;
|
|
667
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
668
|
-
state: z.ZodLiteral<"unavailable">;
|
|
669
|
-
reason: z.ZodString;
|
|
670
|
-
}, z.core.$strict>], "state">>;
|
|
671
559
|
artifacts: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
672
560
|
state: z.ZodLiteral<"available">;
|
|
673
561
|
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -680,7 +568,6 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
680
568
|
missing: "missing";
|
|
681
569
|
"no-assistant-output": "no-assistant-output";
|
|
682
570
|
unreadable: "unreadable";
|
|
683
|
-
unsupported: "unsupported";
|
|
684
571
|
unverified: "unverified";
|
|
685
572
|
}>;
|
|
686
573
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -699,7 +586,6 @@ export declare const workerResultFileSchema: z.ZodObject<{
|
|
|
699
586
|
missing: "missing";
|
|
700
587
|
"no-assistant-output": "no-assistant-output";
|
|
701
588
|
unreadable: "unreadable";
|
|
702
|
-
unsupported: "unsupported";
|
|
703
589
|
unverified: "unverified";
|
|
704
590
|
}>;
|
|
705
591
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -1088,21 +974,14 @@ export declare const delegationStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1088
974
|
wait: "wait";
|
|
1089
975
|
}>>;
|
|
1090
976
|
parentRunId: z.ZodUUID;
|
|
1091
|
-
workspace: z.
|
|
977
|
+
workspace: z.ZodObject<{
|
|
1092
978
|
ownerRunId: z.ZodUUID;
|
|
1093
979
|
resourceId: z.ZodUUID;
|
|
1094
980
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
1095
981
|
path: z.ZodString;
|
|
1096
982
|
branch: z.ZodString;
|
|
1097
983
|
baselineSha: z.ZodString;
|
|
1098
|
-
}, z.core.$strict
|
|
1099
|
-
ownerRunId: z.ZodUUID;
|
|
1100
|
-
resourceId: z.ZodUUID;
|
|
1101
|
-
kind: z.ZodLiteral<"shared">;
|
|
1102
|
-
path: z.ZodString;
|
|
1103
|
-
hostRunId: z.ZodUUID;
|
|
1104
|
-
baselineSha: z.ZodString;
|
|
1105
|
-
}, z.core.$strict>], "kind">;
|
|
984
|
+
}, z.core.$strict>;
|
|
1106
985
|
destroy: z.ZodOptional<z.ZodObject<{
|
|
1107
986
|
requestedAt: z.ZodISODateTime;
|
|
1108
987
|
phase: z.ZodEnum<{
|
|
@@ -1173,35 +1052,9 @@ export declare const runDelegationSummarySchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
1173
1052
|
role: z.ZodLiteral<"invalid">;
|
|
1174
1053
|
}, z.core.$strip>], "role">;
|
|
1175
1054
|
export type RunDelegationSummary = z.infer<typeof runDelegationSummarySchema>;
|
|
1176
|
-
/** What `--workspace` takes, and the stored kind each choice plans. */
|
|
1177
|
-
export declare const WORKSPACE_CHOICES: {
|
|
1178
|
-
readonly isolated: 'owned-isolated';
|
|
1179
|
-
readonly shared: 'shared';
|
|
1180
|
-
};
|
|
1181
|
-
export declare const workerWorkspaceChoiceSchema: z.ZodEnum<{
|
|
1182
|
-
isolated: "isolated";
|
|
1183
|
-
shared: "shared";
|
|
1184
|
-
}>;
|
|
1185
|
-
export declare const SHARED_BASELINE_REFUSAL = "--baseline cannot be used with --workspace shared: a shared worker runs at its parent's HEAD";
|
|
1186
|
-
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";
|
|
1187
|
-
/** Why a spawn into a shared workspace is refused, or undefined. The schema accepts the request, so
|
|
1188
|
-
* the service and the CLI answer with these words instead of a generic validation error. */
|
|
1189
|
-
export declare function sharedSpawnRefusal(request: {
|
|
1190
|
-
workspace?: string | undefined;
|
|
1191
|
-
baseline?: string | undefined;
|
|
1192
|
-
context?: {
|
|
1193
|
-
artifacts?: ReadonlyArray<{
|
|
1194
|
-
kind: string;
|
|
1195
|
-
}> | undefined;
|
|
1196
|
-
} | undefined;
|
|
1197
|
-
}): string | undefined;
|
|
1198
1055
|
export declare const workerSpawnRequestSchema: z.ZodObject<{
|
|
1199
1056
|
task: z.ZodString;
|
|
1200
|
-
baseline: z.
|
|
1201
|
-
workspace: z.ZodOptional<z.ZodEnum<{
|
|
1202
|
-
isolated: "isolated";
|
|
1203
|
-
shared: "shared";
|
|
1204
|
-
}>>;
|
|
1057
|
+
baseline: z.ZodString;
|
|
1205
1058
|
requestId: z.ZodUUID;
|
|
1206
1059
|
context: z.ZodOptional<z.ZodObject<{
|
|
1207
1060
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -1306,21 +1159,14 @@ export declare const workerInspectionSchema: z.ZodObject<{
|
|
|
1306
1159
|
waiting: "waiting";
|
|
1307
1160
|
}>;
|
|
1308
1161
|
currentStepId: z.ZodOptional<z.ZodString>;
|
|
1309
|
-
workspace: z.
|
|
1162
|
+
workspace: z.ZodObject<{
|
|
1310
1163
|
ownerRunId: z.ZodUUID;
|
|
1311
1164
|
resourceId: z.ZodUUID;
|
|
1312
1165
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
1313
1166
|
path: z.ZodString;
|
|
1314
1167
|
branch: z.ZodString;
|
|
1315
1168
|
baselineSha: z.ZodString;
|
|
1316
|
-
}, z.core.$strict
|
|
1317
|
-
ownerRunId: z.ZodUUID;
|
|
1318
|
-
resourceId: z.ZodUUID;
|
|
1319
|
-
kind: z.ZodLiteral<"shared">;
|
|
1320
|
-
path: z.ZodString;
|
|
1321
|
-
hostRunId: z.ZodUUID;
|
|
1322
|
-
baselineSha: z.ZodString;
|
|
1323
|
-
}, z.core.$strict>], "kind">;
|
|
1169
|
+
}, z.core.$strict>;
|
|
1324
1170
|
backend: z.ZodOptional<z.ZodEnum<{
|
|
1325
1171
|
claude: "claude";
|
|
1326
1172
|
codex: "codex";
|
|
@@ -1497,21 +1343,14 @@ export declare const workerListEntrySchema: z.ZodObject<{
|
|
|
1497
1343
|
running: "running";
|
|
1498
1344
|
waiting: "waiting";
|
|
1499
1345
|
}>;
|
|
1500
|
-
workspace: z.
|
|
1346
|
+
workspace: z.ZodObject<{
|
|
1501
1347
|
ownerRunId: z.ZodUUID;
|
|
1502
1348
|
resourceId: z.ZodUUID;
|
|
1503
1349
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
1504
1350
|
path: z.ZodString;
|
|
1505
1351
|
branch: z.ZodString;
|
|
1506
1352
|
baselineSha: z.ZodString;
|
|
1507
|
-
}, z.core.$strict
|
|
1508
|
-
ownerRunId: z.ZodUUID;
|
|
1509
|
-
resourceId: z.ZodUUID;
|
|
1510
|
-
kind: z.ZodLiteral<"shared">;
|
|
1511
|
-
path: z.ZodString;
|
|
1512
|
-
hostRunId: z.ZodUUID;
|
|
1513
|
-
baselineSha: z.ZodString;
|
|
1514
|
-
}, z.core.$strict>], "kind">;
|
|
1353
|
+
}, z.core.$strict>;
|
|
1515
1354
|
destroy: z.ZodOptional<z.ZodObject<{
|
|
1516
1355
|
requestedAt: z.ZodISODateTime;
|
|
1517
1356
|
phase: z.ZodEnum<{
|
|
@@ -1550,21 +1389,14 @@ export declare const workerListResultSchema: z.ZodObject<{
|
|
|
1550
1389
|
running: "running";
|
|
1551
1390
|
waiting: "waiting";
|
|
1552
1391
|
}>;
|
|
1553
|
-
workspace: z.
|
|
1392
|
+
workspace: z.ZodObject<{
|
|
1554
1393
|
ownerRunId: z.ZodUUID;
|
|
1555
1394
|
resourceId: z.ZodUUID;
|
|
1556
1395
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
1557
1396
|
path: z.ZodString;
|
|
1558
1397
|
branch: z.ZodString;
|
|
1559
1398
|
baselineSha: z.ZodString;
|
|
1560
|
-
}, z.core.$strict
|
|
1561
|
-
ownerRunId: z.ZodUUID;
|
|
1562
|
-
resourceId: z.ZodUUID;
|
|
1563
|
-
kind: z.ZodLiteral<"shared">;
|
|
1564
|
-
path: z.ZodString;
|
|
1565
|
-
hostRunId: z.ZodUUID;
|
|
1566
|
-
baselineSha: z.ZodString;
|
|
1567
|
-
}, z.core.$strict>], "kind">;
|
|
1399
|
+
}, z.core.$strict>;
|
|
1568
1400
|
destroy: z.ZodOptional<z.ZodObject<{
|
|
1569
1401
|
requestedAt: z.ZodISODateTime;
|
|
1570
1402
|
phase: z.ZodEnum<{
|
|
@@ -1610,21 +1442,14 @@ export declare const workerListPageSchema: z.ZodObject<{
|
|
|
1610
1442
|
running: "running";
|
|
1611
1443
|
waiting: "waiting";
|
|
1612
1444
|
}>;
|
|
1613
|
-
workspace: z.
|
|
1445
|
+
workspace: z.ZodObject<{
|
|
1614
1446
|
ownerRunId: z.ZodUUID;
|
|
1615
1447
|
resourceId: z.ZodUUID;
|
|
1616
1448
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
1617
1449
|
path: z.ZodString;
|
|
1618
1450
|
branch: z.ZodString;
|
|
1619
1451
|
baselineSha: z.ZodString;
|
|
1620
|
-
}, z.core.$strict
|
|
1621
|
-
ownerRunId: z.ZodUUID;
|
|
1622
|
-
resourceId: z.ZodUUID;
|
|
1623
|
-
kind: z.ZodLiteral<"shared">;
|
|
1624
|
-
path: z.ZodString;
|
|
1625
|
-
hostRunId: z.ZodUUID;
|
|
1626
|
-
baselineSha: z.ZodString;
|
|
1627
|
-
}, z.core.$strict>], "kind">;
|
|
1452
|
+
}, z.core.$strict>;
|
|
1628
1453
|
destroy: z.ZodOptional<z.ZodObject<{
|
|
1629
1454
|
requestedAt: z.ZodISODateTime;
|
|
1630
1455
|
phase: z.ZodEnum<{
|
|
@@ -1725,21 +1550,14 @@ export declare const runRelationshipsSchema: z.ZodObject<{
|
|
|
1725
1550
|
waiting: "waiting";
|
|
1726
1551
|
}>;
|
|
1727
1552
|
currentStepId: z.ZodOptional<z.ZodString>;
|
|
1728
|
-
workspace: z.
|
|
1553
|
+
workspace: z.ZodObject<{
|
|
1729
1554
|
ownerRunId: z.ZodUUID;
|
|
1730
1555
|
resourceId: z.ZodUUID;
|
|
1731
1556
|
kind: z.ZodLiteral<"owned-isolated">;
|
|
1732
1557
|
path: z.ZodString;
|
|
1733
1558
|
branch: z.ZodString;
|
|
1734
1559
|
baselineSha: z.ZodString;
|
|
1735
|
-
}, z.core.$strict
|
|
1736
|
-
ownerRunId: z.ZodUUID;
|
|
1737
|
-
resourceId: z.ZodUUID;
|
|
1738
|
-
kind: z.ZodLiteral<"shared">;
|
|
1739
|
-
path: z.ZodString;
|
|
1740
|
-
hostRunId: z.ZodUUID;
|
|
1741
|
-
baselineSha: z.ZodString;
|
|
1742
|
-
}, z.core.$strict>], "kind">;
|
|
1560
|
+
}, z.core.$strict>;
|
|
1743
1561
|
backend: z.ZodOptional<z.ZodEnum<{
|
|
1744
1562
|
claude: "claude";
|
|
1745
1563
|
codex: "codex";
|
package/dist/contract/index.js
CHANGED
|
@@ -532,7 +532,7 @@ var workerIdsSchema = z8.array(z8.uuid()).min(1).max(32).refine((ids) => new Set
|
|
|
532
532
|
var permissionsSchema = z8.array(workerOperationSchema).max(7).refine((operations) => new Set(operations).size === operations.length);
|
|
533
533
|
var remainingSchema = z8.array(z8.enum(["process", "worktree", "branch"])).max(3).refine((resources) => new Set(resources).size === resources.length);
|
|
534
534
|
var errorSchema = z8.string().max(2e3);
|
|
535
|
-
var
|
|
535
|
+
var workerWorkspaceSchema = z8.object({
|
|
536
536
|
ownerRunId: z8.uuid(),
|
|
537
537
|
resourceId: z8.uuid(),
|
|
538
538
|
kind: z8.literal("owned-isolated"),
|
|
@@ -541,27 +541,6 @@ var ownedWorkspaceSchema = z8.object({
|
|
|
541
541
|
branch: z8.string().min(1),
|
|
542
542
|
baselineSha: commitShaSchema
|
|
543
543
|
}).strict();
|
|
544
|
-
var sharedWorkspaceSchema = z8.object({
|
|
545
|
-
ownerRunId: z8.uuid(),
|
|
546
|
-
resourceId: z8.uuid(),
|
|
547
|
-
kind: z8.literal("shared"),
|
|
548
|
-
/** The host run's directory when the worker was spawned. */
|
|
549
|
-
path: z8.string().min(1),
|
|
550
|
-
/** The run whose directory `path` is. */
|
|
551
|
-
hostRunId: z8.uuid(),
|
|
552
|
-
/** The host directory's HEAD when the worker was spawned. */
|
|
553
|
-
baselineSha: commitShaSchema
|
|
554
|
-
}).strict();
|
|
555
|
-
var workerWorkspaceSchema = z8.discriminatedUnion("kind", [ownedWorkspaceSchema, sharedWorkspaceSchema]);
|
|
556
|
-
var OWNS_DIRECTORY = { "owned-isolated": true, shared: false };
|
|
557
|
-
function ownsDirectory(workspace) {
|
|
558
|
-
return OWNS_DIRECTORY[workspace.kind];
|
|
559
|
-
}
|
|
560
|
-
function ownedWorkspace(workspace) {
|
|
561
|
-
if (!ownsDirectory(workspace)) throw new Error("The workspace owns no worktree");
|
|
562
|
-
return workspace;
|
|
563
|
-
}
|
|
564
|
-
var SHARED_WORKSPACE_REFUSAL = "this worker runs in its parent's worktree";
|
|
565
544
|
var workerOutcomeSchema = z8.object({
|
|
566
545
|
workerId: z8.uuid(),
|
|
567
546
|
status: z8.enum(["review", "done", "failed", "cancelled"]),
|
|
@@ -640,7 +619,7 @@ var workerInputRecipeSchema = z8.object({
|
|
|
640
619
|
text: z8.string().max(1e5).optional(),
|
|
641
620
|
inputs: z8.array(workerInputSchema).max(32)
|
|
642
621
|
}).strict();
|
|
643
|
-
var unavailableEvidenceSchema = z8.object({ state: z8.literal("unavailable"), reason: z8.enum(["no-assistant-output", "missing", "unreadable", "unverified"
|
|
622
|
+
var unavailableEvidenceSchema = z8.object({ state: z8.literal("unavailable"), reason: z8.enum(["no-assistant-output", "missing", "unreadable", "unverified"]), detail: errorSchema.optional() }).strict();
|
|
644
623
|
var deletedEvidenceSchema = z8.object({ state: z8.literal("deleted"), reason: z8.literal("missing") }).strict();
|
|
645
624
|
var executionOutcomeSchema = z8.enum(["running", "review-ready", "completed", "failed", "cancelled"]);
|
|
646
625
|
var workerArtifactSchema = z8.discriminatedUnion("state", [
|
|
@@ -648,21 +627,6 @@ var workerArtifactSchema = z8.discriminatedUnion("state", [
|
|
|
648
627
|
unavailableEvidenceSchema.extend({ id: z8.string().max(255), path: z8.string().max(8192) }),
|
|
649
628
|
deletedEvidenceSchema.extend({ id: z8.string().max(255), path: z8.string().max(8192) })
|
|
650
629
|
]);
|
|
651
|
-
var workspaceStateSchema = z8.enum(["available", "unavailable", "deleted"]);
|
|
652
|
-
var WORKER_CHANGED_PATHS_CAP = 100;
|
|
653
|
-
var workerChangeReportSchema = z8.discriminatedUnion("state", [
|
|
654
|
-
z8.object({ state: z8.literal("unchanged") }).strict(),
|
|
655
|
-
z8.object({
|
|
656
|
-
state: z8.literal("changed"),
|
|
657
|
-
paths: z8.array(z8.string().max(8192)).max(WORKER_CHANGED_PATHS_CAP),
|
|
658
|
-
/** More paths changed than `paths` names. */
|
|
659
|
-
truncated: z8.boolean(),
|
|
660
|
-
headMoved: z8.boolean(),
|
|
661
|
-
branchMoved: z8.boolean(),
|
|
662
|
-
indexMoved: z8.boolean()
|
|
663
|
-
}).strict(),
|
|
664
|
-
z8.object({ state: z8.literal("unavailable"), reason: errorSchema }).strict()
|
|
665
|
-
]);
|
|
666
630
|
var workerCollectedResultSchema = z8.object({
|
|
667
631
|
workerId: z8.uuid(),
|
|
668
632
|
parentRunId: z8.uuid(),
|
|
@@ -677,10 +641,7 @@ var workerCollectedResultSchema = z8.object({
|
|
|
677
641
|
backend: workerBackendSchema.optional(),
|
|
678
642
|
model: z8.string().max(512).optional(),
|
|
679
643
|
baselineSha: commitShaSchema,
|
|
680
|
-
workspace: z8.
|
|
681
|
-
ownedWorkspaceSchema.extend({ state: workspaceStateSchema.optional() }),
|
|
682
|
-
sharedWorkspaceSchema.extend({ state: workspaceStateSchema.optional() })
|
|
683
|
-
]),
|
|
644
|
+
workspace: workerWorkspaceSchema.extend({ state: z8.enum(["available", "unavailable", "deleted"]).optional() }),
|
|
684
645
|
cleanup: z8.enum(["retained", "requested", "terminating", "cleaning", "complete", "incomplete"]),
|
|
685
646
|
summary: z8.discriminatedUnion("state", [
|
|
686
647
|
// `failure`: the worker failed, and the text names the runner's failure reason (hearsay-tools/squawk#3337).
|
|
@@ -699,8 +660,6 @@ var workerCollectedResultSchema = z8.object({
|
|
|
699
660
|
unavailableEvidenceSchema,
|
|
700
661
|
deletedEvidenceSchema
|
|
701
662
|
]),
|
|
702
|
-
/** Present for a worker that works in its host's directory. */
|
|
703
|
-
changes: workerChangeReportSchema.optional(),
|
|
704
663
|
artifacts: z8.discriminatedUnion("state", [
|
|
705
664
|
z8.object({ state: z8.literal("available"), items: z8.array(workerArtifactSchema).max(32), truncated: z8.boolean() }).strict(),
|
|
706
665
|
unavailableEvidenceSchema,
|
|
@@ -764,21 +723,9 @@ var runDelegationSummarySchema = z8.discriminatedUnion("role", [
|
|
|
764
723
|
}),
|
|
765
724
|
delegationStateSchema.options[2].strip()
|
|
766
725
|
]);
|
|
767
|
-
var WORKSPACE_CHOICES = { isolated: "owned-isolated", shared: "shared" };
|
|
768
|
-
var workerWorkspaceChoiceSchema = z8.enum(["isolated", "shared"]);
|
|
769
|
-
var SHARED_BASELINE_REFUSAL = "--baseline cannot be used with --workspace shared: a shared worker runs at its parent's HEAD";
|
|
770
|
-
var SHARED_ATTACH_REFUSAL = "--attach cannot be used with --workspace shared: the worker runs in your worktree, so the file is already there";
|
|
771
|
-
function sharedSpawnRefusal(request) {
|
|
772
|
-
if (request.workspace !== "shared") return void 0;
|
|
773
|
-
if (request.baseline !== void 0) return SHARED_BASELINE_REFUSAL;
|
|
774
|
-
return request.context?.artifacts?.some((artifact) => artifact.kind === "parent-file") ? SHARED_ATTACH_REFUSAL : void 0;
|
|
775
|
-
}
|
|
776
726
|
var workerSpawnRequestSchema = z8.object({
|
|
777
727
|
task: z8.string().min(1).max(1e5),
|
|
778
|
-
|
|
779
|
-
baseline: z8.string().min(1).max(1024).optional(),
|
|
780
|
-
/** `isolated` when absent. */
|
|
781
|
-
workspace: workerWorkspaceChoiceSchema.optional(),
|
|
728
|
+
baseline: z8.string().min(1).max(1024),
|
|
782
729
|
requestId: z8.uuid(),
|
|
783
730
|
context: workerContextSchema.optional(),
|
|
784
731
|
backend: workerBackendSchema.optional(),
|
|
@@ -788,7 +735,7 @@ var workerSpawnRequestSchema = z8.object({
|
|
|
788
735
|
workflow: z8.string().trim().min(1).max(200).optional(),
|
|
789
736
|
/** Discovered skill to run as a one-step task, mutually exclusive with workflow (#778). */
|
|
790
737
|
skill: z8.string().trim().min(1).max(200).optional()
|
|
791
|
-
}).strict().refine((request) => request.skill === void 0 || request.workflow === void 0, { message: "--skill and --workflow cannot be used together" }).refine((request) => request.
|
|
738
|
+
}).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" });
|
|
792
739
|
var workerSteerRequestSchema = z8.object({
|
|
793
740
|
text: z8.string().max(1e5).refine((text) => text.trim().length > 0)
|
|
794
741
|
}).strict();
|
|
@@ -6000,9 +5947,6 @@ export {
|
|
|
6000
5947
|
SCHEDULED_TASK_NOTE,
|
|
6001
5948
|
SCHEDULE_HOURS_OPTIONS,
|
|
6002
5949
|
SCHEDULE_TYPES,
|
|
6003
|
-
SHARED_ATTACH_REFUSAL,
|
|
6004
|
-
SHARED_BASELINE_REFUSAL,
|
|
6005
|
-
SHARED_WORKSPACE_REFUSAL,
|
|
6006
5950
|
SUBAGENT_WAIT_CHILD_LIMIT,
|
|
6007
5951
|
SUBAGENT_WAIT_DEADLINE_SECONDS,
|
|
6008
5952
|
SUBAGENT_WAIT_GRACE_SECONDS,
|
|
@@ -6015,8 +5959,6 @@ export {
|
|
|
6015
5959
|
WAIT_MESSAGE_MAX,
|
|
6016
5960
|
WEBHOOK_TRIGGERS,
|
|
6017
5961
|
WEEKDAY_NAMES,
|
|
6018
|
-
WORKER_CHANGED_PATHS_CAP,
|
|
6019
|
-
WORKSPACE_CHOICES,
|
|
6020
5962
|
WORKTREE_SETUP_DEFAULT_TIMEOUT_SECONDS,
|
|
6021
5963
|
WORKTREE_SETUP_MAX_COMMANDS,
|
|
6022
5964
|
WORKTREE_SETUP_MAX_COMMAND_LENGTH,
|
|
@@ -6327,11 +6269,8 @@ export {
|
|
|
6327
6269
|
openTargetsResponseSchema,
|
|
6328
6270
|
openWaitSchema,
|
|
6329
6271
|
ownLookup,
|
|
6330
|
-
ownedWorkspace,
|
|
6331
|
-
ownedWorkspaceSchema,
|
|
6332
6272
|
ownerInputSchema,
|
|
6333
6273
|
ownerOutputSchema,
|
|
6334
|
-
ownsDirectory,
|
|
6335
6274
|
parentFileRefusal,
|
|
6336
6275
|
parseCron,
|
|
6337
6276
|
parseDurationMinutes,
|
|
@@ -6510,8 +6449,6 @@ export {
|
|
|
6510
6449
|
setConfigSchema,
|
|
6511
6450
|
setWorkspaceConfigInputSchema,
|
|
6512
6451
|
setWorkspaceUiStateInputSchema,
|
|
6513
|
-
sharedSpawnRefusal,
|
|
6514
|
-
sharedWorkspaceSchema,
|
|
6515
6452
|
sidebarLimitsSchema,
|
|
6516
6453
|
skillSchema,
|
|
6517
6454
|
sqlPrefilterTokens,
|
|
@@ -6580,7 +6517,6 @@ export {
|
|
|
6580
6517
|
workerCancelWaitRequestSchema,
|
|
6581
6518
|
workerCancelWaitResultSchema,
|
|
6582
6519
|
workerCapacitySchema,
|
|
6583
|
-
workerChangeReportSchema,
|
|
6584
6520
|
workerCollectedResultSchema,
|
|
6585
6521
|
workerCompletionWaitProjection,
|
|
6586
6522
|
workerCompletionWaitSchema,
|
|
@@ -6624,7 +6560,6 @@ export {
|
|
|
6624
6560
|
workerWaitSchema,
|
|
6625
6561
|
workerWaitTargets,
|
|
6626
6562
|
workerWaitView,
|
|
6627
|
-
workerWorkspaceChoiceSchema,
|
|
6628
6563
|
workerWorkspaceSchema,
|
|
6629
6564
|
workersAllowed,
|
|
6630
6565
|
workersWaitingLabel,
|