hoi4-agent-tools 3.7.0 → 3.8.1

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 (75) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +59 -57
  3. package/dist/hoi4_agent_tools/core/configuration.js +2 -0
  4. package/dist/hoi4_agent_tools/core/job-store.js +19 -40
  5. package/dist/hoi4_agent_tools/core/job-worker-host.js +57 -8
  6. package/dist/hoi4_agent_tools/core/operation-tasks.js +2 -7
  7. package/dist/hoi4_agent_tools/core/scanner.js +3 -0
  8. package/dist/hoi4_agent_tools/core/shared-request-capacity.js +27 -13
  9. package/dist/hoi4_agent_tools/core/transactions.js +31 -2
  10. package/dist/hoi4_agent_tools/core/windows-sharing.js +42 -0
  11. package/dist/hoi4_agent_tools/core/workspace.js +114 -8
  12. package/dist/hoi4_agent_tools/event/artifact-validation.js +1 -1
  13. package/dist/hoi4_agent_tools/event/service.js +1 -1
  14. package/dist/hoi4_agent_tools/focus/service.js +2 -2
  15. package/dist/hoi4_agent_tools/gui/studio.js +16 -3
  16. package/dist/hoi4_agent_tools/map/model.js +81 -2
  17. package/dist/hoi4_agent_tools/map/service.js +1 -0
  18. package/dist/hoi4_agent_tools/map/validation.js +60 -4
  19. package/dist/hoi4_agent_tools/mcp/tools/reference.js +1 -1
  20. package/dist/hoi4_agent_tools/package-check/service.js +1 -1
  21. package/dist/hoi4_agent_tools/reference/ranking.js +309 -0
  22. package/dist/hoi4_agent_tools/reference/script-validation.js +3 -13
  23. package/dist/hoi4_agent_tools/reference/service.js +152 -116
  24. package/dist/hoi4_agent_tools/reference/source-locate.js +156 -0
  25. package/dist/hoi4_agent_tools/reference/source-lookup.js +37 -6
  26. package/dist/hoi4_agent_tools/reference/suggestions.js +38 -0
  27. package/dist/hoi4_agent_tools/schemas/reference.js +80 -2
  28. package/dist/hoi4_agent_tools/schemas/transaction.js +1 -1
  29. package/dist/hoi4_agent_tools/technology/service.js +1 -1
  30. package/dist/hoi4_agent_tools/version.js +1 -1
  31. package/docs/development.md +6 -0
  32. package/docs/examples.md +3 -3
  33. package/docs/map.md +10 -0
  34. package/docs/reference.md +5 -3
  35. package/docs/research/reference-benchmark.md +39 -0
  36. package/docs/setup.md +15 -0
  37. package/docs/tools.md +37 -37
  38. package/npm-shrinkwrap.json +18 -5
  39. package/package.json +2 -2
  40. package/schemas/configuration.schema.json +95 -88
  41. package/schemas/continuous-focus-palette.schema.json +1 -1
  42. package/schemas/custom-weighted-pool.schema.json +1 -1
  43. package/schemas/decision-inspect-input.schema.json +1 -1
  44. package/schemas/event-feature-manifest.schema.json +1 -1
  45. package/schemas/focus-plan.schema.json +1 -1
  46. package/schemas/focus-planning-sidecar.schema.json +1 -1
  47. package/schemas/gui-animation-source.schema.json +1 -1
  48. package/schemas/gui-helper.schema.json +1 -1
  49. package/schemas/gui-scenario.schema.json +1 -1
  50. package/schemas/helper-expansion-request.schema.json +1 -1
  51. package/schemas/helper-expansion-summary.schema.json +1 -1
  52. package/schemas/impact-inspect-input.schema.json +1 -1
  53. package/schemas/map-operation.schema.json +1 -1
  54. package/schemas/mechanic-test-input.schema.json +1 -1
  55. package/schemas/operation-result.schema.json +1 -1
  56. package/schemas/package-check-input.schema.json +1 -1
  57. package/schemas/package-manifest.schema.json +1 -1
  58. package/schemas/probability-analysis-result.schema.json +1 -1
  59. package/schemas/probability-compare-input.schema.json +1 -1
  60. package/schemas/probability-evaluate-input.schema.json +1 -1
  61. package/schemas/probability-inspect-input.schema.json +1 -1
  62. package/schemas/probability-render-input.schema.json +1 -1
  63. package/schemas/probability-scenario-set.schema.json +1 -1
  64. package/schemas/probability-sequence-input.schema.json +1 -1
  65. package/schemas/probability-simulate-input.schema.json +1 -1
  66. package/schemas/probability-sweep-input.schema.json +1 -1
  67. package/schemas/reference-context-input.schema.json +1 -1
  68. package/schemas/reference-read-input.schema.json +1 -1
  69. package/schemas/reference-search-input.schema.json +1 -1
  70. package/schemas/scenario-suite.schema.json +1 -1
  71. package/schemas/scenario-test-input.schema.json +1 -1
  72. package/schemas/script-validate-input.schema.json +1 -1
  73. package/schemas/shared-scenario.schema.json +1 -1
  74. package/schemas/source-lookup-input.schema.json +113 -50
  75. package/server.json +2 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/package-manifest.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/schemas/package-manifest.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.7.0/schemas/probability-analysis-result.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/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.7.0/schemas/probability-compare-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/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.7.0/schemas/probability-evaluate-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/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.7.0/schemas/probability-inspect-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/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.7.0/schemas/probability-render-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/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.7.0/schemas/probability-scenario-set.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/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.7.0/schemas/probability-sequence-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/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.7.0/schemas/probability-simulate-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/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.7.0/schemas/probability-sweep-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/schemas/probability-sweep-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.7.0/schemas/reference-context-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/schemas/reference-context-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.7.0/schemas/reference-read-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/schemas/reference-read-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.7.0/schemas/reference-search-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/schemas/reference-search-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.7.0/schemas/scenario-suite.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/schemas/scenario-suite.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.7.0/schemas/scenario-test-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/schemas/scenario-test-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.7.0/schemas/script-validate-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/schemas/script-validate-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.7.0/schemas/shared-scenario.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/schemas/shared-scenario.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,92 +1,121 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/source-lookup-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.8.1/schemas/source-lookup-input.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
6
6
  "workspaceId": {
7
+ "$ref": "#/$defs/__schema0"
8
+ },
9
+ "symbol": {
10
+ "$ref": "#/$defs/__schema1"
11
+ },
12
+ "path": {
13
+ "$ref": "#/$defs/__schema2"
14
+ },
15
+ "line": {
16
+ "$ref": "#/$defs/__schema3"
17
+ },
18
+ "column": {
19
+ "$ref": "#/$defs/__schema4"
20
+ },
21
+ "kind": {
22
+ "$ref": "#/$defs/__schema5"
23
+ },
24
+ "includeReferences": {
25
+ "$ref": "#/$defs/__schema6"
26
+ },
27
+ "maxDefinitions": {
28
+ "$ref": "#/$defs/__schema7"
29
+ },
30
+ "maxReferences": {
31
+ "$ref": "#/$defs/__schema8"
32
+ },
33
+ "maxLines": {
34
+ "$ref": "#/$defs/__schema9"
35
+ },
36
+ "keyPath": {
37
+ "$ref": "#/$defs/__schema10"
38
+ },
39
+ "view": {
40
+ "$ref": "#/$defs/__schema12"
41
+ },
42
+ "maxChildren": {
43
+ "$ref": "#/$defs/__schema13"
44
+ },
45
+ "childOffset": {
46
+ "$ref": "#/$defs/__schema14"
47
+ },
48
+ "fromLine": {
49
+ "$ref": "#/$defs/__schema15"
50
+ },
51
+ "fromColumn": {
52
+ "$ref": "#/$defs/__schema16"
53
+ },
54
+ "expectedRevision": {
55
+ "$ref": "#/$defs/__schema17"
56
+ }
57
+ },
58
+ "additionalProperties": false,
59
+ "$defs": {
60
+ "__schema0": {
7
61
  "default": "current",
8
62
  "type": "string",
9
63
  "pattern": "^[a-z][a-z0-9_-]{0,63}$"
10
64
  },
11
- "symbol": {
65
+ "__schema1": {
12
66
  "type": "string",
13
67
  "minLength": 1,
14
68
  "maxLength": 256
15
69
  },
16
- "kind": {
70
+ "__schema2": {
71
+ "type": "string",
72
+ "minLength": 1,
73
+ "maxLength": 4096
74
+ },
75
+ "__schema3": {
76
+ "type": "integer",
77
+ "minimum": 1,
78
+ "maximum": 9007199254740991
79
+ },
80
+ "__schema4": {
81
+ "type": "integer",
82
+ "minimum": 1,
83
+ "maximum": 9007199254740991
84
+ },
85
+ "__schema5": {
17
86
  "type": "string",
18
87
  "pattern": "^[a-z][a-z0-9_]{0,63}$"
19
88
  },
20
- "includeReferences": {
89
+ "__schema6": {
21
90
  "default": true,
22
91
  "type": "boolean"
23
92
  },
24
- "maxDefinitions": {
93
+ "__schema7": {
25
94
  "default": 3,
26
95
  "type": "integer",
27
96
  "minimum": 1,
28
97
  "maximum": 3
29
98
  },
30
- "maxReferences": {
99
+ "__schema8": {
31
100
  "default": 10,
32
101
  "type": "integer",
33
102
  "minimum": 0,
34
103
  "maximum": 20
35
104
  },
36
- "maxLines": {
105
+ "__schema9": {
37
106
  "default": 30,
38
107
  "type": "integer",
39
108
  "minimum": 1,
40
109
  "maximum": 80
41
110
  },
42
- "keyPath": {
111
+ "__schema10": {
43
112
  "maxItems": 24,
44
113
  "type": "array",
45
114
  "items": {
46
- "$ref": "#/$defs/__schema0"
115
+ "$ref": "#/$defs/__schema11"
47
116
  }
48
117
  },
49
- "view": {
50
- "default": "source",
51
- "type": "string",
52
- "enum": [
53
- "source",
54
- "structure"
55
- ]
56
- },
57
- "maxChildren": {
58
- "default": 20,
59
- "type": "integer",
60
- "minimum": 1,
61
- "maximum": 40
62
- },
63
- "childOffset": {
64
- "default": 0,
65
- "type": "integer",
66
- "minimum": 0,
67
- "maximum": 100000
68
- },
69
- "fromLine": {
70
- "type": "integer",
71
- "minimum": 1,
72
- "maximum": 9007199254740991
73
- },
74
- "fromColumn": {
75
- "type": "integer",
76
- "minimum": 1,
77
- "maximum": 9007199254740991
78
- },
79
- "expectedRevision": {
80
- "type": "string",
81
- "pattern": "^[a-f0-9]{64}$"
82
- }
83
- },
84
- "required": [
85
- "symbol"
86
- ],
87
- "additionalProperties": false,
88
- "$defs": {
89
- "__schema0": {
118
+ "__schema11": {
90
119
  "anyOf": [
91
120
  {
92
121
  "type": "object",
@@ -122,6 +151,40 @@
122
151
  "additionalProperties": false
123
152
  }
124
153
  ]
154
+ },
155
+ "__schema12": {
156
+ "default": "source",
157
+ "type": "string",
158
+ "enum": [
159
+ "source",
160
+ "structure"
161
+ ]
162
+ },
163
+ "__schema13": {
164
+ "default": 20,
165
+ "type": "integer",
166
+ "minimum": 1,
167
+ "maximum": 40
168
+ },
169
+ "__schema14": {
170
+ "default": 0,
171
+ "type": "integer",
172
+ "minimum": 0,
173
+ "maximum": 100000
174
+ },
175
+ "__schema15": {
176
+ "type": "integer",
177
+ "minimum": 1,
178
+ "maximum": 9007199254740991
179
+ },
180
+ "__schema16": {
181
+ "type": "integer",
182
+ "minimum": 1,
183
+ "maximum": 9007199254740991
184
+ },
185
+ "__schema17": {
186
+ "type": "string",
187
+ "pattern": "^[a-f0-9]{64}$"
125
188
  }
126
189
  }
127
190
  }
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": "HOI4 modding tools for agents: local references, visual previews, focus trees, interfaces and maps.",
6
- "version": "3.7.0",
6
+ "version": "3.8.1",
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.7.0",
16
+ "version": "3.8.1",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  }