/** * Model Discovery - Discovers available models from the OpenCode CLI at startup. * * Runs `opencode models --verbose` to get the full list of models with metadata, * parses the output, and stores them for use by the MCP server. * Falls back to a minimal default set if discovery fails. */ export interface DiscoveredModel { id: string; providerID: string; name: string; family: string; contextLimit: number; outputLimit: number; capabilities: { reasoning: boolean; toolcall: boolean; attachment: boolean; image: boolean; }; releaseDate: string; /** Full provider/id format, e.g. "opencode/big-pickle" */ fullId: string; } /** Per-agent-type model recommendation. */ export interface ModelRecommendation { modelId: string; reason: string; } /** * Run `opencode models --verbose` and parse the interleaved text+JSON output. * Output format is: * provider/model-id * { ...json... } * provider/model-id * { ...json... } */ export declare function discoverModels(): Promise; export declare function getDiscoveredModels(): DiscoveredModel[]; export declare function isDiscoveryComplete(): boolean; export declare function getDiscoveryError(): string | null; /** * Get all discovered model IDs (full format: "provider/model-id"). */ export declare function getModelIds(): string[]; /** * Get a compact summary of available models for template injection. */ export declare function getModelsSummary(): string; /** * Recommend the best model for a given agent type. * Default: github-copilot/claude-opus-4.6 for all agents. * If models are discovered, picks the best based on capabilities. */ export declare function recommendModel(agentType: string): ModelRecommendation; //# sourceMappingURL=model-discovery.d.ts.map