Namespace for the command line interface. More...
Namespaces | |
namespace | agent |
namespace | ai |
namespace | anonymous_namespace{agent.cc} |
namespace | anonymous_namespace{ai_service.cc} |
namespace | anonymous_namespace{command_palette.cc} |
namespace | anonymous_namespace{gui_automation_client.cc} |
namespace | anonymous_namespace{overworld.cc} |
namespace | anonymous_namespace{prompt_builder.cc} |
namespace | anonymous_namespace{proposal_registry.cc} |
namespace | anonymous_namespace{resource_catalog.cc} |
namespace | anonymous_namespace{resource_catalog_test.cc} |
namespace | anonymous_namespace{rom_sandbox_manager.cc} |
namespace | anonymous_namespace{test_suite_loader.cc} |
namespace | anonymous_namespace{test_suite_reporter.cc} |
namespace | anonymous_namespace{test_suite_writer.cc} |
namespace | anonymous_namespace{tile16_proposal_generator.cc} |
namespace | anonymous_namespace{tile16_proposal_generator_test.cc} |
namespace | anonymous_namespace{tui.cc} |
namespace | gui |
namespace | handlers |
namespace | net |
namespace | overworld |
namespace | resources |
namespace | tui |
namespace | util |
Classes | |
struct | AgentResponse |
class | AIService |
struct | AIServiceConfig |
class | AsarPatchComponent |
struct | AssertionOutcome |
Individual assertion outcome within a harness test. More... | |
class | AutocompleteEngine |
struct | AutomationResult |
Result of a GUI automation action. More... | |
class | CommandPaletteComponent |
struct | Context |
struct | DiscoveredWindowInfo |
struct | DiscoverWidgetsQuery |
struct | DiscoverWidgetsResult |
class | EnhancedChatComponent |
class | EnhancedStatusPanel |
struct | FewShotExample |
class | GeminiAIService |
struct | GeminiConfig |
class | GuiAutomationClient |
Client for automating YAZE GUI through gRPC. More... | |
struct | HarnessTestSummary |
Aggregated metadata about a harness test. More... | |
class | HexViewerComponent |
struct | LayoutConfig |
struct | ListTestsResult |
Result container for ListTests RPC. More... | |
class | MockAIService |
class | ModernCLI |
class | OllamaAIService |
struct | OllamaConfig |
class | PaletteEditorComponent |
struct | PanelState |
class | PolicyEvaluator |
struct | PolicyResult |
struct | PolicyViolation |
class | PromptBuilder |
class | ProposalRegistry |
struct | ReplayTestResult |
struct | ResourceAction |
struct | ResourceArgument |
class | ResourceCatalog |
class | ResourceContextBuilder |
Builds contextual information from ROM resources for AI prompts. More... | |
struct | ResourceSchema |
struct | RomContext |
class | RomSandboxManager |
struct | StartRecordingResult |
struct | StopRecordingResult |
struct | Suggestion |
struct | TestCaseDefinition |
struct | TestCaseRunResult |
struct | TestGroupDefinition |
struct | TestResultDetails |
Detailed execution results for a specific harness test. More... | |
struct | TestStatusDetails |
Detailed information about an individual test execution. More... | |
struct | TestStep |
A single step in a GUI test workflow. More... | |
struct | TestSuiteConfig |
struct | TestSuiteDefinition |
struct | TestSuiteRunSummary |
struct | TestWorkflow |
A complete GUI test workflow. More... | |
class | TestWorkflowGenerator |
Generates GUI test workflows from natural language prompts. More... | |
struct | Tile16Change |
Represents a single tile16 change in a proposal. More... | |
struct | Tile16Proposal |
Represents a proposal for tile16 edits on the overworld. More... | |
class | Tile16ProposalGenerator |
Generates and manages tile16 editing proposals. More... | |
struct | ToolArgument |
struct | ToolCall |
struct | ToolSpecification |
class | TuiComponent |
class | UnifiedLayout |
struct | WidgetBoundingBox |
struct | WidgetDescriptor |
Functions | |
absl::Status | HandleDungeonExportLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandleDungeonListObjectsLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandleOverworldGetTileLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandleOverworldSetTileLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandleOverworldFindTileLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandleOverworldDescribeMapLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandleOverworldListWarpsLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandleOverworldSelectRectLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandleOverworldScrollToLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandleOverworldSetZoomLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandleOverworldGetVisibleRegionLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandleGfxExportLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandleGfxImportLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandlePaletteExportLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandlePaletteImportLegacy (const std::vector< std::string > &arg_vec) |
absl::Status | HandlePaletteLegacy (const std::vector< std::string > &arg_vec) |
void | HandlePaletteTUI (ftxui::ScreenInteractive &screen) |
absl::Status | InitializeMockRom (Rom &rom) |
Initialize a mock ROM for testing without requiring an actual ROM file. | |
bool | ShouldUseMockRom () |
Check if mock ROM mode should be used based on flags. | |
std::unique_ptr< AIService > | CreateAIService () |
std::unique_ptr< AIService > | CreateAIService (const AIServiceConfig &config) |
absl::StatusOr< TestSuiteDefinition > | ParseTestSuiteDefinition (absl::string_view content) |
absl::StatusOr< TestSuiteDefinition > | LoadTestSuiteFromFile (const std::string &path) |
std::string | BuildTextSummary (const TestSuiteRunSummary &summary) |
absl::StatusOr< std::string > | BuildJUnitReport (const TestSuiteRunSummary &summary) |
absl::Status | WriteJUnitReport (const TestSuiteRunSummary &summary, const std::string &output_path) |
std::string | BuildTestSuiteYaml (const TestSuiteDefinition &suite) |
absl::Status | WriteTestSuiteToFile (const TestSuiteDefinition &suite, const std::string &path, bool overwrite) |
Component | CreateAutocompleteInput (std::string *input_str, AutocompleteEngine *engine) |
Create an input component with autocomplete suggestions. | |
Component | CreateQuickActionMenu (ScreenInteractive &screen) |
ftxui::Component | CreateQuickActionMenu (ftxui::ScreenInteractive &screen) |
Create a quick action menu for common ROM operations. | |
void | ShowMain () |
std::string | GetColoredLogo () |
Variables | |
const std::vector< std::string > | kMainMenuEntries |
constexpr const char * | kZ3edLogo |
constexpr const char * | kZ3edLogoCompact |
constexpr const char * | kZ3edLogoMinimal |
Namespace for the command line interface.
|
strong |
Type of click action to perform.
Enumerator | |
---|---|
kLeft | |
kRight | |
kMiddle | |
kDouble |
Definition at line 44 of file gui_automation_client.h.
|
strong |
Execution status codes returned by the harness.
Enumerator | |
---|---|
kUnknown | |
kQueued | |
kRunning | |
kPassed | |
kFailed | |
kTimeout |
Definition at line 66 of file gui_automation_client.h.
|
strong |
Enumerator | |
---|---|
kUnspecified | |
kAll | |
kButton | |
kInput | |
kMenu | |
kTab | |
kCheckbox | |
kSlider | |
kCanvas | |
kSelectable | |
kOther |
Definition at line 166 of file gui_automation_client.h.
|
strong |
Enumerator | |
---|---|
kInfo | |
kWarning | |
kCritical |
Definition at line 16 of file policy_evaluator.h.
|
strong |
Enumerator | |
---|---|
kPassed | |
kFailed | |
kError | |
kSkipped |
Definition at line 58 of file test_suite.h.
|
strong |
Type of test step to execute.
Enumerator | |
---|---|
kClick | |
kType | |
kWait | |
kAssert | |
kScreenshot |
Definition at line 18 of file test_workflow_generator.h.
|
strong |
|
strong |
|
strong |
Enumerator | |
---|---|
kMainMenu | |
kChat | |
kStatus | |
kTools | |
kHexViewer | |
kPaletteEditor | |
kTodoManager | |
kRomTools | |
kGraphicsTools | |
kSettings | |
kHelp |
Definition at line 28 of file unified_layout.h.
absl::Status yaze::cli::HandleDungeonExportLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 14 of file dungeon.cc.
References yaze::zelda3::Room::blockset, yaze::zelda3::DungeonEditorSystem::GetRoom(), yaze::Rom::is_loaded(), yaze::zelda3::Room::layout, yaze::Rom::LoadFromFile(), yaze::zelda3::Room::palette, and yaze::zelda3::Room::spriteset.
absl::Status yaze::cli::HandleDungeonListObjectsLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 49 of file dungeon.cc.
References yaze::zelda3::DungeonEditorSystem::GetRoom(), yaze::zelda3::Room::GetTileObjects(), yaze::Rom::is_loaded(), yaze::Rom::LoadFromFile(), and yaze::zelda3::Room::LoadObjects().
absl::Status yaze::cli::HandleOverworldGetTileLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 34 of file overworld.cc.
References yaze::zelda3::Overworld::GetTile(), yaze::Rom::is_loaded(), yaze::zelda3::Overworld::Load(), and yaze::Rom::LoadFromFile().
absl::Status yaze::cli::HandleOverworldSetTileLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 81 of file overworld.cc.
References yaze::Rom::is_loaded(), yaze::zelda3::Overworld::Load(), yaze::Rom::LoadFromFile(), yaze::Rom::SaveToFile(), yaze::zelda3::Overworld::set_current_world(), and yaze::zelda3::Overworld::SetTile().
absl::Status yaze::cli::HandleOverworldFindTileLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 154 of file overworld.cc.
References ASSIGN_OR_RETURN, yaze::cli::overworld::FindTileMatches(), yaze::cli::overworld::InferWorldFromMapId(), yaze::Rom::is_loaded(), yaze::zelda3::Overworld::Load(), yaze::Rom::LoadFromFile(), yaze::cli::overworld::TileSearchOptions::map_id, yaze::cli::overworld::ParseNumeric(), yaze::cli::overworld::ParseWorldSpecifier(), yaze::cli::overworld::TileSearchOptions::world, and yaze::cli::overworld::WorldName().
absl::Status yaze::cli::HandleOverworldDescribeMapLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 326 of file overworld.cc.
References ASSIGN_OR_RETURN, yaze::cli::overworld::BuildMapSummary(), yaze::Rom::is_loaded(), yaze::zelda3::kNumOverworldMaps, yaze::zelda3::Overworld::Load(), yaze::Rom::LoadFromFile(), yaze::cli::overworld::ParseNumeric(), and yaze::cli::overworld::WorldName().
absl::Status yaze::cli::HandleOverworldListWarpsLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 511 of file overworld.cc.
References ASSIGN_OR_RETURN, yaze::cli::overworld::CollectWarpEntries(), yaze::cli::overworld::InferWorldFromMapId(), yaze::Rom::is_loaded(), yaze::cli::overworld::kEntrance, yaze::cli::overworld::kExit, yaze::cli::overworld::kHole, yaze::zelda3::kNumOverworldMaps, yaze::zelda3::Overworld::Load(), yaze::Rom::LoadFromFile(), yaze::cli::overworld::WarpQuery::map_id, yaze::cli::overworld::ParseNumeric(), yaze::cli::overworld::ParseWorldSpecifier(), yaze::cli::overworld::WarpQuery::type, yaze::cli::overworld::WarpTypeName(), yaze::cli::overworld::WarpQuery::world, and yaze::cli::overworld::WorldName().
absl::Status yaze::cli::HandleOverworldSelectRectLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 732 of file overworld.cc.
absl::Status yaze::cli::HandleOverworldScrollToLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 768 of file overworld.cc.
absl::Status yaze::cli::HandleOverworldSetZoomLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 801 of file overworld.cc.
absl::Status yaze::cli::HandleOverworldGetVisibleRegionLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 827 of file overworld.cc.
absl::Status yaze::cli::HandleGfxExportLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 14 of file gfx.cc.
References yaze::gfx::Arena::Get(), yaze::Rom::is_loaded(), yaze::Rom::LoadFromFile(), and yaze::gfx::SaveCgx().
absl::Status yaze::cli::HandleGfxImportLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 54 of file gfx.cc.
References yaze::Rom::filename(), yaze::gfx::Arena::Get(), yaze::Rom::is_loaded(), yaze::gfx::LoadCgx(), yaze::Rom::LoadFromFile(), and yaze::Rom::SaveToFile().
absl::Status yaze::cli::HandlePaletteExportLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 46 of file palette.cc.
References yaze::Rom::is_loaded(), yaze::Rom::LoadFromFile(), yaze::Rom::palette_group(), and yaze::gfx::SaveCol().
Referenced by HandlePaletteLegacy().
absl::Status yaze::cli::HandlePaletteImportLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 108 of file palette.cc.
References yaze::gfx::DecodeColFile(), yaze::Rom::filename(), yaze::Rom::is_loaded(), yaze::Rom::LoadFromFile(), yaze::Rom::palette_group(), and yaze::Rom::SaveToFile().
Referenced by HandlePaletteLegacy().
absl::Status yaze::cli::HandlePaletteLegacy | ( | const std::vector< std::string > & | arg_vec | ) |
Definition at line 22 of file palette.cc.
References HandlePaletteExportLegacy(), and HandlePaletteImportLegacy().
void yaze::cli::HandlePaletteTUI | ( | ftxui::ScreenInteractive & | screen | ) |
Definition at line 40 of file palette.cc.
absl::Status yaze::cli::InitializeMockRom | ( | Rom & | rom | ) |
Initialize a mock ROM for testing without requiring an actual ROM file.
This creates a minimal but valid ROM structure populated with:
Purpose: Allow AI agent testing and CI/CD without committing ROM files
rom | ROM object to initialize as mock |
Definition at line 16 of file mock_rom.cc.
References yaze::core::YazeProject::InitializeEmbeddedLabels(), yaze::core::ResourceLabelManager::labels_, yaze::core::ResourceLabelManager::labels_loaded_, yaze::Rom::LoadFromData(), yaze::Rom::resource_label(), and yaze::core::YazeProject::resource_labels.
Referenced by yaze::cli::resources::CommandContext::Initialize(), and yaze::cli::agent::anonymous_namespace{conversation_test.cc}::LoadRomForAgent().
bool yaze::cli::ShouldUseMockRom | ( | ) |
Check if mock ROM mode should be used based on flags.
Definition at line 81 of file mock_rom.cc.
std::unique_ptr< AIService > yaze::cli::CreateAIService | ( | ) |
Definition at line 26 of file service_factory.cc.
References CreateAIService(), yaze::cli::AIServiceConfig::gemini_api_key, yaze::cli::AIServiceConfig::model, yaze::cli::AIServiceConfig::ollama_host, and yaze::cli::AIServiceConfig::provider.
Referenced by yaze::cli::agent::ConversationalAgentService::ConversationalAgentService(), yaze::cli::agent::ConversationalAgentService::ConversationalAgentService(), CreateAIService(), yaze::cli::agent::HandlePlanCommand(), yaze::cli::agent::HandleRunCommand(), and main().
std::unique_ptr< AIService > yaze::cli::CreateAIService | ( | const AIServiceConfig & | config | ) |
Definition at line 47 of file service_factory.cc.
References yaze::cli::OllamaConfig::base_url, yaze::cli::AIServiceConfig::gemini_api_key, yaze::cli::GeminiConfig::model, yaze::cli::OllamaConfig::model, yaze::cli::AIServiceConfig::model, yaze::cli::AIServiceConfig::ollama_host, yaze::cli::GeminiConfig::prompt_version, yaze::cli::AIServiceConfig::provider, yaze::cli::GeminiConfig::use_function_calling, yaze::cli::GeminiConfig::verbose, and yaze::cli::AIServiceConfig::verbose.
absl::StatusOr< TestSuiteDefinition > yaze::cli::ParseTestSuiteDefinition | ( | absl::string_view | content | ) |
Definition at line 537 of file test_suite_loader.cc.
References yaze::cli::TestSuiteDefinition::config, yaze::cli::TestSuiteDefinition::description, yaze::cli::TestSuiteDefinition::name, RETURN_IF_ERROR, and yaze::cli::TestSuiteDefinition::version.
Referenced by LoadTestSuiteFromFile().
absl::StatusOr< TestSuiteDefinition > yaze::cli::LoadTestSuiteFromFile | ( | const std::string & | path | ) |
Definition at line 602 of file test_suite_loader.cc.
References ParseTestSuiteDefinition().
std::string yaze::cli::BuildTextSummary | ( | const TestSuiteRunSummary & | summary | ) |
Definition at line 112 of file test_suite_reporter.cc.
References kPassed, yaze::cli::TestSuiteDefinition::name, yaze::cli::TestSuiteRunSummary::results, yaze::cli::TestSuiteRunSummary::started_at, and yaze::cli::TestSuiteRunSummary::suite.
absl::StatusOr< std::string > yaze::cli::BuildJUnitReport | ( | const TestSuiteRunSummary & | summary | ) |
Definition at line 182 of file test_suite_reporter.cc.
References kError, kFailed, yaze::cli::TestSuiteDefinition::name, yaze::cli::TestSuiteRunSummary::results, yaze::cli::TestSuiteRunSummary::started_at, and yaze::cli::TestSuiteRunSummary::suite.
Referenced by WriteJUnitReport().
absl::Status yaze::cli::WriteJUnitReport | ( | const TestSuiteRunSummary & | summary, |
const std::string & | output_path | ||
) |
Definition at line 269 of file test_suite_reporter.cc.
References ASSIGN_OR_RETURN, and BuildJUnitReport().
std::string yaze::cli::BuildTestSuiteYaml | ( | const TestSuiteDefinition & | suite | ) |
Definition at line 73 of file test_suite_writer.cc.
References yaze::cli::TestSuiteDefinition::config, yaze::cli::TestGroupDefinition::depends_on, yaze::cli::TestGroupDefinition::description, yaze::cli::TestSuiteDefinition::description, yaze::cli::TestSuiteDefinition::groups, yaze::cli::TestGroupDefinition::name, yaze::cli::TestSuiteDefinition::name, yaze::cli::TestSuiteConfig::parallel_execution, yaze::cli::TestSuiteConfig::retry_on_failure, yaze::cli::TestGroupDefinition::tests, yaze::cli::TestSuiteConfig::timeout_seconds, and yaze::cli::TestSuiteDefinition::version.
Referenced by WriteTestSuiteToFile().
absl::Status yaze::cli::WriteTestSuiteToFile | ( | const TestSuiteDefinition & | suite, |
const std::string & | path, | ||
bool | overwrite | ||
) |
Definition at line 143 of file test_suite_writer.cc.
References BuildTestSuiteYaml().
ftxui::Component yaze::cli::CreateAutocompleteInput | ( | std::string * | input_str, |
AutocompleteEngine * | engine | ||
) |
Create an input component with autocomplete suggestions.
input_str | Pointer to the input string |
engine | Pointer to the autocomplete engine |
Definition at line 11 of file autocomplete_ui.cc.
References yaze::cli::AutocompleteEngine::GetSuggestions().
Referenced by yaze::cli::tui::ChatTUI::Run().
Component yaze::cli::CreateQuickActionMenu | ( | ScreenInteractive & | screen | ) |
Definition at line 48 of file autocomplete_ui.cc.
ftxui::Component yaze::cli::CreateQuickActionMenu | ( | ftxui::ScreenInteractive & | screen | ) |
Create a quick action menu for common ROM operations.
screen | The screen interactive reference |
void yaze::cli::ShowMain | ( | ) |
Definition at line 919 of file tui.cc.
References yaze::cli::LayoutConfig::bottom_panel_height, yaze::cli::LayoutConfig::left_panel_width, yaze::cli::LayoutConfig::right_panel_width, yaze::cli::UnifiedLayout::Run(), yaze::cli::UnifiedLayout::SetLayoutConfig(), yaze::cli::LayoutConfig::show_chat, yaze::cli::LayoutConfig::show_status, yaze::cli::LayoutConfig::show_tools, and ShowMain().
Referenced by main(), and ShowMain().
|
inline |
Definition at line 47 of file z3ed_ascii_logo.h.
Referenced by yaze::cli::anonymous_namespace{tui.cc}::DashboardComponent(), anonymous_namespace{cli_main.cc}::PrintCompactHelp(), anonymous_namespace{cli_main.cc}::PrintVersion(), and yaze::cli::ModernCLI::ShowHelp().
const std::vector<std::string> yaze::cli::kMainMenuEntries |
Definition at line 18 of file tui.h.
Referenced by yaze::cli::anonymous_namespace{tui.cc}::DashboardComponent(), and yaze::cli::anonymous_namespace{tui.cc}::MainMenuComponent().
|
constexpr |
Definition at line 10 of file z3ed_ascii_logo.h.
|
constexpr |
Definition at line 23 of file z3ed_ascii_logo.h.
|
constexpr |
Definition at line 37 of file z3ed_ascii_logo.h.