inspect-mcp 0.1.1 → 0.2.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.
package/dist/index.js CHANGED
@@ -257,7 +257,7 @@ var DEFAULT_MAX_FILE_SIZE_KB = 100;
257
257
  var DEFAULT_TREE_DEPTH = 6;
258
258
  var DEFAULT_HEALTH_TIMEOUT_MS = 15e3;
259
259
  var AUTO_COLLAPSE_FILE_THRESHOLD = 500;
260
- var TOOL_VERSION = "0.1.0";
260
+ var TOOL_VERSION = "0.2.0";
261
261
  function loadConfig(projectRoot) {
262
262
  const defaults = {
263
263
  collapse_dirs: DEFAULT_COLLAPSE_DIRS,
@@ -1850,10 +1850,10 @@ var DEFAULT_CONCURRENCY = 8;
1850
1850
  function collectSourceFiles(projectRoot, config) {
1851
1851
  const files = [];
1852
1852
  const maxSizeBytes = config.max_file_size_kb * 1024;
1853
- walk(projectRoot, projectRoot, config, files, maxSizeBytes, 0);
1853
+ walk(projectRoot, projectRoot, config, files, maxSizeBytes);
1854
1854
  return files;
1855
1855
  }
1856
- function walk(dirPath, projectRoot, config, files, maxSizeBytes, depth) {
1856
+ function walk(dirPath, projectRoot, config, files, maxSizeBytes) {
1857
1857
  let entries;
1858
1858
  try {
1859
1859
  entries = fs6.readdirSync(dirPath, { withFileTypes: true });
@@ -1864,8 +1864,7 @@ function walk(dirPath, projectRoot, config, files, maxSizeBytes, depth) {
1864
1864
  const fullPath = path6.join(dirPath, entry.name);
1865
1865
  if (entry.isDirectory()) {
1866
1866
  if (config.collapse_dirs.includes(entry.name)) continue;
1867
- if (depth >= config.tree_depth) continue;
1868
- walk(fullPath, projectRoot, config, files, maxSizeBytes, depth + 1);
1867
+ walk(fullPath, projectRoot, config, files, maxSizeBytes);
1869
1868
  } else if (entry.isFile()) {
1870
1869
  const ext = path6.extname(entry.name).toLowerCase();
1871
1870
  if (!SUPPORTED_EXTENSIONS.has(ext)) continue;