@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
22 lines • 1.09 kB
TypeScript
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 installation method from environment variables.
* Exported for testing purposes.
* @returns The detected installation method or null if not detected from env
*/
export declare function detectFromEnv(): 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