rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:chumoe/dsh-file-manager
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A full workspace file manager that replaces the Workspace Files tab body in the DeepSeek Harness (DSH) right sidebar — browse, preview, edit, create, rename, copy, move, delete, compress, extract, upload, download, and hand files to the chat as real composer chips.
The shipped @deepseek-ai/dsh-client-ui-sidebar-files tab is listing-only. This bundle registers a replacement body and title into the same slot keys at priority: -10, so it wins over the shipped entry only while this bundle is enabled. Disable the bundle and the original tab returns — nothing is patched or deleted.
| Plugin id | file-manager |
| Package | dsh-file-manager |
| Host half | index.js (4 authenticated Fetch routes) |
| Web half | client.js (no Harness client imports) |
| Node | ≥ 22 |
| System tools | zip, unzip, tar (only for compress/extract/download-as-zip) |
Navigation
Enter, the chevron or a breadcrumb enters a folder; ArrowLeft climbs to the parent; a single click only selects and never swaps the listing under the pointer.Ctrl/Cmd and Shift; the action bar appears below the list, so selecting a row never shifts the rows out from under the pointer mid-double-click.treeitem / aria-level / data-fm-path./tmp and /. Any absolute path works, so the panel is not trapped inside one workspace.Preview and edit
.md/.markdown/.mdx files open through the host's own renderer — the same component the chat transcript uses — so headings, lists, tables, task lists, block quotes and highlighted code fences look identical to a message. A toolbar toggle switches any single file back to highlighted source; non-Markdown text keeps the source view. Relative image links resolve against the file's own directory, and a document above 200 KB stays in the source view rather than freezing the panel..html/.htm files open in a frame with sandbox="": styles and images display, while scripts, forms and navigation are denied by the browser itself. Relative src/href/poster references are rewritten to the authenticated download route against the file's own directory; root-absolute paths are left alone. The same toggle flips back to highlighted source, and files above 200 KB stay in source view.Ctrl+S saves, Tab inserts two spaces, an external change raises a conflict prompt instead of silently overwriting, and files above the 2 MB text cap open read-only.<span>, so a native double click would stop at a token boundary — a double click re-selects the whole word and a triple click the whole line across spans, while blank space keeps the browser's own gap selection.File operations
F2), delete (Del), copy / cut / paste (Ctrl+C / X / V).tar.gz; extract ZIP / tar / tar.gz beside the archive. Extraction happens in a temporary directory inside the workspace and is then moved into a unique name, so a hostile archive cannot write outside the target.Context menus
Add to chat with real chips
@ picker creates. The whole draft is rewritten through the draft snapshot ({text, references}), the only route that makes the composer rebuild chip nodes. Existing chips are preserved and their offsets shifted across the edit, so earlier picks survive.Requires DSH >= 0.2.1-rc.5 and Node >= 22.
From a local directory (a checkout or an unpacked release). --profile is required and must come before add:
dsh plugin --profile web add /absolute/path/to/dsh-file-manager
Or through the plugin manager tool, which does the same thing and also records the bundle in the profile:
plugin_manager action: install_bundle target: /absolute/path/to/dsh-file-manager
From GitHub — clone first, then add the checkout; the bundle is not published to a registry, so the clone path is the install path:
git clone https://github.com/chumoe/dsh-file-manager.git
dsh plugin --profile web add "$PWD/dsh-file-manager"
Both forms add the dependency and register the bundle in the profile (dsh.profile.bundles), so a restart is all that is left. dsh plugin without --profile is an error, and the profile has to be the one you actually serve — web for the browser UI.
Restart the Web UI (or let HMR pick it up) and open the right sidebar → Workspace Files. Remove or disable dsh-file-manager in the plugin list to restore the shipped tab.
None. There are no settings to configure.
The panel opens on the session's workspace directory and can be pointed at any other directory from the toolbar's More actions → Jump to menu, which lists the session workspaces, the home directory, Desktop / Downloads / Documents when they exist, and the usual volume roots such as /tmp and /.
Server-side limits:
| Limit | Value |
|---|---|
| JSON request body | 32 MB |
| Text file editable in the panel | 32 MB |
| Directory entries returned | 20000 (reported as truncated) |
| Upload | 8 GB |
These are guard rails against accidentally freezing the panel, not a security boundary — all of them are generous on purpose.
~ expands to the home directory, and the toolbar menu offers jump targets (workspaces, home, Desktop, Downloads, /tmp, /).. and .. components are rejected, backslashes normalised, a leading / stripped), and a path may never leave the root you are looking at.realpath-ed and must stay inside the root.409 conflict.text/plain + nosniff with CSP: sandbox; only known image/PDF/audio/video types are served inline.ctx.connection.fetch.register, so they inherit the Host's login-cookie, Origin and Host checks.dsh-file-manager/
├── index.js # host half: 4 authenticated Fetch routes
├── client.js # web half: panel, editor, highlighter, menus, composer chips
├── cordis.patch.yml # inserts the host plugin row
├── locale/en.json # meta.title / meta.description shown in the plugin list
├── locale/zh.json
├── icon.svg # plugin icon
├── LICENSE
├── README.md
└── package.json
Routes registered by index.js:
| Route | Method | Purpose |
|---|---|---|
/api/fm/op |
POST | list, read, write, mkdir, rename, copy, move, delete, compress, extract, roots |
/api/fm/upload |
POST (streaming) | upload one file into a directory |
/api/fm/download |
GET | stream a file, or zip and stream a directory |
/api/fm/zip |
POST | return a multi-selection as one zip |
The panel's user-facing strings live in the zh and en tables inside client.js; server error messages are English plus a stable code, and the client translates known codes so a Chinese UI never shows a raw English sentence.
There is no build step: client.js is a plain window.__ModuleLoader__.load({ id, factory }) module that imports only react. It must not import Harness client packages, and it styles exclusively with --dsw-alias-* theme tokens (theme variables are defined on body, not :root; dark mode is body[data-ds-dark-theme]).
Checks before a release:
node --check index.js
node --check client.js
node -e "JSON.parse(require('fs').readFileSync('package.json'))"
node -e "JSON.parse(require('fs').readFileSync('locale/en.json'))"
Behaviour is covered by host-route and render-harness scripts (a fake ctx for the four routes; a fake React with per-fiber hooks for the panel). There is no bundled test runner in the repository yet — the scripts are kept outside the package on purpose, because files would otherwise ship them to users.
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。