Skip to content

Releases: panando/dsh-prompt-optimizer

v1.0.2 — fix peer range excluding harness prereleases

Choose a tag to compare

@panando panando released this 05 Oct 08:14

Fixes a peer-dependency range that silently excluded published DSH harness
prereleases, which made npm install fail with ERESOLVE for users on those
builds.

The problem

The peer range was:

>=0.2.0-rc.1 <0.3.0

node-semver only lets a prerelease version satisfy a range if some comparator
in that range sits on the version's exact major.minor.patch tuple and itself
carries a prerelease tag
. This range has only >=0.2.0-rc.1, which sits on the
0.2.0 tuple. Every other prerelease was therefore silently dropped — including
two versions that are actually published today:

  • 0.1.7-rc.2
  • 0.2.1-alpha.1 (the current alpha dist-tag)

Those users hit ERESOLVE and had to work around it by hand.

The fix

All four @deepseek-ai/* peer entries now enumerate every published harness
build in the supported line:

0.1.5-alpha.1 || 0.1.5-alpha.2 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 ||
0.1.6-alpha.1 || 0.1.6-alpha.2 || 0.1.7-alpha.1 || 0.1.7-alpha.2 ||
0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1

This is the same convention @panando/dsh-pua uses. A regression test asserts
the range keeps covering every published build, so this cannot silently return.

Install

dsh plugin --profile web add @panando/dsh-prompt-optimizer

See the v1.0.1 release notes for the full feature list and the v1.0.0
web-boot crash note.

v1.0.1 — @panando/dsh-prompt-optimizer (web-boot crash fix)

Choose a tag to compare

@panando panando released this 05 Oct 07:12

One button prompt optimizer with configurable strategy — for the DeepSeek Harness composer.

⚠️ Fixes a web-boot crash in v1.0.0

Do not install v1.0.0 — it crashes DSH on every start. Use v1.0.1 (this release) or later.

In v1.0.0 the client bundle declared id: "dsh-prompt-optimizer" while the package is
@panando/dsh-prompt-optimizer. DSH keys its client-module manifest by the package
specifier, so the mismatched id failed every web boot:

client-modules: duplicate factory registration for "dsh-prompt-optimizer"
(bundle executed twice without invalidate?)
web boot: 1 entry did not activate — @panando/dsh-prompt-optimizer: import failed

Fix

  • The bundle id is now derived from package.json#name; the build fails if the
    generated id ever diverges from the package name.
  • A test asserts the invariant, so a future rename or scope change cannot
    silently reintroduce the crash.

Features

  • One-click optimization — a single button beside the composer rewrites the current draft.
  • Editable prompt template — the Prompt half and the Few-shot half are independently editable, each with its own restore-default action, inside one collapsible 优化提示词模板 block.
  • Custom few-shot examples — up to 16 rewrite-style examples (original→optimized pairs, or task hint→instruction pairs), each enable/disable/editable/deletable.
  • Model strategy — follow the session model by default, or pin any provider/model from the DSH catalog.
  • Configurable reasoning effort — Fastest (no reasoning) by default, up to Max.
  • Interruptible + undo/redo — click again to cancel; Ctrl+Z / Ctrl+Y to step through generated drafts.
  • Privacy — sends only the composer draft and the configured local prompt to the DSH model route. No third-party optimization service.

Install

# npm
dsh plugin --profile web add @panando/dsh-prompt-optimizer

# or GitHub
dsh plugin --profile web add github:panando/dsh-prompt-optimizer

Requires DeepSeek Harness 0.2.x (0.2.0-rc.1 or newer). Restart DSH after install.

Acknowledgements

This project is a fork of dsh-prompt-for-me
by the dsh-prompt-for-me contributors (MIT). Thanks to the original authors for
the plugin architecture, the host/client split, the model-catalog and settings
services, and the streaming composer integration.

The default prompt template is derived from Trae and adapted for this plugin.
This attribution does not imply endorsement or affiliation.

License

MIT

v1.0.0 — @panando/dsh-prompt-optimizer (BROKEN: crashes DSH boot, use v1.0.1)

Choose a tag to compare

@panando panando released this 05 Oct 05:35

Do not install this release. It crashes DSH on every start with client-modules: duplicate factory registration for "dsh-prompt-optimizer" because the client bundle declared a short id that did not match the scoped package name. Fixed in v1.0.1.

Install @panando/dsh-prompt-optimizer from npm (v1.0.1+) or the v1.0.1 release instead.