2026-02-15 15:53:29 +09:00
|
|
|
import type { PluginInput } from "@opencode-ai/plugin"
|
|
|
|
|
|
|
|
|
|
export type Client = PluginInput["client"] & {
|
2026-02-08 16:22:01 +09:00
|
|
|
session: {
|
|
|
|
|
prompt_async: (opts: {
|
|
|
|
|
path: { id: string }
|
|
|
|
|
body: { parts: Array<{ type: string; text: string }> }
|
|
|
|
|
query: { directory: string }
|
|
|
|
|
}) => Promise<unknown>
|
|
|
|
|
}
|
|
|
|
|
tui: {
|
|
|
|
|
showToast: (opts: {
|
|
|
|
|
body: {
|
|
|
|
|
title: string
|
|
|
|
|
message: string
|
|
|
|
|
variant: string
|
|
|
|
|
duration: number
|
|
|
|
|
}
|
|
|
|
|
}) => Promise<unknown>
|
|
|
|
|
}
|
|
|
|
|
}
|