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
@@ -21,7 +21,7 @@ $Base = 'https://git.copse.top/api/v1'
if ($Repo -notmatch '^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$') { throw "bad -Repo: $Repo" }
$Api = "$Base/repos/$Repo"
# Accounts whose issue text and comments are trusted: the product owner and the two agents.
$Trusted = @('jesse', 'claude-agent', 'grok-agent')
$Trusted = @('jesse', 'Claude', 'Grok')
if ($env:GITEA_TRUSTED_USERS) { $Trusted = $env:GITEA_TRUSTED_USERS -split ',' }
$Token = ([IO.File]::ReadAllText((Join-Path $HOME '.config\jyotisha-agent\gitea-token'))).Trim()