UNPKG

socraticode

Version:

SocratiCode — MCP server for local codebase indexing, semantic search, and code dependency graphs. All private, all local via Docker.

38 lines • 2.2 kB
/** Callback for reporting infrastructure setup progress to the user */ export type InfraProgressCallback = (message: string) => void; /** Check if Docker CLI is reachable */ export declare function isDockerAvailable(): Promise<boolean>; /** Check if the Qdrant Docker image is pulled */ export declare function isQdrantImagePresent(): Promise<boolean>; /** Pull the Qdrant Docker image (may take several minutes on first launch) */ export declare function pullQdrantImage(onProgress?: InfraProgressCallback): Promise<void>; /** Check if the Qdrant container is running */ export declare function isQdrantRunning(): Promise<boolean>; /** Start the Qdrant container, creating it if necessary */ export declare function startQdrant(onProgress?: InfraProgressCallback): Promise<void>; /** Reset the cached readiness state (e.g. after infra error or explicit restart) */ export declare function resetQdrantReadinessCache(): void; /** Ensure Qdrant is ready. * - managed mode: ensure Docker is available, image is pulled, container is running. * - external mode: validate config and health-check the remote endpoint. */ export declare function ensureQdrantReady(onProgress?: InfraProgressCallback): Promise<{ started: boolean; pulled: boolean; }>; /** Check if the Ollama Docker image is pulled */ export declare function isOllamaImagePresent(): Promise<boolean>; /** Pull the Ollama Docker image (may take several minutes on first launch) */ export declare function pullOllamaImage(onProgress?: InfraProgressCallback): Promise<void>; /** Check if the Ollama container is running */ export declare function isOllamaRunning(): Promise<boolean>; /** Start the Ollama container, creating it if necessary */ export declare function startOllama(onProgress?: InfraProgressCallback): Promise<void>; /** Reset the cached readiness state for Ollama container */ export declare function resetOllamaContainerReadinessCache(): void; /** Ensure Docker is available, Ollama image is pulled, and Ollama container is running */ export declare function ensureOllamaContainerReady(onProgress?: InfraProgressCallback): Promise<{ started: boolean; pulled: boolean; }>; //# sourceMappingURL=docker.d.ts.map