@requence/service 1.0.0-alpha.5 → 1.0.0-alpha.50

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/CHANGELOG.md +270 -0
  2. package/build/{chunk-0x9092n4.js → chunk-6w7td62p.js} +5 -44
  3. package/build/chunk-6w7td62p.js.map +10 -0
  4. package/build/cli.js +123 -25
  5. package/build/cli.js.map +3 -3
  6. package/build/index.js +979 -840
  7. package/build/index.js.map +18 -16
  8. package/build/types/helpers/src/files/RequenceFile.d.ts +40 -0
  9. package/build/types/helpers/src/files/RequenceFile.d.ts.map +1 -0
  10. package/build/types/helpers/src/files/RequenceStream.d.ts +32 -0
  11. package/build/types/helpers/src/files/RequenceStream.d.ts.map +1 -0
  12. package/build/types/helpers/src/files/fileObject.d.ts +16 -0
  13. package/build/types/helpers/src/files/fileObject.d.ts.map +1 -0
  14. package/build/types/helpers/src/files/index.d.ts +7 -0
  15. package/build/types/helpers/src/files/index.d.ts.map +1 -0
  16. package/build/types/helpers/src/files/isValidMimeType.d.ts +5 -0
  17. package/build/types/helpers/src/files/isValidMimeType.d.ts.map +1 -0
  18. package/build/types/helpers/src/files/mapOutput.d.ts +10 -0
  19. package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -0
  20. package/build/types/helpers/src/files/streamObject.d.ts +14 -0
  21. package/build/types/helpers/src/files/streamObject.d.ts.map +1 -0
  22. package/build/types/helpers/src/files/types.d.ts +4 -0
  23. package/build/types/helpers/src/files/types.d.ts.map +1 -0
  24. package/build/types/helpers/src/index.d.ts +12 -6
  25. package/build/types/helpers/src/index.d.ts.map +1 -1
  26. package/build/types/helpers/src/jsonschema/mapSchema.d.ts +20 -0
  27. package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -0
  28. package/build/types/helpers/src/jsonschema/types.d.ts +13 -0
  29. package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
  30. package/build/types/helpers/src/jsonschema/validate.d.ts +32 -0
  31. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
  32. package/build/types/helpers/src/jsonschema/zod.d.ts +17 -0
  33. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
  34. package/build/types/helpers/src/protocol/NodeTree.d.ts +496 -0
  35. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  36. package/build/types/helpers/src/protocol/command.d.ts +481 -0
  37. package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
  38. package/build/types/helpers/src/protocol/helpers.d.ts +7 -0
  39. package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -0
  40. package/build/types/helpers/src/protocol/index.d.ts +8 -0
  41. package/build/types/helpers/src/protocol/index.d.ts.map +1 -0
  42. package/build/types/helpers/src/protocol/nodeType.d.ts +171 -0
  43. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
  44. package/build/types/helpers/src/protocol/taskOptions.d.ts +20 -0
  45. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
  46. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +267 -0
  47. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -0
  48. package/build/types/helpers/src/protocol/treeNodes.d.ts +836 -0
  49. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
  50. package/build/types/helpers/src/protocol/update.d.ts +381 -0
  51. package/build/types/helpers/src/protocol/update.d.ts.map +1 -0
  52. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts +3 -0
  53. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts.map +1 -0
  54. package/build/types/helpers/src/utils/clone.d.ts +3 -0
  55. package/build/types/helpers/src/utils/clone.d.ts.map +1 -0
  56. package/build/types/helpers/src/utils/createObjectProxy.d.ts +2 -0
  57. package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +1 -0
  58. package/build/types/helpers/src/utils/debounce.d.ts +4 -0
  59. package/build/types/helpers/src/utils/debounce.d.ts.map +1 -0
  60. package/build/types/helpers/src/utils/guards.d.ts +3 -0
  61. package/build/types/helpers/src/utils/guards.d.ts.map +1 -0
  62. package/build/types/helpers/src/utils/mapData.d.ts +18 -0
  63. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -0
  64. package/build/types/helpers/src/{utils.d.ts → utils/matchSchema.d.ts} +2 -2
  65. package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -0
  66. package/build/types/helpers/src/utils/obfuscate.d.ts.map +1 -0
  67. package/build/types/helpers/src/utils/obj.d.ts +4 -0
  68. package/build/types/helpers/src/utils/obj.d.ts.map +1 -0
  69. package/build/types/helpers/src/utils/requenceCallback.d.ts +17 -0
  70. package/build/types/helpers/src/utils/requenceCallback.d.ts.map +1 -0
  71. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +8 -0
  72. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
  73. package/build/types/helpers/src/utils/types.d.ts +7 -0
  74. package/build/types/helpers/src/utils/types.d.ts.map +1 -0
  75. package/build/types/service/src/createAmqpConnection.d.ts +29 -27
  76. package/build/types/service/src/createAmqpConnection.d.ts.map +1 -1
  77. package/build/types/service/src/errors.d.ts +3 -0
  78. package/build/types/service/src/errors.d.ts.map +1 -0
  79. package/build/types/service/src/helpers.d.ts +72 -90
  80. package/build/types/service/src/helpers.d.ts.map +1 -1
  81. package/build/types/service/src/index.d.ts +11 -4
  82. package/build/types/service/src/index.d.ts.map +1 -1
  83. package/build/types/service/src/macro.d.ts +2 -0
  84. package/build/types/service/src/macro.d.ts.map +1 -0
  85. package/build/types/service/src/mapInput.d.ts +2 -0
  86. package/build/types/service/src/mapInput.d.ts.map +1 -0
  87. package/build/types/service/src/utils.d.ts +6 -0
  88. package/build/types/service/src/utils.d.ts.map +1 -0
  89. package/package.json +10 -7
  90. package/build/chunk-0x9092n4.js.map +0 -12
  91. package/build/types/helpers/src/clone.d.ts +0 -3
  92. package/build/types/helpers/src/clone.d.ts.map +0 -1
  93. package/build/types/helpers/src/createObjectProxy.d.ts +0 -2
  94. package/build/types/helpers/src/createObjectProxy.d.ts.map +0 -1
  95. package/build/types/helpers/src/createRemotePromise.d.ts +0 -7
  96. package/build/types/helpers/src/createRemotePromise.d.ts.map +0 -1
  97. package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
  98. package/build/types/helpers/src/utils.d.ts.map +0 -1
  99. /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
@@ -0,0 +1,481 @@
1
+ import { z } from 'zod/v4';
2
+ export declare const abortCommandSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"ABORT">;
4
+ reason: z.ZodOptional<z.ZodString>;
5
+ }, z.core.$strip>;
6
+ export type AbortCommand = z.infer<typeof abortCommandSchema>;
7
+ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
8
+ type: z.ZodLiteral<"CREATE">;
9
+ treeList: z.ZodObject<{
10
+ tree: z.ZodObject<{
11
+ nodes: z.ZodArray<z.ZodAny>;
12
+ edges: z.ZodArray<z.ZodAny>;
13
+ }, z.core.$strip>;
14
+ references: z.ZodOptional<z.ZodArray<z.ZodAny>>;
15
+ schemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16
+ }, z.core.$strip>;
17
+ input: z.ZodAny;
18
+ options: z.ZodObject<{
19
+ maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
20
+ mode: z.ZodDefault<z.ZodEnum<{
21
+ LINEAR: "LINEAR";
22
+ CONTINUOUS: "CONTINUOUS";
23
+ }>>;
24
+ priority: z.ZodDefault<z.ZodInt>;
25
+ uploadUrl: z.ZodOptional<z.ZodString>;
26
+ streamUrl: z.ZodOptional<z.ZodString>;
27
+ referencedBy: z.ZodOptional<z.ZodObject<{
28
+ rootTaskId: z.ZodUUID;
29
+ taskId: z.ZodUUID;
30
+ nodeId: z.ZodUUID;
31
+ messageId: z.ZodUUID;
32
+ }, z.core.$strip>>;
33
+ }, z.core.$strip>;
34
+ }, z.core.$strip>, z.ZodTransform<{
35
+ treeList: {
36
+ tree: {
37
+ nodes: ({
38
+ id: string;
39
+ type: "entry";
40
+ inputSchema: import("json-schema").JSONSchema7;
41
+ alias?: string | undefined;
42
+ } | {
43
+ id: string;
44
+ type: "service";
45
+ inputSchema: ({
46
+ type: "object";
47
+ } & import("json-schema").JSONSchema7) | {
48
+ type: "null";
49
+ } | ({
50
+ $ref: string;
51
+ } & import("json-schema").JSONSchema7);
52
+ name: string;
53
+ version: string;
54
+ configurationSchema: import("json-schema").JSONSchema7;
55
+ outputs: {
56
+ name: string | null;
57
+ schema: import("json-schema").JSONSchema7 | null;
58
+ }[];
59
+ alias?: string | undefined;
60
+ configuration?: any;
61
+ ttl?: number | undefined;
62
+ retry?: number | undefined;
63
+ retryDelay?: number | undefined;
64
+ } | {
65
+ id: string;
66
+ type: "logic";
67
+ script: string;
68
+ concurrency: boolean;
69
+ language: "javascript" | "python" | "typescript";
70
+ maxExecutionTime: number;
71
+ outputs: {
72
+ name: string | null;
73
+ schema: import("json-schema").JSONSchema7 | null;
74
+ }[];
75
+ alias?: string | undefined;
76
+ } | {
77
+ id: string;
78
+ type: "or";
79
+ alias?: string | undefined;
80
+ } | {
81
+ id: string;
82
+ type: "reference";
83
+ reference: string;
84
+ inputSchema: ({
85
+ type: "object";
86
+ } & import("json-schema").JSONSchema7) | {
87
+ type: "null";
88
+ } | ({
89
+ $ref: string;
90
+ } & import("json-schema").JSONSchema7);
91
+ outputs: {
92
+ name: string | null;
93
+ schema: import("json-schema").JSONSchema7 | null;
94
+ }[];
95
+ alias?: string | undefined;
96
+ } | {
97
+ id: string;
98
+ type: "exit";
99
+ alias?: string | undefined;
100
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
101
+ } | {
102
+ id: string;
103
+ type: "comment";
104
+ text: string;
105
+ alias?: string | undefined;
106
+ })[];
107
+ edges: {
108
+ id: string;
109
+ source: string;
110
+ sourceHandle: string | null;
111
+ target: string;
112
+ }[];
113
+ };
114
+ references?: {
115
+ id: string;
116
+ options: {
117
+ maxExecutions: number;
118
+ mode: "LINEAR" | "CONTINUOUS";
119
+ };
120
+ tree: {
121
+ nodes: ({
122
+ id: string;
123
+ type: "entry";
124
+ inputSchema: import("json-schema").JSONSchema7;
125
+ alias?: string | undefined;
126
+ } | {
127
+ id: string;
128
+ type: "service";
129
+ inputSchema: ({
130
+ type: "object";
131
+ } & import("json-schema").JSONSchema7) | {
132
+ type: "null";
133
+ } | ({
134
+ $ref: string;
135
+ } & import("json-schema").JSONSchema7);
136
+ name: string;
137
+ version: string;
138
+ configurationSchema: import("json-schema").JSONSchema7;
139
+ outputs: {
140
+ name: string | null;
141
+ schema: import("json-schema").JSONSchema7 | null;
142
+ }[];
143
+ alias?: string | undefined;
144
+ configuration?: any;
145
+ ttl?: number | undefined;
146
+ retry?: number | undefined;
147
+ retryDelay?: number | undefined;
148
+ } | {
149
+ id: string;
150
+ type: "logic";
151
+ script: string;
152
+ concurrency: boolean;
153
+ language: "javascript" | "python" | "typescript";
154
+ maxExecutionTime: number;
155
+ outputs: {
156
+ name: string | null;
157
+ schema: import("json-schema").JSONSchema7 | null;
158
+ }[];
159
+ alias?: string | undefined;
160
+ } | {
161
+ id: string;
162
+ type: "or";
163
+ alias?: string | undefined;
164
+ } | {
165
+ id: string;
166
+ type: "reference";
167
+ reference: string;
168
+ inputSchema: ({
169
+ type: "object";
170
+ } & import("json-schema").JSONSchema7) | {
171
+ type: "null";
172
+ } | ({
173
+ $ref: string;
174
+ } & import("json-schema").JSONSchema7);
175
+ outputs: {
176
+ name: string | null;
177
+ schema: import("json-schema").JSONSchema7 | null;
178
+ }[];
179
+ alias?: string | undefined;
180
+ } | {
181
+ id: string;
182
+ type: "exit";
183
+ alias?: string | undefined;
184
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
185
+ } | {
186
+ id: string;
187
+ type: "comment";
188
+ text: string;
189
+ alias?: string | undefined;
190
+ })[];
191
+ edges: {
192
+ id: string;
193
+ source: string;
194
+ sourceHandle: string | null;
195
+ target: string;
196
+ }[];
197
+ };
198
+ }[] | undefined;
199
+ schemas?: Record<string, import("json-schema").JSONSchema7> | undefined;
200
+ };
201
+ type: "CREATE";
202
+ input: any;
203
+ options: {
204
+ maxExecutions: number;
205
+ mode: "LINEAR" | "CONTINUOUS";
206
+ priority: number;
207
+ uploadUrl?: string | undefined;
208
+ streamUrl?: string | undefined;
209
+ referencedBy?: {
210
+ rootTaskId: string;
211
+ taskId: string;
212
+ nodeId: string;
213
+ messageId: string;
214
+ } | undefined;
215
+ };
216
+ }, {
217
+ type: "CREATE";
218
+ treeList: {
219
+ tree: {
220
+ nodes: any[];
221
+ edges: any[];
222
+ };
223
+ references?: any[] | undefined;
224
+ schemas?: Record<string, any> | undefined;
225
+ };
226
+ input: any;
227
+ options: {
228
+ maxExecutions: number;
229
+ mode: "LINEAR" | "CONTINUOUS";
230
+ priority: number;
231
+ uploadUrl?: string | undefined;
232
+ streamUrl?: string | undefined;
233
+ referencedBy?: {
234
+ rootTaskId: string;
235
+ taskId: string;
236
+ nodeId: string;
237
+ messageId: string;
238
+ } | undefined;
239
+ };
240
+ }>>;
241
+ export type CreateCommand = z.infer<typeof createCommandSchema>;
242
+ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
243
+ type: z.ZodLiteral<"ABORT">;
244
+ reason: z.ZodOptional<z.ZodString>;
245
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
246
+ type: z.ZodLiteral<"CREATE">;
247
+ treeList: z.ZodObject<{
248
+ tree: z.ZodObject<{
249
+ nodes: z.ZodArray<z.ZodAny>;
250
+ edges: z.ZodArray<z.ZodAny>;
251
+ }, z.core.$strip>;
252
+ references: z.ZodOptional<z.ZodArray<z.ZodAny>>;
253
+ schemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
254
+ }, z.core.$strip>;
255
+ input: z.ZodAny;
256
+ options: z.ZodObject<{
257
+ maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
258
+ mode: z.ZodDefault<z.ZodEnum<{
259
+ LINEAR: "LINEAR";
260
+ CONTINUOUS: "CONTINUOUS";
261
+ }>>;
262
+ priority: z.ZodDefault<z.ZodInt>;
263
+ uploadUrl: z.ZodOptional<z.ZodString>;
264
+ streamUrl: z.ZodOptional<z.ZodString>;
265
+ referencedBy: z.ZodOptional<z.ZodObject<{
266
+ rootTaskId: z.ZodUUID;
267
+ taskId: z.ZodUUID;
268
+ nodeId: z.ZodUUID;
269
+ messageId: z.ZodUUID;
270
+ }, z.core.$strip>>;
271
+ }, z.core.$strip>;
272
+ }, z.core.$strip>, z.ZodTransform<{
273
+ treeList: {
274
+ tree: {
275
+ nodes: ({
276
+ id: string;
277
+ type: "entry";
278
+ inputSchema: import("json-schema").JSONSchema7;
279
+ alias?: string | undefined;
280
+ } | {
281
+ id: string;
282
+ type: "service";
283
+ inputSchema: ({
284
+ type: "object";
285
+ } & import("json-schema").JSONSchema7) | {
286
+ type: "null";
287
+ } | ({
288
+ $ref: string;
289
+ } & import("json-schema").JSONSchema7);
290
+ name: string;
291
+ version: string;
292
+ configurationSchema: import("json-schema").JSONSchema7;
293
+ outputs: {
294
+ name: string | null;
295
+ schema: import("json-schema").JSONSchema7 | null;
296
+ }[];
297
+ alias?: string | undefined;
298
+ configuration?: any;
299
+ ttl?: number | undefined;
300
+ retry?: number | undefined;
301
+ retryDelay?: number | undefined;
302
+ } | {
303
+ id: string;
304
+ type: "logic";
305
+ script: string;
306
+ concurrency: boolean;
307
+ language: "javascript" | "python" | "typescript";
308
+ maxExecutionTime: number;
309
+ outputs: {
310
+ name: string | null;
311
+ schema: import("json-schema").JSONSchema7 | null;
312
+ }[];
313
+ alias?: string | undefined;
314
+ } | {
315
+ id: string;
316
+ type: "or";
317
+ alias?: string | undefined;
318
+ } | {
319
+ id: string;
320
+ type: "reference";
321
+ reference: string;
322
+ inputSchema: ({
323
+ type: "object";
324
+ } & import("json-schema").JSONSchema7) | {
325
+ type: "null";
326
+ } | ({
327
+ $ref: string;
328
+ } & import("json-schema").JSONSchema7);
329
+ outputs: {
330
+ name: string | null;
331
+ schema: import("json-schema").JSONSchema7 | null;
332
+ }[];
333
+ alias?: string | undefined;
334
+ } | {
335
+ id: string;
336
+ type: "exit";
337
+ alias?: string | undefined;
338
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
339
+ } | {
340
+ id: string;
341
+ type: "comment";
342
+ text: string;
343
+ alias?: string | undefined;
344
+ })[];
345
+ edges: {
346
+ id: string;
347
+ source: string;
348
+ sourceHandle: string | null;
349
+ target: string;
350
+ }[];
351
+ };
352
+ references?: {
353
+ id: string;
354
+ options: {
355
+ maxExecutions: number;
356
+ mode: "LINEAR" | "CONTINUOUS";
357
+ };
358
+ tree: {
359
+ nodes: ({
360
+ id: string;
361
+ type: "entry";
362
+ inputSchema: import("json-schema").JSONSchema7;
363
+ alias?: string | undefined;
364
+ } | {
365
+ id: string;
366
+ type: "service";
367
+ inputSchema: ({
368
+ type: "object";
369
+ } & import("json-schema").JSONSchema7) | {
370
+ type: "null";
371
+ } | ({
372
+ $ref: string;
373
+ } & import("json-schema").JSONSchema7);
374
+ name: string;
375
+ version: string;
376
+ configurationSchema: import("json-schema").JSONSchema7;
377
+ outputs: {
378
+ name: string | null;
379
+ schema: import("json-schema").JSONSchema7 | null;
380
+ }[];
381
+ alias?: string | undefined;
382
+ configuration?: any;
383
+ ttl?: number | undefined;
384
+ retry?: number | undefined;
385
+ retryDelay?: number | undefined;
386
+ } | {
387
+ id: string;
388
+ type: "logic";
389
+ script: string;
390
+ concurrency: boolean;
391
+ language: "javascript" | "python" | "typescript";
392
+ maxExecutionTime: number;
393
+ outputs: {
394
+ name: string | null;
395
+ schema: import("json-schema").JSONSchema7 | null;
396
+ }[];
397
+ alias?: string | undefined;
398
+ } | {
399
+ id: string;
400
+ type: "or";
401
+ alias?: string | undefined;
402
+ } | {
403
+ id: string;
404
+ type: "reference";
405
+ reference: string;
406
+ inputSchema: ({
407
+ type: "object";
408
+ } & import("json-schema").JSONSchema7) | {
409
+ type: "null";
410
+ } | ({
411
+ $ref: string;
412
+ } & import("json-schema").JSONSchema7);
413
+ outputs: {
414
+ name: string | null;
415
+ schema: import("json-schema").JSONSchema7 | null;
416
+ }[];
417
+ alias?: string | undefined;
418
+ } | {
419
+ id: string;
420
+ type: "exit";
421
+ alias?: string | undefined;
422
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
423
+ } | {
424
+ id: string;
425
+ type: "comment";
426
+ text: string;
427
+ alias?: string | undefined;
428
+ })[];
429
+ edges: {
430
+ id: string;
431
+ source: string;
432
+ sourceHandle: string | null;
433
+ target: string;
434
+ }[];
435
+ };
436
+ }[] | undefined;
437
+ schemas?: Record<string, import("json-schema").JSONSchema7> | undefined;
438
+ };
439
+ type: "CREATE";
440
+ input: any;
441
+ options: {
442
+ maxExecutions: number;
443
+ mode: "LINEAR" | "CONTINUOUS";
444
+ priority: number;
445
+ uploadUrl?: string | undefined;
446
+ streamUrl?: string | undefined;
447
+ referencedBy?: {
448
+ rootTaskId: string;
449
+ taskId: string;
450
+ nodeId: string;
451
+ messageId: string;
452
+ } | undefined;
453
+ };
454
+ }, {
455
+ type: "CREATE";
456
+ treeList: {
457
+ tree: {
458
+ nodes: any[];
459
+ edges: any[];
460
+ };
461
+ references?: any[] | undefined;
462
+ schemas?: Record<string, any> | undefined;
463
+ };
464
+ input: any;
465
+ options: {
466
+ maxExecutions: number;
467
+ mode: "LINEAR" | "CONTINUOUS";
468
+ priority: number;
469
+ uploadUrl?: string | undefined;
470
+ streamUrl?: string | undefined;
471
+ referencedBy?: {
472
+ rootTaskId: string;
473
+ taskId: string;
474
+ nodeId: string;
475
+ messageId: string;
476
+ } | undefined;
477
+ };
478
+ }>>]>;
479
+ export type Command = z.infer<typeof commandSchema>;
480
+ export type CommandInput = z.input<typeof commandSchema>;
481
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAK1B,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE7D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuB3B,CAAA;AAEL,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAqD,CAAA;AAC/E,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AACnD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { z } from 'zod/v4';
2
+ export declare class NodeTransformError extends Error {
3
+ readonly nodeId?: string | undefined;
4
+ constructor(message: string, nodeId?: string | undefined);
5
+ }
6
+ export declare function safeTransform<T extends () => any>(ctx: z.RefinementCtx, handler: T): ReturnType<T>;
7
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE/B,qBAAa,kBAAmB,SAAQ,KAAK;aAGzB,MAAM,CAAC,EAAE,MAAM;gBAD/B,OAAO,EAAE,MAAM,EACC,MAAM,CAAC,EAAE,MAAM,YAAA;CAIlC;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,EAC/C,GAAG,EAAE,CAAC,CAAC,aAAa,EACpB,OAAO,EAAE,CAAC,GACT,UAAU,CAAC,CAAC,CAAC,CAkBf"}
@@ -0,0 +1,8 @@
1
+ export * from './command.ts';
2
+ export * from './nodeType.ts';
3
+ export * from './update.ts';
4
+ export * from './treeNodes.ts';
5
+ export * from './NodeTree.ts';
6
+ export * from './taskOptions.ts';
7
+ export * from './templateNodeTypes.ts';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1,171 @@
1
+ import { z } from 'zod/v4';
2
+ export declare const entryNodeSchema: z.ZodObject<{
3
+ id: z.ZodDefault<z.ZodUUID>;
4
+ type: z.ZodLiteral<"entry">;
5
+ alias: z.ZodOptional<z.ZodString>;
6
+ inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
7
+ }, z.core.$strict>;
8
+ export type EntryNode = z.output<typeof entryNodeSchema>;
9
+ export declare const serviceNodeSchema: z.ZodObject<{
10
+ id: z.ZodDefault<z.ZodUUID>;
11
+ type: z.ZodLiteral<"service">;
12
+ alias: z.ZodOptional<z.ZodString>;
13
+ inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
14
+ type: z.ZodLiteral<"object">;
15
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
16
+ type: z.ZodLiteral<"null">;
17
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
18
+ $ref: z.ZodString;
19
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
20
+ name: z.ZodString;
21
+ version: z.ZodString;
22
+ configuration: z.ZodOptional<z.ZodAny>;
23
+ configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
24
+ ttl: z.ZodOptional<z.ZodNumber>;
25
+ retry: z.ZodOptional<z.ZodNumber>;
26
+ retryDelay: z.ZodOptional<z.ZodNumber>;
27
+ outputs: z.ZodArray<z.ZodObject<{
28
+ name: z.ZodNullable<z.ZodString>;
29
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
30
+ }, z.core.$strip>>;
31
+ }, z.core.$strict>;
32
+ export type ServiceNode = z.output<typeof serviceNodeSchema>;
33
+ export declare const logicNodeSchema: z.ZodObject<{
34
+ id: z.ZodDefault<z.ZodUUID>;
35
+ type: z.ZodLiteral<"logic">;
36
+ alias: z.ZodOptional<z.ZodString>;
37
+ script: z.ZodString;
38
+ concurrency: z.ZodDefault<z.ZodBoolean>;
39
+ language: z.ZodDefault<z.ZodEnum<{
40
+ javascript: "javascript";
41
+ python: "python";
42
+ typescript: "typescript";
43
+ }>>;
44
+ maxExecutionTime: z.ZodDefault<z.ZodNumber>;
45
+ outputs: z.ZodArray<z.ZodObject<{
46
+ name: z.ZodNullable<z.ZodString>;
47
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
48
+ }, z.core.$strip>>;
49
+ }, z.core.$strict>;
50
+ export type LogicNode = z.output<typeof logicNodeSchema>;
51
+ export declare const orNodeSchema: z.ZodObject<{
52
+ id: z.ZodDefault<z.ZodUUID>;
53
+ type: z.ZodLiteral<"or">;
54
+ alias: z.ZodOptional<z.ZodString>;
55
+ }, z.core.$strict>;
56
+ export type OrNode = z.output<typeof orNodeSchema>;
57
+ export declare const referenceNodeSchema: z.ZodObject<{
58
+ id: z.ZodDefault<z.ZodUUID>;
59
+ type: z.ZodLiteral<"reference">;
60
+ alias: z.ZodOptional<z.ZodString>;
61
+ reference: z.ZodString;
62
+ inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
63
+ type: z.ZodLiteral<"object">;
64
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
65
+ type: z.ZodLiteral<"null">;
66
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
67
+ $ref: z.ZodString;
68
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
69
+ outputs: z.ZodArray<z.ZodObject<{
70
+ name: z.ZodNullable<z.ZodString>;
71
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
72
+ }, z.core.$strip>>;
73
+ }, z.core.$strict>;
74
+ export type ReferenceNode = z.output<typeof referenceNodeSchema>;
75
+ export declare const exitNodeSchema: z.ZodObject<{
76
+ id: z.ZodDefault<z.ZodUUID>;
77
+ type: z.ZodLiteral<"exit">;
78
+ alias: z.ZodOptional<z.ZodString>;
79
+ inputSchema: z.ZodOptional<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
80
+ }, z.core.$strict>;
81
+ export type ExitNode = z.output<typeof exitNodeSchema>;
82
+ export declare const commentNodeSchema: z.ZodObject<{
83
+ id: z.ZodDefault<z.ZodUUID>;
84
+ type: z.ZodLiteral<"comment">;
85
+ text: z.ZodDefault<z.ZodString>;
86
+ alias: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strip>;
88
+ export type CommentNode = z.output<typeof commentNodeSchema>;
89
+ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
90
+ id: z.ZodDefault<z.ZodUUID>;
91
+ type: z.ZodLiteral<"entry">;
92
+ alias: z.ZodOptional<z.ZodString>;
93
+ inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
94
+ }, z.core.$strict>, z.ZodObject<{
95
+ id: z.ZodDefault<z.ZodUUID>;
96
+ type: z.ZodLiteral<"service">;
97
+ alias: z.ZodOptional<z.ZodString>;
98
+ inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
99
+ type: z.ZodLiteral<"object">;
100
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
101
+ type: z.ZodLiteral<"null">;
102
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
103
+ $ref: z.ZodString;
104
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
105
+ name: z.ZodString;
106
+ version: z.ZodString;
107
+ configuration: z.ZodOptional<z.ZodAny>;
108
+ configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
109
+ ttl: z.ZodOptional<z.ZodNumber>;
110
+ retry: z.ZodOptional<z.ZodNumber>;
111
+ retryDelay: z.ZodOptional<z.ZodNumber>;
112
+ outputs: z.ZodArray<z.ZodObject<{
113
+ name: z.ZodNullable<z.ZodString>;
114
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
115
+ }, z.core.$strip>>;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ id: z.ZodDefault<z.ZodUUID>;
118
+ type: z.ZodLiteral<"logic">;
119
+ alias: z.ZodOptional<z.ZodString>;
120
+ script: z.ZodString;
121
+ concurrency: z.ZodDefault<z.ZodBoolean>;
122
+ language: z.ZodDefault<z.ZodEnum<{
123
+ javascript: "javascript";
124
+ python: "python";
125
+ typescript: "typescript";
126
+ }>>;
127
+ maxExecutionTime: z.ZodDefault<z.ZodNumber>;
128
+ outputs: z.ZodArray<z.ZodObject<{
129
+ name: z.ZodNullable<z.ZodString>;
130
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
131
+ }, z.core.$strip>>;
132
+ }, z.core.$strict>, z.ZodObject<{
133
+ id: z.ZodDefault<z.ZodUUID>;
134
+ type: z.ZodLiteral<"or">;
135
+ alias: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$strict>, z.ZodObject<{
137
+ id: z.ZodDefault<z.ZodUUID>;
138
+ type: z.ZodLiteral<"reference">;
139
+ alias: z.ZodOptional<z.ZodString>;
140
+ reference: z.ZodString;
141
+ inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
142
+ type: z.ZodLiteral<"object">;
143
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
144
+ type: z.ZodLiteral<"null">;
145
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
146
+ $ref: z.ZodString;
147
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
148
+ outputs: z.ZodArray<z.ZodObject<{
149
+ name: z.ZodNullable<z.ZodString>;
150
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
151
+ }, z.core.$strip>>;
152
+ }, z.core.$strict>, z.ZodObject<{
153
+ id: z.ZodDefault<z.ZodUUID>;
154
+ type: z.ZodLiteral<"exit">;
155
+ alias: z.ZodOptional<z.ZodString>;
156
+ inputSchema: z.ZodOptional<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
157
+ }, z.core.$strict>, z.ZodObject<{
158
+ id: z.ZodDefault<z.ZodUUID>;
159
+ type: z.ZodLiteral<"comment">;
160
+ text: z.ZodDefault<z.ZodString>;
161
+ alias: z.ZodOptional<z.ZodString>;
162
+ }, z.core.$strip>], "type">;
163
+ export declare const edgeSchema: z.ZodObject<{
164
+ id: z.ZodUUID;
165
+ source: z.ZodUUID;
166
+ sourceHandle: z.ZodNullable<z.ZodString>;
167
+ target: z.ZodUUID;
168
+ }, z.core.$strip>;
169
+ export type Edge = z.output<typeof edgeSchema>;
170
+ export type Node = z.output<typeof nodeSchema>;
171
+ //# sourceMappingURL=nodeType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodeType.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/nodeType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAkC1B,eAAO,MAAM,eAAe;;;;;kBAK1B,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA;AAExD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;kBAoBF,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE5D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;kBAYA,CAAA;AAC5B,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA;AAExD,eAAO,MAAM,YAAY;;;;kBAIvB,CAAA;AACF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC,CAAA;AAElD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;kBAcJ,CAAA;AAC5B,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAEhE,eAAO,MAAM,cAAc;;;;;kBAKzB,CAAA;AACF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA;AAEtD,eAAO,MAAM,iBAAiB;;;;;iBAK5B,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAG5D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAQrB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;iBAKrB,CAAA;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAA"}