fix(tui): preserve legacy host compatibility

This commit is contained in:
Dax Raad 2026-07-12 16:59:09 -04:00
commit b2bdab24e6
3 changed files with 59 additions and 15 deletions

View file

@ -4,7 +4,6 @@ import type {
TuiPluginInstallResult,
TuiPluginStatus,
} from "@opencode-ai/plugin/tui"
import type { TuiConfig } from "../config"
import { createContext, createSignal, useContext, type JSX, type ParentProps } from "solid-js"
import { createPluginRoutes } from "./api"
import { createSlots, type HostSlots } from "./slots"
@ -61,7 +60,7 @@ export type PluginRuntime = ReturnType<typeof createPluginRuntime>
export type TuiPluginHost = {
start(input: {
api: TuiPluginApi
config: TuiConfig.Resolved
config: any
runtime: PluginRuntime
dispose?: () => void
}): Promise<void>