dsh-worktree-tools
Đã xác minh@vibeinging/dsh-worktree-tools · v0.1.0 · MIT
Session-scoped Git Worktree tools for a DSH host implementing worktreeHost
Cài đặt
dsh plugin add @vibeinging/dsh-worktree-tools Xác nhận layer đã áp bằng dsh --profile default --dump-config — xem hướng dẫn cài plugin.
Mã nguồn
Readme
@vibeinging/dsh-worktree-tools
This DSH Profile Bundle contributes worktree_list, worktree_create, worktree_activate, worktree_deactivate, and worktree_remove to every Agent scope. It consumes the session-addressed worktreeHost service instead of importing databases, Git binaries, Electron, or any DeepSeek Harness Desktop App transport directly, so it never touches parent-process capabilities from inside a DSH child.
The Bundle owns tool schemas, presentation, registration, and cleanup. The Host owns authorization: every call is resolved against the bound DSH Session's project, and the user identity comes only from the parent-side binding. Write operations (create, activate, deactivate, remove) additionally pass through the DSH tool approval flow before executing. Activation semantics follow the parent product: only conversations created after activation run inside the worktree, and existing conversations keep their pinned working directory.
Another DSH host can reuse the same tools by providing a compatible worktreeHost service with list, create, activate, deactivate, and remove methods addressed by DSH Session id. With a public Worktree Host provider this Bundle could become portable; today it is an explicit desktop-adapter over the DeepSeek Harness Desktop App product Host.