disclaw/dist/runtime/resolve-claude.d.ts
Nick Tabeling ca461d0da6
Some checks failed
CI / build-and-test (ubuntu-latest) (pull_request) Has been cancelled
CI / build-and-test (windows-latest) (pull_request) Has been cancelled
CI / lint (pull_request) Has been cancelled
fix(env): remove CI=true from sanitizedEnv, breaks Claude Code OAuth login
2026-04-09 13:18:25 +02:00

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