@memberjunction/ng-conversations 6.2.0-edge.6 → 6.2.0-edge.8

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 (159) hide show
  1. package/README.md +7 -0
  2. package/dist/lib/components/collection/collection-view.component.d.ts.map +1 -1
  3. package/dist/lib/components/collection/collection-view.component.js +1 -0
  4. package/dist/lib/components/collection/collection-view.component.js.map +1 -1
  5. package/dist/lib/components/conversation/conversation-chat-area.component.d.ts +182 -2
  6. package/dist/lib/components/conversation/conversation-chat-area.component.d.ts.map +1 -1
  7. package/dist/lib/components/conversation/conversation-chat-area.component.js +1295 -462
  8. package/dist/lib/components/conversation/conversation-chat-area.component.js.map +1 -1
  9. package/dist/lib/components/conversation/conversation-list.component.d.ts +26 -4
  10. package/dist/lib/components/conversation/conversation-list.component.d.ts.map +1 -1
  11. package/dist/lib/components/conversation/conversation-list.component.js +305 -122
  12. package/dist/lib/components/conversation/conversation-list.component.js.map +1 -1
  13. package/dist/lib/components/conversation/conversation-mode-picker.component.js +2 -2
  14. package/dist/lib/components/conversation/conversation-mode-picker.component.js.map +1 -1
  15. package/dist/lib/components/conversation/conversation-remote-browser-controller.d.ts +109 -0
  16. package/dist/lib/components/conversation/conversation-remote-browser-controller.d.ts.map +1 -0
  17. package/dist/lib/components/conversation/conversation-remote-browser-controller.js +298 -0
  18. package/dist/lib/components/conversation/conversation-remote-browser-controller.js.map +1 -0
  19. package/dist/lib/components/message/agent-handoff-card.component.d.ts +102 -0
  20. package/dist/lib/components/message/agent-handoff-card.component.d.ts.map +1 -0
  21. package/dist/lib/components/message/agent-handoff-card.component.js +439 -0
  22. package/dist/lib/components/message/agent-handoff-card.component.js.map +1 -0
  23. package/dist/lib/components/message/message-input.component.d.ts +80 -53
  24. package/dist/lib/components/message/message-input.component.d.ts.map +1 -1
  25. package/dist/lib/components/message/message-input.component.js +381 -277
  26. package/dist/lib/components/message/message-input.component.js.map +1 -1
  27. package/dist/lib/components/message/message-item.component.d.ts +24 -1
  28. package/dist/lib/components/message/message-item.component.d.ts.map +1 -1
  29. package/dist/lib/components/message/message-item.component.js +556 -426
  30. package/dist/lib/components/message/message-item.component.js.map +1 -1
  31. package/dist/lib/components/message/message-list.component.d.ts +16 -1
  32. package/dist/lib/components/message/message-list.component.d.ts.map +1 -1
  33. package/dist/lib/components/message/message-list.component.js +59 -2
  34. package/dist/lib/components/message/message-list.component.js.map +1 -1
  35. package/dist/lib/components/overlay/chat-overlay.component.d.ts +27 -2
  36. package/dist/lib/components/overlay/chat-overlay.component.d.ts.map +1 -1
  37. package/dist/lib/components/overlay/chat-overlay.component.js +183 -16
  38. package/dist/lib/components/overlay/chat-overlay.component.js.map +1 -1
  39. package/dist/lib/components/project/project-form-modal.component.d.ts +34 -23
  40. package/dist/lib/components/project/project-form-modal.component.d.ts.map +1 -1
  41. package/dist/lib/components/project/project-form-modal.component.js +437 -71
  42. package/dist/lib/components/project/project-form-modal.component.js.map +1 -1
  43. package/dist/lib/components/project/project-selector.component.d.ts.map +1 -1
  44. package/dist/lib/components/project/project-selector.component.js +6 -3
  45. package/dist/lib/components/project/project-selector.component.js.map +1 -1
  46. package/dist/lib/components/realtime/interactive-component/run-view-component-artifact-source.js +1 -1
  47. package/dist/lib/components/realtime/interactive-component/run-view-component-artifact-source.js.map +1 -1
  48. package/dist/lib/components/realtime/media/media-channel-state.d.ts +5 -0
  49. package/dist/lib/components/realtime/media/media-channel-state.d.ts.map +1 -1
  50. package/dist/lib/components/realtime/media/media-channel-state.js +27 -1
  51. package/dist/lib/components/realtime/media/media-channel-state.js.map +1 -1
  52. package/dist/lib/components/realtime/media/media-channel.d.ts.map +1 -1
  53. package/dist/lib/components/realtime/media/media-channel.js +7 -2
  54. package/dist/lib/components/realtime/media/media-channel.js.map +1 -1
  55. package/dist/lib/components/realtime/media/realtime-media-surface.component.d.ts +19 -2
  56. package/dist/lib/components/realtime/media/realtime-media-surface.component.d.ts.map +1 -1
  57. package/dist/lib/components/realtime/media/realtime-media-surface.component.js +59 -10
  58. package/dist/lib/components/realtime/media/realtime-media-surface.component.js.map +1 -1
  59. package/dist/lib/components/realtime/realtime-agent-banner.component.d.ts +17 -6
  60. package/dist/lib/components/realtime/realtime-agent-banner.component.d.ts.map +1 -1
  61. package/dist/lib/components/realtime/realtime-agent-banner.component.js +61 -27
  62. package/dist/lib/components/realtime/realtime-agent-banner.component.js.map +1 -1
  63. package/dist/lib/components/realtime/realtime-composer.component.d.ts +27 -3
  64. package/dist/lib/components/realtime/realtime-composer.component.d.ts.map +1 -1
  65. package/dist/lib/components/realtime/realtime-composer.component.js +199 -103
  66. package/dist/lib/components/realtime/realtime-composer.component.js.map +1 -1
  67. package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts +55 -15
  68. package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts.map +1 -1
  69. package/dist/lib/components/realtime/realtime-session-overlay.component.js +134 -53
  70. package/dist/lib/components/realtime/realtime-session-overlay.component.js.map +1 -1
  71. package/dist/lib/components/realtime/realtime-session-thread.component.d.ts +3 -1
  72. package/dist/lib/components/realtime/realtime-session-thread.component.d.ts.map +1 -1
  73. package/dist/lib/components/realtime/realtime-session-thread.component.js +8 -4
  74. package/dist/lib/components/realtime/realtime-session-thread.component.js.map +1 -1
  75. package/dist/lib/components/realtime/realtime-ui-config.d.ts +9 -12
  76. package/dist/lib/components/realtime/realtime-ui-config.d.ts.map +1 -1
  77. package/dist/lib/components/realtime/realtime-ui-config.js +38 -18
  78. package/dist/lib/components/realtime/realtime-ui-config.js.map +1 -1
  79. package/dist/lib/components/realtime/remote-browser/remote-browser-channel.d.ts.map +1 -1
  80. package/dist/lib/components/realtime/remote-browser/remote-browser-channel.js +27 -4
  81. package/dist/lib/components/realtime/remote-browser/remote-browser-channel.js.map +1 -1
  82. package/dist/lib/components/realtime/remote-browser/remote-browser-tools.d.ts +8 -2
  83. package/dist/lib/components/realtime/remote-browser/remote-browser-tools.d.ts.map +1 -1
  84. package/dist/lib/components/realtime/remote-browser/remote-browser-tools.js +51 -10
  85. package/dist/lib/components/realtime/remote-browser/remote-browser-tools.js.map +1 -1
  86. package/dist/lib/components/realtime/whiteboard/whiteboard-channel-config.d.ts +46 -0
  87. package/dist/lib/components/realtime/whiteboard/whiteboard-channel-config.d.ts.map +1 -0
  88. package/dist/lib/components/realtime/whiteboard/whiteboard-channel-config.js +64 -0
  89. package/dist/lib/components/realtime/whiteboard/whiteboard-channel-config.js.map +1 -0
  90. package/dist/lib/components/realtime/whiteboard/whiteboard-channel.d.ts +131 -9
  91. package/dist/lib/components/realtime/whiteboard/whiteboard-channel.d.ts.map +1 -1
  92. package/dist/lib/components/realtime/whiteboard/whiteboard-channel.js +347 -38
  93. package/dist/lib/components/realtime/whiteboard/whiteboard-channel.js.map +1 -1
  94. package/dist/lib/components/share/share-modal.component.d.ts +7 -0
  95. package/dist/lib/components/share/share-modal.component.d.ts.map +1 -1
  96. package/dist/lib/components/share/share-modal.component.js +153 -61
  97. package/dist/lib/components/share/share-modal.component.js.map +1 -1
  98. package/dist/lib/conversations.module.d.ts +2 -1
  99. package/dist/lib/conversations.module.d.ts.map +1 -1
  100. package/dist/lib/conversations.module.js +9 -4
  101. package/dist/lib/conversations.module.js.map +1 -1
  102. package/dist/lib/events/chat-events.d.ts +5 -4
  103. package/dist/lib/events/chat-events.d.ts.map +1 -1
  104. package/dist/lib/events/chat-events.js +2 -2
  105. package/dist/lib/events/chat-events.js.map +1 -1
  106. package/dist/lib/models/agent-turn.model.d.ts +11 -7
  107. package/dist/lib/models/agent-turn.model.d.ts.map +1 -1
  108. package/dist/lib/models/agent-turn.model.js.map +1 -1
  109. package/dist/lib/services/active-tasks.service.d.ts +5 -0
  110. package/dist/lib/services/active-tasks.service.d.ts.map +1 -1
  111. package/dist/lib/services/active-tasks.service.js +16 -0
  112. package/dist/lib/services/active-tasks.service.js.map +1 -1
  113. package/dist/lib/services/agent-state.service.d.ts.map +1 -1
  114. package/dist/lib/services/agent-state.service.js +7 -1
  115. package/dist/lib/services/agent-state.service.js.map +1 -1
  116. package/dist/lib/services/artifact-permission.service.d.ts.map +1 -1
  117. package/dist/lib/services/artifact-permission.service.js +2 -0
  118. package/dist/lib/services/artifact-permission.service.js.map +1 -1
  119. package/dist/lib/services/artifact-state.service.d.ts.map +1 -1
  120. package/dist/lib/services/artifact-state.service.js +1 -0
  121. package/dist/lib/services/artifact-state.service.js.map +1 -1
  122. package/dist/lib/services/collection-permission.service.d.ts.map +1 -1
  123. package/dist/lib/services/collection-permission.service.js +1 -0
  124. package/dist/lib/services/collection-permission.service.js.map +1 -1
  125. package/dist/lib/services/conversation-agent.service.d.ts +1 -4
  126. package/dist/lib/services/conversation-agent.service.d.ts.map +1 -1
  127. package/dist/lib/services/conversation-agent.service.js +7 -45
  128. package/dist/lib/services/conversation-agent.service.js.map +1 -1
  129. package/dist/lib/services/realtime-session-review.service.d.ts +2 -1
  130. package/dist/lib/services/realtime-session-review.service.d.ts.map +1 -1
  131. package/dist/lib/services/realtime-session-review.service.js.map +1 -1
  132. package/dist/lib/services/search.service.d.ts.map +1 -1
  133. package/dist/lib/services/search.service.js +1 -0
  134. package/dist/lib/services/search.service.js.map +1 -1
  135. package/dist/lib/utils/agent-handoff-map.d.ts +52 -0
  136. package/dist/lib/utils/agent-handoff-map.d.ts.map +1 -0
  137. package/dist/lib/utils/agent-handoff-map.js +270 -0
  138. package/dist/lib/utils/agent-handoff-map.js.map +1 -0
  139. package/dist/lib/utils/agent-turn-routing.d.ts +62 -7
  140. package/dist/lib/utils/agent-turn-routing.d.ts.map +1 -1
  141. package/dist/lib/utils/agent-turn-routing.js +147 -6
  142. package/dist/lib/utils/agent-turn-routing.js.map +1 -1
  143. package/dist/lib/utils/decision-routing.d.ts +17 -9
  144. package/dist/lib/utils/decision-routing.d.ts.map +1 -1
  145. package/dist/lib/utils/decision-routing.js +23 -14
  146. package/dist/lib/utils/decision-routing.js.map +1 -1
  147. package/dist/lib/utils/folder-move.d.ts +30 -0
  148. package/dist/lib/utils/folder-move.d.ts.map +1 -0
  149. package/dist/lib/utils/folder-move.js +47 -0
  150. package/dist/lib/utils/folder-move.js.map +1 -0
  151. package/dist/lib/utils/thread-replies.d.ts +34 -0
  152. package/dist/lib/utils/thread-replies.d.ts.map +1 -0
  153. package/dist/lib/utils/thread-replies.js +49 -0
  154. package/dist/lib/utils/thread-replies.js.map +1 -0
  155. package/dist/public-api.d.ts +5 -0
  156. package/dist/public-api.d.ts.map +1 -1
  157. package/dist/public-api.js +5 -0
  158. package/dist/public-api.js.map +1 -1
  159. package/package.json +36 -36
package/README.md CHANGED
@@ -145,6 +145,7 @@ Unlike the gates above, these change *how* the surface behaves and default to to
145
145
  | Input | Default | Effect when set |
146
146
  |---|---|---|
147
147
  | `readReplyFromTop` | `false` | A finished turn — the reader's message plus the reply — is scrolled to the top of the pane if it is taller than the pane, so the run ends at the start of the answer instead of its end. A turn that fits stays where it is; a reader who scrolled up during the run is never moved. (Independent of this switch, an in-place message update — progress, status, streamed text — only follows the tail for a reader who is already at the bottom.) |
148
+ | `OpenLinksInNewTab` | `true` | Inline markdown links in messages (external and relative/same-origin URLs, whether bare `https://...` autolinks or `[text](url)` links) open in a new browser tab (`target="_blank"` with `rel="noopener noreferrer"`). In-page fragment links (`#heading`), `mailto:` / `tel:` / `sms:` links, and raw HTML links with an explicit `target` keep their behaviour. Set `false` to open links in the current tab. |
148
149
 
149
150
 
150
151
  ```html
@@ -398,6 +399,12 @@ This package never navigates (no Router): developer links emit a `RealtimeNaviga
398
399
  </mj-export-modal>
399
400
  ```
400
401
 
402
+ #### Conversation folders
403
+
404
+ A folder (`MJ: Projects`) is Private (only its owner sees it, the default), Shared (with chosen users or roles, through `MJ: Resource Permissions`) or Public (`OwnerUserID` null, everyone in the environment). A conversation in a Shared or Public folder appears in the lists of the people the folder is shared with only when its owner turns on folder inheritance (off by default), at the folder's level (View for a Public folder). Each folder is shared on its own; a subfolder does not inherit its parent's grants. Only a conversation's owner can move it or change whether it inherits, and only a folder's owner can change its owner or parent; the server enforces both on save, except for the server itself and the system user (so system-user agent runs are exempt). The server also refuses moving a folder into itself or one of its subfolders.
405
+
406
+ Folder sharing controls which conversations are listed, not who can read them. Core ships no UI-role row-level security on `MJ: Conversations` or `MJ: Conversation Details`, so a host that needs hard read isolation must add that RLS itself.
407
+
401
408
  ## Component Reference
402
409
 
403
410
  ### Messaging Components
@@ -1 +1 @@
1
- {"version":3,"file":"collection-view.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/collection/collection-view.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACjH,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,uBAAuB,EAA8B,MAAM,+BAA+B,CAAC;AAC1I,OAAO,EAAE,QAAQ,EAAqB,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;;AAEpE,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAChC,KAAK,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvC,qBA4Ga,uBAAwB,SAAQ,oBAAqB,YAAW,MAAM,EAAE,SAAS,EAAE,SAAS;IAuH3F,OAAO,CAAC,GAAG;IAAqB,OAAO,CAAC,cAAc;IAtHzD,UAAU,EAAG,kBAAkB,CAAC;IAEzC,0CAA0C;IAC1C,IAAa,UAAU,CAAC,KAAK,EAAE,kBAAkB,EAEhD;IACD,0CAA0C;IAC1C,IAAI,UAAU,IAAI,kBAAkB,CAEnC;IACQ,WAAW,EAAG,QAAQ,CAAC;IAEhC,2CAA2C;IAC3C,IAAa,WAAW,CAAC,KAAK,EAAE,QAAQ,EAEvC;IACD,2CAA2C;IAC3C,IAAI,WAAW,IAAI,QAAQ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AE,OAAO,EAAE,uBAAuB,CAAC;QAAC,QAAQ,EAAE,gBAAgB,CAAA;KAAE,GAAG,IAAI;IAItF,gBAAgB,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,uBAAuB,CAAC;QAAC,QAAQ,EAAE,gBAAgB,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IA8C7G,gDAAgD;IAC1C,gBAAgB,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,uBAAuB,CAAC;QAAC,QAAQ,EAAE,gBAAgB,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvG,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IA+CpC,6CAA6C;IACvC,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;yCApWzB,uBAAuB;2CAAvB,uBAAuB;CAuWnC"}
1
+ {"version":3,"file":"collection-view.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/collection/collection-view.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACjH,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,uBAAuB,EAA8B,MAAM,+BAA+B,CAAC;AAC1I,OAAO,EAAE,QAAQ,EAAqB,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;;AAEpE,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAChC,KAAK,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvC,qBA4Ga,uBAAwB,SAAQ,oBAAqB,YAAW,MAAM,EAAE,SAAS,EAAE,SAAS;IAuH3F,OAAO,CAAC,GAAG;IAAqB,OAAO,CAAC,cAAc;IAtHzD,UAAU,EAAG,kBAAkB,CAAC;IAEzC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CAAA;KAAE,GAAG,IAAI;IAI5F,qBAAqB,IAAI,IAAI;IAM7B,qDAAqD;IACrD,qBAAqB,IAAI,IAAI;IAI7B,cAAc,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,uBAAuB,CAAC;QAAC,QAAQ,EAAE,gBAAgB,CAAA;KAAE,GAAG,IAAI;IAI5F,8CAA8C;IAC9C,cAAc,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,uBAAuB,CAAC;QAAC,QAAQ,EAAE,gBAAgB,CAAA;KAAE,GAAG,IAAI;IAItF,gBAAgB,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,uBAAuB,CAAC;QAAC,QAAQ,EAAE,gBAAgB,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IA8C7G,gDAAgD;IAC1C,gBAAgB,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,uBAAuB,CAAC;QAAC,QAAQ,EAAE,gBAAgB,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvG,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAgDpC,6CAA6C;IACvC,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;yCArWzB,uBAAuB;2CAAvB,uBAAuB;CAwWnC"}
@@ -342,6 +342,7 @@ export class CollectionViewComponent extends BaseAngularComponent {
342
342
  ExtraFilter: `ArtifactID='${artifact.ID}'`,
343
343
  OrderBy: 'VersionNumber DESC',
344
344
  MaxRows: 1,
345
+ SkipTotalRowCount: true,
345
346
  ResultType: 'entity_object'
346
347
  }, this.CurrentUser);
347
348
  if (!versionResult.Success || !versionResult.Results || versionResult.Results.length === 0) {
@@ -1 +1 @@
1
- {"version":3,"file":"collection-view.component.js","sourceRoot":"","sources":["../../../../src/lib/components/collection/collection-view.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAkE,MAAM,eAAe,CAAC;AACjH,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CA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qC;YAArC,yDAAqC;YAKnC,eAAoC;YAApC,iDAAoC;YAOpC,eAAoC;YAApC,iDAAoC;YAQtC,eAAoB;YAApB,0CAAoB;YAIpB,cAEC;YAFD,8BAEC;YAGH,eAIC;YAJD,uCAIC;YAIqB,cAAuC;YAAC,AAAxC,oDAAuC,sCAAwC;YACvG,cAOC;YAPD,6DAOC;YAED,cASC;YATD,mCASC;YAKL,eAcC;YAdD,4EAcC;;;iFA2BQ,uBAAuB;cA5GnC,SAAS;6BACI,KAAK,YACP,oBAAoB,YACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+EP;;kBA2BF,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kFA/BK,uBAAuB","sourcesContent":["import { Component, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, ChangeDetectorRef } from '@angular/core';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { MJCollectionEntity, MJArtifactEntity, MJArtifactVersionEntity, MJCollectionArtifactEntity } from '@memberjunction/core-entities';\nimport { UserInfo, RunView, Metadata } from '@memberjunction/core';\nimport { MJNotificationService } from '@memberjunction/ng-notifications';\nimport { MJConfirmService } from '@memberjunction/ng-ui-components';\n\ntype ViewMode = 'grid' | 'list';\ntype SortBy = 'name' | 'date' | 'type';\n\n@Component({\n standalone: false,\n selector: 'mj-collection-view',\n template: `\n <div class=\"collection-view\">\n <div class=\"view-header\">\n <h2>{{ collection.Name || 'Collection' }}</h2>\n <div class=\"header-actions\">\n <div class=\"view-mode-toggle\">\n <button\n class=\"mode-btn\"\n [class.active]=\"viewMode === 'grid'\"\n (click)=\"viewMode = 'grid'\"\n title=\"Grid View\">\n <i class=\"fas fa-grid\"></i>\n </button>\n <button\n class=\"mode-btn\"\n [class.active]=\"viewMode === 'list'\"\n (click)=\"viewMode = 'list'\"\n title=\"List View\">\n <i class=\"fas fa-list\"></i>\n </button>\n </div>\n \n <select\n [(ngModel)]=\"sortBy\"\n (ngModelChange)=\"onSortChange()\"\n class=\"mj-select\"\n style=\"width: 150px;\">\n @for (option of sortOptions; track option.value) {\n <option [value]=\"option.value\">{{ option.label }}</option>\n }\n </select>\n \n @if (canEdit) {\n <button class=\"btn-add\" (click)=\"onAddArtifact()\" title=\"Add Artifact\">\n <i class=\"fas fa-plus\"></i> Add\n </button>\n }\n </div>\n </div>\n \n <div class=\"view-content\" [class.grid-mode]=\"viewMode === 'grid'\" [class.list-mode]=\"viewMode === 'list'\">\n @if (artifactVersions.length === 0) {\n <mj-empty-state\n Icon=\"fa-solid fa-folder-open\"\n Title=\"This collection is empty\"\n [ActionText]=\"canEdit ? 'Add Artifact' : ''\"\n ActionIcon=\"fa-solid fa-plus\"\n (Action)=\"onAddArtifact()\" />\n }\n \n @for (item of artifactVersions; track item.version.ID) {\n <mj-collection-artifact-card\n [artifact]=\"item.artifact\"\n [version]=\"item.version\"\n (selected)=\"onArtifactSelected(item)\"\n (viewed)=\"onViewArtifact(item)\"\n (edited)=\"onEditArtifact(item)\"\n (removed)=\"onRemoveArtifact(item)\">\n </mj-collection-artifact-card>\n }\n </div>\n </div>\n \n <!-- Artifact Viewer Panel -->\n @if (showArtifactViewer && selectedArtifactId) {\n <div class=\"artifact-viewer-overlay\" (click)=\"onCloseArtifactViewer()\">\n <div class=\"artifact-viewer-container\" (click)=\"$event.stopPropagation()\">\n <mj-artifact-viewer-panel\n [artifactId]=\"selectedArtifactId\"\n [versionNumber]=\"selectedVersionNumber\"\n [currentUser]=\"currentUser\"\n [environmentId]=\"environmentId\"\n [viewContext]=\"'collection'\"\n [contextCollectionId]=\"collection.ID\"\n (closed)=\"onCloseArtifactViewer()\">\n </mj-artifact-viewer-panel>\n </div>\n </div>\n }\n `,\n styles: [`\n .collection-view { display: flex; flex-direction: column; height: 100%; background: var(--mj-bg-surface); }\n\n .view-header { padding: 20px 24px; border-bottom: 1px solid var(--mj-border-default); display: flex; justify-content: space-between; align-items: center; }\n .view-header h2 { margin: 0; font-size: 20px; flex: 1; }\n\n .header-actions { display: flex; align-items: center; gap: 12px; }\n\n .view-mode-toggle { display: flex; border: 1px solid var(--mj-border-default); border-radius: 4px; overflow: hidden; }\n .mode-btn { padding: 8px 12px; background: var(--mj-bg-surface); border: none; border-right: 1px solid var(--mj-border-default); cursor: pointer; color: var(--mj-text-muted); transition: all 150ms ease; }\n .mode-btn:last-child { border-right: none; }\n .mode-btn:hover { background: var(--mj-bg-surface-sunken); }\n .mode-btn.active { background: var(--mj-brand-primary); color: var(--mj-text-inverse); }\n\n .btn-add { padding: 8px 16px; background: var(--mj-brand-primary); color: var(--mj-text-inverse); border: none; border-radius: 4px; cursor: pointer; display: flex; align-items: center; gap: 6px; }\n .btn-add:hover { background: var(--mj-brand-primary-hover); }\n\n .view-content { flex: 1; overflow-y: auto; padding: 24px; }\n .view-content.grid-mode { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }\n .view-content.list-mode { display: flex; flex-direction: column; gap: 12px; }\n\n .artifact-viewer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--mj-bg-overlay); display: flex; align-items: center; justify-content: center; z-index: 10000; }\n .artifact-viewer-container { width: 90%; max-width: 1200px; height: 90vh; background: var(--mj-bg-surface); border-radius: 12px; overflow: hidden; box-shadow: var(--mj-shadow-lg); }\n `]\n})\nexport class CollectionViewComponent extends BaseAngularComponent implements OnInit, OnChanges, OnDestroy {\n @Input() Collection!: MJCollectionEntity;\n\n /** @deprecated Use {@link Collection}. */\n @Input() set collection(value: MJCollectionEntity) {\n this.Collection = value;\n }\n /** @deprecated Use {@link Collection}. */\n get collection(): MJCollectionEntity {\n return this.Collection;\n }\n @Input() CurrentUser!: UserInfo;\n\n /** @deprecated Use {@link CurrentUser}. */\n @Input() set currentUser(value: UserInfo) {\n this.CurrentUser = value;\n }\n /** @deprecated Use {@link CurrentUser}. */\n get currentUser(): UserInfo {\n return this.CurrentUser;\n }\n @Input() EnvironmentId!: string;\n\n /** @deprecated Use {@link EnvironmentId}. */\n @Input() set environmentId(value: string) {\n this.EnvironmentId = value;\n }\n /** @deprecated Use {@link EnvironmentId}. */\n get environmentId(): string {\n return this.EnvironmentId;\n }\n @Input() canEdit: boolean = true;\n\n // Store versions with parent artifact info for display\n public ArtifactVersions: Array<{\n version: MJArtifactVersionEntity;\n artifact: MJArtifactEntity;\n }> = [];\n\n /** @deprecated Use {@link ArtifactVersions}. */\n public get artifactVersions(): Array<{\n version: MJArtifactVersionEntity;\n artifact: MJArtifactEntity;\n }> {\n return this.ArtifactVersions;\n }\n /** @deprecated Use {@link ArtifactVersions}. */\n public set artifactVersions(value: Array<{\n version: MJArtifactVersionEntity;\n artifact: MJArtifactEntity;\n }>) {\n this.ArtifactVersions = value;\n }\n public ViewMode: ViewMode = 'grid';\n\n /** @deprecated Use {@link ViewMode}. */\n public get viewMode(): ViewMode {\n return this.ViewMode;\n }\n /** @deprecated Use {@link ViewMode}. */\n public set viewMode(value: ViewMode) {\n this.ViewMode = value;\n }\n public SortBy: SortBy = 'date';\n\n /** @deprecated Use {@link SortBy}. */\n public get sortBy(): SortBy {\n return this.SortBy;\n }\n /** @deprecated Use {@link SortBy}. */\n public set sortBy(value: SortBy) {\n this.SortBy = value;\n }\n public SelectedArtifactId: string | null = null;\n\n /** @deprecated Use {@link SelectedArtifactId}. */\n public get selectedArtifactId(): string | null {\n return this.SelectedArtifactId;\n }\n /** @deprecated Use {@link SelectedArtifactId}. */\n public set selectedArtifactId(value: string | null) {\n this.SelectedArtifactId = value;\n }\n public SelectedVersionNumber: number | undefined = undefined;\n\n /** @deprecated Use {@link SelectedVersionNumber}. */\n public get selectedVersionNumber(): number | undefined {\n return this.SelectedVersionNumber;\n }\n /** @deprecated Use {@link SelectedVersionNumber}. */\n public set selectedVersionNumber(value: number | undefined) {\n this.SelectedVersionNumber = value;\n }\n public ShowArtifactViewer = false;\n\n /** @deprecated Use {@link ShowArtifactViewer}. */\n public get showArtifactViewer() {\n return this.ShowArtifactViewer;\n }\n /** @deprecated Use {@link ShowArtifactViewer}. */\n public set showArtifactViewer(value) {\n this.ShowArtifactViewer = value;\n }\n\n public SortOptions = [\n { label: 'Name', value: 'name' },\n { label: 'Date Modified', value: 'date' },\n { label: 'Type', value: 'type' }\n ];\n\n /** @deprecated Use {@link SortOptions}. */\n public get sortOptions() {\n return this.SortOptions;\n }\n /** @deprecated Use {@link SortOptions}. */\n public set sortOptions(value) {\n this.SortOptions = value;\n }\n\n constructor(private cdr: ChangeDetectorRef, private confirmService: MJConfirmService) {\n super();}\n\n ngOnInit() {\n this.loadArtifacts();\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['collection'] && !changes['collection'].firstChange) {\n this.loadArtifacts();\n }\n }\n\n ngOnDestroy() {\n // Close artifact viewer when navigating away from collection\n if (this.ShowArtifactViewer) {\n this.OnCloseArtifactViewer();\n }\n }\n\n private async loadArtifacts(): Promise<void> {\n if (!this.Collection) return;\n\n try {\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n const md = this.ProviderToUse;\n\n // Load ALL VERSIONS in this collection (no DISTINCT - each version is separate)\n const versionResult = await rv.RunView<MJArtifactVersionEntity>({\n EntityName: 'MJ: Artifact Versions',\n ExtraFilter: `ID IN (\n SELECT ca.ArtifactVersionID\n FROM [__mj].[vwCollectionArtifacts] ca\n WHERE ca.CollectionID='${this.Collection.ID}'\n )`,\n OrderBy: this.getVersionOrderBy(),\n ResultType: 'entity_object'\n }, this.CurrentUser);\n\n if (versionResult.Success && versionResult.Results) {\n // Get unique artifact IDs\n const artifactIds = [...new Set(versionResult.Results.map(v => v.ArtifactID))];\n\n // Load parent artifact info (just for display metadata - no visibility filtering)\n const artifactMap = new Map<string, MJArtifactEntity>();\n if (artifactIds.length > 0) {\n const artifactFilter = artifactIds.map(id => `ID='${id}'`).join(' OR ');\n const artifactResult = await rv.RunView<MJArtifactEntity>({\n EntityName: 'MJ: Artifacts',\n ExtraFilter: artifactFilter,\n ResultType: 'entity_object'\n }, this.CurrentUser);\n\n if (artifactResult.Success && artifactResult.Results) {\n artifactResult.Results.forEach(a => artifactMap.set(a.ID, a));\n }\n }\n\n // Combine version + artifact info\n this.ArtifactVersions = versionResult.Results\n .map(version => ({\n version,\n artifact: artifactMap.get(version.ArtifactID)!\n }))\n .filter(item => item.artifact != null); // Filter out any without parent artifact\n } else {\n this.ArtifactVersions = [];\n }\n } catch (error) {\n console.error('Failed to load collection artifacts:', error);\n this.ArtifactVersions = [];\n }\n }\n\n private getVersionOrderBy(): string {\n switch (this.SortBy) {\n case 'name':\n return 'Name ASC, VersionNumber DESC';\n case 'type':\n // Will sort by parent artifact type (handled in template)\n return 'ArtifactID ASC, VersionNumber DESC';\n case 'date':\n default:\n return '__mj_UpdatedAt DESC';\n }\n }\n\n OnSortChange(): void {\n this.loadArtifacts();\n }\n\n /** @deprecated Use {@link OnSortChange}. */\n onSortChange(): void {\n return this.OnSortChange();\n }\n\n OnArtifactSelected(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): void {\n // TODO: Emit event or navigate to artifact detail view\n }\n\n /** @deprecated Use {@link OnArtifactSelected}. */\n onArtifactSelected(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): void {\n return this.OnArtifactSelected(item);\n }\n\n OnViewArtifact(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): void {\n this.SelectedArtifactId = item.artifact.ID;\n this.SelectedVersionNumber = item.version.VersionNumber;\n // Force change detection to ensure Input bindings propagate before component creation\n this.cdr.detectChanges();\n this.ShowArtifactViewer = true;\n }\n\n /** @deprecated Use {@link OnViewArtifact}. */\n onViewArtifact(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): void {\n return this.OnViewArtifact(item);\n }\n\n OnCloseArtifactViewer(): void {\n this.ShowArtifactViewer = false;\n this.SelectedArtifactId = null;\n this.SelectedVersionNumber = undefined;\n }\n\n /** @deprecated Use {@link OnCloseArtifactViewer}. */\n onCloseArtifactViewer(): void {\n return this.OnCloseArtifactViewer();\n }\n\n OnEditArtifact(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): void {\n // TODO: Open artifact editor\n }\n\n /** @deprecated Use {@link OnEditArtifact}. */\n onEditArtifact(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): void {\n return this.OnEditArtifact(item);\n }\n\n async OnRemoveArtifact(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): Promise<void> {\n const versionLabel = `\"${item.artifact.Name}\" v${item.version.VersionNumber}`;\n if (!(await this.confirmService.ConfirmDelete({ title: 'Remove from Collection', message: `Remove ${versionLabel} from this collection?`, confirmText: 'Remove' }))) return;\n\n try {\n // Delete THIS SPECIFIC VERSION from the collection\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n const result = await rv.RunView({\n EntityName: 'MJ: Collection Artifacts',\n ExtraFilter: `CollectionID='${this.Collection.ID}' AND ArtifactVersionID='${item.version.ID}'`,\n ResultType: 'entity_object'\n }, this.CurrentUser);\n\n if (result.Success && result.Results && result.Results.length > 0) {\n // Delete all version associations atomically\n const md = this.ProviderToUse;\n const tg = await md.CreateTransactionGroup();\n for (const joinRecord of result.Results) {\n joinRecord.TransactionGroup = tg;\n await joinRecord.Delete();\n }\n const success = await tg.Submit();\n if (!success) {\n MJNotificationService.Instance.CreateSimpleNotification(\n `Failed to remove ${versionLabel} from collection`,\n 'error'\n );\n return;\n }\n await this.loadArtifacts();\n this.cdr.detectChanges();\n MJNotificationService.Instance.CreateSimpleNotification(\n `Removed ${versionLabel} from collection`,\n 'success',\n 3000\n );\n }\n } catch (error) {\n console.error('Failed to remove artifact version from collection:', error);\n MJNotificationService.Instance.CreateSimpleNotification(\n 'Failed to remove artifact version from collection',\n 'error'\n );\n }\n }\n\n /** @deprecated Use {@link OnRemoveArtifact}. */\n async onRemoveArtifact(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): Promise<void> {\n return this.OnRemoveArtifact(item);\n }\n\n async OnAddArtifact(): Promise<void> {\n // TODO: Open artifact picker dialog\n // For now, just show a simple prompt\n const name = prompt('Enter artifact name:');\n if (!name) return;\n\n try {\n // Create new artifact\n const md = this.ProviderToUse;\n const artifact = await md.GetEntityObject<MJArtifactEntity>('MJ: Artifacts', this.CurrentUser);\n\n artifact.Name = name;\n // Type is read-only, set via TypeID instead\n // For now, skip setting type - it has a default\n\n const saved = await artifact.Save();\n if (saved) {\n // Get the latest version of this artifact to add to collection\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n // conversation-scope: artifact-wide read, no conversation path applies\n const versionResult = await rv.RunView({\n EntityName: 'MJ: Artifact Versions',\n ExtraFilter: `ArtifactID='${artifact.ID}'`,\n OrderBy: 'VersionNumber DESC',\n MaxRows: 1,\n ResultType: 'entity_object'\n }, this.CurrentUser);\n\n if (!versionResult.Success || !versionResult.Results || versionResult.Results.length === 0) {\n alert('Failed to get artifact version');\n return;\n }\n\n // Add to collection via join table using version ID\n const joinRecord = await md.GetEntityObject<MJCollectionArtifactEntity>('MJ: Collection Artifacts', this.CurrentUser);\n joinRecord.CollectionID = this.Collection.ID;\n joinRecord.ArtifactVersionID = versionResult.Results[0].ID;\n\n await joinRecord.Save();\n await this.loadArtifacts();\n }\n } catch (error) {\n console.error('Failed to add artifact:', error);\n alert('Failed to add artifact');\n }\n }\n\n /** @deprecated Use {@link OnAddArtifact}. */\n async onAddArtifact(): Promise<void> {\n return this.OnAddArtifact();\n }\n}"]}
1
+ {"version":3,"file":"collection-view.component.js","sourceRoot":"","sources":["../../../../src/lib/components/collection/collection-view.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAkE,MAAM,eAAe,CAAC;AACjH,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EAAY,OAAO,EAAY,MAAM,sBAAsB,CAAC;AACn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C;YAApC,iDAAoC;YAOpC,eAAoC;YAApC,iDAAoC;YAQtC,eAAoB;YAApB,0CAAoB;YAIpB,cAEC;YAFD,8BAEC;YAGH,eAIC;YAJD,uCAIC;YAIqB,cAAuC;YAAC,AAAxC,oDAAuC,sCAAwC;YACvG,cAOC;YAPD,6DAOC;YAED,cASC;YATD,mCASC;YAKL,eAcC;YAdD,4EAcC;;;iFA2BQ,uBAAuB;cA5GnC,SAAS;6BACI,KAAK,YACP,oBAAoB,YACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+EP;;kBA2BF,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kFA/BK,uBAAuB","sourcesContent":["import { Component, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, ChangeDetectorRef } from '@angular/core';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { MJCollectionEntity, MJArtifactEntity, MJArtifactVersionEntity, MJCollectionArtifactEntity } from '@memberjunction/core-entities';\nimport { UserInfo, RunView, Metadata } from '@memberjunction/core';\nimport { MJNotificationService } from '@memberjunction/ng-notifications';\nimport { MJConfirmService } from '@memberjunction/ng-ui-components';\n\ntype ViewMode = 'grid' | 'list';\ntype SortBy = 'name' | 'date' | 'type';\n\n@Component({\n standalone: false,\n selector: 'mj-collection-view',\n template: `\n <div class=\"collection-view\">\n <div class=\"view-header\">\n <h2>{{ collection.Name || 'Collection' }}</h2>\n <div class=\"header-actions\">\n <div class=\"view-mode-toggle\">\n <button\n class=\"mode-btn\"\n [class.active]=\"viewMode === 'grid'\"\n (click)=\"viewMode = 'grid'\"\n title=\"Grid View\">\n <i class=\"fas fa-grid\"></i>\n </button>\n <button\n class=\"mode-btn\"\n [class.active]=\"viewMode === 'list'\"\n (click)=\"viewMode = 'list'\"\n title=\"List View\">\n <i class=\"fas fa-list\"></i>\n </button>\n </div>\n \n <select\n [(ngModel)]=\"sortBy\"\n (ngModelChange)=\"onSortChange()\"\n class=\"mj-select\"\n style=\"width: 150px;\">\n @for (option of sortOptions; track option.value) {\n <option [value]=\"option.value\">{{ option.label }}</option>\n }\n </select>\n \n @if (canEdit) {\n <button class=\"btn-add\" (click)=\"onAddArtifact()\" title=\"Add Artifact\">\n <i class=\"fas fa-plus\"></i> Add\n </button>\n }\n </div>\n </div>\n \n <div class=\"view-content\" [class.grid-mode]=\"viewMode === 'grid'\" [class.list-mode]=\"viewMode === 'list'\">\n @if (artifactVersions.length === 0) {\n <mj-empty-state\n Icon=\"fa-solid fa-folder-open\"\n Title=\"This collection is empty\"\n [ActionText]=\"canEdit ? 'Add Artifact' : ''\"\n ActionIcon=\"fa-solid fa-plus\"\n (Action)=\"onAddArtifact()\" />\n }\n \n @for (item of artifactVersions; track item.version.ID) {\n <mj-collection-artifact-card\n [artifact]=\"item.artifact\"\n [version]=\"item.version\"\n (selected)=\"onArtifactSelected(item)\"\n (viewed)=\"onViewArtifact(item)\"\n (edited)=\"onEditArtifact(item)\"\n (removed)=\"onRemoveArtifact(item)\">\n </mj-collection-artifact-card>\n }\n </div>\n </div>\n \n <!-- Artifact Viewer Panel -->\n @if (showArtifactViewer && selectedArtifactId) {\n <div class=\"artifact-viewer-overlay\" (click)=\"onCloseArtifactViewer()\">\n <div class=\"artifact-viewer-container\" (click)=\"$event.stopPropagation()\">\n <mj-artifact-viewer-panel\n [artifactId]=\"selectedArtifactId\"\n [versionNumber]=\"selectedVersionNumber\"\n [currentUser]=\"currentUser\"\n [environmentId]=\"environmentId\"\n [viewContext]=\"'collection'\"\n [contextCollectionId]=\"collection.ID\"\n (closed)=\"onCloseArtifactViewer()\">\n </mj-artifact-viewer-panel>\n </div>\n </div>\n }\n `,\n styles: [`\n .collection-view { display: flex; flex-direction: column; height: 100%; background: var(--mj-bg-surface); }\n\n .view-header { padding: 20px 24px; border-bottom: 1px solid var(--mj-border-default); display: flex; justify-content: space-between; align-items: center; }\n .view-header h2 { margin: 0; font-size: 20px; flex: 1; }\n\n .header-actions { display: flex; align-items: center; gap: 12px; }\n\n .view-mode-toggle { display: flex; border: 1px solid var(--mj-border-default); border-radius: 4px; overflow: hidden; }\n .mode-btn { padding: 8px 12px; background: var(--mj-bg-surface); border: none; border-right: 1px solid var(--mj-border-default); cursor: pointer; color: var(--mj-text-muted); transition: all 150ms ease; }\n .mode-btn:last-child { border-right: none; }\n .mode-btn:hover { background: var(--mj-bg-surface-sunken); }\n .mode-btn.active { background: var(--mj-brand-primary); color: var(--mj-text-inverse); }\n\n .btn-add { padding: 8px 16px; background: var(--mj-brand-primary); color: var(--mj-text-inverse); border: none; border-radius: 4px; cursor: pointer; display: flex; align-items: center; gap: 6px; }\n .btn-add:hover { background: var(--mj-brand-primary-hover); }\n\n .view-content { flex: 1; overflow-y: auto; padding: 24px; }\n .view-content.grid-mode { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }\n .view-content.list-mode { display: flex; flex-direction: column; gap: 12px; }\n\n .artifact-viewer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--mj-bg-overlay); display: flex; align-items: center; justify-content: center; z-index: 10000; }\n .artifact-viewer-container { width: 90%; max-width: 1200px; height: 90vh; background: var(--mj-bg-surface); border-radius: 12px; overflow: hidden; box-shadow: var(--mj-shadow-lg); }\n `]\n})\nexport class CollectionViewComponent extends BaseAngularComponent implements OnInit, OnChanges, OnDestroy {\n @Input() Collection!: MJCollectionEntity;\n\n /** @deprecated Use {@link Collection}. */\n @Input() set collection(value: MJCollectionEntity) {\n this.Collection = value;\n }\n /** @deprecated Use {@link Collection}. */\n get collection(): MJCollectionEntity {\n return this.Collection;\n }\n @Input() CurrentUser!: UserInfo;\n\n /** @deprecated Use {@link CurrentUser}. */\n @Input() set currentUser(value: UserInfo) {\n this.CurrentUser = value;\n }\n /** @deprecated Use {@link CurrentUser}. */\n get currentUser(): UserInfo {\n return this.CurrentUser;\n }\n @Input() EnvironmentId!: string;\n\n /** @deprecated Use {@link EnvironmentId}. */\n @Input() set environmentId(value: string) {\n this.EnvironmentId = value;\n }\n /** @deprecated Use {@link EnvironmentId}. */\n get environmentId(): string {\n return this.EnvironmentId;\n }\n @Input() canEdit: boolean = true;\n\n // Store versions with parent artifact info for display\n public ArtifactVersions: Array<{\n version: MJArtifactVersionEntity;\n artifact: MJArtifactEntity;\n }> = [];\n\n /** @deprecated Use {@link ArtifactVersions}. */\n public get artifactVersions(): Array<{\n version: MJArtifactVersionEntity;\n artifact: MJArtifactEntity;\n }> {\n return this.ArtifactVersions;\n }\n /** @deprecated Use {@link ArtifactVersions}. */\n public set artifactVersions(value: Array<{\n version: MJArtifactVersionEntity;\n artifact: MJArtifactEntity;\n }>) {\n this.ArtifactVersions = value;\n }\n public ViewMode: ViewMode = 'grid';\n\n /** @deprecated Use {@link ViewMode}. */\n public get viewMode(): ViewMode {\n return this.ViewMode;\n }\n /** @deprecated Use {@link ViewMode}. */\n public set viewMode(value: ViewMode) {\n this.ViewMode = value;\n }\n public SortBy: SortBy = 'date';\n\n /** @deprecated Use {@link SortBy}. */\n public get sortBy(): SortBy {\n return this.SortBy;\n }\n /** @deprecated Use {@link SortBy}. */\n public set sortBy(value: SortBy) {\n this.SortBy = value;\n }\n public SelectedArtifactId: string | null = null;\n\n /** @deprecated Use {@link SelectedArtifactId}. */\n public get selectedArtifactId(): string | null {\n return this.SelectedArtifactId;\n }\n /** @deprecated Use {@link SelectedArtifactId}. */\n public set selectedArtifactId(value: string | null) {\n this.SelectedArtifactId = value;\n }\n public SelectedVersionNumber: number | undefined = undefined;\n\n /** @deprecated Use {@link SelectedVersionNumber}. */\n public get selectedVersionNumber(): number | undefined {\n return this.SelectedVersionNumber;\n }\n /** @deprecated Use {@link SelectedVersionNumber}. */\n public set selectedVersionNumber(value: number | undefined) {\n this.SelectedVersionNumber = value;\n }\n public ShowArtifactViewer = false;\n\n /** @deprecated Use {@link ShowArtifactViewer}. */\n public get showArtifactViewer() {\n return this.ShowArtifactViewer;\n }\n /** @deprecated Use {@link ShowArtifactViewer}. */\n public set showArtifactViewer(value) {\n this.ShowArtifactViewer = value;\n }\n\n public SortOptions = [\n { label: 'Name', value: 'name' },\n { label: 'Date Modified', value: 'date' },\n { label: 'Type', value: 'type' }\n ];\n\n /** @deprecated Use {@link SortOptions}. */\n public get sortOptions() {\n return this.SortOptions;\n }\n /** @deprecated Use {@link SortOptions}. */\n public set sortOptions(value) {\n this.SortOptions = value;\n }\n\n constructor(private cdr: ChangeDetectorRef, private confirmService: MJConfirmService) {\n super();}\n\n ngOnInit() {\n this.loadArtifacts();\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['collection'] && !changes['collection'].firstChange) {\n this.loadArtifacts();\n }\n }\n\n ngOnDestroy() {\n // Close artifact viewer when navigating away from collection\n if (this.ShowArtifactViewer) {\n this.OnCloseArtifactViewer();\n }\n }\n\n private async loadArtifacts(): Promise<void> {\n if (!this.Collection) return;\n\n try {\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n const md = this.ProviderToUse;\n\n // Load ALL VERSIONS in this collection (no DISTINCT - each version is separate)\n const versionResult = await rv.RunView<MJArtifactVersionEntity>({\n EntityName: 'MJ: Artifact Versions',\n ExtraFilter: `ID IN (\n SELECT ca.ArtifactVersionID\n FROM [__mj].[vwCollectionArtifacts] ca\n WHERE ca.CollectionID='${this.Collection.ID}'\n )`,\n OrderBy: this.getVersionOrderBy(),\n ResultType: 'entity_object'\n }, this.CurrentUser);\n\n if (versionResult.Success && versionResult.Results) {\n // Get unique artifact IDs\n const artifactIds = [...new Set(versionResult.Results.map(v => v.ArtifactID))];\n\n // Load parent artifact info (just for display metadata - no visibility filtering)\n const artifactMap = new Map<string, MJArtifactEntity>();\n if (artifactIds.length > 0) {\n const artifactFilter = artifactIds.map(id => `ID='${id}'`).join(' OR ');\n const artifactResult = await rv.RunView<MJArtifactEntity>({\n EntityName: 'MJ: Artifacts',\n ExtraFilter: artifactFilter,\n ResultType: 'entity_object'\n }, this.CurrentUser);\n\n if (artifactResult.Success && artifactResult.Results) {\n artifactResult.Results.forEach(a => artifactMap.set(a.ID, a));\n }\n }\n\n // Combine version + artifact info\n this.ArtifactVersions = versionResult.Results\n .map(version => ({\n version,\n artifact: artifactMap.get(version.ArtifactID)!\n }))\n .filter(item => item.artifact != null); // Filter out any without parent artifact\n } else {\n this.ArtifactVersions = [];\n }\n } catch (error) {\n console.error('Failed to load collection artifacts:', error);\n this.ArtifactVersions = [];\n }\n }\n\n private getVersionOrderBy(): string {\n switch (this.SortBy) {\n case 'name':\n return 'Name ASC, VersionNumber DESC';\n case 'type':\n // Will sort by parent artifact type (handled in template)\n return 'ArtifactID ASC, VersionNumber DESC';\n case 'date':\n default:\n return '__mj_UpdatedAt DESC';\n }\n }\n\n OnSortChange(): void {\n this.loadArtifacts();\n }\n\n /** @deprecated Use {@link OnSortChange}. */\n onSortChange(): void {\n return this.OnSortChange();\n }\n\n OnArtifactSelected(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): void {\n // TODO: Emit event or navigate to artifact detail view\n }\n\n /** @deprecated Use {@link OnArtifactSelected}. */\n onArtifactSelected(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): void {\n return this.OnArtifactSelected(item);\n }\n\n OnViewArtifact(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): void {\n this.SelectedArtifactId = item.artifact.ID;\n this.SelectedVersionNumber = item.version.VersionNumber;\n // Force change detection to ensure Input bindings propagate before component creation\n this.cdr.detectChanges();\n this.ShowArtifactViewer = true;\n }\n\n /** @deprecated Use {@link OnViewArtifact}. */\n onViewArtifact(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): void {\n return this.OnViewArtifact(item);\n }\n\n OnCloseArtifactViewer(): void {\n this.ShowArtifactViewer = false;\n this.SelectedArtifactId = null;\n this.SelectedVersionNumber = undefined;\n }\n\n /** @deprecated Use {@link OnCloseArtifactViewer}. */\n onCloseArtifactViewer(): void {\n return this.OnCloseArtifactViewer();\n }\n\n OnEditArtifact(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): void {\n // TODO: Open artifact editor\n }\n\n /** @deprecated Use {@link OnEditArtifact}. */\n onEditArtifact(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): void {\n return this.OnEditArtifact(item);\n }\n\n async OnRemoveArtifact(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): Promise<void> {\n const versionLabel = `\"${item.artifact.Name}\" v${item.version.VersionNumber}`;\n if (!(await this.confirmService.ConfirmDelete({ title: 'Remove from Collection', message: `Remove ${versionLabel} from this collection?`, confirmText: 'Remove' }))) return;\n\n try {\n // Delete THIS SPECIFIC VERSION from the collection\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n const result = await rv.RunView({\n EntityName: 'MJ: Collection Artifacts',\n ExtraFilter: `CollectionID='${this.Collection.ID}' AND ArtifactVersionID='${item.version.ID}'`,\n ResultType: 'entity_object'\n }, this.CurrentUser);\n\n if (result.Success && result.Results && result.Results.length > 0) {\n // Delete all version associations atomically\n const md = this.ProviderToUse;\n const tg = await md.CreateTransactionGroup();\n for (const joinRecord of result.Results) {\n joinRecord.TransactionGroup = tg;\n await joinRecord.Delete();\n }\n const success = await tg.Submit();\n if (!success) {\n MJNotificationService.Instance.CreateSimpleNotification(\n `Failed to remove ${versionLabel} from collection`,\n 'error'\n );\n return;\n }\n await this.loadArtifacts();\n this.cdr.detectChanges();\n MJNotificationService.Instance.CreateSimpleNotification(\n `Removed ${versionLabel} from collection`,\n 'success',\n 3000\n );\n }\n } catch (error) {\n console.error('Failed to remove artifact version from collection:', error);\n MJNotificationService.Instance.CreateSimpleNotification(\n 'Failed to remove artifact version from collection',\n 'error'\n );\n }\n }\n\n /** @deprecated Use {@link OnRemoveArtifact}. */\n async onRemoveArtifact(item: { version: MJArtifactVersionEntity; artifact: MJArtifactEntity }): Promise<void> {\n return this.OnRemoveArtifact(item);\n }\n\n async OnAddArtifact(): Promise<void> {\n // TODO: Open artifact picker dialog\n // For now, just show a simple prompt\n const name = prompt('Enter artifact name:');\n if (!name) return;\n\n try {\n // Create new artifact\n const md = this.ProviderToUse;\n const artifact = await md.GetEntityObject<MJArtifactEntity>('MJ: Artifacts', this.CurrentUser);\n\n artifact.Name = name;\n // Type is read-only, set via TypeID instead\n // For now, skip setting type - it has a default\n\n const saved = await artifact.Save();\n if (saved) {\n // Get the latest version of this artifact to add to collection\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n // conversation-scope: artifact-wide read, no conversation path applies\n const versionResult = await rv.RunView({\n EntityName: 'MJ: Artifact Versions',\n ExtraFilter: `ArtifactID='${artifact.ID}'`,\n OrderBy: 'VersionNumber DESC',\n MaxRows: 1,\n SkipTotalRowCount: true,\n ResultType: 'entity_object'\n }, this.CurrentUser);\n\n if (!versionResult.Success || !versionResult.Results || versionResult.Results.length === 0) {\n alert('Failed to get artifact version');\n return;\n }\n\n // Add to collection via join table using version ID\n const joinRecord = await md.GetEntityObject<MJCollectionArtifactEntity>('MJ: Collection Artifacts', this.CurrentUser);\n joinRecord.CollectionID = this.Collection.ID;\n joinRecord.ArtifactVersionID = versionResult.Results[0].ID;\n\n await joinRecord.Save();\n await this.loadArtifacts();\n }\n } catch (error) {\n console.error('Failed to add artifact:', error);\n alert('Failed to add artifact');\n }\n }\n\n /** @deprecated Use {@link OnAddArtifact}. */\n async onAddArtifact(): Promise<void> {\n return this.OnAddArtifact();\n }\n}"]}
@@ -30,7 +30,10 @@ import { RealtimeNavigateRequest, RealtimeStartLiveRequest } from '../realtime/r
30
30
  import { RealtimeSessionTimelineMeta } from '../../utils/realtime-session-timeline';
31
31
  import { type DateJumpPeriod } from '../../utils/date-jump';
32
32
  import { type ConversationOpenView, type ForkBreadcrumb, type ForkHeaderPath, type ForkChipOpenRequest, type ForkViewLayout, type LatestTurn, type MessageForkChip } from '../../utils/conversation-forks';
33
+ import { type ThreadReplyRevealRequest } from '../../utils/thread-replies';
34
+ import { type MessageHandoffInfo } from '../message/agent-handoff-card.component';
33
35
  import { type MJChatSlotName } from '../../directives/chat-slot.directive';
36
+ import { RemoteBrowserSurfaceComponent } from '../realtime/remote-browser/remote-browser-surface.component';
34
37
  import type { MJChatAgentPresenceState } from '../slots/slot-interfaces';
35
38
  import { BeforeAgentTurnEventArgs, AfterAgentTurnEventArgs, BeforeToolInvokedEventArgs, AfterToolInvokedEventArgs, BeforeResponseFormSubmittedEventArgs, AfterResponseFormSubmittedEventArgs, BeforeStopClickedEventArgs, AfterStopClickedEventArgs, SessionStartedEventArgs, SessionChannelStateChangedEventArgs, SessionEndedEventArgs } from '../../events/chat-events';
36
39
  import * as i0 from "@angular/core";
@@ -93,7 +96,9 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
93
96
  get conversationId(): string | null;
94
97
  /** @deprecated Use {@link ConversationId}. */
95
98
  set conversationId(value: string | null);
96
- Conversation: MJConversationEntity | null;
99
+ private _conversation;
100
+ set Conversation(value: MJConversationEntity | null);
101
+ get Conversation(): MJConversationEntity | null;
97
102
  /** @deprecated Use {@link Conversation}. */
98
103
  set conversation(value: MJConversationEntity | null);
99
104
  /** @deprecated Use {@link Conversation}. */
@@ -184,6 +189,12 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
184
189
  * that authorization to a role to stop the server creating forks as well.
185
190
  */
186
191
  AllowForking: boolean;
192
+ /**
193
+ * Host-level opt-in for the conversation's Remote Browser: the header's Browser button, its drawer,
194
+ * and the `browser_*` tools that let this conversation's agents drive it. Defaults false; a host
195
+ * that wants an agent-driven browser beside the chat sets true.
196
+ */
197
+ AllowRemoteBrowser: boolean;
187
198
  /**
188
199
  * Host-level cap for stopping and continuing agent runs: the composer's Stop and Stop all, the
189
200
  * Stop pill on an in-progress reply, the Continue button on a stopped reply, and the "Continue,
@@ -233,6 +244,14 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
233
244
  set readReplyFromTop(value: ConversationChatAreaComponent['ReadReplyFromTop']);
234
245
  /** @deprecated Use {@link ReadReplyFromTop}. */
235
246
  get readReplyFromTop(): ConversationChatAreaComponent['ReadReplyFromTop'];
247
+ /**
248
+ * Whether inline markdown links in conversation messages open in a new browser tab
249
+ * (`target="_blank"` with `rel="noopener noreferrer"`). In-page fragment links (`#heading`)
250
+ * and `mailto:` / `tel:` / `sms:` links stay in the current tab. Default `true` so clicking
251
+ * an external link in a reply does not navigate away from the active conversation; set `false`
252
+ * to open links in the current tab.
253
+ */
254
+ OpenLinksInNewTab: boolean;
236
255
  /** Show the per-message agent run-detail grid (run ID, step/token counts, $ cost). */
237
256
  ShowAgentRunDetails: boolean;
238
257
  /** @deprecated Use {@link ShowAgentRunDetails}. */
@@ -583,6 +602,24 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
583
602
  */
584
603
  get HasPreConversationHeader(): boolean;
585
604
  get ModePickerTargetAgentId(): string | null;
605
+ private _cachedOwnerAgentKey?;
606
+ private _cachedOwnerAgent;
607
+ /**
608
+ * Current conversation owner agent for the header `.with-chip` and composer
609
+ * placeholder: continuity (last non-Sage reply not preceded by a newer
610
+ * `@Sage` user message) -> pinned/default agent -> conversation manager.
611
+ * Memoized by message count and active routing inputs so template evaluation
612
+ * does not scan `messages` on every change-detection cycle.
613
+ */
614
+ get CurrentOwnerAgent(): {
615
+ ID: string;
616
+ Name: string;
617
+ IsConversationManager: boolean;
618
+ } | null;
619
+ get CurrentOwnerAgentName(): string;
620
+ get CurrentOwnerAccentVar(): string;
621
+ private isOwnerAgentAllowed;
622
+ private resolveHandoffAgentMeta;
586
623
  /**
587
624
  * Mode picker emitted a new selection. Store it; the next message's
588
625
  * route picks it up via `<mj-message-input>`'s
@@ -1058,6 +1095,13 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
1058
1095
  private reconcileInFlight;
1059
1096
  /** Reason for one more reconcile pass, requested while a pass was running. */
1060
1097
  private reconcileRerunReason;
1098
+ /**
1099
+ * Set when a TRANSPORT reconnect asks for a pass; consumed by the next pass that starts. Held as a
1100
+ * flag rather than read off the pass's reason because {@link ReconcileNow} folds requests that
1101
+ * arrive mid-pass into one follow-up carrying only the LAST reason — a reconnect followed by a
1102
+ * tab-visible would otherwise lose the window refresh the reconnect needs.
1103
+ */
1104
+ private reconcileWindowRefreshPending;
1061
1105
  IsProcessing: boolean;
1062
1106
  /** @deprecated Use {@link IsProcessing}. */
1063
1107
  get isProcessing(): boolean;
@@ -1143,6 +1187,15 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
1143
1187
  parentTaskId: string;
1144
1188
  workflowTitle: string;
1145
1189
  } | null;
1190
+ ShowRemoteBrowserPanel: boolean;
1191
+ RemoteBrowserUrlInput: string;
1192
+ IsRemoteBrowserNavigating: boolean;
1193
+ /** Whether this conversation's browser is running, shown or not (the header button stays lit while it is). */
1194
+ get IsRemoteBrowserLive(): boolean;
1195
+ /** The conversation's browser, built on first open so a chat area that never opens one pays nothing. */
1196
+ private remoteBrowser;
1197
+ private ensureRemoteBrowser;
1198
+ set ConversationRemoteBrowserSurface(surface: RemoteBrowserSurfaceComponent | undefined);
1146
1199
  /** @deprecated Use {@link ShowArtifactPanel}. */
1147
1200
  get showArtifactPanel(): boolean;
1148
1201
  /** @deprecated Use {@link ShowArtifactPanel}. */
@@ -1264,6 +1317,12 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
1264
1317
  get agentRunsByDetailId(): Map<string, MJAIAgentRunEntityExtended>;
1265
1318
  /** @deprecated Use {@link AgentRunsByDetailId}. */
1266
1319
  set agentRunsByDetailId(value: Map<string, MJAIAgentRunEntityExtended>);
1320
+ /**
1321
+ * Handoff metadata by source conversation detail ID, built from the source
1322
+ * run's `Handoff` step (`MJ: AI Agent Run Steps`) and subsequent target reply.
1323
+ */
1324
+ HandoffsByDetailId: Map<string, MessageHandoffInfo>;
1325
+ private handoffStepsByRunId;
1267
1326
  /**
1268
1327
  * Ratings by conversation detail ID (parsed from RatingsJSON)
1269
1328
  */
@@ -1714,6 +1773,32 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
1714
1773
  private onConversationChanged;
1715
1774
  private _cachedInputsArray;
1716
1775
  private _cachedInputsKey;
1776
+ /** Max hidden composers kept mounted for draft/state preservation; older idle ones are unmounted. */
1777
+ private static readonly MAX_CACHED_MESSAGE_INPUTS;
1778
+ /** Stable case-normalized track key for `@for` so case-only UUID changes reuse the mounted composer. */
1779
+ NormalizeCachedInputId(conversationId: string): string;
1780
+ private findMessageInputCacheEntry;
1781
+ private resolveConversationNameForCache;
1782
+ private syncCachedMessageInputName;
1783
+ private findMessageInputComponent;
1784
+ /**
1785
+ * True when a cached hidden composer for `candidateId` is idle and safe to unmount.
1786
+ * Never evicts the newly-activated conversation, a conversation awaiting auto-send of
1787
+ * `PendingMessage`, a conversation hosting a live voice session, a conversation with
1788
+ * running tasks in `ActiveTasksService`, or a mounted composer with in-flight streaming
1789
+ * callbacks / DB watches / unsent file attachments (`HasActiveWork`).
1790
+ */
1791
+ private canEvictCachedMessageInput;
1792
+ /**
1793
+ * Registers `conversationId` as the most-recently-used composer and unmounts the
1794
+ * least-recently-used idle ones beyond the cap. Each cache entry keeps a live
1795
+ * `mj-message-input` component, so without a bound memory grows with every
1796
+ * conversation visited. Composers actively running an agent turn, holding unsent
1797
+ * file attachments, or hosting a live voice call are skipped until idle. Drafts
1798
+ * live in the draft store, so an evicted composer's frozen restore snapshot is
1799
+ * dropped to let a remount re-read the latest draft.
1800
+ */
1801
+ private touchMessageInputCache;
1717
1802
  /**
1718
1803
  * Returns array of cached message-input metadata for rendering.
1719
1804
  * This allows multiple message-input components to exist simultaneously (hidden)
@@ -1820,6 +1905,8 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
1820
1905
  * than read from the engine's `_detailCache`, which the windowed path never populates.
1821
1906
  */
1822
1907
  private loadPeripheralData;
1908
+ private loadHandoffStepsForRunIds;
1909
+ private rebuildHandoffsMap;
1823
1910
  /**
1824
1911
  * Loads the `MJ: AI Agent Sessions` rows referenced by the conversation's
1825
1912
  * session-stamped details (one batched lookup, narrow fields, only when stamped rows
@@ -2130,6 +2217,11 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
2130
2217
  * for the user message on its own branch. Shows a notice for each failure.
2131
2218
  */
2132
2219
  private rerunTurnInPlace;
2220
+ /**
2221
+ * The rows of `userMessage`'s turn that an in-place rerun replaces: when thread replies are
2222
+ * collapsed, the main-flow rows after `userMessage` plus any thread replies rooted on those rows.
2223
+ */
2224
+ private turnRowsAfter;
2133
2225
  /**
2134
2226
  * Marks each row replaced, one save at a time (parallel saves race on the server's transaction
2135
2227
  * counter): `ReplacedAt` set and `HiddenToUser` true; the rows are kept for audit. Takes the saved rows
@@ -2182,6 +2274,17 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
2182
2274
  private forkChipAvatar;
2183
2275
  /** The view the loaded rows belong to; Main when none was set. */
2184
2276
  get WindowView(): ConversationOpenView;
2277
+ /**
2278
+ * When true, thread replies in the loaded window are omitted from top-level `DisplayMessages` so
2279
+ * they can be rendered inside a collapsed thread under their root message (see
2280
+ * {@link GetThreadReplyRoots}).
2281
+ */
2282
+ CollapseThreadReplies: boolean;
2283
+ /**
2284
+ * Emits when a jump targets a collapsed thread reply, after scrolling to its top-level root
2285
+ * message, so the host can open the thread and reveal the reply.
2286
+ */
2287
+ ThreadReplyRevealRequested: EventEmitter<ThreadReplyRevealRequest>;
2185
2288
  /**
2186
2289
  * The rows the message list shows for the window view; the same array until the rows or the view
2187
2290
  * change. Main shows every loaded row; a fork shows every inherited row, then its own rows; a draft
@@ -2190,6 +2293,11 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
2190
2293
  get DisplayMessages(): MJConversationDetailEntity[];
2191
2294
  /** The loaded rows split for the window view, and the rows shown; rebuilt only when one of their inputs changes. */
2192
2295
  private displayState;
2296
+ /**
2297
+ * Top-level root ID for `message` when {@link CollapseThreadReplies} is on and `message` is a
2298
+ * thread reply; null when thread collapsing is off or `message` belongs in the main flow.
2299
+ */
2300
+ private collapsedThreadRootId;
2193
2301
  /**
2194
2302
  * Puts `message` in place of the row with its id in the displayed rows and their split, keeping those
2195
2303
  * arrays. They are copies of `messages`, so an entity replaced in place there is replaced here too.
@@ -2530,6 +2638,13 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
2530
2638
  * active one, the view change was ignored or failed, or the row is not on the view's path.
2531
2639
  */
2532
2640
  OpenMessage(conversationId: string, branchId: string | null, sequence: number): Promise<boolean>;
2641
+ /**
2642
+ * Scrolls to `messageId`, or when {@link CollapseThreadReplies} hides `messageId` under a thread
2643
+ * root, scrolls to that root and emits {@link ThreadReplyRevealRequested} so the host can open
2644
+ * the thread. False when the row (or its root) is not loaded, so the caller can page back for it.
2645
+ */
2646
+ private scrollToMessageOrThreadRoot;
2647
+ private emitThreadReplyReveal;
2533
2648
  /**
2534
2649
  * Waits until the load of `conversationId` has ended. False when another conversation
2535
2650
  * becomes active first or the component is destroyed.
@@ -2537,6 +2652,12 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
2537
2652
  private waitForConversationLoad;
2538
2653
  /** Pages older history until the pinned message `messageId` falls inside the loaded window. */
2539
2654
  private loadUntilMessageIsWindowed;
2655
+ /**
2656
+ * With {@link CollapseThreadReplies} on, pages older history until the top-level root of the loaded
2657
+ * thread reply `messageId` is loaded too, since the jump lands on the root. True when nothing more is
2658
+ * needed (collapsing off, `messageId` not a loaded thread reply, or its root loaded).
2659
+ */
2660
+ private loadUntilThreadRootIsWindowed;
2540
2661
  /**
2541
2662
  * Pages older history until the loaded window reaches back to `sequence`.
2542
2663
  *
@@ -2571,6 +2692,12 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
2571
2692
  customInput?: string;
2572
2693
  }): Promise<void>;
2573
2694
  OnDeleteMessage(message: MJConversationDetailEntity): Promise<void>;
2695
+ /**
2696
+ * The rows removed by "delete this and everything after": when thread replies are collapsed,
2697
+ * the target, every main-flow row after it, and any thread replies whose root is among those rows.
2698
+ * When the target is itself a thread reply, only the target and the replies under it.
2699
+ */
2700
+ private rowsToDeleteFrom;
2574
2701
  /** @deprecated Use {@link OnDeleteMessage}. */
2575
2702
  onDeleteMessage(message: MJConversationDetailEntity): Promise<void>;
2576
2703
  /** @deprecated Use {@link OnRegenerateRequested}. */
@@ -2625,6 +2752,17 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
2625
2752
  }): void;
2626
2753
  IsSavingTaskGraphWorkflow: boolean;
2627
2754
  OnCloseTaskGraphPanel(): void;
2755
+ ToggleRemoteBrowserPanel(): void;
2756
+ OpenRemoteBrowserPanel(): void;
2757
+ /** Closing the drawer ends the browser (hiding it behind an artifact does not). */
2758
+ CloseRemoteBrowserPanel(): void;
2759
+ NavigateRemoteBrowserFromInput(): Promise<void>;
2760
+ /**
2761
+ * `AppContext` plus the conversation's open browser (its URL, and the `browser_*` tools while this
2762
+ * chat area owns them). Cached: it is bound to an input, so a fresh object per check would re-fire it.
2763
+ */
2764
+ get EffectiveAppContext(): Record<string, unknown> | null;
2765
+ private effectiveAppContextMemo;
2628
2766
  /**
2629
2767
  * Persists the currently displayed Task Graph in the chat side-panel as a reusable
2630
2768
  * Draft Flow Agent workflow via {@link WorkflowSaveOperation} and opens the new
@@ -2797,6 +2935,11 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
2797
2935
  * on the load: a failed load just leaves the host's emit to fold it in.
2798
2936
  */
2799
2937
  private onRealtimeSessionStarted;
2938
+ /**
2939
+ * Says why a call ended only when it ended over a failure. A `'deadline'` end (the runtime's time-limit auto-end) is
2940
+ * a normal end: the call surface closes on its own and the visitor needs no error toast.
2941
+ */
2942
+ private notifyIfCallFailed;
2800
2943
  /**
2801
2944
  * Post-call hook. Two responsibilities:
2802
2945
  * 1. Reload the ACTIVE conversation's timeline so the session that just ended — whose
@@ -3055,6 +3198,14 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
3055
3198
  */
3056
3199
  private followTranscript;
3057
3200
  private isSettled;
3201
+ /**
3202
+ * Drops every in-flight ID whose loaded row has settled. A settled reply is never in flight:
3203
+ * the list drives the composer's Stop slot and its ticker, and every reconcile path scans the
3204
+ * rows for `In-Progress`, so an ID left behind after its row settled would never be looked at
3205
+ * again (the overlay's Stop button ticked for hours after Regenerate-as-fork this way). An ID
3206
+ * with no loaded row is kept; the row may simply not be on screen yet.
3207
+ */
3208
+ private dropSettledFromInFlight;
3058
3209
  /**
3059
3210
  * Where the viewport goes on a streamed delta, in the same frame as the DOM change so growth and
3060
3211
  * scroll paint together. Without ReadReplyFromTop, or for a turn this component never saw open
@@ -3126,6 +3277,35 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
3126
3277
  ReconcileNow(reason: string): Promise<void>;
3127
3278
  /** Runs passes until no caller has asked for another. Clears the in-flight marker on exit. */
3128
3279
  private runReconcilePasses;
3280
+ /**
3281
+ * Supervisor reasons that mean the transport itself was down, so anything published meanwhile
3282
+ * was dropped. Only these pay for {@link refreshNewestWindow}; the other triggers
3283
+ * (tab-visible, browser-online, message-liveness, completion-for-unloaded-message) keep the
3284
+ * narrow run-row refresh alone.
3285
+ */
3286
+ private static readonly TRANSPORT_RECONNECT_REASONS;
3287
+ /**
3288
+ * After a transport reconnect, re-read the newest window page before reconciling, when any AI
3289
+ * message is still unsettled.
3290
+ *
3291
+ * Two things {@link refreshAgentRunsForInProgress} alone does not cover:
3292
+ *
3293
+ * - **Error-status messages.** {@link correctStaleErrorMessages} can repair a message the client
3294
+ * marked Error while the server went on to complete the run — but only against a fresh run
3295
+ * row, and the narrow refresh reads runs for In-Progress messages only. Rebuilding the
3296
+ * peripherals from the refreshed window gives it current runs for every message in view.
3297
+ * - **Rows written while the socket was down.** Their events were dropped, so only a re-read
3298
+ * brings them into the window.
3299
+ *
3300
+ * Newest page only, the same choice the poll-completion path makes: a full-history refresh
3301
+ * would replace the loaded window with every row. Only called when
3302
+ * {@link hasUnsettledAgentReplies} is true, so a quiet conversation costs one array scan.
3303
+ *
3304
+ * @returns false when the conversation changed underneath, so the caller abandons the pass.
3305
+ */
3306
+ private refreshNewestWindow;
3307
+ /** Whether any agent reply is still In-Progress, or is Error and may have completed server-side. */
3308
+ private hasUnsettledAgentReplies;
3129
3309
  /** One reconcile pass over the in-progress messages of the active conversation. */
3130
3310
  private reconcileOnce;
3131
3311
  /**
@@ -3194,6 +3374,6 @@ export declare class ConversationChatAreaComponent extends BaseAngularComponent
3194
3374
  conversationId: string;
3195
3375
  }): void;
3196
3376
  static ɵfac: i0.ɵɵFactoryDeclaration<ConversationChatAreaComponent, never>;
3197
- static ɵcmp: i0.ɵɵComponentDeclaration<ConversationChatAreaComponent, "mj-conversation-chat-area", never, { "EnvironmentId": { "alias": "EnvironmentId"; "required": false; }; "environmentId": { "alias": "environmentId"; "required": false; }; "CurrentUser": { "alias": "CurrentUser"; "required": false; }; "currentUser": { "alias": "currentUser"; "required": false; }; "ConversationId": { "alias": "ConversationId"; "required": false; }; "conversationId": { "alias": "conversationId"; "required": false; }; "Conversation": { "alias": "Conversation"; "required": false; }; "conversation": { "alias": "conversation"; "required": false; }; "SuppressNewConversationEmptyState": { "alias": "SuppressNewConversationEmptyState"; "required": false; }; "suppressNewConversationEmptyState": { "alias": "suppressNewConversationEmptyState"; "required": false; }; "AllowMentions": { "alias": "AllowMentions"; "required": false; }; "allowMentions": { "alias": "allowMentions"; "required": false; }; "AllowAgentMentions": { "alias": "AllowAgentMentions"; "required": false; }; "allowAgentMentions": { "alias": "allowAgentMentions"; "required": false; }; "AllowEntityMentions": { "alias": "AllowEntityMentions"; "required": false; }; "allowEntityMentions": { "alias": "allowEntityMentions"; "required": false; }; "AllowSkillCommands": { "alias": "AllowSkillCommands"; "required": false; }; "allowSkillCommands": { "alias": "allowSkillCommands"; "required": false; }; "AllowAttachments": { "alias": "AllowAttachments"; "required": false; }; "allowAttachments": { "alias": "allowAttachments"; "required": false; }; "AllowPlanMode": { "alias": "AllowPlanMode"; "required": false; }; "allowPlanMode": { "alias": "allowPlanMode"; "required": false; }; "AllowRealtime": { "alias": "AllowRealtime"; "required": false; }; "allowRealtime": { "alias": "allowRealtime"; "required": false; }; "AllowForking": { "alias": "AllowForking"; "required": false; }; "AllowStopRun": { "alias": "AllowStopRun"; "required": false; }; "ShowEmptyFill": { "alias": "ShowEmptyFill"; "required": false; }; "showEmptyFill": { "alias": "showEmptyFill"; "required": false; }; "ShowLoadingState": { "alias": "ShowLoadingState"; "required": false; }; "showLoadingState": { "alias": "showLoadingState"; "required": false; }; "ReadReplyFromTop": { "alias": "ReadReplyFromTop"; "required": false; }; "readReplyFromTop": { "alias": "readReplyFromTop"; "required": false; }; "ShowAgentRunDetails": { "alias": "ShowAgentRunDetails"; "required": false; }; "showAgentRunDetails": { "alias": "showAgentRunDetails"; "required": false; }; "ShowReactions": { "alias": "ShowReactions"; "required": false; }; "showReactions": { "alias": "showReactions"; "required": false; }; "ShowMessageRating": { "alias": "ShowMessageRating"; "required": false; }; "showMessageRating": { "alias": "showMessageRating"; "required": false; }; "AllowPinning": { "alias": "AllowPinning"; "required": false; }; "allowPinning": { "alias": "allowPinning"; "required": false; }; "AllowMessageEdit": { "alias": "AllowMessageEdit"; "required": false; }; "allowMessageEdit": { "alias": "allowMessageEdit"; "required": false; }; "AllowMessageDelete": { "alias": "AllowMessageDelete"; "required": false; }; "allowMessageDelete": { "alias": "allowMessageDelete"; "required": false; }; "ReadOnly": { "alias": "ReadOnly"; "required": false; }; "ReadOnlyMessage": { "alias": "ReadOnlyMessage"; "required": false; }; "ShowSuggestedPrompts": { "alias": "ShowSuggestedPrompts"; "required": false; }; "showSuggestedPrompts": { "alias": "showSuggestedPrompts"; "required": false; }; "ShowDateNavigation": { "alias": "ShowDateNavigation"; "required": false; }; "showDateNavigation": { "alias": "showDateNavigation"; "required": false; }; "AssistantDisplayName": { "alias": "AssistantDisplayName"; "required": false; }; "assistantDisplayName": { "alias": "assistantDisplayName"; "required": false; }; "AssistantAvatarUrl": { "alias": "AssistantAvatarUrl"; "required": false; }; "assistantAvatarUrl": { "alias": "assistantAvatarUrl"; "required": false; }; "IsNewConversation": { "alias": "IsNewConversation"; "required": false; }; "isNewConversation": { "alias": "isNewConversation"; "required": false; }; "PendingMessage": { "alias": "PendingMessage"; "required": false; }; "pendingMessage": { "alias": "pendingMessage"; "required": false; }; "PendingMessageConversationId": { "alias": "PendingMessageConversationId"; "required": false; }; "pendingMessageConversationId": { "alias": "pendingMessageConversationId"; "required": false; }; "PendingAttachments": { "alias": "PendingAttachments"; "required": false; }; "pendingAttachments": { "alias": "pendingAttachments"; "required": false; }; "PendingArtifactId": { "alias": "PendingArtifactId"; "required": false; }; "pendingArtifactId": { "alias": "pendingArtifactId"; "required": false; }; "PendingArtifactVersionNumber": { "alias": "PendingArtifactVersionNumber"; "required": false; }; "pendingArtifactVersionNumber": { "alias": "pendingArtifactVersionNumber"; "required": false; }; "PendingArtifactConversationId": { "alias": "PendingArtifactConversationId"; "required": false; }; "pendingArtifactConversationId": { "alias": "pendingArtifactConversationId"; "required": false; }; "OverlayMode": { "alias": "OverlayMode"; "required": false; }; "overlayMode": { "alias": "overlayMode"; "required": false; }; "ShowExportButton": { "alias": "ShowExportButton"; "required": false; }; "showExportButton": { "alias": "showExportButton"; "required": false; }; "ExportButtonLabel": { "alias": "ExportButtonLabel"; "required": false; }; "exportButtonLabel": { "alias": "exportButtonLabel"; "required": false; }; "ExportButtonIcon": { "alias": "ExportButtonIcon"; "required": false; }; "exportButtonIcon": { "alias": "exportButtonIcon"; "required": false; }; "ExportBranding": { "alias": "ExportBranding"; "required": false; }; "exportBranding": { "alias": "exportBranding"; "required": false; }; "ShowShareButton": { "alias": "ShowShareButton"; "required": false; }; "showShareButton": { "alias": "showShareButton"; "required": false; }; "ShowArtifactIndicator": { "alias": "ShowArtifactIndicator"; "required": false; }; "showArtifactIndicator": { "alias": "showArtifactIndicator"; "required": false; }; "AppContext": { "alias": "AppContext"; "required": false; }; "appContext": { "alias": "appContext"; "required": false; }; "DefaultAgentId": { "alias": "DefaultAgentId"; "required": false; }; "defaultAgentId": { "alias": "defaultAgentId"; "required": false; }; "AgentReplyMode": { "alias": "AgentReplyMode"; "required": false; }; "AllowedAgentIDs": { "alias": "AllowedAgentIDs"; "required": false; }; "MentionPeople": { "alias": "MentionPeople"; "required": false; }; "AgentHistoryFrom": { "alias": "AgentHistoryFrom"; "required": false; }; "AgentTurnHandler": { "alias": "AgentTurnHandler"; "required": false; }; "AutoNameConversation": { "alias": "AutoNameConversation"; "required": false; }; "EnableDecisionRouting": { "alias": "EnableDecisionRouting"; "required": false; }; "ApplicationScope": { "alias": "ApplicationScope"; "required": false; }; "applicationScope": { "alias": "applicationScope"; "required": false; }; "ApplicationId": { "alias": "ApplicationId"; "required": false; }; "applicationId": { "alias": "applicationId"; "required": false; }; "LinkedEntityId": { "alias": "LinkedEntityId"; "required": false; }; "linkedEntityId": { "alias": "linkedEntityId"; "required": false; }; "LinkedRecordId": { "alias": "LinkedRecordId"; "required": false; }; "linkedRecordId": { "alias": "linkedRecordId"; "required": false; }; "ShowAgentPicker": { "alias": "ShowAgentPicker"; "required": false; }; "showAgentPicker": { "alias": "showAgentPicker"; "required": false; }; "ShowAgentModePicker": { "alias": "ShowAgentModePicker"; "required": false; }; "showAgentModePicker": { "alias": "showAgentModePicker"; "required": false; }; "EmptyStateGreeting": { "alias": "EmptyStateGreeting"; "required": false; }; "emptyStateGreeting": { "alias": "emptyStateGreeting"; "required": false; }; "ShowSidebarToggle": { "alias": "ShowSidebarToggle"; "required": false; }; "showSidebarToggle": { "alias": "showSidebarToggle"; "required": false; }; "ShowAgentCharacter": { "alias": "ShowAgentCharacter"; "required": false; }; "showAgentCharacter": { "alias": "showAgentCharacter"; "required": false; }; "AgentCharacterConfig": { "alias": "AgentCharacterConfig"; "required": false; }; "agentCharacterConfig": { "alias": "agentCharacterConfig"; "required": false; }; "EmptyStateConfig": { "alias": "EmptyStateConfig"; "required": false; }; "emptyStateConfig": { "alias": "emptyStateConfig"; "required": false; }; "ShowDemonstrationSurface": { "alias": "ShowDemonstrationSurface"; "required": false; }; "showDemonstrationSurface": { "alias": "showDemonstrationSurface"; "required": false; }; "DemonstrationSurfaceContent": { "alias": "DemonstrationSurfaceContent"; "required": false; }; "demonstrationSurfaceContent": { "alias": "demonstrationSurfaceContent"; "required": false; }; "ComposerDraft": { "alias": "ComposerDraft"; "required": false; }; "composerDraft": { "alias": "composerDraft"; "required": false; }; "ComposerAgentMention": { "alias": "ComposerAgentMention"; "required": false; }; "composerAgentMention": { "alias": "composerAgentMention"; "required": false; }; }, { "BeforeAgentTurn": "BeforeAgentTurn"; "beforeAgentTurn": "beforeAgentTurn"; "AfterAgentTurn": "AfterAgentTurn"; "afterAgentTurn": "afterAgentTurn"; "BeforeToolInvoked": "BeforeToolInvoked"; "beforeToolInvoked": "beforeToolInvoked"; "AfterToolInvoked": "AfterToolInvoked"; "afterToolInvoked": "afterToolInvoked"; "BeforeResponseFormSubmitted": "BeforeResponseFormSubmitted"; "beforeResponseFormSubmitted": "beforeResponseFormSubmitted"; "AfterResponseFormSubmitted": "AfterResponseFormSubmitted"; "afterResponseFormSubmitted": "afterResponseFormSubmitted"; "BeforeStopClicked": "BeforeStopClicked"; "AfterStopClicked": "AfterStopClicked"; "SessionStarted": "SessionStarted"; "sessionStarted": "sessionStarted"; "SessionChannelStateChanged": "SessionChannelStateChanged"; "sessionChannelStateChanged": "sessionChannelStateChanged"; "SessionEnded": "SessionEnded"; "sessionEnded": "sessionEnded"; "ConversationRenamed": "ConversationRenamed"; "conversationRenamed": "conversationRenamed"; "OpenEntityRecord": "OpenEntityRecord"; "openEntityRecord": "openEntityRecord"; "RealtimeConversationReady": "RealtimeConversationReady"; "realtimeConversationReady": "realtimeConversationReady"; "navigationRequest": "navigationRequest"; "TaskClicked": "TaskClicked"; "taskClicked": "taskClicked"; "ArtifactLinkClicked": "ArtifactLinkClicked"; "artifactLinkClicked": "artifactLinkClicked"; "SidebarToggleClicked": "SidebarToggleClicked"; "sidebarToggleClicked": "sidebarToggleClicked"; "ConversationCreated": "ConversationCreated"; "conversationCreated": "conversationCreated"; "PendingArtifactConsumed": "PendingArtifactConsumed"; "pendingArtifactConsumed": "pendingArtifactConsumed"; "PendingMessageConsumed": "PendingMessageConsumed"; "pendingMessageConsumed": "pendingMessageConsumed"; "PendingMessageRequested": "PendingMessageRequested"; "pendingMessageRequested": "pendingMessageRequested"; "ComposerDraftConsumed": "ComposerDraftConsumed"; "composerDraftConsumed": "composerDraftConsumed"; "ComposerAgentMentionConsumed": "ComposerAgentMentionConsumed"; "composerAgentMentionConsumed": "composerAgentMentionConsumed"; }, ["chatSlotChildren"], never, false, never>;
3377
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConversationChatAreaComponent, "mj-conversation-chat-area", never, { "EnvironmentId": { "alias": "EnvironmentId"; "required": false; }; "environmentId": { "alias": "environmentId"; "required": false; }; "CurrentUser": { "alias": "CurrentUser"; "required": false; }; "currentUser": { "alias": "currentUser"; "required": false; }; "ConversationId": { "alias": "ConversationId"; "required": false; }; "conversationId": { "alias": "conversationId"; "required": false; }; "Conversation": { "alias": "Conversation"; "required": false; }; "conversation": { "alias": "conversation"; "required": false; }; "SuppressNewConversationEmptyState": { "alias": "SuppressNewConversationEmptyState"; "required": false; }; "suppressNewConversationEmptyState": { "alias": "suppressNewConversationEmptyState"; "required": false; }; "AllowMentions": { "alias": "AllowMentions"; "required": false; }; "allowMentions": { "alias": "allowMentions"; "required": false; }; "AllowAgentMentions": { "alias": "AllowAgentMentions"; "required": false; }; "allowAgentMentions": { "alias": "allowAgentMentions"; "required": false; }; "AllowEntityMentions": { "alias": "AllowEntityMentions"; "required": false; }; "allowEntityMentions": { "alias": "allowEntityMentions"; "required": false; }; "AllowSkillCommands": { "alias": "AllowSkillCommands"; "required": false; }; "allowSkillCommands": { "alias": "allowSkillCommands"; "required": false; }; "AllowAttachments": { "alias": "AllowAttachments"; "required": false; }; "allowAttachments": { "alias": "allowAttachments"; "required": false; }; "AllowPlanMode": { "alias": "AllowPlanMode"; "required": false; }; "allowPlanMode": { "alias": "allowPlanMode"; "required": false; }; "AllowRealtime": { "alias": "AllowRealtime"; "required": false; }; "allowRealtime": { "alias": "allowRealtime"; "required": false; }; "AllowForking": { "alias": "AllowForking"; "required": false; }; "AllowRemoteBrowser": { "alias": "AllowRemoteBrowser"; "required": false; }; "AllowStopRun": { "alias": "AllowStopRun"; "required": false; }; "ShowEmptyFill": { "alias": "ShowEmptyFill"; "required": false; }; "showEmptyFill": { "alias": "showEmptyFill"; "required": false; }; "ShowLoadingState": { "alias": "ShowLoadingState"; "required": false; }; "showLoadingState": { "alias": "showLoadingState"; "required": false; }; "ReadReplyFromTop": { "alias": "ReadReplyFromTop"; "required": false; }; "readReplyFromTop": { "alias": "readReplyFromTop"; "required": false; }; "OpenLinksInNewTab": { "alias": "OpenLinksInNewTab"; "required": false; }; "ShowAgentRunDetails": { "alias": "ShowAgentRunDetails"; "required": false; }; "showAgentRunDetails": { "alias": "showAgentRunDetails"; "required": false; }; "ShowReactions": { "alias": "ShowReactions"; "required": false; }; "showReactions": { "alias": "showReactions"; "required": false; }; "ShowMessageRating": { "alias": "ShowMessageRating"; "required": false; }; "showMessageRating": { "alias": "showMessageRating"; "required": false; }; "AllowPinning": { "alias": "AllowPinning"; "required": false; }; "allowPinning": { "alias": "allowPinning"; "required": false; }; "AllowMessageEdit": { "alias": "AllowMessageEdit"; "required": false; }; "allowMessageEdit": { "alias": "allowMessageEdit"; "required": false; }; "AllowMessageDelete": { "alias": "AllowMessageDelete"; "required": false; }; "allowMessageDelete": { "alias": "allowMessageDelete"; "required": false; }; "ReadOnly": { "alias": "ReadOnly"; "required": false; }; "ReadOnlyMessage": { "alias": "ReadOnlyMessage"; "required": false; }; "ShowSuggestedPrompts": { "alias": "ShowSuggestedPrompts"; "required": false; }; "showSuggestedPrompts": { "alias": "showSuggestedPrompts"; "required": false; }; "ShowDateNavigation": { "alias": "ShowDateNavigation"; "required": false; }; "showDateNavigation": { "alias": "showDateNavigation"; "required": false; }; "AssistantDisplayName": { "alias": "AssistantDisplayName"; "required": false; }; "assistantDisplayName": { "alias": "assistantDisplayName"; "required": false; }; "AssistantAvatarUrl": { "alias": "AssistantAvatarUrl"; "required": false; }; "assistantAvatarUrl": { "alias": "assistantAvatarUrl"; "required": false; }; "IsNewConversation": { "alias": "IsNewConversation"; "required": false; }; "isNewConversation": { "alias": "isNewConversation"; "required": false; }; "PendingMessage": { "alias": "PendingMessage"; "required": false; }; "pendingMessage": { "alias": "pendingMessage"; "required": false; }; "PendingMessageConversationId": { "alias": "PendingMessageConversationId"; "required": false; }; "pendingMessageConversationId": { "alias": "pendingMessageConversationId"; "required": false; }; "PendingAttachments": { "alias": "PendingAttachments"; "required": false; }; "pendingAttachments": { "alias": "pendingAttachments"; "required": false; }; "PendingArtifactId": { "alias": "PendingArtifactId"; "required": false; }; "pendingArtifactId": { "alias": "pendingArtifactId"; "required": false; }; "PendingArtifactVersionNumber": { "alias": "PendingArtifactVersionNumber"; "required": false; }; "pendingArtifactVersionNumber": { "alias": "pendingArtifactVersionNumber"; "required": false; }; "PendingArtifactConversationId": { "alias": "PendingArtifactConversationId"; "required": false; }; "pendingArtifactConversationId": { "alias": "pendingArtifactConversationId"; "required": false; }; "OverlayMode": { "alias": "OverlayMode"; "required": false; }; "overlayMode": { "alias": "overlayMode"; "required": false; }; "ShowExportButton": { "alias": "ShowExportButton"; "required": false; }; "showExportButton": { "alias": "showExportButton"; "required": false; }; "ExportButtonLabel": { "alias": "ExportButtonLabel"; "required": false; }; "exportButtonLabel": { "alias": "exportButtonLabel"; "required": false; }; "ExportButtonIcon": { "alias": "ExportButtonIcon"; "required": false; }; "exportButtonIcon": { "alias": "exportButtonIcon"; "required": false; }; "ExportBranding": { "alias": "ExportBranding"; "required": false; }; "exportBranding": { "alias": "exportBranding"; "required": false; }; "ShowShareButton": { "alias": "ShowShareButton"; "required": false; }; "showShareButton": { "alias": "showShareButton"; "required": false; }; "ShowArtifactIndicator": { "alias": "ShowArtifactIndicator"; "required": false; }; "showArtifactIndicator": { "alias": "showArtifactIndicator"; "required": false; }; "AppContext": { "alias": "AppContext"; "required": false; }; "appContext": { "alias": "appContext"; "required": false; }; "DefaultAgentId": { "alias": "DefaultAgentId"; "required": false; }; "defaultAgentId": { "alias": "defaultAgentId"; "required": false; }; "AgentReplyMode": { "alias": "AgentReplyMode"; "required": false; }; "AllowedAgentIDs": { "alias": "AllowedAgentIDs"; "required": false; }; "MentionPeople": { "alias": "MentionPeople"; "required": false; }; "AgentHistoryFrom": { "alias": "AgentHistoryFrom"; "required": false; }; "AgentTurnHandler": { "alias": "AgentTurnHandler"; "required": false; }; "AutoNameConversation": { "alias": "AutoNameConversation"; "required": false; }; "EnableDecisionRouting": { "alias": "EnableDecisionRouting"; "required": false; }; "ApplicationScope": { "alias": "ApplicationScope"; "required": false; }; "applicationScope": { "alias": "applicationScope"; "required": false; }; "ApplicationId": { "alias": "ApplicationId"; "required": false; }; "applicationId": { "alias": "applicationId"; "required": false; }; "LinkedEntityId": { "alias": "LinkedEntityId"; "required": false; }; "linkedEntityId": { "alias": "linkedEntityId"; "required": false; }; "LinkedRecordId": { "alias": "LinkedRecordId"; "required": false; }; "linkedRecordId": { "alias": "linkedRecordId"; "required": false; }; "ShowAgentPicker": { "alias": "ShowAgentPicker"; "required": false; }; "showAgentPicker": { "alias": "showAgentPicker"; "required": false; }; "ShowAgentModePicker": { "alias": "ShowAgentModePicker"; "required": false; }; "showAgentModePicker": { "alias": "showAgentModePicker"; "required": false; }; "EmptyStateGreeting": { "alias": "EmptyStateGreeting"; "required": false; }; "emptyStateGreeting": { "alias": "emptyStateGreeting"; "required": false; }; "ShowSidebarToggle": { "alias": "ShowSidebarToggle"; "required": false; }; "showSidebarToggle": { "alias": "showSidebarToggle"; "required": false; }; "ShowAgentCharacter": { "alias": "ShowAgentCharacter"; "required": false; }; "showAgentCharacter": { "alias": "showAgentCharacter"; "required": false; }; "AgentCharacterConfig": { "alias": "AgentCharacterConfig"; "required": false; }; "agentCharacterConfig": { "alias": "agentCharacterConfig"; "required": false; }; "EmptyStateConfig": { "alias": "EmptyStateConfig"; "required": false; }; "emptyStateConfig": { "alias": "emptyStateConfig"; "required": false; }; "ShowDemonstrationSurface": { "alias": "ShowDemonstrationSurface"; "required": false; }; "showDemonstrationSurface": { "alias": "showDemonstrationSurface"; "required": false; }; "DemonstrationSurfaceContent": { "alias": "DemonstrationSurfaceContent"; "required": false; }; "demonstrationSurfaceContent": { "alias": "demonstrationSurfaceContent"; "required": false; }; "ComposerDraft": { "alias": "ComposerDraft"; "required": false; }; "composerDraft": { "alias": "composerDraft"; "required": false; }; "ComposerAgentMention": { "alias": "ComposerAgentMention"; "required": false; }; "composerAgentMention": { "alias": "composerAgentMention"; "required": false; }; "CollapseThreadReplies": { "alias": "CollapseThreadReplies"; "required": false; }; }, { "BeforeAgentTurn": "BeforeAgentTurn"; "beforeAgentTurn": "beforeAgentTurn"; "AfterAgentTurn": "AfterAgentTurn"; "afterAgentTurn": "afterAgentTurn"; "BeforeToolInvoked": "BeforeToolInvoked"; "beforeToolInvoked": "beforeToolInvoked"; "AfterToolInvoked": "AfterToolInvoked"; "afterToolInvoked": "afterToolInvoked"; "BeforeResponseFormSubmitted": "BeforeResponseFormSubmitted"; "beforeResponseFormSubmitted": "beforeResponseFormSubmitted"; "AfterResponseFormSubmitted": "AfterResponseFormSubmitted"; "afterResponseFormSubmitted": "afterResponseFormSubmitted"; "BeforeStopClicked": "BeforeStopClicked"; "AfterStopClicked": "AfterStopClicked"; "SessionStarted": "SessionStarted"; "sessionStarted": "sessionStarted"; "SessionChannelStateChanged": "SessionChannelStateChanged"; "sessionChannelStateChanged": "sessionChannelStateChanged"; "SessionEnded": "SessionEnded"; "sessionEnded": "sessionEnded"; "ConversationRenamed": "ConversationRenamed"; "conversationRenamed": "conversationRenamed"; "OpenEntityRecord": "OpenEntityRecord"; "openEntityRecord": "openEntityRecord"; "RealtimeConversationReady": "RealtimeConversationReady"; "realtimeConversationReady": "realtimeConversationReady"; "navigationRequest": "navigationRequest"; "TaskClicked": "TaskClicked"; "taskClicked": "taskClicked"; "ArtifactLinkClicked": "ArtifactLinkClicked"; "artifactLinkClicked": "artifactLinkClicked"; "SidebarToggleClicked": "SidebarToggleClicked"; "sidebarToggleClicked": "sidebarToggleClicked"; "ConversationCreated": "ConversationCreated"; "conversationCreated": "conversationCreated"; "PendingArtifactConsumed": "PendingArtifactConsumed"; "pendingArtifactConsumed": "pendingArtifactConsumed"; "PendingMessageConsumed": "PendingMessageConsumed"; "pendingMessageConsumed": "pendingMessageConsumed"; "PendingMessageRequested": "PendingMessageRequested"; "pendingMessageRequested": "pendingMessageRequested"; "ComposerDraftConsumed": "ComposerDraftConsumed"; "composerDraftConsumed": "composerDraftConsumed"; "ComposerAgentMentionConsumed": "ComposerAgentMentionConsumed"; "composerAgentMentionConsumed": "composerAgentMentionConsumed"; "ThreadReplyRevealRequested": "ThreadReplyRevealRequested"; }, ["chatSlotChildren"], never, false, never>;
3198
3378
  }
3199
3379
  //# sourceMappingURL=conversation-chat-area.component.d.ts.map