@toolproof-npm/schema 0.1.82 → 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.
- package/dist/genesis/generated/dependencies_ordered.json +18 -23
- package/dist/genesis/generated/resourceTypes/Genesis.json +41 -69
- package/dist/genesis/generated/resources/Genesis.json +51 -89
- package/dist/genesis/generated/schemas/Genesis.json +103 -125
- package/dist/genesis/generated/schemas/RunRecording.json +123 -145
- package/dist/genesis/generated/schemas/RunnableStrategy.d.ts +2 -0
- package/dist/genesis/generated/schemas/RunnableStrategy.js +2 -0
- package/dist/genesis/generated/schemas/{StrategyRun.json → RunnableStrategy.json} +21 -21
- package/dist/genesis/generated/terminals.json +1 -1
- package/dist/genesis/generated/types/ResourceTypeGenesis.d.ts +5 -6
- package/dist/genesis/generated/types/Resource_RunnableStrategy.d.ts +3 -0
- package/dist/genesis/generated/types/types.d.ts +274 -286
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/genesis/generated/resource-envelopes/Genesis.d.ts +0 -2
- package/dist/genesis/generated/resource-envelopes/Genesis.js +0 -2
- package/dist/genesis/generated/resource-envelopes/Genesis.json +0 -2337
- package/dist/genesis/generated/resource-type-envelopes/Genesis.d.ts +0 -2
- package/dist/genesis/generated/resource-type-envelopes/Genesis.js +0 -2
- package/dist/genesis/generated/resource-type-envelopes/Genesis.json +0 -1757
- package/dist/genesis/generated/schemas/StrategyRun.d.ts +0 -2
- package/dist/genesis/generated/schemas/StrategyRun.js +0 -2
- package/dist/genesis/generated/types/Resource_StrategyRun.d.ts +0 -3
- /package/dist/genesis/generated/types/{Resource_StrategyRun.js → Resource_RunnableStrategy.js} +0 -0
|
@@ -188,18 +188,6 @@
|
|
|
188
188
|
"$ref": "#/$defs/ResourceRoleIdentity"
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
|
-
"ExecutionSocketMaterialized": {
|
|
192
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
193
|
-
"type": "object",
|
|
194
|
-
"additionalProperties": {
|
|
195
|
-
"$ref": "#/$defs/Resource"
|
|
196
|
-
},
|
|
197
|
-
"unevaluatedProperties": false,
|
|
198
|
-
"$anchor": "ExecutionSocketMaterialized",
|
|
199
|
-
"propertyNames": {
|
|
200
|
-
"$ref": "#/$defs/ResourceRoleIdentity"
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
191
|
"ExtractionSchema": {
|
|
204
192
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
205
193
|
"type": "object",
|
|
@@ -403,12 +391,12 @@
|
|
|
403
391
|
"kind": {
|
|
404
392
|
"const": "graph_start"
|
|
405
393
|
},
|
|
406
|
-
"
|
|
407
|
-
"$ref": "#/$defs/
|
|
394
|
+
"runnableStrategySeed": {
|
|
395
|
+
"$ref": "#/$defs/RunnableStrategy"
|
|
408
396
|
}
|
|
409
397
|
},
|
|
410
398
|
"required": [
|
|
411
|
-
"
|
|
399
|
+
"runnableStrategySeed"
|
|
412
400
|
]
|
|
413
401
|
}
|
|
414
402
|
],
|
|
@@ -1373,12 +1361,12 @@
|
|
|
1373
1361
|
"nodeName": {
|
|
1374
1362
|
"type": "string"
|
|
1375
1363
|
},
|
|
1364
|
+
"runnableStrategyRef": {
|
|
1365
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
1366
|
+
},
|
|
1376
1367
|
"stepMetaData": {
|
|
1377
1368
|
"$ref": "#/$defs/RunEventStepMetaData"
|
|
1378
1369
|
},
|
|
1379
|
-
"strategyRunRef": {
|
|
1380
|
-
"$ref": "#/$defs/StrategyRunIdentity"
|
|
1381
|
-
},
|
|
1382
1370
|
"strategyThreadRef": {
|
|
1383
1371
|
"$ref": "#/$defs/StrategyThreadIdentity"
|
|
1384
1372
|
},
|
|
@@ -1388,7 +1376,7 @@
|
|
|
1388
1376
|
},
|
|
1389
1377
|
"required": [
|
|
1390
1378
|
"kind",
|
|
1391
|
-
"
|
|
1379
|
+
"runnableStrategyRef",
|
|
1392
1380
|
"strategyThreadRef",
|
|
1393
1381
|
"createdAt",
|
|
1394
1382
|
"nodeName",
|
|
@@ -1522,9 +1510,9 @@
|
|
|
1522
1510
|
"$ref": "#/$defs/RunEvent"
|
|
1523
1511
|
}
|
|
1524
1512
|
},
|
|
1525
|
-
"
|
|
1513
|
+
"runnableStrategyRef": {
|
|
1526
1514
|
"$comment": "Optional; derived from the first event but useful for indexing.",
|
|
1527
|
-
"$ref": "#/$defs/
|
|
1515
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
1528
1516
|
},
|
|
1529
1517
|
"strategyThreadRef": {
|
|
1530
1518
|
"$comment": "Optional; derived from the first event but useful for indexing.",
|
|
@@ -1537,6 +1525,100 @@
|
|
|
1537
1525
|
"unevaluatedProperties": false,
|
|
1538
1526
|
"$anchor": "RunRecording"
|
|
1539
1527
|
},
|
|
1528
|
+
"RunnableStrategy": {
|
|
1529
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1530
|
+
"type": "object",
|
|
1531
|
+
"allOf": [
|
|
1532
|
+
{
|
|
1533
|
+
"$comment": "The Engine will convert the statelessStrategy.steps array of the referenced StatefulStrategy into this map before the run. This is to allow jobs that do not depend on previous-step inputs to run in parallel.The Engine will also inject internal steps to prompt for runtime-provided inputs and handle other orchestration tasks such as repeted steps when encountering a loop.",
|
|
1534
|
+
"$ref": "#/$defs/StrategyThreadMapWrapper"
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
"$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.",
|
|
1538
|
+
"$ref": "#/$defs/StrategyStateWrapper"
|
|
1539
|
+
}
|
|
1540
|
+
],
|
|
1541
|
+
"properties": {
|
|
1542
|
+
"identity": {
|
|
1543
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
1544
|
+
},
|
|
1545
|
+
"runnableStrategyContext": {
|
|
1546
|
+
"$ref": "#/$defs/RunnableStrategyContext"
|
|
1547
|
+
},
|
|
1548
|
+
"statefulStrategyRef": {
|
|
1549
|
+
"$ref": "#/$defs/StatefulStrategyIdentity"
|
|
1550
|
+
}
|
|
1551
|
+
},
|
|
1552
|
+
"required": [
|
|
1553
|
+
"identity",
|
|
1554
|
+
"statefulStrategyRef",
|
|
1555
|
+
"runnableStrategyContext"
|
|
1556
|
+
],
|
|
1557
|
+
"unevaluatedProperties": false,
|
|
1558
|
+
"$anchor": "RunnableStrategy"
|
|
1559
|
+
},
|
|
1560
|
+
"RunnableStrategyContext": {
|
|
1561
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1562
|
+
"type": "object",
|
|
1563
|
+
"properties": {
|
|
1564
|
+
"completedAt": {
|
|
1565
|
+
"$ref": "#/$defs/Timestamp"
|
|
1566
|
+
},
|
|
1567
|
+
"startedAt": {
|
|
1568
|
+
"$ref": "#/$defs/Timestamp"
|
|
1569
|
+
},
|
|
1570
|
+
"status": {
|
|
1571
|
+
"$ref": "#/$defs/RunnableStrategyStatus"
|
|
1572
|
+
}
|
|
1573
|
+
},
|
|
1574
|
+
"required": [
|
|
1575
|
+
"status"
|
|
1576
|
+
],
|
|
1577
|
+
"unevaluatedProperties": false,
|
|
1578
|
+
"$anchor": "RunnableStrategyContext"
|
|
1579
|
+
},
|
|
1580
|
+
"RunnableStrategyIdentity": {
|
|
1581
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1582
|
+
"type": "string",
|
|
1583
|
+
"$anchor": "RunnableStrategyIdentity",
|
|
1584
|
+
"pattern": "^RUNNABLE_STRATEGY-.+$"
|
|
1585
|
+
},
|
|
1586
|
+
"RunnableStrategyStatus": {
|
|
1587
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1588
|
+
"type": "string",
|
|
1589
|
+
"$anchor": "RunnableStrategyStatus",
|
|
1590
|
+
"enum": [
|
|
1591
|
+
"pending",
|
|
1592
|
+
"running",
|
|
1593
|
+
"completed",
|
|
1594
|
+
"failed",
|
|
1595
|
+
"cancelled"
|
|
1596
|
+
]
|
|
1597
|
+
},
|
|
1598
|
+
"RunnableStrategyUpdate": {
|
|
1599
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1600
|
+
"type": "object",
|
|
1601
|
+
"allOf": [
|
|
1602
|
+
{
|
|
1603
|
+
"$ref": "#/$defs/StrategyStateDelta"
|
|
1604
|
+
}
|
|
1605
|
+
],
|
|
1606
|
+
"properties": {
|
|
1607
|
+
"runnableStrategy": {
|
|
1608
|
+
"$comment": "Optional embedded snapshot; runnableStrategyRef remains the canonical pointer.",
|
|
1609
|
+
"$ref": "#/$defs/RunnableStrategy"
|
|
1610
|
+
},
|
|
1611
|
+
"runnableStrategyRef": {
|
|
1612
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
1613
|
+
}
|
|
1614
|
+
},
|
|
1615
|
+
"required": [
|
|
1616
|
+
"runnableStrategyRef",
|
|
1617
|
+
"strategyStateUpdate"
|
|
1618
|
+
],
|
|
1619
|
+
"unevaluatedProperties": false,
|
|
1620
|
+
"$anchor": "RunnableStrategyUpdate"
|
|
1621
|
+
},
|
|
1540
1622
|
"StatefulStrategy": {
|
|
1541
1623
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1542
1624
|
"type": "object",
|
|
@@ -1645,100 +1727,6 @@
|
|
|
1645
1727
|
],
|
|
1646
1728
|
"$anchor": "StepKind"
|
|
1647
1729
|
},
|
|
1648
|
-
"StrategyRun": {
|
|
1649
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1650
|
-
"type": "object",
|
|
1651
|
-
"allOf": [
|
|
1652
|
-
{
|
|
1653
|
-
"$comment": "The Engine will convert the statelessStrategy.steps array of the referenced StatefulStrategy into this map before the run. This is to allow jobs that do not depend on previous-step inputs to run in parallel.The Engine will also inject internal steps to prompt for runtime-provided inputs and handle other orchestration tasks such as repeted steps when encountering a loop.",
|
|
1654
|
-
"$ref": "#/$defs/StrategyThreadMapWrapper"
|
|
1655
|
-
},
|
|
1656
|
-
{
|
|
1657
|
-
"$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.",
|
|
1658
|
-
"$ref": "#/$defs/StrategyStateWrapper"
|
|
1659
|
-
}
|
|
1660
|
-
],
|
|
1661
|
-
"properties": {
|
|
1662
|
-
"identity": {
|
|
1663
|
-
"$ref": "#/$defs/StrategyRunIdentity"
|
|
1664
|
-
},
|
|
1665
|
-
"statefulStrategyRef": {
|
|
1666
|
-
"$ref": "#/$defs/StatefulStrategyIdentity"
|
|
1667
|
-
},
|
|
1668
|
-
"strategyRunContext": {
|
|
1669
|
-
"$ref": "#/$defs/StrategyRunContext"
|
|
1670
|
-
}
|
|
1671
|
-
},
|
|
1672
|
-
"required": [
|
|
1673
|
-
"identity",
|
|
1674
|
-
"statefulStrategyRef",
|
|
1675
|
-
"strategyRunContext"
|
|
1676
|
-
],
|
|
1677
|
-
"unevaluatedProperties": false,
|
|
1678
|
-
"$anchor": "StrategyRun"
|
|
1679
|
-
},
|
|
1680
|
-
"StrategyRunContext": {
|
|
1681
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1682
|
-
"type": "object",
|
|
1683
|
-
"properties": {
|
|
1684
|
-
"completedAt": {
|
|
1685
|
-
"$ref": "#/$defs/Timestamp"
|
|
1686
|
-
},
|
|
1687
|
-
"startedAt": {
|
|
1688
|
-
"$ref": "#/$defs/Timestamp"
|
|
1689
|
-
},
|
|
1690
|
-
"status": {
|
|
1691
|
-
"$ref": "#/$defs/StrategyRunStatus"
|
|
1692
|
-
}
|
|
1693
|
-
},
|
|
1694
|
-
"required": [
|
|
1695
|
-
"status"
|
|
1696
|
-
],
|
|
1697
|
-
"unevaluatedProperties": false,
|
|
1698
|
-
"$anchor": "StrategyRunContext"
|
|
1699
|
-
},
|
|
1700
|
-
"StrategyRunIdentity": {
|
|
1701
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1702
|
-
"type": "string",
|
|
1703
|
-
"$anchor": "StrategyRunIdentity",
|
|
1704
|
-
"pattern": "^STRATEGY_RUN-.+$"
|
|
1705
|
-
},
|
|
1706
|
-
"StrategyRunStatus": {
|
|
1707
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1708
|
-
"type": "string",
|
|
1709
|
-
"$anchor": "StrategyRunStatus",
|
|
1710
|
-
"enum": [
|
|
1711
|
-
"pending",
|
|
1712
|
-
"running",
|
|
1713
|
-
"completed",
|
|
1714
|
-
"failed",
|
|
1715
|
-
"cancelled"
|
|
1716
|
-
]
|
|
1717
|
-
},
|
|
1718
|
-
"StrategyRunUpdate": {
|
|
1719
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1720
|
-
"type": "object",
|
|
1721
|
-
"allOf": [
|
|
1722
|
-
{
|
|
1723
|
-
"$ref": "#/$defs/StrategyStateDelta"
|
|
1724
|
-
}
|
|
1725
|
-
],
|
|
1726
|
-
"properties": {
|
|
1727
|
-
"strategyRun": {
|
|
1728
|
-
"$comment": "Optional embedded snapshot; strategyRunRef remains the canonical pointer.",
|
|
1729
|
-
"$ref": "#/$defs/StrategyRun"
|
|
1730
|
-
},
|
|
1731
|
-
"strategyRunRef": {
|
|
1732
|
-
"$ref": "#/$defs/StrategyRunIdentity"
|
|
1733
|
-
}
|
|
1734
|
-
},
|
|
1735
|
-
"required": [
|
|
1736
|
-
"strategyRunRef",
|
|
1737
|
-
"strategyStateUpdate"
|
|
1738
|
-
],
|
|
1739
|
-
"unevaluatedProperties": false,
|
|
1740
|
-
"$anchor": "StrategyRunUpdate"
|
|
1741
|
-
},
|
|
1742
1730
|
"StrategyState": {
|
|
1743
1731
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1744
1732
|
"type": "object",
|
|
@@ -1755,16 +1743,6 @@
|
|
|
1755
1743
|
"type": "object",
|
|
1756
1744
|
"properties": {
|
|
1757
1745
|
"strategyStateUpdate": {
|
|
1758
|
-
"type": "object",
|
|
1759
|
-
"additionalProperties": {
|
|
1760
|
-
"$ref": "#/$defs/ExecutionSocketMaterialized"
|
|
1761
|
-
},
|
|
1762
|
-
"unevaluatedProperties": false,
|
|
1763
|
-
"propertyNames": {
|
|
1764
|
-
"$ref": "#/$defs/ExecutionIdentity"
|
|
1765
|
-
}
|
|
1766
|
-
},
|
|
1767
|
-
"strategyStateUpdateWide": {
|
|
1768
1746
|
"type": "object",
|
|
1769
1747
|
"additionalProperties": {
|
|
1770
1748
|
"$ref": "#/$defs/ExecutionSocket"
|