@loopstack/loopstack-studio 0.23.0 → 0.24.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 (90) hide show
  1. package/dist/api/index.js +12 -10
  2. package/dist/api/secrets.js +16 -0
  3. package/dist/components/dynamic-form/ArrayController.js +68 -64
  4. package/dist/components/dynamic-form/Form.js +56 -27
  5. package/dist/components/dynamic-form/FormElement.js +1 -1
  6. package/dist/components/dynamic-form/FormElementHeader.js +2 -2
  7. package/dist/components/dynamic-form/InputController.js +3 -1
  8. package/dist/components/dynamic-form/ObjectController.js +24 -21
  9. package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +1 -1
  10. package/dist/components/dynamic-form/fields/InputField.js +20 -19
  11. package/dist/components/dynamic-form/fields/MarkdownViewField.js +20 -0
  12. package/dist/components/dynamic-form/fields/RadioField.js +18 -18
  13. package/dist/components/dynamic-form/fields/SelectField.js +19 -19
  14. package/dist/components/dynamic-form/fields/TextareaField.js +17 -17
  15. package/dist/components/layout/MainLayout.js +18 -31
  16. package/dist/components/layout/StudioSidebar.js +168 -108
  17. package/dist/components/page/PageBreadcrumbs.js +79 -32
  18. package/dist/components/ui-widgets/UiWidget.js +36 -27
  19. package/dist/components/ui-widgets/widgets/SecretInput.js +42 -0
  20. package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +80 -4
  21. package/dist/features/code-explorer/components/FileContentViewer.js +47 -30
  22. package/dist/features/code-explorer/components/FileTabsBar.js +3 -190
  23. package/dist/features/code-explorer/components/FileTabsBarBase.js +190 -0
  24. package/dist/features/code-explorer/index.js +2 -2
  25. package/dist/features/code-explorer/providers/CodeExplorerProvider.js +2 -162
  26. package/dist/features/code-explorer/utils/fileIcons.js +7 -4
  27. package/dist/features/debug/components/PipelineFlowViewer.js +46 -45
  28. package/dist/features/debug/components/pipeline-flow/WorkflowGraph.js +19 -19
  29. package/dist/features/documents/DocumentRenderer.js +20 -15
  30. package/dist/features/documents/components/DocumentList.js +5 -1
  31. package/dist/features/documents/renderers/AiMessage.js +11 -11
  32. package/dist/features/documents/renderers/ClaudeMessage.js +96 -0
  33. package/dist/features/documents/renderers/DocumentFormRenderer.js +17 -11
  34. package/dist/features/workbench/Workbench.js +64 -80
  35. package/dist/features/workbench/WorkflowItem.js +5 -5
  36. package/dist/features/workbench/components/RemoteFileTabsBar.js +18 -0
  37. package/dist/features/workbench/components/RemoteFileTree.js +90 -0
  38. package/dist/features/workbench/components/WorkbenchFilesPanel.js +67 -0
  39. package/dist/features/workbench/components/WorkbenchFloatingPanel.js +57 -49
  40. package/dist/features/workbench/components/WorkbenchFlowPanel.js +2 -2
  41. package/dist/features/workbench/components/WorkbenchIconSidebar.js +48 -28
  42. package/dist/features/workbench/components/WorkbenchSecretsPanel.js +182 -0
  43. package/dist/features/workbench/hooks/useWorkflowData.js +4 -4
  44. package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +160 -0
  45. package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +46 -43
  46. package/dist/features/workspaces/components/PipelineForm.js +1 -1
  47. package/dist/features/workspaces/components/WorkspaceHomePage.js +93 -0
  48. package/dist/hooks/index.js +1 -1
  49. package/dist/hooks/query-keys.js +41 -34
  50. package/dist/hooks/useFiles.js +1 -43
  51. package/dist/hooks/useSecrets.js +69 -0
  52. package/dist/index.d.ts +49 -0
  53. package/dist/index.js +3 -2
  54. package/dist/node_modules/@xyflow/react/dist/esm/index.js +1 -1
  55. package/dist/pages/DashboardPage.js +87 -35
  56. package/dist/pages/EmbedWorkbenchPage.js +43 -39
  57. package/dist/pages/PipelineDebugPage.js +1 -1
  58. package/dist/pages/PreviewWorkbenchPage.js +167 -70
  59. package/dist/pages/WorkspacePage.js +102 -50
  60. package/dist/pages/WorkspaceRunsPage.js +71 -0
  61. package/dist/routing/LocalRouter.js +6 -0
  62. package/dist/types/ai.types.js +13 -0
  63. package/package.json +2 -3
  64. package/dist/node_modules/@ai-sdk/provider/dist/index.js +0 -65
  65. package/dist/node_modules/@ai-sdk/provider-utils/dist/index.js +0 -1008
  66. package/dist/node_modules/ai/dist/index.js +0 -1083
  67. package/dist/node_modules/zod/v3/ZodError.js +0 -79
  68. package/dist/node_modules/zod/v3/errors.js +0 -6
  69. package/dist/node_modules/zod/v3/helpers/errorUtil.js +0 -5
  70. package/dist/node_modules/zod/v3/helpers/parseUtil.js +0 -90
  71. package/dist/node_modules/zod/v3/helpers/util.js +0 -72
  72. package/dist/node_modules/zod/v3/locales/en.js +0 -58
  73. package/dist/node_modules/zod/v3/types.js +0 -2425
  74. package/dist/node_modules/zod/v4/classic/errors.js +0 -21
  75. package/dist/node_modules/zod/v4/classic/iso.js +0 -29
  76. package/dist/node_modules/zod/v4/classic/parse.js +0 -4
  77. package/dist/node_modules/zod/v4/classic/schemas.js +0 -392
  78. package/dist/node_modules/zod/v4/core/api.js +0 -532
  79. package/dist/node_modules/zod/v4/core/checks.js +0 -283
  80. package/dist/node_modules/zod/v4/core/core.js +0 -44
  81. package/dist/node_modules/zod/v4/core/doc.js +0 -21
  82. package/dist/node_modules/zod/v4/core/errors.js +0 -40
  83. package/dist/node_modules/zod/v4/core/json-schema-processors.js +0 -305
  84. package/dist/node_modules/zod/v4/core/parse.js +0 -66
  85. package/dist/node_modules/zod/v4/core/regexes.js +0 -28
  86. package/dist/node_modules/zod/v4/core/registries.js +0 -38
  87. package/dist/node_modules/zod/v4/core/schemas.js +0 -863
  88. package/dist/node_modules/zod/v4/core/to-json-schema.js +0 -220
  89. package/dist/node_modules/zod/v4/core/util.js +0 -267
  90. package/dist/node_modules/zod/v4/core/versions.js +0 -6
@@ -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 };