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

16 lines 845 B
export type InstallationMethod = 'npm' | 'homebrew' | 'nix' | 'unknown'; /** * Detects installation method from a given module path. * Exported for testing purposes. * @param modulePath The path to check * @returns The detected installation method or null if not detected from path */ export declare function detectFromPath(modulePath: string): InstallationMethod | null; /** * Detects how Nanocoder was installed by using multiple detection strategies. * Uses a combination of path inspection, environment variables, and file system markers. * An environment variable `NANOCODER_INSTALL_METHOD` can be used to override detection for testing. * @returns {InstallationMethod} The detected installation method. */ export declare function detectInstallationMethod(): InstallationMethod; //# sourceMappingURL=installation-detector.d.ts.map