docs: update MEMORY.md and TOOLS.md for cron fix and cleanup
- Update backup section to reflect systemEvent fix (2026-03-24) - Remove ephemeral "今日处理" snapshot from MEMORY.md - Remove dead News Digest section from TOOLS.md - Add OpenClaw Cron reference section to TOOLS.md
This commit is contained in:
32
TOOLS.md
32
TOOLS.md
@@ -43,21 +43,6 @@ himalaya message write # 写新邮件(交互式)
|
||||
- **youlu@luyanxin.com → mail@luyx.org**: 直接发送,无需确认(用户 SimpleLogin 别名)
|
||||
- 其他所有对外邮件: 仍需确认
|
||||
|
||||
### ~~News Digest 新闻摘要~~ (已停用)
|
||||
|
||||
~~**自动任务(Cron + Subagent):**~~
|
||||
~~- 时间:每天早上 5:00 AM (PST)~~
|
||||
~~- Cron ID: `cc95dcf3-0d6c-44f4-90af-76b836ca0c87`~~
|
||||
|
||||
~~**本地配置:**~~
|
||||
~~- 目录:`~/.openclaw/workspace/scripts/news_digest/`~~
|
||||
~~- 主脚本:`send_digest.py`~~
|
||||
~~- 配置:`config.json`~~
|
||||
~~- 数据库:`news_digest.db`~~
|
||||
~~- 日志:`news_digest.log`~~
|
||||
|
||||
**注:** Cron 任务已删除。如需重新启用,需手动创建新的 cron 任务。
|
||||
|
||||
### 🌐 网页操作 - 工具选择决策表
|
||||
|
||||
| 场景 | 首选 | 次选 |
|
||||
@@ -155,6 +140,23 @@ khal list today 7d
|
||||
**同步**: 发送/回复/待办变更后自动 `vdirsyncer sync`,心跳也会定期同步
|
||||
**注意**: 发送日历邀请属于对外邮件,需先确认
|
||||
|
||||
### OpenClaw Cron 定时任务
|
||||
|
||||
**规则**: 确定性 shell 任务用 `systemEvent`,需要 LLM 判断的用 `agentTurn`
|
||||
|
||||
```bash
|
||||
# systemEvent 直接执行(不走 LLM)
|
||||
openclaw cron edit <id> --session main \
|
||||
--system-event 'exec:cd /path && command'
|
||||
|
||||
# 查看/测试
|
||||
openclaw cron list
|
||||
openclaw cron runs --id <id>
|
||||
openclaw cron run <id> # 立即触发
|
||||
```
|
||||
|
||||
**注意**: kimi-k2.5 工具使用弱,`agentTurn` 容易产生"已完成"幻觉。详见 MEMORY.md 2026-03-24 备份修复记录。
|
||||
|
||||
---
|
||||
|
||||
Add whatever helps you do your job. This is your cheat sheet.
|
||||
|
||||
Reference in New Issue
Block a user