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,164 @@
1
+ {
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.3.0/schemas/package-check-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
+ "manifest": {
12
+ "type": "object",
13
+ "properties": {
14
+ "schemaVersion": {
15
+ "type": "string",
16
+ "const": "1.0"
17
+ },
18
+ "id": {
19
+ "$ref": "#/$defs/__schema0"
20
+ },
21
+ "definitions": {
22
+ "default": [],
23
+ "maxItems": 2048,
24
+ "type": "array",
25
+ "items": {
26
+ "$ref": "#/$defs/__schema1"
27
+ }
28
+ },
29
+ "calls": {
30
+ "default": [],
31
+ "maxItems": 2048,
32
+ "type": "array",
33
+ "items": {
34
+ "$ref": "#/$defs/__schema2"
35
+ }
36
+ },
37
+ "registrations": {
38
+ "default": [],
39
+ "maxItems": 2048,
40
+ "type": "array",
41
+ "items": {
42
+ "$ref": "#/$defs/__schema3"
43
+ }
44
+ },
45
+ "localisation": {
46
+ "default": [],
47
+ "maxItems": 2048,
48
+ "type": "array",
49
+ "items": {
50
+ "$ref": "#/$defs/__schema0"
51
+ }
52
+ },
53
+ "assets": {
54
+ "default": [],
55
+ "maxItems": 2048,
56
+ "type": "array",
57
+ "items": {
58
+ "$ref": "#/$defs/__schema4"
59
+ }
60
+ },
61
+ "requiredCases": {
62
+ "default": [],
63
+ "maxItems": 512,
64
+ "type": "array",
65
+ "items": {
66
+ "$ref": "#/$defs/__schema5"
67
+ }
68
+ }
69
+ },
70
+ "required": [
71
+ "schemaVersion",
72
+ "id"
73
+ ],
74
+ "additionalProperties": false
75
+ },
76
+ "expectedRevision": {
77
+ "type": "string",
78
+ "pattern": "^[a-f0-9]{64}$"
79
+ },
80
+ "refresh": {
81
+ "default": false,
82
+ "type": "boolean"
83
+ }
84
+ },
85
+ "required": [
86
+ "manifest"
87
+ ],
88
+ "additionalProperties": false,
89
+ "$defs": {
90
+ "__schema0": {
91
+ "type": "string",
92
+ "pattern": "^[A-Za-z0-9_.:-]{1,512}$"
93
+ },
94
+ "__schema1": {
95
+ "type": "object",
96
+ "properties": {
97
+ "kind": {
98
+ "$ref": "#/$defs/__schema0"
99
+ },
100
+ "id": {
101
+ "$ref": "#/$defs/__schema0"
102
+ }
103
+ },
104
+ "required": [
105
+ "kind",
106
+ "id"
107
+ ],
108
+ "additionalProperties": false
109
+ },
110
+ "__schema2": {
111
+ "type": "object",
112
+ "properties": {
113
+ "from": {
114
+ "$ref": "#/$defs/__schema1"
115
+ },
116
+ "to": {
117
+ "$ref": "#/$defs/__schema1"
118
+ }
119
+ },
120
+ "required": [
121
+ "from",
122
+ "to"
123
+ ],
124
+ "additionalProperties": false
125
+ },
126
+ "__schema3": {
127
+ "type": "object",
128
+ "properties": {
129
+ "path": {
130
+ "$ref": "#/$defs/__schema4"
131
+ },
132
+ "token": {
133
+ "$ref": "#/$defs/__schema0"
134
+ }
135
+ },
136
+ "required": [
137
+ "path",
138
+ "token"
139
+ ],
140
+ "additionalProperties": false
141
+ },
142
+ "__schema4": {
143
+ "type": "string",
144
+ "minLength": 1,
145
+ "maxLength": 1024
146
+ },
147
+ "__schema5": {
148
+ "type": "object",
149
+ "properties": {
150
+ "suite": {
151
+ "$ref": "#/$defs/__schema4"
152
+ },
153
+ "caseId": {
154
+ "$ref": "#/$defs/__schema0"
155
+ }
156
+ },
157
+ "required": [
158
+ "suite",
159
+ "caseId"
160
+ ],
161
+ "additionalProperties": false
162
+ }
163
+ }
164
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.3.0/schemas/package-manifest.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "schemaVersion": {
7
+ "type": "string",
8
+ "const": "1.0"
9
+ },
10
+ "id": {
11
+ "$ref": "#/$defs/__schema0"
12
+ },
13
+ "definitions": {
14
+ "default": [],
15
+ "maxItems": 2048,
16
+ "type": "array",
17
+ "items": {
18
+ "$ref": "#/$defs/__schema1"
19
+ }
20
+ },
21
+ "calls": {
22
+ "default": [],
23
+ "maxItems": 2048,
24
+ "type": "array",
25
+ "items": {
26
+ "$ref": "#/$defs/__schema2"
27
+ }
28
+ },
29
+ "registrations": {
30
+ "default": [],
31
+ "maxItems": 2048,
32
+ "type": "array",
33
+ "items": {
34
+ "$ref": "#/$defs/__schema3"
35
+ }
36
+ },
37
+ "localisation": {
38
+ "default": [],
39
+ "maxItems": 2048,
40
+ "type": "array",
41
+ "items": {
42
+ "$ref": "#/$defs/__schema0"
43
+ }
44
+ },
45
+ "assets": {
46
+ "default": [],
47
+ "maxItems": 2048,
48
+ "type": "array",
49
+ "items": {
50
+ "$ref": "#/$defs/__schema4"
51
+ }
52
+ },
53
+ "requiredCases": {
54
+ "default": [],
55
+ "maxItems": 512,
56
+ "type": "array",
57
+ "items": {
58
+ "$ref": "#/$defs/__schema5"
59
+ }
60
+ }
61
+ },
62
+ "required": [
63
+ "schemaVersion",
64
+ "id"
65
+ ],
66
+ "additionalProperties": false,
67
+ "$defs": {
68
+ "__schema0": {
69
+ "type": "string",
70
+ "pattern": "^[A-Za-z0-9_.:-]{1,512}$"
71
+ },
72
+ "__schema1": {
73
+ "type": "object",
74
+ "properties": {
75
+ "kind": {
76
+ "$ref": "#/$defs/__schema0"
77
+ },
78
+ "id": {
79
+ "$ref": "#/$defs/__schema0"
80
+ }
81
+ },
82
+ "required": [
83
+ "kind",
84
+ "id"
85
+ ],
86
+ "additionalProperties": false
87
+ },
88
+ "__schema2": {
89
+ "type": "object",
90
+ "properties": {
91
+ "from": {
92
+ "$ref": "#/$defs/__schema1"
93
+ },
94
+ "to": {
95
+ "$ref": "#/$defs/__schema1"
96
+ }
97
+ },
98
+ "required": [
99
+ "from",
100
+ "to"
101
+ ],
102
+ "additionalProperties": false
103
+ },
104
+ "__schema3": {
105
+ "type": "object",
106
+ "properties": {
107
+ "path": {
108
+ "$ref": "#/$defs/__schema4"
109
+ },
110
+ "token": {
111
+ "$ref": "#/$defs/__schema0"
112
+ }
113
+ },
114
+ "required": [
115
+ "path",
116
+ "token"
117
+ ],
118
+ "additionalProperties": false
119
+ },
120
+ "__schema4": {
121
+ "type": "string",
122
+ "minLength": 1,
123
+ "maxLength": 1024
124
+ },
125
+ "__schema5": {
126
+ "type": "object",
127
+ "properties": {
128
+ "suite": {
129
+ "$ref": "#/$defs/__schema4"
130
+ },
131
+ "caseId": {
132
+ "$ref": "#/$defs/__schema0"
133
+ }
134
+ },
135
+ "required": [
136
+ "suite",
137
+ "caseId"
138
+ ],
139
+ "additionalProperties": false
140
+ }
141
+ }
142
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.1.0/schemas/probability-analysis-result.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.3.0/schemas/probability-analysis-result.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.1.0/schemas/probability-compare-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.3.0/schemas/probability-compare-input.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.1.0/schemas/probability-evaluate-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.3.0/schemas/probability-evaluate-input.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.1.0/schemas/probability-inspect-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.3.0/schemas/probability-inspect-input.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.1.0/schemas/probability-render-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.3.0/schemas/probability-render-input.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.1.0/schemas/probability-scenario-set.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.3.0/schemas/probability-scenario-set.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.1.0/schemas/probability-sequence-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.3.0/schemas/probability-sequence-input.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.1.0/schemas/probability-simulate-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.3.0/schemas/probability-simulate-input.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.1.0/schemas/probability-sweep-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.3.0/schemas/probability-sweep-input.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {