diff --git a/AGENTS.md b/AGENTS.md index 965acff..1a81179 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -61,7 +61,7 @@ Always run `sigmap ask` or `sigmap --query` before searching for files relevant src/extractors/python_ast.py ← ast ``` -## changes (last 5 commits — 11 minutes ago) +## changes (last 5 commits — 9 minutes ago) ``` src/analysis/diagnostics.js +estimateTokens +formatFileDecision +computeFileMetrics +explainInclusion src/map/import-graph.js +buildReverseGraph ~extractImports ~resolveJsPath ~detectCycles @@ -605,6 +605,15 @@ function formatAnalysisTable(stats, showSlow) → string function formatAnalysisJSON(stats) → object ``` +### src/mcp/server.js +``` +module.exports = { start } +function respond(id, result) +function respondError(id, code, message) +function dispatch(msg, cwd) +function start(cwd) +``` + ### src/analysis/diagnostics.js ``` module.exports = { formatFileDecision, computeFileMetrics, explainInclusion, explainExclusion, estimateTokens } @@ -624,12 +633,3 @@ function detectCycles(graph) function buildReverseGraph(graph) function analyze(files, cwd) ``` - -### src/mcp/server.js -``` -module.exports = { start } -function respond(id, result) -function respondError(id, code, message) -function dispatch(msg, cwd) -function start(cwd) -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index db43a3a..6dada01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,20 @@ Format: [Semantic Versioning](https://semver.org/) --- +## [6.10.6] — 2026-05-11 + +### Added + +- **Python absolute import detection** — Detects `from package.module import X` patterns in Python files, fixing empty import graphs for monorepos. Handles nested imports like `from services.auth.oauth import get_token` correctly (closes #181). +- **Comprehensive import graph diagnostics** — New `sigmap-diagnostics.js` tool and `src/analysis/diagnostics.js` module provide per-file metrics and budget decision explanations. Helps debug why files are included/excluded and why import graphs may be empty (closes #182). +- **Regression tests for MCP tools** — Added 8 comprehensive tests covering simple projects, monorepos, circular imports, and Python absolute imports. All tests passing to prevent regressions in `explain_file`, `get_impact`, and related tools. + +### Fixed + +- **Import graph edge resolution** — Improved `resolveJsPath` to handle additional extensions (.mjs, .cjs, .tsx) and better fileSet path handling. Import graph now correctly detects cross-file dependencies in complex project structures. + +--- + ## [6.10.5] — 2026-05-11 ### Added diff --git a/docs-vp/guide/benchmark.md b/docs-vp/guide/benchmark.md index 7f771ca..4d3a120 100644 --- a/docs-vp/guide/benchmark.md +++ b/docs-vp/guide/benchmark.md @@ -1,13 +1,13 @@ --- title: Benchmark overview -description: Official v6.10.5 benchmark snapshot. 96.8% average token reduction, 80.0% retrieval hit@5, 41.0% fewer prompts, and 13/18 raw repos overflowing GPT-4o without SigMap. +description: Official v6.10.6 benchmark snapshot. 96.8% average token reduction, 80.0% retrieval hit@5, 41.0% fewer prompts, and 13/18 raw repos overflowing GPT-4o without SigMap. head: - - meta - property: og:title content: "SigMap benchmark overview — v6.10.1 snapshot" - - meta - property: og:description - content: "One place for token, retrieval, quality, and task metrics from the latest saved v6.10.1 benchmark run." + content: "One place for token, retrieval, quality, and task metrics from the latest saved v6.10.6 benchmark run." - - meta - property: og:url content: "https://manojmallick.github.io/sigmap/guide/benchmark" diff --git a/docs-vp/guide/roadmap.md b/docs-vp/guide/roadmap.md index 18d4cc5..a0766c6 100644 --- a/docs-vp/guide/roadmap.md +++ b/docs-vp/guide/roadmap.md @@ -1,6 +1,6 @@ --- title: Roadmap -description: SigMap version history and roadmap. From v0.0 to v6.10.5, with the latest releases fixing MCP tools extractImports export, restoring contributor attribution, and establishing develop-first branching strategy. +description: SigMap version history and roadmap. From v0.0 to v6.10.6, with the latest releases implementing Python import detection, adding comprehensive diagnostics, and establishing develop-first branching strategy. head: - - meta - property: og:title @@ -718,7 +718,7 @@ Fixed critical bug in bundled gen-context.js where `extractImports` function was --- -### v6.10.5 — Import graph improvements + branching strategy ✓ (tagged v6.10.5 — 2026-05-11) +### v6.10.6 — Import graph improvements + branching strategy ✓ (tagged v6.10.6 — 2026-05-11) Fixed import graph analysis for Python monorepos (issues #181, #182): added detection of absolute Python imports (`from package.module import X`), improved edge case handling, and added `sigmap-diagnostics.js` for debugging import detection. Also established branching strategy with develop as integration branch and main as release-only. Includes 8 regression tests for MCP tools and comprehensive testing guide. diff --git a/docs-vp/index.md b/docs-vp/index.md index c97da49..43c7c8b 100644 --- a/docs-vp/index.md +++ b/docs-vp/index.md @@ -78,9 +78,9 @@ features:
- Release: v6.10.5 + Release: v6.10.6 · - Develop-first branching strategy + regression tests + Python import detection + diagnostics tool
Benchmark: sigmap-v6.10-main @@ -149,7 +149,7 @@ See the full [end-to-end walkthrough](/guide/walkthrough) to watch this in actio | Overall token reduction | — | **96.8%** | | GPT-4o overflow repos | 13/18 | **0/18** | -Latest saved benchmark run: **2026-05-05 (v6.10.5)**. +Latest saved benchmark run: **2026-05-11 (v6.10.6)**.
diff --git a/gen-context.js b/gen-context.js index 509f2d1..472602e 100755 --- a/gen-context.js +++ b/gen-context.js @@ -5607,7 +5607,7 @@ __factories["./src/mcp/server"] = function(module, exports) { const SERVER_INFO = { name: 'sigmap', - version: '6.10.5', + version: '6.10.6', description: 'SigMap MCP server — code signatures on demand', }; @@ -8234,7 +8234,7 @@ const path = require('path'); const os = require('os'); const { execSync } = require('child_process'); -const VERSION = '6.10.5'; +const VERSION = '6.10.6'; const MARKER = '\n\n## Auto-generated signatures\n\n'; function requireSourceOrBundled(key) { diff --git a/package.json b/package.json index 7c61f57..589c87d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sigmap", - "version": "6.10.5", + "version": "6.10.6", "description": "Zero-dependency AI context engine — 97% token reduction. No npm install. Runs on Node 18+.", "main": "gen-context.js", "exports": { diff --git a/packages/cli/package.json b/packages/cli/package.json index 55668c2..4cd6de1 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "sigmap-cli", - "version": "6.10.5", + "version": "6.10.6", "description": "SigMap CLI wrapper — thin adapter for programmatic CLI invocation", "main": "index.js", "keywords": [ diff --git a/packages/core/package.json b/packages/core/package.json index c220d59..247329c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "sigmap-core", - "version": "6.10.5", + "version": "6.10.6", "description": "SigMap core library — zero-dependency code signature extraction, retrieval, and security scanning", "main": "index.js", "keywords": [ diff --git a/src/mcp/server.js b/src/mcp/server.js index 997d6de..102ce2a 100644 --- a/src/mcp/server.js +++ b/src/mcp/server.js @@ -18,7 +18,7 @@ const { readContext, searchSignatures, getMap, createCheckpoint, getRouting, exp const SERVER_INFO = { name: 'sigmap', - version: '6.10.5', + version: '6.10.6', description: 'SigMap MCP server — code signatures on demand', }; diff --git a/version.json b/version.json index bcf91fb..e566181 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { - "version": "6.10.5", + "version": "6.10.6", "benchmark_date": "2026-05-11", "benchmark_id": "sigmap-v6.10-main", "languages": 29,