闲社服务运行正常AI智能体自动化平台
o

OpenClaw插件升级

技能标识:openclaw-plugin-upgrade

OpenClaw 插件升级助手。当用户说「升级 qqbot 插件」「更新 openclaw-qqbot」「qqbot 更新」「帮我升级插件」「升级 openclaw 插件」等相关语句时激活。支持通用 openclaw 插件(任意 npm 包)升级,以及 QQ 机器人插件(@tencent-connect/openclaw-qqbot)的专项升级(含完整文件验证、兼容 3.23+ 配置校验绕过、自动回滚)。

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

OpenClaw插件升级

OpenClaw 插件升级

通过 scripts/upgrade-plugin.sh 在 agent 内直接完成插件升级,无需用户在终端手动操作。

核心脚本

scripts/upgrade-plugin.sh — 通用插件升级脚本。

用法: upgrade-plugin.sh [选项]

必填:
npm 包名,如 @tencent-connect/openclaw-qqbot
插件目录名,如 openclaw-qqbot

选项:
--version 指定版本(跳过 update,走 reinstall)
--no-restart 不重启 gateway(热更新场景)
--verify-files 逗号分隔的相对路径,验证这些文件存在
--legacy-dirs 逗号分隔的旧目录名,安装前清理

升级流程

  1. 1. 检测策略:有安装记录 + 有目录 + 未指定版本 → plugins update;否则 → backup + plugins install --pin
  2. 兼容 3.23+:若配置含 plugin 的 channel key,自动创建临时配置副本绕过校验(不触发 gateway watcher)
  3. 验证:读取 package.json 版本号,并检查 --verify-files 指定的文件
  4. postinstall:若存在 scripts/postinstall-link-sdk.js 自动执行
  5. 重启:执行 gateway restart(--no-restart 跳过)

QQ 机器人插件(openclaw-qqbot)专项升级

标准升级(升到 latest):
bash
bash /scripts/upgrade-plugin.sh \
@tencent-connect/openclaw-qqbot \
openclaw-qqbot \
--verify-files dist/index.js,dist/src/gateway.js,dist/src/api.js,dist/src/admin-resolver.js \
--legacy-dirs qqbot,openclaw-qq

升级到指定版本:
bash
bash /scripts/upgrade-plugin.sh \
@tencent-connect/openclaw-qqbot \
openclaw-qqbot \
--version 1.2.3 \
--verify-files dist/index.js,dist/src/gateway.js,dist/src/api.js,dist/src/admin-resolver.js \
--legacy-dirs qqbot,openclaw-qq

不重启(热更新):
加 --no-restart,然后单独调用 gateway tool 重启。

= 本 skill 文件所在目录,即 SKILL.md 的 dirname。
执行前需用 exec 运行脚本,并将输出展示给用户。

执行后处理

脚本输出包含结构化行,解析示例:

  • - PLUGINNEWVERSION=1.2.3 → 新版本号
  • PLUGIN_REPORT=✅ ... → 结果摘要(直接转发给用户)

若脚本退出码非 0,告知用户升级失败并粘贴输出,建议检查网络和 npm registry。

通用插件示例(非 qqbot)

bash
bash /scripts/upgrade-plugin.sh \
my-org/my-openclaw-plugin \
my-plugin-id

无需 --verify-files 时脚本仍会验证 package.json 版本可读。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openclaw-plugin-upgrade-1775991422 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 openclaw-plugin-upgrade-1775991422 技能

通过命令行安装

skillhub install openclaw-plugin-upgrade-1775991422

下载

⬇ 下载 openclaw-plugin-upgrade v1.0.0(免费)

文件大小: 5.77 KB | 发布时间: 2026-4-13 11:20

v1.0.0 最新 2026-4-13 11:20
Initial release of openclaw-plugin-upgrade.

- Introduces an OpenClaw plugin upgrade assistant, activated by user requests to update OpenClaw or qqbot plugins.
- Supports upgrading any OpenClaw plugin (npm package) and specialized upgrade for the QQ bot plugin (@tencent-connect/openclaw-qqbot), including file verification, compatibility tweaks, and automatic rollback.
- Provides a unified script (`upgrade-plugin.sh`) to perform upgrades directly in the agent, no manual terminal input required.
- Special handling for openclaw-qqbot upgrades, with options for version targeting, hot updates, file verification, and cleaning obsolete directories.
- Script outputs structured upgrade results for user feedback and error reporting.
返回顶部