pi-spine 1.0.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/LICENSE +21 -0
- package/README.md +563 -0
- package/bin/get-version.mjs +35 -0
- package/bin/spine-batch.mjs +425 -0
- package/bin/spine-cli/batch.mjs +47 -0
- package/bin/spine-cli/gate.mjs +10 -0
- package/bin/spine-cli/integrate.mjs +10 -0
- package/bin/spine-cli/plan.mjs +12 -0
- package/bin/spine-cli/shared.mjs +73 -0
- package/bin/spine-cli/status.mjs +18 -0
- package/bin/spine-cli/verify.mjs +199 -0
- package/bin/spine-config.mjs +212 -0
- package/bin/spine-dashboard.mjs +178 -0
- package/bin/spine-deps.mjs +69 -0
- package/bin/spine-doctor.mjs +468 -0
- package/bin/spine-gate.mjs +137 -0
- package/bin/spine-init.mjs +398 -0
- package/bin/spine-integrate.mjs +77 -0
- package/bin/spine-journal.mjs +198 -0
- package/bin/spine-migrate-from-taskplane.mjs +136 -0
- package/bin/spine-plan.mjs +83 -0
- package/bin/spine-preflight.mjs +700 -0
- package/bin/spine-report-progress.d.mts +28 -0
- package/bin/spine-report-progress.mjs +126 -0
- package/bin/spine-review-step.d.mts +24 -0
- package/bin/spine-review-step.mjs +124 -0
- package/bin/spine-rules.mjs +35 -0
- package/bin/spine-settings.mjs +186 -0
- package/bin/spine-state.mjs +110 -0
- package/bin/spine-status.mjs +79 -0
- package/bin/spine-tasks.mjs +293 -0
- package/bin/spine-worker-runner.mjs +314 -0
- package/bin/spine.mjs +404 -0
- package/extensions/spine/settings-slash.ts +20 -0
- package/extensions/spine/slash-commands.ts +806 -0
- package/extensions/spine/worker-tools.ts +279 -0
- package/extensions/spine-orchestrator.ts +12 -0
- package/package.json +72 -0
- package/skills/.gitkeep +0 -0
- package/skills/create-spine-tasks/SKILL.md +375 -0
- package/skills/create-spine-tasks/references/context-template.md +25 -0
- package/skills/create-spine-tasks/references/contract-template.md +98 -0
- package/skills/create-spine-tasks/references/explore-template.md +63 -0
- package/skills/create-spine-tasks/references/prompt-template.md +276 -0
- package/src/batch/abort.mjs +272 -0
- package/src/batch/agent-session-worker.mjs +297 -0
- package/src/batch/batch-state-io.mjs +53 -0
- package/src/batch/contract-verify.mjs +310 -0
- package/src/batch/detached-start.mjs +778 -0
- package/src/batch/diagnosis.mjs +378 -0
- package/src/batch/engine-lanes/merge.mjs +632 -0
- package/src/batch/engine-lanes/queue.mjs +208 -0
- package/src/batch/engine-lanes/review.mjs +970 -0
- package/src/batch/engine-lanes.mjs +388 -0
- package/src/batch/engine-scope.mjs +251 -0
- package/src/batch/engine.mjs +445 -0
- package/src/batch/evidence-command.mjs +157 -0
- package/src/batch/evidence.mjs +203 -0
- package/src/batch/gate.mjs +359 -0
- package/src/batch/git-commit-env.mjs +46 -0
- package/src/batch/git-exec.mjs +26 -0
- package/src/batch/heartbeat.mjs +430 -0
- package/src/batch/integrate.mjs +414 -0
- package/src/batch/journal-rebuild.mjs +388 -0
- package/src/batch/journal.mjs +373 -0
- package/src/batch/lane-commit.mjs +153 -0
- package/src/batch/lifecycle.mjs +364 -0
- package/src/batch/metrics.mjs +265 -0
- package/src/batch/orphan-detect.mjs +210 -0
- package/src/batch/post-merge-limbo.mjs +80 -0
- package/src/batch/postmortem.mjs +296 -0
- package/src/batch/readers/spine-state.mjs +95 -0
- package/src/batch/readers/taskplane-state.mjs +136 -0
- package/src/batch/reconcile.mjs +729 -0
- package/src/batch/resume-common.mjs +104 -0
- package/src/batch/resume-engine.mjs +66 -0
- package/src/batch/resume-multi-lanes.mjs +479 -0
- package/src/batch/resume-multi-validate.mjs +187 -0
- package/src/batch/resume-multi.mjs +254 -0
- package/src/batch/resume.mjs +475 -0
- package/src/batch/retry.mjs +257 -0
- package/src/batch/review-scope.mjs +136 -0
- package/src/batch/review.mjs +1045 -0
- package/src/batch/salvage.mjs +332 -0
- package/src/batch/state.mjs +680 -0
- package/src/batch/task-stall-budget.mjs +88 -0
- package/src/batch/worker-host.mjs +683 -0
- package/src/batch/worker-output.mjs +253 -0
- package/src/batch/worker-prompt.mjs +84 -0
- package/src/batch/worktree.mjs +290 -0
- package/src/cli/deps.mjs +141 -0
- package/src/cli/handoff.mjs +364 -0
- package/src/cli/rules.mjs +429 -0
- package/src/cli/settings-set.mjs +171 -0
- package/src/cli/settings-show.mjs +140 -0
- package/src/cli/settings-slash.mjs +107 -0
- package/src/config/contract.mjs +56 -0
- package/src/config/cursor-rules/discover.mjs +416 -0
- package/src/config/cursor-rules/index.mjs +39 -0
- package/src/config/cursor-rules/match-globs.mjs +132 -0
- package/src/config/cursor-rules/parse-frontmatter.mjs +222 -0
- package/src/config/cursor-rules/priority.mjs +26 -0
- package/src/config/cursor-rules/profile.mjs +403 -0
- package/src/config/cursor-rules/select.mjs +259 -0
- package/src/config/defaults.mjs +36 -0
- package/src/config/env-overrides.mjs +207 -0
- package/src/config/merge-defaults.mjs +47 -0
- package/src/config/pi-spine-root.mjs +93 -0
- package/src/config/reviewer-context.mjs +243 -0
- package/src/config/settings-fields.mjs +265 -0
- package/src/config/worker-backend.mjs +116 -0
- package/src/config/worker-context.mjs +402 -0
- package/src/config/worker-launch-script.mjs +130 -0
- package/src/config/worktree-setup-hook.mjs +122 -0
- package/src/dashboard/public/dashboard.css +77 -0
- package/src/dashboard/public/dashboard.js +349 -0
- package/src/dashboard/public/index.html +80 -0
- package/src/dashboard/server.mjs +155 -0
- package/src/dashboard/snapshot.mjs +414 -0
- package/src/dashboard/sse.mjs +15 -0
- package/src/dashboard/view.mjs +292 -0
- package/src/doctor/agent-model-inherit.mjs +101 -0
- package/src/doctor/batch-size-guidance.mjs +72 -0
- package/src/doctor/coexistence.mjs +312 -0
- package/src/doctor/rules-manifest.mjs +133 -0
- package/src/doctor/stale-path.mjs +156 -0
- package/src/doctor/stall-config.mjs +108 -0
- package/src/doctor/suggest-max-parallel.mjs +53 -0
- package/src/doctor/task-packet-size.mjs +110 -0
- package/src/doctor/worktree-health.mjs +71 -0
- package/src/migrate/taskplane-config.mjs +116 -0
- package/src/planner/cycles.mjs +63 -0
- package/src/planner/format-plan.mjs +132 -0
- package/src/planner/graph.mjs +99 -0
- package/src/planner/index.mjs +125 -0
- package/src/planner/lanes.mjs +111 -0
- package/src/planner/pending.mjs +39 -0
- package/src/planner/scope.mjs +142 -0
- package/src/process/liveness.mjs +21 -0
- package/src/tasks/packet/discover.mjs +40 -0
- package/src/tasks/packet/index.mjs +81 -0
- package/src/tasks/packet/merge-deps.mjs +79 -0
- package/src/tasks/packet/parse-prompt.mjs +445 -0
- package/src/tasks/packet/parse-status.mjs +118 -0
- package/src/tasks/packet/validate-contract.mjs +115 -0
- package/src/tasks/packet/validate-prompt.mjs +99 -0
- package/src/worker-tools/report-progress.d.mts +18 -0
- package/src/worker-tools/report-progress.mjs +59 -0
- package/src/worker-tools/request-gate.d.mts +17 -0
- package/src/worker-tools/request-gate.mjs +54 -0
- package/templates/agents/reviewer.md +123 -0
- package/templates/agents/supervisor.md +59 -0
- package/templates/agents/worker.md +122 -0
- package/templates/rules-profile.json +27 -0
- package/templates/spine-config.json +64 -0
- package/templates/tasks/CONTEXT.md +30 -0
|
@@ -0,0 +1,806 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ExtensionAPI,
|
|
3
|
+
ExtensionCommandContext,
|
|
4
|
+
} from "@earendil-works/pi-coding-agent";
|
|
5
|
+
import { spawn, spawnSync } from "node:child_process";
|
|
6
|
+
import path from "node:path";
|
|
7
|
+
import { fileURLToPath } from "node:url";
|
|
8
|
+
|
|
9
|
+
import { runSpineSettingsSlash } from "./settings-slash.ts";
|
|
10
|
+
|
|
11
|
+
const PACKAGE_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "..");
|
|
12
|
+
|
|
13
|
+
/** PRD §15.1 slash command names (single `/spine` registration for guide + execute). */
|
|
14
|
+
export const SPINE_SLASH_COMMAND_NAMES = [
|
|
15
|
+
"spine",
|
|
16
|
+
"spine-plan",
|
|
17
|
+
"spine-status",
|
|
18
|
+
"spine-pause",
|
|
19
|
+
"spine-resume",
|
|
20
|
+
"spine-retry-task",
|
|
21
|
+
"spine-skip-task",
|
|
22
|
+
"spine-abort",
|
|
23
|
+
"spine-gate",
|
|
24
|
+
"spine-integrate",
|
|
25
|
+
"spine-settings",
|
|
26
|
+
"spine-deps",
|
|
27
|
+
"spine-dismiss",
|
|
28
|
+
"spine-next",
|
|
29
|
+
"spine-dashboard",
|
|
30
|
+
"spine-validate",
|
|
31
|
+
"spine-handoff",
|
|
32
|
+
] as const;
|
|
33
|
+
|
|
34
|
+
type SpineSlashCommandName = (typeof SPINE_SLASH_COMMAND_NAMES)[number];
|
|
35
|
+
|
|
36
|
+
interface SpineSlashCommandSpec {
|
|
37
|
+
name: SpineSlashCommandName;
|
|
38
|
+
description: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const SPINE_SLASH_COMMANDS: SpineSlashCommandSpec[] = [
|
|
42
|
+
{
|
|
43
|
+
name: "spine",
|
|
44
|
+
description:
|
|
45
|
+
"Detect project state; run batch (usage: /spine <task-id|pending|all>; pending = unfinished tasks) ",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "spine-plan",
|
|
49
|
+
description: "Preview waves and lanes (usage: /spine-plan <all|pending|paths>)",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "spine-status",
|
|
53
|
+
description: "Batch and lane health",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "spine-pause",
|
|
57
|
+
description: "Pause after current tasks",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "spine-resume",
|
|
61
|
+
description: "Resume paused or failed batch (usage: /spine-resume [--force])",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "spine-retry-task",
|
|
65
|
+
description: "Atomically retry a failed task (usage: /spine-retry-task <taskId>)",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "spine-skip-task",
|
|
69
|
+
description: "Skip a failed task and unblock merge (usage: /spine-skip-task <taskId>)",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "spine-abort",
|
|
73
|
+
description: "Abort batch (usage: /spine-abort [--hard])",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "spine-gate",
|
|
77
|
+
description: "Gate inspection and resolution (usage: /spine-gate [approve|reject])",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "spine-integrate",
|
|
81
|
+
description: "Merge orch branch after gate (usage: /spine-integrate [--dry-run])",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "spine-settings",
|
|
85
|
+
description: "Interactive configuration",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "spine-deps",
|
|
89
|
+
description: "Show dependency graph (usage: /spine-deps <all|paths>)",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "spine-dismiss",
|
|
93
|
+
description: "Archive and clear limbo/stale active batch (usage: /spine-dismiss [--reason])",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "spine-next",
|
|
97
|
+
description: "Print suggested next command from reconciliation",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "spine-dashboard",
|
|
101
|
+
description: "Start local dashboard (usage: /spine-dashboard [--port N])",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: "spine-validate",
|
|
105
|
+
description: "Validate task PROMPT packets (usage: /spine-validate [pending|all|task-id])",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "spine-handoff",
|
|
109
|
+
description: "Write operator handoff note (usage: /spine-handoff [--batch ID])",
|
|
110
|
+
},
|
|
111
|
+
];
|
|
112
|
+
|
|
113
|
+
function runSpinePreflight(cwd = process.cwd()) {
|
|
114
|
+
const result = spawnSync(
|
|
115
|
+
process.execPath,
|
|
116
|
+
[path.join(PACKAGE_ROOT, "bin/spine.mjs"), "preflight"],
|
|
117
|
+
{
|
|
118
|
+
cwd,
|
|
119
|
+
encoding: "utf-8",
|
|
120
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
121
|
+
},
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
ok: result.status === 0,
|
|
126
|
+
output: `${result.stdout ?? ""}${result.stderr ?? ""}`.trim(),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function runSpineDeps(argsText: string, cwd = process.cwd()) {
|
|
131
|
+
const tokens = String(argsText ?? "")
|
|
132
|
+
.trim()
|
|
133
|
+
.split(/\s+/)
|
|
134
|
+
.filter(Boolean);
|
|
135
|
+
|
|
136
|
+
const result = spawnSync(
|
|
137
|
+
process.execPath,
|
|
138
|
+
[path.join(PACKAGE_ROOT, "bin/spine-deps.mjs"), ...tokens],
|
|
139
|
+
{
|
|
140
|
+
cwd,
|
|
141
|
+
encoding: "utf-8",
|
|
142
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
143
|
+
},
|
|
144
|
+
);
|
|
145
|
+
|
|
146
|
+
return {
|
|
147
|
+
ok: result.status === 0,
|
|
148
|
+
output: `${result.stdout ?? ""}${result.stderr ?? ""}`.trim(),
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function runSpinePlan(argsText: string, cwd = process.cwd()) {
|
|
153
|
+
const tokens = String(argsText ?? "")
|
|
154
|
+
.trim()
|
|
155
|
+
.split(/\s+/)
|
|
156
|
+
.filter(Boolean);
|
|
157
|
+
|
|
158
|
+
const result = spawnSync(
|
|
159
|
+
process.execPath,
|
|
160
|
+
[path.join(PACKAGE_ROOT, "bin/spine-plan.mjs"), ...tokens],
|
|
161
|
+
{
|
|
162
|
+
cwd,
|
|
163
|
+
encoding: "utf-8",
|
|
164
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
165
|
+
},
|
|
166
|
+
);
|
|
167
|
+
|
|
168
|
+
return {
|
|
169
|
+
ok: result.status === 0,
|
|
170
|
+
output: `${result.stdout ?? ""}${result.stderr ?? ""}`.trim(),
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function runSpineBatchDismiss(argsText: string, cwd = process.cwd()) {
|
|
175
|
+
const tokens = ["dismiss", ...String(argsText ?? "").trim().split(/\s+/).filter(Boolean)];
|
|
176
|
+
|
|
177
|
+
const result = spawnSync(
|
|
178
|
+
process.execPath,
|
|
179
|
+
[path.join(PACKAGE_ROOT, "bin/spine.mjs"), "batch", ...tokens],
|
|
180
|
+
{
|
|
181
|
+
cwd,
|
|
182
|
+
encoding: "utf-8",
|
|
183
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
184
|
+
},
|
|
185
|
+
);
|
|
186
|
+
|
|
187
|
+
return {
|
|
188
|
+
ok: result.status === 0,
|
|
189
|
+
output: `${result.stdout ?? ""}${result.stderr ?? ""}`.trim(),
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
function runSpineBatchAbort(argsText: string, cwd = process.cwd()) {
|
|
194
|
+
const tokens = ["abort", ...String(argsText ?? "").trim().split(/\s+/).filter(Boolean)];
|
|
195
|
+
|
|
196
|
+
const result = spawnSync(
|
|
197
|
+
process.execPath,
|
|
198
|
+
[path.join(PACKAGE_ROOT, "bin/spine.mjs"), "batch", ...tokens],
|
|
199
|
+
{
|
|
200
|
+
cwd,
|
|
201
|
+
encoding: "utf-8",
|
|
202
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
203
|
+
},
|
|
204
|
+
);
|
|
205
|
+
|
|
206
|
+
return {
|
|
207
|
+
ok: result.status === 0,
|
|
208
|
+
output: `${result.stdout ?? ""}${result.stderr ?? ""}`.trim(),
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
function runSpineBatchPauseResume(
|
|
213
|
+
subcommand: "pause" | "resume",
|
|
214
|
+
argsText: string,
|
|
215
|
+
cwd = process.cwd(),
|
|
216
|
+
) {
|
|
217
|
+
const tokens = [subcommand, ...String(argsText ?? "").trim().split(/\s+/).filter(Boolean)];
|
|
218
|
+
|
|
219
|
+
const result = spawnSync(
|
|
220
|
+
process.execPath,
|
|
221
|
+
[path.join(PACKAGE_ROOT, "bin/spine.mjs"), "batch", ...tokens],
|
|
222
|
+
{
|
|
223
|
+
cwd,
|
|
224
|
+
encoding: "utf-8",
|
|
225
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
226
|
+
},
|
|
227
|
+
);
|
|
228
|
+
|
|
229
|
+
return {
|
|
230
|
+
ok: result.status === 0,
|
|
231
|
+
output: `${result.stdout ?? ""}${result.stderr ?? ""}`.trim(),
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
function runSpineBatchRetrySkip(
|
|
236
|
+
subcommand: "retry" | "skip",
|
|
237
|
+
argsText: string,
|
|
238
|
+
cwd = process.cwd(),
|
|
239
|
+
) {
|
|
240
|
+
const tokens = [subcommand, ...String(argsText ?? "").trim().split(/\s+/).filter(Boolean)];
|
|
241
|
+
|
|
242
|
+
const result = spawnSync(
|
|
243
|
+
process.execPath,
|
|
244
|
+
[path.join(PACKAGE_ROOT, "bin/spine.mjs"), "batch", ...tokens],
|
|
245
|
+
{
|
|
246
|
+
cwd,
|
|
247
|
+
encoding: "utf-8",
|
|
248
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
249
|
+
},
|
|
250
|
+
);
|
|
251
|
+
|
|
252
|
+
return {
|
|
253
|
+
ok: result.status === 0,
|
|
254
|
+
output: `${result.stdout ?? ""}${result.stderr ?? ""}`.trim(),
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
function runSpineGate(argsText: string, cwd = process.cwd()) {
|
|
259
|
+
const tokens = String(argsText ?? "")
|
|
260
|
+
.trim()
|
|
261
|
+
.split(/\s+/)
|
|
262
|
+
.filter(Boolean);
|
|
263
|
+
|
|
264
|
+
const result = spawnSync(
|
|
265
|
+
process.execPath,
|
|
266
|
+
[path.join(PACKAGE_ROOT, "bin/spine.mjs"), "gate", ...tokens],
|
|
267
|
+
{
|
|
268
|
+
cwd,
|
|
269
|
+
encoding: "utf-8",
|
|
270
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
271
|
+
},
|
|
272
|
+
);
|
|
273
|
+
|
|
274
|
+
return {
|
|
275
|
+
ok: result.status === 0,
|
|
276
|
+
output: `${result.stdout ?? ""}${result.stderr ?? ""}`.trim(),
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function runSpineIntegrate(argsText: string, cwd = process.cwd()) {
|
|
281
|
+
const tokens = String(argsText ?? "")
|
|
282
|
+
.trim()
|
|
283
|
+
.split(/\s+/)
|
|
284
|
+
.filter(Boolean);
|
|
285
|
+
|
|
286
|
+
const result = spawnSync(
|
|
287
|
+
process.execPath,
|
|
288
|
+
[path.join(PACKAGE_ROOT, "bin/spine.mjs"), "integrate", ...tokens],
|
|
289
|
+
{
|
|
290
|
+
cwd,
|
|
291
|
+
encoding: "utf-8",
|
|
292
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
293
|
+
},
|
|
294
|
+
);
|
|
295
|
+
|
|
296
|
+
return {
|
|
297
|
+
ok: result.status === 0,
|
|
298
|
+
output: `${result.stdout ?? ""}${result.stderr ?? ""}`.trim(),
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
function runSpineTasksValidate(argsText: string, cwd = process.cwd()) {
|
|
303
|
+
const scope = String(argsText ?? "").trim() || "pending";
|
|
304
|
+
const result = spawnSync(
|
|
305
|
+
process.execPath,
|
|
306
|
+
[path.join(PACKAGE_ROOT, "bin/spine.mjs"), "tasks", "validate", scope],
|
|
307
|
+
{
|
|
308
|
+
cwd,
|
|
309
|
+
encoding: "utf-8",
|
|
310
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
311
|
+
},
|
|
312
|
+
);
|
|
313
|
+
|
|
314
|
+
return {
|
|
315
|
+
ok: result.status === 0,
|
|
316
|
+
output: `${result.stdout ?? ""}${result.stderr ?? ""}`.trim(),
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
function runSpineHandoff(argsText: string, cwd = process.cwd()) {
|
|
321
|
+
const tokens = String(argsText ?? "")
|
|
322
|
+
.trim()
|
|
323
|
+
.split(/\s+/)
|
|
324
|
+
.filter(Boolean);
|
|
325
|
+
|
|
326
|
+
const result = spawnSync(
|
|
327
|
+
process.execPath,
|
|
328
|
+
[path.join(PACKAGE_ROOT, "bin/spine.mjs"), "handoff", ...tokens],
|
|
329
|
+
{
|
|
330
|
+
cwd,
|
|
331
|
+
encoding: "utf-8",
|
|
332
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
333
|
+
},
|
|
334
|
+
);
|
|
335
|
+
|
|
336
|
+
return {
|
|
337
|
+
ok: result.status === 0,
|
|
338
|
+
output: `${result.stdout ?? ""}${result.stderr ?? ""}`.trim(),
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
function runSpineNext(argsText: string, cwd = process.cwd()) {
|
|
343
|
+
const tokens = String(argsText ?? "")
|
|
344
|
+
.trim()
|
|
345
|
+
.split(/\s+/)
|
|
346
|
+
.filter(Boolean);
|
|
347
|
+
|
|
348
|
+
const result = spawnSync(
|
|
349
|
+
process.execPath,
|
|
350
|
+
[path.join(PACKAGE_ROOT, "bin/spine.mjs"), "next", ...tokens],
|
|
351
|
+
{
|
|
352
|
+
cwd,
|
|
353
|
+
encoding: "utf-8",
|
|
354
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
355
|
+
},
|
|
356
|
+
);
|
|
357
|
+
|
|
358
|
+
return {
|
|
359
|
+
ok: result.status === 0,
|
|
360
|
+
output: `${result.stdout ?? ""}${result.stderr ?? ""}`.trim(),
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
function runSpineDashboardDetached(argsText: string, cwd = process.cwd()) {
|
|
365
|
+
const tokens = String(argsText ?? "")
|
|
366
|
+
.trim()
|
|
367
|
+
.split(/\s+/)
|
|
368
|
+
.filter(Boolean);
|
|
369
|
+
|
|
370
|
+
const child = spawn(
|
|
371
|
+
process.execPath,
|
|
372
|
+
[path.join(PACKAGE_ROOT, "bin/spine.mjs"), "dashboard", ...tokens],
|
|
373
|
+
{
|
|
374
|
+
cwd,
|
|
375
|
+
detached: true,
|
|
376
|
+
stdio: "ignore",
|
|
377
|
+
},
|
|
378
|
+
);
|
|
379
|
+
child.unref();
|
|
380
|
+
return { ok: true };
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
function runSpineStatus(argsText: string, cwd = process.cwd()) {
|
|
384
|
+
const tokens = String(argsText ?? "")
|
|
385
|
+
.trim()
|
|
386
|
+
.split(/\s+/)
|
|
387
|
+
.filter(Boolean);
|
|
388
|
+
|
|
389
|
+
const result = spawnSync(
|
|
390
|
+
process.execPath,
|
|
391
|
+
[path.join(PACKAGE_ROOT, "bin/spine.mjs"), "status", ...tokens],
|
|
392
|
+
{
|
|
393
|
+
cwd,
|
|
394
|
+
encoding: "utf-8",
|
|
395
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
396
|
+
},
|
|
397
|
+
);
|
|
398
|
+
|
|
399
|
+
return {
|
|
400
|
+
ok: result.status === 0,
|
|
401
|
+
output: `${result.stdout ?? ""}${result.stderr ?? ""}`.trim(),
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
function stubHandler(command: string) {
|
|
406
|
+
return async (_args: string, ctx: ExtensionCommandContext): Promise<void> => {
|
|
407
|
+
ctx.ui.notify(
|
|
408
|
+
`/${command} is not implemented yet (Phase 0 stub). Run \`spine help\` for CLI commands; orchestration lands in a future phase.`,
|
|
409
|
+
"info",
|
|
410
|
+
);
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
async function maybeAutoWriteHandoffOnSessionStart(diagnosis: string | null): Promise<void> {
|
|
415
|
+
let autoWriteOn: string[] = [];
|
|
416
|
+
try {
|
|
417
|
+
const { loadSpineConfig } = await import(path.join(PACKAGE_ROOT, "bin/spine-config.mjs"));
|
|
418
|
+
const loaded = loadSpineConfig(process.cwd());
|
|
419
|
+
if (loaded.error || !loaded.config) return;
|
|
420
|
+
autoWriteOn = loaded.config.handoff?.autoWriteOn ?? [];
|
|
421
|
+
} catch {
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
if (!autoWriteOn.includes("session_start")) return;
|
|
425
|
+
|
|
426
|
+
const activeDiagnoses = new Set([
|
|
427
|
+
"running",
|
|
428
|
+
"paused",
|
|
429
|
+
"needs_retry",
|
|
430
|
+
"worker_orphaned",
|
|
431
|
+
"engine_orphaned",
|
|
432
|
+
"state_drift",
|
|
433
|
+
"needs_merge",
|
|
434
|
+
"needs_integrate",
|
|
435
|
+
"needs_replan",
|
|
436
|
+
"failed",
|
|
437
|
+
]);
|
|
438
|
+
if (!diagnosis || !activeDiagnoses.has(diagnosis)) return;
|
|
439
|
+
|
|
440
|
+
runSpineHandoff("");
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
async function spineEntryHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
444
|
+
const scope = args.trim();
|
|
445
|
+
const status = runSpineStatus("--json");
|
|
446
|
+
let reconciliation: {
|
|
447
|
+
diagnosis?: string | null;
|
|
448
|
+
headline?: string;
|
|
449
|
+
suggestedCommand?: string;
|
|
450
|
+
alternatives?: string[];
|
|
451
|
+
} = {};
|
|
452
|
+
|
|
453
|
+
if (status.ok && status.output) {
|
|
454
|
+
try {
|
|
455
|
+
reconciliation = JSON.parse(status.output) as typeof reconciliation;
|
|
456
|
+
} catch {
|
|
457
|
+
// fall through to preflight guidance
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
const diagnosis = reconciliation.diagnosis ?? null;
|
|
462
|
+
|
|
463
|
+
await maybeAutoWriteHandoffOnSessionStart(diagnosis);
|
|
464
|
+
|
|
465
|
+
if (diagnosis === "limbo_stale" || diagnosis === "completed_manual") {
|
|
466
|
+
ctx.ui.notify(
|
|
467
|
+
`${reconciliation.headline ?? "Batch is in limbo"}
|
|
468
|
+
|
|
469
|
+
→ ${reconciliation.suggestedCommand ?? "spine batch dismiss"}
|
|
470
|
+
|
|
471
|
+
Never pause a terminal limbo batch — dismiss or complete to clear active state.`,
|
|
472
|
+
"warning",
|
|
473
|
+
);
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
if (
|
|
478
|
+
diagnosis === "needs_retry" ||
|
|
479
|
+
diagnosis === "needs_merge" ||
|
|
480
|
+
diagnosis === "needs_integrate" ||
|
|
481
|
+
diagnosis === "running" ||
|
|
482
|
+
diagnosis === "paused" ||
|
|
483
|
+
diagnosis === "failed" ||
|
|
484
|
+
diagnosis === "aborted"
|
|
485
|
+
) {
|
|
486
|
+
ctx.ui.notify(
|
|
487
|
+
`${reconciliation.headline ?? "Active batch requires attention"}
|
|
488
|
+
|
|
489
|
+
→ ${reconciliation.suggestedCommand ?? "spine status --diagnose"}`,
|
|
490
|
+
diagnosis === "running" ? "info" : "warning",
|
|
491
|
+
);
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
if (diagnosis === "completed") {
|
|
496
|
+
ctx.ui.notify(
|
|
497
|
+
`${reconciliation.headline ?? "Batch completed"}
|
|
498
|
+
|
|
499
|
+
→ ${reconciliation.suggestedCommand ?? "spine preflight"}`,
|
|
500
|
+
"info",
|
|
501
|
+
);
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
const preflight = runSpinePreflight();
|
|
506
|
+
|
|
507
|
+
if (!preflight.ok) {
|
|
508
|
+
ctx.ui.notify(
|
|
509
|
+
`Batch preflight failed — fix issues before starting a batch.
|
|
510
|
+
|
|
511
|
+
${preflight.output}
|
|
512
|
+
|
|
513
|
+
Run \`spine preflight\` for details.`,
|
|
514
|
+
"error",
|
|
515
|
+
);
|
|
516
|
+
return;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
if (scope === "all" || scope.length > 0) {
|
|
520
|
+
const startScope = scope === "all" ? "all" : scope;
|
|
521
|
+
const startResult = spawnSync(
|
|
522
|
+
process.execPath,
|
|
523
|
+
[path.join(PACKAGE_ROOT, "bin/spine.mjs"), "batch", "start", startScope],
|
|
524
|
+
{
|
|
525
|
+
cwd: process.cwd(),
|
|
526
|
+
encoding: "utf-8",
|
|
527
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
528
|
+
env: { ...process.env, SPINE_WORKER_STUB: process.env.SPINE_WORKER_STUB ?? "1" },
|
|
529
|
+
},
|
|
530
|
+
);
|
|
531
|
+
const output = `${startResult.stdout ?? ""}${startResult.stderr ?? ""}`.trim();
|
|
532
|
+
ctx.ui.notify(
|
|
533
|
+
startResult.status === 0
|
|
534
|
+
? output || `Batch start succeeded for scope: ${startScope}`
|
|
535
|
+
: `Batch start failed:\n\n${output}`,
|
|
536
|
+
startResult.status === 0 ? "info" : "error",
|
|
537
|
+
);
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
ctx.ui.notify(
|
|
542
|
+
`${reconciliation.headline ?? "No active batch — ready to plan or start"}
|
|
543
|
+
|
|
544
|
+
→ ${reconciliation.suggestedCommand ?? "spine preflight"}
|
|
545
|
+
|
|
546
|
+
Run \`/spine pending\`, \`/spine all\` (pending-filtered), or \`/spine <task-id>\` after preflight. CLI alias: \`spine run pending\`.`,
|
|
547
|
+
"info",
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
async function spinePlanHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
552
|
+
const preflight = runSpinePreflight();
|
|
553
|
+
if (!preflight.ok) {
|
|
554
|
+
ctx.ui.notify(
|
|
555
|
+
`Batch preflight failed — fix issues before planning.
|
|
556
|
+
|
|
557
|
+
${preflight.output}
|
|
558
|
+
`,
|
|
559
|
+
"error",
|
|
560
|
+
);
|
|
561
|
+
return;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
const plan = runSpinePlan(args);
|
|
565
|
+
if (!plan.ok) {
|
|
566
|
+
ctx.ui.notify(plan.output || "spine plan failed", "error");
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
ctx.ui.notify(plan.output || "plan generated", "info");
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
async function spineStatusHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
574
|
+
const status = runSpineStatus(args);
|
|
575
|
+
if (!status.ok) {
|
|
576
|
+
ctx.ui.notify(status.output || "spine status failed", "error");
|
|
577
|
+
return;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
ctx.ui.notify(status.output || "status unavailable", "info");
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
async function spineDismissHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
584
|
+
const result = runSpineBatchDismiss(args);
|
|
585
|
+
if (!result.ok) {
|
|
586
|
+
ctx.ui.notify(result.output || "spine batch dismiss failed", "error");
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
ctx.ui.notify(result.output || "batch dismissed", "info");
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
async function spinePauseHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
594
|
+
const result = runSpineBatchPauseResume("pause", args);
|
|
595
|
+
if (!result.ok) {
|
|
596
|
+
ctx.ui.notify(result.output || "spine batch pause failed", "error");
|
|
597
|
+
return;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
ctx.ui.notify(result.output || "batch paused", "info");
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
async function spineResumeHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
604
|
+
const result = runSpineBatchPauseResume("resume", args);
|
|
605
|
+
if (!result.ok) {
|
|
606
|
+
ctx.ui.notify(result.output || "spine batch resume failed", "error");
|
|
607
|
+
return;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
ctx.ui.notify(result.output || "batch resumed", "info");
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
async function spineRetryTaskHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
614
|
+
const taskId = args.trim();
|
|
615
|
+
if (!taskId) {
|
|
616
|
+
ctx.ui.notify("Usage: /spine-retry-task <taskId>", "error");
|
|
617
|
+
return;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
const result = runSpineBatchRetrySkip("retry", taskId);
|
|
621
|
+
if (!result.ok) {
|
|
622
|
+
ctx.ui.notify(result.output || "spine batch retry failed", "error");
|
|
623
|
+
return;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
ctx.ui.notify(result.output || `task ${taskId} reset for retry`, "info");
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
async function spineAbortHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
630
|
+
const result = runSpineBatchAbort(args);
|
|
631
|
+
if (!result.ok) {
|
|
632
|
+
ctx.ui.notify(result.output || "spine batch abort failed", "error");
|
|
633
|
+
return;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
ctx.ui.notify(result.output || "batch aborted", "info");
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
async function spineSkipTaskHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
640
|
+
const taskId = args.trim();
|
|
641
|
+
if (!taskId) {
|
|
642
|
+
ctx.ui.notify("Usage: /spine-skip-task <taskId>", "error");
|
|
643
|
+
return;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
const result = runSpineBatchRetrySkip("skip", taskId);
|
|
647
|
+
if (!result.ok) {
|
|
648
|
+
ctx.ui.notify(result.output || "spine batch skip failed", "error");
|
|
649
|
+
return;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
ctx.ui.notify(result.output || `task ${taskId} skipped`, "info");
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
async function spineNextHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
656
|
+
const result = runSpineNext(args);
|
|
657
|
+
if (!result.ok) {
|
|
658
|
+
ctx.ui.notify(result.output || "spine next failed", "error");
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
ctx.ui.notify(result.output || "no next action", "info");
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
async function spineValidateHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
666
|
+
const result = runSpineTasksValidate(args);
|
|
667
|
+
if (!result.ok) {
|
|
668
|
+
ctx.ui.notify(result.output || "spine tasks validate failed", "error");
|
|
669
|
+
return;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
ctx.ui.notify(result.output || "task PROMPT packets valid", "info");
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
async function spineHandoffHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
676
|
+
const result = runSpineHandoff(args);
|
|
677
|
+
if (!result.ok) {
|
|
678
|
+
ctx.ui.notify(result.output || "spine handoff failed", "error");
|
|
679
|
+
return;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
const { recordHandoffWritten } = await import(
|
|
683
|
+
path.join(PACKAGE_ROOT, "src/batch/journal.mjs")
|
|
684
|
+
);
|
|
685
|
+
const status = runSpineStatus("--json");
|
|
686
|
+
if (status.ok && status.output) {
|
|
687
|
+
try {
|
|
688
|
+
const reconciliation = JSON.parse(status.output) as {
|
|
689
|
+
batchId?: string | null;
|
|
690
|
+
diagnosis?: string | null;
|
|
691
|
+
};
|
|
692
|
+
if (reconciliation.batchId) {
|
|
693
|
+
recordHandoffWritten(process.cwd(), reconciliation.batchId, {
|
|
694
|
+
handoffPath: ".spine/handoff.md",
|
|
695
|
+
diagnosis: reconciliation.diagnosis ?? "unknown",
|
|
696
|
+
batchId: reconciliation.batchId,
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
} catch {
|
|
700
|
+
// handoff file still written; journal event is best-effort
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
ctx.ui.notify(result.output || "handoff written", "info");
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
async function spineGateHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
708
|
+
const result = runSpineGate(args);
|
|
709
|
+
if (!result.ok) {
|
|
710
|
+
ctx.ui.notify(result.output || "spine gate failed", "error");
|
|
711
|
+
return;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
ctx.ui.notify(result.output || "gate updated", "info");
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
async function spineIntegrateHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
718
|
+
const result = runSpineIntegrate(args);
|
|
719
|
+
if (!result.ok) {
|
|
720
|
+
ctx.ui.notify(result.output || "spine integrate failed", "error");
|
|
721
|
+
return;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
ctx.ui.notify(result.output || "integrate completed", "info");
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
async function spineSettingsHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
728
|
+
await runSpineSettingsSlash(args, ctx);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
async function spineDepsHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
732
|
+
const scope = args.trim() || "all";
|
|
733
|
+
const deps = runSpineDeps(scope);
|
|
734
|
+
if (!deps.ok) {
|
|
735
|
+
ctx.ui.notify(deps.output || "spine deps failed", "error");
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
const maxChars = 8000;
|
|
740
|
+
const output =
|
|
741
|
+
deps.output.length > maxChars
|
|
742
|
+
? `${deps.output.slice(0, maxChars)}\n\n… (truncated; run \`spine deps ${scope}\` for full output)`
|
|
743
|
+
: deps.output;
|
|
744
|
+
|
|
745
|
+
ctx.ui.notify(output || "dependency graph unavailable", "info");
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
async function spineDashboardHandler(args: string, ctx: ExtensionCommandContext): Promise<void> {
|
|
749
|
+
const { resolveDashboardPortWithSource, formatDashboardNotifyMessage, DEFAULT_DASHBOARD_HOST } =
|
|
750
|
+
await import(path.join(PACKAGE_ROOT, "bin/spine-dashboard.mjs"));
|
|
751
|
+
|
|
752
|
+
const portMatch = args.match(/--port\s+(\d+)/);
|
|
753
|
+
const cliPort = portMatch ? Number(portMatch[1]) : undefined;
|
|
754
|
+
const { port, portSource } = resolveDashboardPortWithSource(process.cwd(), cliPort);
|
|
755
|
+
|
|
756
|
+
runSpineDashboardDetached(args);
|
|
757
|
+
ctx.ui.notify(
|
|
758
|
+
formatDashboardNotifyMessage({ host: DEFAULT_DASHBOARD_HOST, port, portSource }),
|
|
759
|
+
"info",
|
|
760
|
+
);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/** Register all PRD §15.1 pi slash commands with Phase 0 stub handlers. */
|
|
764
|
+
export function registerSpineSlashCommands(pi: ExtensionAPI): void {
|
|
765
|
+
for (const { name, description } of SPINE_SLASH_COMMANDS) {
|
|
766
|
+
pi.registerCommand(name, {
|
|
767
|
+
description,
|
|
768
|
+
handler:
|
|
769
|
+
name === "spine"
|
|
770
|
+
? spineEntryHandler
|
|
771
|
+
: name === "spine-plan"
|
|
772
|
+
? spinePlanHandler
|
|
773
|
+
: name === "spine-status"
|
|
774
|
+
? spineStatusHandler
|
|
775
|
+
: name === "spine-dismiss"
|
|
776
|
+
? spineDismissHandler
|
|
777
|
+
: name === "spine-next"
|
|
778
|
+
? spineNextHandler
|
|
779
|
+
: name === "spine-pause"
|
|
780
|
+
? spinePauseHandler
|
|
781
|
+
: name === "spine-resume"
|
|
782
|
+
? spineResumeHandler
|
|
783
|
+
: name === "spine-retry-task"
|
|
784
|
+
? spineRetryTaskHandler
|
|
785
|
+
: name === "spine-skip-task"
|
|
786
|
+
? spineSkipTaskHandler
|
|
787
|
+
: name === "spine-abort"
|
|
788
|
+
? spineAbortHandler
|
|
789
|
+
: name === "spine-gate"
|
|
790
|
+
? spineGateHandler
|
|
791
|
+
: name === "spine-integrate"
|
|
792
|
+
? spineIntegrateHandler
|
|
793
|
+
: name === "spine-settings"
|
|
794
|
+
? spineSettingsHandler
|
|
795
|
+
: name === "spine-dashboard"
|
|
796
|
+
? spineDashboardHandler
|
|
797
|
+
: name === "spine-deps"
|
|
798
|
+
? spineDepsHandler
|
|
799
|
+
: name === "spine-validate"
|
|
800
|
+
? spineValidateHandler
|
|
801
|
+
: name === "spine-handoff"
|
|
802
|
+
? spineHandoffHandler
|
|
803
|
+
: stubHandler(name),
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
}
|