hoi4-agent-tools 4.15.0 → 4.16.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 (51) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/hoi4_agent_tools/core/managed-outputs.js +102 -26
  3. package/dist/hoi4_agent_tools/map/operations.js +58 -1
  4. package/dist/hoi4_agent_tools/map/world-outputs.js +14 -1
  5. package/dist/hoi4_agent_tools/schemas/map.js +8 -0
  6. package/dist/hoi4_agent_tools/version.js +1 -1
  7. package/docs/map.md +2 -0
  8. package/engine/bin/manifest.json +1 -1
  9. package/engine/bin/win32-x64/hoi4-engine.exe +0 -0
  10. package/npm-shrinkwrap.json +2 -2
  11. package/package.json +1 -1
  12. package/schemas/configuration.schema.json +1 -1
  13. package/schemas/continuous-focus-palette.schema.json +1 -1
  14. package/schemas/custom-weighted-pool.schema.json +1 -1
  15. package/schemas/decision-inspect-input.schema.json +1 -1
  16. package/schemas/error-log-input.schema.json +1 -1
  17. package/schemas/event-feature-manifest.schema.json +1 -1
  18. package/schemas/focus-plan.schema.json +1 -1
  19. package/schemas/focus-planning-sidecar.schema.json +1 -1
  20. package/schemas/geography-model.schema.json +1 -1
  21. package/schemas/gui-animation-source.schema.json +1 -1
  22. package/schemas/gui-helper.schema.json +1 -1
  23. package/schemas/gui-scenario.schema.json +1 -1
  24. package/schemas/helper-expansion-request.schema.json +1 -1
  25. package/schemas/helper-expansion-summary.schema.json +1 -1
  26. package/schemas/impact-inspect-input.schema.json +1 -1
  27. package/schemas/map-operation.schema.json +22 -1
  28. package/schemas/mechanic-test-input.schema.json +1 -1
  29. package/schemas/mod-index-input.schema.json +1 -1
  30. package/schemas/operation-result.schema.json +1 -1
  31. package/schemas/package-check-input.schema.json +1 -1
  32. package/schemas/package-manifest.schema.json +1 -1
  33. package/schemas/probability-analysis-result.schema.json +1 -1
  34. package/schemas/probability-compare-input.schema.json +1 -1
  35. package/schemas/probability-evaluate-input.schema.json +1 -1
  36. package/schemas/probability-inspect-input.schema.json +1 -1
  37. package/schemas/probability-render-input.schema.json +1 -1
  38. package/schemas/probability-scenario-set.schema.json +1 -1
  39. package/schemas/probability-sequence-input.schema.json +1 -1
  40. package/schemas/probability-simulate-input.schema.json +1 -1
  41. package/schemas/probability-sweep-input.schema.json +1 -1
  42. package/schemas/reference-context-input.schema.json +1 -1
  43. package/schemas/reference-read-input.schema.json +1 -1
  44. package/schemas/reference-search-input.schema.json +1 -1
  45. package/schemas/reference-sheets.schema.json +1 -1
  46. package/schemas/scenario-suite.schema.json +1 -1
  47. package/schemas/scenario-test-input.schema.json +1 -1
  48. package/schemas/script-validate-input.schema.json +1 -1
  49. package/schemas/shared-scenario.schema.json +1 -1
  50. package/schemas/source-lookup-input.schema.json +1 -1
  51. package/server.json +2 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 4.16.0 - 2026-11-09
6
+
7
+ - Keep the world output record (`.hoi4-agent-world.json`) current with the tool's own map edits. `update_states`, `move_state_provinces` and every other map operation rewrote recorded state, strategic-region and map files without recording their new hashes, so the next `create_world` refused them as hand edits (`MANAGED_OUTPUT_EDITED`). This happened in a later call and also later in the `create_world` call itself, because the record was planned at the end of `create_world`. ZIN had 191 such files on 9 November: 184 state files and 7 strategic regions. Every map rewrite now records the new hash of each recorded file it writes, and drops each one it deletes, in the same transaction (`MAP_WORLD_OUTPUTS_REFRESHED`). A recorded file edited by hand before the call keeps its old hash and is named in a warning, so it stays protected. The new `record_world_outputs` operation takes the current bytes of every recorded file as the world's own. It is for mods whose record is already stale: it writes only the record, drops files that are gone, and reports the counts (`MAP_WORLD_OUTPUTS_RECORDED`).
8
+
5
9
  ## 4.15.0 - 2026-11-09
6
10
 
7
11
  - Add `create_world.permanentSnow.paintedHeight`. Painted mountains, volcanoes and impassable land put permanent snow above a snow line of their own (232 at the equator to 140 at the poles), which `permanentSnow` did not reach: a ZIN write on 9 November with `iceCapLatitude` 0.97 and `peakHeight` 230 still had 15.37% of its land permanent (804,575 pixels, 20 times the base game's share), of which only about 69,000 were drawn snow. `paintedHeight` (a heightmap value) keeps that line at or above its height, and 256 removes it. `MAP_PERMANENT_SNOW_SHARE` and `MAP_PERMANENT_SNOW_ESTIMATE` gain `bySource`, the permanent pixels above range snow lines, above painted snow lines and on drawn snow, and their warning names the setting of the largest source. Requests without `paintedHeight` write the same files as before.
@@ -24,32 +24,13 @@ export function planManagedOutputs(input) {
24
24
  .filter((f) => f.rootKind === 'mod')
25
25
  .map((f) => [f.relativePath.replaceAll('\\', '/').toLowerCase(), f]));
26
26
  const manifest = sources.get(input.manifestPath.toLowerCase());
27
- const previous = manifest === undefined
28
- ? []
29
- : (() => {
30
- if (manifest.bytes.length > 2_000_000)
31
- throw new ServiceError('MANAGED_OUTPUT_MANIFEST_INVALID', 'Generated-output inventory exceeds its byte limit');
32
- try {
33
- return manifestSchema.parse(JSON.parse(manifest.bytes.toString('utf8'))).files;
34
- }
35
- catch {
36
- throw new ServiceError('MANAGED_OUTPUT_MANIFEST_INVALID', 'Generated-output inventory is invalid');
37
- }
38
- })();
27
+ const previous = manifest === undefined ? [] : parseManifest(manifest.bytes);
39
28
  const outputs = input.proposed.filter((f) => f.content !== null && input.permitsPath(f.relativePath));
40
29
  const next = new Set(outputs.map((f) => f.relativePath.toLowerCase()));
41
30
  const released = new Set();
42
31
  const ignored = new Set();
43
- const seen = new Set();
44
32
  for (const file of previous) {
45
33
  const key = file.relativePath.toLowerCase();
46
- // A path that could leave the workspace, or a duplicate, makes the whole inventory untrustworthy.
47
- if (file.relativePath.includes('\\') ||
48
- file.relativePath.split('/').some((s) => !s || s === '.' || s === '..') ||
49
- /^[a-z]:/iu.test(file.relativePath) ||
50
- seen.has(key))
51
- throw new ServiceError('MANAGED_OUTPUT_MANIFEST_INVALID', 'Generated-output inventory contains an unsupported or duplicate path');
52
- seen.add(key);
53
34
  // A safe path this inventory does not manage is left alone: not compared, not deleted.
54
35
  if (!input.permitsPath(file.relativePath)) {
55
36
  ignored.add(file.relativePath);
@@ -80,12 +61,7 @@ export function planManagedOutputs(input) {
80
61
  ...deletions,
81
62
  {
82
63
  relativePath: input.manifestPath,
83
- content: Buffer.from(canonicalJson({
84
- version: 1,
85
- files: outputs
86
- .map((f) => ({ relativePath: f.relativePath, sha256: sha256Bytes(f.content) }))
87
- .sort((a, b) => compareCodeUnits(a.relativePath, b.relativePath)),
88
- }) + '\n'),
64
+ content: manifestBytes(outputs.map((f) => ({ relativePath: f.relativePath, sha256: sha256Bytes(f.content) }))),
89
65
  operationIds: [input.operationId],
90
66
  mediaType: 'application/json',
91
67
  },
@@ -98,3 +74,103 @@ export function planManagedOutputs(input) {
98
74
  ignored: sorted(ignored),
99
75
  };
100
76
  }
77
+ /**
78
+ * Parse a recorded inventory. An oversized or malformed one, a path that could leave the
79
+ * workspace, or a duplicate makes the whole inventory untrustworthy.
80
+ */
81
+ function parseManifest(bytes) {
82
+ if (bytes.length > 2_000_000)
83
+ throw new ServiceError('MANAGED_OUTPUT_MANIFEST_INVALID', 'Generated-output inventory exceeds its byte limit');
84
+ let files;
85
+ try {
86
+ files = manifestSchema.parse(JSON.parse(Buffer.from(bytes).toString('utf8'))).files;
87
+ }
88
+ catch {
89
+ throw new ServiceError('MANAGED_OUTPUT_MANIFEST_INVALID', 'Generated-output inventory is invalid');
90
+ }
91
+ const seen = new Set();
92
+ for (const file of files) {
93
+ const key = file.relativePath.toLowerCase();
94
+ if (file.relativePath.includes('\\') ||
95
+ file.relativePath.split('/').some((s) => !s || s === '.' || s === '..') ||
96
+ /^[a-z]:/iu.test(file.relativePath) ||
97
+ seen.has(key))
98
+ throw new ServiceError('MANAGED_OUTPUT_MANIFEST_INVALID', 'Generated-output inventory contains an unsupported or duplicate path');
99
+ seen.add(key);
100
+ }
101
+ return files;
102
+ }
103
+ function manifestBytes(files) {
104
+ return Buffer.from(canonicalJson({
105
+ version: 1,
106
+ files: [...files].sort((a, b) => compareCodeUnits(a.relativePath, b.relativePath)),
107
+ }) + '\n');
108
+ }
109
+ /**
110
+ * Bring the recorded hashes of an inventory up to date with the bytes a request leaves behind, so
111
+ * the tool's own later edits (update_states, move_state_provinces and the rest) never read as hand
112
+ * edits. Returns undefined when the workspace has no inventory or this request deletes it.
113
+ */
114
+ export function refreshManagedOutputs(input) {
115
+ const key = (relativePath) => relativePath.replaceAll('\\', '/').toLowerCase();
116
+ const proposed = new Map(input.proposed.map((change) => [key(change.relativePath), change]));
117
+ const sources = new Map(input.sources.filter((f) => f.rootKind === 'mod').map((f) => [key(f.relativePath), f]));
118
+ const manifestKey = key(input.manifestPath);
119
+ const written = proposed.get(manifestKey);
120
+ if (written?.content === null)
121
+ return undefined;
122
+ const bytes = written?.content ?? sources.get(manifestKey)?.bytes;
123
+ if (bytes === undefined)
124
+ return undefined;
125
+ const writtenHere = written !== undefined;
126
+ const refreshed = [];
127
+ const dropped = [];
128
+ const keptEdited = [];
129
+ const unchanged = [];
130
+ const operationIds = new Set();
131
+ const next = [];
132
+ for (const entry of parseManifest(bytes)) {
133
+ const change = proposed.get(key(entry.relativePath));
134
+ const source = sources.get(key(entry.relativePath));
135
+ let current;
136
+ if (change !== undefined) {
137
+ const trusted = writtenHere ||
138
+ input.adoptAll === true ||
139
+ source === undefined ||
140
+ sha256Bytes(source.bytes) === entry.sha256;
141
+ if (!trusted) {
142
+ keptEdited.push(entry.relativePath);
143
+ next.push(entry);
144
+ continue;
145
+ }
146
+ current = change.content;
147
+ for (const id of change.operationIds)
148
+ operationIds.add(id);
149
+ }
150
+ else if (input.adoptAll === true)
151
+ current = source === undefined ? null : source.bytes;
152
+ else {
153
+ next.push(entry);
154
+ continue;
155
+ }
156
+ if (current === null) {
157
+ dropped.push(entry.relativePath);
158
+ continue;
159
+ }
160
+ const sha256 = sha256Bytes(current);
161
+ if (sha256 === entry.sha256)
162
+ unchanged.push(entry.relativePath);
163
+ else
164
+ refreshed.push(entry.relativePath);
165
+ next.push({ relativePath: entry.relativePath, sha256 });
166
+ }
167
+ const changed = refreshed.length > 0 || dropped.length > 0;
168
+ return {
169
+ content: changed ? manifestBytes(next) : undefined,
170
+ refreshed: refreshed.sort(compareCodeUnits),
171
+ dropped: dropped.sort(compareCodeUnits),
172
+ keptEdited: keptEdited.sort(compareCodeUnits),
173
+ unchanged: unchanged.sort(compareCodeUnits),
174
+ operationIds: [...operationIds].sort(compareCodeUnits),
175
+ };
176
+ }
@@ -12,7 +12,7 @@ import { resolveEdge } from './world-edge.js';
12
12
  import { DEFAULT_AUTO_STRAIT_GAP_PX } from './gameplay/crossings.js';
13
13
  import { planMapPositions, planSupplyRebuild } from './derived.js';
14
14
  import { buildWorldContext, countryTagCatalog, WORLD_COUNTRY_TAG_FILE, } from './world-context.js';
15
- import { planWorldOutputs } from './world-outputs.js';
15
+ import { planWorldOutputs, refreshWorldOutputs, WORLD_OUTPUT_MANIFEST } from './world-outputs.js';
16
16
  import { resolvePartitionMode } from './partition.js';
17
17
  import { applyAssignTerritory, applyRepartitionStates, } from './territory-operations.js';
18
18
  import { unsupportedGeographyParts } from './relief/index.js';
@@ -3750,6 +3750,49 @@ function applyRegenerateMapPositions(base, changes, operation) {
3750
3750
  for (const file of planMapPositions(index, operation))
3751
3751
  addChange(changes, file.relativePath, file.content, operation.id, 'text/plain');
3752
3752
  }
3753
+ function worldOutputsRefreshedDiagnostic(refresh) {
3754
+ return {
3755
+ code: 'MAP_WORLD_OUTPUTS_REFRESHED',
3756
+ severity: refresh.keptEdited.length > 0 ? 'warning' : 'info',
3757
+ category: 'map',
3758
+ message: `The world output inventory records the new bytes of ${refresh.refreshed.length} output(s) this request wrote` +
3759
+ (refresh.dropped.length > 0 ? ` and drops ${refresh.dropped.length} it deleted` : '') +
3760
+ (refresh.keptEdited.length > 0
3761
+ ? `; ${refresh.keptEdited.length} output(s) were edited before this request and keep their recorded hash, so the next create_world still refuses them (record_world_outputs adopts them)`
3762
+ : ''),
3763
+ details: {
3764
+ refreshed: refresh.refreshed.length,
3765
+ dropped: refresh.dropped.length,
3766
+ keptEdited: refresh.keptEdited.slice(0, 200),
3767
+ keptEditedCount: refresh.keptEdited.length,
3768
+ },
3769
+ };
3770
+ }
3771
+ /**
3772
+ * `record_world_outputs`: adopt the current bytes of every output the world inventory records, so
3773
+ * the next create_world takes them as the world's own. Recorded files that are gone are dropped.
3774
+ */
3775
+ function applyRecordWorldOutputs(base, changes, operation) {
3776
+ const refresh = refreshWorldOutputs(base.sourceFiles, proposedChanges(changes), true);
3777
+ if (refresh === undefined)
3778
+ throw new ServiceError('MAP_WORLD_OUTPUTS_MISSING', `The workspace has no world output inventory (${WORLD_OUTPUT_MANIFEST}) to record; only a mod written by create_world has one`);
3779
+ if (refresh.content !== undefined)
3780
+ addChange(changes, WORLD_OUTPUT_MANIFEST, refresh.content, operation.id, 'application/json');
3781
+ return {
3782
+ code: 'MAP_WORLD_OUTPUTS_RECORDED',
3783
+ severity: 'info',
3784
+ category: 'map',
3785
+ operationId: operation.id,
3786
+ message: `The world output inventory now records the current bytes of its outputs: ${refresh.refreshed.length} refreshed, ${refresh.unchanged.length} unchanged, ${refresh.dropped.length} dropped because the file is gone`,
3787
+ details: {
3788
+ refreshed: refresh.refreshed.length,
3789
+ unchanged: refresh.unchanged.length,
3790
+ dropped: refresh.dropped.length,
3791
+ refreshedPaths: refresh.refreshed.slice(0, 200),
3792
+ droppedPaths: refresh.dropped.slice(0, 200),
3793
+ },
3794
+ };
3795
+ }
3753
3796
  function applyRebuildSupply(base, changes, operation) {
3754
3797
  const index = currentIndex(base, changes);
3755
3798
  for (const file of planSupplyRebuild(index, operation))
@@ -3922,6 +3965,8 @@ function* planMapOperationSteps(base, operations, signal, context = {}) {
3922
3965
  applyRegenerateMapPositions(base, changes, operation);
3923
3966
  else if (operation.kind === 'rebuild_supply')
3924
3967
  applyRebuildSupply(base, changes, operation);
3968
+ else if (operation.kind === 'record_world_outputs')
3969
+ diagnostics.push(applyRecordWorldOutputs(base, changes, operation));
3925
3970
  else
3926
3971
  handleSimpleOperation(base, changes, operation);
3927
3972
  diagnostics.push(...(diagnosticsByPlan.get(changes) ?? []));
@@ -3959,6 +4004,18 @@ function* planMapOperationSteps(base, operations, signal, context = {}) {
3959
4004
  });
3960
4005
  }
3961
4006
  }
4007
+ // The tool's own later edits of world outputs must never read as hand edits at the next
4008
+ // create_world, in this request or a later one.
4009
+ const refresh = refreshWorldOutputs(base.sourceFiles, proposedChanges(changes));
4010
+ if (refresh?.content !== undefined) {
4011
+ const [first, ...rest] = refresh.operationIds;
4012
+ addChange(changes, WORLD_OUTPUT_MANIFEST, refresh.content, first, 'application/json');
4013
+ for (const id of rest)
4014
+ changes.get(normalizeRelative(WORLD_OUTPUT_MANIFEST)).operationIds.add(id);
4015
+ diagnostics.push(worldOutputsRefreshedDiagnostic(refresh));
4016
+ }
4017
+ else if (refresh !== undefined && refresh.keptEdited.length > 0)
4018
+ diagnostics.push(worldOutputsRefreshedDiagnostic(refresh));
3962
4019
  const finalized = proposedChanges(changes);
3963
4020
  yield* cancellationCheckpoint(signal);
3964
4021
  const finalIndex = indexWithProposedChanges(base, finalized, replacedRootsByPlan.get(changes) ?? []);
@@ -1,5 +1,5 @@
1
1
  import path from 'node:path';
2
- import { planManagedOutputs } from '../core/managed-outputs.js';
2
+ import { planManagedOutputs, refreshManagedOutputs, } from '../core/managed-outputs.js';
3
3
  export const WORLD_OUTPUT_MANIFEST = '.hoi4-agent-world.json';
4
4
  /** Country outputs of a generated world: tags, country files, histories, units, flags, bookmark. */
5
5
  export function isWorldCountryOutput(relativePath) {
@@ -19,6 +19,19 @@ export function reconcileWorldOutputs(sources, proposed, operationId, mapRoot, s
19
19
  return planWorldOutputs(sources, proposed, operationId, mapRoot, stateRoots, localisationRoots)
20
20
  .changes;
21
21
  }
22
+ /**
23
+ * The world inventory brought up to date with the bytes a request leaves behind: every recorded
24
+ * output the request writes gets its new hash, or with `adoptAll` every recorded output its
25
+ * current bytes (`record_world_outputs`). Undefined when the workspace has no world inventory.
26
+ */
27
+ export function refreshWorldOutputs(sources, proposed, adoptAll = false) {
28
+ return refreshManagedOutputs({
29
+ manifestPath: WORLD_OUTPUT_MANIFEST,
30
+ sources,
31
+ proposed,
32
+ ...(adoptAll ? { adoptAll: true } : {}),
33
+ });
34
+ }
22
35
  export function planWorldOutputs(sources, proposed, operationId, mapRoot, stateRoots, localisationRoots, options = {}) {
23
36
  const mapFiles = new Set([
24
37
  'provinces.bmp',
@@ -1175,6 +1175,14 @@ export const mapOperationSchema = z.discriminatedUnion('kind', [
1175
1175
  .describe('missing adds only absent positions; replace rewrites them for the selection.'),
1176
1176
  })
1177
1177
  .strict(),
1178
+ z
1179
+ .object({
1180
+ ...operationBase,
1181
+ kind: z
1182
+ .literal('record_world_outputs')
1183
+ .describe('Adopt the current bytes of every output the world inventory (.hoi4-agent-world.json) records, so the next create_world overwrites them instead of refusing them as edited (MANAGED_OUTPUT_EDITED). Recorded files that are gone are dropped. Reports MAP_WORLD_OUTPUTS_RECORDED.'),
1184
+ })
1185
+ .strict(),
1178
1186
  z
1179
1187
  .object({
1180
1188
  ...operationBase,
@@ -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.15.0';
3
+ export const PACKAGE_VERSION = '4.16.0';
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/map.md CHANGED
@@ -527,6 +527,8 @@ Continents are the largest landmasses, numbered `world_continent_1` and up and n
527
527
 
528
528
  Each write records its generated files in `.hoi4-agent-world.json`. A later `create_world` deletes the recorded files it no longer writes (retires them) in the same transaction and refuses with `MANAGED_OUTPUT_EDITED` when a recorded file was edited since. `MAP_WORLD_OUTPUTS_RECONCILED` and `data.outputs` give the counts of written, retired and released files with up to 200 paths each; `map-world-outputs.json` lists them all.
529
529
 
530
+ Every map rewrite keeps that record current with its own edits. When `update_states`, `move_state_provinces` or any other operation writes a recorded file, in a later call or later in the `create_world` call, the same transaction records the file's new hash (`MAP_WORLD_OUTPUTS_REFRESHED`), and a recorded file it deletes leaves the record. A recorded file that was edited by hand before the call keeps its old hash, and the note is then a warning that names it, so the next `create_world` still refuses it. To take the current bytes of every recorded file as the world's own, for example in a mod whose record a version before 4.16.0 left stale, run `{ "kind": "record_world_outputs" }`. It changes only `.hoi4-agent-world.json`, drops recorded files that are gone, and reports the counts in `MAP_WORLD_OUTPUTS_RECORDED`. Afterwards the next `create_world` overwrites those files without refusing them. Without a record it is refused with `MAP_WORLD_OUTPUTS_MISSING`. Edits made through other tools (localisation, GUI, focus) are not recorded.
531
+
530
532
  Every applied map rewrite also returns `data.changedSummary` with the number of changed files (`total`, `created`, `removed`, `modified`) and the same counts for the 40 folders with the most changes (two levels deep, `.` for the mod root, `omittedFolders` for the rest), so the size of a write is visible even when the inline `changedFiles` list is cut.
531
533
 
532
534
  ### Countries the mod already owns
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "win32-x64": {
21
21
  "file": "win32-x64/hoi4-engine.exe",
22
- "sha256": "f476db7b7916da8768d1354dd1cd419ebfd25c6d87832a55a1221c426525e154",
22
+ "sha256": "206a193d504767313d421d39bfe70d2e076329449d183ec26c6cda9a73ce924f",
23
23
  "size": 4474880
24
24
  }
25
25
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "hoi4-agent-tools",
3
- "version": "4.15.0",
3
+ "version": "4.16.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "hoi4-agent-tools",
9
- "version": "4.15.0",
9
+ "version": "4.16.0",
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.15.0",
4
+ "version": "4.16.0",
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.15.0/schemas/configuration.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/continuous-focus-palette.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/custom-weighted-pool.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/decision-inspect-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/error-log-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.0/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.15.0/schemas/event-feature-manifest.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/focus-plan.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/focus-planning-sidecar.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/geography-model.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.0/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.15.0/schemas/gui-animation-source.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/gui-helper.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/gui-scenario.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/helper-expansion-request.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/helper-expansion-summary.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/impact-inspect-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/map-operation.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.0/schemas/map-operation.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "oneOf": [
5
5
  {
@@ -1152,6 +1152,27 @@
1152
1152
  ],
1153
1153
  "additionalProperties": false
1154
1154
  },
1155
+ {
1156
+ "type": "object",
1157
+ "properties": {
1158
+ "id": {
1159
+ "$ref": "#/$defs/__schema0"
1160
+ },
1161
+ "summary": {
1162
+ "$ref": "#/$defs/__schema1"
1163
+ },
1164
+ "kind": {
1165
+ "type": "string",
1166
+ "const": "record_world_outputs",
1167
+ "description": "Adopt the current bytes of every output the world inventory (.hoi4-agent-world.json) records, so the next create_world overwrites them instead of refusing them as edited (MANAGED_OUTPUT_EDITED). Recorded files that are gone are dropped. Reports MAP_WORLD_OUTPUTS_RECORDED."
1168
+ }
1169
+ },
1170
+ "required": [
1171
+ "id",
1172
+ "kind"
1173
+ ],
1174
+ "additionalProperties": false
1175
+ },
1155
1176
  {
1156
1177
  "type": "object",
1157
1178
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.15.0/schemas/mechanic-test-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/mod-index-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.0/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.15.0/schemas/operation-result.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/package-check-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/package-manifest.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/probability-analysis-result.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/probability-compare-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/probability-evaluate-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/probability-inspect-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/probability-render-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/probability-scenario-set.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/probability-sequence-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/probability-simulate-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/probability-sweep-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/reference-context-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/reference-read-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.15.0/schemas/reference-search-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/reference-sheets.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.0/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.15.0/schemas/scenario-suite.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/scenario-test-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.15.0/schemas/script-validate-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.0/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.15.0/schemas/shared-scenario.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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/v4.15.0/schemas/source-lookup-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.16.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": {
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.15.0",
6
+ "version": "4.16.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": "4.15.0",
16
+ "version": "4.16.0",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  }