@epam/ai-dial-chat-hooks 1.3.0-dev.34 → 1.3.0-dev.342
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 +32 -0
- package/api-error/api-error.d.ts.map +1 -0
- package/api-error/api-error.js +31 -23
- package/api-transport/create-csrf-middleware.d.ts +15 -0
- package/api-transport/create-csrf-middleware.d.ts.map +1 -0
- package/api-transport/create-unauthorized-middleware.d.ts +40 -0
- package/api-transport/create-unauthorized-middleware.d.ts.map +1 -0
- 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 +32 -0
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -0
- package/attachment/useAttachmentAction/useAttachmentAction.js +25 -28
- package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts +50 -0
- package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +1 -0
- package/attachments.d.ts +2 -94
- 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 +29 -0
- package/catalog/catalog-derivations.d.ts.map +1 -0
- 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/catalog-primary-action.d.ts +47 -0
- package/catalog/catalog-primary-action.d.ts.map +1 -0
- package/catalog/create-publish-api.d.ts +34 -0
- package/catalog/create-publish-api.d.ts.map +1 -0
- package/catalog/create-publish-api.js +4 -0
- package/catalog/deployment-endpoint-url.d.ts +19 -0
- package/catalog/deployment-endpoint-url.d.ts.map +1 -0
- package/catalog/deployment-id.d.ts +51 -0
- package/catalog/deployment-id.d.ts.map +1 -0
- package/catalog/deployment-id.js +17 -3
- package/catalog/entity-details.d.ts +148 -0
- package/catalog/entity-details.d.ts.map +1 -0
- 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-catalog.d.ts +34 -0
- package/catalog/map-deployment-limits-to-catalog.d.ts.map +1 -0
- package/catalog/map-deployment-limits-to-input.d.ts +29 -0
- package/catalog/map-deployment-limits-to-input.d.ts.map +1 -0
- package/catalog/map-deployment-limits-to-input.js +3 -4
- package/catalog/map-deployment-to-catalog-item.d.ts +72 -0
- package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-deployment-to-catalog-item.js +17 -12
- package/catalog/map-entity-details-to-catalog.d.ts +81 -0
- package/catalog/map-entity-details-to-catalog.d.ts.map +1 -0
- package/catalog/map-entity-details-to-catalog.js +69 -24
- package/catalog/map-prompt-to-catalog-item.d.ts +43 -0
- package/catalog/map-prompt-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-skill-to-catalog-item.d.ts +112 -0
- package/catalog/map-skill-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-skill-to-catalog-item.js +29 -38
- package/catalog/mcp-endpoint-url.d.ts +18 -0
- package/catalog/mcp-endpoint-url.d.ts.map +1 -0
- package/catalog/publish.d.ts +35 -0
- package/catalog/publish.d.ts.map +1 -0
- 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-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/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/useApplicationCredentials/useApplicationCredentials.d.ts +19 -0
- package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts.map +1 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +117 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +108 -107
- 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/useCatalogItemDetails.d.ts +70 -0
- package/catalog/useCatalogItemDetails.d.ts.map +1 -0
- package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts +76 -0
- package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts.map +1 -0
- package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js +72 -77
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +37 -0
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +1 -0
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js +1 -1
- package/catalog/usePublishFolders/usePublishFolders.d.ts +81 -0
- package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -0
- 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/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts +54 -0
- package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts.map +1 -0
- package/catalog/useSkillItemDetails.d.ts +64 -0
- package/catalog/useSkillItemDetails.d.ts.map +1 -0
- package/catalog/useSkillItemDetails.js +3 -3
- package/catalog.d.ts +2 -1436
- package/catalog.js +37 -23
- package/conversation/announcement-message.d.ts +61 -0
- package/conversation/announcement-message.d.ts.map +1 -0
- 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.d.ts +21 -0
- package/conversation/conversation-draft/conversation-draft-store.d.ts.map +1 -0
- package/conversation/conversation-draft/conversation-draft-store.js +84 -0
- package/conversation/conversation-draft/conversation-draft.d.ts +48 -0
- package/conversation/conversation-draft/conversation-draft.d.ts.map +1 -0
- 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/async.d.ts +10 -0
- package/conversation/conversation-transfer/async.d.ts.map +1 -0
- package/conversation/conversation-transfer/attachment-refs.d.ts +50 -0
- package/conversation/conversation-transfer/attachment-refs.d.ts.map +1 -0
- package/conversation/conversation-transfer/attachment-refs.js +31 -9
- package/conversation/conversation-transfer/build-upload-path.d.ts +42 -0
- package/conversation/conversation-transfer/build-upload-path.d.ts.map +1 -0
- package/conversation/conversation-transfer/date.d.ts +5 -0
- package/conversation/conversation-transfer/date.d.ts.map +1 -0
- package/conversation/conversation-transfer/dial-file-resolve.d.ts +10 -0
- package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +1 -0
- package/conversation/conversation-transfer/export-conversation.d.ts +14 -0
- package/conversation/conversation-transfer/export-conversation.d.ts.map +1 -0
- package/conversation/conversation-transfer/export-conversation.js +19 -18
- package/conversation/conversation-transfer/import-conversation.d.ts +111 -0
- package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -0
- package/conversation/conversation-transfer/import-conversation.js +65 -69
- package/conversation/conversation-transfer/progress.d.ts +60 -0
- package/conversation/conversation-transfer/progress.d.ts.map +1 -0
- package/conversation/conversation-transfer/progress.js +1 -1
- package/conversation/conversation-transfer/queue.d.ts +54 -0
- package/conversation/conversation-transfer/queue.d.ts.map +1 -0
- package/conversation/conversation-transfer/types.d.ts +36 -0
- package/conversation/conversation-transfer/types.d.ts.map +1 -0
- package/conversation/conversation-transfer/zip-export.d.ts +31 -0
- package/conversation/conversation-transfer/zip-export.d.ts.map +1 -0
- package/conversation/conversation-transfer/zip-export.js +1 -7
- package/conversation/conversation-transfer/zip-import.d.ts +17 -0
- package/conversation/conversation-transfer/zip-import.d.ts.map +1 -0
- package/conversation/conversation-transfer/zip-import.js +1 -1
- package/conversation/create-chat-stream-api.d.ts +111 -0
- package/conversation/create-chat-stream-api.d.ts.map +1 -0
- package/conversation/create-chat-stream-api.js +60 -49
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +39 -0
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +1 -0
- package/conversation/display-name-watch.d.ts +4 -0
- package/conversation/display-name-watch.d.ts.map +1 -0
- package/conversation/footer-message.d.ts +10 -0
- package/conversation/footer-message.d.ts.map +1 -0
- 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/get-model-id-from-conversation-id.d.ts +38 -0
- package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -0
- package/conversation/get-model-id-from-conversation-id.js +1 -1
- package/conversation/greeting.d.ts +18 -0
- package/conversation/greeting.d.ts.map +1 -0
- package/conversation/message-factory.d.ts +7 -0
- package/conversation/message-factory.d.ts.map +1 -0
- package/conversation/message-utils.d.ts +73 -0
- package/conversation/message-utils.d.ts.map +1 -0
- package/conversation/message-utils.js +14 -10
- package/conversation/overlay-messages.d.ts +5 -0
- package/conversation/overlay-messages.d.ts.map +1 -0
- package/conversation/quick-app-conversation-starters.d.ts +10 -0
- package/conversation/quick-app-conversation-starters.d.ts.map +1 -0
- 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/stage.d.ts +77 -0
- package/conversation/stage.d.ts.map +1 -0
- package/conversation/starter-option.d.ts +21 -0
- package/conversation/starter-option.d.ts.map +1 -0
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +37 -0
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
- package/conversation/useActiveConversationSync/useActiveConversationSync.js +19 -12
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +46 -0
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +27 -0
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +1 -0
- package/conversation/useAttachmentUpload/useAttachmentUpload.js +4 -1
- package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts +39 -0
- package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts.map +1 -0
- package/conversation/useConversationComposerDraft/useConversationComposerDraft.js +128 -0
- 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 +72 -0
- package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -0
- package/conversation/useConversationExport/useConversationExport.js +113 -122
- package/conversation/useConversationHandlers/attachment-to-dto.d.ts +7 -0
- package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +1 -0
- package/conversation/useConversationHandlers/message-factory.d.ts +9 -0
- package/conversation/useConversationHandlers/message-factory.d.ts.map +1 -0
- package/conversation/useConversationHandlers/message-utils.d.ts +38 -0
- package/conversation/useConversationHandlers/message-utils.d.ts.map +1 -0
- package/conversation/useConversationHandlers/message-utils.js +2 -2
- package/conversation/useConversationHandlers/starter-option.d.ts +24 -0
- package/conversation/useConversationHandlers/starter-option.d.ts.map +1 -0
- package/conversation/useConversationHandlers/useConversationHandlers.d.ts +66 -0
- package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +1 -0
- package/conversation/useConversationHandlers/useConversationHandlers.js +41 -41
- package/conversation/useConversationImport/useConversationImport.d.ts +54 -0
- package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -0
- package/conversation/useConversationImport/useConversationImport.js +24 -24
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +65 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.js +34 -30
- package/conversation/useConversationScroll/useConversationScroll.d.ts +46 -0
- package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -0
- package/conversation/useConversationScroll/useConversationScroll.js +65 -68
- package/conversation/useConversationStream/apply-chunk.d.ts +35 -0
- package/conversation/useConversationStream/apply-chunk.d.ts.map +1 -0
- package/conversation/useConversationStream/buffered-generation.d.ts +15 -0
- package/conversation/useConversationStream/buffered-generation.d.ts.map +1 -0
- package/conversation/useConversationStream/conversation-path.d.ts +7 -0
- package/conversation/useConversationStream/conversation-path.d.ts.map +1 -0
- package/conversation/useConversationStream/conversation-path.js +2 -2
- package/conversation/useConversationStream/frame-scheduler.d.ts +14 -0
- package/conversation/useConversationStream/frame-scheduler.d.ts.map +1 -0
- package/conversation/useConversationStream/frame-scheduler.js +17 -17
- package/conversation/useConversationStream/generation-resume.d.ts +98 -0
- package/conversation/useConversationStream/generation-resume.d.ts.map +1 -0
- package/conversation/useConversationStream/generation-resume.js +93 -122
- package/conversation/useConversationStream/useConversationStream.d.ts +145 -0
- package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -0
- package/conversation/useConversationStream/useConversationStream.js +251 -242
- 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/useImportFilePicker/useImportFilePicker.d.ts +32 -0
- package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +1 -0
- package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts +42 -0
- package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts.map +1 -0
- package/conversation/useMessageSelectionReply/useMessageSelectionReply.js +4 -10
- package/conversation/useTranscribeAudio/audio-transcription-error.d.ts +19 -0
- package/conversation/useTranscribeAudio/audio-transcription-error.d.ts.map +1 -0
- package/conversation/useTranscribeAudio/transcription-retry.d.ts +2 -0
- package/conversation/useTranscribeAudio/transcription-retry.d.ts.map +1 -0
- package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts +50 -0
- package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -0
- package/conversation/useTranscribeAudio/useTranscribeAudio.js +36 -27
- 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.d.ts +2 -7
- 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/useConversationSources/useConversationSources.d.ts +20 -0
- package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +1 -0
- package/conversation-sources.d.ts +2 -25
- package/conversation-sources.js +3 -1
- package/conversation-transfer.d.ts +2 -190
- package/conversation.d.ts +2 -1372
- package/conversation.js +44 -32
- package/entry-points/attachments.d.ts +4 -0
- package/entry-points/attachments.d.ts.map +1 -0
- package/entry-points/catalog.d.ts +38 -0
- package/entry-points/catalog.d.ts.map +1 -0
- package/entry-points/conversation-overlay.d.ts +2 -0
- package/entry-points/conversation-overlay.d.ts.map +1 -0
- package/entry-points/conversation-sources.d.ts +4 -0
- package/entry-points/conversation-sources.d.ts.map +1 -0
- package/entry-points/conversation-transfer.d.ts +7 -0
- package/entry-points/conversation-transfer.d.ts.map +1 -0
- package/entry-points/conversation.d.ts +46 -0
- package/entry-points/conversation.d.ts.map +1 -0
- 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 +3 -0
- package/entry-points/file-manager-canvas.d.ts.map +1 -0
- package/entry-points/file-manager.d.ts +33 -0
- package/entry-points/file-manager.d.ts.map +1 -0
- package/entry-points/mcp-apps.d.ts +6 -0
- package/entry-points/mcp-apps.d.ts.map +1 -0
- package/entry-points/oauth.d.ts +11 -0
- package/entry-points/oauth.d.ts.map +1 -0
- package/entry-points/offline-credentials.d.ts +7 -0
- package/entry-points/offline-credentials.d.ts.map +1 -0
- package/entry-points/project.d.ts +20 -0
- package/entry-points/project.d.ts.map +1 -0
- package/entry-points/scheduled-tasks.d.ts +15 -0
- package/entry-points/scheduled-tasks.d.ts.map +1 -0
- package/entry-points/scroll-anchoring.d.ts +2 -0
- package/entry-points/scroll-anchoring.d.ts.map +1 -0
- package/entry-points/sharing.d.ts +7 -0
- package/entry-points/sharing.d.ts.map +1 -0
- package/entry-points/skill-editor.d.ts +11 -0
- package/entry-points/skill-editor.d.ts.map +1 -0
- package/entry-points/skills-state.d.ts +3 -0
- package/entry-points/skills-state.d.ts.map +1 -0
- package/entry-points/source-content.d.ts +2 -0
- package/entry-points/source-content.d.ts.map +1 -0
- package/entry-points/usage-limits.d.ts +9 -0
- package/entry-points/usage-limits.d.ts.map +1 -0
- package/entry-points/usage.d.ts +3 -0
- package/entry-points/usage.d.ts.map +1 -0
- package/entry-points/utils.d.ts +23 -0
- package/entry-points/utils.d.ts.map +1 -0
- package/entry-points/viewport-layout.d.ts +5 -0
- package/entry-points/viewport-layout.d.ts.map +1 -0
- 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.d.ts +2 -418
- package/file-manager-canvas.js +3 -2
- package/file-manager.d.ts +2 -1250
- package/file-manager.js +32 -30
- package/files/annotation.d.ts +10 -0
- package/files/annotation.d.ts.map +1 -0
- package/files/attachment-canvas.d.ts +135 -0
- package/files/attachment-canvas.d.ts.map +1 -0
- package/files/attachment-canvas.js +18 -10
- package/files/attachment-dto-to-display.d.ts +10 -0
- package/files/attachment-dto-to-display.d.ts.map +1 -0
- package/files/attachment-dto-to-display.js +13 -12
- package/files/attachment-types.d.ts +21 -0
- package/files/attachment-types.d.ts.map +1 -0
- 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 +52 -0
- package/files/create-files-api.d.ts.map +1 -0
- package/files/create-files-api.js +1 -1
- package/files/create-upload-file-with-progress.d.ts +44 -0
- package/files/create-upload-file-with-progress.d.ts.map +1 -0
- package/files/create-upload-file-with-progress.js +50 -34
- package/files/dial-file-manager-copy-move.util.d.ts +15 -0
- package/files/dial-file-manager-copy-move.util.d.ts.map +1 -0
- package/files/dial-file-manager-copy-move.util.js +16 -16
- package/files/dial-file-manager-mapping.util.d.ts +55 -0
- package/files/dial-file-manager-mapping.util.d.ts.map +1 -0
- package/files/dial-file-manager-mapping.util.js +97 -69
- package/files/dial-file-manager-path.util.d.ts +48 -0
- package/files/dial-file-manager-path.util.d.ts.map +1 -0
- package/files/dial-file-manager.model.d.ts +36 -0
- package/files/dial-file-manager.model.d.ts.map +1 -0
- package/files/dial-file-manager.types.d.ts +337 -0
- package/files/dial-file-manager.types.d.ts.map +1 -0
- package/files/dial-file-to-attachment.d.ts +26 -0
- package/files/dial-file-to-attachment.d.ts.map +1 -0
- package/files/dial-file-to-attachment.js +3 -3
- package/files/dial-file.d.ts +36 -0
- package/files/dial-file.d.ts.map +1 -0
- package/files/dial-file.js +20 -12
- package/files/dial-files-api.d.ts +71 -0
- package/files/dial-files-api.d.ts.map +1 -0
- package/files/download-destination.d.ts +31 -0
- package/files/download-destination.d.ts.map +1 -0
- 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/file-manager-variant.d.ts +3 -0
- package/files/file-manager-variant.d.ts.map +1 -0
- package/files/file-name.d.ts +19 -0
- package/files/file-name.d.ts.map +1 -0
- package/files/prepare-download-destination.d.ts +8 -0
- package/files/prepare-download-destination.d.ts.map +1 -0
- package/files/resolve-dial-file-api-path.d.ts +12 -0
- package/files/resolve-dial-file-api-path.d.ts.map +1 -0
- package/files/source-content.d.ts +28 -0
- package/files/source-content.d.ts.map +1 -0
- package/files/source-content.js +1 -1
- package/files/useDialFileListing/useDialFileListing.d.ts +82 -0
- package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -0
- package/files/useDialFileListing/useDialFileListing.js +97 -109
- package/files/useDialFileManager/useDialFileManager.d.ts +16 -0
- package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -0
- package/files/useDialFileManager/useDialFileManager.js +5 -2
- package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts +25 -0
- package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -0
- package/files/useDialFileManagerSections/useDialFileManagerSections.js +59 -68
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +15 -0
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +1 -0
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +1 -1
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts +28 -0
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +1 -0
- package/files/useDialFileMetadata/useDialFileMetadata.js +3 -3
- package/files/useDialFileMutations/useDialFileMutations.d.ts +77 -0
- package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -0
- package/files/useDialFileMutations/useDialFileMutations.js +230 -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/useDialFileSharing/useDialFileSharing.d.ts +34 -0
- package/files/useDialFileSharing/useDialFileSharing.d.ts.map +1 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +47 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -0
- 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.d.ts +59 -0
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts.map +1 -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 +244 -6996
- package/index.d.ts.map +1 -0
- package/index.js +241 -150
- package/mcp-apps/mcp-apps-api-client.d.ts +28 -0
- package/mcp-apps/mcp-apps-api-client.d.ts.map +1 -0
- package/mcp-apps/mcp-apps-api-client.js +18 -17
- package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts +14 -0
- package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts.map +1 -0
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +30 -0
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -0
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js +28 -10
- package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts +22 -0
- package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -0
- package/mcp-apps/useMcpAppTools/useMcpAppTools.js +42 -42
- package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts +36 -0
- package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts.map +1 -0
- package/mcp-apps.d.ts +2 -256
- package/oauth/authorize-url.d.ts +22 -0
- package/oauth/authorize-url.d.ts.map +1 -0
- 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.d.ts +30 -0
- package/oauth/handshake.d.ts.map +1 -0
- package/oauth/handshake.js +3 -10
- package/oauth/models.d.ts +106 -0
- package/oauth/models.d.ts.map +1 -0
- package/oauth/popup.d.ts +30 -0
- package/oauth/popup.d.ts.map +1 -0
- package/oauth/popup.js +19 -17
- package/oauth/toolset-id.d.ts +60 -0
- package/oauth/toolset-id.d.ts.map +1 -0
- package/oauth/toolset-id.js +9 -2
- package/oauth/types.d.ts +84 -0
- package/oauth/types.d.ts.map +1 -0
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +54 -0
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -0
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +41 -42
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts +85 -0
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
- package/oauth/useToolsetLogin/useToolsetLogin.js +51 -42
- package/oauth.d.ts +2 -472
- package/oauth.js +9 -8
- package/offline-credentials/map-offline-credentials-response.d.ts +20 -0
- package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -0
- package/offline-credentials/map-offline-credentials-response.js +17 -0
- 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/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts +58 -0
- package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts.map +1 -0
- package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.js +37 -0
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts +61 -0
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -0
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +37 -0
- package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts +28 -0
- package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts.map +1 -0
- package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.js +29 -0
- package/offline-credentials.d.ts +2 -0
- package/offline-credentials.js +7 -0
- package/package.json +49 -25
- 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 +28 -0
- package/project/project-file-preview.d.ts.map +1 -0
- package/project/project-file-preview.js +20 -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 +173 -0
- package/project/projects-api-client.d.ts.map +1 -0
- package/project/projects-api-client.js +89 -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 +52 -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 +31 -0
- package/project/use-project-conversations.d.ts.map +1 -0
- package/project/use-project-conversations.js +196 -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 +42 -0
- package/project/use-project-file-preview.d.ts.map +1 -0
- package/project/use-project-file-preview.js +46 -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/export-prompt.d.ts +31 -0
- package/prompt/export-prompt.d.ts.map +1 -0
- package/prompt/prompt-resource.d.ts +30 -0
- package/prompt/prompt-resource.d.ts.map +1 -0
- package/prompt/prompt.d.ts +45 -0
- package/prompt/prompt.d.ts.map +1 -0
- package/prompt/prompt.js +7 -3
- package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
- package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
- 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/check-scheduled-task-auth-session-error.d.ts +27 -0
- package/scheduled-task/check-scheduled-task-auth-session-error.d.ts.map +1 -0
- package/scheduled-task/check-scheduled-task-auth-session-error.js +17 -0
- package/scheduled-task/scheduled-task-description.d.ts +40 -0
- package/scheduled-task/scheduled-task-description.d.ts.map +1 -0
- 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-mapping.d.ts +19 -0
- package/scheduled-task/scheduled-task-mapping.d.ts.map +1 -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 +19 -0
- package/scheduled-task/scheduled-task-preparation.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-trigger.d.ts +26 -0
- package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-trigger.js +75 -48
- package/scheduled-task/scheduled-tasks-api-client.d.ts +67 -0
- package/scheduled-task/scheduled-tasks-api-client.d.ts.map +1 -0
- package/scheduled-task/use-scheduled-task-runs.d.ts +40 -0
- package/scheduled-task/use-scheduled-task-runs.d.ts.map +1 -0
- package/scheduled-task/use-scheduled-task-runs.js +19 -31
- package/scheduled-task/use-scheduled-tasks.d.ts +28 -0
- package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
- 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.d.ts +2 -256
- package/scheduled-tasks.js +13 -6
- package/scroll-anchoring.d.ts +2 -50
- 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.d.ts +16 -0
- package/shared/application-schema.d.ts.map +1 -0
- package/shared/application-schema.js +3 -3
- package/shared/browser-timezone.d.ts +7 -0
- package/shared/browser-timezone.d.ts.map +1 -0
- 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.d.ts +21 -0
- package/shared/cron-day-of-month.d.ts.map +1 -0
- package/shared/cron-day-of-month.js +10 -10
- package/shared/cron-weekday.d.ts +5 -0
- package/shared/cron-weekday.d.ts.map +1 -0
- package/shared/custom-apps.d.ts +7 -0
- package/shared/custom-apps.d.ts.map +1 -0
- package/shared/external-services.d.ts +16 -0
- package/shared/external-services.d.ts.map +1 -0
- package/shared/formatting.d.ts +5 -0
- package/shared/formatting.d.ts.map +1 -0
- package/shared/locale.d.ts +49 -0
- package/shared/locale.d.ts.map +1 -0
- 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/string-utils.d.ts +11 -0
- package/shared/string-utils.d.ts.map +1 -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/toolset-login-events.d.ts +15 -0
- package/shared/toolset-login-events.d.ts.map +1 -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.d.ts +2 -65
- 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-archive.d.ts +7 -0
- package/skill/skill-archive.d.ts.map +1 -0
- package/skill/skill-file-batch-validation.d.ts +74 -0
- package/skill/skill-file-batch-validation.d.ts.map +1 -0
- package/skill/skill-file-batch-validation.js +34 -33
- package/skill/skill-file-preview.d.ts +25 -0
- package/skill/skill-file-preview.d.ts.map +1 -0
- 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-manifest.d.ts +28 -0
- package/skill/skill-manifest.d.ts.map +1 -0
- package/skill/skill-types.d.ts +46 -0
- package/skill/skill-types.d.ts.map +1 -0
- package/skill/skill-types.js +1 -1
- package/skill/skill.d.ts +160 -0
- package/skill/skill.d.ts.map +1 -0
- package/skill/skill.js +12 -15
- package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts +65 -0
- package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts.map +1 -0
- package/skill/useSkillArchiveImport/useSkillArchiveImport.js +1 -7
- package/skill/useSkillEditorLoad.d.ts +74 -0
- package/skill/useSkillEditorLoad.d.ts.map +1 -0
- package/skill/useSkillEditorSubmit.d.ts +139 -0
- package/skill/useSkillEditorSubmit.d.ts.map +1 -0
- package/skill/useSkillEditorSubmit.js +164 -87
- package/skill/useSkillFileActions.d.ts +62 -0
- package/skill/useSkillFileActions.d.ts.map +1 -0
- package/skill/useSkillFileActions.js +36 -21
- package/skill/useSkillFilePreview.d.ts +38 -0
- package/skill/useSkillFilePreview.d.ts.map +1 -0
- package/skill/useSkillsState/useSkillsState.d.ts +35 -0
- package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
- 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.d.ts +2 -655
- package/skill-editor.js +3 -1
- package/skills-state.d.ts +2 -40
- package/skills-state.js +3 -2
- package/source-content.d.ts +2 -29
- package/source-content.js +1 -2
- package/usage/map-usage-data-to-dashboard.d.ts +39 -0
- package/usage/map-usage-data-to-dashboard.d.ts.map +1 -0
- package/usage/map-user-usage-to-model-limits.d.ts +62 -0
- package/usage/map-user-usage-to-model-limits.d.ts.map +1 -0
- package/usage/map-user-usage-to-model-limits.js +21 -21
- package/usage/usage-banner-source.d.ts +24 -0
- package/usage/usage-banner-source.d.ts.map +1 -0
- package/usage/usage-banner-source.js +61 -0
- 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-period.d.ts +7 -0
- package/usage/usage-period.d.ts.map +1 -0
- package/usage/usage-period.js +6 -0
- package/usage/usage-reset-time.d.ts +78 -0
- package/usage/usage-reset-time.d.ts.map +1 -0
- package/usage/usage-reset-time.js +82 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +56 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +34 -0
- package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts +16 -0
- package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts.map +1 -0
- package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js +14 -0
- package/usage/useUsageData/useUsageData.d.ts +28 -0
- package/usage/useUsageData/useUsageData.d.ts.map +1 -0
- package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +58 -0
- package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
- package/usage/useUsageLimitBanner/useUsageLimitBanner.js +70 -0
- package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts +14 -0
- package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts.map +1 -0
- package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +19 -0
- package/usage-limits.d.ts +2 -0
- package/usage-limits.js +10 -0
- package/usage.d.ts +2 -125
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +130 -0
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -0
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.js +25 -21
- package/usePageFileDrag/usePageFileDrag.d.ts +16 -0
- package/usePageFileDrag/usePageFileDrag.d.ts.map +1 -0
- package/usePageFileDrag/usePageFileDrag.js +3 -3
- package/usePanelMaxWidth/usePanelMaxWidth.d.ts +6 -0
- package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +1 -0
- package/useShareLink/useShareLink.d.ts +23 -0
- package/useShareLink/useShareLink.d.ts.map +1 -0
- package/useShareLink/useShareLink.js +18 -17
- package/useShareRecipientsCount/useShareRecipientsCount.d.ts +36 -0
- package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +1 -0
- package/useToolsMenu/useToolsMenu.d.ts +31 -0
- package/useToolsMenu/useToolsMenu.d.ts.map +1 -0
- package/useViewportWidth/useViewportWidth.d.ts +3 -0
- package/useViewportWidth/useViewportWidth.d.ts.map +1 -0
- package/utils.d.ts +2 -404
- 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.d.ts +2 -27
- package/viewport-layout.js +2 -1
|
@@ -3,45 +3,46 @@ import { formatFileSize as r } from "@epam/ai-dial-chat-shared";
|
|
|
3
3
|
import { SkillFileCandidateKind as i, SkillFileValidationStatus as a } from "@epam/ai-dial-skill-editor";
|
|
4
4
|
//#region src/skill/skill-file-batch-validation.ts
|
|
5
5
|
var o = async (o, s) => {
|
|
6
|
-
let { existingPaths: c, existingTotalBytes: l,
|
|
7
|
-
for (let { path: e } of o) e !== "SKILL.md" &&
|
|
8
|
-
let
|
|
6
|
+
let { existingPaths: c, existingTotalBytes: l, existingFileBytes: u, existingFolderPaths: d, manifestByteLength: f, messages: p } = s, m = [], h = [], g = new Set(c), _ = new Set(d), v = /* @__PURE__ */ new Map();
|
|
7
|
+
for (let { path: e } of o) e !== "SKILL.md" && v.set(e, (v.get(e) ?? 0) + 1);
|
|
8
|
+
let y = 0, b = 0, x = /* @__PURE__ */ new Set(), S, C = f, w = 0;
|
|
9
9
|
for (let s of o) {
|
|
10
|
-
let { id: o, file: c, path: l } = s,
|
|
11
|
-
if (l.toLowerCase() === "skill.md" && l !== "SKILL.md")
|
|
12
|
-
else if (l === "SKILL.md")
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
10
|
+
let { id: o, file: c, path: l } = s, d = s.replacesExisting === !0 && g.has(l), f, h = i.SupportingFile;
|
|
11
|
+
if (l.toLowerCase() === "skill.md" && l !== "SKILL.md") f = p.manifestCasingInvalid;
|
|
12
|
+
else if (l === "SKILL.md") {
|
|
13
|
+
if (h = i.Manifest, w += 1, c.size > 1048576) f = p.fileTooLarge(r(e));
|
|
14
|
+
else try {
|
|
15
|
+
let e = await c.text();
|
|
16
|
+
if (e.includes("�")) f = p.manifestInvalidUtf8;
|
|
17
|
+
else {
|
|
18
|
+
let { frontmatter: t, instructions: r } = n(e), i = typeof t.name == "string" ? t.name : "", a = typeof t.description == "string" ? t.description : "";
|
|
19
|
+
!i.trim() || !a.trim() ? f = p.manifestInvalidFrontmatter : w === 1 && (S = {
|
|
20
|
+
candidateId: o,
|
|
21
|
+
name: i,
|
|
22
|
+
description: a,
|
|
23
|
+
frontmatter: t,
|
|
24
|
+
instructions: r
|
|
25
|
+
}, C = c.size);
|
|
26
|
+
}
|
|
27
|
+
} catch {
|
|
28
|
+
f = p.manifestInvalidFrontmatter;
|
|
25
29
|
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
else l ? t(l) ? m.has(l) || (h.get(l) ?? 0) > 1 ? u = d.pathDuplicate : c.size > 1048576 && (u = d.fileTooLarge(r(e))) : u = d.pathInvalid : u = d.required;
|
|
30
|
-
!u && p === i.SupportingFile && (_.add(l), g += c.size), f.push({
|
|
30
|
+
} else l ? t(l) ? g.has(l) && !d || _.has(l) || (v.get(l) ?? 0) > 1 ? f = p.pathDuplicate : c.size > 1048576 && (f = p.fileTooLarge(r(e))) : f = p.pathInvalid : f = p.required;
|
|
31
|
+
!f && h === i.SupportingFile && (x.add(l), y += c.size, d && (b += u?.get(l) ?? 0)), m.push({
|
|
31
32
|
candidateId: o,
|
|
32
|
-
status:
|
|
33
|
-
kind:
|
|
34
|
-
error:
|
|
33
|
+
status: f ? a.Invalid : a.Valid,
|
|
34
|
+
kind: h,
|
|
35
|
+
error: f
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
for (let e of
|
|
38
|
+
if (w > 1) {
|
|
39
|
+
h.push({ message: p.manifestDuplicate }), S = void 0, C = f;
|
|
40
|
+
for (let e of m) e.kind === i.Manifest && !e.error && (e.status = a.Invalid, e.error = p.manifestDuplicate);
|
|
40
41
|
}
|
|
41
|
-
return l
|
|
42
|
-
results:
|
|
43
|
-
batchErrors:
|
|
44
|
-
manifestCandidate:
|
|
42
|
+
return l - b + y + C > 16777216 && h.push({ message: p.totalSizeExceeded }), (/* @__PURE__ */ new Set([...g, ...x])).size + 1 > 100 && h.push({ message: p.totalCountExceeded }), {
|
|
43
|
+
results: m,
|
|
44
|
+
batchErrors: h,
|
|
45
|
+
manifestCandidate: S
|
|
45
46
|
};
|
|
46
47
|
};
|
|
47
48
|
//#endregion
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Attachment } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
import { SkillFileTreeNode } from '@epam/ai-dial-skill-editor';
|
|
3
|
+
/**
|
|
4
|
+
* In-memory bytes for a Skill supporting file, plus its MIME type when known
|
|
5
|
+
* (e.g. from a browser upload's `File.type`).
|
|
6
|
+
*/
|
|
7
|
+
export interface SkillFileContent {
|
|
8
|
+
/** The file's raw bytes. */
|
|
9
|
+
bytes: Uint8Array;
|
|
10
|
+
/**
|
|
11
|
+
* MIME type from the original browser `File.type`. Omit for edit-mode ZIP
|
|
12
|
+
* entries, which carry no MIME metadata — the type is then inferred from
|
|
13
|
+
* the file's path.
|
|
14
|
+
*/
|
|
15
|
+
mimeType?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Converts a Skill supporting file's in-memory bytes into the `Attachment`
|
|
19
|
+
* shape the chat attachment-canvas pipeline expects, so it can be previewed
|
|
20
|
+
* with `useOpenAttachmentCanvas` exactly like a chat attachment. The id is
|
|
21
|
+
* the file's full relative path (not its basename), so two files with the
|
|
22
|
+
* same name in different folders never collide.
|
|
23
|
+
*/
|
|
24
|
+
export declare const skillFileToAttachment: (node: SkillFileTreeNode, content: SkillFileContent) => Attachment;
|
|
25
|
+
//# sourceMappingURL=skill-file-preview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-file-preview.d.ts","sourceRoot":"","sources":["../../src/skill/skill-file-preview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAM5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,4BAA4B;IAC5B,KAAK,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAChC,MAAM,iBAAiB,EACvB,SAAS,gBAAgB,KACxB,UAiBF,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SkillMetadataItemDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
/** Skill listings a URL is looked up in, as a host's skills state exposes them. */
|
|
3
|
+
export interface SkillListingPools {
|
|
4
|
+
/** Skills the user owns. */
|
|
5
|
+
skills: SkillMetadataItemDto[];
|
|
6
|
+
/** Skills shared with the user. */
|
|
7
|
+
sharedWithMe?: SkillMetadataItemDto[];
|
|
8
|
+
/** Organisation-published skills. */
|
|
9
|
+
publicSkills?: SkillMetadataItemDto[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Finds the listed skill a resource URL names, across the personal, shared and
|
|
13
|
+
* organisation listings. Both sides are compared per-segment normalized, so a
|
|
14
|
+
* URL that arrives decoded (e.g. read from a query string) still matches the
|
|
15
|
+
* percent-encoded `url` DIAL Core lists.
|
|
16
|
+
* @param pools - the skill listings to search
|
|
17
|
+
* @param url - `skills/{bucket}/{path}` resource URL, encoded or decoded
|
|
18
|
+
*/
|
|
19
|
+
export declare const findSkillByUrl: ({ skills, sharedWithMe, publicSkills }: SkillListingPools, url: string) => SkillMetadataItemDto | undefined;
|
|
20
|
+
//# sourceMappingURL=skill-lookup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-lookup.d.ts","sourceRoot":"","sources":["../../src/skill/skill-lookup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAG1E,mFAAmF;AACnF,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,mCAAmC;IACnC,YAAY,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACtC,qCAAqC;IACrC,YAAY,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACvC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GACzB,wCAAwC,iBAAiB,EACzD,KAAK,MAAM,KACV,oBAAoB,GAAG,SAKzB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { normalizeDeploymentId as e } from "../catalog/deployment-id.js";
|
|
2
|
+
//#region src/skill/skill-lookup.ts
|
|
3
|
+
var t = ({ skills: t, sharedWithMe: n, publicSkills: r }, i) => {
|
|
4
|
+
let a = e(i);
|
|
5
|
+
return [
|
|
6
|
+
...t,
|
|
7
|
+
...n ?? [],
|
|
8
|
+
...r ?? []
|
|
9
|
+
].find((t) => e(t.url) === a);
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as findSkillByUrl };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Structured fields lifted from a skill manifest's frontmatter. */
|
|
2
|
+
export interface SkillAboutDetails {
|
|
3
|
+
whenToUse?: string;
|
|
4
|
+
allowedTools?: string[];
|
|
5
|
+
bundledResources?: string[];
|
|
6
|
+
skillPrompt?: string;
|
|
7
|
+
}
|
|
8
|
+
/** A `SKILL.md` split into its frontmatter fields and its prose body. */
|
|
9
|
+
export interface SkillManifestDocument {
|
|
10
|
+
/** `name` frontmatter field, when present and a string. */
|
|
11
|
+
name?: string;
|
|
12
|
+
/** `description` frontmatter field, when present and a string. */
|
|
13
|
+
description?: string;
|
|
14
|
+
/** Recognised `about.*` frontmatter fields. Absent when none resolved. */
|
|
15
|
+
about?: SkillAboutDetails;
|
|
16
|
+
/** Everything after the frontmatter fence, or the whole file when there is none. */
|
|
17
|
+
body: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Splits a `SKILL.md` into its YAML frontmatter fields and its prose body.
|
|
21
|
+
*
|
|
22
|
+
* Never throws: a file with no opening fence, no closing fence, or frontmatter
|
|
23
|
+
* that fails to parse resolves to the whole input as `body` with no
|
|
24
|
+
* frontmatter fields. Parse failure is strictly weaker than fetch failure —
|
|
25
|
+
* the manifest text is still returned so the Content tab can render it.
|
|
26
|
+
*/
|
|
27
|
+
export declare const parseSkillManifestDocument: (raw: string) => SkillManifestDocument;
|
|
28
|
+
//# sourceMappingURL=skill-manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-manifest.d.ts","sourceRoot":"","sources":["../../src/skill/skill-manifest.ts"],"names":[],"mappings":"AAEA,oEAAoE;AACpE,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,yEAAyE;AACzE,MAAM,WAAW,qBAAqB;IACpC,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,oFAAoF;IACpF,IAAI,EAAE,MAAM,CAAC;CACd;AAmFD;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,GACrC,KAAK,MAAM,KACV,qBAiDF,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { SkillAboutDetails } from './skill-manifest';
|
|
2
|
+
/** Which skill namespace a catalog skill item came from. */
|
|
3
|
+
export declare enum SkillSource {
|
|
4
|
+
/** A skill in the caller's own bucket. */
|
|
5
|
+
Personal = "personal",
|
|
6
|
+
/** A skill another user shared with the caller. */
|
|
7
|
+
SharedWithMe = "sharedWithMe",
|
|
8
|
+
/** An organisation-wide skill; read-only for every user. */
|
|
9
|
+
Public = "public"
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* DIAL Core bucket holding organisation-wide skills.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated Use `PUBLIC_BUCKET` from `@epam/ai-dial-chat-shared`.
|
|
15
|
+
*/
|
|
16
|
+
export declare const PUBLIC_SKILL_BUCKET = "public";
|
|
17
|
+
/**
|
|
18
|
+
* Largest manifest the details panel will decode. A `SKILL.md` past this is
|
|
19
|
+
* treated as unreadable rather than rendered.
|
|
20
|
+
*/
|
|
21
|
+
export declare const SKILL_MANIFEST_MAX_BYTES: number;
|
|
22
|
+
/** Items requested per skill-listing page. */
|
|
23
|
+
export declare const SKILL_LISTING_PAGE_SIZE = 1000;
|
|
24
|
+
/**
|
|
25
|
+
* Upper bound on `nextToken` follow-ups per listing, so a pathological bucket
|
|
26
|
+
* cannot spin the client forever.
|
|
27
|
+
*/
|
|
28
|
+
export declare const SKILL_LISTING_MAX_PAGES = 10;
|
|
29
|
+
/** A skill's parsed manifest details. */
|
|
30
|
+
export interface SkillEntityDetails {
|
|
31
|
+
about?: SkillAboutDetails;
|
|
32
|
+
}
|
|
33
|
+
/** A skill resource URL split into the bucket and the path within it. */
|
|
34
|
+
export interface ParsedSkillResourceUrl {
|
|
35
|
+
/** DIAL Core bucket name. */
|
|
36
|
+
bucket: string;
|
|
37
|
+
/** Path to the skill within that bucket. */
|
|
38
|
+
path: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Splits a `skills/{bucket}/{path}` resource URL into its parts, mirroring the
|
|
42
|
+
* backend's parser. Returns `null` for a different prefix, an empty bucket, or
|
|
43
|
+
* an empty path, so callers can treat "not a skill URL" as one case.
|
|
44
|
+
*/
|
|
45
|
+
export declare const parseSkillResourceUrl: (url: string) => ParsedSkillResourceUrl | null;
|
|
46
|
+
//# sourceMappingURL=skill-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-types.d.ts","sourceRoot":"","sources":["../../src/skill/skill-types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,4DAA4D;AAC5D,oBAAY,WAAW;IACrB,0CAA0C;IAC1C,QAAQ,aAAa;IACrB,mDAAmD;IACnD,YAAY,iBAAiB;IAC7B,4DAA4D;IAC5D,MAAM,WAAW;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,WAAgB,CAAC;AAKjD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,QAAa,CAAC;AAEnD,8CAA8C;AAC9C,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C,yCAAyC;AACzC,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B;AAED,yEAAyE;AACzE,MAAM,WAAW,sBAAsB;IACrC,6BAA6B;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAChC,KAAK,MAAM,KACV,sBAAsB,GAAG,IAS3B,CAAC"}
|
package/skill/skill-types.js
CHANGED
|
@@ -2,7 +2,7 @@ import { PUBLIC_BUCKET as e } from "@epam/ai-dial-chat-shared";
|
|
|
2
2
|
//#region src/skill/skill-types.ts
|
|
3
3
|
var t = /* @__PURE__ */ function(e) {
|
|
4
4
|
return e.Personal = "personal", e.SharedWithMe = "sharedWithMe", e.Public = "public", e;
|
|
5
|
-
}({}), n = e, r = "skills/", i =
|
|
5
|
+
}({}), n = e, r = "skills/", i = 262144, a = 1e3, o = 10, s = (e) => {
|
|
6
6
|
if (!e.startsWith(r)) return null;
|
|
7
7
|
let t = e.slice(7), n = t.indexOf("/");
|
|
8
8
|
if (n <= 0) return null;
|
package/skill/skill.d.ts
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { SkillFileTreeNode } from '@epam/ai-dial-skill-editor';
|
|
2
|
+
import { SkillFileContent } from './skill-file-preview';
|
|
3
|
+
/** Root manifest filename required at the top of every skill archive (mirrors `SKILL_MANIFEST_FILE` in `apps/chat-api/src/skills/utils/skill-path.util.ts`). */
|
|
4
|
+
export declare const SKILL_MANIFEST_FILE = "SKILL.md";
|
|
5
|
+
/**
|
|
6
|
+
* Client-side mirror of the backend's default `SKILL_FILE_UPLOAD_MAX_BYTES`
|
|
7
|
+
* (`apps/chat-api/src/config/environment.config.ts`), used only for
|
|
8
|
+
* immediate inline feedback when a user picks a file to upload — the server
|
|
9
|
+
* remains authoritative and enforces its own configured limit regardless.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SKILL_FILE_UPLOAD_MAX_BYTES = 1048576;
|
|
12
|
+
/**
|
|
13
|
+
* Client-side mirror of the backend's default `SKILL_UPLOAD_MAX_TOTAL_BYTES`
|
|
14
|
+
* (`apps/chat-api/src/config/environment.config.ts`), used only for
|
|
15
|
+
* immediate inline feedback on the projected total package size — the server
|
|
16
|
+
* remains authoritative and enforces its own configured limit regardless.
|
|
17
|
+
*/
|
|
18
|
+
export declare const SKILL_UPLOAD_MAX_TOTAL_BYTES = 16777216;
|
|
19
|
+
/**
|
|
20
|
+
* Client-side mirror of the backend's default `SKILL_UPLOAD_MAX_FILES`
|
|
21
|
+
* (`apps/chat-api/src/config/environment.config.ts`), used only for
|
|
22
|
+
* immediate inline feedback on the projected total file count (including the
|
|
23
|
+
* root `SKILL.md`) — the server remains authoritative regardless.
|
|
24
|
+
*/
|
|
25
|
+
export declare const SKILL_UPLOAD_MAX_FILES = 100;
|
|
26
|
+
/**
|
|
27
|
+
* Zero-byte object written at `<folder>/.dial_folder` so an otherwise empty
|
|
28
|
+
* skill folder survives a save — DIAL Core storage has no directory objects,
|
|
29
|
+
* so a folder only exists as a file's path prefix.
|
|
30
|
+
*/
|
|
31
|
+
export declare const SKILL_FOLDER_MARKER = ".dial_folder";
|
|
32
|
+
/** Whether a skill-relative path is a folder marker (`<folder>/.dial_folder`, never a root-level `.dial_folder`). */
|
|
33
|
+
export declare const isSkillFolderMarkerPath: (path: string) => boolean;
|
|
34
|
+
/** Returns the folder path a marker path stands for (`docs/.dial_folder` → `docs`). */
|
|
35
|
+
export declare const skillFolderMarkerParent: (markerPath: string) => string;
|
|
36
|
+
/**
|
|
37
|
+
* Client-side mirror of the backend's `isValidSkillRelativePath`
|
|
38
|
+
* (`apps/chat-api/src/skills/utils/skill-path.util.ts`), used only for
|
|
39
|
+
* immediate inline feedback — the server remains authoritative and may still
|
|
40
|
+
* reject a path this function accepts. It additionally reserves the
|
|
41
|
+
* `.dial_folder` marker name so a user can never upload or name a folder
|
|
42
|
+
* after it; the save payload's generated markers never pass through here
|
|
43
|
+
* (the server accepts them only as a zero-byte final segment).
|
|
44
|
+
*/
|
|
45
|
+
export declare const isValidSkillRelativePath: (relativePath: string) => boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Normalizes a user-entered skill name to the DIAL naming convention
|
|
48
|
+
* (lowercase letters, digits, and hyphens; no spaces): lowercases the input,
|
|
49
|
+
* replaces every run of whitespace/invalid characters with a single hyphen,
|
|
50
|
+
* and trims leading/trailing hyphens.
|
|
51
|
+
*/
|
|
52
|
+
export declare const normalizeSkillName: (input: string) => string;
|
|
53
|
+
/** Skill editor text fields with a length limit. */
|
|
54
|
+
export type SkillTextField = 'name' | 'description' | 'instructions';
|
|
55
|
+
/** Length limit of each skill editor text field. */
|
|
56
|
+
export declare const SKILL_TEXT_FIELD_MAX_LENGTHS: Record<SkillTextField, number>;
|
|
57
|
+
/** Returns the limit each over-long skill field exceeds, keyed by field; fields within their limit are omitted. */
|
|
58
|
+
export declare const getSkillFieldLengthViolations: (values: Record<SkillTextField, string>) => Partial<Record<SkillTextField, number>>;
|
|
59
|
+
/** Skill fields serialized into the `SKILL.md` manifest. */
|
|
60
|
+
export interface SkillManifestValues {
|
|
61
|
+
/** Normalized skill name. */
|
|
62
|
+
name: string;
|
|
63
|
+
/** Short description of what the skill does. */
|
|
64
|
+
description: string;
|
|
65
|
+
/** The skill's instructions body (Markdown). */
|
|
66
|
+
instructions: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Builds `SKILL.md`'s content: a YAML frontmatter block (`name`/`description`,
|
|
70
|
+
* serialized with the `yaml` package so special characters are always
|
|
71
|
+
* correctly escaped) followed by the raw instructions body.
|
|
72
|
+
*/
|
|
73
|
+
export declare const buildSkillManifest: ({ name, description, instructions, }: SkillManifestValues) => string;
|
|
74
|
+
/**
|
|
75
|
+
* Builds `SKILL.md`'s content for an edit save: reassigns only `name`/
|
|
76
|
+
* `description` onto the *loaded* frontmatter object (mutating a shallow
|
|
77
|
+
* copy, never the original) so unrecognized fields (e.g. `version`) survive
|
|
78
|
+
* re-serialization unchanged, then appends the (possibly edited)
|
|
79
|
+
* instructions body.
|
|
80
|
+
*/
|
|
81
|
+
export declare const buildSkillManifestFromFrontmatter: (baseFrontmatter: Record<string, unknown>, name: string, description: string, instructions: string) => string;
|
|
82
|
+
/** A skill's `SKILL.md` split into its parsed frontmatter object and the raw instructions body. */
|
|
83
|
+
export interface ParsedSkillManifest {
|
|
84
|
+
/** The full parsed frontmatter object, including fields this app never renders. */
|
|
85
|
+
frontmatter: Record<string, unknown>;
|
|
86
|
+
/** The instructions body following the closing `---` delimiter. */
|
|
87
|
+
instructions: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Answers one question: would appending this text after the fence that
|
|
91
|
+
* `buildSkillManifest` writes produce a *second* frontmatter block?
|
|
92
|
+
*
|
|
93
|
+
* That happens when the text's first non-blank line is a bare `---` and some
|
|
94
|
+
* later line is a bare `---` too — the exact shape of a `SKILL.md` pasted
|
|
95
|
+
* wholesale into the editor's Instructions field.
|
|
96
|
+
*
|
|
97
|
+
* Detection is deliberately structural rather than YAML-based: a pasted block
|
|
98
|
+
* whose fenced content fails to parse corrupts the stored manifest
|
|
99
|
+
* identically (and renders as a setext `h2` in the Catalog's Details tab just
|
|
100
|
+
* the same), so requiring parseable YAML here would let the worst cases
|
|
101
|
+
* through. Keeping `parseYaml` out also makes this cheap enough to run on
|
|
102
|
+
* every keystroke.
|
|
103
|
+
*
|
|
104
|
+
* A single unclosed fence returns `false`: with no closing fence there is no
|
|
105
|
+
* second block, matching `FRONTMATTER_PATTERN`'s own requirement. A `---`
|
|
106
|
+
* appearing later in the body (a horizontal rule, a setext underline) is
|
|
107
|
+
* likewise not a frontmatter block.
|
|
108
|
+
*/
|
|
109
|
+
export declare const startsWithFrontmatterBlock: (text: string) => boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Parses a `SKILL.md`'s YAML frontmatter and instructions body — the inverse
|
|
112
|
+
* of `buildSkillManifest`/`buildSkillManifestFromFrontmatter`. Throws if the
|
|
113
|
+
* manifest has no `---`-delimited frontmatter block.
|
|
114
|
+
*/
|
|
115
|
+
export declare const parseSkillManifest: (manifestText: string) => ParsedSkillManifest;
|
|
116
|
+
/** A skill archive unpacked into its manifest text and a relative-path → bytes map of every other entry. */
|
|
117
|
+
export interface UnpackedSkillArchive {
|
|
118
|
+
/** The root `SKILL.md` entry's decoded text content. */
|
|
119
|
+
manifestText: string;
|
|
120
|
+
/** Every non-manifest, non-marker entry, keyed by relative path. */
|
|
121
|
+
files: Map<string, Uint8Array>;
|
|
122
|
+
/** Folder paths restored from `<folder>/.dial_folder` marker entries. */
|
|
123
|
+
folders: string[];
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Unpacks a whole-skill ZIP (as downloaded from `GET /api/v1/skills/download`
|
|
127
|
+
* — DIAL Core's whole-resource `GET` is the one place this contract still
|
|
128
|
+
* uses a ZIP, per `openspec/changes/archive/2026-10-05-persist-skill-empty-folders/design.md`) into its manifest text, every other entry's
|
|
129
|
+
* bytes, and the folders its empty-folder markers stand for. Throws if the
|
|
130
|
+
* archive has no root `SKILL.md` entry.
|
|
131
|
+
*/
|
|
132
|
+
export declare const unpackSkillArchive: (bytes: Uint8Array) => UnpackedSkillArchive;
|
|
133
|
+
/** Returns a skill relative path's final segment (its display name in the file tree). */
|
|
134
|
+
export declare const nameFromPath: (path: string) => string;
|
|
135
|
+
/** Wraps raw bytes in a `Blob`, copying them so the source buffer can be reused. */
|
|
136
|
+
export declare const skillFileBytesToBlob: (bytes: Uint8Array) => Blob;
|
|
137
|
+
/**
|
|
138
|
+
* Builds `SKILL.md`'s content for a create or edit submission: reassigns
|
|
139
|
+
* onto the loaded/imported frontmatter when one exists (so unrecognized
|
|
140
|
+
* fields survive), otherwise builds a fresh manifest from just `name`/
|
|
141
|
+
* `description`/`instructions`.
|
|
142
|
+
*/
|
|
143
|
+
export declare const buildSkillManifestForSubmit: (frontmatter: Record<string, unknown>, name: string, description: string, instructions: string) => string;
|
|
144
|
+
/** The ordered supporting-file paths and `Blob` payload `createSkill`/`updateSkill` expect. */
|
|
145
|
+
export interface SkillFilesPayload {
|
|
146
|
+
/** Relative paths, positionally paired with `files`. */
|
|
147
|
+
filePaths: string[];
|
|
148
|
+
/** File contents, positionally paired with `filePaths`. */
|
|
149
|
+
files: Blob[];
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Builds the ordered supporting-file paths and `Blob` payload
|
|
153
|
+
* `createSkill`/`updateSkill` expect from the editor's file tree and
|
|
154
|
+
* in-memory content map. Every folder node with no descendant node gets a
|
|
155
|
+
* zero-byte `<folder>/.dial_folder` marker after the real files, so the
|
|
156
|
+
* empty folder survives the whole-skill write; a folder with content needs
|
|
157
|
+
* none, and a marker it had before is dropped by that same write.
|
|
158
|
+
*/
|
|
159
|
+
export declare const buildSkillFilesPayload: (files: SkillFileTreeNode[], filesContent: Map<string, SkillFileContent>) => SkillFilesPayload;
|
|
160
|
+
//# sourceMappingURL=skill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../src/skill/skill.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,gKAAgK;AAChK,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,UAAY,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,WAAa,CAAC;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,iBAAc,CAAC;AAI/C,qHAAqH;AACrH,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,KAAG,OAEN,CAAC;AAElD,uFAAuF;AACvF,eAAO,MAAM,uBAAuB,GAAI,YAAY,MAAM,KAAG,MACJ,CAAC;AAY1D;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,GAAI,cAAc,MAAM,KAAG,OAsB/D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,KAAG,MAUlD,CAAC;AAEF,oDAAoD;AACpD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,aAAa,GAAG,cAAc,CAAC;AAErE,oDAAoD;AACpD,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAIvE,CAAC;AAEF,mHAAmH;AACnH,eAAO,MAAM,6BAA6B,GACxC,QAAQ,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,KACrC,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAWxC,CAAC;AAEF,4DAA4D;AAC5D,MAAM,WAAW,mBAAmB;IAClC,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,sCAIhC,mBAAmB,KAAG,MAGxB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,GAC5C,iBAAiB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxC,MAAM,MAAM,EACZ,aAAa,MAAM,EACnB,cAAc,MAAM,KACnB,MAIF,CAAC;AAEF,mGAAmG;AACnG,MAAM,WAAW,mBAAmB;IAClC,mFAAmF;IACnF,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,mEAAmE;IACnE,YAAY,EAAE,MAAM,CAAC;CACtB;AASD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,0BAA0B,GAAI,MAAM,MAAM,KAAG,OAkBzD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,cAAc,MAAM,KACnB,mBASF,CAAC;AAEF,4GAA4G;AAC5G,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,YAAY,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC/B,yEAAyE;IACzE,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,UAAU,KAAG,oBA2BtD,CAAC;AAEF,yFAAyF;AACzF,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,MAG3C,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,oBAAoB,GAAI,OAAO,UAAU,KAAG,IACtB,CAAC;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GACtC,aAAa,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,MAAM,MAAM,EACZ,aAAa,MAAM,EACnB,cAAc,MAAM,KACnB,MAQ0D,CAAC;AAE9D,+FAA+F;AAC/F,MAAM,WAAW,iBAAiB;IAChC,wDAAwD;IACxD,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,2DAA2D;IAC3D,KAAK,EAAE,IAAI,EAAE,CAAC;CACf;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,iBAAiB,EAAE,EAC1B,cAAc,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,KAC1C,iBAsBF,CAAC"}
|
package/skill/skill.js
CHANGED
|
@@ -3,11 +3,11 @@ import { SkillFileNodeKind as a } from "@epam/ai-dial-skill-editor";
|
|
|
3
3
|
import { unzipSync as o } from "fflate";
|
|
4
4
|
import { parse as s, stringify as c } from "yaml";
|
|
5
5
|
//#region src/skill/skill.ts
|
|
6
|
-
var l = "SKILL.md", u = 1048576, d = 16777216, f = 100, p = r, m = `/${p}`, h = (e) => e.endsWith(m) && e.length > m.length, g = (e) => e.slice(0, -m.length), _ = new Set([
|
|
6
|
+
var l = "SKILL.md", u = 1048576, d = 16777216, f = 100, p = r, m = `/${p}`, h = (e) => e.endsWith(m) && e.length > m.length, g = (e) => e.slice(0, -m.length), _ = /* @__PURE__ */ new Set([
|
|
7
7
|
".dial-resource",
|
|
8
8
|
".dial-folder",
|
|
9
9
|
p
|
|
10
|
-
]), v = new Set(["files", "v"]), y = /^[a-zA-Z]:/, b = /[\x00-\x1f]/, x = (e) => {
|
|
10
|
+
]), v = /* @__PURE__ */ new Set(["files", "v"]), y = /^[a-zA-Z]:/, b = /[\x00-\x1f]/, x = (e) => {
|
|
11
11
|
if (e === "" || e.startsWith("/") || y.test(e) || e.includes("\\") || b.test(e)) return !1;
|
|
12
12
|
let t = e.split("/");
|
|
13
13
|
return !(t.some((e) => e === "" || e === "." || e === "..") || t.some((e) => _.has(e)) || v.has(t[0]));
|
|
@@ -25,11 +25,14 @@ var l = "SKILL.md", u = 1048576, d = 16777216, f = 100, p = r, m = `/${p}`, h =
|
|
|
25
25
|
}, T = ({ name: e, description: t, instructions: n }) => `---\n${c({
|
|
26
26
|
name: e,
|
|
27
27
|
description: t
|
|
28
|
-
}).trimEnd()}\n---\n\n${n}`, E = (e, t, n, r) =>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
}).trimEnd()}\n---\n\n${n}`, E = (e, t, n, r) => {
|
|
29
|
+
let i = {
|
|
30
|
+
...e,
|
|
31
|
+
name: t,
|
|
32
|
+
description: n
|
|
33
|
+
};
|
|
34
|
+
return `---\n${c(i).trimEnd()}\n---\n\n${r}`;
|
|
35
|
+
}, D = /^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/, O = /^---[ \t]*$/, k = (e) => {
|
|
33
36
|
let t = e.replace(/^\uFEFF/, "").replace(/\r\n/g, "\n").split("\n"), n = t.findIndex((e) => e.trim() !== "");
|
|
34
37
|
return n === -1 || !O.test(t[n]) ? !1 : t.some((e, t) => t > n && O.test(e));
|
|
35
38
|
}, A = (e) => {
|
|
@@ -44,13 +47,7 @@ var l = "SKILL.md", u = 1048576, d = 16777216, f = 100, p = r, m = `/${p}`, h =
|
|
|
44
47
|
let t = o(e), n = t[l];
|
|
45
48
|
if (n == null) throw Error(`Skill archive is missing a root ${l} file`);
|
|
46
49
|
let r = /* @__PURE__ */ new Map(), i = [];
|
|
47
|
-
for (let [e, n] of Object.entries(t))
|
|
48
|
-
if (h(e)) {
|
|
49
|
-
i.push(g(e));
|
|
50
|
-
continue;
|
|
51
|
-
}
|
|
52
|
-
e !== p && r.set(e, n);
|
|
53
|
-
}
|
|
50
|
+
for (let [e, n] of Object.entries(t)) e === "SKILL.md" || e.endsWith("/") || (h(e) ? i.push(g(e)) : e !== p && r.set(e, n));
|
|
54
51
|
return {
|
|
55
52
|
manifestText: new TextDecoder().decode(n),
|
|
56
53
|
files: r,
|
|
@@ -67,7 +64,7 @@ var l = "SKILL.md", u = 1048576, d = 16777216, f = 100, p = r, m = `/${p}`, h =
|
|
|
67
64
|
let n = e.filter((e) => e.kind === a.File), r = e.filter((t) => t.kind === a.Folder && !e.some((e) => e.path.startsWith(`${t.path}/`))).map((e) => `${e.path}${m}`);
|
|
68
65
|
return {
|
|
69
66
|
filePaths: [...n.map((e) => e.path), ...r],
|
|
70
|
-
files: [...n.map((e) => N(t.get(e.path)?.bytes ?? new Uint8Array())), ...r.map(() => new Blob([]))]
|
|
67
|
+
files: [...n.map((e) => N(t.get(e.path)?.bytes ?? /* @__PURE__ */ new Uint8Array())), ...r.map(() => new Blob([]))]
|
|
71
68
|
};
|
|
72
69
|
};
|
|
73
70
|
//#endregion
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/** Phase of a skill-archive import, driving the host's loading/success/error presentation. */
|
|
2
|
+
export declare enum SkillArchiveImportStatus {
|
|
3
|
+
Idle = "idle",
|
|
4
|
+
Uploading = "uploading",
|
|
5
|
+
Success = "success",
|
|
6
|
+
Error = "error"
|
|
7
|
+
}
|
|
8
|
+
/** Semantic classification of an import request failure. */
|
|
9
|
+
export declare enum SkillArchiveImportErrorKind {
|
|
10
|
+
Validation = "validation",
|
|
11
|
+
Collision = "collision",
|
|
12
|
+
RateLimited = "rateLimited",
|
|
13
|
+
ServiceUnavailable = "serviceUnavailable",
|
|
14
|
+
Generic = "generic"
|
|
15
|
+
}
|
|
16
|
+
/** Reason a selected/dropped file was rejected before any request was made. */
|
|
17
|
+
export declare enum SkillArchiveSelectionRejectionReason {
|
|
18
|
+
UnsupportedFilename = "unsupportedFilename"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Classifies an import request's HTTP status into a semantic outcome: 400/413/422 are
|
|
22
|
+
* archive-content problems, 409 is a name collision, 429 is rate limiting, 502/503 mean the
|
|
23
|
+
* backend is unavailable, and anything else (including no status at all) is generic.
|
|
24
|
+
*/
|
|
25
|
+
export declare const classifySkillArchiveImportError: (status: number | undefined) => SkillArchiveImportErrorKind;
|
|
26
|
+
/** Options accepted by {@link useSkillArchiveImport}. */
|
|
27
|
+
export interface UseSkillArchiveImportOptions<TResult> {
|
|
28
|
+
/** Submits the selected archive; the host owns the client. `signal` aborts when the dialog closes or the hook unmounts mid-upload. */
|
|
29
|
+
importArchive: (file: File, signal: AbortSignal) => Promise<TResult>;
|
|
30
|
+
/** Called once after a successful import (and any awaited host follow-up) settles. */
|
|
31
|
+
onImported: (result: TResult) => void | Promise<void>;
|
|
32
|
+
/** Called once when the import request, or the host's follow-up in {@link onImported}, fails. */
|
|
33
|
+
onError: (error: unknown, kind: SkillArchiveImportErrorKind) => void;
|
|
34
|
+
/** Exact filename treated as the skill manifest. Defaults to `'SKILL.md'`. */
|
|
35
|
+
manifestFileName?: string;
|
|
36
|
+
}
|
|
37
|
+
/** Result returned by {@link useSkillArchiveImport}. */
|
|
38
|
+
export interface UseSkillArchiveImportResult {
|
|
39
|
+
/** Whether the upload dialog is open. */
|
|
40
|
+
isDialogOpen: boolean;
|
|
41
|
+
/** Current phase of the import. */
|
|
42
|
+
status: SkillArchiveImportStatus;
|
|
43
|
+
/** Whether an import request is in flight; the dialog stays open until it succeeds. */
|
|
44
|
+
isUploading: boolean;
|
|
45
|
+
/** Reason the current/last selection was rejected locally; `undefined` once cleared. */
|
|
46
|
+
selectionRejectionReason: SkillArchiveSelectionRejectionReason | undefined;
|
|
47
|
+
/** Classified failure of the last import request; `undefined` outside a request failure. */
|
|
48
|
+
errorKind: SkillArchiveImportErrorKind | undefined;
|
|
49
|
+
/** Opens the dialog and clears any previous rejection or request failure. */
|
|
50
|
+
openDialog: () => void;
|
|
51
|
+
/** Closes the dialog, aborting an in-flight import, and clears any rejection reason. */
|
|
52
|
+
closeDialog: () => void;
|
|
53
|
+
/** Wire to the dialog drop zone's `onChange`. */
|
|
54
|
+
handleFilesSelected: (files: File[]) => void;
|
|
55
|
+
/** Wire to the dialog drop zone's `onReject`. */
|
|
56
|
+
handleFilesRejected: () => void;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Headless controller for the skill-archive upload flow: dialog visibility, the exact-filename
|
|
60
|
+
* precheck, in-flight exclusion, abort-on-close, and import completion. The host supplies the configured request
|
|
61
|
+
* and observes completion/failure through the injected callbacks; the hook never imports app
|
|
62
|
+
* contexts, i18n, or a configured API client.
|
|
63
|
+
*/
|
|
64
|
+
export declare const useSkillArchiveImport: <TResult>({ importArchive, onImported, onError, manifestFileName, }: UseSkillArchiveImportOptions<TResult>) => UseSkillArchiveImportResult;
|
|
65
|
+
//# sourceMappingURL=useSkillArchiveImport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSkillArchiveImport.d.ts","sourceRoot":"","sources":["../../../src/skill/useSkillArchiveImport/useSkillArchiveImport.ts"],"names":[],"mappings":"AAKA,8FAA8F;AAC9F,oBAAY,wBAAwB;IAClC,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,4DAA4D;AAC5D,oBAAY,2BAA2B;IACrC,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,OAAO,YAAY;CACpB;AAED,+EAA+E;AAC/E,oBAAY,oCAAoC;IAC9C,mBAAmB,wBAAwB;CAC5C;AAED;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,GAC1C,QAAQ,MAAM,GAAG,SAAS,KACzB,2BAgBF,CAAC;AAQF,yDAAyD;AACzD,MAAM,WAAW,4BAA4B,CAAC,OAAO;IACnD,sIAAsI;IACtI,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACrE,sFAAsF;IACtF,UAAU,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,iGAAiG;IACjG,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,2BAA2B,KAAK,IAAI,CAAC;IACrE,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wDAAwD;AACxD,MAAM,WAAW,2BAA2B;IAC1C,yCAAyC;IACzC,YAAY,EAAE,OAAO,CAAC;IACtB,mCAAmC;IACnC,MAAM,EAAE,wBAAwB,CAAC;IACjC,uFAAuF;IACvF,WAAW,EAAE,OAAO,CAAC;IACrB,wFAAwF;IACxF,wBAAwB,EAAE,oCAAoC,GAAG,SAAS,CAAC;IAC3E,4FAA4F;IAC5F,SAAS,EAAE,2BAA2B,GAAG,SAAS,CAAC;IACnD,6EAA6E;IAC7E,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,wFAAwF;IACxF,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,iDAAiD;IACjD,mBAAmB,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IAC7C,iDAAiD;IACjD,mBAAmB,EAAE,MAAM,IAAI,CAAC;CACjC;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,OAAO,EAAE,2DAK5C,4BAA4B,CAAC,OAAO,CAAC,KAAG,2BA0H1C,CAAC"}
|
|
@@ -51,13 +51,7 @@ var a = "SKILL.md", o = /* @__PURE__ */ function(e) {
|
|
|
51
51
|
b.current || (h("error"), y(void 0), _("unsupportedFilename"));
|
|
52
52
|
}, []), T = t((e) => {
|
|
53
53
|
let t = e[0];
|
|
54
|
-
|
|
55
|
-
if (u(t.name, d)) {
|
|
56
|
-
w();
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
_(void 0), x(t);
|
|
60
|
-
}
|
|
54
|
+
t && !b.current && (u(t.name, d) ? w() : (_(void 0), x(t)));
|
|
61
55
|
}, [
|
|
62
56
|
d,
|
|
63
57
|
w,
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { SkillFileListResponseDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { SkillEditorValues, SkillFileTreeNode } from '@epam/ai-dial-skill-editor';
|
|
3
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
4
|
+
import { SkillFileContent } from './skill-file-preview';
|
|
5
|
+
/** Edit-mode load state for a skill-authoring form; create mode never leaves `Loaded`. */
|
|
6
|
+
export declare enum SkillEditorLoadState {
|
|
7
|
+
/** The edit-mode download/parse flow is in flight. */
|
|
8
|
+
Loading = "loading",
|
|
9
|
+
/** The skill loaded successfully (or create mode, which starts here). */
|
|
10
|
+
Loaded = "loaded",
|
|
11
|
+
/** The download/parse flow failed for a reason other than 403/404. */
|
|
12
|
+
Error = "error",
|
|
13
|
+
/** The caller lacks permission to read the skill. */
|
|
14
|
+
Forbidden = "forbidden",
|
|
15
|
+
/** The skill no longer exists at the given path. */
|
|
16
|
+
NotFound = "not-found"
|
|
17
|
+
}
|
|
18
|
+
/** Already-configured DIAL Core download operations `useSkillEditorLoad` needs. */
|
|
19
|
+
export interface SkillEditorLoadClient {
|
|
20
|
+
/** Downloads the whole-skill ZIP archive. */
|
|
21
|
+
downloadSkill: (bucket: string, path: string) => Promise<Response>;
|
|
22
|
+
/** Downloads one file within the skill (the manifest or a supporting file). */
|
|
23
|
+
downloadSkillFile: (bucket: string, path: string, filePath: string) => Promise<Response>;
|
|
24
|
+
/** Lists the skill's files when the whole-skill ZIP route is unusable. */
|
|
25
|
+
listSkillFiles: (params: {
|
|
26
|
+
bucket: string;
|
|
27
|
+
path?: string;
|
|
28
|
+
filePath: string;
|
|
29
|
+
recursive?: boolean;
|
|
30
|
+
}) => Promise<SkillFileListResponseDto>;
|
|
31
|
+
}
|
|
32
|
+
/** Parameters accepted by {@link useSkillEditorLoad}. */
|
|
33
|
+
export interface UseSkillEditorLoadParams {
|
|
34
|
+
/** Whether the form is editing an existing skill rather than creating a new one. */
|
|
35
|
+
isEditMode: boolean;
|
|
36
|
+
/** DIAL Core bucket holding the skill. Load is skipped until this resolves. */
|
|
37
|
+
bucket: string | undefined;
|
|
38
|
+
/** Path to the skill within `bucket`. */
|
|
39
|
+
skillPath: string | null | undefined;
|
|
40
|
+
/** Already-configured download operations. */
|
|
41
|
+
client: SkillEditorLoadClient;
|
|
42
|
+
}
|
|
43
|
+
/** Return value of {@link useSkillEditorLoad}. */
|
|
44
|
+
export interface UseSkillEditorLoadResult {
|
|
45
|
+
/** Current load-state machine value driving the form's presentation. */
|
|
46
|
+
loadState: SkillEditorLoadState;
|
|
47
|
+
/** The loaded (or, in create mode, seeded) manifest values. */
|
|
48
|
+
loadedValues: SkillEditorValues | undefined;
|
|
49
|
+
/** Updates `loadedValues`, e.g. after a manifest import. */
|
|
50
|
+
setLoadedValues: Dispatch<SetStateAction<SkillEditorValues | undefined>>;
|
|
51
|
+
/** The loaded supporting-file tree. */
|
|
52
|
+
files: SkillFileTreeNode[];
|
|
53
|
+
/** Updates `files`, e.g. after a batch commit or node removal. */
|
|
54
|
+
setFiles: Dispatch<SetStateAction<SkillFileTreeNode[]>>;
|
|
55
|
+
/** In-memory bytes for every supporting file, keyed by relative path. */
|
|
56
|
+
filesContentRef: React.MutableRefObject<Map<string, SkillFileContent>>;
|
|
57
|
+
/** The loaded manifest's full parsed frontmatter, including fields the form never renders. */
|
|
58
|
+
frontmatterRef: React.MutableRefObject<Record<string, unknown>>;
|
|
59
|
+
/** The concurrency ETag from the load, sent back as `If-Match` on save. */
|
|
60
|
+
etagRef: React.MutableRefObject<string | undefined>;
|
|
61
|
+
/** The skill path the currently loaded state belongs to. */
|
|
62
|
+
loadedPathRef: React.MutableRefObject<string | undefined>;
|
|
63
|
+
/** Re-attempts the edit-mode download (load-error retry or post-conflict reload). */
|
|
64
|
+
retryLoad: () => void;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Owns the edit-mode skill download/unpack/parse flow: the in-memory
|
|
68
|
+
* supporting-file map, the loaded manifest values and frontmatter, the
|
|
69
|
+
* concurrency ETag, and the load-state machine driving the form's
|
|
70
|
+
* loading/error/forbidden/not-found presentation. Create mode never leaves
|
|
71
|
+
* `'loaded'` and starts with empty state.
|
|
72
|
+
*/
|
|
73
|
+
export declare const useSkillEditorLoad: ({ isEditMode, bucket, skillPath, client, }: UseSkillEditorLoadParams) => UseSkillEditorLoadResult;
|
|
74
|
+
//# sourceMappingURL=useSkillEditorLoad.d.ts.map
|