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/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  stashChanges,
18
18
  updateFileInGraph,
19
19
  watchProject
20
- } from "./chunk-5D36PY3Q.js";
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-LV32EDYQ.js";
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);
@@ -4,11 +4,11 @@ import {
4
4
  startMcpServer,
5
5
  updateFileInGraph,
6
6
  watchProject
7
- } from "./chunk-5D36PY3Q.js";
7
+ } from "./chunk-67KDN6H4.js";
8
8
  import {
9
9
  buildGraph,
10
10
  parseProject
11
- } from "./chunk-LV32EDYQ.js";
11
+ } from "./chunk-SPZNB7BS.js";
12
12
 
13
13
  // src/mcpb-entry.ts
14
14
  import { resolve } from "path";
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
@@ -10,7 +10,7 @@ import {
10
10
  parseProject,
11
11
  scanSecurity,
12
12
  searchSymbols
13
- } from "./chunk-LV32EDYQ.js";
13
+ } from "./chunk-SPZNB7BS.js";
14
14
 
15
15
  // src/sdk.ts
16
16
  import { readFileSync } from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "depwire-cli",
3
- "version": "1.0.1",
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",