github assistant-ui/assistant-ui @assistant-ui/react-ink@0.0.41

Patch Changes

  • #6680 7ff2ab2 - fix: use terminal display columns for multiline text input movement (@rupic-app)

  • #6547 6bd1570 - fix: drop zustand from core (@okisdev)

    core declared zustand as an optional peer while importing create and useShallow unconditionally. pnpm keys a package instance on its resolved peers, so two dependency branches landing on different zustand patches (5.0.14 under one, 5.0.15 under the other) produced two physical copies of core. React context is per copy, so a RuntimeAdapterProvider rendered by one copy was invisible to a runtime hook imported from the other: unstable_Provider supplied a history adapter, useAISDKRuntime read undefined, withFormat() never fired, and every thread loaded with no messages and no error.

    core no longer uses zustand at all, so the peer is gone rather than reclassified. the four internal stores now use WritableSubscribable, a mutable cell built on the existing BaseSubscribable and read through useSubscribable. the two useShallow call sites wrapped selectors passed to useAuiState, aui's own store, so they now use useShallowSelector from @assistant-ui/store/internal, which memoizes a selector against the shallowEqual that already lived there.

    WritableSubscribable reports a server snapshot and useSubscribable forwards one when the subscribable offers it, so the components reading these stores render under SSR the way the zustand hook did. Subscribables without one, including every existing runtime client, keep their current behaviour.

    @assistant-ui/react-native and @assistant-ui/react-ink declared zustand only to satisfy core's optional peer and never imported it, so they no longer declare it. @assistant-ui/react and @assistant-ui/ui keep theirs because they import it directly, and @assistant-ui/react additionally exposes StoreApi through ReadonlyStore in its published types.

  • #6628 7edd4b1 - fix: keep vertical text input movement on grapheme boundaries (@Kinfe123)

  • #6528 152a35d - chore: update dependencies (@okisdev)

  • #6639 05e3e6d - chore: update dependencies (@Yonom)

  • #6642 c87679b - fix: keep CRLF line endings intact during text input editing (@Kinfe123)

  • Updated dependencies [8cc962e, 2a31285, 205acf5, 740a573, 65d449b, 79283c5, 9ec29e1, 14fc938, 3f7af8b, 46fad14, 5511057, dc2cab3, d75944b, 6bd1570, 60ae973, 9f08bdc, 0fb5390, dc2cab3, f0d0aa2, 1fa3e09, 0f17ba5, 152a35d, 0c5c574, ddaac94, 0c68179, 250f69c, c22a3dc, aca6e30, 5bdd416, 6fdfc23, 136bbf5, e53299b, 69d8e1b, dabe8f2, 8d128af, 9f08bdc, 47a46db, 8135d16, 07fed43, fa9c0dc, fa9c0dc, 4ca7de9, 65d449b, 49e727b, 49e727b, d56a66a, 96a2df8, 8206d8f]:

    • @assistant-ui/core@0.3.17
    • assistant-stream@0.3.41
    • @assistant-ui/store@0.3.12
    • @assistant-ui/tap@0.9.16

Don't miss a new assistant-ui release

NewReleases is sending notifications on new releases.