Method
finalize()
Finalizes the execution context after generation completes.
@MainActor func finalize() async throws
Discussion
This ensures all pending file operations are completed and resources are properly cleaned up. Should be called after template execution finishes.