UNPKG

@code-yeongyu/senpi

Version:

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

20 lines • 912 B
export type ResolvedMessagePath = { readonly status: "found"; readonly realpath: string; readonly kind: "file" | "directory"; readonly base: "absolute" | "cwd" | "project-root"; } | { readonly status: "not_found"; readonly tried: readonly string[]; }; /** Whether `path` (absolute) is a local path this process may hand to the file system. */ export declare function isLocalMessagePath(path: string, platform?: NodeJS.Platform): boolean; /** The project root a session's relative paths fall back to, or undefined when there is none. */ export declare function messagePathProjectRoot(cwd: string): string | undefined; export declare function resolveMessagePath(input: { readonly path: string; readonly cwd: string; readonly projectRoot?: string | undefined; readonly platform?: NodeJS.Platform; }): ResolvedMessagePath; //# sourceMappingURL=message-path-resolution.d.ts.map