D

dsh-token

github.com/zoyluoblue/deepseek-harness-token

v0.1.3 模型与账号 发起网络请求R013 清单可疑

`@zoytown/dsh-token` 是一个 **DeepSeek Harness(`dsh`)插件,统计本机全部 token 用量**。它把每一个 dsh home——`~/.dsh` 以及各个 `~/.dsh_desktop/ `——的会话日志折叠成设置里的一个 **Token** 页:总量指标卡、GitHub 式贡献热力图、当前与最长连续天数、高峰时段,以及按模型拆分的四个互斥 token 桶。它**不注册任何模型可见的工具*

作者原文(英文)

DeepSeek Harness (dsh) plugin for machine-wide token usage statistics — a Settings page with totals, a contribution heatmap, streaks, and a per-model breakdown. Reads session logs from every dsh home; no cost estimates.

中文简介由 DeepSeek 模型翻译,仅供参考。

dsh-plugindeepseek-harnessdshcordisdeepseekpluginllmai-agent
分类
model
发布
2026-08-17
版本
v0.1.3

检测报告

有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
2需留意2一般20未命中
高关注需留意一般

能力清单

  • 发起网络请求network需留意1 处命中
    • lib/client.js:557const response = await fetch(`${SUMMARY_ROUTE}?range=${encodeURIComponent(range)}`, {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • R013 清单可疑manifest-obfuscation需留意1 处命中
    • 安装脚本: prepare
    • 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
  • 读取文件reads-files一般4 处命中
    • lib/index.js:673for (const entry of await readdir(desktopRoot, { withFileTypes: true })) if (entry.isDirectory()) candidates.add(join(de…
    • lib/index.js:819projects = await readdir(home.sessionsRoot, { withFileTypes: true });
    • lib/index.js:828sessions = await readdir(projectPath, { withFileTypes: true });
    • lib/index.js:927const bytes = await readFile(path);
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般1 处命中
    • lib/index.js:662const { currentHome, extraRoots = [], env = process.env, osHome = homedir() } = options;
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
能力标识关注度命中次数
发起网络请求network需留意1
R013 清单可疑manifest-obfuscation需留意1
读取文件reads-files一般4
读取环境变量reads-env一般1

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 23 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

这个插件声明的依赖中,有 1 条已公开的安全公告 (最高等级:低):

等级依赖包编号摘要
低zodCVE-2023-4316Zod denial of service vulnerability
修复版本:3.22.3 详情 →

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

← 返回全部插件