Reference in New Issue
Block a user
Delete Branch "feat/integration-phase2"
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?
Integration Phase 2
This PR implements the three highest-leverage integration issues, forming the complete Phase 2 integration layer:
1.
js/config.js— Connection Configuration (Issue #7)?ws=,?token=,?mock=trueVITE_WS_URL,VITE_WS_TOKEN,VITE_MOCK_MODEConfig.isLive,Config.wsUrlWithAuth2. WS Authentication — Phase 1 Shared Secret (Issue #11)
?token=query param on WebSocket connect?token=URL param orVITE_WS_TOKENenv var3.
js/websocket.js— Live WS Client (Issue #7)Config.isLivesendMessage()API for UI → backend communicationagent_joinedhandler dispatches toaddAgent()for hot-add4. Dynamic Agent Hot-Add (Issue #12)
addAgent(def): spawns 3D avatar at runtime without page reloadautoPlace(): finds unoccupied position on circular rings (radius 8+, 30° increments)removeAgent(id): clean GPU dispose + connection line rebuildHow to Use
Mock mode (default): No changes needed, works as before.
Live mode:
Agent hot-add event: Backend sends:
Build
Closes #7, #11, #12