sigmap 2.9.1 → 3.0.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/CHANGELOG.md +39 -0
- package/README.md +35 -17
- package/gen-context.js +715 -7
- package/package.json +1 -1
- package/packages/adapters/claude.js +71 -0
- package/packages/adapters/copilot.js +47 -0
- package/packages/adapters/cursor.js +45 -0
- package/packages/adapters/gemini.js +59 -0
- package/packages/adapters/index.js +79 -0
- package/packages/adapters/openai.js +60 -0
- package/packages/adapters/windsurf.js +45 -0
- package/packages/cli/package.json +1 -1
- package/packages/core/README.md +16 -4
- package/packages/core/index.js +29 -0
- package/packages/core/package.json +1 -1
- package/src/config/defaults.js +4 -0
- package/src/config/loader.js +7 -0
- package/src/format/dashboard.js +400 -0
- package/src/health/scorer.js +30 -1
- package/src/mcp/server.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,45 @@ Format: [Semantic Versioning](https://semver.org/)
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [3.0.0] — 2026-04-06 — Platform: Multi-Adapter Architecture
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **Multi-adapter platform** — `packages/adapters/` with 6 output adapters: `copilot`, `claude`, `cursor`, `windsurf`, `openai`, `gemini`
|
|
13
|
+
- **`--adapter <name>` CLI flag** — generate output for a specific adapter only (e.g. `node gen-context.js --adapter openai`)
|
|
14
|
+
- **`adapt()` in packages/core** — programmatic API: `const { adapt } = require('sigmap'); adapt(context, 'openai')`
|
|
15
|
+
- **New config key `adapters`** — replaces `outputs`; old `outputs` key is silently mapped for full backward compatibility
|
|
16
|
+
- **OpenAI adapter** — formats context as an OpenAI system prompt, writes `.github/openai-context.md`
|
|
17
|
+
- **Gemini adapter** — formats context as a Gemini system instruction, writes `.github/gemini-context.md`
|
|
18
|
+
- **API stability guarantee** — `packages/core` API is now semver-stable; breaking changes require v4.0
|
|
19
|
+
- **20 new integration tests** in `test/integration/adapters.test.js`
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- `packages/core/index.js` — adds `adapt()` export alongside existing `extract`, `rank`, `scan`, `score`, `buildSigIndex`
|
|
23
|
+
- `writeOutputs()` in `gen-context.js` — now routes `openai`, `gemini` through adapter pipeline
|
|
24
|
+
|
|
25
|
+
### Backward compat
|
|
26
|
+
- `outputs: ["copilot","claude"]` config still works — automatically mirrored to `adapters`
|
|
27
|
+
- All existing CLI flags unchanged
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## [2.10.0] — 2026-04-06 · [#25](https://github.com/manojmallick/sigmap/issues/25)
|
|
32
|
+
|
|
33
|
+
### Planned additions
|
|
34
|
+
- **Report charts** — add chart-ready output for token reduction, signatures per file, and budget utilization trends.
|
|
35
|
+
- **Advanced metrics** — extend evaluation output with precision@K, recall@K, MRR, and query-level diagnostics.
|
|
36
|
+
- **CLI reporting mode** — introduce richer report surfaces for both human-readable tables and structured JSON artifacts.
|
|
37
|
+
- **Benchmark visibility** — include comparative metrics across runs to track regressions and improvements over time.
|
|
38
|
+
- **Docs refresh** — align roadmap and docs site references to the v2.10 milestone.
|
|
39
|
+
|
|
40
|
+
### Go / No-go criteria
|
|
41
|
+
- Full test suite passes (extractor + integration).
|
|
42
|
+
- Report output includes chart-friendly numeric series and summary stats.
|
|
43
|
+
- Benchmark metrics remain stable or improve versus v2.9 baseline.
|
|
44
|
+
- Generated docs and release metadata are version-synced to `2.10.0`.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
9
48
|
## [2.9.1] — 2026-04-06 · JetBrains Marketplace Publishing
|
|
10
49
|
|
|
11
50
|
### Added
|
package/README.md
CHANGED
|
@@ -112,31 +112,49 @@ AI agent session starts with full context
|
|
|
112
112
|
|
|
113
113
|
---
|
|
114
114
|
|
|
115
|
-
## 🔭 What's next — v2.
|
|
115
|
+
## 🔭 What's next — v2.10 (in progress · [#25](https://github.com/manojmallick/sigmap/issues/25))
|
|
116
116
|
|
|
117
|
-
### v2.
|
|
117
|
+
### v2.10 — Reporting: Charts + Advanced Metrics
|
|
118
118
|
|
|
119
119
|
| Feature | Description |
|
|
120
120
|
|---|---|
|
|
121
|
-
| **
|
|
122
|
-
| **
|
|
123
|
-
| **
|
|
124
|
-
| **
|
|
125
|
-
| **
|
|
121
|
+
| **Charts in reports** | Visualize token reduction, signature counts, and budget usage per run |
|
|
122
|
+
| **Advanced retrieval metrics** | Add precision@K, recall@K, MRR trend, and query-level diagnostics |
|
|
123
|
+
| **Evaluation dashboard output** | Generate shareable HTML/JSON benchmark summaries from CLI runs |
|
|
124
|
+
| **CI-friendly metrics export** | Persist machine-readable metrics for release gates and regression tracking |
|
|
125
|
+
| **Release quality gates** | Add pass/fail thresholds for hit@5 and precision before publish |
|
|
126
|
+
## 🔌 v3.0 — Platform: Multi-Adapter Architecture
|
|
126
127
|
|
|
127
|
-
|
|
128
|
-
| **`get_impact` MCP tool** | 9th MCP tool — `{ file, depth? }` → impacted files + signatures |
|
|
129
|
-
| **`src/map/dep-graph.js`** | Reverse-dependency graph built from the import analysis; circular deps handled safely |
|
|
130
|
-
| **15 new tests** | `impact.test.js` — direct deps, transitive deps, depth limit, JSON output |
|
|
128
|
+
SigMap is now an **adapter platform**. Any AI assistant — Copilot, Claude, Cursor, Windsurf, OpenAI, or Gemini — plugs in through a standard interface.
|
|
131
129
|
|
|
132
|
-
|
|
130
|
+
```bash
|
|
131
|
+
# Generate for a specific AI assistant
|
|
132
|
+
node gen-context.js --adapter copilot # → .github/copilot-instructions.md
|
|
133
|
+
node gen-context.js --adapter openai # → .github/openai-context.md
|
|
134
|
+
node gen-context.js --adapter gemini # → .github/gemini-context.md
|
|
135
|
+
node gen-context.js --adapter claude # → CLAUDE.md (append)
|
|
136
|
+
```
|
|
133
137
|
|
|
134
|
-
|
|
138
|
+
```js
|
|
139
|
+
// Programmatic API — fully semver-stable from v3.0
|
|
140
|
+
const { adapt } = require('sigmap');
|
|
141
|
+
const systemPrompt = adapt(context, 'openai', { version: '3.0.0' });
|
|
142
|
+
```
|
|
135
143
|
|
|
136
|
-
|
|
144
|
+
| Adapter | Output file | AI assistant |
|
|
145
|
+
|---|---|---|
|
|
146
|
+
| `copilot` | `.github/copilot-instructions.md` | GitHub Copilot |
|
|
147
|
+
| `claude` | `CLAUDE.md` (append) | Claude / Claude Code |
|
|
148
|
+
| `cursor` | `.cursorrules` | Cursor |
|
|
149
|
+
| `windsurf` | `.windsurfrules` | Windsurf |
|
|
150
|
+
| `openai` | `.github/openai-context.md` | Any OpenAI model |
|
|
151
|
+
| `gemini` | `.github/gemini-context.md` | Google Gemini |
|
|
137
152
|
|
|
138
|
-
|
|
139
|
-
|
|
153
|
+
**Backward compat:** existing `outputs` config key silently maps to `adapters` — no migration needed.
|
|
154
|
+
|
|
155
|
+
See full roadmap: [manojmallick.github.io/sigmap/roadmap.html](https://manojmallick.github.io/sigmap/roadmap.html)
|
|
156
|
+
|
|
157
|
+
---
|
|
140
158
|
curl -O https://raw.githubusercontent.com/manojmallick/sigmap/main/gen-context.js
|
|
141
159
|
|
|
142
160
|
# 2. Generate your context file
|
|
@@ -722,6 +740,6 @@ MIT © 2026 [Manoj Mallick](https://github.com/manojmallick) · Made in Amsterda
|
|
|
722
740
|
|
|
723
741
|
If SigMap saves you time — a ⭐ on [GitHub](https://github.com/manojmallick/sigmap) helps others find it.
|
|
724
742
|
|
|
725
|
-
**[Docs](https://manojmallick.github.io/sigmap) · [Changelog](CHANGELOG.md) · [Roadmap](
|
|
743
|
+
**[Docs](https://manojmallick.github.io/sigmap) · [Changelog](CHANGELOG.md) · [Roadmap](https://manojmallick.github.io/sigmap/roadmap.html) · [Repomix](https://github.com/yamadashy/repomix)**
|
|
726
744
|
|
|
727
745
|
</div>
|