@sashabogi/argus-mcp 2.0.9 → 2.0.10
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
|
@@ -2138,7 +2138,7 @@ function listProviderTypes() {
|
|
|
2138
2138
|
// src/cli.ts
|
|
2139
2139
|
init_onboarding();
|
|
2140
2140
|
var program = new Command();
|
|
2141
|
-
program.name("argus").description("Codebase Intelligence Beyond Context Limits").version("2.0.
|
|
2141
|
+
program.name("argus").description("Codebase Intelligence Beyond Context Limits").version("2.0.10");
|
|
2142
2142
|
program.command("init").description("Interactive setup wizard").action(async () => {
|
|
2143
2143
|
console.log("\n\u{1F52E} Argus Setup Wizard\n");
|
|
2144
2144
|
console.log("This will configure your AI provider and create ~/.argus/config.json\n");
|
|
@@ -2986,7 +2986,23 @@ program.command("ui").description("Open the Argus web UI for codebase visualizat
|
|
|
2986
2986
|
".svg": "image/svg+xml"
|
|
2987
2987
|
};
|
|
2988
2988
|
const server = http.createServer((req, res) => {
|
|
2989
|
-
|
|
2989
|
+
const url = new URL(req.url || "/", `http://localhost`);
|
|
2990
|
+
if (url.pathname === "/api/snapshot") {
|
|
2991
|
+
const snapshotPath = join4(process.cwd(), ".argus", "snapshot.txt");
|
|
2992
|
+
if (existsSync4(snapshotPath)) {
|
|
2993
|
+
const content = readFileSync5(snapshotPath, "utf-8");
|
|
2994
|
+
res.writeHead(200, {
|
|
2995
|
+
"Content-Type": "text/plain",
|
|
2996
|
+
"Access-Control-Allow-Origin": "*"
|
|
2997
|
+
});
|
|
2998
|
+
res.end(content);
|
|
2999
|
+
} else {
|
|
3000
|
+
res.writeHead(404, { "Content-Type": "application/json" });
|
|
3001
|
+
res.end(JSON.stringify({ error: "No snapshot found at .argus/snapshot.txt" }));
|
|
3002
|
+
}
|
|
3003
|
+
return;
|
|
3004
|
+
}
|
|
3005
|
+
let filePath = join4(distPath, url.pathname === "/" ? "index.html" : url.pathname);
|
|
2990
3006
|
if (!existsSync4(filePath) && !filePath.includes(".")) {
|
|
2991
3007
|
filePath = join4(distPath, "index.html");
|
|
2992
3008
|
}
|