@burdenoff/fe-libs 2026.1027.2 → 2026.1027.3

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 (50) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +8 -5
  2. package/dist/node_modules/@openuidev/devtools/dist/index.js +74 -0
  3. package/dist/node_modules/@openuidev/lang-core/dist/index.js +3779 -0
  4. package/dist/node_modules/@openuidev/lang-core/dist/shared-Dzgc28Wo.js +39 -0
  5. package/dist/node_modules/@openuidev/observability/dist/index.js +30 -0
  6. package/dist/node_modules/@openuidev/react-lang/dist/exports-CLfR509v.js +946 -0
  7. package/dist/node_modules/@openuidev/react-lang/dist/index.js +25 -0
  8. package/dist/node_modules/ci-info/index.js +34 -0
  9. package/dist/node_modules/ci-info/vendors.json.js +331 -0
  10. package/dist/node_modules/react-dom/cjs/react-dom-client.development.js +11168 -0
  11. package/dist/node_modules/react-dom/cjs/react-dom-client.production.js +7384 -0
  12. package/dist/node_modules/react-dom/client.js +19 -0
  13. package/dist/node_modules/scheduler/cjs/scheduler.development.js +203 -0
  14. package/dist/node_modules/scheduler/cjs/scheduler.production.js +203 -0
  15. package/dist/node_modules/scheduler/index.js +10 -0
  16. package/dist/node_modules/zod/v4/classic/errors.js +23 -0
  17. package/dist/node_modules/zod/v4/classic/iso.js +31 -0
  18. package/dist/node_modules/zod/v4/classic/parse.js +6 -0
  19. package/dist/node_modules/zod/v4/classic/schemas.js +339 -0
  20. package/dist/node_modules/zod/v4/core/api.js +491 -0
  21. package/dist/node_modules/zod/v4/core/checks.js +283 -0
  22. package/dist/node_modules/zod/v4/core/core.js +44 -0
  23. package/dist/node_modules/zod/v4/core/doc.js +23 -0
  24. package/dist/node_modules/zod/v4/core/errors.js +41 -0
  25. package/dist/node_modules/zod/v4/core/json-schema-processors.js +306 -0
  26. package/dist/node_modules/zod/v4/core/parse.js +68 -0
  27. package/dist/node_modules/zod/v4/core/regexes.js +25 -0
  28. package/dist/node_modules/zod/v4/core/registries.js +40 -0
  29. package/dist/node_modules/zod/v4/core/schemas.js +796 -0
  30. package/dist/node_modules/zod/v4/core/to-json-schema.js +222 -0
  31. package/dist/node_modules/zod/v4/core/util.js +266 -0
  32. package/dist/node_modules/zod/v4/core/versions.js +8 -0
  33. package/dist/shared/assistant/index.d.ts +4 -0
  34. package/dist/shared/assistant/openui/AssistantOpenUiBlock.d.ts +19 -0
  35. package/dist/shared/assistant/openui/AssistantOpenUiBlock.js +26 -0
  36. package/dist/shared/assistant/openui/AssistantRichContent.d.ts +13 -0
  37. package/dist/shared/assistant/openui/AssistantRichContent.js +37 -0
  38. package/dist/shared/assistant/openui/OpenUiBoundary.d.ts +26 -0
  39. package/dist/shared/assistant/openui/OpenUiBoundary.js +13 -0
  40. package/dist/shared/assistant/openui/generativeUi.d.ts +6 -0
  41. package/dist/shared/assistant/openui/generativeUi.js +12 -0
  42. package/dist/shared/assistant/openui/library.d.ts +2 -0
  43. package/dist/shared/assistant/openui/library.js +191 -0
  44. package/dist/shared/assistant/openui/limits.d.ts +12 -0
  45. package/dist/shared/assistant/openui/limits.js +7 -0
  46. package/dist/shared/assistant/openui/segments.d.ts +40 -0
  47. package/dist/shared/assistant/openui/segments.js +52 -0
  48. package/dist/shared/assistant/ui/AssistantMessageItem.js +115 -109
  49. package/dist/shared-assistant.js +108 -104
  50. package/package.json +2 -1
@@ -0,0 +1,222 @@
1
+ import { globalRegistry as e } from "./registries.js";
2
+ //#region node_modules/zod/v4/core/to-json-schema.js
3
+ function t(t) {
4
+ let n = t?.target ?? "draft-2020-12";
5
+ return n === "draft-4" && (n = "draft-04"), n === "draft-7" && (n = "draft-07"), {
6
+ processors: t.processors ?? {},
7
+ metadataRegistry: t?.metadata ?? e,
8
+ target: n,
9
+ unrepresentable: t?.unrepresentable ?? "throw",
10
+ override: t?.override ?? (() => {}),
11
+ io: t?.io ?? "output",
12
+ counter: 0,
13
+ seen: /* @__PURE__ */ new Map(),
14
+ cycles: t?.cycles ?? "ref",
15
+ reused: t?.reused ?? "inline",
16
+ external: t?.external ?? void 0
17
+ };
18
+ }
19
+ function n(e, t, r = {
20
+ path: [],
21
+ schemaPath: []
22
+ }) {
23
+ var i;
24
+ let o = e._zod.def, s = t.seen.get(e);
25
+ if (s) return s.count++, r.schemaPath.includes(e) && (s.cycle = r.path), s.schema;
26
+ let c = {
27
+ schema: {},
28
+ count: 1,
29
+ cycle: void 0,
30
+ path: r.path
31
+ };
32
+ t.seen.set(e, c);
33
+ let l = e._zod.toJSONSchema?.();
34
+ if (l) c.schema = l;
35
+ else {
36
+ let i = {
37
+ ...r,
38
+ schemaPath: [...r.schemaPath, e],
39
+ path: r.path
40
+ };
41
+ if (e._zod.processJSONSchema) e._zod.processJSONSchema(t, c.schema, i);
42
+ else {
43
+ let n = c.schema, r = t.processors[o.type];
44
+ if (!r) throw Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);
45
+ r(e, t, n, i);
46
+ }
47
+ let a = e._zod.parent;
48
+ a && (c.ref ||= a, n(a, t, i), t.seen.get(a).isParent = !0);
49
+ }
50
+ let u = t.metadataRegistry.get(e);
51
+ return u && Object.assign(c.schema, u), t.io === "input" && a(e) && (delete c.schema.examples, delete c.schema.default), t.io === "input" && c.schema._prefault && ((i = c.schema).default ?? (i.default = c.schema._prefault)), delete c.schema._prefault, t.seen.get(e).schema;
52
+ }
53
+ function r(e, t) {
54
+ let n = e.seen.get(t);
55
+ if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
56
+ let r = /* @__PURE__ */ new Map();
57
+ for (let t of e.seen.entries()) {
58
+ let n = e.metadataRegistry.get(t[0])?.id;
59
+ if (n) {
60
+ let e = r.get(n);
61
+ if (e && e !== t[0]) throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
62
+ r.set(n, t[0]);
63
+ }
64
+ }
65
+ let i = (t) => {
66
+ let r = e.target === "draft-2020-12" ? "$defs" : "definitions";
67
+ if (e.external) {
68
+ let n = e.external.registry.get(t[0])?.id, i = e.external.uri ?? ((e) => e);
69
+ if (n) return { ref: i(n) };
70
+ let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
71
+ return t[1].defId = a, {
72
+ defId: a,
73
+ ref: `${i("__shared")}#/${r}/${a}`
74
+ };
75
+ }
76
+ if (t[1] === n) return { ref: "#" };
77
+ let i = `#/${r}/`, a = t[1].schema.id ?? `__schema${e.counter++}`;
78
+ return {
79
+ defId: a,
80
+ ref: i + a
81
+ };
82
+ }, a = (e) => {
83
+ if (e[1].schema.$ref) return;
84
+ let t = e[1], { ref: n, defId: r } = i(e);
85
+ t.def = { ...t.schema }, r && (t.defId = r);
86
+ let a = t.schema;
87
+ for (let e in a) delete a[e];
88
+ a.$ref = n;
89
+ };
90
+ if (e.cycles === "throw") for (let t of e.seen.entries()) {
91
+ let e = t[1];
92
+ if (e.cycle) throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
93
+
94
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
95
+ }
96
+ for (let n of e.seen.entries()) {
97
+ let r = n[1];
98
+ if (t === n[0]) {
99
+ a(n);
100
+ continue;
101
+ }
102
+ if (e.external) {
103
+ let r = e.external.registry.get(n[0])?.id;
104
+ if (t !== n[0] && r) {
105
+ a(n);
106
+ continue;
107
+ }
108
+ }
109
+ if (e.metadataRegistry.get(n[0])?.id) {
110
+ a(n);
111
+ continue;
112
+ }
113
+ if (r.cycle) {
114
+ a(n);
115
+ continue;
116
+ }
117
+ if (r.count > 1 && e.reused === "ref") {
118
+ a(n);
119
+ continue;
120
+ }
121
+ }
122
+ }
123
+ function i(e, t) {
124
+ let n = e.seen.get(t);
125
+ if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
126
+ let r = (t) => {
127
+ let n = e.seen.get(t);
128
+ if (n.ref === null) return;
129
+ let i = n.def ?? n.schema, a = { ...i }, o = n.ref;
130
+ if (n.ref = null, o) {
131
+ r(o);
132
+ let n = e.seen.get(o), s = n.schema;
133
+ if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : Object.assign(i, s), Object.assign(i, a), t._zod.parent === o) for (let e in i) e === "$ref" || e === "allOf" || e in a || delete i[e];
134
+ if (s.$ref && n.def) for (let e in i) e === "$ref" || e === "allOf" || e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
135
+ }
136
+ let s = t._zod.parent;
137
+ if (s && s !== o) {
138
+ r(s);
139
+ let t = e.seen.get(s);
140
+ if (t?.schema.$ref && (i.$ref = t.schema.$ref, t.def)) for (let e in i) e === "$ref" || e === "allOf" || e in t.def && JSON.stringify(i[e]) === JSON.stringify(t.def[e]) && delete i[e];
141
+ }
142
+ e.override({
143
+ zodSchema: t,
144
+ jsonSchema: i,
145
+ path: n.path ?? []
146
+ });
147
+ };
148
+ for (let t of [...e.seen.entries()].reverse()) r(t[0]);
149
+ let i = {};
150
+ if (e.target === "draft-2020-12" ? i.$schema = "https://json-schema.org/draft/2020-12/schema" : e.target === "draft-07" ? i.$schema = "http://json-schema.org/draft-07/schema#" : e.target === "draft-04" ? i.$schema = "http://json-schema.org/draft-04/schema#" : e.target, e.external?.uri) {
151
+ let n = e.external.registry.get(t)?.id;
152
+ if (!n) throw Error("Schema is missing an `id` property");
153
+ i.$id = e.external.uri(n);
154
+ }
155
+ Object.assign(i, n.def ?? n.schema);
156
+ let a = e.external?.defs ?? {};
157
+ for (let t of e.seen.entries()) {
158
+ let e = t[1];
159
+ e.def && e.defId && (a[e.defId] = e.def);
160
+ }
161
+ e.external || Object.keys(a).length > 0 && (e.target === "draft-2020-12" ? i.$defs = a : i.definitions = a);
162
+ try {
163
+ let n = JSON.parse(JSON.stringify(i));
164
+ return Object.defineProperty(n, "~standard", {
165
+ value: {
166
+ ...t["~standard"],
167
+ jsonSchema: {
168
+ input: s(t, "input", e.processors),
169
+ output: s(t, "output", e.processors)
170
+ }
171
+ },
172
+ enumerable: !1,
173
+ writable: !1
174
+ }), n;
175
+ } catch {
176
+ throw Error("Error converting schema to JSON.");
177
+ }
178
+ }
179
+ function a(e, t) {
180
+ let n = t ?? { seen: /* @__PURE__ */ new Set() };
181
+ if (n.seen.has(e)) return !1;
182
+ n.seen.add(e);
183
+ let r = e._zod.def;
184
+ if (r.type === "transform") return !0;
185
+ if (r.type === "array") return a(r.element, n);
186
+ if (r.type === "set") return a(r.valueType, n);
187
+ if (r.type === "lazy") return a(r.getter(), n);
188
+ if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return a(r.innerType, n);
189
+ if (r.type === "intersection") return a(r.left, n) || a(r.right, n);
190
+ if (r.type === "record" || r.type === "map") return a(r.keyType, n) || a(r.valueType, n);
191
+ if (r.type === "pipe") return a(r.in, n) || a(r.out, n);
192
+ if (r.type === "object") {
193
+ for (let e in r.shape) if (a(r.shape[e], n)) return !0;
194
+ return !1;
195
+ }
196
+ if (r.type === "union") {
197
+ for (let e of r.options) if (a(e, n)) return !0;
198
+ return !1;
199
+ }
200
+ if (r.type === "tuple") {
201
+ for (let e of r.items) if (a(e, n)) return !0;
202
+ return !!(r.rest && a(r.rest, n));
203
+ }
204
+ return !1;
205
+ }
206
+ var o = (e, a = {}) => (o) => {
207
+ let s = t({
208
+ ...o,
209
+ processors: a
210
+ });
211
+ return n(e, s), r(s, e), i(s, e);
212
+ }, s = (e, a, o = {}) => (s) => {
213
+ let { libraryOptions: c, target: l } = s ?? {}, u = t({
214
+ ...c ?? {},
215
+ target: l,
216
+ io: a,
217
+ processors: o
218
+ });
219
+ return n(e, u), r(u, e), i(u, e);
220
+ };
221
+ //#endregion
222
+ export { s as createStandardJSONSchemaMethod, o as createToJSONSchemaMethod, r as extractDefs, i as finalize, t as initializeContext, n as process };
@@ -0,0 +1,266 @@
1
+ //#region node_modules/zod/v4/core/util.js
2
+ function e(e) {
3
+ let t = Object.values(e).filter((e) => typeof e == "number");
4
+ return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
5
+ }
6
+ function t(e, t) {
7
+ return typeof t == "bigint" ? t.toString() : t;
8
+ }
9
+ function n(e) {
10
+ return { get value() {
11
+ {
12
+ let t = e();
13
+ return Object.defineProperty(this, "value", { value: t }), t;
14
+ }
15
+ throw Error("cached value already set");
16
+ } };
17
+ }
18
+ function r(e) {
19
+ return e == null;
20
+ }
21
+ function i(e) {
22
+ let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
23
+ return e.slice(t, n);
24
+ }
25
+ function a(e, t) {
26
+ let n = (e.toString().split(".")[1] || "").length, r = t.toString(), i = (r.split(".")[1] || "").length;
27
+ if (i === 0 && /\d?e-\d?/.test(r)) {
28
+ let e = r.match(/\d?e-(\d?)/);
29
+ e?.[1] && (i = Number.parseInt(e[1]));
30
+ }
31
+ let a = n > i ? n : i;
32
+ return Number.parseInt(e.toFixed(a).replace(".", "")) % Number.parseInt(t.toFixed(a).replace(".", "")) / 10 ** a;
33
+ }
34
+ var o = Symbol("evaluating");
35
+ function s(e, t, n) {
36
+ let r;
37
+ Object.defineProperty(e, t, {
38
+ get() {
39
+ if (r !== o) return r === void 0 && (r = o, r = n()), r;
40
+ },
41
+ set(n) {
42
+ Object.defineProperty(e, t, { value: n });
43
+ },
44
+ configurable: !0
45
+ });
46
+ }
47
+ function c(e, t, n) {
48
+ Object.defineProperty(e, t, {
49
+ value: n,
50
+ writable: !0,
51
+ enumerable: !0,
52
+ configurable: !0
53
+ });
54
+ }
55
+ function l(...e) {
56
+ let t = {};
57
+ for (let n of e) Object.assign(t, Object.getOwnPropertyDescriptors(n));
58
+ return Object.defineProperties({}, t);
59
+ }
60
+ function u(e) {
61
+ return JSON.stringify(e);
62
+ }
63
+ function d(e) {
64
+ return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
65
+ }
66
+ var f = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
67
+ function p(e) {
68
+ return typeof e == "object" && !!e && !Array.isArray(e);
69
+ }
70
+ var m = n(() => {
71
+ if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
72
+ try {
73
+ return Function(""), !0;
74
+ } catch {
75
+ return !1;
76
+ }
77
+ });
78
+ function h(e) {
79
+ if (p(e) === !1) return !1;
80
+ let t = e.constructor;
81
+ if (t === void 0 || typeof t != "function") return !0;
82
+ let n = t.prototype;
83
+ return !(p(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
84
+ }
85
+ function g(e) {
86
+ return h(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
87
+ }
88
+ var _ = new Set([
89
+ "string",
90
+ "number",
91
+ "symbol"
92
+ ]);
93
+ function v(e) {
94
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
95
+ }
96
+ function y(e, t, n) {
97
+ let r = new e._zod.constr(t ?? e._zod.def);
98
+ return (!t || n?.parent) && (r._zod.parent = e), r;
99
+ }
100
+ function b(e) {
101
+ let t = e;
102
+ if (!t) return {};
103
+ if (typeof t == "string") return { error: () => t };
104
+ if (t?.message !== void 0) {
105
+ if (t?.error !== void 0) throw Error("Cannot specify both `message` and `error` params");
106
+ t.error = t.message;
107
+ }
108
+ return delete t.message, typeof t.error == "string" ? {
109
+ ...t,
110
+ error: () => t.error
111
+ } : t;
112
+ }
113
+ function x(e) {
114
+ return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
115
+ }
116
+ var S = {
117
+ safeint: [-(2 ** 53 - 1), 2 ** 53 - 1],
118
+ int32: [-2147483648, 2147483647],
119
+ uint32: [0, 4294967295],
120
+ float32: [-34028234663852886e22, 34028234663852886e22],
121
+ float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
122
+ };
123
+ function C(e, t) {
124
+ let n = e._zod.def, r = n.checks;
125
+ if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
126
+ return y(e, l(e._zod.def, {
127
+ get shape() {
128
+ let e = {};
129
+ for (let r in t) {
130
+ if (!(r in n.shape)) throw Error(`Unrecognized key: "${r}"`);
131
+ t[r] && (e[r] = n.shape[r]);
132
+ }
133
+ return c(this, "shape", e), e;
134
+ },
135
+ checks: []
136
+ }));
137
+ }
138
+ function w(e, t) {
139
+ let n = e._zod.def, r = n.checks;
140
+ if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
141
+ return y(e, l(e._zod.def, {
142
+ get shape() {
143
+ let r = { ...e._zod.def.shape };
144
+ for (let e in t) {
145
+ if (!(e in n.shape)) throw Error(`Unrecognized key: "${e}"`);
146
+ t[e] && delete r[e];
147
+ }
148
+ return c(this, "shape", r), r;
149
+ },
150
+ checks: []
151
+ }));
152
+ }
153
+ function T(e, t) {
154
+ if (!h(t)) throw Error("Invalid input to extend: expected a plain object");
155
+ let n = e._zod.def.checks;
156
+ if (n && n.length > 0) {
157
+ let n = e._zod.def.shape;
158
+ for (let e in t) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
159
+ }
160
+ return y(e, l(e._zod.def, { get shape() {
161
+ let n = {
162
+ ...e._zod.def.shape,
163
+ ...t
164
+ };
165
+ return c(this, "shape", n), n;
166
+ } }));
167
+ }
168
+ function E(e, t) {
169
+ if (!h(t)) throw Error("Invalid input to safeExtend: expected a plain object");
170
+ return y(e, l(e._zod.def, { get shape() {
171
+ let n = {
172
+ ...e._zod.def.shape,
173
+ ...t
174
+ };
175
+ return c(this, "shape", n), n;
176
+ } }));
177
+ }
178
+ function D(e, t) {
179
+ return y(e, l(e._zod.def, {
180
+ get shape() {
181
+ let n = {
182
+ ...e._zod.def.shape,
183
+ ...t._zod.def.shape
184
+ };
185
+ return c(this, "shape", n), n;
186
+ },
187
+ get catchall() {
188
+ return t._zod.def.catchall;
189
+ },
190
+ checks: []
191
+ }));
192
+ }
193
+ function O(e, t, n) {
194
+ let r = t._zod.def.checks;
195
+ if (r && r.length > 0) throw Error(".partial() cannot be used on object schemas containing refinements");
196
+ return y(t, l(t._zod.def, {
197
+ get shape() {
198
+ let r = t._zod.def.shape, i = { ...r };
199
+ if (n) for (let t in n) {
200
+ if (!(t in r)) throw Error(`Unrecognized key: "${t}"`);
201
+ n[t] && (i[t] = e ? new e({
202
+ type: "optional",
203
+ innerType: r[t]
204
+ }) : r[t]);
205
+ }
206
+ else for (let t in r) i[t] = e ? new e({
207
+ type: "optional",
208
+ innerType: r[t]
209
+ }) : r[t];
210
+ return c(this, "shape", i), i;
211
+ },
212
+ checks: []
213
+ }));
214
+ }
215
+ function k(e, t, n) {
216
+ return y(t, l(t._zod.def, { get shape() {
217
+ let r = t._zod.def.shape, i = { ...r };
218
+ if (n) for (let t in n) {
219
+ if (!(t in i)) throw Error(`Unrecognized key: "${t}"`);
220
+ n[t] && (i[t] = new e({
221
+ type: "nonoptional",
222
+ innerType: r[t]
223
+ }));
224
+ }
225
+ else for (let t in r) i[t] = new e({
226
+ type: "nonoptional",
227
+ innerType: r[t]
228
+ });
229
+ return c(this, "shape", i), i;
230
+ } }));
231
+ }
232
+ function A(e, t = 0) {
233
+ if (e.aborted === !0) return !0;
234
+ for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
235
+ return !1;
236
+ }
237
+ function j(e, t) {
238
+ return t.map((t) => {
239
+ var n;
240
+ return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
241
+ });
242
+ }
243
+ function M(e) {
244
+ return typeof e == "string" ? e : e?.message;
245
+ }
246
+ function N(e, t, n) {
247
+ let r = {
248
+ ...e,
249
+ path: e.path ?? []
250
+ };
251
+ return e.message || (r.message = M(e.inst?._zod.def?.error?.(e)) ?? M(t?.error?.(e)) ?? M(n.customError?.(e)) ?? M(n.localeError?.(e)) ?? "Invalid input"), delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
252
+ }
253
+ function P(e) {
254
+ return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
255
+ }
256
+ function F(...e) {
257
+ let [t, n, r] = e;
258
+ return typeof t == "string" ? {
259
+ message: t,
260
+ code: "custom",
261
+ input: n,
262
+ inst: r
263
+ } : { ...t };
264
+ }
265
+ //#endregion
266
+ export { S as NUMBER_FORMAT_RANGES, A as aborted, m as allowsEval, n as cached, f as captureStackTrace, i as cleanRegex, y as clone, s as defineLazy, u as esc, v as escapeRegex, T as extend, N as finalizeIssue, a as floatSafeRemainder, e as getEnumValues, P as getLengthableOrigin, p as isObject, h as isPlainObject, F as issue, t as jsonStringifyReplacer, D as merge, l as mergeDefs, b as normalizeParams, r as nullish, w as omit, x as optionalKeys, O as partial, C as pick, j as prefixIssues, _ as propertyKeyTypes, k as required, E as safeExtend, g as shallowClone, d as slugify };
@@ -0,0 +1,8 @@
1
+ //#region node_modules/zod/v4/core/versions.js
2
+ var e = {
3
+ major: 4,
4
+ minor: 3,
5
+ patch: 6
6
+ };
7
+ //#endregion
8
+ export { e as version };
@@ -322,6 +322,10 @@ export * from './ui/AIAssistantPanel';
322
322
  export * from './ui/assistantOverlayState';
323
323
  export * from './ui/useAssistantLauncherLift';
324
324
  export * from './ui/AssistantOverlay';
325
+ export * from './openui/generativeUi';
326
+ export * from './openui/segments';
327
+ export * from './openui/limits';
328
+ export * from './openui/AssistantRichContent';
325
329
  export * from './workflowApi';
326
330
  export * from './ui/WorkflowAssistantPanel';
327
331
  export * from './speech/notifyCancellationSpeechEngine';
@@ -0,0 +1,19 @@
1
+ import { FC, ReactNode } from 'react';
2
+ /**
3
+ * One `openui` block, drawn with the assistant component library (BOFF-9710).
4
+ *
5
+ * Loaded lazily by `AssistantRichContent`, so the OpenUI runtime stays out of
6
+ * the main bundle until a reply actually contains a block.
7
+ *
8
+ * No `onAction`, no `toolProvider`: the library defines no actions or tools, so
9
+ * the model has nothing to trigger and nothing to call. A block that throws
10
+ * while rendering is caught by the boundary `AssistantRichContent` wraps around
11
+ * this lazy module, which shows the source instead.
12
+ */
13
+ interface Props {
14
+ source: string;
15
+ streaming: boolean;
16
+ fallback: ReactNode;
17
+ }
18
+ declare const AssistantOpenUiBlock: FC<Props>;
19
+ export default AssistantOpenUiBlock;
@@ -0,0 +1,26 @@
1
+ import { createParser as e } from "../../../node_modules/@openuidev/lang-core/dist/index.js";
2
+ import { Renderer as t } from "../../../node_modules/@openuidev/react-lang/dist/exports-CLfR509v.js";
3
+ import "../../../node_modules/@openuidev/react-lang/dist/index.js";
4
+ import n from "./library.js";
5
+ import { useMemo as r } from "react";
6
+ import { Fragment as i, jsx as a } from "react/jsx-runtime";
7
+ //#region src/shared/assistant/openui/AssistantOpenUiBlock.tsx
8
+ var o = e(n.toJSONSchema(), n.root);
9
+ function s(e) {
10
+ try {
11
+ let { root: t, meta: n } = o.parse(e);
12
+ return t !== null && !n.incomplete && n.errors.length === 0 && n.unresolved.length === 0;
13
+ } catch {
14
+ return !1;
15
+ }
16
+ }
17
+ var c = ({ source: e, streaming: o, fallback: c }) => r(() => s(e), [e]) ? /* @__PURE__ */ a("div", {
18
+ "data-testid": "assistant-openui-block",
19
+ children: /* @__PURE__ */ a(t, {
20
+ response: e,
21
+ library: n,
22
+ isStreaming: o
23
+ })
24
+ }) : /* @__PURE__ */ a(i, { children: c });
25
+ //#endregion
26
+ export { c as default };
@@ -0,0 +1,13 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ content: string;
4
+ /** True while the turn that wrote `content` is still arriving. */
5
+ streaming?: boolean;
6
+ }
7
+ /**
8
+ * An assistant reply: markdown, plus generative-UI blocks when the product has
9
+ * switched them on (BOFF-9710). With the switch off, or with no block in the
10
+ * reply, this is exactly `AssistantMarkdownRenderer`.
11
+ */
12
+ export declare const AssistantRichContent: FC<Props>;
13
+ export {};
@@ -0,0 +1,37 @@
1
+ import { lazyWithRetry as e } from "../../utils/lazyWithRetry.js";
2
+ import { AssistantMarkdownRenderer as t } from "../ui/AssistantMarkdownRenderer.js";
3
+ import { useAssistantGenerativeUi as n } from "./generativeUi.js";
4
+ import r from "./OpenUiBoundary.js";
5
+ import { splitOpenUiSegments as i } from "./segments.js";
6
+ import { Suspense as a, useMemo as o } from "react";
7
+ import { jsx as s } from "react/jsx-runtime";
8
+ //#region src/shared/assistant/openui/AssistantRichContent.tsx
9
+ var c = e(() => import("./AssistantOpenUiBlock.js")), l = ({ source: e }) => /* @__PURE__ */ s(t, { content: "```\n" + e + "\n```" }), u = () => /* @__PURE__ */ s("div", {
10
+ className: "rounded-lg border border-border-subtle bg-bg-sunken px-3 py-2 text-[13px] text-text-muted",
11
+ role: "status",
12
+ "data-testid": "assistant-openui-building",
13
+ children: "…"
14
+ }), d = ({ content: e, streaming: d = !1 }) => {
15
+ let f = n(), p = o(() => f ? i(e) : null, [f, e]);
16
+ return !p || !p.some((e) => e.kind === "openui") ? /* @__PURE__ */ s(t, { content: e }) : /* @__PURE__ */ s("div", {
17
+ className: "flex flex-col gap-2",
18
+ "data-testid": "assistant-rich-content",
19
+ children: p.map((e, n) => {
20
+ if (e.kind === "markdown") return /* @__PURE__ */ s(t, { content: e.text }, n);
21
+ let i = /* @__PURE__ */ s(l, { source: e.source });
22
+ return e.complete ? /* @__PURE__ */ s(r, {
23
+ fallback: i,
24
+ children: /* @__PURE__ */ s(a, {
25
+ fallback: /* @__PURE__ */ s(u, {}),
26
+ children: /* @__PURE__ */ s(c, {
27
+ source: e.source,
28
+ streaming: !1,
29
+ fallback: i
30
+ })
31
+ })
32
+ }, e.source) : d ? /* @__PURE__ */ s(u, {}, n) : /* @__PURE__ */ s("div", { children: i }, n);
33
+ })
34
+ });
35
+ };
36
+ //#endregion
37
+ export { d as AssistantRichContent };
@@ -0,0 +1,26 @@
1
+ import { Component, ReactNode } from 'react';
2
+ /**
3
+ * Shows `fallback` instead of its children if they throw while loading or
4
+ * rendering (BOFF-9710).
5
+ *
6
+ * It sits OUTSIDE the lazy block, so it also catches a failed dynamic import (a
7
+ * stale deployment chunk, a dropped connection), which `React.lazy` raises
8
+ * before the block mounts. Without it that error would reach the shell-wide
9
+ * boundary and replace the whole app for one reply's chart.
10
+ */
11
+ interface Props {
12
+ fallback: ReactNode;
13
+ children: ReactNode;
14
+ }
15
+ declare class OpenUiBoundary extends Component<Props, {
16
+ failed: boolean;
17
+ }> {
18
+ state: {
19
+ failed: boolean;
20
+ };
21
+ static getDerivedStateFromError(): {
22
+ failed: boolean;
23
+ };
24
+ render(): ReactNode;
25
+ }
26
+ export default OpenUiBoundary;
@@ -0,0 +1,13 @@
1
+ import { Component as e } from "react";
2
+ //#region src/shared/assistant/openui/OpenUiBoundary.tsx
3
+ var t = class extends e {
4
+ state = { failed: !1 };
5
+ static getDerivedStateFromError() {
6
+ return { failed: !0 };
7
+ }
8
+ render() {
9
+ return this.state.failed ? this.props.fallback : this.props.children;
10
+ }
11
+ };
12
+ //#endregion
13
+ export { t as default };
@@ -0,0 +1,6 @@
1
+ import { FC, ReactNode } from 'react';
2
+ export declare const AssistantGenerativeUiProvider: FC<{
3
+ enabled?: boolean;
4
+ children: ReactNode;
5
+ }>;
6
+ export declare function useAssistantGenerativeUi(): boolean;
@@ -0,0 +1,12 @@
1
+ import { createContext as e, useContext as t } from "react";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ //#region src/shared/assistant/openui/generativeUi.tsx
4
+ var r = e(!1), i = ({ enabled: e = !0, children: t }) => /* @__PURE__ */ n(r.Provider, {
5
+ value: e,
6
+ children: t
7
+ });
8
+ function a() {
9
+ return t(r);
10
+ }
11
+ //#endregion
12
+ export { i as AssistantGenerativeUiProvider, a as useAssistantGenerativeUi };
@@ -0,0 +1,2 @@
1
+ declare const assistantOpenUiLibrary: Required<import('@openuidev/react-lang').Library<never>>;
2
+ export default assistantOpenUiLibrary;