@lobu/runtime-server 24.8.0 → 24.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/dist/catalogs/automations.json +2 -2
  2. package/dist/catalogs/connectors.json +99 -10
  3. package/dist/catalogs/skills.json +1 -1
  4. package/dist/component.json +1 -1
  5. package/dist/connectors/README.md +6 -2
  6. package/dist/connectors/github.ts +16 -3
  7. package/dist/connectors/market_quotes.ts +388 -91
  8. package/dist/connectors/postgres.ts +60 -38
  9. package/dist/connectors/whatsapp-web-adapter.js +41 -10
  10. package/dist/connectors/whatsapp-web-helpers.ts +12 -2
  11. package/dist/connectors/whatsapp_web.ts +18 -2
  12. package/dist/connectors/x-dm-adapter.js +55 -21
  13. package/dist/connectors/x.ts +1 -1
  14. package/dist/db/migrations/20261109010000_workspace_navigation.sql +14 -0
  15. package/dist/db/migrations/20261110010000_view_resources.sql +11 -0
  16. package/dist/db/migrations/20261112210000_instance_identity.sql +18 -0
  17. package/dist/dependencies.bun.lock +88 -86
  18. package/dist/embeddings-server.mjs +38 -5
  19. package/dist/owletto/dist/assets/_-CYvj1y65.js +3 -0
  20. package/dist/owletto/dist/assets/_-CeLTSYYY.js +2 -0
  21. package/dist/owletto/dist/assets/_agentId-BB5E-L6T.js +2 -0
  22. package/dist/owletto/dist/assets/_agentId-DN0EwMAC.js +2 -0
  23. package/dist/owletto/dist/assets/_automationId-DvUl9CSd.js +2 -0
  24. package/dist/owletto/dist/assets/_connectorKey._connectionId-CVKfL9AG.js +2 -0
  25. package/dist/owletto/dist/assets/_connectorKey.index-Cv6FzK1v.js +2 -0
  26. package/dist/owletto/dist/assets/{_conversationId-OJrZjd0o.js → _conversationId-CPpNySjO.js} +2 -2
  27. package/dist/owletto/dist/assets/_eventId-DZKicuq6.js +2 -0
  28. package/dist/owletto/dist/assets/_owner-Dauk3YuD.js +3 -0
  29. package/dist/owletto/dist/assets/_shape-cKrEID3T.js +2 -0
  30. package/dist/owletto/dist/assets/_slug-DJx_8fsV.js +2 -0
  31. package/dist/owletto/dist/assets/_viewKey-CPVzVKEf.js +2 -0
  32. package/dist/owletto/dist/assets/_viewKey-CW8gexOQ.js +2 -0
  33. package/dist/owletto/dist/assets/accept-invitation-Dwq1GAnG.js +2 -0
  34. package/dist/owletto/dist/assets/activity-route-location-C1jcXC7v.js +2 -0
  35. package/dist/owletto/dist/assets/activity-route-view-D78Wj0RH.js +2 -0
  36. package/dist/owletto/dist/assets/agent-connect-pages-DoI9UR0a.js +4 -0
  37. package/dist/owletto/dist/assets/{agent-editor-form-CDAHRNWl.js → agent-editor-form-DlavYg2q.js} +2 -2
  38. package/dist/owletto/dist/assets/{agent-loading-shells-BupiSjR-.js → agent-loading-shells-DYqQphN7.js} +2 -2
  39. package/dist/owletto/dist/assets/agent-permissions-matrix-C1L8IcYR.js +2 -0
  40. package/dist/owletto/dist/assets/{agent-skill-context-B0ZYVE3n.js → agent-skill-context-D1nMrVod.js} +2 -2
  41. package/dist/owletto/dist/assets/{agent-subpage-shell-ByU0xhXn.js → agent-subpage-shell-2w7vTeXw.js} +2 -2
  42. package/dist/owletto/dist/assets/{agent-thread-DiVKn1WX.js → agent-thread-BopD-2k1.js} +2 -2
  43. package/dist/owletto/dist/assets/{app._appId-BQWElSoP.js → app._appId-BXeFXW1w.js} +2 -2
  44. package/dist/owletto/dist/assets/{assist-composer-igTXq3DL.js → assist-composer-CL5x8pNt.js} +2 -2
  45. package/dist/owletto/dist/assets/automation-run-now-MtxUTfzd.js +2 -0
  46. package/dist/owletto/dist/assets/{callback-Dmaio9CX.js → callback-BgfwP1Eo.js} +2 -2
  47. package/dist/owletto/dist/assets/{card-rE4Ctuy6.js → card-DtLIFq7D.js} +2 -2
  48. package/dist/owletto/dist/assets/{claim-BN17CPYh.js → claim-CT3hYVMF.js} +2 -2
  49. package/dist/owletto/dist/assets/{client-activity-scopes-B7xVaUA-.js → client-activity-scopes-BPbRX-Pe.js} +2 -2
  50. package/dist/owletto/dist/assets/{client-rows-B3LULJxW.js → client-rows-vrNA6FLs.js} +2 -2
  51. package/dist/owletto/dist/assets/clients-xnzZeEdZ.js +2 -0
  52. package/dist/owletto/dist/assets/{code-editor-UppEMWpt.js → code-editor-mrKkAfcE.js} +2 -2
  53. package/dist/owletto/dist/assets/connect-NUCSay8X.js +2 -0
  54. package/dist/owletto/dist/assets/{connect-menu-B9u86bb2.js → connect-menu-C6iVtuSo.js} +2 -2
  55. package/dist/owletto/dist/assets/connect._clientId-Cp-d9Q5b.js +2 -0
  56. package/dist/owletto/dist/assets/{connected._clientId-CaF-ZWlZ.js → connected._clientId-ROfVgp9h.js} +2 -2
  57. package/dist/owletto/dist/assets/connection-BMz740Wi.js +2 -0
  58. package/dist/owletto/dist/assets/{connection-feed-detail-CJYqryAV.js → connection-feed-detail-0VAJiZTP.js} +2 -2
  59. package/dist/owletto/dist/assets/connector-page-shell-BFv21yuv.js +2 -0
  60. package/dist/owletto/dist/assets/{connector-provenance-CW4CXtCz.js → connector-provenance-b59RfBtk.js} +2 -2
  61. package/dist/owletto/dist/assets/connectors-nYS31lO2.js +2 -0
  62. package/dist/owletto/dist/assets/consent-cPRF9JQv.js +2 -0
  63. package/dist/owletto/dist/assets/{copy-button-1ALlvZU1.js → copy-button-C3wMMv63.js} +2 -2
  64. package/dist/owletto/dist/assets/{core.esm-6koO33th.js → core.esm-C9QlSrgK.js} +3 -3
  65. package/dist/owletto/dist/assets/{create-kUevP9Xx.js → create-ASRN3Obq.js} +2 -2
  66. package/dist/owletto/dist/assets/create-CBcodaSO.js +2 -0
  67. package/dist/owletto/dist/assets/create-CGOWfMk4.js +2 -0
  68. package/dist/owletto/dist/assets/{create-automation-form-BhujNbRr.js → create-automation-form-CLicoPH5.js} +3 -3
  69. package/dist/owletto/dist/assets/create._connectorKey-s4xkktTC.js +2 -0
  70. package/dist/owletto/dist/assets/{custom-guardrail-edits-B_aCgvoZ.js → custom-guardrail-edits-BUL7nmuO.js} +2 -2
  71. package/dist/owletto/dist/assets/{definition-comparison-3zKUSTt8.js → definition-comparison-4UYMI6BK.js} +2 -2
  72. package/dist/owletto/dist/assets/{detail-page-skeleton-BmxqqIsH.js → detail-page-skeleton-C8v3rJXK.js} +2 -2
  73. package/dist/owletto/dist/assets/device-BBwsOi7q.js +2 -0
  74. package/dist/owletto/dist/assets/device-pin-tombstone-Bcpe7nAA.js +2 -0
  75. package/dist/owletto/dist/assets/{device._deviceId-Dqtmb1Xp.js → device._deviceId-DLT4jh0Z.js} +2 -2
  76. package/dist/owletto/dist/assets/{dynamic-schema-form-D3KnzCsW.js → dynamic-schema-form-BDT8x0Vg.js} +2 -2
  77. package/dist/owletto/dist/assets/entity-options-B9hm9V87.js +2 -0
  78. package/dist/owletto/dist/assets/entity-page-DZjzQ2V4.js +2 -0
  79. package/dist/owletto/dist/assets/entity-pages-BWBpttz3.js +2 -0
  80. package/dist/owletto/dist/assets/entity-schema-graph-lMMx3HhR.js +2 -0
  81. package/dist/owletto/dist/assets/{entity-type-page-CouHZbc9.js → entity-type-page-CkQm0yEu.js} +2 -2
  82. package/dist/owletto/dist/assets/event-detail-CkzfakTK.js +2 -0
  83. package/dist/owletto/dist/assets/events-feed-DmRzikZW.js +2 -0
  84. package/dist/owletto/dist/assets/filter-editors-CQoSj-20.js +3 -0
  85. package/dist/owletto/dist/assets/{full-page-spinner-B7A6Ycyi.js → full-page-spinner-CYyCnKve.js} +2 -2
  86. package/dist/owletto/dist/assets/index-BE7eb2kE.js +2 -0
  87. package/dist/owletto/dist/assets/index-BFR0uiKY.js +2 -0
  88. package/dist/owletto/dist/assets/{index-DXfYVs5m.js → index-BS5Ty3tf.js} +2 -2
  89. package/dist/owletto/dist/assets/index-C38OzBpB.js +2 -0
  90. package/dist/owletto/dist/assets/{index-BztXeLBN.js → index-C3hz9tzx.js} +2 -2
  91. package/dist/owletto/dist/assets/index-CDyFQ32o.js +2 -0
  92. package/dist/owletto/dist/assets/{index-B-dZruj6.js → index-CUndAH6o.js} +2 -2
  93. package/dist/owletto/dist/assets/index-CiKysEhV.js +2 -0
  94. package/dist/owletto/dist/assets/index-DByaMzsG.js +7906 -0
  95. package/dist/owletto/dist/assets/index-DfdinB7B.js +2 -0
  96. package/dist/owletto/dist/assets/index-DgMM4Zt5.css +1 -0
  97. package/dist/owletto/dist/assets/index-Xk711gVC.js +2 -0
  98. package/dist/owletto/dist/assets/index-ittfA0k8.js +2 -0
  99. package/dist/owletto/dist/assets/{json-diff-CJK-gzCt.js → json-diff-mcDgyct_.js} +2 -2
  100. package/dist/owletto/dist/assets/{list-skeleton-bQAZ0hQp.js → list-skeleton-DsYGUHxi.js} +2 -2
  101. package/dist/owletto/dist/assets/login-EoLq136v.js +2 -0
  102. package/dist/owletto/dist/assets/{logout-H0F3IfiO.js → logout-gLgEQOiX.js} +2 -2
  103. package/dist/owletto/dist/assets/{member-scope-gate-Doic_6qX.js → member-scope-gate-vvkgSAb2.js} +2 -2
  104. package/dist/owletto/dist/assets/memory-browse-page-DvDtwrEI.js +74 -0
  105. package/dist/owletto/dist/assets/{model-selector-BrfaDwIg.js → model-selector-D3vSMLO2.js} +2 -2
  106. package/dist/owletto/dist/assets/needs-you-list-B5Bgd05M.js +2 -0
  107. package/dist/owletto/dist/assets/new-BPW3V0Y1.js +2 -0
  108. package/dist/owletto/dist/assets/new-Bk_flKQO.js +2 -0
  109. package/dist/owletto/dist/assets/new-C5HtQdM_.js +2 -0
  110. package/dist/owletto/dist/assets/new-dLXsCHBd.js +2 -0
  111. package/dist/owletto/dist/assets/organization-DBfgBkzq.js +2 -0
  112. package/dist/owletto/dist/assets/peek-pane-content-c2PG3TEX.js +2 -0
  113. package/dist/owletto/dist/assets/{pending-seed-DYYOoCvj.js → pending-seed-CBhx2Ql-.js} +2 -2
  114. package/dist/owletto/dist/assets/{proposal-review-shell-BVwOMoq9.js → proposal-review-shell-B-jYcKfB.js} +2 -2
  115. package/dist/owletto/dist/assets/public-shell-ready-D8TijlRY.js +2 -0
  116. package/dist/owletto/dist/assets/record-activity-DnRVOrG2.js +2 -0
  117. package/dist/owletto/dist/assets/{record-session-KuEDuF3S.js → record-session-CAmGHMyM.js} +2 -2
  118. package/dist/owletto/dist/assets/{renderer-ucwCQmBk.js → renderer-olRv_HMI.js} +3 -3
  119. package/dist/owletto/dist/assets/reset-password-B9_xi8Pq.js +2 -0
  120. package/dist/owletto/dist/assets/{run-initiator-8vdkq-3o.js → run-initiator-DhE5v4z0.js} +2 -2
  121. package/dist/owletto/dist/assets/runs-C8sZQr4o.js +2 -0
  122. package/dist/owletto/dist/assets/runs-list-CwtH-wmk.js +2 -0
  123. package/dist/owletto/dist/assets/{schema-value-CefbtPIY.js → schema-value-zTJGE4eh.js} +3 -3
  124. package/dist/owletto/dist/assets/scoped-feed-bar-BKyJSa3_.js +2 -0
  125. package/dist/owletto/dist/assets/{settings-DvzkRYQy.js → settings-z02cvVS3.js} +2 -2
  126. package/dist/owletto/dist/assets/source-record-panels-CGmKIJdN.js +2 -0
  127. package/dist/owletto/dist/assets/{status-variants-BxHtpMOj.js → status-variants-DyRCXBzM.js} +2 -2
  128. package/dist/owletto/dist/assets/subDays-D8nHthaS.js +2 -0
  129. package/dist/owletto/dist/assets/{table-1O-ik4_O.js → table-C637cQxG.js} +2 -2
  130. package/dist/owletto/dist/assets/use-automations-CgWNoYio.js +2 -0
  131. package/dist/owletto/dist/assets/use-login-redirect-tDdhXTpt.js +2 -0
  132. package/dist/owletto/dist/assets/{use-mention-search-CA-evCDf.js → use-mention-search-D-kIKchD.js} +2 -2
  133. package/dist/owletto/dist/assets/view-param-filters-CUCj9Df-.js +2 -0
  134. package/dist/owletto/dist/assets/views-access-required-C35Dyt91.js +2 -0
  135. package/dist/owletto/dist/index.html +19 -12
  136. package/dist/server-main.bundle.mjs +6964 -4213
  137. package/npm-shrinkwrap.json +423 -406
  138. package/package.json +1 -1
  139. package/vendor/connector-sdk/dist/connector-types.d.ts +29 -2
  140. package/vendor/connector-sdk/dist/index.d.ts +1 -0
  141. package/vendor/connector-sdk/dist/index.js +1 -0
  142. package/vendor/connector-sdk/dist/ip-reachability.d.ts +1 -1
  143. package/vendor/connector-sdk/dist/ip-reachability.js +1 -1
  144. package/vendor/connector-sdk/dist/logger.d.ts +1 -1
  145. package/vendor/connector-sdk/dist/logger.js +1 -1
  146. package/vendor/connector-sdk/dist/reaction-client-types.d.ts +3 -1
  147. package/vendor/connector-sdk/dist/retry.d.ts +1 -1
  148. package/vendor/connector-sdk/dist/retry.js +1 -1
  149. package/vendor/connector-sdk/dist/source-withheld-error.d.ts +16 -0
  150. package/vendor/connector-sdk/dist/source-withheld-error.js +19 -0
  151. package/vendor/connector-sdk/package.json +1 -1
  152. package/vendor/core/dist/classify-error.d.ts +4 -5
  153. package/vendor/core/dist/classify-error.js +10 -10
  154. package/vendor/core/dist/contracts/tools/collection-presentation.d.ts +17 -1
  155. package/vendor/core/dist/contracts/tools/collection-presentation.js +27 -3
  156. package/vendor/core/dist/contracts/tools/manage-automations.d.ts +67 -3
  157. package/vendor/core/dist/contracts/tools/manage-automations.js +38 -9
  158. package/vendor/core/dist/contracts/tools/manage-entity-schema.js +1 -1
  159. package/vendor/core/dist/contracts/tools/manage-entity.d.ts +8 -0
  160. package/vendor/core/dist/contracts/tools/manage-entity.js +11 -3
  161. package/vendor/core/dist/contracts/tools/manage-views.d.ts +249 -7
  162. package/vendor/core/dist/contracts/tools/manage-views.js +83 -21
  163. package/vendor/core/dist/contracts/tools/navigation.d.ts +248 -0
  164. package/vendor/core/dist/contracts/tools/navigation.js +284 -0
  165. package/vendor/core/dist/contracts/tools/save-memory.d.ts +11 -1
  166. package/vendor/core/dist/contracts/tools/save-memory.js +25 -3
  167. package/vendor/core/dist/contracts/tools/search-memory.js +1 -1
  168. package/vendor/core/dist/contracts/tools/view-attach.d.ts +7 -0
  169. package/vendor/core/dist/contracts/tools/view-attach.js +15 -0
  170. package/vendor/core/dist/contracts/tools/view-content-hash.d.ts +4 -1
  171. package/vendor/core/dist/contracts/tools/view-content-hash.js +4 -2
  172. package/vendor/core/dist/contracts/tools/view-definition.d.ts +2 -0
  173. package/vendor/core/dist/contracts/tools/view-definition.js +52 -0
  174. package/vendor/core/dist/contracts/tools/view-host.d.ts +68 -0
  175. package/vendor/core/dist/contracts/tools/view-host.js +28 -1
  176. package/vendor/core/dist/contracts/tools/view-scope.d.ts +31 -0
  177. package/vendor/core/dist/contracts/tools/view-scope.js +45 -0
  178. package/vendor/core/dist/credentials.d.ts +12 -0
  179. package/vendor/core/dist/credentials.js +1 -0
  180. package/vendor/core/dist/errors.d.ts +17 -24
  181. package/vendor/core/dist/errors.js +19 -26
  182. package/vendor/core/dist/types.d.ts +0 -6
  183. package/vendor/core/dist/worker/auth.d.ts +5 -0
  184. package/vendor/core/dist/worker/auth.js +15 -4
  185. package/vendor/core/package.json +11 -1
  186. package/vendor/postgres/cf/src/connection.js +7 -2
  187. package/vendor/postgres/cjs/src/connection.js +7 -2
  188. package/vendor/postgres/src/connection.js +7 -2
  189. package/vendor/views/dist/api.d.ts +30 -5
  190. package/vendor/views/dist/api.js +22 -8
  191. package/vendor/views/dist/bridge.d.ts +17 -0
  192. package/vendor/views/dist/bridge.js +49 -1
  193. package/vendor/views/dist/components.d.ts +27 -5
  194. package/vendor/views/dist/components.js +57 -7
  195. package/vendor/views/dist/embed.d.ts +98 -0
  196. package/vendor/views/dist/embed.js +418 -0
  197. package/vendor/views/dist/index.d.ts +3 -1
  198. package/vendor/views/dist/index.js +1 -0
  199. package/vendor/views/dist/native.d.ts +33 -1
  200. package/vendor/views/dist/native.js +3 -0
  201. package/vendor/views/package.json +1 -1
  202. package/dist/owletto/dist/assets/_-B0tmXZ86.js +0 -2
  203. package/dist/owletto/dist/assets/_-DwXULq4r.js +0 -3
  204. package/dist/owletto/dist/assets/_agentId-B1dNkhnr.js +0 -2
  205. package/dist/owletto/dist/assets/_agentId-sYjvnBaB.js +0 -2
  206. package/dist/owletto/dist/assets/_automationId-Bnw_CnT_.js +0 -2
  207. package/dist/owletto/dist/assets/_connectorKey._connectionId-D7Z8DQ-B.js +0 -2
  208. package/dist/owletto/dist/assets/_connectorKey.index-DM5MTO8c.js +0 -2
  209. package/dist/owletto/dist/assets/_eventId-CfB0_2zK.js +0 -2
  210. package/dist/owletto/dist/assets/_owner-BDvTUY0a.js +0 -3
  211. package/dist/owletto/dist/assets/_shape-BZidoJMB.js +0 -2
  212. package/dist/owletto/dist/assets/_slug-R989vOiM.js +0 -2
  213. package/dist/owletto/dist/assets/_viewKey-BDUSrpe5.js +0 -2
  214. package/dist/owletto/dist/assets/_viewKey-BnFqh5-t.js +0 -2
  215. package/dist/owletto/dist/assets/accept-invitation-BC-ZIsrf.js +0 -2
  216. package/dist/owletto/dist/assets/activity-route-view-CN2dOiCD.js +0 -2
  217. package/dist/owletto/dist/assets/agent-connect-pages-CdDjrHjn.js +0 -4
  218. package/dist/owletto/dist/assets/agent-permissions-matrix-ju7L2M0l.js +0 -2
  219. package/dist/owletto/dist/assets/automation-detail-content-BJwRU6qT.js +0 -2
  220. package/dist/owletto/dist/assets/clients-CydgUHrc.js +0 -2
  221. package/dist/owletto/dist/assets/connect-OdHpIVV9.js +0 -2
  222. package/dist/owletto/dist/assets/connect._clientId-EI1tcdSE.js +0 -2
  223. package/dist/owletto/dist/assets/connection-D8ZAMHBT.js +0 -2
  224. package/dist/owletto/dist/assets/connector-boxes-BWPXijAk.js +0 -2
  225. package/dist/owletto/dist/assets/connector-page-shell-C23dWdKz.js +0 -2
  226. package/dist/owletto/dist/assets/connectors-Bp08_KPq.js +0 -2
  227. package/dist/owletto/dist/assets/consent-_PpYI1cT.js +0 -2
  228. package/dist/owletto/dist/assets/create-DULVO0HS.js +0 -2
  229. package/dist/owletto/dist/assets/create-Drx9tcnG.js +0 -2
  230. package/dist/owletto/dist/assets/create._connectorKey-N6fhcIPy.js +0 -2
  231. package/dist/owletto/dist/assets/device-D2eUt_nr.js +0 -2
  232. package/dist/owletto/dist/assets/device-pin-tombstone-BFPbTM_o.js +0 -2
  233. package/dist/owletto/dist/assets/entity-options-IUdQ-64R.js +0 -2
  234. package/dist/owletto/dist/assets/entity-page-B3Im65EI.js +0 -2
  235. package/dist/owletto/dist/assets/entity-pages-DJNSQrfB.js +0 -2
  236. package/dist/owletto/dist/assets/event-detail-CvaRN1qB.js +0 -2
  237. package/dist/owletto/dist/assets/events-feed-DwOkLk6A.js +0 -2
  238. package/dist/owletto/dist/assets/filter-editors-DQ5V4Cvh.js +0 -2
  239. package/dist/owletto/dist/assets/home-stream-Bg97PUBJ.js +0 -2
  240. package/dist/owletto/dist/assets/home-toolbar-CpCcHA6z.js +0 -2
  241. package/dist/owletto/dist/assets/index-9PGnv4-5.js +0 -2
  242. package/dist/owletto/dist/assets/index-C2TCKJDP.js +0 -7901
  243. package/dist/owletto/dist/assets/index-C7QM3aqU.js +0 -2
  244. package/dist/owletto/dist/assets/index-CWn46a4y.js +0 -2
  245. package/dist/owletto/dist/assets/index-CxJONizf.js +0 -2
  246. package/dist/owletto/dist/assets/index-DJhb3li3.js +0 -2
  247. package/dist/owletto/dist/assets/index-DY-YGnCe.js +0 -2
  248. package/dist/owletto/dist/assets/index-j3v7ITPb.js +0 -2
  249. package/dist/owletto/dist/assets/index-oiy6ygaI.js +0 -2
  250. package/dist/owletto/dist/assets/index-pEgtAY1t.js +0 -2
  251. package/dist/owletto/dist/assets/index-xAvK3IyQ.css +0 -1
  252. package/dist/owletto/dist/assets/login-DLqL54Rk.js +0 -2
  253. package/dist/owletto/dist/assets/memory-browse-page-CUea2Llz.js +0 -74
  254. package/dist/owletto/dist/assets/new-5GkxlOuQ.js +0 -2
  255. package/dist/owletto/dist/assets/new-BiA4DGoN.js +0 -2
  256. package/dist/owletto/dist/assets/new-M-MX_T5C.js +0 -2
  257. package/dist/owletto/dist/assets/organization-CLrcmgNK.js +0 -2
  258. package/dist/owletto/dist/assets/peek-pane-content-B29OcHwm.js +0 -2
  259. package/dist/owletto/dist/assets/public-shell-ready-BbjPgh3k.js +0 -2
  260. package/dist/owletto/dist/assets/record-activity-BCpNKaUo.js +0 -2
  261. package/dist/owletto/dist/assets/reset-password-BkiAmXZW.js +0 -2
  262. package/dist/owletto/dist/assets/runs-B_iywKWb.js +0 -2
  263. package/dist/owletto/dist/assets/runs-list-CJJFRhTl.js +0 -2
  264. package/dist/owletto/dist/assets/schema-type-editor-panel-C4e8pq1A.js +0 -2
  265. package/dist/owletto/dist/assets/scoped-feed-bar-CapleZvS.js +0 -2
  266. package/dist/owletto/dist/assets/source-record-panels-LJIWGtHb.js +0 -2
  267. package/dist/owletto/dist/assets/subDays-DwIOMzYC.js +0 -2
  268. package/dist/owletto/dist/assets/use-automations-lV8PuE8L.js +0 -2
  269. package/dist/owletto/dist/assets/use-login-redirect-CfCbEeJR.js +0 -2
  270. package/dist/owletto/dist/assets/view-param-filters-Bp84PUMd.js +0 -2
  271. package/dist/owletto/dist/assets/views-access-required-BerT4Z1d.js +0 -2
  272. /package/vendor/postgres/{.bun-tag-c81dacd34e959a7a → .bun-tag-652f2580b8090d71} +0 -0
@@ -0,0 +1,418 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * `<EmbeddedView>` — place another registered view inside this one.
4
+ *
5
+ * The child is never rendered by this frame. The slot reports its position
6
+ * to the host (`lobu/embeds/sync`), and the Lobu web host mounts the child as
7
+ * its own sandboxed frame over the slot: its own bundle, its own view key and
8
+ * actions, the visitor's own session. This frame cannot reach into the child,
9
+ * and the child's param changes stay with that one instance — they never
10
+ * reach this view's params, a sibling, or the address bar.
11
+ *
12
+ * Hosts that do not mount embedded views (other MCP Apps hosts) answer
13
+ * -32601, and the slot says so instead of rendering nothing.
14
+ */
15
+ import { VIEW_EMBED_MAX_PARAMS, } from "@lobu/core/contracts/tools/view-host";
16
+ import { createContext, useContext, useEffect, useId, useMemo, useRef, useSyncExternalStore, } from "react";
17
+ import { ViewBridgeError } from "./bridge.js";
18
+ const PENDING = { kind: "pending" };
19
+ /** `Node.DOCUMENT_POSITION_FOLLOWING`, without needing the `Node` global. */
20
+ const DOCUMENT_POSITION_FOLLOWING = 4;
21
+ /** Layers laid over the page: while one covers a slot, its child hides so
22
+ * the parent's own dialog or menu stays on top and takes the clicks. */
23
+ const OVERLAYS = 'dialog[open],[role="dialog"],[role="alertdialog"],[role="menu"],[role="listbox"],[data-lobu-overlay]';
24
+ function intersect(a, b) {
25
+ const x = Math.max(a.x, b.x);
26
+ const y = Math.max(a.y, b.y);
27
+ const right = Math.min(a.x + a.width, b.x + b.width);
28
+ const bottom = Math.min(a.y + a.height, b.y + b.height);
29
+ return {
30
+ x,
31
+ y,
32
+ width: Math.max(0, right - x),
33
+ height: Math.max(0, bottom - y),
34
+ };
35
+ }
36
+ const EMPTY = { x: 0, y: 0, width: 0, height: 0 };
37
+ /** The part of `element` the page actually shows: inside the viewport and
38
+ * every ancestor that clips or scrolls, and none of it under an overlay. */
39
+ function shownPart(element, box) {
40
+ let shown = intersect(box, {
41
+ x: 0,
42
+ y: 0,
43
+ width: window.innerWidth,
44
+ height: window.innerHeight,
45
+ });
46
+ for (let el = element.parentElement; el && el !== document.documentElement; el = el.parentElement) {
47
+ const style = window.getComputedStyle(el);
48
+ if (style.overflowX === "visible" && style.overflowY === "visible")
49
+ continue;
50
+ const r = el.getBoundingClientRect();
51
+ // The padding box: clientWidth/Height exclude borders and scrollbars.
52
+ shown = intersect(shown, {
53
+ x: r.left + el.clientLeft,
54
+ y: r.top + el.clientTop,
55
+ width: el.clientWidth,
56
+ height: el.clientHeight,
57
+ });
58
+ }
59
+ if (shown.width === 0 || shown.height === 0)
60
+ return EMPTY;
61
+ for (const layer of document.querySelectorAll(OVERLAYS)) {
62
+ if (layer.contains(element))
63
+ continue;
64
+ const r = layer.getBoundingClientRect();
65
+ if (r.width === 0 || r.height === 0)
66
+ continue;
67
+ const over = intersect(shown, {
68
+ x: r.left,
69
+ y: r.top,
70
+ width: r.width,
71
+ height: r.height,
72
+ });
73
+ if (over.width > 0 && over.height > 0)
74
+ return EMPTY;
75
+ }
76
+ return shown;
77
+ }
78
+ /** Longest a transition or animation keeps the per-frame sync running. */
79
+ const MOTION_LIMIT_MS = 5_000;
80
+ /**
81
+ * The slots of one frame. A change that can move a slot — the page's DOM, a
82
+ * resize, any scroll, an image load, a transition or animation — schedules
83
+ * one measurement on the next animation frame; only a changed picture is
84
+ * sent, carrying all slots (the host's answer is the whole picture, never a
85
+ * diff). Nothing polls: with no change there is no work, and motion keeps
86
+ * measuring each frame only until it ends (bounded by `MOTION_LIMIT_MS`).
87
+ */
88
+ export class EmbedRegistry {
89
+ bridge;
90
+ slots = new Map();
91
+ states = new Map();
92
+ listeners = new Set();
93
+ frame = 0;
94
+ unsupported = false;
95
+ connected = false;
96
+ returning = new Set();
97
+ /** Set while focus is being placed on entry from the host, so a slot that
98
+ * is itself the first or last stop passes the same direction on. */
99
+ arrival = null;
100
+ constructor(bridge) {
101
+ this.bridge = bridge;
102
+ }
103
+ /** Wire the host's notifications; returns the teardown. */
104
+ attach(bridge) {
105
+ const offSize = bridge.onEmbedSize((id, height) => {
106
+ const state = this.states.get(id);
107
+ if (state?.kind !== "mounted" || !Number.isFinite(height))
108
+ return;
109
+ this.setState(id, { kind: "mounted", height: Math.max(0, height) });
110
+ });
111
+ const offFocus = bridge.onEmbedFocus((id, direction) => {
112
+ const slot = this.slots.get(id);
113
+ if (!slot)
114
+ return;
115
+ if (direction === "forward") {
116
+ slot.after.current?.focus();
117
+ }
118
+ else {
119
+ // Land on the slot's own entry point without re-entering the child,
120
+ // so the next Shift+Tab continues before the slot.
121
+ this.returning.add(id);
122
+ slot.enter.current?.focus();
123
+ }
124
+ });
125
+ // This view is itself a slot's child: land on its first or last control.
126
+ const offEnter = bridge.onFocusEnter((direction) => {
127
+ const stops = tabStops(document);
128
+ this.arrival = direction;
129
+ try {
130
+ (direction === "forward" ? stops[0] : stops[stops.length - 1])?.focus();
131
+ }
132
+ finally {
133
+ this.arrival = null;
134
+ }
135
+ });
136
+ const reflow = () => this.schedule();
137
+ const motionStart = () => {
138
+ this.motionUntil = window.performance.now() + MOTION_LIMIT_MS;
139
+ this.moving += 1;
140
+ this.schedule();
141
+ };
142
+ const motionEnd = () => {
143
+ this.moving = Math.max(0, this.moving - 1);
144
+ this.schedule();
145
+ };
146
+ window.addEventListener("resize", reflow);
147
+ window.addEventListener("scroll", reflow, true);
148
+ window.addEventListener("load", reflow, true);
149
+ window.addEventListener("transitionrun", motionStart, true);
150
+ window.addEventListener("animationstart", motionStart, true);
151
+ for (const end of [
152
+ "transitionend",
153
+ "transitioncancel",
154
+ "animationend",
155
+ "animationcancel",
156
+ ])
157
+ window.addEventListener(end, motionEnd, true);
158
+ const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(reflow);
159
+ if (observer && document.body)
160
+ observer.observe(document.body);
161
+ this.observer = observer;
162
+ // A slot moves without resizing when content above it changes, it is
163
+ // reordered, or a class or style shifts it: the DOM says so.
164
+ const mutations = typeof window.MutationObserver === "undefined"
165
+ ? null
166
+ : new window.MutationObserver(reflow);
167
+ mutations?.observe(document.documentElement, {
168
+ subtree: true,
169
+ childList: true,
170
+ characterData: true,
171
+ attributes: true,
172
+ attributeFilter: ["class", "style", "hidden", "open", "role"],
173
+ });
174
+ return () => {
175
+ offSize();
176
+ offFocus();
177
+ offEnter();
178
+ window.removeEventListener("resize", reflow);
179
+ window.removeEventListener("scroll", reflow, true);
180
+ window.removeEventListener("load", reflow, true);
181
+ window.removeEventListener("transitionrun", motionStart, true);
182
+ window.removeEventListener("animationstart", motionStart, true);
183
+ for (const end of [
184
+ "transitionend",
185
+ "transitioncancel",
186
+ "animationend",
187
+ "animationcancel",
188
+ ])
189
+ window.removeEventListener(end, motionEnd, true);
190
+ observer?.disconnect();
191
+ mutations?.disconnect();
192
+ this.observer = null;
193
+ if (this.frame)
194
+ cancelAnimationFrame(this.frame);
195
+ this.frame = 0;
196
+ };
197
+ }
198
+ observer = null;
199
+ /** Transitions/animations running now, and when to stop trusting the count. */
200
+ moving = 0;
201
+ motionUntil = 0;
202
+ /** The last picture sent; an identical one is not sent again. */
203
+ sent = null;
204
+ setConnected(connected) {
205
+ this.connected = connected;
206
+ this.sent = null;
207
+ if (connected)
208
+ this.schedule();
209
+ }
210
+ register(id, entry) {
211
+ this.slots.set(id, entry);
212
+ const element = entry.element.current;
213
+ if (element)
214
+ this.observer?.observe(element);
215
+ if (!this.states.has(id))
216
+ this.setState(id, this.unsupported ? { kind: "unsupported" } : PENDING);
217
+ this.schedule();
218
+ return () => {
219
+ if (this.slots.get(id) !== entry)
220
+ return;
221
+ if (element)
222
+ this.observer?.unobserve(element);
223
+ this.slots.delete(id);
224
+ this.states.delete(id);
225
+ this.schedule();
226
+ };
227
+ }
228
+ /** Keyboard focus reached the slot: hand it to the child, unless it is
229
+ * coming back out of the child the other way. */
230
+ enter(id, direction) {
231
+ if (this.returning.delete(id))
232
+ return;
233
+ if (this.states.get(id)?.kind !== "mounted")
234
+ return;
235
+ void this.bridge()
236
+ ?.focusEmbed(id, direction)
237
+ .catch(() => {
238
+ /* host declined: focus stays on the slot */
239
+ });
240
+ }
241
+ state(id) {
242
+ return this.states.get(id) ?? PENDING;
243
+ }
244
+ subscribe = (listener) => {
245
+ this.listeners.add(listener);
246
+ return () => this.listeners.delete(listener);
247
+ };
248
+ setState(id, state) {
249
+ this.states.set(id, state);
250
+ for (const listener of [...this.listeners])
251
+ listener();
252
+ }
253
+ schedule() {
254
+ if (this.frame || this.unsupported || !this.connected)
255
+ return;
256
+ this.frame = requestAnimationFrame(() => {
257
+ this.frame = 0;
258
+ void this.sync();
259
+ // Mid-motion a slot moves every frame without any other signal.
260
+ if (this.moving > 0 && window.performance.now() < this.motionUntil)
261
+ this.schedule();
262
+ else
263
+ this.moving = 0;
264
+ });
265
+ }
266
+ async sync() {
267
+ const bridge = this.bridge();
268
+ if (!bridge?.isConnected())
269
+ return;
270
+ const embeds = [];
271
+ // Document order, so the host's limit keeps the first slots on the page.
272
+ const ordered = [...this.slots].sort(([, a], [, b]) => {
273
+ const x = a.element.current;
274
+ const y = b.element.current;
275
+ if (!x || !y)
276
+ return 0;
277
+ return x.compareDocumentPosition(y) & DOCUMENT_POSITION_FOLLOWING
278
+ ? -1
279
+ : 1;
280
+ });
281
+ for (const [id, slot] of ordered) {
282
+ const element = slot.element.current;
283
+ const r = element?.getBoundingClientRect();
284
+ const box = {
285
+ x: r?.left ?? 0,
286
+ y: r?.top ?? 0,
287
+ width: r?.width ?? 0,
288
+ height: r?.height ?? 0,
289
+ };
290
+ const shown = element ? shownPart(element, box) : EMPTY;
291
+ const whole = shown.x === box.x &&
292
+ shown.y === box.y &&
293
+ shown.width === box.width &&
294
+ shown.height === box.height;
295
+ embeds.push({
296
+ id,
297
+ view: slot.view,
298
+ scope: slot.scope,
299
+ params: slot.params,
300
+ rect: whole ? box : { ...box, clip: shown },
301
+ });
302
+ }
303
+ const picture = JSON.stringify(embeds);
304
+ if (picture === this.sent)
305
+ return;
306
+ this.sent = picture;
307
+ let answer;
308
+ try {
309
+ answer = await bridge.syncEmbeds(embeds);
310
+ }
311
+ catch (error) {
312
+ // Not delivered: the same picture must be sent again next time.
313
+ this.sent = null;
314
+ if (error instanceof ViewBridgeError && error.code === -32601) {
315
+ this.unsupported = true;
316
+ for (const id of this.slots.keys())
317
+ this.setState(id, { kind: "unsupported" });
318
+ }
319
+ return;
320
+ }
321
+ for (const status of answer.embeds ?? []) {
322
+ if (!this.slots.has(status.id))
323
+ continue;
324
+ const previous = this.states.get(status.id);
325
+ if (status.status === "mounted") {
326
+ if (previous?.kind !== "mounted")
327
+ this.setState(status.id, { kind: "mounted", height: null });
328
+ }
329
+ else if (previous?.kind !== "refused" ||
330
+ previous.reason !== status.reason) {
331
+ this.setState(status.id, { kind: "refused", reason: status.reason });
332
+ }
333
+ }
334
+ }
335
+ }
336
+ const EmbedCtx = createContext(null);
337
+ /** Installed by the view runtime's provider. */
338
+ export function EmbedProvider({ registry, children, }) {
339
+ return _jsx(EmbedCtx.Provider, { value: registry, children: children });
340
+ }
341
+ const REFUSALS = {
342
+ cycle: "This view already contains it, so it is not shown again here.",
343
+ depth: "Views nest at most two levels deep.",
344
+ limit: "This view shows too many embedded views at once.",
345
+ invalid: "This embedded view's settings are not valid.",
346
+ };
347
+ const TABBABLE = 'a[href],area[href],button,input,select,textarea,iframe,summary,[tabindex],[contenteditable="true"]';
348
+ /** The document's Tab stops in order (positive `tabIndex` is not used by
349
+ * views, so document order is Tab order). */
350
+ function tabStops(root) {
351
+ return [...root.querySelectorAll(TABBABLE)].filter((el) => el.tabIndex >= 0 &&
352
+ !el.disabled &&
353
+ !el.closest("[inert],[hidden]") &&
354
+ el.getClientRects().length > 0);
355
+ }
356
+ /** Which way the visitor was tabbing when focus reached the slot: from a
357
+ * control after it means backward. From outside this frame, forward. */
358
+ function focusDirection(event) {
359
+ const from = event.relatedTarget;
360
+ return from &&
361
+ event.currentTarget.compareDocumentPosition(from) &
362
+ window.Node.DOCUMENT_POSITION_FOLLOWING
363
+ ? "backward"
364
+ : "forward";
365
+ }
366
+ const HIDDEN = {
367
+ position: "absolute",
368
+ width: 1,
369
+ height: 1,
370
+ overflow: "hidden",
371
+ clip: "rect(0 0 0 0)",
372
+ whiteSpace: "nowrap",
373
+ };
374
+ function scalarParams(params) {
375
+ const out = {};
376
+ for (const [key, value] of Object.entries(params ?? {})) {
377
+ if (Object.keys(out).length >= VIEW_EMBED_MAX_PARAMS)
378
+ break;
379
+ if (typeof value === "string" ||
380
+ typeof value === "boolean" ||
381
+ (typeof value === "number" && Number.isFinite(value)))
382
+ out[key] = value;
383
+ }
384
+ return out;
385
+ }
386
+ export function EmbeddedView({ view, scope, params, id: explicitId, title, minHeight = 120, }) {
387
+ const registry = useContext(EmbedCtx);
388
+ if (!registry)
389
+ throw new Error("<EmbeddedView> must render inside mountView()");
390
+ const autoId = useId();
391
+ const id = explicitId ?? `embed${autoId.replace(/[^A-Za-z0-9_-]/g, "")}`;
392
+ const slotRef = useRef(null);
393
+ const enterRef = useRef(null);
394
+ const afterRef = useRef(null);
395
+ const scopeKey = JSON.stringify(scope ?? {});
396
+ const paramsKey = JSON.stringify(scalarParams(params));
397
+ const entryScope = useMemo(() => JSON.parse(scopeKey), [scopeKey]);
398
+ const entryParams = useMemo(() => JSON.parse(paramsKey), [paramsKey]);
399
+ useEffect(() => registry.register(id, {
400
+ view,
401
+ scope: entryScope,
402
+ params: entryParams,
403
+ element: slotRef,
404
+ enter: enterRef,
405
+ after: afterRef,
406
+ }), [registry, id, view, entryScope, entryParams]);
407
+ const state = useSyncExternalStore(registry.subscribe, () => registry.state(id), () => registry.state(id));
408
+ const label = title ?? view;
409
+ const height = state.kind === "mounted"
410
+ ? (state.height ?? minHeight)
411
+ : state.kind === "pending"
412
+ ? minHeight
413
+ : undefined;
414
+ return (_jsxs("div", { ref: slotRef, "data-lobu-embed": id, "data-state": state.kind, style: { position: "relative", height }, children: [state.kind === "mounted" || state.kind === "pending" ? (
415
+ // Where Tab meets the slot: focus moves on into the child's frame.
416
+ _jsx("button", { ref: enterRef, type: "button", style: HIDDEN, onFocus: (event) => registry.enter(id, registry.arrival ?? focusDirection(event)), onClick: () => registry.enter(id, "forward"), children: label })) : null, state.kind === "unsupported" ? (_jsxs("p", { role: "note", children: ["\u201C", label, "\u201D is an embedded view. Open this page in the Lobu app to see it."] })) : state.kind === "refused" ? (_jsx("p", { role: "note", children: REFUSALS[state.reason] ?? REFUSALS.invalid })) : null, _jsx("span", { ref: afterRef, tabIndex: -1, style: HIDDEN })] }));
417
+ }
418
+ //# sourceMappingURL=embed.js.map
@@ -7,7 +7,9 @@
7
7
  */
8
8
  export type { AttributeFilter, CollectionSelection, } from "@lobu/core/contracts/tools/collection-selection";
9
9
  export { ViewBridge } from "./bridge.js";
10
+ export { EmbeddedView } from "./embed.js";
11
+ export type { EmbeddedViewProps } from "./embed.js";
10
12
  export type { BridgeOptions, HostContext, ToolResult, ViewHandoff, } from "./bridge.js";
11
13
  export { coerceParams, defaultsFor, defineView, escapeLiteral, mintInteractionId, mountView, resolveViewHref, Provider, sql, tool, useAction, useHost, useParams, useQuery, useScope, } from "./api.js";
12
- export type { ActionResult, Attachment, Container, DisplayMode, MountOptions, ParamDef, Params, ParamValue, QueryOptions, QueryState, Scope, SqlQuery, ToolQuery, ViewDefinition, } from "./api.js";
14
+ export type { ActionDef, ActionOptions, ActionResult, Attachment, Container, DisplayMode, MountOptions, ParamDef, Params, ParamValue, QueryOptions, QueryState, Scope, SqlQuery, ToolQuery, ViewDefinition, } from "./api.js";
13
15
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export { ViewBridge } from "./bridge.js";
2
+ export { EmbeddedView } from "./embed.js";
2
3
  export { coerceParams, defaultsFor, defineView, escapeLiteral, mintInteractionId, mountView, resolveViewHref, Provider, sql, tool, useAction, useHost, useParams, useQuery, useScope, } from "./api.js";
3
4
  //# sourceMappingURL=index.js.map
@@ -188,12 +188,42 @@ export interface JsonDiffProps {
188
188
  before: Record<string, unknown> | null;
189
189
  after: Record<string, unknown> | null;
190
190
  }
191
+ /** Schema declarations use the entitySchema SDK's field names. List responses
192
+ * supply entity_types / relationship_types; compose rules from listRules.
193
+ * Rendering never applies a declaration. createType/createRelType require a
194
+ * name; the graph alone permits omission and displays the slug. */
195
+ export interface SchemaSpec {
196
+ entityTypes: Array<{
197
+ slug: string;
198
+ name?: string;
199
+ description?: string;
200
+ metadata_schema?: object;
201
+ event_kinds?: object;
202
+ }>;
203
+ relationshipTypes: Array<{
204
+ slug: string;
205
+ name?: string;
206
+ metadata_schema?: object;
207
+ rules: Array<{
208
+ source_entity_type_slug: string;
209
+ target_entity_type_slug: string;
210
+ }>;
211
+ }>;
212
+ }
213
+ export type SchemaGraphProps = {
214
+ schema?: undefined;
215
+ base?: never;
216
+ } | {
217
+ schema: SchemaSpec;
218
+ base?: "workspace" | SchemaSpec;
219
+ };
191
220
  /** Read-only native definition body. Pass a saved object or an authored snapshot.
192
221
  * No fetching, code execution, saving or approval is performed by the body. */
193
222
  export interface DefinitionProps {
194
223
  value: Record<string, unknown>;
195
224
  }
196
225
  export interface NativeComponentProps {
226
+ SchemaGraph: SchemaGraphProps;
197
227
  AutomationDefinition: DefinitionProps;
198
228
  AgentDefinition: DefinitionProps;
199
229
  ConnectorDefinition: DefinitionProps;
@@ -258,9 +288,11 @@ export interface NativeComponentProps {
258
288
  export type NativeComponents = {
259
289
  [K in keyof NativeComponentProps]: ComponentType<NativeComponentProps[K]>;
260
290
  };
261
- export declare const NATIVE_COMPONENT_NAMES: readonly ["AutomationDefinition", "AgentDefinition", "ConnectorDefinition", "AutomationReference", "AgentReference", "ConnectorReference", "JsonDiff", "EntityListPage", "EntityRecordPage", "EntityTableView", "RecordSpecSheet", "SchemaValue", "EntityAvatar", "Button", "Badge", "Tabs", "TabsList", "TabsTrigger", "TabsContent"];
291
+ export declare const NATIVE_COMPONENT_NAMES: readonly ["SchemaGraph", "AutomationDefinition", "AgentDefinition", "ConnectorDefinition", "AutomationReference", "AgentReference", "ConnectorReference", "JsonDiff", "EntityListPage", "EntityRecordPage", "EntityTableView", "RecordSpecSheet", "SchemaValue", "EntityAvatar", "Button", "Badge", "Tabs", "TabsList", "TabsTrigger", "TabsContent"];
262
292
  export declare const NATIVE_COMPONENT_GLOBAL = "__lobuViewNative";
263
293
  export declare const EntityListPage: ComponentType<EntityListPageProps>;
294
+ /** Read-only workspace schema, snapshot, or semantic schema comparison. */
295
+ export declare const SchemaGraph: ComponentType<SchemaGraphProps>;
264
296
  export declare const EntityRecordPage: ComponentType<EntityRecordPageProps>;
265
297
  export declare const EntityTableView: ComponentType<EntityTableViewProps>;
266
298
  export declare const RecordSpecSheet: ComponentType<{
@@ -2,6 +2,7 @@
2
2
  * Implementations are supplied by the host artifact, using the shell's React. */
3
3
  import { createElement, } from "react";
4
4
  export const NATIVE_COMPONENT_NAMES = [
5
+ "SchemaGraph",
5
6
  "AutomationDefinition",
6
7
  "AgentDefinition",
7
8
  "ConnectorDefinition",
@@ -33,6 +34,8 @@ function native(name) {
33
34
  };
34
35
  }
35
36
  export const EntityListPage = native("EntityListPage");
37
+ /** Read-only workspace schema, snapshot, or semantic schema comparison. */
38
+ export const SchemaGraph = native("SchemaGraph");
36
39
  export const EntityRecordPage = native("EntityRecordPage");
37
40
  export const EntityTableView = native("EntityTableView");
38
41
  export const RecordSpecSheet = native("RecordSpecSheet");
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobu/views",
3
- "version": "24.8.0",
3
+ "version": "24.10.0",
4
4
  "description": "Authoring runtime for Lobu views — React modules rendered in the sandboxed MCP Apps frame",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,2 +0,0 @@
1
- import{cc as t,H as p,j as a,cd as e,av as s}from"./index-C2TCKJDP.js";import{A as n}from"./activity-route-view-CN2dOiCD.js";import"./record-activity-BCpNKaUo.js";import"./home-toolbar-CpCcHA6z.js";import"./filter-editors-DQ5V4Cvh.js";import"./subDays-DwIOMzYC.js";import"./runs-B_iywKWb.js";import"./event-kind-options-fHAIXu24.js";import"./source-record-panels-LJIWGtHb.js";import"./events-feed-DwOkLk6A.js";import"./definition-comparison-3zKUSTt8.js";import"./json-diff-CJK-gzCt.js";import"./code-editor-UppEMWpt.js";import"./index-Vcq4gwWv.js";import"./schema-value-CefbtPIY.js";import"./run-initiator-8vdkq-3o.js";import"./list-skeleton-bQAZ0hQp.js";import"./use-automations-lV8PuE8L.js";import"./clients-CydgUHrc.js";import"./renderer-ucwCQmBk.js";import"./card-rE4Ctuy6.js";import"./table-1O-ik4_O.js";import"./copy-button-1ALlvZU1.js";import"./device-automation-Dp3faMvp.js";import"./client-activity-scopes-B7xVaUA-.js";import"./client-rows-B3LULJxW.js";import"./agent-loading-shells-BupiSjR-.js";import"./member-scope-gate-Doic_6qX.js";import"./home-stream-Bg97PUBJ.js";import"./public-shell-ready-BbjPgh3k.js";function I(){const{owner:o}=t.useParams(),r=p({select:m=>m.pathname}),i=t.useSearch();return a.jsx(n,{owner:o,search:i,entityScope:e(s(r,1)).path})}export{I as component};
2
- //# sourceMappingURL=_-B0tmXZ86.js.map
@@ -1,3 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/entity-page-B3Im65EI.js","assets/index-C2TCKJDP.js","assets/index-xAvK3IyQ.css","assets/entity-pages-DJNSQrfB.js","assets/renderer-ucwCQmBk.js","assets/schema-value-CefbtPIY.js","assets/card-rE4Ctuy6.js","assets/table-1O-ik4_O.js","assets/record-activity-BCpNKaUo.js","assets/home-toolbar-CpCcHA6z.js","assets/filter-editors-DQ5V4Cvh.js","assets/subDays-DwIOMzYC.js","assets/runs-B_iywKWb.js","assets/event-kind-options-fHAIXu24.js","assets/source-record-panels-LJIWGtHb.js","assets/events-feed-DwOkLk6A.js","assets/definition-comparison-3zKUSTt8.js","assets/json-diff-CJK-gzCt.js","assets/code-editor-UppEMWpt.js","assets/index-Vcq4gwWv.js","assets/run-initiator-8vdkq-3o.js","assets/list-skeleton-bQAZ0hQp.js","assets/use-automations-lV8PuE8L.js","assets/clients-CydgUHrc.js","assets/copy-button-1ALlvZU1.js","assets/device-automation-Dp3faMvp.js","assets/client-activity-scopes-B7xVaUA-.js","assets/client-rows-B3LULJxW.js","assets/agent-loading-shells-BupiSjR-.js","assets/member-scope-gate-Doic_6qX.js","assets/dynamic-schema-form-D3KnzCsW.js","assets/views-access-required-BerT4Z1d.js","assets/record-session-KuEDuF3S.js","assets/view-param-filters-Bp84PUMd.js","assets/app-bridge-C4nPtae3.js"])))=>i.map(i=>d[i]);
2
- import{at as x,H as y,au as p,av as j,aw as P,ax as g,z as R,E as v,F as f,j as e,r as E,ay as w,l as S,_}from"./index-C2TCKJDP.js";import{P as r}from"./public-shell-ready-BbjPgh3k.js";const F=S(async()=>({default:(await _(async()=>{const{EntityPage:a}=await import("./entity-page-B3Im65EI.js");return{EntityPage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]))).EntityPage}));function c(){return e.jsx("div",{"data-public-loading":"true",children:e.jsx(w,{})})}function L(){const{owner:a}=x.useParams(),l=y({select:m=>m.pathname}),s=p(j(l)),d=s?.viewKey,{path:u}=P(a,s?.entityPath),{data:t,isLoading:n,error:o}=g(u,{slug:a}),{session:h,isReady:i}=R();return v({active:f({settled:!n,authReady:i,session:h,resolved:!!t,error:o}),owner:a}),n||!i&&!t?e.jsx(c,{}):o||!t||!t.entity?e.jsxs(e.Fragment,{children:[e.jsx(r,{}),e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[e.jsx("h1",{className:"text-2xl font-semibold",children:"Not Found"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"We couldn't resolve this path."})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(r,{}),e.jsx(E.Suspense,{fallback:e.jsx(c,{}),children:e.jsx(F,{namespace:t.workspace,path:t.path,entity:t.entity,viewKey:d})})]})}export{L as component};
3
- //# sourceMappingURL=_-DwXULq4r.js.map
@@ -1,2 +0,0 @@
1
- import{c as b,H as j,z as N,n as k,s as v,r as S,j as s,ar as L,as as $,O as w,i as C,cw as E,L as l,cx as u,hW as P}from"./index-C2TCKJDP.js";import{A as W}from"./agent-skill-context-B0ZYVE3n.js";import"./core.esm-6koO33th.js";import"./skill-editor-D_W3QlRz.js";const y={skills:{label:"Skills",create:"Add a skill"},guardrails:{label:"Guardrails",create:"New custom guardrail"}};function B({owner:e,agentId:a,agentName:o,subpath:r}){const[n]=r.split("/"),t=n==="skills"||n==="guardrails"?{key:n,...y[n]}:null;return s.jsx(E,{crumbs:[s.jsx(l,{to:"/$owner",params:{owner:e},search:{section:"agent"},className:u,children:"Agents"},"agents"),s.jsx(l,{to:"/$owner/agents/$agentId",params:{owner:e,agentId:a},className:u,children:o},"agent"),...t?[s.jsx(l,{to:"/$owner/agents/$agentId",params:{owner:e,agentId:a},hash:t.key,className:u,children:t.label},"section")]:[]],current:t?t.create:"Conversation"})}function R({owner:e,agentId:a}){const o=b(),{pathname:r}=j(),{isAuthenticated:n}=N(),{isMember:t}=k(),g=n&&t,{data:p=[],isLoading:x}=v({enabled:g}),d=p.find(f=>f.agentId===a)??null,m=!d&&!x&&g;S.useEffect(()=>{m&&o({to:"/$owner",params:{owner:e},replace:!0})},[m,o,e]);const h=`/${e}/agents/${a}`,c=r.startsWith(`${h}/`)?r.slice(h.length+1):"",i=c.endsWith("/")?c.slice(0,-1):c,A=i.startsWith("conversations/");return s.jsx(W,{agentId:a,children:s.jsxs(L,{className:"gap-3 overflow-hidden pt-2.5 pb-8",children:[i?s.jsx($,{children:s.jsx(B,{owner:e,agentId:a,agentName:d?.name??"Agent",subpath:i})}):null,s.jsx("div",{className:C("flex min-h-0 min-w-0 flex-1 flex-col",A?"overflow-hidden":"overflow-y-auto"),children:s.jsx(w,{})})]})})}function I(){const{owner:e,agentId:a}=P.useParams();return s.jsx(R,{owner:e,agentId:a})}export{I as component};
2
- //# sourceMappingURL=_agentId-B1dNkhnr.js.map
@@ -1,2 +0,0 @@
1
- import{c as L,cA as D,r as u,j as n,i as w,z as E,n as M,s as P,b0 as N,cB as R,cC as O,cD as B,cE as $,bf as z,M as Q}from"./index-C2TCKJDP.js";import{L as F,A as H}from"./agent-thread-DiVKn1WX.js";import{n as b,c as S}from"./agent-thread-storage-Bx2-WBHQ.js";import{A as U,C as W}from"./agent-loading-shells-BupiSjR-.js";import"./app-bridge-C4nPtae3.js";import"./pending-seed-DYYOoCvj.js";import"./use-mention-search-CA-evCDf.js";import"./index-Vcq4gwWv.js";import"./use-automations-lV8PuE8L.js";import"./events-feed-DwOkLk6A.js";import"./definition-comparison-3zKUSTt8.js";import"./json-diff-CJK-gzCt.js";import"./code-editor-UppEMWpt.js";import"./schema-value-CefbtPIY.js";import"./run-initiator-8vdkq-3o.js";import"./list-skeleton-bQAZ0hQp.js";import"./subDays-DwIOMzYC.js";import"./clients-CydgUHrc.js";import"./renderer-ucwCQmBk.js";import"./card-rE4Ctuy6.js";import"./table-1O-ik4_O.js";import"./copy-button-1ALlvZU1.js";import"./device-automation-Dp3faMvp.js";function _({owner:e,agent:s,threadId:t,afterMessagesContent:d,className:r,initialDraft:g,newChatRequested:f=!1,preventAutoNavigate:p}){const o=L(),i=s.agentId,{data:a=[]}=D(i,{orgSlug:e}),[c,x]=u.useState(()=>b()),[h,A]=u.useState(null);u.useEffect(()=>{!f||t||(x(b()),A(null),o({to:".",search:(m=>{const{new:C,...y}=m;return y}),replace:!0}))},[f,t,o]);const v=u.useMemo(()=>!h||a.some(m=>m.id===h.id)?a:[h,...a],[a,h]),l=t??c,T=!t||!v.some(m=>m.id===t),j=u.useCallback(()=>{if(v.some(C=>C.id===l))return;A({id:l,title:`Conversation ${v.length+1}`,createdAt:Date.now(),updatedAt:Date.now()});const m=S(e,i,l);o({...m,replace:!0})},[v,l,o,e,i]),k=u.useCallback(()=>{T&&!p&&j()},[T,j,p]);return n.jsx("div",{className:w("flex min-h-0 flex-1 flex-col",r),children:n.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:n.jsx(F,{agentId:i,workspaceSlug:e,thread:l,loadHistory:!!t,onFirstUserMessage:k,initialDraft:g,children:n.jsx(H,{afterMessagesContent:d})},`${i}:${l}`)})})}function q({owner:e,agentId:s,threadId:t,initialDraft:d,newChatRequested:r,afterMessagesContent:g,preventAutoNavigate:f}){const{isAuthenticated:p}=E(),{isMember:o,isLoading:i}=M(),a=p&&o,{data:c=[],isLoading:x}=P({enabled:a}),h=s??null,A=c.find(l=>l.agentId===h)??null;return a&&x||i?n.jsx(U,{}):A?n.jsx(_,{owner:e,agent:A,threadId:t,initialDraft:d,newChatRequested:r,afterMessagesContent:g,preventAutoNavigate:f,className:"min-h-0 flex-1 overflow-hidden"}):n.jsx(N,{icon:R,title:"Agent not found",description:"This agent may have been removed."})}function G(e){return[...e].sort((s,t)=>t.updatedAt-s.updatedAt)[0]}function J({owner:e,agentId:s,threadId:t,initialDraft:d,forceComposer:r=!1,newChatRequested:g=!1,afterMessagesContent:f,preventAutoNavigate:p}){const o=L(),{data:i=[],isLoading:a}=O(B(e,s,{strict:!1})),c=u.useMemo(()=>G(i),[i]);return u.useEffect(()=>{if(t||r||a||!c)return;const x=S(e,s,c.id);o({...x,replace:!0})},[s,a,c,o,e,t,r]),!t&&!r&&(a||c)?n.jsx(W,{}):n.jsx(q,{owner:e,agentId:s,threadId:t,initialDraft:d,newChatRequested:g,afterMessagesContent:f,preventAutoNavigate:p})}function xt(){const{owner:e,agentId:s}=$.useParams(),{threadId:t}=z({strict:!1}),{new:d,prompt:r}=Q({strict:!1});return n.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden px-4 pt-2.5 pb-4 lg:px-6 lg:pb-6",children:n.jsx("div",{className:"mx-auto flex min-h-0 w-full max-w-3xl flex-1 flex-col",children:n.jsx(J,{owner:e,agentId:s,threadId:t,initialDraft:r,forceComposer:!t,newChatRequested:!!d})})})}export{xt as component};
2
- //# sourceMappingURL=_agentId-sYjvnBaB.js.map
@@ -1,2 +0,0 @@
1
- import{u as b,d as L,j as t,cG as P,cH as $,cI as R,B as r,L as d,cJ as z,cK as S,c as _,G as B,ax as T,z as K,n as O,r as E,ar as H,as as G,cw as W,cx as v,cB as F,m as M,c1 as U,cL as V,cM as N,aF as J}from"./index-C2TCKJDP.js";import{A as q}from"./automation-detail-content-BJwRU6qT.js";import{a as Q,b as X}from"./use-automations-lV8PuE8L.js";import"./event-detail-CvaRN1qB.js";import"./events-feed-DwOkLk6A.js";import"./definition-comparison-3zKUSTt8.js";import"./json-diff-CJK-gzCt.js";import"./code-editor-UppEMWpt.js";import"./index-Vcq4gwWv.js";import"./schema-value-CefbtPIY.js";import"./run-initiator-8vdkq-3o.js";import"./list-skeleton-bQAZ0hQp.js";import"./subDays-DwIOMzYC.js";import"./clients-CydgUHrc.js";import"./renderer-ucwCQmBk.js";import"./card-rE4Ctuy6.js";import"./table-1O-ik4_O.js";import"./copy-button-1ALlvZU1.js";import"./device-automation-Dp3faMvp.js";import"./view-param-filters-Bp84PUMd.js";import"./app-bridge-C4nPtae3.js";import"./filter-editors-DQ5V4Cvh.js";import"./home-stream-Bg97PUBJ.js";import"./client-activity-scopes-B7xVaUA-.js";import"./client-rows-B3LULJxW.js";import"./home-toolbar-CpCcHA6z.js";import"./scoped-feed-bar-CapleZvS.js";import"./event-kind-options-fHAIXu24.js";import"./create-automation-form-BhujNbRr.js";import"./entity-options-IUdQ-64R.js";import"./model-selector-BrfaDwIg.js";import"./skill-editor-D_W3QlRz.js";import"./use-mention-search-CA-evCDf.js";import"./proposal-review-shell-BVwOMoq9.js";import"./runs-B_iywKWb.js";import"./runs-list-CJJFRhTl.js";function Y({owner:e,automationId:s,name:a}){const i=b(),n=`/${e}/automations/${encodeURIComponent(String(s))}?view=activity`,{pathname:u,search:p}=L(n);return t.jsx(P,{delayDuration:200,children:t.jsxs($,{children:[t.jsx(R,{asChild:!0,children:t.jsx(r,{asChild:!0,variant:"ghost",size:"icon",className:"size-8 shrink-0 text-muted-foreground hover:text-foreground",children:t.jsxs(d,{to:u,search:p??{},onClick:o=>{!i||o.button!==0||o.metaKey||o.ctrlKey||o.shiftKey||o.altKey||(o.preventDefault(),i.open({href:n,title:a,owner:e}))},children:[t.jsx(z,{className:"h-4 w-4","aria-hidden":"true"}),t.jsx("span",{className:"sr-only",children:"View activity"})]})})}),t.jsxs(S,{children:["View activity for ",a]})]})})}function Z({owner:e,automationId:s,view:a,runId:i}){const n=_(),{orgContext:u,hasOrgContext:p}=B(),{data:o,isLoading:x}=T(`/${e}`,u),{isAuthenticated:w}=K(),{isLoading:g}=O(),C=o?.workspace?.id??"",y=w?!p||x||g:x||g,c=Q(s,void 0,C).data?.automation,h=c?.automation_name??"Automation",f=()=>void n({to:"/$owner",params:{owner:e},search:{section:"automation"}}),m=X(),k=()=>void n({to:"/$owner/automations/$automationId",params:{owner:e,automationId:s},search:{view:"activity",run_id:void 0}}),A=()=>void n({to:"/$owner/automations/$automationId",params:{owner:e,automationId:s},search:{view:"definition",run_id:void 0},replace:!0}),l=!i&&a==="definition",[D,j]=E.useState(!1);return t.jsx(H,{className:"gap-6 pt-2.5 pb-8",children:t.jsxs(G,{className:"flex min-w-0 flex-col gap-4",children:[t.jsx(W,{crumbs:[l||i?t.jsx(d,{to:"/$owner",params:{owner:e},search:{section:"automation"},className:v,children:"Automations"},"automations"):t.jsx(d,{to:"/$owner",params:{owner:e},className:v,children:"Home"},"home")],current:i?"Review change":h}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx("div",{className:"flex min-w-0 items-center gap-2",children:t.jsxs("h1",{className:"flex min-w-0 items-center gap-2 truncate font-display text-xl font-semibold",children:[t.jsx(F,{className:"h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":!0}),y&&!c?t.jsx(M,{className:"h-5 w-40"}):i?"Review change":h]})}),t.jsxs("div",{className:"flex items-center gap-2",children:[l?t.jsx(Y,{owner:e,automationId:s,name:h}):null,l&&c?D?t.jsxs(t.Fragment,{children:[t.jsx(r,{type:"button",variant:"destructive",size:"sm",className:"h-8",disabled:m.isPending,onClick:()=>m.mutate(s,{onSuccess:f}),children:m.isPending?"Deleting...":"Delete"}),t.jsx(r,{type:"button",variant:"ghost",size:"sm",className:"h-8",disabled:m.isPending,onClick:()=>j(!1),children:"Cancel"})]}):t.jsxs(r,{type:"button",variant:"ghost",size:"sm",className:"h-8 gap-1.5 text-muted-foreground hover:text-destructive",onClick:()=>j(!0),children:[t.jsx(U,{className:"h-3.5 w-3.5"}),"Delete"]}):null,i?null:l?t.jsx(r,{type:"button",variant:"ghost",size:"sm",className:"h-8 text-muted-foreground hover:text-foreground",onClick:k,children:"Done"}):t.jsx(r,{asChild:!0,variant:"ghost",size:"sm",className:"h-8 gap-1.5",children:t.jsxs(d,{to:"/$owner/automations/$automationId",params:{owner:e,automationId:s},search:{view:"definition",run_id:void 0},children:[t.jsx(V,{className:"h-3.5 w-3.5"}),"Edit"]})})]})]}),t.jsx(q,{owner:e,agentId:c?.managed_agent_id??null,automationId:s,view:a,runId:i,onDone:i?f:A})]})})}function Tt(){const{owner:e,automationId:s}=N.useParams(),a=N.useSearch();return t.jsx(J,{owner:e,children:()=>t.jsx(Z,{owner:e,automationId:s,view:a.view,runId:a.run_id})})}export{Tt as component};
2
- //# sourceMappingURL=_automationId-Bnw_CnT_.js.map
@@ -1,2 +0,0 @@
1
- import{jh as P,j as e,aF as Q,c as Y,aM as Z,ct as K,d5 as ee,dA as ne,B as M,L as c,dC as te,aN as se,j0 as oe,j1 as ae,a_ as ie,cx as u,iX as re,b9 as ce,it as de,cu as R,cw as y,aU as me,P as pe,S as le}from"./index-C2TCKJDP.js";import{f as ue,C as he,a as xe,F as je,b as fe,c as ve,A as Ce,d as De}from"./connection-feed-detail-CJYqryAV.js";import{c as Ne,C as $e}from"./device-pin-tombstone-BFPbTM_o.js";import{C as b}from"./connector-page-shell-C23dWdKz.js";import{a as ge}from"./connector-provenance-CW4CXtCz.js";import{D as be}from"./detail-page-skeleton-BmxqqIsH.js";import{S as T,g as W}from"./status-variants-BxHtpMOj.js";import"./scoped-feed-bar-CapleZvS.js";import"./event-kind-options-fHAIXu24.js";import"./filter-editors-DQ5V4Cvh.js";import"./subDays-DwIOMzYC.js";import"./home-toolbar-CpCcHA6z.js";import"./events-feed-DwOkLk6A.js";import"./definition-comparison-3zKUSTt8.js";import"./json-diff-CJK-gzCt.js";import"./code-editor-UppEMWpt.js";import"./index-Vcq4gwWv.js";import"./schema-value-CefbtPIY.js";import"./run-initiator-8vdkq-3o.js";import"./list-skeleton-bQAZ0hQp.js";import"./use-automations-lV8PuE8L.js";import"./clients-CydgUHrc.js";import"./renderer-ucwCQmBk.js";import"./card-rE4Ctuy6.js";import"./table-1O-ik4_O.js";import"./copy-button-1ALlvZU1.js";import"./device-automation-Dp3faMvp.js";import"./entity-options-IUdQ-64R.js";import"./runs-list-CJJFRhTl.js";import"./feed-event-kinds-BYuZCoU4.js";import"./runs-B_iywKWb.js";function sn(){const{owner:l,connectorKey:n,connectionId:f}=P.useParams(),{addFeed:o,feedId:i,settings:x,auth_result:a}=P.useSearch();return e.jsx(Q,{owner:l,children:d=>e.jsx(we,{organizationId:d.organizationId,ownerSlug:d.ownerSlug,isWorkspaceLoading:d.isWorkspaceLoading,connectorKey:n,connectionId:Number(f),showAddFeed:o===!0,feedId:i,settingsView:x===!0,authResult:a})})}function we({organizationId:l,ownerSlug:n,isWorkspaceLoading:f,connectorKey:o,connectionId:i,showAddFeed:x,feedId:a,settingsView:d,authResult:w}){const H=Y(),{data:O=[]}=Z(),{data:S=[],isLoading:U,isError:v,refetch:V}=K(l??"",{connectorKey:o,connectionIds:[i]}),{data:F=[]}=ee(l??""),{data:z=[],isLoading:G,isError:X,refetch:q}=ne(a?i:null,{eventCounts:!0}),t=S.find(r=>r.id===i),s=F.find(r=>r.key===o),m=a?z.find(r=>r.id===a):null;if(f||U||a&&G||!l)return e.jsx(be,{label:a?"Loading feed":"Loading connection"});if(v||a&&X)return e.jsxs("div",{role:"alert",className:"space-y-2",children:[e.jsxs("p",{children:["Could not load this ",v?"connection":"feed","."]}),e.jsx(M,{variant:"outline",size:"sm",onClick:()=>void(v?V():q()),children:"Retry"})]});if(!t)return e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Connection not found."}),e.jsxs(c,{to:"/$owner/connectors/$connectorKey",params:{owner:n,connectorKey:o},className:"mt-2 inline-block text-sm text-primary hover:underline",children:["Back to ",s?.name??o]})]});const C=te({...t,connector_name:t.connector_name??s?.name??null}),D=!a&&!x,J=()=>void H({to:"/$owner/connectors/$connectorKey/$connectionId",params:{owner:n,connectorKey:o,connectionId:String(i)},search:{},replace:!0});let h,j=C,_,k,N;a?m?(j=ue(m,s),m.store==="channel_messages"?(h=e.jsx(xe,{feed:m,hideHeader:!0}),N="chat channel"):(_=e.jsx(je,{feed:m,ownerSlug:n}),k=e.jsx(fe,{feed:m}),h=e.jsx(ve,{feed:m,connectorDef:s,ownerSlug:n}))):(h=e.jsx("p",{className:"text-sm text-muted-foreground",children:"Feed not found."}),j="Feed"):x&&(h=e.jsx(Ce,{onClose:J,organizationId:l,connections:[t],connectorDefinitions:F}),j="Add feed",N=De);const p=O.find(r=>r.id===t.device_worker_id&&se(r,n)),L=p?oe(p):void 0,$=L?ae(n,L,ie()):void 0,I=[e.jsx(c,{to:"/$owner/connectors",params:{owner:n},className:u,children:"Connectors"},"connectors"),...p&&$?[e.jsx(c,{to:"/$owner/connectors/app/$appId",params:{owner:n,appId:$.id},className:u,children:$.name},"app"),e.jsx(c,{to:"/$owner/connectors/device/$deviceId",params:{owner:n,deviceId:p.id},className:u,children:re(p)},"device")]:[e.jsx(c,{to:"/$owner/connectors/$connectorKey",params:{owner:n,connectorKey:o},search:{},className:u,children:s?.name??o},"connector")]];D||I.push(e.jsx(c,{to:"/$owner/connectors/$connectorKey/$connectionId",params:{owner:n,connectorKey:o,connectionId:String(i)},search:{},className:u,children:C},"connection"));const g=D?Ne(t):null,A=N??g??void 0,E=s?e.jsx(ce,{icon:s.icon,name:s.name,faviconDomain:s.favicon_domain??de(s.auth_schema)}):null,B=e.jsx(R,{breadcrumb:e.jsx(y,{crumbs:I}),icon:E,title:j,status:_??e.jsx(T,{status:W(t.status),showDot:!0,children:t.status}),meta:k,caption:A,captionTone:g?"error":"muted"});return D?p&&s&&me(s)?e.jsx(pe,{to:"/$owner/connectors/device/$deviceId",params:{owner:n,deviceId:p.id},search:{connection:t.id,settings:d||void 0},hash:`connection-${t.id}`,replace:!0}):!d&&!w?e.jsx(b,{header:e.jsx(R,{breadcrumb:e.jsx(y,{crumbs:[e.jsx(c,{to:"/$owner",params:{owner:n},className:u,children:"Home"},"home")]}),icon:E,title:C,status:e.jsx(T,{status:W(t.status),showDot:!0,children:t.status}),meta:e.jsx(M,{asChild:!0,variant:"ghost",size:"sm",className:"h-8 gap-1.5",children:e.jsxs(c,{to:"/$owner/connectors/$connectorKey/$connectionId",params:{owner:n,connectorKey:o,connectionId:String(i)},search:{settings:!0},children:[e.jsx(le,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Settings"]})}),caption:A,captionTone:g?"error":"muted"}),children:e.jsx(he,{connection:t,ownerSlug:n})}):e.jsxs(b,{header:B,children:[e.jsx(ge,{connectorDef:s,connectorKey:o,ownerSlug:n,deviceWorkerId:t.device_worker_id,deviceLabel:t.device_label}),e.jsx($e,{embedded:!0,connection:t,connectorDef:s,ownerSlug:n,openSettings:d,authResult:w},t.id)]}):e.jsx(b,{header:B,children:e.jsx("div",{className:"mt-0",children:h})})}export{sn as component};
2
- //# sourceMappingURL=_connectorKey._connectionId-D7Z8DQ-B.js.map