chore: move cron scripts to ~/.openclaw/cron/scripts
- Move scripts from ~/work/backup/ to ~/.openclaw/cron/scripts/ - Update cron jobs.json to use new script paths - Scripts: backup_openclaw.sh, evolver-run.sh, zq-sync.sh, git-auto-sync.sh, ai-conversation-logger.sh
This commit is contained in:
+31
-4
@@ -17,7 +17,7 @@
|
||||
"wakeMode": "now",
|
||||
"payload": {
|
||||
"kind": "agentTurn",
|
||||
"message": "执行备份脚本:/home/starmen1265/work/backup/backup_openclaw.sh"
|
||||
"message": "执行备份脚本:/home/starmen1265/.openclaw/cron/scripts/backup_openclaw.sh"
|
||||
},
|
||||
"delivery": {
|
||||
"mode": "announce"
|
||||
@@ -46,7 +46,7 @@
|
||||
"wakeMode": "now",
|
||||
"payload": {
|
||||
"kind": "agentTurn",
|
||||
"message": "执行每日 capability-evolver 任务:\n\n1. 执行脚本:bash ~/work/backup/evolver-run.sh\n2. 读取输出:cat ~/work/backup/evolver-output.txt\n3. 将完整的修改内容(包含 Git 备份信息和本次变更)通过 feishu 发送给蒋先生\n\n如果本次无任何变更,回复 '今日无变更' 即可。",
|
||||
"message": "执行每日 capability-evolver 任务:\n\n1. 执行脚本:bash ~/.openclaw/cron/scripts/evolver-run.sh\n2. 读取输出:cat ~/work/backup/evolver-output.txt\n3. 将完整的修改内容(包含 Git 备份信息和本次变更)通过 feishu 发送给蒋先生\n\n如果本次无任何变更,回复 '今日无变更' 即可。",
|
||||
"model": "g47f",
|
||||
"thinking": "off",
|
||||
"timeoutSeconds": 300
|
||||
@@ -80,7 +80,7 @@
|
||||
"wakeMode": "now",
|
||||
"payload": {
|
||||
"kind": "systemEvent",
|
||||
"text": "执行知识库同步:bash ~/work/backup/zq-sync.sh"
|
||||
"text": "执行知识库同步:bash ~/.openclaw/cron/scripts/zq-sync.sh"
|
||||
},
|
||||
"state": {
|
||||
"nextRunAtMs": 1772823600000,
|
||||
@@ -106,7 +106,7 @@
|
||||
"wakeMode": "now",
|
||||
"payload": {
|
||||
"kind": "systemEvent",
|
||||
"text": "执行 OpenClaw 备份:bash ~/work/backup/git-auto-sync.sh"
|
||||
"text": "执行 OpenClaw 备份:bash ~/.openclaw/cron/scripts/git-auto-sync.sh"
|
||||
},
|
||||
"state": {
|
||||
"nextRunAtMs": 1772823600000,
|
||||
@@ -115,6 +115,33 @@
|
||||
"lastDurationMs": 9616,
|
||||
"consecutiveErrors": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "3245fca7-045b-4977-8fab-020f6df2e453",
|
||||
"agentId": "haonan",
|
||||
"name": "ai-conversation-logger",
|
||||
"description": "每天早上7点整理与各个 AI 代理的对话记录",
|
||||
"enabled": true,
|
||||
"createdAtMs": 1772776369645,
|
||||
"updatedAtMs": 1772777284202,
|
||||
"schedule": {
|
||||
"kind": "cron",
|
||||
"expr": "0 7 * * *"
|
||||
},
|
||||
"sessionTarget": "isolated",
|
||||
"wakeMode": "now",
|
||||
"payload": {
|
||||
"kind": "agentTurn",
|
||||
"message": "请执行 ~/.openclaw/cron/scripts/ai-conversation-logger.sh 脚本来整理昨天的 AI 对话记录。完成后汇报整理结果。",
|
||||
"timeoutSeconds": 300
|
||||
},
|
||||
"delivery": {
|
||||
"mode": "announce",
|
||||
"channel": "last"
|
||||
},
|
||||
"state": {
|
||||
"nextRunAtMs": 1772838000000
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user