Skip to content

Commit 55805f9

Browse files
committed
chore: align with CommandCode CLI 1.32.2
1 parent 651367d commit 55805f9

10 files changed

Lines changed: 32 additions & 25 deletions

File tree

README.ko.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</p>
99

1010
<p align="center">
11-
<a href="package.json"><img src="https://img.shields.io/badge/version-1.32.1.b-b57920?style=flat-square" alt="Version 1.32.1.b"></a>
11+
<a href="package.json"><img src="https://img.shields.io/badge/version-1.32.2.a-b57920?style=flat-square" alt="Version 1.32.2.a"></a>
1212
<a href="src/model-catalog.ts"><img src="https://img.shields.io/badge/models-58-1f6f78?style=flat-square" alt="58 models"></a>
1313
<a href="package.json"><img src="https://img.shields.io/badge/Node.js-20%2B-9f4d2e?style=flat-square" alt="Node.js 20+"></a>
1414
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-28231f?style=flat-square" alt="MIT License"></a>
@@ -20,7 +20,7 @@
2020

2121
<!-- README-I18N:END -->
2222

23-
CommandCode Bridge는 CommandCode 계정을 위한 신뢰 환경용 HTTP 게이트웨이입니다. 표준 OpenAI-compatible 모델·채팅 endpoint를 제공하고 eligible upstream credential 사이에서 요청을 라우팅하며, CommandCode **1.32.1**에 맞춘 정확한 **58-model** catalog를 게시합니다. Bridge 버전은 항상 현재 CommandCode CLI 버전을 따라가며 그 뒤에 문자 접미사를 붙입니다(예: **1.32.1.b**). 접미사는 bridge 전용 release를 뜻합니다.
23+
CommandCode Bridge는 CommandCode 계정을 위한 신뢰 환경용 HTTP 게이트웨이입니다. 표준 OpenAI-compatible 모델·채팅 endpoint를 제공하고 eligible upstream credential 사이에서 요청을 라우팅하며, CommandCode **1.32.2**에 맞춘 정확한 **58-model** catalog를 게시합니다. Bridge 버전은 항상 현재 CommandCode CLI 버전을 따라가며 그 뒤에 문자 접미사를 붙입니다(예: **1.32.2.a**). 접미사는 bridge 전용 release를 뜻합니다.
2424

2525
[기능](#기능) · [설치](#설치) · [사용법](#사용법) · [동작 방식](#동작-방식) · [저장소 구성](#저장소-구성) · [현재 제한](#현재-제한) · [라이선스](#라이선스)
2626

@@ -48,7 +48,7 @@ CommandCode Bridge는 CommandCode 계정을 위한 신뢰 환경용 HTTP 게이
4848

4949
### Linux rootless installer
5050

51-
installer는 Linux user systemd용이며 CommandCode CLI 1.32.1 때문에 Node.js 22+를 요구합니다. 가능한 경우 CLI auth를 가져오고 private state는 `~/.config/commandcode-bridge`, 설치본은 `~/.local/share/commandcode-bridge`에 두며 안전한 기본값은 `127.0.0.1:9992`입니다. `0.0.0.0``BRIDGE_API_KEY`를 켠 신뢰 LAN/VPN/tailnet/firewall/reverse proxy 뒤에서만 사용하십시오. 로그인 전 시작에는 `sudo loginctl enable-linger "$USER"`, 제거에는 `./uninstall.sh` 또는 `./uninstall.sh --purge-config`를 사용합니다.
51+
installer는 Linux user systemd용이며 CommandCode CLI 1.32.2 때문에 Node.js 22+를 요구합니다. 가능한 경우 CLI auth를 가져오고 private state는 `~/.config/commandcode-bridge`, 설치본은 `~/.local/share/commandcode-bridge`에 두며 안전한 기본값은 `127.0.0.1:9992`입니다. `0.0.0.0``BRIDGE_API_KEY`를 켠 신뢰 LAN/VPN/tailnet/firewall/reverse proxy 뒤에서만 사용하십시오. 로그인 전 시작에는 `sudo loginctl enable-linger "$USER"`, 제거에는 `./uninstall.sh` 또는 `./uninstall.sh --purge-config`를 사용합니다.
5252

5353
```bash
5454
./install.sh
@@ -125,7 +125,7 @@ curl -sS http://127.0.0.1:9992/v1/chat/completions \
125125

126126
### Model metadata와 정확한 catalog
127127

128-
각 model object는 `id`, `object`, `created`, provider 기반 `owned_by`를 포함합니다. 알려진 context는 `context_window`, `context_length`, `max_context_length`에 동일하게 나옵니다. Provider API를 쓸 수 있을 때는 시작 시 live `GET /provider/v1/models`로 catalog를 갱신해 새로 추가된 model도 반영합니다. 아래 표는 배포되는 1.32.1 baseline이며 “기본 활성화”는 built-in enabled state입니다.
128+
각 model object는 `id`, `object`, `created`, provider 기반 `owned_by`를 포함합니다. 알려진 context는 `context_window`, `context_length`, `max_context_length`에 동일하게 나옵니다. Provider API를 쓸 수 있을 때는 시작 시 live `GET /provider/v1/models`로 catalog를 갱신해 새로 추가된 model도 반영합니다. 아래 표는 배포되는 1.32.2 baseline이며 “기본 활성화”는 built-in enabled state입니다.
129129

130130
| Provider | Canonical model ID | Context | 기본 활성화 |
131131
| ----------------- | --------------------------------------- | --------: | :---------: |

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</p>
99

1010
<p align="center">
11-
<a href="package.json"><img src="https://img.shields.io/badge/version-1.32.1.b-b57920?style=flat-square" alt="Version 1.32.1.b"></a>
11+
<a href="package.json"><img src="https://img.shields.io/badge/version-1.32.2.a-b57920?style=flat-square" alt="Version 1.32.2.a"></a>
1212
<a href="src/model-catalog.ts"><img src="https://img.shields.io/badge/models-58-1f6f78?style=flat-square" alt="58 models"></a>
1313
<a href="package.json"><img src="https://img.shields.io/badge/Node.js-20%2B-9f4d2e?style=flat-square" alt="Node.js 20+"></a>
1414
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-28231f?style=flat-square" alt="MIT License"></a>
@@ -20,7 +20,7 @@
2020

2121
<!-- README-I18N:END -->
2222

23-
CommandCode Bridge is a trusted-environment HTTP gateway for a CommandCode account. It presents standard OpenAI-compatible model and chat endpoints, routes work across eligible upstream credentials, and publishes an exact **58-model** catalog aligned with CommandCode **1.32.1**. The bridge version always tracks the current CommandCode CLI version with a letter suffix (for example **1.32.1.b**); the suffix marks bridge-only releases.
23+
CommandCode Bridge is a trusted-environment HTTP gateway for a CommandCode account. It presents standard OpenAI-compatible model and chat endpoints, routes work across eligible upstream credentials, and publishes an exact **58-model** catalog aligned with CommandCode **1.32.2**. The bridge version always tracks the current CommandCode CLI version with a letter suffix (for example **1.32.2.a**); the suffix marks bridge-only releases.
2424

2525
[What it does](#what-it-does) · [Install](#install) · [Usage](#usage) · [How it works](#how-it-works) · [Repository layout](#repository-layout) · [Current limitations](#current-limitations) · [License](#license)
2626

@@ -48,7 +48,7 @@ CommandCode Bridge is a trusted-environment HTTP gateway for a CommandCode accou
4848

4949
### Linux rootless installer
5050

51-
The installer targets Linux user systemd, requires Node.js 22+ for CommandCode CLI 1.32.1, imports CLI auth when available, writes private state under `~/.config/commandcode-bridge`, installs under `~/.local/share/commandcode-bridge`, and safely defaults to `127.0.0.1:9992`. Use `0.0.0.0` only behind a trusted LAN/VPN/tailnet/firewall/reverse proxy with `BRIDGE_API_KEY`. Use `sudo loginctl enable-linger "$USER"` for pre-login startup; uninstall with `./uninstall.sh` or `./uninstall.sh --purge-config`.
51+
The installer targets Linux user systemd, requires Node.js 22+ for CommandCode CLI 1.32.2, imports CLI auth when available, writes private state under `~/.config/commandcode-bridge`, installs under `~/.local/share/commandcode-bridge`, and safely defaults to `127.0.0.1:9992`. Use `0.0.0.0` only behind a trusted LAN/VPN/tailnet/firewall/reverse proxy with `BRIDGE_API_KEY`. Use `sudo loginctl enable-linger "$USER"` for pre-login startup; uninstall with `./uninstall.sh` or `./uninstall.sh --purge-config`.
5252

5353
```bash
5454
./install.sh
@@ -125,7 +125,7 @@ curl -sS http://127.0.0.1:9992/v1/chat/completions \
125125

126126
### Model metadata and exact catalog
127127

128-
Each model object includes `id`, `object`, `created`, and provider-derived `owned_by`. Known context is repeated in `context_window`, `context_length`, and `max_context_length`. When the Provider API is available the catalog is refreshed from the live `GET /provider/v1/models` at startup and picks up newly added models; the static table below is the shipped 1.32.1 baseline. “Default” is the built-in enabled state.
128+
Each model object includes `id`, `object`, `created`, and provider-derived `owned_by`. Known context is repeated in `context_window`, `context_length`, and `max_context_length`. When the Provider API is available the catalog is refreshed from the live `GET /provider/v1/models` at startup and picks up newly added models; the static table below is the shipped 1.32.2 baseline. “Default” is the built-in enabled state.
129129

130130
| Provider | Canonical model ID | Context | Default |
131131
| ----------------- | --------------------------------------- | --------: | :-----: |

README.zh.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</p>
99

1010
<p align="center">
11-
<a href="package.json"><img src="https://img.shields.io/badge/version-1.32.1.b-b57920?style=flat-square" alt="Version 1.32.1.b"></a>
11+
<a href="package.json"><img src="https://img.shields.io/badge/version-1.32.2.a-b57920?style=flat-square" alt="Version 1.32.2.a"></a>
1212
<a href="src/model-catalog.ts"><img src="https://img.shields.io/badge/models-58-1f6f78?style=flat-square" alt="58 models"></a>
1313
<a href="package.json"><img src="https://img.shields.io/badge/Node.js-20%2B-9f4d2e?style=flat-square" alt="Node.js 20+"></a>
1414
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-28231f?style=flat-square" alt="MIT License"></a>
@@ -20,7 +20,7 @@
2020

2121
<!-- README-I18N:END -->
2222

23-
CommandCode Bridge 是面向 CommandCode 账号的可信环境 HTTP 网关。它提供标准 OpenAI-compatible 模型与聊天端点,在符合条件的上游凭据之间路由请求,并发布与 CommandCode **1.32.1** 对齐的准确 **58-model** catalog。Bridge 版本始终跟随当前 CommandCode CLI 版本并在其后附加字母后缀(例如 **1.32.1.b**);后缀表示仅限 Bridge 的发布。
23+
CommandCode Bridge 是面向 CommandCode 账号的可信环境 HTTP 网关。它提供标准 OpenAI-compatible 模型与聊天端点,在符合条件的上游凭据之间路由请求,并发布与 CommandCode **1.32.2** 对齐的准确 **58-model** catalog。Bridge 版本始终跟随当前 CommandCode CLI 版本并在其后附加字母后缀(例如 **1.32.2.a**);后缀表示仅限 Bridge 的发布。
2424

2525
[功能](#功能) · [安装](#安装) · [用法](#用法) · [工作原理](#工作原理) · [仓库布局](#仓库布局) · [当前限制](#当前限制) · [许可证](#许可证)
2626

@@ -48,7 +48,7 @@ CommandCode Bridge 是面向 CommandCode 账号的可信环境 HTTP 网关。它
4848

4949
### Linux rootless installer
5050

51-
installer 面向 Linux user systemd;由于 CommandCode CLI 1.32.1,需要 Node.js 22+。它会在可用时导入 CLI auth,把 private state 写入 `~/.config/commandcode-bridge`,安装到 `~/.local/share/commandcode-bridge`,安全默认值为 `127.0.0.1:9992`。只有在启用 `BRIDGE_API_KEY` 的可信 LAN/VPN/tailnet/firewall/reverse proxy 后才使用 `0.0.0.0`。登录前启动使用 `sudo loginctl enable-linger "$USER"`;卸载使用 `./uninstall.sh``./uninstall.sh --purge-config`
51+
installer 面向 Linux user systemd;由于 CommandCode CLI 1.32.2,需要 Node.js 22+。它会在可用时导入 CLI auth,把 private state 写入 `~/.config/commandcode-bridge`,安装到 `~/.local/share/commandcode-bridge`,安全默认值为 `127.0.0.1:9992`。只有在启用 `BRIDGE_API_KEY` 的可信 LAN/VPN/tailnet/firewall/reverse proxy 后才使用 `0.0.0.0`。登录前启动使用 `sudo loginctl enable-linger "$USER"`;卸载使用 `./uninstall.sh``./uninstall.sh --purge-config`
5252

5353
```bash
5454
./install.sh
@@ -125,7 +125,7 @@ curl -sS http://127.0.0.1:9992/v1/chat/completions \
125125

126126
### Model metadata 与准确 catalog
127127

128-
每个 model object 包含 `id``object``created` 和 provider-derived `owned_by`。已知 context 同时写入 `context_window``context_length``max_context_length`。在 Provider API 可用时,启动时从 live `GET /provider/v1/models` 刷新 catalog,并纳入新添加的模型。下表是随附的 1.32.1 baseline;“默认启用”表示 built-in enabled state。
128+
每个 model object 包含 `id``object``created` 和 provider-derived `owned_by`。已知 context 同时写入 `context_window``context_length``max_context_length`。在 Provider API 可用时,启动时从 live `GET /provider/v1/models` 刷新 catalog,并纳入新添加的模型。下表是随附的 1.32.2 baseline;“默认启用”表示 built-in enabled state。
129129

130130
| Provider | Canonical model ID | Context | 默认启用 |
131131
| ----------------- | --------------------------------------- | --------: | :------: |

docs/PROCESS_LOG.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,22 @@
112112
- Released bridge version `1.32.1.b`.
113113
- CLI 1.32.1 bundle drift audit (one-shot field-level diff of `/alpha/generate`): the bridge now defaults `max_tokens` to the CLI wire value `64000` when the client omits it, forwards OpenAI `reasoning_effort` into Alpha params, drops the vestigial `x-co-flag` header the CLI no longer sends, and sends `x-cmd-zdr: 1` when `COMMANDCODE_ZDR` is on (matching the CLI's `buildCommandAuthHeaders`). Verified parity: body envelope (`config`/`memory`/`taste`/`skills`/`permissionMode`/`threadId`), `toWireMessages`/`toWireTools` shapes, and the remaining header set.
114114

115-
## Current status — 2026-08-21
115+
## 2026-08-25
116+
117+
- Updated the locally installed CommandCode CLI from `1.32.1` to `1.32.2`.
118+
- Audited the npm package diff and installed bundle. The release fixes the BYOK model picker and malformed tool-result session recovery; the Alpha endpoint constants and adjacent wire contract remain unchanged, so no bridge protocol change was required.
119+
- Confirmed the static catalog remains at 58 models. CommandCode's reference table only corrected the unexposed cache-read price for `deepseek/deepseek-v4-flash-vision-exp` from `$0.01` to `$0.007`.
120+
- Released bridge version `1.32.2.a`, updated the default advertised CLI version, and aligned all English, Korean, and Chinese README version references.
121+
122+
## Current status — 2026-08-25
116123

117124
- Branch: `main`, synchronized with `origin/main` when this status audit began.
118-
- Package: `commandcode-bridge` `1.32.1.b`, Node.js `>=20`, with `commandcode-bridge` and `commandcode-router` executables.
125+
- Package: `commandcode-bridge` `1.32.2.a`, Node.js `>=20`, with `commandcode-bridge` and `commandcode-router` executables.
119126
- API surface: authenticated OpenAI-compatible `/v1/models` and `/v1/chat/completions`, health endpoint, and same-origin dashboard configuration.
120127
- Model surface: 58 statically aligned models with live Provider API refresh when available.
121128
- Routing surface: `daily_burn_priority`, `balance_priority`, `round_robin`, and `drain_first`, with per-key model scope, concurrency, cooldown, failover, and retry controls.
122129
- Deployment surface: Docker/Compose, Linux install/uninstall scripts, nginx and systemd release assets, and GitHub/GitLab CI definitions.
123130
- Verification: `npm run typecheck`, `npm run lint`, all 216 Vitest tests in 15 files, and `npm run build` pass on this workstation.
124131
- Known local exception: `npm run format:check` fails only because the untracked workspace instruction file `AGENTS.md` is not Prettier-formatted. It is not part of the tracked product tree and was left untouched.
125-
- Live upstream smoke was not repeated because it requires a running bridge and an upstream CommandCode account; the last recorded live bridge/tool-loop smoke remains the 2026-05-16 entry.
132+
- Local HTTP QA verified `/health` reports `1.32.2.a`, `/v1/models` returns the configured model list, and an empty chat request returns the expected structured `400 invalid_request`.
126133
- Session recovery note: the current Senpi transcript exists at the path in `PI_SESSION_FILE`. Cross-platform local session search found no recoverable project implementation transcript covering the missing period, so the entries above were reconstructed from Git history and verified against the current source and test suite.

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

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export function loadBridgeConfig(options: LoadBridgeConfigOptions = {}): BridgeC
194194
host: serverFromFile.host,
195195
port: serverFromFile.port,
196196
apiBase: (env.COMMANDCODE_API_BASE?.trim() || "https://api.commandcode.ai").replace(/\/+$/, ""),
197-
cliVersion: env.COMMANDCODE_CLI_VERSION?.trim() || "1.32.1",
197+
cliVersion: env.COMMANDCODE_CLI_VERSION?.trim() || "1.32.2",
198198
upstreamMode: parseUpstreamMode(env.COMMANDCODE_UPSTREAM_MODE),
199199
zdr: parseBoolean(env.COMMANDCODE_ZDR, false),
200200
defaultModel,

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const BRIDGE_VERSION = "1.32.1.b";
1+
export const BRIDGE_VERSION = "1.32.2.a";

tests/config.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ describe("configuration and model aliases", () => {
99
expect(config.defaultModel).toBe("deepseek/deepseek-v4-pro");
1010
});
1111

12-
it("advertises CommandCode CLI 1.32.1 by default while allowing override", () => {
13-
expect(loadBridgeConfig({ env: {} }).cliVersion).toBe("1.32.1");
12+
it("advertises CommandCode CLI 1.32.2 by default while allowing override", () => {
13+
expect(loadBridgeConfig({ env: {} }).cliVersion).toBe("1.32.2");
1414
expect(loadBridgeConfig({ env: { COMMANDCODE_CLI_VERSION: "1.14.0-test" } }).cliVersion).toBe(
1515
"1.14.0-test",
1616
);
1717
});
1818

19-
it("matches the exact CommandCode 1.32.1 canonical catalog and advertised prices", () => {
19+
it("matches the exact CommandCode 1.32.2 canonical catalog and advertised prices", () => {
2020
const expectedPrices = new Map<string, [number, number]>([
2121
["deepseek/deepseek-v4-pro", [0.66, 1.98]],
2222
["deepseek/deepseek-v4-flash", [0.22, 0.66]],
@@ -88,7 +88,7 @@ describe("configuration and model aliases", () => {
8888
}
8989
});
9090

91-
it("matches the exact CommandCode 1.32.1 published context windows", () => {
91+
it("matches the exact CommandCode 1.32.2 published context windows", () => {
9292
const expectedContextWindows = new Map<string, number | undefined>([
9393
["deepseek/deepseek-v4-pro", 1_000_000],
9494
["deepseek/deepseek-v4-flash", 1_000_000],

tests/dashboard-ui.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe("dashboard UI", () => {
4646
});
4747

4848
expect(html).toContain('id="bridgeVersion"');
49-
expect(html).toContain("v1.32.1.b");
49+
expect(html).toContain("v1.32.2.a");
5050
expect(html).not.toContain('id="endpoint"');
5151
});
5252

0 commit comments

Comments
 (0)