@gobing-ai/spur 0.4.2 → 0.4.3

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.
Files changed (133) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/config/decisions/maker-liveness.yaml +39 -0
  3. package/config/plugin-scripts.json +0 -4
  4. package/config/rules/README.md +1 -0
  5. package/config/rules/docs/sourced-api-claims.yaml +56 -12
  6. package/config/rules/strict/runtime-boundaries.yaml +7 -0
  7. package/config/script-placement-baseline.json +1 -19
  8. package/config/workflows/feature-lifecycle.yaml +46 -1
  9. package/config/workflows/feature-verification.yaml +11 -0
  10. package/package.json +9 -9
  11. package/plugins/sp/README.md +22 -16
  12. package/plugins/sp/agents/super-reviewer.md +43 -0
  13. package/plugins/sp/bunfig.toml +8 -5
  14. package/plugins/sp/hooks/careful-guard.ts +1 -1
  15. package/plugins/sp/hooks/context-post-tool.ts +7 -427
  16. package/plugins/sp/hooks/context-session-start.ts +5 -213
  17. package/plugins/sp/hooks/context-session-stop.ts +5 -191
  18. package/plugins/sp/hooks/pi/guard-extension.ts +6 -5
  19. package/plugins/sp/hooks/task-write-guard.ts +1 -1
  20. package/plugins/sp/{hooks → lib}/agent-hint.ts +1 -1
  21. package/plugins/sp/lib/context-post-tool.ts +432 -0
  22. package/plugins/sp/lib/context-session-start.ts +214 -0
  23. package/plugins/sp/lib/context-session-stop.ts +196 -0
  24. package/plugins/sp/lib/dogfood-pipeline.ts +265 -0
  25. package/plugins/sp/lib/dogfood-report.ts +278 -0
  26. package/plugins/sp/lib/idea-handoff.generated.mjs +3 -3
  27. package/plugins/sp/lib/inline-run-app.ts +40 -0
  28. package/plugins/sp/lib/inline-run.generated.d.mts +3 -3
  29. package/plugins/sp/lib/inline-run.generated.mjs +1347 -90
  30. package/plugins/sp/lib/plan-projection.generated.d.mts +150 -0
  31. package/plugins/sp/lib/plan-projection.generated.mjs +591 -1
  32. package/plugins/sp/lib/quality-gate.generated.mjs +38 -25
  33. package/plugins/sp/lib/residual-scan.generated.d.mts +7 -1
  34. package/plugins/sp/lib/residual-scan.generated.mjs +71 -6
  35. package/plugins/sp/lib/run-summary-core.ts +34 -370
  36. package/plugins/sp/lib/transcript.ts +37 -228
  37. package/plugins/sp/plugin.json +1 -1
  38. package/plugins/sp/scripts/batch-plan.mjs +586 -0
  39. package/plugins/sp/scripts/batch-preflight.mjs +23 -1
  40. package/plugins/sp/scripts/batch-preflight.ts +35 -295
  41. package/plugins/sp/scripts/daily-summary/daily-summary.mjs +108 -87
  42. package/plugins/sp/scripts/daily-summary/daily-summary.ts +111 -104
  43. package/plugins/sp/scripts/dogfood-testing/detect-pipeline-driving.mjs +2 -1
  44. package/plugins/sp/scripts/dogfood-testing/detect-pipeline-driving.ts +7 -265
  45. package/plugins/sp/scripts/dogfood-testing/validate-report.mjs +3 -0
  46. package/plugins/sp/scripts/dogfood-testing/validate-report.ts +6 -272
  47. package/plugins/sp/scripts/feature-verification-steps.mjs +7 -123
  48. package/plugins/sp/scripts/feature-verification-steps.ts +29 -181
  49. package/plugins/sp/scripts/inline-run-dispatch.mjs +27 -26
  50. package/plugins/sp/scripts/inline-run-dispatch.ts +1 -21
  51. package/plugins/sp/scripts/inline-run-setup.mjs +149 -122
  52. package/plugins/sp/scripts/inline-run-setup.ts +1 -21
  53. package/plugins/sp/scripts/quality-gate.mjs +14 -2
  54. package/plugins/sp/scripts/residual-scan.mjs +73 -6
  55. package/plugins/sp/scripts/residual-scan.ts +8 -5
  56. package/plugins/sp/scripts/run-summary.mjs +151 -97
  57. package/plugins/sp/scripts/run-summary.ts +7 -5
  58. package/plugins/sp/scripts/session-timeline.mjs +46 -19
  59. package/plugins/sp/scripts/task-diffstat.mjs +11 -1
  60. package/plugins/sp/scripts/task-diffstat.ts +8 -39
  61. package/plugins/sp/skills/code-implementation/SKILL.md +7 -1
  62. package/plugins/sp/skills/code-verification/references/secu-review.md +2 -1
  63. package/plugins/sp/skills/code-verification/references/verdict-schema.md +4 -0
  64. package/plugins/sp/skills/dogfood-testing/SKILL.md +2 -2
  65. package/plugins/sp/skills/next-feature/SKILL.md +1 -1
  66. package/plugins/sp/skills/parallel-execution/references/dispatch-surface.md +1 -1
  67. package/plugins/sp/skills/source-driven-development/SKILL.md +7 -4
  68. package/plugins/sp/skills/spur-cli/references/builder.md +3 -2
  69. package/plugins/sp/skills/spur-cli/references/decision.md +32 -7
  70. package/plugins/sp/skills/spur-cli/references/features.md +46 -5
  71. package/plugins/sp/skills/spur-dev/references/execution-batch-report.md +1 -1
  72. package/plugins/sp/skills/spur-dev/references/execution-batch.md +13 -3
  73. package/plugins/sp/skills/spur-dev/references/execution-worktree-landing.md +22 -0
  74. package/plugins/sp/skills/spur-dev/references/execution-worktree-setup.md +14 -0
  75. package/plugins/sp/skills/spur-dev/references/inline-pipeline-driver.md +29 -12
  76. package/spur.js +80681 -79296
  77. package/web/_astro/{BoardApp.B3GQZvj8.js → BoardApp.5IIl2O-z.js} +1 -1
  78. package/web/_astro/{BoardApp.BT7L2kSb.js → BoardApp.Drnx-KeM.js} +150 -150
  79. package/web/_astro/{TaskDetail.Cxov1_N_.js → TaskDetail.Ci4LNn9S.js} +1 -1
  80. package/web/_astro/{arc.vaT7tPOB.js → arc.j2EVkYVd.js} +1 -1
  81. package/web/_astro/{architectureDiagram-3BPJPVTR.DRMmTjkN.js → architectureDiagram-3BPJPVTR.DZWSFqEG.js} +1 -1
  82. package/web/_astro/{blockDiagram-GPEHLZMM.cla0LO_q.js → blockDiagram-GPEHLZMM.DE6GpXCN.js} +1 -1
  83. package/web/_astro/{c4Diagram-AAUBKEIU.D4YAIBKn.js → c4Diagram-AAUBKEIU.DoVR1G6B.js} +1 -1
  84. package/web/_astro/channel.DmdDxGsq.js +1 -0
  85. package/web/_astro/{chunk-2J33WTMH.BrSJbMRZ.js → chunk-2J33WTMH.Do6-Gbyf.js} +1 -1
  86. package/web/_astro/{chunk-4BX2VUAB.CuLMgKF5.js → chunk-4BX2VUAB.BYV1HGHx.js} +1 -1
  87. package/web/_astro/{chunk-55IACEB6.zkvgu54F.js → chunk-55IACEB6.CvI1zkrc.js} +1 -1
  88. package/web/_astro/{chunk-727SXJPM.DxWkACh8.js → chunk-727SXJPM.DNGSCRlX.js} +1 -1
  89. package/web/_astro/{chunk-AQP2D5EJ.42XrmIlH.js → chunk-AQP2D5EJ.DXhhgT5z.js} +1 -1
  90. package/web/_astro/{chunk-FMBD7UC4.Bao2wMK9.js → chunk-FMBD7UC4.dzkRKP2u.js} +1 -1
  91. package/web/_astro/{chunk-ND2GUHAM.BhydojD1.js → chunk-ND2GUHAM.DujGLeEf.js} +1 -1
  92. package/web/_astro/{chunk-QZHKN3VN.CmZ82g-H.js → chunk-QZHKN3VN.BWtIT3ZU.js} +1 -1
  93. package/web/_astro/{classDiagram-4FO5ZUOK.Blr83Gt_.js → classDiagram-4FO5ZUOK.DyApg0Nn.js} +1 -1
  94. package/web/_astro/{classDiagram-v2-Q7XG4LA2.Blr83Gt_.js → classDiagram-v2-Q7XG4LA2.DyApg0Nn.js} +1 -1
  95. package/web/_astro/{cose-bilkent-S5V4N54A.qmfv0SPn.js → cose-bilkent-S5V4N54A.DJQB-u_l.js} +1 -1
  96. package/web/_astro/{cynefin-OW5HDTMX.BtELhXPR.js → cynefin-OW5HDTMX.bi3D_siV.js} +1 -1
  97. package/web/_astro/{dagre-BM42HDAG.AWmaAvXo.js → dagre-BM42HDAG.C-f7TrRg.js} +1 -1
  98. package/web/_astro/{diagram-2AECGRRQ.DdH34KDi.js → diagram-2AECGRRQ.DrPfjHQB.js} +1 -1
  99. package/web/_astro/{diagram-5GNKFQAL.BmNPix1k.js → diagram-5GNKFQAL.C9S4WUHO.js} +1 -1
  100. package/web/_astro/{diagram-KO2AKTUF.BNQd_Ppo.js → diagram-KO2AKTUF.Dzzye8QH.js} +1 -1
  101. package/web/_astro/{diagram-LMA3HP47.BAPgDi0e.js → diagram-LMA3HP47.DX-LRiof.js} +1 -1
  102. package/web/_astro/{diagram-OG6HWLK6.DZ4zyLdC.js → diagram-OG6HWLK6.Z-kAKwIz.js} +1 -1
  103. package/web/_astro/{erDiagram-TEJ5UH35.Q1TySMmw.js → erDiagram-TEJ5UH35.D6dyClSv.js} +1 -1
  104. package/web/_astro/{flowDiagram-I6XJVG4X.BXhFBicG.js → flowDiagram-I6XJVG4X.Cx3q2cxD.js} +1 -1
  105. package/web/_astro/{ganttDiagram-6RSMTGT7.vHSgcuo2.js → ganttDiagram-6RSMTGT7.DU3gH6CT.js} +1 -1
  106. package/web/_astro/{gitGraphDiagram-PVQCEYII.Bi1f73C7.js → gitGraphDiagram-PVQCEYII.ISmCnJ87.js} +1 -1
  107. package/web/_astro/index.Do2lLdgo.css +1 -0
  108. package/web/_astro/{infoDiagram-5YYISTIA.DPvXZEWm.js → infoDiagram-5YYISTIA.DR6_iNOK.js} +1 -1
  109. package/web/_astro/{ishikawaDiagram-YF4QCWOH.Cz829fsV.js → ishikawaDiagram-YF4QCWOH.D7wY-ZGA.js} +1 -1
  110. package/web/_astro/{journeyDiagram-JHISSGLW.enRnB9Me.js → journeyDiagram-JHISSGLW.DkP9-WK8.js} +1 -1
  111. package/web/_astro/{kanban-definition-UN3LZRKU.DnTNk6d2.js → kanban-definition-UN3LZRKU.wtgY98M2.js} +1 -1
  112. package/web/_astro/{linear.BzGnBwNL.js → linear.CI6djNi7.js} +1 -1
  113. package/web/_astro/{mermaid.core.CSbTpIVz.js → mermaid.core.CuQPxS8b.js} +4 -4
  114. package/web/_astro/{mindmap-definition-RKZ34NQL.DGJDy8zT.js → mindmap-definition-RKZ34NQL.5HNIEG7R.js} +1 -1
  115. package/web/_astro/{pieDiagram-4H26LBE5.HSPdi5_8.js → pieDiagram-4H26LBE5.CchhDFjE.js} +1 -1
  116. package/web/_astro/{quadrantDiagram-W4KKPZXB.6Gv8mz2Y.js → quadrantDiagram-W4KKPZXB.PYXXJPSJ.js} +1 -1
  117. package/web/_astro/{requirementDiagram-4Y6WPE33.CnBCtFwa.js → requirementDiagram-4Y6WPE33.cUQuNAKU.js} +1 -1
  118. package/web/_astro/{sankeyDiagram-5OEKKPKP.5M8VWAu8.js → sankeyDiagram-5OEKKPKP.BO7MnRIA.js} +1 -1
  119. package/web/_astro/{sequenceDiagram-3UESZ5HK.DN41XN-U.js → sequenceDiagram-3UESZ5HK.D9bElyD6.js} +1 -1
  120. package/web/_astro/{stateDiagram-AJRCARHV.ErOO3W8j.js → stateDiagram-AJRCARHV.DhGdRz7I.js} +1 -1
  121. package/web/_astro/{stateDiagram-v2-BHNVJYJU.B_ZHICM-.js → stateDiagram-v2-BHNVJYJU.5GvLeAoL.js} +1 -1
  122. package/web/_astro/{timeline-definition-PNZ67QCA.CWdosr07.js → timeline-definition-PNZ67QCA.LtAT9haM.js} +1 -1
  123. package/web/_astro/{vennDiagram-CIIHVFJN.BHzYjNV5.js → vennDiagram-CIIHVFJN.DRth1yLA.js} +1 -1
  124. package/web/_astro/{wardleyDiagram-YWT4CUSO.h8x4IwPX.js → wardleyDiagram-YWT4CUSO.h9MlZfcr.js} +1 -1
  125. package/web/_astro/{xychartDiagram-2RQKCTM6.RTapW2X8.js → xychartDiagram-2RQKCTM6.DHqy9DYA.js} +1 -1
  126. package/web/index.html +2 -2
  127. package/config/proportional-route-table.ts +0 -155
  128. package/plugins/sp/scripts/daily-summary/logger.ts +0 -28
  129. package/web/_astro/channel.D4nG9YLf.js +0 -1
  130. package/web/_astro/index.BhSwN8yY.css +0 -1
  131. /package/plugins/sp/{hooks → lib}/context-owner.ts +0 -0
  132. /package/plugins/sp/{hooks → lib}/destructive-policy.ts +0 -0
  133. /package/plugins/sp/{hooks → lib}/task-file-policy.ts +0 -0
@@ -45,3 +45,153 @@ export declare function hostStatus(
45
45
  outcome: 'pending' | 'active' | 'completed' | 'skipped' | 'failed' | 'blocked' | 'unattempted',
46
46
  ): 'completed' | 'in_progress' | 'pending';
47
47
  export declare function hostText(item: PhasedPlanItem): string;
48
+ // task 1176: pure admission + triage policy, exported through the same generated entry.
49
+ export declare type TaskStatus = 'backlog' | 'todo' | 'wip' | 'testing' | 'blocked' | 'done' | 'cancelled' | string;
50
+ export declare interface PreflightInput {
51
+ wbs: string;
52
+ status: TaskStatus;
53
+ dependencies: string[];
54
+ depStatuses: Record<string, string>;
55
+ }
56
+ export declare type PreflightResult =
57
+ | { action: 'run'; code?: string; reason?: string }
58
+ | { action: 'skip'; code: string; reason: string; unmetDeps?: string[] };
59
+ export declare const NON_ABORTING_PREFLIGHT_CODES: Set<string>;
60
+ export declare interface FeaturePreflightFinding {
61
+ layer: string;
62
+ code: string;
63
+ severity: string;
64
+ message: string;
65
+ section?: string;
66
+ }
67
+ export declare interface FeaturePreflightClassification {
68
+ aborting: FeaturePreflightFinding[];
69
+ nonAborting: FeaturePreflightFinding[];
70
+ shouldAbort: boolean;
71
+ }
72
+ export declare function classifyFeaturePreflightFindings(
73
+ findings: FeaturePreflightFinding[],
74
+ ): FeaturePreflightClassification;
75
+ export declare type ReadinessOperation = 'run' | 'refine' | 'verify';
76
+ export declare interface QuickReadinessInput {
77
+ wbs: string;
78
+ status: TaskStatus;
79
+ operation: ReadinessOperation;
80
+ dependencies?: string[];
81
+ depStatuses?: Record<string, string>;
82
+ filteredCount?: number;
83
+ requiredSections?: string[];
84
+ presentSections?: string[];
85
+ sectionFindings?: Record<string, string>;
86
+ force?: boolean;
87
+ }
88
+ export declare type QuickReadinessResult =
89
+ | { action: 'runnable'; code: string; reason: string }
90
+ | { action: 'needs-refinement'; code: string; reason: string; gaps: string[] }
91
+ | { action: 'blocked'; code: string; reason: string; unmetDeps?: string[] }
92
+ | { action: 'skipped'; code: string; reason: string }
93
+ | { action: 'invalid'; code: string; reason: string };
94
+ export declare function quickReadiness(input: QuickReadinessInput): QuickReadinessResult;
95
+ export declare function preflightTask(input: PreflightInput): PreflightResult;
96
+ export declare const SENSITIVE_PREFIXES: readonly ['drizzle/', 'packages/config/', '.github/', 'plugins/sp/hooks/'];
97
+ export declare const SENSITIVE_GLOBS: readonly ['apps/server/src/**/auth*', '**/*secret*', '**/*.sql'];
98
+ export declare function sensitiveReasonForPath(path: string): string | null;
99
+ // task 1178: pure run-summary aggregation, exported through the same generated entry.
100
+ export declare type Tokens = Record<'input' | 'cacheCreate' | 'cacheRead' | 'output', number>;
101
+ export declare interface Span {
102
+ workMs: number;
103
+ waitMs: number;
104
+ toolCalls: number;
105
+ tokens: Tokens;
106
+ }
107
+ export declare interface Block {
108
+ type?: string;
109
+ id?: string;
110
+ name?: string;
111
+ text?: string;
112
+ tool_use_id?: string;
113
+ is_error?: boolean;
114
+ }
115
+ export declare interface Row {
116
+ type?: string;
117
+ subtype?: string;
118
+ timestamp?: string;
119
+ isMeta?: boolean;
120
+ isCompactSummary?: boolean;
121
+ id?: string;
122
+ content?: string;
123
+ display?: boolean;
124
+ customType?: string;
125
+ message?: {
126
+ id?: string;
127
+ role?: string;
128
+ content?: unknown;
129
+ usage?: Record<string, number | undefined>;
130
+ toolCallId?: string;
131
+ toolName?: string;
132
+ isError?: boolean;
133
+ };
134
+ }
135
+ export declare interface Acc {
136
+ last: number;
137
+ askMs: number;
138
+ asks: Map<string, number>;
139
+ toolIds: Set<string>;
140
+ messages: Map<string, Tokens>;
141
+ compactions: number;
142
+ }
143
+ export declare interface Progress {
144
+ runId: string;
145
+ workflow?: string;
146
+ status?: string;
147
+ states?: { state: string; visit?: number; status?: string; actions?: { attempts?: { startedAt?: string; completedAt?: string }[] }[] }[];
148
+ }
149
+ export declare interface SummaryRow {
150
+ stage: string;
151
+ status: string;
152
+ workMs: number;
153
+ waitMs: number;
154
+ toolCalls: number | null;
155
+ tokens: Tokens | null;
156
+ time: string;
157
+ wait: string;
158
+ token: string;
159
+ }
160
+ export declare interface ActorSplit {
161
+ operatorMs: number;
162
+ longestOperatorWaitMs: number;
163
+ modelMs: number;
164
+ shellMs: number;
165
+ subagentMs: number;
166
+ otherToolMs: number;
167
+ idleMs: number;
168
+ compactions: number;
169
+ subagentErrors: number;
170
+ }
171
+ export declare type GateTime = { ms: number } | { ms: null; reason: string };
172
+ export declare interface RunSummary {
173
+ available: true;
174
+ transcript?: string;
175
+ rows: SummaryRow[];
176
+ total: SummaryRow;
177
+ actors: ActorSplit;
178
+ gate: GateTime;
179
+ skippedLines: number;
180
+ }
181
+ export declare function zeroTokens(): Tokens;
182
+ export declare function formatDuration(ms: number): string;
183
+ export declare function formatTokens(n: number): string;
184
+ export declare function formatTokenSplit(t: Tokens | null): string;
185
+ export declare function isCompaction(row: Row): boolean;
186
+ export declare function skillInvocationPrompt(text: string): string | undefined;
187
+ export declare function promptText(row: Row): string | undefined;
188
+ export declare function sumTokens(all: Tokens[]): Tokens;
189
+ export declare function sumSpans(spans: Span[]): Span;
190
+ export declare function newAcc(ts: number): Acc;
191
+ export declare function accumulate(acc: Acc, row: Row, ts: number): void;
192
+ export declare function actorSplit(rows: [Row, number][], start: number, end: number): ActorSplit;
193
+ export declare function buildRunSummary(
194
+ rows: [Row, number][],
195
+ inputs: { label?: string; progress: Progress }[],
196
+ opts?: { since?: string; until?: string; skippedLines?: number },
197
+ ): RunSummary;