@assistant-ui/core 0.3.19 → 0.3.20
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 +9 -10
- package/dist/adapters/attachment.d.ts.map +1 -1
- package/dist/adapters/attachment.js +2 -1
- package/dist/adapters/attachment.js.map +1 -1
- package/dist/adapters/directive-formatter.d.ts +1 -2
- package/dist/adapters/directive-formatter.d.ts.map +1 -1
- package/dist/adapters/feedback.d.ts +2 -2
- package/dist/adapters/feedback.d.ts.map +1 -1
- package/dist/adapters/speech.d.ts +6 -7
- package/dist/adapters/speech.d.ts.map +1 -1
- package/dist/adapters/suggestion.d.ts +5 -6
- package/dist/adapters/suggestion.d.ts.map +1 -1
- package/dist/adapters/thread-history.d.ts +6 -7
- package/dist/adapters/thread-history.d.ts.map +1 -1
- package/dist/adapters/trigger.d.ts +1 -2
- package/dist/adapters/trigger.d.ts.map +1 -1
- package/dist/adapters/voice.d.ts +5 -6
- package/dist/adapters/voice.d.ts.map +1 -1
- package/dist/internal/duplicate-detection.d.ts +1 -2
- package/dist/internal/duplicate-detection.d.ts.map +1 -1
- package/dist/model-context/frame/host.d.ts +1 -2
- package/dist/model-context/frame/host.d.ts.map +1 -1
- package/dist/model-context/frame/provider.d.ts +1 -2
- package/dist/model-context/frame/provider.d.ts.map +1 -1
- package/dist/model-context/frame/types.d.ts +5 -6
- package/dist/model-context/frame/types.d.ts.map +1 -1
- package/dist/model-context/interactable-composer-metadata.d.ts +9 -10
- package/dist/model-context/interactable-composer-metadata.d.ts.map +1 -1
- package/dist/model-context/registry-handles.d.ts +3 -4
- package/dist/model-context/registry-handles.d.ts.map +1 -1
- package/dist/model-context/registry.d.ts +1 -2
- package/dist/model-context/registry.d.ts.map +1 -1
- package/dist/model-context/tool-call-text.d.ts +2 -3
- package/dist/model-context/tool-call-text.d.ts.map +1 -1
- package/dist/model-context/tool.d.ts +2 -3
- package/dist/model-context/tool.d.ts.map +1 -1
- package/dist/model-context/types.d.ts +8 -9
- package/dist/model-context/types.d.ts.map +1 -1
- package/dist/react/AssistantProvider.d.ts +3 -4
- package/dist/react/AssistantProvider.d.ts.map +1 -1
- package/dist/react/AssistantRuntimeProvider.d.ts +1 -2
- package/dist/react/AssistantRuntimeProvider.d.ts.map +1 -1
- package/dist/react/RuntimeAdapter.d.ts +2 -3
- package/dist/react/RuntimeAdapter.d.ts.map +1 -1
- package/dist/react/adapters/LocalStorageThreadListAdapter.d.ts +4 -5
- package/dist/react/adapters/LocalStorageThreadListAdapter.d.ts.map +1 -1
- package/dist/react/adapters/LocalStorageThreadListAdapter.js +20 -34
- package/dist/react/adapters/LocalStorageThreadListAdapter.js.map +1 -1
- package/dist/react/adapters/TitleGenerationAdapter.d.ts +2 -3
- package/dist/react/adapters/TitleGenerationAdapter.d.ts.map +1 -1
- package/dist/react/client/AdaptedRemoteThread.d.ts +1 -2
- package/dist/react/client/AdaptedRemoteThread.d.ts.map +1 -1
- package/dist/react/client/DataRenderers.d.ts +1 -2
- package/dist/react/client/DataRenderers.d.ts.map +1 -1
- package/dist/react/client/InMemoryThreadList.d.ts +3 -4
- package/dist/react/client/InMemoryThreadList.d.ts.map +1 -1
- package/dist/react/client/Interactables.d.ts +1 -2
- package/dist/react/client/Interactables.d.ts.map +1 -1
- package/dist/react/client/RemoteThreadList.d.ts +2 -3
- package/dist/react/client/RemoteThreadList.d.ts.map +1 -1
- package/dist/react/client/Tools.d.ts +2 -2
- package/dist/react/client/Tools.d.ts.map +1 -1
- package/dist/react/client/interactable-model-context.d.ts +2 -3
- package/dist/react/client/interactable-model-context.d.ts.map +1 -1
- package/dist/react/interactables-legacy/Interactables.d.ts +1 -2
- package/dist/react/interactables-legacy/Interactables.d.ts.map +1 -1
- package/dist/react/interactables-legacy/interactable-model-context.d.ts +2 -3
- package/dist/react/interactables-legacy/interactable-model-context.d.ts.map +1 -1
- package/dist/react/interactables-legacy/scopes.d.ts +9 -10
- package/dist/react/interactables-legacy/scopes.d.ts.map +1 -1
- package/dist/react/interactables-legacy/useAssistantInteractable.d.ts +2 -3
- package/dist/react/interactables-legacy/useAssistantInteractable.d.ts.map +1 -1
- package/dist/react/interactables-legacy/useInteractableState.d.ts +1 -2
- package/dist/react/interactables-legacy/useInteractableState.d.ts.map +1 -1
- package/dist/react/interactables-shared/useInteractablePersistenceQueue.d.ts +1 -2
- package/dist/react/interactables-shared/useInteractablePersistenceQueue.d.ts.map +1 -1
- package/dist/react/model-context/define-mcp-toolkit.d.ts +4 -5
- package/dist/react/model-context/define-mcp-toolkit.d.ts.map +1 -1
- package/dist/react/model-context/define-toolkit.d.ts +2 -3
- package/dist/react/model-context/define-toolkit.d.ts.map +1 -1
- package/dist/react/model-context/external-tool.d.ts +1 -2
- package/dist/react/model-context/external-tool.d.ts.map +1 -1
- package/dist/react/model-context/human-tool.d.ts +3 -4
- package/dist/react/model-context/human-tool.d.ts.map +1 -1
- package/dist/react/model-context/interactableTool.d.ts +3 -4
- package/dist/react/model-context/interactableTool.d.ts.map +1 -1
- package/dist/react/model-context/makeAssistantDataUI.d.ts +2 -3
- package/dist/react/model-context/makeAssistantDataUI.d.ts.map +1 -1
- package/dist/react/model-context/makeAssistantTool.d.ts +2 -3
- package/dist/react/model-context/makeAssistantTool.d.ts.map +1 -1
- package/dist/react/model-context/makeAssistantToolUI.d.ts +2 -3
- package/dist/react/model-context/makeAssistantToolUI.d.ts.map +1 -1
- package/dist/react/model-context/provider-tool.d.ts +2 -3
- package/dist/react/model-context/provider-tool.d.ts.map +1 -1
- package/dist/react/model-context/stub-tool.d.ts +1 -2
- package/dist/react/model-context/stub-tool.d.ts.map +1 -1
- package/dist/react/model-context/toolbox.d.ts +9 -10
- package/dist/react/model-context/toolbox.d.ts.map +1 -1
- package/dist/react/model-context/useAssistantContext.d.ts +2 -2
- package/dist/react/model-context/useAssistantContext.d.ts.map +1 -1
- package/dist/react/model-context/useAssistantDataUI.d.ts +2 -3
- package/dist/react/model-context/useAssistantDataUI.d.ts.map +1 -1
- package/dist/react/model-context/useAssistantInstructions.d.ts +2 -2
- package/dist/react/model-context/useAssistantInstructions.d.ts.map +1 -1
- package/dist/react/model-context/useAssistantTool.d.ts +2 -3
- package/dist/react/model-context/useAssistantTool.d.ts.map +1 -1
- package/dist/react/model-context/useAssistantToolUI.d.ts +2 -3
- package/dist/react/model-context/useAssistantToolUI.d.ts.map +1 -1
- package/dist/react/model-context/useAuiToolOverrides.d.ts +1 -2
- package/dist/react/model-context/useAuiToolOverrides.d.ts.map +1 -1
- package/dist/react/model-context/useInlineRender.d.ts +1 -2
- package/dist/react/model-context/useInlineRender.d.ts.map +1 -1
- package/dist/react/model-context/useInteractable.d.ts +4 -5
- package/dist/react/model-context/useInteractable.d.ts.map +1 -1
- package/dist/react/model-context/useInteractableState.d.ts +1 -2
- package/dist/react/model-context/useInteractableState.d.ts.map +1 -1
- package/dist/react/model-context/useInteractableVersions.d.ts +1 -2
- package/dist/react/model-context/useInteractableVersions.d.ts.map +1 -1
- package/dist/react/model-context/useToolArgsStatus.d.ts +2 -3
- package/dist/react/model-context/useToolArgsStatus.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useActionBarCopy.d.ts +2 -3
- package/dist/react/primitive-hooks/useActionBarCopy.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useActionBarEdit.d.ts +1 -2
- package/dist/react/primitive-hooks/useActionBarEdit.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useActionBarFeedback.d.ts +2 -3
- package/dist/react/primitive-hooks/useActionBarFeedback.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useActionBarReload.d.ts +1 -2
- package/dist/react/primitive-hooks/useActionBarReload.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useActionBarSpeak.d.ts +1 -2
- package/dist/react/primitive-hooks/useActionBarSpeak.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useActionBarStopSpeaking.d.ts +1 -2
- package/dist/react/primitive-hooks/useActionBarStopSpeaking.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useBranchPickerNext.d.ts +1 -2
- package/dist/react/primitive-hooks/useBranchPickerNext.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useBranchPickerPrevious.d.ts +1 -2
- package/dist/react/primitive-hooks/useBranchPickerPrevious.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useComposerAddAttachment.d.ts +1 -2
- package/dist/react/primitive-hooks/useComposerAddAttachment.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useComposerCancel.d.ts +1 -2
- package/dist/react/primitive-hooks/useComposerCancel.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useComposerDictate.d.ts +1 -2
- package/dist/react/primitive-hooks/useComposerDictate.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useComposerSend.d.ts +1 -2
- package/dist/react/primitive-hooks/useComposerSend.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useEditComposerCancel.d.ts +1 -2
- package/dist/react/primitive-hooks/useEditComposerCancel.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useEditComposerSend.d.ts +1 -2
- package/dist/react/primitive-hooks/useEditComposerSend.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useMessageBranching.d.ts +1 -2
- package/dist/react/primitive-hooks/useMessageBranching.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useMessageError.d.ts +1 -2
- package/dist/react/primitive-hooks/useMessageError.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useMessageReload.d.ts +1 -2
- package/dist/react/primitive-hooks/useMessageReload.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useSuggestionTrigger.d.ts +2 -3
- package/dist/react/primitive-hooks/useSuggestionTrigger.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadIsEmpty.d.ts +1 -2
- package/dist/react/primitive-hooks/useThreadIsEmpty.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadIsRunning.d.ts +1 -2
- package/dist/react/primitive-hooks/useThreadIsRunning.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadListItemArchive.d.ts +1 -2
- package/dist/react/primitive-hooks/useThreadListItemArchive.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadListItemDelete.d.ts +1 -2
- package/dist/react/primitive-hooks/useThreadListItemDelete.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadListItemTrigger.d.ts +1 -2
- package/dist/react/primitive-hooks/useThreadListItemTrigger.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadListItemUnarchive.d.ts +1 -2
- package/dist/react/primitive-hooks/useThreadListItemUnarchive.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadListLoadMore.d.ts +1 -2
- package/dist/react/primitive-hooks/useThreadListLoadMore.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadListNew.d.ts +1 -2
- package/dist/react/primitive-hooks/useThreadListNew.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadMessageIds.d.ts +1 -2
- package/dist/react/primitive-hooks/useThreadMessageIds.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useThreadMessages.d.ts +1 -2
- package/dist/react/primitive-hooks/useThreadMessages.d.ts.map +1 -1
- package/dist/react/primitive-hooks/useVoice.d.ts +3 -4
- package/dist/react/primitive-hooks/useVoice.d.ts.map +1 -1
- package/dist/react/primitives/chainOfThought/ChainOfThoughtParts.d.ts +2 -3
- package/dist/react/primitives/chainOfThought/ChainOfThoughtParts.d.ts.map +1 -1
- package/dist/react/primitives/composer/ComposerAttachments.d.ts +4 -5
- package/dist/react/primitives/composer/ComposerAttachments.d.ts.map +1 -1
- package/dist/react/primitives/composer/ComposerIf.d.ts +4 -5
- package/dist/react/primitives/composer/ComposerIf.d.ts.map +1 -1
- package/dist/react/primitives/composer/ComposerQueue.d.ts +2 -3
- package/dist/react/primitives/composer/ComposerQueue.d.ts.map +1 -1
- package/dist/react/primitives/generativeUI/GenerativeUI.d.ts +4 -5
- package/dist/react/primitives/generativeUI/GenerativeUI.d.ts.map +1 -1
- package/dist/react/primitives/generativeUI/GenerativeUI.js +27 -28
- package/dist/react/primitives/generativeUI/GenerativeUI.js.map +1 -1
- package/dist/react/primitives/message/MessageAttachments.d.ts +4 -5
- package/dist/react/primitives/message/MessageAttachments.d.ts.map +1 -1
- package/dist/react/primitives/message/MessageGroupedParts.d.ts +2 -3
- package/dist/react/primitives/message/MessageGroupedParts.d.ts.map +1 -1
- package/dist/react/primitives/message/MessageParts.d.ts +10 -10
- package/dist/react/primitives/message/MessageParts.d.ts.map +1 -1
- package/dist/react/primitives/message/MessageQuote.d.ts +2 -3
- package/dist/react/primitives/message/MessageQuote.d.ts.map +1 -1
- package/dist/react/primitives/messagePart/MessagePartInProgress.d.ts +2 -3
- package/dist/react/primitives/messagePart/MessagePartInProgress.d.ts.map +1 -1
- package/dist/react/primitives/part/PartMessages.d.ts +3 -4
- package/dist/react/primitives/part/PartMessages.d.ts.map +1 -1
- package/dist/react/primitives/thread/ThreadMessages.d.ts +7 -8
- package/dist/react/primitives/thread/ThreadMessages.d.ts.map +1 -1
- package/dist/react/primitives/thread/ThreadSuggestions.d.ts +5 -6
- package/dist/react/primitives/thread/ThreadSuggestions.d.ts.map +1 -1
- package/dist/react/primitives/threadList/ThreadListItems.d.ts +4 -5
- package/dist/react/primitives/threadList/ThreadListItems.d.ts.map +1 -1
- package/dist/react/primitives/threadListItem/ThreadListItemTitle.d.ts +2 -3
- package/dist/react/primitives/threadListItem/ThreadListItemTitle.d.ts.map +1 -1
- package/dist/react/providers/AttachmentByIndexProvider.d.ts +2 -3
- package/dist/react/providers/AttachmentByIndexProvider.d.ts.map +1 -1
- package/dist/react/providers/ChainOfThoughtByIndicesProvider.d.ts +1 -2
- package/dist/react/providers/ChainOfThoughtByIndicesProvider.d.ts.map +1 -1
- package/dist/react/providers/ChainOfThoughtPartByIndexProvider.d.ts +1 -2
- package/dist/react/providers/ChainOfThoughtPartByIndexProvider.d.ts.map +1 -1
- package/dist/react/providers/MessageByIdProvider.d.ts +1 -2
- package/dist/react/providers/MessageByIdProvider.d.ts.map +1 -1
- package/dist/react/providers/MessageByIndexProvider.d.ts +1 -2
- package/dist/react/providers/MessageByIndexProvider.d.ts.map +1 -1
- package/dist/react/providers/PartByIndexProvider.d.ts +1 -2
- package/dist/react/providers/PartByIndexProvider.d.ts.map +1 -1
- package/dist/react/providers/QueueItemByIndexProvider.d.ts +2 -3
- package/dist/react/providers/QueueItemByIndexProvider.d.ts.map +1 -1
- package/dist/react/providers/ReadonlyThreadProvider.d.ts +2 -3
- package/dist/react/providers/ReadonlyThreadProvider.d.ts.map +1 -1
- package/dist/react/providers/SuggestionByIndexProvider.d.ts +2 -3
- package/dist/react/providers/SuggestionByIndexProvider.d.ts.map +1 -1
- package/dist/react/providers/TextMessagePartProvider.d.ts +1 -2
- package/dist/react/providers/TextMessagePartProvider.d.ts.map +1 -1
- package/dist/react/providers/ThreadListItemByIndexProvider.d.ts +1 -2
- package/dist/react/providers/ThreadListItemByIndexProvider.d.ts.map +1 -1
- package/dist/react/providers/ThreadListItemRuntimeProvider.d.ts +1 -2
- package/dist/react/providers/ThreadListItemRuntimeProvider.d.ts.map +1 -1
- package/dist/react/runtimes/RemoteThreadListHookInstanceManager.d.ts +3 -2
- package/dist/react/runtimes/RemoteThreadListHookInstanceManager.d.ts.map +1 -1
- package/dist/react/runtimes/RemoteThreadListHookInstanceManager.js +17 -7
- package/dist/react/runtimes/RemoteThreadListHookInstanceManager.js.map +1 -1
- package/dist/react/runtimes/RemoteThreadListThreadListRuntimeCore.d.ts +1 -2
- package/dist/react/runtimes/RemoteThreadListThreadListRuntimeCore.d.ts.map +1 -1
- package/dist/react/runtimes/RemoteThreadResource.d.ts +4 -5
- package/dist/react/runtimes/RemoteThreadResource.d.ts.map +1 -1
- package/dist/react/runtimes/RuntimeAdapterProvider.d.ts +3 -3
- package/dist/react/runtimes/RuntimeAdapterProvider.d.ts.map +1 -1
- package/dist/react/runtimes/assistant-transport/commandQueue.d.ts +2 -3
- package/dist/react/runtimes/assistant-transport/commandQueue.d.ts.map +1 -1
- package/dist/react/runtimes/assistant-transport/replayBoundaryStream.d.ts +3 -4
- package/dist/react/runtimes/assistant-transport/replayBoundaryStream.d.ts.map +1 -1
- package/dist/react/runtimes/assistant-transport/runManager.d.ts +2 -3
- package/dist/react/runtimes/assistant-transport/runManager.d.ts.map +1 -1
- package/dist/react/runtimes/assistant-transport/types.d.ts +17 -18
- package/dist/react/runtimes/assistant-transport/types.d.ts.map +1 -1
- package/dist/react/runtimes/assistant-transport/useAssistantTransportRuntime.d.ts +4 -5
- package/dist/react/runtimes/assistant-transport/useAssistantTransportRuntime.d.ts.map +1 -1
- package/dist/react/runtimes/assistant-transport/useConvertedState.d.ts +1 -2
- package/dist/react/runtimes/assistant-transport/useConvertedState.d.ts.map +1 -1
- package/dist/react/runtimes/assistant-transport/useLatestRef.d.ts +1 -2
- package/dist/react/runtimes/assistant-transport/useLatestRef.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/AssistantCloudThreadHistoryAdapter.d.ts +2 -3
- package/dist/react/runtimes/cloud/AssistantCloudThreadHistoryAdapter.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/AssistantCloudThreadHistoryAdapter.js +17 -4
- package/dist/react/runtimes/cloud/AssistantCloudThreadHistoryAdapter.js.map +1 -1
- package/dist/react/runtimes/cloud/CloudFileAttachmentAdapter.d.ts +1 -2
- package/dist/react/runtimes/cloud/CloudFileAttachmentAdapter.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/auiV0.d.ts +11 -3
- package/dist/react/runtimes/cloud/auiV0.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/auiV0.js +63 -2
- package/dist/react/runtimes/cloud/auiV0.js.map +1 -1
- package/dist/react/runtimes/cloud/createCloudThreadListAdapter.d.ts +4 -5
- package/dist/react/runtimes/cloud/createCloudThreadListAdapter.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/createCloudThreadListAdapterCreateFallback.d.ts +1 -2
- package/dist/react/runtimes/cloud/createCloudThreadListAdapterCreateFallback.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/sdkIdentity.d.ts +1 -2
- package/dist/react/runtimes/cloud/sdkIdentity.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/sdkIdentity.js +1 -1
- package/dist/react/runtimes/cloud/useCloudThreadListAdapter.d.ts +1 -2
- package/dist/react/runtimes/cloud/useCloudThreadListAdapter.d.ts.map +1 -1
- package/dist/react/runtimes/cloud/useCloudThreadListRuntime.d.ts +1 -2
- package/dist/react/runtimes/cloud/useCloudThreadListRuntime.d.ts.map +1 -1
- package/dist/react/runtimes/createMessageConverter.d.ts +1 -2
- package/dist/react/runtimes/createMessageConverter.d.ts.map +1 -1
- package/dist/react/runtimes/createRuntimeExtras.d.ts +3 -4
- package/dist/react/runtimes/createRuntimeExtras.d.ts.map +1 -1
- package/dist/react/runtimes/external-message-converter.d.ts +6 -6
- package/dist/react/runtimes/external-message-converter.d.ts.map +1 -1
- package/dist/react/runtimes/useExternalStoreRuntime.d.ts +1 -2
- package/dist/react/runtimes/useExternalStoreRuntime.d.ts.map +1 -1
- package/dist/react/runtimes/useExternalStoreSharedOptions.d.ts +1 -2
- package/dist/react/runtimes/useExternalStoreSharedOptions.d.ts.map +1 -1
- package/dist/react/runtimes/useLocalRuntime.d.ts +3 -4
- package/dist/react/runtimes/useLocalRuntime.d.ts.map +1 -1
- package/dist/react/runtimes/useRemoteThreadListRuntime.d.ts +1 -2
- package/dist/react/runtimes/useRemoteThreadListRuntime.d.ts.map +1 -1
- package/dist/react/runtimes/useRemoteThreadListRuntime.js +2 -2
- package/dist/react/runtimes/useRemoteThreadListRuntime.js.map +1 -1
- package/dist/react/runtimes/useRuntimeAdapters.d.ts +4 -4
- package/dist/react/runtimes/useRuntimeAdapters.d.ts.map +1 -1
- package/dist/react/runtimes/useStreamingTiming.d.ts +2 -2
- package/dist/react/runtimes/useStreamingTiming.d.ts.map +1 -1
- package/dist/react/types/MessagePartComponentTypes.d.ts +26 -27
- package/dist/react/types/MessagePartComponentTypes.d.ts.map +1 -1
- package/dist/react/types/scopes/dataRenderers.d.ts +3 -4
- package/dist/react/types/scopes/dataRenderers.d.ts.map +1 -1
- package/dist/react/types/scopes/interactables.d.ts +10 -11
- package/dist/react/types/scopes/interactables.d.ts.map +1 -1
- package/dist/react/types/scopes/tools.d.ts +4 -5
- package/dist/react/types/scopes/tools.d.ts.map +1 -1
- package/dist/react/utils/getMessageQuote.d.ts +1 -2
- package/dist/react/utils/getMessageQuote.d.ts.map +1 -1
- package/dist/react/utils/groupParts.d.ts +7 -8
- package/dist/react/utils/groupParts.d.ts.map +1 -1
- package/dist/react/utils/useJSONEqual.d.ts +2 -3
- package/dist/react/utils/useJSONEqual.d.ts.map +1 -1
- package/dist/react/utils/useJSONSchemaDependency.d.ts +1 -2
- package/dist/react/utils/useJSONSchemaDependency.d.ts.map +1 -1
- package/dist/runtime/api/assistant-runtime.d.ts +2 -3
- package/dist/runtime/api/assistant-runtime.d.ts.map +1 -1
- package/dist/runtime/api/attachment-runtime.d.ts +6 -7
- package/dist/runtime/api/attachment-runtime.d.ts.map +1 -1
- package/dist/runtime/api/bindings.d.ts +5 -6
- package/dist/runtime/api/bindings.d.ts.map +1 -1
- package/dist/runtime/api/composer-runtime.d.ts +10 -10
- package/dist/runtime/api/composer-runtime.d.ts.map +1 -1
- package/dist/runtime/api/message-part-runtime.d.ts +3 -4
- package/dist/runtime/api/message-part-runtime.d.ts.map +1 -1
- package/dist/runtime/api/message-part-runtime.js +3 -2
- package/dist/runtime/api/message-part-runtime.js.map +1 -1
- package/dist/runtime/api/message-runtime.d.ts +8 -6
- package/dist/runtime/api/message-runtime.d.ts.map +1 -1
- package/dist/runtime/api/message-runtime.js +3 -2
- package/dist/runtime/api/message-runtime.js.map +1 -1
- package/dist/runtime/api/paths.d.ts +6 -7
- package/dist/runtime/api/paths.d.ts.map +1 -1
- package/dist/runtime/api/thread-list-item-runtime.d.ts +8 -8
- package/dist/runtime/api/thread-list-item-runtime.d.ts.map +1 -1
- package/dist/runtime/api/thread-list-runtime.d.ts +4 -5
- package/dist/runtime/api/thread-list-runtime.d.ts.map +1 -1
- package/dist/runtime/api/thread-runtime.d.ts +10 -11
- package/dist/runtime/api/thread-runtime.d.ts.map +1 -1
- package/dist/runtime/base/base-assistant-runtime-core.d.ts +1 -2
- package/dist/runtime/base/base-assistant-runtime-core.d.ts.map +1 -1
- package/dist/runtime/base/base-composer-runtime-core.d.ts +1 -2
- package/dist/runtime/base/base-composer-runtime-core.d.ts.map +1 -1
- package/dist/runtime/base/base-thread-runtime-core.d.ts +8 -3
- package/dist/runtime/base/base-thread-runtime-core.d.ts.map +1 -1
- package/dist/runtime/base/base-thread-runtime-core.js +71 -27
- package/dist/runtime/base/base-thread-runtime-core.js.map +1 -1
- package/dist/runtime/base/default-edit-composer-runtime-core.d.ts +1 -2
- package/dist/runtime/base/default-edit-composer-runtime-core.d.ts.map +1 -1
- package/dist/runtime/base/default-edit-composer-runtime-core.js +12 -2
- package/dist/runtime/base/default-edit-composer-runtime-core.js.map +1 -1
- package/dist/runtime/base/default-thread-composer-runtime-core.d.ts +1 -2
- package/dist/runtime/base/default-thread-composer-runtime-core.d.ts.map +1 -1
- package/dist/runtime/base/default-thread-composer-runtime-core.js +7 -1
- package/dist/runtime/base/default-thread-composer-runtime-core.js.map +1 -1
- package/dist/runtime/branch/external-thread-branch-adapter.d.ts +1 -2
- package/dist/runtime/branch/external-thread-branch-adapter.d.ts.map +1 -1
- package/dist/runtime/interfaces/assistant-runtime-core.d.ts +1 -2
- package/dist/runtime/interfaces/assistant-runtime-core.d.ts.map +1 -1
- package/dist/runtime/interfaces/composer-runtime-core.d.ts +10 -11
- package/dist/runtime/interfaces/composer-runtime-core.d.ts.map +1 -1
- package/dist/runtime/interfaces/thread-list-runtime-core.d.ts +4 -5
- package/dist/runtime/interfaces/thread-list-runtime-core.d.ts.map +1 -1
- package/dist/runtime/interfaces/thread-runtime-core.d.ts +17 -16
- package/dist/runtime/interfaces/thread-runtime-core.d.ts.map +1 -1
- package/dist/runtime/queue/external-thread-queue-adapter.d.ts +2 -3
- package/dist/runtime/queue/external-thread-queue-adapter.d.ts.map +1 -1
- package/dist/runtime/queue/message-queue.d.ts +5 -4
- package/dist/runtime/queue/message-queue.d.ts.map +1 -1
- package/dist/runtime/queue/message-queue.js +9 -1
- package/dist/runtime/queue/message-queue.js.map +1 -1
- package/dist/runtime/queue/queue-item.d.ts +2 -3
- package/dist/runtime/queue/queue-item.d.ts.map +1 -1
- package/dist/runtime/utils/abortable-thread-load.d.ts +2 -3
- package/dist/runtime/utils/abortable-thread-load.d.ts.map +1 -1
- package/dist/runtime/utils/attachment-add-operations.d.ts +3 -4
- package/dist/runtime/utils/attachment-add-operations.d.ts.map +1 -1
- package/dist/runtime/utils/auto-status.d.ts +7 -8
- package/dist/runtime/utils/auto-status.d.ts.map +1 -1
- package/dist/runtime/utils/chat-model-adapter.d.ts +5 -6
- package/dist/runtime/utils/chat-model-adapter.d.ts.map +1 -1
- package/dist/runtime/utils/external-message-conversion.d.ts +15 -16
- package/dist/runtime/utils/external-message-conversion.d.ts.map +1 -1
- package/dist/runtime/utils/external-message-conversion.js +3 -2
- package/dist/runtime/utils/external-message-conversion.js.map +1 -1
- package/dist/runtime/utils/external-store-message.d.ts +4 -5
- package/dist/runtime/utils/external-store-message.d.ts.map +1 -1
- package/dist/runtime/utils/message-repository-session.d.ts +3 -4
- package/dist/runtime/utils/message-repository-session.d.ts.map +1 -1
- package/dist/runtime/utils/message-repository.d.ts +4 -5
- package/dist/runtime/utils/message-repository.d.ts.map +1 -1
- package/dist/runtime/utils/pending-tool-calls.d.ts +2 -3
- package/dist/runtime/utils/pending-tool-calls.d.ts.map +1 -1
- package/dist/runtime/utils/resolveToolApprovalResponse.d.ts +1 -2
- package/dist/runtime/utils/resolveToolApprovalResponse.d.ts.map +1 -1
- package/dist/runtime/utils/runtime-extras-brand.d.ts +2 -3
- package/dist/runtime/utils/runtime-extras-brand.d.ts.map +1 -1
- package/dist/runtime/utils/stored-message-parts.d.ts +21 -0
- package/dist/runtime/utils/stored-message-parts.d.ts.map +1 -0
- package/dist/runtime/utils/stored-message-parts.js +83 -0
- package/dist/runtime/utils/stored-message-parts.js.map +1 -0
- package/dist/runtime/utils/streaming-timing.d.ts +4 -5
- package/dist/runtime/utils/streaming-timing.d.ts.map +1 -1
- package/dist/runtime/utils/thread-message-like.d.ts +5 -5
- 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/runtime/utils/thread-runtime-lifecycle.d.ts +3 -4
- package/dist/runtime/utils/thread-runtime-lifecycle.d.ts.map +1 -1
- package/dist/runtime/utils/tool-call-tree.d.ts +4 -5
- package/dist/runtime/utils/tool-call-tree.d.ts.map +1 -1
- package/dist/runtimes/assistant-transport/utils.d.ts +1 -2
- package/dist/runtimes/assistant-transport/utils.d.ts.map +1 -1
- package/dist/runtimes/external-store/external-store-adapter.d.ts +9 -6
- package/dist/runtimes/external-store/external-store-adapter.d.ts.map +1 -1
- package/dist/runtimes/external-store/external-store-runtime-core.d.ts +1 -2
- 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 +2 -3
- 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 +2 -3
- 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 +4 -3
- 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 +29 -6
- package/dist/runtimes/external-store/external-store-thread-runtime-core.js.map +1 -1
- package/dist/runtimes/external-store/thread-message-converter.d.ts +2 -3
- package/dist/runtimes/external-store/thread-message-converter.d.ts.map +1 -1
- package/dist/runtimes/inert/InertThreadRuntimeCore.d.ts +2 -3
- package/dist/runtimes/inert/InertThreadRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/local/local-runtime-core.d.ts +1 -2
- package/dist/runtimes/local/local-runtime-core.d.ts.map +1 -1
- package/dist/runtimes/local/local-runtime-options.d.ts +1 -2
- package/dist/runtimes/local/local-runtime-options.d.ts.map +1 -1
- package/dist/runtimes/local/local-thread-list-runtime-core.d.ts +2 -3
- package/dist/runtimes/local/local-thread-list-runtime-core.d.ts.map +1 -1
- package/dist/runtimes/local/local-thread-runtime-core.d.ts +9 -4
- package/dist/runtimes/local/local-thread-runtime-core.d.ts.map +1 -1
- package/dist/runtimes/local/local-thread-runtime-core.js +53 -9
- package/dist/runtimes/local/local-thread-runtime-core.js.map +1 -1
- package/dist/runtimes/local/should-continue.d.ts +1 -2
- package/dist/runtimes/local/should-continue.d.ts.map +1 -1
- package/dist/runtimes/readonly/ReadonlyThreadRuntimeCore.d.ts +1 -2
- 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-changed.d.ts +1 -2
- package/dist/runtimes/remote-thread-list/adapter-changed.d.ts.map +1 -1
- package/dist/runtimes/remote-thread-list/empty-thread-core.d.ts +1 -2
- package/dist/runtimes/remote-thread-list/empty-thread-core.d.ts.map +1 -1
- package/dist/runtimes/remote-thread-list/optimistic-state.d.ts +1 -2
- package/dist/runtimes/remote-thread-list/optimistic-state.d.ts.map +1 -1
- package/dist/runtimes/remote-thread-list/remote-thread-state.d.ts +16 -17
- package/dist/runtimes/remote-thread-list/remote-thread-state.d.ts.map +1 -1
- package/dist/runtimes/remote-thread-list/title-generation.d.ts +7 -8
- package/dist/runtimes/remote-thread-list/title-generation.d.ts.map +1 -1
- package/dist/runtimes/remote-thread-list/title.d.ts +2 -3
- package/dist/runtimes/remote-thread-list/title.d.ts.map +1 -1
- package/dist/runtimes/remote-thread-list/types.d.ts +8 -9
- package/dist/runtimes/remote-thread-list/types.d.ts.map +1 -1
- package/dist/runtimes/tool-invocations/ToolInvocationTracker.d.ts +4 -5
- package/dist/runtimes/tool-invocations/ToolInvocationTracker.d.ts.map +1 -1
- package/dist/store/clients/chain-of-thought-client.d.ts +1 -2
- package/dist/store/clients/chain-of-thought-client.d.ts.map +1 -1
- package/dist/store/clients/external-thread.d.ts +3 -4
- package/dist/store/clients/external-thread.d.ts.map +1 -1
- package/dist/store/clients/external-thread.js +15 -11
- package/dist/store/clients/external-thread.js.map +1 -1
- package/dist/store/clients/model-context-client.d.ts +1 -2
- package/dist/store/clients/model-context-client.d.ts.map +1 -1
- package/dist/store/clients/no-op-composer-client.d.ts +1 -2
- package/dist/store/clients/no-op-composer-client.d.ts.map +1 -1
- package/dist/store/clients/runtime-adapter.d.ts +1 -2
- package/dist/store/clients/runtime-adapter.d.ts.map +1 -1
- package/dist/store/clients/single-thread-list.d.ts +1 -2
- package/dist/store/clients/single-thread-list.d.ts.map +1 -1
- package/dist/store/clients/suggestions.d.ts +3 -4
- package/dist/store/clients/suggestions.d.ts.map +1 -1
- package/dist/store/clients/thread-message-client.d.ts +2 -3
- package/dist/store/clients/thread-message-client.d.ts.map +1 -1
- package/dist/store/clients/thread-selection-events.d.ts +1 -2
- package/dist/store/clients/thread-selection-events.d.ts.map +1 -1
- package/dist/store/clients/thread-tasks.d.ts +3 -4
- package/dist/store/clients/thread-tasks.d.ts.map +1 -1
- package/dist/store/env.d.ts +1 -2
- package/dist/store/env.d.ts.map +1 -1
- package/dist/store/primitive-predicates.d.ts +11 -12
- package/dist/store/primitive-predicates.d.ts.map +1 -1
- package/dist/store/primitive-predicates.js +2 -2
- package/dist/store/primitive-predicates.js.map +1 -1
- package/dist/store/runtime-clients/attachment-runtime-client.d.ts +1 -2
- package/dist/store/runtime-clients/attachment-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/composer-runtime-client.d.ts +1 -2
- package/dist/store/runtime-clients/composer-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/handle-runtime-action.d.ts +1 -2
- package/dist/store/runtime-clients/handle-runtime-action.d.ts.map +1 -1
- package/dist/store/runtime-clients/handle-thread-list-action.d.ts +1 -2
- package/dist/store/runtime-clients/handle-thread-list-action.d.ts.map +1 -1
- package/dist/store/runtime-clients/liveRef.d.ts +1 -2
- package/dist/store/runtime-clients/liveRef.d.ts.map +1 -1
- package/dist/store/runtime-clients/message-part-runtime-client.d.ts +1 -2
- 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 -2
- 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 +1 -2
- 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 +1 -2
- package/dist/store/runtime-clients/thread-list-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/thread-runtime-client.d.ts +1 -2
- package/dist/store/runtime-clients/thread-runtime-client.d.ts.map +1 -1
- package/dist/store/runtime-clients/useSubscribable.d.ts +1 -2
- package/dist/store/runtime-clients/useSubscribable.d.ts.map +1 -1
- package/dist/store/scopes/attachment.d.ts +4 -5
- package/dist/store/scopes/attachment.d.ts.map +1 -1
- package/dist/store/scopes/chain-of-thought.d.ts +5 -6
- package/dist/store/scopes/chain-of-thought.d.ts.map +1 -1
- package/dist/store/scopes/composer.d.ts +6 -7
- package/dist/store/scopes/composer.d.ts.map +1 -1
- package/dist/store/scopes/message.d.ts +6 -6
- package/dist/store/scopes/message.d.ts.map +1 -1
- package/dist/store/scopes/model-context.d.ts +3 -4
- package/dist/store/scopes/model-context.d.ts.map +1 -1
- package/dist/store/scopes/part.d.ts +4 -5
- package/dist/store/scopes/part.d.ts.map +1 -1
- package/dist/store/scopes/queue-item.d.ts +4 -4
- package/dist/store/scopes/queue-item.d.ts.map +1 -1
- package/dist/store/scopes/suggestion.d.ts +4 -5
- package/dist/store/scopes/suggestion.d.ts.map +1 -1
- package/dist/store/scopes/suggestions.d.ts +5 -6
- package/dist/store/scopes/suggestions.d.ts.map +1 -1
- package/dist/store/scopes/task.d.ts +4 -5
- package/dist/store/scopes/task.d.ts.map +1 -1
- package/dist/store/scopes/thread-list-item.d.ts +5 -6
- package/dist/store/scopes/thread-list-item.d.ts.map +1 -1
- package/dist/store/scopes/thread.d.ts +5 -6
- package/dist/store/scopes/thread.d.ts.map +1 -1
- package/dist/store/scopes/threads.d.ts +4 -5
- package/dist/store/scopes/threads.d.ts.map +1 -1
- package/dist/subscribable/subscribable.d.ts +15 -16
- package/dist/subscribable/subscribable.d.ts.map +1 -1
- package/dist/tests/remote-thread-list-test-helpers.d.ts +5 -6
- package/dist/tests/remote-thread-list-test-helpers.d.ts.map +1 -1
- package/dist/types/attachment.d.ts +9 -10
- package/dist/types/attachment.d.ts.map +1 -1
- package/dist/types/augmentations.d.ts +3 -4
- package/dist/types/augmentations.d.ts.map +1 -1
- package/dist/types/directive.d.ts +2 -3
- package/dist/types/directive.d.ts.map +1 -1
- package/dist/types/error.d.ts +8 -9
- package/dist/types/error.d.ts.map +1 -1
- package/dist/types/message.d.ts +48 -46
- package/dist/types/message.d.ts.map +1 -1
- package/dist/types/message.js.map +1 -1
- package/dist/types/quote.d.ts +1 -2
- package/dist/types/quote.d.ts.map +1 -1
- package/dist/types/trigger.d.ts +2 -3
- package/dist/types/trigger.d.ts.map +1 -1
- package/dist/types/unsubscribe.d.ts +1 -2
- package/dist/types/unsubscribe.d.ts.map +1 -1
- package/dist/utils/abortable-iterable.d.ts +2 -3
- package/dist/utils/abortable-iterable.d.ts.map +1 -1
- package/dist/utils/composite-context-provider.d.ts +1 -2
- package/dist/utils/composite-context-provider.d.ts.map +1 -1
- package/dist/utils/data-url.d.ts +6 -7
- package/dist/utils/data-url.d.ts.map +1 -1
- package/dist/utils/getGroupStatus.d.ts +2 -3
- package/dist/utils/getGroupStatus.d.ts.map +1 -1
- package/dist/utils/id.d.ts +3 -4
- package/dist/utils/id.d.ts.map +1 -1
- package/dist/utils/image-media-type.d.ts +1 -2
- package/dist/utils/image-media-type.d.ts.map +1 -1
- package/dist/utils/invoke-user-callback.d.ts +1 -2
- package/dist/utils/invoke-user-callback.d.ts.map +1 -1
- package/dist/utils/json/is-json-equal.d.ts +1 -2
- package/dist/utils/json/is-json-equal.d.ts.map +1 -1
- package/dist/utils/json/is-json.d.ts +4 -5
- package/dist/utils/json/is-json.d.ts.map +1 -1
- package/dist/utils/json/stable-stringify-tool-args.d.ts +2 -3
- package/dist/utils/json/stable-stringify-tool-args.d.ts.map +1 -1
- package/dist/utils/normalizePartStatus.d.ts +4 -5
- package/dist/utils/normalizePartStatus.d.ts.map +1 -1
- package/dist/utils/notify-event-listeners.d.ts +1 -2
- package/dist/utils/notify-event-listeners.d.ts.map +1 -1
- package/dist/utils/record.d.ts +1 -2
- package/dist/utils/record.d.ts.map +1 -1
- package/dist/utils/silent-runtime-action.d.ts +2 -3
- package/dist/utils/silent-runtime-action.d.ts.map +1 -1
- package/dist/utils/text.d.ts +1 -2
- package/dist/utils/text.d.ts.map +1 -1
- package/dist/utils/wire-media.d.ts +3 -4
- package/dist/utils/wire-media.d.ts.map +1 -1
- package/package.json +14 -13
- package/src/adapters/attachment.ts +8 -1
- package/src/adapters/feedback.ts +1 -0
- package/src/model-context/frame/provider.test.ts +45 -20
- package/src/react/RuntimeAdapter.test.ts +4 -1
- package/src/react/adapters/LocalStorageThreadListAdapter.test.ts +117 -0
- package/src/react/adapters/LocalStorageThreadListAdapter.tsx +27 -74
- package/src/react/client/Interactables.test.ts +12 -7
- package/src/react/client/RemoteThreadList.concurrent.test.tsx +9 -3
- package/src/react/client/RemoteThreadList.test.ts +5 -6
- package/src/react/interactables-legacy/Interactables.test.ts +9 -3
- package/src/react/interactables-legacy/useAssistantInteractable.test.tsx +40 -22
- package/src/react/model-context/useInteractable.test.tsx +56 -29
- package/src/react/primitive-hooks/useActionBarCopy.test.ts +5 -5
- package/src/react/primitives/generativeUI/GenerativeUI.test.tsx +54 -0
- package/src/react/primitives/generativeUI/GenerativeUI.tsx +13 -18
- package/src/react/primitives/message/MessageGroupedParts.test.tsx +4 -1
- package/src/react/primitives/thread/ThreadMessages.test.tsx +25 -7
- package/src/react/runtimes/RemoteThreadListHookInstanceManager.layout.test.tsx +62 -0
- package/src/react/runtimes/RemoteThreadListHookInstanceManager.retry.test.tsx +2 -2
- package/src/react/runtimes/RemoteThreadListHookInstanceManager.test.tsx +23 -20
- package/src/react/runtimes/RemoteThreadListHookInstanceManager.title.test.tsx +24 -17
- package/src/react/runtimes/RemoteThreadListHookInstanceManager.tsx +39 -24
- package/src/react/runtimes/assistant-transport/transport-scheduling.test.ts +73 -46
- package/src/react/runtimes/assistant-transport/useAssistantTransportRuntime.test.tsx +66 -1
- package/src/react/runtimes/cloud/AssistantCloudThreadHistoryAdapter.test.tsx +102 -0
- package/src/react/runtimes/cloud/AssistantCloudThreadHistoryAdapter.ts +24 -11
- package/src/react/runtimes/cloud/CloudFileAttachmentAdapter.test.ts +8 -4
- package/src/react/runtimes/cloud/auiV0.ts +121 -1
- package/src/react/runtimes/cloud/auiV0DecodeSafely.test.ts +522 -0
- package/src/react/runtimes/external-message-converter.test.ts +7 -3
- package/src/react/runtimes/remote-thread-hook-on-tap.test.ts +2 -1
- package/src/react/runtimes/useExternalStoreRuntime.lifecycle.test.tsx +8 -2
- package/src/react/runtimes/useExternalStoreRuntime.suggestions.test.tsx +6 -2
- package/src/react/runtimes/useRemoteThreadListRuntime.concurrent.test.tsx +84 -4
- package/src/react/runtimes/useRemoteThreadListRuntime.ts +5 -1
- package/src/runtime/api/message-part-runtime.ts +4 -1
- package/src/runtime/api/message-runtime.ts +15 -2
- package/src/runtime/base/base-thread-runtime-core.test.ts +761 -18
- package/src/runtime/base/base-thread-runtime-core.ts +89 -26
- package/src/runtime/base/default-edit-composer-runtime-core.ts +12 -2
- package/src/runtime/base/default-thread-composer-runtime-core.ts +12 -1
- package/src/runtime/interfaces/thread-runtime-core.ts +2 -0
- package/src/runtime/queue/message-queue.ts +11 -1
- package/src/runtime/utils/external-message-conversion.test.ts +43 -0
- package/src/runtime/utils/external-message-conversion.ts +6 -2
- package/src/runtime/utils/stored-message-parts.ts +174 -0
- package/src/runtime/utils/thread-message-like.ts +7 -2
- package/src/runtimes/external-store/external-store-adapter.ts +4 -0
- package/src/runtimes/external-store/external-store-thread-runtime-core.ts +44 -9
- package/src/runtimes/local/local-thread-runtime-core.test.ts +168 -12
- package/src/runtimes/local/local-thread-runtime-core.ts +80 -9
- package/src/store/clients/external-thread.ts +34 -13
- package/src/store/primitive-predicates.test.ts +16 -0
- package/src/store/primitive-predicates.ts +4 -1
- package/src/store/runtime-clients/thread-runtime-client.test.tsx +110 -0
- package/src/store/scopes/message.ts +4 -1
- package/src/subscribable/subscribable.test.ts +7 -2
- package/src/tests/attachment-adapters.test.ts +16 -1
- package/src/tests/auiV0Encode.test.ts +4 -0
- package/src/tests/base-composer-runtime-core-addAttachment.test.ts +6 -6
- package/src/tests/base-composer-runtime-core.test.ts +16 -5
- package/src/tests/composer-can-cancel.test.ts +35 -6
- package/src/tests/composer-can-send.test.ts +22 -0
- package/src/tests/default-edit-composer-runtime-core.test.ts +47 -0
- package/src/tests/external-store-thread-runtime-core-adapter.test.ts +229 -27
- package/src/tests/external-store-thread-runtime-core.test.ts +31 -0
- package/src/tests/external-thread-attachments.test.tsx +22 -23
- package/src/tests/external-thread-feedback.test.tsx +20 -7
- package/src/tests/external-thread-parity.test.tsx +1 -1
- package/src/tests/message-queue.test.ts +45 -10
- package/src/tests/thread-switch-events.test.tsx +11 -7
- package/src/tests/useRemoteThreadListRuntime-controlled.test.tsx +2 -1
- package/src/types/message.test.ts +19 -0
- package/src/types/message.ts +16 -8
|
@@ -5,38 +5,38 @@ import "../../index.js";
|
|
|
5
5
|
import { ToolResponse } from "assistant-stream";
|
|
6
6
|
import { ComponentType, PropsWithChildren } from "react";
|
|
7
7
|
//#region src/react/types/MessagePartComponentTypes.d.ts
|
|
8
|
-
type EmptyMessagePartProps = {
|
|
8
|
+
export type EmptyMessagePartProps = {
|
|
9
9
|
status: MessagePartStatus;
|
|
10
10
|
};
|
|
11
|
-
type EmptyMessagePartComponent = ComponentType<EmptyMessagePartProps>;
|
|
12
|
-
type TextMessagePartProps = MessagePartState & TextMessagePart;
|
|
13
|
-
type TextMessagePartComponent = ComponentType<TextMessagePartProps>;
|
|
14
|
-
type ReasoningMessagePartProps = MessagePartState & ReasoningMessagePart;
|
|
15
|
-
type ReasoningMessagePartComponent = ComponentType<ReasoningMessagePartProps>;
|
|
16
|
-
type ReasoningGroupProps = PropsWithChildren<{
|
|
11
|
+
export type EmptyMessagePartComponent = ComponentType<EmptyMessagePartProps>;
|
|
12
|
+
export type TextMessagePartProps = MessagePartState & TextMessagePart;
|
|
13
|
+
export type TextMessagePartComponent = ComponentType<TextMessagePartProps>;
|
|
14
|
+
export type ReasoningMessagePartProps = MessagePartState & ReasoningMessagePart;
|
|
15
|
+
export type ReasoningMessagePartComponent = ComponentType<ReasoningMessagePartProps>;
|
|
16
|
+
export type ReasoningGroupProps = PropsWithChildren<{
|
|
17
17
|
startIndex: number;
|
|
18
18
|
endIndex: number;
|
|
19
19
|
}>;
|
|
20
|
-
type ReasoningGroupComponent = ComponentType<ReasoningGroupProps>;
|
|
21
|
-
type SourceMessagePartProps = MessagePartState & SourceMessagePart;
|
|
22
|
-
type SourceMessagePartComponent = ComponentType<SourceMessagePartProps>;
|
|
23
|
-
type ImageMessagePartProps = MessagePartState & ImageMessagePart;
|
|
24
|
-
type ImageMessagePartComponent = ComponentType<ImageMessagePartProps>;
|
|
25
|
-
type FileMessagePartProps = MessagePartState & FileMessagePart;
|
|
26
|
-
type FileMessagePartComponent = ComponentType<FileMessagePartProps>;
|
|
20
|
+
export type ReasoningGroupComponent = ComponentType<ReasoningGroupProps>;
|
|
21
|
+
export type SourceMessagePartProps = MessagePartState & SourceMessagePart;
|
|
22
|
+
export type SourceMessagePartComponent = ComponentType<SourceMessagePartProps>;
|
|
23
|
+
export type ImageMessagePartProps = MessagePartState & ImageMessagePart;
|
|
24
|
+
export type ImageMessagePartComponent = ComponentType<ImageMessagePartProps>;
|
|
25
|
+
export type FileMessagePartProps = MessagePartState & FileMessagePart;
|
|
26
|
+
export type FileMessagePartComponent = ComponentType<FileMessagePartProps>;
|
|
27
27
|
/**
|
|
28
28
|
* @deprecated Use {@link FileMessagePartProps} and render `audio/*` mime types
|
|
29
29
|
* from the `File` slot.
|
|
30
30
|
*/
|
|
31
|
-
type Unstable_AudioMessagePartProps = MessagePartState & Unstable_AudioMessagePart;
|
|
31
|
+
export type Unstable_AudioMessagePartProps = MessagePartState & Unstable_AudioMessagePart;
|
|
32
32
|
/**
|
|
33
33
|
* @deprecated Use {@link FileMessagePartComponent} and render `audio/*` mime
|
|
34
34
|
* types from the `File` slot.
|
|
35
35
|
*/
|
|
36
|
-
type Unstable_AudioMessagePartComponent = ComponentType<Unstable_AudioMessagePartProps>;
|
|
37
|
-
type DataMessagePartProps<T = any> = MessagePartState & DataMessagePart<T>;
|
|
38
|
-
type DataMessagePartComponent<T = any> = ComponentType<DataMessagePartProps<T>>;
|
|
39
|
-
type ToolCallMessagePartProps<TArgs = any, TResult = unknown> = MessagePartState & ToolCallMessagePart<TArgs, TResult> & {
|
|
36
|
+
export type Unstable_AudioMessagePartComponent = ComponentType<Unstable_AudioMessagePartProps>;
|
|
37
|
+
export type DataMessagePartProps<T = any> = MessagePartState & DataMessagePart<T>;
|
|
38
|
+
export type DataMessagePartComponent<T = any> = ComponentType<DataMessagePartProps<T>>;
|
|
39
|
+
export type ToolCallMessagePartProps<TArgs = any, TResult = unknown> = MessagePartState & ToolCallMessagePart<TArgs, TResult> & {
|
|
40
40
|
/**
|
|
41
41
|
* Sets the result for this tool-call message part.
|
|
42
42
|
*
|
|
@@ -62,9 +62,9 @@ type ToolCallMessagePartProps<TArgs = any, TResult = unknown> = MessagePartState
|
|
|
62
62
|
respondToApproval: (response: ToolApprovalResponse) => Promise<void>;
|
|
63
63
|
};
|
|
64
64
|
/** Component used to render a tool-call message part. */
|
|
65
|
-
type ToolCallMessagePartComponent<TArgs = any, TResult = any> = ComponentType<ToolCallMessagePartProps<TArgs, TResult>>;
|
|
66
|
-
type QuoteMessagePartProps = QuoteInfo;
|
|
67
|
-
type QuoteMessagePartComponent = ComponentType<QuoteMessagePartProps>;
|
|
65
|
+
export type ToolCallMessagePartComponent<TArgs = any, TResult = any> = ComponentType<ToolCallMessagePartProps<TArgs, TResult>>;
|
|
66
|
+
export type QuoteMessagePartProps = QuoteInfo;
|
|
67
|
+
export type QuoteMessagePartComponent = ComponentType<QuoteMessagePartProps>;
|
|
68
68
|
/**
|
|
69
69
|
* The consumer-provided allowlist of components a generative-ui spec is
|
|
70
70
|
* permitted to render. Keys are the component names referenced in the spec
|
|
@@ -73,10 +73,10 @@ type QuoteMessagePartComponent = ComponentType<QuoteMessagePartProps>;
|
|
|
73
73
|
* This registry is the security boundary in the same-realm rendering path —
|
|
74
74
|
* any name not present in the registry is rejected with a typed error.
|
|
75
75
|
*/
|
|
76
|
-
type GenerativeUIComponentRegistry = Record<string, ComponentType<any>>;
|
|
77
|
-
type GenerativeUIMessagePartProps = MessagePartState & GenerativeUIMessagePart;
|
|
78
|
-
type GenerativeUIMessagePartComponent = ComponentType<GenerativeUIMessagePartProps>;
|
|
79
|
-
type GenerativeUIRenderProps = {
|
|
76
|
+
export type GenerativeUIComponentRegistry = Record<string, ComponentType<any>>;
|
|
77
|
+
export type GenerativeUIMessagePartProps = MessagePartState & GenerativeUIMessagePart;
|
|
78
|
+
export type GenerativeUIMessagePartComponent = ComponentType<GenerativeUIMessagePartProps>;
|
|
79
|
+
export type GenerativeUIRenderProps = {
|
|
80
80
|
/** The JSON spec to render. */
|
|
81
81
|
spec: GenerativeUISpec;
|
|
82
82
|
/** The component allowlist. */
|
|
@@ -88,5 +88,4 @@ type GenerativeUIRenderProps = {
|
|
|
88
88
|
}> | undefined;
|
|
89
89
|
};
|
|
90
90
|
//#endregion
|
|
91
|
-
export { DataMessagePartComponent, DataMessagePartProps, EmptyMessagePartComponent, EmptyMessagePartProps, FileMessagePartComponent, FileMessagePartProps, GenerativeUIComponentRegistry, GenerativeUIMessagePartComponent, GenerativeUIMessagePartProps, GenerativeUIRenderProps, ImageMessagePartComponent, ImageMessagePartProps, QuoteMessagePartComponent, QuoteMessagePartProps, ReasoningGroupComponent, ReasoningGroupProps, ReasoningMessagePartComponent, ReasoningMessagePartProps, SourceMessagePartComponent, SourceMessagePartProps, TextMessagePartComponent, TextMessagePartProps, ToolCallMessagePartComponent, ToolCallMessagePartProps, Unstable_AudioMessagePartComponent, Unstable_AudioMessagePartProps };
|
|
92
91
|
//# sourceMappingURL=MessagePartComponentTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessagePartComponentTypes.d.ts","names":[],"sources":["../../../src/react/types/MessagePartComponentTypes.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"MessagePartComponentTypes.d.ts","names":[],"sources":["../../../src/react/types/MessagePartComponentTypes.ts"],"mappings":";;;;;;;YAmBY;EACV,QAAQ;;YAEE,4BAA4B,cAAc;YAE1C,uBAAuB,mBAAmB;YAC1C,2BAA2B,cAAc;YAEzC,4BAA4B,mBAAmB;YAC/C,gCACV,cAAc;YAEJ,sBAAsB;EAChC;EACA;;YAEU,0BAA0B,cAAc;YAExC,yBAAyB,mBAAmB;YAC5C,6BAA6B,cAAc;YAE3C,wBAAwB,mBAAmB;YAC3C,4BAA4B,cAAc;YAE1C,uBAAuB,mBAAmB;YAC1C,2BAA2B,cAAc;;;;;YAMzC,iCAAiC,mBAC3C;;;;;YAKU,qCACV,cAAc;YAEJ,qBAAqB,WAAW,mBAC1C,gBAAgB;YACN,yBAAyB,WAAW,cAC9C,qBAAqB;YAGX,yBACV,aACA,qBACE,mBACF,oBAAoB,OAAO;;;;;;;EAOzB,YAAY,QAAQ,UAAU,aAAa;;;;;EAK3C,SAAS;;;;;;;;;;;EAWT,oBAAoB,UAAU,yBAAyB;;;YAI/C,6BACV,aACA,iBACE,cAAc,yBAAyB,OAAO;YAEtC,wBAAwB;YACxB,4BAA4B,cAAc;;;;;;;;;YAU1C,gCAAgC,eAAe;YAE/C,+BAA+B,mBACzC;YACU,mCACV,cAAc;YAEJ;;EAEV,MAAM;;EAEN,YAAY;;EAEZ,WAAW;IAAgB;IAAmB"}
|
|
@@ -2,18 +2,17 @@ import { Unsubscribe } from "../../../types/unsubscribe.js";
|
|
|
2
2
|
import { DataMessagePartComponent } from "../MessagePartComponentTypes.js";
|
|
3
3
|
import "../../../index.js";
|
|
4
4
|
//#region src/react/types/scopes/dataRenderers.d.ts
|
|
5
|
-
type DataRenderersState = {
|
|
5
|
+
export type DataRenderersState = {
|
|
6
6
|
renderers: Record<string, DataMessagePartComponent[]>;
|
|
7
7
|
fallbacks: DataMessagePartComponent[];
|
|
8
8
|
};
|
|
9
|
-
type DataRenderersMethods = {
|
|
9
|
+
export type DataRenderersMethods = {
|
|
10
10
|
getState(): DataRenderersState;
|
|
11
11
|
setDataUI(name: string, render: DataMessagePartComponent): Unsubscribe;
|
|
12
12
|
setFallbackDataUI(render: DataMessagePartComponent): Unsubscribe;
|
|
13
13
|
};
|
|
14
|
-
type DataRenderersClientSchema = {
|
|
14
|
+
export type DataRenderersClientSchema = {
|
|
15
15
|
methods: DataRenderersMethods;
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
|
-
export { DataRenderersClientSchema, DataRenderersMethods, DataRenderersState };
|
|
19
18
|
//# sourceMappingURL=dataRenderers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataRenderers.d.ts","names":[],"sources":["../../../../src/react/types/scopes/dataRenderers.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"dataRenderers.d.ts","names":[],"sources":["../../../../src/react/types/scopes/dataRenderers.ts"],"mappings":";;;;YAGY;EACV,WAAW,eAAe;EAC1B,WAAW;;YAGD;EACV,YAAY;EACZ,UAAU,cAAc,QAAQ,2BAA2B;EAC3D,kBAAkB,QAAQ,2BAA2B;;YAG3C;EACV,SAAS"}
|
|
@@ -7,11 +7,11 @@ import { Tool } from "assistant-stream";
|
|
|
7
7
|
* Schema type matching Tool["parameters"] from assistant-stream.
|
|
8
8
|
* Accepts both StandardSchemaV1 and JSONSchema7.
|
|
9
9
|
*/
|
|
10
|
-
type Unstable_InteractableStateSchema = NonNullable<Extract<Tool, {
|
|
10
|
+
export type Unstable_InteractableStateSchema = NonNullable<Extract<Tool, {
|
|
11
11
|
parameters: unknown;
|
|
12
12
|
}>["parameters"]>;
|
|
13
13
|
type InteractableScope = "app" | "thread";
|
|
14
|
-
type Unstable_InteractableDefinition = {
|
|
14
|
+
export type Unstable_InteractableDefinition = {
|
|
15
15
|
id: string;
|
|
16
16
|
name: string;
|
|
17
17
|
description: string;
|
|
@@ -20,7 +20,7 @@ type Unstable_InteractableDefinition = {
|
|
|
20
20
|
initialState: unknown;
|
|
21
21
|
scope?: InteractableScope | undefined;
|
|
22
22
|
};
|
|
23
|
-
type Unstable_InteractableRegistration = {
|
|
23
|
+
export type Unstable_InteractableRegistration = {
|
|
24
24
|
id: string;
|
|
25
25
|
name: string;
|
|
26
26
|
description: string;
|
|
@@ -33,21 +33,21 @@ type Unstable_InteractableRegistration = {
|
|
|
33
33
|
*/
|
|
34
34
|
updateRender?: ToolCallMessagePartComponent | undefined;
|
|
35
35
|
};
|
|
36
|
-
type Unstable_InteractablePersistenceStatus = {
|
|
36
|
+
export type Unstable_InteractablePersistenceStatus = {
|
|
37
37
|
isPending: boolean;
|
|
38
38
|
error: unknown;
|
|
39
39
|
};
|
|
40
|
-
type Unstable_InteractablesState = {
|
|
40
|
+
export type Unstable_InteractablesState = {
|
|
41
41
|
/** Keyed by instance id */
|
|
42
42
|
definitions: Record<string, Unstable_InteractableDefinition>;
|
|
43
43
|
/** Per-id persistence sync status */
|
|
44
44
|
persistence: Record<string, Unstable_InteractablePersistenceStatus>;
|
|
45
45
|
};
|
|
46
|
-
type Unstable_InteractablePersistedState = Record<string, {
|
|
46
|
+
export type Unstable_InteractablePersistedState = Record<string, {
|
|
47
47
|
name: string;
|
|
48
48
|
state: unknown;
|
|
49
49
|
}>;
|
|
50
|
-
type Unstable_InteractablePersistenceAdapter = {
|
|
50
|
+
export type Unstable_InteractablePersistenceAdapter = {
|
|
51
51
|
save(state: Unstable_InteractablePersistedState): void | Promise<void>;
|
|
52
52
|
/**
|
|
53
53
|
* Restores previously saved state. Called when the adapter is attached;
|
|
@@ -56,10 +56,10 @@ type Unstable_InteractablePersistenceAdapter = {
|
|
|
56
56
|
*/
|
|
57
57
|
load?(): Unstable_InteractablePersistedState | null | undefined | Promise<Unstable_InteractablePersistedState | null | undefined>;
|
|
58
58
|
};
|
|
59
|
-
type Unstable_InteractablesConfig = {
|
|
59
|
+
export type Unstable_InteractablesConfig = {
|
|
60
60
|
persistence?: Unstable_InteractablePersistenceAdapter | undefined;
|
|
61
61
|
};
|
|
62
|
-
type Unstable_InteractablesMethods = {
|
|
62
|
+
export type Unstable_InteractablesMethods = {
|
|
63
63
|
getState(): Unstable_InteractablesState;
|
|
64
64
|
register(def: Unstable_InteractableRegistration): Unsubscribe;
|
|
65
65
|
setState(id: string, updater: (prev: unknown) => unknown): void;
|
|
@@ -68,9 +68,8 @@ type Unstable_InteractablesMethods = {
|
|
|
68
68
|
setPersistenceAdapter(adapter: Unstable_InteractablePersistenceAdapter | undefined): void;
|
|
69
69
|
flush(): Promise<void>;
|
|
70
70
|
};
|
|
71
|
-
type Unstable_InteractablesClientSchema = {
|
|
71
|
+
export type Unstable_InteractablesClientSchema = {
|
|
72
72
|
methods: Unstable_InteractablesMethods;
|
|
73
73
|
};
|
|
74
74
|
//#endregion
|
|
75
|
-
export { Unstable_InteractableDefinition, Unstable_InteractablePersistedState, Unstable_InteractablePersistenceAdapter, Unstable_InteractablePersistenceStatus, Unstable_InteractableRegistration, Unstable_InteractableStateSchema, Unstable_InteractablesClientSchema, Unstable_InteractablesConfig, Unstable_InteractablesMethods, Unstable_InteractablesState };
|
|
76
75
|
//# sourceMappingURL=interactables.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactables.d.ts","names":[],"sources":["../../../../src/react/types/scopes/interactables.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"interactables.d.ts","names":[],"sources":["../../../../src/react/types/scopes/interactables.ts"],"mappings":";;;;;;;;;YAQY,mCAAmC,YAC7C,QAAQ;EAAQ;;KAGb;YAEO;EACV;EACA;EACA;EACA,aAAa;EACb;EACA;EACA,QAAQ;;YAGE;EACV;EACA;EACA;EACA,aAAa;EACb;;;;;;EAMA,eAAe;;YAGL;EACV;EACA;;YAGU;;EAEV,aAAa,eAAe;;EAE5B,aAAa,eAAe;;YAGlB,sCAAsC;EAE9C;EAAc;;YAGN;EACV,KAAK,OAAO,6CAA6C;;;;;;EAMzD,SACI,yDAGA,QAAQ;;YAGF;EACV,cAAc;;YAGJ;EACV,YAAY;EACZ,SAAS,KAAK,oCAAoC;EAClD,SAAS,YAAY,UAAU;EAC/B,eAAe;EACf,YAAY,OAAO;EACnB,sBACE,SAAS;EAEX,SAAS;;YAGC;EACV,SAAS"}
|
|
@@ -3,7 +3,7 @@ import { ToolCallText } from "../../../model-context/tool-call-text.js";
|
|
|
3
3
|
import { ToolCallMessagePartComponent } from "../MessagePartComponentTypes.js";
|
|
4
4
|
import "../../../index.js";
|
|
5
5
|
//#region src/react/types/scopes/tools.d.ts
|
|
6
|
-
type McpAppResourceOutput = {
|
|
6
|
+
export type McpAppResourceOutput = {
|
|
7
7
|
readonly render: ToolCallMessagePartComponent;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
@@ -17,20 +17,19 @@ type ToolRegistration = {
|
|
|
17
17
|
/** Whether this UI renders standalone, outside the chain-of-thought trace. */
|
|
18
18
|
readonly standalone: boolean;
|
|
19
19
|
};
|
|
20
|
-
type ToolsState = {
|
|
20
|
+
export type ToolsState = {
|
|
21
21
|
/** Registered tool UIs (renderer + presentation options) keyed by tool name. */
|
|
22
22
|
toolUIs: Record<string, readonly ToolRegistration[]>;
|
|
23
23
|
mcpApp?: McpAppResourceOutput | undefined;
|
|
24
24
|
};
|
|
25
|
-
type ToolsMethods = {
|
|
25
|
+
export type ToolsMethods = {
|
|
26
26
|
getState(): ToolsState;
|
|
27
27
|
setToolUI(toolName: string, render: ToolCallMessagePartComponent, options?: {
|
|
28
28
|
standalone?: boolean;
|
|
29
29
|
}): Unsubscribe;
|
|
30
30
|
};
|
|
31
|
-
type ToolsClientSchema = {
|
|
31
|
+
export type ToolsClientSchema = {
|
|
32
32
|
methods: ToolsMethods;
|
|
33
33
|
};
|
|
34
34
|
//#endregion
|
|
35
|
-
export { McpAppResourceOutput, ToolsClientSchema, ToolsMethods, ToolsState };
|
|
36
35
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","names":[],"sources":["../../../../src/react/types/scopes/tools.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","names":[],"sources":["../../../../src/react/types/scopes/tools.ts"],"mappings":";;;;;YAIY;WACD,QAAQ;;;;;;;KAQd;WACM,QAAQ;WACR,aAAa;;WAEb;;YAGC;;EAEV,SAAS,wBAAwB;EACjC,SAAS;;YAGC;EACV,YAAY;EACZ,UACE,kBACA,QAAQ,8BACR;IAAY;MACX;;YAGO;EACV,SAAS"}
|
|
@@ -5,7 +5,6 @@ type MessageQuoteState = {
|
|
|
5
5
|
metadata?: unknown;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
declare const getMessageQuote: (state: MessageQuoteState) => QuoteInfo | undefined;
|
|
8
|
+
export declare const getMessageQuote: (state: MessageQuoteState) => QuoteInfo | undefined;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { getMessageQuote };
|
|
11
10
|
//# sourceMappingURL=getMessageQuote.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMessageQuote.d.ts","names":[],"sources":["../../../src/react/utils/getMessageQuote.ts"],"mappings":";;KAEK;EACH;IACE;;;
|
|
1
|
+
{"version":3,"file":"getMessageQuote.d.ts","names":[],"sources":["../../../src/react/utils/getMessageQuote.ts"],"mappings":";;KAEK;EACH;IACE;;;qBAIS,kBACX,OAAO,sBACN"}
|
|
@@ -7,7 +7,7 @@ import { ToolsState } from "../types/scopes/tools.js";
|
|
|
7
7
|
* `groupBy` can resolve registry-driven grouping (e.g. standalone tool calls)
|
|
8
8
|
* without the part itself having to carry that information.
|
|
9
9
|
*/
|
|
10
|
-
type GroupByContext = {
|
|
10
|
+
export type GroupByContext = {
|
|
11
11
|
/** Tool UIs registered in the tool-UI registry, keyed by tool name. */
|
|
12
12
|
readonly toolUIs?: ToolsState["toolUIs"];
|
|
13
13
|
};
|
|
@@ -29,7 +29,7 @@ type GroupByContext = {
|
|
|
29
29
|
* `[parts, memoKey]` across renders — even when the helper call site
|
|
30
30
|
* reconstructs the function each render.
|
|
31
31
|
*/
|
|
32
|
-
declare const GROUPBY_MEMO_KEY: unique symbol;
|
|
32
|
+
export declare const GROUPBY_MEMO_KEY: unique symbol;
|
|
33
33
|
/**
|
|
34
34
|
* Synthetic part-type keys recognized by {@link groupPartByType}, in
|
|
35
35
|
* addition to real {@link PartState} types:
|
|
@@ -74,9 +74,9 @@ type GroupPartType = PartState["type"] | "standalone-tool-call" | `tool-call:${s
|
|
|
74
74
|
* </MessagePrimitive.GroupedParts>
|
|
75
75
|
* ```
|
|
76
76
|
*/
|
|
77
|
-
declare const groupPartByType: <TKey extends `group-${string}`>(map: Partial<Readonly<Record<GroupPartType, readonly TKey[]>>>) => ((part: PartState, context?: GroupByContext) => readonly TKey[]);
|
|
78
|
-
type GroupNode = GroupNodeGroup | GroupNodePart;
|
|
79
|
-
interface GroupNodeGroup {
|
|
77
|
+
export declare const groupPartByType: <TKey extends `group-${string}`>(map: Partial<Readonly<Record<GroupPartType, readonly TKey[]>>>) => ((part: PartState, context?: GroupByContext) => readonly TKey[]);
|
|
78
|
+
export type GroupNode = GroupNodeGroup | GroupNodePart;
|
|
79
|
+
export interface GroupNodeGroup {
|
|
80
80
|
readonly type: "group";
|
|
81
81
|
/** Current-level group key (last segment of the path). */
|
|
82
82
|
readonly key: string;
|
|
@@ -91,7 +91,7 @@ interface GroupNodeGroup {
|
|
|
91
91
|
readonly indices: readonly number[];
|
|
92
92
|
readonly children: readonly GroupNode[];
|
|
93
93
|
}
|
|
94
|
-
interface GroupNodePart {
|
|
94
|
+
export interface GroupNodePart {
|
|
95
95
|
readonly type: "part";
|
|
96
96
|
/** Index of the part in the message. */
|
|
97
97
|
readonly index: number;
|
|
@@ -110,7 +110,6 @@ interface GroupNodePart {
|
|
|
110
110
|
* `partIds[i]` optionally carries a stable identity for part `i` (e.g. a
|
|
111
111
|
* tool call id), from which nodes derive an `idKey`.
|
|
112
112
|
*/
|
|
113
|
-
declare const buildGroupTree: (paths: readonly (readonly string[])[], partIds?: readonly (string | undefined)[]) => readonly GroupNode[];
|
|
113
|
+
export declare const buildGroupTree: (paths: readonly (readonly string[])[], partIds?: readonly (string | undefined)[]) => readonly GroupNode[];
|
|
114
114
|
//#endregion
|
|
115
|
-
export { GROUPBY_MEMO_KEY, GroupByContext, GroupNode, GroupNodeGroup, GroupNodePart, buildGroupTree, groupPartByType };
|
|
116
115
|
//# sourceMappingURL=groupParts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groupParts.d.ts","names":[],"sources":["../../../src/react/utils/groupParts.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"groupParts.d.ts","names":[],"sources":["../../../src/react/utils/groupParts.ts"],"mappings":";;;;;;;;;YAUY;;WAED,UAAU;;;;;;;;;;;;;;;;;;;;qBAsBR;;;;;;;;;;;;;;;KAkBR,gBACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiCS,kBAAmB,gCAC9B,KAAK,QAAQ,SAAS,OAAO,wBAAwB,gBAClD,MAAM,WAAW,UAAU,4BAA4B;YA8BhD,YAAY,iBAAiB;iBAExB;WACN;;WAEA;;WAEA;;;;;WAKA;;WAEA;WACA,mBAAmB;;iBAGb;WACN;;WAEA;;WAEA;;;;;WAKA;;;;;;;;;qBAiCE,iBACX,uCACA,uDACU"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ReadonlyJSONValue } from "assistant-stream/utils";
|
|
2
2
|
//#region src/react/utils/useJSONEqual.d.ts
|
|
3
|
-
declare function useJSONEqualValue<T extends ReadonlyJSONValue>(value: T): T;
|
|
3
|
+
export declare function useJSONEqualValue<T extends ReadonlyJSONValue>(value: T): T;
|
|
4
4
|
/**
|
|
5
5
|
* Like `useShallow`, but with JSON deep-equality. Use when a selector derives an
|
|
6
6
|
* equal-but-fresh value on every store update — e.g. folding over
|
|
7
7
|
* `thread.messages`, whose identity changes on every streaming token — where a
|
|
8
8
|
* shallow compare would re-render regardless.
|
|
9
9
|
*/
|
|
10
|
-
declare function useJSONEqual<S, U>(selector: (state: S) => U): (state: S) => U;
|
|
10
|
+
export declare function useJSONEqual<S, U>(selector: (state: S) => U): (state: S) => U;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { useJSONEqual, useJSONEqualValue };
|
|
13
12
|
//# sourceMappingURL=useJSONEqual.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useJSONEqual.d.ts","names":[],"sources":["../../../src/react/utils/useJSONEqual.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"useJSONEqual.d.ts","names":[],"sources":["../../../src/react/utils/useJSONEqual.ts"],"mappings":";;wBAIgB,kBAAkB,UAAU,mBAAmB,OAAO,IAAI;;;;;;;wBAc1D,aAAa,GAAG,GAAG,WAAW,OAAO,MAAM,KAAK,OAAO,MAAM"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Unstable_InteractableStateSchema } from "../types/scopes/interactables.js";
|
|
2
2
|
import { ReadonlyJSONValue } from "assistant-stream/utils";
|
|
3
3
|
//#region src/react/utils/useJSONSchemaDependency.d.ts
|
|
4
|
-
declare function useJSONSchemaDependency(schema: Unstable_InteractableStateSchema): ReadonlyJSONValue;
|
|
4
|
+
export declare function useJSONSchemaDependency(schema: Unstable_InteractableStateSchema): ReadonlyJSONValue;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { useJSONSchemaDependency };
|
|
7
6
|
//# sourceMappingURL=useJSONSchemaDependency.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useJSONSchemaDependency.d.ts","names":[],"sources":["../../../src/react/utils/useJSONSchemaDependency.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"useJSONSchemaDependency.d.ts","names":[],"sources":["../../../src/react/utils/useJSONSchemaDependency.ts"],"mappings":";;;wBAOgB,wBACd,QAAQ,mCACP"}
|
|
@@ -4,7 +4,7 @@ import { AssistantRuntimeCore } from "../interfaces/assistant-runtime-core.js";
|
|
|
4
4
|
import { ThreadListRuntime, ThreadListRuntimeImpl } from "./thread-list-runtime.js";
|
|
5
5
|
import { ThreadRuntime } from "./thread-runtime.js";
|
|
6
6
|
//#region src/runtime/api/assistant-runtime.d.ts
|
|
7
|
-
type AssistantRuntime = {
|
|
7
|
+
export type AssistantRuntime = {
|
|
8
8
|
/**
|
|
9
9
|
* The threads in this assistant.
|
|
10
10
|
*/
|
|
@@ -20,7 +20,7 @@ type AssistantRuntime = {
|
|
|
20
20
|
*/
|
|
21
21
|
registerModelContextProvider(provider: ModelContextProvider): Unsubscribe;
|
|
22
22
|
};
|
|
23
|
-
declare class AssistantRuntimeImpl implements AssistantRuntime {
|
|
23
|
+
export declare class AssistantRuntimeImpl implements AssistantRuntime {
|
|
24
24
|
readonly threads: ThreadListRuntimeImpl;
|
|
25
25
|
readonly _thread: ThreadRuntime;
|
|
26
26
|
private readonly _core;
|
|
@@ -30,5 +30,4 @@ declare class AssistantRuntimeImpl implements AssistantRuntime {
|
|
|
30
30
|
registerModelContextProvider(provider: ModelContextProvider): Unsubscribe;
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
-
export { AssistantRuntime, AssistantRuntimeImpl };
|
|
34
33
|
//# sourceMappingURL=assistant-runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assistant-runtime.d.ts","names":[],"sources":["../../../src/runtime/api/assistant-runtime.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"assistant-runtime.d.ts","names":[],"sources":["../../../src/runtime/api/assistant-runtime.ts"],"mappings":";;;;;;YASY;;;;WAID,SAAS;;;;WAKT,QAAQ;;;;;;EAOjB,6BAA6B,UAAU,uBAAuB;;qBAGnD,gCAAgC;WAC3B,SAAO;WAEP,SAAS;mBAER;EAEL,YAAA,OAAO;YAQT;MAKC,UAAM;EAIV,6BAA6B,UAAU,uBAAoB"}
|
|
@@ -13,14 +13,14 @@ type ThreadComposerAttachmentState = Attachment & {
|
|
|
13
13
|
type EditComposerAttachmentState = Attachment & {
|
|
14
14
|
readonly source: "edit-composer";
|
|
15
15
|
};
|
|
16
|
-
type AttachmentState = ThreadComposerAttachmentState | EditComposerAttachmentState | MessageAttachmentState;
|
|
16
|
+
export type AttachmentState = ThreadComposerAttachmentState | EditComposerAttachmentState | MessageAttachmentState;
|
|
17
17
|
type AttachmentSnapshotBinding<Source extends AttachmentRuntimeSource> = SubscribableWithState<AttachmentState & {
|
|
18
18
|
source: Source;
|
|
19
19
|
}, AttachmentRuntimePath & {
|
|
20
20
|
attachmentSource: Source;
|
|
21
21
|
}>;
|
|
22
22
|
type AttachmentRuntimeSource = AttachmentState["source"];
|
|
23
|
-
type AttachmentRuntime<TSource extends AttachmentRuntimeSource = AttachmentRuntimeSource> = {
|
|
23
|
+
export type AttachmentRuntime<TSource extends AttachmentRuntimeSource = AttachmentRuntimeSource> = {
|
|
24
24
|
readonly path: AttachmentRuntimePath & {
|
|
25
25
|
attachmentSource: TSource;
|
|
26
26
|
};
|
|
@@ -31,7 +31,7 @@ type AttachmentRuntime<TSource extends AttachmentRuntimeSource = AttachmentRunti
|
|
|
31
31
|
remove(): Promise<void>;
|
|
32
32
|
subscribe(callback: () => void): Unsubscribe;
|
|
33
33
|
};
|
|
34
|
-
declare abstract class AttachmentRuntimeImpl<Source extends AttachmentRuntimeSource = AttachmentRuntimeSource> implements AttachmentRuntime {
|
|
34
|
+
export declare abstract class AttachmentRuntimeImpl<Source extends AttachmentRuntimeSource = AttachmentRuntimeSource> implements AttachmentRuntime {
|
|
35
35
|
get path(): AttachmentRuntimePath & {
|
|
36
36
|
attachmentSource: Source;
|
|
37
37
|
};
|
|
@@ -50,16 +50,15 @@ declare abstract class ComposerAttachmentRuntime<Source extends "thread-composer
|
|
|
50
50
|
constructor(core: AttachmentSnapshotBinding<Source>, _composerApi: ComposerRuntimeCoreBinding);
|
|
51
51
|
remove(): Promise<void>;
|
|
52
52
|
}
|
|
53
|
-
declare class ThreadComposerAttachmentRuntimeImpl extends ComposerAttachmentRuntime<"thread-composer"> {
|
|
53
|
+
export declare class ThreadComposerAttachmentRuntimeImpl extends ComposerAttachmentRuntime<"thread-composer"> {
|
|
54
54
|
get source(): "thread-composer";
|
|
55
55
|
}
|
|
56
|
-
declare class EditComposerAttachmentRuntimeImpl extends ComposerAttachmentRuntime<"edit-composer"> {
|
|
56
|
+
export declare class EditComposerAttachmentRuntimeImpl extends ComposerAttachmentRuntime<"edit-composer"> {
|
|
57
57
|
get source(): "edit-composer";
|
|
58
58
|
}
|
|
59
|
-
declare class MessageAttachmentRuntimeImpl extends AttachmentRuntimeImpl<"message"> {
|
|
59
|
+
export declare class MessageAttachmentRuntimeImpl extends AttachmentRuntimeImpl<"message"> {
|
|
60
60
|
get source(): "message";
|
|
61
61
|
remove(): never;
|
|
62
62
|
}
|
|
63
63
|
//#endregion
|
|
64
|
-
export { AttachmentRuntime, AttachmentRuntimeImpl, AttachmentState, EditComposerAttachmentRuntimeImpl, MessageAttachmentRuntimeImpl, ThreadComposerAttachmentRuntimeImpl };
|
|
65
64
|
//# sourceMappingURL=attachment-runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment-runtime.d.ts","names":[],"sources":["../../../src/runtime/api/attachment-runtime.ts"],"mappings":";;;;;;KAOK,yBAAyB;WACnB;;KAGN,gCAAgC;WAC1B;;KAGN,8BAA8B;WACxB;;
|
|
1
|
+
{"version":3,"file":"attachment-runtime.d.ts","names":[],"sources":["../../../src/runtime/api/attachment-runtime.ts"],"mappings":";;;;;;KAOK,yBAAyB;WACnB;;KAGN,gCAAgC;WAC1B;;KAGN,8BAA8B;WACxB;;YAGC,kBACR,gCACA,8BACA;KAEC,0BAA0B,eAAe,2BAC5C,sBACE;EAAoB,QAAQ;GAC5B;EAA0B,kBAAkB;;KAG3C,0BAA0B;YAEnB,kBACV,gBAAgB,0BAA0B;WAEjC,MAAM;IAA0B,kBAAkB;;WAClD,QAAQ;EACjB,YAAY;IAAoB,QAAQ;;EACxC,UAAU;EACV,UAAU,uBAAuB;;8BAGb,sBACpB,eAAe,0BAA0B,oCAC9B;MACA,QAAI;;;eAIK,UAAU;UAEtB;EAEI,YAAA,OAAO,0BAA0B;YAKnC;EAMH,YAAY;IAAoB,QAAQ;;WAI/B,UAAU;EAEnB,UAAU,uBAAoB;;uBAKxB,0BACb,4DACQ,sBAAsB;UACtB;EAGN,YAAA,MAAM,0BAA0B,SAChC,cAAc;EAMT,UAAM;;qBAOF,4CAA4C;MAC5C;;qBAKA,0CAA0C;MAC1C;;qBAKA,qCAAqC;MACrC;EAIJ"}
|
|
@@ -5,14 +5,14 @@ import { ComposerRuntimePath, MessageRuntimePath } from "./paths.js";
|
|
|
5
5
|
import { ThreadListItemStatus } from "../interfaces/thread-list-runtime-core.js";
|
|
6
6
|
import { SubscribableWithState } from "../../subscribable/subscribable.js";
|
|
7
7
|
//#region src/runtime/api/bindings.d.ts
|
|
8
|
-
type ComposerRuntimeCoreBinding = SubscribableWithState<ComposerRuntimeCore | undefined, ComposerRuntimePath>;
|
|
9
|
-
type ThreadComposerRuntimeCoreBinding = SubscribableWithState<ThreadComposerRuntimeCore | undefined, ComposerRuntimePath & {
|
|
8
|
+
export type ComposerRuntimeCoreBinding = SubscribableWithState<ComposerRuntimeCore | undefined, ComposerRuntimePath>;
|
|
9
|
+
export type ThreadComposerRuntimeCoreBinding = SubscribableWithState<ThreadComposerRuntimeCore | undefined, ComposerRuntimePath & {
|
|
10
10
|
composerSource: "thread";
|
|
11
11
|
}>;
|
|
12
|
-
type EditComposerRuntimeCoreBinding = SubscribableWithState<EditComposerRuntimeCore | undefined, ComposerRuntimePath & {
|
|
12
|
+
export type EditComposerRuntimeCoreBinding = SubscribableWithState<EditComposerRuntimeCore | undefined, ComposerRuntimePath & {
|
|
13
13
|
composerSource: "edit";
|
|
14
14
|
}>;
|
|
15
|
-
type MessageStateBinding = SubscribableWithState<ThreadMessage & {
|
|
15
|
+
export type MessageStateBinding = SubscribableWithState<ThreadMessage & {
|
|
16
16
|
readonly parentId: string | null;
|
|
17
17
|
readonly index: number;
|
|
18
18
|
readonly isLast: boolean;
|
|
@@ -20,7 +20,7 @@ type MessageStateBinding = SubscribableWithState<ThreadMessage & {
|
|
|
20
20
|
readonly branchCount: number;
|
|
21
21
|
readonly speech: SpeechState | undefined;
|
|
22
22
|
}, MessageRuntimePath>;
|
|
23
|
-
type ThreadListItemState = {
|
|
23
|
+
export type ThreadListItemState = {
|
|
24
24
|
readonly isMain: boolean;
|
|
25
25
|
/**
|
|
26
26
|
* Whether this thread has a run in progress, including a run that continues
|
|
@@ -36,5 +36,4 @@ type ThreadListItemState = {
|
|
|
36
36
|
readonly custom?: Record<string, unknown> | undefined;
|
|
37
37
|
};
|
|
38
38
|
//#endregion
|
|
39
|
-
export { ComposerRuntimeCoreBinding, EditComposerRuntimeCoreBinding, MessageStateBinding, ThreadComposerRuntimeCoreBinding, ThreadListItemState };
|
|
40
39
|
//# sourceMappingURL=bindings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindings.d.ts","names":[],"sources":["../../../src/runtime/api/bindings.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"bindings.d.ts","names":[],"sources":["../../../src/runtime/api/bindings.ts"],"mappings":";;;;;;;YAUY,6BAA6B,sBACvC,iCACA;YAGU,mCAAmC,sBAC7C,uCACA;EAAwB;;YAGd,iCAAiC,sBAC3C,qCACA;EAAwB;;YAGd,sBAAsB,sBAChC;WACW;WACA;WACA;WACA;WACA;WACA,QAAQ;GAEnB;YAGU;WACD;;;;;WAKA;WACA;WACA;WACA;WACA,QAVC;WAWD;WACA,gBAAgB;WAChB,SAAS"}
|
|
@@ -37,16 +37,16 @@ type BaseComposerState = {
|
|
|
37
37
|
/** Messages waiting to be processed. Empty unless the `queue` capability is set. */
|
|
38
38
|
readonly queue: readonly QueueItemState[];
|
|
39
39
|
};
|
|
40
|
-
type ThreadComposerState = BaseComposerState & {
|
|
40
|
+
export type ThreadComposerState = BaseComposerState & {
|
|
41
41
|
readonly type: "thread";
|
|
42
42
|
};
|
|
43
|
-
type EditComposerState = BaseComposerState & {
|
|
43
|
+
export type EditComposerState = BaseComposerState & {
|
|
44
44
|
readonly type: "edit";
|
|
45
45
|
readonly parentId: string | null;
|
|
46
46
|
readonly sourceId: string | null;
|
|
47
47
|
};
|
|
48
|
-
type ComposerState = ThreadComposerState | EditComposerState;
|
|
49
|
-
type ComposerRuntime = {
|
|
48
|
+
export type ComposerState = ThreadComposerState | EditComposerState;
|
|
49
|
+
export type ComposerRuntime = {
|
|
50
50
|
readonly path: ComposerRuntimePath;
|
|
51
51
|
readonly type: "edit" | "thread";
|
|
52
52
|
/**
|
|
@@ -137,7 +137,7 @@ type ComposerRuntime = {
|
|
|
137
137
|
*/
|
|
138
138
|
unstable_on<E extends ComposerRuntimeEventType>(event: E, callback: ComposerRuntimeEventCallback<E>): Unsubscribe;
|
|
139
139
|
};
|
|
140
|
-
declare abstract class ComposerRuntimeImpl implements ComposerRuntime {
|
|
140
|
+
export declare abstract class ComposerRuntimeImpl implements ComposerRuntime {
|
|
141
141
|
get path(): ComposerRuntimePath;
|
|
142
142
|
abstract get type(): "edit" | "thread";
|
|
143
143
|
protected _core: ComposerRuntimeCoreBinding;
|
|
@@ -163,7 +163,7 @@ declare abstract class ComposerRuntimeImpl implements ComposerRuntime {
|
|
|
163
163
|
unstable_on<E extends ComposerRuntimeEventType>(event: E, callback: ComposerRuntimeEventCallback<E>): Unsubscribe;
|
|
164
164
|
abstract getAttachmentByIndex(idx: number): AttachmentRuntime;
|
|
165
165
|
}
|
|
166
|
-
type ThreadComposerRuntime = Omit<ComposerRuntime, "getState" | "getAttachmentByIndex"> & {
|
|
166
|
+
export type ThreadComposerRuntime = Omit<ComposerRuntime, "getState" | "getAttachmentByIndex"> & {
|
|
167
167
|
readonly path: ComposerRuntimePath & {
|
|
168
168
|
composerSource: "thread";
|
|
169
169
|
};
|
|
@@ -173,7 +173,7 @@ type ThreadComposerRuntime = Omit<ComposerRuntime, "getState" | "getAttachmentBy
|
|
|
173
173
|
source: "thread-composer";
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
|
-
declare class ThreadComposerRuntimeImpl extends ComposerRuntimeImpl implements ThreadComposerRuntime {
|
|
176
|
+
export declare class ThreadComposerRuntimeImpl extends ComposerRuntimeImpl implements ThreadComposerRuntime {
|
|
177
177
|
get path(): ComposerRuntimePath & {
|
|
178
178
|
composerSource: "thread";
|
|
179
179
|
};
|
|
@@ -183,7 +183,7 @@ declare class ThreadComposerRuntimeImpl extends ComposerRuntimeImpl implements T
|
|
|
183
183
|
getState(): ThreadComposerState;
|
|
184
184
|
getAttachmentByIndex(idx: number): ThreadComposerAttachmentRuntimeImpl;
|
|
185
185
|
}
|
|
186
|
-
type EditComposerRuntime = Omit<ComposerRuntime, "getState" | "getAttachmentByIndex"> & {
|
|
186
|
+
export type EditComposerRuntime = Omit<ComposerRuntime, "getState" | "getAttachmentByIndex"> & {
|
|
187
187
|
readonly path: ComposerRuntimePath & {
|
|
188
188
|
composerSource: "edit";
|
|
189
189
|
};
|
|
@@ -194,7 +194,7 @@ type EditComposerRuntime = Omit<ComposerRuntime, "getState" | "getAttachmentByIn
|
|
|
194
194
|
source: "edit-composer";
|
|
195
195
|
};
|
|
196
196
|
};
|
|
197
|
-
declare class EditComposerRuntimeImpl extends ComposerRuntimeImpl implements EditComposerRuntime {
|
|
197
|
+
export declare class EditComposerRuntimeImpl extends ComposerRuntimeImpl implements EditComposerRuntime {
|
|
198
198
|
get path(): ComposerRuntimePath & {
|
|
199
199
|
composerSource: "edit";
|
|
200
200
|
};
|
|
@@ -208,5 +208,5 @@ declare class EditComposerRuntimeImpl extends ComposerRuntimeImpl implements Edi
|
|
|
208
208
|
getAttachmentByIndex(idx: number): EditComposerAttachmentRuntimeImpl;
|
|
209
209
|
}
|
|
210
210
|
//#endregion
|
|
211
|
-
export {
|
|
211
|
+
export type { ComposerRuntimeCoreBinding, EditComposerRuntimeCoreBinding, ThreadComposerRuntimeCoreBinding };
|
|
212
212
|
//# sourceMappingURL=composer-runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composer-runtime.d.ts","names":[],"sources":["../../../src/runtime/api/composer-runtime.ts"],"mappings":";;;;;;;;;;;KA2CK;;;;;;WAMM;WACA;WACA;WACA;WAEA;WACA,MAAM;WACN,sBAAsB;WACtB,WAAW;WAEX;;;;;WAMA,WAAW;;;;;WAMX,OAAO;;WAGP,gBAAgB;;
|
|
1
|
+
{"version":3,"file":"composer-runtime.d.ts","names":[],"sources":["../../../src/runtime/api/composer-runtime.ts"],"mappings":";;;;;;;;;;;KA2CK;;;;;;WAMM;WACA;WACA;WACA;WAEA;WACA,MAAM;WACN,sBAAsB;WACtB,WAAW;WAEX;;;;;WAMA,WAAW;;;;;WAMX,OAAO;;WAGP,gBAAgB;;YAGf,sBAAsB;WACvB;;YAGC,oBAAoB;WACrB;WACA;WACA;;YAGC,gBAAgB,sBAAsB;YAuDtC;WACD,MAAM;WACN;;;;EAKT,YAAY;;;;;;;;;;EAWZ,cAAc,kBAAkB,OAAO,mBAAmB;;;;;EAM1D,QAAQ;;;;;EAMR,QAAQ,MAAM;;;;;;;;;;;;EAad,aAAa,WAAW;;;;EAKxB,SAAS;;;;EAKT,oBAAoB;;;;;EAMpB,KAAK,UAAU;;;;EAKf;;EAGA,eAAe;;EAGf,cAAc,qBAAqB,WAAW;;EAG9C,gBAAgB;;;;;EAMhB,UAAU,uBAAuB;;;;;EAMjC,qBAAqB,cAAc;;;;;EAMnC;;;;EAKA;;;;;EAMA,SAAS,OAAO;;;;EAKhB,YAAY,UAAU,0BACpB,OAAO,GACP,UAAU,6BAA6B,KACtC;;8BAGiB,+BAA+B;MACxC,QAAI;eAIK;YAEV,OAAO;EAEL,YAAA,OAAO;YAIT;WAqBM,YAAY;EAErB,QAAQ;EAMR,aAAa,WAAW;EAMxB,cAAc,kBAAkB,OAAO,mBAAgB;EAMvD,SAAK;EAML,oBAAgB;EAMhB,KAAK,UAAU;EAMf;EAMA,eAAe;EAIf,cAAc,qBAAqB,WAAW;EAM9C,gBAAgB;EAMhB,QAAQ,MAAM;EAMd;EAMA;EAMA,SAAS,OAAO;EAMhB,UAAU,uBAAoB;UAI7B;EAKD,YAAY,UAAU,0BAC3B,OAAO,GACP,UAAU,6BAA6B,KACtC;WAYa,qBAAqB,cAAc;;YAGzC,wBAAwB,KAClC;WAGS,MAAM;IAAwB;;WAC9B;EACT,YAAY;EAEZ,qBACE,cACC;IAAsB;;;qBAGd,kCACH,+BACG;MAES,QACQ;IACxB;;MAIO;UAIH;EAEI,YAAA,MAAM;EAgBF,YAAY;EAIrB,qBAAqB,cAAW;;YA0B7B,sBAAsB,KAChC;WAGS,MAAM;IAAwB;;WAC9B;EAET,YAAY;EACZ;EAEA,qBACE,cACC;IAAsB;;;qBAGd,gCACH,+BACG;MAES,QACQ;IAAwB;;MAGzC;UAIH;UACA;EAEI,YAAA,MAAM,gCAAgC;EAmBlC;EAKA,YAAY;EAIrB;EAIA,qBAAqB,cAAW"}
|
|
@@ -6,11 +6,11 @@ import { MessageStateBinding } from "./bindings.js";
|
|
|
6
6
|
import { ThreadRuntimeCoreBinding } from "./thread-runtime.js";
|
|
7
7
|
import { ToolResponse } from "assistant-stream";
|
|
8
8
|
//#region src/runtime/api/message-part-runtime.d.ts
|
|
9
|
-
type MessagePartState = (ThreadUserMessagePart | ThreadAssistantMessagePart) & {
|
|
9
|
+
export type MessagePartState = (ThreadUserMessagePart | ThreadAssistantMessagePart) & {
|
|
10
10
|
readonly status: MessagePartStatus | ToolCallMessagePartStatus;
|
|
11
11
|
};
|
|
12
12
|
type MessagePartSnapshotBinding = SubscribableWithState<MessagePartState, MessagePartRuntimePath>;
|
|
13
|
-
type MessagePartRuntime = {
|
|
13
|
+
export type MessagePartRuntime = {
|
|
14
14
|
addToolResult(result: any | ToolResponse<any>): void;
|
|
15
15
|
resumeToolCall(payload: unknown): void;
|
|
16
16
|
respondToToolApproval(response: ToolApprovalResponse): Promise<void>;
|
|
@@ -18,7 +18,7 @@ type MessagePartRuntime = {
|
|
|
18
18
|
getState(): MessagePartState;
|
|
19
19
|
subscribe(callback: () => void): Unsubscribe;
|
|
20
20
|
};
|
|
21
|
-
declare class MessagePartRuntimeImpl implements MessagePartRuntime {
|
|
21
|
+
export declare class MessagePartRuntimeImpl implements MessagePartRuntime {
|
|
22
22
|
get path(): MessagePartRuntimePath;
|
|
23
23
|
private contentBinding;
|
|
24
24
|
private messageApi;
|
|
@@ -32,5 +32,4 @@ declare class MessagePartRuntimeImpl implements MessagePartRuntime {
|
|
|
32
32
|
subscribe(callback: () => void): Unsubscribe;
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
|
-
export { MessagePartRuntime, MessagePartRuntimeImpl, MessagePartState };
|
|
36
35
|
//# sourceMappingURL=message-part-runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-part-runtime.d.ts","names":[],"sources":["../../../src/runtime/api/message-part-runtime.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"message-part-runtime.d.ts","names":[],"sources":["../../../src/runtime/api/message-part-runtime.ts"],"mappings":";;;;;;;;YAeY,oBACR,wBACA;WAEO,QAAQ,oBAAoB;;KAGlC,6BAA6B,sBAChC,kBACA;YAGU;EACV,cAAc,cAAc;EAC5B,eAAe;EACf,sBAAsB,UAAU,uBAAuB;WAE9C,MAAM;EACf,YAAY;EACZ,UAAU,uBAAuB;;qBAGtB,kCAAkC;MAClC,QAAI;UAIP;UACA;UACA;EAGN,YAAA,gBAAgB,4BAChB,aAAa,qBACb,YAAY;YAQJ;EAQH,YAAQ;EAIR,cAAc,cAAc;EAiC5B,eAAe;EAgBf,sBAAsB,UAAU,uBAAuB;EAyBvD,UAAU,uBAAoB"}
|
|
@@ -40,8 +40,9 @@ var MessagePartRuntimeImpl = class {
|
|
|
40
40
|
toolName,
|
|
41
41
|
toolCallId,
|
|
42
42
|
result: response.result,
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
isError: response.isError,
|
|
44
|
+
...response.artifact !== void 0 && { artifact: response.artifact },
|
|
45
|
+
...response.modelContent !== void 0 && { modelContent: response.modelContent }
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
48
|
resumeToolCall(payload) {
|