- Add fieldLibrary metadata to HTML template packages, including form fields, custom time formats, multi-select options, and anesthesia options.
- Restore imported template field metadata into local compatibility caches and the backend field library API when available.
- Preserve legacy JSON template import compatibility while keeping user-facing exports on HTML packages.
- Prevent template field saves from overwriting stored multi-select and anesthesia options with empty values.
- Update README, AGENTS, feature, requirement, design, module, progress, component, and testing docs for complete template export behavior.
- Extend template export tests to cover field library metadata round-tripping.
- Add template export utilities for standard JSON packages and standalone HTML template packages.
- Make the top-level JSON export use the standard surclaw template package format so it can be imported again.
- Add an HTML template package export that embeds A4/print styling and template metadata for visual preview and round-trip import.
- Extend template import to accept both JSON and HTML template package files while keeping old raw template JSON compatible.
- Add tests for package creation, HTML round-trip import, legacy JSON import, and file name cleanup.
- Update template management, feature, progress, testing, and AGENTS documentation for the new export formats.