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