@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
12 lines • 846 B
TypeScript
/**
* The key a session file is reserved under: one key for every spelling of one file (macOS
* `/tmp` vs `/private/tmp`, a symlinked workspace root). A path whose directory is gone keeps
* its missing tail verbatim under the deepest ancestor that still exists, so another session's
* deleted directory can never fail a listing or an open (senpi#2206). A socket host names its public
* endpoint's directory the same way, so a first generation that starts before that directory exists
* and a successor that starts after it stamp one `host_socket`.
*/
export declare function canonicalSessionPath(path: string): string;
/** The directory a session writes its transcript into is gone: it can never persist again. */
export declare function sessionDirectoryRemoved(sessionFile: string): boolean;
//# sourceMappingURL=session-path-key.d.ts.map