@aiyiran/myclaw 1.0.63 → 1.0.64
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 +4 -21
- package/launch.js +1 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -355,31 +355,14 @@ echo [3/4] Gateway...
|
|
|
355
355
|
wsl -d OpenClaw -- pgrep -f "openclaw" >nul 2>&1
|
|
356
356
|
if not errorlevel 1 goto :gateway_running
|
|
357
357
|
|
|
358
|
-
REM Gateway not running -> update
|
|
358
|
+
REM Gateway not running -> update both sides, then launch
|
|
359
359
|
echo Starting...
|
|
360
360
|
echo.
|
|
361
|
-
echo [update]
|
|
362
|
-
call
|
|
363
|
-
echo [update] OK
|
|
361
|
+
echo [update] Windows...
|
|
362
|
+
call myclaw up
|
|
364
363
|
echo.
|
|
365
|
-
|
|
366
|
-
REM ---- Step 4: Patch + Open browser ----
|
|
367
|
-
echo [4/5] Patch...
|
|
368
|
-
wsl -d OpenClaw -- myclaw patch
|
|
369
|
-
echo [OK]
|
|
370
|
-
|
|
371
|
-
echo [5/5] Browser...
|
|
372
|
-
call myclaw open
|
|
373
|
-
echo [OK]
|
|
374
|
-
echo.
|
|
375
|
-
echo ============================================
|
|
376
|
-
echo Gateway starting...
|
|
377
|
-
echo Close this window = stop service
|
|
378
|
-
echo ============================================
|
|
379
|
-
echo.
|
|
380
|
-
wsl -d OpenClaw -- openclaw gateway
|
|
364
|
+
wsl -d OpenClaw -- myclaw launch
|
|
381
365
|
echo.
|
|
382
|
-
echo Gateway exited.
|
|
383
366
|
pause
|
|
384
367
|
exit /b
|
|
385
368
|
|
package/launch.js
CHANGED
|
@@ -8,11 +8,10 @@
|
|
|
8
8
|
* 使用: myclaw launch
|
|
9
9
|
*
|
|
10
10
|
* 统一的启动链条,被 bat 脚本和 wsl2 安装器共同复用:
|
|
11
|
-
* Step 1: 更新 MyClaw
|
|
11
|
+
* Step 1: 更新 MyClaw(Linux 侧)
|
|
12
12
|
* Step 2: 执行 Patch(UI + Skills + Config)
|
|
13
13
|
* Step 3: 后台启动 OpenClaw Gateway
|
|
14
14
|
* Step 4: 打开浏览器控制台
|
|
15
|
-
* Step 5: 等待 Gateway 进程(关闭终端 = 停止服务)
|
|
16
15
|
* ============================================================================
|
|
17
16
|
*/
|
|
18
17
|
|
|
@@ -113,7 +112,6 @@ function stepGatewayAndOpen() {
|
|
|
113
112
|
// 打开浏览器(不阻塞)
|
|
114
113
|
console.log('[4/4] 打开浏览器...');
|
|
115
114
|
try {
|
|
116
|
-
// 直接调用 runOpen 的逻辑
|
|
117
115
|
execSync('node "' + path.join(__dirname, 'index.js') + '" open', {
|
|
118
116
|
stdio: 'pipe',
|
|
119
117
|
timeout: 10000,
|