import { DependencyRef } from '../deps/types.js'; import { McpServerConfig } from '../types.js'; import { Rule } from './rule.js'; /** * The registry package a configured MCP server launches through a package * runner (npx/pnpx/bunx → npm, uvx/pipx → PyPI), if any — so it can be * checked against known-malware advisories. */ export declare function serverPackageRef(server: McpServerConfig): (DependencyRef & { version?: string; }) | undefined; /** * A launch spec that fetches the server from somewhere other than a package * registry — a git remote, a VCS shorthand, or a plain archive URL. These need * different advice (and, for archive URLs, a different severity) from an * unpinned registry version: the artifact behind the URL can be swapped in * place, with no version to pin and no registry metadata or provenance. */ export declare function remoteSourceSpec(spec: string): { kind: 'git' | 'archive'; host: string; } | undefined; /** Full commit SHA or a version-addressed registry tarball: the content behind the spec cannot silently change. */ export declare function isImmutableRemoteSpec(spec: string): boolean; /** OpenCode config files (plus Kilo CLI's `kilo.json(c)` — same schema); npm packages in their `plugin` array are auto-installed by Bun and executed at startup. */ export declare const OPENCODE_CONFIG_FILE: RegExp; /** * Registry package refs for the npm plugins an OpenCode config auto-installs * at startup — so they can be checked against known-malware advisories. */ export declare function opencodePluginRefs(file: string, content: string): (DependencyRef & { version?: string; })[]; /** * Registry package refs for the PyPI `dependencies` of `inline_python` * extensions in a Goose recipe — uvx installs and runs them for everyone who * runs the recipe, so they get the same known-malware advisory checks. Gated * on the documented recipe shape since the filename is generic. */ export declare function gooseRecipeDependencyRefs(file: string, content: string): (DependencyRef & { version?: string; })[]; /** In-repo plugin marketplace catalog (Claude Code `.claude-plugin/`, Copilot CLI `.github/plugin/`, Factory Droid `.factory-plugin/`, Codex `.agents/plugins/` incl. `api_marketplace.json` and `.cursor-plugin/`); each entry's `source` tells installers where plugin code comes from. */ export declare const MARKETPLACE_CATALOG_FILE: RegExp; /** * Registry package refs for the npm-distributed plugins in a marketplace * catalog — installers run `npm install` on these, so they get the same * known-malware advisory checks as server packages. */ export declare function marketplacePluginRefs(file: string, content: string): (DependencyRef & { version?: string; })[]; export declare const supplyChainRule: Rule;