ALEX / packages /plugin /src /v2 /effect /command.ts
yoursravan's picture
feat: complete ALEX architecture, swarm logic, and Ravan's creator metadata
a50d502
Raw History Blame Contribute Delete
392 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
}>