Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
123456789101112131415161718import type { AgentApi } from "@opencode/client/effect/api"import type { Agent } from "@opencode/schema/agent"import type { Effect, Types } from "effect"import type { Transform } from "./registration.js"
export interface AgentEditor { list(): readonly Types.DeepMutable<Agent.Info>[] get(id: string): Types.DeepMutable<Agent.Info> | undefined default(id: string | undefined): void update(id: string, update: (agent: Types.DeepMutable<Agent.Info>) => void): void remove(id: string): void}
export interface AgentDomain extends AgentApi<unknown> { readonly transform: Transform<AgentEditor> readonly reload: () => Effect.Effect<void>}