hoi4-agent-tools 2.8.11 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +35 -10
- package/dist/bin/stdio.js +0 -4
- package/dist/hoi4_agent_tools/core/configuration.js +16 -3
- package/dist/hoi4_agent_tools/core/domain-scan-patterns.js +10 -13
- package/dist/hoi4_agent_tools/core/engine.js +3 -0
- package/dist/hoi4_agent_tools/core/scanner.js +63 -7
- package/dist/hoi4_agent_tools/event/service.js +30 -23
- package/dist/hoi4_agent_tools/gui/assets.js +218 -0
- package/dist/hoi4_agent_tools/gui/layout.js +70 -9
- package/dist/hoi4_agent_tools/gui/renderer.js +80 -11
- package/dist/hoi4_agent_tools/gui/scenario-generator.js +36 -0
- package/dist/hoi4_agent_tools/gui/studio.js +90 -25
- package/dist/hoi4_agent_tools/mcp/tools/gui.js +1 -1
- package/dist/hoi4_agent_tools/probability/service.js +33 -8
- package/dist/hoi4_agent_tools/schemas/probability.js +2 -0
- package/dist/hoi4_agent_tools/version.js +1 -1
- package/docs/development.md +2 -0
- package/docs/gui.md +14 -3
- package/docs/images/readme/chaos-meter-ingame.png +0 -0
- package/docs/images/readme/chaos-meter-mcp.png +0 -0
- package/docs/images/readme/communist-insurgency-ingame.png +0 -0
- package/docs/images/readme/communist-insurgency-mcp.png +0 -0
- package/docs/images/readme/event-chain-mcp.png +0 -0
- package/docs/images/readme/focus-tree-mcp.png +0 -0
- package/docs/images/readme/map-mcp.png +0 -0
- package/docs/images/readme/probability-mcp.png +0 -0
- package/docs/images/readme/settings-advanced-mcp.png +0 -0
- package/docs/images/readme/settings-events-mcp.png +0 -0
- package/docs/images/readme/technology-tree-mcp.png +0 -0
- package/package.json +3 -1
- package/schemas/configuration.schema.json +3 -3
- package/schemas/continuous-focus-palette.schema.json +1 -1
- package/schemas/custom-weighted-pool.schema.json +1 -1
- package/schemas/event-feature-manifest.schema.json +1 -1
- package/schemas/focus-plan.schema.json +1 -1
- package/schemas/focus-planning-sidecar.schema.json +1 -1
- package/schemas/gui-animation-source.schema.json +1 -1
- package/schemas/gui-helper.schema.json +1 -1
- package/schemas/gui-scenario.schema.json +1 -1
- package/schemas/map-operation.schema.json +1 -1
- package/schemas/operation-result.schema.json +1 -1
- package/schemas/probability-analysis-result.schema.json +58 -39
- package/schemas/probability-compare-input.schema.json +1 -1
- package/schemas/probability-evaluate-input.schema.json +1 -1
- package/schemas/probability-inspect-input.schema.json +1 -1
- package/schemas/probability-render-input.schema.json +1 -1
- package/schemas/probability-scenario-set.schema.json +1 -1
- package/schemas/probability-sequence-input.schema.json +1 -1
- package/schemas/probability-simulate-input.schema.json +1 -1
- package/schemas/probability-sweep-input.schema.json +1 -1
- package/server.json +2 -2
- package/dist/hoi4_agent_tools/mcp/tools/chaosx.js +0 -483
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.0/schemas/probability-analysis-result.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -41,6 +41,22 @@
|
|
|
41
41
|
"workspaceIdentity": {
|
|
42
42
|
"type": "string"
|
|
43
43
|
},
|
|
44
|
+
"sourceScope": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": [
|
|
47
|
+
"file",
|
|
48
|
+
"shared",
|
|
49
|
+
"domain",
|
|
50
|
+
"none"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"sourcePaths": {
|
|
54
|
+
"maxItems": 100000,
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"$ref": "#/$defs/__schema0"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
44
60
|
"sourceRevision": {
|
|
45
61
|
"type": "string"
|
|
46
62
|
},
|
|
@@ -89,7 +105,7 @@
|
|
|
89
105
|
"additionalProperties": false
|
|
90
106
|
},
|
|
91
107
|
"adapterId": {
|
|
92
|
-
"$ref": "#/$defs/
|
|
108
|
+
"$ref": "#/$defs/__schema1"
|
|
93
109
|
},
|
|
94
110
|
"adapterVersion": {
|
|
95
111
|
"type": "string"
|
|
@@ -99,7 +115,7 @@
|
|
|
99
115
|
"maxItems": 4,
|
|
100
116
|
"type": "array",
|
|
101
117
|
"items": {
|
|
102
|
-
"$ref": "#/$defs/
|
|
118
|
+
"$ref": "#/$defs/__schema2"
|
|
103
119
|
}
|
|
104
120
|
},
|
|
105
121
|
"seed": {
|
|
@@ -139,7 +155,7 @@
|
|
|
139
155
|
"type": "object",
|
|
140
156
|
"properties": {
|
|
141
157
|
"id": {
|
|
142
|
-
"$ref": "#/$defs/
|
|
158
|
+
"$ref": "#/$defs/__schema1"
|
|
143
159
|
},
|
|
144
160
|
"version": {
|
|
145
161
|
"type": "string"
|
|
@@ -364,7 +380,7 @@
|
|
|
364
380
|
"rawValue": {
|
|
365
381
|
"anyOf": [
|
|
366
382
|
{
|
|
367
|
-
"$ref": "#/$defs/
|
|
383
|
+
"$ref": "#/$defs/__schema3"
|
|
368
384
|
},
|
|
369
385
|
{
|
|
370
386
|
"type": "null"
|
|
@@ -400,7 +416,7 @@
|
|
|
400
416
|
]
|
|
401
417
|
},
|
|
402
418
|
"exactConditionalProbability": {
|
|
403
|
-
"$ref": "#/$defs/
|
|
419
|
+
"$ref": "#/$defs/__schema3"
|
|
404
420
|
},
|
|
405
421
|
"pathProbability": {
|
|
406
422
|
"anyOf": [
|
|
@@ -415,7 +431,7 @@
|
|
|
415
431
|
]
|
|
416
432
|
},
|
|
417
433
|
"exactPathProbability": {
|
|
418
|
-
"$ref": "#/$defs/
|
|
434
|
+
"$ref": "#/$defs/__schema3"
|
|
419
435
|
},
|
|
420
436
|
"pathProbabilityInterval": {
|
|
421
437
|
"type": "object",
|
|
@@ -652,19 +668,19 @@
|
|
|
652
668
|
"trace": {
|
|
653
669
|
"type": "array",
|
|
654
670
|
"items": {
|
|
655
|
-
"$ref": "#/$defs/
|
|
671
|
+
"$ref": "#/$defs/__schema4"
|
|
656
672
|
}
|
|
657
673
|
},
|
|
658
674
|
"provenance": {
|
|
659
675
|
"type": "array",
|
|
660
676
|
"items": {
|
|
661
|
-
"$ref": "#/$defs/
|
|
677
|
+
"$ref": "#/$defs/__schema5"
|
|
662
678
|
}
|
|
663
679
|
},
|
|
664
680
|
"unresolved": {
|
|
665
681
|
"type": "array",
|
|
666
682
|
"items": {
|
|
667
|
-
"$ref": "#/$defs/
|
|
683
|
+
"$ref": "#/$defs/__schema8"
|
|
668
684
|
}
|
|
669
685
|
}
|
|
670
686
|
},
|
|
@@ -680,7 +696,7 @@
|
|
|
680
696
|
}
|
|
681
697
|
},
|
|
682
698
|
"poolTotal": {
|
|
683
|
-
"$ref": "#/$defs/
|
|
699
|
+
"$ref": "#/$defs/__schema3"
|
|
684
700
|
},
|
|
685
701
|
"horizonDays": {
|
|
686
702
|
"type": "number",
|
|
@@ -794,7 +810,7 @@
|
|
|
794
810
|
]
|
|
795
811
|
},
|
|
796
812
|
"weight": {
|
|
797
|
-
"$ref": "#/$defs/
|
|
813
|
+
"$ref": "#/$defs/__schema3"
|
|
798
814
|
},
|
|
799
815
|
"conditionalProbability": {
|
|
800
816
|
"type": "number",
|
|
@@ -802,18 +818,18 @@
|
|
|
802
818
|
"maximum": 1
|
|
803
819
|
},
|
|
804
820
|
"exactConditionalProbability": {
|
|
805
|
-
"$ref": "#/$defs/
|
|
821
|
+
"$ref": "#/$defs/__schema3"
|
|
806
822
|
},
|
|
807
823
|
"trace": {
|
|
808
824
|
"type": "array",
|
|
809
825
|
"items": {
|
|
810
|
-
"$ref": "#/$defs/
|
|
826
|
+
"$ref": "#/$defs/__schema4"
|
|
811
827
|
}
|
|
812
828
|
},
|
|
813
829
|
"unresolved": {
|
|
814
830
|
"type": "array",
|
|
815
831
|
"items": {
|
|
816
|
-
"$ref": "#/$defs/
|
|
832
|
+
"$ref": "#/$defs/__schema8"
|
|
817
833
|
}
|
|
818
834
|
}
|
|
819
835
|
},
|
|
@@ -839,12 +855,12 @@
|
|
|
839
855
|
}
|
|
840
856
|
},
|
|
841
857
|
"poolTotal": {
|
|
842
|
-
"$ref": "#/$defs/
|
|
858
|
+
"$ref": "#/$defs/__schema3"
|
|
843
859
|
},
|
|
844
860
|
"unresolved": {
|
|
845
861
|
"type": "array",
|
|
846
862
|
"items": {
|
|
847
|
-
"$ref": "#/$defs/
|
|
863
|
+
"$ref": "#/$defs/__schema8"
|
|
848
864
|
}
|
|
849
865
|
}
|
|
850
866
|
},
|
|
@@ -940,7 +956,7 @@
|
|
|
940
956
|
"unresolved": {
|
|
941
957
|
"type": "array",
|
|
942
958
|
"items": {
|
|
943
|
-
"$ref": "#/$defs/
|
|
959
|
+
"$ref": "#/$defs/__schema8"
|
|
944
960
|
}
|
|
945
961
|
}
|
|
946
962
|
},
|
|
@@ -1033,13 +1049,13 @@
|
|
|
1033
1049
|
"maxLength": 4096
|
|
1034
1050
|
},
|
|
1035
1051
|
"location": {
|
|
1036
|
-
"$ref": "#/$defs/
|
|
1052
|
+
"$ref": "#/$defs/__schema6"
|
|
1037
1053
|
},
|
|
1038
1054
|
"related": {
|
|
1039
1055
|
"maxItems": 100,
|
|
1040
1056
|
"type": "array",
|
|
1041
1057
|
"items": {
|
|
1042
|
-
"$ref": "#/$defs/
|
|
1058
|
+
"$ref": "#/$defs/__schema6"
|
|
1043
1059
|
}
|
|
1044
1060
|
},
|
|
1045
1061
|
"operationId": {
|
|
@@ -1067,7 +1083,7 @@
|
|
|
1067
1083
|
"unresolved": {
|
|
1068
1084
|
"type": "array",
|
|
1069
1085
|
"items": {
|
|
1070
|
-
"$ref": "#/$defs/
|
|
1086
|
+
"$ref": "#/$defs/__schema8"
|
|
1071
1087
|
}
|
|
1072
1088
|
},
|
|
1073
1089
|
"sweep": {
|
|
@@ -1076,7 +1092,7 @@
|
|
|
1076
1092
|
"points": {
|
|
1077
1093
|
"type": "array",
|
|
1078
1094
|
"items": {
|
|
1079
|
-
"$ref": "#/$defs/
|
|
1095
|
+
"$ref": "#/$defs/__schema9"
|
|
1080
1096
|
}
|
|
1081
1097
|
},
|
|
1082
1098
|
"rankReversals": {
|
|
@@ -1121,7 +1137,7 @@
|
|
|
1121
1137
|
"breakpoints": {
|
|
1122
1138
|
"type": "array",
|
|
1123
1139
|
"items": {
|
|
1124
|
-
"$ref": "#/$defs/
|
|
1140
|
+
"$ref": "#/$defs/__schema9"
|
|
1125
1141
|
}
|
|
1126
1142
|
},
|
|
1127
1143
|
"localElasticities": {
|
|
@@ -2031,6 +2047,9 @@
|
|
|
2031
2047
|
"additionalProperties": false,
|
|
2032
2048
|
"$defs": {
|
|
2033
2049
|
"__schema0": {
|
|
2050
|
+
"type": "string"
|
|
2051
|
+
},
|
|
2052
|
+
"__schema1": {
|
|
2034
2053
|
"type": "string",
|
|
2035
2054
|
"enum": [
|
|
2036
2055
|
"event_mean_time_to_happen",
|
|
@@ -2046,7 +2065,7 @@
|
|
|
2046
2065
|
"custom_weighted_pool"
|
|
2047
2066
|
]
|
|
2048
2067
|
},
|
|
2049
|
-
"
|
|
2068
|
+
"__schema2": {
|
|
2050
2069
|
"type": "string",
|
|
2051
2070
|
"enum": [
|
|
2052
2071
|
"conditional_probability",
|
|
@@ -2055,7 +2074,7 @@
|
|
|
2055
2074
|
"effective_mtth_days"
|
|
2056
2075
|
]
|
|
2057
2076
|
},
|
|
2058
|
-
"
|
|
2077
|
+
"__schema3": {
|
|
2059
2078
|
"type": "object",
|
|
2060
2079
|
"properties": {
|
|
2061
2080
|
"numerator": {
|
|
@@ -2081,7 +2100,7 @@
|
|
|
2081
2100
|
],
|
|
2082
2101
|
"additionalProperties": false
|
|
2083
2102
|
},
|
|
2084
|
-
"
|
|
2103
|
+
"__schema4": {
|
|
2085
2104
|
"type": "object",
|
|
2086
2105
|
"properties": {
|
|
2087
2106
|
"operation": {
|
|
@@ -2107,16 +2126,16 @@
|
|
|
2107
2126
|
]
|
|
2108
2127
|
},
|
|
2109
2128
|
"value": {
|
|
2110
|
-
"$ref": "#/$defs/
|
|
2129
|
+
"$ref": "#/$defs/__schema3"
|
|
2111
2130
|
},
|
|
2112
2131
|
"before": {
|
|
2113
|
-
"$ref": "#/$defs/
|
|
2132
|
+
"$ref": "#/$defs/__schema3"
|
|
2114
2133
|
},
|
|
2115
2134
|
"after": {
|
|
2116
|
-
"$ref": "#/$defs/
|
|
2135
|
+
"$ref": "#/$defs/__schema3"
|
|
2117
2136
|
},
|
|
2118
2137
|
"provenance": {
|
|
2119
|
-
"$ref": "#/$defs/
|
|
2138
|
+
"$ref": "#/$defs/__schema5"
|
|
2120
2139
|
},
|
|
2121
2140
|
"conditionExpression": {
|
|
2122
2141
|
"type": "string"
|
|
@@ -2132,7 +2151,7 @@
|
|
|
2132
2151
|
],
|
|
2133
2152
|
"additionalProperties": false
|
|
2134
2153
|
},
|
|
2135
|
-
"
|
|
2154
|
+
"__schema5": {
|
|
2136
2155
|
"type": "object",
|
|
2137
2156
|
"properties": {
|
|
2138
2157
|
"path": {
|
|
@@ -2150,7 +2169,7 @@
|
|
|
2150
2169
|
"type": "string"
|
|
2151
2170
|
},
|
|
2152
2171
|
"location": {
|
|
2153
|
-
"$ref": "#/$defs/
|
|
2172
|
+
"$ref": "#/$defs/__schema6"
|
|
2154
2173
|
},
|
|
2155
2174
|
"astPath": {
|
|
2156
2175
|
"type": "array",
|
|
@@ -2176,7 +2195,7 @@
|
|
|
2176
2195
|
],
|
|
2177
2196
|
"additionalProperties": false
|
|
2178
2197
|
},
|
|
2179
|
-
"
|
|
2198
|
+
"__schema6": {
|
|
2180
2199
|
"type": "object",
|
|
2181
2200
|
"properties": {
|
|
2182
2201
|
"path": {
|
|
@@ -2185,10 +2204,10 @@
|
|
|
2185
2204
|
"maxLength": 4096
|
|
2186
2205
|
},
|
|
2187
2206
|
"start": {
|
|
2188
|
-
"$ref": "#/$defs/
|
|
2207
|
+
"$ref": "#/$defs/__schema7"
|
|
2189
2208
|
},
|
|
2190
2209
|
"end": {
|
|
2191
|
-
"$ref": "#/$defs/
|
|
2210
|
+
"$ref": "#/$defs/__schema7"
|
|
2192
2211
|
},
|
|
2193
2212
|
"symbol": {
|
|
2194
2213
|
"type": "string",
|
|
@@ -2202,7 +2221,7 @@
|
|
|
2202
2221
|
],
|
|
2203
2222
|
"additionalProperties": false
|
|
2204
2223
|
},
|
|
2205
|
-
"
|
|
2224
|
+
"__schema7": {
|
|
2206
2225
|
"type": "object",
|
|
2207
2226
|
"properties": {
|
|
2208
2227
|
"line": {
|
|
@@ -2228,7 +2247,7 @@
|
|
|
2228
2247
|
],
|
|
2229
2248
|
"additionalProperties": false
|
|
2230
2249
|
},
|
|
2231
|
-
"
|
|
2250
|
+
"__schema8": {
|
|
2232
2251
|
"type": "object",
|
|
2233
2252
|
"properties": {
|
|
2234
2253
|
"code": {
|
|
@@ -2244,7 +2263,7 @@
|
|
|
2244
2263
|
"type": "string"
|
|
2245
2264
|
},
|
|
2246
2265
|
"provenance": {
|
|
2247
|
-
"$ref": "#/$defs/
|
|
2266
|
+
"$ref": "#/$defs/__schema5"
|
|
2248
2267
|
},
|
|
2249
2268
|
"details": {
|
|
2250
2269
|
"type": "object",
|
|
@@ -2260,7 +2279,7 @@
|
|
|
2260
2279
|
],
|
|
2261
2280
|
"additionalProperties": false
|
|
2262
2281
|
},
|
|
2263
|
-
"
|
|
2282
|
+
"__schema9": {
|
|
2264
2283
|
"type": "object",
|
|
2265
2284
|
"properties": {
|
|
2266
2285
|
"scenarioId": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.0/schemas/probability-compare-input.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.0/schemas/probability-evaluate-input.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.0/schemas/probability-inspect-input.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.0/schemas/probability-render-input.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.0/schemas/probability-scenario-set.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.0/schemas/probability-sequence-input.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.0/schemas/probability-simulate-input.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.0/schemas/probability-sweep-input.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
package/server.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "io.github.klimPaskov/hoi4-agent-tools",
|
|
4
4
|
"title": "HOI4 Agent Tools",
|
|
5
5
|
"description": "Analyze HOI4 events, tech trees, AI weights, and MTTH; build focus trees, GUIs, and maps.",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "3.0.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"url": "https://github.com/klimPaskov/hoi4-agent-tools",
|
|
9
9
|
"source": "github"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{
|
|
14
14
|
"registryType": "npm",
|
|
15
15
|
"identifier": "hoi4-agent-tools",
|
|
16
|
-
"version": "
|
|
16
|
+
"version": "3.0.0",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
}
|