READMESource: main@551e8463
dsh-input-polish
A DeepSeek Harness (DSH) dual-face plugin: a sparkles button beside the composer model selector that polishes the current draft with the selected model, plus a settings section for style and detail (persisted across restarts).
English | 中文
Features
- Polish button: a sparkles icon at the right end of the composer tool row (just left of the model selector). Clicking it rewrites the current draft with the selected model and writes the result back into the composer.
- Settings section: Settings → "输入优化" lets you configure:
- Style: concise / detailed / formal / casual
- Detail: 3 points / 5 points / expand
- Persistence: style and detail are stored via the DSH
settingsservice and survive restarts. - Failure state: a spinner while busy, an alert icon on failure (click to retry).
Install
1. Build
npm install
npm run build
This produces:
lib/index.js— the host half (Cordis plugin)lib/client.js— the client half (awindow.__ModuleLoader__.loadbrowser bundle)
2. Install into your profile
dsh plugin --profile web add ../dsh-input-polish
Or manually add dsh-input-polish to your profile's dsh.profile bundles.
3. Restart DSH
The ✨ button appears beside the model selector, and the settings panel gains an "输入优化" section.
Develop
npm run typecheck # type check
npm run build # tsc for the host + esbuild for the client
Publish to GitHub
- Create a GitHub repository named
dsh-input-polish. - Replace
<your-username>inpackage.json(repository/homepage/bugs). - Push the code.
- Add the
dsh-plugintopic on the repository page so it appears at https://github.com/topics/dsh-plugin. - (Optional) publish to npm:
npm publish.
License
MIT
No comments yet. Be the first to write one.