@noetic-tools/core 5.13.0 → 6.1.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.
- package/dist/builders/decide-builders.d.ts +2 -2
- package/dist/builders/dynamic-workflow.js +2 -0
- package/dist/builders/provide-builder.d.ts +2 -2
- package/dist/builders/spawn-builder.d.ts +2 -2
- package/dist/builders/step-builders.d.ts +5 -5
- package/dist/builders/workflow-hydrator.d.ts +1 -1
- package/dist/builders/workflow-hydrator.js +53 -3
- package/dist/expression/check.js +14 -0
- package/dist/expression/jsonata.d.ts +7 -0
- package/dist/expression/jsonata.js +11 -1
- package/dist/harness/agent-harness.d.ts +59 -5
- package/dist/harness/agent-harness.js +176 -25
- package/dist/harness/deps/runtime.d.ts +4 -0
- package/dist/harness/deps/runtime.js +2 -0
- package/dist/harness/model-call.js +69 -0
- package/dist/harness/model-rounds.d.ts +52 -0
- package/dist/harness/model-rounds.js +115 -0
- package/dist/harness/thread-record.d.ts +54 -0
- package/dist/harness/thread-record.js +159 -0
- package/dist/index.d.ts +2 -2
- package/dist/interpreter/emit-items.d.ts +19 -0
- package/dist/interpreter/emit-items.js +106 -0
- package/dist/interpreter/execute-action.js +3 -0
- package/dist/interpreter/execute-control.js +3 -0
- package/dist/interpreter/execute.js +66 -9
- package/dist/runtime/context-impl.d.ts +106 -4
- package/dist/runtime/context-impl.js +224 -14
- package/dist/runtime/durable/harness-checkpoints.d.ts +13 -3
- package/dist/runtime/durable/harness-checkpoints.js +66 -7
- package/dist/runtime/durable/session-store.d.ts +37 -0
- package/dist/runtime/durable/session-store.js +58 -0
- package/dist/runtime/durable/step-ledger.d.ts +77 -40
- package/dist/runtime/durable/step-ledger.js +193 -73
- package/dist/runtime/item-log-impl.d.ts +6 -0
- package/dist/runtime/item-log-impl.js +12 -0
- package/dist/runtime/session-runner.d.ts +25 -1
- package/dist/runtime/session-runner.js +83 -11
- package/dist/schemas/workflow.d.ts +1 -1
- package/dist/types/checkpoint.d.ts +21 -4
- package/dist/types/checkpoint.js +33 -3
- package/package.json +2 -2
- package/schema/noetic-workflow.schema.json +391 -0
|
@@ -60,6 +60,29 @@
|
|
|
60
60
|
}
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
|
+
"emitItems": {
|
|
64
|
+
"anyOf": [
|
|
65
|
+
{
|
|
66
|
+
"type": "boolean"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {
|
|
71
|
+
"expr": {
|
|
72
|
+
"$ref": "#/$defs/Expression"
|
|
73
|
+
},
|
|
74
|
+
"as": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"enum": [
|
|
77
|
+
"text",
|
|
78
|
+
"items"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"additionalProperties": false
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
63
86
|
"model": {
|
|
64
87
|
"type": "string"
|
|
65
88
|
},
|
|
@@ -217,6 +240,29 @@
|
|
|
217
240
|
}
|
|
218
241
|
]
|
|
219
242
|
},
|
|
243
|
+
"emitItems": {
|
|
244
|
+
"anyOf": [
|
|
245
|
+
{
|
|
246
|
+
"type": "boolean"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"type": "object",
|
|
250
|
+
"properties": {
|
|
251
|
+
"expr": {
|
|
252
|
+
"$ref": "#/$defs/Expression"
|
|
253
|
+
},
|
|
254
|
+
"as": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"enum": [
|
|
257
|
+
"text",
|
|
258
|
+
"items"
|
|
259
|
+
]
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"additionalProperties": false
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
},
|
|
220
266
|
"toolName": {
|
|
221
267
|
"type": "string",
|
|
222
268
|
"minLength": 1
|
|
@@ -275,6 +321,29 @@
|
|
|
275
321
|
}
|
|
276
322
|
]
|
|
277
323
|
},
|
|
324
|
+
"emitItems": {
|
|
325
|
+
"anyOf": [
|
|
326
|
+
{
|
|
327
|
+
"type": "boolean"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"type": "object",
|
|
331
|
+
"properties": {
|
|
332
|
+
"expr": {
|
|
333
|
+
"$ref": "#/$defs/Expression"
|
|
334
|
+
},
|
|
335
|
+
"as": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"enum": [
|
|
338
|
+
"text",
|
|
339
|
+
"items"
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"additionalProperties": false
|
|
344
|
+
}
|
|
345
|
+
]
|
|
346
|
+
},
|
|
278
347
|
"execute": {
|
|
279
348
|
"type": "string",
|
|
280
349
|
"minLength": 1
|
|
@@ -362,6 +431,29 @@
|
|
|
362
431
|
}
|
|
363
432
|
]
|
|
364
433
|
},
|
|
434
|
+
"emitItems": {
|
|
435
|
+
"anyOf": [
|
|
436
|
+
{
|
|
437
|
+
"type": "boolean"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"type": "object",
|
|
441
|
+
"properties": {
|
|
442
|
+
"expr": {
|
|
443
|
+
"$ref": "#/$defs/Expression"
|
|
444
|
+
},
|
|
445
|
+
"as": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"enum": [
|
|
448
|
+
"text",
|
|
449
|
+
"items"
|
|
450
|
+
]
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"additionalProperties": false
|
|
454
|
+
}
|
|
455
|
+
]
|
|
456
|
+
},
|
|
365
457
|
"expr": {
|
|
366
458
|
"$ref": "#/$defs/Expression"
|
|
367
459
|
}
|
|
@@ -412,6 +504,29 @@
|
|
|
412
504
|
}
|
|
413
505
|
]
|
|
414
506
|
},
|
|
507
|
+
"emitItems": {
|
|
508
|
+
"anyOf": [
|
|
509
|
+
{
|
|
510
|
+
"type": "boolean"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"type": "object",
|
|
514
|
+
"properties": {
|
|
515
|
+
"expr": {
|
|
516
|
+
"$ref": "#/$defs/Expression"
|
|
517
|
+
},
|
|
518
|
+
"as": {
|
|
519
|
+
"type": "string",
|
|
520
|
+
"enum": [
|
|
521
|
+
"text",
|
|
522
|
+
"items"
|
|
523
|
+
]
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
"additionalProperties": false
|
|
527
|
+
}
|
|
528
|
+
]
|
|
529
|
+
},
|
|
415
530
|
"routes": {
|
|
416
531
|
"minItems": 1,
|
|
417
532
|
"type": "array",
|
|
@@ -485,6 +600,29 @@
|
|
|
485
600
|
}
|
|
486
601
|
]
|
|
487
602
|
},
|
|
603
|
+
"emitItems": {
|
|
604
|
+
"anyOf": [
|
|
605
|
+
{
|
|
606
|
+
"type": "boolean"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"type": "object",
|
|
610
|
+
"properties": {
|
|
611
|
+
"expr": {
|
|
612
|
+
"$ref": "#/$defs/Expression"
|
|
613
|
+
},
|
|
614
|
+
"as": {
|
|
615
|
+
"type": "string",
|
|
616
|
+
"enum": [
|
|
617
|
+
"text",
|
|
618
|
+
"items"
|
|
619
|
+
]
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
"additionalProperties": false
|
|
623
|
+
}
|
|
624
|
+
]
|
|
625
|
+
},
|
|
488
626
|
"model": {
|
|
489
627
|
"type": "string",
|
|
490
628
|
"minLength": 1
|
|
@@ -689,6 +827,29 @@
|
|
|
689
827
|
}
|
|
690
828
|
]
|
|
691
829
|
},
|
|
830
|
+
"emitItems": {
|
|
831
|
+
"anyOf": [
|
|
832
|
+
{
|
|
833
|
+
"type": "boolean"
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"type": "object",
|
|
837
|
+
"properties": {
|
|
838
|
+
"expr": {
|
|
839
|
+
"$ref": "#/$defs/Expression"
|
|
840
|
+
},
|
|
841
|
+
"as": {
|
|
842
|
+
"type": "string",
|
|
843
|
+
"enum": [
|
|
844
|
+
"text",
|
|
845
|
+
"items"
|
|
846
|
+
]
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
"additionalProperties": false
|
|
850
|
+
}
|
|
851
|
+
]
|
|
852
|
+
},
|
|
692
853
|
"decide": {
|
|
693
854
|
"type": "object",
|
|
694
855
|
"properties": {
|
|
@@ -728,6 +889,29 @@
|
|
|
728
889
|
}
|
|
729
890
|
]
|
|
730
891
|
},
|
|
892
|
+
"emitItems": {
|
|
893
|
+
"anyOf": [
|
|
894
|
+
{
|
|
895
|
+
"type": "boolean"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"type": "object",
|
|
899
|
+
"properties": {
|
|
900
|
+
"expr": {
|
|
901
|
+
"$ref": "#/$defs/Expression"
|
|
902
|
+
},
|
|
903
|
+
"as": {
|
|
904
|
+
"type": "string",
|
|
905
|
+
"enum": [
|
|
906
|
+
"text",
|
|
907
|
+
"items"
|
|
908
|
+
]
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
"additionalProperties": false
|
|
912
|
+
}
|
|
913
|
+
]
|
|
914
|
+
},
|
|
731
915
|
"model": {
|
|
732
916
|
"type": "string",
|
|
733
917
|
"minLength": 1
|
|
@@ -965,6 +1149,29 @@
|
|
|
965
1149
|
}
|
|
966
1150
|
]
|
|
967
1151
|
},
|
|
1152
|
+
"emitItems": {
|
|
1153
|
+
"anyOf": [
|
|
1154
|
+
{
|
|
1155
|
+
"type": "boolean"
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
"type": "object",
|
|
1159
|
+
"properties": {
|
|
1160
|
+
"expr": {
|
|
1161
|
+
"$ref": "#/$defs/Expression"
|
|
1162
|
+
},
|
|
1163
|
+
"as": {
|
|
1164
|
+
"type": "string",
|
|
1165
|
+
"enum": [
|
|
1166
|
+
"text",
|
|
1167
|
+
"items"
|
|
1168
|
+
]
|
|
1169
|
+
}
|
|
1170
|
+
},
|
|
1171
|
+
"additionalProperties": false
|
|
1172
|
+
}
|
|
1173
|
+
]
|
|
1174
|
+
},
|
|
968
1175
|
"mode": {
|
|
969
1176
|
"type": "string",
|
|
970
1177
|
"enum": [
|
|
@@ -1047,6 +1254,29 @@
|
|
|
1047
1254
|
}
|
|
1048
1255
|
]
|
|
1049
1256
|
},
|
|
1257
|
+
"emitItems": {
|
|
1258
|
+
"anyOf": [
|
|
1259
|
+
{
|
|
1260
|
+
"type": "boolean"
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
"type": "object",
|
|
1264
|
+
"properties": {
|
|
1265
|
+
"expr": {
|
|
1266
|
+
"$ref": "#/$defs/Expression"
|
|
1267
|
+
},
|
|
1268
|
+
"as": {
|
|
1269
|
+
"type": "string",
|
|
1270
|
+
"enum": [
|
|
1271
|
+
"text",
|
|
1272
|
+
"items"
|
|
1273
|
+
]
|
|
1274
|
+
}
|
|
1275
|
+
},
|
|
1276
|
+
"additionalProperties": false
|
|
1277
|
+
}
|
|
1278
|
+
]
|
|
1279
|
+
},
|
|
1050
1280
|
"child": {
|
|
1051
1281
|
"$ref": "#/$defs/WorkflowNode"
|
|
1052
1282
|
},
|
|
@@ -1109,6 +1339,29 @@
|
|
|
1109
1339
|
}
|
|
1110
1340
|
]
|
|
1111
1341
|
},
|
|
1342
|
+
"emitItems": {
|
|
1343
|
+
"anyOf": [
|
|
1344
|
+
{
|
|
1345
|
+
"type": "boolean"
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"type": "object",
|
|
1349
|
+
"properties": {
|
|
1350
|
+
"expr": {
|
|
1351
|
+
"$ref": "#/$defs/Expression"
|
|
1352
|
+
},
|
|
1353
|
+
"as": {
|
|
1354
|
+
"type": "string",
|
|
1355
|
+
"enum": [
|
|
1356
|
+
"text",
|
|
1357
|
+
"items"
|
|
1358
|
+
]
|
|
1359
|
+
}
|
|
1360
|
+
},
|
|
1361
|
+
"additionalProperties": false
|
|
1362
|
+
}
|
|
1363
|
+
]
|
|
1364
|
+
},
|
|
1112
1365
|
"child": {
|
|
1113
1366
|
"$ref": "#/$defs/WorkflowNode"
|
|
1114
1367
|
},
|
|
@@ -1168,6 +1421,29 @@
|
|
|
1168
1421
|
}
|
|
1169
1422
|
]
|
|
1170
1423
|
},
|
|
1424
|
+
"emitItems": {
|
|
1425
|
+
"anyOf": [
|
|
1426
|
+
{
|
|
1427
|
+
"type": "boolean"
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
"type": "object",
|
|
1431
|
+
"properties": {
|
|
1432
|
+
"expr": {
|
|
1433
|
+
"$ref": "#/$defs/Expression"
|
|
1434
|
+
},
|
|
1435
|
+
"as": {
|
|
1436
|
+
"type": "string",
|
|
1437
|
+
"enum": [
|
|
1438
|
+
"text",
|
|
1439
|
+
"items"
|
|
1440
|
+
]
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
"additionalProperties": false
|
|
1444
|
+
}
|
|
1445
|
+
]
|
|
1446
|
+
},
|
|
1171
1447
|
"body": {
|
|
1172
1448
|
"$ref": "#/$defs/WorkflowNode"
|
|
1173
1449
|
},
|
|
@@ -1235,6 +1511,29 @@
|
|
|
1235
1511
|
}
|
|
1236
1512
|
]
|
|
1237
1513
|
},
|
|
1514
|
+
"emitItems": {
|
|
1515
|
+
"anyOf": [
|
|
1516
|
+
{
|
|
1517
|
+
"type": "boolean"
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
"type": "object",
|
|
1521
|
+
"properties": {
|
|
1522
|
+
"expr": {
|
|
1523
|
+
"$ref": "#/$defs/Expression"
|
|
1524
|
+
},
|
|
1525
|
+
"as": {
|
|
1526
|
+
"type": "string",
|
|
1527
|
+
"enum": [
|
|
1528
|
+
"text",
|
|
1529
|
+
"items"
|
|
1530
|
+
]
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
"additionalProperties": false
|
|
1534
|
+
}
|
|
1535
|
+
]
|
|
1536
|
+
},
|
|
1238
1537
|
"steps": {
|
|
1239
1538
|
"minItems": 1,
|
|
1240
1539
|
"type": "array",
|
|
@@ -1289,6 +1588,29 @@
|
|
|
1289
1588
|
}
|
|
1290
1589
|
]
|
|
1291
1590
|
},
|
|
1591
|
+
"emitItems": {
|
|
1592
|
+
"anyOf": [
|
|
1593
|
+
{
|
|
1594
|
+
"type": "boolean"
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
"type": "object",
|
|
1598
|
+
"properties": {
|
|
1599
|
+
"expr": {
|
|
1600
|
+
"$ref": "#/$defs/Expression"
|
|
1601
|
+
},
|
|
1602
|
+
"as": {
|
|
1603
|
+
"type": "string",
|
|
1604
|
+
"enum": [
|
|
1605
|
+
"text",
|
|
1606
|
+
"items"
|
|
1607
|
+
]
|
|
1608
|
+
}
|
|
1609
|
+
},
|
|
1610
|
+
"additionalProperties": false
|
|
1611
|
+
}
|
|
1612
|
+
]
|
|
1613
|
+
},
|
|
1292
1614
|
"step": {
|
|
1293
1615
|
"$ref": "#/$defs/WorkflowNode"
|
|
1294
1616
|
},
|
|
@@ -1351,6 +1673,29 @@
|
|
|
1351
1673
|
}
|
|
1352
1674
|
]
|
|
1353
1675
|
},
|
|
1676
|
+
"emitItems": {
|
|
1677
|
+
"anyOf": [
|
|
1678
|
+
{
|
|
1679
|
+
"type": "boolean"
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"type": "object",
|
|
1683
|
+
"properties": {
|
|
1684
|
+
"expr": {
|
|
1685
|
+
"$ref": "#/$defs/Expression"
|
|
1686
|
+
},
|
|
1687
|
+
"as": {
|
|
1688
|
+
"type": "string",
|
|
1689
|
+
"enum": [
|
|
1690
|
+
"text",
|
|
1691
|
+
"items"
|
|
1692
|
+
]
|
|
1693
|
+
}
|
|
1694
|
+
},
|
|
1695
|
+
"additionalProperties": false
|
|
1696
|
+
}
|
|
1697
|
+
]
|
|
1698
|
+
},
|
|
1354
1699
|
"document": {
|
|
1355
1700
|
"$ref": "#"
|
|
1356
1701
|
},
|
|
@@ -1407,6 +1752,29 @@
|
|
|
1407
1752
|
}
|
|
1408
1753
|
]
|
|
1409
1754
|
},
|
|
1755
|
+
"emitItems": {
|
|
1756
|
+
"anyOf": [
|
|
1757
|
+
{
|
|
1758
|
+
"type": "boolean"
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"type": "object",
|
|
1762
|
+
"properties": {
|
|
1763
|
+
"expr": {
|
|
1764
|
+
"$ref": "#/$defs/Expression"
|
|
1765
|
+
},
|
|
1766
|
+
"as": {
|
|
1767
|
+
"type": "string",
|
|
1768
|
+
"enum": [
|
|
1769
|
+
"text",
|
|
1770
|
+
"items"
|
|
1771
|
+
]
|
|
1772
|
+
}
|
|
1773
|
+
},
|
|
1774
|
+
"additionalProperties": false
|
|
1775
|
+
}
|
|
1776
|
+
]
|
|
1777
|
+
},
|
|
1410
1778
|
"agent": {
|
|
1411
1779
|
"type": "string",
|
|
1412
1780
|
"minLength": 1
|
|
@@ -1926,6 +2294,29 @@
|
|
|
1926
2294
|
}
|
|
1927
2295
|
]
|
|
1928
2296
|
},
|
|
2297
|
+
"emitItems": {
|
|
2298
|
+
"anyOf": [
|
|
2299
|
+
{
|
|
2300
|
+
"type": "boolean"
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
"type": "object",
|
|
2304
|
+
"properties": {
|
|
2305
|
+
"expr": {
|
|
2306
|
+
"$ref": "#/$defs/Expression"
|
|
2307
|
+
},
|
|
2308
|
+
"as": {
|
|
2309
|
+
"type": "string",
|
|
2310
|
+
"enum": [
|
|
2311
|
+
"text",
|
|
2312
|
+
"items"
|
|
2313
|
+
]
|
|
2314
|
+
}
|
|
2315
|
+
},
|
|
2316
|
+
"additionalProperties": false
|
|
2317
|
+
}
|
|
2318
|
+
]
|
|
2319
|
+
},
|
|
1929
2320
|
"model": {
|
|
1930
2321
|
"type": "string",
|
|
1931
2322
|
"minLength": 1
|