Patch Changes
-
#6547
6bd1570- fix: drop zustand from core (@okisdev)core declared zustand as an optional peer while importing
createanduseShallowunconditionally. 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 aRuntimeAdapterProviderrendered by one copy was invisible to a runtime hook imported from the other:unstable_Providersupplied ahistoryadapter,useAISDKRuntimereadundefined,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 existingBaseSubscribableand read throughuseSubscribable. the twouseShallowcall sites wrapped selectors passed touseAuiState, aui's own store, so they now useuseShallowSelectorfrom@assistant-ui/store/internal, which memoizes a selector against theshallowEqualthat already lived there.WritableSubscribablereports a server snapshot anduseSubscribableforwards 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-nativeand@assistant-ui/react-inkdeclared zustand only to satisfy core's optional peer and never imported it, so they no longer declare it.@assistant-ui/reactand@assistant-ui/uikeep theirs because they import it directly, and@assistant-ui/reactadditionally exposesStoreApithroughReadonlyStorein its published types. -
#6586
9f08bdc- chore: deduplicate the internal development flag (@okisdev) -
#6688
8135d16- fix: peer ranges on the packages this workspace releases now track the release train (@okisdev)changesets rewrites a peer range only when the new version falls outside it, so the hand-written floors had drifted below the code they describe. core declared
@assistant-ui/store: ^0.3.0while importing@assistant-ui/store/internal, a subpath store did not export until 0.3.10, and react-lexical declared*. these peers are nowworkspace:^, which publishes as the version released alongside them. -
#6495
fa9c0dc- feat: allow string ids in the stale scope reporter (@okisdev) -
#6498
65d449b- feat: export useAssistantContextValue from the client entry (@okisdev)The framework-neutral client subpath now carries the ambient-client read, so store entries can stay off the React-coupled barrel.
-
#6348
49e727b- chore: expose shallowEqual from the internal entry (@rupic-app) -
#6563
8206d8f- feat: accept a content inset in the shared viewport scroll helpers (@okisdev)