@sdsrs/code-graph 0.76.2 → 0.76.3
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.
|
@@ -354,9 +354,10 @@ async function downloadAndInstall(latest, {
|
|
|
354
354
|
exec = execFileSync,
|
|
355
355
|
downloadBin = downloadBinary,
|
|
356
356
|
refreshMarketplace = refreshMarketplaceClone,
|
|
357
|
+
cmdExists = commandExists,
|
|
357
358
|
} = {}) {
|
|
358
359
|
// Pre-flight: check required CLI tools before attempting any download
|
|
359
|
-
const missingTools = ['curl', 'tar'].filter(cmd => !
|
|
360
|
+
const missingTools = ['curl', 'tar'].filter(cmd => !cmdExists(cmd));
|
|
360
361
|
if (missingTools.length > 0) {
|
|
361
362
|
console.error(`[code-graph] Auto-update skipped: missing required tools: ${missingTools.join(', ')}. Install them to enable auto-updates.`);
|
|
362
363
|
return { pluginUpdated: false, binaryUpdated: false };
|
|
@@ -355,6 +355,7 @@ test('downloadAndInstall wires the marketplace refresh + binary download (orches
|
|
|
355
355
|
let binDownloads = 0;
|
|
356
356
|
const result = await downloadAndInstall(latest, {
|
|
357
357
|
exec,
|
|
358
|
+
cmdExists: () => true, // don't depend on host curl/tar
|
|
358
359
|
refreshMarketplace: () => { refreshed++; return true; },
|
|
359
360
|
downloadBin: async () => { binDownloads++; return true; },
|
|
360
361
|
});
|
|
@@ -409,6 +410,7 @@ test('downloadAndInstall does NOT repoint install state when the plugin copy is
|
|
|
409
410
|
(async () => {
|
|
410
411
|
const result = await downloadAndInstall(latest, {
|
|
411
412
|
exec,
|
|
413
|
+
cmdExists: () => true, // don't depend on host curl/tar — exercise the guard deterministically
|
|
412
414
|
refreshMarketplace: () => true,
|
|
413
415
|
downloadBin: async () => true,
|
|
414
416
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdsrs/code-graph",
|
|
3
|
-
"version": "0.76.
|
|
3
|
+
"version": "0.76.3",
|
|
4
4
|
"description": "MCP server that indexes codebases into an AST knowledge graph with semantic search, call graph traversal, and HTTP route tracing",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"node": ">=16"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
38
|
-
"@sdsrs/code-graph-linux-x64": "0.76.
|
|
39
|
-
"@sdsrs/code-graph-linux-arm64": "0.76.
|
|
40
|
-
"@sdsrs/code-graph-darwin-x64": "0.76.
|
|
41
|
-
"@sdsrs/code-graph-darwin-arm64": "0.76.
|
|
42
|
-
"@sdsrs/code-graph-win32-x64": "0.76.
|
|
38
|
+
"@sdsrs/code-graph-linux-x64": "0.76.3",
|
|
39
|
+
"@sdsrs/code-graph-linux-arm64": "0.76.3",
|
|
40
|
+
"@sdsrs/code-graph-darwin-x64": "0.76.3",
|
|
41
|
+
"@sdsrs/code-graph-darwin-arm64": "0.76.3",
|
|
42
|
+
"@sdsrs/code-graph-win32-x64": "0.76.3"
|
|
43
43
|
}
|
|
44
44
|
}
|