/** * The npm or PyPI packages named directly by a stdio launch line. * * `npx -y some-mcp@1.2.3`, `uvx --from 'pkg==1.0' pkg`, `pnpm dlx @a/b` and the like name a * package from the public registry. A local path, a git or tarball URL, or a private registry * (`--registry`, `--index-url`) names nothing a public list could know, so it is reported with * the reason and no name. Used by HISTOR lookups and by the known-malicious package list. */ export type LaunchEcosystem = 'npm' | 'pypi'; export interface LaunchPackage { ecosystem?: LaunchEcosystem; /** npm: as written; PyPI: lower case with runs of `-_.` folded to `-` (PEP 503). */ name?: string; /** Set only when the launch pins one exact version; a tag or range leaves it unset. */ version?: string; /** Why no registry package was read from the launch line. */ reason?: string; } export declare function normalisePypiName(name: string): string; /** The primary package for a single package lookup, such as HISTOR. */ export declare function launchPackage(command: string, args: readonly string[]): LaunchPackage; /** The primary spec first, then any additional explicit package specs. */ export declare function launchPackages(command: string, args: readonly string[]): LaunchPackage[]; //# sourceMappingURL=launch-package.d.ts.map