sigmap 1.5.1 → 2.0.0-beta.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 +30 -0
- package/README.md +3 -3
- package/gen-context.config.json.example +28 -1
- package/gen-context.js +683 -115
- package/package.json +2 -1
- package/src/config/defaults.js +43 -1
- package/src/extractors/coverage.js +60 -0
- package/src/extractors/cpp.js +15 -6
- package/src/extractors/csharp.js +14 -3
- package/src/extractors/dart.js +9 -7
- package/src/extractors/deps.js +81 -0
- package/src/extractors/go.js +9 -5
- package/src/extractors/java.js +14 -3
- package/src/extractors/javascript.js +34 -6
- package/src/extractors/kotlin.js +9 -5
- package/src/extractors/php.js +13 -4
- package/src/extractors/prdiff.js +45 -0
- package/src/extractors/python.js +136 -20
- package/src/extractors/ruby.js +13 -2
- package/src/extractors/rust.js +15 -5
- package/src/extractors/scala.js +13 -4
- package/src/extractors/svelte.js +11 -4
- package/src/extractors/swift.js +15 -5
- package/src/extractors/todos.js +26 -0
- package/src/extractors/typescript.js +31 -4
- package/src/extractors/vue.js +16 -2
- package/src/mcp/server.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,36 @@ Format: [Semantic Versioning](https://semver.org/)
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [2.0.0-beta.1] — 2026-04-03
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- v2 output enrichment pipeline in [gen-context.js](gen-context.js): compact `deps`, `todos`, `changes`, optional structural `diff (vs <base>)`, optional test coverage markers, and optional impact-radius hints.
|
|
13
|
+
- New helper extractors:
|
|
14
|
+
- [src/extractors/deps.js](src/extractors/deps.js) for Python and TS/JS dependency extraction
|
|
15
|
+
- [src/extractors/todos.js](src/extractors/todos.js) for TODO/FIXME/HACK/XXX harvesting
|
|
16
|
+
- [src/extractors/coverage.js](src/extractors/coverage.js) for lightweight function/test correlation
|
|
17
|
+
- [src/extractors/prdiff.js](src/extractors/prdiff.js) for signature-level base-ref diffs
|
|
18
|
+
- New integration coverage in [test/integration/v2plus.test.js](test/integration/v2plus.test.js) for todos, changes, test coverage markers, and `--diff <base-ref>`.
|
|
19
|
+
- New unified integration runner in [test/integration/all.js](test/integration/all.js) and npm script `test:integration:all` in [package.json](package.json).
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- Expanded multi-language extractors to surface compact return-type hints and richer signatures across C++, C#, Dart, Go, Java, JavaScript, Kotlin, PHP, Python, Ruby, Rust, Scala, Svelte, Swift, TypeScript, and Vue.
|
|
23
|
+
- Python extractor now supports dataclass/BaseModel field collapse and top-level docstring hints.
|
|
24
|
+
- TypeScript extractor now exposes interface property types, class method return hints, and compact hook return shapes for `use*` exports.
|
|
25
|
+
- Source config defaults in [src/config/defaults.js](src/config/defaults.js) now include strategy keys and v2 output toggles so source-loaded config matches bundled behavior.
|
|
26
|
+
- Compatibility tests were updated to current `sigmap.*` command/config naming and broader MCP tool lists.
|
|
27
|
+
|
|
28
|
+
### Validation gate
|
|
29
|
+
- `node test/run.js` → 21/21 pass
|
|
30
|
+
- `node test/integration/all.js` → 17/17 integration suites pass
|
|
31
|
+
- `node gen-context.js --report` on this repo → ~93.6% reduction
|
|
32
|
+
- `node /Users/manojmallick/context-forge/gen-context.js --report` on arbi-platform → ~85.7% reduction, 3987 output tokens
|
|
33
|
+
|
|
34
|
+
### Notes
|
|
35
|
+
- This is a prerelease build intended for final release hardening before stable `2.0.0`.
|
|
36
|
+
- Publish with the `beta` dist-tag to avoid upgrading stable consumers automatically.
|
|
37
|
+
|
|
38
|
+
|
|
9
39
|
## [1.5.0] — 2026-04-04
|
|
10
40
|
|
|
11
41
|
### Added
|
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
[](https://manojmallick.github.io/sigmap)
|
|
26
26
|
[](CHANGELOG.md)
|
|
27
27
|
[](CONTRIBUTING.md)
|
|
28
|
-
[](
|
|
28
|
+
[](https://marketplace.visualstudio.com/items?itemName=manojmallick.sigmap)
|
|
29
29
|
|
|
30
30
|
</div>
|
|
31
31
|
|
|
@@ -426,8 +426,8 @@ node test/run.js typescript
|
|
|
426
426
|
# Regenerate expected outputs after extractor changes
|
|
427
427
|
node test/run.js --update
|
|
428
428
|
|
|
429
|
-
# Full integration suite
|
|
430
|
-
|
|
429
|
+
# Full integration suite
|
|
430
|
+
node test/integration/all.js
|
|
431
431
|
```
|
|
432
432
|
|
|
433
433
|
### Validation gates
|
|
@@ -36,5 +36,32 @@
|
|
|
36
36
|
"strategy": "full",
|
|
37
37
|
|
|
38
38
|
"_hotCommits_comment": "Only used by hot-cold strategy: how many recent commits count as 'hot'",
|
|
39
|
-
"hotCommits": 10
|
|
39
|
+
"hotCommits": 10,
|
|
40
|
+
|
|
41
|
+
"_enrichSignatures_comment": "Enrich signatures with return types, type hints, and schema field collapse (Python @dataclass / BaseModel)",
|
|
42
|
+
"enrichSignatures": true,
|
|
43
|
+
|
|
44
|
+
"_depMap_comment": "Include a compact import dependency map at the top of the output (~50-100 extra tokens)",
|
|
45
|
+
"depMap": true,
|
|
46
|
+
|
|
47
|
+
"_schemaFields_comment": "Collapse Pydantic BaseModel / @dataclass class bodies to a single field-list line",
|
|
48
|
+
"schemaFields": true,
|
|
49
|
+
|
|
50
|
+
"_todos_comment": "Include compact TODO/FIXME/HACK/XXX section (max 20 entries)",
|
|
51
|
+
"todos": true,
|
|
52
|
+
|
|
53
|
+
"_changes_comment": "Include compact recent git changes section",
|
|
54
|
+
"changes": true,
|
|
55
|
+
|
|
56
|
+
"_changesCommits_comment": "How many recent commits to analyze for the changes section",
|
|
57
|
+
"changesCommits": 5,
|
|
58
|
+
|
|
59
|
+
"_testCoverage_comment": "Append function-level coverage hints (✓/✗) by scanning tests",
|
|
60
|
+
"testCoverage": false,
|
|
61
|
+
|
|
62
|
+
"_testDirs_comment": "Directories used when testCoverage is enabled",
|
|
63
|
+
"testDirs": ["tests", "test", "__tests__", "spec"],
|
|
64
|
+
|
|
65
|
+
"_impactRadius_comment": "Append reverse dependency hints in file headers (used by: ...)",
|
|
66
|
+
"impactRadius": false
|
|
40
67
|
}
|