qwerty-k-de/dsh-attach-picker
Adds a picture button to the DSH Web composer that opens the native file dialog for multi-select image attachments.
Closes the small gap left by drag-and-drop and paste: a picture icon in the composer that opens the system file dialog for one or more images, filtered to the host's supported types. Rather than inventing its own upload path, chosen files go through the same draft-image rail that drag-and-drop fills, so they send with the message like any other attachment and nothing downstream needs special handling. Limits come from the host's own imageLimits projection — mediaTypes, maxImagesPerMessage, maxImageBytes — checked locally first with an inline error toast, so an oversized image is refused before it travels.
Install
dsh plugin --profile web add dsh-attach-pickerThe npm line; the README also documents dsh plugin --profile web add github:qwerty-k-de/dsh-attach-picker and notes that restarting dsh web is the reliable path even though a page refresh usually hot-reloads it. There is nothing to configure: the button appears in the composer tool row at slot conversation.input.left. The Node half (lib/index.js) is intentionally empty — all the logic is browser-side, which is why the package has no runtime dependencies.
Compatibility
DSH Web with the standard conversation and slots client services, and both 0.1.x and 0.2.x work — 0.1.1 onwards targets the 0.2 attachment API. It works across both composer generations from one build by probing the available pipeline at render time, which is the detail that matters when a harness upgrade lands: it prefers conversation.createDrafts(sessionId, files) then inputActions.addAttachments(ids) on 0.2, falls back to the parent composer entry's injected addFiles(files, directories) only when that verb pair is absent, and uses the legacy createDraftImages plus addImages pair on 0.1. The outer element carries data-dsh-attach-picker="<build>:<pipeline>" so the active path is identifiable from the DOM.
Details
- Repo: qwerty-k-de/dsh-attach-picker
- Category: Web UI Enhancements
- Stars: 0
- Version: 0.1.2 (npm)
Alternatives
pureexe/dsh-authen-notice · ChurSu/dsh-temperature-picker · tower1229/dsh-thinkbar