hoi4-agent-tools 3.6.0 → 3.7.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 (66) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +122 -28
  3. package/dist/hoi4_agent_tools/core/engine.js +7 -7
  4. package/dist/hoi4_agent_tools/core/file-glob.js +164 -0
  5. package/dist/hoi4_agent_tools/core/index-segments.js +4 -0
  6. package/dist/hoi4_agent_tools/core/job-operation-registration.js +31 -0
  7. package/dist/hoi4_agent_tools/core/job-worker-host.js +27 -11
  8. package/dist/hoi4_agent_tools/core/job-worker.js +8 -16
  9. package/dist/hoi4_agent_tools/core/persistent-analysis-cache.js +37 -6
  10. package/dist/hoi4_agent_tools/core/scanner.js +133 -47
  11. package/dist/hoi4_agent_tools/core/source/cache.js +4 -0
  12. package/dist/hoi4_agent_tools/map/service.js +2 -2
  13. package/dist/hoi4_agent_tools/mcp/tools/reference.js +10 -1
  14. package/dist/hoi4_agent_tools/reference/lines.js +12 -0
  15. package/dist/hoi4_agent_tools/reference/operations.js +45 -2
  16. package/dist/hoi4_agent_tools/reference/script-validation.js +277 -0
  17. package/dist/hoi4_agent_tools/reference/service.js +139 -67
  18. package/dist/hoi4_agent_tools/reference/source-lookup.js +91 -15
  19. package/dist/hoi4_agent_tools/reference/source-navigation.js +130 -0
  20. package/dist/hoi4_agent_tools/schemas/reference.js +55 -0
  21. package/dist/hoi4_agent_tools/schemas/script-validation.js +69 -0
  22. package/dist/hoi4_agent_tools/version.js +1 -1
  23. package/docs/README.md +1 -0
  24. package/docs/examples.md +1 -11
  25. package/docs/gui.md +1 -15
  26. package/docs/reference.md +43 -2
  27. package/docs/research/reference-benchmark.md +41 -0
  28. package/docs/tools.md +37 -36
  29. package/npm-shrinkwrap.json +7088 -0
  30. package/package.json +7 -6
  31. package/schemas/configuration.schema.json +1 -1
  32. package/schemas/continuous-focus-palette.schema.json +1 -1
  33. package/schemas/custom-weighted-pool.schema.json +1 -1
  34. package/schemas/decision-inspect-input.schema.json +1 -1
  35. package/schemas/event-feature-manifest.schema.json +1 -1
  36. package/schemas/focus-plan.schema.json +1 -1
  37. package/schemas/focus-planning-sidecar.schema.json +1 -1
  38. package/schemas/gui-animation-source.schema.json +1 -1
  39. package/schemas/gui-helper.schema.json +1 -1
  40. package/schemas/gui-scenario.schema.json +1 -1
  41. package/schemas/helper-expansion-request.schema.json +1 -1
  42. package/schemas/helper-expansion-summary.schema.json +1 -1
  43. package/schemas/impact-inspect-input.schema.json +1 -1
  44. package/schemas/map-operation.schema.json +1 -1
  45. package/schemas/mechanic-test-input.schema.json +1 -1
  46. package/schemas/operation-result.schema.json +1 -1
  47. package/schemas/package-check-input.schema.json +1 -1
  48. package/schemas/package-manifest.schema.json +1 -1
  49. package/schemas/probability-analysis-result.schema.json +1 -1
  50. package/schemas/probability-compare-input.schema.json +1 -1
  51. package/schemas/probability-evaluate-input.schema.json +1 -1
  52. package/schemas/probability-inspect-input.schema.json +1 -1
  53. package/schemas/probability-render-input.schema.json +1 -1
  54. package/schemas/probability-scenario-set.schema.json +1 -1
  55. package/schemas/probability-sequence-input.schema.json +1 -1
  56. package/schemas/probability-simulate-input.schema.json +1 -1
  57. package/schemas/probability-sweep-input.schema.json +1 -1
  58. package/schemas/reference-context-input.schema.json +1 -1
  59. package/schemas/reference-read-input.schema.json +9 -1
  60. package/schemas/reference-search-input.schema.json +1 -1
  61. package/schemas/scenario-suite.schema.json +1 -1
  62. package/schemas/scenario-test-input.schema.json +1 -1
  63. package/schemas/script-validate-input.schema.json +92 -0
  64. package/schemas/shared-scenario.schema.json +1 -1
  65. package/schemas/source-lookup-input.schema.json +68 -2
  66. package/server.json +2 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hoi4-agent-tools",
3
3
  "mcpName": "io.github.klimPaskov/hoi4-agent-tools",
4
- "version": "3.6.0",
4
+ "version": "3.7.0",
5
5
  "description": "HOI4 modding tools for agents: local references, visual previews, focus trees, interfaces and maps.",
6
6
  "type": "module",
7
7
  "license": "Apache-2.0",
@@ -64,7 +64,8 @@
64
64
  "README.md",
65
65
  "CHANGELOG.md",
66
66
  "LICENSE",
67
- "SECURITY.md"
67
+ "SECURITY.md",
68
+ "npm-shrinkwrap.json"
68
69
  ],
69
70
  "bin": {
70
71
  "hoi4-agent-tools": "./dist/bin/stdio.js",
@@ -114,8 +115,8 @@
114
115
  "@modelcontextprotocol/sdk": "1.30.0",
115
116
  "@modelcontextprotocol/server": "2.0.0",
116
117
  "express": "5.2.1",
117
- "fast-glob": "3.3.3",
118
118
  "fontkit": "2.0.4",
119
+ "glob": "13.0.6",
119
120
  "iconv-lite": "0.7.3",
120
121
  "jose": "6.2.8",
121
122
  "sharp": "0.35.4",
@@ -143,12 +144,12 @@
143
144
  },
144
145
  "overrides": {
145
146
  "@hono/node-server": "2.1.0",
146
- "brace-expansion": "5.0.9",
147
- "fast-uri": "3.1.7",
147
+ "brace-expansion": "5.0.12",
148
+ "fast-uri": "3.1.8",
148
149
  "qs": "6.16.0",
149
150
  "hono": "4.13.8",
150
151
  "nanoid": "3.3.18",
151
- "ip-address": "10.4.0",
152
+ "ip-address": "10.7.3",
152
153
  "postcss": "8.5.26",
153
154
  "shell-quote": "1.10.0"
154
155
  },
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.6.0/schemas/configuration.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/configuration.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.6.0/schemas/continuous-focus-palette.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/continuous-focus-palette.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.6.0/schemas/custom-weighted-pool.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/custom-weighted-pool.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.6.0/schemas/decision-inspect-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/decision-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.6.0/schemas/event-feature-manifest.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/event-feature-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.6.0/schemas/focus-plan.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/focus-plan.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.6.0/schemas/focus-planning-sidecar.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/focus-planning-sidecar.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.6.0/schemas/gui-animation-source.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/gui-animation-source.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.6.0/schemas/gui-helper.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/gui-helper.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.6.0/schemas/gui-scenario.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/gui-scenario.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.6.0/schemas/helper-expansion-request.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/helper-expansion-request.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.6.0/schemas/helper-expansion-summary.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/helper-expansion-summary.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.6.0/schemas/impact-inspect-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/impact-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.6.0/schemas/map-operation.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/map-operation.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "oneOf": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.6.0/schemas/mechanic-test-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/mechanic-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.6.0/schemas/operation-result.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/operation-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.6.0/schemas/package-check-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/package-check-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.6.0/schemas/package-manifest.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/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.6.0/schemas/probability-analysis-result.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.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.6.0/schemas/probability-compare-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.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.6.0/schemas/probability-evaluate-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.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.6.0/schemas/probability-inspect-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.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.6.0/schemas/probability-render-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.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.6.0/schemas/probability-scenario-set.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.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.6.0/schemas/probability-sequence-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.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.6.0/schemas/probability-simulate-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.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.6.0/schemas/probability-sweep-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.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": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.6.0/schemas/reference-context-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/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.6.0/schemas/reference-read-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/reference-read-input.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -16,6 +16,14 @@
16
16
  "type": "string",
17
17
  "pattern": "^[a-f0-9]{64}$"
18
18
  },
19
+ "source": {
20
+ "type": "string",
21
+ "enum": [
22
+ "game_doc",
23
+ "wiki",
24
+ "script_doc"
25
+ ]
26
+ },
19
27
  "startLine": {
20
28
  "type": "integer",
21
29
  "minimum": 1,
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.6.0/schemas/reference-search-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/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.6.0/schemas/scenario-suite.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/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.6.0/schemas/scenario-test-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/scenario-test-input.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -0,0 +1,92 @@
1
+ {
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/script-validate-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
+ "source": {
12
+ "type": "string",
13
+ "minLength": 1,
14
+ "maxLength": 64000
15
+ },
16
+ "kind": {
17
+ "type": "string",
18
+ "enum": [
19
+ "effect",
20
+ "trigger"
21
+ ]
22
+ },
23
+ "scope": {
24
+ "$ref": "#/$defs/__schema0"
25
+ },
26
+ "documentation": {
27
+ "default": "game_doc",
28
+ "type": "string",
29
+ "enum": [
30
+ "game_doc",
31
+ "script_doc"
32
+ ]
33
+ },
34
+ "bindings": {
35
+ "default": [],
36
+ "maxItems": 16,
37
+ "type": "array",
38
+ "items": {
39
+ "$ref": "#/$defs/__schema1"
40
+ }
41
+ },
42
+ "limit": {
43
+ "default": 12,
44
+ "type": "integer",
45
+ "minimum": 1,
46
+ "maximum": 32
47
+ }
48
+ },
49
+ "required": [
50
+ "source",
51
+ "kind",
52
+ "scope"
53
+ ],
54
+ "additionalProperties": false,
55
+ "$defs": {
56
+ "__schema0": {
57
+ "type": "string",
58
+ "enum": [
59
+ "country",
60
+ "state",
61
+ "character",
62
+ "combatant",
63
+ "ace",
64
+ "strategic_region",
65
+ "operation",
66
+ "industrial_org",
67
+ "purchase_contract",
68
+ "raid_instance",
69
+ "special_project",
70
+ "faction"
71
+ ]
72
+ },
73
+ "__schema1": {
74
+ "type": "object",
75
+ "properties": {
76
+ "name": {
77
+ "type": "string",
78
+ "minLength": 1,
79
+ "maxLength": 256
80
+ },
81
+ "scope": {
82
+ "$ref": "#/$defs/__schema0"
83
+ }
84
+ },
85
+ "required": [
86
+ "name",
87
+ "scope"
88
+ ],
89
+ "additionalProperties": false
90
+ }
91
+ }
92
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.6.0/schemas/shared-scenario.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/shared-scenario.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.6.0/schemas/source-lookup-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v3.7.0/schemas/source-lookup-input.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -39,6 +39,33 @@
39
39
  "minimum": 1,
40
40
  "maximum": 80
41
41
  },
42
+ "keyPath": {
43
+ "maxItems": 24,
44
+ "type": "array",
45
+ "items": {
46
+ "$ref": "#/$defs/__schema0"
47
+ }
48
+ },
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
+ },
42
69
  "fromLine": {
43
70
  "type": "integer",
44
71
  "minimum": 1,
@@ -57,5 +84,44 @@
57
84
  "required": [
58
85
  "symbol"
59
86
  ],
60
- "additionalProperties": false
87
+ "additionalProperties": false,
88
+ "$defs": {
89
+ "__schema0": {
90
+ "anyOf": [
91
+ {
92
+ "type": "object",
93
+ "properties": {
94
+ "key": {
95
+ "type": "string",
96
+ "minLength": 1,
97
+ "maxLength": 1024
98
+ },
99
+ "occurrence": {
100
+ "type": "integer",
101
+ "minimum": 0,
102
+ "maximum": 100000
103
+ }
104
+ },
105
+ "required": [
106
+ "key"
107
+ ],
108
+ "additionalProperties": false
109
+ },
110
+ {
111
+ "type": "object",
112
+ "properties": {
113
+ "index": {
114
+ "type": "integer",
115
+ "minimum": 0,
116
+ "maximum": 100000
117
+ }
118
+ },
119
+ "required": [
120
+ "index"
121
+ ],
122
+ "additionalProperties": false
123
+ }
124
+ ]
125
+ }
126
+ }
61
127
  }
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.6.0",
6
+ "version": "3.7.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.6.0",
16
+ "version": "3.7.0",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  }