@gobing-ai/spur 0.4.3 → 0.4.5
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/.claude-plugin/marketplace.json +1 -1
- package/config/rules/docs/sourced-api-claims.yaml +3 -2
- package/config/rules/quality/coverage-gate.yaml +13 -0
- package/config/rules/recommended-pre-check.yaml +11 -5
- package/config/rules/strict/runtime-boundaries.yaml +3 -0
- package/config/rules/surface/check-cli-surface.yaml +1 -3
- package/config/templates/AGENTS.md +7 -0
- package/config/workflows/feature-verification.yaml +9 -1
- package/config/workflows/task-lifecycle.yaml +50 -0
- package/config/workflows/task-pipeline.yaml +31 -65
- package/package.json +10 -10
- package/plugins/sp/agents/super-reviewer.md +11 -24
- package/plugins/sp/commands/dev-changelog.md +1 -1
- package/plugins/sp/commands/dev-gitmsg.md +6 -2
- package/plugins/sp/commands/dev-handover.md +1 -0
- package/plugins/sp/commands/dev-job-dump.md +2 -1
- package/plugins/sp/commands/dev-refine.md +14 -2
- package/plugins/sp/commands/dev-refineall.md +7 -1
- package/plugins/sp/commands/dev-review.md +1 -0
- package/plugins/sp/lib/history-anatomy.generated.mjs +18 -18
- package/plugins/sp/lib/idea-handoff.generated.mjs +91 -91
- package/plugins/sp/lib/inline-run.generated.mjs +233 -277
- package/plugins/sp/lib/plan-projection.generated.mjs +62 -38
- package/plugins/sp/lib/quality-gate.generated.d.mts +1 -0
- package/plugins/sp/lib/quality-gate.generated.mjs +13793 -13966
- package/plugins/sp/lib/residual-scan.generated.mjs +20 -34
- package/plugins/sp/lib/step-profile.generated.mjs +8 -8
- package/plugins/sp/plugin.json +1 -1
- package/plugins/sp/scripts/batch-plan.mjs +62 -40
- package/plugins/sp/scripts/batch-preflight.mjs +34 -12
- package/plugins/sp/scripts/commit-guard.mjs +6 -6
- package/plugins/sp/scripts/daily-summary/daily-summary.mjs +26 -28
- package/plugins/sp/scripts/dogfood-testing/detect-pipeline-driving.mjs +11 -11
- package/plugins/sp/scripts/dogfood-testing/validate-report.mjs +4 -4
- package/plugins/sp/scripts/feature-verification-steps.mjs +15 -4
- package/plugins/sp/scripts/feature-verification-steps.ts +29 -1
- package/plugins/sp/scripts/history-anatomy-cache.mjs +19 -19
- package/plugins/sp/scripts/idea-handoff.mjs +2 -2
- package/plugins/sp/scripts/inline-run-dispatch.mjs +2 -2
- package/plugins/sp/scripts/inline-run-setup.mjs +20 -20
- package/plugins/sp/scripts/persist-out-check.mjs +5 -5
- package/plugins/sp/scripts/pr-reviewing.mjs +13 -13
- package/plugins/sp/scripts/quality-gate.mjs +13715 -13884
- package/plugins/sp/scripts/residual-scan.mjs +24 -38
- package/plugins/sp/scripts/residual-scan.ts +4 -6
- package/plugins/sp/scripts/run-summary.mjs +15 -15
- package/plugins/sp/scripts/script-root.mjs +6 -6
- package/plugins/sp/scripts/session-timeline.mjs +16 -16
- package/plugins/sp/scripts/task-diffstat.mjs +8 -8
- package/plugins/sp/scripts/workflow-step-profile.mjs +12 -12
- package/plugins/sp/scripts/wrapup-drift-probe.mjs +9 -9
- package/plugins/sp/scripts/wrapup-steps.mjs +25 -25
- package/plugins/sp/skills/code-verification/SKILL.md +1 -2
- package/plugins/sp/skills/code-verification/references/verdict-schema.md +11 -32
- package/plugins/sp/skills/next-router/SKILL.md +3 -1
- package/plugins/sp/skills/next-router/references/routing-table.md +9 -3
- package/plugins/sp/skills/spur-cli/references/tasks.md +24 -4
- package/plugins/sp/skills/spur-dev/references/cross-cutting.md +8 -1
- package/plugins/sp/skills/spur-dev/references/dev-operations.md +37 -11
- package/plugins/sp/skills/spur-dev/references/execution-batch.md +6 -3
- package/plugins/sp/skills/spur-dev/references/execution-workflow.md +7 -11
- package/plugins/sp/skills/spur-dev/references/flag-glossary.md +4 -2
- package/plugins/sp/skills/spur-dev/references/inline-pipeline-driver.md +29 -8
- package/schemas/section-matrix.schema.json +3 -2
- package/spur.js +24597 -32769
- package/web/_astro/{BoardApp.5IIl2O-z.js → BoardApp.Niubpe6z.js} +1 -1
- package/web/_astro/{BoardApp.Drnx-KeM.js → BoardApp.hF0RAIrg.js} +112 -112
- package/web/_astro/TaskDetail.DJpapt38.js +1 -0
- package/web/_astro/{arc.j2EVkYVd.js → arc.BgKcK0i8.js} +1 -1
- package/web/_astro/{architectureDiagram-3BPJPVTR.DZWSFqEG.js → architectureDiagram-3BPJPVTR.ChP-Ig0V.js} +1 -1
- package/web/_astro/{blockDiagram-GPEHLZMM.DE6GpXCN.js → blockDiagram-GPEHLZMM.BVaCBoeN.js} +1 -1
- package/web/_astro/{c4Diagram-AAUBKEIU.DoVR1G6B.js → c4Diagram-AAUBKEIU.CHSDpEO5.js} +1 -1
- package/web/_astro/channel.DkpvN2tD.js +1 -0
- package/web/_astro/{chunk-2J33WTMH.Do6-Gbyf.js → chunk-2J33WTMH.MYRcYVRa.js} +1 -1
- package/web/_astro/{chunk-4BX2VUAB.BYV1HGHx.js → chunk-4BX2VUAB.S5j22Zqa.js} +1 -1
- package/web/_astro/{chunk-55IACEB6.CvI1zkrc.js → chunk-55IACEB6.gciRPvmZ.js} +1 -1
- package/web/_astro/{chunk-727SXJPM.DNGSCRlX.js → chunk-727SXJPM.CdqrSQkX.js} +1 -1
- package/web/_astro/{chunk-AQP2D5EJ.DXhhgT5z.js → chunk-AQP2D5EJ.CyokdHT3.js} +1 -1
- package/web/_astro/{chunk-FMBD7UC4.dzkRKP2u.js → chunk-FMBD7UC4.Bg9KJhjW.js} +1 -1
- package/web/_astro/{chunk-ND2GUHAM.DujGLeEf.js → chunk-ND2GUHAM.1gxxI-vD.js} +1 -1
- package/web/_astro/{chunk-QZHKN3VN.BWtIT3ZU.js → chunk-QZHKN3VN.DDEYtCKU.js} +1 -1
- package/web/_astro/{classDiagram-4FO5ZUOK.DyApg0Nn.js → classDiagram-4FO5ZUOK.Ch3zi37T.js} +1 -1
- package/web/_astro/{classDiagram-v2-Q7XG4LA2.DyApg0Nn.js → classDiagram-v2-Q7XG4LA2.Ch3zi37T.js} +1 -1
- package/web/_astro/{cose-bilkent-S5V4N54A.DJQB-u_l.js → cose-bilkent-S5V4N54A.D2q5AINI.js} +1 -1
- package/web/_astro/{cynefin-OW5HDTMX.bi3D_siV.js → cynefin-OW5HDTMX.BA9kC2YT.js} +1 -1
- package/web/_astro/{dagre-BM42HDAG.C-f7TrRg.js → dagre-BM42HDAG.CHO08nRp.js} +1 -1
- package/web/_astro/{diagram-2AECGRRQ.DrPfjHQB.js → diagram-2AECGRRQ.BfFQt0LW.js} +1 -1
- package/web/_astro/{diagram-5GNKFQAL.C9S4WUHO.js → diagram-5GNKFQAL.CHMwMTe4.js} +1 -1
- package/web/_astro/{diagram-KO2AKTUF.Dzzye8QH.js → diagram-KO2AKTUF.BJ-7gK-w.js} +1 -1
- package/web/_astro/{diagram-LMA3HP47.DX-LRiof.js → diagram-LMA3HP47.C5xqcc0t.js} +1 -1
- package/web/_astro/{diagram-OG6HWLK6.Z-kAKwIz.js → diagram-OG6HWLK6.C2pQjfrC.js} +1 -1
- package/web/_astro/{erDiagram-TEJ5UH35.D6dyClSv.js → erDiagram-TEJ5UH35._FoNyxgC.js} +1 -1
- package/web/_astro/{flowDiagram-I6XJVG4X.Cx3q2cxD.js → flowDiagram-I6XJVG4X.B_ENkT2I.js} +1 -1
- package/web/_astro/{ganttDiagram-6RSMTGT7.DU3gH6CT.js → ganttDiagram-6RSMTGT7.B3q8h77C.js} +1 -1
- package/web/_astro/{gitGraphDiagram-PVQCEYII.ISmCnJ87.js → gitGraphDiagram-PVQCEYII.QWZFDboZ.js} +1 -1
- package/web/_astro/index.BFyW13JJ.css +1 -0
- package/web/_astro/{infoDiagram-5YYISTIA.DR6_iNOK.js → infoDiagram-5YYISTIA.Cs6eEc92.js} +1 -1
- package/web/_astro/{ishikawaDiagram-YF4QCWOH.D7wY-ZGA.js → ishikawaDiagram-YF4QCWOH.BU9DJMHA.js} +1 -1
- package/web/_astro/{journeyDiagram-JHISSGLW.DkP9-WK8.js → journeyDiagram-JHISSGLW.D35k6Jpe.js} +1 -1
- package/web/_astro/{kanban-definition-UN3LZRKU.wtgY98M2.js → kanban-definition-UN3LZRKU.DBqcAT4m.js} +1 -1
- package/web/_astro/{linear.CI6djNi7.js → linear.D-LSNK8W.js} +1 -1
- package/web/_astro/{mermaid.core.CuQPxS8b.js → mermaid.core.CSruWVOa.js} +4 -4
- package/web/_astro/{mindmap-definition-RKZ34NQL.5HNIEG7R.js → mindmap-definition-RKZ34NQL.BiFaUsfj.js} +1 -1
- package/web/_astro/{pieDiagram-4H26LBE5.CchhDFjE.js → pieDiagram-4H26LBE5.D1KTKqb9.js} +1 -1
- package/web/_astro/{quadrantDiagram-W4KKPZXB.PYXXJPSJ.js → quadrantDiagram-W4KKPZXB.DBHflsMG.js} +1 -1
- package/web/_astro/{requirementDiagram-4Y6WPE33.cUQuNAKU.js → requirementDiagram-4Y6WPE33.hwX9CNdk.js} +1 -1
- package/web/_astro/{sankeyDiagram-5OEKKPKP.BO7MnRIA.js → sankeyDiagram-5OEKKPKP.DkI8mJiE.js} +1 -1
- package/web/_astro/{sequenceDiagram-3UESZ5HK.D9bElyD6.js → sequenceDiagram-3UESZ5HK.DMz7jBDx.js} +1 -1
- package/web/_astro/{stateDiagram-AJRCARHV.DhGdRz7I.js → stateDiagram-AJRCARHV.B6Ef2xJ1.js} +1 -1
- package/web/_astro/{stateDiagram-v2-BHNVJYJU.5GvLeAoL.js → stateDiagram-v2-BHNVJYJU.CgoaufB9.js} +1 -1
- package/web/_astro/{timeline-definition-PNZ67QCA.LtAT9haM.js → timeline-definition-PNZ67QCA.B3c8h1t-.js} +1 -1
- package/web/_astro/{vennDiagram-CIIHVFJN.DRth1yLA.js → vennDiagram-CIIHVFJN.BdHPAxAb.js} +1 -1
- package/web/_astro/{wardleyDiagram-YWT4CUSO.h9MlZfcr.js → wardleyDiagram-YWT4CUSO.BrJXPPAj.js} +1 -1
- package/web/_astro/{xychartDiagram-2RQKCTM6.DHqy9DYA.js → xychartDiagram-2RQKCTM6.CMH5yFsV.js} +1 -1
- package/web/index.html +2 -2
- package/web/spur_logo.svg +1 -1
- package/web/_astro/TaskDetail.Ci4LNn9S.js +0 -1
- package/web/_astro/channel.DmdDxGsq.js +0 -1
- package/web/_astro/index.Do2lLdgo.css +0 -1
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
// packages/app/src/services/task-freeze.ts
|
|
2
|
+
function isTaskFrozen(status) {
|
|
3
|
+
return status?.toLowerCase() === "deprecated";
|
|
4
|
+
}
|
|
5
|
+
function undeprecateTaskCommand(wbs) {
|
|
6
|
+
return `spur task update ${wbs} todo`;
|
|
7
|
+
}
|
|
8
|
+
|
|
1
9
|
// packages/app/src/services/planning-admission.ts
|
|
2
10
|
var NON_ABORTING_PREFLIGHT_CODES = new Set([
|
|
3
11
|
"L4.scenario-unverified",
|
|
@@ -49,6 +57,13 @@ function quickReadiness(input) {
|
|
|
49
57
|
};
|
|
50
58
|
}
|
|
51
59
|
}
|
|
60
|
+
if (isTaskFrozen(status)) {
|
|
61
|
+
return {
|
|
62
|
+
action: "skipped",
|
|
63
|
+
code: "DEPRECATED",
|
|
64
|
+
reason: `quick-readiness: deprecated (frozen) — no ${operation} hop; un-deprecate with \`${undeprecateTaskCommand(input.wbs)}\` (${input.wbs})`
|
|
65
|
+
};
|
|
66
|
+
}
|
|
52
67
|
if (status === "cancelled" || status === "done") {
|
|
53
68
|
if (operation === "verify" && input.force === true) {
|
|
54
69
|
return {
|
|
@@ -73,10 +88,12 @@ function quickReadiness(input) {
|
|
|
73
88
|
if (operation === "run" && input.dependencies && input.dependencies.length > 0) {
|
|
74
89
|
const unmet = input.dependencies.filter((d) => (input.depStatuses?.[d] ?? "missing").toLowerCase() !== "done");
|
|
75
90
|
if (unmet.length > 0) {
|
|
91
|
+
const frozen = unmet.filter((d) => isTaskFrozen(input.depStatuses?.[d]));
|
|
92
|
+
const hint = frozen.length > 0 ? ` — ${frozen.map((d) => `${d} deprecated (frozen); re-point the edge or un-deprecate: \`${undeprecateTaskCommand(d)}\``).join("; ")}` : "";
|
|
76
93
|
return {
|
|
77
94
|
action: "blocked",
|
|
78
95
|
code: "DEP",
|
|
79
|
-
reason: `quick-readiness: unmet deps — ${unmet.join(", ")} (${input.wbs})`,
|
|
96
|
+
reason: `quick-readiness: unmet deps — ${unmet.join(", ")} (${input.wbs})${hint}`,
|
|
80
97
|
unmetDeps: unmet
|
|
81
98
|
};
|
|
82
99
|
}
|
|
@@ -161,6 +178,13 @@ function preflightTask(input) {
|
|
|
161
178
|
reason: `dev-next: blocked — do not launch pipeline; human/handover first (${input.wbs})`
|
|
162
179
|
};
|
|
163
180
|
}
|
|
181
|
+
if (isTaskFrozen(status)) {
|
|
182
|
+
return {
|
|
183
|
+
action: "skip",
|
|
184
|
+
code: "DEPRECATED",
|
|
185
|
+
reason: `dev-next: deprecated (frozen) — un-deprecate first: ${undeprecateTaskCommand(input.wbs)} (${input.wbs})`
|
|
186
|
+
};
|
|
187
|
+
}
|
|
164
188
|
if (status === "todo" || status === "backlog") {
|
|
165
189
|
const unmet = deps.filter((d) => {
|
|
166
190
|
const st = (depStatuses[d] ?? "missing").toLowerCase();
|
|
@@ -269,21 +293,21 @@ function accumulate(acc, row, ts) {
|
|
|
269
293
|
if (row.type === "message") {
|
|
270
294
|
const m = row.message;
|
|
271
295
|
if (m?.role === "assistant") {
|
|
272
|
-
const
|
|
273
|
-
for (const b of
|
|
296
|
+
const blocks = Array.isArray(m.content) ? m.content : [];
|
|
297
|
+
for (const b of blocks) {
|
|
274
298
|
if (b.type === "toolCall" && b.id) {
|
|
275
299
|
acc.toolIds.add(b.id);
|
|
276
300
|
if (b.name && OPERATOR_TOOLS.has(b.name))
|
|
277
301
|
acc.asks.set(b.id, ts);
|
|
278
302
|
}
|
|
279
303
|
}
|
|
280
|
-
const
|
|
281
|
-
if (
|
|
304
|
+
const u = m.usage;
|
|
305
|
+
if (u && row.id)
|
|
282
306
|
acc.messages.set(row.id, {
|
|
283
|
-
input:
|
|
284
|
-
cacheCreate:
|
|
285
|
-
cacheRead:
|
|
286
|
-
output:
|
|
307
|
+
input: u.input ?? 0,
|
|
308
|
+
cacheCreate: u.cacheWrite ?? 0,
|
|
309
|
+
cacheRead: u.cacheRead ?? 0,
|
|
310
|
+
output: u.output ?? 0
|
|
287
311
|
});
|
|
288
312
|
} else if (m?.role === "toolResult" && m.toolCallId && acc.asks.has(m.toolCallId)) {
|
|
289
313
|
acc.askMs += ts - (acc.asks.get(m.toolCallId) ?? ts);
|
|
@@ -925,34 +949,34 @@ function hostText(item) {
|
|
|
925
949
|
return hostDecided ? `${item.text} [${item.outcome}]` : item.text;
|
|
926
950
|
}
|
|
927
951
|
export {
|
|
928
|
-
|
|
929
|
-
validatePhaseTable,
|
|
930
|
-
taskPhaseChildren,
|
|
931
|
-
sumTokens,
|
|
932
|
-
sumSpans,
|
|
933
|
-
skillInvocationPrompt,
|
|
934
|
-
sensitiveReasonForPath,
|
|
935
|
-
scheduleBatch,
|
|
936
|
-
quickReadiness,
|
|
937
|
-
promptText,
|
|
938
|
-
preflightTask,
|
|
939
|
-
planLetter,
|
|
940
|
-
planChild,
|
|
941
|
-
newAcc,
|
|
942
|
-
isCompaction,
|
|
943
|
-
insertOnEntry,
|
|
944
|
-
hostText,
|
|
945
|
-
hostStatus,
|
|
946
|
-
formatTokens,
|
|
947
|
-
formatTokenSplit,
|
|
948
|
-
formatDuration,
|
|
949
|
-
classifyFeaturePreflightFindings,
|
|
950
|
-
buildRunSummary,
|
|
951
|
-
buildPhasedPlan,
|
|
952
|
-
buildBatchPlan,
|
|
953
|
-
actorSplit,
|
|
954
|
-
accumulate,
|
|
955
|
-
SENSITIVE_PREFIXES,
|
|
952
|
+
NON_ABORTING_PREFLIGHT_CODES,
|
|
956
953
|
SENSITIVE_GLOBS,
|
|
957
|
-
|
|
954
|
+
SENSITIVE_PREFIXES,
|
|
955
|
+
accumulate,
|
|
956
|
+
actorSplit,
|
|
957
|
+
buildBatchPlan,
|
|
958
|
+
buildPhasedPlan,
|
|
959
|
+
buildRunSummary,
|
|
960
|
+
classifyFeaturePreflightFindings,
|
|
961
|
+
formatDuration,
|
|
962
|
+
formatTokenSplit,
|
|
963
|
+
formatTokens,
|
|
964
|
+
hostStatus,
|
|
965
|
+
hostText,
|
|
966
|
+
insertOnEntry,
|
|
967
|
+
isCompaction,
|
|
968
|
+
newAcc,
|
|
969
|
+
planChild,
|
|
970
|
+
planLetter,
|
|
971
|
+
preflightTask,
|
|
972
|
+
promptText,
|
|
973
|
+
quickReadiness,
|
|
974
|
+
scheduleBatch,
|
|
975
|
+
sensitiveReasonForPath,
|
|
976
|
+
skillInvocationPrompt,
|
|
977
|
+
sumSpans,
|
|
978
|
+
sumTokens,
|
|
979
|
+
taskPhaseChildren,
|
|
980
|
+
validatePhaseTable,
|
|
981
|
+
zeroTokens
|
|
958
982
|
};
|
|
@@ -78,6 +78,7 @@ export declare interface BuildReceiptInput {
|
|
|
78
78
|
}
|
|
79
79
|
export declare function buildReceipt(input: BuildReceiptInput): CheckReceipt;
|
|
80
80
|
export declare function receiptFailsAtDigest(receipt: CheckReceipt | null, currentDigest: string): boolean;
|
|
81
|
+
export declare function isTimeoutShapedLog(text: string): boolean;
|
|
81
82
|
export declare function readReceiptStatus(receiptPath: string, currentDigest: string): ReceiptReadStatus;
|
|
82
83
|
export declare interface ReceiptReuseDecision {
|
|
83
84
|
reuse: boolean;
|