@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
15 lines • 1.04 kB
TypeScript
import { type MovedPath } from "./breadcrumb-trust.ts";
import { type PathPlatform } from "./path-match.ts";
export { type MovedPath, movedPathReason } from "./breadcrumb-trust.ts";
/**
* Synchronous resolution, only for callers that are synchronous themselves and hold one session path: the registry
* open, session-holder claims and schedule delivery (senpi#2898). Tool calls use `createMovedPathProbe`, which never
* blocks the session loop. Both drive the same walk (`walk.ts`).
*
* Bound, per hop (at most `MAX_HOPS`): canonicalizing the one path; one O_NOFOLLOW open of at most 64 KiB per
* ancestor directory's breadcrumb; and, only for a breadcrumb listing this path whose `movedTo` lies under the user's
* home, one `stat` of the breadcrumb's folder, one such open of that home's marker and one `.git` existence check.
*/
export declare function findMovedPath(path: string, platform?: PathPlatform): MovedPath | undefined;
export declare function resolveMovedPath(path: string): string;
//# sourceMappingURL=resolve.d.ts.map