depwire-cli 0.9.20 → 0.9.22
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 +34 -17
- package/dist/{chunk-H6Q2OEGP.js → chunk-QHVWDUSX.js} +382 -1921
- package/dist/chunk-XBCQPU63.js +2002 -0
- package/dist/index.js +20 -356
- package/dist/mcpb-entry.js +5 -3
- package/dist/sdk.d.ts +237 -0
- package/dist/sdk.js +32 -0
- package/package.json +9 -4
package/dist/sdk.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SimulationEngine,
|
|
3
|
+
analyzeDeadCode,
|
|
4
|
+
buildGraph,
|
|
5
|
+
calculateHealthScore,
|
|
6
|
+
generateDocs,
|
|
7
|
+
getArchitectureSummary,
|
|
8
|
+
getImpact,
|
|
9
|
+
parseProject,
|
|
10
|
+
searchSymbols
|
|
11
|
+
} from "./chunk-QHVWDUSX.js";
|
|
12
|
+
|
|
13
|
+
// src/sdk.ts
|
|
14
|
+
import { readFileSync } from "fs";
|
|
15
|
+
import { dirname, join } from "path";
|
|
16
|
+
import { fileURLToPath } from "url";
|
|
17
|
+
var __filename = fileURLToPath(import.meta.url);
|
|
18
|
+
var __dirname = dirname(__filename);
|
|
19
|
+
var packageJson = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
|
|
20
|
+
var DepwireSDKVersion = packageJson.version;
|
|
21
|
+
export {
|
|
22
|
+
DepwireSDKVersion,
|
|
23
|
+
SimulationEngine,
|
|
24
|
+
analyzeDeadCode,
|
|
25
|
+
buildGraph,
|
|
26
|
+
calculateHealthScore,
|
|
27
|
+
generateDocs,
|
|
28
|
+
getArchitectureSummary,
|
|
29
|
+
getImpact,
|
|
30
|
+
parseProject,
|
|
31
|
+
searchSymbols
|
|
32
|
+
};
|
package/package.json
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "depwire-cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.22",
|
|
4
4
|
"description": "The missing context layer for AI coding assistants. Dependency graph, MCP server, architecture health, dead code detection.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"depwire": "dist/index.js"
|
|
8
8
|
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./dist/index.js",
|
|
11
|
+
"./sdk": "./dist/sdk.js"
|
|
12
|
+
},
|
|
9
13
|
"scripts": {
|
|
10
|
-
"build": "tsup src/index.ts src/mcpb-entry.ts --format esm --dts --clean && npm run copy-static",
|
|
14
|
+
"build": "tsup src/index.ts src/mcpb-entry.ts src/sdk.ts --format esm --dts --clean && npm run copy-static",
|
|
11
15
|
"copy-static": "mkdir -p dist/viz/public dist/parser/grammars && cp -r src/viz/public/* dist/viz/public/ && cp src/parser/grammars/*.wasm dist/parser/grammars/",
|
|
12
16
|
"dev": "tsup src/index.ts --format esm --watch",
|
|
13
17
|
"start": "node dist/index.js",
|
|
14
|
-
"build:mcpb": "npm run build && ./scripts/build-mcpb.sh"
|
|
18
|
+
"build:mcpb": "npm run build && ./scripts/build-mcpb.sh",
|
|
19
|
+
"postversion": "node -e \"const fs=require('fs');const p=JSON.parse(fs.readFileSync('./package.json','utf8'));const s=JSON.parse(fs.readFileSync('./server.json','utf8'));s.version=p.version;s.packages[0].version=p.version;fs.writeFileSync('./server.json',JSON.stringify(s,null,2)+'\\n');console.log('server.json updated to '+p.version);\" && git add server.json"
|
|
15
20
|
},
|
|
16
21
|
"keywords": [
|
|
17
22
|
"typescript",
|
|
@@ -66,7 +71,7 @@
|
|
|
66
71
|
"graphology-types": "0.24.8",
|
|
67
72
|
"minimatch": "^10.2.4",
|
|
68
73
|
"open": "11.0.0",
|
|
69
|
-
"simple-git": "3.
|
|
74
|
+
"simple-git": "^3.35.2",
|
|
70
75
|
"web-tree-sitter": "^0.26.6",
|
|
71
76
|
"ws": "8.19.0",
|
|
72
77
|
"zod": "4.3.6"
|