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/index.js CHANGED
@@ -9441,13 +9441,13 @@ var init_getCallError = __esm({
9441
9441
 
9442
9442
  // ../../node_modules/.pnpm/viem@2.56.1_typescript@6.0.3_zod@4.5.4/node_modules/viem/_esm/utils/promise/withResolvers.js
9443
9443
  function withResolvers() {
9444
- let resolve3 = () => void 0;
9444
+ let resolve4 = () => void 0;
9445
9445
  let reject = () => void 0;
9446
9446
  const promise2 = new Promise((resolve_, reject_) => {
9447
- resolve3 = resolve_;
9447
+ resolve4 = resolve_;
9448
9448
  reject = reject_;
9449
9449
  });
9450
- return { promise: promise2, resolve: resolve3, reject };
9450
+ return { promise: promise2, resolve: resolve4, reject };
9451
9451
  }
9452
9452
  var init_withResolvers = __esm({
9453
9453
  "../../node_modules/.pnpm/viem@2.56.1_typescript@6.0.3_zod@4.5.4/node_modules/viem/_esm/utils/promise/withResolvers.js"() {
@@ -9466,8 +9466,8 @@ function createBatchScheduler({ fn, id: id2, shouldSplitBatch, wait: wait2 = 0,
9466
9466
  if (sort && Array.isArray(data))
9467
9467
  data.sort(sort);
9468
9468
  for (let i = 0; i < scheduler.length; i++) {
9469
- const { resolve: resolve3 } = scheduler[i];
9470
- resolve3?.([data[i], data]);
9469
+ const { resolve: resolve4 } = scheduler[i];
9470
+ resolve4?.([data[i], data]);
9471
9471
  }
9472
9472
  }).catch((err) => {
9473
9473
  for (let i = 0; i < scheduler.length; i++) {
@@ -9483,16 +9483,16 @@ function createBatchScheduler({ fn, id: id2, shouldSplitBatch, wait: wait2 = 0,
9483
9483
  return {
9484
9484
  flush,
9485
9485
  async schedule(args) {
9486
- const { promise: promise2, resolve: resolve3, reject } = withResolvers();
9486
+ const { promise: promise2, resolve: resolve4, reject } = withResolvers();
9487
9487
  const split2 = shouldSplitBatch?.([...getBatchedArgs(), args]);
9488
9488
  if (split2)
9489
9489
  exec();
9490
9490
  const hasActiveScheduler = getScheduler().length > 0;
9491
9491
  if (hasActiveScheduler) {
9492
- setScheduler({ args, resolve: resolve3, reject });
9492
+ setScheduler({ args, resolve: resolve4, reject });
9493
9493
  return promise2;
9494
9494
  }
9495
- setScheduler({ args, resolve: resolve3, reject });
9495
+ setScheduler({ args, resolve: resolve4, reject });
9496
9496
  setTimeout(exec, wait2);
9497
9497
  return promise2;
9498
9498
  }
@@ -31135,7 +31135,7 @@ function observe(observerId, callbacks, fn) {
31135
31135
  // ../../node_modules/.pnpm/viem@2.56.1_typescript@6.0.3_zod@4.5.4/node_modules/viem/_esm/utils/wait.js
31136
31136
  init_utils3();
31137
31137
  async function wait(time3, { signal } = {}) {
31138
- return new Promise((resolve3, reject) => {
31138
+ return new Promise((resolve4, reject) => {
31139
31139
  if (signal?.aborted) {
31140
31140
  reject(getAbortError(signal));
31141
31141
  return;
@@ -31143,7 +31143,7 @@ async function wait(time3, { signal } = {}) {
31143
31143
  const cleanup = () => signal?.removeEventListener("abort", onAbort);
31144
31144
  const timeout = setTimeout(() => {
31145
31145
  cleanup();
31146
- resolve3();
31146
+ resolve4();
31147
31147
  }, time3);
31148
31148
  const onAbort = () => {
31149
31149
  clearTimeout(timeout);
@@ -31719,7 +31719,7 @@ init_withResolvers();
31719
31719
  // ../../node_modules/.pnpm/viem@2.56.1_typescript@6.0.3_zod@4.5.4/node_modules/viem/_esm/utils/promise/withRetry.js
31720
31720
  init_utils3();
31721
31721
  function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry: shouldRetry2 = () => true, signal } = {}) {
31722
- return new Promise((resolve3, reject) => {
31722
+ return new Promise((resolve4, reject) => {
31723
31723
  const attemptRetry = async ({ count = 0 } = {}) => {
31724
31724
  if (signal?.aborted) {
31725
31725
  reject(getAbortError(signal));
@@ -31739,7 +31739,7 @@ function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry: shoul
31739
31739
  };
31740
31740
  try {
31741
31741
  const data = await fn();
31742
- resolve3(data);
31742
+ resolve4(data);
31743
31743
  } catch (err) {
31744
31744
  if (signal?.aborted) {
31745
31745
  reject(getAbortError(signal));
@@ -31890,7 +31890,7 @@ async function sendCalls(client, parameters) {
31890
31890
  results.push({ reason, status: "rejected" });
31891
31891
  }
31892
31892
  if (experimental_fallbackDelay > 0)
31893
- await new Promise((resolve3) => setTimeout(resolve3, experimental_fallbackDelay));
31893
+ await new Promise((resolve4) => setTimeout(resolve4, experimental_fallbackDelay));
31894
31894
  }
31895
31895
  if (results.every((r) => r.status === "rejected"))
31896
31896
  throw results[0].reason;
@@ -31993,9 +31993,9 @@ async function waitForCallsStatus(client, parameters) {
31993
31993
  throwOnFailure = false
31994
31994
  } = parameters;
31995
31995
  const observerId = stringify(["waitForCallsStatus", client.uid, id2]);
31996
- const { promise: promise2, resolve: resolve3, reject } = withResolvers();
31996
+ const { promise: promise2, resolve: resolve4, reject } = withResolvers();
31997
31997
  let timer;
31998
- const unobserve = observe(observerId, { resolve: resolve3, reject }, (emit) => {
31998
+ const unobserve = observe(observerId, { resolve: resolve4, reject }, (emit) => {
31999
31999
  const unpoll = poll(async () => {
32000
32000
  const done = (fn) => {
32001
32001
  clearTimeout(timer);
@@ -32377,13 +32377,13 @@ async function isImageUri(uri) {
32377
32377
  }
32378
32378
  if (!Object.hasOwn(globalThis, "Image"))
32379
32379
  return false;
32380
- return new Promise((resolve3) => {
32380
+ return new Promise((resolve4) => {
32381
32381
  const img = new Image();
32382
32382
  img.onload = () => {
32383
- resolve3(true);
32383
+ resolve4(true);
32384
32384
  };
32385
32385
  img.onerror = () => {
32386
- resolve3(false);
32386
+ resolve4(false);
32387
32387
  };
32388
32388
  img.src = uri;
32389
32389
  });
@@ -33846,7 +33846,7 @@ init_utils3();
33846
33846
  // ../../node_modules/.pnpm/viem@2.56.1_typescript@6.0.3_zod@4.5.4/node_modules/viem/_esm/utils/promise/withTimeout.js
33847
33847
  init_utils3();
33848
33848
  function withTimeout(fn, { errorInstance = new Error("timed out"), timeout, signal }) {
33849
- return new Promise((resolve3, reject) => {
33849
+ return new Promise((resolve4, reject) => {
33850
33850
  ;
33851
33851
  (async () => {
33852
33852
  let timeoutId;
@@ -33861,7 +33861,7 @@ function withTimeout(fn, { errorInstance = new Error("timed out"), timeout, sign
33861
33861
  }
33862
33862
  }, timeout);
33863
33863
  }
33864
- resolve3(await fn({ signal: controller?.signal || null }));
33864
+ resolve4(await fn({ signal: controller?.signal || null }));
33865
33865
  } catch (err) {
33866
33866
  if (controller?.signal.aborted && isAbortError(err)) {
33867
33867
  reject(errorInstance);
@@ -37841,13 +37841,13 @@ async function waitForTransactionReceipt(client, parameters) {
37841
37841
  let retrying = false;
37842
37842
  let _unobserve;
37843
37843
  let _unwatch;
37844
- const { promise: promise2, resolve: resolve3, reject } = withResolvers();
37844
+ const { promise: promise2, resolve: resolve4, reject } = withResolvers();
37845
37845
  const timer = timeout ? setTimeout(() => {
37846
37846
  _unwatch?.();
37847
37847
  _unobserve?.();
37848
37848
  reject(new WaitForTransactionReceiptTimeoutError({ hash: hash5 }));
37849
37849
  }, timeout) : void 0;
37850
- _unobserve = observe(observerId, { onReplaced, resolve: resolve3, reject }, async (emit) => {
37850
+ _unobserve = observe(observerId, { onReplaced, resolve: resolve4, reject }, async (emit) => {
37851
37851
  receipt = await getAction(client, getTransactionReceipt, "getTransactionReceipt")({ hash: hash5 }).catch(() => void 0);
37852
37852
  if (receipt && confirmations <= 1) {
37853
37853
  clearTimeout(timer);
@@ -43806,7 +43806,7 @@ function getRpcTransportWithRequestCoalescing(transport, getDeduplicationKey) {
43806
43806
  coalescedRequest.numConsumers++;
43807
43807
  if (signal) {
43808
43808
  const responsePromise = coalescedRequest.responsePromise;
43809
- return await new Promise((resolve3, reject) => {
43809
+ return await new Promise((resolve4, reject) => {
43810
43810
  const handleAbort = (e22) => {
43811
43811
  signal.removeEventListener("abort", handleAbort);
43812
43812
  coalescedRequest.numConsumers -= 1;
@@ -43819,7 +43819,7 @@ function getRpcTransportWithRequestCoalescing(transport, getDeduplicationKey) {
43819
43819
  reject(e22.target.reason);
43820
43820
  };
43821
43821
  signal.addEventListener("abort", handleAbort);
43822
- responsePromise.then(resolve3).catch(reject).finally(() => {
43822
+ responsePromise.then(resolve4).catch(reject).finally(() => {
43823
43823
  signal.removeEventListener("abort", handleAbort);
43824
43824
  });
43825
43825
  });
@@ -45202,7 +45202,7 @@ function createPublicFetch(options) {
45202
45202
  });
45203
45203
  const normalized = new Request(input2, init);
45204
45204
  const bytes = normalized.body ? Buffer.from(await normalized.arrayBuffer()) : null;
45205
- return await new Promise((resolve3, reject) => {
45205
+ return await new Promise((resolve4, reject) => {
45206
45206
  const requestOptions2 = {
45207
45207
  method: normalized.method,
45208
45208
  headers: Object.fromEntries(normalized.headers),
@@ -45227,7 +45227,7 @@ function createPublicFetch(options) {
45227
45227
  { status, statusText: incoming.statusMessage, headers }
45228
45228
  );
45229
45229
  Object.defineProperty(response, "url", { value: url2.toString() });
45230
- resolve3(response);
45230
+ resolve4(response);
45231
45231
  } catch (error61) {
45232
45232
  incoming.destroy();
45233
45233
  reject(error61);
@@ -45996,8 +45996,8 @@ var svmFetchQueue = Promise.resolve();
45996
45996
  async function withGuardedSvmFetch(fetchImpl, operation) {
45997
45997
  const previous = svmFetchQueue;
45998
45998
  let release2;
45999
- svmFetchQueue = new Promise((resolve3) => {
46000
- release2 = resolve3;
45999
+ svmFetchQueue = new Promise((resolve4) => {
46000
+ release2 = resolve4;
46001
46001
  });
46002
46002
  await previous;
46003
46003
  const originalFetch = globalThis.fetch;
@@ -47226,7 +47226,7 @@ async function withFileLock(lockPath, fn, options = {}) {
47226
47226
  if (Date.now() >= deadline) {
47227
47227
  throw new FileLockedError(options.lockedMessage);
47228
47228
  }
47229
- await new Promise((resolve3) => setTimeout(resolve3, LOCK_RETRY_MS));
47229
+ await new Promise((resolve4) => setTimeout(resolve4, LOCK_RETRY_MS));
47230
47230
  continue;
47231
47231
  }
47232
47232
  handle = candidate;
@@ -47241,7 +47241,7 @@ async function withFileLock(lockPath, fn, options = {}) {
47241
47241
  if (Date.now() >= deadline) {
47242
47242
  throw new FileLockedError(options.lockedMessage);
47243
47243
  }
47244
- await new Promise((resolve3) => setTimeout(resolve3, LOCK_RETRY_MS));
47244
+ await new Promise((resolve4) => setTimeout(resolve4, LOCK_RETRY_MS));
47245
47245
  }
47246
47246
  }
47247
47247
  const ownedHandle = handle;
@@ -47362,7 +47362,7 @@ async function restoreRenamedLock(path, tombPath) {
47362
47362
  } catch (error61) {
47363
47363
  if (hasCode(error61, "ENOENT")) return;
47364
47364
  if (!hasCode(error61, "EEXIST")) throw error61;
47365
- await new Promise((resolve3) => setTimeout(resolve3, LOCK_RETRY_MS));
47365
+ await new Promise((resolve4) => setTimeout(resolve4, LOCK_RETRY_MS));
47366
47366
  }
47367
47367
  }
47368
47368
  }
@@ -48428,7 +48428,7 @@ async function withAgentCredentialLock(wallets, clientId, operation) {
48428
48428
  if (Date.now() >= deadline) {
48429
48429
  throw httpError("Timed out waiting to update the agent credentials.");
48430
48430
  }
48431
- await new Promise((resolve3) => setTimeout(resolve3, 20));
48431
+ await new Promise((resolve4) => setTimeout(resolve4, 20));
48432
48432
  }
48433
48433
  }
48434
48434
  try {
@@ -48581,7 +48581,7 @@ function splitScopes(scope) {
48581
48581
  return scope.split(/\s+/u).filter(Boolean);
48582
48582
  }
48583
48583
  async function sleepFor(milliseconds) {
48584
- await new Promise((resolve3) => setTimeout(resolve3, milliseconds));
48584
+ await new Promise((resolve4) => setTimeout(resolve4, milliseconds));
48585
48585
  }
48586
48586
 
48587
48587
  // ../core/src/keystore.ts
@@ -70062,7 +70062,7 @@ function decryptWithKey(key2, sealed) {
70062
70062
  return Buffer.concat([decipher.update(sealed.ciphertext), decipher.final()]);
70063
70063
  }
70064
70064
  async function deriveScryptKey(passphrase, salt) {
70065
- return await new Promise((resolve3, reject) => {
70065
+ return await new Promise((resolve4, reject) => {
70066
70066
  scrypt(
70067
70067
  passphrase,
70068
70068
  salt,
@@ -70078,7 +70078,7 @@ async function deriveScryptKey(passphrase, salt) {
70078
70078
  reject(error61);
70079
70079
  return;
70080
70080
  }
70081
- resolve3(derivedKey);
70081
+ resolve4(derivedKey);
70082
70082
  }
70083
70083
  );
70084
70084
  });
@@ -70498,7 +70498,7 @@ async function promptForSecret(prompt, noTerminalHint) {
70498
70498
  stdin.setRawMode(true);
70499
70499
  stdin.resume();
70500
70500
  stdin.setEncoding("utf8");
70501
- return await new Promise((resolve3, reject) => {
70501
+ return await new Promise((resolve4, reject) => {
70502
70502
  let value = "";
70503
70503
  const cleanup = () => {
70504
70504
  stdin.off("data", onData);
@@ -70515,7 +70515,7 @@ async function promptForSecret(prompt, noTerminalHint) {
70515
70515
  }
70516
70516
  if (character === "\r" || character === "\n") {
70517
70517
  cleanup();
70518
- resolve3(value);
70518
+ resolve4(value);
70519
70519
  return;
70520
70520
  }
70521
70521
  if (character === "\x7F" || character === "\b") {
@@ -70577,7 +70577,7 @@ async function withAccountMovementLock(home, account, timeoutMs, operation, sign
70577
70577
  if (!(error61 instanceof Error && "code" in error61 && error61.code === "EEXIST")) throw error61;
70578
70578
  await removeStaleLock2(path);
70579
70579
  if (Date.now() >= deadline) throw new AccountMovementLockedError(account);
70580
- await new Promise((resolve3) => setTimeout(resolve3, 20));
70580
+ await new Promise((resolve4) => setTimeout(resolve4, 20));
70581
70581
  }
70582
70582
  }
70583
70583
  const ownedHandle = handle;
@@ -71048,14 +71048,14 @@ function requireSuccess(result, what) {
71048
71048
  function withoutTrailingNewline(value) {
71049
71049
  return value.replace(/\r?\n$/u, "");
71050
71050
  }
71051
- var spawnRunner = async (file2, args, input2) => await new Promise((resolve3) => {
71051
+ var spawnRunner = async (file2, args, input2) => await new Promise((resolve4) => {
71052
71052
  let stdout = "";
71053
71053
  let stderr2 = "";
71054
71054
  let settled = false;
71055
71055
  const finish = (outcome) => {
71056
71056
  if (settled) return;
71057
71057
  settled = true;
71058
- resolve3(outcome);
71058
+ resolve4(outcome);
71059
71059
  };
71060
71060
  const child = spawn(file2, [...args], {
71061
71061
  detached: true,
@@ -72021,7 +72021,7 @@ async function withVaultLock(path, operation) {
72021
72021
  if (Date.now() >= deadline) {
72022
72022
  throw new VaultError("corrupt", "Timed out waiting for the vault lock.");
72023
72023
  }
72024
- await new Promise((resolve3) => setTimeout(resolve3, 20));
72024
+ await new Promise((resolve4) => setTimeout(resolve4, 20));
72025
72025
  }
72026
72026
  }
72027
72027
  try {
@@ -73754,7 +73754,7 @@ async function withRegistryLock(path, operation) {
73754
73754
  if (Date.now() >= deadline) {
73755
73755
  throw new KeystoreError("Timed out waiting for the wallet registry lock.");
73756
73756
  }
73757
- await new Promise((resolve3) => setTimeout(resolve3, 20));
73757
+ await new Promise((resolve4) => setTimeout(resolve4, 20));
73758
73758
  }
73759
73759
  }
73760
73760
  try {
@@ -74100,11 +74100,11 @@ function publicErrorMessage(error61, fallback, sensitiveValues = []) {
74100
74100
  return error61 instanceof Error ? message : fallback;
74101
74101
  }
74102
74102
  async function unrefSleep(milliseconds, signal) {
74103
- await new Promise((resolve3) => {
74103
+ await new Promise((resolve4) => {
74104
74104
  const finish = () => {
74105
74105
  clearTimeout(timer);
74106
74106
  signal?.removeEventListener("abort", finish);
74107
- resolve3();
74107
+ resolve4();
74108
74108
  };
74109
74109
  const timer = setTimeout(finish, milliseconds);
74110
74110
  timer.unref();
@@ -74641,7 +74641,7 @@ async function withLedgerLock(path, operation) {
74641
74641
  if (Date.now() >= deadline) {
74642
74642
  throw new Error("Timed out waiting for the spend ledger lock.");
74643
74643
  }
74644
- await new Promise((resolve3) => setTimeout(resolve3, 20));
74644
+ await new Promise((resolve4) => setTimeout(resolve4, 20));
74645
74645
  }
74646
74646
  }
74647
74647
  try {
@@ -75275,7 +75275,7 @@ async function withTransferLock(context, nonce, operation) {
75275
75275
  if (Date.now() >= deadline) {
75276
75276
  throw new Error("Timed out waiting for the transfer lock.");
75277
75277
  }
75278
- await new Promise((resolve3) => setTimeout(resolve3, 20));
75278
+ await new Promise((resolve4) => setTimeout(resolve4, 20));
75279
75279
  }
75280
75280
  }
75281
75281
  try {
@@ -76993,8 +76993,8 @@ async function sweepAllAboveCeiling(args) {
76993
76993
  }
76994
76994
  var pendingCeilingSweeps = /* @__PURE__ */ new Set();
76995
76995
  function scheduleCeilingSweep(hook) {
76996
- const task = new Promise((resolve3) => {
76997
- setTimeout(resolve3, 0);
76996
+ const task = new Promise((resolve4) => {
76997
+ setTimeout(resolve4, 0);
76998
76998
  }).then(async () => {
76999
76999
  const timeoutMs = hook.timeoutMs ?? CEILING_SWEEP_TIMEOUT_MS;
77000
77000
  const controller = new AbortController();
@@ -77034,8 +77034,8 @@ async function drainCeilingSweeps(timeoutMs = CEILING_SWEEP_TIMEOUT_MS) {
77034
77034
  try {
77035
77035
  await Promise.race([
77036
77036
  Promise.allSettled(pending),
77037
- new Promise((resolve3) => {
77038
- timeout = setTimeout(resolve3, timeoutMs);
77037
+ new Promise((resolve4) => {
77038
+ timeout = setTimeout(resolve4, timeoutMs);
77039
77039
  })
77040
77040
  ]);
77041
77041
  } finally {
@@ -78134,7 +78134,7 @@ function createRunBudget(args) {
78134
78134
  import { mkdir as mkdir15, writeFile as writeFile8 } from "node:fs/promises";
78135
78135
  import { arch, platform, release } from "node:os";
78136
78136
  import { join as join13 } from "node:path";
78137
- var VAPI_CLIENT_VERSION = "0.9.4";
78137
+ var VAPI_CLIENT_VERSION = "0.9.5";
78138
78138
  async function createSupportReport(options) {
78139
78139
  const message = options.message.trim();
78140
78140
  if (!message) throw new Error("Support report message must not be empty.");
@@ -81840,7 +81840,7 @@ var authorizationTypes = {
81840
81840
  function createTasksChain(options) {
81841
81841
  const { account, client, pending, rpcFor } = options;
81842
81842
  const now = options.now ?? (() => /* @__PURE__ */ new Date());
81843
- const sleep = options.sleep ?? ((ms) => new Promise((resolve3) => setTimeout(resolve3, ms)));
81843
+ const sleep = options.sleep ?? ((ms) => new Promise((resolve4) => setTimeout(resolve4, ms)));
81844
81844
  const randomBytes17 = options.randomBytes ?? cryptoRandomBytes2;
81845
81845
  const confirmations = options.confirmations ?? 2;
81846
81846
  if (!Number.isSafeInteger(confirmations) || confirmations < 1)
@@ -82645,7 +82645,7 @@ async function waitForMilestone(client, input2) {
82645
82645
  throw new RangeError("The milestone wait timeout must be non-negative and finite.");
82646
82646
  if (!Number.isFinite(intervalMs) || intervalMs <= 0)
82647
82647
  throw new RangeError("The milestone wait interval must be positive and finite.");
82648
- const sleep = input2.sleep ?? ((ms) => new Promise((resolve3) => setTimeout(resolve3, ms)));
82648
+ const sleep = input2.sleep ?? ((ms) => new Promise((resolve4) => setTimeout(resolve4, ms)));
82649
82649
  const now = input2.now ?? (() => /* @__PURE__ */ new Date());
82650
82650
  const started = now().getTime();
82651
82651
  const deadline = started + timeoutMs;
@@ -87399,10 +87399,10 @@ async function buildStatus(deps) {
87399
87399
  const timers = deps.timers ?? { setTimeout, clearTimeout };
87400
87400
  const controller = new AbortController();
87401
87401
  let timeout;
87402
- const deadline = new Promise((resolve3) => {
87402
+ const deadline = new Promise((resolve4) => {
87403
87403
  timeout = timers.setTimeout(() => {
87404
87404
  controller.abort(new Error("Status request deadline exceeded."));
87405
- resolve3();
87405
+ resolve4();
87406
87406
  }, deps.timeoutMs ?? STATUS_TIMEOUT_MS);
87407
87407
  });
87408
87408
  try {
@@ -96115,6 +96115,9 @@ function rgbToAnsi256(red, green, blue) {
96115
96115
  import { readFile as readFile25, stat as stat14 } from "node:fs/promises";
96116
96116
  import { join as join21 } from "node:path";
96117
96117
 
96118
+ // ../cli/src/dashboard.ts
96119
+ import { resolve as resolve3 } from "node:path";
96120
+
96118
96121
  // ../cli/src/publish-client.ts
96119
96122
  var LISTING_CATEGORIES = ["ai", "data", "crypto", "compute", "search"];
96120
96123
  var PROBE_MODES = ["origin", "endpoint", "openapi"];
@@ -96435,7 +96438,8 @@ async function runLoginFlow(argv, json2, io, dependencies, options = {}) {
96435
96438
  booleanOptions: /* @__PURE__ */ new Set(["--publish", "--no-browser"]),
96436
96439
  maximumPositionals: 0
96437
96440
  });
96438
- const target = await targetWallet(parsed, dependencies);
96441
+ const paths = getVapiPaths(options.home);
96442
+ const target = await targetWallet(parsed, dependencies, paths.directory);
96439
96443
  const { account } = await unlockTarget(target, dependencies);
96440
96444
  const label = parsed.one("--label") ?? target.name;
96441
96445
  const scopes = [
@@ -96444,13 +96448,13 @@ async function runLoginFlow(argv, json2, io, dependencies, options = {}) {
96444
96448
  "tasks:write",
96445
96449
  ...parsed.has("--publish") ? ["call.publish"] : []
96446
96450
  ];
96447
- const config2 = await loadConfig(getVapiPaths().config, process.env, { notice: io.stderr });
96448
- const apiBase = registryBaseUrl(config2);
96451
+ const config2 = await loadConfig(paths.config, process.env, { notice: io.stderr });
96452
+ const apiBase = options.apiBase ?? registryBaseUrl(config2);
96449
96453
  const fetchImpl = dependencies.fetchImpl ?? createPublicFetch({ allowPrivateNetwork: false });
96450
96454
  const secrets = getSecretStore(dependencies);
96451
96455
  const device = await ensureDeviceName({
96452
96456
  env: getEnvironment(dependencies),
96453
- configPath: getVapiPaths().config,
96457
+ configPath: paths.config,
96454
96458
  ...dependencies.hostname === void 0 ? {} : { hostname: dependencies.hostname() }
96455
96459
  });
96456
96460
  const bearer = await trustedLinkBearer({
@@ -96704,6 +96708,87 @@ function shortAddress(address4) {
96704
96708
  return address4.length <= 12 ? address4 : `${address4.slice(0, 6)}\u2026${address4.slice(-4)}`;
96705
96709
  }
96706
96710
 
96711
+ // ../cli/src/dashboard.ts
96712
+ function dashboardUrl(apiBase) {
96713
+ return `${apiBase.replace(/\/+$/u, "")}/agents`;
96714
+ }
96715
+ async function offerDashboardLink({
96716
+ name,
96717
+ json: json2,
96718
+ noLink = false,
96719
+ io,
96720
+ dependencies,
96721
+ home = getVapiPaths().directory,
96722
+ apiBase
96723
+ }) {
96724
+ const otherHome = resolve3(home) !== resolve3(getVapiPaths().directory);
96725
+ const command = `${otherHome ? `VAPI_HOME=${shellQuote(home)} ` : ""}${apiBase === void 0 ? "" : `VAPI_REGISTRY_URL=${shellQuote(apiBase)} `}vapi login --account ${name}`;
96726
+ const unlinked = {
96727
+ linked: false,
96728
+ next: [{ kind: "link", account: name, command }]
96729
+ };
96730
+ const hint = () => {
96731
+ if (!json2) io.stdout(`Run \`${command}\` to see this wallet on your dashboard.`);
96732
+ return unlinked;
96733
+ };
96734
+ try {
96735
+ const store = await WalletStore.open(home, {
96736
+ secrets: getSecretStore(dependencies),
96737
+ env: getEnvironment(dependencies)
96738
+ });
96739
+ if (store.entry(name)?.link !== void 0) return { linked: true };
96740
+ if (noLink || json2 || !isInteractive(dependencies) || activeAgentMarker(getEnvironment(dependencies)) !== void 0) {
96741
+ return hint();
96742
+ }
96743
+ const answer = (await getLinePrompt(dependencies)(`Link ${name} to your vAPI dashboard? [Y/n] `)).trim();
96744
+ if (!/^(?:y|yes)?$/iu.test(answer)) return hint();
96745
+ await runLoginFlow(["--account", name, "--label", name], false, io, dependencies, {
96746
+ home,
96747
+ ...apiBase === void 0 ? {} : { apiBase }
96748
+ });
96749
+ await store.reload();
96750
+ const link3 = store.entry(name)?.link;
96751
+ if (link3 === void 0) return hint();
96752
+ io.stdout(`See it on your dashboard: ${dashboardUrl(link3.apiBase)}`);
96753
+ return { linked: true };
96754
+ } catch (error61) {
96755
+ if (!json2) {
96756
+ io.stderr(`Link not completed: ${error61 instanceof Error ? error61.message : String(error61)}`);
96757
+ }
96758
+ return hint();
96759
+ }
96760
+ }
96761
+ async function dashboardCommand(argv, json2, io, dependencies) {
96762
+ const parsed = parseArguments(argv, {
96763
+ valueOptions: /* @__PURE__ */ new Set(["--wallet"]),
96764
+ booleanOptions: /* @__PURE__ */ new Set(["--no-browser", "--no-link"]),
96765
+ maximumPositionals: 0
96766
+ });
96767
+ const target = await targetWallet(parsed, dependencies);
96768
+ let status = { linked: true };
96769
+ if (target.entry.link === void 0) {
96770
+ if (!json2) io.stdout(`${target.name} is not linked to your vAPI dashboard yet.`);
96771
+ status = await offerDashboardLink({
96772
+ name: target.name,
96773
+ json: json2,
96774
+ noLink: parsed.has("--no-link"),
96775
+ io,
96776
+ dependencies: parsed.has("--no-browser") ? { ...dependencies, openUrl: () => false } : dependencies
96777
+ });
96778
+ }
96779
+ await target.store.reload();
96780
+ const apiBase = target.store.entry(target.name)?.link?.apiBase ?? registryBaseUrl(await readConfig(getVapiPaths().config, io));
96781
+ const url2 = dashboardUrl(apiBase);
96782
+ let opened = false;
96783
+ if (status.linked && !parsed.has("--no-browser") && (dependencies.interactive ?? Boolean(process.stdout.isTTY)) && activeAgentMarker(getEnvironment(dependencies)) === void 0) {
96784
+ opened = (dependencies.openUrl ?? openInBrowser)(url2);
96785
+ }
96786
+ io.stdout(json2 ? JSON.stringify({ account: target.name, url: url2, ...status, opened }) : url2);
96787
+ }
96788
+ function shellQuote(value) {
96789
+ return /^[a-zA-Z0-9_./-]+$/u.test(value) ? value : `'${value.replace(/'/gu, "'\\''")}'`;
96790
+ }
96791
+
96707
96792
  // ../cli/src/status.ts
96708
96793
  import { stat as stat13 } from "node:fs/promises";
96709
96794
  import { homedir as homedir2 } from "node:os";
@@ -99089,10 +99174,10 @@ function apiEndpoint2(apiBase, path) {
99089
99174
  }
99090
99175
  async function sleepFor2(milliseconds, signal) {
99091
99176
  if (signal?.aborted === true) throw signal.reason;
99092
- await new Promise((resolve3, reject) => {
99177
+ await new Promise((resolve4, reject) => {
99093
99178
  const finish = () => {
99094
99179
  signal?.removeEventListener("abort", abort);
99095
- resolve3();
99180
+ resolve4();
99096
99181
  };
99097
99182
  const timeout = setTimeout(finish, milliseconds);
99098
99183
  const abort = () => {
@@ -99427,7 +99512,7 @@ async function readProcessStdin() {
99427
99512
  }
99428
99513
 
99429
99514
  // ../cli/src/version.ts
99430
- var CLI_VERSION = "0.9.4";
99515
+ var CLI_VERSION = "0.9.5";
99431
99516
 
99432
99517
  // ../cli/src/status.ts
99433
99518
  async function statusCommand(argv, json2, io, dependencies) {
@@ -99571,10 +99656,10 @@ async function runStatusSweep(args) {
99571
99656
  timeoutMs,
99572
99657
  ...args.warn === void 0 ? {} : { warn: args.warn }
99573
99658
  }),
99574
- new Promise((resolve3) => {
99659
+ new Promise((resolve4) => {
99575
99660
  timeout = setTimeout(() => {
99576
99661
  controller.abort();
99577
- resolve3();
99662
+ resolve4();
99578
99663
  }, timeoutMs);
99579
99664
  timeout.unref();
99580
99665
  })
@@ -99803,7 +99888,7 @@ async function siblingsFetchImpl(dependencies) {
99803
99888
  function shortAddress3(address4) {
99804
99889
  return address4.length <= 12 ? address4 : `${address4.slice(0, 6)}\u2026${address4.slice(-4)}`;
99805
99890
  }
99806
- async function accountsAddCommand(argv, json2, io, dependencies) {
99891
+ async function accountsAddCommand(argv, json2, io, dependencies, options = { link: "always" }) {
99807
99892
  const parsed = parseArguments(argv, {
99808
99893
  valueOptions: /* @__PURE__ */ new Set(["--label"]),
99809
99894
  booleanOptions: /* @__PURE__ */ new Set(["--no-link"]),
@@ -99820,6 +99905,18 @@ async function accountsAddCommand(argv, json2, io, dependencies) {
99820
99905
  });
99821
99906
  await recordAudit(dependencies, "wallet.create", { wallet: created.account });
99822
99907
  const address4 = created.address;
99908
+ if (options.link === "offer") {
99909
+ if (!json2) io.stdout(`Account ${created.account} derived: ${address4}`);
99910
+ const link3 = await offerDashboardLink({
99911
+ name: created.account,
99912
+ json: json2,
99913
+ noLink: parsed.has("--no-link"),
99914
+ io,
99915
+ dependencies
99916
+ });
99917
+ if (json2) io.stdout(JSON.stringify({ account: created.account, address: address4, ...link3 }));
99918
+ return;
99919
+ }
99823
99920
  if (parsed.has("--no-link")) {
99824
99921
  output2(
99825
99922
  io,
@@ -100635,10 +100732,10 @@ async function autoUploadBackup(io, json2, dependencies) {
100635
100732
  const timeoutMs = dependencies.cloudBackup?.uploadTimeoutMs ?? DEFAULT_UPLOAD_TIMEOUT_MS;
100636
100733
  const controller = new AbortController();
100637
100734
  let timer;
100638
- const timeout = new Promise((resolve3) => {
100735
+ const timeout = new Promise((resolve4) => {
100639
100736
  timer = setTimeout(() => {
100640
100737
  controller.abort();
100641
- resolve3({ status: "skipped", reason: "timeout" });
100738
+ resolve4({ status: "skipped", reason: "timeout" });
100642
100739
  }, timeoutMs);
100643
100740
  timer.unref();
100644
100741
  });
@@ -101862,7 +101959,7 @@ var HTTP_NOT_FOUND_PATTERN = /\b404\b/u;
101862
101959
  var OTHER_SCOPE_PATTERN = /\b(?:project|environment|service|workspace|team|token|user|account|volume|deployment|command|file|directory|module|package)s?\b/iu;
101863
101960
  var SIDECAR_SUFFIX = ".railway.json";
101864
101961
  var MINIMUM_SECRET_LENGTH = 8;
101865
- var defaultRailwayExec = (file2, args) => new Promise((resolve3, reject) => {
101962
+ var defaultRailwayExec = (file2, args) => new Promise((resolve4, reject) => {
101866
101963
  const child = spawn2(file2, [...args], {
101867
101964
  stdio: ["ignore", "pipe", "pipe"],
101868
101965
  env: process.env,
@@ -101877,7 +101974,7 @@ var defaultRailwayExec = (file2, args) => new Promise((resolve3, reject) => {
101877
101974
  stderr2 += chunk;
101878
101975
  });
101879
101976
  child.once("error", reject);
101880
- child.once("close", (code) => resolve3({ code, stdout, stderr: stderr2 }));
101977
+ child.once("close", (code) => resolve4({ code, stdout, stderr: stderr2 }));
101881
101978
  });
101882
101979
  function parseSandboxId(stdout) {
101883
101980
  const trimmed = stdout.trim();
@@ -102010,8 +102107,8 @@ function createRailwayRuntime(options) {
102010
102107
  const readyAttempts = options.readyAttempts ?? DEFAULT_RAILWAY_READY_ATTEMPTS;
102011
102108
  const readyIntervalMs = options.readyIntervalMs ?? DEFAULT_RAILWAY_READY_INTERVAL_MS;
102012
102109
  const signalDestroyTimeoutMs = options.signalDestroyTimeoutMs ?? DEFAULT_RAILWAY_SIGNAL_DESTROY_TIMEOUT_MS;
102013
- const sleep = options.sleep ?? ((milliseconds) => new Promise((resolve3) => {
102014
- setTimeout(resolve3, milliseconds);
102110
+ const sleep = options.sleep ?? ((milliseconds) => new Promise((resolve4) => {
102111
+ setTimeout(resolve4, milliseconds);
102015
102112
  }));
102016
102113
  let secrets = options.secrets;
102017
102114
  const getSecrets = () => secrets ??= secretStore();
@@ -103864,7 +103961,7 @@ function usd(value, minimumDecimals = 0) {
103864
103961
  import { mkdir as mkdir20, readFile as readFile28, writeFile as writeFile11 } from "node:fs/promises";
103865
103962
  import { homedir as systemHomedir } from "node:os";
103866
103963
  import { dirname as dirname14, posix, win32 as win322 } from "node:path";
103867
- var MCP_INSTALL_USAGE = "Usage: vapi mcp install <claude|cursor|codex> [--home <dir>] [--registry <url>] [--json]";
103964
+ var MCP_INSTALL_USAGE = "Usage: vapi mcp install <claude|cursor|codex> [--home <dir>] [--registry <url>] [--no-link] [--json]";
103868
103965
  var APPS = /* @__PURE__ */ new Set(["claude", "cursor", "codex"]);
103869
103966
  var NEXT_STEP = {
103870
103967
  claude: 'Restart Claude Desktop, then ask it: "Search vAPI for a weather API."',
@@ -103905,6 +104002,7 @@ function mcpInstallTarget(app, context) {
103905
104002
  async function mcpInstallCommand(argv, json2, io, dependencies) {
103906
104003
  const parsed = parseArguments(argv, {
103907
104004
  valueOptions: /* @__PURE__ */ new Set(["--home", "--registry"]),
104005
+ booleanOptions: /* @__PURE__ */ new Set(["--no-link"]),
103908
104006
  maximumPositionals: 1
103909
104007
  });
103910
104008
  const appValue = parsed.positionals[0];
@@ -103926,13 +104024,39 @@ ${MCP_INSTALL_USAGE}`
103926
104024
  });
103927
104025
  const entry = serverEntry(home, registry2);
103928
104026
  const created = await writeMcpConfig(target, entry);
104027
+ const name = await unlinkedDefaultAccount(home, dependencies);
104028
+ const offerLink = (name2) => offerDashboardLink({
104029
+ name: name2,
104030
+ json: json2,
104031
+ noLink: parsed.has("--no-link"),
104032
+ io,
104033
+ dependencies,
104034
+ home,
104035
+ apiBase: parsed.one("--registry")
104036
+ });
104037
+ const link3 = json2 && name !== void 0 ? await offerLink(name) : {};
103929
104038
  output3(
103930
104039
  io,
103931
104040
  json2,
103932
- { command: "mcp install", app: appValue, path: target.path, created, home, registry: registry2 },
104041
+ { ...link3, command: "mcp install", app: appValue, path: target.path, created, home, registry: registry2 },
103933
104042
  `${created ? "Wrote" : "Updated"} ${target.path}.`
103934
104043
  );
103935
- if (!json2) io.stdout(NEXT_STEP[appValue]);
104044
+ if (!json2) {
104045
+ io.stdout(NEXT_STEP[appValue]);
104046
+ if (name !== void 0) await offerLink(name);
104047
+ }
104048
+ }
104049
+ async function unlinkedDefaultAccount(home, dependencies) {
104050
+ try {
104051
+ const store = await WalletStore.open(home, {
104052
+ secrets: getSecretStore(dependencies),
104053
+ env: getEnvironment(dependencies)
104054
+ });
104055
+ const name = store.defaultName;
104056
+ if (name !== void 0 && store.resolve({ name }).entry.link === void 0) return name;
104057
+ } catch {
104058
+ }
104059
+ return void 0;
103936
104060
  }
103937
104061
  function isMcpInstallApp(value) {
103938
104062
  return APPS.has(value);
@@ -104602,7 +104726,7 @@ async function taskContext(parsed, io, dependencies, publicOnly = false) {
104602
104726
  pending,
104603
104727
  randomUUID: dependencies.tasks?.randomUUID ?? randomUUID6,
104604
104728
  signInHint: "Run vapi login for the acting wallet.",
104605
- sleep: dependencies.tasks?.sleep ?? ((milliseconds) => new Promise((resolve3) => setTimeout(resolve3, milliseconds)))
104729
+ sleep: dependencies.tasks?.sleep ?? ((milliseconds) => new Promise((resolve4) => setTimeout(resolve4, milliseconds)))
104606
104730
  };
104607
104731
  }
104608
104732
  async function taskRequest2(verb, route, operation) {
@@ -106402,11 +106526,11 @@ ${usage}`);
106402
106526
  }
106403
106527
  }
106404
106528
  async function referencedSleep(milliseconds, signal) {
106405
- await new Promise((resolve3) => {
106529
+ await new Promise((resolve4) => {
106406
106530
  const finish = () => {
106407
106531
  clearTimeout(timer);
106408
106532
  signal?.removeEventListener("abort", finish);
106409
- resolve3();
106533
+ resolve4();
106410
106534
  };
106411
106535
  const timer = setTimeout(finish, milliseconds);
106412
106536
  if (signal === void 0) return;
@@ -106634,7 +106758,7 @@ var HELP_HEADING = "vAPI Network";
106634
106758
  var HELP = `${HELP_HEADING}
106635
106759
 
106636
106760
  Usage:
106637
- vapi init [--networks <base,arc>] [--json]
106761
+ vapi init [--networks <base,arc>] [--no-link] [--json]
106638
106762
  vapi setup [--no-cloud-backup] [--accounts <n>] [--json]
106639
106763
  vapi accounts [--all] [--json]
106640
106764
  vapi accounts add <name> [--label <text>] [--no-link] [--json]
@@ -106681,6 +106805,7 @@ Usage:
106681
106805
  vapi agent pause <name> [--json]
106682
106806
  vapi agent resume <name> [--json]
106683
106807
  vapi agent revoke <name> [--json]
106808
+ vapi dashboard [--account <name>] [--no-browser] [--json]
106684
106809
  vapi login [--account <name>] [--label <name>] [--publish] [--no-browser] [--json]
106685
106810
  vapi logout [--account <name>] [--json]
106686
106811
  vapi whoami [--account <name>] [--json]
@@ -106731,11 +106856,13 @@ Usage:
106731
106856
  vapi publish list [--json]
106732
106857
  vapi claim <origin> [--account <name>] [--json]
106733
106858
  vapi mcp [--account <name>] [--json]
106734
- vapi mcp install <claude|cursor|codex> [--home <dir>] [--registry <url>] [--json]
106859
+ vapi mcp install <claude|cursor|codex> [--home <dir>] [--registry <url>] [--no-link] [--json]
106735
106860
  vapi serve [--json]
106736
106861
  vapi version [--json]
106737
106862
  vapi help [--json]
106738
106863
 
106864
+ \`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.
106865
+
106739
106866
  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.
106740
106867
 
106741
106868
  \`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]\`.
@@ -106800,8 +106927,8 @@ var ACCOUNT_OPTION2 = "--account";
106800
106927
  var WALLET_OPTION_DEPRECATION = "--wallet is now --account; --wallet keeps working for one release.";
106801
106928
  var SOLANA_VAULT_UNAVAILABLE2 = "Solana keys are not part of the device vault yet.";
106802
106929
  var INCLUDE_UNVERIFIED_OPTION = "--include-unverified";
106803
- async function openWalletStore(dependencies) {
106804
- return await WalletStore.open(getVapiPaths().directory, {
106930
+ async function openWalletStore(dependencies, home = getVapiPaths().directory) {
106931
+ return await WalletStore.open(home, {
106805
106932
  secrets: getSecretStore(dependencies),
106806
106933
  env: getEnvironment(dependencies),
106807
106934
  ...dependencies.now === void 0 ? {} : { now: dependencies.now }
@@ -106816,8 +106943,8 @@ async function selectWallet(store, parsed, dependencies) {
106816
106943
  const address4 = await store.readAddress(resolved.name);
106817
106944
  return { store, ...resolved, ...address4 === void 0 ? {} : { address: address4 } };
106818
106945
  }
106819
- async function targetWallet(parsed, dependencies) {
106820
- return await selectWallet(await openWalletStore(dependencies), parsed, dependencies);
106946
+ async function targetWallet(parsed, dependencies, home = getVapiPaths().directory) {
106947
+ return await selectWallet(await openWalletStore(dependencies, home), parsed, dependencies);
106821
106948
  }
106822
106949
  function getSecretStore(dependencies) {
106823
106950
  return dependencies.secretStore ?? secretStore();
@@ -106996,6 +107123,10 @@ async function runCli(argv = process.argv.slice(2), io = processIo, dependencies
106996
107123
  case "agent":
106997
107124
  exitCode = await agentCommand(args.slice(1), json2, runIo, dependencies);
106998
107125
  break;
107126
+ case "dashboard":
107127
+ await dashboardCommand(args.slice(1), json2, io, dependencies);
107128
+ exitCode = 0;
107129
+ break;
106999
107130
  case "login":
107000
107131
  await loginCommand(args.slice(1), json2, io, dependencies);
107001
107132
  exitCode = 0;
@@ -107210,6 +107341,7 @@ function shouldAutoUploadAfterFailure(args) {
107210
107341
  async function initCommand(argv, json2, io, dependencies) {
107211
107342
  const parsed = parseArguments(argv, {
107212
107343
  valueOptions: /* @__PURE__ */ new Set(["--networks"]),
107344
+ booleanOptions: /* @__PURE__ */ new Set(["--no-link"]),
107213
107345
  maximumPositionals: 0
107214
107346
  });
107215
107347
  const networks = parseInitNetworks(parsed.one("--networks") ?? "base");
@@ -107257,7 +107389,14 @@ async function initCommand(argv, json2, io, dependencies) {
107257
107389
  nextSteps: buildNextSteps(account.address)
107258
107390
  };
107259
107391
  if (json2) {
107260
- io.stdout(JSON.stringify(result));
107392
+ const link3 = await offerDashboardLink({
107393
+ name: created.name,
107394
+ json: json2,
107395
+ noLink: parsed.has("--no-link"),
107396
+ io,
107397
+ dependencies
107398
+ });
107399
+ io.stdout(JSON.stringify({ ...result, ...link3 }));
107261
107400
  return;
107262
107401
  }
107263
107402
  if (configRewrites.length > 0) io.stdout(formatLegacyRegistryRewrites(configRewrites));
@@ -107278,6 +107417,13 @@ async function initCommand(argv, json2, io, dependencies) {
107278
107417
  io.stdout(formatAccounts(accounts));
107279
107418
  io.stdout("");
107280
107419
  io.stdout(result.nextSteps.join("\n"));
107420
+ await offerDashboardLink({
107421
+ name: created.name,
107422
+ json: json2,
107423
+ noLink: parsed.has("--no-link"),
107424
+ io,
107425
+ dependencies
107426
+ });
107281
107427
  }
107282
107428
  var INIT_ALREADY_DONE = "This machine already has a wallet, so vapi init created nothing.";
107283
107429
  async function reportExistingWallets(store, json2, io, dependencies) {
@@ -107313,12 +107459,11 @@ async function walletCommand(argv, json2, io, dependencies) {
107313
107459
  `Unknown wallet subcommand ${JSON.stringify(subcommand)}. ${WALLET_USAGE}`
107314
107460
  );
107315
107461
  }
107316
- await accountsCommand(
107317
- [mapped2, ...rest, ...subcommand === "create" ? ["--no-link"] : []],
107318
- json2,
107319
- io,
107320
- dependencies
107321
- );
107462
+ if (subcommand === "create") {
107463
+ await accountsAddCommand(rest, json2, io, dependencies, { link: "offer" });
107464
+ return;
107465
+ }
107466
+ await accountsCommand([mapped2, ...rest], json2, io, dependencies);
107322
107467
  }
107323
107468
  async function unlockedWallets(walletsStore, wallets, dependencies) {
107324
107469
  const secrets = getSecretStore(dependencies);
@@ -107860,8 +108005,8 @@ async function fetchNetworkStats(dependencies) {
107860
108005
  })();
107861
108006
  let timeout;
107862
108007
  try {
107863
- const timedOut = new Promise((resolve3) => {
107864
- timeout = setTimeout(() => resolve3(null), NETWORK_STATS_REQUEST_TIMEOUT_MS);
108008
+ const timedOut = new Promise((resolve4) => {
108009
+ timeout = setTimeout(() => resolve4(null), NETWORK_STATS_REQUEST_TIMEOUT_MS);
107865
108010
  });
107866
108011
  return await Promise.race([request, timedOut]);
107867
108012
  } finally {
@@ -109542,10 +109687,10 @@ async function checkForUpdate(options = {}) {
109542
109687
  try {
109543
109688
  return await Promise.race([
109544
109689
  latestNotice(options, env, controller.signal),
109545
- new Promise((resolve3) => {
109690
+ new Promise((resolve4) => {
109546
109691
  timer = setTimeout(() => {
109547
109692
  controller.abort();
109548
- resolve3(void 0);
109693
+ resolve4(void 0);
109549
109694
  }, CHECK_TIMEOUT_MS);
109550
109695
  })
109551
109696
  ]);