Repository navigation
v1.0.0
首个版本 / Initial release.
- 输入框下方常驻胶囊:套餐名 · 周期已用/限额 · 百分比 · 5h 窗口用量;悬停显示剩余额度、重置时间与 5h 窗口时间;点击刷新,默认 60s 轮询,多会话共享 Host 端短复用窗口。
- 凭据复用 profile 里
ctripprovider 的同一条 Key(apiKey→credentials.resolve(apiKeyEnv)→ 进程环境变量),密钥只留在 Host 进程,页面只拿到额度数字。 - 同一实现注册为 agent 工具
coding_plan_balance。 - 只用
--dsw-alias-*主题 token,文案走 Client locale(中/英);读取失败时胶囊保持可见并显示原因。
安装:dsh plugin add https://github.com/zq0929/dsh-coding-plan-balance,或在 Web「设置 → 插件 → 添加插件」里填同一地址;安装后刷新页面。
- A composer-dock pill for DSH Web: plan name, cycle used/limit and percentage, plus the rolling 5-hour window usage. Hover for the remaining amount, reset time, and window end; click to refresh.
- Reuses the profile's ctrip provider credential and never exposes it to the page.
- Also available to the agent as the
coding_plan_balancetool. - Theme tokens and Client locale only (zh/en); failed reads stay visible with their reason.
Install: dsh plugin add https://github.com/zq0929/dsh-coding-plan-balance, then refresh the page.