mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-29 07:23:31 +00:00
fix(plugin): retain legacy kv api shape
This commit is contained in:
parent
775fce0177
commit
9db5073eab
3 changed files with 20 additions and 0 deletions
|
|
@ -358,6 +358,13 @@ export type TuiTheme = {
|
|||
readonly ready: boolean
|
||||
}
|
||||
|
||||
/** @deprecated Persistent TUI KV storage is not supported in V2. */
|
||||
export type TuiKV = {
|
||||
get: <Value = unknown>(key: string, fallback?: Value) => Value
|
||||
set: (key: string, value: unknown) => void
|
||||
readonly ready: boolean
|
||||
}
|
||||
|
||||
export type TuiState = {
|
||||
readonly ready: boolean
|
||||
readonly config: SdkConfig
|
||||
|
|
@ -623,6 +630,8 @@ export type TuiPluginApi = {
|
|||
dialog: TuiDialogStack
|
||||
}
|
||||
readonly tuiConfig: Frozen<TuiConfigView>
|
||||
/** @deprecated Persistent TUI KV storage is not supported in V2. */
|
||||
kv: TuiKV
|
||||
state: TuiState
|
||||
theme: TuiTheme
|
||||
client: OpencodeClient
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue