vapi-network 0.9.4 → 0.9.5

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
@@ -9442,13 +9442,13 @@ var init_getCallError = __esm({
9442
9442
 
9443
9443
  // ../../node_modules/.pnpm/viem@2.56.1_typescript@6.0.3_zod@4.5.4/node_modules/viem/_esm/utils/promise/withResolvers.js
9444
9444
  function withResolvers() {
9445
- let resolve2 = () => void 0;
9445
+ let resolve3 = () => void 0;
9446
9446
  let reject = () => void 0;
9447
9447
  const promise2 = new Promise((resolve_, reject_) => {
9448
- resolve2 = resolve_;
9448
+ resolve3 = resolve_;
9449
9449
  reject = reject_;
9450
9450
  });
9451
- return { promise: promise2, resolve: resolve2, reject };
9451
+ return { promise: promise2, resolve: resolve3, reject };
9452
9452
  }
9453
9453
  var init_withResolvers = __esm({
9454
9454
  "../../node_modules/.pnpm/viem@2.56.1_typescript@6.0.3_zod@4.5.4/node_modules/viem/_esm/utils/promise/withResolvers.js"() {
@@ -9467,8 +9467,8 @@ function createBatchScheduler({ fn, id: id2, shouldSplitBatch, wait: wait2 = 0,
9467
9467
  if (sort && Array.isArray(data))
9468
9468
  data.sort(sort);
9469
9469
  for (let i = 0; i < scheduler.length; i++) {
9470
- const { resolve: resolve2 } = scheduler[i];
9471
- resolve2?.([data[i], data]);
9470
+ const { resolve: resolve3 } = scheduler[i];
9471
+ resolve3?.([data[i], data]);
9472
9472
  }
9473
9473
  }).catch((err) => {
9474
9474
  for (let i = 0; i < scheduler.length; i++) {
@@ -9484,16 +9484,16 @@ function createBatchScheduler({ fn, id: id2, shouldSplitBatch, wait: wait2 = 0,
9484
9484
  return {
9485
9485
  flush,
9486
9486
  async schedule(args) {
9487
- const { promise: promise2, resolve: resolve2, reject } = withResolvers();
9487
+ const { promise: promise2, resolve: resolve3, reject } = withResolvers();
9488
9488
  const split2 = shouldSplitBatch?.([...getBatchedArgs(), args]);
9489
9489
  if (split2)
9490
9490
  exec();
9491
9491
  const hasActiveScheduler = getScheduler().length > 0;
9492
9492
  if (hasActiveScheduler) {
9493
- setScheduler({ args, resolve: resolve2, reject });
9493
+ setScheduler({ args, resolve: resolve3, reject });
9494
9494
  return promise2;
9495
9495
  }
9496
- setScheduler({ args, resolve: resolve2, reject });
9496
+ setScheduler({ args, resolve: resolve3, reject });
9497
9497
  setTimeout(exec, wait2);
9498
9498
  return promise2;
9499
9499
  }
@@ -30775,7 +30775,7 @@ function observe(observerId, callbacks, fn) {
30775
30775
  // ../../node_modules/.pnpm/viem@2.56.1_typescript@6.0.3_zod@4.5.4/node_modules/viem/_esm/utils/wait.js
30776
30776
  init_utils3();
30777
30777
  async function wait(time3, { signal } = {}) {
30778
- return new Promise((resolve2, reject) => {
30778
+ return new Promise((resolve3, reject) => {
30779
30779
  if (signal?.aborted) {
30780
30780
  reject(getAbortError(signal));
30781
30781
  return;
@@ -30783,7 +30783,7 @@ async function wait(time3, { signal } = {}) {
30783
30783
  const cleanup = () => signal?.removeEventListener("abort", onAbort);
30784
30784
  const timeout = setTimeout(() => {
30785
30785
  cleanup();
30786
- resolve2();
30786
+ resolve3();
30787
30787
  }, time3);
30788
30788
  const onAbort = () => {
30789
30789
  clearTimeout(timeout);
@@ -31359,7 +31359,7 @@ init_withResolvers();
31359
31359
  // ../../node_modules/.pnpm/viem@2.56.1_typescript@6.0.3_zod@4.5.4/node_modules/viem/_esm/utils/promise/withRetry.js
31360
31360
  init_utils3();
31361
31361
  function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry: shouldRetry2 = () => true, signal } = {}) {
31362
- return new Promise((resolve2, reject) => {
31362
+ return new Promise((resolve3, reject) => {
31363
31363
  const attemptRetry = async ({ count = 0 } = {}) => {
31364
31364
  if (signal?.aborted) {
31365
31365
  reject(getAbortError(signal));
@@ -31379,7 +31379,7 @@ function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry: shoul
31379
31379
  };
31380
31380
  try {
31381
31381
  const data = await fn();
31382
- resolve2(data);
31382
+ resolve3(data);
31383
31383
  } catch (err) {
31384
31384
  if (signal?.aborted) {
31385
31385
  reject(getAbortError(signal));
@@ -31530,7 +31530,7 @@ async function sendCalls(client, parameters) {
31530
31530
  results.push({ reason, status: "rejected" });
31531
31531
  }
31532
31532
  if (experimental_fallbackDelay > 0)
31533
- await new Promise((resolve2) => setTimeout(resolve2, experimental_fallbackDelay));
31533
+ await new Promise((resolve3) => setTimeout(resolve3, experimental_fallbackDelay));
31534
31534
  }
31535
31535
  if (results.every((r) => r.status === "rejected"))
31536
31536
  throw results[0].reason;
@@ -31633,9 +31633,9 @@ async function waitForCallsStatus(client, parameters) {
31633
31633
  throwOnFailure = false
31634
31634
  } = parameters;
31635
31635
  const observerId = stringify(["waitForCallsStatus", client.uid, id2]);
31636
- const { promise: promise2, resolve: resolve2, reject } = withResolvers();
31636
+ const { promise: promise2, resolve: resolve3, reject } = withResolvers();
31637
31637
  let timer;
31638
- const unobserve = observe(observerId, { resolve: resolve2, reject }, (emit) => {
31638
+ const unobserve = observe(observerId, { resolve: resolve3, reject }, (emit) => {
31639
31639
  const unpoll = poll(async () => {
31640
31640
  const done = (fn) => {
31641
31641
  clearTimeout(timer);
@@ -32017,13 +32017,13 @@ async function isImageUri(uri) {
32017
32017
  }
32018
32018
  if (!Object.hasOwn(globalThis, "Image"))
32019
32019
  return false;
32020
- return new Promise((resolve2) => {
32020
+ return new Promise((resolve3) => {
32021
32021
  const img = new Image();
32022
32022
  img.onload = () => {
32023
- resolve2(true);
32023
+ resolve3(true);
32024
32024
  };
32025
32025
  img.onerror = () => {
32026
- resolve2(false);
32026
+ resolve3(false);
32027
32027
  };
32028
32028
  img.src = uri;
32029
32029
  });
@@ -33486,7 +33486,7 @@ init_utils3();
33486
33486
  // ../../node_modules/.pnpm/viem@2.56.1_typescript@6.0.3_zod@4.5.4/node_modules/viem/_esm/utils/promise/withTimeout.js
33487
33487
  init_utils3();
33488
33488
  function withTimeout(fn, { errorInstance = new Error("timed out"), timeout, signal }) {
33489
- return new Promise((resolve2, reject) => {
33489
+ return new Promise((resolve3, reject) => {
33490
33490
  ;
33491
33491
  (async () => {
33492
33492
  let timeoutId;
@@ -33501,7 +33501,7 @@ function withTimeout(fn, { errorInstance = new Error("timed out"), timeout, sign
33501
33501
  }
33502
33502
  }, timeout);
33503
33503
  }
33504
- resolve2(await fn({ signal: controller?.signal || null }));
33504
+ resolve3(await fn({ signal: controller?.signal || null }));
33505
33505
  } catch (err) {
33506
33506
  if (controller?.signal.aborted && isAbortError(err)) {
33507
33507
  reject(errorInstance);
@@ -37481,13 +37481,13 @@ async function waitForTransactionReceipt(client, parameters) {
37481
37481
  let retrying = false;
37482
37482
  let _unobserve;
37483
37483
  let _unwatch;
37484
- const { promise: promise2, resolve: resolve2, reject } = withResolvers();
37484
+ const { promise: promise2, resolve: resolve3, reject } = withResolvers();
37485
37485
  const timer = timeout ? setTimeout(() => {
37486
37486
  _unwatch?.();
37487
37487
  _unobserve?.();
37488
37488
  reject(new WaitForTransactionReceiptTimeoutError({ hash: hash5 }));
37489
37489
  }, timeout) : void 0;
37490
- _unobserve = observe(observerId, { onReplaced, resolve: resolve2, reject }, async (emit) => {
37490
+ _unobserve = observe(observerId, { onReplaced, resolve: resolve3, reject }, async (emit) => {
37491
37491
  receipt = await getAction(client, getTransactionReceipt, "getTransactionReceipt")({ hash: hash5 }).catch(() => void 0);
37492
37492
  if (receipt && confirmations <= 1) {
37493
37493
  clearTimeout(timer);
@@ -43446,7 +43446,7 @@ function getRpcTransportWithRequestCoalescing(transport, getDeduplicationKey) {
43446
43446
  coalescedRequest.numConsumers++;
43447
43447
  if (signal) {
43448
43448
  const responsePromise = coalescedRequest.responsePromise;
43449
- return await new Promise((resolve2, reject) => {
43449
+ return await new Promise((resolve3, reject) => {
43450
43450
  const handleAbort = (e22) => {
43451
43451
  signal.removeEventListener("abort", handleAbort);
43452
43452
  coalescedRequest.numConsumers -= 1;
@@ -43459,7 +43459,7 @@ function getRpcTransportWithRequestCoalescing(transport, getDeduplicationKey) {
43459
43459
  reject(e22.target.reason);
43460
43460
  };
43461
43461
  signal.addEventListener("abort", handleAbort);
43462
- responsePromise.then(resolve2).catch(reject).finally(() => {
43462
+ responsePromise.then(resolve3).catch(reject).finally(() => {
43463
43463
  signal.removeEventListener("abort", handleAbort);
43464
43464
  });
43465
43465
  });
@@ -44842,7 +44842,7 @@ function createPublicFetch(options) {
44842
44842
  });
44843
44843
  const normalized = new Request(input2, init);
44844
44844
  const bytes = normalized.body ? Buffer.from(await normalized.arrayBuffer()) : null;
44845
- return await new Promise((resolve2, reject) => {
44845
+ return await new Promise((resolve3, reject) => {
44846
44846
  const requestOptions2 = {
44847
44847
  method: normalized.method,
44848
44848
  headers: Object.fromEntries(normalized.headers),
@@ -44867,7 +44867,7 @@ function createPublicFetch(options) {
44867
44867
  { status, statusText: incoming.statusMessage, headers }
44868
44868
  );
44869
44869
  Object.defineProperty(response, "url", { value: url2.toString() });
44870
- resolve2(response);
44870
+ resolve3(response);
44871
44871
  } catch (error61) {
44872
44872
  incoming.destroy();
44873
44873
  reject(error61);
@@ -45636,8 +45636,8 @@ var svmFetchQueue = Promise.resolve();
45636
45636
  async function withGuardedSvmFetch(fetchImpl, operation) {
45637
45637
  const previous = svmFetchQueue;
45638
45638
  let release2;
45639
- svmFetchQueue = new Promise((resolve2) => {
45640
- release2 = resolve2;
45639
+ svmFetchQueue = new Promise((resolve3) => {
45640
+ release2 = resolve3;
45641
45641
  });
45642
45642
  await previous;
45643
45643
  const originalFetch = globalThis.fetch;
@@ -46850,7 +46850,7 @@ async function withFileLock(lockPath, fn, options = {}) {
46850
46850
  if (Date.now() >= deadline) {
46851
46851
  throw new FileLockedError(options.lockedMessage);
46852
46852
  }
46853
- await new Promise((resolve2) => setTimeout(resolve2, LOCK_RETRY_MS));
46853
+ await new Promise((resolve3) => setTimeout(resolve3, LOCK_RETRY_MS));
46854
46854
  continue;
46855
46855
  }
46856
46856
  handle = candidate;
@@ -46865,7 +46865,7 @@ async function withFileLock(lockPath, fn, options = {}) {
46865
46865
  if (Date.now() >= deadline) {
46866
46866
  throw new FileLockedError(options.lockedMessage);
46867
46867
  }
46868
- await new Promise((resolve2) => setTimeout(resolve2, LOCK_RETRY_MS));
46868
+ await new Promise((resolve3) => setTimeout(resolve3, LOCK_RETRY_MS));
46869
46869
  }
46870
46870
  }
46871
46871
  const ownedHandle = handle;
@@ -46986,7 +46986,7 @@ async function restoreRenamedLock(path, tombPath) {
46986
46986
  } catch (error61) {
46987
46987
  if (hasCode(error61, "ENOENT")) return;
46988
46988
  if (!hasCode(error61, "EEXIST")) throw error61;
46989
- await new Promise((resolve2) => setTimeout(resolve2, LOCK_RETRY_MS));
46989
+ await new Promise((resolve3) => setTimeout(resolve3, LOCK_RETRY_MS));
46990
46990
  }
46991
46991
  }
46992
46992
  }
@@ -47985,7 +47985,7 @@ async function withAgentCredentialLock(wallets, clientId, operation) {
47985
47985
  if (Date.now() >= deadline) {
47986
47986
  throw httpError("Timed out waiting to update the agent credentials.");
47987
47987
  }
47988
- await new Promise((resolve2) => setTimeout(resolve2, 20));
47988
+ await new Promise((resolve3) => setTimeout(resolve3, 20));
47989
47989
  }
47990
47990
  }
47991
47991
  try {
@@ -48138,7 +48138,7 @@ function splitScopes(scope) {
48138
48138
  return scope.split(/\s+/u).filter(Boolean);
48139
48139
  }
48140
48140
  async function sleepFor(milliseconds) {
48141
- await new Promise((resolve2) => setTimeout(resolve2, milliseconds));
48141
+ await new Promise((resolve3) => setTimeout(resolve3, milliseconds));
48142
48142
  }
48143
48143
 
48144
48144
  // ../core/src/keystore.ts
@@ -69616,7 +69616,7 @@ function decryptWithKey(key2, sealed) {
69616
69616
  return Buffer.concat([decipher.update(sealed.ciphertext), decipher.final()]);
69617
69617
  }
69618
69618
  async function deriveScryptKey(passphrase, salt) {
69619
- return await new Promise((resolve2, reject) => {
69619
+ return await new Promise((resolve3, reject) => {
69620
69620
  scrypt(
69621
69621
  passphrase,
69622
69622
  salt,
@@ -69632,7 +69632,7 @@ async function deriveScryptKey(passphrase, salt) {
69632
69632
  reject(error61);
69633
69633
  return;
69634
69634
  }
69635
- resolve2(derivedKey);
69635
+ resolve3(derivedKey);
69636
69636
  }
69637
69637
  );
69638
69638
  });
@@ -69956,7 +69956,7 @@ async function promptForSecret(prompt, noTerminalHint) {
69956
69956
  stdin.setRawMode(true);
69957
69957
  stdin.resume();
69958
69958
  stdin.setEncoding("utf8");
69959
- return await new Promise((resolve2, reject) => {
69959
+ return await new Promise((resolve3, reject) => {
69960
69960
  let value = "";
69961
69961
  const cleanup = () => {
69962
69962
  stdin.off("data", onData);
@@ -69973,7 +69973,7 @@ async function promptForSecret(prompt, noTerminalHint) {
69973
69973
  }
69974
69974
  if (character === "\r" || character === "\n") {
69975
69975
  cleanup();
69976
- resolve2(value);
69976
+ resolve3(value);
69977
69977
  return;
69978
69978
  }
69979
69979
  if (character === "\x7F" || character === "\b") {
@@ -70035,7 +70035,7 @@ async function withAccountMovementLock(home, account, timeoutMs, operation, sign
70035
70035
  if (!(error61 instanceof Error && "code" in error61 && error61.code === "EEXIST")) throw error61;
70036
70036
  await removeStaleLock2(path);
70037
70037
  if (Date.now() >= deadline) throw new AccountMovementLockedError(account);
70038
- await new Promise((resolve2) => setTimeout(resolve2, 20));
70038
+ await new Promise((resolve3) => setTimeout(resolve3, 20));
70039
70039
  }
70040
70040
  }
70041
70041
  const ownedHandle = handle;
@@ -70506,14 +70506,14 @@ function requireSuccess(result, what) {
70506
70506
  function withoutTrailingNewline(value) {
70507
70507
  return value.replace(/\r?\n$/u, "");
70508
70508
  }
70509
- var spawnRunner = async (file2, args, input2) => await new Promise((resolve2) => {
70509
+ var spawnRunner = async (file2, args, input2) => await new Promise((resolve3) => {
70510
70510
  let stdout = "";
70511
70511
  let stderr2 = "";
70512
70512
  let settled = false;
70513
70513
  const finish = (outcome) => {
70514
70514
  if (settled) return;
70515
70515
  settled = true;
70516
- resolve2(outcome);
70516
+ resolve3(outcome);
70517
70517
  };
70518
70518
  const child = spawn(file2, [...args], {
70519
70519
  detached: true,
@@ -71476,7 +71476,7 @@ async function withVaultLock(path, operation) {
71476
71476
  if (Date.now() >= deadline) {
71477
71477
  throw new VaultError("corrupt", "Timed out waiting for the vault lock.");
71478
71478
  }
71479
- await new Promise((resolve2) => setTimeout(resolve2, 20));
71479
+ await new Promise((resolve3) => setTimeout(resolve3, 20));
71480
71480
  }
71481
71481
  }
71482
71482
  try {
@@ -73209,7 +73209,7 @@ async function withRegistryLock(path, operation) {
73209
73209
  if (Date.now() >= deadline) {
73210
73210
  throw new KeystoreError("Timed out waiting for the wallet registry lock.");
73211
73211
  }
73212
- await new Promise((resolve2) => setTimeout(resolve2, 20));
73212
+ await new Promise((resolve3) => setTimeout(resolve3, 20));
73213
73213
  }
73214
73214
  }
73215
73215
  try {
@@ -73555,11 +73555,11 @@ function publicErrorMessage(error61, fallback, sensitiveValues = []) {
73555
73555
  return error61 instanceof Error ? message : fallback;
73556
73556
  }
73557
73557
  async function unrefSleep(milliseconds, signal) {
73558
- await new Promise((resolve2) => {
73558
+ await new Promise((resolve3) => {
73559
73559
  const finish = () => {
73560
73560
  clearTimeout(timer);
73561
73561
  signal?.removeEventListener("abort", finish);
73562
- resolve2();
73562
+ resolve3();
73563
73563
  };
73564
73564
  const timer = setTimeout(finish, milliseconds);
73565
73565
  timer.unref();
@@ -74096,7 +74096,7 @@ async function withLedgerLock(path, operation) {
74096
74096
  if (Date.now() >= deadline) {
74097
74097
  throw new Error("Timed out waiting for the spend ledger lock.");
74098
74098
  }
74099
- await new Promise((resolve2) => setTimeout(resolve2, 20));
74099
+ await new Promise((resolve3) => setTimeout(resolve3, 20));
74100
74100
  }
74101
74101
  }
74102
74102
  try {
@@ -74730,7 +74730,7 @@ async function withTransferLock(context, nonce, operation) {
74730
74730
  if (Date.now() >= deadline) {
74731
74731
  throw new Error("Timed out waiting for the transfer lock.");
74732
74732
  }
74733
- await new Promise((resolve2) => setTimeout(resolve2, 20));
74733
+ await new Promise((resolve3) => setTimeout(resolve3, 20));
74734
74734
  }
74735
74735
  }
74736
74736
  try {
@@ -76448,8 +76448,8 @@ async function sweepAllAboveCeiling(args) {
76448
76448
  }
76449
76449
  var pendingCeilingSweeps = /* @__PURE__ */ new Set();
76450
76450
  function scheduleCeilingSweep(hook) {
76451
- const task = new Promise((resolve2) => {
76452
- setTimeout(resolve2, 0);
76451
+ const task = new Promise((resolve3) => {
76452
+ setTimeout(resolve3, 0);
76453
76453
  }).then(async () => {
76454
76454
  const timeoutMs = hook.timeoutMs ?? CEILING_SWEEP_TIMEOUT_MS;
76455
76455
  const controller = new AbortController();
@@ -76489,8 +76489,8 @@ async function drainCeilingSweeps(timeoutMs = CEILING_SWEEP_TIMEOUT_MS) {
76489
76489
  try {
76490
76490
  await Promise.race([
76491
76491
  Promise.allSettled(pending),
76492
- new Promise((resolve2) => {
76493
- timeout = setTimeout(resolve2, timeoutMs);
76492
+ new Promise((resolve3) => {
76493
+ timeout = setTimeout(resolve3, timeoutMs);
76494
76494
  })
76495
76495
  ]);
76496
76496
  } finally {
@@ -77589,7 +77589,7 @@ function createRunBudget(args) {
77589
77589
  import { mkdir as mkdir15, writeFile as writeFile8 } from "node:fs/promises";
77590
77590
  import { arch, platform, release } from "node:os";
77591
77591
  import { join as join13 } from "node:path";
77592
- var VAPI_CLIENT_VERSION = "0.9.4";
77592
+ var VAPI_CLIENT_VERSION = "0.9.5";
77593
77593
  async function createSupportReport(options) {
77594
77594
  const message = options.message.trim();
77595
77595
  if (!message) throw new Error("Support report message must not be empty.");
@@ -81295,7 +81295,7 @@ var authorizationTypes = {
81295
81295
  function createTasksChain(options) {
81296
81296
  const { account, client, pending, rpcFor } = options;
81297
81297
  const now = options.now ?? (() => /* @__PURE__ */ new Date());
81298
- const sleep = options.sleep ?? ((ms) => new Promise((resolve2) => setTimeout(resolve2, ms)));
81298
+ const sleep = options.sleep ?? ((ms) => new Promise((resolve3) => setTimeout(resolve3, ms)));
81299
81299
  const randomBytes17 = options.randomBytes ?? cryptoRandomBytes2;
81300
81300
  const confirmations = options.confirmations ?? 2;
81301
81301
  if (!Number.isSafeInteger(confirmations) || confirmations < 1)
@@ -82100,7 +82100,7 @@ async function waitForMilestone(client, input2) {
82100
82100
  throw new RangeError("The milestone wait timeout must be non-negative and finite.");
82101
82101
  if (!Number.isFinite(intervalMs) || intervalMs <= 0)
82102
82102
  throw new RangeError("The milestone wait interval must be positive and finite.");
82103
- const sleep = input2.sleep ?? ((ms) => new Promise((resolve2) => setTimeout(resolve2, ms)));
82103
+ const sleep = input2.sleep ?? ((ms) => new Promise((resolve3) => setTimeout(resolve3, ms)));
82104
82104
  const now = input2.now ?? (() => /* @__PURE__ */ new Date());
82105
82105
  const started = now().getTime();
82106
82106
  const deadline = started + timeoutMs;
@@ -86702,10 +86702,10 @@ async function buildStatus(deps) {
86702
86702
  const timers = deps.timers ?? { setTimeout, clearTimeout };
86703
86703
  const controller = new AbortController();
86704
86704
  let timeout;
86705
- const deadline = new Promise((resolve2) => {
86705
+ const deadline = new Promise((resolve3) => {
86706
86706
  timeout = timers.setTimeout(() => {
86707
86707
  controller.abort(new Error("Status request deadline exceeded."));
86708
- resolve2();
86708
+ resolve3();
86709
86709
  }, deps.timeoutMs ?? STATUS_TIMEOUT_MS);
86710
86710
  });
86711
86711
  try {
@@ -94868,6 +94868,9 @@ function rgbToAnsi256(red, green, blue) {
94868
94868
  import { readFile as readFile24, stat as stat14 } from "node:fs/promises";
94869
94869
  import { join as join21 } from "node:path";
94870
94870
 
94871
+ // ../cli/src/dashboard.ts
94872
+ import { resolve as resolve2 } from "node:path";
94873
+
94871
94874
  // ../cli/src/publish-client.ts
94872
94875
  var LISTING_CATEGORIES = ["ai", "data", "crypto", "compute", "search"];
94873
94876
  var PROBE_MODES = ["origin", "endpoint", "openapi"];
@@ -95188,7 +95191,8 @@ async function runLoginFlow(argv, json2, io, dependencies, options = {}) {
95188
95191
  booleanOptions: /* @__PURE__ */ new Set(["--publish", "--no-browser"]),
95189
95192
  maximumPositionals: 0
95190
95193
  });
95191
- const target = await targetWallet(parsed, dependencies);
95194
+ const paths = getVapiPaths(options.home);
95195
+ const target = await targetWallet(parsed, dependencies, paths.directory);
95192
95196
  const { account } = await unlockTarget(target, dependencies);
95193
95197
  const label = parsed.one("--label") ?? target.name;
95194
95198
  const scopes = [
@@ -95197,13 +95201,13 @@ async function runLoginFlow(argv, json2, io, dependencies, options = {}) {
95197
95201
  "tasks:write",
95198
95202
  ...parsed.has("--publish") ? ["call.publish"] : []
95199
95203
  ];
95200
- const config2 = await loadConfig(getVapiPaths().config, process.env, { notice: io.stderr });
95201
- const apiBase = registryBaseUrl(config2);
95204
+ const config2 = await loadConfig(paths.config, process.env, { notice: io.stderr });
95205
+ const apiBase = options.apiBase ?? registryBaseUrl(config2);
95202
95206
  const fetchImpl = dependencies.fetchImpl ?? createPublicFetch({ allowPrivateNetwork: false });
95203
95207
  const secrets = getSecretStore(dependencies);
95204
95208
  const device = await ensureDeviceName({
95205
95209
  env: getEnvironment(dependencies),
95206
- configPath: getVapiPaths().config,
95210
+ configPath: paths.config,
95207
95211
  ...dependencies.hostname === void 0 ? {} : { hostname: dependencies.hostname() }
95208
95212
  });
95209
95213
  const bearer = await trustedLinkBearer({
@@ -95457,6 +95461,87 @@ function shortAddress(address4) {
95457
95461
  return address4.length <= 12 ? address4 : `${address4.slice(0, 6)}\u2026${address4.slice(-4)}`;
95458
95462
  }
95459
95463
 
95464
+ // ../cli/src/dashboard.ts
95465
+ function dashboardUrl(apiBase) {
95466
+ return `${apiBase.replace(/\/+$/u, "")}/agents`;
95467
+ }
95468
+ async function offerDashboardLink({
95469
+ name,
95470
+ json: json2,
95471
+ noLink = false,
95472
+ io,
95473
+ dependencies,
95474
+ home = getVapiPaths().directory,
95475
+ apiBase
95476
+ }) {
95477
+ const otherHome = resolve2(home) !== resolve2(getVapiPaths().directory);
95478
+ const command = `${otherHome ? `VAPI_HOME=${shellQuote(home)} ` : ""}${apiBase === void 0 ? "" : `VAPI_REGISTRY_URL=${shellQuote(apiBase)} `}vapi login --account ${name}`;
95479
+ const unlinked = {
95480
+ linked: false,
95481
+ next: [{ kind: "link", account: name, command }]
95482
+ };
95483
+ const hint = () => {
95484
+ if (!json2) io.stdout(`Run \`${command}\` to see this wallet on your dashboard.`);
95485
+ return unlinked;
95486
+ };
95487
+ try {
95488
+ const store = await WalletStore.open(home, {
95489
+ secrets: getSecretStore(dependencies),
95490
+ env: getEnvironment(dependencies)
95491
+ });
95492
+ if (store.entry(name)?.link !== void 0) return { linked: true };
95493
+ if (noLink || json2 || !isInteractive(dependencies) || activeAgentMarker(getEnvironment(dependencies)) !== void 0) {
95494
+ return hint();
95495
+ }
95496
+ const answer = (await getLinePrompt(dependencies)(`Link ${name} to your vAPI dashboard? [Y/n] `)).trim();
95497
+ if (!/^(?:y|yes)?$/iu.test(answer)) return hint();
95498
+ await runLoginFlow(["--account", name, "--label", name], false, io, dependencies, {
95499
+ home,
95500
+ ...apiBase === void 0 ? {} : { apiBase }
95501
+ });
95502
+ await store.reload();
95503
+ const link3 = store.entry(name)?.link;
95504
+ if (link3 === void 0) return hint();
95505
+ io.stdout(`See it on your dashboard: ${dashboardUrl(link3.apiBase)}`);
95506
+ return { linked: true };
95507
+ } catch (error61) {
95508
+ if (!json2) {
95509
+ io.stderr(`Link not completed: ${error61 instanceof Error ? error61.message : String(error61)}`);
95510
+ }
95511
+ return hint();
95512
+ }
95513
+ }
95514
+ async function dashboardCommand(argv, json2, io, dependencies) {
95515
+ const parsed = parseArguments(argv, {
95516
+ valueOptions: /* @__PURE__ */ new Set(["--wallet"]),
95517
+ booleanOptions: /* @__PURE__ */ new Set(["--no-browser", "--no-link"]),
95518
+ maximumPositionals: 0
95519
+ });
95520
+ const target = await targetWallet(parsed, dependencies);
95521
+ let status = { linked: true };
95522
+ if (target.entry.link === void 0) {
95523
+ if (!json2) io.stdout(`${target.name} is not linked to your vAPI dashboard yet.`);
95524
+ status = await offerDashboardLink({
95525
+ name: target.name,
95526
+ json: json2,
95527
+ noLink: parsed.has("--no-link"),
95528
+ io,
95529
+ dependencies: parsed.has("--no-browser") ? { ...dependencies, openUrl: () => false } : dependencies
95530
+ });
95531
+ }
95532
+ await target.store.reload();
95533
+ const apiBase = target.store.entry(target.name)?.link?.apiBase ?? registryBaseUrl(await readConfig(getVapiPaths().config, io));
95534
+ const url2 = dashboardUrl(apiBase);
95535
+ let opened = false;
95536
+ if (status.linked && !parsed.has("--no-browser") && (dependencies.interactive ?? Boolean(process.stdout.isTTY)) && activeAgentMarker(getEnvironment(dependencies)) === void 0) {
95537
+ opened = (dependencies.openUrl ?? openInBrowser)(url2);
95538
+ }
95539
+ io.stdout(json2 ? JSON.stringify({ account: target.name, url: url2, ...status, opened }) : url2);
95540
+ }
95541
+ function shellQuote(value) {
95542
+ return /^[a-zA-Z0-9_./-]+$/u.test(value) ? value : `'${value.replace(/'/gu, "'\\''")}'`;
95543
+ }
95544
+
95460
95545
  // ../cli/src/status.ts
95461
95546
  import { stat as stat13 } from "node:fs/promises";
95462
95547
  import { homedir as homedir2 } from "node:os";
@@ -97842,10 +97927,10 @@ function apiEndpoint2(apiBase, path) {
97842
97927
  }
97843
97928
  async function sleepFor2(milliseconds, signal) {
97844
97929
  if (signal?.aborted === true) throw signal.reason;
97845
- await new Promise((resolve2, reject) => {
97930
+ await new Promise((resolve3, reject) => {
97846
97931
  const finish = () => {
97847
97932
  signal?.removeEventListener("abort", abort);
97848
- resolve2();
97933
+ resolve3();
97849
97934
  };
97850
97935
  const timeout = setTimeout(finish, milliseconds);
97851
97936
  const abort = () => {
@@ -98180,7 +98265,7 @@ async function readProcessStdin() {
98180
98265
  }
98181
98266
 
98182
98267
  // ../cli/src/version.ts
98183
- var CLI_VERSION = "0.9.4";
98268
+ var CLI_VERSION = "0.9.5";
98184
98269
 
98185
98270
  // ../cli/src/status.ts
98186
98271
  async function statusCommand(argv, json2, io, dependencies) {
@@ -98324,10 +98409,10 @@ async function runStatusSweep(args) {
98324
98409
  timeoutMs,
98325
98410
  ...args.warn === void 0 ? {} : { warn: args.warn }
98326
98411
  }),
98327
- new Promise((resolve2) => {
98412
+ new Promise((resolve3) => {
98328
98413
  timeout = setTimeout(() => {
98329
98414
  controller.abort();
98330
- resolve2();
98415
+ resolve3();
98331
98416
  }, timeoutMs);
98332
98417
  timeout.unref();
98333
98418
  })
@@ -98556,7 +98641,7 @@ async function siblingsFetchImpl(dependencies) {
98556
98641
  function shortAddress3(address4) {
98557
98642
  return address4.length <= 12 ? address4 : `${address4.slice(0, 6)}\u2026${address4.slice(-4)}`;
98558
98643
  }
98559
- async function accountsAddCommand(argv, json2, io, dependencies) {
98644
+ async function accountsAddCommand(argv, json2, io, dependencies, options = { link: "always" }) {
98560
98645
  const parsed = parseArguments(argv, {
98561
98646
  valueOptions: /* @__PURE__ */ new Set(["--label"]),
98562
98647
  booleanOptions: /* @__PURE__ */ new Set(["--no-link"]),
@@ -98573,6 +98658,18 @@ async function accountsAddCommand(argv, json2, io, dependencies) {
98573
98658
  });
98574
98659
  await recordAudit(dependencies, "wallet.create", { wallet: created.account });
98575
98660
  const address4 = created.address;
98661
+ if (options.link === "offer") {
98662
+ if (!json2) io.stdout(`Account ${created.account} derived: ${address4}`);
98663
+ const link3 = await offerDashboardLink({
98664
+ name: created.account,
98665
+ json: json2,
98666
+ noLink: parsed.has("--no-link"),
98667
+ io,
98668
+ dependencies
98669
+ });
98670
+ if (json2) io.stdout(JSON.stringify({ account: created.account, address: address4, ...link3 }));
98671
+ return;
98672
+ }
98576
98673
  if (parsed.has("--no-link")) {
98577
98674
  output2(
98578
98675
  io,
@@ -99388,10 +99485,10 @@ async function autoUploadBackup(io, json2, dependencies) {
99388
99485
  const timeoutMs = dependencies.cloudBackup?.uploadTimeoutMs ?? DEFAULT_UPLOAD_TIMEOUT_MS;
99389
99486
  const controller = new AbortController();
99390
99487
  let timer;
99391
- const timeout = new Promise((resolve2) => {
99488
+ const timeout = new Promise((resolve3) => {
99392
99489
  timer = setTimeout(() => {
99393
99490
  controller.abort();
99394
- resolve2({ status: "skipped", reason: "timeout" });
99491
+ resolve3({ status: "skipped", reason: "timeout" });
99395
99492
  }, timeoutMs);
99396
99493
  timer.unref();
99397
99494
  });
@@ -100615,7 +100712,7 @@ var HTTP_NOT_FOUND_PATTERN = /\b404\b/u;
100615
100712
  var OTHER_SCOPE_PATTERN = /\b(?:project|environment|service|workspace|team|token|user|account|volume|deployment|command|file|directory|module|package)s?\b/iu;
100616
100713
  var SIDECAR_SUFFIX = ".railway.json";
100617
100714
  var MINIMUM_SECRET_LENGTH = 8;
100618
- var defaultRailwayExec = (file2, args) => new Promise((resolve2, reject) => {
100715
+ var defaultRailwayExec = (file2, args) => new Promise((resolve3, reject) => {
100619
100716
  const child = spawn2(file2, [...args], {
100620
100717
  stdio: ["ignore", "pipe", "pipe"],
100621
100718
  env: process.env,
@@ -100630,7 +100727,7 @@ var defaultRailwayExec = (file2, args) => new Promise((resolve2, reject) => {
100630
100727
  stderr2 += chunk;
100631
100728
  });
100632
100729
  child.once("error", reject);
100633
- child.once("close", (code) => resolve2({ code, stdout, stderr: stderr2 }));
100730
+ child.once("close", (code) => resolve3({ code, stdout, stderr: stderr2 }));
100634
100731
  });
100635
100732
  function parseSandboxId(stdout) {
100636
100733
  const trimmed = stdout.trim();
@@ -100763,8 +100860,8 @@ function createRailwayRuntime(options) {
100763
100860
  const readyAttempts = options.readyAttempts ?? DEFAULT_RAILWAY_READY_ATTEMPTS;
100764
100861
  const readyIntervalMs = options.readyIntervalMs ?? DEFAULT_RAILWAY_READY_INTERVAL_MS;
100765
100862
  const signalDestroyTimeoutMs = options.signalDestroyTimeoutMs ?? DEFAULT_RAILWAY_SIGNAL_DESTROY_TIMEOUT_MS;
100766
- const sleep = options.sleep ?? ((milliseconds) => new Promise((resolve2) => {
100767
- setTimeout(resolve2, milliseconds);
100863
+ const sleep = options.sleep ?? ((milliseconds) => new Promise((resolve3) => {
100864
+ setTimeout(resolve3, milliseconds);
100768
100865
  }));
100769
100866
  let secrets = options.secrets;
100770
100867
  const getSecrets = () => secrets ??= secretStore();
@@ -102617,7 +102714,7 @@ function usd(value, minimumDecimals = 0) {
102617
102714
  import { mkdir as mkdir20, readFile as readFile27, writeFile as writeFile11 } from "node:fs/promises";
102618
102715
  import { homedir as systemHomedir } from "node:os";
102619
102716
  import { dirname as dirname14, posix, win32 as win322 } from "node:path";
102620
- var MCP_INSTALL_USAGE = "Usage: vapi mcp install <claude|cursor|codex> [--home <dir>] [--registry <url>] [--json]";
102717
+ var MCP_INSTALL_USAGE = "Usage: vapi mcp install <claude|cursor|codex> [--home <dir>] [--registry <url>] [--no-link] [--json]";
102621
102718
  var APPS = /* @__PURE__ */ new Set(["claude", "cursor", "codex"]);
102622
102719
  var NEXT_STEP = {
102623
102720
  claude: 'Restart Claude Desktop, then ask it: "Search vAPI for a weather API."',
@@ -102658,6 +102755,7 @@ function mcpInstallTarget(app, context) {
102658
102755
  async function mcpInstallCommand(argv, json2, io, dependencies) {
102659
102756
  const parsed = parseArguments(argv, {
102660
102757
  valueOptions: /* @__PURE__ */ new Set(["--home", "--registry"]),
102758
+ booleanOptions: /* @__PURE__ */ new Set(["--no-link"]),
102661
102759
  maximumPositionals: 1
102662
102760
  });
102663
102761
  const appValue = parsed.positionals[0];
@@ -102679,13 +102777,39 @@ ${MCP_INSTALL_USAGE}`
102679
102777
  });
102680
102778
  const entry = serverEntry(home, registry2);
102681
102779
  const created = await writeMcpConfig(target, entry);
102780
+ const name = await unlinkedDefaultAccount(home, dependencies);
102781
+ const offerLink = (name2) => offerDashboardLink({
102782
+ name: name2,
102783
+ json: json2,
102784
+ noLink: parsed.has("--no-link"),
102785
+ io,
102786
+ dependencies,
102787
+ home,
102788
+ apiBase: parsed.one("--registry")
102789
+ });
102790
+ const link3 = json2 && name !== void 0 ? await offerLink(name) : {};
102682
102791
  output3(
102683
102792
  io,
102684
102793
  json2,
102685
- { command: "mcp install", app: appValue, path: target.path, created, home, registry: registry2 },
102794
+ { ...link3, command: "mcp install", app: appValue, path: target.path, created, home, registry: registry2 },
102686
102795
  `${created ? "Wrote" : "Updated"} ${target.path}.`
102687
102796
  );
102688
- if (!json2) io.stdout(NEXT_STEP[appValue]);
102797
+ if (!json2) {
102798
+ io.stdout(NEXT_STEP[appValue]);
102799
+ if (name !== void 0) await offerLink(name);
102800
+ }
102801
+ }
102802
+ async function unlinkedDefaultAccount(home, dependencies) {
102803
+ try {
102804
+ const store = await WalletStore.open(home, {
102805
+ secrets: getSecretStore(dependencies),
102806
+ env: getEnvironment(dependencies)
102807
+ });
102808
+ const name = store.defaultName;
102809
+ if (name !== void 0 && store.resolve({ name }).entry.link === void 0) return name;
102810
+ } catch {
102811
+ }
102812
+ return void 0;
102689
102813
  }
102690
102814
  function isMcpInstallApp(value) {
102691
102815
  return APPS.has(value);
@@ -103355,7 +103479,7 @@ async function taskContext(parsed, io, dependencies, publicOnly = false) {
103355
103479
  pending,
103356
103480
  randomUUID: dependencies.tasks?.randomUUID ?? randomUUID6,
103357
103481
  signInHint: "Run vapi login for the acting wallet.",
103358
- sleep: dependencies.tasks?.sleep ?? ((milliseconds) => new Promise((resolve2) => setTimeout(resolve2, milliseconds)))
103482
+ sleep: dependencies.tasks?.sleep ?? ((milliseconds) => new Promise((resolve3) => setTimeout(resolve3, milliseconds)))
103359
103483
  };
103360
103484
  }
103361
103485
  async function taskRequest2(verb, route, operation) {
@@ -105155,11 +105279,11 @@ ${usage}`);
105155
105279
  }
105156
105280
  }
105157
105281
  async function referencedSleep(milliseconds, signal) {
105158
- await new Promise((resolve2) => {
105282
+ await new Promise((resolve3) => {
105159
105283
  const finish = () => {
105160
105284
  clearTimeout(timer);
105161
105285
  signal?.removeEventListener("abort", finish);
105162
- resolve2();
105286
+ resolve3();
105163
105287
  };
105164
105288
  const timer = setTimeout(finish, milliseconds);
105165
105289
  if (signal === void 0) return;
@@ -105387,7 +105511,7 @@ var HELP_HEADING = "vAPI Network";
105387
105511
  var HELP = `${HELP_HEADING}
105388
105512
 
105389
105513
  Usage:
105390
- vapi init [--networks <base,arc>] [--json]
105514
+ vapi init [--networks <base,arc>] [--no-link] [--json]
105391
105515
  vapi setup [--no-cloud-backup] [--accounts <n>] [--json]
105392
105516
  vapi accounts [--all] [--json]
105393
105517
  vapi accounts add <name> [--label <text>] [--no-link] [--json]
@@ -105434,6 +105558,7 @@ Usage:
105434
105558
  vapi agent pause <name> [--json]
105435
105559
  vapi agent resume <name> [--json]
105436
105560
  vapi agent revoke <name> [--json]
105561
+ vapi dashboard [--account <name>] [--no-browser] [--json]
105437
105562
  vapi login [--account <name>] [--label <name>] [--publish] [--no-browser] [--json]
105438
105563
  vapi logout [--account <name>] [--json]
105439
105564
  vapi whoami [--account <name>] [--json]
@@ -105484,11 +105609,13 @@ Usage:
105484
105609
  vapi publish list [--json]
105485
105610
  vapi claim <origin> [--account <name>] [--json]
105486
105611
  vapi mcp [--account <name>] [--json]
105487
- vapi mcp install <claude|cursor|codex> [--home <dir>] [--registry <url>] [--json]
105612
+ vapi mcp install <claude|cursor|codex> [--home <dir>] [--registry <url>] [--no-link] [--json]
105488
105613
  vapi serve [--json]
105489
105614
  vapi version [--json]
105490
105615
  vapi help [--json]
105491
105616
 
105617
+ \`vapi init\`, \`vapi wallet create\` and \`vapi mcp install\` offer to link the wallet to your vAPI dashboard. Use \`--no-link\` to skip the prompt.
105618
+
105492
105619
  Every command that touches a wallet takes \`--account <name>\`, falls back to \`VAPI_WALLET\`, then to the default account set by \`vapi accounts use\`, and names the wallet it used on its first line.
105493
105620
 
105494
105621
  \`vapi search\` answers with vAPI-verified listings plus the mirrored external catalogs. \`--include-unverified\` also returns self-listed APIs that passed vAPI's automated x402 probe but were never reviewed; every result is tagged \`[verified]\`, \`[requested]\`, \`[unverified]\` or \`[external]\`.
@@ -105553,8 +105680,8 @@ var ACCOUNT_OPTION2 = "--account";
105553
105680
  var WALLET_OPTION_DEPRECATION = "--wallet is now --account; --wallet keeps working for one release.";
105554
105681
  var SOLANA_VAULT_UNAVAILABLE2 = "Solana keys are not part of the device vault yet.";
105555
105682
  var INCLUDE_UNVERIFIED_OPTION = "--include-unverified";
105556
- async function openWalletStore(dependencies) {
105557
- return await WalletStore.open(getVapiPaths().directory, {
105683
+ async function openWalletStore(dependencies, home = getVapiPaths().directory) {
105684
+ return await WalletStore.open(home, {
105558
105685
  secrets: getSecretStore(dependencies),
105559
105686
  env: getEnvironment(dependencies),
105560
105687
  ...dependencies.now === void 0 ? {} : { now: dependencies.now }
@@ -105569,8 +105696,8 @@ async function selectWallet(store, parsed, dependencies) {
105569
105696
  const address4 = await store.readAddress(resolved.name);
105570
105697
  return { store, ...resolved, ...address4 === void 0 ? {} : { address: address4 } };
105571
105698
  }
105572
- async function targetWallet(parsed, dependencies) {
105573
- return await selectWallet(await openWalletStore(dependencies), parsed, dependencies);
105699
+ async function targetWallet(parsed, dependencies, home = getVapiPaths().directory) {
105700
+ return await selectWallet(await openWalletStore(dependencies, home), parsed, dependencies);
105574
105701
  }
105575
105702
  function getSecretStore(dependencies) {
105576
105703
  return dependencies.secretStore ?? secretStore();
@@ -105749,6 +105876,10 @@ async function runCli(argv = process.argv.slice(2), io = processIo, dependencies
105749
105876
  case "agent":
105750
105877
  exitCode = await agentCommand(args.slice(1), json2, runIo, dependencies);
105751
105878
  break;
105879
+ case "dashboard":
105880
+ await dashboardCommand(args.slice(1), json2, io, dependencies);
105881
+ exitCode = 0;
105882
+ break;
105752
105883
  case "login":
105753
105884
  await loginCommand(args.slice(1), json2, io, dependencies);
105754
105885
  exitCode = 0;
@@ -105963,6 +106094,7 @@ function shouldAutoUploadAfterFailure(args) {
105963
106094
  async function initCommand(argv, json2, io, dependencies) {
105964
106095
  const parsed = parseArguments(argv, {
105965
106096
  valueOptions: /* @__PURE__ */ new Set(["--networks"]),
106097
+ booleanOptions: /* @__PURE__ */ new Set(["--no-link"]),
105966
106098
  maximumPositionals: 0
105967
106099
  });
105968
106100
  const networks = parseInitNetworks(parsed.one("--networks") ?? "base");
@@ -106010,7 +106142,14 @@ async function initCommand(argv, json2, io, dependencies) {
106010
106142
  nextSteps: buildNextSteps(account.address)
106011
106143
  };
106012
106144
  if (json2) {
106013
- io.stdout(JSON.stringify(result));
106145
+ const link3 = await offerDashboardLink({
106146
+ name: created.name,
106147
+ json: json2,
106148
+ noLink: parsed.has("--no-link"),
106149
+ io,
106150
+ dependencies
106151
+ });
106152
+ io.stdout(JSON.stringify({ ...result, ...link3 }));
106014
106153
  return;
106015
106154
  }
106016
106155
  if (configRewrites.length > 0) io.stdout(formatLegacyRegistryRewrites(configRewrites));
@@ -106031,6 +106170,13 @@ async function initCommand(argv, json2, io, dependencies) {
106031
106170
  io.stdout(formatAccounts(accounts));
106032
106171
  io.stdout("");
106033
106172
  io.stdout(result.nextSteps.join("\n"));
106173
+ await offerDashboardLink({
106174
+ name: created.name,
106175
+ json: json2,
106176
+ noLink: parsed.has("--no-link"),
106177
+ io,
106178
+ dependencies
106179
+ });
106034
106180
  }
106035
106181
  var INIT_ALREADY_DONE = "This machine already has a wallet, so vapi init created nothing.";
106036
106182
  async function reportExistingWallets(store, json2, io, dependencies) {
@@ -106066,12 +106212,11 @@ async function walletCommand(argv, json2, io, dependencies) {
106066
106212
  `Unknown wallet subcommand ${JSON.stringify(subcommand)}. ${WALLET_USAGE}`
106067
106213
  );
106068
106214
  }
106069
- await accountsCommand(
106070
- [mapped2, ...rest, ...subcommand === "create" ? ["--no-link"] : []],
106071
- json2,
106072
- io,
106073
- dependencies
106074
- );
106215
+ if (subcommand === "create") {
106216
+ await accountsAddCommand(rest, json2, io, dependencies, { link: "offer" });
106217
+ return;
106218
+ }
106219
+ await accountsCommand([mapped2, ...rest], json2, io, dependencies);
106075
106220
  }
106076
106221
  async function unlockedWallets(walletsStore, wallets, dependencies) {
106077
106222
  const secrets = getSecretStore(dependencies);
@@ -106613,8 +106758,8 @@ async function fetchNetworkStats(dependencies) {
106613
106758
  })();
106614
106759
  let timeout;
106615
106760
  try {
106616
- const timedOut = new Promise((resolve2) => {
106617
- timeout = setTimeout(() => resolve2(null), NETWORK_STATS_REQUEST_TIMEOUT_MS);
106761
+ const timedOut = new Promise((resolve3) => {
106762
+ timeout = setTimeout(() => resolve3(null), NETWORK_STATS_REQUEST_TIMEOUT_MS);
106618
106763
  });
106619
106764
  return await Promise.race([request, timedOut]);
106620
106765
  } finally {
@@ -108295,10 +108440,10 @@ async function checkForUpdate(options = {}) {
108295
108440
  try {
108296
108441
  return await Promise.race([
108297
108442
  latestNotice(options, env, controller.signal),
108298
- new Promise((resolve2) => {
108443
+ new Promise((resolve3) => {
108299
108444
  timer = setTimeout(() => {
108300
108445
  controller.abort();
108301
- resolve2(void 0);
108446
+ resolve3(void 0);
108302
108447
  }, CHECK_TIMEOUT_MS);
108303
108448
  })
108304
108449
  ]);