@aiyiran/myclaw 1.0.82 → 1.0.83
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/README.md +1 -1
- package/index.js +18 -14
- package/lobster-icon-generator.html +13 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ npm install -g @aiyiran/myclaw
|
|
|
14
14
|
|------|------|------|
|
|
15
15
|
| `myclaw prepare` | 🚀 一键初始化(推荐第一次用) | 全平台 |
|
|
16
16
|
| `myclaw open` | 打开浏览器(自动带 Token) | 全平台 |
|
|
17
|
-
| `myclaw update` `up` |
|
|
17
|
+
| `myclaw update` `up` | 自动升级 MyClaw 到最新版(无缓存) | 全平台 |
|
|
18
18
|
| `myclaw patch` | 注入 UI 扩展(语音输入等) | Mac/Linux |
|
|
19
19
|
| `myclaw unpatch` | 移除 UI 扩展 | Mac/Linux |
|
|
20
20
|
| `myclaw install` | 安装 OpenClaw | 全平台 |
|
package/index.js
CHANGED
|
@@ -315,10 +315,11 @@ function runBat() {
|
|
|
315
315
|
|
|
316
316
|
const lnkPath = path.join(desktopPath, ver + '_OpenClaw_' + mm + '-' + dd + '_' + hh + '-' + mi + '-' + ss + '.lnk');
|
|
317
317
|
|
|
318
|
-
// === 智能启动器 bat
|
|
318
|
+
// === 智能启动器 bat 内容 ===
|
|
319
|
+
// Gateway 在独立窗口运行,本窗口负责升级 + 刷新图标后自动退出
|
|
319
320
|
const batContent = `@echo off
|
|
320
321
|
chcp 65001 >nul 2>&1
|
|
321
|
-
title OpenClaw
|
|
322
|
+
title OpenClaw Launcher
|
|
322
323
|
echo.
|
|
323
324
|
echo ============================================
|
|
324
325
|
echo OpenClaw
|
|
@@ -360,17 +361,23 @@ echo [3/4] Gateway...
|
|
|
360
361
|
wsl -d OpenClaw -- pgrep -f "openclaw" >nul 2>&1
|
|
361
362
|
if not errorlevel 1 goto :gateway_running
|
|
362
363
|
|
|
363
|
-
REM Gateway not running -> update
|
|
364
|
+
REM Gateway not running -> update, launch in new window, refresh self
|
|
364
365
|
echo Starting...
|
|
365
366
|
echo.
|
|
366
367
|
echo [update] Windows...
|
|
367
368
|
call myclaw up
|
|
368
369
|
echo.
|
|
369
|
-
|
|
370
|
+
echo [launch] Starting Gateway...
|
|
371
|
+
start "OpenClaw Gateway" wsl -d OpenClaw -- myclaw launch
|
|
372
|
+
echo [OK]
|
|
370
373
|
echo.
|
|
371
|
-
|
|
374
|
+
echo [update] Refreshing desktop icon...
|
|
372
375
|
call myclaw bat >nul 2>&1
|
|
373
|
-
|
|
376
|
+
echo.
|
|
377
|
+
echo ============================================
|
|
378
|
+
echo Gateway started! This window will close.
|
|
379
|
+
echo ============================================
|
|
380
|
+
timeout /t 2 >nul
|
|
374
381
|
exit /b
|
|
375
382
|
|
|
376
383
|
:gateway_running
|
|
@@ -383,16 +390,13 @@ echo [OK]
|
|
|
383
390
|
echo.
|
|
384
391
|
echo ============================================
|
|
385
392
|
echo OpenClaw is running. Browser opened.
|
|
386
|
-
echo Type exit to close this window.
|
|
387
393
|
echo ============================================
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
REM 在退出前安全地在后台刷新桌面图标和本脚本内容
|
|
391
|
-
call myclaw bat >nul 2>&1
|
|
392
|
-
pause
|
|
394
|
+
timeout /t 2 >nul
|
|
395
|
+
exit /b
|
|
393
396
|
`;
|
|
394
397
|
|
|
395
398
|
|
|
399
|
+
|
|
396
400
|
// 写入 bat 文件(Windows CMD 需要 CRLF 换行符)
|
|
397
401
|
fs.writeFileSync(batPath, batContent.replace(/\n/g, '\r\n'), 'utf8');
|
|
398
402
|
|
|
@@ -685,7 +689,7 @@ function runRestart() {
|
|
|
685
689
|
function runUpdate() {
|
|
686
690
|
const bar = '----------------------------------------';
|
|
687
691
|
console.log('');
|
|
688
|
-
console.log('[' + colors.blue + 'MyClaw' + colors.nc + '] ' + colors.blue + '
|
|
692
|
+
console.log('[' + colors.blue + 'MyClaw' + colors.nc + '] ' + colors.blue + '自动升级检测' + colors.nc);
|
|
689
693
|
console.log(bar);
|
|
690
694
|
console.log('');
|
|
691
695
|
|
|
@@ -779,7 +783,7 @@ function showHelp() {
|
|
|
779
783
|
console.log(' install 安装 OpenClaw 服务');
|
|
780
784
|
console.log(' status 简化版状态查看(学生友好)');
|
|
781
785
|
console.log(' new 创建新的 Agent(学生练习用)');
|
|
782
|
-
console.log(' update
|
|
786
|
+
console.log(' update 自动升级 MyClaw 到最新版本 (别名: up)');
|
|
783
787
|
console.log(' open 打开浏览器控制台(自动带 token)');
|
|
784
788
|
console.log(' wsl2 WSL2 一键安装/修复 (仅限 Windows)');
|
|
785
789
|
console.log(' bat 在桌面生成一键启动脚本 (仅限 Windows)');
|
|
@@ -150,22 +150,20 @@
|
|
|
150
150
|
"0CC00000000CC0"
|
|
151
151
|
];
|
|
152
152
|
|
|
153
|
-
// 我们重新设计了 32x32
|
|
153
|
+
// 我们重新设计了 32x32 的矩阵,赋予其具备极致夸张中空且前端尖锐的“恶魔镰刀式”能量巨钳
|
|
154
154
|
const design32 = [
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"000000000C0BBCCDDCCBB0C000000000",
|
|
168
|
-
"00000000CBBBBBBBBBBBBBBC00000000",
|
|
155
|
+
"00R00000000000000000000000000R00",
|
|
156
|
+
"0RWR000000000000000000000000RWR0",
|
|
157
|
+
"RWWWR0000000000000000000000RWWWR",
|
|
158
|
+
"RWW0WR00000000000000000000RW0WWR",
|
|
159
|
+
"RWW00WR000R00000000000R000RW00WWR",
|
|
160
|
+
"RWW000WR0RWR00000000RWR0RW000WWR",
|
|
161
|
+
"0RWW000WRWWR00C00C00RWWRW000WWR0",
|
|
162
|
+
"00RWW000WWWR0C0DD0C0RWWW000WWR00",
|
|
163
|
+
"000RWW00WWWRCCDDDDCCRWWW00WWR000",
|
|
164
|
+
"0000RWWWR0CCC0WDDW0CCC0RWWWR0000",
|
|
165
|
+
"00000RBRRC0BBCCDDCCBB0CRRBR00000",
|
|
166
|
+
"000000CBBBBBBBBBBBBBBBBBBC000000",
|
|
169
167
|
"0000000CBBBBBBBBBBBBBBBBC0000000",
|
|
170
168
|
"000000CBBBBBBBBBBBBBBBBBBC000000",
|
|
171
169
|
"00000CBBBC0CBBBBBBBBC0CBBBC00000",
|