简体中文 | English
A VS Code-like workspace panel plugin for DeepSeek Harness (DSH): browse the workspace, search it, and read its git state without leaving the conversation.
It is published on npm as dsh-workspace-ide; every release is built and published by GitHub Actions through npm trusted publishing (OIDC) with a signed provenance statement.
- Files: a lazy tree for the whole workspace with a resizable split and a line-numbered, syntax-highlighted viewer with git change marks in the gutter. Quick open (
Ctrl/Cmd+P), in-file find and replace (Ctrl/Cmd+F/Ctrl/Cmd+H, with case, whole-word and regex modes), multi-tab editing with per-tab drafts and unsaved-change guards, back and forward navigation (Ctrl/Cmd+Alt+←/→), editor zoom, bracket matching, auto-pair, indent guides and line moves, comment toggling (Cmd/Ctrl+/), Markdown preview with a source toggle, image and SVG preview, and large-file and binary guards.Ctrl/Cmd+Ssaves. - Search: full-text workspace search with case, regex and whole-word toggles plus an include filter; hits are grouped per file, highlighted, and jump to the matching line.
- Git: PyCharm-inspired Commit panel with file checkboxes (tracked changes checked by default, untracked files unchecked), click-to-preview colourised unified diffs, per-file/group/batch stage, unstage and add-to-Git actions, selective local commit (
Cmd/Ctrl+Enter) that preserves unselected changes, branch and ahead/behind status, and a commit history with per-commit diffs. Status and log refresh silently while the tab is open and pause when it is hidden; gutter marks refresh after each save. A non-git workspace lists other workspaces for one-click switching. - Font size: a toolbar font-size popover adjusts the interface font size (file tree, tabs, search results, Git panel and dialogs) and the editor base font size independently, with
-/+steppers, direct numeric input, presets, instant preview, persistence across restarts, and one-click reset to defaults.
The panel ships the mainstream VS Code palettes and switches without touching the rest of DSH: Follow DSH theme (the default, live --dsw-alias-* values), Dark+, Light+, One Dark Pro, Dracula, GitHub Dark and Solarized Light.
All screenshots are rendered from a synthetic demo workspace.
From a DSH session, install the published npm package (version-pinnable):
plugin_manager {
action: "install_bundle",
target: "dsh-workspace-ide"
}
Install straight from GitHub (main or a pinned tarball):
plugin_manager { action: "install_bundle", target: "echoVic/dsh-workspace-ide" }
plugin_manager { action: "install_bundle", target: "https://github.com/echoVic/dsh-workspace-ide/archive/refs/tags/v1.8.7.tar.gz" }
For plugin development, install the working directory with an absolute path:
plugin_manager { action: "install_bundle", target: "/absolute/path/to/dsh-workspace-ide" }
The bundle is profile-wide and survives restarts. application: "applied" means it activated immediately; client changes are picked up by DSH's client HMR, and host changes load on the next Host start.
The host half validates workspace roots against the platform's native spelling, so Windows drives and UNC roots work, and win32 backslashes are normalized to POSIX separators. Shortcut hints say Cmd/Ctrl, and typography follows DSH's --dsw-font-family and --ds-font-family-code tokens, so DSH font settings apply to the panel too.
- Host (
lib/index.js,lib/host/*.js) registers ten authenticated fetch routes throughctx.connection.fetch.register; filesystem access is path-checked, and everything is read-only exceptsave(an atomic overwrite of an existing regular file),git-action(local stage/unstage/commit) andping. Git runs throughchild_process.execFilewith bounded output. - Client (
lib/client.js, generated fromsrc/client/byscripts/build-client.mjs) is onewindow.__ModuleLoader__.load(...)module that registers asidebar.panellisticon and the keyedmainpanel, using onlyrequire('react'), the DSH theme tokens and a built-in zh/en dictionary. - Icons come from the open-source Lucide set, vendored as SVG data with no runtime dependency; licenses are in THIRD_PARTY_NOTICES.md and licenses/lucide-LICENSE.txt.
npm ci # dev-only tooling: the TypeScript checker
npm run typecheck # tsc --checkJs, strict, over lib/ + src/client + scripts + tests
npm run typecheck:host # lib/ under noImplicitAny
npm run typecheck:client # client sources under noImplicitAny
node scripts/build-client.mjs # rebuild lib/client.js from src/client/
node scripts/build-client.mjs --check # fail when lib/client.js is stale
node --check lib/client.js
node --test test/host/ # host route unit tests
node test/smoke/client-smoke.mjs # headless client module smoke test
python3 scripts/check-screenshots.py # README screenshots are non-blank rendersTypeScript is only a dev-time checker: sources stay plain JavaScript with JSDoc annotations, and tsc --noEmit --checkJs checks them with strict: true. There is no client bundler, no build step for the host and no runtime dependency. lib/client.js is served directly by the host and watched by DSH's client HMR, so saving a rebuilt copy updates an open Harness page without a restart.
Pushing a v* tag runs .github/workflows/publish.yml: the tag must match package.json, then npm publish runs through GitHub OIDC trusted publishing (no npm token in the repository) and npm records build provenance.

