huashu-design
alchaincyf
Huashu Design 3.0 · 在 agent 里打一句话,拿回能交付的设计:网页 / App 原型 / 可编辑 PPTX / 动画 / 信息图 · 六个候选挑三个方向 · 84 种带样张的风格库 · 越用越懂你的外观账本与设计体检 · HTML-native design skill for Claude Code, Codex, Cursor & any agent
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:LiFenrir/dsh-video-preview
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
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.2-alpha.3^22.19 || >=24<video controls playsInline preload="metadata"> inside the right-side document panel: play, pause, seek, and fullscreen./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-preview
git clone https://github.com/LiFenrir/dsh-video-preview.git
dsh plugin add /absolute/path/to/dsh-video-preview
No 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.git
Reload 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/<sessionId>/<path> address, performs the HEAD probe, and only then points the <video> 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 icon
To test a change locally, point dsh plugin add at this directory and reload the Web UI.
MIT. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: video。