// src/actions/dead/classifyPackageVisibility.ts
function classifyPackageVisibility(manifest) {
  if (manifest?.private === true) return "private";
  const access = manifest?.publishConfig;
  if (typeof access === "object" && access !== null && !Array.isArray(access)) {
    const publishAccess = access.access;
    if (publishAccess === "restricted") return "restricted";
    if (publishAccess === "public") return "public";
  }
  return "public";
}
export {
  classifyPackageVisibility
};
//# sourceMappingURL=classifyPackageVisibility.mjs.map
