@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 +1 -1
- package/scripts/reinstall.sh +4 -6
- package/scripts/update.sh +4 -6
package/package.json
CHANGED
package/scripts/reinstall.sh
CHANGED
|
@@ -269,13 +269,11 @@ fi
|
|
|
269
269
|
echo "→ Installing ClawRouter..."
|
|
270
270
|
openclaw plugins install @blockrun/clawrouter
|
|
271
271
|
|
|
272
|
-
# Restore credentials
|
|
272
|
+
# Restore credentials after plugin install (always restore to preserve user's channels)
|
|
273
273
|
if [ -n "$CREDS_BACKUP" ] && [ -d "$CREDS_BACKUP" ]; then
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
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
|
|
185
|
+
# Restore credentials after plugin install (always restore to preserve user's channels)
|
|
186
186
|
if [ -n "$CREDS_BACKUP" ] && [ -d "$CREDS_BACKUP" ]; then
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
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
|
|