@requence/task 1.0.0-alpha.6 → 1.0.0-alpha.8

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.
@@ -46,14 +46,14 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
46
46
  type: "taskStart";
47
47
  timestamp: Date;
48
48
  taskId: string;
49
- input?: unknown;
50
49
  meta?: unknown;
50
+ input?: unknown;
51
51
  }, {
52
52
  type: "taskStart";
53
53
  timestamp: Date;
54
54
  taskId: string;
55
- input?: unknown;
56
55
  meta?: unknown;
56
+ input?: unknown;
57
57
  }>, z.ZodObject<z.objectUtil.extendShape<{
58
58
  timestamp: z.ZodDate;
59
59
  taskId: z.ZodString;
@@ -63,13 +63,13 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
63
63
  }>, "strip", z.ZodTypeAny, {
64
64
  type: "taskError";
65
65
  timestamp: Date;
66
- taskId: string;
67
66
  error: string;
67
+ taskId: string;
68
68
  }, {
69
69
  type: "taskError";
70
70
  timestamp: Date;
71
- taskId: string;
72
71
  error: string;
72
+ taskId: string;
73
73
  }>, z.ZodObject<z.objectUtil.extendShape<{
74
74
  timestamp: z.ZodDate;
75
75
  taskId: z.ZodString;
@@ -119,23 +119,23 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
119
119
  logic: z.ZodOptional<z.ZodObject<{
120
120
  language: z.ZodEnum<["typescript", "javascript", "python"]>;
121
121
  }, "strip", z.ZodTypeAny, {
122
- language: "typescript" | "javascript" | "python";
122
+ language: "javascript" | "python" | "typescript";
123
123
  }, {
124
- language: "typescript" | "javascript" | "python";
124
+ language: "javascript" | "python" | "typescript";
125
125
  }>>;
126
126
  }, "strip", z.ZodTypeAny, {
127
127
  type: "logic";
128
128
  id: string;
129
129
  alias?: string | undefined;
130
130
  logic?: {
131
- language: "typescript" | "javascript" | "python";
131
+ language: "javascript" | "python" | "typescript";
132
132
  } | undefined;
133
133
  }, {
134
134
  type: "logic";
135
135
  id: string;
136
136
  alias?: string | undefined;
137
137
  logic?: {
138
- language: "typescript" | "javascript" | "python";
138
+ language: "javascript" | "python" | "typescript";
139
139
  } | undefined;
140
140
  }>]>;
141
141
  timestamp: z.ZodNullable<z.ZodDate>;
@@ -157,11 +157,11 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
157
157
  id: string;
158
158
  alias?: string | undefined;
159
159
  logic?: {
160
- language: "typescript" | "javascript" | "python";
160
+ language: "javascript" | "python" | "typescript";
161
161
  } | undefined;
162
162
  };
163
- error?: string | undefined;
164
163
  data?: unknown;
164
+ error?: string | undefined;
165
165
  }, {
166
166
  timestamp: Date | null;
167
167
  node: {
@@ -178,11 +178,11 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
178
178
  id: string;
179
179
  alias?: string | undefined;
180
180
  logic?: {
181
- language: "typescript" | "javascript" | "python";
181
+ language: "javascript" | "python" | "typescript";
182
182
  } | undefined;
183
183
  };
184
- error?: string | undefined;
185
184
  data?: unknown;
185
+ error?: string | undefined;
186
186
  }>, "many">;
187
187
  }>, "strip", z.ZodTypeAny, {
188
188
  type: "taskEnd";
@@ -205,11 +205,11 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
205
205
  id: string;
206
206
  alias?: string | undefined;
207
207
  logic?: {
208
- language: "typescript" | "javascript" | "python";
208
+ language: "javascript" | "python" | "typescript";
209
209
  } | undefined;
210
210
  };
211
- error?: string | undefined;
212
211
  data?: unknown;
212
+ error?: string | undefined;
213
213
  }[];
214
214
  }, {
215
215
  type: "taskEnd";
@@ -232,11 +232,11 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
232
232
  id: string;
233
233
  alias?: string | undefined;
234
234
  logic?: {
235
- language: "typescript" | "javascript" | "python";
235
+ language: "javascript" | "python" | "typescript";
236
236
  } | undefined;
237
237
  };
238
- error?: string | undefined;
239
238
  data?: unknown;
239
+ error?: string | undefined;
240
240
  }[];
241
241
  }>, z.ZodObject<z.objectUtil.extendShape<{
242
242
  timestamp: z.ZodDate;
@@ -285,23 +285,23 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
285
285
  logic: z.ZodOptional<z.ZodObject<{
286
286
  language: z.ZodEnum<["typescript", "javascript", "python"]>;
287
287
  }, "strip", z.ZodTypeAny, {
288
- language: "typescript" | "javascript" | "python";
288
+ language: "javascript" | "python" | "typescript";
289
289
  }, {
290
- language: "typescript" | "javascript" | "python";
290
+ language: "javascript" | "python" | "typescript";
291
291
  }>>;
292
292
  }, "strip", z.ZodTypeAny, {
293
293
  type: "logic";
294
294
  id: string;
295
295
  alias?: string | undefined;
296
296
  logic?: {
297
- language: "typescript" | "javascript" | "python";
297
+ language: "javascript" | "python" | "typescript";
298
298
  } | undefined;
299
299
  }, {
300
300
  type: "logic";
301
301
  id: string;
302
302
  alias?: string | undefined;
303
303
  logic?: {
304
- language: "typescript" | "javascript" | "python";
304
+ language: "javascript" | "python" | "typescript";
305
305
  } | undefined;
306
306
  }>]>;
307
307
  }>, "strip", z.ZodTypeAny, {
@@ -322,7 +322,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
322
322
  id: string;
323
323
  alias?: string | undefined;
324
324
  logic?: {
325
- language: "typescript" | "javascript" | "python";
325
+ language: "javascript" | "python" | "typescript";
326
326
  } | undefined;
327
327
  };
328
328
  }, {
@@ -343,7 +343,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
343
343
  id: string;
344
344
  alias?: string | undefined;
345
345
  logic?: {
346
- language: "typescript" | "javascript" | "python";
346
+ language: "javascript" | "python" | "typescript";
347
347
  } | undefined;
348
348
  };
349
349
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -371,13 +371,13 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
371
371
  }>, "strip", z.ZodTypeAny, {
372
372
  type: "nodeError";
373
373
  timestamp: Date;
374
- taskId: string;
375
374
  error: string;
375
+ taskId: string;
376
376
  }, {
377
377
  type: "nodeError";
378
378
  timestamp: Date;
379
- taskId: string;
380
379
  error: string;
380
+ taskId: string;
381
381
  }>, z.ZodObject<z.objectUtil.extendShape<{
382
382
  timestamp: z.ZodDate;
383
383
  taskId: z.ZodString;
@@ -441,23 +441,23 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
441
441
  logic: z.ZodOptional<z.ZodObject<{
442
442
  language: z.ZodEnum<["typescript", "javascript", "python"]>;
443
443
  }, "strip", z.ZodTypeAny, {
444
- language: "typescript" | "javascript" | "python";
444
+ language: "javascript" | "python" | "typescript";
445
445
  }, {
446
- language: "typescript" | "javascript" | "python";
446
+ language: "javascript" | "python" | "typescript";
447
447
  }>>;
448
448
  }, "strip", z.ZodTypeAny, {
449
449
  type: "logic";
450
450
  id: string;
451
451
  alias?: string | undefined;
452
452
  logic?: {
453
- language: "typescript" | "javascript" | "python";
453
+ language: "javascript" | "python" | "typescript";
454
454
  } | undefined;
455
455
  }, {
456
456
  type: "logic";
457
457
  id: string;
458
458
  alias?: string | undefined;
459
459
  logic?: {
460
- language: "typescript" | "javascript" | "python";
460
+ language: "javascript" | "python" | "typescript";
461
461
  } | undefined;
462
462
  }>]>;
463
463
  }>, "strip", z.ZodTypeAny, {
@@ -478,7 +478,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
478
478
  id: string;
479
479
  alias?: string | undefined;
480
480
  logic?: {
481
- language: "typescript" | "javascript" | "python";
481
+ language: "javascript" | "python" | "typescript";
482
482
  } | undefined;
483
483
  };
484
484
  }, {
@@ -499,7 +499,7 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
499
499
  id: string;
500
500
  alias?: string | undefined;
501
501
  logic?: {
502
- language: "typescript" | "javascript" | "python";
502
+ language: "javascript" | "python" | "typescript";
503
503
  } | undefined;
504
504
  };
505
505
  }>]>;
@@ -527,14 +527,14 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
527
527
  type: "taskStart";
528
528
  timestamp: Date;
529
529
  taskId: string;
530
- input?: unknown;
531
530
  meta?: unknown;
531
+ input?: unknown;
532
532
  }, {
533
533
  type: "taskStart";
534
534
  timestamp: Date;
535
535
  taskId: string;
536
- input?: unknown;
537
536
  meta?: unknown;
537
+ input?: unknown;
538
538
  }>, z.ZodObject<z.objectUtil.extendShape<{
539
539
  timestamp: z.ZodDate;
540
540
  taskId: z.ZodString;
@@ -544,13 +544,13 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
544
544
  }>, "strip", z.ZodTypeAny, {
545
545
  type: "taskError";
546
546
  timestamp: Date;
547
- taskId: string;
548
547
  error: string;
548
+ taskId: string;
549
549
  }, {
550
550
  type: "taskError";
551
551
  timestamp: Date;
552
- taskId: string;
553
552
  error: string;
553
+ taskId: string;
554
554
  }>, z.ZodObject<z.objectUtil.extendShape<{
555
555
  timestamp: z.ZodDate;
556
556
  taskId: z.ZodString;
@@ -600,23 +600,23 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
600
600
  logic: z.ZodOptional<z.ZodObject<{
601
601
  language: z.ZodEnum<["typescript", "javascript", "python"]>;
602
602
  }, "strip", z.ZodTypeAny, {
603
- language: "typescript" | "javascript" | "python";
603
+ language: "javascript" | "python" | "typescript";
604
604
  }, {
605
- language: "typescript" | "javascript" | "python";
605
+ language: "javascript" | "python" | "typescript";
606
606
  }>>;
607
607
  }, "strip", z.ZodTypeAny, {
608
608
  type: "logic";
609
609
  id: string;
610
610
  alias?: string | undefined;
611
611
  logic?: {
612
- language: "typescript" | "javascript" | "python";
612
+ language: "javascript" | "python" | "typescript";
613
613
  } | undefined;
614
614
  }, {
615
615
  type: "logic";
616
616
  id: string;
617
617
  alias?: string | undefined;
618
618
  logic?: {
619
- language: "typescript" | "javascript" | "python";
619
+ language: "javascript" | "python" | "typescript";
620
620
  } | undefined;
621
621
  }>]>;
622
622
  timestamp: z.ZodNullable<z.ZodDate>;
@@ -638,11 +638,11 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
638
638
  id: string;
639
639
  alias?: string | undefined;
640
640
  logic?: {
641
- language: "typescript" | "javascript" | "python";
641
+ language: "javascript" | "python" | "typescript";
642
642
  } | undefined;
643
643
  };
644
- error?: string | undefined;
645
644
  data?: unknown;
645
+ error?: string | undefined;
646
646
  }, {
647
647
  timestamp: Date | null;
648
648
  node: {
@@ -659,11 +659,11 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
659
659
  id: string;
660
660
  alias?: string | undefined;
661
661
  logic?: {
662
- language: "typescript" | "javascript" | "python";
662
+ language: "javascript" | "python" | "typescript";
663
663
  } | undefined;
664
664
  };
665
- error?: string | undefined;
666
665
  data?: unknown;
666
+ error?: string | undefined;
667
667
  }>, "many">;
668
668
  }>, "strip", z.ZodTypeAny, {
669
669
  type: "taskEnd";
@@ -686,11 +686,11 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
686
686
  id: string;
687
687
  alias?: string | undefined;
688
688
  logic?: {
689
- language: "typescript" | "javascript" | "python";
689
+ language: "javascript" | "python" | "typescript";
690
690
  } | undefined;
691
691
  };
692
- error?: string | undefined;
693
692
  data?: unknown;
693
+ error?: string | undefined;
694
694
  }[];
695
695
  }, {
696
696
  type: "taskEnd";
@@ -713,11 +713,11 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
713
713
  id: string;
714
714
  alias?: string | undefined;
715
715
  logic?: {
716
- language: "typescript" | "javascript" | "python";
716
+ language: "javascript" | "python" | "typescript";
717
717
  } | undefined;
718
718
  };
719
- error?: string | undefined;
720
719
  data?: unknown;
720
+ error?: string | undefined;
721
721
  }[];
722
722
  }>, z.ZodObject<z.objectUtil.extendShape<{
723
723
  timestamp: z.ZodDate;
@@ -766,23 +766,23 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
766
766
  logic: z.ZodOptional<z.ZodObject<{
767
767
  language: z.ZodEnum<["typescript", "javascript", "python"]>;
768
768
  }, "strip", z.ZodTypeAny, {
769
- language: "typescript" | "javascript" | "python";
769
+ language: "javascript" | "python" | "typescript";
770
770
  }, {
771
- language: "typescript" | "javascript" | "python";
771
+ language: "javascript" | "python" | "typescript";
772
772
  }>>;
773
773
  }, "strip", z.ZodTypeAny, {
774
774
  type: "logic";
775
775
  id: string;
776
776
  alias?: string | undefined;
777
777
  logic?: {
778
- language: "typescript" | "javascript" | "python";
778
+ language: "javascript" | "python" | "typescript";
779
779
  } | undefined;
780
780
  }, {
781
781
  type: "logic";
782
782
  id: string;
783
783
  alias?: string | undefined;
784
784
  logic?: {
785
- language: "typescript" | "javascript" | "python";
785
+ language: "javascript" | "python" | "typescript";
786
786
  } | undefined;
787
787
  }>]>;
788
788
  }>, "strip", z.ZodTypeAny, {
@@ -803,7 +803,7 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
803
803
  id: string;
804
804
  alias?: string | undefined;
805
805
  logic?: {
806
- language: "typescript" | "javascript" | "python";
806
+ language: "javascript" | "python" | "typescript";
807
807
  } | undefined;
808
808
  };
809
809
  }, {
@@ -824,7 +824,7 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
824
824
  id: string;
825
825
  alias?: string | undefined;
826
826
  logic?: {
827
- language: "typescript" | "javascript" | "python";
827
+ language: "javascript" | "python" | "typescript";
828
828
  } | undefined;
829
829
  };
830
830
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -852,13 +852,13 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
852
852
  }>, "strip", z.ZodTypeAny, {
853
853
  type: "nodeError";
854
854
  timestamp: Date;
855
- taskId: string;
856
855
  error: string;
856
+ taskId: string;
857
857
  }, {
858
858
  type: "nodeError";
859
859
  timestamp: Date;
860
- taskId: string;
861
860
  error: string;
861
+ taskId: string;
862
862
  }>, z.ZodObject<z.objectUtil.extendShape<{
863
863
  timestamp: z.ZodDate;
864
864
  taskId: z.ZodString;
@@ -922,23 +922,23 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
922
922
  logic: z.ZodOptional<z.ZodObject<{
923
923
  language: z.ZodEnum<["typescript", "javascript", "python"]>;
924
924
  }, "strip", z.ZodTypeAny, {
925
- language: "typescript" | "javascript" | "python";
925
+ language: "javascript" | "python" | "typescript";
926
926
  }, {
927
- language: "typescript" | "javascript" | "python";
927
+ language: "javascript" | "python" | "typescript";
928
928
  }>>;
929
929
  }, "strip", z.ZodTypeAny, {
930
930
  type: "logic";
931
931
  id: string;
932
932
  alias?: string | undefined;
933
933
  logic?: {
934
- language: "typescript" | "javascript" | "python";
934
+ language: "javascript" | "python" | "typescript";
935
935
  } | undefined;
936
936
  }, {
937
937
  type: "logic";
938
938
  id: string;
939
939
  alias?: string | undefined;
940
940
  logic?: {
941
- language: "typescript" | "javascript" | "python";
941
+ language: "javascript" | "python" | "typescript";
942
942
  } | undefined;
943
943
  }>]>;
944
944
  }>, "strip", z.ZodTypeAny, {
@@ -959,7 +959,7 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
959
959
  id: string;
960
960
  alias?: string | undefined;
961
961
  logic?: {
962
- language: "typescript" | "javascript" | "python";
962
+ language: "javascript" | "python" | "typescript";
963
963
  } | undefined;
964
964
  };
965
965
  }, {
@@ -980,7 +980,7 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
980
980
  id: string;
981
981
  alias?: string | undefined;
982
982
  logic?: {
983
- language: "typescript" | "javascript" | "python";
983
+ language: "javascript" | "python" | "typescript";
984
984
  } | undefined;
985
985
  };
986
986
  }>]>>;
@@ -1 +1 @@
1
- {"version":3,"file":"mapOutput.d.ts","sourceRoot":"","sources":["../../../../../src/utils/mapOutput.ts"],"names":[],"mappings":"AAmCA,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAQxD"}
1
+ {"version":3,"file":"mapOutput.d.ts","sourceRoot":"","sources":["../../../../../src/utils/mapOutput.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAWxD"}
@@ -9,13 +9,13 @@ export declare function watchTasks(options: WatchTasksOptions): (() => void) & A
9
9
  type: "taskStart";
10
10
  timestamp: Date;
11
11
  taskId: string;
12
- input?: unknown;
13
12
  meta?: unknown;
13
+ input?: unknown;
14
14
  } | {
15
15
  type: "taskError";
16
16
  timestamp: Date;
17
- taskId: string;
18
17
  error: string;
18
+ taskId: string;
19
19
  } | {
20
20
  type: "taskEnd";
21
21
  timestamp: Date;
@@ -37,11 +37,11 @@ export declare function watchTasks(options: WatchTasksOptions): (() => void) & A
37
37
  id: string;
38
38
  alias?: string | undefined;
39
39
  logic?: {
40
- language: "typescript" | "javascript" | "python";
40
+ language: "javascript" | "python" | "typescript";
41
41
  } | undefined;
42
42
  };
43
- error?: string | undefined;
44
43
  data?: unknown;
44
+ error?: string | undefined;
45
45
  }[];
46
46
  } | {
47
47
  type: "nodeStart";
@@ -61,7 +61,7 @@ export declare function watchTasks(options: WatchTasksOptions): (() => void) & A
61
61
  id: string;
62
62
  alias?: string | undefined;
63
63
  logic?: {
64
- language: "typescript" | "javascript" | "python";
64
+ language: "javascript" | "python" | "typescript";
65
65
  } | undefined;
66
66
  };
67
67
  } | {
@@ -72,8 +72,8 @@ export declare function watchTasks(options: WatchTasksOptions): (() => void) & A
72
72
  } | {
73
73
  type: "nodeError";
74
74
  timestamp: Date;
75
- taskId: string;
76
75
  error: string;
76
+ taskId: string;
77
77
  } | {
78
78
  type: "nodeDefer";
79
79
  timestamp: Date;
@@ -97,7 +97,7 @@ export declare function watchTasks(options: WatchTasksOptions): (() => void) & A
97
97
  id: string;
98
98
  alias?: string | undefined;
99
99
  logic?: {
100
- language: "typescript" | "javascript" | "python";
100
+ language: "javascript" | "python" | "typescript";
101
101
  } | undefined;
102
102
  };
103
103
  }>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@requence/task",
3
3
  "type": "module",
4
- "version": "1.0.0-alpha.6",
4
+ "version": "1.0.0-alpha.8",
5
5
  "bin": {
6
6
  "requence-task": "build/cli.js"
7
7
  },
@@ -21,6 +21,7 @@
21
21
  "dependencies": {
22
22
  "chalk": "^5.4.1",
23
23
  "eventsource": "^3.0.5",
24
+ "form-data": "^4.0.2",
24
25
  "zod": "^3.24.2"
25
26
  },
26
27
  "devDependencies": {