Skip to content

Commit 899bd14

Browse files
committed
feat: Dokümantasyon güncellemeleri ve GitHub Actions
- CHANGELOG.md: 2.4.0 versiyonu eklendi - docs/PROVIDER_SETUP.md: Tüm provider'lar güncellendi (GLM-5, MiniMax, DeepSeek) - docs/FULL_DOCUMENTATION_*.md: Versiyon güncellendi - .github/workflows/release.yml: Yeni workflow (test + npm publish)
1 parent 2ff69a5 commit 899bd14

6 files changed

Lines changed: 114 additions & 42 deletions

File tree

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
name: Publish to npm
1+
name: Release & Publish
22

33
on:
44
push:
5-
tags:
6-
- 'v*'
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
78

89
jobs:
9-
publish:
10+
test:
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@v4
@@ -21,7 +22,6 @@ jobs:
2122
with:
2223
node-version: '20'
2324
cache: 'pnpm'
24-
registry-url: 'https://registry.npmjs.org'
2525

2626
- name: Install dependencies
2727
run: pnpm install --frozen-lockfile
@@ -30,6 +30,28 @@ jobs:
3030
run: pnpm test -- --watchman=false
3131
continue-on-error: true
3232

33+
publish:
34+
needs: test
35+
runs-on: ubuntu-latest
36+
if: startsWith(github.ref, 'refs/tags/v')
37+
steps:
38+
- uses: actions/checkout@v4
39+
40+
- name: Install pnpm
41+
uses: pnpm/action-setup@v4
42+
with:
43+
version: 10
44+
45+
- name: Setup Node.js
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version: '20'
49+
cache: 'pnpm'
50+
registry-url: 'https://registry.npmjs.org'
51+
52+
- name: Install dependencies
53+
run: pnpm install --frozen-lockfile
54+
3355
- name: Get package version
3456
id: pkg
3557
run: echo "version=$(node -p \"require('./package.json').version\")" >> $GITHUB_OUTPUT
@@ -47,15 +69,15 @@ jobs:
4769
if: steps.npm.outputs.published != 'true'
4870
run: npm publish --access public
4971
env:
50-
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
72+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5173

5274
- name: Skip publish (already on npm)
5375
if: steps.npm.outputs.published == 'true'
5476
run: echo "Version already published, skipping npm publish."
5577

56-
- name: Create Release
78+
- name: Create GitHub Release
5779
uses: softprops/action-gh-release@v2
5880
with:
5981
generate_release_notes: true
6082
env:
61-
GITHUB_TOKEN: ${{ secrets.gh_pat }}
83+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
# Changelog
22

3-
## 2.1.0
3+
## 2.4.0
4+
- **NEW**: MiniMax support with `minimax` / `mm` aliases (M2.5 model)
5+
- **NEW**: GLM-5 support with two endpoints:
6+
- `glm` → Coding Plan endpoint (3x usage)
7+
- `glmapi` → API Credits endpoint (pay-per-use)
8+
- **NEW**: Complete documentation overhaul (TR/EN)
9+
- **NEW**: GitHub Actions workflow for automated release
10+
- **IMPROVED**: ccc.zsh now supports multiple providers with easy aliases
11+
- **IMPROVED**: README.md with all provider details
12+
13+
## 2.3.0
14+
- GLM-5 integration via z.ai
15+
16+
## 2.2.0
17+
- GLM-5 support with Coding Plan and API Credit endpoints
418
- **NEW**: UI now supports 3 languages - Turkish (TR), Dutch (NL), and English (EN)
519
- **NEW**: Comprehensive provider setup guide added with multi-provider routing documentation
620
- **NEW**: Inter-provider routing with automatic fallback support

docs/FULL_DOCUMENTATION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Claude Code Router - Tam Dokümantasyon
22

3-
> **Versiyon**: 1.0.73
4-
> **Tarih**: 2025-12-20
3+
> **Versiyon**: 2.4.0
4+
> **Tarih**: 2026-02-15
55
> **Amaç**: Tek Claude Code arayüzünden birden fazla AI provider'a intent-based routing
66
77
---

docs/FULL_DOCUMENTATION_EN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Claude Code Router - Complete Documentation
22

3-
> **Version**: 1.0.73
4-
> **Date**: 2025-12-20
3+
> **Version**: 2.4.0
4+
> **Date**: 2026-02-15
55
> **Purpose**: Multi-provider AI routing through Claude Code with intent-based selection
66
77
---

docs/PROVIDER_SETUP.md

Lines changed: 64 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ Claude Code Router supports multiple AI providers with intelligent routing. You
1616
```
1717
Request → Smart Intent Router → Provider Selection → AI Response
1818
↓ ↓
19-
Intent Analysis GLM (Primary)
20-
(Cost Optimized) Qwen (Fallback)
19+
Intent Analysis GLM-5 (Primary)
20+
(Cost Optimized) Claude Pro (Quality)
21+
DeepSeek (Budget)
22+
MiniMax (Long Context)
23+
Qwen (Fallback)
2124
Gemini (Backup)
2225
OpenAI (Premium)
23-
Anthropic (Quality)
2426
```
2527

2628
### Quick Start
@@ -49,22 +51,37 @@ ccr code # Start router + Claude Code
4951

5052
| Provider | API Base URL | Cost (per 1M tokens) | Best For |
5153
|----------|-------------|---------------------|----------|
52-
| **GLM (z.ai)** | `https://api.z.ai/api/anthropic` | ~$0.50 | Cost-effective, multilingual |
53-
| **Qwen** | `https://dashscope-intl.aliyuncs.com/...` | ~$0.10 | Coding, cost-optimized |
54-
| **Gemini** | `https://generativelanguage.googleapis.com/...` | ~$0.01 | Fast responses |
55-
| **OpenAI** | `https://api.openai.com/v1/...` | ~$2.50 | Premium quality |
56-
| **Anthropic** | `https://api.anthropic.com/v1/...` | ~$3.00 | Best quality |
57-
| **OpenRouter** | `https://openrouter.ai/api/v1/...` | Variable | Variety, fallback |
54+
| **GLM-5 (z.ai)** | `api.z.ai/api/coding/paas/v4` | ~$0.50 | Coding Plan (3x usage) |
55+
| **GLM API (z.ai)** | `api.z.ai/api/paas/v4` | ~$0.50 | Pay-per-use |
56+
| **Claude Pro** | Official Anthropic | ~$3.00 | Premium quality |
57+
| **DeepSeek** | `api.deepseek.com/anthropic` | ~$0.60 | Budget coding |
58+
| **MiniMax** | `api.minimax.io/anthropic` | ~$0.30 | Long context (200k+) |
59+
| **Qwen** | `dashscope-intl.aliyuncs.com/...` | ~$0.10 | Cost-optimized |
60+
| **Gemini** | `generativelanguage.googleapis.com/...` | ~$0.01 | Fast responses |
61+
| **OpenAI** | `api.openai.com/v1/...` | ~$2.50 | Premium quality |
5862

5963
---
6064

6165
### Adding Providers
6266

6367
#### Step 1: Get API Key
6468

65-
**GLM (z.ai)**
66-
- Website: https://open.bigmodel.cn/
67-
- Pricing: https://open.bigmodel.cn/pricing
69+
**GLM-5 (z.ai) - Recommended**
70+
- Website: https://z.ai/apikeys
71+
- Pricing: Very competitive, 3x usage with Coding Plan
72+
- Sign up → Create API Key
73+
- Two endpoints:
74+
- Coding Plan: `https://api.z.ai/api/coding/paas/v4`
75+
- API Credits: `https://api.z.ai/api/paas/v4`
76+
77+
**MiniMax**
78+
- Website: https://platform.minimax.io/
79+
- Pricing: Very competitive, ultra-long context (200k+ tokens)
80+
- Sign up → Create API Key
81+
82+
**DeepSeek**
83+
- Website: https://platform.deepseek.com/
84+
- Pricing: Affordable
6885
- Sign up → Create API Key
6986

7087
**Qwen (Alibaba)**
@@ -295,11 +312,13 @@ Claude Code Router, birden fazla AI sağlayıcısını akıllı yönlendirme ile
295312
```
296313
İstek → Akıllı Intent Router → Sağlayıcı Seçimi → AI Cevabı
297314
↓ ↓
298-
Intent Analizi GLM (Birincil)
299-
(Maliyet Optimize) Qwen (Yedek)
300-
Gemini (Yedek 2)
301-
OpenAI (Premium)
302-
Anthropic (Kalite)
315+
Intent Analizi GLM-5 (Birincil)
316+
(Maliyet Optimize) Claude Pro (Kalite)
317+
DeepSeek (Bütçe)
318+
MiniMax (Uzun Bağlam)
319+
Qwen (Yedek)
320+
Gemini (Yedek 2)
321+
OpenAI (Premium)
303322
```
304323

305324
### Hızlı Başlangıç
@@ -328,22 +347,37 @@ ccr code # Router + Claude Code'u başlat
328347

329348
| Sağlayıcı | API URL | Maliyet (1M token) | En İyi Kullanım |
330349
|-----------|---------|-------------------|-----------------|
331-
| **GLM (z.ai)** | `https://api.z.ai/api/anthropic` | ~$0.50 | Ucuz, çok dilli |
332-
| **Qwen** | `https://dashscope-intl.aliyuncs.com/...` | ~$0.10 | Kodlama, ucuz |
333-
| **Gemini** | `https://generativelanguage.googleapis.com/...` | ~$0.01 | Hızlı cevap |
334-
| **OpenAI** | `https://api.openai.com/v1/...` | ~$2.50 | Premium kalite |
335-
| **Anthropic** | `https://api.anthropic.com/v1/...` | ~$3.00 | En iyi kalite |
336-
| **OpenRouter** | `https://openrouter.ai/api/v1/...` | Değişken | Çeşitlilik |
350+
| **GLM-5 (z.ai)** | `api.z.ai/api/coding/paas/v4` | ~$0.50 | Coding Plan (3x kullanım) |
351+
| **GLM API (z.ai)** | `api.z.ai/api/paas/v4` | ~$0.50 | Kredi ile ödeme |
352+
| **Claude Pro** | Official Anthropic | ~$3.00 | Premium kalite |
353+
| **DeepSeek** | `api.deepseek.com/anthropic` | ~$0.60 | Bütçe kodlama |
354+
| **MiniMax** | `api.minimax.io/anthropic` | ~$0.30 | Uzun bağlam (200k+) |
355+
| **Qwen** | `dashscope-intl.aliyuncs.com/...` | ~$0.10 | Maliyet optimize |
356+
| **Gemini** | `generativelanguage.googleapis.com/...` | ~$0.01 | Hızlı cevap |
357+
| **OpenAI** | `api.openai.com/v1/...` | ~$2.50 | Premium kalite |
337358

338359
---
339360

340361
### Sağlayıcı Ekleme
341362

342363
#### Adım 1: API Key Al
343364

344-
**GLM (z.ai)**
345-
- Website: https://open.bigmodel.cn/
346-
- Fiyatlandırma: https://open.bigmodel.cn/pricing
365+
**GLM-5 (z.ai) - Önerilen**
366+
- Website: https://z.ai/apikeys
367+
- Fiyatlandırma: Çok uygun, Coding Plan ile 3x kullanım
368+
- Kayıt ol → API Key Oluştur
369+
- İki endpoint:
370+
- Coding Plan: `https://api.z.ai/api/coding/paas/v4`
371+
- API Kredileri: `https://api.z.ai/api/paas/v4`
372+
373+
**MiniMax**
374+
- Website: https://platform.minimax.io/
375+
- Fiyatlandırma: Çok uygun, ultra-uzun bağlam (200k+ token)
376+
- Kayıt ol → API Key Oluştur
377+
378+
**DeepSeek**
379+
- Website: https://platform.deepseek.com/
380+
- Fiyatlandırma: Uygun fiyat
347381
- Kayıt ol → API Key Oluştur
348382

349383
**Qwen (Alibaba)**
@@ -380,6 +414,8 @@ ccr code # Router + Claude Code'u başlat
380414
export GLM_API_KEY="glm_api_key_buraya"
381415

382416
# Ek Sağlayıcılar (Opsiyonel - yönlendirme için)
417+
export MINIMAX_API_KEY="minimax_api_key_buraya"
418+
export DEEPSEEK_API_KEY="deepseek_api_key_buraya"
383419
export QWEN_API_KEY="qwen_api_key_buraya"
384420
export GEMINI_API_KEY="gemini_api_key_buraya"
385421
export OPENAI_API_KEY="openai_api_key_buraya"
@@ -595,5 +631,5 @@ ccr ui # Web dashboard'ı aç
595631
---
596632

597633
*Created by Halil Ertekin*
598-
*Version: 2.0.9*
599-
*Last Updated: 2025-01-11*
634+
*Version: 2.4.0*
635+
*Last Updated: 2026-02-15*

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@halilertekin/claude-code-router-config",
3-
"version": "2.3.0",
3+
"version": "2.4.0",
44
"description": "Multi-provider configuration for Claude Code Router with intent-based routing, advanced CLI tools, analytics, and smart routing. Setup OpenAI, Anthropic, Gemini, Qwen, GLM, OpenRouter, and GitHub Copilot with intelligent routing.",
55
"main": "install.js",
66
"bin": {

0 commit comments

Comments
 (0)