github assistant-ui/assistant-ui @assistant-ui/react-hook-form@0.12.39

Patch Changes

  • #10704 03c0650 - Adapters that install @assistant-ui/core declare @assistant-ui/store and @assistant-ui/tap as peers, so strict installers such as Yarn PnP resolve the single copy the app provides. @assistant-ui/react-ag-ui also forwards the zod peer that @ag-ui/client declares. (@okisdev)

  • #10578 9906ce6 - set_form_field only sets fields the form currently renders. Names that are not mounted, and fields kept out of the model context (password, one-time-code and card inputs, assistant.sensitiveFields and anything under them), now return { success: false } and leave the form unchanged. items[0].name and items.0.name both work. (@Yonom)

  • #10703 5b49ee3 - set_form_field accepts numbers and booleans, so the assistant can check a checkbox and fill a Controller field that holds a number or boolean; fields backed by text inputs, selects, textareas and radio groups still receive strings, which React Hook Form's valueAs* options convert as they do for typed input. set_form_field render args now type value as string | number | boolean, so a renderer annotated with value: string has to widen it. (@egg119)

  • #10740 99167cd - submit_form reports that it found no form instead of throwing where DOM constructors are absent. (@lhy-dcf)

  • Updated dependencies [74199f8, 01d3fd7, 974347f, ac873e5, 9906ce6, 3c1497d, 50efa27, c66dab9, aea6e31, ed4e645]:

    • @assistant-ui/core@0.3.38

Don't miss a new assistant-ui release

NewReleases is sending notifications on new releases.