dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DSH 插件:在右侧文档预览面板直接播放工作区视频,支持 HTTP Range 拖动进度 / Native video playback in DeepSeek Harness's document preview panel
Play workspace videos directly in DeepSeek Harness's right-side context / document preview panel. Instead of showing "unsupported file type", the panel renders a native video player with working seeking, including files larger than the 32 MiB RPC preview read limit.
@lifenrir/dsh-video-preview>= 0.2.1-rc.2^22.19 || >=24/api/dsh-video-preview/stream that implements HTTP Range (206 / 416), so seeking is not limited by the RPC preview cap.ctx.fs.readByteRange; a HEAD probe validates the path, MIME type, and workspace permission before the browser issues its GET.415.--dsw-alias-* design tokens.Extension · Content-Type .mp4, .m4v · video/mp4 .mov · video/quicktime .webm · video/webm .ogv, .ogg · video/ogg .mkv · video/x-matroska
Container recognition does not imply codec support. The browser still has to decode the stream:
.mov often contains ProRes, and .mkv often contains H.265/AC-3 or other codecs browsers do not ship decoders for. When decoding fails the panel shows "This browser cannot play this video format" with a Retry button.dsh plugin add @lifenrir/dsh-video-previewgit clone https://github.com/LiFenrir/dsh-video-preview.git
dsh plugin add /absolute/path/to/dsh-video-previewNo build step is required: the Host half is the ESM entry index.js, and the browser half is client.js, loaded through window.__ModuleLoader__.
dsh plugin add git+https://github.com/LiFenrir/dsh-video-preview.gitReload the Web UI (or restart the profile) after adding and enabling the plugin.
index.js registers the streaming route on the authenticated connection layer via ctx.connection.fetch.register.workspaceFileScope lookup, then resolves and stats the requested path with ctx.fs, which keeps sandbox rules in force.client.js registers a document-preview definition for the supported extensions and the panel component. It parses the dsh-resource://file/session// address, performs the HEAD probe, and only then points the `` element at the stream URL.ctx.fs sandbox.Cache-Control: private, no-store and X-Content-Type-Options: nosniff..mp4 file from the Files tab.If the panel reports a load failure, check that the file exists, lies inside the current session workspace, and has a supported extension. If it reports an unsupported format, the container may be recognized but the codec is not decodable by the browser.
This package has no build step and no runtime dependencies. The source files are the shipped files:
index.js Host half (stream route)
client.js Browser half (document preview + player)
cordis.patch.yml Bundle manifest
locale/{en,zh}.json Display metadata
icon.svg Plugin iconTo test a change locally, point dsh plugin add at this directory and reload the Web UI.
MIT. See LICENSE.