UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

19 lines • 1.1 kB
export type PathLookupDeps = { platform: string; env: (name: string) => string | undefined; /** True when `path` names an existing regular file in THIS process. */ isFile: (path: string) => boolean; /** Text of a win32 batch file on PATH; without it batch files are skipped, never returned. */ readText?: (path: string) => string | undefined; /** Called for each win32 batch file that was skipped because it wraps no native binary. */ onSkip?: (path: string) => void; }; /** * The first regular file `name` resolves to on PATH - the binary `where claude` (win32) or * `command -v claude` prints - found without a shell. Honours PATHEXT on win32 so the bare `claude` * finds `claude.exe`; a `.cmd`/`.bat` hit resolves to the native binary it wraps or is skipped. * Directories and dangling entries are skipped, so a hit is a file this process can stat. Returns * `undefined` when PATH is unset or has no match. */ export declare function findExecutableOnPath(name: string, deps: PathLookupDeps): string | undefined; //# sourceMappingURL=executable-path-lookup.d.ts.map