mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-29 04:10:00 +08:00
之前 hermes_read_config 只读 5 字段(model/base_url/provider/api_key/config_exists),
为「快速面板」服务。Hermes Gateway 实际有 14+ 个顶层配置项,ClawPanel 完全没读到。
本次新增 hermes_read_config_full 命令,作为高级配置编辑器的数据源。
## 后端实现
- 加 serde_yaml 0.9 依赖
- 新命令 hermes_read_config_full:
· 用 serde_yaml 完整解析 config.yaml
· 转 JSON 返回 { exists, raw, config, highlights }
· highlights 字段单独抽出 14 个高价值顶层字段:
streaming / stt_enabled / quick_commands / reset_triggers /
default_reset_policy / unauthorized_dm_behavior /
session_store_max_age_days / always_log_local /
group_sessions_per_user / thread_sessions_per_user /
platforms / dashboard / memory / skills
· 已注册到 lib.rs
## 前端
- tauri-api.js 加 hermesReadConfigFull wrapper
## Web 模式
- dev-api.js 加 hermes_read_config_full handler(Web 模式不强制 yaml 解析,
返回 raw + null highlights,前端按需 fallback)
## 后续
- 实际「高级配置编辑器」UI 后续单独开 — 本次仅打通数据通道
- 与轻量版 hermes_read_config 互补共存,model 配置页继续用轻量版
43 lines
1.2 KiB
TOML
43 lines
1.2 KiB
TOML
[package]
|
|
name = "clawpanel"
|
|
version = "0.15.3"
|
|
edition = "2021"
|
|
description = "ClawPanel - OpenClaw 可视化管理面板"
|
|
authors = ["qingchencloud"]
|
|
repository = "https://github.com/qingchencloud/clawpanel"
|
|
homepage = "https://github.com/qingchencloud/clawpanel"
|
|
license = "AGPL-3.0"
|
|
|
|
[lib]
|
|
name = "clawpanel_lib"
|
|
crate-type = ["lib", "cdylib", "staticlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = ["tray-icon", "image-png"] }
|
|
tauri-plugin-shell = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_yaml = "0.9"
|
|
dirs = "6"
|
|
chrono = "0.4"
|
|
zip = { version = "2", default-features = false, features = ["deflate"] }
|
|
reqwest = { version = "0.12", features = ["json", "rustls-tls", "stream", "gzip", "brotli", "deflate"], default-features = false }
|
|
futures-util = "0.3"
|
|
ed25519-dalek = { version = "2", features = ["rand_core"] }
|
|
sha2 = "0.10"
|
|
rand = "0.8"
|
|
base64 = "0.22"
|
|
urlencoding = "2"
|
|
regex = "1"
|
|
tokio = { version = "1", features = ["process", "time", "sync"] }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
flate2 = "1"
|
|
tar = "0.4"
|
|
|
|
[target.'cfg(any(target_os = "macos", windows, target_os = "linux"))'.dependencies]
|
|
tauri-plugin-autostart = "2"
|