hoi4-agent-tools 2.7.0 → 2.8.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.
- package/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/dist/hoi4_agent_tools/mcp/tools/probability.js +9 -0
- package/dist/hoi4_agent_tools/probability/adapters.js +5 -0
- package/dist/hoi4_agent_tools/probability/evaluation.js +6 -1
- package/dist/hoi4_agent_tools/probability/scenario-state.js +165 -0
- package/dist/hoi4_agent_tools/probability/scope-pools.js +199 -0
- package/dist/hoi4_agent_tools/probability/simulation.js +4 -3
- package/dist/hoi4_agent_tools/probability/sweep.js +6 -2
- package/dist/hoi4_agent_tools/probability/trigger-evaluator.js +35 -28
- package/dist/hoi4_agent_tools/probability/value-evaluator.js +4 -0
- package/dist/hoi4_agent_tools/schemas/probability.js +90 -0
- package/dist/hoi4_agent_tools/version.js +1 -1
- package/docs/probability.md +46 -0
- package/docs/research/probability-adapter-evidence.md +2 -1
- package/examples/probability/scoped-dynamic-pools-evaluate-input.json +50 -0
- package/package.json +1 -1
- package/schemas/configuration.schema.json +1 -1
- package/schemas/continuous-focus-palette.schema.json +1 -1
- package/schemas/custom-weighted-pool.schema.json +1 -1
- package/schemas/event-feature-manifest.schema.json +1 -1
- package/schemas/focus-plan.schema.json +1 -1
- package/schemas/focus-planning-sidecar.schema.json +1 -1
- package/schemas/gui-animation-source.schema.json +1 -1
- package/schemas/gui-helper.schema.json +1 -1
- package/schemas/gui-scenario.schema.json +1 -1
- package/schemas/map-operation.schema.json +1 -1
- package/schemas/operation-result.schema.json +1 -1
- package/schemas/probability-analysis-result.schema.json +175 -66
- package/schemas/probability-compare-input.schema.json +251 -66
- package/schemas/probability-evaluate-input.schema.json +252 -67
- package/schemas/probability-inspect-input.schema.json +1 -1
- package/schemas/probability-render-input.schema.json +1 -1
- package/schemas/probability-scenario-set.schema.json +231 -46
- package/schemas/probability-sequence-input.schema.json +273 -88
- package/schemas/probability-simulate-input.schema.json +252 -67
- package/schemas/probability-sweep-input.schema.json +254 -69
- package/server.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v2.
|
|
2
|
+
"$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v2.8.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": {
|
|
@@ -652,67 +652,19 @@
|
|
|
652
652
|
"trace": {
|
|
653
653
|
"type": "array",
|
|
654
654
|
"items": {
|
|
655
|
-
"
|
|
656
|
-
"properties": {
|
|
657
|
-
"operation": {
|
|
658
|
-
"type": "string",
|
|
659
|
-
"enum": [
|
|
660
|
-
"base",
|
|
661
|
-
"add",
|
|
662
|
-
"factor",
|
|
663
|
-
"eligibility",
|
|
664
|
-
"external_factor",
|
|
665
|
-
"normalization"
|
|
666
|
-
]
|
|
667
|
-
},
|
|
668
|
-
"expression": {
|
|
669
|
-
"type": "string"
|
|
670
|
-
},
|
|
671
|
-
"applied": {
|
|
672
|
-
"type": "string",
|
|
673
|
-
"enum": [
|
|
674
|
-
"true",
|
|
675
|
-
"false",
|
|
676
|
-
"unresolved"
|
|
677
|
-
]
|
|
678
|
-
},
|
|
679
|
-
"value": {
|
|
680
|
-
"$ref": "#/$defs/__schema2"
|
|
681
|
-
},
|
|
682
|
-
"before": {
|
|
683
|
-
"$ref": "#/$defs/__schema2"
|
|
684
|
-
},
|
|
685
|
-
"after": {
|
|
686
|
-
"$ref": "#/$defs/__schema2"
|
|
687
|
-
},
|
|
688
|
-
"provenance": {
|
|
689
|
-
"$ref": "#/$defs/__schema3"
|
|
690
|
-
},
|
|
691
|
-
"conditionExpression": {
|
|
692
|
-
"type": "string"
|
|
693
|
-
},
|
|
694
|
-
"note": {
|
|
695
|
-
"type": "string"
|
|
696
|
-
}
|
|
697
|
-
},
|
|
698
|
-
"required": [
|
|
699
|
-
"operation",
|
|
700
|
-
"expression",
|
|
701
|
-
"applied"
|
|
702
|
-
],
|
|
703
|
-
"additionalProperties": false
|
|
655
|
+
"$ref": "#/$defs/__schema3"
|
|
704
656
|
}
|
|
705
657
|
},
|
|
706
658
|
"provenance": {
|
|
707
659
|
"type": "array",
|
|
708
660
|
"items": {
|
|
709
|
-
"$ref": "#/$defs/
|
|
661
|
+
"$ref": "#/$defs/__schema4"
|
|
710
662
|
}
|
|
711
663
|
},
|
|
712
664
|
"unresolved": {
|
|
713
665
|
"type": "array",
|
|
714
666
|
"items": {
|
|
715
|
-
"$ref": "#/$defs/
|
|
667
|
+
"$ref": "#/$defs/__schema7"
|
|
716
668
|
}
|
|
717
669
|
}
|
|
718
670
|
},
|
|
@@ -803,6 +755,112 @@
|
|
|
803
755
|
"additionalProperties": false
|
|
804
756
|
}
|
|
805
757
|
},
|
|
758
|
+
"scopePools": {
|
|
759
|
+
"type": "array",
|
|
760
|
+
"items": {
|
|
761
|
+
"type": "object",
|
|
762
|
+
"properties": {
|
|
763
|
+
"id": {
|
|
764
|
+
"type": "string"
|
|
765
|
+
},
|
|
766
|
+
"bindAs": {
|
|
767
|
+
"type": "string"
|
|
768
|
+
},
|
|
769
|
+
"selection": {
|
|
770
|
+
"type": "string",
|
|
771
|
+
"enum": [
|
|
772
|
+
"enumeration",
|
|
773
|
+
"uniform",
|
|
774
|
+
"proportional_categorical"
|
|
775
|
+
]
|
|
776
|
+
},
|
|
777
|
+
"poolComplete": {
|
|
778
|
+
"type": "boolean"
|
|
779
|
+
},
|
|
780
|
+
"candidates": {
|
|
781
|
+
"type": "array",
|
|
782
|
+
"items": {
|
|
783
|
+
"type": "object",
|
|
784
|
+
"properties": {
|
|
785
|
+
"id": {
|
|
786
|
+
"type": "string"
|
|
787
|
+
},
|
|
788
|
+
"eligibility": {
|
|
789
|
+
"type": "string",
|
|
790
|
+
"enum": [
|
|
791
|
+
"true",
|
|
792
|
+
"false",
|
|
793
|
+
"unresolved"
|
|
794
|
+
]
|
|
795
|
+
},
|
|
796
|
+
"weight": {
|
|
797
|
+
"$ref": "#/$defs/__schema2"
|
|
798
|
+
},
|
|
799
|
+
"conditionalProbability": {
|
|
800
|
+
"type": "number",
|
|
801
|
+
"minimum": 0,
|
|
802
|
+
"maximum": 1
|
|
803
|
+
},
|
|
804
|
+
"exactConditionalProbability": {
|
|
805
|
+
"$ref": "#/$defs/__schema2"
|
|
806
|
+
},
|
|
807
|
+
"trace": {
|
|
808
|
+
"type": "array",
|
|
809
|
+
"items": {
|
|
810
|
+
"$ref": "#/$defs/__schema3"
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
"unresolved": {
|
|
814
|
+
"type": "array",
|
|
815
|
+
"items": {
|
|
816
|
+
"$ref": "#/$defs/__schema7"
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
},
|
|
820
|
+
"required": [
|
|
821
|
+
"id",
|
|
822
|
+
"eligibility",
|
|
823
|
+
"trace",
|
|
824
|
+
"unresolved"
|
|
825
|
+
],
|
|
826
|
+
"additionalProperties": false
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
"eligibleCandidateIds": {
|
|
830
|
+
"type": "array",
|
|
831
|
+
"items": {
|
|
832
|
+
"type": "string"
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
"unresolvedCandidateIds": {
|
|
836
|
+
"type": "array",
|
|
837
|
+
"items": {
|
|
838
|
+
"type": "string"
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
"poolTotal": {
|
|
842
|
+
"$ref": "#/$defs/__schema2"
|
|
843
|
+
},
|
|
844
|
+
"unresolved": {
|
|
845
|
+
"type": "array",
|
|
846
|
+
"items": {
|
|
847
|
+
"$ref": "#/$defs/__schema7"
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
"required": [
|
|
852
|
+
"id",
|
|
853
|
+
"bindAs",
|
|
854
|
+
"selection",
|
|
855
|
+
"poolComplete",
|
|
856
|
+
"candidates",
|
|
857
|
+
"eligibleCandidateIds",
|
|
858
|
+
"unresolvedCandidateIds",
|
|
859
|
+
"unresolved"
|
|
860
|
+
],
|
|
861
|
+
"additionalProperties": false
|
|
862
|
+
}
|
|
863
|
+
},
|
|
806
864
|
"summary": {
|
|
807
865
|
"type": "object",
|
|
808
866
|
"properties": {
|
|
@@ -882,7 +940,7 @@
|
|
|
882
940
|
"unresolved": {
|
|
883
941
|
"type": "array",
|
|
884
942
|
"items": {
|
|
885
|
-
"$ref": "#/$defs/
|
|
943
|
+
"$ref": "#/$defs/__schema7"
|
|
886
944
|
}
|
|
887
945
|
}
|
|
888
946
|
},
|
|
@@ -975,13 +1033,13 @@
|
|
|
975
1033
|
"maxLength": 4096
|
|
976
1034
|
},
|
|
977
1035
|
"location": {
|
|
978
|
-
"$ref": "#/$defs/
|
|
1036
|
+
"$ref": "#/$defs/__schema5"
|
|
979
1037
|
},
|
|
980
1038
|
"related": {
|
|
981
1039
|
"maxItems": 100,
|
|
982
1040
|
"type": "array",
|
|
983
1041
|
"items": {
|
|
984
|
-
"$ref": "#/$defs/
|
|
1042
|
+
"$ref": "#/$defs/__schema5"
|
|
985
1043
|
}
|
|
986
1044
|
},
|
|
987
1045
|
"operationId": {
|
|
@@ -1009,7 +1067,7 @@
|
|
|
1009
1067
|
"unresolved": {
|
|
1010
1068
|
"type": "array",
|
|
1011
1069
|
"items": {
|
|
1012
|
-
"$ref": "#/$defs/
|
|
1070
|
+
"$ref": "#/$defs/__schema7"
|
|
1013
1071
|
}
|
|
1014
1072
|
},
|
|
1015
1073
|
"sweep": {
|
|
@@ -1018,7 +1076,7 @@
|
|
|
1018
1076
|
"points": {
|
|
1019
1077
|
"type": "array",
|
|
1020
1078
|
"items": {
|
|
1021
|
-
"$ref": "#/$defs/
|
|
1079
|
+
"$ref": "#/$defs/__schema8"
|
|
1022
1080
|
}
|
|
1023
1081
|
},
|
|
1024
1082
|
"rankReversals": {
|
|
@@ -1063,7 +1121,7 @@
|
|
|
1063
1121
|
"breakpoints": {
|
|
1064
1122
|
"type": "array",
|
|
1065
1123
|
"items": {
|
|
1066
|
-
"$ref": "#/$defs/
|
|
1124
|
+
"$ref": "#/$defs/__schema8"
|
|
1067
1125
|
}
|
|
1068
1126
|
},
|
|
1069
1127
|
"localElasticities": {
|
|
@@ -2024,6 +2082,57 @@
|
|
|
2024
2082
|
"additionalProperties": false
|
|
2025
2083
|
},
|
|
2026
2084
|
"__schema3": {
|
|
2085
|
+
"type": "object",
|
|
2086
|
+
"properties": {
|
|
2087
|
+
"operation": {
|
|
2088
|
+
"type": "string",
|
|
2089
|
+
"enum": [
|
|
2090
|
+
"base",
|
|
2091
|
+
"add",
|
|
2092
|
+
"factor",
|
|
2093
|
+
"eligibility",
|
|
2094
|
+
"external_factor",
|
|
2095
|
+
"normalization"
|
|
2096
|
+
]
|
|
2097
|
+
},
|
|
2098
|
+
"expression": {
|
|
2099
|
+
"type": "string"
|
|
2100
|
+
},
|
|
2101
|
+
"applied": {
|
|
2102
|
+
"type": "string",
|
|
2103
|
+
"enum": [
|
|
2104
|
+
"true",
|
|
2105
|
+
"false",
|
|
2106
|
+
"unresolved"
|
|
2107
|
+
]
|
|
2108
|
+
},
|
|
2109
|
+
"value": {
|
|
2110
|
+
"$ref": "#/$defs/__schema2"
|
|
2111
|
+
},
|
|
2112
|
+
"before": {
|
|
2113
|
+
"$ref": "#/$defs/__schema2"
|
|
2114
|
+
},
|
|
2115
|
+
"after": {
|
|
2116
|
+
"$ref": "#/$defs/__schema2"
|
|
2117
|
+
},
|
|
2118
|
+
"provenance": {
|
|
2119
|
+
"$ref": "#/$defs/__schema4"
|
|
2120
|
+
},
|
|
2121
|
+
"conditionExpression": {
|
|
2122
|
+
"type": "string"
|
|
2123
|
+
},
|
|
2124
|
+
"note": {
|
|
2125
|
+
"type": "string"
|
|
2126
|
+
}
|
|
2127
|
+
},
|
|
2128
|
+
"required": [
|
|
2129
|
+
"operation",
|
|
2130
|
+
"expression",
|
|
2131
|
+
"applied"
|
|
2132
|
+
],
|
|
2133
|
+
"additionalProperties": false
|
|
2134
|
+
},
|
|
2135
|
+
"__schema4": {
|
|
2027
2136
|
"type": "object",
|
|
2028
2137
|
"properties": {
|
|
2029
2138
|
"path": {
|
|
@@ -2041,7 +2150,7 @@
|
|
|
2041
2150
|
"type": "string"
|
|
2042
2151
|
},
|
|
2043
2152
|
"location": {
|
|
2044
|
-
"$ref": "#/$defs/
|
|
2153
|
+
"$ref": "#/$defs/__schema5"
|
|
2045
2154
|
},
|
|
2046
2155
|
"astPath": {
|
|
2047
2156
|
"type": "array",
|
|
@@ -2067,7 +2176,7 @@
|
|
|
2067
2176
|
],
|
|
2068
2177
|
"additionalProperties": false
|
|
2069
2178
|
},
|
|
2070
|
-
"
|
|
2179
|
+
"__schema5": {
|
|
2071
2180
|
"type": "object",
|
|
2072
2181
|
"properties": {
|
|
2073
2182
|
"path": {
|
|
@@ -2076,10 +2185,10 @@
|
|
|
2076
2185
|
"maxLength": 4096
|
|
2077
2186
|
},
|
|
2078
2187
|
"start": {
|
|
2079
|
-
"$ref": "#/$defs/
|
|
2188
|
+
"$ref": "#/$defs/__schema6"
|
|
2080
2189
|
},
|
|
2081
2190
|
"end": {
|
|
2082
|
-
"$ref": "#/$defs/
|
|
2191
|
+
"$ref": "#/$defs/__schema6"
|
|
2083
2192
|
},
|
|
2084
2193
|
"symbol": {
|
|
2085
2194
|
"type": "string",
|
|
@@ -2093,7 +2202,7 @@
|
|
|
2093
2202
|
],
|
|
2094
2203
|
"additionalProperties": false
|
|
2095
2204
|
},
|
|
2096
|
-
"
|
|
2205
|
+
"__schema6": {
|
|
2097
2206
|
"type": "object",
|
|
2098
2207
|
"properties": {
|
|
2099
2208
|
"line": {
|
|
@@ -2119,7 +2228,7 @@
|
|
|
2119
2228
|
],
|
|
2120
2229
|
"additionalProperties": false
|
|
2121
2230
|
},
|
|
2122
|
-
"
|
|
2231
|
+
"__schema7": {
|
|
2123
2232
|
"type": "object",
|
|
2124
2233
|
"properties": {
|
|
2125
2234
|
"code": {
|
|
@@ -2135,7 +2244,7 @@
|
|
|
2135
2244
|
"type": "string"
|
|
2136
2245
|
},
|
|
2137
2246
|
"provenance": {
|
|
2138
|
-
"$ref": "#/$defs/
|
|
2247
|
+
"$ref": "#/$defs/__schema4"
|
|
2139
2248
|
},
|
|
2140
2249
|
"details": {
|
|
2141
2250
|
"type": "object",
|
|
@@ -2151,7 +2260,7 @@
|
|
|
2151
2260
|
],
|
|
2152
2261
|
"additionalProperties": false
|
|
2153
2262
|
},
|
|
2154
|
-
"
|
|
2263
|
+
"__schema8": {
|
|
2155
2264
|
"type": "object",
|
|
2156
2265
|
"properties": {
|
|
2157
2266
|
"scenarioId": {
|