hoi4-agent-tools 2.1.1 → 2.3.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 +24 -0
- package/README.md +32 -18
- package/dist/bin/stdio.js +2 -1
- package/dist/hoi4_agent_tools/core/clausewitz-evaluation.js +90 -0
- package/dist/hoi4_agent_tools/core/engine.js +14 -0
- package/dist/hoi4_agent_tools/core/index.js +349 -2
- package/dist/hoi4_agent_tools/core/source/ast-path.js +41 -0
- package/dist/hoi4_agent_tools/core/source/index.js +1 -0
- package/dist/hoi4_agent_tools/event/limits.js +1 -1
- package/dist/hoi4_agent_tools/focus/render.js +37 -13
- package/dist/hoi4_agent_tools/mcp/server/create.js +5 -1
- package/dist/hoi4_agent_tools/mcp/server/result.js +4 -4
- package/dist/hoi4_agent_tools/mcp/tools/focus.js +39 -2
- package/dist/hoi4_agent_tools/mcp/tools/probability.js +413 -0
- package/dist/hoi4_agent_tools/mcp/tools/technology.js +368 -0
- package/dist/hoi4_agent_tools/probability/adapters.js +344 -0
- package/dist/hoi4_agent_tools/probability/compare.js +178 -0
- package/dist/hoi4_agent_tools/probability/evaluation.js +649 -0
- package/dist/hoi4_agent_tools/probability/index.js +13 -0
- package/dist/hoi4_agent_tools/probability/model.js +5 -0
- package/dist/hoi4_agent_tools/probability/rational.js +145 -0
- package/dist/hoi4_agent_tools/probability/render.js +307 -0
- package/dist/hoi4_agent_tools/probability/sequence.js +858 -0
- package/dist/hoi4_agent_tools/probability/service.js +1168 -0
- package/dist/hoi4_agent_tools/probability/simulation.js +545 -0
- package/dist/hoi4_agent_tools/probability/source-analysis.js +458 -0
- package/dist/hoi4_agent_tools/probability/sweep.js +265 -0
- package/dist/hoi4_agent_tools/probability/trigger-evaluator.js +280 -0
- package/dist/hoi4_agent_tools/probability/value-evaluator.js +357 -0
- package/dist/hoi4_agent_tools/schemas/probability.js +930 -0
- package/dist/hoi4_agent_tools/schemas/technology.js +77 -0
- package/dist/hoi4_agent_tools/technology/compare.js +240 -0
- package/dist/hoi4_agent_tools/technology/graph.js +1196 -0
- package/dist/hoi4_agent_tools/technology/index.js +7 -0
- package/dist/hoi4_agent_tools/technology/model.js +2 -0
- package/dist/hoi4_agent_tools/technology/queries.js +300 -0
- package/dist/hoi4_agent_tools/technology/render.js +641 -0
- package/dist/hoi4_agent_tools/technology/service.js +686 -0
- package/dist/hoi4_agent_tools/technology/source-analysis.js +967 -0
- package/dist/hoi4_agent_tools/version.js +1 -1
- package/docs/README.md +2 -0
- package/docs/development.md +7 -1
- package/docs/probability.md +80 -0
- package/docs/research/probability-adapter-evidence.md +64 -0
- package/docs/setup.md +1 -1
- package/docs/technology.md +90 -0
- package/examples/clients/codex-config.toml +3 -0
- package/examples/clients/generic.json +8 -0
- package/examples/probability/adaptive-event-pool.json +92 -0
- package/examples/probability/adaptive-event-sequence-input.json +57 -0
- package/examples/probability/event-mtth-scenarios.json +57 -0
- package/examples/probability/event-mtth-simulate-input.json +37 -0
- package/examples/probability/focus-route-scenarios.json +61 -0
- package/examples/probability/focus-route-sweep-input.json +36 -0
- package/package.json +26 -8
- package/schemas/configuration.schema.json +747 -0
- package/schemas/continuous-focus-palette.schema.json +325 -0
- package/schemas/custom-weighted-pool.schema.json +298 -0
- package/schemas/event-feature-manifest.schema.json +63 -0
- package/schemas/focus-plan.schema.json +927 -0
- package/schemas/focus-planning-sidecar.schema.json +407 -0
- package/schemas/gui-animation-source.schema.json +176 -0
- package/schemas/gui-helper.schema.json +301 -0
- package/schemas/gui-scenario.schema.json +298 -0
- package/schemas/map-operation.schema.json +2284 -0
- package/schemas/operation-result.schema.json +327 -0
- package/schemas/probability-analysis-result.schema.json +2211 -0
- package/schemas/probability-compare-input.schema.json +664 -0
- package/schemas/probability-evaluate-input.schema.json +665 -0
- package/schemas/probability-inspect-input.schema.json +97 -0
- package/schemas/probability-render-input.schema.json +141 -0
- package/schemas/probability-scenario-set.schema.json +430 -0
- package/schemas/probability-sequence-input.schema.json +886 -0
- package/schemas/probability-simulate-input.schema.json +691 -0
- package/schemas/probability-sweep-input.schema.json +702 -0
- package/server.json +3 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"adapter": "national_focus_ai_will_do",
|
|
3
|
+
"source": { "identifier": "EXM_prepare_the_border" },
|
|
4
|
+
"scenarioSet": {
|
|
5
|
+
"schemaVersion": "1.0",
|
|
6
|
+
"id": "focus_route_sweep",
|
|
7
|
+
"surfaceHint": "national_focus_ai_will_do",
|
|
8
|
+
"scenarios": [
|
|
9
|
+
{
|
|
10
|
+
"id": "uncertain_foreign_support",
|
|
11
|
+
"actor": "EXM",
|
|
12
|
+
"date": "1939.3.1",
|
|
13
|
+
"state": {
|
|
14
|
+
"has_war": false,
|
|
15
|
+
"stability": 0.55,
|
|
16
|
+
"world_tension": 0.52,
|
|
17
|
+
"focus.external_factors_complete": true
|
|
18
|
+
},
|
|
19
|
+
"uncertainInputs": [
|
|
20
|
+
{
|
|
21
|
+
"path": "variable.foreign_influence",
|
|
22
|
+
"range": { "min": 20, "max": 80 }
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"candidatePool": ["EXM_expand_industry", "EXM_prepare_the_border", "EXM_seek_foreign_support"],
|
|
29
|
+
"sweep": {
|
|
30
|
+
"paths": ["variable.foreign_influence"],
|
|
31
|
+
"steps": 25,
|
|
32
|
+
"pairwise": false,
|
|
33
|
+
"findRankReversals": true
|
|
34
|
+
},
|
|
35
|
+
"outputs": ["json", "ranking", "matrix", "waterfall", "sensitivity", "unresolved"]
|
|
36
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hoi4-agent-tools",
|
|
3
3
|
"mcpName": "io.github.klimPaskov/hoi4-agent-tools",
|
|
4
|
-
"version": "2.
|
|
5
|
-
"description": "Analyze HOI4
|
|
4
|
+
"version": "2.3.0",
|
|
5
|
+
"description": "Analyze HOI4 events, tech trees, AI weights, and MTTH; build focus trees, GUIs, and maps.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"author": "HOI4 Agent Tools contributors",
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
"clausewitz",
|
|
23
23
|
"focus-trees",
|
|
24
24
|
"event-chains",
|
|
25
|
+
"technology-trees",
|
|
26
|
+
"doctrines",
|
|
27
|
+
"ai-weights",
|
|
28
|
+
"mtth",
|
|
29
|
+
"probability-analysis",
|
|
25
30
|
"hoi4-events",
|
|
26
31
|
"scripted-gui",
|
|
27
32
|
"hoi4-map"
|
|
@@ -34,11 +39,17 @@
|
|
|
34
39
|
"docs/README.md",
|
|
35
40
|
"docs/setup.md",
|
|
36
41
|
"docs/events.md",
|
|
42
|
+
"docs/technology.md",
|
|
43
|
+
"docs/probability.md",
|
|
44
|
+
"docs/research/probability-adapter-evidence.md",
|
|
37
45
|
"docs/focus.md",
|
|
38
46
|
"docs/gui.md",
|
|
39
47
|
"docs/map.md",
|
|
40
48
|
"docs/http.md",
|
|
41
49
|
"docs/development.md",
|
|
50
|
+
"examples/clients/",
|
|
51
|
+
"examples/probability/",
|
|
52
|
+
"schemas/",
|
|
42
53
|
"server.json",
|
|
43
54
|
"README.md",
|
|
44
55
|
"CHANGELOG.md",
|
|
@@ -63,11 +74,13 @@
|
|
|
63
74
|
"test:local": "tsx scripts/run-local-tests.ts",
|
|
64
75
|
"test:coverage": "vitest run --coverage",
|
|
65
76
|
"benchmark": "node --expose-gc --import tsx scripts/benchmark.ts",
|
|
66
|
-
"fixtures:generate": "npm run fixtures:generate:focus && npm run fixtures:generate:gui && npm run fixtures:generate:map && npm run fixtures:generate:event",
|
|
77
|
+
"fixtures:generate": "npm run fixtures:generate:focus && npm run fixtures:generate:gui && npm run fixtures:generate:map && npm run fixtures:generate:event && npm run fixtures:generate:technology && npm run fixtures:generate:probability",
|
|
67
78
|
"fixtures:generate:focus": "tsx scripts/generate-fixtures.ts",
|
|
68
79
|
"fixtures:generate:gui": "tsx scripts/generate-gui-fixture.ts",
|
|
69
80
|
"fixtures:generate:map": "tsx scripts/generate-map-fixture.ts",
|
|
70
81
|
"fixtures:generate:event": "tsx scripts/generate-event-fixture.ts",
|
|
82
|
+
"fixtures:generate:technology": "tsx scripts/generate-technology-fixture.ts",
|
|
83
|
+
"fixtures:generate:probability": "tsx scripts/generate-probability-fixture.ts",
|
|
71
84
|
"fixtures:check": "npm run fixtures:generate && tsx scripts/check-generated.ts fixtures",
|
|
72
85
|
"schemas:generate": "tsx scripts/generate-schemas.ts",
|
|
73
86
|
"schemas:check": "tsx scripts/generate-schemas.ts && tsx scripts/check-generated.ts schemas",
|
|
@@ -88,13 +101,13 @@
|
|
|
88
101
|
"fast-glob": "3.3.3",
|
|
89
102
|
"fontkit": "2.0.4",
|
|
90
103
|
"iconv-lite": "0.7.3",
|
|
91
|
-
"jose": "6.2.
|
|
104
|
+
"jose": "6.2.4",
|
|
92
105
|
"sharp": "0.35.3",
|
|
93
106
|
"zod": "4.4.3"
|
|
94
107
|
},
|
|
95
108
|
"devDependencies": {
|
|
96
109
|
"@eslint/js": "10.0.1",
|
|
97
|
-
"@modelcontextprotocol/inspector": "0.
|
|
110
|
+
"@modelcontextprotocol/inspector": "1.0.0",
|
|
98
111
|
"@types/express": "5.0.6",
|
|
99
112
|
"@types/fontkit": "2.0.9",
|
|
100
113
|
"@types/node": "22.20.1",
|
|
@@ -105,12 +118,17 @@
|
|
|
105
118
|
"eslint": "10.7.0",
|
|
106
119
|
"fast-check": "4.9.0",
|
|
107
120
|
"pixelmatch": "7.2.0",
|
|
108
|
-
"prettier": "3.9.
|
|
109
|
-
"tsx": "4.23.
|
|
121
|
+
"prettier": "3.9.6",
|
|
122
|
+
"tsx": "4.23.1",
|
|
110
123
|
"typescript": "6.0.3",
|
|
111
|
-
"typescript-eslint": "8.
|
|
124
|
+
"typescript-eslint": "8.65.0",
|
|
112
125
|
"vitest": "4.1.10"
|
|
113
126
|
},
|
|
127
|
+
"overrides": {
|
|
128
|
+
"@hono/node-server": "2.0.11",
|
|
129
|
+
"fast-uri": "3.1.4",
|
|
130
|
+
"shell-quote": "1.10.0"
|
|
131
|
+
},
|
|
114
132
|
"publishConfig": {
|
|
115
133
|
"access": "public",
|
|
116
134
|
"provenance": true
|