hoi4-agent-tools 3.4.1 → 3.5.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.
Files changed (96) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +26 -18
  3. package/dist/hoi4_agent_tools/core/condition-evaluator.js +41 -2
  4. package/dist/hoi4_agent_tools/core/condition-schema.js +18 -0
  5. package/dist/hoi4_agent_tools/core/configuration.js +10 -0
  6. package/dist/hoi4_agent_tools/core/domain-scan-patterns.js +9 -1
  7. package/dist/hoi4_agent_tools/core/impact-semantic.js +11 -4
  8. package/dist/hoi4_agent_tools/core/scanner.js +1 -1
  9. package/dist/hoi4_agent_tools/core/scenario-model.js +6 -0
  10. package/dist/hoi4_agent_tools/core/scenario-state.js +3 -0
  11. package/dist/hoi4_agent_tools/core/workspace.js +13 -1
  12. package/dist/hoi4_agent_tools/event/graph.js +8 -1
  13. package/dist/hoi4_agent_tools/event/service.js +1 -0
  14. package/dist/hoi4_agent_tools/event/source-analysis.js +1 -1
  15. package/dist/hoi4_agent_tools/focus/render.js +10 -2
  16. package/dist/hoi4_agent_tools/gui/layout.js +58 -11
  17. package/dist/hoi4_agent_tools/gui/scenario.js +3 -1
  18. package/dist/hoi4_agent_tools/gui/source-graph.js +4 -1
  19. package/dist/hoi4_agent_tools/gui/studio.js +32 -10
  20. package/dist/hoi4_agent_tools/map/model.js +121 -12
  21. package/dist/hoi4_agent_tools/map/operations.js +80 -7
  22. package/dist/hoi4_agent_tools/map/service.js +1 -0
  23. package/dist/hoi4_agent_tools/map/validation.js +38 -1
  24. package/dist/hoi4_agent_tools/mcp/server/create-modern-operations.js +18 -1
  25. package/dist/hoi4_agent_tools/mcp/server/create.js +2 -0
  26. package/dist/hoi4_agent_tools/mcp/server/instructions.js +1 -1
  27. package/dist/hoi4_agent_tools/mcp/tools/reference.js +60 -0
  28. package/dist/hoi4_agent_tools/probability/service.js +2 -2
  29. package/dist/hoi4_agent_tools/probability/source-analysis.js +16 -0
  30. package/dist/hoi4_agent_tools/probability/value-evaluator.js +2 -1
  31. package/dist/hoi4_agent_tools/reference/lines.js +52 -0
  32. package/dist/hoi4_agent_tools/reference/operations.js +41 -0
  33. package/dist/hoi4_agent_tools/reference/service.js +427 -0
  34. package/dist/hoi4_agent_tools/reference/source-lookup.js +90 -0
  35. package/dist/hoi4_agent_tools/schemas/analysis.js +2 -0
  36. package/dist/hoi4_agent_tools/schemas/gui-requests.js +1 -1
  37. package/dist/hoi4_agent_tools/schemas/probability-requests.js +1 -1
  38. package/dist/hoi4_agent_tools/schemas/probability.js +26 -2
  39. package/dist/hoi4_agent_tools/schemas/reference.js +160 -0
  40. package/dist/hoi4_agent_tools/technology/render.js +9 -4
  41. package/dist/hoi4_agent_tools/version.js +1 -1
  42. package/docs/README.md +3 -0
  43. package/docs/gui.md +6 -0
  44. package/docs/map.md +8 -0
  45. package/docs/probability.md +7 -0
  46. package/docs/reference.md +32 -0
  47. package/docs/research/reference-benchmark.md +28 -0
  48. package/docs/setup.md +6 -0
  49. package/examples/clients/codex-config.toml +2 -0
  50. package/package.json +4 -2
  51. package/schemas/configuration.schema.json +72 -58
  52. package/schemas/continuous-focus-palette.schema.json +1 -1
  53. package/schemas/custom-weighted-pool.schema.json +1 -1
  54. package/schemas/decision-inspect-input.schema.json +43 -26
  55. package/schemas/event-feature-manifest.schema.json +1 -1
  56. package/schemas/focus-plan.schema.json +1 -1
  57. package/schemas/focus-planning-sidecar.schema.json +1 -1
  58. package/schemas/gui-animation-source.schema.json +1 -1
  59. package/schemas/gui-helper.schema.json +1 -1
  60. package/schemas/gui-scenario.schema.json +102 -75
  61. package/schemas/helper-expansion-request.schema.json +1 -1
  62. package/schemas/helper-expansion-summary.schema.json +1 -1
  63. package/schemas/impact-inspect-input.schema.json +1 -1
  64. package/schemas/map-operation.schema.json +1 -1
  65. package/schemas/mechanic-test-input.schema.json +49 -32
  66. package/schemas/operation-result.schema.json +1 -1
  67. package/schemas/package-check-input.schema.json +1 -1
  68. package/schemas/package-manifest.schema.json +1 -1
  69. package/schemas/probability-analysis-result.schema.json +1 -1
  70. package/schemas/probability-compare-input.schema.json +160 -131
  71. package/schemas/probability-evaluate-input.schema.json +161 -132
  72. package/schemas/probability-inspect-input.schema.json +20 -11
  73. package/schemas/probability-render-input.schema.json +1 -1
  74. package/schemas/probability-scenario-set.schema.json +110 -90
  75. package/schemas/probability-sequence-input.schema.json +154 -134
  76. package/schemas/probability-simulate-input.schema.json +161 -132
  77. package/schemas/probability-sweep-input.schema.json +163 -134
  78. package/schemas/reference-context-input.schema.json +42 -0
  79. package/schemas/reference-read-input.schema.json +41 -0
  80. package/schemas/reference-search-input.schema.json +45 -0
  81. package/schemas/scenario-suite.schema.json +92 -75
  82. package/schemas/scenario-test-input.schema.json +103 -86
  83. package/schemas/shared-scenario.schema.json +39 -22
  84. package/schemas/source-lookup-input.schema.json +61 -0
  85. package/server.json +2 -2
  86. package/docs/images/readme/chaos-meter-ingame.png +0 -0
  87. package/docs/images/readme/chaos-meter-mcp.png +0 -0
  88. package/docs/images/readme/communist-insurgency-ingame.png +0 -0
  89. package/docs/images/readme/communist-insurgency-mcp.png +0 -0
  90. package/docs/images/readme/event-chain-mcp.png +0 -0
  91. package/docs/images/readme/focus-tree-mcp.png +0 -0
  92. package/docs/images/readme/map-mcp.png +0 -0
  93. package/docs/images/readme/probability-mcp.png +0 -0
  94. package/docs/images/readme/settings-advanced-mcp.png +0 -0
  95. package/docs/images/readme/settings-events-mcp.png +0 -0
  96. package/docs/images/readme/technology-tree-mcp.png +0 -0
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.4.1/schemas/mechanic-test-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.5.0/schemas/mechanic-test-input.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -30,14 +30,23 @@
30
30
  "type": "string",
31
31
  "maxLength": 64
32
32
  },
33
+ "controls": {
34
+ "type": "object",
35
+ "propertyNames": {
36
+ "$ref": "#/$defs/__schema1"
37
+ },
38
+ "additionalProperties": {
39
+ "$ref": "#/$defs/__schema2"
40
+ }
41
+ },
33
42
  "state": {
34
- "$ref": "#/$defs/__schema1"
43
+ "$ref": "#/$defs/__schema3"
35
44
  },
36
45
  "flags": {
37
46
  "maxItems": 10000,
38
47
  "type": "array",
39
48
  "items": {
40
- "$ref": "#/$defs/__schema5"
49
+ "$ref": "#/$defs/__schema7"
41
50
  }
42
51
  },
43
52
  "eventTargets": {
@@ -54,10 +63,10 @@
54
63
  "scopes": {
55
64
  "type": "object",
56
65
  "propertyNames": {
57
- "$ref": "#/$defs/__schema6"
66
+ "$ref": "#/$defs/__schema8"
58
67
  },
59
68
  "additionalProperties": {
60
- "$ref": "#/$defs/__schema7"
69
+ "$ref": "#/$defs/__schema9"
61
70
  }
62
71
  },
63
72
  "candidateOverrides": {
@@ -123,7 +132,7 @@
123
132
  "maxItems": 128,
124
133
  "type": "array",
125
134
  "items": {
126
- "$ref": "#/$defs/__schema9"
135
+ "$ref": "#/$defs/__schema11"
127
136
  }
128
137
  },
129
138
  "assertions": {
@@ -131,7 +140,7 @@
131
140
  "maxItems": 256,
132
141
  "type": "array",
133
142
  "items": {
134
- "$ref": "#/$defs/__schema10"
143
+ "$ref": "#/$defs/__schema12"
135
144
  }
136
145
  }
137
146
  },
@@ -163,34 +172,42 @@
163
172
  "maxLength": 512
164
173
  },
165
174
  "__schema1": {
175
+ "type": "string",
176
+ "pattern": "^[1-9][0-9]{0,8}$"
177
+ },
178
+ "__schema2": {
179
+ "type": "string",
180
+ "pattern": "^[A-Z0-9]{3}$"
181
+ },
182
+ "__schema3": {
166
183
  "type": "object",
167
184
  "propertyNames": {
168
- "$ref": "#/$defs/__schema2"
185
+ "$ref": "#/$defs/__schema4"
169
186
  },
170
187
  "additionalProperties": {
171
- "$ref": "#/$defs/__schema3"
188
+ "$ref": "#/$defs/__schema5"
172
189
  }
173
190
  },
174
- "__schema2": {
191
+ "__schema4": {
175
192
  "type": "string",
176
193
  "minLength": 1,
177
194
  "maxLength": 1024
178
195
  },
179
- "__schema3": {
196
+ "__schema5": {
180
197
  "anyOf": [
181
198
  {
182
- "$ref": "#/$defs/__schema4"
199
+ "$ref": "#/$defs/__schema6"
183
200
  },
184
201
  {
185
202
  "maxItems": 10000,
186
203
  "type": "array",
187
204
  "items": {
188
- "$ref": "#/$defs/__schema4"
205
+ "$ref": "#/$defs/__schema6"
189
206
  }
190
207
  }
191
208
  ]
192
209
  },
193
- "__schema4": {
210
+ "__schema6": {
194
211
  "anyOf": [
195
212
  {
196
213
  "type": "string",
@@ -207,17 +224,17 @@
207
224
  }
208
225
  ]
209
226
  },
210
- "__schema5": {
227
+ "__schema7": {
211
228
  "type": "string",
212
229
  "minLength": 1,
213
230
  "maxLength": 512
214
231
  },
215
- "__schema6": {
232
+ "__schema8": {
216
233
  "type": "string",
217
234
  "minLength": 1,
218
235
  "maxLength": 128
219
236
  },
220
- "__schema7": {
237
+ "__schema9": {
221
238
  "type": "object",
222
239
  "properties": {
223
240
  "id": {
@@ -243,13 +260,13 @@
243
260
  "maxLength": 256
244
261
  },
245
262
  "state": {
246
- "$ref": "#/$defs/__schema1"
263
+ "$ref": "#/$defs/__schema3"
247
264
  },
248
265
  "flags": {
249
266
  "maxItems": 10000,
250
267
  "type": "array",
251
268
  "items": {
252
- "$ref": "#/$defs/__schema8"
269
+ "$ref": "#/$defs/__schema10"
253
270
  }
254
271
  },
255
272
  "eventTargets": {
@@ -281,12 +298,12 @@
281
298
  ],
282
299
  "additionalProperties": false
283
300
  },
284
- "__schema8": {
301
+ "__schema10": {
285
302
  "type": "string",
286
303
  "minLength": 1,
287
304
  "maxLength": 512
288
305
  },
289
- "__schema9": {
306
+ "__schema11": {
290
307
  "oneOf": [
291
308
  {
292
309
  "type": "object",
@@ -354,7 +371,7 @@
354
371
  }
355
372
  ]
356
373
  },
357
- "__schema10": {
374
+ "__schema12": {
358
375
  "oneOf": [
359
376
  {
360
377
  "type": "object",
@@ -367,10 +384,10 @@
367
384
  "const": "equals"
368
385
  },
369
386
  "path": {
370
- "$ref": "#/$defs/__schema11"
387
+ "$ref": "#/$defs/__schema13"
371
388
  },
372
389
  "expected": {
373
- "$ref": "#/$defs/__schema12"
390
+ "$ref": "#/$defs/__schema14"
374
391
  }
375
392
  },
376
393
  "required": [
@@ -396,7 +413,7 @@
396
413
  "maxItems": 64,
397
414
  "type": "array",
398
415
  "items": {
399
- "$ref": "#/$defs/__schema11"
416
+ "$ref": "#/$defs/__schema13"
400
417
  }
401
418
  },
402
419
  "tolerance": {
@@ -427,7 +444,7 @@
427
444
  "maxItems": 32,
428
445
  "type": "array",
429
446
  "items": {
430
- "$ref": "#/$defs/__schema11"
447
+ "$ref": "#/$defs/__schema13"
431
448
  }
432
449
  }
433
450
  },
@@ -449,7 +466,7 @@
449
466
  "const": "affordability"
450
467
  },
451
468
  "balance": {
452
- "$ref": "#/$defs/__schema11"
469
+ "$ref": "#/$defs/__schema13"
453
470
  },
454
471
  "cost": {
455
472
  "type": "number",
@@ -475,7 +492,7 @@
475
492
  "const": "single_payment"
476
493
  },
477
494
  "balance": {
478
- "$ref": "#/$defs/__schema11"
495
+ "$ref": "#/$defs/__schema13"
479
496
  },
480
497
  "cost": {
481
498
  "type": "number",
@@ -597,10 +614,10 @@
597
614
  "const": "end_state"
598
615
  },
599
616
  "path": {
600
- "$ref": "#/$defs/__schema11"
617
+ "$ref": "#/$defs/__schema13"
601
618
  },
602
619
  "expected": {
603
- "$ref": "#/$defs/__schema12"
620
+ "$ref": "#/$defs/__schema14"
604
621
  }
605
622
  },
606
623
  "required": [
@@ -613,7 +630,7 @@
613
630
  }
614
631
  ]
615
632
  },
616
- "__schema11": {
633
+ "__schema13": {
617
634
  "type": "object",
618
635
  "properties": {
619
636
  "scope": {
@@ -629,7 +646,7 @@
629
646
  ],
630
647
  "additionalProperties": false
631
648
  },
632
- "__schema12": {
649
+ "__schema14": {
633
650
  "anyOf": [
634
651
  {
635
652
  "type": "string",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.4.1/schemas/operation-result.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.5.0/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.4.1/schemas/package-check-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.5.0/schemas/package-check-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.4.1/schemas/package-manifest.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.5.0/schemas/package-manifest.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.4.1/schemas/probability-analysis-result.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.5.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": {