depwire-cli 0.3.1 → 0.5.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 +10 -3
- package/dist/{chunk-LOX5NEND.js → chunk-Q733EWFA.js} +2448 -203
- package/dist/index.js +6 -6
- package/dist/mcpb-entry.js +2 -2
- package/dist/parser/grammars/tree-sitter-go.wasm +0 -0
- package/dist/parser/grammars/tree-sitter-javascript.wasm +0 -0
- package/dist/parser/grammars/tree-sitter-python.wasm +0 -0
- package/dist/parser/grammars/tree-sitter-tsx.wasm +0 -0
- package/dist/parser/grammars/tree-sitter-typescript.wasm +0 -0
- package/package.json +4 -8
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
startVizServer,
|
|
13
13
|
updateFileInGraph,
|
|
14
14
|
watchProject
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q733EWFA.js";
|
|
16
16
|
|
|
17
17
|
// src/index.ts
|
|
18
18
|
import { Command } from "commander";
|
|
@@ -100,7 +100,7 @@ program.command("parse").description("Parse a TypeScript project and build depen
|
|
|
100
100
|
try {
|
|
101
101
|
const projectRoot = resolve(directory);
|
|
102
102
|
console.log(`Parsing project: ${projectRoot}`);
|
|
103
|
-
const parsedFiles = parseProject(projectRoot, {
|
|
103
|
+
const parsedFiles = await parseProject(projectRoot, {
|
|
104
104
|
exclude: options.exclude,
|
|
105
105
|
verbose: options.verbose
|
|
106
106
|
});
|
|
@@ -145,7 +145,7 @@ program.command("query").description("Query impact analysis for a symbol").argum
|
|
|
145
145
|
graph = importFromJSON(json);
|
|
146
146
|
} else {
|
|
147
147
|
console.log("Parsing project...");
|
|
148
|
-
const parsedFiles = parseProject(projectRoot);
|
|
148
|
+
const parsedFiles = await parseProject(projectRoot);
|
|
149
149
|
graph = buildGraph(parsedFiles);
|
|
150
150
|
}
|
|
151
151
|
const matches = searchSymbols(graph, symbolName);
|
|
@@ -186,7 +186,7 @@ program.command("viz").description("Launch interactive arc diagram visualization
|
|
|
186
186
|
try {
|
|
187
187
|
const projectRoot = resolve(directory);
|
|
188
188
|
console.log(`Parsing project: ${projectRoot}`);
|
|
189
|
-
const parsedFiles = parseProject(projectRoot, {
|
|
189
|
+
const parsedFiles = await parseProject(projectRoot, {
|
|
190
190
|
exclude: options.exclude,
|
|
191
191
|
verbose: options.verbose
|
|
192
192
|
});
|
|
@@ -210,7 +210,7 @@ program.command("mcp").description("Start MCP server for AI coding tools").argum
|
|
|
210
210
|
if (directory) {
|
|
211
211
|
const projectRoot = resolve(directory);
|
|
212
212
|
console.error(`Parsing project: ${projectRoot}`);
|
|
213
|
-
const parsedFiles = parseProject(projectRoot);
|
|
213
|
+
const parsedFiles = await parseProject(projectRoot);
|
|
214
214
|
console.error(`Parsed ${parsedFiles.length} files`);
|
|
215
215
|
const graph = buildGraph(parsedFiles);
|
|
216
216
|
console.error(`Built graph: ${graph.order} symbols, ${graph.size} edges`);
|
|
@@ -273,7 +273,7 @@ program.command("docs").description("Generate comprehensive codebase documentati
|
|
|
273
273
|
addToGitignore(projectRoot, ".depwire/");
|
|
274
274
|
}
|
|
275
275
|
console.log(`Parsing project: ${projectRoot}`);
|
|
276
|
-
const parsedFiles = parseProject(projectRoot, {
|
|
276
|
+
const parsedFiles = await parseProject(projectRoot, {
|
|
277
277
|
exclude: options.exclude,
|
|
278
278
|
verbose: options.verbose
|
|
279
279
|
});
|
package/dist/mcpb-entry.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
startMcpServer,
|
|
7
7
|
updateFileInGraph,
|
|
8
8
|
watchProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Q733EWFA.js";
|
|
10
10
|
|
|
11
11
|
// src/mcpb-entry.ts
|
|
12
12
|
import { resolve } from "path";
|
|
@@ -17,7 +17,7 @@ async function main() {
|
|
|
17
17
|
try {
|
|
18
18
|
const projectRoot = resolve(projectPath);
|
|
19
19
|
console.error(`[MCPB] Parsing project: ${projectRoot}`);
|
|
20
|
-
const parsedFiles = parseProject(projectRoot);
|
|
20
|
+
const parsedFiles = await parseProject(projectRoot);
|
|
21
21
|
console.error(`[MCPB] Parsed ${parsedFiles.length} files`);
|
|
22
22
|
const graph = buildGraph(parsedFiles);
|
|
23
23
|
console.error(`[MCPB] Built graph: ${graph.order} symbols, ${graph.size} edges`);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "depwire-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Code cross-reference visualization and AI context engine for TypeScript
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Code cross-reference visualization and AI context engine for TypeScript, JavaScript, Python, and Go. Zero native dependencies — works on Windows, macOS, and Linux.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"depwire": "dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsup src/index.ts src/mcpb-entry.ts --format esm --dts --clean && npm run copy-static",
|
|
11
|
-
"copy-static": "mkdir -p dist/viz/public && cp -r src/viz/public/* dist/viz/public/",
|
|
11
|
+
"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
12
|
"dev": "tsup src/index.ts --format esm --watch",
|
|
13
13
|
"start": "node dist/index.js",
|
|
14
14
|
"build:mcpb": "npm run build && ./scripts/build-mcpb.sh"
|
|
@@ -59,11 +59,7 @@
|
|
|
59
59
|
"minimatch": "^10.2.4",
|
|
60
60
|
"open": "11.0.0",
|
|
61
61
|
"simple-git": "3.31.1",
|
|
62
|
-
"tree-sitter": "0.
|
|
63
|
-
"tree-sitter-go": "0.21.2",
|
|
64
|
-
"tree-sitter-javascript": "0.21.4",
|
|
65
|
-
"tree-sitter-python": "0.21.0",
|
|
66
|
-
"tree-sitter-typescript": "0.23.2",
|
|
62
|
+
"web-tree-sitter": "^0.26.6",
|
|
67
63
|
"ws": "8.19.0",
|
|
68
64
|
"zod": "4.3.6"
|
|
69
65
|
},
|