hoi4-agent-tools 3.4.1 → 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.
Files changed (96) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +26 -18
  3. package/dist/hoi4_agent_tools/core/condition-evaluator.js +41 -2
  4. package/dist/hoi4_agent_tools/core/condition-schema.js +18 -0
  5. package/dist/hoi4_agent_tools/core/configuration.js +10 -0
  6. package/dist/hoi4_agent_tools/core/domain-scan-patterns.js +9 -1
  7. package/dist/hoi4_agent_tools/core/impact-semantic.js +11 -4
  8. package/dist/hoi4_agent_tools/core/scanner.js +1 -1
  9. package/dist/hoi4_agent_tools/core/scenario-model.js +6 -0
  10. package/dist/hoi4_agent_tools/core/scenario-state.js +3 -0
  11. package/dist/hoi4_agent_tools/core/workspace.js +13 -1
  12. package/dist/hoi4_agent_tools/event/graph.js +8 -1
  13. package/dist/hoi4_agent_tools/event/service.js +1 -0
  14. package/dist/hoi4_agent_tools/event/source-analysis.js +1 -1
  15. package/dist/hoi4_agent_tools/focus/render.js +10 -2
  16. package/dist/hoi4_agent_tools/gui/layout.js +58 -11
  17. package/dist/hoi4_agent_tools/gui/scenario.js +3 -1
  18. package/dist/hoi4_agent_tools/gui/source-graph.js +4 -1
  19. package/dist/hoi4_agent_tools/gui/studio.js +32 -10
  20. package/dist/hoi4_agent_tools/map/model.js +121 -12
  21. package/dist/hoi4_agent_tools/map/operations.js +80 -7
  22. package/dist/hoi4_agent_tools/map/service.js +1 -0
  23. package/dist/hoi4_agent_tools/map/validation.js +38 -1
  24. package/dist/hoi4_agent_tools/mcp/server/create-modern-operations.js +18 -1
  25. package/dist/hoi4_agent_tools/mcp/server/create.js +2 -0
  26. package/dist/hoi4_agent_tools/mcp/server/instructions.js +1 -1
  27. package/dist/hoi4_agent_tools/mcp/tools/reference.js +60 -0
  28. package/dist/hoi4_agent_tools/probability/service.js +2 -2
  29. package/dist/hoi4_agent_tools/probability/source-analysis.js +16 -0
  30. package/dist/hoi4_agent_tools/probability/value-evaluator.js +2 -1
  31. package/dist/hoi4_agent_tools/reference/lines.js +52 -0
  32. package/dist/hoi4_agent_tools/reference/operations.js +41 -0
  33. package/dist/hoi4_agent_tools/reference/service.js +427 -0
  34. package/dist/hoi4_agent_tools/reference/source-lookup.js +90 -0
  35. package/dist/hoi4_agent_tools/schemas/analysis.js +2 -0
  36. package/dist/hoi4_agent_tools/schemas/gui-requests.js +1 -1
  37. package/dist/hoi4_agent_tools/schemas/probability-requests.js +1 -1
  38. package/dist/hoi4_agent_tools/schemas/probability.js +26 -2
  39. package/dist/hoi4_agent_tools/schemas/reference.js +160 -0
  40. package/dist/hoi4_agent_tools/technology/render.js +9 -4
  41. package/dist/hoi4_agent_tools/version.js +1 -1
  42. package/docs/README.md +3 -0
  43. package/docs/gui.md +6 -0
  44. package/docs/map.md +8 -0
  45. package/docs/probability.md +7 -0
  46. package/docs/reference.md +32 -0
  47. package/docs/research/reference-benchmark.md +28 -0
  48. package/docs/setup.md +6 -0
  49. package/examples/clients/codex-config.toml +2 -0
  50. package/package.json +4 -2
  51. package/schemas/configuration.schema.json +72 -58
  52. package/schemas/continuous-focus-palette.schema.json +1 -1
  53. package/schemas/custom-weighted-pool.schema.json +1 -1
  54. package/schemas/decision-inspect-input.schema.json +43 -26
  55. package/schemas/event-feature-manifest.schema.json +1 -1
  56. package/schemas/focus-plan.schema.json +1 -1
  57. package/schemas/focus-planning-sidecar.schema.json +1 -1
  58. package/schemas/gui-animation-source.schema.json +1 -1
  59. package/schemas/gui-helper.schema.json +1 -1
  60. package/schemas/gui-scenario.schema.json +102 -75
  61. package/schemas/helper-expansion-request.schema.json +1 -1
  62. package/schemas/helper-expansion-summary.schema.json +1 -1
  63. package/schemas/impact-inspect-input.schema.json +1 -1
  64. package/schemas/map-operation.schema.json +1 -1
  65. package/schemas/mechanic-test-input.schema.json +49 -32
  66. package/schemas/operation-result.schema.json +1 -1
  67. package/schemas/package-check-input.schema.json +1 -1
  68. package/schemas/package-manifest.schema.json +1 -1
  69. package/schemas/probability-analysis-result.schema.json +1 -1
  70. package/schemas/probability-compare-input.schema.json +160 -131
  71. package/schemas/probability-evaluate-input.schema.json +161 -132
  72. package/schemas/probability-inspect-input.schema.json +20 -11
  73. package/schemas/probability-render-input.schema.json +1 -1
  74. package/schemas/probability-scenario-set.schema.json +110 -90
  75. package/schemas/probability-sequence-input.schema.json +154 -134
  76. package/schemas/probability-simulate-input.schema.json +161 -132
  77. package/schemas/probability-sweep-input.schema.json +163 -134
  78. package/schemas/reference-context-input.schema.json +42 -0
  79. package/schemas/reference-read-input.schema.json +41 -0
  80. package/schemas/reference-search-input.schema.json +45 -0
  81. package/schemas/scenario-suite.schema.json +92 -75
  82. package/schemas/scenario-test-input.schema.json +103 -86
  83. package/schemas/shared-scenario.schema.json +39 -22
  84. package/schemas/source-lookup-input.schema.json +61 -0
  85. package/server.json +2 -2
  86. package/docs/images/readme/chaos-meter-ingame.png +0 -0
  87. package/docs/images/readme/chaos-meter-mcp.png +0 -0
  88. package/docs/images/readme/communist-insurgency-ingame.png +0 -0
  89. package/docs/images/readme/communist-insurgency-mcp.png +0 -0
  90. package/docs/images/readme/event-chain-mcp.png +0 -0
  91. package/docs/images/readme/focus-tree-mcp.png +0 -0
  92. package/docs/images/readme/map-mcp.png +0 -0
  93. package/docs/images/readme/probability-mcp.png +0 -0
  94. package/docs/images/readme/settings-advanced-mcp.png +0 -0
  95. package/docs/images/readme/settings-events-mcp.png +0 -0
  96. 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.4.1/schemas/shared-scenario.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.5.0/schemas/shared-scenario.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -16,14 +16,23 @@
16
16
  "type": "string",
17
17
  "maxLength": 64
18
18
  },
19
+ "controls": {
20
+ "type": "object",
21
+ "propertyNames": {
22
+ "$ref": "#/$defs/__schema0"
23
+ },
24
+ "additionalProperties": {
25
+ "$ref": "#/$defs/__schema1"
26
+ }
27
+ },
19
28
  "state": {
20
- "$ref": "#/$defs/__schema0"
29
+ "$ref": "#/$defs/__schema2"
21
30
  },
22
31
  "flags": {
23
32
  "maxItems": 10000,
24
33
  "type": "array",
25
34
  "items": {
26
- "$ref": "#/$defs/__schema4"
35
+ "$ref": "#/$defs/__schema6"
27
36
  }
28
37
  },
29
38
  "eventTargets": {
@@ -40,10 +49,10 @@
40
49
  "scopes": {
41
50
  "type": "object",
42
51
  "propertyNames": {
43
- "$ref": "#/$defs/__schema5"
52
+ "$ref": "#/$defs/__schema7"
44
53
  },
45
54
  "additionalProperties": {
46
- "$ref": "#/$defs/__schema6"
55
+ "$ref": "#/$defs/__schema8"
47
56
  }
48
57
  },
49
58
  "candidateOverrides": {
@@ -67,13 +76,13 @@
67
76
  "maxItems": 10000,
68
77
  "type": "array",
69
78
  "items": {
70
- "$ref": "#/$defs/__schema8"
79
+ "$ref": "#/$defs/__schema10"
71
80
  }
72
81
  },
73
82
  "scopeCatalogs": {
74
83
  "type": "object",
75
84
  "propertyNames": {
76
- "$ref": "#/$defs/__schema8"
85
+ "$ref": "#/$defs/__schema10"
77
86
  },
78
87
  "additionalProperties": {
79
88
  "type": "object",
@@ -85,7 +94,7 @@
85
94
  "maxItems": 2048,
86
95
  "type": "array",
87
96
  "items": {
88
- "$ref": "#/$defs/__schema8"
97
+ "$ref": "#/$defs/__schema10"
89
98
  }
90
99
  }
91
100
  },
@@ -105,34 +114,42 @@
105
114
  "additionalProperties": false,
106
115
  "$defs": {
107
116
  "__schema0": {
117
+ "type": "string",
118
+ "pattern": "^[1-9][0-9]{0,8}$"
119
+ },
120
+ "__schema1": {
121
+ "type": "string",
122
+ "pattern": "^[A-Z0-9]{3}$"
123
+ },
124
+ "__schema2": {
108
125
  "type": "object",
109
126
  "propertyNames": {
110
- "$ref": "#/$defs/__schema1"
127
+ "$ref": "#/$defs/__schema3"
111
128
  },
112
129
  "additionalProperties": {
113
- "$ref": "#/$defs/__schema2"
130
+ "$ref": "#/$defs/__schema4"
114
131
  }
115
132
  },
116
- "__schema1": {
133
+ "__schema3": {
117
134
  "type": "string",
118
135
  "minLength": 1,
119
136
  "maxLength": 1024
120
137
  },
121
- "__schema2": {
138
+ "__schema4": {
122
139
  "anyOf": [
123
140
  {
124
- "$ref": "#/$defs/__schema3"
141
+ "$ref": "#/$defs/__schema5"
125
142
  },
126
143
  {
127
144
  "maxItems": 10000,
128
145
  "type": "array",
129
146
  "items": {
130
- "$ref": "#/$defs/__schema3"
147
+ "$ref": "#/$defs/__schema5"
131
148
  }
132
149
  }
133
150
  ]
134
151
  },
135
- "__schema3": {
152
+ "__schema5": {
136
153
  "anyOf": [
137
154
  {
138
155
  "type": "string",
@@ -149,17 +166,17 @@
149
166
  }
150
167
  ]
151
168
  },
152
- "__schema4": {
169
+ "__schema6": {
153
170
  "type": "string",
154
171
  "minLength": 1,
155
172
  "maxLength": 512
156
173
  },
157
- "__schema5": {
174
+ "__schema7": {
158
175
  "type": "string",
159
176
  "minLength": 1,
160
177
  "maxLength": 128
161
178
  },
162
- "__schema6": {
179
+ "__schema8": {
163
180
  "type": "object",
164
181
  "properties": {
165
182
  "id": {
@@ -185,13 +202,13 @@
185
202
  "maxLength": 256
186
203
  },
187
204
  "state": {
188
- "$ref": "#/$defs/__schema0"
205
+ "$ref": "#/$defs/__schema2"
189
206
  },
190
207
  "flags": {
191
208
  "maxItems": 10000,
192
209
  "type": "array",
193
210
  "items": {
194
- "$ref": "#/$defs/__schema7"
211
+ "$ref": "#/$defs/__schema9"
195
212
  }
196
213
  },
197
214
  "eventTargets": {
@@ -223,12 +240,12 @@
223
240
  ],
224
241
  "additionalProperties": false
225
242
  },
226
- "__schema7": {
243
+ "__schema9": {
227
244
  "type": "string",
228
245
  "minLength": 1,
229
246
  "maxLength": 512
230
247
  },
231
- "__schema8": {
248
+ "__schema10": {
232
249
  "type": "string",
233
250
  "minLength": 1,
234
251
  "maxLength": 512
@@ -0,0 +1,61 @@
1
+ {
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.5.0/schemas/source-lookup-input.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "workspaceId": {
7
+ "default": "current",
8
+ "type": "string",
9
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
10
+ },
11
+ "symbol": {
12
+ "type": "string",
13
+ "minLength": 1,
14
+ "maxLength": 256
15
+ },
16
+ "kind": {
17
+ "type": "string",
18
+ "pattern": "^[a-z][a-z0-9_]{0,63}$"
19
+ },
20
+ "includeReferences": {
21
+ "default": true,
22
+ "type": "boolean"
23
+ },
24
+ "maxDefinitions": {
25
+ "default": 3,
26
+ "type": "integer",
27
+ "minimum": 1,
28
+ "maximum": 3
29
+ },
30
+ "maxReferences": {
31
+ "default": 10,
32
+ "type": "integer",
33
+ "minimum": 0,
34
+ "maximum": 20
35
+ },
36
+ "maxLines": {
37
+ "default": 30,
38
+ "type": "integer",
39
+ "minimum": 1,
40
+ "maximum": 80
41
+ },
42
+ "fromLine": {
43
+ "type": "integer",
44
+ "minimum": 1,
45
+ "maximum": 9007199254740991
46
+ },
47
+ "fromColumn": {
48
+ "type": "integer",
49
+ "minimum": 1,
50
+ "maximum": 9007199254740991
51
+ },
52
+ "expectedRevision": {
53
+ "type": "string",
54
+ "pattern": "^[a-f0-9]{64}$"
55
+ }
56
+ },
57
+ "required": [
58
+ "symbol"
59
+ ],
60
+ "additionalProperties": false
61
+ }
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.4.1",
6
+ "version": "3.5.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.4.1",
16
+ "version": "3.5.0",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  }
Binary file