UNPKG

@code-yeongyu/senpi

Version:

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

25 lines • 1.54 kB
export interface NameFolding { /** `Notes` and `notes` are one name. */ readonly letterCase: boolean; /** A composed and a decomposed spelling of one character are one name. */ readonly unicodeForm: boolean; } /** * Asks the file system holding `path` (or the nearest folder above it that exists) how it folds names: writes one * empty file whose name has an upper-case letter and a composed character, looks for it under the other letter case * and under the other Unicode form, and removes it. */ export declare function probeNameFolding(path: string): Promise<NameFolding>; /** * Why these paths cannot all be files on a file system that folds names so, or `undefined` when they can: two of them * are one name there, or one is a file where another needs a folder. Paths that are equal as written are not this * function's to refuse. */ export declare function oneNameUnder(paths: readonly string[], folding: NameFolding): string | undefined; /** * Refuses a bundle whose names cannot all be written on the file system of `folder`. Each list is one layout the * names are written in (the bundle's own paths; the names a staged move writes), and names are compared within a * list only. Lists with no such pair under any folding are not probed at all, so they cost nothing and touch no folder. */ export declare function refuseNamesThatFold(layouts: readonly (readonly string[])[], folder: string, probe?: (folder: string) => Promise<NameFolding>): Promise<void>; //# sourceMappingURL=name-folding.d.ts.map