@jacobbd/relay-ai 0.4.3 → 0.4.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.
package/dist/cli.js CHANGED
@@ -25,6 +25,7 @@ import {
25
25
  buildVertexRuntimeConfig,
26
26
  cachedModelToLocal,
27
27
  catalogEntryFromModel,
28
+ checkForUpdates,
28
29
  claudeAppSupported,
29
30
  claudeCodeClientModelId,
30
31
  codexAppInstallHint,
@@ -57,6 +58,7 @@ import {
57
58
  fmtUrl,
58
59
  formatCodexModelLabel,
59
60
  formatRegistryAuthLabel,
61
+ formatUpdateNotification,
60
62
  formatUpstreamError,
61
63
  getAppHome,
62
64
  getAppPathOverride,
@@ -162,7 +164,7 @@ import {
162
164
  validateCustomEndpointUrl,
163
165
  writeSecureLogLine,
164
166
  zenRegistryStub
165
- } from "./chunk-VSXPAZX4.js";
167
+ } from "./chunk-XCB2K4GI.js";
166
168
  import {
167
169
  filterTemplates,
168
170
  init_provider_templates,
@@ -12295,6 +12297,14 @@ Error: ${launchPlan.error}
12295
12297
  }
12296
12298
  async function main(args = process.argv.slice(2)) {
12297
12299
  const parsed = parseArgs(args);
12300
+ if (process.stdout.isTTY) {
12301
+ const update = await checkForUpdates();
12302
+ if (update.updateAvailable && update.latestVersion) {
12303
+ console.log(`
12304
+ ${formatUpdateNotification(update.currentVersion, update.latestVersion)}
12305
+ `);
12306
+ }
12307
+ }
12298
12308
  if (parsed.error) {
12299
12309
  console.error(pc12.red(`
12300
12310
  Error: ${parsed.error}
@@ -12349,7 +12359,7 @@ Error: ${parsed.error}
12349
12359
  console.log("Usage: relay-ai ui [--trace]\n\nOpen the settings UI in your browser.");
12350
12360
  return 0;
12351
12361
  }
12352
- const { runUiCommand } = await import("./ui-command-GEO7ACPW.js");
12362
+ const { runUiCommand } = await import("./ui-command-JG3BFVSL.js");
12353
12363
  return runUiCommand({ trace: parsed.trace });
12354
12364
  }
12355
12365
  if (parsed.command === "models") {