hoi4-agent-tools 3.1.0 → 3.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.
Files changed (74) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +10 -2
  3. package/dist/hoi4_agent_tools/core/analysis-evidence.js +9 -0
  4. package/dist/hoi4_agent_tools/core/analysis-job-operations.js +48 -0
  5. package/dist/hoi4_agent_tools/core/condition-evaluator.js +21 -1
  6. package/dist/hoi4_agent_tools/core/impact-comparison.js +49 -0
  7. package/dist/hoi4_agent_tools/core/impact-graph.js +301 -0
  8. package/dist/hoi4_agent_tools/core/impact-semantic.js +256 -0
  9. package/dist/hoi4_agent_tools/core/job-worker-host.js +5 -0
  10. package/dist/hoi4_agent_tools/core/job-worker.js +2 -0
  11. package/dist/hoi4_agent_tools/core/operation-tasks.js +12 -0
  12. package/dist/hoi4_agent_tools/core/scenario-model.js +85 -0
  13. package/dist/hoi4_agent_tools/core/source-overlay.js +125 -0
  14. package/dist/hoi4_agent_tools/decision/ai.js +104 -0
  15. package/dist/hoi4_agent_tools/decision/comparison.js +106 -0
  16. package/dist/hoi4_agent_tools/decision/cost.js +177 -0
  17. package/dist/hoi4_agent_tools/decision/evaluation.js +256 -0
  18. package/dist/hoi4_agent_tools/decision/lifecycle.js +114 -0
  19. package/dist/hoi4_agent_tools/decision/service.js +172 -0
  20. package/dist/hoi4_agent_tools/decision/source-inventory.js +182 -0
  21. package/dist/hoi4_agent_tools/gui/scenario-conditions.js +2 -23
  22. package/dist/hoi4_agent_tools/impact/scenario-suites.js +74 -0
  23. package/dist/hoi4_agent_tools/impact/service.js +127 -0
  24. package/dist/hoi4_agent_tools/mcp/server/create.js +2 -0
  25. package/dist/hoi4_agent_tools/mcp/server/instructions.js +1 -1
  26. package/dist/hoi4_agent_tools/mcp/server/request-lifecycle.js +5 -0
  27. package/dist/hoi4_agent_tools/mcp/server/task-tool-catalog.js +2 -0
  28. package/dist/hoi4_agent_tools/mcp/tools/analysis.js +155 -0
  29. package/dist/hoi4_agent_tools/mechanic/assertions.js +112 -0
  30. package/dist/hoi4_agent_tools/mechanic/interpreter.js +619 -0
  31. package/dist/hoi4_agent_tools/mechanic/service.js +145 -0
  32. package/dist/hoi4_agent_tools/mechanic/source.js +89 -0
  33. package/dist/hoi4_agent_tools/package-check/service.js +231 -0
  34. package/dist/hoi4_agent_tools/probability/evaluation.js +3 -1
  35. package/dist/hoi4_agent_tools/scenario-suite/service.js +341 -0
  36. package/dist/hoi4_agent_tools/schemas/analysis.js +228 -0
  37. package/dist/hoi4_agent_tools/schemas/scenarios.js +264 -0
  38. package/dist/hoi4_agent_tools/version.js +1 -1
  39. package/docs/README.md +2 -0
  40. package/docs/analysis.md +100 -0
  41. package/docs/jobs.md +2 -1
  42. package/docs/mechanics.md +70 -0
  43. package/package.json +6 -2
  44. package/schemas/configuration.schema.json +1 -1
  45. package/schemas/continuous-focus-palette.schema.json +1 -1
  46. package/schemas/custom-weighted-pool.schema.json +1 -1
  47. package/schemas/decision-inspect-input.schema.json +290 -0
  48. package/schemas/event-feature-manifest.schema.json +1 -1
  49. package/schemas/focus-plan.schema.json +1 -1
  50. package/schemas/focus-planning-sidecar.schema.json +1 -1
  51. package/schemas/gui-animation-source.schema.json +1 -1
  52. package/schemas/gui-helper.schema.json +1 -1
  53. package/schemas/gui-scenario.schema.json +1 -1
  54. package/schemas/helper-expansion-request.schema.json +1 -1
  55. package/schemas/helper-expansion-summary.schema.json +1 -1
  56. package/schemas/impact-inspect-input.schema.json +203 -0
  57. package/schemas/map-operation.schema.json +1 -1
  58. package/schemas/mechanic-test-input.schema.json +650 -0
  59. package/schemas/operation-result.schema.json +1 -1
  60. package/schemas/package-check-input.schema.json +164 -0
  61. package/schemas/package-manifest.schema.json +142 -0
  62. package/schemas/probability-analysis-result.schema.json +1 -1
  63. package/schemas/probability-compare-input.schema.json +1 -1
  64. package/schemas/probability-evaluate-input.schema.json +1 -1
  65. package/schemas/probability-inspect-input.schema.json +1 -1
  66. package/schemas/probability-render-input.schema.json +1 -1
  67. package/schemas/probability-scenario-set.schema.json +1 -1
  68. package/schemas/probability-sequence-input.schema.json +1 -1
  69. package/schemas/probability-simulate-input.schema.json +1 -1
  70. package/schemas/probability-sweep-input.schema.json +1 -1
  71. package/schemas/scenario-suite.schema.json +1004 -0
  72. package/schemas/scenario-test-input.schema.json +1057 -0
  73. package/schemas/shared-scenario.schema.json +237 -0
  74. package/server.json +3 -3
@@ -0,0 +1,237 @@
1
+ {
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.3.0/schemas/shared-scenario.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "id": {
7
+ "type": "string",
8
+ "minLength": 1,
9
+ "maxLength": 512
10
+ },
11
+ "actor": {
12
+ "type": "string",
13
+ "maxLength": 256
14
+ },
15
+ "date": {
16
+ "type": "string",
17
+ "maxLength": 64
18
+ },
19
+ "state": {
20
+ "$ref": "#/$defs/__schema0"
21
+ },
22
+ "flags": {
23
+ "maxItems": 10000,
24
+ "type": "array",
25
+ "items": {
26
+ "$ref": "#/$defs/__schema4"
27
+ }
28
+ },
29
+ "eventTargets": {
30
+ "type": "object",
31
+ "propertyNames": {
32
+ "type": "string",
33
+ "maxLength": 512
34
+ },
35
+ "additionalProperties": {
36
+ "type": "string",
37
+ "maxLength": 512
38
+ }
39
+ },
40
+ "scopes": {
41
+ "type": "object",
42
+ "propertyNames": {
43
+ "$ref": "#/$defs/__schema5"
44
+ },
45
+ "additionalProperties": {
46
+ "$ref": "#/$defs/__schema6"
47
+ }
48
+ },
49
+ "candidateOverrides": {
50
+ "type": "object",
51
+ "propertyNames": {
52
+ "type": "string",
53
+ "maxLength": 512
54
+ },
55
+ "additionalProperties": {
56
+ "type": "boolean"
57
+ }
58
+ },
59
+ "closedFlags": {
60
+ "type": "boolean"
61
+ },
62
+ "schemaVersion": {
63
+ "type": "string",
64
+ "const": "1.0"
65
+ },
66
+ "globalFlags": {
67
+ "maxItems": 10000,
68
+ "type": "array",
69
+ "items": {
70
+ "$ref": "#/$defs/__schema8"
71
+ }
72
+ },
73
+ "scopeCatalogs": {
74
+ "type": "object",
75
+ "propertyNames": {
76
+ "$ref": "#/$defs/__schema8"
77
+ },
78
+ "additionalProperties": {
79
+ "type": "object",
80
+ "properties": {
81
+ "complete": {
82
+ "type": "boolean"
83
+ },
84
+ "members": {
85
+ "maxItems": 2048,
86
+ "type": "array",
87
+ "items": {
88
+ "$ref": "#/$defs/__schema8"
89
+ }
90
+ }
91
+ },
92
+ "required": [
93
+ "complete",
94
+ "members"
95
+ ],
96
+ "additionalProperties": false
97
+ }
98
+ }
99
+ },
100
+ "required": [
101
+ "id",
102
+ "state",
103
+ "schemaVersion"
104
+ ],
105
+ "additionalProperties": false,
106
+ "$defs": {
107
+ "__schema0": {
108
+ "type": "object",
109
+ "propertyNames": {
110
+ "$ref": "#/$defs/__schema1"
111
+ },
112
+ "additionalProperties": {
113
+ "$ref": "#/$defs/__schema2"
114
+ }
115
+ },
116
+ "__schema1": {
117
+ "type": "string",
118
+ "minLength": 1,
119
+ "maxLength": 1024
120
+ },
121
+ "__schema2": {
122
+ "anyOf": [
123
+ {
124
+ "$ref": "#/$defs/__schema3"
125
+ },
126
+ {
127
+ "maxItems": 10000,
128
+ "type": "array",
129
+ "items": {
130
+ "$ref": "#/$defs/__schema3"
131
+ }
132
+ }
133
+ ]
134
+ },
135
+ "__schema3": {
136
+ "anyOf": [
137
+ {
138
+ "type": "string",
139
+ "maxLength": 4096
140
+ },
141
+ {
142
+ "type": "number"
143
+ },
144
+ {
145
+ "type": "boolean"
146
+ },
147
+ {
148
+ "type": "null"
149
+ }
150
+ ]
151
+ },
152
+ "__schema4": {
153
+ "type": "string",
154
+ "minLength": 1,
155
+ "maxLength": 512
156
+ },
157
+ "__schema5": {
158
+ "type": "string",
159
+ "minLength": 1,
160
+ "maxLength": 128
161
+ },
162
+ "__schema6": {
163
+ "type": "object",
164
+ "properties": {
165
+ "id": {
166
+ "type": "string",
167
+ "minLength": 1,
168
+ "maxLength": 512
169
+ },
170
+ "type": {
171
+ "type": "string",
172
+ "enum": [
173
+ "country",
174
+ "state",
175
+ "character",
176
+ "unit_leader",
177
+ "operative",
178
+ "strategic_region",
179
+ "province",
180
+ "unknown"
181
+ ]
182
+ },
183
+ "actor": {
184
+ "type": "string",
185
+ "maxLength": 256
186
+ },
187
+ "state": {
188
+ "$ref": "#/$defs/__schema0"
189
+ },
190
+ "flags": {
191
+ "maxItems": 10000,
192
+ "type": "array",
193
+ "items": {
194
+ "$ref": "#/$defs/__schema7"
195
+ }
196
+ },
197
+ "eventTargets": {
198
+ "type": "object",
199
+ "propertyNames": {
200
+ "type": "string",
201
+ "maxLength": 512
202
+ },
203
+ "additionalProperties": {
204
+ "type": "string",
205
+ "maxLength": 512
206
+ }
207
+ },
208
+ "weight": {
209
+ "anyOf": [
210
+ {
211
+ "type": "number"
212
+ },
213
+ {
214
+ "type": "string",
215
+ "maxLength": 1024
216
+ }
217
+ ]
218
+ }
219
+ },
220
+ "required": [
221
+ "id",
222
+ "state"
223
+ ],
224
+ "additionalProperties": false
225
+ },
226
+ "__schema7": {
227
+ "type": "string",
228
+ "minLength": 1,
229
+ "maxLength": 512
230
+ },
231
+ "__schema8": {
232
+ "type": "string",
233
+ "minLength": 1,
234
+ "maxLength": 512
235
+ }
236
+ }
237
+ }
package/server.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.klimPaskov/hoi4-agent-tools",
4
4
  "title": "HOI4 Agent Tools",
5
- "description": "Analyze HOI4 events, tech trees, AI weights, and MTTH; build focus trees, GUIs, and maps.",
6
- "version": "3.1.0",
5
+ "description": "Analyze HOI4 events, decisions, impact, tech, AI, and MTTH; build focus trees, GUIs, and maps.",
6
+ "version": "3.3.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": "3.1.0",
16
+ "version": "3.3.0",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  }