@jacobbd/relay-ai 0.9.6 → 0.9.7

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.
@@ -11,7 +11,7 @@ import { join } from "path";
11
11
  // package.json
12
12
  var package_default = {
13
13
  name: "@jacobbd/relay-ai",
14
- version: "0.9.6",
14
+ version: "0.9.7",
15
15
  publishConfig: {
16
16
  access: "public"
17
17
  },
@@ -13250,6 +13250,19 @@ async function waitForOriginalCodexPids(originalPids, timeoutMs, alive = pidIsAl
13250
13250
  }
13251
13251
  return originalPids.every((pid) => !alive(pid));
13252
13252
  }
13253
+ async function waitForCodexAppQuit(timeoutMs = 5e3) {
13254
+ const originalPids = codexAppMainPids();
13255
+ if (originalPids.length > 0) {
13256
+ const exited = await waitForOriginalCodexPids(originalPids, timeoutMs);
13257
+ return exited && !isCodexAppRunning();
13258
+ }
13259
+ const deadline = Date.now() + timeoutMs;
13260
+ while (Date.now() < deadline) {
13261
+ if (!isCodexAppRunning()) return true;
13262
+ await sleep(200);
13263
+ }
13264
+ return !isCodexAppRunning();
13265
+ }
13253
13266
  function openCodexAppAt(path) {
13254
13267
  if (process.platform === "darwin") {
13255
13268
  if (path.endsWith(".app")) {
@@ -13884,6 +13897,7 @@ export {
13884
13897
  findCodexApp,
13885
13898
  findEmbeddedCodexBinary,
13886
13899
  isCodexAppRunning,
13900
+ waitForCodexAppQuit,
13887
13901
  quitCodexAppGracefully,
13888
13902
  launchOrRestartCodexApp,
13889
13903
  codexAppInstallHint,
@@ -13896,4 +13910,4 @@ export {
13896
13910
  supportsClaudeTransparentMode,
13897
13911
  buildHttpProxyRoutes
13898
13912
  };
13899
- //# sourceMappingURL=chunk-PYJQMEJD.js.map
13913
+ //# sourceMappingURL=chunk-BJ4AE3PS.js.map