mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-30 21:00:30 +08:00
feat: Hermes Agent 多引擎架构核心代码
- 新增 src/engines/hermes/ 完整引擎(仪表盘/服务管理/模型配置/Agent管理/对话) - 新增 src/lib/engine-manager.js 引擎管理器(切换/检测/状态) - 新增 src-tauri/src/commands/hermes.rs 后端命令(Gateway控制/配置读写/Agent Run SSE) - sidebar 引擎切换器 UI - i18n 新增 engine 模块(中/英/繁体) - 多安装清理工具(gateway-ownership.js) - 晴辰助手文件访问开关 - Hermes 对话工具调用可视化、SSE 流式输出 - Cargo.lock / dev-api.js 同步更新
This commit is contained in:
157
src/locales/modules/engine.js
Normal file
157
src/locales/modules/engine.js
Normal file
@@ -0,0 +1,157 @@
|
||||
import { _ } from '../helper.js'
|
||||
|
||||
export default {
|
||||
switchedTo: _('已切换到 {name} 模式', 'Switched to {name} mode', '已切換到 {name} 模式', '{name} モードに切り替えました', '{name} 모드로 전환됨'),
|
||||
hermesSetupDesc: _('安装并配置 Hermes Agent', 'Install and configure Hermes Agent', '安裝並配置 Hermes Agent'),
|
||||
hermesSetupIntro: _(
|
||||
'Hermes Agent 是一个具有工具调用能力的 AI 助手框架。点击下方按钮一键安装,无需终端操作。',
|
||||
'Hermes Agent is an AI assistant with tool-calling capabilities. Click the button below to install — no terminal needed.',
|
||||
'Hermes Agent 是一個具有工具調用能力的 AI 助手框架。點擊下方按鈕一鍵安裝,無需終端操作。',
|
||||
),
|
||||
// 检测阶段
|
||||
detecting: _('正在检测环境...', 'Detecting environment...', '正在偵測環境...'),
|
||||
detectPython: _('检测 Python 环境', 'Detecting Python', '偵測 Python 環境'),
|
||||
detectHermes: _('检测 Hermes Agent', 'Detecting Hermes Agent', '偵測 Hermes Agent'),
|
||||
pythonFound: _('Python {version}', 'Python {version}', 'Python {version}'),
|
||||
pythonNotFound: _('未检测到 Python(将自动安装)', 'Python not found (will be auto-installed)', '未偵測到 Python(將自動安裝)'),
|
||||
pythonTooOld: _('Python {version} 版本过低,需要 3.11+(将自动安装)', 'Python {version} too old, need 3.11+ (will be auto-installed)', 'Python {version} 版本過低,需要 3.11+(將自動安裝)'),
|
||||
uvFound: _('uv 包管理器已就绪', 'uv package manager ready', 'uv 套件管理器已就緒'),
|
||||
uvNotFound: _('uv 未安装(将自动下载)', 'uv not installed (will be auto-downloaded)', 'uv 未安裝(將自動下載)'),
|
||||
gitFound: _('Git 已就绪', 'Git ready', 'Git 已就緒'),
|
||||
gitNotFound: _('Git 未安装(从 GitHub 安装需要 Git)', 'Git not found (required for GitHub install)', 'Git 未安裝(從 GitHub 安裝需要 Git)'),
|
||||
hermesFound: _('Hermes Agent {version} 已安装', 'Hermes Agent {version} installed', 'Hermes Agent {version} 已安裝'),
|
||||
hermesNotFound: _('Hermes Agent 未安装', 'Hermes Agent not installed', 'Hermes Agent 未安裝'),
|
||||
hermesReady: _('Hermes Agent 已就绪,Gateway 运行中', 'Hermes Agent ready, Gateway running', 'Hermes Agent 已就緒,Gateway 運行中'),
|
||||
// 安装阶段
|
||||
installTitle: _('安装 Hermes Agent', 'Install Hermes Agent', '安裝 Hermes Agent'),
|
||||
installDesc: _('通过 uv 自动安装(含 Python 环境),无需手动操作', 'Auto-install via uv (includes Python), no manual steps', '透過 uv 自動安裝(含 Python 環境),無需手動操作'),
|
||||
installBtn: _('一键安装', 'Install Now', '一鍵安裝'),
|
||||
installingBtn: _('正在安装...', 'Installing...', '正在安裝...'),
|
||||
installSuccess: _('安装成功!', 'Installation successful!', '安裝成功!'),
|
||||
installFailed: _('安装失败', 'Installation failed', '安裝失敗'),
|
||||
retryBtn: _('重试', 'Retry', '重試'),
|
||||
// Extras 选择
|
||||
extrasTitle: _('可选组件', 'Optional Components', '可選組件'),
|
||||
extrasDesc: _('选择需要安装的额外功能(可稍后更改)', 'Select optional features to install (can change later)', '選擇需要安裝的額外功能(可稍後更改)'),
|
||||
extraCron: _('定时任务', 'Cron Jobs', '定時任務'),
|
||||
extraCli: _('CLI 增强', 'CLI Enhanced', 'CLI 增強'),
|
||||
extraPty: _('终端后端', 'Terminal Backend', '終端後端'),
|
||||
extraMcp: _('MCP 协议', 'MCP Protocol', 'MCP 協議'),
|
||||
extraMessaging: _('消息渠道(Telegram/Discord 等)', 'Messaging (Telegram/Discord etc.)', '訊息頻道(Telegram/Discord 等)'),
|
||||
extraFeishu: _('飞书', 'Feishu/Lark', '飛書'),
|
||||
extraDingtalk: _('钉钉', 'DingTalk', '釘釘'),
|
||||
extraSlack: _('Slack', 'Slack', 'Slack'),
|
||||
extraVoice: _('语音(TTS/STT)', 'Voice (TTS/STT)', '語音(TTS/STT)'),
|
||||
extraAll: _('全部安装', 'Install All', '全部安裝'),
|
||||
// 配置阶段
|
||||
configTitle: _('配置 Hermes Agent', 'Configure Hermes Agent', '配置 Hermes Agent'),
|
||||
configDesc: _('设置 LLM Provider 以启用 AI 功能', 'Set up LLM Provider to enable AI features', '設置 LLM Provider 以啟用 AI 功能'),
|
||||
configProvider: _('LLM 提供商', 'LLM Provider', 'LLM 提供商'),
|
||||
configApiKey: _('API Key', 'API Key', 'API Key'),
|
||||
configModel: _('模型', 'Model', '模型'),
|
||||
configBaseUrl: _('自定义 API 地址(可选)', 'Custom API URL (optional)', '自定義 API 地址(可選)'),
|
||||
configFetchModels: _('获取模型列表', 'Fetch Models', '取得模型列表'),
|
||||
configFetching: _('获取中...', 'Fetching...', '取得中...'),
|
||||
configFetchSuccess: _('获取到 {count} 个模型', 'Found {count} models', '取得 {count} 個模型'),
|
||||
configFetchFailed: _('获取失败: {error}', 'Fetch failed: {error}', '取得失敗: {error}'),
|
||||
configFetchNotSupported: _('此渠道不支持获取模型列表,请前往平台查看可用模型后手动输入', 'This provider does not support model listing. Please check available models on their platform and enter manually.', '此渠道不支持取得模型列表,請前往平台查看可用模型後手動輸入'),
|
||||
configFetchNeedKey: _('请先填写 API Key', 'Please enter API Key first', '請先填寫 API Key'),
|
||||
configFetchNeedUrl: _('请先选择服务商或填写 Base URL', 'Please select a provider or enter Base URL first', '請先選擇服務商或填寫 Base URL'),
|
||||
configSaveBtn: _('保存配置', 'Save Config', '儲存配置'),
|
||||
configSkipBtn: _('跳过,稍后配置', 'Skip, configure later', '跳過,稍後配置'),
|
||||
configSaved: _('配置已保存', 'Configuration saved', '配置已儲存'),
|
||||
// Gateway 阶段
|
||||
gatewayTitle: _('启动 Gateway', 'Start Gateway', '啟動 Gateway'),
|
||||
gatewayDesc: _('启动 HTTP API 服务以连接 ClawPanel', 'Start HTTP API server to connect with ClawPanel', '啟動 HTTP API 服務以連接 ClawPanel'),
|
||||
gatewayStartBtn: _('启动 Gateway', 'Start Gateway', '啟動 Gateway'),
|
||||
gatewayStarting: _('正在启动...', 'Starting...', '正在啟動...'),
|
||||
gatewayStartFailed: _('Gateway 启动失败', 'Gateway failed to start', 'Gateway 啟動失敗'),
|
||||
gatewayRunning: _('Gateway 运行中 (端口 {port})', 'Gateway running (port {port})', 'Gateway 運行中 (端口 {port})'),
|
||||
gatewayStopped: _('Gateway 未运行', 'Gateway not running', 'Gateway 未運行'),
|
||||
// 完成
|
||||
setupComplete: _('设置完成!', 'Setup Complete!', '設定完成!'),
|
||||
setupCompleteDesc: _('Hermes Agent 已准备就绪,可以开始使用了。', 'Hermes Agent is ready to use.', 'Hermes Agent 已準備就緒,可以開始使用了。'),
|
||||
goToDashboard: _('进入仪表盘', 'Go to Dashboard', '進入儀表盤'),
|
||||
// 日志
|
||||
viewLogs: _('查看安装日志', 'View install logs', '查看安裝日誌'),
|
||||
hideLogs: _('隐藏日志', 'Hide logs', '隱藏日誌'),
|
||||
// 仪表盘
|
||||
hermesSetupDocLink: _('查看完整文档', 'View full documentation', '查看完整文檔'),
|
||||
hermesDashboardTitle: _('Hermes 仪表盘', 'Hermes Dashboard', 'Hermes 儀表盤'),
|
||||
dashGatewayStatus: _('Gateway 状态', 'Gateway Status', 'Gateway 狀態'),
|
||||
dashRunning: _('运行中', 'Running', '運行中'),
|
||||
dashStopped: _('已停止', 'Stopped', '已停止'),
|
||||
dashModel: _('当前模型', 'Current Model', '目前模型'),
|
||||
dashVersion: _('版本', 'Version', '版本'),
|
||||
dashPort: _('监听端口', 'Listen Port', '監聽端口'),
|
||||
dashStartGw: _('启动 Gateway', 'Start Gateway', '啟動 Gateway'),
|
||||
dashStopGw: _('停止 Gateway', 'Stop Gateway', '停止 Gateway'),
|
||||
dashRestartGw: _('重启 Gateway', 'Restart Gateway', '重啟 Gateway'),
|
||||
dashStopping: _('正在停止...', 'Stopping...', '正在停止...'),
|
||||
dashRestarting: _('正在重启...', 'Restarting...', '正在重啟...'),
|
||||
dashQuickActions: _('快捷操作', 'Quick Actions', '快捷操作'),
|
||||
dashOpenChat: _('打开对话', 'Open Chat', '開啟對話'),
|
||||
dashOpenCron: _('定时任务', 'Cron Jobs', '定時任務'),
|
||||
dashOpenSetup: _('重新配置', 'Reconfigure', '重新配置'),
|
||||
dashNoModel: _('未配置', 'Not configured', '未配置'),
|
||||
dashApiEndpoint: _('API 地址', 'API Endpoint', 'API 地址'),
|
||||
dashModelConfig: _('模型配置', 'Model Config', '模型配置'),
|
||||
dashConnectTarget: _('连接目标', 'Connection Target', '連接目標'),
|
||||
dashDetectEnv: _('探测环境', 'Detect Environments', '探測環境'),
|
||||
dashDetecting: _('探测中...', 'Detecting...', '探測中...'),
|
||||
dashConnLocal: _('本地', 'Local', '本地'),
|
||||
dashConnCustom: _('自定义', 'Custom', '自訂'),
|
||||
dashConnApply: _('应用', 'Apply', '套用'),
|
||||
dashQuickSwitch: _('快速切换', 'Quick Switch', '快速切換'),
|
||||
// 终端命令
|
||||
dashCliTitle: _('终端命令', 'Terminal Commands', '終端命令'),
|
||||
dashCliDesc: _('在终端中使用以下命令管理 Hermes Agent,点击复制', 'Use these commands in your terminal to manage Hermes Agent. Click to copy.', '在終端中使用以下命令管理 Hermes Agent,點擊複製'),
|
||||
cliChat: _('终端对话', 'Terminal Chat', '終端對話'),
|
||||
cliChatDesc: _('在终端中直接与 Agent 对话', 'Chat with Agent directly in terminal', '在終端中直接與 Agent 對話'),
|
||||
cliDoctor: _('诊断检查', 'Diagnostics', '診斷檢查'),
|
||||
cliDoctorDesc: _('检测配置和环境问题', 'Check config and environment issues', '檢測配置和環境問題'),
|
||||
cliVersion: _('查看版本', 'Check Version', '查看版本'),
|
||||
cliVersionDesc: _('显示当前安装版本', 'Show installed version', '顯示目前安裝版本'),
|
||||
cliGwStart: _('启动服务', 'Start Gateway', '啟動服務'),
|
||||
cliGwStartDesc: _('在终端前台启动 Gateway', 'Start Gateway in foreground', '在終端前台啟動 Gateway'),
|
||||
cliGwStop: _('停止服务', 'Stop Gateway', '停止服務'),
|
||||
cliGwStopDesc: _('停止后台 Gateway 进程', 'Stop background Gateway process', '停止背景 Gateway 進程'),
|
||||
cliUpgrade: _('升级', 'Upgrade', '升級'),
|
||||
cliUpgradeDesc: _('从 GitHub 重新安装最新版', 'Reinstall latest from GitHub', '從 GitHub 重新安裝最新版'),
|
||||
cliUninstall: _('卸载', 'Uninstall', '解除安裝'),
|
||||
cliUninstallDesc: _('移除 Hermes Agent', 'Remove Hermes Agent', '移除 Hermes Agent'),
|
||||
cliConfig: _('打开配置目录', 'Open Config Dir', '開啟配置目錄'),
|
||||
cliConfigDesc: _('在文件管理器中查看配置文件', 'View config files in file manager', '在檔案管理器中查看配置檔案'),
|
||||
// 对话页面
|
||||
hermesChatTitle: _('Hermes 对话', 'Hermes Chat', 'Hermes 對話'),
|
||||
chatPlaceholder: _('输入消息...', 'Type a message...', '輸入訊息...'),
|
||||
chatSend: _('发送', 'Send', '發送'),
|
||||
chatNewSession: _('新对话', 'New Chat', '新對話'),
|
||||
chatThinking: _('正在思考...', 'Thinking...', '正在思考...'),
|
||||
chatError: _('发送失败: {error}', 'Send failed: {error}', '發送失敗: {error}'),
|
||||
chatGatewayOffline: _('Gateway 未运行,请先启动', 'Gateway is offline, please start it first', 'Gateway 未運行,請先啟動'),
|
||||
chatWelcome: _('你好!我是 Hermes Agent,有什么可以帮你的?', 'Hello! I\'m Hermes Agent, how can I help?', '你好!我是 Hermes Agent,有什麼可以幫你的?'),
|
||||
chatEmptyHint: _('开始一段对话吧', 'Start a conversation', '開始一段對話吧'),
|
||||
fileAccess: _('文件访问', 'File Access', '檔案存取'),
|
||||
fileAccessOn: _('已开启文件系统访问(Agent 可读取本机文件)', 'File system access enabled (Agent can read local files)', '已開啟檔案系統存取(Agent 可讀取本機檔案)'),
|
||||
fileAccessOff: _('文件系统访问已关闭', 'File system access disabled', '檔案系統存取已關閉'),
|
||||
// 定时任务
|
||||
hermesCronTitle: _('定时任务', 'Cron Jobs', '定時任務'),
|
||||
cronNoJobs: _('暂无定时任务', 'No cron jobs yet', '暫無定時任務'),
|
||||
cronCreate: _('创建任务', 'Create Job', '建立任務'),
|
||||
cronName: _('任务名称', 'Job Name', '任務名稱'),
|
||||
cronSchedule: _('执行周期', 'Schedule', '執行週期'),
|
||||
cronPrompt: _('AI 指令', 'AI Prompt', 'AI 指令'),
|
||||
cronActive: _('启用', 'Active', '啟用'),
|
||||
cronPaused: _('已暂停', 'Paused', '已暫停'),
|
||||
cronRunNow: _('立即执行', 'Run Now', '立即執行'),
|
||||
cronDelete: _('删除', 'Delete', '刪除'),
|
||||
cronSave: _('保存', 'Save', '儲存'),
|
||||
cronCancel: _('取消', 'Cancel', '取消'),
|
||||
// 其它页面
|
||||
hermesServicesTitle: _('Hermes 服务', 'Hermes Services', 'Hermes 服務'),
|
||||
hermesConfigTitle: _('Hermes 配置', 'Hermes Config', 'Hermes 配置'),
|
||||
hermesChannelsTitle: _('Hermes 渠道', 'Hermes Channels', 'Hermes 頻道'),
|
||||
hermesSkillsTitle: _('Hermes Skills', 'Hermes Skills', 'Hermes Skills'),
|
||||
comingSoonPhase2: _('即将在 Phase 2 中推出', 'Coming in Phase 2', '即將在 Phase 2 中推出'),
|
||||
}
|
||||
Reference in New Issue
Block a user