/** * OpencodeAgentRegistrar — IAgentRegistrar adapter for the opencode platform. * * Writes agent definition files to `~/.claude/agents/` as markdown files * tagged with the rolebox marker comment. This is the same file-writing * behavior previously implemented directly in `syncAgentFiles()`. * * Does NOT import from `@opencode-ai/plugin` or `@opencode-ai/sdk`. * * @module */ import type { IAgentRegistrar } from "../../ports/agent-registrar.ts"; import type { AgentDefinition } from "../../types.ts"; /** * IAgentRegistrar implementation for the opencode platform. * * Writes agent definitions to `~/.claude/agents/{id}.md`. Uses the * ROLEBOX_AGENT_MARKER comment to identify files managed by rolebox, * allowing stale files to be cleaned up on subsequent syncs. */ export declare class OpencodeAgentRegistrar implements IAgentRegistrar { private readonly agentsDirPath; constructor(agentsDirOverride?: string); register(agentDefs: AgentDefinition[]): Promise; unregister(agentIds: string[]): Promise; sync(agentDefs: AgentDefinition[]): Promise<{ added: string[]; removed: string[]; unchanged: string[]; }>; list(): Promise; private ensureDirectory; private agentPath; } //# sourceMappingURL=agent-registrar.d.ts.map