feat(hermes): add agent runtime guard settings

This commit is contained in:
晴天
2026-05-25 01:29:28 +08:00
parent 4766a99d87
commit 77cadf9e0a
8 changed files with 724 additions and 18 deletions

View File

@@ -674,6 +674,26 @@ export default {
hermesAgentToolsetsConfigSaveFailed: _('保存全局工具集配置失败', 'Save global toolset settings failed', '儲存全域工具集設定失敗'),
hermesAgentToolsetsConfigDisabledToolsets: _('禁用工具集(每行一个)', 'Disabled toolsets, one per line', '停用工具集(每行一個)'),
hermesAgentToolsetsConfigFootnote: _('常见值包括 terminal、browser、memory、web。该设置会覆盖平台级工具配置留空表示不做全局禁用。高级 agent 字段会保留在 raw YAML 中。', 'Common values include terminal, browser, memory, and web. This setting overrides platform-level tool configuration; leave it empty for no global disables. Advanced agent fields stay in raw YAML.', '常見值包括 terminal、browser、memory、web。此設定會覆蓋平台級工具設定留空表示不做全域停用。進階 agent 欄位會保留在 raw YAML 中。'),
hermesAgentRuntimeConfigTitle: _('Agent 长跑保护', 'Agent runtime guards', 'Agent 長跑保護'),
hermesAgentRuntimeConfigDesc: _('控制 Agent 轮次上限、Gateway 等待、重启排水、重试、超时预警、澄清等待和自动续跑新鲜度,减少长时间任务无人值守失控。', 'Control turn limits, Gateway waits, restart drain, retries, timeout warnings, clarification waits, and auto-continue freshness to keep unattended long runs bounded.', '控制 Agent 輪次上限、Gateway 等待、重啟排水、重試、逾時預警、澄清等待和自動續跑新鮮度,減少長時間任務無人值守失控。'),
hermesAgentRuntimeConfigStatusReady: _('结构化配置', 'structured settings', '結構化設定'),
hermesAgentRuntimeConfigSave: _('保存长跑保护', 'Save runtime guards', '儲存長跑保護'),
hermesAgentRuntimeConfigSaveSuccess: _('Agent 长跑保护配置已保存,建议重启 Hermes Gateway 生效', 'Agent runtime guard settings saved. Restart Hermes Gateway to take effect.', 'Agent 長跑保護設定已儲存,建議重啟 Hermes Gateway 生效'),
hermesAgentRuntimeConfigLoadFailed: _('加载 Agent 长跑保护配置失败', 'Load agent runtime guard settings failed', '載入 Agent 長跑保護設定失敗'),
hermesAgentRuntimeConfigSaveFailed: _('保存 Agent 长跑保护配置失败', 'Save agent runtime guard settings failed', '儲存 Agent 長跑保護設定失敗'),
hermesAgentRuntimeConfigMaxTurns: _('单次运行最大轮数', 'Max turns per run', '單次執行最大輪數'),
hermesAgentRuntimeConfigGatewayTimeout: _('Gateway 等待超时(秒)', 'Gateway timeout (seconds)', 'Gateway 等待逾時(秒)'),
hermesAgentRuntimeConfigRestartDrainTimeout: _('重启排水等待(秒)', 'Restart drain timeout (seconds)', '重啟排水等待(秒)'),
hermesAgentRuntimeConfigApiMaxRetries: _('API 最大重试次数', 'API max retries', 'API 最大重試次數'),
hermesAgentRuntimeConfigGatewayTimeoutWarning: _('超时预警阈值(秒)', 'Timeout warning threshold (seconds)', '逾時預警閾值(秒)'),
hermesAgentRuntimeConfigClarifyTimeout: _('澄清等待超时(秒)', 'Clarification timeout (seconds)', '澄清等待逾時(秒)'),
hermesAgentRuntimeConfigGatewayNotifyInterval: _('Gateway 心跳通知间隔(秒)', 'Gateway notify interval (seconds)', 'Gateway 心跳通知間隔(秒)'),
hermesAgentRuntimeConfigGatewayAutoContinueFreshness: _('自动续跑新鲜度(秒)', 'Auto-continue freshness (seconds)', '自動續跑新鮮度(秒)'),
hermesAgentRuntimeConfigImageInputMode: _('图片输入模式', 'Image input mode', '圖片輸入模式'),
hermesAgentRuntimeConfigImageInputMode_auto: _('自动选择', 'Auto', '自動選擇'),
hermesAgentRuntimeConfigImageInputMode_native: _('原生图片输入', 'Native image input', '原生圖片輸入'),
hermesAgentRuntimeConfigImageInputMode_text: _('转文本描述', 'Convert to text description', '轉文字描述'),
hermesAgentRuntimeConfigFootnote: _('这些字段会写入 agent.*,影响 CLI 与 Gateway 长跑行为。将可选超时设为 0 表示关闭对应限制或通知disabled_toolsets 和其他高级 agent 字段会保留在 raw YAML 中。', 'These fields are written under agent.* and affect CLI and Gateway long-running behavior. Set optional timeouts to 0 to disable the corresponding limit or notification. disabled_toolsets and other advanced agent fields stay in raw YAML.', '這些欄位會寫入 agent.*,影響 CLI 與 Gateway 長跑行為。將可選逾時設為 0 表示關閉對應限制或通知disabled_toolsets 和其他進階 agent 欄位會保留在 raw YAML 中。'),
hermesUnauthorizedDmConfigTitle: _('未授权私信', 'Unauthorized DMs', '未授權私訊'),
hermesUnauthorizedDmConfigDesc: _('控制陌生用户直接私信 Hermes 时的全局响应策略,适合公网部署时减少无效打扰或保留配对入口。', 'Control the global response when unknown users send Hermes a direct message. Useful for public deployments that need fewer unsolicited replies or a pairing entry point.', '控制陌生使用者直接私訊 Hermes 時的全域回應策略,適合公開部署時減少無效打擾或保留配對入口。'),
hermesUnauthorizedDmConfigStatusReady: _('结构化配置', 'structured settings', '結構化設定'),