yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
automation_bridge.cc
Go to the documentation of this file.
1#define IMGUI_DEFINE_MATH_OPERATORS
2
4
5#if defined(YAZE_WITH_GRPC)
6
7#include "absl/time/time.h"
9
10// test_manager.h already included in automation_bridge.h
11
12namespace yaze {
13namespace editor {
14
15void AutomationBridge::OnHarnessTestUpdated(
16 const test::HarnessTestExecution& execution) {
17 absl::MutexLock lock(&mutex_);
18 if (!chat_widget_) {
19 return;
20 }
21
22 AgentChatWidget::AutomationTelemetry telemetry;
23 telemetry.test_id = execution.test_id;
24 telemetry.name = execution.name;
25 telemetry.status = test::HarnessStatusToString(execution.status);
26 telemetry.message = execution.error_message;
27 telemetry.updated_at = (execution.completed_at == absl::InfiniteFuture() ||
28 execution.completed_at == absl::InfinitePast())
29 ? absl::Now()
30 : execution.completed_at;
31
32 chat_widget_->UpdateHarnessTelemetry(telemetry);
33}
34
35void AutomationBridge::OnHarnessPlanSummary(const std::string& summary) {
36 absl::MutexLock lock(&mutex_);
37 if (!chat_widget_) {
38 return;
39 }
40 chat_widget_->SetLastPlanSummary(summary);
41}
42
43} // namespace editor
44} // namespace yaze
45
46#endif // defined(YAZE_WITH_GRPC)
Main namespace for the application.
Definition controller.cc:20