docs(config): use exact path in permissions example

This commit is contained in:
Hunter B
2026-06-01 05:43:45 -07:00
parent 3df018994f
commit 69cff93754
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ sandbox_mode = "workspace-write" # read-only | workspace-write | danger-full-acc
#
# [[rules]]
# tool = "read_file"
# path = "secrets/**"
# path = "secrets/api_key.txt"
# ─────────────────────────────────────────────────────────────────────────────────
# External Sandbox Backend (pluggable remote execution)
+4 -4
View File
@@ -2357,7 +2357,7 @@ mod tests {
[[rules]]
tool = "read_file"
path = "secrets/**"
path = "secrets/api_key.txt"
"#,
)
.expect("permissions toml");
@@ -2366,7 +2366,7 @@ mod tests {
permissions.rules,
vec![
ToolAskRule::exec_shell("cargo test"),
ToolAskRule::file_path("read_file", "secrets/**"),
ToolAskRule::file_path("read_file", "secrets/api_key.txt"),
]
);
}
@@ -2410,7 +2410,7 @@ mod tests {
[[rules]]
tool = "read_file"
path = "secrets/**"
path = "secrets/api_key.txt"
"#,
)
.expect("write permissions");
@@ -2422,7 +2422,7 @@ mod tests {
store.permissions().rules.as_slice(),
&[
ToolAskRule::exec_shell("cargo test"),
ToolAskRule::file_path("read_file", "secrets/**"),
ToolAskRule::file_path("read_file", "secrets/api_key.txt"),
]
);
assert_eq!(