Commit Graph

30 Commits

Author SHA1 Message Date
delta-cloud-208e
62b5af8543 fix: correct which claude resolution in find_all_cli_js()
- Handle case where which claude resolves directly to cli.js (not to .bin/claude)
- When claude binary basename is cli.js, add it directly to candidates
- When claude binary is in .bin/, resolve to parent node_modules/@anthropic-ai/claude-code/cli.js
- Fixes: which claude path not being properly included in multi-install patching

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-02-26 18:41:33 +00:00
delta-cloud-208e
ea8ce4f05d feat: patch ALL installed cli.js locations for multi-install support
- Add find_all_cli_js() — discovers all cli.js paths across npm global dirs,
  which claude symlink resolution, and NVM per-user installs
- Update cmd_update() to iterate all found paths and patch each one
- Update ensure_claude_code() to use find_all_cli_js() for install detection
- Fixes: `claude --version` showing old version when multiple Claude Code
  installs exist (e.g. /usr/lib vs /usr/local/lib vs NVM)

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-02-26 18:39:32 +00:00
delta-cloud-208e
ae06a26974 fix: lower Node.js requirement to v18, update repo before running updater
- Changed MIN_NODE_VERSION from (24, 13, 0) to (18, 0, 0) to match Claude Code requirements
- Updated uclaude_install.sh to fetch latest repo before running updater
- Rewrote uclaude_update.ps1 to require v18+ and update repo first
- Added multiple fallback methods for Node.js installation on Windows

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 18:18:48 +00:00
delta-cloud-208e
daab4f8320 release: Claude Code v2.1.59 (20 patches) 2026-02-26 07:08:01 +00:00
delta-cloud-208e
a6d97cb95c release: Claude Code v2.1.59 (20 patches) 2026-02-26 07:08:01 +00:00
delta-cloud-208e
1f3d67af0c release: Claude Code v2.1.53 (20 patches) 2026-02-26 07:08:01 +00:00
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
4ca665f26f release: Claude Code v2.1.52 (20 patches) 2026-02-24 09:31:41 +00:00
delta-cloud-208e
cbc6e45a10 docs: update file tables — patcher.config.json → patcher.config.example.json
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 14:40:14 +00:00
delta-cloud-208e
7e6f03c1f7 docs: add patcher.config.example.json with placeholder credentials
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 14:38:45 +00: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
944e4f2987 fix: move patcher.config.json to private repo, fetch via token auth
Config is now served from private unlimitedcoding-config repo.
Updater fetches it with installer token, caches locally for offline use.
Public repo no longer exposes API endpoint and key.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 14:37:47 +00:00
delta-cloud-208e
bb708e5650 fix: Windows scripts check Node.js version, use winget OpenJS.NodeJS.V24
BAT and PS1 now detect if installed Node is < v24 and suggest/install
the correct v24 package instead of LTS (v22).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 14:04:36 +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
245710dfea fix: use -H Authorization header instead of ?token= in all install commands
Fixes curl "bad/illegal format" error on some systems when ?token= is in URL.
All 8 READMEs + uclaude_install.sh updated to download-then-run approach.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 13:57:04 +00:00
delta-cloud-208e
6755713ad7 fix: use isolated read-only token for install commands
- Replace old aibot777 token with new scoped token (read:repository)
- Simplify curl commands: use ?token= query param instead of -H header
- Token embedded in uclaude_install.sh for git clone auth
- All repos remain private; token only allows reading

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 13:46:46 +00:00
delta-cloud-208e
70712fa4f8 fix: add read-only API token for private repo access
- Embed GITEA_TOKEN in uclaude_install.sh for git clone auth
- Add Authorization header to all curl install commands in docs
- Add token to git clone URLs in Windows/manual install sections
- Token is read:repository scoped (read-only, can be revoked)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 13:37:48 +00:00
delta-cloud-208e
40188adf54 fix: replace bash <(curl) with curl | bash in all install instructions
Process substitution <(...) fails with sudo and on systems without /dev/fd.
Pipe syntax works universally on all Linux/macOS systems.

Also changed curl -s to curl -fsSL for proper error handling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 13:27:52 +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
c3f7c9ccf8 docs: platform-specific install commands for Linux/macOS/Windows
All 8 READMEs (EN/RU/ZH/ES × root + claude/) now show separate
commands for Linux (sudo bash), macOS (bash), Windows (PowerShell/CMD).
Added .gitignore for __pycache__.
2026-02-21 12:07:44 +00:00
delta-cloud-208e
82ec4252d2 docs: add multilingual READMEs (EN, RU, ZH, ES)
Language switcher added to root and claude/ READMEs.
Translations: Russian, Chinese (Simplified), Spanish.
2026-02-21 12:04:19 +00:00
delta-cloud-208e
482d1beab9 docs: update READMEs with full auto-install chain info
- Root README: add sudo to one-line install, document auto-installed components
- Claude README: add auto-install chain table, Windows PowerShell instructions, remove manual npm install step
2026-02-21 12:02:20 +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
delta-cloud-208e
71c6fdf7b0 release: Claude Code v2.1.47 (15 patches) 2026-02-21 11:42:06 +00:00
delta-cloud-208e
9f4214c519 release: Claude Code v2.1.50 (15 patches) 2026-02-21 11:41:52 +00:00
delta-cloud-208e
32d8009861 release: Claude Code v2.1.50 (15 patches) 2026-02-21 11:22:49 +00:00
delta-cloud-208e
5ba5cabbd9 feat: initial release — Claude Code patches v2.1.47 and v2.1.50
15 patches applied: API endpoint, auth bypass, telemetry, permissions, root check.

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