sigmap 7.2.0 → 7.2.1

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/CHANGELOG.md CHANGED
@@ -10,6 +10,15 @@ Format: [Semantic Versioning](https://semver.org/)
10
10
 
11
11
  ---
12
12
 
13
+ ## [7.2.1] — 2026-06-17
14
+
15
+ Patch release — realistic per-query savings.
16
+
17
+ ### Fixed
18
+ - **`ask` / `gain` baseline reflects real usage (#278):** `sigmap ask` measured savings against the *whole repo* (every query assumed feeding the entire source tree), which inflated the `gain` dashboard (cumulative baselines in the millions) and showed ~99% per query. The baseline is now the full content of the files SigMap actually surfaced for the query (the ranked top-K) — the true counterfactual: without SigMap you'd read those files in full; SigMap gives you their signatures. Drives the `ask` cost line, `--json savingsPct`, and the `gain` record. `generate` keeps the whole-repo baseline (it genuinely indexes every file → signatures).
19
+
20
+ ---
21
+
13
22
  ## [7.2.0] — 2026-06-17
14
23
 
15
24
  Minor release — release-pipeline robustness. Hardens the bundle/release machinery that produced the v7.1.0 binary failure, with no user-facing CLI changes.
package/gen-context.js CHANGED
@@ -6254,7 +6254,7 @@ const { readContext, searchSignatures, getMap, createCheckpoint, getRouting, exp
6254
6254
 
6255
6255
  const SERVER_INFO = {
6256
6256
  name: 'sigmap',
6257
- version: '7.2.0',
6257
+ version: '7.2.1',
6258
6258
  description: 'SigMap MCP server — code signatures on demand',
6259
6259
  };
6260
6260
 
@@ -11499,7 +11499,7 @@ function __tryGit(args, opts = {}) {
11499
11499
  catch (_) { return ''; }
11500
11500
  }
11501
11501
 
11502
- const VERSION = '7.2.0';
11502
+ const VERSION = '7.2.1';
11503
11503
  const MARKER = '\n\n## Auto-generated signatures\n<!-- Updated by gen-context.js -->\n';
11504
11504
 
11505
11505
  function requireSourceOrBundled(key) {
@@ -13807,7 +13807,15 @@ function main() {
13807
13807
  let coveragePct = 0;
13808
13808
  try { coveragePct = coverageScore(cwd, fakeEntries, config).score; } catch (_) {}
13809
13809
 
13810
- const rawTok = getRawTokenCount(cwd, config);
13810
+ // Realistic baseline: the full content of the files SigMap actually surfaced
13811
+ // for this query. Without SigMap you'd read these files in full; SigMap gives
13812
+ // you their signatures instead — so this is the true per-query saving. Falls
13813
+ // back to the whole-repo count only if nothing ranked.
13814
+ let rawTok = 0;
13815
+ for (const r of ranked) {
13816
+ try { rawTok += estimateTokens(fs.readFileSync(path.join(cwd, r.file), 'utf8')); } catch (_) {}
13817
+ }
13818
+ if (rawTok === 0) rawTok = getRawTokenCount(cwd, config);
13811
13819
  const savings = rawTok > 0 ? Math.round((1 - ctxTok / rawTok) * 100) : 0;
13812
13820
  const model = args[args.indexOf('--model') + 1] || 'gpt-4o';
13813
13821
  const rateK = MODEL_COSTS[model] || MODEL_COSTS['gpt-4o'];
package/llms-full.txt CHANGED
@@ -9,7 +9,7 @@ the files relevant to the task — cutting tokens ~97% while keeping answers
9
9
  grounded. Deterministic, offline, no embeddings or vector database. Works with
10
10
  Claude, Cursor, GitHub Copilot, Aider, Windsurf, local LLMs, and MCP.
11
11
 
12
- # Version: 7.2.0 | Benchmark: sigmap-v7.0-main (2026-06-14)
12
+ # Version: 7.2.1 | Benchmark: sigmap-v7.0-main (2026-06-14)
13
13
  # Source: auto-generated from package.json, version.json, src/mcp/tools.js, src/config/defaults.js
14
14
  # Regenerate: npm run generate:llms | Validate: npm run validate:llms
15
15
 
package/llms.txt CHANGED
@@ -9,7 +9,7 @@ the files relevant to the task — cutting tokens ~97% while keeping answers
9
9
  grounded. Deterministic, offline, no embeddings or vector database. Works with
10
10
  Claude, Cursor, GitHub Copilot, Aider, Windsurf, local LLMs, and MCP.
11
11
 
12
- # Version: 7.2.0 | Benchmark: sigmap-v7.0-main (2026-06-14)
12
+ # Version: 7.2.1 | Benchmark: sigmap-v7.0-main (2026-06-14)
13
13
  # Source: auto-generated from package.json, version.json, src/mcp/tools.js, src/config/defaults.js
14
14
  # Regenerate: npm run generate:llms | Validate: npm run validate:llms
15
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigmap",
3
- "version": "7.2.0",
3
+ "version": "7.2.1",
4
4
  "description": "97% token reduction for AI coding. Extracts function & class signatures with TF-IDF ranking to feed only the right files to Claude, Cursor, Copilot, Aider, Windsurf, local LLMs & MCP. Zero dependencies, runs offline via npx.",
5
5
  "main": "packages/core/index.js",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigmap-cli",
3
- "version": "7.2.0",
3
+ "version": "7.2.1",
4
4
  "description": "SigMap CLI wrapper — thin adapter for programmatic CLI invocation",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigmap-core",
3
- "version": "7.2.0",
3
+ "version": "7.2.1",
4
4
  "description": "SigMap core library — zero-dependency code signature extraction, retrieval, and security scanning",
5
5
  "main": "index.js",
6
6
  "keywords": [
package/src/mcp/server.js CHANGED
@@ -18,7 +18,7 @@ const { readContext, searchSignatures, getMap, createCheckpoint, getRouting, exp
18
18
 
19
19
  const SERVER_INFO = {
20
20
  name: 'sigmap',
21
- version: '7.2.0',
21
+ version: '7.2.1',
22
22
  description: 'SigMap MCP server — code signatures on demand',
23
23
  };
24
24