DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

code4lala /

code4lala/dsh-plugin-workspace-path

Verified

可用于在 DSH Web 侧边栏快速查看每个工作区的完整目录路径,减少同名工作区混淆。它作为 DSH 客户端插件安装到 Web profile,在标题下方注入路径副标题并自动换行,支持热加载、位置匹配和重命名或排序后实时同步。

★ 1 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHubProject homepage
READMESource: main@29cb9c0c

@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: https://www.npmjs.com/package/@code4lala/dsh-plugin-workspace-path

效果 / 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

—/ 5

No ratings yet

Verified DSH bundle

Commit 29cb9c0cf5b6

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout