hoi4-agent-tools 3.4.0 → 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.
- package/CHANGELOG.md +27 -0
- package/README.md +26 -18
- package/dist/hoi4_agent_tools/core/condition-evaluator.js +48 -2
- package/dist/hoi4_agent_tools/core/condition-schema.js +18 -0
- package/dist/hoi4_agent_tools/core/configuration.js +10 -0
- package/dist/hoi4_agent_tools/core/domain-scan-patterns.js +9 -1
- package/dist/hoi4_agent_tools/core/impact-semantic.js +11 -4
- package/dist/hoi4_agent_tools/core/index.js +1 -0
- package/dist/hoi4_agent_tools/core/job-worker-host.js +19 -1
- package/dist/hoi4_agent_tools/core/operation-result.js +4 -1
- package/dist/hoi4_agent_tools/core/scanner.js +1 -1
- package/dist/hoi4_agent_tools/core/scenario-model.js +6 -0
- package/dist/hoi4_agent_tools/core/scenario-state.js +3 -0
- package/dist/hoi4_agent_tools/core/workspace.js +13 -1
- package/dist/hoi4_agent_tools/event/graph.js +8 -1
- package/dist/hoi4_agent_tools/event/operations.js +16 -10
- package/dist/hoi4_agent_tools/event/service.js +1 -0
- package/dist/hoi4_agent_tools/event/source-analysis.js +1 -1
- package/dist/hoi4_agent_tools/focus/render.js +10 -2
- package/dist/hoi4_agent_tools/gui/layout.js +58 -11
- package/dist/hoi4_agent_tools/gui/scenario.js +3 -1
- package/dist/hoi4_agent_tools/gui/source-graph.js +4 -1
- package/dist/hoi4_agent_tools/gui/studio.js +32 -10
- package/dist/hoi4_agent_tools/gui/validators.js +3 -0
- package/dist/hoi4_agent_tools/map/model.js +121 -12
- package/dist/hoi4_agent_tools/map/operations.js +80 -7
- package/dist/hoi4_agent_tools/map/service.js +1 -0
- package/dist/hoi4_agent_tools/map/validation.js +38 -1
- package/dist/hoi4_agent_tools/mcp/server/create-modern-operations.js +18 -1
- package/dist/hoi4_agent_tools/mcp/server/create.js +2 -0
- package/dist/hoi4_agent_tools/mcp/server/instructions.js +1 -1
- package/dist/hoi4_agent_tools/mcp/tools/reference.js +60 -0
- package/dist/hoi4_agent_tools/mechanic/interpreter.js +91 -30
- package/dist/hoi4_agent_tools/mechanic/source.js +19 -4
- package/dist/hoi4_agent_tools/probability/service.js +2 -2
- package/dist/hoi4_agent_tools/probability/source-analysis.js +16 -0
- package/dist/hoi4_agent_tools/probability/value-evaluator.js +2 -1
- package/dist/hoi4_agent_tools/reference/lines.js +52 -0
- package/dist/hoi4_agent_tools/reference/operations.js +41 -0
- package/dist/hoi4_agent_tools/reference/service.js +427 -0
- package/dist/hoi4_agent_tools/reference/source-lookup.js +90 -0
- package/dist/hoi4_agent_tools/schemas/analysis.js +2 -0
- package/dist/hoi4_agent_tools/schemas/gui-requests.js +1 -1
- package/dist/hoi4_agent_tools/schemas/probability-requests.js +1 -1
- package/dist/hoi4_agent_tools/schemas/probability.js +26 -2
- package/dist/hoi4_agent_tools/schemas/reference.js +160 -0
- package/dist/hoi4_agent_tools/technology/operations.js +29 -1
- package/dist/hoi4_agent_tools/technology/render.js +11 -5
- package/dist/hoi4_agent_tools/technology/service.js +1 -0
- package/dist/hoi4_agent_tools/version.js +1 -1
- package/docs/README.md +3 -0
- package/docs/events.md +1 -1
- package/docs/gui.md +7 -0
- package/docs/jobs.md +1 -0
- package/docs/map.md +8 -0
- package/docs/mechanics.md +2 -1
- package/docs/probability.md +7 -0
- package/docs/reference.md +32 -0
- package/docs/research/reference-benchmark.md +28 -0
- package/docs/setup.md +6 -0
- package/docs/technology.md +5 -1
- package/examples/clients/codex-config.toml +2 -0
- package/package.json +4 -2
- package/schemas/configuration.schema.json +72 -58
- package/schemas/continuous-focus-palette.schema.json +1 -1
- package/schemas/custom-weighted-pool.schema.json +1 -1
- package/schemas/decision-inspect-input.schema.json +43 -26
- package/schemas/event-feature-manifest.schema.json +1 -1
- package/schemas/focus-plan.schema.json +1 -1
- package/schemas/focus-planning-sidecar.schema.json +1 -1
- package/schemas/gui-animation-source.schema.json +1 -1
- package/schemas/gui-helper.schema.json +1 -1
- package/schemas/gui-scenario.schema.json +102 -75
- package/schemas/helper-expansion-request.schema.json +1 -1
- package/schemas/helper-expansion-summary.schema.json +1 -1
- package/schemas/impact-inspect-input.schema.json +1 -1
- package/schemas/map-operation.schema.json +1 -1
- package/schemas/mechanic-test-input.schema.json +49 -32
- package/schemas/operation-result.schema.json +1 -1
- package/schemas/package-check-input.schema.json +1 -1
- package/schemas/package-manifest.schema.json +1 -1
- package/schemas/probability-analysis-result.schema.json +1 -1
- package/schemas/probability-compare-input.schema.json +160 -131
- package/schemas/probability-evaluate-input.schema.json +161 -132
- package/schemas/probability-inspect-input.schema.json +20 -11
- package/schemas/probability-render-input.schema.json +1 -1
- package/schemas/probability-scenario-set.schema.json +110 -90
- package/schemas/probability-sequence-input.schema.json +154 -134
- package/schemas/probability-simulate-input.schema.json +161 -132
- package/schemas/probability-sweep-input.schema.json +163 -134
- package/schemas/reference-context-input.schema.json +42 -0
- package/schemas/reference-read-input.schema.json +41 -0
- package/schemas/reference-search-input.schema.json +45 -0
- package/schemas/scenario-suite.schema.json +92 -75
- package/schemas/scenario-test-input.schema.json +103 -86
- package/schemas/shared-scenario.schema.json +39 -22
- package/schemas/source-lookup-input.schema.json +61 -0
- package/server.json +2 -2
- package/docs/images/readme/chaos-meter-ingame.png +0 -0
- package/docs/images/readme/chaos-meter-mcp.png +0 -0
- package/docs/images/readme/communist-insurgency-ingame.png +0 -0
- package/docs/images/readme/communist-insurgency-mcp.png +0 -0
- package/docs/images/readme/event-chain-mcp.png +0 -0
- package/docs/images/readme/focus-tree-mcp.png +0 -0
- package/docs/images/readme/map-mcp.png +0 -0
- package/docs/images/readme/probability-mcp.png +0 -0
- package/docs/images/readme/settings-advanced-mcp.png +0 -0
- package/docs/images/readme/settings-events-mcp.png +0 -0
- 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.
|
|
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/
|
|
29
|
+
"$ref": "#/$defs/__schema2"
|
|
21
30
|
},
|
|
22
31
|
"flags": {
|
|
23
32
|
"maxItems": 10000,
|
|
24
33
|
"type": "array",
|
|
25
34
|
"items": {
|
|
26
|
-
"$ref": "#/$defs/
|
|
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/
|
|
52
|
+
"$ref": "#/$defs/__schema7"
|
|
44
53
|
},
|
|
45
54
|
"additionalProperties": {
|
|
46
|
-
"$ref": "#/$defs/
|
|
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/
|
|
79
|
+
"$ref": "#/$defs/__schema10"
|
|
71
80
|
}
|
|
72
81
|
},
|
|
73
82
|
"scopeCatalogs": {
|
|
74
83
|
"type": "object",
|
|
75
84
|
"propertyNames": {
|
|
76
|
-
"$ref": "#/$defs/
|
|
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/
|
|
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/
|
|
127
|
+
"$ref": "#/$defs/__schema3"
|
|
111
128
|
},
|
|
112
129
|
"additionalProperties": {
|
|
113
|
-
"$ref": "#/$defs/
|
|
130
|
+
"$ref": "#/$defs/__schema4"
|
|
114
131
|
}
|
|
115
132
|
},
|
|
116
|
-
"
|
|
133
|
+
"__schema3": {
|
|
117
134
|
"type": "string",
|
|
118
135
|
"minLength": 1,
|
|
119
136
|
"maxLength": 1024
|
|
120
137
|
},
|
|
121
|
-
"
|
|
138
|
+
"__schema4": {
|
|
122
139
|
"anyOf": [
|
|
123
140
|
{
|
|
124
|
-
"$ref": "#/$defs/
|
|
141
|
+
"$ref": "#/$defs/__schema5"
|
|
125
142
|
},
|
|
126
143
|
{
|
|
127
144
|
"maxItems": 10000,
|
|
128
145
|
"type": "array",
|
|
129
146
|
"items": {
|
|
130
|
-
"$ref": "#/$defs/
|
|
147
|
+
"$ref": "#/$defs/__schema5"
|
|
131
148
|
}
|
|
132
149
|
}
|
|
133
150
|
]
|
|
134
151
|
},
|
|
135
|
-
"
|
|
152
|
+
"__schema5": {
|
|
136
153
|
"anyOf": [
|
|
137
154
|
{
|
|
138
155
|
"type": "string",
|
|
@@ -149,17 +166,17 @@
|
|
|
149
166
|
}
|
|
150
167
|
]
|
|
151
168
|
},
|
|
152
|
-
"
|
|
169
|
+
"__schema6": {
|
|
153
170
|
"type": "string",
|
|
154
171
|
"minLength": 1,
|
|
155
172
|
"maxLength": 512
|
|
156
173
|
},
|
|
157
|
-
"
|
|
174
|
+
"__schema7": {
|
|
158
175
|
"type": "string",
|
|
159
176
|
"minLength": 1,
|
|
160
177
|
"maxLength": 128
|
|
161
178
|
},
|
|
162
|
-
"
|
|
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/
|
|
205
|
+
"$ref": "#/$defs/__schema2"
|
|
189
206
|
},
|
|
190
207
|
"flags": {
|
|
191
208
|
"maxItems": 10000,
|
|
192
209
|
"type": "array",
|
|
193
210
|
"items": {
|
|
194
|
-
"$ref": "#/$defs/
|
|
211
|
+
"$ref": "#/$defs/__schema9"
|
|
195
212
|
}
|
|
196
213
|
},
|
|
197
214
|
"eventTargets": {
|
|
@@ -223,12 +240,12 @@
|
|
|
223
240
|
],
|
|
224
241
|
"additionalProperties": false
|
|
225
242
|
},
|
|
226
|
-
"
|
|
243
|
+
"__schema9": {
|
|
227
244
|
"type": "string",
|
|
228
245
|
"minLength": 1,
|
|
229
246
|
"maxLength": 512
|
|
230
247
|
},
|
|
231
|
-
"
|
|
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.
|
|
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.
|
|
16
|
+
"version": "3.5.0",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|