yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::cli::agent Namespace Reference

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...
 

Enumerations

enum class  AgentOutputFormat { kFriendly , kCompact , kMarkdown , kJson }
 
enum class  TUITheme {
  kDefault , kDark , kLight , kZelda ,
  kCyberpunk
}
 Visual themes for the enhanced TUI. More...
 
enum class  TUIComponent {
  kHeader , kCommandPalette , kChatArea , kToolOutput ,
  kStatusBar , kSidebar , kHelpPanel , kHistoryPanel
}
 Different UI components in the enhanced TUI. More...
 
enum class  PromptMode { kStandard , kOracleOfSecrets , kCustom }
 
enum class  ToolCallType {
  kUnknown , kResourceList , kResourceSearch , kDungeonListSprites ,
  kDungeonDescribeRoom , kDungeonExportRoom , kDungeonListObjects , kDungeonGetRoomTiles ,
  kDungeonSetRoomProperty , kOverworldFindTile , kOverworldDescribeMap , kOverworldListWarps ,
  kOverworldListSprites , kOverworldGetEntrance , kOverworldTileStats , kMessageList ,
  kMessageRead , kMessageSearch , kDialogueList , kDialogueRead ,
  kDialogueSearch , kGuiPlaceTile , kGuiClick , kGuiDiscover ,
  kGuiScreenshot , kMusicList , kMusicInfo , kMusicTracks ,
  kSpriteList , kSpriteProperties , kSpritePalette , kEmulatorStep ,
  kEmulatorRun , kEmulatorPause , kEmulatorReset , kEmulatorGetState ,
  kEmulatorSetBreakpoint , kEmulatorClearBreakpoint , kEmulatorListBreakpoints , kEmulatorReadMemory ,
  kEmulatorWriteMemory , kEmulatorGetRegisters , kEmulatorGetMetrics
}
 
enum class  VimModeType { NORMAL , INSERT , VISUAL , COMMAND_LINE }
 Vim editing modes. 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< TestRunStatusParseStatusFilter (absl::string_view value)
 
std::optional< WidgetTypeFilterParseWidgetTypeFilter (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< ProposalCreationResultCreateProposalFromAgentResponse (const ProposalCreationRequest &request)
 

Enumeration Type Documentation

◆ AgentOutputFormat

Enumerator
kFriendly 
kCompact 
kMarkdown 
kJson 

Definition at line 56 of file conversational_agent_service.h.

◆ TUITheme

enum class yaze::cli::agent::TUITheme
strong

Visual themes for the enhanced TUI.

Enumerator
kDefault 
kDark 
kLight 
kZelda 
kCyberpunk 

Definition at line 24 of file enhanced_tui.h.

◆ TUIComponent

enum class yaze::cli::agent::TUIComponent
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.

◆ PromptMode

enum class yaze::cli::agent::PromptMode
strong
Enumerator
kStandard 
kOracleOfSecrets 
kCustom 

Definition at line 11 of file prompt_manager.h.

◆ ToolCallType

enum class yaze::cli::agent::ToolCallType
strong
Enumerator
kUnknown 
kResourceList 
kResourceSearch 
kDungeonListSprites 
kDungeonDescribeRoom 
kDungeonExportRoom 
kDungeonListObjects 
kDungeonGetRoomTiles 
kDungeonSetRoomProperty 
kOverworldFindTile 
kOverworldDescribeMap 
kOverworldListWarps 
kOverworldListSprites 
kOverworldGetEntrance 
kOverworldTileStats 
kMessageList 
kMessageRead 
kMessageSearch 
kDialogueList 
kDialogueRead 
kDialogueSearch 
kGuiPlaceTile 
kGuiClick 
kGuiDiscover 
kGuiScreenshot 
kMusicList 
kMusicInfo 
kMusicTracks 
kSpriteList 
kSpriteProperties 
kSpritePalette 
kEmulatorStep 
kEmulatorRun 
kEmulatorPause 
kEmulatorReset 
kEmulatorGetState 
kEmulatorSetBreakpoint 
kEmulatorClearBreakpoint 
kEmulatorListBreakpoints 
kEmulatorReadMemory 
kEmulatorWriteMemory 
kEmulatorGetRegisters 
kEmulatorGetMetrics 

Definition at line 15 of file tool_dispatcher.h.

◆ VimModeType

enum class yaze::cli::agent::VimModeType
strong

Vim editing modes.

Enumerator
NORMAL 
INSERT 
VISUAL 
COMMAND_LINE 

Definition at line 16 of file vim_mode.h.

Function Documentation

◆ HandlePlanCommand()

absl::Status yaze::cli::agent::HandlePlanCommand ( const std::vector< std::string > &  args)

◆ HandleTestCommand()

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().

◆ HandleTestConversationCommand()

◆ HandleGuiCommand()

absl::Status yaze::cli::agent::HandleGuiCommand ( const std::vector< std::string > &  args)

◆ HandleLearnCommand()

◆ HandleListCommand()

absl::Status yaze::cli::agent::HandleListCommand ( )

◆ HandleDescribeCommand()

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().

Here is the call graph for this function:

◆ HandleResourceListCommand()

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().

Here is the call graph for this function:

◆ HandleResourceSearchCommand()

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().

Here is the call graph for this function:

◆ HandleDungeonListSpritesCommand()

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().

Here is the call graph for this function:

◆ HandleDungeonDescribeRoomCommand()

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().

Here is the call graph for this function:

◆ HandleOverworldFindTileCommand()

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().

Here is the call graph for this function:

◆ HandleOverworldDescribeMapCommand()

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().

Here is the call graph for this function:

◆ HandleOverworldListWarpsCommand()

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().

Here is the call graph for this function:

◆ HarnessAddress()

std::string yaze::cli::agent::HarnessAddress ( const std::string &  host,
int  port 
)

Definition at line 12 of file common.cc.

◆ JsonEscape()

std::string yaze::cli::agent::JsonEscape ( absl::string_view  value)

Definition at line 16 of file common.cc.

Referenced by OptionalTimeToJson().

◆ YamlQuote()

std::string yaze::cli::agent::YamlQuote ( absl::string_view  value)

Definition at line 53 of file common.cc.

◆ FormatOptionalTime()

std::string yaze::cli::agent::FormatOptionalTime ( const std::optional< absl::Time > &  time)

Definition at line 59 of file common.cc.

◆ OptionalTimeToIso()

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().

◆ OptionalTimeToJson()

std::string yaze::cli::agent::OptionalTimeToJson ( const std::optional< absl::Time > &  time)

Definition at line 73 of file common.cc.

References JsonEscape(), and OptionalTimeToIso().

Here is the call graph for this function:

◆ OptionalTimeToYaml()

std::string yaze::cli::agent::OptionalTimeToYaml ( const std::optional< absl::Time > &  time)

Definition at line 81 of file common.cc.

References OptionalTimeToIso().

Here is the call graph for this function:

◆ TestRunStatusToString()

const char * yaze::cli::agent::TestRunStatusToString ( TestRunStatus  status)

◆ IsTerminalStatus()

bool yaze::cli::agent::IsTerminalStatus ( TestRunStatus  status)

◆ ParseStatusFilter()

std::optional< TestRunStatus > yaze::cli::agent::ParseStatusFilter ( absl::string_view  value)

◆ ParseWidgetTypeFilter()

std::optional< WidgetTypeFilter > yaze::cli::agent::ParseWidgetTypeFilter ( absl::string_view  value)

◆ HandleRunCommand()

◆ HandleDiffCommand()

absl::Status yaze::cli::agent::HandleDiffCommand ( Rom rom,
const std::vector< std::string > &  args 
)

◆ HandleCommitCommand()

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().

Here is the call graph for this function:

◆ HandleRevertCommand()

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().

Here is the call graph for this function:

◆ HandleChatCommand()

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().

Here is the call graph for this function:

◆ HandleSimpleChatCommand()

◆ HandleAcceptCommand()

◆ TrimWhitespace()

std::string yaze::cli::agent::TrimWhitespace ( absl::string_view  value)

◆ IsInteractiveInput()

bool yaze::cli::agent::IsInteractiveInput ( )

Definition at line 26 of file test_common.cc.

◆ PromptWithDefault()

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().

Here is the call graph for this function:

◆ 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().

Here is the call graph for this function:

◆ PromptInt()

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().

Here is the call graph for this function:

◆ PromptYesNo()

bool yaze::cli::agent::PromptYesNo ( const std::string &  prompt,
bool  default_value 
)

Definition at line 83 of file test_common.cc.

References TrimWhitespace().

Here is the call graph for this function:

◆ ParseCommaSeparated()

std::vector< std::string > yaze::cli::agent::ParseCommaSeparated ( absl::string_view  input)

Definition at line 107 of file test_common.cc.

References TrimWhitespace().

Here is the call graph for this function:

◆ ParseKeyValueEntry()

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().

Here is the call graph for this function:

◆ TUIThemeToString()

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().

◆ CreateProposalFromAgentResponse()