tools(agent-loop): trusted bot accounts are Gitea logins Claude and Grok

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014Ad9rqAB8pXXvyzh7f4X8v
This commit is contained in:
Jesse_Chen
2026-10-13 14:02:34 +08:00
co-authored by Claude Opus 5.5
parent 05f8800531
commit 7ac2fa63da
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ TOKEN_FILE="${JYOTISHA_AGENT_TOKEN_FILE:-$HOME/.config/jyotisha-agent/gitea-toke
API="$GITEA_URL/api/v1/repos/$GITEA_REPO"
# Accounts whose issue text and comments are trusted: the product owner and the two agents.
# Everyone else's text is dropped before it reaches a model.
TRUSTED="${GITEA_TRUSTED_USERS:-jesse,claude-agent,grok-agent}"
TRUSTED="${GITEA_TRUSTED_USERS:-jesse,Claude,Grok}"
_trusted_jq='($t | split(",")) as $ok | ($ok | index($u)) != null'
_token() {