bowenliang123/dsh-context
bowenliang123/dsh-contextDSH 上下文洞察面板:Context 仪表盘 + /context命令 + Context 浏览器,查看 Context的分类组成、内容详情、演进趋势、压缩/注入事件、统计等一站式 Context 全生命周期管理。
dsh Web 界面的 DeepSeek 账户余额浮窗:按币种显示总余额、赠送余额与充值余额,每 60 秒刷新一次。可拖动、可折叠;API Key 按「卡片手动输入 → 凭据服务 → 环境变量 DEEPSEEK_API_KEY」顺序解析。
Persistent DeepSeek API balance & usage plugin for the web profile.
shell.overlay (top-right, draggable, collapsible).platform.deepseek.com/api/v0/usage/cost and
.../usage/amount?month=<M>&year=<Y>, authenticated with the platform userToken
(from the browser: JSON.parse(localStorage.userToken).value). API keys cannot access
these endpoints. Codes 40002/40003 mean the token expired — re-fetch it.llm/stream calls; not platform billing data).DEEPSEEK_API_KEY > DEEPSEEK_API_KEY environment variable.
The platform userToken is entered manually in the card and kept in memory only.package.json — declares dsh.client (web bundle) + ./client export.lib/index.js — host half: llm/stream usage counter, HTTPS balance query,
/api/dsh-deepseek-balance JSON route on the harness web server.lib/client.js — web bundle (plain __ModuleLoader__ format, no build step):
the floating card UI.Installed by hand at ~/.dsh/profiles/node_modules/dsh-deepseek-balance and wired into
the profile composition via ~/.dsh/profiles/web/cordis.patch.yml:
- insert:
- id: deepseek-balance
name: dsh-deepseek-balance
Takes effect on the next harness start. To remove, delete the insert entry and the package directory.
userToken.