@requence/task 1.0.0-alpha.4 → 1.0.0-alpha.40

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 (100) hide show
  1. package/CHANGELOG.md +216 -0
  2. package/build/chunk-y4v98p2s.js +53 -0
  3. package/build/chunk-y4v98p2s.js.map +10 -0
  4. package/build/cli.js +660 -158
  5. package/build/cli.js.map +28 -17
  6. package/build/index.js +861 -227
  7. package/build/index.js.map +20 -8
  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 +11 -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 +16 -0
  33. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
  34. package/build/types/helpers/src/protocol/NodeTree.d.ts +479 -0
  35. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  36. package/build/types/helpers/src/protocol/command.d.ts +489 -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 +169 -0
  43. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
  44. package/build/types/helpers/src/protocol/taskOptions.d.ts +23 -0
  45. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
  46. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +235 -0
  47. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -0
  48. package/build/types/helpers/src/protocol/treeNodes.d.ts +832 -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/{createRemotePromise.d.ts → utils/createRemotePromise.d.ts} +1 -1
  59. package/build/types/helpers/src/utils/createRemotePromise.d.ts.map +1 -0
  60. package/build/types/helpers/src/utils/isRecord.d.ts +2 -0
  61. package/build/types/helpers/src/utils/isRecord.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/requenceCallback.d.ts +17 -0
  68. package/build/types/helpers/src/utils/requenceCallback.d.ts.map +1 -0
  69. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +8 -0
  70. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
  71. package/build/types/helpers/src/utils/types.d.ts +4 -0
  72. package/build/types/helpers/src/utils/types.d.ts.map +1 -0
  73. package/build/types/task/src/abortTask.d.ts +8 -0
  74. package/build/types/task/src/abortTask.d.ts.map +1 -0
  75. package/build/types/task/src/createTask.d.ts +14 -103
  76. package/build/types/task/src/createTask.d.ts.map +1 -1
  77. package/build/types/task/src/getTask.d.ts +24 -0
  78. package/build/types/task/src/getTask.d.ts.map +1 -0
  79. package/build/types/task/src/index.d.ts +6 -1
  80. package/build/types/task/src/index.d.ts.map +1 -1
  81. package/build/types/task/src/recreateTask.d.ts +10 -0
  82. package/build/types/task/src/recreateTask.d.ts.map +1 -0
  83. package/build/types/task/src/types.d.ts +189 -941
  84. package/build/types/task/src/types.d.ts.map +1 -1
  85. package/build/types/task/src/utils/getAccessToken.d.ts.map +1 -1
  86. package/build/types/task/src/watchTasks.d.ts +13 -97
  87. package/build/types/task/src/watchTasks.d.ts.map +1 -1
  88. package/package.json +8 -7
  89. package/build/chunk-6pjtq0hg.js +0 -66
  90. package/build/chunk-6pjtq0hg.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.map +0 -1
  96. package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
  97. package/build/types/helpers/src/utils.d.ts.map +0 -1
  98. package/build/types/task/src/utils/callbackToAsyncIterator.d.ts +0 -5
  99. package/build/types/task/src/utils/callbackToAsyncIterator.d.ts.map +0 -1
  100. /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
@@ -0,0 +1,489 @@
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
+ compliance: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
21
+ MCP_TOOL: "MCP_TOOL";
22
+ }>>>;
23
+ mode: z.ZodDefault<z.ZodEnum<{
24
+ LINEAR: "LINEAR";
25
+ CONTINUOUS: "CONTINUOUS";
26
+ }>>;
27
+ priority: z.ZodDefault<z.ZodInt>;
28
+ uploadUrl: z.ZodOptional<z.ZodString>;
29
+ streamUrl: z.ZodOptional<z.ZodString>;
30
+ referencedBy: z.ZodOptional<z.ZodObject<{
31
+ rootTaskId: z.ZodUUID;
32
+ taskId: z.ZodUUID;
33
+ nodeId: z.ZodUUID;
34
+ messageId: z.ZodUUID;
35
+ }, z.core.$strip>>;
36
+ }, z.core.$strip>;
37
+ }, z.core.$strip>, z.ZodTransform<{
38
+ treeList: {
39
+ tree: {
40
+ nodes: ({
41
+ id: string;
42
+ type: "entry";
43
+ inputSchema: import("json-schema").JSONSchema7;
44
+ alias?: string | undefined;
45
+ } | {
46
+ id: string;
47
+ type: "service";
48
+ inputSchema: ({
49
+ type: "object";
50
+ } & import("json-schema").JSONSchema7) | {
51
+ type: "null";
52
+ } | ({
53
+ $ref: string;
54
+ } & import("json-schema").JSONSchema7);
55
+ name: string;
56
+ version: string;
57
+ configurationSchema: import("json-schema").JSONSchema7;
58
+ outputs: {
59
+ name: string | null;
60
+ schema: import("json-schema").JSONSchema7 | null;
61
+ }[];
62
+ alias?: string | undefined;
63
+ configuration?: any;
64
+ ttl?: number | undefined;
65
+ retry?: number | undefined;
66
+ retryDelay?: number | undefined;
67
+ } | {
68
+ id: string;
69
+ type: "logic";
70
+ script: string;
71
+ concurrency: boolean;
72
+ language: "javascript" | "python" | "typescript";
73
+ maxExecutionTime: number;
74
+ outputs: {
75
+ name: string | null;
76
+ schema: import("json-schema").JSONSchema7 | null;
77
+ }[];
78
+ alias?: string | undefined;
79
+ } | {
80
+ id: string;
81
+ type: "or";
82
+ alias?: string | undefined;
83
+ } | {
84
+ id: string;
85
+ type: "reference";
86
+ reference: string;
87
+ inputSchema: ({
88
+ type: "object";
89
+ } & import("json-schema").JSONSchema7) | {
90
+ type: "null";
91
+ } | ({
92
+ $ref: string;
93
+ } & import("json-schema").JSONSchema7);
94
+ outputs: {
95
+ name: string | null;
96
+ schema: import("json-schema").JSONSchema7 | null;
97
+ }[];
98
+ alias?: string | undefined;
99
+ } | {
100
+ id: string;
101
+ type: "exit";
102
+ alias?: string | undefined;
103
+ } | {
104
+ id: string;
105
+ type: "comment";
106
+ text: string;
107
+ alias?: string | undefined;
108
+ })[];
109
+ edges: {
110
+ id: string;
111
+ source: string;
112
+ sourceHandle: string | null;
113
+ target: string;
114
+ }[];
115
+ };
116
+ references?: {
117
+ id: string;
118
+ options: {
119
+ maxExecutions: number;
120
+ compliance: "MCP_TOOL" | null;
121
+ mode: "LINEAR" | "CONTINUOUS";
122
+ };
123
+ tree: {
124
+ nodes: ({
125
+ id: string;
126
+ type: "entry";
127
+ inputSchema: import("json-schema").JSONSchema7;
128
+ alias?: string | undefined;
129
+ } | {
130
+ id: string;
131
+ type: "service";
132
+ inputSchema: ({
133
+ type: "object";
134
+ } & import("json-schema").JSONSchema7) | {
135
+ type: "null";
136
+ } | ({
137
+ $ref: string;
138
+ } & import("json-schema").JSONSchema7);
139
+ name: string;
140
+ version: string;
141
+ configurationSchema: import("json-schema").JSONSchema7;
142
+ outputs: {
143
+ name: string | null;
144
+ schema: import("json-schema").JSONSchema7 | null;
145
+ }[];
146
+ alias?: string | undefined;
147
+ configuration?: any;
148
+ ttl?: number | undefined;
149
+ retry?: number | undefined;
150
+ retryDelay?: number | undefined;
151
+ } | {
152
+ id: string;
153
+ type: "logic";
154
+ script: string;
155
+ concurrency: boolean;
156
+ language: "javascript" | "python" | "typescript";
157
+ maxExecutionTime: number;
158
+ outputs: {
159
+ name: string | null;
160
+ schema: import("json-schema").JSONSchema7 | null;
161
+ }[];
162
+ alias?: string | undefined;
163
+ } | {
164
+ id: string;
165
+ type: "or";
166
+ alias?: string | undefined;
167
+ } | {
168
+ id: string;
169
+ type: "reference";
170
+ reference: string;
171
+ inputSchema: ({
172
+ type: "object";
173
+ } & import("json-schema").JSONSchema7) | {
174
+ type: "null";
175
+ } | ({
176
+ $ref: string;
177
+ } & import("json-schema").JSONSchema7);
178
+ outputs: {
179
+ name: string | null;
180
+ schema: import("json-schema").JSONSchema7 | null;
181
+ }[];
182
+ alias?: string | undefined;
183
+ } | {
184
+ id: string;
185
+ type: "exit";
186
+ alias?: string | undefined;
187
+ } | {
188
+ id: string;
189
+ type: "comment";
190
+ text: string;
191
+ alias?: string | undefined;
192
+ })[];
193
+ edges: {
194
+ id: string;
195
+ source: string;
196
+ sourceHandle: string | null;
197
+ target: string;
198
+ }[];
199
+ };
200
+ }[] | undefined;
201
+ schemas?: Record<string, import("json-schema").JSONSchema7> | undefined;
202
+ };
203
+ type: "CREATE";
204
+ input: any;
205
+ options: {
206
+ maxExecutions: number;
207
+ compliance: "MCP_TOOL" | null;
208
+ mode: "LINEAR" | "CONTINUOUS";
209
+ priority: number;
210
+ uploadUrl?: string | undefined;
211
+ streamUrl?: string | undefined;
212
+ referencedBy?: {
213
+ rootTaskId: string;
214
+ taskId: string;
215
+ nodeId: string;
216
+ messageId: string;
217
+ } | undefined;
218
+ };
219
+ }, {
220
+ type: "CREATE";
221
+ treeList: {
222
+ tree: {
223
+ nodes: any[];
224
+ edges: any[];
225
+ };
226
+ references?: any[] | undefined;
227
+ schemas?: Record<string, any> | undefined;
228
+ };
229
+ input: any;
230
+ options: {
231
+ maxExecutions: number;
232
+ compliance: "MCP_TOOL" | null;
233
+ mode: "LINEAR" | "CONTINUOUS";
234
+ priority: number;
235
+ uploadUrl?: string | undefined;
236
+ streamUrl?: string | undefined;
237
+ referencedBy?: {
238
+ rootTaskId: string;
239
+ taskId: string;
240
+ nodeId: string;
241
+ messageId: string;
242
+ } | undefined;
243
+ };
244
+ }>>;
245
+ export type CreateCommand = z.infer<typeof createCommandSchema>;
246
+ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
247
+ type: z.ZodLiteral<"ABORT">;
248
+ reason: z.ZodOptional<z.ZodString>;
249
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
250
+ type: z.ZodLiteral<"CREATE">;
251
+ treeList: z.ZodObject<{
252
+ tree: z.ZodObject<{
253
+ nodes: z.ZodArray<z.ZodAny>;
254
+ edges: z.ZodArray<z.ZodAny>;
255
+ }, z.core.$strip>;
256
+ references: z.ZodOptional<z.ZodArray<z.ZodAny>>;
257
+ schemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
258
+ }, z.core.$strip>;
259
+ input: z.ZodAny;
260
+ options: z.ZodObject<{
261
+ maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
262
+ compliance: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
263
+ MCP_TOOL: "MCP_TOOL";
264
+ }>>>;
265
+ mode: z.ZodDefault<z.ZodEnum<{
266
+ LINEAR: "LINEAR";
267
+ CONTINUOUS: "CONTINUOUS";
268
+ }>>;
269
+ priority: z.ZodDefault<z.ZodInt>;
270
+ uploadUrl: z.ZodOptional<z.ZodString>;
271
+ streamUrl: z.ZodOptional<z.ZodString>;
272
+ referencedBy: z.ZodOptional<z.ZodObject<{
273
+ rootTaskId: z.ZodUUID;
274
+ taskId: z.ZodUUID;
275
+ nodeId: z.ZodUUID;
276
+ messageId: z.ZodUUID;
277
+ }, z.core.$strip>>;
278
+ }, z.core.$strip>;
279
+ }, z.core.$strip>, z.ZodTransform<{
280
+ treeList: {
281
+ tree: {
282
+ nodes: ({
283
+ id: string;
284
+ type: "entry";
285
+ inputSchema: import("json-schema").JSONSchema7;
286
+ alias?: string | undefined;
287
+ } | {
288
+ id: string;
289
+ type: "service";
290
+ inputSchema: ({
291
+ type: "object";
292
+ } & import("json-schema").JSONSchema7) | {
293
+ type: "null";
294
+ } | ({
295
+ $ref: string;
296
+ } & import("json-schema").JSONSchema7);
297
+ name: string;
298
+ version: string;
299
+ configurationSchema: import("json-schema").JSONSchema7;
300
+ outputs: {
301
+ name: string | null;
302
+ schema: import("json-schema").JSONSchema7 | null;
303
+ }[];
304
+ alias?: string | undefined;
305
+ configuration?: any;
306
+ ttl?: number | undefined;
307
+ retry?: number | undefined;
308
+ retryDelay?: number | undefined;
309
+ } | {
310
+ id: string;
311
+ type: "logic";
312
+ script: string;
313
+ concurrency: boolean;
314
+ language: "javascript" | "python" | "typescript";
315
+ maxExecutionTime: number;
316
+ outputs: {
317
+ name: string | null;
318
+ schema: import("json-schema").JSONSchema7 | null;
319
+ }[];
320
+ alias?: string | undefined;
321
+ } | {
322
+ id: string;
323
+ type: "or";
324
+ alias?: string | undefined;
325
+ } | {
326
+ id: string;
327
+ type: "reference";
328
+ reference: string;
329
+ inputSchema: ({
330
+ type: "object";
331
+ } & import("json-schema").JSONSchema7) | {
332
+ type: "null";
333
+ } | ({
334
+ $ref: string;
335
+ } & import("json-schema").JSONSchema7);
336
+ outputs: {
337
+ name: string | null;
338
+ schema: import("json-schema").JSONSchema7 | null;
339
+ }[];
340
+ alias?: string | undefined;
341
+ } | {
342
+ id: string;
343
+ type: "exit";
344
+ alias?: string | undefined;
345
+ } | {
346
+ id: string;
347
+ type: "comment";
348
+ text: string;
349
+ alias?: string | undefined;
350
+ })[];
351
+ edges: {
352
+ id: string;
353
+ source: string;
354
+ sourceHandle: string | null;
355
+ target: string;
356
+ }[];
357
+ };
358
+ references?: {
359
+ id: string;
360
+ options: {
361
+ maxExecutions: number;
362
+ compliance: "MCP_TOOL" | null;
363
+ mode: "LINEAR" | "CONTINUOUS";
364
+ };
365
+ tree: {
366
+ nodes: ({
367
+ id: string;
368
+ type: "entry";
369
+ inputSchema: import("json-schema").JSONSchema7;
370
+ alias?: string | undefined;
371
+ } | {
372
+ id: string;
373
+ type: "service";
374
+ inputSchema: ({
375
+ type: "object";
376
+ } & import("json-schema").JSONSchema7) | {
377
+ type: "null";
378
+ } | ({
379
+ $ref: string;
380
+ } & import("json-schema").JSONSchema7);
381
+ name: string;
382
+ version: string;
383
+ configurationSchema: import("json-schema").JSONSchema7;
384
+ outputs: {
385
+ name: string | null;
386
+ schema: import("json-schema").JSONSchema7 | null;
387
+ }[];
388
+ alias?: string | undefined;
389
+ configuration?: any;
390
+ ttl?: number | undefined;
391
+ retry?: number | undefined;
392
+ retryDelay?: number | undefined;
393
+ } | {
394
+ id: string;
395
+ type: "logic";
396
+ script: string;
397
+ concurrency: boolean;
398
+ language: "javascript" | "python" | "typescript";
399
+ maxExecutionTime: number;
400
+ outputs: {
401
+ name: string | null;
402
+ schema: import("json-schema").JSONSchema7 | null;
403
+ }[];
404
+ alias?: string | undefined;
405
+ } | {
406
+ id: string;
407
+ type: "or";
408
+ alias?: string | undefined;
409
+ } | {
410
+ id: string;
411
+ type: "reference";
412
+ reference: string;
413
+ inputSchema: ({
414
+ type: "object";
415
+ } & import("json-schema").JSONSchema7) | {
416
+ type: "null";
417
+ } | ({
418
+ $ref: string;
419
+ } & import("json-schema").JSONSchema7);
420
+ outputs: {
421
+ name: string | null;
422
+ schema: import("json-schema").JSONSchema7 | null;
423
+ }[];
424
+ alias?: string | undefined;
425
+ } | {
426
+ id: string;
427
+ type: "exit";
428
+ alias?: string | undefined;
429
+ } | {
430
+ id: string;
431
+ type: "comment";
432
+ text: string;
433
+ alias?: string | undefined;
434
+ })[];
435
+ edges: {
436
+ id: string;
437
+ source: string;
438
+ sourceHandle: string | null;
439
+ target: string;
440
+ }[];
441
+ };
442
+ }[] | undefined;
443
+ schemas?: Record<string, import("json-schema").JSONSchema7> | undefined;
444
+ };
445
+ type: "CREATE";
446
+ input: any;
447
+ options: {
448
+ maxExecutions: number;
449
+ compliance: "MCP_TOOL" | null;
450
+ mode: "LINEAR" | "CONTINUOUS";
451
+ priority: number;
452
+ uploadUrl?: string | undefined;
453
+ streamUrl?: string | undefined;
454
+ referencedBy?: {
455
+ rootTaskId: string;
456
+ taskId: string;
457
+ nodeId: string;
458
+ messageId: string;
459
+ } | undefined;
460
+ };
461
+ }, {
462
+ type: "CREATE";
463
+ treeList: {
464
+ tree: {
465
+ nodes: any[];
466
+ edges: any[];
467
+ };
468
+ references?: any[] | undefined;
469
+ schemas?: Record<string, any> | undefined;
470
+ };
471
+ input: any;
472
+ options: {
473
+ maxExecutions: number;
474
+ compliance: "MCP_TOOL" | null;
475
+ mode: "LINEAR" | "CONTINUOUS";
476
+ priority: number;
477
+ uploadUrl?: string | undefined;
478
+ streamUrl?: string | undefined;
479
+ referencedBy?: {
480
+ rootTaskId: string;
481
+ taskId: string;
482
+ nodeId: string;
483
+ messageId: string;
484
+ } | undefined;
485
+ };
486
+ }>>]>;
487
+ export type Command = z.infer<typeof commandSchema>;
488
+ export type CommandInput = z.input<typeof commandSchema>;
489
+ //# 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,169 @@
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
+ }, z.core.$strict>;
80
+ export type ExitNode = z.output<typeof exitNodeSchema>;
81
+ export declare const commentNodeSchema: z.ZodObject<{
82
+ id: z.ZodDefault<z.ZodUUID>;
83
+ type: z.ZodLiteral<"comment">;
84
+ text: z.ZodDefault<z.ZodString>;
85
+ alias: z.ZodOptional<z.ZodString>;
86
+ }, z.core.$strip>;
87
+ export type CommentNode = z.output<typeof commentNodeSchema>;
88
+ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
89
+ id: z.ZodDefault<z.ZodUUID>;
90
+ type: z.ZodLiteral<"entry">;
91
+ alias: z.ZodOptional<z.ZodString>;
92
+ inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
93
+ }, z.core.$strict>, z.ZodObject<{
94
+ id: z.ZodDefault<z.ZodUUID>;
95
+ type: z.ZodLiteral<"service">;
96
+ alias: z.ZodOptional<z.ZodString>;
97
+ inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
98
+ type: z.ZodLiteral<"object">;
99
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
100
+ type: z.ZodLiteral<"null">;
101
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
102
+ $ref: z.ZodString;
103
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
104
+ name: z.ZodString;
105
+ version: z.ZodString;
106
+ configuration: z.ZodOptional<z.ZodAny>;
107
+ configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
108
+ ttl: z.ZodOptional<z.ZodNumber>;
109
+ retry: z.ZodOptional<z.ZodNumber>;
110
+ retryDelay: z.ZodOptional<z.ZodNumber>;
111
+ outputs: z.ZodArray<z.ZodObject<{
112
+ name: z.ZodNullable<z.ZodString>;
113
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
114
+ }, z.core.$strip>>;
115
+ }, z.core.$strict>, z.ZodObject<{
116
+ id: z.ZodDefault<z.ZodUUID>;
117
+ type: z.ZodLiteral<"logic">;
118
+ alias: z.ZodOptional<z.ZodString>;
119
+ script: z.ZodString;
120
+ concurrency: z.ZodDefault<z.ZodBoolean>;
121
+ language: z.ZodDefault<z.ZodEnum<{
122
+ javascript: "javascript";
123
+ python: "python";
124
+ typescript: "typescript";
125
+ }>>;
126
+ maxExecutionTime: z.ZodDefault<z.ZodNumber>;
127
+ outputs: z.ZodArray<z.ZodObject<{
128
+ name: z.ZodNullable<z.ZodString>;
129
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
130
+ }, z.core.$strip>>;
131
+ }, z.core.$strict>, z.ZodObject<{
132
+ id: z.ZodDefault<z.ZodUUID>;
133
+ type: z.ZodLiteral<"or">;
134
+ alias: z.ZodOptional<z.ZodString>;
135
+ }, z.core.$strict>, z.ZodObject<{
136
+ id: z.ZodDefault<z.ZodUUID>;
137
+ type: z.ZodLiteral<"reference">;
138
+ alias: z.ZodOptional<z.ZodString>;
139
+ reference: z.ZodString;
140
+ inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
141
+ type: z.ZodLiteral<"object">;
142
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
143
+ type: z.ZodLiteral<"null">;
144
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
145
+ $ref: z.ZodString;
146
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
147
+ outputs: z.ZodArray<z.ZodObject<{
148
+ name: z.ZodNullable<z.ZodString>;
149
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
150
+ }, z.core.$strip>>;
151
+ }, z.core.$strict>, z.ZodObject<{
152
+ id: z.ZodDefault<z.ZodUUID>;
153
+ type: z.ZodLiteral<"exit">;
154
+ alias: z.ZodOptional<z.ZodString>;
155
+ }, z.core.$strict>, z.ZodObject<{
156
+ id: z.ZodDefault<z.ZodUUID>;
157
+ type: z.ZodLiteral<"comment">;
158
+ text: z.ZodDefault<z.ZodString>;
159
+ alias: z.ZodOptional<z.ZodString>;
160
+ }, z.core.$strip>], "type">;
161
+ export declare const edgeSchema: z.ZodObject<{
162
+ id: z.ZodUUID;
163
+ source: z.ZodUUID;
164
+ sourceHandle: z.ZodNullable<z.ZodString>;
165
+ target: z.ZodUUID;
166
+ }, z.core.$strip>;
167
+ export type Edge = z.output<typeof edgeSchema>;
168
+ export type Node = z.output<typeof nodeSchema>;
169
+ //# sourceMappingURL=nodeType.d.ts.map