pi-spine 1.0.2 → 1.2.0
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/README.md +61 -489
- package/bin/get-version.mjs +1 -13
- package/bin/spine-batch.mjs +162 -51
- package/bin/spine-cli/batch.mjs +3 -3
- package/bin/spine-cli/lane-logs.mjs +24 -0
- package/bin/spine-cli/scenarios.mjs +298 -0
- package/bin/spine-cli/wait.mjs +30 -0
- package/bin/spine-cli/watch.mjs +27 -0
- package/bin/spine-config.mjs +1 -212
- package/bin/spine-doctor.mjs +2 -418
- package/bin/spine-init.mjs +1 -398
- package/bin/spine-issue.mjs +196 -0
- package/bin/spine-journal.mjs +1 -0
- package/bin/spine-preflight.mjs +1 -700
- package/bin/spine-review-step.mjs +6 -4
- package/bin/spine-run.mjs +30 -0
- package/bin/spine-status.mjs +19 -1
- package/bin/spine-tasks.mjs +112 -13
- package/bin/spine-worker-runner.mjs +24 -14
- package/bin/spine.mjs +52 -2
- package/extensions/spine/worker-tools.ts +14 -12
- package/package.json +5 -2
- package/skills/create-spine-tasks/SKILL.md +135 -6
- package/skills/create-spine-tasks/references/clarify-template.md +73 -0
- package/skills/create-spine-tasks/references/contract-template.md +19 -0
- package/skills/create-spine-tasks/references/prompt-template.md +2 -0
- package/skills/create-spine-tasks/references/requirements-checklist-template.md +94 -0
- package/src/batch/abort.mjs +3 -12
- package/src/batch/agent-session-worker.mjs +45 -5
- package/src/batch/attached-engine-handoff.mjs +188 -0
- package/src/batch/attached-runner.mjs +312 -0
- package/src/batch/contract-prelanded.mjs +180 -0
- package/src/batch/contract-verify.mjs +140 -2
- package/src/batch/detached-start.mjs +105 -7
- package/src/batch/diagnosis-alternatives.mjs +46 -0
- package/src/batch/diagnosis-merge-failure.mjs +79 -0
- package/src/batch/diagnosis-retry-limbo.mjs +34 -0
- package/src/batch/diagnosis-stub.mjs +109 -0
- package/src/batch/diagnosis-task-done.mjs +110 -0
- package/src/batch/diagnosis-worker-done-missing.mjs +96 -0
- package/src/batch/diagnosis.mjs +174 -62
- package/src/batch/engine-lanes/merge.mjs +168 -77
- package/src/batch/engine-lanes/queue.mjs +4 -1
- package/src/batch/engine-lanes/review.mjs +32 -74
- package/src/batch/engine-lanes/watch.mjs +29 -0
- package/src/batch/engine-lanes.mjs +1 -0
- package/src/batch/engine-scope.mjs +42 -5
- package/src/batch/engine.mjs +115 -68
- package/src/batch/evidence.mjs +81 -17
- package/src/batch/gate.mjs +46 -17
- package/src/batch/git-helpers.mjs +96 -0
- package/src/batch/heartbeat.mjs +73 -7
- package/src/batch/integrate.mjs +3 -5
- package/src/batch/journal.mjs +25 -0
- package/src/batch/lane-commit.mjs +90 -5
- package/src/batch/lifecycle.mjs +131 -4
- package/src/batch/macro-phase.mjs +226 -0
- package/src/batch/merge/adoption-doc-merge.mjs +243 -0
- package/src/batch/merge/wave-merge-state.mjs +108 -0
- package/src/batch/metrics.mjs +74 -5
- package/src/batch/orphan-detect.mjs +74 -0
- package/src/batch/pause.mjs +223 -0
- package/src/batch/post-merge-limbo.mjs +345 -17
- package/src/batch/reconcile.mjs +473 -50
- package/src/batch/resume-common.mjs +6 -2
- package/src/batch/resume-engine.mjs +58 -1
- package/src/batch/resume-lane-reviews.mjs +16 -0
- package/src/batch/resume-multi-lanes.mjs +56 -1
- package/src/batch/resume-multi-validate.mjs +148 -8
- package/src/batch/resume-multi.mjs +45 -44
- package/src/batch/resume.mjs +64 -47
- package/src/batch/retry.mjs +56 -5
- package/src/batch/review-shared.mjs +196 -0
- package/src/batch/review-spawn.mjs +326 -0
- package/src/batch/review.mjs +178 -212
- package/src/batch/rules-manifest-drift.mjs +157 -0
- package/src/batch/salvage.mjs +2 -1
- package/src/batch/sequence.mjs +454 -0
- package/src/batch/state.mjs +18 -3
- package/src/batch/status-json.mjs +67 -0
- package/src/batch/task-stall-budget.mjs +94 -10
- package/src/batch/worker-host.mjs +185 -37
- package/src/batch/worker-output.mjs +196 -3
- package/src/batch/worktree.mjs +10 -0
- package/src/cli/handoff.mjs +1 -1
- package/src/cli/issue-draft.mjs +180 -0
- package/src/cli/journal-follow.mjs +239 -0
- package/src/cli/lane-logs.mjs +291 -0
- package/src/cli/rules.mjs +1 -1
- package/src/cli/sequence.mjs +108 -0
- package/src/cli/settings-set.mjs +3 -22
- package/src/cli/settings-slash.mjs +27 -5
- package/src/cli/wait.mjs +187 -0
- package/src/cli/watch.mjs +160 -0
- package/src/config/agent-model-resolve.mjs +48 -0
- package/src/config/cursor-rules/discover.mjs +3 -21
- package/src/config/defaults.mjs +7 -1
- package/src/config/settings-fields.mjs +48 -0
- package/src/config/spine-config-load.mjs +221 -0
- package/src/config/spine-init-constants.mjs +424 -0
- package/src/config/spine-preflight-lib.mjs +1180 -0
- package/src/dashboard/lane-throughput.mjs +351 -0
- package/src/dashboard/public/dashboard.css +25 -1
- package/src/dashboard/public/dashboard.js +224 -40
- package/src/dashboard/public/index.html +15 -9
- package/src/dashboard/server.mjs +4 -0
- package/src/dashboard/snapshot.mjs +387 -6
- package/src/dashboard/view.mjs +170 -15
- package/src/doctor/agent-model-inherit.mjs +61 -6
- package/src/doctor/run-doctor-checks.mjs +483 -0
- package/src/doctor/sequence-safety.mjs +57 -0
- package/src/doctor/stale-path.mjs +22 -0
- package/src/doctor/stale-worktrees.mjs +102 -0
- package/src/fixtures/scenario-registry.mjs +194 -0
- package/src/fs/atomic-write.mjs +49 -0
- package/src/migrate/taskplane-config.mjs +1 -1
- package/src/planner/file-scope.mjs +246 -0
- package/src/planner/format-plan.mjs +9 -7
- package/src/planner/index.mjs +6 -2
- package/src/planner/pending.mjs +92 -1
- package/src/planner/wave-scope.mjs +136 -0
- package/src/planner/waves.mjs +133 -0
- package/src/tasks/analyze/index.mjs +453 -0
- package/src/tasks/packet/index.mjs +1 -0
- package/src/tasks/packet/parse-prompt.mjs +42 -1
- package/src/tasks/packet/validate-prompt.mjs +124 -0
- package/src/util/command-exists.mjs +19 -0
- package/templates/docs/constitution.md +61 -0
- package/templates/spine-config.json +9 -2
|
@@ -32,7 +32,7 @@ export function parseReviewStepArgs(argv) {
|
|
|
32
32
|
/**
|
|
33
33
|
* @param {object} options
|
|
34
34
|
*/
|
|
35
|
-
export function runSpineReviewStep(options) {
|
|
35
|
+
export async function runSpineReviewStep(options) {
|
|
36
36
|
const taskFolder = options.taskFolder ?? process.env.SPINE_TASK_FOLDER;
|
|
37
37
|
const worktreePath = options.worktreePath ?? process.env.SPINE_WORKTREE ?? process.cwd();
|
|
38
38
|
if (!taskFolder) {
|
|
@@ -63,7 +63,7 @@ export function runSpineReviewStep(options) {
|
|
|
63
63
|
|
|
64
64
|
const journal = options.journal ?? resolveBatchJournalContext();
|
|
65
65
|
|
|
66
|
-
const result = runStepReview({
|
|
66
|
+
const result = await runStepReview({
|
|
67
67
|
taskFolder,
|
|
68
68
|
worktreePath,
|
|
69
69
|
stepNumber: args.step,
|
|
@@ -91,7 +91,9 @@ export function runSpineReviewStep(options) {
|
|
|
91
91
|
} else if (result.spawnFailed) {
|
|
92
92
|
output = `REVIEW FAILED: ${result.error}\n`;
|
|
93
93
|
} else if (result.skipped) {
|
|
94
|
-
output =
|
|
94
|
+
output = result.feedback
|
|
95
|
+
? `SKIPPED: ${result.feedback}\n`
|
|
96
|
+
: "SKIPPED (review level does not require this review type)\n";
|
|
95
97
|
} else {
|
|
96
98
|
output = `${result.verdict ?? "UNKNOWN"}: ${result.feedback || ""}\n`;
|
|
97
99
|
}
|
|
@@ -118,7 +120,7 @@ function findProjectRoot(startPath) {
|
|
|
118
120
|
}
|
|
119
121
|
|
|
120
122
|
if (isCliEntrypoint(import.meta.url)) {
|
|
121
|
-
const { exitCode, output } = runSpineReviewStep({});
|
|
123
|
+
const { exitCode, output } = await runSpineReviewStep({});
|
|
122
124
|
process.stdout.write(output ?? "");
|
|
123
125
|
process.exit(exitCode);
|
|
124
126
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
|
|
4
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Route `spine run` subcommands.
|
|
8
|
+
* - `spine run sequence <scope>` — planner wave sequence (GitHub #54 Tier 2)
|
|
9
|
+
* - `spine run <scope>` — alias for `spine batch start <scope>` (TP-024)
|
|
10
|
+
*
|
|
11
|
+
* @param {object} options
|
|
12
|
+
* @param {string} options.projectRoot
|
|
13
|
+
* @param {string[]} options.args
|
|
14
|
+
*/
|
|
15
|
+
export async function runSpineRun({ projectRoot, args }) {
|
|
16
|
+
if (args[0] === "sequence") {
|
|
17
|
+
const { runSpineSequence } = await import("../src/cli/sequence.mjs");
|
|
18
|
+
return runSpineSequence({
|
|
19
|
+
projectRoot,
|
|
20
|
+
args: args.slice(1),
|
|
21
|
+
spineBin: path.join(__dirname, "spine.mjs"),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const { runSpineBatch } = await import("./spine-batch.mjs");
|
|
26
|
+
return runSpineBatch({
|
|
27
|
+
projectRoot,
|
|
28
|
+
args: ["start", ...args],
|
|
29
|
+
});
|
|
30
|
+
}
|
package/bin/spine-status.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import { loadBatchStateFile } from "../src/batch/reconcile.mjs";
|
|
|
2
2
|
import { generateBatchPostMortem } from "../src/batch/postmortem.mjs";
|
|
3
3
|
import { readJournalEvents, readJournalTail } from "../src/batch/journal.mjs";
|
|
4
4
|
import { reconcileBatch } from "../src/batch/reconcile.mjs";
|
|
5
|
+
import { formatStatusJson } from "../src/batch/status-json.mjs";
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* @param {object} options
|
|
@@ -17,7 +18,7 @@ export function runSpineStatus(options) {
|
|
|
17
18
|
if (json) {
|
|
18
19
|
return {
|
|
19
20
|
exitCode: 0,
|
|
20
|
-
output:
|
|
21
|
+
output: formatStatusJson(result),
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
24
|
|
|
@@ -32,10 +33,27 @@ export function runSpineStatus(options) {
|
|
|
32
33
|
if (result.diagnosis) {
|
|
33
34
|
lines.push(` Diagnosis: ${result.diagnosis}`);
|
|
34
35
|
}
|
|
36
|
+
if (result.macroPhase) {
|
|
37
|
+
lines.push(` Macro phase: ${result.macroPhaseLabel ?? result.macroPhase}`);
|
|
38
|
+
}
|
|
35
39
|
|
|
36
40
|
lines.push("", ` ${result.headline}`, "");
|
|
37
41
|
lines.push(` → ${result.suggestedCommand}`);
|
|
38
42
|
|
|
43
|
+
if (diagnose && result.mergeFailed) {
|
|
44
|
+
lines.push("");
|
|
45
|
+
lines.push(` Merge failed: ${result.failedMerges} wave(s)`);
|
|
46
|
+
if (result.failedWaveIndex != null) {
|
|
47
|
+
lines.push(` Failed wave: ${Number(result.failedWaveIndex) + 1} (index ${result.failedWaveIndex})`);
|
|
48
|
+
}
|
|
49
|
+
if (result.failedLane != null) {
|
|
50
|
+
lines.push(` Failed lane: ${result.failedLane}`);
|
|
51
|
+
}
|
|
52
|
+
if (result.lastError) {
|
|
53
|
+
lines.push(` Last error: ${result.lastError}`);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
39
57
|
if (result.alternatives?.length) {
|
|
40
58
|
lines.push("", " Alternatives:");
|
|
41
59
|
for (const alt of result.alternatives) {
|
package/bin/spine-tasks.mjs
CHANGED
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
* FR-UXB-02: validate task PROMPT packets for a planner scope.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import path from 'node:path';
|
|
8
9
|
import { c, isCliEntrypoint, writeCommandResult } from './spine-cli/shared.mjs';
|
|
9
10
|
import { loadSpineConfig } from './spine-config.mjs';
|
|
10
11
|
import { resolveTasksRootPath } from '../src/config/env-overrides.mjs';
|
|
12
|
+
import { analyzeTasksScope } from '../src/tasks/analyze/index.mjs';
|
|
11
13
|
import {
|
|
12
14
|
collectPromptValidationFailure,
|
|
13
15
|
discoverTasks,
|
|
@@ -15,6 +17,7 @@ import {
|
|
|
15
17
|
loadDependenciesJson,
|
|
16
18
|
loadTaskPacket,
|
|
17
19
|
} from '../src/tasks/packet/index.mjs';
|
|
20
|
+
import { collectStaleFileScopeMustChangeWarnings } from '../src/tasks/packet/validate-prompt.mjs';
|
|
18
21
|
import { parseScope } from '../src/planner/scope.mjs';
|
|
19
22
|
|
|
20
23
|
/**
|
|
@@ -49,9 +52,10 @@ export function formatTasksValidateHuman({
|
|
|
49
52
|
* @param {object} packet
|
|
50
53
|
* @param {{ taskId: string, folderName: string }} discoveredTask
|
|
51
54
|
* @param {{ tasks?: Record<string, string[]> }} depsJson
|
|
55
|
+
* @param {string} [projectRoot]
|
|
52
56
|
* @returns {string[]}
|
|
53
57
|
*/
|
|
54
|
-
export function collectTaskAdvisoryWarnings(packet, discoveredTask, depsJson) {
|
|
58
|
+
export function collectTaskAdvisoryWarnings(packet, discoveredTask, depsJson, projectRoot) {
|
|
55
59
|
/** @type {string[]} */
|
|
56
60
|
const warnings = [];
|
|
57
61
|
|
|
@@ -83,6 +87,17 @@ export function collectTaskAdvisoryWarnings(packet, discoveredTask, depsJson) {
|
|
|
83
87
|
}
|
|
84
88
|
}
|
|
85
89
|
|
|
90
|
+
if (projectRoot && packet.promptPath && packet.validation?.contract) {
|
|
91
|
+
const promptRelPath = path.relative(projectRoot, packet.promptPath);
|
|
92
|
+
warnings.push(
|
|
93
|
+
...collectStaleFileScopeMustChangeWarnings(
|
|
94
|
+
projectRoot,
|
|
95
|
+
packet.validation.contract,
|
|
96
|
+
promptRelPath,
|
|
97
|
+
),
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
86
101
|
return warnings;
|
|
87
102
|
}
|
|
88
103
|
|
|
@@ -105,28 +120,40 @@ export function buildTasksValidateResult({ scope, tasks }) {
|
|
|
105
120
|
|
|
106
121
|
export function printTasksHelp() {
|
|
107
122
|
console.log(`
|
|
108
|
-
${c.bold}spine tasks${c.reset} — validate task PROMPT packets (FR-UXB-02)
|
|
123
|
+
${c.bold}spine tasks${c.reset} — validate and analyze task PROMPT packets (FR-UXB-02)
|
|
109
124
|
|
|
110
125
|
${c.bold}Usage:${c.reset}
|
|
111
126
|
spine tasks validate <scope> [--json] [--warnings-only]
|
|
127
|
+
spine tasks analyze <scope> [--json]
|
|
112
128
|
|
|
113
129
|
${c.bold}Scope:${c.reset}
|
|
114
130
|
Same resolution as ${c.cyan}spine plan${c.reset}: all, pending, task IDs, globs.
|
|
115
131
|
|
|
116
|
-
${c.bold}
|
|
132
|
+
${c.bold}Validate options:${c.reset}
|
|
117
133
|
--json Emit TasksValidateResult JSON (handoff §6.4)
|
|
118
134
|
--warnings-only Include non-blocking P1 checks as warnings:
|
|
119
135
|
folder name ≠ heading ID, missing STATUS.md, deps mismatch
|
|
120
136
|
|
|
121
|
-
${c.bold}
|
|
137
|
+
${c.bold}Analyze:${c.reset}
|
|
138
|
+
Deterministic structural checks: parallel file-scope overlap, dependency cycles,
|
|
139
|
+
orphan task IDs (blocking); wave M-count, explore refs, PROMPT/JSON deps drift (warnings).
|
|
140
|
+
|
|
141
|
+
${c.bold}Exit codes (validate):${c.reset}
|
|
122
142
|
0 all selected tasks pass
|
|
123
143
|
1 one or more PROMPT validation failures
|
|
124
144
|
2 config, tasksRoot, or scope resolution error
|
|
125
145
|
|
|
146
|
+
${c.bold}Exit codes (analyze):${c.reset}
|
|
147
|
+
0 no blocking findings (warnings alone exit 0)
|
|
148
|
+
1 one or more blocking findings
|
|
149
|
+
2 config, tasksRoot, or scope resolution error
|
|
150
|
+
|
|
126
151
|
${c.bold}Examples:${c.reset}
|
|
127
152
|
spine tasks validate all
|
|
128
153
|
spine tasks validate pending --warnings-only
|
|
129
154
|
spine tasks validate FX-101 --json
|
|
155
|
+
spine tasks analyze pending
|
|
156
|
+
spine tasks analyze all --json
|
|
130
157
|
`);
|
|
131
158
|
}
|
|
132
159
|
|
|
@@ -194,7 +221,7 @@ export async function runSpineTasksValidate({
|
|
|
194
221
|
/** @type {string[]} */
|
|
195
222
|
const warnings = warningsOnly
|
|
196
223
|
? [
|
|
197
|
-
...collectTaskAdvisoryWarnings(packet, discoveredTask, depsJson),
|
|
224
|
+
...collectTaskAdvisoryWarnings(packet, discoveredTask, depsJson, projectRoot),
|
|
198
225
|
...(packet.validation?.warnings ?? []),
|
|
199
226
|
]
|
|
200
227
|
: [];
|
|
@@ -254,17 +281,44 @@ export async function runSpineTasksValidate({
|
|
|
254
281
|
}
|
|
255
282
|
|
|
256
283
|
/**
|
|
257
|
-
* @param {string
|
|
284
|
+
* @param {string} message
|
|
285
|
+
* @param {{ suggestedCommand?: string, exitCode?: number }} [options]
|
|
258
286
|
*/
|
|
259
|
-
|
|
260
|
-
const
|
|
261
|
-
if (
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
287
|
+
function throwTasksAnalyzeError(message, { suggestedCommand, exitCode = 2 } = {}) {
|
|
288
|
+
const err = new Error(message);
|
|
289
|
+
if (suggestedCommand) err.suggestedCommand = suggestedCommand;
|
|
290
|
+
err.exitCode = exitCode;
|
|
291
|
+
throw err;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @param {{ projectRoot?: string, scope?: string, json?: boolean }} [args]
|
|
296
|
+
*/
|
|
297
|
+
export async function runSpineTasksAnalyze({
|
|
298
|
+
projectRoot = process.cwd(),
|
|
299
|
+
scope = 'all',
|
|
300
|
+
json = false,
|
|
301
|
+
} = {}) {
|
|
302
|
+
try {
|
|
303
|
+
const analyzeResult = await analyzeTasksScope({ projectRoot, scope });
|
|
304
|
+
const output = json
|
|
305
|
+
? JSON.stringify(analyzeResult.result, null, 2) + '\n'
|
|
306
|
+
: analyzeResult.output;
|
|
307
|
+
|
|
308
|
+
return {
|
|
309
|
+
...analyzeResult,
|
|
310
|
+
output,
|
|
311
|
+
};
|
|
312
|
+
} catch (err) {
|
|
313
|
+
if (err?.exitCode != null) throw err;
|
|
314
|
+
throwTasksAnalyzeError(err?.message ?? String(err));
|
|
266
315
|
}
|
|
316
|
+
}
|
|
267
317
|
|
|
318
|
+
/**
|
|
319
|
+
* @param {string[]} args
|
|
320
|
+
*/
|
|
321
|
+
async function handleTasksValidate(args) {
|
|
268
322
|
const json = args.includes('--json');
|
|
269
323
|
const warningsOnly = args.includes('--warnings-only');
|
|
270
324
|
const scope = args.filter((a) => !a.startsWith('--')).slice(1).join(' ') || 'all';
|
|
@@ -288,6 +342,51 @@ export async function handleTasks(args) {
|
|
|
288
342
|
}
|
|
289
343
|
}
|
|
290
344
|
|
|
345
|
+
/**
|
|
346
|
+
* @param {string[]} args
|
|
347
|
+
*/
|
|
348
|
+
async function handleTasksAnalyze(args) {
|
|
349
|
+
const json = args.includes('--json');
|
|
350
|
+
const scope = args.filter((a) => !a.startsWith('--')).slice(1).join(' ') || 'all';
|
|
351
|
+
|
|
352
|
+
try {
|
|
353
|
+
const result = await runSpineTasksAnalyze({
|
|
354
|
+
projectRoot: process.cwd(),
|
|
355
|
+
scope,
|
|
356
|
+
json,
|
|
357
|
+
});
|
|
358
|
+
writeCommandResult(result);
|
|
359
|
+
} catch (err) {
|
|
360
|
+
const msg = err?.message ?? String(err);
|
|
361
|
+
if (err?.suggestedCommand) {
|
|
362
|
+
console.error(`Error: ${msg}\nSuggested: ${err.suggestedCommand}`);
|
|
363
|
+
} else {
|
|
364
|
+
console.error(`Error: ${msg}`);
|
|
365
|
+
}
|
|
366
|
+
process.exit(err?.exitCode ?? 2);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* @param {string[]} args
|
|
372
|
+
*/
|
|
373
|
+
export async function handleTasks(args) {
|
|
374
|
+
const sub = args[0];
|
|
375
|
+
if (sub === 'validate') {
|
|
376
|
+
await handleTasksValidate(args);
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
if (sub === 'analyze') {
|
|
380
|
+
await handleTasksAnalyze(args);
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
const { die } = await import('./spine-cli/shared.mjs');
|
|
385
|
+
die(
|
|
386
|
+
`Unknown tasks subcommand: ${sub ?? '(none)'}\nRun ${c.cyan}spine help tasks${c.reset} for usage.`,
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
|
|
291
390
|
if (isCliEntrypoint(import.meta.url)) {
|
|
292
391
|
handleTasks(process.argv.slice(2));
|
|
293
392
|
}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* SPINE_TASK_FOLDER — absolute path to taskplane-tasks/TP-NNN-…/
|
|
9
9
|
* SPINE_WORKTREE — lane git worktree root
|
|
10
10
|
* SPINE_PROJECT_ROOT — pi-spine project root (journal + gate paths)
|
|
11
|
+
* SPINE_RULES_PROJECT_ROOT — lane worktree for rules manifest reads (SP-317)
|
|
11
12
|
* SPINE_BATCH_ID — active batch id
|
|
12
13
|
* SPINE_TASK_ID — e.g. TP-038
|
|
13
14
|
* SPINE_LANE_NUMBER — 1-based lane index
|
|
@@ -28,6 +29,7 @@ import {
|
|
|
28
29
|
import { reportTaskProgress } from "../src/worker-tools/report-progress.mjs";
|
|
29
30
|
import { isCliEntrypoint } from "./spine-cli/shared.mjs";
|
|
30
31
|
import { loadSpineConfig } from "./spine-config.mjs";
|
|
32
|
+
import { writeWorkerDoneMarker } from "../src/batch/worker-output.mjs";
|
|
31
33
|
import { buildWorkerTailPrompt, taskIdFromFolder } from "../src/batch/worker-prompt.mjs";
|
|
32
34
|
import { parsePrompt } from "../src/tasks/packet/parse-prompt.mjs";
|
|
33
35
|
|
|
@@ -83,7 +85,8 @@ export async function buildWorkerPiArgs({
|
|
|
83
85
|
piArgs.push(`@${promptPath}`);
|
|
84
86
|
}
|
|
85
87
|
appendWorkerAgentModelArgs(piArgs, spineConfig);
|
|
86
|
-
const projectRoot =
|
|
88
|
+
const projectRoot =
|
|
89
|
+
process.env.SPINE_RULES_PROJECT_ROOT || worktreePath || process.env.SPINE_PROJECT_ROOT || process.cwd();
|
|
87
90
|
const taskFileScope = resolveTaskFileScope(taskFolder);
|
|
88
91
|
const tailPrompt = await buildWorkerTailPrompt({
|
|
89
92
|
worktreePath,
|
|
@@ -125,11 +128,11 @@ function resolveTaskFileScope(taskFolder) {
|
|
|
125
128
|
return parsePrompt(fs.readFileSync(promptPath, "utf-8")).fileScope ?? [];
|
|
126
129
|
}
|
|
127
130
|
|
|
128
|
-
function enforceStubReviewIfConfigured(taskFolder, worktreePath) {
|
|
131
|
+
async function enforceStubReviewIfConfigured(taskFolder, worktreePath) {
|
|
129
132
|
if (process.env.SPINE_WORKER_STUB_ENFORCE_REVIEW !== "1") return;
|
|
130
133
|
if (readReviewLevel(taskFolder) <= 0) return;
|
|
131
134
|
|
|
132
|
-
const reviewResult = runStepReview({
|
|
135
|
+
const reviewResult = await runStepReview({
|
|
133
136
|
taskFolder,
|
|
134
137
|
worktreePath: worktreePath || process.cwd(),
|
|
135
138
|
stepNumber: Number(process.env.SPINE_WORKER_STUB_REVIEW_STEP || 1),
|
|
@@ -161,25 +164,25 @@ async function runWorkerRunner() {
|
|
|
161
164
|
const mode = process.argv.includes("--stub") ? "stub" : "pi";
|
|
162
165
|
|
|
163
166
|
if (mode === "stub") {
|
|
164
|
-
const
|
|
167
|
+
const parsedTaskId = path.basename(taskFolder).match(/^([A-Z]+-\d+)/)?.[1] ?? "";
|
|
165
168
|
const failTasks = String(process.env.SPINE_WORKER_STUB_FAIL_TASKS ?? "")
|
|
166
169
|
.split(/[,\s]+/)
|
|
167
170
|
.filter(Boolean);
|
|
168
|
-
if (failTasks.includes(
|
|
171
|
+
if (failTasks.includes(parsedTaskId)) {
|
|
169
172
|
const dirtyRel = process.env.SPINE_WORKER_STUB_DIRTY_FILE;
|
|
170
173
|
if (dirtyRel && worktreePath) {
|
|
171
174
|
const dirtyPath = path.join(worktreePath, dirtyRel);
|
|
172
175
|
fs.mkdirSync(path.dirname(dirtyPath), { recursive: true });
|
|
173
176
|
fs.writeFileSync(dirtyPath, `stub dirty ${new Date().toISOString()}\n`, "utf-8");
|
|
174
177
|
}
|
|
175
|
-
console.error(`stub worker forced failure for ${
|
|
178
|
+
console.error(`stub worker forced failure for ${parsedTaskId}`);
|
|
176
179
|
process.exit(1);
|
|
177
180
|
}
|
|
178
181
|
|
|
179
182
|
if (process.env.SPINE_WORKER_STUB_SAT020 === "1") {
|
|
180
183
|
const journal = buildReviewJournal();
|
|
181
184
|
const laneNumber = Number(process.env.SPINE_LANE_NUMBER || 1);
|
|
182
|
-
const taskId = process.env.SPINE_TASK_ID ||
|
|
185
|
+
const taskId = process.env.SPINE_TASK_ID || parsedTaskId;
|
|
183
186
|
const correlationId = process.env.SPINE_LANE_CORRELATION_ID;
|
|
184
187
|
// Let the host poll once before checkpoint signals land.
|
|
185
188
|
spawnSync("sleep", ["1"], { stdio: "ignore" });
|
|
@@ -200,12 +203,22 @@ async function runWorkerRunner() {
|
|
|
200
203
|
// Separate poll epochs: checkpoint progress first, then file-scope activity only.
|
|
201
204
|
spawnSync("sleep", ["4"], { stdio: "ignore" });
|
|
202
205
|
const scopeRel = process.env.SPINE_WORKER_STUB_FILE_SCOPE;
|
|
206
|
+
const postScopeMs = Number(process.env.SPINE_WORKER_STUB_SAT020_POST_SCOPE_MS || 10_000);
|
|
207
|
+
const scopeBumpMs = Math.min(5_000, Math.max(0, postScopeMs));
|
|
208
|
+
const postScopeRemainderMs = Math.max(0, postScopeMs - scopeBumpMs);
|
|
203
209
|
if (scopeRel && worktreePath) {
|
|
204
210
|
const scopePath = path.join(worktreePath, scopeRel);
|
|
205
211
|
fs.mkdirSync(path.dirname(scopePath), { recursive: true });
|
|
206
212
|
fs.writeFileSync(scopePath, `sat020 scope touch ${new Date().toISOString()}\n`, "utf-8");
|
|
213
|
+
if (scopeBumpMs > 0) {
|
|
214
|
+
spawnSync("sleep", [String(scopeBumpMs / 1000)], { stdio: "ignore" });
|
|
215
|
+
// Second touch gives the host a fresh activity epoch after step_completed settles.
|
|
216
|
+
fs.writeFileSync(scopePath, `sat020 scope touch ${new Date().toISOString()}\n`, "utf-8");
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
if (postScopeRemainderMs > 0) {
|
|
220
|
+
spawnSync("sleep", [String(postScopeRemainderMs / 1000)], { stdio: "ignore" });
|
|
207
221
|
}
|
|
208
|
-
spawnSync("sleep", ["10"], { stdio: "ignore" });
|
|
209
222
|
}
|
|
210
223
|
|
|
211
224
|
const delayMs = Number(process.env.SPINE_WORKER_STUB_DELAY_MS || 0);
|
|
@@ -244,14 +257,11 @@ async function runWorkerRunner() {
|
|
|
244
257
|
);
|
|
245
258
|
}
|
|
246
259
|
|
|
247
|
-
enforceStubReviewIfConfigured(taskFolder, worktreePath);
|
|
260
|
+
await enforceStubReviewIfConfigured(taskFolder, worktreePath);
|
|
248
261
|
|
|
249
262
|
const donePath = path.join(taskFolder, ".DONE");
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
`Completed: ${new Date().toISOString()}\nTask: stub\n`,
|
|
253
|
-
"utf-8",
|
|
254
|
-
);
|
|
263
|
+
const stubTaskId = process.env.SPINE_TASK_ID || taskIdFromFolder(taskFolder) || "stub";
|
|
264
|
+
writeWorkerDoneMarker(donePath, { taskId: stubTaskId });
|
|
255
265
|
process.exit(0);
|
|
256
266
|
}
|
|
257
267
|
|
package/bin/spine.mjs
CHANGED
|
@@ -33,6 +33,10 @@ import {
|
|
|
33
33
|
WARN,
|
|
34
34
|
} from "./spine-cli/shared.mjs";
|
|
35
35
|
import { handleStatus } from "./spine-cli/status.mjs";
|
|
36
|
+
import { handleLane } from "./spine-cli/lane-logs.mjs";
|
|
37
|
+
import { handleWatch } from "./spine-cli/watch.mjs";
|
|
38
|
+
import { handleWait } from "./spine-cli/wait.mjs";
|
|
39
|
+
import { handleScenarios } from "./spine-cli/scenarios.mjs";
|
|
36
40
|
import { loadSpineConfig } from "./spine-config.mjs";
|
|
37
41
|
import { cmdInit, SPINE_GITIGNORE_ENTRIES } from "./spine-init.mjs";
|
|
38
42
|
import { cmdMigrateFromTaskplane } from "./spine-migrate-from-taskplane.mjs";
|
|
@@ -58,6 +62,15 @@ async function cmdPreflight(args) {
|
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
async function cmdJournal(args) {
|
|
65
|
+
const subcommand = args[0];
|
|
66
|
+
if (subcommand === "follow") {
|
|
67
|
+
const { runJournalFollow } = await import("../src/cli/journal-follow.mjs");
|
|
68
|
+
const result = await runJournalFollow({ projectRoot: process.cwd(), args: args.slice(1) });
|
|
69
|
+
process.stdout.write(result.output);
|
|
70
|
+
if (result.exitCode !== 0) process.exit(result.exitCode);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
61
74
|
const { runSpineJournal } = await import("./spine-journal.mjs");
|
|
62
75
|
const result = runSpineJournal({ projectRoot: process.cwd(), args });
|
|
63
76
|
process.stdout.write(result.output);
|
|
@@ -91,7 +104,7 @@ async function cmdReview(args) {
|
|
|
91
104
|
die(`Unknown review subcommand: ${sub ?? "(none)"}\nRun ${c.cyan}spine review step --step N${c.reset} for usage.`);
|
|
92
105
|
}
|
|
93
106
|
const { runSpineReviewStep } = await import("./spine-review-step.mjs");
|
|
94
|
-
const result = runSpineReviewStep({ projectRoot: process.cwd(), args: args.slice(1) });
|
|
107
|
+
const result = await runSpineReviewStep({ projectRoot: process.cwd(), args: args.slice(1) });
|
|
95
108
|
process.stdout.write(result.output ?? "");
|
|
96
109
|
if (result.exitCode !== 0) process.exit(result.exitCode);
|
|
97
110
|
}
|
|
@@ -131,6 +144,13 @@ async function cmdHandoff(args) {
|
|
|
131
144
|
if (result.exitCode !== 0) process.exit(result.exitCode);
|
|
132
145
|
}
|
|
133
146
|
|
|
147
|
+
async function cmdIssue(args) {
|
|
148
|
+
const { runSpineIssue } = await import("./spine-issue.mjs");
|
|
149
|
+
const result = runSpineIssue({ projectRoot: process.cwd(), args });
|
|
150
|
+
process.stdout.write(result.output ?? "");
|
|
151
|
+
if (result.exitCode !== 0) process.exit(result.exitCode);
|
|
152
|
+
}
|
|
153
|
+
|
|
134
154
|
async function cmdMetrics(args) {
|
|
135
155
|
const sub = args[0];
|
|
136
156
|
if (sub !== "show") {
|
|
@@ -232,9 +252,12 @@ ${c.bold}Commands:${c.reset}
|
|
|
232
252
|
${c.cyan}settings${c.reset} Show or set editable spine-config fields (FR-CFG-03)
|
|
233
253
|
${c.cyan}rules${c.reset} Discover, select, and sync Cursor rules manifest
|
|
234
254
|
${c.cyan}status${c.reset} Reconciled batch diagnosis and lane health (FR-BATCH-14)
|
|
255
|
+
${c.cyan}watch${c.reset} Poll reconcile loop for live batch monitoring (#44)
|
|
256
|
+
${c.cyan}wait${c.reset} Block until diagnosis reaches target set (#46)
|
|
235
257
|
${c.cyan}batch${c.reset} Start, dismiss, or complete batch (Phase 2 start)
|
|
236
|
-
${c.cyan}run${c.reset} Start batch
|
|
258
|
+
${c.cyan}run${c.reset} Start batch or planner wave sequence (PRD §15.2, #54)
|
|
237
259
|
${c.cyan}handoff${c.reset} Write operator handoff note (FR-UXB-05)
|
|
260
|
+
${c.cyan}issue draft${c.reset} Build GitHub issue draft from project state (#60)
|
|
238
261
|
${c.cyan}metrics${c.reset} Show run metrics JSONL (FR-UXB-06)
|
|
239
262
|
${c.cyan}review step${c.reset} Spawn reviewer for a task step (FR-REV)
|
|
240
263
|
${c.cyan}report progress${c.reset} Emit task.step_completed to batch journal (FR-WORK-09)
|
|
@@ -246,6 +269,7 @@ ${c.bold}Commands:${c.reset}
|
|
|
246
269
|
${c.cyan}next${c.reset} Print or execute suggested next command (dry-run default)
|
|
247
270
|
${c.cyan}dashboard${c.reset} Local SSE dashboard (default http://127.0.0.1:8109)
|
|
248
271
|
${c.cyan}tasks${c.reset} Validate task PROMPT packets (FR-UXB-02)
|
|
272
|
+
${c.cyan}scenarios${c.reset} List, show, and materialize scenario fixtures
|
|
249
273
|
${c.cyan}version${c.reset} Show version information
|
|
250
274
|
${c.cyan}help${c.reset} Show this help message
|
|
251
275
|
|
|
@@ -270,6 +294,9 @@ ${c.bold}Examples:${c.reset}
|
|
|
270
294
|
spine doctor # check installation health
|
|
271
295
|
spine preflight # verify batch readiness
|
|
272
296
|
spine status --diagnose # reconciled batch diagnosis
|
|
297
|
+
spine watch # compact live reconcile poll (5s default)
|
|
298
|
+
spine watch --json --once # one NDJSON snapshot for scripts
|
|
299
|
+
spine wait --until completed,failed --timeout 2h # CI: block until terminal diagnosis
|
|
273
300
|
spine deps all # show dependency graph
|
|
274
301
|
spine deps TP-031 --json # JSON graph for one task scope
|
|
275
302
|
spine settings show # list editable config fields
|
|
@@ -282,9 +309,12 @@ ${c.bold}Examples:${c.reset}
|
|
|
282
309
|
spine batch start TP-012 # detached batch engine (default)
|
|
283
310
|
spine batch start TP-012 --attached # foreground batch engine
|
|
284
311
|
spine run pending --dry-run # run unfinished tasks (alias for batch start)
|
|
312
|
+
spine run sequence pending --dry-run # print wave-by-wave land loop commands (#54)
|
|
313
|
+
spine run sequence pending --from-wave 1 # resume sequence from planner wave 1
|
|
285
314
|
spine batch dismiss --reason limbo-recovery # archive and clear stale batch
|
|
286
315
|
spine batch complete --detect-manual-merge # complete after manual git merge
|
|
287
316
|
spine handoff [--batch ID] [--json] # operator handoff note
|
|
317
|
+
spine issue draft [--type bug] [--json] # GitHub issue draft from diagnose state
|
|
288
318
|
spine metrics show [--batch ID] [--last N] # read run-metrics.jsonl
|
|
289
319
|
spine review step --step N [--type plan|code|final] # step or final review
|
|
290
320
|
spine report progress --step N # journal step progress (worker shell-out)
|
|
@@ -298,7 +328,12 @@ ${c.bold}Examples:${c.reset}
|
|
|
298
328
|
spine dashboard --json # one-shot snapshot JSON
|
|
299
329
|
spine tasks validate pending # validate pending task PROMPTs
|
|
300
330
|
spine tasks validate all --json # structured TasksValidateResult
|
|
331
|
+
spine tasks analyze pending # structural checks (overlap, cycles, warnings)
|
|
332
|
+
spine tasks analyze pending --json # structured AnalyzeTasksResult
|
|
301
333
|
spine help tasks # tasks subcommand usage
|
|
334
|
+
spine scenarios list # list registered scenario fixtures
|
|
335
|
+
spine scenarios show orphan-running-resume # show one scenario entry
|
|
336
|
+
spine scenarios materialize orphan-running-resume --target . # write batch-state + journal
|
|
302
337
|
spine version # show package and environment info
|
|
303
338
|
`);
|
|
304
339
|
}
|
|
@@ -335,9 +370,18 @@ if (isCliEntrypoint(import.meta.url)) {
|
|
|
335
370
|
case "tasks":
|
|
336
371
|
await cmdTasks(args);
|
|
337
372
|
break;
|
|
373
|
+
case "scenarios":
|
|
374
|
+
await handleScenarios(args);
|
|
375
|
+
break;
|
|
338
376
|
case "status":
|
|
339
377
|
await handleStatus(args);
|
|
340
378
|
break;
|
|
379
|
+
case "watch":
|
|
380
|
+
await handleWatch(args);
|
|
381
|
+
break;
|
|
382
|
+
case "wait":
|
|
383
|
+
await handleWait(args);
|
|
384
|
+
break;
|
|
341
385
|
case "batch":
|
|
342
386
|
await handleBatch(args);
|
|
343
387
|
break;
|
|
@@ -347,6 +391,9 @@ if (isCliEntrypoint(import.meta.url)) {
|
|
|
347
391
|
case "journal":
|
|
348
392
|
await cmdJournal(args);
|
|
349
393
|
break;
|
|
394
|
+
case "lane":
|
|
395
|
+
await handleLane(args);
|
|
396
|
+
break;
|
|
350
397
|
case "state":
|
|
351
398
|
await cmdState(args);
|
|
352
399
|
break;
|
|
@@ -359,6 +406,9 @@ if (isCliEntrypoint(import.meta.url)) {
|
|
|
359
406
|
case "handoff":
|
|
360
407
|
await cmdHandoff(args);
|
|
361
408
|
break;
|
|
409
|
+
case "issue":
|
|
410
|
+
await cmdIssue(args);
|
|
411
|
+
break;
|
|
362
412
|
case "metrics":
|
|
363
413
|
await cmdMetrics(args);
|
|
364
414
|
break;
|
|
@@ -36,7 +36,9 @@ export function buildReviewStepCliArgs(params: SpineReviewStepParams): string[]
|
|
|
36
36
|
type SpineReviewStepToolResult = AgentToolResult<SpineReviewStepDetails> & { isError?: boolean };
|
|
37
37
|
|
|
38
38
|
/** Run review step logic shared by the Pi tool handler. */
|
|
39
|
-
export function executeSpineReviewStep(
|
|
39
|
+
export async function executeSpineReviewStep(
|
|
40
|
+
params: SpineReviewStepParams,
|
|
41
|
+
): Promise<SpineReviewStepToolResult> {
|
|
40
42
|
const taskFolder = process.env.SPINE_TASK_FOLDER;
|
|
41
43
|
if (!taskFolder) {
|
|
42
44
|
return {
|
|
@@ -60,7 +62,7 @@ export function executeSpineReviewStep(params: SpineReviewStepParams): SpineRevi
|
|
|
60
62
|
};
|
|
61
63
|
}
|
|
62
64
|
|
|
63
|
-
const { exitCode, output, result } = runSpineReviewStep({
|
|
65
|
+
const { exitCode, output, result } = await runSpineReviewStep({
|
|
64
66
|
taskFolder,
|
|
65
67
|
worktreePath: process.env.SPINE_WORKTREE ?? process.cwd(),
|
|
66
68
|
args: buildReviewStepCliArgs(params),
|
|
@@ -83,15 +85,14 @@ export function executeSpineReviewStep(params: SpineReviewStepParams): SpineRevi
|
|
|
83
85
|
};
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
const fallbackText =
|
|
87
|
-
details.
|
|
88
|
-
|
|
89
|
-
: details.error || "review step failed";
|
|
88
|
+
const fallbackText = details.skipped
|
|
89
|
+
? details.feedback || "review skipped (engine-owned)"
|
|
90
|
+
: details.error || "review step failed";
|
|
90
91
|
|
|
91
92
|
return {
|
|
92
93
|
content: [{ type: "text" as const, text: output.trim() || fallbackText }],
|
|
93
94
|
details,
|
|
94
|
-
isError: exitCode !== 0,
|
|
95
|
+
isError: exitCode !== 0 && !details.skipped,
|
|
95
96
|
};
|
|
96
97
|
}
|
|
97
98
|
|
|
@@ -99,11 +100,12 @@ export const spineReviewStepTool = defineTool({
|
|
|
99
100
|
name: "spine_review_step",
|
|
100
101
|
label: "Spine Review Step",
|
|
101
102
|
description:
|
|
102
|
-
"
|
|
103
|
-
promptSnippet: "
|
|
103
|
+
"Request plan or code review for a task step. In real-pi worker sessions the tool returns skipped (exit 0) — the batch engine runs reviews after .DONE (SP-195/SP-278). Stub batches may receive APPROVE via --stub.",
|
|
104
|
+
promptSnippet: "Request plan or code review for a worker task step (engine-owned in real-pi sessions)",
|
|
104
105
|
promptGuidelines: [
|
|
105
|
-
"
|
|
106
|
-
"
|
|
106
|
+
"In real-pi worker sessions, do not rely on spine_review_step for plan or code review — the batch engine runs those after worker success.",
|
|
107
|
+
"Stub batches (SPINE_WORKER_STUB=1) may call spine_review_step for stub APPROVE at plan checkpoints.",
|
|
108
|
+
"On REVISE verdict from engine-owned review, address feedback before continuing.",
|
|
107
109
|
],
|
|
108
110
|
parameters: Type.Object({
|
|
109
111
|
step: Type.Integer({ minimum: 0, description: "Step number from PROMPT.md." }),
|
|
@@ -117,7 +119,7 @@ export const spineReviewStepTool = defineTool({
|
|
|
117
119
|
),
|
|
118
120
|
}),
|
|
119
121
|
async execute(_toolCallId, params): Promise<SpineReviewStepToolResult> {
|
|
120
|
-
return executeSpineReviewStep(params);
|
|
122
|
+
return await executeSpineReviewStep(params);
|
|
121
123
|
},
|
|
122
124
|
});
|
|
123
125
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-spine",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Orchestration spine for long-running pi development",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"doctor": "node bin/spine.mjs doctor",
|
|
31
|
-
"
|
|
31
|
+
"lint": "eslint src bin tests scripts",
|
|
32
|
+
"typecheck": "tsc --project tsconfig.json --noEmit && tsc --project tsconfig.batch.json --noEmit",
|
|
32
33
|
"test": "SPINE_SUPPRESS_JOURNAL_ATTACH=1 node --experimental-strip-types --test tests/*.test.mjs tests/cli/*.test.mjs tests/compat/*.test.mjs tests/tasks/*.test.mjs tests/config/*.test.mjs tests/config/cursor-rules/*.test.mjs tests/planner/*.test.mjs tests/batch/*.test.mjs tests/agents/*.test.mjs tests/adoption/*.test.mjs tests/dashboard/*.test.mjs tests/doctor/*.test.mjs tests/migrate/*.test.mjs tests/worker-tools/*.test.mjs tests/coverage/*.test.mjs tests/extensions/*.test.mjs",
|
|
33
34
|
"test:batch": "SPINE_SUPPRESS_JOURNAL_ATTACH=1 node --experimental-strip-types --test tests/batch/*.test.mjs",
|
|
34
35
|
"test:core": "SPINE_SUPPRESS_JOURNAL_ATTACH=1 node --experimental-strip-types --test tests/*.test.mjs tests/cli/*.test.mjs tests/compat/*.test.mjs tests/tasks/*.test.mjs tests/config/*.test.mjs tests/config/cursor-rules/*.test.mjs tests/planner/*.test.mjs tests/agents/*.test.mjs tests/adoption/*.test.mjs tests/dashboard/*.test.mjs tests/doctor/*.test.mjs tests/migrate/*.test.mjs tests/worker-tools/*.test.mjs tests/coverage/*.test.mjs",
|
|
@@ -67,6 +68,8 @@
|
|
|
67
68
|
"devDependencies": {
|
|
68
69
|
"@earendil-works/pi-coding-agent": "^0.78.0",
|
|
69
70
|
"@types/node": "^22.19.18",
|
|
71
|
+
"eslint": "^9.28.0",
|
|
72
|
+
"globals": "^16.2.0",
|
|
70
73
|
"typebox": "1.1.38",
|
|
71
74
|
"typescript": "5.6.3"
|
|
72
75
|
},
|