@epam/ai-dial-chat-hooks 1.3.0-dev.98 → 1.3.0-rc.1
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/api-error/api-error.d.ts +2 -0
- package/api-error/api-error.d.ts.map +1 -1
- package/api-error/api-error.js +31 -23
- package/api-transport/create-unauthorized-middleware.js +4 -1
- package/attachment/attach-constraints.d.ts +31 -0
- package/attachment/attach-constraints.d.ts.map +1 -0
- package/attachment/attach-constraints.js +18 -0
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts +1 -1
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -1
- package/attachment/useAttachmentAction/useAttachmentAction.js +25 -28
- package/attachments.js +2 -1
- package/catalog/application-credentials.d.ts +15 -0
- package/catalog/application-credentials.d.ts.map +1 -0
- package/catalog/application-credentials.js +28 -0
- package/catalog/catalog-derivations.d.ts +5 -3
- package/catalog/catalog-derivations.d.ts.map +1 -1
- package/catalog/catalog-derivations.js +13 -6
- package/catalog/catalog-entity-kind.d.ts +31 -0
- package/catalog/catalog-entity-kind.d.ts.map +1 -0
- package/catalog/catalog-entity-kind.js +21 -0
- package/catalog/catalog-preferences.d.ts +8 -0
- package/catalog/catalog-preferences.d.ts.map +1 -0
- package/catalog/catalog-preferences.js +5 -0
- package/catalog/create-publish-api.d.ts +3 -1
- package/catalog/create-publish-api.d.ts.map +1 -1
- package/catalog/create-publish-api.js +4 -0
- package/catalog/deployment-id.d.ts +13 -4
- package/catalog/deployment-id.d.ts.map +1 -1
- package/catalog/deployment-id.js +17 -3
- package/catalog/entity-details.d.ts +2 -0
- package/catalog/entity-details.d.ts.map +1 -1
- package/catalog/favorite-entity-type.d.ts +5 -0
- package/catalog/favorite-entity-type.d.ts.map +1 -0
- package/catalog/favorite-entity-type.js +10 -0
- package/catalog/map-deployment-limits-to-input.d.ts +4 -3
- package/catalog/map-deployment-limits-to-input.d.ts.map +1 -1
- package/catalog/map-deployment-limits-to-input.js +3 -4
- package/catalog/map-deployment-to-catalog-item.d.ts +12 -1
- package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -1
- package/catalog/map-deployment-to-catalog-item.js +22 -15
- package/catalog/map-entity-details-to-catalog.d.ts.map +1 -1
- package/catalog/map-entity-details-to-catalog.js +69 -24
- package/catalog/map-skill-to-catalog-item.d.ts +4 -5
- package/catalog/map-skill-to-catalog-item.d.ts.map +1 -1
- package/catalog/map-skill-to-catalog-item.js +29 -38
- package/catalog/publish.d.ts +1 -1
- package/catalog/publish.d.ts.map +1 -1
- package/catalog/resource-folder.d.ts +8 -0
- package/catalog/resource-folder.d.ts.map +1 -0
- package/catalog/resource-folder.js +13 -0
- package/catalog/resource-name-conflict.d.ts +22 -0
- package/catalog/resource-name-conflict.d.ts.map +1 -0
- package/catalog/resource-name-conflict.js +32 -0
- package/catalog/resource-save-adapter.d.ts +36 -0
- package/catalog/resource-save-adapter.d.ts.map +1 -0
- package/catalog/resource-save-adapter.js +4 -0
- package/catalog/resource-save-adapters.d.ts +93 -0
- package/catalog/resource-save-adapters.d.ts.map +1 -0
- package/catalog/resource-save-adapters.js +116 -0
- package/catalog/resource-save.d.ts +76 -0
- package/catalog/resource-save.d.ts.map +1 -0
- package/catalog/resource-save.js +52 -0
- package/catalog/unpublishable-folders.d.ts +21 -0
- package/catalog/unpublishable-folders.d.ts.map +1 -0
- package/catalog/unpublishable-folders.js +21 -0
- package/catalog/usage-limit-rows.d.ts +14 -0
- package/catalog/usage-limit-rows.d.ts.map +1 -0
- package/catalog/usage-limit-rows.js +19 -0
- package/catalog/use-publish-history.d.ts +19 -0
- package/catalog/use-publish-history.d.ts.map +1 -0
- package/catalog/use-publish-history.js +25 -0
- package/catalog/useApplicationCredentialActions/useApplicationCredentialActions.d.ts +57 -0
- package/catalog/useApplicationCredentialActions/useApplicationCredentialActions.d.ts.map +1 -0
- package/catalog/useApplicationCredentialActions/useApplicationCredentialActions.js +67 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +15 -5
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -1
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +71 -89
- package/catalog/useCatalogItemDelete/useCatalogItemDelete.d.ts +41 -0
- package/catalog/useCatalogItemDelete/useCatalogItemDelete.d.ts.map +1 -0
- package/catalog/useCatalogItemDelete/useCatalogItemDelete.js +37 -0
- package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts.map +1 -1
- package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js +72 -77
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js +1 -1
- package/catalog/usePublishFolders/usePublishFolders.d.ts +8 -0
- package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -1
- package/catalog/usePublishFolders/usePublishFolders.js +32 -29
- package/catalog/useResourceFolders/useResourceFolders.d.ts +33 -0
- package/catalog/useResourceFolders/useResourceFolders.d.ts.map +1 -0
- package/catalog/useResourceFolders/useResourceFolders.js +58 -0
- package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts +64 -0
- package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts.map +1 -0
- package/catalog/useResourceSavePanel/useResourceSavePanel.js +173 -0
- package/catalog/useSkillItemDetails.js +3 -3
- package/catalog/useUnpublishConfirmation/useUnpublishConfirmation.d.ts +43 -0
- package/catalog/useUnpublishConfirmation/useUnpublishConfirmation.d.ts.map +1 -0
- package/catalog/useUnpublishConfirmation/useUnpublishConfirmation.js +46 -0
- package/catalog/useUnpublishableFolders/useUnpublishableFolders.d.ts +22 -0
- package/catalog/useUnpublishableFolders/useUnpublishableFolders.d.ts.map +1 -0
- package/catalog/useUnpublishableFolders/useUnpublishableFolders.js +53 -0
- package/catalog.js +41 -23
- package/conversation/conversation-data-source.d.ts +47 -0
- package/conversation/conversation-data-source.d.ts.map +1 -0
- package/conversation/conversation-data-source.js +11 -0
- package/conversation/conversation-draft/conversation-draft-store.js +40 -40
- package/conversation/conversation-list.d.ts +6 -0
- package/conversation/conversation-list.d.ts.map +1 -0
- package/conversation/conversation-list.js +5 -0
- package/conversation/conversation-title-stream.d.ts +33 -0
- package/conversation/conversation-title-stream.d.ts.map +1 -0
- package/conversation/conversation-title-stream.js +103 -0
- package/conversation/conversation-transfer/attachment-refs.d.ts +10 -2
- package/conversation/conversation-transfer/attachment-refs.d.ts.map +1 -1
- package/conversation/conversation-transfer/attachment-refs.js +31 -9
- package/conversation/conversation-transfer/export-conversation.d.ts +5 -1
- package/conversation/conversation-transfer/export-conversation.d.ts.map +1 -1
- package/conversation/conversation-transfer/export-conversation.js +19 -18
- package/conversation/conversation-transfer/import-conversation.d.ts +11 -6
- package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -1
- package/conversation/conversation-transfer/import-conversation.js +65 -69
- package/conversation/conversation-transfer/progress.js +1 -1
- package/conversation/conversation-transfer/zip-export.js +1 -7
- package/conversation/conversation-transfer/zip-import.js +1 -1
- package/conversation/create-chat-stream-api.d.ts +19 -4
- package/conversation/create-chat-stream-api.d.ts.map +1 -1
- package/conversation/create-chat-stream-api.js +67 -61
- package/conversation/generation-registry.d.ts +30 -0
- package/conversation/generation-registry.d.ts.map +1 -0
- package/conversation/generation-registry.js +33 -0
- package/conversation/message-utils.d.ts +6 -0
- package/conversation/message-utils.d.ts.map +1 -1
- package/conversation/message-utils.js +14 -10
- package/conversation/scheduled-task-grouping.d.ts +53 -0
- package/conversation/scheduled-task-grouping.d.ts.map +1 -0
- package/conversation/scheduled-task-grouping.js +45 -0
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +4 -2
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -1
- package/conversation/useActiveConversationSync/useActiveConversationSync.js +19 -12
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +1 -1
- package/conversation/useAttachmentUpload/useAttachmentUpload.js +4 -1
- package/conversation/useConversationComposerDraft/useConversationComposerDraft.js +1 -5
- package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts +22 -0
- package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts.map +1 -0
- package/conversation/useConversationDiscovery/useConversationDiscovery.js +60 -0
- package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -1
- package/conversation/useConversationExport/useConversationExport.js +113 -122
- package/conversation/useConversationHandlers/message-utils.js +2 -2
- package/conversation/useConversationHandlers/useConversationHandlers.js +41 -41
- package/conversation/useConversationImport/useConversationImport.js +24 -24
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +18 -5
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -1
- package/conversation/useConversationPanelItems/useConversationPanelItems.js +34 -30
- package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -1
- package/conversation/useConversationScroll/useConversationScroll.js +69 -72
- package/conversation/useConversationStream/conversation-path.js +2 -2
- package/conversation/useConversationStream/conversation-stream.types.d.ts +142 -0
- package/conversation/useConversationStream/conversation-stream.types.d.ts.map +1 -0
- package/conversation/useConversationStream/frame-scheduler.js +17 -17
- package/conversation/useConversationStream/generation-resume.d.ts +32 -2
- package/conversation/useConversationStream/generation-resume.d.ts.map +1 -1
- package/conversation/useConversationStream/generation-resume.js +114 -121
- package/conversation/useConversationStream/stream-errors.d.ts +10 -0
- package/conversation/useConversationStream/stream-errors.d.ts.map +1 -0
- package/conversation/useConversationStream/stream-errors.js +10 -0
- package/conversation/useConversationStream/stream-session.d.ts +51 -0
- package/conversation/useConversationStream/stream-session.d.ts.map +1 -0
- package/conversation/useConversationStream/stream-session.js +179 -0
- package/conversation/useConversationStream/useConversationReloadErrors.d.ts +25 -0
- package/conversation/useConversationStream/useConversationReloadErrors.d.ts.map +1 -0
- package/conversation/useConversationStream/useConversationReloadErrors.js +38 -0
- package/conversation/useConversationStream/useConversationStream.d.ts +3 -136
- package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -1
- package/conversation/useConversationStream/useConversationStream.js +141 -339
- package/conversation/useConversationStream/useStopGeneration.d.ts +29 -0
- package/conversation/useConversationStream/useStopGeneration.d.ts.map +1 -0
- package/conversation/useConversationStream/useStopGeneration.js +48 -0
- package/conversation/useConversationStream/useStreamPathState.d.ts +39 -0
- package/conversation/useConversationStream/useStreamPathState.d.ts.map +1 -0
- package/conversation/useConversationStream/useStreamPathState.js +55 -0
- package/conversation/useConversationTitleEnrichmentController.d.ts +64 -0
- package/conversation/useConversationTitleEnrichmentController.d.ts.map +1 -0
- package/conversation/useConversationTitleEnrichmentController.js +155 -0
- package/conversation/useDeploymentChangeTracking.d.ts +14 -0
- package/conversation/useDeploymentChangeTracking.d.ts.map +1 -0
- package/conversation/useDeploymentChangeTracking.js +23 -0
- package/conversation/useEntityPreselection/useEntityPreselection.d.ts +108 -0
- package/conversation/useEntityPreselection/useEntityPreselection.d.ts.map +1 -0
- package/conversation/useEntityPreselection/useEntityPreselection.js +78 -0
- package/conversation/useMessageSelectionReply/useMessageSelectionReply.js +4 -10
- package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts +8 -1
- package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -1
- package/conversation/useTranscribeAudio/useTranscribeAudio.js +23 -17
- package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.d.ts +16 -0
- package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.d.ts.map +1 -0
- package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.js +17 -0
- package/conversation-overlay.js +1 -2
- package/conversation-sources/stage-citations.d.ts +9 -0
- package/conversation-sources/stage-citations.d.ts.map +1 -0
- package/conversation-sources/stage-citations.js +8 -0
- package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.d.ts +4 -0
- package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.d.ts.map +1 -0
- package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.js +5 -0
- package/conversation-sources.js +3 -1
- package/conversation.js +45 -35
- package/entry-points/attachments.d.ts +1 -0
- package/entry-points/attachments.d.ts.map +1 -1
- package/entry-points/catalog.d.ts +17 -0
- package/entry-points/catalog.d.ts.map +1 -1
- package/entry-points/conversation-sources.d.ts +2 -0
- package/entry-points/conversation-sources.d.ts.map +1 -1
- package/entry-points/conversation.d.ts +10 -0
- package/entry-points/conversation.d.ts.map +1 -1
- package/entry-points/external-services.d.ts +6 -0
- package/entry-points/external-services.d.ts.map +1 -0
- package/entry-points/file-manager-canvas.d.ts +1 -0
- package/entry-points/file-manager-canvas.d.ts.map +1 -1
- package/entry-points/file-manager.d.ts +2 -0
- package/entry-points/file-manager.d.ts.map +1 -1
- package/entry-points/oauth.d.ts +1 -0
- package/entry-points/oauth.d.ts.map +1 -1
- package/entry-points/offline-credentials.d.ts +2 -0
- package/entry-points/offline-credentials.d.ts.map +1 -1
- package/entry-points/project.d.ts +20 -0
- package/entry-points/project.d.ts.map +1 -0
- package/entry-points/scheduled-tasks.d.ts +6 -0
- package/entry-points/scheduled-tasks.d.ts.map +1 -1
- package/entry-points/sharing.d.ts +4 -0
- package/entry-points/sharing.d.ts.map +1 -1
- package/entry-points/skill-editor.d.ts +2 -0
- package/entry-points/skill-editor.d.ts.map +1 -1
- package/entry-points/skills-state.d.ts +1 -0
- package/entry-points/skills-state.d.ts.map +1 -1
- package/entry-points/usage-limits.d.ts +1 -0
- package/entry-points/usage-limits.d.ts.map +1 -1
- package/entry-points/utils.d.ts +6 -0
- package/entry-points/utils.d.ts.map +1 -1
- package/entry-points/viewport-layout.d.ts +1 -0
- package/entry-points/viewport-layout.d.ts.map +1 -1
- package/external-services/useExternalServiceLogin.d.ts +99 -0
- package/external-services/useExternalServiceLogin.d.ts.map +1 -0
- package/external-services/useExternalServiceLogin.js +93 -0
- package/external-services.d.ts +2 -0
- package/external-services.js +5 -0
- package/file-manager-canvas.js +3 -2
- package/file-manager.js +32 -30
- package/files/attachment-canvas.d.ts +12 -0
- package/files/attachment-canvas.d.ts.map +1 -1
- package/files/attachment-canvas.js +18 -10
- package/files/attachment-dto-to-display.d.ts.map +1 -1
- package/files/attachment-dto-to-display.js +13 -12
- package/files/attachment-types.js +1 -1
- package/files/browser-download.d.ts +9 -0
- package/files/browser-download.d.ts.map +1 -0
- package/files/browser-download.js +23 -0
- package/files/create-files-api.d.ts +3 -4
- package/files/create-files-api.d.ts.map +1 -1
- package/files/create-files-api.js +1 -1
- package/files/create-upload-file-with-progress.d.ts +21 -1
- package/files/create-upload-file-with-progress.d.ts.map +1 -1
- package/files/create-upload-file-with-progress.js +50 -34
- package/files/dial-file-manager-copy-move.util.d.ts.map +1 -1
- package/files/dial-file-manager-copy-move.util.js +28 -28
- package/files/dial-file-manager-mapping.util.d.ts +6 -2
- package/files/dial-file-manager-mapping.util.d.ts.map +1 -1
- package/files/dial-file-manager-mapping.util.js +85 -72
- package/files/dial-file-manager.types.d.ts +15 -5
- package/files/dial-file-manager.types.d.ts.map +1 -1
- package/files/dial-file-to-attachment.js +3 -3
- package/files/dial-file.d.ts +19 -0
- package/files/dial-file.d.ts.map +1 -1
- package/files/dial-file.js +20 -12
- package/files/dial-files-api.d.ts +2 -2
- package/files/dial-files-api.d.ts.map +1 -1
- package/files/download-progress.d.ts +33 -0
- package/files/download-progress.d.ts.map +1 -0
- package/files/download-progress.js +28 -0
- package/files/source-content.js +1 -1
- package/files/useDialFileListing/useDialFileListing.js +51 -66
- package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -1
- package/files/useDialFileManager/useDialFileManager.js +5 -2
- package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -1
- package/files/useDialFileManagerSections/useDialFileManagerSections.js +59 -68
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +1 -1
- package/files/useDialFileMetadata/useDialFileMetadata.js +3 -3
- package/files/useDialFileMutations/useDialFileMutations.d.ts +9 -0
- package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -1
- package/files/useDialFileMutations/useDialFileMutations.js +232 -159
- package/files/useDialFilePreview/useDialFilePreview.d.ts +33 -0
- package/files/useDialFilePreview/useDialFilePreview.d.ts.map +1 -0
- package/files/useDialFilePreview/useDialFilePreview.js +45 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -1
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +114 -103
- package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts +25 -0
- package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts.map +1 -0
- package/files/useFileAttachmentModalState/useFileAttachmentModalState.js +19 -0
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.js +2 -2
- package/files/useUnshareConfirmationState/useUnshareConfirmationState.d.ts +23 -0
- package/files/useUnshareConfirmationState/useUnshareConfirmationState.d.ts.map +1 -0
- package/files/useUnshareConfirmationState/useUnshareConfirmationState.js +18 -0
- package/index.d.ts +81 -0
- package/index.d.ts.map +1 -1
- package/index.js +244 -163
- package/mcp-apps/mcp-apps-api-client.d.ts.map +1 -1
- package/mcp-apps/mcp-apps-api-client.js +18 -17
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +3 -2
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -1
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js +28 -10
- package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -1
- package/mcp-apps/useMcpAppTools/useMcpAppTools.js +45 -45
- package/oauth/authorize-url.d.ts +7 -1
- package/oauth/authorize-url.d.ts.map +1 -1
- package/oauth/authorize-url.js +14 -4
- package/oauth/callback-exchange.d.ts +49 -0
- package/oauth/callback-exchange.d.ts.map +1 -0
- package/oauth/callback-exchange.js +29 -0
- package/oauth/handshake.js +3 -10
- package/oauth/models.d.ts +25 -0
- package/oauth/models.d.ts.map +1 -1
- package/oauth/toolset-id.d.ts +7 -0
- package/oauth/toolset-id.d.ts.map +1 -1
- package/oauth/toolset-id.js +9 -2
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +2 -5
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts +7 -1
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -1
- package/oauth/useToolsetLogin/useToolsetLogin.js +51 -42
- package/oauth.js +9 -8
- package/offline-credentials/map-offline-credentials-response.d.ts +5 -2
- package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -1
- package/offline-credentials/map-offline-credentials-response.js +9 -7
- package/offline-credentials/scheduled-tasks-login-banner.d.ts +31 -0
- package/offline-credentials/scheduled-tasks-login-banner.d.ts.map +1 -0
- package/offline-credentials/scheduled-tasks-login-banner.js +17 -0
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts +5 -1
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -1
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +25 -22
- package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.js +13 -13
- package/offline-credentials.js +6 -4
- package/package.json +36 -26
- package/project/create-project-chat.d.ts +34 -0
- package/project/create-project-chat.d.ts.map +1 -0
- package/project/create-project-chat.js +27 -0
- package/project/project-conversation-data-source.d.ts +36 -0
- package/project/project-conversation-data-source.d.ts.map +1 -0
- package/project/project-conversation-data-source.js +67 -0
- package/project/project-events.d.ts +14 -0
- package/project/project-events.d.ts.map +1 -0
- package/project/project-events.js +25 -0
- package/project/project-file-preview.d.ts +32 -0
- package/project/project-file-preview.d.ts.map +1 -0
- package/project/project-file-preview.js +25 -0
- package/project/project-form-errors.d.ts +23 -0
- package/project/project-form-errors.d.ts.map +1 -0
- package/project/project-form-errors.js +46 -0
- package/project/project-limits.d.ts +17 -0
- package/project/project-limits.d.ts.map +1 -0
- package/project/project-limits.js +11 -0
- package/project/project-mapping.d.ts +16 -0
- package/project/project-mapping.d.ts.map +1 -0
- package/project/project-mapping.js +43 -0
- package/project/project-refresh.d.ts +12 -0
- package/project/project-refresh.d.ts.map +1 -0
- package/project/project-refresh.js +6 -0
- package/project/project-viewed-marks.d.ts +9 -0
- package/project/project-viewed-marks.d.ts.map +1 -0
- package/project/project-viewed-marks.js +8 -0
- package/project/project-watch-stream.d.ts +26 -0
- package/project/project-watch-stream.d.ts.map +1 -0
- package/project/project-watch-stream.js +39 -0
- package/project/projects-api-client.d.ts +179 -0
- package/project/projects-api-client.d.ts.map +1 -0
- package/project/projects-api-client.js +90 -0
- package/project/use-pinned-project-chats.d.ts +58 -0
- package/project/use-pinned-project-chats.d.ts.map +1 -0
- package/project/use-pinned-project-chats.js +269 -0
- package/project/use-project-actions.d.ts +53 -0
- package/project/use-project-actions.d.ts.map +1 -0
- package/project/use-project-actions.js +92 -0
- package/project/use-project-artifacts.d.ts +24 -0
- package/project/use-project-artifacts.d.ts.map +1 -0
- package/project/use-project-artifacts.js +78 -0
- package/project/use-project-conversations.d.ts +32 -0
- package/project/use-project-conversations.d.ts.map +1 -0
- package/project/use-project-conversations.js +200 -0
- package/project/use-project-draft.d.ts +46 -0
- package/project/use-project-draft.d.ts.map +1 -0
- package/project/use-project-draft.js +54 -0
- package/project/use-project-file-preview.d.ts +47 -0
- package/project/use-project-file-preview.d.ts.map +1 -0
- package/project/use-project-file-preview.js +50 -0
- package/project/use-project-submit.d.ts +49 -0
- package/project/use-project-submit.d.ts.map +1 -0
- package/project/use-project-submit.js +73 -0
- package/project/use-project-watch.d.ts +24 -0
- package/project/use-project-watch.d.ts.map +1 -0
- package/project/use-project-watch.js +41 -0
- package/project/use-project.d.ts +23 -0
- package/project/use-project.d.ts.map +1 -0
- package/project/use-project.js +73 -0
- package/project/use-projects.d.ts +27 -0
- package/project/use-projects.d.ts.map +1 -0
- package/project/use-projects.js +92 -0
- package/project.d.ts +2 -0
- package/project.js +20 -0
- package/prompt/prompt.d.ts +11 -0
- package/prompt/prompt.d.ts.map +1 -1
- package/prompt/prompt.js +7 -3
- package/scheduled-task/active-scheduled-task.d.ts +58 -0
- package/scheduled-task/active-scheduled-task.d.ts.map +1 -0
- package/scheduled-task/active-scheduled-task.js +18 -0
- package/scheduled-task/scheduled-task-description.d.ts +2 -0
- package/scheduled-task/scheduled-task-description.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-description.js +33 -24
- package/scheduled-task/scheduled-task-display.d.ts +106 -0
- package/scheduled-task/scheduled-task-display.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-display.js +69 -0
- package/scheduled-task/scheduled-task-next-occurrence.d.ts +9 -0
- package/scheduled-task/scheduled-task-next-occurrence.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-next-occurrence.js +20 -0
- package/scheduled-task/scheduled-task-preparation.d.ts +1 -1
- package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-trigger.js +75 -48
- package/scheduled-task/use-scheduled-task-runs.js +19 -31
- package/scheduled-task/use-scheduled-tasks.d.ts +2 -2
- package/scheduled-task/use-scheduled-tasks.js +1 -1
- package/scheduled-task/useActiveScheduledTaskDetails.d.ts +18 -0
- package/scheduled-task/useActiveScheduledTaskDetails.d.ts.map +1 -0
- package/scheduled-task/useActiveScheduledTaskDetails.js +40 -0
- package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts +17 -0
- package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts.map +1 -0
- package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.js +29 -0
- package/scheduled-task/useStartScheduledTask.d.ts +41 -0
- package/scheduled-task/useStartScheduledTask.d.ts.map +1 -0
- package/scheduled-task/useStartScheduledTask.js +169 -0
- package/scheduled-tasks.js +13 -7
- package/scroll-anchoring.js +1 -2
- package/share-invitation/models.d.ts +46 -0
- package/share-invitation/models.d.ts.map +1 -0
- package/share-invitation/share-invitation-error.d.ts +6 -0
- package/share-invitation/share-invitation-error.d.ts.map +1 -0
- package/share-invitation/share-invitation-error.js +37 -0
- package/share-invitation/types.d.ts +10 -0
- package/share-invitation/types.d.ts.map +1 -0
- package/share-invitation/types.js +6 -0
- package/share-invitation/useAcceptShareInvitation/useAcceptShareInvitation.d.ts +9 -0
- package/share-invitation/useAcceptShareInvitation/useAcceptShareInvitation.d.ts.map +1 -0
- package/share-invitation/useAcceptShareInvitation/useAcceptShareInvitation.js +26 -0
- package/shared/application-schema.js +3 -3
- package/shared/client-channel.d.ts +53 -0
- package/shared/client-channel.d.ts.map +1 -0
- package/shared/client-channel.js +6 -0
- package/shared/cron-day-of-month.js +10 -10
- package/shared/external-services.d.ts +1 -1
- package/shared/locale.d.ts +6 -2
- package/shared/locale.d.ts.map +1 -1
- package/shared/locale.js +4 -4
- package/shared/read-sse-events.d.ts +10 -0
- package/shared/read-sse-events.d.ts.map +1 -0
- package/shared/read-sse-events.js +33 -0
- package/shared/serialized-writer.d.ts +12 -0
- package/shared/serialized-writer.d.ts.map +1 -0
- package/shared/serialized-writer.js +44 -0
- package/shared/sleep.d.ts +3 -0
- package/shared/sleep.d.ts.map +1 -0
- package/shared/sleep.js +13 -0
- package/shared/theme-colors.d.ts +16 -0
- package/shared/theme-colors.d.ts.map +1 -0
- package/shared/theme-colors.js +14 -0
- package/shared/url-cleanup.d.ts +18 -0
- package/shared/url-cleanup.d.ts.map +1 -0
- package/shared/url-cleanup.js +18 -0
- package/shared/usage-stat.d.ts +3 -0
- package/shared/usage-stat.d.ts.map +1 -0
- package/shared/usage-stat.js +4 -0
- package/shared/useAppVersionCheck/useAppVersionCheck.d.ts +22 -0
- package/shared/useAppVersionCheck/useAppVersionCheck.d.ts.map +1 -0
- package/shared/useAppVersionCheck/useAppVersionCheck.js +36 -0
- package/shared/usePersistedState/usePersistedState.d.ts +28 -0
- package/shared/usePersistedState/usePersistedState.d.ts.map +1 -0
- package/shared/usePersistedState/usePersistedState.js +24 -0
- package/sharing.js +5 -2
- package/signin-interrupt/models.d.ts +48 -0
- package/signin-interrupt/models.d.ts.map +1 -0
- package/signin-interrupt/signin-row-info.d.ts +10 -0
- package/signin-interrupt/signin-row-info.d.ts.map +1 -0
- package/signin-interrupt/signin-row-info.js +21 -0
- package/signin-interrupt/types.d.ts +28 -0
- package/signin-interrupt/types.d.ts.map +1 -0
- package/signin-interrupt/types.js +10 -0
- package/signin-interrupt/useSigninInterrupt/useSigninInterrupt.d.ts +52 -0
- package/signin-interrupt/useSigninInterrupt/useSigninInterrupt.d.ts.map +1 -0
- package/signin-interrupt/useSigninInterrupt/useSigninInterrupt.js +270 -0
- package/skill/skill-file-batch-validation.d.ts +4 -0
- package/skill/skill-file-batch-validation.d.ts.map +1 -1
- package/skill/skill-file-batch-validation.js +34 -33
- package/skill/skill-lookup.d.ts +20 -0
- package/skill/skill-lookup.d.ts.map +1 -0
- package/skill/skill-lookup.js +12 -0
- package/skill/skill-types.js +1 -1
- package/skill/skill.d.ts +5 -1
- package/skill/skill.d.ts.map +1 -1
- package/skill/skill.js +27 -28
- package/skill/useSkillArchiveImport/useSkillArchiveImport.js +1 -7
- package/skill/useSkillEditorSubmit.d.ts +15 -1
- package/skill/useSkillEditorSubmit.d.ts.map +1 -1
- package/skill/useSkillEditorSubmit.js +164 -87
- package/skill/useSkillFileActions.d.ts +2 -0
- package/skill/useSkillFileActions.d.ts.map +1 -1
- package/skill/useSkillFileActions.js +36 -21
- package/skill-editor/useSkillFilePreviewSyncController.d.ts +41 -0
- package/skill-editor/useSkillFilePreviewSyncController.d.ts.map +1 -0
- package/skill-editor/useSkillFilePreviewSyncController.js +58 -0
- package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts +23 -0
- package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts.map +1 -0
- package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.js +43 -0
- package/skill-editor.js +11 -9
- package/skills-state.js +3 -2
- package/source-content.js +1 -2
- package/usage/map-user-usage-to-model-limits.d.ts.map +1 -1
- package/usage/map-user-usage-to-model-limits.js +24 -24
- package/usage/usage-banner-source.d.ts +8 -7
- package/usage/usage-banner-source.d.ts.map +1 -1
- package/usage/usage-banner-source.js +46 -21
- package/usage/usage-gauge.d.ts +3 -0
- package/usage/usage-gauge.d.ts.map +1 -0
- package/usage/usage-gauge.js +4 -0
- package/usage/usage-reset-time.d.ts +12 -3
- package/usage/usage-reset-time.d.ts.map +1 -1
- package/usage/usage-reset-time.js +48 -38
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +42 -18
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -1
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +23 -28
- package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +10 -8
- package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -1
- package/usage/useUsageLimitBanner/useUsageLimitBanner.js +28 -25
- package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +1 -1
- package/usage-limits.js +10 -8
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +2 -0
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -1
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.js +25 -21
- package/usePageFileDrag/usePageFileDrag.js +3 -3
- package/useShareLink/useShareLink.js +18 -18
- package/utils.js +23 -17
- package/viewport-layout/canvas-width.d.ts +39 -0
- package/viewport-layout/canvas-width.d.ts.map +1 -0
- package/viewport-layout/canvas-width.js +23 -0
- package/viewport-layout.js +2 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { SendCompletionDtoModeEnum } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { MessageCustomContent } from '@epam/ai-dial-chat-shared';
|
|
3
|
+
import { MutableRefObject } from 'react';
|
|
4
|
+
import { ConversationGenerationLifecycle, ConversationStateAccessor, ConversationStreamChannel, ConversationStreamOverlayNotifier, ConversationStreamTransport, StartStreamOptions } from './conversation-stream.types';
|
|
5
|
+
import { FrameScheduler } from './frame-scheduler';
|
|
6
|
+
import { createResumeIfAwaitingGeneration } from './generation-resume';
|
|
7
|
+
import { useConversationReloadErrors } from './useConversationReloadErrors';
|
|
8
|
+
import { useStreamPathState } from './useStreamPathState';
|
|
9
|
+
type PathState = ReturnType<typeof useStreamPathState>;
|
|
10
|
+
type ReloadErrors = ReturnType<typeof useConversationReloadErrors>;
|
|
11
|
+
/** Everything a stream session reads from `useConversationStream`: its capabilities, messages, refs and mutators. */
|
|
12
|
+
export interface StreamSessionContext {
|
|
13
|
+
transport: ConversationStreamTransport;
|
|
14
|
+
channel: ConversationStreamChannel | undefined;
|
|
15
|
+
overlay: ConversationStreamOverlayNotifier | undefined;
|
|
16
|
+
startGeneration: ConversationGenerationLifecycle['startGeneration'];
|
|
17
|
+
completeGeneration: ConversationGenerationLifecycle['completeGeneration'];
|
|
18
|
+
setConversation: ConversationStateAccessor['setConversation'];
|
|
19
|
+
conversationRef: ConversationStateAccessor['conversationRef'];
|
|
20
|
+
generationConflictMessage: string;
|
|
21
|
+
generationPersistenceErrorMessage: string;
|
|
22
|
+
onStreamErrorRef: MutableRefObject<((error: Error) => void) | undefined>;
|
|
23
|
+
batchChunksPerFrameRef: MutableRefObject<boolean>;
|
|
24
|
+
mountedRef: MutableRefObject<boolean>;
|
|
25
|
+
frameScheduler: FrameScheduler;
|
|
26
|
+
resumeGeneration: ReturnType<typeof createResumeIfAwaitingGeneration>;
|
|
27
|
+
activeGenerationIdsRef: PathState['activeGenerationIdsRef'];
|
|
28
|
+
latestGenerationIdsRef: PathState['latestGenerationIdsRef'];
|
|
29
|
+
resumingPathsRef: PathState['resumingPathsRef'];
|
|
30
|
+
bufferedGenerationsRef: PathState['bufferedGenerationsRef'];
|
|
31
|
+
stoppedGenerationIdsRef: PathState['stoppedGenerationIdsRef'];
|
|
32
|
+
addStreamingPath: PathState['addStreamingPath'];
|
|
33
|
+
removeStreamingPath: PathState['removeStreamingPath'];
|
|
34
|
+
setPathStoppable: PathState['setPathStoppable'];
|
|
35
|
+
releaseActiveGeneration: PathState['releaseActiveGeneration'];
|
|
36
|
+
isPathDisplayed: PathState['isPathDisplayed'];
|
|
37
|
+
reportReloadError: ReloadErrors['reportReloadError'];
|
|
38
|
+
clearReloadError: ReloadErrors['clearReloadError'];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* One generation of `useConversationStream.startStream`: registers the
|
|
42
|
+
* generation for its path, sends the completion, applies chunks (batched per
|
|
43
|
+
* frame when asked), reloads the persisted conversation on completion, shows
|
|
44
|
+
* a failure on the message, recovers an interrupted or conflicted start, and
|
|
45
|
+
* saves an answer whose terminal save was rejected with `401`. Each generation
|
|
46
|
+
* keeps its own closures over its id, path and abort controller; the hook
|
|
47
|
+
* passes a fresh context built from the same values its callback closes over.
|
|
48
|
+
*/
|
|
49
|
+
export declare const runStreamSession: ({ transport, channel, overlay, startGeneration, completeGeneration, setConversation, conversationRef, generationConflictMessage, generationPersistenceErrorMessage, onStreamErrorRef, batchChunksPerFrameRef, mountedRef, frameScheduler, resumeGeneration, activeGenerationIdsRef, latestGenerationIdsRef, resumingPathsRef, bufferedGenerationsRef, stoppedGenerationIdsRef, addStreamingPath, removeStreamingPath, setPathStoppable, releaseActiveGeneration, isPathDisplayed, reportReloadError, clearReloadError, }: StreamSessionContext, currentConversationId: string, userContent: string, messageIndex: number, model: string, customContent?: MessageCustomContent, generationId?: string, mode?: SendCompletionDtoModeEnum, options?: StartStreamOptions) => void;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=stream-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream-session.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationStream/stream-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAa9C,OAAO,KAAK,EACV,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,iCAAiC,EACjC,2BAA2B,EAC3B,kBAAkB,EAEnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACL,gCAAgC,EAKjC,MAAM,qBAAqB,CAAC;AAM7B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEvD,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEnE,qHAAqH;AACrH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,2BAA2B,CAAC;IACvC,OAAO,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAC/C,OAAO,EAAE,iCAAiC,GAAG,SAAS,CAAC;IACvD,eAAe,EAAE,+BAA+B,CAAC,iBAAiB,CAAC,CAAC;IACpE,kBAAkB,EAAE,+BAA+B,CAAC,oBAAoB,CAAC,CAAC;IAC1E,eAAe,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;IAC9D,eAAe,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;IAC9D,yBAAyB,EAAE,MAAM,CAAC;IAClC,iCAAiC,EAAE,MAAM,CAAC;IAC1C,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;IACzE,sBAAsB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAClD,UAAU,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACtC,cAAc,EAAE,cAAc,CAAC;IAC/B,gBAAgB,EAAE,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC;IACtE,sBAAsB,EAAE,SAAS,CAAC,wBAAwB,CAAC,CAAC;IAC5D,sBAAsB,EAAE,SAAS,CAAC,wBAAwB,CAAC,CAAC;IAC5D,gBAAgB,EAAE,SAAS,CAAC,kBAAkB,CAAC,CAAC;IAChD,sBAAsB,EAAE,SAAS,CAAC,wBAAwB,CAAC,CAAC;IAC5D,uBAAuB,EAAE,SAAS,CAAC,yBAAyB,CAAC,CAAC;IAC9D,gBAAgB,EAAE,SAAS,CAAC,kBAAkB,CAAC,CAAC;IAChD,mBAAmB,EAAE,SAAS,CAAC,qBAAqB,CAAC,CAAC;IACtD,gBAAgB,EAAE,SAAS,CAAC,kBAAkB,CAAC,CAAC;IAChD,uBAAuB,EAAE,SAAS,CAAC,yBAAyB,CAAC,CAAC;IAC9D,eAAe,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC9C,iBAAiB,EAAE,YAAY,CAAC,mBAAmB,CAAC,CAAC;IACrD,gBAAgB,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC;CACpD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAC3B,0fA2BG,oBAAoB,EACvB,uBAAuB,MAAM,EAC7B,aAAa,MAAM,EACnB,cAAc,MAAM,EACpB,OAAO,MAAM,EACb,gBAAgB,oBAAoB,EACpC,eAAe,MAAM,EACrB,OAAM,yBAA4D,EAClE,UAAS,kBAAuB,KAC/B,IA2iBF,CAAC"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { safeDecodeURI as e } from "../../shared/string-utils.js";
|
|
2
|
+
import { GenerationConflictError as t, GenerationPersistenceError as n, StreamInterruptedError as r } from "../create-chat-stream-api.js";
|
|
3
|
+
import { getConversationPath as i } from "./conversation-path.js";
|
|
4
|
+
import { applyChunkToMessages as a } from "./apply-chunk.js";
|
|
5
|
+
import { restoreBufferedMessage as o } from "./buffered-generation.js";
|
|
6
|
+
import { fetchConversationForRecovery as s, findPendingBackgroundMessageIndex as c, hasGeneratedPayload as l, isAwaitingGenerationResume as u } from "./generation-resume.js";
|
|
7
|
+
import { resolveStreamErrorMessage as ee } from "./stream-errors.js";
|
|
8
|
+
import { SendCompletionDtoModeEnum as d } from "@epam/ai-dial-chat-api-client";
|
|
9
|
+
import { MessageRole as f, generateUUID as p } from "@epam/ai-dial-chat-shared";
|
|
10
|
+
//#region src/conversation/useConversationStream/stream-session.ts
|
|
11
|
+
var m = ({ transport: m, channel: h, overlay: g, startGeneration: te, completeGeneration: _, setConversation: v, conversationRef: y, generationConflictMessage: ne, generationPersistenceErrorMessage: b, onStreamErrorRef: x, batchChunksPerFrameRef: re, mountedRef: S, frameScheduler: C, resumeGeneration: w, activeGenerationIdsRef: T, latestGenerationIdsRef: E, resumingPathsRef: D, bufferedGenerationsRef: O, stoppedGenerationIdsRef: k, addStreamingPath: ie, removeStreamingPath: A, setPathStoppable: j, releaseActiveGeneration: M, isPathDisplayed: N, reportReloadError: ae, clearReloadError: P }, F, I, L, oe, se, ce, R = d.Append, le = {}) => {
|
|
12
|
+
let z = ce ?? p(), B = i(F);
|
|
13
|
+
C.flush(B), D.current.delete(B), T.current.set(B, z), E.current.set(B, z), j(B, !0);
|
|
14
|
+
let V;
|
|
15
|
+
R === d.Regenerate ? V = L : R === d.Edit && (V = L - 1);
|
|
16
|
+
let H = () => E.current.get(B) !== z, U = te(B, z), W = y.current?.messages[L];
|
|
17
|
+
W ? O.current.set(B, {
|
|
18
|
+
generationId: z,
|
|
19
|
+
messageIndex: L,
|
|
20
|
+
message: W
|
|
21
|
+
}) : O.current.delete(B), ie(B), g?.notifyGenerationStart?.(), h?.ensureConnected();
|
|
22
|
+
let G = () => {
|
|
23
|
+
H() || A(B), M(B, z), _(B, z), h?.notifyGenerationSettled?.();
|
|
24
|
+
}, ue = () => {
|
|
25
|
+
if (H()) return;
|
|
26
|
+
let e = O.current.get(B);
|
|
27
|
+
e && e.generationId === z && (e.message = {
|
|
28
|
+
...e.message,
|
|
29
|
+
streamErrorMessage: b
|
|
30
|
+
}, x.current?.(new n()), N(B) && v((t) => {
|
|
31
|
+
if (!t || H() || !N(B)) return t;
|
|
32
|
+
let n = o(t, e);
|
|
33
|
+
return y.current = n, n;
|
|
34
|
+
}));
|
|
35
|
+
}, K = O.current.get(B), q = () => S.current && !H() && O.current.get(B) === K, J = async () => {
|
|
36
|
+
if (q()) {
|
|
37
|
+
if (!N(B)) K && O.current.delete(B);
|
|
38
|
+
else try {
|
|
39
|
+
let t = await m.getConversation(e(F));
|
|
40
|
+
if (!q()) return;
|
|
41
|
+
if (P(B), !N(B)) {
|
|
42
|
+
K && O.current.delete(B);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if (c(t) !== -1) {
|
|
46
|
+
w(F, t, { seedMessage: K?.message });
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (K && K.messageIndex === t.messages.length - 1 && u(t) && l(K.message)) {
|
|
50
|
+
ue();
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
K && O.current.delete(B), v(t), y.current = t;
|
|
54
|
+
} catch {
|
|
55
|
+
q() && ae(B, J, q);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}, Y = {
|
|
59
|
+
signal: U.signal,
|
|
60
|
+
onChunk: (e) => {
|
|
61
|
+
if (H()) return;
|
|
62
|
+
let t = O.current.get(B);
|
|
63
|
+
if (t?.generationId === z) {
|
|
64
|
+
let n = a([t.message], 0, e);
|
|
65
|
+
n && (t.message = n[0]);
|
|
66
|
+
}
|
|
67
|
+
N(B) && (re.current && t?.generationId === z ? C.schedule(B, () => {
|
|
68
|
+
let e = O.current.get(B);
|
|
69
|
+
if (H() || !N(B) || e?.generationId !== z) return;
|
|
70
|
+
let t = { ...e };
|
|
71
|
+
v((e) => {
|
|
72
|
+
if (!e) return e;
|
|
73
|
+
let n = o(e, t);
|
|
74
|
+
return y.current = n, n;
|
|
75
|
+
});
|
|
76
|
+
}) : v((t) => {
|
|
77
|
+
if (!t) return t;
|
|
78
|
+
let n = O.current.get(B), r;
|
|
79
|
+
if (n?.generationId === z) r = o(t, n);
|
|
80
|
+
else {
|
|
81
|
+
let n = a(t.messages, L, e);
|
|
82
|
+
if (!n) return t;
|
|
83
|
+
r = {
|
|
84
|
+
...t,
|
|
85
|
+
messages: n
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
return y.current = r, r;
|
|
89
|
+
}));
|
|
90
|
+
},
|
|
91
|
+
onComplete: async () => {
|
|
92
|
+
C.flush(B), G(), k.current.has(z) ? k.current.delete(z) : H() || g?.notifyGenerationEnd?.(), await J();
|
|
93
|
+
},
|
|
94
|
+
onError: (e) => {
|
|
95
|
+
C.flush(B), x.current?.(e), e instanceof r && !H() ? fe(e) : e instanceof t && le.resumeOnConflict && !H() ? pe(e) : X(e);
|
|
96
|
+
}
|
|
97
|
+
}, X = (e) => {
|
|
98
|
+
let t = O.current.get(B), r = t?.generationId === z ? t : void 0;
|
|
99
|
+
r && !(e instanceof n) && O.current.delete(B), G(), r && m.saveConversation && e instanceof n && e.status === 401 ? de(e, r, m.saveConversation.bind(m)) : Z(e, r);
|
|
100
|
+
}, Z = (e, t) => {
|
|
101
|
+
if (t && e instanceof n && (t.message = {
|
|
102
|
+
...t.message,
|
|
103
|
+
streamErrorMessage: b
|
|
104
|
+
}), H() || !N(B)) return;
|
|
105
|
+
let r = ee(e, ne, b);
|
|
106
|
+
v((e) => {
|
|
107
|
+
if (!e || H() || !N(B)) return e;
|
|
108
|
+
let n = t?.generationId === z ? o(e, t) : e, i = {
|
|
109
|
+
...n,
|
|
110
|
+
messages: n.messages.map((e, t) => t === L ? {
|
|
111
|
+
...e,
|
|
112
|
+
streamErrorMessage: r
|
|
113
|
+
} : e)
|
|
114
|
+
};
|
|
115
|
+
return y.current = i, i;
|
|
116
|
+
});
|
|
117
|
+
}, de = async (t, n, r) => {
|
|
118
|
+
let i = () => S.current && !H() && O.current.get(B) === n;
|
|
119
|
+
try {
|
|
120
|
+
let a = await m.getConversation(e(F));
|
|
121
|
+
if (!i()) return;
|
|
122
|
+
if (n.messageIndex !== a.messages.length - 1 || !u(a)) {
|
|
123
|
+
Z(t, n);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
let s = t.terminalMarker ? {
|
|
127
|
+
...n,
|
|
128
|
+
message: {
|
|
129
|
+
...n.message,
|
|
130
|
+
...t.terminalMarker
|
|
131
|
+
}
|
|
132
|
+
} : n, c = await r(B, o(a, s));
|
|
133
|
+
if (!i() || (O.current.delete(B), !N(B))) return;
|
|
134
|
+
v(c), y.current = c;
|
|
135
|
+
} catch {
|
|
136
|
+
i() && Z(t, n);
|
|
137
|
+
}
|
|
138
|
+
}, Q = () => {
|
|
139
|
+
G(), k.current.has(z) ? k.current.delete(z) : H() || g?.notifyGenerationEnd?.();
|
|
140
|
+
}, fe = async (t) => {
|
|
141
|
+
D.current.add(B);
|
|
142
|
+
let n = await s(() => m.getConversation(e(F)), H);
|
|
143
|
+
$(n, t, !1);
|
|
144
|
+
}, pe = async (t) => {
|
|
145
|
+
T.current.get(B) === z && j(B, !1), D.current.add(B);
|
|
146
|
+
let n = await s(() => m.getConversation(e(F)), H, (e) => e.messages.length === L && e.messages.at(-1)?.role === f.User);
|
|
147
|
+
$(n, t, !0);
|
|
148
|
+
}, $ = (e, t, n) => {
|
|
149
|
+
if (H()) {
|
|
150
|
+
G();
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
let r = e?.messages[e.messages.length - 1], i = e != null && e.messages.length - 1 === L && r?.role === f.Assistant, a = n && e != null && c(e) !== -1;
|
|
154
|
+
if (!e || !i && !a) {
|
|
155
|
+
D.current.delete(B), X(t);
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
let o = O.current.get(B), s = o?.generationId === z ? o : void 0;
|
|
159
|
+
u(e) ? w(F, e, {
|
|
160
|
+
seedMessage: i ? s?.message : void 0,
|
|
161
|
+
skipDedupe: !0,
|
|
162
|
+
onSettled: Q
|
|
163
|
+
}) : (D.current.delete(B), s && O.current.delete(B), N(B) && (v(e), y.current = e), Q());
|
|
164
|
+
};
|
|
165
|
+
(async () => {
|
|
166
|
+
try {
|
|
167
|
+
let e = h?.channelId ?? await h?.waitForChannel(2e4) ?? void 0, t = k.current.has(z);
|
|
168
|
+
if (U.signal.aborted || H() || t) {
|
|
169
|
+
O.current.get(B)?.generationId === z && O.current.delete(B), H() || A(B), M(B, z), _(B, z), h?.notifyGenerationSettled?.(), t ? k.current.delete(z) : H() || g?.notifyGenerationEnd?.();
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
m.streamCompletion(B, I, oe, Y, se, z, R, V, e);
|
|
173
|
+
} catch (e) {
|
|
174
|
+
Y.onError(e instanceof Error ? e : Error(String(e)));
|
|
175
|
+
}
|
|
176
|
+
})();
|
|
177
|
+
};
|
|
178
|
+
//#endregion
|
|
179
|
+
export { m as runStreamSession };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
interface ConversationReloadFailure {
|
|
3
|
+
retry: () => Promise<void>;
|
|
4
|
+
isCurrent: () => boolean;
|
|
5
|
+
}
|
|
6
|
+
interface UseConversationReloadErrorsParams {
|
|
7
|
+
conversationId: string | undefined;
|
|
8
|
+
mountedRef: MutableRefObject<boolean>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Terminal-read failures of `useConversationStream`, per conversation path:
|
|
12
|
+
* records a failed read with its retry, clears it on success or a new
|
|
13
|
+
* stream, and retries the displayed conversation's read once at a time. The
|
|
14
|
+
* ref is the source of truth; the state copies re-render the host.
|
|
15
|
+
*/
|
|
16
|
+
export declare const useConversationReloadErrors: ({ conversationId, mountedRef, }: UseConversationReloadErrorsParams) => {
|
|
17
|
+
reloadFailuresRef: import('react').RefObject<Map<string, ConversationReloadFailure>>;
|
|
18
|
+
reloadFailures: Map<string, ConversationReloadFailure>;
|
|
19
|
+
retrying: Set<ConversationReloadFailure>;
|
|
20
|
+
clearReloadError: (path: string) => void;
|
|
21
|
+
reportReloadError: (path: string, retry: () => Promise<void>, isCurrent: () => boolean) => void;
|
|
22
|
+
retryConversationReload: () => Promise<void>;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=useConversationReloadErrors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConversationReloadErrors.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationStream/useConversationReloadErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAiC,MAAM,OAAO,CAAC;AAG7E,UAAU,yBAAyB;IACjC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,SAAS,EAAE,MAAM,OAAO,CAAC;CAC1B;AAED,UAAU,iCAAiC;IACzC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IAEnC,UAAU,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;CACvC;AAED;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GAAI,iCAGzC,iCAAiC;;;;6BAWzB,MAAM;8BAWN,MAAM,SAAS,MAAM,OAAO,CAAC,IAAI,CAAC,aAAa,MAAM,OAAO;;CAmCtE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { getConversationPath as e } from "./conversation-path.js";
|
|
2
|
+
import { useCallback as t, useRef as n, useState as r } from "react";
|
|
3
|
+
//#region src/conversation/useConversationStream/useConversationReloadErrors.ts
|
|
4
|
+
var i = ({ conversationId: i, mountedRef: a }) => {
|
|
5
|
+
let o = n(/* @__PURE__ */ new Map()), [s, c] = r(o.current), l = n(/* @__PURE__ */ new Set()), [u, d] = r(l.current);
|
|
6
|
+
return {
|
|
7
|
+
reloadFailuresRef: o,
|
|
8
|
+
reloadFailures: s,
|
|
9
|
+
retrying: u,
|
|
10
|
+
clearReloadError: t((e) => {
|
|
11
|
+
if (!o.current.has(e)) return;
|
|
12
|
+
let t = new Map(o.current);
|
|
13
|
+
t.delete(e), o.current = t, a.current && c(t);
|
|
14
|
+
}, [a]),
|
|
15
|
+
reportReloadError: t((e, t, n) => {
|
|
16
|
+
if (!a.current || !n()) return;
|
|
17
|
+
let r = new Map(o.current);
|
|
18
|
+
r.set(e, {
|
|
19
|
+
retry: t,
|
|
20
|
+
isCurrent: n
|
|
21
|
+
}), o.current = r, c(r);
|
|
22
|
+
}, [a]),
|
|
23
|
+
retryConversationReload: t(async () => {
|
|
24
|
+
if (!i) return;
|
|
25
|
+
let t = o.current.get(e(i));
|
|
26
|
+
if (t && t.isCurrent() && !l.current.has(t)) {
|
|
27
|
+
l.current.add(t), d(new Set(l.current));
|
|
28
|
+
try {
|
|
29
|
+
await t.retry();
|
|
30
|
+
} finally {
|
|
31
|
+
l.current.delete(t), a.current && d(new Set(l.current));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}, [i, a])
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { i as useConversationReloadErrors };
|
|
@@ -1,138 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { Dispatch, MutableRefObject, SetStateAction } from 'react';
|
|
4
|
-
/** Options accepted by {@link ConversationStreamTransport.streamCompletion}. */
|
|
5
|
-
export interface StreamCompletionOptions {
|
|
6
|
-
onChunk: (chunk: StreamChunk) => void;
|
|
7
|
-
onComplete: () => void | Promise<void>;
|
|
8
|
-
onError: (error: Error) => void;
|
|
9
|
-
signal: AbortSignal;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Host-owned transport for the DIAL Core completion protocol. Implemented at
|
|
13
|
-
* the app edge — never hardcodes an `/api` path, CSRF handling, or a
|
|
14
|
-
* `server-api` import; the library only depends on this interface's shape.
|
|
15
|
-
*/
|
|
16
|
-
export interface ConversationStreamTransport {
|
|
17
|
-
/** Starts a completion; delivers chunks/completion/error through `options`, aborted via `options.signal`. */
|
|
18
|
-
streamCompletion(path: string, message: string | undefined, model: string, options: StreamCompletionOptions, customContent?: MessageCustomContent, generationId?: string, mode?: SendCompletionDtoModeEnum, messageIndex?: number, clientChannelId?: string): void;
|
|
19
|
-
/**
|
|
20
|
-
* Requests the backend stop an active generation. `content` is the answer text shown
|
|
21
|
-
* so far; the backend saves it for a generation whose text it does not hold.
|
|
22
|
-
*/
|
|
23
|
-
stopCompletion(params: {
|
|
24
|
-
generationId: string;
|
|
25
|
-
path: string;
|
|
26
|
-
content?: string;
|
|
27
|
-
}): Promise<void>;
|
|
28
|
-
/** Opens a stream of resource-update events for `path`, until aborted via `signal`. */
|
|
29
|
-
watchConversation(path: string, signal: AbortSignal): Promise<ReadableStream<Uint8Array>>;
|
|
30
|
-
/**
|
|
31
|
-
* Attaches to an active generation's live replay: a `snapshot` event
|
|
32
|
-
* carrying the assistant message as assembled so far, then a `chunk` event
|
|
33
|
-
* per subsequent delta, then exactly one terminal event (`done`/`error`/
|
|
34
|
-
* `stopped`), until aborted via `signal`. Rejects when no active
|
|
35
|
-
* generation exists for `path` — including one that already finished —
|
|
36
|
-
* so the caller can fall back to `watchConversation`.
|
|
37
|
-
*/
|
|
38
|
-
attachToGeneration(path: string, signal: AbortSignal): Promise<ReadableStream<Uint8Array>>;
|
|
39
|
-
/** Reloads the persisted conversation by its full (bucket-qualified) id. */
|
|
40
|
-
getConversation(conversationId: string, signal?: AbortSignal): Promise<Conversation>;
|
|
41
|
-
/**
|
|
42
|
-
* Saves `conversation` at the bucket-stripped `path`, resolving with the saved
|
|
43
|
-
* conversation. Used only for the single recovery save after the backend's
|
|
44
|
-
* terminal save was rejected with `401`; without it that failure shows the
|
|
45
|
-
* persistence warning immediately.
|
|
46
|
-
*/
|
|
47
|
-
saveConversation?(path: string, conversation: Conversation): Promise<Conversation>;
|
|
48
|
-
}
|
|
49
|
-
/** Host-owned generation lifecycle, backing cross-navigation `AbortController` ownership. */
|
|
50
|
-
export interface ConversationGenerationLifecycle {
|
|
51
|
-
/** Starts (or replaces) tracking for a generation on `path`, returning its `AbortController`. */
|
|
52
|
-
startGeneration: (path: string, generationId: string) => AbortController;
|
|
53
|
-
/** Marks the generation identified by `path`/`generationId` complete, if it is still the active one. */
|
|
54
|
-
completeGeneration: (path: string, generationId: string) => void;
|
|
55
|
-
}
|
|
56
|
-
/** Optional host-owned client-channel connection, used to nudge tool-signin delivery. */
|
|
57
|
-
export interface ConversationStreamChannel {
|
|
58
|
-
channelId: string | null;
|
|
59
|
-
ensureConnected: () => void;
|
|
60
|
-
/** Resolves with a channel id, waiting for an in-flight subscribe if one isn't established yet, so a completion sent immediately after mount can still carry it. */
|
|
61
|
-
waitForChannel: (timeoutMs?: number) => Promise<string | null>;
|
|
62
|
-
/** Notifies the host that a generation just ended (completed or errored), so it can consider disconnecting an idle channel. */
|
|
63
|
-
notifyGenerationSettled?: () => void;
|
|
64
|
-
}
|
|
65
|
-
/** Optional host-owned overlay generation-lifecycle notifications. Each method is independently optional. */
|
|
66
|
-
export interface ConversationStreamOverlayNotifier {
|
|
67
|
-
notifyGenerationStart?: () => void;
|
|
68
|
-
notifyGenerationEnd?: () => void;
|
|
69
|
-
notifyStopGenerating?: () => void;
|
|
70
|
-
}
|
|
71
|
-
/** Shared mutable channel through which the displayed conversation's state is read/written. */
|
|
72
|
-
export interface ConversationStateAccessor {
|
|
73
|
-
setConversation: Dispatch<SetStateAction<Conversation | null>>;
|
|
74
|
-
conversationRef: MutableRefObject<Conversation | null>;
|
|
75
|
-
}
|
|
76
|
-
/** Parameters for {@link useConversationStream}. */
|
|
77
|
-
export interface UseConversationStreamParams {
|
|
78
|
-
conversationId: string | undefined;
|
|
79
|
-
state: ConversationStateAccessor;
|
|
80
|
-
transport: ConversationStreamTransport;
|
|
81
|
-
generation: ConversationGenerationLifecycle;
|
|
82
|
-
channel?: ConversationStreamChannel;
|
|
83
|
-
overlay?: ConversationStreamOverlayNotifier;
|
|
84
|
-
onStopError?: (error: Error) => void;
|
|
85
|
-
/**
|
|
86
|
-
* Message shown on the message bubble when the backend rejects a completion
|
|
87
|
-
* because this conversation is already generating — the case a second
|
|
88
|
-
* browser tab of the same session hits. Defaults to
|
|
89
|
-
* {@link DEFAULT_GENERATION_CONFLICT_MESSAGE}.
|
|
90
|
-
*/
|
|
91
|
-
generationConflictMessage?: string;
|
|
92
|
-
/** Host-translated warning shown when the received answer could not be saved. */
|
|
93
|
-
generationPersistenceErrorMessage?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Receives the original error of every failed stream. The hook shows only
|
|
96
|
-
* host-supplied or upstream-supplied text on the message bubble and hides
|
|
97
|
-
* transport detail (e.g. `Failed to fetch`), so this is where the host can
|
|
98
|
-
* still log or report the raw error.
|
|
99
|
-
*/
|
|
100
|
-
onStreamError?: (error: Error) => void;
|
|
101
|
-
/**
|
|
102
|
-
* Coalesces the displayed chunk updates into one `setConversation` per
|
|
103
|
-
* animation frame. Chunks still reach the per-path buffer immediately, and
|
|
104
|
-
* any pending update is flushed before completion, error, stop, or a
|
|
105
|
-
* superseding generation. Defaults to `false` (one update per chunk).
|
|
106
|
-
*/
|
|
107
|
-
batchChunksPerFrame?: boolean;
|
|
108
|
-
}
|
|
109
|
-
/** Per-start options of {@link UseConversationStreamResult.startStream}. */
|
|
110
|
-
export interface StartStreamOptions {
|
|
111
|
-
/**
|
|
112
|
-
* Treats a `GenerationConflictError` as "this turn is already being
|
|
113
|
-
* generated" — e.g. a page reloaded before that generation saved its start
|
|
114
|
-
* state — and joins the running generation instead of showing the conflict
|
|
115
|
-
* message, which remains the fallback. Only for a start that sends no new
|
|
116
|
-
* user text; a send the user typed must keep reporting the conflict.
|
|
117
|
-
*/
|
|
118
|
-
resumeOnConflict?: boolean;
|
|
119
|
-
}
|
|
120
|
-
/** Return value of {@link useConversationStream}. */
|
|
121
|
-
export interface UseConversationStreamResult {
|
|
122
|
-
startStream: (conversationId: string, userContent: string, messageIndex: number, model: string, customContent?: MessageCustomContent, generationId?: string, mode?: SendCompletionDtoModeEnum, options?: StartStreamOptions) => void;
|
|
123
|
-
handleStop: () => void;
|
|
124
|
-
resumeIfAwaitingGeneration: (currentConversationId: string, conversation: Conversation) => void;
|
|
125
|
-
/** Restores the accumulated live assistant message when its conversation is loaded again before completion. */
|
|
126
|
-
restoreBufferedGeneration: (currentConversationId: string, conversation: Conversation) => Conversation;
|
|
127
|
-
isStreaming: boolean;
|
|
128
|
-
canStopStreaming: boolean;
|
|
129
|
-
/** Whether the displayed conversation's terminal read failed. */
|
|
130
|
-
hasConversationReloadError: boolean;
|
|
131
|
-
/** Whether a retry of that read is in flight. */
|
|
132
|
-
isReloadingConversation: boolean;
|
|
133
|
-
/** Retries the failed read without saving or regenerating the answer. */
|
|
134
|
-
retryConversationReload: () => Promise<void>;
|
|
135
|
-
}
|
|
1
|
+
import { UseConversationStreamParams, UseConversationStreamResult } from './conversation-stream.types';
|
|
2
|
+
export type { ConversationGenerationLifecycle, ConversationStateAccessor, ConversationStreamChannel, ConversationStreamOverlayNotifier, ConversationStreamTransport, StartStreamOptions, StreamCompletionOptions, UseConversationStreamParams, UseConversationStreamResult, } from './conversation-stream.types';
|
|
136
3
|
/**
|
|
137
4
|
* Owns completion-streaming state: per-path streaming/stoppable tracking,
|
|
138
5
|
* stale-chunk rejection, cross-navigation live-message buffering,
|
|
@@ -141,5 +8,5 @@ export interface UseConversationStreamResult {
|
|
|
141
8
|
* `transport`/`generation`/`channel`/`overlay` capabilities rather than any
|
|
142
9
|
* app context or `server-api` import.
|
|
143
10
|
*/
|
|
144
|
-
export declare const useConversationStream: ({ conversationId, state: { setConversation, conversationRef }, transport, generation: { startGeneration, completeGeneration }, channel, overlay, onStopError, generationConflictMessage, generationPersistenceErrorMessage, onStreamError, batchChunksPerFrame, }: UseConversationStreamParams) => UseConversationStreamResult;
|
|
11
|
+
export declare const useConversationStream: ({ conversationId, state: { setConversation, conversationRef }, transport, generation: { startGeneration, completeGeneration }, channel, overlay, onStopError, generationConflictMessage, generationPersistenceErrorMessage, generationInterruptedMessage, onStreamError, batchChunksPerFrame, }: UseConversationStreamParams) => UseConversationStreamResult;
|
|
145
12
|
//# sourceMappingURL=useConversationStream.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConversationStream.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationStream/useConversationStream.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useConversationStream.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationStream/useConversationStream.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAEV,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,6BAA6B,CAAC;AAYrC,YAAY,EACV,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,iCAAiC,EACjC,2BAA2B,EAC3B,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AAErC;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAAI,iSAanC,2BAA2B,KAAG,2BAwRhC,CAAC"}
|