UNPKG

@code-yeongyu/senpi

Version:

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

12 lines • 868 B
/** * The folder a session file's header names, read as the session manager finds that header: blank and unparseable * leading lines are skipped, and the first parsed entry decides (`session-manager.ts`, `readSessionHeader`). * `undefined` when there is no file yet (ENOENT, ENOTDIR) or the file names no folder; every other failure to read an * existing file throws, so a caller never mistakes an unreadable file for one that names nothing. * * The bounded scan is a discovery step, not the answer: a file whose header lies past the bound (a very long first * line) is loaded whole, as `SessionManager.open` loads it, so such a session still opens where its header says * instead of in the host's folder (senpi#6427). */ export declare function readHeaderCwd(sessionFile: string): Promise<string | undefined>; //# sourceMappingURL=session-header-cwd.d.ts.map