yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
agent_editor.cc File Reference
#include "app/editor/agent/agent_editor.h"
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <filesystem>
#include <fstream>
#include <memory>
#include <optional>
#include <unordered_set>
#include "app/editor/agent/agent_ui_theme.h"
#include "app/gui/style/theme.h"
#include "app/editor/system/panel_manager.h"
#include "app/gui/app/editor_layout.h"
#include "absl/strings/ascii.h"
#include "absl/strings/match.h"
#include "absl/strings/str_format.h"
#include "absl/time/clock.h"
#include "absl/time/time.h"
#include "app/editor/agent/agent_chat.h"
#include "app/editor/agent/agent_collaboration_coordinator.h"
#include "app/editor/agent/panels/agent_configuration_panel.h"
#include "app/editor/agent/panels/feature_flag_editor_panel.h"
#include "app/editor/agent/panels/manifest_panel.h"
#include "app/editor/agent/panels/mesen_debug_panel.h"
#include "app/editor/agent/panels/mesen_screenshot_panel.h"
#include "app/editor/agent/panels/oracle_state_library_panel.h"
#include "app/editor/agent/panels/sram_viewer_panel.h"
#include "app/editor/system/proposal_drawer.h"
#include "app/editor/system/user_settings.h"
#include "app/editor/ui/toast_manager.h"
#include "app/gui/core/icons.h"
#include "app/gui/core/style_guard.h"
#include "app/gui/core/ui_helpers.h"
#include "app/platform/asset_loader.h"
#include "app/service/screenshot_utils.h"
#include "app/test/test_manager.h"
#include "cli/service/agent/tool_dispatcher.h"
#include "cli/service/ai/ai_config_utils.h"
#include "cli/service/ai/service_factory.h"
#include "httplib.h"
#include "imgui/misc/cpp/imgui_stdlib.h"
#include "implot.h"
#include "rom/rom.h"
#include "util/file_util.h"
#include "util/platform_paths.h"

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 
namespace  yaze::editor::anonymous_namespace{agent_editor.cc}
 

Functions

std::optional< std::string > yaze::editor::anonymous_namespace{agent_editor.cc}::LoadKeychainValue (const std::string &key)
 
template<size_t N>
void yaze::editor::anonymous_namespace{agent_editor.cc}::CopyStringToBuffer (const std::string &src, char(&dest)[N])
 
std::filesystem::path yaze::editor::anonymous_namespace{agent_editor.cc}::ExpandUserPath (const std::string &input)
 
bool yaze::editor::anonymous_namespace{agent_editor.cc}::HasModelExtension (const std::filesystem::path &path)
 
void yaze::editor::anonymous_namespace{agent_editor.cc}::AddUniqueModelName (const std::string &name, std::vector< std::string > *output, std::unordered_set< std::string > *seen)
 
bool yaze::editor::anonymous_namespace{agent_editor.cc}::IsOllamaModelsPath (const std::filesystem::path &path)
 
void yaze::editor::anonymous_namespace{agent_editor.cc}::CollectOllamaManifestModels (const std::filesystem::path &models_root, std::vector< std::string > *output, std::unordered_set< std::string > *seen)
 
void yaze::editor::anonymous_namespace{agent_editor.cc}::CollectModelFiles (const std::filesystem::path &base_path, std::vector< std::string > *output, std::unordered_set< std::string > *seen)
 
std::vector< std::string > yaze::editor::anonymous_namespace{agent_editor.cc}::CollectLocalModelNames (const UserSettings::Preferences *prefs)
 
std::string yaze::editor::anonymous_namespace{agent_editor.cc}::ResolveHostApiKey (const UserSettings::Preferences *prefs, const UserSettings::Preferences::AiHost &host)
 
void yaze::editor::anonymous_namespace{agent_editor.cc}::ApplyHostPresetToProfile (AgentEditor::BotProfile *profile, const UserSettings::Preferences::AiHost &host, const UserSettings::Preferences *prefs)
 
std::string yaze::editor::anonymous_namespace{agent_editor.cc}::BuildTagsString (const std::vector< std::string > &tags)
 
bool yaze::editor::anonymous_namespace{agent_editor.cc}::ContainsText (const std::string &haystack, const std::string &needle)
 
bool yaze::editor::anonymous_namespace{agent_editor.cc}::StartsWithText (const std::string &text, const std::string &prefix)
 
bool yaze::editor::anonymous_namespace{agent_editor.cc}::IsLocalOpenAiBaseUrl (const std::string &base_url)
 
bool yaze::editor::anonymous_namespace{agent_editor.cc}::IsTailscaleEndpoint (const std::string &base_url)
 
bool yaze::editor::anonymous_namespace{agent_editor.cc}::IsLocalOrTrustedEndpoint (const std::string &base_url, bool allow_insecure)
 
bool yaze::editor::anonymous_namespace{agent_editor.cc}::ProbeHttpEndpoint (const std::string &base_url, const char *path)
 
bool yaze::editor::anonymous_namespace{agent_editor.cc}::ProbeOllamaHost (const std::string &base_url)
 
bool yaze::editor::anonymous_namespace{agent_editor.cc}::ProbeOpenAICompatible (const std::string &base_url)