openclaw-weixin 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,19 @@
6
6
 
7
7
  ## [未发布]
8
8
 
9
+ ## [3.0.1] - 2026-08-02
10
+
11
+ ### 变更
12
+
13
+ - 将 npm 发布绑定到受保护的 `npm-publish` environment;自动检查全部通过后需由
14
+ 仓库管理员审批,且 OIDC 发布权限仅授予审批后的发布 job。
15
+ - npmjs 发布成功后由同一工作流同步发布 GitHub Packages 镜像
16
+ `@newfuture/openclaw-weixin`,再创建使用中英文变更日志说明的 GitHub Release;
17
+ 重试时会分别跳过已存在的包版本并补齐缺失目标;包括 registry 为空的情况,前一
18
+ 仓库版本尚未完成镜像时不会发布后续 GitHub Packages 版本。
19
+ - 将最低支持的 OpenClaw 宿主扩展至 `2026.6.1`,保留 `2026.7.1` 作为常规开发
20
+ 基线,并增加最低宿主版本的完整 CI 构建与测试。
21
+
9
22
  ## [3.0.0] - 2026-07-31
10
23
 
11
24
  ### 新增
package/CHANGELOG_EN.md CHANGED
@@ -6,6 +6,22 @@ This project follows the [Keep a Changelog](https://keepachangelog.com/) format.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [3.0.1] - 2026-08-02
10
+
11
+ ### Changed
12
+
13
+ - Bound npm publishing to the protected `npm-publish` environment, requiring a
14
+ repository administrator's approval after automated validation and granting
15
+ OIDC publish permission only to the approved job.
16
+ - Made the same workflow mirror each npmjs release to GitHub Packages as
17
+ `@newfuture/openclaw-weixin`, then create a GitHub Release from the bilingual
18
+ changelogs; retries skip existing package versions and reconcile missing
19
+ destinations; publication remains blocked, including when the registry is
20
+ empty, until the preceding repository release reaches GitHub Packages.
21
+ - Expanded the minimum supported OpenClaw host to `2026.6.1`, retained
22
+ `2026.7.1` as the normal development baseline, and added a full minimum-host
23
+ CI build and test.
24
+
9
25
  ## [3.0.0] - 2026-07-31
10
26
 
11
27
  ### Added
package/README.md CHANGED
@@ -7,25 +7,19 @@
7
7
 
8
8
  ## 安装或替换
9
9
 
10
- 需要 [OpenClaw](https://docs.openclaw.ai/install) `>=2026.7.1`。请使用运行
10
+ 需要 [OpenClaw](https://docs.openclaw.ai/install) `>=2026.6.1`。请使用运行
11
11
  OpenClaw 的同一用户,并在同一环境中执行。
12
12
 
13
13
  **命令行——一行安装或替换:**
14
14
 
15
+ > 提示:**不要**先卸载 `@tencent-weixin/openclaw-weixin`;直接原位替换通常会保留现有配置和登录状态。
16
+
15
17
  ```bash
16
18
  openclaw plugins install npm:openclaw-weixin --force
17
19
  ```
18
20
 
19
21
  <details>
20
- <summary>替换腾讯官方插件?先看这里</summary>
21
-
22
- > **警告:**不要先卸载 `@tencent-weixin/openclaw-weixin` 或重新扫码。直接执行
23
- > 上面的命令;原位替换通常会保留现有配置和登录状态。
24
-
25
- </details>
26
-
27
- <details>
28
- <summary>绑定微信账号</summary>
22
+ <summary>绑定微信账号(全新安装)</summary>
29
23
 
30
24
  如需将微信账号绑定到当前 OpenClaw,请启用插件并开始扫码绑定:
31
25
 
@@ -39,7 +33,7 @@ openclaw channels login --channel openclaw-weixin
39
33
  </details>
40
34
 
41
35
  <details>
42
- <summary>重载并检查</summary>
36
+ <summary>重载检查</summary>
43
37
 
44
38
  确保正在运行的 Gateway 已重载插件。必要时重启承载 OpenClaw 的服务、容器或
45
39
  Pod,然后执行:
@@ -53,34 +47,34 @@ openclaw channels status --probe
53
47
 
54
48
  </details>
55
49
 
56
- ### 通过 Agent 安装
57
50
 
58
- OpenClaw `>=2026.7.2-beta.1` 时,如果已设置 `commands.plugins: true`,并且你是
59
- owner/admin,直接发送:
51
+ ### 提示词自动安装
52
+
53
+ 将下面的提示词直接发送 OpenClaw Agent,用于安全安装或原位替换插件:
60
54
 
61
55
  ```text
62
- /plugins install npm:openclaw-weixin --force
56
+ 请在不改变现有配置和登录状态的前提下,安装或原位替换 `openclaw-weixin`:
57
+ 1. 先确认 `openclaw --version` 不低于 2026.6.1。
58
+ 2. 我信任 npm 来源 `openclaw-weixin`。执行
59
+ `openclaw plugins install npm:openclaw-weixin --force`,不要先卸载。
60
+ 3. 仅在 `openclaw plugins list` 显示已停用时启用插件。不要主动重启 Gateway 或发起
61
+ 扫码登录;安装可能使启用了配置重载的受管 Gateway 自动重启。若已自动重启,执行
62
+ `openclaw channels status --probe`;否则询问是否重启 Gateway。
63
+ 4. 只报告结果;若未登录过微信,提示我手动运行
64
+ `openclaw channels login --channel openclaw-weixin` 扫码绑定微信。
63
65
  ```
64
66
 
65
- 然后按上面的**重载并检查**操作。
67
+ ### 通过 Agent 命令安装
66
68
 
67
- ### Shell Agent 提示词
68
-
69
- 将下面的提示词直接发送给有 Shell 权限的 Agent,用于安全安装或原位替换插件。
70
- 安装期间,启用了配置重载的受管 Gateway 可能自动重启;否则由你按 Agent 的提示重载,
71
- 扫码仍由你完成:
69
+ OpenClaw `>=2026.7.2-beta.1` 时,如果已设置 `commands.plugins: true`,并且你是
70
+ owner/admin,直接发送:
72
71
 
73
72
  ```text
74
- 请在不改变现有配置和登录状态的前提下,安装或原位替换 `openclaw-weixin`。先确认
75
- `openclaw --version` 不低于 2026.7.1。我信任 npm 来源 `openclaw-weixin`。执行
76
- `openclaw plugins install npm:openclaw-weixin --force`;不要先卸载,也不要查看
77
- 或复制工作区、凭据及账号状态文件。仅在 `openclaw plugins list` 显示已停用时
78
- 启用插件。不要主动重启 Gateway 或发起扫码登录;安装可能使启用了配置重载的受管
79
- Gateway 自动重启。若已自动重启,执行 `openclaw channels status --probe`;否则只
80
- 告诉我需重载的实际 Gateway、服务、容器或 Pod,待我确认重载后再探测。只报告脱敏
81
- 结果;若未登录,提示我手动扫码。
73
+ /plugins install npm:openclaw-weixin --force
82
74
  ```
83
75
 
76
+ 然后按上面的**重载检查**操作。
77
+
84
78
  ## 多账号
85
79
 
86
80
  再次执行登录命令即可绑定其他微信账号:
package/README_EN.md CHANGED
@@ -5,21 +5,23 @@
5
5
  Community-maintained distribution of
6
6
  [Tencent/openclaw-weixin](https://github.com/Tencent/openclaw-weixin) that
7
7
  connects OpenClaw with WeChat for a better messaging experience.
8
- Requires [OpenClaw](https://docs.openclaw.ai/install) `>=2026.7.1`.
9
8
 
10
9
  ## Install or Replace
11
10
 
11
+ Requires [OpenClaw](https://docs.openclaw.ai/install) `>=2026.6.1`. Run commands
12
+ as the same user and in the same environment as OpenClaw.
12
13
 
13
- ### CLI — one-command install or replacement
14
+ **CLI—one-command install or replacement:**
14
15
 
15
- > Run in the same user and environment as OpenClaw. Do not uninstall `@tencent-weixin/openclaw-weixin`.
16
+ > Tip: **Do not** uninstall `@tencent-weixin/openclaw-weixin` first; replacing it
17
+ > in place usually preserves the existing configuration and login state.
16
18
 
17
19
  ```bash
18
20
  openclaw plugins install npm:openclaw-weixin --force
19
21
  ```
20
22
 
21
23
  <details>
22
- <summary>Bind a WeChat account</summary>
24
+ <summary>Bind a WeChat account (new installations)</summary>
23
25
 
24
26
  To bind a WeChat account to this OpenClaw instance, enable the plugin and start
25
27
  the QR flow:
@@ -34,7 +36,7 @@ The login command displays a QR code in the terminal.
34
36
  </details>
35
37
 
36
38
  <details>
37
- <summary>Reload and check</summary>
39
+ <summary>Reload check</summary>
38
40
 
39
41
  Ensure the running Gateway has reloaded the plugin. If needed, restart the
40
42
  service, container, or pod that runs OpenClaw, then run:
@@ -49,38 +51,36 @@ the probe. If the probe reports no login, use the login command above.
49
51
 
50
52
  </details>
51
53
 
52
- ### Install Through an Agent via messages
54
+ ### Automatic Installation Prompt
53
55
 
54
- On OpenClaw `>=2026.7.2-beta.1`, if `commands.plugins: true` is set and you are
55
- an owner/admin, send this command to the chat:
56
+ Send the following prompt directly to an OpenClaw Agent to safely install or
57
+ replace the plugin in place:
56
58
 
57
59
  ```text
58
- /plugins install npm:openclaw-weixin --force
60
+ Install or replace `openclaw-weixin` without changing the existing configuration
61
+ or login state:
62
+ 1. Verify that `openclaw --version` is at least 2026.6.1.
63
+ 2. I trust the npm source `openclaw-weixin`. Run
64
+ `openclaw plugins install npm:openclaw-weixin --force`; do not uninstall first.
65
+ 3. Enable the plugin only if `openclaw plugins list` shows it disabled. Do not
66
+ restart the Gateway yourself or start QR login. Installation may automatically
67
+ restart a managed Gateway with config reload enabled. If it does, run
68
+ `openclaw channels status --probe`; otherwise, ask whether to restart the Gateway.
69
+ 4. Report only the result. If WeChat is not logged in, ask me to manually run
70
+ `openclaw channels login --channel openclaw-weixin` and scan the QR code.
59
71
  ```
60
72
 
61
- Then follow **Reload and check** above.
62
-
63
- ### Shell Agent Prompt
73
+ ### Install Through an Agent Command
64
74
 
65
- Copy and send this prompt directly to an agent with Shell access. It safely
66
- installs or replaces the plugin in place. During installation, a managed Gateway
67
- with config reload enabled may restart automatically; otherwise, reload it when
68
- the agent asks. You still handle any QR scan:
75
+ On OpenClaw `>=2026.7.2-beta.1`, if `commands.plugins: true` is set and you are
76
+ an owner/admin, send:
69
77
 
70
78
  ```text
71
- Install or replace `openclaw-weixin` in place without changing its existing
72
- configuration or login state. Verify `openclaw --version` is at least 2026.7.1.
73
- I trust the npm source `openclaw-weixin`. Run
74
- `openclaw plugins install npm:openclaw-weixin --force`; do not uninstall first
75
- or inspect or copy workspace, credential, or account-state files. Enable the
76
- plugin only if `openclaw plugins list` shows it disabled. Do not restart the
77
- Gateway yourself or start QR login. Installation may automatically restart a
78
- managed Gateway with config reload enabled. If it does, run
79
- `openclaw channels status --probe`; otherwise, tell me which Gateway, service,
80
- container, or pod to reload and wait for my confirmation before probing. Report
81
- only redacted results. If not logged in, ask me to scan manually.
79
+ /plugins install npm:openclaw-weixin --force
82
80
  ```
83
81
 
82
+ Then follow **Reload check** above.
83
+
84
84
  ## Multiple Accounts
85
85
 
86
86
  Run the login command again to bind another WeChat account:
@@ -6,7 +6,7 @@
6
6
  * the supported range for this plugin version.
7
7
  */
8
8
  import { logger } from "./util/logger.js";
9
- export const SUPPORTED_HOST_MIN = "2026.7.1";
9
+ export const SUPPORTED_HOST_MIN = "2026.6.1";
10
10
  /**
11
11
  * Parse an OpenClaw date version string (e.g. "2026.3.22") into components.
12
12
  * Returns null for unparseable strings.
package/docs/guide.md CHANGED
@@ -82,7 +82,7 @@ openclaw plugins uninstall openclaw-weixin
82
82
 
83
83
  ## Troubleshooting
84
84
 
85
- ### "requires OpenClaw >=2026.7.1" error
85
+ ### "requires OpenClaw >=2026.6.1" error
86
86
 
87
87
  Your OpenClaw version is too old for this plugin version. Check with:
88
88
 
@@ -74,7 +74,7 @@ openclaw plugins uninstall openclaw-weixin
74
74
 
75
75
  ## 故障排查
76
76
 
77
- ### "requires OpenClaw >=2026.7.1" 报错
77
+ ### "requires OpenClaw >=2026.6.1" 报错
78
78
 
79
79
  你的 OpenClaw 版本太旧,不兼容当前插件版本。检查版本:
80
80
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "openclaw-weixin",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "channels": ["openclaw-weixin"],
5
5
  "channelConfigs": {
6
6
  "openclaw-weixin": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-weixin",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Community-maintained OpenClaw WeChat channel plugin",
5
5
  "license": "MIT",
6
6
  "author": "Tencent",
@@ -33,7 +33,6 @@
33
33
  "README.zh_CN.md",
34
34
  "CHANGELOG.md",
35
35
  "CHANGELOG_EN.md",
36
- "CHANGELOG.zh_CN.md",
37
36
  "LICENSE",
38
37
  "NOTICE"
39
38
  ],
@@ -65,7 +64,7 @@
65
64
  "qrcode-terminal": "0.12.0"
66
65
  },
67
66
  "peerDependencies": {
68
- "openclaw": ">=2026.7.1"
67
+ "openclaw": ">=2026.6.1"
69
68
  },
70
69
  "devDependencies": {
71
70
  "@biomejs/biome": "2.5.4",
@@ -103,7 +102,7 @@
103
102
  "install": {
104
103
  "npmSpec": "openclaw-weixin",
105
104
  "defaultChoice": "npm",
106
- "minHostVersion": ">=2026.7.1"
105
+ "minHostVersion": ">=2026.6.1"
107
106
  }
108
107
  },
109
108
  "ilink_appid": "bot",
@@ -1,3 +0,0 @@
1
- # openclaw-weixin
2
-
3
- 中文变更日志已移至 [CHANGELOG.md](./CHANGELOG.md)。