in script.js [435:445]
function handleArchitectureNameInput() {
if (!currentData) return;
// First validate and sanitize the input
validateFilename();
// Then update the data model and JSON preview
const sanitizedName = architectureNameInput.value;
currentData.name = sanitizedName;
updateJsonPreview();
}