-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json.example
More file actions
67 lines (67 loc) · 2.02 KB
/
Copy pathopencode.json.example
File metadata and controls
67 lines (67 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"$schema": "https://opencode.ai/config.json",
"model": "${MODEL_MAIN}",
"small_model": "${MODEL_CHEAP}",
"autoupdate": true,
"instructions": [
"~/.config/opencode/rules/*.md"
],
"permission": {
"edit": "allow",
"write": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow",
"webfetch": "allow",
"skill": {
"*": "allow"
},
"bash": {
"rm -rf /": "deny",
"rm -rf /*": "deny",
"sudo *": "deny",
"docker *": "deny",
"tail *": "allow",
"git push*--force*": "deny",
"git push* -f*": "deny",
"git push*--delete*": "deny",
"git push* -d*": "deny",
"git push* :*": "deny",
"git add*": "${GIT_COMMIT_PERMISSION}",
"git commit*": "${GIT_COMMIT_PERMISSION}",
"git push*": "${GIT_OPERATIONS_PERMISSION}",
"git pull*": "${GIT_OPERATIONS_PERMISSION}",
"git fetch*": "${GIT_OPERATIONS_PERMISSION}",
"git merge*": "${GIT_OPERATIONS_PERMISSION}",
"git rebase*": "${GIT_OPERATIONS_PERMISSION}",
"git checkout*": "${GIT_OPERATIONS_PERMISSION}",
"git switch*": "${GIT_OPERATIONS_PERMISSION}",
"git reset*": "${GIT_OPERATIONS_PERMISSION}",
"git restore*": "${GIT_OPERATIONS_PERMISSION}",
"git stash*": "${GIT_OPERATIONS_PERMISSION}",
"git tag*": "${GIT_OPERATIONS_PERMISSION}",
"git cherry-pick*": "${GIT_OPERATIONS_PERMISSION}",
"git diff*": "allow",
"git log*": "allow",
"git status*": "allow",
"git branch*": "allow",
"git show*": "allow",
"*": "allow"
}
},
"formatter": {
"phpcbf": {
"command": ["ssh", "web", "./vendor/bin/phpcbf", "--standard=Drupal,DrupalPractice", "$FILE"],
"extensions": [".php", ".module", ".inc", ".install", ".theme", ".profile"]
}
},
"mcp": {
"playwright": {
"type": "remote",
"url": "http://playwright-mcp:8931/mcp",
"enabled": true,
"timeout": 30000
}
},
"plugin": ["@mohak34/opencode-notifier@latest", "@devtheops/opencode-plugin-otel@latest"]
}