22 lines
No EOL
877 B
TypeScript
22 lines
No EOL
877 B
TypeScript
/**
|
|
* Resolves the Claude CLI executable name or path.
|
|
*
|
|
* Resolution order:
|
|
* 1. `CLAUDE_PATH` environment variable (absolute path or command name)
|
|
* 2. PATH lookup via `where` (Windows) or `which` (Unix)
|
|
*
|
|
* The result is cached in-memory after the first successful call so
|
|
* subsequent invocations are synchronous-cheap.
|
|
*
|
|
* On Windows, `claude` is installed as `claude.cmd`. `cross-spawn` handles
|
|
* `.cmd` wrappers transparently, so returning the bare name `"claude"` is
|
|
* correct — cross-spawn will find and invoke `claude.cmd` automatically.
|
|
*
|
|
* @throws {Error} with a clear installation hint if claude cannot be found.
|
|
*/
|
|
export declare function resolveClaude(): Promise<string>;
|
|
/**
|
|
* Resets the in-memory cache. Intended for use in tests only.
|
|
*/
|
|
export declare function _resetResolveClaudeCache(): void;
|
|
//# sourceMappingURL=resolve-claude.d.ts.map
|