@assistant-ui/react 0.12.11 → 0.12.14
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 +68 -58
- package/dist/client/ExternalThread.d.ts.map +1 -1
- package/dist/client/ExternalThread.js +25 -13
- package/dist/client/ExternalThread.js.map +1 -1
- package/dist/client/InMemoryThreadList.d.ts.map +1 -1
- package/dist/client/InMemoryThreadList.js +1 -2
- package/dist/client/InMemoryThreadList.js.map +1 -1
- package/dist/client/index.d.ts +1 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +2 -2
- package/dist/client/index.js.map +1 -1
- package/dist/context/providers/AttachmentByIndexProvider.d.ts +1 -7
- package/dist/context/providers/AttachmentByIndexProvider.d.ts.map +1 -1
- package/dist/context/providers/AttachmentByIndexProvider.js +1 -22
- package/dist/context/providers/AttachmentByIndexProvider.js.map +1 -1
- package/dist/context/providers/ChainOfThoughtByIndicesProvider.d.ts +1 -5
- package/dist/context/providers/ChainOfThoughtByIndicesProvider.d.ts.map +1 -1
- package/dist/context/providers/ChainOfThoughtByIndicesProvider.js +1 -19
- package/dist/context/providers/ChainOfThoughtByIndicesProvider.js.map +1 -1
- package/dist/context/providers/ChainOfThoughtPartByIndexProvider.d.ts +1 -4
- package/dist/context/providers/ChainOfThoughtPartByIndexProvider.d.ts.map +1 -1
- package/dist/context/providers/ChainOfThoughtPartByIndexProvider.js +1 -12
- package/dist/context/providers/ChainOfThoughtPartByIndexProvider.js.map +1 -1
- package/dist/context/providers/MessageByIndexProvider.d.ts +1 -4
- package/dist/context/providers/MessageByIndexProvider.d.ts.map +1 -1
- package/dist/context/providers/MessageByIndexProvider.js +1 -17
- package/dist/context/providers/MessageByIndexProvider.js.map +1 -1
- package/dist/context/providers/PartByIndexProvider.d.ts +1 -4
- package/dist/context/providers/PartByIndexProvider.d.ts.map +1 -1
- package/dist/context/providers/PartByIndexProvider.js +1 -12
- package/dist/context/providers/PartByIndexProvider.js.map +1 -1
- package/dist/context/providers/SuggestionByIndexProvider.d.ts +1 -5
- package/dist/context/providers/SuggestionByIndexProvider.d.ts.map +1 -1
- package/dist/context/providers/SuggestionByIndexProvider.js +1 -12
- package/dist/context/providers/SuggestionByIndexProvider.js.map +1 -1
- package/dist/context/providers/TextMessagePartProvider.d.ts +1 -5
- package/dist/context/providers/TextMessagePartProvider.d.ts.map +1 -1
- package/dist/context/providers/TextMessagePartProvider.js +1 -25
- package/dist/context/providers/TextMessagePartProvider.js.map +1 -1
- package/dist/context/providers/ThreadListItemProvider.d.ts +1 -9
- package/dist/context/providers/ThreadListItemProvider.d.ts.map +1 -1
- package/dist/context/providers/ThreadListItemProvider.js +1 -19
- package/dist/context/providers/ThreadListItemProvider.js.map +1 -1
- package/dist/context/providers/index.d.ts +1 -0
- package/dist/context/providers/index.d.ts.map +1 -1
- package/dist/context/providers/index.js +1 -0
- package/dist/context/providers/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/legacy-runtime/AssistantRuntimeProvider.d.ts.map +1 -1
- package/dist/legacy-runtime/AssistantRuntimeProvider.js +8 -9
- package/dist/legacy-runtime/AssistantRuntimeProvider.js.map +1 -1
- package/dist/legacy-runtime/RuntimeAdapter.d.ts +1 -2
- package/dist/legacy-runtime/RuntimeAdapter.d.ts.map +1 -1
- package/dist/legacy-runtime/RuntimeAdapter.js +1 -48
- package/dist/legacy-runtime/RuntimeAdapter.js.map +1 -1
- package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts.map +1 -1
- package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.js +135 -27
- package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.js.map +1 -1
- package/dist/legacy-runtime/hooks/AttachmentContext.d.ts +280 -112
- package/dist/legacy-runtime/hooks/AttachmentContext.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.js +1 -1
- package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/assistant-transport/index.d.ts +1 -1
- package/dist/legacy-runtime/runtime-cores/assistant-transport/index.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/assistant-transport/types.d.ts +22 -0
- package/dist/legacy-runtime/runtime-cores/assistant-transport/types.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/assistant-transport/types.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/assistant-transport/useAssistantTransportRuntime.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/assistant-transport/useAssistantTransportRuntime.js +17 -13
- package/dist/legacy-runtime/runtime-cores/assistant-transport/useAssistantTransportRuntime.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.js +8 -6
- package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.d.ts +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.js +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/index.d.ts +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/index.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/index.js +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/index.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.js +14 -4
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.js.map +1 -1
- package/dist/model-context/index.d.ts +4 -13
- package/dist/model-context/index.d.ts.map +1 -1
- package/dist/model-context/index.js +6 -11
- package/dist/model-context/index.js.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreContent.d.ts +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreContent.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreContent.js +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreContent.js.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreItem.d.ts +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreItem.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreItem.js +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreItem.js.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreRoot.d.ts +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreRoot.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreRoot.js +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreRoot.js.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreSeparator.d.ts +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreSeparator.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreSeparator.js +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreSeparator.js.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreTrigger.d.ts +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreTrigger.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreTrigger.js +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreTrigger.js.map +1 -1
- package/dist/primitives/actionBarMore/scope.d.ts +1 -1
- package/dist/primitives/actionBarMore/scope.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/scope.js +1 -1
- package/dist/primitives/actionBarMore/scope.js.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalAnchor.d.ts +1 -1
- package/dist/primitives/assistantModal/AssistantModalAnchor.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalAnchor.js +1 -1
- package/dist/primitives/assistantModal/AssistantModalAnchor.js.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalContent.d.ts +1 -1
- package/dist/primitives/assistantModal/AssistantModalContent.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalContent.js +1 -1
- package/dist/primitives/assistantModal/AssistantModalContent.js.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalRoot.d.ts +1 -1
- package/dist/primitives/assistantModal/AssistantModalRoot.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalRoot.js +1 -1
- package/dist/primitives/assistantModal/AssistantModalRoot.js.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalTrigger.d.ts +1 -1
- package/dist/primitives/assistantModal/AssistantModalTrigger.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalTrigger.js +1 -1
- package/dist/primitives/assistantModal/AssistantModalTrigger.js.map +1 -1
- package/dist/primitives/assistantModal/scope.d.ts +1 -1
- package/dist/primitives/assistantModal/scope.d.ts.map +1 -1
- package/dist/primitives/assistantModal/scope.js +1 -1
- package/dist/primitives/assistantModal/scope.js.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtParts.d.ts +1 -38
- package/dist/primitives/chainOfThought/ChainOfThoughtParts.d.ts.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtParts.js +1 -38
- package/dist/primitives/chainOfThought/ChainOfThoughtParts.js.map +1 -1
- package/dist/primitives/composer/ComposerAttachmentDropzone.js +2 -2
- package/dist/primitives/composer/ComposerAttachmentDropzone.js.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.d.ts +1 -36
- package/dist/primitives/composer/ComposerAttachments.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.js +1 -61
- package/dist/primitives/composer/ComposerAttachments.js.map +1 -1
- package/dist/primitives/composer/ComposerIf.d.ts +2 -17
- package/dist/primitives/composer/ComposerIf.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerIf.js +1 -23
- package/dist/primitives/composer/ComposerIf.js.map +1 -1
- package/dist/primitives/composer/ComposerInput.js +2 -2
- package/dist/primitives/composer/ComposerInput.js.map +1 -1
- package/dist/primitives/message/MessageAttachments.d.ts +1 -36
- package/dist/primitives/message/MessageAttachments.d.ts.map +1 -1
- package/dist/primitives/message/MessageAttachments.js +1 -65
- package/dist/primitives/message/MessageAttachments.js.map +1 -1
- package/dist/primitives/message/MessageIf.d.ts +1 -1
- package/dist/primitives/message/MessageIf.js +1 -1
- package/dist/primitives/message/MessageParts.d.ts +5 -219
- package/dist/primitives/message/MessageParts.d.ts.map +1 -1
- package/dist/primitives/message/MessageParts.js +29 -270
- package/dist/primitives/message/MessageParts.js.map +1 -1
- package/dist/primitives/message/MessagePartsGrouped.d.ts +1 -1
- package/dist/primitives/message/MessagePartsGrouped.d.ts.map +1 -1
- package/dist/primitives/message/MessagePartsGrouped.js +2 -2
- package/dist/primitives/message/MessagePartsGrouped.js.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.d.ts +3 -0
- package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.js +4 -1
- package/dist/primitives/thread/ThreadEmpty.js.map +1 -1
- package/dist/primitives/thread/ThreadIf.d.ts +1 -1
- package/dist/primitives/thread/ThreadIf.js +1 -1
- package/dist/primitives/thread/ThreadMessages.d.ts +1 -94
- package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadMessages.js +1 -109
- package/dist/primitives/thread/ThreadMessages.js.map +1 -1
- package/dist/primitives/thread/ThreadSuggestions.d.ts +1 -52
- package/dist/primitives/thread/ThreadSuggestions.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadSuggestions.js +1 -56
- package/dist/primitives/thread/ThreadSuggestions.js.map +1 -1
- package/dist/primitives/thread/ThreadViewportSlack.js +2 -2
- package/dist/primitives/thread/ThreadViewportSlack.js.map +1 -1
- package/dist/primitives/threadList/ThreadListItems.d.ts +1 -34
- package/dist/primitives/threadList/ThreadListItems.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListItems.js +1 -35
- package/dist/primitives/threadList/ThreadListItems.js.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemTitle.d.ts +1 -7
- package/dist/primitives/threadListItem/ThreadListItemTitle.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemTitle.js +1 -7
- package/dist/primitives/threadListItem/ThreadListItemTitle.js.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.d.ts +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.js +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.js.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.d.ts +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.js +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.js.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.d.ts +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.js +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.js.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.d.ts +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.js +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.js.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.d.ts +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.js +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.js.map +1 -1
- package/dist/primitives/threadListItemMore/scope.d.ts +1 -1
- package/dist/primitives/threadListItemMore/scope.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/scope.js +1 -1
- package/dist/primitives/threadListItemMore/scope.js.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/scopes/index.d.ts +1 -2
- package/dist/types/scopes/index.d.ts.map +1 -1
- package/package.json +10 -12
- package/src/client/ExternalThread.ts +25 -13
- package/src/client/InMemoryThreadList.ts +1 -2
- package/src/client/index.ts +3 -2
- package/src/context/providers/AttachmentByIndexProvider.tsx +4 -34
- package/src/context/providers/ChainOfThoughtByIndicesProvider.tsx +1 -34
- package/src/context/providers/ChainOfThoughtPartByIndexProvider.tsx +1 -18
- package/src/context/providers/MessageByIndexProvider.tsx +1 -23
- package/src/context/providers/PartByIndexProvider.tsx +1 -18
- package/src/context/providers/SuggestionByIndexProvider.tsx +4 -21
- package/src/context/providers/TextMessagePartProvider.tsx +1 -46
- package/src/context/providers/ThreadListItemProvider.tsx +4 -33
- package/src/context/providers/index.ts +1 -0
- package/src/index.ts +1 -1
- package/src/legacy-runtime/AssistantRuntimeProvider.tsx +13 -21
- package/src/legacy-runtime/RuntimeAdapter.ts +1 -66
- package/src/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.ts +179 -40
- package/src/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.ts +1 -1
- package/src/legacy-runtime/runtime-cores/assistant-transport/index.ts +1 -0
- package/src/legacy-runtime/runtime-cores/assistant-transport/types.ts +25 -0
- package/src/legacy-runtime/runtime-cores/assistant-transport/useAssistantTransportRuntime.ts +22 -13
- package/src/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.test.ts +6 -3
- package/src/legacy-runtime/runtime-cores/external-store/external-message-converter.ts +19 -21
- package/src/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.ts +1 -0
- package/src/legacy-runtime/runtime-cores/external-store/index.ts +1 -0
- package/src/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.ts +20 -4
- package/src/model-context/index.ts +29 -22
- package/src/primitives/actionBarMore/ActionBarMoreContent.tsx +1 -1
- package/src/primitives/actionBarMore/ActionBarMoreItem.tsx +1 -1
- package/src/primitives/actionBarMore/ActionBarMoreRoot.tsx +1 -1
- package/src/primitives/actionBarMore/ActionBarMoreSeparator.tsx +1 -1
- package/src/primitives/actionBarMore/ActionBarMoreTrigger.tsx +1 -1
- package/src/primitives/actionBarMore/scope.ts +1 -1
- package/src/primitives/assistantModal/AssistantModalAnchor.tsx +1 -1
- package/src/primitives/assistantModal/AssistantModalContent.tsx +1 -1
- package/src/primitives/assistantModal/AssistantModalRoot.tsx +1 -1
- package/src/primitives/assistantModal/AssistantModalTrigger.tsx +1 -1
- package/src/primitives/assistantModal/scope.ts +1 -1
- package/src/primitives/chainOfThought/ChainOfThoughtParts.tsx +1 -85
- package/src/primitives/composer/ComposerAttachmentDropzone.tsx +2 -2
- package/src/primitives/composer/ComposerAttachments.tsx +4 -110
- package/src/primitives/composer/ComposerIf.ts +2 -42
- package/src/primitives/composer/ComposerInput.tsx +2 -2
- package/src/primitives/message/MessageAttachments.tsx +4 -113
- package/src/primitives/message/MessageIf.ts +1 -1
- package/src/primitives/message/MessageParts.tsx +43 -642
- package/src/primitives/message/MessagePartsGrouped.tsx +3 -3
- package/src/primitives/thread/ThreadEmpty.ts +4 -3
- package/src/primitives/thread/ThreadIf.ts +1 -1
- package/src/primitives/thread/ThreadMessages.tsx +4 -217
- package/src/primitives/thread/ThreadSuggestions.tsx +4 -106
- package/src/primitives/thread/ThreadViewportSlack.tsx +2 -2
- package/src/primitives/threadList/ThreadListItems.tsx +4 -79
- package/src/primitives/threadListItem/ThreadListItemTitle.test.tsx +7 -3
- package/src/primitives/threadListItem/ThreadListItemTitle.tsx +1 -17
- package/src/primitives/threadListItemMore/ThreadListItemMoreContent.tsx +1 -1
- package/src/primitives/threadListItemMore/ThreadListItemMoreItem.tsx +1 -1
- package/src/primitives/threadListItemMore/ThreadListItemMoreRoot.tsx +1 -1
- package/src/primitives/threadListItemMore/ThreadListItemMoreSeparator.tsx +1 -1
- package/src/primitives/threadListItemMore/ThreadListItemMoreTrigger.tsx +1 -1
- package/src/primitives/threadListItemMore/scope.ts +1 -1
- package/src/tests/BaseComposerRuntimeCore.test.ts +106 -1
- package/src/tests/DataRenderers.test.ts +1 -2
- package/src/types/index.ts +3 -2
- package/src/types/scopes/index.ts +5 -3
- package/dist/client/DataRenderers.d.ts +0 -3
- package/dist/client/DataRenderers.d.ts.map +0 -1
- package/dist/client/DataRenderers.js +0 -33
- package/dist/client/DataRenderers.js.map +0 -1
- package/dist/client/Tools.d.ts +0 -8
- package/dist/client/Tools.d.ts.map +0 -1
- package/dist/client/Tools.js +0 -68
- package/dist/client/Tools.js.map +0 -1
- package/dist/model-context/makeAssistantDataUI.d.ts +0 -7
- package/dist/model-context/makeAssistantDataUI.d.ts.map +0 -1
- package/dist/model-context/makeAssistantDataUI.js +0 -11
- package/dist/model-context/makeAssistantDataUI.js.map +0 -1
- package/dist/model-context/makeAssistantTool.d.ts +0 -7
- package/dist/model-context/makeAssistantTool.d.ts.map +0 -1
- package/dist/model-context/makeAssistantTool.js +0 -11
- package/dist/model-context/makeAssistantTool.js.map +0 -1
- package/dist/model-context/makeAssistantToolUI.d.ts +0 -7
- package/dist/model-context/makeAssistantToolUI.d.ts.map +0 -1
- package/dist/model-context/makeAssistantToolUI.js +0 -11
- package/dist/model-context/makeAssistantToolUI.js.map +0 -1
- package/dist/model-context/toolbox.d.ts +0 -10
- package/dist/model-context/toolbox.d.ts.map +0 -1
- package/dist/model-context/toolbox.js +0 -3
- package/dist/model-context/toolbox.js.map +0 -1
- package/dist/model-context/useAssistantDataUI.d.ts +0 -7
- package/dist/model-context/useAssistantDataUI.d.ts.map +0 -1
- package/dist/model-context/useAssistantDataUI.js +0 -12
- package/dist/model-context/useAssistantDataUI.js.map +0 -1
- package/dist/model-context/useAssistantInstructions.d.ts +0 -4
- package/dist/model-context/useAssistantInstructions.d.ts.map +0 -1
- package/dist/model-context/useAssistantInstructions.js +0 -23
- package/dist/model-context/useAssistantInstructions.js.map +0 -1
- package/dist/model-context/useAssistantTool.d.ts +0 -7
- package/dist/model-context/useAssistantTool.d.ts.map +0 -1
- package/dist/model-context/useAssistantTool.js +0 -23
- package/dist/model-context/useAssistantTool.js.map +0 -1
- package/dist/model-context/useAssistantToolUI.d.ts +0 -7
- package/dist/model-context/useAssistantToolUI.d.ts.map +0 -1
- package/dist/model-context/useAssistantToolUI.js +0 -12
- package/dist/model-context/useAssistantToolUI.js.map +0 -1
- package/dist/model-context/useInlineRender.d.ts +0 -4
- package/dist/model-context/useInlineRender.d.ts.map +0 -1
- package/dist/model-context/useInlineRender.js +0 -16
- package/dist/model-context/useInlineRender.js.map +0 -1
- package/dist/types/MessagePartComponentTypes.d.ts +0 -33
- package/dist/types/MessagePartComponentTypes.d.ts.map +0 -1
- package/dist/types/MessagePartComponentTypes.js +0 -2
- package/dist/types/MessagePartComponentTypes.js.map +0 -1
- package/dist/types/scopes/dataRenderers.d.ts +0 -13
- package/dist/types/scopes/dataRenderers.d.ts.map +0 -1
- package/dist/types/scopes/dataRenderers.js +0 -2
- package/dist/types/scopes/dataRenderers.js.map +0 -1
- package/dist/types/scopes/tools.d.ts +0 -13
- package/dist/types/scopes/tools.d.ts.map +0 -1
- package/dist/types/scopes/tools.js +0 -2
- package/dist/types/scopes/tools.js.map +0 -1
- package/dist/types/store-augmentation.d.ts +0 -10
- package/dist/types/store-augmentation.d.ts.map +0 -1
- package/dist/types/store-augmentation.js +0 -2
- package/dist/types/store-augmentation.js.map +0 -1
- package/src/client/DataRenderers.ts +0 -42
- package/src/client/Tools.ts +0 -97
- package/src/model-context/makeAssistantDataUI.ts +0 -22
- package/src/model-context/makeAssistantTool.ts +0 -22
- package/src/model-context/makeAssistantToolUI.ts +0 -22
- package/src/model-context/toolbox.ts +0 -17
- package/src/model-context/useAssistantDataUI.ts +0 -18
- package/src/model-context/useAssistantInstructions.ts +0 -32
- package/src/model-context/useAssistantTool.ts +0 -39
- package/src/model-context/useAssistantToolUI.ts +0 -20
- package/src/model-context/useInlineRender.ts +0 -27
- package/src/types/MessagePartComponentTypes.ts +0 -66
- package/src/types/scopes/dataRenderers.ts +0 -15
- package/src/types/scopes/tools.ts +0 -18
- package/src/types/store-augmentation.ts +0 -11
|
@@ -81,11 +81,11 @@ export declare const useAttachment: {
|
|
|
81
81
|
}) | TSelected | null;
|
|
82
82
|
};
|
|
83
83
|
export declare const useThreadComposerAttachment: {
|
|
84
|
-
(): {
|
|
84
|
+
(): ({
|
|
85
85
|
id: string;
|
|
86
|
-
type: "image" | "document" | "file";
|
|
86
|
+
type: "image" | "document" | "file" | (string & {});
|
|
87
87
|
name: string;
|
|
88
|
-
contentType
|
|
88
|
+
contentType?: string | undefined;
|
|
89
89
|
file?: File;
|
|
90
90
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
91
91
|
} & {
|
|
@@ -95,12 +95,26 @@ export declare const useThreadComposerAttachment: {
|
|
|
95
95
|
readonly source: "thread-composer";
|
|
96
96
|
} & {
|
|
97
97
|
source: "thread-composer";
|
|
98
|
-
}
|
|
99
|
-
|
|
98
|
+
}) | ({
|
|
99
|
+
id: string;
|
|
100
|
+
type: "image" | "document" | "file" | (string & {});
|
|
101
|
+
name: string;
|
|
102
|
+
contentType?: string | undefined;
|
|
103
|
+
file?: File;
|
|
104
|
+
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
105
|
+
} & {
|
|
106
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
107
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
108
|
+
} & {
|
|
109
|
+
readonly source: "thread-composer";
|
|
110
|
+
} & {
|
|
111
|
+
source: "thread-composer";
|
|
112
|
+
});
|
|
113
|
+
<TSelected>(selector: (state: ({
|
|
100
114
|
id: string;
|
|
101
|
-
type: "image" | "document" | "file";
|
|
115
|
+
type: "image" | "document" | "file" | (string & {});
|
|
102
116
|
name: string;
|
|
103
|
-
contentType
|
|
117
|
+
contentType?: string | undefined;
|
|
104
118
|
file?: File;
|
|
105
119
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
106
120
|
} & {
|
|
@@ -110,12 +124,26 @@ export declare const useThreadComposerAttachment: {
|
|
|
110
124
|
readonly source: "thread-composer";
|
|
111
125
|
} & {
|
|
112
126
|
source: "thread-composer";
|
|
113
|
-
})
|
|
114
|
-
|
|
127
|
+
}) | ({
|
|
128
|
+
id: string;
|
|
129
|
+
type: "image" | "document" | "file" | (string & {});
|
|
130
|
+
name: string;
|
|
131
|
+
contentType?: string | undefined;
|
|
132
|
+
file?: File;
|
|
133
|
+
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
134
|
+
} & {
|
|
135
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
136
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
137
|
+
} & {
|
|
138
|
+
readonly source: "thread-composer";
|
|
139
|
+
} & {
|
|
140
|
+
source: "thread-composer";
|
|
141
|
+
})) => TSelected): TSelected;
|
|
142
|
+
<TSelected>(selector: ((state: ({
|
|
115
143
|
id: string;
|
|
116
|
-
type: "image" | "document" | "file";
|
|
144
|
+
type: "image" | "document" | "file" | (string & {});
|
|
117
145
|
name: string;
|
|
118
|
-
contentType
|
|
146
|
+
contentType?: string | undefined;
|
|
119
147
|
file?: File;
|
|
120
148
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
121
149
|
} & {
|
|
@@ -125,11 +153,25 @@ export declare const useThreadComposerAttachment: {
|
|
|
125
153
|
readonly source: "thread-composer";
|
|
126
154
|
} & {
|
|
127
155
|
source: "thread-composer";
|
|
128
|
-
})
|
|
156
|
+
}) | ({
|
|
157
|
+
id: string;
|
|
158
|
+
type: "image" | "document" | "file" | (string & {});
|
|
159
|
+
name: string;
|
|
160
|
+
contentType?: string | undefined;
|
|
161
|
+
file?: File;
|
|
162
|
+
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
163
|
+
} & {
|
|
164
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
165
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
166
|
+
} & {
|
|
167
|
+
readonly source: "thread-composer";
|
|
168
|
+
} & {
|
|
169
|
+
source: "thread-composer";
|
|
170
|
+
})) => TSelected) | undefined): ({
|
|
129
171
|
id: string;
|
|
130
|
-
type: "image" | "document" | "file";
|
|
172
|
+
type: "image" | "document" | "file" | (string & {});
|
|
131
173
|
name: string;
|
|
132
|
-
contentType
|
|
174
|
+
contentType?: string | undefined;
|
|
133
175
|
file?: File;
|
|
134
176
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
135
177
|
} & {
|
|
@@ -139,14 +181,28 @@ export declare const useThreadComposerAttachment: {
|
|
|
139
181
|
readonly source: "thread-composer";
|
|
140
182
|
} & {
|
|
141
183
|
source: "thread-composer";
|
|
184
|
+
}) | ({
|
|
185
|
+
id: string;
|
|
186
|
+
type: "image" | "document" | "file" | (string & {});
|
|
187
|
+
name: string;
|
|
188
|
+
contentType?: string | undefined;
|
|
189
|
+
file?: File;
|
|
190
|
+
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
191
|
+
} & {
|
|
192
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
193
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
194
|
+
} & {
|
|
195
|
+
readonly source: "thread-composer";
|
|
196
|
+
} & {
|
|
197
|
+
source: "thread-composer";
|
|
142
198
|
}) | TSelected;
|
|
143
199
|
(options: {
|
|
144
200
|
optional?: false | undefined;
|
|
145
|
-
}): {
|
|
201
|
+
}): ({
|
|
146
202
|
id: string;
|
|
147
|
-
type: "image" | "document" | "file";
|
|
203
|
+
type: "image" | "document" | "file" | (string & {});
|
|
148
204
|
name: string;
|
|
149
|
-
contentType
|
|
205
|
+
contentType?: string | undefined;
|
|
150
206
|
file?: File;
|
|
151
207
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
152
208
|
} & {
|
|
@@ -156,14 +212,28 @@ export declare const useThreadComposerAttachment: {
|
|
|
156
212
|
readonly source: "thread-composer";
|
|
157
213
|
} & {
|
|
158
214
|
source: "thread-composer";
|
|
159
|
-
}
|
|
215
|
+
}) | ({
|
|
216
|
+
id: string;
|
|
217
|
+
type: "image" | "document" | "file" | (string & {});
|
|
218
|
+
name: string;
|
|
219
|
+
contentType?: string | undefined;
|
|
220
|
+
file?: File;
|
|
221
|
+
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
222
|
+
} & {
|
|
223
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
224
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
225
|
+
} & {
|
|
226
|
+
readonly source: "thread-composer";
|
|
227
|
+
} & {
|
|
228
|
+
source: "thread-composer";
|
|
229
|
+
});
|
|
160
230
|
(options: {
|
|
161
231
|
optional?: boolean | undefined;
|
|
162
232
|
}): ({
|
|
163
233
|
id: string;
|
|
164
|
-
type: "image" | "document" | "file";
|
|
234
|
+
type: "image" | "document" | "file" | (string & {});
|
|
165
235
|
name: string;
|
|
166
|
-
contentType
|
|
236
|
+
contentType?: string | undefined;
|
|
167
237
|
file?: File;
|
|
168
238
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
169
239
|
} & {
|
|
@@ -173,14 +243,28 @@ export declare const useThreadComposerAttachment: {
|
|
|
173
243
|
readonly source: "thread-composer";
|
|
174
244
|
} & {
|
|
175
245
|
source: "thread-composer";
|
|
246
|
+
}) | ({
|
|
247
|
+
id: string;
|
|
248
|
+
type: "image" | "document" | "file" | (string & {});
|
|
249
|
+
name: string;
|
|
250
|
+
contentType?: string | undefined;
|
|
251
|
+
file?: File;
|
|
252
|
+
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
253
|
+
} & {
|
|
254
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
255
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
256
|
+
} & {
|
|
257
|
+
readonly source: "thread-composer";
|
|
258
|
+
} & {
|
|
259
|
+
source: "thread-composer";
|
|
176
260
|
}) | null;
|
|
177
261
|
<TSelected>(options: {
|
|
178
262
|
optional?: false | undefined;
|
|
179
|
-
selector: (state: {
|
|
263
|
+
selector: (state: ({
|
|
180
264
|
id: string;
|
|
181
|
-
type: "image" | "document" | "file";
|
|
265
|
+
type: "image" | "document" | "file" | (string & {});
|
|
182
266
|
name: string;
|
|
183
|
-
contentType
|
|
267
|
+
contentType?: string | undefined;
|
|
184
268
|
file?: File;
|
|
185
269
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
186
270
|
} & {
|
|
@@ -190,15 +274,29 @@ export declare const useThreadComposerAttachment: {
|
|
|
190
274
|
readonly source: "thread-composer";
|
|
191
275
|
} & {
|
|
192
276
|
source: "thread-composer";
|
|
193
|
-
})
|
|
277
|
+
}) | ({
|
|
278
|
+
id: string;
|
|
279
|
+
type: "image" | "document" | "file" | (string & {});
|
|
280
|
+
name: string;
|
|
281
|
+
contentType?: string | undefined;
|
|
282
|
+
file?: File;
|
|
283
|
+
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
284
|
+
} & {
|
|
285
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
286
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
287
|
+
} & {
|
|
288
|
+
readonly source: "thread-composer";
|
|
289
|
+
} & {
|
|
290
|
+
source: "thread-composer";
|
|
291
|
+
})) => TSelected;
|
|
194
292
|
}): TSelected;
|
|
195
293
|
<TSelected>(options: {
|
|
196
294
|
optional?: false | undefined;
|
|
197
|
-
selector: ((state: {
|
|
295
|
+
selector: ((state: ({
|
|
198
296
|
id: string;
|
|
199
|
-
type: "image" | "document" | "file";
|
|
297
|
+
type: "image" | "document" | "file" | (string & {});
|
|
200
298
|
name: string;
|
|
201
|
-
contentType
|
|
299
|
+
contentType?: string | undefined;
|
|
202
300
|
file?: File;
|
|
203
301
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
204
302
|
} & {
|
|
@@ -208,12 +306,26 @@ export declare const useThreadComposerAttachment: {
|
|
|
208
306
|
readonly source: "thread-composer";
|
|
209
307
|
} & {
|
|
210
308
|
source: "thread-composer";
|
|
211
|
-
})
|
|
309
|
+
}) | ({
|
|
310
|
+
id: string;
|
|
311
|
+
type: "image" | "document" | "file" | (string & {});
|
|
312
|
+
name: string;
|
|
313
|
+
contentType?: string | undefined;
|
|
314
|
+
file?: File;
|
|
315
|
+
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
316
|
+
} & {
|
|
317
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
318
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
319
|
+
} & {
|
|
320
|
+
readonly source: "thread-composer";
|
|
321
|
+
} & {
|
|
322
|
+
source: "thread-composer";
|
|
323
|
+
})) => TSelected) | undefined;
|
|
212
324
|
}): ({
|
|
213
325
|
id: string;
|
|
214
|
-
type: "image" | "document" | "file";
|
|
326
|
+
type: "image" | "document" | "file" | (string & {});
|
|
215
327
|
name: string;
|
|
216
|
-
contentType
|
|
328
|
+
contentType?: string | undefined;
|
|
217
329
|
file?: File;
|
|
218
330
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
219
331
|
} & {
|
|
@@ -223,14 +335,28 @@ export declare const useThreadComposerAttachment: {
|
|
|
223
335
|
readonly source: "thread-composer";
|
|
224
336
|
} & {
|
|
225
337
|
source: "thread-composer";
|
|
338
|
+
}) | ({
|
|
339
|
+
id: string;
|
|
340
|
+
type: "image" | "document" | "file" | (string & {});
|
|
341
|
+
name: string;
|
|
342
|
+
contentType?: string | undefined;
|
|
343
|
+
file?: File;
|
|
344
|
+
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
345
|
+
} & {
|
|
346
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
347
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
348
|
+
} & {
|
|
349
|
+
readonly source: "thread-composer";
|
|
350
|
+
} & {
|
|
351
|
+
source: "thread-composer";
|
|
226
352
|
}) | TSelected;
|
|
227
353
|
<TSelected>(options: {
|
|
228
354
|
optional?: boolean | undefined;
|
|
229
|
-
selector: (state: {
|
|
355
|
+
selector: (state: ({
|
|
230
356
|
id: string;
|
|
231
|
-
type: "image" | "document" | "file";
|
|
357
|
+
type: "image" | "document" | "file" | (string & {});
|
|
232
358
|
name: string;
|
|
233
|
-
contentType
|
|
359
|
+
contentType?: string | undefined;
|
|
234
360
|
file?: File;
|
|
235
361
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
236
362
|
} & {
|
|
@@ -240,15 +366,29 @@ export declare const useThreadComposerAttachment: {
|
|
|
240
366
|
readonly source: "thread-composer";
|
|
241
367
|
} & {
|
|
242
368
|
source: "thread-composer";
|
|
243
|
-
})
|
|
369
|
+
}) | ({
|
|
370
|
+
id: string;
|
|
371
|
+
type: "image" | "document" | "file" | (string & {});
|
|
372
|
+
name: string;
|
|
373
|
+
contentType?: string | undefined;
|
|
374
|
+
file?: File;
|
|
375
|
+
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
376
|
+
} & {
|
|
377
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
378
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
379
|
+
} & {
|
|
380
|
+
readonly source: "thread-composer";
|
|
381
|
+
} & {
|
|
382
|
+
source: "thread-composer";
|
|
383
|
+
})) => TSelected;
|
|
244
384
|
}): TSelected | null;
|
|
245
385
|
<TSelected>(options: {
|
|
246
386
|
optional?: boolean | undefined;
|
|
247
|
-
selector: ((state: {
|
|
387
|
+
selector: ((state: ({
|
|
248
388
|
id: string;
|
|
249
|
-
type: "image" | "document" | "file";
|
|
389
|
+
type: "image" | "document" | "file" | (string & {});
|
|
250
390
|
name: string;
|
|
251
|
-
contentType
|
|
391
|
+
contentType?: string | undefined;
|
|
252
392
|
file?: File;
|
|
253
393
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
254
394
|
} & {
|
|
@@ -258,12 +398,26 @@ export declare const useThreadComposerAttachment: {
|
|
|
258
398
|
readonly source: "thread-composer";
|
|
259
399
|
} & {
|
|
260
400
|
source: "thread-composer";
|
|
261
|
-
})
|
|
401
|
+
}) | ({
|
|
402
|
+
id: string;
|
|
403
|
+
type: "image" | "document" | "file" | (string & {});
|
|
404
|
+
name: string;
|
|
405
|
+
contentType?: string | undefined;
|
|
406
|
+
file?: File;
|
|
407
|
+
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
408
|
+
} & {
|
|
409
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
410
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
411
|
+
} & {
|
|
412
|
+
readonly source: "thread-composer";
|
|
413
|
+
} & {
|
|
414
|
+
source: "thread-composer";
|
|
415
|
+
})) => TSelected) | undefined;
|
|
262
416
|
}): ({
|
|
263
417
|
id: string;
|
|
264
|
-
type: "image" | "document" | "file";
|
|
418
|
+
type: "image" | "document" | "file" | (string & {});
|
|
265
419
|
name: string;
|
|
266
|
-
contentType
|
|
420
|
+
contentType?: string | undefined;
|
|
267
421
|
file?: File;
|
|
268
422
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
269
423
|
} & {
|
|
@@ -273,14 +427,28 @@ export declare const useThreadComposerAttachment: {
|
|
|
273
427
|
readonly source: "thread-composer";
|
|
274
428
|
} & {
|
|
275
429
|
source: "thread-composer";
|
|
430
|
+
}) | ({
|
|
431
|
+
id: string;
|
|
432
|
+
type: "image" | "document" | "file" | (string & {});
|
|
433
|
+
name: string;
|
|
434
|
+
contentType?: string | undefined;
|
|
435
|
+
file?: File;
|
|
436
|
+
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
437
|
+
} & {
|
|
438
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
439
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
440
|
+
} & {
|
|
441
|
+
readonly source: "thread-composer";
|
|
442
|
+
} & {
|
|
443
|
+
source: "thread-composer";
|
|
276
444
|
}) | TSelected | null;
|
|
277
445
|
};
|
|
278
446
|
export declare const useEditComposerAttachment: {
|
|
279
447
|
(): ({
|
|
280
448
|
id: string;
|
|
281
|
-
type: "image" | "document" | "file";
|
|
449
|
+
type: "image" | "document" | "file" | (string & {});
|
|
282
450
|
name: string;
|
|
283
|
-
contentType
|
|
451
|
+
contentType?: string | undefined;
|
|
284
452
|
file?: File;
|
|
285
453
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
286
454
|
} & {
|
|
@@ -292,9 +460,9 @@ export declare const useEditComposerAttachment: {
|
|
|
292
460
|
source: "edit-composer";
|
|
293
461
|
}) | ({
|
|
294
462
|
id: string;
|
|
295
|
-
type: "image" | "document" | "file";
|
|
463
|
+
type: "image" | "document" | "file" | (string & {});
|
|
296
464
|
name: string;
|
|
297
|
-
contentType
|
|
465
|
+
contentType?: string | undefined;
|
|
298
466
|
file?: File;
|
|
299
467
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
300
468
|
} & {
|
|
@@ -307,9 +475,9 @@ export declare const useEditComposerAttachment: {
|
|
|
307
475
|
});
|
|
308
476
|
<TSelected>(selector: (state: ({
|
|
309
477
|
id: string;
|
|
310
|
-
type: "image" | "document" | "file";
|
|
478
|
+
type: "image" | "document" | "file" | (string & {});
|
|
311
479
|
name: string;
|
|
312
|
-
contentType
|
|
480
|
+
contentType?: string | undefined;
|
|
313
481
|
file?: File;
|
|
314
482
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
315
483
|
} & {
|
|
@@ -321,9 +489,9 @@ export declare const useEditComposerAttachment: {
|
|
|
321
489
|
source: "edit-composer";
|
|
322
490
|
}) | ({
|
|
323
491
|
id: string;
|
|
324
|
-
type: "image" | "document" | "file";
|
|
492
|
+
type: "image" | "document" | "file" | (string & {});
|
|
325
493
|
name: string;
|
|
326
|
-
contentType
|
|
494
|
+
contentType?: string | undefined;
|
|
327
495
|
file?: File;
|
|
328
496
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
329
497
|
} & {
|
|
@@ -336,9 +504,9 @@ export declare const useEditComposerAttachment: {
|
|
|
336
504
|
})) => TSelected): TSelected;
|
|
337
505
|
<TSelected>(selector: ((state: ({
|
|
338
506
|
id: string;
|
|
339
|
-
type: "image" | "document" | "file";
|
|
507
|
+
type: "image" | "document" | "file" | (string & {});
|
|
340
508
|
name: string;
|
|
341
|
-
contentType
|
|
509
|
+
contentType?: string | undefined;
|
|
342
510
|
file?: File;
|
|
343
511
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
344
512
|
} & {
|
|
@@ -350,9 +518,9 @@ export declare const useEditComposerAttachment: {
|
|
|
350
518
|
source: "edit-composer";
|
|
351
519
|
}) | ({
|
|
352
520
|
id: string;
|
|
353
|
-
type: "image" | "document" | "file";
|
|
521
|
+
type: "image" | "document" | "file" | (string & {});
|
|
354
522
|
name: string;
|
|
355
|
-
contentType
|
|
523
|
+
contentType?: string | undefined;
|
|
356
524
|
file?: File;
|
|
357
525
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
358
526
|
} & {
|
|
@@ -364,9 +532,9 @@ export declare const useEditComposerAttachment: {
|
|
|
364
532
|
source: "edit-composer";
|
|
365
533
|
})) => TSelected) | undefined): ({
|
|
366
534
|
id: string;
|
|
367
|
-
type: "image" | "document" | "file";
|
|
535
|
+
type: "image" | "document" | "file" | (string & {});
|
|
368
536
|
name: string;
|
|
369
|
-
contentType
|
|
537
|
+
contentType?: string | undefined;
|
|
370
538
|
file?: File;
|
|
371
539
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
372
540
|
} & {
|
|
@@ -378,9 +546,9 @@ export declare const useEditComposerAttachment: {
|
|
|
378
546
|
source: "edit-composer";
|
|
379
547
|
}) | ({
|
|
380
548
|
id: string;
|
|
381
|
-
type: "image" | "document" | "file";
|
|
549
|
+
type: "image" | "document" | "file" | (string & {});
|
|
382
550
|
name: string;
|
|
383
|
-
contentType
|
|
551
|
+
contentType?: string | undefined;
|
|
384
552
|
file?: File;
|
|
385
553
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
386
554
|
} & {
|
|
@@ -395,9 +563,9 @@ export declare const useEditComposerAttachment: {
|
|
|
395
563
|
optional?: false | undefined;
|
|
396
564
|
}): ({
|
|
397
565
|
id: string;
|
|
398
|
-
type: "image" | "document" | "file";
|
|
566
|
+
type: "image" | "document" | "file" | (string & {});
|
|
399
567
|
name: string;
|
|
400
|
-
contentType
|
|
568
|
+
contentType?: string | undefined;
|
|
401
569
|
file?: File;
|
|
402
570
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
403
571
|
} & {
|
|
@@ -409,9 +577,9 @@ export declare const useEditComposerAttachment: {
|
|
|
409
577
|
source: "edit-composer";
|
|
410
578
|
}) | ({
|
|
411
579
|
id: string;
|
|
412
|
-
type: "image" | "document" | "file";
|
|
580
|
+
type: "image" | "document" | "file" | (string & {});
|
|
413
581
|
name: string;
|
|
414
|
-
contentType
|
|
582
|
+
contentType?: string | undefined;
|
|
415
583
|
file?: File;
|
|
416
584
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
417
585
|
} & {
|
|
@@ -426,9 +594,9 @@ export declare const useEditComposerAttachment: {
|
|
|
426
594
|
optional?: boolean | undefined;
|
|
427
595
|
}): ({
|
|
428
596
|
id: string;
|
|
429
|
-
type: "image" | "document" | "file";
|
|
597
|
+
type: "image" | "document" | "file" | (string & {});
|
|
430
598
|
name: string;
|
|
431
|
-
contentType
|
|
599
|
+
contentType?: string | undefined;
|
|
432
600
|
file?: File;
|
|
433
601
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
434
602
|
} & {
|
|
@@ -440,9 +608,9 @@ export declare const useEditComposerAttachment: {
|
|
|
440
608
|
source: "edit-composer";
|
|
441
609
|
}) | ({
|
|
442
610
|
id: string;
|
|
443
|
-
type: "image" | "document" | "file";
|
|
611
|
+
type: "image" | "document" | "file" | (string & {});
|
|
444
612
|
name: string;
|
|
445
|
-
contentType
|
|
613
|
+
contentType?: string | undefined;
|
|
446
614
|
file?: File;
|
|
447
615
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
448
616
|
} & {
|
|
@@ -457,9 +625,9 @@ export declare const useEditComposerAttachment: {
|
|
|
457
625
|
optional?: false | undefined;
|
|
458
626
|
selector: (state: ({
|
|
459
627
|
id: string;
|
|
460
|
-
type: "image" | "document" | "file";
|
|
628
|
+
type: "image" | "document" | "file" | (string & {});
|
|
461
629
|
name: string;
|
|
462
|
-
contentType
|
|
630
|
+
contentType?: string | undefined;
|
|
463
631
|
file?: File;
|
|
464
632
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
465
633
|
} & {
|
|
@@ -471,9 +639,9 @@ export declare const useEditComposerAttachment: {
|
|
|
471
639
|
source: "edit-composer";
|
|
472
640
|
}) | ({
|
|
473
641
|
id: string;
|
|
474
|
-
type: "image" | "document" | "file";
|
|
642
|
+
type: "image" | "document" | "file" | (string & {});
|
|
475
643
|
name: string;
|
|
476
|
-
contentType
|
|
644
|
+
contentType?: string | undefined;
|
|
477
645
|
file?: File;
|
|
478
646
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
479
647
|
} & {
|
|
@@ -489,9 +657,9 @@ export declare const useEditComposerAttachment: {
|
|
|
489
657
|
optional?: false | undefined;
|
|
490
658
|
selector: ((state: ({
|
|
491
659
|
id: string;
|
|
492
|
-
type: "image" | "document" | "file";
|
|
660
|
+
type: "image" | "document" | "file" | (string & {});
|
|
493
661
|
name: string;
|
|
494
|
-
contentType
|
|
662
|
+
contentType?: string | undefined;
|
|
495
663
|
file?: File;
|
|
496
664
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
497
665
|
} & {
|
|
@@ -503,9 +671,9 @@ export declare const useEditComposerAttachment: {
|
|
|
503
671
|
source: "edit-composer";
|
|
504
672
|
}) | ({
|
|
505
673
|
id: string;
|
|
506
|
-
type: "image" | "document" | "file";
|
|
674
|
+
type: "image" | "document" | "file" | (string & {});
|
|
507
675
|
name: string;
|
|
508
|
-
contentType
|
|
676
|
+
contentType?: string | undefined;
|
|
509
677
|
file?: File;
|
|
510
678
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
511
679
|
} & {
|
|
@@ -518,9 +686,9 @@ export declare const useEditComposerAttachment: {
|
|
|
518
686
|
})) => TSelected) | undefined;
|
|
519
687
|
}): ({
|
|
520
688
|
id: string;
|
|
521
|
-
type: "image" | "document" | "file";
|
|
689
|
+
type: "image" | "document" | "file" | (string & {});
|
|
522
690
|
name: string;
|
|
523
|
-
contentType
|
|
691
|
+
contentType?: string | undefined;
|
|
524
692
|
file?: File;
|
|
525
693
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
526
694
|
} & {
|
|
@@ -532,9 +700,9 @@ export declare const useEditComposerAttachment: {
|
|
|
532
700
|
source: "edit-composer";
|
|
533
701
|
}) | ({
|
|
534
702
|
id: string;
|
|
535
|
-
type: "image" | "document" | "file";
|
|
703
|
+
type: "image" | "document" | "file" | (string & {});
|
|
536
704
|
name: string;
|
|
537
|
-
contentType
|
|
705
|
+
contentType?: string | undefined;
|
|
538
706
|
file?: File;
|
|
539
707
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
540
708
|
} & {
|
|
@@ -549,9 +717,9 @@ export declare const useEditComposerAttachment: {
|
|
|
549
717
|
optional?: boolean | undefined;
|
|
550
718
|
selector: (state: ({
|
|
551
719
|
id: string;
|
|
552
|
-
type: "image" | "document" | "file";
|
|
720
|
+
type: "image" | "document" | "file" | (string & {});
|
|
553
721
|
name: string;
|
|
554
|
-
contentType
|
|
722
|
+
contentType?: string | undefined;
|
|
555
723
|
file?: File;
|
|
556
724
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
557
725
|
} & {
|
|
@@ -563,9 +731,9 @@ export declare const useEditComposerAttachment: {
|
|
|
563
731
|
source: "edit-composer";
|
|
564
732
|
}) | ({
|
|
565
733
|
id: string;
|
|
566
|
-
type: "image" | "document" | "file";
|
|
734
|
+
type: "image" | "document" | "file" | (string & {});
|
|
567
735
|
name: string;
|
|
568
|
-
contentType
|
|
736
|
+
contentType?: string | undefined;
|
|
569
737
|
file?: File;
|
|
570
738
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
571
739
|
} & {
|
|
@@ -581,9 +749,9 @@ export declare const useEditComposerAttachment: {
|
|
|
581
749
|
optional?: boolean | undefined;
|
|
582
750
|
selector: ((state: ({
|
|
583
751
|
id: string;
|
|
584
|
-
type: "image" | "document" | "file";
|
|
752
|
+
type: "image" | "document" | "file" | (string & {});
|
|
585
753
|
name: string;
|
|
586
|
-
contentType
|
|
754
|
+
contentType?: string | undefined;
|
|
587
755
|
file?: File;
|
|
588
756
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
589
757
|
} & {
|
|
@@ -595,9 +763,9 @@ export declare const useEditComposerAttachment: {
|
|
|
595
763
|
source: "edit-composer";
|
|
596
764
|
}) | ({
|
|
597
765
|
id: string;
|
|
598
|
-
type: "image" | "document" | "file";
|
|
766
|
+
type: "image" | "document" | "file" | (string & {});
|
|
599
767
|
name: string;
|
|
600
|
-
contentType
|
|
768
|
+
contentType?: string | undefined;
|
|
601
769
|
file?: File;
|
|
602
770
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
603
771
|
} & {
|
|
@@ -610,9 +778,9 @@ export declare const useEditComposerAttachment: {
|
|
|
610
778
|
})) => TSelected) | undefined;
|
|
611
779
|
}): ({
|
|
612
780
|
id: string;
|
|
613
|
-
type: "image" | "document" | "file";
|
|
781
|
+
type: "image" | "document" | "file" | (string & {});
|
|
614
782
|
name: string;
|
|
615
|
-
contentType
|
|
783
|
+
contentType?: string | undefined;
|
|
616
784
|
file?: File;
|
|
617
785
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
618
786
|
} & {
|
|
@@ -624,9 +792,9 @@ export declare const useEditComposerAttachment: {
|
|
|
624
792
|
source: "edit-composer";
|
|
625
793
|
}) | ({
|
|
626
794
|
id: string;
|
|
627
|
-
type: "image" | "document" | "file";
|
|
795
|
+
type: "image" | "document" | "file" | (string & {});
|
|
628
796
|
name: string;
|
|
629
|
-
contentType
|
|
797
|
+
contentType?: string | undefined;
|
|
630
798
|
file?: File;
|
|
631
799
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
632
800
|
} & {
|
|
@@ -641,9 +809,9 @@ export declare const useEditComposerAttachment: {
|
|
|
641
809
|
export declare const useMessageAttachment: {
|
|
642
810
|
(): {
|
|
643
811
|
id: string;
|
|
644
|
-
type: "image" | "document" | "file";
|
|
812
|
+
type: "image" | "document" | "file" | (string & {});
|
|
645
813
|
name: string;
|
|
646
|
-
contentType
|
|
814
|
+
contentType?: string | undefined;
|
|
647
815
|
file?: File;
|
|
648
816
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
649
817
|
} & {
|
|
@@ -656,9 +824,9 @@ export declare const useMessageAttachment: {
|
|
|
656
824
|
};
|
|
657
825
|
<TSelected>(selector: (state: {
|
|
658
826
|
id: string;
|
|
659
|
-
type: "image" | "document" | "file";
|
|
827
|
+
type: "image" | "document" | "file" | (string & {});
|
|
660
828
|
name: string;
|
|
661
|
-
contentType
|
|
829
|
+
contentType?: string | undefined;
|
|
662
830
|
file?: File;
|
|
663
831
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
664
832
|
} & {
|
|
@@ -671,9 +839,9 @@ export declare const useMessageAttachment: {
|
|
|
671
839
|
}) => TSelected): TSelected;
|
|
672
840
|
<TSelected>(selector: ((state: {
|
|
673
841
|
id: string;
|
|
674
|
-
type: "image" | "document" | "file";
|
|
842
|
+
type: "image" | "document" | "file" | (string & {});
|
|
675
843
|
name: string;
|
|
676
|
-
contentType
|
|
844
|
+
contentType?: string | undefined;
|
|
677
845
|
file?: File;
|
|
678
846
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
679
847
|
} & {
|
|
@@ -685,9 +853,9 @@ export declare const useMessageAttachment: {
|
|
|
685
853
|
source: "message";
|
|
686
854
|
}) => TSelected) | undefined): ({
|
|
687
855
|
id: string;
|
|
688
|
-
type: "image" | "document" | "file";
|
|
856
|
+
type: "image" | "document" | "file" | (string & {});
|
|
689
857
|
name: string;
|
|
690
|
-
contentType
|
|
858
|
+
contentType?: string | undefined;
|
|
691
859
|
file?: File;
|
|
692
860
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
693
861
|
} & {
|
|
@@ -702,9 +870,9 @@ export declare const useMessageAttachment: {
|
|
|
702
870
|
optional?: false | undefined;
|
|
703
871
|
}): {
|
|
704
872
|
id: string;
|
|
705
|
-
type: "image" | "document" | "file";
|
|
873
|
+
type: "image" | "document" | "file" | (string & {});
|
|
706
874
|
name: string;
|
|
707
|
-
contentType
|
|
875
|
+
contentType?: string | undefined;
|
|
708
876
|
file?: File;
|
|
709
877
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
710
878
|
} & {
|
|
@@ -719,9 +887,9 @@ export declare const useMessageAttachment: {
|
|
|
719
887
|
optional?: boolean | undefined;
|
|
720
888
|
}): ({
|
|
721
889
|
id: string;
|
|
722
|
-
type: "image" | "document" | "file";
|
|
890
|
+
type: "image" | "document" | "file" | (string & {});
|
|
723
891
|
name: string;
|
|
724
|
-
contentType
|
|
892
|
+
contentType?: string | undefined;
|
|
725
893
|
file?: File;
|
|
726
894
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
727
895
|
} & {
|
|
@@ -736,9 +904,9 @@ export declare const useMessageAttachment: {
|
|
|
736
904
|
optional?: false | undefined;
|
|
737
905
|
selector: (state: {
|
|
738
906
|
id: string;
|
|
739
|
-
type: "image" | "document" | "file";
|
|
907
|
+
type: "image" | "document" | "file" | (string & {});
|
|
740
908
|
name: string;
|
|
741
|
-
contentType
|
|
909
|
+
contentType?: string | undefined;
|
|
742
910
|
file?: File;
|
|
743
911
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
744
912
|
} & {
|
|
@@ -754,9 +922,9 @@ export declare const useMessageAttachment: {
|
|
|
754
922
|
optional?: false | undefined;
|
|
755
923
|
selector: ((state: {
|
|
756
924
|
id: string;
|
|
757
|
-
type: "image" | "document" | "file";
|
|
925
|
+
type: "image" | "document" | "file" | (string & {});
|
|
758
926
|
name: string;
|
|
759
|
-
contentType
|
|
927
|
+
contentType?: string | undefined;
|
|
760
928
|
file?: File;
|
|
761
929
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
762
930
|
} & {
|
|
@@ -769,9 +937,9 @@ export declare const useMessageAttachment: {
|
|
|
769
937
|
}) => TSelected) | undefined;
|
|
770
938
|
}): ({
|
|
771
939
|
id: string;
|
|
772
|
-
type: "image" | "document" | "file";
|
|
940
|
+
type: "image" | "document" | "file" | (string & {});
|
|
773
941
|
name: string;
|
|
774
|
-
contentType
|
|
942
|
+
contentType?: string | undefined;
|
|
775
943
|
file?: File;
|
|
776
944
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
777
945
|
} & {
|
|
@@ -786,9 +954,9 @@ export declare const useMessageAttachment: {
|
|
|
786
954
|
optional?: boolean | undefined;
|
|
787
955
|
selector: (state: {
|
|
788
956
|
id: string;
|
|
789
|
-
type: "image" | "document" | "file";
|
|
957
|
+
type: "image" | "document" | "file" | (string & {});
|
|
790
958
|
name: string;
|
|
791
|
-
contentType
|
|
959
|
+
contentType?: string | undefined;
|
|
792
960
|
file?: File;
|
|
793
961
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
794
962
|
} & {
|
|
@@ -804,9 +972,9 @@ export declare const useMessageAttachment: {
|
|
|
804
972
|
optional?: boolean | undefined;
|
|
805
973
|
selector: ((state: {
|
|
806
974
|
id: string;
|
|
807
|
-
type: "image" | "document" | "file";
|
|
975
|
+
type: "image" | "document" | "file" | (string & {});
|
|
808
976
|
name: string;
|
|
809
|
-
contentType
|
|
977
|
+
contentType?: string | undefined;
|
|
810
978
|
file?: File;
|
|
811
979
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
812
980
|
} & {
|
|
@@ -819,9 +987,9 @@ export declare const useMessageAttachment: {
|
|
|
819
987
|
}) => TSelected) | undefined;
|
|
820
988
|
}): ({
|
|
821
989
|
id: string;
|
|
822
|
-
type: "image" | "document" | "file";
|
|
990
|
+
type: "image" | "document" | "file" | (string & {});
|
|
823
991
|
name: string;
|
|
824
|
-
contentType
|
|
992
|
+
contentType?: string | undefined;
|
|
825
993
|
file?: File;
|
|
826
994
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
827
995
|
} & {
|