code4lala/dsh-plugin-workspace-path ↗★ 1

@code4lala/dsh-plugin-workspace-path

Display the full directory path below each workspace title in the sidebar with line wrapping 适合需快速辨认工作区路径的用户,安装后热加载生效

パッケージ
@code4lala/dsh-plugin-workspace-path
互換性
未検証
バージョン
1.0.2
ライセンス
MIT
最終更新
2026/08/25

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:code4lala/dsh-plugin-workspace-path

ドキュメント

README 全文を読む ↗

@code4lala/dsh-plugin-workspace-path

npm version dsh plugin

A DeepSeek Harness (dsh) client plugin that displays the full directory path below each workspace title in the web sidebar, with line wrapping.

侧边栏的每个工作区标题下方显示完整的目录路径,自动换行。

📦 npm 包主页 / npm package:

效果 / Screenshot

效果图 — 侧边栏工作区标题下方显示完整路径

Install

Install into your web profile:

dsh plugin --profile web add @code4lala/dsh-plugin-workspace-path

The plugin declares a dsh.bundle patch that inserts itself into the web plugin roster, so it activates on the next dsh web boot. To activate it in an already-running server without restarting, append to ~/.dsh/profiles/web/cordis.patch.yml:

- insert:
    - id: workspace-path
      name: '@code4lala/dsh-plugin-workspace-path'

The running dsh web server watches this file and hot-loads the plugin.

How it works

  • Host half (lib/index.js): no behavior — everything happens in the browser.
  • Client half (lib/client.js): reads the workspace list from the workspaces client service and injects a wkpath-subtitle element with each workspace's path below its sidebar title, kept in sync through a MutationObserver plus a subscription to the workspace list. Rows are matched to workspaces positionally (sidebar order equals the workspace list's stable order), so workspaces with identical titles each show their own path — never a collision.

Changelog

  • 1.0.2 — Bundle screenshot.png into the package and reference it via the unpkg CDN so the README renders with the screenshot on npmjs.com; add the npm package link and version badge.
  • 1.0.1 — Fix wrong paths when several workspaces share the same title (title-keyed lookup collided; now matched by position). Subtitles also live-update on reorder/rename instead of being written once.
  • 1.0.0 — Initial release.

License

MIT © code4lala