Skip to content
dsh.fish
Bundle

dsh-input-polish

DeepSeek Harness dual-face plugin: a sparkles button beside the model selector that polishes the current draft with the selected model, plus a settings section for style (concise/detailed/formal/casual) and detail (3/5/expand).

Source
llyyhh0487
License
MIT
Updated
Updated 6 days ago

Readme

# 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](README.md) | 中文

## 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 `settings` service and survive restarts.
- **Failure state**: a spinner while busy, an alert icon on failure (click to retry).

## Install

### 1. Build

```bash
npm install
npm run build
```

This produces:
- `lib/index.js` — the host half (Cordis plugin)
- `lib/client.js` — the client half (a `window.__ModuleLoader__.load` browser bundle)

### 2. Install into your profile

```bash
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

```bash
npm run typecheck   # type check
npm run build       # tsc for the host + esbuild for the client
```

## Publish to GitHub

1. Create a GitHub repository named `dsh-input-polish`.
2. Replace `<your-username>` in `package.json` (`repository`/`homepage`/`bugs`).
3. Push the code.
4. Add the `dsh-plugin` topic on the repository page so it appears at <https://github.com/topics/dsh-plugin>.
5. (Optional) publish to npm: `npm publish`.

## License

MIT

Install

dsh plugin --profile web add github:llyyhh0487/dsh-input-polish

Profile: web

  • This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source