UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio

36 lines (35 loc) 1.15 kB
import { type SpawnSyncReturns, type SpawnSyncOptions } from "child_process"; import type { AllowedCommand } from "../../lib/types/index.js"; /** * Shared Ollama utilities for CLI commands */ export declare class OllamaUtils { /** * Secure wrapper around spawnSync to prevent command injection. */ static safeSpawn(command: AllowedCommand, args: string[], options?: SpawnSyncOptions): SpawnSyncReturns<string>; /** * Check if Ollama command line is available */ private static isOllamaCommandReady; /** * Validate HTTP API response from Ollama */ private static validateApiResponse; /** * Check if Ollama HTTP API is ready */ private static isOllamaApiReady; /** * Wait for Ollama service to become ready with exponential backoff */ static waitForOllamaReady(maxAttempts?: number, initialDelay?: number): Promise<boolean>; /** * Check if Ollama service is already running */ static isOllamaRunning(): boolean; /** * Unified Ollama start logic that works across platforms */ static startOllamaService(): Promise<void>; }