用途:Auto-Updater 用于让 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,时区为系统默认,摘要发送至主会话。更新 Clawdbot 时,npm/pnpm/bun 安装使用 npm update -g clawdbot@latest 等命令,源码安装使用 clawdbot update,更新后需运行 clawdbot doctor 应用迁移。技能更新使用 clawdhub update --all。
适用场景:希望自动维护 Clawdbot 与技能版本、减少手动更新操作的用户。
限制与排查:更新未运行时可检查 cron.enabled、Gateway 是否持续运行及 cron 任务是否存在;更新失败时摘要会包含错误,常见原因包括权限、网络或包冲突。可通过 clawdbot cron remove "Daily Auto-Update" 移除任务,或在配置中设置 cron.enabled 为 false 临时禁用。