1.1 KiB
1.1 KiB
kind, description
| kind | description |
|---|---|
| upgrade-guide | viewProfilePackage from @deepseek-ai/dsh-plugin-manager/operations requires the manifest fields it prints. |
viewProfilePackage takes the fields it prints
English | 中文
Change
viewProfilePackage(dir, spec, options) from @deepseek-ai/dsh-plugin-manager/operations used to print a fixed field list: name, version, description, and dsh. PackageViewOptions now requires fields, the manifest or registry fields pnpm view prints, so the same lookup reads version lists and per-version peers. Code that calls viewProfilePackage directly no longer type-checks without fields, and a JavaScript caller that omits it runs pnpm view with no fields.
Migration
-
Pass the fields the call used to print:
import { viewProfilePackage } from '@deepseek-ai/dsh-plugin-manager/operations' declare const dir: string, spec: string, timeoutMs: number await viewProfilePackage(dir, spec, { fields: ['name', 'version', 'description', 'dsh'], timeoutMs }) -
Run your type checker; a missing
fieldsproperty is reported at each call.