import type { AgentOptions, AgentResult, AgentProgressEvent } from "../agent.js"; export type ProviderName = "anthropic" | "copilot"; export interface DocAgentProvider { readonly name: ProviderName; /** * Run a documentation agent. Yields AgentProgressEvent during execution * and returns AgentResult when done. */ runDocAgent( options: AgentOptions ): AsyncGenerator; /** Called once before any generation runs (e.g. Copilot starts its client). */ initialize?(): Promise; /** Called after all generation is complete (e.g. Copilot stops its client). */ shutdown?(): Promise; } export const DEFAULT_MODELS: Record = { anthropic: "claude-opus-4-6", copilot: "claude-opus-4-6", };