Introduction¶
The DeepSeek Harness (DSH) base only provides file listing and reading channels, lacking write operation capabilities at the filesystem level. The dsh-file-manager plugin completes this set of capabilities for the sidebar file tree. It not only supports downloading and packaging but also implements complete workflows for deletion, restoration, renaming, moving, and creating new folders.
Core Features¶
The plugin primarily provides the following file management capabilities:
- Download & Packaging: Supports single file download, directory ZIP packaging, and multi-select ZIP packaging.
- Deletion & Restoration: Adopts a soft deletion mechanism where files are moved to a sibling
.dsh-trash/directory. Supports restoration, permanent deletion, and moving (restoring to a specified location). - File Operations: Supports renaming, copying, moving, and creating new folders.
- Batch Operations: In multi-select mode, supports batch deletion, download, move, restore, or permanent deletion of selected items.
- Others: Provides a “Clear Trash” function and records audit logs.
Installation and Activation¶
Install via DSH CLI. A restart of DSH is required after installation to load the new bundle.
dsh plugin --profile web add "github:jamesct/dsh-file-manager"
Once installed, the plugin will appear in the “Plugins” list in the sidebar.
Configuration¶
The configuration file is located at <DSH_HOME>/file-manager.yml, or can be modified via the “Plugins” card in the sidebar. All paths must be absolute paths.
- Mode Selection (
mode):paths: Specifies the list of allowed directories for management (default).workspace: Automatically covers all registered workspaces.
- Management Scope (
manage): Configure allowed directories via themanagefield, supporting recursive settings. - Row Display Items (
row_show): Controls the buttons displayed on file rows. By default, onlydownloadis shown. To display the delete button, addtrashto the list. Supportsdownload,trash,mtime,size. - Toolbar (
toolbar_show): Controls the display of toolbar buttons, such as multi-select, new folder, clear trash, rename, etc. - Cross-Workspace (
cross_workspace): Defaults totrue, allowing cross-workspace move/copy; set tofalseto restrict operations to the current workspace. - Auto Cleanup: Configure retention days and check intervals; expired entries are automatically cleaned up by the host.
Architecture & Notes¶
- Host Dependency: The DSH base lacks a deletion channel. This plugin must bring its own host executable (
lib/index.js) to perform write operations. - Restart Requirement: A DSH restart is mandatory for new bundles to take effect.
- Default Behavior: Only the download button is shown by default. To see operations like deletion after an upgrade, you must enable the corresponding items in the configuration.
Summary¶
This plugin implements flexible file management strategies through YAML configuration, suitable for scenarios requiring deep filesystem management within the DSH environment. Project URL: GitHub.