hoi4-agent-tools 2.7.0 → 2.8.1

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 (42) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +1 -1
  3. package/dist/hoi4_agent_tools/mcp/server/create.js +1 -1
  4. package/dist/hoi4_agent_tools/mcp/server/progress.js +57 -0
  5. package/dist/hoi4_agent_tools/mcp/tools/gui.js +15 -15
  6. package/dist/hoi4_agent_tools/mcp/tools/probability.js +9 -0
  7. package/dist/hoi4_agent_tools/probability/adapters.js +5 -0
  8. package/dist/hoi4_agent_tools/probability/evaluation.js +6 -1
  9. package/dist/hoi4_agent_tools/probability/scenario-state.js +165 -0
  10. package/dist/hoi4_agent_tools/probability/scope-pools.js +199 -0
  11. package/dist/hoi4_agent_tools/probability/simulation.js +4 -3
  12. package/dist/hoi4_agent_tools/probability/sweep.js +6 -2
  13. package/dist/hoi4_agent_tools/probability/trigger-evaluator.js +35 -28
  14. package/dist/hoi4_agent_tools/probability/value-evaluator.js +4 -0
  15. package/dist/hoi4_agent_tools/schemas/probability.js +90 -0
  16. package/dist/hoi4_agent_tools/version.js +1 -1
  17. package/docs/gui.md +2 -0
  18. package/docs/probability.md +46 -0
  19. package/docs/research/probability-adapter-evidence.md +2 -1
  20. package/examples/probability/scoped-dynamic-pools-evaluate-input.json +50 -0
  21. package/package.json +1 -1
  22. package/schemas/configuration.schema.json +1 -1
  23. package/schemas/continuous-focus-palette.schema.json +1 -1
  24. package/schemas/custom-weighted-pool.schema.json +1 -1
  25. package/schemas/event-feature-manifest.schema.json +1 -1
  26. package/schemas/focus-plan.schema.json +1 -1
  27. package/schemas/focus-planning-sidecar.schema.json +1 -1
  28. package/schemas/gui-animation-source.schema.json +1 -1
  29. package/schemas/gui-helper.schema.json +1 -1
  30. package/schemas/gui-scenario.schema.json +1 -1
  31. package/schemas/map-operation.schema.json +1 -1
  32. package/schemas/operation-result.schema.json +1 -1
  33. package/schemas/probability-analysis-result.schema.json +175 -66
  34. package/schemas/probability-compare-input.schema.json +251 -66
  35. package/schemas/probability-evaluate-input.schema.json +252 -67
  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 +231 -46
  39. package/schemas/probability-sequence-input.schema.json +273 -88
  40. package/schemas/probability-simulate-input.schema.json +252 -67
  41. package/schemas/probability-sweep-input.schema.json +254 -69
  42. package/server.json +2 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v2.7.0/schemas/probability-sweep-input.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v2.8.1/schemas/probability-sweep-input.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -78,7 +78,7 @@
78
78
  "maxItems": 100000,
79
79
  "type": "array",
80
80
  "items": {
81
- "$ref": "#/$defs/__schema42"
81
+ "$ref": "#/$defs/__schema55"
82
82
  }
83
83
  },
84
84
  "horizonDays": {
@@ -91,14 +91,14 @@
91
91
  "maxItems": 4,
92
92
  "type": "array",
93
93
  "items": {
94
- "$ref": "#/$defs/__schema43"
94
+ "$ref": "#/$defs/__schema56"
95
95
  }
96
96
  },
97
97
  "acceptanceBands": {
98
98
  "maxItems": 100000,
99
99
  "type": "array",
100
100
  "items": {
101
- "$ref": "#/$defs/__schema44"
101
+ "$ref": "#/$defs/__schema57"
102
102
  }
103
103
  },
104
104
  "diagnosticThresholds": {
@@ -144,7 +144,7 @@
144
144
  "maxItems": 10,
145
145
  "type": "array",
146
146
  "items": {
147
- "$ref": "#/$defs/__schema51"
147
+ "$ref": "#/$defs/__schema64"
148
148
  }
149
149
  },
150
150
  "refresh": {
@@ -158,7 +158,7 @@
158
158
  "maxItems": 32,
159
159
  "type": "array",
160
160
  "items": {
161
- "$ref": "#/$defs/__schema52"
161
+ "$ref": "#/$defs/__schema65"
162
162
  }
163
163
  },
164
164
  "steps": {
@@ -260,17 +260,23 @@
260
260
  "eventTargets": {
261
261
  "$ref": "#/$defs/__schema18"
262
262
  },
263
- "candidateOverrides": {
263
+ "scopes": {
264
264
  "$ref": "#/$defs/__schema19"
265
265
  },
266
+ "scopePools": {
267
+ "$ref": "#/$defs/__schema22"
268
+ },
269
+ "candidateOverrides": {
270
+ "$ref": "#/$defs/__schema32"
271
+ },
266
272
  "uncertainInputs": {
267
- "$ref": "#/$defs/__schema20"
273
+ "$ref": "#/$defs/__schema33"
268
274
  },
269
275
  "correlations": {
270
- "$ref": "#/$defs/__schema36"
276
+ "$ref": "#/$defs/__schema49"
271
277
  },
272
278
  "schedule": {
273
- "$ref": "#/$defs/__schema38"
279
+ "$ref": "#/$defs/__schema51"
274
280
  }
275
281
  },
276
282
  "required": [
@@ -370,36 +376,215 @@
370
376
  "type": "object",
371
377
  "propertyNames": {
372
378
  "type": "string",
379
+ "minLength": 1,
373
380
  "maxLength": 512
374
381
  },
375
382
  "additionalProperties": {
376
- "type": "boolean"
383
+ "$ref": "#/$defs/__schema20"
377
384
  }
378
385
  },
379
386
  "__schema20": {
387
+ "type": "object",
388
+ "properties": {
389
+ "id": {
390
+ "type": "string",
391
+ "minLength": 1,
392
+ "maxLength": 512
393
+ },
394
+ "type": {
395
+ "type": "string",
396
+ "enum": [
397
+ "country",
398
+ "state",
399
+ "character",
400
+ "unit_leader",
401
+ "operative",
402
+ "strategic_region",
403
+ "province",
404
+ "unknown"
405
+ ]
406
+ },
407
+ "actor": {
408
+ "type": "string",
409
+ "maxLength": 256
410
+ },
411
+ "state": {
412
+ "default": {},
413
+ "type": "object",
414
+ "propertyNames": {
415
+ "type": "string",
416
+ "minLength": 1,
417
+ "maxLength": 1024
418
+ },
419
+ "additionalProperties": {
420
+ "$ref": "#/$defs/__schema14"
421
+ }
422
+ },
423
+ "flags": {
424
+ "maxItems": 100000,
425
+ "type": "array",
426
+ "items": {
427
+ "$ref": "#/$defs/__schema21"
428
+ }
429
+ },
430
+ "eventTargets": {
431
+ "type": "object",
432
+ "propertyNames": {
433
+ "type": "string",
434
+ "maxLength": 512
435
+ },
436
+ "additionalProperties": {
437
+ "type": "string",
438
+ "maxLength": 512
439
+ }
440
+ },
441
+ "weight": {
442
+ "anyOf": [
443
+ {
444
+ "type": "number",
445
+ "minimum": 0
446
+ },
447
+ {
448
+ "type": "string",
449
+ "minLength": 1,
450
+ "maxLength": 1024
451
+ }
452
+ ]
453
+ }
454
+ },
455
+ "required": [
456
+ "id"
457
+ ],
458
+ "additionalProperties": false
459
+ },
460
+ "__schema21": {
461
+ "type": "string",
462
+ "minLength": 1,
463
+ "maxLength": 512
464
+ },
465
+ "__schema22": {
466
+ "maxItems": 100000,
467
+ "type": "array",
468
+ "items": {
469
+ "$ref": "#/$defs/__schema23"
470
+ }
471
+ },
472
+ "__schema23": {
473
+ "type": "object",
474
+ "properties": {
475
+ "id": {
476
+ "$ref": "#/$defs/__schema24"
477
+ },
478
+ "bindAs": {
479
+ "$ref": "#/$defs/__schema25"
480
+ },
481
+ "selection": {
482
+ "$ref": "#/$defs/__schema26"
483
+ },
484
+ "complete": {
485
+ "$ref": "#/$defs/__schema27"
486
+ },
487
+ "filter": {
488
+ "$ref": "#/$defs/__schema28"
489
+ },
490
+ "candidates": {
491
+ "$ref": "#/$defs/__schema31"
492
+ }
493
+ },
494
+ "required": [
495
+ "id",
496
+ "candidates"
497
+ ],
498
+ "additionalProperties": false
499
+ },
500
+ "__schema24": {
501
+ "type": "string",
502
+ "minLength": 1,
503
+ "maxLength": 512
504
+ },
505
+ "__schema25": {
506
+ "default": "THIS",
507
+ "type": "string",
508
+ "minLength": 1,
509
+ "maxLength": 512
510
+ },
511
+ "__schema26": {
512
+ "default": "enumeration",
513
+ "type": "string",
514
+ "enum": [
515
+ "enumeration",
516
+ "uniform",
517
+ "proportional_categorical"
518
+ ]
519
+ },
520
+ "__schema27": {
521
+ "default": false,
522
+ "type": "boolean"
523
+ },
524
+ "__schema28": {
525
+ "type": "object",
526
+ "properties": {
527
+ "inlineClausewitz": {
528
+ "$ref": "#/$defs/__schema29"
529
+ },
530
+ "scriptedTrigger": {
531
+ "$ref": "#/$defs/__schema30"
532
+ }
533
+ },
534
+ "additionalProperties": false
535
+ },
536
+ "__schema29": {
537
+ "type": "string",
538
+ "minLength": 1,
539
+ "maxLength": 1048576
540
+ },
541
+ "__schema30": {
542
+ "type": "string",
543
+ "minLength": 1,
544
+ "maxLength": 512
545
+ },
546
+ "__schema31": {
547
+ "minItems": 1,
548
+ "maxItems": 100000,
549
+ "type": "array",
550
+ "items": {
551
+ "$ref": "#/$defs/__schema20"
552
+ }
553
+ },
554
+ "__schema32": {
555
+ "type": "object",
556
+ "propertyNames": {
557
+ "type": "string",
558
+ "maxLength": 512
559
+ },
560
+ "additionalProperties": {
561
+ "type": "boolean"
562
+ }
563
+ },
564
+ "__schema33": {
380
565
  "maxItems": 10000,
381
566
  "type": "array",
382
567
  "items": {
383
- "$ref": "#/$defs/__schema21"
568
+ "$ref": "#/$defs/__schema34"
384
569
  }
385
570
  },
386
- "__schema21": {
571
+ "__schema34": {
387
572
  "type": "object",
388
573
  "properties": {
389
574
  "path": {
390
- "$ref": "#/$defs/__schema22"
575
+ "$ref": "#/$defs/__schema35"
391
576
  },
392
577
  "range": {
393
- "$ref": "#/$defs/__schema23"
578
+ "$ref": "#/$defs/__schema36"
394
579
  },
395
580
  "alternatives": {
396
- "$ref": "#/$defs/__schema24"
581
+ "$ref": "#/$defs/__schema37"
397
582
  },
398
583
  "distribution": {
399
- "$ref": "#/$defs/__schema25"
584
+ "$ref": "#/$defs/__schema38"
400
585
  },
401
586
  "unresolved": {
402
- "$ref": "#/$defs/__schema35"
587
+ "$ref": "#/$defs/__schema48"
403
588
  }
404
589
  },
405
590
  "required": [
@@ -407,12 +592,12 @@
407
592
  ],
408
593
  "additionalProperties": false
409
594
  },
410
- "__schema22": {
595
+ "__schema35": {
411
596
  "type": "string",
412
597
  "minLength": 1,
413
598
  "maxLength": 1024
414
599
  },
415
- "__schema23": {
600
+ "__schema36": {
416
601
  "type": "object",
417
602
  "properties": {
418
603
  "min": {
@@ -428,7 +613,7 @@
428
613
  ],
429
614
  "additionalProperties": false
430
615
  },
431
- "__schema24": {
616
+ "__schema37": {
432
617
  "minItems": 1,
433
618
  "maxItems": 100000,
434
619
  "type": "array",
@@ -436,32 +621,32 @@
436
621
  "$ref": "#/$defs/__schema15"
437
622
  }
438
623
  },
439
- "__schema25": {
624
+ "__schema38": {
440
625
  "type": "object",
441
626
  "properties": {
442
627
  "kind": {
443
- "$ref": "#/$defs/__schema26"
628
+ "$ref": "#/$defs/__schema39"
444
629
  },
445
630
  "min": {
446
- "$ref": "#/$defs/__schema27"
631
+ "$ref": "#/$defs/__schema40"
447
632
  },
448
633
  "max": {
449
- "$ref": "#/$defs/__schema28"
634
+ "$ref": "#/$defs/__schema41"
450
635
  },
451
636
  "mode": {
452
- "$ref": "#/$defs/__schema29"
637
+ "$ref": "#/$defs/__schema42"
453
638
  },
454
639
  "mean": {
455
- "$ref": "#/$defs/__schema30"
640
+ "$ref": "#/$defs/__schema43"
456
641
  },
457
642
  "stddev": {
458
- "$ref": "#/$defs/__schema31"
643
+ "$ref": "#/$defs/__schema44"
459
644
  },
460
645
  "values": {
461
- "$ref": "#/$defs/__schema32"
646
+ "$ref": "#/$defs/__schema45"
462
647
  },
463
648
  "probabilities": {
464
- "$ref": "#/$defs/__schema33"
649
+ "$ref": "#/$defs/__schema46"
465
650
  }
466
651
  },
467
652
  "required": [
@@ -469,7 +654,7 @@
469
654
  ],
470
655
  "additionalProperties": false
471
656
  },
472
- "__schema26": {
657
+ "__schema39": {
473
658
  "type": "string",
474
659
  "enum": [
475
660
  "uniform",
@@ -480,23 +665,23 @@
480
665
  "empirical"
481
666
  ]
482
667
  },
483
- "__schema27": {
668
+ "__schema40": {
484
669
  "type": "number"
485
670
  },
486
- "__schema28": {
671
+ "__schema41": {
487
672
  "type": "number"
488
673
  },
489
- "__schema29": {
674
+ "__schema42": {
490
675
  "type": "number"
491
676
  },
492
- "__schema30": {
677
+ "__schema43": {
493
678
  "type": "number"
494
679
  },
495
- "__schema31": {
680
+ "__schema44": {
496
681
  "type": "number",
497
682
  "exclusiveMinimum": 0
498
683
  },
499
- "__schema32": {
684
+ "__schema45": {
500
685
  "minItems": 1,
501
686
  "maxItems": 100000,
502
687
  "type": "array",
@@ -504,31 +689,31 @@
504
689
  "$ref": "#/$defs/__schema15"
505
690
  }
506
691
  },
507
- "__schema33": {
692
+ "__schema46": {
508
693
  "minItems": 1,
509
694
  "maxItems": 100000,
510
695
  "type": "array",
511
696
  "items": {
512
- "$ref": "#/$defs/__schema34"
697
+ "$ref": "#/$defs/__schema47"
513
698
  }
514
699
  },
515
- "__schema34": {
700
+ "__schema47": {
516
701
  "type": "number",
517
702
  "minimum": 0,
518
703
  "maximum": 1
519
704
  },
520
- "__schema35": {
705
+ "__schema48": {
521
706
  "type": "boolean",
522
707
  "const": true
523
708
  },
524
- "__schema36": {
709
+ "__schema49": {
525
710
  "maxItems": 10000,
526
711
  "type": "array",
527
712
  "items": {
528
- "$ref": "#/$defs/__schema37"
713
+ "$ref": "#/$defs/__schema50"
529
714
  }
530
715
  },
531
- "__schema37": {
716
+ "__schema50": {
532
717
  "type": "object",
533
718
  "properties": {
534
719
  "left": {
@@ -554,14 +739,14 @@
554
739
  ],
555
740
  "additionalProperties": false
556
741
  },
557
- "__schema38": {
742
+ "__schema51": {
558
743
  "maxItems": 100000,
559
744
  "type": "array",
560
745
  "items": {
561
- "$ref": "#/$defs/__schema39"
746
+ "$ref": "#/$defs/__schema52"
562
747
  }
563
748
  },
564
- "__schema39": {
749
+ "__schema52": {
565
750
  "type": "object",
566
751
  "properties": {
567
752
  "atDay": {
@@ -582,14 +767,14 @@
582
767
  "maxItems": 100000,
583
768
  "type": "array",
584
769
  "items": {
585
- "$ref": "#/$defs/__schema40"
770
+ "$ref": "#/$defs/__schema53"
586
771
  }
587
772
  },
588
773
  "addFlags": {
589
774
  "maxItems": 100000,
590
775
  "type": "array",
591
776
  "items": {
592
- "$ref": "#/$defs/__schema41"
777
+ "$ref": "#/$defs/__schema54"
593
778
  }
594
779
  }
595
780
  },
@@ -599,20 +784,20 @@
599
784
  ],
600
785
  "additionalProperties": false
601
786
  },
602
- "__schema40": {
787
+ "__schema53": {
603
788
  "type": "string",
604
789
  "maxLength": 512
605
790
  },
606
- "__schema41": {
791
+ "__schema54": {
607
792
  "type": "string",
608
793
  "maxLength": 512
609
794
  },
610
- "__schema42": {
795
+ "__schema55": {
611
796
  "type": "string",
612
797
  "minLength": 1,
613
798
  "maxLength": 512
614
799
  },
615
- "__schema43": {
800
+ "__schema56": {
616
801
  "type": "string",
617
802
  "enum": [
618
803
  "conditional_probability",
@@ -621,29 +806,29 @@
621
806
  "effective_mtth_days"
622
807
  ]
623
808
  },
624
- "__schema44": {
809
+ "__schema57": {
625
810
  "type": "object",
626
811
  "properties": {
627
812
  "id": {
628
- "$ref": "#/$defs/__schema45"
813
+ "$ref": "#/$defs/__schema58"
629
814
  },
630
815
  "label": {
631
- "$ref": "#/$defs/__schema46"
816
+ "$ref": "#/$defs/__schema59"
632
817
  },
633
818
  "scenarioId": {
634
- "$ref": "#/$defs/__schema47"
819
+ "$ref": "#/$defs/__schema60"
635
820
  },
636
821
  "candidateId": {
637
- "$ref": "#/$defs/__schema48"
822
+ "$ref": "#/$defs/__schema61"
638
823
  },
639
824
  "metric": {
640
- "$ref": "#/$defs/__schema43"
825
+ "$ref": "#/$defs/__schema56"
641
826
  },
642
827
  "min": {
643
- "$ref": "#/$defs/__schema49"
828
+ "$ref": "#/$defs/__schema62"
644
829
  },
645
830
  "max": {
646
- "$ref": "#/$defs/__schema50"
831
+ "$ref": "#/$defs/__schema63"
647
832
  }
648
833
  },
649
834
  "required": [
@@ -653,32 +838,32 @@
653
838
  ],
654
839
  "additionalProperties": false
655
840
  },
656
- "__schema45": {
841
+ "__schema58": {
657
842
  "type": "string",
658
843
  "minLength": 1,
659
844
  "maxLength": 512
660
845
  },
661
- "__schema46": {
846
+ "__schema59": {
662
847
  "type": "string",
663
848
  "maxLength": 4096
664
849
  },
665
- "__schema47": {
850
+ "__schema60": {
666
851
  "type": "string",
667
852
  "minLength": 1,
668
853
  "maxLength": 512
669
854
  },
670
- "__schema48": {
855
+ "__schema61": {
671
856
  "type": "string",
672
857
  "minLength": 1,
673
858
  "maxLength": 512
674
859
  },
675
- "__schema49": {
860
+ "__schema62": {
676
861
  "type": "number"
677
862
  },
678
- "__schema50": {
863
+ "__schema63": {
679
864
  "type": "number"
680
865
  },
681
- "__schema51": {
866
+ "__schema64": {
682
867
  "type": "string",
683
868
  "enum": [
684
869
  "json",
@@ -693,7 +878,7 @@
693
878
  "unresolved"
694
879
  ]
695
880
  },
696
- "__schema52": {
881
+ "__schema65": {
697
882
  "type": "string",
698
883
  "minLength": 1,
699
884
  "maxLength": 1024
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": "Analyze HOI4 events, tech trees, AI weights, and MTTH; build focus trees, GUIs, and maps.",
6
- "version": "2.7.0",
6
+ "version": "2.8.1",
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": "2.7.0",
16
+ "version": "2.8.1",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  }