@core-workspace/infoflow-openclaw-plugin 2026.3.31 → 2026.3.32
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/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @core-workspace/infoflow-openclaw-tools
|
|
2
2
|
|
|
3
3
|
OpenClaw 如流插件升级工具。
|
|
4
4
|
|
|
@@ -7,14 +7,14 @@ OpenClaw 如流插件升级工具。
|
|
|
7
7
|
由于包发布在百度内部 npm registry,需要指定 registry:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm_config_registry=http://registry.npm.baidu-int.com npx -y @
|
|
10
|
+
npm_config_registry=http://registry.npm.baidu-int.com npx -y @core-workspace/infoflow-openclaw-tools update
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
或者先配置 npm registry(一次性设置):
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
16
|
npm config set registry http://registry.npm.baidu-int.com
|
|
17
|
-
npx -y @
|
|
17
|
+
npx -y @core-workspace/infoflow-openclaw-tools update
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## 功能
|
|
@@ -34,7 +34,7 @@ npx -y @baidu/infoflow-openclaw-tools update
|
|
|
34
34
|
如果看到 `404 Not Found` 错误,说明 npm 使用的是公共 registry。请加上 registry 前缀:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
npm_config_registry=http://registry.npm.baidu-int.com npx -y @
|
|
37
|
+
npm_config_registry=http://registry.npm.baidu-int.com npx -y @core-workspace/infoflow-openclaw-tools update
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### 2. Native binding 错误
|
|
@@ -52,7 +52,7 @@ npm install
|
|
|
52
52
|
如果是权限问题,可以尝试使用 sudo(macOS/Linux):
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
|
-
sudo npm_config_registry=http://registry.npm.baidu-int.com npx -y @
|
|
55
|
+
sudo npm_config_registry=http://registry.npm.baidu-int.com npx -y @core-workspace/infoflow-openclaw-tools update
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
## 升级失败恢复
|
package/scripts/npm-tools/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Infoflow Plugin Upgrade CLI
|
|
5
|
-
* Usage: npx -y @
|
|
5
|
+
* Usage: npx -y @core-workspace/infoflow-openclaw-tools update
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { execSync } from 'child_process';
|
|
@@ -149,7 +149,7 @@ async function update() {
|
|
|
149
149
|
log('', colors.reset);
|
|
150
150
|
try {
|
|
151
151
|
execSync(
|
|
152
|
-
`npm_config_registry=${registry} openclaw plugins install @
|
|
152
|
+
`npm_config_registry=${registry} openclaw plugins install @core-workspace/infoflow-openclaw-plugin`,
|
|
153
153
|
{ stdio: 'inherit', env: { ...process.env, npm_config_registry: registry } }
|
|
154
154
|
);
|
|
155
155
|
} catch (err) {
|
|
@@ -177,7 +177,7 @@ async function update() {
|
|
|
177
177
|
log(' Try with sudo (macOS/Linux):', colors.blue);
|
|
178
178
|
log(
|
|
179
179
|
' sudo npm_config_registry=${registry} openclaw plugins install ' +
|
|
180
|
-
'@
|
|
180
|
+
'@core-workspace/infoflow-openclaw-plugin',
|
|
181
181
|
colors.blue,
|
|
182
182
|
);
|
|
183
183
|
log('', colors.reset);
|
|
@@ -256,7 +256,7 @@ if (command === 'update' || command === 'upgrade' || process.argv.length === 2)
|
|
|
256
256
|
log(`Unknown command: ${command}`, colors.red);
|
|
257
257
|
log('', colors.reset);
|
|
258
258
|
log('Usage:', colors.blue);
|
|
259
|
-
log(' npx -y @
|
|
260
|
-
log(' npx -y @
|
|
259
|
+
log(' npx -y @core-workspace/infoflow-openclaw-tools update', colors.reset);
|
|
260
|
+
log(' npx -y @core-workspace/infoflow-openclaw-tools upgrade', colors.reset);
|
|
261
261
|
process.exit(1);
|
|
262
262
|
}
|
|
@@ -410,4 +410,4 @@ console.log('[DEBUG] imid type:', typeof reply.imid); // 应该是 st
|
|
|
410
410
|
|
|
411
411
|
- 企业后台: https://qy.baidu-int.com/index.html
|
|
412
412
|
- API完整文档: https://ku.baidu-int.com/knowledge/HFVrC7hq1Q/2tsPs8CtSd/Bu7DDg4dpB/O7gUd6RJUGn7Ix
|
|
413
|
-
- 技术支持: 魏小伟 (weixiaowei@
|
|
413
|
+
- 技术支持: 魏小伟 (weixiaowei@core-workspace.com)
|