projscan 3.7.0 → 3.8.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/README.md CHANGED
@@ -9,9 +9,9 @@
9
9
 
10
10
  **Agent-first code intelligence.** An MCP server that lets AI coding agents (Claude Code, Codex, Cursor, Gemini, Windsurf, Cline, Continue, Zed — any MCP-aware client) query your codebase — with a CLI for humans and a local plugin layer for team-specific policy and reporting.
11
11
 
12
- [AI Agent Quick Start](#ai-agent-integration-mcp) · [CLI Quick Start](#quick-start) · [Commands](#commands) · [Full Guide](https://github.com/abhiyoheswaran1/projscan/blob/v3.7.0/docs/GUIDE.md) · [Roadmap](https://github.com/abhiyoheswaran1/projscan/blob/v3.7.0/docs/ROADMAP.md)
12
+ [AI Agent Quick Start](#ai-agent-integration-mcp) · [CLI Quick Start](#quick-start) · [Commands](#commands) · [Full Guide](https://github.com/abhiyoheswaran1/projscan/blob/v3.8.0/docs/GUIDE.md) · [Roadmap](https://github.com/abhiyoheswaran1/projscan/blob/v3.8.0/docs/ROADMAP.md)
13
13
 
14
- <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.7.0/docs/projscan-reporter-plugin.png" alt="projscan reporter plugin running in a macOS-style terminal window with a team health summary" width="700">
14
+ <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.8.0/docs/projscan-reporter-plugin.png" alt="projscan reporter plugin running in a macOS-style terminal window with a team health summary" width="700">
15
15
 
16
16
  </div>
17
17
 
@@ -33,7 +33,7 @@ The local plugin platform lets teams add project-specific findings and render `d
33
33
  npx projscan
34
34
  ```
35
35
 
36
- <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.7.0/docs/projscan-reporter-plugin.gif" alt="projscan doctor rendered through a local reporter plugin in a macOS-style terminal window" width="700">
36
+ <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.8.0/docs/projscan-reporter-plugin.gif" alt="projscan doctor rendered through a local reporter plugin in a macOS-style terminal window" width="700">
37
37
 
38
38
  Run `projscan doctor` for a focused health check:
39
39
 
@@ -41,7 +41,7 @@ Run `projscan doctor` for a focused health check:
41
41
  npx projscan doctor
42
42
  ```
43
43
 
44
- <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.7.0/docs/npx%20projscan%20doctor.gif" alt="npx projscan doctor" width="700">
44
+ <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.8.0/docs/npx%20projscan%20doctor.gif" alt="npx projscan doctor" width="700">
45
45
 
46
46
  ## Install
47
47
 
@@ -94,9 +94,9 @@ npm run test:trust-smoke
94
94
 
95
95
  The full command catalog is below. Most users should start with the five-command path above instead of scanning the catalog.
96
96
 
97
- <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.7.0/docs/npx%20projscan%20--help.gif" alt="npx projscan --help" width="700">
97
+ <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.8.0/docs/npx%20projscan%20--help.gif" alt="npx projscan --help" width="700">
98
98
 
99
- For a comprehensive walkthrough, see the **[Full Guide](https://github.com/abhiyoheswaran1/projscan/blob/v3.7.0/docs/GUIDE.md)**.
99
+ For a comprehensive walkthrough, see the **[Full Guide](https://github.com/abhiyoheswaran1/projscan/blob/v3.8.0/docs/GUIDE.md)**.
100
100
 
101
101
  ## Repo Understanding
102
102
 
@@ -177,31 +177,31 @@ projscan --help
177
177
  <details>
178
178
  <summary><strong>projscan structure</strong> - Directory tree with file counts</summary>
179
179
 
180
- <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.7.0/docs/npx%20projscan%20structure.gif" alt="npx projscan structure" width="700">
180
+ <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.8.0/docs/npx%20projscan%20structure.gif" alt="npx projscan structure" width="700">
181
181
  </details>
182
182
 
183
183
  <details>
184
184
  <summary><strong>projscan diagram</strong> - Architecture visualization</summary>
185
185
 
186
- <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.7.0/docs/npx%20projscan%20diagram.gif" alt="npx projscan diagram" width="700">
186
+ <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.8.0/docs/npx%20projscan%20diagram.gif" alt="npx projscan diagram" width="700">
187
187
  </details>
188
188
 
189
189
  <details>
190
190
  <summary><strong>projscan dependencies</strong> - Dependency analysis</summary>
191
191
 
192
- <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.7.0/docs/npx%20projscan%20dependencies.gif" alt="npx projscan dependencies" width="700">
192
+ <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.8.0/docs/npx%20projscan%20dependencies.gif" alt="npx projscan dependencies" width="700">
193
193
  </details>
194
194
 
195
195
  <details>
196
196
  <summary><strong>projscan explain</strong> - File explanation</summary>
197
197
 
198
- <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.7.0/docs/npx%20projscan%20explain.gif" alt="npx projscan explain" width="700">
198
+ <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.8.0/docs/npx%20projscan%20explain.gif" alt="npx projscan explain" width="700">
199
199
  </details>
200
200
 
201
201
  <details>
202
202
  <summary><strong>projscan badge</strong> - Health badge generation</summary>
203
203
 
204
- <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.7.0/docs/npx%20projscan%20badge.gif" alt="npx projscan badge" width="700">
204
+ <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.8.0/docs/npx%20projscan%20badge.gif" alt="npx projscan badge" width="700">
205
205
  </details>
206
206
 
207
207
  ### Output Formats
@@ -223,7 +223,7 @@ Run `projscan help` for the generated command-by-command support matrix.
223
223
 
224
224
  projscan can load local plugins from `.projscan-plugins/` when `PROJSCAN_PLUGINS_PREVIEW=1` is set. The environment flag is kept for explicit local-code opt-in. Analyzer plugins emit normal projscan issues; reporter plugins render supported CLI commands with team-specific output.
225
225
 
226
- **2.0 upgrade notes:** migrating from 1.x or authoring plugins? Start with the [2.0 Migration Guide](https://github.com/abhiyoheswaran1/projscan/blob/v3.7.0/docs/2.0-MIGRATION.md), then use [Plugin Authoring](https://github.com/abhiyoheswaran1/projscan/blob/v3.7.0/docs/PLUGIN-AUTHORING.md), the [Plugin Gallery](https://github.com/abhiyoheswaran1/projscan/blob/v3.7.0/docs/PLUGIN-GALLERY.md), and the [manifest schema](https://github.com/abhiyoheswaran1/projscan/blob/v3.7.0/docs/plugin.schema.json) as the stable contract.
226
+ **2.0 upgrade notes:** migrating from 1.x or authoring plugins? Start with the [2.0 Migration Guide](https://github.com/abhiyoheswaran1/projscan/blob/v3.8.0/docs/2.0-MIGRATION.md), then use [Plugin Authoring](https://github.com/abhiyoheswaran1/projscan/blob/v3.8.0/docs/PLUGIN-AUTHORING.md), the [Plugin Gallery](https://github.com/abhiyoheswaran1/projscan/blob/v3.8.0/docs/PLUGIN-GALLERY.md), and the [manifest schema](https://github.com/abhiyoheswaran1/projscan/blob/v3.8.0/docs/plugin.schema.json) as the stable contract.
227
227
 
228
228
  ```bash
229
229
  projscan plugin list
@@ -234,9 +234,9 @@ PROJSCAN_PLUGINS_PREVIEW=1 projscan doctor --reporter team-radar
234
234
  PROJSCAN_PLUGINS_PREVIEW=1 projscan ci --reporter team-radar --min-score 80
235
235
  ```
236
236
 
237
- <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.7.0/docs/projscan-reporter-plugin.gif" alt="projscan local reporter plugin rendering a team health report" width="700">
237
+ <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.8.0/docs/projscan-reporter-plugin.gif" alt="projscan local reporter plugin rendering a team health report" width="700">
238
238
 
239
- Reporter plugins are intentionally CLI-only. MCP tools keep returning structured JSON-compatible payloads so agents can reason over stable data, while humans can get a polished local report for their team. Custom presentation, team-branded summaries, and white-label reports belong in reporter plugins rather than new core HTML theming flags. See [Plugin Authoring](https://github.com/abhiyoheswaran1/projscan/blob/v3.7.0/docs/PLUGIN-AUTHORING.md) for manifest shape, `render(context)`, validation, and the trust model.
239
+ Reporter plugins are intentionally CLI-only. MCP tools keep returning structured JSON-compatible payloads so agents can reason over stable data, while humans can get a polished local report for their team. Custom presentation, team-branded summaries, and white-label reports belong in reporter plugins rather than new core HTML theming flags. See [Plugin Authoring](https://github.com/abhiyoheswaran1/projscan/blob/v3.8.0/docs/PLUGIN-AUTHORING.md) for manifest shape, `render(context)`, validation, and the trust model.
240
240
 
241
241
  ### Options
242
242
 
@@ -401,7 +401,7 @@ If you read projscan's [Socket report](https://socket.dev/npm/package/projscan),
401
401
  ### Audit it yourself
402
402
 
403
403
  - **Source is open** at [github.com/abhiyoheswaran1/projscan](https://github.com/abhiyoheswaran1/projscan). The npm tarball matches the `dist/` produced by `npm run build` at the matching tag.
404
- - **Public API surface is locked** by `scripts/check-stability.mjs`, which runs in CI on every PR and fails on any rename or removal of an MCP tool, CLI command, or exit code. See [`docs/STABILITY.md`](https://github.com/abhiyoheswaran1/projscan/blob/v3.7.0/docs/STABILITY.md).
404
+ - **Public API surface is locked** by `scripts/check-stability.mjs`, which runs in CI on every PR and fails on any rename or removal of an MCP tool, CLI command, or exit code. See [`docs/STABILITY.md`](https://github.com/abhiyoheswaran1/projscan/blob/v3.8.0/docs/STABILITY.md).
405
405
  - **Run it offline:** `npm install -g projscan` followed by anything except `audit` and `--mode semantic` works without network.
406
406
  - **Drop privilege further:** in CI, run projscan in a sandbox that disallows network egress; everything except `audit` will pass.
407
407
 
@@ -452,7 +452,7 @@ projscan ci --changed-only # Gate only on this PR's diff
452
452
  projscan ci --format sarif > projscan.sarif # SARIF for Code Scanning
453
453
  ```
454
454
 
455
- <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.7.0/docs/npx%20projscan%20ci%20--min-score%2070.gif" alt="npx projscan ci --min-score 70" width="700">
455
+ <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.8.0/docs/npx%20projscan%20ci%20--min-score%2070.gif" alt="npx projscan ci --min-score 70" width="700">
456
456
 
457
457
  ### GitHub Action (recommended)
458
458
 
@@ -529,7 +529,7 @@ Fields:
529
529
  - `hotspots.limit` / `hotspots.since` - defaults for the `hotspots` command
530
530
  - `monorepo.importPolicy` - cross-package import allow/deny rules in monorepos *(0.14+)*
531
531
 
532
- See [`docs/GUIDE.md` → Configuration](https://github.com/abhiyoheswaran1/projscan/blob/v3.7.0/docs/GUIDE.md#configuration-projscanrc) for the full reference (field types, validation behavior, embedding config in `package.json`, monorepo `importPolicy` semantics).
532
+ See [`docs/GUIDE.md` → Configuration](https://github.com/abhiyoheswaran1/projscan/blob/v3.8.0/docs/GUIDE.md#configuration-projscanrc) for the full reference (field types, validation behavior, embedding config in `package.json`, monorepo `importPolicy` semantics).
533
533
 
534
534
  ## Tracking Health Over Time
535
535
 
@@ -542,7 +542,7 @@ projscan diff # Compare against baseline
542
542
  projscan diff --format markdown # Markdown diff for PRs
543
543
  ```
544
544
 
545
- <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.7.0/docs/npx%20projscan%20diff%20--save-baseline.gif" alt="npx projscan diff --save-baseline" width="700">
545
+ <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.8.0/docs/npx%20projscan%20diff%20--save-baseline.gif" alt="npx projscan diff --save-baseline" width="700">
546
546
 
547
547
  ## Hotspots - Where to Fix First
548
548
 
@@ -631,7 +631,7 @@ Coverage is also automatically joined into `projscan hotspots` when one of those
631
631
 
632
632
  **This is the primary way to use projscan.** `projscan mcp` starts an [MCP](https://modelcontextprotocol.io) server over stdio so AI coding agents can query your codebase with real structural accuracy - not regex, not grep.
633
633
 
634
- <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.7.0/docs/projscan-agent-demo.gif" alt="projscan answering two agent questions: what breaks if I rename buildCodeGraph (impact analysis with definitions, direct callers, transitive reach), and where should I fix first (ranked hotspots with cyclomatic complexity)" width="700">
634
+ <img src="https://raw.githubusercontent.com/abhiyoheswaran1/projscan/v3.8.0/docs/projscan-agent-demo.gif" alt="projscan answering two agent questions: what breaks if I rename buildCodeGraph (impact analysis with definitions, direct callers, transitive reach), and where should I fix first (ranked hotspots with cyclomatic complexity)" width="700">
635
635
 
636
636
  Two questions an agent asks; structural answers in milliseconds. *"What breaks if I rename `buildCodeGraph`?"* → 31 direct callers, 97 files reachable. *"Where should I fix first?"* → ranked hotspots with AST cyclomatic complexity, churn, and ownership signals.
637
637
 
@@ -836,7 +836,7 @@ Capability is advertised under `experimental.fileChanged` on `initialize` so cli
836
836
  - **`projscan_apply_fix`** *(1.6)* - mechanically execute the safe fix templates. Default is dry-run; pass `confirm: true` to write. Atomic writes, per-apply rollback record at `.projscan-cache/rollbacks/<id>.json`. Reverse with `action: "rollback", rollback_id: ...`. Six templates supported at this release: `unused-dependency-*`, `missing-test-framework`, `missing-eslint`, `missing-prettier`, `missing-editorconfig`, `missing-readme`.
837
837
  - **`projscan_taint`** *(1.6)* - source-to-sink reachability over the per-function call graph. Built-in defaults cover common JS / Python sources (`process.env`, `req.body`, etc.) and sinks (`exec`, `eval`, `db.query`, etc.). Project-specific names go in `.projscanrc.json` `taint`. `projscan_review` automatically diffs taint flows between base and head and **blocks any PR that introduces a new flow**. In 3.0.2, review surfaces hardened `newDataflowRisks`, compact `graphEvidence`, and graph-readiness gates for safer handoff.
838
838
 
839
- Analyzer plugins can optionally read graph/dataflow context through `check(rootPath, files, context)` while staying on manifest schema v1. The packaged `graph-context` example shows `context.getSemanticGraph()` and `context.getDataflow()` in a real analyzer. For analyzer and reporter plugin authoring, manifest validation, `--reporter <name>`, and the trust model, see [Plugin Authoring](https://github.com/abhiyoheswaran1/projscan/blob/v3.7.0/docs/PLUGIN-AUTHORING.md).
839
+ Analyzer plugins can optionally read graph/dataflow context through `check(rootPath, files, context)` while staying on manifest schema v1. The packaged `graph-context` example shows `context.getSemanticGraph()` and `context.getDataflow()` in a real analyzer. For analyzer and reporter plugin authoring, manifest validation, `--reporter <name>`, and the trust model, see [Plugin Authoring](https://github.com/abhiyoheswaran1/projscan/blob/v3.8.0/docs/PLUGIN-AUTHORING.md).
840
840
 
841
841
  ### Context-window budgeting
842
842
 
@@ -4,6 +4,7 @@ import { program, setupLogLevel, maybeCompactBanner, analyzeFile, assertFormatSu
4
4
  import { reportExplanation } from '../../reporters/consoleReporter.js';
5
5
  import { reportExplanationJson } from '../../reporters/jsonReporter.js';
6
6
  import { reportExplanationMarkdown } from '../../reporters/markdownReporter.js';
7
+ import { formatCliDeprecationNotice } from '../../core/deprecations.js';
7
8
  export function registerExplain() {
8
9
  program
9
10
  .command('explain <file>')
@@ -11,6 +12,11 @@ export function registerExplain() {
11
12
  .action(async (filePath) => {
12
13
  setupLogLevel();
13
14
  maybeCompactBanner();
15
+ console.error(chalk.yellow(formatCliDeprecationNotice('explain', {
16
+ since: '3.8.0',
17
+ replacedBy: 'projscan file',
18
+ note: 'projscan file is a strict superset (adds churn, risk, ownership, and related health).',
19
+ })));
14
20
  const format = assertFormatSupported('explain');
15
21
  const absolutePath = path.resolve(filePath);
16
22
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"explain.js","sourceRoot":"","sources":["../../../src/cli/commands/explain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,MAAM,UAAU,eAAe;IAC7B,OAAO;SACJ,OAAO,CAAC,gBAAgB,CAAC;SACzB,WAAW,CAAC,yDAAyD,CAAC;SACtE,MAAM,CAAC,KAAK,EAAE,QAAgB,EAAE,EAAE;QACjC,aAAa,EAAE,C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,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ,IAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;gBACrF,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,mBAAmB,QAAQ,EAAE,CAAC,CAAC,CAAC;gBACxD,OAAO,CAAC,KAAK,CACX,KAAK,CAAC,GAAG,CAAC,kFAAkF,CAAC,CAC9F,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;YACpC,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Tool/command deprecation primitives (3.8 deprecation pass).
3
+ *
4
+ * projscan ships a 1.0 stability contract: tools and CLI commands are not
5
+ * removed or renamed within a major. The 4.0 surface consolidation removes a
6
+ * long tail of tools, so 3.8 introduces a *deprecation* signal first — a
7
+ * non-breaking, reversible marker that tells agents and humans "this still
8
+ * works today, but is going away; here is the replacement". Removal happens in
9
+ * {@link REMOVAL_VERSION}, never before.
10
+ *
11
+ * This module is the single source of truth for how a deprecation renders, so
12
+ * the MCP tool surface (description prefix) and the CLI (stderr notice) stay
13
+ * in lockstep. See docs/MIGRATION-4.0.md.
14
+ */
15
+ import type { ToolDeprecation } from '../types.js';
16
+ export type { ToolDeprecation };
17
+ /** The major release in which deprecated tools/commands are actually removed. */
18
+ export declare const REMOVAL_VERSION = "4.0";
19
+ /**
20
+ * Prefix prepended to a deprecated MCP tool's description. Machine-greppable
21
+ * (`[DEPRECATED`) and human-readable, with a trailing space so it composes
22
+ * cleanly in front of the existing description.
23
+ */
24
+ export declare function deprecationDescriptionPrefix(dep: ToolDeprecation): string;
25
+ /**
26
+ * One-line stderr notice for a deprecated CLI command. `command` is the bare
27
+ * subcommand name (e.g. "explain"); `replacedBy` should read as the
28
+ * replacement invocation (e.g. "projscan file").
29
+ */
30
+ export declare function formatCliDeprecationNotice(command: string, dep: ToolDeprecation): string;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Tool/command deprecation primitives (3.8 deprecation pass).
3
+ *
4
+ * projscan ships a 1.0 stability contract: tools and CLI commands are not
5
+ * removed or renamed within a major. The 4.0 surface consolidation removes a
6
+ * long tail of tools, so 3.8 introduces a *deprecation* signal first — a
7
+ * non-breaking, reversible marker that tells agents and humans "this still
8
+ * works today, but is going away; here is the replacement". Removal happens in
9
+ * {@link REMOVAL_VERSION}, never before.
10
+ *
11
+ * This module is the single source of truth for how a deprecation renders, so
12
+ * the MCP tool surface (description prefix) and the CLI (stderr notice) stay
13
+ * in lockstep. See docs/MIGRATION-4.0.md.
14
+ */
15
+ /** The major release in which deprecated tools/commands are actually removed. */
16
+ export const REMOVAL_VERSION = '4.0';
17
+ /**
18
+ * Prefix prepended to a deprecated MCP tool's description. Machine-greppable
19
+ * (`[DEPRECATED`) and human-readable, with a trailing space so it composes
20
+ * cleanly in front of the existing description.
21
+ */
22
+ export function deprecationDescriptionPrefix(dep) {
23
+ return `[DEPRECATED since ${dep.since}, removed in ${REMOVAL_VERSION} — use ${dep.replacedBy}] `;
24
+ }
25
+ /**
26
+ * One-line stderr notice for a deprecated CLI command. `command` is the bare
27
+ * subcommand name (e.g. "explain"); `replacedBy` should read as the
28
+ * replacement invocation (e.g. "projscan file").
29
+ */
30
+ export function formatCliDeprecationNotice(command, dep) {
31
+ const base = `projscan ${command} is deprecated (since ${dep.since}) and will be removed in ${REMOVAL_VERSION} — use ${dep.replacedBy} instead.`;
32
+ return dep.note ? `${base} ${dep.note}` : base;
33
+ }
34
+ //# sourceMappingURL=deprecations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecations.js","sourceRoot":"","sources":["../../src/core/deprecations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,iFAAiF;AACjF,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC;AAErC;;;;GAIG;AACH,MAAM,UAAU,4BAA4B,CAAC,GAAoB;IAC/D,OAAO,qBAAqB,GAAG,CAAC,KAAK,gBAAgB,eAAe,UAAU,GAAG,CAAC,UAAU,IAAI,CAAC;AACnG,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CAAC,OAAe,EAAE,GAAoB;IAC9E,MAAM,IAAI,GAAG,YAAY,OAAO,yBAAyB,GAAG,CAAC,KAAK,4BAA4B,eAAe,UAAU,GAAG,CAAC,UAAU,WAAW,CAAC;IACjJ,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACjD,CAAC"}
@@ -2,6 +2,11 @@ import path from 'node:path';
2
2
  import { explainFile } from './_shared.js';
3
3
  export const explainTool = {
4
4
  name: 'projscan_explain',
5
+ deprecated: {
6
+ since: '3.8.0',
7
+ replacedBy: 'projscan_file',
8
+ note: 'projscan_file is a strict superset (same purpose/imports/exports plus churn, risk, ownership, and related health).',
9
+ },
5
10
  description: 'Explain a single file: purpose, imports, exports, and potential issues. Useful for understanding unfamiliar code before editing.',
6
11
  inputSchema: {
7
12
  type: 'object',
@@ -1 +1 @@
1
- {"version":3,"file":"explain.js","sourceRoot":"","sources":["../../../src/mcp/tools/explain.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAgB,MAAM,cAAc,CAAC;AAEzD,MAAM,CAAC,MAAM,WAAW,GAAY;IAClC,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,kIAAkI;IACpI,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,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d,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gDAAgD;aAC9D;SACF;QACD,QAAQ,EAAE,CAAC,MAAM,CAAC;KACnB;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;QAChC,MAAM,GAAG,GAAG,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3D,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,4EAA4E,CAC7E,CAAC;QACJ,CAAC;QACD,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;QACjD,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC5C,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,YAAY,KAAK,YAAY,EAAE,CAAC;YACvF,MAAM,IAAI,KAAK,CACb,8CAA8C,GAAG,wDAAwD,CAC1G,CAAC;QACJ,CAAC;QACD,OAAO,MAAM,WAAW,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IACnD,CAAC;CACF,CAAC"}
@@ -3,6 +3,11 @@ import { buildCodeGraph, filesImportingFile, filesImportingPackage, filesDefinin
3
3
  import { loadCachedGraph, saveCachedGraph } from '../../core/indexCache.js';
4
4
  export const graphTool = {
5
5
  name: 'projscan_graph',
6
+ deprecated: {
7
+ since: '3.8.0',
8
+ replacedBy: 'projscan_semantic_graph',
9
+ note: 'projscan_semantic_graph is the stable v3 successor (same nodes/edges with a versioned, supported contract).',
10
+ },
6
11
  description: 'Query the AST-based code graph directly. Returns imports, exports, importers, or symbol definitions for a file or symbol. Agents should prefer this over analyze/doctor/explain for targeted structural questions - it is much cheaper and more accurate.',
7
12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,IAAI,EAAE,SAAS,EAAE,kBAAkB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;YAC9E,CAAC;YACD,KAAK,aAAa,CAAC,CAAC,CAAC;gBACnB,IAAI,CAAC,MAAM,EAAE,CAAC;oBACZ,MAAM,IAAI,KAAK,CACb,yGAAyG,CAC1G,CAAC;gBACJ,CAAC;gBACD,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;YACnF,CAAC;YACD,KAAK,mBAAmB,CAAC,CAAC,CAAC;gBACzB,MAAM,GAAG,GAAG,MAAM,IAAI,IAAI,CAAC;gBAC3B,IAAI,CAAC,GAAG,EAAE,CAAC;oBACT,MAAM,IAAI,KAAK,CACb,0GAA0G,CAC3G,CAAC;gBACJ,CAAC;gBACD,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,qBAAqB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;YACxF,CAAC;YACD;gBACE,MAAM,IAAI,KAAK,CACb,sBAAsB,SAAS,wEAAwE,CACxG,CAAC;QACN,CAAC;IACH,CAAC;CACF,CAAC"}
package/dist/mcp/tools.js CHANGED
@@ -55,6 +55,7 @@ import { qualityScorecardTool } from './tools/qualityScorecard.js';
55
55
  import { adoptionTool } from './tools/adoption.js';
56
56
  import { startTool } from './tools/start.js';
57
57
  import { understandTool } from './tools/understand.js';
58
+ import { deprecationDescriptionPrefix } from '../core/deprecations.js';
58
59
  const tools = [
59
60
  analyzeTool,
60
61
  doctorTool,
@@ -105,7 +106,16 @@ const tools = [
105
106
  coordinateWatchTool,
106
107
  ];
107
108
  export function getToolDefinitions() {
108
- return tools.map(({ name, description, inputSchema }) => ({ name, description, inputSchema }));
109
+ return tools.map(({ name, description, inputSchema, deprecated }) => {
110
+ const def = {
111
+ name,
112
+ description: deprecated ? deprecationDescriptionPrefix(deprecated) + description : description,
113
+ inputSchema,
114
+ };
115
+ if (deprecated)
116
+ def.deprecated = deprecated;
117
+ return def;
118
+ });
109
119
  }
110
120
  export function getToolHandler(name) {
111
121
  return tools.find((t) => t.name === name)?.handler;
@@ -1 +1 @@
1
- {"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/mcp/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,c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,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,OAAO,CAAC;AACrD,CAAC"}
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "bomFormat": "CycloneDX",
3
3
  "specVersion": "1.5",
4
- "serialNumber": "urn:uuid:6dab452f-f2df-4c0a-b793-e7ba294a3df5",
4
+ "serialNumber": "urn:uuid:6b78bfe2-a5f6-4787-a657-a217e74615bd",
5
5
  "version": 1,
6
6
  "metadata": {
7
- "timestamp": "2026-06-05T15:33:32.104Z",
7
+ "timestamp": "2026-06-05T16:37:35.349Z",
8
8
  "tools": [
9
9
  {
10
10
  "vendor": "projscan",
11
11
  "name": "projscan-sbom-generator",
12
- "version": "3.7.0"
12
+ "version": "3.8.0"
13
13
  }
14
14
  ],
15
15
  "component": {
16
16
  "type": "application",
17
- "bom-ref": "pkg:npm/projscan@3.7.0",
17
+ "bom-ref": "pkg:npm/projscan@3.8.0",
18
18
  "name": "projscan",
19
- "version": "3.7.0",
20
- "purl": "pkg:npm/projscan@3.7.0"
19
+ "version": "3.8.0",
20
+ "purl": "pkg:npm/projscan@3.8.0"
21
21
  }
22
22
  },
23
23
  "components": [
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "projscan",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "mcpProtocolVersion": "2025-03-26",
5
- "generatedAt": "2026-06-05T15:33:37.612Z",
5
+ "generatedAt": "2026-06-05T16:37:40.687Z",
6
6
  "toolCount": 47,
7
7
  "tools": [
8
8
  {
@@ -78,7 +78,7 @@
78
78
  },
79
79
  {
80
80
  "name": "projscan_explain",
81
- "description": "Explain a single file: purpose, imports, exports, and potential issues. Useful for understanding unfamiliar code before editing.",
81
+ "description": "[DEPRECATED since 3.8.0, removed in 4.0 — use projscan_file] Explain a single file: purpose, imports, exports, and potential issues. Useful for understanding unfamiliar code before editing.",
82
82
  "inputSchema": {
83
83
  "type": "object",
84
84
  "properties": {
@@ -227,7 +227,7 @@
227
227
  },
228
228
  {
229
229
  "name": "projscan_graph",
230
- "description": "Query the AST-based code graph directly. Returns imports, exports, importers, or symbol definitions for a file or symbol. Agents should prefer this over analyze/doctor/explain for targeted structural questions - it is much cheaper and more accurate.",
230
+ "description": "[DEPRECATED since 3.8.0, removed in 4.0 — use projscan_semantic_graph] Query the AST-based code graph directly. Returns imports, exports, importers, or symbol definitions for a file or symbol. Agents should prefer this over analyze/doctor/explain for targeted structural questions - it is much cheaper and more accurate.",
231
231
  "inputSchema": {
232
232
  "type": "object",
233
233
  "properties": {
package/dist/types.d.ts CHANGED
@@ -1941,6 +1941,18 @@ export interface FunctionDetail {
1941
1941
  */
1942
1942
  fanIn?: number;
1943
1943
  }
1944
+ /**
1945
+ * A reversible deprecation marker (3.8 deprecation pass). Present on a tool
1946
+ * means "still works, but slated for removal in 4.0 — prefer `replacedBy`".
1947
+ */
1948
+ export interface ToolDeprecation {
1949
+ /** Version the deprecation was announced in (e.g. "3.8.0"). */
1950
+ since: string;
1951
+ /** The recommended replacement (tool name for MCP, invocation for CLI). */
1952
+ replacedBy: string;
1953
+ /** Optional one-line rationale shown to humans/agents. */
1954
+ note?: string;
1955
+ }
1944
1956
  export interface McpToolDefinition {
1945
1957
  name: string;
1946
1958
  description: string;
@@ -1949,6 +1961,8 @@ export interface McpToolDefinition {
1949
1961
  properties: Record<string, unknown>;
1950
1962
  required?: string[];
1951
1963
  };
1964
+ /** Set when the tool is deprecated and scheduled for removal in 4.0. */
1965
+ deprecated?: ToolDeprecation;
1952
1966
  }
1953
1967
  export interface McpPromptArgument {
1954
1968
  name: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "projscan",
3
3
  "mcpName": "io.github.abhiyoheswaran1/projscan",
4
- "version": "3.7.0",
4
+ "version": "3.8.0",
5
5
  "description": "Agent-first code intelligence. MCP server (2025-03-26) with AST parsing for JavaScript, TypeScript, Python, Go, Java, Ruby, Rust, PHP, C#, Kotlin, Swift, and C++; repo understanding maps (projscan_understand), stable v3 semantic graph (projscan_semantic_graph), dataflow risk engine with bridge-helper detection (projscan_dataflow), code graph, file + per-function AST cyclomatic complexity, per-function fan-in + fan-out, coupling + cycle detection, structural PR diff with HTML reporter, coverage report with HTML reporter, intent-grounded one-call PR review (projscan_review with optional `intent` arg, new taint flows, contract changes, and newDataflowRisks) and long-running PR-watch mode with structured per-bucket deltas (projscan_review_watch), first-60-seconds workflow orientation (projscan_start), agent workplans (projscan_workplan), bug-hunt queues (projscan_bug_hunt), product-line planning (projscan_release_train), evidence packs (projscan_evidence_pack), regression planning (projscan_regression_plan), agent briefs (projscan_agent_brief), quality scorecards (projscan_quality_scorecard), and preflight with supply-chain IOC evidence, rule-driven fix suggestions + mechanical apply layer with rollback (projscan_apply_fix, projscan_fix_suggest, projscan_explain_issue), source-to-sink taint analysis (projscan_taint) with truncation reporting, transitive blast-radius analysis with cross-repo mode (projscan_impact for files and symbols), cross-repo workspace registration + intelligence (projscan_workspace_graph), per-function semantic search chunks (sub-file embeddings), per-rule confidence + severity drift + cost-summary analytics with live streaming (projscan_cost_summary), stable local analyzer + reporter plugin API (projscan_plugin, CLI --reporter, opt-in via PROJSCAN_PLUGINS_PREVIEW=1), monorepo workspace awareness with cross-package import policy + per-package dependencies / outdated / audit, BM25 + optional semantic search, cursor pagination, progress notifications, context-budgeted output, and a stable-surface CI guard. CLI on the side.",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",