hoi4-agent-tools 4.22.0 → 4.22.2
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 +13 -0
- package/README.md +2 -2
- package/dist/hoi4_agent_tools/core/bounded-source.js +1 -1
- package/dist/hoi4_agent_tools/core/engine-client.js +3 -1
- package/dist/hoi4_agent_tools/core/image-diff.js +1 -1
- package/dist/hoi4_agent_tools/core/lazy-native.js +26 -0
- package/dist/hoi4_agent_tools/core/svg-text.js +1 -1
- package/dist/hoi4_agent_tools/event/render.js +1 -1
- package/dist/hoi4_agent_tools/focus/continuous-render.js +1 -1
- package/dist/hoi4_agent_tools/focus/game-view-output.js +1 -1
- package/dist/hoi4_agent_tools/focus/limits.js +3 -0
- package/dist/hoi4_agent_tools/focus/quality/schematic.js +1 -1
- package/dist/hoi4_agent_tools/focus/render.js +3 -3
- package/dist/hoi4_agent_tools/gui/assets.js +2 -2
- package/dist/hoi4_agent_tools/gui/limits.js +2 -0
- package/dist/hoi4_agent_tools/gui/renderer.js +1 -1
- package/dist/hoi4_agent_tools/gui/studio.js +34 -4
- package/dist/hoi4_agent_tools/map/geography/preview.js +1 -1
- package/dist/hoi4_agent_tools/map/reference-import.js +1 -1
- package/dist/hoi4_agent_tools/map/reference-labels.js +1 -1
- package/dist/hoi4_agent_tools/map/reference-preparation.js +1 -1
- package/dist/hoi4_agent_tools/map/reference-world.js +1 -1
- package/dist/hoi4_agent_tools/map/render.js +1 -1
- package/dist/hoi4_agent_tools/map/world-preview.js +1 -1
- package/dist/hoi4_agent_tools/mcp/tools/focus.js +3 -2
- package/dist/hoi4_agent_tools/probability/render.js +1 -1
- package/dist/hoi4_agent_tools/reference/known-mistakes.js +65 -0
- package/dist/hoi4_agent_tools/reference/known-mistakes.json +19 -0
- package/dist/hoi4_agent_tools/reference/operations.js +15 -2
- package/dist/hoi4_agent_tools/schemas/focus-requests.js +1 -1
- package/dist/hoi4_agent_tools/schemas/gui-requests.js +2 -1
- package/dist/hoi4_agent_tools/technology/render.js +1 -1
- package/dist/hoi4_agent_tools/version.js +1 -1
- package/docs/focus.md +1 -1
- package/docs/reference.md +10 -9
- package/docs/setup.md +12 -1
- package/engine/bin/darwin-arm64/hoi4-engine +0 -0
- package/engine/bin/darwin-x64/hoi4-engine +0 -0
- package/engine/bin/linux-arm64/hoi4-engine +0 -0
- package/engine/bin/linux-x64/hoi4-engine +0 -0
- package/engine/bin/manifest.json +13 -8
- package/engine/bin/win32-x64/hoi4-engine.exe +0 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/schemas/configuration.schema.json +1 -1
- 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 +1 -1
- package/schemas/error-log-input.schema.json +1 -1
- 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/geography-model.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 +1 -1
- 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 +1 -1
- package/schemas/mod-index-input.schema.json +1 -1
- 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 +1 -1
- package/schemas/probability-evaluate-input.schema.json +1 -1
- package/schemas/probability-inspect-input.schema.json +1 -1
- package/schemas/probability-render-input.schema.json +1 -1
- package/schemas/probability-scenario-set.schema.json +1 -1
- package/schemas/probability-sequence-input.schema.json +1 -1
- package/schemas/probability-simulate-input.schema.json +1 -1
- package/schemas/probability-sweep-input.schema.json +1 -1
- package/schemas/reference-context-input.schema.json +1 -1
- package/schemas/reference-read-input.schema.json +1 -1
- package/schemas/reference-search-input.schema.json +1 -1
- package/schemas/reference-sheets.schema.json +1 -1
- package/schemas/scenario-suite.schema.json +1 -1
- package/schemas/scenario-test-input.schema.json +1 -1
- package/schemas/script-validate-input.schema.json +1 -1
- package/schemas/shared-scenario.schema.json +1 -1
- package/schemas/source-lookup-input.schema.json +1 -1
- package/server.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 4.22.2 - 2026-12-05
|
|
6
|
+
|
|
7
|
+
- Fix `hoi4.gui_render` answering `ok` with a flat empty picture when `windowName` names no window, for example the name of a `.gui` file such as `frontendmainview`. It now refuses with `GUI_WINDOW_NOT_FOUND` and writes no artifact, as `hoi4.gui_inspect` already did. When the name is a `.gui` file name, the refusal lists the windows that file defines (`windowsInFile`). 4.21.0, 4.22.0 and 4.22.1 all had the fault. Unknown focus and event ids were already refused (`FOCUS_TREE_NOT_FOUND`, `EVENT_NOT_FOUND`).
|
|
8
|
+
|
|
9
|
+
## 4.22.1 - 2026-12-05
|
|
10
|
+
|
|
11
|
+
- Releasing guide: removed the one-off 4.0.0 cut-over steps, which named an old version, a script that does not exist and a local folder.
|
|
12
|
+
- Fix the stdio server taking 4 to 14 s to answer `initialize` on a loaded Windows machine, which made Claude Code show it as failed. The image library (`sharp`, with its native code), the font library (`fontkit`) and the focus tool implementations were loaded before the first message was read. They load on the first call that needs them now, and the request schemas no longer import the renderers for their limits. The startup loads 242 module files instead of 340. Measured on the same Windows machine at 100% CPU, 4.22.0 answered in 6.8 to 9.4 s and this release in 1.2 to 4.5 s.
|
|
13
|
+
- Fix `hoi4.focus_render`'s game view drawing no line between mutually exclusive focuses (#355). It drew only the middle mark. Pairs more than two columns apart on one row now get the game's grey line (`GFX_focus_exclusive_line1`), an arrow at each end and the mark in the middle. They are placed by the `national_focus_exclusive_item` container of the loaded `nationalfocusview.gui`, and a mod's own sprites come before the game's. The report counts `exclusiveLines` and `exclusivePairsWithoutLine`. Limits: the game sets the line's width in code, so the render mirrors the line's left end at its right end. No in-game capture of a pair has confirmed this yet. The red line (`link2`) is not drawn, because the game's code picks it in a state a static render cannot know. Pairs on different rows are counted in the report and not drawn.
|
|
14
|
+
- Docs: the README no longer sends every user to the `all` profile. It names the profile for each kind of work (`core,map` for the world map, `core,advanced` for the editors), and the setup guide lists the measured size of each tool list, from 24 KB for `core` to 112 KB for `all`.
|
|
15
|
+
- `hoi4.script_validate` now flags scripted effects and triggers that take arguments (issue 338): a `$NAME$` placeholder in a definition, and a call of a helper the mod defines written with a block, such as `kb_add = { AMOUNT = 12 }`. The game rejects both at load with `Unknown effect-type`. The finding is `KNOWN_MISTAKE_SCRIPTED_ARGUMENTS` and says to set a variable before the call and read it in the body.
|
|
16
|
+
- The package now ships the `hoi4-engine` binary for Intel Macs (`darwin-x64`), built natively on an Intel macOS runner and checked there by the same `--version` run as the other platforms. The full test suite does not run on an Intel Mac; the evidence is that run and the bundle check. Before, the tools that need the engine answered `ENGINE_UNAVAILABLE` on an Intel Mac.
|
|
17
|
+
|
|
5
18
|
## 4.22.0 - 2026-12-04
|
|
6
19
|
|
|
7
20
|
- Updated `cross-spawn`, `@hono/node-server`, `glob` and other locked dependencies to fixed versions, so the `npm audit --omit=dev --audit-level=high` gate passes again (critical cross-spawn advisories GHSA-ghv9-86vm-4v8m and GHSA-m6qr-m48x-3xhh).
|
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ You describe what you want; the agent picks the right tools.
|
|
|
42
42
|
## Quick start
|
|
43
43
|
|
|
44
44
|
1. Install [Node.js](https://nodejs.org/) 22 (22.19 or later) or 24, and keep Hearts of Iron IV installed for vanilla files, artwork and fonts.
|
|
45
|
-
The package ships its analysis engine for Windows x64, Linux x64 and arm64, and macOS on Apple silicon. On another platform, such as
|
|
45
|
+
The package ships its analysis engine for Windows x64, Linux x64 and arm64, and macOS on Apple silicon and Intel. On another platform, such as Windows on Arm, the tools that need the engine say so and how to build it; set `HOI4_ENGINE` to that build.
|
|
46
46
|
2. Install the server:
|
|
47
47
|
|
|
48
48
|
```bash
|
|
@@ -57,7 +57,7 @@ You describe what you want; the agent picks the right tools.
|
|
|
57
57
|
|
|
58
58
|
Paste the `globalInstall` block into a JSON client such as Claude Code, Claude Desktop or Cursor, or the `codexTomlGlobal` block into Codex's `config.toml`.
|
|
59
59
|
|
|
60
|
-
As printed, the entry lists the 13 core tools (documentation, script checks, localisation and skills).
|
|
60
|
+
As printed, the entry lists the 13 core tools (documentation, script checks, localisation and skills). Add only the profile your work needs, because every listed tool costs context on every turn. For the world map, add `"env": { "HOI4_AGENT_TOOLS_PROFILES": "core,map" }` to the JSON server entry, or `HOI4_AGENT_TOOLS_PROFILES = "core,map"` inside the Codex `env` table. For the focus, event, GUI, technology and decision editors, use `core,advanced`. Use `all` only in a client that loads tool definitions on demand, such as Claude Code with tool search, because the full list is about 112 KB of tool definitions against 24 KB for `core` ([tool profiles](docs/setup.md#choose-tool-profiles)).
|
|
61
61
|
|
|
62
62
|
4. Open your mod folder as the agent's workspace and tell it what you want to build or fix.
|
|
63
63
|
|
|
@@ -5,7 +5,7 @@ import { createHash } from 'node:crypto';
|
|
|
5
5
|
import { lstat, mkdtemp, open, realpath, rmdir, unlink } from 'node:fs/promises';
|
|
6
6
|
import { tmpdir } from 'node:os';
|
|
7
7
|
import path from 'node:path';
|
|
8
|
-
import sharp from '
|
|
8
|
+
import sharp from './lazy-native.js';
|
|
9
9
|
import { TemporaryDirectoryLifetime, sweepTemporaryDirectories } from './temporary-directories.js';
|
|
10
10
|
export const REFERENCE_SOURCE_MAX_BYTES = 1_073_741_824;
|
|
11
11
|
export const REFERENCE_WORKING_MAX_SIDE = 3_072;
|
|
@@ -29,16 +29,18 @@ function isFile(candidate) {
|
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* Every platform a release ships `hoi4-engine` for (ADR 0074), as `<process.platform>-<process.arch>`.
|
|
32
|
-
* Other platforms, such as
|
|
32
|
+
* Other platforms, such as Windows on Arm (`win32-arm64`), get no bundled binary.
|
|
33
33
|
*/
|
|
34
34
|
export const ENGINE_BUNDLE_PLATFORMS = [
|
|
35
35
|
'darwin-arm64',
|
|
36
|
+
'darwin-x64',
|
|
36
37
|
'linux-arm64',
|
|
37
38
|
'linux-x64',
|
|
38
39
|
'win32-x64',
|
|
39
40
|
];
|
|
40
41
|
const PLATFORM_NAMES = {
|
|
41
42
|
'darwin-arm64': 'macOS on Apple silicon',
|
|
43
|
+
'darwin-x64': 'macOS on Intel',
|
|
42
44
|
'linux-arm64': 'Linux arm64',
|
|
43
45
|
'linux-x64': 'Linux x64',
|
|
44
46
|
'win32-x64': 'Windows x64',
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
2
|
+
/**
|
|
3
|
+
* Loads the image and font libraries on first use instead of when the server starts. The
|
|
4
|
+
* rendering modules are imported by the tool surface, so a plain `import 'sharp'` reads about
|
|
5
|
+
* forty library files and the native image library before the stdio server can answer
|
|
6
|
+
* `initialize`. On a cold or loaded Windows machine that was most of the 14 s start. Only the
|
|
7
|
+
* tools that render or measure text pay for them now, on their first call.
|
|
8
|
+
*/
|
|
9
|
+
const nodeRequire = createRequire(import.meta.url);
|
|
10
|
+
let sharpFunction;
|
|
11
|
+
function loadedSharp() {
|
|
12
|
+
sharpFunction ??= nodeRequire('sharp');
|
|
13
|
+
return sharpFunction;
|
|
14
|
+
}
|
|
15
|
+
/** The `sharp` function and its static members (`kernel`, `cache`, `versions`), loaded on first use. */
|
|
16
|
+
const sharp = new Proxy(() => undefined, {
|
|
17
|
+
apply: (_target, thisArgument, argumentList) => Reflect.apply(loadedSharp(), thisArgument, argumentList),
|
|
18
|
+
get: (_target, property) => Reflect.get(loadedSharp(), property),
|
|
19
|
+
});
|
|
20
|
+
export default sharp;
|
|
21
|
+
let fontkit;
|
|
22
|
+
/** `fontkit.create`, with the font library loaded on the first call. */
|
|
23
|
+
export const createFont = (...argumentList) => {
|
|
24
|
+
fontkit ??= nodeRequire('fontkit');
|
|
25
|
+
return fontkit.create(...argumentList);
|
|
26
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
|
-
import {
|
|
2
|
+
import { createFont } from './lazy-native.js';
|
|
3
3
|
import { compareCodeUnits, hashCanonical, sha256Bytes } from './canonical.js';
|
|
4
4
|
function selectedFont(value) {
|
|
5
5
|
const font = 'fonts' in value ? value.fonts[0] : value;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import sharp from '
|
|
1
|
+
import sharp from '../core/lazy-native.js';
|
|
2
2
|
import { canonicalJson, compareCodeUnits, sha256Bytes } from '../core/canonical.js';
|
|
3
3
|
import { RenderBudget, RENDER_MAX_PIXELS } from '../core/render-budget.js';
|
|
4
4
|
import { DeterministicSvgTextRenderer } from '../core/svg-text.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import sharp from '
|
|
1
|
+
import sharp from '../core/lazy-native.js';
|
|
2
2
|
import { boundedSourceHashEvidence, } from '../core/artifacts.js';
|
|
3
3
|
import { canonicalJson, sha256Bytes } from '../core/canonical.js';
|
|
4
4
|
import { assertRenderDimensions, RenderBudget, RENDER_MAX_PIXELS } from '../core/render-budget.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import sharp from '
|
|
1
|
+
import sharp from '../core/lazy-native.js';
|
|
2
2
|
import { ArtifactStore, boundedSourceHashEvidence, } from '../core/artifacts.js';
|
|
3
3
|
import { canonicalJson, sha256Bytes } from '../core/canonical.js';
|
|
4
4
|
import { PACKAGE_VERSION } from '../version.js';
|
|
@@ -6,3 +6,6 @@ export const FOCUS_LAYOUT_WORK_MAX = 8_000_000;
|
|
|
6
6
|
export const FOCUS_LINT_WORK_MAX = 2_000_000;
|
|
7
7
|
export const FOCUS_DIAGNOSTIC_MAX = 2_000;
|
|
8
8
|
export const FOCUS_CYCLE_SAMPLE_MAX = 128;
|
|
9
|
+
/** The output scale a focus render accepts. Kept here so request schemas need not load the renderer. */
|
|
10
|
+
export const FOCUS_RENDER_MIN_OUTPUT_SCALE = 0.25;
|
|
11
|
+
export const FOCUS_RENDER_MAX_OUTPUT_SCALE = 1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import sharp from '
|
|
1
|
+
import sharp from '../../core/lazy-native.js';
|
|
2
2
|
import { compareCodeUnits } from '../../core/canonical.js';
|
|
3
3
|
import { RENDER_MAX_PIXELS } from '../../core/render-budget.js';
|
|
4
4
|
import { DeterministicSvgTextRenderer } from '../../core/svg-text.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import sharp from '
|
|
1
|
+
import sharp from '../core/lazy-native.js';
|
|
2
|
+
import { FOCUS_RENDER_MAX_OUTPUT_SCALE, FOCUS_RENDER_MIN_OUTPUT_SCALE } from './limits.js';
|
|
2
3
|
import { boundedSourceHashEvidence, } from '../core/artifacts.js';
|
|
3
4
|
import { compareCodeUnits, canonicalJson, sha256Bytes } from '../core/canonical.js';
|
|
4
5
|
import { assertRenderDimensions, RenderBudget, RENDER_MAX_DECODED_PIXELS, RENDER_MAX_ENCODED_IMAGE_BYTES, RENDER_MAX_PIXELS, } from '../core/render-budget.js';
|
|
@@ -10,8 +11,7 @@ import { FOCUS_HORIZONTAL_GRID_PIXELS, FOCUS_NODE_HEIGHT_PIXELS, FOCUS_NODE_WIDT
|
|
|
10
11
|
import { createFocusPlanningSidecar, serializeFocusPlanningSidecar } from './planning.js';
|
|
11
12
|
import { FOCUS_GRAPH_MAX_EDGES, FOCUS_GRAPH_MAX_NODES } from './lint.js';
|
|
12
13
|
import { layoutNodeMap, } from './model.js';
|
|
13
|
-
export
|
|
14
|
-
export const FOCUS_RENDER_MAX_OUTPUT_SCALE = 1;
|
|
14
|
+
export { FOCUS_RENDER_MAX_OUTPUT_SCALE, FOCUS_RENDER_MIN_OUTPUT_SCALE };
|
|
15
15
|
export async function admitFocusIconDataUris(options, budget, renderedDataUris) {
|
|
16
16
|
const declaredDataUris = [
|
|
17
17
|
...Object.values(options.iconDataUris ?? {}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
-
import {
|
|
3
|
-
import sharp from '
|
|
2
|
+
import { createFont } from '../core/lazy-native.js';
|
|
3
|
+
import sharp from '../core/lazy-native.js';
|
|
4
4
|
import { compareCodeUnits, hashCanonical } from '../core/canonical.js';
|
|
5
5
|
import { RenderBudget, RENDER_MAX_DECODED_PIXELS } from '../core/render-budget.js';
|
|
6
6
|
import { ServiceError } from '../core/result.js';
|
|
@@ -24,3 +24,5 @@ export const GUI_BMFONT_MAX_PAGES = 256;
|
|
|
24
24
|
export const GUI_BMFONT_MAX_CHARACTERS = 32_768;
|
|
25
25
|
export const GUI_BMFONT_MAX_KERNING_PAIRS = 32_768;
|
|
26
26
|
export const GUI_BINARY_FONT_MAX_BYTES = 8_388_608;
|
|
27
|
+
export const GUI_TEXT_PACKAGE_MAX_FILES = 32;
|
|
28
|
+
export const GUI_TEXT_PACKAGE_MAX_BYTES = 16_777_216;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import sharp from '
|
|
1
|
+
import sharp from '../core/lazy-native.js';
|
|
2
2
|
import { compareCodeUnits, canonicalJson, sha256Bytes } from '../core/canonical.js';
|
|
3
3
|
import { comparePngImages } from '../core/image-diff.js';
|
|
4
4
|
import { assertRenderDimensions, RenderBudget, RENDER_MAX_PIXELS } from '../core/render-budget.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import sharp from '
|
|
1
|
+
import sharp from '../core/lazy-native.js';
|
|
2
2
|
import { readFile } from 'node:fs/promises';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { ArtifactStore, boundedSourceHashEvidence, publicArtifactLink, } from '../core/artifacts.js';
|
|
@@ -21,7 +21,7 @@ import { GuiAssetCatalog, parseBmFont } from './assets.js';
|
|
|
21
21
|
import { scenarioNeedsCountryHistory } from './native-state.js';
|
|
22
22
|
import { projectGuiGraphForArtifact } from './inspection-artifact.js';
|
|
23
23
|
import { buildGuiScene } from './layout.js';
|
|
24
|
-
import { GUI_VALIDATION_MAX_DIAGNOSTICS } from './limits.js';
|
|
24
|
+
import { GUI_TEXT_PACKAGE_MAX_BYTES, GUI_TEXT_PACKAGE_MAX_FILES, GUI_VALIDATION_MAX_DIAGNOSTICS, } from './limits.js';
|
|
25
25
|
import { compareGuiImages, galleryDimensions, renderGallerySvg, renderGuiScene, } from './renderer.js';
|
|
26
26
|
import { generatedCountryTags, generateGuiPreviewScenarios, resolveScenarioScriptedLocalisation, } from './scenario-generator.js';
|
|
27
27
|
import { parseGeneratedScenarioOptions, parsePreviewScenario } from './scenario.js';
|
|
@@ -39,8 +39,6 @@ const staticGuiDefinitionPatterns = [
|
|
|
39
39
|
'fonts/**/*.{gfx,txt}',
|
|
40
40
|
'hoi4_agent/animation_sources/**/*.json',
|
|
41
41
|
];
|
|
42
|
-
export const GUI_TEXT_PACKAGE_MAX_FILES = 32;
|
|
43
|
-
export const GUI_TEXT_PACKAGE_MAX_BYTES = 16_777_216;
|
|
44
42
|
const GUI_TRANSACTION_PHASE_DIAGNOSTIC_BUDGET = Math.floor(TRANSACTION_MAX_DIAGNOSTICS / 3);
|
|
45
43
|
function hardDiagnostic(diagnostic) {
|
|
46
44
|
return diagnostic.severity === 'error' || diagnostic.severity === 'blocker';
|
|
@@ -1078,6 +1076,35 @@ export class ScriptedGuiStudio {
|
|
|
1078
1076
|
const files = mergeScannedFiles(snapshot, localisationFiles);
|
|
1079
1077
|
return this.graphForFiles(files, `workspace:${workspaceId}`);
|
|
1080
1078
|
}
|
|
1079
|
+
/**
|
|
1080
|
+
* The refusal for a window name no source defines. A name that is a `.gui` file name (for
|
|
1081
|
+
* example `frontendmainview` for `frontendmainview.gui`) lists the windows that file holds.
|
|
1082
|
+
*/
|
|
1083
|
+
async windowNotFound(workspaceId, windowName, principal, signal) {
|
|
1084
|
+
const workspace = this.resolver.get(workspaceId, principal);
|
|
1085
|
+
const files = (await this.scanner.scan(workspace, {
|
|
1086
|
+
patterns: guiLayoutPatterns(workspace),
|
|
1087
|
+
rootKinds: ['mod', 'dependency', 'fixture', 'game', 'dlc'],
|
|
1088
|
+
...(signal === undefined ? {} : { signal }),
|
|
1089
|
+
})).filter(({ relativePath }) => path.posix.basename(relativePath.replaceAll('\\', '/'), '.gui').toLowerCase() ===
|
|
1090
|
+
windowName.toLowerCase());
|
|
1091
|
+
const fileWindows = files.length === 0
|
|
1092
|
+
? []
|
|
1093
|
+
: [
|
|
1094
|
+
...new Set(this.graphForFiles(files, `not-found:${workspaceId}`)
|
|
1095
|
+
.graph.elements.filter(({ parentId }) => parentId === undefined)
|
|
1096
|
+
.map(({ name }) => name)),
|
|
1097
|
+
].slice(0, 50);
|
|
1098
|
+
const shortName = windowName.slice(0, 256);
|
|
1099
|
+
return new ServiceError('GUI_WINDOW_NOT_FOUND', fileWindows.length === 0
|
|
1100
|
+
? `No GUI window named ${shortName} is defined; hoi4.reference_search or hoi4.source_lookup can find window names`
|
|
1101
|
+
: `No GUI window named ${shortName} is defined. It is the name of a .gui file, not of a window. That file defines these windows: ${fileWindows.join(', ')}`, {
|
|
1102
|
+
windowName: shortName,
|
|
1103
|
+
...(fileWindows.length === 0
|
|
1104
|
+
? {}
|
|
1105
|
+
: { fileName: `${shortName}.gui`, windowsInFile: fileWindows }),
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1081
1108
|
async scanWindow(workspaceId, windowName, principal, signal, languages = ['l_english'], additionalSpriteNames = [], additionalTemplateNames = [], additionalAssetPatterns = [], additionalLocalisationKeys = [], includeImmediateTooltip = false, progress) {
|
|
1082
1109
|
const stage = (phase) => renderStage({
|
|
1083
1110
|
...(signal === undefined ? {} : { signal }),
|
|
@@ -1348,6 +1375,9 @@ export class ScriptedGuiStudio {
|
|
|
1348
1375
|
const catalog = new GuiAssetCatalog(scanned.graph, scanned.files, budget, scenario.language, scanned.linkedFolders);
|
|
1349
1376
|
await renderStage(input, 'Laying out GUI and decoding visible assets');
|
|
1350
1377
|
const scene = await buildGuiScene(scanned.graph, scanned.files, input.windowName, scenario, catalog);
|
|
1378
|
+
// A name that is no window draws nothing: refuse before any picture or artifact exists.
|
|
1379
|
+
if (scene.diagnostics.some(({ code }) => code === 'GUI_WINDOW_MISSING'))
|
|
1380
|
+
throw await this.windowNotFound(input.workspaceId, input.windowName, input.principal, input.signal);
|
|
1351
1381
|
await renderStage(input, 'Rasterizing GUI views');
|
|
1352
1382
|
const render = await renderGuiScene(scene, undefined, input.signal, budget);
|
|
1353
1383
|
const fullRenderCache = new Map([
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Disagreement above the threshold is an error diagnostic, which blocks the write but leaves the
|
|
5
5
|
* preview and its evidence available.
|
|
6
6
|
*/
|
|
7
|
-
import sharp from '
|
|
7
|
+
import sharp from '../core/lazy-native.js';
|
|
8
8
|
import { canonicalJson } from '../core/canonical.js';
|
|
9
9
|
import { PACKAGE_VERSION } from '../version.js';
|
|
10
10
|
import { rasterizeGeographyKind } from './relief/land.js';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { readFile } from 'node:fs/promises';
|
|
8
8
|
import { createRequire } from 'node:module';
|
|
9
9
|
import { Worker } from 'node:worker_threads';
|
|
10
|
-
import sharp from '
|
|
10
|
+
import sharp from '../core/lazy-native.js';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
import { compareCodeUnits } from '../core/canonical.js';
|
|
13
13
|
import { ServiceError } from '../core/result.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import sharp from '
|
|
1
|
+
import sharp from '../core/lazy-native.js';
|
|
2
2
|
import { readReferenceImageSource, } from '../core/bounded-source.js';
|
|
3
3
|
import { readWorkspaceJsonSource } from '../core/workspace-json.js';
|
|
4
4
|
import { REFERENCE_SHEETS_SOURCE_MAX_BYTES, referenceSheetsDocumentSchema, } from '../schemas/reference-sheets.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Bounded, offline reference-image interpretation. These are visual heuristics, not OCR. */
|
|
2
|
-
import sharp from '
|
|
2
|
+
import sharp from '../core/lazy-native.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { ServiceError } from '../core/result.js';
|
|
5
5
|
export const REFERENCE_WORLD_PIXEL_LIMIT = 13_238_272;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import sharp from '
|
|
1
|
+
import sharp from '../core/lazy-native.js';
|
|
2
2
|
import { compareCodeUnits, canonicalJson, sha256Bytes } from '../core/canonical.js';
|
|
3
3
|
import { assertRenderDimensions, RenderBudget, RENDER_MAX_PIXELS } from '../core/render-budget.js';
|
|
4
4
|
import { ServiceError } from '../core/result.js';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { registerLegacyTaskTools } from '../server/legacy-task-tools.js';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import { computeFocusVisualRevisions as computeCoreFocusVisualRevisions, } from '../../focus/tool-operations.js';
|
|
4
3
|
import { focusLayoutDeltaSchema, focusLayoutMetricsSchema, focusLayoutQualitySchema, } from '../../schemas/focus.js';
|
|
5
4
|
import { focusInspectRequestSchema, focusRenderRequestSchema, focusRewriteRequestSchema, } from '../../schemas/focus-requests.js';
|
|
6
5
|
import { nonNegativeIntegerSchema, renderHashesSchema, sha256Schema, } from '../server/output-schemas.js';
|
|
@@ -207,7 +206,9 @@ const artifactProducing = {
|
|
|
207
206
|
openWorldHint: false,
|
|
208
207
|
};
|
|
209
208
|
/** Compatibility wrapper retained for callers that supplied the signal separately. */
|
|
210
|
-
export function computeFocusVisualRevisions(engine, context, workspaceId, snapshot, selectors, signal) {
|
|
209
|
+
export async function computeFocusVisualRevisions(engine, context, workspaceId, snapshot, selectors, signal) {
|
|
210
|
+
// Loaded on first use: the focus renderer and its libraries are not needed to answer `initialize`.
|
|
211
|
+
const { computeFocusVisualRevisions: computeCoreFocusVisualRevisions } = await import('../../focus/tool-operations.js');
|
|
211
212
|
return computeCoreFocusVisualRevisions(engine, {
|
|
212
213
|
...(context.principal === undefined ? {} : { principal: context.principal }),
|
|
213
214
|
...(signal === undefined ? {} : { signal }),
|
|
@@ -144,6 +144,40 @@ function dateBounds(trigger) {
|
|
|
144
144
|
return bounds;
|
|
145
145
|
}
|
|
146
146
|
const TRIGGER_CHECK_DAYS = 20;
|
|
147
|
+
const PLACEHOLDER = /\$[A-Za-z_]\w*\$/gu;
|
|
148
|
+
/** Every assignment below `block`, at any depth. */
|
|
149
|
+
function descendants(block) {
|
|
150
|
+
const found = [];
|
|
151
|
+
for (const entry of block.entries) {
|
|
152
|
+
if (entry.type === 'assignment') {
|
|
153
|
+
found.push(entry);
|
|
154
|
+
if (entry.value.type === 'block')
|
|
155
|
+
found.push(...descendants(entry.value));
|
|
156
|
+
}
|
|
157
|
+
else if (entry.type === 'block')
|
|
158
|
+
found.push(...descendants(entry));
|
|
159
|
+
}
|
|
160
|
+
return found;
|
|
161
|
+
}
|
|
162
|
+
/** Unquoted `$NAME$` placeholders in a definition's keys and values (quoted text is localisation). */
|
|
163
|
+
function placeholdersOf(definition) {
|
|
164
|
+
const names = new Set();
|
|
165
|
+
const scan = (node) => {
|
|
166
|
+
if (!node.quoted)
|
|
167
|
+
for (const match of node.value.matchAll(PLACEHOLDER))
|
|
168
|
+
names.add(match[0]);
|
|
169
|
+
};
|
|
170
|
+
const nodes = [
|
|
171
|
+
definition,
|
|
172
|
+
...(definition.value.type === 'block' ? descendants(definition.value) : []),
|
|
173
|
+
];
|
|
174
|
+
for (const node of nodes) {
|
|
175
|
+
scan(node.key);
|
|
176
|
+
if (node.value.type === 'scalar')
|
|
177
|
+
scan(node.value);
|
|
178
|
+
}
|
|
179
|
+
return [...names];
|
|
180
|
+
}
|
|
147
181
|
const detectors = {
|
|
148
182
|
event_triggered_only_with_mtth: (document) => eventsOf(document).flatMap(({ body }) => {
|
|
149
183
|
const timer = field(body, 'mean_time_to_happen');
|
|
@@ -273,6 +307,29 @@ const detectors = {
|
|
|
273
307
|
}
|
|
274
308
|
return findings;
|
|
275
309
|
},
|
|
310
|
+
scripted_arguments: (document, family, context) => {
|
|
311
|
+
const findings = [];
|
|
312
|
+
const definitions = family === 'scripted_effects' || family === 'scripted_triggers';
|
|
313
|
+
const top = new Set(definitions ? assignmentsOf(document.root) : []);
|
|
314
|
+
for (const helper of top) {
|
|
315
|
+
const names = placeholdersOf(helper);
|
|
316
|
+
if (names.length > 0)
|
|
317
|
+
findings.push({
|
|
318
|
+
node: helper,
|
|
319
|
+
message: `${helper.key.value} uses ${names.join(', ')}, but scripted effects and triggers take no arguments`,
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
const helpers = context.modScriptedHelpers;
|
|
323
|
+
if (helpers === undefined || helpers.size === 0)
|
|
324
|
+
return findings;
|
|
325
|
+
for (const call of descendants(document.root))
|
|
326
|
+
if (!top.has(call) && call.value.type === 'block' && helpers.has(call.key.value))
|
|
327
|
+
findings.push({
|
|
328
|
+
node: call,
|
|
329
|
+
message: `${call.key.value} is called with a block, but a scripted effect or trigger takes no arguments`,
|
|
330
|
+
});
|
|
331
|
+
return findings;
|
|
332
|
+
},
|
|
276
333
|
};
|
|
277
334
|
/** The rule ids that have a detector. */
|
|
278
335
|
export const knownMistakeDetectorIds = Object.keys(detectors);
|
|
@@ -285,6 +342,14 @@ const ruleFamilies = {
|
|
|
285
342
|
event_namespace_missing: ['events'],
|
|
286
343
|
event_numeric_id_invalid: ['events'],
|
|
287
344
|
temp_variable_scope_prefix: 'any',
|
|
345
|
+
scripted_arguments: [
|
|
346
|
+
'events',
|
|
347
|
+
'decisions',
|
|
348
|
+
'national_focus',
|
|
349
|
+
'on_actions',
|
|
350
|
+
'scripted_effects',
|
|
351
|
+
'scripted_triggers',
|
|
352
|
+
],
|
|
288
353
|
};
|
|
289
354
|
/**
|
|
290
355
|
* Flags the known mistakes in one checked file. Resolved rules are not applied. Each finding
|
|
@@ -149,6 +149,25 @@
|
|
|
149
149
|
"item": "Scoping only exists for regular variables."
|
|
150
150
|
}
|
|
151
151
|
]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"id": "scripted_arguments",
|
|
155
|
+
"status": "active",
|
|
156
|
+
"severity": "error",
|
|
157
|
+
"surfaces": ["event", "decision", "focus"],
|
|
158
|
+
"title": "Arguments on a scripted effect or trigger",
|
|
159
|
+
"mistake": "A scripted effect or trigger definition uses a $NAME$ placeholder, or a call passes arguments in a block, such as kb_add = { AMOUNT = 12 }.",
|
|
160
|
+
"symptom": "The game logs \"Invalid effect 'AMOUNT'\" and \"Unknown effect-type: AMOUNT\", then \"Unexpected token\" for the rest of the enclosing block, and the argument never reaches the body.",
|
|
161
|
+
"fix": "Set a variable before the call, such as set_temp_variable = { amount = 12 }, call the helper with name = yes, and read the variable in its body.",
|
|
162
|
+
"sources": [
|
|
163
|
+
{
|
|
164
|
+
"kind": "game_doc",
|
|
165
|
+
"page": "Game 1.20.1 vanilla scripts",
|
|
166
|
+
"heading": "common/scripted_effects and common/scripted_triggers",
|
|
167
|
+
"item": "No definition uses a $NAME$ placeholder and no call passes a block."
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"logPattern": "Unknown effect-type: "
|
|
152
171
|
}
|
|
153
172
|
]
|
|
154
173
|
}
|
|
@@ -51,11 +51,15 @@ function indexDerived(snapshot) {
|
|
|
51
51
|
const ids = new Map();
|
|
52
52
|
const effects = new Set();
|
|
53
53
|
const triggers = new Set();
|
|
54
|
+
const modHelpers = new Set();
|
|
54
55
|
for (const symbol of snapshot.index.symbols) {
|
|
55
56
|
if (symbol.kind === 'scripted_effect')
|
|
56
57
|
effects.add(symbol.id);
|
|
57
58
|
else if (symbol.kind === 'scripted_trigger')
|
|
58
59
|
triggers.add(symbol.id);
|
|
60
|
+
if ((symbol.kind === 'scripted_effect' || symbol.kind === 'scripted_trigger') &&
|
|
61
|
+
(symbol.rootKind === 'mod' || symbol.rootKind === 'dependency'))
|
|
62
|
+
modHelpers.add(symbol.id);
|
|
59
63
|
const kind = identifierKinds[symbol.kind];
|
|
60
64
|
if (kind === undefined)
|
|
61
65
|
continue;
|
|
@@ -64,7 +68,13 @@ function indexDerived(snapshot) {
|
|
|
64
68
|
ids.set(kind, (set = new Set()));
|
|
65
69
|
set.add(symbol.id);
|
|
66
70
|
}
|
|
67
|
-
const derived = {
|
|
71
|
+
const derived = {
|
|
72
|
+
ids,
|
|
73
|
+
effects,
|
|
74
|
+
triggers,
|
|
75
|
+
modHelpers,
|
|
76
|
+
implicitTriggers: implicitTriggerNames(snapshot),
|
|
77
|
+
};
|
|
68
78
|
derivedByIndex.set(snapshot.index, derived);
|
|
69
79
|
return derived;
|
|
70
80
|
}
|
|
@@ -775,7 +785,10 @@ export class ReferenceToolService {
|
|
|
775
785
|
implicitTriggers: derived.implicitTriggers,
|
|
776
786
|
...(playerText === undefined ? {} : { playerText }),
|
|
777
787
|
eventPopups: this.eventPopupContext(workspaceId, snapshot),
|
|
778
|
-
knownMistakes: {
|
|
788
|
+
knownMistakes: {
|
|
789
|
+
eventNamespaces: this.eventNamespaces(workspaceId, snapshot),
|
|
790
|
+
modScriptedHelpers: derived.modHelpers,
|
|
791
|
+
},
|
|
779
792
|
}, identifierContext(snapshot));
|
|
780
793
|
}
|
|
781
794
|
#eventNamespaces = new Map();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import { FOCUS_RENDER_MAX_OUTPUT_SCALE, FOCUS_RENDER_MIN_OUTPUT_SCALE } from '../focus/
|
|
2
|
+
import { FOCUS_RENDER_MAX_OUTPUT_SCALE, FOCUS_RENDER_MIN_OUTPUT_SCALE } from '../focus/limits.js';
|
|
3
3
|
import { backgroundRequestKeySchema, workspaceIdSchema, workspaceRelativePathSchema, } from './common.js';
|
|
4
4
|
import { continuousFocusPaletteSchema, focusLayoutSchema, focusTreePlanSchema } from './focus.js';
|
|
5
5
|
function compact(schema, description) {
|
|
@@ -2,7 +2,8 @@ import { z } from 'zod/v4';
|
|
|
2
2
|
import { renderDimensionViolation, RenderBudget, RENDER_MAX_DIMENSION, } from '../core/render-budget.js';
|
|
3
3
|
import { ServiceError } from '../core/result.js';
|
|
4
4
|
import { SOURCE_MAX_BYTES } from '../core/source/index.js';
|
|
5
|
-
import {
|
|
5
|
+
import { GuiHelperDocumentSchema } from '../gui/helpers.js';
|
|
6
|
+
import { GUI_TEXT_PACKAGE_MAX_FILES } from '../gui/limits.js';
|
|
6
7
|
import { GuiGeneratedScenarioOptionsSchema, GuiPreviewScenarioSchema } from '../gui/scenario.js';
|
|
7
8
|
import { backgroundRequestKeySchema, workspaceIdSchema, workspaceRelativePathSchema, } from './common.js';
|
|
8
9
|
function compact(schema, description) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import sharp from '
|
|
1
|
+
import sharp from '../core/lazy-native.js';
|
|
2
2
|
import { canonicalJson, compareCodeUnits, sha256Bytes } from '../core/canonical.js';
|
|
3
3
|
import { RenderBudget, RENDER_MAX_PIXELS } from '../core/render-budget.js';
|
|
4
4
|
import { ServiceError } from '../core/result.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LATEST_PROTOCOL_VERSION } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
export const PACKAGE_NAME = 'hoi4-agent-tools';
|
|
3
|
-
export const PACKAGE_VERSION = '4.22.
|
|
3
|
+
export const PACKAGE_VERSION = '4.22.2';
|
|
4
4
|
export const MCP_PROTOCOL_VERSION = LATEST_PROTOCOL_VERSION;
|
|
5
5
|
export const CONFIG_VERSION = 1;
|
|
6
6
|
export const TRANSACTION_VERSION = 2;
|
package/docs/focus.md
CHANGED
|
@@ -286,7 +286,7 @@ The layout JSON reports horizontal, vertical, and Manhattan grid spans for every
|
|
|
286
286
|
|
|
287
287
|
`hoi4.focus_render` returns an in-game-style schematic of the layout inline (no second call): an overview of at most 1,500 pixels and up to five close-ups of the places the scorecard blames, or of the branches named in `cropBranchIds` (up to 8; a derived branch is named by its first focus) and the focuses named in `cropFocusIds`. Failing focuses are outlined (red for hard defects, amber otherwise), exclusive choices are joined by red dashes, OR prerequisites are dotted, and a ruler shows the grid coordinates. Pass `inline: false` for linked artifacts only. The inline pictures are tool renders, not game screenshots, and carry no icons; the result lists each image in `data.inlineImages` with its region. It also writes complete HTML, SVG, JSON and source-map artifacts and a PNG.
|
|
288
288
|
|
|
289
|
-
The PNG is the game view when the `hoi4-engine` binary is available (shipped with releases, or `HOI4_ENGINE`): the focus tree drawn from the game's own sprites, textures, bitmap font and `interface/nationalfocusview.gui` in load order, so it shows the tree window background, the plaques, icons, titles, connector tiles and exclusive
|
|
289
|
+
The PNG is the game view when the `hoi4-engine` binary is available (shipped with releases, or `HOI4_ENGINE`): the focus tree drawn from the game's own sprites, textures, bitmap font and `interface/nationalfocusview.gui` in load order, so it shows the tree window background, the plaques, icons, titles, connector tiles and exclusive links as the game does at the default UI scale. An exclusive link joins two mutually exclusive focuses on one row: the mark alone when they are two columns apart, and the grey line with an arrow at each end and the mark in the middle when they are further apart (`national_focus_exclusive_item`). The red line the game shows in some states is not drawn, and pairs on different rows get no link. The report counts `exclusiveMarks`, `exclusiveLines` and the pairs without either (`exclusivePairsWithoutMark`, `exclusivePairsWithoutLine`). Titles are localised; a title without localisation shows its raw key, like the game, and scripted localisation (`[...]`) is shown as written. Every sprite, texture, font or glyph the view cannot draw is reported as `FOCUS_GAME_VIEW_ASSET_MISSING` with the focuses it affects. Focuses are drawn as at the start of a game: `can start` without prerequisites, `unavailable` otherwise; `available` and `bypass` triggers are not evaluated. Without the engine the PNG is the schematic with decoded icons. The game view is a tool render, never a game screenshot.
|
|
290
290
|
|
|
291
291
|
Pass `view: "game"` for the game view alone: the PNG, a JSON report with each focus's box and every missing asset, an SVG hover map on the same pixels, an HTML viewer with wheel zoom, drag and hover titles, and one inline overview of at most 1,500 pixels. It skips the schematic SVG, the schematic pictures and the presentation pass, so it is fast enough to call after every edit, and the layout verdict is still computed. It needs the engine and answers `FOCUS_GAME_VIEW_UNAVAILABLE` without it. The engine process stays running between calls (ADR 0077) and keeps the parsed `.gfx` files, folder listings, decoded textures and fonts of each workspace, checking them against the disk on every call, so a repeat render costs the drawing alone. Pass `png: false` for the faster structural view without decoding icons. National trees with 200 or more focuses raster at half scale by default; pass `reviewScale` from `0.25` through `1` when a different PNG size is needed.
|
|
292
292
|
|
package/docs/reference.md
CHANGED
|
@@ -106,15 +106,16 @@ File mode also applies a short, reviewed list of mistakes that the game accepts
|
|
|
106
106
|
Each finding is `KNOWN_MISTAKE_<RULE>` with the symptom and the fix in its message.
|
|
107
107
|
A finding that makes a definition not work (`error`) sets `valid` to `false`; the others are warnings.
|
|
108
108
|
|
|
109
|
-
| Rule | Status | Flags
|
|
110
|
-
| -------------------------------- | ------- |
|
|
111
|
-
| `event_namespace_missing` | error | An event id whose namespace no events file declares with `add_namespace` (the game logs "Malformed token").
|
|
112
|
-
| `event_numeric_id_invalid` | error | An event number that is not a whole number from 0 to 99999, so events share an internal id.
|
|
113
|
-
| `event_triggered_only_with_mtth` | warning | `mean_time_to_happen` on an `is_triggered_only = yes` event, which never runs the timer.
|
|
114
|
-
| `event_fires_every_day` | warning | An automatic, repeatable event with no `mean_time_to_happen` or one of a day or less.
|
|
115
|
-
| `news_event_not_major` | warning | A `news_event` without `major = yes`, or one that also sets `fire_only_once = yes`.
|
|
116
|
-
| `event_date_window_too_tight` | warning | An automatic event whose `date` bounds are less than the 20-day trigger check apart.
|
|
117
|
-
| `temp_variable_scope_prefix` | warning | A scope prefix such as `ROOT.amount` on a variable the file only sets as a temporary variable.
|
|
109
|
+
| Rule | Status | Flags |
|
|
110
|
+
| -------------------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
111
|
+
| `event_namespace_missing` | error | An event id whose namespace no events file declares with `add_namespace` (the game logs "Malformed token"). |
|
|
112
|
+
| `event_numeric_id_invalid` | error | An event number that is not a whole number from 0 to 99999, so events share an internal id. |
|
|
113
|
+
| `event_triggered_only_with_mtth` | warning | `mean_time_to_happen` on an `is_triggered_only = yes` event, which never runs the timer. |
|
|
114
|
+
| `event_fires_every_day` | warning | An automatic, repeatable event with no `mean_time_to_happen` or one of a day or less. |
|
|
115
|
+
| `news_event_not_major` | warning | A `news_event` without `major = yes`, or one that also sets `fire_only_once = yes`. |
|
|
116
|
+
| `event_date_window_too_tight` | warning | An automatic event whose `date` bounds are less than the 20-day trigger check apart. |
|
|
117
|
+
| `temp_variable_scope_prefix` | warning | A scope prefix such as `ROOT.amount` on a variable the file only sets as a temporary variable. |
|
|
118
|
+
| `scripted_arguments` | error | A `$NAME$` placeholder in a scripted effect or trigger, or a block call such as `kb_add = { AMOUNT = 12 }` of a helper the mod defines. Scripted helpers take no arguments, so set a variable before the call and read it in the body. |
|
|
118
119
|
|
|
119
120
|
The rules come from the offline wiki's Event modding "Common mistakes" and Data structures pages; each rule in `src/hoi4_agent_tools/reference/known-mistakes.json` names its source page, heading and item, and has a detector that reads the parsed file.
|
|
120
121
|
`hoi4.reference_context` lists the rules of the requested surface as `knownMistakes` (id, title and fix) so an author can read them before editing, and `hoi4.error_log` adds `knownMistake` to a logged message that a rule explains.
|
package/docs/setup.md
CHANGED
|
@@ -47,7 +47,18 @@ Every tool the server lists costs the agent context on every turn, so a session
|
|
|
47
47
|
| `map` | The world map builder (`map_inspect`, `map_rewrite`) and the job controls |
|
|
48
48
|
| `advanced` | Focus, GUI, event, technology, decision and probability editors, renders and analyses, the other inspect tools, compatibility checks and the job controls |
|
|
49
49
|
|
|
50
|
-
Set `HOI4_AGENT_TOOLS_PROFILES` in the client's server entry to list more, for example `"env": { "HOI4_AGENT_TOOLS_PROFILES": "core,map" }
|
|
50
|
+
Set `HOI4_AGENT_TOOLS_PROFILES` in the client's server entry to list more, for example `"env": { "HOI4_AGENT_TOOLS_PROFILES": "core,map" }`. The `profiles` key of the configuration file does the same for every client. A tool outside the listed profiles still answers when a call names it.
|
|
51
|
+
|
|
52
|
+
Pick the profiles for the work at hand. The size of the tool list the client loads, measured on 4.22.0:
|
|
53
|
+
|
|
54
|
+
| Setting | Tools | Tool list |
|
|
55
|
+
| --------------- | ----- | --------- |
|
|
56
|
+
| `core` | 13 | 24 KB |
|
|
57
|
+
| `core,map` | 17 | 35 KB |
|
|
58
|
+
| `core,advanced` | 45 | 103 KB |
|
|
59
|
+
| `all` | 47 | 112 KB |
|
|
60
|
+
|
|
61
|
+
A client that loads every listed definition into each turn pays that size every turn. Use `all` only in a client that loads tool definitions on demand, such as Claude Code with tool search.
|
|
51
62
|
|
|
52
63
|
### How the server picks your mod
|
|
53
64
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/engine/bin/manifest.json
CHANGED
|
@@ -4,23 +4,28 @@
|
|
|
4
4
|
"binaries": {
|
|
5
5
|
"darwin-arm64": {
|
|
6
6
|
"file": "darwin-arm64/hoi4-engine",
|
|
7
|
-
"sha256": "
|
|
8
|
-
"size":
|
|
7
|
+
"sha256": "fd7d554b509ee8ae36e4fcf982679a8bbb38b0c825cc27cd9a462f5ac2cbebef",
|
|
8
|
+
"size": 14672256
|
|
9
|
+
},
|
|
10
|
+
"darwin-x64": {
|
|
11
|
+
"file": "darwin-x64/hoi4-engine",
|
|
12
|
+
"sha256": "72f1a8c535409e9017767f5c747111989a1987a3b1b5bf5423e2cb63d57ccb21",
|
|
13
|
+
"size": 16255912
|
|
9
14
|
},
|
|
10
15
|
"linux-arm64": {
|
|
11
16
|
"file": "linux-arm64/hoi4-engine",
|
|
12
|
-
"sha256": "
|
|
13
|
-
"size":
|
|
17
|
+
"sha256": "455452e3cef4731bdeda338f5cb1cf89edbfa56e035eff333cab8b5cf0041727",
|
|
18
|
+
"size": 15919912
|
|
14
19
|
},
|
|
15
20
|
"linux-x64": {
|
|
16
21
|
"file": "linux-x64/hoi4-engine",
|
|
17
|
-
"sha256": "
|
|
18
|
-
"size":
|
|
22
|
+
"sha256": "c625a7cb60b3c11000f3b4f072a69ce4b4abfc6a70927e210cffe10a0a0e0a51",
|
|
23
|
+
"size": 17829584
|
|
19
24
|
},
|
|
20
25
|
"win32-x64": {
|
|
21
26
|
"file": "win32-x64/hoi4-engine.exe",
|
|
22
|
-
"sha256": "
|
|
23
|
-
"size":
|
|
27
|
+
"sha256": "cd96bac8124da9221abaf135adec635ebfbbb3cda4aafbc5beea8c3ff507ce9c",
|
|
28
|
+
"size": 16136704
|
|
24
29
|
}
|
|
25
30
|
}
|
|
26
31
|
}
|
|
Binary file
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hoi4-agent-tools",
|
|
3
|
-
"version": "4.22.
|
|
3
|
+
"version": "4.22.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "hoi4-agent-tools",
|
|
9
|
-
"version": "4.22.
|
|
9
|
+
"version": "4.22.2",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@fontsource-variable/roboto": "5.3.0",
|
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": "4.22.
|
|
4
|
+
"version": "4.22.2",
|
|
5
5
|
"description": "Build HOI4 mods: focus trees, events, decisions, worlds, GUI previews, docs and AI balance.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/schemas/error-log-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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/schemas/geography-model.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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/schemas/mod-index-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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/schemas/reference-sheets.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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/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/v4.22.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.22.2/schemas/source-lookup-input.schema.json",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
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": "Build HOI4 mods: focus trees, events, decisions, worlds, GUI previews, docs and AI balance.",
|
|
6
|
-
"version": "4.22.
|
|
6
|
+
"version": "4.22.2",
|
|
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": "4.22.
|
|
16
|
+
"version": "4.22.2",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
}
|