用途:让 Clawdbot 与所有已安装技能保持最新,每天自动检查并应用更新,完成后发送更新摘要。
主要能力:设置每日 cron 任务,更新 Clawdbot 本体(通过 clawdbot doctor 或包管理器),更新全部已安装技能(clawdhub update --all),并向用户发送更新摘要。
使用方式:可让 Clawdbot 自行设置每日自动更新,或手动添加 cron 任务:clawdbot cron add --name "Daily Auto-Update" --cron "0 4 * * *" --tz "America/Los_Angeles" --session isolated --wake now --deliver --message "Run daily auto-updates: check for Clawdbot updates and update all skills. Report what was updated."。默认时间为凌晨 4:00,时区为系统默认,摘要发送到主会话。
更新机制:npm/pnpm/bun 安装使用 npm update -g clawdbot@latest(或 pnpm、bun 对应命令);源码安装使用 clawdbot update;更新后应运行 clawdbot doctor 应用迁移。技能更新使用 clawdhub update --all。
手动命令:clawdhub update --all --dry-run 仅检查不应用;clawdhub list 查看技能版本;clawdbot --version 查看 Clawdbot 版本。
限制与排障:更新未运行需检查 cron.enabled、Gateway 是否持续运行及 clawdbot cron list;更新失败摘要会包含错误,常见原因有权限、网络、包冲突。移除任务用 clawdbot cron remove "Daily Auto-Update",或在配置中设置 cron.enabled 为 false 临时禁用。其他细节暂未提供。