Bundle
@code4lala/dsh-plugin-workspace-path
Display the full directory path below each workspace title in the sidebar with line wrapping
- Source
- code4lala
- stars
- 1 stars
- License
- MIT
- Updated
- Updated yesterday
Readme
# @code4lala/dsh-plugin-workspace-path
[](https://www.npmjs.com/package/@code4lala/dsh-plugin-workspace-path)
[](https://www.npmjs.com/package/@deepseek-ai/dsh)
A [DeepSeek Harness (dsh)](https://www.npmjs.com/package/@deepseek-ai/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:
```bash
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`:
```yaml
- 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
Install
dsh plugin --profile web add github:code4lala/dsh-plugin-workspace-path
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install code4lala-dsh-plugin-workspace-path from the hub
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.