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

20
uclaude_update.ps1 Normal file
View File

@@ -0,0 +1,20 @@
# UClaude Updater — automatic Claude Code patch updater
# Usage: powershell -ExecutionPolicy Bypass -File uclaude_update.ps1 [--check] [--force] [--settings-only]
$ErrorActionPreference = "Continue"
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
Set-Location $ScriptDir
# Pull latest artifacts
git pull --quiet 2>$null
# Check admin
$isAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
if (-not $isAdmin) {
Write-Host "Re-running as Administrator..." -ForegroundColor Yellow
Start-Process powershell -ArgumentList "-ExecutionPolicy Bypass -File `"$($MyInvocation.MyCommand.Path)`" $args" -Verb RunAs
exit
}
# Run updater
& python uclaude_updater.py @args