@lobu/runtime-server 24.4.0 → 24.6.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 (305) hide show
  1. package/dist/catalogs/connectors.json +342 -4
  2. package/dist/catalogs/skills.json +2 -2
  3. package/dist/component.json +1 -1
  4. package/dist/connectors/linkedin-identity.ts +43 -0
  5. package/dist/connectors/linkedin.ts +154 -3
  6. package/dist/connectors/postgres.ts +77 -48
  7. package/dist/connectors/x-like-follow.ts +329 -0
  8. package/dist/connectors/x.ts +709 -80
  9. package/dist/dependencies.bun.lock +104 -135
  10. package/dist/owletto/dist/assets/_-DT3E3BmS.js +3 -0
  11. package/dist/owletto/dist/assets/_-c1xy7bLu.js +2 -0
  12. package/dist/owletto/dist/assets/_agentId-CTfoi0-7.js +2 -0
  13. package/dist/owletto/dist/assets/_agentId-DV8utajn.js +2 -0
  14. package/dist/owletto/dist/assets/_automationId-DvP3qyYL.js +2 -0
  15. package/dist/owletto/dist/assets/_connectorKey._connectionId-CL5SivCn.js +2 -0
  16. package/dist/owletto/dist/assets/_connectorKey.index-tnMwC67b.js +2 -0
  17. package/dist/owletto/dist/assets/_conversationId-DXN_8m88.js +2 -0
  18. package/dist/owletto/dist/assets/_eventId-SdpFT7jB.js +2 -0
  19. package/dist/owletto/dist/assets/_name-CM1AMywz.js +2 -0
  20. package/dist/owletto/dist/assets/_owner-CaGsXXBW.js +3 -0
  21. package/dist/owletto/dist/assets/_shape-DGAkETDp.js +2 -0
  22. package/dist/owletto/dist/assets/_skillKey-Dd4ZHPY8.js +2 -0
  23. package/dist/owletto/dist/assets/_slug-cRvJQtNo.js +2 -0
  24. package/dist/owletto/dist/assets/_view-B5I7mmkl.js +2 -0
  25. package/dist/owletto/dist/assets/_viewKey-Bwn0dyLo.js +2 -0
  26. package/dist/owletto/dist/assets/_viewKey-YjSYD0wc.js +2 -0
  27. package/dist/owletto/dist/assets/accept-invitation-CQZQ0wwC.js +2 -0
  28. package/dist/owletto/dist/assets/activity-route-view-CZykJXQp.js +2 -0
  29. package/dist/owletto/dist/assets/{agent-card-controls-99mG6H5k.js → agent-card-controls-DuQJhtqp.js} +2 -2
  30. package/dist/owletto/dist/assets/{agent-client-setup-list-kMmqQSrf.js → agent-client-setup-list-CpUTAjXf.js} +2 -2
  31. package/dist/owletto/dist/assets/agent-connect-pages-Br_ycC0z.js +2 -0
  32. package/dist/owletto/dist/assets/agent-editor-form-BXQBFHSv.js +2 -0
  33. package/dist/owletto/dist/assets/agent-guardrails-route-CN7vpC0X.js +2 -0
  34. package/dist/owletto/dist/assets/agent-list-row-BnP6r4pm.js +2 -0
  35. package/dist/owletto/dist/assets/{agent-loading-shells-Dnmb6W5Y.js → agent-loading-shells-_18OREnx.js} +2 -2
  36. package/dist/owletto/dist/assets/{agent-permissions-matrix-CbhXlbgY.js → agent-permissions-matrix-DSjidWHL.js} +2 -2
  37. package/dist/owletto/dist/assets/{agent-skill-context-V__2i6Vl.js → agent-skill-context-1DBn7Xc_.js} +2 -2
  38. package/dist/owletto/dist/assets/agent-skills-route-d5jh3oBR.js +2 -0
  39. package/dist/owletto/dist/assets/agent-tab-intro-DKrC3SQt.js +2 -0
  40. package/dist/owletto/dist/assets/agent-thread-FyEO-y44.js +6 -0
  41. package/dist/owletto/dist/assets/agent-thread-storage-U6htL3ad.js +2 -0
  42. package/dist/owletto/dist/assets/agents-kXojozTU.js +2 -0
  43. package/dist/owletto/dist/assets/agents-workbench-CDpJmUVN.js +2 -0
  44. package/dist/owletto/dist/assets/app._appId-DwNeXRJp.js +2 -0
  45. package/dist/owletto/dist/assets/assist-composer-Mn9EfX4X.js +2 -0
  46. package/dist/owletto/dist/assets/automation-detail-content-Bs3vwAPd.js +2 -0
  47. package/dist/owletto/dist/assets/automation-row-B5Q1B10y.js +2 -0
  48. package/dist/owletto/dist/assets/automation-source-list-Dhucq1sI.js +2 -0
  49. package/dist/owletto/dist/assets/automations-kXojozTU.js +2 -0
  50. package/dist/owletto/dist/assets/{callback-B-CAz-bK.js → callback-9xSHyA12.js} +2 -2
  51. package/dist/owletto/dist/assets/{card-SFtxv9f2.js → card-g4yxo4Hr.js} +2 -2
  52. package/dist/owletto/dist/assets/change-summary-DeuXQEpb.js +2 -0
  53. package/dist/owletto/dist/assets/{claim-DrxIRWKt.js → claim-B98IhDra.js} +2 -2
  54. package/dist/owletto/dist/assets/{client-activity-scopes-boZOHuPW.js → client-activity-scopes-BD2HBo-_.js} +2 -2
  55. package/dist/owletto/dist/assets/{client-rows-BJ2PxM4J.js → client-rows-x_CxeWkP.js} +2 -2
  56. package/dist/owletto/dist/assets/{clients-C7Lnuc3S.js → clients-Cmp0LmOp.js} +2 -2
  57. package/dist/owletto/dist/assets/connect-menu-CezOH3s7.js +2 -0
  58. package/dist/owletto/dist/assets/connect-zUot_0kG.js +2 -0
  59. package/dist/owletto/dist/assets/connect._clientId-nsGxe6yO.js +2 -0
  60. package/dist/owletto/dist/assets/connected._clientId-DnclRRXk.js +2 -0
  61. package/dist/owletto/dist/assets/connected._clientId.activity-CDB8atTX.js +2 -0
  62. package/dist/owletto/dist/assets/connected._clientId.index-DBNP2mZo.js +2 -0
  63. package/dist/owletto/dist/assets/connection-B6fM2KHN.js +2 -0
  64. package/dist/owletto/dist/assets/{connection-feed-detail-D7pnWaFB.js → connection-feed-detail-Ckq-qEbD.js} +2 -2
  65. package/dist/owletto/dist/assets/{connections-browser-DDJQh8Na.js → connections-browser-BXsJqieG.js} +2 -2
  66. package/dist/owletto/dist/assets/{connector-boxes-DDX7Ebc4.js → connector-boxes-CbqSFeVm.js} +2 -2
  67. package/dist/owletto/dist/assets/connector-page-shell-Di6XzkVo.js +2 -0
  68. package/dist/owletto/dist/assets/connector-provenance-BrnasBW4.js +2 -0
  69. package/dist/owletto/dist/assets/{connector-scope-lists-BibdzKl1.js → connector-scope-lists-dQnZARCD.js} +2 -2
  70. package/dist/owletto/dist/assets/connectors-DnOUxX_U.js +2 -0
  71. package/dist/owletto/dist/assets/consent-Byli4yMs.js +2 -0
  72. package/dist/owletto/dist/assets/copy-button-Ddf7lBjZ.js +2 -0
  73. package/dist/owletto/dist/assets/{core.esm-CHnfRiEM.js → core.esm-BsXtvNoI.js} +3 -3
  74. package/dist/owletto/dist/assets/create-B34eskZ_.js +2 -0
  75. package/dist/owletto/dist/assets/create-DLB9sXgU.js +2 -0
  76. package/dist/owletto/dist/assets/create-YdAnh3ml.js +2 -0
  77. package/dist/owletto/dist/assets/create-automation-form-C9PMX7N8.js +3 -0
  78. package/dist/owletto/dist/assets/create._connectorKey-Bz4OYRiC.js +2 -0
  79. package/dist/owletto/dist/assets/definition-comparison-B5WgZILB.js +2 -0
  80. package/dist/owletto/dist/assets/device-DdCoCj-Q.js +2 -0
  81. package/dist/owletto/dist/assets/device-pin-tombstone-B06J7Af1.js +2 -0
  82. package/dist/owletto/dist/assets/device._deviceId-Bh9S4bFp.js +2 -0
  83. package/dist/owletto/dist/assets/dynamic-schema-form-qWSRtOAv.js +2 -0
  84. package/dist/owletto/dist/assets/entity-options-BkU_En_f.js +2 -0
  85. package/dist/owletto/dist/assets/entity-page-BPFDHY8q.js +2 -0
  86. package/dist/owletto/dist/assets/entity-pages-DxgbjLMt.js +2 -0
  87. package/dist/owletto/dist/assets/entity-type-page-D0ghgRgq.js +2 -0
  88. package/dist/owletto/dist/assets/event-card-CjA_dLzq.js +2 -0
  89. package/dist/owletto/dist/assets/event-detail-CmC-DVrK.js +2 -0
  90. package/dist/owletto/dist/assets/{events-feed-BysC9HgU.js → events-feed-CGzA1w3R.js} +2 -2
  91. package/dist/owletto/dist/assets/filter-bar-CQ_oE7a9.js +2 -0
  92. package/dist/owletto/dist/assets/{full-page-spinner-BMiXl54z.js → full-page-spinner-B5xXnKtV.js} +2 -2
  93. package/dist/owletto/dist/assets/guardrails-DkXatmea.js +2 -0
  94. package/dist/owletto/dist/assets/identity-BwJy3ixB.js +2 -0
  95. package/dist/owletto/dist/assets/index-35ehGReZ.js +2 -0
  96. package/dist/owletto/dist/assets/index-B9hYiwBw.js +2 -0
  97. package/dist/owletto/dist/assets/index-BDl1_w6U.js +53 -0
  98. package/dist/owletto/dist/assets/{index-C-WaHj1Y.js → index-BdNR51Ua.js} +2 -2
  99. package/dist/owletto/dist/assets/index-BjcZVe7n.js +7899 -0
  100. package/dist/owletto/dist/assets/{index-B4wXJwQY.js → index-BqAVebvY.js} +2 -2
  101. package/dist/owletto/dist/assets/index-BvK1fS1J.js +2 -0
  102. package/dist/owletto/dist/assets/index-CNEpTkgw.css +1 -0
  103. package/dist/owletto/dist/assets/index-CRc73k1t.js +2 -0
  104. package/dist/owletto/dist/assets/index-CYGaSD3y.js +2 -0
  105. package/dist/owletto/dist/assets/index-CfZGe-zn.js +2 -0
  106. package/dist/owletto/dist/assets/{index-CzoK57xp.js → index-CkiyxW4w.js} +2 -2
  107. package/dist/owletto/dist/assets/index-CzLDNB2E.js +2 -0
  108. package/dist/owletto/dist/assets/index-D-o5iOVd.js +2 -0
  109. package/dist/owletto/dist/assets/index-DjYVV1Ml.js +2 -0
  110. package/dist/owletto/dist/assets/{index-D4-uel59.js → index-TkPy_P_u.js} +2 -2
  111. package/dist/owletto/dist/assets/index-Vcq4gwWv.js +2 -0
  112. package/dist/owletto/dist/assets/index-VyAX-asP.js +2 -0
  113. package/dist/owletto/dist/assets/json-diff-DtZtra_g.js +28 -0
  114. package/dist/owletto/dist/assets/{list-skeleton-Bp4HNgJ9.js → list-skeleton-CIHWCi2a.js} +2 -2
  115. package/dist/owletto/dist/assets/login-TWR0vF4_.js +2 -0
  116. package/dist/owletto/dist/assets/{logout-DxmfsVKD.js → logout-BA5kojS0.js} +2 -2
  117. package/dist/owletto/dist/assets/manage-gear-C-0BAMbC.js +2 -0
  118. package/dist/owletto/dist/assets/{member-scope-gate-vp3FihBD.js → member-scope-gate-BQiRAqtx.js} +2 -2
  119. package/dist/owletto/dist/assets/memory-browse-page-Ba32-vVL.js +74 -0
  120. package/dist/owletto/dist/assets/model-C2q7WDcS.js +2 -0
  121. package/dist/owletto/dist/assets/model-selector-B2cjCn0V.js +2 -0
  122. package/dist/owletto/dist/assets/models-CZkH5gtj.js +2 -0
  123. package/dist/owletto/dist/assets/nav-pill-Bam6s3jj.js +2 -0
  124. package/dist/owletto/dist/assets/new-BJst6K0b.js +2 -0
  125. package/dist/owletto/dist/assets/{new-CvX8_gIb.js → new-Dc5Bbotb.js} +2 -2
  126. package/dist/owletto/dist/assets/new-DgbivfDe.js +2 -0
  127. package/dist/owletto/dist/assets/organization-B9U1L-56.js +2 -0
  128. package/dist/owletto/dist/assets/peek-pane-content-Cq8P38s3.js +2 -0
  129. package/dist/owletto/dist/assets/pending-seed-BP3xHM2d.js +2 -0
  130. package/dist/owletto/dist/assets/permissions-BVlbeY4u.js +2 -0
  131. package/dist/owletto/dist/assets/proposal-review-shell-BED-DO9C.js +2 -0
  132. package/dist/owletto/dist/assets/public-shell-ready-Diq15_QW.js +2 -0
  133. package/dist/owletto/dist/assets/record-activity-CTLwq8s1.js +2 -0
  134. package/dist/owletto/dist/assets/{record-session-CWXnCVln.js → record-session-DOFgdd43.js} +2 -2
  135. package/dist/owletto/dist/assets/renderer-CHPS-1vD.js +96 -0
  136. package/dist/owletto/dist/assets/{reset-password-CFUzxH7m.js → reset-password-BmNM-apc.js} +2 -2
  137. package/dist/owletto/dist/assets/run-activity-link-Dh1YyCfk.js +2 -0
  138. package/dist/owletto/dist/assets/run-initiator-CCxNv0rK.js +2 -0
  139. package/dist/owletto/dist/assets/{runs-BPtQBTRN.js → runs-BntGAKQG.js} +2 -2
  140. package/dist/owletto/dist/assets/runs-panel-BwTVaRsE.js +2 -0
  141. package/dist/owletto/dist/assets/runs-table-CYS1jDdL.js +2 -0
  142. package/dist/owletto/dist/assets/{schema-type-editor-panel-CAhOB648.js → schema-type-editor-panel-v3nR2Oa2.js} +2 -2
  143. package/dist/owletto/dist/assets/schema-value-BFb7jCBo.js +3 -0
  144. package/dist/owletto/dist/assets/settings-DBgT60nY.js +2 -0
  145. package/dist/owletto/dist/assets/settings-DubSpJfg.js +2 -0
  146. package/dist/owletto/dist/assets/skills-DDoeRGhJ.js +2 -0
  147. package/dist/owletto/dist/assets/{source-record-panels-Bh5F4C5K.js → source-record-panels-m8gECt82.js} +2 -2
  148. package/dist/owletto/dist/assets/{status-dot-D3FoDRcc.js → status-dot-BnQPFrcU.js} +2 -2
  149. package/dist/owletto/dist/assets/{table-DFcJRNk7.js → table-DALHuXPE.js} +2 -2
  150. package/dist/owletto/dist/assets/{use-automations-BHoV0dLs.js → use-automations-D9hKpufo.js} +2 -2
  151. package/dist/owletto/dist/assets/use-login-redirect-ciwfc-7A.js +2 -0
  152. package/dist/owletto/dist/assets/{use-mention-search-C3rWLuKm.js → use-mention-search-CJGCatFS.js} +3 -3
  153. package/dist/owletto/dist/assets/use-scroll-sentinel-BWCrmNIB.js +2 -0
  154. package/dist/owletto/dist/assets/view-param-filters-CDvwie_f.js +2 -0
  155. package/dist/owletto/dist/assets/views-access-required-CZ1fvAks.js +2 -0
  156. package/dist/owletto/dist/index.html +2 -2
  157. package/dist/server-main.bundle.mjs +56428 -52475
  158. package/dist/server.bundle.mjs +5 -5
  159. package/dist/verify.mjs +1 -1
  160. package/npm-shrinkwrap.json +277 -311
  161. package/package.json +3 -4
  162. package/vendor/connector-sdk/dist/reaction-client-types.d.ts +8 -2
  163. package/vendor/connector-sdk/dist/reaction-sdk.d.ts +5 -1
  164. package/vendor/connector-sdk/package.json +1 -1
  165. package/vendor/core/dist/contracts/agent-settings.d.ts +61 -6
  166. package/vendor/core/dist/contracts/agent-settings.js +10 -7
  167. package/vendor/core/dist/contracts/tools/manage-agents.d.ts +473 -98
  168. package/vendor/core/dist/contracts/tools/manage-agents.js +111 -2
  169. package/vendor/core/dist/contracts/tools/manage-automations.d.ts +21 -18
  170. package/vendor/core/dist/contracts/tools/manage-automations.js +15 -15
  171. package/vendor/core/dist/contracts/tools/manage-entity-schema.js +2 -2
  172. package/vendor/core/dist/contracts/tools/manage-inference-providers.d.ts +445 -0
  173. package/vendor/core/dist/contracts/tools/manage-inference-providers.js +133 -0
  174. package/vendor/core/dist/contracts/tools/manage-views.d.ts +4 -4
  175. package/vendor/core/dist/contracts/tools/manage-views.js +5 -3
  176. package/vendor/core/dist/contracts/tools/view-host.d.ts +7 -0
  177. package/vendor/core/dist/contracts/tools/view-host.js +28 -0
  178. package/vendor/core/dist/contracts/tools/view-runtime.d.ts +2 -4
  179. package/vendor/core/dist/contracts/tools/view-runtime.js +19 -7
  180. package/vendor/core/dist/contracts/worker/device-automation.js +4 -2
  181. package/vendor/core/dist/error-report.d.ts +73 -0
  182. package/vendor/core/dist/error-report.js +346 -0
  183. package/vendor/core/dist/index.d.ts +3 -1
  184. package/vendor/core/dist/index.js +4 -1
  185. package/vendor/core/dist/logger.js +7 -4
  186. package/vendor/core/dist/otel-fetch.d.ts +19 -0
  187. package/vendor/core/dist/otel-fetch.js +96 -0
  188. package/vendor/core/dist/otel.d.ts +9 -0
  189. package/vendor/core/dist/otel.js +28 -7
  190. package/vendor/core/dist/reserved.d.ts +1 -1
  191. package/vendor/core/dist/reserved.js +6 -4
  192. package/vendor/core/dist/tool-result.d.ts +8 -0
  193. package/vendor/core/dist/tool-result.js +61 -0
  194. package/vendor/core/dist/utils/diagnostic-scrubber.js +1 -1
  195. package/vendor/core/dist/worker/auth.js +4 -0
  196. package/vendor/core/package.json +16 -1
  197. package/vendor/views/dist/api.d.ts +9 -4
  198. package/vendor/views/dist/api.js +33 -2
  199. package/vendor/views/dist/bridge.d.ts +8 -0
  200. package/vendor/views/dist/bridge.js +12 -2
  201. package/vendor/views/dist/components.d.ts +4 -2
  202. package/vendor/views/dist/components.js +29 -14
  203. package/vendor/views/dist/index.d.ts +1 -1
  204. package/vendor/views/dist/index.js +1 -1
  205. package/vendor/views/dist/native.d.ts +327 -0
  206. package/vendor/views/dist/native.js +57 -0
  207. package/vendor/views/package.json +1 -1
  208. package/dist/owletto/dist/assets/_-DIK0ae_S.js +0 -2
  209. package/dist/owletto/dist/assets/_-gTbcArpS.js +0 -3
  210. package/dist/owletto/dist/assets/_agentId-DOmcJZfk.js +0 -2
  211. package/dist/owletto/dist/assets/_agentId-DW6wRCVC.js +0 -2
  212. package/dist/owletto/dist/assets/_automationId-B9IcDYBu.js +0 -2
  213. package/dist/owletto/dist/assets/_connectorKey._connectionId-C6PmMPTA.js +0 -2
  214. package/dist/owletto/dist/assets/_connectorKey.index-BrJ8Pzze.js +0 -2
  215. package/dist/owletto/dist/assets/_conversationId-BpJAeYYW.js +0 -2
  216. package/dist/owletto/dist/assets/_eventId-DarQJo0G.js +0 -2
  217. package/dist/owletto/dist/assets/_name-DtmNTcUm.js +0 -2
  218. package/dist/owletto/dist/assets/_owner-Db8at3hk.js +0 -3
  219. package/dist/owletto/dist/assets/_shape-6iFA8A86.js +0 -2
  220. package/dist/owletto/dist/assets/_skillKey-CXkHn3Nl.js +0 -2
  221. package/dist/owletto/dist/assets/_slug-DBOuBLoX.js +0 -2
  222. package/dist/owletto/dist/assets/_viewKey-DC27aIN9.js +0 -2
  223. package/dist/owletto/dist/assets/_viewKey-DuYDieln.js +0 -2
  224. package/dist/owletto/dist/assets/accept-invitation-BbDCVvur.js +0 -2
  225. package/dist/owletto/dist/assets/activity-route-view-V4ftmSN7.js +0 -2
  226. package/dist/owletto/dist/assets/agent-connect-pages-B-NPTFs6.js +0 -2
  227. package/dist/owletto/dist/assets/agent-editor-form-DfMTSIvj.js +0 -2
  228. package/dist/owletto/dist/assets/agent-guardrails-route-BvGgfd-h.js +0 -2
  229. package/dist/owletto/dist/assets/agent-skills-route-DFXr_bHp.js +0 -2
  230. package/dist/owletto/dist/assets/agent-subpage-shell-DWzljvFb.js +0 -2
  231. package/dist/owletto/dist/assets/agent-thread-DQIr20H-.js +0 -6
  232. package/dist/owletto/dist/assets/agents-CLbeiqTR.js +0 -2
  233. package/dist/owletto/dist/assets/agents-workbench-C8bTa2rv.js +0 -2
  234. package/dist/owletto/dist/assets/app._appId-Bsq40nak.js +0 -2
  235. package/dist/owletto/dist/assets/automation-detail-content-C9Cgr5Zj.js +0 -2
  236. package/dist/owletto/dist/assets/automations-CLbeiqTR.js +0 -2
  237. package/dist/owletto/dist/assets/calendar-DMq3Dtqy.js +0 -2
  238. package/dist/owletto/dist/assets/code-editor-rX0t1g5C.js +0 -16
  239. package/dist/owletto/dist/assets/connect-BcwgytDV.js +0 -2
  240. package/dist/owletto/dist/assets/connect-menu-BF-AlunU.js +0 -2
  241. package/dist/owletto/dist/assets/connect._clientId-sDypRDeN.js +0 -2
  242. package/dist/owletto/dist/assets/connected._clientId-C9OkW1tv.js +0 -2
  243. package/dist/owletto/dist/assets/connected._clientId.activity-Dc6HYr55.js +0 -2
  244. package/dist/owletto/dist/assets/connected._clientId.index-C6qbqgwF.js +0 -2
  245. package/dist/owletto/dist/assets/connection-88YzIBK9.js +0 -2
  246. package/dist/owletto/dist/assets/connector-provenance-Th8ymGec.js +0 -2
  247. package/dist/owletto/dist/assets/connectors-BqwgLUUK.js +0 -2
  248. package/dist/owletto/dist/assets/consent-BR5U7dwb.js +0 -2
  249. package/dist/owletto/dist/assets/copy-button-2swYh4jb.js +0 -2
  250. package/dist/owletto/dist/assets/create-BsPVnRpG.js +0 -2
  251. package/dist/owletto/dist/assets/create-CVPYVOR5.js +0 -2
  252. package/dist/owletto/dist/assets/create-QFjmhOEU.js +0 -2
  253. package/dist/owletto/dist/assets/create-automation-form-DmCOFbRT.js +0 -3
  254. package/dist/owletto/dist/assets/create._connectorKey-DLDDVtLS.js +0 -2
  255. package/dist/owletto/dist/assets/cronstrue-CKwjNYgj.js +0 -2
  256. package/dist/owletto/dist/assets/device-CKup7kvB.js +0 -2
  257. package/dist/owletto/dist/assets/device-pin-tombstone-xGhCTU5_.js +0 -2
  258. package/dist/owletto/dist/assets/device._deviceId-B1H_ivDT.js +0 -2
  259. package/dist/owletto/dist/assets/entity-avatar-HloBoalJ.js +0 -2
  260. package/dist/owletto/dist/assets/entity-options-BSW_EG0W.js +0 -2
  261. package/dist/owletto/dist/assets/entity-page-D-WDWrAe.js +0 -2
  262. package/dist/owletto/dist/assets/entity-type-page-BCBdFndu.js +0 -2
  263. package/dist/owletto/dist/assets/event-card-Mcxv56DG.js +0 -2
  264. package/dist/owletto/dist/assets/event-detail-DXifj49J.js +0 -2
  265. package/dist/owletto/dist/assets/filter-bar-BQm-ubB1.js +0 -2
  266. package/dist/owletto/dist/assets/guardrails-D7W80sJO.js +0 -2
  267. package/dist/owletto/dist/assets/identity-N0cAO9BR.js +0 -2
  268. package/dist/owletto/dist/assets/index-4gCDI7m4.js +0 -7950
  269. package/dist/owletto/dist/assets/index-BNaI5GpS.js +0 -2
  270. package/dist/owletto/dist/assets/index-BUUrHuJJ.js +0 -2
  271. package/dist/owletto/dist/assets/index-BqrvJmLh.js +0 -2
  272. package/dist/owletto/dist/assets/index-CnvQEA5V.js +0 -2
  273. package/dist/owletto/dist/assets/index-Cq7P2c_E.js +0 -2
  274. package/dist/owletto/dist/assets/index-D3omC3Us.js +0 -2
  275. package/dist/owletto/dist/assets/index-DDGdlQrt.css +0 -1
  276. package/dist/owletto/dist/assets/index-DFEW7hMg.js +0 -2
  277. package/dist/owletto/dist/assets/index-DVV-WWuT.js +0 -2
  278. package/dist/owletto/dist/assets/index-DduQ_e9q.js +0 -2
  279. package/dist/owletto/dist/assets/index-DutlI1d-.js +0 -2
  280. package/dist/owletto/dist/assets/index-wHFQv1aT.js +0 -12
  281. package/dist/owletto/dist/assets/json-diff-E5D-NGYT.js +0 -4
  282. package/dist/owletto/dist/assets/login-7F48UJGx.js +0 -2
  283. package/dist/owletto/dist/assets/memory-browse-page-CfDmjhDl.js +0 -74
  284. package/dist/owletto/dist/assets/model-Dn40BUzs.js +0 -2
  285. package/dist/owletto/dist/assets/model-selector-88PJnyTq.js +0 -2
  286. package/dist/owletto/dist/assets/models-BBK_n2RP.js +0 -2
  287. package/dist/owletto/dist/assets/new-4ruWHLR5.js +0 -2
  288. package/dist/owletto/dist/assets/new-gMD1PHTL.js +0 -2
  289. package/dist/owletto/dist/assets/oauth-workspace-access-D9BNmyMY.js +0 -2
  290. package/dist/owletto/dist/assets/organization-BHcp5Pzg.js +0 -2
  291. package/dist/owletto/dist/assets/peek-pane-content-0sa10jER.js +0 -2
  292. package/dist/owletto/dist/assets/permissions-hhxosugv.js +0 -2
  293. package/dist/owletto/dist/assets/proposal-review-shell-B4CSiyLB.js +0 -2
  294. package/dist/owletto/dist/assets/public-shell-ready-CsenJeXa.js +0 -2
  295. package/dist/owletto/dist/assets/record-activity-D7bRaMk2.js +0 -2
  296. package/dist/owletto/dist/assets/renderer-7EGgTVX0.js +0 -97
  297. package/dist/owletto/dist/assets/runs-panel-Bj63_hb9.js +0 -2
  298. package/dist/owletto/dist/assets/settings-Dg6nxKyw.js +0 -2
  299. package/dist/owletto/dist/assets/settings-KJJ6WihO.js +0 -2
  300. package/dist/owletto/dist/assets/skills-ayt06_o2.js +0 -2
  301. package/dist/owletto/dist/assets/use-scroll-sentinel-Ct-jt7O0.js +0 -2
  302. package/dist/owletto/dist/assets/view-param-filters-mKoqDsaD.js +0 -2
  303. package/dist/owletto/dist/assets/views-access-required-DHrDO333.js +0 -2
  304. /package/vendor/@better-auth-kysely-adapter/{.bun-tag-abf95749a412716 → .bun-tag-654b3a002b271269} +0 -0
  305. /package/vendor/postgres/{.bun-tag-22d644c2873790db → .bun-tag-c81dacd34e959a7a} +0 -0
@@ -22,7 +22,10 @@ export function Card({ title, description, actions, children }) {
22
22
  justifyContent: "space-between",
23
23
  gap: 12,
24
24
  marginBottom: description || children ? 4 : 0,
25
- }, children: [title && (_jsx("h3", { style: { margin: 0, fontSize: 14, fontWeight: 600 }, children: title })), actions] })), description && (_jsx("p", { style: { margin: "0 0 8px", color: "var(--muted, #6b7280)" }, children: description })), children] }));
25
+ }, children: [title && (_jsx("h3", { style: { margin: 0, fontSize: 14, fontWeight: 600 }, children: title })), actions] })), description && (_jsx("p", { style: {
26
+ margin: "0 0 8px",
27
+ color: "var(--color-text-secondary, #6b7280)",
28
+ }, children: description })), children] }));
26
29
  }
27
30
  const CELL = {
28
31
  padding: "6px 8px",
@@ -42,7 +45,10 @@ export function DataTable({ columns, rows, keyOf, loading = false, error = null,
42
45
  const pageCount = pagination && pagination.total != null
43
46
  ? Math.max(1, Math.ceil(pagination.total / pagination.pageSize))
44
47
  : null;
45
- return (_jsxs("div", { style: INK, children: [caption && (_jsx("p", { id: labelId, style: { margin: "0 0 6px", color: "var(--muted, #6b7280)" }, children: caption })), _jsx("div", { style: { overflowX: "auto" }, children: _jsxs("table", { "aria-labelledby": caption ? labelId : undefined, style: { borderCollapse: "collapse", width: "100%" }, children: [_jsx("thead", { children: _jsx("tr", { children: columns.map((col) => (_jsx("th", { "aria-sort": sort?.key === col.key
48
+ return (_jsxs("div", { style: INK, children: [caption && (_jsx("p", { id: labelId, style: {
49
+ margin: "0 0 6px",
50
+ color: "var(--color-text-secondary, #6b7280)",
51
+ }, children: caption })), _jsx("div", { style: { overflowX: "auto" }, children: _jsxs("table", { "aria-labelledby": caption ? labelId : undefined, style: { borderCollapse: "collapse", width: "100%" }, children: [_jsx("thead", { children: _jsx("tr", { children: columns.map((col) => (_jsx("th", { "aria-sort": sort?.key === col.key
46
52
  ? sort.dir === "asc"
47
53
  ? "ascending"
48
54
  : "descending"
@@ -57,7 +63,7 @@ export function DataTable({ columns, rows, keyOf, loading = false, error = null,
57
63
  background: "transparent",
58
64
  font: "inherit",
59
65
  cursor: "pointer",
60
- color: "var(--accent, #2563eb)",
66
+ color: "var(--color-text-info, #2563eb)",
61
67
  }, children: [col.header, sort?.key === col.key
62
68
  ? sort.dir === "asc"
63
69
  ? " ▲"
@@ -70,7 +76,7 @@ export function DataTable({ columns, rows, keyOf, loading = false, error = null,
70
76
  alignItems: "center",
71
77
  gap: 8,
72
78
  marginTop: 8,
73
- }, children: [_jsx(PageButton, { disabled: pagination.page <= 1, onClick: () => pagination.onPage(pagination.page - 1), label: "Previous page" }), _jsxs("span", { style: { color: "var(--muted, #6b7280)" }, children: ["Page ", pagination.page, pageCount != null ? ` of ${pageCount}` : ""] }), _jsx(PageButton, { disabled: pageCount == null
79
+ }, children: [_jsx(PageButton, { disabled: pagination.page <= 1, onClick: () => pagination.onPage(pagination.page - 1), label: "Previous page" }), _jsxs("span", { style: { color: "var(--color-text-secondary, #6b7280)" }, children: ["Page ", pagination.page, pageCount != null ? ` of ${pageCount}` : ""] }), _jsx(PageButton, { disabled: pageCount == null
74
80
  ? rows.length < pagination.pageSize
75
81
  : pagination.page >= pageCount, onClick: () => pagination.onPage(pagination.page + 1), label: "Next page" })] }))] }));
76
82
  }
@@ -102,7 +108,7 @@ export function FilterBar({ children }) {
102
108
  const FIELD_LABEL = {
103
109
  display: "block",
104
110
  fontSize: 12,
105
- color: "var(--muted, #6b7280)",
111
+ color: "var(--color-text-secondary, #6b7280)",
106
112
  marginBottom: 2,
107
113
  };
108
114
  const FIELD_BOX = {
@@ -128,9 +134,9 @@ export function SelectField({ label, value, options, onChange, }) {
128
134
  const id = useId();
129
135
  return (_jsxs("label", { style: { ...INK, display: "block" }, children: [_jsx("span", { style: FIELD_LABEL, children: label }), _jsxs("select", { id: id, value: value, onChange: (e) => onChange(e.target.value), style: FIELD_BOX, children: [_jsx("option", { value: "", children: "All" }), options.map((o) => (_jsx("option", { value: o.value, children: o.label }, o.value)))] })] }));
130
136
  }
131
- const CHART_BAR = "var(--accent, #2563eb)";
137
+ const CHART_BAR = "var(--color-text-info, #2563eb)";
132
138
  const CHART_GRID = "var(--border, #e5e7eb)";
133
- const CHART_TEXT = "var(--muted, #6b7280)";
139
+ const CHART_TEXT = "var(--color-text-secondary, #6b7280)";
134
140
  function niceMax(value) {
135
141
  if (!Number.isFinite(value) || value <= 0)
136
142
  return 1;
@@ -295,8 +301,9 @@ export function Sparkline({ values, width = 120, height = 32, label, }) {
295
301
  /**
296
302
  * A link the host opens: `href="deal/acme-renewal"` opens that record
297
303
  * (relative links resolve against the workspace root, see
298
- * `useHost().openLink`), a full URL opens a new tab. The sandboxed frame
299
- * cannot navigate itself, so every click goes through the host, modifier
304
+ * `useHost().openLink`). On Lobu hosts, supported same-workspace links open
305
+ * the peek pane; other app links navigate normally and external URLs open a new
306
+ * tab. The sandboxed frame cannot navigate itself, so every click goes through the host, modifier
300
307
  * clicks included; the anchor still shows the resolved address on hover.
301
308
  */
302
309
  export function Link({ href, children, }) {
@@ -308,16 +315,19 @@ export function Link({ href, children, }) {
308
315
  return (_jsx("a", { href: resolveViewHref(href), onClick: open, onAuxClick: (event) => {
309
316
  if (event.button === 1)
310
317
  open(event);
311
- }, style: { color: "var(--accent, #2563eb)", textDecoration: "none" }, children: children }));
318
+ }, style: {
319
+ color: "var(--color-text-info, #2563eb)",
320
+ textDecoration: "none",
321
+ }, children: children }));
312
322
  }
313
323
  /* ------------------------------------------------------------------ */
314
324
  /* Query states — render `useQuery` honestly */
315
325
  /* ------------------------------------------------------------------ */
316
326
  export function LoadingState({ text = "Loading…" }) {
317
- return (_jsx("p", { role: "status", style: { ...INK, color: "var(--muted, #6b7280)" }, children: text }));
327
+ return (_jsx("p", { role: "status", style: { ...INK, color: "var(--color-text-secondary, #6b7280)" }, children: text }));
318
328
  }
319
329
  export function EmptyState({ title, hint }) {
320
- return (_jsxs("div", { style: { ...INK, color: "var(--muted, #6b7280)" }, children: [_jsx("p", { style: { margin: "4px 0" }, children: title }), hint && _jsx("p", { style: { margin: "0 0 4px", fontSize: 12 }, children: hint })] }));
330
+ return (_jsxs("div", { style: { ...INK, color: "var(--color-text-secondary, #6b7280)" }, children: [_jsx("p", { style: { margin: "4px 0" }, children: title }), hint && _jsx("p", { style: { margin: "0 0 4px", fontSize: 12 }, children: hint })] }));
321
331
  }
322
332
  export function ErrorState({ message, errorCode, onRetry, }) {
323
333
  return (_jsxs("div", { role: "alert", style: {
@@ -328,7 +338,7 @@ export function ErrorState({ message, errorCode, onRetry, }) {
328
338
  }, children: [_jsx("p", { style: { margin: "0 0 4px" }, children: message }), errorCode && (_jsxs("p", { style: {
329
339
  margin: "0 0 4px",
330
340
  fontSize: 12,
331
- color: "var(--muted, #6b7280)",
341
+ color: "var(--color-text-secondary, #6b7280)",
332
342
  }, children: ["Code: ", errorCode] })), onRetry && (_jsx("button", { type: "button", onClick: onRetry, style: {
333
343
  cursor: "pointer",
334
344
  border: "1px solid var(--border, #e5e7eb)",
@@ -345,7 +355,11 @@ export function ErrorState({ message, errorCode, onRetry, }) {
345
355
  * construction — narrow the query instead of treating it as complete.
346
356
  */
347
357
  export function TruncatedNotice({ shown, total, }) {
348
- return (_jsxs("p", { style: { ...INK, color: "var(--muted, #6b7280)", fontSize: 12 }, children: ["Showing ", shown, total != null ? ` of ${total}` : "", " rows \u2014 refine filters to see the rest."] }));
358
+ return (_jsxs("p", { style: {
359
+ ...INK,
360
+ color: "var(--color-text-secondary, #6b7280)",
361
+ fontSize: 12,
362
+ }, children: ["Showing ", shown, total != null ? ` of ${total}` : "", " rows \u2014 refine filters to see the rest."] }));
349
363
  }
350
364
  /** Format large counts compactly (1.2K, 3.4M). Plain numbers pass through. */
351
365
  export function formatCompact(value) {
@@ -358,4 +372,5 @@ export function formatCompact(value) {
358
372
  return `${(value / 1_000).toFixed(1)}K`;
359
373
  return String(value);
360
374
  }
375
+ export * from "./native.js";
361
376
  //# sourceMappingURL=components.js.map
@@ -8,6 +8,6 @@
8
8
  export type { AttributeFilter, CollectionSelection, } from "@lobu/core/contracts/tools/collection-selection";
9
9
  export { ViewBridge } from "./bridge.js";
10
10
  export type { BridgeOptions, HostContext, ToolResult, ViewHandoff, } from "./bridge.js";
11
- export { coerceParams, defaultsFor, defineView, escapeLiteral, mintInteractionId, mountView, Provider, sql, tool, useAction, useHost, useParams, useQuery, useScope, } from "./api.js";
11
+ export { coerceParams, defaultsFor, defineView, escapeLiteral, mintInteractionId, mountView, resolveViewHref, Provider, sql, tool, useAction, useHost, useParams, useQuery, useScope, } from "./api.js";
12
12
  export type { ActionResult, Attachment, Container, DisplayMode, MountOptions, ParamDef, Params, ParamValue, QueryOptions, QueryState, Scope, SqlQuery, ToolQuery, ViewDefinition, } from "./api.js";
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
1
  export { ViewBridge } from "./bridge.js";
2
- export { coerceParams, defaultsFor, defineView, escapeLiteral, mintInteractionId, mountView, Provider, sql, tool, useAction, useHost, useParams, useQuery, useScope, } from "./api.js";
2
+ export { coerceParams, defaultsFor, defineView, escapeLiteral, mintInteractionId, mountView, resolveViewHref, Provider, sql, tool, useAction, useHost, useParams, useQuery, useScope, } from "./api.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,327 @@
1
+ /** Public prop contracts for the native components built by Owletto.
2
+ * Implementations are supplied by the host artifact, using the shell's React. */
3
+ import { type ComponentType, type ReactNode, type ComponentProps } from "react";
4
+ import type { ValueFormat } from "@lobu/core/json-template";
5
+ export interface ViewEntity {
6
+ id: number | string | null;
7
+ name: string;
8
+ entity_type: string;
9
+ parent_id?: number | null;
10
+ slug: string;
11
+ parent_slug?: string | null;
12
+ parent_entity_type?: string | null;
13
+ domain?: string;
14
+ organization_id?: string;
15
+ metadata?: Record<string, unknown>;
16
+ relationships?: Record<string, Array<{
17
+ id: number;
18
+ name: string;
19
+ slug: string;
20
+ entity_type: string;
21
+ }>>;
22
+ created_at?: string;
23
+ total_content?: number | null;
24
+ active_connections?: number | null;
25
+ automations_count?: number | null;
26
+ children_count?: number | null;
27
+ parent_name?: string | null;
28
+ }
29
+ export interface SchemaProperty {
30
+ type?: string;
31
+ title?: string;
32
+ description?: string;
33
+ enum?: Array<string | number>;
34
+ readOnly?: boolean;
35
+ format?: string;
36
+ items?: SchemaProperty;
37
+ minItems?: number;
38
+ maxItems?: number;
39
+ properties?: Record<string, SchemaProperty>;
40
+ required?: string[];
41
+ "x-image"?: boolean;
42
+ "x-email"?: boolean;
43
+ "x-table-column"?: boolean;
44
+ "x-table-label"?: string;
45
+ "x-currency"?: boolean;
46
+ "x-link-entity-type"?: string;
47
+ "x-link-lookup-field"?: string;
48
+ /** Display labels keyed by stringified enum value. */
49
+ "x-enum-labels"?: Record<string, string>;
50
+ /** Omitted from schema-driven field lists without clearing the stored value. */
51
+ "x-hidden"?: boolean;
52
+ "x-measure"?: unknown;
53
+ "x-dimension"?: unknown;
54
+ }
55
+ interface MetadataTableProperty {
56
+ title?: string;
57
+ description?: string;
58
+ enum?: string[];
59
+ format?: string;
60
+ "x-table-column"?: boolean;
61
+ "x-table-label"?: string;
62
+ "x-image"?: boolean;
63
+ "x-link-entity-type"?: string;
64
+ "x-link-lookup-field"?: string;
65
+ "x-currency"?: boolean;
66
+ "x-hidden"?: boolean;
67
+ "x-enum-labels"?: Record<string, string>;
68
+ }
69
+ export interface EntityTableSchema {
70
+ properties?: Record<string, MetadataTableProperty>;
71
+ "x-table-relationships"?: Array<{
72
+ relationship_type: string;
73
+ label: string;
74
+ }>;
75
+ }
76
+ export interface EntityTableViewProps {
77
+ entities: ViewEntity[];
78
+ owner: string;
79
+ schema?: EntityTableSchema;
80
+ entityTypeIcon?: string;
81
+ isDerived: boolean;
82
+ measureColumns: string[];
83
+ linkedEntityLookups: Record<string, Record<string, {
84
+ slug: string;
85
+ entity_type: string;
86
+ name: string;
87
+ }>>;
88
+ hasAnyParents: boolean;
89
+ sorting: Array<{
90
+ id: string;
91
+ desc: boolean;
92
+ }>;
93
+ onSortingChange: (update: Array<{
94
+ id: string;
95
+ desc: boolean;
96
+ }> | ((previous: Array<{
97
+ id: string;
98
+ desc: boolean;
99
+ }>) => Array<{
100
+ id: string;
101
+ desc: boolean;
102
+ }>)) => void;
103
+ visibleColumns?: string[];
104
+ /** Columns the header's picker offers; no picker without it. */
105
+ columnChoices?: {
106
+ field: string;
107
+ label: string;
108
+ }[];
109
+ onVisibleColumnsChange?: (visible: string[]) => void;
110
+ page: number;
111
+ pageSize: number;
112
+ totalCount: number;
113
+ hasMore: boolean;
114
+ pageTitle: string;
115
+ onPrevPage: () => void;
116
+ onNextPage: () => void;
117
+ }
118
+ export interface SpecField {
119
+ key: string;
120
+ prop: SchemaProperty;
121
+ /** Overrides the schema label (derived columns keep their source names). */
122
+ label?: string;
123
+ /** Right-aligned digits for scanning measures. */
124
+ numeric?: boolean;
125
+ }
126
+ export interface SpecSheetContext {
127
+ ownerSlug: string;
128
+ orgContext?: {
129
+ organizationId?: string | null;
130
+ slug?: string | null;
131
+ };
132
+ controls?: Record<string, {
133
+ set_by?: string | null;
134
+ set_at?: string;
135
+ note?: string | null;
136
+ }>;
137
+ /** Opens an object-array field in the peek pane; without it the count is plain text. */
138
+ openField?: (field: SpecField) => void;
139
+ /** The field the peek pane shows now. */
140
+ openFieldKey?: string;
141
+ /** Fields with unsaved edits. */
142
+ dirtyKeys?: readonly string[];
143
+ }
144
+ /** Controlled collection page. Reads and actions remain with its caller. */
145
+ export interface EntityListPageProps {
146
+ title: ReactNode;
147
+ actions?: ReactNode;
148
+ controls?: ReactNode;
149
+ table?: EntityTableViewProps;
150
+ /** Overrides the table, including for generic SQL/TypeScript rows. */
151
+ children?: ReactNode;
152
+ loading?: boolean;
153
+ error?: string | null;
154
+ onRetry?: () => void;
155
+ empty?: ReactNode;
156
+ }
157
+ /** Shared record body; callers provide activity, views and authorized actions. */
158
+ export interface EntityRecordPageProps {
159
+ entity: ViewEntity;
160
+ owner: string;
161
+ schema?: EntityTableSchema;
162
+ title?: ReactNode;
163
+ actions?: ReactNode;
164
+ details?: ReactNode;
165
+ summary?: ReactNode;
166
+ children?: ReactNode;
167
+ /** Content mode keeps the header and lets children own the body layout. */
168
+ layout?: "record" | "content";
169
+ }
170
+ /** Saved identities are resolved through the visiting user's existing reads.
171
+ * Authored names, status and callbacks are never accepted as identity. */
172
+ interface LiveReference {
173
+ mode: "live";
174
+ workspace: string;
175
+ appearance?: "inline" | "row";
176
+ }
177
+ export interface AutomationReferenceProps extends LiveReference {
178
+ automationId: string;
179
+ }
180
+ export interface AgentReferenceProps extends LiveReference {
181
+ agentId: string;
182
+ }
183
+ export interface ConnectorReferenceProps extends LiveReference {
184
+ connectorKey: string;
185
+ connectionId?: number;
186
+ }
187
+ export interface JsonDiffProps {
188
+ before: Record<string, unknown> | null;
189
+ after: Record<string, unknown> | null;
190
+ }
191
+ /** Read-only native definition body. Pass a saved object or an authored snapshot.
192
+ * No fetching, code execution, saving or approval is performed by the body. */
193
+ export interface DefinitionProps {
194
+ value: Record<string, unknown>;
195
+ }
196
+ export interface NativeComponentProps {
197
+ AutomationDefinition: DefinitionProps;
198
+ AgentDefinition: DefinitionProps;
199
+ ConnectorDefinition: DefinitionProps;
200
+ AutomationReference: AutomationReferenceProps;
201
+ AgentReference: AgentReferenceProps;
202
+ ConnectorReference: ConnectorReferenceProps;
203
+ JsonDiff: JsonDiffProps;
204
+ EntityListPage: EntityListPageProps;
205
+ EntityRecordPage: EntityRecordPageProps;
206
+ EntityTableView: EntityTableViewProps;
207
+ RecordSpecSheet: {
208
+ fields: SpecField[];
209
+ values: Record<string, unknown>;
210
+ context: SpecSheetContext;
211
+ fieldLimit?: number;
212
+ };
213
+ SchemaValue: {
214
+ value: unknown;
215
+ prop?: SchemaProperty;
216
+ format?: ValueFormat;
217
+ resolveLink?: (raw: string) => {
218
+ label: string;
219
+ to: string;
220
+ } | undefined;
221
+ empty?: ReactNode;
222
+ className?: string;
223
+ };
224
+ EntityAvatar: {
225
+ metadata: Record<string, unknown> | null | undefined;
226
+ metadataSchema: Record<string, unknown> | null | undefined;
227
+ name: string;
228
+ typeIcon?: string | null;
229
+ className?: string;
230
+ iconClassName?: string;
231
+ initialsFallback?: boolean;
232
+ };
233
+ Button: ComponentProps<"button"> & {
234
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null;
235
+ size?: "default" | "sm" | "lg" | "icon" | null;
236
+ asChild?: boolean;
237
+ };
238
+ Badge: ComponentProps<"span"> & {
239
+ variant?: "default" | "secondary" | "destructive" | "outline";
240
+ };
241
+ Tabs: {
242
+ defaultValue: string;
243
+ children?: ReactNode;
244
+ };
245
+ TabsList: {
246
+ label?: string;
247
+ children?: ReactNode;
248
+ };
249
+ TabsTrigger: {
250
+ value: string;
251
+ children?: ReactNode;
252
+ };
253
+ TabsContent: {
254
+ value: string;
255
+ children?: ReactNode;
256
+ };
257
+ }
258
+ export type NativeComponents = {
259
+ [K in keyof NativeComponentProps]: ComponentType<NativeComponentProps[K]>;
260
+ };
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"];
262
+ export declare const NATIVE_COMPONENT_GLOBAL = "__lobuViewNative";
263
+ export declare const EntityListPage: ComponentType<EntityListPageProps>;
264
+ export declare const EntityRecordPage: ComponentType<EntityRecordPageProps>;
265
+ export declare const EntityTableView: ComponentType<EntityTableViewProps>;
266
+ export declare const RecordSpecSheet: ComponentType<{
267
+ fields: SpecField[];
268
+ values: Record<string, unknown>;
269
+ context: SpecSheetContext;
270
+ fieldLimit?: number;
271
+ }>;
272
+ export declare const SchemaValue: ComponentType<{
273
+ value: unknown;
274
+ prop?: SchemaProperty;
275
+ format?: ValueFormat;
276
+ resolveLink?: (raw: string) => {
277
+ label: string;
278
+ to: string;
279
+ } | undefined;
280
+ empty?: ReactNode;
281
+ className?: string;
282
+ }>;
283
+ export declare const EntityAvatar: ComponentType<{
284
+ metadata: Record<string, unknown> | null | undefined;
285
+ metadataSchema: Record<string, unknown> | null | undefined;
286
+ name: string;
287
+ typeIcon?: string | null;
288
+ className?: string;
289
+ iconClassName?: string;
290
+ initialsFallback?: boolean;
291
+ }>;
292
+ export declare const Button: ComponentType<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
293
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null;
294
+ size?: "default" | "sm" | "lg" | "icon" | null;
295
+ asChild?: boolean;
296
+ }>;
297
+ export declare const Badge: ComponentType<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
298
+ variant?: "default" | "secondary" | "destructive" | "outline";
299
+ }>;
300
+ export declare const Tabs: ComponentType<{
301
+ defaultValue: string;
302
+ children?: ReactNode;
303
+ }>;
304
+ export declare const TabsList: ComponentType<{
305
+ label?: string;
306
+ children?: ReactNode;
307
+ }>;
308
+ export declare const TabsTrigger: ComponentType<{
309
+ value: string;
310
+ children?: ReactNode;
311
+ }>;
312
+ export declare const TabsContent: ComponentType<{
313
+ value: string;
314
+ children?: ReactNode;
315
+ }>;
316
+ export declare const AutomationReference: ComponentType<AutomationReferenceProps>;
317
+ export declare const AgentReference: ComponentType<AgentReferenceProps>;
318
+ export declare const ConnectorReference: ComponentType<ConnectorReferenceProps>;
319
+ export declare const JsonDiff: ComponentType<JsonDiffProps>;
320
+ /** Instructions, sources, triggers, outputs and code from an Automation snapshot. */
321
+ export declare const AutomationDefinition: ComponentType<DefinitionProps>;
322
+ /** Identity and settings from an Agent snapshot, using the native editor fields. */
323
+ export declare const AgentDefinition: ComponentType<DefinitionProps>;
324
+ /** Connector capabilities, schemas and source from a definition snapshot. */
325
+ export declare const ConnectorDefinition: ComponentType<DefinitionProps>;
326
+ export {};
327
+ //# sourceMappingURL=native.d.ts.map
@@ -0,0 +1,57 @@
1
+ /** Public prop contracts for the native components built by Owletto.
2
+ * Implementations are supplied by the host artifact, using the shell's React. */
3
+ import { createElement, } from "react";
4
+ export const NATIVE_COMPONENT_NAMES = [
5
+ "AutomationDefinition",
6
+ "AgentDefinition",
7
+ "ConnectorDefinition",
8
+ "AutomationReference",
9
+ "AgentReference",
10
+ "ConnectorReference",
11
+ "JsonDiff",
12
+ "EntityListPage",
13
+ "EntityRecordPage",
14
+ "EntityTableView",
15
+ "RecordSpecSheet",
16
+ "SchemaValue",
17
+ "EntityAvatar",
18
+ "Button",
19
+ "Badge",
20
+ "Tabs",
21
+ "TabsList",
22
+ "TabsTrigger",
23
+ "TabsContent",
24
+ ];
25
+ export const NATIVE_COMPONENT_GLOBAL = "__lobuViewNative";
26
+ function native(name) {
27
+ return function NativeComponent(props) {
28
+ const registry = globalThis.__lobuViewNative;
29
+ const component = registry?.[name];
30
+ if (!component)
31
+ throw new Error(`Native component ${name} is unavailable in this host runtime.`);
32
+ return createElement(component, props);
33
+ };
34
+ }
35
+ export const EntityListPage = native("EntityListPage");
36
+ export const EntityRecordPage = native("EntityRecordPage");
37
+ export const EntityTableView = native("EntityTableView");
38
+ export const RecordSpecSheet = native("RecordSpecSheet");
39
+ export const SchemaValue = native("SchemaValue");
40
+ export const EntityAvatar = native("EntityAvatar");
41
+ export const Button = native("Button");
42
+ export const Badge = native("Badge");
43
+ export const Tabs = native("Tabs");
44
+ export const TabsList = native("TabsList");
45
+ export const TabsTrigger = native("TabsTrigger");
46
+ export const TabsContent = native("TabsContent");
47
+ export const AutomationReference = native("AutomationReference");
48
+ export const AgentReference = native("AgentReference");
49
+ export const ConnectorReference = native("ConnectorReference");
50
+ export const JsonDiff = native("JsonDiff");
51
+ /** Instructions, sources, triggers, outputs and code from an Automation snapshot. */
52
+ export const AutomationDefinition = native("AutomationDefinition");
53
+ /** Identity and settings from an Agent snapshot, using the native editor fields. */
54
+ export const AgentDefinition = native("AgentDefinition");
55
+ /** Connector capabilities, schemas and source from a definition snapshot. */
56
+ export const ConnectorDefinition = native("ConnectorDefinition");
57
+ //# sourceMappingURL=native.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobu/views",
3
- "version": "24.4.0",
3
+ "version": "24.6.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{ce as t,w as m,j as e,cf as a,ap as s}from"./index-4gCDI7m4.js";import{A as n}from"./activity-route-view-V4ftmSN7.js";import"./record-activity-D7bRaMk2.js";import"./filter-bar-BQm-ubB1.js";import"./calendar-DMq3Dtqy.js";import"./connection-label-BobuYiAG.js";import"./runs-BPtQBTRN.js";import"./source-record-panels-Bh5F4C5K.js";import"./event-card-Mcxv56DG.js";import"./use-scroll-sentinel-Ct-jt7O0.js";import"./use-automations-BHoV0dLs.js";import"./clients-C7Lnuc3S.js";import"./renderer-7EGgTVX0.js";import"./table-DFcJRNk7.js";import"./card-SFtxv9f2.js";import"./json-diff-E5D-NGYT.js";import"./index-wHFQv1aT.js";import"./copy-button-2swYh4jb.js";import"./events-feed-BysC9HgU.js";import"./client-activity-scopes-boZOHuPW.js";import"./client-rows-BJ2PxM4J.js";import"./agent-loading-shells-Dnmb6W5Y.js";import"./member-scope-gate-vp3FihBD.js";import"./public-shell-ready-CsenJeXa.js";function z(){const{owner:o}=t.useParams(),r=m({select:p=>p.pathname}),i=t.useSearch();return e.jsx(n,{owner:o,search:i,entityScope:a(s(r,1)).path})}export{z as component};
2
- //# sourceMappingURL=_-DIK0ae_S.js.map
@@ -1,3 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/entity-page-D-WDWrAe.js","assets/index-4gCDI7m4.js","assets/index-DDGdlQrt.css","assets/record-activity-D7bRaMk2.js","assets/filter-bar-BQm-ubB1.js","assets/calendar-DMq3Dtqy.js","assets/connection-label-BobuYiAG.js","assets/runs-BPtQBTRN.js","assets/source-record-panels-Bh5F4C5K.js","assets/event-card-Mcxv56DG.js","assets/use-scroll-sentinel-Ct-jt7O0.js","assets/use-automations-BHoV0dLs.js","assets/clients-C7Lnuc3S.js","assets/renderer-7EGgTVX0.js","assets/table-DFcJRNk7.js","assets/card-SFtxv9f2.js","assets/json-diff-E5D-NGYT.js","assets/index-wHFQv1aT.js","assets/copy-button-2swYh4jb.js","assets/events-feed-BysC9HgU.js","assets/client-activity-scopes-boZOHuPW.js","assets/client-rows-BJ2PxM4J.js","assets/agent-loading-shells-Dnmb6W5Y.js","assets/member-scope-gate-vp3FihBD.js","assets/views-access-required-DHrDO333.js","assets/record-session-CWXnCVln.js","assets/entity-avatar-HloBoalJ.js","assets/view-param-filters-mKoqDsaD.js","assets/app-bridge-C4nPtae3.js"])))=>i.map(i=>d[i]);
2
- import{an as p,w as x,ao as y,ap as j,aq as P,ar as g,o as R,s as f,j as e,r as v,as as w,m as E,_ as S}from"./index-4gCDI7m4.js";import{P as r}from"./public-shell-ready-CsenJeXa.js";const _=E(async()=>({default:(await S(async()=>{const{EntityPage:a}=await import("./entity-page-D-WDWrAe.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]))).EntityPage}));function c(){return e.jsx("div",{"data-public-loading":"true",children:e.jsx(w,{})})}function L(){const{owner:a}=p.useParams(),l=x({select:m=>m.pathname}),s=y(j(l)),d=s?.viewKey,{path:u}=P(a,s?.entityPath),{data:t,isLoading:n,error:o}=g(u,{slug:a},{includeBootstrap:!0}),{session:h,isReady:i}=R();return f({active:!n&&i&&!h&&(!!o||!t),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(v.Suspense,{fallback:e.jsx(c,{}),children:e.jsx(_,{namespace:t.workspace,path:t.path,entity:t.entity,viewKey:d})})]})}export{L as component};
3
- //# sourceMappingURL=_-gTbcArpS.js.map
@@ -1,2 +0,0 @@
1
- import{v as L,go as w,r as u,gp as C,j as n,h as D,cq as S,o as E,au as P,bd as M,b4 as N,bm as R,cI as O,gq as $,gr as q,by as B,E as Q}from"./index-4gCDI7m4.js";import{L as z,A as F}from"./agent-thread-DQIr20H-.js";import{A as H,C as U}from"./agent-loading-shells-Dnmb6W5Y.js";import"./app-bridge-C4nPtae3.js";import"./use-mention-search-C3rWLuKm.js";import"./index-wHFQv1aT.js";import"./use-automations-BHoV0dLs.js";import"./event-card-Mcxv56DG.js";import"./use-scroll-sentinel-Ct-jt7O0.js";import"./clients-C7Lnuc3S.js";import"./renderer-7EGgTVX0.js";import"./calendar-DMq3Dtqy.js";import"./table-DFcJRNk7.js";import"./card-SFtxv9f2.js";import"./json-diff-E5D-NGYT.js";import"./copy-button-2swYh4jb.js";import"./events-feed-BysC9HgU.js";import"./client-activity-scopes-boZOHuPW.js";import"./client-rows-BJ2PxM4J.js";function W({owner:e,agent:s,threadId:t,afterMessagesContent:d,className:r,initialDraft:h,newChatRequested:f=!1,preventAutoNavigate:p}){const o=L(),i=s.agentId,{data:a=[]}=w(i,{orgSlug:e}),[l,x]=u.useState(()=>C()),[g,A]=u.useState(null);u.useEffect(()=>{!f||t||(x(C()),A(null),o({to:".",search:(m=>{const{new:b,...y}=m;return y}),replace:!0}))},[f,t,o]);const v=u.useMemo(()=>!g||a.some(m=>m.id===g.id)?a:[g,...a],[a,g]),c=t??l,T=!t||!v.some(m=>m.id===t),j=u.useCallback(()=>{if(v.some(b=>b.id===c))return;A({id:c,title:`Conversation ${v.length+1}`,createdAt:Date.now(),updatedAt:Date.now()});const m=S(e,i,c);o({...m,replace:!0})},[v,c,o,e,i]),k=u.useCallback(()=>{T&&!p&&j()},[T,j,p]);return n.jsx("div",{className:D("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(z,{agentId:i,workspaceSlug:e,thread:c,loadHistory:!!t,onFirstUserMessage:k,initialDraft:h,children:n.jsx(F,{afterMessagesContent:d})},`${i}:${c}`)})})}function _({owner:e,agentId:s,threadId:t,initialDraft:d,newChatRequested:r,afterMessagesContent:h,preventAutoNavigate:f}){const{isAuthenticated:p}=E(),{isMember:o,isLoading:i}=P(),a=p&&o,{data:l=[],isLoading:x}=M({enabled:a}),g=s??null,A=l.find(c=>c.agentId===g)??null;return a&&x||i?n.jsx(H,{}):A?n.jsx(W,{owner:e,agent:A,threadId:t,initialDraft:d,newChatRequested:r,afterMessagesContent:h,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:h=!1,afterMessagesContent:f,preventAutoNavigate:p}){const o=L(),{data:i=[],isLoading:a}=O($(e,s,{strict:!1})),l=u.useMemo(()=>G(i),[i]);return u.useEffect(()=>{if(t||r||a||!l)return;const x=S(e,s,l.id);o({...x,replace:!0})},[s,a,l,o,e,t,r]),!t&&!r&&(a||l)?n.jsx(U,{}):n.jsx(_,{owner:e,agentId:s,threadId:t,initialDraft:d,newChatRequested:h,afterMessagesContent:f,preventAutoNavigate:p})}function ft(){const{owner:e,agentId:s}=q.useParams(),{threadId:t}=B({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{ft as component};
2
- //# sourceMappingURL=_agentId-DOmcJZfk.js.map
@@ -1,2 +0,0 @@
1
- import{he as r,j as e}from"./index-4gCDI7m4.js";import{A as n}from"./agents-workbench-C8bTa2rv.js";import"./agent-editor-form-DfMTSIvj.js";import"./model-selector-88PJnyTq.js";import"./proposal-review-shell-B4CSiyLB.js";import"./runs-BPtQBTRN.js";function c(){const{owner:o,agentId:t}=r.useParams();return e.jsx(n,{owner:o,agentId:t})}export{c as component};
2
- //# sourceMappingURL=_agentId-DW6wRCVC.js.map
@@ -1,2 +0,0 @@
1
- import{v as A,t as b,ar as k,o as L,au as C,j as t,gl as R,L as d,gm as _,bm as $,S as B,B as p,bk as D,h5 as u,aA as S}from"./index-4gCDI7m4.js";import{A as y}from"./automation-detail-content-C9Cgr5Zj.js";import{b as O}from"./use-automations-BHoV0dLs.js";import"./create-automation-form-DmCOFbRT.js";import"./cronstrue-CKwjNYgj.js";import"./entity-options-BSW_EG0W.js";import"./connection-label-BobuYiAG.js";import"./model-selector-88PJnyTq.js";import"./skill-editor-D_W3QlRz.js";import"./code-editor-rX0t1g5C.js";import"./index-wHFQv1aT.js";import"./use-mention-search-C3rWLuKm.js";import"./proposal-review-shell-B4CSiyLB.js";import"./runs-BPtQBTRN.js";import"./events-feed-BysC9HgU.js";import"./event-card-Mcxv56DG.js";import"./use-scroll-sentinel-Ct-jt7O0.js";import"./clients-C7Lnuc3S.js";import"./renderer-7EGgTVX0.js";import"./calendar-DMq3Dtqy.js";import"./table-DFcJRNk7.js";import"./card-SFtxv9f2.js";import"./json-diff-E5D-NGYT.js";import"./copy-button-2swYh4jb.js";import"./client-activity-scopes-boZOHuPW.js";import"./client-rows-BJ2PxM4J.js";function P({owner:a,automationId:o,view:s,runId:e}){const n=A(),{orgContext:x,hasOrgContext:g}=b(),{data:h,isLoading:r}=k(`/${a}`,x),{isAuthenticated:v}=L(),{isLoading:m}=C(),f=h?.workspace?.id??"",j=v?!g||r||m:r||m,i=O(o,void 0,f).data?.automation,c=i?.automation_name??"Automation",w=()=>void n({to:"/$owner/automations",params:{owner:a}}),l=()=>void n({to:"/$owner/automations/$automationId",params:{owner:a,automationId:o},search:{view:"activity",run_id:void 0}}),N=!e&&s==="definition";return t.jsx("div",{className:"flex flex-1 flex-col gap-6 px-4 pt-2.5 pb-8 lg:px-6",children:t.jsxs("div",{className:"mx-auto flex w-full min-w-0 max-w-3xl flex-col gap-4",children:[t.jsx(R,{crumbs:[t.jsx(d,{to:"/$owner/automations",params:{owner:a},className:_,children:"Automations"},"automations")],current:e?"Review change":c}),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($,{className:"h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":!0}),j&&!i?t.jsx(B,{className:"h-5 w-40"}):e?"Review change":c]})}),e?null:N?t.jsx(p,{type:"button",variant:"ghost",size:"sm",className:"h-8 text-muted-foreground hover:text-foreground",onClick:l,children:"Done"}):t.jsx(p,{asChild:!0,variant:"ghost",size:"sm",className:"h-8 gap-1.5",children:t.jsxs(d,{to:"/$owner/automations/$automationId",params:{owner:a,automationId:o},search:{view:"definition",run_id:void 0},children:[t.jsx(D,{className:"h-3.5 w-3.5"}),"Edit"]})})]}),t.jsx(y,{owner:a,agentId:i?.managed_agent_id??null,automationId:o,view:s,runId:e,onDone:e?w:l})]})})}function ct(){const{owner:a,automationId:o}=u.useParams(),s=u.useSearch();return t.jsx(S,{owner:a,children:()=>t.jsx(P,{owner:a,automationId:o,view:s.view,runId:s.run_id})})}export{ct as component};
2
- //# sourceMappingURL=_automationId-B9IcDYBu.js.map
@@ -1,2 +0,0 @@
1
- import{iv as L,j as e,aA as G,v as U,aH as X,aI as Y,cw as z,cX as J,S as A,B as Q,L as p,aK as Z,ia as K,ib as ee,aY as ne,gm as h,fW as se,gk as ae,ba as oe,hO as te,gl as ie,hq as R,aS as ce,F as re}from"./index-4gCDI7m4.js";import{R as de,c as me,C as le}from"./device-pin-tombstone-xGhCTU5_.js";import{a as pe}from"./connector-provenance-Th8ymGec.js";import{f as ue,C as he,F as xe,a as fe,b as ve,A as je,c as Ce}from"./connection-feed-detail-D7pnWaFB.js";import{S as Ne,g as De}from"./runs-panel-Bj63_hb9.js";import{c as ge}from"./connection-label-BobuYiAG.js";import"./connector-scope-lists-BibdzKl1.js";import"./status-dot-D3FoDRcc.js";import"./entity-options-BSW_EG0W.js";import"./event-card-Mcxv56DG.js";import"./use-scroll-sentinel-Ct-jt7O0.js";import"./use-automations-BHoV0dLs.js";import"./clients-C7Lnuc3S.js";import"./renderer-7EGgTVX0.js";import"./calendar-DMq3Dtqy.js";import"./table-DFcJRNk7.js";import"./card-SFtxv9f2.js";import"./json-diff-E5D-NGYT.js";import"./index-wHFQv1aT.js";import"./copy-button-2swYh4jb.js";import"./feed-event-kinds-BYuZCoU4.js";import"./runs-BPtQBTRN.js";import"./filter-bar-BQm-ubB1.js";function Xe(){const{owner:m,connectorKey:n,connectionId:v}=L.useParams(),{addFeed:o,feedId:c,settings:x,auth_result:t}=L.useSearch();return e.jsx(G,{owner:m,children:l=>e.jsx($e,{organizationId:l.organizationId,ownerSlug:l.ownerSlug,isWorkspaceLoading:l.isWorkspaceLoading,connectorKey:n,connectionId:Number(v),showAddFeed:o===!0,feedId:c,openSettings:x===!0,authResult:t})})}function $e({organizationId:m,ownerSlug:n,isWorkspaceLoading:v,connectorKey:o,connectionId:c,showAddFeed:x,feedId:t,openSettings:l,authResult:E}){const y=U(),{data:B=[]}=X(),{data:M=[],isLoading:P,isError:j,refetch:W}=Y(m??"",{connectorKey:o,connectionIds:[c]}),{data:g=[]}=z(m??""),{data:O=[],isLoading:S,isError:T,refetch:H}=J(t?c:null),s=M.find(i=>i.id===c),a=g.find(i=>i.key===o),r=t?O.find(i=>i.id===t):null;if(v||P||t&&S||!m)return e.jsxs("div",{className:"flex flex-1 flex-col gap-4",children:[e.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-3 gap-y-1",children:[e.jsx(A,{className:"h-7 w-56"}),e.jsx(A,{className:"h-4 w-24"})]}),e.jsx(de,{})]});if(j||t&&T)return e.jsxs("div",{role:"alert",className:"space-y-2",children:[e.jsxs("p",{children:["Could not load this ",j?"connection":"feed","."]}),e.jsx(Q,{variant:"outline",size:"sm",onClick:()=>void(j?W():H()),children:"Retry"})]});if(!s)return e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Connection not found."}),e.jsxs(p,{to:"/$owner/connectors/$connectorKey",params:{owner:n,connectorKey:o},className:"mt-2 inline-block text-sm text-primary hover:underline",children:["Back to ",a?.name??o]})]});const $=ge({...s,connector_name:s.connector_name??a?.name??null}),C=!t&&!x,V=()=>void y({to:"/$owner/connectors/$connectorKey/$connectionId",params:{owner:n,connectorKey:o,connectionId:String(c)},search:{},replace:!0});let u,f=$,k,w,N;t?r?(f=ue(r,a),r.store==="channel_messages"?(u=e.jsx(he,{feed:r,hideHeader:!0}),N="chat channel"):(k=e.jsx(xe,{feed:r,ownerSlug:n}),w=e.jsx(fe,{feed:r}),u=e.jsx(ve,{feed:r,connectorDef:a,ownerSlug:n}))):(u=e.jsx("p",{className:"text-sm text-muted-foreground",children:"Feed not found."}),f="Feed"):x&&(u=e.jsx(je,{onClose:V,organizationId:m,connections:[s],connectorDefinitions:g}),f="Add feed",N=Ce);const d=B.find(i=>i.id===s.device_worker_id&&Z(i,n)),F=d?K(d):void 0,D=F?ee(n,F,ne()):void 0,b=[e.jsx(p,{to:"/$owner/connectors",params:{owner:n},className:h,children:"Connectors"},"connectors"),...d&&D?[e.jsx(p,{to:"/$owner/connectors/app/$appId",params:{owner:n,appId:D.id},className:h,children:D.name},"app"),e.jsx(p,{to:"/$owner/connectors/device/$deviceId",params:{owner:n,deviceId:d.id},className:h,children:se(d)},"device")]:[e.jsx(p,{to:"/$owner/connectors/$connectorKey",params:{owner:n,connectorKey:o},search:{},className:h,children:a?.name??o},"connector")]];C||b.push(e.jsx(p,{to:"/$owner/connectors/$connectorKey/$connectionId",params:{owner:n,connectorKey:o,connectionId:String(c)},search:{},className:h,children:$},"connection"));const _=C?me(s):null,q=N??_??void 0,I=e.jsx(ae,{breadcrumb:e.jsx(ie,{crumbs:b}),icon:a?e.jsx(oe,{icon:a.icon,name:a.name,faviconDomain:a.favicon_domain??te(a.auth_schema)}):null,title:f,status:k??e.jsx(Ne,{status:De(s.status),showDot:!0,children:s.status}),meta:w,caption:q,captionTone:_?"error":"muted"});return C?d&&a&&ce(a)?e.jsx(re,{to:"/$owner/connectors/device/$deviceId",params:{owner:n,deviceId:d.id},search:{connection:s.id,settings:l||void 0},hash:`connection-${s.id}`,replace:!0}):e.jsxs(R,{header:I,children:[e.jsx(pe,{connectorDef:a,connectorKey:o,ownerSlug:n,deviceWorkerId:s.device_worker_id,deviceLabel:s.device_label}),e.jsx(le,{embedded:!0,connection:s,connectorDef:a,ownerSlug:n,openSettings:l,authResult:E},s.id)]}):e.jsx(R,{header:I,children:e.jsx("div",{className:"mt-0",children:u})})}export{Xe as component};
2
- //# sourceMappingURL=_connectorKey._connectionId-C6PmMPTA.js.map