chore(opencode): update permissions and model providers

- allow head, tail, gofmt, and additional npm test commands
- switch default and explore agents to OpenAI models
- add OpenAI provider configuration
- disable paste summaries experimentally
This commit is contained in:
colem
2026-08-11 14:52:40 -05:00
parent 3fbf0ea3c8
commit 71f73fccbc
+14 -3
View File
@@ -24,12 +24,15 @@
"which *": "allow", "which *": "allow",
"ls *": "allow", "ls *": "allow",
"wc *": "allow", "wc *": "allow",
"head *": "allow",
"tail *": "allow",
// Go // Go
"go build *": "allow", "go build *": "allow",
"go test *": "allow", "go test *": "allow",
"go vet *": "allow", "go vet *": "allow",
"go mod tidy": "allow", "go mod tidy": "allow",
"go mod download": "allow", "go mod download": "allow",
"gofmt *": "allow",
// Node.js // Node.js
"npm ci": "allow", "npm ci": "allow",
"npm test": "allow", "npm test": "allow",
@@ -40,6 +43,10 @@
"npm ls *": "allow", "npm ls *": "allow",
"npm outdated": "allow", "npm outdated": "allow",
"npm audit *": "allow", "npm audit *": "allow",
"npm run test:unit": "allow",
"npm run test:integration": "allow",
"npm run test:e2e": "allow",
"npm run type-check": "allow",
"npx *": "ask", "npx *": "ask",
// Python // Python
"python -m unittest *": "allow", "python -m unittest *": "allow",
@@ -194,11 +201,11 @@
}, },
"lsp": true, "lsp": true,
"formatter": true, "formatter": true,
"model": "zai-coding-plan/glm-5.2", "model": "openai/gpt-5.5-pro",
"small_model": "zai-coding-plan/glm-4.5-air", "small_model": "openai/gpt-4-turbo",
"agent": { "agent": {
"explore": { "explore": {
"model": "zai-coding-plan/glm-4.5-air", "model": "openai/gpt-4-turbo",
}, },
}, },
"share": "disabled", "share": "disabled",
@@ -206,5 +213,9 @@
"plugin": ["./plugins/ibmi-gate.ts", "@slkiser/opencode-quota@latest"], "plugin": ["./plugins/ibmi-gate.ts", "@slkiser/opencode-quota@latest"],
"provider": { "provider": {
"zai": {}, "zai": {},
"openai": {},
},
"experimental": {
"disable_paste_summary": true,
}, },
} }