@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
15 lines • 952 B
TypeScript
import type { ExtensionAPI } from "../../types.ts";
/**
* Bounds on one call's check (senpi#2898): at most `MAX_PROBED_PATHS` paths get filesystem resolution, within
* `CALL_DEADLINE_MS`. Neither fails open: paths past the cap, and every path when the deadline passes, are still
* refused by text when they lie under a prefix of a breadcrumb trusted earlier in this process.
*/
export declare const MAX_PROBED_PATHS = 64;
/**
* Guards paths the OmO desktop moved with its data home (senpi#2898). File tools go through the filesystem
* policy: a write into a moved prefix is denied, and a read of a moved path that is gone is denied with its
* new location instead of ENOENT. Every other tool that names paths is stopped by a blocking `tool_call`
* handler, which also sees calls a codemode script makes through `ctx.executeTool()`.
*/
export default function movedPathGuardExtension(pi: ExtensionAPI): void;
//# sourceMappingURL=index.d.ts.map