@aiyiran/myclaw 1.0.120 → 1.0.121

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/index.js CHANGED
@@ -383,14 +383,14 @@ function runWsl2() {
383
383
  wsl2.run();
384
384
  }
385
385
 
386
- function runLaunch() {
386
+ async function runLaunch() {
387
387
  const launch = require('./launch');
388
- launch.run();
388
+ await launch.run();
389
389
  }
390
390
 
391
- function runStart() {
391
+ async function runStart() {
392
392
  const start = require('./start');
393
- start.run();
393
+ await start.run();
394
394
  }
395
395
 
396
396
  // ============================================================================
@@ -445,7 +445,8 @@ function runBat() {
445
445
  const lnkPath = path.join(desktopPath, ver + '_OpenClaw_' + mm + '-' + dd + '_' + hh + '-' + mi + '-' + ss + '.lnk');
446
446
 
447
447
  // === 智能启动器 bat 内容 ===
448
- // Gateway 在独立窗口运行,本窗口负责升级 + 刷新图标后自动退出
448
+ // 首次启动: myclaw start 会阻塞在当前窗口(Gateway 运行期间不退出)
449
+ // 非首次启动: myclaw start 跑完后 pause 防止闪退
449
450
  const batContent = `@echo off
450
451
  chcp 65001 >nul 2>&1
451
452
  title OpenClaw
@@ -455,7 +456,9 @@ echo OpenClaw
455
456
  echo ============================================
456
457
  echo.
457
458
  myclaw start
458
- timeout /t 2 >nul
459
+ echo.
460
+ echo 按任意键关闭此窗口...
461
+ pause >nul
459
462
  `;
460
463
 
461
464
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.0.120",
3
+ "version": "1.0.121",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_doc": "MyClaw 注入清单 (auto-generated)。strategy: auto | on | off | delete",
3
- "_generated": "2026-04-02T14:47:39.655Z",
3
+ "_generated": "2026-04-02T14:53:32.081Z",
4
4
  "agents": [
5
5
  {
6
6
  "id": "danci",