UNPKG

@code-yeongyu/senpi

Version:

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

12 lines • 920 B
import type { KillGuardRule, KillGuardVerdict } from "./types.ts"; export declare const KILL_GUARD_TAG = "[senpi:kill-guard]"; export declare const NARROW = "Signal only what you mean: list it with `pgrep -a -f '^<full command prefix>'` and run `kill <pid>`, use `pkill -x <exact name>`, or stop a senpi job or monitor with kill_bash."; export declare const ALLOW: KillGuardVerdict; /** One stderr line: the tag, the rule, the evidence, the narrow alternative and the setting that turns the guard off. */ export declare function refuse(rule: KillGuardRule, evidence: string, alternative?: string): Extract<KillGuardVerdict, { readonly action: "refuse"; }>; export declare const defer: (reason: string) => KillGuardVerdict; /** The first refusal wins; otherwise a defer; otherwise allow. */ export declare function combine(verdicts: Iterable<KillGuardVerdict>): KillGuardVerdict; //# sourceMappingURL=verdict.d.ts.map