@memberjunction/ng-core-entity-forms 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 (327) hide show
  1. package/README.md +22 -0
  2. package/dist/lib/custom/AIAgentCategories/ai-agent-category-overview.panel.d.ts +1 -1
  3. package/dist/lib/custom/AIAgentCategories/ai-agent-category-overview.panel.js +2 -2
  4. package/dist/lib/custom/AIAgentCategories/ai-agent-category-overview.panel.js.map +1 -1
  5. package/dist/lib/custom/AIAgentSessions/ai-agent-session-form.component.js.map +1 -1
  6. package/dist/lib/custom/AIAgents/add-action-dialog.component.d.ts +90 -16
  7. package/dist/lib/custom/AIAgents/add-action-dialog.component.d.ts.map +1 -1
  8. package/dist/lib/custom/AIAgents/add-action-dialog.component.js +218 -70
  9. package/dist/lib/custom/AIAgents/add-action-dialog.component.js.map +1 -1
  10. package/dist/lib/custom/AIAgents/agent-prompt-advanced-settings-dialog.component.d.ts +80 -16
  11. package/dist/lib/custom/AIAgents/agent-prompt-advanced-settings-dialog.component.d.ts.map +1 -1
  12. package/dist/lib/custom/AIAgents/agent-prompt-advanced-settings-dialog.component.js +146 -46
  13. package/dist/lib/custom/AIAgents/agent-prompt-advanced-settings-dialog.component.js.map +1 -1
  14. package/dist/lib/custom/AIAgents/ai-agent-form.component.d.ts +329 -27
  15. package/dist/lib/custom/AIAgents/ai-agent-form.component.d.ts.map +1 -1
  16. package/dist/lib/custom/AIAgents/ai-agent-form.component.js +794 -262
  17. package/dist/lib/custom/AIAgents/ai-agent-form.component.js.map +1 -1
  18. package/dist/lib/custom/AIAgents/ai-agent-management.service.d.ts +76 -0
  19. package/dist/lib/custom/AIAgents/ai-agent-management.service.d.ts.map +1 -1
  20. package/dist/lib/custom/AIAgents/ai-agent-management.service.js +77 -33
  21. package/dist/lib/custom/AIAgents/ai-agent-management.service.js.map +1 -1
  22. package/dist/lib/custom/AIAgents/create-prompt-dialog.component.d.ts +69 -15
  23. package/dist/lib/custom/AIAgents/create-prompt-dialog.component.d.ts.map +1 -1
  24. package/dist/lib/custom/AIAgents/create-prompt-dialog.component.js +182 -74
  25. package/dist/lib/custom/AIAgents/create-prompt-dialog.component.js.map +1 -1
  26. package/dist/lib/custom/AIAgents/create-sub-agent-dialog.component.d.ts +105 -25
  27. package/dist/lib/custom/AIAgents/create-sub-agent-dialog.component.d.ts.map +1 -1
  28. package/dist/lib/custom/AIAgents/create-sub-agent-dialog.component.js +272 -112
  29. package/dist/lib/custom/AIAgents/create-sub-agent-dialog.component.js.map +1 -1
  30. package/dist/lib/custom/AIAgents/new-agent-dialog.component.d.ts +32 -6
  31. package/dist/lib/custom/AIAgents/new-agent-dialog.component.d.ts.map +1 -1
  32. package/dist/lib/custom/AIAgents/new-agent-dialog.component.js +71 -19
  33. package/dist/lib/custom/AIAgents/new-agent-dialog.component.js.map +1 -1
  34. package/dist/lib/custom/AIAgents/new-agent-dialog.service.d.ts +10 -0
  35. package/dist/lib/custom/AIAgents/new-agent-dialog.service.d.ts.map +1 -1
  36. package/dist/lib/custom/AIAgents/new-agent-dialog.service.js +27 -7
  37. package/dist/lib/custom/AIAgents/new-agent-dialog.service.js.map +1 -1
  38. package/dist/lib/custom/AIAgents/prompt-selector-dialog.component.d.ts +65 -15
  39. package/dist/lib/custom/AIAgents/prompt-selector-dialog.component.d.ts.map +1 -1
  40. package/dist/lib/custom/AIAgents/prompt-selector-dialog.component.js +152 -52
  41. package/dist/lib/custom/AIAgents/prompt-selector-dialog.component.js.map +1 -1
  42. package/dist/lib/custom/AIAgents/sub-agent-advanced-settings-dialog.component.d.ts +81 -15
  43. package/dist/lib/custom/AIAgents/sub-agent-advanced-settings-dialog.component.d.ts.map +1 -1
  44. package/dist/lib/custom/AIAgents/sub-agent-advanced-settings-dialog.component.js +145 -45
  45. package/dist/lib/custom/AIAgents/sub-agent-advanced-settings-dialog.component.js.map +1 -1
  46. package/dist/lib/custom/AIAgents/sub-agent-selector-dialog.component.d.ts +71 -17
  47. package/dist/lib/custom/AIAgents/sub-agent-selector-dialog.component.d.ts.map +1 -1
  48. package/dist/lib/custom/AIAgents/sub-agent-selector-dialog.component.js +175 -67
  49. package/dist/lib/custom/AIAgents/sub-agent-selector-dialog.component.js.map +1 -1
  50. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.d.ts +173 -27
  51. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.d.ts.map +1 -1
  52. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.js +385 -93
  53. package/dist/lib/custom/AIPromptRuns/ai-prompt-run-form.component.js.map +1 -1
  54. package/dist/lib/custom/AIPromptRuns/chat-message-viewer.component.d.ts +64 -4
  55. package/dist/lib/custom/AIPromptRuns/chat-message-viewer.component.d.ts.map +1 -1
  56. package/dist/lib/custom/AIPromptRuns/chat-message-viewer.component.js +129 -29
  57. package/dist/lib/custom/AIPromptRuns/chat-message-viewer.component.js.map +1 -1
  58. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.d.ts +260 -27
  59. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.d.ts.map +1 -1
  60. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.js +686 -238
  61. package/dist/lib/custom/AIPrompts/ai-prompt-form.component.js.map +1 -1
  62. package/dist/lib/custom/AIPrompts/ai-prompt-management.service.d.ts +10 -0
  63. package/dist/lib/custom/AIPrompts/ai-prompt-management.service.d.ts.map +1 -1
  64. package/dist/lib/custom/AIPrompts/ai-prompt-management.service.js +17 -9
  65. package/dist/lib/custom/AIPrompts/ai-prompt-management.service.js.map +1 -1
  66. package/dist/lib/custom/AIPrompts/template-selector-dialog.component.d.ts +74 -16
  67. package/dist/lib/custom/AIPrompts/template-selector-dialog.component.d.ts.map +1 -1
  68. package/dist/lib/custom/AIPrompts/template-selector-dialog.component.js +174 -58
  69. package/dist/lib/custom/AIPrompts/template-selector-dialog.component.js.map +1 -1
  70. package/dist/lib/custom/Actions/action-execution-log-form.component.d.ts +108 -14
  71. package/dist/lib/custom/Actions/action-execution-log-form.component.d.ts.map +1 -1
  72. package/dist/lib/custom/Actions/action-execution-log-form.component.js +258 -70
  73. package/dist/lib/custom/Actions/action-execution-log-form.component.js.map +1 -1
  74. package/dist/lib/custom/Actions/action-form.component.d.ts +198 -14
  75. package/dist/lib/custom/Actions/action-form.component.d.ts.map +1 -1
  76. package/dist/lib/custom/Actions/action-form.component.js +387 -107
  77. package/dist/lib/custom/Actions/action-form.component.js.map +1 -1
  78. package/dist/lib/custom/BridgeProviders/bridge-provider-features.d.ts +12 -6
  79. package/dist/lib/custom/BridgeProviders/bridge-provider-features.d.ts.map +1 -1
  80. package/dist/lib/custom/BridgeProviders/bridge-provider-features.js +41 -29
  81. package/dist/lib/custom/BridgeProviders/bridge-provider-features.js.map +1 -1
  82. package/dist/lib/custom/BridgeProviders/bridge-provider-form.component.js +14 -14
  83. package/dist/lib/custom/BridgeProviders/bridge-provider-form.component.js.map +1 -1
  84. package/dist/lib/custom/Companies/company-overview.panel.d.ts +1 -1
  85. package/dist/lib/custom/Companies/company-overview.panel.js +2 -2
  86. package/dist/lib/custom/Companies/company-overview.panel.js.map +1 -1
  87. package/dist/lib/custom/Conversations/conversation-overview.panel.d.ts +1 -1
  88. package/dist/lib/custom/Conversations/conversation-overview.panel.js +2 -2
  89. package/dist/lib/custom/Conversations/conversation-overview.panel.js.map +1 -1
  90. package/dist/lib/custom/Employees/employee-overview.panel.d.ts +1 -1
  91. package/dist/lib/custom/Employees/employee-overview.panel.js +2 -2
  92. package/dist/lib/custom/Employees/employee-overview.panel.js.map +1 -1
  93. package/dist/lib/custom/Entities/entity-form.component.d.ts +209 -28
  94. package/dist/lib/custom/Entities/entity-form.component.d.ts.map +1 -1
  95. package/dist/lib/custom/Entities/entity-form.component.js +494 -138
  96. package/dist/lib/custom/Entities/entity-form.component.js.map +1 -1
  97. package/dist/lib/custom/EntityActions/entityaction.form.component.d.ts +5 -1
  98. package/dist/lib/custom/EntityActions/entityaction.form.component.d.ts.map +1 -1
  99. package/dist/lib/custom/EntityActions/entityaction.form.component.js +10 -2
  100. package/dist/lib/custom/EntityActions/entityaction.form.component.js.map +1 -1
  101. package/dist/lib/custom/Files/file-form.component.d.ts +1 -1
  102. package/dist/lib/custom/Files/file-form.component.js +2 -2
  103. package/dist/lib/custom/Files/file-form.component.js.map +1 -1
  104. package/dist/lib/custom/Lists/list-form.component.d.ts +300 -36
  105. package/dist/lib/custom/Lists/list-form.component.d.ts.map +1 -1
  106. package/dist/lib/custom/Lists/list-form.component.js +664 -208
  107. package/dist/lib/custom/Lists/list-form.component.js.map +1 -1
  108. package/dist/lib/custom/MLModels/ml-model-form.component.d.ts +27 -0
  109. package/dist/lib/custom/MLModels/ml-model-form.component.d.ts.map +1 -0
  110. package/dist/lib/custom/MLModels/ml-model-form.component.js +193 -0
  111. package/dist/lib/custom/MLModels/ml-model-form.component.js.map +1 -0
  112. package/dist/lib/custom/MLModels/ml-model-view-models.d.ts +75 -0
  113. package/dist/lib/custom/MLModels/ml-model-view-models.d.ts.map +1 -0
  114. package/dist/lib/custom/MLModels/ml-model-view-models.js +244 -0
  115. package/dist/lib/custom/MLModels/ml-model-view-models.js.map +1 -0
  116. package/dist/lib/custom/MLModels/ps-model-detail.component.d.ts +173 -0
  117. package/dist/lib/custom/MLModels/ps-model-detail.component.d.ts.map +1 -0
  118. package/dist/lib/custom/MLModels/ps-model-detail.component.js +883 -0
  119. package/dist/lib/custom/MLModels/ps-model-detail.component.js.map +1 -0
  120. package/dist/lib/custom/Queries/query-form.component.d.ts +201 -26
  121. package/dist/lib/custom/Queries/query-form.component.d.ts.map +1 -1
  122. package/dist/lib/custom/Queries/query-form.component.js +429 -109
  123. package/dist/lib/custom/Queries/query-form.component.js.map +1 -1
  124. package/dist/lib/custom/Queries/query-run-dialog.component.d.ts +107 -14
  125. package/dist/lib/custom/Queries/query-run-dialog.component.d.ts.map +1 -1
  126. package/dist/lib/custom/Queries/query-run-dialog.component.js +249 -79
  127. package/dist/lib/custom/Queries/query-run-dialog.component.js.map +1 -1
  128. package/dist/lib/custom/RecordProcesses/record-process-form.component.d.ts +133 -7
  129. package/dist/lib/custom/RecordProcesses/record-process-form.component.d.ts.map +1 -1
  130. package/dist/lib/custom/RecordProcesses/record-process-form.component.js +1268 -19
  131. package/dist/lib/custom/RecordProcesses/record-process-form.component.js.map +1 -1
  132. package/dist/lib/custom/SearchScopes/searchscope-form.component.d.ts +1 -1
  133. package/dist/lib/custom/SearchScopes/searchscope-form.component.js +4 -4
  134. package/dist/lib/custom/SearchScopes/searchscope-form.component.js.map +1 -1
  135. package/dist/lib/custom/SessionBridges/session-bridge-form.component.js.map +1 -1
  136. package/dist/lib/custom/Templates/template-param-dialog.component.d.ts +77 -13
  137. package/dist/lib/custom/Templates/template-param-dialog.component.d.ts.map +1 -1
  138. package/dist/lib/custom/Templates/template-param-dialog.component.js +196 -78
  139. package/dist/lib/custom/Templates/template-param-dialog.component.js.map +1 -1
  140. package/dist/lib/custom/Templates/template-params-grid.component.d.ts +49 -7
  141. package/dist/lib/custom/Templates/template-params-grid.component.d.ts.map +1 -1
  142. package/dist/lib/custom/Templates/template-params-grid.component.js +132 -44
  143. package/dist/lib/custom/Templates/template-params-grid.component.js.map +1 -1
  144. package/dist/lib/custom/Templates/templates-form.component.d.ts +142 -17
  145. package/dist/lib/custom/Templates/templates-form.component.d.ts.map +1 -1
  146. package/dist/lib/custom/Templates/templates-form.component.js +333 -113
  147. package/dist/lib/custom/Templates/templates-form.component.js.map +1 -1
  148. package/dist/lib/custom/Tests/entity-link-pill.component.d.ts +24 -4
  149. package/dist/lib/custom/Tests/entity-link-pill.component.d.ts.map +1 -1
  150. package/dist/lib/custom/Tests/entity-link-pill.component.js +64 -20
  151. package/dist/lib/custom/Tests/entity-link-pill.component.js.map +1 -1
  152. package/dist/lib/custom/Tests/test-form.component.d.ts +217 -27
  153. package/dist/lib/custom/Tests/test-form.component.d.ts.map +1 -1
  154. package/dist/lib/custom/Tests/test-form.component.js +549 -169
  155. package/dist/lib/custom/Tests/test-form.component.js.map +1 -1
  156. package/dist/lib/custom/Tests/test-run-checks.d.ts +2 -0
  157. package/dist/lib/custom/Tests/test-run-checks.d.ts.map +1 -1
  158. package/dist/lib/custom/Tests/test-run-checks.js +5 -1
  159. package/dist/lib/custom/Tests/test-run-checks.js.map +1 -1
  160. package/dist/lib/custom/Tests/test-run-feedback-form.component.d.ts +2 -0
  161. package/dist/lib/custom/Tests/test-run-feedback-form.component.d.ts.map +1 -1
  162. package/dist/lib/custom/Tests/test-run-feedback-form.component.js +5 -1
  163. package/dist/lib/custom/Tests/test-run-feedback-form.component.js.map +1 -1
  164. package/dist/lib/custom/Tests/test-run-form.component.d.ts +146 -18
  165. package/dist/lib/custom/Tests/test-run-form.component.d.ts.map +1 -1
  166. package/dist/lib/custom/Tests/test-run-form.component.js +362 -106
  167. package/dist/lib/custom/Tests/test-run-form.component.js.map +1 -1
  168. package/dist/lib/custom/Tests/test-suite-form.component.d.ts +390 -47
  169. package/dist/lib/custom/Tests/test-suite-form.component.d.ts.map +1 -1
  170. package/dist/lib/custom/Tests/test-suite-form.component.js +1015 -343
  171. package/dist/lib/custom/Tests/test-suite-form.component.js.map +1 -1
  172. package/dist/lib/custom/Tests/test-suite-run-form.component.d.ts +214 -26
  173. package/dist/lib/custom/Tests/test-suite-run-form.component.d.ts.map +1 -1
  174. package/dist/lib/custom/Tests/test-suite-run-form.component.js +535 -159
  175. package/dist/lib/custom/Tests/test-suite-run-form.component.js.map +1 -1
  176. package/dist/lib/custom/Users/user-overview.panel.d.ts +1 -1
  177. package/dist/lib/custom/Users/user-overview.panel.js +2 -2
  178. package/dist/lib/custom/Users/user-overview.panel.js.map +1 -1
  179. package/dist/lib/custom/ai-agent-run/ai-agent-run-analytics.component.d.ts +208 -29
  180. package/dist/lib/custom/ai-agent-run/ai-agent-run-analytics.component.d.ts.map +1 -1
  181. package/dist/lib/custom/ai-agent-run/ai-agent-run-analytics.component.js +446 -138
  182. package/dist/lib/custom/ai-agent-run/ai-agent-run-analytics.component.js.map +1 -1
  183. package/dist/lib/custom/ai-agent-run/ai-agent-run-cost.service.d.ts +6 -0
  184. package/dist/lib/custom/ai-agent-run/ai-agent-run-cost.service.d.ts.map +1 -1
  185. package/dist/lib/custom/ai-agent-run/ai-agent-run-cost.service.js +16 -4
  186. package/dist/lib/custom/ai-agent-run/ai-agent-run-cost.service.js.map +1 -1
  187. package/dist/lib/custom/ai-agent-run/ai-agent-run-data.service.d.ts +50 -6
  188. package/dist/lib/custom/ai-agent-run/ai-agent-run-data.service.d.ts.map +1 -1
  189. package/dist/lib/custom/ai-agent-run/ai-agent-run-data.service.js +84 -12
  190. package/dist/lib/custom/ai-agent-run/ai-agent-run-data.service.js.map +1 -1
  191. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-detail.component.d.ts +89 -5
  192. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-detail.component.d.ts.map +1 -1
  193. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-detail.component.js +216 -70
  194. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-detail.component.js.map +1 -1
  195. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.d.ts +62 -3
  196. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.d.ts.map +1 -1
  197. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.js +140 -42
  198. package/dist/lib/custom/ai-agent-run/ai-agent-run-step-node.component.js.map +1 -1
  199. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.d.ts +81 -10
  200. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.d.ts.map +1 -1
  201. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.js +165 -37
  202. package/dist/lib/custom/ai-agent-run/ai-agent-run-timeline.component.js.map +1 -1
  203. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.d.ts +121 -14
  204. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.d.ts.map +1 -1
  205. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.js +287 -79
  206. package/dist/lib/custom/ai-agent-run/ai-agent-run.component.js.map +1 -1
  207. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.component.d.ts +101 -15
  208. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.component.d.ts.map +1 -1
  209. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.component.js +281 -97
  210. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.component.js.map +1 -1
  211. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.model.d.ts +43 -25
  212. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.model.d.ts.map +1 -1
  213. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.model.js +100 -64
  214. package/dist/lib/custom/ai-agent-run/flow/agent-run-flow.model.js.map +1 -1
  215. package/dist/lib/custom/ai-agent-run/flow/constellation.component.d.ts +14 -2
  216. package/dist/lib/custom/ai-agent-run/flow/constellation.component.d.ts.map +1 -1
  217. package/dist/lib/custom/ai-agent-run/flow/constellation.component.js +71 -53
  218. package/dist/lib/custom/ai-agent-run/flow/constellation.component.js.map +1 -1
  219. package/dist/lib/custom/ai-agent-run/flow/flame-cascade.component.d.ts +14 -2
  220. package/dist/lib/custom/ai-agent-run/flow/flame-cascade.component.d.ts.map +1 -1
  221. package/dist/lib/custom/ai-agent-run/flow/flame-cascade.component.js +70 -52
  222. package/dist/lib/custom/ai-agent-run/flow/flame-cascade.component.js.map +1 -1
  223. package/dist/lib/custom/ai-agent-run/flow/flow-svg.util.d.ts +8 -0
  224. package/dist/lib/custom/ai-agent-run/flow/flow-svg.util.d.ts.map +1 -1
  225. package/dist/lib/custom/ai-agent-run/flow/flow-svg.util.js +22 -6
  226. package/dist/lib/custom/ai-agent-run/flow/flow-svg.util.js.map +1 -1
  227. package/dist/lib/custom/ai-agent-run/flow/flowchart.component.d.ts +24 -2
  228. package/dist/lib/custom/ai-agent-run/flow/flowchart.component.d.ts.map +1 -1
  229. package/dist/lib/custom/ai-agent-run/flow/flowchart.component.js +91 -59
  230. package/dist/lib/custom/ai-agent-run/flow/flowchart.component.js.map +1 -1
  231. package/dist/lib/custom/ai-agent-run/flow/pan-zoom.d.ts +10 -2
  232. package/dist/lib/custom/ai-agent-run/flow/pan-zoom.d.ts.map +1 -1
  233. package/dist/lib/custom/ai-agent-run/flow/pan-zoom.js +33 -17
  234. package/dist/lib/custom/ai-agent-run/flow/pan-zoom.js.map +1 -1
  235. package/dist/lib/custom/ai-agent-run/flow/run-tree-flow-projection.d.ts +2 -0
  236. package/dist/lib/custom/ai-agent-run/flow/run-tree-flow-projection.d.ts.map +1 -1
  237. package/dist/lib/custom/ai-agent-run/flow/run-tree-flow-projection.js +34 -30
  238. package/dist/lib/custom/ai-agent-run/flow/run-tree-flow-projection.js.map +1 -1
  239. package/dist/lib/custom/ai-agent-run/flow/subway-lines.component.d.ts +14 -2
  240. package/dist/lib/custom/ai-agent-run/flow/subway-lines.component.d.ts.map +1 -1
  241. package/dist/lib/custom/ai-agent-run/flow/subway-lines.component.js +69 -51
  242. package/dist/lib/custom/ai-agent-run/flow/subway-lines.component.js.map +1 -1
  243. package/dist/lib/custom/custom-forms.module.d.ts +32 -30
  244. package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
  245. package/dist/lib/custom/custom-forms.module.js +21 -4
  246. package/dist/lib/custom/custom-forms.module.js.map +1 -1
  247. package/dist/lib/custom/shared/entity-selector-dialog.component.d.ts +38 -12
  248. package/dist/lib/custom/shared/entity-selector-dialog.component.d.ts.map +1 -1
  249. package/dist/lib/custom/shared/entity-selector-dialog.component.js +103 -51
  250. package/dist/lib/custom/shared/entity-selector-dialog.component.js.map +1 -1
  251. package/dist/lib/generated/Entities/MJAIPrompt/mjaiprompt.form.component.d.ts.map +1 -1
  252. package/dist/lib/generated/Entities/MJAIPrompt/mjaiprompt.form.component.js +62 -26
  253. package/dist/lib/generated/Entities/MJAIPrompt/mjaiprompt.form.component.js.map +1 -1
  254. package/dist/lib/generated/Entities/MJAIPromptRun/mjaipromptrun.form.component.d.ts.map +1 -1
  255. package/dist/lib/generated/Entities/MJAIPromptRun/mjaipromptrun.form.component.js +59 -51
  256. package/dist/lib/generated/Entities/MJAIPromptRun/mjaipromptrun.form.component.js.map +1 -1
  257. package/dist/lib/generated/Entities/MJAIVendor/mjaivendor.form.component.js +76 -74
  258. package/dist/lib/generated/Entities/MJAIVendor/mjaivendor.form.component.js.map +1 -1
  259. package/dist/lib/generated/Entities/MJCredential/mjcredential.form.component.d.ts.map +1 -1
  260. package/dist/lib/generated/Entities/MJCredential/mjcredential.form.component.js +33 -15
  261. package/dist/lib/generated/Entities/MJCredential/mjcredential.form.component.js.map +1 -1
  262. package/dist/lib/generated/Entities/MJEntity/mjentity.form.component.d.ts.map +1 -1
  263. package/dist/lib/generated/Entities/MJEntity/mjentity.form.component.js +100 -82
  264. package/dist/lib/generated/Entities/MJEntity/mjentity.form.component.js.map +1 -1
  265. package/dist/lib/generated/Entities/MJEntityField/mjentityfield.form.component.js +24 -20
  266. package/dist/lib/generated/Entities/MJEntityField/mjentityfield.form.component.js.map +1 -1
  267. package/dist/lib/generated/Entities/MJFeatureValue/mjfeaturevalue.form.component.d.ts +10 -0
  268. package/dist/lib/generated/Entities/MJFeatureValue/mjfeaturevalue.form.component.d.ts.map +1 -0
  269. package/dist/lib/generated/Entities/MJFeatureValue/mjfeaturevalue.form.component.js +122 -0
  270. package/dist/lib/generated/Entities/MJFeatureValue/mjfeaturevalue.form.component.js.map +1 -0
  271. package/dist/lib/generated/Entities/MJFeatureValueCache/mjfeaturevaluecache.form.component.d.ts +10 -0
  272. package/dist/lib/generated/Entities/MJFeatureValueCache/mjfeaturevaluecache.form.component.d.ts.map +1 -0
  273. package/dist/lib/generated/Entities/MJFeatureValueCache/mjfeaturevaluecache.form.component.js +125 -0
  274. package/dist/lib/generated/Entities/MJFeatureValueCache/mjfeaturevaluecache.form.component.js.map +1 -0
  275. package/dist/lib/generated/Entities/MJProcessRun/mjprocessrun.form.component.d.ts.map +1 -1
  276. package/dist/lib/generated/Entities/MJProcessRun/mjprocessrun.form.component.js +23 -5
  277. package/dist/lib/generated/Entities/MJProcessRun/mjprocessrun.form.component.js.map +1 -1
  278. package/dist/lib/generated/Entities/MJProcessRunDetail/mjprocessrundetail.form.component.d.ts.map +1 -1
  279. package/dist/lib/generated/Entities/MJProcessRunDetail/mjprocessrundetail.form.component.js +25 -6
  280. package/dist/lib/generated/Entities/MJProcessRunDetail/mjprocessrundetail.form.component.js.map +1 -1
  281. package/dist/lib/generated/Entities/MJProject/mjproject.form.component.js +27 -25
  282. package/dist/lib/generated/Entities/MJProject/mjproject.form.component.js.map +1 -1
  283. package/dist/lib/generated/Entities/MJQuery/mjquery.form.component.d.ts.map +1 -1
  284. package/dist/lib/generated/Entities/MJQuery/mjquery.form.component.js +11 -15
  285. package/dist/lib/generated/Entities/MJQuery/mjquery.form.component.js.map +1 -1
  286. package/dist/lib/generated/Entities/MJRecordProcess/mjrecordprocess.form.component.d.ts.map +1 -1
  287. package/dist/lib/generated/Entities/MJRecordProcess/mjrecordprocess.form.component.js +43 -7
  288. package/dist/lib/generated/Entities/MJRecordProcess/mjrecordprocess.form.component.js.map +1 -1
  289. package/dist/lib/generated/Entities/MJUser/mjuser.form.component.d.ts.map +1 -1
  290. package/dist/lib/generated/Entities/MJUser/mjuser.form.component.js +155 -119
  291. package/dist/lib/generated/Entities/MJUser/mjuser.form.component.js.map +1 -1
  292. package/dist/lib/generated/Entities/MJWebSearchProvider/mjwebsearchprovider.form.component.d.ts +10 -0
  293. package/dist/lib/generated/Entities/MJWebSearchProvider/mjwebsearchprovider.form.component.d.ts.map +1 -0
  294. package/dist/lib/generated/Entities/MJWebSearchProvider/mjwebsearchprovider.form.component.js +78 -0
  295. package/dist/lib/generated/Entities/MJWebSearchProvider/mjwebsearchprovider.form.component.js.map +1 -0
  296. package/dist/lib/generated/generated-forms.module.d.ts +240 -237
  297. package/dist/lib/generated/generated-forms.module.d.ts.map +1 -1
  298. package/dist/lib/generated/generated-forms.module.js +11 -2
  299. package/dist/lib/generated/generated-forms.module.js.map +1 -1
  300. package/dist/lib/panels/ai-skill-sharing/ai-skill-sharing-panel.component.d.ts +5 -1
  301. package/dist/lib/panels/ai-skill-sharing/ai-skill-sharing-panel.component.d.ts.map +1 -1
  302. package/dist/lib/panels/ai-skill-sharing/ai-skill-sharing-panel.component.js +11 -3
  303. package/dist/lib/panels/ai-skill-sharing/ai-skill-sharing-panel.component.js.map +1 -1
  304. package/dist/lib/panels/content-sources/tag-pipeline-configuration.panel.d.ts +2 -0
  305. package/dist/lib/panels/content-sources/tag-pipeline-configuration.panel.d.ts.map +1 -1
  306. package/dist/lib/panels/content-sources/tag-pipeline-configuration.panel.js +16 -12
  307. package/dist/lib/panels/content-sources/tag-pipeline-configuration.panel.js.map +1 -1
  308. package/dist/lib/panels/content-sources/website-crawler-settings.panel.d.ts +1 -1
  309. package/dist/lib/panels/content-sources/website-crawler-settings.panel.js +2 -2
  310. package/dist/lib/panels/content-sources/website-crawler-settings.panel.js.map +1 -1
  311. package/dist/lib/panels/model-predictions/model-prediction.logic.d.ts +122 -1
  312. package/dist/lib/panels/model-predictions/model-prediction.logic.d.ts.map +1 -1
  313. package/dist/lib/panels/model-predictions/model-prediction.logic.js +236 -11
  314. package/dist/lib/panels/model-predictions/model-prediction.logic.js.map +1 -1
  315. package/dist/lib/panels/model-predictions/model-prediction.panel.d.ts +72 -13
  316. package/dist/lib/panels/model-predictions/model-prediction.panel.d.ts.map +1 -1
  317. package/dist/lib/panels/model-predictions/model-prediction.panel.js +577 -78
  318. package/dist/lib/panels/model-predictions/model-prediction.panel.js.map +1 -1
  319. package/dist/lib/shared/components/template-editor.component.d.ts +133 -14
  320. package/dist/lib/shared/components/template-editor.component.d.ts.map +1 -1
  321. package/dist/lib/shared/components/template-editor.component.js +322 -124
  322. package/dist/lib/shared/components/template-editor.component.js.map +1 -1
  323. package/dist/public-api.d.ts +4 -0
  324. package/dist/public-api.d.ts.map +1 -1
  325. package/dist/public-api.js +4 -0
  326. package/dist/public-api.js.map +1 -1
  327. package/package.json +43 -41
@@ -29,6 +29,13 @@ export declare class AIAgentManagementService {
29
29
  * @param config Configuration for the action selection dialog
30
30
  * @returns Observable that emits the selected actions when dialog is closed
31
31
  */
32
+ OpenAddActionDialog(config: {
33
+ agentId: string;
34
+ agentName: string;
35
+ existingActionIds: string[];
36
+ viewContainerRef?: ViewContainerRef;
37
+ }): Observable<MJActionEntity[]>;
38
+ /** @deprecated Use {@link OpenAddActionDialog}. */
32
39
  openAddActionDialog(config: {
33
40
  agentId: string;
34
41
  agentName: string;
@@ -41,6 +48,16 @@ export declare class AIAgentManagementService {
41
48
  * @param config Configuration for the prompt selection dialog
42
49
  * @returns Observable that emits the selected prompts when dialog is closed
43
50
  */
51
+ OpenPromptSelectorDialog(config: {
52
+ title?: string;
53
+ multiSelect?: boolean;
54
+ selectedPromptIds?: string[];
55
+ showCreateNew?: boolean;
56
+ extraFilter?: string;
57
+ linkedPromptIds?: string[];
58
+ viewContainerRef?: ViewContainerRef;
59
+ }): Observable<PromptSelectorResult | null>;
60
+ /** @deprecated Use {@link OpenPromptSelectorDialog}. */
44
61
  openPromptSelectorDialog(config: {
45
62
  title?: string;
46
63
  multiSelect?: boolean;
@@ -56,6 +73,11 @@ export declare class AIAgentManagementService {
56
73
  * @param config Configuration for the context compression prompt selection
57
74
  * @returns Observable that emits the selected prompt when dialog is closed
58
75
  */
76
+ OpenContextCompressionPromptSelector(config: {
77
+ currentPromptId?: string;
78
+ viewContainerRef?: ViewContainerRef;
79
+ }): Observable<MJAIPromptEntityExtended | null>;
80
+ /** @deprecated Use {@link OpenContextCompressionPromptSelector}. */
59
81
  openContextCompressionPromptSelector(config: {
60
82
  currentPromptId?: string;
61
83
  viewContainerRef?: ViewContainerRef;
@@ -66,6 +88,15 @@ export declare class AIAgentManagementService {
66
88
  * @param config Configuration for the sub-agent selection dialog
67
89
  * @returns Observable that emits the selected agents when dialog is closed
68
90
  */
91
+ OpenSubAgentSelectorDialog(config: {
92
+ title?: string;
93
+ multiSelect?: boolean;
94
+ selectedAgentIds?: string[];
95
+ showCreateNew?: boolean;
96
+ parentAgentId: string;
97
+ viewContainerRef?: ViewContainerRef;
98
+ }): Observable<SubAgentSelectorResult | null>;
99
+ /** @deprecated Use {@link OpenSubAgentSelectorDialog}. */
69
100
  openSubAgentSelectorDialog(config: {
70
101
  title?: string;
71
102
  multiSelect?: boolean;
@@ -80,6 +111,12 @@ export declare class AIAgentManagementService {
80
111
  * @param config Configuration for the agent prompt advanced settings dialog
81
112
  * @returns Observable that emits the form data when dialog is closed, or null if cancelled
82
113
  */
114
+ OpenAgentPromptAdvancedSettingsDialog(config: {
115
+ agentPrompt: MJAIAgentPromptEntity;
116
+ allAgentPrompts: MJAIAgentPromptEntity[];
117
+ viewContainerRef?: ViewContainerRef;
118
+ }): Observable<AgentPromptAdvancedSettingsFormData | null>;
119
+ /** @deprecated Use {@link OpenAgentPromptAdvancedSettingsDialog}. */
83
120
  openAgentPromptAdvancedSettingsDialog(config: {
84
121
  agentPrompt: MJAIAgentPromptEntity;
85
122
  allAgentPrompts: MJAIAgentPromptEntity[];
@@ -91,6 +128,12 @@ export declare class AIAgentManagementService {
91
128
  * @param config Configuration for the sub-agent advanced settings dialog
92
129
  * @returns Observable that emits the form data when dialog is closed, or null if cancelled
93
130
  */
131
+ OpenSubAgentAdvancedSettingsDialog(config: {
132
+ subAgent: MJAIAgentEntityExtended;
133
+ allSubAgents: MJAIAgentEntityExtended[];
134
+ viewContainerRef?: ViewContainerRef;
135
+ }): Observable<SubAgentAdvancedSettingsFormData | null>;
136
+ /** @deprecated Use {@link OpenSubAgentAdvancedSettingsDialog}. */
94
137
  openSubAgentAdvancedSettingsDialog(config: {
95
138
  subAgent: MJAIAgentEntityExtended;
96
139
  allSubAgents: MJAIAgentEntityExtended[];
@@ -103,6 +146,13 @@ export declare class AIAgentManagementService {
103
146
  * @param config Configuration for prompt creation
104
147
  * @returns Observable that emits the created prompt and related entities when dialog is closed
105
148
  */
149
+ OpenCreatePromptDialog(config: {
150
+ title?: string;
151
+ initialName?: string;
152
+ initialTypeID?: string;
153
+ viewContainerRef?: ViewContainerRef;
154
+ }): Observable<CreatePromptResult | null>;
155
+ /** @deprecated Use {@link OpenCreatePromptDialog}. */
106
156
  openCreatePromptDialog(config: {
107
157
  title?: string;
108
158
  initialName?: string;
@@ -116,6 +166,15 @@ export declare class AIAgentManagementService {
116
166
  * @param config Configuration for sub-agent creation
117
167
  * @returns Observable that emits the created sub-agent and related entities when dialog is closed
118
168
  */
169
+ OpenCreateSubAgentDialog(config: {
170
+ title?: string;
171
+ initialName?: string;
172
+ initialTypeID?: string;
173
+ parentAgentId: string;
174
+ parentAgentName?: string;
175
+ viewContainerRef?: ViewContainerRef;
176
+ }): Observable<CreateSubAgentResult | null>;
177
+ /** @deprecated Use {@link OpenCreateSubAgentDialog}. */
119
178
  openCreateSubAgentDialog(config: {
120
179
  title?: string;
121
180
  initialName?: string;
@@ -131,6 +190,12 @@ export declare class AIAgentManagementService {
131
190
  * @param config Configuration for agent creation
132
191
  * @returns Observable that emits the created agent when dialog is closed
133
192
  */
193
+ OpenCreateAgentDialog(config: {
194
+ parentAgentId?: string;
195
+ initialData?: Partial<MJAIAgentEntityExtended>;
196
+ viewContainerRef?: ViewContainerRef;
197
+ }): Observable<MJAIAgentEntityExtended | null>;
198
+ /** @deprecated Use {@link OpenCreateAgentDialog}. */
134
199
  openCreateAgentDialog(config: {
135
200
  parentAgentId?: string;
136
201
  initialData?: Partial<MJAIAgentEntityExtended>;
@@ -140,6 +205,11 @@ export declare class AIAgentManagementService {
140
205
  * Validates agent configuration and relationships
141
206
  * Used by both creation and editing workflows
142
207
  */
208
+ ValidateAgentConfiguration(agent: MJAIAgentEntityExtended): {
209
+ isValid: boolean;
210
+ errors: string[];
211
+ };
212
+ /** @deprecated Use {@link ValidateAgentConfiguration}. */
143
213
  validateAgentConfiguration(agent: MJAIAgentEntityExtended): {
144
214
  isValid: boolean;
145
215
  errors: string[];
@@ -149,6 +219,12 @@ export declare class AIAgentManagementService {
149
219
  * This will handle ParentID, ExecutionOrder, and ExecutionMode
150
220
  * in the context of the parent agent's sub-agents section
151
221
  */
222
+ OpenSubAgentManagementDialog(config: {
223
+ parentAgent: MJAIAgentEntityExtended;
224
+ subAgent?: MJAIAgentEntityExtended;
225
+ viewContainerRef?: ViewContainerRef;
226
+ }): Observable<any>;
227
+ /** @deprecated Use {@link OpenSubAgentManagementDialog}. */
152
228
  openSubAgentManagementDialog(config: {
153
229
  parentAgent: MJAIAgentEntityExtended;
154
230
  subAgent?: MJAIAgentEntityExtended;
@@ -1 +1 @@
1
- {"version":3,"file":"ai-agent-management.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/AIAgents/ai-agent-management.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAI,MAAM,+BAA+B,CAAC;AAExF,OAAO,EAAuD,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/H,OAAO,EAA8C,mCAAmC,EAAE,MAAM,mDAAmD,CAAC;AACpJ,OAAO,EAA2C,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAC3I,OAAO,EAA2D,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACxI,OAAO,EAAmD,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACvH,OAAO,EAAuD,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChI,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;;AAEjG;;;;;;;;;GASG;AACH,qBAGa,wBAAwB;IAGjC,OAAO,CA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AAO,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE;IA6BlG;;;;OAIG;IACH,4BAA4B,CAAC,MAAM,EAAE;QACnC,WAAW,EAAE,uBAAuB,CAAC;QACrC,QAAQ,CAAC,EAAE,uBAAuB,CAAC;QACnC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;KACrC,GAAG,UAAU,CAAC,GAAG,CAAC;yCArWR,wBAAwB;6CAAxB,wBAAwB;CA2WpC"}
1
+ {"version":3,"file":"ai-agent-management.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/AIAgents/ai-agent-management.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAI,MAAM,+BAA+B,CAAC;AAExF,OAAO,EAAuD,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/H,OAAO,EAA8C,mCAAmC,EAAE,MAAM,mDAAmD,CAAC;AACpJ,OAAO,EAA2C,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAC3I,OAAO,EAA2D,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACxI,OAAO,EAAmD,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACvH,OAAO,EAAuD,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChI,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;;AAEjG;;;;;;;;;GASG;AACH,qBAGa,wBAAwB;IAGjC,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,eAAe;IAKxC;;;;;OAKG;IACH,mBAAmB,CAAC,MAAM,EAAE;QAC1B,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,iBAAiB,EAAE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,CAAC;QACnC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;KACrC,GAAG,UAAU,CAAC,GAAG,CAAC;IAMnB,4DAA4D;IAC5D,4BAA4B,CAAC,MAAM,EAAE;QACnC,WAAW,EAAE,uBAAuB,CAAC;QACrC,QAAQ,CAAC,EAAE,uBAAuB,CAAC;QACnC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;KACrC,GAAG,UAAU,CAAC,GAAG,CAAC;yCAjdR,wBAAwB;6CAAxB,wBAAwB;CAqdpC"}
@@ -30,7 +30,7 @@ export class AIAgentManagementService {
30
30
  * @param config Configuration for the action selection dialog
31
31
  * @returns Observable that emits the selected actions when dialog is closed
32
32
  */
33
- openAddActionDialog(config) {
33
+ OpenAddActionDialog(config) {
34
34
  const dialogRef = this.dialogService.open({
35
35
  title: `Add Actions to ${config.agentName}`,
36
36
  content: AddActionDialogComponent,
@@ -47,6 +47,10 @@ export class AIAgentManagementService {
47
47
  componentInstance.DialogClose?.subscribe(() => dialogRef.Close());
48
48
  return componentInstance.result.asObservable();
49
49
  }
50
+ /** @deprecated Use {@link OpenAddActionDialog}. */
51
+ openAddActionDialog(config) {
52
+ return this.OpenAddActionDialog(config);
53
+ }
50
54
  // === Prompt Management ===
51
55
  /**
52
56
  * Opens the prompt selector dialog for selecting general prompts to add to an agent
@@ -54,17 +58,17 @@ export class AIAgentManagementService {
54
58
  * @param config Configuration for the prompt selection dialog
55
59
  * @returns Observable that emits the selected prompts when dialog is closed
56
60
  */
57
- openPromptSelectorDialog(config) {
61
+ OpenPromptSelectorDialog(config) {
58
62
  const selectorConfig = {
59
- title: config.title || 'Select Prompts',
60
- multiSelect: config.multiSelect ?? true,
61
- selectedPromptIds: config.selectedPromptIds || [],
62
- showCreateNew: config.showCreateNew ?? true,
63
- extraFilter: config.extraFilter,
64
- linkedPromptIds: config.linkedPromptIds || []
63
+ Title: config.title || 'Select Prompts',
64
+ MultiSelect: config.multiSelect ?? true,
65
+ SelectedPromptIds: config.selectedPromptIds || [],
66
+ ShowCreateNew: config.showCreateNew ?? true,
67
+ ExtraFilter: config.extraFilter,
68
+ LinkedPromptIds: config.linkedPromptIds || []
65
69
  };
66
70
  const dialogRef = this.dialogService.open({
67
- title: selectorConfig.title,
71
+ title: selectorConfig.Title,
68
72
  content: PromptSelectorDialogComponent,
69
73
  width: 900,
70
74
  height: 600,
@@ -77,15 +81,19 @@ export class AIAgentManagementService {
77
81
  componentInstance.DialogClose?.subscribe(() => dialogRef.Close());
78
82
  return componentInstance.result.asObservable();
79
83
  }
84
+ /** @deprecated Use {@link OpenPromptSelectorDialog}. */
85
+ openPromptSelectorDialog(config) {
86
+ return this.OpenPromptSelectorDialog(config);
87
+ }
80
88
  /**
81
89
  * Opens the prompt selector for selecting a context compression prompt (single select)
82
90
  *
83
91
  * @param config Configuration for the context compression prompt selection
84
92
  * @returns Observable that emits the selected prompt when dialog is closed
85
93
  */
86
- openContextCompressionPromptSelector(config) {
94
+ OpenContextCompressionPromptSelector(config) {
87
95
  return new Observable(observer => {
88
- this.openPromptSelectorDialog({
96
+ this.OpenPromptSelectorDialog({
89
97
  title: 'Select Context Compression Prompt',
90
98
  multiSelect: false,
91
99
  selectedPromptIds: config.currentPromptId ? [config.currentPromptId] : [],
@@ -93,8 +101,8 @@ export class AIAgentManagementService {
93
101
  extraFilter: undefined, // Show all active prompts
94
102
  viewContainerRef: config.viewContainerRef
95
103
  }).subscribe(result => {
96
- if (result && result.selectedPrompts.length > 0) {
97
- observer.next(result.selectedPrompts[0]);
104
+ if (result && result.SelectedPrompts.length > 0) {
105
+ observer.next(result.SelectedPrompts[0]);
98
106
  }
99
107
  else {
100
108
  observer.next(null);
@@ -103,6 +111,10 @@ export class AIAgentManagementService {
103
111
  });
104
112
  });
105
113
  }
114
+ /** @deprecated Use {@link OpenContextCompressionPromptSelector}. */
115
+ openContextCompressionPromptSelector(config) {
116
+ return this.OpenContextCompressionPromptSelector(config);
117
+ }
106
118
  // === Sub-Agent Management ===
107
119
  /**
108
120
  * Opens the sub-agent selector dialog for selecting agents to convert to sub-agents
@@ -110,16 +122,16 @@ export class AIAgentManagementService {
110
122
  * @param config Configuration for the sub-agent selection dialog
111
123
  * @returns Observable that emits the selected agents when dialog is closed
112
124
  */
113
- openSubAgentSelectorDialog(config) {
125
+ OpenSubAgentSelectorDialog(config) {
114
126
  const selectorConfig = {
115
- title: config.title || 'Add Sub-Agents',
116
- multiSelect: config.multiSelect ?? true,
117
- selectedAgentIds: config.selectedAgentIds || [],
118
- showCreateNew: config.showCreateNew ?? true,
119
- parentAgentId: config.parentAgentId
127
+ Title: config.title || 'Add Sub-Agents',
128
+ MultiSelect: config.multiSelect ?? true,
129
+ SelectedAgentIds: config.selectedAgentIds || [],
130
+ ShowCreateNew: config.showCreateNew ?? true,
131
+ ParentAgentId: config.parentAgentId
120
132
  };
121
133
  const dialogRef = this.dialogService.open({
122
- title: selectorConfig.title,
134
+ title: selectorConfig.Title,
123
135
  content: SubAgentSelectorDialogComponent,
124
136
  width: 1000,
125
137
  height: 700,
@@ -132,6 +144,10 @@ export class AIAgentManagementService {
132
144
  componentInstance.DialogClose?.subscribe(() => dialogRef.Close());
133
145
  return componentInstance.result.asObservable();
134
146
  }
147
+ /** @deprecated Use {@link OpenSubAgentSelectorDialog}. */
148
+ openSubAgentSelectorDialog(config) {
149
+ return this.OpenSubAgentSelectorDialog(config);
150
+ }
135
151
  // === Advanced Settings for Related Entities ===
136
152
  /**
137
153
  * Opens the advanced settings dialog for an AI Agent Prompt
@@ -139,7 +155,7 @@ export class AIAgentManagementService {
139
155
  * @param config Configuration for the agent prompt advanced settings dialog
140
156
  * @returns Observable that emits the form data when dialog is closed, or null if cancelled
141
157
  */
142
- openAgentPromptAdvancedSettingsDialog(config) {
158
+ OpenAgentPromptAdvancedSettingsDialog(config) {
143
159
  const dialogRef = this.dialogService.open({
144
160
  title: `Advanced Settings - Prompt Configuration`,
145
161
  content: AgentPromptAdvancedSettingsDialogComponent,
@@ -155,13 +171,17 @@ export class AIAgentManagementService {
155
171
  componentInstance.DialogClose?.subscribe(() => dialogRef.Close());
156
172
  return componentInstance.result.asObservable();
157
173
  }
174
+ /** @deprecated Use {@link OpenAgentPromptAdvancedSettingsDialog}. */
175
+ openAgentPromptAdvancedSettingsDialog(config) {
176
+ return this.OpenAgentPromptAdvancedSettingsDialog(config);
177
+ }
158
178
  /**
159
179
  * Opens the advanced settings dialog for a Sub-Agent
160
180
  *
161
181
  * @param config Configuration for the sub-agent advanced settings dialog
162
182
  * @returns Observable that emits the form data when dialog is closed, or null if cancelled
163
183
  */
164
- openSubAgentAdvancedSettingsDialog(config) {
184
+ OpenSubAgentAdvancedSettingsDialog(config) {
165
185
  const dialogRef = this.dialogService.open({
166
186
  title: `Advanced Settings - ${config.subAgent.Name || 'Sub-Agent'}`,
167
187
  content: SubAgentAdvancedSettingsDialogComponent,
@@ -177,6 +197,10 @@ export class AIAgentManagementService {
177
197
  componentInstance.DialogClose?.subscribe(() => dialogRef.Close());
178
198
  return componentInstance.result.asObservable();
179
199
  }
200
+ /** @deprecated Use {@link OpenSubAgentAdvancedSettingsDialog}. */
201
+ openSubAgentAdvancedSettingsDialog(config) {
202
+ return this.OpenSubAgentAdvancedSettingsDialog(config);
203
+ }
180
204
  // === Prompt Creation ===
181
205
  /**
182
206
  * Opens the create prompt dialog for creating new prompts from within the AI Agent form
@@ -185,11 +209,11 @@ export class AIAgentManagementService {
185
209
  * @param config Configuration for prompt creation
186
210
  * @returns Observable that emits the created prompt and related entities when dialog is closed
187
211
  */
188
- openCreatePromptDialog(config) {
212
+ OpenCreatePromptDialog(config) {
189
213
  const createConfig = {
190
214
  title: config.title || 'Create New Prompt',
191
- initialName: config.initialName,
192
- initialTypeID: config.initialTypeID
215
+ InitialName: config.initialName,
216
+ InitialTypeID: config.initialTypeID
193
217
  };
194
218
  const dialogRef = this.dialogService.open({
195
219
  title: createConfig.title,
@@ -205,6 +229,10 @@ export class AIAgentManagementService {
205
229
  componentInstance.DialogClose?.subscribe(() => dialogRef.Close());
206
230
  return componentInstance.result.asObservable();
207
231
  }
232
+ /** @deprecated Use {@link OpenCreatePromptDialog}. */
233
+ openCreatePromptDialog(config) {
234
+ return this.OpenCreatePromptDialog(config);
235
+ }
208
236
  // === Sub-Agent Creation ===
209
237
  /**
210
238
  * Opens the create sub-agent dialog for creating new sub-agents from within the AI Agent form
@@ -213,13 +241,13 @@ export class AIAgentManagementService {
213
241
  * @param config Configuration for sub-agent creation
214
242
  * @returns Observable that emits the created sub-agent and related entities when dialog is closed
215
243
  */
216
- openCreateSubAgentDialog(config) {
244
+ OpenCreateSubAgentDialog(config) {
217
245
  const createConfig = {
218
246
  title: config.title || 'Create New Sub-Agent',
219
- initialName: config.initialName,
220
- initialTypeID: config.initialTypeID,
221
- parentAgentId: config.parentAgentId,
222
- parentAgentName: config.parentAgentName
247
+ InitialName: config.initialName,
248
+ InitialTypeID: config.initialTypeID,
249
+ ParentAgentId: config.parentAgentId,
250
+ ParentAgentName: config.parentAgentName
223
251
  };
224
252
  const dialogRef = this.dialogService.open({
225
253
  title: createConfig.title,
@@ -235,6 +263,10 @@ export class AIAgentManagementService {
235
263
  componentInstance.DialogClose?.subscribe(() => dialogRef.Close());
236
264
  return componentInstance.result.asObservable();
237
265
  }
266
+ /** @deprecated Use {@link OpenCreateSubAgentDialog}. */
267
+ openCreateSubAgentDialog(config) {
268
+ return this.OpenCreateSubAgentDialog(config);
269
+ }
238
270
  // === Future: Agent Creation ===
239
271
  /**
240
272
  * Opens the agent creation dialog (to be implemented)
@@ -243,18 +275,22 @@ export class AIAgentManagementService {
243
275
  * @param config Configuration for agent creation
244
276
  * @returns Observable that emits the created agent when dialog is closed
245
277
  */
246
- openCreateAgentDialog(config) {
278
+ OpenCreateAgentDialog(config) {
247
279
  // TODO: Implement agent creation dialog
248
280
  // This will reuse the same form components and advanced settings
249
281
  // but in a creation context rather than editing context
250
282
  throw new Error('Agent creation dialog not yet implemented');
251
283
  }
284
+ /** @deprecated Use {@link OpenCreateAgentDialog}. */
285
+ openCreateAgentDialog(config) {
286
+ return this.OpenCreateAgentDialog(config);
287
+ }
252
288
  // === Utility Methods ===
253
289
  /**
254
290
  * Validates agent configuration and relationships
255
291
  * Used by both creation and editing workflows
256
292
  */
257
- validateAgentConfiguration(agent) {
293
+ ValidateAgentConfiguration(agent) {
258
294
  const errors = [];
259
295
  // ParentID vs ExposeAsAction validation
260
296
  if (agent.ParentID && agent.ExposeAsAction) {
@@ -277,17 +313,25 @@ export class AIAgentManagementService {
277
313
  errors
278
314
  };
279
315
  }
316
+ /** @deprecated Use {@link ValidateAgentConfiguration}. */
317
+ validateAgentConfiguration(agent) {
318
+ return this.ValidateAgentConfiguration(agent);
319
+ }
280
320
  // === Sub-Agent Management ===
281
321
  /**
282
322
  * Future method for managing sub-agent relationships
283
323
  * This will handle ParentID, ExecutionOrder, and ExecutionMode
284
324
  * in the context of the parent agent's sub-agents section
285
325
  */
286
- openSubAgentManagementDialog(config) {
326
+ OpenSubAgentManagementDialog(config) {
287
327
  // TODO: Implement sub-agent management dialog
288
328
  // This will handle the hierarchy settings that were removed from Advanced Settings
289
329
  throw new Error('Sub-agent management dialog not yet implemented');
290
330
  }
331
+ /** @deprecated Use {@link OpenSubAgentManagementDialog}. */
332
+ openSubAgentManagementDialog(config) {
333
+ return this.OpenSubAgentManagementDialog(config);
334
+ }
291
335
  static { this.ɵfac = function AIAgentManagementService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AIAgentManagementService)(i0.ɵɵinject(i1.MJDialogService)); }; }
292
336
  static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AIAgentManagementService, factory: AIAgentManagementService.ɵfac, providedIn: 'root' }); }
293
337
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ai-agent-management.service.js","sourceRoot":"","sources":["../../../../src/lib/custom/AIAgents/ai-agent-management.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAoB,MAAM,eAAe,CAAC;AAE7D,OA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,IAAI,CAAC,kDAAkD,CAAC,CAAC;YAClE,CAAC;YACD,IAAI,CAAC,KAAK,CAAC,0BAA0B,EAAE,CAAC;gBACtC,MAAM,CAAC,IAAI,CAAC,mDAAmD,CAAC,CAAC;YACnE,CAAC;YACD,IAAI,CAAC,KAAK,CAAC,uCAAuC,EAAE,CAAC;gBACnD,MAAM,CAAC,IAAI,CAAC,wDAAwD,CAAC,CAAC;YACxE,CAAC;QACH,CAAC;QAED,OAAO;YACL,OAAO,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC;YAC5B,MAAM;SACP,CAAC;IACJ,CAAC;IAED,+BAA+B;IAE/B;;;;OAIG;IACH,4BAA4B,CAAC,MAI5B;QACC,8CAA8C;QAC9C,mFAAmF;QACnF,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,CAAC;yHAzWU,wBAAwB;uEAAxB,wBAAwB,WAAxB,wBAAwB,mBAFvB,MAAM;;iFAEP,wBAAwB;cAHpC,UAAU;eAAC;gBACV,UAAU,EAAE,MAAM;aACnB","sourcesContent":["import { Injectable, ViewContainerRef } from '@angular/core';\nimport { MJDialogService } from '@memberjunction/ng-ui-components';\nimport { Observable } from 'rxjs';\nimport { MJActionEntity, MJAIAgentPromptEntity, } from '@memberjunction/core-entities';\nimport { AddActionDialogComponent } from './add-action-dialog.component';\nimport { PromptSelectorDialogComponent, PromptSelectorConfig, PromptSelectorResult } from './prompt-selector-dialog.component';\nimport { AgentPromptAdvancedSettingsDialogComponent, AgentPromptAdvancedSettingsFormData } from './agent-prompt-advanced-settings-dialog.component';\nimport { SubAgentAdvancedSettingsDialogComponent, SubAgentAdvancedSettingsFormData } from './sub-agent-advanced-settings-dialog.component';\nimport { SubAgentSelectorDialogComponent, SubAgentSelectorConfig, SubAgentSelectorResult } from './sub-agent-selector-dialog.component';\nimport { CreatePromptDialogComponent, CreatePromptConfig, CreatePromptResult } from './create-prompt-dialog.component';\nimport { CreateSubAgentDialogComponent, CreateSubAgentConfig, CreateSubAgentResult } from './create-sub-agent-dialog.component';\nimport { MJAIAgentEntityExtended, MJAIPromptEntityExtended } from '@memberjunction/ai-core-plus';\n\n/**\n * Consolidated service for managing AI Agent operations including:\n * - Adding/removing actions\n * - Advanced settings configuration \n * - Agent creation (future)\n * - Agent editing operations\n * \n * This service centralizes all agent-related dialog and management functionality\n * to provide a consistent interface for both editing existing agents and creating new ones.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class AIAgentManagementService {\n\n constructor(\n private dialogService: MJDialogService\n ) {}\n\n // === Action Management ===\n\n /**\n * Opens the Add Action dialog for selecting actions to link to an agent\n * \n * @param config Configuration for the action selection dialog\n * @returns Observable that emits the selected actions when dialog is closed\n */\n openAddActionDialog(config: {\n agentId: string;\n agentName: string;\n existingActionIds: string[];\n viewContainerRef?: ViewContainerRef;\n }): Observable<MJActionEntity[]> {\n const dialogRef = this.dialogService.open({\n title: `Add Actions to ${config.agentName}`,\n content: AddActionDialogComponent,\n width: 1000,\n height: 700,\n minWidth: 800,\n appendTo: config.viewContainerRef\n });\n\n // Pass configuration to the dialog component\n const componentInstance = dialogRef.Content!.instance as unknown as AddActionDialogComponent;\n componentInstance.agentId = config.agentId;\n componentInstance.agentName = config.agentName;\n componentInstance.existingActionIds = [...config.existingActionIds];\n componentInstance.DialogClose?.subscribe(() => dialogRef.Close());\n\n return componentInstance.result.asObservable();\n }\n\n\n // === Prompt Management ===\n\n /**\n * Opens the prompt selector dialog for selecting general prompts to add to an agent\n * \n * @param config Configuration for the prompt selection dialog\n * @returns Observable that emits the selected prompts when dialog is closed\n */\n openPromptSelectorDialog(config: {\n title?: string;\n multiSelect?: boolean;\n selectedPromptIds?: string[];\n showCreateNew?: boolean;\n extraFilter?: string;\n linkedPromptIds?: string[];\n viewContainerRef?: ViewContainerRef;\n }): Observable<PromptSelectorResult | null> {\n const selectorConfig: PromptSelectorConfig = {\n title: config.title || 'Select Prompts',\n multiSelect: config.multiSelect ?? true,\n selectedPromptIds: config.selectedPromptIds || [],\n showCreateNew: config.showCreateNew ?? true,\n extraFilter: config.extraFilter,\n linkedPromptIds: config.linkedPromptIds || []\n };\n\n const dialogRef = this.dialogService.open({\n title: selectorConfig.title,\n content: PromptSelectorDialogComponent,\n width: 900,\n height: 600,\n minWidth: 600,\n appendTo: config.viewContainerRef\n });\n\n // Pass configuration to the dialog component\n const componentInstance = dialogRef.Content!.instance as unknown as PromptSelectorDialogComponent;\n componentInstance.config = selectorConfig;\n componentInstance.DialogClose?.subscribe(() => dialogRef.Close());\n\n return componentInstance.result.asObservable();\n }\n\n /**\n * Opens the prompt selector for selecting a context compression prompt (single select)\n * \n * @param config Configuration for the context compression prompt selection\n * @returns Observable that emits the selected prompt when dialog is closed\n */\n openContextCompressionPromptSelector(config: {\n currentPromptId?: string;\n viewContainerRef?: ViewContainerRef;\n }): Observable<MJAIPromptEntityExtended | null> {\n return new Observable(observer => {\n this.openPromptSelectorDialog({\n title: 'Select Context Compression Prompt',\n multiSelect: false,\n selectedPromptIds: config.currentPromptId ? [config.currentPromptId] : [],\n showCreateNew: false,\n extraFilter: undefined, // Show all active prompts\n viewContainerRef: config.viewContainerRef\n }).subscribe(result => {\n if (result && result.selectedPrompts.length > 0) {\n observer.next(result.selectedPrompts[0]);\n } else {\n observer.next(null);\n }\n observer.complete();\n });\n });\n }\n\n // === Sub-Agent Management ===\n\n /**\n * Opens the sub-agent selector dialog for selecting agents to convert to sub-agents\n * \n * @param config Configuration for the sub-agent selection dialog\n * @returns Observable that emits the selected agents when dialog is closed\n */\n openSubAgentSelectorDialog(config: {\n title?: string;\n multiSelect?: boolean;\n selectedAgentIds?: string[];\n showCreateNew?: boolean;\n parentAgentId: string;\n viewContainerRef?: ViewContainerRef;\n }): Observable<SubAgentSelectorResult | null> {\n const selectorConfig: SubAgentSelectorConfig = {\n title: config.title || 'Add Sub-Agents',\n multiSelect: config.multiSelect ?? true,\n selectedAgentIds: config.selectedAgentIds || [],\n showCreateNew: config.showCreateNew ?? true,\n parentAgentId: config.parentAgentId\n };\n\n const dialogRef = this.dialogService.open({\n title: selectorConfig.title,\n content: SubAgentSelectorDialogComponent,\n width: 1000,\n height: 700,\n minWidth: 800,\n appendTo: config.viewContainerRef\n });\n\n // Pass configuration to the dialog component\n const componentInstance = dialogRef.Content!.instance as unknown as SubAgentSelectorDialogComponent;\n componentInstance.config = selectorConfig;\n componentInstance.DialogClose?.subscribe(() => dialogRef.Close());\n\n return componentInstance.result.asObservable();\n }\n\n // === Advanced Settings for Related Entities ===\n\n /**\n * Opens the advanced settings dialog for an AI Agent Prompt\n * \n * @param config Configuration for the agent prompt advanced settings dialog\n * @returns Observable that emits the form data when dialog is closed, or null if cancelled\n */\n openAgentPromptAdvancedSettingsDialog(config: {\n agentPrompt: MJAIAgentPromptEntity;\n allAgentPrompts: MJAIAgentPromptEntity[];\n viewContainerRef?: ViewContainerRef;\n }): Observable<AgentPromptAdvancedSettingsFormData | null> {\n const dialogRef = this.dialogService.open({\n title: `Advanced Settings - Prompt Configuration`,\n content: AgentPromptAdvancedSettingsDialogComponent,\n width: 700,\n height: 600,\n minWidth: 500,\n appendTo: config.viewContainerRef\n });\n\n // Pass configuration to the dialog component\n const componentInstance = dialogRef.Content!.instance as unknown as AgentPromptAdvancedSettingsDialogComponent;\n componentInstance.agentPrompt = config.agentPrompt;\n componentInstance.allAgentPrompts = config.allAgentPrompts;\n componentInstance.DialogClose?.subscribe(() => dialogRef.Close());\n\n return componentInstance.result.asObservable();\n }\n\n /**\n * Opens the advanced settings dialog for a Sub-Agent\n * \n * @param config Configuration for the sub-agent advanced settings dialog\n * @returns Observable that emits the form data when dialog is closed, or null if cancelled\n */\n openSubAgentAdvancedSettingsDialog(config: {\n subAgent: MJAIAgentEntityExtended;\n allSubAgents: MJAIAgentEntityExtended[];\n viewContainerRef?: ViewContainerRef;\n }): Observable<SubAgentAdvancedSettingsFormData | null> {\n const dialogRef = this.dialogService.open({\n title: `Advanced Settings - ${config.subAgent.Name || 'Sub-Agent'}`,\n content: SubAgentAdvancedSettingsDialogComponent,\n width: 700,\n height: 600,\n minWidth: 500,\n appendTo: config.viewContainerRef\n });\n\n // Pass configuration to the dialog component\n const componentInstance = dialogRef.Content!.instance as unknown as SubAgentAdvancedSettingsDialogComponent;\n componentInstance.subAgent = config.subAgent;\n componentInstance.allSubAgents = config.allSubAgents;\n componentInstance.DialogClose?.subscribe(() => dialogRef.Close());\n\n return componentInstance.result.asObservable();\n }\n\n // === Prompt Creation ===\n\n /**\n * Opens the create prompt dialog for creating new prompts from within the AI Agent form\n * Returns the created entities (not saved to database) for parent to add to PendingRecords\n * \n * @param config Configuration for prompt creation\n * @returns Observable that emits the created prompt and related entities when dialog is closed\n */\n openCreatePromptDialog(config: {\n title?: string;\n initialName?: string;\n initialTypeID?: string;\n viewContainerRef?: ViewContainerRef;\n }): Observable<CreatePromptResult | null> {\n const createConfig: CreatePromptConfig = {\n title: config.title || 'Create New Prompt',\n initialName: config.initialName,\n initialTypeID: config.initialTypeID\n };\n\n const dialogRef = this.dialogService.open({\n title: createConfig.title,\n content: CreatePromptDialogComponent,\n width: 900,\n height: 700,\n minWidth: 700,\n appendTo: config.viewContainerRef\n });\n\n // Pass configuration to the dialog component\n const componentInstance = dialogRef.Content!.instance as unknown as CreatePromptDialogComponent;\n componentInstance.config = createConfig;\n componentInstance.DialogClose?.subscribe(() => dialogRef.Close());\n\n return componentInstance.result.asObservable();\n }\n\n // === Sub-Agent Creation ===\n\n /**\n * Opens the create sub-agent dialog for creating new sub-agents from within the AI Agent form\n * Returns the created entities (not saved to database) for parent to add to PendingRecords\n * \n * @param config Configuration for sub-agent creation\n * @returns Observable that emits the created sub-agent and related entities when dialog is closed\n */\n openCreateSubAgentDialog(config: {\n title?: string;\n initialName?: string;\n initialTypeID?: string;\n parentAgentId: string;\n parentAgentName?: string;\n viewContainerRef?: ViewContainerRef;\n }): Observable<CreateSubAgentResult | null> {\n const createConfig: CreateSubAgentConfig = {\n title: config.title || 'Create New Sub-Agent',\n initialName: config.initialName,\n initialTypeID: config.initialTypeID,\n parentAgentId: config.parentAgentId,\n parentAgentName: config.parentAgentName\n };\n\n const dialogRef = this.dialogService.open({\n title: createConfig.title,\n content: CreateSubAgentDialogComponent,\n width: 1000,\n height: 800,\n minWidth: 800,\n appendTo: config.viewContainerRef\n });\n\n // Pass configuration to the dialog component\n const componentInstance = dialogRef.Content!.instance as unknown as CreateSubAgentDialogComponent;\n componentInstance.config = createConfig;\n componentInstance.DialogClose?.subscribe(() => dialogRef.Close());\n\n return componentInstance.result.asObservable();\n }\n\n // === Future: Agent Creation ===\n\n /**\n * Opens the agent creation dialog (to be implemented)\n * This will reuse existing components and provide a streamlined agent creation experience\n * \n * @param config Configuration for agent creation\n * @returns Observable that emits the created agent when dialog is closed\n */\n openCreateAgentDialog(config: {\n parentAgentId?: string;\n initialData?: Partial<MJAIAgentEntityExtended>;\n viewContainerRef?: ViewContainerRef;\n }): Observable<MJAIAgentEntityExtended | null> {\n // TODO: Implement agent creation dialog\n // This will reuse the same form components and advanced settings\n // but in a creation context rather than editing context\n throw new Error('Agent creation dialog not yet implemented');\n }\n\n // === Utility Methods ===\n\n /**\n * Validates agent configuration and relationships\n * Used by both creation and editing workflows\n */\n validateAgentConfiguration(agent: MJAIAgentEntityExtended): { isValid: boolean; errors: string[] } {\n const errors: string[] = [];\n\n // ParentID vs ExposeAsAction validation\n if (agent.ParentID && agent.ExposeAsAction) {\n errors.push('Agents with a parent cannot be exposed as actions');\n }\n\n // Context compression validation\n if (agent.EnableContextCompression) {\n if (!agent.ContextCompressionMessageThreshold) {\n errors.push('Context compression requires a message threshold');\n }\n if (!agent.ContextCompressionPromptID) {\n errors.push('Context compression requires a compression prompt');\n }\n if (!agent.ContextCompressionMessageRetentionCount) {\n errors.push('Context compression requires a message retention count');\n }\n }\n\n return {\n isValid: errors.length === 0,\n errors\n };\n }\n\n // === Sub-Agent Management ===\n\n /**\n * Future method for managing sub-agent relationships\n * This will handle ParentID, ExecutionOrder, and ExecutionMode\n * in the context of the parent agent's sub-agents section\n */\n openSubAgentManagementDialog(config: {\n parentAgent: MJAIAgentEntityExtended;\n subAgent?: MJAIAgentEntityExtended; // For editing existing sub-agent relationship\n viewContainerRef?: ViewContainerRef;\n }): Observable<any> {\n // TODO: Implement sub-agent management dialog\n // This will handle the hierarchy settings that were removed from Advanced Settings\n throw new Error('Sub-agent management dialog not yet implemented');\n }\n\n}"]}
1
+ {"version":3,"file":"ai-agent-management.service.js","sourceRoot":"","sources":["../../../../src/lib/custom/AIAgents/ai-agent-management.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAoB,MAAM,eAAe,CAAC;AAE7D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAA8C,MAAM,oCAAoC,CAAC;AAC/H,OAAO,EAAE,0CAA0C,EAAuC,MAAM,mDAAmD,CAAC;AACpJ,OAAO,EAAE,uCAAuC,EAAoC,MAAM,gDAAgD,CAAC;AAC3I,OAAO,EAAE,+BAA+B,EAAkD,MAAM,uCAAuC,CAAC;AACxI,OAAO,EAAE,2BAA2B,EAA0C,MAAM,kCAAkC,CAAC;AACvH,OAAO,EAAE,6BAA6B,EAA8C,MAAM,qCAAqC,CAAC;;;AAGhI;;;;;;;;;GASG;AAIH,MAAM,OAAO,wBAAwB;IAEnC,YACU,aAA8B;QAA9B,kBAAa,GAAb,aAAa,CAAiB;IACrC,CAAC;IAEJ,4BAA4B;IAE5B;;;;;OAKG;IACH,mBAAmB,CAAC,MAKnB;QACC,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;YACxC,KAAK,EAAE,kBAAkB,MAAM,CAAC,SAAS,EAAE;YAC3C,OAAO,EAAE,wBAAwB;YACjC,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,GAAG;YACX,QAAQ,EAAE,GAAG;YACb,QAAQ,EAAE,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,mDAAmD,CAAC,CAAC;QACnE,CAAC;QAED,iCAAiC;QACjC,IAAI,KAAK,CAAC,wBAAwB,EAAE,CAAC;YACnC,IAAI,CAAC,KAAK,CAAC,kCAAkC,EAAE,CAAC;gBAC9C,MAAM,CAAC,IAAI,CAAC,kDAAkD,CAAC,CAAC;YAClE,CAAC;YACD,IAAI,CAAC,KAAK,CAAC,0BAA0B,EAAE,CAAC;gBACtC,MAAM,CAAC,IAAI,CAAC,mDAAmD,CAAC,CAAC;YACnE,CAAC;YACD,IAAI,CAAC,KAAK,CAAC,uCAAuC,EAAE,CAAC;gBACnD,MAAM,CAAC,IAAI,CAAC,wDAAwD,CAAC,CAAC;YACxE,CAAC;QACH,CAAC;QAED,OAAO;YACL,OAAO,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC;YAC5B,MAAM;SACP,CAAC;IACJ,CAAC;IAED,0DAA0D;IAC1D,0BAA0B,CAAC,KAA8B;QACvD,OAAO,IAAI,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IAED,+BAA+B;IAE/B;;;;OAIG;IACH,4BAA4B,CAAC,MAI5B;QACC,8CAA8C;QAC9C,mFAAmF;QACnF,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,CAAC;IAED,4DAA4D;IAC5D,4BAA4B,CAAC,MAI5B;QACC,OAAO,IAAI,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAC;IACnD,CAAC;yHAndU,wBAAwB;uEAAxB,wBAAwB,WAAxB,wBAAwB,mBAFvB,MAAM;;iFAEP,wBAAwB;cAHpC,UAAU;eAAC;gBACV,UAAU,EAAE,MAAM;aACnB","sourcesContent":["import { Injectable, ViewContainerRef } from '@angular/core';\nimport { MJDialogService } from '@memberjunction/ng-ui-components';\nimport { Observable } from 'rxjs';\nimport { MJActionEntity, MJAIAgentPromptEntity, } from '@memberjunction/core-entities';\nimport { AddActionDialogComponent } from './add-action-dialog.component';\nimport { PromptSelectorDialogComponent, PromptSelectorConfig, PromptSelectorResult } from './prompt-selector-dialog.component';\nimport { AgentPromptAdvancedSettingsDialogComponent, AgentPromptAdvancedSettingsFormData } from './agent-prompt-advanced-settings-dialog.component';\nimport { SubAgentAdvancedSettingsDialogComponent, SubAgentAdvancedSettingsFormData } from './sub-agent-advanced-settings-dialog.component';\nimport { SubAgentSelectorDialogComponent, SubAgentSelectorConfig, SubAgentSelectorResult } from './sub-agent-selector-dialog.component';\nimport { CreatePromptDialogComponent, CreatePromptConfig, CreatePromptResult } from './create-prompt-dialog.component';\nimport { CreateSubAgentDialogComponent, CreateSubAgentConfig, CreateSubAgentResult } from './create-sub-agent-dialog.component';\nimport { MJAIAgentEntityExtended, MJAIPromptEntityExtended } from '@memberjunction/ai-core-plus';\n\n/**\n * Consolidated service for managing AI Agent operations including:\n * - Adding/removing actions\n * - Advanced settings configuration \n * - Agent creation (future)\n * - Agent editing operations\n * \n * This service centralizes all agent-related dialog and management functionality\n * to provide a consistent interface for both editing existing agents and creating new ones.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class AIAgentManagementService {\n\n constructor(\n private dialogService: MJDialogService\n ) {}\n\n // === Action Management ===\n\n /**\n * Opens the Add Action dialog for selecting actions to link to an agent\n * \n * @param config Configuration for the action selection dialog\n * @returns Observable that emits the selected actions when dialog is closed\n */\n OpenAddActionDialog(config: {\n agentId: string;\n agentName: string;\n existingActionIds: string[];\n viewContainerRef?: ViewContainerRef;\n }): Observable<MJActionEntity[]> {\n const dialogRef = this.dialogService.open({\n title: `Add Actions to ${config.agentName}`,\n content: AddActionDialogComponent,\n width: 1000,\n height: 700,\n minWidth: 800,\n appendTo: config.viewContainerRef\n });\n\n // Pass configuration to the dialog component\n const componentInstance = dialogRef.Content!.instance as unknown as AddActionDialogComponent;\n componentInstance.agentId = config.agentId;\n componentInstance.agentName = config.agentName;\n componentInstance.existingActionIds = [...config.existingActionIds];\n componentInstance.DialogClose?.subscribe(() => dialogRef.Close());\n\n return componentInstance.result.asObservable();\n }\n\n /** @deprecated Use {@link OpenAddActionDialog}. */\n openAddActionDialog(config: {\n agentId: string;\n agentName: string;\n existingActionIds: string[];\n viewContainerRef?: ViewContainerRef;\n }): Observable<MJActionEntity[]> {\n return this.OpenAddActionDialog(config);\n }\n\n\n // === Prompt Management ===\n\n /**\n * Opens the prompt selector dialog for selecting general prompts to add to an agent\n * \n * @param config Configuration for the prompt selection dialog\n * @returns Observable that emits the selected prompts when dialog is closed\n */\n OpenPromptSelectorDialog(config: {\n title?: string;\n multiSelect?: boolean;\n selectedPromptIds?: string[];\n showCreateNew?: boolean;\n extraFilter?: string;\n linkedPromptIds?: string[];\n viewContainerRef?: ViewContainerRef;\n }): Observable<PromptSelectorResult | null> {\n const selectorConfig: PromptSelectorConfig = {\n Title: config.title || 'Select Prompts',\n MultiSelect: config.multiSelect ?? true,\n SelectedPromptIds: config.selectedPromptIds || [],\n ShowCreateNew: config.showCreateNew ?? true,\n ExtraFilter: config.extraFilter,\n LinkedPromptIds: config.linkedPromptIds || []\n };\n\n const dialogRef = this.dialogService.open({\n title: selectorConfig.Title,\n content: PromptSelectorDialogComponent,\n width: 900,\n height: 600,\n minWidth: 600,\n appendTo: config.viewContainerRef\n });\n\n // Pass configuration to the dialog component\n const componentInstance = dialogRef.Content!.instance as unknown as PromptSelectorDialogComponent;\n componentInstance.config = selectorConfig;\n componentInstance.DialogClose?.subscribe(() => dialogRef.Close());\n\n return componentInstance.result.asObservable();\n }\n\n /** @deprecated Use {@link OpenPromptSelectorDialog}. */\n openPromptSelectorDialog(config: {\n title?: string;\n multiSelect?: boolean;\n selectedPromptIds?: string[];\n showCreateNew?: boolean;\n extraFilter?: string;\n linkedPromptIds?: string[];\n viewContainerRef?: ViewContainerRef;\n }): Observable<PromptSelectorResult | null> {\n return this.OpenPromptSelectorDialog(config);\n }\n\n /**\n * Opens the prompt selector for selecting a context compression prompt (single select)\n * \n * @param config Configuration for the context compression prompt selection\n * @returns Observable that emits the selected prompt when dialog is closed\n */\n OpenContextCompressionPromptSelector(config: {\n currentPromptId?: string;\n viewContainerRef?: ViewContainerRef;\n }): Observable<MJAIPromptEntityExtended | null> {\n return new Observable(observer => {\n this.OpenPromptSelectorDialog({\n title: 'Select Context Compression Prompt',\n multiSelect: false,\n selectedPromptIds: config.currentPromptId ? [config.currentPromptId] : [],\n showCreateNew: false,\n extraFilter: undefined, // Show all active prompts\n viewContainerRef: config.viewContainerRef\n }).subscribe(result => {\n if (result && result.SelectedPrompts.length > 0) {\n observer.next(result.SelectedPrompts[0]);\n } else {\n observer.next(null);\n }\n observer.complete();\n });\n });\n }\n\n /** @deprecated Use {@link OpenContextCompressionPromptSelector}. */\n openContextCompressionPromptSelector(config: {\n currentPromptId?: string;\n viewContainerRef?: ViewContainerRef;\n }): Observable<MJAIPromptEntityExtended | null> {\n return this.OpenContextCompressionPromptSelector(config);\n }\n\n // === Sub-Agent Management ===\n\n /**\n * Opens the sub-agent selector dialog for selecting agents to convert to sub-agents\n * \n * @param config Configuration for the sub-agent selection dialog\n * @returns Observable that emits the selected agents when dialog is closed\n */\n OpenSubAgentSelectorDialog(config: {\n title?: string;\n multiSelect?: boolean;\n selectedAgentIds?: string[];\n showCreateNew?: boolean;\n parentAgentId: string;\n viewContainerRef?: ViewContainerRef;\n }): Observable<SubAgentSelectorResult | null> {\n const selectorConfig: SubAgentSelectorConfig = {\n Title: config.title || 'Add Sub-Agents',\n MultiSelect: config.multiSelect ?? true,\n SelectedAgentIds: config.selectedAgentIds || [],\n ShowCreateNew: config.showCreateNew ?? true,\n ParentAgentId: config.parentAgentId\n };\n\n const dialogRef = this.dialogService.open({\n title: selectorConfig.Title,\n content: SubAgentSelectorDialogComponent,\n width: 1000,\n height: 700,\n minWidth: 800,\n appendTo: config.viewContainerRef\n });\n\n // Pass configuration to the dialog component\n const componentInstance = dialogRef.Content!.instance as unknown as SubAgentSelectorDialogComponent;\n componentInstance.config = selectorConfig;\n componentInstance.DialogClose?.subscribe(() => dialogRef.Close());\n\n return componentInstance.result.asObservable();\n }\n\n /** @deprecated Use {@link OpenSubAgentSelectorDialog}. */\n openSubAgentSelectorDialog(config: {\n title?: string;\n multiSelect?: boolean;\n selectedAgentIds?: string[];\n showCreateNew?: boolean;\n parentAgentId: string;\n viewContainerRef?: ViewContainerRef;\n }): Observable<SubAgentSelectorResult | null> {\n return this.OpenSubAgentSelectorDialog(config);\n }\n\n // === Advanced Settings for Related Entities ===\n\n /**\n * Opens the advanced settings dialog for an AI Agent Prompt\n * \n * @param config Configuration for the agent prompt advanced settings dialog\n * @returns Observable that emits the form data when dialog is closed, or null if cancelled\n */\n OpenAgentPromptAdvancedSettingsDialog(config: {\n agentPrompt: MJAIAgentPromptEntity;\n allAgentPrompts: MJAIAgentPromptEntity[];\n viewContainerRef?: ViewContainerRef;\n }): Observable<AgentPromptAdvancedSettingsFormData | null> {\n const dialogRef = this.dialogService.open({\n title: `Advanced Settings - Prompt Configuration`,\n content: AgentPromptAdvancedSettingsDialogComponent,\n width: 700,\n height: 600,\n minWidth: 500,\n appendTo: config.viewContainerRef\n });\n\n // Pass configuration to the dialog component\n const componentInstance = dialogRef.Content!.instance as unknown as AgentPromptAdvancedSettingsDialogComponent;\n componentInstance.agentPrompt = config.agentPrompt;\n componentInstance.allAgentPrompts = config.allAgentPrompts;\n componentInstance.DialogClose?.subscribe(() => dialogRef.Close());\n\n return componentInstance.result.asObservable();\n }\n\n /** @deprecated Use {@link OpenAgentPromptAdvancedSettingsDialog}. */\n openAgentPromptAdvancedSettingsDialog(config: {\n agentPrompt: MJAIAgentPromptEntity;\n allAgentPrompts: MJAIAgentPromptEntity[];\n viewContainerRef?: ViewContainerRef;\n }): Observable<AgentPromptAdvancedSettingsFormData | null> {\n return this.OpenAgentPromptAdvancedSettingsDialog(config);\n }\n\n /**\n * Opens the advanced settings dialog for a Sub-Agent\n * \n * @param config Configuration for the sub-agent advanced settings dialog\n * @returns Observable that emits the form data when dialog is closed, or null if cancelled\n */\n OpenSubAgentAdvancedSettingsDialog(config: {\n subAgent: MJAIAgentEntityExtended;\n allSubAgents: MJAIAgentEntityExtended[];\n viewContainerRef?: ViewContainerRef;\n }): Observable<SubAgentAdvancedSettingsFormData | null> {\n const dialogRef = this.dialogService.open({\n title: `Advanced Settings - ${config.subAgent.Name || 'Sub-Agent'}`,\n content: SubAgentAdvancedSettingsDialogComponent,\n width: 700,\n height: 600,\n minWidth: 500,\n appendTo: config.viewContainerRef\n });\n\n // Pass configuration to the dialog component\n const componentInstance = dialogRef.Content!.instance as unknown as SubAgentAdvancedSettingsDialogComponent;\n componentInstance.subAgent = config.subAgent;\n componentInstance.allSubAgents = config.allSubAgents;\n componentInstance.DialogClose?.subscribe(() => dialogRef.Close());\n\n return componentInstance.result.asObservable();\n }\n\n /** @deprecated Use {@link OpenSubAgentAdvancedSettingsDialog}. */\n openSubAgentAdvancedSettingsDialog(config: {\n subAgent: MJAIAgentEntityExtended;\n allSubAgents: MJAIAgentEntityExtended[];\n viewContainerRef?: ViewContainerRef;\n }): Observable<SubAgentAdvancedSettingsFormData | null> {\n return this.OpenSubAgentAdvancedSettingsDialog(config);\n }\n\n // === Prompt Creation ===\n\n /**\n * Opens the create prompt dialog for creating new prompts from within the AI Agent form\n * Returns the created entities (not saved to database) for parent to add to PendingRecords\n * \n * @param config Configuration for prompt creation\n * @returns Observable that emits the created prompt and related entities when dialog is closed\n */\n OpenCreatePromptDialog(config: {\n title?: string;\n initialName?: string;\n initialTypeID?: string;\n viewContainerRef?: ViewContainerRef;\n }): Observable<CreatePromptResult | null> {\n const createConfig: CreatePromptConfig = {\n title: config.title || 'Create New Prompt',\n InitialName: config.initialName,\n InitialTypeID: config.initialTypeID\n };\n\n const dialogRef = this.dialogService.open({\n title: createConfig.title,\n content: CreatePromptDialogComponent,\n width: 900,\n height: 700,\n minWidth: 700,\n appendTo: config.viewContainerRef\n });\n\n // Pass configuration to the dialog component\n const componentInstance = dialogRef.Content!.instance as unknown as CreatePromptDialogComponent;\n componentInstance.config = createConfig;\n componentInstance.DialogClose?.subscribe(() => dialogRef.Close());\n\n return componentInstance.result.asObservable();\n }\n\n /** @deprecated Use {@link OpenCreatePromptDialog}. */\n openCreatePromptDialog(config: {\n title?: string;\n initialName?: string;\n initialTypeID?: string;\n viewContainerRef?: ViewContainerRef;\n }): Observable<CreatePromptResult | null> {\n return this.OpenCreatePromptDialog(config);\n }\n\n // === Sub-Agent Creation ===\n\n /**\n * Opens the create sub-agent dialog for creating new sub-agents from within the AI Agent form\n * Returns the created entities (not saved to database) for parent to add to PendingRecords\n * \n * @param config Configuration for sub-agent creation\n * @returns Observable that emits the created sub-agent and related entities when dialog is closed\n */\n OpenCreateSubAgentDialog(config: {\n title?: string;\n initialName?: string;\n initialTypeID?: string;\n parentAgentId: string;\n parentAgentName?: string;\n viewContainerRef?: ViewContainerRef;\n }): Observable<CreateSubAgentResult | null> {\n const createConfig: CreateSubAgentConfig = {\n title: config.title || 'Create New Sub-Agent',\n InitialName: config.initialName,\n InitialTypeID: config.initialTypeID,\n ParentAgentId: config.parentAgentId,\n ParentAgentName: config.parentAgentName\n };\n\n const dialogRef = this.dialogService.open({\n title: createConfig.title,\n content: CreateSubAgentDialogComponent,\n width: 1000,\n height: 800,\n minWidth: 800,\n appendTo: config.viewContainerRef\n });\n\n // Pass configuration to the dialog component\n const componentInstance = dialogRef.Content!.instance as unknown as CreateSubAgentDialogComponent;\n componentInstance.config = createConfig;\n componentInstance.DialogClose?.subscribe(() => dialogRef.Close());\n\n return componentInstance.result.asObservable();\n }\n\n /** @deprecated Use {@link OpenCreateSubAgentDialog}. */\n openCreateSubAgentDialog(config: {\n title?: string;\n initialName?: string;\n initialTypeID?: string;\n parentAgentId: string;\n parentAgentName?: string;\n viewContainerRef?: ViewContainerRef;\n }): Observable<CreateSubAgentResult | null> {\n return this.OpenCreateSubAgentDialog(config);\n }\n\n // === Future: Agent Creation ===\n\n /**\n * Opens the agent creation dialog (to be implemented)\n * This will reuse existing components and provide a streamlined agent creation experience\n * \n * @param config Configuration for agent creation\n * @returns Observable that emits the created agent when dialog is closed\n */\n OpenCreateAgentDialog(config: {\n parentAgentId?: string;\n initialData?: Partial<MJAIAgentEntityExtended>;\n viewContainerRef?: ViewContainerRef;\n }): Observable<MJAIAgentEntityExtended | null> {\n // TODO: Implement agent creation dialog\n // This will reuse the same form components and advanced settings\n // but in a creation context rather than editing context\n throw new Error('Agent creation dialog not yet implemented');\n }\n\n /** @deprecated Use {@link OpenCreateAgentDialog}. */\n openCreateAgentDialog(config: {\n parentAgentId?: string;\n initialData?: Partial<MJAIAgentEntityExtended>;\n viewContainerRef?: ViewContainerRef;\n }): Observable<MJAIAgentEntityExtended | null> {\n return this.OpenCreateAgentDialog(config);\n }\n\n // === Utility Methods ===\n\n /**\n * Validates agent configuration and relationships\n * Used by both creation and editing workflows\n */\n ValidateAgentConfiguration(agent: MJAIAgentEntityExtended): { isValid: boolean; errors: string[] } {\n const errors: string[] = [];\n\n // ParentID vs ExposeAsAction validation\n if (agent.ParentID && agent.ExposeAsAction) {\n errors.push('Agents with a parent cannot be exposed as actions');\n }\n\n // Context compression validation\n if (agent.EnableContextCompression) {\n if (!agent.ContextCompressionMessageThreshold) {\n errors.push('Context compression requires a message threshold');\n }\n if (!agent.ContextCompressionPromptID) {\n errors.push('Context compression requires a compression prompt');\n }\n if (!agent.ContextCompressionMessageRetentionCount) {\n errors.push('Context compression requires a message retention count');\n }\n }\n\n return {\n isValid: errors.length === 0,\n errors\n };\n }\n\n /** @deprecated Use {@link ValidateAgentConfiguration}. */\n validateAgentConfiguration(agent: MJAIAgentEntityExtended): { isValid: boolean; errors: string[] } {\n return this.ValidateAgentConfiguration(agent);\n }\n\n // === Sub-Agent Management ===\n\n /**\n * Future method for managing sub-agent relationships\n * This will handle ParentID, ExecutionOrder, and ExecutionMode\n * in the context of the parent agent's sub-agents section\n */\n OpenSubAgentManagementDialog(config: {\n parentAgent: MJAIAgentEntityExtended;\n subAgent?: MJAIAgentEntityExtended; // For editing existing sub-agent relationship\n viewContainerRef?: ViewContainerRef;\n }): Observable<any> {\n // TODO: Implement sub-agent management dialog\n // This will handle the hierarchy settings that were removed from Advanced Settings\n throw new Error('Sub-agent management dialog not yet implemented');\n }\n\n /** @deprecated Use {@link OpenSubAgentManagementDialog}. */\n openSubAgentManagementDialog(config: {\n parentAgent: MJAIAgentEntityExtended;\n subAgent?: MJAIAgentEntityExtended; // For editing existing sub-agent relationship\n viewContainerRef?: ViewContainerRef;\n }): Observable<any> {\n return this.OpenSubAgentManagementDialog(config);\n }\n\n}"]}