hoi4-agent-tools 3.4.0 → 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.
- package/CHANGELOG.md +27 -0
- package/README.md +26 -18
- package/dist/hoi4_agent_tools/core/condition-evaluator.js +48 -2
- package/dist/hoi4_agent_tools/core/condition-schema.js +18 -0
- package/dist/hoi4_agent_tools/core/configuration.js +10 -0
- package/dist/hoi4_agent_tools/core/domain-scan-patterns.js +9 -1
- package/dist/hoi4_agent_tools/core/impact-semantic.js +11 -4
- package/dist/hoi4_agent_tools/core/index.js +1 -0
- package/dist/hoi4_agent_tools/core/job-worker-host.js +19 -1
- package/dist/hoi4_agent_tools/core/operation-result.js +4 -1
- package/dist/hoi4_agent_tools/core/scanner.js +1 -1
- package/dist/hoi4_agent_tools/core/scenario-model.js +6 -0
- package/dist/hoi4_agent_tools/core/scenario-state.js +3 -0
- package/dist/hoi4_agent_tools/core/workspace.js +13 -1
- package/dist/hoi4_agent_tools/event/graph.js +8 -1
- package/dist/hoi4_agent_tools/event/operations.js +16 -10
- package/dist/hoi4_agent_tools/event/service.js +1 -0
- package/dist/hoi4_agent_tools/event/source-analysis.js +1 -1
- package/dist/hoi4_agent_tools/focus/render.js +10 -2
- package/dist/hoi4_agent_tools/gui/layout.js +58 -11
- package/dist/hoi4_agent_tools/gui/scenario.js +3 -1
- package/dist/hoi4_agent_tools/gui/source-graph.js +4 -1
- package/dist/hoi4_agent_tools/gui/studio.js +32 -10
- package/dist/hoi4_agent_tools/gui/validators.js +3 -0
- package/dist/hoi4_agent_tools/map/model.js +121 -12
- package/dist/hoi4_agent_tools/map/operations.js +80 -7
- package/dist/hoi4_agent_tools/map/service.js +1 -0
- package/dist/hoi4_agent_tools/map/validation.js +38 -1
- package/dist/hoi4_agent_tools/mcp/server/create-modern-operations.js +18 -1
- package/dist/hoi4_agent_tools/mcp/server/create.js +2 -0
- package/dist/hoi4_agent_tools/mcp/server/instructions.js +1 -1
- package/dist/hoi4_agent_tools/mcp/tools/reference.js +60 -0
- package/dist/hoi4_agent_tools/mechanic/interpreter.js +91 -30
- package/dist/hoi4_agent_tools/mechanic/source.js +19 -4
- package/dist/hoi4_agent_tools/probability/service.js +2 -2
- package/dist/hoi4_agent_tools/probability/source-analysis.js +16 -0
- package/dist/hoi4_agent_tools/probability/value-evaluator.js +2 -1
- package/dist/hoi4_agent_tools/reference/lines.js +52 -0
- package/dist/hoi4_agent_tools/reference/operations.js +41 -0
- package/dist/hoi4_agent_tools/reference/service.js +427 -0
- package/dist/hoi4_agent_tools/reference/source-lookup.js +90 -0
- package/dist/hoi4_agent_tools/schemas/analysis.js +2 -0
- package/dist/hoi4_agent_tools/schemas/gui-requests.js +1 -1
- package/dist/hoi4_agent_tools/schemas/probability-requests.js +1 -1
- package/dist/hoi4_agent_tools/schemas/probability.js +26 -2
- package/dist/hoi4_agent_tools/schemas/reference.js +160 -0
- package/dist/hoi4_agent_tools/technology/operations.js +29 -1
- package/dist/hoi4_agent_tools/technology/render.js +11 -5
- package/dist/hoi4_agent_tools/technology/service.js +1 -0
- package/dist/hoi4_agent_tools/version.js +1 -1
- package/docs/README.md +3 -0
- package/docs/events.md +1 -1
- package/docs/gui.md +7 -0
- package/docs/jobs.md +1 -0
- package/docs/map.md +8 -0
- package/docs/mechanics.md +2 -1
- package/docs/probability.md +7 -0
- package/docs/reference.md +32 -0
- package/docs/research/reference-benchmark.md +28 -0
- package/docs/setup.md +6 -0
- package/docs/technology.md +5 -1
- package/examples/clients/codex-config.toml +2 -0
- package/package.json +4 -2
- package/schemas/configuration.schema.json +72 -58
- package/schemas/continuous-focus-palette.schema.json +1 -1
- package/schemas/custom-weighted-pool.schema.json +1 -1
- package/schemas/decision-inspect-input.schema.json +43 -26
- 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 +102 -75
- package/schemas/helper-expansion-request.schema.json +1 -1
- package/schemas/helper-expansion-summary.schema.json +1 -1
- package/schemas/impact-inspect-input.schema.json +1 -1
- package/schemas/map-operation.schema.json +1 -1
- package/schemas/mechanic-test-input.schema.json +49 -32
- package/schemas/operation-result.schema.json +1 -1
- package/schemas/package-check-input.schema.json +1 -1
- package/schemas/package-manifest.schema.json +1 -1
- package/schemas/probability-analysis-result.schema.json +1 -1
- package/schemas/probability-compare-input.schema.json +160 -131
- package/schemas/probability-evaluate-input.schema.json +161 -132
- package/schemas/probability-inspect-input.schema.json +20 -11
- package/schemas/probability-render-input.schema.json +1 -1
- package/schemas/probability-scenario-set.schema.json +110 -90
- package/schemas/probability-sequence-input.schema.json +154 -134
- package/schemas/probability-simulate-input.schema.json +161 -132
- package/schemas/probability-sweep-input.schema.json +163 -134
- package/schemas/reference-context-input.schema.json +42 -0
- package/schemas/reference-read-input.schema.json +41 -0
- package/schemas/reference-search-input.schema.json +45 -0
- package/schemas/scenario-suite.schema.json +92 -75
- package/schemas/scenario-test-input.schema.json +103 -86
- package/schemas/shared-scenario.schema.json +39 -22
- package/schemas/source-lookup-input.schema.json +61 -0
- package/server.json +2 -2
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.
|
|
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/
|
|
43
|
+
"$ref": "#/$defs/__schema3"
|
|
35
44
|
},
|
|
36
45
|
"flags": {
|
|
37
46
|
"maxItems": 10000,
|
|
38
47
|
"type": "array",
|
|
39
48
|
"items": {
|
|
40
|
-
"$ref": "#/$defs/
|
|
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/
|
|
66
|
+
"$ref": "#/$defs/__schema8"
|
|
58
67
|
},
|
|
59
68
|
"additionalProperties": {
|
|
60
|
-
"$ref": "#/$defs/
|
|
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/
|
|
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/
|
|
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/
|
|
185
|
+
"$ref": "#/$defs/__schema4"
|
|
169
186
|
},
|
|
170
187
|
"additionalProperties": {
|
|
171
|
-
"$ref": "#/$defs/
|
|
188
|
+
"$ref": "#/$defs/__schema5"
|
|
172
189
|
}
|
|
173
190
|
},
|
|
174
|
-
"
|
|
191
|
+
"__schema4": {
|
|
175
192
|
"type": "string",
|
|
176
193
|
"minLength": 1,
|
|
177
194
|
"maxLength": 1024
|
|
178
195
|
},
|
|
179
|
-
"
|
|
196
|
+
"__schema5": {
|
|
180
197
|
"anyOf": [
|
|
181
198
|
{
|
|
182
|
-
"$ref": "#/$defs/
|
|
199
|
+
"$ref": "#/$defs/__schema6"
|
|
183
200
|
},
|
|
184
201
|
{
|
|
185
202
|
"maxItems": 10000,
|
|
186
203
|
"type": "array",
|
|
187
204
|
"items": {
|
|
188
|
-
"$ref": "#/$defs/
|
|
205
|
+
"$ref": "#/$defs/__schema6"
|
|
189
206
|
}
|
|
190
207
|
}
|
|
191
208
|
]
|
|
192
209
|
},
|
|
193
|
-
"
|
|
210
|
+
"__schema6": {
|
|
194
211
|
"anyOf": [
|
|
195
212
|
{
|
|
196
213
|
"type": "string",
|
|
@@ -207,17 +224,17 @@
|
|
|
207
224
|
}
|
|
208
225
|
]
|
|
209
226
|
},
|
|
210
|
-
"
|
|
227
|
+
"__schema7": {
|
|
211
228
|
"type": "string",
|
|
212
229
|
"minLength": 1,
|
|
213
230
|
"maxLength": 512
|
|
214
231
|
},
|
|
215
|
-
"
|
|
232
|
+
"__schema8": {
|
|
216
233
|
"type": "string",
|
|
217
234
|
"minLength": 1,
|
|
218
235
|
"maxLength": 128
|
|
219
236
|
},
|
|
220
|
-
"
|
|
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/
|
|
263
|
+
"$ref": "#/$defs/__schema3"
|
|
247
264
|
},
|
|
248
265
|
"flags": {
|
|
249
266
|
"maxItems": 10000,
|
|
250
267
|
"type": "array",
|
|
251
268
|
"items": {
|
|
252
|
-
"$ref": "#/$defs/
|
|
269
|
+
"$ref": "#/$defs/__schema10"
|
|
253
270
|
}
|
|
254
271
|
},
|
|
255
272
|
"eventTargets": {
|
|
@@ -281,12 +298,12 @@
|
|
|
281
298
|
],
|
|
282
299
|
"additionalProperties": false
|
|
283
300
|
},
|
|
284
|
-
"
|
|
301
|
+
"__schema10": {
|
|
285
302
|
"type": "string",
|
|
286
303
|
"minLength": 1,
|
|
287
304
|
"maxLength": 512
|
|
288
305
|
},
|
|
289
|
-
"
|
|
306
|
+
"__schema11": {
|
|
290
307
|
"oneOf": [
|
|
291
308
|
{
|
|
292
309
|
"type": "object",
|
|
@@ -354,7 +371,7 @@
|
|
|
354
371
|
}
|
|
355
372
|
]
|
|
356
373
|
},
|
|
357
|
-
"
|
|
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/
|
|
387
|
+
"$ref": "#/$defs/__schema13"
|
|
371
388
|
},
|
|
372
389
|
"expected": {
|
|
373
|
-
"$ref": "#/$defs/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
617
|
+
"$ref": "#/$defs/__schema13"
|
|
601
618
|
},
|
|
602
619
|
"expected": {
|
|
603
|
-
"$ref": "#/$defs/
|
|
620
|
+
"$ref": "#/$defs/__schema14"
|
|
604
621
|
}
|
|
605
622
|
},
|
|
606
623
|
"required": [
|
|
@@ -613,7 +630,7 @@
|
|
|
613
630
|
}
|
|
614
631
|
]
|
|
615
632
|
},
|
|
616
|
-
"
|
|
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
|
-
"
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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": {
|