@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
12 lines • 840 B
TypeScript
import type { ExtensionAPI } from "../../types.ts";
/**
* Refuses an agent shell command that would signal every process, a protected process (pid 1, the agent, its
* ancestors, the user's service manager) or a process group holding one (senpi#5349,
* code-yeongyu/oh-my-openagent#12096). One `tool_call` handler covers the PTY and core `bash`, `monitor`,
* `bash_input` and nested `tool.bash` calls, independent of the permission preset. At session start it also activates
* the runtime layer (PATH shims, bash's BASH_ENV wrapper and its PROMPT_COMMAND hook for interactive bash) that judges
* the real argv of every agent-spawned `kill`, `pkill` and `killall`. `terminal.killGuard: "off"` in user settings
* turns both off.
*/
export default function killGuardExtension(pi: ExtensionAPI): void;
//# sourceMappingURL=index.d.ts.map