hoi4-agent-tools 4.9.0 → 4.10.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 (64) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/hoi4_agent_tools/event/graph.js +16 -2
  3. package/dist/hoi4_agent_tools/event/source-analysis.js +35 -16
  4. package/dist/hoi4_agent_tools/map/gameplay/reachability.js +81 -0
  5. package/dist/hoi4_agent_tools/map/geography/resolve.js +3 -0
  6. package/dist/hoi4_agent_tools/map/operations.js +8 -0
  7. package/dist/hoi4_agent_tools/map/partition-tuning.js +2 -1
  8. package/dist/hoi4_agent_tools/map/reference-world.js +17 -3
  9. package/dist/hoi4_agent_tools/map/relief/painted-relief.js +143 -0
  10. package/dist/hoi4_agent_tools/map/relief/terrain-synthesis.js +13 -0
  11. package/dist/hoi4_agent_tools/map/world.js +108 -23
  12. package/dist/hoi4_agent_tools/probability/model.js +4 -4
  13. package/dist/hoi4_agent_tools/probability/operations.js +6 -0
  14. package/dist/hoi4_agent_tools/probability/service.js +23 -0
  15. package/dist/hoi4_agent_tools/schemas/geography.js +5 -0
  16. package/dist/hoi4_agent_tools/schemas/map.js +29 -0
  17. package/dist/hoi4_agent_tools/version.js +1 -1
  18. package/docs/map.md +12 -9
  19. package/docs/probability.md +1 -1
  20. package/docs/research/probability-adapter-evidence.md +15 -2
  21. package/engine/bin/manifest.json +1 -1
  22. package/engine/bin/win32-x64/hoi4-engine.exe +0 -0
  23. package/npm-shrinkwrap.json +2 -2
  24. package/package.json +1 -1
  25. package/schemas/configuration.schema.json +1 -1
  26. package/schemas/continuous-focus-palette.schema.json +1 -1
  27. package/schemas/custom-weighted-pool.schema.json +1 -1
  28. package/schemas/decision-inspect-input.schema.json +1 -1
  29. package/schemas/error-log-input.schema.json +1 -1
  30. package/schemas/event-feature-manifest.schema.json +1 -1
  31. package/schemas/focus-plan.schema.json +1 -1
  32. package/schemas/focus-planning-sidecar.schema.json +1 -1
  33. package/schemas/geography-model.schema.json +4 -1
  34. package/schemas/gui-animation-source.schema.json +1 -1
  35. package/schemas/gui-helper.schema.json +1 -1
  36. package/schemas/gui-scenario.schema.json +1 -1
  37. package/schemas/helper-expansion-request.schema.json +1 -1
  38. package/schemas/helper-expansion-summary.schema.json +1 -1
  39. package/schemas/impact-inspect-input.schema.json +1 -1
  40. package/schemas/map-operation.schema.json +177 -118
  41. package/schemas/mechanic-test-input.schema.json +1 -1
  42. package/schemas/mod-index-input.schema.json +1 -1
  43. package/schemas/operation-result.schema.json +1 -1
  44. package/schemas/package-check-input.schema.json +1 -1
  45. package/schemas/package-manifest.schema.json +1 -1
  46. package/schemas/probability-analysis-result.schema.json +1 -1
  47. package/schemas/probability-compare-input.schema.json +1 -1
  48. package/schemas/probability-evaluate-input.schema.json +1 -1
  49. package/schemas/probability-inspect-input.schema.json +1 -1
  50. package/schemas/probability-render-input.schema.json +1 -1
  51. package/schemas/probability-scenario-set.schema.json +1 -1
  52. package/schemas/probability-sequence-input.schema.json +1 -1
  53. package/schemas/probability-simulate-input.schema.json +1 -1
  54. package/schemas/probability-sweep-input.schema.json +1 -1
  55. package/schemas/reference-context-input.schema.json +1 -1
  56. package/schemas/reference-read-input.schema.json +1 -1
  57. package/schemas/reference-search-input.schema.json +1 -1
  58. package/schemas/reference-sheets.schema.json +1 -1
  59. package/schemas/scenario-suite.schema.json +1 -1
  60. package/schemas/scenario-test-input.schema.json +1 -1
  61. package/schemas/script-validate-input.schema.json +1 -1
  62. package/schemas/shared-scenario.schema.json +1 -1
  63. package/schemas/source-lookup-input.schema.json +1 -1
  64. package/server.json +2 -2
@@ -16,6 +16,7 @@ import { buildTerritoryAtoms, territoryGraphFromPartition } from './territory-gr
16
16
  import { growTerritory } from './territory.js';
17
17
  import { geographyPartitionFields, provinceCountNote, surfacePartitionFields, } from './world-partition.js';
18
18
  import { adjacencyRowText, adjacencyRulesText } from './gameplay/crossings.js';
19
+ import { realmReachNotes } from './gameplay/reachability.js';
19
20
  import { convertInlandSeas } from './gameplay/inland-sea.js';
20
21
  import { planEconomy } from './gameplay/economy.js';
21
22
  import { prepareGameplay } from './gameplay/prepare.js';
@@ -23,6 +24,8 @@ import { fractal, lattice } from './world-noise.js';
23
24
  import { calibratedColourMap, COLOUR_CLASSES, } from './colormap.js';
24
25
  import { ambientObjectText, applyEdgePolicy, assertFeaturesOutsideBand, edgeWaterDarkness, hasRimRange, RIM_COLOUR_FACTOR, rimAdjacencyRows, rimHeight, rimStrength, WALL_TERRAIN_KINDS, wallRowKinds, } from './world-edge.js';
25
26
  import { landDistanceField, lakeHeight, normalizeLakes, waterColourLevel } from './water.js';
27
+ import { DEFAULT_PAINTED_RELIEF } from './relief/painted-relief.js';
28
+ import { rowStrips, scanAreaStrip } from './geography/index.js';
26
29
  import { overlayGeographyLakes, rasterizeGeographyKind } from './relief/land.js';
27
30
  import { checkTerrainRivers, synthesizeTerrain, } from './relief/terrain-synthesis.js';
28
31
  import { assignUnreachedRealmLand, checkRealmPoints, realmPointsError, resolveRealmRules, } from './world-realms.js';
@@ -255,6 +258,8 @@ function geographySurface(spec, geography, reference) {
255
258
  }
256
259
  return { kind, elevation: new Float32Array(total), moisture };
257
260
  }
261
+ /** Land relief of the base game 1.19.4.1 (`reliefStatistics` over its land provinces). */
262
+ export const VANILLA_RELIEF = { median: 107, p99: 213, maximum: 239, meanStep: 2.69 };
258
263
  function terrainSummaryNote(terrain, geography) {
259
264
  const { relief, riverStatistics } = terrain;
260
265
  return {
@@ -264,6 +269,8 @@ function terrainSummaryNote(terrain, geography) {
264
269
  details: {
265
270
  modelHash: geography.hash,
266
271
  relief,
272
+ // The base game 1.19.4.1 over its land provinces, for comparison.
273
+ vanilla: VANILLA_RELIEF,
267
274
  rivers: riverStatistics,
268
275
  // The first of the named rivers only: the response budget is shared with everything else the
269
276
  // world reports, and a river that did not complete is always listed.
@@ -465,14 +472,27 @@ function realmPins(realms, width, height, kind) {
465
472
  }
466
473
  return pins.map(({ pixel }) => pixel);
467
474
  }
475
+ /** The union of painted impassable land and the model's impassable regions, or undefined. */
476
+ function impassableLand(painted, geography, width, height) {
477
+ const regions = (geography?.regions ?? []).filter((region) => region.impassable === true && region.area !== undefined);
478
+ if (regions.length === 0)
479
+ return painted;
480
+ const mask = painted === undefined ? new Uint8Array(width * height) : new Uint8Array(painted);
481
+ const grid = { width, height };
482
+ for (const strip of rowStrips(grid))
483
+ for (const region of regions)
484
+ scanAreaStrip(region.area, grid, strip, (y, x0, x1) => mask.fill(1, y * width + x0, y * width + x1));
485
+ return mask;
486
+ }
468
487
  /**
469
- * Make the states of a `wall` edge what the base game's impassable states are: `impassable = yes`,
488
+ * Make the states of a `wall` edge and of impassable land (ZR-28) what the base game's impassable
489
+ * states are: `impassable = yes`,
470
490
  * linked by `force_link_ownership_to` to the nearest passable state and owned as it is, `enclave`
471
491
  * where the category exists, and without infrastructure, buildings, resources, victory points,
472
492
  * ports or forts. Nearest counts province steps over land and water, since a wall often stands
473
493
  * in what was sea; ties go to the passable state met through most borders, then the lowest id.
474
494
  */
475
- function finishWallStates(states, neighbors, context) {
495
+ function finishImpassableStates(states, neighbors, context) {
476
496
  const stateOfProvince = new Map();
477
497
  for (const state of states)
478
498
  for (const id of state.provinces)
@@ -554,6 +574,8 @@ export function generateWorld(spec, context, options = {}) {
554
574
  if (reference !== undefined && (reference.width !== width || reference.height !== height))
555
575
  throw new ServiceError('MAP_WORLD_REFERENCE_DIMENSIONS', 'Reference raster dimensions do not match the world');
556
576
  const geography = spec.geography;
577
+ if (spec.paintedRelief !== undefined && (reference === undefined || geography === undefined))
578
+ throw new ServiceError('MAP_RELIEF_PAINTED_INPUTS', 'relief.painted raises the relief from the classes of a reference picture onto a geography model; give both reference and geography', { reference: reference !== undefined, geography: geography !== undefined });
557
579
  if (geography !== undefined &&
558
580
  (geography.frame.width !== width || geography.frame.height !== height))
559
581
  throw new ServiceError('MAP_GEOGRAPHY_FRAME_MISMATCH', 'The geography model was resolved for a different map size than the world being created', {
@@ -572,6 +594,27 @@ export function generateWorld(spec, context, options = {}) {
572
594
  const notes = [];
573
595
  const edge = spec.edge ?? { mode: 'none', bandPx: 0, polarPx: 0, rimPx: 0 };
574
596
  let wallMask;
597
+ // Land no army may enter: painted `impassable_mountain` of the reference picture and the
598
+ // impassable regions of the geography model (ZR-28).
599
+ const impassableMask = impassableLand(reference?.impassable, geography, width, height);
600
+ // Impassable land is the highest ground even without relief.painted: then only it is raised.
601
+ const painted = geography === undefined
602
+ ? undefined
603
+ : spec.paintedRelief !== undefined && reference !== undefined
604
+ ? {
605
+ classes: reference.terrain,
606
+ impassable: impassableMask,
607
+ settings: spec.paintedRelief,
608
+ seed: spec.seed,
609
+ }
610
+ : impassableMask !== undefined
611
+ ? {
612
+ classes: new Uint8Array(width * height),
613
+ impassable: impassableMask,
614
+ settings: DEFAULT_PAINTED_RELIEF,
615
+ seed: spec.seed,
616
+ }
617
+ : undefined;
575
618
  if (edge.mode !== 'none') {
576
619
  assertFeaturesOutsideBand(edge, width, height, (spec.referenceCities ?? []).map(({ name, x, y }) => ({ name, x, y, kind: 'city' })));
577
620
  const applied = applyEdgePolicy(surface.kind, surface.elevation, width, height, edge, spec.seed, Math.max(40, Math.round(spec.landProvincePixels / 4)));
@@ -624,6 +667,7 @@ export function generateWorld(spec, context, options = {}) {
624
667
  adjustHeight: hasRimRange(edge)
625
668
  ? (x, _y, value) => rimHeight(value, rimStrength(edge, width, x))
626
669
  : undefined,
670
+ painted,
627
671
  signal: options.signal,
628
672
  });
629
673
  for (const note of checked) {
@@ -685,6 +729,7 @@ export function generateWorld(spec, context, options = {}) {
685
729
  adjustHeight: hasRimRange(edge)
686
730
  ? (x, _y, value) => rimHeight(value, rimStrength(edge, width, x))
687
731
  : undefined,
732
+ painted,
688
733
  signal: options.signal,
689
734
  });
690
735
  if (synthesized !== undefined) {
@@ -839,17 +884,32 @@ export function generateWorld(spec, context, options = {}) {
839
884
  const landIds = [...Array(count).keys()].filter((id) => provinces.kind[id] === LAND);
840
885
  const seaIds = [...Array(count).keys()].filter((id) => provinces.kind[id] === SEA);
841
886
  const lakeIds = [...Array(count).keys()].filter((id) => provinces.kind[id] === LAKE);
842
- // A land province with most of its pixels in the wall belongs to the wall's impassable states.
843
- const wallProvinces = new Set();
844
- if (wallMask !== undefined) {
845
- const inWall = new Uint32Array(count);
846
- for (let pixel = 0; pixel < wallMask.length; pixel += 1)
847
- if (wallMask[pixel] === 1)
848
- inWall[provinces.pixel[pixel]] += 1;
887
+ // A land province with most of its pixels in the wall, or in land painted impassable (ZR-28),
888
+ // belongs to impassable states.
889
+ const majorityIn = (mask) => {
890
+ const found = new Set();
891
+ if (mask === undefined)
892
+ return found;
893
+ const inside = new Uint32Array(count);
894
+ for (let pixel = 0; pixel < mask.length; pixel += 1)
895
+ if (mask[pixel] === 1)
896
+ inside[provinces.pixel[pixel]] += 1;
849
897
  for (const id of landIds)
850
- if (inWall[id] * 2 > provinces.size[id])
851
- wallProvinces.add(id);
852
- }
898
+ if (inside[id] * 2 > provinces.size[id])
899
+ found.add(id);
900
+ return found;
901
+ };
902
+ const wallProvinces = majorityIn(wallMask);
903
+ const impassableProvinces = new Set([...wallProvinces, ...majorityIn(impassableMask)]);
904
+ const offendingCities = (spec.referenceCities ?? []).filter(({ x, y }) => {
905
+ const pixel = Math.floor(y) * width + Math.floor(x);
906
+ return impassableMask?.[pixel] === 1;
907
+ });
908
+ if (offendingCities.length > 0)
909
+ throw new ServiceError('MAP_FEATURE_IN_IMPASSABLE', `${offendingCities.length} city or cities stand on impassable land: ${offendingCities
910
+ .slice(0, 5)
911
+ .map(({ name, x, y }) => `${name} (${Math.round(x)}, ${Math.round(y)})`)
912
+ .join('; ')}. Move them or repaint the land.`, { cities: offendingCities.slice(0, 20) });
853
913
  if (landIds.length < spec.countries.length)
854
914
  throw new ServiceError('MAP_WORLD_LAND_TOO_SMALL', 'The generated land has fewer provinces than countries; raise landCoverage or lower landProvincePixels', { landProvinces: landIds.length, countries: spec.countries.length });
855
915
  const coastal = (id) => [...provinces.neighbors[id]].some((other) => provinces.kind[id] === SEA
@@ -1075,7 +1135,7 @@ export function generateWorld(spec, context, options = {}) {
1075
1135
  });
1076
1136
  const capitals = [];
1077
1137
  const largest = landIds
1078
- .filter((id) => !wallProvinces.has(id))
1138
+ .filter((id) => !impassableProvinces.has(id))
1079
1139
  .sort((left, right) => provinces.size[right] - provinces.size[left] || left - right);
1080
1140
  const realmRules = spec.realms === undefined
1081
1141
  ? undefined
@@ -1087,12 +1147,16 @@ export function generateWorld(spec, context, options = {}) {
1087
1147
  isLand: (id) => provinces.kind[id] === LAND,
1088
1148
  });
1089
1149
  if (realmRules !== undefined) {
1090
- const walled = realmRules.capitals.flatMap((id, index) => wallProvinces.has(id) ? [{ tag: spec.countries[index]?.tag, ...center(id) }] : []);
1091
- if (walled.length > 0)
1092
- throw new ServiceError('MAP_EDGE_FEATURE_IN_BAND', `${walled.length} capital(s) stand in the impassable wall at the seam: ${walled
1150
+ const walled = realmRules.capitals.flatMap((id, index) => impassableProvinces.has(id)
1151
+ ? [{ tag: spec.countries[index]?.tag, wall: wallProvinces.has(id), ...center(id) }]
1152
+ : []);
1153
+ if (walled.length > 0) {
1154
+ const atSeam = walled.some(({ wall }) => wall);
1155
+ throw new ServiceError(atSeam ? 'MAP_EDGE_FEATURE_IN_BAND' : 'MAP_FEATURE_IN_IMPASSABLE', `${walled.length} capital(s) stand on impassable land${atSeam ? ' (the wall at the seam)' : ''}: ${walled
1093
1156
  .slice(0, 5)
1094
1157
  .map(({ tag, x, y }) => `${tag ?? '?'} (${Math.round(x)}, ${Math.round(y)})`)
1095
- .join('; ')}. Move them inland or narrow edge.rimPx.`, { mode: edge.mode, rimPx: edge.rimPx, capitals: walled.slice(0, 20) });
1158
+ .join('; ')}. Move them${atSeam ? ' inland or narrow edge.rimPx' : ' onto passable land'}.`, { mode: edge.mode, rimPx: edge.rimPx, capitals: walled.slice(0, 20) });
1159
+ }
1096
1160
  capitals.push(...realmRules.capitals);
1097
1161
  }
1098
1162
  while (capitals.length < countryCount) {
@@ -1117,7 +1181,7 @@ export function generateWorld(spec, context, options = {}) {
1117
1181
  let best = -1;
1118
1182
  let bestDistance = -1;
1119
1183
  for (const id of landIds) {
1120
- if (capitals.includes(id) || wallProvinces.has(id))
1184
+ if (capitals.includes(id) || impassableProvinces.has(id))
1121
1185
  continue;
1122
1186
  const c = center(id);
1123
1187
  const distance = Math.min(...capitals.map((other) => Math.hypot(center(other).x - c.x, center(other).y - c.y)));
@@ -1230,7 +1294,7 @@ export function generateWorld(spec, context, options = {}) {
1230
1294
  // States: within each region and country, clusters of about provincesPerState.
1231
1295
  const groups = new Map();
1232
1296
  for (const id of landIds) {
1233
- const key = `${regionOf.get(id)}:${owner.get(id) ?? -1}${wallProvinces.has(id) ? ':wall' : ''}`;
1297
+ const key = `${regionOf.get(id)}:${owner.get(id) ?? -1}${impassableProvinces.has(id) ? ':impassable' : ''}`;
1234
1298
  const list = groups.get(key) ?? [];
1235
1299
  list.push(id);
1236
1300
  groups.set(key, list);
@@ -1268,7 +1332,7 @@ export function generateWorld(spec, context, options = {}) {
1268
1332
  victoryPoints: new Map(),
1269
1333
  navalBases: new Map(),
1270
1334
  forts: new Map(),
1271
- ...(key.endsWith(':wall') ? { impassable: true } : {}),
1335
+ ...(key.endsWith(':impassable') ? { impassable: true } : {}),
1272
1336
  };
1273
1337
  states.push(draft);
1274
1338
  for (const id of sorted)
@@ -1457,7 +1521,7 @@ export function generateWorld(spec, context, options = {}) {
1457
1521
  if (stateOf.get(id).navalBases.has(id))
1458
1522
  hasPort = true;
1459
1523
  if (coastal(id) &&
1460
- !wallProvinces.has(id) &&
1524
+ !impassableProvinces.has(id) &&
1461
1525
  (bestCoast === undefined || provinces.size[id] > provinces.size[bestCoast]))
1462
1526
  bestCoast = id;
1463
1527
  for (const next of provinces.neighbors[id])
@@ -1472,8 +1536,8 @@ export function generateWorld(spec, context, options = {}) {
1472
1536
  stateOf.get(bestCoast).navalBases.set(bestCoast, 1);
1473
1537
  }
1474
1538
  }
1475
- if (wallProvinces.size > 0)
1476
- finishWallStates(states, provinces.neighbors, context);
1539
+ if (impassableProvinces.size > 0)
1540
+ finishImpassableStates(states, provinces.neighbors, context);
1477
1541
  // Province IDs: 1-based in reading order of the province's first pixel; 0 is the null row.
1478
1542
  const provinceId = (index) => index + 1;
1479
1543
  // Unique colours, never black.
@@ -1541,6 +1605,27 @@ export function generateWorld(spec, context, options = {}) {
1541
1605
  details: { rows: rimRows.length },
1542
1606
  });
1543
1607
  const crossingRows = (gameplay?.crossings.rows ?? []).map(adjacencyRowText);
1608
+ // Impassable land and rows must not cut a realm apart or box it in by accident (ZR-28).
1609
+ if (impassableProvinces.size > 0 || (gameplay?.crossings.blocked.length ?? 0) > 0)
1610
+ for (const note of realmReachNotes({
1611
+ kind: provinces.kind,
1612
+ neighbors: provinces.neighbors,
1613
+ impassable: impassableProvinces,
1614
+ blocked: [
1615
+ ...(gameplay?.crossings.blocked ?? []),
1616
+ ...rimRows.map((row) => {
1617
+ const [from, to] = row.split(';').map(Number);
1618
+ return [from - 1, to - 1];
1619
+ }),
1620
+ ],
1621
+ crossings: (gameplay?.crossings.rows ?? [])
1622
+ .filter(({ type }) => type === 'sea')
1623
+ .map(({ from, to }) => [from - 1, to - 1]),
1624
+ owner,
1625
+ capitals,
1626
+ tags: spec.countries.map(({ tag }) => tag),
1627
+ }))
1628
+ notes.push(note);
1544
1629
  add(`${map}/adjacencies.csv`, text(`From;To;Type;Through;start_x;start_y;stop_x;stop_y;adjacency_rule_name;Comment\r\n${[...crossingRows, ...rimRows].map((row) => `${row}\r\n`).join('')}-1;-1;;-1;-1;-1;-1;-1;-1\r\n`));
1545
1630
  add(`${map}/adjacency_rules.txt`, text(gameplay === undefined
1546
1631
  ? '# No straits or canals in this world yet.\n'
@@ -1,5 +1,5 @@
1
1
  export const PROBABILITY_SCHEMA_VERSION = 1;
2
- export const PROBABILITY_ADAPTER_VERSION = 'hoi4-1.19.2.v1';
3
- export const VERIFIED_GAME_VERSION = 'Operation Postern 1.19.2.0 (d245)';
4
- export const VERIFIED_GAME_RAW_VERSION = '1.19.2.0';
5
- export const VERIFIED_GAME_CHECKSUM = 'd245';
2
+ export const PROBABILITY_ADAPTER_VERSION = 'hoi4-1.19.4.1.v1';
3
+ export const VERIFIED_GAME_VERSION = 'Operation Postern 1.19.4.1 (f584)';
4
+ export const VERIFIED_GAME_RAW_VERSION = '1.19.4.1';
5
+ export const VERIFIED_GAME_CHECKSUM = 'f584';
@@ -1,6 +1,7 @@
1
1
  import { emptyServiceResult } from '../core/result.js';
2
2
  import { setInlineFilesScanned } from '../core/operation-result.js';
3
3
  import { probabilityCompareRequestSchema, probabilityEvaluateRequestSchema, probabilityInspectRequestSchema, probabilityRenderRequestSchema, probabilitySequenceRequestSchema, probabilitySimulateRequestSchema, probabilitySweepRequestSchema, probabilityAnalyzeRequestSchema, splitProbabilityAnalyzeRequest, } from '../schemas/probability-requests.js';
4
+ import { gameVersionDiagnostics } from './service.js';
4
5
  function runtime(context, refresh) {
5
6
  return {
6
7
  workspaceId: context.workspaceId,
@@ -305,6 +306,11 @@ export async function inspectProbabilities(analyzer, input, context) {
305
306
  : inspected.discovery !== undefined
306
307
  ? 'PROBABILITY_SOURCE_DISCOVERED'
307
308
  : 'PROBABILITY_ADAPTERS_LISTED';
309
+ if (surface !== undefined)
310
+ result.diagnostics = [
311
+ ...gameVersionDiagnostics(surface.gameVersionVerification),
312
+ ...result.diagnostics,
313
+ ];
308
314
  result.artifacts = inspected.artifacts;
309
315
  setInlineFilesScanned(result, inspected.filesScanned);
310
316
  return result;
@@ -666,6 +666,28 @@ function diagnosticsFor(scenarios, surface, extra = {}) {
666
666
  }
667
667
  return diagnostics;
668
668
  }
669
+ /** Reports an installed game the adapters were not checked against (#70). */
670
+ export function gameVersionDiagnostics(verification) {
671
+ if (verification.status !== 'workspace_observed')
672
+ return [];
673
+ return [
674
+ {
675
+ code: 'PROBABILITY_GAME_BUILD_UNVERIFIED',
676
+ severity: 'warning',
677
+ category: 'configuration',
678
+ message: `The installed game is ${verification.observedVersion ?? verification.observedRawVersion ?? 'unknown'}, but the weighting rules were checked against ${verification.adapterTarget}. The documented rules are applied unchanged, so recheck results that depend on rules the new build may have changed.`,
679
+ details: {
680
+ adapterTarget: verification.adapterTarget,
681
+ ...(verification.observedRawVersion === undefined
682
+ ? {}
683
+ : { observedRawVersion: verification.observedRawVersion }),
684
+ ...(verification.observedChecksum === undefined
685
+ ? {}
686
+ : { observedChecksum: verification.observedChecksum }),
687
+ },
688
+ },
689
+ ];
690
+ }
669
691
  function deduplicateUnresolved(values) {
670
692
  const output = new Map();
671
693
  for (const value of values) {
@@ -969,6 +991,7 @@ export class ProbabilityAnalyzer {
969
991
  : { diagnosticThresholds: extra.diagnosticThresholds }),
970
992
  ...(extra.unresolved === undefined ? {} : { unresolved: extra.unresolved }),
971
993
  }),
994
+ ...gameVersionDiagnostics(metadata.gameVersionVerification),
972
995
  ...(extra.diagnostics ?? []),
973
996
  ],
974
997
  unresolved,
@@ -149,6 +149,11 @@ const regionSchema = z
149
149
  })
150
150
  .strict()
151
151
  .optional(),
152
+ /**
153
+ * Land inside the region's polygons that no army may enter (ZR-28): its provinces form
154
+ * impassable states, and the relief raises it to the highest ground.
155
+ */
156
+ impassable: z.boolean().optional(),
152
157
  })
153
158
  .strict();
154
159
  const rangeSchema = z
@@ -87,6 +87,7 @@ const referencePointSchema = z
87
87
  const referenceKindSchema = z.enum([
88
88
  'sea',
89
89
  'land',
90
+ 'impassable_mountain',
90
91
  'plains',
91
92
  'forest',
92
93
  'desert',
@@ -260,6 +261,27 @@ export const worldReliefSchema = z
260
261
  .max(1)
261
262
  .optional()
262
263
  .describe('Full-resolution roughness of the terrain, 0 to 1; default 0.5.'),
264
+ painted: z
265
+ .union([
266
+ z.boolean(),
267
+ z
268
+ .object({
269
+ falloffPx: z
270
+ .number()
271
+ .int()
272
+ .min(2)
273
+ .max(256)
274
+ .optional()
275
+ .describe('Blur radius of class edges in pixels; default 24.'),
276
+ mountainPeak: z.number().min(0).max(1).optional(),
277
+ hillsPeak: z.number().min(0).max(1).optional(),
278
+ volcanoPeak: z.number().min(0).max(1).optional(),
279
+ impassablePeak: z.number().min(0).max(1).optional(),
280
+ })
281
+ .strict(),
282
+ ])
283
+ .optional()
284
+ .describe('With a reference picture and a geography model: raise the relief toward the painted mountain, hills and volcano classes before the rivers are routed, blurred over falloffPx so slopes stay natural. Peaks are 0 to 1 on the range relief scale (defaults mountain 0.82, hills 0.27, volcano 0.9, near the base game; impassable land 0.95, which is raised even when this is off). Off by default.'),
263
285
  })
264
286
  .strict();
265
287
  /** River network target for a geography world: a share of the land pixels. */
@@ -353,6 +375,13 @@ export const worldPartitionTuningSchema = z
353
375
  .strict()
354
376
  .optional()
355
377
  .describe('Sea province area in pixels near a coast and on the open sea. Defaults follow seaProvincePixels (0.5 and 2.4 times, scaled so the mean stays seaProvincePixels).'),
378
+ lakeArea: z
379
+ .number()
380
+ .int()
381
+ .min(20)
382
+ .max(200_000)
383
+ .optional()
384
+ .describe('Lake province area in pixels; default 6000. A lake no larger than this stays one province.'),
356
385
  provincesPerState: z
357
386
  .tuple([z.number().int().min(1).max(64), z.number().int().min(1).max(64)])
358
387
  .optional()
@@ -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.9.0';
3
+ export const PACKAGE_VERSION = '4.10.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
@@ -37,7 +37,7 @@ Optional `reference` controls refine the same call:
37
37
  | `ignoreMasks` | Polygons that exclude legends, frames or decorative areas. |
38
38
  | `annotations` | `{kind,polygon}` semantic polygons: sea, land, plains, lake, forest, desert, mountain, snow, volcano, hills, marsh or jungle. |
39
39
  | `riverAnnotations` | Paths for known rivers. |
40
- | `palette` | `{kind,color:{r,g,b}}` color cues for the same semantic kinds. |
40
+ | `palette` | `{kind,color:{r,g,b}}` color cues for the same semantic kinds, plus `impassable_mountain`: mountain land no army may enter (ADR 0079), which reads as mountain for terrain, colour, snow and relief and becomes impassable states. |
41
41
  | `coastDetail` | Detail preservation from 0 to 1. |
42
42
  | `paletteMatch` | `nearest` (default) snaps each pixel to the closest `palette` colour. `exact` requires every pixel to equal a palette colour and trusts the classes as painted (no text masking, cleanup, smoothing or political inference; thin painted water stays water); any other colour fails with `MAP_REFERENCE_PALETTE_UNKNOWN_COLOR`, listing up to 16 colours with counts and five source pixels each. |
43
43
  | `fit` | `contain` (default) centres the picture with sea padding. `frame` maps the picture, or its `crop`, onto exactly `width` x `height` (both required, same shape within 1%, else `MAP_REFERENCE_FRAME_ASPECT`) and reads it at the frame resolution instead of the 3,072-pixel working copy. |
@@ -115,7 +115,7 @@ A model is one object with `"version": 1` and any of these arrays. Unknown keys
115
115
  | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
116
116
  | `seas` | `polygons` (outer rings), optional `holes`, `depthClass` (`shelf`, `open`, `abyss`), `ice` 0 to 1, `kind` (`ocean`, `sea`, `gulf`, `bay`, `fjord`) |
117
117
  | `lands` | `polygons`, `holes`, `kind` (`continent`, `island`, `archipelago`, `peninsula`), `region`, default `biome` and `fertility`, `elevationBase`, `coastDetail` |
118
- | `regions` | `polygons` (optional), `terrain` target shares, `density` (`provincesPerState` as `[smallest, usual, largest]`, `provinceAreaPx`) |
118
+ | `regions` | `polygons` (optional), `terrain` target shares, `density` (`provincesPerState` as `[smallest, usual, largest]`, `provinceAreaPx`), `impassable` (the land inside its `polygons` becomes impassable states and the highest ground) |
119
119
  | `ranges` | `path` (points, each optionally with `halfWidth` and `peak`), `closed`, `halfWidth`, `peak`, `profile` (`ridge`, `massif`, `escarpment`, `wall`), `asymmetry`, `snowline`, `spurs`, `barrier` (`none`, `impassable`, `fort-line`) |
120
120
  | `passes` | `range` with `at` (0 to 1 along the range), or a `position` point (the range is found for you), `width`, `depth`, `fort` 0 to 5 |
121
121
  | `volcanoes` | `at`, `radius`, `peak`, `crater`, `active` |
@@ -141,11 +141,12 @@ A model that needs an edit is reported by `MAP_GEOGRAPHY_*` diagnostics that nam
141
141
 
142
142
  `create_world` with a geography writes `heightmap.bmp`, `world_normal.bmp`, `rivers.bmp`, the land and lake mask, and the permanent-snow terrain from the model; every other output follows the usual generator. Without a geography nothing changes. [ADR 0056](adr/0056-terrain-relief-and-hydrology-synthesis.md) records the design.
143
143
 
144
- | Input | Meaning |
145
- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
146
- | `relief.scale` | `vanilla` (default), `low` (everything above the lowland 25% lower) or `dramatic` (15% higher). |
147
- | `relief.detail` | 0 to 1, default 0.5: full-resolution roughness. |
148
- | `rivers` | `{ "density": 0.02 }`: the share of land pixels the unnamed network covers (0 to 0.04, default 0.02; never more than 2.5% of the land or 130,000 pixels in all). An integer instead limits the number of unnamed river systems. |
144
+ | Input | Meaning |
145
+ | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
146
+ | `relief.scale` | `vanilla` (default), `low` (everything above the lowland 25% lower) or `dramatic` (15% higher). |
147
+ | `relief.detail` | 0 to 1, default 0.5: full-resolution roughness. |
148
+ | `relief.painted` | With a reference picture: `true` or `{falloffPx, mountainPeak, hillsPeak, volcanoPeak, impassablePeak}`. Raises the macro relief toward the picture's painted mountain, hills and volcano classes before the rivers are routed, so the drawn ranges stand out and the model's rivers flow around them. Each class is blurred over `falloffPx` (default 24; below 16 the slopes steepen fast), mountains follow ridged noise, a cell keeps the model's height where that is higher, and painted mountains get permanent snow above a height that falls from 232 at the equator to 140 at the poles. Peaks are 0 to 1 on the range scale (defaults 0.82, 0.27, 0.9, 0.95). Impassable land is raised even when this is off. `MAP_RELIEF_PAINTED` reports the cells raised. |
149
+ | `rivers` | `{ "density": 0.02 }`: the share of land pixels the unnamed network covers (0 to 0.04, default 0.02; never more than 2.5% of the land or 130,000 pixels in all). An integer instead limits the number of unnamed river systems. |
149
150
 
150
151
  What each feature becomes. Heights are heightmap values: land from 96, sea 89 (ADR 0053), a crest of `peak` stands at `100 + 148 * peak`, a plateau of `height` at `96 + 148 * height`, and the base game reaches 239 (the synthesis stops at 252).
151
152
 
@@ -476,13 +477,15 @@ A world built from a geography also gets its gameplay facts from the model (ADR
476
477
  | fertility, rivers, coast, passes | Population, state category, infrastructure, factories and the harbour score of each coastal province, with no random rolls. |
477
478
  | names | State, strategic region, victory-point and lake-province names from sites, lake shores, river valleys, ranges, regions, lands and seas by containment; shared names get a compass adjective. |
478
479
 
480
+ Impassable land (ADR 0079) comes from painted `impassable_mountain` pixels and from model `regions` with `impassable: true`. A land province with most of its pixels in it becomes part of an impassable state, written as the base game writes its impassable states: `impassable = yes`, `force_link_ownership_to` the nearest passable state and its owner, category `enclave` where the mod defines it, infrastructure 0 and nothing built. Generated capitals and ports avoid it; a city on it, or a workspace capital in one of its provinces, is the error `MAP_FEATURE_IN_IMPASSABLE`. The relief raises it toward `relief.painted.impassablePeak`. Range lines with `barrier: "impassable"` and their gated passes are unchanged and work beside it. Whenever impassable land or rows exist, `MAP_REALM_CUT_OFF` (warning) lists land of a realm that impassable land or borders separate from its capital, and `MAP_REALM_ENCLOSED` (warning) a realm whose land reaches no other realm except through them; islands are never reported.
481
+
479
482
  Options of `create_world`: `development: { model }` (`geography`, the default for a geography world, or `legacy` for the random economy) and `autoStraits` (`true` or `{ maxGapPx }`, default 24 pixels, about 170 km) to also write a rule-less crossing for every narrow channel the model did not declare. Both need a geography (`MAP_DEVELOPMENT_REQUIRES_GEOGRAPHY`, `MAP_AUTO_STRAITS_REQUIRES_GEOGRAPHY`).
480
483
 
481
484
  Railways of a geography world follow a terrain-aware cost (ground, climb across the border, rivers, gates, model roads) and never cross a wall except at a gate; trunk lines of level 2 reach the cities of 8 or more victory points. The supply-node rule is unchanged.
482
485
 
483
486
  Diagnostics raised when a world is created (they need the model): `MAP_CROSSINGS_PLANNED`, `MAP_DEVELOPMENT_PLANNED` and `MAP_INLAND_SEA_CREATED` (info), `MAP_STRAIT_UNRESOLVED`, `MAP_STRAIT_DUPLICATE`, `MAP_STRAIT_NOT_NARROW`, `MAP_PASS_BLOCKED`, `MAP_RANGE_NOT_CLOSED`, `MAP_INLAND_SEA_SEALED`, `MAP_PORT_LAKE_UNSUPPORTED`, `MAP_PORT_SITE_NOT_COASTAL`, `MAP_SITE_UNPLACED` and `MAP_NAME_PLACEHOLDER` (warnings; the last counts the states, strategic regions and victory points still called "District N", "Region N" or "Settlement N"), and `MAP_IMPASSABLE_ROW_LIMIT` (refusal above 2,000 wall rows). Raised on any map by `hoi4.map_inspect`: `MAP_ADJACENCY_RULE_MISSING`, `_DUPLICATE` and `_INVALID` (errors), `MAP_ADJACENCY_RULE_UNUSED`, `MAP_IMPASSABLE_NOT_ADJACENT` and `MAP_UNIT_POSITION_MISSING` (information, or warnings when they are a pattern), `MAP_IMPASSABLE_NOT_LAND`, `MAP_ADJACENCY_ROW_LIMIT`, `MAP_STRAIT_NOT_NARROW` and `MAP_RAILWAY_CROSSES_IMPASSABLE` (warnings). The installed game raises nothing above information.
484
487
 
485
- Not done: whole provinces inside a massif are not made impassable states, the engine's handling of impassable rows by supply and the AI and of a naval base on an inland sea is not verified, and `positions.txt` stays empty as in the base game. Measured on the project's 5,120 x 2,560 synthetic model with about 6,000 provinces, the gameplay layer adds about 6 seconds to a 30 second `create_world` and the whole run peaks near 0.8 GiB.
488
+ Not done: passes cut as corridors through impassable land (a pass still opens a range line only), the engine's handling of impassable rows by supply and the AI and of a naval base on an inland sea is not verified, and `positions.txt` stays empty as in the base game. Measured on the project's 5,120 x 2,560 synthetic model with about 6,000 provinces, the gameplay layer adds about 6 seconds to a 30 second `create_world` and the whole run peaks near 0.8 GiB.
486
489
 
487
490
  ## Positions and supply
488
491
 
@@ -571,7 +574,7 @@ To check all of this without a write, call `hoi4.map_rewrite` with `preview: tru
571
574
  By default provinces grow evenly from spread seeds and states and regions grow by breadth-first clusters, which ignore rivers, ridges and shores. Set `partition: "feature-aware"` (default `legacy`; a world given a `geography` defaults to it) to cut along natural lines instead (ADR 0058):
572
575
 
573
576
  - Province borders are pulled onto rivers, steep slopes and ridges, wall ranges and lake shores (a watershed whose step cost rises on them). A province that still straddles a river or wall is cut along it.
574
- - Province size follows the land: small in fertile valleys, on coasts and beside rivers, large on mountains and wasteland (`landArea.fertile`, `hills`, `mountain`, `waste`, in pixels), and per geography region through its `density.provinceAreaPx`. Without bands they follow `landProvincePixels` (0.35, 1, 2.2 and 3.4 times, scaled so the mean stays `landProvincePixels`). Sea provinces are small near a coast and large on the open sea (`seaArea.coastal` and `open`, from `seaProvincePixels`), and a channel no wider than `narrowStraitPx` (24) gets two sea provinces across it.
577
+ - Province size follows the land: small in fertile valleys, on coasts and beside rivers, large on mountains and wasteland (`landArea.fertile`, `hills`, `mountain`, `waste`, in pixels), and per geography region through its `density.provinceAreaPx`. Without bands they follow `landProvincePixels` (0.35, 1, 2.2 and 3.4 times, scaled so the mean stays `landProvincePixels`). Sea provinces are small near a coast and large on the open sea (`seaArea.coastal` and `open`, from `seaProvincePixels`), and a channel no wider than `narrowStraitPx` (24) gets two sea provinces across it. A lake province covers about `lakeArea` pixels (default 6,000, at most an eighth of the map), so a lake no larger than that stays one province.
575
578
  - States and strategic regions are clusters over the province graph that avoid joining across rivers and ranges, prefer like ground, never mix geography regions or named seas, and respect `provincesPerState` (`[smallest, largest]`, or a region's own `density.provincesPerState`) and `regionSize`.
576
579
  - `barrierStrength` (0 to 60, default 20) sets how hard borders are pulled onto natural lines; `minProvincePixels` (default 40) is the smallest planned province.
577
580
 
@@ -12,7 +12,7 @@ Use them for event timing and option weights, decision and mission scores, focus
12
12
 
13
13
  ## Game version
14
14
 
15
- The adapters apply the documented weighting rules of `ai_will_do`, `ai_chance`, mean time to happen, `random_list` and AI strategies, which are the same in every game version, so evaluation runs on whatever HOI4 version is installed. When `gameRoot` is configured, `metadata.gameVersionVerification` records the build read from `launcher-settings.json`: `workspace_verified` for the build the adapters were last reviewed against, `workspace_observed` for any other build, and `version_unknown` with a `reason` when the file cannot be read. Without a game root, results identify the adapter version (`adapter_target_only`). Proposed source is evaluated in memory.
15
+ The adapters apply the documented weighting rules of `ai_will_do`, `ai_chance`, mean time to happen, `random_list` and AI strategies, which are the same in every game version, so evaluation runs on whatever HOI4 version is installed. When `gameRoot` is configured, `metadata.gameVersionVerification` records the build read from `launcher-settings.json`: `workspace_verified` for the build the adapters were last reviewed against, `workspace_observed` for any other build (reported with the warning `PROBABILITY_GAME_BUILD_UNVERIFIED`), and `version_unknown` with a `reason` when the file cannot be read. Without a game root, results identify the adapter version (`adapter_target_only`). Proposed source is evaluated in memory.
16
16
 
17
17
  ## One call for current weights
18
18
 
@@ -1,6 +1,19 @@
1
1
  # Probability adapter evidence
2
2
 
3
- The AI and MTTH Scenario Analyzer targets Hearts of Iron IV **Operation Postern 1.19.2.0 (checksum d245)**. Adapter behavior is versioned as `hoi4-1.19.2.v1`; results always include that adapter version and game build.
3
+ The AI and MTTH Scenario Analyzer targets Hearts of Iron IV **Operation Postern 1.19.4.1 (checksum f584)**. Adapter behavior is versioned as `hoi4-1.19.4.1.v1`. Results always include that adapter version and game build. When the installed build differs, results carry the warning `PROBABILITY_GAME_BUILD_UNVERIFIED`, and the nightly game-update watcher lists the adapters under "Checked against another build" on every run until the pin moves.
4
+
5
+ ## Re-check for 1.19.4.1 (2026-11-06)
6
+
7
+ The adapters were first reviewed on 1.19.2.0 (`hoi4-1.19.2.v1`, sections below). For 1.19.4.1 every reviewed file was hashed again on the installed game:
8
+
9
+ - **Unchanged:** `common/decisions/_documentation.md`, `common/doctrines/_documentation.md`, `common/script_constants/documentation.md`, `documentation/script_concept_documentation.md` and `documentation/effects_documentation.md` are byte-identical to the hashes below.
10
+ - **Changed:** `common/ai_strategy/_documentation.md` is now `cd19fa144b47345a01632f38c5fb4a5cff7beece962f6640ca74fb83de3dc715`. Its `research_tech` section still forces research for any positive value. Its `research_weight_factor` section still describes a percentage factor on the technology's `ai_will_do`. Both are what `ai_strategy_factor` implements.
11
+ - **Examples:** `events/Yugoslavia.txt:49`, `common/national_focus/austria.txt:122` and `common/doctrines/grand_doctrines/land_grand_doctrines.txt:14` changed but keep their construct at the same line. `events/BBA_Switzerland.txt` has its `random` at line 1205 (was 1197). `common/ai_strategy/ENG.txt` has its `research_weight_factor` strategy at line 3202 (was 3206). The other examples are byte-identical.
12
+ - **Installed build:** `launcher-settings.json` reads `Operation Postern v1.19.4.1.99a5 (f584)`, raw version `1.19.4.1`.
13
+
14
+ No adapter rule changed, so only the version pin moved.
15
+
16
+ ## Review on 1.19.2.0
4
17
 
5
18
  This review used the installed game's documentation, vanilla source examples, and an offline Paradox wiki snapshot. Paths below are relative to a Hearts of Iron IV installation or to the offline snapshot. SHA-256 values identify the exact files reviewed on 2026-07-22.
6
19
 
@@ -50,7 +63,7 @@ The installed vanilla inventory contained 71 event files with MTTH, 101 with `ai
50
63
 
51
64
  ## Unsupported constructs
52
65
 
53
- When a game root is configured, adapter execution verifies `launcher-settings.json` against the supported raw version and checksum and fails closed on a missing, unreadable, or different build. Without a configured game root, results identify the adapter target without claiming that an installed build was verified.
66
+ When a game root is configured, adapter execution reads `launcher-settings.json` and compares it with the supported raw version and checksum. A matching build is `workspace_verified`. A different build is still analyzed with the documented rules, recorded as `workspace_observed` and reported with the warning `PROBABILITY_GAME_BUILD_UNVERIFIED`. A missing or unreadable file is `version_unknown`. Without a configured game root, results identify the adapter target without claiming that an installed build was verified.
54
67
 
55
68
  The analyzer reports, but does not guess or execute:
56
69
 
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "win32-x64": {
21
21
  "file": "win32-x64/hoi4-engine.exe",
22
- "sha256": "75d3fdedaa4e830f099699b305f03135e51a8d0e55c199aa29f107ac881cfc68",
22
+ "sha256": "42b7ac7b2566399f118c5a97a17c6878de613b6ef4d4830628d9bad8a798f1ad",
23
23
  "size": 4125184
24
24
  }
25
25
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "hoi4-agent-tools",
3
- "version": "4.9.0",
3
+ "version": "4.10.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "hoi4-agent-tools",
9
- "version": "4.9.0",
9
+ "version": "4.10.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.9.0",
4
+ "version": "4.10.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.9.0/schemas/configuration.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.10.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.9.0/schemas/continuous-focus-palette.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.10.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.9.0/schemas/custom-weighted-pool.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.10.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.9.0/schemas/decision-inspect-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.10.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.9.0/schemas/error-log-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.10.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.9.0/schemas/event-feature-manifest.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.10.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": {