opencode-model-router 1.14.0 → 2.0.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 +173 -0
- package/README.md +80 -28
- package/package.json +8 -3
- package/server.ts +3 -0
- package/src/compat/child-session.ts +27 -0
- package/src/compat/v2-client.ts +183 -0
- package/src/compat/v2-hooks.ts +376 -0
- package/src/index.ts +427 -85
- package/src/router/config.ts +225 -15
- package/src/router/protocol.ts +12 -2
- package/src/v2.ts +24 -0
- package/src/verify/baseline.ts +143 -25
- package/src/verify/batch.ts +2226 -0
- package/src/verify/checker.ts +1 -1
- package/src/verify/deterministic.ts +1378 -20
- package/src/verify/directives.ts +207 -0
- package/src/verify/dispatch.ts +387 -90
- package/src/verify/dod.ts +8 -1
- package/src/verify/exec.ts +654 -35
- package/src/verify/gate.ts +16 -1
- package/src/verify/paths.ts +9 -1
- package/src/verify/pending.ts +1834 -0
- package/src/verify/reference.ts +2117 -0
- package/src/verify/risk.ts +271 -0
- package/src/verify/runner.ts +5315 -0
- package/src/verify/slot.ts +1603 -0
- package/src/verify/tree.ts +215 -11
- package/src/verify/types.ts +301 -4
- package/src/verify/wiring.ts +1959 -52
- package/tiers.json +21 -19
package/tiers.json
CHANGED
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"graderTemperature": 0,
|
|
18
18
|
"requireExplicitDoD": false,
|
|
19
19
|
"delegateTimeoutMs": 600000,
|
|
20
|
-
"graderTimeoutMs": 60000
|
|
21
|
-
"gateBudgetMs": 90000
|
|
20
|
+
"graderTimeoutMs": 60000
|
|
22
21
|
},
|
|
23
22
|
"escalate": {
|
|
24
23
|
"ladder": ["fast", "medium", "heavy"],
|
|
@@ -46,9 +45,11 @@
|
|
|
46
45
|
"presets": {
|
|
47
46
|
"anthropic": {
|
|
48
47
|
"fast": {
|
|
49
|
-
"model": "anthropic/claude-sonnet-5",
|
|
48
|
+
"model": "anthropic/claude-sonnet-5-5",
|
|
49
|
+
"variant": "low",
|
|
50
|
+
"effort": "low",
|
|
50
51
|
"costRatio": 1,
|
|
51
|
-
"description": "Sonnet 5 for exploration, search, and simple reads",
|
|
52
|
+
"description": "Sonnet 5.5 low for exploration, search, and simple reads",
|
|
52
53
|
"steps": 30,
|
|
53
54
|
"whenToUse": [
|
|
54
55
|
"Codebase exploration and search",
|
|
@@ -58,11 +59,11 @@
|
|
|
58
59
|
]
|
|
59
60
|
},
|
|
60
61
|
"medium": {
|
|
61
|
-
"model": "anthropic/claude-
|
|
62
|
-
"variant": "
|
|
63
|
-
"effort": "
|
|
62
|
+
"model": "anthropic/claude-sonnet-5-5",
|
|
63
|
+
"variant": "medium",
|
|
64
|
+
"effort": "medium",
|
|
64
65
|
"costRatio": 5,
|
|
65
|
-
"description": "
|
|
66
|
+
"description": "Sonnet 5.5 medium for implementation, refactoring, and tests",
|
|
66
67
|
"steps": 50,
|
|
67
68
|
"whenToUse": [
|
|
68
69
|
"Feature implementation",
|
|
@@ -100,10 +101,10 @@
|
|
|
100
101
|
]
|
|
101
102
|
},
|
|
102
103
|
"medium": {
|
|
103
|
-
"model": "openai/gpt-6-
|
|
104
|
-
"variant": "
|
|
104
|
+
"model": "openai/gpt-6.1-sol-fast",
|
|
105
|
+
"variant": "xhigh",
|
|
105
106
|
"costRatio": 5,
|
|
106
|
-
"description": "GPT-
|
|
107
|
+
"description": "GPT-6.1 Sol Fast (xhigh) for implementation and standard coding",
|
|
107
108
|
"steps": 50,
|
|
108
109
|
"whenToUse": [
|
|
109
110
|
"Feature implementation",
|
|
@@ -155,7 +156,7 @@
|
|
|
155
156
|
"heavy": {
|
|
156
157
|
"model": "github-copilot/claude-fable-5-1",
|
|
157
158
|
"costRatio": 20,
|
|
158
|
-
"description": "Claude Fable 5 via GitHub Copilot for architecture, complex debugging, and security",
|
|
159
|
+
"description": "Claude Fable 5.1 via GitHub Copilot for architecture, complex debugging, and security",
|
|
159
160
|
"steps": 120,
|
|
160
161
|
"whenToUse": [
|
|
161
162
|
"Architecture decisions",
|
|
@@ -248,9 +249,9 @@
|
|
|
248
249
|
"hybrid": {
|
|
249
250
|
"fast": {
|
|
250
251
|
"model": "openai/gpt-6-luna-fast",
|
|
251
|
-
"variant": "
|
|
252
|
+
"variant": "medium",
|
|
252
253
|
"costRatio": 1,
|
|
253
|
-
"description": "GPT 6 Luna (
|
|
254
|
+
"description": "GPT 6 Luna (medium) for exploration, search, and simple reads",
|
|
254
255
|
"steps": 30,
|
|
255
256
|
"whenToUse": [
|
|
256
257
|
"Codebase exploration and search",
|
|
@@ -261,9 +262,9 @@
|
|
|
261
262
|
},
|
|
262
263
|
"medium": {
|
|
263
264
|
"model": "openai/gpt-6-astra-fast",
|
|
264
|
-
"variant": "
|
|
265
|
+
"variant": "high",
|
|
265
266
|
"costRatio": 5,
|
|
266
|
-
"description": "GPT-6 Astra Fast (
|
|
267
|
+
"description": "GPT-6 Astra Fast (high) for implementation and standard coding",
|
|
267
268
|
"steps": 50,
|
|
268
269
|
"whenToUse": [
|
|
269
270
|
"Feature implementation",
|
|
@@ -273,10 +274,11 @@
|
|
|
273
274
|
]
|
|
274
275
|
},
|
|
275
276
|
"heavy": {
|
|
276
|
-
"model": "anthropic/claude-
|
|
277
|
-
"variant": "
|
|
277
|
+
"model": "anthropic/claude-opus-5-5",
|
|
278
|
+
"variant": "xhigh",
|
|
279
|
+
"effort": "xhigh",
|
|
278
280
|
"costRatio": 20,
|
|
279
|
-
"description": "Claude
|
|
281
|
+
"description": "Claude Opus 5.5 xhigh for architecture, complex debugging, and security",
|
|
280
282
|
"steps": 120,
|
|
281
283
|
"whenToUse": [
|
|
282
284
|
"Architecture decisions",
|