Allowlist with claude_cli: fail closed until hx#182; record provider mode (#18)
This commit was merged in pull request #18.
This commit is contained in:
1 parent
374cf28aed
commit
a76c0ac16f
9 files changed
+259
-14
No files matched your search
@@ -8,6 +8,8 @@
|
||||
//! must stay inside the worktree or `read_roots`. Hard rules apply to every allowed call: no `git push`
|
||||
//! (publishing is the sink's job), no secret-looking paths, file tools stay in the worktree (reads may also
|
||||
//! use `read_roots`), writes never touch `.git` or `.hx` (guard config).
|
||||
//! Not enforceable with hx' `claude_cli` provider: the `claude` binary runs its own tools, invisible to hx' event
|
||||
//! bus. `run::execute` refuses such a run up front (see `report::provider_mode`) instead of running it unguarded.
|
||||
//! ponytail: plain `bash` is not confined (a shell cannot be parsed reliably); use `sandbox = true` for that.
|
||||
|
||||
use anyhow::{Result, bail};
|
||||
|
||||
Reference in new issue
Block a user