model-compare-opencode-plugin 0.4.0 → 0.5.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 (2) hide show
  1. package/package.json +7 -6
  2. package/src/tui.tsx +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "model-compare-opencode-plugin",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "OpenCode plugin that switches OpenRouter model aliases to the best value-for-money pick from canonical/model-compare's ranking (balanced, price, quality).",
5
5
  "keywords": [
6
6
  "opencode",
@@ -44,16 +44,17 @@
44
44
  "prepublishOnly": "npm run build && npm run typecheck && npm test && node scripts/pack-smoke.mjs"
45
45
  },
46
46
  "dependencies": {
47
- "@opencode/plugin": "2.0.16"
47
+ "@opencode/plugin": "2.1.4"
48
48
  },
49
49
  "peerDependencies": {
50
- "@opentui/core": "^0.5.8",
51
- "@opentui/solid": "^0.5.8",
50
+ "@opentui/core": "^0.6.8",
51
+ "@opentui/solid": "^0.6.8",
52
52
  "solid-js": "^1.9.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@opentui/core": "0.5.17",
56
- "@opentui/solid": "0.5.17",
55
+ "@opencode/theme": "2.1.4",
56
+ "@opentui/core": "0.6.8",
57
+ "@opentui/solid": "0.6.8",
57
58
  "@types/node": "^22.18.13",
58
59
  "solid-js": "1.9.12",
59
60
  "typescript": "^7.0.2",
package/src/tui.tsx CHANGED
@@ -39,7 +39,7 @@
39
39
 
40
40
  import { Plugin } from "@opencode/plugin/tui"
41
41
  import type { KeymapCommand } from "@opencode/plugin/tui/context"
42
- import { TextAttributes, RGBA } from "@opentui/core"
42
+ import { TextAttributes, RGBA, type ColorInput } from "@opentui/core"
43
43
  // The OpenTUI JSX element types (<text fg>, <box>): a type-only import loads
44
44
  // the package's solid-js JSX augmentation without a runtime import — the TUI
45
45
  // host already provides the runtime side.
@@ -101,7 +101,7 @@ let armedClose: (() => void) | null = null
101
101
  // when a dialog is armed, cleared by its close() alongside armedClose.
102
102
  let armedReveal: ((center: boolean) => void) | null = null
103
103
 
104
- function StatusLine(props: { line: () => string; fg?: string }) {
104
+ function StatusLine(props: { line: () => string; fg?: ColorInput }) {
105
105
  return <text fg={props.fg}>{props.line()}</text>
106
106
  }
107
107