@noetic-tools/core 5.8.0 → 5.9.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 (41) hide show
  1. package/dist/adapters/openrouter.d.ts +1 -0
  2. package/dist/adapters/openrouter.js +1 -0
  3. package/dist/builders/provide-builder.d.ts +1 -0
  4. package/dist/builders/provide-builder.js +1 -0
  5. package/dist/builders/spawn-builder.d.ts +0 -1
  6. package/dist/builders/spawn-builder.js +0 -1
  7. package/dist/builders/step-builders.d.ts +0 -1
  8. package/dist/builders/step-builders.js +0 -1
  9. package/dist/builders/tool-builder.d.ts +2 -0
  10. package/dist/builders/tool-builder.js +2 -0
  11. package/dist/builders/workflow-hydrator.js +15 -13
  12. package/dist/builders/workflow-replay-key.d.ts +15 -0
  13. package/dist/builders/workflow-replay-key.js +46 -0
  14. package/dist/harness/agent-harness.d.ts +25 -6
  15. package/dist/harness/agent-harness.js +72 -26
  16. package/dist/harness/deps/interpreter.d.ts +1 -0
  17. package/dist/harness/deps/interpreter.js +1 -0
  18. package/dist/harness/model-call.d.ts +3 -0
  19. package/dist/harness/model-call.js +9 -5
  20. package/dist/interpreter/action-deps.d.ts +1 -1
  21. package/dist/interpreter/action-deps.js +1 -1
  22. package/dist/interpreter/collect-tools.js +19 -54
  23. package/dist/interpreter/execute-action.js +10 -2
  24. package/dist/interpreter/execute-control.js +3 -1
  25. package/dist/interpreter/execute-decide.js +9 -27
  26. package/dist/interpreter/execute.js +30 -36
  27. package/dist/interpreter/model-error.d.ts +9 -0
  28. package/dist/interpreter/model-error.js +32 -0
  29. package/dist/interpreter/step-walk.d.ts +11 -0
  30. package/dist/interpreter/step-walk.js +41 -0
  31. package/dist/observability/genai-attributes.d.ts +7 -0
  32. package/dist/observability/genai-attributes.js +8 -0
  33. package/dist/runtime/context-impl.d.ts +29 -31
  34. package/dist/runtime/context-impl.js +65 -45
  35. package/dist/runtime/durable/harness-checkpoints.d.ts +31 -18
  36. package/dist/runtime/durable/harness-checkpoints.js +70 -54
  37. package/dist/runtime/durable/step-ledger.d.ts +1 -1
  38. package/dist/runtime/durable/step-ledger.js +1 -1
  39. package/dist/schemas/workflow.d.ts +1 -1
  40. package/package.json +3 -3
  41. package/schema/noetic-workflow.schema.json +375 -0
@@ -35,6 +35,31 @@
35
35
  "durable": {
36
36
  "type": "boolean"
37
37
  },
38
+ "replayKey": {
39
+ "anyOf": [
40
+ {
41
+ "type": "boolean",
42
+ "const": true
43
+ },
44
+ {
45
+ "type": "object",
46
+ "properties": {
47
+ "from": {
48
+ "minItems": 1,
49
+ "type": "array",
50
+ "items": {
51
+ "type": "string",
52
+ "minLength": 1
53
+ }
54
+ }
55
+ },
56
+ "required": [
57
+ "from"
58
+ ],
59
+ "additionalProperties": false
60
+ }
61
+ ]
62
+ },
38
63
  "model": {
39
64
  "type": "string"
40
65
  },
@@ -142,6 +167,31 @@
142
167
  "durable": {
143
168
  "type": "boolean"
144
169
  },
170
+ "replayKey": {
171
+ "anyOf": [
172
+ {
173
+ "type": "boolean",
174
+ "const": true
175
+ },
176
+ {
177
+ "type": "object",
178
+ "properties": {
179
+ "from": {
180
+ "minItems": 1,
181
+ "type": "array",
182
+ "items": {
183
+ "type": "string",
184
+ "minLength": 1
185
+ }
186
+ }
187
+ },
188
+ "required": [
189
+ "from"
190
+ ],
191
+ "additionalProperties": false
192
+ }
193
+ ]
194
+ },
145
195
  "toolName": {
146
196
  "type": "string",
147
197
  "minLength": 1
@@ -175,6 +225,31 @@
175
225
  "durable": {
176
226
  "type": "boolean"
177
227
  },
228
+ "replayKey": {
229
+ "anyOf": [
230
+ {
231
+ "type": "boolean",
232
+ "const": true
233
+ },
234
+ {
235
+ "type": "object",
236
+ "properties": {
237
+ "from": {
238
+ "minItems": 1,
239
+ "type": "array",
240
+ "items": {
241
+ "type": "string",
242
+ "minLength": 1
243
+ }
244
+ }
245
+ },
246
+ "required": [
247
+ "from"
248
+ ],
249
+ "additionalProperties": false
250
+ }
251
+ ]
252
+ },
178
253
  "execute": {
179
254
  "type": "string",
180
255
  "minLength": 1
@@ -237,6 +312,31 @@
237
312
  "durable": {
238
313
  "type": "boolean"
239
314
  },
315
+ "replayKey": {
316
+ "anyOf": [
317
+ {
318
+ "type": "boolean",
319
+ "const": true
320
+ },
321
+ {
322
+ "type": "object",
323
+ "properties": {
324
+ "from": {
325
+ "minItems": 1,
326
+ "type": "array",
327
+ "items": {
328
+ "type": "string",
329
+ "minLength": 1
330
+ }
331
+ }
332
+ },
333
+ "required": [
334
+ "from"
335
+ ],
336
+ "additionalProperties": false
337
+ }
338
+ ]
339
+ },
240
340
  "routes": {
241
341
  "minItems": 1,
242
342
  "type": "array",
@@ -283,6 +383,31 @@
283
383
  "durable": {
284
384
  "type": "boolean"
285
385
  },
386
+ "replayKey": {
387
+ "anyOf": [
388
+ {
389
+ "type": "boolean",
390
+ "const": true
391
+ },
392
+ {
393
+ "type": "object",
394
+ "properties": {
395
+ "from": {
396
+ "minItems": 1,
397
+ "type": "array",
398
+ "items": {
399
+ "type": "string",
400
+ "minLength": 1
401
+ }
402
+ }
403
+ },
404
+ "required": [
405
+ "from"
406
+ ],
407
+ "additionalProperties": false
408
+ }
409
+ ]
410
+ },
286
411
  "model": {
287
412
  "type": "string",
288
413
  "minLength": 1
@@ -462,6 +587,31 @@
462
587
  "durable": {
463
588
  "type": "boolean"
464
589
  },
590
+ "replayKey": {
591
+ "anyOf": [
592
+ {
593
+ "type": "boolean",
594
+ "const": true
595
+ },
596
+ {
597
+ "type": "object",
598
+ "properties": {
599
+ "from": {
600
+ "minItems": 1,
601
+ "type": "array",
602
+ "items": {
603
+ "type": "string",
604
+ "minLength": 1
605
+ }
606
+ }
607
+ },
608
+ "required": [
609
+ "from"
610
+ ],
611
+ "additionalProperties": false
612
+ }
613
+ ]
614
+ },
465
615
  "decide": {
466
616
  "type": "object",
467
617
  "properties": {
@@ -476,6 +626,31 @@
476
626
  "durable": {
477
627
  "type": "boolean"
478
628
  },
629
+ "replayKey": {
630
+ "anyOf": [
631
+ {
632
+ "type": "boolean",
633
+ "const": true
634
+ },
635
+ {
636
+ "type": "object",
637
+ "properties": {
638
+ "from": {
639
+ "minItems": 1,
640
+ "type": "array",
641
+ "items": {
642
+ "type": "string",
643
+ "minLength": 1
644
+ }
645
+ }
646
+ },
647
+ "required": [
648
+ "from"
649
+ ],
650
+ "additionalProperties": false
651
+ }
652
+ ]
653
+ },
479
654
  "model": {
480
655
  "type": "string",
481
656
  "minLength": 1
@@ -688,6 +863,31 @@
688
863
  "durable": {
689
864
  "type": "boolean"
690
865
  },
866
+ "replayKey": {
867
+ "anyOf": [
868
+ {
869
+ "type": "boolean",
870
+ "const": true
871
+ },
872
+ {
873
+ "type": "object",
874
+ "properties": {
875
+ "from": {
876
+ "minItems": 1,
877
+ "type": "array",
878
+ "items": {
879
+ "type": "string",
880
+ "minLength": 1
881
+ }
882
+ }
883
+ },
884
+ "required": [
885
+ "from"
886
+ ],
887
+ "additionalProperties": false
888
+ }
889
+ ]
890
+ },
691
891
  "mode": {
692
892
  "type": "string",
693
893
  "enum": [
@@ -745,6 +945,31 @@
745
945
  "durable": {
746
946
  "type": "boolean"
747
947
  },
948
+ "replayKey": {
949
+ "anyOf": [
950
+ {
951
+ "type": "boolean",
952
+ "const": true
953
+ },
954
+ {
955
+ "type": "object",
956
+ "properties": {
957
+ "from": {
958
+ "minItems": 1,
959
+ "type": "array",
960
+ "items": {
961
+ "type": "string",
962
+ "minLength": 1
963
+ }
964
+ }
965
+ },
966
+ "required": [
967
+ "from"
968
+ ],
969
+ "additionalProperties": false
970
+ }
971
+ ]
972
+ },
748
973
  "child": {
749
974
  "$ref": "#/$defs/WorkflowNode"
750
975
  },
@@ -782,6 +1007,31 @@
782
1007
  "durable": {
783
1008
  "type": "boolean"
784
1009
  },
1010
+ "replayKey": {
1011
+ "anyOf": [
1012
+ {
1013
+ "type": "boolean",
1014
+ "const": true
1015
+ },
1016
+ {
1017
+ "type": "object",
1018
+ "properties": {
1019
+ "from": {
1020
+ "minItems": 1,
1021
+ "type": "array",
1022
+ "items": {
1023
+ "type": "string",
1024
+ "minLength": 1
1025
+ }
1026
+ }
1027
+ },
1028
+ "required": [
1029
+ "from"
1030
+ ],
1031
+ "additionalProperties": false
1032
+ }
1033
+ ]
1034
+ },
785
1035
  "child": {
786
1036
  "$ref": "#/$defs/WorkflowNode"
787
1037
  },
@@ -816,6 +1066,31 @@
816
1066
  "durable": {
817
1067
  "type": "boolean"
818
1068
  },
1069
+ "replayKey": {
1070
+ "anyOf": [
1071
+ {
1072
+ "type": "boolean",
1073
+ "const": true
1074
+ },
1075
+ {
1076
+ "type": "object",
1077
+ "properties": {
1078
+ "from": {
1079
+ "minItems": 1,
1080
+ "type": "array",
1081
+ "items": {
1082
+ "type": "string",
1083
+ "minLength": 1
1084
+ }
1085
+ }
1086
+ },
1087
+ "required": [
1088
+ "from"
1089
+ ],
1090
+ "additionalProperties": false
1091
+ }
1092
+ ]
1093
+ },
819
1094
  "body": {
820
1095
  "$ref": "#/$defs/WorkflowNode"
821
1096
  },
@@ -850,6 +1125,31 @@
850
1125
  "durable": {
851
1126
  "type": "boolean"
852
1127
  },
1128
+ "replayKey": {
1129
+ "anyOf": [
1130
+ {
1131
+ "type": "boolean",
1132
+ "const": true
1133
+ },
1134
+ {
1135
+ "type": "object",
1136
+ "properties": {
1137
+ "from": {
1138
+ "minItems": 1,
1139
+ "type": "array",
1140
+ "items": {
1141
+ "type": "string",
1142
+ "minLength": 1
1143
+ }
1144
+ }
1145
+ },
1146
+ "required": [
1147
+ "from"
1148
+ ],
1149
+ "additionalProperties": false
1150
+ }
1151
+ ]
1152
+ },
853
1153
  "steps": {
854
1154
  "minItems": 1,
855
1155
  "type": "array",
@@ -879,6 +1179,31 @@
879
1179
  "durable": {
880
1180
  "type": "boolean"
881
1181
  },
1182
+ "replayKey": {
1183
+ "anyOf": [
1184
+ {
1185
+ "type": "boolean",
1186
+ "const": true
1187
+ },
1188
+ {
1189
+ "type": "object",
1190
+ "properties": {
1191
+ "from": {
1192
+ "minItems": 1,
1193
+ "type": "array",
1194
+ "items": {
1195
+ "type": "string",
1196
+ "minLength": 1
1197
+ }
1198
+ }
1199
+ },
1200
+ "required": [
1201
+ "from"
1202
+ ],
1203
+ "additionalProperties": false
1204
+ }
1205
+ ]
1206
+ },
882
1207
  "step": {
883
1208
  "$ref": "#/$defs/WorkflowNode"
884
1209
  },
@@ -916,6 +1241,31 @@
916
1241
  "durable": {
917
1242
  "type": "boolean"
918
1243
  },
1244
+ "replayKey": {
1245
+ "anyOf": [
1246
+ {
1247
+ "type": "boolean",
1248
+ "const": true
1249
+ },
1250
+ {
1251
+ "type": "object",
1252
+ "properties": {
1253
+ "from": {
1254
+ "minItems": 1,
1255
+ "type": "array",
1256
+ "items": {
1257
+ "type": "string",
1258
+ "minLength": 1
1259
+ }
1260
+ }
1261
+ },
1262
+ "required": [
1263
+ "from"
1264
+ ],
1265
+ "additionalProperties": false
1266
+ }
1267
+ ]
1268
+ },
919
1269
  "document": {
920
1270
  "$ref": "#"
921
1271
  },
@@ -947,6 +1297,31 @@
947
1297
  "durable": {
948
1298
  "type": "boolean"
949
1299
  },
1300
+ "replayKey": {
1301
+ "anyOf": [
1302
+ {
1303
+ "type": "boolean",
1304
+ "const": true
1305
+ },
1306
+ {
1307
+ "type": "object",
1308
+ "properties": {
1309
+ "from": {
1310
+ "minItems": 1,
1311
+ "type": "array",
1312
+ "items": {
1313
+ "type": "string",
1314
+ "minLength": 1
1315
+ }
1316
+ }
1317
+ },
1318
+ "required": [
1319
+ "from"
1320
+ ],
1321
+ "additionalProperties": false
1322
+ }
1323
+ ]
1324
+ },
950
1325
  "agent": {
951
1326
  "type": "string",
952
1327
  "minLength": 1