ViewWay/dsh-prompt-optimizer--packages-api-prompt-optimizer ↗★ 2
@yimiliya/dsh-api-prompt-optimizer
Typert Remote controller for dsh-prompt-optimizer
安裝
此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗
說明文件
閱讀完整 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-bundleSee the project README for full documentation (English / 简体中文).
What it provides
- The
promptOptimizerremote method table (listPrompts,optimize,recommendRoles, library and verify endpoints) shared by host and client - Generated Typert descriptors under
src/generated/(./typertfor the host,./remotefor the client) that keep request/response shapes in lockstep across the gateway - Shared result types re-exported from
@yimiliya/dsh-prompt-optimizer/types
Exports
| Entry | Purpose |
|---|---|
. | Remote controller |
./typert | Host-side Typert descriptors |
./remote | Client-side typed remote client |
./types | Shared 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.