depwire-cli 1.0.1 → 1.0.5
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 +18 -2
- package/dist/{chunk-5D36PY3Q.js → chunk-67KDN6H4.js} +8 -8
- package/dist/{chunk-LV32EDYQ.js → chunk-SPZNB7BS.js} +1136 -147
- package/dist/index.js +12 -2
- package/dist/mcpb-entry.js +2 -2
- package/dist/parser/grammars/tree-sitter-cpp.wasm +0 -0
- package/dist/sdk.d.ts +2 -0
- package/dist/sdk.js +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
stashChanges,
|
|
18
18
|
updateFileInGraph,
|
|
19
19
|
watchProject
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-67KDN6H4.js";
|
|
21
21
|
import {
|
|
22
22
|
SimulationEngine,
|
|
23
23
|
analyzeDeadCode,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
parseProject,
|
|
32
32
|
scanSecurity,
|
|
33
33
|
searchSymbols
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SPZNB7BS.js";
|
|
35
35
|
|
|
36
36
|
// src/index.ts
|
|
37
37
|
import { Command } from "commander";
|
|
@@ -791,6 +791,16 @@ async function whatif(dir, options) {
|
|
|
791
791
|
try {
|
|
792
792
|
const result = engine.simulate(action);
|
|
793
793
|
printResult(result);
|
|
794
|
+
const currentVizData = prepareVizData(graph, projectRoot);
|
|
795
|
+
const simulatedVizData = result.simulatedGraphInstance ? prepareVizData(result.simulatedGraphInstance, projectRoot) : currentVizData;
|
|
796
|
+
const { simulatedGraphInstance, ...serializableResult } = result;
|
|
797
|
+
await serveWhatIfViz(
|
|
798
|
+
currentVizData,
|
|
799
|
+
simulatedVizData,
|
|
800
|
+
serializableResult,
|
|
801
|
+
action.type,
|
|
802
|
+
action.target
|
|
803
|
+
);
|
|
794
804
|
} catch (err) {
|
|
795
805
|
console.error(chalk.red(`Simulation failed: ${err.message}`));
|
|
796
806
|
process.exit(1);
|
package/dist/mcpb-entry.js
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
startMcpServer,
|
|
5
5
|
updateFileInGraph,
|
|
6
6
|
watchProject
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-67KDN6H4.js";
|
|
8
8
|
import {
|
|
9
9
|
buildGraph,
|
|
10
10
|
parseProject
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SPZNB7BS.js";
|
|
12
12
|
|
|
13
13
|
// src/mcpb-entry.ts
|
|
14
14
|
import { resolve } from "path";
|
|
Binary file
|
package/dist/sdk.d.ts
CHANGED
|
@@ -169,6 +169,8 @@ interface SimulationResult {
|
|
|
169
169
|
simulatedGraph: GraphSnapshot;
|
|
170
170
|
diff: GraphDiff;
|
|
171
171
|
healthDelta: HealthDelta;
|
|
172
|
+
/** The cloned graph with the simulation applied — available for viz data generation */
|
|
173
|
+
simulatedGraphInstance?: DirectedGraph;
|
|
172
174
|
}
|
|
173
175
|
interface GraphSnapshot {
|
|
174
176
|
nodeCount: number;
|
package/dist/sdk.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "depwire-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Dependency graph + 17 MCP tools for AI coding assistants. Impact analysis, health scoring, security scanner.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"open": "11.0.0",
|
|
74
74
|
"simple-git": "3.35.2",
|
|
75
75
|
"tree-sitter-c-sharp": "^0.23.5",
|
|
76
|
+
"tree-sitter-cpp": "^0.23.4",
|
|
76
77
|
"tree-sitter-java": "^0.23.5",
|
|
77
78
|
"web-tree-sitter": "0.26.6",
|
|
78
79
|
"ws": "8.19.0",
|