Spaces:
Sleeping
Sleeping
Commit History
-
fix: letter lost the duration sentence when AI paraphrasing dropped the 'ภายใน X วัน' signal — (1) build_letter falls back to the raw TOR clause when cleaning loses it, (2) generate_body rejects AI bodies missing the supplied day-number
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NQMBLPhJZUBCX7io3uwEnRb9e493a -
feat: wire ai_clean.clean_delivery into the generate path (ARCHITECTURE §13.3) — the body's delivery sentence is now งวด-aware; deterministic fallback preserved
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NQMBLPhJZUBCX7io3uwEnR903bb5c -
refactor: extract the generate use-case into letter_builder.py (build_letter, default_doc_type, suffix_doc_type); UI keeps only widgets, validation display, and session state — verified docx-identical to pre-refactor output
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NQMBLPhJZUBCX7io3uwEnRfda2212