@memberjunction/ng-conversations 6.1.4 → 6.2.0-edge.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. package/README.md +36 -3
  2. package/dist/lib/components/active-tasks/active-tasks-panel.component.d.ts +19 -3
  3. package/dist/lib/components/active-tasks/active-tasks-panel.component.d.ts.map +1 -1
  4. package/dist/lib/components/active-tasks/active-tasks-panel.component.js +39 -7
  5. package/dist/lib/components/active-tasks/active-tasks-panel.component.js.map +1 -1
  6. package/dist/lib/components/agent/active-agent-indicator.component.d.ts +74 -6
  7. package/dist/lib/components/agent/active-agent-indicator.component.d.ts.map +1 -1
  8. package/dist/lib/components/agent/active-agent-indicator.component.js +111 -21
  9. package/dist/lib/components/agent/active-agent-indicator.component.js.map +1 -1
  10. package/dist/lib/components/agent/agent-process-panel.component.d.ts +31 -5
  11. package/dist/lib/components/agent/agent-process-panel.component.d.ts.map +1 -1
  12. package/dist/lib/components/agent/agent-process-panel.component.js +71 -15
  13. package/dist/lib/components/agent/agent-process-panel.component.js.map +1 -1
  14. package/dist/lib/components/artifact/artifact-share-modal.component.d.ts +65 -9
  15. package/dist/lib/components/artifact/artifact-share-modal.component.d.ts.map +1 -1
  16. package/dist/lib/components/artifact/artifact-share-modal.component.js +169 -57
  17. package/dist/lib/components/artifact/artifact-share-modal.component.js.map +1 -1
  18. package/dist/lib/components/attachment/image-viewer.component.d.ts +77 -11
  19. package/dist/lib/components/attachment/image-viewer.component.d.ts.map +1 -1
  20. package/dist/lib/components/attachment/image-viewer.component.js +181 -47
  21. package/dist/lib/components/attachment/image-viewer.component.js.map +1 -1
  22. package/dist/lib/components/collection/artifact-collection-picker-modal.component.d.ts +129 -19
  23. package/dist/lib/components/collection/artifact-collection-picker-modal.component.d.ts.map +1 -1
  24. package/dist/lib/components/collection/artifact-collection-picker-modal.component.js +350 -116
  25. package/dist/lib/components/collection/artifact-collection-picker-modal.component.js.map +1 -1
  26. package/dist/lib/components/collection/artifact-create-modal.component.d.ts +60 -8
  27. package/dist/lib/components/collection/artifact-create-modal.component.d.ts.map +1 -1
  28. package/dist/lib/components/collection/artifact-create-modal.component.js +130 -46
  29. package/dist/lib/components/collection/artifact-create-modal.component.js.map +1 -1
  30. package/dist/lib/components/collection/collection-artifact-card.component.d.ts +63 -3
  31. package/dist/lib/components/collection/collection-artifact-card.component.d.ts.map +1 -1
  32. package/dist/lib/components/collection/collection-artifact-card.component.js +113 -19
  33. package/dist/lib/components/collection/collection-artifact-card.component.js.map +1 -1
  34. package/dist/lib/components/collection/collection-form-modal.component.d.ts +54 -8
  35. package/dist/lib/components/collection/collection-form-modal.component.d.ts.map +1 -1
  36. package/dist/lib/components/collection/collection-form-modal.component.js +130 -46
  37. package/dist/lib/components/collection/collection-form-modal.component.js.map +1 -1
  38. package/dist/lib/components/collection/collection-share-modal.component.d.ts +70 -10
  39. package/dist/lib/components/collection/collection-share-modal.component.d.ts.map +1 -1
  40. package/dist/lib/components/collection/collection-share-modal.component.js +175 -53
  41. package/dist/lib/components/collection/collection-share-modal.component.js.map +1 -1
  42. package/dist/lib/components/collection/collection-tree.component.d.ts +89 -9
  43. package/dist/lib/components/collection/collection-tree.component.d.ts.map +1 -1
  44. package/dist/lib/components/collection/collection-tree.component.js +220 -70
  45. package/dist/lib/components/collection/collection-tree.component.js.map +1 -1
  46. package/dist/lib/components/collection/collection-view.component.d.ts +89 -11
  47. package/dist/lib/components/collection/collection-view.component.d.ts.map +1 -1
  48. package/dist/lib/components/collection/collection-view.component.js +154 -40
  49. package/dist/lib/components/collection/collection-view.component.js.map +1 -1
  50. package/dist/lib/components/collection/collections-full-view.component.d.ts +390 -38
  51. package/dist/lib/components/collection/collections-full-view.component.d.ts.map +1 -1
  52. package/dist/lib/components/collection/collections-full-view.component.js +951 -367
  53. package/dist/lib/components/collection/collections-full-view.component.js.map +1 -1
  54. package/dist/lib/components/composer/ai-composer.component.d.ts +213 -18
  55. package/dist/lib/components/composer/ai-composer.component.d.ts.map +1 -1
  56. package/dist/lib/components/composer/ai-composer.component.js +388 -44
  57. package/dist/lib/components/composer/ai-composer.component.js.map +1 -1
  58. package/dist/lib/components/conversation/conversation-agent-picker.component.d.ts +12 -1
  59. package/dist/lib/components/conversation/conversation-agent-picker.component.d.ts.map +1 -1
  60. package/dist/lib/components/conversation/conversation-agent-picker.component.js +26 -4
  61. package/dist/lib/components/conversation/conversation-agent-picker.component.js.map +1 -1
  62. package/dist/lib/components/conversation/conversation-chat-area.component.d.ts +1090 -123
  63. package/dist/lib/components/conversation/conversation-chat-area.component.d.ts.map +1 -1
  64. package/dist/lib/components/conversation/conversation-chat-area.component.js +2407 -731
  65. package/dist/lib/components/conversation/conversation-chat-area.component.js.map +1 -1
  66. package/dist/lib/components/conversation/conversation-empty-state.component.d.ts +139 -19
  67. package/dist/lib/components/conversation/conversation-empty-state.component.d.ts.map +1 -1
  68. package/dist/lib/components/conversation/conversation-empty-state.component.js +296 -59
  69. package/dist/lib/components/conversation/conversation-empty-state.component.js.map +1 -1
  70. package/dist/lib/components/conversation/conversation-list.component.d.ts +579 -78
  71. package/dist/lib/components/conversation/conversation-list.component.d.ts.map +1 -1
  72. package/dist/lib/components/conversation/conversation-list.component.js +2322 -823
  73. package/dist/lib/components/conversation/conversation-list.component.js.map +1 -1
  74. package/dist/lib/components/conversation/pinned-messages-panel.component.d.ts +40 -4
  75. package/dist/lib/components/conversation/pinned-messages-panel.component.d.ts.map +1 -1
  76. package/dist/lib/components/conversation/pinned-messages-panel.component.js +72 -14
  77. package/dist/lib/components/conversation/pinned-messages-panel.component.js.map +1 -1
  78. package/dist/lib/components/dialogs/input-dialog.component.d.ts +57 -11
  79. package/dist/lib/components/dialogs/input-dialog.component.d.ts.map +1 -1
  80. package/dist/lib/components/dialogs/input-dialog.component.js +128 -16
  81. package/dist/lib/components/dialogs/input-dialog.component.js.map +1 -1
  82. package/dist/lib/components/dialogs/rating-dialog.component.d.ts +68 -10
  83. package/dist/lib/components/dialogs/rating-dialog.component.d.ts.map +1 -1
  84. package/dist/lib/components/dialogs/rating-dialog.component.js +151 -27
  85. package/dist/lib/components/dialogs/rating-dialog.component.js.map +1 -1
  86. package/dist/lib/components/export/export-modal.component.d.ts +84 -10
  87. package/dist/lib/components/export/export-modal.component.d.ts.map +1 -1
  88. package/dist/lib/components/export/export-modal.component.js +173 -49
  89. package/dist/lib/components/export/export-modal.component.js.map +1 -1
  90. package/dist/lib/components/global-tasks/global-tasks-panel.component.d.ts +29 -3
  91. package/dist/lib/components/global-tasks/global-tasks-panel.component.d.ts.map +1 -1
  92. package/dist/lib/components/global-tasks/global-tasks-panel.component.js +58 -12
  93. package/dist/lib/components/global-tasks/global-tasks-panel.component.js.map +1 -1
  94. package/dist/lib/components/library/library-full-view.component.d.ts +57 -8
  95. package/dist/lib/components/library/library-full-view.component.d.ts.map +1 -1
  96. package/dist/lib/components/library/library-full-view.component.js +119 -35
  97. package/dist/lib/components/library/library-full-view.component.js.map +1 -1
  98. package/dist/lib/components/members/members-modal.component.d.ts +76 -10
  99. package/dist/lib/components/members/members-modal.component.d.ts.map +1 -1
  100. package/dist/lib/components/members/members-modal.component.js +164 -50
  101. package/dist/lib/components/members/members-modal.component.js.map +1 -1
  102. package/dist/lib/components/message/actionable-commands.component.d.ts +37 -5
  103. package/dist/lib/components/message/actionable-commands.component.d.ts.map +1 -1
  104. package/dist/lib/components/message/actionable-commands.component.js +82 -16
  105. package/dist/lib/components/message/actionable-commands.component.js.map +1 -1
  106. package/dist/lib/components/message/conversation-message-rating.component.d.ts +46 -10
  107. package/dist/lib/components/message/conversation-message-rating.component.d.ts.map +1 -1
  108. package/dist/lib/components/message/conversation-message-rating.component.js +120 -36
  109. package/dist/lib/components/message/conversation-message-rating.component.js.map +1 -1
  110. package/dist/lib/components/message/message-input.component.d.ts +549 -74
  111. package/dist/lib/components/message/message-input.component.d.ts.map +1 -1
  112. package/dist/lib/components/message/message-input.component.js +1250 -421
  113. package/dist/lib/components/message/message-input.component.js.map +1 -1
  114. package/dist/lib/components/message/message-item.component.d.ts +411 -29
  115. package/dist/lib/components/message/message-item.component.d.ts.map +1 -1
  116. package/dist/lib/components/message/message-item.component.js +896 -222
  117. package/dist/lib/components/message/message-item.component.js.map +1 -1
  118. package/dist/lib/components/message/message-list.component.d.ts +288 -29
  119. package/dist/lib/components/message/message-list.component.d.ts.map +1 -1
  120. package/dist/lib/components/message/message-list.component.js +561 -123
  121. package/dist/lib/components/message/message-list.component.js.map +1 -1
  122. package/dist/lib/components/navigation/conversation-navigation.component.d.ts +64 -5
  123. package/dist/lib/components/navigation/conversation-navigation.component.d.ts.map +1 -1
  124. package/dist/lib/components/navigation/conversation-navigation.component.js +101 -11
  125. package/dist/lib/components/navigation/conversation-navigation.component.js.map +1 -1
  126. package/dist/lib/components/notification/activity-indicator.component.d.ts +6 -2
  127. package/dist/lib/components/notification/activity-indicator.component.d.ts.map +1 -1
  128. package/dist/lib/components/notification/activity-indicator.component.js +13 -3
  129. package/dist/lib/components/notification/activity-indicator.component.js.map +1 -1
  130. package/dist/lib/components/notification/notification-badge.component.d.ts +15 -3
  131. package/dist/lib/components/notification/notification-badge.component.d.ts.map +1 -1
  132. package/dist/lib/components/notification/notification-badge.component.js +36 -8
  133. package/dist/lib/components/notification/notification-badge.component.js.map +1 -1
  134. package/dist/lib/components/overlay/chat-overlay.component.d.ts +1 -1
  135. package/dist/lib/components/overlay/chat-overlay.component.js +4 -4
  136. package/dist/lib/components/overlay/chat-overlay.component.js.map +1 -1
  137. package/dist/lib/components/project/project-form-modal.component.d.ts +93 -11
  138. package/dist/lib/components/project/project-form-modal.component.d.ts.map +1 -1
  139. package/dist/lib/components/project/project-form-modal.component.js +348 -87
  140. package/dist/lib/components/project/project-form-modal.component.js.map +1 -1
  141. package/dist/lib/components/project/project-selector.component.d.ts +78 -8
  142. package/dist/lib/components/project/project-selector.component.d.ts.map +1 -1
  143. package/dist/lib/components/project/project-selector.component.js +177 -46
  144. package/dist/lib/components/project/project-selector.component.js.map +1 -1
  145. package/dist/lib/components/realtime/channels/channel-onboarding-panel.component.d.ts +1 -1
  146. package/dist/lib/components/realtime/channels/channel-onboarding-panel.component.d.ts.map +1 -1
  147. package/dist/lib/components/realtime/channels/channel-onboarding-panel.component.js.map +1 -1
  148. package/dist/lib/components/realtime/channels/client-context-channel.d.ts +1 -1
  149. package/dist/lib/components/realtime/channels/client-context-channel.d.ts.map +1 -1
  150. package/dist/lib/components/realtime/channels/client-context-channel.js +1 -1
  151. package/dist/lib/components/realtime/channels/client-context-channel.js.map +1 -1
  152. package/dist/lib/components/realtime/channels/realtime-channel-pane.component.d.ts +1 -1
  153. package/dist/lib/components/realtime/channels/realtime-channel-pane.component.d.ts.map +1 -1
  154. package/dist/lib/components/realtime/channels/realtime-channel-pane.component.js +3 -0
  155. package/dist/lib/components/realtime/channels/realtime-channel-pane.component.js.map +1 -1
  156. package/dist/lib/components/realtime/media/media-channel.d.ts +2 -1
  157. package/dist/lib/components/realtime/media/media-channel.d.ts.map +1 -1
  158. package/dist/lib/components/realtime/media/media-channel.js +1 -1
  159. package/dist/lib/components/realtime/media/media-channel.js.map +1 -1
  160. package/dist/lib/components/realtime/realtime-activity-rail.component.d.ts +2 -2
  161. package/dist/lib/components/realtime/realtime-activity-rail.component.d.ts.map +1 -1
  162. package/dist/lib/components/realtime/realtime-activity-rail.component.js +2 -2
  163. package/dist/lib/components/realtime/realtime-activity-rail.component.js.map +1 -1
  164. package/dist/lib/components/realtime/realtime-agent-banner.component.d.ts +1 -1
  165. package/dist/lib/components/realtime/realtime-agent-banner.component.d.ts.map +1 -1
  166. package/dist/lib/components/realtime/realtime-agent-banner.component.js.map +1 -1
  167. package/dist/lib/components/realtime/realtime-composer.component.d.ts +3 -1
  168. package/dist/lib/components/realtime/realtime-composer.component.d.ts.map +1 -1
  169. package/dist/lib/components/realtime/realtime-composer.component.js +26 -8
  170. package/dist/lib/components/realtime/realtime-composer.component.js.map +1 -1
  171. package/dist/lib/components/realtime/realtime-delegation-card.component.d.ts +2 -2
  172. package/dist/lib/components/realtime/realtime-delegation-card.component.d.ts.map +1 -1
  173. package/dist/lib/components/realtime/realtime-delegation-card.component.js +2 -2
  174. package/dist/lib/components/realtime/realtime-delegation-card.component.js.map +1 -1
  175. package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts +4 -4
  176. package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts.map +1 -1
  177. package/dist/lib/components/realtime/realtime-session-overlay.component.js +19 -19
  178. package/dist/lib/components/realtime/realtime-session-overlay.component.js.map +1 -1
  179. package/dist/lib/components/realtime/realtime-session-state.d.ts +2 -3
  180. package/dist/lib/components/realtime/realtime-session-state.d.ts.map +1 -1
  181. package/dist/lib/components/realtime/realtime-session-state.js +3 -2
  182. package/dist/lib/components/realtime/realtime-session-state.js.map +1 -1
  183. package/dist/lib/components/realtime/realtime-session-thread.component.d.ts +17 -1
  184. package/dist/lib/components/realtime/realtime-session-thread.component.d.ts.map +1 -1
  185. package/dist/lib/components/realtime/realtime-session-thread.component.js +122 -45
  186. package/dist/lib/components/realtime/realtime-session-thread.component.js.map +1 -1
  187. package/dist/lib/components/realtime/realtime-session-timeline-card.component.d.ts +47 -31
  188. package/dist/lib/components/realtime/realtime-session-timeline-card.component.d.ts.map +1 -1
  189. package/dist/lib/components/realtime/realtime-session-timeline-card.component.js +138 -124
  190. package/dist/lib/components/realtime/realtime-session-timeline-card.component.js.map +1 -1
  191. package/dist/lib/components/realtime/realtime-surface-tabs.component.d.ts +4 -4
  192. package/dist/lib/components/realtime/realtime-surface-tabs.component.d.ts.map +1 -1
  193. package/dist/lib/components/realtime/realtime-surface-tabs.component.js +4 -4
  194. package/dist/lib/components/realtime/realtime-surface-tabs.component.js.map +1 -1
  195. package/dist/lib/components/realtime/realtime-surface-tabs.model.d.ts +2 -2
  196. package/dist/lib/components/realtime/realtime-surface-tabs.model.d.ts.map +1 -1
  197. package/dist/lib/components/realtime/realtime-surface-tabs.model.js +3 -3
  198. package/dist/lib/components/realtime/realtime-surface-tabs.model.js.map +1 -1
  199. package/dist/lib/components/realtime/realtime-ui-config.d.ts +13 -11
  200. package/dist/lib/components/realtime/realtime-ui-config.d.ts.map +1 -1
  201. package/dist/lib/components/realtime/realtime-ui-config.js +29 -25
  202. package/dist/lib/components/realtime/realtime-ui-config.js.map +1 -1
  203. package/dist/lib/components/realtime/remote-browser/remote-browser-channel.d.ts +1 -1
  204. package/dist/lib/components/realtime/remote-browser/remote-browser-channel.d.ts.map +1 -1
  205. package/dist/lib/components/realtime/remote-browser/remote-browser-channel.js +1 -1
  206. package/dist/lib/components/realtime/remote-browser/remote-browser-channel.js.map +1 -1
  207. package/dist/lib/components/realtime/whiteboard/whiteboard-channel.d.ts +4 -2
  208. package/dist/lib/components/realtime/whiteboard/whiteboard-channel.d.ts.map +1 -1
  209. package/dist/lib/components/realtime/whiteboard/whiteboard-channel.js +7 -3
  210. package/dist/lib/components/realtime/whiteboard/whiteboard-channel.js.map +1 -1
  211. package/dist/lib/components/search/search-panel.component.d.ts +133 -22
  212. package/dist/lib/components/search/search-panel.component.d.ts.map +1 -1
  213. package/dist/lib/components/search/search-panel.component.js +312 -83
  214. package/dist/lib/components/search/search-panel.component.js.map +1 -1
  215. package/dist/lib/components/share/share-modal.component.d.ts +69 -9
  216. package/dist/lib/components/share/share-modal.component.d.ts.map +1 -1
  217. package/dist/lib/components/share/share-modal.component.js +139 -31
  218. package/dist/lib/components/share/share-modal.component.js.map +1 -1
  219. package/dist/lib/components/shared/user-picker.component.d.ts +48 -8
  220. package/dist/lib/components/shared/user-picker.component.d.ts.map +1 -1
  221. package/dist/lib/components/shared/user-picker.component.js +110 -30
  222. package/dist/lib/components/shared/user-picker.component.js.map +1 -1
  223. package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts +114 -11
  224. package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts.map +1 -1
  225. package/dist/lib/components/sidebar/conversation-sidebar.component.js +199 -21
  226. package/dist/lib/components/sidebar/conversation-sidebar.component.js.map +1 -1
  227. package/dist/lib/components/sidebar/routines-section.component.d.ts +20 -1
  228. package/dist/lib/components/sidebar/routines-section.component.d.ts.map +1 -1
  229. package/dist/lib/components/sidebar/routines-section.component.js +25 -5
  230. package/dist/lib/components/sidebar/routines-section.component.js.map +1 -1
  231. package/dist/lib/components/slots/slot-interfaces.d.ts +19 -0
  232. package/dist/lib/components/slots/slot-interfaces.d.ts.map +1 -1
  233. package/dist/lib/components/slots/slot-interfaces.js.map +1 -1
  234. package/dist/lib/components/task/tasks-full-view.component.d.ts +95 -13
  235. package/dist/lib/components/task/tasks-full-view.component.d.ts.map +1 -1
  236. package/dist/lib/components/task/tasks-full-view.component.js +223 -75
  237. package/dist/lib/components/task/tasks-full-view.component.js.map +1 -1
  238. package/dist/lib/components/tasks/task-widget.component.d.ts +46 -6
  239. package/dist/lib/components/tasks/task-widget.component.d.ts.map +1 -1
  240. package/dist/lib/components/tasks/task-widget.component.js +100 -16
  241. package/dist/lib/components/tasks/task-widget.component.js.map +1 -1
  242. package/dist/lib/components/tasks/tasks-dropdown.component.d.ts +64 -7
  243. package/dist/lib/components/tasks/tasks-dropdown.component.d.ts.map +1 -1
  244. package/dist/lib/components/tasks/tasks-dropdown.component.js +127 -27
  245. package/dist/lib/components/tasks/tasks-dropdown.component.js.map +1 -1
  246. package/dist/lib/components/thread/thread-panel.component.d.ts +66 -8
  247. package/dist/lib/components/thread/thread-panel.component.d.ts.map +1 -1
  248. package/dist/lib/components/thread/thread-panel.component.js +146 -36
  249. package/dist/lib/components/thread/thread-panel.component.js.map +1 -1
  250. package/dist/lib/components/toast/toast.component.d.ts +11 -1
  251. package/dist/lib/components/toast/toast.component.d.ts.map +1 -1
  252. package/dist/lib/components/toast/toast.component.js +25 -5
  253. package/dist/lib/components/toast/toast.component.js.map +1 -1
  254. package/dist/lib/components/workspace/conversation-workspace.component.d.ts +385 -42
  255. package/dist/lib/components/workspace/conversation-workspace.component.d.ts.map +1 -1
  256. package/dist/lib/components/workspace/conversation-workspace.component.js +887 -291
  257. package/dist/lib/components/workspace/conversation-workspace.component.js.map +1 -1
  258. package/dist/lib/composer-plugins/base-conversation-mention.provider.d.ts +8 -0
  259. package/dist/lib/composer-plugins/base-conversation-mention.provider.d.ts.map +1 -1
  260. package/dist/lib/composer-plugins/base-conversation-mention.provider.js +8 -1
  261. package/dist/lib/composer-plugins/base-conversation-mention.provider.js.map +1 -1
  262. package/dist/lib/conversations.module.d.ts.map +1 -1
  263. package/dist/lib/conversations.module.js.map +1 -1
  264. package/dist/lib/directives/chat-slot.directive.d.ts +5 -1
  265. package/dist/lib/directives/chat-slot.directive.d.ts.map +1 -1
  266. package/dist/lib/directives/chat-slot.directive.js.map +1 -1
  267. package/dist/lib/directives/search-shortcut.directive.d.ts +9 -1
  268. package/dist/lib/directives/search-shortcut.directive.d.ts.map +1 -1
  269. package/dist/lib/directives/search-shortcut.directive.js +14 -4
  270. package/dist/lib/directives/search-shortcut.directive.js.map +1 -1
  271. package/dist/lib/events/chat-events.d.ts +34 -7
  272. package/dist/lib/events/chat-events.d.ts.map +1 -1
  273. package/dist/lib/events/chat-events.js +37 -7
  274. package/dist/lib/events/chat-events.js.map +1 -1
  275. package/dist/lib/models/agent-turn.model.d.ts +103 -0
  276. package/dist/lib/models/agent-turn.model.d.ts.map +1 -0
  277. package/dist/lib/models/agent-turn.model.js +12 -0
  278. package/dist/lib/models/agent-turn.model.js.map +1 -0
  279. package/dist/lib/models/collection-view.model.js.map +1 -1
  280. package/dist/lib/models/conversation-state.model.d.ts +8 -0
  281. package/dist/lib/models/conversation-state.model.d.ts.map +1 -1
  282. package/dist/lib/models/conversation-state.model.js.map +1 -1
  283. package/dist/lib/models/lazy-artifact-info.d.ts +44 -12
  284. package/dist/lib/models/lazy-artifact-info.d.ts.map +1 -1
  285. package/dist/lib/models/lazy-artifact-info.js +98 -34
  286. package/dist/lib/models/lazy-artifact-info.js.map +1 -1
  287. package/dist/lib/services/active-tasks.service.d.ts +30 -4
  288. package/dist/lib/services/active-tasks.service.d.ts.map +1 -1
  289. package/dist/lib/services/active-tasks.service.js +71 -19
  290. package/dist/lib/services/active-tasks.service.js.map +1 -1
  291. package/dist/lib/services/agent-state.service.d.ts +17 -1
  292. package/dist/lib/services/agent-state.service.d.ts.map +1 -1
  293. package/dist/lib/services/agent-state.service.js +48 -16
  294. package/dist/lib/services/agent-state.service.js.map +1 -1
  295. package/dist/lib/services/artifact-permission.service.d.ts +39 -0
  296. package/dist/lib/services/artifact-permission.service.d.ts.map +1 -1
  297. package/dist/lib/services/artifact-permission.service.js +152 -17
  298. package/dist/lib/services/artifact-permission.service.js.map +1 -1
  299. package/dist/lib/services/artifact-state.service.d.ts +58 -5
  300. package/dist/lib/services/artifact-state.service.d.ts.map +1 -1
  301. package/dist/lib/services/artifact-state.service.js +135 -35
  302. package/dist/lib/services/artifact-state.service.js.map +1 -1
  303. package/dist/lib/services/browser-realtime-media-host.d.ts +24 -0
  304. package/dist/lib/services/browser-realtime-media-host.d.ts.map +1 -0
  305. package/dist/lib/services/browser-realtime-media-host.js +95 -0
  306. package/dist/lib/services/browser-realtime-media-host.js.map +1 -0
  307. package/dist/lib/services/collection-permission.service.d.ts +28 -0
  308. package/dist/lib/services/collection-permission.service.d.ts.map +1 -1
  309. package/dist/lib/services/collection-permission.service.js +88 -32
  310. package/dist/lib/services/collection-permission.service.js.map +1 -1
  311. package/dist/lib/services/collection-state.service.d.ts +11 -1
  312. package/dist/lib/services/collection-state.service.d.ts.map +1 -1
  313. package/dist/lib/services/collection-state.service.js +25 -5
  314. package/dist/lib/services/collection-state.service.js.map +1 -1
  315. package/dist/lib/services/conversation-agent.service.d.ts +26 -4
  316. package/dist/lib/services/conversation-agent.service.d.ts.map +1 -1
  317. package/dist/lib/services/conversation-agent.service.js +57 -18
  318. package/dist/lib/services/conversation-agent.service.js.map +1 -1
  319. package/dist/lib/services/conversation-attachment.service.d.ts +41 -2
  320. package/dist/lib/services/conversation-attachment.service.d.ts.map +1 -1
  321. package/dist/lib/services/conversation-attachment.service.js +80 -13
  322. package/dist/lib/services/conversation-attachment.service.js.map +1 -1
  323. package/dist/lib/services/conversation-streaming.service.d.ts +22 -0
  324. package/dist/lib/services/conversation-streaming.service.d.ts.map +1 -1
  325. package/dist/lib/services/conversation-streaming.service.js +50 -10
  326. package/dist/lib/services/conversation-streaming.service.js.map +1 -1
  327. package/dist/lib/services/data-cache.service.d.ts +31 -0
  328. package/dist/lib/services/data-cache.service.d.ts.map +1 -1
  329. package/dist/lib/services/data-cache.service.js +71 -15
  330. package/dist/lib/services/data-cache.service.js.map +1 -1
  331. package/dist/lib/services/dialog.service.d.ts +13 -0
  332. package/dist/lib/services/dialog.service.d.ts.map +1 -1
  333. package/dist/lib/services/dialog.service.js +25 -5
  334. package/dist/lib/services/dialog.service.js.map +1 -1
  335. package/dist/lib/services/export.service.d.ts +2 -0
  336. package/dist/lib/services/export.service.d.ts.map +1 -1
  337. package/dist/lib/services/export.service.js +5 -1
  338. package/dist/lib/services/export.service.js.map +1 -1
  339. package/dist/lib/services/graphql-attachment-blob-store.d.ts +44 -0
  340. package/dist/lib/services/graphql-attachment-blob-store.d.ts.map +1 -0
  341. package/dist/lib/services/graphql-attachment-blob-store.js +113 -0
  342. package/dist/lib/services/graphql-attachment-blob-store.js.map +1 -0
  343. package/dist/lib/services/mention-autocomplete.service.d.ts +17 -141
  344. package/dist/lib/services/mention-autocomplete.service.d.ts.map +1 -1
  345. package/dist/lib/services/mention-autocomplete.service.js +15 -460
  346. package/dist/lib/services/mention-autocomplete.service.js.map +1 -1
  347. package/dist/lib/services/mention-parser.service.d.ts +10 -0
  348. package/dist/lib/services/mention-parser.service.d.ts.map +1 -1
  349. package/dist/lib/services/mention-parser.service.js +25 -5
  350. package/dist/lib/services/mention-parser.service.js.map +1 -1
  351. package/dist/lib/services/notification.service.d.ts +54 -6
  352. package/dist/lib/services/notification.service.d.ts.map +1 -1
  353. package/dist/lib/services/notification.service.js +123 -27
  354. package/dist/lib/services/notification.service.js.map +1 -1
  355. package/dist/lib/services/realtime-audio-recorder.d.ts +4 -4
  356. package/dist/lib/services/realtime-audio-recorder.js +12 -12
  357. package/dist/lib/services/realtime-audio-recorder.js.map +1 -1
  358. package/dist/lib/services/realtime-pcm-wav.d.ts +4 -0
  359. package/dist/lib/services/realtime-pcm-wav.d.ts.map +1 -1
  360. package/dist/lib/services/realtime-pcm-wav.js +10 -2
  361. package/dist/lib/services/realtime-pcm-wav.js.map +1 -1
  362. package/dist/lib/services/realtime-session-review.service.d.ts +1 -1
  363. package/dist/lib/services/realtime-session-review.service.d.ts.map +1 -1
  364. package/dist/lib/services/realtime-session-review.service.js +1 -1
  365. package/dist/lib/services/realtime-session-review.service.js.map +1 -1
  366. package/dist/lib/services/realtime-session.service.d.ts +16 -1150
  367. package/dist/lib/services/realtime-session.service.d.ts.map +1 -1
  368. package/dist/lib/services/realtime-session.service.js +28 -2430
  369. package/dist/lib/services/realtime-session.service.js.map +1 -1
  370. package/dist/lib/services/search.service.d.ts +42 -9
  371. package/dist/lib/services/search.service.d.ts.map +1 -1
  372. package/dist/lib/services/search.service.js +103 -23
  373. package/dist/lib/services/search.service.js.map +1 -1
  374. package/dist/lib/services/toast.service.d.ts +19 -1
  375. package/dist/lib/services/toast.service.d.ts.map +1 -1
  376. package/dist/lib/services/toast.service.js +45 -9
  377. package/dist/lib/services/toast.service.js.map +1 -1
  378. package/dist/lib/services/ui-command-handler.service.d.ts +16 -2
  379. package/dist/lib/services/ui-command-handler.service.d.ts.map +1 -1
  380. package/dist/lib/services/ui-command-handler.service.js +36 -8
  381. package/dist/lib/services/ui-command-handler.service.js.map +1 -1
  382. package/dist/lib/utils/agent-artifact-summary.d.ts +2 -2
  383. package/dist/lib/utils/agent-artifact-summary.js +3 -3
  384. package/dist/lib/utils/agent-artifact-summary.js.map +1 -1
  385. package/dist/lib/utils/agent-turn-routing.d.ts +69 -0
  386. package/dist/lib/utils/agent-turn-routing.d.ts.map +1 -0
  387. package/dist/lib/utils/agent-turn-routing.js +96 -0
  388. package/dist/lib/utils/agent-turn-routing.js.map +1 -0
  389. package/dist/lib/utils/artifact-panel-action.d.ts +15 -4
  390. package/dist/lib/utils/artifact-panel-action.d.ts.map +1 -1
  391. package/dist/lib/utils/artifact-panel-action.js +10 -2
  392. package/dist/lib/utils/artifact-panel-action.js.map +1 -1
  393. package/dist/lib/utils/distinct-artifacts.d.ts +2 -0
  394. package/dist/lib/utils/distinct-artifacts.d.ts.map +1 -1
  395. package/dist/lib/utils/distinct-artifacts.js +5 -1
  396. package/dist/lib/utils/distinct-artifacts.js.map +1 -1
  397. package/dist/lib/utils/plan-mode-preference.d.ts +2 -2
  398. package/dist/lib/utils/plan-mode-preference.js +6 -6
  399. package/dist/lib/utils/plan-mode-preference.js.map +1 -1
  400. package/dist/lib/utils/realtime-session-timeline.d.ts +8 -79
  401. package/dist/lib/utils/realtime-session-timeline.d.ts.map +1 -1
  402. package/dist/lib/utils/realtime-session-timeline.js +8 -89
  403. package/dist/lib/utils/realtime-session-timeline.js.map +1 -1
  404. package/dist/public-api.d.ts +5 -2
  405. package/dist/public-api.d.ts.map +1 -1
  406. package/dist/public-api.js +9 -2
  407. package/dist/public-api.js.map +1 -1
  408. package/package.json +33 -32
  409. package/dist/lib/components/realtime/channels/base-realtime-channel-client.d.ts +0 -384
  410. package/dist/lib/components/realtime/channels/base-realtime-channel-client.d.ts.map +0 -1
  411. package/dist/lib/components/realtime/channels/base-realtime-channel-client.js +0 -231
  412. package/dist/lib/components/realtime/channels/base-realtime-channel-client.js.map +0 -1
  413. package/dist/lib/services/delegation-result-parser.d.ts +0 -50
  414. package/dist/lib/services/delegation-result-parser.d.ts.map +0 -1
  415. package/dist/lib/services/delegation-result-parser.js +0 -60
  416. package/dist/lib/services/delegation-result-parser.js.map +0 -1
  417. package/dist/lib/services/narration-template.d.ts +0 -42
  418. package/dist/lib/services/narration-template.d.ts.map +0 -1
  419. package/dist/lib/services/narration-template.js +0 -73
  420. package/dist/lib/services/narration-template.js.map +0 -1
  421. package/dist/lib/services/skill-picker-narrowing.d.ts +0 -13
  422. package/dist/lib/services/skill-picker-narrowing.d.ts.map +0 -1
  423. package/dist/lib/services/skill-picker-narrowing.js +0 -13
  424. package/dist/lib/services/skill-picker-narrowing.js.map +0 -1
@@ -14,11 +14,21 @@ export declare class ArtifactStateService {
14
14
  private _artifacts$;
15
15
  private _isPanelOpen$;
16
16
  private _panelMode$;
17
- readonly activeArtifactId$: Observable<string | null>;
18
- readonly activeVersionNumber$: Observable<number | null>;
19
- readonly isPanelOpen$: Observable<boolean>;
20
- readonly panelMode$: Observable<"view" | "edit">;
21
- readonly activeArtifact$: Observable<MJArtifactEntity | null>;
17
+ readonly ActiveArtifactId$: Observable<string | null>;
18
+ /** @deprecated Use {@link ActiveArtifactId$}. */
19
+ get activeArtifactId$(): Observable<string | null>;
20
+ readonly ActiveVersionNumber$: Observable<number | null>;
21
+ /** @deprecated Use {@link ActiveVersionNumber$}. */
22
+ get activeVersionNumber$(): Observable<number | null>;
23
+ readonly IsPanelOpen$: Observable<boolean>;
24
+ /** @deprecated Use {@link IsPanelOpen$}. */
25
+ get isPanelOpen$(): Observable<boolean>;
26
+ readonly PanelMode$: Observable<"view" | "edit">;
27
+ /** @deprecated Use {@link PanelMode$}. */
28
+ get panelMode$(): Observable<"view" | "edit">;
29
+ readonly ActiveArtifact$: Observable<MJArtifactEntity | null>;
30
+ /** @deprecated Use {@link ActiveArtifact$}. */
31
+ get activeArtifact$(): Observable<MJArtifactEntity | null>;
22
32
  private _provider;
23
33
  constructor(artifactPermissionService: ArtifactPermissionService);
24
34
  /**
@@ -33,6 +43,8 @@ export declare class ArtifactStateService {
33
43
  * @param currentUser The current user context
34
44
  * @returns True if user has read permission
35
45
  */
46
+ CanReadArtifact(artifactId: string, currentUser: UserInfo): Promise<boolean>;
47
+ /** @deprecated Use {@link CanReadArtifact}. */
36
48
  canReadArtifact(artifactId: string, currentUser: UserInfo): Promise<boolean>;
37
49
  /**
38
50
  * Check if current user can edit an artifact
@@ -40,6 +52,8 @@ export declare class ArtifactStateService {
40
52
  * @param currentUser The current user context
41
53
  * @returns True if user has edit permission
42
54
  */
55
+ CanEditArtifact(artifactId: string, currentUser: UserInfo): Promise<boolean>;
56
+ /** @deprecated Use {@link CanEditArtifact}. */
43
57
  canEditArtifact(artifactId: string, currentUser: UserInfo): Promise<boolean>;
44
58
  /**
45
59
  * Check if current user can share an artifact
@@ -47,44 +61,62 @@ export declare class ArtifactStateService {
47
61
  * @param currentUser The current user context
48
62
  * @returns True if user has share permission
49
63
  */
64
+ CanShareArtifact(artifactId: string, currentUser: UserInfo): Promise<boolean>;
65
+ /** @deprecated Use {@link CanShareArtifact}. */
50
66
  canShareArtifact(artifactId: string, currentUser: UserInfo): Promise<boolean>;
51
67
  /**
52
68
  * Opens an artifact in the panel
53
69
  * @param id The artifact ID
54
70
  * @param versionNumber Optional specific version number
55
71
  */
72
+ OpenArtifact(id: string, versionNumber?: number): void;
73
+ /** @deprecated Use {@link OpenArtifact}. */
56
74
  openArtifact(id: string, versionNumber?: number): void;
57
75
  /**
58
76
  * Opens an artifact by version ID
59
77
  * @param versionId The artifact version ID
60
78
  */
79
+ OpenArtifactByVersionId(versionId: string): Promise<void>;
80
+ /** @deprecated Use {@link OpenArtifactByVersionId}. */
61
81
  openArtifactByVersionId(versionId: string): Promise<void>;
62
82
  /**
63
83
  * Closes the artifact panel
64
84
  */
85
+ CloseArtifact(): void;
86
+ /** @deprecated Use {@link CloseArtifact}. */
65
87
  closeArtifact(): void;
66
88
  /**
67
89
  * Toggles the panel open/closed state
68
90
  */
91
+ TogglePanel(): void;
92
+ /** @deprecated Use {@link TogglePanel}. */
69
93
  togglePanel(): void;
70
94
  /**
71
95
  * Sets the panel mode
72
96
  * @param mode The mode ('view' or 'edit')
73
97
  */
98
+ SetPanelMode(mode: 'view' | 'edit'): void;
99
+ /** @deprecated Use {@link SetPanelMode}. */
74
100
  setPanelMode(mode: 'view' | 'edit'): void;
75
101
  /**
76
102
  * Caches an artifact in memory
77
103
  * @param artifact The artifact to cache
78
104
  */
105
+ CacheArtifact(artifact: MJArtifactEntity): void;
106
+ /** @deprecated Use {@link CacheArtifact}. */
79
107
  cacheArtifact(artifact: MJArtifactEntity): void;
80
108
  /**
81
109
  * Removes an artifact from cache
82
110
  * @param id The artifact ID
83
111
  */
112
+ RemoveCachedArtifact(id: string): void;
113
+ /** @deprecated Use {@link RemoveCachedArtifact}. */
84
114
  removeCachedArtifact(id: string): void;
85
115
  /**
86
116
  * Clears all cached artifacts
87
117
  */
118
+ ClearCache(): void;
119
+ /** @deprecated Use {@link ClearCache}. */
88
120
  clearCache(): void;
89
121
  /**
90
122
  * Loads artifacts for a conversation
@@ -92,6 +124,8 @@ export declare class ArtifactStateService {
92
124
  * @param currentUser The current user context
93
125
  * @returns Array of artifacts
94
126
  */
127
+ LoadArtifactsForConversation(conversationId: string, currentUser: UserInfo): Promise<MJArtifactEntity[]>;
128
+ /** @deprecated Use {@link LoadArtifactsForConversation}. */
95
129
  loadArtifactsForConversation(conversationId: string, currentUser: UserInfo): Promise<MJArtifactEntity[]>;
96
130
  /**
97
131
  * Loads artifacts for a collection
@@ -99,6 +133,8 @@ export declare class ArtifactStateService {
99
133
  * @param currentUser The current user context
100
134
  * @returns Array of artifacts
101
135
  */
136
+ LoadArtifactsForCollection(collectionId: string, currentUser: UserInfo): Promise<MJArtifactEntity[]>;
137
+ /** @deprecated Use {@link LoadArtifactsForCollection}. */
102
138
  loadArtifactsForCollection(collectionId: string, currentUser: UserInfo): Promise<MJArtifactEntity[]>;
103
139
  /**
104
140
  * Loads artifact VERSIONS for a collection (all versions, not deduplicated by artifact ID)
@@ -107,6 +143,11 @@ export declare class ArtifactStateService {
107
143
  * @param currentUser The current user context
108
144
  * @returns Array of objects containing version and parent artifact info
109
145
  */
146
+ LoadArtifactVersionsForCollection(collectionId: string, currentUser: UserInfo, bypassCache?: boolean): Promise<Array<{
147
+ version: MJArtifactVersionEntity;
148
+ artifact: MJArtifactEntity;
149
+ }>>;
150
+ /** @deprecated Use {@link LoadArtifactVersionsForCollection}. */
110
151
  loadArtifactVersionsForCollection(collectionId: string, currentUser: UserInfo, bypassCache?: boolean): Promise<Array<{
111
152
  version: MJArtifactVersionEntity;
112
153
  artifact: MJArtifactEntity;
@@ -117,6 +158,8 @@ export declare class ArtifactStateService {
117
158
  * @param currentUser The current user context
118
159
  * @returns The artifact entity or null
119
160
  */
161
+ LoadArtifact(id: string, currentUser: UserInfo): Promise<MJArtifactEntity | null>;
162
+ /** @deprecated Use {@link LoadArtifact}. */
120
163
  loadArtifact(id: string, currentUser: UserInfo): Promise<MJArtifactEntity | null>;
121
164
  /**
122
165
  * Creates a new artifact
@@ -124,6 +167,8 @@ export declare class ArtifactStateService {
124
167
  * @param currentUser The current user context
125
168
  * @returns The created artifact
126
169
  */
170
+ CreateArtifact(data: Partial<MJArtifactEntity>, currentUser: UserInfo): Promise<MJArtifactEntity>;
171
+ /** @deprecated Use {@link CreateArtifact}. */
127
172
  createArtifact(data: Partial<MJArtifactEntity>, currentUser: UserInfo): Promise<MJArtifactEntity>;
128
173
  /**
129
174
  * Updates an artifact
@@ -132,6 +177,8 @@ export declare class ArtifactStateService {
132
177
  * @param currentUser The current user context
133
178
  * @returns True if successful
134
179
  */
180
+ UpdateArtifact(id: string, updates: Partial<MJArtifactEntity>, currentUser: UserInfo): Promise<boolean>;
181
+ /** @deprecated Use {@link UpdateArtifact}. */
135
182
  updateArtifact(id: string, updates: Partial<MJArtifactEntity>, currentUser: UserInfo): Promise<boolean>;
136
183
  /**
137
184
  * Deletes an artifact
@@ -139,6 +186,8 @@ export declare class ArtifactStateService {
139
186
  * @param currentUser The current user context
140
187
  * @returns True if successful
141
188
  */
189
+ DeleteArtifact(id: string, currentUser: UserInfo): Promise<boolean>;
190
+ /** @deprecated Use {@link DeleteArtifact}. */
142
191
  deleteArtifact(id: string, currentUser: UserInfo): Promise<boolean>;
143
192
  /**
144
193
  * Adds an artifact version to a collection
@@ -147,6 +196,8 @@ export declare class ArtifactStateService {
147
196
  * @param currentUser The current user context
148
197
  * @param versionId Optional specific version ID. If not provided, uses latest version
149
198
  */
199
+ AddToCollection(artifactId: string, collectionId: string, currentUser: UserInfo, versionId?: string): Promise<void>;
200
+ /** @deprecated Use {@link AddToCollection}. */
150
201
  addToCollection(artifactId: string, collectionId: string, currentUser: UserInfo, versionId?: string): Promise<void>;
151
202
  /**
152
203
  * Removes all versions of an artifact from a collection
@@ -154,6 +205,8 @@ export declare class ArtifactStateService {
154
205
  * @param collectionId The collection ID
155
206
  * @param currentUser The current user context
156
207
  */
208
+ RemoveFromCollection(artifactId: string, collectionId: string, currentUser: UserInfo): Promise<void>;
209
+ /** @deprecated Use {@link RemoveFromCollection}. */
157
210
  removeFromCollection(artifactId: string, collectionId: string, currentUser: UserInfo): Promise<void>;
158
211
  static ɵfac: i0.ɵɵFactoryDeclaration<ArtifactStateService, never>;
159
212
  static ɵprov: i0.ɵɵInjectableDeclaration<ArtifactStateService>;
@@ -1 +1 @@
1
- {"version":3,"file":"artifact-state.service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/artifact-state.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,UAAU,EAAiB,MAAM,MAAM,CAAC;AAElE,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAqB,QAAQ,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;;AAE1E;;;GAGG;AACH,qBAGa,oBAAoB;IAwBnB,OAAO,CAAC,yBAAyB;IAvB7C,OAAO,CAAC,kBAAkB,CAA4C;IACtE,OAAO,CAAC,qBAAqB,CAA4C;IACzE,OAAO,CAAC,WAAW,CAAiE;IACpF,OAAO,CAAC,aAAa,CAAuC;IAC5D,OAAO,CAAC,WAAW,CAAgD;IAGnE,SAAgB,iBAAiB,4BAA0C;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MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAyCzH,+CAA+C;IACzC,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzH;;;;;OAKG;IACG,oBAAoB,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAsC1G,oDAAoD;IAC9C,oBAAoB,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;yCAjoB/F,oBAAoB;6CAApB,oBAAoB;CAooBhC"}
@@ -16,15 +16,35 @@ export class ArtifactStateService {
16
16
  _isPanelOpen$ = new BehaviorSubject(false);
17
17
  _panelMode$ = new BehaviorSubject('view');
18
18
  // Public observable streams
19
- activeArtifactId$ = this._activeArtifactId$.asObservable();
20
- activeVersionNumber$ = this._activeVersionNumber$.asObservable();
21
- isPanelOpen$ = this._isPanelOpen$.asObservable();
22
- panelMode$ = this._panelMode$.asObservable();
19
+ ActiveArtifactId$ = this._activeArtifactId$.asObservable();
20
+ /** @deprecated Use {@link ActiveArtifactId$}. */
21
+ get activeArtifactId$() {
22
+ return this.ActiveArtifactId$;
23
+ }
24
+ ActiveVersionNumber$ = this._activeVersionNumber$.asObservable();
25
+ /** @deprecated Use {@link ActiveVersionNumber$}. */
26
+ get activeVersionNumber$() {
27
+ return this.ActiveVersionNumber$;
28
+ }
29
+ IsPanelOpen$ = this._isPanelOpen$.asObservable();
30
+ /** @deprecated Use {@link IsPanelOpen$}. */
31
+ get isPanelOpen$() {
32
+ return this.IsPanelOpen$;
33
+ }
34
+ PanelMode$ = this._panelMode$.asObservable();
35
+ /** @deprecated Use {@link PanelMode$}. */
36
+ get panelMode$() {
37
+ return this.PanelMode$;
38
+ }
23
39
  // Derived observable for active artifact
24
- activeArtifact$ = combineLatest([
25
- this.activeArtifactId$,
40
+ ActiveArtifact$ = combineLatest([
41
+ this.ActiveArtifactId$,
26
42
  this._artifacts$
27
43
  ]).pipe(map(([id, artifacts]) => id ? artifacts.get(id) || null : null), shareReplay(1));
44
+ /** @deprecated Use {@link ActiveArtifact$}. */
45
+ get activeArtifact$() {
46
+ return this.ActiveArtifact$;
47
+ }
28
48
  _provider = null;
29
49
  constructor(artifactPermissionService) {
30
50
  this.artifactPermissionService = artifactPermissionService;
@@ -48,49 +68,65 @@ export class ArtifactStateService {
48
68
  * @param currentUser The current user context
49
69
  * @returns True if user has read permission
50
70
  */
51
- async canReadArtifact(artifactId, currentUser) {
71
+ async CanReadArtifact(artifactId, currentUser) {
52
72
  return this.artifactPermissionService.checkPermission(artifactId, currentUser.ID, 'read', currentUser);
53
73
  }
74
+ /** @deprecated Use {@link CanReadArtifact}. */
75
+ async canReadArtifact(artifactId, currentUser) {
76
+ return this.CanReadArtifact(artifactId, currentUser);
77
+ }
54
78
  /**
55
79
  * Check if current user can edit an artifact
56
80
  * @param artifactId The artifact ID
57
81
  * @param currentUser The current user context
58
82
  * @returns True if user has edit permission
59
83
  */
60
- async canEditArtifact(artifactId, currentUser) {
84
+ async CanEditArtifact(artifactId, currentUser) {
61
85
  return this.artifactPermissionService.checkPermission(artifactId, currentUser.ID, 'edit', currentUser);
62
86
  }
87
+ /** @deprecated Use {@link CanEditArtifact}. */
88
+ async canEditArtifact(artifactId, currentUser) {
89
+ return this.CanEditArtifact(artifactId, currentUser);
90
+ }
63
91
  /**
64
92
  * Check if current user can share an artifact
65
93
  * @param artifactId The artifact ID
66
94
  * @param currentUser The current user context
67
95
  * @returns True if user has share permission
68
96
  */
69
- async canShareArtifact(artifactId, currentUser) {
97
+ async CanShareArtifact(artifactId, currentUser) {
70
98
  return this.artifactPermissionService.checkPermission(artifactId, currentUser.ID, 'share', currentUser);
71
99
  }
100
+ /** @deprecated Use {@link CanShareArtifact}. */
101
+ async canShareArtifact(artifactId, currentUser) {
102
+ return this.CanShareArtifact(artifactId, currentUser);
103
+ }
72
104
  /**
73
105
  * Opens an artifact in the panel
74
106
  * @param id The artifact ID
75
107
  * @param versionNumber Optional specific version number
76
108
  */
77
- openArtifact(id, versionNumber) {
109
+ OpenArtifact(id, versionNumber) {
78
110
  this._activeArtifactId$.next(id);
79
111
  this._activeVersionNumber$.next(versionNumber || null);
80
112
  this._isPanelOpen$.next(true);
81
113
  }
114
+ /** @deprecated Use {@link OpenArtifact}. */
115
+ openArtifact(id, versionNumber) {
116
+ return this.OpenArtifact(id, versionNumber);
117
+ }
82
118
  /**
83
119
  * Opens an artifact by version ID
84
120
  * @param versionId The artifact version ID
85
121
  */
86
- async openArtifactByVersionId(versionId) {
122
+ async OpenArtifactByVersionId(versionId) {
87
123
  try {
88
124
  const md = this.Provider;
89
125
  const version = await md.GetEntityObject('MJ: Artifact Versions');
90
126
  const loaded = await version.Load(versionId);
91
127
  if (loaded) {
92
128
  // Open the artifact with the specific version number
93
- this.openArtifact(version.ArtifactID, version.VersionNumber);
129
+ this.OpenArtifact(version.ArtifactID, version.VersionNumber);
94
130
  }
95
131
  else {
96
132
  console.error('Failed to load artifact version:', versionId);
@@ -100,59 +136,87 @@ export class ArtifactStateService {
100
136
  console.error('Error loading artifact version:', error);
101
137
  }
102
138
  }
139
+ /** @deprecated Use {@link OpenArtifactByVersionId}. */
140
+ async openArtifactByVersionId(versionId) {
141
+ return this.OpenArtifactByVersionId(versionId);
142
+ }
103
143
  /**
104
144
  * Closes the artifact panel
105
145
  */
106
- closeArtifact() {
146
+ CloseArtifact() {
107
147
  this._activeArtifactId$.next(null);
108
148
  this._activeVersionNumber$.next(null);
109
149
  this._isPanelOpen$.next(false);
110
150
  this._panelMode$.next('view');
111
151
  }
152
+ /** @deprecated Use {@link CloseArtifact}. */
153
+ closeArtifact() {
154
+ return this.CloseArtifact();
155
+ }
112
156
  /**
113
157
  * Toggles the panel open/closed state
114
158
  */
115
- togglePanel() {
159
+ TogglePanel() {
116
160
  this._isPanelOpen$.next(!this._isPanelOpen$.value);
117
161
  }
162
+ /** @deprecated Use {@link TogglePanel}. */
163
+ togglePanel() {
164
+ return this.TogglePanel();
165
+ }
118
166
  /**
119
167
  * Sets the panel mode
120
168
  * @param mode The mode ('view' or 'edit')
121
169
  */
122
- setPanelMode(mode) {
170
+ SetPanelMode(mode) {
123
171
  this._panelMode$.next(mode);
124
172
  }
173
+ /** @deprecated Use {@link SetPanelMode}. */
174
+ setPanelMode(mode) {
175
+ return this.SetPanelMode(mode);
176
+ }
125
177
  /**
126
178
  * Caches an artifact in memory
127
179
  * @param artifact The artifact to cache
128
180
  */
129
- cacheArtifact(artifact) {
181
+ CacheArtifact(artifact) {
130
182
  const current = this._artifacts$.value;
131
183
  current.set(artifact.ID, artifact);
132
184
  this._artifacts$.next(new Map(current));
133
185
  }
186
+ /** @deprecated Use {@link CacheArtifact}. */
187
+ cacheArtifact(artifact) {
188
+ return this.CacheArtifact(artifact);
189
+ }
134
190
  /**
135
191
  * Removes an artifact from cache
136
192
  * @param id The artifact ID
137
193
  */
138
- removeCachedArtifact(id) {
194
+ RemoveCachedArtifact(id) {
139
195
  const current = this._artifacts$.value;
140
196
  current.delete(id);
141
197
  this._artifacts$.next(new Map(current));
142
198
  }
199
+ /** @deprecated Use {@link RemoveCachedArtifact}. */
200
+ removeCachedArtifact(id) {
201
+ return this.RemoveCachedArtifact(id);
202
+ }
143
203
  /**
144
204
  * Clears all cached artifacts
145
205
  */
146
- clearCache() {
206
+ ClearCache() {
147
207
  this._artifacts$.next(new Map());
148
208
  }
209
+ /** @deprecated Use {@link ClearCache}. */
210
+ clearCache() {
211
+ return this.ClearCache();
212
+ }
149
213
  /**
150
214
  * Loads artifacts for a conversation
151
215
  * @param conversationId The conversation ID
152
216
  * @param currentUser The current user context
153
217
  * @returns Array of artifacts
154
218
  */
155
- async loadArtifactsForConversation(conversationId, currentUser) {
219
+ async LoadArtifactsForConversation(conversationId, currentUser) {
156
220
  try {
157
221
  const rv = RunView.FromMetadataProvider(this.Provider);
158
222
  const result = await rv.RunView({
@@ -164,7 +228,7 @@ export class ArtifactStateService {
164
228
  }, currentUser);
165
229
  if (result.Success && result.Results) {
166
230
  // Cache all artifacts
167
- result.Results.forEach(artifact => this.cacheArtifact(artifact));
231
+ result.Results.forEach(artifact => this.CacheArtifact(artifact));
168
232
  return result.Results;
169
233
  }
170
234
  return [];
@@ -174,13 +238,17 @@ export class ArtifactStateService {
174
238
  return [];
175
239
  }
176
240
  }
241
+ /** @deprecated Use {@link LoadArtifactsForConversation}. */
242
+ async loadArtifactsForConversation(conversationId, currentUser) {
243
+ return this.LoadArtifactsForConversation(conversationId, currentUser);
244
+ }
177
245
  /**
178
246
  * Loads artifacts for a collection
179
247
  * @param collectionId The collection ID
180
248
  * @param currentUser The current user context
181
249
  * @returns Array of artifacts
182
250
  */
183
- async loadArtifactsForCollection(collectionId, currentUser) {
251
+ async LoadArtifactsForCollection(collectionId, currentUser) {
184
252
  try {
185
253
  const rv = RunView.FromMetadataProvider(this.Provider);
186
254
  // Load artifacts through the collection join - use subquery to get artifact IDs from versions
@@ -196,7 +264,7 @@ export class ArtifactStateService {
196
264
  ResultType: 'entity_object'
197
265
  }, currentUser);
198
266
  if (artifactsResult.Success && artifactsResult.Results) {
199
- artifactsResult.Results.forEach(artifact => this.cacheArtifact(artifact));
267
+ artifactsResult.Results.forEach(artifact => this.CacheArtifact(artifact));
200
268
  return artifactsResult.Results;
201
269
  }
202
270
  return [];
@@ -206,6 +274,10 @@ export class ArtifactStateService {
206
274
  return [];
207
275
  }
208
276
  }
277
+ /** @deprecated Use {@link LoadArtifactsForCollection}. */
278
+ async loadArtifactsForCollection(collectionId, currentUser) {
279
+ return this.LoadArtifactsForCollection(collectionId, currentUser);
280
+ }
209
281
  /**
210
282
  * Loads artifact VERSIONS for a collection (all versions, not deduplicated by artifact ID)
211
283
  * This method returns each version as a separate item with its parent artifact metadata
@@ -213,7 +285,7 @@ export class ArtifactStateService {
213
285
  * @param currentUser The current user context
214
286
  * @returns Array of objects containing version and parent artifact info
215
287
  */
216
- async loadArtifactVersionsForCollection(collectionId, currentUser, bypassCache = false) {
288
+ async LoadArtifactVersionsForCollection(collectionId, currentUser, bypassCache = false) {
217
289
  try {
218
290
  const rv = RunView.FromMetadataProvider(this.Provider);
219
291
  // Resolve membership from the join entity directly rather than via a subquery
@@ -265,7 +337,7 @@ export class ArtifactStateService {
265
337
  if (artifactResult.Success && artifactResult.Results) {
266
338
  artifactResult.Results.forEach(a => {
267
339
  artifactMap.set(a.ID, a);
268
- this.cacheArtifact(a); // Cache parent artifacts
340
+ this.CacheArtifact(a); // Cache parent artifacts
269
341
  });
270
342
  }
271
343
  }
@@ -282,19 +354,23 @@ export class ArtifactStateService {
282
354
  return [];
283
355
  }
284
356
  }
357
+ /** @deprecated Use {@link LoadArtifactVersionsForCollection}. */
358
+ async loadArtifactVersionsForCollection(collectionId, currentUser, bypassCache = false) {
359
+ return this.LoadArtifactVersionsForCollection(collectionId, currentUser, bypassCache);
360
+ }
285
361
  /**
286
362
  * Loads a single artifact by ID
287
363
  * @param id The artifact ID
288
364
  * @param currentUser The current user context
289
365
  * @returns The artifact entity or null
290
366
  */
291
- async loadArtifact(id, currentUser) {
367
+ async LoadArtifact(id, currentUser) {
292
368
  try {
293
369
  const md = this.Provider;
294
370
  const artifact = await md.GetEntityObject('MJ: Artifacts', currentUser);
295
371
  const loaded = await artifact.Load(id);
296
372
  if (loaded) {
297
- this.cacheArtifact(artifact);
373
+ this.CacheArtifact(artifact);
298
374
  return artifact;
299
375
  }
300
376
  return null;
@@ -304,25 +380,33 @@ export class ArtifactStateService {
304
380
  return null;
305
381
  }
306
382
  }
383
+ /** @deprecated Use {@link LoadArtifact}. */
384
+ async loadArtifact(id, currentUser) {
385
+ return this.LoadArtifact(id, currentUser);
386
+ }
307
387
  /**
308
388
  * Creates a new artifact
309
389
  * @param data Artifact data
310
390
  * @param currentUser The current user context
311
391
  * @returns The created artifact
312
392
  */
313
- async createArtifact(data, currentUser) {
393
+ async CreateArtifact(data, currentUser) {
314
394
  const md = this.Provider;
315
395
  const artifact = await md.GetEntityObject('MJ: Artifacts', currentUser);
316
396
  Object.assign(artifact, data);
317
397
  const saved = await artifact.Save();
318
398
  if (saved) {
319
- this.cacheArtifact(artifact);
399
+ this.CacheArtifact(artifact);
320
400
  return artifact;
321
401
  }
322
402
  else {
323
403
  throw new Error(artifact.LatestResult?.Message || 'Failed to create artifact');
324
404
  }
325
405
  }
406
+ /** @deprecated Use {@link CreateArtifact}. */
407
+ async createArtifact(data, currentUser) {
408
+ return this.CreateArtifact(data, currentUser);
409
+ }
326
410
  /**
327
411
  * Updates an artifact
328
412
  * @param id The artifact ID
@@ -330,7 +414,7 @@ export class ArtifactStateService {
330
414
  * @param currentUser The current user context
331
415
  * @returns True if successful
332
416
  */
333
- async updateArtifact(id, updates, currentUser) {
417
+ async UpdateArtifact(id, updates, currentUser) {
334
418
  // Check edit permission
335
419
  const canEdit = await this.artifactPermissionService.checkPermission(id, currentUser.ID, 'edit', currentUser);
336
420
  if (!canEdit) {
@@ -345,20 +429,24 @@ export class ArtifactStateService {
345
429
  Object.assign(artifact, updates);
346
430
  const saved = await artifact.Save();
347
431
  if (saved) {
348
- this.cacheArtifact(artifact);
432
+ this.CacheArtifact(artifact);
349
433
  return true;
350
434
  }
351
435
  else {
352
436
  throw new Error(artifact.LatestResult?.Message || 'Failed to update artifact');
353
437
  }
354
438
  }
439
+ /** @deprecated Use {@link UpdateArtifact}. */
440
+ async updateArtifact(id, updates, currentUser) {
441
+ return this.UpdateArtifact(id, updates, currentUser);
442
+ }
355
443
  /**
356
444
  * Deletes an artifact
357
445
  * @param id The artifact ID
358
446
  * @param currentUser The current user context
359
447
  * @returns True if successful
360
448
  */
361
- async deleteArtifact(id, currentUser) {
449
+ async DeleteArtifact(id, currentUser) {
362
450
  // Check edit permission (required for deletion)
363
451
  const canEdit = await this.artifactPermissionService.checkPermission(id, currentUser.ID, 'edit', currentUser);
364
452
  if (!canEdit) {
@@ -372,9 +460,9 @@ export class ArtifactStateService {
372
460
  }
373
461
  const deleted = await artifact.Delete();
374
462
  if (deleted) {
375
- this.removeCachedArtifact(id);
463
+ this.RemoveCachedArtifact(id);
376
464
  if (this._activeArtifactId$.value === id) {
377
- this.closeArtifact();
465
+ this.CloseArtifact();
378
466
  }
379
467
  return true;
380
468
  }
@@ -382,6 +470,10 @@ export class ArtifactStateService {
382
470
  throw new Error(artifact.LatestResult?.Message || 'Failed to delete artifact');
383
471
  }
384
472
  }
473
+ /** @deprecated Use {@link DeleteArtifact}. */
474
+ async deleteArtifact(id, currentUser) {
475
+ return this.DeleteArtifact(id, currentUser);
476
+ }
385
477
  /**
386
478
  * Adds an artifact version to a collection
387
479
  * @param artifactId The artifact ID (for permission checking)
@@ -389,7 +481,7 @@ export class ArtifactStateService {
389
481
  * @param currentUser The current user context
390
482
  * @param versionId Optional specific version ID. If not provided, uses latest version
391
483
  */
392
- async addToCollection(artifactId, collectionId, currentUser, versionId) {
484
+ async AddToCollection(artifactId, collectionId, currentUser, versionId) {
393
485
  // Check edit permission (required to modify collection membership)
394
486
  const canEdit = await this.artifactPermissionService.checkPermission(artifactId, currentUser.ID, 'edit', currentUser);
395
487
  if (!canEdit) {
@@ -420,13 +512,17 @@ export class ArtifactStateService {
420
512
  throw new Error('Failed to add artifact to collection');
421
513
  }
422
514
  }
515
+ /** @deprecated Use {@link AddToCollection}. */
516
+ async addToCollection(artifactId, collectionId, currentUser, versionId) {
517
+ return this.AddToCollection(artifactId, collectionId, currentUser, versionId);
518
+ }
423
519
  /**
424
520
  * Removes all versions of an artifact from a collection
425
521
  * @param artifactId The artifact ID
426
522
  * @param collectionId The collection ID
427
523
  * @param currentUser The current user context
428
524
  */
429
- async removeFromCollection(artifactId, collectionId, currentUser) {
525
+ async RemoveFromCollection(artifactId, collectionId, currentUser) {
430
526
  // Check edit permission (required to modify collection membership)
431
527
  const canEdit = await this.artifactPermissionService.checkPermission(artifactId, currentUser.ID, 'edit', currentUser);
432
528
  if (!canEdit) {
@@ -456,6 +552,10 @@ export class ArtifactStateService {
456
552
  }
457
553
  }
458
554
  }
555
+ /** @deprecated Use {@link RemoveFromCollection}. */
556
+ async removeFromCollection(artifactId, collectionId, currentUser) {
557
+ return this.RemoveFromCollection(artifactId, collectionId, currentUser);
558
+ }
459
559
  static ɵfac = function ArtifactStateService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ArtifactStateService)(i0.ɵɵinject(i1.ArtifactPermissionService)); };
460
560
  static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ArtifactStateService, factory: ArtifactStateService.ɵfac, providedIn: 'root' });
461
561
  }