mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-06 00:00:06 +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:
@@ -373,4 +373,21 @@ export const api = {
|
||||
saveImage: (id, data) => invoke('assistant_save_image', { id, data }),
|
||||
loadImage: (id) => invoke('assistant_load_image', { id }),
|
||||
deleteImage: (id) => invoke('assistant_delete_image', { id }),
|
||||
|
||||
// Hermes Agent 管理
|
||||
checkPython: () => cachedInvoke('check_python', {}, 60000),
|
||||
checkHermes: () => cachedInvoke('check_hermes', {}, 30000),
|
||||
installHermes: (method = 'uv-tool', extras = []) => invoke('install_hermes', { method, extras }),
|
||||
configureHermes: (provider, apiKey, model, baseUrl) => invoke('configure_hermes', { provider, apiKey, model: model || null, baseUrl: baseUrl || null }),
|
||||
hermesGatewayAction: (action) => invoke('hermes_gateway_action', { action }),
|
||||
hermesHealthCheck: () => invoke('hermes_health_check'),
|
||||
hermesApiProxy: (method, path, body, headers) => invoke('hermes_api_proxy', { method, path, body: body || null, headers: headers || null }),
|
||||
hermesAgentRun: (input, sessionId, conversationHistory, instructions) => invoke('hermes_agent_run', { input, sessionId: sessionId || null, conversationHistory: conversationHistory || null, instructions: instructions || null }),
|
||||
hermesReadConfig: () => invoke('hermes_read_config'),
|
||||
hermesFetchModels: (baseUrl, apiKey, apiType) => invoke('hermes_fetch_models', { baseUrl, apiKey, apiType: apiType || null }),
|
||||
hermesUpdateModel: (model) => invoke('hermes_update_model', { model }),
|
||||
hermesDetectEnvironments: () => invoke('hermes_detect_environments'),
|
||||
hermesSetGatewayUrl: (url) => invoke('hermes_set_gateway_url', { url: url || null }),
|
||||
updateHermes: () => invoke('update_hermes'),
|
||||
uninstallHermes: (cleanConfig = false) => invoke('uninstall_hermes', { cleanConfig }),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user