ClawSkills logoClawSkills

Clawdbot Release Check

检查新的 clawdbot 发布版本,并在每个新版本发布时通知一次。

介绍

# Clawdbot Release Check

从 GitHub 检查新的 clawdbot 版本,每个版本仅通知一次。不会反复打扰。

## 安装

```bash clawdhub install clawdbot-release-check ```

## 快速设置(使用 cron)

```bash # 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 ```

设置完成后,重启网关: ```bash launchctl kickstart -k gui/$(id -u)/com.clawdis.gateway ```

## 手动使用

```bash # 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 ```

## 工作原理

1. 从 `github.com/clawdbot/clawdbot/releases` 获取最新版本 2. 与你安装的版本(来自 `package.json`)进行比较 3. 如果版本落后,显示发布说明的要点 4. 保存状态以避免重复通知

## 示例输出

``` 🔄 **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`: ```json { "lastNotifiedVersion": "v2026.1.5-3", "lastCheckMs": 1704567890123 } ```

**缓存** — `~/.clawdbot/clawdbot-release-check-cache.json`: - 版本数据缓存 24 小时(节省 API 调用) - 每个版本提取一次要点(节省 token) - 使用 `--clear-cache` 强制刷新

## 配置

环境变量: - `CLAWDBOT_DIR` — clawdbot 源代码路径(自动检测自 `~/dev/clawdis`、`~/clawdbot` 或 npm 全局安装路径) - `CACHE_MAX_AGE_HOURS` — 缓存有效期(小时)(默认:24)

更多产品