@assistant-ui/core 0.1.3 → 0.1.7
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/dist/adapters/attachment.d.ts +1 -1
- package/dist/adapters/attachment.d.ts.map +1 -1
- package/dist/adapters/feedback.d.ts +1 -1
- package/dist/adapters/feedback.d.ts.map +1 -1
- package/dist/adapters/speech.d.ts +1 -1
- package/dist/adapters/speech.d.ts.map +1 -1
- package/dist/adapters/suggestion.d.ts +1 -1
- package/dist/adapters/suggestion.d.ts.map +1 -1
- package/dist/index.d.ts +44 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +5 -2
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +13 -2
- package/dist/internal.js.map +1 -1
- package/dist/model-context/frame/host.d.ts +1 -1
- package/dist/model-context/frame/host.d.ts.map +1 -1
- package/dist/model-context/frame/provider.d.ts +1 -1
- package/dist/model-context/frame/provider.d.ts.map +1 -1
- package/dist/model-context/registry.d.ts +1 -1
- package/dist/model-context/registry.d.ts.map +1 -1
- package/dist/model-context/types.d.ts +1 -1
- package/dist/model-context/types.d.ts.map +1 -1
- package/dist/react/AssistantRuntimeProvider.d.ts +9 -0
- package/dist/react/AssistantRuntimeProvider.d.ts.map +1 -0
- package/dist/react/AssistantRuntimeProvider.js +7 -0
- package/dist/react/AssistantRuntimeProvider.js.map +1 -0
- package/dist/react/RuntimeAdapter.d.ts.map +1 -1
- package/dist/react/RuntimeAdapter.js +2 -1
- package/dist/react/RuntimeAdapter.js.map +1 -1
- package/dist/react/adapters/LocalStorageThreadListAdapter.d.ts +15 -0
- package/dist/react/adapters/LocalStorageThreadListAdapter.d.ts.map +1 -0
- package/dist/react/adapters/LocalStorageThreadListAdapter.js +154 -0
- package/dist/react/adapters/LocalStorageThreadListAdapter.js.map +1 -0
- package/dist/react/adapters/TitleGenerationAdapter.d.ts +6 -0
- package/dist/react/adapters/TitleGenerationAdapter.d.ts.map +1 -0
- package/dist/react/adapters/TitleGenerationAdapter.js +15 -0
- package/dist/react/adapters/TitleGenerationAdapter.js.map +1 -0
- package/dist/react/index.d.ts +67 -6
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +70 -5
- package/dist/react/index.js.map +1 -1
- package/dist/react/model-context/useInlineRender.d.ts +1 -1
- package/dist/react/model-context/useInlineRender.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useActionBarCopy.d.ts +10 -0
- package/dist/react/primitive-hooks/useActionBarCopy.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useActionBarCopy.js +26 -0
- package/dist/react/primitive-hooks/useActionBarCopy.js.map +1 -0
- package/dist/react/primitive-hooks/useActionBarEdit.d.ts +5 -0
- package/dist/react/primitive-hooks/useActionBarEdit.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useActionBarEdit.js +11 -0
- package/dist/react/primitive-hooks/useActionBarEdit.js.map +1 -0
- package/dist/react/primitive-hooks/useActionBarFeedback.d.ts +9 -0
- package/dist/react/primitive-hooks/useActionBarFeedback.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useActionBarFeedback.js +19 -0
- package/dist/react/primitive-hooks/useActionBarFeedback.js.map +1 -0
- package/dist/react/primitive-hooks/useActionBarReload.d.ts +5 -0
- package/dist/react/primitive-hooks/useActionBarReload.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useActionBarReload.js +13 -0
- package/dist/react/primitive-hooks/useActionBarReload.js.map +1 -0
- package/dist/react/primitive-hooks/useActionBarSpeak.d.ts +5 -0
- package/dist/react/primitive-hooks/useActionBarSpeak.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useActionBarSpeak.js +15 -0
- package/dist/react/primitive-hooks/useActionBarSpeak.js.map +1 -0
- package/dist/react/primitive-hooks/useActionBarStopSpeaking.d.ts +5 -0
- package/dist/react/primitive-hooks/useActionBarStopSpeaking.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useActionBarStopSpeaking.js +11 -0
- package/dist/react/primitive-hooks/useActionBarStopSpeaking.js.map +1 -0
- package/dist/react/primitive-hooks/useBranchPickerNext.d.ts +5 -0
- package/dist/react/primitive-hooks/useBranchPickerNext.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useBranchPickerNext.js +18 -0
- package/dist/react/primitive-hooks/useBranchPickerNext.js.map +1 -0
- package/dist/react/primitive-hooks/useBranchPickerPrevious.d.ts +5 -0
- package/dist/react/primitive-hooks/useBranchPickerPrevious.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useBranchPickerPrevious.js +18 -0
- package/dist/react/primitive-hooks/useBranchPickerPrevious.js.map +1 -0
- package/dist/react/primitive-hooks/useComposerAddAttachment.d.ts +6 -0
- package/dist/react/primitive-hooks/useComposerAddAttachment.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useComposerAddAttachment.js +11 -0
- package/dist/react/primitive-hooks/useComposerAddAttachment.js.map +1 -0
- package/dist/react/primitive-hooks/useComposerCancel.d.ts +5 -0
- package/dist/react/primitive-hooks/useComposerCancel.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useComposerCancel.js +11 -0
- package/dist/react/primitive-hooks/useComposerCancel.js.map +1 -0
- package/dist/react/primitive-hooks/useComposerDictate.d.ts +5 -0
- package/dist/react/primitive-hooks/useComposerDictate.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useComposerDictate.js +13 -0
- package/dist/react/primitive-hooks/useComposerDictate.js.map +1 -0
- package/dist/react/primitive-hooks/useComposerSend.d.ts +5 -0
- package/dist/react/primitive-hooks/useComposerSend.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useComposerSend.js +11 -0
- package/dist/react/primitive-hooks/useComposerSend.js.map +1 -0
- package/dist/react/primitive-hooks/useEditComposerCancel.d.ts +4 -0
- package/dist/react/primitive-hooks/useEditComposerCancel.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useEditComposerCancel.js +10 -0
- package/dist/react/primitive-hooks/useEditComposerCancel.js.map +1 -0
- package/dist/react/primitive-hooks/useEditComposerSend.d.ts +5 -0
- package/dist/react/primitive-hooks/useEditComposerSend.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useEditComposerSend.js +11 -0
- package/dist/react/primitive-hooks/useEditComposerSend.js.map +1 -0
- package/dist/react/primitive-hooks/useMessageBranching.d.ts +7 -0
- package/dist/react/primitive-hooks/useMessageBranching.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useMessageBranching.js +15 -0
- package/dist/react/primitive-hooks/useMessageBranching.js.map +1 -0
- package/dist/react/primitive-hooks/useMessageError.d.ts +2 -0
- package/dist/react/primitive-hooks/useMessageError.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useMessageError.js +8 -0
- package/dist/react/primitive-hooks/useMessageError.js.map +1 -0
- package/dist/react/primitive-hooks/useMessageReload.d.ts +5 -0
- package/dist/react/primitive-hooks/useMessageReload.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useMessageReload.js +11 -0
- package/dist/react/primitive-hooks/useMessageReload.js.map +1 -0
- package/dist/react/primitive-hooks/useSuggestionTrigger.d.ts +10 -0
- package/dist/react/primitive-hooks/useSuggestionTrigger.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useSuggestionTrigger.js +32 -0
- package/dist/react/primitive-hooks/useSuggestionTrigger.js.map +1 -0
- package/dist/react/primitive-hooks/useThreadIsEmpty.d.ts +2 -0
- package/dist/react/primitive-hooks/useThreadIsEmpty.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useThreadIsEmpty.js +5 -0
- package/dist/react/primitive-hooks/useThreadIsEmpty.js.map +1 -0
- package/dist/react/primitive-hooks/useThreadIsRunning.d.ts +2 -0
- package/dist/react/primitive-hooks/useThreadIsRunning.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useThreadIsRunning.js +5 -0
- package/dist/react/primitive-hooks/useThreadIsRunning.js.map +1 -0
- package/dist/react/primitive-hooks/useThreadListItemArchive.d.ts +4 -0
- package/dist/react/primitive-hooks/useThreadListItemArchive.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useThreadListItemArchive.js +10 -0
- package/dist/react/primitive-hooks/useThreadListItemArchive.js.map +1 -0
- package/dist/react/primitive-hooks/useThreadListItemDelete.d.ts +4 -0
- package/dist/react/primitive-hooks/useThreadListItemDelete.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useThreadListItemDelete.js +10 -0
- package/dist/react/primitive-hooks/useThreadListItemDelete.js.map +1 -0
- package/dist/react/primitive-hooks/useThreadListItemTrigger.d.ts +4 -0
- package/dist/react/primitive-hooks/useThreadListItemTrigger.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useThreadListItemTrigger.js +10 -0
- package/dist/react/primitive-hooks/useThreadListItemTrigger.js.map +1 -0
- package/dist/react/primitive-hooks/useThreadListItemUnarchive.d.ts +4 -0
- package/dist/react/primitive-hooks/useThreadListItemUnarchive.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useThreadListItemUnarchive.js +10 -0
- package/dist/react/primitive-hooks/useThreadListItemUnarchive.js.map +1 -0
- package/dist/react/primitive-hooks/useThreadListNew.d.ts +4 -0
- package/dist/react/primitive-hooks/useThreadListNew.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useThreadListNew.js +10 -0
- package/dist/react/primitive-hooks/useThreadListNew.js.map +1 -0
- package/dist/react/primitive-hooks/useThreadMessages.d.ts +3 -0
- package/dist/react/primitive-hooks/useThreadMessages.d.ts.map +1 -0
- package/dist/react/primitive-hooks/useThreadMessages.js +5 -0
- package/dist/react/primitive-hooks/useThreadMessages.js.map +1 -0
- package/dist/react/primitives/chainOfThought/ChainOfThoughtParts.d.ts +23 -13
- package/dist/react/primitives/chainOfThought/ChainOfThoughtParts.d.ts.map +1 -1
- package/dist/react/primitives/chainOfThought/ChainOfThoughtParts.js +16 -8
- package/dist/react/primitives/chainOfThought/ChainOfThoughtParts.js.map +1 -1
- package/dist/react/primitives/composer/ComposerAttachments.d.ts +19 -8
- package/dist/react/primitives/composer/ComposerAttachments.d.ts.map +1 -1
- package/dist/react/primitives/composer/ComposerAttachments.js +19 -7
- package/dist/react/primitives/composer/ComposerAttachments.js.map +1 -1
- package/dist/react/primitives/message/MessageAttachments.d.ts +19 -8
- package/dist/react/primitives/message/MessageAttachments.d.ts.map +1 -1
- package/dist/react/primitives/message/MessageAttachments.js +19 -7
- package/dist/react/primitives/message/MessageAttachments.js.map +1 -1
- package/dist/react/primitives/message/MessageParts.d.ts +41 -5
- package/dist/react/primitives/message/MessageParts.d.ts.map +1 -1
- package/dist/react/primitives/message/MessageParts.js +113 -5
- package/dist/react/primitives/message/MessageParts.js.map +1 -1
- package/dist/react/primitives/message/MessageQuote.d.ts +10 -0
- package/dist/react/primitives/message/MessageQuote.d.ts.map +1 -0
- package/dist/react/primitives/message/MessageQuote.js +27 -0
- package/dist/react/primitives/message/MessageQuote.js.map +1 -0
- package/dist/react/primitives/part/PartMessages.d.ts +37 -0
- package/dist/react/primitives/part/PartMessages.d.ts.map +1 -0
- package/dist/react/primitives/part/PartMessages.js +49 -0
- package/dist/react/primitives/part/PartMessages.js.map +1 -0
- package/dist/react/primitives/thread/ThreadMessages.d.ts +54 -72
- package/dist/react/primitives/thread/ThreadMessages.d.ts.map +1 -1
- package/dist/react/primitives/thread/ThreadMessages.js +32 -37
- package/dist/react/primitives/thread/ThreadMessages.js.map +1 -1
- package/dist/react/primitives/thread/ThreadSuggestions.d.ts +18 -10
- package/dist/react/primitives/thread/ThreadSuggestions.d.ts.map +1 -1
- package/dist/react/primitives/thread/ThreadSuggestions.js +25 -11
- package/dist/react/primitives/thread/ThreadSuggestions.js.map +1 -1
- package/dist/react/primitives/threadList/ThreadListItems.d.ts +18 -6
- package/dist/react/primitives/threadList/ThreadListItems.d.ts.map +1 -1
- package/dist/react/primitives/threadList/ThreadListItems.js +15 -7
- package/dist/react/primitives/threadList/ThreadListItems.js.map +1 -1
- package/dist/react/providers/ReadonlyThreadProvider.d.ts +9 -0
- package/dist/react/providers/ReadonlyThreadProvider.d.ts.map +1 -0
- package/dist/react/providers/ReadonlyThreadProvider.js +52 -0
- package/dist/react/providers/ReadonlyThreadProvider.js.map +1 -0
- package/dist/react/runtimes/RemoteThreadListHookInstanceManager.d.ts +1 -1
- package/dist/react/runtimes/RemoteThreadListHookInstanceManager.d.ts.map +1 -1
- package/dist/react/runtimes/RemoteThreadListHookInstanceManager.js +1 -1
- package/dist/react/runtimes/RemoteThreadListHookInstanceManager.js.map +1 -1
- package/dist/react/runtimes/RemoteThreadListThreadListRuntimeCore.d.ts +1 -1
- package/dist/react/runtimes/RemoteThreadListThreadListRuntimeCore.d.ts.map +1 -1
- package/dist/react/runtimes/RemoteThreadListThreadListRuntimeCore.js +1 -1
- package/dist/react/runtimes/RemoteThreadListThreadListRuntimeCore.js.map +1 -1
- package/dist/react/runtimes/cloud/AssistantCloudThreadHistoryAdapter.d.ts +1 -1
- package/dist/react/runtimes/cloud/AssistantCloudThreadHistoryAdapter.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/CloudFileAttachmentAdapter.d.ts +1 -1
- package/dist/react/runtimes/cloud/CloudFileAttachmentAdapter.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/auiV0.d.ts +1 -1
- package/dist/react/runtimes/cloud/auiV0.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/useCloudThreadListAdapter.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/useCloudThreadListAdapter.js +2 -1
- package/dist/react/runtimes/cloud/useCloudThreadListAdapter.js.map +1 -1
- package/dist/react/runtimes/createMessageConverter.d.ts +1 -1
- package/dist/react/runtimes/createMessageConverter.d.ts.map +1 -1
- package/dist/react/runtimes/external-message-converter.d.ts +2 -1
- package/dist/react/runtimes/external-message-converter.d.ts.map +1 -1
- package/dist/react/runtimes/useLocalRuntime.d.ts +28 -0
- package/dist/react/runtimes/useLocalRuntime.d.ts.map +1 -0
- package/dist/react/runtimes/useLocalRuntime.js +64 -0
- package/dist/react/runtimes/useLocalRuntime.js.map +1 -0
- package/dist/react/runtimes/useToolInvocations.d.ts +1 -1
- package/dist/react/runtimes/useToolInvocations.d.ts.map +1 -1
- package/dist/react/types/MessagePartComponentTypes.d.ts +3 -1
- package/dist/react/types/MessagePartComponentTypes.d.ts.map +1 -1
- package/dist/react/utils/getMessageQuote.d.ts +9 -0
- package/dist/react/utils/getMessageQuote.d.ts.map +1 -0
- package/dist/react/utils/getMessageQuote.js +7 -0
- package/dist/react/utils/getMessageQuote.js.map +1 -0
- package/dist/runtime/api/assistant-runtime.d.ts +2 -2
- package/dist/runtime/api/assistant-runtime.d.ts.map +1 -1
- package/dist/runtime/api/attachment-runtime.d.ts +2 -1
- package/dist/runtime/api/attachment-runtime.d.ts.map +1 -1
- package/dist/runtime/api/attachment-runtime.js.map +1 -1
- package/dist/runtime/api/bindings.d.ts +1 -1
- package/dist/runtime/api/bindings.d.ts.map +1 -1
- package/dist/runtime/api/composer-runtime.d.ts +5 -1
- package/dist/runtime/api/composer-runtime.d.ts.map +1 -1
- package/dist/runtime/api/composer-runtime.js +2 -1
- package/dist/runtime/api/composer-runtime.js.map +1 -1
- package/dist/runtime/api/message-part-runtime.d.ts +3 -1
- package/dist/runtime/api/message-part-runtime.d.ts.map +1 -1
- package/dist/runtime/api/message-runtime.d.ts +3 -1
- package/dist/runtime/api/message-runtime.d.ts.map +1 -1
- package/dist/runtime/api/message-runtime.js +2 -1
- package/dist/runtime/api/message-runtime.js.map +1 -1
- package/dist/runtime/api/thread-list-item-runtime.d.ts +1 -1
- package/dist/runtime/api/thread-list-item-runtime.d.ts.map +1 -1
- package/dist/runtime/api/thread-list-runtime.d.ts +1 -1
- package/dist/runtime/api/thread-list-runtime.d.ts.map +1 -1
- package/dist/runtime/api/thread-list-runtime.js +2 -1
- package/dist/runtime/api/thread-list-runtime.js.map +1 -1
- package/dist/runtime/api/thread-runtime.d.ts +18 -10
- package/dist/runtime/api/thread-runtime.d.ts.map +1 -1
- package/dist/runtime/api/thread-runtime.js +9 -3
- package/dist/runtime/api/thread-runtime.js.map +1 -1
- package/dist/runtime/base/base-assistant-runtime-core.d.ts +2 -2
- package/dist/runtime/base/base-assistant-runtime-core.d.ts.map +1 -1
- package/dist/runtime/base/base-composer-runtime-core.d.ts +5 -2
- package/dist/runtime/base/base-composer-runtime-core.d.ts.map +1 -1
- package/dist/runtime/base/base-composer-runtime-core.js +1 -1
- package/dist/runtime/base/base-composer-runtime-core.js.map +1 -1
- package/dist/runtime/base/base-thread-runtime-core.d.ts +3 -2
- package/dist/runtime/base/base-thread-runtime-core.d.ts.map +1 -1
- package/dist/runtime/base/base-thread-runtime-core.js.map +1 -1
- package/dist/runtime/base/default-edit-composer-runtime-core.d.ts +1 -1
- package/dist/runtime/base/default-edit-composer-runtime-core.d.ts.map +1 -1
- package/dist/runtime/base/default-thread-composer-runtime-core.d.ts +1 -1
- package/dist/runtime/base/default-thread-composer-runtime-core.d.ts.map +1 -1
- package/dist/runtime/interfaces/assistant-runtime-core.d.ts +2 -2
- package/dist/runtime/interfaces/assistant-runtime-core.d.ts.map +1 -1
- package/dist/runtime/interfaces/composer-runtime-core.d.ts +5 -1
- package/dist/runtime/interfaces/composer-runtime-core.d.ts.map +1 -1
- package/dist/runtime/interfaces/thread-list-runtime-core.d.ts +1 -1
- package/dist/runtime/interfaces/thread-list-runtime-core.d.ts.map +1 -1
- package/dist/runtime/interfaces/thread-runtime-core.d.ts +4 -2
- package/dist/runtime/interfaces/thread-runtime-core.d.ts.map +1 -1
- package/dist/runtime/utils/auto-status.d.ts +1 -1
- package/dist/runtime/utils/auto-status.d.ts.map +1 -1
- package/dist/runtime/utils/chat-model-adapter.d.ts +3 -2
- package/dist/runtime/utils/chat-model-adapter.d.ts.map +1 -1
- package/dist/runtime/utils/external-store-message.d.ts +1 -1
- package/dist/runtime/utils/external-store-message.d.ts.map +1 -1
- package/dist/runtime/utils/message-repository.d.ts +2 -1
- package/dist/runtime/utils/message-repository.d.ts.map +1 -1
- package/dist/runtime/utils/message-repository.js.map +1 -1
- package/dist/runtime/utils/thread-message-like.d.ts +3 -1
- package/dist/runtime/utils/thread-message-like.d.ts.map +1 -1
- package/dist/runtime/utils/thread-message-like.js.map +1 -1
- package/dist/runtimes/external-store/external-store-adapter.d.ts +1 -1
- package/dist/runtimes/external-store/external-store-adapter.d.ts.map +1 -1
- package/dist/runtimes/external-store/external-store-thread-list-runtime-core.d.ts +1 -1
- package/dist/runtimes/external-store/external-store-thread-list-runtime-core.d.ts.map +1 -1
- package/dist/runtimes/external-store/external-store-thread-runtime-core.d.ts +2 -2
- package/dist/runtimes/external-store/external-store-thread-runtime-core.d.ts.map +1 -1
- package/dist/runtimes/external-store/thread-message-converter.d.ts +1 -1
- package/dist/runtimes/external-store/thread-message-converter.d.ts.map +1 -1
- package/dist/runtimes/internal.d.ts +1 -0
- package/dist/runtimes/internal.d.ts.map +1 -1
- package/dist/runtimes/internal.js +2 -0
- package/dist/runtimes/internal.js.map +1 -1
- package/dist/runtimes/local/local-thread-list-runtime-core.d.ts +1 -1
- package/dist/runtimes/local/local-thread-list-runtime-core.d.ts.map +1 -1
- package/dist/runtimes/local/local-thread-list-runtime-core.js +1 -1
- package/dist/runtimes/local/local-thread-list-runtime-core.js.map +1 -1
- package/dist/runtimes/local/local-thread-runtime-core.d.ts +2 -2
- package/dist/runtimes/local/local-thread-runtime-core.d.ts.map +1 -1
- package/dist/runtimes/local/should-continue.d.ts +1 -1
- package/dist/runtimes/local/should-continue.d.ts.map +1 -1
- package/dist/runtimes/readonly/ReadonlyThreadRuntimeCore.d.ts +85 -0
- package/dist/runtimes/readonly/ReadonlyThreadRuntimeCore.d.ts.map +1 -0
- package/dist/runtimes/readonly/ReadonlyThreadRuntimeCore.js +169 -0
- package/dist/runtimes/readonly/ReadonlyThreadRuntimeCore.js.map +1 -0
- package/dist/runtimes/remote-thread-list/types.d.ts +1 -1
- package/dist/runtimes/remote-thread-list/types.d.ts.map +1 -1
- package/dist/store/clients/model-context-client.js +1 -1
- package/dist/store/clients/model-context-client.js.map +1 -1
- package/dist/store/clients/runtime-adapter.js +1 -1
- package/dist/store/clients/runtime-adapter.js.map +1 -1
- package/dist/store/clients/suggestions.d.ts.map +1 -1
- package/dist/store/clients/suggestions.js.map +1 -1
- package/dist/store/clients/thread-message-client.d.ts +1 -1
- package/dist/store/clients/thread-message-client.d.ts.map +1 -1
- package/dist/store/clients/thread-message-client.js.map +1 -1
- package/dist/store/index.d.ts +16 -2
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +5 -3
- package/dist/store/index.js.map +1 -1
- package/dist/store/internal.d.ts +7 -1
- package/dist/store/internal.d.ts.map +1 -1
- package/dist/store/internal.js +7 -1
- package/dist/store/internal.js.map +1 -1
- package/dist/store/runtime-clients/attachment-runtime-client.d.ts +1 -1
- package/dist/store/runtime-clients/attachment-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/composer-runtime-client.d.ts +1 -1
- package/dist/store/runtime-clients/composer-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/message-part-runtime-client.d.ts +1 -1
- package/dist/store/runtime-clients/message-part-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/message-runtime-client.d.ts +1 -1
- package/dist/store/runtime-clients/message-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/tap-subscribable.d.ts +1 -1
- package/dist/store/runtime-clients/tap-subscribable.d.ts.map +1 -1
- package/dist/store/runtime-clients/thread-list-item-runtime-client.d.ts +1 -1
- package/dist/store/runtime-clients/thread-list-item-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/thread-list-item-runtime-client.js.map +1 -1
- package/dist/store/runtime-clients/thread-list-runtime-client.d.ts +2 -1
- package/dist/store/runtime-clients/thread-list-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/thread-list-runtime-client.js.map +1 -1
- package/dist/store/runtime-clients/thread-runtime-client.d.ts +1 -1
- package/dist/store/runtime-clients/thread-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/thread-runtime-client.js +2 -1
- package/dist/store/runtime-clients/thread-runtime-client.js.map +1 -1
- package/dist/store/scopes/attachment.d.ts +2 -2
- package/dist/store/scopes/attachment.d.ts.map +1 -1
- package/dist/store/scopes/chain-of-thought.d.ts +2 -1
- package/dist/store/scopes/chain-of-thought.d.ts.map +1 -1
- package/dist/store/scopes/composer.d.ts +6 -2
- package/dist/store/scopes/composer.d.ts.map +1 -1
- package/dist/store/scopes/message.d.ts +4 -2
- package/dist/store/scopes/message.d.ts.map +1 -1
- package/dist/store/scopes/model-context.d.ts +2 -2
- package/dist/store/scopes/model-context.d.ts.map +1 -1
- package/dist/store/scopes/part.d.ts +3 -2
- package/dist/store/scopes/part.d.ts.map +1 -1
- package/dist/store/scopes/thread-list-item.d.ts +2 -1
- package/dist/store/scopes/thread-list-item.d.ts.map +1 -1
- package/dist/store/scopes/thread.d.ts +9 -2
- package/dist/store/scopes/thread.d.ts.map +1 -1
- package/dist/store/scopes/threads.d.ts +1 -1
- package/dist/store/scopes/threads.d.ts.map +1 -1
- package/dist/subscribable/subscribable.d.ts +1 -1
- package/dist/subscribable/subscribable.d.ts.map +1 -1
- package/dist/utils/composite-context-provider.d.ts +1 -1
- package/dist/utils/composite-context-provider.d.ts.map +1 -1
- package/dist/utils/composite-context-provider.js +1 -1
- package/dist/utils/composite-context-provider.js.map +1 -1
- package/dist/utils/text.d.ts +1 -1
- package/dist/utils/text.d.ts.map +1 -1
- package/dist/utils/text.js.map +1 -1
- package/package.json +10 -10
- package/src/adapters/attachment.ts +1 -1
- package/src/adapters/feedback.ts +1 -1
- package/src/adapters/speech.ts +1 -1
- package/src/adapters/suggestion.ts +1 -1
- package/src/index.ts +254 -5
- package/src/internal.ts +37 -2
- package/src/model-context/frame/host.ts +1 -1
- package/src/model-context/frame/provider.ts +1 -1
- package/src/model-context/registry.ts +1 -1
- package/src/model-context/types.ts +1 -1
- package/src/react/AssistantRuntimeProvider.tsx +22 -0
- package/src/react/RuntimeAdapter.ts +2 -1
- package/src/react/adapters/LocalStorageThreadListAdapter.tsx +227 -0
- package/src/react/adapters/TitleGenerationAdapter.ts +20 -0
- package/src/react/client/DataRenderers.ts +2 -2
- package/src/react/client/Tools.ts +2 -2
- package/src/react/index.ts +167 -5
- package/src/react/model-context/useInlineRender.ts +1 -1
- package/src/react/primitive-hooks/useActionBarCopy.ts +38 -0
- package/src/react/primitive-hooks/useActionBarEdit.ts +13 -0
- package/src/react/primitive-hooks/useActionBarFeedback.ts +28 -0
- package/src/react/primitive-hooks/useActionBarReload.ts +18 -0
- package/src/react/primitive-hooks/useActionBarSpeak.ts +20 -0
- package/src/react/primitive-hooks/useActionBarStopSpeaking.ts +13 -0
- package/src/react/primitive-hooks/useBranchPickerNext.ts +19 -0
- package/src/react/primitive-hooks/useBranchPickerPrevious.ts +19 -0
- package/src/react/primitive-hooks/useComposerAddAttachment.ts +17 -0
- package/src/react/primitive-hooks/useComposerCancel.ts +13 -0
- package/src/react/primitive-hooks/useComposerDictate.ts +18 -0
- package/src/react/primitive-hooks/useComposerSend.ts +15 -0
- package/src/react/primitive-hooks/useEditComposerCancel.ts +12 -0
- package/src/react/primitive-hooks/useEditComposerSend.ts +13 -0
- package/src/react/primitive-hooks/useMessageBranching.ts +18 -0
- package/src/react/primitive-hooks/useMessageError.ts +10 -0
- package/src/react/primitive-hooks/useMessageReload.ts +13 -0
- package/src/react/primitive-hooks/useSuggestionTrigger.ts +43 -0
- package/src/react/primitive-hooks/useThreadIsEmpty.ts +5 -0
- package/src/react/primitive-hooks/useThreadIsRunning.ts +5 -0
- package/src/react/primitive-hooks/useThreadListItemArchive.ts +12 -0
- package/src/react/primitive-hooks/useThreadListItemDelete.ts +12 -0
- package/src/react/primitive-hooks/useThreadListItemTrigger.ts +12 -0
- package/src/react/primitive-hooks/useThreadListItemUnarchive.ts +12 -0
- package/src/react/primitive-hooks/useThreadListNew.ts +12 -0
- package/src/react/primitive-hooks/useThreadMessages.ts +6 -0
- package/src/react/primitives/chainOfThought/ChainOfThoughtParts.tsx +72 -28
- package/src/react/primitives/composer/ComposerAttachments.tsx +69 -30
- package/src/react/primitives/message/MessageAttachments.tsx +69 -30
- package/src/react/primitives/message/MessageParts.tsx +212 -24
- package/src/react/primitives/message/MessageQuote.tsx +37 -0
- package/src/react/primitives/part/PartMessages.tsx +75 -0
- package/src/react/primitives/thread/ThreadMessages.tsx +113 -99
- package/src/react/primitives/thread/ThreadSuggestions.tsx +72 -28
- package/src/react/primitives/threadList/ThreadListItems.tsx +69 -23
- package/src/react/providers/ReadonlyThreadProvider.tsx +84 -0
- package/src/react/runtimes/RemoteThreadListHookInstanceManager.tsx +1 -1
- package/src/react/runtimes/RemoteThreadListThreadListRuntimeCore.tsx +1 -1
- package/src/react/runtimes/cloud/AssistantCloudThreadHistoryAdapter.ts +1 -1
- package/src/react/runtimes/cloud/CloudFileAttachmentAdapter.ts +2 -2
- package/src/react/runtimes/cloud/auiV0.ts +1 -1
- package/src/react/runtimes/cloud/useCloudThreadListAdapter.tsx +3 -1
- package/src/react/runtimes/createMessageConverter.ts +1 -1
- package/src/react/runtimes/external-message-converter.ts +2 -2
- package/src/react/runtimes/useLocalRuntime.ts +101 -0
- package/src/react/runtimes/useToolInvocations.ts +1 -1
- package/src/react/types/MessagePartComponentTypes.ts +4 -0
- package/src/react/utils/getMessageQuote.ts +18 -0
- package/src/runtime/api/assistant-runtime.ts +2 -2
- package/src/runtime/api/attachment-runtime.ts +2 -1
- package/src/runtime/api/bindings.ts +1 -1
- package/src/runtime/api/composer-runtime.ts +9 -10
- package/src/runtime/api/message-part-runtime.ts +3 -3
- package/src/runtime/api/message-runtime.ts +5 -6
- package/src/runtime/api/thread-list-item-runtime.ts +1 -1
- package/src/runtime/api/thread-list-runtime.ts +5 -3
- package/src/runtime/api/thread-runtime.ts +19 -11
- package/src/runtime/base/base-assistant-runtime-core.ts +2 -2
- package/src/runtime/base/base-composer-runtime-core.ts +6 -7
- package/src/runtime/base/base-thread-runtime-core.ts +3 -2
- package/src/runtime/base/default-edit-composer-runtime-core.ts +1 -1
- package/src/runtime/base/default-thread-composer-runtime-core.ts +1 -1
- package/src/runtime/interfaces/assistant-runtime-core.ts +2 -2
- package/src/runtime/interfaces/composer-runtime-core.ts +5 -8
- package/src/runtime/interfaces/thread-list-runtime-core.ts +1 -1
- package/src/runtime/interfaces/thread-runtime-core.ts +4 -7
- package/src/runtime/utils/auto-status.ts +1 -1
- package/src/runtime/utils/chat-model-adapter.ts +7 -5
- package/src/runtime/utils/external-store-message.ts +1 -1
- package/src/runtime/utils/message-repository.ts +2 -1
- package/src/runtime/utils/thread-message-like.ts +3 -4
- package/src/runtimes/external-store/external-store-adapter.ts +1 -1
- package/src/runtimes/external-store/external-store-thread-list-runtime-core.ts +1 -1
- package/src/runtimes/external-store/external-store-thread-runtime-core.ts +2 -2
- package/src/runtimes/external-store/thread-message-converter.ts +1 -1
- package/src/runtimes/internal.ts +3 -0
- package/src/runtimes/local/local-thread-list-runtime-core.ts +1 -1
- package/src/runtimes/local/local-thread-runtime-core.ts +3 -3
- package/src/runtimes/local/should-continue.ts +1 -1
- package/src/runtimes/readonly/ReadonlyThreadRuntimeCore.ts +223 -0
- package/src/runtimes/remote-thread-list/types.ts +1 -1
- package/src/store/clients/chain-of-thought-client.ts +1 -1
- package/src/store/clients/model-context-client.ts +2 -2
- package/src/store/clients/no-op-composer-client.ts +1 -1
- package/src/store/clients/runtime-adapter.ts +1 -1
- package/src/store/clients/suggestions.ts +2 -1
- package/src/store/clients/thread-message-client.ts +4 -3
- package/src/store/index.ts +76 -2
- package/src/store/internal.ts +7 -1
- package/src/store/runtime-clients/attachment-runtime-client.ts +1 -1
- package/src/store/runtime-clients/composer-runtime-client.ts +4 -4
- package/src/store/runtime-clients/message-part-runtime-client.ts +1 -1
- package/src/store/runtime-clients/message-runtime-client.ts +2 -2
- package/src/store/runtime-clients/tap-subscribable.ts +1 -1
- package/src/store/runtime-clients/thread-list-item-runtime-client.ts +5 -2
- package/src/store/runtime-clients/thread-list-runtime-client.ts +3 -2
- package/src/store/runtime-clients/thread-runtime-client.ts +6 -4
- package/src/store/scopes/attachment.ts +2 -2
- package/src/store/scopes/chain-of-thought.ts +2 -1
- package/src/store/scopes/composer.ts +6 -8
- package/src/store/scopes/message.ts +4 -3
- package/src/store/scopes/model-context.ts +2 -2
- package/src/store/scopes/part.ts +3 -3
- package/src/store/scopes/thread-list-item.ts +2 -4
- package/src/store/scopes/thread.ts +11 -4
- package/src/store/scopes/threads.ts +1 -1
- package/src/subscribable/subscribable.ts +1 -1
- package/src/tests/MessageRepository.test.ts +2 -1
- package/src/tests/external-store-thread-runtime-core.test.ts +1 -1
- package/src/tests/no-unsafe-process-env.test.ts +58 -0
- package/src/utils/composite-context-provider.ts +1 -1
- package/src/utils/text.ts +2 -1
- package/dist/adapters/index.d.ts +0 -8
- package/dist/adapters/index.d.ts.map +0 -1
- package/dist/adapters/index.js +0 -3
- package/dist/adapters/index.js.map +0 -1
- package/dist/model-context/frame/index.d.ts +0 -5
- package/dist/model-context/frame/index.d.ts.map +0 -1
- package/dist/model-context/frame/index.js +0 -4
- package/dist/model-context/frame/index.js.map +0 -1
- package/dist/model-context/index.d.ts +0 -8
- package/dist/model-context/index.d.ts.map +0 -1
- package/dist/model-context/index.js +0 -9
- package/dist/model-context/index.js.map +0 -1
- package/dist/react/client/index.d.ts +0 -3
- package/dist/react/client/index.d.ts.map +0 -1
- package/dist/react/client/index.js +0 -3
- package/dist/react/client/index.js.map +0 -1
- package/dist/react/model-context/index.d.ts +0 -12
- package/dist/react/model-context/index.d.ts.map +0 -1
- package/dist/react/model-context/index.js +0 -11
- package/dist/react/model-context/index.js.map +0 -1
- package/dist/react/providers/index.d.ts +0 -10
- package/dist/react/providers/index.d.ts.map +0 -1
- package/dist/react/providers/index.js +0 -10
- package/dist/react/providers/index.js.map +0 -1
- package/dist/react/runtimes/cloud/index.d.ts +0 -4
- package/dist/react/runtimes/cloud/index.d.ts.map +0 -1
- package/dist/react/runtimes/cloud/index.js +0 -4
- package/dist/react/runtimes/cloud/index.js.map +0 -1
- package/dist/react/runtimes/index.d.ts +0 -10
- package/dist/react/runtimes/index.d.ts.map +0 -1
- package/dist/react/runtimes/index.js +0 -10
- package/dist/react/runtimes/index.js.map +0 -1
- package/dist/react/types/index.d.ts +0 -3
- package/dist/react/types/index.d.ts.map +0 -1
- package/dist/react/types/index.js +0 -2
- package/dist/react/types/index.js.map +0 -1
- package/dist/react/types/scopes/index.d.ts +0 -3
- package/dist/react/types/scopes/index.d.ts.map +0 -1
- package/dist/react/types/scopes/index.js +0 -2
- package/dist/react/types/scopes/index.js.map +0 -1
- package/dist/runtime/index.d.ts +0 -20
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js +0 -7
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtimes/external-store/index.d.ts +0 -8
- package/dist/runtimes/external-store/index.d.ts.map +0 -1
- package/dist/runtimes/external-store/index.js +0 -5
- package/dist/runtimes/external-store/index.js.map +0 -1
- package/dist/runtimes/index.d.ts +0 -6
- package/dist/runtimes/index.d.ts.map +0 -1
- package/dist/runtimes/index.js +0 -4
- package/dist/runtimes/index.js.map +0 -1
- package/dist/runtimes/local/index.d.ts +0 -7
- package/dist/runtimes/local/index.d.ts.map +0 -1
- package/dist/runtimes/local/index.js +0 -5
- package/dist/runtimes/local/index.js.map +0 -1
- package/dist/store/clients/index.d.ts +0 -6
- package/dist/store/clients/index.d.ts.map +0 -1
- package/dist/store/clients/index.js +0 -6
- package/dist/store/clients/index.js.map +0 -1
- package/dist/store/runtime-clients/index.d.ts +0 -8
- package/dist/store/runtime-clients/index.d.ts.map +0 -1
- package/dist/store/runtime-clients/index.js +0 -8
- package/dist/store/runtime-clients/index.js.map +0 -1
- package/dist/store/scopes/index.d.ts +0 -12
- package/dist/store/scopes/index.d.ts.map +0 -1
- package/dist/store/scopes/index.js +0 -2
- package/dist/store/scopes/index.js.map +0 -1
- package/dist/subscribable/index.d.ts +0 -3
- package/dist/subscribable/index.d.ts.map +0 -1
- package/dist/subscribable/index.js +0 -8
- package/dist/subscribable/index.js.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +0 -1
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -7
- package/dist/utils/index.js.map +0 -1
- package/src/adapters/index.ts +0 -30
- package/src/model-context/frame/index.ts +0 -10
- package/src/model-context/index.ts +0 -35
- package/src/react/client/index.ts +0 -2
- package/src/react/model-context/index.ts +0 -25
- package/src/react/providers/index.ts +0 -15
- package/src/react/runtimes/cloud/index.ts +0 -3
- package/src/react/runtimes/index.ts +0 -30
- package/src/react/types/index.ts +0 -31
- package/src/react/types/scopes/index.ts +0 -6
- package/src/runtime/index.ts +0 -109
- package/src/runtimes/external-store/index.ts +0 -15
- package/src/runtimes/index.ts +0 -28
- package/src/runtimes/local/index.ts +0 -6
- package/src/store/clients/index.ts +0 -8
- package/src/store/runtime-clients/index.ts +0 -7
- package/src/store/scopes/index.ts +0 -68
- package/src/subscribable/index.ts +0 -21
- package/src/types/index.ts +0 -40
- package/src/utils/index.ts +0 -14
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import type { Unsubscribe } from "../../types";
|
|
1
|
+
import type { Unsubscribe } from "../../types/unsubscribe";
|
|
2
2
|
import {
|
|
3
3
|
LazyMemoizeSubject,
|
|
4
|
+
NestedSubscriptionSubject,
|
|
5
|
+
} from "../../subscribable/subscribable";
|
|
6
|
+
import {
|
|
4
7
|
SKIP_UPDATE,
|
|
5
8
|
ShallowMemoizeSubject,
|
|
6
|
-
|
|
7
|
-
} from "../../subscribable";
|
|
9
|
+
} from "../../subscribable/subscribable";
|
|
8
10
|
import type { ThreadListRuntimeCore } from "../interfaces/thread-list-runtime-core";
|
|
9
11
|
import {
|
|
10
12
|
ThreadListItemRuntime,
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
MessageRuntimeImpl,
|
|
15
15
|
MessageState,
|
|
16
16
|
} from "./message-runtime";
|
|
17
|
+
import { NestedSubscriptionSubject } from "../../subscribable/subscribable";
|
|
17
18
|
import {
|
|
18
|
-
NestedSubscriptionSubject,
|
|
19
19
|
ShallowMemoizeSubject,
|
|
20
20
|
SKIP_UPDATE,
|
|
21
|
-
} from "../../subscribable";
|
|
21
|
+
} from "../../subscribable/subscribable";
|
|
22
22
|
import type { SubscribableWithState } from "../../subscribable/subscribable";
|
|
23
23
|
import {
|
|
24
24
|
ThreadComposerRuntime,
|
|
@@ -30,15 +30,12 @@ import {
|
|
|
30
30
|
ThreadRuntimePath,
|
|
31
31
|
} from "./paths";
|
|
32
32
|
import type { ThreadListItemState } from "./bindings";
|
|
33
|
-
import type {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Unsubscribe,
|
|
38
|
-
} from "../../types";
|
|
39
|
-
import { EventSubscriptionSubject } from "../../subscribable";
|
|
33
|
+
import type { AppendMessage, ThreadMessage } from "../../types/message";
|
|
34
|
+
import type { Unsubscribe } from "../../types/unsubscribe";
|
|
35
|
+
import type { RunConfig } from "../../types/message";
|
|
36
|
+
import { EventSubscriptionSubject } from "../../subscribable/subscribable";
|
|
40
37
|
import { symbolInnerMessage } from "../utils/external-store-message";
|
|
41
|
-
import { ModelContext } from "../../model-context";
|
|
38
|
+
import { ModelContext } from "../../model-context/types";
|
|
42
39
|
import {
|
|
43
40
|
ChatModelRunOptions,
|
|
44
41
|
ChatModelRunResult,
|
|
@@ -263,6 +260,11 @@ export type ThreadRuntime = {
|
|
|
263
260
|
* Resume a run with the given configuration.
|
|
264
261
|
* @param config The configuration for resuming the run
|
|
265
262
|
**/
|
|
263
|
+
resumeRun(config: CreateResumeRunConfig): void;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @deprecated Use `resumeRun` instead.
|
|
267
|
+
*/
|
|
266
268
|
unstable_resumeRun(config: CreateResumeRunConfig): void;
|
|
267
269
|
|
|
268
270
|
/**
|
|
@@ -377,6 +379,7 @@ export class ThreadRuntimeImpl implements ThreadRuntime {
|
|
|
377
379
|
|
|
378
380
|
protected __internal_bindMethods() {
|
|
379
381
|
this.append = this.append.bind(this);
|
|
382
|
+
this.resumeRun = this.resumeRun.bind(this);
|
|
380
383
|
this.unstable_resumeRun = this.unstable_resumeRun.bind(this);
|
|
381
384
|
this.unstable_loadExternalState =
|
|
382
385
|
this.unstable_loadExternalState.bind(this);
|
|
@@ -431,10 +434,15 @@ export class ThreadRuntimeImpl implements ThreadRuntime {
|
|
|
431
434
|
return this._threadBinding.getState().startRun(toStartRunConfig(config));
|
|
432
435
|
}
|
|
433
436
|
|
|
434
|
-
public
|
|
437
|
+
public resumeRun(config: CreateResumeRunConfig) {
|
|
435
438
|
return this._threadBinding.getState().resumeRun(toResumeRunConfig(config));
|
|
436
439
|
}
|
|
437
440
|
|
|
441
|
+
/** @deprecated Use `resumeRun` instead. */
|
|
442
|
+
public unstable_resumeRun(config: CreateResumeRunConfig) {
|
|
443
|
+
return this.resumeRun(config);
|
|
444
|
+
}
|
|
445
|
+
|
|
438
446
|
public exportExternalState() {
|
|
439
447
|
return this._threadBinding.getState().exportExternalState();
|
|
440
448
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Unsubscribe } from "../../types";
|
|
2
|
-
import type { ModelContextProvider } from "../../model-context";
|
|
1
|
+
import type { Unsubscribe } from "../../types/unsubscribe";
|
|
2
|
+
import type { ModelContextProvider } from "../../model-context/types";
|
|
3
3
|
import { CompositeContextProvider } from "../../utils/composite-context-provider";
|
|
4
4
|
import type { AssistantRuntimeCore } from "../interfaces/assistant-runtime-core";
|
|
5
5
|
import type { ThreadListRuntimeCore } from "../interfaces/thread-list-runtime-core";
|
|
@@ -3,13 +3,12 @@ import type {
|
|
|
3
3
|
CompleteAttachment,
|
|
4
4
|
CreateAttachment,
|
|
5
5
|
PendingAttachment,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "../../
|
|
12
|
-
import { BaseSubscribable } from "../../subscribable";
|
|
6
|
+
} from "../../types/attachment";
|
|
7
|
+
import type { MessageRole, AppendMessage } from "../../types/message";
|
|
8
|
+
import type { QuoteInfo } from "../../types/quote";
|
|
9
|
+
import type { Unsubscribe } from "../../types/unsubscribe";
|
|
10
|
+
import type { RunConfig } from "../../types/message";
|
|
11
|
+
import { BaseSubscribable } from "../../subscribable/subscribable";
|
|
13
12
|
import type { AttachmentAdapter } from "../../adapters/attachment";
|
|
14
13
|
import type {
|
|
15
14
|
ComposerRuntimeCore,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { AppendMessage, ThreadMessage
|
|
2
|
-
import type {
|
|
1
|
+
import type { AppendMessage, ThreadMessage } from "../../types/message";
|
|
2
|
+
import type { Unsubscribe } from "../../types/unsubscribe";
|
|
3
|
+
import type { ModelContextProvider } from "../../model-context/types";
|
|
3
4
|
import { getThreadMessageText } from "../../utils/text";
|
|
4
5
|
import {
|
|
5
6
|
ExportedMessageRepository,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppendMessage, ThreadMessage } from "../../types";
|
|
1
|
+
import type { AppendMessage, ThreadMessage } from "../../types/message";
|
|
2
2
|
import { getThreadMessageText } from "../../utils/text";
|
|
3
3
|
import type { AttachmentAdapter } from "../../adapters/attachment";
|
|
4
4
|
import type { DictationAdapter } from "../../adapters/speech";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppendMessage } from "../../types";
|
|
1
|
+
import type { AppendMessage } from "../../types/message";
|
|
2
2
|
import type { AttachmentAdapter } from "../../adapters/attachment";
|
|
3
3
|
import type { DictationAdapter } from "../../adapters/speech";
|
|
4
4
|
import type { ThreadComposerRuntimeCore } from "../interfaces/composer-runtime-core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Unsubscribe } from "../../types";
|
|
2
|
-
import type { ModelContextProvider } from "../../model-context";
|
|
1
|
+
import type { Unsubscribe } from "../../types/unsubscribe";
|
|
2
|
+
import type { ModelContextProvider } from "../../model-context/types";
|
|
3
3
|
import type { ThreadListRuntimeCore } from "./thread-list-runtime-core";
|
|
4
4
|
|
|
5
5
|
export type AssistantRuntimeCore = {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
CreateAttachment,
|
|
7
|
-
Unsubscribe,
|
|
8
|
-
} from "../../types";
|
|
1
|
+
import type { MessageRole } from "../../types/message";
|
|
2
|
+
import type { QuoteInfo } from "../../types/quote";
|
|
3
|
+
import type { Attachment, CreateAttachment } from "../../types/attachment";
|
|
4
|
+
import type { Unsubscribe } from "../../types/unsubscribe";
|
|
5
|
+
import type { RunConfig } from "../../types/message";
|
|
9
6
|
import type { DictationAdapter } from "../../adapters/speech";
|
|
10
7
|
|
|
11
8
|
export type ComposerRuntimeEventType = "send" | "attachmentAdd";
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import type { ReadonlyJSONValue } from "assistant-stream/utils";
|
|
2
|
-
import type { ModelContext } from "../../model-context";
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
AppendMessage,
|
|
7
|
-
ThreadMessage,
|
|
8
|
-
} from "../../types";
|
|
2
|
+
import type { ModelContext } from "../../model-context/types";
|
|
3
|
+
import type { Unsubscribe } from "../../types/unsubscribe";
|
|
4
|
+
import type { AppendMessage, ThreadMessage } from "../../types/message";
|
|
5
|
+
import type { RunConfig } from "../../types/message";
|
|
9
6
|
import type { SpeechSynthesisAdapter } from "../../adapters/speech";
|
|
10
7
|
import type {
|
|
11
8
|
ChatModelRunOptions,
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
FileMessagePart,
|
|
3
3
|
MessageStatus,
|
|
4
|
-
MessageTiming,
|
|
5
4
|
ReasoningMessagePart,
|
|
6
|
-
RunConfig,
|
|
7
5
|
SourceMessagePart,
|
|
8
|
-
TextMessagePart,
|
|
9
6
|
ThreadAssistantMessagePart,
|
|
10
7
|
ThreadMessage,
|
|
11
8
|
ThreadStep,
|
|
12
9
|
ToolCallMessagePart,
|
|
13
|
-
} from "../../types";
|
|
14
|
-
import type {
|
|
10
|
+
} from "../../types/message";
|
|
11
|
+
import type {
|
|
12
|
+
MessageTiming,
|
|
13
|
+
RunConfig,
|
|
14
|
+
TextMessagePart,
|
|
15
|
+
} from "../../types/message";
|
|
16
|
+
import type { ModelContext } from "../../model-context/types";
|
|
15
17
|
import { ReadonlyJSONValue } from "assistant-stream/utils";
|
|
16
18
|
|
|
17
19
|
export type ChatModelRunUpdate = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ThreadMessage } from "../../types/message";
|
|
2
|
+
import type { RunConfig } from "../../types/message";
|
|
2
3
|
import { generateId, generateOptimisticId } from "../../utils/id";
|
|
3
4
|
import type { ThreadMessageLike } from "./thread-message-like";
|
|
4
5
|
import { getAutoStatus } from "./auto-status";
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { parsePartialJsonObject } from "assistant-stream/utils";
|
|
2
2
|
import { generateId } from "../../utils/id";
|
|
3
3
|
import type {
|
|
4
|
-
MessageTiming,
|
|
5
4
|
ReasoningMessagePart,
|
|
6
5
|
SourceMessagePart,
|
|
7
6
|
ThreadStep,
|
|
8
7
|
MessageStatus,
|
|
9
|
-
TextMessagePart,
|
|
10
8
|
ImageMessagePart,
|
|
11
9
|
ThreadMessage,
|
|
12
10
|
ThreadAssistantMessagePart,
|
|
@@ -14,11 +12,12 @@ import type {
|
|
|
14
12
|
ThreadUserMessagePart,
|
|
15
13
|
ThreadUserMessage,
|
|
16
14
|
ThreadSystemMessage,
|
|
17
|
-
CompleteAttachment,
|
|
18
15
|
FileMessagePart,
|
|
19
16
|
DataMessagePart,
|
|
20
17
|
Unstable_AudioMessagePart,
|
|
21
|
-
} from "../../types";
|
|
18
|
+
} from "../../types/message";
|
|
19
|
+
import type { CompleteAttachment } from "../../types/attachment";
|
|
20
|
+
import type { MessageTiming, TextMessagePart } from "../../types/message";
|
|
22
21
|
import { ReadonlyJSONObject, ReadonlyJSONValue } from "assistant-stream/utils";
|
|
23
22
|
|
|
24
23
|
type DataPrefixedPart = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppendMessage, ThreadMessage } from "../../types";
|
|
1
|
+
import type { AppendMessage, ThreadMessage } from "../../types/message";
|
|
2
2
|
import type { ThreadMessageLike } from "../../runtime/utils/thread-message-like";
|
|
3
3
|
import type { AttachmentAdapter } from "../../adapters/attachment";
|
|
4
4
|
import type {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppendMessage, ThreadMessage } from "../../types";
|
|
1
|
+
import type { AppendMessage, ThreadMessage } from "../../types/message";
|
|
2
2
|
import type {
|
|
3
3
|
AddToolResultOptions,
|
|
4
4
|
ResumeRunConfig,
|
|
@@ -24,7 +24,7 @@ import type {
|
|
|
24
24
|
ThreadRuntimeCore,
|
|
25
25
|
} from "../../runtime/interfaces/thread-runtime-core";
|
|
26
26
|
import { BaseThreadRuntimeCore } from "../../runtime/base/base-thread-runtime-core";
|
|
27
|
-
import type { ModelContextProvider } from "../../model-context";
|
|
27
|
+
import type { ModelContextProvider } from "../../model-context/types";
|
|
28
28
|
import {
|
|
29
29
|
ExportedMessageRepository,
|
|
30
30
|
MessageRepository,
|
package/src/runtimes/internal.ts
CHANGED
|
@@ -17,6 +17,9 @@ export {
|
|
|
17
17
|
export { ThreadMessageConverter } from "./external-store/thread-message-converter";
|
|
18
18
|
export type { ConverterCallback } from "./external-store/thread-message-converter";
|
|
19
19
|
|
|
20
|
+
// Readonly Runtime
|
|
21
|
+
export { ReadonlyThreadRuntimeCore } from "./readonly/ReadonlyThreadRuntimeCore";
|
|
22
|
+
|
|
20
23
|
// Remote Thread List
|
|
21
24
|
export { OptimisticState } from "./remote-thread-list/optimistic-state";
|
|
22
25
|
export { EMPTY_THREAD_CORE } from "./remote-thread-list/empty-thread-core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ThreadListRuntimeCore } from "../../runtime/interfaces/thread-list-runtime-core";
|
|
2
|
-
import { BaseSubscribable } from "../../subscribable";
|
|
2
|
+
import { BaseSubscribable } from "../../subscribable/subscribable";
|
|
3
3
|
import type { LocalThreadRuntimeCore } from "./local-thread-runtime-core";
|
|
4
4
|
|
|
5
5
|
export type LocalThreadFactory = () => LocalThreadRuntimeCore;
|
|
@@ -16,11 +16,11 @@ import type {
|
|
|
16
16
|
} from "../../runtime/interfaces/thread-runtime-core";
|
|
17
17
|
import { BaseThreadRuntimeCore } from "../../runtime/base/base-thread-runtime-core";
|
|
18
18
|
import type {
|
|
19
|
-
RunConfig,
|
|
20
19
|
AppendMessage,
|
|
21
20
|
ThreadAssistantMessage,
|
|
22
|
-
} from "../../types";
|
|
23
|
-
import type {
|
|
21
|
+
} from "../../types/message";
|
|
22
|
+
import type { RunConfig } from "../../types/message";
|
|
23
|
+
import type { ModelContextProvider } from "../../model-context/types";
|
|
24
24
|
|
|
25
25
|
class AbortError extends Error {
|
|
26
26
|
override name = "AbortError";
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import type { Unsubscribe } from "../../types/unsubscribe";
|
|
2
|
+
import type { ThreadMessage } from "../../types/message";
|
|
3
|
+
import type { ThreadRuntimeCore } from "../../runtime/interfaces/thread-runtime-core";
|
|
4
|
+
import { BaseSubscribable } from "../../subscribable/subscribable";
|
|
5
|
+
|
|
6
|
+
const READONLY_THREAD_ERROR = new Error(
|
|
7
|
+
"This is a readonly thread. You cannot perform mutations on readonly threads.",
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
export class ReadonlyThreadRuntimeCore
|
|
11
|
+
extends BaseSubscribable
|
|
12
|
+
implements ThreadRuntimeCore
|
|
13
|
+
{
|
|
14
|
+
private _messages: readonly ThreadMessage[] = [];
|
|
15
|
+
|
|
16
|
+
get messages() {
|
|
17
|
+
return this._messages;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
setMessages(messages: readonly ThreadMessage[]) {
|
|
21
|
+
if (this._messages === messages) return;
|
|
22
|
+
this._messages = messages;
|
|
23
|
+
this._notifySubscribers();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
getMessageById(messageId: string) {
|
|
27
|
+
const idx = this._messages.findIndex((m) => m.id === messageId);
|
|
28
|
+
if (idx === -1) return undefined;
|
|
29
|
+
return {
|
|
30
|
+
parentId: this._messages[idx - 1]?.id ?? null,
|
|
31
|
+
message: this._messages[idx]!,
|
|
32
|
+
index: idx,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
getBranches(messageId: string) {
|
|
37
|
+
// no branching in readonly threads
|
|
38
|
+
const idx = this._messages.findIndex((m) => m.id === messageId);
|
|
39
|
+
if (idx === -1) return [];
|
|
40
|
+
return [messageId];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
switchToBranch(): void {
|
|
44
|
+
throw READONLY_THREAD_ERROR;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
append(): void {
|
|
48
|
+
throw READONLY_THREAD_ERROR;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
startRun(): void {
|
|
52
|
+
throw READONLY_THREAD_ERROR;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
resumeRun(): void {
|
|
56
|
+
throw READONLY_THREAD_ERROR;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
cancelRun(): void {
|
|
60
|
+
// noop - nothing to cancel
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
addToolResult(): void {
|
|
64
|
+
throw READONLY_THREAD_ERROR;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
resumeToolCall(): void {
|
|
68
|
+
throw READONLY_THREAD_ERROR;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
speak(): void {
|
|
72
|
+
throw READONLY_THREAD_ERROR;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
stopSpeaking(): void {
|
|
76
|
+
// noop
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
submitFeedback(): void {
|
|
80
|
+
throw READONLY_THREAD_ERROR;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
getModelContext() {
|
|
84
|
+
return {};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
exportExternalState() {
|
|
88
|
+
throw READONLY_THREAD_ERROR;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
importExternalState(): void {
|
|
92
|
+
throw READONLY_THREAD_ERROR;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
unstable_loadExternalState(): void {
|
|
96
|
+
throw READONLY_THREAD_ERROR;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
composer = {
|
|
100
|
+
attachments: [] as never[],
|
|
101
|
+
attachmentAccept: "*",
|
|
102
|
+
|
|
103
|
+
async addAttachment() {
|
|
104
|
+
throw READONLY_THREAD_ERROR;
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
async removeAttachment() {
|
|
108
|
+
throw READONLY_THREAD_ERROR;
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
isEditing: false as const,
|
|
112
|
+
canCancel: false,
|
|
113
|
+
isEmpty: true,
|
|
114
|
+
text: "",
|
|
115
|
+
|
|
116
|
+
setText() {
|
|
117
|
+
throw READONLY_THREAD_ERROR;
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
role: "user" as const,
|
|
121
|
+
|
|
122
|
+
setRole() {
|
|
123
|
+
throw READONLY_THREAD_ERROR;
|
|
124
|
+
},
|
|
125
|
+
|
|
126
|
+
runConfig: {},
|
|
127
|
+
|
|
128
|
+
setRunConfig() {
|
|
129
|
+
throw READONLY_THREAD_ERROR;
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
async reset() {
|
|
133
|
+
// noop
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
async clearAttachments() {
|
|
137
|
+
// noop
|
|
138
|
+
},
|
|
139
|
+
|
|
140
|
+
send() {
|
|
141
|
+
throw READONLY_THREAD_ERROR;
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
cancel() {
|
|
145
|
+
// noop
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
dictation: undefined,
|
|
149
|
+
|
|
150
|
+
startDictation() {
|
|
151
|
+
throw READONLY_THREAD_ERROR;
|
|
152
|
+
},
|
|
153
|
+
|
|
154
|
+
stopDictation() {
|
|
155
|
+
// noop
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
quote: undefined,
|
|
159
|
+
|
|
160
|
+
setQuote() {
|
|
161
|
+
throw READONLY_THREAD_ERROR;
|
|
162
|
+
},
|
|
163
|
+
|
|
164
|
+
subscribe() {
|
|
165
|
+
return () => {};
|
|
166
|
+
},
|
|
167
|
+
|
|
168
|
+
unstable_on() {
|
|
169
|
+
return () => {};
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
getEditComposer() {
|
|
174
|
+
return undefined;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
beginEdit(): void {
|
|
178
|
+
throw READONLY_THREAD_ERROR;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
speech = undefined;
|
|
182
|
+
|
|
183
|
+
capabilities = {
|
|
184
|
+
switchToBranch: false,
|
|
185
|
+
switchBranchDuringRun: false,
|
|
186
|
+
edit: false,
|
|
187
|
+
reload: false,
|
|
188
|
+
cancel: false,
|
|
189
|
+
unstable_copy: false,
|
|
190
|
+
speech: false,
|
|
191
|
+
dictation: false,
|
|
192
|
+
attachments: false,
|
|
193
|
+
feedback: false,
|
|
194
|
+
} as const;
|
|
195
|
+
|
|
196
|
+
isDisabled = false;
|
|
197
|
+
isLoading = false;
|
|
198
|
+
|
|
199
|
+
state = null;
|
|
200
|
+
suggestions = [] as never[];
|
|
201
|
+
extras = undefined;
|
|
202
|
+
|
|
203
|
+
import(): void {
|
|
204
|
+
throw READONLY_THREAD_ERROR;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export() {
|
|
208
|
+
return {
|
|
209
|
+
messages: this._messages.map((message, idx) => ({
|
|
210
|
+
message,
|
|
211
|
+
parentId: this._messages[idx - 1]?.id ?? null,
|
|
212
|
+
})),
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
reset(): void {
|
|
217
|
+
throw READONLY_THREAD_ERROR;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
unstable_on(): Unsubscribe {
|
|
221
|
+
return () => {};
|
|
222
|
+
}
|
|
223
|
+
}
|
|
@@ -4,7 +4,7 @@ import type {
|
|
|
4
4
|
ChainOfThoughtState,
|
|
5
5
|
ChainOfThoughtPart,
|
|
6
6
|
} from "../scopes/chain-of-thought";
|
|
7
|
-
import type { MessagePartStatus } from "../../types";
|
|
7
|
+
import type { MessagePartStatus } from "../../types/message";
|
|
8
8
|
import type { PartMethods } from "../scopes/part";
|
|
9
9
|
|
|
10
10
|
const COMPLETE_STATUS: MessagePartStatus = Object.freeze({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resource, tapMemo, tapState } from "@assistant-ui/tap";
|
|
2
2
|
import type { ClientOutput } from "@assistant-ui/store";
|
|
3
|
-
import { CompositeContextProvider } from "../../utils";
|
|
4
|
-
import type { ModelContextState } from "../scopes";
|
|
3
|
+
import { CompositeContextProvider } from "../../utils/composite-context-provider";
|
|
4
|
+
import type { ModelContextState } from "../scopes/model-context";
|
|
5
5
|
|
|
6
6
|
const version = 1;
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resource, tapMemo } from "@assistant-ui/tap";
|
|
2
2
|
import type { ClientOutput } from "@assistant-ui/store";
|
|
3
|
-
import type { ComposerState } from "../scopes";
|
|
3
|
+
import type { ComposerState } from "../scopes/composer";
|
|
4
4
|
|
|
5
5
|
export const NoOpComposerClient = resource(
|
|
6
6
|
({ type }: { type: "edit" | "thread" }): ClientOutput<"composer"> => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resource, tapEffect, tapResource } from "@assistant-ui/tap";
|
|
2
2
|
import type { AssistantRuntime } from "../../runtime/api/assistant-runtime";
|
|
3
|
-
import { ThreadListClient } from "../runtime-clients";
|
|
3
|
+
import { ThreadListClient } from "../runtime-clients/thread-list-runtime-client";
|
|
4
4
|
import {
|
|
5
5
|
tapAssistantClientRef,
|
|
6
6
|
Derived,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { resource, tapState, withKey } from "@assistant-ui/tap";
|
|
2
2
|
import type { ClientOutput } from "@assistant-ui/store";
|
|
3
3
|
import { tapClientLookup } from "@assistant-ui/store";
|
|
4
|
-
import type { SuggestionsState
|
|
4
|
+
import type { SuggestionsState } from "../scopes/suggestions";
|
|
5
|
+
import type { SuggestionState } from "../scopes/suggestion";
|
|
5
6
|
|
|
6
7
|
export type SuggestionConfig =
|
|
7
8
|
| string
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
ThreadAssistantMessagePart,
|
|
3
3
|
ThreadUserMessagePart,
|
|
4
|
-
Attachment,
|
|
5
4
|
ThreadMessage,
|
|
6
|
-
} from "../../types";
|
|
5
|
+
} from "../../types/message";
|
|
6
|
+
import type { Attachment } from "../../types/attachment";
|
|
7
7
|
import {
|
|
8
8
|
resource,
|
|
9
9
|
tapMemo,
|
|
@@ -13,7 +13,8 @@ import {
|
|
|
13
13
|
} from "@assistant-ui/tap";
|
|
14
14
|
import type { ClientOutput } from "@assistant-ui/store";
|
|
15
15
|
import { tapClientLookup } from "@assistant-ui/store";
|
|
16
|
-
import type { MessageState
|
|
16
|
+
import type { MessageState } from "../scopes/message";
|
|
17
|
+
import type { PartState } from "../scopes/part";
|
|
17
18
|
import { NoOpComposerClient } from "./no-op-composer-client";
|
|
18
19
|
|
|
19
20
|
const ThreadMessagePartClient = resource(
|