dsh-workspace-focus

DSH PLUGINUI 与外观

仓库 wuenna/dsh-workspace-focus

UI 与外观 L5 · 运行验证通过 安全审查:低风险 可信度:金 可安装插件
安装这个插件

为 DSH 侧边栏工作区列表加一个眼睛开关,开启后只显示当前会话所在的工作区,其余工作区全部隐藏,选择状态可跨刷新保留。

一句话选型结论

按资料字段整理

dsh-workspace-focus 是UI 与外观类的 DSH 可安装插件,验证等级 L5 · 运行验证通过,安全审查为低风险,列出 4 项功能,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类UI 与外观 收录类型可安装插件 验证等级L5 · 运行验证通过 安全审查低风险
验证等级 L5 L5 · 运行验证通过
GitHub 星标 0 复刻 0 · 未关闭 issue 未标注
最近更新 2026-09-23 创建于 2026-09-23
README 10.8 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:wuenna/dsh-workspace-focus
  1. 1
    确认版本与运行环境

    兼容的 DSH 版本为 0.2.0-rc.2 等 3 个;版本不匹配时安装会报错。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本0.2.0-rc.2 等 3 个版本版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

4 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-workspace-focus:让 DeepSeek Harness 侧边栏只显示当前会话的工作区

  • 侧边栏一键聚焦当前工作区
  • 其余工作区整段隐藏不归桶
  • 支持嵌套工作区树结构
  • 选择经 localStorage 持久化

适用场景

皮肤主题文件读写

上游标签

deepseek-harnessdshdsh-pluginsidebarworkspace

验证等级与安全审查

L5 · 运行验证通过
自动化流程结论,不是人工审核
验证等级L5 · 运行验证通过在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度金综合仓库活跃度与验证结果

上面的结论来自上游最近一次自动化验证(2026-10-08): 同一套检查会在插件发新版后重跑,页面显示的是最新一次的逐项结果。

逐项检查结果

L1 · 已找到 ✓ 通过
  • L1.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L2 · 结构化 ✓ 通过
  • L2.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L3 · 安装规范 ✓ 通过
  • L3.1_INSTALL_COMMAND_PARSED 安装命令已解析 方式:安装规范解析
  • L3.2_DSH_VERSION_DECLARED DSH 版本已声明 方式:DSH 版本声明
L4 · 安装已测 ✓ 通过
  • L4.1_INSTALL_EXECUTED_CONFINED 受限沙盒内执行安装 方式:沙盒安装执行
  • L4.2_INSTALL_SUCCESS 沙盒安装成功 方式:沙盒安装执行
  • L4.3_ARTIFACT_CONFIRMED 安装产物已确认 方式:沙盒安装执行
L5 · 运行已测 ✓ 通过
  • L5.1_INSTALL_PASSED_SANDBOXED 沙盒安装通过 方式:沙盒安装执行
  • L5.2_WEB_BOOT_READY Web 启动就绪 方式:Web 启动
  • L5.3_HTTP_SERVED HTTP 服务响应 方式:HTTP 请求
  • L5.4_PLUGIN_INVENTORY_ACTIVE 插件清单中已激活 方式:插件清单查询
— · 其它检查项
  • L4_0_SANDBOX 沙盒安装判定 方式:沙盒安装执行

风险详情

  • 审查结论 通过
  • 结论说明 vet 静态分析未发现可疑行为,判定为干净(clean)。
  • 风险计数 严重 0 / 高 0 / 中 0
  • 风险详情 未发现严重或警告级问题。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L5:安装和运行都在沙盒里跑通过,装完能直接用的概率高。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。
  • 标注了兼容的 DSH 版本(0.2.0-rc.2 等 3 个),按版本装不容易报错。
  • 列出了 4 项功能,能直接看出它解决什么问题。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在UI 与外观场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-workspace-focus当前 L5 · 运行验证通过 低风险 0 0.2.0-rc.2 等 3 个 有
nuwa-skill 未做沙盒验证 未标注 3.8 万 未标注 有
awesome-dsh-plugin L4 · 沙盒安装通过 低风险 1.8 万 0.1.1-rc.2 有
deepseek-balance-whale-widget L4 · 沙盒安装通过 低风险 4,492 0.1.7-rc.2 等 2 个 有
dsh-better-sidebar L4 · 沙盒安装通过 低风险 4,112 0.1.7-rc.2 等 10 个 有
dsh-deep-whale L4 · 沙盒安装通过 低风险 2,470 未标注 有

仓库档案

UI 与外观
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方wuenna仓库 dsh-workspace-focus · 默认分支 未标注
分类UI 与外观skin
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言JavaScript仓库主语言
许可证NOASSERTION商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 0 / 未标注收录时的数值,非实时
创建 / 更新2026-09-23 · 2026-09-23最后推送 未标注
本站收录2026-09-23首次进入本站目录的时间

README 全文

10.8 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-workspace-focus

A DSH Web plugin that adds one eye toggle to the sidebar's workspace-browser
header, next to the built-in search, view options, and add workspace
buttons. While the toggle is active, the sidebar shows only the workspace that
holds the current session
— every other workspace is hidden.

┌ 工作区 ───────────────  ⌕  ≡  +  👁 ┐   ← the plugin's button, last in the row
│ ▾ .dsh                                │
│     53 分钟                            │   ← only the current session's workspace
└───────────────────────────────────────┘

Behaviour

Off (default) Every workspace is listed, exactly as the built-in browser renders it. The icon is a struck-through eye.
On Only the workspace containing the current session is listed — the other sections are not displayed at all, not collected into a bucket. The icon is an open eye, tinted with the brand colour. The choice survives a reload (localStorage["dsh.workspace.focus.v1"]).
Nested workspaces DSH 0.1.6 can arrange workspaces as a tree. The focused workspace stays together with the ancestors that hold it, and every other branch is hidden.
No current session The button is disabled and its tooltip says so. The toggle can never be switched on into a state that hides everything.
A right panel is open The main view stops retaining the session while a panel takes the selection over. Focus mode keeps remembering the last answered workspace, so the list does not blink out for a reason the user cannot see.
List mode "one list" The sidebar's view options can drop the grouping. There are no workspace sections then and focus mode hides nothing; it takes effect again as soon as the grouped view is back.

How it works

The sidebar renders one section per workspace inside the list that carries
role="tree" — that is what the built-in's groupByWorkspace produces; since DSH
0.1.6 it can nest them by path inside role="group" wrappers as well. Focus mode
is applied to that rendered markup and nowhere else: the sections holding the
current workspace keep their place, every other section gets one marker
attribute, and a single rule in the plugin's stylesheet turns that marker into
display: none.

// the plugin's entire stylesheet for the filter
[data-dsh-workspace-focus-tree] [data-dsh-workspace-focus-hide] { display: none }

Marking sections instead of narrowing the store is the whole point, and it is
worth spelling out why the store was the wrong seam. The built-in derives its
sections from sessions, cross-referenced with the workspace list:

for (const workspace of workspaces) { /* members from workspace.sessionIds */ }
const stray = list.ids.filter((id) => !accounted.has(id));   // → the "未分组" bucket

Narrowing the workspace list therefore does not narrow the sidebar. Every
session whose workspace vanished from the list becomes "stray" and is swept into
the built-in's Ungrouped bucket, so hiding four workspaces produces a fifth
group holding all of their sessions. Nothing about the framework's stores is
touched here, so that bucket never gets fed, and what the user asked to hide is
simply not displayed.

Which session is current

The plugin reads this the way the built-in does, and that moved in DSH 0.1.6. The
session list no longer carries a current field — it is { ids, byId, phase, … }
— and the session the main view is showing is now the one the main view still
retains: the row whose retainedBy.mainView is non-zero. The old field is
still honoured as a fallback, so the plugin runs against builds on either side of
that change.

Which sections stay

The current session's own row — the role="treeitem" that is aria-selected —
is the authority, deliberately: it says nothing about how the built-in arranged
its sections. Every section between that row and the tree is a workspace that has
to stay, which yields the focused workspace plus its ancestors when workspaces are
nested, and it keeps working if the host reorders its workspaces.

When that row is not on screen (the focused workspace is collapsed, so it renders
no session rows at all) the older positional mapping is used instead: one section
per workspace in the host's order, checked against the label the sidebar rendered.
That mapping is meaningless while sections nest, so it is only attempted when every
section is a direct child of the tree.

Consequences worth knowing:

  • The framework's workspace and session stores are read only — the plugin
    subscribes to them to follow the selection and never writes to them.
  • Every uncertain case fails towards showing more: no current session, an
    unrecognised list shape, or a section whose rendered label does not match the
    workspace it should stand for all leave the list alone. The gate attribute
    lives on the tree, so dropping that one attribute reveals everything.
  • The layout switch does not flash. Collapsing the sidebar to its rail makes
    the built-in render the list area with no children at all, so the tree — and
    every marker on it — is unmounted; expanding mounts the sections bare. A
    MutationObserver on the document re-marks them, and because its callback runs
    before the frame paints, the transition never shows the full list first. A
    one-second interval sits under it as a net.

Finding the parts of the built-in markup

Nothing here pins a CSS-module class name: those are content-hashed and change
with every rebuild of the shipped bundles. Both anchors are structural.

  • The tree is [role="tree"] — the one whose branch has a sibling holding a
    button. The climb from the tree goes up parents until the level where the
    tree's branch has a button-holding sibling, which is the section header; no
    level is counted, so an extra wrapper does not break it. A tree React portals
    straight to body — the subagent lineage menu — has no such sibling and is
    rejected by the same walk.
  • The action row is the header child that holds buttons and no text input,
    which is what separates it from the search slot beside it. One built-in button
    is enough to prove the row, so the plugin keeps working if the built-in renders
    only one of them.

The button copies the sibling's own class list, so it inherits the icon-button
hover, shape, and sizing.

The third button needs room

The built-in's action row is capped at exactly its two buttons' width
(max-width: 60px for two 28px buttons and the 4px gap) and clips what does not
fit, so a third button would be invisible without raising that cap. The plugin
does it in CSS, scoped to the marked header and matched with :has():

[data-dsh-workspace-focus-header]:has(button[aria-expanded="false"]) > [data-dsh-workspace-focus-row] { max-width: 96px }

Writing it as a stylesheet rule rather than a JavaScript style write is what
keeps the built-in authoritative: when the search box expands, aria-expanded
flips to true, the rule stops matching, and the built-in's own collapse of the
row applies again — no state to observe, no re-apply, no window in which the row
stays wide over the search field. The row's natural width is its contents', so a
built-in with only one button is unaffected by the raised cap.

The eye glyph is drawn inline: the shipped icon set contains no eye or
visibility icon.

Layout

File Role
lib/index.js Host half — intentionally empty. It exists so the Loader scans the row, which is what composes the browser bundle.
lib/client.js Browser half — the whole feature.
cordis.patch.yml The package's own bundle patch: the host row.
test/client.test.mjs Self-contained checks: a DOM stand-in with a small selector matcher, reproducing the built-in browser's real nesting (including the tooltip wrapper and the header's search input), plus service stand-ins. node test/client.test.mjs from the package root.

Install

The plugin lives at ~/.dsh/plugins/dsh-workspace-focus, linked into the Web
profile, exactly like dsh-deepseek-cost:

New-Item -ItemType Junction `
-Path "$env:USERPROFILE\.dsh\profiles\web\node_modules\dsh-workspace-focus" `
-Target "$env:USERPROFILE\.dsh\plugins\dsh-workspace-focus"

Three things make it load, and all three are needed:

Where What
~/.dsh/profiles/web/package.json dsh.profile.bundles lists dsh-workspace-focus, and dependencies links it as link:../../plugins/dsh-workspace-focus.
cordis.patch.yml (the package's own) dsh.bundle.patch mounts the host row workspace-focus.
lib/index.js The deliberately empty host half. The Loader only composes the browser bundle for a row whose package resolves.

Registration must not also be repeated in the profile's
~/.dsh/profiles/web/cordis.patch.yml: bundle layers run first and insert
appends, so the same row id would mount twice. Once these are in place the
built-in plugin manager owns the row and can enable or disable it from its own
page (plugins.json, rowId workspace-focus).

Adapting to a framework update

An upgrade can move the built-in surface this plugin reads. A vanished toggle is
almost always one of these, in this order — check them before changing code.

  1. Reload the page. A framework upgrade replaces many client bundles at
    once, this plugin's dependencies among them. A page still holding the
    pre-upgrade module graph can be missing plugin rows entirely; a fresh load
    recomposes the graph. Confirm the plugin is even in it:
curl.exe -s -N --max-time 6 -o "$env:TEMP\events.txt" http://127.0.0.1:3080/plugins/events
Select-String -LiteralPath "$env:TEMP\events.txt" -Pattern 'dsh-workspace-focus'

(curl exits 28 on that stream by design; the payload is still written.)
2. Services. apply injects workspaces, sessions, and locale. In
0.1.7 the workspace browser also provides a new uiWorkspace service — that
is an addition (directory picking, archive), not a rename of workspaces.
3. Snapshot shapes. sessions.list has now changed twice: 0.1.6 dropped
current in favour of retainedBy.mainView, and 0.1.7 replaced
subagentsByParent/jobsBySession with projectionsBySession. Only the
retention field matters here, and it has survived both.
4. DOM anchors. Re-verify the ones named under
Finding the parts of the built-in markup
against
node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js.
5. Run the tests. node test/client.test.mjs. They cover the logic, not the
built-in's markup, so a green run with a missing toggle points at anchors 4
(or at anchor 1).

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
dsh-workspace-focus 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add github:wuenna/dsh-workspace-focus` 即可。

dsh-workspace-focus 的验证等级是什么意思?

L5 · 运行验证通过。在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来

dsh-workspace-focus 安全吗?

低风险。vet 静态分析未发现可疑行为,判定为干净(clean)。

dsh-workspace-focus 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-workspace-focus 支持哪些 DSH 版本?

上游记录的兼容版本包括 0.2.0-rc.2、0.2.0-rc.1、0.1.7-rc.2。

dsh-workspace-focus 用的是什么许可证?

上游标注为 NOASSERTION。商用或二次分发前请到仓库确认许可证原文。

dsh-workspace-focus 有哪些功能?

侧边栏一键聚焦当前工作区、其余工作区整段隐藏不归桶、支持嵌套工作区树结构、选择经 localStorage 持久化。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

同名或近似条目

2 条
不同作者的仓库分开列,请确认你要装的是哪一个
UI 与外观
按星标排序,可作替代方案

nuwa-skill

nuwa-skill

女娲 DSH plugin 只需输入一个名字,就自动调研、提炼并验证任何人的心智模型、决策启发式与表达 DNA,生成可直接调用的思维视角 S

未标注验证等级 3.8 万 星

awesome-dsh-plugin

awesome-dsh-plugin

A curated list of plugins for DeepSeek Harness (dsh) · DeepSeek Harnes

L4 · 沙盒安装通过 1.8 万 星

deepseek-balance-whale-widget

DeepSeek-Balance-Whale-Widget

DSH 界面右下角的常驻小鲸鱼余额挂件,实时显示 DeepSeek 账户余额、今日已用与每轮对话消耗,支持拖拽吸附、Q 弹动画与音效,开箱即

L4 · 沙盒安装通过 4,492 星

dsh-better-sidebar

DSH-better-sidebar

面向 DeepSeek Harness 的服务化侧边栏工作台插件,把文件编辑、终端、Git 变更、子代理任务与侧边对话整合进右侧栏与底部面板

L4 · 沙盒安装通过 4,112 星

dsh-deep-whale

dsh-deep-whale

DSH Web 鲸鱼娘皮肤系列(深海女仆工坊 maid-atelier)。

L4 · 沙盒安装通过 2,470 星

deepseek-design

deepseek-design

可视化设计工作室,支持网站、App 原型、海报、信息卡、报告和杂志的模板创建、元素编辑、选区级 AI 草稿衔接与导出。

L4 · 沙盒安装通过 1,438 星

wuenna 的其它插件

2 个

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 2026-10-08。