rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:NAS1112/dsh-session-view
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DSH 会话视图插件:在会话页加一个「会话视图」面板,把一次会话的负载、成本、时序和原文放在一起看。
工具 页(四个分区)
内容 页
通用
⌘K 命令面板、紧凑/舒适密度切换入口:打开任意会话,页面上方会出现「工具 / 内容」两个标签;⌘K 呼出命令面板。
需要 DSH 桌面版或 Web 版,且已有 profile 目录:~/.dsh/profiles/<profile-name>/(常见为 desktop)。
mkdir -p ~/dsh-plugins
# 方式一:git clone 本仓库
git clone https://github.com/NAS1112/dsh-session-view.git ~/dsh-plugins/dsh-session-view
# 方式二:下载 zip 解压
unzip dsh-session-view-*.zip -d ~/dsh-plugins
# 得到 ~/dsh-plugins/dsh-session-view/
编辑 ~/.dsh/profiles/<profile-name>/package.json,加两处:
{
"dependencies": {
"@local/dsh-session-view": "link:/Users/<you>/dsh-plugins/dsh-session-view"
},
"dsh": {
"profile": {
"bundles": [
"...",
"@local/dsh-session-view"
]
}
}
}
dependencies 里的路径必须是绝对路径,指向解压后的目录bundles 数组里加上包名,DSH 启动时才会挂载它完全退出应用再打开(只刷新页面不够,bundle 列表在启动时读取)。
打开任意会话,页面上方应出现「工具 / 内容」两个标签,右上角有一行版本标记(如 2026-11-04 19:48)。
| 文件 | 作用 |
|---|---|
package.json |
插件清单:dsh.client 声明客户端入口,dsh.bundle.patch 指向 bundle 配置 |
index.js |
Host 侧入口(空实现,渲染全在客户端) |
client.js |
全部 UI 与数据计算,单文件 |
cordis.patch.yml |
bundle patch,向宿主注入 session-view 这一行 |
locale/en.json、locale/zh.json |
语言包 |
icon.svg |
图标 |
smoke.cjs |
冒烟测试:node smoke.cjs,验证四个分区都能渲染 |
jump-check.cjs |
跳转回归测试:验证「原文」和「明细定位」落到正确位置 |
cd ~/dsh-plugins/dsh-session-view
node smoke.cjs # 期望:ok: rendered tools tab / content tab
node jump-check.cjs # 期望:高亮、筛选、提示各项断言通过
两个脚本都用桩 React 执行组件树,不需要浏览器和真实数据。jump-check.cjs 需要本机存在一组会话日志,否则会跳过数据相关断言。
从 profile 的 dependencies 和 bundles 里删掉对应条目,删掉目录,重启 DSH。
~/.dsh/sessions/...),不上报任何数据CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。