diff --git a/apps/ai-game-creator-shell/src-tauri/src/assets.rs b/apps/ai-game-creator-shell/src-tauri/src/assets.rs index f7e454e47..a0bb9af10 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/assets.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/assets.rs @@ -480,6 +480,7 @@ pub(crate) fn platform_editor_uses_account_routes() -> bool { && editor_api_mode() == EditorApiMode::PlatformAccount } +#[cfg(test)] pub(crate) fn external_editor_api_credentials_override_is_active() -> bool { active_external_editor_api_credentials().is_some() } diff --git a/apps/ai-game-creator-shell/src-tauri/src/main.rs b/apps/ai-game-creator-shell/src-tauri/src/main.rs index 9114e0bdc..32da770f3 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/main.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/main.rs @@ -789,7 +789,9 @@ const PROJECT_WRITE_LOCK_PATH: &str = ".agent/project.lock"; const LOCAL_CONVERSATION_SCHEMA_VERSION: &str = "game-creator-conversation.v1"; const AGENT_CONVERSATION_SESSION_SCHEMA_VERSION: &str = "game-creator-agent-sessions.v1"; const AGENT_RUNTIME_RUN_PROFILE_STANDARD: &str = "standard"; +#[cfg(test)] const AGENT_RUNTIME_AUTONOMOUS_SOURCE_FIELD_MAX_CHARS: usize = 8_000; +#[cfg(test)] const AGENT_RUNTIME_AUTONOMOUS_SOURCE_TOTAL_MAX_CHARS: usize = 10_000; fn default_agent_runtime_run_profile() -> String {