Skip to content

Commit 7dcb97a

Browse files
committed
chore: align bridge with CommandCode 0.29.0
1 parent e51029d commit 7dcb97a

15 files changed

Lines changed: 57 additions & 47 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.28.1
18+
COMMANDCODE_CLI_VERSION=0.29.0
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.28.1**.
70+
현재 bridge version: **v0.29.0**.
7171

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

74-
### v0.28.1 CommandCode 호환성 업데이트
74+
### v0.29.0 CommandCode 호환성 업데이트
7575

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

78-
- 기본 upstream `x-command-code-version` header는 `COMMANDCODE_CLI_VERSION`으로 덮어쓰지 않는 한 `0.28.1`을 보냅니다.
79-
- bridge package/runtime version도 `0.28.1`이라 `/health`, dashboard, npm metadata가 대상 CommandCode CLI version과 일치합니다.
80-
- `command-code@0.28.1` bundle을 직접 확인한 결과 bridge 핵심 API path(`/alpha/generate`, `/alpha/whoami`, `/alpha/billing/credits`, `/alpha/billing/subscriptions`, `/alpha/usage/summary`)는 기존 bridge 경로와 호환됩니다.
81-
- model catalog를 `0.28.1` 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 상태로 포함했습니다.
78+
- 기본 upstream `x-command-code-version` header는 `COMMANDCODE_CLI_VERSION`으로 덮어쓰지 않는 한 `0.29.0`을 보냅니다.
79+
- bridge package/runtime version도 `0.29.0`이라 `/health`, dashboard, npm metadata가 대상 CommandCode CLI version과 일치합니다.
80+
- `command-code@0.29.0` bundle을 직접 확인한 결과 bridge 핵심 API path(`/alpha/generate`, `/alpha/whoami`, `/alpha/billing/credits`, `/alpha/billing/subscriptions`, `/alpha/usage/summary`)는 기존 bridge 경로와 호환됩니다.
81+
- model catalog를 `0.29.0` 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 Opus 4.8, 구 Claude variant 등 추가 발견 모델은 operator가 켤 때까지 disabled 상태로 포함했습니다.
8282

8383
## 구조
8484

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

323323
- **Header**
324324
- bridge online/offline 상태 표시.
325-
- `v0.28.1` 같은 bridge version 표시.
325+
- `v0.29.0` 같은 bridge version 표시.
326326
- **Server Bind**
327327
- local-only면 `127.0.0.1`.
328328
- LAN/Tailscale/VPN/reverse proxy 뒤에서만 `0.0.0.0`.
@@ -534,7 +534,7 @@ x-api-key: <BRIDGE_API_KEY>
534534
| `COMMANDCODE_DEFAULT_MODEL` | `deepseek/deepseek-v4-pro` | `default`가 사용할 model. |
535535
| `COMMANDCODE_ALLOWED_MODELS` | Pro + Flash/catalog defaults | comma-separated allowlist. |
536536
| `COMMANDCODE_ALLOW_UNKNOWN_MODELS` | `false` | 임의 model ID를 upstream으로 통과. 운영 비권장. |
537-
| `COMMANDCODE_CLI_VERSION` | `0.28.1` | upstream으로 보내는 version header. |
537+
| `COMMANDCODE_CLI_VERSION` | `0.29.0` | upstream으로 보내는 version header. |
538538
| `COMMANDCODE_TIMEOUT_MS` | `300000` | upstream request timeout. |
539539
| `COMMANDCODE_EMPTY_VISIBLE_RESPONSE_POLICY` | `error_on_length` | empty visible `finish_reason: length`를 fail-closed. `allow`는 legacy blank success 유지. |
540540
| `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.28.1**.
70+
Current bridge version: **v0.29.0**.
7171

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

74-
### v0.28.1 CommandCode compatibility update
74+
### v0.29.0 CommandCode compatibility update
7575

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

78-
- The default upstream `x-command-code-version` header now advertises `0.28.1` unless `COMMANDCODE_CLI_VERSION` overrides it.
79-
- The bridge package/runtime version is also `0.28.1` so `/health`, the dashboard, and the npm metadata match the CommandCode CLI version being targeted.
80-
- Direct inspection of the `command-code@0.28.1` 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.28.1` 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.
78+
- The default upstream `x-command-code-version` header now advertises `0.29.0` unless `COMMANDCODE_CLI_VERSION` overrides it.
79+
- The bridge package/runtime version is also `0.29.0` so `/health`, the dashboard, and the npm metadata match the CommandCode CLI version being targeted.
80+
- Direct inspection of the `command-code@0.29.0` 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.29.0` 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, Claude Opus 4.8, and older Claude variants are present but disabled by default until an operator enables them.
8282

8383
## Architecture
8484

@@ -322,7 +322,7 @@ The dashboard is intentionally mobile-first. It is useful from a phone on the sa
322322
323323
- **Header**
324324
- Shows bridge online/offline state.
325-
- Shows bridge version, for example `v0.28.1`.
325+
- Shows bridge version, for example `v0.29.0`.
326326
- **Server Bind**
327327
- Choose `127.0.0.1` for local-only use.
328328
- Choose `0.0.0.0` only for LAN/Tailscale/VPN/reverse-proxy use.
@@ -534,7 +534,7 @@ x-api-key: <BRIDGE_API_KEY>
534534
| `COMMANDCODE_DEFAULT_MODEL` | `deepseek/deepseek-v4-pro` | Model used for `default`. |
535535
| `COMMANDCODE_ALLOWED_MODELS` | Pro + Flash/catalog defaults | Comma-separated allowlist. |
536536
| `COMMANDCODE_ALLOW_UNKNOWN_MODELS` | `false` | Pass arbitrary model IDs upstream. Not recommended. |
537-
| `COMMANDCODE_CLI_VERSION` | `0.28.1` | Version header sent upstream. |
537+
| `COMMANDCODE_CLI_VERSION` | `0.29.0` | Version header sent upstream. |
538538
| `COMMANDCODE_TIMEOUT_MS` | `300000` | Upstream request timeout. |
539539
| `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. |
540540
| `REQUEST_BODY_LIMIT_BYTES` | `1048576` | Fastify body limit. |

README.zh.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.28.1**
70+
当前 bridge version:**v0.29.0**
7171

7272
版本也会从 `/health` 返回,并显示在 web dashboard 右上角。
7373

74-
### v0.28.1 CommandCode 兼容性更新
74+
### v0.29.0 CommandCode 兼容性更新
7575

76-
此 bridge release 已对齐官方 `command-code` npm package `0.28.1`
76+
此 bridge release 已对齐官方 `command-code` npm package `0.29.0`
7777

78-
- 默认上游 `x-command-code-version` header 现在发送 `0.28.1`,除非用 `COMMANDCODE_CLI_VERSION` 覆盖。
79-
- bridge package/runtime version 也是 `0.28.1`,因此 `/health`、dashboard 和 npm metadata 与目标 CommandCode CLI version 对齐。
80-
- 直接检查 `command-code@0.28.1` bundle 后确认,bridge-critical API paths 仍兼容:`/alpha/generate``/alpha/whoami``/alpha/billing/credits``/alpha/billing/subscriptions``/alpha/usage/summary`
81-
- model catalog 已从 `0.28.1` CLI bundle 刷新。现有 enabled defaults 保持保守;额外发现的 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 variants 等模型会保留为 disabled,直到 operator 主动启用。
78+
- 默认上游 `x-command-code-version` header 现在发送 `0.29.0`,除非用 `COMMANDCODE_CLI_VERSION` 覆盖。
79+
- bridge package/runtime version 也是 `0.29.0`,因此 `/health`、dashboard 和 npm metadata 与目标 CommandCode CLI version 对齐。
80+
- 直接检查 `command-code@0.29.0` bundle 后确认,bridge-critical API paths 仍兼容:`/alpha/generate``/alpha/whoami``/alpha/billing/credits``/alpha/billing/subscriptions``/alpha/usage/summary`
81+
- model catalog 已从 `0.29.0` CLI bundle 刷新。现有 enabled defaults 保持保守;额外发现的 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 Opus 4.8 和旧 Claude variants 等模型会保留为 disabled,直到 operator 主动启用。
8282

8383
## 架构
8484

@@ -206,7 +206,7 @@ dashboard 有意采用 mobile-first 设计,适合在同一可信 tailnet 上
206206

207207
- **Header**
208208
- 显示 bridge online/offline state。
209-
- 显示 bridge version,例如 `v0.28.1`
209+
- 显示 bridge version,例如 `v0.29.0`
210210
- 标题旁提供 Korean/English/Chinese flag language selector。
211211
- **Server Bind**
212212
- 本机专用选择 `127.0.0.1`
@@ -373,7 +373,7 @@ x-api-key: <BRIDGE_API_KEY>
373373
| `COMMANDCODE_MAX_IN_FLIGHT_PER_CREDENTIAL` | `4` | Per-key concurrency cap。 |
374374
| `COMMANDCODE_API_BASE` | `https://api.commandcode.ai` | Upstream API base。除非测试明确的 alternate upstream,否则不要更改。 |
375375
| `COMMANDCODE_DEFAULT_MODEL` | `deepseek/deepseek-v4-pro` | `default` 使用的 model。 |
376-
| `COMMANDCODE_CLI_VERSION` | `0.28.1` | 发送给 upstream 的 version header。 |
376+
| `COMMANDCODE_CLI_VERSION` | `0.29.0` | 发送给 upstream 的 version header。 |
377377
| `COMMANDCODE_EMPTY_VISIBLE_RESPONSE_POLICY` | `error_on_length` | `error_on_length` 对空 visible `finish_reason: length` fail closed;`allow` 保留 legacy blank success behavior。 |
378378
| `LOG_LEVEL` | `info` | Fastify/Pino log level。 |
379379
| `INCLUDE_REASONING` | `false` | 是否把 reasoning deltas 附加到 visible output。常规 clients 保持 false。 |

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.28.1
385+
write_env_line COMMANDCODE_CLI_VERSION 0.29.0
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.28.1",
3+
"version": "0.29.0",
44
"description": "OpenAI-compatible HTTP bridge for CommandCode's DeepSeek V4 Pro API path.",
55
"type": "module",
66
"license": "MIT",

release/env.production.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COMMANDCODE_CREDENTIAL_COOLDOWN_MS=60000
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.28.1
18+
COMMANDCODE_CLI_VERSION=0.29.0
1919
COMMANDCODE_TIMEOUT_MS=300000
2020
COMMANDCODE_EMPTY_VISIBLE_RESPONSE_POLICY=error_on_length
2121
# Balance alerts are opt-in and disabled by default.

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export function loadBridgeConfig(options: LoadBridgeConfigOptions = {}): BridgeC
174174
host: serverFromFile.host,
175175
port: serverFromFile.port,
176176
apiBase: (env.COMMANDCODE_API_BASE?.trim() || "https://api.commandcode.ai").replace(/\/+$/, ""),
177-
cliVersion: env.COMMANDCODE_CLI_VERSION?.trim() || "0.28.1",
177+
cliVersion: env.COMMANDCODE_CLI_VERSION?.trim() || "0.29.0",
178178
defaultModel,
179179
allowedModels,
180180
allowUnknownModels: parseBoolean(env.COMMANDCODE_ALLOW_UNKNOWN_MODELS, false),

src/model-catalog.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const COMMANDCODE_MODEL_DEFINITIONS: CommandCodeModelDefinition[] = [
4545
family: "minimax",
4646
aliases: ["minimax-m2.5", "MiniMax-M2.5"],
4747
enabledByDefault: false,
48-
notes: "OSS pool model exposed by CommandCode 0.28.1",
48+
notes: "OSS pool model exposed by CommandCode 0.29.0",
4949
},
5050
{
5151
id: "Qwen/Qwen3.6-Max-Preview",
@@ -54,7 +54,7 @@ export const COMMANDCODE_MODEL_DEFINITIONS: CommandCodeModelDefinition[] = [
5454
family: "qwen",
5555
aliases: ["qwen3.6-max-preview", "Qwen3.6-Max-Preview"],
5656
enabledByDefault: false,
57-
notes: "OSS pool model exposed by CommandCode 0.28.1",
57+
notes: "OSS pool model exposed by CommandCode 0.29.0",
5858
},
5959
{
6060
id: "Qwen/Qwen3.6-Plus",
@@ -72,7 +72,7 @@ export const COMMANDCODE_MODEL_DEFINITIONS: CommandCodeModelDefinition[] = [
7272
family: "qwen",
7373
aliases: ["qwen3.7-max", "Qwen3.7-Max"],
7474
enabledByDefault: false,
75-
notes: "OSS pool model exposed by CommandCode 0.28.1",
75+
notes: "OSS pool model exposed by CommandCode 0.29.0",
7676
},
7777
{
7878
id: "zai-org/GLM-5.1",
@@ -117,7 +117,7 @@ export const COMMANDCODE_MODEL_DEFINITIONS: CommandCodeModelDefinition[] = [
117117
family: "stepfun",
118118
aliases: ["step-3.5-flash", "Step-3.5-Flash"],
119119
enabledByDefault: false,
120-
notes: "OSS pool model exposed by CommandCode 0.28.1",
120+
notes: "OSS pool model exposed by CommandCode 0.29.0",
121121
},
122122
{
123123
id: "google/gemini-3.5-flash",
@@ -173,6 +173,15 @@ export const COMMANDCODE_MODEL_DEFINITIONS: CommandCodeModelDefinition[] = [
173173
enabledByDefault: false,
174174
notes: "$0.75/M in · $4.50/M out",
175175
},
176+
{
177+
id: "anthropic/claude-opus-4.8",
178+
label: "Claude Opus 4.8",
179+
provider: "Anthropic",
180+
family: "claude",
181+
aliases: ["claude-opus-4.8", "opus-4.8", "anthropic:claude-opus-4-8"],
182+
enabledByDefault: false,
183+
notes: "$5/M in · $25/M out · cache hit $0.5/M",
184+
},
176185
{
177186
id: "anthropic/claude-opus-4.7",
178187
label: "Claude Opus 4.7",

0 commit comments

Comments
 (0)