feat: uclaude_updater — automatic client updater

- uclaude_updater.py — auto-detect version, install cli.js, patch settings
- uclaude_update.sh/bat/ps1 — platform wrappers (git pull + run updater)
- patcher.config.json — shared API config
- Updated README with full usage instructions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
delta-cloud-208e
2026-02-21 11:38:48 +00:00
parent 32d8009861
commit eb8d26a991
6 changed files with 702 additions and 21 deletions

18
uclaude_update.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# UClaude Updater — automatic Claude Code patch updater
# Usage: sudo bash uclaude_update.sh [--check] [--force] [--settings-only]
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"
# Pull latest artifacts
git pull --quiet 2>/dev/null || true
# Run updater
if [ "$(id -u)" -eq 0 ]; then
python3 uclaude_updater.py "$@"
else
echo "Root privileges required. Re-running with sudo..."
sudo python3 uclaude_updater.py "$@"
fi