yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::AgentChatWidget Class Reference

Modern AI chat widget with comprehensive z3ed and yaze-server integration. More...

#include <agent_chat_widget.h>

Classes

struct  AgentConfigState
 
struct  AutomationCallbacks
 
struct  AutomationState
 
struct  AutomationTelemetry
 
struct  ChatSession
 
struct  CollaborationCallbacks
 
struct  CollaborationState
 
struct  FileEditorTab
 
struct  MultimodalCallbacks
 
struct  MultimodalState
 
struct  RegionSelectionState
 
struct  RomSyncCallbacks
 
struct  RomSyncState
 
struct  ScreenshotPreviewState
 
struct  Z3EDCommandCallbacks
 
struct  Z3EDCommandState
 

Public Types

enum class  CollaborationMode { kLocal = 0 , kNetwork = 1 }
 
enum class  CaptureMode { kFullWindow = 0 , kActiveEditor = 1 , kSpecificWindow = 2 , kRegionSelect = 3 }
 

Public Member Functions

 AgentChatWidget ()
 
void Draw ()
 
void SetRomContext (Rom *rom)
 
void RenderSnapshotPreviewPanel ()
 
void LoadScreenshotPreview (const std::filesystem::path &image_path)
 
void UnloadScreenshotPreview ()
 
void RenderScreenshotPreview ()
 
void RenderRegionSelection ()
 
void BeginRegionSelection ()
 
void HandleRegionSelection ()
 
void CaptureSelectedRegion ()
 
void SetToastManager (ToastManager *toast_manager)
 
void SetProposalDrawer (ProposalDrawer *drawer)
 
void SetChatHistoryPopup (AgentChatHistoryPopup *popup)
 
void SetCollaborationCallbacks (const CollaborationCallbacks &callbacks)
 
void SetMultimodalCallbacks (const MultimodalCallbacks &callbacks)
 
void SetAutomationCallbacks (const AutomationCallbacks &callbacks)
 
void UpdateHarnessTelemetry (const AutomationTelemetry &telemetry)
 
void SetLastPlanSummary (const std::string &summary)
 
void PollAutomationStatus ()
 
bool CheckHarnessConnection ()
 
void SetZ3EDCommandCallbacks (const Z3EDCommandCallbacks &callbacks)
 
void SetRomSyncCallbacks (const RomSyncCallbacks &callbacks)
 
bool * active ()
 
bool is_active () const
 
void set_active (bool active)
 
void SetPromptMode (cli::agent::PromptMode mode)
 
cli::agent::PromptMode GetPromptMode () const
 
CaptureMode capture_mode () const
 
const char * specific_window_name () const
 
const AgentConfigStateGetAgentConfig () const
 
void UpdateAgentConfig (const AgentConfigState &config)
 
void LoadAgentSettingsFromProject (const core::YazeProject &project)
 
void SaveAgentSettingsToProject (core::YazeProject &project)
 
void SwitchToSharedHistory (const std::string &session_id)
 
void SwitchToLocalHistory ()
 
void OpenFileInEditor (const std::string &filepath)
 
void CreateNewFileInEditor (const std::string &filename)
 

Private Member Functions

void EnsureHistoryLoaded ()
 
void PersistHistory ()
 
void RenderHistory ()
 
void RenderMessage (const cli::agent::ChatMessage &msg, int index)
 
void RenderProposalQuickActions (const cli::agent::ChatMessage &msg, int index)
 
void RenderInputBox ()
 
void HandleAgentResponse (const absl::StatusOr< cli::agent::ChatMessage > &response)
 
int CountKnownProposals () const
 
void FocusProposalDrawer (const std::string &proposal_id)
 
void NotifyProposalCreated (const cli::agent::ChatMessage &msg, int new_total_proposals)
 
void RenderCollaborationPanel ()
 
void RenderMultimodalPanel ()
 
void RenderAutomationPanel ()
 
void RenderAgentConfigPanel ()
 
void RenderZ3EDCommandPanel ()
 
void RenderRomSyncPanel ()
 
void RenderProposalManagerPanel ()
 
void RenderHarnessPanel ()
 
void RenderSystemPromptEditor ()
 
void RenderFileEditorTabs ()
 
void RefreshCollaboration ()
 
void ApplyCollaborationSession (const CollaborationCallbacks::SessionContext &context, bool update_action_timestamp)
 
void MarkHistoryDirty ()
 
void PollSharedHistory ()
 
void HandleRomSyncReceived (const std::string &diff_data, const std::string &rom_hash)
 
void HandleSnapshotReceived (const std::string &snapshot_data, const std::string &snapshot_type)
 
void HandleProposalReceived (const std::string &proposal_data)
 
void SyncHistoryToPopup ()
 
void SaveChatSession (const ChatSession &session)
 
void LoadChatSession (const std::string &session_id)
 
void DeleteChatSession (const std::string &session_id)
 
std::vector< std::string > GetSavedSessions ()
 
std::filesystem::path GetSessionsDirectory ()
 

Private Attributes

bool waiting_for_response_ = false
 
float thinking_animation_ = 0.0f
 
std::string pending_message_
 
std::vector< ChatSessionchat_sessions_
 
int active_session_index_ = 0
 
cli::agent::ConversationalAgentService agent_service_
 
char input_buffer_ [1024]
 
bool active_ = false
 
std::string title_
 
size_t last_history_size_ = 0
 
bool history_loaded_ = false
 
bool history_dirty_ = false
 
bool history_supported_ = true
 
bool history_warning_displayed_ = false
 
std::filesystem::path history_path_
 
int last_proposal_count_ = 0
 
ToastManagertoast_manager_ = nullptr
 
ProposalDrawerproposal_drawer_ = nullptr
 
AgentChatHistoryPopupchat_history_popup_ = nullptr
 
std::string pending_focus_proposal_id_
 
absl::Time last_persist_time_ = absl::InfinitePast()
 
CollaborationState collaboration_state_
 
MultimodalState multimodal_state_
 
AutomationState automation_state_
 
AgentConfigState agent_config_
 
RomSyncState rom_sync_state_
 
Z3EDCommandState z3ed_command_state_
 
CollaborationCallbacks collaboration_callbacks_
 
MultimodalCallbacks multimodal_callbacks_
 
AutomationCallbacks automation_callbacks_
 
Z3EDCommandCallbacks z3ed_callbacks_
 
RomSyncCallbacks rom_sync_callbacks_
 
char session_name_buffer_ [64] = {}
 
char join_code_buffer_ [64] = {}
 
char server_url_buffer_ [256] = "ws://localhost:8765"
 
char multimodal_prompt_buffer_ [256] = {}
 
absl::Time last_collaboration_action_ = absl::InfinitePast()
 
absl::Time last_shared_history_poll_ = absl::InfinitePast()
 
size_t last_known_history_size_ = 0
 
int active_tab_ = 0
 
bool show_agent_config_ = false
 
cli::agent::PromptMode prompt_mode_ = cli::agent::PromptMode::kStandard
 
bool show_z3ed_commands_ = false
 
bool show_rom_sync_ = false
 
bool show_snapshot_preview_ = false
 
std::vector< uint8_t > snapshot_preview_data_
 
ImVec4 collaboration_status_color_ = ImVec4(0.6f, 0.6f, 0.6f, 1.0f)
 
std::vector< FileEditorTabopen_files_
 
int active_file_tab_ = -1
 

Detailed Description

Modern AI chat widget with comprehensive z3ed and yaze-server integration.

Features:

  • AI Provider Configuration (Ollama, Gemini, Mock)
  • Z3ED Command Palette (run, plan, diff, accept, test)
  • Real-time Collaboration (Local & Network modes)
  • ROM Synchronization and Diff Broadcasting
  • Multimodal Vision (Screenshot Analysis)
  • Snapshot Sharing with Preview
  • Collaborative Proposal Management
  • Tabbed Interface with Modern ImGui patterns

Definition at line 44 of file agent_chat_widget.h.

Member Enumeration Documentation

◆ CollaborationMode

Enumerator
kLocal 
kNetwork 

Definition at line 146 of file agent_chat_widget.h.

◆ CaptureMode

Enumerator
kFullWindow 
kActiveEditor 
kSpecificWindow 
kRegionSelect 

Definition at line 162 of file agent_chat_widget.h.

Constructor & Destructor Documentation

◆ AgentChatWidget()

yaze::editor::AgentChatWidget::AgentChatWidget ( )

Member Function Documentation

◆ Draw()

◆ SetRomContext()

◆ RenderSnapshotPreviewPanel()

◆ LoadScreenshotPreview()

◆ UnloadScreenshotPreview()

◆ RenderScreenshotPreview()

◆ RenderRegionSelection()

void yaze::editor::AgentChatWidget::RenderRegionSelection ( )

◆ BeginRegionSelection()

◆ HandleRegionSelection()

◆ CaptureSelectedRegion()

◆ SetToastManager()

void yaze::editor::AgentChatWidget::SetToastManager ( ToastManager toast_manager)

Definition at line 163 of file agent_chat_widget.cc.

References toast_manager_.

◆ SetProposalDrawer()

void yaze::editor::AgentChatWidget::SetProposalDrawer ( ProposalDrawer drawer)

Definition at line 167 of file agent_chat_widget.cc.

References yaze::editor::ProposalDrawer::FocusProposal(), pending_focus_proposal_id_, and proposal_drawer_.

Here is the call graph for this function:

◆ SetChatHistoryPopup()

◆ SetCollaborationCallbacks()

void yaze::editor::AgentChatWidget::SetCollaborationCallbacks ( const CollaborationCallbacks callbacks)
inline

Definition at line 119 of file agent_chat_widget.h.

References collaboration_callbacks_.

◆ SetMultimodalCallbacks()

void yaze::editor::AgentChatWidget::SetMultimodalCallbacks ( const MultimodalCallbacks callbacks)

Definition at line 2842 of file agent_chat_widget.cc.

References multimodal_callbacks_.

◆ SetAutomationCallbacks()

void yaze::editor::AgentChatWidget::SetAutomationCallbacks ( const AutomationCallbacks callbacks)

Definition at line 2847 of file agent_chat_widget.cc.

References automation_callbacks_.

◆ UpdateHarnessTelemetry()

void yaze::editor::AgentChatWidget::UpdateHarnessTelemetry ( const AutomationTelemetry telemetry)

◆ SetLastPlanSummary()

void yaze::editor::AgentChatWidget::SetLastPlanSummary ( const std::string &  summary)
Todo:
Implement plan summary storage and display

Definition at line 2870 of file agent_chat_widget.cc.

References yaze::editor::kInfo, yaze::editor::ToastManager::Show(), and toast_manager_.

Here is the call graph for this function:

◆ PollAutomationStatus()

◆ CheckHarnessConnection()

bool yaze::editor::AgentChatWidget::CheckHarnessConnection ( )

Definition at line 2911 of file agent_chat_widget.cc.

References automation_state_, yaze::editor::AgentChatWidget::AutomationState::connection_attempts, and yaze::test::TestManager::Get().

Referenced by PollAutomationStatus().

Here is the call graph for this function:

◆ SetZ3EDCommandCallbacks()

void yaze::editor::AgentChatWidget::SetZ3EDCommandCallbacks ( const Z3EDCommandCallbacks callbacks)
inline

Definition at line 133 of file agent_chat_widget.h.

References z3ed_callbacks_.

◆ SetRomSyncCallbacks()

void yaze::editor::AgentChatWidget::SetRomSyncCallbacks ( const RomSyncCallbacks callbacks)
inline

Definition at line 137 of file agent_chat_widget.h.

References rom_sync_callbacks_.

◆ active()

bool * yaze::editor::AgentChatWidget::active ( )
inline

Definition at line 141 of file agent_chat_widget.h.

References active_.

Referenced by set_active().

◆ is_active()

bool yaze::editor::AgentChatWidget::is_active ( ) const
inline

Definition at line 142 of file agent_chat_widget.h.

References active_.

Referenced by Draw().

◆ set_active()

void yaze::editor::AgentChatWidget::set_active ( bool  active)
inline

Definition at line 143 of file agent_chat_widget.h.

References active(), and active_.

Referenced by SetChatHistoryPopup().

Here is the call graph for this function:

◆ SetPromptMode()

void yaze::editor::AgentChatWidget::SetPromptMode ( cli::agent::PromptMode  mode)
inline

Definition at line 243 of file agent_chat_widget.h.

References prompt_mode_.

◆ GetPromptMode()

cli::agent::PromptMode yaze::editor::AgentChatWidget::GetPromptMode ( ) const
inline

Definition at line 244 of file agent_chat_widget.h.

References prompt_mode_.

◆ capture_mode()

CaptureMode yaze::editor::AgentChatWidget::capture_mode ( ) const
inline

◆ specific_window_name()

const char * yaze::editor::AgentChatWidget::specific_window_name ( ) const
inline

◆ GetAgentConfig()

const AgentConfigState & yaze::editor::AgentChatWidget::GetAgentConfig ( ) const
inline

Definition at line 253 of file agent_chat_widget.h.

References agent_config_.

◆ UpdateAgentConfig()

◆ LoadAgentSettingsFromProject()

void yaze::editor::AgentChatWidget::LoadAgentSettingsFromProject ( const core::YazeProject project)

Definition at line 2759 of file agent_chat_widget.cc.

References agent_config_, yaze::core::YazeProject::agent_settings, yaze::core::YazeProject::AgentSettings::ai_model, yaze::editor::AgentChatWidget::AgentConfigState::ai_model, yaze::core::YazeProject::AgentSettings::ai_provider, yaze::editor::AgentChatWidget::AgentConfigState::ai_provider, TextEditor::LanguageDefinition::CPlusPlus(), yaze::core::YazeProject::AgentSettings::custom_system_prompt, yaze::editor::AgentChatWidget::FileEditorTab::editor, yaze::editor::AgentChatWidget::FileEditorTab::filename, yaze::editor::AgentChatWidget::FileEditorTab::filepath, yaze::core::YazeProject::AgentSettings::gemini_api_key, yaze::editor::AgentChatWidget::AgentConfigState::gemini_api_key, yaze::editor::AgentChatWidget::AgentConfigState::gemini_key_buffer, yaze::core::YazeProject::GetAbsolutePath(), yaze::util::GetFileName(), yaze::editor::AgentChatWidget::FileEditorTab::is_system_prompt, yaze::core::YazeProject::AgentSettings::max_retry_attempts, yaze::editor::AgentChatWidget::AgentConfigState::max_retry_attempts, yaze::core::YazeProject::AgentSettings::max_tool_iterations, yaze::editor::AgentChatWidget::AgentConfigState::max_tool_iterations, yaze::editor::AgentChatWidget::AgentConfigState::model_buffer, yaze::core::YazeProject::AgentSettings::ollama_host, yaze::editor::AgentChatWidget::AgentConfigState::ollama_host, yaze::editor::AgentChatWidget::AgentConfigState::ollama_host_buffer, open_files_, yaze::editor::AgentChatWidget::AgentConfigState::provider_buffer, TextEditor::SetLanguageDefinition(), TextEditor::SetText(), yaze::core::YazeProject::AgentSettings::show_reasoning, yaze::editor::AgentChatWidget::AgentConfigState::show_reasoning, yaze::core::YazeProject::AgentSettings::use_custom_prompt, yaze::core::YazeProject::AgentSettings::verbose, and yaze::editor::AgentChatWidget::AgentConfigState::verbose.

◆ SaveAgentSettingsToProject()

◆ SwitchToSharedHistory()

void yaze::editor::AgentChatWidget::SwitchToSharedHistory ( const std::string &  session_id)

◆ SwitchToLocalHistory()

void yaze::editor::AgentChatWidget::SwitchToLocalHistory ( )

◆ OpenFileInEditor()

◆ CreateNewFileInEditor()

◆ EnsureHistoryLoaded()

◆ PersistHistory()

◆ RenderHistory()

void yaze::editor::AgentChatWidget::RenderHistory ( )
private

◆ RenderMessage()

void yaze::editor::AgentChatWidget::RenderMessage ( const cli::agent::ChatMessage msg,
int  index 
)
private

◆ RenderProposalQuickActions()

void yaze::editor::AgentChatWidget::RenderProposalQuickActions ( const cli::agent::ChatMessage msg,
int  index 
)
private

◆ RenderInputBox()

◆ HandleAgentResponse()

void yaze::editor::AgentChatWidget::HandleAgentResponse ( const absl::StatusOr< cli::agent::ChatMessage > &  response)
private

◆ CountKnownProposals()

int yaze::editor::AgentChatWidget::CountKnownProposals ( ) const
private

Definition at line 352 of file agent_chat_widget.cc.

References agent_service_, and yaze::cli::agent::ConversationalAgentService::GetHistory().

Referenced by EnsureHistoryLoaded(), and HandleAgentResponse().

Here is the call graph for this function:

◆ FocusProposalDrawer()

void yaze::editor::AgentChatWidget::FocusProposalDrawer ( const std::string &  proposal_id)
private

◆ NotifyProposalCreated()

void yaze::editor::AgentChatWidget::NotifyProposalCreated ( const cli::agent::ChatMessage msg,
int  new_total_proposals 
)
private

Definition at line 375 of file agent_chat_widget.cc.

References FocusProposalDrawer(), ICON_MD_PREVIEW, yaze::editor::kSuccess, last_proposal_count_, yaze::editor::ToastManager::Show(), and toast_manager_.

Referenced by HandleAgentResponse().

Here is the call graph for this function:

◆ RenderCollaborationPanel()

void yaze::editor::AgentChatWidget::RenderCollaborationPanel ( )
private

Definition at line 1089 of file agent_chat_widget.cc.

References yaze::editor::AgentChatWidget::CollaborationState::active, ApplyCollaborationSession(), collaboration_callbacks_, collaboration_state_, collaboration_status_color_, yaze::editor::AgentChatWidget::CollaborationCallbacks::host_session, ICON_MD_ACCESS_TIME, ICON_MD_ADD_CIRCLE, ICON_MD_CANCEL, ICON_MD_CHECK_CIRCLE, ICON_MD_CLOUD, ICON_MD_CONTENT_COPY, ICON_MD_FOLDER, ICON_MD_INFO, ICON_MD_KEY, ICON_MD_LABEL, ICON_MD_LINK, ICON_MD_LOGIN, ICON_MD_LOGOUT, ICON_MD_MEETING_ROOM, ICON_MD_PEOPLE, ICON_MD_REFRESH, ICON_MD_ROCKET_LAUNCH, ICON_MD_SETTINGS_ETHERNET, ICON_MD_WIFI, join_code_buffer_, yaze::editor::AgentChatWidget::CollaborationCallbacks::join_session, yaze::editor::kError, yaze::editor::kInfo, kLocal, kNetwork, yaze::editor::kSuccess, yaze::editor::kWarning, yaze::editor::AgentChatWidget::CollaborationState::last_synced, yaze::editor::AgentChatWidget::CollaborationCallbacks::leave_session, MarkHistoryDirty(), yaze::editor::AgentChatWidget::CollaborationState::mode, yaze::editor::AgentChatWidget::CollaborationState::participants, yaze::editor::AgentChatWidget::CollaborationCallbacks::refresh_session, RefreshCollaboration(), yaze::editor::AgentChatWidget::CollaborationState::server_url, server_url_buffer_, yaze::editor::AgentChatWidget::CollaborationState::session_id, yaze::editor::AgentChatWidget::CollaborationState::session_name, session_name_buffer_, yaze::editor::ToastManager::Show(), and toast_manager_.

Referenced by Draw().

Here is the call graph for this function:

◆ RenderMultimodalPanel()

void yaze::editor::AgentChatWidget::RenderMultimodalPanel ( )
private

◆ RenderAutomationPanel()

◆ RenderAgentConfigPanel()

◆ RenderZ3EDCommandPanel()

◆ RenderRomSyncPanel()

◆ RenderProposalManagerPanel()

◆ RenderHarnessPanel()

◆ RenderSystemPromptEditor()

◆ RenderFileEditorTabs()

◆ RefreshCollaboration()

◆ ApplyCollaborationSession()

◆ MarkHistoryDirty()

void yaze::editor::AgentChatWidget::MarkHistoryDirty ( )
private

Definition at line 1769 of file agent_chat_widget.cc.

References history_dirty_, last_persist_time_, and PersistHistory().

Referenced by CaptureSelectedRegion(), RefreshCollaboration(), RenderCollaborationPanel(), and RenderMultimodalPanel().

Here is the call graph for this function:

◆ PollSharedHistory()

◆ HandleRomSyncReceived()

void yaze::editor::AgentChatWidget::HandleRomSyncReceived ( const std::string &  diff_data,
const std::string &  rom_hash 
)
private

◆ HandleSnapshotReceived()

void yaze::editor::AgentChatWidget::HandleSnapshotReceived ( const std::string &  snapshot_data,
const std::string &  snapshot_type 
)
private

◆ HandleProposalReceived()

void yaze::editor::AgentChatWidget::HandleProposalReceived ( const std::string &  proposal_data)
private

◆ SyncHistoryToPopup()

void yaze::editor::AgentChatWidget::SyncHistoryToPopup ( )
private

◆ SaveChatSession()

void yaze::editor::AgentChatWidget::SaveChatSession ( const ChatSession session)
private

◆ LoadChatSession()

void yaze::editor::AgentChatWidget::LoadChatSession ( const std::string &  session_id)
private

◆ DeleteChatSession()

void yaze::editor::AgentChatWidget::DeleteChatSession ( const std::string &  session_id)
private

◆ GetSavedSessions()

std::vector< std::string > yaze::editor::AgentChatWidget::GetSavedSessions ( )
private

◆ GetSessionsDirectory()

std::filesystem::path yaze::editor::AgentChatWidget::GetSessionsDirectory ( )
private

Member Data Documentation

◆ waiting_for_response_

bool yaze::editor::AgentChatWidget::waiting_for_response_ = false
private

Definition at line 306 of file agent_chat_widget.h.

Referenced by RenderInputBox().

◆ thinking_animation_

float yaze::editor::AgentChatWidget::thinking_animation_ = 0.0f
private

Definition at line 307 of file agent_chat_widget.h.

◆ pending_message_

std::string yaze::editor::AgentChatWidget::pending_message_
private

Definition at line 308 of file agent_chat_widget.h.

Referenced by RenderInputBox().

◆ chat_sessions_

std::vector<ChatSession> yaze::editor::AgentChatWidget::chat_sessions_
private

Definition at line 333 of file agent_chat_widget.h.

Referenced by AgentChatWidget(), and Draw().

◆ active_session_index_

int yaze::editor::AgentChatWidget::active_session_index_ = 0
private

Definition at line 334 of file agent_chat_widget.h.

Referenced by AgentChatWidget(), and Draw().

◆ agent_service_

◆ input_buffer_

char yaze::editor::AgentChatWidget::input_buffer_[1024]
private

Definition at line 338 of file agent_chat_widget.h.

Referenced by AgentChatWidget(), and RenderInputBox().

◆ active_

bool yaze::editor::AgentChatWidget::active_ = false
private

Definition at line 339 of file agent_chat_widget.h.

Referenced by active(), Draw(), is_active(), and set_active().

◆ title_

std::string yaze::editor::AgentChatWidget::title_
private

Definition at line 340 of file agent_chat_widget.h.

Referenced by AgentChatWidget(), and Draw().

◆ last_history_size_

size_t yaze::editor::AgentChatWidget::last_history_size_ = 0
private

Definition at line 341 of file agent_chat_widget.h.

Referenced by EnsureHistoryLoaded(), PollSharedHistory(), and RenderHistory().

◆ history_loaded_

bool yaze::editor::AgentChatWidget::history_loaded_ = false
private

◆ history_dirty_

bool yaze::editor::AgentChatWidget::history_dirty_ = false
private

◆ history_supported_

bool yaze::editor::AgentChatWidget::history_supported_ = true
private

Definition at line 344 of file agent_chat_widget.h.

Referenced by AgentChatWidget(), EnsureHistoryLoaded(), and PersistHistory().

◆ history_warning_displayed_

bool yaze::editor::AgentChatWidget::history_warning_displayed_ = false
private

Definition at line 345 of file agent_chat_widget.h.

Referenced by EnsureHistoryLoaded(), and PersistHistory().

◆ history_path_

std::filesystem::path yaze::editor::AgentChatWidget::history_path_
private

◆ last_proposal_count_

int yaze::editor::AgentChatWidget::last_proposal_count_ = 0
private

◆ toast_manager_

◆ proposal_drawer_

ProposalDrawer* yaze::editor::AgentChatWidget::proposal_drawer_ = nullptr
private

Definition at line 349 of file agent_chat_widget.h.

Referenced by FocusProposalDrawer(), RenderInputBox(), and SetProposalDrawer().

◆ chat_history_popup_

AgentChatHistoryPopup* yaze::editor::AgentChatWidget::chat_history_popup_ = nullptr
private

Definition at line 350 of file agent_chat_widget.h.

Referenced by SetChatHistoryPopup(), and SyncHistoryToPopup().

◆ pending_focus_proposal_id_

std::string yaze::editor::AgentChatWidget::pending_focus_proposal_id_
private

Definition at line 351 of file agent_chat_widget.h.

Referenced by FocusProposalDrawer(), RenderHarnessPanel(), and SetProposalDrawer().

◆ last_persist_time_

absl::Time yaze::editor::AgentChatWidget::last_persist_time_ = absl::InfinitePast()
private

Definition at line 352 of file agent_chat_widget.h.

Referenced by EnsureHistoryLoaded(), MarkHistoryDirty(), and PersistHistory().

◆ collaboration_state_

◆ multimodal_state_

◆ automation_state_

AutomationState yaze::editor::AgentChatWidget::automation_state_
private

◆ agent_config_

AgentConfigState yaze::editor::AgentChatWidget::agent_config_
private

◆ rom_sync_state_

RomSyncState yaze::editor::AgentChatWidget::rom_sync_state_
private

Definition at line 359 of file agent_chat_widget.h.

Referenced by Draw(), and RenderRomSyncPanel().

◆ z3ed_command_state_

Z3EDCommandState yaze::editor::AgentChatWidget::z3ed_command_state_
private

Definition at line 360 of file agent_chat_widget.h.

Referenced by RenderZ3EDCommandPanel().

◆ collaboration_callbacks_

CollaborationCallbacks yaze::editor::AgentChatWidget::collaboration_callbacks_
private

◆ multimodal_callbacks_

MultimodalCallbacks yaze::editor::AgentChatWidget::multimodal_callbacks_
private

◆ automation_callbacks_

AutomationCallbacks yaze::editor::AgentChatWidget::automation_callbacks_
private

◆ z3ed_callbacks_

Z3EDCommandCallbacks yaze::editor::AgentChatWidget::z3ed_callbacks_
private

◆ rom_sync_callbacks_

RomSyncCallbacks yaze::editor::AgentChatWidget::rom_sync_callbacks_
private

Definition at line 367 of file agent_chat_widget.h.

Referenced by RenderRomSyncPanel(), and SetRomSyncCallbacks().

◆ session_name_buffer_

char yaze::editor::AgentChatWidget::session_name_buffer_[64] = {}
private

Definition at line 370 of file agent_chat_widget.h.

Referenced by RenderCollaborationPanel().

◆ join_code_buffer_

char yaze::editor::AgentChatWidget::join_code_buffer_[64] = {}
private

Definition at line 371 of file agent_chat_widget.h.

Referenced by RefreshCollaboration(), and RenderCollaborationPanel().

◆ server_url_buffer_

char yaze::editor::AgentChatWidget::server_url_buffer_[256] = "ws://localhost:8765"
private

Definition at line 372 of file agent_chat_widget.h.

Referenced by RenderCollaborationPanel().

◆ multimodal_prompt_buffer_

char yaze::editor::AgentChatWidget::multimodal_prompt_buffer_[256] = {}
private

Definition at line 373 of file agent_chat_widget.h.

Referenced by RenderInputBox(), and RenderMultimodalPanel().

◆ last_collaboration_action_

absl::Time yaze::editor::AgentChatWidget::last_collaboration_action_ = absl::InfinitePast()
private

Definition at line 376 of file agent_chat_widget.h.

Referenced by ApplyCollaborationSession().

◆ last_shared_history_poll_

absl::Time yaze::editor::AgentChatWidget::last_shared_history_poll_ = absl::InfinitePast()
private

Definition at line 377 of file agent_chat_widget.h.

Referenced by PollSharedHistory(), and SwitchToSharedHistory().

◆ last_known_history_size_

size_t yaze::editor::AgentChatWidget::last_known_history_size_ = 0
private

Definition at line 378 of file agent_chat_widget.h.

Referenced by PollSharedHistory(), and SwitchToSharedHistory().

◆ active_tab_

int yaze::editor::AgentChatWidget::active_tab_ = 0
private

Definition at line 381 of file agent_chat_widget.h.

◆ show_agent_config_

bool yaze::editor::AgentChatWidget::show_agent_config_ = false
private

Definition at line 382 of file agent_chat_widget.h.

◆ prompt_mode_

cli::agent::PromptMode yaze::editor::AgentChatWidget::prompt_mode_ = cli::agent::PromptMode::kStandard
private

Definition at line 383 of file agent_chat_widget.h.

Referenced by GetPromptMode(), and SetPromptMode().

◆ show_z3ed_commands_

bool yaze::editor::AgentChatWidget::show_z3ed_commands_ = false
private

Definition at line 384 of file agent_chat_widget.h.

◆ show_rom_sync_

bool yaze::editor::AgentChatWidget::show_rom_sync_ = false
private

Definition at line 385 of file agent_chat_widget.h.

◆ show_snapshot_preview_

bool yaze::editor::AgentChatWidget::show_snapshot_preview_ = false
private

Definition at line 386 of file agent_chat_widget.h.

◆ snapshot_preview_data_

std::vector<uint8_t> yaze::editor::AgentChatWidget::snapshot_preview_data_
private

Definition at line 387 of file agent_chat_widget.h.

◆ collaboration_status_color_

ImVec4 yaze::editor::AgentChatWidget::collaboration_status_color_ = ImVec4(0.6f, 0.6f, 0.6f, 1.0f)
private

Definition at line 390 of file agent_chat_widget.h.

Referenced by Draw(), and RenderCollaborationPanel().

◆ open_files_

std::vector<FileEditorTab> yaze::editor::AgentChatWidget::open_files_
private

◆ active_file_tab_

int yaze::editor::AgentChatWidget::active_file_tab_ = -1
private

The documentation for this class was generated from the following files: