/** * `agentsmarket skill import` — publish a repository's skills to the marketplace. * * A repository of skills (web3eco's `agent-context` and anything shaped like * it) keeps them as `skills//SKILL.md`. The marketplace's own format is * the Agent Skills standard, and the two disagree in exactly one place: the * standard allows only `name`, `description`, `license`, `compatibility`, * `metadata` and `allowed-tools` at the top level, while a repository of * skills usually also carries `tags:` and sometimes `version:` there. A file * published as-is is refused by every consumer that validates against the * standard — including this marketplace. * * So the import rewrites the frontmatter into the marketplace's shape: * the repository's own `tags` move under `metadata` with the * `io.agentsmarket/` prefix, the price and privacy become namespaced fields, * and the body is published untouched. Anything else the repository carries * at the top level is reported, not silently dropped. * * The source is a directory (a checkout, or the synced cache) or a git * repository, which is cloned into a temporary directory and removed after. */ export interface ImportFlags { /** A checkout that contains `skills//SKILL.md`. */ dir?: string; /** `owner/name` of a git repository to clone. */ repo?: string; /** The git ref to clone. Default: the repository's default branch. */ ref?: string; /** Publish as private (the default for an import: a repository's skills are usually a team's). */ private?: boolean; /** EVM address to grant access to. Repeatable. */ grant?: string[]; /** Price in micro-USDC. Default 0. */ price?: string; /** Print what would be published; publish nothing. */ dryRun?: boolean; /** * Force a version bump on publish. A changed skill at the same version is * refused by the server (the content hash moved under a version that * already exists) — an improved skill is a new version, and this is how the * import says so. */ bumpVersion?: 'patch' | 'minor' | 'major'; } interface Transformed { content: string; name: string; version: string; dropped: string[]; } /** * Rewrite a repository skill into the marketplace's frontmatter. * * The body is untouched — it is the skill's content, and the marketplace * stores it as `full_md` verbatim. */ export declare function transformSkillForMarketplace(raw: string, opts: { isPrivate: boolean; grantedTo: string[]; priceUsdc: number; }): Transformed; /** Every `skills//SKILL.md` under a checkout. `_`-prefixed dirs are the repo's own scratch space. */ export declare function findSkillFiles(root: string): string[]; export declare function skillImportCommand(flags?: ImportFlags): Promise; export {};