qwencloud-update-check
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseQwen 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
工作原理
- Reads the installed version from (the
version.jsonfield bundled with this skill).version - Fetches the latest version from the remote repository (GitHub raw content).
- Compares versions using semver. Returns if a newer version exists.
{"has_update": true} - Records the check timestamp () in
last_interactionto rate-limit network requests to once every 24 hours.<repo_root>/.agents/state.json
- 从(该技能捆绑的
version.json字段)中读取已安装版本。version - 从远程仓库(GitHub原始内容)拉取最新版本。
- 使用semver比对版本。如果存在更新的版本,则返回 。
{"has_update": true} - 在 中记录检查时间戳(
<repo_root>/.agents/state.json),将网络请求频率限制为每24小时一次。last_interaction
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-responseCLI Arguments
CLI 参数
| Argument | Description |
|---|---|
| Print result as formatted JSON to stdout |
| Bypass 24-hour rate limit and check immediately |
| 参数 | 描述 |
|---|---|
| 将格式化后的JSON结果打印到标准输出 |
| 绕过24小时频率限制,立即执行检查 |
Output Format
输出格式
json
{
"has_update": true
}json
{
"has_update": true
}Configuration
配置
| Environment Variable | Default | Description |
|---|---|---|
| | GitHub repo for remote version check |
| 环境变量 | 默认值 | 描述 |
|---|---|---|
| | 用于远程版本检查的GitHub仓库 |
State File
状态文件
The timestamp is stored at for rate-limiting. Check results are not cached in the state file. This file persists across sessions and is shared with for fatigue control.
last_interaction<repo_root>/.agents/state.jsongossamer.pylast_interaction<repo_root>/.agents/state.jsongossamer.py