@jacobbd/relay-ai 0.7.3 → 0.7.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
@@ -177,7 +177,7 @@ import {
177
177
  validateCustomEndpointUrl,
178
178
  writeSecureLogLine,
179
179
  zenRegistryStub
180
- } from "./chunk-5LPUIWNJ.js";
180
+ } from "./chunk-EUY2MVOS.js";
181
181
  import {
182
182
  filterTemplates,
183
183
  init_provider_templates,
@@ -13393,7 +13393,7 @@ Options:
13393
13393
  --trace Write debug logs under ~/.relay-ai/logs/`);
13394
13394
  return 0;
13395
13395
  }
13396
- const { runUiCommand } = await import("./ui-command-DMPYSK7W.js");
13396
+ const { runUiCommand } = await import("./ui-command-CF3IEIZP.js");
13397
13397
  return runUiCommand({ trace: parsed.trace, serverMode: parsed.uiServerMode });
13398
13398
  }
13399
13399
  if (parsed.command === "models") {
@@ -13534,15 +13534,20 @@ function isCliEntryPoint() {
13534
13534
  }
13535
13535
  if (isCliEntryPoint()) {
13536
13536
  main().then((exitCode) => {
13537
- process.exit(exitCode);
13537
+ gracefulExit(exitCode);
13538
13538
  }).catch((err) => {
13539
13539
  if (err === /* @__PURE__ */ Symbol.for("clack:cancel")) {
13540
- process.exit(0);
13540
+ gracefulExit(0);
13541
+ return;
13541
13542
  }
13542
13543
  console.error(pc12.red("\nUnexpected error:"), err);
13543
- process.exit(1);
13544
+ gracefulExit(1);
13544
13545
  });
13545
13546
  }
13547
+ function gracefulExit(code) {
13548
+ process.exitCode = code;
13549
+ setTimeout(() => process.exit(code), 500).unref();
13550
+ }
13546
13551
  export {
13547
13552
  antigravityAppHelpText,
13548
13553
  antigravityCliHelpText,