rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Yazzyk/dsh-sidebar-fold
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness plugin that
makes the left sidebar's plugin / global-panel entry section collapsible.
When many plugins register a sidebar.panellist entry, that list grows and
squeezes the workspace/session browser below it. This plugin adds a compact
section header above the list: one click folds every entry away and returns the
vertical space to the workspace region; another click restores them.
nav[aria-label] landmark instead of
importing or replacing any plugin component.aria-expanded / aria-controls, and localizes its label (中文 面板 /
English Panels).lib/ is committed, so a Git install needs no dependency build scripts:
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Yazzyk/dsh-sidebar-fold
Then restart the target profile. Use your actual profile name in place of
web (for example desktop).
To install a local checkout instead:
npx -p @deepseek-ai/dsh dsh plugin --profile web add /path/to/dsh-sidebar-fold
The cordis.patch.yml layer inserts one row:
- insert:
- id: sidebar-fold
name: dsh-sidebar-fold
config: {}
The package declares dsh.client.platform: web and exports["./client"], so
the browser module table picks up lib/client.js. The host entry
(lib/index.js) is an empty apply() — required so the Loader mounts the row,
but with no host-side effects.
npm run build # regenerate lib/ from src/
npm run verify # check exports, module protocol, patch, factory contract
npm test # behavior tests against a minimal DOM stub
npm test covers: no fold row for a single entry, no fold row in the rail,
fold/restores all rows with a count badge, and full cleanup on dispose.
apply(ctx) installs a MutationObserver on document.body. On each sidebar
render it finds the panel list, inserts (or refreshes) the fold header before
it, and reflects the folded state with inline styles. The callback
disconnects before writing and reconnects afterwards, so its own DOM writes
never re-trigger it; every write is idempotent. ctx.effect() releases the
observer, the injected row, and all inline styles when the client fiber is
disposed (HMR safe).
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。