ribo-cli-setup 2.1.0 → 2.2.0

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.
Files changed (3) hide show
  1. package/README.md +5 -0
  2. package/bin/cli.js +2 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -20,6 +20,10 @@ npx ribo-cli-setup --gateway https://gw.ribo.internal --target qwenwork --bin-di
20
20
  # 仅下载二进制,不自动授权
21
21
  npx ribo-cli-setup --skip-auth
22
22
 
23
+ # 升级:强制重下二进制 + 重新安装技能(不碰 mcp.json)
24
+ npx ribo-cli-setup --upgrade
25
+ npx ribo-cli-setup --upgrade --target qwenwork
26
+
23
27
  # 解除注册
24
28
  npx ribo-cli-setup --uninstall --target workbuddy
25
29
  ```
@@ -50,6 +54,7 @@ RIBO_GATEWAY_URL=https://gw.ribo.internal npx ribo-cli-setup
50
54
  | `--workbuddy` / `--qwenwork` | target 的快捷写法 |
51
55
  | `--bin-dir <dir>` | 二进制安装目录,默认 `~/.local/bin` |
52
56
  | `-f, --force` | 忽略本地已有版本,强制重新下载 |
57
+ | `--upgrade` | 升级:强制重下二进制 + 重新安装技能(不碰 mcp.json) |
53
58
  | `--skip-auth` | 安装后不自动执行 auth init |
54
59
  | `--uninstall` | 解除注册 |
55
60
  | `-y, --yes` | 跳过确认 |
package/bin/cli.js CHANGED
@@ -25,7 +25,7 @@ const http = require('http');
25
25
  const crypto = require('crypto');
26
26
  const { execFileSync, spawnSync } = require('child_process');
27
27
 
28
- const DEFAULT_GATEWAY = 'https://aigc.ribo-group.com/asushiye';
28
+ const DEFAULT_GATEWAY = 'https://aigc.ribo-group.com/ribo/cli/gateway';
29
29
  const BIN_NAME = process.platform === 'win32' ? 'ribo-cli.exe' : 'ribo-cli';
30
30
 
31
31
  // ---------- 参数解析 ----------
@@ -186,7 +186,7 @@ function resolveBinDir(opts) {
186
186
  if (opts.binDir) return path.resolve(opts.binDir);
187
187
  if (process.platform === 'win32') {
188
188
  const base = process.env.LOCALAPPDATA || path.join(os.homedir(), 'AppData', 'Local');
189
- return path.join(base, 'ribo-cli-setup');
189
+ return path.join(base, 'ribo-cli');
190
190
  }
191
191
  return path.join(os.homedir(), '.local', 'bin');
192
192
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ribo-cli-setup",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "ribo-cli 一键安装器:检测操作系统与 CPU 架构,从 ribo 网关下载对应平台 CLI 二进制,完成 WorkBuddy / 千问办公接入与实名授权",
5
5
  "bin": {
6
6
  "ribo-cli-setup": "bin/cli.js"