deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ghbhiee/dsh-plugin-mobile-shell
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Narrow-viewport affordances for the DeepSeek Harness web UI: a drawer sidebar with a hamburger and scrim, swipe gestures, and a deployment-labelled browser tab title.
It replaces a set of hand-applied patches to @deepseek-ai/dsh-client-ui-layout's compiled bundle — the kind that has to be re-applied after every npm i -g and that breaks silently when the upstream build changes a hashed class name.
Not on npm yet. The built lib/ is committed, so it installs straight from
GitHub — no download, no build step:
dsh plugin --profile web add github:ghbhiee/dsh-plugin-mobile-shell
Or from a local clone (a link:, so a local rebuild is picked up):
git clone https://github.com/ghbhiee/dsh-plugin-mobile-shell.git
dsh plugin --profile web add ./dsh-plugin-mobile-shell
Sibling plugins install the same way: dsh-plugin-workbench and dsh-plugin-cli-session.
pnpm install
pnpm run check # typecheck → vitest → tsdown build
Because lib/ is versioned (it is what a git install serves), rebuild and
commit it with every source change. The build is byte-reproducible for
unchanged sources within one checkout, so a diff under lib/ always means a
real change — note that CSS-Module hashes derive from the build path, so build
it from this clone rather than a worktree.
- id: mobile-shell
config:
narrowMaxWidth: 1440 # frame width at or below which the drawer takes over
documentTitle: 'WB · {host}' # '' leaves the shell's own session title alone
A client entry never sees its row's config, so the browser half asks for these over a small host route and falls back to the defaults (1023 / DSH · {host}) if it cannot.
Below the configured frame width (1023px by default — the threshold the shell itself uses to auto-collapse the sidebar):
aria-expanded; a leaf does not, and picking a leaf closes the drawer as you would expect after navigating.At any width:
DSH · <hostname>, so several deployments are distinguishable in a row of tabs. It is pinned with a MutationObserver on <title>, so it survives the shell's own session-title projection.Everything is plugin-space:
shell.overlay registration — the frame-wide layer that exists for exactly this.ctx.layout.toggleSidebar(), the cross-plugin panel face.[data-shell-overlay] layer (used to identify the frame via :has()) and the frame's data-sidebar-collapsed attribute. No compiled CSS-Module hash class is referenced anywhere, and colors come from --dsw-alias-* tokens.Two things worth knowing if you extend this:
data-sidebar-collapsed is absent when open, not "false" — React drops a false-valued data-* prop. Match :not([data-sidebar-collapsed='true']).data-mobile-shell-narrow mark the component sets from its measurement, not on a @media query — a media query would be a second copy of the threshold that silently diverges the moment it is configured.ResizeObserver, not from matchMedia. That mirrors how the shell decides, and a media-query listener can miss viewport changes that never fire change (devtools emulation, pane resizes), which strands the hamburger on a wide layout.pnpm test (26 tests) covers the two contracts that broke during development — the absent-when-open attribute and frame-measured narrowness — plus the drawer controls, leaf-vs-group closing, swipe direction, and the reproducibility of the client bundle. The net is measured, not assumed: reverting the absent-when-open fix turns 6 red, reverting frame measurement turns 10, and un-sorting the CSS class map turns 2.
.wSkVaW_header), of which the current build has five variants — it would fail silently on the next upstream release. The center column instead gets top padding so the hamburger does not cover content.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。