@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
14 lines • 941 B
TypeScript
export type TargetKind = "file" | "directory" | "missing" | "other";
/** Whether something, even a dangling symlink, exists at `target` itself; git looks at the name. */
export declare function existsAtName(target: string): boolean;
/** Whether `cwd` is a root `auto` approves anything in (see `projectRoot`). */
export declare function isProjectSession(cwd: string): boolean;
/** What is at `target` after following every symlink, without opening anything. */
export declare function targetKind(target: string): TargetKind;
/**
* Whether `auto` may touch the absolute path `target` that a tool resolved: after following every
* symlink it is inside the project root, no component below the root is hidden (other than a
* short list of repository and formatter files), and nothing along it is credential-shaped.
*/
export declare function isApprovableTarget(target: string, cwd: string): boolean;
//# sourceMappingURL=auto-paths.d.ts.map