LucienLL/dsh-session-status
DSH 对话状态标签插件:给每个对话设置项目状态(进行中/已结项/搁置中 + 自定义标签/icon),会话列表与头部可见,跨浏览器持久化
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that adds customizable status tagging functionality to DSH conversations. It ships with three default statuses—In Progress, Completed, and On Hold—that let users quickly categorize their active work conversations, and it also supports fully custom status tags with custom names, any hex color, and icons. You can install it via the DSH CLI by running dsh plugin --profile web add dsh-session-status, or you can install it through the plugin management page in DSH’s web UI, and after installation you just need to restart dsh web to start using the plugin immediately.
When you open any conversation after installation, a status pill will appear in the top right corner of the conversation header. Clicking the pill cycles through the three built-in statuses, or you can click the arrow on the right side of the pill to open a dropdown menu where you can select any custom status or clear the current status entirely. On the sidebar session list, a small colored status dot appears next to each session title, and when you hover over a session row, the status label is displayed alongside DSH’s native idle/running status in the hover card. This plugin is ideal for users who manage multiple ongoing projects inside DSH and want to quickly sort and filter their conversations by project status.
All status data is stored locally in the host’s settings document under the dsh-session-status namespace, so it persists across browser restarts and device switches without any extra synchronization work from the user. You can adjust the colors of the three built-in statuses and manage custom tags (add, edit, delete) from the dedicated session status settings page, where you can also reset colors to their default values with a single click. The plugin is released under the permissive MIT open source license, and it includes full unit tests and smoke testing scripts for contributors who want to modify or extend its core functionality.
这是一个专为 DeepSeek Harness 开发的原生插件,用于给 DSH 的每个对话添加项目状态标签。插件内置「进行中 / 已结项 / 搁置中」三种状态,支持调整颜色,同时允许用户自定义标签,可设置自定义名称、任意十六进制颜色和图标。可以通过 DSH CLI 命令安装,也可以在 Web UI 的插件管理页面安装,安装完成后重启 dsh web 即可使用。
日常使用时,打开任意对话后,头部右侧会出现状态标签块,点击即可循环切换三种内置状态,也可以点击标签块右侧的箭头下拉选择任意标签或清除状态。侧边栏的会话列表会在每行标题前显示对应颜色的状态点,悬停任意会话行时,状态标签会和 DSH 原生的「空闲/运行中」状态并列显示在悬浮卡中,方便用户快速浏览区分会话状态。
插件的状态数据会保存在宿主端的 settings 文档中,使用 dsh-session-status 命名空间,跨浏览器重启也不会丢失数据。用户可以在设置页的「会话状态」页面调整内置三态的颜色,也可以增删改自定义标签,支持色板选择或自定义十六进制颜色值。插件采用 MIT 许可证开源,提供了完整的单元测试和开发流程文档,方便开发者二次修改和调试功能。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-session-status(LucienLL/dsh-session-status)
仓库:https://github.com/LucienLL/dsh-session-status
本站详情页:https://www.yhbd.top/plugins/lucienll-dsh-session-status/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-08-26 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 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-session-status
把 LucienLL/dsh-session-status 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-session-status
给每个 DSH 对话设置项目状态标签:内置「进行中 / 已结项 / 搁置中」三态(颜色可调)+ 可自定义标签(名称 + 色板 + 任意 hex 颜色 + 图标)。
- 会话列表最小可见:每行行首显示状态点(无状态不占位)。
- 会话 hover 卡:悬停会话行时,插件状态标签与 DSH 原生「空闲/运行中」并列显示。
- 对话内头部角落:状态 pill 单击快速循环三态(进行中 → 已结项 → 搁置中 → 无),pill 右侧箭头展开下拉选择任意标签/清除。
- 跨会话/跨浏览器持久化:数据存于 host 端 settings 文档(
dsh-session-statusnamespace),换浏览器/重启不丢。 - 设置页:内置三态名称固定、颜色可调(8 色板,点默认色或「恢复默认」复位);自定义标签可增删改(名称、色板或任意
#RRGGBB颜色、图标)。
安装
dsh plugin --profile web add dsh-session-status
或通过 Web UI 的插件管理安装。装完重启 dsh web 后即可在会话头部看到状态 pill。
使用
- 打开任意对话 → 头部右侧出现状态 pill(
● 未设置状态)→ 单击 pill 快速循环「进行中 → 已结项 → 搁置中 → 无」,或点 pill 右侧箭头从下拉中选择任意标签/清除。 - 会话列表(侧栏)每行标题前出现对应颜色的状态点;悬停会话行,hover 卡中与「空闲/运行中」并列显示插件状态标签。
- 设置 → 「会话状态」页:调整内置三态颜色(点默认色或「恢复默认」复位);添加/重命名/改色/换图标/删除自定义标签,颜色支持色板或任意
#RRGGBB(#RGB简写亦可)。
数据模型
settings namespace dsh-session-status:
{
"labels": [ // 自定义标签(内置三态作为 composition base,用户层不含)
{ "key": "todo", "name": "待办", "color": "#ef4444", "icon": "tag", "builtin": false }
],
"sessions": { "<sessionId>": "active" }, // 会话 → 标签 key
"overrides": { "active": { "color": "#ff00ff" } } // 内置三态颜色覆盖(可选,不写用默认色)
}
开发
node --check lib\index.js; node --check lib\status-store.js; node --check lib\client.js
node test\status-store.test.mjs # 纯逻辑单测(主模块方式,沙箱下勿用 node --test)
node test\client-shape.test.mjs # client bundle 契约:inject 是服务名 + 内联逻辑防漂移
node scripts\smoke-hover.mjs # CDP 冒烟:hover 卡状态注入 + 设置页色板(需 DSH GUI 在 127.0.0.1:3180)
发布(交互终端,WebAuthn 通行密钥流程;需先配置 npm token:NPM_PUBLISH_TOKEN 或 ~/.dsh/secrets/npm-token.txt):
pwsh -File scripts\publish-interactive.ps1
实现要点
- 双轨制:
package.json的dsh.client.inject写 NPM 包名;浏览器 bundle(lib/client.js)的exports.inject写 Cordis 服务名(slots/settingsScope/sessions)——写错会导致 web boot 永久 pending。 - 列表行无官方槽:行级状态点走 DOM 注入(
[role="treeitem"][aria-selected]+ 标题反查 session id + MutationObserver/RAF 节流),data-owner标记自清理;标题重复行宁可漏不可错。 - hover 卡无官方槽:会话 hover 卡是 portal 到 body 的复制卡(
div[role="button"]+ 内联 left/top 定位),按标题反查唯一会话,把状态行追加进卡内容列;无状态/标题重复不注入。 - 内置态不可删:settings 的
mergeLayers对数组是整体替换,用户写入 labels 后 resolved 不再含 base 内置项——客户端resolveLabels始终把内置三态合并回来;内置颜色覆盖存于 user 层overrides,点默认色即清除。 - 惰性清理:会话归档/删除后,其
sessions条目在下次写入时自动剔除;空映射unset不落盘。
相关插件
- dsh-session-memo:对话侧边备忘录(GitHub 同步状态 / npm 发布状态 / 项目版本 / 备忘标签),与本站状态标签弱联动(面板头部显示并可切换)。
License
MIT
bowenliang123/dsh-context
cocofhu/anime-find
dingyi222666/dsh-session-notification
guo6x/dsh-pilot
TOBYCAI/dsh-sessions-manager
Nono-neko/dsh-browser