chore: import deployable mai-bot source tree

This commit is contained in:
2026-05-11 00:51:12 +00:00
parent 4813699b3e
commit 7a54015f94
1009 changed files with 312999 additions and 16 deletions

39
locales/en-US/config.json Normal file
View File

@@ -0,0 +1,39 @@
{
"config.added_count": "Number of new config entries added: {count}",
"config.added_item": "New config entry added to config file: {attribute}",
"config.api_base_url_empty": "API base URL cannot be empty. Please set a valid base URL in the configuration.",
"config.api_key_empty": "API key cannot be empty. Please set a valid API key in the configuration.",
"config.api_provider_name_duplicate": "Duplicate API provider names detected. Please check the configuration file.",
"config.api_provider_name_empty": "API provider name cannot be empty. Please set a valid name in the configuration.",
"config.api_providers_empty": "API provider list cannot be empty. Please set a valid list of API providers in the configuration.",
"config.change_summary_header": "-------- Config File Change Summary --------",
"config.current_version": "MaiCore current version: {version}",
"config.file_change_detected": "Config file change detected, triggering hot reload",
"config.file_updated": "{file_name} config file has been updated. Old: {old_version} -> New: {new_version}. It is recommended to review the new config file to avoid losing important settings.",
"config.file_watcher_started": "Config file watcher started",
"config.file_watcher_stop_stats": "Config file watcher stop stats: batches={batches}, changes={changes}, ok={ok}, failed={failed}, timeout={timeout}, cooldown_skip={cooldown_skip}, restart={restart}",
"config.global_not_initialized": "global_config is not initialized",
"config.hot_reload_completed": "Config hot reload completed",
"config.invalid_inner_version": "Config file inner.version type error",
"config.legacy_migrated": "Legacy config structure detected, attempted auto-fix: {reason}. It is recommended to review and save the newly generated config file.",
"config.loaded": "So fresh, so delicious!",
"config.loading": "Savoring the config file...",
"config.missing_inner_version": "Config file is missing inner version information",
"config.model_api_provider_empty": "API provider cannot be empty. Please set a valid API provider in the configuration.",
"config.model_api_provider_missing": "api_provider '{api_provider}' for model '{model_name}' does not exist",
"config.model_identifier_empty": "model_identifier for model '{model_name}' cannot be empty",
"config.model_identifier_empty_generic": "Model identifier cannot be empty. Please set a valid model identifier in the configuration.",
"config.model_name_duplicate": "Duplicate model names detected. Please check the configuration file.",
"config.model_name_empty": "Model name cannot be empty. Please set a valid model name in the configuration.",
"config.model_not_initialized": "model_config is not initialized",
"config.models_empty": "Model list cannot be empty. Please set a valid list of models in the configuration.",
"config.parse_failed": "Failed to parse config file {file_name}",
"config.reload_callback_failed": "Config reload callback failed: {error}",
"config.reload_failed": "Config reload failed: {error}",
"config.reload_skipped_too_frequent": "File changes are too frequent, this reload has been skipped",
"config.reload_timeout": "Config hot reload timed out (>{timeout_seconds}s)",
"config.removed_count": "Number of config entries removed: {count}",
"config.removed_item": "Config entry removed: {attribute}",
"config.version_update_detected": "Config version update detected, hot reload will only update in-memory data",
"config.write_unsupported_type": "Config write only supports subclasses of ConfigBase"
}

8
locales/en-US/core.json Normal file
View File

@@ -0,0 +1,8 @@
{
"core.not_found": "Not Found",
"core.operation_failed": "Operation failed: {error}",
"core.tasks_cancelled": {
"one": "Cancelled {count} task",
"other": "Cancelled {count} tasks"
}
}

View File

@@ -0,0 +1,8 @@
{
"prompt.duplicate_template_name": "Prompt template name '{name}' is duplicated: {path_a} and {path_b}",
"prompt.format_failed": "Failed to render prompt template '{name}': {error}",
"prompt.invalid_category": "Prompt category '{category}' is invalid",
"prompt.invalid_name": "Prompt name '{name}' is invalid",
"prompt.missing_placeholder": "Prompt template '{name}' is missing placeholder '{placeholder}'",
"prompt.template_not_found": "Prompt template '{name}' not found under locale '{locale}'"
}

View File

@@ -0,0 +1,97 @@
{
"startup.agreement_confirm_prompt": "Enter \"agreed\" or \"confirmed\", or set environment variables \"EULA_AGREE={eula_hash}\" and \"PRIVACY_AGREE={privacy_hash}\" to continue",
"startup.agreement_confirm_retry": "Please enter \"agreed\" or \"confirmed\" to continue",
"startup.agreement_reconfirm": "The EULA or Privacy Policy has been updated. Please read and re-confirm. Continuing to run indicates your agreement to the updated terms.",
"startup.agreement_updated": "Updated {agreement_name} confirmation file {file_hash}",
"startup.brain_external_world_failed": "Failed to start brain and external world: {error}",
"startup.chat_manager_initialized": "Chat manager initialized successfully",
"startup.child_process_force_kill": "Child process not responding, force killing...",
"startup.compiling_shaders": "Compiling shaders: 1/114514",
"startup.dev_branch_warning": "Warning: Dev branch is in an unstable development state. Any plugins and WebUI may not function correctly!",
"startup.easter_egg": "Many years later, facing the AI firing squad, John would remember that distant afternoon in 2023 when he discussed artificial intelligence at the meeting",
"startup.emoji_manager_initialized": "Emoji manager initialized successfully",
"startup.env_auto_create_failed": "Failed to auto-create .env: {error}",
"startup.env_created": ".env not found, auto-created from template/template.env",
"startup.env_file_missing": ".env file does not exist. Please create it and configure the required environment variables.",
"startup.env_template_missing": ".env file not found, and template template/template.env is also missing",
"startup.eula_name": "EULA",
"startup.eula_privacy_checked": "EULA and Privacy Policy check completed",
"startup.event_loop_closed": "[Main] Event loop closed",
"startup.file_not_found": "{file_type} file does not exist",
"startup.graceful_shutdown_error": "Error during graceful shutdown: {error}",
"startup.initialization_completed_banner": "\n--------------------------------\nAll systems initialized. {nickname} has been awakened successfully.\n--------------------------------\nTo customize {nickname}'s behavior, see: https://docs.mai-mai.org/manual/usage/\nOr if you've run into issues, visit our documentation: https://docs.mai-mai.org/\n--------------------------------\nTo write or learn about plugins, visit the developer docs: https://docs.mai-mai.org/develop/\n--------------------------------\nTo view model usage and MaiBot statistics, open maibot_statistics.html in the root directory.\n",
"startup.initialization_completed_cycles": "Initialization complete, neurons fired {init_time} times",
"startup.interrupt_received": "Interrupt signal received, initiating graceful shutdown...",
"startup.launching_script": "Launching {script_file}...",
"startup.logging_shutdown_error": "Error shutting down logging system: {error}",
"startup.main_error": "Main process encountered an exception: {error}",
"startup.opensource_free_notice": " This project is completely free and open-source software, released under the GPL-3.0 license",
"startup.opensource_group": " Official group chat: ",
"startup.opensource_group_value": "766798517",
"startup.opensource_repo": " Official repository: ",
"startup.opensource_repo_value": "https://github.com/MaiM-with-u/MaiBot",
"startup.opensource_resale_warning": " Reselling this software as a \"product\" or concealing its open-source nature violates the license!",
"startup.opensource_scamming_notice": " If someone is \"selling you this software\", you've been scammed!",
"startup.opensource_title": " \u2605 MaiBot - Open Source AI Chatbot \u2605",
"startup.opensource_docs": " Official documentation: ",
"startup.opensource_docs_value": "https://docs.mai-mai.org",
"startup.prepare_exit": "[Main] Preparing to exit...",
"startup.privacy_name": "Privacy Policy",
"startup.program_exited": "Program exited (exit code {return_code})",
"startup.remaining_tasks_cancelling": {
"one": "Cancelling {count} remaining task...",
"other": "Cancelling {count} remaining tasks..."
},
"startup.remaining_tasks_cancelled": "All remaining tasks cancelled successfully",
"startup.remaining_tasks_cancel_error": "Exception while waiting for tasks to cancel: {error}",
"startup.remaining_tasks_cancel_timeout": "Timed out waiting for task cancellation, forcing shutdown",
"startup.restart_requested": "Restart request detected (exit code {exit_code}), restarting...",
"startup.restart_signal_received": "Restart signal received, preparing to exit and request restart...",
"startup.schedule_cancelled": "Scheduled tasks cancelled",
"startup.shutdown_completed": "MaiBot graceful shutdown complete",
"startup.shutdown_failed": "MaiBot shutdown failed: {error}",
"startup.shutdown_started": "Initiating graceful shutdown of MaiBot...",
"startup.waking_up": "Waking up {nickname}......",
"startup.webui_access_token": "🔑 WebUI access token: {token}",
"startup.webui_access_token_failed": "❌ Failed to get WebUI access token: {error}",
"startup.webui_access_token_login_hint": "💡 Use this token to sign in to WebUI",
"startup.webui_anti_crawler_config_failed": "❌ Failed to configure anti-crawler middleware: {error}",
"startup.webui_anti_crawler_configured": "🛡️ Anti-crawler middleware configured: {mode_desc}",
"startup.webui_anti_crawler_mode_basic": "basic mode",
"startup.webui_anti_crawler_mode_disabled": "disabled",
"startup.webui_anti_crawler_mode_loose": "loose mode",
"startup.webui_anti_crawler_mode_strict": "strict mode",
"startup.webui_api_routes_register_failed": "❌ Failed to register WebUI API routes: {error}",
"startup.webui_api_routes_registered": "✅ WebUI API routes registered",
"startup.webui_auto_install_exec_failed": "❌ Failed to execute automatic installation of WebUI frontend dependencies: {error}",
"startup.webui_auto_install_failed": "❌ Automatic installation of WebUI frontend dependencies failed (exit code {return_code})",
"startup.webui_auto_install_failed_output": "📄 WebUI dependency install output:\n{output}",
"startup.webui_auto_install_started": "🔧 WebUI frontend dependencies are missing, installing automatically: {command}",
"startup.webui_auto_install_succeeded": "✅ WebUI frontend dependencies installed successfully",
"startup.webui_auto_install_timeout": "❌ Automatic installation of WebUI frontend dependencies timed out (over {timeout_seconds} seconds)",
"startup.webui_auto_recovery_failed": "❌ WebUI automatic recovery failed and the static assets are still unavailable",
"startup.webui_auto_build_artifacts_invalid": "⚠️ WebUI auto-build finished, but the static artifacts are still unavailable",
"startup.webui_auto_build_exec_failed": "❌ Failed to execute WebUI auto-build: {error}",
"startup.webui_auto_build_failed": "❌ WebUI auto-build failed (exit code {return_code})",
"startup.webui_auto_build_failed_output": "📄 WebUI build output:\n{output}",
"startup.webui_auto_build_started": "🔧 Attempting to auto-build WebUI frontend: {command}",
"startup.webui_auto_build_succeeded": "✅ WebUI frontend auto-build succeeded",
"startup.webui_auto_build_timeout": "❌ WebUI auto-build timed out (over {timeout_seconds} seconds)",
"startup.webui_auto_build_tool_missing": "❌ No supported frontend build tool was found, cannot auto-build WebUI",
"startup.webui_cors_configured": "✅ CORS middleware configured",
"startup.webui_dashboard_source_missing": "❌ WebUI frontend source directory not found: {dashboard_root}",
"startup.webui_dashboard_package_hint": "💡 Install the prebuilt WebUI static asset package first, for example: {command}",
"startup.webui_disabled": "WebUI is disabled",
"startup.webui_index_missing": "❌ index.html not found: {index_path}",
"startup.webui_manual_build_hint": "💡 Automatic recovery could not restore the frontend assets. Install dependencies and build manually in the dashboard directory: {command}",
"startup.webui_path_traversal_detected": "🚫 Suspicious path traversal request detected: {full_path}",
"startup.webui_robots_route_register_failed": "❌ Failed to register robots.txt route: {error}",
"startup.webui_robots_route_registered": "✅ robots.txt route registered",
"startup.webui_server_init_failed": "Failed to initialize WebUI server: {error}",
"startup.webui_static_assets_unavailable": "❌ No usable WebUI static assets were found (installed maibot-dashboard package or local dashboard/dist)",
"startup.webui_static_assets_try_auto_build": "⚠️ WebUI static assets are unavailable, attempting to auto-build the frontend...",
"startup.webui_static_dir_missing": "❌ WebUI static directory does not exist",
"startup.webui_static_dir_missing_with_path": "❌ WebUI static directory does not exist: {static_path}",
"startup.webui_static_files_configured": "✅ WebUI static file service configured: {static_path}",
"startup.worker_dir_set": "Working directory set to: {script_dir}"
}