pub fn handle_file(
path: &str,
intent: Option<&str>,
project_root: Option<&str>,
) -> (String, ShellOutcome)Expand description
Reads a file from disk, detects its language, and executes a processing script.
project_root is used for pathjail validation. If None, the current
directory is used as the jail root. Precondition failures (path rejected,
unreadable, too large) never execute anything and report Blocked.