OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Arrosam/dsh-better-workspace-file-manager
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A file manager for the DeepSeek Harness (DSH) Web Files tab and the file preview panel. It adds the everyday file operations the shipped tree leaves out — upload, multi-select, download as a ZIP, new folder, delete, drag-to-move, drag-to-chat, and in-place text editing — without modifying the shipped Files tab's DOM.
name (1).ext, never an overwrite.@path chips, or image attachments for PNG/JPEG/WebP/GIF.The plugin contributes a Text editing → Auto-save row to the Plugins settings page. The choice is stored by the DSH Settings service, not in browser storage.
0.2.1-rc.30.2.1-rc.50.2.2-rc.1fs-local / fs-sandbox), which is what Web profiles mount.Open Plugins in the sidebar, find Better Workspace File Manager, and install or enable it. The page adds the package to the current profile and enables its bundle.
Install the package in the profile and add it to the ordered bundle list:
cd ~/.dsh/profiles/web
pnpm add dsh-better-workspace-file-manager
{
"dependencies": {
"dsh-better-workspace-file-manager": "^1.3.0"
},
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
"dsh-better-workspace-file-manager"
]
}
}
}
Restart DSH (or let a live profile recompose) after changing the profile.
| Gesture | Result |
|---|---|
| Click a row | Selects it, then opens or toggles the row as usual |
| ⌘/Ctrl-click | Adds or removes that row from the selection |
| Shift-click | Selects the range from the last anchor |
| Drag from empty tree space, or Alt-drag anywhere | Draws a selection box |
| Right-click a row or empty tree space | Opens the file menu |
| Drag rows onto a folder | Moves them there |
| Drag rows onto the composer | Adds file/folder references or image attachments |
| Escape | Clears the selection, or cancels an active box/drag |
The menu adapts to what was clicked:
Edits are limited to the Session workspace. A preview outside the workspace stays read-only.
DSH 0.2.2 introduced a shared right-click menu (@deepseek-ai/dsh-client-ui-context-menu) and shipped file actions. The plugin detects that service at runtime:
The integration is discovered through the contextMenus service; the plugin does not declare a hard dependency on the 0.2.2-only client packages, so the same build loads on 0.2.1 and 0.2.2.
index.js) registers authenticated Connection Fetch routes under /api/better-workspace-files. Every path resolves through ctx.fs.resolve + ctx.fs.contains, so symlinks that leave the workspace are refused. Moves and deletes act on the entry itself, not on what a symlink points at.client.js) is one prebuilt client module. It reads the shipped Files tree through its stable data-files-* attributes and renders all of its own UI from its own slot entries. It never mutates the shipped tab's rows.POST selection / file-ticket) that returns a short-lived ticket, then a plain GET download?ticket that the browser's download manager can follow. ZIPs are produced by a streaming writer that uses data descriptors and only emits ZIP64 fields when a size or offset needs them.ctx.fs.writeText with replaceIfVersion, so they are atomic, keep the file's permissions, and fail as stale instead of overwriting a concurrent change.All routes are registered through ctx.connection.fetch.register.
| Method | Path | Purpose |
|---|---|---|
POST |
/upload?sessionId&dir&name |
Stream a file into a folder; never overwrites |
POST |
/mkdir |
Create one folder (sessionId, dir, name, optional unique=1) |
POST |
/move |
Move items into a folder (sessionId, dir, repeated path) |
POST |
/delete |
Permanently remove items (sessionId, repeated path) |
POST |
/selection |
Validate a tree selection and return { ticket } |
POST |
/file-ticket |
Return a ticket for one previewed file |
GET |
/download?ticket |
Stream one file or a ZIP of the ticket's items |
GET |
/text?sessionId&path |
Read one text file as { text, version } |
POST |
/save?sessionId&path&version |
Replace a text file while its version is unchanged |
Errors are returned as { error, message }, where error is a stable code (not-found, outside-workspace, exists, stale, too-large, …) that the browser localizes.
There is no build step: index.js and client.js are shipped as-is. Link the checkout into a profile:
cd ~/.dsh/profiles/web
pnpm add link:/absolute/path/to/dsh-better-workspace-file-manager
Then add dsh-better-workspace-file-manager to dsh.profile.bundles and restart DSH. With profile HMR enabled, a client change reloads the browser module; otherwise restart the profile.
Quick syntax check:
node --check index.js
node --check client.js
Locale metadata lives in locale/en.json and locale/zh.json; the in-app dictionaries are inline in client.js.
npm pack --dry-run # inspect the published file list
npm publish --registry=https://registry.npmjs.org
gh release create v1.3.0 --title v1.3.0 --generate-notes
Only index.js, client.js, cordis.patch.yml, locale/*.json, icon.svg, the README, and the LICENSE file are published.
data-files-* attributes. If a future DSH release renames those attributes, the extras go inert and the shipped tab keeps working.node:fs on the Host's process path because the fs service has no streaming byte read, binary write, rename, or removal. This assumes a Host-local backend.MIT © 2026 Arrosin. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: rag、file、files。