Skip to main content

hook_runner

Function hook_runner 

Source
pub fn hook_runner() -> Result<(Proc, &'static str), String>
Expand description

The runner that spawned this ljos hook itself, or why none did: the parent must be an installed runner (exe_runner), with no shell or interpreter between them but the sh -c the runner runs its hook command in ([hook_shell]). That runner must not run inside a tool call, which a runner above it, a tool call’s variables in the environment it was started with, or the guard’s tool-call record ([confirm_runner]) would show. Only such a hook’s prompt is the person’s. An environment that cannot be read hides the stamp, so it is refused.

§Errors

Why the parent is not a runner the person started.