opencode-model-router 2.4.0 → 2.6.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/tiers.json CHANGED
@@ -47,10 +47,10 @@
47
47
  "fast": {
48
48
  "readOnly": true,
49
49
  "model": "anthropic/claude-haiku-5-5",
50
- "variant": "low",
51
- "effort": "low",
50
+ "variant": "medium",
51
+ "effort": "medium",
52
52
  "costRatio": 1,
53
- "description": "Haiku 5.5 low for exploration, search, and simple reads",
53
+ "description": "Haiku 5.5 medium for exploration, search, and simple reads",
54
54
  "steps": 30,
55
55
  "whenToUse": [
56
56
  "Codebase exploration and search",
@@ -61,10 +61,10 @@
61
61
  },
62
62
  "medium": {
63
63
  "model": "anthropic/claude-sonnet-5-5",
64
- "variant": "medium",
65
- "effort": "medium",
64
+ "variant": "high",
65
+ "effort": "high",
66
66
  "costRatio": 5,
67
- "description": "Sonnet 5.5 medium for implementation, refactoring, and tests",
67
+ "description": "Sonnet 5.5 high for implementation, refactoring, and tests",
68
68
  "steps": 50,
69
69
  "whenToUse": [
70
70
  "Feature implementation",
@@ -254,53 +254,11 @@
254
254
  "hybrid": {
255
255
  "fast": {
256
256
  "readOnly": true,
257
- "model": "openai/gpt-6-luna-fast",
258
- "variant": "medium",
259
- "costRatio": 1,
260
- "description": "GPT 6 Luna (medium) for exploration, search, and simple reads",
261
- "steps": 30,
262
- "whenToUse": [
263
- "Codebase exploration and search",
264
- "Simple file reads and listing",
265
- "Grep/glob operations",
266
- "Quick lookups and research"
267
- ]
268
- },
269
- "medium": {
270
- "model": "openai/gpt-6-astra-fast",
271
- "variant": "high",
272
- "costRatio": 5,
273
- "description": "GPT-6 Astra Fast (high) for implementation and standard coding",
274
- "steps": 50,
275
- "whenToUse": [
276
- "Feature implementation",
277
- "Refactoring",
278
- "Writing tests",
279
- "Bug fixes"
280
- ]
281
- },
282
- "heavy": {
283
- "model": "anthropic/claude-opus-5-5",
284
- "variant": "xhigh",
285
- "effort": "xhigh",
286
- "costRatio": 20,
287
- "description": "Claude Opus 5.5 xhigh for architecture, complex debugging, and security",
288
- "steps": 120,
289
- "whenToUse": [
290
- "Architecture decisions",
291
- "Complex debugging (after 2+ failures)",
292
- "Security review",
293
- "Performance optimization"
294
- ]
295
- }
296
- },
297
- "hybrid-2": {
298
- "fast": {
299
- "readOnly": true,
300
- "model": "openai/gpt-6-luna-fast",
257
+ "model": "anthropic/claude-haiku-5-5",
301
258
  "variant": "medium",
259
+ "effort": "medium",
302
260
  "costRatio": 1,
303
- "description": "GPT 6 Luna (medium) for exploration, search, and simple reads",
261
+ "description": "Haiku 5.5 medium for exploration, search, and simple reads",
304
262
  "steps": 30,
305
263
  "whenToUse": [
306
264
  "Codebase exploration and search",
@@ -310,11 +268,10 @@
310
268
  ]
311
269
  },
312
270
  "medium": {
313
- "model": "anthropic/claude-sonnet-5-5",
271
+ "model": "openai/gpt-6.1-sol-fast",
314
272
  "variant": "xhigh",
315
- "effort": "xhigh",
316
273
  "costRatio": 5,
317
- "description": "Claude Sonnet (xhigh) for implementation and standard coding",
274
+ "description": "GPT-6.1 Sol Fast (xhigh) for implementation and standard coding",
318
275
  "steps": 50,
319
276
  "whenToUse": [
320
277
  "Feature implementation",
@@ -337,48 +294,6 @@
337
294
  "Performance optimization"
338
295
  ]
339
296
  }
340
- },
341
- "fable-effort": {
342
- "fast": {
343
- "readOnly": true,
344
- "model": "anthropic/claude-fable-5-1",
345
- "effort": "low",
346
- "costRatio": 1,
347
- "description": "Fable 5 at low effort for exploration, search, and simple reads (token-spend ratios are estimates; same model across tiers preserves prompt cache)",
348
- "steps": 30,
349
- "whenToUse": [
350
- "Codebase exploration and search",
351
- "Simple file reads and listing",
352
- "Grep/glob operations",
353
- "Quick lookups and research"
354
- ]
355
- },
356
- "medium": {
357
- "model": "anthropic/claude-fable-5-1",
358
- "effort": "high",
359
- "costRatio": 3,
360
- "description": "Fable 5 at high effort for implementation and standard coding (costRatio is an estimated token-spend multiplier, not a price difference)",
361
- "steps": 50,
362
- "whenToUse": [
363
- "Feature implementation",
364
- "Refactoring",
365
- "Writing tests",
366
- "Bug fixes"
367
- ]
368
- },
369
- "heavy": {
370
- "model": "anthropic/claude-fable-5-1",
371
- "effort": "xhigh",
372
- "costRatio": 6,
373
- "description": "Fable 5 at xhigh effort for architecture, complex debugging, and security (costRatio is an estimated token-spend multiplier, not a price difference)",
374
- "steps": 120,
375
- "whenToUse": [
376
- "Architecture decisions",
377
- "Complex debugging (after 2+ failures)",
378
- "Security review",
379
- "Performance optimization"
380
- ]
381
- }
382
297
  }
383
298
  },
384
299
  "taskPatterns": {
package/tui.ts ADDED
@@ -0,0 +1,4 @@
1
+ // OpenCode v2 resolves the /tui entrypoint (`<package>/tui`) by extension probing; v1 never loads this file.
2
+ // The explicit `.ts` is required: from `node_modules`, an extensionless specifier makes the host resolve the plugin's
3
+ // bare imports (`solid-js`) outside its runtime and the load fails (A9 run, OpenCode 2.0.24–2.0.26).
4
+ export { default } from "./src/tui/plugin.ts";