界面与主题 · v0.3.1
dsh-cyber-pet
一个用于 DeepSeek Harness 的赛博鲸鱼宠物:一只漂浮、可喂食、可自定义颜色的鲸鱼,生活在 Web UI 中,报告你的 token 用量、配额、上下文占用、交互次数和对话次数——支持三种聊天后端,……
作者原文(英文)
A cyber whale pet for DeepSeek Harness: a floating, feedable, color-customizable whale that lives inside the Web UI and reports your token usage, quota, context occupancy, interactions, and conversation counts — with three chat backends,…
简介取自插件 README 开头,由 DeepSeek 模型翻译,仅供参考。
安装命令
dsh plugin --profile web add @borisshaw6/dsh-cyber-pet@0.3.1
强装可用 · 需绕过门禁
当前 DSH 版本上 CLI 拒绝安装这个包。用 --accept-risk 绕过门禁之后,它能装上并挂载——限制来自版本策略,不是包坏了。要用它,得自己决定这个风险值不值得承担。
现在的地址:BorisXiao/dsh-cyber-pet
检测报告
能力清单
- 发起网络请求
network需留意2 处命中lib/client.js:344const response = await fetch(`${config.baseUrl}/chat/completions`, {lib/index.js:144const response = await fetch(url, { headers: { authorization: `Bearer ${apiKey}` } });- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 接触凭据或密钥
credentials一般9 处命中lib/client.js:349...config.apiKey === "" ? {} : { authorization: `Bearer ${config.apiKey}` }lib/client.js:1008apiKey: stats.chat.apiKey,lib/client.js:1177value: stats.chat.apiKey,lib/client.js:2610apiKey: typeof next.apiKey === "string" ? next.apiKey : "",- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 动态加载模块
dynamic-import一般4 处命中lib/types/client/CyberPet.d.ts:13export declare function CyberPet({ usePetStats, setSkin, setColor, setView, setQuota, setQuotaSource, setTokensPerUnit, …lib/types/client/PetPanel.d.ts:17export declare function PetPanel(props: PetPanelProps & PropsLocale<'pet'>): import("react").JSX.Element;lib/types/client/whale.d.ts:18export declare function PixelWhale({ color, className }: WhaleProps): import("react").JSX.Element;lib/types/client/whale.d.ts:24export declare function SkeuoWhale({ color, className }: WhaleProps): import("react").JSX.Element;- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取环境变量
reads-env一般2 处命中lib/index.js:134const apiKey = process.env.DEEPSEEK_API_KEY?.trim() ?? "";lib/index.js:142const url = process.env.DEEPSEEK_BALANCE_URL?.trim() || DEFAULT_BALANCE_URL;- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 发起网络请求 | network | 需留意 | 2 |
| 接触凭据或密钥 | credentials | 一般 | 9 |
| 动态加载模块 | dynamic-import | 一般 | 4 |
| 读取环境变量 | reads-env | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 19 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
- -10声明与实物不符:peer-static-import-unsatisfiedmajor:{'@deepseek-ai/dsh-llm': '^0.1.0-rc.6', '@deepseek-ai/dsh-typert-protocol': '^0.1.0-rc.6'}
认证等级 L1
- L0静态结构与契约✓sha512-NZQgs6pUvUwowhrn… 与本地 tarball 复算一致,补丁与入口齐备,另有 1 项声明不一致(计入健康扣分)
- L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
- L2隔离沙箱冒烟—试装未通过(forced-ok)
- L3运行时健康监控—未抽样(本层是抽样检测:没有会话不等于干净)
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- borisshaw6
- 仓库
- https://github.com/BorisShaw6/dsh-cyber-pet
- 许可
- MIT
- 最后发布
- 2026-08-15
- 周下载
- 23
- star
- 2
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| DSH peer 依赖 | 9 个cordisdsh-api-remotesdsh-client-localedsh-client-runtimedsh-client-ui-layoutdsh-client-ui-slotsdsh-invariantsdsh-llmdsh-typert-protocol均为 @deepseek-ai/ 下的包 |
|---|---|
| Node 要求 | ^22.19.0 || >=24.0.0 |
| 第三方依赖 | 1 个 |
| bundle patch | ./cordis.patch.yml |
| 依赖安全公告 | 1 条,见下方 |
元数据
| 主页 | https://github.com/BorisShaw6/dsh-cyber-pet#readme |
|---|---|
| 仓库最近提交 | 2026-08-15 |
| 仓库创建 | 2026-08-15 |
DSH