cwtools-shared 0.2.8 → 0.3.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.
@@ -39,7 +39,8 @@ exports.GENERATED_MCP_TOOLS = [
39
39
  "isReadOnly": true,
40
40
  "effect": "workspace_read",
41
41
  "riskLevel": 0,
42
- "concurrencyClass": "parallel"
42
+ "concurrencyClass": "parallel",
43
+ "mcpSupportsCwtOnly": false
43
44
  }
44
45
  },
45
46
  {
@@ -79,7 +80,8 @@ exports.GENERATED_MCP_TOOLS = [
79
80
  "isReadOnly": true,
80
81
  "effect": "workspace_read",
81
82
  "riskLevel": 0,
82
- "concurrencyClass": "parallel"
83
+ "concurrencyClass": "parallel",
84
+ "mcpSupportsCwtOnly": false
83
85
  }
84
86
  },
85
87
  {
@@ -123,7 +125,8 @@ exports.GENERATED_MCP_TOOLS = [
123
125
  "isReadOnly": true,
124
126
  "effect": "workspace_read",
125
127
  "riskLevel": 0,
126
- "concurrencyClass": "parallel"
128
+ "concurrencyClass": "parallel",
129
+ "mcpSupportsCwtOnly": false
127
130
  }
128
131
  },
129
132
  {
@@ -170,7 +173,8 @@ exports.GENERATED_MCP_TOOLS = [
170
173
  "isReadOnly": true,
171
174
  "effect": "workspace_read",
172
175
  "riskLevel": 0,
173
- "concurrencyClass": "parallel"
176
+ "concurrencyClass": "parallel",
177
+ "mcpSupportsCwtOnly": false
174
178
  }
175
179
  },
176
180
  {
@@ -196,7 +200,8 @@ exports.GENERATED_MCP_TOOLS = [
196
200
  "isReadOnly": true,
197
201
  "effect": "workspace_read",
198
202
  "riskLevel": 0,
199
- "concurrencyClass": "parallel"
203
+ "concurrencyClass": "parallel",
204
+ "mcpSupportsCwtOnly": false
200
205
  }
201
206
  },
202
207
  {
@@ -222,7 +227,8 @@ exports.GENERATED_MCP_TOOLS = [
222
227
  "isReadOnly": true,
223
228
  "effect": "workspace_read",
224
229
  "riskLevel": 0,
225
- "concurrencyClass": "parallel"
230
+ "concurrencyClass": "parallel",
231
+ "mcpSupportsCwtOnly": false
226
232
  }
227
233
  },
228
234
  {
@@ -261,7 +267,8 @@ exports.GENERATED_MCP_TOOLS = [
261
267
  "isReadOnly": true,
262
268
  "effect": "workspace_read",
263
269
  "riskLevel": 0,
264
- "concurrencyClass": "parallel"
270
+ "concurrencyClass": "parallel",
271
+ "mcpSupportsCwtOnly": false
265
272
  }
266
273
  },
267
274
  {
@@ -300,7 +307,8 @@ exports.GENERATED_MCP_TOOLS = [
300
307
  "isReadOnly": true,
301
308
  "effect": "workspace_read",
302
309
  "riskLevel": 0,
303
- "concurrencyClass": "lsp-limited"
310
+ "concurrencyClass": "lsp-limited",
311
+ "mcpSupportsCwtOnly": true
304
312
  }
305
313
  },
306
314
  {
@@ -348,7 +356,8 @@ exports.GENERATED_MCP_TOOLS = [
348
356
  "isReadOnly": true,
349
357
  "effect": "none",
350
358
  "riskLevel": 2,
351
- "concurrencyClass": "global-exclusive"
359
+ "concurrencyClass": "global-exclusive",
360
+ "mcpSupportsCwtOnly": true
352
361
  }
353
362
  },
354
363
  {
@@ -398,7 +407,8 @@ exports.GENERATED_MCP_TOOLS = [
398
407
  "isReadOnly": true,
399
408
  "effect": "workspace_read",
400
409
  "riskLevel": 0,
401
- "concurrencyClass": "parallel"
410
+ "concurrencyClass": "parallel",
411
+ "mcpSupportsCwtOnly": false
402
412
  }
403
413
  },
404
414
  {
@@ -469,7 +479,8 @@ exports.GENERATED_MCP_TOOLS = [
469
479
  "isReadOnly": true,
470
480
  "effect": "workspace_read",
471
481
  "riskLevel": 0,
472
- "concurrencyClass": "parallel"
482
+ "concurrencyClass": "parallel",
483
+ "mcpSupportsCwtOnly": false
473
484
  }
474
485
  },
475
486
  {
@@ -543,7 +554,8 @@ exports.GENERATED_MCP_TOOLS = [
543
554
  "isReadOnly": true,
544
555
  "effect": "workspace_read",
545
556
  "riskLevel": 0,
546
- "concurrencyClass": "parallel"
557
+ "concurrencyClass": "parallel",
558
+ "mcpSupportsCwtOnly": false
547
559
  }
548
560
  },
549
561
  {
@@ -612,7 +624,8 @@ exports.GENERATED_MCP_TOOLS = [
612
624
  "isReadOnly": true,
613
625
  "effect": "workspace_read",
614
626
  "riskLevel": 0,
615
- "concurrencyClass": "lsp-limited"
627
+ "concurrencyClass": "lsp-limited",
628
+ "mcpSupportsCwtOnly": false
616
629
  }
617
630
  },
618
631
  {
@@ -648,7 +661,8 @@ exports.GENERATED_MCP_TOOLS = [
648
661
  "isReadOnly": true,
649
662
  "effect": "workspace_read",
650
663
  "riskLevel": 0,
651
- "concurrencyClass": "lsp-limited"
664
+ "concurrencyClass": "lsp-limited",
665
+ "mcpSupportsCwtOnly": false
652
666
  }
653
667
  },
654
668
  {
@@ -684,7 +698,8 @@ exports.GENERATED_MCP_TOOLS = [
684
698
  "isReadOnly": true,
685
699
  "effect": "workspace_read",
686
700
  "riskLevel": 0,
687
- "concurrencyClass": "lsp-limited"
701
+ "concurrencyClass": "lsp-limited",
702
+ "mcpSupportsCwtOnly": false
688
703
  }
689
704
  },
690
705
  {
@@ -715,7 +730,8 @@ exports.GENERATED_MCP_TOOLS = [
715
730
  "isReadOnly": true,
716
731
  "effect": "workspace_read",
717
732
  "riskLevel": 0,
718
- "concurrencyClass": "lsp-limited"
733
+ "concurrencyClass": "lsp-limited",
734
+ "mcpSupportsCwtOnly": false
719
735
  }
720
736
  },
721
737
  {
@@ -925,7 +941,8 @@ exports.GENERATED_MCP_TOOLS = [
925
941
  "isReadOnly": true,
926
942
  "effect": "workspace_read",
927
943
  "riskLevel": 0,
928
- "concurrencyClass": "parallel"
944
+ "concurrencyClass": "parallel",
945
+ "mcpSupportsCwtOnly": false
929
946
  }
930
947
  },
931
948
  {
@@ -989,7 +1006,8 @@ exports.GENERATED_MCP_TOOLS = [
989
1006
  "isReadOnly": true,
990
1007
  "effect": "workspace_read",
991
1008
  "riskLevel": 0,
992
- "concurrencyClass": "parallel"
1009
+ "concurrencyClass": "parallel",
1010
+ "mcpSupportsCwtOnly": false
993
1011
  }
994
1012
  },
995
1013
  {
@@ -1020,7 +1038,8 @@ exports.GENERATED_MCP_TOOLS = [
1020
1038
  "isReadOnly": true,
1021
1039
  "effect": "workspace_read",
1022
1040
  "riskLevel": 0,
1023
- "concurrencyClass": "parallel"
1041
+ "concurrencyClass": "parallel",
1042
+ "mcpSupportsCwtOnly": false
1024
1043
  }
1025
1044
  },
1026
1045
  {
@@ -1060,7 +1079,8 @@ exports.GENERATED_MCP_TOOLS = [
1060
1079
  "isReadOnly": true,
1061
1080
  "effect": "workspace_read",
1062
1081
  "riskLevel": 0,
1063
- "concurrencyClass": "parallel"
1082
+ "concurrencyClass": "parallel",
1083
+ "mcpSupportsCwtOnly": true
1064
1084
  }
1065
1085
  },
1066
1086
  {
@@ -1086,7 +1106,8 @@ exports.GENERATED_MCP_TOOLS = [
1086
1106
  "isReadOnly": true,
1087
1107
  "effect": "workspace_read",
1088
1108
  "riskLevel": 0,
1089
- "concurrencyClass": "lsp-limited"
1109
+ "concurrencyClass": "lsp-limited",
1110
+ "mcpSupportsCwtOnly": true
1090
1111
  }
1091
1112
  },
1092
1113
  {
@@ -1116,7 +1137,8 @@ exports.GENERATED_MCP_TOOLS = [
1116
1137
  "isReadOnly": true,
1117
1138
  "effect": "workspace_read",
1118
1139
  "riskLevel": 0,
1119
- "concurrencyClass": "lsp-limited"
1140
+ "concurrencyClass": "lsp-limited",
1141
+ "mcpSupportsCwtOnly": true
1120
1142
  }
1121
1143
  },
1122
1144
  {
@@ -1153,7 +1175,8 @@ exports.GENERATED_MCP_TOOLS = [
1153
1175
  "isReadOnly": true,
1154
1176
  "effect": "workspace_read",
1155
1177
  "riskLevel": 0,
1156
- "concurrencyClass": "lsp-limited"
1178
+ "concurrencyClass": "lsp-limited",
1179
+ "mcpSupportsCwtOnly": true
1157
1180
  }
1158
1181
  },
1159
1182
  {
@@ -1194,7 +1217,8 @@ exports.GENERATED_MCP_TOOLS = [
1194
1217
  "isReadOnly": true,
1195
1218
  "effect": "workspace_read",
1196
1219
  "riskLevel": 0,
1197
- "concurrencyClass": "lsp-limited"
1220
+ "concurrencyClass": "lsp-limited",
1221
+ "mcpSupportsCwtOnly": true
1198
1222
  }
1199
1223
  },
1200
1224
  {
@@ -1222,7 +1246,8 @@ exports.GENERATED_MCP_TOOLS = [
1222
1246
  "isReadOnly": true,
1223
1247
  "effect": "workspace_read",
1224
1248
  "riskLevel": 0,
1225
- "concurrencyClass": "parallel"
1249
+ "concurrencyClass": "parallel",
1250
+ "mcpSupportsCwtOnly": false
1226
1251
  }
1227
1252
  },
1228
1253
  {
@@ -1250,7 +1275,8 @@ exports.GENERATED_MCP_TOOLS = [
1250
1275
  "isReadOnly": true,
1251
1276
  "effect": "workspace_read",
1252
1277
  "riskLevel": 0,
1253
- "concurrencyClass": "parallel"
1278
+ "concurrencyClass": "parallel",
1279
+ "mcpSupportsCwtOnly": false
1254
1280
  }
1255
1281
  },
1256
1282
  {
@@ -1278,7 +1304,8 @@ exports.GENERATED_MCP_TOOLS = [
1278
1304
  "isReadOnly": true,
1279
1305
  "effect": "workspace_read",
1280
1306
  "riskLevel": 0,
1281
- "concurrencyClass": "parallel"
1307
+ "concurrencyClass": "parallel",
1308
+ "mcpSupportsCwtOnly": false
1282
1309
  }
1283
1310
  },
1284
1311
  {
@@ -1306,7 +1333,8 @@ exports.GENERATED_MCP_TOOLS = [
1306
1333
  "isReadOnly": true,
1307
1334
  "effect": "workspace_read",
1308
1335
  "riskLevel": 0,
1309
- "concurrencyClass": "parallel"
1336
+ "concurrencyClass": "parallel",
1337
+ "mcpSupportsCwtOnly": false
1310
1338
  }
1311
1339
  },
1312
1340
  {
@@ -1330,7 +1358,8 @@ exports.GENERATED_MCP_TOOLS = [
1330
1358
  "isReadOnly": true,
1331
1359
  "effect": "workspace_read",
1332
1360
  "riskLevel": 0,
1333
- "concurrencyClass": "parallel"
1361
+ "concurrencyClass": "parallel",
1362
+ "mcpSupportsCwtOnly": false
1334
1363
  }
1335
1364
  },
1336
1365
  {
@@ -1356,7 +1385,8 @@ exports.GENERATED_MCP_TOOLS = [
1356
1385
  "isReadOnly": true,
1357
1386
  "effect": "workspace_read",
1358
1387
  "riskLevel": 0,
1359
- "concurrencyClass": "parallel"
1388
+ "concurrencyClass": "parallel",
1389
+ "mcpSupportsCwtOnly": false
1360
1390
  }
1361
1391
  },
1362
1392
  {
@@ -1399,7 +1429,8 @@ exports.GENERATED_MCP_TOOLS = [
1399
1429
  "isReadOnly": true,
1400
1430
  "effect": "workspace_read",
1401
1431
  "riskLevel": 0,
1402
- "concurrencyClass": "lsp-limited"
1432
+ "concurrencyClass": "lsp-limited",
1433
+ "mcpSupportsCwtOnly": false
1403
1434
  }
1404
1435
  },
1405
1436
  {
@@ -1425,7 +1456,8 @@ exports.GENERATED_MCP_TOOLS = [
1425
1456
  "isReadOnly": true,
1426
1457
  "effect": "workspace_read",
1427
1458
  "riskLevel": 0,
1428
- "concurrencyClass": "lsp-limited"
1459
+ "concurrencyClass": "lsp-limited",
1460
+ "mcpSupportsCwtOnly": false
1429
1461
  }
1430
1462
  },
1431
1463
  {
@@ -1451,7 +1483,8 @@ exports.GENERATED_MCP_TOOLS = [
1451
1483
  "isReadOnly": true,
1452
1484
  "effect": "workspace_read",
1453
1485
  "riskLevel": 0,
1454
- "concurrencyClass": "lsp-limited"
1486
+ "concurrencyClass": "lsp-limited",
1487
+ "mcpSupportsCwtOnly": false
1455
1488
  }
1456
1489
  },
1457
1490
  {
@@ -1481,7 +1514,8 @@ exports.GENERATED_MCP_TOOLS = [
1481
1514
  "isReadOnly": true,
1482
1515
  "effect": "workspace_read",
1483
1516
  "riskLevel": 0,
1484
- "concurrencyClass": "lsp-limited"
1517
+ "concurrencyClass": "lsp-limited",
1518
+ "mcpSupportsCwtOnly": false
1485
1519
  }
1486
1520
  },
1487
1521
  {
@@ -1517,7 +1551,8 @@ exports.GENERATED_MCP_TOOLS = [
1517
1551
  "isReadOnly": true,
1518
1552
  "effect": "workspace_read",
1519
1553
  "riskLevel": 0,
1520
- "concurrencyClass": "lsp-limited"
1554
+ "concurrencyClass": "lsp-limited",
1555
+ "mcpSupportsCwtOnly": false
1521
1556
  }
1522
1557
  },
1523
1558
  {
@@ -1543,7 +1578,8 @@ exports.GENERATED_MCP_TOOLS = [
1543
1578
  "isReadOnly": true,
1544
1579
  "effect": "workspace_read",
1545
1580
  "riskLevel": 0,
1546
- "concurrencyClass": "lsp-limited"
1581
+ "concurrencyClass": "lsp-limited",
1582
+ "mcpSupportsCwtOnly": false
1547
1583
  }
1548
1584
  },
1549
1585
  {
@@ -1571,7 +1607,2809 @@ exports.GENERATED_MCP_TOOLS = [
1571
1607
  "isReadOnly": true,
1572
1608
  "effect": "workspace_read",
1573
1609
  "riskLevel": 0,
1574
- "concurrencyClass": "lsp-limited"
1610
+ "concurrencyClass": "lsp-limited",
1611
+ "mcpSupportsCwtOnly": false
1612
+ }
1613
+ },
1614
+ {
1615
+ "tool": {
1616
+ "name": "get_ide_context",
1617
+ "description": "Read the active VS Code IDE state: the active text editor file, languageId, cursor position, selection range/text, open dirty buffers, active diagnostics on the current file, and currently open CWTools visual editor panels (GUI Preview, Entity Preview, Particle Preview, Solar System Preview, Tech Tree, Event Chain, Targeting Weight).",
1618
+ "inputSchema": {
1619
+ "type": "object",
1620
+ "properties": {
1621
+ "includeSelectionText": {
1622
+ "type": "boolean",
1623
+ "description": "Whether to include the selected text in the active editor (bounded to 4000 chars). Defaults to true."
1624
+ },
1625
+ "includeActiveFileDiagnostics": {
1626
+ "type": "boolean",
1627
+ "description": "Whether to include current diagnostics for the active editor file. Defaults to true."
1628
+ }
1629
+ },
1630
+ "required": []
1631
+ }
1632
+ },
1633
+ "registry": {
1634
+ "name": "get_ide_context",
1635
+ "isWrite": false,
1636
+ "isReadOnly": true,
1637
+ "effect": "workspace_read",
1638
+ "riskLevel": 0,
1639
+ "concurrencyClass": "parallel",
1640
+ "mcpSupportsCwtOnly": false
1641
+ }
1642
+ },
1643
+ {
1644
+ "tool": {
1645
+ "name": "open_in_visual_editor",
1646
+ "description": "Open or refresh a Paradox file in the appropriate CWTools VS Code visual editor panel (gui -> GUI Preview, entity -> 3D Entity Preview, particle -> Particle Preview, solar_system -> Solar System Preview, tech_tree -> Tech Tree Visualizer, event_chain -> Event Chain Visualizer, target_weight -> Targeting Weight Analyzer, auto -> infer from file path/extension) and return the parsed structural summary of the opened view.",
1647
+ "inputSchema": {
1648
+ "type": "object",
1649
+ "properties": {
1650
+ "file": {
1651
+ "type": "string",
1652
+ "description": "Workspace-relative or absolute path to the file to open/preview. Optional for tech_tree, event_chain, or target_weight when using the active editor."
1653
+ },
1654
+ "editor": {
1655
+ "type": "string",
1656
+ "enum": [
1657
+ "auto",
1658
+ "gui",
1659
+ "entity",
1660
+ "particle",
1661
+ "solar_system",
1662
+ "tech_tree",
1663
+ "event_chain",
1664
+ "target_weight"
1665
+ ],
1666
+ "description": "Visual editor to open. Defaults to auto (inferred from file extension and directory)."
1667
+ },
1668
+ "line": {
1669
+ "type": "integer",
1670
+ "minimum": 1,
1671
+ "description": "Optional 1-based line number to focus (used by event_chain or target_weight cursor seeding)."
1672
+ }
1673
+ },
1674
+ "required": []
1675
+ }
1676
+ },
1677
+ "registry": {
1678
+ "name": "open_in_visual_editor",
1679
+ "isWrite": false,
1680
+ "isReadOnly": true,
1681
+ "effect": "workspace_read",
1682
+ "riskLevel": 0,
1683
+ "concurrencyClass": "parallel",
1684
+ "mcpSupportsCwtOnly": false
1685
+ }
1686
+ },
1687
+ {
1688
+ "tool": {
1689
+ "name": "write_localisation",
1690
+ "description": "MANDATORY for all .yml localisation file operations. Safely write PDXScript localisation entries. filePath MUST be a real localisation path under localisation/ or localization/; never write localisation YAML into .cwtools scratch/topic folders. This tool handles BOM encoding, key formatting, and correct insertion/update automatically. For new files, creates them with proper BOM + language header. For existing files, appends new keys and updates existing ones by exact key match. NEVER use edit_file, replace_lines, or write_file for .yml localisation files - ALWAYS use this tool instead.",
1691
+ "inputSchema": {
1692
+ "type": "object",
1693
+ "properties": {
1694
+ "filePath": {
1695
+ "type": "string",
1696
+ "description": "Path to the real .yml localisation file (absolute or relative to workspace), under localisation/ or localization/. Do not use .cwtools paths."
1697
+ },
1698
+ "language": {
1699
+ "type": "string",
1700
+ "description": "Language header, e.g. \"l_english\", \"l_simp_chinese\", \"l_braz_por\". Used when creating a new file."
1701
+ },
1702
+ "languages": {
1703
+ "type": "array",
1704
+ "items": {
1705
+ "type": "string"
1706
+ },
1707
+ "description": "Optional explicit multi-file transaction: write the same entries into each sibling language file (same directory + filename stem with the language tag). All targets are validated first; if any target is invalid the whole transaction is rejected with no partial writes."
1708
+ },
1709
+ "entries": {
1710
+ "type": "array",
1711
+ "description": "List of localisation key-value pairs to write",
1712
+ "items": {
1713
+ "type": "object",
1714
+ "properties": {
1715
+ "key": {
1716
+ "type": "string",
1717
+ "description": "Localisation key, e.g. \"my_event.1.title\""
1718
+ },
1719
+ "value": {
1720
+ "type": "string",
1721
+ "description": "Localisation value text. Use \\n for in-game line breaks. Do NOT include surrounding quotes."
1722
+ },
1723
+ "number": {
1724
+ "type": "integer",
1725
+ "description": "Version number after the colon (default: 0). Usually 0."
1726
+ },
1727
+ "comment": {
1728
+ "type": "string",
1729
+ "description": "Optional section header comment to insert before this entry, e.g. \"### Site 1 Events ###\""
1730
+ }
1731
+ },
1732
+ "required": [
1733
+ "key",
1734
+ "value"
1735
+ ]
1736
+ }
1737
+ }
1738
+ },
1739
+ "required": [
1740
+ "filePath",
1741
+ "language",
1742
+ "entries"
1743
+ ]
1744
+ }
1745
+ },
1746
+ "registry": {
1747
+ "name": "write_localisation",
1748
+ "isWrite": true,
1749
+ "isReadOnly": false,
1750
+ "effect": "workspace_write",
1751
+ "riskLevel": 2,
1752
+ "concurrencyClass": "per-file-write",
1753
+ "mcpSupportsCwtOnly": false
1754
+ }
1755
+ },
1756
+ {
1757
+ "tool": {
1758
+ "name": "typed_pdx_write",
1759
+ "description": "Build a bounded typed Stellaris/PDXScript candidate without accepting raw script text. Preview by default; stage stores the candidate in the active candidate transaction.",
1760
+ "inputSchema": {
1761
+ "type": "object",
1762
+ "properties": {
1763
+ "filePath": {
1764
+ "type": "string",
1765
+ "description": "Absolute workspace .txt file path."
1766
+ },
1767
+ "expectedHash": {
1768
+ "type": "string",
1769
+ "pattern": "^[a-fA-F0-9]{64}$",
1770
+ "description": "Optional SHA-256 of the source content; stale candidates are rejected."
1771
+ },
1772
+ "mode": {
1773
+ "type": "string",
1774
+ "enum": [
1775
+ "preview",
1776
+ "stage"
1777
+ ],
1778
+ "description": "Preview is read-only; stage requires an active candidate transaction."
1779
+ },
1780
+ "transactionId": {
1781
+ "type": "string",
1782
+ "description": "Required when mode=stage."
1783
+ },
1784
+ "operation": {
1785
+ "oneOf": [
1786
+ {
1787
+ "type": "object",
1788
+ "properties": {
1789
+ "operation": {
1790
+ "const": "clone_definition"
1791
+ },
1792
+ "source": {
1793
+ "type": "string"
1794
+ },
1795
+ "newSymbol": {
1796
+ "type": "string",
1797
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
1798
+ },
1799
+ "overrides": {
1800
+ "type": "array",
1801
+ "maxItems": 64,
1802
+ "items": {
1803
+ "oneOf": [
1804
+ {
1805
+ "type": "object",
1806
+ "properties": {
1807
+ "path": {
1808
+ "type": "array",
1809
+ "minItems": 1,
1810
+ "maxItems": 8,
1811
+ "items": {
1812
+ "type": "object",
1813
+ "properties": {
1814
+ "key": {
1815
+ "type": "string",
1816
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
1817
+ },
1818
+ "occurrence": {
1819
+ "type": "integer",
1820
+ "minimum": 1
1821
+ }
1822
+ },
1823
+ "required": [
1824
+ "key",
1825
+ "occurrence"
1826
+ ],
1827
+ "additionalProperties": false
1828
+ }
1829
+ },
1830
+ "value": {
1831
+ "oneOf": [
1832
+ {
1833
+ "type": "object",
1834
+ "properties": {
1835
+ "kind": {
1836
+ "const": "identifier"
1837
+ },
1838
+ "value": {
1839
+ "type": "string",
1840
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
1841
+ }
1842
+ },
1843
+ "required": [
1844
+ "kind",
1845
+ "value"
1846
+ ],
1847
+ "additionalProperties": false
1848
+ },
1849
+ {
1850
+ "type": "object",
1851
+ "properties": {
1852
+ "kind": {
1853
+ "const": "string"
1854
+ },
1855
+ "value": {
1856
+ "type": "string",
1857
+ "maxLength": 4096,
1858
+ "pattern": "^[^\u0000-\u001f]*$"
1859
+ }
1860
+ },
1861
+ "required": [
1862
+ "kind",
1863
+ "value"
1864
+ ],
1865
+ "additionalProperties": false
1866
+ },
1867
+ {
1868
+ "type": "object",
1869
+ "properties": {
1870
+ "kind": {
1871
+ "const": "number"
1872
+ },
1873
+ "value": {
1874
+ "type": "number"
1875
+ }
1876
+ },
1877
+ "required": [
1878
+ "kind",
1879
+ "value"
1880
+ ],
1881
+ "additionalProperties": false
1882
+ },
1883
+ {
1884
+ "type": "object",
1885
+ "properties": {
1886
+ "kind": {
1887
+ "const": "boolean"
1888
+ },
1889
+ "value": {
1890
+ "type": "boolean"
1891
+ }
1892
+ },
1893
+ "required": [
1894
+ "kind",
1895
+ "value"
1896
+ ],
1897
+ "additionalProperties": false
1898
+ },
1899
+ {
1900
+ "type": "object",
1901
+ "properties": {
1902
+ "kind": {
1903
+ "const": "list"
1904
+ },
1905
+ "values": {
1906
+ "type": "array",
1907
+ "maxItems": 256,
1908
+ "items": {
1909
+ "type": "object",
1910
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
1911
+ "properties": {
1912
+ "kind": {
1913
+ "type": "string",
1914
+ "enum": [
1915
+ "identifier",
1916
+ "string",
1917
+ "number",
1918
+ "boolean",
1919
+ "list",
1920
+ "block"
1921
+ ]
1922
+ }
1923
+ },
1924
+ "required": [
1925
+ "kind"
1926
+ ],
1927
+ "additionalProperties": true
1928
+ }
1929
+ }
1930
+ },
1931
+ "required": [
1932
+ "kind",
1933
+ "values"
1934
+ ],
1935
+ "additionalProperties": false
1936
+ },
1937
+ {
1938
+ "type": "object",
1939
+ "properties": {
1940
+ "kind": {
1941
+ "const": "block"
1942
+ },
1943
+ "entries": {
1944
+ "type": "array",
1945
+ "maxItems": 256,
1946
+ "items": {
1947
+ "type": "object",
1948
+ "properties": {
1949
+ "key": {
1950
+ "type": "string",
1951
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
1952
+ },
1953
+ "value": {
1954
+ "type": "object",
1955
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
1956
+ "properties": {
1957
+ "kind": {
1958
+ "type": "string",
1959
+ "enum": [
1960
+ "identifier",
1961
+ "string",
1962
+ "number",
1963
+ "boolean",
1964
+ "list",
1965
+ "block"
1966
+ ]
1967
+ }
1968
+ },
1969
+ "required": [
1970
+ "kind"
1971
+ ],
1972
+ "additionalProperties": true
1973
+ }
1974
+ },
1975
+ "required": [
1976
+ "key",
1977
+ "value"
1978
+ ],
1979
+ "additionalProperties": false
1980
+ }
1981
+ }
1982
+ },
1983
+ "required": [
1984
+ "kind",
1985
+ "entries"
1986
+ ],
1987
+ "additionalProperties": false
1988
+ }
1989
+ ]
1990
+ },
1991
+ "action": {
1992
+ "const": "set"
1993
+ }
1994
+ },
1995
+ "required": [
1996
+ "action",
1997
+ "path",
1998
+ "value"
1999
+ ],
2000
+ "additionalProperties": false
2001
+ },
2002
+ {
2003
+ "type": "object",
2004
+ "properties": {
2005
+ "path": {
2006
+ "type": "array",
2007
+ "minItems": 1,
2008
+ "maxItems": 8,
2009
+ "items": {
2010
+ "type": "object",
2011
+ "properties": {
2012
+ "key": {
2013
+ "type": "string",
2014
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2015
+ },
2016
+ "occurrence": {
2017
+ "type": "integer",
2018
+ "minimum": 1
2019
+ }
2020
+ },
2021
+ "required": [
2022
+ "key",
2023
+ "occurrence"
2024
+ ],
2025
+ "additionalProperties": false
2026
+ }
2027
+ },
2028
+ "action": {
2029
+ "const": "delete"
2030
+ }
2031
+ },
2032
+ "required": [
2033
+ "action",
2034
+ "path"
2035
+ ],
2036
+ "additionalProperties": false
2037
+ },
2038
+ {
2039
+ "type": "object",
2040
+ "properties": {
2041
+ "path": {
2042
+ "type": "array",
2043
+ "minItems": 0,
2044
+ "maxItems": 8,
2045
+ "items": {
2046
+ "type": "object",
2047
+ "properties": {
2048
+ "key": {
2049
+ "type": "string",
2050
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2051
+ },
2052
+ "occurrence": {
2053
+ "type": "integer",
2054
+ "minimum": 1
2055
+ }
2056
+ },
2057
+ "required": [
2058
+ "key",
2059
+ "occurrence"
2060
+ ],
2061
+ "additionalProperties": false
2062
+ }
2063
+ },
2064
+ "entry": {
2065
+ "type": "object",
2066
+ "properties": {
2067
+ "key": {
2068
+ "type": "string",
2069
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2070
+ },
2071
+ "value": {
2072
+ "oneOf": [
2073
+ {
2074
+ "type": "object",
2075
+ "properties": {
2076
+ "kind": {
2077
+ "const": "identifier"
2078
+ },
2079
+ "value": {
2080
+ "type": "string",
2081
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2082
+ }
2083
+ },
2084
+ "required": [
2085
+ "kind",
2086
+ "value"
2087
+ ],
2088
+ "additionalProperties": false
2089
+ },
2090
+ {
2091
+ "type": "object",
2092
+ "properties": {
2093
+ "kind": {
2094
+ "const": "string"
2095
+ },
2096
+ "value": {
2097
+ "type": "string",
2098
+ "maxLength": 4096,
2099
+ "pattern": "^[^\u0000-\u001f]*$"
2100
+ }
2101
+ },
2102
+ "required": [
2103
+ "kind",
2104
+ "value"
2105
+ ],
2106
+ "additionalProperties": false
2107
+ },
2108
+ {
2109
+ "type": "object",
2110
+ "properties": {
2111
+ "kind": {
2112
+ "const": "number"
2113
+ },
2114
+ "value": {
2115
+ "type": "number"
2116
+ }
2117
+ },
2118
+ "required": [
2119
+ "kind",
2120
+ "value"
2121
+ ],
2122
+ "additionalProperties": false
2123
+ },
2124
+ {
2125
+ "type": "object",
2126
+ "properties": {
2127
+ "kind": {
2128
+ "const": "boolean"
2129
+ },
2130
+ "value": {
2131
+ "type": "boolean"
2132
+ }
2133
+ },
2134
+ "required": [
2135
+ "kind",
2136
+ "value"
2137
+ ],
2138
+ "additionalProperties": false
2139
+ },
2140
+ {
2141
+ "type": "object",
2142
+ "properties": {
2143
+ "kind": {
2144
+ "const": "list"
2145
+ },
2146
+ "values": {
2147
+ "type": "array",
2148
+ "maxItems": 256,
2149
+ "items": {
2150
+ "type": "object",
2151
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
2152
+ "properties": {
2153
+ "kind": {
2154
+ "type": "string",
2155
+ "enum": [
2156
+ "identifier",
2157
+ "string",
2158
+ "number",
2159
+ "boolean",
2160
+ "list",
2161
+ "block"
2162
+ ]
2163
+ }
2164
+ },
2165
+ "required": [
2166
+ "kind"
2167
+ ],
2168
+ "additionalProperties": true
2169
+ }
2170
+ }
2171
+ },
2172
+ "required": [
2173
+ "kind",
2174
+ "values"
2175
+ ],
2176
+ "additionalProperties": false
2177
+ },
2178
+ {
2179
+ "type": "object",
2180
+ "properties": {
2181
+ "kind": {
2182
+ "const": "block"
2183
+ },
2184
+ "entries": {
2185
+ "type": "array",
2186
+ "maxItems": 256,
2187
+ "items": {
2188
+ "type": "object",
2189
+ "properties": {
2190
+ "key": {
2191
+ "type": "string",
2192
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2193
+ },
2194
+ "value": {
2195
+ "type": "object",
2196
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
2197
+ "properties": {
2198
+ "kind": {
2199
+ "type": "string",
2200
+ "enum": [
2201
+ "identifier",
2202
+ "string",
2203
+ "number",
2204
+ "boolean",
2205
+ "list",
2206
+ "block"
2207
+ ]
2208
+ }
2209
+ },
2210
+ "required": [
2211
+ "kind"
2212
+ ],
2213
+ "additionalProperties": true
2214
+ }
2215
+ },
2216
+ "required": [
2217
+ "key",
2218
+ "value"
2219
+ ],
2220
+ "additionalProperties": false
2221
+ }
2222
+ }
2223
+ },
2224
+ "required": [
2225
+ "kind",
2226
+ "entries"
2227
+ ],
2228
+ "additionalProperties": false
2229
+ }
2230
+ ]
2231
+ }
2232
+ },
2233
+ "required": [
2234
+ "key",
2235
+ "value"
2236
+ ],
2237
+ "additionalProperties": false
2238
+ },
2239
+ "action": {
2240
+ "const": "append"
2241
+ }
2242
+ },
2243
+ "required": [
2244
+ "action",
2245
+ "path",
2246
+ "entry"
2247
+ ],
2248
+ "additionalProperties": false
2249
+ }
2250
+ ]
2251
+ }
2252
+ }
2253
+ },
2254
+ "required": [
2255
+ "operation",
2256
+ "source",
2257
+ "newSymbol"
2258
+ ],
2259
+ "additionalProperties": false
2260
+ },
2261
+ {
2262
+ "type": "object",
2263
+ "properties": {
2264
+ "operation": {
2265
+ "const": "add_event_call"
2266
+ },
2267
+ "target": {
2268
+ "type": "string"
2269
+ },
2270
+ "callType": {
2271
+ "type": "string",
2272
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2273
+ },
2274
+ "eventId": {
2275
+ "type": "string",
2276
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2277
+ },
2278
+ "containerPath": {
2279
+ "type": "array",
2280
+ "maxItems": 8,
2281
+ "items": {
2282
+ "type": "string"
2283
+ }
2284
+ },
2285
+ "days": {
2286
+ "type": "integer",
2287
+ "minimum": 0
2288
+ }
2289
+ },
2290
+ "required": [
2291
+ "operation",
2292
+ "target",
2293
+ "callType",
2294
+ "eventId"
2295
+ ],
2296
+ "additionalProperties": false
2297
+ },
2298
+ {
2299
+ "type": "object",
2300
+ "properties": {
2301
+ "operation": {
2302
+ "const": "add_event_option"
2303
+ },
2304
+ "target": {
2305
+ "type": "string"
2306
+ },
2307
+ "name": {
2308
+ "type": "string",
2309
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2310
+ },
2311
+ "fields": {
2312
+ "type": "array",
2313
+ "maxItems": 256,
2314
+ "items": {
2315
+ "type": "object",
2316
+ "properties": {
2317
+ "key": {
2318
+ "type": "string",
2319
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2320
+ },
2321
+ "value": {
2322
+ "oneOf": [
2323
+ {
2324
+ "type": "object",
2325
+ "properties": {
2326
+ "kind": {
2327
+ "const": "identifier"
2328
+ },
2329
+ "value": {
2330
+ "type": "string",
2331
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2332
+ }
2333
+ },
2334
+ "required": [
2335
+ "kind",
2336
+ "value"
2337
+ ],
2338
+ "additionalProperties": false
2339
+ },
2340
+ {
2341
+ "type": "object",
2342
+ "properties": {
2343
+ "kind": {
2344
+ "const": "string"
2345
+ },
2346
+ "value": {
2347
+ "type": "string",
2348
+ "maxLength": 4096,
2349
+ "pattern": "^[^\u0000-\u001f]*$"
2350
+ }
2351
+ },
2352
+ "required": [
2353
+ "kind",
2354
+ "value"
2355
+ ],
2356
+ "additionalProperties": false
2357
+ },
2358
+ {
2359
+ "type": "object",
2360
+ "properties": {
2361
+ "kind": {
2362
+ "const": "number"
2363
+ },
2364
+ "value": {
2365
+ "type": "number"
2366
+ }
2367
+ },
2368
+ "required": [
2369
+ "kind",
2370
+ "value"
2371
+ ],
2372
+ "additionalProperties": false
2373
+ },
2374
+ {
2375
+ "type": "object",
2376
+ "properties": {
2377
+ "kind": {
2378
+ "const": "boolean"
2379
+ },
2380
+ "value": {
2381
+ "type": "boolean"
2382
+ }
2383
+ },
2384
+ "required": [
2385
+ "kind",
2386
+ "value"
2387
+ ],
2388
+ "additionalProperties": false
2389
+ },
2390
+ {
2391
+ "type": "object",
2392
+ "properties": {
2393
+ "kind": {
2394
+ "const": "list"
2395
+ },
2396
+ "values": {
2397
+ "type": "array",
2398
+ "maxItems": 256,
2399
+ "items": {
2400
+ "type": "object",
2401
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
2402
+ "properties": {
2403
+ "kind": {
2404
+ "type": "string",
2405
+ "enum": [
2406
+ "identifier",
2407
+ "string",
2408
+ "number",
2409
+ "boolean",
2410
+ "list",
2411
+ "block"
2412
+ ]
2413
+ }
2414
+ },
2415
+ "required": [
2416
+ "kind"
2417
+ ],
2418
+ "additionalProperties": true
2419
+ }
2420
+ }
2421
+ },
2422
+ "required": [
2423
+ "kind",
2424
+ "values"
2425
+ ],
2426
+ "additionalProperties": false
2427
+ },
2428
+ {
2429
+ "type": "object",
2430
+ "properties": {
2431
+ "kind": {
2432
+ "const": "block"
2433
+ },
2434
+ "entries": {
2435
+ "type": "array",
2436
+ "maxItems": 256,
2437
+ "items": {
2438
+ "type": "object",
2439
+ "properties": {
2440
+ "key": {
2441
+ "type": "string",
2442
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2443
+ },
2444
+ "value": {
2445
+ "type": "object",
2446
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
2447
+ "properties": {
2448
+ "kind": {
2449
+ "type": "string",
2450
+ "enum": [
2451
+ "identifier",
2452
+ "string",
2453
+ "number",
2454
+ "boolean",
2455
+ "list",
2456
+ "block"
2457
+ ]
2458
+ }
2459
+ },
2460
+ "required": [
2461
+ "kind"
2462
+ ],
2463
+ "additionalProperties": true
2464
+ }
2465
+ },
2466
+ "required": [
2467
+ "key",
2468
+ "value"
2469
+ ],
2470
+ "additionalProperties": false
2471
+ }
2472
+ }
2473
+ },
2474
+ "required": [
2475
+ "kind",
2476
+ "entries"
2477
+ ],
2478
+ "additionalProperties": false
2479
+ }
2480
+ ]
2481
+ }
2482
+ },
2483
+ "required": [
2484
+ "key",
2485
+ "value"
2486
+ ],
2487
+ "additionalProperties": false
2488
+ }
2489
+ }
2490
+ },
2491
+ "required": [
2492
+ "operation",
2493
+ "target",
2494
+ "name"
2495
+ ],
2496
+ "additionalProperties": false
2497
+ },
2498
+ {
2499
+ "type": "object",
2500
+ "properties": {
2501
+ "operation": {
2502
+ "const": "append_trigger_condition"
2503
+ },
2504
+ "target": {
2505
+ "type": "string"
2506
+ },
2507
+ "condition": {
2508
+ "type": "object",
2509
+ "properties": {
2510
+ "key": {
2511
+ "type": "string",
2512
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2513
+ },
2514
+ "value": {
2515
+ "oneOf": [
2516
+ {
2517
+ "type": "object",
2518
+ "properties": {
2519
+ "kind": {
2520
+ "const": "identifier"
2521
+ },
2522
+ "value": {
2523
+ "type": "string",
2524
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2525
+ }
2526
+ },
2527
+ "required": [
2528
+ "kind",
2529
+ "value"
2530
+ ],
2531
+ "additionalProperties": false
2532
+ },
2533
+ {
2534
+ "type": "object",
2535
+ "properties": {
2536
+ "kind": {
2537
+ "const": "string"
2538
+ },
2539
+ "value": {
2540
+ "type": "string",
2541
+ "maxLength": 4096,
2542
+ "pattern": "^[^\u0000-\u001f]*$"
2543
+ }
2544
+ },
2545
+ "required": [
2546
+ "kind",
2547
+ "value"
2548
+ ],
2549
+ "additionalProperties": false
2550
+ },
2551
+ {
2552
+ "type": "object",
2553
+ "properties": {
2554
+ "kind": {
2555
+ "const": "number"
2556
+ },
2557
+ "value": {
2558
+ "type": "number"
2559
+ }
2560
+ },
2561
+ "required": [
2562
+ "kind",
2563
+ "value"
2564
+ ],
2565
+ "additionalProperties": false
2566
+ },
2567
+ {
2568
+ "type": "object",
2569
+ "properties": {
2570
+ "kind": {
2571
+ "const": "boolean"
2572
+ },
2573
+ "value": {
2574
+ "type": "boolean"
2575
+ }
2576
+ },
2577
+ "required": [
2578
+ "kind",
2579
+ "value"
2580
+ ],
2581
+ "additionalProperties": false
2582
+ },
2583
+ {
2584
+ "type": "object",
2585
+ "properties": {
2586
+ "kind": {
2587
+ "const": "list"
2588
+ },
2589
+ "values": {
2590
+ "type": "array",
2591
+ "maxItems": 256,
2592
+ "items": {
2593
+ "type": "object",
2594
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
2595
+ "properties": {
2596
+ "kind": {
2597
+ "type": "string",
2598
+ "enum": [
2599
+ "identifier",
2600
+ "string",
2601
+ "number",
2602
+ "boolean",
2603
+ "list",
2604
+ "block"
2605
+ ]
2606
+ }
2607
+ },
2608
+ "required": [
2609
+ "kind"
2610
+ ],
2611
+ "additionalProperties": true
2612
+ }
2613
+ }
2614
+ },
2615
+ "required": [
2616
+ "kind",
2617
+ "values"
2618
+ ],
2619
+ "additionalProperties": false
2620
+ },
2621
+ {
2622
+ "type": "object",
2623
+ "properties": {
2624
+ "kind": {
2625
+ "const": "block"
2626
+ },
2627
+ "entries": {
2628
+ "type": "array",
2629
+ "maxItems": 256,
2630
+ "items": {
2631
+ "type": "object",
2632
+ "properties": {
2633
+ "key": {
2634
+ "type": "string",
2635
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2636
+ },
2637
+ "value": {
2638
+ "type": "object",
2639
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
2640
+ "properties": {
2641
+ "kind": {
2642
+ "type": "string",
2643
+ "enum": [
2644
+ "identifier",
2645
+ "string",
2646
+ "number",
2647
+ "boolean",
2648
+ "list",
2649
+ "block"
2650
+ ]
2651
+ }
2652
+ },
2653
+ "required": [
2654
+ "kind"
2655
+ ],
2656
+ "additionalProperties": true
2657
+ }
2658
+ },
2659
+ "required": [
2660
+ "key",
2661
+ "value"
2662
+ ],
2663
+ "additionalProperties": false
2664
+ }
2665
+ }
2666
+ },
2667
+ "required": [
2668
+ "kind",
2669
+ "entries"
2670
+ ],
2671
+ "additionalProperties": false
2672
+ }
2673
+ ]
2674
+ }
2675
+ },
2676
+ "required": [
2677
+ "key",
2678
+ "value"
2679
+ ],
2680
+ "additionalProperties": false
2681
+ },
2682
+ "containerPath": {
2683
+ "type": "array",
2684
+ "maxItems": 8,
2685
+ "items": {
2686
+ "type": "string"
2687
+ }
2688
+ }
2689
+ },
2690
+ "required": [
2691
+ "operation",
2692
+ "target",
2693
+ "condition"
2694
+ ],
2695
+ "additionalProperties": false
2696
+ },
2697
+ {
2698
+ "type": "object",
2699
+ "properties": {
2700
+ "operation": {
2701
+ "const": "instantiate_inline_script"
2702
+ },
2703
+ "target": {
2704
+ "type": "string"
2705
+ },
2706
+ "script": {
2707
+ "type": "string",
2708
+ "pattern": "^[A-Za-z0-9_.:@/-]+$"
2709
+ },
2710
+ "arguments": {
2711
+ "type": "array",
2712
+ "maxItems": 256,
2713
+ "items": {
2714
+ "type": "object",
2715
+ "properties": {
2716
+ "key": {
2717
+ "type": "string",
2718
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2719
+ },
2720
+ "value": {
2721
+ "oneOf": [
2722
+ {
2723
+ "type": "object",
2724
+ "properties": {
2725
+ "kind": {
2726
+ "const": "identifier"
2727
+ },
2728
+ "value": {
2729
+ "type": "string",
2730
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2731
+ }
2732
+ },
2733
+ "required": [
2734
+ "kind",
2735
+ "value"
2736
+ ],
2737
+ "additionalProperties": false
2738
+ },
2739
+ {
2740
+ "type": "object",
2741
+ "properties": {
2742
+ "kind": {
2743
+ "const": "string"
2744
+ },
2745
+ "value": {
2746
+ "type": "string",
2747
+ "maxLength": 4096,
2748
+ "pattern": "^[^\u0000-\u001f]*$"
2749
+ }
2750
+ },
2751
+ "required": [
2752
+ "kind",
2753
+ "value"
2754
+ ],
2755
+ "additionalProperties": false
2756
+ },
2757
+ {
2758
+ "type": "object",
2759
+ "properties": {
2760
+ "kind": {
2761
+ "const": "number"
2762
+ },
2763
+ "value": {
2764
+ "type": "number"
2765
+ }
2766
+ },
2767
+ "required": [
2768
+ "kind",
2769
+ "value"
2770
+ ],
2771
+ "additionalProperties": false
2772
+ },
2773
+ {
2774
+ "type": "object",
2775
+ "properties": {
2776
+ "kind": {
2777
+ "const": "boolean"
2778
+ },
2779
+ "value": {
2780
+ "type": "boolean"
2781
+ }
2782
+ },
2783
+ "required": [
2784
+ "kind",
2785
+ "value"
2786
+ ],
2787
+ "additionalProperties": false
2788
+ },
2789
+ {
2790
+ "type": "object",
2791
+ "properties": {
2792
+ "kind": {
2793
+ "const": "list"
2794
+ },
2795
+ "values": {
2796
+ "type": "array",
2797
+ "maxItems": 256,
2798
+ "items": {
2799
+ "type": "object",
2800
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
2801
+ "properties": {
2802
+ "kind": {
2803
+ "type": "string",
2804
+ "enum": [
2805
+ "identifier",
2806
+ "string",
2807
+ "number",
2808
+ "boolean",
2809
+ "list",
2810
+ "block"
2811
+ ]
2812
+ }
2813
+ },
2814
+ "required": [
2815
+ "kind"
2816
+ ],
2817
+ "additionalProperties": true
2818
+ }
2819
+ }
2820
+ },
2821
+ "required": [
2822
+ "kind",
2823
+ "values"
2824
+ ],
2825
+ "additionalProperties": false
2826
+ },
2827
+ {
2828
+ "type": "object",
2829
+ "properties": {
2830
+ "kind": {
2831
+ "const": "block"
2832
+ },
2833
+ "entries": {
2834
+ "type": "array",
2835
+ "maxItems": 256,
2836
+ "items": {
2837
+ "type": "object",
2838
+ "properties": {
2839
+ "key": {
2840
+ "type": "string",
2841
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2842
+ },
2843
+ "value": {
2844
+ "type": "object",
2845
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
2846
+ "properties": {
2847
+ "kind": {
2848
+ "type": "string",
2849
+ "enum": [
2850
+ "identifier",
2851
+ "string",
2852
+ "number",
2853
+ "boolean",
2854
+ "list",
2855
+ "block"
2856
+ ]
2857
+ }
2858
+ },
2859
+ "required": [
2860
+ "kind"
2861
+ ],
2862
+ "additionalProperties": true
2863
+ }
2864
+ },
2865
+ "required": [
2866
+ "key",
2867
+ "value"
2868
+ ],
2869
+ "additionalProperties": false
2870
+ }
2871
+ }
2872
+ },
2873
+ "required": [
2874
+ "kind",
2875
+ "entries"
2876
+ ],
2877
+ "additionalProperties": false
2878
+ }
2879
+ ]
2880
+ }
2881
+ },
2882
+ "required": [
2883
+ "key",
2884
+ "value"
2885
+ ],
2886
+ "additionalProperties": false
2887
+ }
2888
+ },
2889
+ "containerPath": {
2890
+ "type": "array",
2891
+ "maxItems": 8,
2892
+ "items": {
2893
+ "type": "string"
2894
+ }
2895
+ }
2896
+ },
2897
+ "required": [
2898
+ "operation",
2899
+ "target",
2900
+ "script"
2901
+ ],
2902
+ "additionalProperties": false
2903
+ },
2904
+ {
2905
+ "type": "object",
2906
+ "properties": {
2907
+ "operation": {
2908
+ "const": "set_definition_field"
2909
+ },
2910
+ "target": {
2911
+ "type": "string"
2912
+ },
2913
+ "path": {
2914
+ "type": "array",
2915
+ "minItems": 1,
2916
+ "maxItems": 8,
2917
+ "items": {
2918
+ "type": "object",
2919
+ "properties": {
2920
+ "key": {
2921
+ "type": "string",
2922
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2923
+ },
2924
+ "occurrence": {
2925
+ "type": "integer",
2926
+ "minimum": 1
2927
+ }
2928
+ },
2929
+ "required": [
2930
+ "key",
2931
+ "occurrence"
2932
+ ],
2933
+ "additionalProperties": false
2934
+ }
2935
+ },
2936
+ "value": {
2937
+ "oneOf": [
2938
+ {
2939
+ "type": "object",
2940
+ "properties": {
2941
+ "kind": {
2942
+ "const": "identifier"
2943
+ },
2944
+ "value": {
2945
+ "type": "string",
2946
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
2947
+ }
2948
+ },
2949
+ "required": [
2950
+ "kind",
2951
+ "value"
2952
+ ],
2953
+ "additionalProperties": false
2954
+ },
2955
+ {
2956
+ "type": "object",
2957
+ "properties": {
2958
+ "kind": {
2959
+ "const": "string"
2960
+ },
2961
+ "value": {
2962
+ "type": "string",
2963
+ "maxLength": 4096,
2964
+ "pattern": "^[^\u0000-\u001f]*$"
2965
+ }
2966
+ },
2967
+ "required": [
2968
+ "kind",
2969
+ "value"
2970
+ ],
2971
+ "additionalProperties": false
2972
+ },
2973
+ {
2974
+ "type": "object",
2975
+ "properties": {
2976
+ "kind": {
2977
+ "const": "number"
2978
+ },
2979
+ "value": {
2980
+ "type": "number"
2981
+ }
2982
+ },
2983
+ "required": [
2984
+ "kind",
2985
+ "value"
2986
+ ],
2987
+ "additionalProperties": false
2988
+ },
2989
+ {
2990
+ "type": "object",
2991
+ "properties": {
2992
+ "kind": {
2993
+ "const": "boolean"
2994
+ },
2995
+ "value": {
2996
+ "type": "boolean"
2997
+ }
2998
+ },
2999
+ "required": [
3000
+ "kind",
3001
+ "value"
3002
+ ],
3003
+ "additionalProperties": false
3004
+ },
3005
+ {
3006
+ "type": "object",
3007
+ "properties": {
3008
+ "kind": {
3009
+ "const": "list"
3010
+ },
3011
+ "values": {
3012
+ "type": "array",
3013
+ "maxItems": 256,
3014
+ "items": {
3015
+ "type": "object",
3016
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
3017
+ "properties": {
3018
+ "kind": {
3019
+ "type": "string",
3020
+ "enum": [
3021
+ "identifier",
3022
+ "string",
3023
+ "number",
3024
+ "boolean",
3025
+ "list",
3026
+ "block"
3027
+ ]
3028
+ }
3029
+ },
3030
+ "required": [
3031
+ "kind"
3032
+ ],
3033
+ "additionalProperties": true
3034
+ }
3035
+ }
3036
+ },
3037
+ "required": [
3038
+ "kind",
3039
+ "values"
3040
+ ],
3041
+ "additionalProperties": false
3042
+ },
3043
+ {
3044
+ "type": "object",
3045
+ "properties": {
3046
+ "kind": {
3047
+ "const": "block"
3048
+ },
3049
+ "entries": {
3050
+ "type": "array",
3051
+ "maxItems": 256,
3052
+ "items": {
3053
+ "type": "object",
3054
+ "properties": {
3055
+ "key": {
3056
+ "type": "string",
3057
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3058
+ },
3059
+ "value": {
3060
+ "type": "object",
3061
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
3062
+ "properties": {
3063
+ "kind": {
3064
+ "type": "string",
3065
+ "enum": [
3066
+ "identifier",
3067
+ "string",
3068
+ "number",
3069
+ "boolean",
3070
+ "list",
3071
+ "block"
3072
+ ]
3073
+ }
3074
+ },
3075
+ "required": [
3076
+ "kind"
3077
+ ],
3078
+ "additionalProperties": true
3079
+ }
3080
+ },
3081
+ "required": [
3082
+ "key",
3083
+ "value"
3084
+ ],
3085
+ "additionalProperties": false
3086
+ }
3087
+ }
3088
+ },
3089
+ "required": [
3090
+ "kind",
3091
+ "entries"
3092
+ ],
3093
+ "additionalProperties": false
3094
+ }
3095
+ ]
3096
+ }
3097
+ },
3098
+ "required": [
3099
+ "operation",
3100
+ "target",
3101
+ "path",
3102
+ "value"
3103
+ ],
3104
+ "additionalProperties": false
3105
+ },
3106
+ {
3107
+ "type": "object",
3108
+ "properties": {
3109
+ "operation": {
3110
+ "const": "delete_definition_field"
3111
+ },
3112
+ "target": {
3113
+ "type": "string"
3114
+ },
3115
+ "path": {
3116
+ "type": "array",
3117
+ "minItems": 1,
3118
+ "maxItems": 8,
3119
+ "items": {
3120
+ "type": "object",
3121
+ "properties": {
3122
+ "key": {
3123
+ "type": "string",
3124
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3125
+ },
3126
+ "occurrence": {
3127
+ "type": "integer",
3128
+ "minimum": 1
3129
+ }
3130
+ },
3131
+ "required": [
3132
+ "key",
3133
+ "occurrence"
3134
+ ],
3135
+ "additionalProperties": false
3136
+ }
3137
+ }
3138
+ },
3139
+ "required": [
3140
+ "operation",
3141
+ "target",
3142
+ "path"
3143
+ ],
3144
+ "additionalProperties": false
3145
+ },
3146
+ {
3147
+ "type": "object",
3148
+ "properties": {
3149
+ "operation": {
3150
+ "const": "add_definition_field"
3151
+ },
3152
+ "target": {
3153
+ "type": "string"
3154
+ },
3155
+ "path": {
3156
+ "type": "array",
3157
+ "minItems": 0,
3158
+ "maxItems": 8,
3159
+ "items": {
3160
+ "type": "object",
3161
+ "properties": {
3162
+ "key": {
3163
+ "type": "string",
3164
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3165
+ },
3166
+ "occurrence": {
3167
+ "type": "integer",
3168
+ "minimum": 1
3169
+ }
3170
+ },
3171
+ "required": [
3172
+ "key",
3173
+ "occurrence"
3174
+ ],
3175
+ "additionalProperties": false
3176
+ }
3177
+ },
3178
+ "entry": {
3179
+ "type": "object",
3180
+ "properties": {
3181
+ "key": {
3182
+ "type": "string",
3183
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3184
+ },
3185
+ "value": {
3186
+ "oneOf": [
3187
+ {
3188
+ "type": "object",
3189
+ "properties": {
3190
+ "kind": {
3191
+ "const": "identifier"
3192
+ },
3193
+ "value": {
3194
+ "type": "string",
3195
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3196
+ }
3197
+ },
3198
+ "required": [
3199
+ "kind",
3200
+ "value"
3201
+ ],
3202
+ "additionalProperties": false
3203
+ },
3204
+ {
3205
+ "type": "object",
3206
+ "properties": {
3207
+ "kind": {
3208
+ "const": "string"
3209
+ },
3210
+ "value": {
3211
+ "type": "string",
3212
+ "maxLength": 4096,
3213
+ "pattern": "^[^\u0000-\u001f]*$"
3214
+ }
3215
+ },
3216
+ "required": [
3217
+ "kind",
3218
+ "value"
3219
+ ],
3220
+ "additionalProperties": false
3221
+ },
3222
+ {
3223
+ "type": "object",
3224
+ "properties": {
3225
+ "kind": {
3226
+ "const": "number"
3227
+ },
3228
+ "value": {
3229
+ "type": "number"
3230
+ }
3231
+ },
3232
+ "required": [
3233
+ "kind",
3234
+ "value"
3235
+ ],
3236
+ "additionalProperties": false
3237
+ },
3238
+ {
3239
+ "type": "object",
3240
+ "properties": {
3241
+ "kind": {
3242
+ "const": "boolean"
3243
+ },
3244
+ "value": {
3245
+ "type": "boolean"
3246
+ }
3247
+ },
3248
+ "required": [
3249
+ "kind",
3250
+ "value"
3251
+ ],
3252
+ "additionalProperties": false
3253
+ },
3254
+ {
3255
+ "type": "object",
3256
+ "properties": {
3257
+ "kind": {
3258
+ "const": "list"
3259
+ },
3260
+ "values": {
3261
+ "type": "array",
3262
+ "maxItems": 256,
3263
+ "items": {
3264
+ "type": "object",
3265
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
3266
+ "properties": {
3267
+ "kind": {
3268
+ "type": "string",
3269
+ "enum": [
3270
+ "identifier",
3271
+ "string",
3272
+ "number",
3273
+ "boolean",
3274
+ "list",
3275
+ "block"
3276
+ ]
3277
+ }
3278
+ },
3279
+ "required": [
3280
+ "kind"
3281
+ ],
3282
+ "additionalProperties": true
3283
+ }
3284
+ }
3285
+ },
3286
+ "required": [
3287
+ "kind",
3288
+ "values"
3289
+ ],
3290
+ "additionalProperties": false
3291
+ },
3292
+ {
3293
+ "type": "object",
3294
+ "properties": {
3295
+ "kind": {
3296
+ "const": "block"
3297
+ },
3298
+ "entries": {
3299
+ "type": "array",
3300
+ "maxItems": 256,
3301
+ "items": {
3302
+ "type": "object",
3303
+ "properties": {
3304
+ "key": {
3305
+ "type": "string",
3306
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3307
+ },
3308
+ "value": {
3309
+ "type": "object",
3310
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
3311
+ "properties": {
3312
+ "kind": {
3313
+ "type": "string",
3314
+ "enum": [
3315
+ "identifier",
3316
+ "string",
3317
+ "number",
3318
+ "boolean",
3319
+ "list",
3320
+ "block"
3321
+ ]
3322
+ }
3323
+ },
3324
+ "required": [
3325
+ "kind"
3326
+ ],
3327
+ "additionalProperties": true
3328
+ }
3329
+ },
3330
+ "required": [
3331
+ "key",
3332
+ "value"
3333
+ ],
3334
+ "additionalProperties": false
3335
+ }
3336
+ }
3337
+ },
3338
+ "required": [
3339
+ "kind",
3340
+ "entries"
3341
+ ],
3342
+ "additionalProperties": false
3343
+ }
3344
+ ]
3345
+ }
3346
+ },
3347
+ "required": [
3348
+ "key",
3349
+ "value"
3350
+ ],
3351
+ "additionalProperties": false
3352
+ }
3353
+ },
3354
+ "required": [
3355
+ "operation",
3356
+ "target",
3357
+ "path",
3358
+ "entry"
3359
+ ],
3360
+ "additionalProperties": false
3361
+ },
3362
+ {
3363
+ "type": "object",
3364
+ "properties": {
3365
+ "operation": {
3366
+ "const": "add_scripted_effect_call"
3367
+ },
3368
+ "target": {
3369
+ "type": "string"
3370
+ },
3371
+ "script": {
3372
+ "type": "string",
3373
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3374
+ },
3375
+ "arguments": {
3376
+ "type": "array",
3377
+ "maxItems": 256,
3378
+ "items": {
3379
+ "type": "object",
3380
+ "properties": {
3381
+ "key": {
3382
+ "type": "string",
3383
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3384
+ },
3385
+ "value": {
3386
+ "oneOf": [
3387
+ {
3388
+ "type": "object",
3389
+ "properties": {
3390
+ "kind": {
3391
+ "const": "identifier"
3392
+ },
3393
+ "value": {
3394
+ "type": "string",
3395
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3396
+ }
3397
+ },
3398
+ "required": [
3399
+ "kind",
3400
+ "value"
3401
+ ],
3402
+ "additionalProperties": false
3403
+ },
3404
+ {
3405
+ "type": "object",
3406
+ "properties": {
3407
+ "kind": {
3408
+ "const": "string"
3409
+ },
3410
+ "value": {
3411
+ "type": "string",
3412
+ "maxLength": 4096,
3413
+ "pattern": "^[^\u0000-\u001f]*$"
3414
+ }
3415
+ },
3416
+ "required": [
3417
+ "kind",
3418
+ "value"
3419
+ ],
3420
+ "additionalProperties": false
3421
+ },
3422
+ {
3423
+ "type": "object",
3424
+ "properties": {
3425
+ "kind": {
3426
+ "const": "number"
3427
+ },
3428
+ "value": {
3429
+ "type": "number"
3430
+ }
3431
+ },
3432
+ "required": [
3433
+ "kind",
3434
+ "value"
3435
+ ],
3436
+ "additionalProperties": false
3437
+ },
3438
+ {
3439
+ "type": "object",
3440
+ "properties": {
3441
+ "kind": {
3442
+ "const": "boolean"
3443
+ },
3444
+ "value": {
3445
+ "type": "boolean"
3446
+ }
3447
+ },
3448
+ "required": [
3449
+ "kind",
3450
+ "value"
3451
+ ],
3452
+ "additionalProperties": false
3453
+ },
3454
+ {
3455
+ "type": "object",
3456
+ "properties": {
3457
+ "kind": {
3458
+ "const": "list"
3459
+ },
3460
+ "values": {
3461
+ "type": "array",
3462
+ "maxItems": 256,
3463
+ "items": {
3464
+ "type": "object",
3465
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
3466
+ "properties": {
3467
+ "kind": {
3468
+ "type": "string",
3469
+ "enum": [
3470
+ "identifier",
3471
+ "string",
3472
+ "number",
3473
+ "boolean",
3474
+ "list",
3475
+ "block"
3476
+ ]
3477
+ }
3478
+ },
3479
+ "required": [
3480
+ "kind"
3481
+ ],
3482
+ "additionalProperties": true
3483
+ }
3484
+ }
3485
+ },
3486
+ "required": [
3487
+ "kind",
3488
+ "values"
3489
+ ],
3490
+ "additionalProperties": false
3491
+ },
3492
+ {
3493
+ "type": "object",
3494
+ "properties": {
3495
+ "kind": {
3496
+ "const": "block"
3497
+ },
3498
+ "entries": {
3499
+ "type": "array",
3500
+ "maxItems": 256,
3501
+ "items": {
3502
+ "type": "object",
3503
+ "properties": {
3504
+ "key": {
3505
+ "type": "string",
3506
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3507
+ },
3508
+ "value": {
3509
+ "type": "object",
3510
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
3511
+ "properties": {
3512
+ "kind": {
3513
+ "type": "string",
3514
+ "enum": [
3515
+ "identifier",
3516
+ "string",
3517
+ "number",
3518
+ "boolean",
3519
+ "list",
3520
+ "block"
3521
+ ]
3522
+ }
3523
+ },
3524
+ "required": [
3525
+ "kind"
3526
+ ],
3527
+ "additionalProperties": true
3528
+ }
3529
+ },
3530
+ "required": [
3531
+ "key",
3532
+ "value"
3533
+ ],
3534
+ "additionalProperties": false
3535
+ }
3536
+ }
3537
+ },
3538
+ "required": [
3539
+ "kind",
3540
+ "entries"
3541
+ ],
3542
+ "additionalProperties": false
3543
+ }
3544
+ ]
3545
+ }
3546
+ },
3547
+ "required": [
3548
+ "key",
3549
+ "value"
3550
+ ],
3551
+ "additionalProperties": false
3552
+ }
3553
+ },
3554
+ "containerPath": {
3555
+ "type": "array",
3556
+ "maxItems": 8,
3557
+ "items": {
3558
+ "type": "string"
3559
+ }
3560
+ }
3561
+ },
3562
+ "required": [
3563
+ "operation",
3564
+ "target",
3565
+ "script"
3566
+ ],
3567
+ "additionalProperties": false
3568
+ },
3569
+ {
3570
+ "type": "object",
3571
+ "properties": {
3572
+ "operation": {
3573
+ "const": "add_scripted_trigger_call"
3574
+ },
3575
+ "target": {
3576
+ "type": "string"
3577
+ },
3578
+ "script": {
3579
+ "type": "string",
3580
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3581
+ },
3582
+ "arguments": {
3583
+ "type": "array",
3584
+ "maxItems": 256,
3585
+ "items": {
3586
+ "type": "object",
3587
+ "properties": {
3588
+ "key": {
3589
+ "type": "string",
3590
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3591
+ },
3592
+ "value": {
3593
+ "oneOf": [
3594
+ {
3595
+ "type": "object",
3596
+ "properties": {
3597
+ "kind": {
3598
+ "const": "identifier"
3599
+ },
3600
+ "value": {
3601
+ "type": "string",
3602
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3603
+ }
3604
+ },
3605
+ "required": [
3606
+ "kind",
3607
+ "value"
3608
+ ],
3609
+ "additionalProperties": false
3610
+ },
3611
+ {
3612
+ "type": "object",
3613
+ "properties": {
3614
+ "kind": {
3615
+ "const": "string"
3616
+ },
3617
+ "value": {
3618
+ "type": "string",
3619
+ "maxLength": 4096,
3620
+ "pattern": "^[^\u0000-\u001f]*$"
3621
+ }
3622
+ },
3623
+ "required": [
3624
+ "kind",
3625
+ "value"
3626
+ ],
3627
+ "additionalProperties": false
3628
+ },
3629
+ {
3630
+ "type": "object",
3631
+ "properties": {
3632
+ "kind": {
3633
+ "const": "number"
3634
+ },
3635
+ "value": {
3636
+ "type": "number"
3637
+ }
3638
+ },
3639
+ "required": [
3640
+ "kind",
3641
+ "value"
3642
+ ],
3643
+ "additionalProperties": false
3644
+ },
3645
+ {
3646
+ "type": "object",
3647
+ "properties": {
3648
+ "kind": {
3649
+ "const": "boolean"
3650
+ },
3651
+ "value": {
3652
+ "type": "boolean"
3653
+ }
3654
+ },
3655
+ "required": [
3656
+ "kind",
3657
+ "value"
3658
+ ],
3659
+ "additionalProperties": false
3660
+ },
3661
+ {
3662
+ "type": "object",
3663
+ "properties": {
3664
+ "kind": {
3665
+ "const": "list"
3666
+ },
3667
+ "values": {
3668
+ "type": "array",
3669
+ "maxItems": 256,
3670
+ "items": {
3671
+ "type": "object",
3672
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
3673
+ "properties": {
3674
+ "kind": {
3675
+ "type": "string",
3676
+ "enum": [
3677
+ "identifier",
3678
+ "string",
3679
+ "number",
3680
+ "boolean",
3681
+ "list",
3682
+ "block"
3683
+ ]
3684
+ }
3685
+ },
3686
+ "required": [
3687
+ "kind"
3688
+ ],
3689
+ "additionalProperties": true
3690
+ }
3691
+ }
3692
+ },
3693
+ "required": [
3694
+ "kind",
3695
+ "values"
3696
+ ],
3697
+ "additionalProperties": false
3698
+ },
3699
+ {
3700
+ "type": "object",
3701
+ "properties": {
3702
+ "kind": {
3703
+ "const": "block"
3704
+ },
3705
+ "entries": {
3706
+ "type": "array",
3707
+ "maxItems": 256,
3708
+ "items": {
3709
+ "type": "object",
3710
+ "properties": {
3711
+ "key": {
3712
+ "type": "string",
3713
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3714
+ },
3715
+ "value": {
3716
+ "type": "object",
3717
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
3718
+ "properties": {
3719
+ "kind": {
3720
+ "type": "string",
3721
+ "enum": [
3722
+ "identifier",
3723
+ "string",
3724
+ "number",
3725
+ "boolean",
3726
+ "list",
3727
+ "block"
3728
+ ]
3729
+ }
3730
+ },
3731
+ "required": [
3732
+ "kind"
3733
+ ],
3734
+ "additionalProperties": true
3735
+ }
3736
+ },
3737
+ "required": [
3738
+ "key",
3739
+ "value"
3740
+ ],
3741
+ "additionalProperties": false
3742
+ }
3743
+ }
3744
+ },
3745
+ "required": [
3746
+ "kind",
3747
+ "entries"
3748
+ ],
3749
+ "additionalProperties": false
3750
+ }
3751
+ ]
3752
+ }
3753
+ },
3754
+ "required": [
3755
+ "key",
3756
+ "value"
3757
+ ],
3758
+ "additionalProperties": false
3759
+ }
3760
+ },
3761
+ "containerPath": {
3762
+ "type": "array",
3763
+ "maxItems": 8,
3764
+ "items": {
3765
+ "type": "string"
3766
+ }
3767
+ }
3768
+ },
3769
+ "required": [
3770
+ "operation",
3771
+ "target",
3772
+ "script"
3773
+ ],
3774
+ "additionalProperties": false
3775
+ },
3776
+ {
3777
+ "type": "object",
3778
+ "properties": {
3779
+ "operation": {
3780
+ "const": "add_on_action_entry"
3781
+ },
3782
+ "target": {
3783
+ "type": "string"
3784
+ },
3785
+ "entry": {
3786
+ "type": "object",
3787
+ "properties": {
3788
+ "key": {
3789
+ "type": "string",
3790
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3791
+ },
3792
+ "value": {
3793
+ "oneOf": [
3794
+ {
3795
+ "type": "object",
3796
+ "properties": {
3797
+ "kind": {
3798
+ "const": "identifier"
3799
+ },
3800
+ "value": {
3801
+ "type": "string",
3802
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3803
+ }
3804
+ },
3805
+ "required": [
3806
+ "kind",
3807
+ "value"
3808
+ ],
3809
+ "additionalProperties": false
3810
+ },
3811
+ {
3812
+ "type": "object",
3813
+ "properties": {
3814
+ "kind": {
3815
+ "const": "string"
3816
+ },
3817
+ "value": {
3818
+ "type": "string",
3819
+ "maxLength": 4096,
3820
+ "pattern": "^[^\u0000-\u001f]*$"
3821
+ }
3822
+ },
3823
+ "required": [
3824
+ "kind",
3825
+ "value"
3826
+ ],
3827
+ "additionalProperties": false
3828
+ },
3829
+ {
3830
+ "type": "object",
3831
+ "properties": {
3832
+ "kind": {
3833
+ "const": "number"
3834
+ },
3835
+ "value": {
3836
+ "type": "number"
3837
+ }
3838
+ },
3839
+ "required": [
3840
+ "kind",
3841
+ "value"
3842
+ ],
3843
+ "additionalProperties": false
3844
+ },
3845
+ {
3846
+ "type": "object",
3847
+ "properties": {
3848
+ "kind": {
3849
+ "const": "boolean"
3850
+ },
3851
+ "value": {
3852
+ "type": "boolean"
3853
+ }
3854
+ },
3855
+ "required": [
3856
+ "kind",
3857
+ "value"
3858
+ ],
3859
+ "additionalProperties": false
3860
+ },
3861
+ {
3862
+ "type": "object",
3863
+ "properties": {
3864
+ "kind": {
3865
+ "const": "list"
3866
+ },
3867
+ "values": {
3868
+ "type": "array",
3869
+ "maxItems": 256,
3870
+ "items": {
3871
+ "type": "object",
3872
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
3873
+ "properties": {
3874
+ "kind": {
3875
+ "type": "string",
3876
+ "enum": [
3877
+ "identifier",
3878
+ "string",
3879
+ "number",
3880
+ "boolean",
3881
+ "list",
3882
+ "block"
3883
+ ]
3884
+ }
3885
+ },
3886
+ "required": [
3887
+ "kind"
3888
+ ],
3889
+ "additionalProperties": true
3890
+ }
3891
+ }
3892
+ },
3893
+ "required": [
3894
+ "kind",
3895
+ "values"
3896
+ ],
3897
+ "additionalProperties": false
3898
+ },
3899
+ {
3900
+ "type": "object",
3901
+ "properties": {
3902
+ "kind": {
3903
+ "const": "block"
3904
+ },
3905
+ "entries": {
3906
+ "type": "array",
3907
+ "maxItems": 256,
3908
+ "items": {
3909
+ "type": "object",
3910
+ "properties": {
3911
+ "key": {
3912
+ "type": "string",
3913
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3914
+ },
3915
+ "value": {
3916
+ "type": "object",
3917
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
3918
+ "properties": {
3919
+ "kind": {
3920
+ "type": "string",
3921
+ "enum": [
3922
+ "identifier",
3923
+ "string",
3924
+ "number",
3925
+ "boolean",
3926
+ "list",
3927
+ "block"
3928
+ ]
3929
+ }
3930
+ },
3931
+ "required": [
3932
+ "kind"
3933
+ ],
3934
+ "additionalProperties": true
3935
+ }
3936
+ },
3937
+ "required": [
3938
+ "key",
3939
+ "value"
3940
+ ],
3941
+ "additionalProperties": false
3942
+ }
3943
+ }
3944
+ },
3945
+ "required": [
3946
+ "kind",
3947
+ "entries"
3948
+ ],
3949
+ "additionalProperties": false
3950
+ }
3951
+ ]
3952
+ }
3953
+ },
3954
+ "required": [
3955
+ "key",
3956
+ "value"
3957
+ ],
3958
+ "additionalProperties": false
3959
+ }
3960
+ },
3961
+ "required": [
3962
+ "operation",
3963
+ "target",
3964
+ "entry"
3965
+ ],
3966
+ "additionalProperties": false
3967
+ },
3968
+ {
3969
+ "type": "object",
3970
+ "properties": {
3971
+ "operation": {
3972
+ "const": "bind_event_target"
3973
+ },
3974
+ "target": {
3975
+ "type": "string"
3976
+ },
3977
+ "eventTarget": {
3978
+ "type": "string",
3979
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
3980
+ },
3981
+ "containerPath": {
3982
+ "type": "array",
3983
+ "maxItems": 8,
3984
+ "items": {
3985
+ "type": "string"
3986
+ }
3987
+ }
3988
+ },
3989
+ "required": [
3990
+ "operation",
3991
+ "target",
3992
+ "eventTarget"
3993
+ ],
3994
+ "additionalProperties": false
3995
+ },
3996
+ {
3997
+ "type": "object",
3998
+ "properties": {
3999
+ "operation": {
4000
+ "const": "clear_event_target"
4001
+ },
4002
+ "target": {
4003
+ "type": "string"
4004
+ },
4005
+ "eventTarget": {
4006
+ "type": "string",
4007
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
4008
+ },
4009
+ "containerPath": {
4010
+ "type": "array",
4011
+ "maxItems": 8,
4012
+ "items": {
4013
+ "type": "string"
4014
+ }
4015
+ }
4016
+ },
4017
+ "required": [
4018
+ "operation",
4019
+ "target",
4020
+ "eventTarget"
4021
+ ],
4022
+ "additionalProperties": false
4023
+ },
4024
+ {
4025
+ "type": "object",
4026
+ "properties": {
4027
+ "operation": {
4028
+ "const": "add_variable_transition"
4029
+ },
4030
+ "target": {
4031
+ "type": "string"
4032
+ },
4033
+ "transition": {
4034
+ "type": "string",
4035
+ "enum": [
4036
+ "set_variable",
4037
+ "change_variable",
4038
+ "multiply_variable",
4039
+ "divide_variable"
4040
+ ]
4041
+ },
4042
+ "variable": {
4043
+ "type": "string",
4044
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
4045
+ },
4046
+ "value": {
4047
+ "oneOf": [
4048
+ {
4049
+ "type": "object",
4050
+ "properties": {
4051
+ "kind": {
4052
+ "const": "identifier"
4053
+ },
4054
+ "value": {
4055
+ "type": "string",
4056
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
4057
+ }
4058
+ },
4059
+ "required": [
4060
+ "kind",
4061
+ "value"
4062
+ ],
4063
+ "additionalProperties": false
4064
+ },
4065
+ {
4066
+ "type": "object",
4067
+ "properties": {
4068
+ "kind": {
4069
+ "const": "string"
4070
+ },
4071
+ "value": {
4072
+ "type": "string",
4073
+ "maxLength": 4096,
4074
+ "pattern": "^[^\u0000-\u001f]*$"
4075
+ }
4076
+ },
4077
+ "required": [
4078
+ "kind",
4079
+ "value"
4080
+ ],
4081
+ "additionalProperties": false
4082
+ },
4083
+ {
4084
+ "type": "object",
4085
+ "properties": {
4086
+ "kind": {
4087
+ "const": "number"
4088
+ },
4089
+ "value": {
4090
+ "type": "number"
4091
+ }
4092
+ },
4093
+ "required": [
4094
+ "kind",
4095
+ "value"
4096
+ ],
4097
+ "additionalProperties": false
4098
+ },
4099
+ {
4100
+ "type": "object",
4101
+ "properties": {
4102
+ "kind": {
4103
+ "const": "boolean"
4104
+ },
4105
+ "value": {
4106
+ "type": "boolean"
4107
+ }
4108
+ },
4109
+ "required": [
4110
+ "kind",
4111
+ "value"
4112
+ ],
4113
+ "additionalProperties": false
4114
+ },
4115
+ {
4116
+ "type": "object",
4117
+ "properties": {
4118
+ "kind": {
4119
+ "const": "list"
4120
+ },
4121
+ "values": {
4122
+ "type": "array",
4123
+ "maxItems": 256,
4124
+ "items": {
4125
+ "type": "object",
4126
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
4127
+ "properties": {
4128
+ "kind": {
4129
+ "type": "string",
4130
+ "enum": [
4131
+ "identifier",
4132
+ "string",
4133
+ "number",
4134
+ "boolean",
4135
+ "list",
4136
+ "block"
4137
+ ]
4138
+ }
4139
+ },
4140
+ "required": [
4141
+ "kind"
4142
+ ],
4143
+ "additionalProperties": true
4144
+ }
4145
+ }
4146
+ },
4147
+ "required": [
4148
+ "kind",
4149
+ "values"
4150
+ ],
4151
+ "additionalProperties": false
4152
+ },
4153
+ {
4154
+ "type": "object",
4155
+ "properties": {
4156
+ "kind": {
4157
+ "const": "block"
4158
+ },
4159
+ "entries": {
4160
+ "type": "array",
4161
+ "maxItems": 256,
4162
+ "items": {
4163
+ "type": "object",
4164
+ "properties": {
4165
+ "key": {
4166
+ "type": "string",
4167
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
4168
+ },
4169
+ "value": {
4170
+ "type": "object",
4171
+ "description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
4172
+ "properties": {
4173
+ "kind": {
4174
+ "type": "string",
4175
+ "enum": [
4176
+ "identifier",
4177
+ "string",
4178
+ "number",
4179
+ "boolean",
4180
+ "list",
4181
+ "block"
4182
+ ]
4183
+ }
4184
+ },
4185
+ "required": [
4186
+ "kind"
4187
+ ],
4188
+ "additionalProperties": true
4189
+ }
4190
+ },
4191
+ "required": [
4192
+ "key",
4193
+ "value"
4194
+ ],
4195
+ "additionalProperties": false
4196
+ }
4197
+ }
4198
+ },
4199
+ "required": [
4200
+ "kind",
4201
+ "entries"
4202
+ ],
4203
+ "additionalProperties": false
4204
+ }
4205
+ ]
4206
+ },
4207
+ "containerPath": {
4208
+ "type": "array",
4209
+ "maxItems": 8,
4210
+ "items": {
4211
+ "type": "string"
4212
+ }
4213
+ }
4214
+ },
4215
+ "required": [
4216
+ "operation",
4217
+ "target",
4218
+ "transition",
4219
+ "variable",
4220
+ "value"
4221
+ ],
4222
+ "additionalProperties": false
4223
+ }
4224
+ ],
4225
+ "description": "One discriminated typed mutation. Raw code/oldString/newString fields are rejected."
4226
+ }
4227
+ },
4228
+ "required": [
4229
+ "filePath",
4230
+ "operation"
4231
+ ],
4232
+ "additionalProperties": false
4233
+ }
4234
+ },
4235
+ "registry": {
4236
+ "name": "typed_pdx_write",
4237
+ "isWrite": true,
4238
+ "isReadOnly": false,
4239
+ "effect": "workspace_write",
4240
+ "riskLevel": 2,
4241
+ "concurrencyClass": "per-file-write",
4242
+ "mcpSupportsCwtOnly": false
4243
+ }
4244
+ },
4245
+ {
4246
+ "tool": {
4247
+ "name": "candidate_transaction",
4248
+ "description": "Manage one bounded candidate transaction. begin creates an overlay; validate runs host semantic evidence plus detached LSP parser/catalog validation without writing disk; commit atomically materializes validated candidates and rolls back if fresh diagnostics introduce errors; discard removes candidates.",
4249
+ "inputSchema": {
4250
+ "type": "object",
4251
+ "properties": {
4252
+ "action": {
4253
+ "type": "string",
4254
+ "enum": [
4255
+ "begin",
4256
+ "validate",
4257
+ "commit",
4258
+ "discard",
4259
+ "status"
4260
+ ]
4261
+ },
4262
+ "transactionId": {
4263
+ "type": "string",
4264
+ "description": "Required after begin."
4265
+ },
4266
+ "validationPassed": {
4267
+ "type": "boolean",
4268
+ "description": "Optional explicit veto for the exact staged fingerprint. The host always runs detached overlay validation and never trusts this flag as proof."
4269
+ }
4270
+ },
4271
+ "required": [
4272
+ "action"
4273
+ ]
4274
+ }
4275
+ },
4276
+ "registry": {
4277
+ "name": "candidate_transaction",
4278
+ "isWrite": true,
4279
+ "isReadOnly": false,
4280
+ "effect": "workspace_write",
4281
+ "riskLevel": 2,
4282
+ "concurrencyClass": "per-file-write",
4283
+ "mcpSupportsCwtOnly": false
4284
+ }
4285
+ },
4286
+ {
4287
+ "tool": {
4288
+ "name": "convert_image_to_dds",
4289
+ "description": "Convert a PNG/JPG/TGA image to DDS format (required by Clausewitz engine for icons, sprites, and textures). Uses ImageMagick. Supports DXT5/BC3, DXT1/BC1, DXT3/BC2, and uncompressed DDS output. Mipmaps are disabled by default. Requires ImageMagick installed and accessible. Custom path can be set via stellarisLanguageServices.ai.imageMagickPath setting.",
4290
+ "inputSchema": {
4291
+ "type": "object",
4292
+ "properties": {
4293
+ "sourcePath": {
4294
+ "type": "string",
4295
+ "description": "Absolute path to the source image file (PNG, JPG, or TGA)."
4296
+ },
4297
+ "outputDir": {
4298
+ "type": "string",
4299
+ "description": "Directory to write the converted DDS file to. Can be absolute or relative to workspace root (e.g. \"gfx/interface/icons/\")."
4300
+ },
4301
+ "compression": {
4302
+ "type": "string",
4303
+ "enum": [
4304
+ "dxt5",
4305
+ "dxt1",
4306
+ "dxt3",
4307
+ "none"
4308
+ ],
4309
+ "description": "DDS compression type. \"dxt5\" (default): supports alpha channel, use for most icons. \"dxt1\": no alpha, smaller file size. \"dxt3\": legacy explicit alpha. \"none\": uncompressed."
4310
+ },
4311
+ "generateMipmaps": {
4312
+ "type": "boolean",
4313
+ "description": "Whether to generate mipmaps (default false)."
4314
+ }
4315
+ },
4316
+ "required": [
4317
+ "sourcePath"
4318
+ ]
4319
+ }
4320
+ },
4321
+ "registry": {
4322
+ "name": "convert_image_to_dds",
4323
+ "isWrite": false,
4324
+ "isReadOnly": false,
4325
+ "effect": "media",
4326
+ "riskLevel": 2,
4327
+ "concurrencyClass": "interactive",
4328
+ "mcpSupportsCwtOnly": false
4329
+ }
4330
+ },
4331
+ {
4332
+ "tool": {
4333
+ "name": "convert_audio",
4334
+ "description": "Convert audio files between formats (MP3->OGG for BGM/voice, MP3->WAV for UI sound effects). Uses ffmpeg. Clausewitz engine requires .ogg (Vorbis) for music/voice and .wav (16-bit PCM) for UI sounds. Requires ffmpeg installed and accessible. Custom path can be set via stellarisLanguageServices.ai.ffmpegPath setting.",
4335
+ "inputSchema": {
4336
+ "type": "object",
4337
+ "properties": {
4338
+ "sourcePath": {
4339
+ "type": "string",
4340
+ "description": "Absolute path to the source audio file."
4341
+ },
4342
+ "outputDir": {
4343
+ "type": "string",
4344
+ "description": "Directory to write the converted file to. Can be absolute or relative to workspace root (e.g. \"sound/vo/\")."
4345
+ },
4346
+ "targetFormat": {
4347
+ "type": "string",
4348
+ "enum": [
4349
+ "ogg",
4350
+ "wav"
4351
+ ],
4352
+ "description": "Target audio format. \"ogg\": Vorbis encoding for BGM and voice lines. \"wav\": 16-bit PCM for UI sound effects."
4353
+ },
4354
+ "sampleRate": {
4355
+ "type": "number",
4356
+ "description": "Output sample rate in Hz (e.g. 44100, 48000). Default: keep original."
4357
+ },
4358
+ "channels": {
4359
+ "type": "number",
4360
+ "description": "Number of audio channels. 1 = mono (recommended for voice/sfx), 2 = stereo (recommended for music). Default: keep original."
4361
+ }
4362
+ },
4363
+ "required": [
4364
+ "sourcePath",
4365
+ "targetFormat"
4366
+ ]
4367
+ }
4368
+ },
4369
+ "registry": {
4370
+ "name": "convert_audio",
4371
+ "isWrite": false,
4372
+ "isReadOnly": false,
4373
+ "effect": "media",
4374
+ "riskLevel": 2,
4375
+ "concurrencyClass": "interactive",
4376
+ "mcpSupportsCwtOnly": false
4377
+ }
4378
+ },
4379
+ {
4380
+ "tool": {
4381
+ "name": "deploy_mod_asset",
4382
+ "description": "Copy a generated/converted media asset file to its final location in the mod workspace. Requires user permission. Use this after convert_image_to_dds or convert_audio to place files in the correct game directory (e.g. gfx/interface/icons/, sound/vo/). The retract system can undo this operation.",
4383
+ "inputSchema": {
4384
+ "type": "object",
4385
+ "properties": {
4386
+ "sourcePath": {
4387
+ "type": "string",
4388
+ "description": "Absolute path to the source file to deploy."
4389
+ },
4390
+ "targetRelativePath": {
4391
+ "type": "string",
4392
+ "description": "Target path relative to workspace root (e.g. \"gfx/interface/icons/tech/my_tech.dds\" or \"sound/vo/my_voice.ogg\")."
4393
+ },
4394
+ "overwrite": {
4395
+ "type": "boolean",
4396
+ "description": "If true, overwrite existing file at target. Default: false (fails if file exists)."
4397
+ }
4398
+ },
4399
+ "required": [
4400
+ "sourcePath",
4401
+ "targetRelativePath"
4402
+ ]
4403
+ }
4404
+ },
4405
+ "registry": {
4406
+ "name": "deploy_mod_asset",
4407
+ "isWrite": true,
4408
+ "isReadOnly": false,
4409
+ "effect": "media",
4410
+ "riskLevel": 2,
4411
+ "concurrencyClass": "interactive",
4412
+ "mcpSupportsCwtOnly": false
1575
4413
  }
1576
4414
  }
1577
4415
  ];