Skip to content

Commit 7ac51cf

Browse files
committed
chore: align bridge with CommandCode 0.26.12
1 parent 5bb2df0 commit 7ac51cf

18 files changed

Lines changed: 51 additions & 41 deletions

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COMMANDCODE_API_BASE=https://api.commandcode.ai
1515
COMMANDCODE_DEFAULT_MODEL=deepseek/deepseek-v4-pro
1616
COMMANDCODE_ALLOWED_MODELS=deepseek/deepseek-v4-pro,deepseek/deepseek-v4-flash
1717
COMMANDCODE_ALLOW_UNKNOWN_MODELS=false
18-
COMMANDCODE_CLI_VERSION=0.26.8
18+
COMMANDCODE_CLI_VERSION=0.26.12
1919
COMMANDCODE_TIMEOUT_MS=300000
2020
COMMANDCODE_EMPTY_VISIBLE_RESPONSE_POLICY=error_on_length
2121

README.ko.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,18 @@ curl -fsS "$BRIDGE/v1/models" | head -c 400
6767

6868
## 버전
6969

70-
현재 bridge version: **v0.26.8**.
70+
현재 bridge version: **v0.26.12**.
7171

7272
버전은 `/health` 응답과 웹 대시보드 오른쪽 위에 표시됩니다.
7373

74-
### v0.26.8 CommandCode 호환성 업데이트
74+
### v0.26.12 CommandCode 호환성 업데이트
7575

76-
이번 bridge release는 공식 `command-code` npm package `0.26.8`에 맞췄습니다.
76+
이번 bridge release는 공식 `command-code` npm package `0.26.12`에 맞췄습니다.
7777

78-
- 기본 upstream `x-command-code-version` header는 `COMMANDCODE_CLI_VERSION`으로 덮어쓰지 않는 한 `0.26.8`을 보냅니다.
79-
- bridge package/runtime version도 `0.26.8`이라 `/health`, dashboard, npm metadata가 대상 CommandCode CLI version과 일치합니다.
80-
- `command-code@0.26.8` bundle을 직접 확인한 결과 bridge 핵심 API path(`/alpha/generate`, `/alpha/whoami`, `/alpha/billing/credits`, `/alpha/billing/subscriptions`, `/alpha/usage/summary`)는 기존 bridge 경로와 호환됩니다.
81-
- model catalog를 `0.26.8` CLI bundle 기준으로 갱신했습니다. 기존 enabled default는 보수적으로 유지하고, Qwen 3.6 Max Preview, MiniMax M2.5, Kimi K2.5, Step 3.5 Flash, Gemini 3.1 Flash Lite, GLM-5, GPT 5.4/5.3 Codex/5.4 Mini, 구 Claude variant 등 추가 발견 모델은 operator가 켤 때까지 disabled 상태로 포함했습니다.
78+
- 기본 upstream `x-command-code-version` header는 `COMMANDCODE_CLI_VERSION`으로 덮어쓰지 않는 한 `0.26.12`을 보냅니다.
79+
- bridge package/runtime version도 `0.26.12`이라 `/health`, dashboard, npm metadata가 대상 CommandCode CLI version과 일치합니다.
80+
- `command-code@0.26.12` bundle을 직접 확인한 결과 bridge 핵심 API path(`/alpha/generate`, `/alpha/whoami`, `/alpha/billing/credits`, `/alpha/billing/subscriptions`, `/alpha/usage/summary`)는 기존 bridge 경로와 호환됩니다.
81+
- model catalog를 `0.26.12` CLI bundle 기준으로 갱신했습니다. 기존 enabled default는 보수적으로 유지하고, Qwen 3.6 Max Preview, MiniMax M2.5, Kimi K2.5, Step 3.5 Flash, Gemini 3.5 Flash, Gemini 3.1 Flash Lite, GLM-5, GPT 5.4/5.3 Codex/5.4 Mini, 구 Claude variant 등 추가 발견 모델은 operator가 켤 때까지 disabled 상태로 포함했습니다.
8282

8383
## 구조
8484

@@ -314,7 +314,7 @@ http://<host-or-tailnet-ip>:9992/dashboard
314314

315315
- **Header**
316316
- bridge online/offline 상태 표시.
317-
- `v0.26.8` 같은 bridge version 표시.
317+
- `v0.26.12` 같은 bridge version 표시.
318318
- **Server Bind**
319319
- local-only면 `127.0.0.1`.
320320
- LAN/Tailscale/VPN/reverse proxy 뒤에서만 `0.0.0.0`.
@@ -526,7 +526,7 @@ x-api-key: <BRIDGE_API_KEY>
526526
| `COMMANDCODE_DEFAULT_MODEL` | `deepseek/deepseek-v4-pro` | `default`가 사용할 model. |
527527
| `COMMANDCODE_ALLOWED_MODELS` | Pro + Flash/catalog defaults | comma-separated allowlist. |
528528
| `COMMANDCODE_ALLOW_UNKNOWN_MODELS` | `false` | 임의 model ID를 upstream으로 통과. 운영 비권장. |
529-
| `COMMANDCODE_CLI_VERSION` | `0.26.8` | upstream으로 보내는 version header. |
529+
| `COMMANDCODE_CLI_VERSION` | `0.26.12` | upstream으로 보내는 version header. |
530530
| `COMMANDCODE_TIMEOUT_MS` | `300000` | upstream request timeout. |
531531
| `COMMANDCODE_EMPTY_VISIBLE_RESPONSE_POLICY` | `error_on_length` | empty visible `finish_reason: length`를 fail-closed. `allow`는 legacy blank success 유지. |
532532
| `REQUEST_BODY_LIMIT_BYTES` | `1048576` | Fastify body limit. |

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,18 @@ A healthy bridge returns JSON health/version data and a non-empty OpenAI-compati
6767

6868
## Version
6969

70-
Current bridge version: **v0.26.8**.
70+
Current bridge version: **v0.26.12**.
7171

7272
The version is also returned from `/health` and shown in the top-right of the web dashboard.
7373

74-
### v0.26.8 CommandCode compatibility update
74+
### v0.26.12 CommandCode compatibility update
7575

76-
This bridge release is aligned with the official `command-code` npm package `0.26.8`:
76+
This bridge release is aligned with the official `command-code` npm package `0.26.12`:
7777

78-
- The default upstream `x-command-code-version` header now advertises `0.26.8` unless `COMMANDCODE_CLI_VERSION` overrides it.
79-
- The bridge package/runtime version is also `0.26.8` so `/health`, the dashboard, and the npm metadata match the CommandCode CLI version being targeted.
80-
- Direct inspection of the `command-code@0.26.8` bundle confirmed that the bridge-critical API paths remain compatible: `/alpha/generate`, `/alpha/whoami`, `/alpha/billing/credits`, `/alpha/billing/subscriptions`, and `/alpha/usage/summary`.
81-
- The model catalog was refreshed from the `0.26.8` CLI bundle. Existing enabled defaults stay conservative, while additional discovered entries such as Qwen 3.6 Max Preview, MiniMax M2.5, Kimi K2.5, Step 3.5 Flash, Gemini 3.1 Flash Lite, GLM-5, GPT 5.4/5.3 Codex/5.4 Mini, and older Claude variants are present but disabled by default until an operator enables them.
78+
- The default upstream `x-command-code-version` header now advertises `0.26.12` unless `COMMANDCODE_CLI_VERSION` overrides it.
79+
- The bridge package/runtime version is also `0.26.12` so `/health`, the dashboard, and the npm metadata match the CommandCode CLI version being targeted.
80+
- Direct inspection of the `command-code@0.26.12` bundle confirmed that the bridge-critical API paths remain compatible: `/alpha/generate`, `/alpha/whoami`, `/alpha/billing/credits`, `/alpha/billing/subscriptions`, and `/alpha/usage/summary`.
81+
- The model catalog was refreshed from the `0.26.12` CLI bundle. Existing enabled defaults stay conservative, while additional discovered entries such as Qwen 3.6 Max Preview, MiniMax M2.5, Kimi K2.5, Step 3.5 Flash, Gemini 3.5 Flash, Gemini 3.1 Flash Lite, GLM-5, GPT 5.4/5.3 Codex/5.4 Mini, and older Claude variants are present but disabled by default until an operator enables them.
8282

8383
## Architecture
8484

@@ -314,7 +314,7 @@ The dashboard is intentionally mobile-first. It is useful from a phone on the sa
314314
315315
- **Header**
316316
- Shows bridge online/offline state.
317-
- Shows bridge version, for example `v0.26.8`.
317+
- Shows bridge version, for example `v0.26.12`.
318318
- **Server Bind**
319319
- Choose `127.0.0.1` for local-only use.
320320
- Choose `0.0.0.0` only for LAN/Tailscale/VPN/reverse-proxy use.
@@ -526,7 +526,7 @@ x-api-key: <BRIDGE_API_KEY>
526526
| `COMMANDCODE_DEFAULT_MODEL` | `deepseek/deepseek-v4-pro` | Model used for `default`. |
527527
| `COMMANDCODE_ALLOWED_MODELS` | Pro + Flash/catalog defaults | Comma-separated allowlist. |
528528
| `COMMANDCODE_ALLOW_UNKNOWN_MODELS` | `false` | Pass arbitrary model IDs upstream. Not recommended. |
529-
| `COMMANDCODE_CLI_VERSION` | `0.26.8` | Version header sent upstream. |
529+
| `COMMANDCODE_CLI_VERSION` | `0.26.12` | Version header sent upstream. |
530530
| `COMMANDCODE_TIMEOUT_MS` | `300000` | Upstream request timeout. |
531531
| `COMMANDCODE_EMPTY_VISIBLE_RESPONSE_POLICY` | `error_on_length` | `error_on_length` fails closed on empty visible `finish_reason: length`; `allow` preserves legacy blank success behavior. |
532532
| `REQUEST_BODY_LIMIT_BYTES` | `1048576` | Fastify body limit. |

docs/DEPLOYMENT.ko.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ npm run smoke
398398
| `COMMANDCODE_DEFAULT_MODEL` | `deepseek/deepseek-v4-pro` | `model: "default"` 요청이 실제로 사용할 upstream model입니다. |
399399
| `COMMANDCODE_ALLOWED_MODELS` | Pro + Flash | 허용할 model ID 목록입니다. 이 목록 밖 요청은 unknown model 허용 옵션을 켜지 않는 한 거부됩니다. |
400400
| `COMMANDCODE_ALLOW_UNKNOWN_MODELS` | `false` | 임의 model ID를 upstream으로 통과시킵니다. 운영에서는 권장하지 않습니다. |
401-
| `COMMANDCODE_CLI_VERSION` | `0.26.8` | 테스트된 CommandCode CLI 동작과 맞추기 위해 upstream에 보내는 version header입니다. |
401+
| `COMMANDCODE_CLI_VERSION` | `0.26.12` | 테스트된 CommandCode CLI 동작과 맞추기 위해 upstream에 보내는 version header입니다. |
402402
| `COMMANDCODE_TIMEOUT_MS` | `300000` | upstream generation timeout입니다. |
403403

404404
Credential JSON 파일 예시:

docs/DEPLOYMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ npm run smoke
399399
| `COMMANDCODE_DEFAULT_MODEL` | `deepseek/deepseek-v4-pro` | Upstream model used by `model: "default"`. |
400400
| `COMMANDCODE_ALLOWED_MODELS` | Pro + Flash | Comma-separated allowlist. Requests outside this list are rejected unless unknown models are allowed. |
401401
| `COMMANDCODE_ALLOW_UNKNOWN_MODELS` | `false` | Allows arbitrary model IDs to pass through. Not recommended for production. |
402-
| `COMMANDCODE_CLI_VERSION` | `0.26.8` | Version header sent upstream to match the tested CommandCode CLI behavior. |
402+
| `COMMANDCODE_CLI_VERSION` | `0.26.12` | Version header sent upstream to match the tested CommandCode CLI behavior. |
403403
| `COMMANDCODE_TIMEOUT_MS` | `300000` | Upstream generation timeout. |
404404

405405
Credential file shape:

docs/KNOW_HOW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Smoke-test modes:
5454

5555
## Billing and Multi-Key Routing
5656

57-
CommandCode CLI 0.26.8 `/usage` uses these account endpoints with the same bearer token:
57+
CommandCode CLI 0.26.12 `/usage` uses these account endpoints with the same bearer token:
5858

5959
- `GET /alpha/whoami` to discover the organization id.
6060
- `GET /alpha/billing/credits?orgId=...`

docs/PRD.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Expose the local CommandCode account's DeepSeek V4 Pro route as a clean, OpenAI-
5454

5555
## Source Evidence
5656

57-
- Local CommandCode 0.26.8 bundle calls `https://api.commandcode.ai/alpha/generate` and billing/usage endpoints under `/alpha/billing/*` and `/alpha/usage/summary`.
57+
- Local CommandCode 0.26.12 bundle calls `https://api.commandcode.ai/alpha/generate` and billing/usage endpoints under `/alpha/billing/*` and `/alpha/usage/summary`.
5858
- Direct Node fetch to `/alpha/whoami` and `/alpha/generate` succeeded.
5959
- `params.stream=false` is rejected by CommandCode; bridge must always call upstream streaming.
6060
- Community `pi-commandcode-provider` independently uses the same API path.

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ fi
382382
write_env_line COMMANDCODE_DEFAULT_MODEL deepseek/deepseek-v4-pro
383383
write_env_line COMMANDCODE_ALLOWED_MODELS "$DEFAULT_ALLOWED_MODELS"
384384
write_env_line COMMANDCODE_ALLOW_UNKNOWN_MODELS false
385-
write_env_line COMMANDCODE_CLI_VERSION 0.26.8
385+
write_env_line COMMANDCODE_CLI_VERSION 0.26.12
386386
write_env_line COMMANDCODE_TIMEOUT_MS 300000
387387
write_env_line COMMANDCODE_EMPTY_VISIBLE_RESPONSE_POLICY error_on_length
388388
write_env_line COMMANDCODE_BALANCE_ALERT_ENABLED false

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commandcode-bridge",
3-
"version": "0.26.8",
3+
"version": "0.26.12",
44
"description": "OpenAI-compatible HTTP bridge for CommandCode's DeepSeek V4 Pro API path.",
55
"type": "module",
66
"license": "MIT",

0 commit comments

Comments
 (0)