@specship/specship-win32-arm64 0.24.0 → 0.25.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/lib/dist/activation/steering.d.ts +4 -4
- package/lib/dist/activation/steering.d.ts.map +1 -1
- package/lib/dist/activation/steering.js +6 -6
- package/lib/dist/activation/steering.js.map +1 -1
- package/lib/dist/bin/specship.js +232 -40
- package/lib/dist/bin/specship.js.map +1 -1
- package/lib/dist/commands/specship/learn.md +5 -3
- package/lib/dist/commands/specship/spec.md +73 -15
- package/lib/dist/db/spec-queries.d.ts +73 -3
- package/lib/dist/db/spec-queries.d.ts.map +1 -1
- package/lib/dist/db/spec-queries.js +139 -5
- package/lib/dist/db/spec-queries.js.map +1 -1
- package/lib/dist/enforce/changed-files.d.ts +28 -0
- package/lib/dist/enforce/changed-files.d.ts.map +1 -0
- package/lib/dist/enforce/changed-files.js +72 -0
- package/lib/dist/enforce/changed-files.js.map +1 -0
- package/lib/dist/enforce/enforce.d.ts +28 -1
- package/lib/dist/enforce/enforce.d.ts.map +1 -1
- package/lib/dist/enforce/enforce.js +37 -5
- package/lib/dist/enforce/enforce.js.map +1 -1
- package/lib/dist/extraction/grammars.d.ts +10 -0
- package/lib/dist/extraction/grammars.d.ts.map +1 -1
- package/lib/dist/extraction/grammars.js +32 -3
- package/lib/dist/extraction/grammars.js.map +1 -1
- package/lib/dist/extraction/index.d.ts +7 -0
- package/lib/dist/extraction/index.d.ts.map +1 -1
- package/lib/dist/extraction/index.js.map +1 -1
- package/lib/dist/extraction/specs/markdown-spec-extractor.d.ts +7 -0
- package/lib/dist/extraction/specs/markdown-spec-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/specs/markdown-spec-extractor.js +81 -8
- package/lib/dist/extraction/specs/markdown-spec-extractor.js.map +1 -1
- package/lib/dist/extraction/wasm/tree-sitter-pascal.wasm.gz +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-scala.wasm.gz +0 -0
- package/lib/dist/graph/spec-coverage.d.ts +86 -0
- package/lib/dist/graph/spec-coverage.d.ts.map +1 -0
- package/lib/dist/graph/spec-coverage.js +152 -0
- package/lib/dist/graph/spec-coverage.js.map +1 -0
- package/lib/dist/index.d.ts +69 -6
- package/lib/dist/index.d.ts.map +1 -1
- package/lib/dist/index.js +133 -21
- package/lib/dist/index.js.map +1 -1
- package/lib/dist/installer/index.d.ts +33 -8
- package/lib/dist/installer/index.d.ts.map +1 -1
- package/lib/dist/installer/index.js +50 -50
- package/lib/dist/installer/index.js.map +1 -1
- package/lib/dist/installer/init-offer.d.ts +14 -9
- package/lib/dist/installer/init-offer.d.ts.map +1 -1
- package/lib/dist/installer/init-offer.js +13 -9
- package/lib/dist/installer/init-offer.js.map +1 -1
- package/lib/dist/installer/install-defaults.d.ts +62 -0
- package/lib/dist/installer/install-defaults.d.ts.map +1 -0
- package/lib/dist/installer/install-defaults.js +67 -0
- package/lib/dist/installer/install-defaults.js.map +1 -0
- package/lib/dist/installer/targets/claude.d.ts +14 -0
- package/lib/dist/installer/targets/claude.d.ts.map +1 -1
- package/lib/dist/installer/targets/claude.js +64 -0
- package/lib/dist/installer/targets/claude.js.map +1 -1
- package/lib/dist/installer/targets/shared.js +4 -4
- package/lib/dist/installer/targets/shared.js.map +1 -1
- package/lib/dist/mcp/fitness-tool.d.ts +5 -6
- package/lib/dist/mcp/fitness-tool.d.ts.map +1 -1
- package/lib/dist/mcp/fitness-tool.js +0 -16
- package/lib/dist/mcp/fitness-tool.js.map +1 -1
- package/lib/dist/mcp/health-tool.d.ts +26 -0
- package/lib/dist/mcp/health-tool.d.ts.map +1 -0
- package/lib/dist/mcp/health-tool.js +50 -0
- package/lib/dist/mcp/health-tool.js.map +1 -0
- package/lib/dist/mcp/maintainability-tool.d.ts +5 -7
- package/lib/dist/mcp/maintainability-tool.d.ts.map +1 -1
- package/lib/dist/mcp/maintainability-tool.js +0 -16
- package/lib/dist/mcp/maintainability-tool.js.map +1 -1
- package/lib/dist/mcp/model-context.d.ts +13 -2
- package/lib/dist/mcp/model-context.d.ts.map +1 -1
- package/lib/dist/mcp/model-context.js +39 -12
- package/lib/dist/mcp/model-context.js.map +1 -1
- package/lib/dist/mcp/proxy.d.ts.map +1 -1
- package/lib/dist/mcp/proxy.js +4 -1
- package/lib/dist/mcp/proxy.js.map +1 -1
- package/lib/dist/mcp/server-instructions.d.ts +1 -1
- package/lib/dist/mcp/server-instructions.d.ts.map +1 -1
- package/lib/dist/mcp/server-instructions.js +5 -4
- package/lib/dist/mcp/server-instructions.js.map +1 -1
- package/lib/dist/mcp/spec-tools.d.ts.map +1 -1
- package/lib/dist/mcp/spec-tools.js +213 -28
- package/lib/dist/mcp/spec-tools.js.map +1 -1
- package/lib/dist/mcp/tools.d.ts +12 -8
- package/lib/dist/mcp/tools.d.ts.map +1 -1
- package/lib/dist/mcp/tools.js +89 -48
- package/lib/dist/mcp/tools.js.map +1 -1
- package/lib/dist/resolution/spec-link-resolver.d.ts +44 -2
- package/lib/dist/resolution/spec-link-resolver.d.ts.map +1 -1
- package/lib/dist/resolution/spec-link-resolver.js +132 -0
- package/lib/dist/resolution/spec-link-resolver.js.map +1 -1
- package/lib/dist/resolution/test-title-links.d.ts +62 -0
- package/lib/dist/resolution/test-title-links.d.ts.map +1 -0
- package/lib/dist/resolution/test-title-links.js +108 -0
- package/lib/dist/resolution/test-title-links.js.map +1 -0
- package/lib/dist/search/query-parser.d.ts.map +1 -1
- package/lib/dist/search/query-parser.js +6 -1
- package/lib/dist/search/query-parser.js.map +1 -1
- package/lib/dist/server/project-registry.js +1 -1
- package/lib/dist/server/routes/claude.js +9 -36
- package/lib/dist/server/routes/graph.js +53 -7
- package/lib/dist/server/routes/mcp.js +4 -3
- package/lib/dist/server/routes/projects.js +4 -4
- package/lib/dist/server/routes/spec.js +49 -7
- package/lib/dist/server/server.js +29 -17
- package/lib/dist/skills/spec-author/SKILL.md +164 -0
- package/lib/dist/skills/spec-author/references/format.md +210 -0
- package/lib/dist/skills/spec-author/references/gap-questions.md +152 -0
- package/lib/dist/skills/spec-author/references/quality-rubric.md +125 -0
- package/lib/dist/skills/spec-author/references/review-checklist.md +175 -0
- package/lib/dist/spec-lint/lint.d.ts +82 -0
- package/lib/dist/spec-lint/lint.d.ts.map +1 -0
- package/lib/dist/spec-lint/lint.js +430 -0
- package/lib/dist/spec-lint/lint.js.map +1 -0
- package/lib/dist/statusline/index.js.map +1 -1
- package/lib/dist/statusline/render.d.ts +1 -1
- package/lib/dist/statusline/render.d.ts.map +1 -1
- package/lib/dist/statusline/render.js +3 -1
- package/lib/dist/statusline/render.js.map +1 -1
- package/lib/dist/ui/assets/index-BzuUWUAE.js +50 -0
- package/lib/dist/ui/index.html +1 -1
- package/lib/dist/verify/report-ingest.d.ts +88 -0
- package/lib/dist/verify/report-ingest.d.ts.map +1 -0
- package/lib/dist/verify/report-ingest.js +269 -0
- package/lib/dist/verify/report-ingest.js.map +1 -0
- package/lib/dist/workflows/defaults/spec-fix.yaml +103 -12
- package/lib/dist/workflows/defaults/spec-implement-mixed.yaml +264 -21
- package/lib/dist/workflows/defaults/spec-implement.yaml +260 -19
- package/lib/dist/workflows/defaults/spec-verify.yaml +60 -9
- package/lib/node_modules/.package-lock.json +1 -1
- package/lib/package.json +7 -3
- package/package.json +1 -1
- package/lib/dist/extraction/wasm/tree-sitter-pascal.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-scala.wasm +0 -0
- package/lib/dist/server/ingest/impact-query.js +0 -343
- package/lib/dist/server/routes/events.js +0 -152
- package/lib/dist/ui/assets/index-CjjaftDw.js +0 -50
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Maintainability report handler (REQ-MAINT-003).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* tools.ts). Type-only imports keep this free of a runtime cycle with tools.ts.
|
|
4
|
+
* The menu slot moved to the merged `specship_health` (REQ-SURF-007); this
|
|
5
|
+
* handler stays so `execute()` keeps answering clients holding a cached
|
|
6
|
+
* `specship_maintainability` tool list.
|
|
8
7
|
*/
|
|
9
8
|
import type { SpecShip } from '../index';
|
|
10
|
-
import type {
|
|
11
|
-
export declare const maintainabilityToolDefinitions: ToolDefinition[];
|
|
9
|
+
import type { ToolResult } from './tools';
|
|
12
10
|
export declare function handleSpecshipMaintainability(cg: SpecShip, _args: Record<string, unknown>): Promise<ToolResult>;
|
|
13
11
|
//# sourceMappingURL=maintainability-tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maintainability-tool.d.ts","sourceRoot":"","sources":["../../src/mcp/maintainability-tool.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"maintainability-tool.d.ts","sourceRoot":"","sources":["../../src/mcp/maintainability-tool.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAM1C,wBAAsB,6BAA6B,CACjD,EAAE,EAAE,QAAQ,EACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,OAAO,CAAC,UAAU,CAAC,CAuCrB"}
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.maintainabilityToolDefinitions = void 0;
|
|
4
3
|
exports.handleSpecshipMaintainability = handleSpecshipMaintainability;
|
|
5
|
-
exports.maintainabilityToolDefinitions = [
|
|
6
|
-
{
|
|
7
|
-
name: 'specship_maintainability',
|
|
8
|
-
description: 'Report graph-derived maintainability signals for the codebase: coupling hotspots (fan-in/out), oversized symbols + god-files, dependency cycles, and dead-code candidates. Deterministic, no new parse. Thresholds come from specship.config.json (maintainability.thresholds).',
|
|
9
|
-
inputSchema: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
properties: {
|
|
12
|
-
projectPath: {
|
|
13
|
-
type: 'string',
|
|
14
|
-
description: 'Path to a different project with .specship/ initialized. Omit for the current project.',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
];
|
|
20
4
|
const text = (body) => ({ content: [{ type: 'text', text: body }] });
|
|
21
5
|
const CAP = 15;
|
|
22
6
|
async function handleSpecshipMaintainability(cg, _args) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maintainability-tool.js","sourceRoot":"","sources":["../../src/mcp/maintainability-tool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"maintainability-tool.js","sourceRoot":"","sources":["../../src/mcp/maintainability-tool.ts"],"names":[],"mappings":";;AAcA,sEA0CC;AA9CD,MAAM,IAAI,GAAG,CAAC,IAAY,EAAc,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AAEzF,MAAM,GAAG,GAAG,EAAE,CAAC;AAER,KAAK,UAAU,6BAA6B,CACjD,EAAY,EACZ,KAA8B;IAE9B,MAAM,CAAC,GAAG,EAAE,CAAC,kBAAkB,EAAE,CAAC;IAClC,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,IAAI,CAAC,wDAAwD,CAAC,CAAC;IACxE,CAAC;IACD,MAAM,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC;IACvB,MAAM,KAAK,GAAa,CAAC,mBAAmB,CAAC,CAAC;IAC9C,KAAK,CAAC,IAAI,CACR,6BAA6B,CAAC,CAAC,UAAU,eAAe,CAAC,CAAC,gBAAgB,uBAAuB,CAAC,CAAC,cAAc,8CAA8C,EAC/J,EAAE,CACH,CAAC;IAEF,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QACtB,KAAK,C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CAAC,yBAAyB,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QACxD,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC/E,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IACD,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QACtB,KAAK,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;QAC7D,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC;QACvG,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,GAAG,GAAG;YAAE,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,MAAM,GAAG,GAAG,wDAAwD,CAAC,CAAC;QACnI,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Model-aware context compaction (MODCTX-DOC).
|
|
3
3
|
*
|
|
4
|
-
* Lower-tier models (
|
|
4
|
+
* Lower-tier models (lite-tier models — Haiku, Gemini Flash; standard tier
|
|
5
|
+
* to a lesser degree) pay more attention
|
|
5
6
|
* cost per token of scaffolding. When the session runs on one, code-graph
|
|
6
7
|
* tool responses pass through a deterministic, fence-preserving compactor:
|
|
7
8
|
* SpecShip's own prose (boilerplate notices, meta-guidance, blank runs)
|
|
@@ -13,8 +14,12 @@
|
|
|
13
14
|
* status-line render, and `recordSessionModel` persists it to
|
|
14
15
|
* `.specship/session/model.json`; the MCP server reads it per call.
|
|
15
16
|
* Unknown model → `full` tier → identity (never compact blind).
|
|
17
|
+
*
|
|
18
|
+
* Tiers are capability names (`lite` / `standard` / `full`), not model-family
|
|
19
|
+
* names (REQ-GEMINI-007): the provider mapping table below is what binds a
|
|
20
|
+
* concrete model id (Claude or Gemini) to a tier.
|
|
16
21
|
*/
|
|
17
|
-
export type ModelTier = '
|
|
22
|
+
export type ModelTier = 'lite' | 'standard' | 'full';
|
|
18
23
|
export interface ModelMarker {
|
|
19
24
|
v: 1;
|
|
20
25
|
model: string;
|
|
@@ -54,6 +59,12 @@ export declare function modelTier(model: string | null | undefined): ModelTier;
|
|
|
54
59
|
* else the session model marker; else `full`. Both switches resolve
|
|
55
60
|
* through the settings chain (env > project `.specship/settings.json` >
|
|
56
61
|
* `~/.specship/settings.json`), so a repo can pin its behavior.
|
|
62
|
+
*
|
|
63
|
+
* The session model marker is a **Claude-only channel** (status line /
|
|
64
|
+
* SessionStart hook / transcript tail). A Gemini CLI session writes no
|
|
65
|
+
* marker, so detection there falls through to `SPECSHIP_MODEL`/settings —
|
|
66
|
+
* which accepts Gemini ids — and otherwise resolves `full`. No Claude
|
|
67
|
+
* channel is ever misread on a non-Claude host (REQ-GEMINI-007.A4).
|
|
57
68
|
*/
|
|
58
69
|
export declare function detectModelTier(projectRoot: string | null, env?: NodeJS.ProcessEnv, homedir?: string): ModelTier;
|
|
59
70
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-context.d.ts","sourceRoot":"","sources":["../../src/mcp/model-context.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"model-context.d.ts","sourceRoot":"","sources":["../../src/mcp/model-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAOH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;AAErD,MAAM,WAAW,WAAW;IAC1B,CAAC,EAAE,CAAC,CAAC;IACL,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAS3E;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAgBlE;AAKD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA+B7E;AAmBD,0DAA0D;AAC1D,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,CAOrE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAC7B,WAAW,EAAE,MAAM,GAAG,IAAI,EAC1B,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,OAAO,CAAC,EAAE,MAAM,GACf,SAAS,CAOX;AAyBD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,MAAM,CAsBvE"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Model-aware context compaction (MODCTX-DOC).
|
|
4
4
|
*
|
|
5
|
-
* Lower-tier models (
|
|
5
|
+
* Lower-tier models (lite-tier models — Haiku, Gemini Flash; standard tier
|
|
6
|
+
* to a lesser degree) pay more attention
|
|
6
7
|
* cost per token of scaffolding. When the session runs on one, code-graph
|
|
7
8
|
* tool responses pass through a deterministic, fence-preserving compactor:
|
|
8
9
|
* SpecShip's own prose (boilerplate notices, meta-guidance, blank runs)
|
|
@@ -14,6 +15,10 @@
|
|
|
14
15
|
* status-line render, and `recordSessionModel` persists it to
|
|
15
16
|
* `.specship/session/model.json`; the MCP server reads it per call.
|
|
16
17
|
* Unknown model → `full` tier → identity (never compact blind).
|
|
18
|
+
*
|
|
19
|
+
* Tiers are capability names (`lite` / `standard` / `full`), not model-family
|
|
20
|
+
* names (REQ-GEMINI-007): the provider mapping table below is what binds a
|
|
21
|
+
* concrete model id (Claude or Gemini) to a tier.
|
|
17
22
|
*/
|
|
18
23
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
19
24
|
if (k2 === undefined) k2 = k;
|
|
@@ -152,16 +157,32 @@ function readModelFromTranscript(transcriptPath) {
|
|
|
152
157
|
return null;
|
|
153
158
|
}
|
|
154
159
|
}
|
|
160
|
+
/**
|
|
161
|
+
* Provider mapping table (REQ-GEMINI-007): model id → capability tier.
|
|
162
|
+
* Ordered, most-specific-first — the first match wins, so a looser rule can
|
|
163
|
+
* never swallow a narrower one (`gemini-2.5-flash-lite` must not fall through
|
|
164
|
+
* to a `pro`/full rule). Adding a provider means adding rows here, not
|
|
165
|
+
* scattering substring checks across the codebase.
|
|
166
|
+
*/
|
|
167
|
+
const TIER_RULES = [
|
|
168
|
+
{ match: /haiku/, tier: 'lite' },
|
|
169
|
+
// `[\s\w.-]*` so both ids (`gemini-2.5-flash`) and display names
|
|
170
|
+
// (`Gemini 2.5 Flash`) match — the marker can carry either.
|
|
171
|
+
{ match: /gemini[\s\w.-]*flash/, tier: 'lite' }, // flash and flash-lite
|
|
172
|
+
{ match: /sonnet/, tier: 'standard' },
|
|
173
|
+
{ match: /gemini[\s\w.-]*pro/, tier: 'full' },
|
|
174
|
+
{ match: /opus|fable/, tier: 'full' },
|
|
175
|
+
];
|
|
155
176
|
/** Map a model id / display name to a compaction tier. */
|
|
156
177
|
function modelTier(model) {
|
|
157
178
|
if (!model)
|
|
158
179
|
return 'full';
|
|
159
180
|
const m = model.toLowerCase();
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
return 'full';
|
|
181
|
+
for (const rule of TIER_RULES) {
|
|
182
|
+
if (rule.match.test(m))
|
|
183
|
+
return rule.tier;
|
|
184
|
+
}
|
|
185
|
+
return 'full'; // unknown id → never compact blind
|
|
165
186
|
}
|
|
166
187
|
/**
|
|
167
188
|
* Resolve the active tier for a project (REQ-MODCTX-001, RUNSET-DOC):
|
|
@@ -169,6 +190,12 @@ function modelTier(model) {
|
|
|
169
190
|
* else the session model marker; else `full`. Both switches resolve
|
|
170
191
|
* through the settings chain (env > project `.specship/settings.json` >
|
|
171
192
|
* `~/.specship/settings.json`), so a repo can pin its behavior.
|
|
193
|
+
*
|
|
194
|
+
* The session model marker is a **Claude-only channel** (status line /
|
|
195
|
+
* SessionStart hook / transcript tail). A Gemini CLI session writes no
|
|
196
|
+
* marker, so detection there falls through to `SPECSHIP_MODEL`/settings —
|
|
197
|
+
* which accepts Gemini ids — and otherwise resolves `full`. No Claude
|
|
198
|
+
* channel is ever misread on a non-Claude host (REQ-GEMINI-007.A4).
|
|
172
199
|
*/
|
|
173
200
|
function detectModelTier(projectRoot, env = process.env, homedir) {
|
|
174
201
|
if ((0, runtime_settings_1.resolveSetting)('SPECSHIP_COMPACT', projectRoot, env, homedir) === '0')
|
|
@@ -200,8 +227,8 @@ const TERSE_NOTICES = [
|
|
|
200
227
|
'> Some sections trimmed. Need a symbol: specship_explore / specship_node with its exact name — not Read.',
|
|
201
228
|
],
|
|
202
229
|
];
|
|
203
|
-
/** Blast-radius bullets kept on the
|
|
204
|
-
const
|
|
230
|
+
/** Blast-radius bullets kept on the lite tier before "+N more". */
|
|
231
|
+
const LITE_BLAST_CAP = 3;
|
|
205
232
|
/**
|
|
206
233
|
* Compact one tool-response markdown string for a tier (REQ-MODCTX-002/003).
|
|
207
234
|
* `full` → identity. Fenced code blocks are byte-verbatim at every tier.
|
|
@@ -217,14 +244,14 @@ function compactToolResult(text, tier) {
|
|
|
217
244
|
let p = part;
|
|
218
245
|
for (const [re, terse] of TERSE_NOTICES)
|
|
219
246
|
p = p.replace(re, terse);
|
|
220
|
-
if (tier === '
|
|
247
|
+
if (tier === 'lite')
|
|
221
248
|
p = capBlastRadius(p);
|
|
222
249
|
// Collapse runs of blank lines (prose only).
|
|
223
250
|
p = p.replace(/\n{3,}/g, '\n\n');
|
|
224
251
|
return p;
|
|
225
252
|
});
|
|
226
253
|
// Visibility (REQ-MODCTX-003.A1): one line naming the tier — worded to
|
|
227
|
-
// ASSERT completeness. Measured on the
|
|
254
|
+
// ASSERT completeness. Measured on the lite baseline (express, 2/2 runs):
|
|
228
255
|
// the original wording ("— SPECSHIP_COMPACT=0 for full output") read as
|
|
229
256
|
// "this output is incomplete" to a small model, which then re-Read files
|
|
230
257
|
// it had been handed (4 Reads / 11 turns vs 0-1 / 5-7 without the banner).
|
|
@@ -232,7 +259,7 @@ function compactToolResult(text, tier) {
|
|
|
232
259
|
return `⛁ compact mode (${tier}): prose condensed, ALL code complete and verbatim — answer from this output; do not re-read these files.\n${out.join('')}`;
|
|
233
260
|
}
|
|
234
261
|
/**
|
|
235
|
-
* Cap the "### Blast radius" bullet list (
|
|
262
|
+
* Cap the "### Blast radius" bullet list (lite tier). Truncation is loud —
|
|
236
263
|
* an explicit "+N more" line, never silent (REQ-MODCTX-002.A3).
|
|
237
264
|
*/
|
|
238
265
|
function capBlastRadius(prose) {
|
|
@@ -256,7 +283,7 @@ function capBlastRadius(prose) {
|
|
|
256
283
|
if (!line.startsWith('- '))
|
|
257
284
|
break; // section ended
|
|
258
285
|
bullets++;
|
|
259
|
-
if (bullets <=
|
|
286
|
+
if (bullets <= LITE_BLAST_CAP)
|
|
260
287
|
kept.push(line);
|
|
261
288
|
else
|
|
262
289
|
dropped++;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-context.js","sourceRoot":"","sources":["../../src/mcp/model-context.ts"],"names":[],"m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MAAM,EAClB,eAAe,GAAE,MAA+B,GAC/C,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,kBAAkB,GAAG,IAAI,CAAC,CAuBjD;AAID;+DAC+D;AAC/D,MAAM,WAAW,kBAAkB;IACjC;yFACqF;IACrF,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC9C;6EACyE;IACzE,UAAU,IAAI,SAAS,CAAC;IACxB,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0HpF"}
|
package/lib/dist/mcp/proxy.js
CHANGED
|
@@ -250,7 +250,10 @@ async function runLocalHandshakeProxy(deps) {
|
|
|
250
250
|
routeToDaemon(line); // prime the daemon so it resolves the project (its reply is suppressed below)
|
|
251
251
|
}
|
|
252
252
|
else if (msg.method === 'tools/list') {
|
|
253
|
-
|
|
253
|
+
// Pass the project root so the lite-tier menu trim applies to the
|
|
254
|
+
// connect-time list too (REQ-LOWMODEL-004.A4) — marker file only,
|
|
255
|
+
// no DB open, so this stays on the fast handshake path.
|
|
256
|
+
writeClient({ jsonrpc: '2.0', id: msg.id, result: { tools: (0, tools_1.getStaticTools)(deps.root) } });
|
|
254
257
|
}
|
|
255
258
|
else if (msg.method === 'resources/list') {
|
|
256
259
|
// No resources exposed — answer the probe locally so it never reaches
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.js","sourceRoot":"","sources":["../../src/mcp/proxy.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCH,4BAyCC;AAQD,4CA0BC;AA8BD,wDAuHC;AAvQD,uCAAyB;AACzB,yCAA2B;AAC3B,yEAAiE;AACjE,qCAA6D;AAC7D,uCAAmD;AACnD,uC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C,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,EAAE;QAAE,OAAO,IAAI,CAAC;IACjD,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3B,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,MAAM,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IAC1D,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,mBAAmB,CAAC,GAAW;IACtC,IAAI,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,GAAY,EAAE,CAAC;QACtB,MAAM,CAAC,GAAG,GAA4B,CAAC;QACvC,IAAI,CAAC,CAAC,IAAI,KAAK,OAAO;YAAE,OAAO,IAAI,CAAC;QACpC,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* burn tokens. Reference only tools that exist on `main`; gate any
|
|
15
15
|
* conditional tools behind feature checks if/when they ship.
|
|
16
16
|
*/
|
|
17
|
-
export declare const SERVER_INSTRUCTIONS = "# Specship \u2014 code intelligence over an indexed knowledge graph\n\nSpecship is a SQLite knowledge graph of every symbol, edge, and file\nin the workspace. Reads are sub-millisecond; the index lags writes by\nabout a second through the file watcher. Consult it BEFORE writing or\nediting code, not during.\n\n## Answer directly \u2014 don't delegate exploration\n\nFor \"how does X work\", architecture, trace, or where-is-X questions,\nanswer DIRECTLY \u2014 usually with ONE `specship_explore` call.\n`specship_explore` takes either a natural-language question or a bag of\nsymbol/file names and returns the verbatim source of the relevant symbols\ngrouped by file, so it is Read-equivalent and most often the ONLY\nspecship call you need. Specship IS the pre-built search index \u2014 so\ndelegating the lookup to a separate file-reading sub-task/agent, or\nrunning your own grep + read loop, repeats work specship already did and\ncosts more for the same answer. Reach for raw Read/Grep only to confirm a\nspecific detail specship didn't cover. A direct specship answer is\ntypically one to a few calls; a grep/read exploration is dozens.\n\n## Tool selection by intent\n\n- **Almost any question \u2014 \"how does X work\", architecture, a bug, \"what/where is X\", or surveying an area** \u2192 `specship_explore` (PRIMARY \u2014 call FIRST; ONE capped call returns the verbatim source of the relevant symbols grouped by file; most often the ONLY call you need). Naming a documented domain term/entity also surfaces its human-confirmed fact body inline under \"Domain facts\".\n- **\"How does X reach/become Y? / the flow / the path from X to Y\"** \u2192 `specship_explore`, naming the symbols that span the flow (e.g. `mutateElement renderScene`) \u2014 it surfaces the call path among them, including dynamic-dispatch hops (callbacks, React re-render, JSX children) grep can't follow\n- **\"What is the symbol named X?\" (just its location)** \u2192 `specship_search`\n- **\"What calls this?\" / \"What does this call?\" / \"What would changing this break?\"** \u2192 `specship_callers` / `specship_callees` / `specship_impact`\n- **One specific symbol's full source (esp. a body `specship_explore` trimmed), or an OVERLOADED name** \u2192 `specship_node` (with `includeCode`): for an ambiguous name it returns EVERY matching definition's body in one call, so you never Read a file to find the right overload\n- **\"What's in directory X?\"** \u2192 `specship_files`\n- **\"Is the index ready / what's its size?\"** \u2192 `specship_status`\n- **\"Which SpecShip is running? / what version am I on?\"** \u2192 `specship_version` (zero-arg; identifies the MCP server process \u2014 version, install method, install dir, node, project root)\n- **User mentions a spec ID or requirement (e.g. \"REQ-AUTH-005\", \"the rate-limit requirement\")** \u2192 `specship_spec` FIRST. Returns spec body + parent/siblings + linked code with state (verified / drifted / orphaned) \u2014 more than Read-ing the spec file alone. If domain facts (ubiquitous-language terms, business rules) are linked to the spec, they come back inline under \"Domain facts\" \u2014 no separate tool. Then jump into linked code via `specship_node`.\n- **User describes a change without naming a spec (a bug, an error, a one-line enhancement) and you need to find which existing spec it belongs to** \u2192 `specship_spec` with a free-text `query`. Returns scored, ranked candidate specs (id, title, kind, snippet) over the spec index \u2014 use it to route the change to the right requirement before authoring a new doc. (No `query`/`spec_id` \u2192 the lifecycle funnel; add `list: true` for a flat inventory of every requirement's single rolled-up status + per-status totals, or `ideas: true` for the ideas review view \u2014 the idea-state briefs with age since capture + labels, closing with the promotion hand-off.)\n- **Authoring end-to-end tests for a requirement** \u2192 `specship_spec` with `spec_id` + `behaviour_surface: true`. Returns the requirement's linked code plus the surrounding routes / components / handlers grouped into a UI tier (Playwright targets) and a backend/batch tier (API/job targets) \u2014 the flow map to write tests from.\n- **After editing code in response to a spec** \u2192 call `specship_link_assert` before reporting done. Idempotent. Supersedes the `// @implements REQ-X` comment backstop (which the extractor catches on its own).\n- **After running verification (tests) against a spec link** \u2192 `specship_link_verify` with `result: \"pass\" | \"fail\"` so the link moves from `implemented` to `verified` (or `broken`).\n- **\"What's drifted / broken / orphaned?\" / non-coder review queue** \u2192 `specship_drifted` (optional `state` filter).\n\n## Common chains\n\n- **Flow / \"how does X reach Y\"**: ONE `specship_explore` with the symbol names spanning the flow \u2014 it surfaces the call path among them (riding dynamic-dispatch hops) AND returns their source. No need to reconstruct the path with `specship_search` + `specship_callers`.\n- **Onboarding / understanding any area**: ONE `specship_explore` is usually the whole answer. Only follow up \u2014 `specship_node` for a specific symbol \u2014 if something is still unclear.\n- **Refactor planning**: `specship_search` \u2192 `specship_callers` \u2192 `specship_impact`. The blast-radius answer comes from impact, not from walking callers manually.\n- **Debugging a regression**: `specship_callers` of the suspected symbol; widen with `specship_impact` if an unexpected call appears.\n\n## Anti-patterns\n\n- **Trust specship's results \u2014 don't re-verify them with grep.** They come from a full AST parse; re-checking with grep is slower, less accurate, and wastes context.\n- **Don't grep first** when looking up a symbol by name \u2014 `specship_search` is faster and returns kind + location + signature.\n- **Don't chain `specship_search` + `specship_node`** to understand an area \u2014 ONE `specship_explore` returns the relevant symbols' source together in a single round-trip.\n- **Don't loop `specship_node` over many symbols** \u2014 one `specship_explore` call returns them all grouped by file, while each separate call re-reads the whole context and costs far more. Use `specship_node` for a single symbol.\n- **After editing, check the staleness banner.** When a tool response starts with \"\u26A0\uFE0F Some files referenced below were edited since the last index sync\u2026\", the listed files are pending re-index \u2014 Read those specific files for accurate content. Every file NOT in that banner is fresh, so still trust specship. `specship_status` also lists pending files under \"Pending sync\".\n\n## JIRA integration\n\nAny request about the user's JIRA issues/tasks/tickets goes to these tools by default \u2014 the user should NOT have to say \"use specship\". Each tool already returns a professional, formatted result (a table, with any caveat as a bottom note); **present that output verbatim \u2014 relay it as-is, do not re-summarize it, add a preamble, or speculate about why a list is empty.** The tools chain in this order:\n\n- **\"list my JIRA issues\" / \"what's assigned to me?\" / \"my JIRA tasks\"** \u2192 `specship_jira_issues` (identity comes from the configured token \u2014 the user never types their own name). It returns a ready-to-display table; show it as returned.\n- **\"Show me issue PROJ-123\"** \u2192 `specship_jira_issue` with the `key`.\n- **\"Pick / work on PROJ-123\"** \u2192 `specship_jira_pick` with the `key` \u2014 fetches the issue and authors a SpecShip spec under `specs/` (idempotent on the key).\n- **\"Start / implement it\"** \u2192 `specship_jira_start` with the same `key` \u2014 runs the bundled `spec-implement` workflow on the spec pick authored, in an isolated worktree. It runs to the **plan/approve gate** and pauses there, returning the run ID; review the plan, then approve (`specship workflow approve <runId>`) to continue. A failed run raises no PR. If no spec exists for the key yet, start points you back to `specship_jira_pick`.\n- **\"How's my JIRA work going? / status of my picked issues\"** \u2192 `specship_jira_track` \u2014 a read-only table joining each picked issue's SpecShip work-state (spec authored \u2192 implementing \u2192 PR raised \u2192 verified) with its **live** JIRA status (read fresh each time, so an issue moved outside SpecShip reflects its current status). It never re-picks or re-starts anything; pass an optional `project` to narrow the JIRA read. Published specs appear too, and one edited in JIRA after publish is flagged as a divergence.\n- **\"Reconcile JIRA edits back into the spec\" / \"someone edited PROJ-123 in JIRA\"** \u2192 `specship_jira_reconcile` \u2014 **preview first, then apply only after the user has explicitly confirmed the exact diff**. Preview (default `mode:\"preview\"`) is read-only; it enumerates every published spec whose live JIRA issue diverges (edited summary/description, or a Sub-task added in JIRA) and returns a proposed spec amendment plus a machine block with `expected_live_fingerprint`. Show the user the diff and ask; only after they confirm, call again with `mode:\"apply\"`, `issue_key`, the confirmed `accept_content`/`accept_subtasks`, and the `expected_live_fingerprint` from the preview. Apply refuses when the fingerprint doesn't match \u2014 no preview \u2192 no apply.\n- **\"Sprint coverage / how much of this sprint has specs / is verified?\"** \u2192 `specship_jira_coverage` \u2014 joins the bound project's active (or named) sprint to spec truth: every issue with its rolled-up repo-side state (unspecced / specced / implemented / verified / drifted / broken) and rollup totals. Read-only by default; pass `post: true` with `issue_key` to upsert one watermarked comment on an anchor issue (edited in place on re-post \u2014 never a duplicate, never a transition).\n- **\"List / choose an epic\" / \"what epics are open in PROJ?\"** \u2192 `specship_jira_epics` \u2014 returns the project's open epics (status category \u2260 Done). Powers the `/specship:jira` menu's epic-picker; omit `project` on a bound repo to use the committed `jira.projectKey`.\n- **\"Generate / refresh the regression pack\" / \"build regression tests in JIRA\"** \u2192 `specship_jira_regression_pack` \u2014 creates or refreshes the SpecShip Regression Pack epic in the bound project, with one domain-area Story per area (`Uncategorised` until REQ-JIRAREG-002 lands) and one Sub-task per acceptance criterion of every implemented (or verified) requirement. Idempotent: a re-run with no spec changes performs zero JIRA writes. Pass `dry_run: true` to preview the plan without touching JIRA.\n- **\"Create a JIRA for this spec\" / \"publish REQ-X to JIRA\"** \u2192 `specship_jira_publish` with the `spec_id` \u2014 creates a Story whose Sub-tasks mirror the spec's acceptance criteria (idempotent: re-publish updates the Story and adds only missing Sub-tasks) and writes `jira_issue:` into the spec's frontmatter, which wires branch naming, PR linkage, commit prefixes (\"PROJ-123: \u2026\"), and tracking automatically. After authoring a spec with JIRA configured, offer this once (REQ-JIRAPUB-003).\n\n## Limitations\n\n- If a tool reports the project isn't initialized, `.specship/` doesn't exist yet \u2014 offer to run `specship init -i` to build the index.\n- Index lags file writes by ~1 second.\n- Cross-file resolution is best-effort name matching; ambiguous calls may return multiple candidates.\n- No live correctness validation \u2014 that's still the TypeScript compiler / test suite / linter's job. Specship supplements those with structural context they don't have.\n";
|
|
17
|
+
export declare const SERVER_INSTRUCTIONS = "# Specship \u2014 code intelligence over an indexed knowledge graph\n\nSpecship is a SQLite knowledge graph of every symbol, edge, and file\nin the workspace. Reads are sub-millisecond; the index lags writes by\nabout a second through the file watcher. Consult it BEFORE writing or\nediting code, not during.\n\n## Answer directly \u2014 don't delegate exploration\n\nFor \"how does X work\", architecture, trace, or where-is-X questions,\nanswer DIRECTLY \u2014 usually with ONE `specship_explore` call.\n`specship_explore` takes either a natural-language question or a bag of\nsymbol/file names and returns the verbatim source of the relevant symbols\ngrouped by file, so it is Read-equivalent and most often the ONLY\nspecship call you need. Specship IS the pre-built search index \u2014 so\ndelegating the lookup to a separate file-reading sub-task/agent, or\nrunning your own grep + read loop, repeats work specship already did and\ncosts more for the same answer. Reach for raw Read/Grep only to confirm a\nspecific detail specship didn't cover. A direct specship answer is\ntypically one to a few calls; a grep/read exploration is dozens.\n\n## Tool selection by intent\n\n- **Almost any question \u2014 \"how does X work\", architecture, a bug, \"what/where is X\", or surveying an area** \u2192 `specship_explore` (PRIMARY \u2014 call FIRST; ONE capped call returns the verbatim source of the relevant symbols grouped by file; most often the ONLY call you need). Naming a documented domain term/entity also surfaces its human-confirmed fact body inline under \"Domain facts\".\n- **\"How does X reach/become Y? / the flow / the path from X to Y\"** \u2192 `specship_explore`, naming the symbols that span the flow (e.g. `mutateElement renderScene`) \u2014 it surfaces the call path among them, including dynamic-dispatch hops (callbacks, React re-render, JSX children) grep can't follow\n- **\"What is the symbol named X?\" (just its location)** \u2192 `specship_search`\n- **\"What calls this?\" / \"What does this call?\" / \"What would changing this break?\"** \u2192 `specship_callers` / `specship_callees` / `specship_impact`\n- **One specific symbol's full source (esp. a body `specship_explore` trimmed), or an OVERLOADED name** \u2192 `specship_node` (with `includeCode`): for an ambiguous name it returns EVERY matching definition's body in one call, so you never Read a file to find the right overload\n- **\"What's in directory X?\"** \u2192 `specship_files`\n- **\"Is the index ready / what's its size?\" or \"which SpecShip is running / what version am I on?\"** \u2192 `specship_status` (one tool for both: index stats plus the serving process's version, install method, install dir, node and project root; works with no project open)\n- **\"Is this code healthy / does it violate our architecture rules?\"** \u2192 `specship_health` (coupling + oversized symbols + god-files + cycles + dead-code candidates, and architecture-fitness violations; narrow with `checks: [\"maintainability\"]` or `[\"fitness\"]`)\n- **User mentions a spec ID or requirement (e.g. \"REQ-AUTH-005\", \"the rate-limit requirement\")** \u2192 `specship_spec` FIRST. Returns spec body + parent/siblings + linked code with state (verified / drifted / orphaned) \u2014 more than Read-ing the spec file alone. If domain facts (ubiquitous-language terms, business rules) are linked to the spec, they come back inline under \"Domain facts\" \u2014 no separate tool. Then jump into linked code via `specship_node`.\n- **User describes a change without naming a spec (a bug, an error, a one-line enhancement) and you need to find which existing spec it belongs to** \u2192 `specship_spec` with a free-text `query`. Returns scored, ranked candidate specs (id, title, kind, snippet) over the spec index \u2014 use it to route the change to the right requirement before authoring a new doc. (No `query`/`spec_id` \u2192 the lifecycle funnel; add `list: true` for a flat inventory of every requirement's single rolled-up status + per-status totals, or `ideas: true` for the ideas review view \u2014 the idea-state briefs with age since capture + labels, closing with the promotion hand-off.)\n- **Authoring end-to-end tests for a requirement** \u2192 `specship_spec` with `spec_id` + `behaviour_surface: true`. Returns the requirement's linked code plus the surrounding routes / components / handlers grouped into a UI tier (Playwright targets) and a backend/batch tier (API/job targets) \u2014 the flow map to write tests from.\n- **After editing code in response to a spec** \u2192 call `specship_link_assert` before reporting done. Idempotent. Supersedes the `// @implements REQ-X` comment backstop (which the extractor catches on its own). The target is validated against the graph \u2014 an unresolvable `file:symbol` is refused with near-miss suggestions, so re-call it with a real target rather than assuming it recorded.\n- **After running verification (tests) against a spec link** \u2192 `specship_link_verify` with `result: \"pass\" | \"fail\"` so the link moves from `implemented` to `verified` (or `broken`). Pass the test name(s) you ran as `evidence` (and a `reason`) \u2014 they're persisted with a timestamp as the audit trail for the claim. Promotion to `verified` needs test evidence declared IN A FILE (a `verifies:` block in the spec, an `@verifies REQ-X` comment on the test, or the spec id inside an `it()` title in a test file); an asserted `tests` link does not count, and neither does a `tests` link pointing outside a test file. For a whole test run, `specship verify --report <vitest-json>` moves every matching link from the report itself \u2014 deterministic, and it records the run as the evidence.\n- **\"Is this requirement actually proven / how much of it has tests?\"** \u2192 `specship_spec` with `coverage: true` (with or without a `spec_id`). Returns a per-requirement AND per-acceptance-criterion rollup with a verdict of untested / tested / verified / broken. The verdict comes from `tests` links ONLY \u2014 a criterion with implementing code and no test reads `untested`, so never answer \"is it done\" from the presence of an `implements` link.\n- **\"What's drifted / broken / orphaned?\" / non-coder review queue** \u2192 `specship_drifted` (optional `state` filter).\n\n## Common chains\n\n- **Flow / \"how does X reach Y\"**: ONE `specship_explore` with the symbol names spanning the flow \u2014 it surfaces the call path among them (riding dynamic-dispatch hops) AND returns their source. No need to reconstruct the path with `specship_search` + `specship_callers`.\n- **Onboarding / understanding any area**: ONE `specship_explore` is usually the whole answer. Only follow up \u2014 `specship_node` for a specific symbol \u2014 if something is still unclear.\n- **Refactor planning**: `specship_search` \u2192 `specship_callers` \u2192 `specship_impact`. The blast-radius answer comes from impact, not from walking callers manually.\n- **Debugging a regression**: `specship_callers` of the suspected symbol; widen with `specship_impact` if an unexpected call appears.\n\n## Anti-patterns\n\n- **Trust specship's results \u2014 don't re-verify them with grep.** They come from a full AST parse; re-checking with grep is slower, less accurate, and wastes context.\n- **Don't grep first** when looking up a symbol by name \u2014 `specship_search` is faster and returns kind + location + signature.\n- **Don't chain `specship_search` + `specship_node`** to understand an area \u2014 ONE `specship_explore` returns the relevant symbols' source together in a single round-trip.\n- **Don't loop `specship_node` over many symbols** \u2014 one `specship_explore` call returns them all grouped by file, while each separate call re-reads the whole context and costs far more. Use `specship_node` for a single symbol.\n- **After editing, check the staleness banner.** When a tool response starts with \"\u26A0\uFE0F Some files referenced below were edited since the last index sync\u2026\", the listed files are pending re-index \u2014 Read those specific files for accurate content. Every file NOT in that banner is fresh, so still trust specship. `specship_status` also lists pending files under \"Pending sync\".\n\n## JIRA integration\n\nAny request about the user's JIRA issues/tasks/tickets goes to these tools by default \u2014 the user should NOT have to say \"use specship\". Each tool already returns a professional, formatted result (a table, with any caveat as a bottom note); **present that output verbatim \u2014 relay it as-is, do not re-summarize it, add a preamble, or speculate about why a list is empty.** The tools chain in this order:\n\n- **\"list my JIRA issues\" / \"what's assigned to me?\" / \"my JIRA tasks\"** \u2192 `specship_jira_issues` (identity comes from the configured token \u2014 the user never types their own name). It returns a ready-to-display table; show it as returned.\n- **\"Show me issue PROJ-123\"** \u2192 `specship_jira_issue` with the `key`.\n- **\"Pick / work on PROJ-123\"** \u2192 `specship_jira_pick` with the `key` \u2014 fetches the issue and authors a SpecShip spec under `specs/` (idempotent on the key).\n- **\"Start / implement it\"** \u2192 `specship_jira_start` with the same `key` \u2014 runs the bundled `spec-implement` workflow on the spec pick authored, in an isolated worktree. It runs to the **plan/approve gate** and pauses there, returning the run ID; review the plan, then approve (`specship workflow approve <runId>`) to continue. A failed run raises no PR. If no spec exists for the key yet, start points you back to `specship_jira_pick`.\n- **\"How's my JIRA work going? / status of my picked issues\"** \u2192 `specship_jira_track` \u2014 a read-only table joining each picked issue's SpecShip work-state (spec authored \u2192 implementing \u2192 PR raised \u2192 verified) with its **live** JIRA status (read fresh each time, so an issue moved outside SpecShip reflects its current status). It never re-picks or re-starts anything; pass an optional `project` to narrow the JIRA read. Published specs appear too, and one edited in JIRA after publish is flagged as a divergence.\n- **\"Reconcile JIRA edits back into the spec\" / \"someone edited PROJ-123 in JIRA\"** \u2192 `specship_jira_reconcile` \u2014 **preview first, then apply only after the user has explicitly confirmed the exact diff**. Preview (default `mode:\"preview\"`) is read-only; it enumerates every published spec whose live JIRA issue diverges (edited summary/description, or a Sub-task added in JIRA) and returns a proposed spec amendment plus a machine block with `expected_live_fingerprint`. Show the user the diff and ask; only after they confirm, call again with `mode:\"apply\"`, `issue_key`, the confirmed `accept_content`/`accept_subtasks`, and the `expected_live_fingerprint` from the preview. Apply refuses when the fingerprint doesn't match \u2014 no preview \u2192 no apply.\n- **\"Sprint coverage / how much of this sprint has specs / is verified?\"** \u2192 `specship_jira_coverage` \u2014 joins the bound project's active (or named) sprint to spec truth: every issue with its rolled-up repo-side state (unspecced / specced / implemented / verified / drifted / broken) and rollup totals. Read-only by default; pass `post: true` with `issue_key` to upsert one watermarked comment on an anchor issue (edited in place on re-post \u2014 never a duplicate, never a transition).\n- **\"List / choose an epic\" / \"what epics are open in PROJ?\"** \u2192 `specship_jira_epics` \u2014 returns the project's open epics (status category \u2260 Done). Powers the `/specship:jira` menu's epic-picker; omit `project` on a bound repo to use the committed `jira.projectKey`.\n- **\"Generate / refresh the regression pack\" / \"build regression tests in JIRA\"** \u2192 `specship_jira_regression_pack` \u2014 creates or refreshes the SpecShip Regression Pack epic in the bound project, with one domain-area Story per area (`Uncategorised` until REQ-JIRAREG-002 lands) and one Sub-task per acceptance criterion of every implemented (or verified) requirement. Idempotent: a re-run with no spec changes performs zero JIRA writes. Pass `dry_run: true` to preview the plan without touching JIRA.\n- **\"Create a JIRA for this spec\" / \"publish REQ-X to JIRA\"** \u2192 `specship_jira_publish` with the `spec_id` \u2014 creates a Story whose Sub-tasks mirror the spec's acceptance criteria (idempotent: re-publish updates the Story and adds only missing Sub-tasks) and writes `jira_issue:` into the spec's frontmatter, which wires branch naming, PR linkage, commit prefixes (\"PROJ-123: \u2026\"), and tracking automatically. After authoring a spec with JIRA configured, offer this once (REQ-JIRAPUB-003).\n\n## Limitations\n\n- If a tool reports the project isn't initialized, `.specship/` doesn't exist yet \u2014 offer to run `specship init -i` to build the index.\n- Index lags file writes by ~1 second.\n- Cross-file resolution is best-effort name matching; ambiguous calls may return multiple candidates.\n- No live correctness validation \u2014 that's still the TypeScript compiler / test suite / linter's job. Specship supplements those with structural context they don't have.\n";
|
|
18
18
|
//# sourceMappingURL=server-instructions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-instructions.d.ts","sourceRoot":"","sources":["../../src/mcp/server-instructions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"server-instructions.d.ts","sourceRoot":"","sources":["../../src/mcp/server-instructions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,w8ZA2E/B,CAAC"}
|
|
@@ -46,13 +46,14 @@ typically one to a few calls; a grep/read exploration is dozens.
|
|
|
46
46
|
- **"What calls this?" / "What does this call?" / "What would changing this break?"** → \`specship_callers\` / \`specship_callees\` / \`specship_impact\`
|
|
47
47
|
- **One specific symbol's full source (esp. a body \`specship_explore\` trimmed), or an OVERLOADED name** → \`specship_node\` (with \`includeCode\`): for an ambiguous name it returns EVERY matching definition's body in one call, so you never Read a file to find the right overload
|
|
48
48
|
- **"What's in directory X?"** → \`specship_files\`
|
|
49
|
-
- **"Is the index ready / what's its size?"** → \`specship_status\`
|
|
50
|
-
- **"
|
|
49
|
+
- **"Is the index ready / what's its size?" or "which SpecShip is running / what version am I on?"** → \`specship_status\` (one tool for both: index stats plus the serving process's version, install method, install dir, node and project root; works with no project open)
|
|
50
|
+
- **"Is this code healthy / does it violate our architecture rules?"** → \`specship_health\` (coupling + oversized symbols + god-files + cycles + dead-code candidates, and architecture-fitness violations; narrow with \`checks: ["maintainability"]\` or \`["fitness"]\`)
|
|
51
51
|
- **User mentions a spec ID or requirement (e.g. "REQ-AUTH-005", "the rate-limit requirement")** → \`specship_spec\` FIRST. Returns spec body + parent/siblings + linked code with state (verified / drifted / orphaned) — more than Read-ing the spec file alone. If domain facts (ubiquitous-language terms, business rules) are linked to the spec, they come back inline under "Domain facts" — no separate tool. Then jump into linked code via \`specship_node\`.
|
|
52
52
|
- **User describes a change without naming a spec (a bug, an error, a one-line enhancement) and you need to find which existing spec it belongs to** → \`specship_spec\` with a free-text \`query\`. Returns scored, ranked candidate specs (id, title, kind, snippet) over the spec index — use it to route the change to the right requirement before authoring a new doc. (No \`query\`/\`spec_id\` → the lifecycle funnel; add \`list: true\` for a flat inventory of every requirement's single rolled-up status + per-status totals, or \`ideas: true\` for the ideas review view — the idea-state briefs with age since capture + labels, closing with the promotion hand-off.)
|
|
53
53
|
- **Authoring end-to-end tests for a requirement** → \`specship_spec\` with \`spec_id\` + \`behaviour_surface: true\`. Returns the requirement's linked code plus the surrounding routes / components / handlers grouped into a UI tier (Playwright targets) and a backend/batch tier (API/job targets) — the flow map to write tests from.
|
|
54
|
-
- **After editing code in response to a spec** → call \`specship_link_assert\` before reporting done. Idempotent. Supersedes the \`// @implements REQ-X\` comment backstop (which the extractor catches on its own).
|
|
55
|
-
- **After running verification (tests) against a spec link** → \`specship_link_verify\` with \`result: "pass" | "fail"\` so the link moves from \`implemented\` to \`verified\` (or \`broken\`).
|
|
54
|
+
- **After editing code in response to a spec** → call \`specship_link_assert\` before reporting done. Idempotent. Supersedes the \`// @implements REQ-X\` comment backstop (which the extractor catches on its own). The target is validated against the graph — an unresolvable \`file:symbol\` is refused with near-miss suggestions, so re-call it with a real target rather than assuming it recorded.
|
|
55
|
+
- **After running verification (tests) against a spec link** → \`specship_link_verify\` with \`result: "pass" | "fail"\` so the link moves from \`implemented\` to \`verified\` (or \`broken\`). Pass the test name(s) you ran as \`evidence\` (and a \`reason\`) — they're persisted with a timestamp as the audit trail for the claim. Promotion to \`verified\` needs test evidence declared IN A FILE (a \`verifies:\` block in the spec, an \`@verifies REQ-X\` comment on the test, or the spec id inside an \`it()\` title in a test file); an asserted \`tests\` link does not count, and neither does a \`tests\` link pointing outside a test file. For a whole test run, \`specship verify --report <vitest-json>\` moves every matching link from the report itself — deterministic, and it records the run as the evidence.
|
|
56
|
+
- **"Is this requirement actually proven / how much of it has tests?"** → \`specship_spec\` with \`coverage: true\` (with or without a \`spec_id\`). Returns a per-requirement AND per-acceptance-criterion rollup with a verdict of untested / tested / verified / broken. The verdict comes from \`tests\` links ONLY — a criterion with implementing code and no test reads \`untested\`, so never answer "is it done" from the presence of an \`implements\` link.
|
|
56
57
|
- **"What's drifted / broken / orphaned?" / non-coder review queue** → \`specship_drifted\` (optional \`state\` filter).
|
|
57
58
|
|
|
58
59
|
## Common chains
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-instructions.js","sourceRoot":"","sources":["../../src/mcp/server-instructions.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;GAeG;AACU,QAAA,mBAAmB,GAAG
|
|
1
|
+
{"version":3,"file":"server-instructions.js","sourceRoot":"","sources":["../../src/mcp/server-instructions.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;GAeG;AACU,QAAA,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ElC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec-tools.d.ts","sourceRoot":"","sources":["../../src/mcp/spec-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAkB,aAAa,EAAE,YAAY,EAAY,MAAM,UAAU,CAAC;AAItF,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"spec-tools.d.ts","sourceRoot":"","sources":["../../src/mcp/spec-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAkB,aAAa,EAAE,YAAY,EAAY,MAAM,UAAU,CAAC;AAItF,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAc1D,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAQ3C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,YAAY,EAMzC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB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