@aiyiran/myclaw 1.0.77 → 1.0.78

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 (3) hide show
  1. package/launch.js +13 -11
  2. package/package.json +1 -1
  3. package/wsl2.js +10 -0
package/launch.js CHANGED
@@ -109,17 +109,19 @@ function stepGatewayAndOpen() {
109
109
  detached: false,
110
110
  });
111
111
 
112
- // 打开浏览器(不阻塞)
113
- console.log('[4/4] 打开浏览器...');
114
- try {
115
- execSync('node "' + path.join(__dirname, 'index.js') + '" open', {
116
- stdio: 'pipe',
117
- timeout: 10000,
118
- });
119
- console.log(' ' + C.g + '[OK]' + C.nc);
120
- } catch {
121
- console.log(' ' + C.y + '[跳过]' + C.nc);
122
- }
112
+ // 打开浏览器(延时 3 秒确保 Gateway 充分启动)
113
+ console.log('[4/4] 等待 3 秒后自动打开浏览器...');
114
+ setTimeout(() => {
115
+ try {
116
+ execSync('node "' + path.join(__dirname, 'index.js') + '" open', {
117
+ stdio: 'pipe',
118
+ timeout: 10000,
119
+ });
120
+ console.log(' ' + C.g + '[OK] 浏览器已触发' + C.nc);
121
+ } catch {
122
+ console.log(' ' + C.y + '[跳过] 触发浏览器失败' + C.nc);
123
+ }
124
+ }, 3000);
123
125
  console.log('');
124
126
 
125
127
  // 等待 gateway 进程退出(关闭终端会终止)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.0.77",
3
+ "version": "1.0.78",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
package/wsl2.js CHANGED
@@ -354,6 +354,16 @@ if ($installed) {
354
354
  Write-Host '========================================'
355
355
  Write-Host ''
356
356
 
357
+ # 显示镜像构建信息
358
+ Write-Host '[镜像信息]'
359
+ try {
360
+ $buildInfo = wsl -d $distroName -- cat /etc/openclaw-build-info 2>&1
361
+ Write-Host $buildInfo
362
+ } catch {
363
+ Write-Host ' (无法读取构建信息)'
364
+ }
365
+ Write-Host ''
366
+
357
367
  # 统一启动流程:update + patch + gateway + open
358
368
  wsl -d $distroName -- myclaw launch
359
369
  } else {