DeepSeek Harness Plugin

WSL043/dsh-image-viewer

Stars ★ 4 Downloads (30d) 3,778 Category Vision & Multimodal Added 2026-08-30 npm dsh-image-viewer

Upgrades DSH image viewing with pointer-centered zoom, pan, galleries, downloads, keyboard support, and inline region notes.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-image-viewer

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:WSL043/dsh-image-viewer

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

The unpublished dsh-image-viewer@1.0.0-alpha.1 candidate targets DSH 0.2.2-rc.1 through its public image menu. Scoped RC1 Windows UI acceptance passed; earlier six-core evidence does not qualify this revision. See candidate scope. Stable installation below remains separate.

DSH Image Viewer

A lightweight viewer for zooming, browsing, downloading, and annotating images already shown by DSH.

CI

中文 · Install · Privacy

Candidate scope

Normal image clicks, previews, original-file drag/drop and ordinary image actions remain with official DSH. Right-click an image in a conversation and choose Annotate image to open the plugin. Only that explicit image is opened; the plugin no longer captures document clicks or reconstructs galleries from official DOM. The annotation tool retains zoom/pan and export where needed for marking. Composer thumbnails keep the official preview; RC1 does not expose its image menu there, so the plugin adds no thumbnail hook.

Features

  • Pointer-centered zoom, drag, touch pinch, double-click 100%, fit/original-size controls, keyboard navigation, and multi-image galleries.
  • Shows filenames, dimensions, and scale; large images can reach 100% and stay visible when the window is resized.
  • Original-file downloads show available progress and can be cancelled or retried; switching images or closing the viewer cancels a download.
  • Clear loading and retryable error states; image changes reset gestures and keep annotations separate.
  • Mark image regions and edit notes beside their numbered markers. Enter saves; Shift+Enter adds a line.
  • Closing an annotated native DSH image adds its numbered PNG and notes to the current draft without sending or duplicating them; failures remain retryable.
  • DSH light/dark themes, responsive layout, focus containment, and reduced-motion support.

Install

New DSH-Portable packages starting with 0.9.9 will no longer preinstall community plugins. Install this plugin if wanted; existing plugin installations in older packages are preserved. The 1.x official-desktop portable line also does not preinstall community plugins.

Plugin page (recommended)

  1. Check the target DSH, profile, actual version resolved by latest, and its peer requirements before opening Plugins → Add plugin.
  2. Paste this line into Package name or address, then select Install:
dsh-image-viewer@latest
  1. Follow the result shown on the page; refresh or restart only when requested.

See the stable maintenance branch for the stable support window and stable AGENTS.md for installation protections. The candidate peer range does not replace them.

Stable maintenance checks upstream every hour. Compatibility patches publish automatically to npm and GitHub Releases after acceptance; failures block publication and report an error. This process does not publish or widen support for this branch's candidate.

Terminal (optional)

For official DSH Desktop, install its bundled command through Manage dsh Command…; after initialization, fully quit the app before using --profile desktop. DSH-Portable 0.x and the Web profile use --profile web.

dsh plugin --profile desktop add dsh-image-viewer@latest
dsh plugin --profile web add dsh-image-viewer@latest

After a terminal operation, restart the corresponding profile as prompted by the host.

Update and uninstall

Update or uninstall from the Plugins page. If no update action is offered, enter the target package@version under Add plugin. To uninstall from a terminal, run dsh plugin --profile web remove dsh-image-viewer; for official Desktop, quit the app and use the desktop profile as described above.

Uninstalling removes the annotation action and tool; the official viewer remains available and does not delete conversations or images.

Privacy

The plugin reads only image URLs already rendered by DSH; it does not call a model or read provider credentials. Annotations use DSH's attachment and draft APIs, leaving the decision to send with the user. Reopening an image in the current page may retain its note; this does not mean it was sent or permanently stored.

Support

Use the bug report form with the plugin/DSH versions, operating system, image location, and failed action. Do not include private images, credentials, or full session logs. Report security issues privately through GitHub Security Advisories.

License and quality

MIT. Candidate validation and remaining limits are recorded in the unreleased scope.

Developers

When calling nativeImageViewer.open(), download.onInvoke receives { item, src, signal, onProgress }. Pass signal to the download request and report bytes with onProgress({ loaded, total }); omit total when the size is unknown. Custom transfers must honor signal to support cancellation. Download authorization and original-file checks remain the image provider's responsibility.

简体中文 · Awesome DSH listing · Chat Manager

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.