@sashabogi/argus-mcp 2.0.10 → 2.0.12
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/cli.mjs
CHANGED
|
@@ -1201,11 +1201,12 @@ function resolveImportPath(importPath, fromFile, projectFiles) {
|
|
|
1201
1201
|
if (!importPath.startsWith(".")) return void 0;
|
|
1202
1202
|
const fromDir = dirname(fromFile);
|
|
1203
1203
|
let resolved = join3(fromDir, importPath);
|
|
1204
|
+
const basePath = resolved.replace(/\.(js|jsx|mjs|cjs)$/, "");
|
|
1204
1205
|
const extensions = [".ts", ".tsx", ".js", ".jsx", "", "/index.ts", "/index.tsx", "/index.js", "/index.jsx"];
|
|
1205
1206
|
for (const ext of extensions) {
|
|
1206
|
-
const candidate =
|
|
1207
|
+
const candidate = basePath + ext;
|
|
1207
1208
|
if (projectFiles.includes(candidate) || projectFiles.includes("./" + candidate)) {
|
|
1208
|
-
return candidate;
|
|
1209
|
+
return candidate.startsWith("./") ? candidate.slice(2) : candidate;
|
|
1209
1210
|
}
|
|
1210
1211
|
}
|
|
1211
1212
|
return void 0;
|
|
@@ -2138,7 +2139,7 @@ function listProviderTypes() {
|
|
|
2138
2139
|
// src/cli.ts
|
|
2139
2140
|
init_onboarding();
|
|
2140
2141
|
var program = new Command();
|
|
2141
|
-
program.name("argus").description("Codebase Intelligence Beyond Context Limits").version("2.0.
|
|
2142
|
+
program.name("argus").description("Codebase Intelligence Beyond Context Limits").version("2.0.12");
|
|
2142
2143
|
program.command("init").description("Interactive setup wizard").action(async () => {
|
|
2143
2144
|
console.log("\n\u{1F52E} Argus Setup Wizard\n");
|
|
2144
2145
|
console.log("This will configure your AI provider and create ~/.argus/config.json\n");
|