hoi4-agent-tools 4.3.0 → 4.4.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 (110) hide show
  1. package/CHANGELOG.md +25 -1
  2. package/dist/hoi4_agent_tools/core/bounded-source.js +31 -9
  3. package/dist/hoi4_agent_tools/core/configuration.js +11 -0
  4. package/dist/hoi4_agent_tools/core/operation-context.js +17 -1
  5. package/dist/hoi4_agent_tools/core/temporary-directories.js +7 -2
  6. package/dist/hoi4_agent_tools/core/transaction-limits.js +18 -4
  7. package/dist/hoi4_agent_tools/core/transactions.js +23 -4
  8. package/dist/hoi4_agent_tools/core/workspace-json.js +54 -0
  9. package/dist/hoi4_agent_tools/core/workspace.js +42 -6
  10. package/dist/hoi4_agent_tools/map/appearance-validation.js +1110 -0
  11. package/dist/hoi4_agent_tools/map/bmp.js +9 -1
  12. package/dist/hoi4_agent_tools/map/border-quality-input.js +209 -0
  13. package/dist/hoi4_agent_tools/map/border-quality.js +1180 -0
  14. package/dist/hoi4_agent_tools/map/colormap.js +128 -0
  15. package/dist/hoi4_agent_tools/map/geography/geometry.js +284 -0
  16. package/dist/hoi4_agent_tools/map/geography/index.js +6 -0
  17. package/dist/hoi4_agent_tools/map/geography/model.js +196 -0
  18. package/dist/hoi4_agent_tools/map/geography/preparation.js +120 -0
  19. package/dist/hoi4_agent_tools/map/geography/preview.js +647 -0
  20. package/dist/hoi4_agent_tools/map/geography/raster.js +253 -0
  21. package/dist/hoi4_agent_tools/map/geography/resolve.js +1467 -0
  22. package/dist/hoi4_agent_tools/map/model.js +15 -2
  23. package/dist/hoi4_agent_tools/map/operations.js +111 -8
  24. package/dist/hoi4_agent_tools/map/partition-fields.js +398 -0
  25. package/dist/hoi4_agent_tools/map/partition-geography.js +113 -0
  26. package/dist/hoi4_agent_tools/map/partition-graph.js +165 -0
  27. package/dist/hoi4_agent_tools/map/partition-groups.js +164 -0
  28. package/dist/hoi4_agent_tools/map/partition-provinces.js +727 -0
  29. package/dist/hoi4_agent_tools/map/partition-tuning.js +101 -0
  30. package/dist/hoi4_agent_tools/map/partition-watershed.js +252 -0
  31. package/dist/hoi4_agent_tools/map/partition.js +163 -0
  32. package/dist/hoi4_agent_tools/map/reference-import.js +333 -0
  33. package/dist/hoi4_agent_tools/map/reference-preparation.js +138 -5
  34. package/dist/hoi4_agent_tools/map/reference-sheets.js +231 -0
  35. package/dist/hoi4_agent_tools/map/reference-world.js +104 -13
  36. package/dist/hoi4_agent_tools/map/relief/checks.js +281 -0
  37. package/dist/hoi4_agent_tools/map/relief/fields.js +15 -0
  38. package/dist/hoi4_agent_tools/map/relief/full-resolution.js +133 -0
  39. package/dist/hoi4_agent_tools/map/relief/grid.js +190 -0
  40. package/dist/hoi4_agent_tools/map/relief/hydrology.js +1315 -0
  41. package/dist/hoi4_agent_tools/map/relief/index.js +27 -0
  42. package/dist/hoi4_agent_tools/map/relief/land.js +110 -0
  43. package/dist/hoi4_agent_tools/map/relief/macro-relief.js +535 -0
  44. package/dist/hoi4_agent_tools/map/relief/math.js +93 -0
  45. package/dist/hoi4_agent_tools/map/relief/river-raster.js +680 -0
  46. package/dist/hoi4_agent_tools/map/relief/terrain-synthesis.js +304 -0
  47. package/dist/hoi4_agent_tools/map/render.js +36 -0
  48. package/dist/hoi4_agent_tools/map/service.js +191 -16
  49. package/dist/hoi4_agent_tools/map/tool-operations.js +208 -2
  50. package/dist/hoi4_agent_tools/map/validation.js +9 -0
  51. package/dist/hoi4_agent_tools/map/water.js +227 -0
  52. package/dist/hoi4_agent_tools/map/world-context.js +24 -1
  53. package/dist/hoi4_agent_tools/map/world-edge.js +335 -0
  54. package/dist/hoi4_agent_tools/map/world-noise.js +34 -0
  55. package/dist/hoi4_agent_tools/map/world-partition.js +119 -0
  56. package/dist/hoi4_agent_tools/map/world-provinces.js +131 -56
  57. package/dist/hoi4_agent_tools/map/world.js +462 -124
  58. package/dist/hoi4_agent_tools/mcp/tools/map.js +69 -1
  59. package/dist/hoi4_agent_tools/reference/operations.js +3 -2
  60. package/dist/hoi4_agent_tools/schemas/geography.js +325 -0
  61. package/dist/hoi4_agent_tools/schemas/map-requests.js +20 -2
  62. package/dist/hoi4_agent_tools/schemas/map.js +209 -2
  63. package/dist/hoi4_agent_tools/schemas/reference-sheets.js +92 -0
  64. package/dist/hoi4_agent_tools/version.js +1 -1
  65. package/docs/configuration.md +17 -14
  66. package/docs/map.md +258 -15
  67. package/docs/tools.md +4 -4
  68. package/docs/troubleshooting.md +11 -11
  69. package/npm-shrinkwrap.json +109 -91
  70. package/package.json +3 -3
  71. package/schemas/configuration.schema.json +65 -58
  72. package/schemas/continuous-focus-palette.schema.json +1 -1
  73. package/schemas/custom-weighted-pool.schema.json +1 -1
  74. package/schemas/decision-inspect-input.schema.json +1 -1
  75. package/schemas/error-log-input.schema.json +1 -1
  76. package/schemas/event-feature-manifest.schema.json +1 -1
  77. package/schemas/focus-plan.schema.json +1 -1
  78. package/schemas/focus-planning-sidecar.schema.json +1 -1
  79. package/schemas/geography-model.schema.json +1148 -0
  80. package/schemas/gui-animation-source.schema.json +1 -1
  81. package/schemas/gui-helper.schema.json +5 -11
  82. package/schemas/gui-scenario.schema.json +1 -1
  83. package/schemas/helper-expansion-request.schema.json +1 -1
  84. package/schemas/helper-expansion-summary.schema.json +1 -1
  85. package/schemas/impact-inspect-input.schema.json +1 -1
  86. package/schemas/map-operation.schema.json +2156 -259
  87. package/schemas/mechanic-test-input.schema.json +1 -1
  88. package/schemas/mod-index-input.schema.json +1 -1
  89. package/schemas/operation-result.schema.json +1 -1
  90. package/schemas/package-check-input.schema.json +1 -1
  91. package/schemas/package-manifest.schema.json +1 -1
  92. package/schemas/probability-analysis-result.schema.json +25 -7
  93. package/schemas/probability-compare-input.schema.json +1 -1
  94. package/schemas/probability-evaluate-input.schema.json +1 -1
  95. package/schemas/probability-inspect-input.schema.json +1 -1
  96. package/schemas/probability-render-input.schema.json +1 -1
  97. package/schemas/probability-scenario-set.schema.json +1 -1
  98. package/schemas/probability-sequence-input.schema.json +1 -1
  99. package/schemas/probability-simulate-input.schema.json +1 -1
  100. package/schemas/probability-sweep-input.schema.json +1 -1
  101. package/schemas/reference-context-input.schema.json +1 -1
  102. package/schemas/reference-read-input.schema.json +1 -1
  103. package/schemas/reference-search-input.schema.json +1 -1
  104. package/schemas/reference-sheets.schema.json +267 -0
  105. package/schemas/scenario-suite.schema.json +1 -1
  106. package/schemas/scenario-test-input.schema.json +1 -1
  107. package/schemas/script-validate-input.schema.json +1 -1
  108. package/schemas/shared-scenario.schema.json +1 -1
  109. package/schemas/source-lookup-input.schema.json +1 -1
  110. package/server.json +2 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.3.0/schemas/configuration.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.4.0/schemas/configuration.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -66,8 +66,11 @@
66
66
  "workspaces": {
67
67
  "$ref": "#/$defs/__schema22"
68
68
  },
69
- "http": {
69
+ "defaultWorkspace": {
70
70
  "$ref": "#/$defs/__schema42"
71
+ },
72
+ "http": {
73
+ "$ref": "#/$defs/__schema43"
71
74
  }
72
75
  },
73
76
  "required": [
@@ -466,6 +469,10 @@
466
469
  "minLength": 1
467
470
  },
468
471
  "__schema42": {
472
+ "type": "string",
473
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
474
+ },
475
+ "__schema43": {
469
476
  "default": {
470
477
  "host": "127.0.0.1",
471
478
  "port": 3210,
@@ -492,92 +499,92 @@
492
499
  "type": "object",
493
500
  "properties": {
494
501
  "host": {
495
- "$ref": "#/$defs/__schema43"
502
+ "$ref": "#/$defs/__schema44"
496
503
  },
497
504
  "port": {
498
- "$ref": "#/$defs/__schema44"
505
+ "$ref": "#/$defs/__schema45"
499
506
  },
500
507
  "publicUrl": {
501
- "$ref": "#/$defs/__schema45"
508
+ "$ref": "#/$defs/__schema46"
502
509
  },
503
510
  "allowedOrigins": {
504
- "$ref": "#/$defs/__schema46"
511
+ "$ref": "#/$defs/__schema47"
505
512
  },
506
513
  "trustedProxyAddresses": {
507
- "$ref": "#/$defs/__schema47"
514
+ "$ref": "#/$defs/__schema48"
508
515
  },
509
516
  "tokens": {
510
- "$ref": "#/$defs/__schema48"
517
+ "$ref": "#/$defs/__schema49"
511
518
  },
512
519
  "principals": {
513
- "$ref": "#/$defs/__schema51"
520
+ "$ref": "#/$defs/__schema52"
514
521
  },
515
522
  "oauth": {
516
- "$ref": "#/$defs/__schema54"
523
+ "$ref": "#/$defs/__schema55"
517
524
  },
518
525
  "maxBodyBytes": {
519
- "$ref": "#/$defs/__schema56"
526
+ "$ref": "#/$defs/__schema57"
520
527
  },
521
528
  "headersTimeoutMs": {
522
- "$ref": "#/$defs/__schema57"
529
+ "$ref": "#/$defs/__schema58"
523
530
  },
524
531
  "requestTimeoutMs": {
525
- "$ref": "#/$defs/__schema58"
532
+ "$ref": "#/$defs/__schema59"
526
533
  },
527
534
  "keepAliveTimeoutMs": {
528
- "$ref": "#/$defs/__schema59"
535
+ "$ref": "#/$defs/__schema60"
529
536
  },
530
537
  "maxConnections": {
531
- "$ref": "#/$defs/__schema60"
538
+ "$ref": "#/$defs/__schema61"
532
539
  },
533
540
  "maxRequestsPerSocket": {
534
- "$ref": "#/$defs/__schema61"
541
+ "$ref": "#/$defs/__schema62"
535
542
  },
536
543
  "maxConcurrentRequests": {
537
- "$ref": "#/$defs/__schema62"
544
+ "$ref": "#/$defs/__schema63"
538
545
  },
539
546
  "maxSessions": {
540
- "$ref": "#/$defs/__schema63"
547
+ "$ref": "#/$defs/__schema64"
541
548
  },
542
549
  "maxSessionsPerPrincipal": {
543
- "$ref": "#/$defs/__schema64"
550
+ "$ref": "#/$defs/__schema65"
544
551
  },
545
552
  "maxEventStreams": {
546
- "$ref": "#/$defs/__schema65"
553
+ "$ref": "#/$defs/__schema66"
547
554
  },
548
555
  "maxEventStreamsPerPrincipal": {
549
- "$ref": "#/$defs/__schema66"
556
+ "$ref": "#/$defs/__schema67"
550
557
  },
551
558
  "maxSessionEventBytes": {
552
- "$ref": "#/$defs/__schema67"
559
+ "$ref": "#/$defs/__schema68"
553
560
  },
554
561
  "maxEventStoreBytes": {
555
- "$ref": "#/$defs/__schema68"
562
+ "$ref": "#/$defs/__schema69"
556
563
  },
557
564
  "requestsPerMinute": {
558
- "$ref": "#/$defs/__schema69"
565
+ "$ref": "#/$defs/__schema70"
559
566
  },
560
567
  "sessionTtlSeconds": {
561
- "$ref": "#/$defs/__schema70"
568
+ "$ref": "#/$defs/__schema71"
562
569
  }
563
570
  },
564
571
  "additionalProperties": false
565
572
  },
566
- "__schema43": {
573
+ "__schema44": {
567
574
  "default": "127.0.0.1",
568
575
  "type": "string"
569
576
  },
570
- "__schema44": {
577
+ "__schema45": {
571
578
  "default": 3210,
572
579
  "type": "integer",
573
580
  "minimum": 0,
574
581
  "maximum": 65535
575
582
  },
576
- "__schema45": {
583
+ "__schema46": {
577
584
  "type": "string",
578
585
  "format": "uri"
579
586
  },
580
- "__schema46": {
587
+ "__schema47": {
581
588
  "default": [],
582
589
  "type": "array",
583
590
  "items": {
@@ -585,7 +592,7 @@
585
592
  "format": "uri"
586
593
  }
587
594
  },
588
- "__schema47": {
595
+ "__schema48": {
589
596
  "default": [],
590
597
  "type": "array",
591
598
  "items": {
@@ -603,15 +610,15 @@
603
610
  ]
604
611
  }
605
612
  },
606
- "__schema48": {
613
+ "__schema49": {
607
614
  "default": [],
608
615
  "maxItems": 1000,
609
616
  "type": "array",
610
617
  "items": {
611
- "$ref": "#/$defs/__schema49"
618
+ "$ref": "#/$defs/__schema50"
612
619
  }
613
620
  },
614
- "__schema49": {
621
+ "__schema50": {
615
622
  "type": "object",
616
623
  "properties": {
617
624
  "principal": {
@@ -627,7 +634,7 @@
627
634
  "maxItems": 1000,
628
635
  "type": "array",
629
636
  "items": {
630
- "$ref": "#/$defs/__schema50"
637
+ "$ref": "#/$defs/__schema51"
631
638
  }
632
639
  },
633
640
  "allowDiscoveredMods": {
@@ -641,18 +648,18 @@
641
648
  ],
642
649
  "additionalProperties": false
643
650
  },
644
- "__schema50": {
651
+ "__schema51": {
645
652
  "type": "string"
646
653
  },
647
- "__schema51": {
654
+ "__schema52": {
648
655
  "default": [],
649
656
  "maxItems": 1000,
650
657
  "type": "array",
651
658
  "items": {
652
- "$ref": "#/$defs/__schema52"
659
+ "$ref": "#/$defs/__schema53"
653
660
  }
654
661
  },
655
- "__schema52": {
662
+ "__schema53": {
656
663
  "type": "object",
657
664
  "properties": {
658
665
  "principal": {
@@ -664,7 +671,7 @@
664
671
  "maxItems": 1000,
665
672
  "type": "array",
666
673
  "items": {
667
- "$ref": "#/$defs/__schema53"
674
+ "$ref": "#/$defs/__schema54"
668
675
  }
669
676
  },
670
677
  "allowDiscoveredMods": {
@@ -677,10 +684,10 @@
677
684
  ],
678
685
  "additionalProperties": false
679
686
  },
680
- "__schema53": {
687
+ "__schema54": {
681
688
  "type": "string"
682
689
  },
683
- "__schema54": {
690
+ "__schema55": {
684
691
  "type": "object",
685
692
  "properties": {
686
693
  "issuer": {
@@ -699,7 +706,7 @@
699
706
  "minItems": 1,
700
707
  "type": "array",
701
708
  "items": {
702
- "$ref": "#/$defs/__schema55"
709
+ "$ref": "#/$defs/__schema56"
703
710
  }
704
711
  },
705
712
  "requiredScopes": {
@@ -739,95 +746,95 @@
739
746
  ],
740
747
  "additionalProperties": false
741
748
  },
742
- "__schema55": {
749
+ "__schema56": {
743
750
  "type": "string",
744
751
  "format": "uri"
745
752
  },
746
- "__schema56": {
753
+ "__schema57": {
747
754
  "default": 67108864,
748
755
  "type": "integer",
749
756
  "minimum": 1024,
750
757
  "maximum": 67108864
751
758
  },
752
- "__schema57": {
759
+ "__schema58": {
753
760
  "default": 10000,
754
761
  "type": "integer",
755
762
  "minimum": 1000,
756
763
  "maximum": 120000
757
764
  },
758
- "__schema58": {
765
+ "__schema59": {
759
766
  "default": 30000,
760
767
  "type": "integer",
761
768
  "minimum": 1000,
762
769
  "maximum": 300000
763
770
  },
764
- "__schema59": {
771
+ "__schema60": {
765
772
  "default": 5000,
766
773
  "type": "integer",
767
774
  "minimum": 1000,
768
775
  "maximum": 120000
769
776
  },
770
- "__schema60": {
777
+ "__schema61": {
771
778
  "default": 512,
772
779
  "type": "integer",
773
780
  "minimum": 1,
774
781
  "maximum": 100000
775
782
  },
776
- "__schema61": {
783
+ "__schema62": {
777
784
  "default": 100,
778
785
  "type": "integer",
779
786
  "minimum": 1,
780
787
  "maximum": 100000
781
788
  },
782
- "__schema62": {
789
+ "__schema63": {
783
790
  "default": 128,
784
791
  "type": "integer",
785
792
  "minimum": 1,
786
793
  "maximum": 1024
787
794
  },
788
- "__schema63": {
795
+ "__schema64": {
789
796
  "default": 128,
790
797
  "type": "integer",
791
798
  "minimum": 1,
792
799
  "maximum": 10000
793
800
  },
794
- "__schema64": {
801
+ "__schema65": {
795
802
  "default": 32,
796
803
  "type": "integer",
797
804
  "minimum": 1,
798
805
  "maximum": 10000
799
806
  },
800
- "__schema65": {
807
+ "__schema66": {
801
808
  "default": 128,
802
809
  "type": "integer",
803
810
  "minimum": 1,
804
811
  "maximum": 10000
805
812
  },
806
- "__schema66": {
813
+ "__schema67": {
807
814
  "default": 32,
808
815
  "type": "integer",
809
816
  "minimum": 1,
810
817
  "maximum": 10000
811
818
  },
812
- "__schema67": {
819
+ "__schema68": {
813
820
  "default": 2097152,
814
821
  "type": "integer",
815
822
  "minimum": 65536,
816
823
  "maximum": 67108864
817
824
  },
818
- "__schema68": {
825
+ "__schema69": {
819
826
  "default": 16777216,
820
827
  "type": "integer",
821
828
  "minimum": 65536,
822
829
  "maximum": 268435456
823
830
  },
824
- "__schema69": {
831
+ "__schema70": {
825
832
  "default": 6000,
826
833
  "type": "integer",
827
834
  "minimum": 1,
828
835
  "maximum": 100000
829
836
  },
830
- "__schema70": {
837
+ "__schema71": {
831
838
  "default": 3600,
832
839
  "type": "integer",
833
840
  "minimum": 60,
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.3.0/schemas/continuous-focus-palette.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.4.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.3.0/schemas/custom-weighted-pool.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.4.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.3.0/schemas/decision-inspect-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.4.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.3.0/schemas/error-log-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.4.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.3.0/schemas/event-feature-manifest.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.4.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.3.0/schemas/focus-plan.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.4.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.3.0/schemas/focus-planning-sidecar.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v4.4.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": {