AI Newsletter Digest improvements: fixed QP soft line break decoding, URL extraction, and content cleaning

This commit is contained in:
Krilly
2026-03-04 13:29:22 +00:00
parent 29a98137a7
commit 57dd294675
13706 changed files with 2114953 additions and 237629 deletions

View File

@@ -23,21 +23,29 @@ else
cd "$REPO_DIR"
fi
# Restore state directory
if [ -d "$REPO_DIR/state" ]; then
# Restore state directory (from openclaw-state/)
if [ -d "$REPO_DIR/openclaw-state" ]; then
echo "Restoring state directory..."
rsync -av "$REPO_DIR/state/" "$STATE_DIR/"
mkdir -p "$STATE_DIR/cron" "$STATE_DIR/devices"
[ -f "$REPO_DIR/openclaw-state/openclaw.json" ] && cp "$REPO_DIR/openclaw-state/openclaw.json" "$STATE_DIR/"
[ -f "$REPO_DIR/openclaw-state/cron/jobs.json" ] && cp "$REPO_DIR/openclaw-state/cron/jobs.json" "$STATE_DIR/cron/"
[ -f "$REPO_DIR/openclaw-state/devices/paired.json" ] && cp "$REPO_DIR/openclaw-state/devices/paired.json" "$STATE_DIR/devices/"
else
echo "Warning: No state directory in backup"
echo "Warning: No openclaw-state directory in backup"
fi
# Restore workspace (optional - may not want to overwrite)
# Restore workspace
echo ""
echo "Workspace restore is optional. Current workspace may have newer files."
read -p "Restore workspace too? (y/N): " answer
if [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then
echo "Restoring workspace..."
rsync -av "$REPO_DIR/workspace/" "$WORKSPACE_DIR/"
echo "Restoring workspace..."
rsync -av --exclude='.git' "$REPO_DIR/" "$WORKSPACE_DIR/"
# Restore missing skills
echo ""
echo "Checking for missing skills..."
if [ -f "$WORKSPACE_DIR/scripts/skill-tracker.sh" ]; then
"$WORKSPACE_DIR/scripts/skill-tracker.sh" restore
else
echo "Warning: Skill tracker not found - skills may need manual reinstallation"
fi
echo ""