@assistant-ui/core 0.2.20 → 0.2.21
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 +2 -2
- package/dist/adapters/attachment.d.ts.map +1 -1
- package/dist/adapters/attachment.js +14 -7
- package/dist/adapters/attachment.js.map +1 -1
- package/dist/adapters/directive-formatter.d.ts +0 -1
- package/dist/adapters/directive-formatter.d.ts.map +1 -1
- package/dist/adapters/feedback.d.ts +0 -1
- package/dist/adapters/feedback.d.ts.map +1 -1
- package/dist/adapters/index.d.ts +2 -2
- package/dist/adapters/index.js +2 -1
- package/dist/adapters/speech.d.ts +0 -1
- package/dist/adapters/speech.d.ts.map +1 -1
- package/dist/adapters/suggestion.d.ts +16 -2
- package/dist/adapters/suggestion.d.ts.map +1 -1
- package/dist/adapters/suggestion.js +36 -0
- package/dist/adapters/suggestion.js.map +1 -0
- package/dist/adapters/thread-history.d.ts +2 -2
- package/dist/adapters/thread-history.d.ts.map +1 -1
- package/dist/adapters/trigger.d.ts +5 -3
- package/dist/adapters/trigger.d.ts.map +1 -1
- package/dist/adapters/voice.d.ts +0 -1
- package/dist/adapters/voice.d.ts.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/duplicate-detection.d.ts.map +1 -1
- package/dist/internal.d.ts +7 -1
- package/dist/internal.js +6 -2
- package/dist/model-context/frame/host.d.ts +0 -1
- package/dist/model-context/frame/host.d.ts.map +1 -1
- package/dist/model-context/frame/provider.d.ts +0 -1
- package/dist/model-context/frame/provider.d.ts.map +1 -1
- package/dist/model-context/frame/types.d.ts.map +1 -1
- package/dist/model-context/interactable-composer-metadata.d.ts +4 -2
- package/dist/model-context/interactable-composer-metadata.d.ts.map +1 -1
- package/dist/model-context/registry-handles.d.ts +0 -1
- package/dist/model-context/registry-handles.d.ts.map +1 -1
- package/dist/model-context/registry.d.ts +0 -1
- package/dist/model-context/registry.d.ts.map +1 -1
- package/dist/model-context/tool.d.ts +23 -9
- package/dist/model-context/tool.d.ts.map +1 -1
- package/dist/model-context/tool.js +0 -25
- package/dist/model-context/tool.js.map +1 -1
- package/dist/model-context/types.d.ts +0 -1
- package/dist/model-context/types.d.ts.map +1 -1
- package/dist/react/AssistantProvider.d.ts +0 -1
- package/dist/react/AssistantProvider.d.ts.map +1 -1
- package/dist/react/AssistantRuntimeProvider.d.ts +1 -6
- package/dist/react/AssistantRuntimeProvider.d.ts.map +1 -1
- package/dist/react/RuntimeAdapter.d.ts +1 -0
- package/dist/react/RuntimeAdapter.d.ts.map +1 -1
- package/dist/react/adapters/LocalStorageThreadListAdapter.d.ts +13 -2
- package/dist/react/adapters/LocalStorageThreadListAdapter.d.ts.map +1 -1
- package/dist/react/adapters/LocalStorageThreadListAdapter.js +122 -7
- package/dist/react/adapters/LocalStorageThreadListAdapter.js.map +1 -1
- package/dist/react/adapters/TitleGenerationAdapter.d.ts +0 -1
- package/dist/react/adapters/TitleGenerationAdapter.d.ts.map +1 -1
- package/dist/react/client/DataRenderers.d.ts +0 -1
- package/dist/react/client/DataRenderers.d.ts.map +1 -1
- package/dist/react/client/Interactables.d.ts +0 -1
- package/dist/react/client/Interactables.d.ts.map +1 -1
- package/dist/react/client/Tools.d.ts +3 -2
- package/dist/react/client/Tools.d.ts.map +1 -1
- package/dist/react/client/interactable-model-context.d.ts +0 -1
- package/dist/react/client/interactable-model-context.d.ts.map +1 -1
- package/dist/react/index.d.ts +2 -2
- package/dist/react/interactables-legacy/Interactables.d.ts +0 -1
- package/dist/react/interactables-legacy/Interactables.d.ts.map +1 -1
- package/dist/react/interactables-legacy/interactable-model-context.d.ts +0 -1
- package/dist/react/interactables-legacy/interactable-model-context.d.ts.map +1 -1
- package/dist/react/interactables-legacy/scopes.d.ts +4 -2
- package/dist/react/interactables-legacy/scopes.d.ts.map +1 -1
- package/dist/react/interactables-legacy/useAssistantInteractable.d.ts +0 -1
- package/dist/react/interactables-legacy/useAssistantInteractable.d.ts.map +1 -1
- package/dist/react/interactables-legacy/useInteractableState.d.ts.map +1 -1
- package/dist/react/model-context/define-mcp-toolkit.d.ts +19 -4
- package/dist/react/model-context/define-mcp-toolkit.d.ts.map +1 -1
- package/dist/react/model-context/define-mcp-toolkit.js +17 -5
- package/dist/react/model-context/define-mcp-toolkit.js.map +1 -1
- package/dist/react/model-context/define-toolkit.d.ts +1 -2
- package/dist/react/model-context/define-toolkit.d.ts.map +1 -1
- package/dist/react/model-context/external-tool.d.ts.map +1 -1
- package/dist/react/model-context/human-tool.d.ts.map +1 -1
- package/dist/react/model-context/interactableTool.d.ts +2 -2
- package/dist/react/model-context/interactableTool.d.ts.map +1 -1
- package/dist/react/model-context/makeAssistantDataUI.d.ts +2 -2
- package/dist/react/model-context/makeAssistantDataUI.d.ts.map +1 -1
- package/dist/react/model-context/makeAssistantTool.d.ts +2 -2
- package/dist/react/model-context/makeAssistantTool.d.ts.map +1 -1
- package/dist/react/model-context/makeAssistantToolUI.d.ts +2 -2
- package/dist/react/model-context/makeAssistantToolUI.d.ts.map +1 -1
- package/dist/react/model-context/provider-tool.d.ts +0 -1
- package/dist/react/model-context/provider-tool.d.ts.map +1 -1
- package/dist/react/model-context/stub-tool.d.ts.map +1 -1
- package/dist/react/model-context/toolbox.d.ts +5 -5
- package/dist/react/model-context/toolbox.d.ts.map +1 -1
- package/dist/react/model-context/useAssistantContext.d.ts +1 -0
- package/dist/react/model-context/useAssistantContext.d.ts.map +1 -1
- package/dist/react/model-context/useAssistantDataUI.d.ts +3 -2
- package/dist/react/model-context/useAssistantDataUI.d.ts.map +1 -1
- package/dist/react/model-context/useAssistantInstructions.d.ts +1 -0
- package/dist/react/model-context/useAssistantInstructions.d.ts.map +1 -1
- package/dist/react/model-context/useAssistantTool.d.ts +4 -2
- package/dist/react/model-context/useAssistantTool.d.ts.map +1 -1
- package/dist/react/model-context/useAssistantToolUI.d.ts +3 -2
- package/dist/react/model-context/useAssistantToolUI.d.ts.map +1 -1
- package/dist/react/model-context/useAuiToolOverrides.d.ts +0 -1
- package/dist/react/model-context/useAuiToolOverrides.d.ts.map +1 -1
- package/dist/react/model-context/useInlineRender.d.ts +0 -1
- package/dist/react/model-context/useInlineRender.d.ts.map +1 -1
- package/dist/react/model-context/useInteractable.d.ts +7 -4
- package/dist/react/model-context/useInteractable.d.ts.map +1 -1
- package/dist/react/model-context/useInteractableState.d.ts.map +1 -1
- package/dist/react/model-context/useInteractableVersions.d.ts +0 -1
- package/dist/react/model-context/useInteractableVersions.d.ts.map +1 -1
- package/dist/react/model-context/useToolArgsStatus.d.ts +3 -1
- package/dist/react/model-context/useToolArgsStatus.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useActionBarCopy.d.ts +1 -4
- package/dist/react/primitive-hooks/useActionBarCopy.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useActionBarEdit.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useActionBarFeedback.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useActionBarReload.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useActionBarSpeak.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useActionBarStopSpeaking.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useBranchPickerNext.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useBranchPickerPrevious.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useComposerAddAttachment.d.ts +0 -1
- package/dist/react/primitive-hooks/useComposerAddAttachment.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useComposerCancel.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useComposerDictate.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useComposerSend.d.ts +0 -1
- package/dist/react/primitive-hooks/useComposerSend.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useEditComposerCancel.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useEditComposerSend.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useMessageBranching.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useMessageError.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useMessageError.js +5 -1
- package/dist/react/primitive-hooks/useMessageError.js.map +1 -1
- package/dist/react/primitive-hooks/useMessageReload.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useSuggestionTrigger.d.ts +1 -5
- package/dist/react/primitive-hooks/useSuggestionTrigger.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadIsEmpty.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadIsRunning.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadListItemArchive.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadListItemDelete.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadListItemTrigger.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadListItemUnarchive.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadListLoadMore.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadListNew.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadMessageIds.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadMessages.d.ts +0 -1
- package/dist/react/primitive-hooks/useThreadMessages.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useVoice.d.ts +0 -1
- package/dist/react/primitive-hooks/useVoice.d.ts.map +1 -1
- package/dist/react/primitives/chainOfThought/ChainOfThoughtParts.d.ts +7 -4
- package/dist/react/primitives/chainOfThought/ChainOfThoughtParts.d.ts.map +1 -1
- package/dist/react/primitives/composer/ComposerAttachments.d.ts +4 -3
- package/dist/react/primitives/composer/ComposerAttachments.d.ts.map +1 -1
- package/dist/react/primitives/composer/ComposerIf.d.ts +4 -3
- package/dist/react/primitives/composer/ComposerIf.d.ts.map +1 -1
- package/dist/react/primitives/composer/ComposerQueue.d.ts +2 -2
- package/dist/react/primitives/composer/ComposerQueue.d.ts.map +1 -1
- package/dist/react/primitives/generativeUI/GenerativeUI.d.ts +2 -2
- package/dist/react/primitives/generativeUI/GenerativeUI.d.ts.map +1 -1
- package/dist/react/primitives/message/MessageAttachments.d.ts +4 -3
- package/dist/react/primitives/message/MessageAttachments.d.ts.map +1 -1
- package/dist/react/primitives/message/MessageGroupedParts.d.ts +1 -6
- package/dist/react/primitives/message/MessageGroupedParts.d.ts.map +1 -1
- package/dist/react/primitives/message/MessageParts.d.ts +42 -24
- package/dist/react/primitives/message/MessageParts.d.ts.map +1 -1
- package/dist/react/primitives/message/MessageParts.js +2 -1
- package/dist/react/primitives/message/MessageParts.js.map +1 -1
- package/dist/react/primitives/message/MessageQuote.d.ts +2 -2
- package/dist/react/primitives/message/MessageQuote.d.ts.map +1 -1
- package/dist/react/primitives/messagePart/MessagePartInProgress.d.ts +0 -1
- package/dist/react/primitives/messagePart/MessagePartInProgress.d.ts.map +1 -1
- package/dist/react/primitives/part/PartMessages.d.ts +2 -2
- package/dist/react/primitives/part/PartMessages.d.ts.map +1 -1
- package/dist/react/primitives/thread/ThreadMessages.d.ts +35 -17
- package/dist/react/primitives/thread/ThreadMessages.d.ts.map +1 -1
- package/dist/react/primitives/thread/ThreadSuggestions.d.ts +6 -4
- package/dist/react/primitives/thread/ThreadSuggestions.d.ts.map +1 -1
- package/dist/react/primitives/threadList/ThreadListItems.d.ts +4 -3
- package/dist/react/primitives/threadList/ThreadListItems.d.ts.map +1 -1
- package/dist/react/primitives/threadListItem/ThreadListItemTitle.d.ts +0 -1
- package/dist/react/primitives/threadListItem/ThreadListItemTitle.d.ts.map +1 -1
- package/dist/react/providers/AttachmentByIndexProvider.d.ts +0 -1
- package/dist/react/providers/AttachmentByIndexProvider.d.ts.map +1 -1
- package/dist/react/providers/ChainOfThoughtByIndicesProvider.d.ts +0 -1
- package/dist/react/providers/ChainOfThoughtByIndicesProvider.d.ts.map +1 -1
- package/dist/react/providers/ChainOfThoughtPartByIndexProvider.d.ts +0 -1
- package/dist/react/providers/ChainOfThoughtPartByIndexProvider.d.ts.map +1 -1
- package/dist/react/providers/MessageByIdProvider.d.ts +0 -1
- package/dist/react/providers/MessageByIdProvider.d.ts.map +1 -1
- package/dist/react/providers/MessageByIndexProvider.d.ts +0 -1
- package/dist/react/providers/MessageByIndexProvider.d.ts.map +1 -1
- package/dist/react/providers/PartByIndexProvider.d.ts +0 -1
- package/dist/react/providers/PartByIndexProvider.d.ts.map +1 -1
- package/dist/react/providers/QueueItemByIndexProvider.d.ts +0 -1
- package/dist/react/providers/QueueItemByIndexProvider.d.ts.map +1 -1
- package/dist/react/providers/ReadonlyThreadProvider.d.ts +0 -1
- package/dist/react/providers/ReadonlyThreadProvider.d.ts.map +1 -1
- package/dist/react/providers/SuggestionByIndexProvider.d.ts +0 -1
- package/dist/react/providers/SuggestionByIndexProvider.d.ts.map +1 -1
- package/dist/react/providers/TextMessagePartProvider.d.ts +0 -1
- package/dist/react/providers/TextMessagePartProvider.d.ts.map +1 -1
- package/dist/react/providers/ThreadListItemByIndexProvider.d.ts +0 -1
- package/dist/react/providers/ThreadListItemByIndexProvider.d.ts.map +1 -1
- package/dist/react/providers/ThreadListItemRuntimeProvider.d.ts +1 -1
- package/dist/react/providers/ThreadListItemRuntimeProvider.d.ts.map +1 -1
- package/dist/react/runtimes/RemoteThreadListHookInstanceManager.d.ts +2 -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 +3 -1
- package/dist/react/runtimes/RemoteThreadListThreadListRuntimeCore.d.ts.map +1 -1
- package/dist/react/runtimes/RemoteThreadListThreadListRuntimeCore.js +21 -19
- package/dist/react/runtimes/RemoteThreadListThreadListRuntimeCore.js.map +1 -1
- package/dist/react/runtimes/RuntimeAdapterProvider.d.ts +0 -1
- package/dist/react/runtimes/RuntimeAdapterProvider.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/AssistantCloudThreadHistoryAdapter.d.ts +0 -1
- package/dist/react/runtimes/cloud/AssistantCloudThreadHistoryAdapter.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/CloudFileAttachmentAdapter.d.ts +1 -4
- package/dist/react/runtimes/cloud/CloudFileAttachmentAdapter.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/CloudFileAttachmentAdapter.js +6 -3
- package/dist/react/runtimes/cloud/CloudFileAttachmentAdapter.js.map +1 -1
- package/dist/react/runtimes/cloud/auiV0.d.ts +12 -2
- package/dist/react/runtimes/cloud/auiV0.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/auiV0.js +30 -1
- package/dist/react/runtimes/cloud/auiV0.js.map +1 -1
- package/dist/react/runtimes/cloud/useCloudThreadListAdapter.d.ts +0 -1
- package/dist/react/runtimes/cloud/useCloudThreadListAdapter.d.ts.map +1 -1
- package/dist/react/runtimes/createMessageConverter.d.ts +1 -7
- package/dist/react/runtimes/createMessageConverter.d.ts.map +1 -1
- package/dist/react/runtimes/createRuntimeExtras.d.ts +0 -1
- package/dist/react/runtimes/createRuntimeExtras.d.ts.map +1 -1
- package/dist/react/runtimes/external-message-converter.d.ts +1 -8
- package/dist/react/runtimes/external-message-converter.d.ts.map +1 -1
- package/dist/react/runtimes/external-message-converter.js +42 -44
- package/dist/react/runtimes/external-message-converter.js.map +1 -1
- package/dist/react/runtimes/useExternalStoreRuntime.d.ts +0 -1
- package/dist/react/runtimes/useExternalStoreRuntime.d.ts.map +1 -1
- package/dist/react/runtimes/useExternalStoreSharedOptions.d.ts +0 -1
- package/dist/react/runtimes/useExternalStoreSharedOptions.d.ts.map +1 -1
- package/dist/react/runtimes/useLocalRuntime.d.ts +2 -5
- package/dist/react/runtimes/useLocalRuntime.d.ts.map +1 -1
- package/dist/react/runtimes/useRemoteThreadListRuntime.d.ts +0 -1
- package/dist/react/runtimes/useRemoteThreadListRuntime.d.ts.map +1 -1
- package/dist/react/runtimes/useStreamingTiming.d.ts +0 -1
- package/dist/react/runtimes/useStreamingTiming.d.ts.map +1 -1
- package/dist/react/types/MessagePartComponentTypes.d.ts +6 -3
- package/dist/react/types/MessagePartComponentTypes.d.ts.map +1 -1
- package/dist/react/types/scopes/dataRenderers.d.ts +1 -1
- package/dist/react/types/scopes/dataRenderers.d.ts.map +1 -1
- package/dist/react/types/scopes/interactables.d.ts +4 -2
- package/dist/react/types/scopes/interactables.d.ts.map +1 -1
- package/dist/react/types/scopes/tools.d.ts +5 -3
- package/dist/react/types/scopes/tools.d.ts.map +1 -1
- package/dist/react/types/store-augmentation.d.ts +1 -2
- package/dist/react/types/store-augmentation.d.ts.map +1 -1
- package/dist/react/utils/getMessageQuote.d.ts +0 -1
- package/dist/react/utils/getMessageQuote.d.ts.map +1 -1
- package/dist/react/utils/groupParts.d.ts +2 -2
- package/dist/react/utils/groupParts.d.ts.map +1 -1
- package/dist/react/utils/useJSONEqual.d.ts.map +1 -1
- package/dist/runtime/api/assistant-runtime.d.ts +0 -1
- package/dist/runtime/api/assistant-runtime.d.ts.map +1 -1
- package/dist/runtime/api/attachment-runtime.d.ts +0 -1
- package/dist/runtime/api/attachment-runtime.d.ts.map +1 -1
- package/dist/runtime/api/bindings.d.ts +0 -1
- package/dist/runtime/api/bindings.d.ts.map +1 -1
- package/dist/runtime/api/composer-runtime.d.ts +6 -4
- package/dist/runtime/api/composer-runtime.d.ts.map +1 -1
- package/dist/runtime/api/message-part-runtime.d.ts +0 -1
- package/dist/runtime/api/message-part-runtime.d.ts.map +1 -1
- package/dist/runtime/api/message-runtime.d.ts +6 -16
- package/dist/runtime/api/message-runtime.d.ts.map +1 -1
- package/dist/runtime/api/message-runtime.js +1 -1
- package/dist/runtime/api/paths.d.ts.map +1 -1
- package/dist/runtime/api/thread-list-item-runtime.d.ts +0 -1
- package/dist/runtime/api/thread-list-item-runtime.d.ts.map +1 -1
- package/dist/runtime/api/thread-list-runtime.d.ts +0 -1
- package/dist/runtime/api/thread-list-runtime.d.ts.map +1 -1
- package/dist/runtime/api/thread-runtime.d.ts +3 -1
- package/dist/runtime/api/thread-runtime.d.ts.map +1 -1
- package/dist/runtime/base/base-assistant-runtime-core.d.ts +0 -1
- package/dist/runtime/base/base-assistant-runtime-core.d.ts.map +1 -1
- package/dist/runtime/base/base-composer-runtime-core.d.ts +0 -1
- package/dist/runtime/base/base-composer-runtime-core.d.ts.map +1 -1
- package/dist/runtime/base/base-composer-runtime-core.js +17 -3
- package/dist/runtime/base/base-composer-runtime-core.js.map +1 -1
- package/dist/runtime/base/base-thread-runtime-core.d.ts +2 -4
- package/dist/runtime/base/base-thread-runtime-core.d.ts.map +1 -1
- package/dist/runtime/base/base-thread-runtime-core.js +1 -1
- package/dist/runtime/base/default-edit-composer-runtime-core.d.ts +1 -5
- 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 -0
- package/dist/runtime/base/default-thread-composer-runtime-core.d.ts.map +1 -1
- package/dist/runtime/branch/external-thread-branch-adapter.d.ts.map +1 -1
- package/dist/runtime/interfaces/assistant-runtime-core.d.ts +0 -1
- package/dist/runtime/interfaces/assistant-runtime-core.d.ts.map +1 -1
- package/dist/runtime/interfaces/composer-runtime-core.d.ts +2 -2
- package/dist/runtime/interfaces/composer-runtime-core.d.ts.map +1 -1
- package/dist/runtime/interfaces/thread-list-runtime-core.d.ts +0 -1
- package/dist/runtime/interfaces/thread-list-runtime-core.d.ts.map +1 -1
- package/dist/runtime/interfaces/thread-runtime-core.d.ts +2 -2
- package/dist/runtime/interfaces/thread-runtime-core.d.ts.map +1 -1
- package/dist/runtime/queue/external-thread-queue-adapter.d.ts +0 -1
- package/dist/runtime/queue/external-thread-queue-adapter.d.ts.map +1 -1
- package/dist/runtime/queue/message-queue.d.ts +6 -4
- package/dist/runtime/queue/message-queue.d.ts.map +1 -1
- package/dist/runtime/queue/message-queue.js +1 -1
- package/dist/runtime/utils/auto-status.d.ts +0 -1
- package/dist/runtime/utils/auto-status.d.ts.map +1 -1
- package/dist/runtime/utils/chat-model-adapter.d.ts +0 -1
- package/dist/runtime/utils/chat-model-adapter.d.ts.map +1 -1
- package/dist/runtime/utils/external-store-message.d.ts +0 -1
- package/dist/runtime/utils/external-store-message.d.ts.map +1 -1
- package/dist/runtime/utils/message-repository.d.ts +1 -5
- package/dist/runtime/utils/message-repository.d.ts.map +1 -1
- package/dist/runtime/utils/message-repository.js +3 -1
- package/dist/runtime/utils/message-repository.js.map +1 -1
- package/dist/runtime/utils/resolveToolApprovalResponse.d.ts +0 -1
- package/dist/runtime/utils/resolveToolApprovalResponse.d.ts.map +1 -1
- package/dist/runtime/utils/streaming-timing.d.ts +5 -3
- package/dist/runtime/utils/streaming-timing.d.ts.map +1 -1
- package/dist/runtime/utils/thread-message-like.d.ts +2 -2
- 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/assistant-transport/utils.d.ts.map +1 -1
- package/dist/runtimes/external-store/external-store-adapter.d.ts +2 -2
- package/dist/runtimes/external-store/external-store-adapter.d.ts.map +1 -1
- package/dist/runtimes/external-store/external-store-runtime-core.d.ts +0 -1
- package/dist/runtimes/external-store/external-store-runtime-core.d.ts.map +1 -1
- package/dist/runtimes/external-store/external-store-shared-options.d.ts +0 -1
- package/dist/runtimes/external-store/external-store-shared-options.d.ts.map +1 -1
- package/dist/runtimes/external-store/external-store-thread-list-runtime-core.d.ts +0 -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 -0
- package/dist/runtimes/external-store/external-store-thread-runtime-core.d.ts.map +1 -1
- package/dist/runtimes/external-store/external-store-thread-runtime-core.js +1 -1
- package/dist/runtimes/external-store/thread-message-converter.d.ts +0 -1
- package/dist/runtimes/external-store/thread-message-converter.d.ts.map +1 -1
- package/dist/runtimes/local/local-runtime-core.d.ts +0 -1
- package/dist/runtimes/local/local-runtime-core.d.ts.map +1 -1
- package/dist/runtimes/local/local-runtime-options.d.ts +0 -1
- package/dist/runtimes/local/local-runtime-options.d.ts.map +1 -1
- package/dist/runtimes/local/local-thread-list-runtime-core.d.ts +0 -1
- package/dist/runtimes/local/local-thread-list-runtime-core.d.ts.map +1 -1
- package/dist/runtimes/local/local-thread-runtime-core.d.ts +5 -21
- package/dist/runtimes/local/local-thread-runtime-core.d.ts.map +1 -1
- package/dist/runtimes/local/local-thread-runtime-core.js +24 -15
- package/dist/runtimes/local/local-thread-runtime-core.js.map +1 -1
- package/dist/runtimes/local/should-continue.d.ts +0 -1
- package/dist/runtimes/local/should-continue.d.ts.map +1 -1
- package/dist/runtimes/local/should-continue.js +2 -2
- package/dist/runtimes/local/should-continue.js.map +1 -1
- package/dist/runtimes/readonly/ReadonlyThreadRuntimeCore.d.ts +0 -1
- package/dist/runtimes/readonly/ReadonlyThreadRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/remote-thread-list/adapter/in-memory.d.ts +1 -2
- package/dist/runtimes/remote-thread-list/adapter/in-memory.d.ts.map +1 -1
- package/dist/runtimes/remote-thread-list/adapter/in-memory.js +5 -3
- package/dist/runtimes/remote-thread-list/adapter/in-memory.js.map +1 -1
- package/dist/runtimes/remote-thread-list/empty-thread-core.d.ts +0 -1
- package/dist/runtimes/remote-thread-list/empty-thread-core.d.ts.map +1 -1
- package/dist/runtimes/remote-thread-list/optimistic-state.d.ts +6 -4
- package/dist/runtimes/remote-thread-list/optimistic-state.d.ts.map +1 -1
- package/dist/runtimes/remote-thread-list/remote-thread-state.d.ts +0 -1
- package/dist/runtimes/remote-thread-list/remote-thread-state.d.ts.map +1 -1
- package/dist/runtimes/remote-thread-list/types.d.ts +0 -1
- package/dist/runtimes/remote-thread-list/types.d.ts.map +1 -1
- package/dist/runtimes/tool-invocations/ToolInvocationTracker.d.ts +2 -2
- package/dist/runtimes/tool-invocations/ToolInvocationTracker.d.ts.map +1 -1
- package/dist/store/clients/chain-of-thought-client.d.ts +0 -1
- package/dist/store/clients/chain-of-thought-client.d.ts.map +1 -1
- package/dist/store/clients/model-context-client.d.ts +0 -1
- package/dist/store/clients/model-context-client.d.ts.map +1 -1
- package/dist/store/clients/no-op-composer-client.d.ts +0 -1
- package/dist/store/clients/no-op-composer-client.d.ts.map +1 -1
- package/dist/store/clients/runtime-adapter.d.ts +0 -1
- package/dist/store/clients/runtime-adapter.d.ts.map +1 -1
- package/dist/store/clients/suggestions.d.ts +0 -1
- package/dist/store/clients/suggestions.d.ts.map +1 -1
- package/dist/store/clients/thread-message-client.d.ts +0 -1
- package/dist/store/clients/thread-message-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/attachment-runtime-client.d.ts +0 -1
- package/dist/store/runtime-clients/attachment-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/composer-runtime-client.d.ts +0 -1
- package/dist/store/runtime-clients/composer-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/liveRef.d.ts.map +1 -1
- package/dist/store/runtime-clients/message-part-runtime-client.d.ts +0 -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 +0 -1
- package/dist/store/runtime-clients/message-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/thread-list-item-runtime-client.d.ts +0 -1
- package/dist/store/runtime-clients/thread-list-item-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/thread-list-runtime-client.d.ts +0 -1
- package/dist/store/runtime-clients/thread-list-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/thread-runtime-client.d.ts +0 -1
- package/dist/store/runtime-clients/thread-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/useSubscribable.d.ts +0 -1
- package/dist/store/runtime-clients/useSubscribable.d.ts.map +1 -1
- package/dist/store/scope-registration.d.ts +1 -2
- package/dist/store/scope-registration.d.ts.map +1 -1
- package/dist/store/scopes/attachment.d.ts +0 -1
- package/dist/store/scopes/attachment.d.ts.map +1 -1
- package/dist/store/scopes/chain-of-thought.d.ts +0 -1
- package/dist/store/scopes/chain-of-thought.d.ts.map +1 -1
- package/dist/store/scopes/composer.d.ts +0 -1
- package/dist/store/scopes/composer.d.ts.map +1 -1
- package/dist/store/scopes/message.d.ts +6 -4
- package/dist/store/scopes/message.d.ts.map +1 -1
- package/dist/store/scopes/model-context.d.ts +0 -1
- package/dist/store/scopes/model-context.d.ts.map +1 -1
- package/dist/store/scopes/part.d.ts +0 -1
- package/dist/store/scopes/part.d.ts.map +1 -1
- package/dist/store/scopes/queue-item.d.ts.map +1 -1
- package/dist/store/scopes/suggestion.d.ts.map +1 -1
- package/dist/store/scopes/suggestions.d.ts +0 -1
- package/dist/store/scopes/suggestions.d.ts.map +1 -1
- package/dist/store/scopes/thread-list-item.d.ts +0 -1
- package/dist/store/scopes/thread-list-item.d.ts.map +1 -1
- package/dist/store/scopes/thread.d.ts +4 -3
- package/dist/store/scopes/thread.d.ts.map +1 -1
- package/dist/store/scopes/threads.d.ts +0 -1
- package/dist/store/scopes/threads.d.ts.map +1 -1
- package/dist/subscribable/subscribable.d.ts +0 -1
- package/dist/subscribable/subscribable.d.ts.map +1 -1
- package/dist/tests/remote-thread-list-test-helpers.d.ts +0 -1
- package/dist/tests/remote-thread-list-test-helpers.d.ts.map +1 -1
- package/dist/types/attachment.d.ts +1 -1
- package/dist/types/attachment.d.ts.map +1 -1
- package/dist/types/directive.d.ts +3 -2
- package/dist/types/directive.d.ts.map +1 -1
- package/dist/types/error.d.ts +15 -0
- package/dist/types/error.d.ts.map +1 -0
- package/dist/types/error.js +46 -0
- package/dist/types/error.js.map +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/message.d.ts +70 -33
- package/dist/types/message.d.ts.map +1 -1
- package/dist/types/message.js.map +1 -1
- package/dist/types/quote.d.ts.map +1 -1
- package/dist/types/trigger.d.ts +0 -1
- package/dist/types/trigger.d.ts.map +1 -1
- package/dist/types/unsubscribe.d.ts.map +1 -1
- package/dist/utils/composite-context-provider.d.ts +1 -0
- package/dist/utils/composite-context-provider.d.ts.map +1 -1
- package/dist/utils/id.d.ts.map +1 -1
- package/dist/utils/json/is-json-equal.d.ts.map +1 -1
- package/dist/utils/json/is-json.d.ts +0 -1
- package/dist/utils/json/is-json.d.ts.map +1 -1
- package/dist/utils/json/is-json.js +1 -1
- package/dist/utils/json/is-json.js.map +1 -1
- package/dist/utils/json/stable-stringify-tool-args.d.ts +7 -0
- package/dist/utils/json/stable-stringify-tool-args.d.ts.map +1 -0
- package/dist/utils/json/stable-stringify-tool-args.js +32 -0
- package/dist/utils/json/stable-stringify-tool-args.js.map +1 -0
- package/dist/utils/text.d.ts +0 -1
- package/dist/utils/text.d.ts.map +1 -1
- package/package.json +12 -9
- package/src/adapters/attachment.test.ts +107 -0
- package/src/adapters/attachment.ts +20 -10
- package/src/adapters/index.ts +6 -1
- package/src/adapters/suggestion.test.ts +187 -0
- package/src/adapters/suggestion.ts +75 -1
- package/src/index.ts +15 -1
- package/src/internal.ts +16 -0
- package/src/model-context/tool.test.ts +110 -0
- package/src/model-context/tool.ts +31 -9
- package/src/react/adapters/LocalStorageThreadListAdapter.test.ts +222 -0
- package/src/react/adapters/LocalStorageThreadListAdapter.tsx +214 -7
- package/src/react/index.ts +2 -0
- package/src/react/model-context/define-mcp-toolkit.ts +39 -6
- package/src/react/model-context/define-toolkit.test.ts +107 -0
- package/src/react/primitive-hooks/useMessageError.test.ts +64 -0
- package/src/react/primitive-hooks/useMessageError.ts +19 -6
- package/src/react/runtimes/RemoteThreadListHookInstanceManager.tsx +3 -1
- package/src/react/runtimes/RemoteThreadListThreadListRuntimeCore.tsx +48 -19
- package/src/react/runtimes/cloud/CloudFileAttachmentAdapter.test.ts +111 -0
- package/src/react/runtimes/cloud/CloudFileAttachmentAdapter.ts +13 -3
- package/src/react/runtimes/cloud/auiV0.ts +71 -2
- package/src/react/runtimes/external-message-converter.test.tsx +102 -0
- package/src/react/runtimes/external-message-converter.ts +35 -10
- package/src/runtime/base/base-composer-runtime-core.ts +26 -7
- package/src/runtime/utils/message-repository.ts +8 -3
- package/src/runtime/utils/thread-message-like.ts +2 -0
- package/src/runtimes/local/local-thread-runtime-core.test.ts +127 -3
- package/src/runtimes/local/local-thread-runtime-core.ts +25 -23
- package/src/runtimes/local/should-continue.ts +5 -2
- package/src/runtimes/remote-thread-list/adapter/in-memory.test.ts +14 -0
- package/src/runtimes/remote-thread-list/adapter/in-memory.ts +13 -5
- package/src/tests/MessageRepository.test.ts +26 -0
- package/src/tests/RemoteThreadListThreadListRuntimeCore-errors.test.ts +42 -0
- package/src/tests/attachment-adapters.test.ts +14 -2
- package/src/tests/auiV0Encode.test.ts +134 -1
- package/src/tests/base-composer-runtime-core-addAttachment.test.ts +79 -5
- package/src/tests/base-composer-runtime-core-send.test.ts +145 -0
- package/src/tests/thread-message-like.test.ts +40 -0
- package/src/types/attachment.ts +1 -0
- package/src/types/error.test.ts +122 -0
- package/src/types/error.ts +74 -0
- package/src/types/index.ts +1 -0
- package/src/types/message.ts +11 -3
- package/src/utils/json/is-json-equal.test.ts +84 -0
- package/src/utils/json/is-json.test.ts +123 -0
- package/src/utils/json/is-json.ts +1 -1
- package/src/utils/json/stable-stringify-tool-args.test.ts +105 -0
- package/src/utils/json/stable-stringify-tool-args.ts +70 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAssistantContext.d.ts","names":[],"sources":["../../../src/react/model-context/useAssistantContext.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAssistantContext.d.ts","names":[],"sources":["../../../src/react/model-context/useAssistantContext.ts"],"mappings":";;;cAMa,sBAAuB,QAAQ"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DataMessagePartComponent } from "../types/MessagePartComponentTypes.js";
|
|
2
|
-
|
|
3
2
|
//#region src/react/model-context/useAssistantDataUI.d.ts
|
|
4
3
|
/** Props used to register a renderer for `data` message parts. */
|
|
5
4
|
type AssistantDataUIProps<T = any> = {
|
|
6
|
-
/** Data part name this renderer handles. */
|
|
5
|
+
/** Data part name this renderer handles. */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Component rendered for matching data message parts. */
|
|
7
8
|
render: DataMessagePartComponent<T>;
|
|
8
9
|
};
|
|
9
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAssistantDataUI.d.ts","names":[],"sources":["../../../src/react/model-context/useAssistantDataUI.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAssistantDataUI.d.ts","names":[],"sources":["../../../src/react/model-context/useAssistantDataUI.ts"],"mappings":";;;KAKY,qBAAqB;;EAE/B;;EAEA,QAAQ,yBAAyB;;;;;;;;cAStB,qBAAsB,QAAQ"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AssistantInstructionsConfig } from "../../model-context/types.js";
|
|
2
|
+
import "../../index.js";
|
|
2
3
|
//#region src/react/model-context/useAssistantInstructions.d.ts
|
|
3
4
|
declare const useAssistantInstructions: (config: string | AssistantInstructionsConfig) => void;
|
|
4
5
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAssistantInstructions.d.ts","names":[],"sources":["../../../src/react/model-context/useAssistantInstructions.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAssistantInstructions.d.ts","names":[],"sources":["../../../src/react/model-context/useAssistantInstructions.ts"],"mappings":";;;cAaa,2BACX,iBAAiB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AssistantToolProps as AssistantToolProps$1 } from "../../model-context/types.js";
|
|
2
|
+
import "../../index.js";
|
|
2
3
|
import { ToolCallMessagePartComponent } from "../types/MessagePartComponentTypes.js";
|
|
3
4
|
import { ToolCallText } from "./toolbox.js";
|
|
4
|
-
|
|
5
5
|
//#region src/react/model-context/useAssistantTool.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Props used to register a tool from React.
|
|
@@ -11,7 +11,9 @@ import { ToolCallText } from "./toolbox.js";
|
|
|
11
11
|
* https://assistant-ui.com/docs/migrations/toolkit-tools.
|
|
12
12
|
*/
|
|
13
13
|
type AssistantToolProps<TArgs extends Record<string, unknown>, TResult> = AssistantToolProps$1<TArgs, TResult> & {
|
|
14
|
-
/** Component used to render calls to this tool in assistant messages. */
|
|
14
|
+
/** Component used to render calls to this tool in assistant messages. */
|
|
15
|
+
render?: ToolCallMessagePartComponent<TArgs, TResult> | undefined;
|
|
16
|
+
/** Lightweight text rendered while a tool call is running or complete. */
|
|
15
17
|
renderText?: ToolCallText<TArgs, TResult> | undefined;
|
|
16
18
|
};
|
|
17
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAssistantTool.d.ts","names":[],"sources":["../../../src/react/model-context/useAssistantTool.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAssistantTool.d.ts","names":[],"sources":["../../../src/react/model-context/useAssistantTool.ts"],"mappings":";;;;;;;;;;;;KAiBY,mBACV,cAAc,yBACd,WACE,qBAAuB,OAAO;;EAEhC,SAAS,6BAA6B,OAAO;;EAE7C,aAAa,aAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCtB,mBACX,cAAc,yBACd,SAEA,MAAM,mBAAmB,OAAO"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ToolCallMessagePartComponent } from "../types/MessagePartComponentTypes.js";
|
|
2
|
-
|
|
3
2
|
//#region src/react/model-context/useAssistantToolUI.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Props used to register a renderer for tool-call message parts.
|
|
@@ -9,7 +8,9 @@ import { ToolCallMessagePartComponent } from "../types/MessagePartComponentTypes
|
|
|
9
8
|
* See https://assistant-ui.com/docs/migrations/toolkit-tools.
|
|
10
9
|
*/
|
|
11
10
|
type AssistantToolUIProps<TArgs, TResult> = {
|
|
12
|
-
/** Name of the tool whose calls should use this renderer. */
|
|
11
|
+
/** Name of the tool whose calls should use this renderer. */
|
|
12
|
+
toolName: string;
|
|
13
|
+
/** Component rendered for matching tool-call message parts. */
|
|
13
14
|
render: ToolCallMessagePartComponent<TArgs, TResult>;
|
|
14
15
|
/**
|
|
15
16
|
* How the UI is presented relative to the chain-of-thought trace. Set
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAssistantToolUI.d.ts","names":[],"sources":["../../../src/react/model-context/useAssistantToolUI.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAssistantToolUI.d.ts","names":[],"sources":["../../../src/react/model-context/useAssistantToolUI.ts"],"mappings":";;;;;;;;;KAWY,qBAAqB,OAAO;;EAEtC;;EAEA,QAAQ,6BAA6B,OAAO;;;;;;EAM5C;;;;;;;;;;;;;;cAeW,qBACX,MAAM"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Tool } from "assistant-stream";
|
|
2
|
-
|
|
3
2
|
//#region src/react/model-context/useAuiToolOverrides.d.ts
|
|
4
3
|
type AuiToolOverride<TArgs extends Record<string, unknown> = Record<string, unknown>, TResult = unknown> = Partial<Tool<TArgs, TResult>>;
|
|
5
4
|
type AuiToolOverrides = Record<string, AuiToolOverride<any, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAuiToolOverrides.d.ts","names":[],"sources":["../../../src/react/model-context/useAuiToolOverrides.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAuiToolOverrides.d.ts","names":[],"sources":["../../../src/react/model-context/useAuiToolOverrides.ts"],"mappings":";;KAIK,gBACH,cAAc,0BAA0B,yBACxC,qBACE,QAAQ,KAAK,OAAO;KAEnB,mBAAmB,eAAe;;;;;;;;;;;;;;iBAevB,oBAAoB,WAAW"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ToolCallMessagePartProps } from "../types/MessagePartComponentTypes.js";
|
|
2
2
|
import { FC } from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/react/model-context/useInlineRender.d.ts
|
|
5
4
|
declare const useInlineRender: <TArgs, TResult>(toolUI: FC<ToolCallMessagePartProps<TArgs, TResult>>) => FC<ToolCallMessagePartProps<TArgs, TResult>>;
|
|
6
5
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInlineRender.d.ts","names":[],"sources":["../../../src/react/model-context/useInlineRender.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useInlineRender.d.ts","names":[],"sources":["../../../src/react/model-context/useInlineRender.ts"],"mappings":";;;cAIa,kBAAmB,OAAO,SACrC,QAAQ,GAAG,yBAAyB,OAAO,cAC1C,GAAG,yBAAyB,OAAO"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ToolCallMessagePartComponent } from "../types/MessagePartComponentTypes.js";
|
|
2
2
|
import { Unstable_InteractableStateSchema } from "../types/scopes/interactables.js";
|
|
3
|
-
|
|
4
3
|
//#region src/react/model-context/useInteractable.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The state type described by an interactable's `stateSchema`. Resolves the
|
|
@@ -20,8 +19,11 @@ type Unstable_InferInteractableState<TSchema> = TSchema extends {
|
|
|
20
19
|
* the live instance back to it.
|
|
21
20
|
*/
|
|
22
21
|
type Unstable_InteractableVersionInfo<TState> = {
|
|
23
|
-
/** The interactable's state as it was at this message. */
|
|
24
|
-
|
|
22
|
+
/** The interactable's state as it was at this message. */
|
|
23
|
+
state: TState;
|
|
24
|
+
/** Whether this message holds the instance's most recent tool-driven version. */
|
|
25
|
+
isLatest: boolean;
|
|
26
|
+
/** Sets the live state back to this version. */
|
|
25
27
|
restore: () => void;
|
|
26
28
|
};
|
|
27
29
|
/**
|
|
@@ -31,7 +33,8 @@ type Unstable_InteractableVersionInfo<TState> = {
|
|
|
31
33
|
type Unstable_InteractableConfig<TSchema extends Unstable_InteractableStateSchema> = {
|
|
32
34
|
description: string;
|
|
33
35
|
stateSchema: TSchema;
|
|
34
|
-
initialState: Unstable_InferInteractableState<TSchema>;
|
|
36
|
+
initialState: Unstable_InferInteractableState<TSchema>;
|
|
37
|
+
/** Unique instance ID; required to address this instance when multiple interactables share a name. Auto-generated if omitted. */
|
|
35
38
|
id?: string | undefined;
|
|
36
39
|
/**
|
|
37
40
|
* Component installed as the tool UI for this interactable's `update_{name}`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInteractable.d.ts","names":[],"sources":["../../../src/react/model-context/useInteractable.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useInteractable.d.ts","names":[],"sources":["../../../src/react/model-context/useInteractable.ts"],"mappings":";;;;;;;;KAkBY,gCAAgC,WAAW;EACrD;IAAe;MAAU,cAAc;;;IAErC;;;;;;KAQQ,iCAAiC;;EAE3C,OAAO;;EAEP;;EAEA;;;;;;KAOU,4BACV,gBAAgB;EAEhB;EACA,aAAa;EACb,cAAc,gCAAgC;;EAE9C;;;;;;;;EAQA,eAAe;;;;;;;;;;;;;;;;;;;;cAsJJ,2BACX,gBAAgB,kCAEhB,cACA,QAAQ,4BAA4B,uBAEpC,gCAAgC;EAE9B;EACA,SACI,iCACE,gCAAgC;EAGtC,WACE,SACI,gCAAgC,aAE9B,MAAM,gCAAgC,aACnC,gCAAgC;EAE3C;EACA;EACA,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInteractableState.d.ts","names":[],"sources":["../../../src/react/model-context/useInteractableState.ts"],"mappings":";KAKK,
|
|
1
|
+
{"version":3,"file":"useInteractableState.d.ts","names":[],"sources":["../../../src/react/model-context/useInteractableState.ts"],"mappings":";KAKK,aAAa,UAAU,WAAW,MAAM,WAAW;;;;;;;;;;cAyD3C,gCAAgC,QAAQ,gBACnD;EAEE,WAAW,SAAS,aAAa;EACjC;EACA;EACA,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInteractableVersions.d.ts","names":[],"sources":["../../../src/react/model-context/useInteractableVersions.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useInteractableVersions.d.ts","names":[],"sources":["../../../src/react/model-context/useInteractableVersions.ts"],"mappings":";;;;;;;;;;;cAyCa,mCAAmC,kBAC9C,YACA,kBACI,KAAK;EACT,OAAO;EACP"}
|
|
@@ -4,7 +4,9 @@ type PropFieldStatus = "streaming" | "complete";
|
|
|
4
4
|
* Streaming completion status for the arguments of the current tool call.
|
|
5
5
|
*/
|
|
6
6
|
type ToolArgsStatus<TArgs extends Record<string, unknown> = Record<string, unknown>> = {
|
|
7
|
-
/** Overall lifecycle state of the tool-call part. */
|
|
7
|
+
/** Overall lifecycle state of the tool-call part. */
|
|
8
|
+
status: "running" | "complete" | "incomplete" | "requires-action";
|
|
9
|
+
/** Per-argument status keyed by argument name. */
|
|
8
10
|
propStatus: Partial<Record<keyof TArgs, PropFieldStatus>>;
|
|
9
11
|
};
|
|
10
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToolArgsStatus.d.ts","names":[],"sources":["../../../src/react/model-context/useToolArgsStatus.ts"],"mappings":";KAOK
|
|
1
|
+
{"version":3,"file":"useToolArgsStatus.d.ts","names":[],"sources":["../../../src/react/model-context/useToolArgsStatus.ts"],"mappings":";KAOK;;;;KAKO,eACV,cAAc,0BAA0B;;EAGxC;;EAEA,YAAY,QAAQ,aAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;cA2B7B,oBACX,cAAc,0BAA0B,8BACrC,eAAe"}
|
|
@@ -3,10 +3,7 @@ type UseActionBarCopyOptions = {
|
|
|
3
3
|
copiedDuration?: number | undefined;
|
|
4
4
|
copyToClipboard?: ((text: string) => void | Promise<void>) | undefined;
|
|
5
5
|
};
|
|
6
|
-
declare const useActionBarCopy: ({
|
|
7
|
-
copiedDuration,
|
|
8
|
-
copyToClipboard
|
|
9
|
-
}?: UseActionBarCopyOptions) => {
|
|
6
|
+
declare const useActionBarCopy: ({ copiedDuration, copyToClipboard }?: UseActionBarCopyOptions) => {
|
|
10
7
|
copy: () => void;
|
|
11
8
|
disabled: boolean;
|
|
12
9
|
isCopied: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActionBarCopy.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useActionBarCopy.ts"],"mappings":";KAGY
|
|
1
|
+
{"version":3,"file":"useActionBarCopy.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useActionBarCopy.ts"],"mappings":";KAGY;EACV;EACA,oBAAoB,wBAAwB;;cAGjC,qBAAoB,gBAAA,oBAG9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActionBarEdit.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useActionBarEdit.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useActionBarEdit.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useActionBarEdit.ts"],"mappings":";cAGa;EAAA;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActionBarFeedback.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useActionBarFeedback.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useActionBarFeedback.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useActionBarFeedback.ts"],"mappings":";cAGa;EAAA;EAAA;;cAaA;EAAA;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActionBarReload.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useActionBarReload.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useActionBarReload.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useActionBarReload.ts"],"mappings":";cAGa;EAAA;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActionBarSpeak.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useActionBarSpeak.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useActionBarSpeak.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useActionBarSpeak.ts"],"mappings":";cAGa;eAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActionBarStopSpeaking.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useActionBarStopSpeaking.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useActionBarStopSpeaking.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useActionBarStopSpeaking.ts"],"mappings":";cAGa;EAAA;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBranchPickerNext.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useBranchPickerNext.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useBranchPickerNext.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useBranchPickerNext.ts"],"mappings":";cAGa;EAAA;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBranchPickerPrevious.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useBranchPickerPrevious.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useBranchPickerPrevious.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useBranchPickerPrevious.ts"],"mappings":";cAGa;EAAA;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useComposerAddAttachment.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useComposerAddAttachment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useComposerAddAttachment.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useComposerAddAttachment.ts"],"mappings":";;cAIa;wBAKF,OAAO,qBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useComposerCancel.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useComposerCancel.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useComposerCancel.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useComposerCancel.ts"],"mappings":";cAGa;EAAA;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useComposerDictate.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useComposerDictate.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useComposerDictate.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useComposerDictate.ts"],"mappings":";cAGa;EAAA;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useComposerSend.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useComposerSend.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useComposerSend.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useComposerSend.ts"],"mappings":";;cAIa;gBASD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditComposerCancel.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useEditComposerCancel.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useEditComposerCancel.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useEditComposerCancel.ts"],"mappings":";cAGa;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditComposerSend.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useEditComposerSend.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useEditComposerSend.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useEditComposerSend.ts"],"mappings":";cAGa;EAAA;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageBranching.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useMessageBranching.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useMessageBranching.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useMessageBranching.ts"],"mappings":";cAGa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageError.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useMessageError.ts"],"mappings":";cAEa,
|
|
1
|
+
{"version":3,"file":"useMessageError.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useMessageError.ts"],"mappings":";cAEa,oFAAe,sDAAA"}
|
|
@@ -4,7 +4,11 @@ const useMessageError = () => {
|
|
|
4
4
|
return useAuiState(_temp);
|
|
5
5
|
};
|
|
6
6
|
function _temp(s) {
|
|
7
|
-
|
|
7
|
+
if (s.message.status?.type !== "incomplete" || s.message.status.reason !== "error") return;
|
|
8
|
+
const error = s.message.status.error;
|
|
9
|
+
if (typeof error === "string") return error;
|
|
10
|
+
if (typeof error === "object" && error !== null && "message" in error && typeof error.message === "string") return error.message;
|
|
11
|
+
return error ?? "An error occurred";
|
|
8
12
|
}
|
|
9
13
|
//#endregion
|
|
10
14
|
export { useMessageError };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageError.js","names":["useAuiState","useMessageError","_temp","s","message","status","type","reason","error"
|
|
1
|
+
{"version":3,"file":"useMessageError.js","names":["useAuiState","useMessageError","_temp","s","message","status","type","reason","error"],"sources":["../../../src/react/primitive-hooks/useMessageError.ts"],"sourcesContent":["import { useAuiState } from \"@assistant-ui/store\";\n\nexport const useMessageError = () => {\n return useAuiState((s) => {\n if (\n s.message.status?.type !== \"incomplete\" ||\n s.message.status.reason !== \"error\"\n ) {\n return undefined;\n }\n const error = s.message.status.error;\n if (typeof error === \"string\") return error;\n if (\n typeof error === \"object\" &&\n error !== null &&\n \"message\" in error &&\n typeof error.message === \"string\"\n ) {\n return error.message;\n }\n return error ?? \"An error occurred\";\n });\n};\n"],"mappings":";;AAEA,MAAaC,wBAAkB;CAAA,OACtBD,YAAYE,KAkBlB;AAAC;AAnB2B,SAAAA,MAAAC,GAAA;CAE3B,IACEA,EAACC,QAAQC,QAAaC,SAAK,gBAC3BH,EAACC,QAAQC,OAAOE,WAAY,SAAO;CAIrC,MAAAC,QAAcL,EAACC,QAAQC,OAAOG;CAC9B,IAAI,OAAOA,UAAU,UAAQ,OAASA;CACtC,IACE,OAAOA,UAAU,YACjBA,UAAU,QACV,aAAaA,SACb,OAAOA,MAAKJ,YAAa,UAAQ,OAE1BI,MAAKJ;CACb,OACMI,SAAA;AAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageReload.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useMessageReload.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useMessageReload.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useMessageReload.ts"],"mappings":";cAGa;EAAA;EAAA"}
|
|
@@ -4,11 +4,7 @@ type UseSuggestionTriggerOptions = {
|
|
|
4
4
|
send?: boolean | undefined;
|
|
5
5
|
clearComposer?: boolean | undefined;
|
|
6
6
|
};
|
|
7
|
-
declare const useSuggestionTrigger: ({
|
|
8
|
-
prompt,
|
|
9
|
-
send,
|
|
10
|
-
clearComposer
|
|
11
|
-
}: UseSuggestionTriggerOptions) => {
|
|
7
|
+
declare const useSuggestionTrigger: ({ prompt, send, clearComposer }: UseSuggestionTriggerOptions) => {
|
|
12
8
|
trigger: () => void;
|
|
13
9
|
disabled: boolean;
|
|
14
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSuggestionTrigger.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useSuggestionTrigger.ts"],"mappings":";KAGY
|
|
1
|
+
{"version":3,"file":"useSuggestionTrigger.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useSuggestionTrigger.ts"],"mappings":";KAGY;EACV;EACA;EACA;;cAGW,yBAAwB,QAAA,MAAA,iBAIlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThreadIsEmpty.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadIsEmpty.ts"],"mappings":";cAEa
|
|
1
|
+
{"version":3,"file":"useThreadIsEmpty.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadIsEmpty.ts"],"mappings":";cAEa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThreadIsRunning.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadIsRunning.ts"],"mappings":";cAEa
|
|
1
|
+
{"version":3,"file":"useThreadIsRunning.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadIsRunning.ts"],"mappings":";cAEa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThreadListItemArchive.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadListItemArchive.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useThreadListItemArchive.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadListItemArchive.ts"],"mappings":";cAGa;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThreadListItemDelete.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadListItemDelete.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useThreadListItemDelete.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadListItemDelete.ts"],"mappings":";cAGa;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThreadListItemTrigger.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadListItemTrigger.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useThreadListItemTrigger.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadListItemTrigger.ts"],"mappings":";cAGa;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThreadListItemUnarchive.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadListItemUnarchive.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useThreadListItemUnarchive.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadListItemUnarchive.ts"],"mappings":";cAGa;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThreadListLoadMore.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadListLoadMore.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useThreadListLoadMore.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadListLoadMore.ts"],"mappings":";cAGa;EAAA;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThreadListNew.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadListNew.ts"],"mappings":";cAGa
|
|
1
|
+
{"version":3,"file":"useThreadListNew.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadListNew.ts"],"mappings":";cAGa;EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThreadMessageIds.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadMessageIds.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useThreadMessageIds.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadMessageIds.ts"],"mappings":";;;;;;;;;;;cA0Ba"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThreadMessages.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadMessages.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useThreadMessages.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useThreadMessages.ts"],"mappings":";;cAGa,kCAAiC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVoice.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useVoice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useVoice.d.ts","names":[],"sources":["../../../src/react/primitive-hooks/useVoice.ts"],"mappings":";;cAIa,qBAAoB;cAMpB;cAUA"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { PartState } from "../../../store/scopes/part.js";
|
|
2
2
|
import { ReasoningMessagePartComponent, ToolCallMessagePartComponent } from "../../types/MessagePartComponentTypes.js";
|
|
3
3
|
import { ComponentType, FC, PropsWithChildren, ReactNode } from "react";
|
|
4
|
-
|
|
5
4
|
//#region src/react/primitives/chainOfThought/ChainOfThoughtParts.d.ts
|
|
6
5
|
type ChainOfThoughtPartsComponentConfig = {
|
|
7
|
-
/** Component for rendering reasoning parts */
|
|
6
|
+
/** Component for rendering reasoning parts */
|
|
7
|
+
Reasoning?: ReasoningMessagePartComponent | undefined;
|
|
8
|
+
/** Fallback component for tool-call parts */
|
|
8
9
|
tools?: {
|
|
9
10
|
Fallback?: ToolCallMessagePartComponent | undefined;
|
|
10
|
-
};
|
|
11
|
+
};
|
|
12
|
+
/** Layout component to wrap the rendered parts when expanded */
|
|
11
13
|
Layout?: ComponentType<PropsWithChildren> | undefined;
|
|
12
14
|
};
|
|
13
15
|
declare namespace ChainOfThoughtPrimitiveParts {
|
|
@@ -18,7 +20,8 @@ declare namespace ChainOfThoughtPrimitiveParts {
|
|
|
18
20
|
components?: ChainOfThoughtPartsComponentConfig;
|
|
19
21
|
children?: never;
|
|
20
22
|
} | {
|
|
21
|
-
/** Render function called for each part. Receives the part. */
|
|
23
|
+
/** Render function called for each part. Receives the part. */
|
|
24
|
+
children: (value: {
|
|
22
25
|
part: PartState;
|
|
23
26
|
}) => ReactNode;
|
|
24
27
|
components?: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainOfThoughtParts.d.ts","names":[],"sources":["../../../../src/react/primitives/chainOfThought/ChainOfThoughtParts.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChainOfThoughtParts.d.ts","names":[],"sources":["../../../../src/react/primitives/chainOfThought/ChainOfThoughtParts.tsx"],"mappings":";;;;KAgBK;;EAEH,YAAY;;EAEZ;IACE,WAAW;;;EAGb,SAAS,cAAc;;kBAGR;OACH;;;;IAKN,aAAa;IACb;;;IAIA,WAAW;MAAS,MAAM;UAAgB;IAC1C;;;;;;;;;cAsCK,8BAA8B,GACzC,6BAA6B"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Attachment } from "../../../types/attachment.js";
|
|
2
2
|
import { ComponentType, FC, ReactNode } from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/react/primitives/composer/ComposerAttachments.d.ts
|
|
5
4
|
type ComposerAttachmentsComponentConfig = {
|
|
6
5
|
Image?: ComponentType | undefined;
|
|
@@ -10,10 +9,12 @@ type ComposerAttachmentsComponentConfig = {
|
|
|
10
9
|
};
|
|
11
10
|
declare namespace ComposerPrimitiveAttachments {
|
|
12
11
|
type Props = {
|
|
13
|
-
/** @deprecated Use the children render function instead. */
|
|
12
|
+
/** @deprecated Use the children render function instead. */
|
|
13
|
+
components: ComposerAttachmentsComponentConfig;
|
|
14
14
|
children?: never;
|
|
15
15
|
} | {
|
|
16
|
-
/** Render function called for each attachment. Receives the attachment. */
|
|
16
|
+
/** Render function called for each attachment. Receives the attachment. */
|
|
17
|
+
children: (value: {
|
|
17
18
|
attachment: Attachment;
|
|
18
19
|
}) => ReactNode;
|
|
19
20
|
components?: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerAttachments.d.ts","names":[],"sources":["../../../../src/react/primitives/composer/ComposerAttachments.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ComposerAttachments.d.ts","names":[],"sources":["../../../../src/react/primitives/composer/ComposerAttachments.tsx"],"mappings":";;;KAWK;EACH,QAAQ;EACR,WAAW;EACX,OAAO;EACP,aAAa;;kBAGE;OACH;;IAGN,YAAY;IACZ;;;IAIA,WAAW;MAAS,YAAY;UAAiB;IACjD;;;kBAgCS;OACH;IACV;IACA,aAAa;;;;;;cAOJ,oCAAoC,GAAG,mCAAmC;cAgD1E,8BAA8B,GACzC,6BAA6B"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from "react";
|
|
2
|
-
|
|
3
2
|
//#region src/react/primitives/composer/ComposerIf.d.ts
|
|
4
3
|
type ComposerIfFilters = {
|
|
5
|
-
/** Whether the composer is in editing mode */
|
|
4
|
+
/** Whether the composer is in editing mode */
|
|
5
|
+
editing: boolean | undefined;
|
|
6
|
+
/** Whether dictation is currently active */
|
|
6
7
|
dictation: boolean | undefined;
|
|
7
8
|
};
|
|
8
|
-
type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & { [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K
|
|
9
|
+
type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & { [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>; }[Keys];
|
|
9
10
|
type UseComposerIfProps = RequireAtLeastOne<ComposerIfFilters>;
|
|
10
11
|
declare namespace ComposerPrimitiveIf {
|
|
11
12
|
type Props = PropsWithChildren<UseComposerIfProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerIf.d.ts","names":[],"sources":["../../../../src/react/primitives/composer/ComposerIf.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ComposerIf.d.ts","names":[],"sources":["../../../../src/react/primitives/composer/ComposerIf.tsx"],"mappings":";;KAGK;;EAEH;;EAEA;;KAGU,kBAAkB,GAAG,mBAAmB,UAAU,KAAK,KACjE,GACA,cAAc,GAAG,YAGd,KAAK,SAAS,SAAS,KAAK,GAAG,MAAM,QAAQ,KAAK,GAAG,QAAQ,MAAM,QACpE;KAEQ,qBAAqB,kBAAkB;kBAelC;OACH,QAAQ,kBAAkB;;;;;cAM3B,qBAAqB,GAAG,oBAAoB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { QueueItemState } from "../../../store/scopes/queue-item.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/react/primitives/composer/ComposerQueue.d.ts
|
|
5
4
|
declare namespace ComposerPrimitiveQueue {
|
|
6
5
|
type Props = {
|
|
7
|
-
/** Render function called for each queue item. Receives the queue item state. */
|
|
6
|
+
/** Render function called for each queue item. Receives the queue item state. */
|
|
7
|
+
children: (value: {
|
|
8
8
|
queueItem: QueueItemState;
|
|
9
9
|
}) => ReactNode;
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerQueue.d.ts","names":[],"sources":["../../../../src/react/primitives/composer/ComposerQueue.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ComposerQueue.d.ts","names":[],"sources":["../../../../src/react/primitives/composer/ComposerQueue.tsx"],"mappings":";;;kBAKiB;OACH;;IAEV,WAAW;MAAS,WAAW;UAAqB;;;;;;;;;;;;;;;;;;cA+C3C,wCAAsB;aA1CtB;IAAS,WAAW;QAAqB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GenerativeUISpec } from "../../../types/message.js";
|
|
2
2
|
import { GenerativeUIComponentRegistry, GenerativeUIRenderProps } from "../../types/MessagePartComponentTypes.js";
|
|
3
3
|
import { ComponentType, FC } from "react";
|
|
4
|
-
|
|
5
4
|
//#region src/react/primitives/generativeUI/GenerativeUI.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Thrown when a generative-ui spec references a component name that is not
|
|
@@ -34,7 +33,8 @@ declare namespace MessagePrimitiveGenerativeUI {
|
|
|
34
33
|
* `generative-ui` part from the surrounding `MessagePartProvider` /
|
|
35
34
|
* `PartByIndexProvider` context.
|
|
36
35
|
*/
|
|
37
|
-
spec?: GenerativeUISpec | undefined;
|
|
36
|
+
spec?: GenerativeUISpec | undefined;
|
|
37
|
+
/** Optional fallback for unknown component names. */
|
|
38
38
|
Fallback?: ComponentType<{
|
|
39
39
|
component: string;
|
|
40
40
|
props?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenerativeUI.d.ts","names":[],"sources":["../../../../src/react/primitives/generativeUI/GenerativeUI.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"GenerativeUI.d.ts","names":[],"sources":["../../../../src/react/primitives/generativeUI/GenerativeUI.tsx"],"mappings":";;;;;;;;;;cAyBa,gCAAgC;WAC3B;cAGd,uBACA;;;;;;;cA2ES,oBAAoB,GAAG;kBAgBnB;OACH;;;;;;;;IAQV,YAAY;;;;;;IAMZ,OAAO;;IAEP,WACI;MAAgB;MAAmB;;;;;;;;;;;;;;;;;;;;;cAsB9B,8BAA8B,GACzC,6BAA6B"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CompleteAttachment } from "../../../types/attachment.js";
|
|
2
2
|
import { ComponentType, FC, ReactNode } from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/react/primitives/message/MessageAttachments.d.ts
|
|
5
4
|
type MessageAttachmentsComponentConfig = {
|
|
6
5
|
Image?: ComponentType | undefined;
|
|
@@ -10,10 +9,12 @@ type MessageAttachmentsComponentConfig = {
|
|
|
10
9
|
};
|
|
11
10
|
declare namespace MessagePrimitiveAttachments {
|
|
12
11
|
type Props = {
|
|
13
|
-
/** @deprecated Use the children render function instead. */
|
|
12
|
+
/** @deprecated Use the children render function instead. */
|
|
13
|
+
components: MessageAttachmentsComponentConfig;
|
|
14
14
|
children?: never;
|
|
15
15
|
} | {
|
|
16
|
-
/** Render function called for each attachment. Receives the attachment. */
|
|
16
|
+
/** Render function called for each attachment. Receives the attachment. */
|
|
17
|
+
children: (value: {
|
|
17
18
|
attachment: CompleteAttachment;
|
|
18
19
|
}) => ReactNode;
|
|
19
20
|
components?: never;
|