From aa7078d5bbff3cdee38bcc460a6f3a3523ca5dd8 Mon Sep 17 00:00:00 2001
From: TevinClaw <510129976@qq.com>
Date: Sat, 14 Mar 2026 12:51:47 +0800
Subject: [PATCH] 添加定时任务到git

---
 .gitignore     |    4 +-
 cron/jobs.json |   58 +++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index 6a5f57c..bc3a285 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,7 +27,6 @@
 devices/
 subagents/
 identity/
-cron/
 memory/
 feishu/
 
@@ -54,12 +53,13 @@
 openclaw.json.bak*
 
 # ============================================
-# 日志与临时文件
+# 日志、临时或备份文件
 # ============================================
 
 *.log
 *.tmp
 *.temp
+*.bak
 .cache/
 update-check.json
 
diff --git a/cron/jobs.json b/cron/jobs.json
new file mode 100644
index 0000000..c57e5a5
--- /dev/null
+++ b/cron/jobs.json
@@ -0,0 +1,58 @@
+{
+  "version": 1,
+  "jobs": [
+    {
+      "id": "f83b0227-20d1-405b-b4c0-9248dad6d959",
+      "name": "AI早报",
+      "description": "每天早上9点AI早报",
+      "enabled": true,
+      "createdAtMs": 1773390853562,
+      "updatedAtMs": 1773392478112,
+      "schedule": {
+        "kind": "cron",
+        "expr": "0 9 * * *",
+        "tz": "Asia/Shanghai"
+      },
+      "sessionTarget": "isolated",
+      "wakeMode": "now",
+      "payload": {
+        "kind": "agentTurn",
+        "message": "搜索昨天AI领域的重要新闻,整理成早报发送给用户。\n\n**搜索要求(必须遵守):**\n1. **优先使用 Tavily 搜索** - 调用 ~/.openclaw/workspace/skills/tavily-search/scripts/tavily_search.py 脚本进行搜索\n2. 如 Tavily 不可用,再使用 web_search 作为备选\n3. 确保搜索结果包含 AI 行业、AI编程、国产大模型三个领域\n\n**三个细分领域(按重要性灵活分配,共7条):**\n1. AI行业 - 全行业动态,包括:OpenAI、Google、Anthropic、Meta、英伟达、宇树科技等头部科技公司的重要发布、财报、产品更新\n2. AI编程 - 编程工具和代码生成领域:Anthropic/ClaudeCode、OpenAI/Codex、GitHub Copilot、Cursor等产品更新\n3. 国产大模型 - 国内AI进展:DeepSeek、豆包、Kimi、智谱AI、通义千问、文心一言等模型的发布、更新、融资动态\n\n**输出要求:**\n- 总计7条最重要新闻,按重要性排序\n- 不强制每个分类都有\n- 每条包含:标题、一句话摘要、来源\n- 用中文输出,格式清晰\n- 大标题不要图标\n\n**搜索命令示例:**\npython ~/.openclaw/workspace/skills/tavily-search/scripts/tavily_search.py \"AI news March 13 2026\" --max-results 10 --depth advanced"
+      },
+      "delivery": {
+        "mode": "announce",
+        "channel": "feishu",
+        "to": "ou_53994d69bfaad1bfa5ca4c658de5b23f"
+      },
+      "state": {
+        "nextRunAtMs": 1773536400000
+      }
+    },
+    {
+      "id": "592ac43d-f84e-4544-930b-408e935521fe",
+      "name": "memory-weekly-maintenance",
+      "enabled": true,
+      "createdAtMs": 1773409688576,
+      "updatedAtMs": 1773409688576,
+      "schedule": {
+        "kind": "cron",
+        "expr": "30 9 * * 1",
+        "tz": "Asia/Shanghai"
+      },
+      "sessionTarget": "isolated",
+      "wakeMode": "now",
+      "payload": {
+        "kind": "agentTurn",
+        "message": "执行三层记忆每周维护:1.运行memory-merger整理L2→L1 2.检查L0大小 3.生成周报发送给用户"
+      },
+      "delivery": {
+        "mode": "announce",
+        "channel": "feishu",
+        "to": "ou_53994d69bfaad1bfa5ca4c658de5b23f"
+      },
+      "state": {
+        "nextRunAtMs": 1773624600000
+      }
+    }
+  ]
+}
\ No newline at end of file

--
Gitblit v1.9.1