@noetic-tools/core 5.15.1 → 5.16.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 (36) hide show
  1. package/dist/builders/custom-item.d.ts +37 -0
  2. package/dist/builders/custom-item.js +118 -0
  3. package/dist/builders/decide-builders.d.ts +1 -1
  4. package/dist/builders/dynamic-workflow.js +1 -1
  5. package/dist/builders/output-text.d.ts +5 -0
  6. package/dist/builders/output-text.js +13 -0
  7. package/dist/builders/provide-builder.d.ts +1 -1
  8. package/dist/builders/spawn-builder.d.ts +1 -1
  9. package/dist/builders/step-builders.d.ts +8 -7
  10. package/dist/builders/step-builders.js +2 -0
  11. package/dist/builders/workflow-custom-items.d.ts +38 -0
  12. package/dist/builders/workflow-custom-items.js +118 -0
  13. package/dist/builders/workflow-hydrator.d.ts +9 -2
  14. package/dist/builders/workflow-hydrator.js +41 -71
  15. package/dist/builders/workflow-step.d.ts +23 -5
  16. package/dist/builders/workflow-step.js +28 -13
  17. package/dist/expression/check.js +9 -5
  18. package/dist/harness/agent-harness.d.ts +19 -9
  19. package/dist/harness/agent-harness.js +14 -3
  20. package/dist/harness/deps/interpreter.d.ts +1 -0
  21. package/dist/harness/deps/interpreter.js +1 -0
  22. package/dist/harness/deps/types.d.ts +1 -1
  23. package/dist/index.d.ts +7 -3
  24. package/dist/index.js +6 -0
  25. package/dist/interpreter/emit-items.d.ts +44 -8
  26. package/dist/interpreter/emit-items.js +280 -17
  27. package/dist/interpreter/execute-action.js +3 -1
  28. package/dist/interpreter/execute.js +4 -1
  29. package/dist/runtime/context-impl.d.ts +9 -1
  30. package/dist/runtime/context-impl.js +13 -0
  31. package/dist/runtime/item-log-impl.d.ts +7 -1
  32. package/dist/runtime/item-log-impl.js +8 -0
  33. package/dist/runtime/session-streams.js +8 -0
  34. package/dist/schemas/workflow.d.ts +1 -1
  35. package/package.json +2 -2
  36. package/schema/noetic-workflow.schema.json +803 -119
@@ -7,6 +7,44 @@
7
7
  "type": "number",
8
8
  "const": 1
9
9
  },
10
+ "customItems": {
11
+ "type": "object",
12
+ "propertyNames": {
13
+ "type": "string",
14
+ "minLength": 1
15
+ },
16
+ "additionalProperties": {
17
+ "type": "object",
18
+ "properties": {
19
+ "type": {
20
+ "type": "string",
21
+ "pattern": "^[^:]+:.+$"
22
+ },
23
+ "description": {
24
+ "type": "string"
25
+ },
26
+ "event": {
27
+ "type": "object",
28
+ "propertyNames": {
29
+ "type": "string"
30
+ },
31
+ "additionalProperties": {}
32
+ },
33
+ "output": {
34
+ "type": "object",
35
+ "propertyNames": {
36
+ "type": "string"
37
+ },
38
+ "additionalProperties": {}
39
+ }
40
+ },
41
+ "required": [
42
+ "type",
43
+ "output"
44
+ ],
45
+ "additionalProperties": false
46
+ }
47
+ },
10
48
  "root": {
11
49
  "$ref": "#/$defs/WorkflowNode"
12
50
  }
@@ -68,21 +106,59 @@
68
106
  {
69
107
  "type": "object",
70
108
  "properties": {
71
- "expr": {
109
+ "item": {
110
+ "type": "string",
111
+ "minLength": 1
112
+ },
113
+ "onStart": {
72
114
  "$ref": "#/$defs/Expression"
73
115
  },
74
- "as": {
75
- "type": "string",
76
- "enum": [
77
- "text",
78
- "items"
79
- ]
116
+ "onDone": {
117
+ "$ref": "#/$defs/Expression"
80
118
  }
81
119
  },
82
120
  "additionalProperties": false
83
121
  }
84
122
  ]
85
123
  },
124
+ "customItems": {
125
+ "type": "object",
126
+ "propertyNames": {
127
+ "type": "string",
128
+ "minLength": 1
129
+ },
130
+ "additionalProperties": {
131
+ "type": "object",
132
+ "properties": {
133
+ "type": {
134
+ "type": "string",
135
+ "pattern": "^[^:]+:.+$"
136
+ },
137
+ "description": {
138
+ "type": "string"
139
+ },
140
+ "event": {
141
+ "type": "object",
142
+ "propertyNames": {
143
+ "type": "string"
144
+ },
145
+ "additionalProperties": {}
146
+ },
147
+ "output": {
148
+ "type": "object",
149
+ "propertyNames": {
150
+ "type": "string"
151
+ },
152
+ "additionalProperties": {}
153
+ }
154
+ },
155
+ "required": [
156
+ "type",
157
+ "output"
158
+ ],
159
+ "additionalProperties": false
160
+ }
161
+ },
86
162
  "model": {
87
163
  "type": "string"
88
164
  },
@@ -248,21 +324,59 @@
248
324
  {
249
325
  "type": "object",
250
326
  "properties": {
251
- "expr": {
327
+ "item": {
328
+ "type": "string",
329
+ "minLength": 1
330
+ },
331
+ "onStart": {
252
332
  "$ref": "#/$defs/Expression"
253
333
  },
254
- "as": {
255
- "type": "string",
256
- "enum": [
257
- "text",
258
- "items"
259
- ]
334
+ "onDone": {
335
+ "$ref": "#/$defs/Expression"
260
336
  }
261
337
  },
262
338
  "additionalProperties": false
263
339
  }
264
340
  ]
265
341
  },
342
+ "customItems": {
343
+ "type": "object",
344
+ "propertyNames": {
345
+ "type": "string",
346
+ "minLength": 1
347
+ },
348
+ "additionalProperties": {
349
+ "type": "object",
350
+ "properties": {
351
+ "type": {
352
+ "type": "string",
353
+ "pattern": "^[^:]+:.+$"
354
+ },
355
+ "description": {
356
+ "type": "string"
357
+ },
358
+ "event": {
359
+ "type": "object",
360
+ "propertyNames": {
361
+ "type": "string"
362
+ },
363
+ "additionalProperties": {}
364
+ },
365
+ "output": {
366
+ "type": "object",
367
+ "propertyNames": {
368
+ "type": "string"
369
+ },
370
+ "additionalProperties": {}
371
+ }
372
+ },
373
+ "required": [
374
+ "type",
375
+ "output"
376
+ ],
377
+ "additionalProperties": false
378
+ }
379
+ },
266
380
  "toolName": {
267
381
  "type": "string",
268
382
  "minLength": 1
@@ -329,21 +443,59 @@
329
443
  {
330
444
  "type": "object",
331
445
  "properties": {
332
- "expr": {
446
+ "item": {
447
+ "type": "string",
448
+ "minLength": 1
449
+ },
450
+ "onStart": {
333
451
  "$ref": "#/$defs/Expression"
334
452
  },
335
- "as": {
336
- "type": "string",
337
- "enum": [
338
- "text",
339
- "items"
340
- ]
453
+ "onDone": {
454
+ "$ref": "#/$defs/Expression"
341
455
  }
342
456
  },
343
457
  "additionalProperties": false
344
458
  }
345
459
  ]
346
460
  },
461
+ "customItems": {
462
+ "type": "object",
463
+ "propertyNames": {
464
+ "type": "string",
465
+ "minLength": 1
466
+ },
467
+ "additionalProperties": {
468
+ "type": "object",
469
+ "properties": {
470
+ "type": {
471
+ "type": "string",
472
+ "pattern": "^[^:]+:.+$"
473
+ },
474
+ "description": {
475
+ "type": "string"
476
+ },
477
+ "event": {
478
+ "type": "object",
479
+ "propertyNames": {
480
+ "type": "string"
481
+ },
482
+ "additionalProperties": {}
483
+ },
484
+ "output": {
485
+ "type": "object",
486
+ "propertyNames": {
487
+ "type": "string"
488
+ },
489
+ "additionalProperties": {}
490
+ }
491
+ },
492
+ "required": [
493
+ "type",
494
+ "output"
495
+ ],
496
+ "additionalProperties": false
497
+ }
498
+ },
347
499
  "execute": {
348
500
  "type": "string",
349
501
  "minLength": 1
@@ -439,21 +591,59 @@
439
591
  {
440
592
  "type": "object",
441
593
  "properties": {
442
- "expr": {
594
+ "item": {
595
+ "type": "string",
596
+ "minLength": 1
597
+ },
598
+ "onStart": {
443
599
  "$ref": "#/$defs/Expression"
444
600
  },
445
- "as": {
446
- "type": "string",
447
- "enum": [
448
- "text",
449
- "items"
450
- ]
601
+ "onDone": {
602
+ "$ref": "#/$defs/Expression"
451
603
  }
452
604
  },
453
605
  "additionalProperties": false
454
606
  }
455
607
  ]
456
608
  },
609
+ "customItems": {
610
+ "type": "object",
611
+ "propertyNames": {
612
+ "type": "string",
613
+ "minLength": 1
614
+ },
615
+ "additionalProperties": {
616
+ "type": "object",
617
+ "properties": {
618
+ "type": {
619
+ "type": "string",
620
+ "pattern": "^[^:]+:.+$"
621
+ },
622
+ "description": {
623
+ "type": "string"
624
+ },
625
+ "event": {
626
+ "type": "object",
627
+ "propertyNames": {
628
+ "type": "string"
629
+ },
630
+ "additionalProperties": {}
631
+ },
632
+ "output": {
633
+ "type": "object",
634
+ "propertyNames": {
635
+ "type": "string"
636
+ },
637
+ "additionalProperties": {}
638
+ }
639
+ },
640
+ "required": [
641
+ "type",
642
+ "output"
643
+ ],
644
+ "additionalProperties": false
645
+ }
646
+ },
457
647
  "expr": {
458
648
  "$ref": "#/$defs/Expression"
459
649
  }
@@ -512,21 +702,59 @@
512
702
  {
513
703
  "type": "object",
514
704
  "properties": {
515
- "expr": {
705
+ "item": {
706
+ "type": "string",
707
+ "minLength": 1
708
+ },
709
+ "onStart": {
516
710
  "$ref": "#/$defs/Expression"
517
711
  },
518
- "as": {
519
- "type": "string",
520
- "enum": [
521
- "text",
522
- "items"
523
- ]
712
+ "onDone": {
713
+ "$ref": "#/$defs/Expression"
524
714
  }
525
715
  },
526
716
  "additionalProperties": false
527
717
  }
528
718
  ]
529
719
  },
720
+ "customItems": {
721
+ "type": "object",
722
+ "propertyNames": {
723
+ "type": "string",
724
+ "minLength": 1
725
+ },
726
+ "additionalProperties": {
727
+ "type": "object",
728
+ "properties": {
729
+ "type": {
730
+ "type": "string",
731
+ "pattern": "^[^:]+:.+$"
732
+ },
733
+ "description": {
734
+ "type": "string"
735
+ },
736
+ "event": {
737
+ "type": "object",
738
+ "propertyNames": {
739
+ "type": "string"
740
+ },
741
+ "additionalProperties": {}
742
+ },
743
+ "output": {
744
+ "type": "object",
745
+ "propertyNames": {
746
+ "type": "string"
747
+ },
748
+ "additionalProperties": {}
749
+ }
750
+ },
751
+ "required": [
752
+ "type",
753
+ "output"
754
+ ],
755
+ "additionalProperties": false
756
+ }
757
+ },
530
758
  "routes": {
531
759
  "minItems": 1,
532
760
  "type": "array",
@@ -608,21 +836,59 @@
608
836
  {
609
837
  "type": "object",
610
838
  "properties": {
611
- "expr": {
839
+ "item": {
840
+ "type": "string",
841
+ "minLength": 1
842
+ },
843
+ "onStart": {
612
844
  "$ref": "#/$defs/Expression"
613
845
  },
614
- "as": {
615
- "type": "string",
616
- "enum": [
617
- "text",
618
- "items"
619
- ]
846
+ "onDone": {
847
+ "$ref": "#/$defs/Expression"
620
848
  }
621
849
  },
622
850
  "additionalProperties": false
623
851
  }
624
852
  ]
625
853
  },
854
+ "customItems": {
855
+ "type": "object",
856
+ "propertyNames": {
857
+ "type": "string",
858
+ "minLength": 1
859
+ },
860
+ "additionalProperties": {
861
+ "type": "object",
862
+ "properties": {
863
+ "type": {
864
+ "type": "string",
865
+ "pattern": "^[^:]+:.+$"
866
+ },
867
+ "description": {
868
+ "type": "string"
869
+ },
870
+ "event": {
871
+ "type": "object",
872
+ "propertyNames": {
873
+ "type": "string"
874
+ },
875
+ "additionalProperties": {}
876
+ },
877
+ "output": {
878
+ "type": "object",
879
+ "propertyNames": {
880
+ "type": "string"
881
+ },
882
+ "additionalProperties": {}
883
+ }
884
+ },
885
+ "required": [
886
+ "type",
887
+ "output"
888
+ ],
889
+ "additionalProperties": false
890
+ }
891
+ },
626
892
  "model": {
627
893
  "type": "string",
628
894
  "minLength": 1
@@ -835,21 +1101,59 @@
835
1101
  {
836
1102
  "type": "object",
837
1103
  "properties": {
838
- "expr": {
1104
+ "item": {
1105
+ "type": "string",
1106
+ "minLength": 1
1107
+ },
1108
+ "onStart": {
839
1109
  "$ref": "#/$defs/Expression"
840
1110
  },
841
- "as": {
842
- "type": "string",
843
- "enum": [
844
- "text",
845
- "items"
846
- ]
1111
+ "onDone": {
1112
+ "$ref": "#/$defs/Expression"
847
1113
  }
848
1114
  },
849
1115
  "additionalProperties": false
850
1116
  }
851
1117
  ]
852
1118
  },
1119
+ "customItems": {
1120
+ "type": "object",
1121
+ "propertyNames": {
1122
+ "type": "string",
1123
+ "minLength": 1
1124
+ },
1125
+ "additionalProperties": {
1126
+ "type": "object",
1127
+ "properties": {
1128
+ "type": {
1129
+ "type": "string",
1130
+ "pattern": "^[^:]+:.+$"
1131
+ },
1132
+ "description": {
1133
+ "type": "string"
1134
+ },
1135
+ "event": {
1136
+ "type": "object",
1137
+ "propertyNames": {
1138
+ "type": "string"
1139
+ },
1140
+ "additionalProperties": {}
1141
+ },
1142
+ "output": {
1143
+ "type": "object",
1144
+ "propertyNames": {
1145
+ "type": "string"
1146
+ },
1147
+ "additionalProperties": {}
1148
+ }
1149
+ },
1150
+ "required": [
1151
+ "type",
1152
+ "output"
1153
+ ],
1154
+ "additionalProperties": false
1155
+ }
1156
+ },
853
1157
  "decide": {
854
1158
  "type": "object",
855
1159
  "properties": {
@@ -897,21 +1201,59 @@
897
1201
  {
898
1202
  "type": "object",
899
1203
  "properties": {
900
- "expr": {
1204
+ "item": {
1205
+ "type": "string",
1206
+ "minLength": 1
1207
+ },
1208
+ "onStart": {
901
1209
  "$ref": "#/$defs/Expression"
902
1210
  },
903
- "as": {
904
- "type": "string",
905
- "enum": [
906
- "text",
907
- "items"
908
- ]
1211
+ "onDone": {
1212
+ "$ref": "#/$defs/Expression"
909
1213
  }
910
1214
  },
911
1215
  "additionalProperties": false
912
1216
  }
913
1217
  ]
914
1218
  },
1219
+ "customItems": {
1220
+ "type": "object",
1221
+ "propertyNames": {
1222
+ "type": "string",
1223
+ "minLength": 1
1224
+ },
1225
+ "additionalProperties": {
1226
+ "type": "object",
1227
+ "properties": {
1228
+ "type": {
1229
+ "type": "string",
1230
+ "pattern": "^[^:]+:.+$"
1231
+ },
1232
+ "description": {
1233
+ "type": "string"
1234
+ },
1235
+ "event": {
1236
+ "type": "object",
1237
+ "propertyNames": {
1238
+ "type": "string"
1239
+ },
1240
+ "additionalProperties": {}
1241
+ },
1242
+ "output": {
1243
+ "type": "object",
1244
+ "propertyNames": {
1245
+ "type": "string"
1246
+ },
1247
+ "additionalProperties": {}
1248
+ }
1249
+ },
1250
+ "required": [
1251
+ "type",
1252
+ "output"
1253
+ ],
1254
+ "additionalProperties": false
1255
+ }
1256
+ },
915
1257
  "model": {
916
1258
  "type": "string",
917
1259
  "minLength": 1
@@ -1157,21 +1499,59 @@
1157
1499
  {
1158
1500
  "type": "object",
1159
1501
  "properties": {
1160
- "expr": {
1502
+ "item": {
1503
+ "type": "string",
1504
+ "minLength": 1
1505
+ },
1506
+ "onStart": {
1161
1507
  "$ref": "#/$defs/Expression"
1162
1508
  },
1163
- "as": {
1164
- "type": "string",
1165
- "enum": [
1166
- "text",
1167
- "items"
1168
- ]
1509
+ "onDone": {
1510
+ "$ref": "#/$defs/Expression"
1169
1511
  }
1170
1512
  },
1171
1513
  "additionalProperties": false
1172
1514
  }
1173
1515
  ]
1174
1516
  },
1517
+ "customItems": {
1518
+ "type": "object",
1519
+ "propertyNames": {
1520
+ "type": "string",
1521
+ "minLength": 1
1522
+ },
1523
+ "additionalProperties": {
1524
+ "type": "object",
1525
+ "properties": {
1526
+ "type": {
1527
+ "type": "string",
1528
+ "pattern": "^[^:]+:.+$"
1529
+ },
1530
+ "description": {
1531
+ "type": "string"
1532
+ },
1533
+ "event": {
1534
+ "type": "object",
1535
+ "propertyNames": {
1536
+ "type": "string"
1537
+ },
1538
+ "additionalProperties": {}
1539
+ },
1540
+ "output": {
1541
+ "type": "object",
1542
+ "propertyNames": {
1543
+ "type": "string"
1544
+ },
1545
+ "additionalProperties": {}
1546
+ }
1547
+ },
1548
+ "required": [
1549
+ "type",
1550
+ "output"
1551
+ ],
1552
+ "additionalProperties": false
1553
+ }
1554
+ },
1175
1555
  "mode": {
1176
1556
  "type": "string",
1177
1557
  "enum": [
@@ -1262,21 +1642,59 @@
1262
1642
  {
1263
1643
  "type": "object",
1264
1644
  "properties": {
1265
- "expr": {
1645
+ "item": {
1646
+ "type": "string",
1647
+ "minLength": 1
1648
+ },
1649
+ "onStart": {
1266
1650
  "$ref": "#/$defs/Expression"
1267
1651
  },
1268
- "as": {
1269
- "type": "string",
1270
- "enum": [
1271
- "text",
1272
- "items"
1273
- ]
1652
+ "onDone": {
1653
+ "$ref": "#/$defs/Expression"
1274
1654
  }
1275
1655
  },
1276
1656
  "additionalProperties": false
1277
1657
  }
1278
1658
  ]
1279
1659
  },
1660
+ "customItems": {
1661
+ "type": "object",
1662
+ "propertyNames": {
1663
+ "type": "string",
1664
+ "minLength": 1
1665
+ },
1666
+ "additionalProperties": {
1667
+ "type": "object",
1668
+ "properties": {
1669
+ "type": {
1670
+ "type": "string",
1671
+ "pattern": "^[^:]+:.+$"
1672
+ },
1673
+ "description": {
1674
+ "type": "string"
1675
+ },
1676
+ "event": {
1677
+ "type": "object",
1678
+ "propertyNames": {
1679
+ "type": "string"
1680
+ },
1681
+ "additionalProperties": {}
1682
+ },
1683
+ "output": {
1684
+ "type": "object",
1685
+ "propertyNames": {
1686
+ "type": "string"
1687
+ },
1688
+ "additionalProperties": {}
1689
+ }
1690
+ },
1691
+ "required": [
1692
+ "type",
1693
+ "output"
1694
+ ],
1695
+ "additionalProperties": false
1696
+ }
1697
+ },
1280
1698
  "child": {
1281
1699
  "$ref": "#/$defs/WorkflowNode"
1282
1700
  },
@@ -1354,21 +1772,59 @@
1354
1772
  {
1355
1773
  "type": "object",
1356
1774
  "properties": {
1357
- "expr": {
1775
+ "item": {
1776
+ "type": "string",
1777
+ "minLength": 1
1778
+ },
1779
+ "onStart": {
1358
1780
  "$ref": "#/$defs/Expression"
1359
1781
  },
1360
- "as": {
1361
- "type": "string",
1362
- "enum": [
1363
- "text",
1364
- "items"
1365
- ]
1782
+ "onDone": {
1783
+ "$ref": "#/$defs/Expression"
1366
1784
  }
1367
1785
  },
1368
1786
  "additionalProperties": false
1369
1787
  }
1370
1788
  ]
1371
1789
  },
1790
+ "customItems": {
1791
+ "type": "object",
1792
+ "propertyNames": {
1793
+ "type": "string",
1794
+ "minLength": 1
1795
+ },
1796
+ "additionalProperties": {
1797
+ "type": "object",
1798
+ "properties": {
1799
+ "type": {
1800
+ "type": "string",
1801
+ "pattern": "^[^:]+:.+$"
1802
+ },
1803
+ "description": {
1804
+ "type": "string"
1805
+ },
1806
+ "event": {
1807
+ "type": "object",
1808
+ "propertyNames": {
1809
+ "type": "string"
1810
+ },
1811
+ "additionalProperties": {}
1812
+ },
1813
+ "output": {
1814
+ "type": "object",
1815
+ "propertyNames": {
1816
+ "type": "string"
1817
+ },
1818
+ "additionalProperties": {}
1819
+ }
1820
+ },
1821
+ "required": [
1822
+ "type",
1823
+ "output"
1824
+ ],
1825
+ "additionalProperties": false
1826
+ }
1827
+ },
1372
1828
  "child": {
1373
1829
  "$ref": "#/$defs/WorkflowNode"
1374
1830
  },
@@ -1436,21 +1892,59 @@
1436
1892
  {
1437
1893
  "type": "object",
1438
1894
  "properties": {
1439
- "expr": {
1895
+ "item": {
1896
+ "type": "string",
1897
+ "minLength": 1
1898
+ },
1899
+ "onStart": {
1440
1900
  "$ref": "#/$defs/Expression"
1441
1901
  },
1442
- "as": {
1443
- "type": "string",
1444
- "enum": [
1445
- "text",
1446
- "items"
1447
- ]
1902
+ "onDone": {
1903
+ "$ref": "#/$defs/Expression"
1448
1904
  }
1449
1905
  },
1450
1906
  "additionalProperties": false
1451
1907
  }
1452
1908
  ]
1453
1909
  },
1910
+ "customItems": {
1911
+ "type": "object",
1912
+ "propertyNames": {
1913
+ "type": "string",
1914
+ "minLength": 1
1915
+ },
1916
+ "additionalProperties": {
1917
+ "type": "object",
1918
+ "properties": {
1919
+ "type": {
1920
+ "type": "string",
1921
+ "pattern": "^[^:]+:.+$"
1922
+ },
1923
+ "description": {
1924
+ "type": "string"
1925
+ },
1926
+ "event": {
1927
+ "type": "object",
1928
+ "propertyNames": {
1929
+ "type": "string"
1930
+ },
1931
+ "additionalProperties": {}
1932
+ },
1933
+ "output": {
1934
+ "type": "object",
1935
+ "propertyNames": {
1936
+ "type": "string"
1937
+ },
1938
+ "additionalProperties": {}
1939
+ }
1940
+ },
1941
+ "required": [
1942
+ "type",
1943
+ "output"
1944
+ ],
1945
+ "additionalProperties": false
1946
+ }
1947
+ },
1454
1948
  "body": {
1455
1949
  "$ref": "#/$defs/WorkflowNode"
1456
1950
  },
@@ -1526,21 +2020,59 @@
1526
2020
  {
1527
2021
  "type": "object",
1528
2022
  "properties": {
1529
- "expr": {
2023
+ "item": {
2024
+ "type": "string",
2025
+ "minLength": 1
2026
+ },
2027
+ "onStart": {
1530
2028
  "$ref": "#/$defs/Expression"
1531
2029
  },
1532
- "as": {
1533
- "type": "string",
1534
- "enum": [
1535
- "text",
1536
- "items"
1537
- ]
2030
+ "onDone": {
2031
+ "$ref": "#/$defs/Expression"
1538
2032
  }
1539
2033
  },
1540
2034
  "additionalProperties": false
1541
2035
  }
1542
2036
  ]
1543
2037
  },
2038
+ "customItems": {
2039
+ "type": "object",
2040
+ "propertyNames": {
2041
+ "type": "string",
2042
+ "minLength": 1
2043
+ },
2044
+ "additionalProperties": {
2045
+ "type": "object",
2046
+ "properties": {
2047
+ "type": {
2048
+ "type": "string",
2049
+ "pattern": "^[^:]+:.+$"
2050
+ },
2051
+ "description": {
2052
+ "type": "string"
2053
+ },
2054
+ "event": {
2055
+ "type": "object",
2056
+ "propertyNames": {
2057
+ "type": "string"
2058
+ },
2059
+ "additionalProperties": {}
2060
+ },
2061
+ "output": {
2062
+ "type": "object",
2063
+ "propertyNames": {
2064
+ "type": "string"
2065
+ },
2066
+ "additionalProperties": {}
2067
+ }
2068
+ },
2069
+ "required": [
2070
+ "type",
2071
+ "output"
2072
+ ],
2073
+ "additionalProperties": false
2074
+ }
2075
+ },
1544
2076
  "steps": {
1545
2077
  "minItems": 1,
1546
2078
  "type": "array",
@@ -1603,21 +2135,59 @@
1603
2135
  {
1604
2136
  "type": "object",
1605
2137
  "properties": {
1606
- "expr": {
2138
+ "item": {
2139
+ "type": "string",
2140
+ "minLength": 1
2141
+ },
2142
+ "onStart": {
1607
2143
  "$ref": "#/$defs/Expression"
1608
2144
  },
1609
- "as": {
1610
- "type": "string",
1611
- "enum": [
1612
- "text",
1613
- "items"
1614
- ]
2145
+ "onDone": {
2146
+ "$ref": "#/$defs/Expression"
1615
2147
  }
1616
2148
  },
1617
2149
  "additionalProperties": false
1618
2150
  }
1619
2151
  ]
1620
2152
  },
2153
+ "customItems": {
2154
+ "type": "object",
2155
+ "propertyNames": {
2156
+ "type": "string",
2157
+ "minLength": 1
2158
+ },
2159
+ "additionalProperties": {
2160
+ "type": "object",
2161
+ "properties": {
2162
+ "type": {
2163
+ "type": "string",
2164
+ "pattern": "^[^:]+:.+$"
2165
+ },
2166
+ "description": {
2167
+ "type": "string"
2168
+ },
2169
+ "event": {
2170
+ "type": "object",
2171
+ "propertyNames": {
2172
+ "type": "string"
2173
+ },
2174
+ "additionalProperties": {}
2175
+ },
2176
+ "output": {
2177
+ "type": "object",
2178
+ "propertyNames": {
2179
+ "type": "string"
2180
+ },
2181
+ "additionalProperties": {}
2182
+ }
2183
+ },
2184
+ "required": [
2185
+ "type",
2186
+ "output"
2187
+ ],
2188
+ "additionalProperties": false
2189
+ }
2190
+ },
1621
2191
  "step": {
1622
2192
  "$ref": "#/$defs/WorkflowNode"
1623
2193
  },
@@ -1688,21 +2258,59 @@
1688
2258
  {
1689
2259
  "type": "object",
1690
2260
  "properties": {
1691
- "expr": {
2261
+ "item": {
2262
+ "type": "string",
2263
+ "minLength": 1
2264
+ },
2265
+ "onStart": {
1692
2266
  "$ref": "#/$defs/Expression"
1693
2267
  },
1694
- "as": {
1695
- "type": "string",
1696
- "enum": [
1697
- "text",
1698
- "items"
1699
- ]
2268
+ "onDone": {
2269
+ "$ref": "#/$defs/Expression"
1700
2270
  }
1701
2271
  },
1702
2272
  "additionalProperties": false
1703
2273
  }
1704
2274
  ]
1705
2275
  },
2276
+ "customItems": {
2277
+ "type": "object",
2278
+ "propertyNames": {
2279
+ "type": "string",
2280
+ "minLength": 1
2281
+ },
2282
+ "additionalProperties": {
2283
+ "type": "object",
2284
+ "properties": {
2285
+ "type": {
2286
+ "type": "string",
2287
+ "pattern": "^[^:]+:.+$"
2288
+ },
2289
+ "description": {
2290
+ "type": "string"
2291
+ },
2292
+ "event": {
2293
+ "type": "object",
2294
+ "propertyNames": {
2295
+ "type": "string"
2296
+ },
2297
+ "additionalProperties": {}
2298
+ },
2299
+ "output": {
2300
+ "type": "object",
2301
+ "propertyNames": {
2302
+ "type": "string"
2303
+ },
2304
+ "additionalProperties": {}
2305
+ }
2306
+ },
2307
+ "required": [
2308
+ "type",
2309
+ "output"
2310
+ ],
2311
+ "additionalProperties": false
2312
+ }
2313
+ },
1706
2314
  "document": {
1707
2315
  "$ref": "#"
1708
2316
  },
@@ -1767,21 +2375,59 @@
1767
2375
  {
1768
2376
  "type": "object",
1769
2377
  "properties": {
1770
- "expr": {
2378
+ "item": {
2379
+ "type": "string",
2380
+ "minLength": 1
2381
+ },
2382
+ "onStart": {
1771
2383
  "$ref": "#/$defs/Expression"
1772
2384
  },
1773
- "as": {
1774
- "type": "string",
1775
- "enum": [
1776
- "text",
1777
- "items"
1778
- ]
2385
+ "onDone": {
2386
+ "$ref": "#/$defs/Expression"
1779
2387
  }
1780
2388
  },
1781
2389
  "additionalProperties": false
1782
2390
  }
1783
2391
  ]
1784
2392
  },
2393
+ "customItems": {
2394
+ "type": "object",
2395
+ "propertyNames": {
2396
+ "type": "string",
2397
+ "minLength": 1
2398
+ },
2399
+ "additionalProperties": {
2400
+ "type": "object",
2401
+ "properties": {
2402
+ "type": {
2403
+ "type": "string",
2404
+ "pattern": "^[^:]+:.+$"
2405
+ },
2406
+ "description": {
2407
+ "type": "string"
2408
+ },
2409
+ "event": {
2410
+ "type": "object",
2411
+ "propertyNames": {
2412
+ "type": "string"
2413
+ },
2414
+ "additionalProperties": {}
2415
+ },
2416
+ "output": {
2417
+ "type": "object",
2418
+ "propertyNames": {
2419
+ "type": "string"
2420
+ },
2421
+ "additionalProperties": {}
2422
+ }
2423
+ },
2424
+ "required": [
2425
+ "type",
2426
+ "output"
2427
+ ],
2428
+ "additionalProperties": false
2429
+ }
2430
+ },
1785
2431
  "agent": {
1786
2432
  "type": "string",
1787
2433
  "minLength": 1
@@ -2309,21 +2955,59 @@
2309
2955
  {
2310
2956
  "type": "object",
2311
2957
  "properties": {
2312
- "expr": {
2958
+ "item": {
2959
+ "type": "string",
2960
+ "minLength": 1
2961
+ },
2962
+ "onStart": {
2313
2963
  "$ref": "#/$defs/Expression"
2314
2964
  },
2315
- "as": {
2316
- "type": "string",
2317
- "enum": [
2318
- "text",
2319
- "items"
2320
- ]
2965
+ "onDone": {
2966
+ "$ref": "#/$defs/Expression"
2321
2967
  }
2322
2968
  },
2323
2969
  "additionalProperties": false
2324
2970
  }
2325
2971
  ]
2326
2972
  },
2973
+ "customItems": {
2974
+ "type": "object",
2975
+ "propertyNames": {
2976
+ "type": "string",
2977
+ "minLength": 1
2978
+ },
2979
+ "additionalProperties": {
2980
+ "type": "object",
2981
+ "properties": {
2982
+ "type": {
2983
+ "type": "string",
2984
+ "pattern": "^[^:]+:.+$"
2985
+ },
2986
+ "description": {
2987
+ "type": "string"
2988
+ },
2989
+ "event": {
2990
+ "type": "object",
2991
+ "propertyNames": {
2992
+ "type": "string"
2993
+ },
2994
+ "additionalProperties": {}
2995
+ },
2996
+ "output": {
2997
+ "type": "object",
2998
+ "propertyNames": {
2999
+ "type": "string"
3000
+ },
3001
+ "additionalProperties": {}
3002
+ }
3003
+ },
3004
+ "required": [
3005
+ "type",
3006
+ "output"
3007
+ ],
3008
+ "additionalProperties": false
3009
+ }
3010
+ },
2327
3011
  "model": {
2328
3012
  "type": "string",
2329
3013
  "minLength": 1