Plugin directory / UI & Skins / dsh-stats-expand
dsh-stats-expand
Verified · install-tested on dsh Triple3h
What it does
DSH Web client plugin: unwrap the session stats bar to full-width, click to toggle truncation (preference persisted). DSH Web 客户端插件:会话底部统计条解除限宽、单行完整铺满,点击可切回官方截断。
Works — verified, early-stage project
DSH Web client plugin: unwrap the session stats bar to full-width, click to toggle truncation (preference persisted). DSH Web 客户端插件:会话底部统计条解除限宽、单行完整铺满,点击可切回官方截断。 It installs cleanly and boots without issues in our testing. It's early-stage but functional.
“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.
README
dsh-stats-expand
A DeepSeek Harness (
dsh) Web client plugin that unwraps the session stats bar to full width — one line, fully visible; click to toggle back to the official truncation (preference persisted).
The official session stats bar (turns/steps · LLM/tool durations · first-token latency & output speed · cache hits · input/output tokens) is capped at --dsh-chat-content-width:748px and truncated to one line with an ellipsis — full content only visible on hover. This plugin lifts the width cap by default so the whole line fills the conversation area.
What you get
- Removes the official width cap: the stats line fills the full conversation width.
- Click the stats bar to toggle between full width / official truncation; the choice is persisted in
localStorage["dsh-stats-expand:expanded"]. - The
StatsLineroot class is a css-module hash (changes across upgrades); it is resolved at runtime from the DSH-injected<style data-plugin-css="@deepseek-ai/dsh-client-ui-conversation/StatsLine.module.css">tag, with a known-hash fallback when parsing fails. - Debug hook:
__dshStatsExpandin DevTools (expanded/toggle()/sync()/rootClass()).
Install (link, development)
npm install # installs esbuild (devDependency, build only)
npm run build # src/client.js → lib/client.js
npm run link-profile
link-profile adds a link: dependency, appends to dsh.profile.bundles, and runs pnpm install in the profile. Then restart dsh web (by convention, no auto-restart).
Directory layout
src/client.js # browser source (hand-written ModuleLoader format; the client logic lives here)
lib/index.js # host-side empty apply (host plugin logic goes here; see dsh-image-read)
lib/client.js # browser build output (npm run build)
package.json # three essentials: dsh.bundle.patch + dsh.client declaration + exports["./client"]
cordis.patch.yml # bundle patch: inserts into the profile plugin tree
build.mjs # build script (esbuild)
link-profile.mjs # link install script
Development notes
- Project-level skill
dsh-plugin-dev: SKILL.md + references/ (manifest three essentials, client half, paste/reference chain, pnpm pitfalls). - Reference implementations:
dsh-text-collapse(complete client plugin template),dsh-image-read(host tool plugin),~/.dsh/profiles/web/node_modules/dsh-chat-timeline(hand-written client bundle). - Authoritative source for DSH internal APIs:
/opt/homebrew/lib/node_modules/@deepseek-ai/dsh/(installed version).
License
MIT
Install
Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:
dsh plugin add dshbase-catalog Then say "install dsh-stats-expand for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.
This plugin is GitHub source (not published to npm) — install it straight from the repo:
Web profile:
dsh plugin --profile web add github:Triple3h/dsh-stats-expand Headless (CLI) profile:
dsh plugin --profile headless add github:Triple3h/dsh-stats-expand Test report
Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.