feat: handle opencode permission requests

This commit is contained in:
2026-06-08 13:32:50 +08:00
parent 4e31b141e7
commit 05d36aa8ca
5 changed files with 590 additions and 6 deletions
+17 -1
View File
@@ -12,5 +12,21 @@
"hostname": "127.0.0.1",
"port": 4096
},
"permission": {
"*": "allow",
"external_directory": "ask",
"bash": {
"*": "allow",
"rm *": "ask",
"rmdir *": "ask",
"mv *": "ask",
"chmod *": "ask",
"chown *": "ask",
"sudo *": "ask",
"curl *": "ask",
"wget *": "ask"
},
"edit": "ask"
},
"default_agent": "instruction"
}
}