@assistant-ui/react 0.15.21 → 0.15.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (610) hide show
  1. package/README.md +1 -1
  2. package/dist/assistant-transport.d.ts +24 -24
  3. package/dist/assistant-transport.d.ts.map +1 -1
  4. package/dist/assistant-transport.js.map +1 -1
  5. package/dist/augmentations.d.ts +28 -5
  6. package/dist/augmentations.d.ts.map +1 -1
  7. package/dist/cloud-renderer/CloudRendererHost.d.ts +13 -0
  8. package/dist/cloud-renderer/CloudRendererHost.d.ts.map +1 -0
  9. package/dist/cloud-renderer/CloudRendererHost.js +291 -0
  10. package/dist/cloud-renderer/CloudRendererHost.js.map +1 -0
  11. package/dist/context/ReadonlyStore.d.ts +1 -3
  12. package/dist/context/ReadonlyStore.d.ts.map +1 -1
  13. package/dist/context/index.d.ts +13 -13
  14. package/dist/context/index.d.ts.map +1 -0
  15. package/dist/context/providers/AttachmentByIndexProvider.d.ts +2 -2
  16. package/dist/context/providers/AttachmentByIndexProvider.d.ts.map +1 -0
  17. package/dist/context/providers/ChainOfThoughtByIndicesProvider.d.ts +2 -2
  18. package/dist/context/providers/ChainOfThoughtByIndicesProvider.d.ts.map +1 -0
  19. package/dist/context/providers/ChainOfThoughtPartByIndexProvider.d.ts +2 -2
  20. package/dist/context/providers/ChainOfThoughtPartByIndexProvider.d.ts.map +1 -0
  21. package/dist/context/providers/MessageByIndexProvider.d.ts +2 -2
  22. package/dist/context/providers/MessageByIndexProvider.d.ts.map +1 -0
  23. package/dist/context/providers/MessageProvider.d.ts +2 -4
  24. package/dist/context/providers/MessageProvider.d.ts.map +1 -1
  25. package/dist/context/providers/PartByIndexProvider.d.ts +2 -2
  26. package/dist/context/providers/PartByIndexProvider.d.ts.map +1 -0
  27. package/dist/context/providers/SuggestionByIndexProvider.d.ts +2 -2
  28. package/dist/context/providers/SuggestionByIndexProvider.d.ts.map +1 -0
  29. package/dist/context/providers/TextMessagePartProvider.d.ts +2 -2
  30. package/dist/context/providers/TextMessagePartProvider.d.ts.map +1 -0
  31. package/dist/context/providers/ThreadListItemProvider.d.ts +2 -2
  32. package/dist/context/providers/ThreadListItemProvider.d.ts.map +1 -0
  33. package/dist/context/providers/ThreadViewportProvider.d.ts +3 -5
  34. package/dist/context/providers/ThreadViewportProvider.d.ts.map +1 -1
  35. package/dist/context/react/ThreadViewportContext.d.ts +17 -19
  36. package/dist/context/react/ThreadViewportContext.d.ts.map +1 -1
  37. package/dist/context/react/utils/createContextHook.d.ts +2 -4
  38. package/dist/context/react/utils/createContextHook.d.ts.map +1 -1
  39. package/dist/context/react/utils/createContextStoreHook.d.ts +15 -17
  40. package/dist/context/react/utils/createContextStoreHook.d.ts.map +1 -1
  41. package/dist/context/stores/ThreadViewport.d.ts +72 -74
  42. package/dist/context/stores/ThreadViewport.d.ts.map +1 -1
  43. package/dist/devtools/DevToolsHooks.d.ts +19 -20
  44. package/dist/devtools/DevToolsHooks.d.ts.map +1 -1
  45. package/dist/hooks/useMessageQuote.d.ts +1 -3
  46. package/dist/hooks/useMessageQuote.d.ts.map +1 -1
  47. package/dist/hooks/useMessageTiming.d.ts +1 -3
  48. package/dist/hooks/useMessageTiming.d.ts.map +1 -1
  49. package/dist/hooks/useToolCallElapsed.d.ts +0 -2
  50. package/dist/hooks/useToolCallElapsed.d.ts.map +1 -1
  51. package/dist/hooks/useToolCallElapsed.js +1 -1
  52. package/dist/index.d.ts +126 -82
  53. package/dist/index.d.ts.map +1 -0
  54. package/dist/index.js +14 -13
  55. package/dist/internal.d.ts +8 -11
  56. package/dist/internal.d.ts.map +1 -1
  57. package/dist/legacy-runtime/AssistantRuntimeProvider.d.ts +24 -26
  58. package/dist/legacy-runtime/AssistantRuntimeProvider.d.ts.map +1 -1
  59. package/dist/legacy-runtime/AssistantRuntimeProvider.js +1 -1
  60. package/dist/legacy-runtime/RuntimeAdapter.d.ts +2 -2
  61. package/dist/legacy-runtime/RuntimeAdapter.d.ts.map +1 -0
  62. package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts +2 -2
  63. package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts.map +1 -0
  64. package/dist/legacy-runtime/runtime/AssistantRuntime.d.ts +3 -3
  65. package/dist/legacy-runtime/runtime/AssistantRuntime.d.ts.map +1 -0
  66. package/dist/legacy-runtime/runtime/AttachmentRuntime.d.ts +3 -3
  67. package/dist/legacy-runtime/runtime/AttachmentRuntime.d.ts.map +1 -0
  68. package/dist/legacy-runtime/runtime/ComposerRuntime.d.ts +4 -3
  69. package/dist/legacy-runtime/runtime/ComposerRuntime.d.ts.map +1 -0
  70. package/dist/legacy-runtime/runtime/RuntimeBindings.d.ts +3 -3
  71. package/dist/legacy-runtime/runtime/RuntimeBindings.d.ts.map +1 -0
  72. package/dist/legacy-runtime/runtime/RuntimePathTypes.d.ts +2 -2
  73. package/dist/legacy-runtime/runtime/RuntimePathTypes.d.ts.map +1 -0
  74. package/dist/legacy-runtime/runtime/ThreadListItemRuntime.d.ts +5 -3
  75. package/dist/legacy-runtime/runtime/ThreadListItemRuntime.d.ts.map +1 -0
  76. package/dist/legacy-runtime/runtime/ThreadRuntime.d.ts +4 -3
  77. package/dist/legacy-runtime/runtime/ThreadRuntime.d.ts.map +1 -0
  78. package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.d.ts +2 -2
  79. package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.d.ts.map +1 -0
  80. package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts +2 -2
  81. package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts.map +1 -0
  82. package/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.d.ts +2 -2
  83. package/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.d.ts.map +1 -0
  84. package/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.d.ts +2 -2
  85. package/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.d.ts.map +1 -0
  86. package/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.d.ts +2 -2
  87. package/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.d.ts.map +1 -0
  88. package/dist/legacy-runtime/runtime-cores/core/AssistantRuntimeCore.d.ts +2 -2
  89. package/dist/legacy-runtime/runtime-cores/core/AssistantRuntimeCore.d.ts.map +1 -0
  90. package/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.d.ts +2 -2
  91. package/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.d.ts.map +1 -0
  92. package/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.d.ts +2 -2
  93. package/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.d.ts.map +1 -0
  94. package/dist/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.d.ts +2 -2
  95. package/dist/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.d.ts.map +1 -0
  96. package/dist/legacy-runtime/runtime-cores/core/ThreadListRuntimeCore.d.ts +2 -2
  97. package/dist/legacy-runtime/runtime-cores/core/ThreadListRuntimeCore.d.ts.map +1 -0
  98. package/dist/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.d.ts +2 -2
  99. package/dist/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.d.ts.map +1 -0
  100. package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.d.ts +2 -2
  101. package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.d.ts.map +1 -0
  102. package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.d.ts +2 -2
  103. package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.d.ts.map +1 -0
  104. package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.d.ts +3 -2
  105. package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.d.ts.map +1 -0
  106. package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.d.ts +2 -2
  107. package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.d.ts.map +1 -0
  108. package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.d.ts +3 -2
  109. package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.d.ts.map +1 -0
  110. package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.d.ts +3 -3
  111. package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.d.ts.map +1 -0
  112. package/dist/legacy-runtime/runtime-cores/external-store/auto-status.d.ts +2 -2
  113. package/dist/legacy-runtime/runtime-cores/external-store/auto-status.d.ts.map +1 -0
  114. package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.d.ts +2 -2
  115. package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.d.ts.map +1 -0
  116. package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts +2 -2
  117. package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts.map +1 -0
  118. package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts +2 -2
  119. package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts.map +1 -0
  120. package/dist/legacy-runtime/runtime-cores/local/ChatModelAdapter.d.ts +2 -2
  121. package/dist/legacy-runtime/runtime-cores/local/ChatModelAdapter.d.ts.map +1 -0
  122. package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeCore.d.ts +2 -2
  123. package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeCore.d.ts.map +1 -0
  124. package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.d.ts +4 -3
  125. package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.d.ts.map +1 -0
  126. package/dist/legacy-runtime/runtime-cores/local/LocalThreadListRuntimeCore.d.ts +3 -2
  127. package/dist/legacy-runtime/runtime-cores/local/LocalThreadListRuntimeCore.d.ts.map +1 -0
  128. package/dist/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.d.ts +2 -2
  129. package/dist/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.d.ts.map +1 -0
  130. package/dist/legacy-runtime/runtime-cores/local/shouldContinue.d.ts +2 -2
  131. package/dist/legacy-runtime/runtime-cores/local/shouldContinue.d.ts.map +1 -0
  132. package/dist/legacy-runtime/runtime-cores/local/useLocalRuntime.d.ts +2 -2
  133. package/dist/legacy-runtime/runtime-cores/local/useLocalRuntime.d.ts.map +1 -0
  134. package/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.d.ts +2 -2
  135. package/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.d.ts.map +1 -0
  136. package/dist/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.d.ts +2 -2
  137. package/dist/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.d.ts.map +1 -0
  138. package/dist/legacy-runtime/runtime-cores/remote-thread-list/OptimisticState.d.ts +2 -2
  139. package/dist/legacy-runtime/runtime-cores/remote-thread-list/OptimisticState.d.ts.map +1 -0
  140. package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts +2 -2
  141. package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts.map +1 -0
  142. package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts +2 -2
  143. package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts.map +1 -0
  144. package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts +2 -2
  145. package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts.map +1 -0
  146. package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/in-memory.d.ts +2 -2
  147. package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/in-memory.d.ts.map +1 -0
  148. package/dist/legacy-runtime/runtime-cores/remote-thread-list/types.d.ts +2 -2
  149. package/dist/legacy-runtime/runtime-cores/remote-thread-list/types.d.ts.map +1 -0
  150. package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts +2 -2
  151. package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts.map +1 -0
  152. package/dist/legacy-runtime/runtime-cores/utils/MessageRepository.d.ts +4 -3
  153. package/dist/legacy-runtime/runtime-cores/utils/MessageRepository.d.ts.map +1 -0
  154. package/dist/legacy-runtime/runtime-cores/utils/MessageRepository.js +1 -1
  155. package/dist/mcp-apps/McpAppRenderer.d.ts +49 -51
  156. package/dist/mcp-apps/McpAppRenderer.d.ts.map +1 -1
  157. package/dist/mcp-apps/McpAppRenderer.js +2 -2
  158. package/dist/mcp-apps/McpAppsRemoteHost.d.ts +1 -3
  159. package/dist/mcp-apps/McpAppsRemoteHost.d.ts.map +1 -1
  160. package/dist/mcp-apps/app-frame.d.ts +2 -4
  161. package/dist/mcp-apps/app-frame.d.ts.map +1 -1
  162. package/dist/mcp-apps/bridge.d.ts +11 -13
  163. package/dist/mcp-apps/bridge.d.ts.map +1 -1
  164. package/dist/mcp-apps/index.d.ts +5 -5
  165. package/dist/mcp-apps/index.d.ts.map +1 -0
  166. package/dist/mcp-apps/types.d.ts +95 -97
  167. package/dist/mcp-apps/types.d.ts.map +1 -1
  168. package/dist/mcp-apps/utils.d.ts +2 -3
  169. package/dist/mcp-apps/utils.d.ts.map +1 -1
  170. package/dist/model-context/frame/useAssistantFrameHost.d.ts +8 -8
  171. package/dist/model-context/frame/useAssistantFrameHost.d.ts.map +1 -1
  172. package/dist/model-context/frame/useAssistantFrameHost.js +1 -1
  173. package/dist/model-context/makeAssistantVisible.d.ts +4 -6
  174. package/dist/model-context/makeAssistantVisible.d.ts.map +1 -1
  175. package/dist/model-context/makeAssistantVisible.js +2 -2
  176. package/dist/primitives/actionBar/ActionBarCopy.d.ts +13 -14
  177. package/dist/primitives/actionBar/ActionBarCopy.d.ts.map +1 -1
  178. package/dist/primitives/actionBar/ActionBarCopy.js +1 -1
  179. package/dist/primitives/actionBar/ActionBarEdit.d.ts +10 -11
  180. package/dist/primitives/actionBar/ActionBarEdit.d.ts.map +1 -1
  181. package/dist/primitives/actionBar/ActionBarExportMarkdown.d.ts +11 -12
  182. package/dist/primitives/actionBar/ActionBarExportMarkdown.d.ts.map +1 -1
  183. package/dist/primitives/actionBar/ActionBarExportMarkdown.js +4 -1
  184. package/dist/primitives/actionBar/ActionBarExportMarkdown.js.map +1 -1
  185. package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts +6 -7
  186. package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -1
  187. package/dist/primitives/actionBar/ActionBarFeedbackNegative.js +11 -9
  188. package/dist/primitives/actionBar/ActionBarFeedbackNegative.js.map +1 -1
  189. package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +6 -7
  190. package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -1
  191. package/dist/primitives/actionBar/ActionBarFeedbackPositive.js +11 -9
  192. package/dist/primitives/actionBar/ActionBarFeedbackPositive.js.map +1 -1
  193. package/dist/primitives/actionBar/ActionBarInteractionContext.d.ts +1 -3
  194. package/dist/primitives/actionBar/ActionBarInteractionContext.d.ts.map +1 -1
  195. package/dist/primitives/actionBar/ActionBarReload.d.ts +10 -11
  196. package/dist/primitives/actionBar/ActionBarReload.d.ts.map +1 -1
  197. package/dist/primitives/actionBar/ActionBarRoot.d.ts +49 -50
  198. package/dist/primitives/actionBar/ActionBarRoot.d.ts.map +1 -1
  199. package/dist/primitives/actionBar/ActionBarSpeak.d.ts +6 -7
  200. package/dist/primitives/actionBar/ActionBarSpeak.d.ts.map +1 -1
  201. package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts +6 -7
  202. package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts.map +1 -1
  203. package/dist/primitives/actionBar/useActionBarFloatStatus.d.ts +8 -10
  204. package/dist/primitives/actionBar/useActionBarFloatStatus.d.ts.map +1 -1
  205. package/dist/primitives/actionBar.d.ts +9 -14
  206. package/dist/primitives/actionBar.d.ts.map +1 -1
  207. package/dist/primitives/actionBarMore/ActionBarMoreContent.d.ts +10 -12
  208. package/dist/primitives/actionBarMore/ActionBarMoreContent.d.ts.map +1 -1
  209. package/dist/primitives/actionBarMore/ActionBarMoreItem.d.ts +7 -9
  210. package/dist/primitives/actionBarMore/ActionBarMoreItem.d.ts.map +1 -1
  211. package/dist/primitives/actionBarMore/ActionBarMoreRoot.d.ts +3 -5
  212. package/dist/primitives/actionBarMore/ActionBarMoreRoot.d.ts.map +1 -1
  213. package/dist/primitives/actionBarMore/ActionBarMoreSeparator.d.ts +7 -9
  214. package/dist/primitives/actionBarMore/ActionBarMoreSeparator.d.ts.map +1 -1
  215. package/dist/primitives/actionBarMore/ActionBarMoreTrigger.d.ts +7 -9
  216. package/dist/primitives/actionBarMore/ActionBarMoreTrigger.d.ts.map +1 -1
  217. package/dist/primitives/actionBarMore/scope.d.ts +4 -6
  218. package/dist/primitives/actionBarMore/scope.d.ts.map +1 -1
  219. package/dist/primitives/actionBarMore.d.ts +5 -10
  220. package/dist/primitives/actionBarMore.d.ts.map +1 -1
  221. package/dist/primitives/assistantModal/AssistantModalAnchor.d.ts +7 -9
  222. package/dist/primitives/assistantModal/AssistantModalAnchor.d.ts.map +1 -1
  223. package/dist/primitives/assistantModal/AssistantModalContent.d.ts +12 -14
  224. package/dist/primitives/assistantModal/AssistantModalContent.d.ts.map +1 -1
  225. package/dist/primitives/assistantModal/AssistantModalRoot.d.ts +5 -7
  226. package/dist/primitives/assistantModal/AssistantModalRoot.d.ts.map +1 -1
  227. package/dist/primitives/assistantModal/AssistantModalRoot.js +1 -1
  228. package/dist/primitives/assistantModal/AssistantModalTrigger.d.ts +7 -9
  229. package/dist/primitives/assistantModal/AssistantModalTrigger.d.ts.map +1 -1
  230. package/dist/primitives/assistantModal/popoverRenderPrimitives.d.ts +7 -9
  231. package/dist/primitives/assistantModal/popoverRenderPrimitives.d.ts.map +1 -1
  232. package/dist/primitives/assistantModal/scope.d.ts +4 -6
  233. package/dist/primitives/assistantModal/scope.d.ts.map +1 -1
  234. package/dist/primitives/assistantModal.d.ts +4 -9
  235. package/dist/primitives/assistantModal.d.ts.map +1 -1
  236. package/dist/primitives/attachment/AttachmentName.d.ts +2 -4
  237. package/dist/primitives/attachment/AttachmentName.d.ts.map +1 -1
  238. package/dist/primitives/attachment/AttachmentRemove.d.ts +6 -7
  239. package/dist/primitives/attachment/AttachmentRemove.d.ts.map +1 -1
  240. package/dist/primitives/attachment/AttachmentRemove.js +1 -1
  241. package/dist/primitives/attachment/AttachmentRoot.d.ts +10 -11
  242. package/dist/primitives/attachment/AttachmentRoot.d.ts.map +1 -1
  243. package/dist/primitives/attachment/AttachmentThumb.d.ts +6 -7
  244. package/dist/primitives/attachment/AttachmentThumb.d.ts.map +1 -1
  245. package/dist/primitives/attachment/AttachmentThumb.js +1 -1
  246. package/dist/primitives/attachment.d.ts +4 -9
  247. package/dist/primitives/attachment.d.ts.map +1 -1
  248. package/dist/primitives/branchPicker/BranchPickerCount.d.ts +6 -8
  249. package/dist/primitives/branchPicker/BranchPickerCount.d.ts.map +1 -1
  250. package/dist/primitives/branchPicker/BranchPickerNext.d.ts +10 -11
  251. package/dist/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -1
  252. package/dist/primitives/branchPicker/BranchPickerNumber.d.ts +2 -4
  253. package/dist/primitives/branchPicker/BranchPickerNumber.d.ts.map +1 -1
  254. package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +10 -11
  255. package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -1
  256. package/dist/primitives/branchPicker/BranchPickerRoot.d.ts +18 -20
  257. package/dist/primitives/branchPicker/BranchPickerRoot.d.ts.map +1 -1
  258. package/dist/primitives/branchPicker/BranchPickerRoot.js +1 -1
  259. package/dist/primitives/branchPicker.d.ts +5 -10
  260. package/dist/primitives/branchPicker.d.ts.map +1 -1
  261. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +10 -11
  262. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -1
  263. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js +1 -1
  264. package/dist/primitives/chainOfThought/ChainOfThoughtParts.d.ts +2 -2
  265. package/dist/primitives/chainOfThought/ChainOfThoughtParts.d.ts.map +1 -0
  266. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts +6 -7
  267. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts.map +1 -1
  268. package/dist/primitives/chainOfThought.d.ts +3 -8
  269. package/dist/primitives/chainOfThought.d.ts.map +1 -1
  270. package/dist/primitives/composer/ComposerAddAttachment.d.ts +11 -12
  271. package/dist/primitives/composer/ComposerAddAttachment.d.ts.map +1 -1
  272. package/dist/primitives/composer/ComposerAddAttachment.js +1 -1
  273. package/dist/primitives/composer/ComposerAttachmentDropzone.d.ts +10 -11
  274. package/dist/primitives/composer/ComposerAttachmentDropzone.d.ts.map +1 -1
  275. package/dist/primitives/composer/ComposerAttachmentDropzone.js +9 -7
  276. package/dist/primitives/composer/ComposerAttachmentDropzone.js.map +1 -1
  277. package/dist/primitives/composer/ComposerAttachments.d.ts +2 -2
  278. package/dist/primitives/composer/ComposerAttachments.d.ts.map +1 -0
  279. package/dist/primitives/composer/ComposerCancel.d.ts +10 -11
  280. package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
  281. package/dist/primitives/composer/ComposerCompactContext.d.ts +1 -3
  282. package/dist/primitives/composer/ComposerCompactContext.d.ts.map +1 -1
  283. package/dist/primitives/composer/ComposerDictate.d.ts +6 -7
  284. package/dist/primitives/composer/ComposerDictate.d.ts.map +1 -1
  285. package/dist/primitives/composer/ComposerDictationTranscript.d.ts +5 -7
  286. package/dist/primitives/composer/ComposerDictationTranscript.d.ts.map +1 -1
  287. package/dist/primitives/composer/ComposerDictationTranscript.js +1 -1
  288. package/dist/primitives/composer/ComposerIf.d.ts +3 -2
  289. package/dist/primitives/composer/ComposerIf.d.ts.map +1 -0
  290. package/dist/primitives/composer/ComposerInput.d.ts +72 -74
  291. package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
  292. package/dist/primitives/composer/ComposerInput.js +3 -3
  293. package/dist/primitives/composer/ComposerInput.js.map +1 -1
  294. package/dist/primitives/composer/ComposerInputPluginContext.d.ts +22 -24
  295. package/dist/primitives/composer/ComposerInputPluginContext.d.ts.map +1 -1
  296. package/dist/primitives/composer/ComposerQueue.d.ts +2 -2
  297. package/dist/primitives/composer/ComposerQueue.d.ts.map +1 -0
  298. package/dist/primitives/composer/ComposerQuote.d.ts +13 -15
  299. package/dist/primitives/composer/ComposerQuote.d.ts.map +1 -1
  300. package/dist/primitives/composer/ComposerQuote.js +1 -1
  301. package/dist/primitives/composer/ComposerRoot.d.ts +26 -28
  302. package/dist/primitives/composer/ComposerRoot.d.ts.map +1 -1
  303. package/dist/primitives/composer/ComposerRoot.js +1 -1
  304. package/dist/primitives/composer/ComposerSend.d.ts +9 -11
  305. package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
  306. package/dist/primitives/composer/ComposerStopDictation.d.ts +6 -7
  307. package/dist/primitives/composer/ComposerStopDictation.d.ts.map +1 -1
  308. package/dist/primitives/composer/ComposerStopDictation.js +1 -1
  309. package/dist/primitives/composer/trigger/TriggerPopover.d.ts +27 -29
  310. package/dist/primitives/composer/trigger/TriggerPopover.d.ts.map +1 -1
  311. package/dist/primitives/composer/trigger/TriggerPopover.js +2 -2
  312. package/dist/primitives/composer/trigger/TriggerPopoverAction.d.ts +10 -12
  313. package/dist/primitives/composer/trigger/TriggerPopoverAction.d.ts.map +1 -1
  314. package/dist/primitives/composer/trigger/TriggerPopoverAction.js +1 -1
  315. package/dist/primitives/composer/trigger/TriggerPopoverBack.d.ts +5 -7
  316. package/dist/primitives/composer/trigger/TriggerPopoverBack.d.ts.map +1 -1
  317. package/dist/primitives/composer/trigger/TriggerPopoverCategories.d.ts +16 -18
  318. package/dist/primitives/composer/trigger/TriggerPopoverCategories.d.ts.map +1 -1
  319. package/dist/primitives/composer/trigger/TriggerPopoverDirective.d.ts +8 -10
  320. package/dist/primitives/composer/trigger/TriggerPopoverDirective.d.ts.map +1 -1
  321. package/dist/primitives/composer/trigger/TriggerPopoverDirective.js +1 -1
  322. package/dist/primitives/composer/trigger/TriggerPopoverItems.d.ts +18 -20
  323. package/dist/primitives/composer/trigger/TriggerPopoverItems.d.ts.map +1 -1
  324. package/dist/primitives/composer/trigger/TriggerPopoverResource.d.ts +41 -43
  325. package/dist/primitives/composer/trigger/TriggerPopoverResource.d.ts.map +1 -1
  326. package/dist/primitives/composer/trigger/TriggerPopoverRootContext.d.ts +27 -28
  327. package/dist/primitives/composer/trigger/TriggerPopoverRootContext.d.ts.map +1 -1
  328. package/dist/primitives/composer/trigger/detectTrigger.d.ts +3 -5
  329. package/dist/primitives/composer/trigger/detectTrigger.d.ts.map +1 -1
  330. package/dist/primitives/composer/trigger/index.d.ts +15 -18
  331. package/dist/primitives/composer/trigger/index.d.ts.map +1 -1
  332. package/dist/primitives/composer/trigger/matchesTriggerItemQuery.d.ts +1 -3
  333. package/dist/primitives/composer/trigger/matchesTriggerItemQuery.d.ts.map +1 -1
  334. package/dist/primitives/composer/trigger/triggerDetectionResource.d.ts +10 -12
  335. package/dist/primitives/composer/trigger/triggerDetectionResource.d.ts.map +1 -1
  336. package/dist/primitives/composer/trigger/triggerKeyboardResource.d.ts +22 -24
  337. package/dist/primitives/composer/trigger/triggerKeyboardResource.d.ts.map +1 -1
  338. package/dist/primitives/composer/trigger/triggerNavigationResource.d.ts +18 -20
  339. package/dist/primitives/composer/trigger/triggerNavigationResource.d.ts.map +1 -1
  340. package/dist/primitives/composer/trigger/triggerSelectionResource.d.ts +23 -25
  341. package/dist/primitives/composer/trigger/triggerSelectionResource.d.ts.map +1 -1
  342. package/dist/primitives/composer/useComposerInputState.d.ts +4 -6
  343. package/dist/primitives/composer/useComposerInputState.d.ts.map +1 -1
  344. package/dist/primitives/composer.d.ts +31 -25
  345. package/dist/primitives/composer.d.ts.map +1 -1
  346. package/dist/primitives/dropdownMenuRenderPrimitives.d.ts +9 -11
  347. package/dist/primitives/dropdownMenuRenderPrimitives.d.ts.map +1 -1
  348. package/dist/primitives/error/ErrorMessage.d.ts +5 -7
  349. package/dist/primitives/error/ErrorMessage.d.ts.map +1 -1
  350. package/dist/primitives/error/ErrorRoot.d.ts +5 -7
  351. package/dist/primitives/error/ErrorRoot.d.ts.map +1 -1
  352. package/dist/primitives/error.d.ts +2 -7
  353. package/dist/primitives/error.d.ts.map +1 -1
  354. package/dist/primitives/message/MessageAttachments.d.ts +2 -2
  355. package/dist/primitives/message/MessageAttachments.d.ts.map +1 -0
  356. package/dist/primitives/message/MessageError.d.ts +1 -3
  357. package/dist/primitives/message/MessageError.d.ts.map +1 -1
  358. package/dist/primitives/message/MessageIf.d.ts +15 -16
  359. package/dist/primitives/message/MessageIf.d.ts.map +1 -1
  360. package/dist/primitives/message/MessageParts.d.ts +4 -6
  361. package/dist/primitives/message/MessageParts.d.ts.map +1 -1
  362. package/dist/primitives/message/MessagePartsGrouped.d.ts +132 -133
  363. package/dist/primitives/message/MessagePartsGrouped.d.ts.map +1 -1
  364. package/dist/primitives/message/MessagePartsGrouped.js +103 -71
  365. package/dist/primitives/message/MessagePartsGrouped.js.map +1 -1
  366. package/dist/primitives/message/MessageRoot.d.ts +5 -7
  367. package/dist/primitives/message/MessageRoot.d.ts.map +1 -1
  368. package/dist/primitives/message/MessageRoot.js +6 -2
  369. package/dist/primitives/message/MessageRoot.js.map +1 -1
  370. package/dist/primitives/message.d.ts +12 -12
  371. package/dist/primitives/message.d.ts.map +1 -1
  372. package/dist/primitives/messagePart/MessagePartImage.d.ts +9 -11
  373. package/dist/primitives/messagePart/MessagePartImage.d.ts.map +1 -1
  374. package/dist/primitives/messagePart/MessagePartInProgress.d.ts +2 -2
  375. package/dist/primitives/messagePart/MessagePartInProgress.d.ts.map +1 -0
  376. package/dist/primitives/messagePart/MessagePartText.d.ts +35 -37
  377. package/dist/primitives/messagePart/MessagePartText.d.ts.map +1 -1
  378. package/dist/primitives/messagePart/useMessagePartData.d.ts +1 -3
  379. package/dist/primitives/messagePart/useMessagePartData.d.ts.map +1 -1
  380. package/dist/primitives/messagePart/useMessagePartFile.d.ts +2 -4
  381. package/dist/primitives/messagePart/useMessagePartFile.d.ts.map +1 -1
  382. package/dist/primitives/messagePart/useMessagePartImage.d.ts +2 -4
  383. package/dist/primitives/messagePart/useMessagePartImage.d.ts.map +1 -1
  384. package/dist/primitives/messagePart/useMessagePartReasoning.d.ts +2 -4
  385. package/dist/primitives/messagePart/useMessagePartReasoning.d.ts.map +1 -1
  386. package/dist/primitives/messagePart/useMessagePartSource.d.ts +19 -21
  387. package/dist/primitives/messagePart/useMessagePartSource.d.ts.map +1 -1
  388. package/dist/primitives/messagePart/useMessagePartText.d.ts +3 -5
  389. package/dist/primitives/messagePart/useMessagePartText.d.ts.map +1 -1
  390. package/dist/primitives/messagePart.d.ts +4 -9
  391. package/dist/primitives/messagePart.d.ts.map +1 -1
  392. package/dist/primitives/queueItem/QueueItemRemove.d.ts +6 -7
  393. package/dist/primitives/queueItem/QueueItemRemove.d.ts.map +1 -1
  394. package/dist/primitives/queueItem/QueueItemRemove.js +1 -1
  395. package/dist/primitives/queueItem/QueueItemSteer.d.ts +6 -7
  396. package/dist/primitives/queueItem/QueueItemSteer.d.ts.map +1 -1
  397. package/dist/primitives/queueItem/QueueItemSteer.js +1 -1
  398. package/dist/primitives/queueItem/QueueItemText.d.ts +5 -7
  399. package/dist/primitives/queueItem/QueueItemText.d.ts.map +1 -1
  400. package/dist/primitives/queueItem/QueueItemText.js +1 -1
  401. package/dist/primitives/queueItem.d.ts +3 -8
  402. package/dist/primitives/queueItem.d.ts.map +1 -1
  403. package/dist/primitives/reasoning/useScrollLock.d.ts +1 -3
  404. package/dist/primitives/reasoning/useScrollLock.d.ts.map +1 -1
  405. package/dist/primitives/reasoning/useScrollLock.js +14 -15
  406. package/dist/primitives/reasoning/useScrollLock.js.map +1 -1
  407. package/dist/primitives/selectionToolbar/SelectionToolbarQuote.d.ts +5 -7
  408. package/dist/primitives/selectionToolbar/SelectionToolbarQuote.d.ts.map +1 -1
  409. package/dist/primitives/selectionToolbar/SelectionToolbarQuote.js +1 -1
  410. package/dist/primitives/selectionToolbar/SelectionToolbarRoot.d.ts +12 -13
  411. package/dist/primitives/selectionToolbar/SelectionToolbarRoot.d.ts.map +1 -1
  412. package/dist/primitives/selectionToolbar/SelectionToolbarRoot.js +81 -42
  413. package/dist/primitives/selectionToolbar/SelectionToolbarRoot.js.map +1 -1
  414. package/dist/primitives/selectionToolbar.d.ts +2 -7
  415. package/dist/primitives/selectionToolbar.d.ts.map +1 -1
  416. package/dist/primitives/suggestion/SuggestionDescription.d.ts +5 -7
  417. package/dist/primitives/suggestion/SuggestionDescription.d.ts.map +1 -1
  418. package/dist/primitives/suggestion/SuggestionDescription.js +1 -1
  419. package/dist/primitives/suggestion/SuggestionTitle.d.ts +5 -7
  420. package/dist/primitives/suggestion/SuggestionTitle.d.ts.map +1 -1
  421. package/dist/primitives/suggestion/SuggestionTitle.js +1 -1
  422. package/dist/primitives/suggestion/SuggestionTrigger.d.ts +35 -36
  423. package/dist/primitives/suggestion/SuggestionTrigger.d.ts.map +1 -1
  424. package/dist/primitives/suggestion.d.ts +3 -8
  425. package/dist/primitives/suggestion.d.ts.map +1 -1
  426. package/dist/primitives/thread/ThreadEmpty.d.ts +2 -4
  427. package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
  428. package/dist/primitives/thread/ThreadIf.d.ts +7 -8
  429. package/dist/primitives/thread/ThreadIf.d.ts.map +1 -1
  430. package/dist/primitives/thread/ThreadMessages.d.ts +2 -2
  431. package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -0
  432. package/dist/primitives/thread/ThreadRoot.d.ts +9 -11
  433. package/dist/primitives/thread/ThreadRoot.d.ts.map +1 -1
  434. package/dist/primitives/thread/ThreadRoot.js +15 -8
  435. package/dist/primitives/thread/ThreadRoot.js.map +1 -1
  436. package/dist/primitives/thread/ThreadRootElementContext.d.ts +4 -0
  437. package/dist/primitives/thread/ThreadRootElementContext.d.ts.map +1 -0
  438. package/dist/primitives/thread/ThreadRootElementContext.js +11 -0
  439. package/dist/primitives/thread/ThreadRootElementContext.js.map +1 -0
  440. package/dist/primitives/thread/ThreadScrollToBottom.d.ts +11 -13
  441. package/dist/primitives/thread/ThreadScrollToBottom.d.ts.map +1 -1
  442. package/dist/primitives/thread/ThreadSuggestion.d.ts +47 -48
  443. package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
  444. package/dist/primitives/thread/ThreadSuggestions.d.ts +2 -2
  445. package/dist/primitives/thread/ThreadSuggestions.d.ts.map +1 -0
  446. package/dist/primitives/thread/ThreadViewport.d.ts +88 -90
  447. package/dist/primitives/thread/ThreadViewport.d.ts.map +1 -1
  448. package/dist/primitives/thread/ThreadViewport.js +1 -1
  449. package/dist/primitives/thread/ThreadViewportFooter.d.ts +5 -7
  450. package/dist/primitives/thread/ThreadViewportFooter.d.ts.map +1 -1
  451. package/dist/primitives/thread/topAnchor/computeTopAnchorSlack.d.ts +6 -8
  452. package/dist/primitives/thread/topAnchor/computeTopAnchorSlack.d.ts.map +1 -1
  453. package/dist/primitives/thread/topAnchor/createReserveObservers.d.ts +2 -4
  454. package/dist/primitives/thread/topAnchor/createReserveObservers.d.ts.map +1 -1
  455. package/dist/primitives/thread/topAnchor/mountTopAnchorReserve.d.ts +16 -18
  456. package/dist/primitives/thread/topAnchor/mountTopAnchorReserve.d.ts.map +1 -1
  457. package/dist/primitives/thread/topAnchor/mountTopAnchorReserve.js +55 -6
  458. package/dist/primitives/thread/topAnchor/mountTopAnchorReserve.js.map +1 -1
  459. package/dist/primitives/thread/topAnchor/topAnchorTurn.d.ts +10 -11
  460. package/dist/primitives/thread/topAnchor/topAnchorTurn.d.ts.map +1 -1
  461. package/dist/primitives/thread/topAnchor/topAnchorUtils.d.ts +0 -2
  462. package/dist/primitives/thread/topAnchor/topAnchorUtils.d.ts.map +1 -1
  463. package/dist/primitives/thread/topAnchor/useTopAnchorReserve.d.ts +0 -2
  464. package/dist/primitives/thread/topAnchor/useTopAnchorReserve.d.ts.map +1 -1
  465. package/dist/primitives/thread/useThreadViewportAutoScroll.d.ts +29 -31
  466. package/dist/primitives/thread/useThreadViewportAutoScroll.d.ts.map +1 -1
  467. package/dist/primitives/thread/useThreadViewportAutoScroll.js +16 -1
  468. package/dist/primitives/thread/useThreadViewportAutoScroll.js.map +1 -1
  469. package/dist/primitives/thread.d.ts +12 -15
  470. package/dist/primitives/thread.d.ts.map +1 -1
  471. package/dist/primitives/threadList/ThreadListItems.d.ts +2 -2
  472. package/dist/primitives/threadList/ThreadListItems.d.ts.map +1 -0
  473. package/dist/primitives/threadList/ThreadListLoadMore.d.ts +6 -7
  474. package/dist/primitives/threadList/ThreadListLoadMore.d.ts.map +1 -1
  475. package/dist/primitives/threadList/ThreadListNew.d.ts +5 -7
  476. package/dist/primitives/threadList/ThreadListNew.d.ts.map +1 -1
  477. package/dist/primitives/threadList/ThreadListNew.js +1 -1
  478. package/dist/primitives/threadList/ThreadListRoot.d.ts +6 -7
  479. package/dist/primitives/threadList/ThreadListRoot.d.ts.map +1 -1
  480. package/dist/primitives/threadList.d.ts +5 -9
  481. package/dist/primitives/threadList.d.ts.map +1 -1
  482. package/dist/primitives/threadListFocusGroup.d.ts +14 -16
  483. package/dist/primitives/threadListFocusGroup.d.ts.map +1 -1
  484. package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts +6 -7
  485. package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
  486. package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts +6 -7
  487. package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts.map +1 -1
  488. package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +6 -7
  489. package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -1
  490. package/dist/primitives/threadListItem/ThreadListItemRoot.js +1 -1
  491. package/dist/primitives/threadListItem/ThreadListItemTitle.d.ts +2 -2
  492. package/dist/primitives/threadListItem/ThreadListItemTitle.d.ts.map +1 -0
  493. package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +6 -7
  494. package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -1
  495. package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts +6 -7
  496. package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -1
  497. package/dist/primitives/threadListItem.d.ts +6 -11
  498. package/dist/primitives/threadListItem.d.ts.map +1 -1
  499. package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.d.ts +10 -12
  500. package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.d.ts.map +1 -1
  501. package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.d.ts +7 -9
  502. package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.d.ts.map +1 -1
  503. package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.d.ts +11 -13
  504. package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.d.ts.map +1 -1
  505. package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.d.ts +7 -9
  506. package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.d.ts.map +1 -1
  507. package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.d.ts +7 -9
  508. package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.d.ts.map +1 -1
  509. package/dist/primitives/threadListItemMore/scope.d.ts +4 -6
  510. package/dist/primitives/threadListItemMore/scope.d.ts.map +1 -1
  511. package/dist/primitives/threadListItemMore.d.ts +5 -10
  512. package/dist/primitives/threadListItemMore.d.ts.map +1 -1
  513. package/dist/sandbox-host/SandboxHost.d.ts +24 -26
  514. package/dist/sandbox-host/SandboxHost.d.ts.map +1 -1
  515. package/dist/unstable/useComposerInput.d.ts +32 -34
  516. package/dist/unstable/useComposerInput.d.ts.map +1 -1
  517. package/dist/unstable/useComposerInput.js +1 -1
  518. package/dist/unstable/useComposerInputHistory.d.ts +3 -5
  519. package/dist/unstable/useComposerInputHistory.d.ts.map +1 -1
  520. package/dist/unstable/useComposerInputHistory.js +2 -2
  521. package/dist/unstable/useLiveCompletionAdapter.d.ts +18 -20
  522. package/dist/unstable/useLiveCompletionAdapter.d.ts.map +1 -1
  523. package/dist/unstable/useMentionAdapter.d.ts +57 -59
  524. package/dist/unstable/useMentionAdapter.d.ts.map +1 -1
  525. package/dist/unstable/useMentionAdapter.js +1 -1
  526. package/dist/unstable/useMessageStallDetection.d.ts +10 -12
  527. package/dist/unstable/useMessageStallDetection.d.ts.map +1 -1
  528. package/dist/unstable/useMessageStallDetection.js +1 -1
  529. package/dist/unstable/useModelContextSnapshot.d.ts +13 -15
  530. package/dist/unstable/useModelContextSnapshot.d.ts.map +1 -1
  531. package/dist/unstable/useSlashCommandAdapter.d.ts +20 -22
  532. package/dist/unstable/useSlashCommandAdapter.d.ts.map +1 -1
  533. package/dist/unstable/webmcp/WebMcpRegistrationResource.d.ts +7 -9
  534. package/dist/unstable/webmcp/WebMcpRegistrationResource.d.ts.map +1 -1
  535. package/dist/unstable/webmcp/convertTools.d.ts +5 -7
  536. package/dist/unstable/webmcp/convertTools.d.ts.map +1 -1
  537. package/dist/unstable/webmcp/convertTools.js +2 -2
  538. package/dist/unstable/webmcp/convertTools.js.map +1 -1
  539. package/dist/unstable/webmcp/useWebMcpProvider.d.ts +4 -6
  540. package/dist/unstable/webmcp/useWebMcpProvider.d.ts.map +1 -1
  541. package/dist/unstable/webmcp/useWebMcpProvider.js +1 -1
  542. package/dist/unstable/webmcp/webmcp-host.d.ts +23 -25
  543. package/dist/unstable/webmcp/webmcp-host.d.ts.map +1 -1
  544. package/dist/utils/Primitive.d.ts +91 -92
  545. package/dist/utils/Primitive.d.ts.map +1 -1
  546. package/dist/utils/RequireAtLeastOne.d.ts +3 -3
  547. package/dist/utils/RequireAtLeastOne.d.ts.map +1 -1
  548. package/dist/utils/createActionButton.d.ts +5 -6
  549. package/dist/utils/createActionButton.d.ts.map +1 -1
  550. package/dist/utils/getSelectionMessageId.d.ts +1 -3
  551. package/dist/utils/getSelectionMessageId.d.ts.map +1 -1
  552. package/dist/utils/getSelectionMessageId.js +2 -1
  553. package/dist/utils/getSelectionMessageId.js.map +1 -1
  554. package/dist/utils/hooks/useManagedRef.d.ts +0 -2
  555. package/dist/utils/hooks/useManagedRef.d.ts.map +1 -1
  556. package/dist/utils/hooks/useMediaQuery.d.ts +0 -2
  557. package/dist/utils/hooks/useMediaQuery.d.ts.map +1 -1
  558. package/dist/utils/hooks/useOnResizeContent.d.ts +0 -2
  559. package/dist/utils/hooks/useOnResizeContent.d.ts.map +1 -1
  560. package/dist/utils/hooks/useOnScrollToBottom.d.ts +1 -3
  561. package/dist/utils/hooks/useOnScrollToBottom.d.ts.map +1 -1
  562. package/dist/utils/hooks/useSizeHandle.d.ts +1 -3
  563. package/dist/utils/hooks/useSizeHandle.d.ts.map +1 -1
  564. package/dist/utils/smooth/SmoothContext.d.ts +105 -107
  565. package/dist/utils/smooth/SmoothContext.d.ts.map +1 -1
  566. package/dist/utils/smooth/SmoothContext.js +1 -1
  567. package/dist/utils/smooth/useSmooth.d.ts +26 -28
  568. package/dist/utils/smooth/useSmooth.d.ts.map +1 -1
  569. package/dist/utils/smooth/useSmooth.js +1 -1
  570. package/package.json +8 -8
  571. package/src/assistant-transport.ts +5 -4
  572. package/src/cloud-renderer/CloudRendererHost.test.tsx +362 -0
  573. package/src/cloud-renderer/CloudRendererHost.tsx +249 -0
  574. package/src/index.ts +29 -1
  575. package/src/primitives/actionBar/ActionBarExportMarkdown.test.tsx +30 -0
  576. package/src/primitives/actionBar/ActionBarExportMarkdown.tsx +4 -0
  577. package/src/primitives/actionBar/ActionBarFeedback.test.tsx +87 -0
  578. package/src/primitives/actionBar/ActionBarFeedbackNegative.tsx +1 -0
  579. package/src/primitives/actionBar/ActionBarFeedbackPositive.tsx +1 -0
  580. package/src/primitives/composer/ComposerAttachmentDropzone.test.tsx +54 -0
  581. package/src/primitives/composer/ComposerAttachmentDropzone.tsx +12 -6
  582. package/src/primitives/composer/ComposerInput.test.tsx +18 -0
  583. package/src/primitives/composer/ComposerInput.tsx +8 -2
  584. package/src/primitives/message/MessagePartsGrouped.test.tsx +151 -4
  585. package/src/primitives/message/MessagePartsGrouped.tool-interaction.test.tsx +97 -0
  586. package/src/primitives/message/MessagePartsGrouped.tsx +14 -5
  587. package/src/primitives/message/MessageRoot.test.tsx +108 -0
  588. package/src/primitives/message/MessageRoot.tsx +5 -1
  589. package/src/primitives/reasoning/useScrollLock.test.tsx +47 -0
  590. package/src/primitives/reasoning/useScrollLock.ts +15 -17
  591. package/src/primitives/selectionToolbar/SelectionToolbarRoot.test.tsx +228 -14
  592. package/src/primitives/selectionToolbar/SelectionToolbarRoot.tsx +60 -12
  593. package/src/primitives/thread/ThreadRoot.tsx +10 -1
  594. package/src/primitives/thread/ThreadRootElementContext.ts +10 -0
  595. package/src/primitives/thread/topAnchor/mountTopAnchorReserve.test.ts +196 -0
  596. package/src/primitives/thread/topAnchor/mountTopAnchorReserve.ts +78 -5
  597. package/src/primitives/thread/useThreadViewportAutoScroll.test.tsx +222 -0
  598. package/src/primitives/thread/useThreadViewportAutoScroll.ts +37 -2
  599. package/src/tests/augmentations.test.ts +7 -0
  600. package/src/unstable/webmcp/convertTools.test.ts +23 -3
  601. package/src/unstable/webmcp/convertTools.ts +7 -11
  602. package/src/utils/getSelectionMessageId.test.ts +28 -0
  603. package/src/utils/getSelectionMessageId.ts +7 -1
  604. package/dist/tests/remote-thread-list-test-helpers.d.ts +0 -5
  605. package/dist/tests/remote-thread-list-test-helpers.d.ts.map +0 -1
  606. package/dist/tests/remote-thread-list-test-helpers.js +0 -29
  607. package/dist/tests/remote-thread-list-test-helpers.js.map +0 -1
  608. package/dist/tests/setup.d.ts +0 -1
  609. package/dist/tests/setup.js +0 -6
  610. package/dist/tests/setup.js.map +0 -1
@@ -1,39 +1,38 @@
1
- import { TriggerPopoverAriaProps } from "../primitives/composer/useComposerInputState.js";
2
- import { ComposerSendOptions } from "@assistant-ui/core/store";
3
- //#region src/unstable/useComposerInput.d.ts
1
+ import type { ComposerSendOptions } from "@assistant-ui/core/store";
2
+ import { type TriggerPopoverAriaProps } from "../primitives/composer/useComposerInputState.js";
4
3
  export type Unstable_UseComposerInputOptions = {
5
- /**
6
- * Disables the input in addition to the composer's own disabled sources
7
- * (thread disabled, active dictation). When disabled, `isDisabled` is `true`
8
- * and `canSend` is `false`.
9
- */
10
- disabled?: boolean | undefined;
4
+ /**
5
+ * Disables the input in addition to the composer's own disabled sources
6
+ * (thread disabled, active dictation). When disabled, `isDisabled` is `true`
7
+ * and `canSend` is `false`.
8
+ */
9
+ disabled?: boolean | undefined;
11
10
  };
12
11
  export type Unstable_ComposerInput = {
13
- /** Current composer text, or `""` when the composer is not editing. */
14
- value: string;
15
- /**
16
- * Writes `text` into the composer, mirroring `ComposerPrimitive.Input`:
17
- * a no-op unless the composer is editing; the controlled value stays in
18
- * sync within the same tick.
19
- */
20
- setText(text: string): void;
21
- /**
22
- * Sends the current message when `canSend` is `true`; otherwise a no-op.
23
- * Accepts the same options as the composer send action.
24
- */
25
- send(options?: ComposerSendOptions): void;
26
- /**
27
- * Whether the input is disabled, combining the `disabled` option with the
28
- * composer's own disabled sources (thread disabled, active dictation).
29
- */
30
- isDisabled: boolean;
31
- /**
32
- * Whether a send is currently available. Matches `ComposerPrimitive.Send`
33
- * gating (non-empty editing composer, not running without queue support) and
34
- * is additionally `false` while `isDisabled`.
35
- */
36
- canSend: boolean;
12
+ /** Current composer text, or `""` when the composer is not editing. */
13
+ value: string;
14
+ /**
15
+ * Writes `text` into the composer, mirroring `ComposerPrimitive.Input`:
16
+ * a no-op unless the composer is editing; the controlled value stays in
17
+ * sync within the same tick.
18
+ */
19
+ setText(text: string): void;
20
+ /**
21
+ * Sends the current message when `canSend` is `true`; otherwise a no-op.
22
+ * Accepts the same options as the composer send action.
23
+ */
24
+ send(options?: ComposerSendOptions): void;
25
+ /**
26
+ * Whether the input is disabled, combining the `disabled` option with the
27
+ * composer's own disabled sources (thread disabled, active dictation).
28
+ */
29
+ isDisabled: boolean;
30
+ /**
31
+ * Whether a send is currently available. Matches `ComposerPrimitive.Send`
32
+ * gating (non-empty editing composer, not running without queue support) and
33
+ * is additionally `false` while `isDisabled`.
34
+ */
35
+ canSend: boolean;
37
36
  };
38
37
  /**
39
38
  * @deprecated Under active development and might change without notice.
@@ -79,5 +78,4 @@ export type Unstable_TriggerPopoverAriaProps = TriggerPopoverAriaProps;
79
78
  * ```
80
79
  */
81
80
  export declare function unstable_useTriggerPopoverAriaProps(): Unstable_TriggerPopoverAriaProps;
82
- //#endregion
83
81
  //# sourceMappingURL=useComposerInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useComposerInput.d.ts","names":[],"sources":["../../src/unstable/useComposerInput.ts"],"mappings":";;;YAcY;;;;;;EAMV;;YAGU;;EAEV;;;;;;EAMA,QAAQ;;;;;EAKR,KAAK,UAAU;;;;;EAKf;;;;;;EAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA6Bc,0BACd,UAAU,mCACT;YA4BS,mCAAmC;;;;;;;;;;;;;;;;wBAiB/B,uCAAuC"}
1
+ {"version":3,"file":"useComposerInput.d.ts","sourceRoot":"","sources":["../../src/unstable/useComposerInput.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EACL,KAAK,uBAAuB,EAI7B,wDAAqD;AAEtD,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC1C;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,CAAC,EAAE,gCAAgC,GACzC,sBAAsB,CA0BxB;AAED,MAAM,MAAM,gCAAgC,GAAG,uBAAuB,CAAC;AAEvE;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mCAAmC,IAAI,gCAAgC,CAEtF"}
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { useComposerInputDisabled, useComposerInputValue, useTriggerPopoverAriaProps } from "../primitives/composer/useComposerInputState.js";
3
3
  import { useComposerSend } from "@assistant-ui/core/react";
4
- import { useAui } from "@assistant-ui/store";
5
4
  import { useCallback } from "@assistant-ui/tap/react-shim";
5
+ import { useAui } from "@assistant-ui/store";
6
6
  import { flushTapSync } from "@assistant-ui/tap";
7
7
  //#region src/unstable/useComposerInput.ts
8
8
  /**
@@ -1,8 +1,7 @@
1
- import { KeyboardEventHandler } from "react";
2
- //#region src/unstable/useComposerInputHistory.d.ts
1
+ import { type KeyboardEventHandler } from "react";
3
2
  export type Unstable_ComposerInputHistory = {
4
- /** Keydown handler to spread onto `ComposerPrimitive.Input`. */
5
- onKeyDown: KeyboardEventHandler<HTMLTextAreaElement>;
3
+ /** Keydown handler to spread onto `ComposerPrimitive.Input`. */
4
+ onKeyDown: KeyboardEventHandler<HTMLTextAreaElement>;
6
5
  };
7
6
  /**
8
7
  * @deprecated Under active development and might change without notice.
@@ -25,5 +24,4 @@ export type Unstable_ComposerInputHistory = {
25
24
  * ```
26
25
  */
27
26
  export declare function unstable_useComposerInputHistory(): Unstable_ComposerInputHistory;
28
- //#endregion
29
27
  //# sourceMappingURL=useComposerInputHistory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useComposerInputHistory.d.ts","names":[],"sources":["../../src/unstable/useComposerInputHistory.ts"],"mappings":";;YAgBY;;EAEV,WAAW,qBAAqB;;;;;;;;;;;;;;;;;;;;;;wBAgDlB,oCAAoC"}
1
+ {"version":3,"file":"useComposerInputHistory.d.ts","sourceRoot":"","sources":["../../src/unstable/useComposerInputHistory.ts"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,oBAAoB,EAC1B,MAAM,OAAO,CAAC;AAOf,MAAM,MAAM,6BAA6B,GAAG;IAC1C,gEAAgE;IAChE,SAAS,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;CACtD,CAAC;AA2BF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gCAAgC,IAAI,6BAA6B,CA6FhF"}
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { useTriggerPopoverRootContextOptional } from "../primitives/composer/trigger/TriggerPopoverRootContext.js";
3
- import { useAui } from "@assistant-ui/store";
4
3
  import { useCallback, useEffect, useMemo, useRef } from "@assistant-ui/tap/react-shim";
5
- import { getThreadMessageText } from "@assistant-ui/core/internal";
4
+ import { useAui } from "@assistant-ui/store";
6
5
  import { flushTapSync } from "@assistant-ui/tap";
6
+ import { getThreadMessageText } from "@assistant-ui/core/internal";
7
7
  //#region src/unstable/useComposerInputHistory.ts
8
8
  const deriveHistory = (messages) => {
9
9
  const entries = [];
@@ -1,21 +1,20 @@
1
- import { Unstable_TriggerAdapter, Unstable_TriggerItem } from "@assistant-ui/core";
2
- //#region src/unstable/useLiveCompletionAdapter.d.ts
1
+ import type { Unstable_TriggerAdapter, Unstable_TriggerItem } from "@assistant-ui/core";
3
2
  export type Unstable_UseLiveCompletionAdapterOptions = {
4
- /**
5
- * Fetches the items for a query from an async source. Called debounced; the
6
- * resolved items are cached and returned synchronously to the popover on the
7
- * next render.
8
- */
9
- readonly fetcher: (query: string) => Promise<readonly Unstable_TriggerItem[]>;
10
- /**
11
- * Identifies the fetcher's data source. Change this when switching accounts,
12
- * workspaces, or another boundary that should invalidate cached results.
13
- */
14
- readonly cacheKey?: string | number | undefined;
15
- /** Debounce applied before a fetch fires, in milliseconds. @default 60 */
16
- readonly debounceMs?: number | undefined;
17
- /** When `false`, no fetch is scheduled and the adapter stays empty. @default true */
18
- readonly enabled?: boolean | undefined;
3
+ /**
4
+ * Fetches the items for a query from an async source. Called debounced; the
5
+ * resolved items are cached and returned synchronously to the popover on the
6
+ * next render.
7
+ */
8
+ readonly fetcher: (query: string) => Promise<readonly Unstable_TriggerItem[]>;
9
+ /**
10
+ * Identifies the fetcher's data source. Change this when switching accounts,
11
+ * workspaces, or another boundary that should invalidate cached results.
12
+ */
13
+ readonly cacheKey?: string | number | undefined;
14
+ /** Debounce applied before a fetch fires, in milliseconds. @default 60 */
15
+ readonly debounceMs?: number | undefined;
16
+ /** When `false`, no fetch is scheduled and the adapter stays empty. @default true */
17
+ readonly enabled?: boolean | undefined;
19
18
  };
20
19
  /**
21
20
  * @deprecated Under active development and may change without notice.
@@ -45,8 +44,7 @@ export type Unstable_UseLiveCompletionAdapterOptions = {
45
44
  * ```
46
45
  */
47
46
  export declare function unstable_useLiveCompletionAdapter(options: Unstable_UseLiveCompletionAdapterOptions): {
48
- adapter: Unstable_TriggerAdapter;
49
- isLoading: boolean;
47
+ adapter: Unstable_TriggerAdapter;
48
+ isLoading: boolean;
50
49
  };
51
- //#endregion
52
50
  //# sourceMappingURL=useLiveCompletionAdapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLiveCompletionAdapter.d.ts","names":[],"sources":["../../src/unstable/useLiveCompletionAdapter.ts"],"mappings":";;YAeY;;;;;;WAMD,UAAU,kBAAkB,iBAAiB;;;;;WAK7C;;WAEA;;WAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAiCK,kCACd,SAAS;EACN,SAAS;EAAyB"}
1
+ {"version":3,"file":"useLiveCompletionAdapter.d.ts","sourceRoot":"","sources":["../../src/unstable/useLiveCompletionAdapter.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,wCAAwC,GAAG;IACrD;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,oBAAoB,EAAE,CAAC,CAAC;IAC9E;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAChD,0EAA0E;IAC1E,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,qFAAqF;IACrF,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACxC,CAAC;AAKF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,wCAAwC,GAChD;IAAE,OAAO,EAAE,uBAAuB,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CAiK1D"}
@@ -1,69 +1,68 @@
1
- import { Unstable_DirectiveFormatter, Unstable_TriggerAdapter, Unstable_TriggerItem } from "@assistant-ui/core";
2
- import { FC } from "react";
3
- import { ReadonlyJSONObject } from "assistant-stream/utils";
4
- //#region src/unstable/useMentionAdapter.d.ts
1
+ import { type FC } from "react";
2
+ import type { Unstable_DirectiveFormatter, Unstable_TriggerAdapter, Unstable_TriggerItem } from "@assistant-ui/core";
3
+ import type { ReadonlyJSONObject } from "assistant-stream/utils";
5
4
  /** Icon component shape consumed by `ComposerTriggerPopover`'s `iconMap`. */
6
5
  export type Unstable_IconComponent = FC<{
7
- className?: string;
6
+ className?: string;
8
7
  }>;
9
8
  export type Unstable_Mention = {
10
- readonly id: string;
11
- readonly type: string;
12
- readonly label: string;
13
- readonly description?: string | undefined;
14
- /** Shortcut for `metadata.icon`; merged with `metadata` if both are given. */
15
- readonly icon?: string | undefined;
16
- readonly metadata?: ReadonlyJSONObject | undefined;
9
+ readonly id: string;
10
+ readonly type: string;
11
+ readonly label: string;
12
+ readonly description?: string | undefined;
13
+ /** Shortcut for `metadata.icon`; merged with `metadata` if both are given. */
14
+ readonly icon?: string | undefined;
15
+ readonly metadata?: ReadonlyJSONObject | undefined;
17
16
  };
18
17
  export type Unstable_MentionCategory = {
19
- readonly id: string;
20
- readonly label: string;
21
- readonly items: readonly Unstable_Mention[];
22
- };
23
- export type Unstable_ModelContextToolsOptions = {
24
- /**
25
- * Wrap tools in a dedicated category. Selects drill-down mode on its own
26
- * when `categories` is unset and `items` is omitted.
27
- */
28
- readonly category?: {
29
18
  readonly id: string;
30
19
  readonly label: string;
31
- };
32
- /** Format tool name for display. */
33
- readonly formatLabel?: (toolName: string) => string;
34
- /** Default icon key for each tool. */
35
- readonly icon?: string;
20
+ readonly items: readonly Unstable_Mention[];
21
+ };
22
+ export type Unstable_ModelContextToolsOptions = {
23
+ /**
24
+ * Wrap tools in a dedicated category. Selects drill-down mode on its own
25
+ * when `categories` is unset and `items` is omitted.
26
+ */
27
+ readonly category?: {
28
+ readonly id: string;
29
+ readonly label: string;
30
+ };
31
+ /** Format tool name for display. */
32
+ readonly formatLabel?: (toolName: string) => string;
33
+ /** Default icon key for each tool. */
34
+ readonly icon?: string;
36
35
  };
37
36
  export type Unstable_UseMentionAdapterOptions = {
38
- /**
39
- * Flat mention list. Ignored when `categories` is set, and keeps the
40
- * adapter flat when a tool `category` is configured.
41
- */
42
- readonly items?: readonly Unstable_Mention[];
43
- /** Categorized mentions for drill-down navigation. */
44
- readonly categories?: readonly Unstable_MentionCategory[];
45
- /**
46
- * How tools registered in model context integrate.
47
- * - `false`: exclude.
48
- * - `true`: include (default when no `items`/`categories`; as a category
49
- * if `categories` is set, flat otherwise).
50
- * - object: explicit config; `category` also selects drill-down mode.
51
- *
52
- * Omitted → defaults to `true` iff neither `items` nor `categories`.
53
- */
54
- readonly includeModelContextTools?: boolean | Unstable_ModelContextToolsOptions;
55
- /** Directive formatter. @default unstable_defaultDirectiveFormatter */
56
- readonly formatter?: Unstable_DirectiveFormatter;
57
- /** Fires after an item is inserted into the composer. */
58
- readonly onInserted?: (item: Unstable_TriggerItem) => void;
59
- /** Maps `metadata.icon` / `category.id` string keys to React components. */
60
- readonly iconMap?: Record<string, Unstable_IconComponent>;
61
- /** Fallback icon when no entry in `iconMap` matches. */
62
- readonly fallbackIcon?: Unstable_IconComponent;
37
+ /**
38
+ * Flat mention list. Ignored when `categories` is set, and keeps the
39
+ * adapter flat when a tool `category` is configured.
40
+ */
41
+ readonly items?: readonly Unstable_Mention[];
42
+ /** Categorized mentions for drill-down navigation. */
43
+ readonly categories?: readonly Unstable_MentionCategory[];
44
+ /**
45
+ * How tools registered in model context integrate.
46
+ * - `false`: exclude.
47
+ * - `true`: include (default when no `items`/`categories`; as a category
48
+ * if `categories` is set, flat otherwise).
49
+ * - object: explicit config; `category` also selects drill-down mode.
50
+ *
51
+ * Omitted → defaults to `true` iff neither `items` nor `categories`.
52
+ */
53
+ readonly includeModelContextTools?: boolean | Unstable_ModelContextToolsOptions;
54
+ /** Directive formatter. @default unstable_defaultDirectiveFormatter */
55
+ readonly formatter?: Unstable_DirectiveFormatter;
56
+ /** Fires after an item is inserted into the composer. */
57
+ readonly onInserted?: (item: Unstable_TriggerItem) => void;
58
+ /** Maps `metadata.icon` / `category.id` string keys to React components. */
59
+ readonly iconMap?: Record<string, Unstable_IconComponent>;
60
+ /** Fallback icon when no entry in `iconMap` matches. */
61
+ readonly fallbackIcon?: Unstable_IconComponent;
63
62
  };
64
63
  export type Unstable_MentionDirective = {
65
- readonly formatter: Unstable_DirectiveFormatter;
66
- readonly onInserted?: ((item: Unstable_TriggerItem) => void) | undefined;
64
+ readonly formatter: Unstable_DirectiveFormatter;
65
+ readonly onInserted?: ((item: Unstable_TriggerItem) => void) | undefined;
67
66
  };
68
67
  /**
69
68
  * @deprecated Under active development and might change without notice.
@@ -79,10 +78,9 @@ export type Unstable_MentionDirective = {
79
78
  * ```
80
79
  */
81
80
  export declare function unstable_useMentionAdapter(options?: Unstable_UseMentionAdapterOptions): {
82
- adapter: Unstable_TriggerAdapter;
83
- directive: Unstable_MentionDirective;
84
- iconMap?: Record<string, Unstable_IconComponent>;
85
- fallbackIcon?: Unstable_IconComponent;
81
+ adapter: Unstable_TriggerAdapter;
82
+ directive: Unstable_MentionDirective;
83
+ iconMap?: Record<string, Unstable_IconComponent>;
84
+ fallbackIcon?: Unstable_IconComponent;
86
85
  };
87
- //#endregion
88
86
  //# sourceMappingURL=useMentionAdapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMentionAdapter.d.ts","names":[],"sources":["../../src/unstable/useMentionAdapter.ts"],"mappings":";;;;;YAoBY,yBAAyB;EAAK;;YAE9B;WACD;WACA;WACA;WACA;;WAEA;WACA,WAAW;;YAGV;WACD;WACA;WACA,gBAAgB;;YAGf;;;;;WAKD;aAAsB;aAAqB;;;WAE3C,eAAe;;WAEf;;YAGC;;;;;WAKD,iBAAiB;;WAEjB,sBAAsB;;;;;;;;;;WAUtB,qCAEL;;WAEK,YAAY;;WAEZ,cAAc,MAAM;;WAEpB,UAAU,eAAe;;WAEzB,eAAe;;YAGd;WACD,WAAW;WACX,eAAe,MAAM;;;;;;;;;;;;;;;wBAoDhB,2BACd,UAAU;EAEV,SAAS;EACT,WAAW;EACX,UAAU,eAAe;EACzB,eAAe"}
1
+ {"version":3,"file":"useMentionAdapter.d.ts","sourceRoot":"","sources":["../../src/unstable/useMentionAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EACV,2BAA2B,EAC3B,uBAAuB,EAEvB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAQjE,6EAA6E;AAC7E,MAAM,MAAM,sBAAsB,GAAG,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,8EAA8E;IAC9E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,QAAQ,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACpE,oCAAoC;IACpC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACpD,sCAAsC;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC7C,sDAAsD;IACtD,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,wBAAwB,EAAE,CAAC;IAC1D;;;;;;;;OAQG;IACH,QAAQ,CAAC,wBAAwB,CAAC,EAC9B,OAAO,GACP,iCAAiC,CAAC;IACtC,uEAAuE;IACvE,QAAQ,CAAC,SAAS,CAAC,EAAE,2BAA2B,CAAC;IACjD,yDAAyD;IACzD,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC3D,4EAA4E;IAC5E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IAC1D,wDAAwD;IACxD,QAAQ,CAAC,YAAY,CAAC,EAAE,sBAAsB,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,SAAS,EAAE,2BAA2B,CAAC;IAChD,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CAC1E,CAAC;AAsCF;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,CAAC,EAAE,iCAAiC,GAC1C;IACD,OAAO,EAAE,uBAAuB,CAAC;IACjC,SAAS,EAAE,yBAAyB,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IACjD,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACvC,CAoGA"}
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { matchesTriggerItemQuery } from "../primitives/composer/trigger/matchesTriggerItemQuery.js";
3
3
  import { shallowEqualRecords, useModelContextSnapshot } from "./useModelContextSnapshot.js";
4
+ import { useMemo } from "@assistant-ui/tap/react-shim";
4
5
  import { useAui } from "@assistant-ui/store";
5
6
  import { unstable_defaultDirectiveFormatter } from "@assistant-ui/core";
6
- import { useMemo } from "@assistant-ui/tap/react-shim";
7
7
  //#region src/unstable/useMentionAdapter.ts
8
8
  const EMPTY_TOOL_MENTIONS = Object.freeze({});
9
9
  const toolMentionSource = {
@@ -1,17 +1,16 @@
1
- //#region src/unstable/useMessageStallDetection.d.ts
2
1
  export type Unstable_MessageStallDetectionOptions = {
3
- /**
4
- * Milliseconds of unchanged message content before the message counts as
5
- * stalled.
6
- * @default 2000
7
- */
8
- thresholdMs?: number | undefined;
2
+ /**
3
+ * Milliseconds of unchanged message content before the message counts as
4
+ * stalled.
5
+ * @default 2000
6
+ */
7
+ thresholdMs?: number | undefined;
9
8
  };
10
9
  export type Unstable_MessageStallDetection = {
11
- /** True while the message is running and its content has not changed for at least `thresholdMs`. */
12
- stalled: boolean;
13
- /** Milliseconds since the last observed content change. `0` while not stalled. */
14
- stalledForMs: number;
10
+ /** True while the message is running and its content has not changed for at least `thresholdMs`. */
11
+ stalled: boolean;
12
+ /** Milliseconds since the last observed content change. `0` while not stalled. */
13
+ stalledForMs: number;
15
14
  };
16
15
  /**
17
16
  * @deprecated Under active development and might change without notice.
@@ -25,5 +24,4 @@ export type Unstable_MessageStallDetection = {
25
24
  * Must be used inside a message scope.
26
25
  */
27
26
  export declare function unstable_useMessageStallDetection(options?: Unstable_MessageStallDetectionOptions): Unstable_MessageStallDetection;
28
- //#endregion
29
27
  //# sourceMappingURL=useMessageStallDetection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMessageStallDetection.d.ts","names":[],"sources":["../../src/unstable/useMessageStallDetection.ts"],"mappings":";YAMY;;;;;;EAMV;;YAGU;;EAEV;;EAEA;;;;;;;;;;;;;wBAcc,kCACd,UAAU,wCACT"}
1
+ {"version":3,"file":"useMessageStallDetection.d.ts","sourceRoot":"","sources":["../../src/unstable/useMessageStallDetection.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,qCAAqC,GAAG;IAClD;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,oGAAoG;IACpG,OAAO,EAAE,OAAO,CAAC;IACjB,kFAAkF;IAClF,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,iCAAiC,CAC/C,OAAO,CAAC,EAAE,qCAAqC,GAC9C,8BAA8B,CA8DhC"}
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { useAuiState } from "@assistant-ui/store";
3
2
  import { useEffect, useRef, useState } from "@assistant-ui/tap/react-shim";
3
+ import { useAuiState } from "@assistant-ui/store";
4
4
  import { useShallowSelector } from "@assistant-ui/store/internal";
5
5
  //#region src/unstable/useMessageStallDetection.ts
6
6
  /**
@@ -1,23 +1,22 @@
1
- import { AssistantClient } from "@assistant-ui/store";
2
- import { Unsubscribe } from "@assistant-ui/core";
3
- //#region src/unstable/useModelContextSnapshot.d.ts
1
+ import type { AssistantClient } from "@assistant-ui/store";
2
+ import type { Unsubscribe } from "@assistant-ui/core";
4
3
  /**
5
4
  * Where a snapshot comes from and what counts as a change to it. Declared once
6
5
  * per consumer at module scope: the subscription effect keys on this object, so
7
6
  * an inline source without an `isEqual` re-reads itself into a render loop.
8
7
  */
9
8
  export type ModelContextSnapshotSource<T> = {
10
- /** Seeds the snapshot when it starts disabled. */
11
- readonly empty: T;
12
- /** Projects the fields the consumer observes out of the live model context. */
13
- read(aui: AssistantClient): T;
14
- subscribe(aui: AssistantClient, onChange: () => void): Unsubscribe;
15
- /**
16
- * An equal pair keeps the previous reference. Omitted by a consumer that
17
- * re-derives on every notification, where a caller republishing an unchanged
18
- * tool set is how it asks to be re-run.
19
- */
20
- isEqual?(previous: T, next: T): boolean;
9
+ /** Seeds the snapshot when it starts disabled. */
10
+ readonly empty: T;
11
+ /** Projects the fields the consumer observes out of the live model context. */
12
+ read(aui: AssistantClient): T;
13
+ subscribe(aui: AssistantClient, onChange: () => void): Unsubscribe;
14
+ /**
15
+ * An equal pair keeps the previous reference. Omitted by a consumer that
16
+ * re-derives on every notification, where a caller republishing an unchanged
17
+ * tool set is how it asks to be re-run.
18
+ */
19
+ isEqual?(previous: T, next: T): boolean;
21
20
  };
22
21
  /**
23
22
  * `getModelContext()` rebuilds its result on every call, so a projection of the
@@ -29,5 +28,4 @@ export type ModelContextSnapshotSource<T> = {
29
28
  export declare const useModelContextSnapshot: <T>(aui: AssistantClient, enabled: boolean, source: ModelContextSnapshotSource<T>) => T;
30
29
  /** Shallow own-key comparison, for a projection whose values are records. */
31
30
  export declare const shallowEqualRecords: (previous: Readonly<Record<string, unknown>>, next: Readonly<Record<string, unknown>>) => boolean;
32
- //#endregion
33
31
  //# sourceMappingURL=useModelContextSnapshot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useModelContextSnapshot.d.ts","names":[],"sources":["../../src/unstable/useModelContextSnapshot.ts"],"mappings":";;;;;;;;YAWY,2BAA2B;;WAE5B,OAAO;;EAEhB,KAAK,KAAK,kBAAkB;EAC5B,UAAU,KAAK,iBAAiB,uBAAuB;;;;;;EAMvD,SAAS,UAAU,GAAG,MAAM;;;;;;;;;qBAUjB,0BAA2B,GACtC,KAAK,iBACL,kBACA,QAAQ,2BAA2B,OAClC;;qBAqBU,sBACX,UAAU,SAAS,0BACnB,MAAM,SAAS"}
1
+ {"version":3,"file":"useModelContextSnapshot.d.ts","sourceRoot":"","sources":["../../src/unstable/useModelContextSnapshot.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,CAAC,CAAC,IAAI;IAC1C,kDAAkD;IAClD,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,+EAA+E;IAC/E,IAAI,CAAC,GAAG,EAAE,eAAe,GAAG,CAAC,CAAC;IAC9B,SAAS,CAAC,GAAG,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,WAAW,CAAC;IACnE;;;;OAIG;IACH,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC;CACzC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,GAAI,CAAC,EACvC,KAAK,eAAe,EACpB,SAAS,OAAO,EAChB,QAAQ,0BAA0B,CAAC,CAAC,CAAC,KACpC,CAkBF,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,mBAAmB,GAC9B,UAAU,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAC3C,MAAM,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,KACtC,OAMF,CAAC"}
@@ -1,25 +1,24 @@
1
- import { Unstable_IconComponent } from "./useMentionAdapter.js";
2
- import { Unstable_TriggerAdapter, Unstable_TriggerItem } from "@assistant-ui/core";
3
- //#region src/unstable/useSlashCommandAdapter.d.ts
1
+ import type { Unstable_TriggerAdapter, Unstable_TriggerItem } from "@assistant-ui/core";
2
+ import type { Unstable_IconComponent } from "./useMentionAdapter.js";
4
3
  export type Unstable_SlashCommand = {
5
- readonly id: string;
6
- readonly label?: string | undefined;
7
- readonly description?: string | undefined;
8
- readonly icon?: string | undefined;
9
- readonly execute: () => void;
4
+ readonly id: string;
5
+ readonly label?: string | undefined;
6
+ readonly description?: string | undefined;
7
+ readonly icon?: string | undefined;
8
+ readonly execute: () => void;
10
9
  };
11
10
  export type Unstable_UseSlashCommandAdapterOptions = {
12
- readonly commands: readonly Unstable_SlashCommand[];
13
- /** Strip the trigger text from the composer after executing. @default false */
14
- readonly removeOnExecute?: boolean | undefined;
15
- /** Maps `metadata.icon` / `category.id` string keys to React components. */
16
- readonly iconMap?: Record<string, Unstable_IconComponent>;
17
- /** Fallback icon when no entry in `iconMap` matches. */
18
- readonly fallbackIcon?: Unstable_IconComponent;
11
+ readonly commands: readonly Unstable_SlashCommand[];
12
+ /** Strip the trigger text from the composer after executing. @default false */
13
+ readonly removeOnExecute?: boolean | undefined;
14
+ /** Maps `metadata.icon` / `category.id` string keys to React components. */
15
+ readonly iconMap?: Record<string, Unstable_IconComponent>;
16
+ /** Fallback icon when no entry in `iconMap` matches. */
17
+ readonly fallbackIcon?: Unstable_IconComponent;
19
18
  };
20
19
  export type Unstable_SlashCommandAction = {
21
- readonly onExecute: (item: Unstable_TriggerItem) => void;
22
- readonly removeOnExecute?: boolean | undefined;
20
+ readonly onExecute: (item: Unstable_TriggerItem) => void;
21
+ readonly removeOnExecute?: boolean | undefined;
23
22
  };
24
23
  /**
25
24
  * @deprecated Under active development and may change without notice.
@@ -42,10 +41,9 @@ export type Unstable_SlashCommandAction = {
42
41
  * ```
43
42
  */
44
43
  export declare function unstable_useSlashCommandAdapter(options: Unstable_UseSlashCommandAdapterOptions): {
45
- adapter: Unstable_TriggerAdapter;
46
- action: Unstable_SlashCommandAction;
47
- iconMap?: Record<string, Unstable_IconComponent>;
48
- fallbackIcon?: Unstable_IconComponent;
44
+ adapter: Unstable_TriggerAdapter;
45
+ action: Unstable_SlashCommandAction;
46
+ iconMap?: Record<string, Unstable_IconComponent>;
47
+ fallbackIcon?: Unstable_IconComponent;
49
48
  };
50
- //#endregion
51
49
  //# sourceMappingURL=useSlashCommandAdapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSlashCommandAdapter.d.ts","names":[],"sources":["../../src/unstable/useSlashCommandAdapter.ts"],"mappings":";;;YAUY;WACD;WACA;WACA;WACA;WACA;;YAGC;WACD,mBAAmB;;WAEnB;;WAEA,UAAU,eAAe;;WAEzB,eAAe;;YAGd;WACD,YAAY,MAAM;WAClB;;;;;;;;;;;;;;;;;;;;;;wBAuBK,gCACd,SAAS;EAET,SAAS;EACT,QAAQ;EACR,UAAU,eAAe;EACzB,eAAe"}
1
+ {"version":3,"file":"useSlashCommandAdapter.d.ts","sourceRoot":"","sources":["../../src/unstable/useSlashCommandAdapter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,sBAAsB,EAAE,+BAA4B;AAGlE,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,QAAQ,CAAC,QAAQ,EAAE,SAAS,qBAAqB,EAAE,CAAC;IACpD,+EAA+E;IAC/E,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/C,4EAA4E;IAC5E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IAC1D,wDAAwD;IACxD,QAAQ,CAAC,YAAY,CAAC,EAAE,sBAAsB,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACzD,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,sCAAsC,GAC9C;IACD,OAAO,EAAE,uBAAuB,CAAC;IACjC,MAAM,EAAE,2BAA2B,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IACjD,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACvC,CAiDA"}
@@ -1,13 +1,11 @@
1
- import { WebMcpHost } from "./webmcp-host.js";
2
- import { Tool } from "assistant-stream";
3
- //#region src/unstable/webmcp/WebMcpRegistrationResource.d.ts
1
+ import type { Tool } from "assistant-stream";
2
+ import type { WebMcpHost } from "./webmcp-host.js";
4
3
  export type WebMcpRegistrationProps = {
5
- host: WebMcpHost;
6
- name: string;
7
- /** Re-registers when it changes; an execute-only edit reads through instead. */
8
- signature: string;
9
- tool: Tool<any, any>;
4
+ host: WebMcpHost;
5
+ name: string;
6
+ /** Re-registers when it changes; an execute-only edit reads through instead. */
7
+ signature: string;
8
+ tool: Tool<any, any>;
10
9
  };
11
10
  export declare const WebMcpRegistrationResource: import("@assistant-ui/tap").Resource<string | null, [WebMcpRegistrationProps]>;
12
- //#endregion
13
11
  //# sourceMappingURL=WebMcpRegistrationResource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebMcpRegistrationResource.d.ts","names":[],"sources":["../../../src/unstable/webmcp/WebMcpRegistrationResource.ts"],"mappings":";;;YAMY;EACV,MAAM;EACN;;EAEA;EACA,MAAM;;qBAgFK,wDAA0B,yBAAA"}
1
+ {"version":3,"file":"WebMcpRegistrationResource.d.ts","sourceRoot":"","sources":["../../../src/unstable/webmcp/WebMcpRegistrationResource.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAsB;AAEhD,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,gFAAgF;IAChF,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;CACtB,CAAC;AA+EF,eAAO,MAAM,0BAA0B,gFAAkC,CAAC"}
@@ -1,6 +1,5 @@
1
- import { WebMcpCallToolResult, WebMcpToolDescriptor } from "./webmcp-host.js";
2
- import { Tool } from "assistant-stream";
3
- //#region src/unstable/webmcp/convertTools.d.ts
1
+ import { type Tool } from "assistant-stream";
2
+ import type { WebMcpCallToolResult, WebMcpToolDescriptor } from "./webmcp-host.js";
4
3
  /**
5
4
  * The predicate the WebMCP provider uses when no `filter` is passed: an enabled
6
5
  * frontend tool with a client-side `execute`. A tool authored without a `type`
@@ -11,10 +10,9 @@ import { Tool } from "assistant-stream";
11
10
  export declare const defaultWebMcpFilter: (_name: string, tool: Tool<any, any>) => boolean;
12
11
  export declare const toWebMcpInputSchema: (tool: Tool<any, any>) => unknown;
13
12
  export declare const toMcpContent: (result: unknown, options: {
14
- tool: Tool<any, any>;
15
- toolCallId: string;
16
- args: Record<string, unknown>;
13
+ tool: Tool<any, any>;
14
+ toolCallId: string;
15
+ args: Record<string, unknown>;
17
16
  }) => Promise<WebMcpCallToolResult>;
18
17
  export declare const toWebMcpTool: (name: string, getTool: () => Tool<any, any>, lifecycleSignal?: AbortSignal) => WebMcpToolDescriptor;
19
- //#endregion
20
18
  //# sourceMappingURL=convertTools.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"convertTools.d.ts","names":[],"sources":["../../../src/unstable/webmcp/convertTools.ts"],"mappings":";;;;;;;;;;qBAoBa,sBACX,eACA,MAAM;qBAMK,sBAAuB,MAAM;qBA2C7B,eACX,iBACA;EACE,MAAM;EACN;EACA,MAAM;MAEP,QAAQ;qBAwGE,eACX,cACA,eAAe,gBACf,kBAAkB,gBACjB"}
1
+ {"version":3,"file":"convertTools.d.ts","sourceRoot":"","sources":["../../../src/unstable/webmcp/convertTools.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,IAAI,EAEV,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EACV,oBAAoB,EAEpB,oBAAoB,EACrB,yBAAsB;AAEvB;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,MAAM,EACb,MAAM,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,KACnB,OAGa,CAAC;AAEjB,eAAO,MAAM,mBAAmB,GAAI,MAAM,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,KAAG,OAGnB,CAAC;AAwCzC,eAAO,MAAM,YAAY,GACvB,QAAQ,OAAO,EACf,SAAS;IACP,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B,KACA,OAAO,CAAC,oBAAoB,CAuB9B,CAAC;AA2EF,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,EACZ,SAAS,MAAM,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,EAC7B,kBAAkB,WAAW,KAC5B,oBA2ED,CAAC"}
@@ -112,7 +112,7 @@ const toWebMcpTool = (name, getTool, lifecycleSignal) => ({
112
112
  execute: async (rawArgs, context) => {
113
113
  if (lifecycleSignal?.aborted) return errorResult(`Tool "${name}" is no longer registered`);
114
114
  const tool = getTool();
115
- const args = rawArgs ?? {};
115
+ let args = rawArgs ?? {};
116
116
  const toolCallId = generateId();
117
117
  let cleanup;
118
118
  try {
@@ -134,7 +134,7 @@ const toWebMcpTool = (name, getTool, lifecycleSignal) => ({
134
134
  executeFn = tool.experimental_onSchemaValidationError ?? (() => {
135
135
  throw new Error(`Function parameter validation failed. ${JSON.stringify(issues)}`);
136
136
  });
137
- }
137
+ } else args = validation.value;
138
138
  }
139
139
  if (abortSignal?.aborted) return errorResult("Tool execution was cancelled.");
140
140
  if (!executeFn) return errorResult(`Tool "${name}" has no client-side implementation.`);