qwencloud-update-check

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Qwen Update Checker

Qwen 更新检查器

Automatic version checker for the qwencloud/qwencloud-ai skill pack. Compares the locally installed version against the latest release on GitHub and notifies the user when an update is available.
This skill is referenced by all other qwencloud/qwencloud-ai. When any skill runs, it checks if this skill is installed and delegates version checking here.
qwencloud/qwencloud-ai 技能包的自动版本检查工具。会将本地安装的版本与GitHub上的最新发行版进行比对,当有可用更新时通知用户。
本技能被所有其他qwencloud/qwencloud-ai技能引用。任意技能运行时,都会检查是否安装了本技能,并将版本检查工作委托给本技能。

How It Works

工作原理

  1. Reads the installed version from
    version.json
    (the
    version
    field bundled with this skill).
  2. Fetches the latest version from the remote repository (GitHub raw content).
  3. Compares versions using semver. Returns
    {"has_update": true}
    if a newer version exists.
  4. Records the check timestamp (
    last_interaction
    ) in
    <repo_root>/.agents/state.json
    to rate-limit network requests to once every 24 hours.
  1. version.json
    (该技能捆绑的
    version
    字段)中读取已安装版本。
  2. 从远程仓库(GitHub原始内容)拉取最新版本。
  3. 使用semver比对版本。如果存在更新的版本,则返回
    {"has_update": true}
  4. <repo_root>/.agents/state.json
    中记录检查时间戳(
    last_interaction
    ),将网络请求频率限制为每24小时一次。

Usage

使用方法

Other skills invoke this script automatically. You can also run it manually:
bash
python3 <path-to-this-skill>/scripts/check_update.py --print-response
其他技能会自动调用该脚本。你也可以手动运行:
bash
python3 <path-to-this-skill>/scripts/check_update.py --print-response

CLI Arguments

CLI 参数

ArgumentDescription
--print-response
Print result as formatted JSON to stdout
--force
Bypass 24-hour rate limit and check immediately
参数描述
--print-response
将格式化后的JSON结果打印到标准输出
--force
绕过24小时频率限制,立即执行检查

Output Format

输出格式

json
{
  "has_update": true
}
json
{
  "has_update": true
}

Configuration

配置

Environment VariableDefaultDescription
QWEN_SKILLS_REPO
qwencloud/qwencloud-ai
GitHub repo for remote version check
环境变量默认值描述
QWEN_SKILLS_REPO
qwencloud/qwencloud-ai
用于远程版本检查的GitHub仓库

State File

状态文件

The
last_interaction
timestamp is stored at
<repo_root>/.agents/state.json
for rate-limiting. Check results are not cached in the state file. This file persists across sessions and is shared with
gossamer.py
for fatigue control.
last_interaction
时间戳存储在
<repo_root>/.agents/state.json
中用于频率限制。检查结果不会缓存到状态文件中。该文件会在会话之间持久保存,并与
gossamer.py
共享以控制疲劳度。