UNPKG

@nanocollective/nanocoder

Version:

A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter

30 lines 901 B
import { ModelEntry } from '../types/index.js'; export declare class ModelDatabase { private static instance; private cachedModels; private fetchPromise; static getInstance(): ModelDatabase; /** * Get all models - returns cached data if available, empty array otherwise. * Use getAllModelsAsync() for fetching fresh data. */ getAllModels(): ModelEntry[]; /** * Get all models asynchronously - fetches from APIs. */ getAllModelsAsync(): Promise<ModelEntry[]>; /** * Force refresh models from APIs */ refreshModels(): Promise<ModelEntry[]>; /** * Internal async refresh that doesn't block */ private refreshModelsAsync; /** * Clear cache to force fresh fetch on next call */ clearCache(): void; } export declare const modelDatabase: ModelDatabase; //# sourceMappingURL=model-database.d.ts.map