@blockrun/clawrouter 0.12.82 → 0.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/clawrouter",
3
- "version": "0.12.82",
3
+ "version": "0.12.83",
4
4
  "description": "Smart LLM router — save 85% on inference costs. 55+ models (11 free), one wallet, x402 micropayments.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -269,13 +269,11 @@ fi
269
269
  echo "→ Installing ClawRouter..."
270
270
  openclaw plugins install @blockrun/clawrouter
271
271
 
272
- # Restore credentials if they were lost during plugin install
272
+ # Restore credentials after plugin install (always restore to preserve user's channels)
273
273
  if [ -n "$CREDS_BACKUP" ] && [ -d "$CREDS_BACKUP" ]; then
274
- if [ ! -d "$CREDS_DIR" ] || [ -z "$(ls -A "$CREDS_DIR" 2>/dev/null)" ]; then
275
- mkdir -p "$CREDS_DIR"
276
- cp -a "$CREDS_BACKUP/"* "$CREDS_DIR/"
277
- echo " ✓ Restored OpenClaw credentials (channels preserved)"
278
- fi
274
+ mkdir -p "$CREDS_DIR"
275
+ cp -a "$CREDS_BACKUP/"* "$CREDS_DIR/"
276
+ echo " Restored OpenClaw credentials (channels preserved)"
279
277
  rm -rf "$(dirname "$CREDS_BACKUP")"
280
278
  fi
281
279
 
package/scripts/update.sh CHANGED
@@ -182,13 +182,11 @@ fi
182
182
  echo "→ Installing latest ClawRouter..."
183
183
  openclaw plugins install @blockrun/clawrouter
184
184
 
185
- # Restore credentials if they were lost during plugin install
185
+ # Restore credentials after plugin install (always restore to preserve user's channels)
186
186
  if [ -n "$CREDS_BACKUP" ] && [ -d "$CREDS_BACKUP" ]; then
187
- if [ ! -d "$CREDS_DIR" ] || [ -z "$(ls -A "$CREDS_DIR" 2>/dev/null)" ]; then
188
- mkdir -p "$CREDS_DIR"
189
- cp -a "$CREDS_BACKUP/"* "$CREDS_DIR/"
190
- echo " ✓ Restored OpenClaw credentials (channels preserved)"
191
- fi
187
+ mkdir -p "$CREDS_DIR"
188
+ cp -a "$CREDS_BACKUP/"* "$CREDS_DIR/"
189
+ echo " Restored OpenClaw credentials (channels preserved)"
192
190
  rm -rf "$(dirname "$CREDS_BACKUP")"
193
191
  fi
194
192