@epam/ai-dial-chat-hooks 1.3.0-dev.32 → 1.3.0-dev.322

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.
Files changed (738) hide show
  1. package/api-error/api-error.d.ts +32 -0
  2. package/api-error/api-error.d.ts.map +1 -0
  3. package/api-error/api-error.js +31 -23
  4. package/api-transport/create-csrf-middleware.d.ts +15 -0
  5. package/api-transport/create-csrf-middleware.d.ts.map +1 -0
  6. package/api-transport/create-unauthorized-middleware.d.ts +40 -0
  7. package/api-transport/create-unauthorized-middleware.d.ts.map +1 -0
  8. package/api-transport/create-unauthorized-middleware.js +4 -1
  9. package/attachment/attach-constraints.d.ts +31 -0
  10. package/attachment/attach-constraints.d.ts.map +1 -0
  11. package/attachment/attach-constraints.js +18 -0
  12. package/attachment/useAttachmentAction/useAttachmentAction.d.ts +32 -0
  13. package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -0
  14. package/attachment/useAttachmentAction/useAttachmentAction.js +25 -28
  15. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts +50 -0
  16. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +1 -0
  17. package/attachments.d.ts +2 -94
  18. package/attachments.js +2 -1
  19. package/catalog/application-credentials.d.ts +15 -0
  20. package/catalog/application-credentials.d.ts.map +1 -0
  21. package/catalog/application-credentials.js +28 -0
  22. package/catalog/catalog-derivations.d.ts +29 -0
  23. package/catalog/catalog-derivations.d.ts.map +1 -0
  24. package/catalog/catalog-derivations.js +13 -6
  25. package/catalog/catalog-entity-kind.d.ts +31 -0
  26. package/catalog/catalog-entity-kind.d.ts.map +1 -0
  27. package/catalog/catalog-entity-kind.js +21 -0
  28. package/catalog/catalog-preferences.d.ts +8 -0
  29. package/catalog/catalog-preferences.d.ts.map +1 -0
  30. package/catalog/catalog-preferences.js +5 -0
  31. package/catalog/catalog-primary-action.d.ts +47 -0
  32. package/catalog/catalog-primary-action.d.ts.map +1 -0
  33. package/catalog/create-publish-api.d.ts +34 -0
  34. package/catalog/create-publish-api.d.ts.map +1 -0
  35. package/catalog/create-publish-api.js +4 -0
  36. package/catalog/deployment-endpoint-url.d.ts +19 -0
  37. package/catalog/deployment-endpoint-url.d.ts.map +1 -0
  38. package/catalog/deployment-id.d.ts +51 -0
  39. package/catalog/deployment-id.d.ts.map +1 -0
  40. package/catalog/deployment-id.js +17 -3
  41. package/catalog/entity-details.d.ts +148 -0
  42. package/catalog/entity-details.d.ts.map +1 -0
  43. package/catalog/favorite-entity-type.d.ts +5 -0
  44. package/catalog/favorite-entity-type.d.ts.map +1 -0
  45. package/catalog/favorite-entity-type.js +10 -0
  46. package/catalog/map-deployment-limits-to-catalog.d.ts +34 -0
  47. package/catalog/map-deployment-limits-to-catalog.d.ts.map +1 -0
  48. package/catalog/map-deployment-limits-to-input.d.ts +29 -0
  49. package/catalog/map-deployment-limits-to-input.d.ts.map +1 -0
  50. package/catalog/map-deployment-limits-to-input.js +3 -4
  51. package/catalog/map-deployment-to-catalog-item.d.ts +72 -0
  52. package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -0
  53. package/catalog/map-deployment-to-catalog-item.js +17 -12
  54. package/catalog/map-entity-details-to-catalog.d.ts +81 -0
  55. package/catalog/map-entity-details-to-catalog.d.ts.map +1 -0
  56. package/catalog/map-entity-details-to-catalog.js +69 -24
  57. package/catalog/map-prompt-to-catalog-item.d.ts +43 -0
  58. package/catalog/map-prompt-to-catalog-item.d.ts.map +1 -0
  59. package/catalog/map-skill-to-catalog-item.d.ts +112 -0
  60. package/catalog/map-skill-to-catalog-item.d.ts.map +1 -0
  61. package/catalog/map-skill-to-catalog-item.js +29 -38
  62. package/catalog/mcp-endpoint-url.d.ts +18 -0
  63. package/catalog/mcp-endpoint-url.d.ts.map +1 -0
  64. package/catalog/publish.d.ts +35 -0
  65. package/catalog/publish.d.ts.map +1 -0
  66. package/catalog/usage-limit-rows.d.ts +14 -0
  67. package/catalog/usage-limit-rows.d.ts.map +1 -0
  68. package/catalog/usage-limit-rows.js +19 -0
  69. package/catalog/use-publish-history.d.ts +19 -0
  70. package/catalog/use-publish-history.d.ts.map +1 -0
  71. package/catalog/use-publish-history.js +25 -0
  72. package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts +19 -0
  73. package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts.map +1 -0
  74. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +117 -0
  75. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -0
  76. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +108 -107
  77. package/catalog/useCatalogItemDelete/useCatalogItemDelete.d.ts +41 -0
  78. package/catalog/useCatalogItemDelete/useCatalogItemDelete.d.ts.map +1 -0
  79. package/catalog/useCatalogItemDelete/useCatalogItemDelete.js +37 -0
  80. package/catalog/useCatalogItemDetails.d.ts +70 -0
  81. package/catalog/useCatalogItemDetails.d.ts.map +1 -0
  82. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts +76 -0
  83. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts.map +1 -0
  84. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js +72 -77
  85. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +37 -0
  86. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +1 -0
  87. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js +1 -1
  88. package/catalog/usePublishFolders/usePublishFolders.d.ts +81 -0
  89. package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -0
  90. package/catalog/usePublishFolders/usePublishFolders.js +32 -29
  91. package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts +54 -0
  92. package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts.map +1 -0
  93. package/catalog/useSkillItemDetails.d.ts +64 -0
  94. package/catalog/useSkillItemDetails.d.ts.map +1 -0
  95. package/catalog/useSkillItemDetails.js +3 -3
  96. package/catalog.d.ts +2 -1436
  97. package/catalog.js +30 -23
  98. package/conversation/announcement-message.d.ts +61 -0
  99. package/conversation/announcement-message.d.ts.map +1 -0
  100. package/conversation/conversation-data-source.d.ts +47 -0
  101. package/conversation/conversation-data-source.d.ts.map +1 -0
  102. package/conversation/conversation-data-source.js +11 -0
  103. package/conversation/conversation-draft/conversation-draft-store.d.ts +21 -0
  104. package/conversation/conversation-draft/conversation-draft-store.d.ts.map +1 -0
  105. package/conversation/conversation-draft/conversation-draft-store.js +84 -0
  106. package/conversation/conversation-draft/conversation-draft.d.ts +48 -0
  107. package/conversation/conversation-draft/conversation-draft.d.ts.map +1 -0
  108. package/conversation/conversation-list.d.ts +6 -0
  109. package/conversation/conversation-list.d.ts.map +1 -0
  110. package/conversation/conversation-list.js +5 -0
  111. package/conversation/conversation-title-stream.d.ts +33 -0
  112. package/conversation/conversation-title-stream.d.ts.map +1 -0
  113. package/conversation/conversation-title-stream.js +103 -0
  114. package/conversation/conversation-transfer/async.d.ts +10 -0
  115. package/conversation/conversation-transfer/async.d.ts.map +1 -0
  116. package/conversation/conversation-transfer/attachment-refs.d.ts +50 -0
  117. package/conversation/conversation-transfer/attachment-refs.d.ts.map +1 -0
  118. package/conversation/conversation-transfer/attachment-refs.js +31 -9
  119. package/conversation/conversation-transfer/build-upload-path.d.ts +42 -0
  120. package/conversation/conversation-transfer/build-upload-path.d.ts.map +1 -0
  121. package/conversation/conversation-transfer/date.d.ts +5 -0
  122. package/conversation/conversation-transfer/date.d.ts.map +1 -0
  123. package/conversation/conversation-transfer/dial-file-resolve.d.ts +10 -0
  124. package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +1 -0
  125. package/conversation/conversation-transfer/export-conversation.d.ts +14 -0
  126. package/conversation/conversation-transfer/export-conversation.d.ts.map +1 -0
  127. package/conversation/conversation-transfer/export-conversation.js +19 -18
  128. package/conversation/conversation-transfer/import-conversation.d.ts +111 -0
  129. package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -0
  130. package/conversation/conversation-transfer/import-conversation.js +65 -69
  131. package/conversation/conversation-transfer/progress.d.ts +60 -0
  132. package/conversation/conversation-transfer/progress.d.ts.map +1 -0
  133. package/conversation/conversation-transfer/progress.js +1 -1
  134. package/conversation/conversation-transfer/queue.d.ts +54 -0
  135. package/conversation/conversation-transfer/queue.d.ts.map +1 -0
  136. package/conversation/conversation-transfer/types.d.ts +36 -0
  137. package/conversation/conversation-transfer/types.d.ts.map +1 -0
  138. package/conversation/conversation-transfer/zip-export.d.ts +31 -0
  139. package/conversation/conversation-transfer/zip-export.d.ts.map +1 -0
  140. package/conversation/conversation-transfer/zip-export.js +1 -7
  141. package/conversation/conversation-transfer/zip-import.d.ts +17 -0
  142. package/conversation/conversation-transfer/zip-import.d.ts.map +1 -0
  143. package/conversation/conversation-transfer/zip-import.js +1 -1
  144. package/conversation/create-chat-stream-api.d.ts +109 -0
  145. package/conversation/create-chat-stream-api.d.ts.map +1 -0
  146. package/conversation/create-chat-stream-api.js +57 -47
  147. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +39 -0
  148. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +1 -0
  149. package/conversation/display-name-watch.d.ts +4 -0
  150. package/conversation/display-name-watch.d.ts.map +1 -0
  151. package/conversation/footer-message.d.ts +10 -0
  152. package/conversation/footer-message.d.ts.map +1 -0
  153. package/conversation/generation-registry.d.ts +30 -0
  154. package/conversation/generation-registry.d.ts.map +1 -0
  155. package/conversation/generation-registry.js +33 -0
  156. package/conversation/get-model-id-from-conversation-id.d.ts +38 -0
  157. package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -0
  158. package/conversation/get-model-id-from-conversation-id.js +1 -1
  159. package/conversation/greeting.d.ts +18 -0
  160. package/conversation/greeting.d.ts.map +1 -0
  161. package/conversation/message-factory.d.ts +7 -0
  162. package/conversation/message-factory.d.ts.map +1 -0
  163. package/conversation/message-utils.d.ts +73 -0
  164. package/conversation/message-utils.d.ts.map +1 -0
  165. package/conversation/message-utils.js +14 -10
  166. package/conversation/overlay-messages.d.ts +5 -0
  167. package/conversation/overlay-messages.d.ts.map +1 -0
  168. package/conversation/quick-app-conversation-starters.d.ts +10 -0
  169. package/conversation/quick-app-conversation-starters.d.ts.map +1 -0
  170. package/conversation/scheduled-task-grouping.d.ts +53 -0
  171. package/conversation/scheduled-task-grouping.d.ts.map +1 -0
  172. package/conversation/scheduled-task-grouping.js +45 -0
  173. package/conversation/stage.d.ts +77 -0
  174. package/conversation/stage.d.ts.map +1 -0
  175. package/conversation/starter-option.d.ts +21 -0
  176. package/conversation/starter-option.d.ts.map +1 -0
  177. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +37 -0
  178. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
  179. package/conversation/useActiveConversationSync/useActiveConversationSync.js +19 -12
  180. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +46 -0
  181. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
  182. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +27 -0
  183. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +1 -0
  184. package/conversation/useAttachmentUpload/useAttachmentUpload.js +4 -1
  185. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts +39 -0
  186. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts.map +1 -0
  187. package/conversation/useConversationComposerDraft/useConversationComposerDraft.js +128 -0
  188. package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts +22 -0
  189. package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts.map +1 -0
  190. package/conversation/useConversationDiscovery/useConversationDiscovery.js +60 -0
  191. package/conversation/useConversationExport/useConversationExport.d.ts +72 -0
  192. package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -0
  193. package/conversation/useConversationExport/useConversationExport.js +113 -122
  194. package/conversation/useConversationHandlers/attachment-to-dto.d.ts +7 -0
  195. package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +1 -0
  196. package/conversation/useConversationHandlers/message-factory.d.ts +9 -0
  197. package/conversation/useConversationHandlers/message-factory.d.ts.map +1 -0
  198. package/conversation/useConversationHandlers/message-utils.d.ts +38 -0
  199. package/conversation/useConversationHandlers/message-utils.d.ts.map +1 -0
  200. package/conversation/useConversationHandlers/message-utils.js +2 -2
  201. package/conversation/useConversationHandlers/starter-option.d.ts +24 -0
  202. package/conversation/useConversationHandlers/starter-option.d.ts.map +1 -0
  203. package/conversation/useConversationHandlers/useConversationHandlers.d.ts +66 -0
  204. package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +1 -0
  205. package/conversation/useConversationHandlers/useConversationHandlers.js +41 -41
  206. package/conversation/useConversationImport/useConversationImport.d.ts +54 -0
  207. package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -0
  208. package/conversation/useConversationImport/useConversationImport.js +24 -24
  209. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
  210. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
  211. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +65 -0
  212. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
  213. package/conversation/useConversationPanelItems/useConversationPanelItems.js +34 -30
  214. package/conversation/useConversationScroll/useConversationScroll.d.ts +46 -0
  215. package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -0
  216. package/conversation/useConversationScroll/useConversationScroll.js +65 -68
  217. package/conversation/useConversationStream/apply-chunk.d.ts +35 -0
  218. package/conversation/useConversationStream/apply-chunk.d.ts.map +1 -0
  219. package/conversation/useConversationStream/buffered-generation.d.ts +15 -0
  220. package/conversation/useConversationStream/buffered-generation.d.ts.map +1 -0
  221. package/conversation/useConversationStream/conversation-path.d.ts +7 -0
  222. package/conversation/useConversationStream/conversation-path.d.ts.map +1 -0
  223. package/conversation/useConversationStream/conversation-path.js +2 -2
  224. package/conversation/useConversationStream/frame-scheduler.d.ts +14 -0
  225. package/conversation/useConversationStream/frame-scheduler.d.ts.map +1 -0
  226. package/conversation/useConversationStream/frame-scheduler.js +17 -17
  227. package/conversation/useConversationStream/generation-resume.d.ts +98 -0
  228. package/conversation/useConversationStream/generation-resume.d.ts.map +1 -0
  229. package/conversation/useConversationStream/generation-resume.js +93 -122
  230. package/conversation/useConversationStream/useConversationStream.d.ts +145 -0
  231. package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -0
  232. package/conversation/useConversationStream/useConversationStream.js +251 -242
  233. package/conversation/useConversationTitleEnrichmentController.d.ts +64 -0
  234. package/conversation/useConversationTitleEnrichmentController.d.ts.map +1 -0
  235. package/conversation/useConversationTitleEnrichmentController.js +155 -0
  236. package/conversation/useDeploymentChangeTracking.d.ts +14 -0
  237. package/conversation/useDeploymentChangeTracking.d.ts.map +1 -0
  238. package/conversation/useDeploymentChangeTracking.js +23 -0
  239. package/conversation/useEntityPreselection/useEntityPreselection.d.ts +108 -0
  240. package/conversation/useEntityPreselection/useEntityPreselection.d.ts.map +1 -0
  241. package/conversation/useEntityPreselection/useEntityPreselection.js +78 -0
  242. package/conversation/useImportFilePicker/useImportFilePicker.d.ts +32 -0
  243. package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +1 -0
  244. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts +42 -0
  245. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts.map +1 -0
  246. package/conversation/useMessageSelectionReply/useMessageSelectionReply.js +4 -10
  247. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts +19 -0
  248. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts.map +1 -0
  249. package/conversation/useTranscribeAudio/transcription-retry.d.ts +2 -0
  250. package/conversation/useTranscribeAudio/transcription-retry.d.ts.map +1 -0
  251. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts +50 -0
  252. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -0
  253. package/conversation/useTranscribeAudio/useTranscribeAudio.js +36 -27
  254. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.d.ts +16 -0
  255. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.d.ts.map +1 -0
  256. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.js +17 -0
  257. package/conversation-overlay.d.ts +2 -7
  258. package/conversation-overlay.js +1 -2
  259. package/conversation-sources/stage-citations.d.ts +9 -0
  260. package/conversation-sources/stage-citations.d.ts.map +1 -0
  261. package/conversation-sources/stage-citations.js +8 -0
  262. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.d.ts +4 -0
  263. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.d.ts.map +1 -0
  264. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.js +5 -0
  265. package/conversation-sources/useConversationSources/useConversationSources.d.ts +20 -0
  266. package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +1 -0
  267. package/conversation-sources.d.ts +2 -25
  268. package/conversation-sources.js +3 -1
  269. package/conversation-transfer.d.ts +2 -190
  270. package/conversation.d.ts +2 -1372
  271. package/conversation.js +44 -32
  272. package/entry-points/attachments.d.ts +4 -0
  273. package/entry-points/attachments.d.ts.map +1 -0
  274. package/entry-points/catalog.d.ts +32 -0
  275. package/entry-points/catalog.d.ts.map +1 -0
  276. package/entry-points/conversation-overlay.d.ts +2 -0
  277. package/entry-points/conversation-overlay.d.ts.map +1 -0
  278. package/entry-points/conversation-sources.d.ts +4 -0
  279. package/entry-points/conversation-sources.d.ts.map +1 -0
  280. package/entry-points/conversation-transfer.d.ts +7 -0
  281. package/entry-points/conversation-transfer.d.ts.map +1 -0
  282. package/entry-points/conversation.d.ts +46 -0
  283. package/entry-points/conversation.d.ts.map +1 -0
  284. package/entry-points/external-services.d.ts +2 -0
  285. package/entry-points/external-services.d.ts.map +1 -0
  286. package/entry-points/file-manager-canvas.d.ts +3 -0
  287. package/entry-points/file-manager-canvas.d.ts.map +1 -0
  288. package/entry-points/file-manager.d.ts +33 -0
  289. package/entry-points/file-manager.d.ts.map +1 -0
  290. package/entry-points/mcp-apps.d.ts +6 -0
  291. package/entry-points/mcp-apps.d.ts.map +1 -0
  292. package/entry-points/oauth.d.ts +10 -0
  293. package/entry-points/oauth.d.ts.map +1 -0
  294. package/entry-points/offline-credentials.d.ts +7 -0
  295. package/entry-points/offline-credentials.d.ts.map +1 -0
  296. package/entry-points/project.d.ts +20 -0
  297. package/entry-points/project.d.ts.map +1 -0
  298. package/entry-points/scheduled-tasks.d.ts +15 -0
  299. package/entry-points/scheduled-tasks.d.ts.map +1 -0
  300. package/entry-points/scroll-anchoring.d.ts +2 -0
  301. package/entry-points/scroll-anchoring.d.ts.map +1 -0
  302. package/entry-points/sharing.d.ts +3 -0
  303. package/entry-points/sharing.d.ts.map +1 -0
  304. package/entry-points/skill-editor.d.ts +11 -0
  305. package/entry-points/skill-editor.d.ts.map +1 -0
  306. package/entry-points/skills-state.d.ts +3 -0
  307. package/entry-points/skills-state.d.ts.map +1 -0
  308. package/entry-points/source-content.d.ts +2 -0
  309. package/entry-points/source-content.d.ts.map +1 -0
  310. package/entry-points/usage-limits.d.ts +8 -0
  311. package/entry-points/usage-limits.d.ts.map +1 -0
  312. package/entry-points/usage.d.ts +3 -0
  313. package/entry-points/usage.d.ts.map +1 -0
  314. package/entry-points/utils.d.ts +21 -0
  315. package/entry-points/utils.d.ts.map +1 -0
  316. package/entry-points/viewport-layout.d.ts +5 -0
  317. package/entry-points/viewport-layout.d.ts.map +1 -0
  318. package/external-services/useExternalServiceLogin.d.ts +99 -0
  319. package/external-services/useExternalServiceLogin.d.ts.map +1 -0
  320. package/external-services/useExternalServiceLogin.js +93 -0
  321. package/external-services.d.ts +2 -0
  322. package/external-services.js +1 -0
  323. package/file-manager-canvas.d.ts +2 -418
  324. package/file-manager-canvas.js +3 -2
  325. package/file-manager.d.ts +2 -1250
  326. package/file-manager.js +32 -30
  327. package/files/annotation.d.ts +10 -0
  328. package/files/annotation.d.ts.map +1 -0
  329. package/files/attachment-canvas.d.ts +135 -0
  330. package/files/attachment-canvas.d.ts.map +1 -0
  331. package/files/attachment-canvas.js +18 -10
  332. package/files/attachment-dto-to-display.d.ts +10 -0
  333. package/files/attachment-dto-to-display.d.ts.map +1 -0
  334. package/files/attachment-dto-to-display.js +13 -12
  335. package/files/attachment-types.d.ts +21 -0
  336. package/files/attachment-types.d.ts.map +1 -0
  337. package/files/attachment-types.js +1 -1
  338. package/files/browser-download.d.ts +9 -0
  339. package/files/browser-download.d.ts.map +1 -0
  340. package/files/browser-download.js +23 -0
  341. package/files/create-files-api.d.ts +52 -0
  342. package/files/create-files-api.d.ts.map +1 -0
  343. package/files/create-files-api.js +1 -1
  344. package/files/create-upload-file-with-progress.d.ts +44 -0
  345. package/files/create-upload-file-with-progress.d.ts.map +1 -0
  346. package/files/create-upload-file-with-progress.js +50 -34
  347. package/files/dial-file-manager-copy-move.util.d.ts +15 -0
  348. package/files/dial-file-manager-copy-move.util.d.ts.map +1 -0
  349. package/files/dial-file-manager-copy-move.util.js +16 -16
  350. package/files/dial-file-manager-mapping.util.d.ts +55 -0
  351. package/files/dial-file-manager-mapping.util.d.ts.map +1 -0
  352. package/files/dial-file-manager-mapping.util.js +97 -69
  353. package/files/dial-file-manager-path.util.d.ts +48 -0
  354. package/files/dial-file-manager-path.util.d.ts.map +1 -0
  355. package/files/dial-file-manager.model.d.ts +36 -0
  356. package/files/dial-file-manager.model.d.ts.map +1 -0
  357. package/files/dial-file-manager.types.d.ts +337 -0
  358. package/files/dial-file-manager.types.d.ts.map +1 -0
  359. package/files/dial-file-to-attachment.d.ts +26 -0
  360. package/files/dial-file-to-attachment.d.ts.map +1 -0
  361. package/files/dial-file-to-attachment.js +3 -3
  362. package/files/dial-file.d.ts +36 -0
  363. package/files/dial-file.d.ts.map +1 -0
  364. package/files/dial-file.js +20 -12
  365. package/files/dial-files-api.d.ts +71 -0
  366. package/files/dial-files-api.d.ts.map +1 -0
  367. package/files/download-destination.d.ts +31 -0
  368. package/files/download-destination.d.ts.map +1 -0
  369. package/files/download-progress.d.ts +33 -0
  370. package/files/download-progress.d.ts.map +1 -0
  371. package/files/download-progress.js +28 -0
  372. package/files/file-manager-variant.d.ts +3 -0
  373. package/files/file-manager-variant.d.ts.map +1 -0
  374. package/files/file-name.d.ts +19 -0
  375. package/files/file-name.d.ts.map +1 -0
  376. package/files/prepare-download-destination.d.ts +8 -0
  377. package/files/prepare-download-destination.d.ts.map +1 -0
  378. package/files/resolve-dial-file-api-path.d.ts +12 -0
  379. package/files/resolve-dial-file-api-path.d.ts.map +1 -0
  380. package/files/source-content.d.ts +28 -0
  381. package/files/source-content.d.ts.map +1 -0
  382. package/files/source-content.js +1 -1
  383. package/files/useDialFileListing/useDialFileListing.d.ts +82 -0
  384. package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -0
  385. package/files/useDialFileListing/useDialFileListing.js +97 -109
  386. package/files/useDialFileManager/useDialFileManager.d.ts +16 -0
  387. package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -0
  388. package/files/useDialFileManager/useDialFileManager.js +5 -2
  389. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts +25 -0
  390. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -0
  391. package/files/useDialFileManagerSections/useDialFileManagerSections.js +59 -68
  392. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +15 -0
  393. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +1 -0
  394. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +1 -1
  395. package/files/useDialFileMetadata/useDialFileMetadata.d.ts +28 -0
  396. package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +1 -0
  397. package/files/useDialFileMetadata/useDialFileMetadata.js +3 -3
  398. package/files/useDialFileMutations/useDialFileMutations.d.ts +77 -0
  399. package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -0
  400. package/files/useDialFileMutations/useDialFileMutations.js +230 -159
  401. package/files/useDialFilePreview/useDialFilePreview.d.ts +33 -0
  402. package/files/useDialFilePreview/useDialFilePreview.d.ts.map +1 -0
  403. package/files/useDialFilePreview/useDialFilePreview.js +45 -0
  404. package/files/useDialFileSharing/useDialFileSharing.d.ts +34 -0
  405. package/files/useDialFileSharing/useDialFileSharing.d.ts.map +1 -0
  406. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +47 -0
  407. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -0
  408. package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +114 -103
  409. package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts +25 -0
  410. package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts.map +1 -0
  411. package/files/useFileAttachmentModalState/useFileAttachmentModalState.js +19 -0
  412. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts +59 -0
  413. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts.map +1 -0
  414. package/files/useFileAttachmentPicker/useFileAttachmentPicker.js +2 -2
  415. package/files/useUnshareConfirmationState/useUnshareConfirmationState.d.ts +23 -0
  416. package/files/useUnshareConfirmationState/useUnshareConfirmationState.d.ts.map +1 -0
  417. package/files/useUnshareConfirmationState/useUnshareConfirmationState.js +18 -0
  418. package/index.d.ts +226 -6996
  419. package/index.d.ts.map +1 -0
  420. package/index.js +224 -150
  421. package/mcp-apps/mcp-apps-api-client.d.ts +28 -0
  422. package/mcp-apps/mcp-apps-api-client.d.ts.map +1 -0
  423. package/mcp-apps/mcp-apps-api-client.js +18 -17
  424. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts +14 -0
  425. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts.map +1 -0
  426. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +30 -0
  427. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -0
  428. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js +28 -10
  429. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts +22 -0
  430. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -0
  431. package/mcp-apps/useMcpAppTools/useMcpAppTools.js +42 -42
  432. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts +36 -0
  433. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts.map +1 -0
  434. package/mcp-apps.d.ts +2 -256
  435. package/oauth/authorize-url.d.ts +22 -0
  436. package/oauth/authorize-url.d.ts.map +1 -0
  437. package/oauth/authorize-url.js +14 -4
  438. package/oauth/handshake.d.ts +30 -0
  439. package/oauth/handshake.d.ts.map +1 -0
  440. package/oauth/handshake.js +3 -10
  441. package/oauth/models.d.ts +106 -0
  442. package/oauth/models.d.ts.map +1 -0
  443. package/oauth/popup.d.ts +30 -0
  444. package/oauth/popup.d.ts.map +1 -0
  445. package/oauth/popup.js +19 -17
  446. package/oauth/toolset-id.d.ts +60 -0
  447. package/oauth/toolset-id.d.ts.map +1 -0
  448. package/oauth/toolset-id.js +9 -2
  449. package/oauth/types.d.ts +84 -0
  450. package/oauth/types.d.ts.map +1 -0
  451. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +54 -0
  452. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -0
  453. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +41 -42
  454. package/oauth/useToolsetLogin/useToolsetLogin.d.ts +85 -0
  455. package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
  456. package/oauth/useToolsetLogin/useToolsetLogin.js +51 -42
  457. package/oauth.d.ts +2 -472
  458. package/oauth.js +8 -8
  459. package/offline-credentials/map-offline-credentials-response.d.ts +20 -0
  460. package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -0
  461. package/offline-credentials/map-offline-credentials-response.js +17 -0
  462. package/offline-credentials/scheduled-tasks-login-banner.d.ts +31 -0
  463. package/offline-credentials/scheduled-tasks-login-banner.d.ts.map +1 -0
  464. package/offline-credentials/scheduled-tasks-login-banner.js +17 -0
  465. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts +58 -0
  466. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts.map +1 -0
  467. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.js +37 -0
  468. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts +61 -0
  469. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -0
  470. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +37 -0
  471. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts +28 -0
  472. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts.map +1 -0
  473. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.js +29 -0
  474. package/offline-credentials.d.ts +2 -0
  475. package/offline-credentials.js +7 -0
  476. package/package.json +49 -25
  477. package/project/create-project-chat.d.ts +34 -0
  478. package/project/create-project-chat.d.ts.map +1 -0
  479. package/project/create-project-chat.js +27 -0
  480. package/project/project-conversation-data-source.d.ts +36 -0
  481. package/project/project-conversation-data-source.d.ts.map +1 -0
  482. package/project/project-conversation-data-source.js +67 -0
  483. package/project/project-events.d.ts +14 -0
  484. package/project/project-events.d.ts.map +1 -0
  485. package/project/project-events.js +25 -0
  486. package/project/project-file-preview.d.ts +28 -0
  487. package/project/project-file-preview.d.ts.map +1 -0
  488. package/project/project-file-preview.js +20 -0
  489. package/project/project-form-errors.d.ts +23 -0
  490. package/project/project-form-errors.d.ts.map +1 -0
  491. package/project/project-form-errors.js +46 -0
  492. package/project/project-limits.d.ts +17 -0
  493. package/project/project-limits.d.ts.map +1 -0
  494. package/project/project-limits.js +11 -0
  495. package/project/project-mapping.d.ts +16 -0
  496. package/project/project-mapping.d.ts.map +1 -0
  497. package/project/project-mapping.js +43 -0
  498. package/project/project-refresh.d.ts +12 -0
  499. package/project/project-refresh.d.ts.map +1 -0
  500. package/project/project-refresh.js +6 -0
  501. package/project/project-viewed-marks.d.ts +9 -0
  502. package/project/project-viewed-marks.d.ts.map +1 -0
  503. package/project/project-viewed-marks.js +8 -0
  504. package/project/project-watch-stream.d.ts +26 -0
  505. package/project/project-watch-stream.d.ts.map +1 -0
  506. package/project/project-watch-stream.js +39 -0
  507. package/project/projects-api-client.d.ts +173 -0
  508. package/project/projects-api-client.d.ts.map +1 -0
  509. package/project/projects-api-client.js +89 -0
  510. package/project/use-pinned-project-chats.d.ts +58 -0
  511. package/project/use-pinned-project-chats.d.ts.map +1 -0
  512. package/project/use-pinned-project-chats.js +269 -0
  513. package/project/use-project-actions.d.ts +52 -0
  514. package/project/use-project-actions.d.ts.map +1 -0
  515. package/project/use-project-actions.js +92 -0
  516. package/project/use-project-artifacts.d.ts +24 -0
  517. package/project/use-project-artifacts.d.ts.map +1 -0
  518. package/project/use-project-artifacts.js +78 -0
  519. package/project/use-project-conversations.d.ts +31 -0
  520. package/project/use-project-conversations.d.ts.map +1 -0
  521. package/project/use-project-conversations.js +196 -0
  522. package/project/use-project-draft.d.ts +46 -0
  523. package/project/use-project-draft.d.ts.map +1 -0
  524. package/project/use-project-draft.js +54 -0
  525. package/project/use-project-file-preview.d.ts +42 -0
  526. package/project/use-project-file-preview.d.ts.map +1 -0
  527. package/project/use-project-file-preview.js +46 -0
  528. package/project/use-project-submit.d.ts +49 -0
  529. package/project/use-project-submit.d.ts.map +1 -0
  530. package/project/use-project-submit.js +73 -0
  531. package/project/use-project-watch.d.ts +24 -0
  532. package/project/use-project-watch.d.ts.map +1 -0
  533. package/project/use-project-watch.js +41 -0
  534. package/project/use-project.d.ts +23 -0
  535. package/project/use-project.d.ts.map +1 -0
  536. package/project/use-project.js +73 -0
  537. package/project/use-projects.d.ts +27 -0
  538. package/project/use-projects.d.ts.map +1 -0
  539. package/project/use-projects.js +92 -0
  540. package/project.d.ts +2 -0
  541. package/project.js +20 -0
  542. package/prompt/export-prompt.d.ts +31 -0
  543. package/prompt/export-prompt.d.ts.map +1 -0
  544. package/prompt/prompt-resource.d.ts +30 -0
  545. package/prompt/prompt-resource.d.ts.map +1 -0
  546. package/prompt/prompt.d.ts +45 -0
  547. package/prompt/prompt.d.ts.map +1 -0
  548. package/prompt/prompt.js +7 -3
  549. package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
  550. package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
  551. package/scheduled-task/active-scheduled-task.d.ts +58 -0
  552. package/scheduled-task/active-scheduled-task.d.ts.map +1 -0
  553. package/scheduled-task/active-scheduled-task.js +18 -0
  554. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts +27 -0
  555. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts.map +1 -0
  556. package/scheduled-task/check-scheduled-task-auth-session-error.js +17 -0
  557. package/scheduled-task/scheduled-task-description.d.ts +41 -0
  558. package/scheduled-task/scheduled-task-description.d.ts.map +1 -0
  559. package/scheduled-task/scheduled-task-description.js +37 -28
  560. package/scheduled-task/scheduled-task-display.d.ts +108 -0
  561. package/scheduled-task/scheduled-task-display.d.ts.map +1 -0
  562. package/scheduled-task/scheduled-task-display.js +70 -0
  563. package/scheduled-task/scheduled-task-mapping.d.ts +19 -0
  564. package/scheduled-task/scheduled-task-mapping.d.ts.map +1 -0
  565. package/scheduled-task/scheduled-task-next-occurrence.d.ts +9 -0
  566. package/scheduled-task/scheduled-task-next-occurrence.d.ts.map +1 -0
  567. package/scheduled-task/scheduled-task-next-occurrence.js +20 -0
  568. package/scheduled-task/scheduled-task-preparation.d.ts +19 -0
  569. package/scheduled-task/scheduled-task-preparation.d.ts.map +1 -0
  570. package/scheduled-task/scheduled-task-trigger.d.ts +26 -0
  571. package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -0
  572. package/scheduled-task/scheduled-task-trigger.js +68 -38
  573. package/scheduled-task/scheduled-tasks-api-client.d.ts +67 -0
  574. package/scheduled-task/scheduled-tasks-api-client.d.ts.map +1 -0
  575. package/scheduled-task/use-scheduled-task-runs.d.ts +40 -0
  576. package/scheduled-task/use-scheduled-task-runs.d.ts.map +1 -0
  577. package/scheduled-task/use-scheduled-task-runs.js +19 -31
  578. package/scheduled-task/use-scheduled-tasks.d.ts +28 -0
  579. package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
  580. package/scheduled-task/use-scheduled-tasks.js +1 -1
  581. package/scheduled-task/useActiveScheduledTaskDetails.d.ts +18 -0
  582. package/scheduled-task/useActiveScheduledTaskDetails.d.ts.map +1 -0
  583. package/scheduled-task/useActiveScheduledTaskDetails.js +40 -0
  584. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts +17 -0
  585. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts.map +1 -0
  586. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.js +29 -0
  587. package/scheduled-task/useStartScheduledTask.d.ts +41 -0
  588. package/scheduled-task/useStartScheduledTask.d.ts.map +1 -0
  589. package/scheduled-task/useStartScheduledTask.js +169 -0
  590. package/scheduled-tasks.d.ts +2 -256
  591. package/scheduled-tasks.js +13 -6
  592. package/scroll-anchoring.d.ts +2 -50
  593. package/scroll-anchoring.js +1 -2
  594. package/shared/application-schema.d.ts +16 -0
  595. package/shared/application-schema.d.ts.map +1 -0
  596. package/shared/application-schema.js +3 -3
  597. package/shared/browser-timezone.d.ts +7 -0
  598. package/shared/browser-timezone.d.ts.map +1 -0
  599. package/shared/client-channel.d.ts +53 -0
  600. package/shared/client-channel.d.ts.map +1 -0
  601. package/shared/client-channel.js +6 -0
  602. package/shared/cron-day-of-month.d.ts +21 -0
  603. package/shared/cron-day-of-month.d.ts.map +1 -0
  604. package/shared/cron-day-of-month.js +10 -10
  605. package/shared/cron-weekday.d.ts +5 -0
  606. package/shared/cron-weekday.d.ts.map +1 -0
  607. package/shared/custom-apps.d.ts +7 -0
  608. package/shared/custom-apps.d.ts.map +1 -0
  609. package/shared/external-services.d.ts +16 -0
  610. package/shared/external-services.d.ts.map +1 -0
  611. package/shared/formatting.d.ts +5 -0
  612. package/shared/formatting.d.ts.map +1 -0
  613. package/shared/locale.d.ts +45 -0
  614. package/shared/locale.d.ts.map +1 -0
  615. package/shared/locale.js +2 -2
  616. package/shared/read-sse-events.d.ts +10 -0
  617. package/shared/read-sse-events.d.ts.map +1 -0
  618. package/shared/read-sse-events.js +33 -0
  619. package/shared/serialized-writer.d.ts +12 -0
  620. package/shared/serialized-writer.d.ts.map +1 -0
  621. package/shared/serialized-writer.js +44 -0
  622. package/shared/sleep.d.ts +3 -0
  623. package/shared/sleep.d.ts.map +1 -0
  624. package/shared/sleep.js +13 -0
  625. package/shared/string-utils.d.ts +11 -0
  626. package/shared/string-utils.d.ts.map +1 -0
  627. package/shared/theme-colors.d.ts +16 -0
  628. package/shared/theme-colors.d.ts.map +1 -0
  629. package/shared/theme-colors.js +14 -0
  630. package/shared/toolset-login-events.d.ts +15 -0
  631. package/shared/toolset-login-events.d.ts.map +1 -0
  632. package/shared/usage-stat.d.ts +3 -0
  633. package/shared/usage-stat.d.ts.map +1 -0
  634. package/shared/usage-stat.js +4 -0
  635. package/shared/usePersistedState/usePersistedState.d.ts +28 -0
  636. package/shared/usePersistedState/usePersistedState.d.ts.map +1 -0
  637. package/shared/usePersistedState/usePersistedState.js +24 -0
  638. package/sharing.d.ts +2 -65
  639. package/skill/skill-archive.d.ts +7 -0
  640. package/skill/skill-archive.d.ts.map +1 -0
  641. package/skill/skill-file-batch-validation.d.ts +74 -0
  642. package/skill/skill-file-batch-validation.d.ts.map +1 -0
  643. package/skill/skill-file-batch-validation.js +34 -33
  644. package/skill/skill-file-preview.d.ts +25 -0
  645. package/skill/skill-file-preview.d.ts.map +1 -0
  646. package/skill/skill-lookup.d.ts +20 -0
  647. package/skill/skill-lookup.d.ts.map +1 -0
  648. package/skill/skill-lookup.js +12 -0
  649. package/skill/skill-manifest.d.ts +28 -0
  650. package/skill/skill-manifest.d.ts.map +1 -0
  651. package/skill/skill-types.d.ts +46 -0
  652. package/skill/skill-types.d.ts.map +1 -0
  653. package/skill/skill-types.js +1 -1
  654. package/skill/skill.d.ts +160 -0
  655. package/skill/skill.d.ts.map +1 -0
  656. package/skill/skill.js +12 -15
  657. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts +65 -0
  658. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts.map +1 -0
  659. package/skill/useSkillArchiveImport/useSkillArchiveImport.js +1 -7
  660. package/skill/useSkillEditorLoad.d.ts +74 -0
  661. package/skill/useSkillEditorLoad.d.ts.map +1 -0
  662. package/skill/useSkillEditorSubmit.d.ts +127 -0
  663. package/skill/useSkillEditorSubmit.d.ts.map +1 -0
  664. package/skill/useSkillEditorSubmit.js +77 -79
  665. package/skill/useSkillFileActions.d.ts +62 -0
  666. package/skill/useSkillFileActions.d.ts.map +1 -0
  667. package/skill/useSkillFileActions.js +36 -21
  668. package/skill/useSkillFilePreview.d.ts +38 -0
  669. package/skill/useSkillFilePreview.d.ts.map +1 -0
  670. package/skill/useSkillsState/useSkillsState.d.ts +35 -0
  671. package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
  672. package/skill-editor/useSkillFilePreviewSyncController.d.ts +41 -0
  673. package/skill-editor/useSkillFilePreviewSyncController.d.ts.map +1 -0
  674. package/skill-editor/useSkillFilePreviewSyncController.js +58 -0
  675. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts +23 -0
  676. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts.map +1 -0
  677. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.js +43 -0
  678. package/skill-editor.d.ts +2 -655
  679. package/skill-editor.js +3 -1
  680. package/skills-state.d.ts +2 -40
  681. package/skills-state.js +3 -2
  682. package/source-content.d.ts +2 -29
  683. package/source-content.js +1 -2
  684. package/usage/map-usage-data-to-dashboard.d.ts +39 -0
  685. package/usage/map-usage-data-to-dashboard.d.ts.map +1 -0
  686. package/usage/map-user-usage-to-model-limits.d.ts +62 -0
  687. package/usage/map-user-usage-to-model-limits.d.ts.map +1 -0
  688. package/usage/map-user-usage-to-model-limits.js +21 -21
  689. package/usage/usage-banner-source.d.ts +24 -0
  690. package/usage/usage-banner-source.d.ts.map +1 -0
  691. package/usage/usage-banner-source.js +61 -0
  692. package/usage/usage-period.d.ts +7 -0
  693. package/usage/usage-period.d.ts.map +1 -0
  694. package/usage/usage-period.js +6 -0
  695. package/usage/usage-reset-time.d.ts +78 -0
  696. package/usage/usage-reset-time.d.ts.map +1 -0
  697. package/usage/usage-reset-time.js +82 -0
  698. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +56 -0
  699. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
  700. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +34 -0
  701. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts +16 -0
  702. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts.map +1 -0
  703. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js +14 -0
  704. package/usage/useUsageData/useUsageData.d.ts +28 -0
  705. package/usage/useUsageData/useUsageData.d.ts.map +1 -0
  706. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +58 -0
  707. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
  708. package/usage/useUsageLimitBanner/useUsageLimitBanner.js +70 -0
  709. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts +14 -0
  710. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts.map +1 -0
  711. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +19 -0
  712. package/usage-limits.d.ts +2 -0
  713. package/usage-limits.js +9 -0
  714. package/usage.d.ts +2 -125
  715. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +130 -0
  716. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -0
  717. package/useChatSettingsFormConfig/useChatSettingsFormConfig.js +25 -21
  718. package/usePageFileDrag/usePageFileDrag.d.ts +16 -0
  719. package/usePageFileDrag/usePageFileDrag.d.ts.map +1 -0
  720. package/usePageFileDrag/usePageFileDrag.js +3 -3
  721. package/usePanelMaxWidth/usePanelMaxWidth.d.ts +6 -0
  722. package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +1 -0
  723. package/useShareLink/useShareLink.d.ts +23 -0
  724. package/useShareLink/useShareLink.d.ts.map +1 -0
  725. package/useShareLink/useShareLink.js +18 -17
  726. package/useShareRecipientsCount/useShareRecipientsCount.d.ts +36 -0
  727. package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +1 -0
  728. package/useToolsMenu/useToolsMenu.d.ts +31 -0
  729. package/useToolsMenu/useToolsMenu.d.ts.map +1 -0
  730. package/useViewportWidth/useViewportWidth.d.ts +3 -0
  731. package/useViewportWidth/useViewportWidth.d.ts.map +1 -0
  732. package/utils.d.ts +2 -404
  733. package/utils.js +21 -17
  734. package/viewport-layout/canvas-width.d.ts +39 -0
  735. package/viewport-layout/canvas-width.d.ts.map +1 -0
  736. package/viewport-layout/canvas-width.js +23 -0
  737. package/viewport-layout.d.ts +2 -27
  738. package/viewport-layout.js +2 -1
@@ -3,157 +3,155 @@ import { SKILL_TEXT_FIELD_MAX_LENGTHS as n, buildSkillFilesPayload as r, buildSk
3
3
  import { useCallback as l, useRef as u, useState as d } from "react";
4
4
  import { NotificationVariant as f } from "@epam/ai-dial-ui-kit";
5
5
  //#region src/skill/useSkillEditorSubmit.ts
6
- var p = (e, t) => JSON.stringify({
6
+ var p = (e, t, n) => JSON.stringify({
7
7
  values: e,
8
- files: [...t].sort((e, t) => e.path.localeCompare(t.path))
9
- }), m = ({ bucket: m, isEditMode: h, files: g, filesContentRef: _, frontmatterRef: v, loadedPathRef: y, etagRef: b, returnUrl: x, getCreateReturnUrl: S, refetchSkills: C, client: w, messages: T, onNavigate: E, onNotify: D }) => {
10
- let [O, k] = d({}), [A, j] = d(), [M, N] = d(!1), [P, F] = d(), [I, L] = d("idle"), R = u(null), z = u(null), B = l(async (n) => {
8
+ files: [...t].sort((e, t) => e.path.localeCompare(t.path)),
9
+ contentRevisions: Object.entries(n).sort(([e], [t]) => e.localeCompare(t))
10
+ }), m = {}, h = ({ bucket: h, isEditMode: g, files: _, filesContentRef: v, contentRevisions: y = m, frontmatterRef: b, loadedPathRef: x, etagRef: S, returnUrl: C, getCreateReturnUrl: w, refetchSkills: T, client: E, messages: D, onNavigate: O, onNotify: k }) => {
11
+ let [A, j] = d({}), [M, N] = d(), [P, F] = d(!1), [I, L] = d(), [R, z] = d("idle"), B = u(null), V = u(null), H = l(async (n) => {
11
12
  switch (t(n)) {
12
13
  case 409:
13
- k({ name: T.nameConflict });
14
+ j({ name: D.nameConflict });
14
15
  return;
15
16
  case 412:
16
- k({ name: T.nameConflict });
17
+ j({ name: D.nameConflict });
17
18
  return;
18
19
  case 413:
19
- j(T.archiveTooLarge);
20
+ N(D.archiveTooLarge);
20
21
  return;
21
22
  case 503:
22
- j(T.serviceUnavailable), N(!0);
23
+ N(D.serviceUnavailable), F(!0);
23
24
  return;
24
25
  case 400: {
25
26
  let { message: t } = await e(n);
26
- j(t ?? T.pathInvalid);
27
+ N(t ?? D.pathInvalid);
27
28
  return;
28
29
  }
29
30
  default: {
30
31
  let { traceId: t } = await e(n);
31
- j(T.saveError), D({
32
+ N(D.saveError), k({
32
33
  variant: f.Error,
33
- message: T.saveError,
34
+ message: D.saveError,
34
35
  requestId: t
35
36
  });
36
37
  }
37
38
  }
38
- }, [T, D]), V = l(async (e) => {
39
+ }, [D, k]), U = l(async (e) => {
39
40
  let t = s(e.name);
40
41
  if (!t || !o(t)) {
41
- k({ name: T.nameInvalid });
42
+ j({ name: D.nameInvalid });
42
43
  return;
43
44
  }
44
- let n = p(e, g), a = R.current, c = a != null && a.fingerprint === n, l = t, u, d, h;
45
- c ? {skillManifest: u, filePaths: d, files: h} = a : (u = i(v.current, t, e.description, e.instructions), {filePaths: d, files: h} = r(g, _.current)), L("submitting"), R.current = {
45
+ let n = p(e, _, y), a = B.current, c = a != null && a.fingerprint === n, l = t, u, d, m;
46
+ c ? {skillManifest: u, filePaths: d, files: m} = a : (u = i(b.current, t, e.description, e.instructions), {filePaths: d, files: m} = r(_, v.current)), z("submitting"), B.current = {
46
47
  fingerprint: n,
47
- bucket: m,
48
+ bucket: h,
48
49
  path: l,
49
50
  skillManifest: u,
50
51
  filePaths: d,
51
- files: h
52
+ files: m
52
53
  };
53
54
  try {
54
- await w.createSkill(m, l, u, d, h), await C(), L("success"), D({
55
+ await E.createSkill(h, l, u, d, m), await T(), z("success"), k({
55
56
  variant: f.Success,
56
- title: T.saveSuccessTitle,
57
- message: T.createSuccess(t)
58
- }), E(S?.(l) ?? x);
57
+ title: D.saveSuccessTitle,
58
+ message: D.createSuccess(t)
59
+ }), O(w?.(l) ?? C);
59
60
  } catch (e) {
60
- L("failure"), await B(e);
61
+ z("failure"), await H(e);
61
62
  }
62
63
  }, [
63
- m,
64
- g,
64
+ h,
65
65
  _,
66
66
  v,
67
- T,
68
- w,
67
+ y,
68
+ b,
69
69
  D,
70
70
  E,
71
- x,
72
- S,
71
+ k,
72
+ O,
73
73
  C,
74
- B
75
- ]), H = l(async (e) => {
76
- let n = y.current, a = b.current;
74
+ w,
75
+ T,
76
+ H
77
+ ]), W = l(async (e) => {
78
+ let n = x.current, a = S.current;
77
79
  if (!n || !a) {
78
- j(T.saveError);
80
+ N(D.saveError);
79
81
  return;
80
82
  }
81
- let o = i(v.current, e.name, e.description, e.instructions), { filePaths: s, files: c } = r(g, _.current);
82
- L("submitting");
83
+ let o = i(b.current, e.name, e.description, e.instructions), { filePaths: s, files: c } = r(_, v.current);
84
+ z("submitting");
83
85
  try {
84
- b.current = (await w.updateSkill(m, n, o, s, c, a)).etag ?? a, await C(), L("success"), D({
86
+ S.current = (await E.updateSkill(h, n, o, s, c, a)).etag ?? a, await T(), z("success"), k({
85
87
  variant: f.Success,
86
- title: T.updateSuccessTitle,
87
- message: T.updateSuccess(e.name)
88
- }), E(x);
88
+ title: D.updateSuccessTitle,
89
+ message: D.updateSuccess(e.name)
90
+ }), O(C);
89
91
  } catch (e) {
90
- if (L("failure"), t(e) === 412) {
91
- F({ message: T.conflictMessage });
92
+ if (z("failure"), t(e) === 412) {
93
+ L({ message: D.conflictMessage });
92
94
  return;
93
95
  }
94
- await B(e);
96
+ await H(e);
95
97
  }
96
98
  }, [
97
- m,
98
- g,
99
+ h,
99
100
  _,
100
101
  v,
101
- y,
102
102
  b,
103
- T,
104
- w,
103
+ x,
104
+ S,
105
105
  D,
106
106
  E,
107
- x,
107
+ k,
108
+ O,
108
109
  C,
109
- B
110
- ]), U = l((e) => {
110
+ T,
111
+ H
112
+ ]), G = l((e) => {
111
113
  let t = c(e.instructions), r = a(e);
112
- k((e) => {
114
+ j((e) => {
113
115
  let i = { ...e };
114
116
  for (let e of Object.keys(n)) {
115
- let t = T.tooLong(n[e]);
117
+ let t = D.tooLong(n[e]);
116
118
  r[e] ? i[e] = t : i[e] === t && delete i[e];
117
119
  }
118
120
  if (!r.instructions) {
119
- let e = i.instructions === T.instructionsFrontmatter;
120
- t && !e ? i.instructions = T.instructionsFrontmatter : !t && e && delete i.instructions;
121
+ let e = i.instructions === D.instructionsFrontmatter;
122
+ t && !e ? i.instructions = D.instructionsFrontmatter : !t && e && delete i.instructions;
121
123
  }
122
124
  return Object.keys(i).length === Object.keys(e).length && Object.keys(i).every((t) => i[t] === e[t]) ? e : i;
123
125
  });
124
- }, [T]), W = l(async (e) => {
125
- if (I === "submitting" || !m) return;
126
+ }, [D]), K = l(async (e) => {
127
+ if (R === "submitting" || !h) return;
126
128
  let t = {};
127
- e.name.trim() || (t.name = T.required), e.description.trim() || (t.description = T.required), e.instructions.trim() ? c(e.instructions) && (t.instructions = T.instructionsFrontmatter) : t.instructions = T.required;
129
+ e.name.trim() || (t.name = D.required), e.description.trim() || (t.description = D.required), e.instructions.trim() ? c(e.instructions) && (t.instructions = D.instructionsFrontmatter) : t.instructions = D.required;
128
130
  let r = a(e);
129
- for (let e of Object.keys(r)) t[e] ??= T.tooLong(n[e]);
130
- if (Object.keys(t).length > 0) {
131
- k(t);
132
- return;
133
- }
134
- k({}), j(void 0), N(!1), F(void 0), z.current = e, h ? await H(e) : await V(e);
131
+ for (let e of Object.keys(r)) t[e] ??= D.tooLong(n[e]);
132
+ Object.keys(t).length > 0 ? j(t) : (j({}), N(void 0), F(!1), L(void 0), V.current = e, g ? await W(e) : await U(e));
135
133
  }, [
136
- I,
137
- m,
138
- T,
134
+ R,
139
135
  h,
140
- H,
141
- V
136
+ D,
137
+ g,
138
+ W,
139
+ U
142
140
  ]);
143
141
  return {
144
- phase: I,
145
- errors: O,
146
- submitError: A,
147
- isSubmitErrorRetryable: M,
142
+ phase: R,
143
+ errors: A,
144
+ submitError: M,
145
+ isSubmitErrorRetryable: P,
148
146
  retrySubmit: l(() => {
149
- let e = z.current;
150
- e != null && W(e);
151
- }, [W]),
152
- conflict: P,
153
- clearConflict: () => F(void 0),
154
- handleSubmit: W,
155
- handleValuesChange: U
147
+ let e = V.current;
148
+ e != null && K(e);
149
+ }, [K]),
150
+ conflict: I,
151
+ clearConflict: () => L(void 0),
152
+ handleSubmit: K,
153
+ handleValuesChange: G
156
154
  };
157
155
  };
158
156
  //#endregion
159
- export { m as useSkillEditorSubmit };
157
+ export { h as useSkillEditorSubmit };
@@ -0,0 +1,62 @@
1
+ import { SkillEditorFileActions, SkillEditorValues, SkillFileSourceEntry, SkillFileTreeNode } from '@epam/ai-dial-skill-editor';
2
+ import { Dispatch, SetStateAction } from 'react';
3
+ import { SkillFileBatchValidationMessages } from './skill-file-batch-validation';
4
+ import { SkillFileContent } from './skill-file-preview';
5
+ /** Localized messages `useSkillFileActions` needs beyond per-candidate batch validation. */
6
+ export interface SkillFileActionsMessages extends SkillFileBatchValidationMessages {
7
+ /** Returned as the commit error when an imported manifest's `name` doesn't match the skill being edited. */
8
+ manifestNameMismatch: string;
9
+ /** Returned as the commit error when the user declines the manifest-import confirmation. */
10
+ manifestImportDeclined: string;
11
+ /** Generic fallback commit error for a batch with invalid candidates but no specific batch error. */
12
+ saveError: string;
13
+ }
14
+ /** Parameters accepted by {@link useSkillFileActions}. */
15
+ export interface UseSkillFileActionsParams {
16
+ /** The editor's current supporting-file tree. */
17
+ files: SkillFileTreeNode[];
18
+ /** Updates `files`. */
19
+ setFiles: Dispatch<SetStateAction<SkillFileTreeNode[]>>;
20
+ /** In-memory bytes for every supporting file, keyed by relative path. */
21
+ filesContentRef: React.MutableRefObject<Map<string, SkillFileContent>>;
22
+ /** The loaded (or imported) manifest's full parsed frontmatter. */
23
+ frontmatterRef: React.MutableRefObject<Record<string, unknown>>;
24
+ /** The seeded baseline manifest values, used to approximate the projected total size. */
25
+ loadedValues: SkillEditorValues | undefined;
26
+ /** Updates `loadedValues` after a manifest import. */
27
+ setLoadedValues: Dispatch<SetStateAction<SkillEditorValues | undefined>>;
28
+ /** Whether the form is editing an existing skill rather than creating a new one. */
29
+ isEditMode: boolean;
30
+ /** Whether the form currently diverges from its seeded baseline. */
31
+ isDirty: boolean;
32
+ /** Updates the currently selected file-tree node path. */
33
+ setSelectedPath: Dispatch<SetStateAction<string>>;
34
+ /** Localized messages, resolved by the host. */
35
+ messages: SkillFileActionsMessages;
36
+ /**
37
+ * Opens the host's file-system picker; passed through unchanged as
38
+ * `fileActions.pickFromFileSystem`. Omit to hide the editor's "Open DIAL
39
+ * file system" entry.
40
+ */
41
+ pickFromFileSystem?: () => Promise<SkillFileSourceEntry[] | undefined>;
42
+ }
43
+ /** Return value of {@link useSkillFileActions}. */
44
+ export interface UseSkillFileActionsResult {
45
+ /** File-tree mutation operations, passed straight to `SkillEditor`'s `fileActions` prop. */
46
+ fileActions: SkillEditorFileActions;
47
+ /** Whether the "replace Skill metadata?" confirmation prompt should be shown. */
48
+ pendingManifestImport: boolean;
49
+ /** Resolves the in-flight manifest-import confirmation with the user's choice. */
50
+ resolveManifestImport: (accepted: boolean) => void;
51
+ /** How many times each supporting file's bytes were replaced in place, keyed by path; absent means never. */
52
+ contentRevisions: Readonly<Record<string, number>>;
53
+ }
54
+ /**
55
+ * Owns the Skill Editor's batch file upload workflow: validating a staged
56
+ * batch, committing it atomically (supporting files plus an optional
57
+ * `SKILL.md` manifest import, with a confirmation gate), creating empty
58
+ * folders, expanding `.zip` archives for staging, and removing
59
+ * already-committed nodes.
60
+ */
61
+ export declare const useSkillFileActions: ({ files, setFiles, filesContentRef, frontmatterRef, loadedValues, setLoadedValues, isEditMode, isDirty, setSelectedPath, messages, pickFromFileSystem, }: UseSkillFileActionsParams) => UseSkillFileActionsResult;
62
+ //# sourceMappingURL=useSkillFileActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSkillFileActions.d.ts","sourceRoot":"","sources":["../../src/skill/useSkillFileActions.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EAEvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAUtD,OAAO,EAEL,KAAK,gCAAgC,EACtC,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,4FAA4F;AAC5F,MAAM,WAAW,wBAAyB,SAAQ,gCAAgC;IAChF,4GAA4G;IAC5G,oBAAoB,EAAE,MAAM,CAAC;IAC7B,4FAA4F;IAC5F,sBAAsB,EAAE,MAAM,CAAC;IAC/B,qGAAqG;IACrG,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,0DAA0D;AAC1D,MAAM,WAAW,yBAAyB;IACxC,iDAAiD;IACjD,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,uBAAuB;IACvB,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC;IACxD,yEAAyE;IACzE,eAAe,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC;IACvE,mEAAmE;IACnE,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAChE,yFAAyF;IACzF,YAAY,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC5C,sDAAsD;IACtD,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC,CAAC;IACzE,oFAAoF;IACpF,UAAU,EAAE,OAAO,CAAC;IACpB,oEAAoE;IACpE,OAAO,EAAE,OAAO,CAAC;IACjB,0DAA0D;IAC1D,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAClD,gDAAgD;IAChD,QAAQ,EAAE,wBAAwB,CAAC;IACnC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAC,oBAAoB,EAAE,GAAG,SAAS,CAAC,CAAC;CACxE;AAED,mDAAmD;AACnD,MAAM,WAAW,yBAAyB;IACxC,4FAA4F;IAC5F,WAAW,EAAE,sBAAsB,CAAC;IACpC,iFAAiF;IACjF,qBAAqB,EAAE,OAAO,CAAC;IAC/B,kFAAkF;IAClF,qBAAqB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD,6GAA6G;IAC7G,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACpD;AAQD;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,0JAYjC,yBAAyB,KAAG,yBA+O9B,CAAC"}
@@ -6,18 +6,23 @@ import { useCallback as c, useMemo as l, useRef as u, useState as d } from "reac
6
6
  import { SkillFileNodeKind as f } from "@epam/ai-dial-skill-editor";
7
7
  //#region src/skill/useSkillFileActions.ts
8
8
  var p = "probe", m = ({ files: m, setFiles: h, filesContentRef: g, frontmatterRef: _, loadedValues: v, setLoadedValues: y, isEditMode: b, isDirty: x, setSelectedPath: S, messages: C, pickFromFileSystem: w }) => {
9
- let [T, E] = d(!1), D = u(null), O = c(() => {
10
- let e = m.filter((e) => e.kind === f.File).map((e) => e.path), r = 0;
11
- for (let t of e) r += g.current.get(t)?.bytes.length ?? 0;
12
- let i = {
9
+ let [T, E] = d(!1), [D, O] = d({}), k = u(null), A = c(() => {
10
+ let e = m.filter((e) => e.kind === f.File).map((e) => e.path), r = 0, i = /* @__PURE__ */ new Map();
11
+ for (let t of e) {
12
+ let e = g.current.get(t)?.bytes.length ?? 0;
13
+ i.set(t, e), r += e;
14
+ }
15
+ let a = {
13
16
  name: v?.name ?? "",
14
17
  description: v?.description ?? "",
15
18
  instructions: v?.instructions ?? ""
16
- }, a = b ? n(_.current, i.name, i.description, i.instructions) : t(i);
19
+ }, o = b ? n(_.current, a.name, a.description, a.instructions) : t(a);
17
20
  return {
18
21
  existingPaths: e,
19
22
  existingTotalBytes: r,
20
- manifestByteLength: s(a),
23
+ existingFileBytes: i,
24
+ existingFolderPaths: m.filter((e) => e.kind === f.Folder).map((e) => e.path),
25
+ manifestByteLength: s(o),
21
26
  messages: C
22
27
  };
23
28
  }, [
@@ -27,42 +32,50 @@ var p = "probe", m = ({ files: m, setFiles: h, filesContentRef: g, frontmatterRe
27
32
  _,
28
33
  v,
29
34
  C
30
- ]), k = c(() => new Promise((e) => {
31
- D.current = e, E(!0);
32
- }), []), A = c((e) => {
33
- E(!1), D.current?.(e), D.current = null;
35
+ ]), j = c(() => new Promise((e) => {
36
+ k.current = e, E(!0);
37
+ }), []), M = c((e) => {
38
+ E(!1), k.current?.(e), k.current = null;
34
39
  }, []);
35
40
  return {
36
41
  fileActions: l(() => ({
37
42
  validateBatch: async (e) => {
38
- let { results: t, batchErrors: n } = await a(e, O());
43
+ let { results: t, batchErrors: n } = await a(e, A());
39
44
  return {
40
45
  results: t,
41
46
  batchErrors: n
42
47
  };
43
48
  },
44
49
  commitBatch: async (e) => {
45
- let { results: t, batchErrors: n, manifestCandidate: r } = await a(e, O());
50
+ let { results: t, batchErrors: n, manifestCandidate: r } = await a(e, A());
46
51
  if (t.some((e) => e.error !== void 0) || n.length > 0) return { error: n[0]?.message ?? C.saveError };
47
52
  if (r) {
48
53
  if (b && r.name !== (v?.name ?? "")) return { error: C.manifestNameMismatch };
49
- if ((b || x) && !await k()) return { error: C.manifestImportDeclined };
54
+ if ((b || x) && !await j()) return { error: C.manifestImportDeclined };
50
55
  }
51
56
  try {
52
- let t = e.filter((e) => e.id !== r?.candidateId), n = await Promise.all(t.map(async (e) => ({
57
+ let t = e.filter((e) => e.id !== r?.candidateId), n = new Set(m.filter((e) => e.kind === f.File).map((e) => e.path)), a = await Promise.all(t.map(async (e) => ({
53
58
  path: e.path,
54
59
  bytes: new Uint8Array(await e.file.arrayBuffer()),
55
- mimeType: e.file.type || void 0
60
+ mimeType: e.file.type || void 0,
61
+ isReplacement: n.has(e.path)
56
62
  })));
57
- for (let e of n) g.current.set(e.path, {
63
+ for (let e of a) g.current.set(e.path, {
58
64
  bytes: e.bytes,
59
65
  mimeType: e.mimeType
60
66
  });
61
- return n.length > 0 && h((e) => [...e, ...n.map((e) => ({
67
+ let o = a.filter((e) => !e.isReplacement);
68
+ o.length > 0 && h((e) => [...e, ...o.map((e) => ({
62
69
  path: e.path,
63
70
  name: i(e.path),
64
71
  kind: f.File
65
- }))]), r && (_.current = b ? {
72
+ }))]);
73
+ let s = a.filter((e) => e.isReplacement).map((e) => e.path);
74
+ return s.length > 0 && O((e) => {
75
+ let t = { ...e };
76
+ for (let e of s) t[e] = (t[e] ?? 0) + 1;
77
+ return t;
78
+ }), r && (_.current = b ? {
66
79
  ..._.current,
67
80
  ...r.frontmatter
68
81
  } : r.frontmatter, y({
@@ -90,11 +103,12 @@ var p = "probe", m = ({ files: m, setFiles: h, filesContentRef: g, frontmatterRe
90
103
  extractArchive: o,
91
104
  pickFromFileSystem: w
92
105
  }), [
93
- O,
106
+ A,
107
+ m,
94
108
  b,
95
109
  x,
96
110
  v,
97
- k,
111
+ j,
98
112
  g,
99
113
  _,
100
114
  h,
@@ -104,7 +118,8 @@ var p = "probe", m = ({ files: m, setFiles: h, filesContentRef: g, frontmatterRe
104
118
  w
105
119
  ]),
106
120
  pendingManifestImport: T,
107
- resolveManifestImport: A
121
+ resolveManifestImport: M,
122
+ contentRevisions: D
108
123
  };
109
124
  };
110
125
  //#endregion
@@ -0,0 +1,38 @@
1
+ import { SkillFileContent } from './skill-file-preview';
2
+ /** Discriminant for the kind of error a `useSkillFilePreview` load can produce. */
3
+ export declare enum SkillPreviewErrorKind {
4
+ /** HTTP 403 — the caller lacks permission to read this file. */
5
+ Forbidden = "forbidden",
6
+ /** Any non-403 load failure. */
7
+ Generic = "generic"
8
+ }
9
+ /** Options accepted by `useSkillFilePreview`. */
10
+ export interface UseSkillFilePreviewOptions {
11
+ /**
12
+ * Opaque id of the selected skill file. Changing this resets all state
13
+ * and starts a new load; stale resolutions from the previous id are discarded.
14
+ */
15
+ fileId: string;
16
+ /**
17
+ * App-owned loader; resolves with the raw file bytes when the request
18
+ * succeeds. The hook never constructs a URL or imports a REST client.
19
+ */
20
+ onLoadFile: (fileId: string) => Promise<SkillFileContent>;
21
+ }
22
+ /** State returned by `useSkillFilePreview`. */
23
+ export interface UseSkillFilePreviewResult {
24
+ /** `true` while the async load is in flight. */
25
+ isLoading: boolean;
26
+ /** Resolved file content, or `null` while loading or after an error. */
27
+ content: SkillFileContent | null;
28
+ /** Classified load error, or `null` while loading or after a success. */
29
+ error: SkillPreviewErrorKind | null;
30
+ }
31
+ /**
32
+ * Headless hook that manages the skill-file preview loading lifecycle.
33
+ * Starts a new load on mount and whenever `fileId` changes; classifies errors
34
+ * as `Forbidden` (HTTP 403) or `Generic`; discards settlements from superseded
35
+ * or unmounted loads.
36
+ */
37
+ export declare const useSkillFilePreview: ({ fileId, onLoadFile, }: UseSkillFilePreviewOptions) => UseSkillFilePreviewResult;
38
+ //# sourceMappingURL=useSkillFilePreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSkillFilePreview.d.ts","sourceRoot":"","sources":["../../src/skill/useSkillFilePreview.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,mFAAmF;AACnF,oBAAY,qBAAqB;IAC/B,gEAAgE;IAChE,SAAS,cAAc;IACvB,gCAAgC;IAChC,OAAO,YAAY;CACpB;AAED,iDAAiD;AACjD,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC3D;AAED,+CAA+C;AAC/C,MAAM,WAAW,yBAAyB;IACxC,gDAAgD;IAChD,SAAS,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACjC,yEAAyE;IACzE,KAAK,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACrC;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,yBAGjC,0BAA0B,KAAG,yBAoC/B,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { SkillCatalogListResponseDto, SkillMetadataItemDto } from '@epam/ai-dial-chat-api-client';
2
+ /** Parameters for {@link useSkillsState}. */
3
+ export interface UseSkillsStateParams {
4
+ /** Fetches the aggregate skill listing from the server. */
5
+ listSkills: () => Promise<SkillCatalogListResponseDto>;
6
+ /** Whether the Skills feature is enabled in the current overlay/tenant config. */
7
+ enabled: boolean;
8
+ /** Whether the user session is ready for API calls (auth has settled). */
9
+ ready: boolean;
10
+ }
11
+ /** Result returned by {@link useSkillsState}. */
12
+ export interface UseSkillsStateResult {
13
+ /** Skills in the caller's own bucket. */
14
+ skills: SkillMetadataItemDto[];
15
+ /** Skills in the organisation bucket. */
16
+ publicSkills: SkillMetadataItemDto[];
17
+ /** Skills other users shared with the caller. */
18
+ sharedWithMe: SkillMetadataItemDto[];
19
+ /** True until the aggregate listing has settled. */
20
+ isLoading: boolean;
21
+ /** Rejection reason of the most recent failed listing, or `null`. */
22
+ error: unknown;
23
+ /** Re-reads personal, shared, and organisation skills. */
24
+ refetch: () => Promise<void>;
25
+ /** Upserts a single skill into the shared-with-me list by URL identity. */
26
+ mergeSharedSkill: (item: SkillMetadataItemDto) => void;
27
+ }
28
+ /**
29
+ * Fetches all skill namespaces with a gated single request: clears state
30
+ * immediately when `enabled` is false, defers the fetch until `ready` is true,
31
+ * and exposes `refetch` / `mergeSharedSkill` for manual updates.
32
+ * Does not import any feature-flag hook, auth enum, or app context.
33
+ */
34
+ export declare const useSkillsState: ({ listSkills, enabled, ready, }: UseSkillsStateParams) => UseSkillsStateResult;
35
+ //# sourceMappingURL=useSkillsState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSkillsState.d.ts","sourceRoot":"","sources":["../../../src/skill/useSkillsState/useSkillsState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AAGvC,6CAA6C;AAC7C,MAAM,WAAW,oBAAoB;IACnC,2DAA2D;IAC3D,UAAU,EAAE,MAAM,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACvD,kFAAkF;IAClF,OAAO,EAAE,OAAO,CAAC;IACjB,0EAA0E;IAC1E,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,iDAAiD;AACjD,MAAM,WAAW,oBAAoB;IACnC,yCAAyC;IACzC,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,yCAAyC;IACzC,YAAY,EAAE,oBAAoB,EAAE,CAAC;IACrC,iDAAiD;IACjD,YAAY,EAAE,oBAAoB,EAAE,CAAC;IACrC,oDAAoD;IACpD,SAAS,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,KAAK,EAAE,OAAO,CAAC;IACf,0DAA0D;IAC1D,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,2EAA2E;IAC3E,gBAAgB,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;CACxD;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,iCAI5B,oBAAoB,KAAG,oBAqFzB,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { DisplayAttachment } from '@epam/ai-dial-chat-shared';
2
+ import { SkillFileTreeNode } from '@epam/ai-dial-skill-editor';
3
+ import { SkillFileContent } from '../skill/skill-file-preview';
4
+ /** Presentation state of a supporting-file preview. */
5
+ export declare enum SkillFilePreviewState {
6
+ Idle = "idle",
7
+ Loading = "loading",
8
+ Ready = "ready",
9
+ Error = "error"
10
+ }
11
+ /** Resolved selection and host canvas operations. */
12
+ export interface SkillFilePreviewSyncOptions {
13
+ /** Selected file; absent for manifest or folder views. */
14
+ node?: SkillFileTreeNode;
15
+ /** Already loaded file bytes. */
16
+ content?: SkillFileContent;
17
+ /** Reads already-loaded bytes during reconciliation; never fetches. */
18
+ getContent?: () => SkillFileContent | undefined;
19
+ /** Opaque host resource key. */
20
+ canvasAttachmentId?: string;
21
+ /** Content replacement revision. */
22
+ contentRevision: number;
23
+ /** Currently displayed canvas identity. */
24
+ currentCanvasId?: string;
25
+ /** Whether canvas content is visible. */
26
+ isCanvasOpen: boolean;
27
+ /** Whether canvas content is loading. */
28
+ isCanvasLoading: boolean;
29
+ /** Provider-scoped request authority. */
30
+ beginRequest: () => () => boolean;
31
+ /** Opens content, consulting the predicate before asynchronous writes. */
32
+ openAttachmentCanvas: (attachment: DisplayAttachment, id: string, shouldCommit: () => boolean) => Promise<boolean>;
33
+ /** Closes the currently owned canvas. */
34
+ closeCanvas: () => void;
35
+ }
36
+ /** Synchronizes resolved file selection while preserving shared canvas ownership. */
37
+ export declare const useSkillFilePreviewSyncController: ({ node, content, getContent, canvasAttachmentId, contentRevision, currentCanvasId, isCanvasOpen, isCanvasLoading, beginRequest, openAttachmentCanvas, closeCanvas, }: SkillFilePreviewSyncOptions) => {
38
+ state: SkillFilePreviewState;
39
+ retry: () => void;
40
+ };
41
+ //# sourceMappingURL=useSkillFilePreviewSyncController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSkillFilePreviewSyncController.d.ts","sourceRoot":"","sources":["../../src/skill-editor/useSkillFilePreviewSyncController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAQpE,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,6BAA6B,CAAC;AAErC,uDAAuD;AACvD,oBAAY,qBAAqB;IAC/B,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AACD,qDAAqD;AACrD,MAAM,WAAW,2BAA2B;IAC1C,0DAA0D;IAC1D,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,iCAAiC;IACjC,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,gBAAgB,GAAG,SAAS,CAAC;IAChD,gCAAgC;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oCAAoC;IACpC,eAAe,EAAE,MAAM,CAAC;IACxB,2CAA2C;IAC3C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yCAAyC;IACzC,YAAY,EAAE,OAAO,CAAC;IACtB,yCAAyC;IACzC,eAAe,EAAE,OAAO,CAAC;IACzB,yCAAyC;IACzC,YAAY,EAAE,MAAM,MAAM,OAAO,CAAC;IAClC,0EAA0E;IAC1E,oBAAoB,EAAE,CACpB,UAAU,EAAE,iBAAiB,EAC7B,EAAE,EAAE,MAAM,EACV,YAAY,EAAE,MAAM,OAAO,KACxB,OAAO,CAAC,OAAO,CAAC,CAAC;IACtB,yCAAyC;IACzC,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AACD,qFAAqF;AACrF,eAAO,MAAM,iCAAiC,GAAI,sKAY/C,2BAA2B;;;CA0F7B,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { skillFileToAttachment as e } from "../skill/skill-file-preview.js";
2
+ import { useCallback as t, useEffect as n, useLayoutEffect as r, useRef as i, useState as a } from "react";
3
+ //#region src/skill-editor/useSkillFilePreviewSyncController.ts
4
+ var o = /* @__PURE__ */ function(e) {
5
+ return e.Idle = "idle", e.Loading = "loading", e.Ready = "ready", e.Error = "error", e;
6
+ }({}), s = ({ node: o, content: s, getContent: c, canvasAttachmentId: l, contentRevision: u, currentCanvasId: d, isCanvasOpen: f, isCanvasLoading: p, beginRequest: m, openAttachmentCanvas: h, closeCanvas: g }) => {
7
+ let [_, v] = a(), [y, b] = a(0), x = i(void 0);
8
+ r(() => () => {
9
+ let e = x.current;
10
+ e && (e.valid = !1, e.owns() && g(), x.current = void 0);
11
+ }, [g]), n(() => {
12
+ let t = x.current, n = c ? c() : s;
13
+ if (!o || !n || !l) {
14
+ t && (t.valid = !1, t.owns() && g(), x.current = void 0);
15
+ return;
16
+ }
17
+ if (t?.id === l && t.revision === u && t.retry === y) return;
18
+ t && (t.valid = !1);
19
+ let r = {
20
+ id: l,
21
+ revision: u,
22
+ retry: y,
23
+ valid: !0,
24
+ owns: m()
25
+ };
26
+ x.current = r, v(void 0);
27
+ let i = () => r.valid && r.owns();
28
+ (async () => {
29
+ let t = !1;
30
+ try {
31
+ t = await h(e(o, n), l, i);
32
+ } catch {
33
+ t = !1;
34
+ }
35
+ i() && !t && v({
36
+ id: l,
37
+ revision: u
38
+ });
39
+ })();
40
+ }, [
41
+ o,
42
+ s,
43
+ c,
44
+ l,
45
+ u,
46
+ y,
47
+ m,
48
+ h,
49
+ g
50
+ ]);
51
+ let S = t(() => b((e) => e + 1), []);
52
+ return {
53
+ state: !o || !s && !c || !l ? "idle" : _?.id === l && _.revision === u ? "error" : d === l && f && !p ? "ready" : "loading",
54
+ retry: S
55
+ };
56
+ };
57
+ //#endregion
58
+ export { o as SkillFilePreviewState, s as useSkillFilePreviewSyncController };
@@ -0,0 +1,23 @@
1
+ import { AttachResult } from '@epam/ai-dial-chat-shared';
2
+ import { DialFile } from '@epam/ai-dial-react-file-manager';
3
+ /** Host materialization and notification callbacks. */
4
+ export interface UseSkillFileSystemPickerOptions<T> {
5
+ /** Converts a selected file into the host's staged entry. */
6
+ materializeFile: (file: DialFile, signal: AbortSignal) => Promise<T>;
7
+ /** Reports a failure of the current selection only. */
8
+ onError: (error: unknown) => void;
9
+ }
10
+ /** Promise-based file selection controller. */
11
+ export interface UseSkillFileSystemPickerResult<T> {
12
+ /** Whether the selection modal is open. */
13
+ isOpen: boolean;
14
+ /** Starts a selection, cancelling any previous attempt. */
15
+ pickFromFileSystem: () => Promise<T[] | undefined>;
16
+ /** Materializes selected files in selection order. */
17
+ handleAttach: (result: AttachResult) => void;
18
+ /** Cancels the current attempt and closes the modal. */
19
+ handleClose: () => void;
20
+ }
21
+ /** Owns selection lifetime so obsolete downloads cannot settle a newer pick. */
22
+ export declare const useSkillFileSystemPicker: <T>({ materializeFile, onError, }: UseSkillFileSystemPickerOptions<T>) => UseSkillFileSystemPickerResult<T>;
23
+ //# sourceMappingURL=useSkillFileSystemPicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSkillFileSystemPicker.d.ts","sourceRoot":"","sources":["../../../src/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAIjE,uDAAuD;AACvD,MAAM,WAAW,+BAA+B,CAAC,CAAC;IAChD,6DAA6D;IAC7D,eAAe,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IACrE,uDAAuD;IACvD,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACnC;AAED,+CAA+C;AAC/C,MAAM,WAAW,8BAA8B,CAAC,CAAC;IAC/C,2CAA2C;IAC3C,MAAM,EAAE,OAAO,CAAC;IAChB,2DAA2D;IAC3D,kBAAkB,EAAE,MAAM,OAAO,CAAC,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACnD,sDAAsD;IACtD,YAAY,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC7C,wDAAwD;IACxD,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAQD,gFAAgF;AAChF,eAAO,MAAM,wBAAwB,GAAI,CAAC,EAAE,+BAGzC,+BAA+B,CAAC,CAAC,CAAC,KAAG,8BAA8B,CAAC,CAAC,CAoDvE,CAAC"}