@hearsay-tools/squawk 0.18.0-pr3927.7421 → 0.18.0-pr3928.7425
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 +0 -2
- package/dist/ci-wait/errors.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +5 -5
- package/dist/contract/delegation.d.ts +27 -14
- package/dist/contract/index.js +23 -31
- package/dist/contract/runs.d.ts +3 -10
- package/dist/contract/waits.d.ts +0 -2
- package/dist/contract/workspace-events.d.ts +0 -2
- package/dist/delegation/capacity.d.ts +3 -12
- package/dist/delegation/capacity.js +8 -23
- package/dist/delegation/capacity.js.map +1 -1
- package/dist/delegation/cli.js +15 -10
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/conversations.d.ts +0 -3
- package/dist/delegation/conversations.js +1 -4
- package/dist/delegation/conversations.js.map +1 -1
- package/dist/delegation/owned-workspace-release.d.ts +2 -3
- package/dist/delegation/owned-workspace-release.js +2 -2
- package/dist/delegation/owned-workspace-release.js.map +1 -1
- package/dist/delegation/policy.d.ts +3 -13
- package/dist/delegation/policy.js +14 -30
- package/dist/delegation/policy.js.map +1 -1
- package/dist/delegation/provision.js +4 -5
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/readiness.d.ts +2 -4
- package/dist/delegation/readiness.js +8 -9
- package/dist/delegation/readiness.js.map +1 -1
- package/dist/delegation/routes.d.ts +19 -5
- package/dist/delegation/routes.js +3 -3
- package/dist/delegation/routes.js.map +1 -1
- package/dist/delegation/service.d.ts +16 -4
- package/dist/delegation/service.js +39 -60
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +19 -5
- package/dist/delegation/worker-cleanup.d.ts +6 -14
- package/dist/delegation/worker-cleanup.js +27 -61
- package/dist/delegation/worker-cleanup.js.map +1 -1
- package/dist/delegation/workspace-kinds.d.ts +11 -2
- package/dist/delegation/workspace-kinds.js +13 -6
- package/dist/delegation/workspace-kinds.js.map +1 -1
- package/dist/delegation/workspace-record.js +3 -2
- package/dist/delegation/workspace-record.js.map +1 -1
- package/dist/delegation/workspace-removal.d.ts +9 -4
- package/dist/delegation/workspace-removal.js +36 -37
- package/dist/delegation/workspace-removal.js.map +1 -1
- package/dist/delegation/workspace-work.d.ts +35 -0
- package/dist/delegation/workspace-work.js +75 -0
- package/dist/delegation/workspace-work.js.map +1 -0
- package/dist/runs/delegation-state.d.ts +1 -2
- package/dist/runs/owned-run-create.js +9 -33
- package/dist/runs/owned-run-create.js.map +1 -1
- package/dist/runs/run-exits.d.ts +6 -12
- package/dist/runs/shared-hosts.d.ts +0 -4
- package/dist/runs/shared-hosts.js +0 -6
- package/dist/runs/shared-hosts.js.map +1 -1
- package/dist/runs/store.d.ts +5 -6
- package/dist/runs/store.js +6 -5
- package/dist/runs/store.js.map +1 -1
- package/dist/runs/task-rights.d.ts +3 -22
- package/dist/runs/task-rights.js +13 -58
- package/dist/runs/task-rights.js.map +1 -1
- package/dist/server/run-checkout.js +0 -4
- package/dist/server/run-checkout.js.map +1 -1
- package/dist/server/server.d.ts +430 -424
- package/dist/server/server.js +35 -5
- package/dist/server/server.js.map +1 -1
- package/dist/workflows/completion-policy.d.ts +1 -7
- package/dist/workflows/completion-policy.js +3 -13
- package/dist/workflows/completion-policy.js.map +1 -1
- package/dist/workflows/continuation-admission.d.ts +1 -2
- package/dist/workflows/continuation-admission.js +0 -6
- package/dist/workflows/continuation-admission.js.map +1 -1
- package/dist/workflows/question-routing.d.ts +0 -2
- package/dist/workflows/question-routing.js +0 -7
- package/dist/workflows/question-routing.js.map +1 -1
- package/dist/workflows/run/completion-gate.d.ts +0 -3
- package/dist/workflows/run/completion-gate.js +7 -12
- package/dist/workflows/run/completion-gate.js.map +1 -1
- package/dist/workflows/run/family-reconciler.d.ts +8 -13
- package/dist/workflows/run/family-reconciler.js +17 -26
- package/dist/workflows/run/family-reconciler.js.map +1 -1
- package/dist/workflows/run/run-cancel.d.ts +1 -2
- package/dist/workflows/run/run-cancel.js +3 -5
- package/dist/workflows/run/run-cancel.js.map +1 -1
- package/dist/workflows/run/run-finish.js +6 -4
- package/dist/workflows/run/run-finish.js.map +1 -1
- package/dist/workflows/run/run-recovery.js +0 -10
- package/dist/workflows/run/run-recovery.js.map +1 -1
- package/dist/workflows/run/run-workspace.js +2 -3
- package/dist/workflows/run/run-workspace.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +1 -2
- package/dist/workflows/run/wait-engine.js +1 -2
- package/dist/workflows/run/wait-engine.js.map +1 -1
- package/dist/workflows/run/wait-registry.d.ts +1 -4
- package/dist/workflows/run/wait-registry.js +3 -12
- package/dist/workflows/run/wait-registry.js.map +1 -1
- package/dist/workflows/run/worker-questions.d.ts +3 -11
- package/dist/workflows/run/worker-questions.js +18 -38
- 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-BjRSOxuh.js → activity-motion-CP1uMAhc.js} +1 -1
- package/web/dist/assets/{activity-route-CG_suLmL.js → activity-route-DeU2Kbwd.js} +1 -1
- package/web/dist/assets/{agent-accounts-DaF-ybaB.js → agent-accounts-B5mlyHu6.js} +1 -1
- package/web/dist/assets/attention-KWONtkLe.js +1 -0
- package/web/dist/assets/{commit-diff-panel-DvSOi3Dk.js → commit-diff-panel-BZUB5Z1f.js} +1 -1
- package/web/dist/assets/{diff-DhcQus9M.js → diff-BrHuVh8o.js} +2 -2
- package/web/dist/assets/{diff-view-DiuMMFWa.js → diff-view-CedKSSPs.js} +1 -1
- package/web/dist/assets/{file-preview-CZoDjpW4.js → file-preview-Be5LTCAp.js} +1 -1
- package/web/dist/assets/{git-toolbar-CA-ZwUuj.js → git-toolbar-DVuQmXZy.js} +1 -1
- package/web/dist/assets/{github-Dita6Kp5.js → github-DN_dnIH-.js} +1 -1
- package/web/dist/assets/{global-activity-route-DksHUiPz.js → global-activity-route-LJCoq_eu.js} +1 -1
- package/web/dist/assets/{index-D59vfFuq.js → index-BSkJHRdF.js} +9 -9
- package/web/dist/assets/{markdown-B66DXw4l.js → markdown-D2-rnRmg.js} +1 -1
- package/web/dist/assets/{picker-pill-bwLTIbHM.js → picker-pill-DeXs_3wA.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-B7-FZ5DE.js → preview-pane-connected-DnLLyOv7.js} +1 -1
- package/web/dist/assets/{project-router-ewovT3Kf.js → project-router-Ca-Yys9p.js} +1 -1
- package/web/dist/assets/project-scope-context-Bq74vnQ8.js +4 -0
- package/web/dist/assets/{prompt-template-menu-BJEe-Kv2.js → prompt-template-menu-Ba29Yvb4.js} +1 -1
- package/web/dist/assets/queries-CteMqpzA.js +1 -0
- package/web/dist/assets/{reference-chip-Tj9CYsE2.js → reference-chip-CLBt6hDk.js} +1 -1
- package/web/dist/assets/{repo-git-C0MVr1i5.js → repo-git-CctMXHJm.js} +1 -1
- package/web/dist/assets/{report-reader-BW21aq_k.js → report-reader-D4rRCdx8.js} +1 -1
- package/web/dist/assets/{reports-DWXaed-t.js → reports-CYFYZ4j8.js} +1 -1
- package/web/dist/assets/run-header-y5q0tNyC.js +2 -0
- package/web/dist/assets/{skills-CZq8WNx7.js → skills-C_fXdjTf.js} +1 -1
- package/web/dist/assets/{tab-link-D4l87fgz.js → tab-link-CEKTsBqM.js} +1 -1
- package/web/dist/assets/{task-changes-FumjZsw6.js → task-changes-_iq_dPMh.js} +1 -1
- package/web/dist/assets/{task-commits-75nPVeL3.js → task-commits-ttgZYzlA.js} +1 -1
- package/web/dist/assets/{task-files-CdhoQGlN.js → task-files-BB2K7_8M.js} +1 -1
- package/web/dist/assets/{task-github-item-1IbcFtr-.js → task-github-item-BAR2_YLS.js} +1 -1
- package/web/dist/assets/task-thread-CWv3VJj0.js +9 -0
- package/web/dist/assets/{thread-state-Bfb8orUP.js → thread-state-DMd4D69h.js} +1 -1
- package/web/dist/assets/{use-desktop-DJrxV0gM.js → use-desktop-BjYpWIqI.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-bZUXClR3.js → use-hand-to-agent-state-CALyzrgv.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-Bbi75-bb.js → useInfiniteQuery-GJoCV7zM.js} +1 -1
- package/web/dist/assets/useQuery-B9tMLxA1.js +1 -0
- package/web/dist/assets/{workflows-gbQKlO53.js → workflows-DnIdj5zW.js} +2 -2
- package/web/dist/assets/{ws-BRHd49V3.js → ws-D7DpYPkk.js} +1 -1
- package/web/dist/index.html +13 -13
- package/dist/runs/supervised.d.ts +0 -21
- package/dist/runs/supervised.js +0 -28
- package/dist/runs/supervised.js.map +0 -1
- package/dist/server/run-relationships.d.ts +0 -14
- package/dist/server/run-relationships.js +0 -47
- package/dist/server/run-relationships.js.map +0 -1
- package/web/dist/assets/attention-DtccMSEl.js +0 -1
- package/web/dist/assets/project-scope-context-CdJF4Chv.js +0 -4
- package/web/dist/assets/queries-DEhoSzZx.js +0 -1
- package/web/dist/assets/run-header-LMdC07au.js +0 -2
- package/web/dist/assets/task-thread-9Q-PLOFf.js +0 -9
- package/web/dist/assets/useQuery-is45BI1J.js +0 -1
|
@@ -23,15 +23,10 @@ export type TaskGrants = {
|
|
|
23
23
|
readonly spawn: SpawnGrant | undefined;
|
|
24
24
|
/** The operations the task may apply to workers it supervises. */
|
|
25
25
|
readonly operate: readonly WorkerOperation[];
|
|
26
|
-
/** The operations the task may apply to every worker whose receipt its own family record holds,
|
|
27
|
-
* whoever supervises that worker. */
|
|
28
|
-
readonly operateFamily: readonly WorkerOperation[];
|
|
29
26
|
/** The relations the task may use to send a message. */
|
|
30
27
|
readonly message: readonly TaskRelation[];
|
|
31
28
|
};
|
|
32
|
-
/** What
|
|
33
|
-
* not store. A record always stores `operate` (its `permissions`); a worker's `spawn` is the one
|
|
34
|
-
* its supervisor's grant gives it (`childSpawnGrant`), never this default. */
|
|
29
|
+
/** What a record of each role holds when it stores no grant of its own. */
|
|
35
30
|
export declare const DEFAULT_GRANTS: Readonly<Record<'root' | 'worker', TaskGrants>>;
|
|
36
31
|
/** The grants a task holds: its stored ones, else its role's defaults. A task with no record, or
|
|
37
32
|
* a quarantined one, holds none. */
|
|
@@ -42,11 +37,8 @@ export declare function isFamilyRecord(run: RunRecord | undefined): run is Famil
|
|
|
42
37
|
/** A root task: a family record, or a top-level run with no record yet, which has not opened a
|
|
43
38
|
* delegation session yet (spec 2026-10-27-task-communication-protocol § 2). */
|
|
44
39
|
export declare function isRootTask(run: RunRecord | undefined): run is RunRecord;
|
|
45
|
-
/** The run that supervises this one
|
|
40
|
+
/** The run that supervises this one; undefined for a task nobody supervises. */
|
|
46
41
|
export declare function supervisorIdOf(run: RunRecord | undefined): string | undefined;
|
|
47
|
-
/** The task that holds the family record supervises this worker itself. A worker another worker
|
|
48
|
-
* started has no such line: its questions and notices go to the worker that started it. */
|
|
49
|
-
export declare function supervisedByFamilyRecord(run: RunRecord | undefined): boolean;
|
|
50
42
|
/** The run that holds this task's family record: a root holds its own. */
|
|
51
43
|
export declare function familyRecordIdOf(run: RunRecord | undefined): string | undefined;
|
|
52
44
|
export declare function familyRecordOf(run: RunRecord | undefined, getRun: Lookup): FamilyRecord | undefined;
|
|
@@ -58,26 +50,15 @@ export declare function conversationOf(run: RunRecord | undefined): Conversation
|
|
|
58
50
|
export declare function historyDeleting(run: RunRecord | undefined): boolean;
|
|
59
51
|
/** A task whose human pressed Finish, which has not settled yet. */
|
|
60
52
|
export declare function finishing(run: RunRecord | undefined): boolean;
|
|
61
|
-
type Receipt = RootDelegation['receipts'][number];
|
|
62
|
-
/** The task that started a receipt's worker: the one the receipt names, else the record's own task. */
|
|
63
|
-
export declare function receiptSupervisorId(family: RunRecord, receipt: Receipt): string;
|
|
64
|
-
/** The receipts of the workers `supervisorId` started, in the family record that holds them. */
|
|
65
|
-
export declare function supervisedReceipts(family: RunRecord | undefined, supervisorId: string): Receipt[];
|
|
66
53
|
/** The relation of `from` to `to`, from the two records alone. */
|
|
67
54
|
export declare function relationOf(from: RunRecord | undefined, to: RunRecord | undefined): TaskRelation | undefined;
|
|
68
55
|
export declare function holdsOperation(actor: RunRecord | undefined, operation: WorkerOperation): boolean;
|
|
69
|
-
/** `actor` supervises `target` and holds `operation
|
|
70
|
-
* `operation` for every worker of that record. */
|
|
56
|
+
/** `actor` supervises `target` and holds `operation`. */
|
|
71
57
|
export declare function mayOperate(actor: RunRecord | undefined, target: RunRecord | undefined, operation: WorkerOperation): boolean;
|
|
72
|
-
/** The receipts of the workers `actor` may inspect in `family`: the ones it started, and every one
|
|
73
|
-
* when it holds the record and inspects every worker of it. */
|
|
74
|
-
export declare function inspectableReceipts(actor: RunRecord, family: RunRecord | undefined): Receipt[];
|
|
75
58
|
/** `actor` holds `spawn` and a spawn grant for `kind`; with no kind, for any kind. */
|
|
76
59
|
export declare function maySpawn(actor: RunRecord | undefined, kind?: WorkerWorkspace['kind']): boolean;
|
|
77
60
|
/** `actor`'s own limit: `outstanding` counts the workers it supervises that hold a slot. */
|
|
78
61
|
export declare function hasSpawnRoom(actor: RunRecord | undefined, outstanding: number): boolean;
|
|
79
|
-
/** The first kind `actor`'s spawn grant allows: what a spawn that names no kind plans. */
|
|
80
|
-
export declare function defaultSpawnKind(actor: RunRecord | undefined): WorkerWorkspace['kind'] | undefined;
|
|
81
62
|
/**
|
|
82
63
|
* The relation `from` may use to message `to`, or undefined. The message grant of `from` holds the
|
|
83
64
|
* relation, neither task's family record is deleting its history, and a supervised worker has a
|
package/dist/runs/task-rights.js
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { workerOperationSchema } from '../contract/index.js';
|
|
2
|
-
const NO_GRANTS = { spawn: undefined, operate: [],
|
|
3
|
-
/** What
|
|
4
|
-
* not store. A record always stores `operate` (its `permissions`); a worker's `spawn` is the one
|
|
5
|
-
* its supervisor's grant gives it (`childSpawnGrant`), never this default. */
|
|
2
|
+
const NO_GRANTS = { spawn: undefined, operate: [], message: [] };
|
|
3
|
+
/** What a record of each role holds when it stores no grant of its own. */
|
|
6
4
|
export const DEFAULT_GRANTS = {
|
|
7
|
-
root: {
|
|
8
|
-
|
|
9
|
-
operate: workerOperationSchema.options, operateFamily: ['inspect', 'wait', 'stop', 'destroy'], message: ['supervised', 'peer'],
|
|
10
|
-
},
|
|
11
|
-
worker: { spawn: undefined, operate: workerOperationSchema.options, operateFamily: [], message: ['supervisor', 'supervised'] },
|
|
5
|
+
root: { spawn: { kinds: ['owned-isolated', 'shared'], live: 32 }, operate: workerOperationSchema.options, message: ['supervised', 'peer'] },
|
|
6
|
+
worker: { spawn: undefined, operate: [], message: ['supervisor', 'supervised'] },
|
|
12
7
|
};
|
|
13
8
|
/** The grants a task holds: its stored ones, else its role's defaults. A task with no record, or
|
|
14
9
|
* a quarantined one, holds none. */
|
|
@@ -17,7 +12,7 @@ export function grantsOf(run) {
|
|
|
17
12
|
if (!record || record.role === 'invalid')
|
|
18
13
|
return NO_GRANTS;
|
|
19
14
|
const defaults = DEFAULT_GRANTS[record.role];
|
|
20
|
-
return { spawn: record.spawnGrant ?? defaults.spawn, operate: record.permissions,
|
|
15
|
+
return { spawn: record.spawnGrant ?? defaults.spawn, operate: record.permissions, message: defaults.message };
|
|
21
16
|
}
|
|
22
17
|
/** The spawn grant a worker of `parent` gets at its creation. */
|
|
23
18
|
export function childSpawnGrant(parent) {
|
|
@@ -31,14 +26,9 @@ export function isFamilyRecord(run) {
|
|
|
31
26
|
export function isRootTask(run) {
|
|
32
27
|
return !!run && (run.delegation === undefined || isFamilyRecord(run));
|
|
33
28
|
}
|
|
34
|
-
/** The run that supervises this one
|
|
29
|
+
/** The run that supervises this one; undefined for a task nobody supervises. */
|
|
35
30
|
export function supervisorIdOf(run) {
|
|
36
|
-
return run?.delegation?.role === 'worker' ? run.delegation.
|
|
37
|
-
}
|
|
38
|
-
/** The task that holds the family record supervises this worker itself. A worker another worker
|
|
39
|
-
* started has no such line: its questions and notices go to the worker that started it. */
|
|
40
|
-
export function supervisedByFamilyRecord(run) {
|
|
41
|
-
return run?.delegation?.role === 'worker' && supervisorIdOf(run) === run.delegation.parentRunId;
|
|
31
|
+
return run?.delegation?.role === 'worker' ? run.delegation.parentRunId : undefined;
|
|
42
32
|
}
|
|
43
33
|
/** The run that holds this task's family record: a root holds its own. */
|
|
44
34
|
export function familyRecordIdOf(run) {
|
|
@@ -69,27 +59,9 @@ export function historyDeleting(run) {
|
|
|
69
59
|
export function finishing(run) {
|
|
70
60
|
return isFamilyRecord(run) && !!run.delegation.finishRequestedAt;
|
|
71
61
|
}
|
|
72
|
-
/** The task that started a receipt's worker: the one the receipt names, else the record's own task. */
|
|
73
|
-
export function receiptSupervisorId(family, receipt) {
|
|
74
|
-
return receipt.supervisorRunId ?? family.id;
|
|
75
|
-
}
|
|
76
|
-
/** The receipts of the workers `supervisorId` started, in the family record that holds them. */
|
|
77
|
-
export function supervisedReceipts(family, supervisorId) {
|
|
78
|
-
return family ? receiptsOf(family).filter(receipt => receiptSupervisorId(family, receipt) === supervisorId) : [];
|
|
79
|
-
}
|
|
80
|
-
function ownsItsRecord(worker) {
|
|
81
|
-
return worker.delegation?.role === 'worker' && worker.delegation.workspace?.ownerRunId === worker.id;
|
|
82
|
-
}
|
|
83
|
-
/** `supervisor` started `worker`, and both belong to one family. */
|
|
84
62
|
function supervises(supervisor, worker) {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
const family = worker.delegation.parentRunId;
|
|
88
|
-
return supervisor.id === family || familyRecordIdOf(supervisor) === family;
|
|
89
|
-
}
|
|
90
|
-
/** `actor` holds the family record that holds `worker`'s receipt. */
|
|
91
|
-
function holdsFamilyRecordOf(actor, worker) {
|
|
92
|
-
return isFamilyRecord(actor) && ownsItsRecord(worker) && worker.delegation.parentRunId === actor.id;
|
|
63
|
+
return supervisorIdOf(worker) === supervisor.id && worker.delegation?.role === 'worker' &&
|
|
64
|
+
worker.delegation.workspace?.ownerRunId === worker.id;
|
|
93
65
|
}
|
|
94
66
|
/** The relation of `from` to `to`, from the two records alone. */
|
|
95
67
|
export function relationOf(from, to) {
|
|
@@ -104,22 +76,9 @@ export function relationOf(from, to) {
|
|
|
104
76
|
export function holdsOperation(actor, operation) {
|
|
105
77
|
return grantsOf(actor).operate.includes(operation);
|
|
106
78
|
}
|
|
107
|
-
/** `actor` supervises `target` and holds `operation
|
|
108
|
-
* `operation` for every worker of that record. */
|
|
79
|
+
/** `actor` supervises `target` and holds `operation`. */
|
|
109
80
|
export function mayOperate(actor, target, operation) {
|
|
110
|
-
|
|
111
|
-
return false;
|
|
112
|
-
const grants = grantsOf(actor);
|
|
113
|
-
return (grants.operate.includes(operation) && supervises(actor, target)) ||
|
|
114
|
-
(grants.operateFamily.includes(operation) && holdsFamilyRecordOf(actor, target));
|
|
115
|
-
}
|
|
116
|
-
/** The receipts of the workers `actor` may inspect in `family`: the ones it started, and every one
|
|
117
|
-
* when it holds the record and inspects every worker of it. */
|
|
118
|
-
export function inspectableReceipts(actor, family) {
|
|
119
|
-
if (!family)
|
|
120
|
-
return [];
|
|
121
|
-
const whole = family.id === actor.id && grantsOf(actor).operateFamily.includes('inspect');
|
|
122
|
-
return receiptsOf(family).filter(receipt => whole || receiptSupervisorId(family, receipt) === actor.id);
|
|
81
|
+
return relationOf(actor, target) === 'supervised' && holdsOperation(actor, operation);
|
|
123
82
|
}
|
|
124
83
|
/** `actor` holds `spawn` and a spawn grant for `kind`; with no kind, for any kind. */
|
|
125
84
|
export function maySpawn(actor, kind) {
|
|
@@ -130,10 +89,6 @@ export function maySpawn(actor, kind) {
|
|
|
130
89
|
export function hasSpawnRoom(actor, outstanding) {
|
|
131
90
|
return outstanding < (grantsOf(actor).spawn?.live ?? 0);
|
|
132
91
|
}
|
|
133
|
-
/** The first kind `actor`'s spawn grant allows: what a spawn that names no kind plans. */
|
|
134
|
-
export function defaultSpawnKind(actor) {
|
|
135
|
-
return grantsOf(actor).spawn?.kinds[0];
|
|
136
|
-
}
|
|
137
92
|
/**
|
|
138
93
|
* The relation `from` may use to message `to`, or undefined. The message grant of `from` holds the
|
|
139
94
|
* relation, neither task's family record is deleting its history, and a supervised worker has a
|
|
@@ -147,7 +102,7 @@ export function messageRelation(from, to, getRun) {
|
|
|
147
102
|
return undefined;
|
|
148
103
|
if (relation === 'peer')
|
|
149
104
|
return relation;
|
|
150
|
-
const
|
|
151
|
-
return
|
|
105
|
+
const worker = relation === 'supervised' ? to : from;
|
|
106
|
+
return receiptsOf(familyRecordOf(worker, getRun)).some(receipt => receipt.workerId === worker.id && !receipt.deletion) ? relation : undefined;
|
|
152
107
|
}
|
|
153
108
|
//# sourceMappingURL=task-rights.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-rights.js","sourceRoot":"","sources":["../../src/runs/task-rights.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAyC,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"task-rights.js","sourceRoot":"","sources":["../../src/runs/task-rights.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAyC,MAAM,yCAAyC,CAAC;AAyBvH,MAAM,SAAS,GAAe,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC7E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,cAAc,GAAoD;IAC7E,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,gBAAgB,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC,EAAE;IAC3I,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,C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js';
|
|
5
5
|
import { rematerializeReclaimedWorktree } from '../runs/retention.js';
|
|
6
6
|
import { hostsLiveSharedWorker, SHARED_HOST_REFUSAL } from '../runs/shared-hosts.js';
|
|
7
|
-
import { supervisedWorkers } from '../runs/supervised.js';
|
|
8
7
|
import { getStatus } from './git.js';
|
|
9
8
|
import { existsSync } from 'node:fs';
|
|
10
9
|
import { autosaveCleanupBlocker } from '../autosave-cleanup.js';
|
|
@@ -117,9 +116,6 @@ function removalRefusal(store, run, id, deletion) {
|
|
|
117
116
|
}
|
|
118
117
|
else {
|
|
119
118
|
// Delete cleans up after itself: worktree + branch go with the run (spec 006).
|
|
120
|
-
const started = supervisedWorkers(store, run).map(worker => worker.id);
|
|
121
|
-
if (run.delegation?.role === 'worker' && started.length)
|
|
122
|
-
return `this worker started workers whose history still exists — delete their history first: ${started.join(', ')}`;
|
|
123
119
|
if (!store.canDeleteRun(id))
|
|
124
120
|
return 'owned resources require verified worker cleanup and explicit child history deletion first';
|
|
125
121
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-checkout.js","sourceRoot":"","sources":["../../src/server/run-checkout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"run-checkout.js","sourceRoot":"","sources":["../../src/server/run-checkout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC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