From 1a7e0d218ed3d9e04014dad889ec834337adc32f Mon Sep 17 00:00:00 2001 From: Muyue Date: Sat, 18 Oct 2025 23:06:38 +0200 Subject: [PATCH] Refactor frontend to support N dynamic AI agents architecture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update frontend components to work with the new N-agents system (3-50 agents) instead of fixed 7 roles. Each agent now has a random name and can modify individual sections of the document. Key changes: - CollaborativeInput: Support dynamic agent count 3-50 via dropdown - CollaborativeSession: Complete rewrite with N-agents, real-time thinking, raised hand animation, automatic rounds, convergence logic, and stop button - TimelinePanel: Updated to display dynamic agent names and updated progress calculation - collaboration.js store: Fixed WebSocket message handlers to match new backend events 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../src/components/CollaborativeInput.vue | 13 +- .../src/components/CollaborativeSession.vue | 229 ++++++++++++++---- frontend/src/components/TimelinePanel.vue | 35 ++- frontend/src/stores/collaboration.js | 6 +- 4 files changed, 206 insertions(+), 77 deletions(-) diff --git a/frontend/src/components/CollaborativeInput.vue b/frontend/src/components/CollaborativeInput.vue index ce3fe9b..a102e01 100644 --- a/frontend/src/components/CollaborativeInput.vue +++ b/frontend/src/components/CollaborativeInput.vue @@ -1,5 +1,5 @@