File size: 392 Bytes
0dbc9de | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import type { CommandV2Info } from "@opencode-ai/sdk/v2/types"
import type { Hooks } from "./registration.js"
export interface CommandDraft {
list(): readonly CommandV2Info[]
get(name: string): CommandV2Info | undefined
update(name: string, update: (command: CommandV2Info) => void): void
remove(name: string): void
}
export type CommandHooks = Hooks<{
transform: CommandDraft
}>
|