rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:adithyanraj03/dsh-video-gen-plugin
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Video generation for DeepSeek Harness: text-to-video, image-to-video from a start frame, a clip that plays in the conversation, live progress, and cancel — against your own OpenAI-style asynchronous video API. No vendor is baked in; you add endpoints in Settings.
| Surface | Behaviour |
|---|---|
generate_video |
Queues a clip. prompt is required; seconds, size, orientation, fps, seed, enhance, negative_prompt and model are optional. |
| Start frame | Pass image_url, source_attachment_id (an image already in the chat), or source_path (a file in the session workspace). That picture becomes the clip's first frame. |
check_video |
One job by id, or the recent list. Also adopts a job id this host never saw by asking the server. |
cancel_video |
Stops a queued or running render so the GPU frees up. |
| Tool card | The finished MP4 plays inline with native controls and seeks via Range requests; while rendering, the card shows a "being made" sheet — ripples, plain-words stage, percent, and time — with a cancel button, and ripples the first frame in when the clip is ready. |


Long renders do not hold the conversation: generate_video waits for waitGraceMs (default 2 minutes) and then returns the job id. Use wait: "until_done" to block for the whole render, or wait: "none" to return immediately.
The plugin ships with no endpoint configured. That is deliberate: it is published for anyone, so the first thing you see is the settings card, not a request to a host you never chose.
@deepseek-ai/dsh-* peer generation 0.1.7).dsh plugin --profile web add dsh-video-gen-plugin
dsh --profile web
That resolves through npm. To pin the plugin to one release instead, install its tarball — every release carries plugin.tgz:
cd C:\Users\<you>\.dsh\profiles\web
pnpm add https://github.com/adithyanraj03/dsh-video-gen-plugin/releases/latest/download/plugin.tgz
Either way the package must end up in both dependencies and dsh.profile.bundles of that profile's package.json, and the host has to restart for the tools and routes to register:
"dsh": { "profile": { "bundles": ["dsh-video-gen-plugin"] } }
Install the name
dsh-video-gen-plugin, notdsh-video-gen: the latter is a different plugin (Yang-wudi's DashScope/Veo/Sora tool) and unrelated to this one.
From a local checkout (what this repo's own development uses):
pnpm install
pnpm run build
Then link it into a profile and add it to that profile's bundles:
# C:\Users\<you>\.dsh\profiles\web\package.json
# "dependencies": { "dsh-video-gen-plugin": "link:B:/Research/dsh-video-gen" }
# "dsh": { "profile": { "bundles": ["dsh-video-gen-plugin", ...] } }
pnpm install --dir C:\Users\<you>\.dsh\profiles\web
In the desktop app — Settings → Plugins → Add plugin, then paste the repository address (https://github.com/adithyanraj03/dsh-video-gen-plugin). Installed plugins do not update themselves yet: uninstall and install again to upgrade.
A profile must load exactly one copy. Installing the package while the link row (or a tarball row) is still there boots the plugin twice.
Open Settings → Plugins → Video generation (the card also appears on this plugin's own page in the plugin manager). Then:
https://your-host/v1.VIDEO_GEN_KEY_<ENDPOINT> by default); it never enters the settings JSON, the page state after saving, or any log. Point Credential name at a credential you already store (for example MY_VIDEO_KEY) to reuse it.GET /models on that endpoint with the key and puts the ids in the model picker. If your server does not expose /models, type the model id by hand; the probe then says so instead of failing silently.Every field is per endpoint, and the endpoint can override the global defaults (seconds, size, fps, orientation, prompt enhancer).
| Option | Default | Meaning |
|---|---|---|
connections |
[] |
Endpoint rows: id, label, base URL, model, credential name, per-endpoint defaults. |
activeConnection |
empty | Endpoint tool calls use; empty means the first row. |
defaultSeconds / defaultSize / defaultFps |
5 / 720p / 24 |
Used when the call omits them. |
defaultEnhance |
false |
Server-side prompt enhancer before rendering (adds 1–2 minutes). |
waitGraceMs |
120000 |
How long generate_video holds the turn. |
jobTimeoutMs |
3600000 |
Overall budget per job before it is abandoned. |
saveToWorkspace / workspaceFolder |
true / videos |
Also copy finished clips into the session workspace. |
videosDir |
empty | Clip directory override; empty keeps ~/.dsh/plugins/video-gen/videos. |
toolNameSet |
generic |
generic registers generate_video / check_video / cancel_video; prefixed registers videogen_generate_video / videogen_check_video / videogen_cancel_video. |
toolNameSet exists because tool names are global across plugins. The default verbs deliberately avoid video_generate, which dsh-plugin-subscriptions already registers for its Grok video tool — with both installed, claiming that name aborts the boot. If another plugin ever owns one of these names, the boot fails with tool "<name>" is already registered; switching toolNameSet to prefixed and restarting fixes that without uninstalling anything.
A config-only setup also works without the card: set baseUrl, model, and apiKeyRef in the plugin's cordis.patch.yml row. The card then shows that endpoint as Configured endpoint and can still take over.
One endpoint per row, all calls bearer-authenticated:
| Call | Purpose |
|---|---|
POST /videos |
Submit. JSON body, or multipart with the start frame in input_reference (PNG/JPEG/WebP, one image, ≤ 20 MB). |
GET /videos/{id} |
Poll: status (queued, in_progress, completed, failed, others are tolerated), progress, stage, queue_position, error.code. |
GET /videos/{id}/content |
MP4 bytes; ?variant=thumbnail for the middle-frame JPEG. |
DELETE /videos/{id} |
Cancel. |
GET /models |
Model ids for the settings probe. |
Fields sent on submit: model, prompt, seconds (as a string), size (WxH), orientation, fps, seed, enhance, negative_prompt, input_reference.
status: queued.maxVideoBytes), written atomically, and the thumbnail is fetched.jobs.json next to the clips (last 50 by default).Served same-origin by the plugin, gated by the harness connection trust decision:
| Route | Purpose |
|---|---|
/plugins/dsh-video-gen-plugin/video?job=<id> |
MP4 stream, Range/ETag/304 aware. |
/plugins/dsh-video-gen-plugin/thumb?job=<id> |
Stored middle-frame JPEG (poster). |
/plugins/dsh-video-gen-plugin/jobs |
Recent job state the tool card polls while rendering. |
/plugins/dsh-video-gen-plugin/cancel |
POST { id } to stop a job. |
/plugins/dsh-video-gen-plugin/models |
POST { baseUrl, apiKeyRef, keyValue? } — probe one endpoint and list its models. |
/plugins/dsh-video-gen-plugin/credential |
GET ?ref=NAME describes a key; POST { ref, value } stores it (blank removes). |
/plugins/dsh-video-gen-plugin/test |
POST probe of the active endpoint. |
/plugins/dsh-video-gen-plugin/settings-health |
Which settings generation the host serves. |
pnpm run typecheck # tsc --noEmit
pnpm run build # clean lib/, ts scoped to lib/types, tsdown host + client bundles
pnpm run test # vitest: 146 cases
pnpm run test:package
pnpm run pack:check
Layout: src/*.ts is the host fiber (index.ts registers the tools and routes), src/client/ is the browser bundle (the settings card, the tool result card, and the dsh-video-result conversation node), tests/ covers the pure parts and the HTTP surfaces. lib/index.js and lib/client.js are build outputs and are not committed. The icon is artwork from the image-gen tool, framed and masked by the make_icon pipeline into assets/icon.png (a deterministic fallback exists in scripts/make-icon.py).
WxH is honoured, and orientation flips it.size picks the box orientation from the picture's aspect ratio.image_url is fetched by the host, so an authenticated or local-only URL will not work — use source_attachment_id or source_path instead.dsh web can both load this plugin and share one clip directory. Each keeps its own jobs.json, so they used to overwrite each other's history; the history is now written merge-safe, and the clip routes find a file by its job-id suffix when a record is missing. Point videosDir at a separate folder per host when you run both anyway.| dsh-video-gen | DeepSeek Harness | Notes |
|---|---|---|
| 0.2.2 | 0.1.7-rc.2 | The card stops assuming one vendor's engine: the stage matcher reads any engine name, so a server this plugin has never seen still resolves "Starting the video engine", "Loading the models", "Generating the frames". The README gains the banner, the badge row and a GIF of the reveal. |
| 0.2.1 | 0.1.7-rc.2 | The sheet now also renders during the generate_video wait grace, tracking the real job through the host's own selection rule (prompt match, else a single active job), so percent and stage move instead of freezing at 0%; the water/ripples/words actually draw, the words follow every poll (they live in the sheet texture), and a progress log under the sheet keeps one line per distinct engine answer; a settled generate result is promoted to a session-located chat row (kind dsh-video-result) that appears while the turn is still running and survives Tool-process folding; clip history is written merge-safe and the clip routes fall back to the job id's file suffix, so a restart or a second host sharing the folder no longer leaves old clips unplayable. |
| 0.2.0 | 0.1.7-rc.2 | The "being made" sheet, first-frame reveal, and cancel button in the render card; check_video with one job shows the same card; createdAt (epoch ms) on the tool output. |
| 0.1.0 | 0.1.7-rc.2 | Settings card renders on plugins.bundle.config; the legacy settings.plugin.item seat is kept for hosts at or below 0.1.5. Schema uses the 0.1.7 volatile form with the installSection relay as fallback. |
Apache-2.0. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness、openai-compatible。