Commit Graph

244 Commits

Author SHA1 Message Date
delta-cloud-208e
34868eea72 fix(codex): sync codex_patcher.py with TOML inline-table fix
Mirrors claude_code_patcher@661eced — fixes Windows ucodex_install.ps1
crash 'Error loading config.toml: missing assignment' caused by
toml_value(dict) emitting Python str(dict) instead of TOML syntax.

Existing broken installs: re-run installer or manually delete the bad
section from ~/.codex/config.toml then re-run ucodex_install.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-25 16:53:52 +00:00
delta-cloud-208e
31f9c3e1a8 refactor(installers): extract PRIVATE_CONFIG_BASE in sh scripts (DRY) 2026-04-25 16:43:59 +00:00
delta-cloud-208e
8924b75e91 SECURITY: redact api_key from public repo (Variant B)
CRITICAL: api_key 'ClauderAPI2' was committed to PUBLIC unlimitedcoding
repo (private:False on gitea) in 4 *_config.json + 8 ps1 scripts. Anyone
on the internet could read it via curl with no auth (HTTP 200 raw access).

This commit:
1. Sanitizes 4 *_config.json: api_key → "YOUR_API_KEY" + _note pointing
   users to private config repo for production credentials.
2. Removes 'ClauderAPI2' literal from 8 ps1 installer/updater scripts
   (claude/codex/gemini/qwen × install/update). Each script now has a
   sanitized block at top that fetches api_key from private
   unlimitedcoding-config repo at runtime via Authorization token.
3. Switches 6 sh installer scripts from public REPO_RAW to PRIVATE
   unlimitedcoding-config base URL for *_config.json downloads.
4. Removes stale .patcher.config.cache.json (will regen on next install).

Production configs MOVED to private repo (separate commit e839102 on
unlimitedcoding-config/main).

KNOWN UNCHANGED:
- releases/v2.1.119/sea/cli-wrapper.cjs still has api_key (part of npm
  package distribution; clients need it locally; sensey serves same).
- Read-only gitea token (cadffcb0...) remains in installers — needed
  for token-auth fetch from private repo. Scoped read-only.

RECOMMEND: api_key rotation in proxy auth list because ClauderAPI2 was
publicly exposed for an unknown period. Existing client installs would
need re-install or env override.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-25 16:43:08 +00:00
delta-cloud-208e
ceb39657a1 feat(installers): chain codex install + ps1 fallback includes gpt-5.5
User reported on Mac/Win:
1. gpt-5.5 not appearing in client model picker after install
2. codex CLI not installed by uclaude_install.{sh,ps1}

Root causes (TDD verified):
1. ps1 hardcoded fallback (when private config fetch fails) had only 5
   models without gpt-5.5; users behind firewall/with stale cache fall
   back to it. Updated fallback to include latest list including gpt-5.5,
   gemini-3.1-pro, gemini-3-flash, glm-5.1.
2. Codex has SEPARATE installer (codex/ucodex_install.{sh,ps1}). Users
   following claude install instructions miss it. README documents both
   but as separate steps. Now uclaude_install.{sh,ps1} optionally chain
   to codex installer at the end (skip via UCLAUDE_SKIP_CODEX=1).

Sh installer: also expanded sparse-checkout to include codex/ directory.

README versions: bumped Codex CLI 0.122.0 → 0.125.0 in all 4 locale files
(README.md, README_ru.md, README_es.md, README_zh.md).

3 new tests in claude_code_patcher/tests/test_installers_completeness.py
verify the fix sticks (ps1 fallback has gpt-5.5, both installers mention
codex chain, README codex version current via GitHub API check).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-25 16:22:33 +00:00
delta-cloud-208e
e982413591 fix(installer-ps1): downgrade fallback msg to Write-Warning per critic 2026-04-25 05:49:24 +00:00
delta-cloud-208e
136f60351c fix(installer-ps1): drop ANTHROPIC_API_KEY + dynamic models fetch
Auth conflict warning fix: setting both ANTHROPIC_AUTH_TOKEN and
ANTHROPIC_API_KEY simultaneously triggers Anthropic CLI to print
"Auth conflict" on every claude invocation. Drop API_KEY (we never
needed both — AUTH_TOKEN is the canonical for our proxy).

Best-effort cleanup: clear stale ANTHROPIC_API_KEY from User env (set
by previous installer versions).

Models stale fix: hardcoded list (qwen3-coder-plus, gemini-3.1-pro-preview,
glm-5, glm-4.7 etc.) was missing latest gemini-3.1-pro, gemini-3-flash,
glm-5.1. Now fetches CLAUDE_CUSTOM_MODELS from the private config repo
(unlimitedcoding-config/patcher.config.json) at install time, with
fallback to a small known-good list if fetch fails.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-25 05:46:48 +00:00
delta-cloud-208e
4b70384863 release: Gemini CLI v0.39.1 (6 patches) 2026-04-25 05:34:40 +00:00
delta-cloud-208e
b97ac4bb9e feat(codex): auto-update to v0.125.0
Binary: 0.124.0 -> 0.125.0
Config synced from claude_code_patcher.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-25 04:06:37 +00:00
delta-cloud-208e
cc6d2797dc feat(claude): publish v2.1.119 SEA artifacts 2026-04-24 12:03:08 +00:00
delta-cloud-208e
3d4b371e17 feat(updater): SEA install support for Claude Code 2.1.114+ (TDD + dual-critic APPROVE)
Adds install_sea_release() to uclaude_updater.py — dispatches by release
type from releases/v<VER>/, supporting both legacy cli.js and new SEA layout.

Production-hardened (after 2 rounds of dual-critic FIX):
- Pre-verify source sha256 BEFORE touching install_root (fail-fast)
- Atomic copy via _atomic_copy_with_fsync: write to .new, fsync, rename,
  then fsync parent dir (POSIX durability)
- .new cleanup on any exception (no orphan files)
- fcntl.flock on <install_root>/.uclaude-update.lock (concurrent run safe)
- Backup existing → .bak.<TIMESTAMP> before overwrite
- Post-install sha256 verify; rollback from backup on mismatch
- Atomic symlink update (tmp_link + os.replace)

cmd_update dispatches:
- detect_release_type → "sea" / "cli_js" / None
- "sea" → install_sea_release with /usr/lib/node_modules root + /usr/bin/claude symlink
- "cli_js" → existing legacy install_cli_js (preserved)
- None → fail with clear error

Updated:
- claude/uclaude_updater.py — +138 lines (install_sea_release + helpers)
- claude/releases/index.json — latest=2.1.119, +v2.1.119 entry (sea_binary)

Tests: 11/11 GREEN (claude/tests/test_sea_install.py — new file)
Dual critic: gpt-5.4 + GLM 5.1 both APPROVE (round 3 final)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-24 11:54:17 +00:00
delta-cloud-208e
01c7af848f feat(claude): publish v2.1.119 SEA artifacts 2026-04-24 10:40:23 +00:00
delta-cloud-208e
fdd4ab5299 feat(claude): publish v2.1.119 SEA artifacts 2026-04-24 10:36:40 +00:00
delta-cloud-208e
5138141d5d feat(claude): add idempotent installer for openai/codex-plugin-cc
One-liner script that:
- Verifies/installs Node.js >= 18, git, codex CLI
- Adds 'openai-codex' marketplace (github.com/openai/codex-plugin-cc)
- Installs/updates 'codex@openai-codex' plugin
- Verifies result via 'claude plugin list'

Re-runs are safe — auto-detects what is already installed and only fills
gaps or pulls newer plugin versions.

Three platforms covered: Linux (apt/dnf/yum), macOS (brew),
Windows (winget) via .sh and .ps1 wrappers + CMD entry-point.

Plugin commands inside Claude Code:
  /codex:review, /codex:adversarial-review, /codex:rescue,
  /codex:status, /codex:result, /codex:cancel

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-23 20:02:36 +00:00
delta-cloud-208e
96e1fa7292 feat(claude): add gpt-5.4-mini to model picker
Bundled in Codex 0.124 (released Apr 2026), HTTP 200 verified through proxy.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-23 19:41:12 +00:00
delta-cloud-208e
65bc1b4bee feat(codex): auto-update to v0.124.0
Binary: 0.123.0 -> 0.124.0
Config synced from claude_code_patcher.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-23 19:38:16 +00:00
delta-cloud-208e
634c58d0ee feat(claude): add claude-haiku-4-5 + glm-5.1 to model picker
- claude-haiku-4-5-20251001: was available in proxy but missing from config
- glm-5.1: new Zhipu model leading SWE-Bench Pro (Apr 2026), now registered
  in proxy registry and reachable via /v1/messages

All previously listed models kept (qwen3.6-coder-* tokens are temporarily
expired but will recover once tokens refresh).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-23 19:33:59 +00:00
delta-cloud-208e
889d3af956 feat(codex): auto-update to v0.123.0
Binary: 0.122.0 -> 0.123.0
Config synced from claude_code_patcher.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-23 04:06:32 +00:00
delta-cloud-208e
3381797148 fix(ps1): strip all non-ASCII Unicode from PowerShell scripts
Windows PowerShell 5.1 reads .ps1 files without BOM as Windows-1251 by
default. Em-dashes (-) and other Unicode chars in string literals get
mangled into invalid bytes (e.g. "session - no" becomes garbage that
breaks the parser with "Unexpected token" errors.

Replaced em-dash, en-dash, smart quotes, ellipsis, NBSP and arrows with
their ASCII equivalents across all 12 .ps1 scripts (install/update/
uninstall for claude/gemini/codex/qwen).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 10:53:15 +00:00
delta-cloud-208e
cb088c4e9a fix(gemini): update.ps1 must set $env:GEMINI_API_KEY in current session
Previously env vars were only set inside the PowerShell-fallback branch
(when Python was missing). If Python was present, gemini_patcher.py wrote
env vars via setx — which only updates the registry, not the current
PowerShell process. Result: user runs update, then `gemini`, and gets
prompted for API key because process.env.GEMINI_API_KEY is empty.

Fix: always set env vars in BOTH User scope (persistent across sessions)
AND $env: (current session) at the end of the script, regardless of which
branch was taken. Also fix malformed JSON in trustedFolders.json fallback
(escaped quotes were inconsistent).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 10:49:45 +00:00
delta-cloud-208e
82830c971d fix(qwen): patch regional dashscope endpoints + inline validator
Qwen patcher had two issues:
1. Only patched dashscope.aliyuncs.com but missed regional endpoints
   (cn-hongkong, dashscope-intl, dashscope-us). Users in those regions
   would still hit Aliyun directly.
2. --validate raised ModuleNotFoundError (referenced removed updater/
   package). Replaced with self-contained inline checker — 13 GREEN
   targets covering cli.js markers, settings.json, env vars.

Also bump Codex version to v0.122.0 across all READMEs (was v0.116.0).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 10:26:55 +00:00
delta-cloud-208e
0a3de88e65 fix(gemini): conseca.toml enum value autoEdit, not auto_edit
Gemini v0.35+ accepts only camelCase 'autoEdit' in safety_checker modes
(strict zod schema). Older patcher inserted snake_case 'auto_edit' which
blocks gemini startup with: "Invalid enum value. Expected 'default' |
'autoEdit' | 'yolo' | 'plan', received 'auto_edit'".

Changes:
- conseca.toml writer now emits 'autoEdit'
- self-heal: detect existing 'auto_edit' on disk and rewrite to 'autoEdit'
- settingsSchema.js patcher: accept both 'auto_edit' (v0.32.x) and
  'autoEdit' (v0.35+) source variants

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 10:16:37 +00:00
delta-cloud-208e
95d53ba750 docs: sync all localized READMEs (RU/ZH/ES) with current install flow
- Update product table versions everywhere (claude v2.1.112, codex v0.116.0, gemini v0.35.3, qwen v0.14.5)
- Replace outdated bash heredocs with one-liner installer scripts
- Add Windows PowerShell + Windows CMD entry points
- Update claude/README*.md: drop git clone snippets, use uclaude_install.ps1 one-liner

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 10:06:22 +00:00
delta-cloud-208e
1bbeedf8e2 docs(gemini): use one-liner script as primary install method, drop manual paste
User feedback: pasting bash heredocs into PowerShell fails. Make the
ugemini_install.ps1/.sh wrapper the one and only command users need —
no need to copy bash/PS code blocks. Wrapper handles Node.js, npm,
env vars, settings.json, trustedFolders.json automatically.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 09:59:09 +00:00
delta-cloud-208e
3ef64ccf0c docs: clearly separate bash vs PowerShell vs CMD setup for Gemini
Users were copying bash heredocs (cat << EOF) into PowerShell where they fail.
Split into three explicit sections per shell with warning at top.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 09:55:56 +00:00
delta-cloud-208e
feeef468db docs: bump gemini version in product table to v0.35.3
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 09:30:53 +00:00
delta-cloud-208e
f7cf0b79fd docs: cross-platform install/update/uninstall instructions for codex/gemini/qwen
- Add Linux / macOS / Windows PowerShell / Windows CMD sections to all CLI READMEs
- Update product table versions (claude v2.1.112, codex v0.116.0, qwen v0.14.5)
- Make qwen install/update/uninstall scripts macOS-aware (sedi wrapper, launchctl, /Users scan, ~/.zshrc)
- Make gemini uninstall script macOS-aware (matching install/update)
- Fix CRLF line endings in qwen/gemini uninstall scripts

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 09:30:16 +00:00
delta-cloud-208e
1320f13f5c feat(codex): auto-update to v0.122.0
Binary: 0.121.0 -> 0.122.0
Config synced from claude_code_patcher.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-21 02:06:17 +00:00
delta-cloud-208e
c56a4dc427 release: Claude Code v2.1.112 (28 patches) 2026-04-17 12:01:09 +00:00
delta-cloud-208e
c2bdb579e9 release: Claude Code v2.1.112 (28 patches) 2026-04-17 00:05:17 +00:00
delta-cloud-208e
b13b44b98f feat: add Claude Opus 4.7 support — new flagship model
- patcher.config.json: opus-4-7 added to models list, set as default opus
- PS1 installers: ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-4-7
- CLAUDE_CUSTOM_MODELS includes opus-4-7 first
- v2.1.111 cli.js with patches applied

Opus 4.7 (released 2026-04-16):
- 1M context, 128K output
- New xhigh effort level
- Adaptive thinking (no more budget_tokens)
- High-res vision (2576px), high token efficiency

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 17:52:09 +00:00
delta-cloud-208e
84405df361 release: Claude Code v2.1.111 (28 patches) 2026-04-16 17:38:47 +00:00
delta-cloud-208e
8136439210 release: Claude Code v2.1.110 (28 patches) 2026-04-16 06:01:29 +00:00
delta-cloud-208e
99d55d3ab2 feat(codex): auto-update to v0.121.0
Binary: 0.120.0 -> 0.121.0
Config synced from claude_code_patcher.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 02:08:28 +00:00
delta-cloud-208e
faf43fe2a0 release: Claude Code v2.1.110 (28 patches) 2026-04-16 00:02:51 +00:00
delta-cloud-208e
08e8456ddf release: Claude Code v2.1.109 (28 patches) 2026-04-15 06:00:48 +00:00
delta-cloud-208e
a5fdd651a8 release: Claude Code v2.1.108 (28 patches) 2026-04-15 00:02:53 +00:00
delta-cloud-208e
e9ea2fc345 release: Claude Code v2.1.107 (28 patches) 2026-04-14 12:00:30 +00:00
delta-cloud-208e
22071416d4 release: Claude Code v2.1.105 (28 patches) 2026-04-14 00:04:49 +00:00
delta-cloud-208e
a50f195034 release: Claude Code v2.1.104 (28 patches) 2026-04-13 00:07:09 +00:00
delta-cloud-208e
e09659daa4 release: Claude Code v2.1.104 (28 patches) 2026-04-12 06:08:45 +00:00
delta-cloud-208e
7c8d540324 release: Claude Code v2.1.101 (28 patches) 2026-04-12 00:01:36 +00:00
delta-cloud-208e
fd359755ec feat(codex): auto-update to v0.120.0
Binary: 0.119.0 -> 0.120.0
Config synced from claude_code_patcher.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-11 14:08:02 +00:00
delta-cloud-208e
7d75fabcd2 feat(codex): auto-update to v0.119.0
Binary: 0.118.0 -> 0.119.0
Config synced from claude_code_patcher.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-11 02:09:02 +00:00
delta-cloud-208e
e7feeae713 release: Claude Code v2.1.101 (28 patches) 2026-04-11 00:06:13 +00:00
delta-cloud-208e
af460e8f12 release: Claude Code v2.1.100 (28 patches) 2026-04-10 06:07:58 +00:00
delta-cloud-208e
f4f9d1c253 release: Claude Code v2.1.98 (28 patches) 2026-04-10 00:00:43 +00:00
delta-cloud-208e
69f1c9e200 release: Claude Code v2.1.97 (28 patches) 2026-04-09 00:06:45 +00:00
delta-cloud-208e
6e2ac9d1e0 release: Claude Code v2.1.96 (28 patches) 2026-04-08 12:10:26 +00:00
delta-cloud-208e
a66c80c2fd release: Claude Code v2.1.96 (28 patches) 2026-04-08 06:09:24 +00:00
delta-cloud-208e
c1cd42033b release: Claude Code v2.1.94 (28 patches) 2026-04-08 00:02:30 +00:00