@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
31 lines • 1.12 kB
TypeScript
/**
* How the moved-path guard sees each tool's targets (senpi#2898). A test enumerates every tool of a full load
* against this table, so a new builtin must be classified before it can ship. A tool missing from it (a third-party
* extension or MCP tool) is not allowed silently: every string in its arguments is scanned as command text.
*/
export type MovedPathToolClass =
/** The tool checks the registered filesystem policy before its own I/O. */
{
readonly kind: "filesystem-policy";
}
/** `apply_patch`: every target named in the patch. */
| {
readonly kind: "patch";
}
/** Shell text: path tokens in the command plus the call's working directory. */
| {
readonly kind: "command";
readonly field: string;
}
/** Named input fields holding paths the tool writes or reads. */
| {
readonly kind: "paths";
readonly write: readonly string[];
readonly read: readonly string[];
}
/** Touches no path a model names. */
| {
readonly kind: "none";
};
export declare const MOVED_PATH_TOOL_CLASSES: Readonly<Record<string, MovedPathToolClass>>;
//# sourceMappingURL=tool-classes.d.ts.map