hoi4-agent-tools 2.2.0 → 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.
Files changed (62) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +30 -21
  3. package/dist/bin/stdio.js +0 -4
  4. package/dist/hoi4_agent_tools/core/clausewitz-evaluation.js +90 -0
  5. package/dist/hoi4_agent_tools/core/engine.js +5 -0
  6. package/dist/hoi4_agent_tools/core/index.js +57 -1
  7. package/dist/hoi4_agent_tools/core/source/ast-path.js +41 -0
  8. package/dist/hoi4_agent_tools/core/source/index.js +1 -0
  9. package/dist/hoi4_agent_tools/event/limits.js +1 -1
  10. package/dist/hoi4_agent_tools/mcp/server/create.js +3 -1
  11. package/dist/hoi4_agent_tools/mcp/tools/probability.js +413 -0
  12. package/dist/hoi4_agent_tools/probability/adapters.js +344 -0
  13. package/dist/hoi4_agent_tools/probability/compare.js +178 -0
  14. package/dist/hoi4_agent_tools/probability/evaluation.js +649 -0
  15. package/dist/hoi4_agent_tools/probability/index.js +13 -0
  16. package/dist/hoi4_agent_tools/probability/model.js +5 -0
  17. package/dist/hoi4_agent_tools/probability/rational.js +145 -0
  18. package/dist/hoi4_agent_tools/probability/render.js +307 -0
  19. package/dist/hoi4_agent_tools/probability/sequence.js +858 -0
  20. package/dist/hoi4_agent_tools/probability/service.js +1168 -0
  21. package/dist/hoi4_agent_tools/probability/simulation.js +545 -0
  22. package/dist/hoi4_agent_tools/probability/source-analysis.js +458 -0
  23. package/dist/hoi4_agent_tools/probability/sweep.js +265 -0
  24. package/dist/hoi4_agent_tools/probability/trigger-evaluator.js +280 -0
  25. package/dist/hoi4_agent_tools/probability/value-evaluator.js +357 -0
  26. package/dist/hoi4_agent_tools/schemas/probability.js +930 -0
  27. package/dist/hoi4_agent_tools/version.js +1 -1
  28. package/docs/README.md +1 -0
  29. package/docs/development.md +2 -0
  30. package/docs/probability.md +80 -0
  31. package/docs/research/probability-adapter-evidence.md +64 -0
  32. package/examples/clients/codex-config.toml +3 -0
  33. package/examples/clients/generic.json +8 -0
  34. package/examples/probability/adaptive-event-pool.json +92 -0
  35. package/examples/probability/adaptive-event-sequence-input.json +57 -0
  36. package/examples/probability/event-mtth-scenarios.json +57 -0
  37. package/examples/probability/event-mtth-simulate-input.json +37 -0
  38. package/examples/probability/focus-route-scenarios.json +61 -0
  39. package/examples/probability/focus-route-sweep-input.json +36 -0
  40. package/package.json +17 -8
  41. package/schemas/configuration.schema.json +747 -0
  42. package/schemas/continuous-focus-palette.schema.json +325 -0
  43. package/schemas/custom-weighted-pool.schema.json +298 -0
  44. package/schemas/event-feature-manifest.schema.json +63 -0
  45. package/schemas/focus-plan.schema.json +927 -0
  46. package/schemas/focus-planning-sidecar.schema.json +407 -0
  47. package/schemas/gui-animation-source.schema.json +176 -0
  48. package/schemas/gui-helper.schema.json +301 -0
  49. package/schemas/gui-scenario.schema.json +298 -0
  50. package/schemas/map-operation.schema.json +2284 -0
  51. package/schemas/operation-result.schema.json +327 -0
  52. package/schemas/probability-analysis-result.schema.json +2211 -0
  53. package/schemas/probability-compare-input.schema.json +664 -0
  54. package/schemas/probability-evaluate-input.schema.json +665 -0
  55. package/schemas/probability-inspect-input.schema.json +97 -0
  56. package/schemas/probability-render-input.schema.json +141 -0
  57. package/schemas/probability-scenario-set.schema.json +430 -0
  58. package/schemas/probability-sequence-input.schema.json +886 -0
  59. package/schemas/probability-simulate-input.schema.json +691 -0
  60. package/schemas/probability-sweep-input.schema.json +702 -0
  61. package/server.json +3 -3
  62. package/dist/hoi4_agent_tools/mcp/tools/chaosx.js +0 -530
@@ -0,0 +1,327 @@
1
+ {
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v2.3.0/schemas/operation-result.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "status": {
7
+ "type": "string",
8
+ "enum": [
9
+ "ok",
10
+ "blocked",
11
+ "error"
12
+ ]
13
+ },
14
+ "code": {
15
+ "type": "string",
16
+ "maxLength": 256
17
+ },
18
+ "workspaceId": {
19
+ "type": "string",
20
+ "maxLength": 64
21
+ },
22
+ "filesScanned": {
23
+ "maxItems": 64,
24
+ "type": "array",
25
+ "items": {
26
+ "$ref": "#/$defs/__schema0"
27
+ }
28
+ },
29
+ "proposedFiles": {
30
+ "maxItems": 64,
31
+ "type": "array",
32
+ "items": {
33
+ "$ref": "#/$defs/__schema1"
34
+ }
35
+ },
36
+ "changedFiles": {
37
+ "maxItems": 64,
38
+ "type": "array",
39
+ "items": {
40
+ "$ref": "#/$defs/__schema2"
41
+ }
42
+ },
43
+ "diagnostics": {
44
+ "maxItems": 20,
45
+ "type": "array",
46
+ "items": {
47
+ "$ref": "#/$defs/__schema3"
48
+ }
49
+ },
50
+ "artifacts": {
51
+ "maxItems": 32,
52
+ "type": "array",
53
+ "items": {
54
+ "$ref": "#/$defs/__schema6"
55
+ }
56
+ },
57
+ "validation": {
58
+ "type": "object",
59
+ "properties": {
60
+ "passed": {
61
+ "type": "boolean"
62
+ },
63
+ "checks": {
64
+ "maxItems": 100,
65
+ "type": "array",
66
+ "items": {
67
+ "$ref": "#/$defs/__schema7"
68
+ }
69
+ }
70
+ },
71
+ "required": [
72
+ "passed",
73
+ "checks"
74
+ ],
75
+ "additionalProperties": false
76
+ },
77
+ "blockers": {
78
+ "maxItems": 20,
79
+ "type": "array",
80
+ "items": {
81
+ "$ref": "#/$defs/__schema8"
82
+ }
83
+ },
84
+ "data": {
85
+ "type": "object",
86
+ "propertyNames": {
87
+ "type": "string",
88
+ "maxLength": 256
89
+ },
90
+ "additionalProperties": {}
91
+ }
92
+ },
93
+ "required": [
94
+ "status",
95
+ "code",
96
+ "workspaceId",
97
+ "filesScanned",
98
+ "proposedFiles",
99
+ "changedFiles",
100
+ "diagnostics",
101
+ "artifacts",
102
+ "validation",
103
+ "blockers",
104
+ "data"
105
+ ],
106
+ "additionalProperties": false,
107
+ "$defs": {
108
+ "__schema0": {
109
+ "type": "string",
110
+ "maxLength": 4096
111
+ },
112
+ "__schema1": {
113
+ "type": "string",
114
+ "maxLength": 1024
115
+ },
116
+ "__schema2": {
117
+ "type": "string",
118
+ "maxLength": 1024
119
+ },
120
+ "__schema3": {
121
+ "type": "object",
122
+ "properties": {
123
+ "code": {
124
+ "type": "string",
125
+ "minLength": 1,
126
+ "maxLength": 256
127
+ },
128
+ "severity": {
129
+ "type": "string",
130
+ "enum": [
131
+ "info",
132
+ "warning",
133
+ "error",
134
+ "blocker"
135
+ ]
136
+ },
137
+ "category": {
138
+ "type": "string",
139
+ "enum": [
140
+ "syntax",
141
+ "reference",
142
+ "layout",
143
+ "design",
144
+ "rendering",
145
+ "security",
146
+ "validation",
147
+ "map",
148
+ "configuration"
149
+ ]
150
+ },
151
+ "message": {
152
+ "type": "string",
153
+ "maxLength": 4096
154
+ },
155
+ "location": {
156
+ "$ref": "#/$defs/__schema4"
157
+ },
158
+ "related": {
159
+ "maxItems": 100,
160
+ "type": "array",
161
+ "items": {
162
+ "$ref": "#/$defs/__schema4"
163
+ }
164
+ },
165
+ "operationId": {
166
+ "type": "string",
167
+ "maxLength": 256
168
+ },
169
+ "details": {
170
+ "type": "object",
171
+ "propertyNames": {
172
+ "type": "string",
173
+ "maxLength": 256
174
+ },
175
+ "additionalProperties": {}
176
+ }
177
+ },
178
+ "required": [
179
+ "code",
180
+ "severity",
181
+ "category",
182
+ "message"
183
+ ],
184
+ "additionalProperties": false
185
+ },
186
+ "__schema4": {
187
+ "type": "object",
188
+ "properties": {
189
+ "path": {
190
+ "type": "string",
191
+ "minLength": 1,
192
+ "maxLength": 4096
193
+ },
194
+ "start": {
195
+ "$ref": "#/$defs/__schema5"
196
+ },
197
+ "end": {
198
+ "$ref": "#/$defs/__schema5"
199
+ },
200
+ "symbol": {
201
+ "type": "string",
202
+ "maxLength": 1024
203
+ }
204
+ },
205
+ "required": [
206
+ "path",
207
+ "start",
208
+ "end"
209
+ ],
210
+ "additionalProperties": false
211
+ },
212
+ "__schema5": {
213
+ "type": "object",
214
+ "properties": {
215
+ "line": {
216
+ "type": "integer",
217
+ "minimum": 1,
218
+ "maximum": 9007199254740991
219
+ },
220
+ "column": {
221
+ "type": "integer",
222
+ "minimum": 1,
223
+ "maximum": 9007199254740991
224
+ },
225
+ "offset": {
226
+ "type": "integer",
227
+ "minimum": 0,
228
+ "maximum": 9007199254740991
229
+ }
230
+ },
231
+ "required": [
232
+ "line",
233
+ "column",
234
+ "offset"
235
+ ],
236
+ "additionalProperties": false
237
+ },
238
+ "__schema6": {
239
+ "type": "object",
240
+ "properties": {
241
+ "uri": {
242
+ "type": "string",
243
+ "maxLength": 4096,
244
+ "format": "uri"
245
+ },
246
+ "name": {
247
+ "type": "string",
248
+ "minLength": 1,
249
+ "maxLength": 255
250
+ },
251
+ "mimeType": {
252
+ "type": "string",
253
+ "minLength": 1,
254
+ "maxLength": 255
255
+ },
256
+ "size": {
257
+ "type": "integer",
258
+ "minimum": 0,
259
+ "maximum": 9007199254740991
260
+ },
261
+ "sha256": {
262
+ "type": "string",
263
+ "pattern": "^[a-f0-9]{64}$"
264
+ },
265
+ "description": {
266
+ "type": "string",
267
+ "maxLength": 4096
268
+ }
269
+ },
270
+ "required": [
271
+ "uri",
272
+ "name",
273
+ "mimeType"
274
+ ],
275
+ "additionalProperties": false
276
+ },
277
+ "__schema7": {
278
+ "type": "object",
279
+ "properties": {
280
+ "id": {
281
+ "type": "string",
282
+ "minLength": 1,
283
+ "maxLength": 256
284
+ },
285
+ "passed": {
286
+ "type": "boolean"
287
+ },
288
+ "message": {
289
+ "type": "string",
290
+ "maxLength": 4096
291
+ }
292
+ },
293
+ "required": [
294
+ "id",
295
+ "passed",
296
+ "message"
297
+ ],
298
+ "additionalProperties": false
299
+ },
300
+ "__schema8": {
301
+ "type": "object",
302
+ "properties": {
303
+ "code": {
304
+ "type": "string",
305
+ "maxLength": 256
306
+ },
307
+ "message": {
308
+ "type": "string",
309
+ "maxLength": 4096
310
+ },
311
+ "details": {
312
+ "type": "object",
313
+ "propertyNames": {
314
+ "type": "string",
315
+ "maxLength": 256
316
+ },
317
+ "additionalProperties": {}
318
+ }
319
+ },
320
+ "required": [
321
+ "code",
322
+ "message"
323
+ ],
324
+ "additionalProperties": false
325
+ }
326
+ }
327
+ }