UNPKG

@code-yeongyu/senpi

Version:

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

15 lines • 965 B
import type { BashCommandSegment } from "../extensions/builtin/permission-system/bash-command-segments.ts"; import type { KillGuardContext, KillGuardVerdict } from "./types.ts"; /** Where one kill-family invocation runs, which decides whether a later layer can still see its real argv. */ export interface Situation { readonly segment: BashCommandSegment; readonly resetPath: boolean; /** `kill` runs as a shell builtin. */ readonly builtin: boolean; /** The runtime layer will see this invocation's real argv (PATH shims, bash's BASH_ENV wrapper). */ readonly runtimeCovers: boolean; } export declare function situationOf(segment: BashCommandSegment, context: KillGuardContext): Situation; /** The verdict for a dynamic word: defer where the runtime layer will see it, refuse UNKNOWN where nothing will. */ export declare function dynamicVerdict(situation: Situation, what: string): KillGuardVerdict; //# sourceMappingURL=situation.d.ts.map