open-agents-ai 0.187.538 → 0.187.539

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/index.js CHANGED
@@ -285,9 +285,14 @@ function saveCache(cache8) {
285
285
  }
286
286
  async function fetchLatestVersion() {
287
287
  try {
288
- const resp = await fetch(`https://registry.npmjs.org/${PACKAGE_NAME}/latest`, {
288
+ const url = `https://registry.npmjs.org/${PACKAGE_NAME}/latest?_=${Date.now()}`;
289
+ const resp = await fetch(url, {
289
290
  signal: AbortSignal.timeout(5e3),
290
- headers: { Accept: "application/json" }
291
+ headers: {
292
+ Accept: "application/json",
293
+ "Cache-Control": "no-cache, no-store, max-age=0",
294
+ Pragma: "no-cache"
295
+ }
291
296
  });
292
297
  if (!resp.ok) return null;
293
298
  const data = await resp.json();
@@ -315,7 +320,7 @@ async function checkForUpdate(currentVersion, forceCheck = false) {
315
320
  function formatUpdateBanner(info) {
316
321
  return `
317
322
  Update available: v${info.currentVersion} → v${info.latestVersion}
318
- Run: npm i -g ${PACKAGE_NAME} or use /update in the REPL
323
+ Run: npm i -g ${PACKAGE_NAME}@${info.latestVersion} or use /update in the REPL
319
324
  `;
320
325
  }
321
326
  var PACKAGE_NAME, CHECK_INTERVAL_MS, CACHE_DIR, CACHE_FILE;
@@ -569329,12 +569334,13 @@ async function handleUpdate(subcommand, ctx3) {
569329
569334
  if (doPackage && info) {
569330
569335
  installOverlay.setPhase("Package");
569331
569336
  installOverlay.setStatus("Installing package...");
569332
- const installCmd = `${sudoPrefix}npm install -g open-agents-ai@latest --prefer-online`;
569337
+ const versionSpec = info.latestVersion ? `@${info.latestVersion}` : "@latest";
569338
+ const installCmd = `${sudoPrefix}npm install -g open-agents-ai${versionSpec} --prefer-online --cache-min=0`;
569333
569339
  let installOk = await runInstall2(installCmd);
569334
569340
  if (!installOk && process.platform === "win32" && /EPERM|EACCES|access|denied|permission/i.test(installError)) {
569335
569341
  installOverlay.setStatus("Elevating permissions...");
569336
569342
  installError = "";
569337
- installOk = await runInstall2(`powershell -NoProfile -Command "Start-Process -FilePath 'npm' -ArgumentList 'install -g open-agents-ai@latest --prefer-online' -Verb RunAs -Wait"`);
569343
+ installOk = await runInstall2(`powershell -NoProfile -Command "Start-Process -FilePath 'npm' -ArgumentList 'install -g open-agents-ai${versionSpec} --prefer-online --cache-min=0' -Verb RunAs -Wait"`);
569338
569344
  }
569339
569345
  if (!installOk && /ENOTEMPTY|errno -39/i.test(installError)) {
569340
569346
  installOverlay.setStatus("Cleaning stale artifacts...");
@@ -569353,13 +569359,13 @@ async function handleUpdate(subcommand, ctx3) {
569353
569359
  }
569354
569360
  installOverlay.setStatus("Installing...");
569355
569361
  installError = "";
569356
- installOk = await runInstall2(`${process.platform === "win32" ? "" : sudoPrefix}npm install -g open-agents-ai@latest --force --prefer-online`);
569362
+ installOk = await runInstall2(`${process.platform === "win32" ? "" : sudoPrefix}npm install -g open-agents-ai${versionSpec} --force --prefer-online --cache-min=0`);
569357
569363
  }
569358
569364
  if (!installOk) {
569359
569365
  installOverlay.stop("Install failed");
569360
569366
  await new Promise((r2) => setTimeout(r2, 2e3));
569361
569367
  installOverlay.dismiss();
569362
- const hint = process.platform === "win32" ? `npm i -g open-agents-ai (run terminal as Administrator)` : `${sudoPrefix}npm i -g open-agents-ai`;
569368
+ const hint = process.platform === "win32" ? `npm i -g open-agents-ai${versionSpec} (run terminal as Administrator)` : `${sudoPrefix}npm cache clean --force && ${sudoPrefix}npm i -g open-agents-ai${versionSpec}`;
569363
569369
  renderWarning2(`Update failed: ${installError.slice(0, 150) || "unknown error"}`);
569364
569370
  renderWarning2(`Try manually: ${hint}`);
569365
569371
  return;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.538",
3
+ "version": "0.187.539",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "open-agents-ai",
9
- "version": "0.187.538",
9
+ "version": "0.187.539",
10
10
  "hasInstallScript": true,
11
11
  "license": "CC-BY-NC-4.0",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.538",
3
+ "version": "0.187.539",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",