Skip to content

Commit 93a5e7a

Browse files
committed
chore: align bridge with CommandCode 0.26.7
1 parent 8f665f8 commit 93a5e7a

19 files changed

Lines changed: 178 additions & 23 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.25.12
18+
COMMANDCODE_CLI_VERSION=0.26.7
1919
COMMANDCODE_TIMEOUT_MS=300000
2020
COMMANDCODE_EMPTY_VISIBLE_RESPONSE_POLICY=error_on_length
2121

README.ko.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,19 @@ CommandCode Bridge는 CommandCode 계정을 OpenAI-compatible HTTP API로 노출
3030

3131
## 버전
3232

33-
현재 bridge version: **v0.1.0**.
33+
현재 bridge version: **v0.26.7**.
3434

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

37+
### v0.26.7 CommandCode 호환성 업데이트
38+
39+
이번 bridge release는 공식 `command-code` npm package `0.26.7`에 맞췄습니다.
40+
41+
- 기본 upstream `x-command-code-version` header는 `COMMANDCODE_CLI_VERSION`으로 덮어쓰지 않는 한 `0.26.7`을 보냅니다.
42+
- bridge package/runtime version도 `0.26.7`이라 `/health`, dashboard, npm metadata가 대상 CommandCode CLI version과 일치합니다.
43+
- `command-code@0.26.7` bundle을 직접 확인한 결과 bridge 핵심 API path(`/alpha/generate`, `/alpha/whoami`, `/alpha/billing/credits`, `/alpha/billing/subscriptions`, `/alpha/usage/summary`)는 기존 bridge 경로와 호환됩니다.
44+
- model catalog를 `0.26.7` CLI bundle 기준으로 갱신했습니다. 기존 enabled default는 보수적으로 유지하고, Qwen 3.6 Max Preview, MiniMax M2.5, Kimi K2.5, GLM-5, GPT 5.4/5.3 Codex/5.4 Mini, 구 Claude variant 등 추가 발견 모델은 operator가 켤 때까지 disabled 상태로 포함했습니다.
45+
3746
## 구조
3847

3948
```text
@@ -266,7 +275,7 @@ http://<host-or-tailnet-ip>:9992/dashboard
266275

267276
- **Header**
268277
- bridge online/offline 상태 표시.
269-
- `v0.1.0` 같은 bridge version 표시.
278+
- `v0.26.7` 같은 bridge version 표시.
270279
- **Server Bind**
271280
- local-only면 `127.0.0.1`.
272281
- LAN/Tailscale/VPN/reverse proxy 뒤에서만 `0.0.0.0`.
@@ -478,7 +487,7 @@ x-api-key: <BRIDGE_API_KEY>
478487
| `COMMANDCODE_DEFAULT_MODEL` | `deepseek/deepseek-v4-pro` | `default`가 사용할 model. |
479488
| `COMMANDCODE_ALLOWED_MODELS` | Pro + Flash/catalog defaults | comma-separated allowlist. |
480489
| `COMMANDCODE_ALLOW_UNKNOWN_MODELS` | `false` | 임의 model ID를 upstream으로 통과. 운영 비권장. |
481-
| `COMMANDCODE_CLI_VERSION` | `0.25.12` | upstream으로 보내는 version header. |
490+
| `COMMANDCODE_CLI_VERSION` | `0.26.7` | upstream으로 보내는 version header. |
482491
| `COMMANDCODE_TIMEOUT_MS` | `300000` | upstream request timeout. |
483492
| `COMMANDCODE_EMPTY_VISIBLE_RESPONSE_POLICY` | `error_on_length` | empty visible `finish_reason: length`를 fail-closed. `allow`는 legacy blank success 유지. |
484493
| `REQUEST_BODY_LIMIT_BYTES` | `1048576` | Fastify body limit. |

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,19 @@ CommandCode Bridge is a trusted-environment HTTP bridge that exposes a small Ope
3030

3131
## Version
3232

33-
Current bridge version: **v0.1.0**.
33+
Current bridge version: **v0.26.7**.
3434

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

37+
### v0.26.7 CommandCode compatibility update
38+
39+
This bridge release is aligned with the official `command-code` npm package `0.26.7`:
40+
41+
- The default upstream `x-command-code-version` header now advertises `0.26.7` unless `COMMANDCODE_CLI_VERSION` overrides it.
42+
- The bridge package/runtime version is also `0.26.7` so `/health`, the dashboard, and the npm metadata match the CommandCode CLI version being targeted.
43+
- Direct inspection of the `command-code@0.26.7` bundle confirmed that the bridge-critical API paths remain compatible: `/alpha/generate`, `/alpha/whoami`, `/alpha/billing/credits`, `/alpha/billing/subscriptions`, and `/alpha/usage/summary`.
44+
- The model catalog was refreshed from the `0.26.7` CLI bundle. Existing enabled defaults stay conservative, while additional discovered entries such as Qwen 3.6 Max Preview, MiniMax M2.5, Kimi K2.5, 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.
45+
3746
## Architecture
3847

3948
```text
@@ -266,7 +275,7 @@ The dashboard is intentionally mobile-first. It is useful from a phone on the sa
266275

267276
- **Header**
268277
- Shows bridge online/offline state.
269-
- Shows bridge version, for example `v0.1.0`.
278+
- Shows bridge version, for example `v0.26.7`.
270279
- **Server Bind**
271280
- Choose `127.0.0.1` for local-only use.
272281
- Choose `0.0.0.0` only for LAN/Tailscale/VPN/reverse-proxy use.
@@ -478,7 +487,7 @@ x-api-key: <BRIDGE_API_KEY>
478487
| `COMMANDCODE_DEFAULT_MODEL` | `deepseek/deepseek-v4-pro` | Model used for `default`. |
479488
| `COMMANDCODE_ALLOWED_MODELS` | Pro + Flash/catalog defaults | Comma-separated allowlist. |
480489
| `COMMANDCODE_ALLOW_UNKNOWN_MODELS` | `false` | Pass arbitrary model IDs upstream. Not recommended. |
481-
| `COMMANDCODE_CLI_VERSION` | `0.25.12` | Version header sent upstream. |
490+
| `COMMANDCODE_CLI_VERSION` | `0.26.7` | Version header sent upstream. |
482491
| `COMMANDCODE_TIMEOUT_MS` | `300000` | Upstream request timeout. |
483492
| `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. |
484493
| `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.25.12` | 테스트된 CommandCode CLI 동작과 맞추기 위해 upstream에 보내는 version header입니다. |
401+
| `COMMANDCODE_CLI_VERSION` | `0.26.7` | 테스트된 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.25.12` | Version header sent upstream to match the tested CommandCode CLI behavior. |
402+
| `COMMANDCODE_CLI_VERSION` | `0.26.7` | 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.25.12 `/usage` uses these account endpoints with the same bearer token:
57+
CommandCode CLI 0.26.7 `/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.25.12 bundle calls `https://api.commandcode.ai/alpha/generate` and billing/usage endpoints under `/alpha/billing/*` and `/alpha/usage/summary`.
57+
- Local CommandCode 0.26.7 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.

docs/PROCESS_LOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
## 2026-05-12
2323

24-
- Updated default CommandCode CLI header to `0.25.12`.
24+
- Updated default CommandCode CLI header to `0.26.7`.
2525
- Added multi-key upstream credential loading: `COMMANDCODE_CREDENTIALS_FILE`, `COMMANDCODE_CREDENTIALS`, `COMMANDCODE_API_KEYS`, and legacy `COMMANDCODE_API_KEY` fallback.
2626
- Added `round_robin` and `depletion_aware` routing. Depletion-aware routing caches `/alpha/billing/credits`, `/alpha/billing/subscriptions`, and `/alpha/usage/summary` snapshots per credential and routes expiring credits first.
2727
- Added credential health rules and failover: 401 disables, 402 drains/cools down, 429/5xx/timeouts cooldown, and pre-visible-output stream errors can retry on another credential.

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.25.12
385+
write_env_line COMMANDCODE_CLI_VERSION 0.26.7
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.

0 commit comments

Comments
 (0)