@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.
- package/README.md +1 -1
- package/dist/assistant-transport.d.ts +24 -24
- package/dist/assistant-transport.d.ts.map +1 -1
- package/dist/assistant-transport.js.map +1 -1
- package/dist/augmentations.d.ts +28 -5
- package/dist/augmentations.d.ts.map +1 -1
- package/dist/cloud-renderer/CloudRendererHost.d.ts +13 -0
- package/dist/cloud-renderer/CloudRendererHost.d.ts.map +1 -0
- package/dist/cloud-renderer/CloudRendererHost.js +291 -0
- package/dist/cloud-renderer/CloudRendererHost.js.map +1 -0
- package/dist/context/ReadonlyStore.d.ts +1 -3
- package/dist/context/ReadonlyStore.d.ts.map +1 -1
- package/dist/context/index.d.ts +13 -13
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/providers/AttachmentByIndexProvider.d.ts +2 -2
- package/dist/context/providers/AttachmentByIndexProvider.d.ts.map +1 -0
- package/dist/context/providers/ChainOfThoughtByIndicesProvider.d.ts +2 -2
- package/dist/context/providers/ChainOfThoughtByIndicesProvider.d.ts.map +1 -0
- package/dist/context/providers/ChainOfThoughtPartByIndexProvider.d.ts +2 -2
- package/dist/context/providers/ChainOfThoughtPartByIndexProvider.d.ts.map +1 -0
- package/dist/context/providers/MessageByIndexProvider.d.ts +2 -2
- package/dist/context/providers/MessageByIndexProvider.d.ts.map +1 -0
- package/dist/context/providers/MessageProvider.d.ts +2 -4
- package/dist/context/providers/MessageProvider.d.ts.map +1 -1
- package/dist/context/providers/PartByIndexProvider.d.ts +2 -2
- package/dist/context/providers/PartByIndexProvider.d.ts.map +1 -0
- package/dist/context/providers/SuggestionByIndexProvider.d.ts +2 -2
- package/dist/context/providers/SuggestionByIndexProvider.d.ts.map +1 -0
- package/dist/context/providers/TextMessagePartProvider.d.ts +2 -2
- package/dist/context/providers/TextMessagePartProvider.d.ts.map +1 -0
- package/dist/context/providers/ThreadListItemProvider.d.ts +2 -2
- package/dist/context/providers/ThreadListItemProvider.d.ts.map +1 -0
- package/dist/context/providers/ThreadViewportProvider.d.ts +3 -5
- package/dist/context/providers/ThreadViewportProvider.d.ts.map +1 -1
- package/dist/context/react/ThreadViewportContext.d.ts +17 -19
- package/dist/context/react/ThreadViewportContext.d.ts.map +1 -1
- package/dist/context/react/utils/createContextHook.d.ts +2 -4
- package/dist/context/react/utils/createContextHook.d.ts.map +1 -1
- package/dist/context/react/utils/createContextStoreHook.d.ts +15 -17
- package/dist/context/react/utils/createContextStoreHook.d.ts.map +1 -1
- package/dist/context/stores/ThreadViewport.d.ts +72 -74
- package/dist/context/stores/ThreadViewport.d.ts.map +1 -1
- package/dist/devtools/DevToolsHooks.d.ts +19 -20
- package/dist/devtools/DevToolsHooks.d.ts.map +1 -1
- package/dist/hooks/useMessageQuote.d.ts +1 -3
- package/dist/hooks/useMessageQuote.d.ts.map +1 -1
- package/dist/hooks/useMessageTiming.d.ts +1 -3
- package/dist/hooks/useMessageTiming.d.ts.map +1 -1
- package/dist/hooks/useToolCallElapsed.d.ts +0 -2
- package/dist/hooks/useToolCallElapsed.d.ts.map +1 -1
- package/dist/hooks/useToolCallElapsed.js +1 -1
- package/dist/index.d.ts +126 -82
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -13
- package/dist/internal.d.ts +8 -11
- package/dist/internal.d.ts.map +1 -1
- package/dist/legacy-runtime/AssistantRuntimeProvider.d.ts +24 -26
- package/dist/legacy-runtime/AssistantRuntimeProvider.d.ts.map +1 -1
- package/dist/legacy-runtime/AssistantRuntimeProvider.js +1 -1
- package/dist/legacy-runtime/RuntimeAdapter.d.ts +2 -2
- package/dist/legacy-runtime/RuntimeAdapter.d.ts.map +1 -0
- package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts +2 -2
- package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime/AssistantRuntime.d.ts +3 -3
- package/dist/legacy-runtime/runtime/AssistantRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime/AttachmentRuntime.d.ts +3 -3
- package/dist/legacy-runtime/runtime/AttachmentRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime/ComposerRuntime.d.ts +4 -3
- package/dist/legacy-runtime/runtime/ComposerRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime/RuntimeBindings.d.ts +3 -3
- package/dist/legacy-runtime/runtime/RuntimeBindings.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime/RuntimePathTypes.d.ts +2 -2
- package/dist/legacy-runtime/runtime/RuntimePathTypes.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime/ThreadListItemRuntime.d.ts +5 -3
- package/dist/legacy-runtime/runtime/ThreadListItemRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime/ThreadRuntime.d.ts +4 -3
- package/dist/legacy-runtime/runtime/ThreadRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/core/AssistantRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/core/AssistantRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/core/ThreadListRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/core/ThreadListRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.d.ts +3 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.d.ts +3 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.d.ts +3 -3
- package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/auto-status.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/external-store/auto-status.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/local/ChatModelAdapter.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/local/ChatModelAdapter.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.d.ts +4 -3
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/local/LocalThreadListRuntimeCore.d.ts +3 -2
- package/dist/legacy-runtime/runtime-cores/local/LocalThreadListRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/local/shouldContinue.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/local/shouldContinue.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/local/useLocalRuntime.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/local/useLocalRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/OptimisticState.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/OptimisticState.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/in-memory.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/in-memory.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/types.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/types.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/utils/MessageRepository.d.ts +4 -3
- package/dist/legacy-runtime/runtime-cores/utils/MessageRepository.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/utils/MessageRepository.js +1 -1
- package/dist/mcp-apps/McpAppRenderer.d.ts +49 -51
- package/dist/mcp-apps/McpAppRenderer.d.ts.map +1 -1
- package/dist/mcp-apps/McpAppRenderer.js +2 -2
- package/dist/mcp-apps/McpAppsRemoteHost.d.ts +1 -3
- package/dist/mcp-apps/McpAppsRemoteHost.d.ts.map +1 -1
- package/dist/mcp-apps/app-frame.d.ts +2 -4
- package/dist/mcp-apps/app-frame.d.ts.map +1 -1
- package/dist/mcp-apps/bridge.d.ts +11 -13
- package/dist/mcp-apps/bridge.d.ts.map +1 -1
- package/dist/mcp-apps/index.d.ts +5 -5
- package/dist/mcp-apps/index.d.ts.map +1 -0
- package/dist/mcp-apps/types.d.ts +95 -97
- package/dist/mcp-apps/types.d.ts.map +1 -1
- package/dist/mcp-apps/utils.d.ts +2 -3
- package/dist/mcp-apps/utils.d.ts.map +1 -1
- package/dist/model-context/frame/useAssistantFrameHost.d.ts +8 -8
- package/dist/model-context/frame/useAssistantFrameHost.d.ts.map +1 -1
- package/dist/model-context/frame/useAssistantFrameHost.js +1 -1
- package/dist/model-context/makeAssistantVisible.d.ts +4 -6
- package/dist/model-context/makeAssistantVisible.d.ts.map +1 -1
- package/dist/model-context/makeAssistantVisible.js +2 -2
- package/dist/primitives/actionBar/ActionBarCopy.d.ts +13 -14
- package/dist/primitives/actionBar/ActionBarCopy.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarCopy.js +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.d.ts +10 -11
- package/dist/primitives/actionBar/ActionBarEdit.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarExportMarkdown.d.ts +11 -12
- package/dist/primitives/actionBar/ActionBarExportMarkdown.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarExportMarkdown.js +4 -1
- package/dist/primitives/actionBar/ActionBarExportMarkdown.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts +6 -7
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js +11 -9
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +6 -7
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js +11 -9
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarInteractionContext.d.ts +1 -3
- package/dist/primitives/actionBar/ActionBarInteractionContext.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.d.ts +10 -11
- package/dist/primitives/actionBar/ActionBarReload.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarRoot.d.ts +49 -50
- package/dist/primitives/actionBar/ActionBarRoot.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarSpeak.d.ts +6 -7
- package/dist/primitives/actionBar/ActionBarSpeak.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts +6 -7
- package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts.map +1 -1
- package/dist/primitives/actionBar/useActionBarFloatStatus.d.ts +8 -10
- package/dist/primitives/actionBar/useActionBarFloatStatus.d.ts.map +1 -1
- package/dist/primitives/actionBar.d.ts +9 -14
- package/dist/primitives/actionBar.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreContent.d.ts +10 -12
- package/dist/primitives/actionBarMore/ActionBarMoreContent.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreItem.d.ts +7 -9
- package/dist/primitives/actionBarMore/ActionBarMoreItem.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreRoot.d.ts +3 -5
- package/dist/primitives/actionBarMore/ActionBarMoreRoot.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreSeparator.d.ts +7 -9
- package/dist/primitives/actionBarMore/ActionBarMoreSeparator.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreTrigger.d.ts +7 -9
- package/dist/primitives/actionBarMore/ActionBarMoreTrigger.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/scope.d.ts +4 -6
- package/dist/primitives/actionBarMore/scope.d.ts.map +1 -1
- package/dist/primitives/actionBarMore.d.ts +5 -10
- package/dist/primitives/actionBarMore.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalAnchor.d.ts +7 -9
- package/dist/primitives/assistantModal/AssistantModalAnchor.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalContent.d.ts +12 -14
- package/dist/primitives/assistantModal/AssistantModalContent.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalRoot.d.ts +5 -7
- package/dist/primitives/assistantModal/AssistantModalRoot.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalRoot.js +1 -1
- package/dist/primitives/assistantModal/AssistantModalTrigger.d.ts +7 -9
- package/dist/primitives/assistantModal/AssistantModalTrigger.d.ts.map +1 -1
- package/dist/primitives/assistantModal/popoverRenderPrimitives.d.ts +7 -9
- package/dist/primitives/assistantModal/popoverRenderPrimitives.d.ts.map +1 -1
- package/dist/primitives/assistantModal/scope.d.ts +4 -6
- package/dist/primitives/assistantModal/scope.d.ts.map +1 -1
- package/dist/primitives/assistantModal.d.ts +4 -9
- package/dist/primitives/assistantModal.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentName.d.ts +2 -4
- package/dist/primitives/attachment/AttachmentName.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentRemove.d.ts +6 -7
- package/dist/primitives/attachment/AttachmentRemove.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentRemove.js +1 -1
- package/dist/primitives/attachment/AttachmentRoot.d.ts +10 -11
- package/dist/primitives/attachment/AttachmentRoot.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentThumb.d.ts +6 -7
- package/dist/primitives/attachment/AttachmentThumb.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentThumb.js +1 -1
- package/dist/primitives/attachment.d.ts +4 -9
- package/dist/primitives/attachment.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts +6 -8
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts +10 -11
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts +2 -4
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +10 -11
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerRoot.d.ts +18 -20
- package/dist/primitives/branchPicker/BranchPickerRoot.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerRoot.js +1 -1
- package/dist/primitives/branchPicker.d.ts +5 -10
- package/dist/primitives/branchPicker.d.ts.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +10 -11
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtParts.d.ts +2 -2
- package/dist/primitives/chainOfThought/ChainOfThoughtParts.d.ts.map +1 -0
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts +6 -7
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts.map +1 -1
- package/dist/primitives/chainOfThought.d.ts +3 -8
- package/dist/primitives/chainOfThought.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.d.ts +11 -12
- package/dist/primitives/composer/ComposerAddAttachment.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.js +1 -1
- package/dist/primitives/composer/ComposerAttachmentDropzone.d.ts +10 -11
- package/dist/primitives/composer/ComposerAttachmentDropzone.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAttachmentDropzone.js +9 -7
- package/dist/primitives/composer/ComposerAttachmentDropzone.js.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.d.ts +2 -2
- package/dist/primitives/composer/ComposerAttachments.d.ts.map +1 -0
- package/dist/primitives/composer/ComposerCancel.d.ts +10 -11
- package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerCompactContext.d.ts +1 -3
- package/dist/primitives/composer/ComposerCompactContext.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerDictate.d.ts +6 -7
- package/dist/primitives/composer/ComposerDictate.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerDictationTranscript.d.ts +5 -7
- package/dist/primitives/composer/ComposerDictationTranscript.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerDictationTranscript.js +1 -1
- package/dist/primitives/composer/ComposerIf.d.ts +3 -2
- package/dist/primitives/composer/ComposerIf.d.ts.map +1 -0
- package/dist/primitives/composer/ComposerInput.d.ts +72 -74
- package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerInput.js +3 -3
- package/dist/primitives/composer/ComposerInput.js.map +1 -1
- package/dist/primitives/composer/ComposerInputPluginContext.d.ts +22 -24
- package/dist/primitives/composer/ComposerInputPluginContext.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerQueue.d.ts +2 -2
- package/dist/primitives/composer/ComposerQueue.d.ts.map +1 -0
- package/dist/primitives/composer/ComposerQuote.d.ts +13 -15
- package/dist/primitives/composer/ComposerQuote.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerQuote.js +1 -1
- package/dist/primitives/composer/ComposerRoot.d.ts +26 -28
- package/dist/primitives/composer/ComposerRoot.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerRoot.js +1 -1
- package/dist/primitives/composer/ComposerSend.d.ts +9 -11
- package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerStopDictation.d.ts +6 -7
- package/dist/primitives/composer/ComposerStopDictation.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerStopDictation.js +1 -1
- package/dist/primitives/composer/trigger/TriggerPopover.d.ts +27 -29
- package/dist/primitives/composer/trigger/TriggerPopover.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/TriggerPopover.js +2 -2
- package/dist/primitives/composer/trigger/TriggerPopoverAction.d.ts +10 -12
- package/dist/primitives/composer/trigger/TriggerPopoverAction.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverAction.js +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverBack.d.ts +5 -7
- package/dist/primitives/composer/trigger/TriggerPopoverBack.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverCategories.d.ts +16 -18
- package/dist/primitives/composer/trigger/TriggerPopoverCategories.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverDirective.d.ts +8 -10
- package/dist/primitives/composer/trigger/TriggerPopoverDirective.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverDirective.js +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverItems.d.ts +18 -20
- package/dist/primitives/composer/trigger/TriggerPopoverItems.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverResource.d.ts +41 -43
- package/dist/primitives/composer/trigger/TriggerPopoverResource.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverRootContext.d.ts +27 -28
- package/dist/primitives/composer/trigger/TriggerPopoverRootContext.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/detectTrigger.d.ts +3 -5
- package/dist/primitives/composer/trigger/detectTrigger.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/index.d.ts +15 -18
- package/dist/primitives/composer/trigger/index.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/matchesTriggerItemQuery.d.ts +1 -3
- package/dist/primitives/composer/trigger/matchesTriggerItemQuery.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/triggerDetectionResource.d.ts +10 -12
- package/dist/primitives/composer/trigger/triggerDetectionResource.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/triggerKeyboardResource.d.ts +22 -24
- package/dist/primitives/composer/trigger/triggerKeyboardResource.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/triggerNavigationResource.d.ts +18 -20
- package/dist/primitives/composer/trigger/triggerNavigationResource.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/triggerSelectionResource.d.ts +23 -25
- package/dist/primitives/composer/trigger/triggerSelectionResource.d.ts.map +1 -1
- package/dist/primitives/composer/useComposerInputState.d.ts +4 -6
- package/dist/primitives/composer/useComposerInputState.d.ts.map +1 -1
- package/dist/primitives/composer.d.ts +31 -25
- package/dist/primitives/composer.d.ts.map +1 -1
- package/dist/primitives/dropdownMenuRenderPrimitives.d.ts +9 -11
- package/dist/primitives/dropdownMenuRenderPrimitives.d.ts.map +1 -1
- package/dist/primitives/error/ErrorMessage.d.ts +5 -7
- package/dist/primitives/error/ErrorMessage.d.ts.map +1 -1
- package/dist/primitives/error/ErrorRoot.d.ts +5 -7
- package/dist/primitives/error/ErrorRoot.d.ts.map +1 -1
- package/dist/primitives/error.d.ts +2 -7
- package/dist/primitives/error.d.ts.map +1 -1
- package/dist/primitives/message/MessageAttachments.d.ts +2 -2
- package/dist/primitives/message/MessageAttachments.d.ts.map +1 -0
- package/dist/primitives/message/MessageError.d.ts +1 -3
- package/dist/primitives/message/MessageError.d.ts.map +1 -1
- package/dist/primitives/message/MessageIf.d.ts +15 -16
- package/dist/primitives/message/MessageIf.d.ts.map +1 -1
- package/dist/primitives/message/MessageParts.d.ts +4 -6
- package/dist/primitives/message/MessageParts.d.ts.map +1 -1
- package/dist/primitives/message/MessagePartsGrouped.d.ts +132 -133
- package/dist/primitives/message/MessagePartsGrouped.d.ts.map +1 -1
- package/dist/primitives/message/MessagePartsGrouped.js +103 -71
- package/dist/primitives/message/MessagePartsGrouped.js.map +1 -1
- package/dist/primitives/message/MessageRoot.d.ts +5 -7
- package/dist/primitives/message/MessageRoot.d.ts.map +1 -1
- package/dist/primitives/message/MessageRoot.js +6 -2
- package/dist/primitives/message/MessageRoot.js.map +1 -1
- package/dist/primitives/message.d.ts +12 -12
- package/dist/primitives/message.d.ts.map +1 -1
- package/dist/primitives/messagePart/MessagePartImage.d.ts +9 -11
- package/dist/primitives/messagePart/MessagePartImage.d.ts.map +1 -1
- package/dist/primitives/messagePart/MessagePartInProgress.d.ts +2 -2
- package/dist/primitives/messagePart/MessagePartInProgress.d.ts.map +1 -0
- package/dist/primitives/messagePart/MessagePartText.d.ts +35 -37
- package/dist/primitives/messagePart/MessagePartText.d.ts.map +1 -1
- package/dist/primitives/messagePart/useMessagePartData.d.ts +1 -3
- package/dist/primitives/messagePart/useMessagePartData.d.ts.map +1 -1
- package/dist/primitives/messagePart/useMessagePartFile.d.ts +2 -4
- package/dist/primitives/messagePart/useMessagePartFile.d.ts.map +1 -1
- package/dist/primitives/messagePart/useMessagePartImage.d.ts +2 -4
- package/dist/primitives/messagePart/useMessagePartImage.d.ts.map +1 -1
- package/dist/primitives/messagePart/useMessagePartReasoning.d.ts +2 -4
- package/dist/primitives/messagePart/useMessagePartReasoning.d.ts.map +1 -1
- package/dist/primitives/messagePart/useMessagePartSource.d.ts +19 -21
- package/dist/primitives/messagePart/useMessagePartSource.d.ts.map +1 -1
- package/dist/primitives/messagePart/useMessagePartText.d.ts +3 -5
- package/dist/primitives/messagePart/useMessagePartText.d.ts.map +1 -1
- package/dist/primitives/messagePart.d.ts +4 -9
- package/dist/primitives/messagePart.d.ts.map +1 -1
- package/dist/primitives/queueItem/QueueItemRemove.d.ts +6 -7
- package/dist/primitives/queueItem/QueueItemRemove.d.ts.map +1 -1
- package/dist/primitives/queueItem/QueueItemRemove.js +1 -1
- package/dist/primitives/queueItem/QueueItemSteer.d.ts +6 -7
- package/dist/primitives/queueItem/QueueItemSteer.d.ts.map +1 -1
- package/dist/primitives/queueItem/QueueItemSteer.js +1 -1
- package/dist/primitives/queueItem/QueueItemText.d.ts +5 -7
- package/dist/primitives/queueItem/QueueItemText.d.ts.map +1 -1
- package/dist/primitives/queueItem/QueueItemText.js +1 -1
- package/dist/primitives/queueItem.d.ts +3 -8
- package/dist/primitives/queueItem.d.ts.map +1 -1
- package/dist/primitives/reasoning/useScrollLock.d.ts +1 -3
- package/dist/primitives/reasoning/useScrollLock.d.ts.map +1 -1
- package/dist/primitives/reasoning/useScrollLock.js +14 -15
- package/dist/primitives/reasoning/useScrollLock.js.map +1 -1
- package/dist/primitives/selectionToolbar/SelectionToolbarQuote.d.ts +5 -7
- package/dist/primitives/selectionToolbar/SelectionToolbarQuote.d.ts.map +1 -1
- package/dist/primitives/selectionToolbar/SelectionToolbarQuote.js +1 -1
- package/dist/primitives/selectionToolbar/SelectionToolbarRoot.d.ts +12 -13
- package/dist/primitives/selectionToolbar/SelectionToolbarRoot.d.ts.map +1 -1
- package/dist/primitives/selectionToolbar/SelectionToolbarRoot.js +81 -42
- package/dist/primitives/selectionToolbar/SelectionToolbarRoot.js.map +1 -1
- package/dist/primitives/selectionToolbar.d.ts +2 -7
- package/dist/primitives/selectionToolbar.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionDescription.d.ts +5 -7
- package/dist/primitives/suggestion/SuggestionDescription.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionDescription.js +1 -1
- package/dist/primitives/suggestion/SuggestionTitle.d.ts +5 -7
- package/dist/primitives/suggestion/SuggestionTitle.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionTitle.js +1 -1
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts +35 -36
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts.map +1 -1
- package/dist/primitives/suggestion.d.ts +3 -8
- package/dist/primitives/suggestion.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.d.ts +2 -4
- package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadIf.d.ts +7 -8
- package/dist/primitives/thread/ThreadIf.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadMessages.d.ts +2 -2
- package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -0
- package/dist/primitives/thread/ThreadRoot.d.ts +9 -11
- package/dist/primitives/thread/ThreadRoot.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadRoot.js +15 -8
- package/dist/primitives/thread/ThreadRoot.js.map +1 -1
- package/dist/primitives/thread/ThreadRootElementContext.d.ts +4 -0
- package/dist/primitives/thread/ThreadRootElementContext.d.ts.map +1 -0
- package/dist/primitives/thread/ThreadRootElementContext.js +11 -0
- package/dist/primitives/thread/ThreadRootElementContext.js.map +1 -0
- package/dist/primitives/thread/ThreadScrollToBottom.d.ts +11 -13
- package/dist/primitives/thread/ThreadScrollToBottom.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadSuggestion.d.ts +47 -48
- package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadSuggestions.d.ts +2 -2
- package/dist/primitives/thread/ThreadSuggestions.d.ts.map +1 -0
- package/dist/primitives/thread/ThreadViewport.d.ts +88 -90
- package/dist/primitives/thread/ThreadViewport.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadViewport.js +1 -1
- package/dist/primitives/thread/ThreadViewportFooter.d.ts +5 -7
- package/dist/primitives/thread/ThreadViewportFooter.d.ts.map +1 -1
- package/dist/primitives/thread/topAnchor/computeTopAnchorSlack.d.ts +6 -8
- package/dist/primitives/thread/topAnchor/computeTopAnchorSlack.d.ts.map +1 -1
- package/dist/primitives/thread/topAnchor/createReserveObservers.d.ts +2 -4
- package/dist/primitives/thread/topAnchor/createReserveObservers.d.ts.map +1 -1
- package/dist/primitives/thread/topAnchor/mountTopAnchorReserve.d.ts +16 -18
- package/dist/primitives/thread/topAnchor/mountTopAnchorReserve.d.ts.map +1 -1
- package/dist/primitives/thread/topAnchor/mountTopAnchorReserve.js +55 -6
- package/dist/primitives/thread/topAnchor/mountTopAnchorReserve.js.map +1 -1
- package/dist/primitives/thread/topAnchor/topAnchorTurn.d.ts +10 -11
- package/dist/primitives/thread/topAnchor/topAnchorTurn.d.ts.map +1 -1
- package/dist/primitives/thread/topAnchor/topAnchorUtils.d.ts +0 -2
- package/dist/primitives/thread/topAnchor/topAnchorUtils.d.ts.map +1 -1
- package/dist/primitives/thread/topAnchor/useTopAnchorReserve.d.ts +0 -2
- package/dist/primitives/thread/topAnchor/useTopAnchorReserve.d.ts.map +1 -1
- package/dist/primitives/thread/useThreadViewportAutoScroll.d.ts +29 -31
- package/dist/primitives/thread/useThreadViewportAutoScroll.d.ts.map +1 -1
- package/dist/primitives/thread/useThreadViewportAutoScroll.js +16 -1
- package/dist/primitives/thread/useThreadViewportAutoScroll.js.map +1 -1
- package/dist/primitives/thread.d.ts +12 -15
- package/dist/primitives/thread.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListItems.d.ts +2 -2
- package/dist/primitives/threadList/ThreadListItems.d.ts.map +1 -0
- package/dist/primitives/threadList/ThreadListLoadMore.d.ts +6 -7
- package/dist/primitives/threadList/ThreadListLoadMore.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListNew.d.ts +5 -7
- package/dist/primitives/threadList/ThreadListNew.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListNew.js +1 -1
- package/dist/primitives/threadList/ThreadListRoot.d.ts +6 -7
- package/dist/primitives/threadList/ThreadListRoot.d.ts.map +1 -1
- package/dist/primitives/threadList.d.ts +5 -9
- package/dist/primitives/threadList.d.ts.map +1 -1
- package/dist/primitives/threadListFocusGroup.d.ts +14 -16
- package/dist/primitives/threadListFocusGroup.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts +6 -7
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts +6 -7
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +6 -7
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemRoot.js +1 -1
- package/dist/primitives/threadListItem/ThreadListItemTitle.d.ts +2 -2
- package/dist/primitives/threadListItem/ThreadListItemTitle.d.ts.map +1 -0
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +6 -7
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts +6 -7
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem.d.ts +6 -11
- package/dist/primitives/threadListItem.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.d.ts +10 -12
- package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.d.ts +7 -9
- package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.d.ts +11 -13
- package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.d.ts +7 -9
- package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.d.ts +7 -9
- package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/scope.d.ts +4 -6
- package/dist/primitives/threadListItemMore/scope.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore.d.ts +5 -10
- package/dist/primitives/threadListItemMore.d.ts.map +1 -1
- package/dist/sandbox-host/SandboxHost.d.ts +24 -26
- package/dist/sandbox-host/SandboxHost.d.ts.map +1 -1
- package/dist/unstable/useComposerInput.d.ts +32 -34
- package/dist/unstable/useComposerInput.d.ts.map +1 -1
- package/dist/unstable/useComposerInput.js +1 -1
- package/dist/unstable/useComposerInputHistory.d.ts +3 -5
- package/dist/unstable/useComposerInputHistory.d.ts.map +1 -1
- package/dist/unstable/useComposerInputHistory.js +2 -2
- package/dist/unstable/useLiveCompletionAdapter.d.ts +18 -20
- package/dist/unstable/useLiveCompletionAdapter.d.ts.map +1 -1
- package/dist/unstable/useMentionAdapter.d.ts +57 -59
- package/dist/unstable/useMentionAdapter.d.ts.map +1 -1
- package/dist/unstable/useMentionAdapter.js +1 -1
- package/dist/unstable/useMessageStallDetection.d.ts +10 -12
- package/dist/unstable/useMessageStallDetection.d.ts.map +1 -1
- package/dist/unstable/useMessageStallDetection.js +1 -1
- package/dist/unstable/useModelContextSnapshot.d.ts +13 -15
- package/dist/unstable/useModelContextSnapshot.d.ts.map +1 -1
- package/dist/unstable/useSlashCommandAdapter.d.ts +20 -22
- package/dist/unstable/useSlashCommandAdapter.d.ts.map +1 -1
- package/dist/unstable/webmcp/WebMcpRegistrationResource.d.ts +7 -9
- package/dist/unstable/webmcp/WebMcpRegistrationResource.d.ts.map +1 -1
- package/dist/unstable/webmcp/convertTools.d.ts +5 -7
- package/dist/unstable/webmcp/convertTools.d.ts.map +1 -1
- package/dist/unstable/webmcp/convertTools.js +2 -2
- package/dist/unstable/webmcp/convertTools.js.map +1 -1
- package/dist/unstable/webmcp/useWebMcpProvider.d.ts +4 -6
- package/dist/unstable/webmcp/useWebMcpProvider.d.ts.map +1 -1
- package/dist/unstable/webmcp/useWebMcpProvider.js +1 -1
- package/dist/unstable/webmcp/webmcp-host.d.ts +23 -25
- package/dist/unstable/webmcp/webmcp-host.d.ts.map +1 -1
- package/dist/utils/Primitive.d.ts +91 -92
- package/dist/utils/Primitive.d.ts.map +1 -1
- package/dist/utils/RequireAtLeastOne.d.ts +3 -3
- package/dist/utils/RequireAtLeastOne.d.ts.map +1 -1
- package/dist/utils/createActionButton.d.ts +5 -6
- package/dist/utils/createActionButton.d.ts.map +1 -1
- package/dist/utils/getSelectionMessageId.d.ts +1 -3
- package/dist/utils/getSelectionMessageId.d.ts.map +1 -1
- package/dist/utils/getSelectionMessageId.js +2 -1
- package/dist/utils/getSelectionMessageId.js.map +1 -1
- package/dist/utils/hooks/useManagedRef.d.ts +0 -2
- package/dist/utils/hooks/useManagedRef.d.ts.map +1 -1
- package/dist/utils/hooks/useMediaQuery.d.ts +0 -2
- package/dist/utils/hooks/useMediaQuery.d.ts.map +1 -1
- package/dist/utils/hooks/useOnResizeContent.d.ts +0 -2
- package/dist/utils/hooks/useOnResizeContent.d.ts.map +1 -1
- package/dist/utils/hooks/useOnScrollToBottom.d.ts +1 -3
- package/dist/utils/hooks/useOnScrollToBottom.d.ts.map +1 -1
- package/dist/utils/hooks/useSizeHandle.d.ts +1 -3
- package/dist/utils/hooks/useSizeHandle.d.ts.map +1 -1
- package/dist/utils/smooth/SmoothContext.d.ts +105 -107
- package/dist/utils/smooth/SmoothContext.d.ts.map +1 -1
- package/dist/utils/smooth/SmoothContext.js +1 -1
- package/dist/utils/smooth/useSmooth.d.ts +26 -28
- package/dist/utils/smooth/useSmooth.d.ts.map +1 -1
- package/dist/utils/smooth/useSmooth.js +1 -1
- package/package.json +8 -8
- package/src/assistant-transport.ts +5 -4
- package/src/cloud-renderer/CloudRendererHost.test.tsx +362 -0
- package/src/cloud-renderer/CloudRendererHost.tsx +249 -0
- package/src/index.ts +29 -1
- package/src/primitives/actionBar/ActionBarExportMarkdown.test.tsx +30 -0
- package/src/primitives/actionBar/ActionBarExportMarkdown.tsx +4 -0
- package/src/primitives/actionBar/ActionBarFeedback.test.tsx +87 -0
- package/src/primitives/actionBar/ActionBarFeedbackNegative.tsx +1 -0
- package/src/primitives/actionBar/ActionBarFeedbackPositive.tsx +1 -0
- package/src/primitives/composer/ComposerAttachmentDropzone.test.tsx +54 -0
- package/src/primitives/composer/ComposerAttachmentDropzone.tsx +12 -6
- package/src/primitives/composer/ComposerInput.test.tsx +18 -0
- package/src/primitives/composer/ComposerInput.tsx +8 -2
- package/src/primitives/message/MessagePartsGrouped.test.tsx +151 -4
- package/src/primitives/message/MessagePartsGrouped.tool-interaction.test.tsx +97 -0
- package/src/primitives/message/MessagePartsGrouped.tsx +14 -5
- package/src/primitives/message/MessageRoot.test.tsx +108 -0
- package/src/primitives/message/MessageRoot.tsx +5 -1
- package/src/primitives/reasoning/useScrollLock.test.tsx +47 -0
- package/src/primitives/reasoning/useScrollLock.ts +15 -17
- package/src/primitives/selectionToolbar/SelectionToolbarRoot.test.tsx +228 -14
- package/src/primitives/selectionToolbar/SelectionToolbarRoot.tsx +60 -12
- package/src/primitives/thread/ThreadRoot.tsx +10 -1
- package/src/primitives/thread/ThreadRootElementContext.ts +10 -0
- package/src/primitives/thread/topAnchor/mountTopAnchorReserve.test.ts +196 -0
- package/src/primitives/thread/topAnchor/mountTopAnchorReserve.ts +78 -5
- package/src/primitives/thread/useThreadViewportAutoScroll.test.tsx +222 -0
- package/src/primitives/thread/useThreadViewportAutoScroll.ts +37 -2
- package/src/tests/augmentations.test.ts +7 -0
- package/src/unstable/webmcp/convertTools.test.ts +23 -3
- package/src/unstable/webmcp/convertTools.ts +7 -11
- package/src/utils/getSelectionMessageId.test.ts +28 -0
- package/src/utils/getSelectionMessageId.ts +7 -1
- package/dist/tests/remote-thread-list-test-helpers.d.ts +0 -5
- package/dist/tests/remote-thread-list-test-helpers.d.ts.map +0 -1
- package/dist/tests/remote-thread-list-test-helpers.js +0 -29
- package/dist/tests/remote-thread-list-test-helpers.js.map +0 -1
- package/dist/tests/setup.d.ts +0 -1
- package/dist/tests/setup.js +0 -6
- package/dist/tests/setup.js.map +0 -1
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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","
|
|
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
|
-
|
|
5
|
-
|
|
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","
|
|
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 {
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
49
|
-
|
|
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","
|
|
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 {
|
|
2
|
-
import {
|
|
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
|
-
|
|
6
|
+
className?: string;
|
|
8
7
|
}>;
|
|
9
8
|
export type Unstable_Mention = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
66
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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","
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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","
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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","
|
|
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 {
|
|
2
|
-
import {
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
22
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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","
|
|
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 {
|
|
2
|
-
import {
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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","
|
|
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 {
|
|
2
|
-
import {
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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","
|
|
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
|
-
|
|
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.`);
|