@parcha/agentrun-dsl 0.1.0-beta.5 → 0.1.0-beta.51
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/NOTICE +2 -0
- package/README.md +167 -23
- package/dist/author-references.d.ts +8 -0
- package/dist/author-references.js +8 -0
- package/dist/author.d.ts +13 -5
- package/dist/author.js +38 -19
- package/dist/authoring.js +2 -2
- package/dist/cli.js +17 -12
- package/dist/code-exec.d.ts +6 -0
- package/dist/code-exec.js +126 -0
- package/dist/decision-provider.d.ts +165 -0
- package/dist/decision-provider.js +238 -0
- package/dist/decision-receipts.d.ts +159 -0
- package/dist/decision-receipts.js +93 -0
- package/dist/dry-run.d.ts +45 -2
- package/dist/dry-run.js +157 -26
- package/dist/evidence.d.ts +19 -0
- package/dist/evidence.js +62 -0
- package/dist/graph.d.ts +169 -0
- package/dist/graph.js +433 -0
- package/dist/index.d.ts +19 -11
- package/dist/index.js +16 -9
- package/dist/inspection.d.ts +5 -0
- package/dist/inspection.js +16 -3
- package/dist/job.d.ts +14 -0
- package/dist/job.js +5 -0
- package/dist/long-timer.d.ts +7 -0
- package/dist/long-timer.js +22 -0
- package/dist/observer-snapshot.d.ts +3 -0
- package/dist/observer-snapshot.js +46 -0
- package/dist/predicates.d.ts +32 -0
- package/dist/predicates.js +61 -0
- package/dist/recovery/binding.d.ts +10 -0
- package/dist/recovery/binding.js +43 -0
- package/dist/recovery/call-key.d.ts +9 -0
- package/dist/recovery/call-key.js +17 -0
- package/dist/recovery/canonical-hash.d.ts +7 -0
- package/dist/recovery/canonical-hash.js +22 -0
- package/dist/recovery/driver.d.ts +235 -0
- package/dist/recovery/driver.js +1333 -0
- package/dist/recovery/errors.d.ts +31 -0
- package/dist/recovery/errors.js +51 -0
- package/dist/recovery/execution-path.d.ts +53 -0
- package/dist/recovery/execution-path.js +167 -0
- package/dist/recovery/file-store.d.ts +7 -0
- package/dist/recovery/file-store.js +131 -0
- package/dist/recovery/frozen-snapshot.d.ts +274 -0
- package/dist/recovery/frozen-snapshot.js +187 -0
- package/dist/recovery/handoff-receipts.d.ts +7 -0
- package/dist/recovery/handoff-receipts.js +10 -0
- package/dist/recovery/index.d.ts +14 -0
- package/dist/recovery/index.js +13 -0
- package/dist/recovery/item-state.d.ts +48 -0
- package/dist/recovery/item-state.js +89 -0
- package/dist/recovery/journal.d.ts +28 -0
- package/dist/recovery/journal.js +139 -0
- package/dist/recovery/memory-store.d.ts +4 -0
- package/dist/recovery/memory-store.js +20 -0
- package/dist/recovery/store.d.ts +105 -0
- package/dist/recovery/store.js +6 -0
- package/dist/recovery/testing/conformance.d.ts +4 -0
- package/dist/recovery/testing/conformance.js +268 -0
- package/dist/recovery/testing/crash-points.d.ts +18 -0
- package/dist/recovery/testing/crash-points.js +43 -0
- package/dist/recovery/testing/crash-sweep.d.ts +65 -0
- package/dist/recovery/testing/crash-sweep.js +146 -0
- package/dist/recovery/testing/index.d.ts +3 -0
- package/dist/recovery/testing/index.js +4 -0
- package/dist/recovery/testing/preload.d.ts +1 -0
- package/dist/recovery/testing/preload.js +3 -0
- package/dist/recovery/transport-facts.d.ts +23 -0
- package/dist/recovery/transport-facts.js +46 -0
- package/dist/recovery/with-recovery.d.ts +50 -0
- package/dist/recovery/with-recovery.js +144 -0
- package/dist/submit-envelope.d.ts +9 -0
- package/dist/submit-envelope.js +43 -0
- package/dist/system-one.d.ts +40 -2
- package/dist/system-one.js +132 -12
- package/dist/testing/decision-provider.d.ts +32 -0
- package/dist/testing/decision-provider.js +183 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +2 -0
- package/dist/vocabulary.d.ts +19 -3
- package/dist/vocabulary.js +31 -10
- package/dist/workflow-shape.d.ts +7 -0
- package/dist/workflow-shape.js +115 -69
- package/dist/workflow.d.ts +269 -29
- package/dist/workflow.js +1453 -439
- package/package.json +27 -4
- package/schema/workflow.schema.json +497 -12
- package/skills/author/SKILL.md +6 -1
- package/skills/author/references/jev-decisions.md +69 -12
- package/skills/author/references/language.md +28 -20
- package/skills/author/references/sdk-authoring.md +2 -0
package/package.json
CHANGED
|
@@ -1,21 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcha/agentrun-dsl",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.51",
|
|
4
4
|
"description": "Composable, typed workflows for agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"bin": {
|
|
8
|
-
"agentrun": "./dist/cli.js"
|
|
8
|
+
"agentrun-dsl": "./dist/cli.js"
|
|
9
9
|
},
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"import": "./dist/index.js"
|
|
14
14
|
},
|
|
15
|
+
"./graph": {
|
|
16
|
+
"types": "./dist/graph.d.ts",
|
|
17
|
+
"import": "./dist/graph.js"
|
|
18
|
+
},
|
|
15
19
|
"./demo": {
|
|
16
20
|
"types": "./dist/demo.d.ts",
|
|
17
21
|
"import": "./dist/demo.js"
|
|
18
22
|
},
|
|
23
|
+
"./author-references": {
|
|
24
|
+
"types": "./dist/author-references.d.ts",
|
|
25
|
+
"import": "./dist/author-references.js"
|
|
26
|
+
},
|
|
27
|
+
"./recovery": {
|
|
28
|
+
"types": "./dist/recovery/index.d.ts",
|
|
29
|
+
"import": "./dist/recovery/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./recovery/testing": {
|
|
32
|
+
"types": "./dist/recovery/testing/index.d.ts",
|
|
33
|
+
"import": "./dist/recovery/testing/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./testing": {
|
|
36
|
+
"types": "./dist/testing/index.d.ts",
|
|
37
|
+
"import": "./dist/testing/index.js"
|
|
38
|
+
},
|
|
19
39
|
"./schema": "./schema/workflow.schema.json"
|
|
20
40
|
},
|
|
21
41
|
"files": [
|
|
@@ -27,7 +47,7 @@
|
|
|
27
47
|
"skills"
|
|
28
48
|
],
|
|
29
49
|
"engines": {
|
|
30
|
-
"node": ">=22.
|
|
50
|
+
"node": ">=24.22.3"
|
|
31
51
|
},
|
|
32
52
|
"scripts": {
|
|
33
53
|
"build": "tsc -p tsconfig.json",
|
|
@@ -35,7 +55,10 @@
|
|
|
35
55
|
"test": "node --test test/*.test.mjs"
|
|
36
56
|
},
|
|
37
57
|
"dependencies": {
|
|
38
|
-
"typebox": "1.3.
|
|
58
|
+
"typebox": "1.3.27"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"esbuild": "0.28.2"
|
|
39
62
|
},
|
|
40
63
|
"repository": {
|
|
41
64
|
"type": "git",
|
|
@@ -184,6 +184,27 @@
|
|
|
184
184
|
"type": "string",
|
|
185
185
|
"title": "tier"
|
|
186
186
|
},
|
|
187
|
+
"budget_usd": {
|
|
188
|
+
"description": "The most the node asks to spend, in dollars.",
|
|
189
|
+
"exclusiveMinimum": 0,
|
|
190
|
+
"type": "number",
|
|
191
|
+
"title": "budget_usd"
|
|
192
|
+
},
|
|
193
|
+
"max_turns": {
|
|
194
|
+
"description": "The most turns the node asks its host for, per attempt. The host applies it within its own cap; the engine\nenforces nothing.",
|
|
195
|
+
"minimum": 1,
|
|
196
|
+
"type": "integer",
|
|
197
|
+
"title": "max_turns"
|
|
198
|
+
},
|
|
199
|
+
"context": {
|
|
200
|
+
"description": "An `agent` node's context (`AGENT_CONTEXTS`).",
|
|
201
|
+
"enum": [
|
|
202
|
+
"fork",
|
|
203
|
+
"fresh"
|
|
204
|
+
],
|
|
205
|
+
"type": "string",
|
|
206
|
+
"title": "context"
|
|
207
|
+
},
|
|
187
208
|
"metadata": {
|
|
188
209
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
189
210
|
"type": "object",
|
|
@@ -672,6 +693,20 @@
|
|
|
672
693
|
"type": "number",
|
|
673
694
|
"title": "maxConcurrency"
|
|
674
695
|
},
|
|
696
|
+
"onItemFailure": {
|
|
697
|
+
"description": "What an item's failure does: `stop` (the default) stops the map and the run; `collect` ends the item as a row\nof `failedAs` when its failure is an item failure (`isItemFailure`), and the other items finish.",
|
|
698
|
+
"enum": [
|
|
699
|
+
"collect",
|
|
700
|
+
"stop"
|
|
701
|
+
],
|
|
702
|
+
"type": "string",
|
|
703
|
+
"title": "onItemFailure"
|
|
704
|
+
},
|
|
705
|
+
"failedAs": {
|
|
706
|
+
"description": "With `onItemFailure: \"collect\"`, the state key the map writes its failed items under, one row each in item order:\n`{ item_index, label, code, message }`. `as` stays aligned with the items, `null` in a failed item's slot.",
|
|
707
|
+
"type": "string",
|
|
708
|
+
"title": "failedAs"
|
|
709
|
+
},
|
|
675
710
|
"metadata": {
|
|
676
711
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
677
712
|
"type": "object",
|
|
@@ -743,6 +778,10 @@
|
|
|
743
778
|
"type": "number",
|
|
744
779
|
"title": "maxIters"
|
|
745
780
|
},
|
|
781
|
+
"expect_iters": {
|
|
782
|
+
"type": "number",
|
|
783
|
+
"title": "expect_iters"
|
|
784
|
+
},
|
|
746
785
|
"metadata": {
|
|
747
786
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
748
787
|
"type": "object",
|
|
@@ -834,6 +873,33 @@
|
|
|
834
873
|
},
|
|
835
874
|
"title": "requires"
|
|
836
875
|
},
|
|
876
|
+
"provider": {
|
|
877
|
+
"type": "string",
|
|
878
|
+
"title": "provider"
|
|
879
|
+
},
|
|
880
|
+
"model": {
|
|
881
|
+
"type": "string",
|
|
882
|
+
"title": "model"
|
|
883
|
+
},
|
|
884
|
+
"evidence": {
|
|
885
|
+
"description": "What a decision node asks of its provider's evidence: none, whatever it gives, or some (a provider that gives none is refused before the run).",
|
|
886
|
+
"enum": [
|
|
887
|
+
"if_supported",
|
|
888
|
+
"off",
|
|
889
|
+
"required"
|
|
890
|
+
],
|
|
891
|
+
"type": "string",
|
|
892
|
+
"title": "evidence"
|
|
893
|
+
},
|
|
894
|
+
"timeoutMs": {
|
|
895
|
+
"type": "number",
|
|
896
|
+
"title": "timeoutMs"
|
|
897
|
+
},
|
|
898
|
+
"images": {
|
|
899
|
+
"description": "The images a decision node sends with its request: each key is a token (such as `\"<page1>\"`) that appears literally in\nthe node's `state` or in a question's text, and each value is a reference to the image, written as a `state` value is\n(`\"{item.pages.0.image}\"`, or a literal path), that resolves to a string the host loads (a run-relative file path).",
|
|
900
|
+
"$ref": "#/definitions/DecisionImages",
|
|
901
|
+
"title": "images"
|
|
902
|
+
},
|
|
837
903
|
"metadata": {
|
|
838
904
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
839
905
|
"type": "object",
|
|
@@ -893,6 +959,33 @@
|
|
|
893
959
|
},
|
|
894
960
|
"title": "requires"
|
|
895
961
|
},
|
|
962
|
+
"provider": {
|
|
963
|
+
"type": "string",
|
|
964
|
+
"title": "provider"
|
|
965
|
+
},
|
|
966
|
+
"model": {
|
|
967
|
+
"type": "string",
|
|
968
|
+
"title": "model"
|
|
969
|
+
},
|
|
970
|
+
"evidence": {
|
|
971
|
+
"description": "What a decision node asks of its provider's evidence: none, whatever it gives, or some (a provider that gives none is refused before the run).",
|
|
972
|
+
"enum": [
|
|
973
|
+
"if_supported",
|
|
974
|
+
"off",
|
|
975
|
+
"required"
|
|
976
|
+
],
|
|
977
|
+
"type": "string",
|
|
978
|
+
"title": "evidence"
|
|
979
|
+
},
|
|
980
|
+
"timeoutMs": {
|
|
981
|
+
"type": "number",
|
|
982
|
+
"title": "timeoutMs"
|
|
983
|
+
},
|
|
984
|
+
"images": {
|
|
985
|
+
"description": "The images a decision node sends with its request: each key is a token (such as `\"<page1>\"`) that appears literally in\nthe node's `state` or in a question's text, and each value is a reference to the image, written as a `state` value is\n(`\"{item.pages.0.image}\"`, or a literal path), that resolves to a string the host loads (a run-relative file path).",
|
|
986
|
+
"$ref": "#/definitions/DecisionImages",
|
|
987
|
+
"title": "images"
|
|
988
|
+
},
|
|
896
989
|
"metadata": {
|
|
897
990
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
898
991
|
"type": "object",
|
|
@@ -966,6 +1059,33 @@
|
|
|
966
1059
|
},
|
|
967
1060
|
"title": "requires"
|
|
968
1061
|
},
|
|
1062
|
+
"provider": {
|
|
1063
|
+
"type": "string",
|
|
1064
|
+
"title": "provider"
|
|
1065
|
+
},
|
|
1066
|
+
"model": {
|
|
1067
|
+
"type": "string",
|
|
1068
|
+
"title": "model"
|
|
1069
|
+
},
|
|
1070
|
+
"evidence": {
|
|
1071
|
+
"description": "What a decision node asks of its provider's evidence: none, whatever it gives, or some (a provider that gives none is refused before the run).",
|
|
1072
|
+
"enum": [
|
|
1073
|
+
"if_supported",
|
|
1074
|
+
"off",
|
|
1075
|
+
"required"
|
|
1076
|
+
],
|
|
1077
|
+
"type": "string",
|
|
1078
|
+
"title": "evidence"
|
|
1079
|
+
},
|
|
1080
|
+
"timeoutMs": {
|
|
1081
|
+
"type": "number",
|
|
1082
|
+
"title": "timeoutMs"
|
|
1083
|
+
},
|
|
1084
|
+
"images": {
|
|
1085
|
+
"description": "The images a decision node sends with its request: each key is a token (such as `\"<page1>\"`) that appears literally in\nthe node's `state` or in a question's text, and each value is a reference to the image, written as a `state` value is\n(`\"{item.pages.0.image}\"`, or a literal path), that resolves to a string the host loads (a run-relative file path).",
|
|
1086
|
+
"$ref": "#/definitions/DecisionImages",
|
|
1087
|
+
"title": "images"
|
|
1088
|
+
},
|
|
969
1089
|
"metadata": {
|
|
970
1090
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
971
1091
|
"type": "object",
|
|
@@ -982,7 +1102,7 @@
|
|
|
982
1102
|
]
|
|
983
1103
|
},
|
|
984
1104
|
{
|
|
985
|
-
"description": "A choice among subgraphs. The options are the branch names, their criteria the branch\ndescriptions; the chosen branch runs on the state. `as` (optional) records the choice and its\ndistribution; `unsure` names the branch taken when confidence is below `gte`.",
|
|
1105
|
+
"description": "A choice among subgraphs that Jev makes. The options are the branch names, their criteria the branch\ndescriptions; the chosen branch runs on the state. `as` (optional) records the choice and its\ndistribution; `unsure` names the branch taken when confidence is below `gte`.",
|
|
986
1106
|
"type": "object",
|
|
987
1107
|
"properties": {
|
|
988
1108
|
"node": {
|
|
@@ -1051,6 +1171,33 @@
|
|
|
1051
1171
|
},
|
|
1052
1172
|
"title": "requires"
|
|
1053
1173
|
},
|
|
1174
|
+
"provider": {
|
|
1175
|
+
"type": "string",
|
|
1176
|
+
"title": "provider"
|
|
1177
|
+
},
|
|
1178
|
+
"model": {
|
|
1179
|
+
"type": "string",
|
|
1180
|
+
"title": "model"
|
|
1181
|
+
},
|
|
1182
|
+
"evidence": {
|
|
1183
|
+
"description": "What a decision node asks of its provider's evidence: none, whatever it gives, or some (a provider that gives none is refused before the run).",
|
|
1184
|
+
"enum": [
|
|
1185
|
+
"if_supported",
|
|
1186
|
+
"off",
|
|
1187
|
+
"required"
|
|
1188
|
+
],
|
|
1189
|
+
"type": "string",
|
|
1190
|
+
"title": "evidence"
|
|
1191
|
+
},
|
|
1192
|
+
"timeoutMs": {
|
|
1193
|
+
"type": "number",
|
|
1194
|
+
"title": "timeoutMs"
|
|
1195
|
+
},
|
|
1196
|
+
"images": {
|
|
1197
|
+
"description": "The images a decision node sends with its request: each key is a token (such as `\"<page1>\"`) that appears literally in\nthe node's `state` or in a question's text, and each value is a reference to the image, written as a `state` value is\n(`\"{item.pages.0.image}\"`, or a literal path), that resolves to a string the host loads (a run-relative file path).",
|
|
1198
|
+
"$ref": "#/definitions/DecisionImages",
|
|
1199
|
+
"title": "images"
|
|
1200
|
+
},
|
|
1054
1201
|
"metadata": {
|
|
1055
1202
|
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
1056
1203
|
"type": "object",
|
|
@@ -1064,7 +1211,102 @@
|
|
|
1064
1211
|
"label",
|
|
1065
1212
|
"node",
|
|
1066
1213
|
"state"
|
|
1067
|
-
]
|
|
1214
|
+
],
|
|
1215
|
+
"not": {
|
|
1216
|
+
"anyOf": [
|
|
1217
|
+
{
|
|
1218
|
+
"required": [
|
|
1219
|
+
"valuePath"
|
|
1220
|
+
]
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"required": [
|
|
1224
|
+
"otherwise"
|
|
1225
|
+
]
|
|
1226
|
+
}
|
|
1227
|
+
]
|
|
1228
|
+
}
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
"description": "A route by a value already in state: the string at `valuePath` names the branch. A missing value or\nan unknown name takes `otherwise` when declared and fails before any branch otherwise; a value that is\nnot a string always fails. `as` records `{value, taken, fallback}`.",
|
|
1232
|
+
"type": "object",
|
|
1233
|
+
"properties": {
|
|
1234
|
+
"node": {
|
|
1235
|
+
"type": "string",
|
|
1236
|
+
"const": "route",
|
|
1237
|
+
"title": "node"
|
|
1238
|
+
},
|
|
1239
|
+
"label": {
|
|
1240
|
+
"type": "string",
|
|
1241
|
+
"title": "label"
|
|
1242
|
+
},
|
|
1243
|
+
"valuePath": {
|
|
1244
|
+
"type": "string",
|
|
1245
|
+
"title": "valuePath"
|
|
1246
|
+
},
|
|
1247
|
+
"branches": {
|
|
1248
|
+
"type": "object",
|
|
1249
|
+
"additionalProperties": {
|
|
1250
|
+
"type": "object",
|
|
1251
|
+
"properties": {
|
|
1252
|
+
"body": {
|
|
1253
|
+
"$ref": "#/definitions/WorkflowNode",
|
|
1254
|
+
"title": "body"
|
|
1255
|
+
}
|
|
1256
|
+
},
|
|
1257
|
+
"required": [
|
|
1258
|
+
"body"
|
|
1259
|
+
]
|
|
1260
|
+
},
|
|
1261
|
+
"title": "branches"
|
|
1262
|
+
},
|
|
1263
|
+
"otherwise": {
|
|
1264
|
+
"type": "string",
|
|
1265
|
+
"title": "otherwise"
|
|
1266
|
+
},
|
|
1267
|
+
"as": {
|
|
1268
|
+
"type": "string",
|
|
1269
|
+
"title": "as"
|
|
1270
|
+
},
|
|
1271
|
+
"requires": {
|
|
1272
|
+
"type": "array",
|
|
1273
|
+
"items": {
|
|
1274
|
+
"type": "string"
|
|
1275
|
+
},
|
|
1276
|
+
"title": "requires"
|
|
1277
|
+
},
|
|
1278
|
+
"metadata": {
|
|
1279
|
+
"description": "Host-owned markers on a node: any JSON object. The engine admits, carries and hashes it with the\ndocument and never reads it; it never reaches state, events, prompts or effect identities.",
|
|
1280
|
+
"type": "object",
|
|
1281
|
+
"additionalProperties": {},
|
|
1282
|
+
"title": "metadata"
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1285
|
+
"required": [
|
|
1286
|
+
"branches",
|
|
1287
|
+
"label",
|
|
1288
|
+
"node",
|
|
1289
|
+
"valuePath"
|
|
1290
|
+
],
|
|
1291
|
+
"not": {
|
|
1292
|
+
"anyOf": [
|
|
1293
|
+
{
|
|
1294
|
+
"required": [
|
|
1295
|
+
"state"
|
|
1296
|
+
]
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"required": [
|
|
1300
|
+
"instructions"
|
|
1301
|
+
]
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
"required": [
|
|
1305
|
+
"unsure"
|
|
1306
|
+
]
|
|
1307
|
+
}
|
|
1308
|
+
]
|
|
1309
|
+
}
|
|
1068
1310
|
},
|
|
1069
1311
|
{
|
|
1070
1312
|
"type": "object",
|
|
@@ -1150,6 +1392,7 @@
|
|
|
1150
1392
|
"title": "deadline_s"
|
|
1151
1393
|
},
|
|
1152
1394
|
"retry": {
|
|
1395
|
+
"description": "`on` names retry classes or effect failure codes; absent, the transient retry classes.",
|
|
1153
1396
|
"type": "object",
|
|
1154
1397
|
"properties": {
|
|
1155
1398
|
"attempts": {
|
|
@@ -1163,7 +1406,24 @@
|
|
|
1163
1406
|
"on": {
|
|
1164
1407
|
"type": "array",
|
|
1165
1408
|
"items": {
|
|
1166
|
-
"
|
|
1409
|
+
"enum": [
|
|
1410
|
+
"connection",
|
|
1411
|
+
"effect_code_unsafe",
|
|
1412
|
+
"effect_exit",
|
|
1413
|
+
"effect_not_granted",
|
|
1414
|
+
"effect_path_escape",
|
|
1415
|
+
"effect_produces_missing",
|
|
1416
|
+
"effect_timeout",
|
|
1417
|
+
"effect_transport",
|
|
1418
|
+
"effect_unknown_transport",
|
|
1419
|
+
"exit",
|
|
1420
|
+
"http_429",
|
|
1421
|
+
"http_5xx",
|
|
1422
|
+
"output_invalid",
|
|
1423
|
+
"state_invalid",
|
|
1424
|
+
"timeout"
|
|
1425
|
+
],
|
|
1426
|
+
"type": "string"
|
|
1167
1427
|
},
|
|
1168
1428
|
"title": "on"
|
|
1169
1429
|
}
|
|
@@ -1363,6 +1623,64 @@
|
|
|
1363
1623
|
"predicate",
|
|
1364
1624
|
"values"
|
|
1365
1625
|
]
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
"type": "object",
|
|
1629
|
+
"properties": {
|
|
1630
|
+
"predicate": {
|
|
1631
|
+
"type": "string",
|
|
1632
|
+
"const": "field_type",
|
|
1633
|
+
"title": "predicate"
|
|
1634
|
+
},
|
|
1635
|
+
"path": {
|
|
1636
|
+
"type": "string",
|
|
1637
|
+
"title": "path"
|
|
1638
|
+
},
|
|
1639
|
+
"type": {
|
|
1640
|
+
"$ref": "#/definitions/FieldType",
|
|
1641
|
+
"title": "type"
|
|
1642
|
+
}
|
|
1643
|
+
},
|
|
1644
|
+
"required": [
|
|
1645
|
+
"path",
|
|
1646
|
+
"predicate",
|
|
1647
|
+
"type"
|
|
1648
|
+
]
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"description": "Holds when a quote at `path` is in none of the page text at `pages`. `path` names a quote (a string) or a list of them;\nwith `field`, a list (or one record) of records, each holding its quote at `field`. Each of `pages` names a state value\nthis run wrote, a call's result most often: every string under it is page text.",
|
|
1652
|
+
"type": "object",
|
|
1653
|
+
"properties": {
|
|
1654
|
+
"predicate": {
|
|
1655
|
+
"type": "string",
|
|
1656
|
+
"const": "quote_missing",
|
|
1657
|
+
"title": "predicate"
|
|
1658
|
+
},
|
|
1659
|
+
"path": {
|
|
1660
|
+
"type": "string",
|
|
1661
|
+
"title": "path"
|
|
1662
|
+
},
|
|
1663
|
+
"field": {
|
|
1664
|
+
"type": "string",
|
|
1665
|
+
"title": "field"
|
|
1666
|
+
},
|
|
1667
|
+
"pages": {
|
|
1668
|
+
"type": "array",
|
|
1669
|
+
"items": {
|
|
1670
|
+
"type": "string"
|
|
1671
|
+
},
|
|
1672
|
+
"title": "pages"
|
|
1673
|
+
}
|
|
1674
|
+
},
|
|
1675
|
+
"required": [
|
|
1676
|
+
"pages",
|
|
1677
|
+
"path",
|
|
1678
|
+
"predicate"
|
|
1679
|
+
]
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"$ref": "#/definitions/NotPredicate",
|
|
1683
|
+
"description": "Holds when `of` does not. `of` is mechanical: a judged question never sits inside a negation."
|
|
1366
1684
|
}
|
|
1367
1685
|
],
|
|
1368
1686
|
"title": "fail_when"
|
|
@@ -1639,6 +1957,64 @@
|
|
|
1639
1957
|
"values"
|
|
1640
1958
|
]
|
|
1641
1959
|
},
|
|
1960
|
+
{
|
|
1961
|
+
"type": "object",
|
|
1962
|
+
"properties": {
|
|
1963
|
+
"predicate": {
|
|
1964
|
+
"type": "string",
|
|
1965
|
+
"const": "field_type",
|
|
1966
|
+
"title": "predicate"
|
|
1967
|
+
},
|
|
1968
|
+
"path": {
|
|
1969
|
+
"type": "string",
|
|
1970
|
+
"title": "path"
|
|
1971
|
+
},
|
|
1972
|
+
"type": {
|
|
1973
|
+
"$ref": "#/definitions/FieldType",
|
|
1974
|
+
"title": "type"
|
|
1975
|
+
}
|
|
1976
|
+
},
|
|
1977
|
+
"required": [
|
|
1978
|
+
"path",
|
|
1979
|
+
"predicate",
|
|
1980
|
+
"type"
|
|
1981
|
+
]
|
|
1982
|
+
},
|
|
1983
|
+
{
|
|
1984
|
+
"description": "Holds when a quote at `path` is in none of the page text at `pages`. `path` names a quote (a string) or a list of them;\nwith `field`, a list (or one record) of records, each holding its quote at `field`. Each of `pages` names a state value\nthis run wrote, a call's result most often: every string under it is page text.",
|
|
1985
|
+
"type": "object",
|
|
1986
|
+
"properties": {
|
|
1987
|
+
"predicate": {
|
|
1988
|
+
"type": "string",
|
|
1989
|
+
"const": "quote_missing",
|
|
1990
|
+
"title": "predicate"
|
|
1991
|
+
},
|
|
1992
|
+
"path": {
|
|
1993
|
+
"type": "string",
|
|
1994
|
+
"title": "path"
|
|
1995
|
+
},
|
|
1996
|
+
"field": {
|
|
1997
|
+
"type": "string",
|
|
1998
|
+
"title": "field"
|
|
1999
|
+
},
|
|
2000
|
+
"pages": {
|
|
2001
|
+
"type": "array",
|
|
2002
|
+
"items": {
|
|
2003
|
+
"type": "string"
|
|
2004
|
+
},
|
|
2005
|
+
"title": "pages"
|
|
2006
|
+
}
|
|
2007
|
+
},
|
|
2008
|
+
"required": [
|
|
2009
|
+
"pages",
|
|
2010
|
+
"path",
|
|
2011
|
+
"predicate"
|
|
2012
|
+
]
|
|
2013
|
+
},
|
|
2014
|
+
{
|
|
2015
|
+
"$ref": "#/definitions/NotPredicate",
|
|
2016
|
+
"description": "Holds when `of` does not. `of` is mechanical: a judged question never sits inside a negation."
|
|
2017
|
+
},
|
|
1642
2018
|
{
|
|
1643
2019
|
"type": "object",
|
|
1644
2020
|
"properties": {
|
|
@@ -1672,6 +2048,33 @@
|
|
|
1672
2048
|
"gte": {
|
|
1673
2049
|
"type": "number",
|
|
1674
2050
|
"title": "gte"
|
|
2051
|
+
},
|
|
2052
|
+
"provider": {
|
|
2053
|
+
"type": "string",
|
|
2054
|
+
"title": "provider"
|
|
2055
|
+
},
|
|
2056
|
+
"model": {
|
|
2057
|
+
"type": "string",
|
|
2058
|
+
"title": "model"
|
|
2059
|
+
},
|
|
2060
|
+
"evidence": {
|
|
2061
|
+
"description": "What a decision node asks of its provider's evidence: none, whatever it gives, or some (a provider that gives none is refused before the run).",
|
|
2062
|
+
"enum": [
|
|
2063
|
+
"if_supported",
|
|
2064
|
+
"off",
|
|
2065
|
+
"required"
|
|
2066
|
+
],
|
|
2067
|
+
"type": "string",
|
|
2068
|
+
"title": "evidence"
|
|
2069
|
+
},
|
|
2070
|
+
"timeoutMs": {
|
|
2071
|
+
"type": "number",
|
|
2072
|
+
"title": "timeoutMs"
|
|
2073
|
+
},
|
|
2074
|
+
"images": {
|
|
2075
|
+
"description": "The images a decision node sends with its request: each key is a token (such as `\"<page1>\"`) that appears literally in\nthe node's `state` or in a question's text, and each value is a reference to the image, written as a `state` value is\n(`\"{item.pages.0.image}\"`, or a literal path), that resolves to a string the host loads (a run-relative file path).",
|
|
2076
|
+
"$ref": "#/definitions/DecisionImages",
|
|
2077
|
+
"title": "images"
|
|
1675
2078
|
}
|
|
1676
2079
|
},
|
|
1677
2080
|
"required": [
|
|
@@ -1681,20 +2084,19 @@
|
|
|
1681
2084
|
}
|
|
1682
2085
|
]
|
|
1683
2086
|
},
|
|
1684
|
-
"
|
|
1685
|
-
"
|
|
1686
|
-
"title": "CallRetryClass",
|
|
2087
|
+
"FieldType": {
|
|
2088
|
+
"title": "FieldType",
|
|
1687
2089
|
"enum": [
|
|
1688
|
-
"
|
|
1689
|
-
"
|
|
1690
|
-
"
|
|
1691
|
-
"
|
|
1692
|
-
"
|
|
2090
|
+
"array",
|
|
2091
|
+
"boolean",
|
|
2092
|
+
"null",
|
|
2093
|
+
"number",
|
|
2094
|
+
"object",
|
|
2095
|
+
"string"
|
|
1693
2096
|
],
|
|
1694
2097
|
"type": "string"
|
|
1695
2098
|
},
|
|
1696
2099
|
"AcceptPredicate": {
|
|
1697
|
-
"description": "A predicate a `call` evaluates against ITS OWN RESULT: paths are result-relative.",
|
|
1698
2100
|
"title": "AcceptPredicate",
|
|
1699
2101
|
"anyOf": [
|
|
1700
2102
|
{
|
|
@@ -1876,9 +2278,92 @@
|
|
|
1876
2278
|
"predicate",
|
|
1877
2279
|
"values"
|
|
1878
2280
|
]
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
"type": "object",
|
|
2284
|
+
"properties": {
|
|
2285
|
+
"predicate": {
|
|
2286
|
+
"type": "string",
|
|
2287
|
+
"const": "field_type",
|
|
2288
|
+
"title": "predicate"
|
|
2289
|
+
},
|
|
2290
|
+
"path": {
|
|
2291
|
+
"type": "string",
|
|
2292
|
+
"title": "path"
|
|
2293
|
+
},
|
|
2294
|
+
"type": {
|
|
2295
|
+
"$ref": "#/definitions/FieldType",
|
|
2296
|
+
"title": "type"
|
|
2297
|
+
}
|
|
2298
|
+
},
|
|
2299
|
+
"required": [
|
|
2300
|
+
"path",
|
|
2301
|
+
"predicate",
|
|
2302
|
+
"type"
|
|
2303
|
+
]
|
|
2304
|
+
},
|
|
2305
|
+
{
|
|
2306
|
+
"description": "Holds when a quote at `path` is in none of the page text at `pages`. `path` names a quote (a string) or a list of them;\nwith `field`, a list (or one record) of records, each holding its quote at `field`. Each of `pages` names a state value\nthis run wrote, a call's result most often: every string under it is page text.",
|
|
2307
|
+
"type": "object",
|
|
2308
|
+
"properties": {
|
|
2309
|
+
"predicate": {
|
|
2310
|
+
"type": "string",
|
|
2311
|
+
"const": "quote_missing",
|
|
2312
|
+
"title": "predicate"
|
|
2313
|
+
},
|
|
2314
|
+
"path": {
|
|
2315
|
+
"type": "string",
|
|
2316
|
+
"title": "path"
|
|
2317
|
+
},
|
|
2318
|
+
"field": {
|
|
2319
|
+
"type": "string",
|
|
2320
|
+
"title": "field"
|
|
2321
|
+
},
|
|
2322
|
+
"pages": {
|
|
2323
|
+
"type": "array",
|
|
2324
|
+
"items": {
|
|
2325
|
+
"type": "string"
|
|
2326
|
+
},
|
|
2327
|
+
"title": "pages"
|
|
2328
|
+
}
|
|
2329
|
+
},
|
|
2330
|
+
"required": [
|
|
2331
|
+
"pages",
|
|
2332
|
+
"path",
|
|
2333
|
+
"predicate"
|
|
2334
|
+
]
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
"$ref": "#/definitions/NotPredicate",
|
|
2338
|
+
"description": "Holds when `of` does not. `of` is mechanical: a judged question never sits inside a negation."
|
|
2339
|
+
}
|
|
2340
|
+
]
|
|
2341
|
+
},
|
|
2342
|
+
"NotPredicate": {
|
|
2343
|
+
"description": "Holds when `of` does not. `of` is mechanical: a judged question never sits inside a negation.",
|
|
2344
|
+
"title": "NotPredicate",
|
|
2345
|
+
"type": "object",
|
|
2346
|
+
"properties": {
|
|
2347
|
+
"predicate": {
|
|
2348
|
+
"type": "string",
|
|
2349
|
+
"const": "not",
|
|
2350
|
+
"title": "predicate"
|
|
2351
|
+
},
|
|
2352
|
+
"of": {
|
|
2353
|
+
"$ref": "#/definitions/AcceptPredicate",
|
|
2354
|
+
"title": "of"
|
|
1879
2355
|
}
|
|
2356
|
+
},
|
|
2357
|
+
"required": [
|
|
2358
|
+
"of",
|
|
2359
|
+
"predicate"
|
|
1880
2360
|
]
|
|
1881
2361
|
},
|
|
2362
|
+
"DecisionImages": {
|
|
2363
|
+
"description": "The images a decision node sends with its request: each key is a token (such as `\"<page1>\"`) that appears literally in\nthe node's `state` or in a question's text, and each value is a reference to the image, written as a `state` value is\n(`\"{item.pages.0.image}\"`, or a literal path), that resolves to a string the host loads (a run-relative file path).",
|
|
2364
|
+
"title": "DecisionImages",
|
|
2365
|
+
"type": "object"
|
|
2366
|
+
},
|
|
1882
2367
|
"Workflow": {
|
|
1883
2368
|
"title": "Workflow",
|
|
1884
2369
|
"type": "object",
|