@memberjunction/ng-conversations 2.104.0

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 (226) hide show
  1. package/README.md +197 -0
  2. package/dist/lib/components/active-tasks/active-tasks-panel.component.d.ts +20 -0
  3. package/dist/lib/components/active-tasks/active-tasks-panel.component.d.ts.map +1 -0
  4. package/dist/lib/components/active-tasks/active-tasks-panel.component.js +125 -0
  5. package/dist/lib/components/active-tasks/active-tasks-panel.component.js.map +1 -0
  6. package/dist/lib/components/agent/active-agent-indicator.component.d.ts +48 -0
  7. package/dist/lib/components/agent/active-agent-indicator.component.d.ts.map +1 -0
  8. package/dist/lib/components/agent/active-agent-indicator.component.js +199 -0
  9. package/dist/lib/components/agent/active-agent-indicator.component.js.map +1 -0
  10. package/dist/lib/components/agent/agent-process-panel.component.d.ts +30 -0
  11. package/dist/lib/components/agent/agent-process-panel.component.d.ts.map +1 -0
  12. package/dist/lib/components/agent/agent-process-panel.component.js +333 -0
  13. package/dist/lib/components/agent/agent-process-panel.component.js.map +1 -0
  14. package/dist/lib/components/artifact/artifact-panel.component.d.ts +22 -0
  15. package/dist/lib/components/artifact/artifact-panel.component.d.ts.map +1 -0
  16. package/dist/lib/components/artifact/artifact-panel.component.js +237 -0
  17. package/dist/lib/components/artifact/artifact-panel.component.js.map +1 -0
  18. package/dist/lib/components/artifact/artifact-upload-modal.component.d.ts +39 -0
  19. package/dist/lib/components/artifact/artifact-upload-modal.component.d.ts.map +1 -0
  20. package/dist/lib/components/artifact/artifact-upload-modal.component.js +384 -0
  21. package/dist/lib/components/artifact/artifact-upload-modal.component.js.map +1 -0
  22. package/dist/lib/components/artifact/artifact-version-history.component.d.ts +28 -0
  23. package/dist/lib/components/artifact/artifact-version-history.component.d.ts.map +1 -0
  24. package/dist/lib/components/artifact/artifact-version-history.component.js +280 -0
  25. package/dist/lib/components/artifact/artifact-version-history.component.js.map +1 -0
  26. package/dist/lib/components/artifact/artifact-viewer-panel.component.d.ts +22 -0
  27. package/dist/lib/components/artifact/artifact-viewer-panel.component.d.ts.map +1 -0
  28. package/dist/lib/components/artifact/artifact-viewer-panel.component.js +182 -0
  29. package/dist/lib/components/artifact/artifact-viewer-panel.component.js.map +1 -0
  30. package/dist/lib/components/artifact/artifact-viewer.component.d.ts +27 -0
  31. package/dist/lib/components/artifact/artifact-viewer.component.d.ts.map +1 -0
  32. package/dist/lib/components/artifact/artifact-viewer.component.js +266 -0
  33. package/dist/lib/components/artifact/artifact-viewer.component.js.map +1 -0
  34. package/dist/lib/components/artifact/inline-artifact.component.d.ts +46 -0
  35. package/dist/lib/components/artifact/inline-artifact.component.d.ts.map +1 -0
  36. package/dist/lib/components/artifact/inline-artifact.component.js +447 -0
  37. package/dist/lib/components/artifact/inline-artifact.component.js.map +1 -0
  38. package/dist/lib/components/collection/collection-artifact-card.component.d.ts +18 -0
  39. package/dist/lib/components/collection/collection-artifact-card.component.d.ts.map +1 -0
  40. package/dist/lib/components/collection/collection-artifact-card.component.js +147 -0
  41. package/dist/lib/components/collection/collection-artifact-card.component.js.map +1 -0
  42. package/dist/lib/components/collection/collection-form-modal.component.d.ts +33 -0
  43. package/dist/lib/components/collection/collection-form-modal.component.d.ts.map +1 -0
  44. package/dist/lib/components/collection/collection-form-modal.component.js +245 -0
  45. package/dist/lib/components/collection/collection-form-modal.component.js.map +1 -0
  46. package/dist/lib/components/collection/collection-tree.component.d.ts +42 -0
  47. package/dist/lib/components/collection/collection-tree.component.d.ts.map +1 -0
  48. package/dist/lib/components/collection/collection-tree.component.js +482 -0
  49. package/dist/lib/components/collection/collection-tree.component.js.map +1 -0
  50. package/dist/lib/components/collection/collection-view.component.d.ts +31 -0
  51. package/dist/lib/components/collection/collection-view.component.d.ts.map +1 -0
  52. package/dist/lib/components/collection/collection-view.component.js +254 -0
  53. package/dist/lib/components/collection/collection-view.component.js.map +1 -0
  54. package/dist/lib/components/collection/collections-full-view.component.d.ts +55 -0
  55. package/dist/lib/components/collection/collections-full-view.component.d.ts.map +1 -0
  56. package/dist/lib/components/collection/collections-full-view.component.js +578 -0
  57. package/dist/lib/components/collection/collections-full-view.component.js.map +1 -0
  58. package/dist/lib/components/conversation/conversation-chat-area.component.d.ts +160 -0
  59. package/dist/lib/components/conversation/conversation-chat-area.component.d.ts.map +1 -0
  60. package/dist/lib/components/conversation/conversation-chat-area.component.js +891 -0
  61. package/dist/lib/components/conversation/conversation-chat-area.component.js.map +1 -0
  62. package/dist/lib/components/conversation/conversation-list.component.d.ts +29 -0
  63. package/dist/lib/components/conversation/conversation-list.component.d.ts.map +1 -0
  64. package/dist/lib/components/conversation/conversation-list.component.js +255 -0
  65. package/dist/lib/components/conversation/conversation-list.component.js.map +1 -0
  66. package/dist/lib/components/dialogs/input-dialog.component.d.ts +17 -0
  67. package/dist/lib/components/dialogs/input-dialog.component.d.ts.map +1 -0
  68. package/dist/lib/components/dialogs/input-dialog.component.js +122 -0
  69. package/dist/lib/components/dialogs/input-dialog.component.js.map +1 -0
  70. package/dist/lib/components/export/export-modal.component.d.ts +37 -0
  71. package/dist/lib/components/export/export-modal.component.d.ts.map +1 -0
  72. package/dist/lib/components/export/export-modal.component.js +414 -0
  73. package/dist/lib/components/export/export-modal.component.js.map +1 -0
  74. package/dist/lib/components/library/library-full-view.component.d.ts +36 -0
  75. package/dist/lib/components/library/library-full-view.component.d.ts.map +1 -0
  76. package/dist/lib/components/library/library-full-view.component.js +270 -0
  77. package/dist/lib/components/library/library-full-view.component.js.map +1 -0
  78. package/dist/lib/components/members/members-modal.component.d.ts +42 -0
  79. package/dist/lib/components/members/members-modal.component.d.ts.map +1 -0
  80. package/dist/lib/components/members/members-modal.component.js +352 -0
  81. package/dist/lib/components/members/members-modal.component.js.map +1 -0
  82. package/dist/lib/components/mention/mention-dropdown.component.d.ts +44 -0
  83. package/dist/lib/components/mention/mention-dropdown.component.d.ts.map +1 -0
  84. package/dist/lib/components/mention/mention-dropdown.component.js +194 -0
  85. package/dist/lib/components/mention/mention-dropdown.component.js.map +1 -0
  86. package/dist/lib/components/message/message-input.component.d.ts +137 -0
  87. package/dist/lib/components/message/message-input.component.d.ts.map +1 -0
  88. package/dist/lib/components/message/message-input.component.js +1159 -0
  89. package/dist/lib/components/message/message-input.component.js.map +1 -0
  90. package/dist/lib/components/message/message-item.component.d.ts +140 -0
  91. package/dist/lib/components/message/message-item.component.d.ts.map +1 -0
  92. package/dist/lib/components/message/message-item.component.js +817 -0
  93. package/dist/lib/components/message/message-item.component.js.map +1 -0
  94. package/dist/lib/components/message/message-list.component.d.ts +77 -0
  95. package/dist/lib/components/message/message-list.component.d.ts.map +1 -0
  96. package/dist/lib/components/message/message-list.component.js +316 -0
  97. package/dist/lib/components/message/message-list.component.js.map +1 -0
  98. package/dist/lib/components/navigation/conversation-navigation.component.d.ts +13 -0
  99. package/dist/lib/components/navigation/conversation-navigation.component.d.ts.map +1 -0
  100. package/dist/lib/components/navigation/conversation-navigation.component.js +88 -0
  101. package/dist/lib/components/navigation/conversation-navigation.component.js.map +1 -0
  102. package/dist/lib/components/notification/activity-indicator.component.d.ts +11 -0
  103. package/dist/lib/components/notification/activity-indicator.component.d.ts.map +1 -0
  104. package/dist/lib/components/notification/activity-indicator.component.js +56 -0
  105. package/dist/lib/components/notification/activity-indicator.component.js.map +1 -0
  106. package/dist/lib/components/notification/notification-badge.component.d.ts +27 -0
  107. package/dist/lib/components/notification/notification-badge.component.d.ts.map +1 -0
  108. package/dist/lib/components/notification/notification-badge.component.js +160 -0
  109. package/dist/lib/components/notification/notification-badge.component.js.map +1 -0
  110. package/dist/lib/components/project/project-form-modal.component.d.ts +34 -0
  111. package/dist/lib/components/project/project-form-modal.component.d.ts.map +1 -0
  112. package/dist/lib/components/project/project-form-modal.component.js +357 -0
  113. package/dist/lib/components/project/project-form-modal.component.js.map +1 -0
  114. package/dist/lib/components/project/project-selector.component.d.ts +36 -0
  115. package/dist/lib/components/project/project-selector.component.d.ts.map +1 -0
  116. package/dist/lib/components/project/project-selector.component.js +317 -0
  117. package/dist/lib/components/project/project-selector.component.js.map +1 -0
  118. package/dist/lib/components/search/search-panel.component.d.ts +120 -0
  119. package/dist/lib/components/search/search-panel.component.d.ts.map +1 -0
  120. package/dist/lib/components/search/search-panel.component.js +714 -0
  121. package/dist/lib/components/search/search-panel.component.js.map +1 -0
  122. package/dist/lib/components/share/share-modal.component.d.ts +46 -0
  123. package/dist/lib/components/share/share-modal.component.d.ts.map +1 -0
  124. package/dist/lib/components/share/share-modal.component.js +431 -0
  125. package/dist/lib/components/share/share-modal.component.js.map +1 -0
  126. package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts +18 -0
  127. package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts.map +1 -0
  128. package/dist/lib/components/sidebar/conversation-sidebar.component.js +81 -0
  129. package/dist/lib/components/sidebar/conversation-sidebar.component.js.map +1 -0
  130. package/dist/lib/components/task/task-form-modal.component.d.ts +42 -0
  131. package/dist/lib/components/task/task-form-modal.component.d.ts.map +1 -0
  132. package/dist/lib/components/task/task-form-modal.component.js +329 -0
  133. package/dist/lib/components/task/task-form-modal.component.js.map +1 -0
  134. package/dist/lib/components/task/task-item.component.d.ts +22 -0
  135. package/dist/lib/components/task/task-item.component.d.ts.map +1 -0
  136. package/dist/lib/components/task/task-item.component.js +234 -0
  137. package/dist/lib/components/task/task-item.component.js.map +1 -0
  138. package/dist/lib/components/task/task-list.component.d.ts +32 -0
  139. package/dist/lib/components/task/task-list.component.d.ts.map +1 -0
  140. package/dist/lib/components/task/task-list.component.js +290 -0
  141. package/dist/lib/components/task/task-list.component.js.map +1 -0
  142. package/dist/lib/components/tasks/tasks-dropdown.component.d.ts +27 -0
  143. package/dist/lib/components/tasks/tasks-dropdown.component.d.ts.map +1 -0
  144. package/dist/lib/components/tasks/tasks-dropdown.component.js +254 -0
  145. package/dist/lib/components/tasks/tasks-dropdown.component.js.map +1 -0
  146. package/dist/lib/components/thread/thread-panel.component.d.ts +65 -0
  147. package/dist/lib/components/thread/thread-panel.component.d.ts.map +1 -0
  148. package/dist/lib/components/thread/thread-panel.component.js +325 -0
  149. package/dist/lib/components/thread/thread-panel.component.js.map +1 -0
  150. package/dist/lib/components/toast/toast.component.d.ts +26 -0
  151. package/dist/lib/components/toast/toast.component.d.ts.map +1 -0
  152. package/dist/lib/components/toast/toast.component.js +108 -0
  153. package/dist/lib/components/toast/toast.component.js.map +1 -0
  154. package/dist/lib/components/workspace/conversation-workspace.component.d.ts +75 -0
  155. package/dist/lib/components/workspace/conversation-workspace.component.d.ts.map +1 -0
  156. package/dist/lib/components/workspace/conversation-workspace.component.js +299 -0
  157. package/dist/lib/components/workspace/conversation-workspace.component.js.map +1 -0
  158. package/dist/lib/conversations.module.d.ts +62 -0
  159. package/dist/lib/conversations.module.d.ts.map +1 -0
  160. package/dist/lib/conversations.module.js +248 -0
  161. package/dist/lib/conversations.module.js.map +1 -0
  162. package/dist/lib/directives/search-shortcut.directive.d.ts +17 -0
  163. package/dist/lib/directives/search-shortcut.directive.d.ts.map +1 -0
  164. package/dist/lib/directives/search-shortcut.directive.js +39 -0
  165. package/dist/lib/directives/search-shortcut.directive.js.map +1 -0
  166. package/dist/lib/models/conversation-state.model.d.ts +72 -0
  167. package/dist/lib/models/conversation-state.model.d.ts.map +1 -0
  168. package/dist/lib/models/conversation-state.model.js +2 -0
  169. package/dist/lib/models/conversation-state.model.js.map +1 -0
  170. package/dist/lib/models/notification.model.d.ts +89 -0
  171. package/dist/lib/models/notification.model.d.ts.map +1 -0
  172. package/dist/lib/models/notification.model.js +11 -0
  173. package/dist/lib/models/notification.model.js.map +1 -0
  174. package/dist/lib/services/active-tasks.service.d.ts +65 -0
  175. package/dist/lib/services/active-tasks.service.d.ts.map +1 -0
  176. package/dist/lib/services/active-tasks.service.js +95 -0
  177. package/dist/lib/services/active-tasks.service.js.map +1 -0
  178. package/dist/lib/services/agent-state.service.d.ts +78 -0
  179. package/dist/lib/services/agent-state.service.d.ts.map +1 -0
  180. package/dist/lib/services/agent-state.service.js +213 -0
  181. package/dist/lib/services/agent-state.service.js.map +1 -0
  182. package/dist/lib/services/artifact-state.service.d.ts +114 -0
  183. package/dist/lib/services/artifact-state.service.d.ts.map +1 -0
  184. package/dist/lib/services/artifact-state.service.js +288 -0
  185. package/dist/lib/services/artifact-state.service.js.map +1 -0
  186. package/dist/lib/services/conversation-agent.service.d.ts +79 -0
  187. package/dist/lib/services/conversation-agent.service.d.ts.map +1 -0
  188. package/dist/lib/services/conversation-agent.service.js +259 -0
  189. package/dist/lib/services/conversation-agent.service.js.map +1 -0
  190. package/dist/lib/services/conversation-state.service.d.ts +122 -0
  191. package/dist/lib/services/conversation-state.service.d.ts.map +1 -0
  192. package/dist/lib/services/conversation-state.service.js +255 -0
  193. package/dist/lib/services/conversation-state.service.js.map +1 -0
  194. package/dist/lib/services/dialog.service.d.ts +54 -0
  195. package/dist/lib/services/dialog.service.d.ts.map +1 -0
  196. package/dist/lib/services/dialog.service.js +157 -0
  197. package/dist/lib/services/dialog.service.js.map +1 -0
  198. package/dist/lib/services/export.service.d.ts +25 -0
  199. package/dist/lib/services/export.service.d.ts.map +1 -0
  200. package/dist/lib/services/export.service.js +237 -0
  201. package/dist/lib/services/export.service.js.map +1 -0
  202. package/dist/lib/services/mention-autocomplete.service.d.ts +59 -0
  203. package/dist/lib/services/mention-autocomplete.service.d.ts.map +1 -0
  204. package/dist/lib/services/mention-autocomplete.service.js +160 -0
  205. package/dist/lib/services/mention-autocomplete.service.js.map +1 -0
  206. package/dist/lib/services/mention-parser.service.d.ts +46 -0
  207. package/dist/lib/services/mention-parser.service.d.ts.map +1 -0
  208. package/dist/lib/services/mention-parser.service.js +156 -0
  209. package/dist/lib/services/mention-parser.service.js.map +1 -0
  210. package/dist/lib/services/notification.service.d.ts +108 -0
  211. package/dist/lib/services/notification.service.d.ts.map +1 -0
  212. package/dist/lib/services/notification.service.js +431 -0
  213. package/dist/lib/services/notification.service.js.map +1 -0
  214. package/dist/lib/services/search.service.d.ts +144 -0
  215. package/dist/lib/services/search.service.d.ts.map +1 -0
  216. package/dist/lib/services/search.service.js +370 -0
  217. package/dist/lib/services/search.service.js.map +1 -0
  218. package/dist/lib/services/toast.service.d.ts +46 -0
  219. package/dist/lib/services/toast.service.d.ts.map +1 -0
  220. package/dist/lib/services/toast.service.js +76 -0
  221. package/dist/lib/services/toast.service.js.map +1 -0
  222. package/dist/public-api.d.ts +42 -0
  223. package/dist/public-api.d.ts.map +1 -0
  224. package/dist/public-api.js +49 -0
  225. package/dist/public-api.js.map +1 -0
  226. package/package.json +54 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversations.module.js","sourceRoot":"","sources":["../../src/lib/conversations.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,mBAAmB;AACnB,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEtE,yBAAyB;AACzB,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,gBAA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;QAC1B,0BAA0B;QAC1B,cAAc;QACd,oBAAoB,EA4BlB,uBAAuB"}
@@ -0,0 +1,17 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Directive to handle global search keyboard shortcut (Ctrl+K or Cmd+K)
5
+ * Usage: Add to your main app component or workspace component
6
+ * <div mjSearchShortcut (searchTriggered)="openSearch()">
7
+ */
8
+ export declare class SearchShortcutDirective {
9
+ searchTriggered: EventEmitter<void>;
10
+ /**
11
+ * Listen for Ctrl+K or Cmd+K
12
+ */
13
+ handleKeyboardEvent(event: KeyboardEvent): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<SearchShortcutDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SearchShortcutDirective, "[mjSearchShortcut]", never, {}, { "searchTriggered": "searchTriggered"; }, never, never, false, never>;
16
+ }
17
+ //# sourceMappingURL=search-shortcut.directive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-shortcut.directive.d.ts","sourceRoot":"","sources":["../../../src/lib/directives/search-shortcut.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,YAAY,EAAE,MAAM,eAAe,CAAC;;AAE9E;;;;GAIG;AACH,qBAGa,uBAAuB;IACxB,eAAe,qBAA4B;IAErD;;OAEG;IAEH,mBAAmB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;yCAPpC,uBAAuB;2CAAvB,uBAAuB;CAkBnC"}
@@ -0,0 +1,39 @@
1
+ import { Directive, HostListener, Output, EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Directive to handle global search keyboard shortcut (Ctrl+K or Cmd+K)
5
+ * Usage: Add to your main app component or workspace component
6
+ * <div mjSearchShortcut (searchTriggered)="openSearch()">
7
+ */
8
+ export class SearchShortcutDirective {
9
+ searchTriggered = new EventEmitter();
10
+ /**
11
+ * Listen for Ctrl+K or Cmd+K
12
+ */
13
+ handleKeyboardEvent(event) {
14
+ const isMac = navigator.platform.toUpperCase().indexOf('MAC') >= 0;
15
+ const isCtrlOrCmd = isMac ? event.metaKey : event.ctrlKey;
16
+ // Check for Ctrl+K or Cmd+K
17
+ if (isCtrlOrCmd && event.key === 'k') {
18
+ event.preventDefault();
19
+ event.stopPropagation();
20
+ this.searchTriggered.emit();
21
+ }
22
+ }
23
+ static ɵfac = function SearchShortcutDirective_Factory(t) { return new (t || SearchShortcutDirective)(); };
24
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SearchShortcutDirective, selectors: [["", "mjSearchShortcut", ""]], hostBindings: function SearchShortcutDirective_HostBindings(rf, ctx) { if (rf & 1) {
25
+ i0.ɵɵlistener("keydown", function SearchShortcutDirective_keydown_HostBindingHandler($event) { return ctx.handleKeyboardEvent($event); }, false, i0.ɵɵresolveDocument);
26
+ } }, outputs: { searchTriggered: "searchTriggered" } });
27
+ }
28
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchShortcutDirective, [{
29
+ type: Directive,
30
+ args: [{
31
+ selector: '[mjSearchShortcut]'
32
+ }]
33
+ }], null, { searchTriggered: [{
34
+ type: Output
35
+ }], handleKeyboardEvent: [{
36
+ type: HostListener,
37
+ args: ['document:keydown', ['$event']]
38
+ }] }); })();
39
+ //# sourceMappingURL=search-shortcut.directive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-shortcut.directive.js","sourceRoot":"","sources":["../../../src/lib/directives/search-shortcut.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;;AAE9E;;;;GAIG;AAIH,MAAM,OAAO,uBAAuB;IACxB,eAAe,GAAG,IAAI,YAAY,EAAQ,CAAC;IAErD;;OAEG;IAEH,mBAAmB,CAAC,KAAoB;QACtC,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACnE,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;QAE1D,4BAA4B;QAC5B,IAAI,WAAW,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,EAAE,CAAC;YACrC,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,eAAe,EAAE,CAAC;YACxB,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC;QAC9B,CAAC;IACH,CAAC;iFAjBU,uBAAuB;6DAAvB,uBAAuB;YAAvB,sGAAA,+BACZ,iCADmC;;;iFAAvB,uBAAuB;cAHnC,SAAS;eAAC;gBACT,QAAQ,EAAE,oBAAoB;aAC/B;gBAEW,eAAe;kBAAxB,MAAM;YAMP,mBAAmB;kBADlB,YAAY;mBAAC,kBAAkB,EAAE,CAAC,QAAQ,CAAC"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Represents an active agent process
3
+ */
4
+ export interface AgentProcess {
5
+ id: string;
6
+ agentId: string;
7
+ agentName: string;
8
+ agentColor: string;
9
+ status: 'pending' | 'in_progress' | 'complete' | 'failed';
10
+ message: string;
11
+ progress?: number;
12
+ startedAt: Date;
13
+ }
14
+ /**
15
+ * Options for filtering tasks
16
+ */
17
+ export interface TaskFilters {
18
+ status?: string[];
19
+ projectId?: string;
20
+ assignedToUserId?: string;
21
+ assignedToAgentId?: string;
22
+ environmentId?: string;
23
+ }
24
+ /**
25
+ * Options for creating public links
26
+ */
27
+ export interface PublicLinkOptions {
28
+ password?: string;
29
+ expiresAt?: Date;
30
+ maxViews?: number;
31
+ }
32
+ /**
33
+ * Tab types for the main navigation
34
+ */
35
+ export type NavigationTab = 'conversations' | 'collections';
36
+ /**
37
+ * Layout modes for the workspace
38
+ */
39
+ export type WorkspaceLayout = 'full' | 'compact' | 'embedded';
40
+ /**
41
+ * View modes for collections
42
+ */
43
+ export type CollectionViewMode = 'grid' | 'list';
44
+ /**
45
+ * Sort options for artifacts
46
+ */
47
+ export type ArtifactSortBy = 'name' | 'date' | 'type' | 'modified';
48
+ /**
49
+ * Grouping options for conversations
50
+ */
51
+ export type ConversationGroupBy = 'project' | 'date' | 'none';
52
+ /**
53
+ * Type of entity being mentioned
54
+ */
55
+ export type MentionType = 'agent' | 'user';
56
+ /**
57
+ * Represents a mention in a message (@Agent or @User)
58
+ */
59
+ export interface Mention {
60
+ type: MentionType;
61
+ id: string;
62
+ name: string;
63
+ }
64
+ /**
65
+ * Result of parsing mentions from a message
66
+ */
67
+ export interface MentionParseResult {
68
+ mentions: Mention[];
69
+ agentMention: Mention | null;
70
+ userMentions: Mention[];
71
+ }
72
+ //# sourceMappingURL=conversation-state.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-state.model.d.ts","sourceRoot":"","sources":["../../../src/lib/models/conversation-state.model.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC1D,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG,aAAa,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,WAAW,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,YAAY,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,OAAO,EAAE,CAAC;CACzB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=conversation-state.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-state.model.js","sourceRoot":"","sources":["../../../src/lib/models/conversation-state.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Notification types supported by the system
3
+ */
4
+ export type NotificationType = 'message' | 'artifact' | 'agent_process' | 'task';
5
+ /**
6
+ * Notification priority levels
7
+ */
8
+ export type NotificationPriority = 'low' | 'normal' | 'high' | 'urgent';
9
+ /**
10
+ * Represents a notification for a conversation
11
+ */
12
+ export interface ConversationNotification {
13
+ conversationId: string;
14
+ unreadMessageCount: number;
15
+ lastReadMessageTimestamp: Date | null;
16
+ lastMessageTimestamp: Date | null;
17
+ hasNewArtifacts: boolean;
18
+ hasActiveAgentProcesses: boolean;
19
+ newArtifactCount: number;
20
+ activeAgentProcessCount: number;
21
+ lastNotificationTimestamp: Date;
22
+ highestPriority: NotificationPriority;
23
+ }
24
+ /**
25
+ * Represents a single notification item
26
+ */
27
+ export interface NotificationItem {
28
+ id: string;
29
+ conversationId: string;
30
+ type: NotificationType;
31
+ priority: NotificationPriority;
32
+ title: string;
33
+ message: string;
34
+ timestamp: Date;
35
+ isRead: boolean;
36
+ metadata?: Record<string, any>;
37
+ }
38
+ /**
39
+ * User notification preferences
40
+ */
41
+ export interface NotificationPreferences {
42
+ enableSound: boolean;
43
+ enableDesktopNotifications: boolean;
44
+ enableInAppNotifications: boolean;
45
+ showBadges: boolean;
46
+ muteUntil?: Date;
47
+ mutedConversations: string[];
48
+ }
49
+ /**
50
+ * Notification state for persistence
51
+ */
52
+ export interface NotificationState {
53
+ conversations: Record<string, ConversationNotification>;
54
+ preferences: NotificationPreferences;
55
+ lastUpdated: Date;
56
+ }
57
+ /**
58
+ * Badge display configuration
59
+ */
60
+ export interface BadgeConfig {
61
+ show: boolean;
62
+ count?: number;
63
+ type?: 'count' | 'dot' | 'pulse' | 'new';
64
+ priority?: NotificationPriority;
65
+ animate?: boolean;
66
+ }
67
+ /**
68
+ * Activity indicator configuration
69
+ */
70
+ export interface ActivityIndicatorConfig {
71
+ show: boolean;
72
+ type: 'agent' | 'processing' | 'typing';
73
+ text?: string;
74
+ color?: string;
75
+ }
76
+ /**
77
+ * Event emitted when notification state changes
78
+ */
79
+ export interface NotificationChangeEvent {
80
+ conversationId: string;
81
+ type: NotificationType;
82
+ action: 'added' | 'read' | 'cleared';
83
+ timestamp: Date;
84
+ }
85
+ /**
86
+ * Default notification preferences
87
+ */
88
+ export declare const DEFAULT_NOTIFICATION_PREFERENCES: NotificationPreferences;
89
+ //# sourceMappingURL=notification.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.model.d.ts","sourceRoot":"","sources":["../../../src/lib/models/notification.model.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,UAAU,GAAG,eAAe,GAAG,MAAM,CAAC;AAEjF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wBAAwB,EAAE,IAAI,GAAG,IAAI,CAAC;IACtC,oBAAoB,EAAE,IAAI,GAAG,IAAI,CAAC;IAClC,eAAe,EAAE,OAAO,CAAC;IACzB,uBAAuB,EAAE,OAAO,CAAC;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,uBAAuB,EAAE,MAAM,CAAC;IAChC,yBAAyB,EAAE,IAAI,CAAC;IAChC,eAAe,EAAE,oBAAoB,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,OAAO,CAAC;IACrB,0BAA0B,EAAE,OAAO,CAAC;IACpC,wBAAwB,EAAE,OAAO,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,kBAAkB,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;IACxD,WAAW,EAAE,uBAAuB,CAAC;IACrC,WAAW,EAAE,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,KAAK,CAAC;IACzC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,GAAG,YAAY,GAAG,QAAQ,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,SAAS,EAAE,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,uBAM9C,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Default notification preferences
3
+ */
4
+ export const DEFAULT_NOTIFICATION_PREFERENCES = {
5
+ enableSound: false,
6
+ enableDesktopNotifications: false,
7
+ enableInAppNotifications: true,
8
+ showBadges: true,
9
+ mutedConversations: []
10
+ };
11
+ //# sourceMappingURL=notification.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.model.js","sourceRoot":"","sources":["../../../src/lib/models/notification.model.ts"],"names":[],"mappings":"AA6FA;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAA4B;IACvE,WAAW,EAAE,KAAK;IAClB,0BAA0B,EAAE,KAAK;IACjC,wBAAwB,EAAE,IAAI;IAC9B,UAAU,EAAE,IAAI;IAChB,kBAAkB,EAAE,EAAE;CACvB,CAAC"}
@@ -0,0 +1,65 @@
1
+ import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Represents an active agent task that is currently running
5
+ */
6
+ export interface ActiveTask {
7
+ id: string;
8
+ agentName: string;
9
+ status: string;
10
+ relatedMessageId: string;
11
+ conversationDetailId?: string;
12
+ startTime: number;
13
+ }
14
+ /**
15
+ * Service for tracking active agent tasks across the application.
16
+ * Maintains a live list of running agents and their status.
17
+ */
18
+ export declare class ActiveTasksService {
19
+ private _tasks$;
20
+ /**
21
+ * Observable of all active tasks as an array
22
+ */
23
+ readonly tasks$: Observable<ActiveTask[]>;
24
+ /**
25
+ * Observable of the count of active tasks
26
+ */
27
+ readonly taskCount$: Observable<number>;
28
+ /**
29
+ * Add a new active task
30
+ * @param task Task details (without id and startTime)
31
+ * @returns The generated task ID
32
+ */
33
+ add(task: Omit<ActiveTask, 'id' | 'startTime'>): string;
34
+ /**
35
+ * Remove an active task
36
+ * @param id The task ID to remove
37
+ */
38
+ remove(id: string): void;
39
+ /**
40
+ * Update the status of an active task
41
+ * @param id The task ID
42
+ * @param status The new status text
43
+ */
44
+ updateStatus(id: string, status: string): void;
45
+ /**
46
+ * Get an active task by its conversation detail ID
47
+ * @param conversationDetailId The conversation detail ID
48
+ * @returns The task if found, undefined otherwise
49
+ */
50
+ getByConversationDetailId(conversationDetailId: string): ActiveTask | undefined;
51
+ /**
52
+ * Update the status of a task by its conversation detail ID
53
+ * @param conversationDetailId The conversation detail ID
54
+ * @param status The new status text
55
+ * @returns true if task was found and updated, false otherwise
56
+ */
57
+ updateStatusByConversationDetailId(conversationDetailId: string, status: string): boolean;
58
+ /**
59
+ * Clear all active tasks
60
+ */
61
+ clear(): void;
62
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActiveTasksService, never>;
63
+ static ɵprov: i0.ɵɵInjectableDeclaration<ActiveTasksService>;
64
+ }
65
+ //# sourceMappingURL=active-tasks.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"active-tasks.service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/active-tasks.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,UAAU,EAAE,MAAM,MAAM,CAAC;;AAGnD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,qBAGa,kBAAkB;IAC7B,OAAO,CAAC,OAAO,CAA2D;IAE1E;;OAEG;IACH,SAAgB,MAAM,EAAE,UAAU,CAAC,UAAU,EAAE,CAAC,CAE9C;IAEF;;OAEG;IACH,SAAgB,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,CAE5C;IAEF;;;;OAIG;IACH,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,WAAW,CAAC,GAAG,MAAM;IAYvD;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAS9C;;;;OAIG;IACH,yBAAyB,CAAC,oBAAoB,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS;IAK/E;;;;;OAKG;IACH,kCAAkC,CAAC,oBAAoB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;IASzF;;OAEG;IACH,KAAK,IAAI,IAAI;yCAtFF,kBAAkB;6CAAlB,kBAAkB;CAyF9B"}
@@ -0,0 +1,95 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ import { map } from 'rxjs/operators';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Service for tracking active agent tasks across the application.
7
+ * Maintains a live list of running agents and their status.
8
+ */
9
+ export class ActiveTasksService {
10
+ _tasks$ = new BehaviorSubject(new Map());
11
+ /**
12
+ * Observable of all active tasks as an array
13
+ */
14
+ tasks$ = this._tasks$.pipe(map(taskMap => Array.from(taskMap.values())));
15
+ /**
16
+ * Observable of the count of active tasks
17
+ */
18
+ taskCount$ = this.tasks$.pipe(map(tasks => tasks.length));
19
+ /**
20
+ * Add a new active task
21
+ * @param task Task details (without id and startTime)
22
+ * @returns The generated task ID
23
+ */
24
+ add(task) {
25
+ const id = `task-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`;
26
+ const current = this._tasks$.value;
27
+ current.set(id, {
28
+ ...task,
29
+ id,
30
+ startTime: Date.now()
31
+ });
32
+ this._tasks$.next(new Map(current));
33
+ return id;
34
+ }
35
+ /**
36
+ * Remove an active task
37
+ * @param id The task ID to remove
38
+ */
39
+ remove(id) {
40
+ const current = this._tasks$.value;
41
+ current.delete(id);
42
+ this._tasks$.next(new Map(current));
43
+ }
44
+ /**
45
+ * Update the status of an active task
46
+ * @param id The task ID
47
+ * @param status The new status text
48
+ */
49
+ updateStatus(id, status) {
50
+ const current = this._tasks$.value;
51
+ const task = current.get(id);
52
+ if (task) {
53
+ task.status = status;
54
+ this._tasks$.next(new Map(current));
55
+ }
56
+ }
57
+ /**
58
+ * Get an active task by its conversation detail ID
59
+ * @param conversationDetailId The conversation detail ID
60
+ * @returns The task if found, undefined otherwise
61
+ */
62
+ getByConversationDetailId(conversationDetailId) {
63
+ const tasks = Array.from(this._tasks$.value.values());
64
+ return tasks.find(task => task.conversationDetailId === conversationDetailId);
65
+ }
66
+ /**
67
+ * Update the status of a task by its conversation detail ID
68
+ * @param conversationDetailId The conversation detail ID
69
+ * @param status The new status text
70
+ * @returns true if task was found and updated, false otherwise
71
+ */
72
+ updateStatusByConversationDetailId(conversationDetailId, status) {
73
+ const task = this.getByConversationDetailId(conversationDetailId);
74
+ if (task) {
75
+ this.updateStatus(task.id, status);
76
+ return true;
77
+ }
78
+ return false;
79
+ }
80
+ /**
81
+ * Clear all active tasks
82
+ */
83
+ clear() {
84
+ this._tasks$.next(new Map());
85
+ }
86
+ static ɵfac = function ActiveTasksService_Factory(t) { return new (t || ActiveTasksService)(); };
87
+ static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ActiveTasksService, factory: ActiveTasksService.ɵfac, providedIn: 'root' });
88
+ }
89
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActiveTasksService, [{
90
+ type: Injectable,
91
+ args: [{
92
+ providedIn: 'root'
93
+ }]
94
+ }], null, null); })();
95
+ //# sourceMappingURL=active-tasks.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"active-tasks.service.js","sourceRoot":"","sources":["../../../src/lib/services/active-tasks.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAc,MAAM,MAAM,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;;AAcrC;;;GAGG;AAIH,MAAM,OAAO,kBAAkB;IACrB,OAAO,GAAG,IAAI,eAAe,CAA0B,IAAI,GAAG,EAAE,CAAC,CAAC;IAE1E;;OAEG;IACa,MAAM,GAA6B,IAAI,CAAC,OAAO,CAAC,IAAI,CAClE,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAC7C,CAAC;IAEF;;OAEG;IACa,UAAU,GAAuB,I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;OAIG;IACH,yBAAyB,CAAC,oBAA4B;QACpD,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;QACtD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,oBAAoB,KAAK,oBAAoB,CAAC,CAAC;IAChF,CAAC;IAED;;;;;OAKG;IACH,kCAAkC,CAAC,oBAA4B,EAAE,MAAc;QAC7E,MAAM,IAAI,GAAG,IAAI,CAAC,yBAAyB,CAAC,oBAAoB,CAAC,CAAC;QAClE,IAAI,IAAI,EAAE,CAAC;YACT,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;YACnC,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;IAC/B,CAAC;4EAxFU,kBAAkB;gEAAlB,kBAAkB,WAAlB,kBAAkB,mBAFjB,MAAM;;iFAEP,kBAAkB;cAH9B,UAAU;eAAC;gBACV,UAAU,EAAE,MAAM;aACnB"}
@@ -0,0 +1,78 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { UserInfo } from '@memberjunction/core';
4
+ import { AIAgentRunEntity } from '@memberjunction/core-entities';
5
+ import * as i0 from "@angular/core";
6
+ export type AgentStatus = 'acknowledging' | 'working' | 'completing' | 'completed' | 'error';
7
+ export interface AgentWithStatus {
8
+ run: AIAgentRunEntity;
9
+ status: AgentStatus;
10
+ confidence: number | null;
11
+ }
12
+ /**
13
+ * Manages agent state and provides real-time updates for active agents
14
+ * Polls for agent status changes and provides reactive streams
15
+ */
16
+ export declare class AgentStateService implements OnDestroy {
17
+ private _activeAgents$;
18
+ private pollSubscription?;
19
+ private currentUser?;
20
+ private pollInterval;
21
+ readonly activeAgents$: Observable<AgentWithStatus[]>;
22
+ constructor();
23
+ ngOnDestroy(): void;
24
+ /**
25
+ * Starts polling for active agents
26
+ * @param currentUser The current user context
27
+ * @param conversationId Optional conversation ID to filter by
28
+ */
29
+ startPolling(currentUser: UserInfo, conversationId?: string): void;
30
+ /**
31
+ * Stops polling for active agents
32
+ */
33
+ stopPolling(): void;
34
+ /**
35
+ * Gets active agents as an observable
36
+ * @param conversationId Optional conversation ID to filter by
37
+ */
38
+ getActiveAgents(conversationId?: string): Observable<AgentWithStatus[]>;
39
+ /**
40
+ * Gets a specific agent by ID
41
+ * @param agentRunId The agent run ID
42
+ */
43
+ getAgent(agentRunId: string): AgentWithStatus | undefined;
44
+ /**
45
+ * Manually refreshes active agents
46
+ * @param conversationId Optional conversation ID to filter by
47
+ */
48
+ refresh(conversationId?: string): Promise<void>;
49
+ /**
50
+ * Loads active agents from the database
51
+ */
52
+ private loadActiveAgents;
53
+ /**
54
+ * Maps an agent run to include status and confidence information
55
+ */
56
+ private mapRunToAgentWithStatus;
57
+ /**
58
+ * Determines the agent status based on the run entity
59
+ */
60
+ private determineAgentStatus;
61
+ /**
62
+ * Extracts confidence score from agent run if available
63
+ */
64
+ private extractConfidence;
65
+ /**
66
+ * Cancels an agent run
67
+ * @param agentRunId The agent run ID to cancel
68
+ */
69
+ cancelAgent(agentRunId: string): Promise<boolean>;
70
+ /**
71
+ * Updates the poll interval
72
+ * @param milliseconds The new poll interval in milliseconds
73
+ */
74
+ setPollInterval(milliseconds: number): void;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgentStateService, never>;
76
+ static ɵprov: i0.ɵɵInjectableDeclaration<AgentStateService>;
77
+ }
78
+ //# sourceMappingURL=agent-state.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-state.service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/agent-state.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAA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