跳过主要内容
M

dsh-usage-stats (usage-stats)

moonlight2893267956/dsh-usage-stats/packages/usage-stats

统计所有已存 DSH 会话的 token 用量:Host 端把持久化会话日志折叠进检查点,并经一条只读 HTTP 路由提供;「用量」设置页先立即绘出已保存的聚合结果,再在后台更新。当日视图按小时分桶(带日期选择器),旁边是近 7/30 天窗口,含分模型明细、请求数与联网搜索次数;不含费用/定价模型。

安装

dsh plugin --profile web add github:moonlight2893267956/dsh-usage-stats

该插件位于仓库的 packages/usage-stats 子路径下。

README

Archived material

This directory keeps the files that described the plugin's previous life as a source-of-record archive for two in-tree harness packages. Nothing here is part of the published artifact; the installable plugin lives in packages/usage-stats.

  • legacy-repo-README.md — the repository README from before the plugin became installable: it documented copying both packages into a harness checkout.
  • legacy-wiring.patch — the harness-side wiring that copy-in workflow applied (profile rows, the api-remotes seat, generated docs). The plugin's own cordis.patch.yml replaces every hunk of it.
  • client-ui-usage.README.* — the separate browser-package README. Its content is folded into packages/usage-stats/README.md, which now documents both halves.

相关插件