feat(hermes): expose '/v1/capabilities' as the 'hermes_capabilities' Tauri command

Hermes 已在 v2026.5.x 暴露 GET /v1/capabilities 给外部 UI 用作机器可读的能力描述,让前端能动态适配可用 endpoint / feature 而无需用版本号硬匹配。ClawPanel 之前完全没利用这层抽象,本 commit 加一条 Tauri 命令 + Web handler + 前端 wrapper,为后续 chat/runs/approval 等动态降级(老版 Gateway 没有的能力优雅隐藏 UI)打底。
This commit is contained in:
晴天
2026-05-14 02:31:35 +08:00
parent 69cce64985
commit 1d6843c4fb
4 changed files with 37 additions and 0 deletions

View File

@@ -236,6 +236,7 @@ pub fn run() {
hermes::configure_hermes,
hermes::hermes_gateway_action,
hermes::hermes_health_check,
hermes::hermes_capabilities,
hermes::hermes_api_proxy,
hermes::hermes_agent_run,
hermes::hermes_read_config,