@lotaber_wang/openclaw-dc-plugin 0.1.13 → 0.1.14
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/README.md +7 -4
- package/index.js +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -6
- package/scripts/postinstall.js +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
请这样安装:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
openclaw plugins install @lotaber_wang/openclaw-dc-plugin@0.1.
|
|
12
|
+
openclaw plugins install @lotaber_wang/openclaw-dc-plugin@0.1.14
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
不要这样安装:
|
|
@@ -67,7 +67,7 @@ openclaw gateway restart
|
|
|
67
67
|
## 推荐安装流程
|
|
68
68
|
|
|
69
69
|
```bash
|
|
70
|
-
openclaw plugins install @lotaber_wang/openclaw-dc-plugin@0.1.
|
|
70
|
+
openclaw plugins install @lotaber_wang/openclaw-dc-plugin@0.1.14
|
|
71
71
|
openclaw plugins inspect openclaw-dc-plugin
|
|
72
72
|
echo 'TapTap DC 插件已安装完成。OpenClaw 接下来如需重启 Gateway,应先通过飞书或其他通信插件通知用户;重启完成后即可使用 taptap_dc_* 工具。'
|
|
73
73
|
openclaw gateway restart
|
|
@@ -77,6 +77,7 @@ openclaw gateway restart
|
|
|
77
77
|
|
|
78
78
|
- `install` 负责把插件包装进 OpenClaw
|
|
79
79
|
- `inspect` 用来确认插件元信息、skills、tools 是否已被 Gateway 识别
|
|
80
|
+
- 从 `0.1.14` 开始,插件包不再声明 `openclaw` 的 `peerDependencies`,避免误用 `npm install` 时把 OpenClaw 宿主大依赖树一起拉下来
|
|
80
81
|
- 如果有人误用 `npm install` 或 `npm install -g`,插件包会在 `postinstall` 阶段打印醒目的纠正提示
|
|
81
82
|
- 如果宿主判断需要重启 Gateway,必须先通过飞书或其他通信插件通知用户,再重启
|
|
82
83
|
- 如果 10-30 秒后还没生效,再手动执行 `gateway restart`
|
|
@@ -146,7 +147,7 @@ openclaw gateway restart
|
|
|
146
147
|
|
|
147
148
|
如果安装后看不到 `taptap_dc_*` 工具,优先按这个顺序排查:
|
|
148
149
|
|
|
149
|
-
1. 确认安装的是 `@lotaber_wang/openclaw-dc-plugin@0.1.
|
|
150
|
+
1. 确认安装的是 `@lotaber_wang/openclaw-dc-plugin@0.1.14` 或更新版本
|
|
150
151
|
2. 执行 `openclaw plugins inspect openclaw-dc-plugin`
|
|
151
152
|
3. 如果宿主要求重启 Gateway,先通过飞书或其他通信插件向用户发送安装完成提示
|
|
152
153
|
4. 再执行 `openclaw gateway restart`
|
|
@@ -174,10 +175,12 @@ openclaw gateway restart
|
|
|
174
175
|
- OpenClaw 进程是否有临时目录写权限
|
|
175
176
|
- OpenClaw 是否已经完成 Gateway 重启
|
|
176
177
|
|
|
177
|
-
从 `0.1.
|
|
178
|
+
从 `0.1.14` 开始,插件安装链路与 bridge 会额外做这些兼容处理:
|
|
178
179
|
|
|
179
180
|
- 在 `package.json` 中补充 `openclaw.install.npmSpec`,让安装链路更稳定
|
|
181
|
+
- 在 `package.json` 的 `openclaw.install` 中补充 `preferredCommand` / `doNotUseCommands` / `wrongInstallHint`
|
|
180
182
|
- 在 `package.json` 的 `openclaw.install` 中补充 `postInstallMessage` / `instructions` / `restartCommand`
|
|
183
|
+
- 去掉 `openclaw` 的 `peerDependencies`,避免 npm 误装时自动解析并下载 OpenClaw 宿主依赖
|
|
181
184
|
- 插件导出对象会同步暴露 `installation` / `installHints`,给宿主额外一层安装提示兜底
|
|
182
185
|
- 在 `openclaw.plugin.json` 中显式开启 `enabledByDefault`
|
|
183
186
|
- 统一插件 id 为 `openclaw-dc-plugin`,避免 manifest id 与 entry hint 不一致
|
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { TapTapMcpBridge } from './lib/mcp-bridge.js';
|
|
|
5
5
|
const RESTART_NOTICE =
|
|
6
6
|
'TapTap DC 插件已安装完成。OpenClaw 接下来如需重启 Gateway,应先通过飞书或其他通信插件通知用户;重启完成后即可使用 taptap_dc_* 工具。';
|
|
7
7
|
const PREFERRED_INSTALL_COMMAND =
|
|
8
|
-
'openclaw plugins install @lotaber_wang/openclaw-dc-plugin@0.1.
|
|
8
|
+
'openclaw plugins install @lotaber_wang/openclaw-dc-plugin@0.1.14';
|
|
9
9
|
const WRONG_INSTALL_HINT =
|
|
10
10
|
'这是 OpenClaw 插件包,不是普通 npm CLI 包。请不要直接用 npm install,改用 openclaw plugins install。';
|
|
11
11
|
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "openclaw-dc-plugin",
|
|
3
3
|
"name": "TapTap DC",
|
|
4
4
|
"description": "面向 OpenClaw 的 TapTap DC 插件。请使用 openclaw plugins install 安装,不要直接 npm install;如需重启 Gateway,应先通过飞书或其他通信插件通知用户。",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.14",
|
|
6
6
|
"enabledByDefault": true,
|
|
7
7
|
"skills": ["./skills"],
|
|
8
8
|
"configSchema": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lotaber_wang/openclaw-dc-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TapTap DC 的 OpenClaw 插件。请使用 openclaw plugins install 安装,不要直接 npm install;如需重启 Gateway,应先通过飞书或其他通信插件通知用户。",
|
|
6
6
|
"main": "index.js",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
],
|
|
14
14
|
"install": {
|
|
15
15
|
"npmSpec": "@lotaber_wang/openclaw-dc-plugin",
|
|
16
|
-
"preferredCommand": "openclaw plugins install @lotaber_wang/openclaw-dc-plugin@0.1.
|
|
16
|
+
"preferredCommand": "openclaw plugins install @lotaber_wang/openclaw-dc-plugin@0.1.14",
|
|
17
17
|
"doNotUseCommands": [
|
|
18
18
|
"npm install @lotaber_wang/openclaw-dc-plugin",
|
|
19
19
|
"npm install -g @lotaber_wang/openclaw-dc-plugin"
|
|
20
20
|
],
|
|
21
|
-
"wrongInstallHint": "这是 OpenClaw 插件包,不是普通 npm CLI 包。请改用 openclaw plugins install @lotaber_wang/openclaw-dc-plugin@0.1.
|
|
21
|
+
"wrongInstallHint": "这是 OpenClaw 插件包,不是普通 npm CLI 包。请改用 openclaw plugins install @lotaber_wang/openclaw-dc-plugin@0.1.14。",
|
|
22
22
|
"postInstallMessage": "TapTap DC 插件已安装完成。OpenClaw 接下来如需重启 Gateway,应先通过飞书或其他通信插件通知用户;重启完成后即可使用 taptap_dc_* 工具。",
|
|
23
23
|
"restartRequired": true,
|
|
24
24
|
"restartCommand": "openclaw gateway restart",
|
|
@@ -58,9 +58,6 @@
|
|
|
58
58
|
"node": ">=18.14.1"
|
|
59
59
|
},
|
|
60
60
|
"license": "MIT",
|
|
61
|
-
"peerDependencies": {
|
|
62
|
-
"openclaw": ">=2026.1.29"
|
|
63
|
-
},
|
|
64
61
|
"dependencies": {
|
|
65
62
|
"@mikoto_zero/minigame-open-mcp": "^1.19.0"
|
|
66
63
|
},
|
package/scripts/postinstall.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
2
|
|
|
3
3
|
const PACKAGE_NAME = '@lotaber_wang/openclaw-dc-plugin';
|
|
4
|
-
const PACKAGE_VERSION = '0.1.
|
|
4
|
+
const PACKAGE_VERSION = '0.1.14';
|
|
5
5
|
const PREFERRED_COMMAND = `openclaw plugins install ${PACKAGE_NAME}@${PACKAGE_VERSION}`;
|
|
6
6
|
const DISCOURAGED_COMMANDS = [
|
|
7
7
|
`npm install ${PACKAGE_NAME}`,
|