返回目录
文件与数据 插件

dsh-workspace-mover

ZY-WANG-0304/dsh-workspace-mover

Move DeepSeek Harness sessions between workspaces, by menu or drag and drop.

Stars
0
Forks
0
Issues
0
更新
7 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:ZY-WANG-0304/dsh-workspace-mover

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-workspace-mover

test

Move DSH sessions between workspaces — from the session row menu, or by dragging the row onto another workspace group in the sidebar.

  • ⋯ on a session row → Move to workspace → pick a workspace (or leave every workspace).
  • Or drag the row onto another workspace's group and drop it; drag onto the Ungrouped header to move it out.
  • A drag chip names the target while you hover it; a toast confirms the move.

Membership only: session logs, files and any running work are untouched. The sidebar repaints from DSH's own workspace/follow stream.

Install

Published as a DSH bundle.

  • Desktop app: Plugins → Add plugin → dsh-workspace-mover.
  • A CLI profile: dsh plugin --profile <name> add dsh-workspace-mover.

Restart the Host once after installing so the Host half installs its registry wrappers (the Client half reloads with the page).

How it works (and its one caveat)

DSH binds a session's workspace membership to the immutable SessionHeader.cwd, and has no API for reassigning an existing session. This plugin keeps a small durable map ($DSH_HOME/storages/workspace-mover.json) for moves whose cwd differs from the target directory, and wraps two internal registry seams so those moves survive reads, writes, restarts and forking. Moves into a workspace that already owns the session's directory need no map entry at all.

The wrapped seams are internal, not public API: on a DSH release that changes their shape the plugin logs why and degrades (falls back to native validation) instead of half-applying a move. Uninstalling needs a Host restart to drop the wrappers; after that, only cross-directory moves revert to Ungrouped.

See docs/DETAIL.md for the data model, failure handling and the UI mapping onto DSH's design system.

Tests

No DSH runtime needed — both halves are exercised against stand-ins:

node test/host.test.mjs     # fake registry + fake web server
node test/client.test.mjs   # stub module loader, stub React, fake DOM

CI runs both on Node 20 and 22 (workflow).

Licence

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类文件与数据
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: drag-and-drop。