hoi4-agent-tools 2.2.0 → 2.3.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 (62) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +30 -21
  3. package/dist/bin/stdio.js +0 -4
  4. package/dist/hoi4_agent_tools/core/clausewitz-evaluation.js +90 -0
  5. package/dist/hoi4_agent_tools/core/engine.js +5 -0
  6. package/dist/hoi4_agent_tools/core/index.js +57 -1
  7. package/dist/hoi4_agent_tools/core/source/ast-path.js +41 -0
  8. package/dist/hoi4_agent_tools/core/source/index.js +1 -0
  9. package/dist/hoi4_agent_tools/event/limits.js +1 -1
  10. package/dist/hoi4_agent_tools/mcp/server/create.js +3 -1
  11. package/dist/hoi4_agent_tools/mcp/tools/probability.js +413 -0
  12. package/dist/hoi4_agent_tools/probability/adapters.js +344 -0
  13. package/dist/hoi4_agent_tools/probability/compare.js +178 -0
  14. package/dist/hoi4_agent_tools/probability/evaluation.js +649 -0
  15. package/dist/hoi4_agent_tools/probability/index.js +13 -0
  16. package/dist/hoi4_agent_tools/probability/model.js +5 -0
  17. package/dist/hoi4_agent_tools/probability/rational.js +145 -0
  18. package/dist/hoi4_agent_tools/probability/render.js +307 -0
  19. package/dist/hoi4_agent_tools/probability/sequence.js +858 -0
  20. package/dist/hoi4_agent_tools/probability/service.js +1168 -0
  21. package/dist/hoi4_agent_tools/probability/simulation.js +545 -0
  22. package/dist/hoi4_agent_tools/probability/source-analysis.js +458 -0
  23. package/dist/hoi4_agent_tools/probability/sweep.js +265 -0
  24. package/dist/hoi4_agent_tools/probability/trigger-evaluator.js +280 -0
  25. package/dist/hoi4_agent_tools/probability/value-evaluator.js +357 -0
  26. package/dist/hoi4_agent_tools/schemas/probability.js +930 -0
  27. package/dist/hoi4_agent_tools/version.js +1 -1
  28. package/docs/README.md +1 -0
  29. package/docs/development.md +2 -0
  30. package/docs/probability.md +80 -0
  31. package/docs/research/probability-adapter-evidence.md +64 -0
  32. package/examples/clients/codex-config.toml +3 -0
  33. package/examples/clients/generic.json +8 -0
  34. package/examples/probability/adaptive-event-pool.json +92 -0
  35. package/examples/probability/adaptive-event-sequence-input.json +57 -0
  36. package/examples/probability/event-mtth-scenarios.json +57 -0
  37. package/examples/probability/event-mtth-simulate-input.json +37 -0
  38. package/examples/probability/focus-route-scenarios.json +61 -0
  39. package/examples/probability/focus-route-sweep-input.json +36 -0
  40. package/package.json +17 -8
  41. package/schemas/configuration.schema.json +747 -0
  42. package/schemas/continuous-focus-palette.schema.json +325 -0
  43. package/schemas/custom-weighted-pool.schema.json +298 -0
  44. package/schemas/event-feature-manifest.schema.json +63 -0
  45. package/schemas/focus-plan.schema.json +927 -0
  46. package/schemas/focus-planning-sidecar.schema.json +407 -0
  47. package/schemas/gui-animation-source.schema.json +176 -0
  48. package/schemas/gui-helper.schema.json +301 -0
  49. package/schemas/gui-scenario.schema.json +298 -0
  50. package/schemas/map-operation.schema.json +2284 -0
  51. package/schemas/operation-result.schema.json +327 -0
  52. package/schemas/probability-analysis-result.schema.json +2211 -0
  53. package/schemas/probability-compare-input.schema.json +664 -0
  54. package/schemas/probability-evaluate-input.schema.json +665 -0
  55. package/schemas/probability-inspect-input.schema.json +97 -0
  56. package/schemas/probability-render-input.schema.json +141 -0
  57. package/schemas/probability-scenario-set.schema.json +430 -0
  58. package/schemas/probability-sequence-input.schema.json +886 -0
  59. package/schemas/probability-simulate-input.schema.json +691 -0
  60. package/schemas/probability-sweep-input.schema.json +702 -0
  61. package/server.json +3 -3
  62. package/dist/hoi4_agent_tools/mcp/tools/chaosx.js +0 -530
@@ -0,0 +1,886 @@
1
+ {
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v2.3.0/schemas/probability-sequence-input.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "workspaceId": {
7
+ "default": "current",
8
+ "type": "string",
9
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
10
+ },
11
+ "scenarioSet": {
12
+ "type": "object",
13
+ "properties": {
14
+ "schemaVersion": {
15
+ "default": "1.0",
16
+ "type": "string",
17
+ "const": "1.0"
18
+ },
19
+ "id": {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "maxLength": 512
23
+ },
24
+ "workspaceId": {
25
+ "type": "string",
26
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
27
+ },
28
+ "description": {
29
+ "type": "string",
30
+ "maxLength": 8192
31
+ },
32
+ "surfaceHint": {
33
+ "type": "string",
34
+ "enum": [
35
+ "event_mean_time_to_happen",
36
+ "event_option_ai_chance",
37
+ "decision_ai_will_do",
38
+ "mission_ai_will_do",
39
+ "national_focus_ai_will_do",
40
+ "technology_ai_will_do",
41
+ "doctrine_ai_will_do",
42
+ "direct_random",
43
+ "random_list",
44
+ "ai_strategy_factor",
45
+ "custom_weighted_pool"
46
+ ]
47
+ },
48
+ "scenarios": {
49
+ "minItems": 1,
50
+ "maxItems": 10000,
51
+ "type": "array",
52
+ "items": {
53
+ "$ref": "#/$defs/__schema0"
54
+ }
55
+ }
56
+ },
57
+ "required": [
58
+ "id",
59
+ "scenarios"
60
+ ],
61
+ "additionalProperties": false
62
+ },
63
+ "customPoolManifest": {
64
+ "type": "object",
65
+ "properties": {
66
+ "schemaVersion": {
67
+ "$ref": "#/$defs/__schema35"
68
+ },
69
+ "id": {
70
+ "$ref": "#/$defs/__schema36"
71
+ },
72
+ "description": {
73
+ "$ref": "#/$defs/__schema37"
74
+ },
75
+ "selection": {
76
+ "$ref": "#/$defs/__schema38"
77
+ },
78
+ "state": {
79
+ "$ref": "#/$defs/__schema39"
80
+ },
81
+ "candidates": {
82
+ "$ref": "#/$defs/__schema40"
83
+ },
84
+ "recovery": {
85
+ "$ref": "#/$defs/__schema42"
86
+ },
87
+ "transitions": {
88
+ "$ref": "#/$defs/__schema44"
89
+ }
90
+ },
91
+ "required": [
92
+ "id",
93
+ "selection",
94
+ "candidates",
95
+ "transitions"
96
+ ],
97
+ "additionalProperties": false
98
+ },
99
+ "horizonDays": {
100
+ "type": "number",
101
+ "exclusiveMinimum": 0,
102
+ "maximum": 1000000
103
+ },
104
+ "maxSteps": {
105
+ "default": 1000,
106
+ "type": "integer",
107
+ "minimum": 1,
108
+ "maximum": 100000
109
+ },
110
+ "samples": {
111
+ "default": 100000,
112
+ "type": "integer",
113
+ "minimum": 100,
114
+ "maximum": 10000000
115
+ },
116
+ "seed": {
117
+ "default": 1,
118
+ "type": "integer",
119
+ "minimum": -2147483648,
120
+ "maximum": 2147483647
121
+ },
122
+ "confidenceLevel": {
123
+ "default": 0.95,
124
+ "type": "number",
125
+ "minimum": 0.5,
126
+ "maximum": 0.9999
127
+ },
128
+ "acceptanceBands": {
129
+ "maxItems": 100000,
130
+ "type": "array",
131
+ "items": {
132
+ "$ref": "#/$defs/__schema47"
133
+ }
134
+ },
135
+ "diagnosticThresholds": {
136
+ "type": "object",
137
+ "properties": {
138
+ "dominantProbability": {
139
+ "type": "number",
140
+ "minimum": 0,
141
+ "maximum": 1
142
+ },
143
+ "dominantScenarioPrevalence": {
144
+ "type": "number",
145
+ "minimum": 0,
146
+ "maximum": 1
147
+ },
148
+ "starvedProbability": {
149
+ "type": "number",
150
+ "minimum": 0,
151
+ "maximum": 1
152
+ },
153
+ "negligibleCumulativeChance": {
154
+ "type": "number",
155
+ "minimum": 0,
156
+ "maximum": 1
157
+ },
158
+ "extremeGrowthRatio": {
159
+ "type": "number",
160
+ "exclusiveMinimum": 0
161
+ },
162
+ "thresholdCliffDelta": {
163
+ "type": "number",
164
+ "exclusiveMinimum": 0
165
+ },
166
+ "rareOutcomeMinimumObservations": {
167
+ "type": "integer",
168
+ "exclusiveMinimum": 0,
169
+ "maximum": 9007199254740991
170
+ }
171
+ },
172
+ "additionalProperties": false
173
+ },
174
+ "outputs": {
175
+ "maxItems": 10,
176
+ "type": "array",
177
+ "items": {
178
+ "$ref": "#/$defs/__schema55"
179
+ }
180
+ }
181
+ },
182
+ "required": [
183
+ "scenarioSet",
184
+ "customPoolManifest",
185
+ "horizonDays"
186
+ ],
187
+ "additionalProperties": false,
188
+ "$defs": {
189
+ "__schema0": {
190
+ "type": "object",
191
+ "properties": {
192
+ "id": {
193
+ "$ref": "#/$defs/__schema1"
194
+ },
195
+ "label": {
196
+ "$ref": "#/$defs/__schema2"
197
+ },
198
+ "prevalence": {
199
+ "$ref": "#/$defs/__schema3"
200
+ },
201
+ "actor": {
202
+ "$ref": "#/$defs/__schema4"
203
+ },
204
+ "date": {
205
+ "$ref": "#/$defs/__schema5"
206
+ },
207
+ "state": {
208
+ "$ref": "#/$defs/__schema6"
209
+ },
210
+ "flags": {
211
+ "$ref": "#/$defs/__schema9"
212
+ },
213
+ "eventTargets": {
214
+ "$ref": "#/$defs/__schema11"
215
+ },
216
+ "candidateOverrides": {
217
+ "$ref": "#/$defs/__schema12"
218
+ },
219
+ "uncertainInputs": {
220
+ "$ref": "#/$defs/__schema13"
221
+ },
222
+ "correlations": {
223
+ "$ref": "#/$defs/__schema29"
224
+ },
225
+ "schedule": {
226
+ "$ref": "#/$defs/__schema31"
227
+ }
228
+ },
229
+ "required": [
230
+ "id",
231
+ "state"
232
+ ],
233
+ "additionalProperties": false
234
+ },
235
+ "__schema1": {
236
+ "type": "string",
237
+ "minLength": 1,
238
+ "maxLength": 512
239
+ },
240
+ "__schema2": {
241
+ "type": "string",
242
+ "maxLength": 4096
243
+ },
244
+ "__schema3": {
245
+ "type": "number",
246
+ "minimum": 0,
247
+ "maximum": 1
248
+ },
249
+ "__schema4": {
250
+ "type": "string",
251
+ "maxLength": 256
252
+ },
253
+ "__schema5": {
254
+ "type": "string",
255
+ "maxLength": 64
256
+ },
257
+ "__schema6": {
258
+ "type": "object",
259
+ "propertyNames": {
260
+ "type": "string",
261
+ "minLength": 1,
262
+ "maxLength": 1024
263
+ },
264
+ "additionalProperties": {
265
+ "$ref": "#/$defs/__schema7"
266
+ }
267
+ },
268
+ "__schema7": {
269
+ "anyOf": [
270
+ {
271
+ "$ref": "#/$defs/__schema8"
272
+ },
273
+ {
274
+ "maxItems": 100000,
275
+ "type": "array",
276
+ "items": {
277
+ "$ref": "#/$defs/__schema8"
278
+ }
279
+ }
280
+ ]
281
+ },
282
+ "__schema8": {
283
+ "anyOf": [
284
+ {
285
+ "type": "string",
286
+ "maxLength": 4096
287
+ },
288
+ {
289
+ "type": "number"
290
+ },
291
+ {
292
+ "type": "boolean"
293
+ },
294
+ {
295
+ "type": "null"
296
+ }
297
+ ]
298
+ },
299
+ "__schema9": {
300
+ "maxItems": 100000,
301
+ "type": "array",
302
+ "items": {
303
+ "$ref": "#/$defs/__schema10"
304
+ }
305
+ },
306
+ "__schema10": {
307
+ "type": "string",
308
+ "minLength": 1,
309
+ "maxLength": 512
310
+ },
311
+ "__schema11": {
312
+ "type": "object",
313
+ "propertyNames": {
314
+ "type": "string",
315
+ "maxLength": 512
316
+ },
317
+ "additionalProperties": {
318
+ "type": "string",
319
+ "maxLength": 512
320
+ }
321
+ },
322
+ "__schema12": {
323
+ "type": "object",
324
+ "propertyNames": {
325
+ "type": "string",
326
+ "maxLength": 512
327
+ },
328
+ "additionalProperties": {
329
+ "type": "boolean"
330
+ }
331
+ },
332
+ "__schema13": {
333
+ "maxItems": 10000,
334
+ "type": "array",
335
+ "items": {
336
+ "$ref": "#/$defs/__schema14"
337
+ }
338
+ },
339
+ "__schema14": {
340
+ "type": "object",
341
+ "properties": {
342
+ "path": {
343
+ "$ref": "#/$defs/__schema15"
344
+ },
345
+ "range": {
346
+ "$ref": "#/$defs/__schema16"
347
+ },
348
+ "alternatives": {
349
+ "$ref": "#/$defs/__schema17"
350
+ },
351
+ "distribution": {
352
+ "$ref": "#/$defs/__schema18"
353
+ },
354
+ "unresolved": {
355
+ "$ref": "#/$defs/__schema28"
356
+ }
357
+ },
358
+ "required": [
359
+ "path"
360
+ ],
361
+ "additionalProperties": false
362
+ },
363
+ "__schema15": {
364
+ "type": "string",
365
+ "minLength": 1,
366
+ "maxLength": 1024
367
+ },
368
+ "__schema16": {
369
+ "type": "object",
370
+ "properties": {
371
+ "min": {
372
+ "type": "number"
373
+ },
374
+ "max": {
375
+ "type": "number"
376
+ }
377
+ },
378
+ "required": [
379
+ "min",
380
+ "max"
381
+ ],
382
+ "additionalProperties": false
383
+ },
384
+ "__schema17": {
385
+ "minItems": 1,
386
+ "maxItems": 100000,
387
+ "type": "array",
388
+ "items": {
389
+ "$ref": "#/$defs/__schema8"
390
+ }
391
+ },
392
+ "__schema18": {
393
+ "type": "object",
394
+ "properties": {
395
+ "kind": {
396
+ "$ref": "#/$defs/__schema19"
397
+ },
398
+ "min": {
399
+ "$ref": "#/$defs/__schema20"
400
+ },
401
+ "max": {
402
+ "$ref": "#/$defs/__schema21"
403
+ },
404
+ "mode": {
405
+ "$ref": "#/$defs/__schema22"
406
+ },
407
+ "mean": {
408
+ "$ref": "#/$defs/__schema23"
409
+ },
410
+ "stddev": {
411
+ "$ref": "#/$defs/__schema24"
412
+ },
413
+ "values": {
414
+ "$ref": "#/$defs/__schema25"
415
+ },
416
+ "probabilities": {
417
+ "$ref": "#/$defs/__schema26"
418
+ }
419
+ },
420
+ "required": [
421
+ "kind"
422
+ ],
423
+ "additionalProperties": false
424
+ },
425
+ "__schema19": {
426
+ "type": "string",
427
+ "enum": [
428
+ "uniform",
429
+ "triangular",
430
+ "normal",
431
+ "lognormal",
432
+ "categorical",
433
+ "empirical"
434
+ ]
435
+ },
436
+ "__schema20": {
437
+ "type": "number"
438
+ },
439
+ "__schema21": {
440
+ "type": "number"
441
+ },
442
+ "__schema22": {
443
+ "type": "number"
444
+ },
445
+ "__schema23": {
446
+ "type": "number"
447
+ },
448
+ "__schema24": {
449
+ "type": "number",
450
+ "exclusiveMinimum": 0
451
+ },
452
+ "__schema25": {
453
+ "minItems": 1,
454
+ "maxItems": 100000,
455
+ "type": "array",
456
+ "items": {
457
+ "$ref": "#/$defs/__schema8"
458
+ }
459
+ },
460
+ "__schema26": {
461
+ "minItems": 1,
462
+ "maxItems": 100000,
463
+ "type": "array",
464
+ "items": {
465
+ "$ref": "#/$defs/__schema27"
466
+ }
467
+ },
468
+ "__schema27": {
469
+ "type": "number",
470
+ "minimum": 0,
471
+ "maximum": 1
472
+ },
473
+ "__schema28": {
474
+ "type": "boolean",
475
+ "const": true
476
+ },
477
+ "__schema29": {
478
+ "maxItems": 10000,
479
+ "type": "array",
480
+ "items": {
481
+ "$ref": "#/$defs/__schema30"
482
+ }
483
+ },
484
+ "__schema30": {
485
+ "type": "object",
486
+ "properties": {
487
+ "left": {
488
+ "type": "string",
489
+ "minLength": 1,
490
+ "maxLength": 1024
491
+ },
492
+ "right": {
493
+ "type": "string",
494
+ "minLength": 1,
495
+ "maxLength": 1024
496
+ },
497
+ "coefficient": {
498
+ "type": "number",
499
+ "minimum": -1,
500
+ "maximum": 1
501
+ }
502
+ },
503
+ "required": [
504
+ "left",
505
+ "right",
506
+ "coefficient"
507
+ ],
508
+ "additionalProperties": false
509
+ },
510
+ "__schema31": {
511
+ "maxItems": 100000,
512
+ "type": "array",
513
+ "items": {
514
+ "$ref": "#/$defs/__schema32"
515
+ }
516
+ },
517
+ "__schema32": {
518
+ "type": "object",
519
+ "properties": {
520
+ "atDay": {
521
+ "type": "number",
522
+ "minimum": 0
523
+ },
524
+ "set": {
525
+ "type": "object",
526
+ "propertyNames": {
527
+ "type": "string",
528
+ "maxLength": 1024
529
+ },
530
+ "additionalProperties": {
531
+ "$ref": "#/$defs/__schema7"
532
+ }
533
+ },
534
+ "clearFlags": {
535
+ "maxItems": 100000,
536
+ "type": "array",
537
+ "items": {
538
+ "$ref": "#/$defs/__schema33"
539
+ }
540
+ },
541
+ "addFlags": {
542
+ "maxItems": 100000,
543
+ "type": "array",
544
+ "items": {
545
+ "$ref": "#/$defs/__schema34"
546
+ }
547
+ }
548
+ },
549
+ "required": [
550
+ "atDay",
551
+ "set"
552
+ ],
553
+ "additionalProperties": false
554
+ },
555
+ "__schema33": {
556
+ "type": "string",
557
+ "maxLength": 512
558
+ },
559
+ "__schema34": {
560
+ "type": "string",
561
+ "maxLength": 512
562
+ },
563
+ "__schema35": {
564
+ "default": "1.0",
565
+ "type": "string",
566
+ "const": "1.0"
567
+ },
568
+ "__schema36": {
569
+ "type": "string",
570
+ "minLength": 1,
571
+ "maxLength": 512
572
+ },
573
+ "__schema37": {
574
+ "type": "string",
575
+ "maxLength": 8192
576
+ },
577
+ "__schema38": {
578
+ "type": "object",
579
+ "properties": {
580
+ "mode": {
581
+ "type": "string",
582
+ "enum": [
583
+ "categorical_weighted",
584
+ "independent_chances"
585
+ ]
586
+ },
587
+ "cadence": {
588
+ "type": "string",
589
+ "enum": [
590
+ "daily",
591
+ "weekly",
592
+ "monthly",
593
+ "timer"
594
+ ]
595
+ },
596
+ "timerMinDays": {
597
+ "type": "number",
598
+ "minimum": 0
599
+ },
600
+ "timerMaxDays": {
601
+ "type": "number",
602
+ "minimum": 0
603
+ },
604
+ "rounding": {
605
+ "type": "string",
606
+ "enum": [
607
+ "exact",
608
+ "floor",
609
+ "ceil",
610
+ "nearest"
611
+ ]
612
+ }
613
+ },
614
+ "required": [
615
+ "mode",
616
+ "cadence"
617
+ ],
618
+ "additionalProperties": false
619
+ },
620
+ "__schema39": {
621
+ "type": "object",
622
+ "propertyNames": {
623
+ "type": "string",
624
+ "maxLength": 1024
625
+ },
626
+ "additionalProperties": {
627
+ "$ref": "#/$defs/__schema8"
628
+ }
629
+ },
630
+ "__schema40": {
631
+ "minItems": 1,
632
+ "maxItems": 100000,
633
+ "type": "array",
634
+ "items": {
635
+ "$ref": "#/$defs/__schema41"
636
+ }
637
+ },
638
+ "__schema41": {
639
+ "type": "object",
640
+ "properties": {
641
+ "id": {
642
+ "type": "string",
643
+ "minLength": 1,
644
+ "maxLength": 512
645
+ },
646
+ "category": {
647
+ "type": "string",
648
+ "maxLength": 512
649
+ },
650
+ "weight": {
651
+ "anyOf": [
652
+ {
653
+ "type": "number"
654
+ },
655
+ {
656
+ "type": "string",
657
+ "maxLength": 1024
658
+ }
659
+ ]
660
+ },
661
+ "cap": {
662
+ "anyOf": [
663
+ {
664
+ "type": "number"
665
+ },
666
+ {
667
+ "type": "string",
668
+ "maxLength": 1024
669
+ }
670
+ ]
671
+ },
672
+ "eligibleWhen": {
673
+ "type": "string",
674
+ "maxLength": 4096
675
+ },
676
+ "oneTime": {
677
+ "type": "boolean"
678
+ },
679
+ "cooldownDays": {
680
+ "type": "number",
681
+ "minimum": 0
682
+ }
683
+ },
684
+ "required": [
685
+ "id",
686
+ "weight"
687
+ ],
688
+ "additionalProperties": false
689
+ },
690
+ "__schema42": {
691
+ "maxItems": 100000,
692
+ "type": "array",
693
+ "items": {
694
+ "$ref": "#/$defs/__schema43"
695
+ }
696
+ },
697
+ "__schema43": {
698
+ "type": "object",
699
+ "properties": {
700
+ "cadence": {
701
+ "type": "string",
702
+ "enum": [
703
+ "daily",
704
+ "weekly",
705
+ "monthly"
706
+ ]
707
+ },
708
+ "target": {
709
+ "type": "string",
710
+ "minLength": 1,
711
+ "maxLength": 1024
712
+ },
713
+ "amount": {
714
+ "anyOf": [
715
+ {
716
+ "type": "number"
717
+ },
718
+ {
719
+ "type": "string",
720
+ "maxLength": 1024
721
+ }
722
+ ]
723
+ },
724
+ "cap": {
725
+ "anyOf": [
726
+ {
727
+ "type": "number"
728
+ },
729
+ {
730
+ "type": "string",
731
+ "maxLength": 1024
732
+ }
733
+ ]
734
+ }
735
+ },
736
+ "required": [
737
+ "cadence",
738
+ "target",
739
+ "amount"
740
+ ],
741
+ "additionalProperties": false
742
+ },
743
+ "__schema44": {
744
+ "maxItems": 100000,
745
+ "type": "array",
746
+ "items": {
747
+ "$ref": "#/$defs/__schema45"
748
+ }
749
+ },
750
+ "__schema45": {
751
+ "type": "object",
752
+ "properties": {
753
+ "when": {
754
+ "type": "string",
755
+ "maxLength": 4096
756
+ },
757
+ "actions": {
758
+ "maxItems": 100000,
759
+ "type": "array",
760
+ "items": {
761
+ "$ref": "#/$defs/__schema46"
762
+ }
763
+ }
764
+ },
765
+ "required": [
766
+ "when",
767
+ "actions"
768
+ ],
769
+ "additionalProperties": false
770
+ },
771
+ "__schema46": {
772
+ "type": "object",
773
+ "properties": {
774
+ "operation": {
775
+ "type": "string",
776
+ "enum": [
777
+ "set",
778
+ "add",
779
+ "multiply",
780
+ "cap",
781
+ "remove",
782
+ "cooldown",
783
+ "reset_category",
784
+ "compress_timer",
785
+ "reset_timer",
786
+ "terminate"
787
+ ]
788
+ },
789
+ "target": {
790
+ "type": "string",
791
+ "minLength": 1,
792
+ "maxLength": 1024
793
+ },
794
+ "value": {
795
+ "$ref": "#/$defs/__schema8"
796
+ }
797
+ },
798
+ "required": [
799
+ "operation",
800
+ "target"
801
+ ],
802
+ "additionalProperties": false
803
+ },
804
+ "__schema47": {
805
+ "type": "object",
806
+ "properties": {
807
+ "id": {
808
+ "$ref": "#/$defs/__schema48"
809
+ },
810
+ "label": {
811
+ "$ref": "#/$defs/__schema49"
812
+ },
813
+ "scenarioId": {
814
+ "$ref": "#/$defs/__schema50"
815
+ },
816
+ "candidateId": {
817
+ "$ref": "#/$defs/__schema51"
818
+ },
819
+ "metric": {
820
+ "$ref": "#/$defs/__schema52"
821
+ },
822
+ "min": {
823
+ "$ref": "#/$defs/__schema53"
824
+ },
825
+ "max": {
826
+ "$ref": "#/$defs/__schema54"
827
+ }
828
+ },
829
+ "required": [
830
+ "id",
831
+ "candidateId",
832
+ "metric"
833
+ ],
834
+ "additionalProperties": false
835
+ },
836
+ "__schema48": {
837
+ "type": "string",
838
+ "minLength": 1,
839
+ "maxLength": 512
840
+ },
841
+ "__schema49": {
842
+ "type": "string",
843
+ "maxLength": 4096
844
+ },
845
+ "__schema50": {
846
+ "type": "string",
847
+ "minLength": 1,
848
+ "maxLength": 512
849
+ },
850
+ "__schema51": {
851
+ "type": "string",
852
+ "minLength": 1,
853
+ "maxLength": 512
854
+ },
855
+ "__schema52": {
856
+ "type": "string",
857
+ "enum": [
858
+ "conditional_probability",
859
+ "raw_value",
860
+ "cumulative_chance",
861
+ "effective_mtth_days"
862
+ ]
863
+ },
864
+ "__schema53": {
865
+ "type": "number"
866
+ },
867
+ "__schema54": {
868
+ "type": "number"
869
+ },
870
+ "__schema55": {
871
+ "type": "string",
872
+ "enum": [
873
+ "json",
874
+ "ranking",
875
+ "matrix",
876
+ "waterfall",
877
+ "timing",
878
+ "sensitivity",
879
+ "threshold",
880
+ "sequence",
881
+ "comparison",
882
+ "unresolved"
883
+ ]
884
+ }
885
+ }
886
+ }