feat(hermes): add kanban profile routing controls

This commit is contained in:
晴天
2026-05-27 01:14:10 +08:00
parent ae9d6e8844
commit 8703dffc5b
6 changed files with 168 additions and 1 deletions

View File

@@ -1044,8 +1044,11 @@ export default {
hermesKanbanConfigAutoDecomposePerTick: _('每轮自动拆解数量', 'Auto decompose per tick', '每輪自動拆解數量'),
hermesKanbanConfigWorkerLogRotateBytes: _('Worker 日志轮转大小(字节)', 'Worker log rotation size (bytes)', 'Worker 日誌輪轉大小(位元組)'),
hermesKanbanConfigWorkerLogBackupCount: _('Worker 日志备份数量', 'Worker log backups', 'Worker 日誌備份數量'),
hermesKanbanConfigOrchestratorProfile: _('拆解任务使用的 Profile', 'Profile for decomposing tasks', '拆解任務使用的 Profile'),
hermesKanbanConfigDefaultAssignee: _('无法匹配时分配给', 'Assign to when no match is found', '無法匹配時分配給'),
hermesKanbanConfigProfileDefault: _('留空使用当前默认 Profile', 'Leave empty to use the current default profile', '留空使用目前預設 Profile'),
hermesKanbanConfigDispatchStaleTimeoutSeconds: _('无心跳回收时间(秒)', 'Heartbeat reclaim timeout (s)', '無心跳回收時間(秒)'),
hermesKanbanConfigFootnote: _('写入 kanban.dispatch_in_gateway、dispatch_interval_seconds、max_spawn、max_in_progress、failure_limit、auto_decompose、auto_decompose_per_tick、worker_log_rotate_bytes、worker_log_backup_count、dispatch_stale_timeout_seconds。两个并发上限填 0 表示不写入限制Worker 日志超过轮转大小会在下次启动前处理,备份数量填 0 表示超限时不保留旧日志;无心跳回收填 0 表示关闭自动回收。', 'Writes kanban.dispatch_in_gateway, dispatch_interval_seconds, max_spawn, max_in_progress, failure_limit, auto_decompose, auto_decompose_per_tick, worker_log_rotate_bytes, worker_log_backup_count, and dispatch_stale_timeout_seconds. Set concurrency caps to 0 to omit limits; worker logs are handled before the next worker starts after they exceed the rotation size, and 0 backups means old logs are not kept; set heartbeat reclaim to 0 to disable automatic reclaim.', '寫入 kanban.dispatch_in_gateway、dispatch_interval_seconds、max_spawn、max_in_progress、failure_limit、auto_decompose、auto_decompose_per_tick、worker_log_rotate_bytes、worker_log_backup_count、dispatch_stale_timeout_seconds。兩個並發上限填 0 表示不寫入限制Worker 日誌超過輪轉大小會在下次啟動前處理,備份數量填 0 表示超限時不保留舊日誌;無心跳回收填 0 表示關閉自動回收。'),
hermesKanbanConfigFootnote: _('写入 kanban.dispatch_in_gateway、dispatch_interval_seconds、max_spawn、max_in_progress、failure_limit、auto_decompose、auto_decompose_per_tick、worker_log_rotate_bytes、worker_log_backup_count、orchestrator_profile、default_assignee、dispatch_stale_timeout_seconds。两个并发上限填 0 表示不写入限制Worker 日志超过轮转大小会在下次启动前处理,备份数量填 0 表示超限时不保留旧日志;Profile 路由留空时使用 Hermes 当前默认 Profile无心跳回收填 0 表示关闭自动回收。', 'Writes kanban.dispatch_in_gateway, dispatch_interval_seconds, max_spawn, max_in_progress, failure_limit, auto_decompose, auto_decompose_per_tick, worker_log_rotate_bytes, worker_log_backup_count, orchestrator_profile, default_assignee, and dispatch_stale_timeout_seconds. Set concurrency caps to 0 to omit limits; worker logs are handled before the next worker starts after they exceed the rotation size, and 0 backups means old logs are not kept; empty profile routing uses Hermes current default profile; set heartbeat reclaim to 0 to disable automatic reclaim.', '寫入 kanban.dispatch_in_gateway、dispatch_interval_seconds、max_spawn、max_in_progress、failure_limit、auto_decompose、auto_decompose_per_tick、worker_log_rotate_bytes、worker_log_backup_count、orchestrator_profile、default_assignee、dispatch_stale_timeout_seconds。兩個並發上限填 0 表示不寫入限制Worker 日誌超過輪轉大小會在下次啟動前處理,備份數量填 0 表示超限時不保留舊日誌;Profile 路由留空時使用 Hermes 目前預設 Profile無心跳回收填 0 表示關閉自動回收。'),
hermesSecurityConfigTitle: _('Tirith 安全扫描', 'Tirith security scanning', 'Tirith 安全掃描'),
hermesSecurityConfigDesc: _('控制终端命令执行前的 Tirith 内容扫描,拦截明显的 URL 伪装、管道执行和注入风险。', 'Control Tirith content scanning before terminal commands run to catch obvious URL spoofing, pipe-to-shell, and injection risks.', '控制終端命令執行前的 Tirith 內容掃描,攔截明顯的 URL 偽裝、管道執行和注入風險。'),
hermesSecurityConfigStatusReady: _('结构化配置', 'structured settings', '結構化設定'),