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{dev_assist_agent.cc}
 
namespace  anonymous_namespace{enhanced_tui.cc}
 
namespace  anonymous_namespace{general_commands.cc}
 
namespace  anonymous_namespace{learned_knowledge_service.cc}
 
namespace  anonymous_namespace{rom_debug_agent.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}
 
namespace  tools
 

Classes

class  AdvancedRouter
 Advanced routing system for agent tool responses. More...
 
struct  AgentConfig
 
class  AgentContext
 Agent context for maintaining state across tool calls. More...
 
class  AgentPretraining
 Pre-training system for AI agents. More...
 
struct  ArgumentSchema
 Argument schema for a tool parameter. More...
 
struct  ChatMessage
 
class  ConversationalAgentService
 
class  DevAssistAgent
 Development Assistant Agent for AI-assisted yaze development. More...
 
class  Disassembler65816
 
struct  DungeonCache
 Cached dungeon data for efficient access. More...
 
class  EnhancedTUI
 Enhanced Terminal User Interface for z3ed CLI. More...
 
class  ExecutionTraceBuffer
 
struct  InstructionInfo
 
class  LearnedKnowledgeService
 Manages persistent learned information across agent sessions. More...
 
class  MemoryDebuggingExample
 Demonstrates memory debugging capabilities for AI agents. More...
 
class  MetaToolsDescribeHandler
 
class  MetaToolsListHandler
 
class  MetaToolsSearchHandler
 
struct  OverworldCache
 Cached overworld data for efficient access. More...
 
class  PromptManager
 
struct  ProposalCreationRequest
 
struct  ProposalCreationResult
 
class  RomDebugAgent
 ROM Debugging Agent for AI-assisted ROM hacking. More...
 
struct  RomEdit
 Record of a ROM edit operation. More...
 
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...
 
struct  ToolCallRecord
 Record of a tool call and its result. More...
 
struct  ToolDefinition
 Metadata describing a tool for the LLM. More...
 
class  ToolDispatcher
 
class  ToolRegistry
 Centralized registry for all agent tools. More...
 
struct  ToolSchema
 Complete tool schema for LLM documentation. More...
 
class  ToolSchemaRegistry
 Registry of all tool schemas. More...
 
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  AddressingMode {
  Implied , Accumulator , Immediate8 , Immediate16 ,
  ImmediateX , Absolute , AbsoluteLong , AbsoluteX ,
  AbsoluteXLong , AbsoluteY , Direct , DirectX ,
  DirectY , Indirect , IndirectX , IndirectY ,
  IndirectLong , IndirectLongY , StackRel , StackRelY ,
  Relative8 , Relative16 , BlockMove
}
 
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  VimModeType { NORMAL , INSERT , VISUAL , COMMAND_LINE }
 Vim editing modes. More...
 

Functions

absl::Status HandleRunCommand (const std::vector< std::string > &args, Rom &rom)
 
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 HandleLearnCommand (const std::vector< std::string > &args)
 
absl::Status HandleListCommand ()
 
absl::Status HandleDiffCommand (Rom &rom, const std::vector< std::string > &args)
 
absl::Status HandleCommitCommand (Rom &rom)
 
absl::Status HandleRevertCommand (Rom &rom)
 
absl::Status HandleAcceptCommand (const std::vector< std::string > &args, Rom &rom)
 
absl::Status HandleDescribeCommand (const std::vector< std::string > &args)
 
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)
 
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 &)
 

Enumeration Type Documentation

◆ AgentOutputFormat

Enumerator
kFriendly 
kCompact 
kMarkdown 
kJson 

Definition at line 80 of file conversational_agent_service.h.

◆ AddressingMode

Enumerator
Implied 
Accumulator 
Immediate8 
Immediate16 
ImmediateX 
Absolute 
AbsoluteLong 
AbsoluteX 
AbsoluteXLong 
AbsoluteY 
Direct 
DirectX 
DirectY 
Indirect 
IndirectX 
IndirectY 
IndirectLong 
IndirectLongY 
StackRel 
StackRelY 
Relative8 
Relative16 
BlockMove 

Definition at line 16 of file disassembler_65816.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.

◆ 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

◆ HandleRunCommand()

◆ 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 598 of file test_commands.cc.

◆ HandleTestConversationCommand()

◆ HandleLearnCommand()

◆ HandleListCommand()

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

◆ 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 619 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 632 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:

◆ HandleAcceptCommand()

◆ HandleDescribeCommand()

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

Definition at line 645 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:

◆ 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 54 of file common.cc.

◆ FormatOptionalTime()

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

Definition at line 60 of file common.cc.

◆ OptionalTimeToIso()

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

Definition at line 67 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 74 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 82 of file common.cc.

References OptionalTimeToIso().

Here is the call graph for this function:

◆ 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 127 of file enhanced_tui.cc.

References kCyberpunk, kDark, kDefault, kLight, and kZelda.

Referenced by yaze::cli::agent::EnhancedTUI::DrawHeader().

◆ CreateProposalFromAgentResponse()