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.
|
@@ -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-
|
|
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-
|
|
34
|
+
} from "./chunk-WUSXCZXA.js";
|
|
35
35
|
|
|
36
36
|
// src/index.ts
|
|
37
37
|
import { Command } from "commander";
|
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-FUIZQCYB.js";
|
|
8
8
|
import {
|
|
9
9
|
buildGraph,
|
|
10
10
|
parseProject
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WUSXCZXA.js";
|
|
12
12
|
|
|
13
13
|
// src/mcpb-entry.ts
|
|
14
14
|
import { resolve } from "path";
|
package/dist/sdk.js
CHANGED