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