sigmap 1.5.2 → 2.0.0-beta.2

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
@@ -6,6 +6,56 @@ Format: [Semantic Versioning](https://semver.org/)
6
6
 
7
7
  ---
8
8
 
9
+ ## [2.0.0-beta.2] — 2026-04-03
10
+
11
+ ### Fixed
12
+ - Python BaseModel field extraction no longer bleeds into subsequent classes when class bodies are separated by blank lines.
13
+ - Updated [src/extractors/python.js](src/extractors/python.js) `tryExtractBaseModelFields` to stop scanning at the next top-level block.
14
+ - TypeScript interface member type previews now preserve longer union strings.
15
+ - Updated [src/extractors/typescript.js](src/extractors/typescript.js) to extend interface type truncation from 20 to 35 characters.
16
+ - TypeScript function-style hooks (`export function useX`) now include compact return object shapes, matching existing arrow-hook behavior.
17
+ - Updated [src/extractors/typescript.js](src/extractors/typescript.js) export-function extraction path.
18
+
19
+ ### Changed
20
+ - Prerelease version bumped from `2.0.0-beta.1` to `2.0.0-beta.2` across CLI, MCP server info, root package metadata, and VS Code extension metadata.
21
+
22
+ ### Validation gate
23
+ - `node scripts/bundle.js`
24
+ - `node test/run.js`
25
+ - `node test/integration/all.js`
26
+ - `node gen-context.js --report`
27
+ - `node /Users/manojmallick/context-forge/gen-context.js --report` on arbi-platform
28
+
29
+ ## [2.0.0-beta.1] — 2026-04-03
30
+
31
+ ### Added
32
+ - 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.
33
+ - New helper extractors:
34
+ - [src/extractors/deps.js](src/extractors/deps.js) for Python and TS/JS dependency extraction
35
+ - [src/extractors/todos.js](src/extractors/todos.js) for TODO/FIXME/HACK/XXX harvesting
36
+ - [src/extractors/coverage.js](src/extractors/coverage.js) for lightweight function/test correlation
37
+ - [src/extractors/prdiff.js](src/extractors/prdiff.js) for signature-level base-ref diffs
38
+ - New integration coverage in [test/integration/v2plus.test.js](test/integration/v2plus.test.js) for todos, changes, test coverage markers, and `--diff <base-ref>`.
39
+ - New unified integration runner in [test/integration/all.js](test/integration/all.js) and npm script `test:integration:all` in [package.json](package.json).
40
+
41
+ ### Changed
42
+ - 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.
43
+ - Python extractor now supports dataclass/BaseModel field collapse and top-level docstring hints.
44
+ - TypeScript extractor now exposes interface property types, class method return hints, and compact hook return shapes for `use*` exports.
45
+ - 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.
46
+ - Compatibility tests were updated to current `sigmap.*` command/config naming and broader MCP tool lists.
47
+
48
+ ### Validation gate
49
+ - `node test/run.js` → 21/21 pass
50
+ - `node test/integration/all.js` → 17/17 integration suites pass
51
+ - `node gen-context.js --report` on this repo → ~93.6% reduction
52
+ - `node /Users/manojmallick/context-forge/gen-context.js --report` on arbi-platform → ~85.7% reduction, 3987 output tokens
53
+
54
+ ### Notes
55
+ - This is a prerelease build intended for final release hardening before stable `2.0.0`.
56
+ - Publish with the `beta` dist-tag to avoid upgrading stable consumers automatically.
57
+
58
+
9
59
  ## [1.5.0] — 2026-04-04
10
60
 
11
61
  ### Added
package/README.md CHANGED
@@ -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 (253 tests across 16 test files)
430
- for f in test/integration/*.test.js; do node "$f"; done
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
  }