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

@yimiliya/dsh-api-prompt-optimizer

Typert Remote controller for dsh-prompt-optimizer

包名
@yimiliya/dsh-api-prompt-optimizer
兼容性
待验证
Harness 依赖范围
>=0.2.1-rc.5 <0.3.0
Cordis 依赖范围
4.0.5
版本
0.4.2
许可证
Apache-2.0
最近更新
2026年11月8日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 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