perrylink/dsh-draw

Unified static image generation routing: single image_generate tool + standard parameters, configuration-driven OpenAI compatible engine routing (OpenAI Images, CogView and any compatible endpoint) with health-aware fallback, persistent attachment results in workspace, accounting by session quota, in-conversation result card, API key saved as credential reference

dsh-draw gives DeepSeek Harness one unified image_generate tool with standard parameters (prompt/size/count/quality/style/engine) translated per engine. A config-driven engine chain (OpenAI Images, Zhipu CogView, or any OpenAI-compatible endpoint) is walked top-down with health-aware fallback: consecutive failures push an engine into cooldown and the next healthy engine serves the call. Generated images are saved as content-addressed workspace attachments and returned as canonical file references; per-session caps on generation calls and image bytes are folded from the durable session log and enforced before engine spend and before storage. Engine API keys are environment-variable names resolved per call through the official ctx.credentials seam — literal keys are never stored in configuration and never logged. Web surfaces include an in-conversation result card (images, engine, quota, one-click regenerate) and a Plugins settings tab (engine chain, credential status, probes, quota limits).

Other ★ 0 updated 2026-08-21 — untested
View on GitHub ↗

Install

dsh plugin --profile web add dsh-draw

npm dsh-draw 0.2.5 verified 2026-09-04 (repository field → github.com/PerryLink/dsh-draw; README EN primary with zh/es/pt/hi editions). Install: dsh plugin --profile web add dsh-draw (npm channel) or dsh plugin --profile web add "github:PerryLink/dsh-draw" (git channel, latest main). Compat declared for DeepSeek Harness 0.1.2-alpha.5; Node ^22.19.0 || >=24.

Compatibility

DeepSeek Harness 0.1.2-alpha.5 (per README compat table); Node ^22.19.0 || >=24.0.0; any OpenAI-compatible images endpoint — presets for OpenAI Images (gpt-image-1) and Zhipu CogView (cogview-3-flash); host image_generate tool + web result card + Plugins settings tab.

Details

Recent updates

0.2.5 is the current npm latest (verified 2026-09-04); 0.1.2-alpha.5 host adaptation documented in README changelog.

FAQ

Which image engines can it route to?
Any OpenAI-compatible images endpoint — shipped presets cover OpenAI Images (gpt-image-1) and Zhipu CogView (cogview-3-flash); the chain is config-driven with health-aware fallback between engines.
Where are generated images stored?
As durable workspace attachments (content-addressed, under the harness's attachment policy), returned as canonical file references; per-session call and byte quotas are enforced before engine spend and before storage.
How are API keys handled?
Keys are environment-variable names resolved per call through the official ctx.credentials seam; literal keys are never stored in configuration and never logged.

Alternatives

kaixinbaba/dsh-vision-recognizer · good-boy4069/dsh-vision-guard

More plugins in Other

Browse more in Other

Guides for Other plugins