openclawsetup 2.5.2 → 2.5.3

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 (2) hide show
  1. package/bin/cli.mjs +9 -42
  2. package/package.json +1 -1
package/bin/cli.mjs CHANGED
@@ -512,48 +512,15 @@ async function installOpenClaw() {
512
512
  async function runOnboard(cliName) {
513
513
  console.log(colors.bold(colors.cyan('\n[2/2] 运行配置向导\n')));
514
514
 
515
- const options = parseArgs();
516
-
517
- // 让用户选择安装模式
518
- let mode = options.manual ? '2' : options.auto ? '1' : '';
519
- if (!mode) {
520
- console.log(colors.cyan('请选择安装模式:'));
521
- console.log(` ${colors.yellow('1')}. 自动安装(跳过所有配置,后续单独配置模型和渠道)`);
522
- console.log(` ${colors.yellow('2')}. 手动安装(走官方 onboard 完整流程)`);
523
- mode = await askQuestion('\n请选择 (1/2): ');
524
- }
525
-
526
- if (mode.trim() === '2') {
527
- // 手动模式:直接运行官方 onboard
528
- console.log(colors.gray('\n' + '-'.repeat(60)));
529
- console.log(colors.gray('以下是官方 openclaw onboard 界面:'));
530
- console.log(colors.gray('-'.repeat(60) + '\n'));
531
-
532
- const manualResult = runOnboardManual(cliName);
533
- console.log(colors.gray('\n' + '-'.repeat(60)));
534
- if (manualResult.status !== 0) {
535
- log.warn(`onboard 退出码: ${manualResult.status}`);
536
- log.hint('如果配置未完成,可以手动运行: ' + cliName + ' onboard');
537
- }
538
- } else {
539
- // 自动模式:只用最安全的参数
540
- console.log(colors.gray('\n正在自动安装(跳过模型和渠道配置)...\n'));
541
-
542
- const { file, args } = getOnboardCommand(cliName, ['onboard', '--install-daemon']);
543
- const result = spawnSync(file, args, { stdio: 'inherit' });
544
-
545
- if (result.status !== 0) {
546
- // 自动模式失败,回退到手动
547
- log.warn('自动安装未完成,切换到手动模式...');
548
- console.log(colors.gray('\n' + '-'.repeat(60)));
549
- console.log(colors.gray('以下是官方 openclaw onboard 界面:'));
550
- console.log(colors.gray('-'.repeat(60) + '\n'));
551
- const manualResult = runOnboardManual(cliName);
552
- if (manualResult.status !== 0) {
553
- log.warn(`onboard 退出码: ${manualResult.status}`);
554
- log.hint('如果配置未完成,可以手动运行: ' + cliName + ' onboard');
555
- }
556
- }
515
+ console.log(colors.gray('-'.repeat(60)));
516
+ console.log(colors.gray('以下是官方 openclaw onboard 界面:'));
517
+ console.log(colors.gray('-'.repeat(60) + '\n'));
518
+
519
+ const manualResult = runOnboardManual(cliName);
520
+ console.log(colors.gray('\n' + '-'.repeat(60)));
521
+ if (manualResult.status !== 0) {
522
+ log.warn(`onboard 退出码: ${manualResult.status}`);
523
+ log.hint('如果配置未完成,可以手动运行: ' + cliName + ' onboard');
557
524
  }
558
525
  }
559
526
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclawsetup",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "OpenClaw 安装向导 - 智能安装、诊断、自动修复",
5
5
  "type": "module",
6
6
  "bin": {