opencode-matrixx 2.6.4 → 2.6.6
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/dist/agents/oracle/behavioral-summary.d.ts +1 -1
- package/dist/agents/oracle/high-accuracy-mode.d.ts +1 -1
- package/dist/agents/oracle/interview-mode.d.ts +1 -1
- package/dist/agents/oracle/plan-generation.d.ts +1 -1
- package/dist/agents/oracle/plan-template.d.ts +1 -1
- package/dist/agents/oracle/system-prompt.d.ts +1 -1
- package/dist/cli/setup/index.d.ts +1 -0
- package/dist/cli/setup/preset-wizard.d.ts +36 -0
- package/dist/cli/setup/types.d.ts +5 -0
- package/dist/cli.js +499 -64
- package/dist/config/index.d.ts +0 -1
- package/dist/config/migrations/model-migration.d.ts +1 -2
- package/dist/config/preset-applier.d.ts +17 -0
- package/dist/config/schema/agent-overrides.d.ts +0 -133
- package/dist/config/schema/categories.d.ts +0 -14
- package/dist/config/schema/commands.d.ts +1 -1
- package/dist/config/schema/hooks.d.ts +1 -0
- package/dist/config/schema/matrixx-config.d.ts +29 -144
- package/dist/config/schema/model-config.d.ts +0 -22
- package/dist/config/schema/model-presets.d.ts +40 -0
- package/dist/config/schema/task.d.ts +6 -0
- package/dist/config/schema/tasks.d.ts +25 -0
- package/dist/config/schema.d.ts +3 -0
- package/dist/create-hooks.d.ts +1 -0
- package/dist/features/background-agent/handle-index.d.ts +63 -0
- package/dist/features/background-agent/handle-index.test.d.ts +1 -0
- package/dist/features/background-agent/index.d.ts +1 -0
- package/dist/features/background-agent/manager-handles.test.d.ts +1 -0
- package/dist/features/background-agent/manager.d.ts +12 -0
- package/dist/features/builtin-commands/templates/preset.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/preset-state/index.d.ts +1 -0
- package/dist/features/preset-state/manager.d.ts +5 -0
- package/dist/features/session-state/state.d.ts +6 -0
- package/dist/features/task-storage/types.d.ts +2 -0
- package/dist/hooks/background-task-blocker/hook.d.ts +10 -0
- package/dist/hooks/background-task-blocker/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/json-error-recovery/hook.d.ts +1 -1
- package/dist/hooks/task-continuation-enforcer/continuation-injection.test.d.ts +1 -0
- package/dist/hooks/task-continuation-enforcer/staleness.d.ts +7 -1
- package/dist/hooks/task-continuation-enforcer/todo.d.ts +8 -0
- package/dist/hooks/task-continuation-enforcer/todo.test.d.ts +1 -0
- package/dist/hooks/tasks-todowrite-disabler/constants.d.ts +1 -1
- package/dist/index.js +923 -624
- package/dist/matrixx.schema.json +114 -244
- package/dist/mcp/types.d.ts +1 -1
- package/dist/mcp/{grep-app.d.ts → white-rabbit.d.ts} +1 -1
- package/dist/plugin/hooks/create-core-hooks.d.ts +1 -0
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +2 -1
- package/dist/shared/config-errors.d.ts +3 -0
- package/dist/shared/context-mode-prompt.d.ts +12 -0
- package/dist/shared/context-mode-prompt.test.d.ts +1 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/merge-categories.d.ts +1 -16
- package/dist/shared/task-system-gating.d.ts +10 -0
- package/dist/tools/background-task/constants.d.ts +0 -1
- package/dist/tools/background-task/index.d.ts +1 -1
- package/dist/tools/background-task/tools.d.ts +0 -1
- package/dist/tools/background-task/types.d.ts +0 -5
- package/dist/tools/delegate-task/categories.d.ts +3 -18
- package/dist/tools/delegate-task/complexity-constants.d.ts +2 -7
- package/dist/tools/delegate-task/executor-types.d.ts +7 -2
- package/dist/tools/delegate-task/sync-task.test.d.ts +1 -0
- package/dist/tools/delegate-task/timing.d.ts +5 -0
- package/dist/tools/delegate-task/timing.test.d.ts +1 -0
- package/dist/tools/delegate-task/types.d.ts +5 -2
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/preset/index.d.ts +1 -0
- package/dist/tools/preset/tools.d.ts +7 -0
- package/dist/tools/task/constants.d.ts +1 -0
- package/package.json +1 -1
- package/dist/config/presets.d.ts +0 -4
- package/dist/config/resolve-tiers.d.ts +0 -32
- package/dist/features/builtin-commands/templates/profile.d.ts +0 -1
- package/dist/shared/model-tiers.d.ts +0 -44
- package/dist/shared/tier-resolver.d.ts +0 -26
- package/dist/tools/background-task/create-background-task.d.ts +0 -3
package/dist/matrixx.schema.json
CHANGED
|
@@ -11,15 +11,66 @@
|
|
|
11
11
|
"global_model": {
|
|
12
12
|
"type": "string"
|
|
13
13
|
},
|
|
14
|
-
"
|
|
14
|
+
"model_presets": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"propertyNames": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"additionalProperties": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"default_model": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"agents": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"propertyNames": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"additionalProperties": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"model": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"variant": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"model"
|
|
42
|
+
],
|
|
43
|
+
"additionalProperties": false
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"categories": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"propertyNames": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"additionalProperties": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"model": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"variant": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": [
|
|
62
|
+
"model"
|
|
63
|
+
],
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"additionalProperties": false
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"active_preset": {
|
|
15
72
|
"type": "string",
|
|
16
|
-
"
|
|
17
|
-
"free",
|
|
18
|
-
"fast",
|
|
19
|
-
"standard",
|
|
20
|
-
"premium",
|
|
21
|
-
"frontier"
|
|
22
|
-
]
|
|
73
|
+
"minLength": 1
|
|
23
74
|
},
|
|
24
75
|
"new_task_system_enabled": {
|
|
25
76
|
"type": "boolean"
|
|
@@ -122,6 +173,7 @@
|
|
|
122
173
|
"preemptive-compaction",
|
|
123
174
|
"rules-injector",
|
|
124
175
|
"background-notification",
|
|
176
|
+
"background-task-blocker",
|
|
125
177
|
"auto-update-checker",
|
|
126
178
|
"startup-toast",
|
|
127
179
|
"keyword-detector",
|
|
@@ -187,7 +239,7 @@
|
|
|
187
239
|
"refactor",
|
|
188
240
|
"start-work",
|
|
189
241
|
"stop-continuation",
|
|
190
|
-
"
|
|
242
|
+
"preset",
|
|
191
243
|
"end-ultrawork",
|
|
192
244
|
"handoff",
|
|
193
245
|
"research",
|
|
@@ -217,16 +269,6 @@
|
|
|
217
269
|
"model": {
|
|
218
270
|
"type": "string"
|
|
219
271
|
},
|
|
220
|
-
"tier": {
|
|
221
|
-
"type": "string",
|
|
222
|
-
"enum": [
|
|
223
|
-
"free",
|
|
224
|
-
"fast",
|
|
225
|
-
"standard",
|
|
226
|
-
"premium",
|
|
227
|
-
"frontier"
|
|
228
|
-
]
|
|
229
|
-
},
|
|
230
272
|
"variant": {
|
|
231
273
|
"type": "string"
|
|
232
274
|
},
|
|
@@ -434,16 +476,6 @@
|
|
|
434
476
|
"model": {
|
|
435
477
|
"type": "string"
|
|
436
478
|
},
|
|
437
|
-
"tier": {
|
|
438
|
-
"type": "string",
|
|
439
|
-
"enum": [
|
|
440
|
-
"free",
|
|
441
|
-
"fast",
|
|
442
|
-
"standard",
|
|
443
|
-
"premium",
|
|
444
|
-
"frontier"
|
|
445
|
-
]
|
|
446
|
-
},
|
|
447
479
|
"variant": {
|
|
448
480
|
"type": "string"
|
|
449
481
|
},
|
|
@@ -651,16 +683,6 @@
|
|
|
651
683
|
"model": {
|
|
652
684
|
"type": "string"
|
|
653
685
|
},
|
|
654
|
-
"tier": {
|
|
655
|
-
"type": "string",
|
|
656
|
-
"enum": [
|
|
657
|
-
"free",
|
|
658
|
-
"fast",
|
|
659
|
-
"standard",
|
|
660
|
-
"premium",
|
|
661
|
-
"frontier"
|
|
662
|
-
]
|
|
663
|
-
},
|
|
664
686
|
"variant": {
|
|
665
687
|
"type": "string"
|
|
666
688
|
},
|
|
@@ -868,16 +890,6 @@
|
|
|
868
890
|
"model": {
|
|
869
891
|
"type": "string"
|
|
870
892
|
},
|
|
871
|
-
"tier": {
|
|
872
|
-
"type": "string",
|
|
873
|
-
"enum": [
|
|
874
|
-
"free",
|
|
875
|
-
"fast",
|
|
876
|
-
"standard",
|
|
877
|
-
"premium",
|
|
878
|
-
"frontier"
|
|
879
|
-
]
|
|
880
|
-
},
|
|
881
893
|
"variant": {
|
|
882
894
|
"type": "string"
|
|
883
895
|
},
|
|
@@ -1085,16 +1097,6 @@
|
|
|
1085
1097
|
"model": {
|
|
1086
1098
|
"type": "string"
|
|
1087
1099
|
},
|
|
1088
|
-
"tier": {
|
|
1089
|
-
"type": "string",
|
|
1090
|
-
"enum": [
|
|
1091
|
-
"free",
|
|
1092
|
-
"fast",
|
|
1093
|
-
"standard",
|
|
1094
|
-
"premium",
|
|
1095
|
-
"frontier"
|
|
1096
|
-
]
|
|
1097
|
-
},
|
|
1098
1100
|
"variant": {
|
|
1099
1101
|
"type": "string"
|
|
1100
1102
|
},
|
|
@@ -1302,16 +1304,6 @@
|
|
|
1302
1304
|
"model": {
|
|
1303
1305
|
"type": "string"
|
|
1304
1306
|
},
|
|
1305
|
-
"tier": {
|
|
1306
|
-
"type": "string",
|
|
1307
|
-
"enum": [
|
|
1308
|
-
"free",
|
|
1309
|
-
"fast",
|
|
1310
|
-
"standard",
|
|
1311
|
-
"premium",
|
|
1312
|
-
"frontier"
|
|
1313
|
-
]
|
|
1314
|
-
},
|
|
1315
1307
|
"variant": {
|
|
1316
1308
|
"type": "string"
|
|
1317
1309
|
},
|
|
@@ -1519,16 +1511,6 @@
|
|
|
1519
1511
|
"model": {
|
|
1520
1512
|
"type": "string"
|
|
1521
1513
|
},
|
|
1522
|
-
"tier": {
|
|
1523
|
-
"type": "string",
|
|
1524
|
-
"enum": [
|
|
1525
|
-
"free",
|
|
1526
|
-
"fast",
|
|
1527
|
-
"standard",
|
|
1528
|
-
"premium",
|
|
1529
|
-
"frontier"
|
|
1530
|
-
]
|
|
1531
|
-
},
|
|
1532
1514
|
"variant": {
|
|
1533
1515
|
"type": "string"
|
|
1534
1516
|
},
|
|
@@ -1736,16 +1718,6 @@
|
|
|
1736
1718
|
"model": {
|
|
1737
1719
|
"type": "string"
|
|
1738
1720
|
},
|
|
1739
|
-
"tier": {
|
|
1740
|
-
"type": "string",
|
|
1741
|
-
"enum": [
|
|
1742
|
-
"free",
|
|
1743
|
-
"fast",
|
|
1744
|
-
"standard",
|
|
1745
|
-
"premium",
|
|
1746
|
-
"frontier"
|
|
1747
|
-
]
|
|
1748
|
-
},
|
|
1749
1721
|
"variant": {
|
|
1750
1722
|
"type": "string"
|
|
1751
1723
|
},
|
|
@@ -1953,16 +1925,6 @@
|
|
|
1953
1925
|
"model": {
|
|
1954
1926
|
"type": "string"
|
|
1955
1927
|
},
|
|
1956
|
-
"tier": {
|
|
1957
|
-
"type": "string",
|
|
1958
|
-
"enum": [
|
|
1959
|
-
"free",
|
|
1960
|
-
"fast",
|
|
1961
|
-
"standard",
|
|
1962
|
-
"premium",
|
|
1963
|
-
"frontier"
|
|
1964
|
-
]
|
|
1965
|
-
},
|
|
1966
1928
|
"variant": {
|
|
1967
1929
|
"type": "string"
|
|
1968
1930
|
},
|
|
@@ -2170,16 +2132,6 @@
|
|
|
2170
2132
|
"model": {
|
|
2171
2133
|
"type": "string"
|
|
2172
2134
|
},
|
|
2173
|
-
"tier": {
|
|
2174
|
-
"type": "string",
|
|
2175
|
-
"enum": [
|
|
2176
|
-
"free",
|
|
2177
|
-
"fast",
|
|
2178
|
-
"standard",
|
|
2179
|
-
"premium",
|
|
2180
|
-
"frontier"
|
|
2181
|
-
]
|
|
2182
|
-
},
|
|
2183
2135
|
"variant": {
|
|
2184
2136
|
"type": "string"
|
|
2185
2137
|
},
|
|
@@ -2387,16 +2339,6 @@
|
|
|
2387
2339
|
"model": {
|
|
2388
2340
|
"type": "string"
|
|
2389
2341
|
},
|
|
2390
|
-
"tier": {
|
|
2391
|
-
"type": "string",
|
|
2392
|
-
"enum": [
|
|
2393
|
-
"free",
|
|
2394
|
-
"fast",
|
|
2395
|
-
"standard",
|
|
2396
|
-
"premium",
|
|
2397
|
-
"frontier"
|
|
2398
|
-
]
|
|
2399
|
-
},
|
|
2400
2342
|
"variant": {
|
|
2401
2343
|
"type": "string"
|
|
2402
2344
|
},
|
|
@@ -2604,16 +2546,6 @@
|
|
|
2604
2546
|
"model": {
|
|
2605
2547
|
"type": "string"
|
|
2606
2548
|
},
|
|
2607
|
-
"tier": {
|
|
2608
|
-
"type": "string",
|
|
2609
|
-
"enum": [
|
|
2610
|
-
"free",
|
|
2611
|
-
"fast",
|
|
2612
|
-
"standard",
|
|
2613
|
-
"premium",
|
|
2614
|
-
"frontier"
|
|
2615
|
-
]
|
|
2616
|
-
},
|
|
2617
2549
|
"variant": {
|
|
2618
2550
|
"type": "string"
|
|
2619
2551
|
},
|
|
@@ -2821,16 +2753,6 @@
|
|
|
2821
2753
|
"model": {
|
|
2822
2754
|
"type": "string"
|
|
2823
2755
|
},
|
|
2824
|
-
"tier": {
|
|
2825
|
-
"type": "string",
|
|
2826
|
-
"enum": [
|
|
2827
|
-
"free",
|
|
2828
|
-
"fast",
|
|
2829
|
-
"standard",
|
|
2830
|
-
"premium",
|
|
2831
|
-
"frontier"
|
|
2832
|
-
]
|
|
2833
|
-
},
|
|
2834
2756
|
"variant": {
|
|
2835
2757
|
"type": "string"
|
|
2836
2758
|
},
|
|
@@ -3038,16 +2960,6 @@
|
|
|
3038
2960
|
"model": {
|
|
3039
2961
|
"type": "string"
|
|
3040
2962
|
},
|
|
3041
|
-
"tier": {
|
|
3042
|
-
"type": "string",
|
|
3043
|
-
"enum": [
|
|
3044
|
-
"free",
|
|
3045
|
-
"fast",
|
|
3046
|
-
"standard",
|
|
3047
|
-
"premium",
|
|
3048
|
-
"frontier"
|
|
3049
|
-
]
|
|
3050
|
-
},
|
|
3051
2963
|
"variant": {
|
|
3052
2964
|
"type": "string"
|
|
3053
2965
|
},
|
|
@@ -3255,16 +3167,6 @@
|
|
|
3255
3167
|
"model": {
|
|
3256
3168
|
"type": "string"
|
|
3257
3169
|
},
|
|
3258
|
-
"tier": {
|
|
3259
|
-
"type": "string",
|
|
3260
|
-
"enum": [
|
|
3261
|
-
"free",
|
|
3262
|
-
"fast",
|
|
3263
|
-
"standard",
|
|
3264
|
-
"premium",
|
|
3265
|
-
"frontier"
|
|
3266
|
-
]
|
|
3267
|
-
},
|
|
3268
3170
|
"variant": {
|
|
3269
3171
|
"type": "string"
|
|
3270
3172
|
},
|
|
@@ -3472,16 +3374,6 @@
|
|
|
3472
3374
|
"model": {
|
|
3473
3375
|
"type": "string"
|
|
3474
3376
|
},
|
|
3475
|
-
"tier": {
|
|
3476
|
-
"type": "string",
|
|
3477
|
-
"enum": [
|
|
3478
|
-
"free",
|
|
3479
|
-
"fast",
|
|
3480
|
-
"standard",
|
|
3481
|
-
"premium",
|
|
3482
|
-
"frontier"
|
|
3483
|
-
]
|
|
3484
|
-
},
|
|
3485
3377
|
"variant": {
|
|
3486
3378
|
"type": "string"
|
|
3487
3379
|
},
|
|
@@ -3689,16 +3581,6 @@
|
|
|
3689
3581
|
"model": {
|
|
3690
3582
|
"type": "string"
|
|
3691
3583
|
},
|
|
3692
|
-
"tier": {
|
|
3693
|
-
"type": "string",
|
|
3694
|
-
"enum": [
|
|
3695
|
-
"free",
|
|
3696
|
-
"fast",
|
|
3697
|
-
"standard",
|
|
3698
|
-
"premium",
|
|
3699
|
-
"frontier"
|
|
3700
|
-
]
|
|
3701
|
-
},
|
|
3702
3584
|
"variant": {
|
|
3703
3585
|
"type": "string"
|
|
3704
3586
|
},
|
|
@@ -3917,16 +3799,6 @@
|
|
|
3917
3799
|
"model": {
|
|
3918
3800
|
"type": "string"
|
|
3919
3801
|
},
|
|
3920
|
-
"tier": {
|
|
3921
|
-
"type": "string",
|
|
3922
|
-
"enum": [
|
|
3923
|
-
"free",
|
|
3924
|
-
"fast",
|
|
3925
|
-
"standard",
|
|
3926
|
-
"premium",
|
|
3927
|
-
"frontier"
|
|
3928
|
-
]
|
|
3929
|
-
},
|
|
3930
3802
|
"variant": {
|
|
3931
3803
|
"type": "string"
|
|
3932
3804
|
},
|
|
@@ -4832,6 +4704,59 @@
|
|
|
4832
4704
|
],
|
|
4833
4705
|
"additionalProperties": false
|
|
4834
4706
|
},
|
|
4707
|
+
"tasks": {
|
|
4708
|
+
"type": "object",
|
|
4709
|
+
"properties": {
|
|
4710
|
+
"enabled": {
|
|
4711
|
+
"default": true,
|
|
4712
|
+
"type": "boolean"
|
|
4713
|
+
},
|
|
4714
|
+
"scope": {
|
|
4715
|
+
"description": "Task storage scope: project → .matrixx/tasks per project (default), global → <opencode-config>/tasks/{listId}",
|
|
4716
|
+
"default": "project",
|
|
4717
|
+
"type": "string",
|
|
4718
|
+
"enum": [
|
|
4719
|
+
"global",
|
|
4720
|
+
"project"
|
|
4721
|
+
]
|
|
4722
|
+
},
|
|
4723
|
+
"storage_path": {
|
|
4724
|
+
"type": "string"
|
|
4725
|
+
},
|
|
4726
|
+
"task_list_id": {
|
|
4727
|
+
"type": "string"
|
|
4728
|
+
},
|
|
4729
|
+
"stale_after_hours": {
|
|
4730
|
+
"description": "Pending tasks with no file activity for this many hours are considered stale (default: 24). Stale tasks are excluded from task-continuation directives.",
|
|
4731
|
+
"type": "integer",
|
|
4732
|
+
"minimum": 1,
|
|
4733
|
+
"maximum": 9007199254740991
|
|
4734
|
+
},
|
|
4735
|
+
"session_scoped": {
|
|
4736
|
+
"description": "When true, the task-continuation-enforcer only considers tasks created by the current session (or its subagent sessions). When false, all project tasks are considered regardless of session origin.",
|
|
4737
|
+
"default": true,
|
|
4738
|
+
"type": "boolean"
|
|
4739
|
+
},
|
|
4740
|
+
"pollTimeoutMs": {
|
|
4741
|
+
"type": "number",
|
|
4742
|
+
"minimum": 60000
|
|
4743
|
+
}
|
|
4744
|
+
},
|
|
4745
|
+
"required": [
|
|
4746
|
+
"enabled"
|
|
4747
|
+
],
|
|
4748
|
+
"additionalProperties": false
|
|
4749
|
+
},
|
|
4750
|
+
"task": {
|
|
4751
|
+
"type": "object",
|
|
4752
|
+
"properties": {
|
|
4753
|
+
"pollTimeoutMs": {
|
|
4754
|
+
"type": "number",
|
|
4755
|
+
"minimum": 60000
|
|
4756
|
+
}
|
|
4757
|
+
},
|
|
4758
|
+
"additionalProperties": false
|
|
4759
|
+
},
|
|
4835
4760
|
"tdd_enforcer": {
|
|
4836
4761
|
"type": "object",
|
|
4837
4762
|
"properties": {
|
|
@@ -5561,61 +5486,6 @@
|
|
|
5561
5486
|
"type": "string"
|
|
5562
5487
|
}
|
|
5563
5488
|
},
|
|
5564
|
-
"tiers": {
|
|
5565
|
-
"type": "object",
|
|
5566
|
-
"propertyNames": {
|
|
5567
|
-
"type": "string"
|
|
5568
|
-
},
|
|
5569
|
-
"additionalProperties": {
|
|
5570
|
-
"type": "object",
|
|
5571
|
-
"properties": {
|
|
5572
|
-
"providerPriority": {
|
|
5573
|
-
"type": "array",
|
|
5574
|
-
"items": {
|
|
5575
|
-
"type": "string"
|
|
5576
|
-
}
|
|
5577
|
-
},
|
|
5578
|
-
"modelPattern": {
|
|
5579
|
-
"type": "string"
|
|
5580
|
-
},
|
|
5581
|
-
"fallbackTier": {
|
|
5582
|
-
"type": "string"
|
|
5583
|
-
},
|
|
5584
|
-
"fallback": {
|
|
5585
|
-
"type": "array",
|
|
5586
|
-
"items": {
|
|
5587
|
-
"type": "object",
|
|
5588
|
-
"properties": {
|
|
5589
|
-
"providers": {
|
|
5590
|
-
"type": "array",
|
|
5591
|
-
"items": {
|
|
5592
|
-
"type": "string",
|
|
5593
|
-
"minLength": 1
|
|
5594
|
-
}
|
|
5595
|
-
},
|
|
5596
|
-
"model": {
|
|
5597
|
-
"type": "string",
|
|
5598
|
-
"minLength": 1
|
|
5599
|
-
},
|
|
5600
|
-
"variant": {
|
|
5601
|
-
"type": "string"
|
|
5602
|
-
}
|
|
5603
|
-
},
|
|
5604
|
-
"required": [
|
|
5605
|
-
"providers",
|
|
5606
|
-
"model"
|
|
5607
|
-
],
|
|
5608
|
-
"additionalProperties": false
|
|
5609
|
-
}
|
|
5610
|
-
}
|
|
5611
|
-
},
|
|
5612
|
-
"required": [
|
|
5613
|
-
"providerPriority",
|
|
5614
|
-
"modelPattern"
|
|
5615
|
-
],
|
|
5616
|
-
"additionalProperties": false
|
|
5617
|
-
}
|
|
5618
|
-
},
|
|
5619
5489
|
"modelRequirements": {
|
|
5620
5490
|
"type": "object",
|
|
5621
5491
|
"properties": {
|
package/dist/mcp/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const McpNameSchema: z.ZodEnum<{
|
|
3
3
|
websearch: "websearch";
|
|
4
4
|
context7: "context7";
|
|
5
|
-
|
|
5
|
+
white_rabbit: "white_rabbit";
|
|
6
6
|
document_reader: "document_reader";
|
|
7
7
|
}>;
|
|
8
8
|
export type McpName = z.infer<typeof McpNameSchema>;
|
|
@@ -13,6 +13,7 @@ export declare function createCoreHooks(args: {
|
|
|
13
13
|
thinkingBlockValidator: ReturnType<typeof import("../../hooks").createThinkingBlockValidatorHook> | null;
|
|
14
14
|
toolPairValidator: ReturnType<typeof import("../../hooks").createToolPairValidatorHook> | null;
|
|
15
15
|
designIntentPreserver: ReturnType<typeof import("../../hooks").createDesignIntentPreserverHook> | null;
|
|
16
|
+
backgroundTaskBlocker: ReturnType<typeof import("../../hooks").createBackgroundTaskBlockerHook> | null;
|
|
16
17
|
commentChecker: ReturnType<typeof import("../../hooks").createCommentCheckerHooks> | null;
|
|
17
18
|
toolOutputTruncator: ReturnType<typeof import("../../hooks").createToolOutputTruncatorHook> | null;
|
|
18
19
|
directoryAgentsInjector: ReturnType<typeof import("../../hooks").createDirectoryAgentsInjectorHook> | null;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { HookName, MatrixxConfig } from "../../config";
|
|
2
|
-
import { createBashFileReadGuardHook, createCommentCheckerHooks, createContextModeEnforcerHook, createDirectoryAgentsInjectorHook, createEmptyTaskResponseDetectorHook, createEnvFileWriteGuardHook, createEvolutionWatcherHook, createHashlineEditDiffEnhancerHook, createHashlineReadEnhancerHook, createJsonErrorRecoveryHook, createQualityGateHook, createReadImageResizerHook, createRulesInjectorHook, createSecretLeakGuardHook, createTaskEditGuardHook, createTaskNotepadHook, createTasksTodowriteDisablerHook, createToolOutputTruncatorHook, createWebFetchRedirectGuardHook, createWriteExistingFileGuardHook } from "../../hooks";
|
|
2
|
+
import { createBackgroundTaskBlockerHook, createBashFileReadGuardHook, createCommentCheckerHooks, createContextModeEnforcerHook, createDirectoryAgentsInjectorHook, createEmptyTaskResponseDetectorHook, createEnvFileWriteGuardHook, createEvolutionWatcherHook, createHashlineEditDiffEnhancerHook, createHashlineReadEnhancerHook, createJsonErrorRecoveryHook, createQualityGateHook, createReadImageResizerHook, createRulesInjectorHook, createSecretLeakGuardHook, createTaskEditGuardHook, createTaskNotepadHook, createTasksTodowriteDisablerHook, createToolOutputTruncatorHook, createWebFetchRedirectGuardHook, createWriteExistingFileGuardHook } from "../../hooks";
|
|
3
3
|
import type { PluginContext } from "../types";
|
|
4
4
|
export type ToolGuardHooks = {
|
|
5
|
+
backgroundTaskBlocker: ReturnType<typeof createBackgroundTaskBlockerHook> | null;
|
|
5
6
|
commentChecker: ReturnType<typeof createCommentCheckerHooks> | null;
|
|
6
7
|
toolOutputTruncator: ReturnType<typeof createToolOutputTruncatorHook> | null;
|
|
7
8
|
directoryAgentsInjector: ReturnType<typeof createDirectoryAgentsInjectorHook> | null;
|
|
@@ -2,6 +2,9 @@ export type ConfigLoadError = {
|
|
|
2
2
|
path: string;
|
|
3
3
|
error: string;
|
|
4
4
|
};
|
|
5
|
+
export declare class ConfigError extends Error {
|
|
6
|
+
constructor(message: string);
|
|
7
|
+
}
|
|
5
8
|
export declare function getConfigLoadErrors(): ConfigLoadError[];
|
|
6
9
|
export declare function clearConfigLoadErrors(): void;
|
|
7
10
|
export declare function addConfigLoadError(error: ConfigLoadError): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ContextModeToolGuidance {
|
|
2
|
+
searchGuidance: string;
|
|
3
|
+
readGuidance: string;
|
|
4
|
+
analysisGuidance: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Returns context-mode-aware tool guidance for subagent prompts.
|
|
8
|
+
* When `enforce` is true, raw grep/glob/read/bash-cat are blocked by the
|
|
9
|
+
* context-mode-enforcer hook, so guidance routes to ctx_* tools instead.
|
|
10
|
+
* When `enforce` is false, legacy tool guidance is preserved.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getContextModeToolGuidance(enforce: boolean): ContextModeToolGuidance;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./binary-downloader";
|
|
|
4
4
|
export * from "./command-executor";
|
|
5
5
|
export * from "./config-errors";
|
|
6
6
|
export * from "./connected-providers-cache";
|
|
7
|
+
export * from "./context-mode-prompt";
|
|
7
8
|
export * from "./data-path";
|
|
8
9
|
export * from "./deep-merge";
|
|
9
10
|
export * from "./delay";
|
|
@@ -2,20 +2,5 @@ import type { CategoriesConfig, CategoryConfig } from "../config/schema";
|
|
|
2
2
|
/**
|
|
3
3
|
* Merge default and user categories, filtering out disabled ones.
|
|
4
4
|
* Single source of truth for category merging across the codebase.
|
|
5
|
-
*
|
|
6
|
-
* The built-in `DEFAULT_CATEGORIES` registry is now tier-based. Before
|
|
7
|
-
* returning, the tier fields are resolved against the live provider cache
|
|
8
|
-
* (or the static fallback) so callers always see concrete `model:` strings.
|
|
9
5
|
*/
|
|
10
|
-
export declare function mergeCategories(userCategories?: CategoriesConfig,
|
|
11
|
-
tiers?: Record<string, {
|
|
12
|
-
providerPriority: string[];
|
|
13
|
-
modelPattern: string;
|
|
14
|
-
fallbackTier?: string;
|
|
15
|
-
fallback?: {
|
|
16
|
-
providers: string[];
|
|
17
|
-
model: string;
|
|
18
|
-
variant?: string;
|
|
19
|
-
}[];
|
|
20
|
-
}>;
|
|
21
|
-
} | null): Record<string, CategoryConfig>;
|
|
6
|
+
export declare function mergeCategories(userCategories?: CategoriesConfig): Record<string, CategoryConfig>;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
import type { MatrixxConfig } from "../config/schema";
|
|
2
|
+
import type { TasksConfig } from "../config/schema/tasks";
|
|
2
3
|
export declare const TASK_SYSTEM_DEFAULT: true;
|
|
4
|
+
export type ResolvedTasksConfig = Required<Pick<TasksConfig, "enabled" | "scope" | "session_scoped">> & Pick<TasksConfig, "storage_path" | "task_list_id" | "stale_after_hours" | "pollTimeoutMs">;
|
|
5
|
+
/**
|
|
6
|
+
* Merge the canonical `tasks` section with legacy locations.
|
|
7
|
+
* Explicit `tasks.*` always wins; legacy keys fill the gaps:
|
|
8
|
+
* `experimental.task_system` / `new_task_system_enabled` → enabled,
|
|
9
|
+
* `morpheus.tasks.*` → same-named key, `task.pollTimeoutMs` → pollTimeoutMs.
|
|
10
|
+
* Pure derivation, no mutation — safe to call on every read.
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolveTasksConfig(config: Partial<MatrixxConfig> | undefined | null): ResolvedTasksConfig;
|
|
3
13
|
export declare function isTaskSystemEnabled(config: Partial<MatrixxConfig> | undefined | null): boolean;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export declare const BACKGROUND_TASK_DESCRIPTION = "Run agent task in background. Returns task_id immediately; notifies on completion.\n\nUse `background_output` to get results. Prompts MUST be in English.";
|
|
2
1
|
export declare const BACKGROUND_OUTPUT_DESCRIPTION = "Get output from background task. Use full_session=true to fetch session messages with filters. System notifies on completion, so block=true rarely needed.";
|
|
3
2
|
export declare const BACKGROUND_CANCEL_DESCRIPTION = "Cancel running background task(s). Use all=true to cancel ALL before final answer.";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export type { BackgroundCancelClient, BackgroundOutputClient, BackgroundOutputManager, BackgroundOutputMessage, BackgroundOutputMessagesResult, } from "./clients";
|
|
2
2
|
export { createBackgroundCancel } from "./create-background-cancel";
|
|
3
3
|
export { createBackgroundOutput } from "./create-background-output";
|
|
4
|
-
export { createBackgroundTask } from "./create-background-task";
|