diff options
| author | Sebastian <[email protected]> | 2026-03-28 00:44:46 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-27 23:44:46 +0000 |
| commit | f3997d8082413c8b3a506d24fbfb3c58a0c3dedb (patch) | |
| tree | 615a6331ab6896abd62a05a9a2894e34203e098a /.opencode | |
| parent | 02b19bc3d733ee2e4220971fa421d4a6f05a9468 (diff) | |
| download | opencode-f3997d8082413c8b3a506d24fbfb3c58a0c3dedb.tar.gz opencode-f3997d8082413c8b3a506d24fbfb3c58a0c3dedb.zip | |
Single target plugin entrypoints (#19467)
Diffstat (limited to '.opencode')
| -rw-r--r-- | .opencode/plugins/tui-smoke.tsx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/.opencode/plugins/tui-smoke.tsx b/.opencode/plugins/tui-smoke.tsx index 3e90bafb6..deb3c3e3e 100644 --- a/.opencode/plugins/tui-smoke.tsx +++ b/.opencode/plugins/tui-smoke.tsx @@ -1,7 +1,14 @@ /** @jsxImportSource @opentui/solid */ import { useKeyboard, useTerminalDimensions } from "@opentui/solid" import { RGBA, VignetteEffect } from "@opentui/core" -import type { TuiKeybindSet, TuiPluginApi, TuiPluginMeta, TuiSlotPlugin } from "@opencode-ai/plugin/tui" +import type { + TuiKeybindSet, + TuiPlugin, + TuiPluginApi, + TuiPluginMeta, + TuiPluginModule, + TuiSlotPlugin, +} from "@opencode-ai/plugin/tui" const tabs = ["overview", "counter", "help"] const bind = { @@ -813,7 +820,7 @@ const reg = (api: TuiPluginApi, input: Cfg, keys: Keys) => { ]) } -const tui = async (api: TuiPluginApi, options: Record<string, unknown> | null, meta: TuiPluginMeta) => { +const tui: TuiPlugin = async (api, options, meta) => { if (options?.enabled === false) return await api.theme.install("./smoke-theme.json") @@ -846,7 +853,9 @@ const tui = async (api: TuiPluginApi, options: Record<string, unknown> | null, m } } -export default { +const plugin: TuiPluginModule & { id: string } = { id: "tui-smoke", tui, } + +export default plugin |
