@epam/ai-dial-chat-shared 1.3.0-dev.34 → 1.3.0-dev.37

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 (223) hide show
  1. package/components/ConfirmationDialog/ConfirmationDialog.d.ts +41 -0
  2. package/components/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -0
  3. package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.d.ts +33 -0
  4. package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.d.ts.map +1 -0
  5. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.d.ts +33 -0
  6. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.d.ts.map +1 -0
  7. package/components/ConfirmationView/ConfirmationFooter.d.ts +41 -0
  8. package/components/ConfirmationView/ConfirmationFooter.d.ts.map +1 -0
  9. package/components/ConfirmationView/ConfirmationView.d.ts +57 -0
  10. package/components/ConfirmationView/ConfirmationView.d.ts.map +1 -0
  11. package/components/CopyButton/CopyButton.d.ts +19 -0
  12. package/components/CopyButton/CopyButton.d.ts.map +1 -0
  13. package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts +41 -0
  14. package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts.map +1 -0
  15. package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts +49 -0
  16. package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts.map +1 -0
  17. package/components/DeploymentIcon/DeploymentIcon.d.ts +36 -0
  18. package/components/DeploymentIcon/DeploymentIcon.d.ts.map +1 -0
  19. package/components/EntityHeader/EntityHeader.d.ts +38 -0
  20. package/components/EntityHeader/EntityHeader.d.ts.map +1 -0
  21. package/components/EntityTypeLabel/EntityTypeLabel.d.ts +18 -0
  22. package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +1 -0
  23. package/components/FeaturedChip/FeaturedChip.d.ts +16 -0
  24. package/components/FeaturedChip/FeaturedChip.d.ts.map +1 -0
  25. package/components/InitialsAvatar/InitialsAvatar.d.ts +15 -0
  26. package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -0
  27. package/components/ItemHeader/ItemHeader.d.ts +36 -0
  28. package/components/ItemHeader/ItemHeader.d.ts.map +1 -0
  29. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +53 -0
  30. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -0
  31. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts +7 -0
  32. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +1 -0
  33. package/components/MarkdownRenderer/MDMessageViewer.d.ts +62 -0
  34. package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -0
  35. package/components/MarkdownRenderer/MarkdownRenderer.d.ts +137 -0
  36. package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
  37. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts +18 -0
  38. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts.map +1 -0
  39. package/components/MarkdownRenderer/PlainTextRenderer.d.ts +39 -0
  40. package/components/MarkdownRenderer/PlainTextRenderer.d.ts.map +1 -0
  41. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +47 -0
  42. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -0
  43. package/components/MarkdownRenderer/Table/TableHeader.d.ts +22 -0
  44. package/components/MarkdownRenderer/Table/TableHeader.d.ts.map +1 -0
  45. package/components/MarkdownRenderer/Table/table-serialization.d.ts +16 -0
  46. package/components/MarkdownRenderer/Table/table-serialization.d.ts.map +1 -0
  47. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts +27 -0
  48. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts.map +1 -0
  49. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +9 -0
  50. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +1 -0
  51. package/components/MarkdownRenderer/ThinkingShimmer.d.ts +17 -0
  52. package/components/MarkdownRenderer/ThinkingShimmer.d.ts.map +1 -0
  53. package/components/MarkdownRenderer/markdown-class-names.d.ts +10 -0
  54. package/components/MarkdownRenderer/markdown-class-names.d.ts.map +1 -0
  55. package/components/MarkdownRenderer/markdown-whitespace.d.ts +15 -0
  56. package/components/MarkdownRenderer/markdown-whitespace.d.ts.map +1 -0
  57. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +25 -0
  58. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +1 -0
  59. package/components/PanelEmptyState/PanelEmptyState.d.ts +22 -0
  60. package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -0
  61. package/components/ResourceSummary/ResourceSummary.d.ts +49 -0
  62. package/components/ResourceSummary/ResourceSummary.d.ts.map +1 -0
  63. package/components/TextRefinementField/TextRefinementField.d.ts +31 -0
  64. package/components/TextRefinementField/TextRefinementField.d.ts.map +1 -0
  65. package/constants/breakpoint.d.ts +9 -0
  66. package/constants/breakpoint.d.ts.map +1 -0
  67. package/constants/dial.d.ts +5 -0
  68. package/constants/dial.d.ts.map +1 -0
  69. package/constants/entity-colors.d.ts +6 -0
  70. package/constants/entity-colors.d.ts.map +1 -0
  71. package/constants/icon.d.ts +14 -0
  72. package/constants/icon.d.ts.map +1 -0
  73. package/constants/markdown-editor.d.ts +2 -0
  74. package/constants/markdown-editor.d.ts.map +1 -0
  75. package/constants/mime-types.d.ts +27 -0
  76. package/constants/mime-types.d.ts.map +1 -0
  77. package/constants/public-class-names.d.ts +13 -0
  78. package/constants/public-class-names.d.ts.map +1 -0
  79. package/constants/resizable-fields.d.ts +5 -0
  80. package/constants/resizable-fields.d.ts.map +1 -0
  81. package/constants/select-list.d.ts +4 -0
  82. package/constants/select-list.d.ts.map +1 -0
  83. package/constants/tag-input.d.ts +2 -0
  84. package/constants/tag-input.d.ts.map +1 -0
  85. package/entry-points/file-manager.d.ts +5 -0
  86. package/entry-points/file-manager.d.ts.map +1 -0
  87. package/entry-points/markdown.d.ts +18 -0
  88. package/entry-points/markdown.d.ts.map +1 -0
  89. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +52 -0
  90. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -0
  91. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +89 -0
  92. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -0
  93. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +17 -0
  94. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -0
  95. package/file-manager/attach-result.d.ts +9 -0
  96. package/file-manager/attach-result.d.ts.map +1 -0
  97. package/file-manager/file-manager-controller.d.ts +121 -0
  98. package/file-manager/file-manager-controller.d.ts.map +1 -0
  99. package/file-manager/file-manager-variant.d.ts +21 -0
  100. package/file-manager/file-manager-variant.d.ts.map +1 -0
  101. package/file-manager/file-upload-validation.d.ts +8 -0
  102. package/file-manager/file-upload-validation.d.ts.map +1 -0
  103. package/file-manager/index.d.ts +10 -0
  104. package/file-manager/index.d.ts.map +1 -0
  105. package/file-manager/labels.d.ts +156 -0
  106. package/file-manager/labels.d.ts.map +1 -0
  107. package/file-manager/path.d.ts +12 -0
  108. package/file-manager/path.d.ts.map +1 -0
  109. package/file-manager/upload-batch.d.ts +29 -0
  110. package/file-manager/upload-batch.d.ts.map +1 -0
  111. package/file-manager/upload-queue.d.ts +5 -0
  112. package/file-manager/upload-queue.d.ts.map +1 -0
  113. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +27 -0
  114. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +1 -0
  115. package/file-manager.d.ts +2 -506
  116. package/hooks/useAvailableHeightCap.d.ts +30 -0
  117. package/hooks/useAvailableHeightCap.d.ts.map +1 -0
  118. package/hooks/useCodeCopy.d.ts +6 -0
  119. package/hooks/useCodeCopy.d.ts.map +1 -0
  120. package/hooks/useCollapsedText.d.ts +27 -0
  121. package/hooks/useCollapsedText.d.ts.map +1 -0
  122. package/hooks/useHorizontalOverflow.d.ts +21 -0
  123. package/hooks/useHorizontalOverflow.d.ts.map +1 -0
  124. package/hooks/useIsMobile.d.ts +3 -0
  125. package/hooks/useIsMobile.d.ts.map +1 -0
  126. package/hooks/useStreamedMarkdownContent.d.ts +3 -0
  127. package/hooks/useStreamedMarkdownContent.d.ts.map +1 -0
  128. package/hooks/useTextRefinement.d.ts +44 -0
  129. package/hooks/useTextRefinement.d.ts.map +1 -0
  130. package/hooks/useUnsavedChangesGuard.d.ts +14 -0
  131. package/hooks/useUnsavedChangesGuard.d.ts.map +1 -0
  132. package/index.d.ts +77 -3167
  133. package/index.d.ts.map +1 -0
  134. package/markdown.d.ts +2 -465
  135. package/models/annotation.d.ts +143 -0
  136. package/models/annotation.d.ts.map +1 -0
  137. package/models/application-visualizer.d.ts +67 -0
  138. package/models/application-visualizer.d.ts.map +1 -0
  139. package/models/auth.d.ts +26 -0
  140. package/models/auth.d.ts.map +1 -0
  141. package/models/chat.d.ts +407 -0
  142. package/models/chat.d.ts.map +1 -0
  143. package/models/conversation-classification.d.ts +9 -0
  144. package/models/conversation-classification.d.ts.map +1 -0
  145. package/models/conversation-transfer.d.ts +96 -0
  146. package/models/conversation-transfer.d.ts.map +1 -0
  147. package/models/custom-visualizer.d.ts +61 -0
  148. package/models/custom-visualizer.d.ts.map +1 -0
  149. package/models/deployment-configuration.d.ts +55 -0
  150. package/models/deployment-configuration.d.ts.map +1 -0
  151. package/models/deployment-features.d.ts +17 -0
  152. package/models/deployment-features.d.ts.map +1 -0
  153. package/models/deployment.d.ts +31 -0
  154. package/models/deployment.d.ts.map +1 -0
  155. package/models/dial-model.d.ts +19 -0
  156. package/models/dial-model.d.ts.map +1 -0
  157. package/models/entity.d.ts +15 -0
  158. package/models/entity.d.ts.map +1 -0
  159. package/models/import-export.d.ts +23 -0
  160. package/models/import-export.d.ts.map +1 -0
  161. package/models/locale.d.ts +19 -0
  162. package/models/locale.d.ts.map +1 -0
  163. package/models/text-refinement.d.ts +18 -0
  164. package/models/text-refinement.d.ts.map +1 -0
  165. package/models/theme.d.ts +36 -0
  166. package/models/theme.d.ts.map +1 -0
  167. package/models/tool-menu-item.d.ts +13 -0
  168. package/models/tool-menu-item.d.ts.map +1 -0
  169. package/package.json +1 -1
  170. package/types/attachment.d.ts +25 -0
  171. package/types/attachment.d.ts.map +1 -0
  172. package/types/code-editor.d.ts +8 -0
  173. package/types/code-editor.d.ts.map +1 -0
  174. package/types/entity-type.d.ts +10 -0
  175. package/types/entity-type.d.ts.map +1 -0
  176. package/types/file-manager-node.d.ts +17 -0
  177. package/types/file-manager-node.d.ts.map +1 -0
  178. package/types/mime-type.d.ts +59 -0
  179. package/types/mime-type.d.ts.map +1 -0
  180. package/utils/annotation.d.ts +29 -0
  181. package/utils/annotation.d.ts.map +1 -0
  182. package/utils/avatar-color.d.ts +10 -0
  183. package/utils/avatar-color.d.ts.map +1 -0
  184. package/utils/build-css-vars.d.ts +4 -0
  185. package/utils/build-css-vars.d.ts.map +1 -0
  186. package/utils/copy-to-clipboard.d.ts +18 -0
  187. package/utils/copy-to-clipboard.d.ts.map +1 -0
  188. package/utils/entity-field-limits.d.ts +11 -0
  189. package/utils/entity-field-limits.d.ts.map +1 -0
  190. package/utils/entity-type.d.ts +5 -0
  191. package/utils/entity-type.d.ts.map +1 -0
  192. package/utils/file-download.d.ts +21 -0
  193. package/utils/file-download.d.ts.map +1 -0
  194. package/utils/format-file-size.d.ts +3 -0
  195. package/utils/format-file-size.d.ts.map +1 -0
  196. package/utils/format-last-used.d.ts +3 -0
  197. package/utils/format-last-used.d.ts.map +1 -0
  198. package/utils/format-price.d.ts +7 -0
  199. package/utils/format-price.d.ts.map +1 -0
  200. package/utils/generate-uuid.d.ts +3 -0
  201. package/utils/generate-uuid.d.ts.map +1 -0
  202. package/utils/initials.d.ts +3 -0
  203. package/utils/initials.d.ts.map +1 -0
  204. package/utils/is-audio-transcription-supported.d.ts +3 -0
  205. package/utils/is-audio-transcription-supported.d.ts.map +1 -0
  206. package/utils/is-skill-selection-unsupported.d.ts +3 -0
  207. package/utils/is-skill-selection-unsupported.d.ts.map +1 -0
  208. package/utils/latex.d.ts +21 -0
  209. package/utils/latex.d.ts.map +1 -0
  210. package/utils/merge-class.d.ts +4 -0
  211. package/utils/merge-class.d.ts.map +1 -0
  212. package/utils/message-attachment-to-display.d.ts +22 -0
  213. package/utils/message-attachment-to-display.d.ts.map +1 -0
  214. package/utils/message.d.ts +4 -0
  215. package/utils/message.d.ts.map +1 -0
  216. package/utils/mime-type.d.ts +22 -0
  217. package/utils/mime-type.d.ts.map +1 -0
  218. package/utils/prompt-variables.d.ts +62 -0
  219. package/utils/prompt-variables.d.ts.map +1 -0
  220. package/utils/string-utils.d.ts +11 -0
  221. package/utils/string-utils.d.ts.map +1 -0
  222. package/utils/syntax-highlighting.d.ts +8 -0
  223. package/utils/syntax-highlighting.d.ts.map +1 -0
@@ -0,0 +1,5 @@
1
+ import { BadgeColor } from '@epam/ai-dial-ui-kit';
2
+ import { CatalogEntityType } from '../types/entity-type';
3
+ /** Returns the kit badge colour for an entity type — the same visual tokens as `ENTITY_TYPE_COLOR`. */
4
+ export declare const getEntityTypeBadgeColor: (type: CatalogEntityType) => BadgeColor;
5
+ //# sourceMappingURL=entity-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-type.d.ts","sourceRoot":"","sources":["../../src/utils/entity-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAOzD,uGAAuG;AACvG,eAAO,MAAM,uBAAuB,GAClC,MAAM,iBAAiB,KACtB,UAcF,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Returns `name` with a file extension appended when it lacks one.
3
+ * Priority: extension already present on `name` → extension from `contentType` via `MIME_TYPE_EXT_MAP` → extension from the last segment of `url`.
4
+ * A trailing `.` in `name` or the `url` segment is only trusted when it looks
5
+ * like a real extension (letters/digits only) — otherwise it is treated as
6
+ * ordinary punctuation (e.g. a title such as `"Report vs. Summary"`).
7
+ */
8
+ export declare const ensureDownloadFilename: (name: string, url: string | undefined, contentType: string | undefined) => string;
9
+ /** Returns the file extension (without a leading dot) for a fenced-code-block language identifier, defaulting to `txt`. */
10
+ export declare const getFileExtensionForLanguage: (language: string) => string;
11
+ /** Creates a temporary anchor element and clicks it to trigger a browser download for `href`. */
12
+ export declare const triggerAnchorDownload: (href: string, filename: string) => void;
13
+ /** Triggers a browser download of `blob`, using a temporary object URL that is revoked afterward. */
14
+ export declare const triggerBlobDownload: (blob: Blob, filename: string) => void;
15
+ /** Decodes a base64 string into raw bytes, or `undefined` if the string is not valid base64. */
16
+ export declare const tryBase64ToBytes: (base64: string) => Uint8Array | undefined;
17
+ /** Decodes an inline `data` payload into a `Blob` of `mimeType`, treating the payload as raw UTF-8 text when it is not valid base64. */
18
+ export declare const base64ToBlob: (data: string, mimeType: string) => Blob;
19
+ /** Triggers a browser download of `content` as a text file named `filename`. */
20
+ export declare const downloadTextFile: (content: string, filename: string, mimeType?: string) => void;
21
+ //# sourceMappingURL=file-download.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-download.d.ts","sourceRoot":"","sources":["../../src/utils/file-download.ts"],"names":[],"mappings":"AAkBA;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GACjC,MAAM,MAAM,EACZ,KAAK,MAAM,GAAG,SAAS,EACvB,aAAa,MAAM,GAAG,SAAS,KAC9B,MAeF,CAAC;AA2CF,2HAA2H;AAC3H,eAAO,MAAM,2BAA2B,GAAI,UAAU,MAAM,KAAG,MACT,CAAC;AASvD,iGAAiG;AACjG,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,EAAE,UAAU,MAAM,KAAG,IAWtE,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,mBAAmB,GAAI,MAAM,IAAI,EAAE,UAAU,MAAM,KAAG,IAIlE,CAAC;AAEF,gGAAgG;AAChG,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,KAAG,UAAU,GAAG,SAW9D,CAAC;AAEF,wIAAwI;AACxI,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,UAAU,MAAM,KAAG,IAG7D,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,gBAAgB,GAC3B,SAAS,MAAM,EACf,UAAU,MAAM,EAChB,iBAAqC,KACpC,IAEF,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Formats a byte count as a human-readable size string (e.g. `840 KB`, `2.4 MB`). */
2
+ export declare const formatFileSize: (bytes: number) => string;
3
+ //# sourceMappingURL=format-file-size.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-file-size.d.ts","sourceRoot":"","sources":["../../src/utils/format-file-size.ts"],"names":[],"mappings":"AAIA,sFAAsF;AACtF,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,MAQ9C,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Converts a timestamp to a relative time string (e.g. `'5 min ago'`, `'2 days ago'`); returns an empty string when the input is falsy or invalid. */
2
+ export declare const formatLastUsed: (timestamp?: number) => string;
3
+ //# sourceMappingURL=format-last-used.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-last-used.d.ts","sourceRoot":"","sources":["../../src/utils/format-last-used.ts"],"names":[],"mappings":"AAAA,uJAAuJ;AACvJ,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,KAAG,MA2BnD,CAAC"}
@@ -0,0 +1,7 @@
1
+ /** Formats an accumulated USD cost with at most two decimals (for example, `$0.79`). */
2
+ export declare const formatCost: (value: number) => string;
3
+ /** Formats an amount as USD, keeping up to six significant digits for sub-dollar values (e.g. `$3`, `$0.3`, `$0.00000015`). */
4
+ export declare const formatPrice: (value: number) => string;
5
+ /** Formats a per-unit price string for display, e.g. `$3/M tokens` or `$0.15/M chars without whitespace`. */
6
+ export declare const formatUnitPrice: (price: string | undefined, unit: string | undefined) => string | undefined;
7
+ //# sourceMappingURL=format-price.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-price.d.ts","sourceRoot":"","sources":["../../src/utils/format-price.ts"],"names":[],"mappings":"AAoCA,wFAAwF;AACxF,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,MACb,CAAC;AAE/B,+HAA+H;AAC/H,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,MAK3C,CAAC;AASF,6GAA6G;AAC7G,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,GAAG,SAAS,EACzB,MAAM,MAAM,GAAG,SAAS,KACvB,MAAM,GAAG,SAaX,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Returns a UUID v4 string, with a fallback for non-secure browser contexts (HTTP deployments). */
2
+ export declare const generateUUID: () => string;
3
+ //# sourceMappingURL=generate-uuid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-uuid.d.ts","sourceRoot":"","sources":["../../src/utils/generate-uuid.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,eAAO,MAAM,YAAY,QAAO,MAY/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Returns 1–2 uppercase initials derived from a display name, or `'?'` when the name is empty. */
2
+ export declare const extractInitials: (name: string) => string;
3
+ //# sourceMappingURL=initials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initials.d.ts","sourceRoot":"","sources":["../../src/utils/initials.ts"],"names":[],"mappings":"AAGA,mGAAmG;AACnG,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAa9C,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Returns `true` when `types` contains a wildcard or any audio MIME type; `false` otherwise. */
2
+ export declare const isAudioTranscriptionSupported: (types?: string[]) => boolean;
3
+ //# sourceMappingURL=is-audio-transcription-supported.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-audio-transcription-supported.d.ts","sourceRoot":"","sources":["../../src/utils/is-audio-transcription-supported.ts"],"names":[],"mappings":"AAKA,iGAAiG;AACjG,eAAO,MAAM,6BAA6B,GAAI,QAAQ,MAAM,EAAE,KAAG,OAGrD,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Whether a selected skill lacks explicitly confirmed support. */
2
+ export declare const isSkillSelectionUnsupported: (skillUrl: string | null | undefined, isSkillsSupported: boolean | undefined) => boolean;
3
+ //# sourceMappingURL=is-skill-selection-unsupported.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-skill-selection-unsupported.d.ts","sourceRoot":"","sources":["../../src/utils/is-skill-selection-unsupported.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,eAAO,MAAM,2BAA2B,GACtC,UAAU,MAAM,GAAG,IAAI,GAAG,SAAS,EACnC,mBAAmB,OAAO,GAAG,SAAS,KACrC,OAAkE,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Escapes currency-looking dollar signs and converts single-dollar LaTeX math delimiters
3
+ * (`$...$`) to the double-dollar form (`$$...$$`) that `remark-math`/KaTeX render, leaving
4
+ * code blocks and already-escaped `\$` untouched. Display blocks are re-fenced so a
5
+ * formula that cannot be typeset stays inside its own delimiters instead of consuming the
6
+ * rest of the message.
7
+ *
8
+ * Delimiters are paired in a single left-to-right walk rather than by an independent
9
+ * currency pass, because declining to open a formula on one `$` while leaving its partner
10
+ * free to open the next one shifts every pairing along the line — which is how
11
+ * `$0 < x$ and then $y \in H$` used to typeset the English words and print the formulas.
12
+ * For the same reason a currency-shaped opening is weighed against the span it would
13
+ * open, not against the few characters after the amount: `$1 - \frac{3}{p} < 1$` reads as
14
+ * a price for one character and as LaTeX for the rest of the line.
15
+ *
16
+ * The `\(...\)`/`\[...\]` delimiters LLMs commonly emit are deliberately left as-is: they are
17
+ * recognized directly by `micromark-extension-llm-math`, which the consuming app's bundler
18
+ * config aliases in place of the default `micromark-extension-math` used by `remark-math`.
19
+ */
20
+ export declare const preprocessLaTeX: (content: string) => string;
21
+ //# sourceMappingURL=latex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"latex.d.ts","sourceRoot":"","sources":["../../src/utils/latex.ts"],"names":[],"mappings":"AA0SA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,MAoEjD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { default as classNames } from 'classnames';
2
+ /** Merge class names (classnames → tailwind-merge). */
3
+ export declare function mergeClasses(...inputs: Parameters<typeof classNames>): string;
4
+ //# sourceMappingURL=merge-class.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge-class.d.ts","sourceRoot":"","sources":["../../src/utils/merge-class.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AAcpC,uDAAuD;AACvD,wBAAgB,YAAY,CAAC,GAAG,MAAM,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,MAAM,CAE7E"}
@@ -0,0 +1,22 @@
1
+ import { DisplayAttachment, MessageAttachment } from '../models/chat';
2
+ /**
3
+ * Optional app-owned callbacks used to resolve display URLs for an attachment.
4
+ * When omitted, the mapper falls back to the attachment's own `url` (or a
5
+ * synthesized `data:` URL when only inline base64 `data` is present).
6
+ */
7
+ export interface AttachmentDisplayResolvers {
8
+ /** Resolves the image preview URL for an attachment that has a remote `url`. */
9
+ resolvePreviewUrl?(dto: MessageAttachment): string | undefined;
10
+ /** Resolves the audio playback URL for an attachment that has a remote `url`. */
11
+ resolvePlayUrl?(dto: MessageAttachment): string | undefined;
12
+ }
13
+ /**
14
+ * Maps a {@link MessageAttachment} DTO to the display-only {@link DisplayAttachment}
15
+ * model used by UI components. This is a pure function: any app/host-specific URL
16
+ * resolution (catalog icon URLs, DIAL file download URLs, etc.) is injected through
17
+ * the optional `resolvers` argument rather than performed here.
18
+ */
19
+ export declare const messageAttachmentToDisplayAttachment: (dto: MessageAttachment, resolvers?: AttachmentDisplayResolvers) => DisplayAttachment;
20
+ /** Maps a list of {@link MessageAttachment} DTOs to display-only attachment models. Entries with duplicate `id` values are deduplicated — first occurrence wins. */
21
+ export declare const messageAttachmentsToDisplayAttachments: (dtos: MessageAttachment[] | undefined, resolvers?: AttachmentDisplayResolvers) => DisplayAttachment[];
22
+ //# sourceMappingURL=message-attachment-to-display.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-attachment-to-display.d.ts","sourceRoot":"","sources":["../../src/utils/message-attachment-to-display.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAC;AAIxB;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,gFAAgF;IAChF,iBAAiB,CAAC,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;IAC/D,iFAAiF;IACjF,cAAc,CAAC,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;CAC7D;AAYD;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC,GAC/C,KAAK,iBAAiB,EACtB,YAAW,0BAA+B,KACzC,iBA4CF,CAAC;AAEF,oKAAoK;AACpK,eAAO,MAAM,sCAAsC,GACjD,MAAM,iBAAiB,EAAE,GAAG,SAAS,EACrC,YAAW,0BAA+B,KACzC,iBAAiB,EAYnB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Message, StatusMessage } from '../models/chat';
2
+ /** Returns `true` when `msg` is a `StatusMessage`. */
3
+ export declare const isStatusMessage: (msg: Message | StatusMessage) => msg is StatusMessage;
4
+ //# sourceMappingURL=message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/utils/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/E,sDAAsD;AACtD,eAAO,MAAM,eAAe,GAC1B,KAAK,OAAO,GAAG,aAAa,KAC3B,GAAG,IAAI,aAAgD,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { AttachmentType } from '../types/attachment';
2
+ import { MIMEType } from '../types/mime-type';
3
+ /** Lowercases a MIME type and strips its parameters, e.g. `'Application/JSON; charset=utf-8'` -> `'application/json'`. */
4
+ export declare const getBaseMimeType: (mimeType: string) => string;
5
+ /**
6
+ * Returns the canonical spelling of a MIME type: parameters stripped, lowercased,
7
+ * and known aliases resolved through `MIME_TYPE_ALIASES` (`'text/json'` ->
8
+ * `'application/json'`). Wildcards and unrecognized types are returned unchanged
9
+ * apart from that normalization.
10
+ */
11
+ export declare const normalizeMimeType: (mimeType: string) => string;
12
+ /** Strips a trailing `?query` string and/or `#fragment` from a URL or path. */
13
+ export declare const stripUrlQueryAndFragment: (url: string) => string;
14
+ /**
15
+ * Infers a `MIMEType` from a file path's extension, ignoring any query string
16
+ * or `#` fragment. Returns `undefined` when the path has no extension or the
17
+ * extension is not recognized.
18
+ */
19
+ export declare const inferMimeTypeFromPath: (path: string) => MIMEType | undefined;
20
+ /** Classifies a MIME type into an `AttachmentType` by prefix (`image/*` / `audio/*`), defaulting to `File`. */
21
+ export declare const getAttachmentTypeFromMime: (mimeType: string | undefined) => AttachmentType;
22
+ //# sourceMappingURL=mime-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mime-type.d.ts","sourceRoot":"","sources":["../../src/utils/mime-type.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAoF9C,0HAA0H;AAC1H,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,KAAG,MACN,CAAC;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,KAAG,MAGpD,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,wBAAwB,GAAI,KAAK,MAAM,KAAG,MACjC,CAAC;AAEvB;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,KAAG,QAAQ,GAAG,SAM/D,CAAC;AAEF,+GAA+G;AAC/G,eAAO,MAAM,yBAAyB,GACpC,UAAU,MAAM,GAAG,SAAS,KAC3B,cAIF,CAAC"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Matches a `{{name}}` or `{{name|defaultValue}}` placeholder. The inner run
3
+ * excludes braces so a stray `{{` cannot swallow the rest of the document, and
4
+ * it must be non-empty so a literal `{{}}` stays plain text.
5
+ */
6
+ export declare const PROMPT_PARAM_PATTERN: RegExp;
7
+ /** Class applied to each highlighted placeholder. The host owns its styling. */
8
+ export declare const PROMPT_VARIABLE_CLASS_NAME = "cat-prompt-variable";
9
+ /** Minimal hast shapes this plugin reads and writes. */
10
+ interface HastNode {
11
+ type: string;
12
+ tagName?: string;
13
+ value?: string;
14
+ properties?: Record<string, unknown>;
15
+ children?: HastNode[];
16
+ }
17
+ /**
18
+ * Rehype plugin that wraps every `{{name}}` placeholder in a span so it can be
19
+ * styled apart from the surrounding prose. Placeholders inside code are left
20
+ * alone.
21
+ *
22
+ * The spans are built as hast nodes rather than injected as raw HTML, so a
23
+ * placeholder that contains markup cannot escape into the document.
24
+ */
25
+ export declare const rehypePromptVariables: () => (tree: HastNode) => void;
26
+ /**
27
+ * Separator between a parameter's name and its default value inside a token.
28
+ * `{{language|Spanish}}` names the parameter `language` and offers `Spanish`
29
+ * as its starting value. It is the form the classic chat's prompt editor
30
+ * documents, so prompts authored there carry it.
31
+ */
32
+ export declare const PROMPT_PARAM_DEFAULT_SEPARATOR = "|";
33
+ /** A `{{name}}` or `{{name|defaultValue}}` parameter read out of a prompt. */
34
+ export interface PromptParameter {
35
+ /** The parameter's name — the label a host shows, and the key its value is read by. */
36
+ name: string;
37
+ /**
38
+ * The value the field starts with, when the token carried one. Absent for a
39
+ * bare `{{name}}` token.
40
+ */
41
+ defaultValue?: string;
42
+ }
43
+ /**
44
+ * Returns the distinct parameters found in `content`, in first-occurrence
45
+ * order. Single-brace sequences (e.g. `{name}`) are not parameters. When one
46
+ * name appears more than once the first occurrence decides the default, so the
47
+ * parameter is still asked for once.
48
+ */
49
+ export declare const extractPromptParams: (content: string) => PromptParameter[];
50
+ /**
51
+ * Replaces every parameter occurrence in `content` with the matching entry in
52
+ * `values` (keyed by parameter name), falling back to the token's own default
53
+ * value. A token with neither is left unchanged.
54
+ */
55
+ export declare const resolvePromptParams: (content: string, values: Record<string, string>) => string;
56
+ /**
57
+ * Returns the starting values for `parameters`, keyed by name — one entry per
58
+ * parameter that carries a default, and nothing for the rest.
59
+ */
60
+ export declare const buildPromptParamDefaults: (parameters: PromptParameter[]) => Record<string, string>;
61
+ export {};
62
+ //# sourceMappingURL=prompt-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-variables.d.ts","sourceRoot":"","sources":["../../src/utils/prompt-variables.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,QAAsB,CAAC;AAExD,gFAAgF;AAChF,eAAO,MAAM,0BAA0B,wBAAwB,CAAC;AAEhE,wDAAwD;AACxD,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;CACvB;AAoDD;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,SAAU,MAAM,QAAQ,SAEzD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAElD,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC9B,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAkBD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,MAAM,KAAG,eAAe,EAYpE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAC9B,SAAS,MAAM,EACf,QAAQ,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC7B,MAIC,CAAC;AAEL;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GACnC,YAAY,eAAe,EAAE,KAC5B,MAAM,CAAC,MAAM,EAAE,MAAM,CAMvB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /** Characters prohibited in conversation names: tab, ", :, ;, /, \, ,, =, {, }, %, & */
2
+ export declare const PROHIBITED_CONVERSATION_NAME_CHARS_RE: RegExp;
3
+ /** Strips characters DIAL Core rejects in a conversation name. */
4
+ export declare const sanitizeConversationName: (name: string) => string;
5
+ /** Strips trailing `.` characters from a name. */
6
+ export declare const stripTrailingDots: (name: string) => string;
7
+ /** Returns the UTF-8 byte length of `str`. */
8
+ export declare const getUtf8ByteLength: (str: string) => number;
9
+ /** Truncates `str` to at most `maxBytes` UTF-8 bytes without splitting multi-byte characters. */
10
+ export declare const truncateToUtf8Bytes: (str: string, maxBytes: number) => string;
11
+ //# sourceMappingURL=string-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string-utils.d.ts","sourceRoot":"","sources":["../../src/utils/string-utils.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,eAAO,MAAM,qCAAqC,QAAsB,CAAC;AAEzE,kEAAkE;AAClE,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,KAAG,MACC,CAAC;AAE1D,kDAAkD;AAClD,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,KAAG,MAQhD,CAAC;AAKF,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,KAAG,MACpB,CAAC;AAE7B,iGAAiG;AACjG,eAAO,MAAM,mBAAmB,GAAI,KAAK,MAAM,EAAE,UAAU,MAAM,KAAG,MAanE,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Bounds input sent to synchronous syntax highlighters. Oversized input should
3
+ * render as complete plain text instead. Limits count UTF-16 code units and
4
+ * recognize LF, CRLF, and CR line endings. This is a size guard, not a timeout
5
+ * or a guarantee against pathological grammars on smaller inputs.
6
+ */
7
+ export declare const isSyntaxHighlightingAllowed: (text: string) => boolean;
8
+ //# sourceMappingURL=syntax-highlighting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syntax-highlighting.d.ts","sourceRoot":"","sources":["../../src/utils/syntax-highlighting.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GAAI,MAAM,MAAM,KAAG,OAc1D,CAAC"}