diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ae38c40 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + pull_request: + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Syntax check host/client + run: | + node --check lib/index.js + node --check lib/client.js + - name: Manifest JSON valid + run: | + node -e 'JSON.parse(require("fs").readFileSync("package.json","utf8")); JSON.parse(require("fs").readFileSync("dsh.plugin.json","utf8"))' + - name: Install script syntax + run: bash -n install.sh + - name: Bundle patch parses + run: grep -q "id: dsh-balance" cordis.patch.yml diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..ef32f3b --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,19 @@ +# Changelog + +## 1.2.0 — 2026-08-18 + +- 新增 OpenRouter 余额查询(`openrouter`,`OPENROUTER_API_KEY` → `/api/v1/credits`)。 +- 新增 OpenAI Codex 订阅额度查询(`openai-codex`,`OPENAI_CODEX_ACCESS_TOKEN` → `chatgpt.com/backend-api/wham/usage`)。 +- README 补充支持矩阵与未接入供应商说明。 + +## 1.1.0 — 2026-08-18 + +- 插件更名为 `dsh-balance`(原 deepseek-balance)。 +- 新增 opencode-go 用量查询(`OPENCODE_GO_API_KEY` → `opencode.ai/zen/go/v1/usage`)。 +- DeepSeek 余额分支兼容 `deepseek-official` 路由。 + +## 1.0.0 — 2026-08-14 + +- 初始版本(deepseek-balance):DeepSeek 官方余额 + 本会话估算花费。 +- v2 起:按 provider 判断、2 秒轮询实时切换、5 分钟缓存。 +- v4 起:Kimi Coding 用量(5小时/7天/刷新时间,对齐 cc-switch)。