liangzimixin 0.3.88 → 0.3.89

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "liangzimixin",
3
- "version": "0.3.88",
3
+ "version": "0.3.89",
4
4
  "description": "Quantum-encrypted IM channel plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "index.cjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "liangzimixin",
3
- "version": "0.3.88",
3
+ "version": "0.3.89",
4
4
  "description": "Quantum-encrypted IM channel plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -1,4 +1,15 @@
1
1
  @echo off
2
+ REM ── LOGGING INIT ──────────────────────────────────────────
3
+ if "%~1"=="--internal-logged" (
4
+ shift
5
+ goto :real_start
6
+ )
7
+ if not exist "%USERPROFILE%\.liangzimixin\logs" mkdir "%USERPROFILE%\.liangzimixin\logs" 2>nul
8
+ powershell -NoProfile -Command "[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; $OutputEncoding = [System.Text.Encoding]::UTF8; $log=\"$env:USERPROFILE\.liangzimixin\logs\deploy_$(Get-Date -f 'yyyyMMdd_HHmmss').log\"; Write-Host \"[INFO] Deployment log will be saved to $log\"; & '%~f0' --internal-logged %* 2>&1 | Tee-Object -FilePath $log"
9
+ exit /b %errorlevel%
10
+ REM ──────────────────────────────────────────────────────────
11
+
12
+ :real_start
2
13
  setlocal enabledelayedexpansion
3
14
  chcp 65001 >nul 2>&1
4
15
 
@@ -7,7 +18,7 @@ REM liangzimixin install script (Windows)
7
18
  REM Usage: liangzimixin_install.bat <appId> <appSecret> [quantumAccount]
8
19
  REM ============================================================
9
20
 
10
- set "SCRIPT_VERSION=0.3.88"
21
+ set "SCRIPT_VERSION=0.3.89"
11
22
  set "NPM_PACKAGE=liangzimixin"
12
23
 
13
24
  set "SKIP_SELF_UPDATE=0"
@@ -139,17 +150,20 @@ REM ============================================================
139
150
  :step1
140
151
  echo [INFO] Step 1/4 - Install/update liangzimixin plugin (%TAG%)...
141
152
 
153
+ REM Set npm registry to mirror to prevent timeouts
154
+ call npm config set registry https://registry.npmmirror.com 2>nul
155
+
142
156
  call openclaw plugins list 2>nul | findstr /i "liangzimixin" >nul
143
157
  if %errorlevel%==0 (
144
158
  echo [INFO] Plugin installed, updating...
145
159
  if "%USE_BETA%"=="1" (
146
- call openclaw plugins install liangzimixin@beta
160
+ call openclaw plugins install liangzimixin@beta 2>&1
147
161
  ) else (
148
- call openclaw plugins update liangzimixin
162
+ call openclaw plugins update liangzimixin 2>&1
149
163
  )
150
164
  ) else (
151
165
  echo [INFO] Plugin not installed, installing...
152
- call openclaw plugins install liangzimixin@%TAG%
166
+ call openclaw plugins install liangzimixin@%TAG% 2>&1
153
167
  )
154
168
 
155
169
  REM Verify plugin is actually installed (don't rely on exit code, as
@@ -169,9 +183,9 @@ REM ============================================================
169
183
  echo [INFO] Step 2/4 - Writing configuration...
170
184
 
171
185
  if not "%QUANTUM_ACCOUNT%"=="" (
172
- call openclaw channels add --channel liangzimixin --token %APP_ID% --password %APP_SECRET% --user-id %QUANTUM_ACCOUNT%
186
+ call openclaw channels add --channel liangzimixin --token %APP_ID% --password %APP_SECRET% --user-id %QUANTUM_ACCOUNT% 2>&1
173
187
  ) else (
174
- call openclaw channels add --channel liangzimixin --token %APP_ID% --password %APP_SECRET%
188
+ call openclaw channels add --channel liangzimixin --token %APP_ID% --password %APP_SECRET% 2>&1
175
189
  )
176
190
 
177
191
  if %errorlevel% neq 0 (
@@ -191,7 +205,7 @@ REM Step 3: Restart gateway
191
205
  REM ============================================================
192
206
  echo [INFO] Step 3/4 - Restarting OpenClaw gateway...
193
207
 
194
- call openclaw gateway restart
208
+ call openclaw gateway restart 2>&1
195
209
 
196
210
  if %errorlevel% neq 0 (
197
211
  echo [WARN] Gateway restart command returned an error or timed out
@@ -1,12 +1,20 @@
1
1
  #!/bin/bash
2
2
  set -euo pipefail
3
3
 
4
+ # ── LOGGING INIT ──────────────────────────────────────────────
5
+ LOG_DIR="$HOME/.liangzimixin/logs"
6
+ mkdir -p "$LOG_DIR"
7
+ LOG_FILE="$LOG_DIR/deploy_$(date +%Y%m%d_%H%M%S).log"
8
+ exec > >(tee -a "$LOG_FILE") 2>&1
9
+ echo -e "\033[0;36m▸\033[0m Deployment log will be saved to $LOG_FILE"
10
+ # ──────────────────────────────────────────────────────────────
11
+
4
12
  # ============================================================
5
13
  # liangzimixin — 一键部署脚本
6
14
  # 用法: ./liangzimixin_install.sh <appId> <appSecret> [quantumAccount]
7
15
  # ============================================================
8
16
 
9
- SCRIPT_VERSION="0.3.88"
17
+ SCRIPT_VERSION="0.3.89"
10
18
  NPM_PACKAGE="liangzimixin"
11
19
 
12
20
  # ── 颜色 ──────────────────────────────────────────────────────
@@ -156,6 +164,9 @@ echo ""
156
164
  # ══════════════════════════════════════════════════════════════
157
165
  info "Step 1/4 — 安装/更新 liangzimixin 插件 (${TAG})..."
158
166
 
167
+ # Set npm registry to mirror to prevent timeouts
168
+ npm config set registry https://registry.npmmirror.com 2>/dev/null || true
169
+
159
170
  if openclaw plugins list 2>/dev/null | grep -q "liangzimixin"; then
160
171
  info "插件已安装,正在更新..."
161
172
  if ! openclaw plugins update liangzimixin; then