@tedbrain/vlink 0.1.89 → 0.1.91

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/binaries.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
- "version": "0.1.89",
2
+ "version": "0.1.91",
3
3
  "binaries": {
4
- "linux-x86_64": "61ce087a77878ab5f1ed3eaf79b11e19af964c03a7c67cfd2b5cf82e8d68ed14",
5
- "linux-x86_64-glibc2.17": "cb98b8d4a64816decf0f62a116d35da76e09e64caa95f89a2bbcc273245c9387",
6
- "linux-aarch64": "9c01db359f7b65fd6b6b864325d507f11192082958bcf1eecda3c818472642db",
7
- "macos-x86_64": "b747bf6d93fba708d3378b0c6ee6f6743d60e485c4d70a724894fe6b32788d72",
8
- "macos-aarch64": "eaba29bf6eb2025c9cca4886fe55e382d1b91a843be2c3643c9d9deae8c8eee4",
9
- "windows-x86_64.exe": "34819e660d07644abd8ec221b9301cbdd27b37fea0f249777afa252dd7a831d4",
10
- "windows-aarch64.exe": "1d73ba6b6944eeb6dbcdd8edcc093bc4d9727f4c3704b1e7ba2fd38d98389a64"
4
+ "linux-x86_64": "00b9c71c4462518fc29b6abdddb82db44bc6d689e0076c5212dc72240d4ae608",
5
+ "linux-x86_64-glibc2.17": "3c3c2b0b9d267c6bff7ae4d64fea0c018958877ca062649710c4445de5263fc6",
6
+ "linux-aarch64": "7a769455d445e7a32316f53eaeceb48063a5ccade7da78d74dfc284607de9deb",
7
+ "macos-x86_64": "a847af3beffd546da25d3bf49c559e87d606bafb050d8b8cf373019dbb118c74",
8
+ "macos-aarch64": "2bc8033806b7d56b0ccaa4e5c4ae848436d405227c903838f944d531d59fc31b",
9
+ "windows-x86_64.exe": "85a1e09e72ae54f10a5b65825fd6d220d530f7d7b7b9e76eacbf7a43bfb0221f",
10
+ "windows-aarch64.exe": "9c469c039da3234323d5b022b4849163ec7e902a60bb954516f181ce2799ea65"
11
11
  }
12
12
  }
package/mcp-installer.js CHANGED
@@ -4,7 +4,7 @@ const path = require('path');
4
4
  const readline = require('readline');
5
5
  const { spawnSync } = require('child_process');
6
6
  const {
7
- defaultInstallDir, findOnPath, isExecutableFile, isVlinkWrapper, VlinkSetupError
7
+ defaultInstallDir, findOnPath, isExecutableFile, isVlinkWrapper, runInstaller, VlinkSetupError
8
8
  } = require('./installer');
9
9
 
10
10
  const RETRY_HINT = '请手动运行 vlink update --apply,完成后重新执行 MCP 安装。';
@@ -69,9 +69,20 @@ async function runMcpInstaller(args, options = {}) {
69
69
  binary = fallback;
70
70
  }
71
71
  if (!binary) {
72
- throw new VlinkSetupError(
73
- '未找到已安装的原生 vlink。请先运行 npx -y @tedbrain/vlink@latest install --no-setup。'
74
- );
72
+ if (args.includes('--help') || args.includes('-h')) {
73
+ output.write('Usage: npx -y @tedbrain/vlink@latest mcp install [codex|claude] [--proxy-url <URL>]\n' +
74
+ '安装原生 vlink、验证邀请码并注册 MCP;省略 Agent 时交互选择。\n');
75
+ return;
76
+ }
77
+ output.write('[TedBrain] 正在安装原生 vlink,随后继续 MCP 配置,无需重新打开终端。\n');
78
+ const installed = await (options.runInstaller || runInstaller)({
79
+ ...options, env, platform, output, skipSetup: true
80
+ });
81
+ binary = installed?.vlinkPath;
82
+ if (typeof binary !== 'string' || !path.isAbsolute(binary) ||
83
+ !isExecutableFile(binary, platform) || isVlinkWrapper(binary)) {
84
+ throw new VlinkSetupError('原生 vlink 安装未返回有效的程序路径,未安装 MCP。');
85
+ }
75
86
  }
76
87
  binary = path.resolve(binary);
77
88
 
@@ -148,7 +159,7 @@ async function runMcpInstaller(args, options = {}) {
148
159
  }
149
160
  }
150
161
  output.write(`[TedBrain] 使用 ${binary} 安装 MCP\n`);
151
- execute(binary, ['mcp', 'install', ...args], false);
162
+ execute(binary, ['mcp', 'install', ...args, ...(args.includes('--login') ? [] : ['--login'])], false);
152
163
  }
153
164
 
154
165
  module.exports = { runMcpInstaller, confirmUpgrade };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tedbrain/vlink",
3
- "version": "0.1.89",
3
+ "version": "0.1.91",
4
4
  "description": "vlink Virtuoso bridge CLI installer. Installs the matching platform binary at npm install time, like Claude Code / Codex.",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {