Skip to main content

Module outside_env

Module outside_env 

Source
Expand description

Detects shell commands in a run log that borrow a dependency environment from outside the worktree.

Constants§

ENV_DIRS

Functions§

borrowed_env_commands
Returns the logged shell commands that take a dependency environment from outside worktree. Each command is returned once, in log order, trimmed to 200 characters.
flag
Formats the == checks flag for borrowed environment commands, or None when empty.
normalize_path
Lexically normalises a path without filesystem access, keeping leading .. components on relative paths.
shell_words
Splits a shell command segment into words, honouring single quotes, double quotes, and backslash escapes.
summary_worktree
Extracts the worktree path from a parsed run summary JSON value. Returns an Err naming the missing field if worktree is absent or empty.