hoi4-agent-tools 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +3 -1
  3. package/dist/bin/stdio.js +4 -0
  4. package/dist/hoi4_agent_tools/core/domain-scan-patterns.js +12 -0
  5. package/dist/hoi4_agent_tools/gui/assets.js +26 -14
  6. package/dist/hoi4_agent_tools/gui/renderer.js +4 -11
  7. package/dist/hoi4_agent_tools/gui/scenario.js +7 -1
  8. package/dist/hoi4_agent_tools/mcp/tools/chaosx.js +483 -0
  9. package/dist/hoi4_agent_tools/mcp/tools/gui.js +6 -1
  10. package/dist/hoi4_agent_tools/mcp/tools/probability.js +9 -5
  11. package/dist/hoi4_agent_tools/probability/service.js +48 -6
  12. package/dist/hoi4_agent_tools/technology/compare.js +6 -1
  13. package/dist/hoi4_agent_tools/technology/graph.js +67 -2
  14. package/dist/hoi4_agent_tools/technology/model.js +1 -1
  15. package/dist/hoi4_agent_tools/technology/queries.js +4 -0
  16. package/dist/hoi4_agent_tools/technology/render.js +73 -28
  17. package/dist/hoi4_agent_tools/technology/service.js +4 -1
  18. package/dist/hoi4_agent_tools/technology/source-analysis.js +102 -19
  19. package/dist/hoi4_agent_tools/version.js +1 -1
  20. package/docs/gui.md +2 -0
  21. package/docs/images/readme/event-chain-mcp.png +0 -0
  22. package/docs/images/readme/probability-mcp.png +0 -0
  23. package/docs/images/readme/technology-tree-mcp.png +0 -0
  24. package/docs/probability.md +3 -1
  25. package/docs/technology.md +1 -1
  26. package/package.json +1 -1
  27. package/schemas/configuration.schema.json +1 -1
  28. package/schemas/continuous-focus-palette.schema.json +1 -1
  29. package/schemas/custom-weighted-pool.schema.json +1 -1
  30. package/schemas/event-feature-manifest.schema.json +1 -1
  31. package/schemas/focus-plan.schema.json +1 -1
  32. package/schemas/focus-planning-sidecar.schema.json +1 -1
  33. package/schemas/gui-animation-source.schema.json +1 -1
  34. package/schemas/gui-helper.schema.json +1 -1
  35. package/schemas/gui-scenario.schema.json +59 -55
  36. package/schemas/map-operation.schema.json +1 -1
  37. package/schemas/operation-result.schema.json +1 -1
  38. package/schemas/probability-analysis-result.schema.json +1 -1
  39. package/schemas/probability-compare-input.schema.json +1 -1
  40. package/schemas/probability-evaluate-input.schema.json +1 -1
  41. package/schemas/probability-inspect-input.schema.json +1 -1
  42. package/schemas/probability-render-input.schema.json +1 -1
  43. package/schemas/probability-scenario-set.schema.json +1 -1
  44. package/schemas/probability-sequence-input.schema.json +1 -1
  45. package/schemas/probability-simulate-input.schema.json +1 -1
  46. package/schemas/probability-sweep-input.schema.json +1 -1
  47. package/server.json +2 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.0/schemas/focus-plan.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/schemas/focus-plan.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/v3.0.0/schemas/focus-planning-sidecar.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/schemas/focus-planning-sidecar.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/v3.0.0/schemas/gui-animation-source.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/schemas/gui-animation-source.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/v3.0.0/schemas/gui-helper.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/schemas/gui-helper.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/v3.0.0/schemas/gui-scenario.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/schemas/gui-scenario.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -16,61 +16,61 @@
16
16
  "$ref": "#/$defs/__schema5"
17
17
  },
18
18
  "state": {
19
- "$ref": "#/$defs/__schema6"
19
+ "$ref": "#/$defs/__schema7"
20
20
  },
21
21
  "language": {
22
- "$ref": "#/$defs/__schema8"
22
+ "$ref": "#/$defs/__schema9"
23
23
  },
24
24
  "animationTimeSeconds": {
25
- "$ref": "#/$defs/__schema9"
25
+ "$ref": "#/$defs/__schema10"
26
26
  },
27
27
  "visibleTimeSeconds": {
28
- "$ref": "#/$defs/__schema10"
28
+ "$ref": "#/$defs/__schema11"
29
29
  },
30
30
  "country": {
31
- "$ref": "#/$defs/__schema11"
31
+ "$ref": "#/$defs/__schema12"
32
32
  },
33
33
  "stateValues": {
34
- "$ref": "#/$defs/__schema13"
34
+ "$ref": "#/$defs/__schema14"
35
35
  },
36
36
  "variables": {
37
- "$ref": "#/$defs/__schema14"
37
+ "$ref": "#/$defs/__schema15"
38
38
  },
39
39
  "flags": {
40
- "$ref": "#/$defs/__schema15"
40
+ "$ref": "#/$defs/__schema16"
41
41
  },
42
42
  "lists": {
43
- "$ref": "#/$defs/__schema16"
43
+ "$ref": "#/$defs/__schema17"
44
44
  },
45
45
  "localisation": {
46
- "$ref": "#/$defs/__schema17"
46
+ "$ref": "#/$defs/__schema18"
47
47
  },
48
48
  "values": {
49
- "$ref": "#/$defs/__schema18"
49
+ "$ref": "#/$defs/__schema19"
50
50
  },
51
51
  "scriptedGui": {
52
- "$ref": "#/$defs/__schema19"
52
+ "$ref": "#/$defs/__schema20"
53
53
  },
54
54
  "visibility": {
55
- "$ref": "#/$defs/__schema20"
55
+ "$ref": "#/$defs/__schema21"
56
56
  },
57
57
  "elementStates": {
58
- "$ref": "#/$defs/__schema21"
58
+ "$ref": "#/$defs/__schema22"
59
59
  },
60
60
  "selectedFrames": {
61
- "$ref": "#/$defs/__schema22"
61
+ "$ref": "#/$defs/__schema23"
62
62
  },
63
63
  "scrollOffsets": {
64
- "$ref": "#/$defs/__schema23"
64
+ "$ref": "#/$defs/__schema24"
65
65
  },
66
66
  "guiCosts": {
67
- "$ref": "#/$defs/__schema24"
67
+ "$ref": "#/$defs/__schema25"
68
68
  },
69
69
  "scriptCosts": {
70
- "$ref": "#/$defs/__schema25"
70
+ "$ref": "#/$defs/__schema26"
71
71
  },
72
72
  "expectations": {
73
- "$ref": "#/$defs/__schema26"
73
+ "$ref": "#/$defs/__schema27"
74
74
  }
75
75
  },
76
76
  "required": [
@@ -120,15 +120,19 @@
120
120
  },
121
121
  "__schema5": {
122
122
  "default": 1,
123
+ "description": "In-game UI scale. Use 1 for the normal 1920x1080 layout; this changes layout geometry and is not an output-image zoom.",
124
+ "$ref": "#/$defs/__schema6"
125
+ },
126
+ "__schema6": {
123
127
  "type": "number",
124
128
  "minimum": 0.25,
125
129
  "maximum": 4
126
130
  },
127
- "__schema6": {
131
+ "__schema7": {
128
132
  "default": "normal",
129
- "$ref": "#/$defs/__schema7"
133
+ "$ref": "#/$defs/__schema8"
130
134
  },
131
- "__schema7": {
135
+ "__schema8": {
132
136
  "type": "string",
133
137
  "enum": [
134
138
  "normal",
@@ -147,26 +151,26 @@
147
151
  "missing-localisation"
148
152
  ]
149
153
  },
150
- "__schema8": {
154
+ "__schema9": {
151
155
  "default": "l_english",
152
156
  "type": "string",
153
157
  "pattern": "^l_[a-z_]+$"
154
158
  },
155
- "__schema9": {
159
+ "__schema10": {
156
160
  "default": 0,
157
161
  "type": "number",
158
162
  "minimum": 0,
159
163
  "maximum": 86400
160
164
  },
161
- "__schema10": {
165
+ "__schema11": {
162
166
  "type": "number",
163
167
  "minimum": 0,
164
168
  "maximum": 86400
165
169
  },
166
- "__schema11": {
167
- "$ref": "#/$defs/__schema12"
168
- },
169
170
  "__schema12": {
171
+ "$ref": "#/$defs/__schema13"
172
+ },
173
+ "__schema13": {
170
174
  "type": "object",
171
175
  "propertyNames": {
172
176
  "type": "string"
@@ -186,10 +190,10 @@
186
190
  ]
187
191
  }
188
192
  },
189
- "__schema13": {
190
- "$ref": "#/$defs/__schema12"
191
- },
192
193
  "__schema14": {
194
+ "$ref": "#/$defs/__schema13"
195
+ },
196
+ "__schema15": {
193
197
  "default": {},
194
198
  "type": "object",
195
199
  "propertyNames": {
@@ -199,7 +203,7 @@
199
203
  "type": "number"
200
204
  }
201
205
  },
202
- "__schema15": {
206
+ "__schema16": {
203
207
  "default": {},
204
208
  "type": "object",
205
209
  "propertyNames": {
@@ -209,7 +213,7 @@
209
213
  "type": "boolean"
210
214
  }
211
215
  },
212
- "__schema16": {
216
+ "__schema17": {
213
217
  "default": {},
214
218
  "type": "object",
215
219
  "propertyNames": {
@@ -219,11 +223,11 @@
219
223
  "maxItems": 10000,
220
224
  "type": "array",
221
225
  "items": {
222
- "$ref": "#/$defs/__schema12"
226
+ "$ref": "#/$defs/__schema13"
223
227
  }
224
228
  }
225
229
  },
226
- "__schema17": {
230
+ "__schema18": {
227
231
  "default": {},
228
232
  "type": "object",
229
233
  "propertyNames": {
@@ -233,15 +237,15 @@
233
237
  "type": "string"
234
238
  }
235
239
  },
236
- "__schema18": {
237
- "default": {},
238
- "$ref": "#/$defs/__schema12"
239
- },
240
240
  "__schema19": {
241
241
  "default": {},
242
- "$ref": "#/$defs/__schema12"
242
+ "$ref": "#/$defs/__schema13"
243
243
  },
244
244
  "__schema20": {
245
+ "default": {},
246
+ "$ref": "#/$defs/__schema13"
247
+ },
248
+ "__schema21": {
245
249
  "default": {},
246
250
  "type": "object",
247
251
  "propertyNames": {
@@ -251,17 +255,17 @@
251
255
  "type": "boolean"
252
256
  }
253
257
  },
254
- "__schema21": {
258
+ "__schema22": {
255
259
  "default": {},
256
260
  "type": "object",
257
261
  "propertyNames": {
258
262
  "type": "string"
259
263
  },
260
264
  "additionalProperties": {
261
- "$ref": "#/$defs/__schema7"
265
+ "$ref": "#/$defs/__schema8"
262
266
  }
263
267
  },
264
- "__schema22": {
268
+ "__schema23": {
265
269
  "default": {},
266
270
  "type": "object",
267
271
  "propertyNames": {
@@ -273,7 +277,7 @@
273
277
  "maximum": 9007199254740991
274
278
  }
275
279
  },
276
- "__schema23": {
280
+ "__schema24": {
277
281
  "default": {},
278
282
  "type": "object",
279
283
  "propertyNames": {
@@ -284,7 +288,7 @@
284
288
  "minimum": 0
285
289
  }
286
290
  },
287
- "__schema24": {
291
+ "__schema25": {
288
292
  "default": {},
289
293
  "type": "object",
290
294
  "propertyNames": {
@@ -294,7 +298,7 @@
294
298
  "type": "number"
295
299
  }
296
300
  },
297
- "__schema25": {
301
+ "__schema26": {
298
302
  "default": {},
299
303
  "type": "object",
300
304
  "propertyNames": {
@@ -304,7 +308,7 @@
304
308
  "type": "number"
305
309
  }
306
310
  },
307
- "__schema26": {
311
+ "__schema27": {
308
312
  "default": {
309
313
  "visible": [],
310
314
  "hidden": [],
@@ -318,7 +322,7 @@
318
322
  "maxItems": 10000,
319
323
  "type": "array",
320
324
  "items": {
321
- "$ref": "#/$defs/__schema27"
325
+ "$ref": "#/$defs/__schema28"
322
326
  }
323
327
  },
324
328
  "hidden": {
@@ -326,33 +330,33 @@
326
330
  "maxItems": 10000,
327
331
  "type": "array",
328
332
  "items": {
329
- "$ref": "#/$defs/__schema27"
333
+ "$ref": "#/$defs/__schema28"
330
334
  }
331
335
  },
332
336
  "containedBy": {
333
337
  "default": {},
334
338
  "type": "object",
335
339
  "propertyNames": {
336
- "$ref": "#/$defs/__schema27"
340
+ "$ref": "#/$defs/__schema28"
337
341
  },
338
342
  "additionalProperties": {
339
- "$ref": "#/$defs/__schema27"
343
+ "$ref": "#/$defs/__schema28"
340
344
  }
341
345
  },
342
346
  "centeredOn": {
343
347
  "default": {},
344
348
  "type": "object",
345
349
  "propertyNames": {
346
- "$ref": "#/$defs/__schema27"
350
+ "$ref": "#/$defs/__schema28"
347
351
  },
348
352
  "additionalProperties": {
349
- "$ref": "#/$defs/__schema27"
353
+ "$ref": "#/$defs/__schema28"
350
354
  }
351
355
  }
352
356
  },
353
357
  "additionalProperties": false
354
358
  },
355
- "__schema27": {
359
+ "__schema28": {
356
360
  "type": "string",
357
361
  "minLength": 1,
358
362
  "maxLength": 256
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.0/schemas/map-operation.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/schemas/map-operation.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "oneOf": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.0/schemas/operation-result.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/schemas/operation-result.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/v3.0.0/schemas/probability-analysis-result.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/schemas/probability-analysis-result.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/v3.0.0/schemas/probability-compare-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/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/v3.0.0/schemas/probability-evaluate-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/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/v3.0.0/schemas/probability-inspect-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/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/v3.0.0/schemas/probability-render-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/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/v3.0.0/schemas/probability-scenario-set.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/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/v3.0.0/schemas/probability-sequence-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/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/v3.0.0/schemas/probability-simulate-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/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/v3.0.0/schemas/probability-sweep-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.0.2/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": "3.0.0",
6
+ "version": "3.0.2",
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": "3.0.0",
16
+ "version": "3.0.2",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  }