Rice00/dsh-tree-view 预览 preview

Rice00/dsh-tree-view

Tree-view conversation branching for DeepSeek Harness: one sidebar entry, branch and switch versions inside a tree, promote a branch to a formal session, rename branches. A fork of dsh-plugin-message-edit (MIT).

Project Overview项目介绍

dsh-tree-view is a Cordis plugin authored specifically for the DSH (DeepSeek Harness) web profile; it exists only to render forked conversation versions as a single navigable tree inside the DSH host. Installation is performed through the native DSH plugin CLI with dsh plugin --profile web add dsh-tree-view (npm) or add github:Rice00/dsh-plugin-message-edit, and local checkouts can be linked with add link:/abs/path/to/dsh-tree-view; the command appends a tree-view line to the profile patch and a host-side restart is required because DSH caches plugin modules in-process, while a browser refresh suffices for client-only changes. The server half registers a single /tree-view HTTP route that serves family DAGs, creates branches, and mutates archive state, while the client half injects a Tree tab, settings panel, and right-click menus into the host UI.

The intended workflow begins when a user edits a sent message or invokes DSH's built-in "branch into a new conversation" button, both of which seed a new session from the events preceding the edited turn; the plugin computes the fork point from the seed length and renders every resulting version as a node on the tree. Users can click nodes to jump between versions, promote several branches back into the sidebar via "promote" for parallel work, collapse other branches with one click (which prompts to stop in-flight replies first), or fold long unbranched stretches into single card stacks. This makes the plugin most useful for DSH power users who routinely rephrase prompts, compare divergent answers side by side, and want the sidebar to stay clean without losing any earlier version of the conversation.

Dependencies and limits are deliberately narrow: the package declares engines.dsh as >=0.1.5-rc.2 <0.1.6-0, with end-to-end acceptance recorded against DSH 0.1.5-rc.2 and 0.1.7-rc.1, and the only hard host requirement is the slots extension point, with the client supporting both generations of the session-navigation API and sub-agent directory fields. Persistence is frozen at three formats — message-tree/version event markers (schemaVersion: 1), the ~/.dsh/storages/tree-view/state.json sidecar, and the dsh-tree-view:prefs browser preference (v: 2) — which only migrate on major releases; the repository is MIT-licensed, retains upstream NOTICE from the dsh-plugin-message-edit and dsh-message-edit forks, and never rewrites or deletes session logs, only toggling archive state through a single lib/archive-adapter.js adapter.

dsh-tree-view 是面向 DSH(DeepSeek Harness)web profile 的 Cordis 插件,把同一会话家族的多个版本组织成一棵树形视图。安装命令为 dsh plugin --profile web add dsh-tree-view(npm)或 add github:Rice00/dsh-tree-view,也可通过 link: 装本地检出目录;它把 tree-view 写进 profile 补丁,启动时探测宿主能力再决定是否启用归档按钮。运行时宿主半边挂载一条 /tree-view HTTP 路由,前端 plugin.client.js 注入 Tree 标签页、设置项与右键菜单。

典型工作流是编辑一条历史消息或触发 DSH 自带的「在新对话中分支」按钮,宿主以截断后的事件流为种子新建会话,插件按种子长度定位分叉点,把每个版本画成树节点;用户可点击节点跳转、并行把多个版本放回主对话、用「收起其它分支」一键归档,或折叠连续无分叉的长轮次。该插件适合需要在同一对话里反复试不同措辞、并行比较多个回答方案,又不愿被侧栏一堆归档条目淹没的重度 DSH 用户。

依赖与限制方面,仓库声明 engines.dsh 为 >=0.1.5-rc.2 <0.1.6-0,已端到端验收的宿主为 0.1.5-rc.2 与 0.1.7-rc.1;其唯一硬依赖是 slots,客户端兼容两代会话导航 API(uiWorkspace.openSession 与 sessions.open)。持久格式冻结在 message-tree/version(schemaVersion: 1)、~/.dsh/storages/tree-view/state.json、浏览器偏好 dsh-tree-view:prefs(v: 2),仅在 major 升级时迁移。许可证为 MIT,含上游 fork NOTICE;首次运行务必重启 profile,仅改界面则刷新浏览器即可,会话内容不会被改写或删除。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-tree-view

把 Rice00/dsh-tree-view 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-tree-view

dsh-tree-view

TreeView —— 以树形视图使用会话

简体中文 | English

编辑一条旧消息,对话从那一刻分叉;分叉出来的版本都住进同一棵树,侧栏里始终只有一条。

npm License: MIT Platform: DSH web DSH: 0.1.x PRs: welcome GitHub stars


编辑一条已经发出的消息,或用 DSH 自带的「在新对话中分支」按钮,都会在这里长出一条新分支:

用户消息下方的版本环,以及编辑 / 复制 / 重试按钮

在会话面板切到 Tree,整个家族画在一张图上:

Tree 标签页:共用的开头是一条主干,第 11 轮处分叉,中间一段连续 8 轮折成一叠薄片,右上角是带「子代理」标识的子代理会话

功能

功能 说明
🖱️ 点击节点跳转 树上每个节点都是一个真实的会话版本。点它你就切到那条线继续聊,并跳到那一轮的消息(规则见下)。背后只是翻转归档状态:被点的解除归档、回到侧栏,你原本在读的那条归档、收进树 —— 所以从树里点来点去,侧栏位置只换不增。
📍 「你在这里」小三角 树里用一个小三角指着你正在读的那一轮:固定在卡片右侧、与卡片高度中点对齐,缩放时大小不变,卡片变高也会重新居中。离开 Tree 再回来、甚至刷新页面,它都还在(位置记在浏览器里)。
🧭 记住视图位置 离开 Tree 再回来,停在上次的平移与缩放位置(只记在内存里,刷新即忘)。想看全树按工具栏的 ⌖。
🔀 多线并行 版本本身就是会话。右键「放到主对话」可以把多个版本都放出来(这一步只解除归档、不动别人),让两条分支同时工作、互不干扰;不需要同时看了,再收进树。
🧹 一键收起 面板工具栏的「收起其它分支」一次把该家族散落在侧栏的其它版本全收进树,只留你正在用的那条;若其中有版本还在生成回复,会先问你是停掉再收还是取消,不会悄悄掐掉工作。
🗂️ 长段折叠 一连串没有分叉的长轮次 —— 包括所有版本共用的开头 —— 达到设定长度就折成一个节点,点开即看;阈值在设置里选,工具栏上随时折回,折完自动重新居中。
🚫 隐藏空副本 只复制了本对话、自己没聊出新内容的 Fork 不画出来,工具栏上有同一个开关。
✏️ 分支重命名 右键节点给分支起个名字。侧栏标题仍是宿主自己的((1)、(2) 那套照旧),被命名的只有树上的盒子。
🔄 版本环切换 气泡下方的 ‹ n/m › 环,不离开对话就能在同一个问题的几个版本之间来回。
🎯 在读路径高亮 你正在读的整条线 —— 含各版本共用的开头 —— 在树上一路高亮,一眼看出从哪来、现在在哪、还能去哪。
📌 接着上次阅读 从别的会话回到这个家族时,接着你上次读的那条版本(默认关,可在设置里打开)。
🤖 子代理标识 挂在你这个对话下面的子代理会话带标签,不会被误认成你的一个版本。
📦 归档的分支不消失 被归档(收起)的版本仍留在树上,只是变暗并标「已归档」—— 归档是让侧栏少一个入口,不是把分支删掉。
🎨 跟随主题 背景、边框、强调色、状态色连阴影都取自宿主主题变量,浅色跟随浅色、深色跟随深色。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-cache-miss 下一个 Next dsh-media-gen →