@assistant-ui/react 0.5.100 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/AssistantRuntime.d.ts +6 -86
- package/dist/api/AssistantRuntime.d.ts.map +1 -1
- package/dist/api/AssistantRuntime.js +0 -8
- package/dist/api/AssistantRuntime.js.map +1 -1
- package/dist/api/AssistantRuntime.mjs +0 -8
- package/dist/api/AssistantRuntime.mjs.map +1 -1
- package/dist/api/AttachmentRuntime.d.ts +4 -16
- package/dist/api/AttachmentRuntime.d.ts.map +1 -1
- package/dist/api/AttachmentRuntime.js.map +1 -1
- package/dist/api/AttachmentRuntime.mjs.map +1 -1
- package/dist/api/ComposerRuntime.d.ts +15 -131
- package/dist/api/ComposerRuntime.d.ts.map +1 -1
- package/dist/api/ComposerRuntime.js +4 -84
- package/dist/api/ComposerRuntime.js.map +1 -1
- package/dist/api/ComposerRuntime.mjs +4 -84
- package/dist/api/ComposerRuntime.mjs.map +1 -1
- package/dist/api/ContentPartRuntime.d.ts +2 -6
- package/dist/api/ContentPartRuntime.d.ts.map +1 -1
- package/dist/api/ContentPartRuntime.js.map +1 -1
- package/dist/api/ContentPartRuntime.mjs.map +1 -1
- package/dist/api/MessageRuntime.d.ts +8 -19
- package/dist/api/MessageRuntime.d.ts.map +1 -1
- package/dist/api/MessageRuntime.js +11 -7
- package/dist/api/MessageRuntime.js.map +1 -1
- package/dist/api/MessageRuntime.mjs +10 -6
- package/dist/api/MessageRuntime.mjs.map +1 -1
- package/dist/api/RuntimePathTypes.d.ts +33 -33
- package/dist/api/RuntimePathTypes.d.ts.map +1 -1
- package/dist/api/RuntimePathTypes.js.map +1 -1
- package/dist/api/ThreadListItemRuntime.d.ts +12 -8
- package/dist/api/ThreadListItemRuntime.d.ts.map +1 -1
- package/dist/api/ThreadListItemRuntime.js +10 -6
- package/dist/api/ThreadListItemRuntime.js.map +1 -1
- package/dist/api/ThreadListItemRuntime.mjs +10 -6
- package/dist/api/ThreadListItemRuntime.mjs.map +1 -1
- package/dist/api/ThreadListRuntime.d.ts +10 -28
- package/dist/api/ThreadListRuntime.d.ts.map +1 -1
- package/dist/api/ThreadListRuntime.js +23 -26
- package/dist/api/ThreadListRuntime.js.map +1 -1
- package/dist/api/ThreadListRuntime.mjs +23 -26
- package/dist/api/ThreadListRuntime.mjs.map +1 -1
- package/dist/api/ThreadRuntime.d.ts +53 -211
- package/dist/api/ThreadRuntime.d.ts.map +1 -1
- package/dist/api/ThreadRuntime.js +2 -94
- package/dist/api/ThreadRuntime.js.map +1 -1
- package/dist/api/ThreadRuntime.mjs +2 -94
- package/dist/api/ThreadRuntime.mjs.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js.map +1 -1
- package/dist/context/providers/AssistantRuntimeProvider.d.ts.map +1 -1
- package/dist/context/providers/AssistantRuntimeProvider.js +0 -1
- package/dist/context/providers/AssistantRuntimeProvider.js.map +1 -1
- package/dist/context/providers/AssistantRuntimeProvider.mjs +0 -1
- package/dist/context/providers/AssistantRuntimeProvider.mjs.map +1 -1
- package/dist/context/providers/TextContentPartProvider.d.ts.map +1 -1
- package/dist/context/providers/TextContentPartProvider.js +0 -2
- package/dist/context/providers/TextContentPartProvider.js.map +1 -1
- package/dist/context/providers/TextContentPartProvider.mjs +0 -2
- package/dist/context/providers/TextContentPartProvider.mjs.map +1 -1
- package/dist/context/providers/ThreadListItemRuntimeProvider.d.ts +1 -4
- package/dist/context/providers/ThreadListItemRuntimeProvider.d.ts.map +1 -1
- package/dist/context/providers/ThreadRuntimeProvider.d.ts.map +1 -1
- package/dist/context/providers/ThreadRuntimeProvider.js +1 -13
- package/dist/context/providers/ThreadRuntimeProvider.js.map +1 -1
- package/dist/context/providers/ThreadRuntimeProvider.mjs +1 -13
- package/dist/context/providers/ThreadRuntimeProvider.mjs.map +1 -1
- package/dist/context/react/AssistantContext.d.ts +10 -120
- package/dist/context/react/AssistantContext.d.ts.map +1 -1
- package/dist/context/react/AssistantContext.js +0 -15
- package/dist/context/react/AssistantContext.js.map +1 -1
- package/dist/context/react/AssistantContext.mjs +0 -11
- package/dist/context/react/AssistantContext.mjs.map +1 -1
- package/dist/context/react/AttachmentContext.d.ts +32 -48
- package/dist/context/react/AttachmentContext.d.ts.map +1 -1
- package/dist/context/react/ComposerContext.d.ts +0 -5
- package/dist/context/react/ComposerContext.d.ts.map +1 -1
- package/dist/context/react/ComposerContext.js +3 -5
- package/dist/context/react/ComposerContext.js.map +1 -1
- package/dist/context/react/ComposerContext.mjs +2 -3
- package/dist/context/react/ComposerContext.mjs.map +1 -1
- package/dist/context/react/ContentPartContext.d.ts +0 -5
- package/dist/context/react/ContentPartContext.d.ts.map +1 -1
- package/dist/context/react/ContentPartContext.js +3 -5
- package/dist/context/react/ContentPartContext.js.map +1 -1
- package/dist/context/react/ContentPartContext.mjs +2 -3
- package/dist/context/react/ContentPartContext.mjs.map +1 -1
- package/dist/context/react/MessageContext.d.ts +6 -46
- package/dist/context/react/MessageContext.d.ts.map +1 -1
- package/dist/context/react/MessageContext.js +2 -6
- package/dist/context/react/MessageContext.js.map +1 -1
- package/dist/context/react/MessageContext.mjs +2 -4
- package/dist/context/react/MessageContext.mjs.map +1 -1
- package/dist/context/react/ThreadContext.d.ts +11 -1749
- package/dist/context/react/ThreadContext.d.ts.map +1 -1
- package/dist/context/react/ThreadContext.js +4 -30
- package/dist/context/react/ThreadContext.js.map +1 -1
- package/dist/context/react/ThreadContext.mjs +4 -22
- package/dist/context/react/ThreadContext.mjs.map +1 -1
- package/dist/context/react/ThreadListItemContext.d.ts +6 -24
- package/dist/context/react/ThreadListItemContext.d.ts.map +1 -1
- package/dist/context/react/index.d.ts +5 -101
- package/dist/context/react/index.d.ts.map +1 -1
- package/dist/context/react/index.js +0 -38
- package/dist/context/react/index.js.map +1 -1
- package/dist/context/react/index.mjs +5 -49
- package/dist/context/react/index.mjs.map +1 -1
- package/dist/context/stores/AssistantToolUIs.d.ts +9 -6
- package/dist/context/stores/AssistantToolUIs.d.ts.map +1 -1
- package/dist/context/stores/AssistantToolUIs.js.map +1 -1
- package/dist/context/stores/AssistantToolUIs.mjs.map +1 -1
- package/dist/context/stores/MessageUtils.d.ts +7 -12
- package/dist/context/stores/MessageUtils.d.ts.map +1 -1
- package/dist/context/stores/MessageUtils.js.map +1 -1
- package/dist/context/stores/MessageUtils.mjs.map +1 -1
- package/dist/context/stores/ThreadViewport.d.ts +6 -10
- package/dist/context/stores/ThreadViewport.d.ts.map +1 -1
- package/dist/context/stores/ThreadViewport.js +0 -1
- package/dist/context/stores/ThreadViewport.js.map +1 -1
- package/dist/context/stores/ThreadViewport.mjs +0 -2
- package/dist/context/stores/ThreadViewport.mjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal.d.ts +1 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +3 -0
- package/dist/internal.js.map +1 -1
- package/dist/internal.mjs +2 -0
- package/dist/internal.mjs.map +1 -1
- package/dist/model-config/useAssistantToolUI.d.ts.map +1 -1
- package/dist/model-config/useAssistantToolUI.js.map +1 -1
- package/dist/model-config/useAssistantToolUI.mjs.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartDisplay.d.ts +1 -4
- package/dist/primitive-hooks/contentPart/useContentPartDisplay.d.ts.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartDisplay.js.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartDisplay.mjs.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartImage.d.ts +1 -4
- package/dist/primitive-hooks/contentPart/useContentPartImage.d.ts.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartImage.js.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartImage.mjs.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartText.d.ts +1 -4
- package/dist/primitive-hooks/contentPart/useContentPartText.d.ts.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartText.js.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartText.mjs.map +1 -1
- package/dist/primitive-hooks/index.d.ts +0 -5
- package/dist/primitive-hooks/index.d.ts.map +1 -1
- package/dist/primitive-hooks/index.js +1 -11
- package/dist/primitive-hooks/index.js.map +1 -1
- package/dist/primitive-hooks/index.mjs +0 -5
- package/dist/primitive-hooks/index.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarCopy.d.ts +1 -5
- package/dist/primitives/actionBar/ActionBarCopy.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarCopy.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarCopy.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.d.ts +0 -4
- package/dist/primitives/actionBar/ActionBarEdit.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts +0 -4
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +0 -4
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.d.ts +0 -4
- package/dist/primitives/actionBar/ActionBarReload.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarRoot.d.ts +0 -4
- package/dist/primitives/actionBar/ActionBarRoot.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarRoot.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarRoot.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarSpeak.d.ts +0 -4
- package/dist/primitives/actionBar/ActionBarSpeak.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarSpeak.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarSpeak.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts +0 -4
- package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarStopSpeaking.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarStopSpeaking.mjs.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalContent.d.ts +0 -4
- package/dist/primitives/assistantModal/AssistantModalContent.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalContent.js.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalContent.mjs.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalRoot.d.ts +0 -4
- package/dist/primitives/assistantModal/AssistantModalRoot.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalRoot.js.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalRoot.mjs.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalTrigger.d.ts +0 -4
- package/dist/primitives/assistantModal/AssistantModalTrigger.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalTrigger.js.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalTrigger.mjs.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts +0 -4
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerCount.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerCount.mjs.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts +0 -4
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.mjs.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts +0 -4
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNumber.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNumber.mjs.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +0 -4
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.mjs.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerRoot.d.ts +0 -4
- package/dist/primitives/branchPicker/BranchPickerRoot.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerRoot.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerRoot.mjs.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.d.ts +1 -5
- package/dist/primitives/composer/ComposerAddAttachment.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.js +2 -2
- package/dist/primitives/composer/ComposerAddAttachment.js.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.mjs +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.mjs.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.d.ts +0 -4
- package/dist/primitives/composer/ComposerAttachments.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.js.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.mjs.map +1 -1
- package/dist/primitives/composer/ComposerCancel.d.ts +0 -4
- package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerCancel.js.map +1 -1
- package/dist/primitives/composer/ComposerCancel.mjs.map +1 -1
- package/dist/primitives/composer/ComposerIf.d.ts +0 -4
- package/dist/primitives/composer/ComposerIf.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerIf.js.map +1 -1
- package/dist/primitives/composer/ComposerIf.mjs.map +1 -1
- package/dist/primitives/composer/ComposerInput.d.ts +0 -4
- package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerInput.js.map +1 -1
- package/dist/primitives/composer/ComposerInput.mjs.map +1 -1
- package/dist/primitives/composer/ComposerRoot.d.ts +0 -1
- package/dist/primitives/composer/ComposerRoot.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerRoot.js +2 -2
- package/dist/primitives/composer/ComposerRoot.js.map +1 -1
- package/dist/primitives/composer/ComposerRoot.mjs +1 -1
- package/dist/primitives/composer/ComposerRoot.mjs.map +1 -1
- package/dist/primitives/composer/ComposerSend.d.ts +1 -5
- package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerSend.js +2 -2
- package/dist/primitives/composer/ComposerSend.js.map +1 -1
- package/dist/primitives/composer/ComposerSend.mjs +1 -1
- package/dist/primitives/composer/ComposerSend.mjs.map +1 -1
- package/dist/primitives/contentPart/ContentPartDisplay.d.ts +0 -4
- package/dist/primitives/contentPart/ContentPartDisplay.d.ts.map +1 -1
- package/dist/primitives/contentPart/ContentPartDisplay.js.map +1 -1
- package/dist/primitives/contentPart/ContentPartDisplay.mjs.map +1 -1
- package/dist/primitives/contentPart/ContentPartImage.d.ts +0 -4
- package/dist/primitives/contentPart/ContentPartImage.d.ts.map +1 -1
- package/dist/primitives/contentPart/ContentPartImage.js.map +1 -1
- package/dist/primitives/contentPart/ContentPartImage.mjs.map +1 -1
- package/dist/primitives/contentPart/ContentPartInProgress.d.ts +0 -4
- package/dist/primitives/contentPart/ContentPartInProgress.d.ts.map +1 -1
- package/dist/primitives/contentPart/ContentPartInProgress.js.map +1 -1
- package/dist/primitives/contentPart/ContentPartInProgress.mjs.map +1 -1
- package/dist/primitives/contentPart/ContentPartText.d.ts +0 -4
- package/dist/primitives/contentPart/ContentPartText.d.ts.map +1 -1
- package/dist/primitives/contentPart/ContentPartText.js.map +1 -1
- package/dist/primitives/contentPart/ContentPartText.mjs.map +1 -1
- package/dist/primitives/index.d.ts +0 -7
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js.map +1 -1
- package/dist/primitives/index.mjs.map +1 -1
- package/dist/primitives/message/MessageAttachments.d.ts +0 -4
- package/dist/primitives/message/MessageAttachments.d.ts.map +1 -1
- package/dist/primitives/message/MessageAttachments.js +2 -4
- package/dist/primitives/message/MessageAttachments.js.map +1 -1
- package/dist/primitives/message/MessageAttachments.mjs +2 -4
- package/dist/primitives/message/MessageAttachments.mjs.map +1 -1
- package/dist/primitives/message/MessageContent.d.ts +0 -4
- package/dist/primitives/message/MessageContent.d.ts.map +1 -1
- package/dist/primitives/message/MessageContent.js +6 -6
- package/dist/primitives/message/MessageContent.js.map +1 -1
- package/dist/primitives/message/MessageContent.mjs +7 -7
- package/dist/primitives/message/MessageContent.mjs.map +1 -1
- package/dist/primitives/message/MessageIf.d.ts +0 -4
- package/dist/primitives/message/MessageIf.d.ts.map +1 -1
- package/dist/primitives/message/MessageIf.js.map +1 -1
- package/dist/primitives/message/MessageIf.mjs.map +1 -1
- package/dist/primitives/message/MessageRoot.d.ts +0 -4
- package/dist/primitives/message/MessageRoot.d.ts.map +1 -1
- package/dist/primitives/message/MessageRoot.js.map +1 -1
- package/dist/primitives/message/MessageRoot.mjs.map +1 -1
- package/dist/primitives/message/index.d.ts +0 -1
- package/dist/primitives/message/index.d.ts.map +1 -1
- package/dist/primitives/message/index.js +0 -3
- package/dist/primitives/message/index.js.map +1 -1
- package/dist/primitives/message/index.mjs +0 -2
- package/dist/primitives/message/index.mjs.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.d.ts +0 -4
- package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.js +2 -2
- package/dist/primitives/thread/ThreadEmpty.js.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.mjs +1 -1
- package/dist/primitives/thread/ThreadEmpty.mjs.map +1 -1
- package/dist/primitives/thread/ThreadIf.d.ts +0 -4
- package/dist/primitives/thread/ThreadIf.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadIf.js.map +1 -1
- package/dist/primitives/thread/ThreadIf.mjs.map +1 -1
- package/dist/primitives/thread/ThreadMessages.d.ts +0 -4
- package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadMessages.js.map +1 -1
- package/dist/primitives/thread/ThreadMessages.mjs.map +1 -1
- package/dist/primitives/thread/ThreadRoot.d.ts +0 -4
- package/dist/primitives/thread/ThreadRoot.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadRoot.js.map +1 -1
- package/dist/primitives/thread/ThreadRoot.mjs.map +1 -1
- package/dist/primitives/thread/ThreadScrollToBottom.d.ts +0 -4
- package/dist/primitives/thread/ThreadScrollToBottom.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadScrollToBottom.js.map +1 -1
- package/dist/primitives/thread/ThreadScrollToBottom.mjs.map +1 -1
- package/dist/primitives/thread/ThreadSuggestion.d.ts +0 -4
- package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadSuggestion.js.map +1 -1
- package/dist/primitives/thread/ThreadSuggestion.mjs.map +1 -1
- package/dist/primitives/thread/ThreadViewport.d.ts +0 -4
- package/dist/primitives/thread/ThreadViewport.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadViewport.js.map +1 -1
- package/dist/primitives/thread/ThreadViewport.mjs.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemArchive.js +3 -2
- package/dist/primitives/threadListItem/ThreadListItemArchive.js.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemArchive.mjs +3 -2
- package/dist/primitives/threadListItem/ThreadListItemArchive.mjs.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +14 -0
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -0
- package/dist/primitives/threadListItem/ThreadListItemRoot.js +47 -0
- package/dist/primitives/threadListItem/ThreadListItemRoot.js.map +1 -0
- package/dist/primitives/threadListItem/ThreadListItemRoot.mjs +23 -0
- package/dist/primitives/threadListItem/ThreadListItemRoot.mjs.map +1 -0
- package/dist/primitives/threadListItem/ThreadListItemTitle.d.ts +8 -0
- package/dist/primitives/threadListItem/ThreadListItemTitle.d.ts.map +1 -0
- package/dist/primitives/{message/MessageInProgress.js → threadListItem/ThreadListItemTitle.js} +13 -10
- package/dist/primitives/threadListItem/ThreadListItemTitle.js.map +1 -0
- package/dist/primitives/threadListItem/ThreadListItemTitle.mjs +14 -0
- package/dist/primitives/threadListItem/ThreadListItemTitle.mjs.map +1 -0
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +13 -0
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -0
- package/dist/{runtimes/core/subscribeToMainThread.js → primitives/threadListItem/ThreadListItemTrigger.js} +17 -22
- package/dist/primitives/threadListItem/ThreadListItemTrigger.js.map +1 -0
- package/dist/primitives/threadListItem/ThreadListItemTrigger.mjs +21 -0
- package/dist/primitives/threadListItem/ThreadListItemTrigger.mjs.map +1 -0
- package/dist/primitives/threadListItem/index.d.ts +3 -0
- package/dist/primitives/threadListItem/index.d.ts.map +1 -1
- package/dist/primitives/threadListItem/index.js +9 -0
- package/dist/primitives/threadListItem/index.js.map +1 -1
- package/dist/primitives/threadListItem/index.mjs +6 -0
- package/dist/primitives/threadListItem/index.mjs.map +1 -1
- package/dist/runtimes/attachment/AttachmentAdapter.d.ts +3 -7
- package/dist/runtimes/attachment/AttachmentAdapter.d.ts.map +1 -1
- package/dist/runtimes/attachment/AttachmentAdapter.js.map +1 -1
- package/dist/runtimes/attachment/CompositeAttachmentAdapter.d.ts +2 -6
- package/dist/runtimes/attachment/CompositeAttachmentAdapter.d.ts.map +1 -1
- package/dist/runtimes/attachment/CompositeAttachmentAdapter.js +1 -2
- package/dist/runtimes/attachment/CompositeAttachmentAdapter.js.map +1 -1
- package/dist/runtimes/attachment/CompositeAttachmentAdapter.mjs +1 -2
- package/dist/runtimes/attachment/CompositeAttachmentAdapter.mjs.map +1 -1
- package/dist/runtimes/composer/BaseComposerRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/composer/BaseComposerRuntimeCore.js +0 -6
- package/dist/runtimes/composer/BaseComposerRuntimeCore.js.map +1 -1
- package/dist/runtimes/composer/BaseComposerRuntimeCore.mjs +0 -6
- package/dist/runtimes/composer/BaseComposerRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/core/BaseThreadRuntimeCore.d.ts +6 -7
- package/dist/runtimes/core/BaseThreadRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/core/BaseThreadRuntimeCore.js +8 -4
- package/dist/runtimes/core/BaseThreadRuntimeCore.js.map +1 -1
- package/dist/runtimes/core/BaseThreadRuntimeCore.mjs +8 -4
- package/dist/runtimes/core/BaseThreadRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/core/ComposerRuntimeCore.d.ts +0 -3
- package/dist/runtimes/core/ComposerRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/core/ComposerRuntimeCore.js.map +1 -1
- package/dist/runtimes/core/ThreadListRuntimeCore.d.ts +7 -10
- package/dist/runtimes/core/ThreadListRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/core/ThreadListRuntimeCore.js.map +1 -1
- package/dist/runtimes/core/ThreadRuntimeCore.d.ts +30 -17
- package/dist/runtimes/core/ThreadRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/core/ThreadRuntimeCore.js.map +1 -1
- package/dist/runtimes/core/index.d.ts +1 -2
- package/dist/runtimes/core/index.d.ts.map +1 -1
- package/dist/runtimes/core/index.js +0 -12
- package/dist/runtimes/core/index.js.map +1 -1
- package/dist/runtimes/core/index.mjs +0 -5
- package/dist/runtimes/core/index.mjs.map +1 -1
- package/dist/runtimes/edge/converters/toCoreMessages.d.ts +1 -1
- package/dist/runtimes/edge/converters/toCoreMessages.d.ts.map +1 -1
- package/dist/runtimes/edge/converters/toCoreMessages.js.map +1 -1
- package/dist/runtimes/edge/converters/toCoreMessages.mjs.map +1 -1
- package/dist/runtimes/edge/createEdgeRuntimeAPI.d.ts +0 -4
- package/dist/runtimes/edge/createEdgeRuntimeAPI.d.ts.map +1 -1
- package/dist/runtimes/edge/createEdgeRuntimeAPI.js +0 -2
- package/dist/runtimes/edge/createEdgeRuntimeAPI.js.map +1 -1
- package/dist/runtimes/edge/createEdgeRuntimeAPI.mjs +0 -2
- package/dist/runtimes/edge/createEdgeRuntimeAPI.mjs.map +1 -1
- package/dist/runtimes/edge/streams/runResultStream.js +0 -2
- package/dist/runtimes/edge/streams/runResultStream.js.map +1 -1
- package/dist/runtimes/edge/streams/runResultStream.mjs +0 -2
- package/dist/runtimes/edge/streams/runResultStream.mjs.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreAdapter.d.ts +3 -16
- package/dist/runtimes/external-store/ExternalStoreAdapter.d.ts.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreAdapter.js.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreRuntimeCore.js +0 -3
- package/dist/runtimes/external-store/ExternalStoreRuntimeCore.js.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreRuntimeCore.mjs +0 -3
- package/dist/runtimes/external-store/ExternalStoreRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.d.ts +10 -12
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.js +29 -7
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.js.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.mjs +29 -7
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadRuntimeCore.d.ts +2 -12
- package/dist/runtimes/external-store/ExternalStoreThreadRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadRuntimeCore.js +4 -3
- package/dist/runtimes/external-store/ExternalStoreThreadRuntimeCore.js.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadRuntimeCore.mjs +4 -3
- package/dist/runtimes/external-store/ExternalStoreThreadRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/external-store/ThreadMessageLike.d.ts.map +1 -1
- package/dist/runtimes/external-store/ThreadMessageLike.js +2 -0
- package/dist/runtimes/external-store/ThreadMessageLike.js.map +1 -1
- package/dist/runtimes/external-store/ThreadMessageLike.mjs +2 -0
- package/dist/runtimes/external-store/ThreadMessageLike.mjs.map +1 -1
- package/dist/runtimes/local/ChatModelAdapter.d.ts +0 -8
- package/dist/runtimes/local/ChatModelAdapter.d.ts.map +1 -1
- package/dist/runtimes/local/ChatModelAdapter.js.map +1 -1
- package/dist/runtimes/local/LocalRuntimeOptions.d.ts +1 -6
- package/dist/runtimes/local/LocalRuntimeOptions.d.ts.map +1 -1
- package/dist/runtimes/local/LocalRuntimeOptions.js +1 -2
- package/dist/runtimes/local/LocalRuntimeOptions.js.map +1 -1
- package/dist/runtimes/local/LocalRuntimeOptions.mjs +1 -2
- package/dist/runtimes/local/LocalRuntimeOptions.mjs.map +1 -1
- package/dist/runtimes/local/LocalThreadListRuntimeCore.d.ts +16 -20
- package/dist/runtimes/local/LocalThreadListRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/local/LocalThreadListRuntimeCore.js +112 -72
- package/dist/runtimes/local/LocalThreadListRuntimeCore.js.map +1 -1
- package/dist/runtimes/local/LocalThreadListRuntimeCore.mjs +112 -72
- package/dist/runtimes/local/LocalThreadListRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/local/LocalThreadMetadataRuntimeCore.d.ts +19 -0
- package/dist/runtimes/local/LocalThreadMetadataRuntimeCore.d.ts.map +1 -0
- package/dist/runtimes/local/LocalThreadMetadataRuntimeCore.js +87 -0
- package/dist/runtimes/local/LocalThreadMetadataRuntimeCore.js.map +1 -0
- package/dist/runtimes/local/LocalThreadMetadataRuntimeCore.mjs +62 -0
- package/dist/runtimes/local/LocalThreadMetadataRuntimeCore.mjs.map +1 -0
- package/dist/runtimes/local/LocalThreadRuntimeCore.d.ts +1 -1
- package/dist/runtimes/local/LocalThreadRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/local/LocalThreadRuntimeCore.js +15 -11
- package/dist/runtimes/local/LocalThreadRuntimeCore.js.map +1 -1
- package/dist/runtimes/local/LocalThreadRuntimeCore.mjs +15 -11
- package/dist/runtimes/local/LocalThreadRuntimeCore.mjs.map +1 -1
- package/dist/styles/index.css.map +1 -1
- package/dist/types/AssistantTypes.d.ts +1 -18
- package/dist/types/AssistantTypes.d.ts.map +1 -1
- package/dist/types/AssistantTypes.js.map +1 -1
- package/dist/types/AttachmentTypes.d.ts +1 -1
- package/dist/types/AttachmentTypes.d.ts.map +1 -1
- package/dist/types/AttachmentTypes.js.map +1 -1
- package/dist/types/ContentPartComponentTypes.d.ts +4 -28
- package/dist/types/ContentPartComponentTypes.d.ts.map +1 -1
- package/dist/types/ContentPartComponentTypes.js.map +1 -1
- package/dist/ui/assistant-message.d.ts +1 -10
- package/dist/ui/assistant-message.d.ts.map +1 -1
- package/dist/ui/assistant-message.js.map +1 -1
- package/dist/ui/assistant-message.mjs.map +1 -1
- package/dist/ui/composer.d.ts +1 -25
- package/dist/ui/composer.d.ts.map +1 -1
- package/dist/ui/composer.js.map +1 -1
- package/dist/ui/composer.mjs.map +1 -1
- package/dist/ui/index.d.ts +6 -14
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +0 -4
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +14 -24
- package/dist/ui/index.mjs.map +1 -1
- package/dist/ui/thread-welcome.d.ts +5 -17
- package/dist/ui/thread-welcome.d.ts.map +1 -1
- package/dist/ui/thread-welcome.js.map +1 -1
- package/dist/ui/thread-welcome.mjs.map +1 -1
- package/dist/ui/thread.d.ts +1 -19
- package/dist/ui/thread.d.ts.map +1 -1
- package/dist/ui/thread.js.map +1 -1
- package/dist/ui/thread.mjs.map +1 -1
- package/dist/ui/user-message.d.ts +1 -18
- package/dist/ui/user-message.d.ts.map +1 -1
- package/dist/ui/user-message.js.map +1 -1
- package/dist/ui/user-message.mjs.map +1 -1
- package/dist/utils/smooth/SmoothContext.js +2 -2
- package/dist/utils/smooth/SmoothContext.js.map +1 -1
- package/dist/utils/smooth/SmoothContext.mjs +3 -3
- package/dist/utils/smooth/SmoothContext.mjs.map +1 -1
- package/dist/utils/smooth/useSmooth.d.ts.map +1 -1
- package/dist/utils/smooth/useSmooth.js +0 -1
- package/dist/utils/smooth/useSmooth.js.map +1 -1
- package/dist/utils/smooth/useSmooth.mjs +0 -1
- package/dist/utils/smooth/useSmooth.mjs.map +1 -1
- package/package.json +7 -7
- package/src/api/AssistantRuntime.ts +3 -25
- package/src/api/AttachmentRuntime.ts +4 -16
- package/src/api/ComposerRuntime.ts +18 -214
- package/src/api/ContentPartRuntime.ts +2 -6
- package/src/api/MessageRuntime.ts +16 -20
- package/src/api/RuntimePathTypes.ts +26 -26
- package/src/api/ThreadListItemRuntime.ts +19 -11
- package/src/api/ThreadListRuntime.ts +39 -58
- package/src/api/ThreadRuntime.ts +52 -213
- package/src/api/index.ts +4 -0
- package/src/context/providers/AssistantRuntimeProvider.tsx +0 -1
- package/src/context/providers/TextContentPartProvider.tsx +0 -2
- package/src/context/providers/ThreadRuntimeProvider.tsx +1 -17
- package/src/context/react/AssistantContext.ts +0 -25
- package/src/context/react/ComposerContext.ts +1 -1
- package/src/context/react/ContentPartContext.ts +1 -1
- package/src/context/react/MessageContext.ts +2 -2
- package/src/context/react/ThreadContext.ts +5 -42
- package/src/context/react/index.ts +2 -125
- package/src/context/stores/AssistantToolUIs.ts +9 -2
- package/src/context/stores/MessageUtils.ts +6 -6
- package/src/context/stores/ThreadViewport.tsx +5 -6
- package/src/index.ts +0 -1
- package/src/internal.ts +1 -0
- package/src/model-config/useAssistantToolUI.tsx +0 -1
- package/src/primitive-hooks/contentPart/useContentPartDisplay.tsx +1 -1
- package/src/primitive-hooks/contentPart/useContentPartImage.tsx +1 -2
- package/src/primitive-hooks/contentPart/useContentPartText.tsx +1 -1
- package/src/primitive-hooks/index.ts +0 -5
- package/src/primitives/actionBar/ActionBarCopy.tsx +0 -5
- package/src/primitives/actionBar/ActionBarEdit.tsx +0 -5
- package/src/primitives/actionBar/ActionBarFeedbackNegative.tsx +0 -6
- package/src/primitives/actionBar/ActionBarFeedbackPositive.tsx +0 -6
- package/src/primitives/actionBar/ActionBarReload.tsx +0 -5
- package/src/primitives/actionBar/ActionBarRoot.tsx +0 -5
- package/src/primitives/actionBar/ActionBarSpeak.tsx +0 -5
- package/src/primitives/actionBar/ActionBarStopSpeaking.tsx +0 -6
- package/src/primitives/assistantModal/AssistantModalContent.tsx +1 -7
- package/src/primitives/assistantModal/AssistantModalRoot.tsx +0 -6
- package/src/primitives/assistantModal/AssistantModalTrigger.tsx +0 -6
- package/src/primitives/branchPicker/BranchPickerCount.tsx +0 -5
- package/src/primitives/branchPicker/BranchPickerNext.tsx +0 -6
- package/src/primitives/branchPicker/BranchPickerNumber.tsx +0 -5
- package/src/primitives/branchPicker/BranchPickerPrevious.tsx +1 -6
- package/src/primitives/branchPicker/BranchPickerRoot.tsx +0 -5
- package/src/primitives/composer/ComposerAddAttachment.tsx +2 -7
- package/src/primitives/composer/ComposerAttachments.tsx +0 -6
- package/src/primitives/composer/ComposerCancel.tsx +0 -5
- package/src/primitives/composer/ComposerIf.tsx +0 -5
- package/src/primitives/composer/ComposerInput.tsx +0 -5
- package/src/primitives/composer/ComposerRoot.tsx +1 -3
- package/src/primitives/composer/ComposerSend.tsx +2 -7
- package/src/primitives/contentPart/ContentPartDisplay.tsx +0 -6
- package/src/primitives/contentPart/ContentPartImage.tsx +0 -5
- package/src/primitives/contentPart/ContentPartInProgress.tsx +0 -6
- package/src/primitives/contentPart/ContentPartText.tsx +0 -5
- package/src/primitives/index.ts +0 -8
- package/src/primitives/message/MessageAttachments.tsx +2 -10
- package/src/primitives/message/MessageContent.tsx +7 -15
- package/src/primitives/message/MessageIf.tsx +0 -5
- package/src/primitives/message/MessageRoot.tsx +0 -5
- package/src/primitives/message/index.ts +0 -1
- package/src/primitives/thread/ThreadEmpty.tsx +1 -6
- package/src/primitives/thread/ThreadIf.tsx +0 -5
- package/src/primitives/thread/ThreadMessages.tsx +0 -5
- package/src/primitives/thread/ThreadRoot.tsx +0 -5
- package/src/primitives/thread/ThreadScrollToBottom.tsx +0 -6
- package/src/primitives/thread/ThreadSuggestion.tsx +0 -5
- package/src/primitives/thread/ThreadViewport.tsx +0 -5
- package/src/primitives/threadListItem/ThreadListItemArchive.ts +3 -2
- package/src/primitives/threadListItem/ThreadListItemRoot.tsx +29 -0
- package/src/primitives/threadListItem/ThreadListItemTitle.tsx +19 -0
- package/src/primitives/threadListItem/ThreadListItemTrigger.ts +25 -0
- package/src/primitives/threadListItem/index.ts +4 -1
- package/src/runtimes/attachment/AttachmentAdapter.ts +2 -12
- package/src/runtimes/attachment/CompositeAttachmentAdapter.ts +1 -1
- package/src/runtimes/composer/BaseComposerRuntimeCore.tsx +0 -8
- package/src/runtimes/core/BaseThreadRuntimeCore.tsx +11 -5
- package/src/runtimes/core/ComposerRuntimeCore.tsx +0 -3
- package/src/runtimes/core/ThreadListRuntimeCore.tsx +7 -11
- package/src/runtimes/core/ThreadRuntimeCore.tsx +33 -17
- package/src/runtimes/core/index.ts +1 -2
- package/src/runtimes/edge/converters/toCoreMessages.ts +1 -1
- package/src/runtimes/edge/createEdgeRuntimeAPI.ts +0 -6
- package/src/runtimes/edge/streams/runResultStream.ts +0 -2
- package/src/runtimes/external-store/ExternalStoreAdapter.tsx +3 -17
- package/src/runtimes/external-store/ExternalStoreRuntimeCore.tsx +0 -3
- package/src/runtimes/external-store/ExternalStoreThreadListRuntimeCore.tsx +39 -7
- package/src/runtimes/external-store/ExternalStoreThreadRuntimeCore.tsx +4 -3
- package/src/runtimes/external-store/ThreadMessageLike.tsx +4 -3
- package/src/runtimes/local/ChatModelAdapter.tsx +0 -9
- package/src/runtimes/local/LocalRuntimeOptions.tsx +1 -7
- package/src/runtimes/local/LocalThreadListRuntimeCore.tsx +140 -96
- package/src/runtimes/local/LocalThreadMetadataRuntimeCore.tsx +79 -0
- package/src/runtimes/local/LocalThreadRuntimeCore.tsx +16 -11
- package/src/types/AssistantTypes.ts +1 -20
- package/src/types/AttachmentTypes.ts +1 -2
- package/src/types/ContentPartComponentTypes.tsx +4 -31
- package/src/ui/assistant-message.tsx +0 -5
- package/src/ui/composer.tsx +0 -5
- package/src/ui/index.ts +5 -23
- package/src/ui/thread-welcome.tsx +6 -9
- package/src/ui/thread.tsx +0 -5
- package/src/ui/user-message.tsx +2 -12
- package/src/utils/smooth/SmoothContext.tsx +3 -3
- package/src/utils/smooth/useSmooth.tsx +0 -1
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js +0 -34
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/index.mjs +0 -8
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/hooks/useAppendMessage.d.ts +0 -6
- package/dist/hooks/useAppendMessage.d.ts.map +0 -1
- package/dist/hooks/useAppendMessage.js +0 -42
- package/dist/hooks/useAppendMessage.js.map +0 -1
- package/dist/hooks/useAppendMessage.mjs +0 -17
- package/dist/hooks/useAppendMessage.mjs.map +0 -1
- package/dist/hooks/useSwitchToNewThread.d.ts +0 -5
- package/dist/hooks/useSwitchToNewThread.d.ts.map +0 -1
- package/dist/hooks/useSwitchToNewThread.js +0 -39
- package/dist/hooks/useSwitchToNewThread.js.map +0 -1
- package/dist/hooks/useSwitchToNewThread.mjs +0 -14
- package/dist/hooks/useSwitchToNewThread.mjs.map +0 -1
- package/dist/primitive-hooks/actionBar/index.d.ts +0 -34
- package/dist/primitive-hooks/actionBar/index.d.ts.map +0 -1
- package/dist/primitive-hooks/actionBar/index.js +0 -49
- package/dist/primitive-hooks/actionBar/index.js.map +0 -1
- package/dist/primitive-hooks/actionBar/index.mjs +0 -20
- package/dist/primitive-hooks/actionBar/index.mjs.map +0 -1
- package/dist/primitive-hooks/branchPicker/index.d.ts +0 -17
- package/dist/primitive-hooks/branchPicker/index.d.ts.map +0 -1
- package/dist/primitive-hooks/branchPicker/index.js +0 -40
- package/dist/primitive-hooks/branchPicker/index.js.map +0 -1
- package/dist/primitive-hooks/branchPicker/index.mjs +0 -12
- package/dist/primitive-hooks/branchPicker/index.mjs.map +0 -1
- package/dist/primitive-hooks/composer/index.d.ts +0 -17
- package/dist/primitive-hooks/composer/index.d.ts.map +0 -1
- package/dist/primitive-hooks/composer/index.js +0 -40
- package/dist/primitive-hooks/composer/index.js.map +0 -1
- package/dist/primitive-hooks/composer/index.mjs +0 -12
- package/dist/primitive-hooks/composer/index.mjs.map +0 -1
- package/dist/primitive-hooks/message/index.d.ts +0 -5
- package/dist/primitive-hooks/message/index.d.ts.map +0 -1
- package/dist/primitive-hooks/message/index.js +0 -31
- package/dist/primitive-hooks/message/index.js.map +0 -1
- package/dist/primitive-hooks/message/index.mjs +0 -6
- package/dist/primitive-hooks/message/index.mjs.map +0 -1
- package/dist/primitive-hooks/thread/index.d.ts +0 -17
- package/dist/primitive-hooks/thread/index.d.ts.map +0 -1
- package/dist/primitive-hooks/thread/index.js +0 -40
- package/dist/primitive-hooks/thread/index.js.map +0 -1
- package/dist/primitive-hooks/thread/index.mjs +0 -12
- package/dist/primitive-hooks/thread/index.mjs.map +0 -1
- package/dist/primitives/actionBar/types.d.ts +0 -9
- package/dist/primitives/actionBar/types.d.ts.map +0 -1
- package/dist/primitives/actionBar/types.js +0 -19
- package/dist/primitives/actionBar/types.js.map +0 -1
- package/dist/primitives/actionBar/types.mjs +0 -1
- package/dist/primitives/actionBar/types.mjs.map +0 -1
- package/dist/primitives/assistantModal/types.d.ts +0 -4
- package/dist/primitives/assistantModal/types.d.ts.map +0 -1
- package/dist/primitives/assistantModal/types.js +0 -19
- package/dist/primitives/assistantModal/types.js.map +0 -1
- package/dist/primitives/assistantModal/types.mjs +0 -1
- package/dist/primitives/assistantModal/types.mjs.map +0 -1
- package/dist/primitives/attachment/types.d.ts +0 -1
- package/dist/primitives/attachment/types.d.ts.map +0 -1
- package/dist/primitives/attachment/types.js +0 -2
- package/dist/primitives/attachment/types.js.map +0 -1
- package/dist/primitives/attachment/types.mjs +0 -1
- package/dist/primitives/attachment/types.mjs.map +0 -1
- package/dist/primitives/branchPicker/types.d.ts +0 -6
- package/dist/primitives/branchPicker/types.d.ts.map +0 -1
- package/dist/primitives/branchPicker/types.js +0 -19
- package/dist/primitives/branchPicker/types.js.map +0 -1
- package/dist/primitives/branchPicker/types.mjs +0 -1
- package/dist/primitives/branchPicker/types.mjs.map +0 -1
- package/dist/primitives/composer/types.d.ts +0 -6
- package/dist/primitives/composer/types.d.ts.map +0 -1
- package/dist/primitives/composer/types.js +0 -19
- package/dist/primitives/composer/types.js.map +0 -1
- package/dist/primitives/composer/types.mjs +0 -1
- package/dist/primitives/composer/types.mjs.map +0 -1
- package/dist/primitives/contentPart/types.d.ts +0 -5
- package/dist/primitives/contentPart/types.d.ts.map +0 -1
- package/dist/primitives/contentPart/types.js +0 -19
- package/dist/primitives/contentPart/types.js.map +0 -1
- package/dist/primitives/contentPart/types.mjs +0 -1
- package/dist/primitives/contentPart/types.mjs.map +0 -1
- package/dist/primitives/message/MessageInProgress.d.ts +0 -13
- package/dist/primitives/message/MessageInProgress.d.ts.map +0 -1
- package/dist/primitives/message/MessageInProgress.js.map +0 -1
- package/dist/primitives/message/MessageInProgress.mjs +0 -11
- package/dist/primitives/message/MessageInProgress.mjs.map +0 -1
- package/dist/primitives/message/types.d.ts +0 -5
- package/dist/primitives/message/types.d.ts.map +0 -1
- package/dist/primitives/message/types.js +0 -19
- package/dist/primitives/message/types.js.map +0 -1
- package/dist/primitives/message/types.mjs +0 -1
- package/dist/primitives/message/types.mjs.map +0 -1
- package/dist/primitives/thread/types.d.ts +0 -8
- package/dist/primitives/thread/types.d.ts.map +0 -1
- package/dist/primitives/thread/types.js +0 -19
- package/dist/primitives/thread/types.js.map +0 -1
- package/dist/primitives/thread/types.mjs +0 -1
- package/dist/primitives/thread/types.mjs.map +0 -1
- package/dist/runtimes/core/subscribeToMainThread.d.ts +0 -6
- package/dist/runtimes/core/subscribeToMainThread.d.ts.map +0 -1
- package/dist/runtimes/core/subscribeToMainThread.js.map +0 -1
- package/dist/runtimes/core/subscribeToMainThread.mjs +0 -23
- package/dist/runtimes/core/subscribeToMainThread.mjs.map +0 -1
- package/src/hooks/index.ts +0 -2
- package/src/hooks/useAppendMessage.tsx +0 -19
- package/src/hooks/useSwitchToNewThread.tsx +0 -14
- package/src/primitive-hooks/actionBar/index.ts +0 -39
- package/src/primitive-hooks/branchPicker/index.ts +0 -18
- package/src/primitive-hooks/composer/index.ts +0 -17
- package/src/primitive-hooks/message/index.ts +0 -4
- package/src/primitive-hooks/thread/index.ts +0 -16
- package/src/primitives/actionBar/types.ts +0 -8
- package/src/primitives/assistantModal/types.ts +0 -3
- package/src/primitives/attachment/types.ts +0 -0
- package/src/primitives/branchPicker/types.ts +0 -5
- package/src/primitives/composer/types.ts +0 -5
- package/src/primitives/contentPart/types.ts +0 -4
- package/src/primitives/message/MessageInProgress.tsx +0 -22
- package/src/primitives/message/types.ts +0 -4
- package/src/primitives/thread/types.ts +0 -7
- package/src/runtimes/core/subscribeToMainThread.ts +0 -30
@@ -14,6 +14,7 @@ import {
|
|
14
14
|
ThreadRuntimeCore,
|
15
15
|
} from "../core/ThreadRuntimeCore";
|
16
16
|
import { BaseThreadRuntimeCore } from "../core/BaseThreadRuntimeCore";
|
17
|
+
import { LocalThreadMetadataRuntimeCore } from "./LocalThreadMetadataRuntimeCore";
|
17
18
|
|
18
19
|
export class LocalThreadRuntimeCore
|
19
20
|
extends BaseThreadRuntimeCore
|
@@ -41,11 +42,10 @@ export class LocalThreadRuntimeCore
|
|
41
42
|
|
42
43
|
constructor(
|
43
44
|
configProvider: ModelConfigProvider,
|
44
|
-
|
45
|
+
threadId: string,
|
45
46
|
options: LocalRuntimeOptionsBase,
|
46
47
|
) {
|
47
|
-
super(configProvider);
|
48
|
-
|
48
|
+
super(configProvider, new LocalThreadMetadataRuntimeCore(threadId));
|
49
49
|
this.setOptions(options);
|
50
50
|
}
|
51
51
|
|
@@ -83,7 +83,15 @@ export class LocalThreadRuntimeCore
|
|
83
83
|
if (hasUpdates) this._notifySubscribers();
|
84
84
|
}
|
85
85
|
|
86
|
+
private _transitionAwayFromNewState() {
|
87
|
+
if (this.metadata.state === "new") {
|
88
|
+
this.metadata.create();
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
86
92
|
public async append(message: AppendMessage): Promise<void> {
|
93
|
+
this._transitionAwayFromNewState();
|
94
|
+
|
87
95
|
const newMessage = fromCoreMessage(message, {
|
88
96
|
attachments: message.attachments,
|
89
97
|
});
|
@@ -99,6 +107,8 @@ export class LocalThreadRuntimeCore
|
|
99
107
|
}
|
100
108
|
|
101
109
|
public async startRun(parentId: string | null): Promise<void> {
|
110
|
+
this._transitionAwayFromNewState();
|
111
|
+
|
102
112
|
this.repository.resetHead(parentId);
|
103
113
|
|
104
114
|
// add assistant message
|
@@ -132,7 +142,7 @@ export class LocalThreadRuntimeCore
|
|
132
142
|
const initialSteps = message.metadata?.steps;
|
133
143
|
const initalCustom = message.metadata?.custom;
|
134
144
|
const updateMessage = (m: Partial<ChatModelRunResult>) => {
|
135
|
-
const newSteps = m.metadata?.steps
|
145
|
+
const newSteps = m.metadata?.steps;
|
136
146
|
const steps = newSteps
|
137
147
|
? [...(initialSteps ?? []), ...newSteps]
|
138
148
|
: undefined;
|
@@ -143,13 +153,11 @@ export class LocalThreadRuntimeCore
|
|
143
153
|
? { content: [...initialContent, ...(m.content ?? [])] }
|
144
154
|
: undefined),
|
145
155
|
status: m.status ?? message.status,
|
146
|
-
// TODO deprecated, remove in v0.6
|
147
|
-
...(steps ? { roundtrips: steps } : undefined),
|
148
156
|
...(m.metadata
|
149
157
|
? {
|
150
158
|
metadata: {
|
151
159
|
...message.metadata,
|
152
|
-
...(steps ? {
|
160
|
+
...(steps ? { steps } : undefined),
|
153
161
|
...(m.metadata?.custom
|
154
162
|
? {
|
155
163
|
custom: { ...(initalCustom ?? {}), ...m.metadata.custom },
|
@@ -163,9 +171,7 @@ export class LocalThreadRuntimeCore
|
|
163
171
|
this._notifySubscribers();
|
164
172
|
};
|
165
173
|
|
166
|
-
const maxSteps = this._options.maxSteps
|
167
|
-
? this._options.maxSteps
|
168
|
-
: (this._options.maxToolRoundtrips ?? 1) + 1;
|
174
|
+
const maxSteps = this._options.maxSteps ?? 2;
|
169
175
|
|
170
176
|
const steps = message.metadata?.steps?.length ?? 0;
|
171
177
|
if (steps >= maxSteps) {
|
@@ -190,7 +196,6 @@ export class LocalThreadRuntimeCore
|
|
190
196
|
messages,
|
191
197
|
abortSignal: this.abortController.signal,
|
192
198
|
config: this.getModelConfig(),
|
193
|
-
onUpdate: updateMessage,
|
194
199
|
unstable_assistantMessageId: message.id,
|
195
200
|
});
|
196
201
|
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { LanguageModelV1LogProbs } from "@ai-sdk/provider";
|
2
1
|
import type { ReactNode } from "react";
|
3
2
|
import { CompleteAttachment } from "./AttachmentTypes";
|
4
3
|
|
@@ -62,16 +61,7 @@ type MessageCommonProps = {
|
|
62
61
|
createdAt: Date;
|
63
62
|
};
|
64
63
|
|
65
|
-
/**
|
66
|
-
* @deprecated Use `ThreadStep` instead. This type will be removed in v0.6.
|
67
|
-
*/
|
68
|
-
export type ThreadRoundtrip = ThreadStep;
|
69
|
-
|
70
64
|
export type ThreadStep = {
|
71
|
-
/**
|
72
|
-
* @deprecated This field will be removed in v0.6. Submit feedback if you need this functionality.
|
73
|
-
*/
|
74
|
-
logprobs?: LanguageModelV1LogProbs | undefined;
|
75
65
|
usage?:
|
76
66
|
| {
|
77
67
|
promptTokens: number;
|
@@ -140,15 +130,7 @@ export type ThreadAssistantMessage = MessageCommonProps & {
|
|
140
130
|
role: "assistant";
|
141
131
|
content: ThreadAssistantContentPart[];
|
142
132
|
status: MessageStatus;
|
143
|
-
/**
|
144
|
-
* @deprecated Use `metadata.steps` instead.
|
145
|
-
*/
|
146
|
-
roundtrips?: ThreadStep[] | undefined;
|
147
133
|
metadata?: {
|
148
|
-
/**
|
149
|
-
* @deprecated Use `steps` instead. This field will be removed in v0.6.
|
150
|
-
*/
|
151
|
-
roundtrips?: ThreadStep[] | undefined;
|
152
134
|
steps?: ThreadStep[] | undefined;
|
153
135
|
custom?: Record<string, unknown> | undefined;
|
154
136
|
};
|
@@ -156,8 +138,7 @@ export type ThreadAssistantMessage = MessageCommonProps & {
|
|
156
138
|
|
157
139
|
export type AppendMessage = CoreMessage & {
|
158
140
|
parentId: string | null;
|
159
|
-
|
160
|
-
attachments?: readonly CompleteAttachment[] | undefined;
|
141
|
+
attachments: readonly CompleteAttachment[];
|
161
142
|
startRun?: boolean | undefined;
|
162
143
|
};
|
163
144
|
|
@@ -15,41 +15,18 @@ export type EmptyContentPartProps = {
|
|
15
15
|
};
|
16
16
|
export type EmptyContentPartComponent = ComponentType<EmptyContentPartProps>;
|
17
17
|
|
18
|
-
export type TextContentPartProps = ContentPartState &
|
19
|
-
TextContentPart & {
|
20
|
-
/**
|
21
|
-
* @deprecated You can directly access content part fields in the state. Replace `.part.type` with `.type` etc. This will be removed in 0.6.0.
|
22
|
-
*/
|
23
|
-
part: TextContentPart;
|
24
|
-
};
|
18
|
+
export type TextContentPartProps = ContentPartState & TextContentPart;
|
25
19
|
export type TextContentPartComponent = ComponentType<TextContentPartProps>;
|
26
20
|
|
27
|
-
export type ImageContentPartProps = ContentPartState &
|
28
|
-
ImageContentPart & {
|
29
|
-
/**
|
30
|
-
* @deprecated You can directly access content part fields in the state. Replace `.part.type` with `.type` etc. This will be removed in 0.6.0.
|
31
|
-
*/
|
32
|
-
part: ImageContentPart;
|
33
|
-
};
|
21
|
+
export type ImageContentPartProps = ContentPartState & ImageContentPart;
|
34
22
|
export type ImageContentPartComponent = ComponentType<ImageContentPartProps>;
|
35
23
|
|
36
24
|
export type Unstable_AudioContentPartProps = ContentPartState &
|
37
|
-
Unstable_AudioContentPart
|
38
|
-
/**
|
39
|
-
* @deprecated You can directly access content part fields in the state. Replace `.part.type` with `.type` etc. This will be removed in 0.6.0.
|
40
|
-
*/
|
41
|
-
part: Unstable_AudioContentPart;
|
42
|
-
};
|
25
|
+
Unstable_AudioContentPart;
|
43
26
|
export type Unstable_AudioContentPartComponent =
|
44
27
|
ComponentType<Unstable_AudioContentPartProps>;
|
45
28
|
|
46
|
-
export type UIContentPartProps = ContentPartState &
|
47
|
-
UIContentPart & {
|
48
|
-
/**
|
49
|
-
* @deprecated You can directly access content part fields in the state. Replace `.part.type` with `.type` etc. This will be removed in 0.6.0.
|
50
|
-
*/
|
51
|
-
part: UIContentPart;
|
52
|
-
};
|
29
|
+
export type UIContentPartProps = ContentPartState & UIContentPart;
|
53
30
|
export type UIContentPartComponent = ComponentType<UIContentPartProps>;
|
54
31
|
|
55
32
|
export type ToolCallContentPartProps<
|
@@ -57,10 +34,6 @@ export type ToolCallContentPartProps<
|
|
57
34
|
TResult = unknown,
|
58
35
|
> = ContentPartState &
|
59
36
|
ToolCallContentPart<TArgs, TResult> & {
|
60
|
-
/**
|
61
|
-
* @deprecated You can directly access content part fields in the state. Replace `.part.type` with `.type` etc. This will be removed in 0.6.0.
|
62
|
-
*/
|
63
|
-
part: ToolCallContentPart<TArgs, TResult>;
|
64
37
|
addResult: (result: any) => void;
|
65
38
|
};
|
66
39
|
|
@@ -37,11 +37,6 @@ const AssistantMessageContentWrapper = withDefaults("div", {
|
|
37
37
|
className: "aui-assistant-message-content",
|
38
38
|
});
|
39
39
|
|
40
|
-
/**
|
41
|
-
* @deprecated Use `AssistantMessage.Content.Props` instead. This will be removed in 0.6.
|
42
|
-
*/
|
43
|
-
export type AssistantMessageContentProps = AssistantMessageContent.Props;
|
44
|
-
|
45
40
|
namespace AssistantMessageContent {
|
46
41
|
export type Element = HTMLDivElement;
|
47
42
|
export type Props = MessagePrimitive.Content.Props &
|
package/src/ui/composer.tsx
CHANGED
@@ -51,11 +51,6 @@ namespace ComposerInput {
|
|
51
51
|
export type Props = ComponentPropsWithoutRef<typeof ComposerInputStyled>;
|
52
52
|
}
|
53
53
|
|
54
|
-
/**
|
55
|
-
* @deprecated Use `ComposerInput.Props` instead. This will be removed in 0.6.
|
56
|
-
*/
|
57
|
-
export type ComposerInputProps = ComposerInput.Props;
|
58
|
-
|
59
54
|
const ComposerInput = forwardRef<ComposerInput.Element, ComposerInput.Props>(
|
60
55
|
(props, ref) => {
|
61
56
|
const {
|
package/src/ui/index.ts
CHANGED
@@ -12,44 +12,26 @@ export {
|
|
12
12
|
|
13
13
|
export { default as AssistantActionBar } from "./assistant-action-bar";
|
14
14
|
|
15
|
-
export {
|
16
|
-
default as AssistantMessage,
|
17
|
-
type AssistantMessageContentProps,
|
18
|
-
} from "./assistant-message";
|
15
|
+
export { default as AssistantMessage } from "./assistant-message";
|
19
16
|
|
20
17
|
export { default as AssistantModal } from "./assistant-modal";
|
21
18
|
|
22
19
|
export { default as BranchPicker } from "./branch-picker";
|
23
20
|
|
24
|
-
export { default as Composer
|
21
|
+
export { default as Composer } from "./composer";
|
25
22
|
|
26
23
|
export {
|
27
24
|
default as AttachmentUI, // TODO name collision with Attachment
|
28
|
-
/**
|
29
|
-
* @deprecated Use `AttachmentUI` instead. This will be removed in 0.6.0.
|
30
|
-
*/
|
31
|
-
default as UserMessageAttachment,
|
32
|
-
/**
|
33
|
-
* @deprecated Use `AttachmentUI` instead. This will be removed in 0.6.0.
|
34
|
-
*/
|
35
|
-
default as ComposerAttachment,
|
36
25
|
} from "./attachment";
|
37
26
|
|
38
27
|
export { default as EditComposer } from "./edit-composer";
|
39
28
|
|
40
|
-
export { default as Thread
|
29
|
+
export { default as Thread } from "./thread";
|
41
30
|
|
42
|
-
export {
|
43
|
-
default as UserMessage,
|
44
|
-
type UserMessageContentProps,
|
45
|
-
} from "./user-message";
|
31
|
+
export { default as UserMessage } from "./user-message";
|
46
32
|
|
47
33
|
export { default as UserActionBar } from "./user-action-bar";
|
48
34
|
|
49
|
-
export {
|
50
|
-
default as ThreadWelcome,
|
51
|
-
type ThreadWelcomeMessageProps,
|
52
|
-
type ThreadWelcomeSuggestionProps,
|
53
|
-
} from "./thread-welcome";
|
35
|
+
export { default as ThreadWelcome } from "./thread-welcome";
|
54
36
|
|
55
37
|
export { default as ContentPart } from "./content-part";
|
@@ -56,11 +56,6 @@ const ThreadWelcomeMessageStyled = withDefaults("p", {
|
|
56
56
|
className: "aui-thread-welcome-message",
|
57
57
|
});
|
58
58
|
|
59
|
-
/**
|
60
|
-
* @deprecated Use `ThreadWelcome.Message.Props` instead. This will be removed in 0.6.
|
61
|
-
*/
|
62
|
-
export type ThreadWelcomeMessageProps = ThreadWelcomeMessage.Props;
|
63
|
-
|
64
59
|
namespace ThreadWelcomeMessage {
|
65
60
|
export type Element = HTMLParagraphElement;
|
66
61
|
export type Props = Omit<
|
@@ -96,11 +91,13 @@ const ThreadWelcomeSuggestionStyled = withDefaults(ThreadPrimitive.Suggestion, {
|
|
96
91
|
className: "aui-thread-welcome-suggestion",
|
97
92
|
});
|
98
93
|
|
99
|
-
export
|
100
|
-
|
101
|
-
|
94
|
+
export namespace ThreadWelcomeSuggestion {
|
95
|
+
export type Props = {
|
96
|
+
suggestion: SuggestionConfig;
|
97
|
+
};
|
98
|
+
}
|
102
99
|
|
103
|
-
const ThreadWelcomeSuggestion: FC<
|
100
|
+
const ThreadWelcomeSuggestion: FC<ThreadWelcomeSuggestion.Props> = ({
|
104
101
|
suggestion: { text, prompt },
|
105
102
|
}) => {
|
106
103
|
return (
|
package/src/ui/thread.tsx
CHANGED
@@ -44,11 +44,6 @@ const Thread: FC<ThreadConfig> = (config) => {
|
|
44
44
|
);
|
45
45
|
};
|
46
46
|
|
47
|
-
/**
|
48
|
-
* @deprecated Use `Thread.Root.Props` instead. This will be removed in 0.6.
|
49
|
-
*/
|
50
|
-
export type ThreadRootProps = ThreadRoot.Props;
|
51
|
-
|
52
47
|
namespace ThreadRoot {
|
53
48
|
export type Element = HTMLDivElement;
|
54
49
|
export type Props = ThreadPrimitive.Root.Props & ThreadConfigProviderProps;
|
package/src/ui/user-message.tsx
CHANGED
@@ -35,11 +35,6 @@ const UserMessageContentWrapper = withDefaults("div", {
|
|
35
35
|
className: "aui-user-message-content",
|
36
36
|
});
|
37
37
|
|
38
|
-
/**
|
39
|
-
* @deprecated Use `UserMessage.Content.Props` instead. This will be removed in 0.6.
|
40
|
-
*/
|
41
|
-
export type UserMessageContentProps = UserMessageContent.Props;
|
42
|
-
|
43
38
|
namespace UserMessageContent {
|
44
39
|
export type Element = HTMLDivElement;
|
45
40
|
export type Props = MessagePrimitive.Content.Props &
|
@@ -68,22 +63,17 @@ const UserMessageAttachmentsContainer = withDefaults("div", {
|
|
68
63
|
className: "aui-user-message-attachments",
|
69
64
|
});
|
70
65
|
|
71
|
-
/**
|
72
|
-
* @deprecated Use `UserMessage.Attachments.Props` instead. This will be removed in 0.6.
|
73
|
-
*/
|
74
|
-
export type UserMessageAttachmentsProps = UserMessageAttachments.Props;
|
75
|
-
|
76
66
|
namespace UserMessageAttachments {
|
77
67
|
export type Props = Partial<MessagePrimitive.Attachments.Props>;
|
78
68
|
}
|
79
69
|
|
80
|
-
const UserMessageAttachments: FC<
|
70
|
+
const UserMessageAttachments: FC<UserMessageAttachments.Props> = ({
|
81
71
|
components,
|
82
72
|
}) => {
|
83
73
|
return (
|
84
74
|
<MessagePrimitive.If hasAttachments>
|
85
75
|
<UserMessageAttachmentsContainer>
|
86
|
-
<MessagePrimitive.Attachments
|
76
|
+
<MessagePrimitive.Attachments
|
87
77
|
components={{
|
88
78
|
...components,
|
89
79
|
Attachment: components?.Attachment ?? Attachment,
|
@@ -13,7 +13,7 @@ import {
|
|
13
13
|
ContentPartStatus,
|
14
14
|
ToolCallContentPartStatus,
|
15
15
|
} from "../../types/AssistantTypes";
|
16
|
-
import {
|
16
|
+
import { useContentPartRuntime } from "../../context/react/ContentPartContext";
|
17
17
|
import { createContextStoreHook } from "../../context/react/utils/createContextStoreHook";
|
18
18
|
|
19
19
|
type SmoothContextValue = {
|
@@ -33,10 +33,10 @@ const makeSmoothContext = (
|
|
33
33
|
|
34
34
|
export const SmoothContextProvider: FC<PropsWithChildren> = ({ children }) => {
|
35
35
|
const outer = useSmoothContext({ optional: true });
|
36
|
-
const
|
36
|
+
const contentPartRuntime = useContentPartRuntime();
|
37
37
|
|
38
38
|
const [context] = useState(() =>
|
39
|
-
makeSmoothContext(
|
39
|
+
makeSmoothContext(contentPartRuntime.getState().status),
|
40
40
|
);
|
41
41
|
|
42
42
|
// do not wrap if there is an outer SmoothContextProvider
|
package/dist/hooks/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/hooks/index.js
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
-
};
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
|
20
|
-
// src/hooks/index.ts
|
21
|
-
var hooks_exports = {};
|
22
|
-
__export(hooks_exports, {
|
23
|
-
useAppendMessage: () => import_useAppendMessage.useAppendMessage,
|
24
|
-
useSwitchToNewThread: () => import_useSwitchToNewThread.useSwitchToNewThread
|
25
|
-
});
|
26
|
-
module.exports = __toCommonJS(hooks_exports);
|
27
|
-
var import_useAppendMessage = require("./useAppendMessage.cjs");
|
28
|
-
var import_useSwitchToNewThread = require("./useSwitchToNewThread.cjs");
|
29
|
-
// Annotate the CommonJS export names for ESM import in node:
|
30
|
-
0 && (module.exports = {
|
31
|
-
useAppendMessage,
|
32
|
-
useSwitchToNewThread
|
33
|
-
});
|
34
|
-
//# sourceMappingURL=index.js.map
|
package/dist/hooks/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/index.ts"],"sourcesContent":["export { useAppendMessage } from \"./useAppendMessage\";\nexport { useSwitchToNewThread } from \"./useSwitchToNewThread\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAiC;AACjC,kCAAqC;","names":[]}
|
package/dist/hooks/index.mjs
DELETED
package/dist/hooks/index.mjs.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/index.ts"],"sourcesContent":["export { useAppendMessage } from \"./useAppendMessage\";\nexport { useSwitchToNewThread } from \"./useSwitchToNewThread\";\n"],"mappings":";AAAA,SAAS,wBAAwB;AACjC,SAAS,4BAA4B;","names":[]}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { CreateAppendMessage } from "../api/ThreadRuntime";
|
2
|
-
/**
|
3
|
-
* @deprecated Use `useThreadRuntime().append()` instead. This will be removed in 0.6.
|
4
|
-
*/
|
5
|
-
export declare const useAppendMessage: () => (message: CreateAppendMessage) => void;
|
6
|
-
//# sourceMappingURL=useAppendMessage.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useAppendMessage.d.ts","sourceRoot":"","sources":["../../src/hooks/useAppendMessage.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,gBAAgB,kBAIf,mBAAmB,SAOhC,CAAC"}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
-
};
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
|
20
|
-
// src/hooks/useAppendMessage.tsx
|
21
|
-
var useAppendMessage_exports = {};
|
22
|
-
__export(useAppendMessage_exports, {
|
23
|
-
useAppendMessage: () => useAppendMessage
|
24
|
-
});
|
25
|
-
module.exports = __toCommonJS(useAppendMessage_exports);
|
26
|
-
var import_react = require("react");
|
27
|
-
var import_ThreadContext = require("../context/react/ThreadContext.cjs");
|
28
|
-
var useAppendMessage = () => {
|
29
|
-
const threadRuntime = (0, import_ThreadContext.useThreadRuntime)();
|
30
|
-
const append = (0, import_react.useCallback)(
|
31
|
-
(message) => {
|
32
|
-
threadRuntime.append(message);
|
33
|
-
},
|
34
|
-
[threadRuntime]
|
35
|
-
);
|
36
|
-
return append;
|
37
|
-
};
|
38
|
-
// Annotate the CommonJS export names for ESM import in node:
|
39
|
-
0 && (module.exports = {
|
40
|
-
useAppendMessage
|
41
|
-
});
|
42
|
-
//# sourceMappingURL=useAppendMessage.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/useAppendMessage.tsx"],"sourcesContent":["import { useCallback } from \"react\";\nimport { useThreadRuntime } from \"../context/react/ThreadContext\";\nimport { CreateAppendMessage } from \"../api/ThreadRuntime\";\n\n/**\n * @deprecated Use `useThreadRuntime().append()` instead. This will be removed in 0.6.\n */\nexport const useAppendMessage = () => {\n const threadRuntime = useThreadRuntime();\n\n const append = useCallback(\n (message: CreateAppendMessage) => {\n threadRuntime.append(message);\n },\n [threadRuntime],\n );\n\n return append;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA4B;AAC5B,2BAAiC;AAM1B,IAAM,mBAAmB,MAAM;AACpC,QAAM,oBAAgB,uCAAiB;AAEvC,QAAM,aAAS;AAAA,IACb,CAAC,YAAiC;AAChC,oBAAc,OAAO,OAAO;AAAA,IAC9B;AAAA,IACA,CAAC,aAAa;AAAA,EAChB;AAEA,SAAO;AACT;","names":[]}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
// src/hooks/useAppendMessage.tsx
|
2
|
-
import { useCallback } from "react";
|
3
|
-
import { useThreadRuntime } from "../context/react/ThreadContext.mjs";
|
4
|
-
var useAppendMessage = () => {
|
5
|
-
const threadRuntime = useThreadRuntime();
|
6
|
-
const append = useCallback(
|
7
|
-
(message) => {
|
8
|
-
threadRuntime.append(message);
|
9
|
-
},
|
10
|
-
[threadRuntime]
|
11
|
-
);
|
12
|
-
return append;
|
13
|
-
};
|
14
|
-
export {
|
15
|
-
useAppendMessage
|
16
|
-
};
|
17
|
-
//# sourceMappingURL=useAppendMessage.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/useAppendMessage.tsx"],"sourcesContent":["import { useCallback } from \"react\";\nimport { useThreadRuntime } from \"../context/react/ThreadContext\";\nimport { CreateAppendMessage } from \"../api/ThreadRuntime\";\n\n/**\n * @deprecated Use `useThreadRuntime().append()` instead. This will be removed in 0.6.\n */\nexport const useAppendMessage = () => {\n const threadRuntime = useThreadRuntime();\n\n const append = useCallback(\n (message: CreateAppendMessage) => {\n threadRuntime.append(message);\n },\n [threadRuntime],\n );\n\n return append;\n};\n"],"mappings":";AAAA,SAAS,mBAAmB;AAC5B,SAAS,wBAAwB;AAM1B,IAAM,mBAAmB,MAAM;AACpC,QAAM,gBAAgB,iBAAiB;AAEvC,QAAM,SAAS;AAAA,IACb,CAAC,YAAiC;AAChC,oBAAc,OAAO,OAAO;AAAA,IAC9B;AAAA,IACA,CAAC,aAAa;AAAA,EAChB;AAEA,SAAO;AACT;","names":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useSwitchToNewThread.d.ts","sourceRoot":"","sources":["../../src/hooks/useSwitchToNewThread.tsx"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,oBAAoB,kBAOhC,CAAC"}
|
@@ -1,39 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
-
};
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
|
20
|
-
// src/hooks/useSwitchToNewThread.tsx
|
21
|
-
var useSwitchToNewThread_exports = {};
|
22
|
-
__export(useSwitchToNewThread_exports, {
|
23
|
-
useSwitchToNewThread: () => useSwitchToNewThread
|
24
|
-
});
|
25
|
-
module.exports = __toCommonJS(useSwitchToNewThread_exports);
|
26
|
-
var import_react = require("react");
|
27
|
-
var import_context = require("../context/index.cjs");
|
28
|
-
var useSwitchToNewThread = () => {
|
29
|
-
const assistantRuntime = (0, import_context.useAssistantRuntime)();
|
30
|
-
const switchToNewThread = (0, import_react.useCallback)(() => {
|
31
|
-
assistantRuntime.switchToNewThread();
|
32
|
-
}, [assistantRuntime]);
|
33
|
-
return switchToNewThread;
|
34
|
-
};
|
35
|
-
// Annotate the CommonJS export names for ESM import in node:
|
36
|
-
0 && (module.exports = {
|
37
|
-
useSwitchToNewThread
|
38
|
-
});
|
39
|
-
//# sourceMappingURL=useSwitchToNewThread.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/useSwitchToNewThread.tsx"],"sourcesContent":["import { useCallback } from \"react\";\nimport { useAssistantRuntime } from \"../context\";\n\n/**\n * @deprecated Use `useRuntimeActions().switchToNewThread()` instead. This will be removed in 0.6.0.\n */\nexport const useSwitchToNewThread = () => {\n const assistantRuntime = useAssistantRuntime();\n const switchToNewThread = useCallback(() => {\n assistantRuntime.switchToNewThread();\n }, [assistantRuntime]);\n\n return switchToNewThread;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA4B;AAC5B,qBAAoC;AAK7B,IAAM,uBAAuB,MAAM;AACxC,QAAM,uBAAmB,oCAAoB;AAC7C,QAAM,wBAAoB,0BAAY,MAAM;AAC1C,qBAAiB,kBAAkB;AAAA,EACrC,GAAG,CAAC,gBAAgB,CAAC;AAErB,SAAO;AACT;","names":[]}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
// src/hooks/useSwitchToNewThread.tsx
|
2
|
-
import { useCallback } from "react";
|
3
|
-
import { useAssistantRuntime } from "../context/index.mjs";
|
4
|
-
var useSwitchToNewThread = () => {
|
5
|
-
const assistantRuntime = useAssistantRuntime();
|
6
|
-
const switchToNewThread = useCallback(() => {
|
7
|
-
assistantRuntime.switchToNewThread();
|
8
|
-
}, [assistantRuntime]);
|
9
|
-
return switchToNewThread;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
useSwitchToNewThread
|
13
|
-
};
|
14
|
-
//# sourceMappingURL=useSwitchToNewThread.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/useSwitchToNewThread.tsx"],"sourcesContent":["import { useCallback } from \"react\";\nimport { useAssistantRuntime } from \"../context\";\n\n/**\n * @deprecated Use `useRuntimeActions().switchToNewThread()` instead. This will be removed in 0.6.0.\n */\nexport const useSwitchToNewThread = () => {\n const assistantRuntime = useAssistantRuntime();\n const switchToNewThread = useCallback(() => {\n assistantRuntime.switchToNewThread();\n }, [assistantRuntime]);\n\n return switchToNewThread;\n};\n"],"mappings":";AAAA,SAAS,mBAAmB;AAC5B,SAAS,2BAA2B;AAK7B,IAAM,uBAAuB,MAAM;AACxC,QAAM,mBAAmB,oBAAoB;AAC7C,QAAM,oBAAoB,YAAY,MAAM;AAC1C,qBAAiB,kBAAkB;AAAA,EACrC,GAAG,CAAC,gBAAgB,CAAC;AAErB,SAAO;AACT;","names":[]}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
export {
|
2
|
-
/**
|
3
|
-
* @deprecated Use `useMessageRuntime().unstable_getCopyText()` instead. This will be removed in 0.6.
|
4
|
-
*/
|
5
|
-
useActionBarCopy,
|
6
|
-
/**
|
7
|
-
* @deprecated Use `useMessageRuntime().unstable_getCopyText()` instead. This will be removed in 0.6.
|
8
|
-
*/
|
9
|
-
type UseActionBarCopyProps, } from "./useActionBarCopy";
|
10
|
-
/**
|
11
|
-
* @deprecated Use `useMessageRuntime().composer.beginEdit()` instead. This will be removed in 0.6.
|
12
|
-
*/
|
13
|
-
export { useActionBarEdit } from "./useActionBarEdit";
|
14
|
-
/**
|
15
|
-
* @deprecated Use `useMessageRuntime().reload()` instead. This will be removed in 0.6.
|
16
|
-
*/
|
17
|
-
export { useActionBarReload } from "./useActionBarReload";
|
18
|
-
/**
|
19
|
-
* @deprecated Use `useMessageRuntime().speak()` instead. This will be removed in 0.6.
|
20
|
-
*/
|
21
|
-
export { useActionBarSpeak } from "./useActionBarSpeak";
|
22
|
-
/**
|
23
|
-
* @deprecated Use `useMessageRuntime().stopSpeaking()` instead. This will be removed in 0.6.
|
24
|
-
*/
|
25
|
-
export { useActionBarStopSpeaking } from "./useActionBarStopSpeaking";
|
26
|
-
/**
|
27
|
-
* @deprecated Use `useMessageRuntime().submitFeedback()` instead. This will be removed in 0.6.
|
28
|
-
*/
|
29
|
-
export { useActionBarFeedbackPositive } from "./useActionBarFeedbackPositive";
|
30
|
-
/**
|
31
|
-
* @deprecated Use `useMessageRuntime().submitFeedback()` instead. This will be removed in 0.6.
|
32
|
-
*/
|
33
|
-
export { useActionBarFeedbackNegative } from "./useActionBarFeedbackNegative";
|
34
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitive-hooks/actionBar/index.ts"],"names":[],"mappings":"AAAA,OAAO;AACL;;GAEG;AACH,gBAAgB;AAChB;;GAEG;AACH,KAAK,qBAAqB,GAC3B,MAAM,oBAAoB,CAAC;AAC5B;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD;;GAEG;AACH,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE;;GAEG;AACH,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAE9E;;GAEG;AACH,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
|