Namespaces | |
namespace | anonymous_namespace{conversation_test.cc} |
namespace | anonymous_namespace{conversational_agent_service.cc} |
namespace | anonymous_namespace{enhanced_tui.cc} |
namespace | anonymous_namespace{general_commands.cc} |
namespace | anonymous_namespace{learned_knowledge_service.cc} |
namespace | anonymous_namespace{proposal_executor.cc} |
namespace | anonymous_namespace{simple_chat_session.cc} |
namespace | anonymous_namespace{todo_manager.cc} |
namespace | anonymous_namespace{tool_dispatcher.cc} |
namespace | anonymous_namespace{vim_mode.cc} |
Classes | |
class | AdvancedRouter |
Advanced routing system for agent tool responses. More... | |
struct | AgentConfig |
class | AgentPretraining |
Pre-training system for AI agents. More... | |
struct | ChatMessage |
class | ConversationalAgentService |
class | EnhancedTUI |
Enhanced Terminal User Interface for z3ed CLI. More... | |
class | LearnedKnowledgeService |
Manages persistent learned information across agent sessions. More... | |
class | PromptManager |
struct | ProposalCreationRequest |
struct | ProposalCreationResult |
class | SimpleChatSession |
Simple text-based chat session for AI agent interaction. More... | |
struct | TodoItem |
Represents a single TODO item for task management. More... | |
class | TodoManager |
Manages TODO lists for z3ed agent task execution. More... | |
class | ToolDispatcher |
class | TUIAutocomplete |
Advanced autocomplete system for the TUI. More... | |
class | TUICommandHandler |
Base class for TUI-integrated command handlers. More... | |
struct | TUIConfig |
Configuration for the enhanced TUI. More... | |
struct | TUIStyle |
Visual styling configuration for TUI components. More... | |
class | VimMode |
Vim-style line editing for z3ed CLI chat. More... | |
Functions | |
absl::Status | HandlePlanCommand (const std::vector< std::string > &args) |
absl::Status | HandleTestCommand (const std::vector< std::string > &args) |
absl::Status | HandleTestConversationCommand (const std::vector< std::string > &args) |
absl::Status | HandleGuiCommand (const std::vector< std::string > &args) |
absl::Status | HandleLearnCommand (const std::vector< std::string > &args) |
absl::Status | HandleListCommand () |
absl::Status | HandleDescribeCommand (const std::vector< std::string > &args) |
absl::Status | HandleResourceListCommand (const std::vector< std::string > &args, Rom *rom) |
absl::Status | HandleResourceSearchCommand (const std::vector< std::string > &args, Rom *rom) |
absl::Status | HandleDungeonListSpritesCommand (const std::vector< std::string > &args, Rom *rom) |
absl::Status | HandleDungeonDescribeRoomCommand (const std::vector< std::string > &args, Rom *rom) |
absl::Status | HandleOverworldFindTileCommand (const std::vector< std::string > &args, Rom *rom) |
absl::Status | HandleOverworldDescribeMapCommand (const std::vector< std::string > &args, Rom *rom) |
absl::Status | HandleOverworldListWarpsCommand (const std::vector< std::string > &args, Rom *rom) |
std::string | HarnessAddress (const std::string &host, int port) |
std::string | JsonEscape (absl::string_view value) |
std::string | YamlQuote (absl::string_view value) |
std::string | FormatOptionalTime (const std::optional< absl::Time > &time) |
std::string | OptionalTimeToIso (const std::optional< absl::Time > &time) |
std::string | OptionalTimeToJson (const std::optional< absl::Time > &time) |
std::string | OptionalTimeToYaml (const std::optional< absl::Time > &time) |
const char * | TestRunStatusToString (TestRunStatus status) |
bool | IsTerminalStatus (TestRunStatus status) |
std::optional< TestRunStatus > | ParseStatusFilter (absl::string_view value) |
std::optional< WidgetTypeFilter > | ParseWidgetTypeFilter (absl::string_view value) |
absl::Status | HandleRunCommand (const std::vector< std::string > &arg_vec, Rom &rom) |
absl::Status | HandleDiffCommand (Rom &rom, const std::vector< std::string > &args) |
absl::Status | HandleCommitCommand (Rom &rom) |
absl::Status | HandleRevertCommand (Rom &rom) |
absl::Status | HandleChatCommand (Rom &rom) |
absl::Status | HandleSimpleChatCommand (const std::vector< std::string > &arg_vec, Rom *rom, bool quiet) |
absl::Status | HandleAcceptCommand (const std::vector< std::string > &arg_vec, Rom &rom) |
std::string | TrimWhitespace (absl::string_view value) |
bool | IsInteractiveInput () |
std::string | PromptWithDefault (const std::string &prompt, const std::string &default_value, bool allow_empty) |
std::string | PromptRequired (const std::string &prompt, const std::string &default_value) |
int | PromptInt (const std::string &prompt, int default_value, int min_value) |
bool | PromptYesNo (const std::string &prompt, bool default_value) |
std::vector< std::string > | ParseCommaSeparated (absl::string_view input) |
bool | ParseKeyValueEntry (const std::string &input, std::string *key, std::string *value) |
std::string | TUIThemeToString (TUITheme theme) |
absl::StatusOr< ProposalCreationResult > | CreateProposalFromAgentResponse (const ProposalCreationRequest &request) |
|
strong |
Enumerator | |
---|---|
kFriendly | |
kCompact | |
kMarkdown | |
kJson |
Definition at line 56 of file conversational_agent_service.h.
|
strong |
Visual themes for the enhanced TUI.
Enumerator | |
---|---|
kDefault | |
kDark | |
kLight | |
kZelda | |
kCyberpunk |
Definition at line 24 of file enhanced_tui.h.
|
strong |
Different UI components in the enhanced TUI.
Enumerator | |
---|---|
kHeader | |
kCommandPalette | |
kChatArea | |
kToolOutput | |
kStatusBar | |
kSidebar | |
kHelpPanel | |
kHistoryPanel |
Definition at line 36 of file enhanced_tui.h.
|
strong |
Enumerator | |
---|---|
kStandard | |
kOracleOfSecrets | |
kCustom |
Definition at line 11 of file prompt_manager.h.
|
strong |
Definition at line 15 of file tool_dispatcher.h.
|
strong |
Vim editing modes.
Enumerator | |
---|---|
NORMAL | |
INSERT | |
VISUAL | |
COMMAND_LINE |
Definition at line 16 of file vim_mode.h.
absl::Status yaze::cli::agent::HandlePlanCommand | ( | const std::vector< std::string > & | args | ) |
Definition at line 242 of file general_commands.cc.
References yaze::cli::CreateAIService(), yaze::cli::Tile16ProposalGenerator::GenerateFromCommands(), yaze::cli::ProposalRegistry::Instance(), and yaze::cli::Tile16ProposalGenerator::SaveProposal().
Referenced by yaze::cli::handlers::HandleAgentCommand().
absl::Status yaze::cli::agent::HandleTestCommand | ( | const std::vector< std::string > & | args | ) |
Definition at line 589 of file test_commands.cc.
Referenced by yaze::cli::handlers::HandleAgentCommand().
absl::Status yaze::cli::agent::HandleTestConversationCommand | ( | const std::vector< std::string > & | args | ) |
Definition at line 350 of file conversation_test.cc.
References yaze::core::YazeProject::InitializeEmbeddedLabels(), yaze::core::ResourceLabelManager::labels_, yaze::core::ResourceLabelManager::labels_loaded_, yaze::Rom::resource_label(), yaze::core::YazeProject::resource_labels, yaze::cli::agent::ConversationalAgentService::SetRomContext(), yaze::Rom::title(), and yaze::core::YazeProject::use_embedded_labels.
Referenced by yaze::cli::handlers::HandleAgentCommand().
absl::Status yaze::cli::agent::HandleGuiCommand | ( | const std::vector< std::string > & | args | ) |
Referenced by yaze::cli::handlers::HandleAgentCommand().
absl::Status yaze::cli::agent::HandleLearnCommand | ( | const std::vector< std::string > & | args | ) |
Definition at line 402 of file general_commands.cc.
References yaze::cli::agent::LearnedKnowledgeService::ClearAll(), yaze::cli::agent::LearnedKnowledgeService::ExportToJSON(), yaze::cli::agent::LearnedKnowledgeService::GetAllPreferences(), yaze::cli::agent::LearnedKnowledgeService::GetAllProjects(), yaze::cli::agent::LearnedKnowledgeService::GetPreference(), yaze::cli::agent::LearnedKnowledgeService::GetRecentMemories(), yaze::cli::agent::LearnedKnowledgeService::GetStats(), yaze::cli::agent::LearnedKnowledgeService::ImportFromJSON(), yaze::cli::agent::LearnedKnowledgeService::Initialize(), yaze::cli::agent::LearnedKnowledgeService::Stats::preference_count, and yaze::cli::agent::LearnedKnowledgeService::SetPreference().
Referenced by yaze::cli::handlers::HandleAgentCommand().
absl::Status yaze::cli::agent::HandleListCommand | ( | ) |
Definition at line 566 of file general_commands.cc.
References yaze::cli::ProposalRegistry::Instance(), yaze::cli::ProposalRegistry::kAccepted, yaze::cli::ProposalRegistry::kPending, and yaze::cli::ProposalRegistry::kRejected.
Referenced by yaze::cli::handlers::HandleAgentCommand().
absl::Status yaze::cli::agent::HandleDescribeCommand | ( | const std::vector< std::string > & | args | ) |
Definition at line 633 of file general_commands.cc.
References ASSIGN_OR_RETURN, and yaze::cli::ResourceCatalog::Instance().
Referenced by yaze::cli::handlers::HandleAgentCommand().
absl::Status yaze::cli::agent::HandleResourceListCommand | ( | const std::vector< std::string > & | args, |
Rom * | rom | ||
) |
Definition at line 34 of file agent.cc.
References yaze::cli::resources::CommandHandler::Run().
Referenced by yaze::cli::handlers::HandleAgentCommand().
absl::Status yaze::cli::agent::HandleResourceSearchCommand | ( | const std::vector< std::string > & | args, |
Rom * | rom | ||
) |
Definition at line 39 of file agent.cc.
References yaze::cli::resources::CommandHandler::Run().
Referenced by yaze::cli::handlers::HandleAgentCommand().
absl::Status yaze::cli::agent::HandleDungeonListSpritesCommand | ( | const std::vector< std::string > & | args, |
Rom * | rom | ||
) |
Definition at line 44 of file agent.cc.
References yaze::cli::resources::CommandHandler::Run().
Referenced by yaze::cli::handlers::HandleAgentCommand().
absl::Status yaze::cli::agent::HandleDungeonDescribeRoomCommand | ( | const std::vector< std::string > & | args, |
Rom * | rom | ||
) |
Definition at line 49 of file agent.cc.
References yaze::cli::resources::CommandHandler::Run().
Referenced by yaze::cli::handlers::HandleAgentCommand().
absl::Status yaze::cli::agent::HandleOverworldFindTileCommand | ( | const std::vector< std::string > & | args, |
Rom * | rom | ||
) |
Definition at line 54 of file agent.cc.
References yaze::cli::resources::CommandHandler::Run().
Referenced by yaze::cli::handlers::HandleAgentCommand().
absl::Status yaze::cli::agent::HandleOverworldDescribeMapCommand | ( | const std::vector< std::string > & | args, |
Rom * | rom | ||
) |
Definition at line 59 of file agent.cc.
References yaze::cli::resources::CommandHandler::Run().
Referenced by yaze::cli::handlers::HandleAgentCommand().
absl::Status yaze::cli::agent::HandleOverworldListWarpsCommand | ( | const std::vector< std::string > & | args, |
Rom * | rom | ||
) |
Definition at line 64 of file agent.cc.
References yaze::cli::resources::CommandHandler::Run().
Referenced by yaze::cli::handlers::HandleAgentCommand().
std::string yaze::cli::agent::HarnessAddress | ( | const std::string & | host, |
int | port | ||
) |
std::string yaze::cli::agent::JsonEscape | ( | absl::string_view | value | ) |
Definition at line 16 of file common.cc.
Referenced by OptionalTimeToJson().
std::string yaze::cli::agent::YamlQuote | ( | absl::string_view | value | ) |
std::string yaze::cli::agent::FormatOptionalTime | ( | const std::optional< absl::Time > & | time | ) |
std::string yaze::cli::agent::OptionalTimeToIso | ( | const std::optional< absl::Time > & | time | ) |
Definition at line 66 of file common.cc.
Referenced by OptionalTimeToJson(), and OptionalTimeToYaml().
std::string yaze::cli::agent::OptionalTimeToJson | ( | const std::optional< absl::Time > & | time | ) |
Definition at line 73 of file common.cc.
References JsonEscape(), and OptionalTimeToIso().
std::string yaze::cli::agent::OptionalTimeToYaml | ( | const std::optional< absl::Time > & | time | ) |
Definition at line 81 of file common.cc.
References OptionalTimeToIso().
const char * yaze::cli::agent::TestRunStatusToString | ( | TestRunStatus | status | ) |
Definition at line 89 of file common.cc.
References yaze::cli::kFailed, yaze::cli::kPassed, yaze::cli::kQueued, yaze::cli::kRunning, yaze::cli::kTimeout, and yaze::cli::kUnknown.
bool yaze::cli::agent::IsTerminalStatus | ( | TestRunStatus | status | ) |
Definition at line 107 of file common.cc.
References yaze::cli::kFailed, yaze::cli::kPassed, yaze::cli::kQueued, yaze::cli::kRunning, yaze::cli::kTimeout, and yaze::cli::kUnknown.
std::optional< TestRunStatus > yaze::cli::agent::ParseStatusFilter | ( | absl::string_view | value | ) |
Definition at line 121 of file common.cc.
References yaze::cli::kFailed, yaze::cli::kPassed, yaze::cli::kQueued, yaze::cli::kRunning, yaze::cli::kTimeout, and yaze::cli::kUnknown.
std::optional< WidgetTypeFilter > yaze::cli::agent::ParseWidgetTypeFilter | ( | absl::string_view | value | ) |
Definition at line 132 of file common.cc.
References yaze::cli::kAll, yaze::cli::kButton, yaze::cli::kCanvas, yaze::cli::kCheckbox, yaze::cli::kInput, yaze::cli::kMenu, yaze::cli::kOther, yaze::cli::kSelectable, yaze::cli::kSlider, yaze::cli::kTab, and yaze::cli::kUnspecified.
absl::Status yaze::cli::agent::HandleRunCommand | ( | const std::vector< std::string > & | arg_vec, |
Rom & | rom | ||
) |
Definition at line 184 of file general_commands.cc.
References yaze::cli::agent::ProposalCreationRequest::ai_provider, ASSIGN_OR_RETURN, yaze::cli::AgentResponse::commands, yaze::cli::CreateAIService(), CreateProposalFromAgentResponse(), yaze::cli::agent::ProposalCreationRequest::prompt, yaze::cli::agent::ProposalCreationRequest::response, RETURN_IF_ERROR, yaze::cli::agent::ProposalCreationRequest::rom, and yaze::cli::agent::ProposalCreationRequest::sandbox_label.
absl::Status yaze::cli::agent::HandleDiffCommand | ( | Rom & | rom, |
const std::vector< std::string > & | args | ||
) |
Definition at line 285 of file general_commands.cc.
References yaze::cli::RomSandboxManager::ActiveSandbox(), yaze::cli::ProposalRegistry::Instance(), yaze::cli::RomSandboxManager::Instance(), yaze::Rom::is_loaded(), yaze::cli::ProposalRegistry::kAccepted, yaze::cli::ProposalRegistry::kPending, and yaze::cli::ProposalRegistry::kRejected.
absl::Status yaze::cli::agent::HandleCommitCommand | ( | Rom & | rom | ) |
Definition at line 607 of file general_commands.cc.
References yaze::Rom::is_loaded(), and yaze::Rom::SaveToFile().
absl::Status yaze::cli::agent::HandleRevertCommand | ( | Rom & | rom | ) |
Definition at line 620 of file general_commands.cc.
References yaze::Rom::filename(), yaze::Rom::is_loaded(), and yaze::Rom::LoadFromFile().
absl::Status yaze::cli::agent::HandleChatCommand | ( | Rom & | rom | ) |
Definition at line 690 of file general_commands.cc.
References RETURN_IF_ERROR, and yaze::cli::tui::ChatTUI::Run().
absl::Status yaze::cli::agent::HandleSimpleChatCommand | ( | const std::vector< std::string > & | arg_vec, |
Rom * | rom, | ||
bool | quiet | ||
) |
Definition at line 701 of file general_commands.cc.
References yaze::cli::agent::AgentConfig::enable_vim_mode, kCompact, kFriendly, kJson, kMarkdown, yaze::cli::agent::AgentConfig::output_format, RETURN_IF_ERROR, yaze::cli::agent::SimpleChatSession::RunInteractive(), yaze::cli::agent::SimpleChatSession::SendAndWaitForResponse(), yaze::cli::agent::SimpleChatSession::SetConfig(), yaze::cli::agent::SimpleChatSession::SetRomContext(), and yaze::cli::agent::AgentConfig::verbose.
absl::Status yaze::cli::agent::HandleAcceptCommand | ( | const std::vector< std::string > & | arg_vec, |
Rom & | rom | ||
) |
Definition at line 808 of file general_commands.cc.
References ASSIGN_OR_RETURN, yaze::RomLoadOptions::CliDefaults(), yaze::Rom::Expand(), yaze::Rom::filename(), yaze::cli::ProposalRegistry::Instance(), yaze::cli::RomSandboxManager::Instance(), yaze::cli::ProposalRegistry::kAccepted, yaze::Rom::LoadFromFile(), yaze::cli::RomSandboxManager::RemoveSandbox(), RETURN_IF_ERROR, yaze::Rom::SaveToFile(), yaze::Rom::size(), yaze::Rom::vector(), and yaze::Rom::WriteVector().
std::string yaze::cli::agent::TrimWhitespace | ( | absl::string_view | value | ) |
Definition at line 22 of file test_common.cc.
Referenced by yaze::cli::agent::anonymous_namespace{conversational_agent_service.cc}::CreateMessage(), ParseCommaSeparated(), ParseKeyValueEntry(), PromptWithDefault(), and PromptYesNo().
bool yaze::cli::agent::IsInteractiveInput | ( | ) |
Definition at line 26 of file test_common.cc.
std::string yaze::cli::agent::PromptWithDefault | ( | const std::string & | prompt, |
const std::string & | default_value, | ||
bool | allow_empty | ||
) |
Definition at line 34 of file test_common.cc.
References TrimWhitespace().
Referenced by PromptInt(), and PromptRequired().
std::string yaze::cli::agent::PromptRequired | ( | const std::string & | prompt, |
const std::string & | default_value | ||
) |
Definition at line 63 of file test_common.cc.
References PromptWithDefault().
int yaze::cli::agent::PromptInt | ( | const std::string & | prompt, |
int | default_value, | ||
int | min_value | ||
) |
Definition at line 68 of file test_common.cc.
References PromptWithDefault().
bool yaze::cli::agent::PromptYesNo | ( | const std::string & | prompt, |
bool | default_value | ||
) |
Definition at line 83 of file test_common.cc.
References TrimWhitespace().
std::vector< std::string > yaze::cli::agent::ParseCommaSeparated | ( | absl::string_view | input | ) |
Definition at line 107 of file test_common.cc.
References TrimWhitespace().
bool yaze::cli::agent::ParseKeyValueEntry | ( | const std::string & | input, |
std::string * | key, | ||
std::string * | value | ||
) |
Definition at line 118 of file test_common.cc.
References equals(), and TrimWhitespace().
std::string yaze::cli::agent::TUIThemeToString | ( | TUITheme | theme | ) |
Definition at line 126 of file enhanced_tui.cc.
References kCyberpunk, kDark, kDefault, kLight, and kZelda.
Referenced by yaze::cli::agent::EnhancedTUI::DrawHeader().
absl::StatusOr< ProposalCreationResult > yaze::cli::agent::CreateProposalFromAgentResponse | ( | const ProposalCreationRequest & | request | ) |
Definition at line 37 of file proposal_executor.cc.
References yaze::cli::agent::ProposalCreationRequest::ai_provider, yaze::cli::Tile16ProposalGenerator::ApplyProposal(), ASSIGN_OR_RETURN, yaze::cli::agent::ProposalCreationResult::change_count, yaze::cli::AgentResponse::commands, yaze::cli::RomSandboxManager::CreateSandbox(), yaze::cli::agent::ProposalCreationResult::executed_commands, yaze::cli::Tile16ProposalGenerator::GenerateFromCommands(), yaze::cli::ProposalRegistry::Instance(), yaze::cli::RomSandboxManager::Instance(), yaze::Rom::is_loaded(), yaze::Rom::LoadFromFile(), yaze::cli::agent::ProposalCreationResult::metadata, yaze::cli::agent::ProposalCreationRequest::prompt, yaze::cli::agent::ProposalCreationResult::proposal_json_path, yaze::cli::AgentResponse::reasoning, yaze::cli::agent::ProposalCreationRequest::response, RETURN_IF_ERROR, yaze::cli::agent::ProposalCreationRequest::rom, yaze::cli::agent::ProposalCreationRequest::sandbox_label, yaze::cli::Tile16ProposalGenerator::SaveProposal(), yaze::Rom::SaveToFile(), yaze::cli::AgentResponse::text_response, and yaze::cli::AgentResponse::tool_calls.
Referenced by HandleRunCommand(), and yaze::cli::agent::ConversationalAgentService::SendMessage().