mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-13 23:52:06 +00:00
restore
This commit is contained in:
@@ -1,38 +1,10 @@
|
||||
// {
|
||||
// "$schema": "https://opencode.ai/config.json",
|
||||
// "provider": {},
|
||||
// // Array form: each entry is its own permission layer; later layers override earlier rules.
|
||||
// "permission": [
|
||||
// // Layer 1: safety defaults.
|
||||
// {
|
||||
// "bash": {
|
||||
// "rm -rf *": "deny",
|
||||
// },
|
||||
// },
|
||||
// // Layer 2: project-specific rules — uses per-field shorthand and object forms.
|
||||
// {
|
||||
// "edit": {
|
||||
// "packages/opencode/migration/*": "ask",
|
||||
// },
|
||||
// "webfetch": "allow",
|
||||
// },
|
||||
// // Layer 3: deny everything that runs through bash. Shorthand for bash: { "*": "deny" }.
|
||||
// {
|
||||
// "bash": "deny",
|
||||
// },
|
||||
// // Layer 4: relax layer 3 for a specific pattern. Later layer wins for matching commands,
|
||||
// // so `echo foo` is allowed while everything else stays denied.
|
||||
// {
|
||||
// "bash": {
|
||||
// "echo *": "allow",
|
||||
// },
|
||||
// },
|
||||
// ],
|
||||
// "mcp": {},
|
||||
// "tools": {
|
||||
// "github-triage": false,
|
||||
// "github-pr-search": false,
|
||||
// },
|
||||
// }
|
||||
{}
|
||||
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"provider": {},
|
||||
"permission": {},
|
||||
"mcp": {},
|
||||
"tools": {
|
||||
"github-triage": false,
|
||||
"github-pr-search": false,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user