@aryam/fixmap 0.9.0 → 0.9.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/README.md +109 -9
- package/dist/agent-setup.d.ts +6 -97
- package/dist/agent-setup.js +20 -6
- package/dist/agent-setup.js.map +1 -1
- package/dist/analysis-source.d.ts +1 -0
- package/dist/analysis-source.js +6 -2
- package/dist/analysis-source.js.map +1 -1
- package/dist/annotation-command.d.ts +8 -0
- package/dist/annotation-command.js +187 -0
- package/dist/annotation-command.js.map +1 -0
- package/dist/annotation-tool.d.ts +62 -0
- package/dist/annotation-tool.js +64 -0
- package/dist/annotation-tool.js.map +1 -0
- package/dist/ask-command.d.ts +9 -0
- package/dist/ask-command.js +127 -0
- package/dist/ask-command.js.map +1 -0
- package/dist/capability-command.d.ts +11 -0
- package/dist/capability-command.js +540 -0
- package/dist/capability-command.js.map +1 -0
- package/dist/change-scope-command.d.ts +7 -0
- package/dist/change-scope-command.js +162 -0
- package/dist/change-scope-command.js.map +1 -0
- package/dist/cli-runner.d.ts +2 -1
- package/dist/cli-runner.js +165 -47
- package/dist/cli-runner.js.map +1 -1
- package/dist/cli.js +26 -1
- package/dist/cli.js.map +1 -1
- package/dist/decode-input.d.ts +4 -0
- package/dist/decode-input.js +44 -0
- package/dist/decode-input.js.map +1 -0
- package/dist/doctor.d.ts +1 -0
- package/dist/doctor.js +14 -1
- package/dist/doctor.js.map +1 -1
- package/dist/editor-command.d.ts +8 -0
- package/dist/editor-command.js +46 -0
- package/dist/editor-command.js.map +1 -0
- package/dist/history-command.d.ts +14 -0
- package/dist/history-command.js +145 -0
- package/dist/history-command.js.map +1 -0
- package/dist/mcp.d.ts +20 -0
- package/dist/mcp.js +599 -11
- package/dist/mcp.js.map +1 -1
- package/dist/migration-command.d.ts +15 -0
- package/dist/migration-command.js +142 -0
- package/dist/migration-command.js.map +1 -0
- package/dist/repository-source.d.ts +1 -0
- package/dist/repository-source.js +7 -3
- package/dist/repository-source.js.map +1 -1
- package/dist/reverse-docs-command.d.ts +16 -0
- package/dist/reverse-docs-command.js +114 -0
- package/dist/reverse-docs-command.js.map +1 -0
- package/dist/runtime-command.d.ts +15 -0
- package/dist/runtime-command.js +121 -0
- package/dist/runtime-command.js.map +1 -0
- package/dist/sandbox-command.d.ts +9 -0
- package/dist/sandbox-command.js +158 -0
- package/dist/sandbox-command.js.map +1 -0
- package/dist/supply-chain-command.d.ts +20 -0
- package/dist/supply-chain-command.js +131 -0
- package/dist/supply-chain-command.js.map +1 -0
- package/dist/watch-command.js +7 -5
- package/dist/watch-command.js.map +1 -1
- package/dist/watch.d.ts +1 -0
- package/dist/watch.js +46 -2
- package/dist/watch.js.map +1 -1
- package/dist/workspace-command.d.ts +13 -0
- package/dist/workspace-command.js +267 -0
- package/dist/workspace-command.js.map +1 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -25,16 +25,19 @@ For private source or working-tree changes, run from a local JavaScript or TypeS
|
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
fixmap plan --issue "password reset emails fail"
|
|
28
|
+
|
|
29
|
+
# Optional: add an existing on-device embedding model to structural + BM25 ranking
|
|
30
|
+
fixmap plan --issue "keep signed-in users active" --semantic-model C:\models\all-MiniLM-L6-v2
|
|
28
31
|
```
|
|
29
32
|
|
|
30
33
|
Install a discoverable `/fixmap` command for supported coding agents, then invoke it without a task to see the complete workflow menu:
|
|
31
34
|
|
|
32
35
|
```bash
|
|
33
|
-
fixmap setup
|
|
36
|
+
fixmap setup --agent all
|
|
34
37
|
fixmap features
|
|
35
38
|
```
|
|
36
39
|
|
|
37
|
-
`fixmap setup` supports Claude Code, Cursor, GitHub Copilot prompt files, and the open Agent Skills layout. It preflights every target, is idempotent, and refuses to overwrite customized commands unless you explicitly pass `--force` after reviewing them.
|
|
40
|
+
Bare `fixmap setup` is a read-only workflow preview. `fixmap setup --agent all` supports Claude Code, Cursor, GitHub Copilot prompt files, and the open Agent Skills layout. It preflights every target, is idempotent, and refuses to overwrite customized commands unless you explicitly pass `--force` after reviewing them.
|
|
38
41
|
|
|
39
42
|
Use a real branch diff:
|
|
40
43
|
|
|
@@ -72,40 +75,124 @@ Export the Impact Graph for an issue as Mermaid or JSON:
|
|
|
72
75
|
fixmap graph --issue "password reset emails fail" --format mermaid
|
|
73
76
|
```
|
|
74
77
|
|
|
78
|
+
Map package dependencies and downstream impact across local repositories:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
fixmap workspace --config .fixmap/workspace.json --seed auth --format json
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
The JSON config uses `"workspaceConfigVersion": 1`, a stable `workspace` name, and 1–32 `{ "id", "path" }` repository entries. Paths are relative to the config file. Optional submodule entries use `relationship: { "kind": "submodule", "parentRepository": "auth", "path": "vendor/contracts" }`. FixMap scans at most four checkouts concurrently, never executes their code, and resolves Node, Python, and Maven package/version identities plus manifest/import evidence.
|
|
85
|
+
|
|
75
86
|
Continuously compare agent edits with a saved plan and recalculate impact:
|
|
76
87
|
|
|
77
88
|
```bash
|
|
78
89
|
fixmap watch --report plan.json --repo . --include-untracked
|
|
79
90
|
```
|
|
80
91
|
|
|
92
|
+
Attach durable, reviewable knowledge to a file (symbol, service, and contract scopes are also supported):
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
fixmap annotate src/auth/token.ts --note "Do not refactor; external contract" --owner platform-team
|
|
96
|
+
fixmap annotate --list
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Ask a structural question from a saved report without source access or a model call:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
fixmap ask --report plan.json --question "Why does this code exist?"
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Answers cite exact report evidence, retain unknowns, and explicitly mark claims unverified. The deterministic CLI and MCP workflow can answer context, impact, test, risk/policy, and authored-rationale questions; it does not interpret source code.
|
|
106
|
+
|
|
107
|
+
Build dependency-ordered, review-only migration phases from explicit edits, compatibility windows, tests, and rollback points tied to one exact identity graph:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
fixmap migrate --input migration.json --format markdown
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
See the repository's checked-in `examples/migration-plan/migration.json` for the versioned input shape. Migration planning never executes commands, edits source, or authorizes rollout.
|
|
114
|
+
|
|
115
|
+
Draft review-only module or architecture documentation from exact file fingerprints, an architecture snapshot, authored decisions, and explicit targets:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
fixmap reverse-docs --input examples/reverse-documentation/input.json --format markdown
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
The drafts separate observations, inferences, unknowns, and provenance. Requested destinations remain advisory; the command never writes or overwrites repository documentation.
|
|
122
|
+
|
|
123
|
+
Compare exact committed architecture snapshots without checking out either ref:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
fixmap history --repo . --from v0.9.0 --to HEAD --coupling-delta 2
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
History reports immutable commit IDs, added and removed edges, new and resolved cycles or boundary violations, and coupling growth while leaving HEAD and the worktree unchanged.
|
|
130
|
+
|
|
131
|
+
Import normalized external scanner or SBOM evidence with exact provenance:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
fixmap supply-chain --input examples/supply-chain/bundle.json
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
The versioned report retains package, advisory, fix-version, license, tool/database, timestamp, and document-fingerprint evidence. It does not claim FixMap fetched or verified the vulnerability corpus, executed the scanner, proved exploitability, or authorized remediation.
|
|
138
|
+
|
|
139
|
+
Map redaction-reviewed OpenTelemetry, normalized APM, Speedscope, or pprof observations to exact file fingerprints:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
fixmap runtime --input examples/runtime-evidence/input.json
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Every mapped record requires an explicit repository ID and safe repository-relative path. Unmapped evidence stays visible, and the report never equates span duration with CPU time, profile samples with wall-clock time, or correlation with causality.
|
|
146
|
+
|
|
147
|
+
Run exactly one declared command in an already-present digest-pinned Docker image:
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
fixmap sandbox --request sandbox.json --execute-declared-command
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
The version-1 request contains `executionId`, an absolute `repoRoot`, `image`, `command`, `declaredCommands`, optional bounded `limits`, and optional `network: { "enabled": true }`. Consent is accepted only from the command line; network also requires `--allow-sandbox-network`. Source and container root are read-only, image pulls and inherited container environment are disabled, and failures never count as passes.
|
|
154
|
+
|
|
81
155
|
Public GitHub issue, pull request, and repository URL modes are available in the CLI and MCP server for issue-only analysis. FixMap fetches task context anonymously, shallow-clones the default branch into an isolated temporary directory, disables credentials and repository execution surfaces, and removes the checkout before returning. Clone locally to use `--diff`, `--base`, `--head`, or working-tree inputs.
|
|
82
156
|
|
|
83
|
-
For long task text, use `--issue-file task.md` or
|
|
157
|
+
For long task text, use `--issue-file task.md`, pipe it directly to `fixmap plan`, or use explicit stdin with `--issue-file -` / `--issue -`. A leading `@` in `--issue` is ordinary task text; only the explicit file flag reads from disk. A one-off `npx -y @aryam/fixmap@latest ...` run is also available, but npm may choose an existing project-local FixMap first. Run `fixmap doctor`, treat its printed running version as authoritative, and update or remove a stale install. For a reproducible clean test, install the exact version into an isolated npm prefix and invoke that prefix's `fixmap` shim directly; the repository README includes complete PowerShell and POSIX commands.
|
|
84
158
|
|
|
85
159
|
## Complete feature catalog
|
|
86
160
|
|
|
87
161
|
- **Plan** — rank primary context, then map likely impact from imports, reverse dependents, related tests, and repeated Git co-change relationships. Impact paths are inspection candidates, not assumed edits.
|
|
162
|
+
- **Polyglot project scope** — Go, Rust, Ruby, PHP, and .NET use bounded language adapters. Go follows longest-prefix modules, explicit local `go.work` membership, and unambiguous repository-contained `replace` directives scoped to the importing module; multi-module changes emit every exact owning-module test command and never attribute a sibling module's tests to it. Rust follows literal local Cargo path dependencies, renamed/workspace-inherited aliases, and exact path modules; Ruby test routing distinguishes scoped RSpec and Minitest evidence and fails closed for a bare Gemfile or mixed ambiguity, while Rails constant autoloading requires both gem and application-class evidence and stays inside the owning project. Composer PSR-4/classmap evidence resolves PHP paths, and declared requirements can traverse unambiguous repository-contained path packages transitively; test routing requires a declared script, an explicit Pest dependency, or PHPUnit evidence, and Pest bootstrap files never count as related tests. Literal .NET `ProjectReference` plus symbol-backed project/source global-using evidence scopes namespace impact; one test project routes directly, while multiple test projects route only through one uniquely matching literal `.sln`.
|
|
88
163
|
- **Context Pack** — use `fixmap context` to package deterministic line ranges from primary and impact files within an estimated source-token budget. Markdown is readable by people and agents; JSON preserves roles, reasons, line ranges, truncation, and omitted-file diagnostics.
|
|
89
164
|
- **Graph export** — use `fixmap graph` to export the evidence-backed Impact Graph as portable Mermaid or versioned JSON while preserving relationship direction.
|
|
165
|
+
- **Change scope** — use `fixmap change-scope --touch <path> [--add <path>]` to expand only caller-selected product work surfaces over bounded dependencies/dependents, then join existing tests, contracts, decisions, reviewers, and policy evidence. Missing additions remain unresolved; no product semantics are inferred.
|
|
166
|
+
- **Product capabilities** — use `fixmap capability create|update|remove` to maintain a locked, atomic `.fixmap/capabilities.json` of human names, explicit anchors, and bounds; use `fixmap capability <id>` or `fixmap capabilities` to rebuild/show current evidence. `fixmap capability diff <id> <from>..<to>` compares exact immutable Git objects without checkout mutation. Generated conclusions are never stored.
|
|
167
|
+
- **Cross-repository workspace** — use `fixmap workspace --config <file> --seed <repository-id>` to resolve local Node, Python, and Maven package providers and trace downstream consumers with versioned identity, manifest, import, and submodule evidence.
|
|
168
|
+
- **Repository Q&A** — use `fixmap ask --report <plan.json> --question <text>` to answer structural context, impact, test, risk, policy, ADR, and annotation questions from bounded report evidence with citations and explicit unknowns.
|
|
169
|
+
- **Migration planner** — use `fixmap migrate --input <migration.json>` to validate and render dependency phases, blast radius, compatibility, verification, and rollback without executing or applying the plan.
|
|
170
|
+
- **Reverse documentation** — use `fixmap reverse-docs --input <reverse-docs.json>` to create review-only module or architecture drafts from exact structural evidence without writing the requested destination.
|
|
171
|
+
- **Architecture history** — use `fixmap history --repo . --from <ref> --to <ref>` to compare immutable committed snapshots without checkout or worktree mutation.
|
|
172
|
+
- **Supply-chain evidence** — use `fixmap supply-chain --input <bundle.json>` to validate normalized package/security/license evidence without executing a scanner or inventing advisory truth.
|
|
173
|
+
- **Runtime evidence** — use `fixmap runtime --input <runtime.json>` to map redaction-reviewed traces and profiles only through exact repository paths and fingerprints.
|
|
174
|
+
- **Execution sandbox** — use `fixmap sandbox --request <sandbox.json> --execute-declared-command` to run one exact reviewed command with a pinned local image, network off, read-only source/root, and resource limits.
|
|
90
175
|
- **Explain** — use `--explain <path>` to distinguish ranked, below-cutoff, tie-truncated, excluded, and not-scanned paths.
|
|
91
176
|
- **Compare** — use `--compare <report.json>` to measure how a refined task changed ranks, scores, confidence, and grounding.
|
|
92
177
|
- **Verify** — compare a saved plan with the completed diff or working tree and recalculate impact around the files actually changed; errors fail by default and `--fail-on warning` provides an opt-in strict CI gate without pretending FixMap ran tests or proved correctness.
|
|
93
178
|
- **Repository benchmark** — use `fixmap benchmark --repo . --last 50` to compare BM25, FixMap, and Impact Graph on identical parent-snapshot corpora. Primary hits use maintained source rather than generated twins, and repository code is never executed.
|
|
94
179
|
- **Watch** — use `fixmap watch --report plan.json --repo .` to emit drift findings and a recalculated Impact Graph whenever the working tree changes. JSON format is newline-delimited for agent consumers.
|
|
180
|
+
- **Human intent** — use `fixmap annotate` to maintain atomic `.fixmap/annotations.json` records for files, symbols, services, and contracts. Relevant notes, expiry, and rename/missing-target state surface with the exact store fingerprint; repository ADR/RFC/design records surface their authored decision text and provenance alongside them.
|
|
95
181
|
- **Validate** — run `fixmap validate <report.json>` to check report compatibility without writing custom JavaScript.
|
|
96
|
-
- **Focus controls** — cap output with `--limit
|
|
182
|
+
- **Focus controls** — cap output with `--limit` from 1 to 20, repeat `--exclude`, or use ordered `.fixmapignore` patterns with negation. Pasted absolute paths inside the repository are normalized, and unmatched patterns produce a warning.
|
|
97
183
|
- **Live changes** — `--working-tree` maps staged and unstaged tracked edits; `--include-untracked` opts new files into the changed-file set.
|
|
98
184
|
- **Exact-state cache** — clean and tracked dirty git states are cached by repository, commit, status, and binary diff. Cache hits report age, entries expire after seven days, and `--no-cache` reports a fresh bypass.
|
|
185
|
+
- **Opt-in local hybrid retrieval** — `--semantic-model <dir>` fuses structural, BM25, and cosine ranks while retaining each signal and model provenance. The model must already exist locally; FixMap forces local-files-only loading, persists model-isolated vectors outside the repository, and never uploads source. FixMap does not bundle the optional Transformers.js runtime, so install a compatible version in the host only after auditing its dependency tree.
|
|
99
186
|
- **Artifact isolation** — current issue, comparison, verification, and output files are removed from ranking, change detection, and cache state, so a saved plan cannot recommend or invalidate itself.
|
|
100
187
|
- **Doctor** — report the running version, resolved binary, global/PATH shadows, Node compatibility, and an optionally requested npm version.
|
|
101
|
-
- **MCP** — expose Plan, Context, Graph, Explain, Compare, Verify, and Doctor as
|
|
102
|
-
- **Slash-command discovery** — `fixmap setup` installs `/fixmap
|
|
188
|
+
- **MCP** — expose Plan, Context, Graph, Workspace, Ask, Migrate, Reverse Docs, History, Supply Chain, Runtime, Explain, Compare, Verify, and Doctor as fourteen local stdio tools.
|
|
189
|
+
- **Slash-command discovery** — `fixmap setup` previews without writes, `fixmap setup --agent all` installs `/fixmap`, and `fixmap features` prints the same complete catalog in Markdown or JSON.
|
|
103
190
|
- **Safe repository handling** — public repositories use isolated temporary checkouts with credentials, hooks, filters, and submodule recursion disabled. Local source is read without installing dependencies or running repository scripts.
|
|
104
191
|
- **Human, agent, and machine output** — Markdown is the default; `--format agent` is a compact handoff, and JSON reports carry `reportVersion: 1` with the documented additive compatibility policy.
|
|
105
192
|
|
|
106
193
|
## MCP server
|
|
107
194
|
|
|
108
|
-
FixMap ships
|
|
195
|
+
FixMap ships fourteen Model Context Protocol tools: `fixmap_plan`, `fixmap_context`, `fixmap_graph`, `fixmap_workspace`, `fixmap_ask`, `fixmap_migrate`, `fixmap_reverse_docs`, `fixmap_history`, `fixmap_supply_chain`, `fixmap_runtime`, `fixmap_explain`, `fixmap_compare`, `fixmap_verify`, and `fixmap_doctor`. Plan, Context, Graph, Workspace, Explain, and Verify accept `noCache: true` when an agent needs a fresh repository scan rather than an exact-state cache hit.
|
|
109
196
|
|
|
110
197
|
Context budgets use a deterministic estimate of one token per four UTF-8 bytes of source. Metadata does not consume that source budget. Scanner sample limits are reported per snippet with `sourceTruncated`, so consumers can distinguish a complete file from a bounded sample.
|
|
111
198
|
|
|
@@ -134,13 +221,25 @@ Cursor, Windsurf, or any MCP client:
|
|
|
134
221
|
fixmap plan Generate a FixMap report for a task or diff
|
|
135
222
|
fixmap context Build a budgeted Markdown or JSON source pack
|
|
136
223
|
fixmap graph Export the Impact Graph as Mermaid or JSON
|
|
224
|
+
fixmap workspace Map package dependencies and impact across local repositories
|
|
225
|
+
fixmap ask Answer report-only structural questions with citations
|
|
226
|
+
fixmap migrate Build a dependency-ordered, review-only migration plan
|
|
227
|
+
fixmap reverse-docs Draft review-only documentation from exact structural evidence
|
|
228
|
+
fixmap history Compare architecture at two committed refs without checkout
|
|
229
|
+
fixmap supply-chain Import normalized external scanner and SBOM evidence
|
|
230
|
+
fixmap runtime Map redaction-reviewed runtime evidence to exact files
|
|
231
|
+
fixmap sandbox Run one explicitly consented command in an isolated container
|
|
232
|
+
fixmap change-scope Expand explicit planned paths into structural consequences
|
|
233
|
+
fixmap capability Create, update, remove, or show one product capability
|
|
234
|
+
fixmap capabilities List persistent product capability definitions
|
|
137
235
|
fixmap verify Compare a saved plan with the diff that followed
|
|
138
236
|
fixmap benchmark Backtest BM25, FixMap, and Impact Graph on local Git history
|
|
139
237
|
fixmap watch Recheck working-tree drift and impact whenever edits change
|
|
238
|
+
fixmap annotate Add, list, or remove reviewable repository knowledge
|
|
140
239
|
fixmap doctor Report the resolved version and any shadowing install
|
|
141
240
|
fixmap validate Validate a saved FixMap JSON report
|
|
142
241
|
fixmap features List every FixMap capability in Markdown or JSON
|
|
143
|
-
fixmap setup
|
|
242
|
+
fixmap setup Preview workflows without writing files; add --agent to install
|
|
144
243
|
fixmap mcp Run FixMap as an MCP server over stdio
|
|
145
244
|
|
|
146
245
|
--issue <text|url> Issue text, task description, or public GitHub issue or pull request URL
|
|
@@ -155,6 +254,7 @@ fixmap mcp Run FixMap as an MCP server over stdio
|
|
|
155
254
|
--limit <n> Cap reported context files, 1 to 20 (default 8)
|
|
156
255
|
--exclude <pattern> Leave paths out of ranking; repeatable, gitignore-flavored
|
|
157
256
|
--no-cache Bypass the exact-state repository scan cache
|
|
257
|
+
--semantic-model <dir> Use a pre-existing local embedding model; never download or upload source
|
|
158
258
|
--repo <source> Local path, file:// URL, or public GitHub HTTPS/SSH URL
|
|
159
259
|
--format <fmt> Plan: markdown, agent, or json; context: markdown or json; graph: mermaid or json
|
|
160
260
|
--budget <tokens> Context estimated source-token budget, 256 to 200000 (default 10000)
|
|
@@ -181,7 +281,7 @@ fixmap mcp Run FixMap as an MCP server over stdio
|
|
|
181
281
|
## Links
|
|
182
282
|
|
|
183
283
|
- [GitHub repository](https://github.com/aryamthecodebreaker/FixMap)
|
|
184
|
-
- [Live demo](https://
|
|
284
|
+
- [Live demo](https://fixmap.aryam.me)
|
|
185
285
|
- [Changelog](https://github.com/aryamthecodebreaker/FixMap/blob/main/CHANGELOG.md)
|
|
186
286
|
|
|
187
287
|
MIT © FixMap contributors.
|
package/dist/agent-setup.d.ts
CHANGED
|
@@ -1,101 +1,10 @@
|
|
|
1
1
|
export type AgentTarget = "claude" | "cursor" | "copilot" | "agents";
|
|
2
|
-
export declare const FIXMAP_FEATURES:
|
|
3
|
-
readonly name:
|
|
4
|
-
readonly command:
|
|
5
|
-
readonly detail:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
readonly command: "fixmap plan";
|
|
9
|
-
readonly detail: "Map likely dependents, dependencies, tests, and repeated Git co-change relationships around the primary context, with explicit evidence.";
|
|
10
|
-
}, {
|
|
11
|
-
readonly name: "Context Pack";
|
|
12
|
-
readonly command: "fixmap context --issue <task> --budget 10000";
|
|
13
|
-
readonly detail: "Select task-aware source ranges from primary and impact files within a deterministic token budget.";
|
|
14
|
-
}, {
|
|
15
|
-
readonly name: "Graph export";
|
|
16
|
-
readonly command: "fixmap graph --issue <task> --format mermaid";
|
|
17
|
-
readonly detail: "Export imports, reverse dependents, routed tests, and co-change evidence as Mermaid or JSON.";
|
|
18
|
-
}, {
|
|
19
|
-
readonly name: "Explain";
|
|
20
|
-
readonly command: "fixmap plan --explain <path>";
|
|
21
|
-
readonly detail: "Show whether a path ranked, tied below the limit, was excluded, or was never scanned.";
|
|
22
|
-
}, {
|
|
23
|
-
readonly name: "Compare";
|
|
24
|
-
readonly command: "fixmap plan --compare <report.json>";
|
|
25
|
-
readonly detail: "Compare a refined task and current plan with an earlier JSON report.";
|
|
26
|
-
}, {
|
|
27
|
-
readonly name: "Verify";
|
|
28
|
-
readonly command: "fixmap verify --report <report.json>";
|
|
29
|
-
readonly detail: "Compare the completed diff or working tree with the saved plan; add --fail-on warning for a strict CI gate.";
|
|
30
|
-
}, {
|
|
31
|
-
readonly name: "Validate";
|
|
32
|
-
readonly command: "fixmap validate <report.json>";
|
|
33
|
-
readonly detail: "Check a saved report against FixMap's structural compatibility contract.";
|
|
34
|
-
}, {
|
|
35
|
-
readonly name: "Doctor";
|
|
36
|
-
readonly command: "fixmap doctor";
|
|
37
|
-
readonly detail: "Diagnose stale local, global, PATH, and npx install shadows.";
|
|
38
|
-
}, {
|
|
39
|
-
readonly name: "MCP";
|
|
40
|
-
readonly command: "fixmap mcp";
|
|
41
|
-
readonly detail: "Expose Plan, Context, Graph, Explain, Compare, Verify, and Doctor over local stdio.";
|
|
42
|
-
}, {
|
|
43
|
-
readonly name: "Public tasks";
|
|
44
|
-
readonly command: "fixmap owner/repository#123";
|
|
45
|
-
readonly detail: "Fetch public GitHub issue or pull-request text anonymously and scan its repository in an isolated checkout.";
|
|
46
|
-
}, {
|
|
47
|
-
readonly name: "Repository sources";
|
|
48
|
-
readonly command: "--repo <path|url> --ref <branch|tag>";
|
|
49
|
-
readonly detail: "Map a local checkout, file URL, directory archive, or a named branch or tag from a public GitHub repository.";
|
|
50
|
-
}, {
|
|
51
|
-
readonly name: "Task files";
|
|
52
|
-
readonly command: "--issue-file <file|->";
|
|
53
|
-
readonly detail: "Read long task text from UTF-8, UTF-16, or stdin, including BOM-less UTF-16 from common Windows tools.";
|
|
54
|
-
}, {
|
|
55
|
-
readonly name: "Focus";
|
|
56
|
-
readonly command: "--limit, --exclude, .fixmapignore";
|
|
57
|
-
readonly detail: "Narrow ranking without changing the repository.";
|
|
58
|
-
}, {
|
|
59
|
-
readonly name: "Live changes";
|
|
60
|
-
readonly command: "--working-tree --include-untracked";
|
|
61
|
-
readonly detail: "Map staged, unstaged, and optionally untracked work against HEAD.";
|
|
62
|
-
}, {
|
|
63
|
-
readonly name: "Fresh scan";
|
|
64
|
-
readonly command: "--no-cache";
|
|
65
|
-
readonly detail: "Bypass the exact git-state cache with CLI --no-cache, MCP noCache: true, or Action no-cache: true, and report that a fresh scan was used.";
|
|
66
|
-
}, {
|
|
67
|
-
readonly name: "Machine output";
|
|
68
|
-
readonly command: "--format json --output <file>";
|
|
69
|
-
readonly detail: "Emit a versioned JSON contract or readable Markdown without executing repository code.";
|
|
70
|
-
}, {
|
|
71
|
-
readonly name: "Compact agent output";
|
|
72
|
-
readonly command: "--format agent";
|
|
73
|
-
readonly detail: "Emit EDIT CANDIDATE, INSPECT, TEST, RISK, AVOID, and UNCERTAINTY sections for a small context window.";
|
|
74
|
-
}, {
|
|
75
|
-
readonly name: "Repository benchmark";
|
|
76
|
-
readonly command: "fixmap benchmark --repo . --last 50";
|
|
77
|
-
readonly detail: "Backtest BM25, FixMap, and Impact Graph on historical parent snapshots with history cut off before each target change.";
|
|
78
|
-
}, {
|
|
79
|
-
readonly name: "Watch";
|
|
80
|
-
readonly command: "fixmap watch --report plan.json --repo .";
|
|
81
|
-
readonly detail: "Continuously verify working-tree drift and recalculate impact as an agent edits.";
|
|
82
|
-
}, {
|
|
83
|
-
readonly name: "Test routing";
|
|
84
|
-
readonly command: "fixmap plan";
|
|
85
|
-
readonly detail: "Detect package, workspace, and language test commands, related tests, and skipped or gated suites.";
|
|
86
|
-
}, {
|
|
87
|
-
readonly name: "Risk and diagnostics";
|
|
88
|
-
readonly command: "fixmap plan";
|
|
89
|
-
readonly detail: "Report bounded risk areas, grounding quality, unread content, scan limits, package-manager conflicts, and unresolved diffs.";
|
|
90
|
-
}, {
|
|
91
|
-
readonly name: "GitHub Action";
|
|
92
|
-
readonly command: "uses: aryamthecodebreaker/FixMap@<version>";
|
|
93
|
-
readonly detail: "Plan or verify pull requests with bounded summaries, outputs, and one updated comment.";
|
|
94
|
-
}, {
|
|
95
|
-
readonly name: "Agent setup";
|
|
96
|
-
readonly command: "fixmap setup";
|
|
97
|
-
readonly detail: "Install the discoverable /fixmap command for Claude Code, Cursor, GitHub Copilot, or Agent Skills.";
|
|
98
|
-
}];
|
|
2
|
+
export declare const FIXMAP_FEATURES: ReadonlyArray<{
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly command: string;
|
|
5
|
+
readonly detail: string;
|
|
6
|
+
readonly preview?: true;
|
|
7
|
+
}>;
|
|
99
8
|
export declare function renderFeatureCatalog(format?: "markdown" | "json"): string;
|
|
100
9
|
export declare function installAgentCommands(input: {
|
|
101
10
|
repoRoot: string;
|
package/dist/agent-setup.js
CHANGED
|
@@ -7,26 +7,38 @@ export const FIXMAP_FEATURES = [
|
|
|
7
7
|
{ name: "Impact Graph", command: "fixmap plan", detail: "Map likely dependents, dependencies, tests, and repeated Git co-change relationships around the primary context, with explicit evidence." },
|
|
8
8
|
{ name: "Context Pack", command: "fixmap context --issue <task> --budget 10000", detail: "Select task-aware source ranges from primary and impact files within a deterministic token budget." },
|
|
9
9
|
{ name: "Graph export", command: "fixmap graph --issue <task> --format mermaid", detail: "Export imports, reverse dependents, routed tests, and co-change evidence as Mermaid or JSON." },
|
|
10
|
+
{ name: "Change scope", preview: true, command: "fixmap change-scope --touch <path> [--add <path>]", detail: "Expand explicit planned code surfaces into bounded dependencies, dependents, tests, contracts, decisions, reviewers, and policy evidence without interpreting product requirements." },
|
|
11
|
+
{ name: "Product capabilities", preview: true, command: "fixmap capability <id>", detail: "Persist human-named product capabilities as reviewed path anchors, rebuild their current implementation map, or diff exact Git refs without checkout; generated conclusions never enter the store." },
|
|
12
|
+
{ name: "Cross-repository workspace", preview: true, command: "fixmap workspace --config .fixmap/workspace.json --seed <repository-id>", detail: "Resolve Node, Python, and Maven package identities across local checkouts, then trace provider-to-consumer impact with manifest and import evidence." },
|
|
13
|
+
{ name: "Repository Q&A", preview: true, command: "fixmap ask --report <plan.json> --question <text>", detail: "Answer structural context, impact, test, risk, and rationale questions from report evidence only, with citations and explicit unknowns." },
|
|
14
|
+
{ name: "Migration planning", preview: true, command: "fixmap migrate --input <migration.json>", detail: "Validate an exact identity graph and explicit steps, then order compatibility windows, tests, rollback points, and blast radius without applying changes." },
|
|
15
|
+
{ name: "Reverse documentation", preview: true, command: "fixmap reverse-docs --input <reverse-docs.json>", detail: "Draft review-only module or architecture Markdown from exact file fingerprints, structural edges, and authored decisions without writing repository files." },
|
|
16
|
+
{ name: "Architecture history", preview: true, command: "fixmap history --repo . --from <ref> --to <ref>", detail: "Compare exact committed architecture snapshots without checking out either ref or changing the worktree." },
|
|
17
|
+
{ name: "Supply-chain evidence", preview: true, command: "fixmap supply-chain --input <bundle.json>", detail: "Validate normalized external scanner or SBOM evidence with exact tool, database, document, advisory, version, and license provenance." },
|
|
18
|
+
{ name: "Runtime evidence", preview: true, command: "fixmap runtime --input <runtime.json>", detail: "Map redaction-reviewed OpenTelemetry, APM, Speedscope, or pprof observations only through exact repository paths and file fingerprints." },
|
|
19
|
+
{ name: "Execution sandbox", preview: true, command: "fixmap sandbox --request <sandbox.json> --execute-declared-command", detail: "Run exactly one reviewed command in an already-present digest-pinned Docker image with network off and source/root read-only by default." },
|
|
10
20
|
{ name: "Explain", command: "fixmap plan --explain <path>", detail: "Show whether a path ranked, tied below the limit, was excluded, or was never scanned." },
|
|
11
21
|
{ name: "Compare", command: "fixmap plan --compare <report.json>", detail: "Compare a refined task and current plan with an earlier JSON report." },
|
|
12
22
|
{ name: "Verify", command: "fixmap verify --report <report.json>", detail: "Compare the completed diff or working tree with the saved plan; add --fail-on warning for a strict CI gate." },
|
|
13
23
|
{ name: "Validate", command: "fixmap validate <report.json>", detail: "Check a saved report against FixMap's structural compatibility contract." },
|
|
14
24
|
{ name: "Doctor", command: "fixmap doctor", detail: "Diagnose stale local, global, PATH, and npx install shadows." },
|
|
15
|
-
{ name: "MCP", command: "fixmap mcp", detail: "Expose Plan, Context, Graph, Explain, Compare, Verify, and Doctor over local stdio." },
|
|
25
|
+
{ name: "MCP", command: "fixmap mcp", detail: "Expose Plan, Context, Graph, Change Scope, Capability maps, Workspace, Ask, Migrate, Reverse Docs, History, Supply Chain, Runtime, Explain, Compare, Verify, and Doctor over local stdio." },
|
|
16
26
|
{ name: "Public tasks", command: "fixmap owner/repository#123", detail: "Fetch public GitHub issue or pull-request text anonymously and scan its repository in an isolated checkout." },
|
|
17
27
|
{ name: "Repository sources", command: "--repo <path|url> --ref <branch|tag>", detail: "Map a local checkout, file URL, directory archive, or a named branch or tag from a public GitHub repository." },
|
|
18
28
|
{ name: "Task files", command: "--issue-file <file|->", detail: "Read long task text from UTF-8, UTF-16, or stdin, including BOM-less UTF-16 from common Windows tools." },
|
|
19
29
|
{ name: "Focus", command: "--limit, --exclude, .fixmapignore", detail: "Narrow ranking without changing the repository." },
|
|
20
30
|
{ name: "Live changes", command: "--working-tree --include-untracked", detail: "Map staged, unstaged, and optionally untracked work against HEAD." },
|
|
21
31
|
{ name: "Fresh scan", command: "--no-cache", detail: "Bypass the exact git-state cache with CLI --no-cache, MCP noCache: true, or Action no-cache: true, and report that a fresh scan was used." },
|
|
32
|
+
{ name: "Local hybrid retrieval", preview: true, command: "--semantic-model <dir>", detail: "Opt into structural + BM25 + local embedding rank fusion with a pre-existing model directory; model loading is local-files-only and source is never uploaded." },
|
|
22
33
|
{ name: "Machine output", command: "--format json --output <file>", detail: "Emit a versioned JSON contract or readable Markdown without executing repository code." },
|
|
23
34
|
{ name: "Compact agent output", command: "--format agent", detail: "Emit EDIT CANDIDATE, INSPECT, TEST, RISK, AVOID, and UNCERTAINTY sections for a small context window." },
|
|
24
35
|
{ name: "Repository benchmark", command: "fixmap benchmark --repo . --last 50", detail: "Backtest BM25, FixMap, and Impact Graph on historical parent snapshots with history cut off before each target change." },
|
|
25
36
|
{ name: "Watch", command: "fixmap watch --report plan.json --repo .", detail: "Continuously verify working-tree drift and recalculate impact as an agent edits." },
|
|
37
|
+
{ name: "Annotations", command: "fixmap annotate <file> --note <text>", detail: "Attach reviewable file, symbol, service, or contract knowledge with optional ownership and expiry; relevant active or stale notes surface in plans." },
|
|
26
38
|
{ name: "Test routing", command: "fixmap plan", detail: "Detect package, workspace, and language test commands, related tests, and skipped or gated suites." },
|
|
27
39
|
{ name: "Risk and diagnostics", command: "fixmap plan", detail: "Report bounded risk areas, grounding quality, unread content, scan limits, package-manager conflicts, and unresolved diffs." },
|
|
28
40
|
{ name: "GitHub Action", command: "uses: aryamthecodebreaker/FixMap@<version>", detail: "Plan or verify pull requests with bounded summaries, outputs, and one updated comment." },
|
|
29
|
-
{ name: "Agent setup", command: "fixmap setup", detail: "
|
|
41
|
+
{ name: "Agent setup", command: "fixmap setup --agent <name|all>", detail: "Explicitly install the discoverable /fixmap command for Claude Code, Cursor, GitHub Copilot, or Agent Skills; bare setup is preview-only." }
|
|
30
42
|
];
|
|
31
43
|
export function renderFeatureCatalog(format = "markdown") {
|
|
32
44
|
if (format === "json")
|
|
@@ -35,11 +47,13 @@ export function renderFeatureCatalog(format = "markdown") {
|
|
|
35
47
|
"# FixMap features",
|
|
36
48
|
"",
|
|
37
49
|
...FIXMAP_FEATURES.flatMap((feature) => [
|
|
38
|
-
`- **${feature.name}
|
|
50
|
+
`- **${feature.name}**${feature.preview ? " (preview)" : ""} — \`${feature.command}\``,
|
|
39
51
|
` ${feature.detail}`
|
|
40
52
|
]),
|
|
41
53
|
"",
|
|
42
|
-
"
|
|
54
|
+
"Preview features work and are tested, but their output and options may still change before v0.10.0.",
|
|
55
|
+
"",
|
|
56
|
+
"Run `fixmap setup --agent all` to install `/fixmap` discovery for supported coding agents; bare `fixmap setup` is preview-only.",
|
|
43
57
|
""
|
|
44
58
|
].join("\n");
|
|
45
59
|
}
|
|
@@ -50,11 +64,11 @@ When this command is invoked without a task, run \`fixmap features\` and present
|
|
|
50
64
|
When the invocation includes a task, issue URL, diff, file path, or workflow name:
|
|
51
65
|
|
|
52
66
|
1. Run \`fixmap features\` if the requested capability is ambiguous.
|
|
53
|
-
2. Use the matching local command: Plan, Context, Graph, Explain, Compare, Verify, Watch, Benchmark, Validate, Doctor, or MCP.
|
|
67
|
+
2. Use the matching local command: Plan, Context, Graph, Change Scope, Capabilities, Workspace, Ask, Migrate, Reverse Docs, History, Supply Chain, Runtime, Sandbox, Explain, Compare, Verify, Watch, Annotate, Benchmark, Validate, Doctor, or MCP.
|
|
54
68
|
3. Read the Impact Graph as files to inspect, not a claim that each file must change. Preserve each relationship's evidence.
|
|
55
69
|
4. Prefer \`--format agent\` when context is constrained, \`fixmap watch\` while an agent is editing, and \`fixmap benchmark\` when the user asks whether FixMap works on this repository.
|
|
56
70
|
5. Preserve the user's repository and never imply that FixMap ran tests or proved correctness; it produces a starting map and verification findings.
|
|
57
|
-
6. Report the exact command used and summarize files, impact, checks, risks, and diagnostics.
|
|
71
|
+
6. Report the exact command used and summarize files, impact, checks, risks, human intent, and diagnostics.
|
|
58
72
|
|
|
59
73
|
Prefer \`fixmap plan --issue "$ARGUMENTS" --repo .\` for task text. Use a canonical public GitHub issue URL directly when one is provided.`;
|
|
60
74
|
const templates = {
|
package/dist/agent-setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
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H,CAAC;AACH,CAAC;AAED,KAAK,UAAU,gBAAgB,CAAC,IAAe;IAC7C,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IAC1B,IAAI,CAAC;QACH,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAC7C,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC;YAC3B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;SACjB,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,QAAQ,CAAC,cAAc,EAAE,IAAI,QAAQ,CAAC,KAAK,GAAG,CAAC,IAAI,QAAQ,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC;YACrG,MAAM,IAAI,KAAK,CAAC,sBAAsB,IAAI,CAAC,IAAI,qEAAqE,CAAC,CAAC;QACxH,CAAC;QACD,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAK,KAA4B,CAAC,IAAI,KAAK,QAAQ;YAAE,MAAM,KAAK,CAAC;IACnE,CAAC;AACH,CAAC"}
|
package/dist/analysis-source.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buildFixMapAnalysis, buildContextPack } from "@aryam/fixmap-core";
|
|
1
|
+
import { buildFixMapAnalysis, buildContextPack, createLocalTransformersEmbeddingProvider, withPersistentEmbeddingCache } from "@aryam/fixmap-core";
|
|
2
2
|
import { fetchPublicGitHubIssue, findLocalGitHubRepositoryUrl, parseGitHubIssueSource, parseRepositorySource, RepositorySourceError, withRepositorySource } from "./repository-source.js";
|
|
3
3
|
const MAX_ISSUE_BODY_CHARS = 20_000;
|
|
4
4
|
export async function analyzeRepository(input, dependencies = {}) {
|
|
@@ -34,6 +34,9 @@ export async function analyzeRepository(input, dependencies = {}) {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
return withRepositorySource(source, async (resolved) => {
|
|
37
|
+
const embeddingProvider = input.semanticModelPath
|
|
38
|
+
? await withPersistentEmbeddingCache(await createLocalTransformersEmbeddingProvider({ modelPath: input.semanticModelPath }), { repositoryRoot: resolved.repoRoot })
|
|
39
|
+
: undefined;
|
|
37
40
|
const { report, repo } = await buildFixMapAnalysis({
|
|
38
41
|
repoRoot: resolved.repoRoot,
|
|
39
42
|
issueText: task,
|
|
@@ -46,7 +49,8 @@ export async function analyzeRepository(input, dependencies = {}) {
|
|
|
46
49
|
includeHistory: true,
|
|
47
50
|
limit: input.limit,
|
|
48
51
|
exclude: input.exclude,
|
|
49
|
-
internalExclude: input.internalExclude
|
|
52
|
+
internalExclude: input.internalExclude,
|
|
53
|
+
embeddingProvider
|
|
50
54
|
});
|
|
51
55
|
report.diagnostics.unshift(...[issueDiagnostic, resolved.diagnostic].filter((entry) => entry !== undefined));
|
|
52
56
|
return { task, report, repo };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analysis-source.js","sourceRoot":"","sources":["../src/analysis-source.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"analysis-source.js","sourceRoot":"","sources":["../src/analysis-source.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,wCAAwC,EACxC,4BAA4B,EAK7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EAErB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAwBpC,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,KAA0B,EAC1B,eAA6C,EAAE;IAE/C,MAAM,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,sBAAsB,C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file> --note <text> [--owner <name>] [--expires <ISO-date>] [--repo <path>]\n fixmap annotate <file> --symbol <name> --note <text> [--repo <path>]\n fixmap annotate --service <name> --note <text> [--repo <path>]\n fixmap annotate [<file>] --contract <name> --note <text> [--repo <path>]\n fixmap annotate --list [--format markdown|json] [--repo <path>]\n fixmap annotate --remove <annotation:id> [--repo <path>]\n\nWrites a reviewable .fixmap/annotations.json store. File targets must exist inside the repository.\n";
|
|
2
|
+
type AnnotationCommandIo = {
|
|
3
|
+
stdout: (text: string) => void;
|
|
4
|
+
stderr: (text: string) => void;
|
|
5
|
+
now?: () => Date;
|
|
6
|
+
};
|
|
7
|
+
export declare function runAnnotateCommand(args: string[], io: AnnotationCommandIo): Promise<number>;
|
|
8
|
+
export {};
|