[claude] Add click-to-view-PR panel for agents (#8) #9
Reference in New Issue
Block a user
Delete Branch "claude/the-matrix:claude/issue-8"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #8
What this does
When you click or tap any agent in the 3D world, a panel slides in from the right edge showing:
claude/issue-8Implementation
js/agent-panel.js(new): fetches Gitea API on click; AbortController cancels stale requests; graceful fallback whengiteaUrl/gitLoginare not configuredjs/interaction.js: addsinitClickDetection()usingTHREE.Raycaster; distinguishes clicks from orbit drags (< 6px pointer movement)js/agents.js: setsgroup.userData.agentIdfor raycasting; exportsgetAgentGroups()js/agent-defs.js: adds optionalgitLoginfield per agent definitionjs/config.js: addsgiteaUrl / giteaToken / giteaRepofields (env varsVITE_GITEA_URL,VITE_GITEA_TOKEN,VITE_GITEA_REPO)index.html:#agent-panelslides in from the right; Esc key or ✕ closes itConfiguration
Set in
.env.local:In
js/agent-defs.js, setgitLoginon any agent to enable Gitea lookups for that agent.Pull request closed