dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Scratch pad: one shared floating text surface in the middle of the screen, opened by other plugins through the client service scratchpad.
A DeepSeek Harness (DSH) plugin: one shared floating text surface in the middle of the screen that any plugin can open, for reading big text or editing it in place.
There is no UI of its own to visit. Other plugins open the pad through the
client service scratchpad:
// consumer client half, inject: ['scratchpad', 'slots', …]
ctx.scratchpad.open({
title: 'Section preview', // optional header text
text: bigText, // required string
editable: true, // false (default): read-only viewer
onSave: (text) => { … }, // edit mode: the ONLY channel back
})
readOnly, never disabled).onSave(editedText) and closes. A
backdrop click does not close (no stray-click data loss). Editable
without onSave is allowed: a draft pad, where Close discards.Escape closes (discarding edits in edit mode); Ctrl/Cmd+Enter saves.open replaces whatever the pad shows (one pad per tab).text must be a string of at most 2 MB; onSave without
editable: true throws. Fail loud at the door.onSave keeps the pad open
with the error surfaced in the footer.Requires a DeepSeek Harness checkout and a profile, here web. The plugin
has no dependencies:
mkdir -p ~/dsh-plugins && cd ~/dsh-plugins
git clone https://github.com/joao-paulo-santos/dsh-scratchpad.git
# from the harness checkout
pnpm dsh plugin --profile web add ~/dsh-plugins/dsh-scratchpad
# verify the profile still composes
pnpm dsh --profile web --dump-config
Restart the harness. Plugins that inject the scratchpad service can now
open the pad.
mode: 'diff' pads (optional; without it a diff pad degrades to a plain before/after view)