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