rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Wisdoverse/dsh-inline-media-viewer-plugin
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Inline image, video, and audio previews for DeepSeek Harness Web.
English · 简体中文
🚀 Quick install
dsh plugin --profile web add @wisdoverse/dsh-inline-media-viewer@1.0.15
Restart the Web profile after installation. See compatibility and installation details.
🚀 Installation · ✨ Features · ⚙️ Configuration · 🐛 Feedback
https://…/view?filename=frame.png → <img>
exports/demo.mp4 → <video controls>
audio/sound.mp3 → <audio controls>
| Icon | Feature | Description |
|---|---|---|
| 🖼️ | Inline rendering | Displays images, videos, and audio directly below the chat turn that mentions them. |
| 📁 | Workspace-safe reads | Resolves local paths with realpath and rejects traversal, out-of-workspace paths, and symlink escapes. |
| 🔌 | Optional ComfyUI proxy | Fetches recognized ComfyUI media URLs server-side from the configured origin, including for remote users and HTTPS pages. |
| 📏 | Bounded transfers | Limits each file or response to 48 MiB and remote requests to 20 seconds. |
| ⚙️ | User controls | Provides auto-render, per-turn item limit, media height, and optional ComfyUI origin settings. |
[!NOTE] ComfyUI is not required. Workspace files and regular HTTP(S) media URLs work when ComfyUI is not installed or running; its proxy is activated only for recognized ComfyUI URLs.
| Type | Extensions |
|---|---|
| Images | png, jpg, jpeg, webp, gif, avif, bmp, svg |
| Video | mp4, webm, mov, m4v, mkv, avi, ogv |
| Audio | mp3, wav, m4a, aac, ogg, oga, flac, opus |
The browser must support the media codec to play its file.
Version 1.0.15 supports DSH v0.2.2-rc.1 (latest) and v0.2.2-rc.3 (next).
We checked these npm tags on 2026-11-18.
DSH v0.2.2 requires Node.js 24.9.0 or later. See the DSH v0.2.2-rc.3 release.
The supported DSH range is >=0.1.7-rc.2 <=0.2.2-rc.3.
All 28 Web and API checks passed in Microsoft Edge on both v0.2.2-rc.1 and v0.2.2-rc.3. PNG and SVG images decoded. MP4 and WebM videos played. WAV audio played. Checks covered workspace files, direct HTTP URLs, and the ComfyUI proxy.
ComfyUI responses came from a local HTTP protocol fixture. We did not run ComfyUI generation workflows.
Settings persistence, default reset, item and height limits, auto-render, origin changes, image enlargement, and Escape dismissal passed. The browser reported no errors during these checks. The host returned HTTP 401 for unauthenticated reads and rejected out-of-workspace paths, redirects, oversized responses, and non-media MIME types.
We did not check other browsers or media codecs.
Install and activate the bundle in your Web profile:
dsh plugin --profile web add @wisdoverse/dsh-inline-media-viewer@1.0.15
Restart the Web profile after installation.
Clone the plugin into a location available to your Web profile:
git clone https://github.com/Wisdoverse/dsh-inline-media-viewer-plugin.git \
/path/to/local-plugins/dsh-inline-media-viewer
Add the bundle to profiles/web/package.json:
{
"dependencies": {
"@wisdoverse/dsh-inline-media-viewer": "link:/path/to/local-plugins/dsh-inline-media-viewer"
},
"dsh": {
"profile": {
"bundles": ["…", "@wisdoverse/dsh-inline-media-viewer"]
}
}
}
Rebuild or restart the Web profile.
The plugin mounts its host API routes, client projection, and settings section
through cordis.patch.yml.
Open Settings → 媒体预览 / Media preview.
The navigation label and all setting copy follow DSH's active UI language and switch live between English and Chinese.
| Setting | Default | Allowed values |
|---|---|---|
| Auto-render detected media | On | On / off |
| Maximum items per turn | 12 |
1–30 |
| Maximum media height | 380 px |
160–1200 px |
| ComfyUI origin (optional) | Empty | http(s)://host[:port] |
Settings are stored in the active DSH profile configuration. DSH imports the
previous inline-media section from settings.yaml when upgrading. The client
follows the DSH settings form's writable flag. DSH controls settings
authorization. Authenticated browser owners can persist these four non-secret
settings through trusted remote connections.
http://127.0.0.1:8188.http://host[:port], https://host[:port], and bare
host[:port] (http is assumed).8188 for HTTP and 443 for HTTPS.Local aliases (127.0.0.1:8188 and localhost:8188) and the configured origin
are recognized as ComfyUI sources. A non-empty invalid address fails explicitly
instead of silently falling back to another target.
The plugin is designed as a local trust helper, not a general-purpose file or network proxy:
data: URLs rather than filesystem paths.See SECURITY.md for the complete trust model and known limitations.
| Command | Purpose |
|---|---|
node test.mjs |
Run the dependency-free unit tests directly. |
node test.mjs --host |
Run the host registration check after installing peer dependencies. |
npm test |
Run the same unit test suite through npm. |
npm run lint |
Syntax-check the host modules and test file. |
| Path | Responsibility |
|---|---|
index.js |
Host API routes, ComfyUI proxy, and settings registration. |
lib.js |
Dependency-free helpers, including session directory resolution. |
client/client.js |
Turn projection, media renderer, and settings UI. |
cordis.patch.yml |
Bundle mounting and integration points. |
test.mjs |
Helper and client checks, plus optional host checks. |
The running Web profile serves a bundled copy. Rebuild or restart it after changing the source files.
Released under the MIT License.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。