{"versions":{"1.0.0":{"name":"@qingchencloud/openclaw-updater","version":"1.0.0","description":"OpenClaw 汉化版更新检测插件 - 一键检测并升级到最新版本","author":{"name":"晴辰天下","email":"contact@qingchencloud.com"},"license":"UNLICENSED","private":false,"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"build":"tsup","dev":"tsup --watch","prepublishOnly":"npm run build","clean":"rimraf dist"},"keywords":["openclaw","updater","update","版本更新","自动升级","汉化版"],"homepage":"https://openclaw.qt.cool/","bugs":{"url":"https://openclaw.qt.cool/feedback"},"engines":{"node":">=18.0.0"},"peerDependencies":{"openclaw":">=0.5.0"},"devDependencies":{"rimraf":"^5.0.0","tsup":"^8.0.0","typescript":"^5.0.0"},"openclaw":{"extensions":["./dist/index.js"],"install":{"npmSpec":"@qingchencloud/openclaw-updater","defaultChoice":"npm"}},"_id":"@qingchencloud/openclaw-updater@1.0.0","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-pC/NN6m5DgYYoHR90er461SG+Erpm1o8YneoR3pdsbAErRZG4tr3N82yHvtfIgAK22ld16HccfvQH4thAx6iHw==","shasum":"b04c9a5a215637a11ee44a5ea599b84ea9214885","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@qingchencloud/openclaw-updater/-/openclaw-updater-1.0.0.tgz","fileCount":7,"unpackedSize":26629,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCFec6LU7oyMyZ5F5ekZNM7KE7RnKnfpRlyp/m5zv5K1gIgHLLHvZjq8rmQUye8vs9gosvn428F8paFiQfRpZQsHkw="}],"size":6204},"_npmUser":{"name":"anonymous","email":"keh5@vip.qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"keh5@vip.qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/openclaw-updater_1.0.0_1769929654617_0.5159846447072374"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-01T07:07:34.768Z","publish_time":1769929654768,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.0.0"},"name":"@qingchencloud/openclaw-updater","time":{"created":"2026-02-01T07:08:32.880Z","modified":"2026-02-01T07:08:33.501Z","1.0.0":"2026-02-01T07:07:34.768Z"},"readme":"# OpenClaw 汉化版更新检测插件\n\n[![npm](https://img.shields.io/npm/v/@qingchencloud/openclaw-updater)](https://www.npmjs.com/package/@qingchencloud/openclaw-updater)\n[![node](https://img.shields.io/node/v/@qingchencloud/openclaw-updater)](https://nodejs.org/)\n\n检测 [OpenClaw 汉化版](https://openclaw.qt.cool/) 更新并支持一键升级。\n\n## 功能特点\n\n- 🔍 **自动检测** - 启动时自动检查最新版本\n- 📊 **版本对比** - 显示当前版本与最新版本对比\n- 🚀 **一键升级** - 支持命令行直接升级\n- 🐳 **Docker 智能提示** - 检测 Docker 环境并给出正确升级方式\n- ✅ **全平台支持** - Windows / Linux / macOS\n\n## 安装\n\n```bash\nnpm install @qingchencloud/openclaw-updater\n```\n\n或使用 pnpm / yarn:\n\n```bash\npnpm add @qingchencloud/openclaw-updater\nyarn add @qingchencloud/openclaw-updater\n```\n\n## 使用方法\n\n### 自动检测\n\n安装插件后，OpenClaw 启动时会自动检测更新：\n\n```\n[更新检测] 发现新版本！\n  当前版本: v2026.2.1-zh.1 (全局安装)\n  最新版本: v2026.2.5-zh.1\n  \n  运行以下命令升级:\n  npm update -g @qingchencloud/openclaw-zh\n```\n\n### 手动检查\n\n使用 `/update` 命令手动检查更新：\n\n```\n/update\n```\n\n### 查看当前版本\n\n使用 `/version` 命令查看当前安装的版本：\n\n```\n/version\n```\n\n输出示例：\n```\nOpenClaw 汉化版: v2026.2.1-zh.1 (全局安装)\n```\n\n## 升级方式\n\n### npm 安装用户\n\n```bash\n# 全局安装\nnpm update -g @qingchencloud/openclaw-zh\n\n# 本地安装\nnpm update @qingchencloud/openclaw-zh\n```\n\n### Docker 用户\n\n```bash\n# 拉取最新镜像\ndocker pull ghcr.io/1186258278/openclaw-zh:latest\n\n# 重新创建容器\ndocker-compose down\ndocker-compose up -d\n```\n\n## 配置选项\n\n| 选项 | 类型 | 默认值 | 说明 |\n|------|------|--------|------|\n| `autoCheck` | boolean | `true` | 启动时自动检查更新 |\n| `checkInterval` | number | `24` | 自动检查间隔 (小时) |\n\n### 配置示例\n\n```bash\n# 禁用自动检查\nopenclaw config set plugins.openclaw-updater.autoCheck false\n\n# 设置检查间隔为 12 小时\nopenclaw config set plugins.openclaw-updater.checkInterval 12\n```\n\n## AI 工具\n\n本插件注册了两个 AI 可调用的工具：\n\n| 工具名 | 功能 |\n|--------|------|\n| `check_openclaw_update` | 检测是否有新版本 |\n| `update_openclaw` | 执行升级操作 |\n\n## 常见问题\n\n### Q: 为什么显示权限不足？\n\n全局安装的包升级可能需要管理员权限：\n- **Windows**: 使用管理员权限运行终端\n- **Linux/macOS**: 使用 `sudo npm update -g @qingchencloud/openclaw-zh`\n\n### Q: Docker 容器内如何升级？\n\nDocker 容器内无法直接升级，需要拉取新镜像并重建容器。插件会自动检测 Docker 环境并给出正确提示。\n\n### Q: 升级后需要重启吗？\n\n是的，升级完成后需要重启 OpenClaw 以使更新生效。\n\n## 相关链接\n\n- [OpenClaw 汉化版](https://openclaw.qt.cool/)\n- [晴辰导航](https://qt.cool/)\n\n---\n\n**晴辰天下** - 让 AI 更懂中文","users":{}}