d024ccf65b
CI / test (pull_request) Successful in 20s
1. 新增 GITEA_USER=* python scripts/agent_poller.py * 权限规则 2. 新增 autoMode.allow 规则,Gitea 操作列为 Agent 核心工作流 3. autoMode 配置在下个 session 启动时生效 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
23 lines
743 B
JSON
23 lines
743 B
JSON
{
|
|
"permissionMode": "bypass",
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(git *)",
|
|
"Bash(python scripts/agent_poller.py *)",
|
|
"Bash(GITEA_USER=* python scripts/agent_poller.py *)",
|
|
"Bash(python scripts/run_pipeline.py *)",
|
|
"Bash(python scripts/create_failure_issue.py *)",
|
|
"Bash(python -m pytest *)",
|
|
"Bash(python -c *)",
|
|
"Bash(curl *)"
|
|
]
|
|
},
|
|
"autoMode": {
|
|
"allow": [
|
|
"$defaults",
|
|
"Running agent_poller.py with GITEA_USER env var to interact with Gitea (comment, close-issue, create-pr, merge-pr, create-issue, reopen-issue)",
|
|
"Running Gitea API operations via scripts (agent_poller.py, create_failure_issue.py)"
|
|
]
|
|
}
|
|
}
|