/** * Skillset upload pipeline * * Orchestrates the packaging half of a skillset upload: candidate nori.json * creation for inline/extract decisions, flat-subagent inline-vs-extract * partitioning (persisting inline choices, restructuring extracted flat * files into directories), tarball creation, inline-list merging, the * registrar upload call, and mapping collision errors into the * `UploadResult` union. * * This module contains no prompting, no CLI parsing, and no process control. * It must never import from `src/cli/`. */ import type { SkillResolutionStrategy, SubagentResolutionStrategy } from "../api/registrar.js"; import type { UploadResult } from "./uploadPolicy.js"; /** * Persist "keep inline" decisions for flat .md subagents by adding them * to the skillset's nori.json subagents array. Parses frontmatter for * name and description. * * @param args - The function arguments * @param args.skillsetDir - The skillset directory * @param args.flatSubagentIds - IDs of flat subagents chosen to be kept inline */ export declare const persistFlatSubagentInlineChoices: (args: { skillsetDir: string; flatSubagentIds: Array; }) => Promise; /** * Perform a skillset upload: prepare candidate nori.json files, partition * flat subagents into inline vs extract, create the tarball, merge existing * and newly-resolved inline lists, and call the registrar upload API. * Collision errors are mapped into the `UploadResult` union instead of * being thrown. * * @param args - The function arguments * @param args.skillsetDir - The local skillset directory to package * @param args.packageName - The skillset package name on the registry * @param args.uploadVersion - The version to upload * @param args.registryUrl - The target registry URL * @param args.authToken - Auth token for the registry * @param args.description - Optional description for the skillset version * @param args.resolutionStrategy - Optional per-skill conflict resolutions * @param args.subagentResolutionStrategy - Optional per-subagent conflict resolutions * @param args.inlineSkills - Skill IDs newly resolved to be kept inline * @param args.inlineSubagents - Subagent IDs newly resolved to be kept inline * @param args.inlineCandidates - Skill IDs that were candidates (no nori.json) * @param args.subagentInlineCandidates - Directory-based subagent IDs that were candidates (no nori.json) * @param args.flatSubagentCandidates - Flat .md subagent IDs awaiting an inline/extract decision * @param args.existingInlineSkills - Skill IDs already marked inlined from a previous upload * @param args.existingInlineSubagents - Subagent IDs already marked inlined from a previous upload * @param args.existingFlatInlineSubagents - Flat subagent IDs already declared inline in nori.json * * @returns The upload result (success, conflicts, or error) */ export declare const performSkillsetUpload: (args: { skillsetDir: string; packageName: string; uploadVersion: string; registryUrl: string; authToken: string; description?: string | null; resolutionStrategy?: SkillResolutionStrategy | null; subagentResolutionStrategy?: SubagentResolutionStrategy | null; inlineSkills?: Array | null; inlineSubagents?: Array | null; inlineCandidates: Array; subagentInlineCandidates: Array; flatSubagentCandidates: Array; existingInlineSkills: Array; existingInlineSubagents: Array; existingFlatInlineSubagents: Array; }) => Promise; //# sourceMappingURL=uploadPipeline.d.ts.map