@wildo-ai/saas-frontend-lib 1.1.15 → 1.1.17

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 (241) hide show
  1. package/dist/esm/components/compliance/EmbeddedSigningFrame.d.ts.map +1 -1
  2. package/dist/esm/components/compliance/EmbeddedSigningFrame.js +17 -6
  3. package/dist/esm/components/compliance/EmbeddedSigningFrame.js.map +1 -1
  4. package/dist/esm/components/data-display/approval-seal.d.ts +7 -5
  5. package/dist/esm/components/data-display/approval-seal.d.ts.map +1 -1
  6. package/dist/esm/components/data-display/approval-seal.js +10 -4
  7. package/dist/esm/components/data-display/approval-seal.js.map +1 -1
  8. package/dist/esm/components/data-display/signature-requests.d.ts +81 -0
  9. package/dist/esm/components/data-display/signature-requests.d.ts.map +1 -0
  10. package/dist/esm/components/data-display/signature-requests.js +123 -0
  11. package/dist/esm/components/data-display/signature-requests.js.map +1 -0
  12. package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
  13. package/dist/esm/components/flows-actors/approval.js +8 -15
  14. package/dist/esm/components/flows-actors/approval.js.map +1 -1
  15. package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
  16. package/dist/esm/components/flows-actors/approval.labels.js +3 -0
  17. package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
  18. package/dist/esm/components/flows-actors/task-detail.d.ts +12 -1
  19. package/dist/esm/components/flows-actors/task-detail.d.ts.map +1 -1
  20. package/dist/esm/components/flows-actors/task-detail.js +2 -2
  21. package/dist/esm/components/flows-actors/task-detail.js.map +1 -1
  22. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
  23. package/dist/esm/components/form/automated/ResourceAutomatedForm.js +44 -29
  24. package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
  25. package/dist/esm/components/navigation/NavigationItemBadge.d.ts +16 -0
  26. package/dist/esm/components/navigation/NavigationItemBadge.d.ts.map +1 -1
  27. package/dist/esm/components/navigation/NavigationItemBadge.js +14 -2
  28. package/dist/esm/components/navigation/NavigationItemBadge.js.map +1 -1
  29. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.d.ts +3 -3
  30. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js +3 -3
  31. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js.map +1 -1
  32. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts +5 -13
  33. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts.map +1 -1
  34. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js +30 -255
  35. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js.map +1 -1
  36. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts +22 -1
  37. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts.map +1 -1
  38. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js +57 -26
  39. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js.map +1 -1
  40. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts +1 -1
  41. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
  42. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +35 -1
  43. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
  44. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts +1 -1
  45. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts.map +1 -1
  46. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js +26 -4
  47. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js.map +1 -1
  48. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts +31 -0
  49. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts.map +1 -0
  50. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js +42 -0
  51. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js.map +1 -0
  52. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts +76 -0
  53. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts.map +1 -0
  54. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js +268 -0
  55. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js.map +1 -0
  56. package/dist/esm/components/navigation/command.d.ts +5 -0
  57. package/dist/esm/components/navigation/command.d.ts.map +1 -1
  58. package/dist/esm/components/navigation/command.js.map +1 -1
  59. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
  60. package/dist/esm/components/resources/ResourceLayout_DangerZone.js +5 -2
  61. package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
  62. package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
  63. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +5 -1
  64. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
  65. package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
  66. package/dist/esm/components/resources/ResourceLayout_List.js +4 -1
  67. package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
  68. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
  69. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js +4 -1
  70. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
  71. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.d.ts.map +1 -1
  72. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js +4 -1
  73. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js.map +1 -1
  74. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.d.ts.map +1 -1
  75. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js +4 -1
  76. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js.map +1 -1
  77. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.d.ts.map +1 -1
  78. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js +4 -1
  79. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js.map +1 -1
  80. package/dist/esm/components/resources/skeleton/Group.d.ts.map +1 -1
  81. package/dist/esm/components/resources/skeleton/Group.js +4 -1
  82. package/dist/esm/components/resources/skeleton/Group.js.map +1 -1
  83. package/dist/esm/components/sections/ContentSectionContainer.d.ts.map +1 -1
  84. package/dist/esm/components/sections/ContentSectionContainer.js +11 -7
  85. package/dist/esm/components/sections/ContentSectionContainer.js.map +1 -1
  86. package/dist/esm/components/sections/content-section.d.ts +1 -3
  87. package/dist/esm/components/sections/content-section.d.ts.map +1 -1
  88. package/dist/esm/components/sections/content-section.js.map +1 -1
  89. package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts +79 -0
  90. package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts.map +1 -0
  91. package/dist/esm/components/settings/AppPage_AgentActivitySettings.js +272 -0
  92. package/dist/esm/components/settings/AppPage_AgentActivitySettings.js.map +1 -0
  93. package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.d.ts +3 -0
  94. package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.d.ts.map +1 -0
  95. package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.js +66 -0
  96. package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.js.map +1 -0
  97. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts +12 -0
  98. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts.map +1 -1
  99. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js +28 -6
  100. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js.map +1 -1
  101. package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
  102. package/dist/esm/components/settings/SettingsHub.js +6 -0
  103. package/dist/esm/components/settings/SettingsHub.js.map +1 -1
  104. package/dist/esm/components/typography/document-heading-level.d.ts +28 -0
  105. package/dist/esm/components/typography/document-heading-level.d.ts.map +1 -0
  106. package/dist/esm/components/typography/document-heading-level.js +63 -0
  107. package/dist/esm/components/typography/document-heading-level.js.map +1 -0
  108. package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
  109. package/dist/esm/components/views/chart-view/ChartView.js +20 -16
  110. package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
  111. package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
  112. package/dist/esm/components/views/chart-view/ChartView.labels.js +7 -0
  113. package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
  114. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +12 -3
  115. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
  116. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +18 -11
  117. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
  118. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
  119. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +2 -1
  120. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
  121. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.d.ts.map +1 -1
  122. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js +7 -3
  123. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js.map +1 -1
  124. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.d.ts.map +1 -1
  125. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js +6 -2
  126. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js.map +1 -1
  127. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.d.ts.map +1 -1
  128. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +7 -1
  129. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
  130. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.d.ts.map +1 -1
  131. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js +13 -9
  132. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js.map +1 -1
  133. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
  134. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +2 -1
  135. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
  136. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.d.ts.map +1 -1
  137. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js +2 -1
  138. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js.map +1 -1
  139. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
  140. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +4 -3
  141. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
  142. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.d.ts.map +1 -1
  143. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js +2 -1
  144. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js.map +1 -1
  145. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.d.ts.map +1 -1
  146. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js +5 -1
  147. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js.map +1 -1
  148. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
  149. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +4 -3
  150. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
  151. package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
  152. package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
  153. package/dist/esm/components/views/composite-view/CompositeView.js +12 -2
  154. package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
  155. package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.d.ts +57 -0
  156. package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.d.ts.map +1 -0
  157. package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.js +136 -0
  158. package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.js.map +1 -0
  159. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +20 -0
  160. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
  161. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +139 -22
  162. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
  163. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.d.ts.map +1 -1
  164. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.js +5 -0
  165. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.js.map +1 -1
  166. package/dist/esm/components/views/flows-actors-view/held-conversation-selection.d.ts +4 -0
  167. package/dist/esm/components/views/flows-actors-view/held-conversation-selection.d.ts.map +1 -1
  168. package/dist/esm/components/views/flows-actors-view/held-conversation-selection.js +19 -0
  169. package/dist/esm/components/views/flows-actors-view/held-conversation-selection.js.map +1 -1
  170. package/dist/esm/components/views/flows-actors-view/linked-conversation.context.d.ts +26 -0
  171. package/dist/esm/components/views/flows-actors-view/linked-conversation.context.d.ts.map +1 -0
  172. package/dist/esm/components/views/flows-actors-view/linked-conversation.context.js +3 -0
  173. package/dist/esm/components/views/flows-actors-view/linked-conversation.context.js.map +1 -0
  174. package/dist/esm/core/app-shell/app-shell.schemas.d.ts +87 -16
  175. package/dist/esm/core/app-shell/app-shell.schemas.d.ts.map +1 -1
  176. package/dist/esm/core/app-shell/app-shell.schemas.js +16 -0
  177. package/dist/esm/core/app-shell/app-shell.schemas.js.map +1 -1
  178. package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.d.ts.map +1 -1
  179. package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.js +1 -0
  180. package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.js.map +1 -1
  181. package/dist/esm/core/config/composite-view.schemas.d.ts +19 -0
  182. package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
  183. package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
  184. package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
  185. package/dist/esm/core/config/engine-settings-destinations.js +23 -0
  186. package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
  187. package/dist/esm/core/config/settings-hub-presentation.frontend.utils.d.ts.map +1 -1
  188. package/dist/esm/core/config/settings-hub-presentation.frontend.utils.js +3 -0
  189. package/dist/esm/core/config/settings-hub-presentation.frontend.utils.js.map +1 -1
  190. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +12 -0
  191. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
  192. package/dist/esm/core/config/settings-hub.frontend.schemas.js +12 -0
  193. package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
  194. package/dist/esm/core/events/events.frontend.schemas.d.ts +16 -0
  195. package/dist/esm/core/events/events.frontend.schemas.d.ts.map +1 -1
  196. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +10 -1
  197. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
  198. package/dist/esm/core/flows-actors/FlowsActorsContext.js +12 -3
  199. package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
  200. package/dist/esm/core/flows-actors/conversation-history.model.d.ts +19 -1
  201. package/dist/esm/core/flows-actors/conversation-history.model.d.ts.map +1 -1
  202. package/dist/esm/core/flows-actors/conversation-history.model.js +45 -4
  203. package/dist/esm/core/flows-actors/conversation-history.model.js.map +1 -1
  204. package/dist/esm/core/navigation/NavigationContentAreas.d.ts +0 -5
  205. package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
  206. package/dist/esm/core/navigation/NavigationContentAreas.js +27 -1
  207. package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
  208. package/dist/esm/core/navigation/navigation.schemas.d.ts +20 -0
  209. package/dist/esm/core/navigation/navigation.schemas.d.ts.map +1 -1
  210. package/dist/esm/core/navigation/navigation.schemas.js +4 -0
  211. package/dist/esm/core/navigation/navigation.schemas.js.map +1 -1
  212. package/dist/esm/core/navigation/useNavigationRouterSync.d.ts.map +1 -1
  213. package/dist/esm/core/navigation/useNavigationRouterSync.js +5 -1
  214. package/dist/esm/core/navigation/useNavigationRouterSync.js.map +1 -1
  215. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +59 -5
  216. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
  217. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +58 -1
  218. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
  219. package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
  220. package/dist/esm/core/resources/hooks/useOperationEnabled.js +41 -3
  221. package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
  222. package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
  223. package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
  224. package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
  225. package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
  226. package/dist/esm/core/runtime/AppRouter.js +2 -1
  227. package/dist/esm/core/runtime/AppRouter.js.map +1 -1
  228. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +6 -0
  229. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
  230. package/dist/esm/core/runtime/routes.frontend.definitions.js +7 -1
  231. package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
  232. package/dist/esm/core/search/command-score.d.ts +33 -0
  233. package/dist/esm/core/search/command-score.d.ts.map +1 -0
  234. package/dist/esm/core/search/command-score.js +109 -0
  235. package/dist/esm/core/search/command-score.js.map +1 -0
  236. package/dist/esm/index.d.ts +5 -0
  237. package/dist/esm/index.d.ts.map +1 -1
  238. package/dist/esm/index.js +5 -0
  239. package/dist/esm/index.js.map +1 -1
  240. package/dist/tsconfig.build.tsbuildinfo +1 -1
  241. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"file":"assert-registry-completeness.frontend.helper.js","sourceRoot":"","sources":["../../../../src/core/components-registry/assert-registry-completeness.frontend.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AAEpG,MAAM,MAAM,GAA0B,qBAAqB,CAAC,SAAS,EAAE,CAAC;AAExE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,oCAAoC,GAAuC,IAAI,GAAG,CAAC;IACvF,+EAA+E;IAC/E,gFAAgF;IAChF,qBAAqB,CAAC,mCAAmC;IACzD,qEAAqE;IACrE,qBAAqB,CAAC,2BAA2B;IAEjD,sHAAsH;IACtH,qBAAqB,CAAC,sBAAsB;IAC5C,qBAAqB,CAAC,2BAA2B;IACjD,qBAAqB,CAAC,2BAA2B;IACjD,qBAAqB,CAAC,kBAAkB;IACxC,qBAAqB,CAAC,2BAA2B;IACjD,qBAAqB,CAAC,wBAAwB;IAC9C,qBAAqB,CAAC,wBAAwB;IAC9C,iHAAiH;IACjH,qBAAqB,CAAC,4BAA4B;IAClD,wHAAwH;IACxH,qBAAqB,CAAC,yBAAyB;IAC/C,qBAAqB,CAAC,qBAAqB;IAC3C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M,OAAO,GACX,yDAAyD,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG;QACjF,+DAA+D;QAC/D,qBAAqB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM;QACzE,2CAA2C;QAC3C,gGAAgG;QAChG,sEAAsE;QACtE,gFAAgF;QAChF,8FAA8F;QAC9F,8EAA8E,CAAC;IAEjF,MAAM,KAAK,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,EAAE,QAAQ,KAAK,aAAa,CAAC;IACxF,IAAI,OAAO,EAAE,MAAM,IAAI,KAAK,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,8CAA8C,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAClG,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/**\n * Tier-1 Registration Completeness Check\n *\n * Validates that every `FrontendComponentType` value that should have a\n * registered preset (Tier-1 — DI/registry-resolved) actually has one.\n *\n * Tier-2 / framework-internal / dispatcher / i18n-bundle-only slots are\n * explicitly deny-listed below. Any new addition to the enum that does\n * NOT belong on that list MUST be registered, otherwise this check fails.\n */\n\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { ComponentRegistryService } from './component-registry.frontend.service';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\n\nconst logger: LoggerFrontendService = LoggerFrontendService.getLogger();\n\n/**\n * Enum entries that intentionally have NO registered preset.\n *\n * Each entry MUST have a one-line justification explaining why it is not\n * registered. Categories:\n *\n * (a) i18n-bundle-only — exists for `useI18n({ component })` lookup\n * but is rendered via direct composition, not via `resolve()`.\n * (b) framework-internal — the framework ships the implementation, so no\n * preset is registered and this check must not demand one. It does NOT\n * mean unswappable: a slot in this category may still consult the\n * registry first and fall back to its built-in (see the guidance\n * renderers below). Read each entry's own justification.\n * (c) deprecated — superseded by another slot, kept only for migration.\n * (d) dispatcher — meta-slot that resolves to one of several concrete\n * slots at render time (HIGH_LEVEL_VIEWS_COMPOSITE etc.).\n * (e) orphan — historical leftover, kept on the enum for back-compat\n * of i18n keys but no longer wired to any wrapper.\n */\nconst KNOWN_NON_REGISTERED_COMPONENT_TYPES: ReadonlySet<FrontendComponentType> = new Set([\n // (a) i18n-bundle-only — ContentSectionContainer uses direct composition. (The\n // SECTION / GROUP / LEGEND slots are now registered ContentSection primitives.)\n FrontendComponentType.LOW_LEVEL_CONTENT_SECTION_CONTAINER,\n // (a) i18n-bundle-only — used by OverlayContainer direct composition\n FrontendComponentType.LOW_LEVEL_OVERLAY_CONTAINER,\n\n // (b) framework-internal — Flows-Actors orchestration shells (engine/saas-frontend-lib/src/components/flows-actors/*)\n FrontendComponentType.LOW_LEVEL_AI_FLOW_NODE,\n FrontendComponentType.LOW_LEVEL_AI_FLOW_EXECUTION,\n FrontendComponentType.LOW_LEVEL_AI_SYSTEM_CATALOG,\n FrontendComponentType.LOW_LEVEL_AI_ACTOR,\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_PLAN,\n FrontendComponentType.LOW_LEVEL_AI_TASK_DETAIL,\n FrontendComponentType.LOW_LEVEL_AI_TASK_MEMORY,\n // One run's consumption (#2528): drawn in place by `FlowsActors_ExecutionUsage`, the flows-actors shells' shape.\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_USAGE,\n // A graph drawn read-only from a GraphView (#2529): composed in place by its hosts, behind the flows-actors graph door.\n FrontendComponentType.LOW_LEVEL_AI_GRAPH_VIEWER,\n FrontendComponentType.LOW_LEVEL_AI_APPROVAL,\n FrontendComponentType.LOW_LEVEL_AI_DECISION,\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_STREAM,\n FrontendComponentType.LOW_LEVEL_AI_ARTIFACT_BROWSER,\n FrontendComponentType.LOW_LEVEL_AI_AGENT_CONFIG,\n\n /**\n * (b) framework-internal — Guidance renderers\n * (`engine/saas-frontend-lib/src/core/guidance/renderers/*`).\n *\n * Deny-listed because the ENGINE registers no preset for them: `GuidanceRenderer` ships working\n * built-in implementations and falls back to them. That is why they belong here and why the\n * check must not demand a registration.\n *\n * They are NOT unswappable, and this entry used to say they were. `GuidanceRenderer` resolves\n * each element type through `GUIDANCE_ELEMENT_COMPONENT_TYPE` against this registry BEFORE its\n * built-in map, so an application that registers a preset under `CorePresetNames.DEFAULT` for any\n * of these types replaces that renderer — which is what the frontend-component specifications for\n * these slots have always advertised.\n */\n FrontendComponentType.GUIDANCE_CHECKLIST,\n FrontendComponentType.GUIDANCE_CHECKLIST_ITEM,\n FrontendComponentType.GUIDANCE_TOUR,\n FrontendComponentType.GUIDANCE_TOOLTIP,\n FrontendComponentType.GUIDANCE_MODAL,\n FrontendComponentType.GUIDANCE_BANNER,\n FrontendComponentType.GUIDANCE_ANNOUNCEMENT,\n FrontendComponentType.GUIDANCE_BADGE,\n FrontendComponentType.GUIDANCE_CARD,\n FrontendComponentType.GUIDANCE_SURVEY,\n FrontendComponentType.GUIDANCE_ONBOARDING_VIEW,\n\n // (b) framework-internal — Progression renderers (engine/saas-frontend-lib/src/components/progression/*)\n FrontendComponentType.PROGRESSION_MILESTONE_TRACKER,\n FrontendComponentType.PROGRESSION_ACHIEVEMENT_BADGE,\n\n // (b) framework-internal — Lifecycle renderers (composed directly in app shells)\n FrontendComponentType.LIFECYCLE_HOME_ACTIVATION_PROGRESS,\n FrontendComponentType.LIFECYCLE_HOME_WELCOME_BACK,\n FrontendComponentType.LIFECYCLE_HOME_DASHBOARD,\n\n // (d) dispatcher — meta-slots that resolve to a concrete view at render time\n FrontendComponentType.HIGH_LEVEL_VIEWS_COMPOSITE,\n FrontendComponentType.HIGH_LEVEL_VIEWS_CHART,\n FrontendComponentType.HIGH_LEVEL_VIEWS_FULL_CUSTOM,\n FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS,\n FrontendComponentType.HIGH_LEVEL_VIEWS_EXECUTION,\n FrontendComponentType.HIGH_LEVEL_VIEWS_NOT_FOUND,\n // The chart dashboard's layout editor (#2299) is opened by `ChartDashboard` itself, never resolved by the registry.\n FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR,\n\n // (b) framework-internal — H-8: app-owned shell slots. The enum entry is\n // kept so that (1) host apps can register their own preset implementation\n // for the slot if/when they need it, and (2) i18n labels remain\n // addressable. The framework itself does not ship a default preset because\n // the layout shape is intentionally app-owned (test harness page, security\n // settings page).\n FrontendComponentType.APP_LAYOUTS_TEST_COMPONENT,\n FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS,\n // The Settings Hub + its bespoke panels are composed by the navigation\n // runtime (NavigationContentRenderer → SettingsHub) and the hub's own panel\n // resolver, NOT the ComponentRegistry. Their enum entries exist for i18n\n // label addressability + spec coverage; the framework ships no default preset.\n FrontendComponentType.APP_LAYOUTS_SETTINGS_HUB,\n FrontendComponentType.APP_LAYOUTS_APPEARANCE_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_INVITATIONS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_BILLING_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AGENT_WORK_EVALUATION_EXPORT_SETTINGS,\n\n // (a) i18n-bundle-only — SurfaceErrorBoundary is rendered directly by `Surface` when the surface\n // policy asks for a boundary, never resolved through the registry. The enum entry exists so the\n // fallback's words are addressable labels.\n FrontendComponentType.APP_LAYOUTS_SURFACE_ERROR_BOUNDARY,\n\n // (e) orphan — H-5: FK editing AND display both flow through the\n // dedicated RESOURCES_FIELDS_RESOURCE_REFERENCE preset (registered by\n // category EDIT/DISPLAY in register-framework-layouts.ts) so there is no\n // separate FORM_FIELD / DISPLAY_FIELD wrapper to register. The enum\n // entries are kept on the schema for consumers that key i18n labels off\n // them; renaming has cross-package blast radius (presets, generated\n // specs, locale bundles), so we treat them as documented orphans rather\n // than removing them.\n FrontendComponentType.LOW_LEVEL_FORM_FIELD_FOREIGN_KEY,\n FrontendComponentType.LOW_LEVEL_DISPLAY_FIELD_FOREIGN_KEY,\n]);\n\nexport interface RegistryCompletenessReport {\n totalEnumValues: number;\n registeredCount: number;\n denyListedCount: number;\n missing: FrontendComponentType[];\n}\n\n/**\n * Compute (without throwing) the set of enum entries that should be\n * registered but are not. Useful for tests and for the boot-time check.\n */\nexport function computeRegistryCompleteness(): RegistryCompletenessReport {\n const allValues = Object.values(FrontendComponentType) as FrontendComponentType[];\n const missing: FrontendComponentType[] = [];\n let registeredCount = 0;\n\n for (const type of allValues) {\n if (KNOWN_NON_REGISTERED_COMPONENT_TYPES.has(type)) continue;\n if (ComponentRegistryService.hasComponentType(type)) {\n registeredCount += 1;\n } else {\n missing.push(type);\n }\n }\n\n return {\n totalEnumValues: allValues.length,\n registeredCount,\n denyListedCount: KNOWN_NON_REGISTERED_COMPONENT_TYPES.size,\n missing,\n };\n}\n\n/**\n * Boot-time guard.\n *\n * Call this once after every `registerDefaultPresets()` /\n * `registerFrameworkLayouts()` invocation completes during app startup.\n *\n * Behaviour:\n * - In `development`: throws a hard error listing all missing entries.\n * The developer must either register the missing component or add\n * its enum value to `KNOWN_NON_REGISTERED_COMPONENT_TYPES` with a\n * justification.\n * - In `production`: logs a warning and returns. Avoids breaking a\n * deployed app over a registration omission, but surfaces it loudly\n * in monitoring.\n *\n * @returns the same report `computeRegistryCompleteness()` returned.\n */\nexport function assertRegistryCompleteness(options?: {\n /**\n * When true, throw even outside `development`. Useful for CI / unit\n * tests that want a strict gate regardless of NODE_ENV.\n */\n strict?: boolean;\n}): RegistryCompletenessReport {\n const report = computeRegistryCompleteness();\n\n if (report.missing.length === 0) {\n return report;\n }\n\n const message =\n `[ComponentRegistry] Tier-1 completeness check failed: ${report.missing.length} ` +\n `FrontendComponentType value(s) have no registered preset.\\n\\n` +\n `Missing entries:\\n${report.missing.map(t => ` - ${t}`).join('\\n')}\\n\\n` +\n `For each missing entry you must EITHER:\\n` +\n ` (1) register a default preset in registerDefaultPresets() / registerFrameworkLayouts(); OR\\n` +\n ` (2) add the enum value to KNOWN_NON_REGISTERED_COMPONENT_TYPES in ` +\n `assert-registry-completeness.frontend.helper.ts with a one-line justification ` +\n `(Tier-1 slots resolve through the registry; Tier-2, framework-internal and i18n-bundle-only ` +\n `slots are rendered directly and are the only ones that belong in that list).`;\n\n const isDev = typeof process !== 'undefined' && process.env?.NODE_ENV === 'development';\n if (options?.strict || isDev) {\n throw new Error(message);\n }\n\n logger.warn('component-registry.completeness-check.failed', { message, missing: report.missing });\n return report;\n}\n"]}
1
+ {"version":3,"file":"assert-registry-completeness.frontend.helper.js","sourceRoot":"","sources":["../../../../src/core/components-registry/assert-registry-completeness.frontend.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AAEpG,MAAM,MAAM,GAA0B,qBAAqB,CAAC,SAAS,EAAE,CAAC;AAExE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,oCAAoC,GAAuC,IAAI,GAAG,CAAC;IACvF,+EAA+E;IAC/E,gFAAgF;IAChF,qBAAqB,CAAC,mCAAmC;IACzD,qEAAqE;IACrE,qBA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I,CAAC,CAAC;QACrB,CAAC;IACH,CAAC;IAED,OAAO;QACL,eAAe,EAAE,SAAS,CAAC,MAAM;QACjC,eAAe;QACf,eAAe,EAAE,oCAAoC,CAAC,IAAI;QAC1D,OAAO;KACR,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,0BAA0B,CAAC,OAM1C;IACC,MAAM,MAAM,GAAG,2BAA2B,EAAE,CAAC;IAE7C,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChC,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,OAAO,GACX,yDAAyD,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG;QACjF,+DAA+D;QAC/D,qBAAqB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM;QACzE,2CAA2C;QAC3C,gGAAgG;QAChG,sEAAsE;QACtE,gFAAgF;QAChF,8FAA8F;QAC9F,8EAA8E,CAAC;IAEjF,MAAM,KAAK,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,EAAE,QAAQ,KAAK,aAAa,CAAC;IACxF,IAAI,OAAO,EAAE,MAAM,IAAI,KAAK,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,8CAA8C,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAClG,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/**\n * Tier-1 Registration Completeness Check\n *\n * Validates that every `FrontendComponentType` value that should have a\n * registered preset (Tier-1 — DI/registry-resolved) actually has one.\n *\n * Tier-2 / framework-internal / dispatcher / i18n-bundle-only slots are\n * explicitly deny-listed below. Any new addition to the enum that does\n * NOT belong on that list MUST be registered, otherwise this check fails.\n */\n\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { ComponentRegistryService } from './component-registry.frontend.service';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\n\nconst logger: LoggerFrontendService = LoggerFrontendService.getLogger();\n\n/**\n * Enum entries that intentionally have NO registered preset.\n *\n * Each entry MUST have a one-line justification explaining why it is not\n * registered. Categories:\n *\n * (a) i18n-bundle-only — exists for `useI18n({ component })` lookup\n * but is rendered via direct composition, not via `resolve()`.\n * (b) framework-internal — the framework ships the implementation, so no\n * preset is registered and this check must not demand one. It does NOT\n * mean unswappable: a slot in this category may still consult the\n * registry first and fall back to its built-in (see the guidance\n * renderers below). Read each entry's own justification.\n * (c) deprecated — superseded by another slot, kept only for migration.\n * (d) dispatcher — meta-slot that resolves to one of several concrete\n * slots at render time (HIGH_LEVEL_VIEWS_COMPOSITE etc.).\n * (e) orphan — historical leftover, kept on the enum for back-compat\n * of i18n keys but no longer wired to any wrapper.\n */\nconst KNOWN_NON_REGISTERED_COMPONENT_TYPES: ReadonlySet<FrontendComponentType> = new Set([\n // (a) i18n-bundle-only — ContentSectionContainer uses direct composition. (The\n // SECTION / GROUP / LEGEND slots are now registered ContentSection primitives.)\n FrontendComponentType.LOW_LEVEL_CONTENT_SECTION_CONTAINER,\n // (a) i18n-bundle-only — used by OverlayContainer direct composition\n FrontendComponentType.LOW_LEVEL_OVERLAY_CONTAINER,\n\n // (b) framework-internal — Flows-Actors orchestration shells (engine/saas-frontend-lib/src/components/flows-actors/*)\n FrontendComponentType.LOW_LEVEL_AI_FLOW_NODE,\n FrontendComponentType.LOW_LEVEL_AI_FLOW_EXECUTION,\n FrontendComponentType.LOW_LEVEL_AI_SYSTEM_CATALOG,\n FrontendComponentType.LOW_LEVEL_AI_ACTOR,\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_PLAN,\n FrontendComponentType.LOW_LEVEL_AI_TASK_DETAIL,\n FrontendComponentType.LOW_LEVEL_AI_TASK_MEMORY,\n // One run's consumption (#2528): drawn in place by `FlowsActors_ExecutionUsage`, the flows-actors shells' shape.\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_USAGE,\n // A graph drawn read-only from a GraphView (#2529): composed in place by its hosts, behind the flows-actors graph door.\n FrontendComponentType.LOW_LEVEL_AI_GRAPH_VIEWER,\n FrontendComponentType.LOW_LEVEL_AI_APPROVAL,\n FrontendComponentType.LOW_LEVEL_AI_DECISION,\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_STREAM,\n FrontendComponentType.LOW_LEVEL_AI_ARTIFACT_BROWSER,\n FrontendComponentType.LOW_LEVEL_AI_AGENT_CONFIG,\n\n /**\n * (b) framework-internal — Guidance renderers\n * (`engine/saas-frontend-lib/src/core/guidance/renderers/*`).\n *\n * Deny-listed because the ENGINE registers no preset for them: `GuidanceRenderer` ships working\n * built-in implementations and falls back to them. That is why they belong here and why the\n * check must not demand a registration.\n *\n * They are NOT unswappable, and this entry used to say they were. `GuidanceRenderer` resolves\n * each element type through `GUIDANCE_ELEMENT_COMPONENT_TYPE` against this registry BEFORE its\n * built-in map, so an application that registers a preset under `CorePresetNames.DEFAULT` for any\n * of these types replaces that renderer — which is what the frontend-component specifications for\n * these slots have always advertised.\n */\n FrontendComponentType.GUIDANCE_CHECKLIST,\n FrontendComponentType.GUIDANCE_CHECKLIST_ITEM,\n FrontendComponentType.GUIDANCE_TOUR,\n FrontendComponentType.GUIDANCE_TOOLTIP,\n FrontendComponentType.GUIDANCE_MODAL,\n FrontendComponentType.GUIDANCE_BANNER,\n FrontendComponentType.GUIDANCE_ANNOUNCEMENT,\n FrontendComponentType.GUIDANCE_BADGE,\n FrontendComponentType.GUIDANCE_CARD,\n FrontendComponentType.GUIDANCE_SURVEY,\n FrontendComponentType.GUIDANCE_ONBOARDING_VIEW,\n\n // (b) framework-internal — Progression renderers (engine/saas-frontend-lib/src/components/progression/*)\n FrontendComponentType.PROGRESSION_MILESTONE_TRACKER,\n FrontendComponentType.PROGRESSION_ACHIEVEMENT_BADGE,\n\n // (b) framework-internal — Lifecycle renderers (composed directly in app shells)\n FrontendComponentType.LIFECYCLE_HOME_ACTIVATION_PROGRESS,\n FrontendComponentType.LIFECYCLE_HOME_WELCOME_BACK,\n FrontendComponentType.LIFECYCLE_HOME_DASHBOARD,\n\n // (d) dispatcher — meta-slots that resolve to a concrete view at render time\n FrontendComponentType.HIGH_LEVEL_VIEWS_COMPOSITE,\n FrontendComponentType.HIGH_LEVEL_VIEWS_CHART,\n FrontendComponentType.HIGH_LEVEL_VIEWS_FULL_CUSTOM,\n FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS,\n FrontendComponentType.HIGH_LEVEL_VIEWS_EXECUTION,\n FrontendComponentType.HIGH_LEVEL_VIEWS_NOT_FOUND,\n // The chart dashboard's layout editor (#2299) is opened by `ChartDashboard` itself, never resolved by the registry.\n FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR,\n\n // (b) framework-internal — H-8: app-owned shell slots. The enum entry is\n // kept so that (1) host apps can register their own preset implementation\n // for the slot if/when they need it, and (2) i18n labels remain\n // addressable. The framework itself does not ship a default preset because\n // the layout shape is intentionally app-owned (test harness page, security\n // settings page).\n FrontendComponentType.APP_LAYOUTS_TEST_COMPONENT,\n FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS,\n // The Settings Hub + its bespoke panels are composed by the navigation\n // runtime (NavigationContentRenderer → SettingsHub) and the hub's own panel\n // resolver, NOT the ComponentRegistry. Their enum entries exist for i18n\n // label addressability + spec coverage; the framework ships no default preset.\n FrontendComponentType.APP_LAYOUTS_SETTINGS_HUB,\n FrontendComponentType.APP_LAYOUTS_APPEARANCE_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_INVITATIONS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_BILLING_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AGENT_WORK_EVALUATION_EXPORT_SETTINGS,\n\n // (a) i18n-bundle-only — SurfaceErrorBoundary is rendered directly by `Surface` when the surface\n // policy asks for a boundary, never resolved through the registry. The enum entry exists so the\n // fallback's words are addressable labels.\n FrontendComponentType.APP_LAYOUTS_SURFACE_ERROR_BOUNDARY,\n\n // (e) orphan — H-5: FK editing AND display both flow through the\n // dedicated RESOURCES_FIELDS_RESOURCE_REFERENCE preset (registered by\n // category EDIT/DISPLAY in register-framework-layouts.ts) so there is no\n // separate FORM_FIELD / DISPLAY_FIELD wrapper to register. The enum\n // entries are kept on the schema for consumers that key i18n labels off\n // them; renaming has cross-package blast radius (presets, generated\n // specs, locale bundles), so we treat them as documented orphans rather\n // than removing them.\n FrontendComponentType.LOW_LEVEL_FORM_FIELD_FOREIGN_KEY,\n FrontendComponentType.LOW_LEVEL_DISPLAY_FIELD_FOREIGN_KEY,\n]);\n\nexport interface RegistryCompletenessReport {\n totalEnumValues: number;\n registeredCount: number;\n denyListedCount: number;\n missing: FrontendComponentType[];\n}\n\n/**\n * Compute (without throwing) the set of enum entries that should be\n * registered but are not. Useful for tests and for the boot-time check.\n */\nexport function computeRegistryCompleteness(): RegistryCompletenessReport {\n const allValues = Object.values(FrontendComponentType) as FrontendComponentType[];\n const missing: FrontendComponentType[] = [];\n let registeredCount = 0;\n\n for (const type of allValues) {\n if (KNOWN_NON_REGISTERED_COMPONENT_TYPES.has(type)) continue;\n if (ComponentRegistryService.hasComponentType(type)) {\n registeredCount += 1;\n } else {\n missing.push(type);\n }\n }\n\n return {\n totalEnumValues: allValues.length,\n registeredCount,\n denyListedCount: KNOWN_NON_REGISTERED_COMPONENT_TYPES.size,\n missing,\n };\n}\n\n/**\n * Boot-time guard.\n *\n * Call this once after every `registerDefaultPresets()` /\n * `registerFrameworkLayouts()` invocation completes during app startup.\n *\n * Behaviour:\n * - In `development`: throws a hard error listing all missing entries.\n * The developer must either register the missing component or add\n * its enum value to `KNOWN_NON_REGISTERED_COMPONENT_TYPES` with a\n * justification.\n * - In `production`: logs a warning and returns. Avoids breaking a\n * deployed app over a registration omission, but surfaces it loudly\n * in monitoring.\n *\n * @returns the same report `computeRegistryCompleteness()` returned.\n */\nexport function assertRegistryCompleteness(options?: {\n /**\n * When true, throw even outside `development`. Useful for CI / unit\n * tests that want a strict gate regardless of NODE_ENV.\n */\n strict?: boolean;\n}): RegistryCompletenessReport {\n const report = computeRegistryCompleteness();\n\n if (report.missing.length === 0) {\n return report;\n }\n\n const message =\n `[ComponentRegistry] Tier-1 completeness check failed: ${report.missing.length} ` +\n `FrontendComponentType value(s) have no registered preset.\\n\\n` +\n `Missing entries:\\n${report.missing.map(t => ` - ${t}`).join('\\n')}\\n\\n` +\n `For each missing entry you must EITHER:\\n` +\n ` (1) register a default preset in registerDefaultPresets() / registerFrameworkLayouts(); OR\\n` +\n ` (2) add the enum value to KNOWN_NON_REGISTERED_COMPONENT_TYPES in ` +\n `assert-registry-completeness.frontend.helper.ts with a one-line justification ` +\n `(Tier-1 slots resolve through the registry; Tier-2, framework-internal and i18n-bundle-only ` +\n `slots are rendered directly and are the only ones that belong in that list).`;\n\n const isDev = typeof process !== 'undefined' && process.env?.NODE_ENV === 'development';\n if (options?.strict || isDev) {\n throw new Error(message);\n }\n\n logger.warn('component-registry.completeness-check.failed', { message, missing: report.missing });\n return report;\n}\n"]}
@@ -121,6 +121,20 @@ export interface ResourceCompositeViewAuthoringConfig extends CompositeViewAutho
121
121
  * silently.
122
122
  */
123
123
  operationLike?: CoreResourceOperation;
124
+ /**
125
+ * The actor system whose conversations this view hosts ON ITS RECORD (#4043): the `systemRef` of the
126
+ * `FlowsActorsView` it renders with the record in that view's context.
127
+ *
128
+ * A conversation opened on a record is listed only there, so a link to it (a notice, an email: the
129
+ * conversation-link page) must open THIS view on that record rather than the system's standalone view, which
130
+ * lists another context. Declaring the system is what lets the engine find this view from a conversation, and it
131
+ * hands the linked conversation to the `FlowsActorsView` of that system inside it — the view's component passes
132
+ * nothing for it.
133
+ *
134
+ * Omitted when the view hosts no conversation. Resource composites only: an application-level view has no record,
135
+ * so its conversations are the standalone view's.
136
+ */
137
+ conversationSystemRef?: string;
124
138
  }
125
139
  export interface CompositeViewDefinition {
126
140
  scope: FrontendView_ScopeMode;
@@ -154,6 +168,11 @@ export interface CompositeViewDefinition {
154
168
  zoneContentMaxWidth?: ResponsiveMaxWidth;
155
169
  /** See {@link CompositeViewAuthoringConfig.zoneContentFillsHeight}. Mirrored from authoring. */
156
170
  zoneContentFillsHeight?: boolean;
171
+ /**
172
+ * See {@link ResourceCompositeViewAuthoringConfig.conversationSystemRef}. Mirrored from a RESOURCE composite's
173
+ * authoring by the registry, which is not Zod-parsed; an application-level definition never carries it.
174
+ */
175
+ conversationSystemRef?: string;
157
176
  }
158
177
  export type AppCompositeViewsConfig = Record<string, CompositeViewAuthoringConfig>;
159
178
  export type InsertedCompositeDeclaration = CompositeViewDefinition;
@@ -1 +1 @@
1
- {"version":3,"file":"composite-view.schemas.d.ts","sourceRoot":"","sources":["../../../../src/core/config/composite-view.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC3G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,E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AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,wEAAwE;AACxE,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAG7C,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,wCAAwC;AACxC,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAA2E,CAAC"}
1
+ {"version":3,"file":"composite-view.schemas.d.ts","sourceRoot":"","sources":["../../../../src/core/config/composite-view.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC3G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EAEpB,iBAAiB,EACjB,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EAGvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAKL,KAAK,4BAA4B,EAClC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,KAAK,0CAA0C,EAChD,MAAM,mEAAmE,CAAC;AAC3E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+DAA+D,CAAC;AAE/G;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,uBAAuB,CAAC;CACzC;AAED;;;;;;;;;GASG;AACH,MAAM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1 @@
1
- {"version":3,"file":"composite-view.schemas.js","sourceRoot":"","sources":["../../../../src/core/config/composite-view.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAA2B,MAAM,qCAAqC,CAAC;AAG3G,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,4BAA4B,EAC5B,iBAAiB,GAElB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,kCAAkC,EAClC,4BAA4B,GAE7B,MAAM,kCAAkC,CAAC;AAmK1C,oEAAoE;AAEpE,MAAM,UAAU,2CAA2C,CAAC,OAAe;IACzE,OAAO,kCAAkC,CAAC,OAAO,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,YAAoB,EACpB,OAAe;IAEf,OAAO,aAAa,YAAY,IAAI,OAAO,EAAE,CAAC;AAChD,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,mBAAmB,CACjC,aAA+D,EAC/D,SAA8D,EAAE;IAEhE,OAAO;QACL,aAAa;QACb,GAAG,MAAM;KACV,CAAC;AACJ,CAAC;AACD,wEAAwE;AAExE,MAAM,CAAC,MAAM,0CAA0C,GAAG,gBAAgB,CAAC;AAE3E,MAAM,UAAU,iCAAiC,CAC/C,aAAkD;IAElD,OAAO,CACL,aAAa,EAAE,aAAa,KAAK,IAAI;WAClC,aAAa,CAAC,KAAK,KAAK,sBAAsB,CAAC,WAAW,CAC9D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,sBAA2D;IAE3D,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC5B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,MAAM,CAAC,OAAO,CAAC,sBAAsB,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CAAC,CAAC,GAAG,EAAE;IACtB,wGAAwG;IACxG,gBAAgB,EAAE,4BAA4B,CAAC,QAAQ,EAAE;IACzD;;;;;;;;;;;OAWG;IACH,IAAI,EAAE,CAAC,CAAC,MAAM,EAAY,CAAC,QAAQ,EAAE;IACrC;;;;;;;;OAQG;IACH,mBAAmB,EAAE,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IACzD,8GAA8G;IAC9G,mBAAmB,EAAE,CAAC,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC,QAAQ,EAAE;IACnE,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAIH,wEAAwE;AACxE,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,YAAY,CAC7D,6BAA6B,EAC7B,8BAA8B,CAC/B,CAAC;AAGF,wCAAwC;AACxC,MAAM,CAAC,MAAM,6BAA6B,GAAuC,iCAAuE,CAAC","sourcesContent":["import { RESPONSIVE_MAX_WIDTH_VALUES, type ResponsiveMaxWidth } from '@wildo-ai/presets-components-models';\nimport type { DeclaredViewLabel } from './view-label-declaration.schemas';\nimport type React from 'react';\nimport { z } from 'zod';\nimport type { IconLike } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation,\n ResourcePrimaryScope,\n RequiredFeaturesConfigSchema,\n ZoneEmptyBehavior,\n type RequiredFeaturesConfig,\n} from '@wildo-ai/saas-models';\nimport {\n FrontendView_ScopeMode,\n FrontendView_DefinitionSchema,\n buildApplicationViewTranslationRef,\n} from './views-frontend.schemas';\nimport {\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n createFrontendInsertedViewIdentity,\n parseFrontendInsertedViewRef,\n type FrontendInsertedViewIdentity,\n} from './inserted-view.frontend.schemas';\nimport {\n FrontendResource_ParentResourceRequirementSchema,\n type FrontendResource_ParentResourceRequirement,\n} from '~wildo-frontend-lib/core/resources/resource-path.frontend.schemas';\nimport type { FrontendResourcesRegistry } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\n\n/**\n * @wildo_source:part:start saas.frontend.composite-view.authoring facet:layer:frontend facet:family:composite-view\n *\n * Resource-owned composite view: props, authoring config, definition, `defineCompositeView()` helper.\n */\nexport interface CompositeViewComponentProps {\n viewRef: string;\n viewDefinition: CompositeViewDefinition;\n}\n\n/**\n * Base authoring shape shared by both app-level and resource-level composite\n * views. Fields on this base are valid at **either** scope.\n *\n * Design decision: `operationLike` is intentionally **NOT** on this base,\n * because app-level composites have no resource operation host to be\n * rendered inside of — the field would carry no semantic weight at app\n * scope. Only the resource-scoped subtype\n * {@link ResourceCompositeViewAuthoringConfig} carries `operationLike`.\n */\nexport interface CompositeViewAuthoringConfig {\n viewComponent: React.ComponentType<CompositeViewComponentProps>;\n /** Companion-readable section refs used by the view's `<Section name=\"...\">` nodes. */\n sectionRefs?: string[];\n /**\n * View-local i18n label declarations (label refs + interpolation params) for this view's OWN\n * text — the captions, KPI names and failure sentences its component renders, beyond the\n * framework's baseline `title` / `description` (and each section's pair).\n *\n * The labelling pipeline plans `composite_views.<translationRef>.<labelRef>` from each entry, so\n * the component resolves its words through the label tree and a translator can find them.\n * Without a declaration there is no key, and the only remaining option is English written into\n * the component — which no locale can translate and nobody who owns the wording can change.\n *\n * Item shape is `DeclaredViewLabel`; kept permissive like `viewComponent` — authored\n * configuration, not user input.\n */\n labels?: DeclaredViewLabel[];\n /**\n * Composite-view icon — `StandardIconReference` string or React component\n * (Lucide / custom). Mirrored from authoring → {@link CompositeViewDefinition.icon},\n * then surfaced into `CoreIconRegistry.compositeView` by the\n * `IconRegistryBridge` so navigation launchers (sidebar, command menu,\n * overlays) render the authored icon.\n */\n icon?: IconLike;\n /**\n * What happens to an ADJACENT zone (secondary / companion) this destination\n * splits into, once that zone's last content is dismissed — overriding the\n * zone's own `onEmpty` while this destination occupies primary.\n *\n * The zone-level `ZoneConfig.onEmpty` is one value for every destination that\n * splits into that zone, and destinations legitimately disagree: a LIST wants\n * the detail pane to stay put (`EMPTY_STATE`) so the layout does not reflow\n * while a reviewer steps through rows, while a CANVAS wants its width back\n * (`COLLAPSE`) the moment nothing is selected. Both share one secondary zone,\n * so without this override one of them is always wrong.\n *\n * Omitted (the common case) defers to the zone, which itself defaults to\n * `ZoneEmptyBehavior.COLLAPSE`. Resolution order is destination → zone →\n * COLLAPSE; see `resolveZoneEmptyBehavior`.\n */\n adjacentZoneOnEmpty?: ZoneEmptyBehavior;\n /**\n * How wide this destination's content may grow in the zone, in the framework's shared width\n * vocabulary — the SAME `ResponsiveMaxWidth` a Surface, a `DisplayLayout` and a `FormLayout` use.\n *\n * Omitted (the common case) is `'content'`: capped and centred at `var(--content-max-width, 80rem)`,\n * right for a form, a list or a detail page and wrong only for content whose value IS the space it\n * occupies — a board, a wide table, a canvas — which declare `'none'`.\n */\n zoneContentMaxWidth?: ResponsiveMaxWidth;\n /**\n * Whether this destination's content fills the zone's HEIGHT as well.\n *\n * `true` makes the zone's content boundary a definite-height flex column, so this view's root may use\n * `flex-1 min-h-0` and resolve against something real. Without it a canvas has no intrinsic height\n * and collapses to zero — which is why one had to hand-roll `h-[70vh]`, sizing against the WINDOW\n * rather than the container it sits in. PRIMARY only: an adjacent zone scrolls, so a filling child\n * and a scrolling parent contradict each other.\n *\n * Separate from the width above ON PURPOSE — see `zone-content-geometry.ts` for why the enum that\n * fused them could not express a capped width with a definite height.\n */\n zoneContentFillsHeight?: boolean;\n}\n\n/**\n * Resource-scoped composite view authoring. Extends the base with\n * `operationLike`, which declares the **single** resource operation host\n * this composite is rendered inside of (and therefore the access policy it\n * exhibits). Composite views are always rendered inside exactly one\n * operation host, so `operationLike` is intentionally single-valued — the\n * list analogue is reserved for execution views, which can legitimately\n * surface in several operation hosts.\n *\n * `operationLike` is the **single declarative source of truth** for\n * composite surfacing: at render time, `ResourceLayout_InsertedViews` filters\n * the resource's `compositeViews` directly by the current operation host\n * against `operationLike`. There is no operation-level view-ref list and no\n * compiled derivation — the composite declaration itself carries the link.\n */\nexport interface ResourceCompositeViewAuthoringConfig extends CompositeViewAuthoringConfig {\n /**\n * Operation host this composite is rendered inside of, and the sole\n * declarative link driving where this composite surfaces at runtime.\n *\n * Defaults to `CoreResourceOperation.READ` when omitted. This default\n * MUST match the fallback passed to `collectOperationLikeViewRefs` at the\n * specification-extraction call site — if it ever diverges, runtime host\n * rendering (which reads `operationLike` directly) and the compiled\n * specification output (which mirrors it via the collector) disagree\n * silently.\n */\n operationLike?: CoreResourceOperation;\n}\n\nexport interface CompositeViewDefinition {\n // Base FrontendView_Definition fields\n scope: FrontendView_ScopeMode;\n parentResourcesRequirements?: FrontendResource_ParentResourceRequirement[];\n additionalResourceRequirements?: FrontendResource_ParentResourceRequirement[];\n // CompositeView-specific fields\n ref: string;\n /** Stable translation identity used for composite-view label lookup/generation. */\n translationRef: string;\n isAddressable: boolean;\n operationLike: CoreResourceOperation;\n primaryScope: ResourcePrimaryScope;\n sectionRefs?: string[];\n /**\n * See {@link CompositeViewAuthoringConfig.labels}. Mirrored from authoring, and declared in the\n * Zod schema too — the startup config parse strips schema-unknown keys.\n */\n labels?: DeclaredViewLabel[];\n viewComponent: React.ComponentType<CompositeViewComponentProps>;\n /** Required features for this view — gates navigation + route access */\n requiredFeatures?: RequiredFeaturesConfig;\n /**\n * Composite-view icon, propagated verbatim from authoring\n * ({@link CompositeViewAuthoringConfig.icon}). The `IconRegistryBridge`\n * walks all composite-view definitions and registers their icons into\n * `CoreIconRegistry.compositeView`, keyed by `ref`.\n */\n icon?: IconLike;\n /** See {@link CompositeViewAuthoringConfig.adjacentZoneOnEmpty}. Mirrored from authoring. */\n adjacentZoneOnEmpty?: ZoneEmptyBehavior;\n /** See {@link CompositeViewAuthoringConfig.zoneContentMaxWidth}. Mirrored from authoring. */\n zoneContentMaxWidth?: ResponsiveMaxWidth;\n /** See {@link CompositeViewAuthoringConfig.zoneContentFillsHeight}. Mirrored from authoring. */\n zoneContentFillsHeight?: boolean;\n}\n\nexport type AppCompositeViewsConfig = Record<string, CompositeViewAuthoringConfig>;\n\nexport type InsertedCompositeDeclaration = CompositeViewDefinition;\n/** @wildo_source:part:end saas.frontend.composite-view.authoring */\n\nexport function buildApplicationCompositeViewTranslationRef(viewRef: string): string {\n return buildApplicationViewTranslationRef(viewRef);\n}\n\nexport function buildResourceCompositeViewTranslationRef(\n resourceType: string,\n viewRef: string,\n): string {\n return `resources.${resourceType}.${viewRef}`;\n}\n\n/**\n * @wildo_source:part:start saas.frontend.composite-view.define-helper facet:layer:frontend facet:family:composite-view\n *\n * Authoring helper: attach a composite view component with optional\n * `sectionRefs`. This helper targets the **base** authoring shape\n * ({@link CompositeViewAuthoringConfig}) and is suitable for app-level\n * composites. Resource-scoped composites additionally support\n * {@link ResourceCompositeViewAuthoringConfig.operationLike} and are\n * usually authored as plain object literals inside\n * `ResourceCompositeViewsConfig` so authors can declare `operationLike`\n * inline.\n */\nexport function defineCompositeView(\n viewComponent: React.ComponentType<CompositeViewComponentProps>,\n config: Omit<CompositeViewAuthoringConfig, 'viewComponent'> = {},\n): CompositeViewAuthoringConfig {\n return {\n viewComponent,\n ...config,\n };\n}\n/** @wildo_source:part:end saas.frontend.composite-view.define-helper */\n\nexport const COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX = 'composite_ctx_';\n\nexport function isStandaloneRoutableCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n return (\n compositeView?.isAddressable === true\n && compositeView.scope === FrontendView_ScopeMode.APPLICATION\n );\n}\n\nexport function buildApplicationCompositeViewDefinitions(\n authoredCompositeViews: AppCompositeViewsConfig | undefined,\n): CompositeViewDefinition[] {\n if (!authoredCompositeViews) {\n return [];\n }\n\n return Object.entries(authoredCompositeViews).map(([ref, authoredView]) => ({\n ref,\n translationRef: buildApplicationCompositeViewTranslationRef(ref),\n scope: FrontendView_ScopeMode.APPLICATION,\n isAddressable: true,\n operationLike: CoreResourceOperation.READ,\n primaryScope: ResourcePrimaryScope.APPLICATION,\n sectionRefs: authoredView.sectionRefs,\n labels: authoredView.labels,\n viewComponent: authoredView.viewComponent,\n icon: authoredView.icon,\n adjacentZoneOnEmpty: authoredView.adjacentZoneOnEmpty,\n zoneContentMaxWidth: authoredView.zoneContentMaxWidth,\n zoneContentFillsHeight: authoredView.zoneContentFillsHeight,\n }));\n}\n\nexport function isStandaloneRoutableInsertedCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n return (\n compositeView?.isAddressable === true\n && compositeView.scope === FrontendView_ScopeMode.RESOURCE\n );\n}\n\nexport function isStandaloneRoutableResolvedCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n if (!compositeView) {\n return false;\n }\n\n return compositeView.scope === FrontendView_ScopeMode.APPLICATION\n ? isStandaloneRoutableCompositeView(compositeView)\n : isStandaloneRoutableInsertedCompositeView(compositeView);\n}\n\nexport function buildResourceInsertedCompositeIdentity(\n resourceType: string,\n compositeView: Pick<CompositeViewDefinition, 'ref'>,\n): FrontendInsertedViewIdentity {\n return createFrontendInsertedViewIdentity({\n hostKind: FrontendInsertedViewHostKind.RESOURCE,\n hostRef: resourceType,\n viewKind: FrontendInsertedViewKind.COMPOSITE_VIEW,\n localRef: compositeView.ref,\n });\n}\n\nexport function resolveCompositeViewDefinition(params: {\n viewRef: string | undefined;\n compositeViews?: CompositeViewDefinition[];\n registry?: FrontendResourcesRegistry;\n}): CompositeViewDefinition | undefined {\n const { viewRef, compositeViews, registry } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const applicationCompositeView = compositeViews?.find((candidate) => candidate.ref === viewRef);\n if (applicationCompositeView) {\n return applicationCompositeView;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (\n !insertedIdentity\n || insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.COMPOSITE_VIEW\n ) {\n return undefined;\n }\n\n return registry?.resourceConfigurations[insertedIdentity.hostRef]\n ?.frontendConfiguration\n ?.compositeViews\n ?.find((candidate) => candidate.ref === insertedIdentity.localRef);\n}\n\nexport function resolveCompositeViewPrimaryScope(params: {\n viewRef: string | undefined;\n compositeViews?: Array<{ ref: string; primaryScope?: ResourcePrimaryScope }>;\n registry?: FrontendResourcesRegistry;\n}): ResourcePrimaryScope | undefined {\n const { viewRef, compositeViews, registry } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const applicationCompositeView = compositeViews?.find((candidate) => candidate.ref === viewRef);\n if (applicationCompositeView?.primaryScope) {\n return applicationCompositeView.primaryScope;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (\n !insertedIdentity\n || insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.COMPOSITE_VIEW\n ) {\n return undefined;\n }\n\n return registry?.resourceConfigurations[insertedIdentity.hostRef]\n ?.frontendConfiguration\n ?.compositeViews\n ?.find((candidate) => candidate.ref === insertedIdentity.localRef)\n ?.primaryScope;\n}\n\nexport function buildCompositeRouteUrlPath(\n viewRef: string,\n contextResourceIdentifiers?: Record<string, string>,\n): string {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(contextResourceIdentifiers ?? {})) {\n if (!value) {\n continue;\n }\n params.set(`${COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX}${key}`, value);\n }\n\n const search = params.toString();\n return search.length > 0 ? `/composite/${viewRef}?${search}` : `/composite/${viewRef}`;\n}\n\nexport function extractCompositeRouteContextResourceIdentifiers(\n searchParams: URLSearchParams,\n): Record<string, string> | undefined {\n const contextResourceIdentifiers: Record<string, string> = {};\n\n for (const [key, value] of searchParams.entries()) {\n if (!key.startsWith(COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX) || !value) {\n continue;\n }\n contextResourceIdentifiers[key.slice(COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX.length)] = value;\n }\n\n return Object.keys(contextResourceIdentifiers).length > 0 ? contextResourceIdentifiers : undefined;\n}\n\n/**\n * Base fields for authored top-level composite views.\n *\n * The old GridStack/document-era composite schema has been removed. Composite\n * views are now declared as direct authored React components plus ordinary\n * routed view metadata.\n */\nexport const CompositeView_BaseFieldsSchema = z.object({\n /** Unique reference for this view */\n ref: z.string().min(1),\n /** Stable translation identity used for composite-view label lookup/generation */\n translationRef: z.string().min(1),\n /** Whether this view has its own URL route */\n isAddressable: z.boolean().default(false),\n /** Operation-like behavior for access control */\n operationLike: z.enum(CoreResourceOperation).default(CoreResourceOperation.READ),\n /** Primary scope for this view - determines which context identifiers are injected during navigation */\n primaryScope: z.enum(ResourcePrimaryScope).default(ResourcePrimaryScope.ORGANIZATIONS),\n /** Companion-readable section refs used by the view's `<Section name=\"...\">` nodes. */\n sectionRefs: z.array(z.string()).optional(),\n /**\n * See {@link CompositeViewAuthoringConfig.labels}.\n *\n * MUST stay declared here as well as on the interface, for the reason spelled out on `icon`\n * below: the resolved frontend config is Zod-parsed at startup and a field the schema does not\n * know is silently STRIPPED — the authored declaration would never reach the labelling planner,\n * so no key would be generated and the component would render its raw key for ever.\n */\n labels: z.array(z.any()).optional(),\n /**\n * Direct authored composite view component.\n *\n * Top-level composite views are authored as direct React components.\n */\n viewComponent: z.any(),\n /** Required features for this view — gates navigation + route access via feature availability policy */\n requiredFeatures: RequiredFeaturesConfigSchema.optional(),\n /**\n * Composite-view icon (lucide component reference or StandardIconReference\n * string) — see {@link CompositeViewDefinition.icon}.\n *\n * MUST stay declared here even though the TS interface already carries it:\n * the resolved frontend config is Zod-parsed at startup\n * (`AppConfiguration_Frontend_Schema.parse`), and a field missing from this\n * schema is silently STRIPPED by that parse — authored icons then never reach\n * the `IconRegistryBridge` and every launcher renders the fallback icon.\n * (That exact drift shipped once: interface had `icon`, schema didn't.)\n * Kept permissive like `viewComponent` — authored input, not user input.\n */\n icon: z.custom<IconLike>().optional(),\n /**\n * See {@link CompositeViewAuthoringConfig.adjacentZoneOnEmpty}.\n *\n * Declared here as well as on the interface for the reason spelled out on\n * `icon` directly above: the resolved frontend config is Zod-parsed at\n * startup, and a field the schema does not know is silently STRIPPED — the\n * authored value would never reach `resolveZoneEmptyBehavior` and the zone\n * default would win with nothing to show for it.\n */\n adjacentZoneOnEmpty: z.enum(ZoneEmptyBehavior).optional(),\n /** See {@link CompositeViewAuthoringConfig.zoneContentFill}. Declared here for the strip reason on `icon`. */\n zoneContentMaxWidth: z.enum(RESPONSIVE_MAX_WIDTH_VALUES).optional(),\n zoneContentFillsHeight: z.boolean().optional(),\n});\n\nexport type CompositeView_BaseFields = z.infer<typeof CompositeView_BaseFieldsSchema>;\n\n/** Combine scope discriminated union with base composite view fields */\nexport const CompositeViewDefinitionBaseSchema = z.intersection(\n FrontendView_DefinitionSchema,\n CompositeView_BaseFieldsSchema\n);\nexport type CompositeViewDefinitionBase = z.infer<typeof CompositeViewDefinitionBaseSchema>;\n\n/** Top-level composite view contract */\nexport const CompositeViewDefinitionSchema: z.ZodType<CompositeViewDefinition> = CompositeViewDefinitionBaseSchema as z.ZodType<CompositeViewDefinition>;\n"]}
1
+ {"version":3,"file":"composite-view.schemas.js","sourceRoot":"","sources":["../../../../src/core/config/composite-view.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAA2B,MAAM,qCAAqC,CAAC;AAG3G,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,4BAA4B,EAC5B,iBAAiB,GAElB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,kCAAkC,EAClC,4BAA4B,GAE7B,MAAM,kCAAkC,CAAC;AAsL1C,oEAAoE;AAEpE,MAAM,UAAU,2CAA2C,CAAC,OAAe;IACz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EAC7B,8BAA8B,CAC/B,CAAC;AAGF,wCAAwC;AACxC,MAAM,CAAC,MAAM,6BAA6B,GAAuC,iCAAuE,CAAC","sourcesContent":["import { RESPONSIVE_MAX_WIDTH_VALUES, type ResponsiveMaxWidth } from '@wildo-ai/presets-components-models';\nimport type { DeclaredViewLabel } from './view-label-declaration.schemas';\nimport type React from 'react';\nimport { z } from 'zod';\nimport type { IconLike } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation,\n ResourcePrimaryScope,\n RequiredFeaturesConfigSchema,\n ZoneEmptyBehavior,\n type RequiredFeaturesConfig,\n} from '@wildo-ai/saas-models';\nimport {\n FrontendView_ScopeMode,\n FrontendView_DefinitionSchema,\n buildApplicationViewTranslationRef,\n} from './views-frontend.schemas';\nimport {\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n createFrontendInsertedViewIdentity,\n parseFrontendInsertedViewRef,\n type FrontendInsertedViewIdentity,\n} from './inserted-view.frontend.schemas';\nimport {\n FrontendResource_ParentResourceRequirementSchema,\n type FrontendResource_ParentResourceRequirement,\n} from '~wildo-frontend-lib/core/resources/resource-path.frontend.schemas';\nimport type { FrontendResourcesRegistry } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\n\n/**\n * @wildo_source:part:start saas.frontend.composite-view.authoring facet:layer:frontend facet:family:composite-view\n *\n * Resource-owned composite view: props, authoring config, definition, `defineCompositeView()` helper.\n */\nexport interface CompositeViewComponentProps {\n viewRef: string;\n viewDefinition: CompositeViewDefinition;\n}\n\n/**\n * Base authoring shape shared by both app-level and resource-level composite\n * views. Fields on this base are valid at **either** scope.\n *\n * Design decision: `operationLike` is intentionally **NOT** on this base,\n * because app-level composites have no resource operation host to be\n * rendered inside of — the field would carry no semantic weight at app\n * scope. Only the resource-scoped subtype\n * {@link ResourceCompositeViewAuthoringConfig} carries `operationLike`.\n */\nexport interface CompositeViewAuthoringConfig {\n viewComponent: React.ComponentType<CompositeViewComponentProps>;\n /** Companion-readable section refs used by the view's `<Section name=\"...\">` nodes. */\n sectionRefs?: string[];\n /**\n * View-local i18n label declarations (label refs + interpolation params) for this view's OWN\n * text — the captions, KPI names and failure sentences its component renders, beyond the\n * framework's baseline `title` / `description` (and each section's pair).\n *\n * The labelling pipeline plans `composite_views.<translationRef>.<labelRef>` from each entry, so\n * the component resolves its words through the label tree and a translator can find them.\n * Without a declaration there is no key, and the only remaining option is English written into\n * the component — which no locale can translate and nobody who owns the wording can change.\n *\n * Item shape is `DeclaredViewLabel`; kept permissive like `viewComponent` — authored\n * configuration, not user input.\n */\n labels?: DeclaredViewLabel[];\n /**\n * Composite-view icon — `StandardIconReference` string or React component\n * (Lucide / custom). Mirrored from authoring → {@link CompositeViewDefinition.icon},\n * then surfaced into `CoreIconRegistry.compositeView` by the\n * `IconRegistryBridge` so navigation launchers (sidebar, command menu,\n * overlays) render the authored icon.\n */\n icon?: IconLike;\n /**\n * What happens to an ADJACENT zone (secondary / companion) this destination\n * splits into, once that zone's last content is dismissed — overriding the\n * zone's own `onEmpty` while this destination occupies primary.\n *\n * The zone-level `ZoneConfig.onEmpty` is one value for every destination that\n * splits into that zone, and destinations legitimately disagree: a LIST wants\n * the detail pane to stay put (`EMPTY_STATE`) so the layout does not reflow\n * while a reviewer steps through rows, while a CANVAS wants its width back\n * (`COLLAPSE`) the moment nothing is selected. Both share one secondary zone,\n * so without this override one of them is always wrong.\n *\n * Omitted (the common case) defers to the zone, which itself defaults to\n * `ZoneEmptyBehavior.COLLAPSE`. Resolution order is destination → zone →\n * COLLAPSE; see `resolveZoneEmptyBehavior`.\n */\n adjacentZoneOnEmpty?: ZoneEmptyBehavior;\n /**\n * How wide this destination's content may grow in the zone, in the framework's shared width\n * vocabulary — the SAME `ResponsiveMaxWidth` a Surface, a `DisplayLayout` and a `FormLayout` use.\n *\n * Omitted (the common case) is `'content'`: capped and centred at `var(--content-max-width, 80rem)`,\n * right for a form, a list or a detail page and wrong only for content whose value IS the space it\n * occupies — a board, a wide table, a canvas — which declare `'none'`.\n */\n zoneContentMaxWidth?: ResponsiveMaxWidth;\n /**\n * Whether this destination's content fills the zone's HEIGHT as well.\n *\n * `true` makes the zone's content boundary a definite-height flex column, so this view's root may use\n * `flex-1 min-h-0` and resolve against something real. Without it a canvas has no intrinsic height\n * and collapses to zero — which is why one had to hand-roll `h-[70vh]`, sizing against the WINDOW\n * rather than the container it sits in. PRIMARY only: an adjacent zone scrolls, so a filling child\n * and a scrolling parent contradict each other.\n *\n * Separate from the width above ON PURPOSE — see `zone-content-geometry.ts` for why the enum that\n * fused them could not express a capped width with a definite height.\n */\n zoneContentFillsHeight?: boolean;\n}\n\n/**\n * Resource-scoped composite view authoring. Extends the base with\n * `operationLike`, which declares the **single** resource operation host\n * this composite is rendered inside of (and therefore the access policy it\n * exhibits). Composite views are always rendered inside exactly one\n * operation host, so `operationLike` is intentionally single-valued — the\n * list analogue is reserved for execution views, which can legitimately\n * surface in several operation hosts.\n *\n * `operationLike` is the **single declarative source of truth** for\n * composite surfacing: at render time, `ResourceLayout_InsertedViews` filters\n * the resource's `compositeViews` directly by the current operation host\n * against `operationLike`. There is no operation-level view-ref list and no\n * compiled derivation — the composite declaration itself carries the link.\n */\nexport interface ResourceCompositeViewAuthoringConfig extends CompositeViewAuthoringConfig {\n /**\n * Operation host this composite is rendered inside of, and the sole\n * declarative link driving where this composite surfaces at runtime.\n *\n * Defaults to `CoreResourceOperation.READ` when omitted. This default\n * MUST match the fallback passed to `collectOperationLikeViewRefs` at the\n * specification-extraction call site — if it ever diverges, runtime host\n * rendering (which reads `operationLike` directly) and the compiled\n * specification output (which mirrors it via the collector) disagree\n * silently.\n */\n operationLike?: CoreResourceOperation;\n /**\n * The actor system whose conversations this view hosts ON ITS RECORD (#4043): the `systemRef` of the\n * `FlowsActorsView` it renders with the record in that view's context.\n *\n * A conversation opened on a record is listed only there, so a link to it (a notice, an email: the\n * conversation-link page) must open THIS view on that record rather than the system's standalone view, which\n * lists another context. Declaring the system is what lets the engine find this view from a conversation, and it\n * hands the linked conversation to the `FlowsActorsView` of that system inside it — the view's component passes\n * nothing for it.\n *\n * Omitted when the view hosts no conversation. Resource composites only: an application-level view has no record,\n * so its conversations are the standalone view's.\n */\n conversationSystemRef?: string;\n}\n\nexport interface CompositeViewDefinition {\n // Base FrontendView_Definition fields\n scope: FrontendView_ScopeMode;\n parentResourcesRequirements?: FrontendResource_ParentResourceRequirement[];\n additionalResourceRequirements?: FrontendResource_ParentResourceRequirement[];\n // CompositeView-specific fields\n ref: string;\n /** Stable translation identity used for composite-view label lookup/generation. */\n translationRef: string;\n isAddressable: boolean;\n operationLike: CoreResourceOperation;\n primaryScope: ResourcePrimaryScope;\n sectionRefs?: string[];\n /**\n * See {@link CompositeViewAuthoringConfig.labels}. Mirrored from authoring, and declared in the\n * Zod schema too — the startup config parse strips schema-unknown keys.\n */\n labels?: DeclaredViewLabel[];\n viewComponent: React.ComponentType<CompositeViewComponentProps>;\n /** Required features for this view — gates navigation + route access */\n requiredFeatures?: RequiredFeaturesConfig;\n /**\n * Composite-view icon, propagated verbatim from authoring\n * ({@link CompositeViewAuthoringConfig.icon}). The `IconRegistryBridge`\n * walks all composite-view definitions and registers their icons into\n * `CoreIconRegistry.compositeView`, keyed by `ref`.\n */\n icon?: IconLike;\n /** See {@link CompositeViewAuthoringConfig.adjacentZoneOnEmpty}. Mirrored from authoring. */\n adjacentZoneOnEmpty?: ZoneEmptyBehavior;\n /** See {@link CompositeViewAuthoringConfig.zoneContentMaxWidth}. Mirrored from authoring. */\n zoneContentMaxWidth?: ResponsiveMaxWidth;\n /** See {@link CompositeViewAuthoringConfig.zoneContentFillsHeight}. Mirrored from authoring. */\n zoneContentFillsHeight?: boolean;\n /**\n * See {@link ResourceCompositeViewAuthoringConfig.conversationSystemRef}. Mirrored from a RESOURCE composite's\n * authoring by the registry, which is not Zod-parsed; an application-level definition never carries it.\n */\n conversationSystemRef?: string;\n}\n\nexport type AppCompositeViewsConfig = Record<string, CompositeViewAuthoringConfig>;\n\nexport type InsertedCompositeDeclaration = CompositeViewDefinition;\n/** @wildo_source:part:end saas.frontend.composite-view.authoring */\n\nexport function buildApplicationCompositeViewTranslationRef(viewRef: string): string {\n return buildApplicationViewTranslationRef(viewRef);\n}\n\nexport function buildResourceCompositeViewTranslationRef(\n resourceType: string,\n viewRef: string,\n): string {\n return `resources.${resourceType}.${viewRef}`;\n}\n\n/**\n * @wildo_source:part:start saas.frontend.composite-view.define-helper facet:layer:frontend facet:family:composite-view\n *\n * Authoring helper: attach a composite view component with optional\n * `sectionRefs`. This helper targets the **base** authoring shape\n * ({@link CompositeViewAuthoringConfig}) and is suitable for app-level\n * composites. Resource-scoped composites additionally support\n * {@link ResourceCompositeViewAuthoringConfig.operationLike} and are\n * usually authored as plain object literals inside\n * `ResourceCompositeViewsConfig` so authors can declare `operationLike`\n * inline.\n */\nexport function defineCompositeView(\n viewComponent: React.ComponentType<CompositeViewComponentProps>,\n config: Omit<CompositeViewAuthoringConfig, 'viewComponent'> = {},\n): CompositeViewAuthoringConfig {\n return {\n viewComponent,\n ...config,\n };\n}\n/** @wildo_source:part:end saas.frontend.composite-view.define-helper */\n\nexport const COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX = 'composite_ctx_';\n\nexport function isStandaloneRoutableCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n return (\n compositeView?.isAddressable === true\n && compositeView.scope === FrontendView_ScopeMode.APPLICATION\n );\n}\n\nexport function buildApplicationCompositeViewDefinitions(\n authoredCompositeViews: AppCompositeViewsConfig | undefined,\n): CompositeViewDefinition[] {\n if (!authoredCompositeViews) {\n return [];\n }\n\n return Object.entries(authoredCompositeViews).map(([ref, authoredView]) => ({\n ref,\n translationRef: buildApplicationCompositeViewTranslationRef(ref),\n scope: FrontendView_ScopeMode.APPLICATION,\n isAddressable: true,\n operationLike: CoreResourceOperation.READ,\n primaryScope: ResourcePrimaryScope.APPLICATION,\n sectionRefs: authoredView.sectionRefs,\n labels: authoredView.labels,\n viewComponent: authoredView.viewComponent,\n icon: authoredView.icon,\n adjacentZoneOnEmpty: authoredView.adjacentZoneOnEmpty,\n zoneContentMaxWidth: authoredView.zoneContentMaxWidth,\n zoneContentFillsHeight: authoredView.zoneContentFillsHeight,\n }));\n}\n\nexport function isStandaloneRoutableInsertedCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n return (\n compositeView?.isAddressable === true\n && compositeView.scope === FrontendView_ScopeMode.RESOURCE\n );\n}\n\nexport function isStandaloneRoutableResolvedCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n if (!compositeView) {\n return false;\n }\n\n return compositeView.scope === FrontendView_ScopeMode.APPLICATION\n ? isStandaloneRoutableCompositeView(compositeView)\n : isStandaloneRoutableInsertedCompositeView(compositeView);\n}\n\nexport function buildResourceInsertedCompositeIdentity(\n resourceType: string,\n compositeView: Pick<CompositeViewDefinition, 'ref'>,\n): FrontendInsertedViewIdentity {\n return createFrontendInsertedViewIdentity({\n hostKind: FrontendInsertedViewHostKind.RESOURCE,\n hostRef: resourceType,\n viewKind: FrontendInsertedViewKind.COMPOSITE_VIEW,\n localRef: compositeView.ref,\n });\n}\n\nexport function resolveCompositeViewDefinition(params: {\n viewRef: string | undefined;\n compositeViews?: CompositeViewDefinition[];\n registry?: FrontendResourcesRegistry;\n}): CompositeViewDefinition | undefined {\n const { viewRef, compositeViews, registry } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const applicationCompositeView = compositeViews?.find((candidate) => candidate.ref === viewRef);\n if (applicationCompositeView) {\n return applicationCompositeView;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (\n !insertedIdentity\n || insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.COMPOSITE_VIEW\n ) {\n return undefined;\n }\n\n return registry?.resourceConfigurations[insertedIdentity.hostRef]\n ?.frontendConfiguration\n ?.compositeViews\n ?.find((candidate) => candidate.ref === insertedIdentity.localRef);\n}\n\nexport function resolveCompositeViewPrimaryScope(params: {\n viewRef: string | undefined;\n compositeViews?: Array<{ ref: string; primaryScope?: ResourcePrimaryScope }>;\n registry?: FrontendResourcesRegistry;\n}): ResourcePrimaryScope | undefined {\n const { viewRef, compositeViews, registry } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const applicationCompositeView = compositeViews?.find((candidate) => candidate.ref === viewRef);\n if (applicationCompositeView?.primaryScope) {\n return applicationCompositeView.primaryScope;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (\n !insertedIdentity\n || insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.COMPOSITE_VIEW\n ) {\n return undefined;\n }\n\n return registry?.resourceConfigurations[insertedIdentity.hostRef]\n ?.frontendConfiguration\n ?.compositeViews\n ?.find((candidate) => candidate.ref === insertedIdentity.localRef)\n ?.primaryScope;\n}\n\nexport function buildCompositeRouteUrlPath(\n viewRef: string,\n contextResourceIdentifiers?: Record<string, string>,\n): string {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(contextResourceIdentifiers ?? {})) {\n if (!value) {\n continue;\n }\n params.set(`${COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX}${key}`, value);\n }\n\n const search = params.toString();\n return search.length > 0 ? `/composite/${viewRef}?${search}` : `/composite/${viewRef}`;\n}\n\nexport function extractCompositeRouteContextResourceIdentifiers(\n searchParams: URLSearchParams,\n): Record<string, string> | undefined {\n const contextResourceIdentifiers: Record<string, string> = {};\n\n for (const [key, value] of searchParams.entries()) {\n if (!key.startsWith(COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX) || !value) {\n continue;\n }\n contextResourceIdentifiers[key.slice(COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX.length)] = value;\n }\n\n return Object.keys(contextResourceIdentifiers).length > 0 ? contextResourceIdentifiers : undefined;\n}\n\n/**\n * Base fields for authored top-level composite views.\n *\n * The old GridStack/document-era composite schema has been removed. Composite\n * views are now declared as direct authored React components plus ordinary\n * routed view metadata.\n */\nexport const CompositeView_BaseFieldsSchema = z.object({\n /** Unique reference for this view */\n ref: z.string().min(1),\n /** Stable translation identity used for composite-view label lookup/generation */\n translationRef: z.string().min(1),\n /** Whether this view has its own URL route */\n isAddressable: z.boolean().default(false),\n /** Operation-like behavior for access control */\n operationLike: z.enum(CoreResourceOperation).default(CoreResourceOperation.READ),\n /** Primary scope for this view - determines which context identifiers are injected during navigation */\n primaryScope: z.enum(ResourcePrimaryScope).default(ResourcePrimaryScope.ORGANIZATIONS),\n /** Companion-readable section refs used by the view's `<Section name=\"...\">` nodes. */\n sectionRefs: z.array(z.string()).optional(),\n /**\n * See {@link CompositeViewAuthoringConfig.labels}.\n *\n * MUST stay declared here as well as on the interface, for the reason spelled out on `icon`\n * below: the resolved frontend config is Zod-parsed at startup and a field the schema does not\n * know is silently STRIPPED — the authored declaration would never reach the labelling planner,\n * so no key would be generated and the component would render its raw key for ever.\n */\n labels: z.array(z.any()).optional(),\n /**\n * Direct authored composite view component.\n *\n * Top-level composite views are authored as direct React components.\n */\n viewComponent: z.any(),\n /** Required features for this view — gates navigation + route access via feature availability policy */\n requiredFeatures: RequiredFeaturesConfigSchema.optional(),\n /**\n * Composite-view icon (lucide component reference or StandardIconReference\n * string) — see {@link CompositeViewDefinition.icon}.\n *\n * MUST stay declared here even though the TS interface already carries it:\n * the resolved frontend config is Zod-parsed at startup\n * (`AppConfiguration_Frontend_Schema.parse`), and a field missing from this\n * schema is silently STRIPPED by that parse — authored icons then never reach\n * the `IconRegistryBridge` and every launcher renders the fallback icon.\n * (That exact drift shipped once: interface had `icon`, schema didn't.)\n * Kept permissive like `viewComponent` — authored input, not user input.\n */\n icon: z.custom<IconLike>().optional(),\n /**\n * See {@link CompositeViewAuthoringConfig.adjacentZoneOnEmpty}.\n *\n * Declared here as well as on the interface for the reason spelled out on\n * `icon` directly above: the resolved frontend config is Zod-parsed at\n * startup, and a field the schema does not know is silently STRIPPED — the\n * authored value would never reach `resolveZoneEmptyBehavior` and the zone\n * default would win with nothing to show for it.\n */\n adjacentZoneOnEmpty: z.enum(ZoneEmptyBehavior).optional(),\n /** See {@link CompositeViewAuthoringConfig.zoneContentFill}. Declared here for the strip reason on `icon`. */\n zoneContentMaxWidth: z.enum(RESPONSIVE_MAX_WIDTH_VALUES).optional(),\n zoneContentFillsHeight: z.boolean().optional(),\n});\n\nexport type CompositeView_BaseFields = z.infer<typeof CompositeView_BaseFieldsSchema>;\n\n/** Combine scope discriminated union with base composite view fields */\nexport const CompositeViewDefinitionBaseSchema = z.intersection(\n FrontendView_DefinitionSchema,\n CompositeView_BaseFieldsSchema\n);\nexport type CompositeViewDefinitionBase = z.infer<typeof CompositeViewDefinitionBaseSchema>;\n\n/** Top-level composite view contract */\nexport const CompositeViewDefinitionSchema: z.ZodType<CompositeViewDefinition> = CompositeViewDefinitionBaseSchema as z.ZodType<CompositeViewDefinition>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"engine-settings-destinations.d.ts","sourceRoot":"","sources":["../../../../src/core/config/engine-settings-destinations.ts"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AA2BrH;;;;GAIG;AACH,eAAO,MAAM,+CAA+C,uCAAuC,CAAC;AAmDpG;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,EAAE,SAAS,mBAAmB,EAuuCtE,CAAC;AAGF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAE,qBAAqB,EAOhE,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAkI1C,CAAC"}
1
+ {"version":3,"file":"engine-settings-destinations.d.ts","sourceRoot":"","sources":["../../../../src/core/config/engine-settings-destinations.ts"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AA2BrH;;;;GAIG;AACH,eAAO,MAAM,+CAA+C,uCAAuC,CAAC;AAmDpG;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,EAAE,SAAS,mBAAmB,EA0vCtE,CAAC;AAGF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAE,qBAAqB,EAOhE,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAsI1C,CAAC"}
@@ -784,6 +784,16 @@ export const ENGINE_SETTINGS_DESTINATIONS = [
784
784
  requiredEngineCapabilities: [EngineCapability.AI_LLM],
785
785
  target: { kind: SettingsSectionTargetKind.ENGINE_PANEL, panelRef: SettingsPanelRef.AUTONOMOUS_AGENTS },
786
786
  },
787
+ {
788
+ // What the organization's declared flows and actor systems did (#3990): the runs on the actor plane, and each one's
789
+ // history, tasks and flow steps. Beside Agent runs and never merged into it: those are conversations, read under the
790
+ // execution resource's roles. Org owner/admin, the roles the route admits. NO capability gate, deliberately: a flow
791
+ // runs without a language model, so gating on AI_LLM would hide a flow-only application's activity.
792
+ ref: EngineSettingsDestinationRef.AGENT_ACTIVITY,
793
+ icon: StandardIconReference.ACTIVITY,
794
+ requiredRoles: ORG_MANAGEMENT_ROLES,
795
+ target: { kind: SettingsSectionTargetKind.ENGINE_PANEL, panelRef: SettingsPanelRef.AGENT_ACTIVITY },
796
+ },
787
797
  {
788
798
  // Which declared chat agent answers the organization's people on each chat connection (#2665). Org owner/admin, the
789
799
  // roles the resource's reads and writes accept; AI_LLM, since an application with no language model has no agent to
@@ -1273,6 +1283,15 @@ export const ENGINE_SETTINGS_DESTINATIONS = [
1273
1283
  operation: CoreResourceOperation.LIST,
1274
1284
  },
1275
1285
  },
1286
+ {
1287
+ // The same page across every organization (#3990): an application-wide read under the application's audit read
1288
+ // policy, so under independent approval it answers only with an access grant, and says so. Super-admin, the role the
1289
+ // route admits; no capability gate, for the organization entry's reason.
1290
+ ref: EngineSettingsDestinationRef.APPLICATION_AGENT_ACTIVITY,
1291
+ icon: StandardIconReference.ACTIVITY,
1292
+ requiredRoles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],
1293
+ target: { kind: SettingsSectionTargetKind.ENGINE_PANEL, panelRef: SettingsPanelRef.APPLICATION_AGENT_ACTIVITY },
1294
+ },
1276
1295
  {
1277
1296
  // What reviewers did with agents' proposals in the application's OWN work (#2324): the application-scope decisions,
1278
1297
  // the work no tenant owns. Only the decisions: the content-capture setting, the export authorisation and the
@@ -1500,6 +1519,8 @@ export const SCAFFOLD_SETTINGS_HUB_CONFIG = {
1500
1519
  { destinationRef: EngineSettingsDestinationRef.AGENT_RUNS, categoryRef: 'organization', groupRef: 'ai', label: 'Agent runs', order: 25 },
1501
1520
  // Which agents run here unattended, and what stopped the ones that did not (#2528).
1502
1521
  { destinationRef: EngineSettingsDestinationRef.AUTONOMOUS_AGENTS, categoryRef: 'organization', groupRef: 'ai', label: 'Autonomous agents', order: 26 },
1522
+ // What the organization's flows and actor systems did (#3990), last in the AI group.
1523
+ { destinationRef: EngineSettingsDestinationRef.AGENT_ACTIVITY, categoryRef: 'organization', groupRef: 'ai', label: 'Agent activity', order: 31 },
1503
1524
  // Which agent answers in chat (#2665), beside the agents that run unattended. An application with no chat provider deletes it.
1504
1525
  { destinationRef: EngineSettingsDestinationRef.CHAT_AGENTS, categoryRef: 'organization', groupRef: 'ai', label: 'Chat agents', order: 27 },
1505
1526
  // What the organization's agents' models may be sent and write (#2292), tightened beyond what each agent declares.
@@ -1538,6 +1559,8 @@ export const SCAFFOLD_SETTINGS_HUB_CONFIG = {
1538
1559
  { destinationRef: EngineSettingsDestinationRef.APPLICATION_AGENT_RUNS, categoryRef: 'administration', groupRef: 'ai', label: 'Agent runs', order: 20 },
1539
1560
  // Which agents are switched off for every organization (#2843), beside what the application's agents did.
1540
1561
  { destinationRef: EngineSettingsDestinationRef.APPLICATION_AGENT_POLICY, categoryRef: 'administration', groupRef: 'ai', label: 'Agent policy', order: 21 },
1562
+ // What the flows and actor systems did in every organization (#3990), after the application's own agent runs and policy.
1563
+ { destinationRef: EngineSettingsDestinationRef.APPLICATION_AGENT_ACTIVITY, categoryRef: 'administration', groupRef: 'ai', label: 'Agent activity', order: 24 },
1541
1564
  // In the compliance group, after the rest of Administration: the requests people made about their own data that the
1542
1565
  // operator still owes an answer to.
1543
1566
  { destinationRef: EngineSettingsDestinationRef.APPLICATION_DATA_SUBJECT_REQUESTS, categoryRef: 'administration', groupRef: 'compliance', label: 'Data subject requests', order: 22 },