feat(hermes): add cron output settings

This commit is contained in:
晴天
2026-05-25 03:01:14 +08:00
parent e74df5f288
commit 92d64efd8e
8 changed files with 411 additions and 22 deletions

View File

@@ -592,6 +592,16 @@ export default {
hermesCheckpointsConfigRetentionDays: _('保留天数', 'Retention days', '保留天數'),
hermesCheckpointsConfigMinIntervalHours: _('自动清理最小间隔小时', 'Minimum auto-prune interval hours', '自動清理最小間隔小時'),
hermesCheckpointsConfigFootnote: _('这里写入 checkpoints.*。容量上限或单文件上限设为 0 表示关闭对应限制;其他 checkpoints 高级字段会保留在 raw YAML 中。', 'This writes checkpoints.*. Set total size cap or single-file cap to 0 to disable that limit. Other advanced checkpoint fields stay in raw YAML.', '這裡寫入 checkpoints.*。容量上限或單檔上限設為 0 表示關閉對應限制;其他 checkpoints 進階欄位會保留在 raw YAML 中。'),
hermesCronConfigTitle: _('定时任务输出', 'Cron job output', '定時任務輸出'),
hermesCronConfigDesc: _('控制定时任务结果是否包装任务名和提示,并限制同一轮最多并发任务数,降低无人值守长跑时的噪音和资源冲高。', 'Control whether scheduled job results are wrapped with task context, and cap jobs running in parallel per tick to reduce unattended-run noise and resource spikes.', '控制定時任務結果是否包裝任務名稱和提示,並限制同一輪最多並發任務數,降低無人值守長跑時的噪音和資源衝高。'),
hermesCronConfigStatusReady: _('结构化配置', 'structured settings', '結構化設定'),
hermesCronConfigSave: _('保存定时任务配置', 'Save cron settings', '儲存定時任務設定'),
hermesCronConfigSaveSuccess: _('定时任务输出配置已保存,建议重启 Hermes Gateway 生效', 'Cron job output settings saved. Restart Hermes Gateway to take effect.', '定時任務輸出設定已儲存,建議重啟 Hermes Gateway 生效'),
hermesCronConfigLoadFailed: _('加载定时任务输出配置失败', 'Load cron job output settings failed', '載入定時任務輸出設定失敗'),
hermesCronConfigSaveFailed: _('保存定时任务输出配置失败', 'Save cron job output settings failed', '儲存定時任務輸出設定失敗'),
hermesCronConfigWrapResponse: _('结果回传时附加任务名和系统提示', 'Add job name and system notice when delivering results', '結果回傳時附加任務名稱和系統提示'),
hermesCronConfigMaxParallelJobs: _('每轮最多并发任务数', 'Max parallel jobs per tick', '每輪最多並發任務數'),
hermesCronConfigFootnote: _('这里写入 cron.wrap_response 与 cron.max_parallel_jobs。并发数设为 0 表示不额外限制,由 Hermes 按上游默认语义写入 null其他 cron 高级字段会保留在 raw YAML 中。', 'This writes cron.wrap_response and cron.max_parallel_jobs. Set parallel jobs to 0 for no extra cap; Hermes writes null to match upstream semantics. Other advanced cron fields stay in raw YAML.', '這裡寫入 cron.wrap_response 與 cron.max_parallel_jobs。並發數設為 0 表示不額外限制,由 Hermes 依上游預設語義寫入 null其他 cron 進階欄位會保留在 raw YAML 中。'),
hermesApprovalsConfigTitle: _('审批安全', 'Approval safety', '審批安全'),
hermesApprovalsConfigDesc: _('控制危险命令、Cron 任务和破坏性 slash 命令的审批策略,避免无人值守长跑任务误放行高风险操作。', 'Control approval policy for dangerous commands, cron jobs, and destructive slash commands so unattended long runs do not approve risky operations by mistake.', '控制危險命令、Cron 任務和破壞性 slash 命令的審批策略,避免無人值守長跑任務誤放行高風險操作。'),
hermesApprovalsConfigStatusReady: _('结构化配置', 'structured settings', '結構化設定'),