@autopilot-agent/core 0.2.0 → 0.4.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.
Files changed (99) hide show
  1. package/README.md +10 -4
  2. package/dist/experimental/index.js +159 -59
  3. package/dist/experimental/index.mjs +159 -59
  4. package/dist/failure.d.ts +3 -0
  5. package/dist/failure.js +1 -0
  6. package/dist/failure.mjs +1 -0
  7. package/dist/index.d.ts +30 -5
  8. package/dist/index.js +346 -214
  9. package/dist/index.mjs +346 -214
  10. package/dist/internal/agent-runtime.d.ts +87 -2
  11. package/dist/internal/kernel/model-sampler.d.ts +5 -0
  12. package/dist/internal/kernel/run-context.d.ts +6 -0
  13. package/dist/internal/kernel/session-images.d.ts +21 -0
  14. package/dist/internal/kernel/turn-usage.d.ts +14 -0
  15. package/dist/internal/lib/document-parser.js +2 -2
  16. package/dist/internal/lib/image-normalization.d.ts +16 -0
  17. package/dist/internal/lib/llm.d.ts +7 -1
  18. package/dist/internal/lib/llm.js +3 -3
  19. package/dist/internal/lib/pdf-processor.js +1 -1
  20. package/dist/internal/tools/builtins/browser-tool.d.ts +13 -0
  21. package/dist/internal/tools/builtins/open-preview-tool.d.ts +5 -1
  22. package/dist/internal/tools/builtins/read-output-budget.d.ts +5 -0
  23. package/dist/internal/tools/builtins/render-ui-tool.d.ts +11 -0
  24. package/dist/internal/tools/builtins/static-preview.d.ts +15 -0
  25. package/dist/internal/tools/builtins/thread-tools.d.ts +125 -0
  26. package/dist/internal/tools/builtins/vision-analyze-tool.d.ts +1 -0
  27. package/dist/internal/tools/mcp-images.d.ts +6 -0
  28. package/dist/internal/tools/mcp-runtime.d.ts +4 -0
  29. package/dist/internal/tools/permissions/command-policy.d.ts +2 -0
  30. package/dist/internal/tools/policy-engine.d.ts +1 -0
  31. package/dist/internal/tools/process-utils.d.ts +1 -0
  32. package/dist/internal/tools/thread-observation-display.d.ts +2 -0
  33. package/dist/internal/tools/types.d.ts +21 -0
  34. package/dist/internal/types/agent-message.d.ts +12 -2
  35. package/dist/internal/types/index.d.ts +1 -1
  36. package/dist/runtime/adapters/memory/memory-lease-store.d.ts +6 -0
  37. package/dist/runtime/adapters/memory/memory-session-store.d.ts +14 -0
  38. package/dist/runtime/adapters/memory/memory-thread-store.d.ts +24 -0
  39. package/dist/runtime/adapters/memory/memory-transcript-store.d.ts +9 -0
  40. package/dist/runtime/application/approval-service.d.ts +5 -0
  41. package/dist/runtime/application/input-inbox-service.d.ts +1 -1
  42. package/dist/runtime/application/runtime-facts.d.ts +54 -0
  43. package/dist/runtime/application/session-service.d.ts +9 -0
  44. package/dist/runtime/application/thread-delivery-service.d.ts +97 -0
  45. package/dist/runtime/application/thread-execution-host.d.ts +7 -0
  46. package/dist/runtime/application/thread-service.d.ts +1027 -0
  47. package/dist/runtime/application/thread-task.d.ts +11 -0
  48. package/dist/runtime/application/thread-tool-binding.d.ts +218 -0
  49. package/dist/runtime/application/turn/turn-capability-ceiling.d.ts +2 -0
  50. package/dist/runtime/application/turn/turn-compaction-coordinator.d.ts +2 -1
  51. package/dist/runtime/application/turn/turn-event-recorder.d.ts +1 -0
  52. package/dist/runtime/application/turn/turn-execution-view.d.ts +43 -0
  53. package/dist/runtime/application/turn/turn-recovery-service.d.ts +14 -0
  54. package/dist/runtime/application/turn-service.d.ts +28 -0
  55. package/dist/runtime/application/user-question-service.d.ts +1 -0
  56. package/dist/runtime/bootstrap/runtime-bootstrap-service.d.ts +2 -0
  57. package/dist/runtime/domain/frozen-run-config.d.ts +2 -0
  58. package/dist/runtime/domain/index.d.ts +16 -1
  59. package/dist/runtime/domain/input-inbox.d.ts +16 -0
  60. package/dist/runtime/domain/model-ref.d.ts +1 -1
  61. package/dist/runtime/domain/session-presentation.d.ts +9 -0
  62. package/dist/runtime/domain/thread-collaboration.d.ts +179 -0
  63. package/dist/runtime/domain/turn.d.ts +8 -0
  64. package/dist/runtime/ports/index.d.ts +6 -0
  65. package/dist/runtime/ports/lease-store.d.ts +4 -0
  66. package/dist/runtime/ports/session-image-store.d.ts +26 -0
  67. package/dist/runtime/ports/session-store.d.ts +16 -0
  68. package/dist/runtime/ports/thread-handoff.d.ts +14 -0
  69. package/dist/runtime/ports/thread-store.d.ts +15 -0
  70. package/dist/runtime/ports/transcript-store.d.ts +8 -0
  71. package/dist/runtime/protocol/browser-capability.d.ts +81 -0
  72. package/dist/runtime/protocol/browser-operation.d.ts +89 -0
  73. package/dist/runtime/protocol/chat-capability.d.ts +1 -0
  74. package/dist/runtime/protocol/error-code.d.ts +1 -1
  75. package/dist/runtime/protocol/frozen-run-config-view.d.ts +2 -1
  76. package/dist/runtime/protocol/index.d.ts +2 -1
  77. package/dist/runtime/protocol/recoverable-turn-view.d.ts +3 -0
  78. package/dist/runtime/protocol/run-config.d.ts +13 -0
  79. package/dist/runtime/protocol/threads-capability.d.ts +14 -0
  80. package/dist/runtime/protocol/web-capability.d.ts +5 -1
  81. package/dist/runtime/protocol/work-preview-capability.d.ts +1 -0
  82. package/dist/runtime/provider/anthropic-messages-adapter.d.ts +4 -2
  83. package/dist/runtime/provider/api-protocol.d.ts +16 -2
  84. package/dist/runtime/provider/compatibility-presets.d.ts +19 -0
  85. package/dist/runtime/provider/frozen-provider-config.d.ts +4 -1
  86. package/dist/runtime/provider/index.d.ts +4 -2
  87. package/dist/runtime/provider/model-capability-catalog.d.ts +7 -0
  88. package/dist/runtime/provider/model-sample-resolver.d.ts +3 -2
  89. package/dist/runtime/provider/openai-chat-completions-adapter.d.ts +5 -1
  90. package/dist/runtime/provider/openai-responses-adapter.d.ts +22 -0
  91. package/dist/runtime/provider/provider-failure-guidance.d.ts +4 -0
  92. package/dist/runtime/provider/provider-failure-normalization.d.ts +9 -0
  93. package/dist/runtime/public/agent-runtime.d.ts +5 -0
  94. package/dist/ui/catalog.d.ts +870 -0
  95. package/dist/ui/document.d.ts +580 -0
  96. package/dist/ui/index.d.ts +4 -0
  97. package/dist/ui/index.js +1 -0
  98. package/dist/ui/index.mjs +1 -0
  99. package/package.json +17 -3
@@ -0,0 +1,870 @@
1
+ import { z } from "zod";
2
+ export declare const UI_MAX_DOCUMENT_BYTES: number;
3
+ export declare const UI_MAX_ELEMENTS = 128;
4
+ export declare const UI_MAX_TREE_DEPTH = 12;
5
+ export declare const UI_MAX_STATE_KEYS = 24;
6
+ export declare const UI_MAX_STATE_BYTES: number;
7
+ export declare const UI_MAX_CHILDREN = 16;
8
+ export declare const UI_MAX_SLOT_CHILDREN = 12;
9
+ export declare const UI_MAX_COMPUTED_ITEMS = 200;
10
+ export declare const UI_SAVINGS_GROWTH_BOUNDS: Readonly<{
11
+ P: {
12
+ min: number;
13
+ max: number;
14
+ integer: boolean;
15
+ };
16
+ C: {
17
+ min: number;
18
+ max: number;
19
+ integer: boolean;
20
+ };
21
+ R: {
22
+ min: number;
23
+ max: number;
24
+ integer: boolean;
25
+ };
26
+ Y: {
27
+ min: number;
28
+ max: number;
29
+ integer: boolean;
30
+ };
31
+ }>;
32
+ export declare const UI_COMPONENT_NAMES: readonly ["Stack", "Grid", "Card", "Text", "Metric", "Tabs", "Disclosure", "NumberInput", "Slider", "Select", "DataTable", "LineChart", "BarChart", "Button", "ItemList", "Timeline", "Steps", "ChoiceGroup", "Flowchart"];
33
+ export declare const UI_COMPUTED_FUNCTION_NAMES: readonly ["savingsGrowth", "weightedAverage", "sum"];
34
+ export type UiComponentName = typeof UI_COMPONENT_NAMES[number];
35
+ export type UiScalar = string | number | boolean;
36
+ export type UiState = Record<string, UiScalar>;
37
+ export interface UiElement {
38
+ type: UiComponentName;
39
+ props: Record<string, unknown>;
40
+ children?: string[];
41
+ slots?: Record<string, string[]>;
42
+ visible?: unknown;
43
+ on?: Record<string, unknown>;
44
+ }
45
+ export interface UiSpec {
46
+ root: string;
47
+ elements: Record<string, UiElement>;
48
+ state?: UiState;
49
+ }
50
+ export declare const UI_COMPONENT_SCHEMAS: {
51
+ readonly Flowchart: z.ZodObject<{
52
+ direction: z.ZodEnum<{
53
+ TB: "TB";
54
+ LR: "LR";
55
+ }>;
56
+ description: z.ZodString;
57
+ nodes: z.ZodArray<z.ZodObject<{
58
+ id: z.ZodString;
59
+ label: z.ZodString;
60
+ kind: z.ZodOptional<z.ZodEnum<{
61
+ process: "process";
62
+ decision: "decision";
63
+ terminal: "terminal";
64
+ }>>;
65
+ }, z.core.$strict>>;
66
+ edges: z.ZodArray<z.ZodObject<{
67
+ id: z.ZodString;
68
+ from: z.ZodString;
69
+ to: z.ZodString;
70
+ label: z.ZodOptional<z.ZodString>;
71
+ }, z.core.$strict>>;
72
+ }, z.core.$strict>;
73
+ readonly Stack: z.ZodObject<{
74
+ direction: z.ZodEnum<{
75
+ row: "row";
76
+ column: "column";
77
+ }>;
78
+ gap: z.ZodUnion<readonly [z.ZodLiteral<4>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
79
+ }, z.core.$strict>;
80
+ readonly Grid: z.ZodObject<{
81
+ columns: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
82
+ gap: z.ZodUnion<readonly [z.ZodLiteral<4>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
83
+ }, z.core.$strict>;
84
+ readonly Card: z.ZodObject<{
85
+ title: z.ZodOptional<z.ZodString>;
86
+ }, z.core.$strict>;
87
+ readonly Text: z.ZodObject<{
88
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
89
+ $state: z.ZodString;
90
+ }, z.core.$strict>]>;
91
+ size: z.ZodEnum<{
92
+ md: "md";
93
+ xs: "xs";
94
+ sm: "sm";
95
+ lg: "lg";
96
+ }>;
97
+ tone: z.ZodEnum<{
98
+ error: "error";
99
+ ink: "ink";
100
+ muted: "muted";
101
+ accent: "accent";
102
+ }>;
103
+ }, z.core.$strict>;
104
+ readonly Metric: z.ZodObject<{
105
+ label: z.ZodString;
106
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
107
+ $state: z.ZodString;
108
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
109
+ $computed: z.ZodLiteral<"savingsGrowth">;
110
+ args: z.ZodObject<{
111
+ P: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
112
+ $state: z.ZodString;
113
+ }, z.core.$strict>]>;
114
+ C: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
115
+ $state: z.ZodString;
116
+ }, z.core.$strict>]>;
117
+ R: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
118
+ $state: z.ZodString;
119
+ }, z.core.$strict>]>;
120
+ Y: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
121
+ $state: z.ZodString;
122
+ }, z.core.$strict>]>;
123
+ select: z.ZodLiteral<"final">;
124
+ }, z.core.$strict>;
125
+ }, z.core.$strict>, z.ZodObject<{
126
+ $computed: z.ZodLiteral<"weightedAverage">;
127
+ args: z.ZodObject<{
128
+ pairs: z.ZodArray<z.ZodObject<{
129
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
130
+ $state: z.ZodString;
131
+ }, z.core.$strict>]>;
132
+ weight: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
133
+ $state: z.ZodString;
134
+ }, z.core.$strict>]>;
135
+ }, z.core.$strict>>;
136
+ }, z.core.$strict>;
137
+ }, z.core.$strict>, z.ZodObject<{
138
+ $computed: z.ZodLiteral<"sum">;
139
+ args: z.ZodObject<{
140
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
141
+ $state: z.ZodString;
142
+ }, z.core.$strict>]>>;
143
+ }, z.core.$strict>;
144
+ }, z.core.$strict>], "$computed">]>;
145
+ unit: z.ZodOptional<z.ZodString>;
146
+ tone: z.ZodOptional<z.ZodEnum<{
147
+ error: "error";
148
+ ink: "ink";
149
+ accent: "accent";
150
+ }>>;
151
+ }, z.core.$strict>;
152
+ readonly Tabs: z.ZodObject<{
153
+ items: z.ZodArray<z.ZodObject<{
154
+ key: z.ZodString;
155
+ label: z.ZodString;
156
+ }, z.core.$strict>>;
157
+ }, z.core.$strict>;
158
+ readonly Disclosure: z.ZodObject<{
159
+ summary: z.ZodString;
160
+ defaultOpen: z.ZodBoolean;
161
+ }, z.core.$strict>;
162
+ readonly NumberInput: z.ZodObject<{
163
+ label: z.ZodString;
164
+ statePath: z.ZodString;
165
+ min: z.ZodNumber;
166
+ max: z.ZodNumber;
167
+ step: z.ZodNumber;
168
+ suffix: z.ZodOptional<z.ZodString>;
169
+ }, z.core.$strict>;
170
+ readonly Slider: z.ZodObject<{
171
+ label: z.ZodString;
172
+ statePath: z.ZodString;
173
+ min: z.ZodNumber;
174
+ max: z.ZodNumber;
175
+ step: z.ZodNumber;
176
+ suffix: z.ZodOptional<z.ZodString>;
177
+ }, z.core.$strict>;
178
+ readonly Select: z.ZodObject<{
179
+ label: z.ZodString;
180
+ statePath: z.ZodString;
181
+ options: z.ZodArray<z.ZodObject<{
182
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
183
+ label: z.ZodString;
184
+ }, z.core.$strict>>;
185
+ }, z.core.$strict>;
186
+ readonly DataTable: z.ZodObject<{
187
+ columns: z.ZodArray<z.ZodObject<{
188
+ key: z.ZodString;
189
+ label: z.ZodString;
190
+ align: z.ZodOptional<z.ZodEnum<{
191
+ left: "left";
192
+ right: "right";
193
+ }>>;
194
+ }, z.core.$strict>>;
195
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
196
+ caption: z.ZodOptional<z.ZodString>;
197
+ filterColumnKey: z.ZodOptional<z.ZodString>;
198
+ sortable: z.ZodOptional<z.ZodBoolean>;
199
+ }, z.core.$strict>;
200
+ readonly LineChart: z.ZodObject<{
201
+ title: z.ZodOptional<z.ZodString>;
202
+ xLabel: z.ZodOptional<z.ZodString>;
203
+ yLabel: z.ZodOptional<z.ZodString>;
204
+ unit: z.ZodOptional<z.ZodString>;
205
+ series: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
206
+ name: z.ZodString;
207
+ points: z.ZodArray<z.ZodObject<{
208
+ x: z.ZodNumber;
209
+ y: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
210
+ }, z.core.$strict>>;
211
+ }, z.core.$strict>>, z.ZodObject<{
212
+ $computed: z.ZodLiteral<"savingsGrowth">;
213
+ args: z.ZodObject<{
214
+ P: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
215
+ $state: z.ZodString;
216
+ }, z.core.$strict>]>;
217
+ C: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
218
+ $state: z.ZodString;
219
+ }, z.core.$strict>]>;
220
+ R: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
221
+ $state: z.ZodString;
222
+ }, z.core.$strict>]>;
223
+ Y: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
224
+ $state: z.ZodString;
225
+ }, z.core.$strict>]>;
226
+ select: z.ZodLiteral<"series">;
227
+ }, z.core.$strict>;
228
+ }, z.core.$strict>]>;
229
+ yMin: z.ZodOptional<z.ZodNumber>;
230
+ yMax: z.ZodOptional<z.ZodNumber>;
231
+ }, z.core.$strict>;
232
+ readonly BarChart: z.ZodObject<{
233
+ title: z.ZodOptional<z.ZodString>;
234
+ xLabel: z.ZodOptional<z.ZodString>;
235
+ yLabel: z.ZodOptional<z.ZodString>;
236
+ unit: z.ZodOptional<z.ZodString>;
237
+ series: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
238
+ name: z.ZodString;
239
+ points: z.ZodArray<z.ZodObject<{
240
+ x: z.ZodNumber;
241
+ y: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
242
+ }, z.core.$strict>>;
243
+ }, z.core.$strict>>, z.ZodObject<{
244
+ $computed: z.ZodLiteral<"savingsGrowth">;
245
+ args: z.ZodObject<{
246
+ P: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
247
+ $state: z.ZodString;
248
+ }, z.core.$strict>]>;
249
+ C: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
250
+ $state: z.ZodString;
251
+ }, z.core.$strict>]>;
252
+ R: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
253
+ $state: z.ZodString;
254
+ }, z.core.$strict>]>;
255
+ Y: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
256
+ $state: z.ZodString;
257
+ }, z.core.$strict>]>;
258
+ select: z.ZodLiteral<"series">;
259
+ }, z.core.$strict>;
260
+ }, z.core.$strict>]>;
261
+ yMin: z.ZodOptional<z.ZodNumber>;
262
+ yMax: z.ZodOptional<z.ZodNumber>;
263
+ }, z.core.$strict>;
264
+ readonly Button: z.ZodDiscriminatedUnion<[z.ZodObject<{
265
+ action: z.ZodLiteral<"continue_chat">;
266
+ fields: z.ZodArray<z.ZodObject<{
267
+ label: z.ZodString;
268
+ statePath: z.ZodString;
269
+ }, z.core.$strict>>;
270
+ text: z.ZodString;
271
+ }, z.core.$strict>, z.ZodObject<{
272
+ action: z.ZodLiteral<"reset_state">;
273
+ text: z.ZodString;
274
+ }, z.core.$strict>], "action">;
275
+ readonly ItemList: z.ZodObject<{
276
+ items: z.ZodArray<z.ZodObject<{
277
+ title: z.ZodString;
278
+ description: z.ZodOptional<z.ZodString>;
279
+ }, z.core.$strict>>;
280
+ ordered: z.ZodOptional<z.ZodBoolean>;
281
+ }, z.core.$strict>;
282
+ readonly Timeline: z.ZodObject<{
283
+ items: z.ZodArray<z.ZodObject<{
284
+ label: z.ZodString;
285
+ title: z.ZodString;
286
+ description: z.ZodOptional<z.ZodString>;
287
+ }, z.core.$strict>>;
288
+ }, z.core.$strict>;
289
+ readonly Steps: z.ZodObject<{
290
+ items: z.ZodArray<z.ZodObject<{
291
+ title: z.ZodString;
292
+ description: z.ZodOptional<z.ZodString>;
293
+ }, z.core.$strict>>;
294
+ statePath: z.ZodString;
295
+ }, z.core.$strict>;
296
+ readonly ChoiceGroup: z.ZodObject<{
297
+ label: z.ZodString;
298
+ statePath: z.ZodString;
299
+ options: z.ZodArray<z.ZodObject<{
300
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
301
+ label: z.ZodString;
302
+ description: z.ZodOptional<z.ZodString>;
303
+ }, z.core.$strict>>;
304
+ }, z.core.$strict>;
305
+ };
306
+ export declare const uiSpecInputSchema: z.ZodObject<{
307
+ root: z.ZodString;
308
+ elements: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
309
+ type: z.ZodLiteral<"Stack" | "Grid" | "Card" | "Text" | "Metric" | "Tabs" | "Disclosure" | "NumberInput" | "Slider" | "Select" | "DataTable" | "LineChart" | "BarChart" | "Button" | "ItemList" | "Timeline" | "Steps" | "ChoiceGroup" | "Flowchart">;
310
+ props: z.ZodObject<{
311
+ direction: z.ZodEnum<{
312
+ TB: "TB";
313
+ LR: "LR";
314
+ }>;
315
+ description: z.ZodString;
316
+ nodes: z.ZodArray<z.ZodObject<{
317
+ id: z.ZodString;
318
+ label: z.ZodString;
319
+ kind: z.ZodOptional<z.ZodEnum<{
320
+ process: "process";
321
+ decision: "decision";
322
+ terminal: "terminal";
323
+ }>>;
324
+ }, z.core.$strict>>;
325
+ edges: z.ZodArray<z.ZodObject<{
326
+ id: z.ZodString;
327
+ from: z.ZodString;
328
+ to: z.ZodString;
329
+ label: z.ZodOptional<z.ZodString>;
330
+ }, z.core.$strict>>;
331
+ }, z.core.$strict> | z.ZodObject<{
332
+ direction: z.ZodEnum<{
333
+ row: "row";
334
+ column: "column";
335
+ }>;
336
+ gap: z.ZodUnion<readonly [z.ZodLiteral<4>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
337
+ }, z.core.$strict> | z.ZodObject<{
338
+ columns: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
339
+ gap: z.ZodUnion<readonly [z.ZodLiteral<4>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
340
+ }, z.core.$strict> | z.ZodObject<{
341
+ title: z.ZodOptional<z.ZodString>;
342
+ }, z.core.$strict> | z.ZodObject<{
343
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
344
+ $state: z.ZodString;
345
+ }, z.core.$strict>]>;
346
+ size: z.ZodEnum<{
347
+ md: "md";
348
+ xs: "xs";
349
+ sm: "sm";
350
+ lg: "lg";
351
+ }>;
352
+ tone: z.ZodEnum<{
353
+ error: "error";
354
+ ink: "ink";
355
+ muted: "muted";
356
+ accent: "accent";
357
+ }>;
358
+ }, z.core.$strict> | z.ZodObject<{
359
+ label: z.ZodString;
360
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
361
+ $state: z.ZodString;
362
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
363
+ $computed: z.ZodLiteral<"savingsGrowth">;
364
+ args: z.ZodObject<{
365
+ P: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
366
+ $state: z.ZodString;
367
+ }, z.core.$strict>]>;
368
+ C: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
369
+ $state: z.ZodString;
370
+ }, z.core.$strict>]>;
371
+ R: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
372
+ $state: z.ZodString;
373
+ }, z.core.$strict>]>;
374
+ Y: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
375
+ $state: z.ZodString;
376
+ }, z.core.$strict>]>;
377
+ select: z.ZodLiteral<"final">;
378
+ }, z.core.$strict>;
379
+ }, z.core.$strict>, z.ZodObject<{
380
+ $computed: z.ZodLiteral<"weightedAverage">;
381
+ args: z.ZodObject<{
382
+ pairs: z.ZodArray<z.ZodObject<{
383
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
384
+ $state: z.ZodString;
385
+ }, z.core.$strict>]>;
386
+ weight: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
387
+ $state: z.ZodString;
388
+ }, z.core.$strict>]>;
389
+ }, z.core.$strict>>;
390
+ }, z.core.$strict>;
391
+ }, z.core.$strict>, z.ZodObject<{
392
+ $computed: z.ZodLiteral<"sum">;
393
+ args: z.ZodObject<{
394
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
395
+ $state: z.ZodString;
396
+ }, z.core.$strict>]>>;
397
+ }, z.core.$strict>;
398
+ }, z.core.$strict>], "$computed">]>;
399
+ unit: z.ZodOptional<z.ZodString>;
400
+ tone: z.ZodOptional<z.ZodEnum<{
401
+ error: "error";
402
+ ink: "ink";
403
+ accent: "accent";
404
+ }>>;
405
+ }, z.core.$strict> | z.ZodObject<{
406
+ items: z.ZodArray<z.ZodObject<{
407
+ key: z.ZodString;
408
+ label: z.ZodString;
409
+ }, z.core.$strict>>;
410
+ }, z.core.$strict> | z.ZodObject<{
411
+ summary: z.ZodString;
412
+ defaultOpen: z.ZodBoolean;
413
+ }, z.core.$strict> | z.ZodObject<{
414
+ label: z.ZodString;
415
+ statePath: z.ZodString;
416
+ min: z.ZodNumber;
417
+ max: z.ZodNumber;
418
+ step: z.ZodNumber;
419
+ suffix: z.ZodOptional<z.ZodString>;
420
+ }, z.core.$strict> | z.ZodObject<{
421
+ label: z.ZodString;
422
+ statePath: z.ZodString;
423
+ min: z.ZodNumber;
424
+ max: z.ZodNumber;
425
+ step: z.ZodNumber;
426
+ suffix: z.ZodOptional<z.ZodString>;
427
+ }, z.core.$strict> | z.ZodObject<{
428
+ label: z.ZodString;
429
+ statePath: z.ZodString;
430
+ options: z.ZodArray<z.ZodObject<{
431
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
432
+ label: z.ZodString;
433
+ }, z.core.$strict>>;
434
+ }, z.core.$strict> | z.ZodObject<{
435
+ columns: z.ZodArray<z.ZodObject<{
436
+ key: z.ZodString;
437
+ label: z.ZodString;
438
+ align: z.ZodOptional<z.ZodEnum<{
439
+ left: "left";
440
+ right: "right";
441
+ }>>;
442
+ }, z.core.$strict>>;
443
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
444
+ caption: z.ZodOptional<z.ZodString>;
445
+ filterColumnKey: z.ZodOptional<z.ZodString>;
446
+ sortable: z.ZodOptional<z.ZodBoolean>;
447
+ }, z.core.$strict> | z.ZodObject<{
448
+ title: z.ZodOptional<z.ZodString>;
449
+ xLabel: z.ZodOptional<z.ZodString>;
450
+ yLabel: z.ZodOptional<z.ZodString>;
451
+ unit: z.ZodOptional<z.ZodString>;
452
+ series: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
453
+ name: z.ZodString;
454
+ points: z.ZodArray<z.ZodObject<{
455
+ x: z.ZodNumber;
456
+ y: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
457
+ }, z.core.$strict>>;
458
+ }, z.core.$strict>>, z.ZodObject<{
459
+ $computed: z.ZodLiteral<"savingsGrowth">;
460
+ args: z.ZodObject<{
461
+ P: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
462
+ $state: z.ZodString;
463
+ }, z.core.$strict>]>;
464
+ C: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
465
+ $state: z.ZodString;
466
+ }, z.core.$strict>]>;
467
+ R: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
468
+ $state: z.ZodString;
469
+ }, z.core.$strict>]>;
470
+ Y: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
471
+ $state: z.ZodString;
472
+ }, z.core.$strict>]>;
473
+ select: z.ZodLiteral<"series">;
474
+ }, z.core.$strict>;
475
+ }, z.core.$strict>]>;
476
+ yMin: z.ZodOptional<z.ZodNumber>;
477
+ yMax: z.ZodOptional<z.ZodNumber>;
478
+ }, z.core.$strict> | z.ZodObject<{
479
+ title: z.ZodOptional<z.ZodString>;
480
+ xLabel: z.ZodOptional<z.ZodString>;
481
+ yLabel: z.ZodOptional<z.ZodString>;
482
+ unit: z.ZodOptional<z.ZodString>;
483
+ series: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
484
+ name: z.ZodString;
485
+ points: z.ZodArray<z.ZodObject<{
486
+ x: z.ZodNumber;
487
+ y: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
488
+ }, z.core.$strict>>;
489
+ }, z.core.$strict>>, z.ZodObject<{
490
+ $computed: z.ZodLiteral<"savingsGrowth">;
491
+ args: z.ZodObject<{
492
+ P: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
493
+ $state: z.ZodString;
494
+ }, z.core.$strict>]>;
495
+ C: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
496
+ $state: z.ZodString;
497
+ }, z.core.$strict>]>;
498
+ R: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
499
+ $state: z.ZodString;
500
+ }, z.core.$strict>]>;
501
+ Y: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
502
+ $state: z.ZodString;
503
+ }, z.core.$strict>]>;
504
+ select: z.ZodLiteral<"series">;
505
+ }, z.core.$strict>;
506
+ }, z.core.$strict>]>;
507
+ yMin: z.ZodOptional<z.ZodNumber>;
508
+ yMax: z.ZodOptional<z.ZodNumber>;
509
+ }, z.core.$strict> | z.ZodDiscriminatedUnion<[z.ZodObject<{
510
+ action: z.ZodLiteral<"continue_chat">;
511
+ fields: z.ZodArray<z.ZodObject<{
512
+ label: z.ZodString;
513
+ statePath: z.ZodString;
514
+ }, z.core.$strict>>;
515
+ text: z.ZodString;
516
+ }, z.core.$strict>, z.ZodObject<{
517
+ action: z.ZodLiteral<"reset_state">;
518
+ text: z.ZodString;
519
+ }, z.core.$strict>], "action"> | z.ZodObject<{
520
+ items: z.ZodArray<z.ZodObject<{
521
+ title: z.ZodString;
522
+ description: z.ZodOptional<z.ZodString>;
523
+ }, z.core.$strict>>;
524
+ ordered: z.ZodOptional<z.ZodBoolean>;
525
+ }, z.core.$strict> | z.ZodObject<{
526
+ items: z.ZodArray<z.ZodObject<{
527
+ label: z.ZodString;
528
+ title: z.ZodString;
529
+ description: z.ZodOptional<z.ZodString>;
530
+ }, z.core.$strict>>;
531
+ }, z.core.$strict> | z.ZodObject<{
532
+ items: z.ZodArray<z.ZodObject<{
533
+ title: z.ZodString;
534
+ description: z.ZodOptional<z.ZodString>;
535
+ }, z.core.$strict>>;
536
+ statePath: z.ZodString;
537
+ }, z.core.$strict> | z.ZodObject<{
538
+ label: z.ZodString;
539
+ statePath: z.ZodString;
540
+ options: z.ZodArray<z.ZodObject<{
541
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
542
+ label: z.ZodString;
543
+ description: z.ZodOptional<z.ZodString>;
544
+ }, z.core.$strict>>;
545
+ }, z.core.$strict>;
546
+ visible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodUnion<readonly [z.ZodObject<{
547
+ $state: z.ZodString;
548
+ not: z.ZodOptional<z.ZodLiteral<true>>;
549
+ }, z.core.$strict>, z.ZodObject<{
550
+ $state: z.ZodString;
551
+ eq: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
552
+ $state: z.ZodString;
553
+ }, z.core.$strict>]>;
554
+ not: z.ZodOptional<z.ZodLiteral<true>>;
555
+ }, z.core.$strict>, z.ZodObject<{
556
+ $state: z.ZodString;
557
+ neq: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
558
+ $state: z.ZodString;
559
+ }, z.core.$strict>]>;
560
+ not: z.ZodOptional<z.ZodLiteral<true>>;
561
+ }, z.core.$strict>, z.ZodObject<{
562
+ $state: z.ZodString;
563
+ gt: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
564
+ $state: z.ZodString;
565
+ }, z.core.$strict>]>;
566
+ not: z.ZodOptional<z.ZodLiteral<true>>;
567
+ }, z.core.$strict>, z.ZodObject<{
568
+ $state: z.ZodString;
569
+ gte: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
570
+ $state: z.ZodString;
571
+ }, z.core.$strict>]>;
572
+ not: z.ZodOptional<z.ZodLiteral<true>>;
573
+ }, z.core.$strict>, z.ZodObject<{
574
+ $state: z.ZodString;
575
+ lt: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
576
+ $state: z.ZodString;
577
+ }, z.core.$strict>]>;
578
+ not: z.ZodOptional<z.ZodLiteral<true>>;
579
+ }, z.core.$strict>, z.ZodObject<{
580
+ $state: z.ZodString;
581
+ lte: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
582
+ $state: z.ZodString;
583
+ }, z.core.$strict>]>;
584
+ not: z.ZodOptional<z.ZodLiteral<true>>;
585
+ }, z.core.$strict>]>]>>;
586
+ }, z.core.$strict>, ...z.ZodObject<{
587
+ type: z.ZodLiteral<"Stack" | "Grid" | "Card" | "Text" | "Metric" | "Tabs" | "Disclosure" | "NumberInput" | "Slider" | "Select" | "DataTable" | "LineChart" | "BarChart" | "Button" | "ItemList" | "Timeline" | "Steps" | "ChoiceGroup" | "Flowchart">;
588
+ props: z.ZodObject<{
589
+ direction: z.ZodEnum<{
590
+ TB: "TB";
591
+ LR: "LR";
592
+ }>;
593
+ description: z.ZodString;
594
+ nodes: z.ZodArray<z.ZodObject<{
595
+ id: z.ZodString;
596
+ label: z.ZodString;
597
+ kind: z.ZodOptional<z.ZodEnum<{
598
+ process: "process";
599
+ decision: "decision";
600
+ terminal: "terminal";
601
+ }>>;
602
+ }, z.core.$strict>>;
603
+ edges: z.ZodArray<z.ZodObject<{
604
+ id: z.ZodString;
605
+ from: z.ZodString;
606
+ to: z.ZodString;
607
+ label: z.ZodOptional<z.ZodString>;
608
+ }, z.core.$strict>>;
609
+ }, z.core.$strict> | z.ZodObject<{
610
+ direction: z.ZodEnum<{
611
+ row: "row";
612
+ column: "column";
613
+ }>;
614
+ gap: z.ZodUnion<readonly [z.ZodLiteral<4>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
615
+ }, z.core.$strict> | z.ZodObject<{
616
+ columns: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
617
+ gap: z.ZodUnion<readonly [z.ZodLiteral<4>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
618
+ }, z.core.$strict> | z.ZodObject<{
619
+ title: z.ZodOptional<z.ZodString>;
620
+ }, z.core.$strict> | z.ZodObject<{
621
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
622
+ $state: z.ZodString;
623
+ }, z.core.$strict>]>;
624
+ size: z.ZodEnum<{
625
+ md: "md";
626
+ xs: "xs";
627
+ sm: "sm";
628
+ lg: "lg";
629
+ }>;
630
+ tone: z.ZodEnum<{
631
+ error: "error";
632
+ ink: "ink";
633
+ muted: "muted";
634
+ accent: "accent";
635
+ }>;
636
+ }, z.core.$strict> | z.ZodObject<{
637
+ label: z.ZodString;
638
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
639
+ $state: z.ZodString;
640
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
641
+ $computed: z.ZodLiteral<"savingsGrowth">;
642
+ args: z.ZodObject<{
643
+ P: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
644
+ $state: z.ZodString;
645
+ }, z.core.$strict>]>;
646
+ C: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
647
+ $state: z.ZodString;
648
+ }, z.core.$strict>]>;
649
+ R: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
650
+ $state: z.ZodString;
651
+ }, z.core.$strict>]>;
652
+ Y: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
653
+ $state: z.ZodString;
654
+ }, z.core.$strict>]>;
655
+ select: z.ZodLiteral<"final">;
656
+ }, z.core.$strict>;
657
+ }, z.core.$strict>, z.ZodObject<{
658
+ $computed: z.ZodLiteral<"weightedAverage">;
659
+ args: z.ZodObject<{
660
+ pairs: z.ZodArray<z.ZodObject<{
661
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
662
+ $state: z.ZodString;
663
+ }, z.core.$strict>]>;
664
+ weight: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
665
+ $state: z.ZodString;
666
+ }, z.core.$strict>]>;
667
+ }, z.core.$strict>>;
668
+ }, z.core.$strict>;
669
+ }, z.core.$strict>, z.ZodObject<{
670
+ $computed: z.ZodLiteral<"sum">;
671
+ args: z.ZodObject<{
672
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
673
+ $state: z.ZodString;
674
+ }, z.core.$strict>]>>;
675
+ }, z.core.$strict>;
676
+ }, z.core.$strict>], "$computed">]>;
677
+ unit: z.ZodOptional<z.ZodString>;
678
+ tone: z.ZodOptional<z.ZodEnum<{
679
+ error: "error";
680
+ ink: "ink";
681
+ accent: "accent";
682
+ }>>;
683
+ }, z.core.$strict> | z.ZodObject<{
684
+ items: z.ZodArray<z.ZodObject<{
685
+ key: z.ZodString;
686
+ label: z.ZodString;
687
+ }, z.core.$strict>>;
688
+ }, z.core.$strict> | z.ZodObject<{
689
+ summary: z.ZodString;
690
+ defaultOpen: z.ZodBoolean;
691
+ }, z.core.$strict> | z.ZodObject<{
692
+ label: z.ZodString;
693
+ statePath: z.ZodString;
694
+ min: z.ZodNumber;
695
+ max: z.ZodNumber;
696
+ step: z.ZodNumber;
697
+ suffix: z.ZodOptional<z.ZodString>;
698
+ }, z.core.$strict> | z.ZodObject<{
699
+ label: z.ZodString;
700
+ statePath: z.ZodString;
701
+ min: z.ZodNumber;
702
+ max: z.ZodNumber;
703
+ step: z.ZodNumber;
704
+ suffix: z.ZodOptional<z.ZodString>;
705
+ }, z.core.$strict> | z.ZodObject<{
706
+ label: z.ZodString;
707
+ statePath: z.ZodString;
708
+ options: z.ZodArray<z.ZodObject<{
709
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
710
+ label: z.ZodString;
711
+ }, z.core.$strict>>;
712
+ }, z.core.$strict> | z.ZodObject<{
713
+ columns: z.ZodArray<z.ZodObject<{
714
+ key: z.ZodString;
715
+ label: z.ZodString;
716
+ align: z.ZodOptional<z.ZodEnum<{
717
+ left: "left";
718
+ right: "right";
719
+ }>>;
720
+ }, z.core.$strict>>;
721
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
722
+ caption: z.ZodOptional<z.ZodString>;
723
+ filterColumnKey: z.ZodOptional<z.ZodString>;
724
+ sortable: z.ZodOptional<z.ZodBoolean>;
725
+ }, z.core.$strict> | z.ZodObject<{
726
+ title: z.ZodOptional<z.ZodString>;
727
+ xLabel: z.ZodOptional<z.ZodString>;
728
+ yLabel: z.ZodOptional<z.ZodString>;
729
+ unit: z.ZodOptional<z.ZodString>;
730
+ series: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
731
+ name: z.ZodString;
732
+ points: z.ZodArray<z.ZodObject<{
733
+ x: z.ZodNumber;
734
+ y: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
735
+ }, z.core.$strict>>;
736
+ }, z.core.$strict>>, z.ZodObject<{
737
+ $computed: z.ZodLiteral<"savingsGrowth">;
738
+ args: z.ZodObject<{
739
+ P: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
740
+ $state: z.ZodString;
741
+ }, z.core.$strict>]>;
742
+ C: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
743
+ $state: z.ZodString;
744
+ }, z.core.$strict>]>;
745
+ R: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
746
+ $state: z.ZodString;
747
+ }, z.core.$strict>]>;
748
+ Y: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
749
+ $state: z.ZodString;
750
+ }, z.core.$strict>]>;
751
+ select: z.ZodLiteral<"series">;
752
+ }, z.core.$strict>;
753
+ }, z.core.$strict>]>;
754
+ yMin: z.ZodOptional<z.ZodNumber>;
755
+ yMax: z.ZodOptional<z.ZodNumber>;
756
+ }, z.core.$strict> | z.ZodObject<{
757
+ title: z.ZodOptional<z.ZodString>;
758
+ xLabel: z.ZodOptional<z.ZodString>;
759
+ yLabel: z.ZodOptional<z.ZodString>;
760
+ unit: z.ZodOptional<z.ZodString>;
761
+ series: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
762
+ name: z.ZodString;
763
+ points: z.ZodArray<z.ZodObject<{
764
+ x: z.ZodNumber;
765
+ y: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
766
+ }, z.core.$strict>>;
767
+ }, z.core.$strict>>, z.ZodObject<{
768
+ $computed: z.ZodLiteral<"savingsGrowth">;
769
+ args: z.ZodObject<{
770
+ P: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
771
+ $state: z.ZodString;
772
+ }, z.core.$strict>]>;
773
+ C: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
774
+ $state: z.ZodString;
775
+ }, z.core.$strict>]>;
776
+ R: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
777
+ $state: z.ZodString;
778
+ }, z.core.$strict>]>;
779
+ Y: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
780
+ $state: z.ZodString;
781
+ }, z.core.$strict>]>;
782
+ select: z.ZodLiteral<"series">;
783
+ }, z.core.$strict>;
784
+ }, z.core.$strict>]>;
785
+ yMin: z.ZodOptional<z.ZodNumber>;
786
+ yMax: z.ZodOptional<z.ZodNumber>;
787
+ }, z.core.$strict> | z.ZodDiscriminatedUnion<[z.ZodObject<{
788
+ action: z.ZodLiteral<"continue_chat">;
789
+ fields: z.ZodArray<z.ZodObject<{
790
+ label: z.ZodString;
791
+ statePath: z.ZodString;
792
+ }, z.core.$strict>>;
793
+ text: z.ZodString;
794
+ }, z.core.$strict>, z.ZodObject<{
795
+ action: z.ZodLiteral<"reset_state">;
796
+ text: z.ZodString;
797
+ }, z.core.$strict>], "action"> | z.ZodObject<{
798
+ items: z.ZodArray<z.ZodObject<{
799
+ title: z.ZodString;
800
+ description: z.ZodOptional<z.ZodString>;
801
+ }, z.core.$strict>>;
802
+ ordered: z.ZodOptional<z.ZodBoolean>;
803
+ }, z.core.$strict> | z.ZodObject<{
804
+ items: z.ZodArray<z.ZodObject<{
805
+ label: z.ZodString;
806
+ title: z.ZodString;
807
+ description: z.ZodOptional<z.ZodString>;
808
+ }, z.core.$strict>>;
809
+ }, z.core.$strict> | z.ZodObject<{
810
+ items: z.ZodArray<z.ZodObject<{
811
+ title: z.ZodString;
812
+ description: z.ZodOptional<z.ZodString>;
813
+ }, z.core.$strict>>;
814
+ statePath: z.ZodString;
815
+ }, z.core.$strict> | z.ZodObject<{
816
+ label: z.ZodString;
817
+ statePath: z.ZodString;
818
+ options: z.ZodArray<z.ZodObject<{
819
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
820
+ label: z.ZodString;
821
+ description: z.ZodOptional<z.ZodString>;
822
+ }, z.core.$strict>>;
823
+ }, z.core.$strict>;
824
+ visible: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodUnion<readonly [z.ZodObject<{
825
+ $state: z.ZodString;
826
+ not: z.ZodOptional<z.ZodLiteral<true>>;
827
+ }, z.core.$strict>, z.ZodObject<{
828
+ $state: z.ZodString;
829
+ eq: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
830
+ $state: z.ZodString;
831
+ }, z.core.$strict>]>;
832
+ not: z.ZodOptional<z.ZodLiteral<true>>;
833
+ }, z.core.$strict>, z.ZodObject<{
834
+ $state: z.ZodString;
835
+ neq: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
836
+ $state: z.ZodString;
837
+ }, z.core.$strict>]>;
838
+ not: z.ZodOptional<z.ZodLiteral<true>>;
839
+ }, z.core.$strict>, z.ZodObject<{
840
+ $state: z.ZodString;
841
+ gt: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
842
+ $state: z.ZodString;
843
+ }, z.core.$strict>]>;
844
+ not: z.ZodOptional<z.ZodLiteral<true>>;
845
+ }, z.core.$strict>, z.ZodObject<{
846
+ $state: z.ZodString;
847
+ gte: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
848
+ $state: z.ZodString;
849
+ }, z.core.$strict>]>;
850
+ not: z.ZodOptional<z.ZodLiteral<true>>;
851
+ }, z.core.$strict>, z.ZodObject<{
852
+ $state: z.ZodString;
853
+ lt: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
854
+ $state: z.ZodString;
855
+ }, z.core.$strict>]>;
856
+ not: z.ZodOptional<z.ZodLiteral<true>>;
857
+ }, z.core.$strict>, z.ZodObject<{
858
+ $state: z.ZodString;
859
+ lte: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
860
+ $state: z.ZodString;
861
+ }, z.core.$strict>]>;
862
+ not: z.ZodOptional<z.ZodLiteral<true>>;
863
+ }, z.core.$strict>]>]>>;
864
+ }, z.core.$strict>[]]>>;
865
+ state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
866
+ }, z.core.$strict>;
867
+ export declare function validateUiSpec(value: unknown): UiSpec;
868
+ export declare function validateNormalizedUiSpec(value: unknown): UiSpec;
869
+ export declare const UI_COMPUTED_FUNCTIONS: Record<string, (args: Record<string, unknown>) => unknown>;
870
+ export declare function measureUiJsonBytes(value: unknown, maxBytes?: number): number;