@lobu/runtime-server 24.5.0 → 24.7.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 (253) hide show
  1. package/dist/catalogs/connectors.json +342 -4
  2. package/dist/catalogs/skills.json +1 -1
  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/x-like-follow.ts +329 -0
  7. package/dist/connectors/x.ts +709 -80
  8. package/dist/dependencies.bun.lock +18 -18
  9. package/dist/owletto/dist/assets/_-CZgmjLR9.js +2 -0
  10. package/dist/owletto/dist/assets/_-Cm5OgtYD.js +3 -0
  11. package/dist/owletto/dist/assets/_agentId-Cci6NFc1.js +2 -0
  12. package/dist/owletto/dist/assets/_agentId-GhWTlPO2.js +2 -0
  13. package/dist/owletto/dist/assets/_automationId-KUlxSTK2.js +2 -0
  14. package/dist/owletto/dist/assets/_connectorKey._connectionId-Zpy7Hvml.js +2 -0
  15. package/dist/owletto/dist/assets/_connectorKey.index-CYDRp9UX.js +2 -0
  16. package/dist/owletto/dist/assets/_conversationId-NNqDdije.js +2 -0
  17. package/dist/owletto/dist/assets/_eventId-0BSX6VHj.js +2 -0
  18. package/dist/owletto/dist/assets/_owner-C-CD22NB.js +3 -0
  19. package/dist/owletto/dist/assets/_shape-CvXp4omb.js +2 -0
  20. package/dist/owletto/dist/assets/_slug-DgK7zpKA.js +2 -0
  21. package/dist/owletto/dist/assets/_viewKey-cH54P0zY.js +2 -0
  22. package/dist/owletto/dist/assets/_viewKey-m0B5j7L9.js +2 -0
  23. package/dist/owletto/dist/assets/{accept-invitation-pUl-c1KQ.js → accept-invitation-CX7Egv-p.js} +2 -2
  24. package/dist/owletto/dist/assets/activity-link-rXNpmppV.js +2 -0
  25. package/dist/owletto/dist/assets/activity-route-view-B0m7_g9q.js +2 -0
  26. package/dist/owletto/dist/assets/{agent-client-setup-list-DbXtJTsO.js → agent-client-setup-list-BmD3-_Ox.js} +2 -2
  27. package/dist/owletto/dist/assets/{agent-connect-pages-DcTuiSt9.js → agent-connect-pages-BtOTCsTU.js} +2 -2
  28. package/dist/owletto/dist/assets/agent-editor-form-CirqCpcM.js +2 -0
  29. package/dist/owletto/dist/assets/agent-list-row-SyACVYX7.js +2 -0
  30. package/dist/owletto/dist/assets/{agent-loading-shells-ClY_O6lb.js → agent-loading-shells-DHvKiEUB.js} +2 -2
  31. package/dist/owletto/dist/assets/agent-permissions-matrix-Dsc26dyW.js +2 -0
  32. package/dist/owletto/dist/assets/{agent-skill-context-BAaGpvfS.js → agent-skill-context-DF5q0Dfr.js} +2 -2
  33. package/dist/owletto/dist/assets/agent-subpage-shell-Pi5cECga.js +2 -0
  34. package/dist/owletto/dist/assets/{agent-thread-WNk2HapT.js → agent-thread-B1ZepGZc.js} +4 -4
  35. package/dist/owletto/dist/assets/agents-D1FHZ0jR.js +2 -0
  36. package/dist/owletto/dist/assets/app._appId-01I0CJal.js +2 -0
  37. package/dist/owletto/dist/assets/{assist-composer-ClfFEVx7.js → assist-composer-BD9msDk3.js} +2 -2
  38. package/dist/owletto/dist/assets/automation-detail-content-BFv1TglZ.js +2 -0
  39. package/dist/owletto/dist/assets/automation-row-CmTpAD4r.js +2 -0
  40. package/dist/owletto/dist/assets/automation-source-list-D8ZSavQU.js +2 -0
  41. package/dist/owletto/dist/assets/automations-D1FHZ0jR.js +2 -0
  42. package/dist/owletto/dist/assets/{callback-DRABUOha.js → callback-Ckrxv0eo.js} +2 -2
  43. package/dist/owletto/dist/assets/{card-Bdi7VEwo.js → card-DT9mSjSp.js} +2 -2
  44. package/dist/owletto/dist/assets/{change-summary-PBoM6Asb.js → change-summary-CGrKEJ04.js} +2 -2
  45. package/dist/owletto/dist/assets/{claim-CUIG1Oc-.js → claim-Bzby28tT.js} +2 -2
  46. package/dist/owletto/dist/assets/{client-activity-scopes-CXOWB5co.js → client-activity-scopes-DoIErdUy.js} +2 -2
  47. package/dist/owletto/dist/assets/{client-rows-36VnmgMK.js → client-rows-BbVQy5Ti.js} +2 -2
  48. package/dist/owletto/dist/assets/{clients-BJRcMk1A.js → clients-6aJvabvS.js} +2 -2
  49. package/dist/owletto/dist/assets/connect-BmDziBzI.js +2 -0
  50. package/dist/owletto/dist/assets/connect-menu-Bs8mxsga.js +2 -0
  51. package/dist/owletto/dist/assets/connect._clientId-t5aKu3aa.js +2 -0
  52. package/dist/owletto/dist/assets/connected._clientId-DswMAw8l.js +2 -0
  53. package/dist/owletto/dist/assets/{connection-q1bdnxCN.js → connection-BOaMa324.js} +2 -2
  54. package/dist/owletto/dist/assets/connection-feed-detail-BLCjhP-H.js +2 -0
  55. package/dist/owletto/dist/assets/connector-boxes-BAP_f77M.js +2 -0
  56. package/dist/owletto/dist/assets/{connector-page-shell-Cs1SjrYB.js → connector-page-shell-ClOmVPJr.js} +2 -2
  57. package/dist/owletto/dist/assets/{connector-provenance-aJFeeRIC.js → connector-provenance-wmYu5jwO.js} +2 -2
  58. package/dist/owletto/dist/assets/{connectors-BsvDMdsQ.js → connectors-D5F5rHxX.js} +2 -2
  59. package/dist/owletto/dist/assets/{consent-DJV78pnz.js → consent-RqHNkmm8.js} +2 -2
  60. package/dist/owletto/dist/assets/{copy-button-DjMWgrBf.js → copy-button-D6zpsZLi.js} +2 -2
  61. package/dist/owletto/dist/assets/{core.esm-CQzL3ObT.js → core.esm-BIE97rfo.js} +3 -3
  62. package/dist/owletto/dist/assets/create-BPxsKwk7.js +2 -0
  63. package/dist/owletto/dist/assets/{create-jBEuveV1.js → create-GT8_yF0R.js} +2 -2
  64. package/dist/owletto/dist/assets/create-Yx2qBMBy.js +2 -0
  65. package/dist/owletto/dist/assets/create-automation-form-B12yTrmj.js +3 -0
  66. package/dist/owletto/dist/assets/create._connectorKey-CzXqSkuI.js +2 -0
  67. package/dist/owletto/dist/assets/custom-guardrail-edits-B9plaLBN.js +2 -0
  68. package/dist/owletto/dist/assets/definition-comparison-C3k6Wa9B.js +2 -0
  69. package/dist/owletto/dist/assets/detail-page-skeleton-I5_7FkKx.js +2 -0
  70. package/dist/owletto/dist/assets/{device-Ba3RsIgb.js → device-CadaiNF4.js} +2 -2
  71. package/dist/owletto/dist/assets/device-automation-Dp3faMvp.js +2 -0
  72. package/dist/owletto/dist/assets/device-pin-tombstone-U7Bx05P6.js +2 -0
  73. package/dist/owletto/dist/assets/device._deviceId-DTZqj1HS.js +2 -0
  74. package/dist/owletto/dist/assets/dynamic-schema-form-DyT_9iVE.js +2 -0
  75. package/dist/owletto/dist/assets/entity-options-CGTjLlcS.js +2 -0
  76. package/dist/owletto/dist/assets/entity-page-DHHMmA8V.js +2 -0
  77. package/dist/owletto/dist/assets/entity-pages-eYbG2FDT.js +2 -0
  78. package/dist/owletto/dist/assets/entity-type-page-CjFqxSdL.js +2 -0
  79. package/dist/owletto/dist/assets/event-card-BtTUuf2q.js +2 -0
  80. package/dist/owletto/dist/assets/{event-detail-DkY95e5b.js → event-detail-8xHiplt_.js} +2 -2
  81. package/dist/owletto/dist/assets/events-feed-zFnTSE27.js +2 -0
  82. package/dist/owletto/dist/assets/filter-editors-Dd5R2Etd.js +2 -0
  83. package/dist/owletto/dist/assets/{full-page-spinner-BqmckkOf.js → full-page-spinner-CCU4PkRv.js} +2 -2
  84. package/dist/owletto/dist/assets/home-stream-IVsNEkwp.js +2 -0
  85. package/dist/owletto/dist/assets/index-2oaMOFKe.js +2 -0
  86. package/dist/owletto/dist/assets/index-B-Ab8srM.js +7899 -0
  87. package/dist/owletto/dist/assets/index-B4RZgvvI.js +2 -0
  88. package/dist/owletto/dist/assets/{index-C186T2Rw.js → index-B72KYdN1.js} +2 -2
  89. package/dist/owletto/dist/assets/index-BBZM53p8.js +2 -0
  90. package/dist/owletto/dist/assets/index-BOb0a5f9.js +2 -0
  91. package/dist/owletto/dist/assets/{index-ijqrJaRB.js → index-BYFDMIQC.js} +2 -2
  92. package/dist/owletto/dist/assets/index-BwnFQcMe.js +2 -0
  93. package/dist/owletto/dist/assets/index-CvYsWYlF.js +2 -0
  94. package/dist/owletto/dist/assets/{index-B0kw2lFL.js → index-DIXIvtnM.js} +2 -2
  95. package/dist/owletto/dist/assets/index-DLwokXHW.js +2 -0
  96. package/dist/owletto/dist/assets/index-_nlPHus1.js +2 -0
  97. package/dist/owletto/dist/assets/index-cwOgj4-i.js +2 -0
  98. package/dist/owletto/dist/assets/{index-ikp_mTsf.js → index-pmr1WUoG.js} +2 -2
  99. package/dist/owletto/dist/assets/index-pp4qmhkA.js +2 -0
  100. package/dist/owletto/dist/assets/index-tTbno-PX.css +1 -0
  101. package/dist/owletto/dist/assets/json-diff-B-1Swv_y.js +28 -0
  102. package/dist/owletto/dist/assets/list-skeleton-BAqT0vxo.js +2 -0
  103. package/dist/owletto/dist/assets/{login-u6LCgDYG.js → login-D5bIjMtf.js} +2 -2
  104. package/dist/owletto/dist/assets/{logout-JhmuWJEH.js → logout-JYZvxz8v.js} +2 -2
  105. package/dist/owletto/dist/assets/{member-scope-gate-4FQ0aanZ.js → member-scope-gate-Lj9m4RL2.js} +2 -2
  106. package/dist/owletto/dist/assets/memory-browse-page-rAKfVdQ_.js +74 -0
  107. package/dist/owletto/dist/assets/{model-selector-CgU8SJMF.js → model-selector-onvGA9Ww.js} +2 -2
  108. package/dist/owletto/dist/assets/{new-DgE1pVV0.js → new-B-Jd-vBl.js} +2 -2
  109. package/dist/owletto/dist/assets/new-BmehH1uR.js +2 -0
  110. package/dist/owletto/dist/assets/new-KDi15LWZ.js +2 -0
  111. package/dist/owletto/dist/assets/{organization-CKM_oFX3.js → organization-B9bh20Xo.js} +2 -2
  112. package/dist/owletto/dist/assets/peek-pane-content-Bqus80Mq.js +2 -0
  113. package/dist/owletto/dist/assets/{pending-seed-sml8Uf6e.js → pending-seed-CoFPQ835.js} +2 -2
  114. package/dist/owletto/dist/assets/proposal-review-shell-CnACXCUg.js +2 -0
  115. package/dist/owletto/dist/assets/public-shell-ready-Dlh-eWz0.js +2 -0
  116. package/dist/owletto/dist/assets/record-activity-6CfR95Ul.js +2 -0
  117. package/dist/owletto/dist/assets/{record-session-R-uHNuby.js → record-session-Bpx4_LGk.js} +2 -2
  118. package/dist/owletto/dist/assets/renderer-CgaQKMoG.js +96 -0
  119. package/dist/owletto/dist/assets/{reset-password-Mx3baeNc.js → reset-password-C-4Jnuqk.js} +2 -2
  120. package/dist/owletto/dist/assets/run-initiator-BvruBM5H.js +2 -0
  121. package/dist/owletto/dist/assets/{runs-fFJ1lPnw.js → runs-BMzp7j7j.js} +2 -2
  122. package/dist/owletto/dist/assets/runs-list-DVhrTr3v.js +2 -0
  123. package/dist/owletto/dist/assets/{schema-type-editor-panel-C0_9VcSs.js → schema-type-editor-panel-Bdeumkux.js} +2 -2
  124. package/dist/owletto/dist/assets/schema-value-BUgC0Ro8.js +3 -0
  125. package/dist/owletto/dist/assets/{settings-CP4PjMQA.js → settings-DYYvrrZ4.js} +2 -2
  126. package/dist/owletto/dist/assets/skill-route-key-sF006xiz.js +2 -0
  127. package/dist/owletto/dist/assets/source-record-panels-CBV9tsR3.js +2 -0
  128. package/dist/owletto/dist/assets/status-variants-DT61YfsU.js +2 -0
  129. package/dist/owletto/dist/assets/{table-BUqshjxa.js → table-B6yimlsZ.js} +2 -2
  130. package/dist/owletto/dist/assets/{use-automations-BLNjxq2K.js → use-automations-II_YJWtN.js} +2 -2
  131. package/dist/owletto/dist/assets/{use-login-redirect-CmyQW7GT.js → use-login-redirect-BqtEilid.js} +2 -2
  132. package/dist/owletto/dist/assets/{use-mention-search-dn3ws1WB.js → use-mention-search-Bxlpd6Dp.js} +3 -3
  133. package/dist/owletto/dist/assets/view-param-filters-DYlqBocg.js +2 -0
  134. package/dist/owletto/dist/assets/views-access-required-BVtMfgLh.js +2 -0
  135. package/dist/owletto/dist/index.html +2 -2
  136. package/dist/server-main.bundle.mjs +5680 -4005
  137. package/npm-shrinkwrap.json +99 -99
  138. package/package.json +1 -1
  139. package/vendor/connector-sdk/package.json +1 -1
  140. package/vendor/core/dist/contracts/tools/view-host.d.ts +7 -0
  141. package/vendor/core/dist/contracts/tools/view-host.js +28 -0
  142. package/vendor/core/dist/contracts/tools/view-runtime.d.ts +2 -4
  143. package/vendor/core/dist/contracts/tools/view-runtime.js +19 -7
  144. package/vendor/core/package.json +11 -1
  145. package/vendor/views/dist/api.d.ts +9 -4
  146. package/vendor/views/dist/api.js +33 -2
  147. package/vendor/views/dist/bridge.d.ts +8 -0
  148. package/vendor/views/dist/bridge.js +12 -2
  149. package/vendor/views/dist/components.d.ts +4 -2
  150. package/vendor/views/dist/components.js +29 -14
  151. package/vendor/views/dist/index.d.ts +1 -1
  152. package/vendor/views/dist/index.js +1 -1
  153. package/vendor/views/dist/native.d.ts +327 -0
  154. package/vendor/views/dist/native.js +57 -0
  155. package/vendor/views/package.json +1 -1
  156. package/dist/owletto/dist/assets/_-CCWuGXtQ.js +0 -2
  157. package/dist/owletto/dist/assets/_-DOJW1D-I.js +0 -3
  158. package/dist/owletto/dist/assets/_agentId-CJhQbi6k.js +0 -2
  159. package/dist/owletto/dist/assets/_agentId-DD4K1i6V.js +0 -2
  160. package/dist/owletto/dist/assets/_automationId-Cbd7B0mP.js +0 -2
  161. package/dist/owletto/dist/assets/_connectorKey._connectionId-DFpPep9B.js +0 -2
  162. package/dist/owletto/dist/assets/_connectorKey.index-n3iSDT74.js +0 -2
  163. package/dist/owletto/dist/assets/_conversationId-B1yGIGA9.js +0 -2
  164. package/dist/owletto/dist/assets/_eventId-B1H0-vD7.js +0 -2
  165. package/dist/owletto/dist/assets/_name-D30_V03t.js +0 -2
  166. package/dist/owletto/dist/assets/_owner-Be8O41u8.js +0 -3
  167. package/dist/owletto/dist/assets/_shape-C6YbloRh.js +0 -2
  168. package/dist/owletto/dist/assets/_skillKey-BMPvvoOI.js +0 -2
  169. package/dist/owletto/dist/assets/_slug-Bc4YIEA2.js +0 -2
  170. package/dist/owletto/dist/assets/_view-aoFDwEld.js +0 -2
  171. package/dist/owletto/dist/assets/_viewKey-DuNHc3cc.js +0 -2
  172. package/dist/owletto/dist/assets/_viewKey-rJ7A1zNx.js +0 -2
  173. package/dist/owletto/dist/assets/activity-route-view-DN0ZEAzr.js +0 -2
  174. package/dist/owletto/dist/assets/agent-card-controls-C5jNWgfq.js +0 -2
  175. package/dist/owletto/dist/assets/agent-editor-form-CdA5vLr8.js +0 -2
  176. package/dist/owletto/dist/assets/agent-guardrails-route-BJyfalBY.js +0 -2
  177. package/dist/owletto/dist/assets/agent-list-row-rF5LH-3k.js +0 -2
  178. package/dist/owletto/dist/assets/agent-permissions-matrix-bP1Qihv7.js +0 -2
  179. package/dist/owletto/dist/assets/agent-skills-route-Bv5luNdw.js +0 -2
  180. package/dist/owletto/dist/assets/agent-tab-intro-ednTs4WF.js +0 -2
  181. package/dist/owletto/dist/assets/agents-DY2S2SGE.js +0 -2
  182. package/dist/owletto/dist/assets/agents-workbench-bPTjdVS1.js +0 -2
  183. package/dist/owletto/dist/assets/app._appId-DrL5H5lB.js +0 -2
  184. package/dist/owletto/dist/assets/automation-detail-content-dFy1Huas.js +0 -2
  185. package/dist/owletto/dist/assets/automation-row-DCHM--aD.js +0 -2
  186. package/dist/owletto/dist/assets/automations-DY2S2SGE.js +0 -2
  187. package/dist/owletto/dist/assets/calendar-Ck0yOLYu.js +0 -2
  188. package/dist/owletto/dist/assets/code-editor-DNuRKde1.js +0 -16
  189. package/dist/owletto/dist/assets/connect-CMcEQWls.js +0 -2
  190. package/dist/owletto/dist/assets/connect-menu-C-B-1xGR.js +0 -2
  191. package/dist/owletto/dist/assets/connect._clientId-tGipxP5a.js +0 -2
  192. package/dist/owletto/dist/assets/connected._clientId-DSGU78eV.js +0 -2
  193. package/dist/owletto/dist/assets/connected._clientId.activity-CPLbry8R.js +0 -2
  194. package/dist/owletto/dist/assets/connected._clientId.index-jSnGvzYs.js +0 -2
  195. package/dist/owletto/dist/assets/connection-feed-detail-BIlkK0Pd.js +0 -2
  196. package/dist/owletto/dist/assets/connection-label-BobuYiAG.js +0 -2
  197. package/dist/owletto/dist/assets/connections-browser-V-3td9DB.js +0 -2
  198. package/dist/owletto/dist/assets/connector-boxes-lFc-WP83.js +0 -2
  199. package/dist/owletto/dist/assets/connector-scope-lists--vNdbOn0.js +0 -2
  200. package/dist/owletto/dist/assets/create-BmKx5vq3.js +0 -2
  201. package/dist/owletto/dist/assets/create-Rt0RbiD4.js +0 -2
  202. package/dist/owletto/dist/assets/create-automation-form-PEmSLMD6.js +0 -3
  203. package/dist/owletto/dist/assets/create._connectorKey-DcxhYIYC.js +0 -2
  204. package/dist/owletto/dist/assets/device-pin-tombstone-C79KIAIK.js +0 -2
  205. package/dist/owletto/dist/assets/device._deviceId-CIaoq9co.js +0 -2
  206. package/dist/owletto/dist/assets/entity-avatar-TVKjZxWQ.js +0 -2
  207. package/dist/owletto/dist/assets/entity-options-daOOQo7O.js +0 -2
  208. package/dist/owletto/dist/assets/entity-page-BfJXvbxn.js +0 -2
  209. package/dist/owletto/dist/assets/entity-type-page-BLwH6qa7.js +0 -2
  210. package/dist/owletto/dist/assets/event-card-DVUB8my6.js +0 -2
  211. package/dist/owletto/dist/assets/events-feed-B9CZHI_P.js +0 -2
  212. package/dist/owletto/dist/assets/filter-bar-wPaR12SS.js +0 -2
  213. package/dist/owletto/dist/assets/guardrails-Csusrok2.js +0 -2
  214. package/dist/owletto/dist/assets/identity-Dmg3STO8.js +0 -2
  215. package/dist/owletto/dist/assets/index--ZWegctR.js +0 -2
  216. package/dist/owletto/dist/assets/index-BKrdVwW9.js +0 -2
  217. package/dist/owletto/dist/assets/index-BUBcNNUY.js +0 -2
  218. package/dist/owletto/dist/assets/index-BUDr4-Yv.js +0 -2
  219. package/dist/owletto/dist/assets/index-BYPQWVwD.js +0 -2
  220. package/dist/owletto/dist/assets/index-BfpaPJPj.js +0 -2
  221. package/dist/owletto/dist/assets/index-BicNFLBW.js +0 -2
  222. package/dist/owletto/dist/assets/index-Bsdv5aks.js +0 -2
  223. package/dist/owletto/dist/assets/index-CX0pJ9j9.js +0 -2
  224. package/dist/owletto/dist/assets/index-CsrT07TJ.js +0 -2
  225. package/dist/owletto/dist/assets/index-DdBTTN3y.js +0 -7899
  226. package/dist/owletto/dist/assets/index-DdYWarql.css +0 -1
  227. package/dist/owletto/dist/assets/index-JYEIN8nM.js +0 -2
  228. package/dist/owletto/dist/assets/json-diff-BaLL4Fsu.js +0 -14
  229. package/dist/owletto/dist/assets/list-skeleton-CXDLkYTg.js +0 -2
  230. package/dist/owletto/dist/assets/manage-gear-D8LMhehh.js +0 -2
  231. package/dist/owletto/dist/assets/memory-browse-page-CNZJbCJC.js +0 -74
  232. package/dist/owletto/dist/assets/model-jL871x2J.js +0 -2
  233. package/dist/owletto/dist/assets/models-jdemgIZk.js +0 -2
  234. package/dist/owletto/dist/assets/nav-pill-DrFkuyUQ.js +0 -2
  235. package/dist/owletto/dist/assets/new-CcJOd5aH.js +0 -2
  236. package/dist/owletto/dist/assets/new-OWwrYckd.js +0 -2
  237. package/dist/owletto/dist/assets/peek-pane-content-D68BjguQ.js +0 -2
  238. package/dist/owletto/dist/assets/permissions-BvA9SATv.js +0 -2
  239. package/dist/owletto/dist/assets/proposal-review-shell-D6KABxah.js +0 -2
  240. package/dist/owletto/dist/assets/public-shell-ready-BIVCHQHe.js +0 -2
  241. package/dist/owletto/dist/assets/record-activity-C9gVBbF0.js +0 -2
  242. package/dist/owletto/dist/assets/renderer-DXfJaCCa.js +0 -97
  243. package/dist/owletto/dist/assets/run-activity-link-CaIBSRQj.js +0 -2
  244. package/dist/owletto/dist/assets/run-initiator-BvzQJYW9.js +0 -2
  245. package/dist/owletto/dist/assets/runs-panel-DEnZHTa5.js +0 -2
  246. package/dist/owletto/dist/assets/runs-table-XGnxJl7S.js +0 -2
  247. package/dist/owletto/dist/assets/settings-CgaUJMHH.js +0 -2
  248. package/dist/owletto/dist/assets/skills-D-e_h3a9.js +0 -2
  249. package/dist/owletto/dist/assets/source-record-panels-Bh0n4gGw.js +0 -2
  250. package/dist/owletto/dist/assets/status-dot-Cpq63I7p.js +0 -2
  251. package/dist/owletto/dist/assets/use-scroll-sentinel-DRyBMueA.js +0 -2
  252. package/dist/owletto/dist/assets/view-param-filters-CER47Tlz.js +0 -2
  253. package/dist/owletto/dist/assets/views-access-required-C_b9itZ2.js +0 -2
@@ -1,7 +1,7 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Component, createContext, useCallback, useContext, useEffect, useMemo, useRef, useState, } from "react";
3
3
  import { createRoot } from "react-dom/client";
4
- import { ViewBridge } from "./bridge.js";
4
+ import { ViewBridge, ViewBridgeError, } from "./bridge.js";
5
5
  export function defineView(def) {
6
6
  if (!def || typeof def.key !== "string" || def.key.length === 0) {
7
7
  throw new Error("defineView({ key, attach, ... }) requires a non-empty key");
@@ -32,6 +32,7 @@ export function useHost() {
32
32
  ready: rt.ready,
33
33
  theme: rt.theme,
34
34
  openLink: rt.openLink,
35
+ openRecord: rt.openRecord,
35
36
  displayMode: rt.displayMode,
36
37
  container: rt.container,
37
38
  requestDisplayMode: rt.requestDisplayMode,
@@ -511,7 +512,7 @@ class RenderBoundary extends Component {
511
512
  render() {
512
513
  if (!this.state.error)
513
514
  return this.props.children;
514
- return (_jsxs("div", { role: "alert", style: { padding: 12, color: "var(--fg)" }, children: ["This view failed to render: ", this.state.error.message] }));
515
+ return (_jsxs("div", { role: "alert", "data-lobu-render-error": "true", style: { padding: 12, color: "var(--fg)" }, children: ["This view failed to render: ", this.state.error.message] }));
515
516
  }
516
517
  }
517
518
  /**
@@ -631,6 +632,34 @@ export function Provider({ def, bridge, children, }) {
631
632
  if (error)
632
633
  throw new Error(error);
633
634
  }, []);
635
+ const openRecord = useCallback(async (record, options) => {
636
+ const b = bridgeRef.current;
637
+ if (!b?.isConnected())
638
+ throw new Error("Not connected to a host");
639
+ try {
640
+ return await b.openRecord(record, options?.mode ?? "peek");
641
+ }
642
+ catch (error) {
643
+ // Only an unsupported extension falls back. A host refusal stays a refusal.
644
+ if (!(error instanceof ViewBridgeError) || error.code !== -32601)
645
+ throw error;
646
+ }
647
+ const response = await b.callTool("manage_entity", {
648
+ ...record,
649
+ action: "get",
650
+ });
651
+ const error = resultError(response);
652
+ if (error)
653
+ throw new Error(error);
654
+ const result = (response.structuredContent ??
655
+ parseTextJson(response));
656
+ if (!result?.entity?.view_url)
657
+ throw new Error("The host did not return a record URL.");
658
+ const failed = resultError(await b.openLink(result.entity.view_url));
659
+ if (failed)
660
+ throw new Error(failed);
661
+ return { mode: "page" };
662
+ }, []);
634
663
  const requestDisplayMode = useCallback(async (mode) => {
635
664
  const b = bridgeRef.current;
636
665
  if (!b?.isConnected())
@@ -649,6 +678,7 @@ export function Provider({ def, bridge, children, }) {
649
678
  dataVersion,
650
679
  callTool,
651
680
  openLink,
681
+ openRecord,
652
682
  displayMode,
653
683
  container,
654
684
  requestDisplayMode,
@@ -663,6 +693,7 @@ export function Provider({ def, bridge, children, }) {
663
693
  dataVersion,
664
694
  callTool,
665
695
  openLink,
696
+ openRecord,
666
697
  displayMode,
667
698
  container,
668
699
  requestDisplayMode,
@@ -13,6 +13,11 @@
13
13
  * "2.0", method, params }`. Anything else in the inbox is ignored, exactly
14
14
  * like the SDK's transport.
15
15
  */
16
+ import type { EntityGetInput } from "@lobu/core/contracts/tools/manage-entity";
17
+ export declare class ViewBridgeError extends Error {
18
+ readonly code: number;
19
+ constructor(message: string, code: number);
20
+ }
16
21
  export interface ToolResult {
17
22
  isError?: boolean;
18
23
  structuredContent?: unknown;
@@ -117,6 +122,9 @@ export declare class ViewBridge {
117
122
  * reads `structuredContent`; the boolean-only hook on the card path is
118
123
  * what this deliberately does not copy). */
119
124
  callTool(name: string, args: Record<string, unknown>): Promise<ToolResult>;
125
+ openRecord(record: EntityGetInput, mode: "peek" | "page"): Promise<{
126
+ mode: "peek" | "page";
127
+ }>;
120
128
  /** Read one `resources/read` URI and return the first text payload. The
121
129
  * generic loader uses this to fetch `ui://lobu/views/<key>` through the
122
130
  * host instead of a custom message. */
@@ -13,7 +13,14 @@
13
13
  * "2.0", method, params }`. Anything else in the inbox is ignored, exactly
14
14
  * like the SDK's transport.
15
15
  */
16
- import { VIEW_WORKSPACE_META_KEY } from "@lobu/core/contracts/tools/view-runtime";
16
+ import { VIEW_OPEN_RECORD_METHOD, VIEW_WORKSPACE_META_KEY, } from "@lobu/core/contracts/tools/view-host";
17
+ export class ViewBridgeError extends Error {
18
+ code;
19
+ constructor(message, code) {
20
+ super(message);
21
+ this.code = code;
22
+ }
23
+ }
17
24
  /** Event notifications worth replaying to the mounted guest (context merges
18
25
  * into adopted state instead; anything else is ignored). */
19
26
  const HANDOFF_NOTIFICATIONS = new Set([
@@ -192,6 +199,9 @@ export class ViewBridge {
192
199
  : {}),
193
200
  });
194
201
  }
202
+ openRecord(record, mode) {
203
+ return this.request(VIEW_OPEN_RECORD_METHOD, { record, mode });
204
+ }
195
205
  /** Read one `resources/read` URI and return the first text payload. The
196
206
  * generic loader uses this to fetch `ui://lobu/views/<key>` through the
197
207
  * host instead of a custom message. */
@@ -304,7 +314,7 @@ export class ViewBridge {
304
314
  this.pending.delete(id);
305
315
  clearTimeout(pending.timer);
306
316
  if ("error" in data && isRecord(data.error)) {
307
- pending.reject(new Error(String(data.error.message ?? "Host request failed")));
317
+ pending.reject(new ViewBridgeError(String(data.error.message ?? "Host request failed"), Number(data.error.code)));
308
318
  return;
309
319
  }
310
320
  pending.resolve(data.result);
@@ -135,8 +135,9 @@ export declare function Sparkline({ values, width, height, label, }: {
135
135
  /**
136
136
  * A link the host opens: `href="deal/acme-renewal"` opens that record
137
137
  * (relative links resolve against the workspace root, see
138
- * `useHost().openLink`), a full URL opens a new tab. The sandboxed frame
139
- * cannot navigate itself, so every click goes through the host, modifier
138
+ * `useHost().openLink`). On Lobu hosts, supported same-workspace links open
139
+ * the peek pane; other app links navigate normally and external URLs open a new
140
+ * tab. The sandboxed frame cannot navigate itself, so every click goes through the host, modifier
140
141
  * clicks included; the anchor still shows the resolved address on hover.
141
142
  */
142
143
  export declare function Link({ href, children, }: {
@@ -167,4 +168,5 @@ export declare function TruncatedNotice({ shown, total, }: {
167
168
  }): import("react/jsx-runtime").JSX.Element;
168
169
  /** Format large counts compactly (1.2K, 3.4M). Plain numbers pass through. */
169
170
  export declare function formatCompact(value: number): string;
171
+ export * from "./native.js";
170
172
  //# sourceMappingURL=components.d.ts.map
@@ -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