@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
13 lines • 1.05 kB
TypeScript
/**
* Recover on-disk case without replacing any lexical ancestor with its symlink target.
*
* A directory is listed only when that can change the answer: the component exists and a case-swapped spelling is
* the same entry. Listing opens the directory, and that open(2) blocks on a wedged mount or the macOS `/home` autofs
* trigger while lstat below it answers at once; running on the host loop, it froze the engine (senpi#7150, #1416).
*/
export declare function canonicalPathCase(value: string, listDirectory?: (directory: string) => readonly string[]): string;
/** Case aliases must name the same component, not merely symlinks to the same destination. */
export declare function sameLexicalPath(left: string, right: string): boolean;
/** Keep filesystem observations within one evaluation, never across permission decisions. */
export declare function createExternalPathMatcher(preserveAncestry?: boolean, canonicalCase?: typeof canonicalPathCase): (value: string, pattern: string) => boolean;
//# sourceMappingURL=external-pattern.d.ts.map