@hearsay-tools/squawk 0.18.0-pr4338.8441 → 0.18.0-pr4339.8450
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/automations/tools.d.ts +8 -8
- package/dist/autosave-cleanup.js +2 -1
- package/dist/autosave-cleanup.js.map +1 -1
- package/dist/built-in-cli-commands.js +0 -4
- package/dist/built-in-cli-commands.js.map +1 -1
- package/dist/built-in-launch-parts.d.ts +0 -2
- package/dist/built-in-launch-parts.js +1 -8
- package/dist/built-in-launch-parts.js.map +1 -1
- package/dist/built-in-run-slots.js +1 -2
- package/dist/built-in-run-slots.js.map +1 -1
- package/dist/ci-wait/tool-catalog.d.ts +2 -1
- package/dist/ci-wait/tool-catalog.js +22 -16
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/core/cli-registry.d.ts +3 -0
- package/dist/core/cli-registry.js +3 -0
- package/dist/core/cli-registry.js.map +1 -1
- package/dist/core/process-ownership.d.ts +12 -0
- package/dist/core/process-ownership.js +33 -0
- package/dist/core/process-ownership.js.map +1 -0
- package/dist/delegation/process-liveness.d.ts +6 -3
- package/dist/delegation/process-liveness.js +0 -16
- package/dist/delegation/process-liveness.js.map +1 -1
- package/dist/delegation/scratch-cleanup.js +5 -5
- package/dist/delegation/scratch-cleanup.js.map +1 -1
- package/dist/delegation/transport.d.ts +10 -10
- package/dist/{jobs → features/jobs}/cli.js +1 -1
- package/dist/features/jobs/cli.js.map +1 -0
- package/dist/{jobs → features/jobs}/command.js +2 -2
- package/dist/features/jobs/command.js.map +1 -0
- package/dist/features/jobs/index.d.ts +11 -0
- package/dist/features/jobs/index.js +20 -0
- package/dist/features/jobs/index.js.map +1 -0
- package/dist/{jobs → features/jobs}/job.js +9 -10
- package/dist/features/jobs/job.js.map +1 -0
- package/dist/features/jobs/removal-slot.d.ts +14 -0
- package/dist/features/jobs/removal-slot.js +50 -0
- package/dist/features/jobs/removal-slot.js.map +1 -0
- package/dist/legacy-runs.js.map +1 -1
- package/dist/pack-check.d.ts +4 -1
- package/dist/pack-check.js +9 -1
- package/dist/pack-check.js.map +1 -1
- package/dist/plugin/index.d.ts +1 -1
- package/dist/runners/claude/claude-cli-runner.d.ts +2 -0
- package/dist/runners/claude/claude-cli-runner.js +6 -1
- package/dist/runners/claude/claude-cli-runner.js.map +1 -1
- package/dist/runners/claude/claude-partial-messages.d.ts +32 -0
- package/dist/runners/claude/claude-partial-messages.js +129 -0
- package/dist/runners/claude/claude-partial-messages.js.map +1 -0
- package/dist/runners/claude/claude-stream.d.ts +1 -0
- package/dist/runners/claude/claude-stream.js +32 -1
- package/dist/runners/claude/claude-stream.js.map +1 -1
- package/dist/runners/claude/claude-ui-mapper.d.ts +2 -1
- package/dist/runners/claude/claude-ui-mapper.js +14 -2
- package/dist/runners/claude/claude-ui-mapper.js.map +1 -1
- package/dist/runs/agent-tmpdir.d.ts +5 -4
- package/dist/runs/agent-tmpdir.js +7 -5
- package/dist/runs/agent-tmpdir.js.map +1 -1
- package/dist/runs/removal-slots.d.ts +15 -3
- package/dist/runs/removal-slots.js +12 -2
- package/dist/runs/removal-slots.js.map +1 -1
- package/dist/runs/run-exits.d.ts +352 -352
- package/dist/runs/worker-execution.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/models-routes.d.ts +12 -12
- package/dist/server/providers-routes.d.ts +57 -57
- package/dist/server/repo-routes.d.ts +34 -34
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/server.d.ts +126 -126
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/server/workspace-routes.d.ts +84 -84
- package/dist/worker-scope/groups.d.ts +0 -9
- package/dist/worker-scope/groups.js +3 -18
- package/dist/worker-scope/groups.js.map +1 -1
- package/dist/workflows/input-acknowledgement.d.ts +24 -24
- package/dist/workflows/run/run-settlement.d.ts +0 -10
- package/dist/workflows/run/run-settlement.js +5 -38
- package/dist/workflows/run/run-settlement.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +72 -72
- package/dist/workflows/run/wait-input-descriptors.js +11 -2
- package/dist/workflows/run/wait-input-descriptors.js.map +1 -1
- package/dist/workflows/run/wait-kinds.d.ts +52 -52
- package/package.json +4 -4
- package/scripts/check-pack.mjs +5 -2
- package/web/dist/assets/{accounts-section-DN0FBK_g.js → accounts-section-COnLhVcc.js} +1 -1
- package/web/dist/assets/{activity-motion-f8hpl5Ze.js → activity-motion-BepAhXl7.js} +1 -1
- package/web/dist/assets/{activity-route-Wg282MWR.js → activity-route-BAGYVlk1.js} +1 -1
- package/web/dist/assets/{agent-config-section-DYBoyQjx.js → agent-config-section-D3eY8kW2.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-DvKhfLah.js → agent-defaults-section-BxIztnP5.js} +1 -1
- package/web/dist/assets/{appearance-bxy5kq6O.js → appearance-Bbmz3RPP.js} +1 -1
- package/web/dist/assets/{automations-route-CfkpBhz1.js → automations-route-vO4VXsmB.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-Gb9038QD.js → commit-diff-panel-CR9lCdYd.js} +1 -1
- package/web/dist/assets/{diff-f_-bSIKM.js → diff-BUihlcHW.js} +2 -2
- package/web/dist/assets/{diff-view-X6OteUc2.js → diff-view-Dy1iZUpI.js} +1 -1
- package/web/dist/assets/{file-preview-badfok9-.js → file-preview-Cq_WJ308.js} +1 -1
- package/web/dist/assets/{git-toolbar-DN0_Mq8X.js → git-toolbar-CUQ8veXw.js} +1 -1
- package/web/dist/assets/{github-CkzNHNBP.js → github-ClGhwLM1.js} +1 -1
- package/web/dist/assets/{global-activity-route-DD15s5cC.js → global-activity-route-DzdSy7Wm.js} +1 -1
- package/web/dist/assets/{index-Dedol522.js → index-8Pe4JlYM.js} +4 -4
- package/web/dist/assets/{markdown-C4Vx2p8H.js → markdown-DvutydYG.js} +1 -1
- package/web/dist/assets/{notifications-section-B-dnPl16.js → notifications-section-BAqEIyDN.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-wlT7my-5.js → preview-pane-connected-BU0pxY0y.js} +1 -1
- package/web/dist/assets/{projects-section-Cmk9b5sT.js → projects-section-DbCjlMOl.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-BKieLK_2.js → prompt-templates-section-BsAYf057.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-CX1Fz0Rm.js → remote-settings-notice-Buq1mILf.js} +1 -1
- package/web/dist/assets/{repo-git-DPYA8VnX.js → repo-git-P8s3o1t9.js} +1 -1
- package/web/dist/assets/{report-reader-BYc3i5OQ.js → report-reader-BGHRGd46.js} +1 -1
- package/web/dist/assets/{reports-DtAmI1Ei.js → reports-D-IUJk8n.js} +1 -1
- package/web/dist/assets/{resources-section-Dje_gDYP.js → resources-section-CIF3uOPg.js} +1 -1
- package/web/dist/assets/{run-header-3nM40dop.js → run-header-x8ZoTs8l.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-BxH3NSsW.js → settings-agent-picker-D7x87Fza.js} +1 -1
- package/web/dist/assets/{settings-shell-UvqivQaP.js → settings-shell-CdsAJa6b.js} +1 -1
- package/web/dist/assets/{sidebar-section-BQ3vF2oy.js → sidebar-section-2j1dPZW-.js} +1 -1
- package/web/dist/assets/{skills-Dh0FFNiL.js → skills-BZQKuRIK.js} +1 -1
- package/web/dist/assets/{task-changes-DIGOC-vV.js → task-changes-CMCstWbh.js} +1 -1
- package/web/dist/assets/{task-commits-BI8NVi-K.js → task-commits-De5jDVRc.js} +1 -1
- package/web/dist/assets/{task-files-DS7fsOMA.js → task-files-BTaS-k-o.js} +1 -1
- package/web/dist/assets/{task-github-item-BBWTgTX0.js → task-github-item-Da-J1yOO.js} +1 -1
- package/web/dist/assets/{task-thread-CGszK8tw.js → task-thread-A2rldNuS.js} +1 -1
- package/web/dist/assets/{thread-state-BpGQxoQF.js → thread-state-q7EKE8NY.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-Bs7tQKKt.js → use-hand-to-agent-state-V15iu0Vf.js} +1 -1
- package/web/dist/assets/{workflows-CUMw82nv.js → workflows-BWde25JO.js} +1 -1
- package/web/dist/assets/{workspace-tools-DKpPyGmZ.js → workspace-tools-BSJXB55E.js} +1 -1
- package/web/dist/assets/{worktrees-section-D-Ga83TD.js → worktrees-section-DWfvhcFw.js} +1 -1
- package/web/dist/index.html +1 -1
- package/dist/jobs/cli.js.map +0 -1
- package/dist/jobs/command.js.map +0 -1
- package/dist/jobs/job.js.map +0 -1
- package/dist/jobs/removal-slot.d.ts +0 -4
- package/dist/jobs/removal-slot.js +0 -10
- package/dist/jobs/removal-slot.js.map +0 -1
- /package/dist/{jobs → features/jobs}/cli.d.ts +0 -0
- /package/dist/{jobs → features/jobs}/command.d.ts +0 -0
- /package/dist/{jobs → features/jobs}/job.d.ts +0 -0
|
@@ -14,11 +14,21 @@ import type { RunRecord } from './store.ts';
|
|
|
14
14
|
* directory of an archived family member, or the agent tmp directory (scratch) of a run that ended
|
|
15
15
|
* or of an orphan the startup sweep found. */
|
|
16
16
|
export type DeletionKind = 'history' | 'worktree' | 'archive-tmp' | 'scratch';
|
|
17
|
+
/** What the run-end scratch reap knows about the run it reaps. Other paths pass none. */
|
|
18
|
+
export interface DeletionGateContext {
|
|
19
|
+
/** The end this reap follows; a Continue clears it and the next end sets a new one. */
|
|
20
|
+
readonly finishedAt?: string | undefined;
|
|
21
|
+
readonly archived?: boolean | undefined;
|
|
22
|
+
}
|
|
17
23
|
/** Refuses a deletion while the feature still needs what it removes. */
|
|
18
24
|
export interface DeletionGate {
|
|
19
25
|
readonly name: string;
|
|
20
|
-
/** A reason refuses the deletion; undefined lets it go ahead. `dataDir` is the run's data dir.
|
|
21
|
-
|
|
26
|
+
/** A reason refuses the deletion; undefined lets it go ahead. `dataDir` is the run's data dir.
|
|
27
|
+
* `context` comes only from the scratch reap at a run's end. */
|
|
28
|
+
refuse(runId: string, kind: DeletionKind, dataDir: string, context?: DeletionGateContext): string | undefined;
|
|
29
|
+
/** A reason refuses removing a scratch directory that belongs to no known run (an orphan the
|
|
30
|
+
* startup sweep found); undefined lets it go ahead. */
|
|
31
|
+
refuseDirectory?(dir: string, kind: 'scratch'): string | undefined;
|
|
22
32
|
}
|
|
23
33
|
/** The store topics a reclaim preparation reads and commits to. */
|
|
24
34
|
export interface ReclaimStore {
|
|
@@ -59,7 +69,9 @@ export declare function runSlotsSealed(): boolean;
|
|
|
59
69
|
/** Throws unless the registry is sealed. A removal path calls it before its first side effect. */
|
|
60
70
|
export declare function assertRunSlotsSealed(): void;
|
|
61
71
|
/** The first gate's reason to refuse this deletion, in registration order. */
|
|
62
|
-
export declare function deletionRefusal(runId: string, kind: DeletionKind, dataDir: string): string | undefined;
|
|
72
|
+
export declare function deletionRefusal(runId: string, kind: DeletionKind, dataDir: string, context?: DeletionGateContext): string | undefined;
|
|
73
|
+
/** The first gate's reason to keep this un-keyed scratch directory, in registration order. */
|
|
74
|
+
export declare function directoryDeletionRefusal(dir: string, kind: 'scratch'): string | undefined;
|
|
63
75
|
/** Run every preparation in registration order; the first rejection stops the rest. */
|
|
64
76
|
export declare function prepareReclaim(run: RunRecord, context: ReclaimContext): Promise<void>;
|
|
65
77
|
/** Run every cleanup in registration order, then throw the first failure. */
|
|
@@ -49,10 +49,20 @@ export function assertRunSlotsSealed() {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
/** The first gate's reason to refuse this deletion, in registration order. */
|
|
52
|
-
export function deletionRefusal(runId, kind, dataDir) {
|
|
52
|
+
export function deletionRefusal(runId, kind, dataDir, context) {
|
|
53
53
|
assertRunSlotsSealed();
|
|
54
54
|
for (const gate of gates.values()) {
|
|
55
|
-
const reason = gate.refuse(runId, kind, dataDir);
|
|
55
|
+
const reason = gate.refuse(runId, kind, dataDir, context);
|
|
56
|
+
if (reason)
|
|
57
|
+
return reason;
|
|
58
|
+
}
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
/** The first gate's reason to keep this un-keyed scratch directory, in registration order. */
|
|
62
|
+
export function directoryDeletionRefusal(dir, kind) {
|
|
63
|
+
assertRunSlotsSealed();
|
|
64
|
+
for (const gate of gates.values()) {
|
|
65
|
+
const reason = gate.refuseDirectory?.(dir, kind);
|
|
56
66
|
if (reason)
|
|
57
67
|
return reason;
|
|
58
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removal-slots.js","sourceRoot":"","sources":["../../src/runs/removal-slots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"removal-slots.js","sourceRoot":"","sources":["../../src/runs/removal-slots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAuEzD,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,6DAA6D,EAAE,CAAC;AACvH,MAAM,KAAK,GAAG,kBAAkB,CAAe,OAAO,CAAC,CAAC;AACxD,MAAM,YAAY,GAAG,kBAAkB,CAAqB,OAAO,CAAC,CAAC;AACrE,MAAM,QAAQ,GAAG,kBAAkB,CAAiB,OAAO,CAAC,CAAC;AAE7D,SAAS,YAAY,CAAI,QAAqC,EAAE,IAAO;IACrE,IAAI,CAAC;QAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAAC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAC9C,IAAI,cAAc,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC,CAAC;QAClH,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,yBAAyB,CAAC,KAAe;IACvD,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,KAAK,IAAI,EAAE;QAAE,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACxD,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,YAAY,IAAI,EAAE;QAAE,YAAY,CAAC,KAAK,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