模型与账号 · v0.5.1
dsh-cost-meter
DSH Cost Meter 是 DeepSeek Harness(DSH)Web GUI 的 DeepSeek 对话成本追踪插件——以价格快照为基准的每轮成本(区分高峰/低谷)、账户余额、成本视图标签页、每条消息的成本标签,以及一个头部……
作者原文(英文)
DSH Cost Meter is a DeepSeek conversation cost-tracking plugin for the DeepSeek Harness (DSH) Web GUI — price-snapshot-anchored per-turn cost (peak/off-peak aware), account balance, a cost view tab, per-message cost chips, and a header…
简介取自插件 README 开头,由 DeepSeek 模型翻译,仅供参考。
安装命令
dsh plugin --profile web add @gamegeek-saikel/dsh-cost-meter@0.5.1
已试装 · 层已挂载
已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。
检测报告
能力清单
- 发起网络请求
network需留意15 处命中…ypes/client/AssistantCostChip.js:59void fetch(`/cost-meter?currency=${currency}`, { cache: 'no-store' })lib/client.js:731fetch(endpoint, { cache: "no-store" }).then((res) => {lib/client.js:936fetch(`/cost-meter?session=${encodeURIComponent(sessionId)}¤cy=${currency}`, { cache: "no-store" }).then((res) => …lib/client.js:1195fetch(`/cost-meter?currency=${currency}`, { cache: "no-store" }).then((res) => res.ok ? res.json() : null).then((data) =…- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 动态执行代码
dynamic-code需留意1 处命中lib/index.js:298schema.callback = new Function("return " + schema.callback)();- 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
- R013 清单可疑
manifest-obfuscation需留意1 处命中- 安装脚本: prepare
- 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
- 动态加载模块
dynamic-import一般10 处命中…es/client/AssistantCostChip.d.ts:15export declare const AssistantCostChip: import("react").MemoExoticComponent<({ messageId, useProjection, t }: AssistantC……types/client/CostPluginCard.d.ts:11export declare const CostPluginCard: import("react").MemoExoticComponent<({ view, form, t }: CostPluginCardProps) => imp…lib/types/client/CostView.d.ts:9export declare const CostView: import("react").MemoExoticComponent<({ useProjection, sessionId, t }: CostViewProps) => i……ypes/client/SessionCostLine.d.ts:17export declare const SessionCostLine: import("react").MemoExoticComponent<({ useProjection, sessionId, t }: SessionCostL…- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取环境变量
reads-env一般3 处命中lib/index.js:2873const ambient = process.env[env];lib/types/index.js:177const ambient = process.env[env];src/index.ts:269const ambient = process.env[env]- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 发起网络请求 | network | 需留意 | 15 |
| 动态执行代码 | dynamic-code | 需留意 | 1 |
| R013 清单可疑 | manifest-obfuscation | 需留意 | 1 |
| 动态加载模块 | dynamic-import | 一般 | 10 |
| 读取环境变量 | reads-env | 一般 | 3 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 57 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
- -5cordis entry id「cost-meter」被 3 个包共用,同时安装会互相替换warn:@steven-wu/dsh-cost-meter、dsh-cost-meter
认证等级 L0
- L0静态结构与契约✓sha512-g30OzUi6I5HTT6s4… 与本地 tarball 复算一致,补丁与入口齐备
- L1配置组合与依赖图—entry id cost-meter 被 3 个包共用
- L2隔离沙箱冒烟✓隔离 profile 安装成功,4.0s,层已挂载;宿主带它启动(booted)(前一级未通过,本项不计入等级)前一级未通过,不计入等级
- L3运行时健康监控—运行时观测到异常:hosts+dns
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- gamegeek-saikel
- 仓库
- https://github.com/Saikel-Orado-Liu/dsh-cost-meter
- 许可
- MIT
- 最后发布
- 2026-10-02
- 周下载
- 157
- star
- 2
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| DSH peer 依赖 | 10 个cordisdsh-credentialsdsh-host-webserverdsh-invariantsdsh-llmdsh-sessiondsh-session-projectiondsh-settingsdsh-storage-domaindsh-token-meter均为 @deepseek-ai/ 下的包 |
|---|---|
| Node 要求 | ^22.19.0 || >=24.0.0 |
| 第三方依赖 | 0 个(纯自包含) |
| bundle patch | ./cordis.patch.yml |
| 依赖安全公告 | 1 条,见下方 |
元数据
| 主页 | https://github.com/Saikel-Orado-Liu/dsh-cost-meter#readme |
|---|---|
| 仓库最近提交 | 2026-10-02 |
| 仓库创建 | 2026-08-16 |
DSH