ci: 增加语法/清单/安装脚本校验 workflow

- node --check host/client、manifest JSON、install.sh 语法、patch 内容
- 便于后续改动即时回归
This commit is contained in:
GeekRicardo
2026-08-18 21:46:29 +08:00
parent b9535e6aff
commit c4d35ef8cc
2 changed files with 44 additions and 0 deletions
+25
View File
@@ -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
+19
View File
@@ -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)。