dsh-usage-dock
其他 活跃维护

dsh-usage-dock

baozhadepiqiu/dsh-usage-dock

dsh-usage-dock

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
None
开源协议
70 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:baozhadepiqiu/dsh-usage-dock
git clone https://github.com/baozhadepiqiu/dsh-usage-dock.git
git clone git@github.com:baozhadepiqiu/dsh-usage-dock.git
README.md main

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。