@bounded-sh/client 0.0.55 → 0.0.56

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.
Files changed (47) hide show
  1. package/dist/{email-auth-provider-BaZceaov.js → email-auth-provider-4Df8dFOh.js} +2 -2
  2. package/dist/{email-auth-provider-BaZceaov.js.map → email-auth-provider-4Df8dFOh.js.map} +1 -1
  3. package/dist/{email-auth-provider-BKl9GgHV.mjs → email-auth-provider-BqX-o_sJ.mjs} +2 -2
  4. package/dist/{email-auth-provider-yBbGzH2e.mjs.map → email-auth-provider-BqX-o_sJ.mjs.map} +1 -1
  5. package/dist/{email-auth-provider-yBbGzH2e.mjs → email-auth-provider-By6SL0YS.mjs} +2 -2
  6. package/dist/{email-auth-provider-BKl9GgHV.mjs.map → email-auth-provider-By6SL0YS.mjs.map} +1 -1
  7. package/dist/{email-auth-provider-lVwM8vRR.js → email-auth-provider-CZ-xYVln.js} +2 -2
  8. package/dist/{email-auth-provider-lVwM8vRR.js.map → email-auth-provider-CZ-xYVln.js.map} +1 -1
  9. package/dist/{guest-auth-provider-Dgs8zcnC.mjs → guest-auth-provider-6bqnyX79.mjs} +2 -2
  10. package/dist/{guest-auth-provider-Dgs8zcnC.mjs.map → guest-auth-provider-6bqnyX79.mjs.map} +1 -1
  11. package/dist/{guest-auth-provider-DhN9PoAi.js → guest-auth-provider-D9A4SU4z.js} +2 -2
  12. package/dist/{guest-auth-provider-DhN9PoAi.js.map → guest-auth-provider-D9A4SU4z.js.map} +1 -1
  13. package/dist/{guest-auth-provider-DTKczntw.js → guest-auth-provider-DWcdRvLW.js} +2 -2
  14. package/dist/{guest-auth-provider-DTKczntw.js.map → guest-auth-provider-DWcdRvLW.js.map} +1 -1
  15. package/dist/{guest-auth-provider-BnugW3TI.mjs → guest-auth-provider-Q2wbjdHM.mjs} +2 -2
  16. package/dist/{guest-auth-provider-BnugW3TI.mjs.map → guest-auth-provider-Q2wbjdHM.mjs.map} +1 -1
  17. package/dist/{index-DkdIADby.mjs → index--jrXqxte.mjs} +23 -8
  18. package/dist/index--jrXqxte.mjs.map +1 -0
  19. package/dist/{index-CXVwyR6_.js → index-B_uRc6gn.js} +23 -8
  20. package/dist/index-B_uRc6gn.js.map +1 -0
  21. package/dist/index.js +1 -1
  22. package/dist/index.mjs +1 -1
  23. package/dist/{index.native-CouprxZp.js → index.native-BqK-14S8.js} +23 -8
  24. package/dist/{index.native-CouprxZp.js.map → index.native-BqK-14S8.js.map} +1 -1
  25. package/dist/{index.native-aSo8M0A8.mjs → index.native-CTVEq0VY.mjs} +23 -8
  26. package/dist/{index.native-aSo8M0A8.mjs.map → index.native-CTVEq0VY.mjs.map} +1 -1
  27. package/dist/index.native.js +1 -1
  28. package/dist/index.native.mjs +1 -1
  29. package/dist/{injected-evm-wallet-provider-D7fd42En.mjs → injected-evm-wallet-provider-BCR37kRN.mjs} +2 -2
  30. package/dist/{injected-evm-wallet-provider-D7fd42En.mjs.map → injected-evm-wallet-provider-BCR37kRN.mjs.map} +1 -1
  31. package/dist/{injected-evm-wallet-provider-BgiFW_kf.mjs → injected-evm-wallet-provider-BZPmj8bC.mjs} +2 -2
  32. package/dist/{injected-evm-wallet-provider-BgiFW_kf.mjs.map → injected-evm-wallet-provider-BZPmj8bC.mjs.map} +1 -1
  33. package/dist/{injected-evm-wallet-provider-CiCeS1n2.js → injected-evm-wallet-provider-CXfQT5sm.js} +2 -2
  34. package/dist/{injected-evm-wallet-provider-CiCeS1n2.js.map → injected-evm-wallet-provider-CXfQT5sm.js.map} +1 -1
  35. package/dist/{injected-evm-wallet-provider-CtrS-gLC.js → injected-evm-wallet-provider-xZ01LIw2.js} +2 -2
  36. package/dist/{injected-evm-wallet-provider-CtrS-gLC.js.map → injected-evm-wallet-provider-xZ01LIw2.js.map} +1 -1
  37. package/dist/{injected-wallet-provider-CRG9TaA9.mjs → injected-wallet-provider-1IRUHyB3.mjs} +2 -2
  38. package/dist/{injected-wallet-provider-CRG9TaA9.mjs.map → injected-wallet-provider-1IRUHyB3.mjs.map} +1 -1
  39. package/dist/{injected-wallet-provider-Bic6GpDr.js → injected-wallet-provider-ClI_h_fy.js} +2 -2
  40. package/dist/{injected-wallet-provider-Bic6GpDr.js.map → injected-wallet-provider-ClI_h_fy.js.map} +1 -1
  41. package/dist/{injected-wallet-provider-BhpwmpgW.mjs → injected-wallet-provider-DHQGI0Yl.mjs} +2 -2
  42. package/dist/{injected-wallet-provider-BhpwmpgW.mjs.map → injected-wallet-provider-DHQGI0Yl.mjs.map} +1 -1
  43. package/dist/{injected-wallet-provider-CST-B9EE.js → injected-wallet-provider-eMZ8tjas.js} +2 -2
  44. package/dist/{injected-wallet-provider-CST-B9EE.js.map → injected-wallet-provider-eMZ8tjas.js.map} +1 -1
  45. package/package.json +2 -2
  46. package/dist/index-CXVwyR6_.js.map +0 -1
  47. package/dist/index-DkdIADby.mjs.map +0 -1
@@ -4443,7 +4443,7 @@ async function getAuthProvider(config) {
4443
4443
  // manager as legacy email sessions. Human login should be started
4444
4444
  // with loginWithRedirect(); this provider is kept as the restore and
4445
4445
  // logout surface for those sessions.
4446
- currentAuthProvider = new (await import('./email-auth-provider-BKl9GgHV.mjs')).EmailAuthProvider();
4446
+ currentAuthProvider = new (await import('./email-auth-provider-BqX-o_sJ.mjs')).EmailAuthProvider();
4447
4447
  break;
4448
4448
  case "wallet":
4449
4449
  case "phantom": {
@@ -4462,7 +4462,7 @@ async function getAuthProvider(config) {
4462
4462
  if (!isWalletLoginEnabled(config)) {
4463
4463
  throw walletLoginNotEnabledError(authMethod);
4464
4464
  }
4465
- const { InjectedWalletProvider } = await import('./injected-wallet-provider-CRG9TaA9.mjs');
4465
+ const { InjectedWalletProvider } = await import('./injected-wallet-provider-1IRUHyB3.mjs');
4466
4466
  currentAuthProvider = new InjectedWalletProvider(resolveInjectedWalletConfig(config), rpcUrl, configuredNetwork);
4467
4467
  break;
4468
4468
  }
@@ -4475,7 +4475,7 @@ async function getAuthProvider(config) {
4475
4475
  // Selecting authMethod:'evm-wallet' IS the opt-in — pass evmWalletConfig
4476
4476
  // to point at a specific wallet or set chainId/domain.
4477
4477
  const evmWalletConfig = ((_a = config.evmWalletConfig) !== null && _a !== void 0 ? _a : {});
4478
- const { InjectedEvmWalletProvider } = await import('./injected-evm-wallet-provider-BgiFW_kf.mjs');
4478
+ const { InjectedEvmWalletProvider } = await import('./injected-evm-wallet-provider-BZPmj8bC.mjs');
4479
4479
  currentAuthProvider = new InjectedEvmWalletProvider(evmWalletConfig);
4480
4480
  break;
4481
4481
  }
@@ -4503,7 +4503,7 @@ async function getAuthProvider(config) {
4503
4503
  break;
4504
4504
  case "guest":
4505
4505
  // Anonymous auth: a device-local ed25519 keypair signs the challenge.
4506
- currentAuthProvider = new (await import('./guest-auth-provider-Dgs8zcnC.mjs')).GuestAuthProvider();
4506
+ currentAuthProvider = new (await import('./guest-auth-provider-6bqnyX79.mjs')).GuestAuthProvider();
4507
4507
  break;
4508
4508
  }
4509
4509
  if (!currentAuthProvider) {
@@ -4559,7 +4559,7 @@ async function signInAnonymously() {
4559
4559
  // Lazy-load the guest provider so its ed25519/web3 dependencies stay out of
4560
4560
  // the main bundle for data-only apps. Specifier is a static string literal
4561
4561
  // so bundle-splitting can see it.
4562
- const provider = new (await import('./guest-auth-provider-Dgs8zcnC.mjs')).GuestAuthProvider();
4562
+ const provider = new (await import('./guest-auth-provider-6bqnyX79.mjs')).GuestAuthProvider();
4563
4563
  setAuthLoading(true); // reflect "signing in…" while the guest keypair session is minted
4564
4564
  const commit = (user) => {
4565
4565
  // No await/interleaving inside this block: provider/method/config/marker
@@ -5355,9 +5355,11 @@ const BUILD_REVIEW_CAPABILITY_SCHEMA = 'bounded.build-review-capability.v1';
5355
5355
  const BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA = 'bounded.build-review-capability-refresh.v1';
5356
5356
  const BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA = 'bounded.build-delegated-review-capability.v1';
5357
5357
 
5358
+ const FAST_POLL_MS = 1000;
5358
5359
  const NORMAL_POLL_MS = 2000;
5359
5360
  const PARKED_POLL_MS = 5000;
5360
5361
  const LONG_RUNNING_POLL_MS = 10000;
5362
+ const THIRTY_SECONDS_MS = 30000;
5361
5363
  const TWO_MINUTES_MS = 2 * 60000;
5362
5364
  const TEN_MINUTES_MS = 10 * 60000;
5363
5365
  const terminalStates = new Set(TERMINAL_STATES);
@@ -5366,6 +5368,10 @@ function pollCadence(state, elapsedMs) {
5366
5368
  return LONG_RUNNING_POLL_MS;
5367
5369
  if ((state === null || state === void 0 ? void 0 : state.startsWith('parked')) || elapsedMs >= TWO_MINUTES_MS)
5368
5370
  return PARKED_POLL_MS;
5371
+ // The first 30s is where the user is staring at "waiting for a build slot" /
5372
+ // "building" and every transition matters most; poll fast, then relax.
5373
+ if (elapsedMs < THIRTY_SECONDS_MS)
5374
+ return FAST_POLL_MS;
5369
5375
  return NORMAL_POLL_MS;
5370
5376
  }
5371
5377
  function retryCadence(error, state, elapsedMs) {
@@ -5451,9 +5457,18 @@ function watch(appId, runId, onUpdate, options = {}) {
5451
5457
  const poll = async () => {
5452
5458
  if (!active)
5453
5459
  return;
5460
+ // Fire the view and the events page concurrently: the events cursor (lastSeq)
5461
+ // does not depend on the run view, so there is no reason to pay two serial
5462
+ // round-trips per tick. Error semantics below are unchanged — the run result
5463
+ // still gates, and a failed events page still publishes the run with no rows.
5464
+ const runPromise = get(appId, runId);
5465
+ const eventsPromise = events(appId, runId, lastSeq);
5466
+ // Keep the in-flight events page from becoming an unhandled rejection if the
5467
+ // run result makes us bail before awaiting it; the real await below still sees it.
5468
+ eventsPromise.catch(() => { });
5454
5469
  let run;
5455
5470
  try {
5456
- const view = await get(appId, runId);
5471
+ const view = await runPromise;
5457
5472
  if (!active)
5458
5473
  return;
5459
5474
  run = view.run;
@@ -5471,7 +5486,7 @@ function watch(appId, runId, onUpdate, options = {}) {
5471
5486
  return;
5472
5487
  }
5473
5488
  try {
5474
- const response = await events(appId, runId, lastSeq);
5489
+ const response = await eventsPromise;
5475
5490
  if (!active)
5476
5491
  return;
5477
5492
  const deduped = newEvents(Array.isArray(response.events) ? response.events : [], lastSeq, seenSeqs);
@@ -6064,4 +6079,4 @@ class PrivyExpoProvider {
6064
6079
  }
6065
6080
 
6066
6081
  export { useAuth as A, useBuildRun as B, apps as C, deserializeTransaction as D, EMBEDDED_WALLET_UNSUPPORTED as E, getIdToken as F, setPlatform as G, builds as H, BuildsApiError as I, PARK_REASONS as J, FAILURE_REASONS as K, BUILD_REVIEW_CAPABILITY_SCHEMA as L, BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA as M, NON_TERMINAL_STATES as N, OffchainAuthProvider as O, PrivyExpoProvider as P, BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA as Q, RUN_STATES as R, TERMINAL_STATES as T, hasEmbeddedEvmWallet as a, embeddedSignAndSubmit as b, setAuthLoading as c, bufferExports as d, embeddedRunEvmTransaction as e, bs58 as f, getPlatform as g, hasEmbeddedWallet as h, confirmAndCheckTransaction as i, init as j, getCurrentUser as k, onAuthLoadingChanged as l, getAuthLoading as m, normalizeSolanaRpcUrl as n, onAuthStateChanged as o, login as p, logout as q, resolveSolanaRpcUrl as r, setCurrentUser as s, getAuthProvider as t, signInAnonymously as u, loginWithPrivy as v, loginWithRedirect as w, completeLoginFromRedirect as x, loginWithPopup as y, completeLoginInPopup as z };
6067
- //# sourceMappingURL=index.native-aSo8M0A8.mjs.map
6082
+ //# sourceMappingURL=index.native-CTVEq0VY.mjs.map