1#ifndef YAZE_APP_EDITOR_AGENT_AGENT_STATE_H_
2#define YAZE_APP_EDITOR_AGENT_AGENT_STATE_H_
10#include "absl/status/status.h"
11#include "absl/status/statusor.h"
12#include "absl/time/time.h"
13#include "imgui/imgui.h"
458 std::function<absl::StatusOr<SessionContext>(
const std::string&)>
460 std::function<absl::StatusOr<SessionContext>(
const std::string&)>
471 std::function<absl::Status(
const std::filesystem::path&,
const std::string&)>
491 std::function<absl::StatusOr<std::string>(
const std::string&)>
493 std::function<absl::StatusOr<std::string>(
const std::string&)>
diff_proposal;
504 std::function<absl::Status(
const std::string&,
const std::string&)>
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Modern C++ wrapper for Asar 65816 assembler integration.
Unified context for agent UI components.
const ProposalState & proposal_state() const
core::AsarWrapper * GetAsarWrapper() const
MultimodalState & multimodal_state()
bool HasAsarWrapper() const
Z3EDCommandState & z3ed_command_state()
project::YazeProject * GetProject() const
AutomationState & automation_state()
const MultimodalState & multimodal_state() const
AutomationState automation_state_
const Z3EDCommandState & z3ed_command_state() const
ProposalState proposal_state_
void SetProject(project::YazeProject *project)
std::function< void()> ChangeCallback
const AutomationState & automation_state() const
const KnowledgeState & knowledge_state() const
ToolExecutionState & tool_execution_state()
KnowledgeState & knowledge_state()
AgentConfigState & agent_config()
const CollaborationState & collaboration_state() const
RomSyncState & rom_sync_state()
CollaborationState & collaboration_state()
void AddChangeListener(ChangeCallback callback)
const PersonaProfile & persona_profile() const
ToolExecutionState tool_execution_state_
const ToolExecutionState & tool_execution_state() const
const RomSyncState & rom_sync_state() const
void SetAsarWrapper(core::AsarWrapper *asar_wrapper)
RomSyncState rom_sync_state_
CollaborationState collaboration_state_
Z3EDCommandState z3ed_command_state_
core::AsarWrapper * asar_wrapper_
const AgentConfigState & agent_config() const
PersonaProfile & persona_profile()
PersonaProfile persona_profile_
KnowledgeState knowledge_state_
MultimodalState multimodal_state_
project::YazeProject * project_
std::vector< ChangeCallback > change_listeners_
AgentConfigState agent_config_
const ChatState & chat_state() const
ProposalState & proposal_state()
ChainMode
Model chain mode for multi-model responses.
CollaborationMode
Collaboration mode for multi-user sessions.
CaptureMode
Screenshot capture mode.
Agent configuration state.
char openai_key_buffer[256]
std::vector< std::string > model_chain
std::string gemini_api_key
std::vector< ModelPreset > model_presets
char gemini_key_buffer[256]
char ollama_host_buffer[256]
std::vector< std::string > favorite_models
std::string openai_api_key
Callbacks for automation operations.
std::function< void()> show_active_tests
std::function< void(const std::string &) focus_proposal)
std::function< void()> open_harness_dashboard
std::function< void()> replay_last_plan
std::function< void()> poll_status
State for automation/test harness integration.
bool auto_focus_proposals
float refresh_interval_seconds
std::vector< AutomationTelemetry > recent_tests
std::string grpc_server_address
bool auto_refresh_enabled
absl::Time last_connection_attempt
Telemetry from automation/test harness.
Callbacks for chat operations.
std::function< void(const std::string &) switch_session)
std::function< void(const std::string &) send_message)
std::function< void()> persist_history
std::function< void()> clear_history
State for chat UI and history.
bool waiting_for_response
bool history_warning_displayed
std::string active_session_id
absl::Time last_persist_time
absl::Time last_shared_history_poll
size_t last_known_history_size
std::filesystem::path history_path
std::string pending_message
std::vector< std::string > participants
Callbacks for collaboration operations.
std::function< absl::StatusOr< SessionContext >(const std::string &) join_session)
std::function< absl::Status()> leave_session
std::function< absl::StatusOr< SessionContext >(const std::string &) host_session)
std::function< absl::StatusOr< SessionContext >()> refresh_session
State for collaborative editing sessions.
std::vector< std::string > participants
State for learned knowledge management (CLI integration)
bool context_injection_enabled
Model preset for quick switching.
std::vector< std::string > tags
Callbacks for multimodal/vision operations.
std::function< absl::Status(std::filesystem::path *) capture_snapshot)
std::function< absl::Status(const std::filesystem::path &, const std::string &) send_to_gemini)
State for multimodal/vision features.
ScreenshotPreviewState preview
char specific_window_buffer[128]
std::optional< std::filesystem::path > last_capture_path
RegionSelectionState region_selection
std::string status_message
User persona profile for personalized AI behavior.
std::vector< std::string > goals
Callbacks for proposal operations.
std::function< absl::Status(const std::string &) reject_proposal)
std::function< absl::Status(const std::string &) accept_proposal)
std::function< void(const std::string &) focus_proposal)
std::function< void()> refresh_proposals
State for proposal management.
std::string focused_proposal_id
std::string pending_focus_proposal_id
Region selection state for screenshot cropping.
Callbacks for ROM sync operations.
std::function< std::string()> get_rom_hash
std::function< absl::Status(const std::string &, const std::string &) apply_rom_diff)
std::function< absl::StatusOr< std::string >()> generate_rom_diff
State for ROM synchronization.
std::vector< std::string > pending_syncs
int sync_interval_seconds
std::string current_rom_hash
absl::Time last_sync_time
Preview state for captured screenshots.
Single tool execution entry for timeline display.
std::string result_preview
Callbacks for Z3ED command operations.
std::function< absl::StatusOr< std::vector< std::string > >()> list_proposals
std::function< absl::Status(const std::string &) reject_proposal)
std::function< absl::Status(const std::string &) run_agent_task)
std::function< absl::Status(const std::string &) accept_proposal)
std::function< absl::StatusOr< std::string >(const std::string &) diff_proposal)
std::function< absl::StatusOr< std::string >(const std::string &) plan_agent_task)
State for Z3ED command palette.
std::string command_output
char command_input_buffer[512]
Modern project structure with comprehensive settings consolidation.