@loopstack/loopstack-studio 0.23.1 → 0.25.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 (147) hide show
  1. package/dist/api/config.js +3 -3
  2. package/dist/api/index.js +10 -12
  3. package/dist/api/processor.js +1 -1
  4. package/dist/api/secrets.js +16 -0
  5. package/dist/api/workflows.js +7 -1
  6. package/dist/components/dynamic-form/ArrayController.js +68 -64
  7. package/dist/components/dynamic-form/CodeContent.js +3 -3
  8. package/dist/components/dynamic-form/Form.js +46 -40
  9. package/dist/components/dynamic-form/FormElement.js +1 -1
  10. package/dist/components/dynamic-form/FormElementHeader.js +2 -2
  11. package/dist/components/dynamic-form/ObjectController.js +24 -21
  12. package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +1 -1
  13. package/dist/components/dynamic-form/fields/CodeViewField.js +36 -36
  14. package/dist/components/dynamic-form/fields/InputField.js +20 -19
  15. package/dist/components/dynamic-form/fields/RadioField.js +18 -18
  16. package/dist/components/dynamic-form/fields/SelectField.js +19 -19
  17. package/dist/components/dynamic-form/fields/TextareaField.js +17 -17
  18. package/dist/components/feedback/LoadingCentered.js +1 -1
  19. package/dist/components/layout/MainLayout.js +18 -31
  20. package/dist/components/layout/StudioSidebar.js +169 -109
  21. package/dist/components/loopstack-elements/link.js +77 -76
  22. package/dist/components/loopstack-elements/tool.js +171 -0
  23. package/dist/components/page/PageBreadcrumbs.js +79 -32
  24. package/dist/components/ui-widgets/UiActions.js +10 -4
  25. package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +8 -6
  26. package/dist/components/ui-widgets/widgets/SubmitButton.js +8 -6
  27. package/dist/features/code-explorer/components/FileContentViewer.js +92 -100
  28. package/dist/features/dashboard/RunItem.js +1 -1
  29. package/dist/features/debug/components/ConfigFlowViewer.js +2 -2
  30. package/dist/features/debug/components/{PipelineDebugHeader.js → WorkflowDebugHeader.js} +5 -5
  31. package/dist/features/debug/components/{PipelineDebugLegend.js → WorkflowDebugLegend.js} +2 -2
  32. package/dist/features/debug/components/{PipelineFlowViewer.js → WorkflowFlowViewer.js} +9 -9
  33. package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +46 -0
  34. package/dist/features/debug/index.js +2 -2
  35. package/dist/features/debug/lib/flow-utils.js +142 -150
  36. package/dist/features/documents/DocumentRenderer.js +66 -30
  37. package/dist/features/documents/components/DocumentItem.js +2 -2
  38. package/dist/features/documents/components/DocumentList.js +18 -11
  39. package/dist/features/documents/document-details/DocumentDetails.js +4 -4
  40. package/dist/features/documents/renderers/AiMessage.js +12 -12
  41. package/dist/features/documents/renderers/ChoicesRenderer.js +92 -0
  42. package/dist/features/documents/renderers/ClaudeMessage.js +1 -1
  43. package/dist/features/documents/renderers/ConfirmPromptRenderer.js +56 -0
  44. package/dist/features/documents/renderers/DocumentFormRenderer.js +95 -65
  45. package/dist/features/documents/renderers/LinkMessageRenderer.js +8 -10
  46. package/dist/features/documents/renderers/SecretInputRenderer.js +87 -0
  47. package/dist/features/documents/renderers/TextPromptRenderer.js +57 -0
  48. package/dist/features/documents/renderers/useDocumentTransition.js +30 -0
  49. package/dist/features/oauth/OAuthPromptRenderer.js +20 -20
  50. package/dist/features/runs/Runs.js +8 -8
  51. package/dist/features/workbench/Workbench.js +35 -35
  52. package/dist/features/workbench/WorkflowItem.js +10 -9
  53. package/dist/features/workbench/WorkflowList.js +56 -73
  54. package/dist/features/workbench/components/NewRunDialog.js +18 -18
  55. package/dist/features/workbench/components/WorkbenchFilesPanel.js +33 -26
  56. package/dist/features/workbench/components/WorkbenchFloatingPanel.js +13 -44
  57. package/dist/features/workbench/components/WorkbenchFlowPanel.js +27 -29
  58. package/dist/features/workbench/components/WorkbenchIconSidebar.js +17 -17
  59. package/dist/features/workbench/components/WorkbenchPreviewPanel.js +2 -2
  60. package/dist/features/workbench/components/WorkbenchSecretsPanel.js +182 -0
  61. package/dist/features/workbench/components/WorkbenchSettingsModal.js +16 -41
  62. package/dist/features/workbench/components/WorkflowForms.js +14 -13
  63. package/dist/features/workbench/components/WorkflowHistoryItem.js +60 -81
  64. package/dist/features/workbench/components/{PipelineHistoryList.js → WorkflowHistoryList.js} +5 -5
  65. package/dist/features/workbench/components/buttons/WorkflowButtons.js +56 -54
  66. package/dist/features/workbench/hooks/useWorkflowData.js +10 -10
  67. package/dist/features/workbench/hooks/useWorkflowListState.js +8 -45
  68. package/dist/features/workbench/index.js +2 -3
  69. package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +132 -117
  70. package/dist/features/workbench/providers/ScrollProvider.js +2 -2
  71. package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +4 -4
  72. package/dist/features/workspaces/Workspaces.js +1 -1
  73. package/dist/features/workspaces/components/CreateWorkspace.js +12 -12
  74. package/dist/features/workspaces/components/ExecutionTimeline.js +22 -21
  75. package/dist/features/workspaces/components/{NewPipelineRunDialog.js → NewWorkflowRunDialog.js} +6 -6
  76. package/dist/features/workspaces/components/{PipelineForm.js → WorkflowRunForm.js} +31 -31
  77. package/dist/features/workspaces/components/WorkspaceHomePage.js +11 -11
  78. package/dist/features/workspaces/components/{pipeline-form → workflow-form}/ArgumentsView.js +1 -1
  79. package/dist/features/workspaces/components/{pipeline-form → workflow-form}/SelectionView.js +16 -16
  80. package/dist/hooks/index.js +3 -3
  81. package/dist/hooks/query-keys.js +34 -68
  82. package/dist/hooks/useConfig.js +5 -5
  83. package/dist/hooks/useProcessor.js +5 -5
  84. package/dist/hooks/useSecrets.js +69 -0
  85. package/dist/hooks/useWorkflows.js +155 -68
  86. package/dist/index.d.ts +158 -116
  87. package/dist/index.js +5 -5
  88. package/dist/packages/contracts/dist/enums/index.js +11 -12
  89. package/dist/packages/contracts/dist/enums/workflow-state.enum.js +1 -1
  90. package/dist/pages/DashboardPage.js +87 -35
  91. package/dist/pages/DebugWorkflowDetailsPage.js +8 -8
  92. package/dist/pages/DebugWorkflowsPage.js +10 -10
  93. package/dist/pages/EmbedWorkbenchPage.js +39 -45
  94. package/dist/pages/PreviewWorkbenchPage.js +130 -255
  95. package/dist/pages/RunsListPage.js +1 -1
  96. package/dist/pages/StudioLandingPage.js +13 -13
  97. package/dist/pages/WorkbenchPage.js +6 -6
  98. package/dist/pages/WorkflowDebugPage.js +114 -0
  99. package/dist/pages/WorkspacePage.js +4 -2
  100. package/dist/providers/InvalidationEventsProvider.js +19 -19
  101. package/dist/providers/SseProvider.js +0 -1
  102. package/dist/routing/LocalRouter.js +14 -17
  103. package/dist/types/ai.types.js +13 -0
  104. package/package.json +2 -3
  105. package/dist/api/namespaces.js +0 -7
  106. package/dist/api/pipelines.js +0 -13
  107. package/dist/components/ai-elements/tool.js +0 -158
  108. package/dist/features/debug/components/pipeline-flow/WorkflowGraph.js +0 -41
  109. package/dist/features/workbench/NavigationItems.js +0 -52
  110. package/dist/features/workbench/WorkbenchNavigation.js +0 -38
  111. package/dist/features/workbench/components/NavigationItem.js +0 -68
  112. package/dist/features/workbench/hooks/useIntersectionObserver.js +0 -44
  113. package/dist/hooks/useNamespaceTree.js +0 -27
  114. package/dist/hooks/useNamespaces.js +0 -25
  115. package/dist/hooks/usePipelines.js +0 -161
  116. package/dist/node_modules/@ai-sdk/provider/dist/index.js +0 -65
  117. package/dist/node_modules/@ai-sdk/provider-utils/dist/index.js +0 -1008
  118. package/dist/node_modules/ai/dist/index.js +0 -1083
  119. package/dist/node_modules/zod/v3/ZodError.js +0 -79
  120. package/dist/node_modules/zod/v3/errors.js +0 -6
  121. package/dist/node_modules/zod/v3/helpers/errorUtil.js +0 -5
  122. package/dist/node_modules/zod/v3/helpers/parseUtil.js +0 -90
  123. package/dist/node_modules/zod/v3/helpers/util.js +0 -72
  124. package/dist/node_modules/zod/v3/locales/en.js +0 -58
  125. package/dist/node_modules/zod/v3/types.js +0 -2425
  126. package/dist/node_modules/zod/v4/classic/errors.js +0 -21
  127. package/dist/node_modules/zod/v4/classic/iso.js +0 -29
  128. package/dist/node_modules/zod/v4/classic/parse.js +0 -4
  129. package/dist/node_modules/zod/v4/classic/schemas.js +0 -392
  130. package/dist/node_modules/zod/v4/core/api.js +0 -532
  131. package/dist/node_modules/zod/v4/core/checks.js +0 -283
  132. package/dist/node_modules/zod/v4/core/core.js +0 -44
  133. package/dist/node_modules/zod/v4/core/doc.js +0 -21
  134. package/dist/node_modules/zod/v4/core/errors.js +0 -40
  135. package/dist/node_modules/zod/v4/core/json-schema-processors.js +0 -305
  136. package/dist/node_modules/zod/v4/core/parse.js +0 -66
  137. package/dist/node_modules/zod/v4/core/regexes.js +0 -28
  138. package/dist/node_modules/zod/v4/core/registries.js +0 -38
  139. package/dist/node_modules/zod/v4/core/schemas.js +0 -863
  140. package/dist/node_modules/zod/v4/core/to-json-schema.js +0 -220
  141. package/dist/node_modules/zod/v4/core/util.js +0 -267
  142. package/dist/node_modules/zod/v4/core/versions.js +0 -6
  143. package/dist/packages/contracts/dist/enums/pipeline-state.js +0 -10
  144. package/dist/pages/PipelineDebugPage.js +0 -115
  145. /package/dist/features/debug/components/{pipeline-flow → workflow-flow}/StateNode.js +0 -0
  146. /package/dist/features/debug/components/{pipeline-flow → workflow-flow}/WorkflowTransitionEdge.js +0 -0
  147. /package/dist/features/workspaces/components/{pipeline-form → workflow-form}/HeaderSection.js +0 -0
@@ -1,532 +0,0 @@
1
- import { issue, normalizeParams, slugify } from "./util.js";
2
- import { $ZodCheck, $ZodCheckEndsWith, $ZodCheckGreaterThan, $ZodCheckIncludes, $ZodCheckLengthEquals, $ZodCheckLessThan, $ZodCheckLowerCase, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckMultipleOf, $ZodCheckOverwrite, $ZodCheckRegex, $ZodCheckStartsWith, $ZodCheckUpperCase } from "./checks.js";
3
- import { globalRegistry } from "./registries.js";
4
- /* @__NO_SIDE_EFFECTS__ */
5
- function _string(x, Z) {
6
- return new x({
7
- type: "string",
8
- ...normalizeParams(Z)
9
- });
10
- }
11
- /* @__NO_SIDE_EFFECTS__ */
12
- function _email(x, Z) {
13
- return new x({
14
- type: "string",
15
- format: "email",
16
- check: "string_format",
17
- abort: !1,
18
- ...normalizeParams(Z)
19
- });
20
- }
21
- /* @__NO_SIDE_EFFECTS__ */
22
- function _guid(x, Z) {
23
- return new x({
24
- type: "string",
25
- format: "guid",
26
- check: "string_format",
27
- abort: !1,
28
- ...normalizeParams(Z)
29
- });
30
- }
31
- /* @__NO_SIDE_EFFECTS__ */
32
- function _uuid(x, Z) {
33
- return new x({
34
- type: "string",
35
- format: "uuid",
36
- check: "string_format",
37
- abort: !1,
38
- ...normalizeParams(Z)
39
- });
40
- }
41
- /* @__NO_SIDE_EFFECTS__ */
42
- function _uuidv4(x, Z) {
43
- return new x({
44
- type: "string",
45
- format: "uuid",
46
- check: "string_format",
47
- abort: !1,
48
- version: "v4",
49
- ...normalizeParams(Z)
50
- });
51
- }
52
- /* @__NO_SIDE_EFFECTS__ */
53
- function _uuidv6(x, Z) {
54
- return new x({
55
- type: "string",
56
- format: "uuid",
57
- check: "string_format",
58
- abort: !1,
59
- version: "v6",
60
- ...normalizeParams(Z)
61
- });
62
- }
63
- /* @__NO_SIDE_EFFECTS__ */
64
- function _uuidv7(x, Z) {
65
- return new x({
66
- type: "string",
67
- format: "uuid",
68
- check: "string_format",
69
- abort: !1,
70
- version: "v7",
71
- ...normalizeParams(Z)
72
- });
73
- }
74
- /* @__NO_SIDE_EFFECTS__ */
75
- function _url(x, Z) {
76
- return new x({
77
- type: "string",
78
- format: "url",
79
- check: "string_format",
80
- abort: !1,
81
- ...normalizeParams(Z)
82
- });
83
- }
84
- /* @__NO_SIDE_EFFECTS__ */
85
- function _emoji(x, Z) {
86
- return new x({
87
- type: "string",
88
- format: "emoji",
89
- check: "string_format",
90
- abort: !1,
91
- ...normalizeParams(Z)
92
- });
93
- }
94
- /* @__NO_SIDE_EFFECTS__ */
95
- function _nanoid(x, Z) {
96
- return new x({
97
- type: "string",
98
- format: "nanoid",
99
- check: "string_format",
100
- abort: !1,
101
- ...normalizeParams(Z)
102
- });
103
- }
104
- /* @__NO_SIDE_EFFECTS__ */
105
- function _cuid(x, Z) {
106
- return new x({
107
- type: "string",
108
- format: "cuid",
109
- check: "string_format",
110
- abort: !1,
111
- ...normalizeParams(Z)
112
- });
113
- }
114
- /* @__NO_SIDE_EFFECTS__ */
115
- function _cuid2(x, Z) {
116
- return new x({
117
- type: "string",
118
- format: "cuid2",
119
- check: "string_format",
120
- abort: !1,
121
- ...normalizeParams(Z)
122
- });
123
- }
124
- /* @__NO_SIDE_EFFECTS__ */
125
- function _ulid(x, Z) {
126
- return new x({
127
- type: "string",
128
- format: "ulid",
129
- check: "string_format",
130
- abort: !1,
131
- ...normalizeParams(Z)
132
- });
133
- }
134
- /* @__NO_SIDE_EFFECTS__ */
135
- function _xid(x, Z) {
136
- return new x({
137
- type: "string",
138
- format: "xid",
139
- check: "string_format",
140
- abort: !1,
141
- ...normalizeParams(Z)
142
- });
143
- }
144
- /* @__NO_SIDE_EFFECTS__ */
145
- function _ksuid(x, Z) {
146
- return new x({
147
- type: "string",
148
- format: "ksuid",
149
- check: "string_format",
150
- abort: !1,
151
- ...normalizeParams(Z)
152
- });
153
- }
154
- /* @__NO_SIDE_EFFECTS__ */
155
- function _ipv4(x, Z) {
156
- return new x({
157
- type: "string",
158
- format: "ipv4",
159
- check: "string_format",
160
- abort: !1,
161
- ...normalizeParams(Z)
162
- });
163
- }
164
- /* @__NO_SIDE_EFFECTS__ */
165
- function _ipv6(x, Z) {
166
- return new x({
167
- type: "string",
168
- format: "ipv6",
169
- check: "string_format",
170
- abort: !1,
171
- ...normalizeParams(Z)
172
- });
173
- }
174
- /* @__NO_SIDE_EFFECTS__ */
175
- function _cidrv4(x, Z) {
176
- return new x({
177
- type: "string",
178
- format: "cidrv4",
179
- check: "string_format",
180
- abort: !1,
181
- ...normalizeParams(Z)
182
- });
183
- }
184
- /* @__NO_SIDE_EFFECTS__ */
185
- function _cidrv6(x, Z) {
186
- return new x({
187
- type: "string",
188
- format: "cidrv6",
189
- check: "string_format",
190
- abort: !1,
191
- ...normalizeParams(Z)
192
- });
193
- }
194
- /* @__NO_SIDE_EFFECTS__ */
195
- function _base64(x, Z) {
196
- return new x({
197
- type: "string",
198
- format: "base64",
199
- check: "string_format",
200
- abort: !1,
201
- ...normalizeParams(Z)
202
- });
203
- }
204
- /* @__NO_SIDE_EFFECTS__ */
205
- function _base64url(x, Z) {
206
- return new x({
207
- type: "string",
208
- format: "base64url",
209
- check: "string_format",
210
- abort: !1,
211
- ...normalizeParams(Z)
212
- });
213
- }
214
- /* @__NO_SIDE_EFFECTS__ */
215
- function _e164(x, Z) {
216
- return new x({
217
- type: "string",
218
- format: "e164",
219
- check: "string_format",
220
- abort: !1,
221
- ...normalizeParams(Z)
222
- });
223
- }
224
- /* @__NO_SIDE_EFFECTS__ */
225
- function _jwt(x, Z) {
226
- return new x({
227
- type: "string",
228
- format: "jwt",
229
- check: "string_format",
230
- abort: !1,
231
- ...normalizeParams(Z)
232
- });
233
- }
234
- /* @__NO_SIDE_EFFECTS__ */
235
- function _isoDateTime(x, Z) {
236
- return new x({
237
- type: "string",
238
- format: "datetime",
239
- check: "string_format",
240
- offset: !1,
241
- local: !1,
242
- precision: null,
243
- ...normalizeParams(Z)
244
- });
245
- }
246
- /* @__NO_SIDE_EFFECTS__ */
247
- function _isoDate(x, Z) {
248
- return new x({
249
- type: "string",
250
- format: "date",
251
- check: "string_format",
252
- ...normalizeParams(Z)
253
- });
254
- }
255
- /* @__NO_SIDE_EFFECTS__ */
256
- function _isoTime(x, Z) {
257
- return new x({
258
- type: "string",
259
- format: "time",
260
- check: "string_format",
261
- precision: null,
262
- ...normalizeParams(Z)
263
- });
264
- }
265
- /* @__NO_SIDE_EFFECTS__ */
266
- function _isoDuration(x, Z) {
267
- return new x({
268
- type: "string",
269
- format: "duration",
270
- check: "string_format",
271
- ...normalizeParams(Z)
272
- });
273
- }
274
- /* @__NO_SIDE_EFFECTS__ */
275
- function _number(x, Z) {
276
- return new x({
277
- type: "number",
278
- checks: [],
279
- ...normalizeParams(Z)
280
- });
281
- }
282
- /* @__NO_SIDE_EFFECTS__ */
283
- function _int(x, Z) {
284
- return new x({
285
- type: "number",
286
- check: "number_format",
287
- abort: !1,
288
- format: "safeint",
289
- ...normalizeParams(Z)
290
- });
291
- }
292
- /* @__NO_SIDE_EFFECTS__ */
293
- function _boolean(x, Z) {
294
- return new x({
295
- type: "boolean",
296
- ...normalizeParams(Z)
297
- });
298
- }
299
- /* @__NO_SIDE_EFFECTS__ */
300
- function _null(x, Z) {
301
- return new x({
302
- type: "null",
303
- ...normalizeParams(Z)
304
- });
305
- }
306
- /* @__NO_SIDE_EFFECTS__ */
307
- function _unknown(x) {
308
- return new x({ type: "unknown" });
309
- }
310
- /* @__NO_SIDE_EFFECTS__ */
311
- function _never(x, Z) {
312
- return new x({
313
- type: "never",
314
- ...normalizeParams(Z)
315
- });
316
- }
317
- /* @__NO_SIDE_EFFECTS__ */
318
- function _lt(x, Z) {
319
- return new $ZodCheckLessThan({
320
- check: "less_than",
321
- ...normalizeParams(Z),
322
- value: x,
323
- inclusive: !1
324
- });
325
- }
326
- /* @__NO_SIDE_EFFECTS__ */
327
- function _lte(x, Z) {
328
- return new $ZodCheckLessThan({
329
- check: "less_than",
330
- ...normalizeParams(Z),
331
- value: x,
332
- inclusive: !0
333
- });
334
- }
335
- /* @__NO_SIDE_EFFECTS__ */
336
- function _gt(x, Z) {
337
- return new $ZodCheckGreaterThan({
338
- check: "greater_than",
339
- ...normalizeParams(Z),
340
- value: x,
341
- inclusive: !1
342
- });
343
- }
344
- /* @__NO_SIDE_EFFECTS__ */
345
- function _gte(x, Z) {
346
- return new $ZodCheckGreaterThan({
347
- check: "greater_than",
348
- ...normalizeParams(Z),
349
- value: x,
350
- inclusive: !0
351
- });
352
- }
353
- /* @__NO_SIDE_EFFECTS__ */
354
- function _multipleOf(x, Z) {
355
- return new $ZodCheckMultipleOf({
356
- check: "multiple_of",
357
- ...normalizeParams(Z),
358
- value: x
359
- });
360
- }
361
- /* @__NO_SIDE_EFFECTS__ */
362
- function _maxLength(x, Z) {
363
- return new $ZodCheckMaxLength({
364
- check: "max_length",
365
- ...normalizeParams(Z),
366
- maximum: x
367
- });
368
- }
369
- /* @__NO_SIDE_EFFECTS__ */
370
- function _minLength(x, Z) {
371
- return new $ZodCheckMinLength({
372
- check: "min_length",
373
- ...normalizeParams(Z),
374
- minimum: x
375
- });
376
- }
377
- /* @__NO_SIDE_EFFECTS__ */
378
- function _length(x, Z) {
379
- return new $ZodCheckLengthEquals({
380
- check: "length_equals",
381
- ...normalizeParams(Z),
382
- length: x
383
- });
384
- }
385
- /* @__NO_SIDE_EFFECTS__ */
386
- function _regex(x, Z) {
387
- return new $ZodCheckRegex({
388
- check: "string_format",
389
- format: "regex",
390
- ...normalizeParams(Z),
391
- pattern: x
392
- });
393
- }
394
- /* @__NO_SIDE_EFFECTS__ */
395
- function _lowercase(x) {
396
- return new $ZodCheckLowerCase({
397
- check: "string_format",
398
- format: "lowercase",
399
- ...normalizeParams(x)
400
- });
401
- }
402
- /* @__NO_SIDE_EFFECTS__ */
403
- function _uppercase(x) {
404
- return new $ZodCheckUpperCase({
405
- check: "string_format",
406
- format: "uppercase",
407
- ...normalizeParams(x)
408
- });
409
- }
410
- /* @__NO_SIDE_EFFECTS__ */
411
- function _includes(x, Z) {
412
- return new $ZodCheckIncludes({
413
- check: "string_format",
414
- format: "includes",
415
- ...normalizeParams(Z),
416
- includes: x
417
- });
418
- }
419
- /* @__NO_SIDE_EFFECTS__ */
420
- function _startsWith(x, Z) {
421
- return new $ZodCheckStartsWith({
422
- check: "string_format",
423
- format: "starts_with",
424
- ...normalizeParams(Z),
425
- prefix: x
426
- });
427
- }
428
- /* @__NO_SIDE_EFFECTS__ */
429
- function _endsWith(x, Z) {
430
- return new $ZodCheckEndsWith({
431
- check: "string_format",
432
- format: "ends_with",
433
- ...normalizeParams(Z),
434
- suffix: x
435
- });
436
- }
437
- /* @__NO_SIDE_EFFECTS__ */
438
- function _overwrite(x) {
439
- return new $ZodCheckOverwrite({
440
- check: "overwrite",
441
- tx: x
442
- });
443
- }
444
- /* @__NO_SIDE_EFFECTS__ */
445
- function _normalize(x) {
446
- return /* @__PURE__ */ _overwrite((X) => X.normalize(x));
447
- }
448
- /* @__NO_SIDE_EFFECTS__ */
449
- function _trim() {
450
- return /* @__PURE__ */ _overwrite((x) => x.trim());
451
- }
452
- /* @__NO_SIDE_EFFECTS__ */
453
- function _toLowerCase() {
454
- return /* @__PURE__ */ _overwrite((x) => x.toLowerCase());
455
- }
456
- /* @__NO_SIDE_EFFECTS__ */
457
- function _toUpperCase() {
458
- return /* @__PURE__ */ _overwrite((x) => x.toUpperCase());
459
- }
460
- /* @__NO_SIDE_EFFECTS__ */
461
- function _slugify() {
462
- return /* @__PURE__ */ _overwrite((x) => slugify(x));
463
- }
464
- /* @__NO_SIDE_EFFECTS__ */
465
- function _array(x, Z, Q) {
466
- return new x({
467
- type: "array",
468
- element: Z,
469
- ...normalizeParams(Q)
470
- });
471
- }
472
- /* @__NO_SIDE_EFFECTS__ */
473
- function _custom(x, Z, Q) {
474
- let $ = normalizeParams(Q);
475
- return $.abort ??= !0, new x({
476
- type: "custom",
477
- check: "custom",
478
- fn: Z,
479
- ...$
480
- });
481
- }
482
- /* @__NO_SIDE_EFFECTS__ */
483
- function _refine(x, Z, Q) {
484
- return new x({
485
- type: "custom",
486
- check: "custom",
487
- fn: Z,
488
- ...normalizeParams(Q)
489
- });
490
- }
491
- /* @__NO_SIDE_EFFECTS__ */
492
- function _superRefine(X) {
493
- let Z = /* @__PURE__ */ _check((Q) => (Q.addIssue = (X) => {
494
- if (typeof X == "string") Q.issues.push(issue(X, Q.value, Z._zod.def));
495
- else {
496
- let $ = X;
497
- $.fatal && ($.continue = !1), $.code ??= "custom", $.input ??= Q.value, $.inst ??= Z, $.continue ??= !Z._zod.def.abort, Q.issues.push(issue($));
498
- }
499
- }, X(Q.value, Q)));
500
- return Z;
501
- }
502
- /* @__NO_SIDE_EFFECTS__ */
503
- function _check(x, Z) {
504
- let $ = new $ZodCheck({
505
- check: "custom",
506
- ...normalizeParams(Z)
507
- });
508
- return $._zod.check = x, $;
509
- }
510
- /* @__NO_SIDE_EFFECTS__ */
511
- function describe(x) {
512
- let X = new $ZodCheck({ check: "describe" });
513
- return X._zod.onattach = [(X) => {
514
- let Z = globalRegistry.get(X) ?? {};
515
- globalRegistry.add(X, {
516
- ...Z,
517
- description: x
518
- });
519
- }], X._zod.check = () => {}, X;
520
- }
521
- /* @__NO_SIDE_EFFECTS__ */
522
- function meta(x) {
523
- let X = new $ZodCheck({ check: "meta" });
524
- return X._zod.onattach = [(X) => {
525
- let Z = globalRegistry.get(X) ?? {};
526
- globalRegistry.add(X, {
527
- ...Z,
528
- ...x
529
- });
530
- }], X._zod.check = () => {}, X;
531
- }
532
- export { _array, _base64, _base64url, _boolean, _cidrv4, _cidrv6, _cuid, _cuid2, _custom, _e164, _email, _emoji, _endsWith, _gt, _gte, _guid, _includes, _int, _ipv4, _ipv6, _isoDate, _isoDateTime, _isoDuration, _isoTime, _jwt, _ksuid, _length, _lowercase, _lt, _lte, _maxLength, _minLength, _multipleOf, _nanoid, _never, _normalize, _null, _number, _overwrite, _refine, _regex, _slugify, _startsWith, _string, _superRefine, _toLowerCase, _toUpperCase, _trim, _ulid, _unknown, _uppercase, _url, _uuid, _uuidv4, _uuidv6, _uuidv7, _xid, describe, meta };