mirror of
https://github.com/bitbaum/ai-forms.git
synced 2026-12-03 17:47:00 +01:00
* fix(assist): refine fills empty fields, writes requested prose, localisable copy A form stops being empty at the first typed word, and from then on every instruction was a refine that returned only named fields - so pasting an advert after typing a title filled nothing, and 'fill in the description' was refused as invention. Refine now also lands in empty fields the message supplies; facts vs prose are separated (never invent a fact, do write a requested free-text field). User-facing copy is overridable per app and per form (AOZ showed English errors in a German form), and the hook clears the previous turn's 'changed' so it cannot sit beside this turn's error. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat: suggestions for filled forms, and one shared AiFormAssistant control A filled form can now be asked what it would improve: intent 'suggest' on the same route returns up to 4 one-tap proposals, each applied as an ordinary refine (undo covers it). Never proposes inventing a fact. AiFormAssistant moves the bar every adopter hand-rolled (AOZ and evig had near-identical copies) into the package: behaviour here, words and design tokens from the app via labels/classNames, no styling shipped. An improvement to the experience now lands everywhere on one install. respond keeps its AssistResult type (loki passes one); suggest gets its own respondSuggest. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>