projscan 3.5.0 → 3.7.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.
Files changed (68) hide show
  1. package/README.md +27 -21
  2. package/dist/cli/commands/claim.d.ts +5 -0
  3. package/dist/cli/commands/claim.js +139 -0
  4. package/dist/cli/commands/claim.js.map +1 -0
  5. package/dist/cli/commands/collision.d.ts +5 -0
  6. package/dist/cli/commands/collision.js +62 -0
  7. package/dist/cli/commands/collision.js.map +1 -0
  8. package/dist/cli/commands/coordinate.d.ts +7 -0
  9. package/dist/cli/commands/coordinate.js +98 -0
  10. package/dist/cli/commands/coordinate.js.map +1 -0
  11. package/dist/cli/commands/mergeRisk.d.ts +5 -0
  12. package/dist/cli/commands/mergeRisk.js +58 -0
  13. package/dist/cli/commands/mergeRisk.js.map +1 -0
  14. package/dist/cli/commands/route.d.ts +5 -0
  15. package/dist/cli/commands/route.js +53 -0
  16. package/dist/cli/commands/route.js.map +1 -0
  17. package/dist/cli/index.js +10 -0
  18. package/dist/cli/index.js.map +1 -1
  19. package/dist/core/agentBrief.js +32 -2
  20. package/dist/core/agentBrief.js.map +1 -1
  21. package/dist/core/claims.d.ts +60 -0
  22. package/dist/core/claims.js +139 -0
  23. package/dist/core/claims.js.map +1 -0
  24. package/dist/core/collisionDetector.d.ts +65 -0
  25. package/dist/core/collisionDetector.js +222 -0
  26. package/dist/core/collisionDetector.js.map +1 -0
  27. package/dist/core/coordination.d.ts +62 -0
  28. package/dist/core/coordination.js +121 -0
  29. package/dist/core/coordination.js.map +1 -0
  30. package/dist/core/embeddings.js +30 -17
  31. package/dist/core/embeddings.js.map +1 -1
  32. package/dist/core/intentRouter.d.ts +40 -0
  33. package/dist/core/intentRouter.js +213 -0
  34. package/dist/core/intentRouter.js.map +1 -0
  35. package/dist/core/mergeRisk.d.ts +42 -0
  36. package/dist/core/mergeRisk.js +71 -0
  37. package/dist/core/mergeRisk.js.map +1 -0
  38. package/dist/core/preflight.js +50 -0
  39. package/dist/core/preflight.js.map +1 -1
  40. package/dist/core/roadmapCatalog.js +50 -50
  41. package/dist/core/roadmapCatalog.js.map +1 -1
  42. package/dist/mcp/tools/claim.d.ts +7 -0
  43. package/dist/mcp/tools/claim.js +69 -0
  44. package/dist/mcp/tools/claim.js.map +1 -0
  45. package/dist/mcp/tools/collision.d.ts +7 -0
  46. package/dist/mcp/tools/collision.js +38 -0
  47. package/dist/mcp/tools/collision.js.map +1 -0
  48. package/dist/mcp/tools/coordinate.d.ts +7 -0
  49. package/dist/mcp/tools/coordinate.js +24 -0
  50. package/dist/mcp/tools/coordinate.js.map +1 -0
  51. package/dist/mcp/tools/coordinateWatch.d.ts +4 -0
  52. package/dist/mcp/tools/coordinateWatch.js +138 -0
  53. package/dist/mcp/tools/coordinateWatch.js.map +1 -0
  54. package/dist/mcp/tools/mergeRisk.d.ts +7 -0
  55. package/dist/mcp/tools/mergeRisk.js +24 -0
  56. package/dist/mcp/tools/mergeRisk.js.map +1 -0
  57. package/dist/mcp/tools/route.d.ts +7 -0
  58. package/dist/mcp/tools/route.js +24 -0
  59. package/dist/mcp/tools/route.js.map +1 -0
  60. package/dist/mcp/tools.js +12 -0
  61. package/dist/mcp/tools.js.map +1 -1
  62. package/dist/projscan-sbom.cdx.json +6 -6
  63. package/dist/tool-manifest.json +132 -3
  64. package/dist/types.d.ts +12 -2
  65. package/dist/utils/formatSupport.d.ts +9 -0
  66. package/dist/utils/formatSupport.js +9 -0
  67. package/dist/utils/formatSupport.js.map +1 -1
  68. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ import { routeIntent } from '../../core/intentRouter.js';
2
+ /**
3
+ * `projscan_route` (4.x agent-ergonomics, epic 4) — map a stated goal to the
4
+ * right projscan tool, so an agent can find the one tool it needs without
5
+ * reasoning over the whole surface. Deterministic (no LLM).
6
+ */
7
+ export const routeTool = {
8
+ name: 'projscan_route',
9
+ description: "Find the right projscan tool for a goal. Given `intent` (free text — e.g. \"what breaks if I rename X\", \"coordinate parallel agents\", \"is it safe to commit\"), returns the best-matching tool(s) with the exact call and why to use each. With no `intent`, returns the full capability catalog grouped by category. A discovery entry point over projscan's surface; deterministic keyword routing, no inference.",
10
+ inputSchema: {
11
+ type: 'object',
12
+ properties: {
13
+ intent: {
14
+ type: 'string',
15
+ description: 'What you want to do, in plain words. Omit to get the full grouped tool catalog.',
16
+ },
17
+ },
18
+ },
19
+ handler: async (args) => {
20
+ const intent = typeof args.intent === 'string' && args.intent.length > 0 ? args.intent : undefined;
21
+ return routeIntent(intent);
22
+ },
23
+ };
24
+ //# sourceMappingURL=route.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route.js","sourceRoot":"","sources":["../../../src/mcp/tools/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGzD;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAY;IAChC,IAAI,EAAE,gBAAgB;IACtB,WAAW,EACT,yZAAyZ;IAC3Z,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iFAAiF;aAC/F;SACF;KACF;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACtB,MAAM,MAAM,GAAG,OAAO,IAAI,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;QACnG,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;CACF,CAAC"}
package/dist/mcp/tools.js CHANGED
@@ -28,6 +28,12 @@ import { reviewTool } from './tools/review.js';
28
28
  import { fixSuggestTool } from './tools/fixSuggest.js';
29
29
  import { explainIssueTool } from './tools/explainIssue.js';
30
30
  import { impactTool } from './tools/impact.js';
31
+ import { collisionTool } from './tools/collision.js';
32
+ import { claimTool } from './tools/claim.js';
33
+ import { mergeRiskTool } from './tools/mergeRisk.js';
34
+ import { routeTool } from './tools/route.js';
35
+ import { coordinateTool } from './tools/coordinate.js';
36
+ import { coordinateWatchTool } from './tools/coordinateWatch.js';
31
37
  import { searchTool } from './tools/search.js';
32
38
  import { sessionTool } from './tools/session.js';
33
39
  import { memoryTool } from './tools/memory.js';
@@ -91,6 +97,12 @@ const tools = [
91
97
  adoptionTool,
92
98
  startTool,
93
99
  understandTool,
100
+ collisionTool,
101
+ claimTool,
102
+ mergeRiskTool,
103
+ routeTool,
104
+ coordinateTool,
105
+ coordinateWatchTool,
94
106
  ];
95
107
  export function getToolDefinitions() {
96
108
  return tools.map(({ name, description, inputSchema }) => ({ name, description, inputSchema }));
@@ -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,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;IACX,UAAU;IACV,YAAY;IACZ,WAAW;IACX,QAAQ;IACR,aAAa;IACb,gBAAgB;IAChB,YAAY;IACZ,SAAS;IACT,WAAW;IACX,YAAY;IACZ,SAAS;IACT,iBAAiB;IACjB,YAAY;IACZ,cAAc;IACd,UAAU;IACV,UAAU;IACV,cAAc;IACd,gBAAgB;IAChB,UAAU;IACV,UAAU;IACV,WAAW;IACX,UAAU;IACV,kBAAkB;IAClB,YAAY;IACZ,SAAS;IACT,YAAY;IACZ,eAAe;IACf,eAAe;IACf,UAAU;IACV,aAAa;IACb,YAAY;IACZ,gBAAgB;IAChB,WAAW;IACX,gBAAgB;IAChB,kBAAkB;IAClB,cAAc;IACd,oBAAoB;IACpB,YAAY;IACZ,SAAS;IACT,cAAc;IACd,aAAa;IACb,SAAS;IACT,aAAa;IACb,SAAS;IACT,cAAc;IACd,mBAAmB;CACpB,CAAC;AAEF,MAAM,UAAU,kBAAkB;IAChC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;AACjG,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,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:184f4802-bc14-4e4d-b946-67837b3471f9",
4
+ "serialNumber": "urn:uuid:6dab452f-f2df-4c0a-b793-e7ba294a3df5",
5
5
  "version": 1,
6
6
  "metadata": {
7
- "timestamp": "2026-06-04T20:31:38.986Z",
7
+ "timestamp": "2026-06-05T15:33:32.104Z",
8
8
  "tools": [
9
9
  {
10
10
  "vendor": "projscan",
11
11
  "name": "projscan-sbom-generator",
12
- "version": "3.5.0"
12
+ "version": "3.7.0"
13
13
  }
14
14
  ],
15
15
  "component": {
16
16
  "type": "application",
17
- "bom-ref": "pkg:npm/projscan@3.5.0",
17
+ "bom-ref": "pkg:npm/projscan@3.7.0",
18
18
  "name": "projscan",
19
- "version": "3.5.0",
20
- "purl": "pkg:npm/projscan@3.5.0"
19
+ "version": "3.7.0",
20
+ "purl": "pkg:npm/projscan@3.7.0"
21
21
  }
22
22
  },
23
23
  "components": [
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "projscan",
3
- "version": "3.5.0",
3
+ "version": "3.7.0",
4
4
  "mcpProtocolVersion": "2025-03-26",
5
- "generatedAt": "2026-06-04T20:31:44.986Z",
6
- "toolCount": 41,
5
+ "generatedAt": "2026-06-05T15:33:37.612Z",
6
+ "toolCount": 47,
7
7
  "tools": [
8
8
  {
9
9
  "name": "projscan_analyze",
@@ -1120,6 +1120,135 @@
1120
1120
  }
1121
1121
  }
1122
1122
  }
1123
+ },
1124
+ {
1125
+ "name": "projscan_collision",
1126
+ "description": "Detect change collisions across the repo's in-flight git worktrees (parallel agents). Reports same-file edits (two worktrees changed the same file) and dependency overlaps (one worktree changed a file another's change imports, via the import graph) BEFORE the branches merge. Local-first; needs at least two worktrees. Each collision has `kind` (same-file | dependency), `severity` (high | medium), the two worktree paths, and the files at risk. Use this when coordinating multiple agents/sub-agents working the same repo.",
1127
+ "inputSchema": {
1128
+ "type": "object",
1129
+ "properties": {
1130
+ "base_ref": {
1131
+ "type": "string",
1132
+ "description": "Base ref each worktree is diffed against to compute its changed files. Default: origin/main → main → master → HEAD~1, then the working tree."
1133
+ },
1134
+ "transitive": {
1135
+ "type": "boolean",
1136
+ "description": "Also report multi-hop dependency overlaps (one worktree changed a file another transitively imports), each with a `distance`. Default false — the 1-hop default stays precise; this trades precision for deeper recall."
1137
+ },
1138
+ "max_distance": {
1139
+ "type": "number",
1140
+ "description": "Max import hops when `transitive` is set. Default 5."
1141
+ }
1142
+ }
1143
+ }
1144
+ },
1145
+ {
1146
+ "name": "projscan_claim",
1147
+ "description": "Coordinate parallel agents with advisory claims/leases over files, directories, or symbols, shared across the repo's git worktrees. action:\"add\" records a claim (optionally a lease with `ttl_seconds`) and returns any `contention` (another agent already holding an overlapping, non-expired claim); \"list\" returns claims; \"release\" drops a claim by `id`, by `target`, or all of an `agent`'s; \"prune\" removes expired-lease claims. Local-first and advisory — claiming an already-claimed target still succeeds, but surfaces contention so the swarm can coordinate.",
1148
+ "inputSchema": {
1149
+ "type": "object",
1150
+ "properties": {
1151
+ "action": {
1152
+ "type": "string",
1153
+ "enum": [
1154
+ "add",
1155
+ "list",
1156
+ "release",
1157
+ "prune"
1158
+ ],
1159
+ "description": "Default \"list\". \"add\" records a claim; \"release\" drops one; \"prune\" removes expired leases."
1160
+ },
1161
+ "target": {
1162
+ "type": "string",
1163
+ "description": "\"add\"/\"release\" — a repo-relative file or directory path, or a symbol name."
1164
+ },
1165
+ "agent": {
1166
+ "type": "string",
1167
+ "description": "\"add\" — who holds the claim. \"release\" — scope the release to this agent."
1168
+ },
1169
+ "note": {
1170
+ "type": "string",
1171
+ "description": "\"add\" — optional human-readable note."
1172
+ },
1173
+ "ttl_seconds": {
1174
+ "type": "number",
1175
+ "description": "\"add\" — lease duration in seconds; the claim expires after it. Omit for a permanent claim."
1176
+ },
1177
+ "id": {
1178
+ "type": "string",
1179
+ "description": "\"release\" — the claim id to drop."
1180
+ }
1181
+ }
1182
+ }
1183
+ },
1184
+ {
1185
+ "name": "projscan_merge_risk",
1186
+ "description": "Merge-risk preflight across the repo's in-flight git worktrees (parallel agents). Given each worktree's changes and the collisions between them, returns `integrationOrder` (merge the least-entangled branch first, each with a risk score) and `hotFiles` (files changed by two or more worktrees — where merge conflict risk concentrates). Builds on projscan_collision; local-first; needs at least two worktrees.",
1187
+ "inputSchema": {
1188
+ "type": "object",
1189
+ "properties": {
1190
+ "base_ref": {
1191
+ "type": "string",
1192
+ "description": "Base ref each worktree is diffed against. Default: origin/main → main → master → HEAD~1."
1193
+ }
1194
+ }
1195
+ }
1196
+ },
1197
+ {
1198
+ "name": "projscan_route",
1199
+ "description": "Find the right projscan tool for a goal. Given `intent` (free text — e.g. \"what breaks if I rename X\", \"coordinate parallel agents\", \"is it safe to commit\"), returns the best-matching tool(s) with the exact call and why to use each. With no `intent`, returns the full capability catalog grouped by category. A discovery entry point over projscan's surface; deterministic keyword routing, no inference.",
1200
+ "inputSchema": {
1201
+ "type": "object",
1202
+ "properties": {
1203
+ "intent": {
1204
+ "type": "string",
1205
+ "description": "What you want to do, in plain words. Omit to get the full grouped tool catalog."
1206
+ }
1207
+ }
1208
+ }
1209
+ },
1210
+ {
1211
+ "name": "projscan_coordinate",
1212
+ "description": "One-call coordination read across the repo's in-flight git worktrees (parallel agents). Composes collisions, claims, and merge-risk into a `readiness` verdict (clear | caution | conflicted) plus counts (collisions by severity, contended claim targets, merge hotspots) and the recommended integration order. The single entry point for swarm coordination — use it before continuing parallel work. Local-first; needs at least two worktrees.",
1213
+ "inputSchema": {
1214
+ "type": "object",
1215
+ "properties": {
1216
+ "base_ref": {
1217
+ "type": "string",
1218
+ "description": "Base ref each worktree is diffed against. Default: origin/main → main → master → HEAD~1."
1219
+ }
1220
+ }
1221
+ }
1222
+ },
1223
+ {
1224
+ "name": "projscan_coordinate_watch",
1225
+ "description": "Long-running swarm coordination watch across the repo's in-flight git worktrees. Polls on an interval and emits a `notifications/projscan/coordination_changed` notification whenever the coordination state changes — readiness (clear/caution/conflicted), collision counts, contended claims, or merge hotspots. Pairs with projscan_coordinate (one-shot): use this when an agent wants to react to other agents' changes without re-asking. Local-first. Actions: \"start\" (returns the initial summary + a watchId), \"stop\" (by watchId), \"list\".",
1226
+ "inputSchema": {
1227
+ "type": "object",
1228
+ "properties": {
1229
+ "action": {
1230
+ "type": "string",
1231
+ "enum": [
1232
+ "start",
1233
+ "stop",
1234
+ "list"
1235
+ ],
1236
+ "description": "\"start\" begins polling (returns initial summary + watchId). \"stop\" cancels by id. \"list\" enumerates active watches."
1237
+ },
1238
+ "base_ref": {
1239
+ "type": "string",
1240
+ "description": "Base ref each worktree is diffed against. (start only)"
1241
+ },
1242
+ "interval_seconds": {
1243
+ "type": "number",
1244
+ "description": "Poll interval in seconds. Default 15, min 5, max 600. (start only)"
1245
+ },
1246
+ "watchId": {
1247
+ "type": "string",
1248
+ "description": "Watch id from a previous \"start\". (stop only)"
1249
+ }
1250
+ }
1251
+ }
1123
1252
  }
1124
1253
  ]
1125
1254
  }
package/dist/types.d.ts CHANGED
@@ -219,7 +219,7 @@ export interface HealthScore {
219
219
  }
220
220
  export type PreflightMode = 'before_edit' | 'before_commit' | 'before_merge';
221
221
  export type PreflightVerdict = 'proceed' | 'caution' | 'block';
222
- export type PreflightReasonSource = 'doctor' | 'review' | 'taint' | 'session' | 'plugin' | 'supply-chain' | 'memory' | 'changed-files' | 'hotspots' | 'git' | 'format' | 'release';
222
+ export type PreflightReasonSource = 'doctor' | 'review' | 'taint' | 'session' | 'plugin' | 'supply-chain' | 'memory' | 'changed-files' | 'hotspots' | 'git' | 'format' | 'release' | 'coordination';
223
223
  export interface PreflightReason {
224
224
  severity: IssueSeverity;
225
225
  source: PreflightReasonSource;
@@ -312,6 +312,16 @@ export interface PreflightEvidence {
312
312
  warningIssues: number;
313
313
  };
314
314
  releaseScale?: PreflightReleaseScaleEvidence;
315
+ coordination?: {
316
+ available: boolean;
317
+ readiness: 'clear' | 'caution' | 'conflicted';
318
+ worktreeCount: number;
319
+ collisions: {
320
+ high: number;
321
+ medium: number;
322
+ };
323
+ contendedClaims: number;
324
+ };
315
325
  }
316
326
  export interface PreflightReport {
317
327
  schemaVersion: 1;
@@ -1119,7 +1129,7 @@ export interface UnderstandReport {
1119
1129
  truncated?: boolean;
1120
1130
  }
1121
1131
  export interface SessionCoordinationHint {
1122
- id: 'current-worktree-check' | 'remembered-session-context' | 'resolve-conflicts';
1132
+ id: 'current-worktree-check' | 'remembered-session-context' | 'resolve-conflicts' | 'swarm-coordination';
1123
1133
  label: string;
1124
1134
  message: string;
1125
1135
  command: string;
@@ -8,6 +8,15 @@ export declare const COMMAND_FORMAT_SUPPORT: {
8
8
  readonly badge: readonly ["console"];
9
9
  readonly 'bug-hunt': readonly ["console", "json"];
10
10
  readonly ci: readonly ["console", "json", "markdown", "sarif"];
11
+ readonly claim: readonly ["console", "json"];
12
+ readonly 'claim list': readonly ["console", "json"];
13
+ readonly 'claim add': readonly ["console", "json"];
14
+ readonly 'claim release': readonly ["console", "json"];
15
+ readonly 'claim prune': readonly ["console", "json"];
16
+ readonly collisions: readonly ["console", "json"];
17
+ readonly coordinate: readonly ["console", "json"];
18
+ readonly 'merge-risk': readonly ["console", "json"];
19
+ readonly route: readonly ["console", "json"];
11
20
  readonly coupling: readonly ["console", "json", "markdown", "html"];
12
21
  readonly coverage: readonly ["console", "json", "markdown", "html"];
13
22
  readonly dependencies: readonly ["console", "json", "markdown"];
@@ -7,6 +7,15 @@ export const COMMAND_FORMAT_SUPPORT = {
7
7
  badge: ['console'],
8
8
  'bug-hunt': ['console', 'json'],
9
9
  ci: ['console', 'json', 'markdown', 'sarif'],
10
+ claim: ['console', 'json'],
11
+ 'claim list': ['console', 'json'],
12
+ 'claim add': ['console', 'json'],
13
+ 'claim release': ['console', 'json'],
14
+ 'claim prune': ['console', 'json'],
15
+ collisions: ['console', 'json'],
16
+ coordinate: ['console', 'json'],
17
+ 'merge-risk': ['console', 'json'],
18
+ route: ['console', 'json'],
10
19
  coupling: ['console', 'json', 'markdown', 'html'],
11
20
  coverage: ['console', 'json', 'markdown', 'html'],
12
21
  dependencies: ['console', 'json', 'markdown'],
@@ -1 +1 @@
1
- {"version":3,"file":"formatSupport.js","sourceRoot":"","sources":["../../src/utils/formatSupport.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAA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AAED,MAAM,UAAU,iBAAiB;IAC/B,OAAO,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;QACzE,OAAO,EAAE,OAA4B;QACrC,OAAO;KACR,CAAC,CAAC,CAAC;AACN,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "projscan",
3
3
  "mcpName": "io.github.abhiyoheswaran1/projscan",
4
- "version": "3.5.0",
4
+ "version": "3.7.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",