Compare commits

...

1 Commits

Author SHA1 Message Date
pzhang_zywl e99e0a7d5a fix: 配置 autoMode.allow 和权限规则 - Closes #106
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>
2026-06-08 09:50:03 +08:00
+8 -3
View File
@@ -4,14 +4,19 @@
"allow": [ "allow": [
"Bash(git *)", "Bash(git *)",
"Bash(python scripts/agent_poller.py *)", "Bash(python scripts/agent_poller.py *)",
"Bash(GITEA_USER=* python scripts/agent_poller.py *)",
"Bash(python scripts/run_pipeline.py *)", "Bash(python scripts/run_pipeline.py *)",
"Bash(python scripts/create_failure_issue.py *)", "Bash(python scripts/create_failure_issue.py *)",
"Bash(python -m pytest *)", "Bash(python -m pytest *)",
"Bash(python -c *)", "Bash(python -c *)",
"Bash(curl *)" "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)"
]
} }
} }