hoi4-agent-tools 3.2.0 → 3.4.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 (99) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +4 -0
  3. package/dist/hoi4_agent_tools/core/analysis-job-operations.js +11 -1
  4. package/dist/hoi4_agent_tools/core/condition-evaluator.js +18 -9
  5. package/dist/hoi4_agent_tools/core/helper-expansion.js +3 -0
  6. package/dist/hoi4_agent_tools/core/job-worker-host.js +3 -0
  7. package/dist/hoi4_agent_tools/core/operation-tasks.js +7 -0
  8. package/dist/hoi4_agent_tools/core/scenario-model.js +85 -0
  9. package/dist/hoi4_agent_tools/event/comparison-selection.js +78 -0
  10. package/dist/hoi4_agent_tools/event/helper-expansion.js +48 -0
  11. package/dist/hoi4_agent_tools/event/operations.js +16 -0
  12. package/dist/hoi4_agent_tools/event/service.js +21 -2
  13. package/dist/hoi4_agent_tools/focus/compact.js +241 -27
  14. package/dist/hoi4_agent_tools/focus/layout.js +119 -8
  15. package/dist/hoi4_agent_tools/focus/render.js +62 -0
  16. package/dist/hoi4_agent_tools/focus/scenario.js +99 -0
  17. package/dist/hoi4_agent_tools/focus/tool-operations.js +30 -4
  18. package/dist/hoi4_agent_tools/gui/assets.js +54 -4
  19. package/dist/hoi4_agent_tools/gui/layout.js +935 -104
  20. package/dist/hoi4_agent_tools/gui/renderer.js +47 -17
  21. package/dist/hoi4_agent_tools/gui/scenario-conditions.js +2 -23
  22. package/dist/hoi4_agent_tools/gui/shader.js +515 -0
  23. package/dist/hoi4_agent_tools/gui/source-graph.js +166 -6
  24. package/dist/hoi4_agent_tools/gui/studio.js +245 -19
  25. package/dist/hoi4_agent_tools/gui/tool-operations.js +9 -0
  26. package/dist/hoi4_agent_tools/gui/validators.js +38 -12
  27. package/dist/hoi4_agent_tools/map/operations.js +70 -1
  28. package/dist/hoi4_agent_tools/map/render.js +70 -1
  29. package/dist/hoi4_agent_tools/map/service.js +30 -6
  30. package/dist/hoi4_agent_tools/map/tool-operations.js +67 -1
  31. package/dist/hoi4_agent_tools/mcp/server/instructions.js +1 -1
  32. package/dist/hoi4_agent_tools/mcp/server/request-lifecycle.js +3 -0
  33. package/dist/hoi4_agent_tools/mcp/tools/analysis.js +90 -0
  34. package/dist/hoi4_agent_tools/mcp/tools/event.js +10 -1
  35. package/dist/hoi4_agent_tools/mcp/tools/focus.js +14 -4
  36. package/dist/hoi4_agent_tools/mcp/tools/gui.js +5 -1
  37. package/dist/hoi4_agent_tools/mcp/tools/map.js +12 -2
  38. package/dist/hoi4_agent_tools/mcp/tools/probability.js +5 -0
  39. package/dist/hoi4_agent_tools/mechanic/assertions.js +112 -0
  40. package/dist/hoi4_agent_tools/mechanic/interpreter.js +619 -0
  41. package/dist/hoi4_agent_tools/mechanic/service.js +145 -0
  42. package/dist/hoi4_agent_tools/mechanic/source.js +89 -0
  43. package/dist/hoi4_agent_tools/package-check/service.js +231 -0
  44. package/dist/hoi4_agent_tools/probability/evaluation.js +6 -1
  45. package/dist/hoi4_agent_tools/probability/operations.js +8 -0
  46. package/dist/hoi4_agent_tools/probability/service.js +33 -12
  47. package/dist/hoi4_agent_tools/probability/source-analysis.js +1 -0
  48. package/dist/hoi4_agent_tools/scenario-suite/service.js +341 -0
  49. package/dist/hoi4_agent_tools/schemas/event.js +8 -0
  50. package/dist/hoi4_agent_tools/schemas/focus-requests.js +40 -1
  51. package/dist/hoi4_agent_tools/schemas/gui-requests.js +8 -0
  52. package/dist/hoi4_agent_tools/schemas/map-requests.js +22 -1
  53. package/dist/hoi4_agent_tools/schemas/scenarios.js +264 -0
  54. package/dist/hoi4_agent_tools/schemas/technology.js +7 -0
  55. package/dist/hoi4_agent_tools/technology/graph.js +25 -10
  56. package/dist/hoi4_agent_tools/technology/render.js +286 -31
  57. package/dist/hoi4_agent_tools/technology/service.js +55 -8
  58. package/dist/hoi4_agent_tools/technology/source-analysis.js +166 -3
  59. package/dist/hoi4_agent_tools/version.js +1 -1
  60. package/docs/README.md +1 -0
  61. package/docs/events.md +3 -1
  62. package/docs/focus.md +10 -0
  63. package/docs/gui.md +49 -3
  64. package/docs/map.md +8 -0
  65. package/docs/mechanics.md +70 -0
  66. package/docs/probability.md +3 -1
  67. package/docs/technology.md +7 -2
  68. package/package.json +2 -1
  69. package/schemas/configuration.schema.json +1 -1
  70. package/schemas/continuous-focus-palette.schema.json +1 -1
  71. package/schemas/custom-weighted-pool.schema.json +1 -1
  72. package/schemas/decision-inspect-input.schema.json +1 -1
  73. package/schemas/event-feature-manifest.schema.json +1 -1
  74. package/schemas/focus-plan.schema.json +1 -1
  75. package/schemas/focus-planning-sidecar.schema.json +1 -1
  76. package/schemas/gui-animation-source.schema.json +1 -1
  77. package/schemas/gui-helper.schema.json +1 -1
  78. package/schemas/gui-scenario.schema.json +1 -1
  79. package/schemas/helper-expansion-request.schema.json +1 -1
  80. package/schemas/helper-expansion-summary.schema.json +1 -1
  81. package/schemas/impact-inspect-input.schema.json +1 -1
  82. package/schemas/map-operation.schema.json +1 -1
  83. package/schemas/mechanic-test-input.schema.json +650 -0
  84. package/schemas/operation-result.schema.json +1 -1
  85. package/schemas/package-check-input.schema.json +164 -0
  86. package/schemas/package-manifest.schema.json +142 -0
  87. package/schemas/probability-analysis-result.schema.json +1 -1
  88. package/schemas/probability-compare-input.schema.json +1 -1
  89. package/schemas/probability-evaluate-input.schema.json +1 -1
  90. package/schemas/probability-inspect-input.schema.json +1 -1
  91. package/schemas/probability-render-input.schema.json +1 -1
  92. package/schemas/probability-scenario-set.schema.json +1 -1
  93. package/schemas/probability-sequence-input.schema.json +1 -1
  94. package/schemas/probability-simulate-input.schema.json +1 -1
  95. package/schemas/probability-sweep-input.schema.json +1 -1
  96. package/schemas/scenario-suite.schema.json +1004 -0
  97. package/schemas/scenario-test-input.schema.json +1057 -0
  98. package/schemas/shared-scenario.schema.json +237 -0
  99. package/server.json +2 -2
@@ -0,0 +1,237 @@
1
+ {
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.4.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
@@ -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, decisions, impact, tech, AI, and MTTH; build focus trees, GUIs, and maps.",
6
- "version": "3.2.0",
6
+ "version": "3.4.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.2.0",
16
+ "version": "3.4.0",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  }