feat: Refactor agent-related components for improved collaboration and chat management

- Moved agent chat history codec and chat widget to a dedicated agent directory for better organization.
- Introduced AgentEditor class to manage chat, collaboration, and network coordination.
- Updated EditorManager to utilize the new AgentEditor for handling chat and collaboration features.
- Enhanced collaboration capabilities with local and network session management.
- Integrated new agent collaboration coordinator for managing collaborative sessions.
- Improved CMake configuration to include new agent source files and dependencies.
This commit is contained in:
scawful
2025-10-04 17:47:23 -04:00
parent fbbe911ae0
commit b54f4b99dd
13 changed files with 831 additions and 326 deletions

View File

@@ -24,8 +24,7 @@
#include "app/editor/system/popup_manager.h"
#include "app/editor/system/proposal_drawer.h"
#ifdef YAZE_WITH_GRPC
#include "app/editor/system/agent_collaboration_coordinator.h"
#include "app/editor/system/agent_chat_widget.h"
#include "app/editor/agent/agent_editor.h"
#endif
#include "app/editor/system/settings_editor.h"
#include "app/editor/system/toast_manager.h"
@@ -186,9 +185,8 @@ class EditorManager {
bool show_proposal_drawer_ = false;
#ifdef YAZE_WITH_GRPC
// Agent chat widget
AgentCollaborationCoordinator collaboration_coordinator_;
AgentChatWidget agent_chat_widget_;
// Agent editor - manages chat, collaboration, and network coordination
AgentEditor agent_editor_;
#endif
std::string version_ = "";