cc-team-viewer 1.5.0 → 1.5.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/cli/cli.js +14 -0
- package/package.json +1 -1
package/cli/cli.js
CHANGED
|
@@ -346,6 +346,20 @@ if (isCliMode || isDangerousMode) {
|
|
|
346
346
|
console.error('CLI mode error:', err);
|
|
347
347
|
process.exit(1);
|
|
348
348
|
});
|
|
349
|
+
} else if (args[0] === 'update' || args[0] === 'upgrade') {
|
|
350
|
+
// Pass through update/upgrade directly to claude, bypassing proxy
|
|
351
|
+
const nativePath = resolveNativePath();
|
|
352
|
+
if (nativePath) {
|
|
353
|
+
const child = spawn(nativePath, args.slice(1), { stdio: 'inherit' });
|
|
354
|
+
child.on('exit', (code) => process.exit(code));
|
|
355
|
+
child.on('error', (err) => {
|
|
356
|
+
console.error('claude update 启动失败:', err.message);
|
|
357
|
+
process.exit(1);
|
|
358
|
+
});
|
|
359
|
+
} else {
|
|
360
|
+
console.error('错误: 未找到 claude 命令,无法执行 update');
|
|
361
|
+
process.exit(1);
|
|
362
|
+
}
|
|
349
363
|
} else if (args[0] === 'run') {
|
|
350
364
|
runProxyCommand(args);
|
|
351
365
|
} else if (isUninstall) {
|