ViewWay/dsh-prompt-optimizer--packages-api-prompt-optimizer ↗★ 2

@yimiliya/dsh-api-prompt-optimizer

Typert Remote controller for dsh-prompt-optimizer

Package
@yimiliya/dsh-api-prompt-optimizer
Compatibility
Unverified
Harness peer range
>=0.2.1-rc.5 <0.3.0
Cordis peer range
4.0.5
Version
0.4.2
License
Apache-2.0
Last updated
Nov 8, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

@yimiliya/dsh-api-prompt-optimizer

Typert remote controller for the dsh-prompt-optimizer plugin family: the API layer that lets the dsh web client call the prompt-optimizer host service through the harness API gateway.

Users should not install this package directly — install the bundle instead: dsh plugin --profile web add @yimiliya/dsh-prompt-optimizer-bundle See the project README for full documentation (English / 简体中文).

What it provides

  • The promptOptimizer remote method table (listPrompts, optimize, recommendRoles, library and verify endpoints) shared by host and client
  • Generated Typert descriptors under src/generated/ (./typert for the host, ./remote for the client) that keep request/response shapes in lockstep across the gateway
  • Shared result types re-exported from @yimiliya/dsh-prompt-optimizer/types

Exports

EntryPurpose
.Remote controller
./typertHost-side Typert descriptors
./remoteClient-side typed remote client
./typesShared request/response types

Development

pnpm install
pnpm run check   # at the repo root: lint + typecheck + build + test

src/generated/ is generated output — do not hand-edit (excluded from lint). Tests live in packages/api-prompt-optimizer/tests/ and run in the node vitest project.

Compatibility

Baseline @deepseek-ai/dsh-* 0.2.1-rc.5, @deepseek-ai/cordis 4.0.5, zod pinned at 4.6.7, engines.dsh >=0.2.1-rc.5 <0.3.0. See docs/compatibility.md.

License

Apache-2.0