Files
ruvnet__ruflo/v3/plugins/code-intelligence/package.json
Reuven a9db4cd3ef fix(plugin-code-intelligence@3.0.0-alpha.3): real import edges in GNN bridge
Followup to #1554 / #1553 (alpha.2 fixed the helper stubs; this addresses
the third stub the issue called out).

src/bridges/gnn-bridge.ts:500 — extractImports now resolves relative
import specifiers via regex against the supplied `allFiles` set instead
of returning `[]`. Result: dependency graphs produced by buildCodeGraph()
finally have real edges, which architecture-analyze, refactor-impact, and
split-suggest all need.

Handles two specifier styles users actually write:
  - bare relative: `./foo`, `../bar/baz`
  - TS module-specifier convention: `./foo.js` (where the on-disk source
    is `./foo.ts` or `./foo.tsx`). The resolver tries the bare path,
    `<base>.<ext>`, `<base>/index.<ext>` for the standard JS/TS extensions,
    AND a stripped variant when the spec ends in `.js`/`.cjs`/`.mjs`. This
    is the common ESM-with-NodeNext pattern in v3 and was the dominant
    miss before this fix.

Live probe (plugin's own src/ — 6 TS files):
  before: { nodes: 6, edges: 0 }
  after:  { nodes: 6, edges: 11 }
  sample: gnn-bridge.ts → types.ts (import)
          index.ts → gnn-bridge.ts (import)
          index.ts → mincut-bridge.ts (import)

Build clean.

Published @claude-flow/plugin-code-intelligence@3.0.0-alpha.3 with
alpha + latest dist-tags.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-08 09:58:09 -04:00

78 lines
1.8 KiB
JSON

{
"name": "@claude-flow/plugin-code-intelligence",
"version": "3.0.0-alpha.3",
"description": "Advanced code intelligence plugin for Claude Flow V3 - semantic search, architecture analysis, refactoring impact, module splitting, and pattern learning",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./tools": {
"import": "./dist/mcp-tools.js",
"types": "./dist/mcp-tools.d.ts"
},
"./types": {
"import": "./dist/types.js",
"types": "./dist/types.d.ts"
},
"./bridges": {
"import": "./dist/bridges/index.js",
"types": "./dist/bridges/index.d.ts"
}
},
"files": [
"dist",
"README.md",
"plugin.yaml"
],
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"clean": "rm -rf dist",
"test": "vitest run",
"test:watch": "vitest",
"lint": "eslint src --ext .ts",
"typecheck": "tsc --noEmit",
"prepublishOnly": "npm run clean && npm run build && npm run typecheck"
},
"publishConfig": {
"access": "public",
"tag": "v3alpha"
},
"keywords": [
"claude-flow",
"plugin",
"code-intelligence",
"semantic-search",
"architecture",
"refactoring",
"code-analysis",
"mcp"
],
"author": "Claude Flow Team",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ruvnet/claude-flow.git",
"directory": "v3/plugins/code-intelligence"
},
"dependencies": {
"zod": "^3.23.0"
},
"devDependencies": {
"@types/node": "^20.0.0",
"typescript": "^5.3.0",
"vitest": "^1.0.0"
},
"peerDependencies": {
"@claude-flow/plugins": "^3.0.0-alpha.1"
},
"engines": {
"node": ">=20.0.0"
}
}