From f5d6814a01de35be99b6e981867aaf2e05cf34d2 Mon Sep 17 00:00:00 2001 From: DoSun Date: Thu, 14 May 2026 19:59:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=81=A2=E5=A4=8D=20cloud=20=E5=AD=90?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 从 feat/server-refactor 分支还原 cloud 命令的 CLI 注册逻辑, 动态导入 cloudHandler 并透传所有参数给 cs-cloud 二进制。 Co-Authored-By: Auto --- src/main.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main.tsx b/src/main.tsx index df2f39844..b43794b24 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -6656,6 +6656,16 @@ async function run(): Promise { }); } + // Cloud command - manage cs-cloud daemon (download binary + forward commands) + program + .command('cloud [args...]', { noHelp: true }) + .description('Manage cloud daemon (register device and connect via WebSocket tunnel)') + .allowUnknownOption() + .action(async (args: string[]) => { + const { cloudHandler } = await import('./cli/handlers/cloud.js'); + await cloudHandler(args); + }); + // Update command - check and install updates program .command('update')