xinmo114514/dsh-usage-dashboard

Plugin ⭐ 0 Unlicense other

DSH(DeepSeek Harness)Web 插件:设置页 Token 消耗仪表盘 —— 指标卡、近 7 天/逐时趋势图、按模型/会话分布,数据全部来自本机会话日志,零外部请求。

Install

- **host 半**只依赖 Node 内置模块,所有 DSH 服务通过 cordis 注入列表获得(`export const inject = [...]`),由插件自身声明。
- **client 半**通过 `window.__ModuleLoader__.load({ id, factory })` 注册进 Web shell 的冻结模块表,运行时仅 `require('react')`。
- API 路由注册为 **exact** 路由,可与 `dsh-usage-widget` 等插件的 `/usage/api` 前缀路由共存(webserver 优先匹配 exact 表)。

## 快速开始

### 环境要求

| 依赖 | 版本 |
|---|---|
| [Node.js](https://nodejs.org/) | ≥ 20 |
| 包管理器 | pnpm(npm / yarn 亦可) |
| [zstd](https://github.com/facebook/zstd) CLI | 可选:缺失时 RAW 解压自动回退 harness 读取 |
| DSH Web 环境 | 已运行的 DSH Web 实例(默认 `http://127.0.0.1:3080`) |

### 构建

Add xinmo114514/dsh-usage-dashboard to your DSH config (web profile) to enable.

README

Expand full README Collapse

README is empty.