From 9c8cdb677bcf2157f2619ec881d8cee91e2760b8 Mon Sep 17 00:00:00 2001 From: scawful Date: Sun, 5 Oct 2025 14:27:05 -0400 Subject: [PATCH] feat: Update Automation Bridge with AgentChatWidget Integration - Added includes for AgentChatWidget and TestManager in automation_bridge.cc and automation_bridge.h to facilitate communication between components. - Introduced forward declaration for AgentChatWidget in automation_bridge.h to improve code organization and clarity. - Updated test_manager.h to include necessary definitions for improved functionality. --- src/app/editor/agent/automation_bridge.cc | 2 ++ src/app/editor/agent/automation_bridge.h | 9 ++++++++- src/app/test/test_manager.h | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/app/editor/agent/automation_bridge.cc b/src/app/editor/agent/automation_bridge.cc index b4550fcc..d649fc4c 100644 --- a/src/app/editor/agent/automation_bridge.cc +++ b/src/app/editor/agent/automation_bridge.cc @@ -3,6 +3,8 @@ #if defined(YAZE_WITH_GRPC) #include "absl/time/time.h" +#include "app/editor/agent/agent_chat_widget.h" +#include "app/test/test_manager.h" namespace yaze { namespace editor { diff --git a/src/app/editor/agent/automation_bridge.h b/src/app/editor/agent/automation_bridge.h index 9147c8cd..a1b30a28 100644 --- a/src/app/editor/agent/automation_bridge.h +++ b/src/app/editor/agent/automation_bridge.h @@ -3,10 +3,17 @@ #if defined(YAZE_WITH_GRPC) +#include + #include "absl/synchronization/mutex.h" -#include "app/editor/agent/agent_chat_widget.h" #include "app/test/test_manager.h" +namespace yaze { +namespace editor { +class AgentChatWidget; +} // namespace editor +} // namespace yaze + namespace yaze { namespace editor { diff --git a/src/app/test/test_manager.h b/src/app/test/test_manager.h index 4a9d95ec..4dae328a 100644 --- a/src/app/test/test_manager.h +++ b/src/app/test/test_manager.h @@ -16,7 +16,10 @@ #include "absl/strings/string_view.h" #include "absl/time/time.h" #include "app/rom.h" + +#define IMGUI_DEFINE_MATH_OPERATORS #include "imgui.h" + #include "util/log.h" // Forward declarations