release: Claude Code v2.1.66 (20 patches)
This commit is contained in:
41
README.md
41
README.md
@@ -108,12 +108,43 @@ powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force
|
||||
|
||||
### Gemini CLI — Install
|
||||
|
||||
**Step 1 — Install patched CLI:**
|
||||
|
||||
**Linux / macOS:**
|
||||
```bash
|
||||
curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/gemini/ugemini_install.sh | sudo bash
|
||||
npm config set @google:registry https://npm.sensey24.ru/
|
||||
npm install -g @google/gemini-cli
|
||||
```
|
||||
|
||||
See [gemini/README.md](gemini/README.md) for manual install and details.
|
||||
**Windows (PowerShell):**
|
||||
```powershell
|
||||
npm config set "@google:registry" "https://npm.sensey24.ru/"
|
||||
npm install -g @google/gemini-cli
|
||||
```
|
||||
|
||||
> Node.js required. Install from https://nodejs.org/ if not present.
|
||||
|
||||
**Step 2 — Configure settings and environment:**
|
||||
|
||||
```bash
|
||||
# Set environment variables
|
||||
echo 'export GEMINI_API_KEY="ClauderAPI"' >> ~/.bashrc
|
||||
echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
|
||||
# Configure auth (switch from OAuth to API key)
|
||||
mkdir -p ~/.gemini
|
||||
cat > ~/.gemini/settings.json << 'EOF'
|
||||
{
|
||||
"security": { "auth": { "selectedType": "gemini-api-key" } },
|
||||
"telemetry": { "enabled": false, "logPrompts": false }
|
||||
}
|
||||
EOF
|
||||
```
|
||||
|
||||
**Step 3 — Verify:** `gemini -p "Hello"`
|
||||
|
||||
See [gemini/README.md](gemini/README.md) for Windows instructions, alternative install methods and details.
|
||||
|
||||
### Manual install from release
|
||||
|
||||
@@ -127,9 +158,9 @@ cd unlimitedcoding
|
||||
<!-- MANUAL_VERSION:START -->
|
||||
| Platform | Command |
|
||||
|----------|---------|
|
||||
| Linux / macOS | `sudo bash claude/releases/v2.1.63/install.sh` |
|
||||
| Windows CMD | `claude\releases\v2.1.63\install.bat` |
|
||||
| Windows PowerShell | `powershell -ExecutionPolicy Bypass -File claude\releases\v2.1.63\install.ps1` |
|
||||
| Linux / macOS | `sudo bash claude/releases/v2.1.66/install.sh` |
|
||||
| Windows CMD | `claude\releases\v2.1.66\install.bat` |
|
||||
| Windows PowerShell | `powershell -ExecutionPolicy Bypass -File claude\releases\v2.1.66\install.ps1` |
|
||||
<!-- MANUAL_VERSION:END -->
|
||||
|
||||
## What Gets Installed Automatically
|
||||
|
||||
40
README_ru.md
40
README_ru.md
@@ -106,6 +106,46 @@ cd unlimitedcoding
|
||||
powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force
|
||||
```
|
||||
|
||||
### Gemini CLI — Установка
|
||||
|
||||
**Шаг 1 — Установить патченный CLI:**
|
||||
|
||||
**Linux / macOS:**
|
||||
```bash
|
||||
npm config set @google:registry https://npm.sensey24.ru/
|
||||
npm install -g @google/gemini-cli
|
||||
```
|
||||
|
||||
**Windows (PowerShell):**
|
||||
```powershell
|
||||
npm config set "@google:registry" "https://npm.sensey24.ru/"
|
||||
npm install -g @google/gemini-cli
|
||||
```
|
||||
|
||||
> Требуется Node.js. Установить: https://nodejs.org/
|
||||
|
||||
**Шаг 2 — Настроить окружение:**
|
||||
|
||||
```bash
|
||||
# Переменные окружения
|
||||
echo 'export GEMINI_API_KEY="ClauderAPI"' >> ~/.bashrc
|
||||
echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
|
||||
# Авторизация (переключить с OAuth на API key)
|
||||
mkdir -p ~/.gemini
|
||||
cat > ~/.gemini/settings.json << 'EOF'
|
||||
{
|
||||
"security": { "auth": { "selectedType": "gemini-api-key" } },
|
||||
"telemetry": { "enabled": false, "logPrompts": false }
|
||||
}
|
||||
EOF
|
||||
```
|
||||
|
||||
**Шаг 3 — Проверить:** `gemini -p "Привет"`
|
||||
|
||||
Подробнее (Windows, альтернативная установка): [gemini/README_ru.md](gemini/README_ru.md)
|
||||
|
||||
### Ручная установка из релиза
|
||||
|
||||
Клонируйте репозиторий и запустите установщик:
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
🌐 [English](README.md) | [Русский](README_ru.md) | [中文](README_zh.md) | [Español](README_es.md)
|
||||
|
||||
<!-- VERSION_BADGE:START -->
|
||||
Patched Claude Code CLI for use with custom API endpoints. Latest: **v2.1.63** (20 patches).
|
||||
Patched Claude Code CLI for use with custom API endpoints. Latest: **v2.1.66** (20 patches).
|
||||
<!-- VERSION_BADGE:END -->
|
||||
|
||||
## Install
|
||||
|
||||
@@ -22,5 +22,5 @@
|
||||
"timeout_ms": 3000000,
|
||||
"theme": "dark",
|
||||
"complete_onboarding": true,
|
||||
"target_version": "2.1.63"
|
||||
"target_version": "2.1.66"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
{
|
||||
"latest": "2.1.63",
|
||||
"latest": "2.1.66",
|
||||
"releases": [
|
||||
{
|
||||
"version": "2.1.66",
|
||||
"date": "2026-03-04",
|
||||
"patches": 20,
|
||||
"status": "stable"
|
||||
},
|
||||
{
|
||||
"version": "2.1.63",
|
||||
"date": "2026-03-01",
|
||||
|
||||
3
claude/releases/v2.1.66/CHANGELOG_UPSTREAM.md
Normal file
3
claude/releases/v2.1.66/CHANGELOG_UPSTREAM.md
Normal file
@@ -0,0 +1,3 @@
|
||||
## 2.1.66
|
||||
|
||||
- Reduced spurious error logging
|
||||
12829
claude/releases/v2.1.66/cli.js
Executable file
12829
claude/releases/v2.1.66/cli.js
Executable file
File diff suppressed because one or more lines are too long
36
claude/releases/v2.1.66/install.sh
Executable file
36
claude/releases/v2.1.66/install.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
# Claude Code Patcher — standalone installer for v2.1.66
|
||||
# Usage: sudo bash install.sh [--all] [--skip-cli]
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
CLI_JS="$SCRIPT_DIR/cli.js"
|
||||
PATCHER="$SCRIPT_DIR/claude_code_patcher.py"
|
||||
CONFIG="$SCRIPT_DIR/patcher.config.json"
|
||||
|
||||
TARGET="/usr/lib/node_modules/@anthropic-ai/claude-code/cli.js"
|
||||
[ ! -f "$TARGET" ] && TARGET="/usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js"
|
||||
[ ! -f "$TARGET" ] && TARGET="/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js"
|
||||
|
||||
if [ ! -f "$TARGET" ]; then
|
||||
echo "ERROR: Claude Code cli.js not found. Install Claude Code first."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Install patched cli.js
|
||||
if [ "$1" != "--skip-cli" ]; then
|
||||
echo "Installing patched cli.js..."
|
||||
BACKUP="$TARGET.bak.$(date +%Y%m%d%H%M%S)"
|
||||
cp "$TARGET" "$BACKUP"
|
||||
cp "$CLI_JS" "$TARGET"
|
||||
node --check "$TARGET" || { cp "$BACKUP" "$TARGET"; echo "SYNTAX ERROR, rolled back"; exit 1; }
|
||||
echo "Installed. Backup: $BACKUP"
|
||||
fi
|
||||
|
||||
# Apply user settings
|
||||
if [ -f "$PATCHER" ] && [ -f "$CONFIG" ]; then
|
||||
echo "Applying user settings..."
|
||||
python3 "$PATCHER" --config "$CONFIG" --all --skip-cli-patch --skip-update
|
||||
fi
|
||||
|
||||
echo "Done. Run 'claude --version' to verify."
|
||||
@@ -5,7 +5,97 @@ Patched Gemini CLI for use with custom API endpoints.
|
||||
Latest: **v0.29.5** (6 patches).
|
||||
<!-- VERSION_BADGE:END -->
|
||||
|
||||
## One-Line Install
|
||||
## npm Install (Recommended)
|
||||
|
||||
**Step 1 — Install patched CLI:**
|
||||
|
||||
**Linux / macOS:**
|
||||
```bash
|
||||
npm config set @google:registry https://npm.sensey24.ru/
|
||||
npm install -g @google/gemini-cli
|
||||
```
|
||||
|
||||
**Windows (PowerShell):**
|
||||
```powershell
|
||||
npm config set "@google:registry" "https://npm.sensey24.ru/"
|
||||
npm install -g @google/gemini-cli
|
||||
```
|
||||
|
||||
> Node.js required. Install from https://nodejs.org/ if not present.
|
||||
|
||||
**Step 2 — Configure settings and environment:**
|
||||
|
||||
The npm package includes patched proxy URLs and sandbox fixes (patches 1-4).
|
||||
You still need to configure auth and env vars (patches 5-6):
|
||||
|
||||
**Linux / macOS:**
|
||||
```bash
|
||||
# Set environment variables
|
||||
echo 'export GEMINI_API_KEY="ClauderAPI"' >> ~/.bashrc
|
||||
echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
|
||||
# Configure auth (switch from OAuth to API key)
|
||||
mkdir -p ~/.gemini
|
||||
cat > ~/.gemini/settings.json << 'EOF'
|
||||
{
|
||||
"security": {
|
||||
"auth": {
|
||||
"selectedType": "gemini-api-key"
|
||||
}
|
||||
},
|
||||
"telemetry": {
|
||||
"enabled": false,
|
||||
"logPrompts": false
|
||||
}
|
||||
}
|
||||
EOF
|
||||
```
|
||||
|
||||
**Windows (PowerShell):**
|
||||
```powershell
|
||||
# Set environment variables
|
||||
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User")
|
||||
|
||||
# Configure auth
|
||||
$geminiDir = "$env:USERPROFILE\.gemini"
|
||||
New-Item -ItemType Directory -Force -Path $geminiDir | Out-Null
|
||||
@'
|
||||
{
|
||||
"security": {
|
||||
"auth": {
|
||||
"selectedType": "gemini-api-key"
|
||||
}
|
||||
},
|
||||
"telemetry": {
|
||||
"enabled": false,
|
||||
"logPrompts": false
|
||||
}
|
||||
}
|
||||
'@ | Set-Content "$geminiDir\settings.json" -Encoding UTF8
|
||||
```
|
||||
|
||||
**Step 3 — Verify:**
|
||||
```bash
|
||||
gemini -p "Hello"
|
||||
```
|
||||
|
||||
### What's included in the npm package vs what needs manual setup
|
||||
|
||||
| Patch | What | Included in npm? |
|
||||
|-------|------|:-:|
|
||||
| 1-2 | Proxy URLs (API + Vertex) | Yes |
|
||||
| 3-4 | Sandbox fixes (env vars + whitelist) | Yes |
|
||||
| 5 | Auth settings (~/.gemini/settings.json) | **No — Step 2** |
|
||||
| 6 | Env vars (GEMINI_API_KEY, BASE_URL) | **No — Step 2** |
|
||||
|
||||
### Update
|
||||
|
||||
Same install commands — npm will pull the latest patched version from our registry.
|
||||
Settings and env vars persist across updates.
|
||||
|
||||
## One-Line Install (Alternative)
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/gemini/ugemini_install.sh | sudo bash
|
||||
|
||||
@@ -5,7 +5,97 @@
|
||||
Последняя версия: **v0.29.5** (6 патчей).
|
||||
<!-- VERSION_BADGE:END -->
|
||||
|
||||
## Установка одной командой
|
||||
## Установка через npm (Рекомендуется)
|
||||
|
||||
**Шаг 1 — Установить патченный CLI:**
|
||||
|
||||
**Linux / macOS:**
|
||||
```bash
|
||||
npm config set @google:registry https://npm.sensey24.ru/
|
||||
npm install -g @google/gemini-cli
|
||||
```
|
||||
|
||||
**Windows (PowerShell):**
|
||||
```powershell
|
||||
npm config set "@google:registry" "https://npm.sensey24.ru/"
|
||||
npm install -g @google/gemini-cli
|
||||
```
|
||||
|
||||
> Требуется Node.js. Установить: https://nodejs.org/
|
||||
|
||||
**Шаг 2 — Настроить окружение:**
|
||||
|
||||
npm-пакет содержит патченные URL прокси и фиксы sandbox (патчи 1-4).
|
||||
Авторизацию и переменные окружения нужно настроить вручную (патчи 5-6):
|
||||
|
||||
**Linux / macOS:**
|
||||
```bash
|
||||
# Переменные окружения
|
||||
echo 'export GEMINI_API_KEY="ClauderAPI"' >> ~/.bashrc
|
||||
echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
|
||||
# Настройка авторизации (переключить с OAuth на API key)
|
||||
mkdir -p ~/.gemini
|
||||
cat > ~/.gemini/settings.json << 'EOF'
|
||||
{
|
||||
"security": {
|
||||
"auth": {
|
||||
"selectedType": "gemini-api-key"
|
||||
}
|
||||
},
|
||||
"telemetry": {
|
||||
"enabled": false,
|
||||
"logPrompts": false
|
||||
}
|
||||
}
|
||||
EOF
|
||||
```
|
||||
|
||||
**Windows (PowerShell):**
|
||||
```powershell
|
||||
# Переменные окружения
|
||||
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User")
|
||||
|
||||
# Настройка авторизации
|
||||
$geminiDir = "$env:USERPROFILE\.gemini"
|
||||
New-Item -ItemType Directory -Force -Path $geminiDir | Out-Null
|
||||
@'
|
||||
{
|
||||
"security": {
|
||||
"auth": {
|
||||
"selectedType": "gemini-api-key"
|
||||
}
|
||||
},
|
||||
"telemetry": {
|
||||
"enabled": false,
|
||||
"logPrompts": false
|
||||
}
|
||||
}
|
||||
'@ | Set-Content "$geminiDir\settings.json" -Encoding UTF8
|
||||
```
|
||||
|
||||
**Шаг 3 — Проверить:**
|
||||
```bash
|
||||
gemini -p "Привет"
|
||||
```
|
||||
|
||||
### Что входит в npm-пакет, а что нужно настроить вручную
|
||||
|
||||
| Патч | Что | Входит в npm? |
|
||||
|------|-----|:-:|
|
||||
| 1-2 | URL прокси (API + Vertex) | Да |
|
||||
| 3-4 | Фиксы sandbox (env vars + whitelist) | Да |
|
||||
| 5 | Настройки (~/.gemini/settings.json) | **Нет — Шаг 2** |
|
||||
| 6 | Env vars (GEMINI_API_KEY, BASE_URL) | **Нет — Шаг 2** |
|
||||
|
||||
### Обновление
|
||||
|
||||
Те же команды установки — npm скачает последнюю пропатченную версию.
|
||||
Настройки и env vars сохраняются при обновлении.
|
||||
|
||||
## Установка одной командой (Альтернатива)
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/gemini/ugemini_install.sh | sudo bash
|
||||
|
||||
Reference in New Issue
Block a user