depwire-cli 0.9.28 → 0.9.29

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.
@@ -16,7 +16,7 @@ import {
16
16
  parseTypeScriptFile,
17
17
  scanSecurity,
18
18
  searchSymbols
19
- } from "./chunk-ITEGMPF7.js";
19
+ } from "./chunk-WUSXCZXA.js";
20
20
 
21
21
  // src/viz/data.ts
22
22
  import { basename } from "path";
@@ -1,5 +1,5 @@
1
1
  // src/utils/files.ts
2
- import { readdirSync, statSync, existsSync, lstatSync } from "fs";
2
+ import { readdirSync, statSync, existsSync, lstatSync, realpathSync } from "fs";
3
3
  import { join, relative } from "path";
4
4
  import os from "os";
5
5
  function scanDirectory(rootDir, baseDir = rootDir) {
@@ -50,6 +50,7 @@ function fileExists(filePath) {
50
50
  }
51
51
  }
52
52
  function findProjectRoot(startDir = process.cwd()) {
53
+ startDir = realpathSync(startDir);
53
54
  const projectMarkers = [
54
55
  "package.json",
55
56
  // Node.js
@@ -79,9 +80,6 @@ function findProjectRoot(startDir = process.cwd()) {
79
80
  let depth = 0;
80
81
  const home = os.homedir();
81
82
  while (currentDir !== rootDir && depth < maxDepth) {
82
- if (currentDir === home || !currentDir.startsWith(home)) {
83
- break;
84
- }
85
83
  const dirName = currentDir.split("/").pop();
86
84
  if (dirName && blocklist.includes(dirName)) {
87
85
  console.warn(`\u26A0\uFE0F Skipping blocked directory: ${dirName}`);
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  stashChanges,
18
18
  updateFileInGraph,
19
19
  watchProject
20
- } from "./chunk-VJLBOFCD.js";
20
+ } from "./chunk-FUIZQCYB.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-ITEGMPF7.js";
34
+ } from "./chunk-WUSXCZXA.js";
35
35
 
36
36
  // src/index.ts
37
37
  import { Command } from "commander";
@@ -4,11 +4,11 @@ import {
4
4
  startMcpServer,
5
5
  updateFileInGraph,
6
6
  watchProject
7
- } from "./chunk-VJLBOFCD.js";
7
+ } from "./chunk-FUIZQCYB.js";
8
8
  import {
9
9
  buildGraph,
10
10
  parseProject
11
- } from "./chunk-ITEGMPF7.js";
11
+ } from "./chunk-WUSXCZXA.js";
12
12
 
13
13
  // src/mcpb-entry.ts
14
14
  import { resolve } from "path";
package/dist/sdk.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  parseProject,
11
11
  scanSecurity,
12
12
  searchSymbols
13
- } from "./chunk-ITEGMPF7.js";
13
+ } from "./chunk-WUSXCZXA.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": "0.9.28",
3
+ "version": "0.9.29",
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": {