ViewWay/dsh-prompt-optimizer--packages-api-prompt-optimizer ↗★ 2
@yimiliya/dsh-api-prompt-optimizer
Typert Remote controller for dsh-prompt-optimizer
설치
검증된 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-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.