depwire-cli 0.9.29 → 1.0.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.
@@ -16,7 +16,7 @@ import {
16
16
  parseTypeScriptFile,
17
17
  scanSecurity,
18
18
  searchSymbols
19
- } from "./chunk-WUSXCZXA.js";
19
+ } from "./chunk-IYKS66CG.js";
20
20
 
21
21
  // src/viz/data.ts
22
22
  import { basename } from "path";
@@ -122,7 +122,7 @@ function watchProject(projectRoot, callbacks) {
122
122
  const watcher = chokidar.watch(projectRoot, watcherOptions);
123
123
  console.error("[Watcher] Attaching event listeners...");
124
124
  watcher.on("change", (absolutePath) => {
125
- const validExtensions = [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".py", ".go", ".rs", ".c", ".h"];
125
+ const validExtensions = [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".py", ".go", ".rs", ".c", ".h", ".cs", ".csx", ".csproj"];
126
126
  if (!validExtensions.some((ext) => absolutePath.endsWith(ext))) return;
127
127
  if (absolutePath.endsWith("_test.go")) return;
128
128
  const relativePath = absolutePath.replace(projectRoot + "/", "");
@@ -130,7 +130,7 @@ function watchProject(projectRoot, callbacks) {
130
130
  callbacks.onFileChanged(relativePath);
131
131
  });
132
132
  watcher.on("add", (absolutePath) => {
133
- const validExtensions = [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".py", ".go", ".rs", ".c", ".h"];
133
+ const validExtensions = [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".py", ".go", ".rs", ".c", ".h", ".cs", ".csx", ".csproj"];
134
134
  if (!validExtensions.some((ext) => absolutePath.endsWith(ext))) return;
135
135
  if (absolutePath.endsWith("_test.go")) return;
136
136
  const relativePath = absolutePath.replace(projectRoot + "/", "");
@@ -138,7 +138,7 @@ function watchProject(projectRoot, callbacks) {
138
138
  callbacks.onFileAdded(relativePath);
139
139
  });
140
140
  watcher.on("unlink", (absolutePath) => {
141
- const validExtensions = [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".py", ".go", ".rs", ".c", ".h"];
141
+ const validExtensions = [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".py", ".go", ".rs", ".c", ".h", ".cs", ".csx", ".csproj"];
142
142
  if (!validExtensions.some((ext) => absolutePath.endsWith(ext))) return;
143
143
  if (absolutePath.endsWith("_test.go")) return;
144
144
  const relativePath = absolutePath.replace(projectRoot + "/", "");
@@ -156,10 +156,10 @@ function watchProject(projectRoot, callbacks) {
156
156
  for (const dir of dirs) {
157
157
  const files = watched[dir];
158
158
  fileCount += files.filter(
159
- (f) => f.endsWith(".ts") || f.endsWith(".tsx") || f.endsWith(".js") || f.endsWith(".jsx") || f.endsWith(".mjs") || f.endsWith(".cjs") || f.endsWith(".py") || f.endsWith(".go") && !f.endsWith("_test.go") || f.endsWith(".rs") || f.endsWith(".c") || f.endsWith(".h")
159
+ (f) => f.endsWith(".ts") || f.endsWith(".tsx") || f.endsWith(".js") || f.endsWith(".jsx") || f.endsWith(".mjs") || f.endsWith(".cjs") || f.endsWith(".py") || f.endsWith(".go") && !f.endsWith("_test.go") || f.endsWith(".rs") || f.endsWith(".c") || f.endsWith(".h") || f.endsWith(".cs") || f.endsWith(".csx") || f.endsWith(".csproj")
160
160
  ).length;
161
161
  }
162
- console.error(`[Watcher] Watching ${fileCount} TypeScript/JavaScript/Python/Go/Rust/C files in ${dirs.length} directories`);
162
+ console.error(`[Watcher] Watching ${fileCount} TypeScript/JavaScript/Python/Go/Rust/C/C# files in ${dirs.length} directories`);
163
163
  });
164
164
  return watcher;
165
165
  }