@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 +9 -6
- package/package.json +1 -1
- package/patch-manifest.json +1 -1
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
|
-
//
|
|
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
|
-
|
|
459
|
+
echo.
|
|
460
|
+
echo 按任意键关闭此窗口...
|
|
461
|
+
pause >nul
|
|
459
462
|
`;
|
|
460
463
|
|
|
461
464
|
|
package/package.json
CHANGED