@infinitedusky/indusk-mcp 1.2.2 → 1.2.4
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.
|
@@ -274,11 +274,11 @@ export async function extensionsUpdate(projectRoot, names) {
|
|
|
274
274
|
}
|
|
275
275
|
continue;
|
|
276
276
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
// If source is npm,
|
|
280
|
-
if (
|
|
281
|
-
const pkg =
|
|
277
|
+
const source = manifest._source;
|
|
278
|
+
console.info(` ${name}: updating from ${source}...`);
|
|
279
|
+
// If source is npm, update the installed package FIRST so we get the latest
|
|
280
|
+
if (source.startsWith("npm:")) {
|
|
281
|
+
const pkg = source.slice(4);
|
|
282
282
|
console.info(` ${name}: updating npm package ${pkg}...`);
|
|
283
283
|
try {
|
|
284
284
|
execSync(`pnpm add ${pkg}@latest`, {
|
|
@@ -295,10 +295,13 @@ export async function extensionsUpdate(projectRoot, names) {
|
|
|
295
295
|
console.info(` ${name}: run manually: pnpm add ${pkg}@latest`);
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
+
// Then fetch the latest manifest (from the now-updated package)
|
|
299
|
+
await extensionsAdd(projectRoot, name, source);
|
|
298
300
|
updated++;
|
|
299
301
|
}
|
|
300
|
-
catch {
|
|
301
|
-
|
|
302
|
+
catch (e) {
|
|
303
|
+
const err = e;
|
|
304
|
+
console.info(` ${name}: failed to read manifest: ${err.message ?? "unknown"}`);
|
|
302
305
|
}
|
|
303
306
|
}
|
|
304
307
|
if (updated === 0) {
|