baozhadepiqiu/dsh-usage-dock ↗★ 0

dsh-usage-dock

DSH plugin: a status strip under the Web composer showing a context-window battery (256K = 3 bars, 1M = 10 bars) plus Zhipu GLM Coding Plan quota / DeepSeek balance, auto-switched by the workspace's selected model. 适合使用智谱 GLM 或 DeepSeek 官方 API,需要实时监控账户余额与额度的用户。

패키지
dsh-usage-dock
호환성
미검증
Cordis peer 범위
^4.0.2
버전
0.1.0
최근 업데이트
2026. 10. 12.

같은 패키지 이름의 다른 저장소

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:baozhadepiqiu/dsh-usage-dock

dsh-usage-dock

dsh-usage-dock 效果图

DSH Web 插件:在输入框下方的状态条里,与内置"缓存命中"统计同行显示智谱 GLM Coding Plan 套餐额度(5 小时 / 每周窗口)与 DeepSeek 账户余额,按当前选中模型自动切换。

安装

dsh plugin --profile web add https://github.com/baozhadepiqiu/dsh-usage-dock.git
systemctl --user restart dsh-web

密钥走 DSH 凭据体系(设置 → API 密钥,或环境变量),本插件不落盘任何密钥。

开发

TypeScript(strict)。源码在 src/(server.ts / client.tsx / types.ts),lib/ 与 dist/ 为构建产物。

npm install --cache .npm-cache
npm run typecheck    # tsc --noEmit
npm run build        # src -> lib/index.js + lib/client.js + dist/*
npm run smoke        # 离线冒烟测试

改服务端或客户端后 npm run build,再 systemctl --user restart dsh-web 生效。详见 agent.md。