[Opencode] update
This commit is contained in:
@@ -1,6 +1,41 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"share": "disabled",
|
||||
"permission": {
|
||||
"bash": {
|
||||
"rm *": "deny",
|
||||
"cat .env*": "deny",
|
||||
"grep .env*": "deny",
|
||||
"grep -r --exclude-dir={node_modules,.git} *": "allow",
|
||||
"grep *": "allow",
|
||||
"mkdir *": "allow",
|
||||
"touch *": "allow",
|
||||
"npm list": "allow",
|
||||
"npm help": "allow",
|
||||
"npm version": "allow",
|
||||
"pnpm list": "allow",
|
||||
"pnpm help": "allow",
|
||||
"npx --version": "allow",
|
||||
"tsc *": "allow",
|
||||
"which *": "allow",
|
||||
"ls *": "allow",
|
||||
"cat *": "allow",
|
||||
"git status": "allow",
|
||||
"git diff": "allow",
|
||||
"git log": "allow",
|
||||
"git *": "ask",
|
||||
"npm install": "deny",
|
||||
"npm i": "deny",
|
||||
"pnpm i": "deny",
|
||||
"pnpm install": "deny",
|
||||
"npm *": "ask",
|
||||
"pnpm *": "ask",
|
||||
"npx *": "ask",
|
||||
"*": "ask"
|
||||
},
|
||||
"edit": {
|
||||
"*": "deny"
|
||||
}
|
||||
},
|
||||
"provider": {
|
||||
"duskadiy": {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
@@ -50,5 +85,45 @@
|
||||
"bash": "ask"
|
||||
}
|
||||
}
|
||||
"code-reviewer": {
|
||||
"description": "Reviews code for best practices and potential issues",
|
||||
"prompt": "You are a code reviewer. Focus on security, performance, and maintainability.",
|
||||
"mode": "subagent",
|
||||
"model": "duskadiy/DeepSeek-Coder-V2-Lite-Instruct-Q8_0",
|
||||
"permission": {
|
||||
"edit": "deny",
|
||||
"bash": "ask"
|
||||
}
|
||||
},
|
||||
"test-runner": {
|
||||
"description": "Runs and interprets test suites",
|
||||
"prompt": "You are a test runner. Focus on identifying failing tests and providing clear reproduction steps.",
|
||||
"mode": "subagent",
|
||||
"model": "duskadiy/DeepSeek-Coder-V2-Lite-Instruct-Q8_0",
|
||||
"permission": {
|
||||
"edit": "deny",
|
||||
"bash": "ask"
|
||||
}
|
||||
},
|
||||
"doc-writer": {
|
||||
"description": "Maintains project documentation and docstrings",
|
||||
"prompt": "You are a technical writer. Focus on clarity, accuracy, and keeping documentation in sync with code changes.",
|
||||
"mode": "subagent",
|
||||
"model": "duskadiy/gemma-4-26B-A4B-it-UD-IQ4_XS",
|
||||
"permission": {
|
||||
"edit": "allow",
|
||||
"bash": "ask"
|
||||
}
|
||||
},
|
||||
"security-auditor": {
|
||||
"description": "Scans for security vulnerabilities and hardcoded secrets",
|
||||
"prompt": "You are a security auditor. Focus on OWASP principles, secret detection, and dependency vulnerabilities.",
|
||||
"mode": "subagent",
|
||||
"model": "duskadiy/DeepSeek-Coder-V2-Lite-Instruct-Q8_0",
|
||||
"permission": {
|
||||
"edit": "deny",
|
||||
"bash": "ask"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user