feat(config): load typed ask permissions file

(cherry picked from commit fb77cf1e0946a061376e5e9a8fc9422dddd98419)
This commit is contained in:
greyfreedom
2026-05-31 20:13:40 +08:00
committed by Hunter B
parent 18550339a5
commit 3df018994f
6 changed files with 220 additions and 12 deletions
+15
View File
@@ -133,6 +133,21 @@ allow_shell = true
approval_policy = "on-request" # on-request | untrusted | never
sandbox_mode = "workspace-write" # read-only | workspace-write | danger-full-access | external-sandbox
# Typed permission rules live in a sibling `permissions.toml` file, not in
# config.toml. This schema slice is ask-only and is parsed for follow-up
# approval-flow wiring; allow/deny records and UI persistence are intentionally
# out of scope here.
#
# Example ~/.codewhale/permissions.toml:
#
# [[rules]]
# tool = "exec_shell"
# command = "cargo test"
#
# [[rules]]
# tool = "read_file"
# path = "secrets/**"
# ─────────────────────────────────────────────────────────────────────────────────
# External Sandbox Backend (pluggable remote execution)
# ─────────────────────────────────────────────────────────────────────────────────