Patch Changes
-
#4385
ae59baf- feat: precompile packages with React Compiler (@Yonom)- aui-build runs React Compiler over packages that depend on tap and remaps
react/compiler-runtimeto the tap shim subpath, so compiled hooks and components work both in React components and inside tap resource renders @assistant-ui/tap/react-shimexportsuseMemoCache(tap inside a resource render,React.__COMPILER_RUNTIME.cotherwise, with a React 18 polyfill); new@assistant-ui/tap/react-shim/compiler-runtimesubpath mirrorsreact/compiler-runtime'scexport- tap implements
useSyncExternalStoreand a no-opuseDebugValue;useSubscribablenow builds onuseSyncExternalStoreso its store reads stay visible to the compiler AssistantProviderBaseopts out via"use no memo"because the runtime receives options through an effect inside a re-rendered child element
- aui-build runs React Compiler over packages that depend on tap and remaps
-
#4378
4583ca7- feat: approval options vocabulary on tool approvals.ToolCallMessagePart.approvalgains request-suppliedoptions(machine-readable kinds allow-once / allow-always / reject-once / reject-always, open to_-prefixed custom kinds), a recordedoptionId, and a terminalresolution("cancelled" | "expired") for non-decision outcomes.respondToApprovaladditionally accepts{ optionId }, resolved in core against the option's kind; custom kinds require an explicitapproved.ExternalThreadgains anonRespondToToolApprovalcallback. The kit approval bar renders supplied options with an opt-in confirmation step showing the grants an option would persist. Persistence stays host-owned. (@okisdev) -
#4379
94cc028- feat: per-tool-call timing and stall detection.ToolCallMessagePartgains atimingfield ({ startedAt, completedAt? }in epoch ms), auto-populated by the assistant-stream accumulator at part start and result, and accepted onThreadMessageLikefor external-store hosts. NewuseToolCallElapsed()hook returns the call's elapsed milliseconds, ticking once per second while running;unstable_useMessageStallDetection({ thresholdMs })reports mid-run output stalls by watching a message content fingerprint. The kitToolFallbacktrigger renders the duration when timing is present. (@okisdev) -
Updated dependencies [
c207bcd,ae59baf,9f13fdb,4583ca7,94cc028]:- @assistant-ui/core@0.2.15
- @assistant-ui/tap@0.8.1
- @assistant-ui/store@0.2.17
- assistant-stream@0.3.22