dsh-input-polish
其他 活跃维护

dsh-input-polish

llyyhh0487/dsh-input-polish

双面插件,在编辑器模型选择器旁新增一键润色按钮,可直接调用已选模型优化当前输入草稿,无需跳转额外页面,快速提升内容质感。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
29 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:llyyhh0487/dsh-input-polish
git clone https://github.com/llyyhh0487/dsh-input-polish.git
git clone git@github.com:llyyhh0487/dsh-input-polish.git
README.md main

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 settings service 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 (a window.__ModuleLoader__.load browser 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

  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