Skip to content

Commit 745bbc9

Browse files
committed
chore(release): 版本升到 0.2.1(额度探测口径修复)
单一真源与全部派生位置同步:pyproject.toml(真源)/ src/version.py FALLBACK / web/package.json / uv.lock / README(tag 示例 + healthz 示例 + 当前版本)/ publish.yml 手动触发示例文案。 内容:此前 commit e21ce18 修复 CodeBuddy 个人版额度探测弃用陈旧 TotalDosage、改用逐包 CycleCapacityRemainPrecise,属 bugfix,故 patch +1。
1 parent e21ce18 commit 745bbc9

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77
inputs:
88
tag:
9-
description: '要打的版本号(如 v0.2.0,留空则跳过)'
9+
description: '要打的版本号(如 v0.2.1,留空则跳过)'
1010
required: false
1111
default: ''
1212

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ docker compose exec coding2api python scripts/create_user.py admin --role admin
102102

103103
```bash
104104
docker compose pull
105-
# 或指定版本:docker pull ghcr.io/robbsluo/coding2api:v0.2.0
105+
# 或指定版本:docker pull ghcr.io/robbsluo/coding2api:v0.2.1
106106
```
107107

108108
推送新版本:打 tag `v*` 推到 main 即触发 publish workflow(见 `.github/workflows/publish.yml`),同时打 `<tag>` 和 `:latest` 到 GHCR。也可在 Actions 页面手动触发(填版本号)。
@@ -170,7 +170,7 @@ curl http://127.0.0.1:8000/v1/user/balance -H "Authorization: Bearer sk-你的ke
170170
{
171171
"status": "ok",
172172
"service": "coding2api",
173-
"version": "0.2.0",
173+
"version": "0.2.1",
174174
"credentials": {"total": 5, "ready": 4, "cooling": 1, "paused": 0, "disabled": 0}
175175
}
176176
```
@@ -368,7 +368,7 @@ pnpm build
368368

369369
## 状态
370370

371-
M0–M3 及后续迭代全部完成,`main` 分支可运行,当前版本 v0.2.0。
371+
M0–M3 及后续迭代全部完成,`main` 分支可运行,当前版本 v0.2.1。
372372

373373
后续批次(B1–B4)已按批准计划落地:
374374

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "coding2api"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
description = "把 CodeBuddy 与 TRAE SOLO 上游通道统一封装为 OpenAI 兼容 API"
55
readme = "README.md"
66
requires-python = ">=3.12"

‎src/version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from pathlib import Path
1515

1616
# 回落值:仅在读不到 pyproject.toml 时使用。升版时与 pyproject 一起改。
17-
FALLBACK_VERSION = "0.2.0"
17+
FALLBACK_VERSION = "0.2.1"
1818

1919
# 相对本文件定位项目根:src/version.py → 上一级即项目根
2020
_PYPROJECT = Path(__file__).resolve().parent.parent / "pyproject.toml"

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎web/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "coding2api-web",
33
"private": true,
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"packageManager": "pnpm@10.18.0",
66
"type": "module",
77
"scripts": {

0 commit comments

Comments
 (0)