mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-02 18:41:35 +08:00
refactor(hermes): delegate deep config to Hermes Web UI
Slim the Hermes surface in CC Switch to match its core positioning — cross-client provider switching and shared MCP/prompts/skills — and delegate deep configuration (model, agent, env, skills, cron, logs) to the Hermes Web UI at http://127.0.0.1:9119. - Drop AgentPanel/EnvPanel/ModelPanel and their mutation commands, hooks, types, and i18n keys across zh/en/ja. - Add open_hermes_web_ui Tauri command that probes /api/status and launches the URL in the system browser. Hermes injects its own session token into the returned HTML, so CC Switch doesn't need to touch auth. - Surface the launcher from the Hermes toolbar and the health banner via a shared useOpenHermesWebUI() hook; the offline error code is defined once per side and referenced across the contract. - Keep read-only access to model.provider so ProviderList can still highlight the active supplier; apply_switch_defaults continues to write the top-level model section when switching providers. Net diff: +152 / -1253.
This commit is contained in:
@@ -587,18 +587,6 @@ export interface HermesModelConfig {
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface HermesAgentConfig {
|
||||
max_turns?: number;
|
||||
reasoning_effort?: string;
|
||||
tool_use_enforcement?: string | boolean | string[];
|
||||
approvals_mode?: string;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface HermesEnvConfig {
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface HermesHealthWarning {
|
||||
code: string;
|
||||
message: string;
|
||||
|
||||
Reference in New Issue
Block a user