/** * Guard against accidentally publishing to the public registry. * * Publishing to the public registry is only allowed when the caller made the * target explicit — via the `--public` flag, an explicit `public/` * namespace, or an explicit `--registry `. When the public registry is * the target purely by default (a bare, non-namespaced name), an interactive * caller is asked to confirm and an automated caller is failed with guidance. */ /** * Outcome of the public-upload guard. * - `ok: true` — proceed with the upload. * - `ok: false` — do not upload. `cancelled` distinguishes a user-declined * confirmation (true) from a hard error such as a contradictory target or a * refused automated publish (false). `message` is the user-facing reason. */ export type PublicUploadGuardResult = { ok: true; } | { ok: false; cancelled: boolean; message: string; }; /** * Decide whether an upload that would land on the public registry is allowed. * * @param args - Arguments * @param args.kind - Package kind, used in messaging ("skill" or "skillset") * @param args.packageSpec - Raw package spec as typed by the caller (used to * detect an explicit `public/` namespace) * @param args.orgId - Parsed org namespace ("public" when none was given) * @param args.displayName - Package display name for messages * @param args.registryUrl - Explicit `--registry` value, if any * @param args.publicRegistry - Whether the explicit `--public` flag was passed * @param args.nonInteractive - Whether the command is running non-interactively * @param args.silent - Whether the command is running in silent mode * * @returns Whether to proceed, and if not, why */ export declare const guardPublicUpload: (args: { kind: "skill" | "skillset"; packageSpec: string; orgId: string; displayName: string; registryUrl?: string | null; publicRegistry?: boolean | null; nonInteractive?: boolean | null; silent?: boolean | null; }) => Promise; //# sourceMappingURL=publicUploadGuard.d.ts.map