会话与记忆 · v0.2.0
dsh-record-replay
DSH Web GUI 的「录制回放」插件,两套能力。
作者原文(英文)
Record & Replay for the dsh web GUI: (1) replay every automatically recorded session as a readable timeline, export/import shareable replay packs, re-run a recorded conversation; (2) Codex-style screen recording -> skill generation - record a computer-use
简介取自插件自己的 README 原文。
安装命令
dsh plugin --profile web add dsh-record-replay@0.2.0
已试装 · 层已挂载
已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。
检测报告
能力清单
- 发起网络请求
network需留意42 处命中lib/client/api.js:38const response = await fetch(API_BASE + '/recordings', {lib/client/api.js:47const response = await fetch(API_BASE + '/recording' + query({ id, part: 'video' }), {lib/client/api.js:54const response = await fetch(API_BASE + '/recording' + query({ id, name }), {lib/client/api.js:62const response = await fetch(API_BASE + '/recordings');- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 写入文件
writes-files需留意27 处命中lib/client.js:8260await driver.rename("技能生成:" + recording.title).catch(() => {});lib/client.js:8848await driver.rename(`回放:${title}`).catch(() => {});lib/pack-store.js:17await mkdir(this.root, { recursive: true });lib/pack-store.js:24await writeFile(file, JSON.stringify(pack, null, 2), 'utf8');- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 含混淆或编码代码
obfuscated-code需留意9 处命中lib/index.d.ts:34export declare const RECORD_REPLAY_GUIDANCE = "\u672C\u673A\u5DF2\u5B89\u88C5 dsh-record-replay \u63D2\u4EF6\uFF08DSH \u…- 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
- 客户端可疑脚本
client-side-risk需留意2 处命中- client.js: postMessage 无 origin 校验; client.js: innerHTML + postMessage
- 浏览器侧代码能改你看到的界面。确认改动范围符合插件用途。
- 读取文件
reads-files一般26 处命中lib/pack-store.js:39files = await readdir(this.root);lib/pack-store.js:75const text = await readFile(join(this.root, `${id}.json`), 'utf8');lib/recording-store.js:28const text = await readFile(join(this.dir(id), 'metadata.json'), 'utf8');lib/recording-store.js:80entries = await readdir(this.root);- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 动态加载模块
dynamic-import一般9 处命中lib/index.d.ts:21export declare const RECORD_REPLAY_SETTINGS_NAMESPACE: import("@deepseek-ai/dsh-settings").SettingsNamespace;lib/client/panel/RecordTab.d.ts:6}): import("react").JSX.Element;lib/client/panel/ReplayPanel.d.ts:24export declare function ReplayPanel({ controller, api, runtime }: ReplayPanelProps): import("react").JSX.Element;lib/client/panel/RunModal.d.ts:9}): import("react").JSX.Element;- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取环境变量
reads-env一般2 处命中lib/paths.js:8export const DSH_HOME = process.env.DSH_HOME ?? join(homedir(), '.dsh');src/paths.ts:9export const DSH_HOME = process.env.DSH_HOME ?? join(homedir(), '.dsh')- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 接触凭据或密钥
credentials一般1 处命中lib/client.js:2648return b && ("input" === b && ("text" === a.type || "search" === a.type || "tel" === a.type || "url" === a.type || "pass…- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 发起网络请求 | network | 需留意 | 42 |
| 写入文件 | writes-files | 需留意 | 27 |
| 含混淆或编码代码 | obfuscated-code | 需留意 | 9 |
| 客户端可疑脚本 | client-side-risk | 需留意 | 2 |
| 读取文件 | reads-files | 一般 | 26 |
| 动态加载模块 | dynamic-import | 一般 | 9 |
| 读取环境变量 | reads-env | 一般 | 2 |
| 接触凭据或密钥 | credentials | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 81 个文件,扫描于 2026-10-16。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
- -20宿主启动时导入失败fail:record-replay
- -5声明与实物不符:types-missingwarn:['./lib/types/client/index.d.ts', './lib/types/index.d.ts', './lib/types/invariant.d.ts', 'lib/types/index.d.ts']
认证等级 L1
- L0静态结构与契约✓sha512-AX/JXhzcNondSqE/… 与本地 tarball 复算一致,补丁与入口齐备,另有 1 项声明不一致(计入健康扣分)
- L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
- L2隔离沙箱冒烟—宿主启动时该插件导入失败
- L3运行时健康监控✓抽样会话内未观测到外部进程 / 越界写 / 外连(2 个事件)(前一级未通过,本项不计入等级)前一级未通过,不计入等级
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- kangxiaolin
- 仓库
- https://github.com/kangshifu1/dsh-record-replay
- 许可
- Apache-2.0
- 最后发布
- 2026-08-16
- 周下载
- 119
- star
- 0
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| Node 要求 | ^22.19.0 || >=24.0.0 |
|---|---|
| 第三方依赖 | 0 个(纯自包含) |
| bundle patch | ./cordis.patch.yml |
| 依赖安全公告 | 已查询全部依赖,没有匹配到已公开的安全公告(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。) |
元数据
| 主页 | https://github.com/kangshifu1/dsh-record-replay#readme |
|---|---|
| 仓库最近提交 | 2026-08-16 |
| 仓库创建 | 2026-08-15 |
DSH