@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
17 lines • 954 B
TypeScript
import { type KillGuardRequestOptions } from "./request.ts";
export declare const KILL_GUARD_COMMAND = "__kill-guard";
export interface KillGuardCheckOptions {
readonly env: NodeJS.ProcessEnv;
readonly writeError: (text: string) => void;
readonly platform?: string;
readonly view?: KillGuardRequestOptions["view"];
}
/**
* The exit status the shim acts on: 0 runs the command, 126 refuses it (the refusal is written to stderr), 2 is a
* malformed call, which the shim treats as a failed judge and so refuses too. A deferred verdict cannot arise on real
* argv (every word is literal) and runs the command.
*/
export declare function runKillGuardCheck(args: readonly string[], options: KillGuardCheckOptions): number;
/** The production call: this process's argv and environment; stderr is written synchronously before the exit. */
export declare function runKillGuardCheckCommand(): number;
//# sourceMappingURL=check-command.d.ts.map