Clawdbot Release Check技能使用说明
2026-03-29
新闻来源:网淘吧
围观:9
电脑广告
手机广告
Clawdbot 发布检查
检查 GitHub 上的新 Clawdbot 版本,并在每个新版本发布时通知您一次,不会反复打扰。
安装
clawdhub install clawdbot-release-check
快速设置(使用 cron)
# Add daily update check at 9am, notify via Telegram
{baseDir}/scripts/setup.sh --telegram YOUR_TELEGRAM_ID
# Custom hour (e.g., 8am)
{baseDir}/scripts/setup.sh --hour 8 --telegram YOUR_TELEGRAM_ID
# Remove cron job
{baseDir}/scripts/setup.sh --uninstall
设置完成后,重启网关:

launchctl kickstart -k gui/$(id -u)/com.clawdis.gateway
手动使用
# Check for updates (silent if up-to-date or already notified)
{baseDir}/scripts/check.sh
# Show version info
{baseDir}/scripts/check.sh --status
# Force notification (bypass "already notified" state)
{baseDir}/scripts/check.sh --force
# Show highlights from ALL missed releases
{baseDir}/scripts/check.sh --all-highlights
# Clear state (will notify again on next check)
{baseDir}/scripts/check.sh --reset
# Help
{baseDir}/scripts/check.sh --help
工作原理
- 从以下地址获取最新发布版本
github.com/clawdbot/clawdbot/releases - 与您已安装的版本(来自
package.json)进行比较 - 如果版本落后,则显示发布说明中的要点
- 保存状态以防止重复通知
示例输出
🔄 **Clawdbot Update Available!**
Current: `2.0.0-beta5`
Latest: `2026.1.5-3`
_(3 versions behind)_
**Highlights:**
- Models: add image-specific model config
- Agent tools: new `image` tool
- Config: default model shorthands
🔗 https://github.com/clawdbot/clawdbot/releases/tag/v2026.1.5-3
To update: `cd /path/to/clawdis && git pull && pnpm install && pnpm build`
文件
状态文件—~/.clawdbot/clawdbot-release-check-state.json:
{
"lastNotifiedVersion": "v2026.1.5-3",
"lastCheckMs": 1704567890123
}
缓存文件—~/.clawdbot/clawdbot-release-check-cache.json:
- 发布数据缓存24小时(节省API调用次数)
- 每个版本仅提取一次亮点(节省令牌)
- 使用
--clear-cache命令强制刷新
配置
环境变量:
CLAWDBOT_DIR— clawdbot源代码路径(自动检测自~/dev/clawdis、~/clawdbot或npm全局安装目录)CACHE_MAX_AGE_HOURS— 缓存存活时间(单位:小时,默认值:24)
文章底部电脑广告
手机广告位-内容正文底部


微信扫一扫,打赏作者吧~