cwtools-mcp 0.2.7 → 0.2.9
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/config.js +4 -0
- package/dist/cwtools-mcp.cjs +3168 -21
- package/dist/mcp/bridgeProxy.js +5 -2
- package/dist/mcp/resources.d.ts +2 -2
- package/dist/mcp/resources.js +110 -2
- package/dist/mcp/toolHandlers.js +3 -4
- package/dist/mcp/toolRegistrar.d.ts +3 -1
- package/dist/mcp/toolRegistrar.js +2 -2
- package/dist/server.js +2 -2
- package/package.json +2 -2
package/dist/cwtools-mcp.cjs
CHANGED
|
@@ -107,6 +107,7 @@ var require_config = __commonJS({
|
|
|
107
107
|
config.port = readPort(readValue(argv, ++index, arg));
|
|
108
108
|
break;
|
|
109
109
|
case "--enable-writes":
|
|
110
|
+
case "--allow-domain-writes":
|
|
110
111
|
config.enableWrites = true;
|
|
111
112
|
break;
|
|
112
113
|
case "--force-start":
|
|
@@ -148,6 +149,8 @@ var require_config = __commonJS({
|
|
|
148
149
|
config.stdio = false;
|
|
149
150
|
} else if (arg === "--standalone") {
|
|
150
151
|
config.standalone = true;
|
|
152
|
+
} else if (arg === "--allow-domain-writes" || arg === "--enable-writes") {
|
|
153
|
+
config.enableWrites = true;
|
|
151
154
|
} else {
|
|
152
155
|
throw new Error(`Unknown argument: ${arg}
|
|
153
156
|
|
|
@@ -942,6 +945,216 @@ var require_mcpTools = __commonJS({
|
|
|
942
945
|
"concurrencyClass": "lsp-limited"
|
|
943
946
|
}
|
|
944
947
|
},
|
|
948
|
+
{
|
|
949
|
+
"tool": {
|
|
950
|
+
"name": "query_targeting_weight",
|
|
951
|
+
"description": "Read-only. Compute the Stellaris 4.5.2 targeting weight chain for one attacker ship, one weapon component and one candidate target, returning the full multiplicative decomposition. Stage 1 W(ship) = size x tracking-evasion x distance x preset weight x low-health x unarmed/starbase x random, plus the whole-target veto; Stage 2 S(weapon) = (shield+armor+hull damage split) x hit chance x preset weight x kill bonus, then + target_weights. The stages are independent argmax passes, so use_ship_main_target = yes weapons never use Stage 2; ai_weight is unrelated.",
|
|
952
|
+
"inputSchema": {
|
|
953
|
+
"type": "object",
|
|
954
|
+
"properties": {
|
|
955
|
+
"attacker": {
|
|
956
|
+
"type": "object",
|
|
957
|
+
"description": "Attacking ship.",
|
|
958
|
+
"properties": {
|
|
959
|
+
"tracking": {
|
|
960
|
+
"type": "number",
|
|
961
|
+
"description": "Ship tracking 0..1, scaled by the ship tracking mult."
|
|
962
|
+
},
|
|
963
|
+
"sizeMultiplier": {
|
|
964
|
+
"type": "number",
|
|
965
|
+
"description": "Attacker combat_size_multiplier; veto needs >= 8."
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
"required": [
|
|
969
|
+
"tracking",
|
|
970
|
+
"sizeMultiplier"
|
|
971
|
+
],
|
|
972
|
+
"additionalProperties": false
|
|
973
|
+
},
|
|
974
|
+
"weapon": {
|
|
975
|
+
"type": "object",
|
|
976
|
+
"description": "Weapon component template values, already modifier-corrected.",
|
|
977
|
+
"properties": {
|
|
978
|
+
"minDamage": {
|
|
979
|
+
"type": "number",
|
|
980
|
+
"description": "min_damage."
|
|
981
|
+
},
|
|
982
|
+
"maxDamage": {
|
|
983
|
+
"type": "number",
|
|
984
|
+
"description": "max_damage; the path uses the interval midpoint."
|
|
985
|
+
},
|
|
986
|
+
"accuracy": {
|
|
987
|
+
"type": "number",
|
|
988
|
+
"description": "accuracy 0..1; feeds hit chance p."
|
|
989
|
+
},
|
|
990
|
+
"tracking": {
|
|
991
|
+
"type": "number",
|
|
992
|
+
"description": "tracking 0..1; weapon rate, not scaled by the ship mult."
|
|
993
|
+
},
|
|
994
|
+
"shieldDamage": {
|
|
995
|
+
"type": "number",
|
|
996
|
+
"description": "shield_damage (ms), shield layer output mult."
|
|
997
|
+
},
|
|
998
|
+
"armorDamage": {
|
|
999
|
+
"type": "number",
|
|
1000
|
+
"description": "armor_damage (ma), armor layer output mult."
|
|
1001
|
+
},
|
|
1002
|
+
"hullDamage": {
|
|
1003
|
+
"type": "number",
|
|
1004
|
+
"description": "hull_damage (mh), leftover hull output mult."
|
|
1005
|
+
},
|
|
1006
|
+
"shieldPenetration": {
|
|
1007
|
+
"type": "number",
|
|
1008
|
+
"description": "shield_penetration 0..1; minus hardening, clamped [0,1]."
|
|
1009
|
+
},
|
|
1010
|
+
"armorPenetration": {
|
|
1011
|
+
"type": "number",
|
|
1012
|
+
"description": "armor_penetration 0..1; minus hardening, clamped [0,1]."
|
|
1013
|
+
},
|
|
1014
|
+
"sizeDamageFactor": {
|
|
1015
|
+
"type": "number",
|
|
1016
|
+
"description": "size_damage_factor; when > 0 scales damage by (1 + clamp(size,1,100)*factor)."
|
|
1017
|
+
},
|
|
1018
|
+
"targetWeights": {
|
|
1019
|
+
"type": "object",
|
|
1020
|
+
"description": "target_weights table: ship_size id -> additive wk, NOT a multiplier; it can outrank the chain.",
|
|
1021
|
+
"additionalProperties": {
|
|
1022
|
+
"type": "number"
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
},
|
|
1026
|
+
"required": [
|
|
1027
|
+
"minDamage",
|
|
1028
|
+
"maxDamage",
|
|
1029
|
+
"accuracy",
|
|
1030
|
+
"tracking",
|
|
1031
|
+
"shieldDamage",
|
|
1032
|
+
"armorDamage",
|
|
1033
|
+
"hullDamage"
|
|
1034
|
+
],
|
|
1035
|
+
"additionalProperties": false
|
|
1036
|
+
},
|
|
1037
|
+
"target": {
|
|
1038
|
+
"type": "object",
|
|
1039
|
+
"description": "Candidate target ship state at the modelled tick.",
|
|
1040
|
+
"properties": {
|
|
1041
|
+
"shipSizeId": {
|
|
1042
|
+
"type": "string",
|
|
1043
|
+
"description": "ship_size id; only used for weapon.targetWeights."
|
|
1044
|
+
},
|
|
1045
|
+
"sizeMultiplier": {
|
|
1046
|
+
"type": "number",
|
|
1047
|
+
"description": "Target combat_size_multiplier."
|
|
1048
|
+
},
|
|
1049
|
+
"evasion": {
|
|
1050
|
+
"type": "number",
|
|
1051
|
+
"description": "Target evasion 0..1 (cap SHIP_MAX_EVASION 0.9)."
|
|
1052
|
+
},
|
|
1053
|
+
"distance": {
|
|
1054
|
+
"type": "number",
|
|
1055
|
+
"description": "Distance in engine units; the factor floors at 450."
|
|
1056
|
+
},
|
|
1057
|
+
"hull": {
|
|
1058
|
+
"type": "number",
|
|
1059
|
+
"description": "Current hull (Vtgt); right side of the kill test."
|
|
1060
|
+
},
|
|
1061
|
+
"maxHull": {
|
|
1062
|
+
"type": "number",
|
|
1063
|
+
"description": "Hull maximum; omit to skip the low-health factor."
|
|
1064
|
+
},
|
|
1065
|
+
"shield": {
|
|
1066
|
+
"type": "number",
|
|
1067
|
+
"description": "Current shields."
|
|
1068
|
+
},
|
|
1069
|
+
"armor": {
|
|
1070
|
+
"type": "number",
|
|
1071
|
+
"description": "Current armor."
|
|
1072
|
+
},
|
|
1073
|
+
"shieldHardening": {
|
|
1074
|
+
"type": "number",
|
|
1075
|
+
"description": "Shield hardening; minus shield_penetration."
|
|
1076
|
+
},
|
|
1077
|
+
"armorHardening": {
|
|
1078
|
+
"type": "number",
|
|
1079
|
+
"description": "Armor hardening; minus armor_penetration."
|
|
1080
|
+
},
|
|
1081
|
+
"armed": {
|
|
1082
|
+
"type": "boolean",
|
|
1083
|
+
"description": "Panel DPD > 0; when false both stages x the unarmed weight."
|
|
1084
|
+
},
|
|
1085
|
+
"isStarbase": {
|
|
1086
|
+
"type": "boolean",
|
|
1087
|
+
"description": "Starbase or megastructure; x starbase weight unless it is the current main target."
|
|
1088
|
+
},
|
|
1089
|
+
"isCurrentMainTarget": {
|
|
1090
|
+
"type": "boolean",
|
|
1091
|
+
"description": "Already the ship main target: x1.1 stickiness unless targetFocus is true."
|
|
1092
|
+
},
|
|
1093
|
+
"isRecentNonLatest": {
|
|
1094
|
+
"type": "boolean",
|
|
1095
|
+
"description": "Recent-target memory, not the latest entry: x recent-target penalizer."
|
|
1096
|
+
}
|
|
1097
|
+
},
|
|
1098
|
+
"required": [
|
|
1099
|
+
"sizeMultiplier",
|
|
1100
|
+
"evasion",
|
|
1101
|
+
"distance",
|
|
1102
|
+
"hull",
|
|
1103
|
+
"shield",
|
|
1104
|
+
"armor",
|
|
1105
|
+
"armed"
|
|
1106
|
+
],
|
|
1107
|
+
"additionalProperties": false
|
|
1108
|
+
},
|
|
1109
|
+
"defines": {
|
|
1110
|
+
"type": "object",
|
|
1111
|
+
"description": "Optional define overrides; omitted keys keep vanilla. Keys: sizeSlope, sizeMax, trackingMult, evasionWeight, lowHealthThreshold, lowHealthWeight, distanceWeight, distanceWeightMin, unarmedWeight, starbaseWeight, avoidMinShipSize, avoidThreshold, randomWeight, currentTargetMultiplier, recentTargetPenalizer. Every effective value is echoed in the result.",
|
|
1112
|
+
"additionalProperties": {
|
|
1113
|
+
"type": "number"
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
"rho": {
|
|
1117
|
+
"type": "number",
|
|
1118
|
+
"description": "Battle-start random in [0,1); preset weight = 1 + rho + mult. Default 0."
|
|
1119
|
+
},
|
|
1120
|
+
"targetWeightMultModifier": {
|
|
1121
|
+
"type": "number",
|
|
1122
|
+
"description": "ship_target_weight_mult modifier (ship_sizes, auras), e.g. 0.5."
|
|
1123
|
+
},
|
|
1124
|
+
"randomRoll": {
|
|
1125
|
+
"type": "number",
|
|
1126
|
+
"description": "Random perturbation r in [0,1); used only when useRandom is true."
|
|
1127
|
+
},
|
|
1128
|
+
"useRandom": {
|
|
1129
|
+
"type": "boolean",
|
|
1130
|
+
"description": "Engine default is true (up to 4x). Default false for reproducible results."
|
|
1131
|
+
},
|
|
1132
|
+
"fleetHasHittable": {
|
|
1133
|
+
"type": "boolean",
|
|
1134
|
+
"description": "Veto needs at least one hittable ship in the target fleet. Default false."
|
|
1135
|
+
},
|
|
1136
|
+
"targetFocus": {
|
|
1137
|
+
"type": "boolean",
|
|
1138
|
+
"description": "target_focus = spread (engine 1): drops x1.1 stickiness, throttle 50 ticks. Default false."
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
"required": [
|
|
1142
|
+
"attacker",
|
|
1143
|
+
"weapon",
|
|
1144
|
+
"target"
|
|
1145
|
+
],
|
|
1146
|
+
"additionalProperties": false
|
|
1147
|
+
}
|
|
1148
|
+
},
|
|
1149
|
+
"registry": {
|
|
1150
|
+
"name": "query_targeting_weight",
|
|
1151
|
+
"isWrite": false,
|
|
1152
|
+
"isReadOnly": true,
|
|
1153
|
+
"effect": "workspace_read",
|
|
1154
|
+
"riskLevel": 0,
|
|
1155
|
+
"concurrencyClass": "parallel"
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
945
1158
|
{
|
|
946
1159
|
"tool": {
|
|
947
1160
|
"name": "query_localisation_index",
|
|
@@ -1587,6 +1800,2799 @@ var require_mcpTools = __commonJS({
|
|
|
1587
1800
|
"riskLevel": 0,
|
|
1588
1801
|
"concurrencyClass": "lsp-limited"
|
|
1589
1802
|
}
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
"tool": {
|
|
1806
|
+
"name": "get_ide_context",
|
|
1807
|
+
"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).",
|
|
1808
|
+
"inputSchema": {
|
|
1809
|
+
"type": "object",
|
|
1810
|
+
"properties": {
|
|
1811
|
+
"includeSelectionText": {
|
|
1812
|
+
"type": "boolean",
|
|
1813
|
+
"description": "Whether to include the selected text in the active editor (bounded to 4000 chars). Defaults to true."
|
|
1814
|
+
},
|
|
1815
|
+
"includeActiveFileDiagnostics": {
|
|
1816
|
+
"type": "boolean",
|
|
1817
|
+
"description": "Whether to include current diagnostics for the active editor file. Defaults to true."
|
|
1818
|
+
}
|
|
1819
|
+
},
|
|
1820
|
+
"required": []
|
|
1821
|
+
}
|
|
1822
|
+
},
|
|
1823
|
+
"registry": {
|
|
1824
|
+
"name": "get_ide_context",
|
|
1825
|
+
"isWrite": false,
|
|
1826
|
+
"isReadOnly": true,
|
|
1827
|
+
"effect": "workspace_read",
|
|
1828
|
+
"riskLevel": 0,
|
|
1829
|
+
"concurrencyClass": "parallel"
|
|
1830
|
+
}
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
"tool": {
|
|
1834
|
+
"name": "open_in_visual_editor",
|
|
1835
|
+
"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.",
|
|
1836
|
+
"inputSchema": {
|
|
1837
|
+
"type": "object",
|
|
1838
|
+
"properties": {
|
|
1839
|
+
"file": {
|
|
1840
|
+
"type": "string",
|
|
1841
|
+
"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."
|
|
1842
|
+
},
|
|
1843
|
+
"editor": {
|
|
1844
|
+
"type": "string",
|
|
1845
|
+
"enum": [
|
|
1846
|
+
"auto",
|
|
1847
|
+
"gui",
|
|
1848
|
+
"entity",
|
|
1849
|
+
"particle",
|
|
1850
|
+
"solar_system",
|
|
1851
|
+
"tech_tree",
|
|
1852
|
+
"event_chain",
|
|
1853
|
+
"target_weight"
|
|
1854
|
+
],
|
|
1855
|
+
"description": "Visual editor to open. Defaults to auto (inferred from file extension and directory)."
|
|
1856
|
+
},
|
|
1857
|
+
"line": {
|
|
1858
|
+
"type": "integer",
|
|
1859
|
+
"minimum": 1,
|
|
1860
|
+
"description": "Optional 1-based line number to focus (used by event_chain or target_weight cursor seeding)."
|
|
1861
|
+
}
|
|
1862
|
+
},
|
|
1863
|
+
"required": []
|
|
1864
|
+
}
|
|
1865
|
+
},
|
|
1866
|
+
"registry": {
|
|
1867
|
+
"name": "open_in_visual_editor",
|
|
1868
|
+
"isWrite": false,
|
|
1869
|
+
"isReadOnly": true,
|
|
1870
|
+
"effect": "workspace_read",
|
|
1871
|
+
"riskLevel": 0,
|
|
1872
|
+
"concurrencyClass": "parallel"
|
|
1873
|
+
}
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
"tool": {
|
|
1877
|
+
"name": "write_localisation",
|
|
1878
|
+
"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.",
|
|
1879
|
+
"inputSchema": {
|
|
1880
|
+
"type": "object",
|
|
1881
|
+
"properties": {
|
|
1882
|
+
"filePath": {
|
|
1883
|
+
"type": "string",
|
|
1884
|
+
"description": "Path to the real .yml localisation file (absolute or relative to workspace), under localisation/ or localization/. Do not use .cwtools paths."
|
|
1885
|
+
},
|
|
1886
|
+
"language": {
|
|
1887
|
+
"type": "string",
|
|
1888
|
+
"description": 'Language header, e.g. "l_english", "l_simp_chinese", "l_braz_por". Used when creating a new file.'
|
|
1889
|
+
},
|
|
1890
|
+
"languages": {
|
|
1891
|
+
"type": "array",
|
|
1892
|
+
"items": {
|
|
1893
|
+
"type": "string"
|
|
1894
|
+
},
|
|
1895
|
+
"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."
|
|
1896
|
+
},
|
|
1897
|
+
"entries": {
|
|
1898
|
+
"type": "array",
|
|
1899
|
+
"description": "List of localisation key-value pairs to write",
|
|
1900
|
+
"items": {
|
|
1901
|
+
"type": "object",
|
|
1902
|
+
"properties": {
|
|
1903
|
+
"key": {
|
|
1904
|
+
"type": "string",
|
|
1905
|
+
"description": 'Localisation key, e.g. "my_event.1.title"'
|
|
1906
|
+
},
|
|
1907
|
+
"value": {
|
|
1908
|
+
"type": "string",
|
|
1909
|
+
"description": "Localisation value text. Use \\n for in-game line breaks. Do NOT include surrounding quotes."
|
|
1910
|
+
},
|
|
1911
|
+
"number": {
|
|
1912
|
+
"type": "integer",
|
|
1913
|
+
"description": "Version number after the colon (default: 0). Usually 0."
|
|
1914
|
+
},
|
|
1915
|
+
"comment": {
|
|
1916
|
+
"type": "string",
|
|
1917
|
+
"description": 'Optional section header comment to insert before this entry, e.g. "### Site 1 Events ###"'
|
|
1918
|
+
}
|
|
1919
|
+
},
|
|
1920
|
+
"required": [
|
|
1921
|
+
"key",
|
|
1922
|
+
"value"
|
|
1923
|
+
]
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
},
|
|
1927
|
+
"required": [
|
|
1928
|
+
"filePath",
|
|
1929
|
+
"language",
|
|
1930
|
+
"entries"
|
|
1931
|
+
]
|
|
1932
|
+
}
|
|
1933
|
+
},
|
|
1934
|
+
"registry": {
|
|
1935
|
+
"name": "write_localisation",
|
|
1936
|
+
"isWrite": true,
|
|
1937
|
+
"isReadOnly": false,
|
|
1938
|
+
"effect": "workspace_write",
|
|
1939
|
+
"riskLevel": 2,
|
|
1940
|
+
"concurrencyClass": "per-file-write"
|
|
1941
|
+
}
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
"tool": {
|
|
1945
|
+
"name": "typed_pdx_write",
|
|
1946
|
+
"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.",
|
|
1947
|
+
"inputSchema": {
|
|
1948
|
+
"type": "object",
|
|
1949
|
+
"properties": {
|
|
1950
|
+
"filePath": {
|
|
1951
|
+
"type": "string",
|
|
1952
|
+
"description": "Absolute workspace .txt file path."
|
|
1953
|
+
},
|
|
1954
|
+
"expectedHash": {
|
|
1955
|
+
"type": "string",
|
|
1956
|
+
"pattern": "^[a-fA-F0-9]{64}$",
|
|
1957
|
+
"description": "Optional SHA-256 of the source content; stale candidates are rejected."
|
|
1958
|
+
},
|
|
1959
|
+
"mode": {
|
|
1960
|
+
"type": "string",
|
|
1961
|
+
"enum": [
|
|
1962
|
+
"preview",
|
|
1963
|
+
"stage"
|
|
1964
|
+
],
|
|
1965
|
+
"description": "Preview is read-only; stage requires an active candidate transaction."
|
|
1966
|
+
},
|
|
1967
|
+
"transactionId": {
|
|
1968
|
+
"type": "string",
|
|
1969
|
+
"description": "Required when mode=stage."
|
|
1970
|
+
},
|
|
1971
|
+
"operation": {
|
|
1972
|
+
"oneOf": [
|
|
1973
|
+
{
|
|
1974
|
+
"type": "object",
|
|
1975
|
+
"properties": {
|
|
1976
|
+
"operation": {
|
|
1977
|
+
"const": "clone_definition"
|
|
1978
|
+
},
|
|
1979
|
+
"source": {
|
|
1980
|
+
"type": "string"
|
|
1981
|
+
},
|
|
1982
|
+
"newSymbol": {
|
|
1983
|
+
"type": "string",
|
|
1984
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
1985
|
+
},
|
|
1986
|
+
"overrides": {
|
|
1987
|
+
"type": "array",
|
|
1988
|
+
"maxItems": 64,
|
|
1989
|
+
"items": {
|
|
1990
|
+
"oneOf": [
|
|
1991
|
+
{
|
|
1992
|
+
"type": "object",
|
|
1993
|
+
"properties": {
|
|
1994
|
+
"path": {
|
|
1995
|
+
"type": "array",
|
|
1996
|
+
"minItems": 1,
|
|
1997
|
+
"maxItems": 8,
|
|
1998
|
+
"items": {
|
|
1999
|
+
"type": "object",
|
|
2000
|
+
"properties": {
|
|
2001
|
+
"key": {
|
|
2002
|
+
"type": "string",
|
|
2003
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2004
|
+
},
|
|
2005
|
+
"occurrence": {
|
|
2006
|
+
"type": "integer",
|
|
2007
|
+
"minimum": 1
|
|
2008
|
+
}
|
|
2009
|
+
},
|
|
2010
|
+
"required": [
|
|
2011
|
+
"key",
|
|
2012
|
+
"occurrence"
|
|
2013
|
+
],
|
|
2014
|
+
"additionalProperties": false
|
|
2015
|
+
}
|
|
2016
|
+
},
|
|
2017
|
+
"value": {
|
|
2018
|
+
"oneOf": [
|
|
2019
|
+
{
|
|
2020
|
+
"type": "object",
|
|
2021
|
+
"properties": {
|
|
2022
|
+
"kind": {
|
|
2023
|
+
"const": "identifier"
|
|
2024
|
+
},
|
|
2025
|
+
"value": {
|
|
2026
|
+
"type": "string",
|
|
2027
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2028
|
+
}
|
|
2029
|
+
},
|
|
2030
|
+
"required": [
|
|
2031
|
+
"kind",
|
|
2032
|
+
"value"
|
|
2033
|
+
],
|
|
2034
|
+
"additionalProperties": false
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
"type": "object",
|
|
2038
|
+
"properties": {
|
|
2039
|
+
"kind": {
|
|
2040
|
+
"const": "string"
|
|
2041
|
+
},
|
|
2042
|
+
"value": {
|
|
2043
|
+
"type": "string",
|
|
2044
|
+
"maxLength": 4096,
|
|
2045
|
+
"pattern": "^[^\0-\x7F]*$"
|
|
2046
|
+
}
|
|
2047
|
+
},
|
|
2048
|
+
"required": [
|
|
2049
|
+
"kind",
|
|
2050
|
+
"value"
|
|
2051
|
+
],
|
|
2052
|
+
"additionalProperties": false
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
"type": "object",
|
|
2056
|
+
"properties": {
|
|
2057
|
+
"kind": {
|
|
2058
|
+
"const": "number"
|
|
2059
|
+
},
|
|
2060
|
+
"value": {
|
|
2061
|
+
"type": "number"
|
|
2062
|
+
}
|
|
2063
|
+
},
|
|
2064
|
+
"required": [
|
|
2065
|
+
"kind",
|
|
2066
|
+
"value"
|
|
2067
|
+
],
|
|
2068
|
+
"additionalProperties": false
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"type": "object",
|
|
2072
|
+
"properties": {
|
|
2073
|
+
"kind": {
|
|
2074
|
+
"const": "boolean"
|
|
2075
|
+
},
|
|
2076
|
+
"value": {
|
|
2077
|
+
"type": "boolean"
|
|
2078
|
+
}
|
|
2079
|
+
},
|
|
2080
|
+
"required": [
|
|
2081
|
+
"kind",
|
|
2082
|
+
"value"
|
|
2083
|
+
],
|
|
2084
|
+
"additionalProperties": false
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
"type": "object",
|
|
2088
|
+
"properties": {
|
|
2089
|
+
"kind": {
|
|
2090
|
+
"const": "list"
|
|
2091
|
+
},
|
|
2092
|
+
"values": {
|
|
2093
|
+
"type": "array",
|
|
2094
|
+
"maxItems": 256,
|
|
2095
|
+
"items": {
|
|
2096
|
+
"type": "object",
|
|
2097
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
2098
|
+
"properties": {
|
|
2099
|
+
"kind": {
|
|
2100
|
+
"type": "string",
|
|
2101
|
+
"enum": [
|
|
2102
|
+
"identifier",
|
|
2103
|
+
"string",
|
|
2104
|
+
"number",
|
|
2105
|
+
"boolean",
|
|
2106
|
+
"list",
|
|
2107
|
+
"block"
|
|
2108
|
+
]
|
|
2109
|
+
}
|
|
2110
|
+
},
|
|
2111
|
+
"required": [
|
|
2112
|
+
"kind"
|
|
2113
|
+
],
|
|
2114
|
+
"additionalProperties": true
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
},
|
|
2118
|
+
"required": [
|
|
2119
|
+
"kind",
|
|
2120
|
+
"values"
|
|
2121
|
+
],
|
|
2122
|
+
"additionalProperties": false
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
"type": "object",
|
|
2126
|
+
"properties": {
|
|
2127
|
+
"kind": {
|
|
2128
|
+
"const": "block"
|
|
2129
|
+
},
|
|
2130
|
+
"entries": {
|
|
2131
|
+
"type": "array",
|
|
2132
|
+
"maxItems": 256,
|
|
2133
|
+
"items": {
|
|
2134
|
+
"type": "object",
|
|
2135
|
+
"properties": {
|
|
2136
|
+
"key": {
|
|
2137
|
+
"type": "string",
|
|
2138
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2139
|
+
},
|
|
2140
|
+
"value": {
|
|
2141
|
+
"type": "object",
|
|
2142
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
2143
|
+
"properties": {
|
|
2144
|
+
"kind": {
|
|
2145
|
+
"type": "string",
|
|
2146
|
+
"enum": [
|
|
2147
|
+
"identifier",
|
|
2148
|
+
"string",
|
|
2149
|
+
"number",
|
|
2150
|
+
"boolean",
|
|
2151
|
+
"list",
|
|
2152
|
+
"block"
|
|
2153
|
+
]
|
|
2154
|
+
}
|
|
2155
|
+
},
|
|
2156
|
+
"required": [
|
|
2157
|
+
"kind"
|
|
2158
|
+
],
|
|
2159
|
+
"additionalProperties": true
|
|
2160
|
+
}
|
|
2161
|
+
},
|
|
2162
|
+
"required": [
|
|
2163
|
+
"key",
|
|
2164
|
+
"value"
|
|
2165
|
+
],
|
|
2166
|
+
"additionalProperties": false
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
},
|
|
2170
|
+
"required": [
|
|
2171
|
+
"kind",
|
|
2172
|
+
"entries"
|
|
2173
|
+
],
|
|
2174
|
+
"additionalProperties": false
|
|
2175
|
+
}
|
|
2176
|
+
]
|
|
2177
|
+
},
|
|
2178
|
+
"action": {
|
|
2179
|
+
"const": "set"
|
|
2180
|
+
}
|
|
2181
|
+
},
|
|
2182
|
+
"required": [
|
|
2183
|
+
"action",
|
|
2184
|
+
"path",
|
|
2185
|
+
"value"
|
|
2186
|
+
],
|
|
2187
|
+
"additionalProperties": false
|
|
2188
|
+
},
|
|
2189
|
+
{
|
|
2190
|
+
"type": "object",
|
|
2191
|
+
"properties": {
|
|
2192
|
+
"path": {
|
|
2193
|
+
"type": "array",
|
|
2194
|
+
"minItems": 1,
|
|
2195
|
+
"maxItems": 8,
|
|
2196
|
+
"items": {
|
|
2197
|
+
"type": "object",
|
|
2198
|
+
"properties": {
|
|
2199
|
+
"key": {
|
|
2200
|
+
"type": "string",
|
|
2201
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2202
|
+
},
|
|
2203
|
+
"occurrence": {
|
|
2204
|
+
"type": "integer",
|
|
2205
|
+
"minimum": 1
|
|
2206
|
+
}
|
|
2207
|
+
},
|
|
2208
|
+
"required": [
|
|
2209
|
+
"key",
|
|
2210
|
+
"occurrence"
|
|
2211
|
+
],
|
|
2212
|
+
"additionalProperties": false
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
"action": {
|
|
2216
|
+
"const": "delete"
|
|
2217
|
+
}
|
|
2218
|
+
},
|
|
2219
|
+
"required": [
|
|
2220
|
+
"action",
|
|
2221
|
+
"path"
|
|
2222
|
+
],
|
|
2223
|
+
"additionalProperties": false
|
|
2224
|
+
},
|
|
2225
|
+
{
|
|
2226
|
+
"type": "object",
|
|
2227
|
+
"properties": {
|
|
2228
|
+
"path": {
|
|
2229
|
+
"type": "array",
|
|
2230
|
+
"minItems": 0,
|
|
2231
|
+
"maxItems": 8,
|
|
2232
|
+
"items": {
|
|
2233
|
+
"type": "object",
|
|
2234
|
+
"properties": {
|
|
2235
|
+
"key": {
|
|
2236
|
+
"type": "string",
|
|
2237
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2238
|
+
},
|
|
2239
|
+
"occurrence": {
|
|
2240
|
+
"type": "integer",
|
|
2241
|
+
"minimum": 1
|
|
2242
|
+
}
|
|
2243
|
+
},
|
|
2244
|
+
"required": [
|
|
2245
|
+
"key",
|
|
2246
|
+
"occurrence"
|
|
2247
|
+
],
|
|
2248
|
+
"additionalProperties": false
|
|
2249
|
+
}
|
|
2250
|
+
},
|
|
2251
|
+
"entry": {
|
|
2252
|
+
"type": "object",
|
|
2253
|
+
"properties": {
|
|
2254
|
+
"key": {
|
|
2255
|
+
"type": "string",
|
|
2256
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2257
|
+
},
|
|
2258
|
+
"value": {
|
|
2259
|
+
"oneOf": [
|
|
2260
|
+
{
|
|
2261
|
+
"type": "object",
|
|
2262
|
+
"properties": {
|
|
2263
|
+
"kind": {
|
|
2264
|
+
"const": "identifier"
|
|
2265
|
+
},
|
|
2266
|
+
"value": {
|
|
2267
|
+
"type": "string",
|
|
2268
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2269
|
+
}
|
|
2270
|
+
},
|
|
2271
|
+
"required": [
|
|
2272
|
+
"kind",
|
|
2273
|
+
"value"
|
|
2274
|
+
],
|
|
2275
|
+
"additionalProperties": false
|
|
2276
|
+
},
|
|
2277
|
+
{
|
|
2278
|
+
"type": "object",
|
|
2279
|
+
"properties": {
|
|
2280
|
+
"kind": {
|
|
2281
|
+
"const": "string"
|
|
2282
|
+
},
|
|
2283
|
+
"value": {
|
|
2284
|
+
"type": "string",
|
|
2285
|
+
"maxLength": 4096,
|
|
2286
|
+
"pattern": "^[^\0-\x7F]*$"
|
|
2287
|
+
}
|
|
2288
|
+
},
|
|
2289
|
+
"required": [
|
|
2290
|
+
"kind",
|
|
2291
|
+
"value"
|
|
2292
|
+
],
|
|
2293
|
+
"additionalProperties": false
|
|
2294
|
+
},
|
|
2295
|
+
{
|
|
2296
|
+
"type": "object",
|
|
2297
|
+
"properties": {
|
|
2298
|
+
"kind": {
|
|
2299
|
+
"const": "number"
|
|
2300
|
+
},
|
|
2301
|
+
"value": {
|
|
2302
|
+
"type": "number"
|
|
2303
|
+
}
|
|
2304
|
+
},
|
|
2305
|
+
"required": [
|
|
2306
|
+
"kind",
|
|
2307
|
+
"value"
|
|
2308
|
+
],
|
|
2309
|
+
"additionalProperties": false
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
"type": "object",
|
|
2313
|
+
"properties": {
|
|
2314
|
+
"kind": {
|
|
2315
|
+
"const": "boolean"
|
|
2316
|
+
},
|
|
2317
|
+
"value": {
|
|
2318
|
+
"type": "boolean"
|
|
2319
|
+
}
|
|
2320
|
+
},
|
|
2321
|
+
"required": [
|
|
2322
|
+
"kind",
|
|
2323
|
+
"value"
|
|
2324
|
+
],
|
|
2325
|
+
"additionalProperties": false
|
|
2326
|
+
},
|
|
2327
|
+
{
|
|
2328
|
+
"type": "object",
|
|
2329
|
+
"properties": {
|
|
2330
|
+
"kind": {
|
|
2331
|
+
"const": "list"
|
|
2332
|
+
},
|
|
2333
|
+
"values": {
|
|
2334
|
+
"type": "array",
|
|
2335
|
+
"maxItems": 256,
|
|
2336
|
+
"items": {
|
|
2337
|
+
"type": "object",
|
|
2338
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
2339
|
+
"properties": {
|
|
2340
|
+
"kind": {
|
|
2341
|
+
"type": "string",
|
|
2342
|
+
"enum": [
|
|
2343
|
+
"identifier",
|
|
2344
|
+
"string",
|
|
2345
|
+
"number",
|
|
2346
|
+
"boolean",
|
|
2347
|
+
"list",
|
|
2348
|
+
"block"
|
|
2349
|
+
]
|
|
2350
|
+
}
|
|
2351
|
+
},
|
|
2352
|
+
"required": [
|
|
2353
|
+
"kind"
|
|
2354
|
+
],
|
|
2355
|
+
"additionalProperties": true
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
},
|
|
2359
|
+
"required": [
|
|
2360
|
+
"kind",
|
|
2361
|
+
"values"
|
|
2362
|
+
],
|
|
2363
|
+
"additionalProperties": false
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
"type": "object",
|
|
2367
|
+
"properties": {
|
|
2368
|
+
"kind": {
|
|
2369
|
+
"const": "block"
|
|
2370
|
+
},
|
|
2371
|
+
"entries": {
|
|
2372
|
+
"type": "array",
|
|
2373
|
+
"maxItems": 256,
|
|
2374
|
+
"items": {
|
|
2375
|
+
"type": "object",
|
|
2376
|
+
"properties": {
|
|
2377
|
+
"key": {
|
|
2378
|
+
"type": "string",
|
|
2379
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2380
|
+
},
|
|
2381
|
+
"value": {
|
|
2382
|
+
"type": "object",
|
|
2383
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
2384
|
+
"properties": {
|
|
2385
|
+
"kind": {
|
|
2386
|
+
"type": "string",
|
|
2387
|
+
"enum": [
|
|
2388
|
+
"identifier",
|
|
2389
|
+
"string",
|
|
2390
|
+
"number",
|
|
2391
|
+
"boolean",
|
|
2392
|
+
"list",
|
|
2393
|
+
"block"
|
|
2394
|
+
]
|
|
2395
|
+
}
|
|
2396
|
+
},
|
|
2397
|
+
"required": [
|
|
2398
|
+
"kind"
|
|
2399
|
+
],
|
|
2400
|
+
"additionalProperties": true
|
|
2401
|
+
}
|
|
2402
|
+
},
|
|
2403
|
+
"required": [
|
|
2404
|
+
"key",
|
|
2405
|
+
"value"
|
|
2406
|
+
],
|
|
2407
|
+
"additionalProperties": false
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
},
|
|
2411
|
+
"required": [
|
|
2412
|
+
"kind",
|
|
2413
|
+
"entries"
|
|
2414
|
+
],
|
|
2415
|
+
"additionalProperties": false
|
|
2416
|
+
}
|
|
2417
|
+
]
|
|
2418
|
+
}
|
|
2419
|
+
},
|
|
2420
|
+
"required": [
|
|
2421
|
+
"key",
|
|
2422
|
+
"value"
|
|
2423
|
+
],
|
|
2424
|
+
"additionalProperties": false
|
|
2425
|
+
},
|
|
2426
|
+
"action": {
|
|
2427
|
+
"const": "append"
|
|
2428
|
+
}
|
|
2429
|
+
},
|
|
2430
|
+
"required": [
|
|
2431
|
+
"action",
|
|
2432
|
+
"path",
|
|
2433
|
+
"entry"
|
|
2434
|
+
],
|
|
2435
|
+
"additionalProperties": false
|
|
2436
|
+
}
|
|
2437
|
+
]
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
},
|
|
2441
|
+
"required": [
|
|
2442
|
+
"operation",
|
|
2443
|
+
"source",
|
|
2444
|
+
"newSymbol"
|
|
2445
|
+
],
|
|
2446
|
+
"additionalProperties": false
|
|
2447
|
+
},
|
|
2448
|
+
{
|
|
2449
|
+
"type": "object",
|
|
2450
|
+
"properties": {
|
|
2451
|
+
"operation": {
|
|
2452
|
+
"const": "add_event_call"
|
|
2453
|
+
},
|
|
2454
|
+
"target": {
|
|
2455
|
+
"type": "string"
|
|
2456
|
+
},
|
|
2457
|
+
"callType": {
|
|
2458
|
+
"type": "string",
|
|
2459
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2460
|
+
},
|
|
2461
|
+
"eventId": {
|
|
2462
|
+
"type": "string",
|
|
2463
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2464
|
+
},
|
|
2465
|
+
"containerPath": {
|
|
2466
|
+
"type": "array",
|
|
2467
|
+
"maxItems": 8,
|
|
2468
|
+
"items": {
|
|
2469
|
+
"type": "string"
|
|
2470
|
+
}
|
|
2471
|
+
},
|
|
2472
|
+
"days": {
|
|
2473
|
+
"type": "integer",
|
|
2474
|
+
"minimum": 0
|
|
2475
|
+
}
|
|
2476
|
+
},
|
|
2477
|
+
"required": [
|
|
2478
|
+
"operation",
|
|
2479
|
+
"target",
|
|
2480
|
+
"callType",
|
|
2481
|
+
"eventId"
|
|
2482
|
+
],
|
|
2483
|
+
"additionalProperties": false
|
|
2484
|
+
},
|
|
2485
|
+
{
|
|
2486
|
+
"type": "object",
|
|
2487
|
+
"properties": {
|
|
2488
|
+
"operation": {
|
|
2489
|
+
"const": "add_event_option"
|
|
2490
|
+
},
|
|
2491
|
+
"target": {
|
|
2492
|
+
"type": "string"
|
|
2493
|
+
},
|
|
2494
|
+
"name": {
|
|
2495
|
+
"type": "string",
|
|
2496
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2497
|
+
},
|
|
2498
|
+
"fields": {
|
|
2499
|
+
"type": "array",
|
|
2500
|
+
"maxItems": 256,
|
|
2501
|
+
"items": {
|
|
2502
|
+
"type": "object",
|
|
2503
|
+
"properties": {
|
|
2504
|
+
"key": {
|
|
2505
|
+
"type": "string",
|
|
2506
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2507
|
+
},
|
|
2508
|
+
"value": {
|
|
2509
|
+
"oneOf": [
|
|
2510
|
+
{
|
|
2511
|
+
"type": "object",
|
|
2512
|
+
"properties": {
|
|
2513
|
+
"kind": {
|
|
2514
|
+
"const": "identifier"
|
|
2515
|
+
},
|
|
2516
|
+
"value": {
|
|
2517
|
+
"type": "string",
|
|
2518
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2519
|
+
}
|
|
2520
|
+
},
|
|
2521
|
+
"required": [
|
|
2522
|
+
"kind",
|
|
2523
|
+
"value"
|
|
2524
|
+
],
|
|
2525
|
+
"additionalProperties": false
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
"type": "object",
|
|
2529
|
+
"properties": {
|
|
2530
|
+
"kind": {
|
|
2531
|
+
"const": "string"
|
|
2532
|
+
},
|
|
2533
|
+
"value": {
|
|
2534
|
+
"type": "string",
|
|
2535
|
+
"maxLength": 4096,
|
|
2536
|
+
"pattern": "^[^\0-\x7F]*$"
|
|
2537
|
+
}
|
|
2538
|
+
},
|
|
2539
|
+
"required": [
|
|
2540
|
+
"kind",
|
|
2541
|
+
"value"
|
|
2542
|
+
],
|
|
2543
|
+
"additionalProperties": false
|
|
2544
|
+
},
|
|
2545
|
+
{
|
|
2546
|
+
"type": "object",
|
|
2547
|
+
"properties": {
|
|
2548
|
+
"kind": {
|
|
2549
|
+
"const": "number"
|
|
2550
|
+
},
|
|
2551
|
+
"value": {
|
|
2552
|
+
"type": "number"
|
|
2553
|
+
}
|
|
2554
|
+
},
|
|
2555
|
+
"required": [
|
|
2556
|
+
"kind",
|
|
2557
|
+
"value"
|
|
2558
|
+
],
|
|
2559
|
+
"additionalProperties": false
|
|
2560
|
+
},
|
|
2561
|
+
{
|
|
2562
|
+
"type": "object",
|
|
2563
|
+
"properties": {
|
|
2564
|
+
"kind": {
|
|
2565
|
+
"const": "boolean"
|
|
2566
|
+
},
|
|
2567
|
+
"value": {
|
|
2568
|
+
"type": "boolean"
|
|
2569
|
+
}
|
|
2570
|
+
},
|
|
2571
|
+
"required": [
|
|
2572
|
+
"kind",
|
|
2573
|
+
"value"
|
|
2574
|
+
],
|
|
2575
|
+
"additionalProperties": false
|
|
2576
|
+
},
|
|
2577
|
+
{
|
|
2578
|
+
"type": "object",
|
|
2579
|
+
"properties": {
|
|
2580
|
+
"kind": {
|
|
2581
|
+
"const": "list"
|
|
2582
|
+
},
|
|
2583
|
+
"values": {
|
|
2584
|
+
"type": "array",
|
|
2585
|
+
"maxItems": 256,
|
|
2586
|
+
"items": {
|
|
2587
|
+
"type": "object",
|
|
2588
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
2589
|
+
"properties": {
|
|
2590
|
+
"kind": {
|
|
2591
|
+
"type": "string",
|
|
2592
|
+
"enum": [
|
|
2593
|
+
"identifier",
|
|
2594
|
+
"string",
|
|
2595
|
+
"number",
|
|
2596
|
+
"boolean",
|
|
2597
|
+
"list",
|
|
2598
|
+
"block"
|
|
2599
|
+
]
|
|
2600
|
+
}
|
|
2601
|
+
},
|
|
2602
|
+
"required": [
|
|
2603
|
+
"kind"
|
|
2604
|
+
],
|
|
2605
|
+
"additionalProperties": true
|
|
2606
|
+
}
|
|
2607
|
+
}
|
|
2608
|
+
},
|
|
2609
|
+
"required": [
|
|
2610
|
+
"kind",
|
|
2611
|
+
"values"
|
|
2612
|
+
],
|
|
2613
|
+
"additionalProperties": false
|
|
2614
|
+
},
|
|
2615
|
+
{
|
|
2616
|
+
"type": "object",
|
|
2617
|
+
"properties": {
|
|
2618
|
+
"kind": {
|
|
2619
|
+
"const": "block"
|
|
2620
|
+
},
|
|
2621
|
+
"entries": {
|
|
2622
|
+
"type": "array",
|
|
2623
|
+
"maxItems": 256,
|
|
2624
|
+
"items": {
|
|
2625
|
+
"type": "object",
|
|
2626
|
+
"properties": {
|
|
2627
|
+
"key": {
|
|
2628
|
+
"type": "string",
|
|
2629
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2630
|
+
},
|
|
2631
|
+
"value": {
|
|
2632
|
+
"type": "object",
|
|
2633
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
2634
|
+
"properties": {
|
|
2635
|
+
"kind": {
|
|
2636
|
+
"type": "string",
|
|
2637
|
+
"enum": [
|
|
2638
|
+
"identifier",
|
|
2639
|
+
"string",
|
|
2640
|
+
"number",
|
|
2641
|
+
"boolean",
|
|
2642
|
+
"list",
|
|
2643
|
+
"block"
|
|
2644
|
+
]
|
|
2645
|
+
}
|
|
2646
|
+
},
|
|
2647
|
+
"required": [
|
|
2648
|
+
"kind"
|
|
2649
|
+
],
|
|
2650
|
+
"additionalProperties": true
|
|
2651
|
+
}
|
|
2652
|
+
},
|
|
2653
|
+
"required": [
|
|
2654
|
+
"key",
|
|
2655
|
+
"value"
|
|
2656
|
+
],
|
|
2657
|
+
"additionalProperties": false
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
},
|
|
2661
|
+
"required": [
|
|
2662
|
+
"kind",
|
|
2663
|
+
"entries"
|
|
2664
|
+
],
|
|
2665
|
+
"additionalProperties": false
|
|
2666
|
+
}
|
|
2667
|
+
]
|
|
2668
|
+
}
|
|
2669
|
+
},
|
|
2670
|
+
"required": [
|
|
2671
|
+
"key",
|
|
2672
|
+
"value"
|
|
2673
|
+
],
|
|
2674
|
+
"additionalProperties": false
|
|
2675
|
+
}
|
|
2676
|
+
}
|
|
2677
|
+
},
|
|
2678
|
+
"required": [
|
|
2679
|
+
"operation",
|
|
2680
|
+
"target",
|
|
2681
|
+
"name"
|
|
2682
|
+
],
|
|
2683
|
+
"additionalProperties": false
|
|
2684
|
+
},
|
|
2685
|
+
{
|
|
2686
|
+
"type": "object",
|
|
2687
|
+
"properties": {
|
|
2688
|
+
"operation": {
|
|
2689
|
+
"const": "append_trigger_condition"
|
|
2690
|
+
},
|
|
2691
|
+
"target": {
|
|
2692
|
+
"type": "string"
|
|
2693
|
+
},
|
|
2694
|
+
"condition": {
|
|
2695
|
+
"type": "object",
|
|
2696
|
+
"properties": {
|
|
2697
|
+
"key": {
|
|
2698
|
+
"type": "string",
|
|
2699
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2700
|
+
},
|
|
2701
|
+
"value": {
|
|
2702
|
+
"oneOf": [
|
|
2703
|
+
{
|
|
2704
|
+
"type": "object",
|
|
2705
|
+
"properties": {
|
|
2706
|
+
"kind": {
|
|
2707
|
+
"const": "identifier"
|
|
2708
|
+
},
|
|
2709
|
+
"value": {
|
|
2710
|
+
"type": "string",
|
|
2711
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2712
|
+
}
|
|
2713
|
+
},
|
|
2714
|
+
"required": [
|
|
2715
|
+
"kind",
|
|
2716
|
+
"value"
|
|
2717
|
+
],
|
|
2718
|
+
"additionalProperties": false
|
|
2719
|
+
},
|
|
2720
|
+
{
|
|
2721
|
+
"type": "object",
|
|
2722
|
+
"properties": {
|
|
2723
|
+
"kind": {
|
|
2724
|
+
"const": "string"
|
|
2725
|
+
},
|
|
2726
|
+
"value": {
|
|
2727
|
+
"type": "string",
|
|
2728
|
+
"maxLength": 4096,
|
|
2729
|
+
"pattern": "^[^\0-\x7F]*$"
|
|
2730
|
+
}
|
|
2731
|
+
},
|
|
2732
|
+
"required": [
|
|
2733
|
+
"kind",
|
|
2734
|
+
"value"
|
|
2735
|
+
],
|
|
2736
|
+
"additionalProperties": false
|
|
2737
|
+
},
|
|
2738
|
+
{
|
|
2739
|
+
"type": "object",
|
|
2740
|
+
"properties": {
|
|
2741
|
+
"kind": {
|
|
2742
|
+
"const": "number"
|
|
2743
|
+
},
|
|
2744
|
+
"value": {
|
|
2745
|
+
"type": "number"
|
|
2746
|
+
}
|
|
2747
|
+
},
|
|
2748
|
+
"required": [
|
|
2749
|
+
"kind",
|
|
2750
|
+
"value"
|
|
2751
|
+
],
|
|
2752
|
+
"additionalProperties": false
|
|
2753
|
+
},
|
|
2754
|
+
{
|
|
2755
|
+
"type": "object",
|
|
2756
|
+
"properties": {
|
|
2757
|
+
"kind": {
|
|
2758
|
+
"const": "boolean"
|
|
2759
|
+
},
|
|
2760
|
+
"value": {
|
|
2761
|
+
"type": "boolean"
|
|
2762
|
+
}
|
|
2763
|
+
},
|
|
2764
|
+
"required": [
|
|
2765
|
+
"kind",
|
|
2766
|
+
"value"
|
|
2767
|
+
],
|
|
2768
|
+
"additionalProperties": false
|
|
2769
|
+
},
|
|
2770
|
+
{
|
|
2771
|
+
"type": "object",
|
|
2772
|
+
"properties": {
|
|
2773
|
+
"kind": {
|
|
2774
|
+
"const": "list"
|
|
2775
|
+
},
|
|
2776
|
+
"values": {
|
|
2777
|
+
"type": "array",
|
|
2778
|
+
"maxItems": 256,
|
|
2779
|
+
"items": {
|
|
2780
|
+
"type": "object",
|
|
2781
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
2782
|
+
"properties": {
|
|
2783
|
+
"kind": {
|
|
2784
|
+
"type": "string",
|
|
2785
|
+
"enum": [
|
|
2786
|
+
"identifier",
|
|
2787
|
+
"string",
|
|
2788
|
+
"number",
|
|
2789
|
+
"boolean",
|
|
2790
|
+
"list",
|
|
2791
|
+
"block"
|
|
2792
|
+
]
|
|
2793
|
+
}
|
|
2794
|
+
},
|
|
2795
|
+
"required": [
|
|
2796
|
+
"kind"
|
|
2797
|
+
],
|
|
2798
|
+
"additionalProperties": true
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
},
|
|
2802
|
+
"required": [
|
|
2803
|
+
"kind",
|
|
2804
|
+
"values"
|
|
2805
|
+
],
|
|
2806
|
+
"additionalProperties": false
|
|
2807
|
+
},
|
|
2808
|
+
{
|
|
2809
|
+
"type": "object",
|
|
2810
|
+
"properties": {
|
|
2811
|
+
"kind": {
|
|
2812
|
+
"const": "block"
|
|
2813
|
+
},
|
|
2814
|
+
"entries": {
|
|
2815
|
+
"type": "array",
|
|
2816
|
+
"maxItems": 256,
|
|
2817
|
+
"items": {
|
|
2818
|
+
"type": "object",
|
|
2819
|
+
"properties": {
|
|
2820
|
+
"key": {
|
|
2821
|
+
"type": "string",
|
|
2822
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2823
|
+
},
|
|
2824
|
+
"value": {
|
|
2825
|
+
"type": "object",
|
|
2826
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
2827
|
+
"properties": {
|
|
2828
|
+
"kind": {
|
|
2829
|
+
"type": "string",
|
|
2830
|
+
"enum": [
|
|
2831
|
+
"identifier",
|
|
2832
|
+
"string",
|
|
2833
|
+
"number",
|
|
2834
|
+
"boolean",
|
|
2835
|
+
"list",
|
|
2836
|
+
"block"
|
|
2837
|
+
]
|
|
2838
|
+
}
|
|
2839
|
+
},
|
|
2840
|
+
"required": [
|
|
2841
|
+
"kind"
|
|
2842
|
+
],
|
|
2843
|
+
"additionalProperties": true
|
|
2844
|
+
}
|
|
2845
|
+
},
|
|
2846
|
+
"required": [
|
|
2847
|
+
"key",
|
|
2848
|
+
"value"
|
|
2849
|
+
],
|
|
2850
|
+
"additionalProperties": false
|
|
2851
|
+
}
|
|
2852
|
+
}
|
|
2853
|
+
},
|
|
2854
|
+
"required": [
|
|
2855
|
+
"kind",
|
|
2856
|
+
"entries"
|
|
2857
|
+
],
|
|
2858
|
+
"additionalProperties": false
|
|
2859
|
+
}
|
|
2860
|
+
]
|
|
2861
|
+
}
|
|
2862
|
+
},
|
|
2863
|
+
"required": [
|
|
2864
|
+
"key",
|
|
2865
|
+
"value"
|
|
2866
|
+
],
|
|
2867
|
+
"additionalProperties": false
|
|
2868
|
+
},
|
|
2869
|
+
"containerPath": {
|
|
2870
|
+
"type": "array",
|
|
2871
|
+
"maxItems": 8,
|
|
2872
|
+
"items": {
|
|
2873
|
+
"type": "string"
|
|
2874
|
+
}
|
|
2875
|
+
}
|
|
2876
|
+
},
|
|
2877
|
+
"required": [
|
|
2878
|
+
"operation",
|
|
2879
|
+
"target",
|
|
2880
|
+
"condition"
|
|
2881
|
+
],
|
|
2882
|
+
"additionalProperties": false
|
|
2883
|
+
},
|
|
2884
|
+
{
|
|
2885
|
+
"type": "object",
|
|
2886
|
+
"properties": {
|
|
2887
|
+
"operation": {
|
|
2888
|
+
"const": "instantiate_inline_script"
|
|
2889
|
+
},
|
|
2890
|
+
"target": {
|
|
2891
|
+
"type": "string"
|
|
2892
|
+
},
|
|
2893
|
+
"script": {
|
|
2894
|
+
"type": "string",
|
|
2895
|
+
"pattern": "^[A-Za-z0-9_.:@/-]+$"
|
|
2896
|
+
},
|
|
2897
|
+
"arguments": {
|
|
2898
|
+
"type": "array",
|
|
2899
|
+
"maxItems": 256,
|
|
2900
|
+
"items": {
|
|
2901
|
+
"type": "object",
|
|
2902
|
+
"properties": {
|
|
2903
|
+
"key": {
|
|
2904
|
+
"type": "string",
|
|
2905
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2906
|
+
},
|
|
2907
|
+
"value": {
|
|
2908
|
+
"oneOf": [
|
|
2909
|
+
{
|
|
2910
|
+
"type": "object",
|
|
2911
|
+
"properties": {
|
|
2912
|
+
"kind": {
|
|
2913
|
+
"const": "identifier"
|
|
2914
|
+
},
|
|
2915
|
+
"value": {
|
|
2916
|
+
"type": "string",
|
|
2917
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
2918
|
+
}
|
|
2919
|
+
},
|
|
2920
|
+
"required": [
|
|
2921
|
+
"kind",
|
|
2922
|
+
"value"
|
|
2923
|
+
],
|
|
2924
|
+
"additionalProperties": false
|
|
2925
|
+
},
|
|
2926
|
+
{
|
|
2927
|
+
"type": "object",
|
|
2928
|
+
"properties": {
|
|
2929
|
+
"kind": {
|
|
2930
|
+
"const": "string"
|
|
2931
|
+
},
|
|
2932
|
+
"value": {
|
|
2933
|
+
"type": "string",
|
|
2934
|
+
"maxLength": 4096,
|
|
2935
|
+
"pattern": "^[^\0-\x7F]*$"
|
|
2936
|
+
}
|
|
2937
|
+
},
|
|
2938
|
+
"required": [
|
|
2939
|
+
"kind",
|
|
2940
|
+
"value"
|
|
2941
|
+
],
|
|
2942
|
+
"additionalProperties": false
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
"type": "object",
|
|
2946
|
+
"properties": {
|
|
2947
|
+
"kind": {
|
|
2948
|
+
"const": "number"
|
|
2949
|
+
},
|
|
2950
|
+
"value": {
|
|
2951
|
+
"type": "number"
|
|
2952
|
+
}
|
|
2953
|
+
},
|
|
2954
|
+
"required": [
|
|
2955
|
+
"kind",
|
|
2956
|
+
"value"
|
|
2957
|
+
],
|
|
2958
|
+
"additionalProperties": false
|
|
2959
|
+
},
|
|
2960
|
+
{
|
|
2961
|
+
"type": "object",
|
|
2962
|
+
"properties": {
|
|
2963
|
+
"kind": {
|
|
2964
|
+
"const": "boolean"
|
|
2965
|
+
},
|
|
2966
|
+
"value": {
|
|
2967
|
+
"type": "boolean"
|
|
2968
|
+
}
|
|
2969
|
+
},
|
|
2970
|
+
"required": [
|
|
2971
|
+
"kind",
|
|
2972
|
+
"value"
|
|
2973
|
+
],
|
|
2974
|
+
"additionalProperties": false
|
|
2975
|
+
},
|
|
2976
|
+
{
|
|
2977
|
+
"type": "object",
|
|
2978
|
+
"properties": {
|
|
2979
|
+
"kind": {
|
|
2980
|
+
"const": "list"
|
|
2981
|
+
},
|
|
2982
|
+
"values": {
|
|
2983
|
+
"type": "array",
|
|
2984
|
+
"maxItems": 256,
|
|
2985
|
+
"items": {
|
|
2986
|
+
"type": "object",
|
|
2987
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
2988
|
+
"properties": {
|
|
2989
|
+
"kind": {
|
|
2990
|
+
"type": "string",
|
|
2991
|
+
"enum": [
|
|
2992
|
+
"identifier",
|
|
2993
|
+
"string",
|
|
2994
|
+
"number",
|
|
2995
|
+
"boolean",
|
|
2996
|
+
"list",
|
|
2997
|
+
"block"
|
|
2998
|
+
]
|
|
2999
|
+
}
|
|
3000
|
+
},
|
|
3001
|
+
"required": [
|
|
3002
|
+
"kind"
|
|
3003
|
+
],
|
|
3004
|
+
"additionalProperties": true
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
},
|
|
3008
|
+
"required": [
|
|
3009
|
+
"kind",
|
|
3010
|
+
"values"
|
|
3011
|
+
],
|
|
3012
|
+
"additionalProperties": false
|
|
3013
|
+
},
|
|
3014
|
+
{
|
|
3015
|
+
"type": "object",
|
|
3016
|
+
"properties": {
|
|
3017
|
+
"kind": {
|
|
3018
|
+
"const": "block"
|
|
3019
|
+
},
|
|
3020
|
+
"entries": {
|
|
3021
|
+
"type": "array",
|
|
3022
|
+
"maxItems": 256,
|
|
3023
|
+
"items": {
|
|
3024
|
+
"type": "object",
|
|
3025
|
+
"properties": {
|
|
3026
|
+
"key": {
|
|
3027
|
+
"type": "string",
|
|
3028
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3029
|
+
},
|
|
3030
|
+
"value": {
|
|
3031
|
+
"type": "object",
|
|
3032
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
3033
|
+
"properties": {
|
|
3034
|
+
"kind": {
|
|
3035
|
+
"type": "string",
|
|
3036
|
+
"enum": [
|
|
3037
|
+
"identifier",
|
|
3038
|
+
"string",
|
|
3039
|
+
"number",
|
|
3040
|
+
"boolean",
|
|
3041
|
+
"list",
|
|
3042
|
+
"block"
|
|
3043
|
+
]
|
|
3044
|
+
}
|
|
3045
|
+
},
|
|
3046
|
+
"required": [
|
|
3047
|
+
"kind"
|
|
3048
|
+
],
|
|
3049
|
+
"additionalProperties": true
|
|
3050
|
+
}
|
|
3051
|
+
},
|
|
3052
|
+
"required": [
|
|
3053
|
+
"key",
|
|
3054
|
+
"value"
|
|
3055
|
+
],
|
|
3056
|
+
"additionalProperties": false
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3059
|
+
},
|
|
3060
|
+
"required": [
|
|
3061
|
+
"kind",
|
|
3062
|
+
"entries"
|
|
3063
|
+
],
|
|
3064
|
+
"additionalProperties": false
|
|
3065
|
+
}
|
|
3066
|
+
]
|
|
3067
|
+
}
|
|
3068
|
+
},
|
|
3069
|
+
"required": [
|
|
3070
|
+
"key",
|
|
3071
|
+
"value"
|
|
3072
|
+
],
|
|
3073
|
+
"additionalProperties": false
|
|
3074
|
+
}
|
|
3075
|
+
},
|
|
3076
|
+
"containerPath": {
|
|
3077
|
+
"type": "array",
|
|
3078
|
+
"maxItems": 8,
|
|
3079
|
+
"items": {
|
|
3080
|
+
"type": "string"
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
},
|
|
3084
|
+
"required": [
|
|
3085
|
+
"operation",
|
|
3086
|
+
"target",
|
|
3087
|
+
"script"
|
|
3088
|
+
],
|
|
3089
|
+
"additionalProperties": false
|
|
3090
|
+
},
|
|
3091
|
+
{
|
|
3092
|
+
"type": "object",
|
|
3093
|
+
"properties": {
|
|
3094
|
+
"operation": {
|
|
3095
|
+
"const": "set_definition_field"
|
|
3096
|
+
},
|
|
3097
|
+
"target": {
|
|
3098
|
+
"type": "string"
|
|
3099
|
+
},
|
|
3100
|
+
"path": {
|
|
3101
|
+
"type": "array",
|
|
3102
|
+
"minItems": 1,
|
|
3103
|
+
"maxItems": 8,
|
|
3104
|
+
"items": {
|
|
3105
|
+
"type": "object",
|
|
3106
|
+
"properties": {
|
|
3107
|
+
"key": {
|
|
3108
|
+
"type": "string",
|
|
3109
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3110
|
+
},
|
|
3111
|
+
"occurrence": {
|
|
3112
|
+
"type": "integer",
|
|
3113
|
+
"minimum": 1
|
|
3114
|
+
}
|
|
3115
|
+
},
|
|
3116
|
+
"required": [
|
|
3117
|
+
"key",
|
|
3118
|
+
"occurrence"
|
|
3119
|
+
],
|
|
3120
|
+
"additionalProperties": false
|
|
3121
|
+
}
|
|
3122
|
+
},
|
|
3123
|
+
"value": {
|
|
3124
|
+
"oneOf": [
|
|
3125
|
+
{
|
|
3126
|
+
"type": "object",
|
|
3127
|
+
"properties": {
|
|
3128
|
+
"kind": {
|
|
3129
|
+
"const": "identifier"
|
|
3130
|
+
},
|
|
3131
|
+
"value": {
|
|
3132
|
+
"type": "string",
|
|
3133
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3134
|
+
}
|
|
3135
|
+
},
|
|
3136
|
+
"required": [
|
|
3137
|
+
"kind",
|
|
3138
|
+
"value"
|
|
3139
|
+
],
|
|
3140
|
+
"additionalProperties": false
|
|
3141
|
+
},
|
|
3142
|
+
{
|
|
3143
|
+
"type": "object",
|
|
3144
|
+
"properties": {
|
|
3145
|
+
"kind": {
|
|
3146
|
+
"const": "string"
|
|
3147
|
+
},
|
|
3148
|
+
"value": {
|
|
3149
|
+
"type": "string",
|
|
3150
|
+
"maxLength": 4096,
|
|
3151
|
+
"pattern": "^[^\0-\x7F]*$"
|
|
3152
|
+
}
|
|
3153
|
+
},
|
|
3154
|
+
"required": [
|
|
3155
|
+
"kind",
|
|
3156
|
+
"value"
|
|
3157
|
+
],
|
|
3158
|
+
"additionalProperties": false
|
|
3159
|
+
},
|
|
3160
|
+
{
|
|
3161
|
+
"type": "object",
|
|
3162
|
+
"properties": {
|
|
3163
|
+
"kind": {
|
|
3164
|
+
"const": "number"
|
|
3165
|
+
},
|
|
3166
|
+
"value": {
|
|
3167
|
+
"type": "number"
|
|
3168
|
+
}
|
|
3169
|
+
},
|
|
3170
|
+
"required": [
|
|
3171
|
+
"kind",
|
|
3172
|
+
"value"
|
|
3173
|
+
],
|
|
3174
|
+
"additionalProperties": false
|
|
3175
|
+
},
|
|
3176
|
+
{
|
|
3177
|
+
"type": "object",
|
|
3178
|
+
"properties": {
|
|
3179
|
+
"kind": {
|
|
3180
|
+
"const": "boolean"
|
|
3181
|
+
},
|
|
3182
|
+
"value": {
|
|
3183
|
+
"type": "boolean"
|
|
3184
|
+
}
|
|
3185
|
+
},
|
|
3186
|
+
"required": [
|
|
3187
|
+
"kind",
|
|
3188
|
+
"value"
|
|
3189
|
+
],
|
|
3190
|
+
"additionalProperties": false
|
|
3191
|
+
},
|
|
3192
|
+
{
|
|
3193
|
+
"type": "object",
|
|
3194
|
+
"properties": {
|
|
3195
|
+
"kind": {
|
|
3196
|
+
"const": "list"
|
|
3197
|
+
},
|
|
3198
|
+
"values": {
|
|
3199
|
+
"type": "array",
|
|
3200
|
+
"maxItems": 256,
|
|
3201
|
+
"items": {
|
|
3202
|
+
"type": "object",
|
|
3203
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
3204
|
+
"properties": {
|
|
3205
|
+
"kind": {
|
|
3206
|
+
"type": "string",
|
|
3207
|
+
"enum": [
|
|
3208
|
+
"identifier",
|
|
3209
|
+
"string",
|
|
3210
|
+
"number",
|
|
3211
|
+
"boolean",
|
|
3212
|
+
"list",
|
|
3213
|
+
"block"
|
|
3214
|
+
]
|
|
3215
|
+
}
|
|
3216
|
+
},
|
|
3217
|
+
"required": [
|
|
3218
|
+
"kind"
|
|
3219
|
+
],
|
|
3220
|
+
"additionalProperties": true
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3223
|
+
},
|
|
3224
|
+
"required": [
|
|
3225
|
+
"kind",
|
|
3226
|
+
"values"
|
|
3227
|
+
],
|
|
3228
|
+
"additionalProperties": false
|
|
3229
|
+
},
|
|
3230
|
+
{
|
|
3231
|
+
"type": "object",
|
|
3232
|
+
"properties": {
|
|
3233
|
+
"kind": {
|
|
3234
|
+
"const": "block"
|
|
3235
|
+
},
|
|
3236
|
+
"entries": {
|
|
3237
|
+
"type": "array",
|
|
3238
|
+
"maxItems": 256,
|
|
3239
|
+
"items": {
|
|
3240
|
+
"type": "object",
|
|
3241
|
+
"properties": {
|
|
3242
|
+
"key": {
|
|
3243
|
+
"type": "string",
|
|
3244
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3245
|
+
},
|
|
3246
|
+
"value": {
|
|
3247
|
+
"type": "object",
|
|
3248
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
3249
|
+
"properties": {
|
|
3250
|
+
"kind": {
|
|
3251
|
+
"type": "string",
|
|
3252
|
+
"enum": [
|
|
3253
|
+
"identifier",
|
|
3254
|
+
"string",
|
|
3255
|
+
"number",
|
|
3256
|
+
"boolean",
|
|
3257
|
+
"list",
|
|
3258
|
+
"block"
|
|
3259
|
+
]
|
|
3260
|
+
}
|
|
3261
|
+
},
|
|
3262
|
+
"required": [
|
|
3263
|
+
"kind"
|
|
3264
|
+
],
|
|
3265
|
+
"additionalProperties": true
|
|
3266
|
+
}
|
|
3267
|
+
},
|
|
3268
|
+
"required": [
|
|
3269
|
+
"key",
|
|
3270
|
+
"value"
|
|
3271
|
+
],
|
|
3272
|
+
"additionalProperties": false
|
|
3273
|
+
}
|
|
3274
|
+
}
|
|
3275
|
+
},
|
|
3276
|
+
"required": [
|
|
3277
|
+
"kind",
|
|
3278
|
+
"entries"
|
|
3279
|
+
],
|
|
3280
|
+
"additionalProperties": false
|
|
3281
|
+
}
|
|
3282
|
+
]
|
|
3283
|
+
}
|
|
3284
|
+
},
|
|
3285
|
+
"required": [
|
|
3286
|
+
"operation",
|
|
3287
|
+
"target",
|
|
3288
|
+
"path",
|
|
3289
|
+
"value"
|
|
3290
|
+
],
|
|
3291
|
+
"additionalProperties": false
|
|
3292
|
+
},
|
|
3293
|
+
{
|
|
3294
|
+
"type": "object",
|
|
3295
|
+
"properties": {
|
|
3296
|
+
"operation": {
|
|
3297
|
+
"const": "delete_definition_field"
|
|
3298
|
+
},
|
|
3299
|
+
"target": {
|
|
3300
|
+
"type": "string"
|
|
3301
|
+
},
|
|
3302
|
+
"path": {
|
|
3303
|
+
"type": "array",
|
|
3304
|
+
"minItems": 1,
|
|
3305
|
+
"maxItems": 8,
|
|
3306
|
+
"items": {
|
|
3307
|
+
"type": "object",
|
|
3308
|
+
"properties": {
|
|
3309
|
+
"key": {
|
|
3310
|
+
"type": "string",
|
|
3311
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3312
|
+
},
|
|
3313
|
+
"occurrence": {
|
|
3314
|
+
"type": "integer",
|
|
3315
|
+
"minimum": 1
|
|
3316
|
+
}
|
|
3317
|
+
},
|
|
3318
|
+
"required": [
|
|
3319
|
+
"key",
|
|
3320
|
+
"occurrence"
|
|
3321
|
+
],
|
|
3322
|
+
"additionalProperties": false
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
},
|
|
3326
|
+
"required": [
|
|
3327
|
+
"operation",
|
|
3328
|
+
"target",
|
|
3329
|
+
"path"
|
|
3330
|
+
],
|
|
3331
|
+
"additionalProperties": false
|
|
3332
|
+
},
|
|
3333
|
+
{
|
|
3334
|
+
"type": "object",
|
|
3335
|
+
"properties": {
|
|
3336
|
+
"operation": {
|
|
3337
|
+
"const": "add_definition_field"
|
|
3338
|
+
},
|
|
3339
|
+
"target": {
|
|
3340
|
+
"type": "string"
|
|
3341
|
+
},
|
|
3342
|
+
"path": {
|
|
3343
|
+
"type": "array",
|
|
3344
|
+
"minItems": 0,
|
|
3345
|
+
"maxItems": 8,
|
|
3346
|
+
"items": {
|
|
3347
|
+
"type": "object",
|
|
3348
|
+
"properties": {
|
|
3349
|
+
"key": {
|
|
3350
|
+
"type": "string",
|
|
3351
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3352
|
+
},
|
|
3353
|
+
"occurrence": {
|
|
3354
|
+
"type": "integer",
|
|
3355
|
+
"minimum": 1
|
|
3356
|
+
}
|
|
3357
|
+
},
|
|
3358
|
+
"required": [
|
|
3359
|
+
"key",
|
|
3360
|
+
"occurrence"
|
|
3361
|
+
],
|
|
3362
|
+
"additionalProperties": false
|
|
3363
|
+
}
|
|
3364
|
+
},
|
|
3365
|
+
"entry": {
|
|
3366
|
+
"type": "object",
|
|
3367
|
+
"properties": {
|
|
3368
|
+
"key": {
|
|
3369
|
+
"type": "string",
|
|
3370
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3371
|
+
},
|
|
3372
|
+
"value": {
|
|
3373
|
+
"oneOf": [
|
|
3374
|
+
{
|
|
3375
|
+
"type": "object",
|
|
3376
|
+
"properties": {
|
|
3377
|
+
"kind": {
|
|
3378
|
+
"const": "identifier"
|
|
3379
|
+
},
|
|
3380
|
+
"value": {
|
|
3381
|
+
"type": "string",
|
|
3382
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3383
|
+
}
|
|
3384
|
+
},
|
|
3385
|
+
"required": [
|
|
3386
|
+
"kind",
|
|
3387
|
+
"value"
|
|
3388
|
+
],
|
|
3389
|
+
"additionalProperties": false
|
|
3390
|
+
},
|
|
3391
|
+
{
|
|
3392
|
+
"type": "object",
|
|
3393
|
+
"properties": {
|
|
3394
|
+
"kind": {
|
|
3395
|
+
"const": "string"
|
|
3396
|
+
},
|
|
3397
|
+
"value": {
|
|
3398
|
+
"type": "string",
|
|
3399
|
+
"maxLength": 4096,
|
|
3400
|
+
"pattern": "^[^\0-\x7F]*$"
|
|
3401
|
+
}
|
|
3402
|
+
},
|
|
3403
|
+
"required": [
|
|
3404
|
+
"kind",
|
|
3405
|
+
"value"
|
|
3406
|
+
],
|
|
3407
|
+
"additionalProperties": false
|
|
3408
|
+
},
|
|
3409
|
+
{
|
|
3410
|
+
"type": "object",
|
|
3411
|
+
"properties": {
|
|
3412
|
+
"kind": {
|
|
3413
|
+
"const": "number"
|
|
3414
|
+
},
|
|
3415
|
+
"value": {
|
|
3416
|
+
"type": "number"
|
|
3417
|
+
}
|
|
3418
|
+
},
|
|
3419
|
+
"required": [
|
|
3420
|
+
"kind",
|
|
3421
|
+
"value"
|
|
3422
|
+
],
|
|
3423
|
+
"additionalProperties": false
|
|
3424
|
+
},
|
|
3425
|
+
{
|
|
3426
|
+
"type": "object",
|
|
3427
|
+
"properties": {
|
|
3428
|
+
"kind": {
|
|
3429
|
+
"const": "boolean"
|
|
3430
|
+
},
|
|
3431
|
+
"value": {
|
|
3432
|
+
"type": "boolean"
|
|
3433
|
+
}
|
|
3434
|
+
},
|
|
3435
|
+
"required": [
|
|
3436
|
+
"kind",
|
|
3437
|
+
"value"
|
|
3438
|
+
],
|
|
3439
|
+
"additionalProperties": false
|
|
3440
|
+
},
|
|
3441
|
+
{
|
|
3442
|
+
"type": "object",
|
|
3443
|
+
"properties": {
|
|
3444
|
+
"kind": {
|
|
3445
|
+
"const": "list"
|
|
3446
|
+
},
|
|
3447
|
+
"values": {
|
|
3448
|
+
"type": "array",
|
|
3449
|
+
"maxItems": 256,
|
|
3450
|
+
"items": {
|
|
3451
|
+
"type": "object",
|
|
3452
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
3453
|
+
"properties": {
|
|
3454
|
+
"kind": {
|
|
3455
|
+
"type": "string",
|
|
3456
|
+
"enum": [
|
|
3457
|
+
"identifier",
|
|
3458
|
+
"string",
|
|
3459
|
+
"number",
|
|
3460
|
+
"boolean",
|
|
3461
|
+
"list",
|
|
3462
|
+
"block"
|
|
3463
|
+
]
|
|
3464
|
+
}
|
|
3465
|
+
},
|
|
3466
|
+
"required": [
|
|
3467
|
+
"kind"
|
|
3468
|
+
],
|
|
3469
|
+
"additionalProperties": true
|
|
3470
|
+
}
|
|
3471
|
+
}
|
|
3472
|
+
},
|
|
3473
|
+
"required": [
|
|
3474
|
+
"kind",
|
|
3475
|
+
"values"
|
|
3476
|
+
],
|
|
3477
|
+
"additionalProperties": false
|
|
3478
|
+
},
|
|
3479
|
+
{
|
|
3480
|
+
"type": "object",
|
|
3481
|
+
"properties": {
|
|
3482
|
+
"kind": {
|
|
3483
|
+
"const": "block"
|
|
3484
|
+
},
|
|
3485
|
+
"entries": {
|
|
3486
|
+
"type": "array",
|
|
3487
|
+
"maxItems": 256,
|
|
3488
|
+
"items": {
|
|
3489
|
+
"type": "object",
|
|
3490
|
+
"properties": {
|
|
3491
|
+
"key": {
|
|
3492
|
+
"type": "string",
|
|
3493
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3494
|
+
},
|
|
3495
|
+
"value": {
|
|
3496
|
+
"type": "object",
|
|
3497
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
3498
|
+
"properties": {
|
|
3499
|
+
"kind": {
|
|
3500
|
+
"type": "string",
|
|
3501
|
+
"enum": [
|
|
3502
|
+
"identifier",
|
|
3503
|
+
"string",
|
|
3504
|
+
"number",
|
|
3505
|
+
"boolean",
|
|
3506
|
+
"list",
|
|
3507
|
+
"block"
|
|
3508
|
+
]
|
|
3509
|
+
}
|
|
3510
|
+
},
|
|
3511
|
+
"required": [
|
|
3512
|
+
"kind"
|
|
3513
|
+
],
|
|
3514
|
+
"additionalProperties": true
|
|
3515
|
+
}
|
|
3516
|
+
},
|
|
3517
|
+
"required": [
|
|
3518
|
+
"key",
|
|
3519
|
+
"value"
|
|
3520
|
+
],
|
|
3521
|
+
"additionalProperties": false
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
},
|
|
3525
|
+
"required": [
|
|
3526
|
+
"kind",
|
|
3527
|
+
"entries"
|
|
3528
|
+
],
|
|
3529
|
+
"additionalProperties": false
|
|
3530
|
+
}
|
|
3531
|
+
]
|
|
3532
|
+
}
|
|
3533
|
+
},
|
|
3534
|
+
"required": [
|
|
3535
|
+
"key",
|
|
3536
|
+
"value"
|
|
3537
|
+
],
|
|
3538
|
+
"additionalProperties": false
|
|
3539
|
+
}
|
|
3540
|
+
},
|
|
3541
|
+
"required": [
|
|
3542
|
+
"operation",
|
|
3543
|
+
"target",
|
|
3544
|
+
"path",
|
|
3545
|
+
"entry"
|
|
3546
|
+
],
|
|
3547
|
+
"additionalProperties": false
|
|
3548
|
+
},
|
|
3549
|
+
{
|
|
3550
|
+
"type": "object",
|
|
3551
|
+
"properties": {
|
|
3552
|
+
"operation": {
|
|
3553
|
+
"const": "add_scripted_effect_call"
|
|
3554
|
+
},
|
|
3555
|
+
"target": {
|
|
3556
|
+
"type": "string"
|
|
3557
|
+
},
|
|
3558
|
+
"script": {
|
|
3559
|
+
"type": "string",
|
|
3560
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3561
|
+
},
|
|
3562
|
+
"arguments": {
|
|
3563
|
+
"type": "array",
|
|
3564
|
+
"maxItems": 256,
|
|
3565
|
+
"items": {
|
|
3566
|
+
"type": "object",
|
|
3567
|
+
"properties": {
|
|
3568
|
+
"key": {
|
|
3569
|
+
"type": "string",
|
|
3570
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3571
|
+
},
|
|
3572
|
+
"value": {
|
|
3573
|
+
"oneOf": [
|
|
3574
|
+
{
|
|
3575
|
+
"type": "object",
|
|
3576
|
+
"properties": {
|
|
3577
|
+
"kind": {
|
|
3578
|
+
"const": "identifier"
|
|
3579
|
+
},
|
|
3580
|
+
"value": {
|
|
3581
|
+
"type": "string",
|
|
3582
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3583
|
+
}
|
|
3584
|
+
},
|
|
3585
|
+
"required": [
|
|
3586
|
+
"kind",
|
|
3587
|
+
"value"
|
|
3588
|
+
],
|
|
3589
|
+
"additionalProperties": false
|
|
3590
|
+
},
|
|
3591
|
+
{
|
|
3592
|
+
"type": "object",
|
|
3593
|
+
"properties": {
|
|
3594
|
+
"kind": {
|
|
3595
|
+
"const": "string"
|
|
3596
|
+
},
|
|
3597
|
+
"value": {
|
|
3598
|
+
"type": "string",
|
|
3599
|
+
"maxLength": 4096,
|
|
3600
|
+
"pattern": "^[^\0-\x7F]*$"
|
|
3601
|
+
}
|
|
3602
|
+
},
|
|
3603
|
+
"required": [
|
|
3604
|
+
"kind",
|
|
3605
|
+
"value"
|
|
3606
|
+
],
|
|
3607
|
+
"additionalProperties": false
|
|
3608
|
+
},
|
|
3609
|
+
{
|
|
3610
|
+
"type": "object",
|
|
3611
|
+
"properties": {
|
|
3612
|
+
"kind": {
|
|
3613
|
+
"const": "number"
|
|
3614
|
+
},
|
|
3615
|
+
"value": {
|
|
3616
|
+
"type": "number"
|
|
3617
|
+
}
|
|
3618
|
+
},
|
|
3619
|
+
"required": [
|
|
3620
|
+
"kind",
|
|
3621
|
+
"value"
|
|
3622
|
+
],
|
|
3623
|
+
"additionalProperties": false
|
|
3624
|
+
},
|
|
3625
|
+
{
|
|
3626
|
+
"type": "object",
|
|
3627
|
+
"properties": {
|
|
3628
|
+
"kind": {
|
|
3629
|
+
"const": "boolean"
|
|
3630
|
+
},
|
|
3631
|
+
"value": {
|
|
3632
|
+
"type": "boolean"
|
|
3633
|
+
}
|
|
3634
|
+
},
|
|
3635
|
+
"required": [
|
|
3636
|
+
"kind",
|
|
3637
|
+
"value"
|
|
3638
|
+
],
|
|
3639
|
+
"additionalProperties": false
|
|
3640
|
+
},
|
|
3641
|
+
{
|
|
3642
|
+
"type": "object",
|
|
3643
|
+
"properties": {
|
|
3644
|
+
"kind": {
|
|
3645
|
+
"const": "list"
|
|
3646
|
+
},
|
|
3647
|
+
"values": {
|
|
3648
|
+
"type": "array",
|
|
3649
|
+
"maxItems": 256,
|
|
3650
|
+
"items": {
|
|
3651
|
+
"type": "object",
|
|
3652
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
3653
|
+
"properties": {
|
|
3654
|
+
"kind": {
|
|
3655
|
+
"type": "string",
|
|
3656
|
+
"enum": [
|
|
3657
|
+
"identifier",
|
|
3658
|
+
"string",
|
|
3659
|
+
"number",
|
|
3660
|
+
"boolean",
|
|
3661
|
+
"list",
|
|
3662
|
+
"block"
|
|
3663
|
+
]
|
|
3664
|
+
}
|
|
3665
|
+
},
|
|
3666
|
+
"required": [
|
|
3667
|
+
"kind"
|
|
3668
|
+
],
|
|
3669
|
+
"additionalProperties": true
|
|
3670
|
+
}
|
|
3671
|
+
}
|
|
3672
|
+
},
|
|
3673
|
+
"required": [
|
|
3674
|
+
"kind",
|
|
3675
|
+
"values"
|
|
3676
|
+
],
|
|
3677
|
+
"additionalProperties": false
|
|
3678
|
+
},
|
|
3679
|
+
{
|
|
3680
|
+
"type": "object",
|
|
3681
|
+
"properties": {
|
|
3682
|
+
"kind": {
|
|
3683
|
+
"const": "block"
|
|
3684
|
+
},
|
|
3685
|
+
"entries": {
|
|
3686
|
+
"type": "array",
|
|
3687
|
+
"maxItems": 256,
|
|
3688
|
+
"items": {
|
|
3689
|
+
"type": "object",
|
|
3690
|
+
"properties": {
|
|
3691
|
+
"key": {
|
|
3692
|
+
"type": "string",
|
|
3693
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3694
|
+
},
|
|
3695
|
+
"value": {
|
|
3696
|
+
"type": "object",
|
|
3697
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
3698
|
+
"properties": {
|
|
3699
|
+
"kind": {
|
|
3700
|
+
"type": "string",
|
|
3701
|
+
"enum": [
|
|
3702
|
+
"identifier",
|
|
3703
|
+
"string",
|
|
3704
|
+
"number",
|
|
3705
|
+
"boolean",
|
|
3706
|
+
"list",
|
|
3707
|
+
"block"
|
|
3708
|
+
]
|
|
3709
|
+
}
|
|
3710
|
+
},
|
|
3711
|
+
"required": [
|
|
3712
|
+
"kind"
|
|
3713
|
+
],
|
|
3714
|
+
"additionalProperties": true
|
|
3715
|
+
}
|
|
3716
|
+
},
|
|
3717
|
+
"required": [
|
|
3718
|
+
"key",
|
|
3719
|
+
"value"
|
|
3720
|
+
],
|
|
3721
|
+
"additionalProperties": false
|
|
3722
|
+
}
|
|
3723
|
+
}
|
|
3724
|
+
},
|
|
3725
|
+
"required": [
|
|
3726
|
+
"kind",
|
|
3727
|
+
"entries"
|
|
3728
|
+
],
|
|
3729
|
+
"additionalProperties": false
|
|
3730
|
+
}
|
|
3731
|
+
]
|
|
3732
|
+
}
|
|
3733
|
+
},
|
|
3734
|
+
"required": [
|
|
3735
|
+
"key",
|
|
3736
|
+
"value"
|
|
3737
|
+
],
|
|
3738
|
+
"additionalProperties": false
|
|
3739
|
+
}
|
|
3740
|
+
},
|
|
3741
|
+
"containerPath": {
|
|
3742
|
+
"type": "array",
|
|
3743
|
+
"maxItems": 8,
|
|
3744
|
+
"items": {
|
|
3745
|
+
"type": "string"
|
|
3746
|
+
}
|
|
3747
|
+
}
|
|
3748
|
+
},
|
|
3749
|
+
"required": [
|
|
3750
|
+
"operation",
|
|
3751
|
+
"target",
|
|
3752
|
+
"script"
|
|
3753
|
+
],
|
|
3754
|
+
"additionalProperties": false
|
|
3755
|
+
},
|
|
3756
|
+
{
|
|
3757
|
+
"type": "object",
|
|
3758
|
+
"properties": {
|
|
3759
|
+
"operation": {
|
|
3760
|
+
"const": "add_scripted_trigger_call"
|
|
3761
|
+
},
|
|
3762
|
+
"target": {
|
|
3763
|
+
"type": "string"
|
|
3764
|
+
},
|
|
3765
|
+
"script": {
|
|
3766
|
+
"type": "string",
|
|
3767
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3768
|
+
},
|
|
3769
|
+
"arguments": {
|
|
3770
|
+
"type": "array",
|
|
3771
|
+
"maxItems": 256,
|
|
3772
|
+
"items": {
|
|
3773
|
+
"type": "object",
|
|
3774
|
+
"properties": {
|
|
3775
|
+
"key": {
|
|
3776
|
+
"type": "string",
|
|
3777
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3778
|
+
},
|
|
3779
|
+
"value": {
|
|
3780
|
+
"oneOf": [
|
|
3781
|
+
{
|
|
3782
|
+
"type": "object",
|
|
3783
|
+
"properties": {
|
|
3784
|
+
"kind": {
|
|
3785
|
+
"const": "identifier"
|
|
3786
|
+
},
|
|
3787
|
+
"value": {
|
|
3788
|
+
"type": "string",
|
|
3789
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3790
|
+
}
|
|
3791
|
+
},
|
|
3792
|
+
"required": [
|
|
3793
|
+
"kind",
|
|
3794
|
+
"value"
|
|
3795
|
+
],
|
|
3796
|
+
"additionalProperties": false
|
|
3797
|
+
},
|
|
3798
|
+
{
|
|
3799
|
+
"type": "object",
|
|
3800
|
+
"properties": {
|
|
3801
|
+
"kind": {
|
|
3802
|
+
"const": "string"
|
|
3803
|
+
},
|
|
3804
|
+
"value": {
|
|
3805
|
+
"type": "string",
|
|
3806
|
+
"maxLength": 4096,
|
|
3807
|
+
"pattern": "^[^\0-\x7F]*$"
|
|
3808
|
+
}
|
|
3809
|
+
},
|
|
3810
|
+
"required": [
|
|
3811
|
+
"kind",
|
|
3812
|
+
"value"
|
|
3813
|
+
],
|
|
3814
|
+
"additionalProperties": false
|
|
3815
|
+
},
|
|
3816
|
+
{
|
|
3817
|
+
"type": "object",
|
|
3818
|
+
"properties": {
|
|
3819
|
+
"kind": {
|
|
3820
|
+
"const": "number"
|
|
3821
|
+
},
|
|
3822
|
+
"value": {
|
|
3823
|
+
"type": "number"
|
|
3824
|
+
}
|
|
3825
|
+
},
|
|
3826
|
+
"required": [
|
|
3827
|
+
"kind",
|
|
3828
|
+
"value"
|
|
3829
|
+
],
|
|
3830
|
+
"additionalProperties": false
|
|
3831
|
+
},
|
|
3832
|
+
{
|
|
3833
|
+
"type": "object",
|
|
3834
|
+
"properties": {
|
|
3835
|
+
"kind": {
|
|
3836
|
+
"const": "boolean"
|
|
3837
|
+
},
|
|
3838
|
+
"value": {
|
|
3839
|
+
"type": "boolean"
|
|
3840
|
+
}
|
|
3841
|
+
},
|
|
3842
|
+
"required": [
|
|
3843
|
+
"kind",
|
|
3844
|
+
"value"
|
|
3845
|
+
],
|
|
3846
|
+
"additionalProperties": false
|
|
3847
|
+
},
|
|
3848
|
+
{
|
|
3849
|
+
"type": "object",
|
|
3850
|
+
"properties": {
|
|
3851
|
+
"kind": {
|
|
3852
|
+
"const": "list"
|
|
3853
|
+
},
|
|
3854
|
+
"values": {
|
|
3855
|
+
"type": "array",
|
|
3856
|
+
"maxItems": 256,
|
|
3857
|
+
"items": {
|
|
3858
|
+
"type": "object",
|
|
3859
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
3860
|
+
"properties": {
|
|
3861
|
+
"kind": {
|
|
3862
|
+
"type": "string",
|
|
3863
|
+
"enum": [
|
|
3864
|
+
"identifier",
|
|
3865
|
+
"string",
|
|
3866
|
+
"number",
|
|
3867
|
+
"boolean",
|
|
3868
|
+
"list",
|
|
3869
|
+
"block"
|
|
3870
|
+
]
|
|
3871
|
+
}
|
|
3872
|
+
},
|
|
3873
|
+
"required": [
|
|
3874
|
+
"kind"
|
|
3875
|
+
],
|
|
3876
|
+
"additionalProperties": true
|
|
3877
|
+
}
|
|
3878
|
+
}
|
|
3879
|
+
},
|
|
3880
|
+
"required": [
|
|
3881
|
+
"kind",
|
|
3882
|
+
"values"
|
|
3883
|
+
],
|
|
3884
|
+
"additionalProperties": false
|
|
3885
|
+
},
|
|
3886
|
+
{
|
|
3887
|
+
"type": "object",
|
|
3888
|
+
"properties": {
|
|
3889
|
+
"kind": {
|
|
3890
|
+
"const": "block"
|
|
3891
|
+
},
|
|
3892
|
+
"entries": {
|
|
3893
|
+
"type": "array",
|
|
3894
|
+
"maxItems": 256,
|
|
3895
|
+
"items": {
|
|
3896
|
+
"type": "object",
|
|
3897
|
+
"properties": {
|
|
3898
|
+
"key": {
|
|
3899
|
+
"type": "string",
|
|
3900
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3901
|
+
},
|
|
3902
|
+
"value": {
|
|
3903
|
+
"type": "object",
|
|
3904
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
3905
|
+
"properties": {
|
|
3906
|
+
"kind": {
|
|
3907
|
+
"type": "string",
|
|
3908
|
+
"enum": [
|
|
3909
|
+
"identifier",
|
|
3910
|
+
"string",
|
|
3911
|
+
"number",
|
|
3912
|
+
"boolean",
|
|
3913
|
+
"list",
|
|
3914
|
+
"block"
|
|
3915
|
+
]
|
|
3916
|
+
}
|
|
3917
|
+
},
|
|
3918
|
+
"required": [
|
|
3919
|
+
"kind"
|
|
3920
|
+
],
|
|
3921
|
+
"additionalProperties": true
|
|
3922
|
+
}
|
|
3923
|
+
},
|
|
3924
|
+
"required": [
|
|
3925
|
+
"key",
|
|
3926
|
+
"value"
|
|
3927
|
+
],
|
|
3928
|
+
"additionalProperties": false
|
|
3929
|
+
}
|
|
3930
|
+
}
|
|
3931
|
+
},
|
|
3932
|
+
"required": [
|
|
3933
|
+
"kind",
|
|
3934
|
+
"entries"
|
|
3935
|
+
],
|
|
3936
|
+
"additionalProperties": false
|
|
3937
|
+
}
|
|
3938
|
+
]
|
|
3939
|
+
}
|
|
3940
|
+
},
|
|
3941
|
+
"required": [
|
|
3942
|
+
"key",
|
|
3943
|
+
"value"
|
|
3944
|
+
],
|
|
3945
|
+
"additionalProperties": false
|
|
3946
|
+
}
|
|
3947
|
+
},
|
|
3948
|
+
"containerPath": {
|
|
3949
|
+
"type": "array",
|
|
3950
|
+
"maxItems": 8,
|
|
3951
|
+
"items": {
|
|
3952
|
+
"type": "string"
|
|
3953
|
+
}
|
|
3954
|
+
}
|
|
3955
|
+
},
|
|
3956
|
+
"required": [
|
|
3957
|
+
"operation",
|
|
3958
|
+
"target",
|
|
3959
|
+
"script"
|
|
3960
|
+
],
|
|
3961
|
+
"additionalProperties": false
|
|
3962
|
+
},
|
|
3963
|
+
{
|
|
3964
|
+
"type": "object",
|
|
3965
|
+
"properties": {
|
|
3966
|
+
"operation": {
|
|
3967
|
+
"const": "add_on_action_entry"
|
|
3968
|
+
},
|
|
3969
|
+
"target": {
|
|
3970
|
+
"type": "string"
|
|
3971
|
+
},
|
|
3972
|
+
"entry": {
|
|
3973
|
+
"type": "object",
|
|
3974
|
+
"properties": {
|
|
3975
|
+
"key": {
|
|
3976
|
+
"type": "string",
|
|
3977
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3978
|
+
},
|
|
3979
|
+
"value": {
|
|
3980
|
+
"oneOf": [
|
|
3981
|
+
{
|
|
3982
|
+
"type": "object",
|
|
3983
|
+
"properties": {
|
|
3984
|
+
"kind": {
|
|
3985
|
+
"const": "identifier"
|
|
3986
|
+
},
|
|
3987
|
+
"value": {
|
|
3988
|
+
"type": "string",
|
|
3989
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
3990
|
+
}
|
|
3991
|
+
},
|
|
3992
|
+
"required": [
|
|
3993
|
+
"kind",
|
|
3994
|
+
"value"
|
|
3995
|
+
],
|
|
3996
|
+
"additionalProperties": false
|
|
3997
|
+
},
|
|
3998
|
+
{
|
|
3999
|
+
"type": "object",
|
|
4000
|
+
"properties": {
|
|
4001
|
+
"kind": {
|
|
4002
|
+
"const": "string"
|
|
4003
|
+
},
|
|
4004
|
+
"value": {
|
|
4005
|
+
"type": "string",
|
|
4006
|
+
"maxLength": 4096,
|
|
4007
|
+
"pattern": "^[^\0-\x7F]*$"
|
|
4008
|
+
}
|
|
4009
|
+
},
|
|
4010
|
+
"required": [
|
|
4011
|
+
"kind",
|
|
4012
|
+
"value"
|
|
4013
|
+
],
|
|
4014
|
+
"additionalProperties": false
|
|
4015
|
+
},
|
|
4016
|
+
{
|
|
4017
|
+
"type": "object",
|
|
4018
|
+
"properties": {
|
|
4019
|
+
"kind": {
|
|
4020
|
+
"const": "number"
|
|
4021
|
+
},
|
|
4022
|
+
"value": {
|
|
4023
|
+
"type": "number"
|
|
4024
|
+
}
|
|
4025
|
+
},
|
|
4026
|
+
"required": [
|
|
4027
|
+
"kind",
|
|
4028
|
+
"value"
|
|
4029
|
+
],
|
|
4030
|
+
"additionalProperties": false
|
|
4031
|
+
},
|
|
4032
|
+
{
|
|
4033
|
+
"type": "object",
|
|
4034
|
+
"properties": {
|
|
4035
|
+
"kind": {
|
|
4036
|
+
"const": "boolean"
|
|
4037
|
+
},
|
|
4038
|
+
"value": {
|
|
4039
|
+
"type": "boolean"
|
|
4040
|
+
}
|
|
4041
|
+
},
|
|
4042
|
+
"required": [
|
|
4043
|
+
"kind",
|
|
4044
|
+
"value"
|
|
4045
|
+
],
|
|
4046
|
+
"additionalProperties": false
|
|
4047
|
+
},
|
|
4048
|
+
{
|
|
4049
|
+
"type": "object",
|
|
4050
|
+
"properties": {
|
|
4051
|
+
"kind": {
|
|
4052
|
+
"const": "list"
|
|
4053
|
+
},
|
|
4054
|
+
"values": {
|
|
4055
|
+
"type": "array",
|
|
4056
|
+
"maxItems": 256,
|
|
4057
|
+
"items": {
|
|
4058
|
+
"type": "object",
|
|
4059
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
4060
|
+
"properties": {
|
|
4061
|
+
"kind": {
|
|
4062
|
+
"type": "string",
|
|
4063
|
+
"enum": [
|
|
4064
|
+
"identifier",
|
|
4065
|
+
"string",
|
|
4066
|
+
"number",
|
|
4067
|
+
"boolean",
|
|
4068
|
+
"list",
|
|
4069
|
+
"block"
|
|
4070
|
+
]
|
|
4071
|
+
}
|
|
4072
|
+
},
|
|
4073
|
+
"required": [
|
|
4074
|
+
"kind"
|
|
4075
|
+
],
|
|
4076
|
+
"additionalProperties": true
|
|
4077
|
+
}
|
|
4078
|
+
}
|
|
4079
|
+
},
|
|
4080
|
+
"required": [
|
|
4081
|
+
"kind",
|
|
4082
|
+
"values"
|
|
4083
|
+
],
|
|
4084
|
+
"additionalProperties": false
|
|
4085
|
+
},
|
|
4086
|
+
{
|
|
4087
|
+
"type": "object",
|
|
4088
|
+
"properties": {
|
|
4089
|
+
"kind": {
|
|
4090
|
+
"const": "block"
|
|
4091
|
+
},
|
|
4092
|
+
"entries": {
|
|
4093
|
+
"type": "array",
|
|
4094
|
+
"maxItems": 256,
|
|
4095
|
+
"items": {
|
|
4096
|
+
"type": "object",
|
|
4097
|
+
"properties": {
|
|
4098
|
+
"key": {
|
|
4099
|
+
"type": "string",
|
|
4100
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
4101
|
+
},
|
|
4102
|
+
"value": {
|
|
4103
|
+
"type": "object",
|
|
4104
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
4105
|
+
"properties": {
|
|
4106
|
+
"kind": {
|
|
4107
|
+
"type": "string",
|
|
4108
|
+
"enum": [
|
|
4109
|
+
"identifier",
|
|
4110
|
+
"string",
|
|
4111
|
+
"number",
|
|
4112
|
+
"boolean",
|
|
4113
|
+
"list",
|
|
4114
|
+
"block"
|
|
4115
|
+
]
|
|
4116
|
+
}
|
|
4117
|
+
},
|
|
4118
|
+
"required": [
|
|
4119
|
+
"kind"
|
|
4120
|
+
],
|
|
4121
|
+
"additionalProperties": true
|
|
4122
|
+
}
|
|
4123
|
+
},
|
|
4124
|
+
"required": [
|
|
4125
|
+
"key",
|
|
4126
|
+
"value"
|
|
4127
|
+
],
|
|
4128
|
+
"additionalProperties": false
|
|
4129
|
+
}
|
|
4130
|
+
}
|
|
4131
|
+
},
|
|
4132
|
+
"required": [
|
|
4133
|
+
"kind",
|
|
4134
|
+
"entries"
|
|
4135
|
+
],
|
|
4136
|
+
"additionalProperties": false
|
|
4137
|
+
}
|
|
4138
|
+
]
|
|
4139
|
+
}
|
|
4140
|
+
},
|
|
4141
|
+
"required": [
|
|
4142
|
+
"key",
|
|
4143
|
+
"value"
|
|
4144
|
+
],
|
|
4145
|
+
"additionalProperties": false
|
|
4146
|
+
}
|
|
4147
|
+
},
|
|
4148
|
+
"required": [
|
|
4149
|
+
"operation",
|
|
4150
|
+
"target",
|
|
4151
|
+
"entry"
|
|
4152
|
+
],
|
|
4153
|
+
"additionalProperties": false
|
|
4154
|
+
},
|
|
4155
|
+
{
|
|
4156
|
+
"type": "object",
|
|
4157
|
+
"properties": {
|
|
4158
|
+
"operation": {
|
|
4159
|
+
"const": "bind_event_target"
|
|
4160
|
+
},
|
|
4161
|
+
"target": {
|
|
4162
|
+
"type": "string"
|
|
4163
|
+
},
|
|
4164
|
+
"eventTarget": {
|
|
4165
|
+
"type": "string",
|
|
4166
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
4167
|
+
},
|
|
4168
|
+
"containerPath": {
|
|
4169
|
+
"type": "array",
|
|
4170
|
+
"maxItems": 8,
|
|
4171
|
+
"items": {
|
|
4172
|
+
"type": "string"
|
|
4173
|
+
}
|
|
4174
|
+
}
|
|
4175
|
+
},
|
|
4176
|
+
"required": [
|
|
4177
|
+
"operation",
|
|
4178
|
+
"target",
|
|
4179
|
+
"eventTarget"
|
|
4180
|
+
],
|
|
4181
|
+
"additionalProperties": false
|
|
4182
|
+
},
|
|
4183
|
+
{
|
|
4184
|
+
"type": "object",
|
|
4185
|
+
"properties": {
|
|
4186
|
+
"operation": {
|
|
4187
|
+
"const": "clear_event_target"
|
|
4188
|
+
},
|
|
4189
|
+
"target": {
|
|
4190
|
+
"type": "string"
|
|
4191
|
+
},
|
|
4192
|
+
"eventTarget": {
|
|
4193
|
+
"type": "string",
|
|
4194
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
4195
|
+
},
|
|
4196
|
+
"containerPath": {
|
|
4197
|
+
"type": "array",
|
|
4198
|
+
"maxItems": 8,
|
|
4199
|
+
"items": {
|
|
4200
|
+
"type": "string"
|
|
4201
|
+
}
|
|
4202
|
+
}
|
|
4203
|
+
},
|
|
4204
|
+
"required": [
|
|
4205
|
+
"operation",
|
|
4206
|
+
"target",
|
|
4207
|
+
"eventTarget"
|
|
4208
|
+
],
|
|
4209
|
+
"additionalProperties": false
|
|
4210
|
+
},
|
|
4211
|
+
{
|
|
4212
|
+
"type": "object",
|
|
4213
|
+
"properties": {
|
|
4214
|
+
"operation": {
|
|
4215
|
+
"const": "add_variable_transition"
|
|
4216
|
+
},
|
|
4217
|
+
"target": {
|
|
4218
|
+
"type": "string"
|
|
4219
|
+
},
|
|
4220
|
+
"transition": {
|
|
4221
|
+
"type": "string",
|
|
4222
|
+
"enum": [
|
|
4223
|
+
"set_variable",
|
|
4224
|
+
"change_variable",
|
|
4225
|
+
"multiply_variable",
|
|
4226
|
+
"divide_variable"
|
|
4227
|
+
]
|
|
4228
|
+
},
|
|
4229
|
+
"variable": {
|
|
4230
|
+
"type": "string",
|
|
4231
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
4232
|
+
},
|
|
4233
|
+
"value": {
|
|
4234
|
+
"oneOf": [
|
|
4235
|
+
{
|
|
4236
|
+
"type": "object",
|
|
4237
|
+
"properties": {
|
|
4238
|
+
"kind": {
|
|
4239
|
+
"const": "identifier"
|
|
4240
|
+
},
|
|
4241
|
+
"value": {
|
|
4242
|
+
"type": "string",
|
|
4243
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
4244
|
+
}
|
|
4245
|
+
},
|
|
4246
|
+
"required": [
|
|
4247
|
+
"kind",
|
|
4248
|
+
"value"
|
|
4249
|
+
],
|
|
4250
|
+
"additionalProperties": false
|
|
4251
|
+
},
|
|
4252
|
+
{
|
|
4253
|
+
"type": "object",
|
|
4254
|
+
"properties": {
|
|
4255
|
+
"kind": {
|
|
4256
|
+
"const": "string"
|
|
4257
|
+
},
|
|
4258
|
+
"value": {
|
|
4259
|
+
"type": "string",
|
|
4260
|
+
"maxLength": 4096,
|
|
4261
|
+
"pattern": "^[^\0-\x7F]*$"
|
|
4262
|
+
}
|
|
4263
|
+
},
|
|
4264
|
+
"required": [
|
|
4265
|
+
"kind",
|
|
4266
|
+
"value"
|
|
4267
|
+
],
|
|
4268
|
+
"additionalProperties": false
|
|
4269
|
+
},
|
|
4270
|
+
{
|
|
4271
|
+
"type": "object",
|
|
4272
|
+
"properties": {
|
|
4273
|
+
"kind": {
|
|
4274
|
+
"const": "number"
|
|
4275
|
+
},
|
|
4276
|
+
"value": {
|
|
4277
|
+
"type": "number"
|
|
4278
|
+
}
|
|
4279
|
+
},
|
|
4280
|
+
"required": [
|
|
4281
|
+
"kind",
|
|
4282
|
+
"value"
|
|
4283
|
+
],
|
|
4284
|
+
"additionalProperties": false
|
|
4285
|
+
},
|
|
4286
|
+
{
|
|
4287
|
+
"type": "object",
|
|
4288
|
+
"properties": {
|
|
4289
|
+
"kind": {
|
|
4290
|
+
"const": "boolean"
|
|
4291
|
+
},
|
|
4292
|
+
"value": {
|
|
4293
|
+
"type": "boolean"
|
|
4294
|
+
}
|
|
4295
|
+
},
|
|
4296
|
+
"required": [
|
|
4297
|
+
"kind",
|
|
4298
|
+
"value"
|
|
4299
|
+
],
|
|
4300
|
+
"additionalProperties": false
|
|
4301
|
+
},
|
|
4302
|
+
{
|
|
4303
|
+
"type": "object",
|
|
4304
|
+
"properties": {
|
|
4305
|
+
"kind": {
|
|
4306
|
+
"const": "list"
|
|
4307
|
+
},
|
|
4308
|
+
"values": {
|
|
4309
|
+
"type": "array",
|
|
4310
|
+
"maxItems": 256,
|
|
4311
|
+
"items": {
|
|
4312
|
+
"type": "object",
|
|
4313
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
4314
|
+
"properties": {
|
|
4315
|
+
"kind": {
|
|
4316
|
+
"type": "string",
|
|
4317
|
+
"enum": [
|
|
4318
|
+
"identifier",
|
|
4319
|
+
"string",
|
|
4320
|
+
"number",
|
|
4321
|
+
"boolean",
|
|
4322
|
+
"list",
|
|
4323
|
+
"block"
|
|
4324
|
+
]
|
|
4325
|
+
}
|
|
4326
|
+
},
|
|
4327
|
+
"required": [
|
|
4328
|
+
"kind"
|
|
4329
|
+
],
|
|
4330
|
+
"additionalProperties": true
|
|
4331
|
+
}
|
|
4332
|
+
}
|
|
4333
|
+
},
|
|
4334
|
+
"required": [
|
|
4335
|
+
"kind",
|
|
4336
|
+
"values"
|
|
4337
|
+
],
|
|
4338
|
+
"additionalProperties": false
|
|
4339
|
+
},
|
|
4340
|
+
{
|
|
4341
|
+
"type": "object",
|
|
4342
|
+
"properties": {
|
|
4343
|
+
"kind": {
|
|
4344
|
+
"const": "block"
|
|
4345
|
+
},
|
|
4346
|
+
"entries": {
|
|
4347
|
+
"type": "array",
|
|
4348
|
+
"maxItems": 256,
|
|
4349
|
+
"items": {
|
|
4350
|
+
"type": "object",
|
|
4351
|
+
"properties": {
|
|
4352
|
+
"key": {
|
|
4353
|
+
"type": "string",
|
|
4354
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.:@-]*$"
|
|
4355
|
+
},
|
|
4356
|
+
"value": {
|
|
4357
|
+
"type": "object",
|
|
4358
|
+
"description": "Recursive PDX value. The host validates the exact discriminated shape, a maximum depth of 8, and a maximum of 256 nodes.",
|
|
4359
|
+
"properties": {
|
|
4360
|
+
"kind": {
|
|
4361
|
+
"type": "string",
|
|
4362
|
+
"enum": [
|
|
4363
|
+
"identifier",
|
|
4364
|
+
"string",
|
|
4365
|
+
"number",
|
|
4366
|
+
"boolean",
|
|
4367
|
+
"list",
|
|
4368
|
+
"block"
|
|
4369
|
+
]
|
|
4370
|
+
}
|
|
4371
|
+
},
|
|
4372
|
+
"required": [
|
|
4373
|
+
"kind"
|
|
4374
|
+
],
|
|
4375
|
+
"additionalProperties": true
|
|
4376
|
+
}
|
|
4377
|
+
},
|
|
4378
|
+
"required": [
|
|
4379
|
+
"key",
|
|
4380
|
+
"value"
|
|
4381
|
+
],
|
|
4382
|
+
"additionalProperties": false
|
|
4383
|
+
}
|
|
4384
|
+
}
|
|
4385
|
+
},
|
|
4386
|
+
"required": [
|
|
4387
|
+
"kind",
|
|
4388
|
+
"entries"
|
|
4389
|
+
],
|
|
4390
|
+
"additionalProperties": false
|
|
4391
|
+
}
|
|
4392
|
+
]
|
|
4393
|
+
},
|
|
4394
|
+
"containerPath": {
|
|
4395
|
+
"type": "array",
|
|
4396
|
+
"maxItems": 8,
|
|
4397
|
+
"items": {
|
|
4398
|
+
"type": "string"
|
|
4399
|
+
}
|
|
4400
|
+
}
|
|
4401
|
+
},
|
|
4402
|
+
"required": [
|
|
4403
|
+
"operation",
|
|
4404
|
+
"target",
|
|
4405
|
+
"transition",
|
|
4406
|
+
"variable",
|
|
4407
|
+
"value"
|
|
4408
|
+
],
|
|
4409
|
+
"additionalProperties": false
|
|
4410
|
+
}
|
|
4411
|
+
],
|
|
4412
|
+
"description": "One discriminated typed mutation. Raw code/oldString/newString fields are rejected."
|
|
4413
|
+
}
|
|
4414
|
+
},
|
|
4415
|
+
"required": [
|
|
4416
|
+
"filePath",
|
|
4417
|
+
"operation"
|
|
4418
|
+
],
|
|
4419
|
+
"additionalProperties": false
|
|
4420
|
+
}
|
|
4421
|
+
},
|
|
4422
|
+
"registry": {
|
|
4423
|
+
"name": "typed_pdx_write",
|
|
4424
|
+
"isWrite": true,
|
|
4425
|
+
"isReadOnly": false,
|
|
4426
|
+
"effect": "workspace_write",
|
|
4427
|
+
"riskLevel": 2,
|
|
4428
|
+
"concurrencyClass": "per-file-write"
|
|
4429
|
+
}
|
|
4430
|
+
},
|
|
4431
|
+
{
|
|
4432
|
+
"tool": {
|
|
4433
|
+
"name": "candidate_transaction",
|
|
4434
|
+
"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.",
|
|
4435
|
+
"inputSchema": {
|
|
4436
|
+
"type": "object",
|
|
4437
|
+
"properties": {
|
|
4438
|
+
"action": {
|
|
4439
|
+
"type": "string",
|
|
4440
|
+
"enum": [
|
|
4441
|
+
"begin",
|
|
4442
|
+
"validate",
|
|
4443
|
+
"commit",
|
|
4444
|
+
"discard",
|
|
4445
|
+
"status"
|
|
4446
|
+
]
|
|
4447
|
+
},
|
|
4448
|
+
"transactionId": {
|
|
4449
|
+
"type": "string",
|
|
4450
|
+
"description": "Required after begin."
|
|
4451
|
+
},
|
|
4452
|
+
"validationPassed": {
|
|
4453
|
+
"type": "boolean",
|
|
4454
|
+
"description": "Optional explicit veto for the exact staged fingerprint. The host always runs detached overlay validation and never trusts this flag as proof."
|
|
4455
|
+
}
|
|
4456
|
+
},
|
|
4457
|
+
"required": [
|
|
4458
|
+
"action"
|
|
4459
|
+
]
|
|
4460
|
+
}
|
|
4461
|
+
},
|
|
4462
|
+
"registry": {
|
|
4463
|
+
"name": "candidate_transaction",
|
|
4464
|
+
"isWrite": true,
|
|
4465
|
+
"isReadOnly": false,
|
|
4466
|
+
"effect": "workspace_write",
|
|
4467
|
+
"riskLevel": 2,
|
|
4468
|
+
"concurrencyClass": "per-file-write"
|
|
4469
|
+
}
|
|
4470
|
+
},
|
|
4471
|
+
{
|
|
4472
|
+
"tool": {
|
|
4473
|
+
"name": "convert_image_to_dds",
|
|
4474
|
+
"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.",
|
|
4475
|
+
"inputSchema": {
|
|
4476
|
+
"type": "object",
|
|
4477
|
+
"properties": {
|
|
4478
|
+
"sourcePath": {
|
|
4479
|
+
"type": "string",
|
|
4480
|
+
"description": "Absolute path to the source image file (PNG, JPG, or TGA)."
|
|
4481
|
+
},
|
|
4482
|
+
"outputDir": {
|
|
4483
|
+
"type": "string",
|
|
4484
|
+
"description": 'Directory to write the converted DDS file to. Can be absolute or relative to workspace root (e.g. "gfx/interface/icons/").'
|
|
4485
|
+
},
|
|
4486
|
+
"compression": {
|
|
4487
|
+
"type": "string",
|
|
4488
|
+
"enum": [
|
|
4489
|
+
"dxt5",
|
|
4490
|
+
"dxt1",
|
|
4491
|
+
"dxt3",
|
|
4492
|
+
"none"
|
|
4493
|
+
],
|
|
4494
|
+
"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.'
|
|
4495
|
+
},
|
|
4496
|
+
"generateMipmaps": {
|
|
4497
|
+
"type": "boolean",
|
|
4498
|
+
"description": "Whether to generate mipmaps (default false)."
|
|
4499
|
+
}
|
|
4500
|
+
},
|
|
4501
|
+
"required": [
|
|
4502
|
+
"sourcePath"
|
|
4503
|
+
]
|
|
4504
|
+
}
|
|
4505
|
+
},
|
|
4506
|
+
"registry": {
|
|
4507
|
+
"name": "convert_image_to_dds",
|
|
4508
|
+
"isWrite": false,
|
|
4509
|
+
"isReadOnly": false,
|
|
4510
|
+
"effect": "media",
|
|
4511
|
+
"riskLevel": 2,
|
|
4512
|
+
"concurrencyClass": "interactive"
|
|
4513
|
+
}
|
|
4514
|
+
},
|
|
4515
|
+
{
|
|
4516
|
+
"tool": {
|
|
4517
|
+
"name": "convert_audio",
|
|
4518
|
+
"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.",
|
|
4519
|
+
"inputSchema": {
|
|
4520
|
+
"type": "object",
|
|
4521
|
+
"properties": {
|
|
4522
|
+
"sourcePath": {
|
|
4523
|
+
"type": "string",
|
|
4524
|
+
"description": "Absolute path to the source audio file."
|
|
4525
|
+
},
|
|
4526
|
+
"outputDir": {
|
|
4527
|
+
"type": "string",
|
|
4528
|
+
"description": 'Directory to write the converted file to. Can be absolute or relative to workspace root (e.g. "sound/vo/").'
|
|
4529
|
+
},
|
|
4530
|
+
"targetFormat": {
|
|
4531
|
+
"type": "string",
|
|
4532
|
+
"enum": [
|
|
4533
|
+
"ogg",
|
|
4534
|
+
"wav"
|
|
4535
|
+
],
|
|
4536
|
+
"description": 'Target audio format. "ogg": Vorbis encoding for BGM and voice lines. "wav": 16-bit PCM for UI sound effects.'
|
|
4537
|
+
},
|
|
4538
|
+
"sampleRate": {
|
|
4539
|
+
"type": "number",
|
|
4540
|
+
"description": "Output sample rate in Hz (e.g. 44100, 48000). Default: keep original."
|
|
4541
|
+
},
|
|
4542
|
+
"channels": {
|
|
4543
|
+
"type": "number",
|
|
4544
|
+
"description": "Number of audio channels. 1 = mono (recommended for voice/sfx), 2 = stereo (recommended for music). Default: keep original."
|
|
4545
|
+
}
|
|
4546
|
+
},
|
|
4547
|
+
"required": [
|
|
4548
|
+
"sourcePath",
|
|
4549
|
+
"targetFormat"
|
|
4550
|
+
]
|
|
4551
|
+
}
|
|
4552
|
+
},
|
|
4553
|
+
"registry": {
|
|
4554
|
+
"name": "convert_audio",
|
|
4555
|
+
"isWrite": false,
|
|
4556
|
+
"isReadOnly": false,
|
|
4557
|
+
"effect": "media",
|
|
4558
|
+
"riskLevel": 2,
|
|
4559
|
+
"concurrencyClass": "interactive"
|
|
4560
|
+
}
|
|
4561
|
+
},
|
|
4562
|
+
{
|
|
4563
|
+
"tool": {
|
|
4564
|
+
"name": "deploy_mod_asset",
|
|
4565
|
+
"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.",
|
|
4566
|
+
"inputSchema": {
|
|
4567
|
+
"type": "object",
|
|
4568
|
+
"properties": {
|
|
4569
|
+
"sourcePath": {
|
|
4570
|
+
"type": "string",
|
|
4571
|
+
"description": "Absolute path to the source file to deploy."
|
|
4572
|
+
},
|
|
4573
|
+
"targetRelativePath": {
|
|
4574
|
+
"type": "string",
|
|
4575
|
+
"description": 'Target path relative to workspace root (e.g. "gfx/interface/icons/tech/my_tech.dds" or "sound/vo/my_voice.ogg").'
|
|
4576
|
+
},
|
|
4577
|
+
"overwrite": {
|
|
4578
|
+
"type": "boolean",
|
|
4579
|
+
"description": "If true, overwrite existing file at target. Default: false (fails if file exists)."
|
|
4580
|
+
}
|
|
4581
|
+
},
|
|
4582
|
+
"required": [
|
|
4583
|
+
"sourcePath",
|
|
4584
|
+
"targetRelativePath"
|
|
4585
|
+
]
|
|
4586
|
+
}
|
|
4587
|
+
},
|
|
4588
|
+
"registry": {
|
|
4589
|
+
"name": "deploy_mod_asset",
|
|
4590
|
+
"isWrite": true,
|
|
4591
|
+
"isReadOnly": false,
|
|
4592
|
+
"effect": "media",
|
|
4593
|
+
"riskLevel": 2,
|
|
4594
|
+
"concurrencyClass": "interactive"
|
|
4595
|
+
}
|
|
1590
4596
|
}
|
|
1591
4597
|
];
|
|
1592
4598
|
}
|
|
@@ -3981,10 +6987,10 @@ var require_names = __commonJS({
|
|
|
3981
6987
|
"../cwtools-shared/dist/tools/names.js"(exports2) {
|
|
3982
6988
|
"use strict";
|
|
3983
6989
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3984
|
-
exports2.
|
|
6990
|
+
exports2.MCP_ALL_TOOL_NAMES = exports2.MCP_TOOL_NAMES = exports2.MCP_WRITE_TOOL_NAMES = exports2.MCP_READONLY_TOOL_NAMES = void 0;
|
|
3985
6991
|
exports2.isMcpToolName = isMcpToolName;
|
|
3986
6992
|
exports2.isMcpWriteToolName = isMcpWriteToolName;
|
|
3987
|
-
exports2.
|
|
6993
|
+
exports2.MCP_READONLY_TOOL_NAMES = [
|
|
3988
6994
|
"query_types",
|
|
3989
6995
|
"query_rules",
|
|
3990
6996
|
"query_cwt_schema",
|
|
@@ -4001,6 +7007,7 @@ var require_names = __commonJS({
|
|
|
4001
7007
|
"query_inline_instantiation",
|
|
4002
7008
|
"analyze_pdx_flow",
|
|
4003
7009
|
"compare_definition_with_vanilla",
|
|
7010
|
+
"query_targeting_weight",
|
|
4004
7011
|
"query_localisation_index",
|
|
4005
7012
|
"get_pdx_block",
|
|
4006
7013
|
"get_completion_at",
|
|
@@ -4020,12 +7027,29 @@ var require_names = __commonJS({
|
|
|
4020
7027
|
"query_shader_callers",
|
|
4021
7028
|
"explain_shader_reachability",
|
|
4022
7029
|
"validate_shader",
|
|
4023
|
-
"compare_shader_with_vanilla"
|
|
7030
|
+
"compare_shader_with_vanilla",
|
|
7031
|
+
"get_ide_context",
|
|
7032
|
+
"open_in_visual_editor"
|
|
7033
|
+
];
|
|
7034
|
+
exports2.MCP_WRITE_TOOL_NAMES = [
|
|
7035
|
+
"write_localisation",
|
|
7036
|
+
"typed_pdx_write",
|
|
7037
|
+
"candidate_transaction",
|
|
7038
|
+
"convert_image_to_dds",
|
|
7039
|
+
"convert_audio",
|
|
7040
|
+
"deploy_mod_asset"
|
|
7041
|
+
];
|
|
7042
|
+
exports2.MCP_TOOL_NAMES = exports2.MCP_READONLY_TOOL_NAMES;
|
|
7043
|
+
exports2.MCP_ALL_TOOL_NAMES = [
|
|
7044
|
+
...exports2.MCP_READONLY_TOOL_NAMES,
|
|
7045
|
+
...exports2.MCP_WRITE_TOOL_NAMES
|
|
4024
7046
|
];
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
7047
|
+
function isMcpToolName(value, options) {
|
|
7048
|
+
if (exports2.MCP_READONLY_TOOL_NAMES.includes(value))
|
|
7049
|
+
return true;
|
|
7050
|
+
if (options?.includeWrites && exports2.MCP_WRITE_TOOL_NAMES.includes(value))
|
|
7051
|
+
return true;
|
|
7052
|
+
return false;
|
|
4029
7053
|
}
|
|
4030
7054
|
function isMcpWriteToolName(value) {
|
|
4031
7055
|
return exports2.MCP_WRITE_TOOL_NAMES.includes(value);
|
|
@@ -4172,11 +7196,13 @@ var require_mcpSchema = __commonJS({
|
|
|
4172
7196
|
exports2.getMcpToolSchema = getMcpToolSchema;
|
|
4173
7197
|
exports2.getMcpToolRegistryMetadata = getMcpToolRegistryMetadata;
|
|
4174
7198
|
var mcpTools_1 = require_mcpTools();
|
|
7199
|
+
var names_1 = require_names();
|
|
4175
7200
|
function getGeneratedMcpTools() {
|
|
4176
7201
|
return mcpTools_1.GENERATED_MCP_TOOLS;
|
|
4177
7202
|
}
|
|
4178
|
-
function listMcpToolSchemas() {
|
|
4179
|
-
|
|
7203
|
+
function listMcpToolSchemas(options) {
|
|
7204
|
+
const includeWrites = options?.includeWrites === true;
|
|
7205
|
+
return mcpTools_1.GENERATED_MCP_TOOLS.filter((entry) => includeWrites || !(0, names_1.isMcpWriteToolName)(entry.tool.name)).map((entry) => ({ ...entry.tool }));
|
|
4180
7206
|
}
|
|
4181
7207
|
function getMcpToolSchema(name) {
|
|
4182
7208
|
return mcpTools_1.GENERATED_MCP_TOOLS.find((entry) => entry.tool.name === name)?.tool;
|
|
@@ -5276,6 +8302,15 @@ var require_toolHandlers = __commonJS({
|
|
|
5276
8302
|
return executeLspTool(host, "cwtools.ai.shader.validate", [{ uri: toFileUri(String(args.file ?? ""), host.workspaceRoot) }], "Start the CWTools LSP process and wait for the shader model to load before validating shader files.");
|
|
5277
8303
|
case "compare_shader_with_vanilla":
|
|
5278
8304
|
return executeLspTool(host, "cwtools.ai.shader.compareVanilla", [typeof args.effectName === "string" && args.effectName ? { effectName: args.effectName } : { uri: toFileUri(String(args.file ?? ""), host.workspaceRoot) }], "Start the CWTools LSP process and wait for the shader model to load before comparing with vanilla.");
|
|
8305
|
+
case "get_ide_context":
|
|
8306
|
+
case "open_in_visual_editor":
|
|
8307
|
+
return (0, schema_1.toolUnavailable)(name, `${name} requires the active VS Code extension bridge (default mode without --standalone).`, ["Open the project in VS Code / Cursor / Antigravity with the CWTools extension active and connect via bridge mode."]);
|
|
8308
|
+
case "typed_pdx_write":
|
|
8309
|
+
case "candidate_transaction":
|
|
8310
|
+
case "convert_image_to_dds":
|
|
8311
|
+
case "convert_audio":
|
|
8312
|
+
case "deploy_mod_asset":
|
|
8313
|
+
return (0, schema_1.toolUnavailable)(name, `${name} requires the active VS Code extension bridge started with --allow-domain-writes (or --enable-writes).`, ["Connect to the active VS Code extension bridge with --allow-domain-writes enabled."]);
|
|
5279
8314
|
default:
|
|
5280
8315
|
return {
|
|
5281
8316
|
ok: false,
|
|
@@ -46735,16 +49770,19 @@ var require_resources = __commonJS({
|
|
|
46735
49770
|
exports2.listResources = listResources;
|
|
46736
49771
|
exports2.readResource = readResource;
|
|
46737
49772
|
var cwtools_shared_1 = require_dist();
|
|
49773
|
+
var fs = __importStar(require("fs"));
|
|
49774
|
+
var os = __importStar(require("os"));
|
|
46738
49775
|
var path = __importStar(require("path"));
|
|
46739
49776
|
exports2.RESOURCE_URIS = [
|
|
46740
49777
|
"cwtools://knowledge/game",
|
|
46741
49778
|
"cwtools://knowledge/diagnostic-routing",
|
|
46742
49779
|
"cwtools://knowledge/workflow-hints",
|
|
46743
49780
|
"cwtools://project/profile",
|
|
46744
|
-
"cwtools://project/knowledge-manifest"
|
|
49781
|
+
"cwtools://project/knowledge-manifest",
|
|
49782
|
+
"cwtools://skills/catalog"
|
|
46745
49783
|
];
|
|
46746
|
-
function listResources() {
|
|
46747
|
-
|
|
49784
|
+
function listResources(host) {
|
|
49785
|
+
const base = [
|
|
46748
49786
|
{
|
|
46749
49787
|
uri: "cwtools://knowledge/game",
|
|
46750
49788
|
name: "CWTools game knowledge",
|
|
@@ -46774,10 +49812,56 @@ var require_resources = __commonJS({
|
|
|
46774
49812
|
name: "CWTools project knowledge manifest",
|
|
46775
49813
|
description: "Freshness, domains, counts, and fingerprints for the /init-generated semantic knowledge pack.",
|
|
46776
49814
|
mimeType: "application/json"
|
|
49815
|
+
},
|
|
49816
|
+
{
|
|
49817
|
+
uri: "cwtools://skills/catalog",
|
|
49818
|
+
name: "CWTools Paradox skills catalog",
|
|
49819
|
+
description: "Catalog of workspace and user Paradox modding skills exposed as cwtools://skills/<name> resources.",
|
|
49820
|
+
mimeType: "application/json"
|
|
46777
49821
|
}
|
|
46778
49822
|
];
|
|
49823
|
+
if (host?.workspaceRoot) {
|
|
49824
|
+
for (const skill of discoverSkills(host.workspaceRoot)) {
|
|
49825
|
+
base.push({
|
|
49826
|
+
uri: `cwtools://skills/${encodeURIComponent(skill.name)}`,
|
|
49827
|
+
name: `Paradox Skill: ${skill.name}`,
|
|
49828
|
+
description: skill.description || `Paradox modding skill ${skill.name}`,
|
|
49829
|
+
mimeType: "text/markdown"
|
|
49830
|
+
});
|
|
49831
|
+
}
|
|
49832
|
+
}
|
|
49833
|
+
return base;
|
|
46779
49834
|
}
|
|
46780
49835
|
async function readResource(host, uri) {
|
|
49836
|
+
if (uri.startsWith("cwtools://skills/") && uri !== "cwtools://skills/catalog") {
|
|
49837
|
+
const skillName = decodeURIComponent(uri.slice("cwtools://skills/".length));
|
|
49838
|
+
const found = discoverSkills(host.workspaceRoot).find((entry) => entry.name === skillName);
|
|
49839
|
+
if (found && fs.existsSync(found.filePath)) {
|
|
49840
|
+
return {
|
|
49841
|
+
contents: [
|
|
49842
|
+
{
|
|
49843
|
+
uri,
|
|
49844
|
+
mimeType: "text/markdown",
|
|
49845
|
+
text: `${fs.readFileSync(found.filePath, "utf8").trim()}
|
|
49846
|
+
`
|
|
49847
|
+
}
|
|
49848
|
+
]
|
|
49849
|
+
};
|
|
49850
|
+
}
|
|
49851
|
+
return {
|
|
49852
|
+
contents: [
|
|
49853
|
+
{
|
|
49854
|
+
uri,
|
|
49855
|
+
mimeType: "application/json",
|
|
49856
|
+
text: `${JSON.stringify({
|
|
49857
|
+
status: "error",
|
|
49858
|
+
error: { code: "skill_not_found", message: `Unknown CWTools skill: ${skillName}` }
|
|
49859
|
+
}, null, 2)}
|
|
49860
|
+
`
|
|
49861
|
+
}
|
|
49862
|
+
]
|
|
49863
|
+
};
|
|
49864
|
+
}
|
|
46781
49865
|
const data = await readResourceData(host, uri);
|
|
46782
49866
|
return {
|
|
46783
49867
|
contents: [
|
|
@@ -46790,6 +49874,52 @@ var require_resources = __commonJS({
|
|
|
46790
49874
|
]
|
|
46791
49875
|
};
|
|
46792
49876
|
}
|
|
49877
|
+
function discoverSkills(workspaceRoot) {
|
|
49878
|
+
const roots = [];
|
|
49879
|
+
if (workspaceRoot) {
|
|
49880
|
+
roots.push({ dir: path.join(workspaceRoot, ".agents", "skills"), source: "project" });
|
|
49881
|
+
roots.push({ dir: path.join(workspaceRoot, ".cwtools", "skills"), source: "project" });
|
|
49882
|
+
}
|
|
49883
|
+
const home = os.homedir();
|
|
49884
|
+
if (home) {
|
|
49885
|
+
roots.push({ dir: path.join(home, ".cwtools", "skills"), source: "user" });
|
|
49886
|
+
}
|
|
49887
|
+
const byName = /* @__PURE__ */ new Map();
|
|
49888
|
+
for (const root of roots) {
|
|
49889
|
+
if (!fs.existsSync(root.dir))
|
|
49890
|
+
continue;
|
|
49891
|
+
let entries = [];
|
|
49892
|
+
try {
|
|
49893
|
+
entries = fs.readdirSync(root.dir, { withFileTypes: true });
|
|
49894
|
+
} catch {
|
|
49895
|
+
continue;
|
|
49896
|
+
}
|
|
49897
|
+
for (const entry of entries) {
|
|
49898
|
+
if (!entry.isDirectory())
|
|
49899
|
+
continue;
|
|
49900
|
+
const skillFile = path.join(root.dir, entry.name, "SKILL.md");
|
|
49901
|
+
if (!fs.existsSync(skillFile))
|
|
49902
|
+
continue;
|
|
49903
|
+
let raw = "";
|
|
49904
|
+
try {
|
|
49905
|
+
raw = fs.readFileSync(skillFile, "utf8");
|
|
49906
|
+
} catch {
|
|
49907
|
+
continue;
|
|
49908
|
+
}
|
|
49909
|
+
const descMatch = raw.match(/^description\s*:\s*(.+)$/m);
|
|
49910
|
+
const description = descMatch ? descMatch[1].trim().replace(/^['"]|['"]$/g, "") : `Paradox skill ${entry.name}`;
|
|
49911
|
+
if (!byName.has(entry.name)) {
|
|
49912
|
+
byName.set(entry.name, {
|
|
49913
|
+
name: entry.name,
|
|
49914
|
+
description,
|
|
49915
|
+
source: root.source,
|
|
49916
|
+
filePath: skillFile
|
|
49917
|
+
});
|
|
49918
|
+
}
|
|
49919
|
+
}
|
|
49920
|
+
}
|
|
49921
|
+
return [...byName.values()].sort((a, b) => a.name.localeCompare(b.name));
|
|
49922
|
+
}
|
|
46793
49923
|
async function readResourceData(host, uri) {
|
|
46794
49924
|
switch (uri) {
|
|
46795
49925
|
case "cwtools://knowledge/game": {
|
|
@@ -46826,6 +49956,19 @@ var require_resources = __commonJS({
|
|
|
46826
49956
|
_hint: "Run /init in the VS Code extension and wait for the deep semantic phase."
|
|
46827
49957
|
};
|
|
46828
49958
|
}
|
|
49959
|
+
case "cwtools://skills/catalog": {
|
|
49960
|
+
const skills = discoverSkills(host.workspaceRoot);
|
|
49961
|
+
return {
|
|
49962
|
+
status: "ready",
|
|
49963
|
+
count: skills.length,
|
|
49964
|
+
skills: skills.map((skill) => ({
|
|
49965
|
+
name: skill.name,
|
|
49966
|
+
description: skill.description,
|
|
49967
|
+
source: skill.source,
|
|
49968
|
+
uri: `cwtools://skills/${encodeURIComponent(skill.name)}`
|
|
49969
|
+
}))
|
|
49970
|
+
};
|
|
49971
|
+
}
|
|
46829
49972
|
default:
|
|
46830
49973
|
return {
|
|
46831
49974
|
status: "error",
|
|
@@ -46846,8 +49989,8 @@ var require_toolRegistrar = __commonJS({
|
|
|
46846
49989
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
46847
49990
|
exports2.listRegisteredTools = listRegisteredTools;
|
|
46848
49991
|
var cwtools_shared_1 = require_dist();
|
|
46849
|
-
function listRegisteredTools() {
|
|
46850
|
-
return (0, cwtools_shared_1.listMcpToolSchemas)();
|
|
49992
|
+
function listRegisteredTools(options) {
|
|
49993
|
+
return (0, cwtools_shared_1.listMcpToolSchemas)(options);
|
|
46851
49994
|
}
|
|
46852
49995
|
}
|
|
46853
49996
|
});
|
|
@@ -46876,14 +50019,15 @@ var require_toolHandlers2 = __commonJS({
|
|
|
46876
50019
|
}
|
|
46877
50020
|
};
|
|
46878
50021
|
return async (name, args = {}) => {
|
|
46879
|
-
|
|
50022
|
+
const writesEnabled = host.writesEnabled === true && host.readonlyMode === false;
|
|
50023
|
+
if (!(0, cwtools_shared_1.isMcpToolName)(name, { includeWrites: writesEnabled })) {
|
|
46880
50024
|
return {
|
|
46881
50025
|
ok: false,
|
|
46882
50026
|
status: "denied",
|
|
46883
50027
|
source: "cwtools-mcp",
|
|
46884
50028
|
error: {
|
|
46885
50029
|
code: "tool_not_available",
|
|
46886
|
-
message: `Tool '${name}' is not available: this MCP server is read-only
|
|
50030
|
+
message: `Tool '${name}' is not available: this MCP server is read-only unless started with --allow-domain-writes (or --enable-writes).`
|
|
46887
50031
|
}
|
|
46888
50032
|
};
|
|
46889
50033
|
}
|
|
@@ -46982,9 +50126,11 @@ var require_bridgeProxy = __commonJS({
|
|
|
46982
50126
|
});
|
|
46983
50127
|
server.setRequestHandler(types_js_1.ListToolsRequestSchema, async () => {
|
|
46984
50128
|
try {
|
|
46985
|
-
return await bridgeRpc(config, server, "tools/list", {
|
|
50129
|
+
return await bridgeRpc(config, server, "tools/list", {
|
|
50130
|
+
allowDomainWrites: config.enableWrites
|
|
50131
|
+
});
|
|
46986
50132
|
} catch {
|
|
46987
|
-
return { tools: (0, toolRegistrar_1.listRegisteredTools)() };
|
|
50133
|
+
return { tools: (0, toolRegistrar_1.listRegisteredTools)({ includeWrites: config.enableWrites }) };
|
|
46988
50134
|
}
|
|
46989
50135
|
});
|
|
46990
50136
|
server.setRequestHandler(types_js_1.ListResourcesRequestSchema, async () => {
|
|
@@ -47017,7 +50163,8 @@ var require_bridgeProxy = __commonJS({
|
|
|
47017
50163
|
const args = request.params.arguments && typeof request.params.arguments === "object" ? request.params.arguments : {};
|
|
47018
50164
|
const result = await bridgeRpc(config, server, "tools/call", {
|
|
47019
50165
|
name: request.params.name,
|
|
47020
|
-
arguments: args
|
|
50166
|
+
arguments: args,
|
|
50167
|
+
allowDomainWrites: config.enableWrites
|
|
47021
50168
|
});
|
|
47022
50169
|
return normalizeCallToolResult(result);
|
|
47023
50170
|
} catch (error) {
|
|
@@ -49742,10 +52889,10 @@ var require_server3 = __commonJS({
|
|
|
49742
52889
|
});
|
|
49743
52890
|
const callTool = (0, toolHandlers_1.createToolCallHandler)(host, options.dispatcher);
|
|
49744
52891
|
server.setRequestHandler(types_js_1.ListToolsRequestSchema, async () => ({
|
|
49745
|
-
tools: (0, toolRegistrar_1.listRegisteredTools)()
|
|
52892
|
+
tools: (0, toolRegistrar_1.listRegisteredTools)({ includeWrites: host.writesEnabled === true && host.readonlyMode === false })
|
|
49746
52893
|
}));
|
|
49747
52894
|
server.setRequestHandler(types_js_1.ListResourcesRequestSchema, async () => ({
|
|
49748
|
-
resources: (0, resources_1.listResources)()
|
|
52895
|
+
resources: (0, resources_1.listResources)(host)
|
|
49749
52896
|
}));
|
|
49750
52897
|
server.setRequestHandler(types_js_1.ReadResourceRequestSchema, async (request) => (0, resources_1.readResource)(host, request.params.uri));
|
|
49751
52898
|
server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
|