@voltro/client 0.61.0 → 0.62.1

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/CHANGELOG.md CHANGED
@@ -39,6 +39,38 @@ _Changes staged for the next release accumulate here (rolled up from
39
39
 
40
40
  ---
41
41
 
42
+ ## [0.62.1] — 2026-09-02
43
+
44
+ ### Fixed
45
+
46
+ - **@voltro/client, @voltro/web, @voltro/react-native** — `useSubscriptionHealth` now clears failures when replacement subscriptions succeed after a reconnect; each api keeps one error bus across transport, auth-refresh, and subject-reconnect generations.
47
+ - **@voltro/client, @voltro/web, @voltro/react-native** — Active subscriptions whose fibers ended in a transport failure are now re-issued when the rpc socket opens again, preserving their last rows and resume revision; `useConnectionStatus` stays degraded until every affected subscription delivers a later snapshot or delta.
48
+
49
+ ### Internal (no consumer-facing effect)
50
+
51
+ - **@voltro/local-first** — Release dependency floors now exclude the vulnerable `fast-uri` and `@xmldom/xmldom` ranges, and the local-first test toolchain uses the patched Tiptap release.
52
+ - **@voltro/cli** — The source-map Debug-ID regression test now resolves the installed `sentry-cli` executable through the package entry instead of assuming a pnpm-internal binary layout.
53
+
54
+ ---
55
+
56
+ ## [0.62.0] — 2026-09-01
57
+
58
+ ### ⚠ BREAKING
59
+
60
+ - **@voltro/workflow, @voltro/cli, @voltro/voltro** — `timeouts.finish` now filters running rows by the declared workflow, durably cancels each run before notification, and emits `onFailure` only for the successful terminal transition. Finish-timeout reports carry the run's stable `runId`, `executionId`, and original payload; handler-start logs expose the returned status instead of unconditionally claiming a new start.
61
+
62
+ Low-level adapters that construct `AdmissionDrainDeps` must update `cancelRun` to accept the run object and return whether it made the terminal transition, and return the run identity, workflow name, and payload from `listRunningRuns`. Ordinary workflow declarations need no source change; `voltro update` prints the adapter migration only when the project references this low-level surface.
63
+
64
+ ### Added
65
+
66
+ - **@voltro/ai** — `streamText` and `resumableStreamText` now accept an opt-in `smooth` configuration for word- or line-based text and reasoning chunks. Smoothing runs before resumable journaling, preserves provider-native behavior when omitted, and shares the stream abort signal so cancellation also stops a pending smoothing delay.
67
+
68
+ ### Fixed
69
+
70
+ - **@voltro/web** — Production `framework_debug` now enables local framework diagnostics without opening browser-to-inspect HTTP or SSE transports. Development log relays are single-flight and rate-limited, classify permanent response failures, back off transient failures, expose dropped-log counts, and open a page-scoped circuit after repeated failure; the SSE relay also probes the endpoint before creating an `EventSource` and closes failed sources before retrying.
71
+
72
+ ---
73
+
42
74
  ## [0.61.0] — 2026-08-31
43
75
 
44
76
  ### ⚠ BREAKING
package/dist/index.d.ts CHANGED
@@ -334,8 +334,10 @@ export declare interface AutoApplyTarget {
334
334
  * different thing and is safe: see `SubscriptionCache.seedStaleFrom`, which
335
335
  * copies rows (never fibers) and is gated by the caller to same-subject swaps.
336
336
  *
337
- * Rejects if the runtime fails to resolve the client (e.g. the socket never
338
- * opens); the caller's reconnect logic decides what to do with that.
337
+ * Resolving this function means the rpc client exists; it does NOT prove the
338
+ * background socket loop has opened. Active subscription fibers that fail
339
+ * before a later `open` are resumed by the cache at that open boundary.
340
+ * Construction failures still reject and are left to the caller's supervisor.
339
341
  */
340
342
  export declare const buildApiRuntime: (options: BuildApiRuntimeOptions) => Promise<BuiltApiRuntime>;
341
343
 
@@ -362,9 +364,18 @@ export declare interface BuildApiRuntimeOptions {
362
364
  * tracking + a connect-timeout; RN passes a plain `globalThis.WebSocket`.
363
365
  * Injected so this module touches no environment global directly. */
364
366
  readonly webSocketConstructor: (url: string, protocols?: string | ReadonlyArray<string>) => globalThis.WebSocket;
367
+ /**
368
+ * Error channel owned by the logical api mount. A reconnect supervisor passes
369
+ * the SAME instance to every transport generation so a failure emitted by the
370
+ * outgoing socket can be cleared by a success from the replacement socket.
371
+ * Omit only when building a standalone, unsupervised runtime.
372
+ */
373
+ readonly errorBus?: RpcErrorBus;
365
374
  }
366
375
 
367
- export declare type BuildClient = (api: MountedApi, generation: number, onSocketOpen: () => void, onSocketIssue: (kind: SocketIssueKind) => void) => Promise<ResolvedClient>;
376
+ export declare type BuildClient = (api: MountedApi, generation: number, onSocketOpen: () => void, onSocketIssue: (kind: SocketIssueKind) => void,
377
+ /** Stable for this logical api across every transport generation. */
378
+ errorBus?: RpcErrorBus) => Promise<ResolvedClient>;
368
379
 
369
380
  /** The transport-level pieces of one api's client stack. Combined with the
370
381
  * api's descriptor map + inspect base URL, this is an `ApiHandle`. */
@@ -387,6 +398,9 @@ declare interface CacheEntry {
387
398
  subscribers: Set<() => void>;
388
399
  /** Fiber running the underlying stream. */
389
400
  fiber: Fiber.RuntimeFiber<unknown, unknown> | null;
401
+ /** The last fiber ended because the rpc transport failed. A later socket
402
+ * `open` re-issues active entries with their last-known-good base intact. */
403
+ resumeAfterTransportOpen: boolean;
390
404
  /** Pending eviction (last subscriber gone, TTL countdown). */
391
405
  evictionTimer: NodeJS.Timeout | null;
392
406
  /** Source table(s) this entry reads (from the rpc descriptor). Used by
@@ -686,7 +700,7 @@ export declare interface ConnectionState {
686
700
  readonly status: ConnectionStatus;
687
701
  /** `navigator.onLine` (true during SSR — nothing better is knowable there). */
688
702
  readonly online: boolean;
689
- /** Consecutive transport failures with no server response or rpc success in between. */
703
+ /** Transport failures not yet cleared by recovery evidence. */
690
704
  readonly failureCount: number;
691
705
  /** When the most recent failure was observed. */
692
706
  readonly lastFailureAt: number | undefined;
@@ -3062,9 +3076,10 @@ export declare class SubscriptionCache {
3062
3076
  * getter, the per-subscriber notify-on-change hook, and an unsubscribe
3063
3077
  * function.
3064
3078
  *
3065
- * `fetch` is invoked at most once per cache-entry lifetime (it builds
3066
- * the Effect Stream against the runtime). Subsequent subscribers piggy-
3067
- * back on the same stream.
3079
+ * `fetch` is invoked once per live stream attempt (it builds the Effect
3080
+ * Stream against the runtime). Concurrent subscribers piggy-back on that
3081
+ * stream; a transport recovery may invoke it again to replace the terminal
3082
+ * fiber left by the failed socket.
3068
3083
  */
3069
3084
  subscribe(keyArr: ReadonlyArray<unknown>, fetch: () => Stream.Stream<SubscriptionEvent<unknown>, unknown, never>, runtime: AnyRuntime, onChange: () => void, options?: {
3070
3085
  readonly source?: string | ReadonlyArray<string>;
@@ -3205,6 +3220,7 @@ export declare class SubscriptionCache {
3205
3220
  * promote naturally on their next subscriber.
3206
3221
  */
3207
3222
  refreshAll(runtime: AnyRuntime): void;
3223
+ /* Excluded from this release type: resumeTransportFailures */
3208
3224
  /**
3209
3225
  * Re-issue ONE entry's subscription: interrupt the fiber, reset the base,
3210
3226
  * re-fork through the saved `fetch`.
@@ -3567,6 +3583,12 @@ export declare interface SupervisorHandle {
3567
3583
  export declare interface SupervisorOptions {
3568
3584
  readonly apis: ReadonlyArray<MountedApi>;
3569
3585
  readonly buildClient: BuildClient;
3586
+ /**
3587
+ * Resolve the bus owned by an api mount. Hosts whose supervisor can be
3588
+ * recreated while the provider stays mounted supply a provider-scoped bus;
3589
+ * otherwise the supervisor creates one bus per api slot.
3590
+ */
3591
+ readonly errorBusFor?: (apiName: string) => RpcErrorBus;
3570
3592
  /**
3571
3593
  * Called whenever the resolved-clients map changes (initial resolve,
3572
3594
  * reconnect swap, api removed). The React layer mirrors this into
@@ -3941,10 +3963,11 @@ export declare const useConnections: (apiName: string) => ConnectedAccountsContr
3941
3963
  * {status !== 'connected' && <OfflineBanner status={status} />}
3942
3964
  * ```
3943
3965
  *
3944
- * `degraded` clears as soon as any rpc on that api succeeds or returns a
3945
- * declared handler failure — both prove a server round trip. Call
3946
- * `reportSuccess()` when another signal proves reachability (the hook also
3947
- * clears when the browser comes back online).
3966
+ * `degraded` clears after a server round trip, except that every subscription
3967
+ * which failed with `kind: 'transport'` must deliver its own later snapshot.
3968
+ * An unrelated action cannot declare a dead screen healthy. Call
3969
+ * `reportSuccess()` when another signal proves reachability; it likewise does
3970
+ * not override outstanding subscription failures.
3948
3971
  */
3949
3972
  export declare const useConnectionStatus: (apiName: string) => ConnectionState & {
3950
3973
  /** Clear the degraded state — call after a known-good round trip. */
@@ -4337,7 +4360,8 @@ export declare function useSubscription<T = unknown>(apiName: string, rpcTag: st
4337
4360
  * A tag enters the list when a call for it fails and LEAVES it when a call for
4338
4361
  * the same tag succeeds — keyed by tag rather than counted, because the
4339
4362
  * question a screen asks is "is this working now", and two failures of one tag
4340
- * are one broken thing.
4363
+ * are one broken thing. The api owns this history across reconnects: a success
4364
+ * from a replacement client removes a failure emitted by the outgoing client.
4341
4365
  *
4342
4366
  * const { healthy, failed } = useSubscriptionHealth('app')
4343
4367
  * if (!healthy) return <Banner tags={failed.map((f) => f.tag)} />
package/dist/index.js CHANGED
@@ -333,11 +333,16 @@ var he = /* @__PURE__ */ new Set(), ge = (e) => {
333
333
  refreshAll(e) {
334
334
  for (let t of this.entries.values()) t.fetch && this.reissue(t, e);
335
335
  }
336
+ resumeTransportFailures(e) {
337
+ let t = 0;
338
+ for (let n of this.entries.values()) !n.resumeAfterTransportOpen || n.fiber !== null || n.fetch === null || n.subscribers.size === 0 || (this.reissue(n, e, !1), t += 1);
339
+ return t;
340
+ }
336
341
  reissue(e, t, n = !0) {
337
342
  if (!e.fetch) return;
338
343
  e.fiber && t.runFork(F.interrupt(e.fiber)), e.fiber = null;
339
- let r = e.state.patches, i = e.state.base, a = e.state.baseRevision;
340
- e.state = this.freshState(), e.state.patches = r, n || (e.state.base = i, e.state.baseRevision = a), this.startFiber(e, e.fetch, t);
344
+ let r = e.state.patches, i = e.state.base, a = e.state.baseRevision, o = e.state.baseEmittedAt;
345
+ e.state = this.freshState(), e.state.patches = r, n || (e.state.base = i, e.state.baseRevision = a, e.state.baseEmittedAt = o), this.startFiber(e, e.fetch, t);
341
346
  }
342
347
  seedStaleFrom(e) {
343
348
  let t = 0;
@@ -356,6 +361,7 @@ var he = /* @__PURE__ */ new Set(), ge = (e) => {
356
361
  },
357
362
  subscribers: /* @__PURE__ */ new Set(),
358
363
  fiber: null,
364
+ resumeAfterTransportOpen: !1,
359
365
  evictionTimer: null,
360
366
  source: n.source,
361
367
  computed: n.computed,
@@ -373,6 +379,7 @@ var he = /* @__PURE__ */ new Set(), ge = (e) => {
373
379
  state: this.freshState(),
374
380
  subscribers: /* @__PURE__ */ new Set(),
375
381
  fiber: null,
382
+ resumeAfterTransportOpen: !1,
376
383
  evictionTimer: null,
377
384
  source: i,
378
385
  computed: !1,
@@ -390,6 +397,7 @@ var he = /* @__PURE__ */ new Set(), ge = (e) => {
390
397
  state: this.freshState(),
391
398
  subscribers: /* @__PURE__ */ new Set(),
392
399
  fiber: null,
400
+ resumeAfterTransportOpen: !1,
393
401
  evictionTimer: null,
394
402
  source: void 0,
395
403
  computed: !1,
@@ -409,36 +417,39 @@ var he = /* @__PURE__ */ new Set(), ge = (e) => {
409
417
  };
410
418
  }
411
419
  startFiber(e, t, n) {
412
- let r = e.tag ?? e.key, i = t(), a = B.unwrapScoped(N.currentSpan.pipe(N.catchAll(() => N.succeed(void 0)), N.map((t) => (t && (e.traceId = t.traceId, ge({
420
+ let r = e.tag ?? e.key;
421
+ e.resumeAfterTransportOpen = !1;
422
+ let i = t(), a = B.unwrapScoped(N.currentSpan.pipe(N.catchAll(() => N.succeed(void 0)), N.map((t) => (t && (e.traceId = t.traceId, ge({
413
423
  traceId: t.traceId,
414
424
  spanId: t.spanId,
415
425
  source: "subscription",
416
426
  tag: r
417
427
  })), i)))).pipe(B.withSpan(`client.subscription.${r}`, { attributes: { "rpc.tag": r } })), o = e.state.baseRevision >= 0 ? e.state.baseRevision : void 0, s = a.pipe(B.runForEach((t) => N.sync(() => {
418
428
  let n = e.state.base;
419
- if (t._tag === "snapshot") e.state.base = t.data, e.state.baseRevision = t.revision, e.state.baseEmittedAt = void 0, e.state.baseError = void 0, this.errorBus?.emitSuccess({
420
- source: "subscription",
421
- tag: e.tag ?? e.key
422
- }), t.computed === !0 && (e.computed = !0);
429
+ if (t._tag === "snapshot") e.state.base = t.data, e.state.baseRevision = t.revision, e.state.baseEmittedAt = void 0, e.state.baseError = void 0, t.computed === !0 && (e.computed = !0);
423
430
  else if (t._tag === "error") e.state.baseError = M.fail(t.error), typeof t.revision == "number" && (e.state.baseRevision = t.revision);
424
431
  else {
425
432
  let n = e.state.base;
426
433
  Array.isArray(n) && (e.state.base = H(n, t.patch, this.mergeCell === void 0 ? {} : { mergeCell: this.mergeCell })), e.state.baseRevision = t.revision, e.state.baseEmittedAt = t.emittedAt, e.state.baseError = void 0;
427
434
  }
428
- e.state.patches.some((e) => e.confirmed === !0) && Se(t, n, e.state.base) && (e.state.patches = e.state.patches.filter((e) => e.confirmed !== !0)), this.mirror !== void 0 && t._tag !== "error" && this.mirror.save(e.key, {
435
+ t._tag !== "error" && this.errorBus?.emitSuccess({
436
+ source: "subscription",
437
+ tag: e.tag ?? e.key
438
+ }), e.state.patches.some((e) => e.confirmed === !0) && Se(t, n, e.state.base) && (e.state.patches = e.state.patches.filter((e) => e.confirmed !== !0)), this.mirror !== void 0 && t._tag !== "error" && this.mirror.save(e.key, {
429
439
  tag: e.tag,
430
440
  data: e.state.base,
431
441
  revision: e.state.baseRevision
432
442
  }).catch(() => {}), this.invalidate(e);
433
- })));
434
- e.fiber = n.runFork(o === void 0 ? s : s.pipe(N.locallyWith(V.currentHeaders, (e) => ae.set(e, "voltro-resume-from", String(o))))), e.fiber.addObserver((t) => {
435
- if (P.isFailure(t) && !P.isInterrupted(t) && (e.state.baseRevision === -1 && (e.state.baseError = t.cause, this.invalidate(e)), this.errorBus)) {
436
- let n = M.squash(t.cause), r = M.failureOption(t.cause);
437
- this.errorBus.emit({
443
+ }))), c = n.runFork(o === void 0 ? s : s.pipe(N.locallyWith(V.currentHeaders, (e) => ae.set(e, "voltro-resume-from", String(o)))));
444
+ e.fiber = c, c.addObserver((t) => {
445
+ if (e.fiber === c && (e.fiber = null), P.isFailure(t) && !P.isInterrupted(t)) {
446
+ e.state.baseRevision === -1 && (e.state.baseError = t.cause, this.invalidate(e));
447
+ let n = M.squash(t.cause), r = M.failureOption(t.cause), i = R.isSome(r) ? U(r.value, "handler") : "unknown";
448
+ i === "transport" && (e.resumeAfterTransportOpen = !0), this.errorBus && this.errorBus.emit({
438
449
  source: "subscription",
439
450
  tag: e.tag ?? e.key,
440
451
  error: n,
441
- kind: R.isSome(r) ? U(r.value, "handler") : "unknown",
452
+ kind: i,
442
453
  ...e.traceId === void 0 ? {} : { traceId: e.traceId }
443
454
  });
444
455
  }
@@ -564,21 +575,28 @@ var he = /* @__PURE__ */ new Set(), ge = (e) => {
564
575
  n?.(e);
565
576
  }, [n, e]), t.get(e);
566
577
  }, et = (e) => typeof e.runtime?.runFork != "function", tt = async (e) => {
567
- let { name: t, wsUrl: n, group: r, headers: i, webSocketConstructor: a } = e;
568
- class o extends ne.Tag(`@voltro/client/AppClient/${t}`)() {}
569
- let s = I.succeed(ue.WebSocketConstructor, (e, t) => a(e, t)), c = V.layerProtocolSocket().pipe(I.provide(se.layerJson), I.provide(ue.layerWebSocket(n)), I.provide(s)), l = typeof i == "function" ? await i() : i, u = I.scoped(o, V.make(r)).pipe(I.provide(c)), d = l ? I.locallyScoped(V.currentHeaders, ae.fromInput(l)) : I.empty, f = L.make(I.merge(u, d));
578
+ let { name: t, wsUrl: n, group: r, headers: i, webSocketConstructor: a } = e, o = e.errorBus ?? new Re(), s = new Me({ errorBus: o }), c;
579
+ class l extends ne.Tag(`@voltro/client/AppClient/${t}`)() {}
580
+ let u = I.succeed(ue.WebSocketConstructor, (e, t) => {
581
+ let n = a(e, t);
582
+ return n.addEventListener("open", () => {
583
+ globalThis.queueMicrotask(() => {
584
+ n.readyState === 1 && c !== void 0 && s.resumeTransportFailures(c);
585
+ });
586
+ }), n;
587
+ }), d = V.layerProtocolSocket().pipe(I.provide(se.layerJson), I.provide(ue.layerWebSocket(n)), I.provide(u)), f = typeof i == "function" ? await i() : i, p = I.scoped(l, V.make(r)).pipe(I.provide(d)), m = f ? I.locallyScoped(V.currentHeaders, ae.fromInput(f)) : I.empty, h = L.make(I.merge(p, m));
588
+ c = h;
570
589
  try {
571
- let e = await f.runPromise(o), t = new Re();
572
590
  return {
573
- runtime: f,
574
- client: e,
575
- cache: new Me({ errorBus: t }),
576
- errorBus: t
591
+ runtime: h,
592
+ client: await h.runPromise(l),
593
+ cache: s,
594
+ errorBus: o
577
595
  };
578
596
  } catch (e) {
579
- throw f.dispose(), e;
597
+ throw h.dispose(), e;
580
598
  }
581
- }, nt = (e) => Math.min(500 * 2 ** Math.min(e - 1, 4), 5e3), rt = () => ({
599
+ }, nt = (e) => Math.min(500 * 2 ** Math.min(e - 1, 4), 5e3), rt = (e) => ({
582
600
  resolved: null,
583
601
  retryToken: 0,
584
602
  failureCount: 0,
@@ -586,7 +604,8 @@ var he = /* @__PURE__ */ new Set(), ge = (e) => {
586
604
  reconnectStatusDispose: null,
587
605
  everOpened: !1,
588
606
  wedgeStop: null,
589
- subjectMayHaveChanged: !1
607
+ subjectMayHaveChanged: !1,
608
+ errorBus: e
590
609
  }), it = (e) => {
591
610
  e.wedgeStop !== null && (e.wedgeStop(), e.wedgeStop = null);
592
611
  }, at = (e) => {
@@ -595,7 +614,7 @@ var he = /* @__PURE__ */ new Set(), ge = (e) => {
595
614
  let t = e.apis, n = e.buildClient, r = e.onChange, i = e.retryDelayMs ?? nt, a = e.stableWindowMs ?? 5e3, o = e.scheduler?.setTimeout ?? ((e, t) => setTimeout(e, t)), s = e.scheduler?.clearTimeout ?? ((e) => {
596
615
  clearTimeout(e);
597
616
  }), c = e.scheduler?.queueMicrotask ?? queueMicrotask, l = e.onReconnecting, u = e.wedgeBackstop, d = /* @__PURE__ */ new Map();
598
- for (let e of t) d.set(e.name, rt());
617
+ for (let n of t) d.set(n.name, rt(e.errorBusFor?.(n.name) ?? new Re()));
599
618
  let f = !1, p = /* @__PURE__ */ new Set(), m = (e, t) => {
600
619
  let n = o(() => {
601
620
  p.delete(n), e();
@@ -630,7 +649,7 @@ var he = /* @__PURE__ */ new Set(), ge = (e) => {
630
649
  f || t.generation !== r || g(e);
631
650
  };
632
651
  try {
633
- let a = await n(e, r, i, o);
652
+ let a = await n(e, r, i, o, t.errorBus);
634
653
  if (f || t.generation !== r) {
635
654
  at(a);
636
655
  return;
@@ -3406,37 +3425,41 @@ var si = () => E(ai), ci = (e) => ri(si().scopes, e), li = (e) => ii(si().scopes
3406
3425
  error: d.error
3407
3426
  };
3408
3427
  }, ua = () => typeof navigator > "u" || navigator.onLine, da = (e) => {
3409
- let { errorBus: t } = q(e), [n, r] = A(ua), [i, a] = A(0), [o, s] = A(void 0), c = k(!0);
3428
+ let { errorBus: t } = q(e), [n, r] = A(ua), [i, a] = A(0), [o, s] = A(void 0), c = k(!0), l = k(/* @__PURE__ */ new Set());
3410
3429
  D(() => (c.current = !0, () => {
3411
3430
  c.current = !1;
3412
3431
  }), []), D(() => {
3413
3432
  if (typeof window > "u") return;
3414
3433
  let e = () => {
3415
- r(!0), a(0);
3434
+ r(!0), l.current.size === 0 && a(0);
3416
3435
  }, t = () => r(!1);
3417
3436
  return window.addEventListener("online", e), window.addEventListener("offline", t), () => {
3418
3437
  window.removeEventListener("online", e), window.removeEventListener("offline", t);
3419
3438
  };
3420
3439
  }, []), D(() => {
3421
3440
  if (!t?.on) return;
3422
- let e = t.on((e) => {
3423
- c.current && (e.kind === "transport" ? (a((e) => e + 1), s(Date.now())) : e.kind === "handler" && a(0));
3424
- }), n = t.onSuccess(() => {
3425
- c.current && a(0);
3441
+ let e = /* @__PURE__ */ new Set();
3442
+ l.current = e;
3443
+ let n = () => {
3444
+ e.size === 0 && a(0);
3445
+ }, r = t.on((t) => {
3446
+ c.current && (t.kind === "transport" ? (t.source === "subscription" && e.add(t.tag), a((e) => e + 1), s(Date.now())) : t.kind === "handler" && n());
3447
+ }), i = t.onSuccess((t) => {
3448
+ c.current && (t.source === "subscription" && e.delete(t.tag), n());
3426
3449
  });
3427
3450
  return () => {
3428
- e(), n();
3451
+ r(), i(), l.current === e && (l.current = /* @__PURE__ */ new Set());
3429
3452
  };
3430
3453
  }, [t]);
3431
- let l = T(() => {
3432
- a(0);
3454
+ let u = T(() => {
3455
+ l.current.size === 0 && a(0);
3433
3456
  }, []);
3434
3457
  return {
3435
3458
  status: n ? i > 0 ? "degraded" : "connected" : "offline",
3436
3459
  online: n,
3437
3460
  failureCount: i,
3438
3461
  lastFailureAt: o,
3439
- reportSuccess: l
3462
+ reportSuccess: u
3440
3463
  };
3441
3464
  }, fa = "__voltro.connections.list", pa = "__voltro.connections.start", ma = "__voltro.connections.submitToken", ha = "__voltro.connections.disconnect", ga = {
3442
3465
  connectionId: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/client",
3
- "version": "0.61.0",
3
+ "version": "0.62.1",
4
4
  "description": "Framework-agnostic client bindings — the typed RpcClient, subscription cache, and reactive data layer the web hooks build on.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -40,7 +40,7 @@
40
40
  "dependencies": {
41
41
  "@tanstack/form-core": "^1.33.5",
42
42
  "@tanstack/react-store": "^0.11.1",
43
- "@voltro/protocol": "0.61.0"
43
+ "@voltro/protocol": "0.62.1"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@effect/platform": "^0.97.0",