@noetic-tools/core 5.7.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.
- package/dist/adapters/openrouter.d.ts +1 -0
- package/dist/adapters/openrouter.js +1 -0
- package/dist/builders/channel-builder.d.ts +18 -0
- package/dist/builders/control-flow-builders.d.ts +17 -30
- package/dist/builders/decide-builders.d.ts +5 -5
- package/dist/builders/decide-builders.js +4 -0
- package/dist/builders/every.d.ts +2 -2
- package/dist/builders/every.js +2 -0
- package/dist/builders/loop-builder.d.ts +1 -1
- package/dist/builders/loop-builder.js +1 -1
- package/dist/builders/provide-builder.d.ts +3 -2
- package/dist/builders/provide-builder.js +3 -0
- package/dist/builders/spawn-builder.d.ts +2 -3
- package/dist/builders/spawn-builder.js +2 -1
- package/dist/builders/step-builders.d.ts +8 -9
- package/dist/builders/step-builders.js +0 -1
- package/dist/builders/tool-builder.d.ts +2 -0
- package/dist/builders/tool-builder.js +2 -0
- package/dist/builders/workflow-hydrator.js +21 -14
- package/dist/builders/workflow-replay-key.d.ts +15 -0
- package/dist/builders/workflow-replay-key.js +46 -0
- package/dist/harness/agent-harness.d.ts +43 -11
- package/dist/harness/agent-harness.js +121 -40
- package/dist/harness/deps/interpreter.d.ts +1 -0
- package/dist/harness/deps/interpreter.js +1 -0
- package/dist/harness/deps/runtime.d.ts +3 -2
- package/dist/harness/deps/runtime.js +2 -2
- package/dist/harness/model-call.d.ts +3 -0
- package/dist/harness/model-call.js +19 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +3 -3
- package/dist/interpreter/action-deps.d.ts +1 -1
- package/dist/interpreter/action-deps.js +1 -1
- package/dist/interpreter/child-span.d.ts +17 -0
- package/dist/interpreter/child-span.js +51 -0
- package/dist/interpreter/collect-tools.js +19 -54
- package/dist/interpreter/execute-action.js +30 -17
- package/dist/interpreter/execute-control.js +67 -9
- package/dist/interpreter/execute-decide.js +9 -27
- package/dist/interpreter/execute.d.ts +10 -0
- package/dist/interpreter/execute.js +69 -46
- package/dist/interpreter/model-error.d.ts +9 -0
- package/dist/interpreter/model-error.js +32 -0
- package/dist/interpreter/step-walk.d.ts +11 -0
- package/dist/interpreter/step-walk.js +41 -0
- package/dist/observability/genai-attributes.d.ts +52 -29
- package/dist/observability/genai-attributes.js +27 -1
- package/dist/runtime/channel-store.d.ts +73 -1
- package/dist/runtime/channel-store.js +179 -63
- package/dist/runtime/context-impl.d.ts +36 -32
- package/dist/runtime/context-impl.js +80 -45
- package/dist/runtime/durable/harness-checkpoints.d.ts +33 -16
- package/dist/runtime/durable/harness-checkpoints.js +74 -52
- package/dist/runtime/durable/step-ledger.d.ts +15 -5
- package/dist/runtime/durable/step-ledger.js +23 -6
- package/dist/schemas/workflow.d.ts +1 -1
- package/dist/types/checkpoint.d.ts +31 -0
- package/dist/types/checkpoint.js +29 -0
- package/dist/until/combinators.d.ts +10 -0
- package/dist/until/combinators.js +37 -13
- package/dist/until/predicates.js +4 -2
- package/package.json +3 -3
- package/schema/noetic-workflow.schema.json +432 -0
|
@@ -32,6 +32,34 @@
|
|
|
32
32
|
"type": "string",
|
|
33
33
|
"minLength": 1
|
|
34
34
|
},
|
|
35
|
+
"durable": {
|
|
36
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
35
63
|
"model": {
|
|
36
64
|
"type": "string"
|
|
37
65
|
},
|
|
@@ -83,6 +111,18 @@
|
|
|
83
111
|
"items": {
|
|
84
112
|
"type": "string"
|
|
85
113
|
}
|
|
114
|
+
},
|
|
115
|
+
"serviceTier": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"enum": [
|
|
118
|
+
"auto",
|
|
119
|
+
"default",
|
|
120
|
+
"fast",
|
|
121
|
+
"flex",
|
|
122
|
+
"priority",
|
|
123
|
+
"scale",
|
|
124
|
+
"ultrafast"
|
|
125
|
+
]
|
|
86
126
|
}
|
|
87
127
|
},
|
|
88
128
|
"additionalProperties": false
|
|
@@ -124,6 +164,34 @@
|
|
|
124
164
|
"type": "string",
|
|
125
165
|
"minLength": 1
|
|
126
166
|
},
|
|
167
|
+
"durable": {
|
|
168
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
127
195
|
"toolName": {
|
|
128
196
|
"type": "string",
|
|
129
197
|
"minLength": 1
|
|
@@ -154,6 +222,34 @@
|
|
|
154
222
|
"type": "string",
|
|
155
223
|
"minLength": 1
|
|
156
224
|
},
|
|
225
|
+
"durable": {
|
|
226
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
157
253
|
"execute": {
|
|
158
254
|
"type": "string",
|
|
159
255
|
"minLength": 1
|
|
@@ -213,6 +309,34 @@
|
|
|
213
309
|
"type": "string",
|
|
214
310
|
"minLength": 1
|
|
215
311
|
},
|
|
312
|
+
"durable": {
|
|
313
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
216
340
|
"routes": {
|
|
217
341
|
"minItems": 1,
|
|
218
342
|
"type": "array",
|
|
@@ -256,6 +380,34 @@
|
|
|
256
380
|
"type": "string",
|
|
257
381
|
"minLength": 1
|
|
258
382
|
},
|
|
383
|
+
"durable": {
|
|
384
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
259
411
|
"model": {
|
|
260
412
|
"type": "string",
|
|
261
413
|
"minLength": 1
|
|
@@ -432,6 +584,34 @@
|
|
|
432
584
|
"type": "string",
|
|
433
585
|
"minLength": 1
|
|
434
586
|
},
|
|
587
|
+
"durable": {
|
|
588
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
435
615
|
"decide": {
|
|
436
616
|
"type": "object",
|
|
437
617
|
"properties": {
|
|
@@ -443,6 +623,34 @@
|
|
|
443
623
|
"type": "string",
|
|
444
624
|
"minLength": 1
|
|
445
625
|
},
|
|
626
|
+
"durable": {
|
|
627
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
446
654
|
"model": {
|
|
447
655
|
"type": "string",
|
|
448
656
|
"minLength": 1
|
|
@@ -652,6 +860,34 @@
|
|
|
652
860
|
"type": "string",
|
|
653
861
|
"minLength": 1
|
|
654
862
|
},
|
|
863
|
+
"durable": {
|
|
864
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
655
891
|
"mode": {
|
|
656
892
|
"type": "string",
|
|
657
893
|
"enum": [
|
|
@@ -706,6 +942,34 @@
|
|
|
706
942
|
"type": "string",
|
|
707
943
|
"minLength": 1
|
|
708
944
|
},
|
|
945
|
+
"durable": {
|
|
946
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
709
973
|
"child": {
|
|
710
974
|
"$ref": "#/$defs/WorkflowNode"
|
|
711
975
|
},
|
|
@@ -740,6 +1004,34 @@
|
|
|
740
1004
|
"type": "string",
|
|
741
1005
|
"minLength": 1
|
|
742
1006
|
},
|
|
1007
|
+
"durable": {
|
|
1008
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
743
1035
|
"child": {
|
|
744
1036
|
"$ref": "#/$defs/WorkflowNode"
|
|
745
1037
|
},
|
|
@@ -771,6 +1063,34 @@
|
|
|
771
1063
|
"type": "string",
|
|
772
1064
|
"minLength": 1
|
|
773
1065
|
},
|
|
1066
|
+
"durable": {
|
|
1067
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
774
1094
|
"body": {
|
|
775
1095
|
"$ref": "#/$defs/WorkflowNode"
|
|
776
1096
|
},
|
|
@@ -802,6 +1122,34 @@
|
|
|
802
1122
|
"type": "string",
|
|
803
1123
|
"minLength": 1
|
|
804
1124
|
},
|
|
1125
|
+
"durable": {
|
|
1126
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
805
1153
|
"steps": {
|
|
806
1154
|
"minItems": 1,
|
|
807
1155
|
"type": "array",
|
|
@@ -828,6 +1176,34 @@
|
|
|
828
1176
|
"type": "string",
|
|
829
1177
|
"minLength": 1
|
|
830
1178
|
},
|
|
1179
|
+
"durable": {
|
|
1180
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
831
1207
|
"step": {
|
|
832
1208
|
"$ref": "#/$defs/WorkflowNode"
|
|
833
1209
|
},
|
|
@@ -862,6 +1238,34 @@
|
|
|
862
1238
|
"type": "string",
|
|
863
1239
|
"minLength": 1
|
|
864
1240
|
},
|
|
1241
|
+
"durable": {
|
|
1242
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
865
1269
|
"document": {
|
|
866
1270
|
"$ref": "#"
|
|
867
1271
|
},
|
|
@@ -890,6 +1294,34 @@
|
|
|
890
1294
|
"type": "string",
|
|
891
1295
|
"minLength": 1
|
|
892
1296
|
},
|
|
1297
|
+
"durable": {
|
|
1298
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
893
1325
|
"agent": {
|
|
894
1326
|
"type": "string",
|
|
895
1327
|
"minLength": 1
|