config(opencode): добавлены настройки разрешений для git-команд
- Зачем: - требуется контроль выполнения опасных git-операций (commit, branch, switch). - Что: - добавлена секция permission в конфигурацию OpenCode. - настроен режим ask для git commit, git commit --amend, git branch, git switch. - разрешены все остальные git-команды. - Проверка: - проверка файла opencode/.config/opencode/opencode.json.
This commit is contained in:
1 parent
71a44da9b1
commit
08873ebbe2
1 file changed
+10
@@ -1,5 +1,15 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"permission": {
|
||||
"bash": {
|
||||
"git commit*": "ask",
|
||||
"git commit --amend*": "ask",
|
||||
"git branch*": "ask",
|
||||
"git switch*": "ask",
|
||||
"git *": "allow",
|
||||
"*": "ask"
|
||||
}
|
||||
},
|
||||
"mcp": {
|
||||
"context7": {
|
||||
"type": "remote",
|
||||
|
||||
Reference in new issue
Block a user