Commit Graph

8 Commits

Author SHA1 Message Date
chrome-storm-c442
c466223882 fix: use shell=True on Windows for subprocess calls (npm/claude are .cmd)
Without shell=True, subprocess.run(["npm", ...]) fails on Windows because
npm and claude are .cmd batch files, not .exe. Added run_cmd() wrapper that
sets shell=True only on Windows, keeping Linux/macOS behavior unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 06:24:24 -05:00
delta-cloud-208e
436ef1e637 feat: load_config() fetches from private repo with token auth
- Primary: download from unlimitedcoding-config private repo via API token
- Cache: saves .patcher.config.cache.json for offline fallback
- Legacy fallback: still reads local patcher.config.json if present

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 14:37:52 +00:00
delta-cloud-208e
2c00e0327d fix: read version from cli.js bundle instead of package.json
package.json shows npm-installed version (e.g. 2.1.47) while the actual
patched cli.js contains 2.1.50. Now reads "// Version: x.y.z" from the
bundle first, falls back to claude --version, then package.json.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 14:03:35 +00:00
delta-cloud-208e
e98faa7e34 fix: stop updater when Node.js version is wrong, match npm package to patch version
- install_node() now checks ver >= MIN_NODE_VERSION after install (was missing)
- ensure_claude_code() accepts target_version, upgrades npm package if mismatched
- cmd_update() hard-stops with clear message if Node.js can't be upgraded
- Removes stale nodesource apt list before install to prevent version conflicts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 14:01:27 +00:00
delta-cloud-208e
7b932aec81 fix: ensure cli.js gets chmod 755 after install 2026-02-21 12:19:04 +00:00
delta-cloud-208e
5a46377d2a feat: patch marker verification in updater
- is_patched() checks 3 key markers in cli.js
- --check shows patched status (yes/NO)
- cmd_update auto-re-patches if markers missing (e.g. npm update overwrote cli.js)
2026-02-21 12:16:51 +00:00
delta-cloud-208e
6479aacfd4 feat: full auto-install chain for all platforms
- Wire ensure_claude_code() into cmd_update() — auto npm install if missing
- uclaude_install.sh: auto-install git, python3, curl via apt/dnf/yum/brew
- uclaude_update.bat: prereq checks with winget install suggestions
- uclaude_update.ps1: auto-install via winget (git, python, node)
- install_node(): macOS support via brew, RHEL/Fedora via rpm.nodesource
- Increased npm install timeout to 300s for slow connections
2026-02-21 11:58:33 +00:00
delta-cloud-208e
903520b0f9 refactor: перенос файлов в claude/ + мульти-продуктовая структура
- Все claude-файлы перенесены в claude/ (uclaude_updater.py, скрипты, config)
- claude/README.md с инструкцией для Claude Code
- Корневой README — общий для всех продуктов (claude, codex, gemini, qwen, antigravity)
- Node.js v24.13+ автоустановка через nodesource
- Sparse checkout: клиент скачивает только latest версию cli.js

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 11:51:09 +00:00