@voltro/client 0.90.0 → 0.91.0

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.
@@ -1,14 +1,14 @@
1
1
  import { squashRpcCause as e } from "./squashRpcCause.js";
2
- import { rpcErrorKind as t } from "./rpcErrorKind.js";
3
- import { recoveryCoordinatorFor as n } from "./recoveryCoordinator.js";
4
- import { connectionScopeForRuntime as r } from "./connectionScope.js";
5
- import { resolveByTag as i } from "./tagWalk.js";
6
- import { runRpcPromise as a } from "./runRpc.js";
7
- import { ConnectionPrerequisite as o, ConnectionPrerequisiteInvalidated as s, SUPERSEDED_BY_LATER_ACTIVATION as c, activationEndReason as l } from "./connectionPrerequisite.js";
8
- import { captureRpcInvocationOwner as u, rpcInvocationOwnerCurrent as d } from "./awaitResolvedApi.js";
9
- import { omitMutationInputs as f, startMutation as p } from "./mutationsBus.js";
10
- import { createConnectionSetupHandle as m } from "./mutationConnectionSetup.js";
11
- import { freshIdempotencyKey as h, withIdempotencyKey as g } from "./mutationIdentity.js";
2
+ import { ConnectionPrerequisite as t, ConnectionPrerequisiteInvalidated as n, SUPERSEDED_BY_LATER_ACTIVATION as r, activationEndReason as i } from "./connectionPrerequisite.js";
3
+ import { connectionScopeForRuntime as a } from "./connectionScope.js";
4
+ import { createConnectionSetupHandle as o } from "./mutationConnectionSetup.js";
5
+ import { freshIdempotencyKey as s, withIdempotencyKey as c } from "./mutationIdentity.js";
6
+ import { recoveryCoordinatorFor as l } from "./recoveryCoordinator.js";
7
+ import { resolveByTag as u } from "./tagWalk.js";
8
+ import { runRpcPromise as d } from "./runRpc.js";
9
+ import { rpcErrorKind as f } from "./rpcErrorKind.js";
10
+ import { omitMutationInputs as p, startMutation as m } from "./mutationsBus.js";
11
+ import { captureRpcInvocationOwner as h, rpcInvocationOwnerCurrent as g } from "./awaitResolvedApi.js";
12
12
  import { Cause as _, Effect as v, Exit as y } from "effect";
13
13
  // src/connectionSetupController.ts
14
14
  var b = class {
@@ -26,7 +26,7 @@ var b = class {
26
26
  #s;
27
27
  handle;
28
28
  constructor(e, t, n) {
29
- this.#e = e, this.#t = t, this.#n = n, this.handle = m(e, { capture: () => this.#f() });
29
+ this.#e = e, this.#t = t, this.#n = n, this.handle = o(e, { capture: () => this.#f() });
30
30
  }
31
31
  getSnapshot = () => this.#a;
32
32
  subscribe = (e) => (this.#r.add(e), () => {
@@ -34,37 +34,37 @@ var b = class {
34
34
  });
35
35
  clear = (e = !1) => {
36
36
  let t = this.#i;
37
- this.#i = void 0, this.#s = void 0, t && (t.initialDelivery = void 0), t?.detachSubject?.(), t?.controller.abort(e ? c : void 0), this.#h({
37
+ this.#i = void 0, this.#s = void 0, t && (t.initialDelivery = void 0), t?.detachSubject?.(), t?.controller.abort(e ? r : void 0), this.#h({
38
38
  status: "idle",
39
39
  data: void 0,
40
40
  error: void 0
41
41
  });
42
42
  };
43
- async activate(e, t) {
43
+ async activate(e, n) {
44
44
  this.clear(!0);
45
- let n = new AbortController(), r = () => {}, i = new Promise((e) => {
46
- r = e;
47
- }), a = {
45
+ let r = new AbortController(), i = () => {}, a = new Promise((e) => {
46
+ i = e;
47
+ }), o = {
48
48
  input: e,
49
- key: h(),
50
- controller: n,
49
+ key: s(),
50
+ controller: r,
51
51
  owner: void 0,
52
52
  detachSubject: void 0,
53
- prerequisite: new o(n.signal, this.#c(this.#n()).options.replayWindowMs),
53
+ prerequisite: new t(r.signal, this.#c(this.#n()).options.replayWindowMs),
54
54
  established: !1,
55
55
  outputs: /* @__PURE__ */ new WeakMap(),
56
- initialDelivery: r
56
+ initialDelivery: i
57
57
  };
58
- this.#i = a, this.#h({
58
+ this.#i = o, this.#h({
59
59
  status: "pending",
60
60
  data: void 0,
61
61
  error: void 0
62
62
  });
63
63
  try {
64
- let e = await t(), n = await this.#p(a, e.runtime, e.client);
65
- return this.#l(a), a.prerequisite.assertCurrent(e.runtime, n), a.established = !0, await i;
64
+ let e = await n(), t = await this.#p(o, e.runtime, e.client);
65
+ return this.#l(o), o.prerequisite.assertCurrent(e.runtime, t), o.established = !0, await a;
66
66
  } catch (e) {
67
- throw this.#l(a), this.#i === a && (this.clear(), this.#h({
67
+ throw this.#l(o), this.#i === o && (this.clear(), this.#h({
68
68
  status: "error",
69
69
  data: void 0,
70
70
  error: e
@@ -72,10 +72,10 @@ var b = class {
72
72
  }
73
73
  }
74
74
  watch(e) {
75
- let t = r(e.runtime), n = () => {
75
+ let t = a(e.runtime), n = () => {
76
76
  let n = this.#i;
77
77
  if (n === void 0 || !n.established || this.#n().runtime !== e.runtime) return;
78
- if (n.owner === void 0 || !d(n.owner, e)) {
78
+ if (n.owner === void 0 || !g(n.owner, e)) {
79
79
  this.clear();
80
80
  return;
81
81
  }
@@ -89,21 +89,21 @@ var b = class {
89
89
  return n(), t?.subscribe(n) ?? (() => {});
90
90
  }
91
91
  #c(e) {
92
- return e.recovery ?? n(e.errorBus, this.#e);
92
+ return e.recovery ?? l(e.errorBus, this.#e);
93
93
  }
94
94
  #l(e) {
95
- if (this.#i !== e || e.controller.signal.aborted) throw new s(l(e.controller.signal));
95
+ if (this.#i !== e || e.controller.signal.aborted) throw new n(i(e.controller.signal));
96
96
  }
97
- #u(e, t, n) {
97
+ #u(e, t, r) {
98
98
  this.#l(e);
99
- let r = this.#n();
100
- if (e.owner !== void 0 && !d(e.owner, r)) throw new s("inactive");
101
- if (r.runtime !== t || r.client !== n) throw new s("connection-changed");
102
- return r;
99
+ let i = this.#n();
100
+ if (e.owner !== void 0 && !g(e.owner, i)) throw new n("inactive");
101
+ if (i.runtime !== t || i.client !== r) throw new n("connection-changed");
102
+ return i;
103
103
  }
104
104
  #d(e, t) {
105
105
  if (e.owner !== void 0) return;
106
- e.owner = u(t, this.#e, this.#t);
106
+ e.owner = h(t, this.#e, this.#t);
107
107
  let n = e.owner.subject, r = () => {
108
108
  this.#i === e && this.clear();
109
109
  };
@@ -111,7 +111,7 @@ var b = class {
111
111
  }
112
112
  #f() {
113
113
  let e = this.#i;
114
- if (e === void 0) throw new s("inactive");
114
+ if (e === void 0) throw new n("inactive");
115
115
  return { prepare: async (t, n) => {
116
116
  let r = await this.#p(e, t, n);
117
117
  return { run: (i) => e.prerequisite.run(t, r, v.try({
@@ -120,93 +120,93 @@ var b = class {
120
120
  }).pipe(v.andThen(i))) };
121
121
  } };
122
122
  }
123
- async #p(e, t, n) {
124
- let i = this.#u(e, t, n), o = i.descriptors[this.#t];
125
- if (o?.kind !== "mutation" || o.idempotencyScope !== "connection") throw Error(`Voltro: useConnectionSetup("${this.#t}") requires a mutation declaring idempotencyScope: 'connection'`);
126
- this.#d(e, i), this.#l(e);
127
- let c = r(t);
128
- if (c === void 0) throw new s("connection-unavailable");
123
+ async #p(e, t, r) {
124
+ let o = this.#u(e, t, r), s = o.descriptors[this.#t];
125
+ if (s?.kind !== "mutation" || s.idempotencyScope !== "connection") throw Error(`Voltro: useConnectionSetup("${this.#t}") requires a mutation declaring idempotencyScope: 'connection'`);
126
+ this.#d(e, o), this.#l(e);
127
+ let c = a(t);
128
+ if (c === void 0) throw new n("connection-unavailable");
129
129
  if (c.getSnapshot() === void 0) {
130
- let n = v.callback((t) => {
131
- let n = () => {
132
- let n = c.getSnapshot();
133
- e.controller.signal.aborted ? t(v.fail(new s(l(e.controller.signal)))) : n !== void 0 && t(v.succeed(n));
134
- }, r = c.subscribe(n);
135
- return e.controller.signal.addEventListener("abort", n, { once: !0 }), n(), v.sync(() => {
136
- r(), e.controller.signal.removeEventListener("abort", n);
130
+ let r = v.callback((t) => {
131
+ let r = () => {
132
+ let r = c.getSnapshot();
133
+ e.controller.signal.aborted ? t(v.fail(new n(i(e.controller.signal)))) : r !== void 0 && t(v.succeed(r));
134
+ }, a = c.subscribe(r);
135
+ return e.controller.signal.addEventListener("abort", r, { once: !0 }), r(), v.sync(() => {
136
+ a(), e.controller.signal.removeEventListener("abort", r);
137
137
  });
138
138
  }).pipe(v.timeoutOrElse({
139
- duration: this.#c(i).options.replayWindowMs,
140
- orElse: () => v.fail(new s("timeout"))
139
+ duration: this.#c(o).options.replayWindowMs,
140
+ orElse: () => v.fail(new n("timeout"))
141
141
  }));
142
- await a(t, n);
142
+ await d(t, r);
143
143
  }
144
- this.#u(e, t, n);
145
- let u = c.getSnapshot();
144
+ this.#u(e, t, r);
145
+ let l = c.getSnapshot();
146
146
  try {
147
- let r = await e.prerequisite.prepare(t, this.#m(e, i));
148
- return this.#u(e, t, n), this.#s = r.lease, this.#n().descriptors[this.#t]?.outputRetention === "none" && (e.outputs = /* @__PURE__ */ new WeakMap()), this.#h({
147
+ let n = await e.prerequisite.prepare(t, this.#m(e, o));
148
+ return this.#u(e, t, r), this.#s = n.lease, this.#n().descriptors[this.#t]?.outputRetention === "none" && (e.outputs = /* @__PURE__ */ new WeakMap()), this.#h({
149
149
  status: "ready",
150
- data: e.outputs.get(r.lease),
150
+ data: e.outputs.get(n.lease),
151
151
  error: void 0
152
- }), this.#u(e, t, n), e.prerequisite.assertCurrent(t, r), r;
153
- } catch (r) {
154
- throw this.#u(e, t, n), this.#i === e && this.#n().runtime === t && c.getSnapshot() === u && this.#h({
152
+ }), this.#u(e, t, r), e.prerequisite.assertCurrent(t, n), n;
153
+ } catch (n) {
154
+ throw this.#u(e, t, r), this.#i === e && this.#n().runtime === t && c.getSnapshot() === l && this.#h({
155
155
  status: "error",
156
156
  data: void 0,
157
- error: r
158
- }), this.#u(e, t, n), r;
157
+ error: n
158
+ }), this.#u(e, t, r), n;
159
159
  }
160
160
  }
161
- #m(n, a) {
161
+ #m(t, r) {
162
162
  return v.suspend(() => {
163
- let o = r(a.runtime)?.getSnapshot();
164
- if (o === void 0) return v.fail(new s("connection-unavailable"));
165
- let c = `setup_${n.key}_${++this.#o}`;
166
- this.#u(n, a.runtime, a.client);
167
- let l = n.owner?.subject;
168
- if (l === void 0) throw new s("inactive");
169
- let u = a.descriptors[this.#t]?.outputRetention === "none", d = !a.descriptors[this.#t] || a.descriptors[this.#t]?.clientHistory?.input === "omit", m = p({
170
- id: c,
163
+ let i = a(r.runtime)?.getSnapshot();
164
+ if (i === void 0) return v.fail(new n("connection-unavailable"));
165
+ let o = `setup_${t.key}_${++this.#o}`;
166
+ this.#u(t, r.runtime, r.client);
167
+ let s = t.owner?.subject;
168
+ if (s === void 0) throw new n("inactive");
169
+ let l = r.descriptors[this.#t]?.outputRetention === "none", d = !r.descriptors[this.#t] || r.descriptors[this.#t]?.clientHistory?.input === "omit", h = m({
170
+ id: o,
171
171
  apiName: this.#e,
172
172
  tag: this.#t,
173
- input: d ? void 0 : n.input,
173
+ input: d ? void 0 : t.input,
174
174
  ...d ? { inputOmitted: !0 } : {},
175
- ...u ? { outputOmitted: !0 } : {}
176
- }, l), h = () => {
175
+ ...l ? { outputOmitted: !0 } : {}
176
+ }, s), g = () => {
177
177
  try {
178
- return this.#u(n, a.runtime, a.client), !0;
178
+ return this.#u(t, r.runtime, r.client), !0;
179
179
  } catch {
180
180
  return !1;
181
181
  }
182
182
  };
183
183
  return v.suspend(() => {
184
- this.#u(n, a.runtime, a.client);
185
- let e = i(a.client, this.#t);
186
- return g(e(n.input), n.key);
187
- }).pipe(v.withSpan(`client.connectionSetup.${this.#t}`)).pipe(v.onExit((n) => v.sync(() => {
188
- if (this.#n().descriptors[this.#t]?.clientHistory?.input === "omit" && f(this.#e, this.#t), y.isSuccess(n)) {
189
- let e = u || this.#n().descriptors[this.#t]?.outputRetention === "none";
190
- if (m.settle({
184
+ this.#u(t, r.runtime, r.client);
185
+ let e = u(r.client, this.#t);
186
+ return c(e(t.input), t.key);
187
+ }).pipe(v.withSpan(`client.connectionSetup.${this.#t}`)).pipe(v.onExit((t) => v.sync(() => {
188
+ if (this.#n().descriptors[this.#t]?.clientHistory?.input === "omit" && p(this.#e, this.#t), y.isSuccess(t)) {
189
+ let e = l || this.#n().descriptors[this.#t]?.outputRetention === "none";
190
+ if (h.settle({
191
191
  status: "success",
192
- output: e ? void 0 : n.value,
192
+ output: e ? void 0 : t.value,
193
193
  ...e ? { outputOmitted: !0 } : {}
194
- }), !h()) return;
195
- a.errorBus.emitSuccess({
194
+ }), !g()) return;
195
+ r.errorBus.emitSuccess({
196
196
  source: "mutation",
197
197
  tag: this.#t
198
198
  });
199
199
  } else {
200
- let r = e(n.cause);
201
- if (m.settle({
200
+ let n = e(t.cause);
201
+ if (h.settle({
202
202
  status: "error",
203
- error: r
204
- }), h() && !_.hasInterruptsOnly(n.cause)) {
205
- let e = t(r, "handler");
206
- a.errorBus.emit({
203
+ error: n
204
+ }), g() && !_.hasInterruptsOnly(t.cause)) {
205
+ let e = f(n, "handler");
206
+ r.errorBus.emit({
207
207
  source: "mutation",
208
208
  tag: this.#t,
209
- error: r,
209
+ error: n,
210
210
  kind: e,
211
211
  outcome: e === "transport" ? "unknown" : "known"
212
212
  });
@@ -214,12 +214,12 @@ var b = class {
214
214
  }
215
215
  })), v.flatMap((e) => v.try({
216
216
  try: () => {
217
- this.#u(n, a.runtime, a.client);
218
- let t = r(a.runtime)?.getSnapshot();
219
- if (t !== o || o.signal.aborted) throw new s("connection-changed");
220
- u || this.#n().descriptors[this.#t]?.outputRetention === "none" ? n.outputs = /* @__PURE__ */ new WeakMap() : n.outputs.set(t, e);
221
- let i = n.initialDelivery;
222
- n.initialDelivery = void 0, i?.(e);
217
+ this.#u(t, r.runtime, r.client);
218
+ let o = a(r.runtime)?.getSnapshot();
219
+ if (o !== i || i.signal.aborted) throw new n("connection-changed");
220
+ l || this.#n().descriptors[this.#t]?.outputRetention === "none" ? t.outputs = /* @__PURE__ */ new WeakMap() : t.outputs.set(o, e);
221
+ let s = t.initialDelivery;
222
+ t.initialDelivery = void 0, s?.(e);
223
223
  },
224
224
  catch: (e) => e
225
225
  })));
@@ -1,14 +1,14 @@
1
- import { useSubscription as e } from "./useSubscription.js";
2
- import { useMutation as t } from "./useMutation.js";
3
- import { useAction as n } from "./useAction.js";
4
- import { useFormBinding as r } from "./useFormBinding.js";
5
- import { useConnectionSetup as i } from "./useConnectionSetup.js";
1
+ import { useAction as e } from "./useAction.js";
2
+ import { useFormBinding as t } from "./useFormBinding.js";
3
+ import { useMutation as n } from "./useMutation.js";
4
+ import { useConnectionSetup as r } from "./useConnectionSetup.js";
5
+ import { useSubscription as i } from "./useSubscription.js";
6
6
  // src/createHooks.ts
7
- var a = e, o = (e) => ({
8
- useSubscription: (t, n, r) => a(e, t, n, r),
9
- useMutation: (n) => t(e, n),
10
- useConnectionSetup: (t) => i(e, t),
11
- useAction: (t) => n(e, t),
12
- useFormBinding: (t, n) => r(e, t, n ?? {})
7
+ var a = i, o = (i) => ({
8
+ useSubscription: (e, t, n) => a(i, e, t, n),
9
+ useMutation: (e) => n(i, e),
10
+ useConnectionSetup: (e) => r(i, e),
11
+ useAction: (t) => e(i, t),
12
+ useFormBinding: (e, n) => t(i, e, n ?? {})
13
13
  });
14
14
  export { o as createHooks };
package/dist/form.js CHANGED
@@ -1,7 +1,7 @@
1
- import { formField as e, formSections as t, schemaToColumns as n, schemaToFields as r } from "./schemaFields.js";
2
- import { decodeFieldIssues as i, documentLocale as a, resolveValidationMessage as o, restrictToSchema as s, validateFields as c } from "./formBinding.js";
3
- import { FORM_FLASH_SCRIPT_ID as l } from "./formFlashId.js";
4
- import { FORM_CAPTURE_FIELD as u, FORM_CAPTURE_META_NAME as d, FORM_KEY_FIELD as f, FORM_PATH_PREFIX as p, FORM_REDIRECT_FIELD as m, FORM_SOURCE_FIELD as h, encodeNativeFormCapture as g, formActionPath as _, formCaptureSource as v, formSourcePath as y, readFormCaptureSource as b } from "./formSource.js";
5
- import { formDataToInput as x, recoverNativeFormValues as S } from "./formData.js";
6
- import { encodeFormRejection as C } from "./formRejection.js";
7
- export { u as FORM_CAPTURE_FIELD, d as FORM_CAPTURE_META_NAME, l as FORM_FLASH_SCRIPT_ID, f as FORM_KEY_FIELD, p as FORM_PATH_PREFIX, m as FORM_REDIRECT_FIELD, h as FORM_SOURCE_FIELD, i as decodeFieldIssues, a as documentLocale, C as encodeFormRejection, g as encodeNativeFormCapture, _ as formActionPath, v as formCaptureSource, x as formDataToInput, e as formField, t as formSections, y as formSourcePath, b as readFormCaptureSource, S as recoverNativeFormValues, o as resolveValidationMessage, s as restrictToSchema, n as schemaToColumns, r as schemaToFields, c as validateFields };
1
+ import { decodeFieldIssues as e, documentLocale as t, resolveValidationMessage as n, restrictToSchema as r, validateFields as i } from "./formBinding.js";
2
+ import { formDataToInput as a, recoverNativeFormValues as o } from "./formData.js";
3
+ import { FORM_FLASH_SCRIPT_ID as s } from "./formFlashId.js";
4
+ import { FORM_CAPTURE_FIELD as c, FORM_CAPTURE_META_NAME as l, FORM_KEY_FIELD as u, FORM_PATH_PREFIX as d, FORM_REDIRECT_FIELD as f, FORM_SOURCE_FIELD as p, encodeNativeFormCapture as m, formActionPath as h, formCaptureSource as g, formSourcePath as _, readFormCaptureSource as v } from "./formSource.js";
5
+ import { encodeFormRejection as y } from "./formRejection.js";
6
+ import { formField as b, formSections as x, schemaToColumns as S, schemaToFields as C } from "./schemaFields.js";
7
+ export { c as FORM_CAPTURE_FIELD, l as FORM_CAPTURE_META_NAME, s as FORM_FLASH_SCRIPT_ID, u as FORM_KEY_FIELD, d as FORM_PATH_PREFIX, f as FORM_REDIRECT_FIELD, p as FORM_SOURCE_FIELD, e as decodeFieldIssues, t as documentLocale, y as encodeFormRejection, m as encodeNativeFormCapture, h as formActionPath, g as formCaptureSource, a as formDataToInput, b as formField, x as formSections, _ as formSourcePath, v as readFormCaptureSource, o as recoverNativeFormValues, n as resolveValidationMessage, r as restrictToSchema, S as schemaToColumns, C as schemaToFields, i as validateFields };
package/dist/index.js CHANGED
@@ -1,89 +1,89 @@
1
- import { registerCellMerger as e, registeredCellMerger as t } from "./cellMerger.js";
2
- import { publishClientTrace as n, publishClientTraceRefusal as r, subscribeClientTraceRefusals as i, subscribeClientTraces as a } from "./traceBus.js";
3
- import { clearClientDiagnostics as o, clientDiagnosticsSnapshot as s, disableClientDiagnosticsPersistence as c, enableClientDiagnosticsPersistence as l, recordClientDiagnostic as u, subscribeClientDiagnostics as d } from "./clientDiagnostics.js";
1
+ import { _resetFrameworkRuntimesWarning as e, _resetSsrDescriptors as t, registerSsrDescriptors as n, ssrClientProxy as r, ssrDescriptorsFor as i, ssrStubHandle as a, useFrameworkApi as o, useFrameworkRuntimes as s } from "./runtimeContext.js";
2
+ import { buildApiRuntime as c, makeProtocolOpenRecovery as l } from "./apiRuntime.js";
3
+ import { registerCellMerger as u, registeredCellMerger as d } from "./cellMerger.js";
4
4
  import { stableKey as f } from "./stableKey.js";
5
- import { LoadingSubscriptionCache as p, SubscriptionCache as m, supersedesConfirmedPatches as h } from "./subscriptionCache.js";
6
- import { publishClientError as g, reportClientError as _, subscribeClientErrors as v } from "./clientErrorBus.js";
7
- import { RpcErrorBus as y } from "./rpcErrorBus.js";
8
- import { apiConnectivity as b } from "./apiConnectivity.js";
9
- import { INITIAL_RECOVERY_SNAPSHOT as x, RecoveryCoordinator as S, recoveryCoordinatorFor as C, resolveRecoveryOptions as w } from "./recoveryCoordinator.js";
10
- import { globalContext as T } from "./globalContext.js";
11
- import { FrameworkRuntimesContext as E, isUnresolvedApi as D, unknownApiError as O } from "./frameworkRuntimesContext.js";
12
- import { _resetFrameworkRuntimesWarning as k, _resetSsrDescriptors as A, registerSsrDescriptors as j, ssrClientProxy as M, ssrDescriptorsFor as N, ssrStubHandle as P, useFrameworkApi as F, useFrameworkRuntimes as I } from "./runtimeContext.js";
13
- import { resolveByTag as L } from "./tagWalk.js";
14
- import { buildApiRuntime as R, makeProtocolOpenRecovery as z } from "./apiRuntime.js";
15
- import { startApiSupervisor as B } from "./apiSupervisor.js";
16
- import { FrameworkRuntimesProvider as V } from "./provider.js";
17
- import { browserStoreStorage as H, resetStoreStorageForTest as U, resolveStoreStorage as W, setStoreStorage as G } from "./storeStorage.js";
18
- import { applyStoreSeeds as K, clearStoreHistory as q, defineStore as J, definedStores as Y, makeStoreSeedBag as X, resetStoreRegistryForTests as Z, seedStore as Q, setStoreSeedResolver as $, shallow as ee, storeHistory as te, subscribeStoreHistory as ne, travelToStoreState as re } from "./store.js";
19
- import { browserOnlineSource as ie } from "./onlineSource.js";
20
- import { browserPlatform as ae, capabilitiesOf as oe, currentPlatform as se, definePlatform as ce, installPlatform as le, isPlatformInstalled as ue, isStandaloneDisplay as de, memoryTokenStore as fe, refusingTokenStore as pe, resetPlatformForTest as me, usePlatform as he, useShellExtension as ge } from "./platform.js";
21
- import { deepLinkHref as _e, defineDeepLink as ve, dispatchDeepLink as ye, matchDeepLink as be, matchFirstDeepLink as xe, runDeepLink as Se } from "./deepLink.js";
22
- import { useSubscription as Ce } from "./useSubscription.js";
23
- import { useRpcDeclared as we } from "./rpcDeclared.js";
24
- import { clearMutations as Te, getMutations as Ee, omitMutationInputs as De, omitMutationOutputs as Oe, startMutation as ke, subscribeMutations as Ae } from "./mutationsBus.js";
25
- import { freshIdempotencyKey as je, withIdempotencyKey as Me } from "./mutationIdentity.js";
26
- import { MutationSerialExecutionError as Ne } from "./mutationSerialExecution.js";
27
- import { getMutationNotifier as Pe, setMutationNotifier as Fe, useMutation as Ie } from "./useMutation.js";
28
- import { useAction as Le } from "./useAction.js";
29
- import { formField as Re, formSections as ze, schemaToColumns as Be, schemaToFields as Ve } from "./schemaFields.js";
30
- import { decodeFieldIssues as He, documentLocale as Ue, resolveValidationMessage as We, restrictToSchema as Ge, validateFields as Ke } from "./formBinding.js";
31
- import { ValidationMessagesProvider as qe, useValidationMessages as Je } from "./validationMessages.js";
32
- import { RICH_TEXT_MARKS as Ye, RICH_TEXT_MAX_NODES as Xe, RichTextDocument as Ze, emptyRichTextDocument as Qe, isRichTextDocument as $e, isSafeHref as et, parseRichText as tt, richTextToPlainText as nt, serializeRichText as rt } from "./richText.js";
33
- import { FORM_FLASH_SCRIPT_ID as it } from "./formFlashId.js";
34
- import { FORM_CAPTURE_FIELD as at, FORM_CAPTURE_META_NAME as ot, FORM_KEY_FIELD as st, FORM_PATH_PREFIX as ct, FORM_REDIRECT_FIELD as lt, FORM_SOURCE_FIELD as ut, encodeNativeFormCapture as dt, formActionPath as ft, formCaptureSource as pt, formSourcePath as mt, readFormCaptureSource as ht } from "./formSource.js";
35
- import { formDataToInput as gt, recoverNativeFormValues as _t } from "./formData.js";
36
- import { ServerRequestContext as vt, ServerRequestProvider as yt, useFormCapture as bt, useFormFlash as xt, useServerRequest as St } from "./serverRequest.js";
37
- import { FormBindingProvider as Ct, useFormBinding as wt, useFormBindingContext as Tt, useFormField as Et, useSchemaFormBinding as Dt } from "./useFormBinding.js";
38
- import { useConnectionSetup as Ot } from "./useConnectionSetup.js";
39
- import { createHooks as kt } from "./createHooks.js";
40
- import { applyPreloadSeeds as At, makePreloadSeedBag as jt, readPreloadedSeedOutcome as Mt, readPreloadedSnapshot as Nt, resetPreloadSeeds as Pt, seedPreloadedSubscription as Ft, seedPreloadedSubscriptionFailure as It, setPreloadSeedResolver as Lt } from "./preloadSeed.js";
41
- import { usePreloadedSubscription as Rt } from "./usePreloadedSubscription.js";
42
- import { useEvent as zt } from "./useEvent.js";
43
- import { runSequence as Bt, sequence as Vt } from "./sequence.js";
44
- import { useSequence as Ht } from "./useSequence.js";
45
- import { useRpcCaller as Ut } from "./useRpcCaller.js";
46
- import { useUpload as Wt } from "./useUpload.js";
47
- import { useTranscription as Gt } from "./useTranscription.js";
48
- import { useWorkflow as Kt, useWorkflowDomainEvents as qt, useWorkflowEventDeliveries as Jt, useWorkflowEvents as Yt, useWorkflowRun as Xt, useWorkflowRunEvents as Zt, useWorkflowRunSteps as Qt, useWorkflowRuns as $t, useWorkflowSignal as en, useWorkflowUpdate as tn } from "./useWorkflow.js";
49
- import { useWorkflowRunState as nn } from "./useWorkflowRunState.js";
50
- import { useAgentStream as rn } from "./useAgentStream.js";
51
- import { resumableConsumeProgram as an, useResumableAgentStream as on } from "./useResumableAgentStream.js";
52
- import { useAgentChat as sn } from "./useAgentChat.js";
53
- import { useAgent as cn } from "./useAgent.js";
54
- import { useDataCopilot as ln } from "./useDataCopilot.js";
55
- import { useRefreshSubscription as un, useRefreshSubscriptions as dn } from "./useRefreshSubscriptions.js";
56
- import { queryOnce as fn } from "./query.js";
57
- import { isUnauthenticated as pn, wireAuthRefresh as mn } from "./authRefresh.js";
58
- import { useOnRawRpcError as hn, useOnRpcError as gn } from "./useOnRpcError.js";
59
- import { useSubscriptionHealth as _n } from "./useSubscriptionHealth.js";
60
- import { encodeFormRejection as vn } from "./formRejection.js";
61
- import { rowsToOptions as yn, useQueryField as bn } from "./useQueryField.js";
62
- import { useDataTable as xn } from "./useDataTable.js";
63
- import { provenanceUrl as Sn, useProvenance as Cn } from "./useProvenance.js";
64
- import { ADMIN_SCOPE as wn, PermissionProvider as Tn, canCall as En, canCallAny as Dn, useCan as On, useCanAny as kn, usePermissions as An } from "./permissions.js";
65
- import { decideAccess as jn, deriveEntityAdmins as Mn, manifestUrl as Nn, openAccessReason as Pn, requiredScopes as Fn, useAccessDecision as In, useCapabilityManifest as Ln } from "./useCapabilityManifest.js";
66
- import { useUndo as Rn } from "./useUndo.js";
67
- import { UNDO_APPLY_TAG as zn, UNDO_LOG_TAG as Bn, UNDO_REDO_TAG as Vn, useUndoLog as Hn } from "./useUndoLog.js";
68
- import { defineTracking as Un, resolveTrackingEvent as Wn, useTracking as Gn, wrapTrackedCallbacks as Kn } from "./tracking.js";
69
- import { useFormSkeleton as qn, useTableSkeleton as Jn } from "./useSkeleton.js";
70
- import { shallowArrayEqual as Yn, sourceValues as Xn, useDerived as Zn } from "./useDerived.js";
71
- import { useResourceCan as Qn, useResourceCans as $n } from "./useResourceCan.js";
72
- import { filtersFromSchema as er, useQueryFilters as tr } from "./filters.js";
73
- import { useRecord as nr } from "./useRecord.js";
74
- import { useAsyncValidation as rr, useDebounced as ir, validationStatus as ar } from "./validation.js";
75
- import { createAnalytics as or, defineEvent as sr, eventCatalog as cr, validateEventPayload as lr } from "./analyticsCatalog.js";
76
- import { usePreview as ur } from "./usePreview.js";
77
- import { readApiOnline as dr, subscribeApiOnline as fr, useApiOnline as pr } from "./useApiOnline.js";
78
- import { clearSent as mr, defaultOutboxRetryDelay as hr, enqueueEntry as gr, markConflict as _r, markFailed as vr, markSent as yr, replayable as br, resolveConflictEntry as xr, useOutbox as Sr } from "./outbox.js";
79
- import { OUTBOX_DB_NAME as Cr, OUTBOX_SYNC_TAG as wr, drainOutboxInWorker as Tr, drainOutboxOverHttp as Er, indexedDbOutboxPersistence as Dr, rpcHttpOutcome as Or } from "./outboxHttp.js";
80
- import { computeWindow as kr, useWindowedSubscription as Ar } from "./useWindowedSubscription.js";
81
- import { useConnectionStatus as jr } from "./useConnectionStatus.js";
82
- import { runLocalQuery as Mr, useLocalQuery as Nr } from "./useLocalQuery.js";
5
+ import { startApiSupervisor as p } from "./apiSupervisor.js";
6
+ import { FrameworkRuntimesProvider as m } from "./provider.js";
7
+ import { LoadingSubscriptionCache as h, SubscriptionCache as g, supersedesConfirmedPatches as _ } from "./subscriptionCache.js";
8
+ import { applyStoreSeeds as v, clearStoreHistory as y, defineStore as b, definedStores as x, makeStoreSeedBag as S, resetStoreRegistryForTests as C, seedStore as w, setStoreSeedResolver as T, shallow as E, storeHistory as D, subscribeStoreHistory as O, travelToStoreState as k } from "./store.js";
9
+ import { browserStoreStorage as A, resetStoreStorageForTest as j, resolveStoreStorage as M, setStoreStorage as N } from "./storeStorage.js";
10
+ import { browserPlatform as P, capabilitiesOf as F, currentPlatform as I, definePlatform as L, installPlatform as R, isPlatformInstalled as z, isStandaloneDisplay as B, memoryTokenStore as V, refusingTokenStore as H, resetPlatformForTest as U, usePlatform as W, useShellExtension as G } from "./platform.js";
11
+ import { FrameworkRuntimesContext as K, isUnresolvedApi as q, unknownApiError as J } from "./frameworkRuntimesContext.js";
12
+ import { browserOnlineSource as Y } from "./onlineSource.js";
13
+ import { deepLinkHref as X, defineDeepLink as Z, dispatchDeepLink as Q, matchDeepLink as $, matchFirstDeepLink as ee, runDeepLink as te } from "./deepLink.js";
14
+ import { resolveByTag as ne } from "./tagWalk.js";
15
+ import { useSubscription as re } from "./useSubscription.js";
16
+ import { useRpcDeclared as ie } from "./rpcDeclared.js";
17
+ import { createHooks as ae } from "./createHooks.js";
18
+ import { applyPreloadSeeds as oe, makePreloadSeedBag as se, readPreloadedSeedOutcome as ce, readPreloadedSnapshot as le, resetPreloadSeeds as ue, seedPreloadedSubscription as de, seedPreloadedSubscriptionFailure as fe, setPreloadSeedResolver as pe } from "./preloadSeed.js";
19
+ import { usePreloadedSubscription as me } from "./usePreloadedSubscription.js";
20
+ import { useEvent as he } from "./useEvent.js";
21
+ import { runSequence as ge, sequence as _e } from "./sequence.js";
22
+ import { useSequence as ve } from "./useSequence.js";
23
+ import { getMutationNotifier as ye, setMutationNotifier as be, useMutation as xe } from "./useMutation.js";
24
+ import { useConnectionSetup as Se } from "./useConnectionSetup.js";
25
+ import { freshIdempotencyKey as Ce, withIdempotencyKey as we } from "./mutationIdentity.js";
26
+ import { MutationSerialExecutionError as Te } from "./mutationSerialExecution.js";
27
+ import { useAction as Ee } from "./useAction.js";
28
+ import { useRpcCaller as De } from "./useRpcCaller.js";
29
+ import { useUpload as Oe } from "./useUpload.js";
30
+ import { useTranscription as ke } from "./useTranscription.js";
31
+ import { useWorkflow as Ae, useWorkflowDomainEvents as je, useWorkflowEventDeliveries as Me, useWorkflowEvents as Ne, useWorkflowRun as Pe, useWorkflowRunEvents as Fe, useWorkflowRunSteps as Ie, useWorkflowRuns as Le, useWorkflowSignal as Re, useWorkflowUpdate as ze } from "./useWorkflow.js";
32
+ import { useWorkflowRunState as Be } from "./useWorkflowRunState.js";
33
+ import { FORM_FLASH_SCRIPT_ID as Ve } from "./formFlashId.js";
34
+ import { FORM_CAPTURE_FIELD as He, FORM_CAPTURE_META_NAME as Ue, FORM_KEY_FIELD as We, FORM_PATH_PREFIX as Ge, FORM_REDIRECT_FIELD as Ke, FORM_SOURCE_FIELD as qe, encodeNativeFormCapture as Je, formActionPath as Ye, formCaptureSource as Xe, formSourcePath as Ze, readFormCaptureSource as Qe } from "./formSource.js";
35
+ import { useAgentStream as $e } from "./useAgentStream.js";
36
+ import { resumableConsumeProgram as et, useResumableAgentStream as tt } from "./useResumableAgentStream.js";
37
+ import { useAgentChat as nt } from "./useAgentChat.js";
38
+ import { useAgent as rt } from "./useAgent.js";
39
+ import { useDataCopilot as it } from "./useDataCopilot.js";
40
+ import { useRefreshSubscription as at, useRefreshSubscriptions as ot } from "./useRefreshSubscriptions.js";
41
+ import { queryOnce as st } from "./query.js";
42
+ import { clearMutations as ct, getMutations as lt, omitMutationInputs as ut, omitMutationOutputs as dt, startMutation as ft, subscribeMutations as pt } from "./mutationsBus.js";
43
+ import { RpcErrorBus as mt } from "./rpcErrorBus.js";
44
+ import { isUnauthenticated as ht, wireAuthRefresh as gt } from "./authRefresh.js";
45
+ import { publishClientTrace as _t, publishClientTraceRefusal as vt, subscribeClientTraceRefusals as yt, subscribeClientTraces as bt } from "./traceBus.js";
46
+ import { publishClientError as xt, reportClientError as St, subscribeClientErrors as Ct } from "./clientErrorBus.js";
47
+ import { useOnRawRpcError as wt, useOnRpcError as Tt } from "./useOnRpcError.js";
48
+ import { useSubscriptionHealth as Et } from "./useSubscriptionHealth.js";
49
+ import { formField as Dt, formSections as Ot, schemaToColumns as kt, schemaToFields as At } from "./schemaFields.js";
50
+ import { RICH_TEXT_MARKS as jt, RICH_TEXT_MAX_NODES as Mt, RichTextDocument as Nt, emptyRichTextDocument as Pt, isRichTextDocument as Ft, isSafeHref as It, parseRichText as Lt, richTextToPlainText as Rt, serializeRichText as zt } from "./richText.js";
51
+ import { decodeFieldIssues as Bt, documentLocale as Vt, resolveValidationMessage as Ht, restrictToSchema as Ut, validateFields as Wt } from "./formBinding.js";
52
+ import { formDataToInput as Gt, recoverNativeFormValues as Kt } from "./formData.js";
53
+ import { encodeFormRejection as qt } from "./formRejection.js";
54
+ import { ServerRequestContext as Jt, ServerRequestProvider as Yt, useFormCapture as Xt, useFormFlash as Zt, useServerRequest as Qt } from "./serverRequest.js";
55
+ import { globalContext as $t } from "./globalContext.js";
56
+ import { FormBindingProvider as en, useFormBinding as tn, useFormBindingContext as nn, useFormField as rn, useSchemaFormBinding as an } from "./useFormBinding.js";
57
+ import { ValidationMessagesProvider as on, useValidationMessages as sn } from "./validationMessages.js";
58
+ import { rowsToOptions as cn, useQueryField as ln } from "./useQueryField.js";
59
+ import { useDataTable as un } from "./useDataTable.js";
60
+ import { provenanceUrl as dn, useProvenance as fn } from "./useProvenance.js";
61
+ import { decideAccess as pn, deriveEntityAdmins as mn, manifestUrl as hn, openAccessReason as gn, requiredScopes as _n, useAccessDecision as vn, useCapabilityManifest as yn } from "./useCapabilityManifest.js";
62
+ import { useUndo as bn } from "./useUndo.js";
63
+ import { UNDO_APPLY_TAG as xn, UNDO_LOG_TAG as Sn, UNDO_REDO_TAG as Cn, useUndoLog as wn } from "./useUndoLog.js";
64
+ import { defineTracking as Tn, resolveTrackingEvent as En, useTracking as Dn, wrapTrackedCallbacks as On } from "./tracking.js";
65
+ import { useFormSkeleton as kn, useTableSkeleton as An } from "./useSkeleton.js";
66
+ import { shallowArrayEqual as jn, sourceValues as Mn, useDerived as Nn } from "./useDerived.js";
67
+ import { ADMIN_SCOPE as Pn, PermissionProvider as Fn, canCall as In, canCallAny as Ln, useCan as Rn, useCanAny as zn, usePermissions as Bn } from "./permissions.js";
68
+ import { useResourceCan as Vn, useResourceCans as Hn } from "./useResourceCan.js";
69
+ import { filtersFromSchema as Un, useQueryFilters as Wn } from "./filters.js";
70
+ import { useRecord as Gn } from "./useRecord.js";
71
+ import { useAsyncValidation as Kn, useDebounced as qn, validationStatus as Jn } from "./validation.js";
72
+ import { createAnalytics as Yn, defineEvent as Xn, eventCatalog as Zn, validateEventPayload as Qn } from "./analyticsCatalog.js";
73
+ import { usePreview as $n } from "./usePreview.js";
74
+ import { clearSent as er, defaultOutboxRetryDelay as tr, enqueueEntry as nr, markConflict as rr, markFailed as ir, markSent as ar, replayable as or, resolveConflictEntry as sr, useOutbox as cr } from "./outbox.js";
75
+ import { OUTBOX_DB_NAME as lr, OUTBOX_SYNC_TAG as ur, drainOutboxInWorker as dr, drainOutboxOverHttp as fr, indexedDbOutboxPersistence as pr, rpcHttpOutcome as mr } from "./outboxHttp.js";
76
+ import { computeWindow as hr, useWindowedSubscription as gr } from "./useWindowedSubscription.js";
77
+ import { useConnectionStatus as _r } from "./useConnectionStatus.js";
78
+ import { INITIAL_RECOVERY_SNAPSHOT as vr, RecoveryCoordinator as yr, recoveryCoordinatorFor as br, resolveRecoveryOptions as xr } from "./recoveryCoordinator.js";
79
+ import { apiConnectivity as Sr } from "./apiConnectivity.js";
80
+ import { readApiOnline as Cr, subscribeApiOnline as wr, useApiOnline as Tr } from "./useApiOnline.js";
81
+ import { runLocalQuery as Er, useLocalQuery as Dr } from "./useLocalQuery.js";
82
+ import { clearClientDiagnostics as Or, clientDiagnosticsSnapshot as kr, disableClientDiagnosticsPersistence as Ar, enableClientDiagnosticsPersistence as jr, recordClientDiagnostic as Mr, subscribeClientDiagnostics as Nr } from "./clientDiagnostics.js";
83
83
  import { CONNECTIONS_LIST_TAG as Pr, CONNECTION_DISCONNECT_TAG as Fr, CONNECTION_START_TAG as Ir, CONNECTION_SUBMIT_TOKEN_TAG as Lr, useConnection as Rr, useConnections as zr } from "./useConnections.js";
84
84
  import { makeApiRoleSocketTracker as Br, makeApiSocketTracker as Vr } from "./apiSocketTracker.js";
85
85
  import { DEV_ACTIVITY_EVENT as Hr, PAIRING_HOST as Ur, PAIRING_SCHEME as Wr, PAIRING_STORAGE_KEY as Gr, applyPairing as Kr, clearPairing as qr, errorMessage as Jr, errorTag as Yr, jsonSchemaDocumentOf as Xr, jsonSchemaOf as Zr, pairingLink as Qr, parsePairingLink as $r, readPairing as ei } from "@voltro/protocol";
86
86
  import { DEFAULT_WEBHOOK_INSPECT_LIST as ti, MAX_WEBHOOK_INSPECT_OFFSET as ni, isWebhookEventActivity as ri, isWebhookInspectActivityStatus as ii, isWebhookInspectPagination as ai, webhookInspectListRequest as oi } from "@voltro/protocol/inspect";
87
87
  // src/index.ts
88
88
  var si = "framework-client";
89
- export { wn as ADMIN_SCOPE, si as CLIENT_NAME, Pr as CONNECTIONS_LIST_TAG, Fr as CONNECTION_DISCONNECT_TAG, Ir as CONNECTION_START_TAG, Lr as CONNECTION_SUBMIT_TOKEN_TAG, ti as DEFAULT_WEBHOOK_INSPECT_LIST, Hr as DEV_ACTIVITY_EVENT, at as FORM_CAPTURE_FIELD, ot as FORM_CAPTURE_META_NAME, it as FORM_FLASH_SCRIPT_ID, st as FORM_KEY_FIELD, ct as FORM_PATH_PREFIX, lt as FORM_REDIRECT_FIELD, ut as FORM_SOURCE_FIELD, Ct as FormBindingProvider, E as FrameworkRuntimesContext, V as FrameworkRuntimesProvider, x as INITIAL_RECOVERY_SNAPSHOT, p as LoadingSubscriptionCache, ni as MAX_WEBHOOK_INSPECT_OFFSET, Ne as MutationSerialExecutionError, Cr as OUTBOX_DB_NAME, wr as OUTBOX_SYNC_TAG, Ur as PAIRING_HOST, Wr as PAIRING_SCHEME, Gr as PAIRING_STORAGE_KEY, Tn as PermissionProvider, Ye as RICH_TEXT_MARKS, Xe as RICH_TEXT_MAX_NODES, S as RecoveryCoordinator, Ze as RichTextDocument, y as RpcErrorBus, vt as ServerRequestContext, yt as ServerRequestProvider, m as SubscriptionCache, zn as UNDO_APPLY_TAG, Bn as UNDO_LOG_TAG, Vn as UNDO_REDO_TAG, qe as ValidationMessagesProvider, k as _resetFrameworkRuntimesWarning, A as _resetSsrDescriptors, b as apiConnectivity, Kr as applyPairing, At as applyPreloadSeeds, K as applyStoreSeeds, ie as browserOnlineSource, ae as browserPlatform, H as browserStoreStorage, R as buildApiRuntime, En as canCall, Dn as canCallAny, oe as capabilitiesOf, o as clearClientDiagnostics, Te as clearMutations, qr as clearPairing, mr as clearSent, q as clearStoreHistory, s as clientDiagnosticsSnapshot, kr as computeWindow, or as createAnalytics, kt as createHooks, se as currentPlatform, jn as decideAccess, He as decodeFieldIssues, _e as deepLinkHref, hr as defaultOutboxRetryDelay, ve as defineDeepLink, sr as defineEvent, ce as definePlatform, J as defineStore, Un as defineTracking, Y as definedStores, Mn as deriveEntityAdmins, c as disableClientDiagnosticsPersistence, ye as dispatchDeepLink, Ue as documentLocale, Tr as drainOutboxInWorker, Er as drainOutboxOverHttp, Qe as emptyRichTextDocument, l as enableClientDiagnosticsPersistence, vn as encodeFormRejection, dt as encodeNativeFormCapture, gr as enqueueEntry, Jr as errorMessage, Yr as errorTag, cr as eventCatalog, er as filtersFromSchema, ft as formActionPath, pt as formCaptureSource, gt as formDataToInput, Re as formField, ze as formSections, mt as formSourcePath, je as freshIdempotencyKey, Pe as getMutationNotifier, Ee as getMutations, T as globalContext, Dr as indexedDbOutboxPersistence, le as installPlatform, ue as isPlatformInstalled, $e as isRichTextDocument, et as isSafeHref, de as isStandaloneDisplay, pn as isUnauthenticated, D as isUnresolvedApi, ri as isWebhookEventActivity, ii as isWebhookInspectActivityStatus, ai as isWebhookInspectPagination, Xr as jsonSchemaDocumentOf, Zr as jsonSchemaOf, Br as makeApiRoleSocketTracker, Vr as makeApiSocketTracker, jt as makePreloadSeedBag, z as makeProtocolOpenRecovery, X as makeStoreSeedBag, Nn as manifestUrl, _r as markConflict, vr as markFailed, yr as markSent, be as matchDeepLink, xe as matchFirstDeepLink, fe as memoryTokenStore, De as omitMutationInputs, Oe as omitMutationOutputs, Pn as openAccessReason, Qr as pairingLink, $r as parsePairingLink, tt as parseRichText, Sn as provenanceUrl, g as publishClientError, n as publishClientTrace, r as publishClientTraceRefusal, fn as queryOnce, dr as readApiOnline, ht as readFormCaptureSource, ei as readPairing, Mt as readPreloadedSeedOutcome, Nt as readPreloadedSnapshot, u as recordClientDiagnostic, _t as recoverNativeFormValues, C as recoveryCoordinatorFor, pe as refusingTokenStore, e as registerCellMerger, j as registerSsrDescriptors, t as registeredCellMerger, br as replayable, _ as reportClientError, Fn as requiredScopes, me as resetPlatformForTest, Pt as resetPreloadSeeds, Z as resetStoreRegistryForTests, U as resetStoreStorageForTest, L as resolveByTag, xr as resolveConflictEntry, w as resolveRecoveryOptions, W as resolveStoreStorage, Wn as resolveTrackingEvent, We as resolveValidationMessage, Ge as restrictToSchema, an as resumableConsumeProgram, nt as richTextToPlainText, yn as rowsToOptions, Or as rpcHttpOutcome, Se as runDeepLink, Mr as runLocalQuery, Bt as runSequence, Be as schemaToColumns, Ve as schemaToFields, Ft as seedPreloadedSubscription, It as seedPreloadedSubscriptionFailure, Q as seedStore, Vt as sequence, rt as serializeRichText, Fe as setMutationNotifier, Lt as setPreloadSeedResolver, $ as setStoreSeedResolver, G as setStoreStorage, ee as shallow, Yn as shallowArrayEqual, Xn as sourceValues, M as ssrClientProxy, N as ssrDescriptorsFor, P as ssrStubHandle, f as stableKey, B as startApiSupervisor, ke as startMutation, te as storeHistory, fr as subscribeApiOnline, d as subscribeClientDiagnostics, v as subscribeClientErrors, i as subscribeClientTraceRefusals, a as subscribeClientTraces, Ae as subscribeMutations, ne as subscribeStoreHistory, h as supersedesConfirmedPatches, re as travelToStoreState, O as unknownApiError, In as useAccessDecision, Le as useAction, cn as useAgent, sn as useAgentChat, rn as useAgentStream, pr as useApiOnline, rr as useAsyncValidation, On as useCan, kn as useCanAny, Ln as useCapabilityManifest, Rr as useConnection, Ot as useConnectionSetup, jr as useConnectionStatus, zr as useConnections, ln as useDataCopilot, xn as useDataTable, ir as useDebounced, Zn as useDerived, zt as useEvent, wt as useFormBinding, Tt as useFormBindingContext, bt as useFormCapture, Et as useFormField, xt as useFormFlash, qn as useFormSkeleton, F as useFrameworkApi, I as useFrameworkRuntimes, Nr as useLocalQuery, Ie as useMutation, hn as useOnRawRpcError, gn as useOnRpcError, Sr as useOutbox, An as usePermissions, he as usePlatform, Rt as usePreloadedSubscription, ur as usePreview, Cn as useProvenance, bn as useQueryField, tr as useQueryFilters, nr as useRecord, un as useRefreshSubscription, dn as useRefreshSubscriptions, Qn as useResourceCan, $n as useResourceCans, on as useResumableAgentStream, Ut as useRpcCaller, we as useRpcDeclared, Dt as useSchemaFormBinding, Ht as useSequence, St as useServerRequest, ge as useShellExtension, Ce as useSubscription, _n as useSubscriptionHealth, Jn as useTableSkeleton, Gn as useTracking, Gt as useTranscription, Rn as useUndo, Hn as useUndoLog, Wt as useUpload, Je as useValidationMessages, Ar as useWindowedSubscription, Kt as useWorkflow, qt as useWorkflowDomainEvents, Jt as useWorkflowEventDeliveries, Yt as useWorkflowEvents, Xt as useWorkflowRun, Zt as useWorkflowRunEvents, nn as useWorkflowRunState, Qt as useWorkflowRunSteps, $t as useWorkflowRuns, en as useWorkflowSignal, tn as useWorkflowUpdate, lr as validateEventPayload, Ke as validateFields, ar as validationStatus, oi as webhookInspectListRequest, mn as wireAuthRefresh, Me as withIdempotencyKey, Kn as wrapTrackedCallbacks };
89
+ export { Pn as ADMIN_SCOPE, si as CLIENT_NAME, Pr as CONNECTIONS_LIST_TAG, Fr as CONNECTION_DISCONNECT_TAG, Ir as CONNECTION_START_TAG, Lr as CONNECTION_SUBMIT_TOKEN_TAG, ti as DEFAULT_WEBHOOK_INSPECT_LIST, Hr as DEV_ACTIVITY_EVENT, He as FORM_CAPTURE_FIELD, Ue as FORM_CAPTURE_META_NAME, Ve as FORM_FLASH_SCRIPT_ID, We as FORM_KEY_FIELD, Ge as FORM_PATH_PREFIX, Ke as FORM_REDIRECT_FIELD, qe as FORM_SOURCE_FIELD, en as FormBindingProvider, K as FrameworkRuntimesContext, m as FrameworkRuntimesProvider, vr as INITIAL_RECOVERY_SNAPSHOT, h as LoadingSubscriptionCache, ni as MAX_WEBHOOK_INSPECT_OFFSET, Te as MutationSerialExecutionError, lr as OUTBOX_DB_NAME, ur as OUTBOX_SYNC_TAG, Ur as PAIRING_HOST, Wr as PAIRING_SCHEME, Gr as PAIRING_STORAGE_KEY, Fn as PermissionProvider, jt as RICH_TEXT_MARKS, Mt as RICH_TEXT_MAX_NODES, yr as RecoveryCoordinator, Nt as RichTextDocument, mt as RpcErrorBus, Jt as ServerRequestContext, Yt as ServerRequestProvider, g as SubscriptionCache, xn as UNDO_APPLY_TAG, Sn as UNDO_LOG_TAG, Cn as UNDO_REDO_TAG, on as ValidationMessagesProvider, e as _resetFrameworkRuntimesWarning, t as _resetSsrDescriptors, Sr as apiConnectivity, Kr as applyPairing, oe as applyPreloadSeeds, v as applyStoreSeeds, Y as browserOnlineSource, P as browserPlatform, A as browserStoreStorage, c as buildApiRuntime, In as canCall, Ln as canCallAny, F as capabilitiesOf, Or as clearClientDiagnostics, ct as clearMutations, qr as clearPairing, er as clearSent, y as clearStoreHistory, kr as clientDiagnosticsSnapshot, hr as computeWindow, Yn as createAnalytics, ae as createHooks, I as currentPlatform, pn as decideAccess, Bt as decodeFieldIssues, X as deepLinkHref, tr as defaultOutboxRetryDelay, Z as defineDeepLink, Xn as defineEvent, L as definePlatform, b as defineStore, Tn as defineTracking, x as definedStores, mn as deriveEntityAdmins, Ar as disableClientDiagnosticsPersistence, Q as dispatchDeepLink, Vt as documentLocale, dr as drainOutboxInWorker, fr as drainOutboxOverHttp, Pt as emptyRichTextDocument, jr as enableClientDiagnosticsPersistence, qt as encodeFormRejection, Je as encodeNativeFormCapture, nr as enqueueEntry, Jr as errorMessage, Yr as errorTag, Zn as eventCatalog, Un as filtersFromSchema, Ye as formActionPath, Xe as formCaptureSource, Gt as formDataToInput, Dt as formField, Ot as formSections, Ze as formSourcePath, Ce as freshIdempotencyKey, ye as getMutationNotifier, lt as getMutations, $t as globalContext, pr as indexedDbOutboxPersistence, R as installPlatform, z as isPlatformInstalled, Ft as isRichTextDocument, It as isSafeHref, B as isStandaloneDisplay, ht as isUnauthenticated, q as isUnresolvedApi, ri as isWebhookEventActivity, ii as isWebhookInspectActivityStatus, ai as isWebhookInspectPagination, Xr as jsonSchemaDocumentOf, Zr as jsonSchemaOf, Br as makeApiRoleSocketTracker, Vr as makeApiSocketTracker, se as makePreloadSeedBag, l as makeProtocolOpenRecovery, S as makeStoreSeedBag, hn as manifestUrl, rr as markConflict, ir as markFailed, ar as markSent, $ as matchDeepLink, ee as matchFirstDeepLink, V as memoryTokenStore, ut as omitMutationInputs, dt as omitMutationOutputs, gn as openAccessReason, Qr as pairingLink, $r as parsePairingLink, Lt as parseRichText, dn as provenanceUrl, xt as publishClientError, _t as publishClientTrace, vt as publishClientTraceRefusal, st as queryOnce, Cr as readApiOnline, Qe as readFormCaptureSource, ei as readPairing, ce as readPreloadedSeedOutcome, le as readPreloadedSnapshot, Mr as recordClientDiagnostic, Kt as recoverNativeFormValues, br as recoveryCoordinatorFor, H as refusingTokenStore, u as registerCellMerger, n as registerSsrDescriptors, d as registeredCellMerger, or as replayable, St as reportClientError, _n as requiredScopes, U as resetPlatformForTest, ue as resetPreloadSeeds, C as resetStoreRegistryForTests, j as resetStoreStorageForTest, ne as resolveByTag, sr as resolveConflictEntry, xr as resolveRecoveryOptions, M as resolveStoreStorage, En as resolveTrackingEvent, Ht as resolveValidationMessage, Ut as restrictToSchema, et as resumableConsumeProgram, Rt as richTextToPlainText, cn as rowsToOptions, mr as rpcHttpOutcome, te as runDeepLink, Er as runLocalQuery, ge as runSequence, kt as schemaToColumns, At as schemaToFields, de as seedPreloadedSubscription, fe as seedPreloadedSubscriptionFailure, w as seedStore, _e as sequence, zt as serializeRichText, be as setMutationNotifier, pe as setPreloadSeedResolver, T as setStoreSeedResolver, N as setStoreStorage, E as shallow, jn as shallowArrayEqual, Mn as sourceValues, r as ssrClientProxy, i as ssrDescriptorsFor, a as ssrStubHandle, f as stableKey, p as startApiSupervisor, ft as startMutation, D as storeHistory, wr as subscribeApiOnline, Nr as subscribeClientDiagnostics, Ct as subscribeClientErrors, yt as subscribeClientTraceRefusals, bt as subscribeClientTraces, pt as subscribeMutations, O as subscribeStoreHistory, _ as supersedesConfirmedPatches, k as travelToStoreState, J as unknownApiError, vn as useAccessDecision, Ee as useAction, rt as useAgent, nt as useAgentChat, $e as useAgentStream, Tr as useApiOnline, Kn as useAsyncValidation, Rn as useCan, zn as useCanAny, yn as useCapabilityManifest, Rr as useConnection, Se as useConnectionSetup, _r as useConnectionStatus, zr as useConnections, it as useDataCopilot, un as useDataTable, qn as useDebounced, Nn as useDerived, he as useEvent, tn as useFormBinding, nn as useFormBindingContext, Xt as useFormCapture, rn as useFormField, Zt as useFormFlash, kn as useFormSkeleton, o as useFrameworkApi, s as useFrameworkRuntimes, Dr as useLocalQuery, xe as useMutation, wt as useOnRawRpcError, Tt as useOnRpcError, cr as useOutbox, Bn as usePermissions, W as usePlatform, me as usePreloadedSubscription, $n as usePreview, fn as useProvenance, ln as useQueryField, Wn as useQueryFilters, Gn as useRecord, at as useRefreshSubscription, ot as useRefreshSubscriptions, Vn as useResourceCan, Hn as useResourceCans, tt as useResumableAgentStream, De as useRpcCaller, ie as useRpcDeclared, an as useSchemaFormBinding, ve as useSequence, Qt as useServerRequest, G as useShellExtension, re as useSubscription, Et as useSubscriptionHealth, An as useTableSkeleton, Dn as useTracking, ke as useTranscription, bn as useUndo, wn as useUndoLog, Oe as useUpload, sn as useValidationMessages, gr as useWindowedSubscription, Ae as useWorkflow, je as useWorkflowDomainEvents, Me as useWorkflowEventDeliveries, Ne as useWorkflowEvents, Pe as useWorkflowRun, Fe as useWorkflowRunEvents, Be as useWorkflowRunState, Ie as useWorkflowRunSteps, Le as useWorkflowRuns, Re as useWorkflowSignal, ze as useWorkflowUpdate, Qn as validateEventPayload, Wt as validateFields, Jn as validationStatus, oi as webhookInspectListRequest, gt as wireAuthRefresh, we as withIdempotencyKey, On as wrapTrackedCallbacks };