@toolproof-npm/schema 0.1.81 → 0.1.83

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 (28) hide show
  1. package/dist/genesis/generated/dependencies_ordered.json +69 -21
  2. package/dist/genesis/generated/resourceTypes/Genesis.json +46 -76
  3. package/dist/genesis/generated/resources/Genesis.json +56 -96
  4. package/dist/genesis/generated/schemas/Genesis.json +104 -128
  5. package/dist/genesis/generated/schemas/RunRecording.d.ts +2 -0
  6. package/dist/genesis/generated/schemas/RunRecording.js +2 -0
  7. package/dist/genesis/generated/schemas/RunRecording.json +998 -0
  8. package/dist/genesis/generated/schemas/RunnableStrategy.d.ts +2 -0
  9. package/dist/genesis/generated/schemas/RunnableStrategy.js +2 -0
  10. package/dist/genesis/generated/schemas/{StrategyRun.json → RunnableStrategy.json} +21 -23
  11. package/dist/genesis/generated/schemas/StatefulStrategy.json +0 -2
  12. package/dist/genesis/generated/terminals.json +2 -1
  13. package/dist/genesis/generated/types/ResourceTypeGenesis.d.ts +5 -6
  14. package/dist/genesis/generated/types/Resource_RunnableStrategy.d.ts +3 -0
  15. package/dist/genesis/generated/types/types.d.ts +661 -209
  16. package/dist/index.d.ts +4 -3
  17. package/dist/index.js +2 -1
  18. package/package.json +2 -2
  19. package/dist/genesis/generated/resource-envelopes/Genesis.d.ts +0 -2
  20. package/dist/genesis/generated/resource-envelopes/Genesis.js +0 -2
  21. package/dist/genesis/generated/resource-envelopes/Genesis.json +0 -2337
  22. package/dist/genesis/generated/resource-type-envelopes/Genesis.d.ts +0 -2
  23. package/dist/genesis/generated/resource-type-envelopes/Genesis.js +0 -2
  24. package/dist/genesis/generated/resource-type-envelopes/Genesis.json +0 -1757
  25. package/dist/genesis/generated/schemas/StrategyRun.d.ts +0 -2
  26. package/dist/genesis/generated/schemas/StrategyRun.js +0 -2
  27. package/dist/genesis/generated/types/Resource_StrategyRun.d.ts +0 -3
  28. /package/dist/genesis/generated/types/{Resource_StrategyRun.js → Resource_RunnableStrategy.js} +0 -0
@@ -65,10 +65,6 @@
65
65
  "Error": [
66
66
  "Documented"
67
67
  ],
68
- "ExecutionSocketMaterialized": [
69
- "Resource",
70
- "ResourceRoleIdentity"
71
- ],
72
68
  "ForStepIdentity": [],
73
69
  "JobIdentity": [],
74
70
  "ResourceFormat": [
@@ -134,25 +130,41 @@
134
130
  "RolesWrapper",
135
131
  "JobIdentity"
136
132
  ],
133
+ "RunEventCounters": [],
134
+ "RunEventKind": [],
135
+ "RunEventStepKind": [],
136
+ "RunnableStrategyIdentity": [],
137
+ "RunnableStrategyStatus": [],
138
+ "RunnableStrategyContext": [
139
+ "Timestamp",
140
+ "RunnableStrategyStatus"
141
+ ],
137
142
  "StatefulStrategyIdentity": [],
138
143
  "StatelessStrategyIdentity": [],
139
144
  "StepKind": [],
140
- "StrategyRunIdentity": [],
141
- "StrategyRunStatus": [],
142
- "StrategyRunContext": [
143
- "Timestamp",
144
- "StrategyRunStatus"
145
- ],
146
145
  "StrategyState": [
147
146
  "ExecutionSocket",
148
147
  "ExecutionIdentity"
149
148
  ],
149
+ "StrategyStateDelta": [
150
+ "ExecutionSocket",
151
+ "ExecutionIdentity"
152
+ ],
150
153
  "StrategyStateWrapper": [
151
154
  "StrategyState"
152
155
  ],
153
156
  "StrategyThreadIdentity": [],
154
157
  "WhileStepIdentity": [],
155
158
  "WorkStepIdentity": [],
159
+ "RunEventStepMetaData": [
160
+ "ExecutionIdentity",
161
+ "JobIdentity",
162
+ "RunEventStepKind",
163
+ "WorkStepIdentity",
164
+ "BranchStepIdentity",
165
+ "WhileStepIdentity",
166
+ "ForStepIdentity"
167
+ ],
156
168
  "WorkStep": [
157
169
  "StepKind",
158
170
  "Execution",
@@ -182,6 +194,25 @@
182
194
  "WhileStep",
183
195
  "ForStep"
184
196
  ],
197
+ "RunEventUpdates": [
198
+ "StrategyStateDelta",
199
+ "Step"
200
+ ],
201
+ "RunEventBase": [
202
+ "RunEventCounters",
203
+ "Timestamp",
204
+ "RunEventKind",
205
+ "RunnableStrategyIdentity",
206
+ "RunEventStepMetaData",
207
+ "StrategyThreadIdentity",
208
+ "RunEventUpdates"
209
+ ],
210
+ "GraphEndRunEvent": [
211
+ "RunEventBase"
212
+ ],
213
+ "InterruptRunEvent": [
214
+ "RunEventBase"
215
+ ],
185
216
  "StatelessStrategy": [
186
217
  "StatelessStrategyIdentity",
187
218
  "Step"
@@ -201,18 +232,35 @@
201
232
  "StrategyThreadMapWrapper": [
202
233
  "StrategyThreadMap"
203
234
  ],
204
- "StrategyRun": [
235
+ "RunnableStrategy": [
205
236
  "StrategyThreadMapWrapper",
206
237
  "StrategyStateWrapper",
207
- "StrategyRunIdentity",
208
- "StatefulStrategyIdentity",
209
- "StrategyRunContext"
210
- ],
211
- "StrategyRunUpdate": [
212
- "StrategyRun",
213
- "StrategyRunIdentity",
214
- "ExecutionSocketMaterialized",
215
- "ExecutionIdentity",
216
- "ExecutionSocket"
238
+ "RunnableStrategyIdentity",
239
+ "RunnableStrategyContext",
240
+ "StatefulStrategyIdentity"
241
+ ],
242
+ "GraphStartRunEvent": [
243
+ "RunEventBase",
244
+ "RunnableStrategy"
245
+ ],
246
+ "RunnableStrategyUpdate": [
247
+ "StrategyStateDelta",
248
+ "RunnableStrategy",
249
+ "RunnableStrategyIdentity"
250
+ ],
251
+ "TickRunEvent": [
252
+ "RunEventBase"
253
+ ],
254
+ "RunEvent": [
255
+ "GraphStartRunEvent",
256
+ "TickRunEvent",
257
+ "InterruptRunEvent",
258
+ "GraphEndRunEvent"
259
+ ],
260
+ "RunRecording": [
261
+ "Timestamp",
262
+ "RunEvent",
263
+ "RunnableStrategyIdentity",
264
+ "StrategyThreadIdentity"
217
265
  ]
218
266
  }
@@ -1740,8 +1740,7 @@
1740
1740
  "statelessStrategy": {
1741
1741
  "$ref": "#/$defs/StatelessStrategy"
1742
1742
  }
1743
- },
1744
- "unevaluatedProperties": false
1743
+ }
1745
1744
  }
1746
1745
  },
1747
1746
  "ExecutionSocket": {
@@ -1775,24 +1774,6 @@
1775
1774
  "unevaluatedProperties": false
1776
1775
  }
1777
1776
  },
1778
- "ExecutionSocketMaterialized": {
1779
- "identity": "TYPE-ExecutionSocketMaterialized",
1780
- "name": "ExecutionSocketMaterialized",
1781
- "description": "dummy-description",
1782
- "resourceFormatRef": "FORMAT-ApplicationJson",
1783
- "extractionSchema": {
1784
- "$anchor": "ExecutionSocketMaterialized",
1785
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1786
- "type": "object",
1787
- "propertyNames": {
1788
- "$ref": "#/$defs/ResourceRoleIdentity"
1789
- },
1790
- "additionalProperties": {
1791
- "$ref": "#/$defs/Resource"
1792
- },
1793
- "unevaluatedProperties": false
1794
- }
1795
- },
1796
1777
  "StrategyState": {
1797
1778
  "identity": "TYPE-StrategyState",
1798
1779
  "name": "StrategyState",
@@ -1826,8 +1807,7 @@
1826
1807
  "strategyState": {
1827
1808
  "$ref": "#/$defs/StrategyState"
1828
1809
  }
1829
- },
1830
- "unevaluatedProperties": false
1810
+ }
1831
1811
  }
1832
1812
  },
1833
1813
  "StatefulStrategyIdentity": {
@@ -1870,25 +1850,25 @@
1870
1850
  "unevaluatedProperties": false
1871
1851
  }
1872
1852
  },
1873
- "StrategyRunIdentity": {
1874
- "identity": "TYPE-StrategyRunIdentity",
1875
- "name": "StrategyRunIdentity",
1853
+ "RunnableStrategyIdentity": {
1854
+ "identity": "TYPE-RunnableStrategyIdentity",
1855
+ "name": "RunnableStrategyIdentity",
1876
1856
  "description": "dummy-description",
1877
1857
  "resourceFormatRef": "FORMAT-ApplicationJson",
1878
1858
  "extractionSchema": {
1879
- "$anchor": "StrategyRunIdentity",
1859
+ "$anchor": "RunnableStrategyIdentity",
1880
1860
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1881
1861
  "type": "string",
1882
- "pattern": "^STRATEGY_RUN-.+$"
1862
+ "pattern": "^RUNNABLE_STRATEGY-.+$"
1883
1863
  }
1884
1864
  },
1885
- "StrategyRunStatus": {
1886
- "identity": "TYPE-StrategyRunStatus",
1887
- "name": "StrategyRunStatus",
1865
+ "RunnableStrategyStatus": {
1866
+ "identity": "TYPE-RunnableStrategyStatus",
1867
+ "name": "RunnableStrategyStatus",
1888
1868
  "description": "dummy-description",
1889
1869
  "resourceFormatRef": "FORMAT-ApplicationJson",
1890
1870
  "extractionSchema": {
1891
- "$anchor": "StrategyRunStatus",
1871
+ "$anchor": "RunnableStrategyStatus",
1892
1872
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1893
1873
  "type": "string",
1894
1874
  "enum": [
@@ -1900,13 +1880,13 @@
1900
1880
  ]
1901
1881
  }
1902
1882
  },
1903
- "StrategyRunContext": {
1904
- "identity": "TYPE-StrategyRunContext",
1905
- "name": "StrategyRunContext",
1883
+ "RunnableStrategyContext": {
1884
+ "identity": "TYPE-RunnableStrategyContext",
1885
+ "name": "RunnableStrategyContext",
1906
1886
  "description": "dummy-description",
1907
1887
  "resourceFormatRef": "FORMAT-ApplicationJson",
1908
1888
  "extractionSchema": {
1909
- "$anchor": "StrategyRunContext",
1889
+ "$anchor": "RunnableStrategyContext",
1910
1890
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1911
1891
  "type": "object",
1912
1892
  "required": [
@@ -1914,7 +1894,7 @@
1914
1894
  ],
1915
1895
  "properties": {
1916
1896
  "status": {
1917
- "$ref": "#/$defs/StrategyRunStatus"
1897
+ "$ref": "#/$defs/RunnableStrategyStatus"
1918
1898
  },
1919
1899
  "startedAt": {
1920
1900
  "$ref": "#/$defs/Timestamp"
@@ -1975,33 +1955,32 @@
1975
1955
  "strategyThreadMap": {
1976
1956
  "$ref": "#/$defs/StrategyThreadMap"
1977
1957
  }
1978
- },
1979
- "unevaluatedProperties": false
1958
+ }
1980
1959
  }
1981
1960
  },
1982
- "StrategyRun": {
1983
- "identity": "TYPE-StrategyRun",
1984
- "name": "StrategyRun",
1961
+ "RunnableStrategy": {
1962
+ "identity": "TYPE-RunnableStrategy",
1963
+ "name": "RunnableStrategy",
1985
1964
  "description": "dummy-description",
1986
1965
  "resourceFormatRef": "FORMAT-ApplicationJson",
1987
1966
  "extractionSchema": {
1988
- "$anchor": "StrategyRun",
1967
+ "$anchor": "RunnableStrategy",
1989
1968
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1990
1969
  "type": "object",
1991
1970
  "required": [
1992
1971
  "identity",
1993
1972
  "statefulStrategyRef",
1994
- "strategyRunContext"
1973
+ "runnableStrategyContext"
1995
1974
  ],
1996
1975
  "properties": {
1997
1976
  "identity": {
1998
- "$ref": "#/$defs/StrategyRunIdentity"
1977
+ "$ref": "#/$defs/RunnableStrategyIdentity"
1999
1978
  },
2000
1979
  "statefulStrategyRef": {
2001
1980
  "$ref": "#/$defs/StatefulStrategyIdentity"
2002
1981
  },
2003
- "strategyRunContext": {
2004
- "$ref": "#/$defs/StrategyRunContext"
1982
+ "runnableStrategyContext": {
1983
+ "$ref": "#/$defs/RunnableStrategyContext"
2005
1984
  }
2006
1985
  },
2007
1986
  "allOf": [
@@ -2010,7 +1989,7 @@
2010
1989
  "$ref": "#/$defs/StrategyThreadMapWrapper"
2011
1990
  },
2012
1991
  {
2013
- "$comment": "Reusing StrategyStateWrapper to include the strategy state in the StrategyRun. The Engine will update it with materialized Resources (i.e. runtime-provided inputs and job-created outputs) during the run.",
1992
+ "$comment": "Reusing StrategyStateWrapper to include the strategy state in the RunnableStrategy. The Engine will update it with materialized Resources (i.e. runtime-provided inputs and job-created outputs) during the run.",
2014
1993
  "$ref": "#/$defs/StrategyStateWrapper"
2015
1994
  }
2016
1995
  ],
@@ -2029,16 +2008,6 @@
2029
2008
  "$comment": "Shared delta payload for strategy state updates; used both as standalone updates and embedded within run events.",
2030
2009
  "properties": {
2031
2010
  "strategyStateUpdate": {
2032
- "type": "object",
2033
- "propertyNames": {
2034
- "$ref": "#/$defs/ExecutionIdentity"
2035
- },
2036
- "additionalProperties": {
2037
- "$ref": "#/$defs/ExecutionSocketMaterialized"
2038
- },
2039
- "unevaluatedProperties": false
2040
- },
2041
- "strategyStateUpdateWide": {
2042
2011
  "type": "object",
2043
2012
  "propertyNames": {
2044
2013
  "$ref": "#/$defs/ExecutionIdentity"
@@ -2051,26 +2020,26 @@
2051
2020
  }
2052
2021
  }
2053
2022
  },
2054
- "StrategyRunUpdate": {
2055
- "identity": "TYPE-StrategyRunUpdate",
2056
- "name": "StrategyRunUpdate",
2023
+ "RunnableStrategyUpdate": {
2024
+ "identity": "TYPE-RunnableStrategyUpdate",
2025
+ "name": "RunnableStrategyUpdate",
2057
2026
  "description": "dummy-description",
2058
2027
  "resourceFormatRef": "FORMAT-ApplicationJson",
2059
2028
  "extractionSchema": {
2060
- "$anchor": "StrategyRunUpdate",
2029
+ "$anchor": "RunnableStrategyUpdate",
2061
2030
  "$schema": "https://json-schema.org/draft/2020-12/schema",
2062
2031
  "type": "object",
2063
2032
  "required": [
2064
- "strategyRunRef",
2033
+ "runnableStrategyRef",
2065
2034
  "strategyStateUpdate"
2066
2035
  ],
2067
2036
  "properties": {
2068
- "strategyRunRef": {
2069
- "$ref": "#/$defs/StrategyRunIdentity"
2037
+ "runnableStrategyRef": {
2038
+ "$ref": "#/$defs/RunnableStrategyIdentity"
2070
2039
  },
2071
- "strategyRun": {
2072
- "$comment": "Optional embedded snapshot; strategyRunRef remains the canonical pointer.",
2073
- "$ref": "#/$defs/StrategyRun"
2040
+ "runnableStrategy": {
2041
+ "$comment": "Optional embedded snapshot; runnableStrategyRef remains the canonical pointer.",
2042
+ "$ref": "#/$defs/RunnableStrategy"
2074
2043
  }
2075
2044
  },
2076
2045
  "allOf": [
@@ -2234,7 +2203,7 @@
2234
2203
  "type": "object",
2235
2204
  "required": [
2236
2205
  "kind",
2237
- "strategyRunRef",
2206
+ "runnableStrategyRef",
2238
2207
  "strategyThreadRef",
2239
2208
  "createdAt",
2240
2209
  "nodeName",
@@ -2244,8 +2213,8 @@
2244
2213
  "kind": {
2245
2214
  "$ref": "#/$defs/RunEventKind"
2246
2215
  },
2247
- "strategyRunRef": {
2248
- "$ref": "#/$defs/StrategyRunIdentity"
2216
+ "runnableStrategyRef": {
2217
+ "$ref": "#/$defs/RunnableStrategyIdentity"
2249
2218
  },
2250
2219
  "strategyThreadRef": {
2251
2220
  "$ref": "#/$defs/StrategyThreadIdentity"
@@ -2286,14 +2255,14 @@
2286
2255
  {
2287
2256
  "type": "object",
2288
2257
  "required": [
2289
- "strategyRunSeed"
2258
+ "runnableStrategySeed"
2290
2259
  ],
2291
2260
  "properties": {
2292
2261
  "kind": {
2293
2262
  "const": "graph_start"
2294
2263
  },
2295
- "strategyRunSeed": {
2296
- "$ref": "#/$defs/StrategyRun"
2264
+ "runnableStrategySeed": {
2265
+ "$ref": "#/$defs/RunnableStrategy"
2297
2266
  }
2298
2267
  }
2299
2268
  }
@@ -2406,9 +2375,9 @@
2406
2375
  "runEvents"
2407
2376
  ],
2408
2377
  "properties": {
2409
- "strategyRunRef": {
2378
+ "runnableStrategyRef": {
2410
2379
  "$comment": "Optional; derived from the first event but useful for indexing.",
2411
- "$ref": "#/$defs/StrategyRunIdentity"
2380
+ "$ref": "#/$defs/RunnableStrategyIdentity"
2412
2381
  },
2413
2382
  "strategyThreadRef": {
2414
2383
  "$comment": "Optional; derived from the first event but useful for indexing.",
@@ -2424,7 +2393,8 @@
2424
2393
  "$ref": "#/$defs/RunEvent"
2425
2394
  }
2426
2395
  }
2427
- }
2396
+ },
2397
+ "unevaluatedProperties": false
2428
2398
  }
2429
2399
  }
2430
2400
  }