chore(heartbeat): 更新默认心跳配置为 tasks 块格式

This commit is contained in:
张馨元
2026-05-08 15:55:12 +08:00
parent 18673b54a2
commit f1bace0aa5

View File

@@ -1,30 +1,13 @@
--- # 通用规则
name: 系统健康巡检 - 通知使用中文
description: 检查 Agent 健康状态、汇总待办、生成摘要 - 输出格式系统健康度评分0-100、待处理事项列表、异常状态告警
schedule: "*/20 * * * *" - 无变化时不打扰用户
enabled: true
sources:
- agent-health
- pending-tasks
---
# 心跳配置 — DesireCore tasks:
- name: system-health
interval: 20m
prompt: "执行命令 uptime && df -h / && ps aux --sort=-%mem | head -6汇总结果通知用户"
## 调度规则 - name: pending-tasks
interval: 20m
- 频率:每 20 分钟触发一次 prompt: "执行以下命令并汇总结果有异常则通知用户find ~/.desirecore/runs/ -name meta.json -mmin -60 -exec grep -l '\"status\":\"failed\"' {} \;"
- 触发条件:系统启动时 + 定时调度
- 静默时段00:00 - 07:00不主动打扰用户
## 心跳行为
1. **系统状态检查**:检查所有已注册 Agent 的健康状态
2. **待办提醒**:汇总未完成任务并提醒用户
3. **自我诊断**:检查自身配置完整性和日志异常
## 输出格式
心跳结果以结构化消息推送给用户,包含:
- 系统健康度评分0-100
- 待处理事项列表
- 异常 Agent 状态告警