feat: vendor permission system source

This commit is contained in:
云服务部-叶林立
2026-08-19 14:35:19 +08:00
parent 198584daf8
commit 410c50a3e5
809 changed files with 157793 additions and 139 deletions
@@ -0,0 +1,50 @@
{
"$schema": "https://raw.githubusercontent.com/gotgenes/pi-packages/main/packages/pi-permission-system/schemas/permissions.schema.json",
"debugLog": false,
"permissionReviewLog": true,
"yoloMode": false,
"doublePressToConfirm": true,
"forwardingTimeoutMs": 600000,
"promptMaxRows": 24,
"promptFieldMaxWidth": 400,
"reviewLogFieldMaxWidth": 1000,
"piInfrastructureReadPaths": [],
"authorizerChain": [],
"shellTools": {
"exec_command": { "commandArgument": "cmd", "workdirArgument": "workdir" }
},
"permission": {
"*": "ask",
"path": {
"*": "allow",
"*.env": "deny",
"*.env.*": "deny",
"*.env.example": "allow"
},
"read": "allow",
"write": "deny",
"edit": "deny",
"bash": {
"*": "ask",
"git *": "ask",
"git status": "allow",
"git diff": "allow",
"npm *": { "action": "deny", "reason": "Use pnpm instead" }
},
"mcp": { "*": "ask", "mcp_status": "allow", "mcp_list": "allow" },
"skill": { "*": "ask" },
"external_directory": {
"*": "ask",
"~/development/*": "allow",
"~/.cargo/registry/*": "allow"
}
}
}