dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DeepSeek Harness token usage dashboard: settings UI with overview / by-date / by-model breakdowns, host aggregation over session logs
DeepSeek Harness (DSH) token 用量统计插件:指标卡、活跃热力图、按天趋势(top5 模型堆叠柱 + 缓存命中率折线)、模型占比环图,挂载 设置 → 用量统计
前身 dsh-panel 插件集合仓库已于 2026-09-27 裁剪为本单插件包(只保留 token 统计能力);原 dspm 管理命令与 dsh-time-awareness 模块已移除,历史沿革见
docs/requirements.md
DSH 0.1.0-rc 系列(桌面版或 web),侧边栏「插件」→「添加插件」,「包名或地址」输入:
https://github.com/felixzhang-glitch/dsh-token-usage/Users/name/dsh-token-usage,本机开发用)或 CLI 等价通道:
dsh plugin --profile <profile> add https://github.com/felixzhang-glitch/dsh-token-usage
dsh plugin --profile <profile> add /Users/name/dsh-token-usage
dsh.profile.bundles,包内 cordis.patch.yml 自动挂载,无需手改任何 profile 文件;安装失败自动恢复 manifest 与 lockfilelink: 活链接:仓库内改代码即 profile 内生效,重装仅需重启;GitHub 通道装的是远端快照,更新需卸载重装dsh-token-usage 是第三方同名包(Tastelessor/dsh-usage-stats,带计价),对话框输入裸包名装到的不是本插件lib/ # 插件本体
index.js # host 半:聚合 session 日志,注册 GET /token-usage/stats(预热 + SWR 缓存 + 单飞)
client.js # client 半:ModuleLoader 包装的浏览器 bundle,注入 settings.section 槽位
cordis.patch.yml # 组合包挂载行(dsh.bundle.patch 声明)
package.json # exports + dsh.bundle + dsh.client + peerDependencies + files 白名单
node --check lib/index.js && node --check lib/client.js
~/.dsh/profiles/<profile>/.plugin-manager/logs/token-usage/stats 返回 500 时看响应 error 字段sessionQuery.listSessions/readSession、webServer.register、settings.section 槽位、--dsw-* token、ModuleLoader 包装格式docs/plugin-guide.md)| 路径 | 内容 |
|---|---|
AGENTS.md | 代码地图与核心指令 |
docs/design.md / docs/architecture.md | 设计与架构 |
docs/requirements.md | 需求迭代记录(含 dsh-panel 时期历史) |
docs/plugin-guide.md | 插件开发·维护·部署指南 |
docs/reference/ | DSH 插件规范、plugin-manager 通道等参考资料 |