mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 06:42:03 +00:00
* refactor: replace crypto.randomUUID with generateUUID in spec editor Use the centralized generateUUID utility from @/lib/utils instead of direct crypto.randomUUID calls in spec editor components. This provides better fallback handling for non-secure contexts (e.g., Docker via HTTP). Files updated: - array-field-editor.tsx - features-section.tsx - roadmap-section.tsx * refactor: simplify generateUUID to always use crypto.getRandomValues Remove conditional checks and fallbacks - crypto.getRandomValues() works in all modern browsers including non-secure HTTP contexts (Docker). This simplifies the code while maintaining the same security guarantees. * refactor: add defensive check for crypto availability Add check for crypto.getRandomValues() availability before use. Throws a meaningful error if the crypto API is not available, rather than failing with an unclear runtime error. --------- Co-authored-by: Claude <noreply@anthropic.com>