fix(tui): preserve legacy host compatibility
This commit is contained in:
parent
3568dd1b99
commit
b2bdab24e6
3 changed files with 59 additions and 15 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue