@sashabogi/argus-mcp 2.0.11 → 2.0.13

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/mcp.mjs CHANGED
@@ -669,11 +669,12 @@ function resolveImportPath(importPath, fromFile, projectFiles) {
669
669
  if (!importPath.startsWith(".")) return void 0;
670
670
  const fromDir = dirname(fromFile);
671
671
  let resolved = join3(fromDir, importPath);
672
+ const basePath = resolved.replace(/\.(js|jsx|mjs|cjs)$/, "");
672
673
  const extensions = [".ts", ".tsx", ".js", ".jsx", "", "/index.ts", "/index.tsx", "/index.js", "/index.jsx"];
673
674
  for (const ext of extensions) {
674
- const candidate = resolved + ext;
675
+ const candidate = basePath + ext;
675
676
  if (projectFiles.includes(candidate) || projectFiles.includes("./" + candidate)) {
676
- return candidate;
677
+ return candidate.startsWith("./") ? candidate.slice(2) : candidate;
677
678
  }
678
679
  }
679
680
  return void 0;