Chenloong999's picture
backup 2026-08-23T20:24:25.191693
e5de7b5 verified
Raw History Blame
408 Bytes
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;
}>;