import{logger as n}from"../../server/tools/notifiers/logger.js";import{confirmPrompt as o,inputPrompt as t}from"./prompt.js";import{camelCase as i,isCamelCaseAlphaNumeric as c}from"./string-utils.js";async function l(a){if(c(a))return a;n.warn(`Invalid name format: "${a}". Tag name should be camelCase and alphanumeric.`);const r=i(a),{confirm:e}=await o(`Rename to "${r}"?`);if(e)return r;const{input:m}=await t("Enter tag name:");return l(m)}export{l as normalizeTagName};
