@lobu/runtime-server 24.5.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 (235) 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/_-DT3E3BmS.js +3 -0
  10. package/dist/owletto/dist/assets/_-c1xy7bLu.js +2 -0
  11. package/dist/owletto/dist/assets/_agentId-CTfoi0-7.js +2 -0
  12. package/dist/owletto/dist/assets/_agentId-DV8utajn.js +2 -0
  13. package/dist/owletto/dist/assets/_automationId-DvP3qyYL.js +2 -0
  14. package/dist/owletto/dist/assets/_connectorKey._connectionId-CL5SivCn.js +2 -0
  15. package/dist/owletto/dist/assets/_connectorKey.index-tnMwC67b.js +2 -0
  16. package/dist/owletto/dist/assets/_conversationId-DXN_8m88.js +2 -0
  17. package/dist/owletto/dist/assets/_eventId-SdpFT7jB.js +2 -0
  18. package/dist/owletto/dist/assets/_name-CM1AMywz.js +2 -0
  19. package/dist/owletto/dist/assets/_owner-CaGsXXBW.js +3 -0
  20. package/dist/owletto/dist/assets/_shape-DGAkETDp.js +2 -0
  21. package/dist/owletto/dist/assets/_skillKey-Dd4ZHPY8.js +2 -0
  22. package/dist/owletto/dist/assets/_slug-cRvJQtNo.js +2 -0
  23. package/dist/owletto/dist/assets/_view-B5I7mmkl.js +2 -0
  24. package/dist/owletto/dist/assets/_viewKey-Bwn0dyLo.js +2 -0
  25. package/dist/owletto/dist/assets/_viewKey-YjSYD0wc.js +2 -0
  26. package/dist/owletto/dist/assets/{accept-invitation-pUl-c1KQ.js → accept-invitation-CQZQ0wwC.js} +2 -2
  27. package/dist/owletto/dist/assets/{activity-route-view-DN0ZEAzr.js → activity-route-view-CZykJXQp.js} +2 -2
  28. package/dist/owletto/dist/assets/{agent-card-controls-C5jNWgfq.js → agent-card-controls-DuQJhtqp.js} +2 -2
  29. package/dist/owletto/dist/assets/{agent-client-setup-list-DbXtJTsO.js → agent-client-setup-list-CpUTAjXf.js} +2 -2
  30. package/dist/owletto/dist/assets/{agent-connect-pages-DcTuiSt9.js → agent-connect-pages-Br_ycC0z.js} +2 -2
  31. package/dist/owletto/dist/assets/agent-editor-form-BXQBFHSv.js +2 -0
  32. package/dist/owletto/dist/assets/{agent-guardrails-route-BJyfalBY.js → agent-guardrails-route-CN7vpC0X.js} +2 -2
  33. package/dist/owletto/dist/assets/{agent-list-row-rF5LH-3k.js → agent-list-row-BnP6r4pm.js} +2 -2
  34. package/dist/owletto/dist/assets/{agent-loading-shells-ClY_O6lb.js → agent-loading-shells-_18OREnx.js} +2 -2
  35. package/dist/owletto/dist/assets/{agent-permissions-matrix-bP1Qihv7.js → agent-permissions-matrix-DSjidWHL.js} +2 -2
  36. package/dist/owletto/dist/assets/{agent-skill-context-BAaGpvfS.js → agent-skill-context-1DBn7Xc_.js} +2 -2
  37. package/dist/owletto/dist/assets/{agent-skills-route-Bv5luNdw.js → agent-skills-route-d5jh3oBR.js} +2 -2
  38. package/dist/owletto/dist/assets/{agent-tab-intro-ednTs4WF.js → agent-tab-intro-DKrC3SQt.js} +2 -2
  39. package/dist/owletto/dist/assets/{agent-thread-WNk2HapT.js → agent-thread-FyEO-y44.js} +3 -3
  40. package/dist/owletto/dist/assets/agents-kXojozTU.js +2 -0
  41. package/dist/owletto/dist/assets/{agents-workbench-bPTjdVS1.js → agents-workbench-CDpJmUVN.js} +2 -2
  42. package/dist/owletto/dist/assets/{app._appId-DrL5H5lB.js → app._appId-DwNeXRJp.js} +2 -2
  43. package/dist/owletto/dist/assets/{assist-composer-ClfFEVx7.js → assist-composer-Mn9EfX4X.js} +2 -2
  44. package/dist/owletto/dist/assets/automation-detail-content-Bs3vwAPd.js +2 -0
  45. package/dist/owletto/dist/assets/{automation-row-DCHM--aD.js → automation-row-B5Q1B10y.js} +2 -2
  46. package/dist/owletto/dist/assets/automation-source-list-Dhucq1sI.js +2 -0
  47. package/dist/owletto/dist/assets/automations-kXojozTU.js +2 -0
  48. package/dist/owletto/dist/assets/{callback-DRABUOha.js → callback-9xSHyA12.js} +2 -2
  49. package/dist/owletto/dist/assets/{card-Bdi7VEwo.js → card-g4yxo4Hr.js} +2 -2
  50. package/dist/owletto/dist/assets/{change-summary-PBoM6Asb.js → change-summary-DeuXQEpb.js} +2 -2
  51. package/dist/owletto/dist/assets/{claim-CUIG1Oc-.js → claim-B98IhDra.js} +2 -2
  52. package/dist/owletto/dist/assets/{client-activity-scopes-CXOWB5co.js → client-activity-scopes-BD2HBo-_.js} +2 -2
  53. package/dist/owletto/dist/assets/{client-rows-36VnmgMK.js → client-rows-x_CxeWkP.js} +2 -2
  54. package/dist/owletto/dist/assets/{clients-BJRcMk1A.js → clients-Cmp0LmOp.js} +2 -2
  55. package/dist/owletto/dist/assets/connect-menu-CezOH3s7.js +2 -0
  56. package/dist/owletto/dist/assets/connect-zUot_0kG.js +2 -0
  57. package/dist/owletto/dist/assets/connect._clientId-nsGxe6yO.js +2 -0
  58. package/dist/owletto/dist/assets/connected._clientId-DnclRRXk.js +2 -0
  59. package/dist/owletto/dist/assets/connected._clientId.activity-CDB8atTX.js +2 -0
  60. package/dist/owletto/dist/assets/{connected._clientId.index-jSnGvzYs.js → connected._clientId.index-DBNP2mZo.js} +2 -2
  61. package/dist/owletto/dist/assets/{connection-q1bdnxCN.js → connection-B6fM2KHN.js} +2 -2
  62. package/dist/owletto/dist/assets/{connection-feed-detail-BIlkK0Pd.js → connection-feed-detail-Ckq-qEbD.js} +2 -2
  63. package/dist/owletto/dist/assets/{connections-browser-V-3td9DB.js → connections-browser-BXsJqieG.js} +2 -2
  64. package/dist/owletto/dist/assets/{connector-boxes-lFc-WP83.js → connector-boxes-CbqSFeVm.js} +2 -2
  65. package/dist/owletto/dist/assets/{connector-page-shell-Cs1SjrYB.js → connector-page-shell-Di6XzkVo.js} +2 -2
  66. package/dist/owletto/dist/assets/{connector-provenance-aJFeeRIC.js → connector-provenance-BrnasBW4.js} +2 -2
  67. package/dist/owletto/dist/assets/{connector-scope-lists--vNdbOn0.js → connector-scope-lists-dQnZARCD.js} +2 -2
  68. package/dist/owletto/dist/assets/{connectors-BsvDMdsQ.js → connectors-DnOUxX_U.js} +2 -2
  69. package/dist/owletto/dist/assets/{consent-DJV78pnz.js → consent-Byli4yMs.js} +2 -2
  70. package/dist/owletto/dist/assets/{copy-button-DjMWgrBf.js → copy-button-Ddf7lBjZ.js} +2 -2
  71. package/dist/owletto/dist/assets/{core.esm-CQzL3ObT.js → core.esm-BsXtvNoI.js} +2 -2
  72. package/dist/owletto/dist/assets/create-B34eskZ_.js +2 -0
  73. package/dist/owletto/dist/assets/create-DLB9sXgU.js +2 -0
  74. package/dist/owletto/dist/assets/{create-jBEuveV1.js → create-YdAnh3ml.js} +2 -2
  75. package/dist/owletto/dist/assets/create-automation-form-C9PMX7N8.js +3 -0
  76. package/dist/owletto/dist/assets/create._connectorKey-Bz4OYRiC.js +2 -0
  77. package/dist/owletto/dist/assets/definition-comparison-B5WgZILB.js +2 -0
  78. package/dist/owletto/dist/assets/{device-Ba3RsIgb.js → device-DdCoCj-Q.js} +2 -2
  79. package/dist/owletto/dist/assets/device-pin-tombstone-B06J7Af1.js +2 -0
  80. package/dist/owletto/dist/assets/device._deviceId-Bh9S4bFp.js +2 -0
  81. package/dist/owletto/dist/assets/dynamic-schema-form-qWSRtOAv.js +2 -0
  82. package/dist/owletto/dist/assets/{entity-options-daOOQo7O.js → entity-options-BkU_En_f.js} +2 -2
  83. package/dist/owletto/dist/assets/entity-page-BPFDHY8q.js +2 -0
  84. package/dist/owletto/dist/assets/entity-pages-DxgbjLMt.js +2 -0
  85. package/dist/owletto/dist/assets/entity-type-page-D0ghgRgq.js +2 -0
  86. package/dist/owletto/dist/assets/event-card-CjA_dLzq.js +2 -0
  87. package/dist/owletto/dist/assets/{event-detail-DkY95e5b.js → event-detail-CmC-DVrK.js} +2 -2
  88. package/dist/owletto/dist/assets/{events-feed-B9CZHI_P.js → events-feed-CGzA1w3R.js} +2 -2
  89. package/dist/owletto/dist/assets/filter-bar-CQ_oE7a9.js +2 -0
  90. package/dist/owletto/dist/assets/{full-page-spinner-BqmckkOf.js → full-page-spinner-B5xXnKtV.js} +2 -2
  91. package/dist/owletto/dist/assets/guardrails-DkXatmea.js +2 -0
  92. package/dist/owletto/dist/assets/identity-BwJy3ixB.js +2 -0
  93. package/dist/owletto/dist/assets/{index--ZWegctR.js → index-35ehGReZ.js} +2 -2
  94. package/dist/owletto/dist/assets/index-B9hYiwBw.js +2 -0
  95. package/dist/owletto/dist/assets/{index-C186T2Rw.js → index-BDl1_w6U.js} +2 -2
  96. package/dist/owletto/dist/assets/{index-ijqrJaRB.js → index-BdNR51Ua.js} +2 -2
  97. package/dist/owletto/dist/assets/{index-DdBTTN3y.js → index-BjcZVe7n.js} +52 -52
  98. package/dist/owletto/dist/assets/{index-CsrT07TJ.js → index-BqAVebvY.js} +2 -2
  99. package/dist/owletto/dist/assets/index-BvK1fS1J.js +2 -0
  100. package/dist/owletto/dist/assets/{index-DdYWarql.css → index-CNEpTkgw.css} +1 -1
  101. package/dist/owletto/dist/assets/index-CRc73k1t.js +2 -0
  102. package/dist/owletto/dist/assets/index-CYGaSD3y.js +2 -0
  103. package/dist/owletto/dist/assets/index-CfZGe-zn.js +2 -0
  104. package/dist/owletto/dist/assets/{index-B0kw2lFL.js → index-CkiyxW4w.js} +2 -2
  105. package/dist/owletto/dist/assets/index-CzLDNB2E.js +2 -0
  106. package/dist/owletto/dist/assets/{index-BKrdVwW9.js → index-D-o5iOVd.js} +2 -2
  107. package/dist/owletto/dist/assets/index-DjYVV1Ml.js +2 -0
  108. package/dist/owletto/dist/assets/{index-ikp_mTsf.js → index-TkPy_P_u.js} +2 -2
  109. package/dist/owletto/dist/assets/index-VyAX-asP.js +2 -0
  110. package/dist/owletto/dist/assets/json-diff-DtZtra_g.js +28 -0
  111. package/dist/owletto/dist/assets/{list-skeleton-CXDLkYTg.js → list-skeleton-CIHWCi2a.js} +2 -2
  112. package/dist/owletto/dist/assets/{login-u6LCgDYG.js → login-TWR0vF4_.js} +2 -2
  113. package/dist/owletto/dist/assets/{logout-JhmuWJEH.js → logout-BA5kojS0.js} +2 -2
  114. package/dist/owletto/dist/assets/{manage-gear-D8LMhehh.js → manage-gear-C-0BAMbC.js} +2 -2
  115. package/dist/owletto/dist/assets/{member-scope-gate-4FQ0aanZ.js → member-scope-gate-BQiRAqtx.js} +2 -2
  116. package/dist/owletto/dist/assets/memory-browse-page-Ba32-vVL.js +74 -0
  117. package/dist/owletto/dist/assets/{model-jL871x2J.js → model-C2q7WDcS.js} +2 -2
  118. package/dist/owletto/dist/assets/{model-selector-CgU8SJMF.js → model-selector-B2cjCn0V.js} +2 -2
  119. package/dist/owletto/dist/assets/models-CZkH5gtj.js +2 -0
  120. package/dist/owletto/dist/assets/{nav-pill-DrFkuyUQ.js → nav-pill-Bam6s3jj.js} +2 -2
  121. package/dist/owletto/dist/assets/new-BJst6K0b.js +2 -0
  122. package/dist/owletto/dist/assets/{new-DgE1pVV0.js → new-Dc5Bbotb.js} +2 -2
  123. package/dist/owletto/dist/assets/new-DgbivfDe.js +2 -0
  124. package/dist/owletto/dist/assets/{organization-CKM_oFX3.js → organization-B9U1L-56.js} +2 -2
  125. package/dist/owletto/dist/assets/peek-pane-content-Cq8P38s3.js +2 -0
  126. package/dist/owletto/dist/assets/{pending-seed-sml8Uf6e.js → pending-seed-BP3xHM2d.js} +2 -2
  127. package/dist/owletto/dist/assets/{permissions-BvA9SATv.js → permissions-BVlbeY4u.js} +2 -2
  128. package/dist/owletto/dist/assets/proposal-review-shell-BED-DO9C.js +2 -0
  129. package/dist/owletto/dist/assets/public-shell-ready-Diq15_QW.js +2 -0
  130. package/dist/owletto/dist/assets/{record-activity-C9gVBbF0.js → record-activity-CTLwq8s1.js} +2 -2
  131. package/dist/owletto/dist/assets/{record-session-R-uHNuby.js → record-session-DOFgdd43.js} +2 -2
  132. package/dist/owletto/dist/assets/renderer-CHPS-1vD.js +96 -0
  133. package/dist/owletto/dist/assets/{reset-password-Mx3baeNc.js → reset-password-BmNM-apc.js} +2 -2
  134. package/dist/owletto/dist/assets/{run-activity-link-CaIBSRQj.js → run-activity-link-Dh1YyCfk.js} +2 -2
  135. package/dist/owletto/dist/assets/{run-initiator-BvzQJYW9.js → run-initiator-CCxNv0rK.js} +2 -2
  136. package/dist/owletto/dist/assets/{runs-fFJ1lPnw.js → runs-BntGAKQG.js} +2 -2
  137. package/dist/owletto/dist/assets/{runs-panel-DEnZHTa5.js → runs-panel-BwTVaRsE.js} +2 -2
  138. package/dist/owletto/dist/assets/{runs-table-XGnxJl7S.js → runs-table-CYS1jDdL.js} +2 -2
  139. package/dist/owletto/dist/assets/{schema-type-editor-panel-C0_9VcSs.js → schema-type-editor-panel-v3nR2Oa2.js} +2 -2
  140. package/dist/owletto/dist/assets/schema-value-BFb7jCBo.js +3 -0
  141. package/dist/owletto/dist/assets/settings-DBgT60nY.js +2 -0
  142. package/dist/owletto/dist/assets/{settings-CP4PjMQA.js → settings-DubSpJfg.js} +2 -2
  143. package/dist/owletto/dist/assets/skills-DDoeRGhJ.js +2 -0
  144. package/dist/owletto/dist/assets/{source-record-panels-Bh0n4gGw.js → source-record-panels-m8gECt82.js} +2 -2
  145. package/dist/owletto/dist/assets/{status-dot-Cpq63I7p.js → status-dot-BnQPFrcU.js} +2 -2
  146. package/dist/owletto/dist/assets/{table-BUqshjxa.js → table-DALHuXPE.js} +2 -2
  147. package/dist/owletto/dist/assets/{use-automations-BLNjxq2K.js → use-automations-D9hKpufo.js} +2 -2
  148. package/dist/owletto/dist/assets/{use-login-redirect-CmyQW7GT.js → use-login-redirect-ciwfc-7A.js} +2 -2
  149. package/dist/owletto/dist/assets/{use-mention-search-dn3ws1WB.js → use-mention-search-CJGCatFS.js} +2 -2
  150. package/dist/owletto/dist/assets/{use-scroll-sentinel-DRyBMueA.js → use-scroll-sentinel-BWCrmNIB.js} +2 -2
  151. package/dist/owletto/dist/assets/view-param-filters-CDvwie_f.js +2 -0
  152. package/dist/owletto/dist/assets/views-access-required-CZ1fvAks.js +2 -0
  153. package/dist/owletto/dist/index.html +2 -2
  154. package/dist/server-main.bundle.mjs +5596 -4000
  155. package/npm-shrinkwrap.json +99 -99
  156. package/package.json +1 -1
  157. package/vendor/connector-sdk/package.json +1 -1
  158. package/vendor/core/dist/contracts/tools/view-host.d.ts +7 -0
  159. package/vendor/core/dist/contracts/tools/view-host.js +28 -0
  160. package/vendor/core/dist/contracts/tools/view-runtime.d.ts +2 -4
  161. package/vendor/core/dist/contracts/tools/view-runtime.js +19 -7
  162. package/vendor/core/package.json +11 -1
  163. package/vendor/views/dist/api.d.ts +9 -4
  164. package/vendor/views/dist/api.js +33 -2
  165. package/vendor/views/dist/bridge.d.ts +8 -0
  166. package/vendor/views/dist/bridge.js +12 -2
  167. package/vendor/views/dist/components.d.ts +4 -2
  168. package/vendor/views/dist/components.js +29 -14
  169. package/vendor/views/dist/index.d.ts +1 -1
  170. package/vendor/views/dist/index.js +1 -1
  171. package/vendor/views/dist/native.d.ts +327 -0
  172. package/vendor/views/dist/native.js +57 -0
  173. package/vendor/views/package.json +1 -1
  174. package/dist/owletto/dist/assets/_-CCWuGXtQ.js +0 -2
  175. package/dist/owletto/dist/assets/_-DOJW1D-I.js +0 -3
  176. package/dist/owletto/dist/assets/_agentId-CJhQbi6k.js +0 -2
  177. package/dist/owletto/dist/assets/_agentId-DD4K1i6V.js +0 -2
  178. package/dist/owletto/dist/assets/_automationId-Cbd7B0mP.js +0 -2
  179. package/dist/owletto/dist/assets/_connectorKey._connectionId-DFpPep9B.js +0 -2
  180. package/dist/owletto/dist/assets/_connectorKey.index-n3iSDT74.js +0 -2
  181. package/dist/owletto/dist/assets/_conversationId-B1yGIGA9.js +0 -2
  182. package/dist/owletto/dist/assets/_eventId-B1H0-vD7.js +0 -2
  183. package/dist/owletto/dist/assets/_name-D30_V03t.js +0 -2
  184. package/dist/owletto/dist/assets/_owner-Be8O41u8.js +0 -3
  185. package/dist/owletto/dist/assets/_shape-C6YbloRh.js +0 -2
  186. package/dist/owletto/dist/assets/_skillKey-BMPvvoOI.js +0 -2
  187. package/dist/owletto/dist/assets/_slug-Bc4YIEA2.js +0 -2
  188. package/dist/owletto/dist/assets/_view-aoFDwEld.js +0 -2
  189. package/dist/owletto/dist/assets/_viewKey-DuNHc3cc.js +0 -2
  190. package/dist/owletto/dist/assets/_viewKey-rJ7A1zNx.js +0 -2
  191. package/dist/owletto/dist/assets/agent-editor-form-CdA5vLr8.js +0 -2
  192. package/dist/owletto/dist/assets/agents-DY2S2SGE.js +0 -2
  193. package/dist/owletto/dist/assets/automation-detail-content-dFy1Huas.js +0 -2
  194. package/dist/owletto/dist/assets/automations-DY2S2SGE.js +0 -2
  195. package/dist/owletto/dist/assets/calendar-Ck0yOLYu.js +0 -2
  196. package/dist/owletto/dist/assets/code-editor-DNuRKde1.js +0 -16
  197. package/dist/owletto/dist/assets/connect-CMcEQWls.js +0 -2
  198. package/dist/owletto/dist/assets/connect-menu-C-B-1xGR.js +0 -2
  199. package/dist/owletto/dist/assets/connect._clientId-tGipxP5a.js +0 -2
  200. package/dist/owletto/dist/assets/connected._clientId-DSGU78eV.js +0 -2
  201. package/dist/owletto/dist/assets/connected._clientId.activity-CPLbry8R.js +0 -2
  202. package/dist/owletto/dist/assets/create-BmKx5vq3.js +0 -2
  203. package/dist/owletto/dist/assets/create-Rt0RbiD4.js +0 -2
  204. package/dist/owletto/dist/assets/create-automation-form-PEmSLMD6.js +0 -3
  205. package/dist/owletto/dist/assets/create._connectorKey-DcxhYIYC.js +0 -2
  206. package/dist/owletto/dist/assets/device-pin-tombstone-C79KIAIK.js +0 -2
  207. package/dist/owletto/dist/assets/device._deviceId-CIaoq9co.js +0 -2
  208. package/dist/owletto/dist/assets/entity-avatar-TVKjZxWQ.js +0 -2
  209. package/dist/owletto/dist/assets/entity-page-BfJXvbxn.js +0 -2
  210. package/dist/owletto/dist/assets/entity-type-page-BLwH6qa7.js +0 -2
  211. package/dist/owletto/dist/assets/event-card-DVUB8my6.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-BUBcNNUY.js +0 -2
  216. package/dist/owletto/dist/assets/index-BUDr4-Yv.js +0 -2
  217. package/dist/owletto/dist/assets/index-BYPQWVwD.js +0 -2
  218. package/dist/owletto/dist/assets/index-BfpaPJPj.js +0 -2
  219. package/dist/owletto/dist/assets/index-BicNFLBW.js +0 -2
  220. package/dist/owletto/dist/assets/index-Bsdv5aks.js +0 -2
  221. package/dist/owletto/dist/assets/index-CX0pJ9j9.js +0 -2
  222. package/dist/owletto/dist/assets/index-JYEIN8nM.js +0 -2
  223. package/dist/owletto/dist/assets/json-diff-BaLL4Fsu.js +0 -14
  224. package/dist/owletto/dist/assets/memory-browse-page-CNZJbCJC.js +0 -74
  225. package/dist/owletto/dist/assets/models-jdemgIZk.js +0 -2
  226. package/dist/owletto/dist/assets/new-CcJOd5aH.js +0 -2
  227. package/dist/owletto/dist/assets/new-OWwrYckd.js +0 -2
  228. package/dist/owletto/dist/assets/peek-pane-content-D68BjguQ.js +0 -2
  229. package/dist/owletto/dist/assets/proposal-review-shell-D6KABxah.js +0 -2
  230. package/dist/owletto/dist/assets/public-shell-ready-BIVCHQHe.js +0 -2
  231. package/dist/owletto/dist/assets/renderer-DXfJaCCa.js +0 -97
  232. package/dist/owletto/dist/assets/settings-CgaUJMHH.js +0 -2
  233. package/dist/owletto/dist/assets/skills-D-e_h3a9.js +0 -2
  234. package/dist/owletto/dist/assets/view-param-filters-CER47Tlz.js +0 -2
  235. package/dist/owletto/dist/assets/views-access-required-C_b9itZ2.js +0 -2
@@ -79,41 +79,41 @@
79
79
 
80
80
  "@asteasolutions/zod-to-openapi": ["@asteasolutions/zod-to-openapi@9.1.0", "", { "dependencies": { "openapi3-ts": "^4.6.0" }, "peerDependencies": { "zod": "^4.0.0" } }, "sha512-pLMeRgRYS7/vZIgAAkOe2P6+XGTifR1MT9pqDoxZ11EmcJJ+DPmdPqLN8ZZF4U8R9KHCCQCS9c2wtuE8wSrfkw=="],
81
81
 
82
- "@aws-sdk/client-bedrock": ["@aws-sdk/client-bedrock@3.1161.0", "", { "dependencies": { "@aws-sdk/core": "^3.979.1", "@aws-sdk/credential-provider-node": "^3.972.92", "@aws-sdk/token-providers": "3.1161.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-KFTXKqUAXESSaxWC7tCMCKF8MupGC8Av9HaQkpixHeY/kFR2bcn018CtbbDCD7C0LcasJlazyD/5o+oycMA9ug=="],
82
+ "@aws-sdk/client-bedrock": ["@aws-sdk/client-bedrock@3.1162.0", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/credential-provider-node": "^3.972.93", "@aws-sdk/token-providers": "3.1162.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-NBaQh0+NtmMRIOnY5Ttoo0o7Uzwd2XY16iEcq1LdUL0vEVRG9iliz+9YPiEhhIBVB2O4l4VaJduozF/IQsClKA=="],
83
83
 
84
- "@aws-sdk/client-bedrock-runtime": ["@aws-sdk/client-bedrock-runtime@3.1161.0", "", { "dependencies": { "@aws-sdk/core": "^3.979.1", "@aws-sdk/credential-provider-node": "^3.972.92", "@aws-sdk/eventstream-handler-node": "^3.972.40", "@aws-sdk/middleware-eventstream": "^3.972.36", "@aws-sdk/middleware-websocket": "^3.972.62", "@aws-sdk/token-providers": "3.1161.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-kkH/bDt2AbEN+qpSNUstEbxY4KIsA2z70vGkA4w3f843sU/j998gyPkrMrAvkQDgzHCbfIgHvc1k+U+O37pc7w=="],
84
+ "@aws-sdk/client-bedrock-runtime": ["@aws-sdk/client-bedrock-runtime@3.1162.0", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/credential-provider-node": "^3.972.93", "@aws-sdk/eventstream-handler-node": "^3.972.40", "@aws-sdk/middleware-eventstream": "^3.972.36", "@aws-sdk/middleware-websocket": "^3.972.63", "@aws-sdk/token-providers": "3.1162.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-5JiQfVsvbQ4E/v7+E9dDF0VYp02OKdKceAJyBzK3H+Ia13ntMZFgD5YL/xpgNR2SuK89MxuwdU5ilAqiXbarKw=="],
85
85
 
86
- "@aws-sdk/client-secrets-manager": ["@aws-sdk/client-secrets-manager@3.1161.0", "", { "dependencies": { "@aws-sdk/core": "^3.979.1", "@aws-sdk/credential-provider-node": "^3.972.92", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-eSS+aK9GC/ZiL6OMuIoIUFCeVw60kpSR7dytSO8B6hkz6ghxnT6CWIUe6GOsyfrbezc41DjiiyhZlSYmM0g9kQ=="],
86
+ "@aws-sdk/client-secrets-manager": ["@aws-sdk/client-secrets-manager@3.1162.0", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/credential-provider-node": "^3.972.93", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-08LlSWeA0I/WZMlUOYXSGUhLK3AQGilrvyoBGezntKxZ9rj89MZaxQth64vnumbKwJJiEkF5i5mIIYHhviqnsA=="],
87
87
 
88
- "@aws-sdk/core": ["@aws-sdk/core@3.979.1", "", { "dependencies": { "@aws-sdk/types": "^3.975.0", "@aws-sdk/xml-builder": "^3.972.42", "@aws/lambda-invoke-store": "^0.3.0", "@smithy/core": "^3.38.0", "@smithy/signature-v4": "^5.7.5", "@smithy/types": "^4.19.0", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "sha512-ayOlV1VhLNMiq8PW9ZkVobG4gkldnUoHjG69yy2b8j+VYFlhz/uAL7ZdYQAoQ+eShtGUdNDnnG5rxDg6yUJrOg=="],
88
+ "@aws-sdk/core": ["@aws-sdk/core@3.980.0", "", { "dependencies": { "@aws-sdk/types": "^3.975.0", "@aws-sdk/xml-builder": "^3.972.42", "@aws/lambda-invoke-store": "^0.3.0", "@smithy/core": "^3.38.0", "@smithy/signature-v4": "^5.7.5", "@smithy/types": "^4.19.0", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "sha512-2RVSP/SsPS8HSPPzIPWNYFnSmlOdxx8VDlt5gDOuMaq9UiIi35pUyo6ZEuJcysjVCu0L8Lv5dJevLLpEkyF0/Q=="],
89
89
 
90
- "@aws-sdk/credential-provider-env": ["@aws-sdk/credential-provider-env@3.972.80", "", { "dependencies": { "@aws-sdk/core": "^3.979.1", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-uO5TiSvb6j1w9RTe5z28OaOmsrOxVQUPaC5+wZl50RfOXcrYD/KgnS8I9lfyGXc7sGbkCopK6VnhNIAoLqfewQ=="],
90
+ "@aws-sdk/credential-provider-env": ["@aws-sdk/credential-provider-env@3.972.81", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-VD+EVZ9UHNZhSm4KtakXZAPzgfOw4mRx66dAXNUtHcdJUisbsE7kpi1PRZFMquvuqVfx52fCDBgJgYyOFT/4hQ=="],
91
91
 
92
- "@aws-sdk/credential-provider-http": ["@aws-sdk/credential-provider-http@3.972.82", "", { "dependencies": { "@aws-sdk/core": "^3.979.1", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-vQzlDHlC24Yz42p+rT4NBoP/5VdetkBoujbOLq9h6QYWC8THuZSPYnXIR9OP3XcOrdMgPBBipOrdssfxnIiWUg=="],
92
+ "@aws-sdk/credential-provider-http": ["@aws-sdk/credential-provider-http@3.972.83", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-NsLT02HXcWAQAgpuDJznoJDPIDH/Hh2LiQVlYc+1bVGsksEUZuYCMKa1E1L5qvzc5LLTphp7BP9LYVIhf+MbQA=="],
93
93
 
94
- "@aws-sdk/credential-provider-ini": ["@aws-sdk/credential-provider-ini@3.973.25", "", { "dependencies": { "@aws-sdk/core": "^3.979.1", "@aws-sdk/credential-provider-env": "^3.972.80", "@aws-sdk/credential-provider-http": "^3.972.82", "@aws-sdk/credential-provider-login": "^3.972.87", "@aws-sdk/credential-provider-process": "^3.972.80", "@aws-sdk/credential-provider-sso": "^3.973.24", "@aws-sdk/credential-provider-web-identity": "^3.972.86", "@aws-sdk/nested-clients": "^3.997.54", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/credential-provider-imds": "^4.5.2", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-b5xl71uCRdWsu7P1VeGpiGuCf6zfYETsSNOv8AmYVTrsgbvTJRXdmmOPVfxkvGGVNsiKkGctClQW3jAn0SZLug=="],
94
+ "@aws-sdk/credential-provider-ini": ["@aws-sdk/credential-provider-ini@3.973.26", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/credential-provider-env": "^3.972.81", "@aws-sdk/credential-provider-http": "^3.972.83", "@aws-sdk/credential-provider-login": "^3.972.88", "@aws-sdk/credential-provider-process": "^3.972.81", "@aws-sdk/credential-provider-sso": "^3.973.25", "@aws-sdk/credential-provider-web-identity": "^3.972.87", "@aws-sdk/nested-clients": "^3.998.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/credential-provider-imds": "^4.5.2", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-vRydnN8wPqh5APe5R+/y4/UOts7QQQQP1UTczJq3fLcLzkQblbkYpLn+Srr8w9S/gzXU1pbiPKTv479unRawAA=="],
95
95
 
96
- "@aws-sdk/credential-provider-login": ["@aws-sdk/credential-provider-login@3.972.87", "", { "dependencies": { "@aws-sdk/core": "^3.979.1", "@aws-sdk/nested-clients": "^3.997.54", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-C4ZFmcwM+Zj14Z8huVUk54Gv4uzT1ZdzG9cY3Gdh8FePakq7Bss1OFsgZjAhWFOkFOGpBvFBeu0OWjWf8HNKRQ=="],
96
+ "@aws-sdk/credential-provider-login": ["@aws-sdk/credential-provider-login@3.972.88", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/nested-clients": "^3.998.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-J8IcBpuFj3j3RImHq/dVO5HtnUbFgvzg7JQvzLt5A42VmzLLgPLM+CUWN68jpIMdIPayu1bb1T+mJjDv9Sq1aA=="],
97
97
 
98
- "@aws-sdk/credential-provider-node": ["@aws-sdk/credential-provider-node@3.972.92", "", { "dependencies": { "@aws-sdk/credential-provider-env": "^3.972.80", "@aws-sdk/credential-provider-http": "^3.972.82", "@aws-sdk/credential-provider-ini": "^3.973.25", "@aws-sdk/credential-provider-process": "^3.972.80", "@aws-sdk/credential-provider-sso": "^3.973.24", "@aws-sdk/credential-provider-web-identity": "^3.972.86", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/credential-provider-imds": "^4.5.2", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-jC3zmOo7Qxlk+oBivvSsS1Ph7sFGm0QfuhqDGbqgRXi4cxUYMG+dWtBwS2XYYXgc8TIVXJiwgQ65sbNpbYupTA=="],
98
+ "@aws-sdk/credential-provider-node": ["@aws-sdk/credential-provider-node@3.972.93", "", { "dependencies": { "@aws-sdk/credential-provider-env": "^3.972.81", "@aws-sdk/credential-provider-http": "^3.972.83", "@aws-sdk/credential-provider-ini": "^3.973.26", "@aws-sdk/credential-provider-process": "^3.972.81", "@aws-sdk/credential-provider-sso": "^3.973.25", "@aws-sdk/credential-provider-web-identity": "^3.972.87", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/credential-provider-imds": "^4.5.2", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-f5Grg1sgckk11ojxZ7NUYG1ZCOvcNhuuPngKWVxOKGuZokj8eOmo/75+GyR6qAQx4wAGytglZ53r4a3UPleAPQ=="],
99
99
 
100
- "@aws-sdk/credential-provider-process": ["@aws-sdk/credential-provider-process@3.972.80", "", { "dependencies": { "@aws-sdk/core": "^3.979.1", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-xqfixO5aclje7tbQJDias+iNND5wp/3QZixCdZcVQpgWPTZ0V5DfTW9A804A5Z7ezu7sH3WRO+vzUjtiJBA8yg=="],
100
+ "@aws-sdk/credential-provider-process": ["@aws-sdk/credential-provider-process@3.972.81", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-6NBoFaNJbHB0YjcKW4WfrYIDmaMjtwbxlRreAf3MnXkD9WJX8XYu62pa78M0AQGgEt2TJmcNxqL3btAAjV67bA=="],
101
101
 
102
- "@aws-sdk/credential-provider-sso": ["@aws-sdk/credential-provider-sso@3.973.24", "", { "dependencies": { "@aws-sdk/core": "^3.979.1", "@aws-sdk/nested-clients": "^3.997.54", "@aws-sdk/token-providers": "3.1161.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-nlg3BKG03Cgzvv/dMnhxvDJPhAhQSpaN0RUdwgU7ziwkasoev7iI8el8Xy4Rd5sqzgaDUbV269fOXck5SargqA=="],
102
+ "@aws-sdk/credential-provider-sso": ["@aws-sdk/credential-provider-sso@3.973.25", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/nested-clients": "^3.998.0", "@aws-sdk/token-providers": "3.1162.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-p1fNaa3as6S2L0wrWqe1cEz1r4iGQa7GbW23KJE3rJy+ZZxhPr6pr9cyCAJ7fAnzoMELvQGZZAuv/rG1ogRuOQ=="],
103
103
 
104
- "@aws-sdk/credential-provider-web-identity": ["@aws-sdk/credential-provider-web-identity@3.972.86", "", { "dependencies": { "@aws-sdk/core": "^3.979.1", "@aws-sdk/nested-clients": "^3.997.54", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-zKTyLJBEyfQBVlYqT6Jt+mYV4r8kGbWM7dn6v4Y4MRARizhYafjDXP/iMu76UMRhToSPNmIKX1XAb24gtpBFIA=="],
104
+ "@aws-sdk/credential-provider-web-identity": ["@aws-sdk/credential-provider-web-identity@3.972.87", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/nested-clients": "^3.998.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-O2P6CUfMP2qi8vgYB6UHYj/NYTEAAdTr2geEVdVchr3JBofK4Q6W917FiVr2sleA72R59YAXMEhrpzPwkX/xdA=="],
105
105
 
106
106
  "@aws-sdk/eventstream-handler-node": ["@aws-sdk/eventstream-handler-node@3.972.40", "", { "dependencies": { "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-LR2mRKFb9EMlGHmJNXMtuMPvVQqN1b9/v68A1UQaE72pb8pHqiHxTtS++vaab8844YesGVzBVrloAis7+EXq/w=="],
107
107
 
108
108
  "@aws-sdk/middleware-eventstream": ["@aws-sdk/middleware-eventstream@3.972.36", "", { "dependencies": { "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-OkV+alDzmJ3DOs2mRPLSM9FUVSul7G1wkpKrbO+tyxxGOT7qLMPZHOlj4Ipjw9OayRmU7nMVPSFo7hvUqOSeJg=="],
109
109
 
110
- "@aws-sdk/middleware-websocket": ["@aws-sdk/middleware-websocket@3.972.62", "", { "dependencies": { "@aws-sdk/core": "^3.979.1", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/signature-v4": "^5.7.5", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-pNkKv8TlxEBpL26J8zpeHLzW//As72QapCPfciTs7k7H+ppFZxE/zVteAH9zdFI83Xx7Ki5rE0hJjVh+TmOH7g=="],
110
+ "@aws-sdk/middleware-websocket": ["@aws-sdk/middleware-websocket@3.972.63", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/signature-v4": "^5.7.5", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-fgY5UA9oeQYwxR5MyhIHUs9wGrXJGXLK71MQck1z3ArEb/GvQ0TmZm/RPs+cIbcaoKtIGqMb2u8AZ1rGFKYzKg=="],
111
111
 
112
- "@aws-sdk/nested-clients": ["@aws-sdk/nested-clients@3.997.54", "", { "dependencies": { "@aws-sdk/core": "^3.979.1", "@aws-sdk/signature-v4-multi-region": "^3.996.51", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-/OczlavsS7U5sOodRO10Ug4R/AKFVZiXTstKipWe68EfjPkmdDFNXNl9FCJyXWkg1DG6RBm3qAuVB8FNW9O8KQ=="],
112
+ "@aws-sdk/nested-clients": ["@aws-sdk/nested-clients@3.998.0", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/signature-v4-multi-region": "^3.996.51", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-aOD1oQVWG6UjOOEdp0MsrWE93vG8pPbvtymmeNtglGxAARplh1wzhHs4npqtY5JN5GBSrTaLbn1hQQ3W2Lk8ow=="],
113
113
 
114
114
  "@aws-sdk/signature-v4-multi-region": ["@aws-sdk/signature-v4-multi-region@3.996.51", "", { "dependencies": { "@aws-sdk/types": "^3.975.0", "@smithy/signature-v4": "^5.7.5", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-+aHvUugVBuMPXxgkPfWnTMyGdE/yWS8GHi5+qQ37HowS0YqzrbuaDLznj+Dtmtu5jgCdqz36gXmujOToUhNNWw=="],
115
115
 
116
- "@aws-sdk/token-providers": ["@aws-sdk/token-providers@3.1161.0", "", { "dependencies": { "@aws-sdk/core": "^3.979.1", "@aws-sdk/nested-clients": "^3.997.54", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-ypbXSofNcSHwf/KA40bFCXJb0MLaAKrfT7sot4dFaA+2lsuXNah4zLRJIAU7Qmvs9PFJ6rnY0bZFEC+mE7attA=="],
116
+ "@aws-sdk/token-providers": ["@aws-sdk/token-providers@3.1162.0", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/nested-clients": "^3.998.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-vOD6Ac0M43LtXaPu+/+wUMQCd27zIpKt/Le/a645qhx7T1MZeEK71PDhtIHGHgnQjGyNSfC6Z5RNud/hQb3veg=="],
117
117
 
118
118
  "@aws-sdk/types": ["@aws-sdk/types@3.975.0", "", { "dependencies": { "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-WQlhs6juByzWOzj5fwxOx0mPJaEqMcG/sDpl3Id61B3XhKE63xY+0QWcnG+sWR/sCfprmreyUo1lM7IKZmHMzw=="],
119
119
 
@@ -507,17 +507,17 @@
507
507
 
508
508
  "@slack/web-api": ["@slack/web-api@7.19.0", "", { "dependencies": { "@slack/logger": "^4.0.1", "@slack/types": "^2.21.0", "@types/node": ">=18", "@types/retry": "0.12.0", "axios": "^1.16.0", "eventemitter3": "^5.0.1", "form-data": "^4.0.4", "is-electron": "2.2.2", "is-stream": "^2", "p-queue": "^6", "p-retry": "^4", "retry": "^0.13.1" } }, "sha512-ItjyjEZml+LDH8CjcCLRLJHh7VZtevPKExrRN3l5KWyBliyDnGAeoO4Y+K+fFBmRpKLYVPgqWMX4THldv2HVtA=="],
509
509
 
510
- "@smithy/core": ["@smithy/core@3.38.1", "", { "dependencies": { "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-U/mB2XiwTLaf+NSgLSWwJfptsMT/H8aBi0aTAA/E5e2/TagFeGCqAyhKGG0w0A9IWTkm4qYEmLoD/HB6aYfnRA=="],
510
+ "@smithy/core": ["@smithy/core@3.39.0", "", { "dependencies": { "@smithy/types": "^4.20.0", "tslib": "^2.6.2" } }, "sha512-JJ/46AWQ4ipS1N2eZmUj7yzIhH8NhQIfAE+dce7NSB6dmFh+7hvD4pbofcoT4I0Xzfy/LNhZx3V2QhwYyAiqdg=="],
511
511
 
512
512
  "@smithy/credential-provider-imds": ["@smithy/credential-provider-imds@4.5.2", "", { "dependencies": { "@smithy/core": "^3.33.2", "@smithy/types": "^4.17.2", "tslib": "^2.6.2" } }, "sha512-A9uSdn72ozbRUSit0eib0TW7nXuNPlaeM0zcGkJ+nE6tFcSDbnmtwoxbTCFBukVQcszDAyvsd7+rTduPTXpygg=="],
513
513
 
514
514
  "@smithy/fetch-http-handler": ["@smithy/fetch-http-handler@5.8.0", "", { "dependencies": { "@smithy/core": "^3.33.3", "@smithy/types": "^4.18.0", "tslib": "^2.6.2" } }, "sha512-ycSJu3tFAQ4v04CBB0agqFMVsSQ1iG3yw+SpgxRqKfaURpQD4CZ8Wn0zPMmSnOuTpTh65Vz+EA0rMrw089wvkA=="],
515
515
 
516
- "@smithy/node-http-handler": ["@smithy/node-http-handler@4.14.1", "", { "dependencies": { "@smithy/core": "^3.38.1", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-/T6E1jzCL0fErS9uq8JqES/5yYQQ4ppVmmYHwXw2nlov8KFzLb+3QqHR5iAun1BsuAB50IPxZliV8YMgghLwhA=="],
516
+ "@smithy/node-http-handler": ["@smithy/node-http-handler@4.14.2", "", { "dependencies": { "@smithy/core": "^3.39.0", "@smithy/types": "^4.20.0", "tslib": "^2.6.2" } }, "sha512-i1uORV1v3qBqP43ayRKzIdm1q5x14tf8N4Dd06/QUX1Szm6VxHMrTsu20X5E63UFsaNZCRjI4SXG0jDmqYa+3w=="],
517
517
 
518
518
  "@smithy/signature-v4": ["@smithy/signature-v4@5.7.5", "", { "dependencies": { "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-WPjdr5oWOk1LArpI4pavu+fSo+/evi0Re1olxGvqwuZopd4gYR1UGCi+Soyn/IjmafqbWs+ZC+3AKxJS3ZpwUg=="],
519
519
 
520
- "@smithy/types": ["@smithy/types@4.19.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-r7jh49VJxGerfAcTQA6gXcKc+98zOp/tqRwzYjgOE+iSQsP6cEU1hq2QzbuipmP68QtYdY9wKEhiCQZIzHgZ4Q=="],
520
+ "@smithy/types": ["@smithy/types@4.20.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-lCA6QG22dPk9ecHbv91jDQZsmtPUjdS1aE2Il6NNPqe7DrYc0dZQi6DhcESk2KYXH2sp5xbAcGdYMZDFnuzA2A=="],
521
521
 
522
522
  "@so-ric/colorspace": ["@so-ric/colorspace@1.1.6", "", { "dependencies": { "color": "^5.0.2", "text-hex": "1.0.x" } }, "sha512-/KiKkpHNOBgkFJwu9sh48LkHSMYGyuTcSFK/qMBdnOAlrRJzRSXAOFB5qwzaVQuDl8wAvHVMkaASQDReTahxuw=="],
523
523
 
@@ -0,0 +1,3 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/entity-page-BPFDHY8q.js","assets/index-BjcZVe7n.js","assets/index-CNEpTkgw.css","assets/entity-pages-DxgbjLMt.js","assets/renderer-CHPS-1vD.js","assets/schema-value-BFb7jCBo.js","assets/card-g4yxo4Hr.js","assets/table-DALHuXPE.js","assets/record-activity-CTLwq8s1.js","assets/filter-bar-CQ_oE7a9.js","assets/connection-label-BobuYiAG.js","assets/manage-gear-C-0BAMbC.js","assets/runs-BntGAKQG.js","assets/source-record-panels-m8gECt82.js","assets/event-card-CjA_dLzq.js","assets/definition-comparison-B5WgZILB.js","assets/automation-source-list-Dhucq1sI.js","assets/json-diff-DtZtra_g.js","assets/index-Vcq4gwWv.js","assets/run-initiator-CCxNv0rK.js","assets/use-automations-D9hKpufo.js","assets/clients-Cmp0LmOp.js","assets/change-summary-DeuXQEpb.js","assets/copy-button-Ddf7lBjZ.js","assets/agent-list-row-BnP6r4pm.js","assets/client-rows-x_CxeWkP.js","assets/automation-row-B5Q1B10y.js","assets/model-C2q7WDcS.js","assets/events-feed-CGzA1w3R.js","assets/client-activity-scopes-BD2HBo-_.js","assets/use-scroll-sentinel-BWCrmNIB.js","assets/agent-loading-shells-_18OREnx.js","assets/member-scope-gate-BQiRAqtx.js","assets/dynamic-schema-form-qWSRtOAv.js","assets/views-access-required-CZ1fvAks.js","assets/record-session-DOFgdd43.js","assets/view-param-filters-CDvwie_f.js","assets/app-bridge-C4nPtae3.js"])))=>i.map(i=>d[i]);
2
+ import{am as x,w as p,an as y,ao as j,ap as P,aq as g,q as R,s as f,t as v,j as e,r as w,ar as E,n as S,_}from"./index-BjcZVe7n.js";import{P as r}from"./public-shell-ready-Diq15_QW.js";const b=S(async()=>({default:(await _(async()=>{const{EntityPage:a}=await import("./entity-page-BPFDHY8q.js");return{EntityPage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37]))).EntityPage}));function c(){return e.jsx("div",{"data-public-loading":"true",children:e.jsx(E,{})})}function L(){const{owner:a}=x.useParams(),l=p({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}),{session:h,isReady:i}=R();return f({active:v({settled:!n,authReady:i,session:h,resolved:!!t,error:o}),owner:a}),n||!i&&!t?e.jsx(c,{}):o||!t||!t.entity?e.jsxs(e.Fragment,{children:[e.jsx(r,{}),e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[e.jsx("h1",{className:"text-2xl font-semibold",children:"Not Found"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"We couldn't resolve this path."})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(r,{}),e.jsx(w.Suspense,{fallback:e.jsx(c,{}),children:e.jsx(b,{namespace:t.workspace,path:t.path,entity:t.entity,viewKey:d})})]})}export{L as component};
3
+ //# sourceMappingURL=_-DT3E3BmS.js.map
@@ -0,0 +1,2 @@
1
+ import{gP as t,w as p,j as a,gQ as e,ao as s}from"./index-BjcZVe7n.js";import{A as n}from"./activity-route-view-CZykJXQp.js";import"./record-activity-CTLwq8s1.js";import"./filter-bar-CQ_oE7a9.js";import"./connection-label-BobuYiAG.js";import"./manage-gear-C-0BAMbC.js";import"./runs-BntGAKQG.js";import"./source-record-panels-m8gECt82.js";import"./event-card-CjA_dLzq.js";import"./definition-comparison-B5WgZILB.js";import"./automation-source-list-Dhucq1sI.js";import"./schema-value-BFb7jCBo.js";import"./json-diff-DtZtra_g.js";import"./index-Vcq4gwWv.js";import"./run-initiator-CCxNv0rK.js";import"./use-automations-D9hKpufo.js";import"./clients-Cmp0LmOp.js";import"./renderer-CHPS-1vD.js";import"./card-g4yxo4Hr.js";import"./table-DALHuXPE.js";import"./change-summary-DeuXQEpb.js";import"./copy-button-Ddf7lBjZ.js";import"./agent-list-row-BnP6r4pm.js";import"./client-rows-x_CxeWkP.js";import"./automation-row-B5Q1B10y.js";import"./model-C2q7WDcS.js";import"./events-feed-CGzA1w3R.js";import"./client-activity-scopes-BD2HBo-_.js";import"./use-scroll-sentinel-BWCrmNIB.js";import"./agent-loading-shells-_18OREnx.js";import"./member-scope-gate-BQiRAqtx.js";import"./runs-panel-BwTVaRsE.js";import"./runs-table-CYS1jDdL.js";import"./nav-pill-Bam6s3jj.js";import"./public-shell-ready-Diq15_QW.js";function O(){const{owner:o}=t.useParams(),r=p({select:m=>m.pathname}),i=t.useSearch();return a.jsx(n,{owner:o,search:i,entityScope:e(s(r,1)).path})}export{O as component};
2
+ //# sourceMappingURL=_-c1xy7bLu.js.map
@@ -0,0 +1,2 @@
1
+ import{c as L,gW as P,r as u,j as n,i as w,cx as k,q as D,at as E,bb as M,b2 as N,d1 as R,cP as O,gX as $,gY as B,bk as Q,E as W}from"./index-BjcZVe7n.js";import{L as q,A as z}from"./agent-thread-FyEO-y44.js";import{n as C}from"./agent-thread-storage-U6htL3ad.js";import{A as F,C as H}from"./agent-loading-shells-_18OREnx.js";import"./app-bridge-C4nPtae3.js";import"./pending-seed-BP3xHM2d.js";import"./use-mention-search-CJGCatFS.js";import"./index-Vcq4gwWv.js";import"./use-automations-D9hKpufo.js";import"./event-card-CjA_dLzq.js";import"./definition-comparison-B5WgZILB.js";import"./automation-source-list-Dhucq1sI.js";import"./schema-value-BFb7jCBo.js";import"./json-diff-DtZtra_g.js";import"./run-initiator-CCxNv0rK.js";import"./clients-Cmp0LmOp.js";import"./renderer-CHPS-1vD.js";import"./card-g4yxo4Hr.js";import"./table-DALHuXPE.js";import"./change-summary-DeuXQEpb.js";import"./copy-button-Ddf7lBjZ.js";import"./agent-list-row-BnP6r4pm.js";import"./client-rows-x_CxeWkP.js";import"./automation-row-B5Q1B10y.js";import"./model-C2q7WDcS.js";import"./connection-label-BobuYiAG.js";import"./events-feed-CGzA1w3R.js";import"./client-activity-scopes-BD2HBo-_.js";import"./use-scroll-sentinel-BWCrmNIB.js";function U({owner:e,agent:s,threadId:t,afterMessagesContent:m,className:r,initialDraft:h,newChatRequested:p=!1,preventAutoNavigate:f}){const o=L(),i=s.agentId,{data:a=[]}=P(i,{orgSlug:e}),[l,x]=u.useState(()=>C()),[g,A]=u.useState(null);u.useEffect(()=>{!p||t||(x(C()),A(null),o({to:".",search:(d=>{const{new:b,...y}=d;return y}),replace:!0}))},[p,t,o]);const v=u.useMemo(()=>!g||a.some(d=>d.id===g.id)?a:[g,...a],[a,g]),c=t??l,T=!t||!v.some(d=>d.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 d=k(e,i,c);o({...d,replace:!0})},[v,c,o,e,i]),S=u.useCallback(()=>{T&&!f&&j()},[T,j,f]);return n.jsx("div",{className:w("flex min-h-0 flex-1 flex-col",r),children:n.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:n.jsx(q,{agentId:i,workspaceSlug:e,thread:c,loadHistory:!!t,onFirstUserMessage:S,initialDraft:h,children:n.jsx(z,{afterMessagesContent:m})},`${i}:${c}`)})})}function X({owner:e,agentId:s,threadId:t,initialDraft:m,newChatRequested:r,afterMessagesContent:h,preventAutoNavigate:p}){const{isAuthenticated:f}=D(),{isMember:o,isLoading:i}=E(),a=f&&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(F,{}):A?n.jsx(U,{owner:e,agent:A,threadId:t,initialDraft:m,newChatRequested:r,afterMessagesContent:h,preventAutoNavigate:p,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 Y(e){return[...e].sort((s,t)=>t.updatedAt-s.updatedAt)[0]}function _({owner:e,agentId:s,threadId:t,initialDraft:m,forceComposer:r=!1,newChatRequested:h=!1,afterMessagesContent:p,preventAutoNavigate:f}){const o=L(),{data:i=[],isLoading:a}=O($(e,s,{strict:!1})),l=u.useMemo(()=>Y(i),[i]);return u.useEffect(()=>{if(t||r||a||!l)return;const x=k(e,s,l.id);o({...x,replace:!0})},[s,a,l,o,e,t,r]),!t&&!r&&(a||l)?n.jsx(H,{}):n.jsx(X,{owner:e,agentId:s,threadId:t,initialDraft:m,newChatRequested:h,afterMessagesContent:p,preventAutoNavigate:f})}function Ct(){const{owner:e,agentId:s}=B.useParams(),{threadId:t}=Q({strict:!1}),{new:m,prompt:r}=W({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(_,{owner:e,agentId:s,threadId:t,initialDraft:r,forceComposer:!t,newChatRequested:!!m})})})}export{Ct as component};
2
+ //# sourceMappingURL=_agentId-CTfoi0-7.js.map
@@ -0,0 +1,2 @@
1
+ import{hI as r,j as m}from"./index-BjcZVe7n.js";import{A as p}from"./agents-workbench-CDpJmUVN.js";import"./agent-editor-form-BXQBFHSv.js";import"./definition-comparison-B5WgZILB.js";import"./automation-source-list-Dhucq1sI.js";import"./schema-value-BFb7jCBo.js";import"./json-diff-DtZtra_g.js";import"./index-Vcq4gwWv.js";import"./model-selector-B2cjCn0V.js";import"./proposal-review-shell-BED-DO9C.js";import"./runs-BntGAKQG.js";import"./nav-pill-Bam6s3jj.js";function R(){const{owner:o,agentId:t}=r.useParams();return m.jsx(p,{owner:o,agentId:t})}export{R as component};
2
+ //# sourceMappingURL=_agentId-DV8utajn.js.map
@@ -0,0 +1,2 @@
1
+ import{c as k,v as A,aq as L,q as R,at as b,j as t,ak as C,al as _,gT as D,L as d,gU as P,d1 as S,S as $,B as u,eT as B,hz as g,az as O}from"./index-BjcZVe7n.js";import{A as y}from"./automation-detail-content-Bs3vwAPd.js";import{R as z}from"./run-activity-link-Dh1YyCfk.js";import{b as E}from"./use-automations-D9hKpufo.js";import"./create-automation-form-C9PMX7N8.js";import"./model-C2q7WDcS.js";import"./entity-options-BkU_En_f.js";import"./connection-label-BobuYiAG.js";import"./model-selector-B2cjCn0V.js";import"./skill-editor-D_W3QlRz.js";import"./json-diff-DtZtra_g.js";import"./index-Vcq4gwWv.js";import"./use-mention-search-CJGCatFS.js";import"./automation-source-list-Dhucq1sI.js";import"./proposal-review-shell-BED-DO9C.js";import"./runs-BntGAKQG.js";import"./events-feed-CGzA1w3R.js";import"./event-card-CjA_dLzq.js";import"./definition-comparison-B5WgZILB.js";import"./schema-value-BFb7jCBo.js";import"./run-initiator-CCxNv0rK.js";import"./clients-Cmp0LmOp.js";import"./renderer-CHPS-1vD.js";import"./card-g4yxo4Hr.js";import"./table-DALHuXPE.js";import"./change-summary-DeuXQEpb.js";import"./copy-button-Ddf7lBjZ.js";import"./agent-list-row-BnP6r4pm.js";import"./client-rows-x_CxeWkP.js";import"./automation-row-B5Q1B10y.js";import"./client-activity-scopes-BD2HBo-_.js";import"./use-scroll-sentinel-BWCrmNIB.js";function T({owner:a,automationId:e,view:s,runId:o}){const r=k(),{orgContext:x,hasOrgContext:h}=A(),{data:f,isLoading:m}=L(`/${a}`,x),{isAuthenticated:v}=R(),{isLoading:c}=b(),j=f?.workspace?.id??"",N=v?!h||m||c:m||c,i=E(e,void 0,j).data?.automation,n=i?.automation_name??"Automation",l=()=>void r({to:"/$owner/automations",params:{owner:a}}),w=()=>void r({to:"/$owner/automations/$automationId",params:{owner:a,automationId:e},search:{view:"definition",run_id:void 0},replace:!0}),p=!o&&s==="definition";return t.jsx(C,{className:"gap-6 pt-2.5 pb-8",children:t.jsxs(_,{className:"flex min-w-0 flex-col gap-4",children:[t.jsx(D,{crumbs:[t.jsx(d,{to:"/$owner/automations",params:{owner:a},className:P,children:"Automations"},"automations")],current:o?"Review change":n}),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(S,{className:"h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":!0}),N&&!i?t.jsx($,{className:"h-5 w-40"}):o?"Review change":n]})}),t.jsxs("div",{className:"flex items-center gap-2",children:[p?t.jsx(z,{owner:a,filters:{automationIds:[Number(e)],bucket:"automation"},name:n}):null,o?null:p?t.jsx(u,{type:"button",variant:"ghost",size:"sm",className:"h-8 text-muted-foreground hover:text-foreground",onClick:l,children:"Done"}):t.jsx(u,{asChild:!0,variant:"ghost",size:"sm",className:"h-8 gap-1.5",children:t.jsxs(d,{to:"/$owner/automations/$automationId",params:{owner:a,automationId:e},search:{view:"definition",run_id:void 0},children:[t.jsx(B,{className:"h-3.5 w-3.5"}),"Edit"]})})]})]}),t.jsx(y,{owner:a,agentId:i?.managed_agent_id??null,automationId:e,view:s,runId:o,onDone:o?l:w})]})})}function vt(){const{owner:a,automationId:e}=g.useParams(),s=g.useSearch();return t.jsx(O,{owner:a,children:()=>t.jsx(T,{owner:a,automationId:e,view:s.view,runId:s.run_id})})}export{vt as component};
2
+ //# sourceMappingURL=_automationId-DvP3qyYL.js.map
@@ -0,0 +1,2 @@
1
+ import{iT as I,j as e,az as V,c as z,aG as J,aH as Q,cD as q,d3 as X,S as E,B as Y,L as p,aJ as Z,iE as K,iF as ee,aW as ne,gU as x,gi as se,gS as oe,b8 as te,i4 as ae,gT as ie,aQ as re,F as ce}from"./index-BjcZVe7n.js";import{R as de,c as me,C as le}from"./device-pin-tombstone-B06J7Af1.js";import{C as R}from"./connector-page-shell-Di6XzkVo.js";import{a as pe}from"./connector-provenance-BrnasBW4.js";import{f as ue,C as xe,F as he,a as fe,b as ve,A as je,c as Ce}from"./connection-feed-detail-Ckq-qEbD.js";import{S as De,g as Ne}from"./runs-table-CYS1jDdL.js";import{c as ge}from"./connection-label-BobuYiAG.js";import"./run-activity-link-Dh1YyCfk.js";import"./connector-scope-lists-dQnZARCD.js";import"./status-dot-BnQPFrcU.js";import"./entity-options-BkU_En_f.js";import"./event-card-CjA_dLzq.js";import"./definition-comparison-B5WgZILB.js";import"./automation-source-list-Dhucq1sI.js";import"./schema-value-BFb7jCBo.js";import"./json-diff-DtZtra_g.js";import"./index-Vcq4gwWv.js";import"./run-initiator-CCxNv0rK.js";import"./use-automations-D9hKpufo.js";import"./clients-Cmp0LmOp.js";import"./renderer-CHPS-1vD.js";import"./card-g4yxo4Hr.js";import"./table-DALHuXPE.js";import"./change-summary-DeuXQEpb.js";import"./copy-button-Ddf7lBjZ.js";import"./agent-list-row-BnP6r4pm.js";import"./client-rows-x_CxeWkP.js";import"./automation-row-B5Q1B10y.js";import"./model-C2q7WDcS.js";import"./feed-event-kinds-BYuZCoU4.js";function en(){const{owner:m,connectorKey:n,connectionId:v}=I.useParams(),{addFeed:t,feedId:r,settings:h,auth_result:a}=I.useSearch();return e.jsx(V,{owner:m,children:l=>e.jsx($e,{organizationId:l.organizationId,ownerSlug:l.ownerSlug,isWorkspaceLoading:l.isWorkspaceLoading,connectorKey:n,connectionId:Number(v),showAddFeed:t===!0,feedId:r,openSettings:h===!0,authResult:a})})}function $e({organizationId:m,ownerSlug:n,isWorkspaceLoading:v,connectorKey:t,connectionId:r,showAddFeed:h,feedId:a,openSettings:l,authResult:A}){const y=z(),{data:B=[]}=J(),{data:T=[],isLoading:M,isError:j,refetch:P}=Q(m??"",{connectorKey:t,connectionIds:[r]}),{data:g=[]}=q(m??""),{data:W=[],isLoading:S,isError:H,refetch:O}=X(a?r:null),s=T.find(i=>i.id===r),o=g.find(i=>i.key===t),c=a?W.find(i=>i.id===a):null;if(v||M||a&&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(E,{className:"h-7 w-56"}),e.jsx(E,{className:"h-4 w-24"})]}),e.jsx(de,{})]});if(j||a&&H)return e.jsxs("div",{role:"alert",className:"space-y-2",children:[e.jsxs("p",{children:["Could not load this ",j?"connection":"feed","."]}),e.jsx(Y,{variant:"outline",size:"sm",onClick:()=>void(j?P():O()),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:t},className:"mt-2 inline-block text-sm text-primary hover:underline",children:["Back to ",o?.name??t]})]});const $=ge({...s,connector_name:s.connector_name??o?.name??null}),C=!a&&!h,G=()=>void y({to:"/$owner/connectors/$connectorKey/$connectionId",params:{owner:n,connectorKey:t,connectionId:String(r)},search:{},replace:!0});let u,f=$,F,k,D;a?c?(f=ue(c,o),c.store==="channel_messages"?(u=e.jsx(xe,{feed:c,hideHeader:!0}),D="chat channel"):(F=e.jsx(he,{feed:c,ownerSlug:n}),k=e.jsx(fe,{feed:c}),u=e.jsx(ve,{feed:c,connectorDef:o,ownerSlug:n}))):(u=e.jsx("p",{className:"text-sm text-muted-foreground",children:"Feed not found."}),f="Feed"):h&&(u=e.jsx(je,{onClose:G,organizationId:m,connections:[s],connectorDefinitions:g}),f="Add feed",D=Ce);const d=B.find(i=>i.id===s.device_worker_id&&Z(i,n)),w=d?K(d):void 0,N=w?ee(n,w,ne()):void 0,_=[e.jsx(p,{to:"/$owner/connectors",params:{owner:n},className:x,children:"Connectors"},"connectors"),...d&&N?[e.jsx(p,{to:"/$owner/connectors/app/$appId",params:{owner:n,appId:N.id},className:x,children:N.name},"app"),e.jsx(p,{to:"/$owner/connectors/device/$deviceId",params:{owner:n,deviceId:d.id},className:x,children:se(d)},"device")]:[e.jsx(p,{to:"/$owner/connectors/$connectorKey",params:{owner:n,connectorKey:t},search:{},className:x,children:o?.name??t},"connector")]];C||_.push(e.jsx(p,{to:"/$owner/connectors/$connectorKey/$connectionId",params:{owner:n,connectorKey:t,connectionId:String(r)},search:{},className:x,children:$},"connection"));const b=C?me(s):null,U=D??b??void 0,L=e.jsx(oe,{breadcrumb:e.jsx(ie,{crumbs:_}),icon:o?e.jsx(te,{icon:o.icon,name:o.name,faviconDomain:o.favicon_domain??ae(o.auth_schema)}):null,title:f,status:F??e.jsx(De,{status:Ne(s.status),showDot:!0,children:s.status}),meta:k,caption:U,captionTone:b?"error":"muted"});return C?d&&o&&re(o)?e.jsx(ce,{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:L,children:[e.jsx(pe,{connectorDef:o,connectorKey:t,ownerSlug:n,deviceWorkerId:s.device_worker_id,deviceLabel:s.device_label}),e.jsx(le,{embedded:!0,connection:s,connectorDef:o,ownerSlug:n,openSettings:l,authResult:A},s.id)]}):e.jsx(R,{header:L,children:e.jsx("div",{className:"mt-0",children:u})})}export{en as component};
2
+ //# sourceMappingURL=_connectorKey._connectionId-CL5SivCn.js.map
@@ -0,0 +1,2 @@
1
+ import{aD as Ae,aE as Se,aF as Pe,aO as le,aL as ee,hP as He,gk as Qe,j as e,B as j,L,aN as oe,gS as se,gT as te,gU as M,hQ as Ge,a6 as Ze,hR as J,r as u,hS as Ne,hT as $e,cO as Je,hU as ye,bt as U,hV as be,H as k,bl as es,bm as ss,bn as ts,bo as as,bp as ns,hL as rs,I as $,bP as X,ab as z,A as Ce,hW as is,hX as ls,ek as os,hY as cs,bc as ce,hZ as ds,h_ as us,h$ as Ee,i0 as De,i1 as _e,dh as Fe,V as _,W as ae,i2 as ms,f_ as hs,i3 as xs,eI as Le,S as w,gl as T,b8 as de,i4 as ps,c as q,i5 as js,dT as gs,dV as fs,dU as vs,i6 as Y,i7 as Ns,az as ys,u as Be,gn as Re,i8 as bs,aR as Cs,i9 as ks,ia as ws,gj as As,aC as ke,aB as Ss,aH as Ps,b4 as $s,al as F,ez as Ke,b9 as Oe,b5 as Es,i as Ds}from"./index-BjcZVe7n.js";import{C as _s,A as Fs}from"./connect-menu-CezOH3s7.js";import{C as Ls,A as Ie,a as Ue}from"./connections-browser-BXsJqieG.js";import{C as ne}from"./connector-page-shell-Di6XzkVo.js";import{C as Bs}from"./connector-provenance-BrnasBW4.js";import{R as Rs}from"./run-activity-link-Dh1YyCfk.js";import"./connection-label-BobuYiAG.js";import"./status-dot-BnQPFrcU.js";function Ks({ownerSlug:s,familyKind:t,familyId:n}){const a=t==="inference",l=Ae({enabled:a}),d=Se({enabled:a}),h=Pe({enabled:!a}),c=a?l:h,o=a?d.data?.find(r=>r.slug===n)?.displayName??n:le(n),p=(a?(l.data??[]).filter(r=>r.kind===n).map(r=>({key:`${ee}${r.slug}`,name:r.displayName||r.slug,status:[r.isDefault?"Default":null,r.status].filter(Boolean).join(" · ")})):(h.data?.sandboxes??[]).filter(r=>r.providerKind===n).map(r=>({key:`${He}${r.id}`,name:r.name,status:r.connected?"Connected":"Needs credentials"}))).map(r=>({id:r.key,name:r.name,description:r.status,tone:null,link:Qe({to:"/$owner/connectors/$connectorKey",params:{owner:s,connectorKey:r.key},search:{}})})),m=`${a?ee:oe}${n}`;return e.jsx(ne,{header:e.jsx(se,{title:o,breadcrumb:e.jsx(te,{crumbs:[e.jsx(L,{to:"/$owner/connectors",params:{owner:s},className:M,children:"Connectors"},"connectors")]})}),children:e.jsx(Ls,{entries:p,isLoading:c.isLoading,isError:c.isError,onRetry:()=>void c.refetch(),action:a?e.jsx(j,{asChild:!0,variant:"outline",size:"sm",children:e.jsx(L,{to:"/$owner/connectors/$connectorKey",params:{owner:s,connectorKey:m},search:{addAccount:!0},children:"Add connection"})}):e.jsx(Ie,{ownerSlug:s,connectorKey:m})})})}function Os({catalog:s,initialProvider:t,initialSlug:n,allowOAuth:a=!0,initialModel:l,onDone:d}){const h=Ge(),c=Ze(),o=s.find(i=>i.slug===t)??s[0],p=a&&o&&J(o)?"oauth":"api-key",[m,r]=u.useState(o?.slug??""),[f,b]=u.useState(n??o?.slug??""),[x,N]=u.useState(o?.displayName??""),[v,A]=u.useState(o?.baseUrl??""),[D,S]=u.useState(l??o?.defaultModel??""),[E,V]=u.useState(""),[H,K]=u.useState(o?.apiKeyPlaceholder??""),[W,O]=u.useState(p),[B,Q]=u.useState(""),[C,re]=u.useState(null),[I,R]=u.useState(!1),[ue,me]=u.useState(!1),g=s.find(i=>i.slug===m),G=Ne(g?.modalities??[]),he=a&&!!g&&J(g),xe=g?$e(g):!1,pe=he&&W==="oauth",je=xe&&!pe,P=Je().slug,Z=u.useCallback(()=>{me(!0),c.invalidateQueries({queryKey:["inference-providers"]})},[c]),Me=u.useCallback(()=>{c.invalidateQueries({queryKey:["inference-providers"]}),d()},[c,d]),Te=u.useCallback(async()=>{if(!(!P||!g)){R(!0);try{const i=await ye(P,g.slug);if(i.mode!=="redirect")throw new Error("Unexpected sign-in mode");window.open(i.authorizeUrl,"_blank","noreferrer")}catch(i){U.error(i instanceof Error?i.message:"Failed to start sign-in")}finally{R(!1)}}},[P,g]),ze=u.useCallback(async()=>{if(!(!P||!g||!B.trim())){R(!0);try{const i=await be(P,g.slug,{code:B.trim()});if(i.status!=="success")throw new Error(i.error||"Sign-in not complete");Z(),U.success(`Signed in with ${g.displayName}`)}catch(i){U.error(i instanceof Error?i.message:"Failed to complete sign-in")}finally{R(!1)}}},[P,g,B,Z]),Ve=u.useCallback(async()=>{if(!(!P||!g)){R(!0);try{const i=await ye(P,g.slug);if(i.mode!=="device")throw new Error("Unexpected sign-in mode");re({userCode:i.userCode,deviceAuthId:i.deviceAuthId,verificationUrl:i.verificationUrl}),window.open(i.verificationUrl,"_blank","noreferrer")}catch(i){U.error(i instanceof Error?i.message:"Failed to start sign-in")}finally{R(!1)}}},[P,g]),We=u.useCallback(async()=>{if(!(!P||!g||!C)){R(!0);try{const i=await be(P,g.slug,{deviceAuthId:C.deviceAuthId,userCode:C.userCode});if(i.status==="success"){Z(),U.success(`Signed in with ${g.displayName}`);return}re(y=>y&&{...y,message:i.error||"Waiting for approval..."})}catch(i){U.error(i instanceof Error?i.message:"Failed to check status")}finally{R(!1)}}},[P,g,C,Z]),Xe=g?.supportedAuthTypes.includes("device-code")??!1,Ye=i=>{r(i);const y=s.find(ie=>ie.slug===i);y&&(b(y.slug),N(y.displayName),A(y.baseUrl),S(y.slug===t&&l?l:y.defaultModel??""),K(y.apiKeyPlaceholder),O(a&&J(y)?"oauth":"api-key"),Q(""),re(null),me(!1))},ge=/^[a-z0-9][a-z0-9-]*$/.test(f),fe=ge&&je&&E.trim().length>0&&!h.isPending,qe=i=>{if(i.preventDefault(),!fe)return;const y={};v.trim()&&(y.base_url=v.trim()),D.trim()&&(y.model=D.trim());const ie=Object.keys(y).length>0?{text:y}:void 0;h.mutate({slug:f.trim(),kind:m,displayName:x.trim()||void 0,apiKey:E.trim(),capabilities:ie},{onSuccess:()=>d()})},ve=!!(t&&s.some(i=>i.slug===t));return e.jsxs("div",{className:"space-y-3",children:[e.jsx("h3",{className:"text-sm font-medium",children:ve&&g?`Connect ${g.displayName}`:"Add an inference provider"}),e.jsxs("form",{onSubmit:qe,className:"grid max-w-md gap-3",children:[ve&&g?e.jsx("p",{className:"text-xs text-muted-foreground",children:G.length>0?`Serves text, plus ${G.join(", ").toLowerCase()}.`:"Serves text (chat)."}):e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:"ip-provider",children:"Provider"}),e.jsxs(es,{value:m,onValueChange:Ye,children:[e.jsx(ss,{id:"ip-provider",className:"w-full",children:e.jsx(ts,{})}),e.jsx(as,{children:s.map(i=>{const y=Ne(i.modalities);return e.jsx(ns,{value:i.slug,children:e.jsxs("span",{className:"flex items-center gap-2",children:[i.iconUrl?e.jsx("img",{src:i.iconUrl,alt:"",className:"h-4 w-4 shrink-0 rounded-sm",loading:"lazy"}):e.jsx(rs,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),i.displayName,y.length>0?e.jsxs("span",{className:"text-xs text-muted-foreground",children:["· ",y.join(", ")]}):null]})},i.slug)})})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:G.length>0?`Serves text, plus ${G.join(", ").toLowerCase()}.`:"Serves text (chat)."})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:"ip-display",children:"Name"}),e.jsx($,{id:"ip-display",placeholder:"Friendly name",value:x,onChange:i=>N(i.target.value)})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs(k,{htmlFor:"ip-slug",children:["Slug ",e.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}),e.jsx($,{id:"ip-slug",placeholder:"my-provider",value:f,onChange:i=>b(i.target.value),autoComplete:"off",required:!0}),f&&!ge?e.jsx("p",{className:"text-xs text-destructive",children:"Lowercase letters, numbers, and hyphens only."}):e.jsx("p",{className:"text-xs text-muted-foreground",children:"A stable identifier agents reference this provider by."})]}),he&&xe?e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{children:"Auth method"}),e.jsxs("div",{className:"inline-flex w-fit rounded-md border border-border p-1",children:[e.jsx(j,{type:"button",size:"sm",variant:W==="oauth"?"secondary":"ghost",onClick:()=>O("oauth"),children:"Sign in"}),e.jsx(j,{type:"button",size:"sm",variant:W==="api-key"?"secondary":"ghost",onClick:()=>O("api-key"),children:"API key"})]})]}):null,je?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:"ip-base-url",children:"Base URL"}),e.jsx($,{id:"ip-base-url",placeholder:"https://api.example.com/v1",value:v,onChange:i=>A(i.target.value),autoComplete:"off"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Override the upstream URL — e.g. a self-hosted vLLM, Azure, or LiteLLM endpoint."})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:"ip-model",children:"Default model"}),e.jsx($,{id:"ip-model",placeholder:"gpt-4o-mini",value:D,onChange:i=>S(i.target.value),autoComplete:"off"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs(k,{htmlFor:"ip-key",children:["API key ",e.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}),e.jsx($,{id:"ip-key",type:"password",placeholder:H||void 0,value:E,onChange:i=>V(i.target.value),autoComplete:"off",required:!0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Stored encrypted in the vault. It's never shown again — rotate it here if it changes."})]}),e.jsx(X,{onCancel:d,children:e.jsx(j,{type:"submit",disabled:!fe,children:h.isPending?e.jsxs(e.Fragment,{children:[e.jsx(z,{size:"lg",className:"mr-2"}),"Creating..."]}):"Create provider"})})]}):pe?e.jsxs("div",{className:"grid gap-3",children:[ue?e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Signed in with ",g?.displayName??"provider",". This covers your agents in this org."]}):Xe?e.jsxs("div",{className:"grid gap-2",children:[e.jsx(j,{type:"button",variant:"outline",className:"justify-self-start",onClick:()=>void Ve(),disabled:I||!P,children:C?"Get a new code":"Get device code"}),C?e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:"ip-device-code",children:"Device code"}),e.jsx($,{id:"ip-device-code",readOnly:!0,value:C.userCode}),e.jsx(j,{type:"button",variant:"default",className:"justify-self-start",asChild:!0,children:e.jsxs("a",{href:C.verificationUrl,target:"_blank",rel:"noreferrer",children:["Open ",g?.displayName??"provider"," to approve",e.jsx(Ce,{className:"h-4 w-4"})]})}),e.jsx("p",{className:"text-xs text-muted-foreground",children:C.message||"We opened the approval page. Enter the code above if asked, approve, then check status."}),e.jsx(j,{type:"button",variant:"outline",className:"justify-self-start",onClick:()=>void We(),disabled:I,children:I?"Checking...":"Check status"})]}):null]}):e.jsxs("div",{className:"grid gap-2",children:[e.jsxs(j,{type:"button",variant:"outline",className:"justify-self-start",onClick:()=>void Te(),disabled:I||!P,children:["Sign in with ",g?.displayName??"provider",e.jsx(Ce,{className:"h-4 w-4"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:"ip-oauth-code",children:"Paste code#state"}),e.jsx($,{id:"ip-oauth-code",placeholder:"code#state",value:B,onChange:i=>Q(i.target.value),autoComplete:"off"})]}),e.jsx(j,{type:"button",className:"justify-self-start",onClick:()=>void ze(),disabled:I||!B.trim(),children:I?"Finishing...":"Finish sign-in"})]}),e.jsx(X,{onCancel:d,children:e.jsx(j,{type:"button",onClick:Me,disabled:!ue,children:"Done"})})]}):e.jsxs("div",{className:"grid gap-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"This provider cannot be added from the catalog yet."}),e.jsx(X,{onCancel:d})]})]})]})}const Is={text:"Text",image:"Image",stt:"Speech-to-text",tts:"Text-to-speech"};function Us({provider:s,catalog:t,autoOpenEdit:n}){const a=is(),[l,d]=u.useState(n?"edit":null),h=ls(s.kind,t);u.useEffect(()=>{n&&d("edit")},[n]);const o=(t.find(r=>r.slug===s.kind)?.modalities??["text"]).filter(r=>r!=="text"),p=h&&o.length>0,m=r=>d(f=>f===r?null:r);return e.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3 px-3 py-2",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-sm font-medium",children:"Credential"}),e.jsxs("p",{className:"truncate text-[11px] text-muted-foreground",children:[s.slug,s.createdAt?` · created ${os(s.createdAt)}`:""]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[s.isDefault?null:e.jsx(j,{variant:"outline",size:"sm",className:"h-8 text-xs",disabled:a.isPending,onClick:()=>a.mutate({providerSlug:s.slug}),children:"Set as default"}),p?e.jsx(j,{variant:"outline",size:"sm",className:"h-8 text-xs",onClick:()=>m("capabilities"),children:"Configure"}):null,e.jsx(j,{variant:"outline",size:"sm",className:"h-8 text-xs",onClick:()=>m("edit"),children:"Edit"})]})]}),l==="edit"?e.jsx("div",{className:"border-t px-3 py-3",children:e.jsx(Ts,{provider:s,supportsUpstreamConfig:h,onDone:()=>d(null)})}):null,l==="capabilities"&&p?e.jsx("div",{className:"border-t px-3 py-3",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:"Other modalities (optional)"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"This provider's text base URL and model are set under Edit. Only set these if you want a modality routed to a different endpoint — otherwise it uses the provider's defaults."})]}),o.map(r=>e.jsx(zs,{providerSlug:s.slug,modality:r,block:s.capabilities[r]??{}},r))]})}):null]})}function Ms({provider:s,onDeleted:t}){const n=cs(),[a,l]=u.useState(!1);return e.jsxs("div",{className:"rounded-lg border border-destructive/30 bg-destructive/5 p-4",children:[e.jsx("p",{className:"text-sm font-medium",children:"Delete provider"}),e.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:["Removes ",s.displayName||s.slug," and its stored key from this workspace. Agents referencing it will need another connected provider before they can run."]}),e.jsx("div",{className:"mt-3",children:a?e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(j,{variant:"destructive",size:"sm",disabled:n.isPending,onClick:()=>n.mutate({providerSlug:s.slug},{onSuccess:t,onSettled:()=>l(!1)}),children:[n.isPending?e.jsx(z,{size:"md",className:"mr-1.5"}):null,"Confirm delete"]}),e.jsx(j,{variant:"ghost",size:"sm",disabled:n.isPending,onClick:()=>l(!1),children:"Cancel"})]}):e.jsxs(j,{variant:"outline",size:"sm",className:"text-destructive hover:text-destructive",disabled:n.isPending,onClick:()=>l(!0),children:[e.jsx(ce,{className:"mr-1.5 h-3.5 w-3.5"}),"Delete provider"]})})]})}function Ts({provider:s,supportsUpstreamConfig:t,onDone:n}){const a=ds(),l=us(),d=Ee(),[h,c]=u.useState(s.displayName??""),[o,p]=u.useState(""),m=s.capabilities.text??{},[r,f]=u.useState(m.base_url??""),[b,x]=u.useState(m.model??""),[N,v]=u.useState(null),A=h.trim().length>0&&h.trim()!==(s.displayName??""),D=t&&o.trim().length>0,S=r.trim()!==(m.base_url??""),E=b.trim()!==(m.model??""),V=t&&(S||E),H={base_url:r.trim()||void 0,model:b.trim()||void 0,models_endpoint:m.models_endpoint},K=De(H),W=t&&V&&_e(K),O=a.isPending||l.isPending||d.isPending,B=(A||D||V)&&!W&&!O,Q=async C=>{if(C.preventDefault(),!!B){v(null);try{await Promise.all([A?a.mutateAsync({providerSlug:s.slug,displayName:h.trim()}):Promise.resolve(),V?d.mutateAsync({providerSlug:s.slug,modality:"text",block:H}):Promise.resolve(),D?l.mutateAsync({providerSlug:s.slug,value:o.trim()}):Promise.resolve()]),n()}catch{v("Some changes could not be saved. Review the fields and try again.")}}};return e.jsxs("form",{onSubmit:Q,className:"grid max-w-md gap-3",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:`edit-name-${s.slug}`,children:"Name"}),e.jsx($,{id:`edit-name-${s.slug}`,value:h,onChange:C=>c(C.target.value),placeholder:s.slug}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["The slug (",e.jsx("code",{children:s.slug}),") is fixed — agents reference it."]})]}),t?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:`edit-base-${s.slug}`,children:"Base URL"}),e.jsx($,{id:`edit-base-${s.slug}`,placeholder:"https://api.example.com/v1",value:r,onChange:C=>f(C.target.value),autoComplete:"off"}),K.base_url?e.jsx("p",{className:"text-xs text-destructive",children:K.base_url}):null]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:`edit-model-${s.slug}`,children:"Default model"}),e.jsx($,{id:`edit-model-${s.slug}`,placeholder:"gpt-4o-mini",value:b,onChange:C=>x(C.target.value),autoComplete:"off"}),K.model?e.jsx("p",{className:"text-xs text-destructive",children:K.model}):null]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:`edit-key-${s.slug}`,children:"New API key"}),e.jsx($,{id:`edit-key-${s.slug}`,type:"password",value:o,onChange:C=>p(C.target.value),autoComplete:"off",placeholder:"Leave blank to keep the current key"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Enter a value only to replace the stored key. The old key is discarded."})]})]}):null,N?e.jsx("p",{className:"rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive",children:N}):null,e.jsx(X,{onCancel:n,children:e.jsx(j,{type:"submit",disabled:!B,children:O?e.jsxs(e.Fragment,{children:[e.jsx(z,{size:"lg",className:"mr-2"}),"Saving..."]}):"Save"})})]})}function zs({providerSlug:s,modality:t,block:n}){const a=Ee(),[l,d]=u.useState(!1),[h,c]=u.useState(n.base_url??""),[o,p]=u.useState(n.model??""),[m,r]=u.useState(n.models_endpoint??""),[f,b]=u.useState(!!n.models_endpoint),x=!!(n.base_url||n.model||n.models_endpoint),N={base_url:h.trim()||void 0,model:o.trim()||void 0,models_endpoint:m.trim()||void 0},v=De(N),A=_e(v),D=()=>{A||a.mutate({providerSlug:s,modality:t,block:N})};return e.jsxs("div",{className:Fe,children:[e.jsxs("button",{type:"button",className:"flex w-full items-center justify-between px-3 py-2 text-left",onClick:()=>d(S=>!S),children:[e.jsx("span",{className:"text-sm font-medium",children:Is[t]}),x?e.jsx(_,{variant:"outline",children:"Custom"}):e.jsx("span",{className:"text-xs text-muted-foreground",children:"Static"})]}),l?e.jsxs("div",{className:"grid gap-3 border-t px-3 py-3",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:`base-${s}-${t}`,children:"Base URL"}),e.jsx($,{id:`base-${s}-${t}`,placeholder:"https://api.example.com/v1",value:h,onChange:S=>c(S.target.value),autoComplete:"off"}),v.base_url?e.jsx("p",{className:"text-xs text-destructive",children:v.base_url}):null]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:`model-${s}-${t}`,children:"Model"}),e.jsx($,{id:`model-${s}-${t}`,placeholder:"gpt-4o-mini",value:o,onChange:S=>p(S.target.value),autoComplete:"off"}),v.model?e.jsx("p",{className:"text-xs text-destructive",children:v.model}):null]}),f?e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:`endpoint-${s}-${t}`,children:"Models endpoint"}),e.jsx($,{id:`endpoint-${s}-${t}`,placeholder:"/v1/models",value:m,onChange:S=>r(S.target.value),autoComplete:"off"}),v.models_endpoint?e.jsx("p",{className:"text-xs text-destructive",children:v.models_endpoint}):e.jsx("p",{className:"text-xs text-muted-foreground",children:"Path used to list this modality's models (e.g. /v1/models)."})]}):e.jsx("button",{type:"button",className:"justify-self-start text-xs text-muted-foreground hover:text-foreground",onClick:()=>b(!0),children:"Advanced"}),e.jsx(X,{onCancel:()=>d(!1),children:e.jsx(j,{size:"sm",disabled:A||a.isPending,onClick:D,children:a.isPending?e.jsxs(e.Fragment,{children:[e.jsx(z,{size:"lg",className:"mr-2"}),"Saving..."]}):"Save"})})]}):null]})}function Vs({sandbox:s}){const t=Object.entries(s.details??{});return e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{className:"rounded-lg border p-4 space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(Xs,{kind:s.providerKind}),e.jsx("span",{className:"text-sm font-medium",children:s.name}),e.jsx(_,{variant:"secondary",className:"h-4 px-1.5 py-0 text-[10px] uppercase tracking-wide",children:s.providerKind}),s.connected?e.jsx(_,{className:"h-4 border-transparent bg-emerald-500/10 px-1.5 py-0 text-[10px] uppercase tracking-wide text-emerald-500",children:"Connected"}):e.jsx(_,{variant:"destructive",className:"h-4 border-transparent bg-destructive/10 px-1.5 py-0 text-[10px] uppercase tracking-wide text-destructive",children:"No credential"})]}),t.length>0?e.jsx("p",{className:"font-mono text-[11px] text-muted-foreground",children:t.map(([n,a])=>`${n}: ${a}`).join(" | ")}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"Remote sandbox agents execute in instead of the built-in local runtime."}),s.connected?null:e.jsxs("div",{className:"flex gap-2 rounded-md border border-amber-200 bg-amber-50 p-3 text-sm text-amber-950 dark:border-amber-900/60 dark:bg-amber-950/30 dark:text-amber-100",children:[e.jsx(ae,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsx("p",{children:"This sandbox has no vault credential. Delete it and re-add the provider with a valid key, or set the credential via the API."})]})]})})}function Ws({sandbox:s,onDeleted:t}){const n=ms(),[a,l]=u.useState(!1);return e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{className:"rounded-lg border border-destructive/30 p-4 space-y-3",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(ce,{className:"mt-0.5 h-4 w-4 shrink-0 text-destructive"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium",children:"Remove sandbox"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Agents pinned to this runtime fall back to the built-in local sandbox."})]})]}),a?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(j,{variant:"destructive",size:"sm",disabled:n.isPending,onClick:()=>n.mutate({id:s.id},{onSuccess:t}),children:n.isPending?e.jsx(z,{}):"Delete permanently"}),e.jsx(j,{variant:"ghost",size:"sm",onClick:()=>l(!1),children:"Cancel"})]}):e.jsx(j,{variant:"outline",size:"sm",className:"text-destructive hover:text-destructive",onClick:()=>l(!0),children:"Delete sandbox"})]})})}function Xs({kind:s}){return s==="vercel"?e.jsxs("svg",{viewBox:"0 0 24 24",className:"h-4 w-4 shrink-0 fill-foreground","aria-hidden":!0,children:[e.jsx("title",{children:"Vercel"}),e.jsx("path",{d:"M12 3 22 20H2L12 3Z"})]}):s==="builtin"?e.jsx(hs,{className:"h-4 w-4 shrink-0 text-muted-foreground"}):e.jsx(xs,{className:"h-4 w-4 shrink-0 text-muted-foreground"})}const Ys={data:!1,chat:!1,actions:!1,audience:!1,inference:!0,runtime:!1},qs={data:!1,chat:!1,actions:!1,audience:!1,inference:!1,runtime:!0};function jt(){const{owner:s,connectorKey:t}=Y.useParams(),{instances:n}=Y.useSearch(),{kind:a,id:l}=Ns(t);return e.jsx(ys,{owner:s,children:({ownerSlug:d,organizationId:h,isWorkspaceLoading:c})=>{if(n&&(a==="inference"||a==="sandbox-provider"))return e.jsx(Ks,{ownerSlug:d,familyKind:a,familyId:l});switch(a){case"inference":return e.jsx(Gs,{ownerSlug:d,providerSlug:l});case"sandbox":return e.jsx(Qs,{ownerSlug:d,sandboxId:l});case"sandbox-provider":return e.jsx(Hs,{ownerSlug:d,providerKind:l});default:return e.jsx(st,{ownerSlug:d,organizationId:h,isWorkspaceLoading:c,connectorKey:t})}}})}function Hs({ownerSlug:s,providerKind:t}){const n=q();return u.useEffect(()=>{n({to:"/$owner/connectors/create/$connectorKey",params:{owner:s,connectorKey:`${oe}${t}`},replace:!0})},[n,s,t]),null}function Qs({ownerSlug:s,sandboxId:t}){const n=q(),{data:a,isLoading:l,isError:d,refetch:h}=Pe(),c=a?.sandboxes.find(p=>p.id===t)??null;if(l)return e.jsxs(F,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(w,{className:"h-6 w-6 rounded"}),e.jsx(w,{className:"h-5 w-40"})]}),e.jsx(w,{className:"h-24 w-full rounded-lg"})]});if(d)return e.jsx(F,{children:e.jsxs("div",{role:"alert",children:[e.jsx("p",{children:"Could not load this instance."}),e.jsx(j,{variant:"outline",onClick:()=>void h(),children:"Retry"})]})});if(!c)return e.jsxs(F,{className:"space-y-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"This sandbox isn't in this workspace, so its details aren't available."}),e.jsx(j,{variant:"outline",size:"sm",onClick:()=>void n({to:"/$owner/connectors",params:{owner:s}}),children:"Back to connectors"})]});const o=c.name||le(c.providerKind);return e.jsx("div",{className:"flex flex-1 flex-col",children:e.jsxs(ne,{header:e.jsx(se,{breadcrumb:e.jsx(te,{crumbs:[e.jsx(L,{to:"/$owner/connectors",params:{owner:s},className:M,children:"Connectors"},"connectors"),e.jsx(L,{to:"/$owner/connectors/$connectorKey",params:{owner:s,connectorKey:`${oe}${c.providerKind}`},search:{instances:!0},className:M,children:le(c.providerKind)},"family")]}),icon:e.jsx(de,{name:o,faviconDomain:Es(c.providerKind)}),title:o,badge:e.jsxs(e.Fragment,{children:[e.jsx(_,{variant:"secondary",children:c.providerKind}),c.connected?e.jsx(_,{className:"border-transparent bg-emerald-500/10 text-emerald-500",children:"Connected"}):e.jsx(_,{variant:"destructive",children:"No credential"})]}),status:e.jsx(Oe,{facets:qs})}),children:[e.jsx(Vs,{sandbox:c}),e.jsx(T,{title:"Settings",muted:!0,children:e.jsx(Ws,{sandbox:c,onDeleted:()=>void n({to:"/$owner/connectors",params:{owner:s}})})})]})})}function Gs({ownerSlug:s,providerSlug:t}){const n=q(),{model:a,reason:l,agentId:d,addAccount:h}=Y.useSearch(),{data:c=[],isLoading:o,isError:p,refetch:m}=Ae(),r=Se(),{data:f=[],isLoading:b}=r,x=h?null:c.find(E=>E.slug===t)??null,N=f.find(E=>E.slug===(x?.kind??t))??null;if(o||b)return e.jsx("div",{children:e.jsxs(F,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(w,{className:"h-6 w-6 rounded"}),e.jsx(w,{className:"h-5 w-40"})]}),e.jsx(w,{className:"h-16 w-full rounded-lg"}),e.jsx(w,{className:"h-24 w-full rounded-lg"}),e.jsx(w,{className:"h-32 w-full rounded-lg"})]})});if(p)return e.jsx(F,{children:e.jsxs("div",{role:"alert",children:[e.jsx("p",{children:"Could not load this account."}),e.jsx(j,{variant:"outline",onClick:()=>void m(),children:"Retry"})]})});if(!x&&!N&&!r.isError)return e.jsxs(F,{className:"space-y-3",children:[e.jsx(Ke,{connector:{key:t,name:t},showDescription:!1,className:"gap-2"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"This connector isn't installed in this workspace, so its details aren't available."})]});const v=x?x.displayName||x.slug:N?.displayName||t,A=x!==null,D=l?e.jsx(et,{agentId:d,model:a,providerName:v}):a?e.jsx(Js,{providerName:v,model:a,isConnected:A}):null,S=e.jsx(se,{breadcrumb:e.jsx(te,{crumbs:[e.jsx(L,{to:"/$owner/connectors",params:{owner:s},className:M,children:"Connectors"},"connectors"),...x?[e.jsx(L,{to:"/$owner/connectors/$connectorKey",params:{owner:s,connectorKey:`${ee}${x.kind}`},search:{instances:!0},className:M,children:N?.displayName??x.kind},"family")]:[]]}),icon:e.jsx(de,{iconUrl:N?.iconUrl,name:v}),title:v,badge:x?e.jsxs(e.Fragment,{children:[x.isDefault?e.jsx(_,{variant:"secondary",children:"Default"}):null,x.status?e.jsx(_,{variant:"outline",children:x.status}):null,x.hasCustomUpstream?e.jsx(_,{variant:"outline",children:"Custom upstream"}):null]}):null,status:e.jsx(Oe,{facets:Ys})});return e.jsx("div",{className:"flex flex-1 flex-col",children:e.jsxs(ne,{header:S,children:[D,e.jsx("div",{className:"space-y-6",children:x?e.jsx(Us,{provider:x,catalog:f,autoOpenEdit:!!a}):e.jsx(Zs,{ownerSlug:s,providerSlug:t,existingSlugs:c.map(E=>E.slug),catalog:f,catalogError:r.isError?r.error:null,model:a})}),x?e.jsx(T,{title:"Settings",muted:!0,children:e.jsx(Ms,{provider:x,onDeleted:()=>void n({to:"/$owner/connectors",params:{owner:s}})})}):null]})})}function Zs({ownerSlug:s,providerSlug:t,existingSlugs:n,catalog:a,catalogError:l,model:d}){const h=q(),c=a.find(m=>m.slug===t),o=n.includes(t)&&!!c&&J(c);let p=t;for(let m=2;n.includes(p);m++)p=`${t}-${m}`;return l?e.jsx("div",{className:"rounded-md border border-destructive/40 bg-destructive/5 p-3 text-sm text-destructive",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ae,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Failed to load provider catalog."}),e.jsx("p",{className:"mt-1 text-xs",children:l instanceof Error?l.message:"Check the workspace URL and try again."})]})]})}):e.jsxs("div",{className:"space-y-3 rounded-lg border p-4",children:[o&&e.jsxs("div",{className:"space-y-2 text-sm",children:[e.jsx("p",{children:"Subscription sign-in is managed on the existing connection."}),e.jsx(j,{asChild:!0,variant:"outline",size:"sm",children:e.jsx(L,{to:"/$owner/connectors/$connectorKey",params:{owner:s,connectorKey:`${ee}${t}`},search:{},children:"Open existing connection"})})]}),(!o||c&&$e(c))&&e.jsx(Os,{catalog:a,initialProvider:t,initialSlug:p,allowOAuth:!o,initialModel:d?.includes("/")?d.split("/").slice(1).join("/"):d,onDone:()=>void h({to:"/$owner/connectors",params:{owner:s}})},`${a.length}:${t}`)]})}function Js({providerName:s,model:t,isConnected:n}){return e.jsx("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-3 text-sm text-amber-950 dark:border-amber-900/60 dark:bg-amber-950/30 dark:text-amber-100",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ae,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsxs("p",{children:["Review ",e.jsx("strong",{children:s})," for model"," ",e.jsx("strong",{children:t}),"."," ",n?"Its edit controls are open.":"It is not connected yet; add it to continue."]})]})})}function et({agentId:s,model:t,providerName:n}){return e.jsx("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-3 text-sm text-amber-950 dark:border-amber-900/60 dark:bg-amber-950/30 dark:text-amber-100",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ae,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"font-medium",children:"This agent needs a model provider before it can reply."}),e.jsxs("p",{children:[s?e.jsxs("span",{children:["Agent ",e.jsx("strong",{children:s})," is"," "]}):null,"configured to use ",t?e.jsx("strong",{children:t}):"a model"," ","from ",e.jsx("strong",{children:n}),", but that provider is not ready in this workspace."]}),e.jsx("p",{children:"Connect the provider below, then retry the message."})]})]})})}function st({ownerSlug:s,organizationId:t,isWorkspaceLoading:n,connectorKey:a}){const{data:l=[],isLoading:d,isError:h,refetch:c}=Ss(t??""),{data:o=[],isLoading:p,isError:m,refetch:r}=Ps(t??"",{connectorKey:a}),{setup:f}=Y.useSearch(),b=Y.useNavigate(),x=u.useMemo(()=>l.find(A=>A.key===a),[l,a]),N=u.useMemo(()=>$s(a,l,{name:o[0]?.connector_name??a}),[a,l,o]);if(n||d)return e.jsx("div",{children:e.jsxs(F,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(w,{className:"h-6 w-6 rounded"}),e.jsx(w,{className:"h-5 w-40"})]}),e.jsx(w,{className:"h-16 w-full rounded-lg"}),e.jsx(w,{className:"h-24 w-full rounded-lg"}),e.jsx(w,{className:"h-32 w-full rounded-lg"})]})});if(h||m)return e.jsx(F,{children:e.jsxs("div",{role:"alert",className:"space-y-2",children:[e.jsx("p",{children:"Could not load this connector."}),e.jsx(j,{variant:"outline",onClick:()=>{c(),r()},children:"Retry"})]})});const v=x?e.jsx(at,{connector:x,ownerSlug:s,organizationId:t??void 0,connectionCount:o.length}):e.jsxs("div",{className:"space-y-3",children:[e.jsx(Ke,{connector:N,showDescription:!1,className:"gap-2"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["This connector isn't installed in this workspace, so its details aren't available.",o.length>0?" Existing connections keep working.":""]})]});return e.jsx("div",{className:"flex flex-1 flex-col",children:x&&t?e.jsx(tt,{hero:v,connector:x,organizationId:t,ownerSlug:s,connectorKey:a,connections:o,isLoading:p,openNewApp:f==="oauth_app",onNewAppHandled:()=>void b({search:A=>({...A,setup:void 0}),replace:!0})}):e.jsxs(F,{className:"space-y-6",children:[v,o.length>0&&!p?e.jsx(Ue,{section:!0,connections:o,ownerSlug:s,connectorKey:a}):p?e.jsx(w,{className:"h-8 w-40"}):e.jsx("div",{children:e.jsx(Ie,{ownerSlug:s,connectorKey:a})})]})})}function tt({hero:s,connector:t,organizationId:n,ownerSlug:a,connectorKey:l,connections:d,isLoading:h,openNewApp:c,onNewAppHandled:o}){const{isAdmin:p,isLoading:m}=Le(n),r=(t.operations_summary?.total??0)>0,f=e.jsx(_s,{connector:t,organizationId:n,ownerSlug:a,connections:d,openNewApp:c,onNewAppHandled:o});return e.jsxs(ne,{header:s,children:[h?e.jsx(w,{className:"h-8 w-40"}):d.length>0?e.jsx(Ue,{section:!0,connections:d,connector:t,ownerSlug:a,connectorKey:l,action:f}):f,e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:auto-cols-fr sm:grid-flow-col",children:[e.jsx(lt,{connector:t,organizationId:n,ownerSlug:a}),r&&m?e.jsx(w,{className:"h-20 w-full rounded-lg"}):r&&p?e.jsx(it,{connector:t,organizationId:n,ownerSlug:a}):r&&!p?e.jsx(T,{title:"Actions",muted:!0,children:e.jsx("p",{className:"text-sm text-muted-foreground",children:"Only workspace admins can view and configure connector actions."})}):null]}),e.jsx(nt,{connector:t,organizationId:n,ownerSlug:a})]})}function at({connector:s,ownerSlug:t,organizationId:n,connectionCount:a}){return e.jsx(se,{breadcrumb:e.jsx(te,{crumbs:[e.jsx(L,{to:"/$owner/connectors",params:{owner:t},className:M,children:"Connectors"},"connectors")]}),icon:e.jsx(de,{icon:s.icon,name:s.name,faviconDomain:s.favicon_domain??ps(s.auth_schema),className:"h-10 w-10"}),title:s.name,badge:e.jsxs(e.Fragment,{children:[e.jsx(Bs,{connectorDef:s,ownerSlug:t}),n?e.jsx(rt,{connector:s,organizationId:n,ownerSlug:t,connectionCount:a}):null]}),caption:s.description,meta:e.jsx(Rs,{owner:t,filters:{connectorKey:s.key},name:s.name})})}function nt({connector:s,organizationId:t,ownerSlug:n}){const a=bs(s.auth_schema),l=Cs(s.auth_schema),d=ks(s.auth_schema),h=ws(s.auth_schema),c=a.some(N=>N.type==="env_keys"),o=a.some(N=>N.type==="browser"),p=l.some(N=>N.type==="interactive"),m=!!(d||h||c||o),r=As(s),{data:f=[]}=ke(t,{connectorKey:s.key,profileKind:"env"}),{data:b=[]}=ke(t,{profileKind:"browser_session",connectorKey:s.key});return c&&f.length>0||o&&b.length>0||!m&&(r||p)?e.jsxs("div",{className:"space-y-6",children:[c&&f.length>0?e.jsx(we,{profiles:f,type:"env"}):null,o&&b.length>0?e.jsx(we,{profiles:b,type:"browser_session"}):null,m?null:r?e.jsx(T,{title:"Device runtime",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("p",{className:"text-sm text-muted-foreground",children:[s.name," runs on a linked device — there are no workspace credentials to configure here. Pair a device, then create a connection pinned to it."]}),e.jsx(j,{asChild:!0,variant:"outline",size:"sm",children:e.jsx(L,{to:"/$owner/connectors",params:{owner:n},search:{},children:"View devices"})})]})}):p?e.jsx(T,{title:"Authentication",children:e.jsxs("p",{className:"text-sm text-muted-foreground",children:[s.name," pairs when you create a connection — there is no workspace-level credential to configure here."]})}):null]}):null}function rt({connector:s,organizationId:t,ownerSlug:n,connectionCount:a}){const l=q(),{isAdmin:d}=Le(t),h=js(),[c,o]=u.useState(null),p=s.installed!==!1;if(!d||!p)return null;const m=a>0,r=h.isPending,f=()=>{o(null),h.mutate({connector_key:s.key},{onSuccess:()=>{l({to:"/$owner/connectors",params:{owner:n}})},onError:b=>{o(b instanceof Error?b.message:"Failed to remove connector")}})};return e.jsxs(gs,{onOpenChange:()=>o(null),children:[e.jsx(fs,{asChild:!0,children:e.jsx(j,{variant:"ghost",size:"icon",className:"h-7 w-7 text-muted-foreground hover:text-destructive","aria-label":"Remove connector",title:"Remove connector",children:e.jsx(ce,{className:"h-3.5 w-3.5"})})}),e.jsxs(vs,{align:"start",className:"space-y-3",children:[e.jsxs("p",{className:"text-sm font-medium",children:["Remove ",s.name,"?"]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Archives it in this workspace. Existing synced data stays in memory."}),m?e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Delete"," ",e.jsxs("span",{className:"font-medium text-foreground",children:[a," connection",a===1?"":"s"]})," ","first — uninstall is blocked while any connection still references this connector."]}):null,c?e.jsx("p",{className:"rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive",children:c}):null,e.jsxs(j,{variant:"destructive",size:"sm",disabled:r||m,onClick:f,children:[r?e.jsx(z,{size:"md",className:"mr-1.5"}):null,"Remove connector"]})]})]})}function it({connector:s,organizationId:t,ownerSlug:n}){const a=Be();return e.jsx(Re,{title:"Actions",summary:`${s.operations_summary?.total??0} actions · organization policies`,onOpen:()=>a?.open({href:"",title:"Actions",connectorPanel:{section:"actions",connectorKey:s.key,organizationId:t,ownerSlug:n}})})}function we({profiles:s,type:t}){const n=t==="env"?"Credentials":"Browser sessions";return e.jsx(T,{title:n,children:e.jsx("div",{className:"space-y-2",children:s.map(a=>e.jsxs("div",{className:Ds(Fe,"p-3"),children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"text-sm font-medium",children:a.display_name}),e.jsx(Fs,{status:a.status})]}),e.jsx("p",{className:"truncate text-xs text-muted-foreground",children:a.slug})]},a.slug))})})}function lt({connector:s,organizationId:t,ownerSlug:n}){const a=Be(),l=Object.keys(s.feeds_schema??{}).length;return l?e.jsx(Re,{title:"Feeds",summary:`${l} ${l===1?"feed type":"feed types"}`,onOpen:()=>a?.open({href:"",title:"Feeds",connectorPanel:{section:"feeds",connectorKey:s.key,organizationId:t,ownerSlug:n}})}):null}export{tt as ConnectorDetailShell,at as ConnectorHero,rt as ConnectorRemoveButton,jt as component};
2
+ //# sourceMappingURL=_connectorKey.index-tnMwC67b.js.map
@@ -0,0 +1,2 @@
1
+ import{j as e,cA as A,i as c,jj as p,jk as h,jl as d,jm as u,jn as w,r as M,at as k,aH as C,jo as z}from"./index-BjcZVe7n.js";import{A as N}from"./agent-loading-shells-_18OREnx.js";import{s as b,R as y,A as O}from"./agent-thread-FyEO-y44.js";import"./app-bridge-C4nPtae3.js";import"./pending-seed-BP3xHM2d.js";import"./use-mention-search-CJGCatFS.js";import"./index-Vcq4gwWv.js";import"./use-automations-D9hKpufo.js";import"./event-card-CjA_dLzq.js";import"./definition-comparison-B5WgZILB.js";import"./automation-source-list-Dhucq1sI.js";import"./schema-value-BFb7jCBo.js";import"./json-diff-DtZtra_g.js";import"./run-initiator-CCxNv0rK.js";import"./clients-Cmp0LmOp.js";import"./renderer-CHPS-1vD.js";import"./card-g4yxo4Hr.js";import"./table-DALHuXPE.js";import"./change-summary-DeuXQEpb.js";import"./copy-button-Ddf7lBjZ.js";import"./agent-list-row-BnP6r4pm.js";import"./client-rows-x_CxeWkP.js";import"./automation-row-B5Q1B10y.js";import"./model-C2q7WDcS.js";import"./connection-label-BobuYiAG.js";import"./events-feed-CGzA1w3R.js";import"./client-activity-scopes-BD2HBo-_.js";import"./use-scroll-sentinel-BWCrmNIB.js";const T={discord:{hex:`#${u.hex}`,path:u.path},gchat:{hex:`#${d.hex}`,path:d.path},slack:{hex:"#4A154B",path:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"},teams:{imgSrc:"https://www.google.com/s2/favicons?domain=teams.microsoft.com&sz=64"},telegram:{hex:`#${h.hex}`,path:h.path},whatsapp:{hex:`#${p.hex}`,path:p.path}};function I({platform:o,className:a}){const t=o?T[o]:null;return t?"imgSrc"in t?e.jsx("img",{src:t.imgSrc,alt:"","aria-hidden":"true",className:c("rounded-sm",a),loading:"lazy"}):e.jsx("svg",{viewBox:t.viewBox??"0 0 24 24",fill:"currentColor","aria-hidden":"true",className:a,style:{color:t.hex},children:e.jsx("path",{d:t.path})}):e.jsx(A,{className:c("text-muted-foreground",a),"aria-hidden":"true"})}const L={slack:"Slack",telegram:"Telegram",whatsapp:"WhatsApp",discord:"Discord",web:"Web"};function R(o,a,t){return o==="slack"&&t?.teamId&&a?`https://app.slack.com/client/${t.teamId}/${a}`:null}function S({owner:o,agentId:a,conversationId:t}){const{data:n=[],isLoading:x}=w(a,t,{orgSlug:o}),i=M.useMemo(()=>n.map(s=>b(s,{showToolCalls:!0})).filter(s=>s!==null),[n]),[r,g]=t.split(":"),m=L[r]??"the source app",{org:f}=k(),{data:j=[]}=C(f?.id??"",{connectorKey:r}),v=j[0]?.config?.chatMetadata,l=R(r,g,v);return e.jsx("div",{className:"mx-auto flex min-h-0 w-full max-w-3xl flex-1 flex-col pb-6",children:x?e.jsx(N,{readOnly:!0}):i.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No messages in this conversation."}):e.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[e.jsx(y,{messages:i,children:e.jsx(O,{readOnly:!0})}),l?e.jsxs("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"mt-4 flex items-center gap-3 rounded-lg border border-border bg-muted/40 px-4 py-3 text-sm transition-colors hover:bg-muted",children:[e.jsx(I,{platform:r,className:"size-5 shrink-0"}),e.jsxs("span",{className:"text-muted-foreground",children:["This is a read-only copy. Continue the conversation with this agent in ",m,"."]}),e.jsxs("span",{className:"ml-auto shrink-0 whitespace-nowrap font-medium text-foreground",children:["Open ",m," →"]})]}):null]})})}function l2(){const{owner:o,agentId:a,conversationId:t}=z.useParams();return e.jsx(S,{owner:o,agentId:a,conversationId:t})}export{l2 as component};
2
+ //# sourceMappingURL=_conversationId-DXN_8m88.js.map
@@ -0,0 +1,2 @@
1
+ import{E as u,c as v,j as a,ak as d,az as f,cg as h,ch as x,ci as j,bk as w,cj as P}from"./index-BjcZVe7n.js";import{E as g}from"./event-detail-CmC-DVrK.js";import"./events-feed-CGzA1w3R.js";import"./event-card-CjA_dLzq.js";import"./definition-comparison-B5WgZILB.js";import"./automation-source-list-Dhucq1sI.js";import"./schema-value-BFb7jCBo.js";import"./json-diff-DtZtra_g.js";import"./index-Vcq4gwWv.js";import"./run-initiator-CCxNv0rK.js";import"./use-automations-D9hKpufo.js";import"./clients-Cmp0LmOp.js";import"./renderer-CHPS-1vD.js";import"./card-g4yxo4Hr.js";import"./table-DALHuXPE.js";import"./change-summary-DeuXQEpb.js";import"./copy-button-Ddf7lBjZ.js";import"./agent-list-row-BnP6r4pm.js";import"./client-rows-x_CxeWkP.js";import"./automation-row-B5Q1B10y.js";import"./model-C2q7WDcS.js";import"./connection-label-BobuYiAG.js";import"./client-activity-scopes-BD2HBo-_.js";import"./use-scroll-sentinel-BWCrmNIB.js";import"./view-param-filters-CDvwie_f.js";import"./app-bridge-C4nPtae3.js";import"./filter-bar-CQ_oE7a9.js";function E({owner:e,eventId:t,viewKey:o}){const s=u({strict:!1}),p=v(),m=(i,r)=>a.jsx(g,{owner:r,organizationId:i,eventId:t,viewKey:o,params:o?x(s):{},onParamsChange:(n,c,l)=>void p({to:h(r,t,n),search:c,replace:l?.replace??!0}),fullBleed:!0},`${r}/${t}`);return a.jsx(d,{className:"gap-6 pt-2.5 pb-8",children:e==="me"?m(null,e):a.jsx(f,{owner:e,children:({organizationId:i,ownerSlug:r})=>i?m(i,r):a.jsx("div",{className:"mx-auto h-40 w-full max-w-3xl animate-pulse rounded-md bg-muted/40"})})})}function X(){const{owner:e,eventId:t}=j.useParams(),o=w({from:"/$owner/events/$eventId/-/views/$viewKey",shouldThrow:!1}),s=P(t);return s===null?null:a.jsx(E,{owner:e,eventId:s,viewKey:o?.viewKey})}export{X as component};
2
+ //# sourceMappingURL=_eventId-SdpFT7jB.js.map
@@ -0,0 +1,2 @@
1
+ import{ji as a,j as e}from"./index-BjcZVe7n.js";import{b as i}from"./agent-guardrails-route-CN7vpC0X.js";import"./model-selector-B2cjCn0V.js";import"./agent-tab-intro-DKrC3SQt.js";import"./table-DALHuXPE.js";import"./agent-loading-shells-_18OREnx.js";import"./agent-card-controls-DuQJhtqp.js";function l(){const{owner:t,agentId:r,name:o}=a.useParams();return e.jsx(i,{owner:t,agentId:r,name:o})}export{l as component};
2
+ //# sourceMappingURL=_name-CM1AMywz.js.map
@@ -0,0 +1,3 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/peek-pane-content-Cq8P38s3.js","assets/index-BjcZVe7n.js","assets/index-CNEpTkgw.css","assets/automation-detail-content-Bs3vwAPd.js","assets/create-automation-form-C9PMX7N8.js","assets/model-C2q7WDcS.js","assets/entity-options-BkU_En_f.js","assets/connection-label-BobuYiAG.js","assets/use-automations-D9hKpufo.js","assets/model-selector-B2cjCn0V.js","assets/skill-editor-D_W3QlRz.js","assets/json-diff-DtZtra_g.js","assets/index-Vcq4gwWv.js","assets/use-mention-search-CJGCatFS.js","assets/automation-source-list-Dhucq1sI.js","assets/proposal-review-shell-BED-DO9C.js","assets/runs-BntGAKQG.js","assets/events-feed-CGzA1w3R.js","assets/event-card-CjA_dLzq.js","assets/definition-comparison-B5WgZILB.js","assets/schema-value-BFb7jCBo.js","assets/run-initiator-CCxNv0rK.js","assets/clients-Cmp0LmOp.js","assets/renderer-CHPS-1vD.js","assets/card-g4yxo4Hr.js","assets/table-DALHuXPE.js","assets/change-summary-DeuXQEpb.js","assets/copy-button-Ddf7lBjZ.js","assets/agent-list-row-BnP6r4pm.js","assets/client-rows-x_CxeWkP.js","assets/automation-row-B5Q1B10y.js","assets/client-activity-scopes-BD2HBo-_.js","assets/use-scroll-sentinel-BWCrmNIB.js","assets/agent-loading-shells-_18OREnx.js","assets/agent-thread-FyEO-y44.js","assets/app-bridge-C4nPtae3.js","assets/pending-seed-BP3xHM2d.js","assets/connection-feed-detail-Ckq-qEbD.js","assets/runs-table-CYS1jDdL.js","assets/feed-event-kinds-BYuZCoU4.js","assets/connect-menu-CezOH3s7.js","assets/connections-browser-BXsJqieG.js","assets/status-dot-BnQPFrcU.js","assets/connector-scope-lists-dQnZARCD.js","assets/source-record-panels-m8gECt82.js","assets/schema-type-editor-panel-v3nR2Oa2.js","assets/entity-type-page-D0ghgRgq.js","assets/event-detail-CmC-DVrK.js","assets/view-param-filters-CDvwie_f.js","assets/filter-bar-CQ_oE7a9.js","assets/views-access-required-CZ1fvAks.js","assets/dynamic-schema-form-qWSRtOAv.js","assets/record-session-DOFgdd43.js","assets/runs-panel-BwTVaRsE.js","assets/manage-gear-C-0BAMbC.js"])))=>i.map(i=>d[i]);
2
+ import{p as m,j as e,r as h,C as j,L as y,u as v,a as b,b as N,c as P,d as R,D as I,e as _,f as D,g as A,h as E,i as w,k as S,l as C,B as p,m as L,A as O,X as T,n as z,_ as K,S as x,R as $,o as B,q as W,s as H,t as V,N as q,O as F}from"./index-BjcZVe7n.js";import{R as G}from"./record-session-DOFgdd43.js";function k({item:t}){const n=t.href?m(t.href):null;if(!n)return null;const s=n.owner,i=n.kind==="automation"?n.automationId:t.sourceAttribution?.automation_id??null,o=t.sourceAttribution,r=[{label:s,to:"/$owner",params:{owner:s}}];return o?.agent_id&&o.agent_name&&r.push({label:o.agent_name,to:"/$owner/agents/$agentId/settings",params:{owner:s,agentId:o.agent_id}}),i!=null&&r.push({label:o?.automation_name??"Automation",to:"/$owner/automations/$automationId",params:{owner:s,automationId:String(i)}}),(n.kind==="memory"||n.kind==="automation")&&"runId"in n&&n.runId!=null?r.push({label:"Run details"}):n.kind==="event"?r.push({label:"Event details"}):n.kind==="memory"&&"contentIds"in n&&r.push({label:"Details"}),r.length<2?null:e.jsx("nav",{"aria-label":"Breadcrumb",className:"flex min-w-0 shrink-0 items-center gap-1 overflow-x-auto border-b border-border px-3 py-1.5 text-xs text-muted-foreground",children:r.map((a,l)=>{const c=l===r.length-1,f=e.jsx("span",{className:c?"truncate font-medium text-foreground":"whitespace-nowrap",children:a.label});return e.jsxs(h.Fragment,{children:[l>0?e.jsx(j,{className:"h-3 w-3 shrink-0","aria-hidden":"true"}):null,a.to&&!c?e.jsx(y,{to:a.to,params:a.params,className:"whitespace-nowrap transition-colors hover:text-foreground",children:a.label}):f]},a.to??a.label)})})}const M=z(async()=>({default:(await K(async()=>{const{PeekPaneContent:t}=await import("./peek-pane-content-Cq8P38s3.js");return{PeekPaneContent:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54]))).PeekPaneContent}));function Q(){return e.jsxs("div",{"data-testid":"peek-pane-body-loading",className:"space-y-3 p-4",children:[e.jsx(x,{className:"h-5 w-2/3"}),e.jsx(x,{className:"h-4 w-full"}),e.jsx(x,{className:"h-24 w-full rounded-lg"})]})}const U=460,X=480;function J({children:t}){const n=h.useRef(null),s=v(),i=b(),o=N(n,U+X),r=!i&&o&&s?.item!=null;return e.jsxs("div",{ref:n,className:"relative flex min-h-0 flex-1 flex-row",children:[e.jsx("div",{inert:r,className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto",children:t}),e.jsx(Y,{covers:r})]})}function Y({covers:t=!1}){const n=v(),s=b();return n?.item?e.jsx(ee,{item:n.item,onClose:n.close,onBack:n.back,isNarrow:s,covers:t}):null}function Z(t){const n=t.href?m(t.href):null,s=n?.kind==="record-view"?n.viewKey:null,i=n?.kind==="entity-type"?n:null,o=i?.typeSlug??null,r=S({slug:s?n?.owner:void 0}),{data:a}=C(o?n?.owner??null:null),l=o?a?.find(c=>c.slug===o)?.name:void 0;return s&&r.data?.find(c=>c.key===s)?.name||l&&(i?.view==="activity"?`${l} activity`:l)||t.title}function ee({item:t,onClose:n,onBack:s,isNarrow:i,covers:o}){const r=P(),a=t.href?m(t.href):null,l=t.runId&&a?.kind==="automation"&&a.view==="activity"?{pathname:`/${a.owner}/events`,search:{run_ids:String(t.runId)}}:t.href?R(t.href):null,c=Z(t);h.useEffect(()=>{if(i)return;const d=u=>{u.defaultPrevented||u.key!=="Escape"||(u.preventDefault(),n())};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[n,i]);const f=d=>e.jsxs("div",{className:"flex h-11 shrink-0 items-center gap-1 border-b border-border px-3",children:[s||d?e.jsx(p,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 text-muted-foreground hover:text-foreground","aria-label":"Back",onClick:s??n,children:e.jsx(L,{className:"h-4 w-4"})}):null,e.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:c}),l?e.jsx(p,{type:"button",variant:"ghost",size:a?.kind==="runs"?"sm":"icon",className:w("h-7 shrink-0 text-muted-foreground hover:text-foreground",a?.kind==="runs"?"gap-1 px-2 text-xs":"w-7"),"aria-label":a?.kind==="runs"?"Open in Activity":"Open full page",asChild:!0,children:e.jsxs(y,{to:l.pathname,search:l.search??{},onClick:u=>{u.button!==0||u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||(u.preventDefault(),(async()=>(await n(),await r({to:l.pathname,search:l.search??{}})))())},children:[a?.kind==="runs"?"Open in Activity":null,e.jsx(O,{className:"h-4 w-4"})]})}):null,e.jsx(p,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 text-muted-foreground hover:text-foreground","aria-label":"Close preview",onClick:n,children:e.jsx(T,{className:"h-4 w-4"})})]}),g=e.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e.jsx(h.Suspense,{fallback:e.jsx(Q,{}),children:e.jsx(M,{item:t})})});return i?e.jsx(I,{open:!0,onOpenChange:d=>{d||n()},children:e.jsxs(_,{children:[e.jsx(D,{className:"fixed inset-0 z-40 bg-black/60 data-[state=open]:animate-in data-[state=open]:fade-in-0"}),e.jsxs(A,{"aria-describedby":void 0,className:"fixed inset-y-0 right-0 z-50 flex w-full max-w-[460px] flex-col border-l border-border bg-background outline-none data-[state=open]:animate-in data-[state=open]:slide-in-from-right",children:[e.jsx(E,{className:"sr-only",children:c}),f(!0),e.jsx(k,{item:t}),g]})]})}):e.jsxs("aside",{className:w("flex flex-col border-l border-border bg-background",o?"absolute inset-0 z-30 w-full":"w-[460px] max-w-[45vw] shrink-0"),children:[f(!1),e.jsx(k,{item:t}),g]})}function ae(){const{owner:t}=$.useParams(),{data:n,isLoading:s,error:i}=B(t==="me"?null:t,{slug:t}),{session:o,isReady:r}=W();return H({active:V({settled:!s,authReady:r,session:o,resolved:!!n?.workspace,error:i}),owner:t})?null:e.jsx(q,{children:e.jsx(G,{children:e.jsx(J,{children:e.jsx(F,{})})})})}export{ae as component};
3
+ //# sourceMappingURL=_owner-CaGsXXBW.js.map
@@ -0,0 +1,2 @@
1
+ import{j6 as p,j as m,bj as i}from"./index-BjcZVe7n.js";import{M as e}from"./memory-browse-page-Ba32-vVL.js";import"./public-shell-ready-Diq15_QW.js";import"./connector-boxes-CbqSFeVm.js";import"./connection-label-BobuYiAG.js";import"./connections-browser-BXsJqieG.js";import"./status-dot-BnQPFrcU.js";import"./connector-scope-lists-dQnZARCD.js";import"./use-automations-D9hKpufo.js";import"./model-C2q7WDcS.js";import"./feed-event-kinds-BYuZCoU4.js";import"./schema-type-editor-panel-v3nR2Oa2.js";import"./entity-type-page-D0ghgRgq.js";import"./change-summary-DeuXQEpb.js";import"./json-diff-DtZtra_g.js";import"./index-Vcq4gwWv.js";import"./dynamic-schema-form-qWSRtOAv.js";import"./renderer-CHPS-1vD.js";import"./schema-value-BFb7jCBo.js";import"./card-g4yxo4Hr.js";import"./table-DALHuXPE.js";import"./filter-bar-CQ_oE7a9.js";import"./entity-pages-DxgbjLMt.js";import"./core.esm-BsXtvNoI.js";import"./view-param-filters-CDvwie_f.js";import"./app-bridge-C4nPtae3.js";import"./nav-pill-Bam6s3jj.js";import"./member-scope-gate-BQiRAqtx.js";function D(){const{owner:t,entityType:o,shape:r}=p.useParams();return m.jsx(e,{ownerSlug:t,typeScope:i(o),create:!1,shape:r})}export{D as component};
2
+ //# sourceMappingURL=_shape-DGAkETDp.js.map
@@ -0,0 +1,2 @@
1
+ import{jg as e,j as i}from"./index-BjcZVe7n.js";import{b as m}from"./agent-skills-route-d5jh3oBR.js";import"./agent-skill-context-1DBn7Xc_.js";import"./core.esm-BsXtvNoI.js";import"./skill-editor-D_W3QlRz.js";import"./agent-tab-intro-DKrC3SQt.js";import"./agent-loading-shells-_18OREnx.js";import"./agent-card-controls-DuQJhtqp.js";function x(){const{owner:t,agentId:o,skillKey:r}=e.useParams();return i.jsx(m,{owner:t,agentId:o,skillKey:r})}export{x as component};
2
+ //# sourceMappingURL=_skillKey-Dd4ZHPY8.js.map
@@ -0,0 +1,2 @@
1
+ import{gR as m,v as y,c as d,g6 as g,fo as u,j as t,ak as c,al as x,bO as f}from"./index-BjcZVe7n.js";import{E}from"./entity-type-page-D0ghgRgq.js";import"./change-summary-DeuXQEpb.js";import"./json-diff-DtZtra_g.js";import"./index-Vcq4gwWv.js";function b(){const{owner:a,slug:n}=m.useParams(),{orgContext:s}=y(),o=d(),{data:i=[],isLoading:r}=g(s),e=i.find(l=>l.slug===n)??null,p=e?u(e):!1;return t.jsx(c,{className:"gap-4 pt-2.5 pb-8",children:t.jsx(x,{children:r?t.jsx(f,{label:"entity type",variant:"panel"}):e?t.jsx(E,{entityType:e,orgContext:s,hideDelete:p,onClose:()=>{o({to:"/$owner/data",params:{owner:a}})}}):t.jsx("div",{className:"text-sm text-muted-foreground",children:"Entity type not found."})})})}export{b as component};
2
+ //# sourceMappingURL=_slug-cRvJQtNo.js.map
@@ -0,0 +1,2 @@
1
+ import{bH as t,bI as p,j as e}from"./index-BjcZVe7n.js";import{A as s,h as a}from"./activity-route-view-CZykJXQp.js";import"./record-activity-CTLwq8s1.js";import"./filter-bar-CQ_oE7a9.js";import"./connection-label-BobuYiAG.js";import"./manage-gear-C-0BAMbC.js";import"./runs-BntGAKQG.js";import"./source-record-panels-m8gECt82.js";import"./event-card-CjA_dLzq.js";import"./definition-comparison-B5WgZILB.js";import"./automation-source-list-Dhucq1sI.js";import"./schema-value-BFb7jCBo.js";import"./json-diff-DtZtra_g.js";import"./index-Vcq4gwWv.js";import"./run-initiator-CCxNv0rK.js";import"./use-automations-D9hKpufo.js";import"./clients-Cmp0LmOp.js";import"./renderer-CHPS-1vD.js";import"./card-g4yxo4Hr.js";import"./table-DALHuXPE.js";import"./change-summary-DeuXQEpb.js";import"./copy-button-Ddf7lBjZ.js";import"./agent-list-row-BnP6r4pm.js";import"./client-rows-x_CxeWkP.js";import"./automation-row-B5Q1B10y.js";import"./model-C2q7WDcS.js";import"./events-feed-CGzA1w3R.js";import"./client-activity-scopes-BD2HBo-_.js";import"./use-scroll-sentinel-BWCrmNIB.js";import"./agent-loading-shells-_18OREnx.js";import"./member-scope-gate-BQiRAqtx.js";import"./runs-panel-BwTVaRsE.js";import"./runs-table-CYS1jDdL.js";import"./nav-pill-Bam6s3jj.js";import"./public-shell-ready-Diq15_QW.js";function O(){const{owner:r,view:i}=t.useParams(),m=t.useSearch(),o=a(i);if(!o)throw p();return e.jsx(s,{owner:r,search:m,homeView:o})}export{O as component};
2
+ //# sourceMappingURL=_view-B5I7mmkl.js.map
@@ -0,0 +1,2 @@
1
+ import{jp as p,j as i,bj as m}from"./index-BjcZVe7n.js";import{M as e}from"./memory-browse-page-Ba32-vVL.js";import"./public-shell-ready-Diq15_QW.js";import"./connector-boxes-CbqSFeVm.js";import"./connection-label-BobuYiAG.js";import"./connections-browser-BXsJqieG.js";import"./status-dot-BnQPFrcU.js";import"./connector-scope-lists-dQnZARCD.js";import"./use-automations-D9hKpufo.js";import"./model-C2q7WDcS.js";import"./feed-event-kinds-BYuZCoU4.js";import"./schema-type-editor-panel-v3nR2Oa2.js";import"./entity-type-page-D0ghgRgq.js";import"./change-summary-DeuXQEpb.js";import"./json-diff-DtZtra_g.js";import"./index-Vcq4gwWv.js";import"./dynamic-schema-form-qWSRtOAv.js";import"./renderer-CHPS-1vD.js";import"./schema-value-BFb7jCBo.js";import"./card-g4yxo4Hr.js";import"./table-DALHuXPE.js";import"./filter-bar-CQ_oE7a9.js";import"./entity-pages-DxgbjLMt.js";import"./core.esm-BsXtvNoI.js";import"./view-param-filters-CDvwie_f.js";import"./app-bridge-C4nPtae3.js";import"./nav-pill-Bam6s3jj.js";import"./member-scope-gate-BQiRAqtx.js";function A(){const{owner:t,entityType:o,viewKey:r}=p.useParams();return i.jsx(e,{ownerSlug:t,typeScope:m(o),create:!1,viewKey:r})}export{A as component};
2
+ //# sourceMappingURL=_viewKey-Bwn0dyLo.js.map
@@ -0,0 +1,2 @@
1
+ import{jd as t,j as m}from"./index-BjcZVe7n.js";import{M as i}from"./memory-browse-page-Ba32-vVL.js";import"./public-shell-ready-Diq15_QW.js";import"./connector-boxes-CbqSFeVm.js";import"./connection-label-BobuYiAG.js";import"./connections-browser-BXsJqieG.js";import"./status-dot-BnQPFrcU.js";import"./connector-scope-lists-dQnZARCD.js";import"./use-automations-D9hKpufo.js";import"./model-C2q7WDcS.js";import"./feed-event-kinds-BYuZCoU4.js";import"./schema-type-editor-panel-v3nR2Oa2.js";import"./entity-type-page-D0ghgRgq.js";import"./change-summary-DeuXQEpb.js";import"./json-diff-DtZtra_g.js";import"./index-Vcq4gwWv.js";import"./dynamic-schema-form-qWSRtOAv.js";import"./renderer-CHPS-1vD.js";import"./schema-value-BFb7jCBo.js";import"./card-g4yxo4Hr.js";import"./table-DALHuXPE.js";import"./filter-bar-CQ_oE7a9.js";import"./entity-pages-DxgbjLMt.js";import"./core.esm-BsXtvNoI.js";import"./view-param-filters-CDvwie_f.js";import"./app-bridge-C4nPtae3.js";import"./nav-pill-Bam6s3jj.js";import"./member-scope-gate-BQiRAqtx.js";function q(){const{owner:o,viewKey:r}=t.useParams();return m.jsx(i,{ownerSlug:o,create:!1,viewKey:r})}export{q as component};
2
+ //# sourceMappingURL=_viewKey-YjSYD0wc.js.map
@@ -1,2 +1,2 @@
1
- import{q as l,ai as u,r as c,Q as m,j as e,aj as d,a6 as h,ag as f}from"./index-DdBTTN3y.js";import{S as v,A as x,a as g}from"./index-C186T2Rw.js";import{F as p}from"./full-page-spinner-BqmckkOf.js";function j({alt:t="",...a}){return e.jsx("img",{alt:t,...a,referrerPolicy:"no-referrer"})}function w({children:t}){const a=h(),n=async i=>{await a.invalidateQueries({queryKey:["organizations"]}),i()};return e.jsx(g,{authClient:f,navigate:i=>{n(()=>{window.location.href=i})},replace:i=>{n(()=>window.location.replace(i))},Link:({href:i,children:s,className:r})=>e.jsx("a",{href:i,className:r,children:s}),basePath:"/auth",redirectTo:"/",magicLink:!0,social:{providers:[]},avatar:{Image:j},children:t})}function b(){const{session:t,sessionResult:a}=l(),{invitationId:n}=u.useSearch(),i=c.useRef(!1);return c.useEffect(()=>{a.isPending||t||!n||i.current||(i.current=!0,(async()=>{let s=null;try{const o=await fetch(`${m}/api/invitation-preview?id=${encodeURIComponent(n)}`,{credentials:"omit"});o.ok&&(s=await o.json())}catch{}const r=new URL("/auth/login",window.location.origin);r.searchParams.set("callbackUrl",`/auth/accept-invitation?invitationId=${encodeURIComponent(n)}`),s&&(r.searchParams.set("loginHint",s.email),r.searchParams.set("invitationOrg",s.organizationName)),window.location.href=r.toString()})())},[t,a.isPending,n]),t&&!n?e.jsx("div",{className:"min-h-[calc(100vh-3.5rem)] flex items-center justify-center p-4",children:e.jsxs("div",{className:"w-full max-w-md text-center",children:[e.jsx("img",{src:"/lobu-logo.svg",alt:"Lobu",className:"mx-auto mb-6 h-8 w-auto"}),e.jsx(d,{className:"mx-auto h-10 w-10 text-destructive mb-4"}),e.jsx("h1",{className:"text-xl font-semibold",children:"Invitation not found"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"This invitation link is missing its ID. Ask the person who invited you to resend it."})]})}):t?e.jsxs("div",{className:"min-h-[calc(100vh-3.5rem)] flex flex-col items-center justify-center gap-6 p-4",children:[e.jsx("img",{src:"/lobu-logo.svg",alt:"Lobu",className:"h-8 w-auto"}),e.jsx(w,{children:e.jsx(v,{children:e.jsx(x,{})})})]}):e.jsx(p,{className:"min-h-[calc(100vh-3.5rem)]"})}export{b as component};
2
- //# sourceMappingURL=accept-invitation-pUl-c1KQ.js.map
1
+ import{q as l,ai as u,r as c,Q as m,j as e,aj as d,a6 as h,ag as f}from"./index-BjcZVe7n.js";import{S as v,A as x,a as g}from"./index-BDl1_w6U.js";import{F as p}from"./full-page-spinner-B5xXnKtV.js";function j({alt:t="",...a}){return e.jsx("img",{alt:t,...a,referrerPolicy:"no-referrer"})}function w({children:t}){const a=h(),n=async i=>{await a.invalidateQueries({queryKey:["organizations"]}),i()};return e.jsx(g,{authClient:f,navigate:i=>{n(()=>{window.location.href=i})},replace:i=>{n(()=>window.location.replace(i))},Link:({href:i,children:s,className:r})=>e.jsx("a",{href:i,className:r,children:s}),basePath:"/auth",redirectTo:"/",magicLink:!0,social:{providers:[]},avatar:{Image:j},children:t})}function b(){const{session:t,sessionResult:a}=l(),{invitationId:n}=u.useSearch(),i=c.useRef(!1);return c.useEffect(()=>{a.isPending||t||!n||i.current||(i.current=!0,(async()=>{let s=null;try{const o=await fetch(`${m}/api/invitation-preview?id=${encodeURIComponent(n)}`,{credentials:"omit"});o.ok&&(s=await o.json())}catch{}const r=new URL("/auth/login",window.location.origin);r.searchParams.set("callbackUrl",`/auth/accept-invitation?invitationId=${encodeURIComponent(n)}`),s&&(r.searchParams.set("loginHint",s.email),r.searchParams.set("invitationOrg",s.organizationName)),window.location.href=r.toString()})())},[t,a.isPending,n]),t&&!n?e.jsx("div",{className:"min-h-[calc(100vh-3.5rem)] flex items-center justify-center p-4",children:e.jsxs("div",{className:"w-full max-w-md text-center",children:[e.jsx("img",{src:"/lobu-logo.svg",alt:"Lobu",className:"mx-auto mb-6 h-8 w-auto"}),e.jsx(d,{className:"mx-auto h-10 w-10 text-destructive mb-4"}),e.jsx("h1",{className:"text-xl font-semibold",children:"Invitation not found"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"This invitation link is missing its ID. Ask the person who invited you to resend it."})]})}):t?e.jsxs("div",{className:"min-h-[calc(100vh-3.5rem)] flex flex-col items-center justify-center gap-6 p-4",children:[e.jsx("img",{src:"/lobu-logo.svg",alt:"Lobu",className:"h-8 w-auto"}),e.jsx(w,{children:e.jsx(v,{children:e.jsx(x,{})})})]}):e.jsx(p,{className:"min-h-[calc(100vh-3.5rem)]"})}export{b as component};
2
+ //# sourceMappingURL=accept-invitation-CQZQ0wwC.js.map
@@ -1,2 +1,2 @@
1
- import{v as rt,at as Z,ck as K,bj as O,cl as Q,r as v,c as B,aq as ut,cm as dt,j as o,bO as X,b2 as M,cn as mt,co as V,cp as pt,cq as tt,B as T,L as j,cr as nt,cs as ft,ct as gt,cu as xt,cv as F,bb as ht,cw as vt,cx as bt,cy as et,cz as jt,cA as at,cB as ot,cC as st,cD as yt,aH as kt,cE as _t,cF as Nt,cG as At,cH as it,cI as It,i as $t,u as Rt,cJ as St,cK as Et,d as ct,cL as Ct,cM as Lt,cN as Tt,w as Mt,ak as Ft,az as Ot,al as Pt}from"./index-DdBTTN3y.js";import{R as Ht,E as Kt,S as Bt,N as U,M as Wt}from"./record-activity-C9gVBbF0.js";import{M as wt}from"./member-scope-gate-4FQ0aanZ.js";import{o as P,F as Dt}from"./filter-bar-wPaR12SS.js";import{W as Ut}from"./runs-panel-DEnZHTa5.js";import{u as zt}from"./client-activity-scopes-CXOWB5co.js";import{n as Gt}from"./nav-pill-DrFkuyUQ.js";import{c as qt}from"./client-rows-36VnmgMK.js";import{P as Yt}from"./public-shell-ready-BIVCHQHe.js";function Jt({organizationId:n,ownerSlug:t,typeScope:e,entityScope:a,attentionOnly:i=!1}){const{orgContext:r}=rt(),{isMember:c,isLoading:d}=Z(),p=c&&!!n,{attentionItems:s,isError:u}=K(t),g=e?O(e):void 0,m=!a&&!g,{feeds:l,rows:h,pageRows:f}=Q(n,s),y=v.useMemo(()=>new Set(f.flatMap(({item:D})=>D.approvalRunId!=null?[D.approvalRunId]:[])),[f]),b=B(),_=()=>void b({to:"/$owner",params:{owner:t},search:{attention:"1"}}),{data:k,isLoading:N,error:C}=ut(a?`/${t}/${dt(a)}`:`/${t}`,r),A=a?k?.entity:void 0,L=(a?A?.entity_type??O(a.split("/").at(-2)??""):g)==="$member",$=a!=null&&!N&&(C!=null||k?.entity==null),x=a?void 0:k?.counts,R=x?x.connections>0||x.agents>0:!1,w=p&&!d&&!N&&x!=null&&!R,S=a&&N?o.jsx(X,{label:"Loading record…"}):$?o.jsx(M,{icon:mt,title:"Record not found",description:"It may have been deleted, or it may live in a workspace you can't access."}):i&&m?o.jsx(Zt,{owner:t,items:h,isError:u}):A?o.jsx(Ht,{ownerSlug:t,entity:A,organizationId:n}):o.jsx(Kt,{organizationId:n,ownerSlug:t,hideSourceFilter:!0,scopedEntityTypes:g?[g]:void 0,pinned:m&&(f.length>0||l.length>0)?{rows:o.jsx(V,{owner:t,organizationId:n,feeds:l,rows:f}),hiddenApprovalRunIds:y}:void 0,onShowNotifications:m?_:void 0,emptyState:w?o.jsx(Xt,{ownerSlug:t}):void 0});return o.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col gap-4",children:L?o.jsx(wt,{children:S}):S})}function Zt({owner:n,items:t,isError:e}){const a=B();return o.jsxs("section",{"aria-label":"Notifications",className:"space-y-3",children:[o.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2.5",children:[o.jsx("span",{className:"mr-auto text-sm text-muted-foreground tabular-nums",children:t.length>0?`${t.length} ${t.length===1?"notification":"notifications"}`:null}),o.jsx(Qt,{owner:n}),o.jsx(Bt,{value:U.value,withNotifications:!0,onChange:i=>{if(i===U.value)return;const[r,c]=i.split("-");a({to:"/$owner",params:{owner:n},search:pt({sortBy:r,sortOrder:c})})}})]}),e?o.jsx("p",{className:"px-3 text-sm text-destructive",children:"Could not load notifications."}):t.length===0?o.jsx(M,{icon:tt,title:"All caught up",description:"Nothing needs you right now.",children:o.jsx(T,{asChild:!0,variant:"outline",className:"mt-4",children:o.jsx(j,{to:"/$owner",params:{owner:n},children:"See all activity"})})}):o.jsx(nt,{owner:n,rows:t})]})}function Qt({owner:n}){const{visibleUnreadIds:t,markVisibleRead:e,bulkPending:a}=K(n);return t.length===0?null:o.jsxs(T,{type:"button",variant:"ghost",size:"sm",className:"h-8 text-muted-foreground",disabled:a,onClick:()=>void e(),children:[o.jsx(tt,{className:"mr-1.5 h-3.5 w-3.5"}),"Mark all as read"]})}function Xt({ownerSlug:n}){return o.jsx("div",{className:"px-6",children:o.jsx(M,{icon:ft,title:"Nothing to catch up on — yet",description:"No notifications here. Add a connector to bring in data, or bring your agent to Lobu and give it something to work with.",children:o.jsxs("div",{className:"mt-4 flex flex-wrap justify-center gap-2",children:[o.jsx(T,{asChild:!0,children:o.jsxs(j,{to:"/$owner/connectors/create",params:{owner:n},children:[o.jsx(gt,{className:"mr-2 h-4 w-4"}),"Add a connector"]})}),o.jsx(T,{asChild:!0,variant:"outline",children:o.jsxs(j,{to:"/$owner/agents",params:{owner:n},children:[o.jsx(xt,{className:"mr-2 h-4 w-4"}),"Connect agent"]})})]})})})}const H={agent:null,connection:null,automation:null,status:null,attentionKind:null};function E(n,t){const e=n[t];return typeof e=="string"&&e.trim()?e.trim():typeof e=="number"&&Number.isFinite(e)?String(e):null}function Vt(n){const t=E(n,"home_status"),e=E(n,"home_kind");return{agent:E(n,"home_agent"),connection:E(n,"home_connection"),automation:E(n,"home_automation"),status:t==="failed"||t==="running"||t==="completed"?t:null,attentionKind:e==="approval"||e==="notification"||e==="draft"?e:null}}function tn(n){return{home_agent:n.agent??void 0,home_connection:n.connection??void 0,home_automation:n.automation??void 0,home_status:n.status??void 0,home_kind:n.attentionKind??void 0}}function nn(n){return Object.values(n).some(t=>t!=null)}function en(n,t){const e=n.card?.status;return e?t==="failed"?F(e):t==="running"?e==="pending"||e==="claimed"||e==="running":e==="completed":!1}function an(n,t){return!(t.agent&&n.source?.agent_id!==t.agent||t.connection&&String(n.source?.connection_id??"")!==t.connection||t.automation&&String(n.source?.automation_id??"")!==t.automation||t.status&&!en(n,t.status))}function on(n,t){const e=n.notification;return t.agent&&e?.agent_id!==t.agent||t.connection&&String(e?.connection_id??"")!==t.connection||t.automation&&String(e?.automation_id??"")!==t.automation?!1:t.attentionKind==="draft"?n.browserUrl!=null:t.attentionKind==="approval"?n.approvalRunId!=null||n.interactionType==="approval"||n.interactionType==="authorization":t.attentionKind==="notification"?n.notification!=null&&n.approvalRunId==null:!0}function sn(n){const t=new Map;for(const e of n){const a=e.source?.agent_id;a&&t.set(a,e.source?.agent_name??a)}return[...t].map(([e,a])=>({value:e,label:a})).sort((e,a)=>e.label.localeCompare(a.label))}function cn(n){const t=new Map;for(const e of n){const a=e.source?.automation_id;a!=null&&t.set(String(a),e.source?.automation_name||e.subjectLabel||`Automation ${a}`)}return[...t].map(([e,a])=>({value:e,label:a})).sort((e,a)=>e.label.localeCompare(a.label))}function ln(n){return n.map(t=>({value:String(t.id),label:t.display_name||t.connector_key})).sort((t,e)=>t.label.localeCompare(e.label))}function rn(n){const t=new Map;for(const e of n){const a=e.notification?.agent_id;a&&t.set(a,e.notification?.agent_name??a)}return[...t].map(([e,a])=>({value:e,label:a})).sort((e,a)=>e.label.localeCompare(a.label))}function un(n){const t=new Map;for(const e of n){const a=e.notification?.automation_id;a!=null&&t.set(String(a),e.notification?.automation_name??`Automation ${a}`)}return[...t].map(([e,a])=>({value:e,label:a})).sort((e,a)=>e.label.localeCompare(a.label))}function dn(n){const t=new Map;for(const e of n){const a=e.notification?.connection_id;a!=null&&t.set(String(a),e.notification?.connection_name??`Connection ${a}`)}return[...t].map(([e,a])=>({value:e,label:a})).sort((e,a)=>e.label.localeCompare(a.label))}const z=[{value:"failed",label:"Failed"},{value:"running",label:"Running"},{value:"completed",label:"Completed"}],G=[{value:"approval",label:"Approvals"},{value:"notification",label:"Notifications"},{value:"draft",label:"Browser drafts"}];function I(n,t,e,a){return P({searchPlaceholder:`Search ${n.toLowerCase()}...`,emptyText:`No ${n.toLowerCase()} in this view`,options:t,selected:e?[e]:[],onSelect:a})}function mn({view:n,entries:t,attentionItems:e=[],connections:a,filters:i,onChange:r}){const c=n==="attention",d=[],p=c?rn(e):sn(t),s=c?un(e):cn(t),u=c?dn(e):ln(a);c?((()=>{d.push({key:"agent",label:"Agent",editor:I("agents",p,i.agent,l=>r({agent:l}))}),d.push({key:"connection",label:"Connection",editor:I("connections",u,i.connection,l=>r({connection:l}))}),d.push({key:"automation",label:"Automation",editor:I("automations",s,i.automation,l=>r({automation:l}))})})(),d.push({key:"attentionKind",label:"Type",editor:P({searchPlaceholder:"Search types...",options:G,selected:i.attentionKind?[i.attentionKind]:[],onSelect:l=>r({attentionKind:l})})})):((n==="all"||n==="sessions")&&d.push({key:"agent",label:"Agent",editor:I("agents",p,i.agent,l=>r({agent:l}))}),(n==="all"||n==="feeds")&&d.push({key:"connection",label:"Connection",editor:I("connections",u,i.connection,l=>r({connection:l}))}),(n==="all"||n==="automations")&&d.push({key:"automation",label:"Automation",editor:I("automations",s,i.automation,l=>r({automation:l}))}),n!=="sessions"&&d.push({key:"status",label:"Status",editor:P({searchPlaceholder:"Search statuses...",options:z,selected:i.status?[i.status]:[],onSelect:l=>r({status:l})})}));const m=[];if(i.agent&&m.push({id:"agent",label:"Agent",op:"is",value:p.find(l=>l.value===i.agent)?.label??i.agent,onRemove:()=>r({agent:null})}),i.connection){const l=u.find(h=>h.value===i.connection)?.label??i.connection;m.push({id:"connection",label:"Connection",op:"is",value:l,onRemove:()=>r({connection:null})})}return i.automation&&m.push({id:"automation",label:"Automation",op:"is",value:s.find(l=>l.value===i.automation)?.label??i.automation,onRemove:()=>r({automation:null})}),i.status&&!c&&m.push({id:"status",label:"Status",op:"is",value:z.find(l=>l.value===i.status)?.label??i.status,onRemove:()=>r({status:null})}),i.attentionKind&&c&&m.push({id:"attentionKind",label:"Type",op:"is",value:G.find(l=>l.value===i.attentionKind)?.label??i.attentionKind,onRemove:()=>r({attentionKind:null})}),o.jsx(Dt,{label:"Home filters",fields:d,chips:m,onClearAll:()=>r(H)})}const q=12,pn=5e3;function fn(n,t){const e=!!n&&!!t.organizationId&&(t.enabled??!0),a=ht({enabled:e}),{data:i}=a,r=i??[],c=v.useMemo(()=>r.map(l=>l.agentId),[r]),{threads:d,isLoading:p,isError:s}=vt(n,c,{enabled:e&&c.length>0,limit:q}),u=zt({enabled:e,limit:q,excludeCommandClients:!1,organizationId:t.organizationId,refetchInterval:l=>l?pn:!1}),g=t.organizationId?u.data:void 0;return{items:v.useMemo(()=>[...d.map(l=>({kind:"conversation",at:l.updatedAt,thread:l})),...(g??[]).map(l=>({kind:"mcp",at:l.lastCallAt,conversation:l}))].sort((l,h)=>h.at-l.at),[g,d]),agents:r,isLoading:e&&(a.isLoading||p||u.isLoading),isError:a.isError||s||u.isError}}function gn(n){return n==="all"?"activity":n}function Tn(n){switch(n){case"attention":return"attention";case"activity":return"all";case"sessions":return"sessions";case"feeds":return"feeds";case"runs":return"runs";case"automations":return"automations";default:return null}}function xn(n,t){return t==="attention"?{to:"/$owner",params:{owner:n}}:{to:"/$owner/views/$view",params:{owner:n,view:gn(t)}}}function hn(n,t,e,a=[]){const i=new Map(a.map(s=>[s.id,s])),r=new Map;for(const s of[...t.filter(u=>u.kind==="notification"),...e])r.set(s.notification_id!=null?`n:${s.notification_id}`:s.id,s);const c=new Set([...r.values()].flatMap(s=>s.run_id!=null?[s.run_id]:[])),d=new Map,p=new Set(t.flatMap(s=>s.kind==="automation_due"&&s.run_id!=null?[s.run_id]:[]));for(const s of[...t.filter(u=>u.kind!=="notification"&&(u.kind==="automation_due"||u.run_id==null||!p.has(u.run_id))&&(u.run_id==null||!c.has(u.run_id))),...r.values()])d.set(s.id,s);return[...d.values()].map(s=>{const u=s.connection_id!=null?i.get(s.connection_id):void 0,g={...s,platform:s.platform||u?.connector_key,connection_name:s.connection_name||u?.display_name},m=s.kind==="notification"?"notification":s.kind==="sync"?"feed":s.kind==="automation_run"||s.kind==="automation_due"?"automation":"run",l=m==="automation"&&s.automation_id!=null?`automation:${s.automation_id}`:(m==="feed"||m==="run")&&s.connection_id!=null?`connection:${s.connection_id}`:null;return{id:s.id,at:new Date(s.at).getTime(),title:s.title,detail:s.kind==="run"&&s.status&&!F(s.status)?s.status:s.body||s.status,kind:m,subject:l,subjectLabel:s.automation_name||g.connection_name||s.title,href:m!=="notification"&&s.run_id!=null?m==="automation"&&s.automation_id!=null?`/${n}/automations/${s.automation_id}?view=activity&run_id=${s.run_id}`:`/${n}/events?run_ids=${s.run_id}`:s.href,card:s,source:g}})}function vn(n,t,e){return t.map(a=>{if(a.kind==="mcp"){const s=a.conversation,u=n==="me"||s.organizationId==null?"/me/events":`/${n}/agents/connected/${encodeURIComponent(s.clientId)}/activity`,g=new URLSearchParams({mcp_activity_id:s.activityId});return(n==="me"||s.organizationId==null)&&g.set("client_ids",s.clientId),{id:`client:${s.clientId}:${s.activityId}`,at:a.at,title:qt(s),detail:`${s.clientName||"Connected app"} · ${s.callCount} ${s.callCount===1?"call":"calls"}${s.isLive?" · Active":""}`,href:`${u}?${g}`,kind:"session",subject:`client:${s.clientId}`,subjectLabel:s.clientName||"Connected app",source:{client_id:s.clientId,client_name:s.clientName}}}const i=a.thread,r=e.get(i.agentId)||"Agent",c=i.platform||"web",d=bt(n,i.agentId,i.id),p=c==="web"?Object.entries(d.params).reduce((s,[u,g])=>s.replace(`$${u}`,encodeURIComponent(g)),d.to):`/${n}/agents/${encodeURIComponent(i.agentId)}/conversations/${encodeURIComponent(i.conversationId??i.id)}`;return{id:`thread:${i.agentId}:${i.id}`,at:a.at,title:i.title||"Conversation",detail:`${r} · ${c==="web"?"Chat":c}${i.isRunning?" · Active":""}`,href:p,kind:"session",subject:`agent:${i.agentId}`,subjectLabel:r,source:{agent_id:i.agentId,agent_name:r,platform:c==="web"?null:c}}})}function bn(n){const t=new Map;for(const e of[...n].sort((a,i)=>i.at-a.at||a.id.localeCompare(i.id))){const a=new Date(e.at),i=`${a.getFullYear()}-${a.getMonth()}-${a.getDate()}`,r=e.subject?`${e.kind}:${e.subject}:${i}`:e.id,c=t.get(r)??{key:r,entries:[]};c.entries.push(e),t.set(r,c)}return[...t.values()]}const Y=[{view:"attention",label:"Needs attention",icon:et},{view:"all",label:"Activity",icon:jt},{view:"sessions",label:"Sessions",icon:at},{view:"feeds",label:"Feeds",icon:ot},{view:"runs",label:"Runs",icon:st}];function jn({owner:n,view:t,organizationId:e,filters:a,onFiltersChange:i}){const{isMember:r,isPublic:c,isLoading:d}=Z(n),p=c&&!r&&!d,s=p&&(t==="attention"||t==="sessions")?"all":t,u=p?Y.filter(m=>m.view!=="attention"&&m.view!=="sessions"):Y,g=K(p?null:n);return o.jsxs("div",{className:"flex min-w-0 flex-col gap-4",children:[o.jsx("nav",{"aria-label":"Activity views",className:"flex flex-wrap items-center gap-1.5",children:u.map(({view:m,label:l,icon:h})=>{const f=xn(n,m);return o.jsxs(j,{to:f.to,params:f.params,activeOptions:{exact:!0},"aria-current":s===m?"page":void 0,className:Gt(s===m,"h-7 gap-1.5 px-2 text-xs"),children:[o.jsx(h,{"aria-hidden":"true",className:"size-3.5"}),l,m==="attention"&&g.attentionItems.length>0?o.jsx("span",{className:"text-xs tabular-nums",children:g.attentionItems.length}):null]},m)})}),s==="runs"?o.jsx(Ut,{ownerSlug:n}):o.jsx(yn,{owner:n,view:s,visitor:p,organizationId:e,attention:g,filters:a,onFiltersChange:i})]})}function yn({owner:n,view:t,visitor:e,organizationId:a,attention:i,filters:r,onFiltersChange:c}){const[d,p]=v.useState(H),s=c!=null,u=r??d,g=x=>{if(c){c(x);return}p(R=>({...R,...x}))};v.useEffect(()=>{s||p(H)},[t,s]);const{data:m=[]}=yt(a),{data:l=[]}=kt(t==="all"||t==="feeds"||t==="automations"?a:null),h=Q(e?null:a,i.attentionItems),f=nn(u),y=t==="all"&&!f&&(h.feeds.length>0||h.pageRows.length>0),b=fn(n,{organizationId:a,enabled:!e&&(t==="all"||t==="sessions")}),_=_t(t==="attention"||t==="sessions"?null:n,{limit:50,aggregate:!1,includeRuns:!0,includeNotifications:!1,kinds:t==="feeds"?["sync"]:t==="automations"?["automation","automation_due"]:void 0}),k=v.useMemo(()=>{const x=new Map(b.agents.map(S=>[S.agentId,S.name])),R=t==="all"||t==="sessions"?vn(n,b.items,x):[];return[...t==="attention"?[]:hn(n,[..._.data??[],...t==="all"?i.notificationCards:[]],t==="all"?i.attentionCards:[],l),...R]},[n,t,b.agents,b.items,_.data,l,i.attentionCards,i.notificationCards]),N=v.useMemo(()=>new Set(t==="all"?h.pageRows.map(({item:x})=>x.id):[]),[t,h.pageRows]),C=v.useMemo(()=>bn(k.filter(x=>!N.has(x.id)&&an(x,u))),[k,N,u]),A=v.useMemo(()=>h.rows.filter(({item:x})=>on(x,u)),[h.rows,u]),W=a==null||(t==="attention"?i.isLoading:t!=="sessions"&&_.isLoading||(t==="all"||t==="sessions")&&b.isLoading||t==="all"&&i.isLoading),L=t==="attention"?i.isError:t!=="sessions"&&_.isError||(t==="all"||t==="sessions")&&b.isError||t==="all"&&i.isError,$=t==="attention"?A.length===0:C.length===0&&!y;return o.jsxs("section",{"aria-label":"Home activity",className:"flex min-w-0 flex-col gap-4",children:[o.jsx(mn,{view:t,entries:k,attentionItems:i.attentionItems,connections:l,filters:u,onChange:g}),t==="attention"&&!f?o.jsx(Nt,{owner:n}):null,L?o.jsx("p",{role:"alert",className:"text-sm text-destructive",children:"Some activity could not be loaded. Refresh to try again."}):null,W&&$?o.jsx(X,{label:"activity"}):$?L?null:o.jsx(M,{icon:At,title:t==="attention"?f?"No notifications match":"All caught up":e?"No public activity":"No recent activity",description:t==="attention"?f?"No notifications match these filters. Try another filter.":"Nothing needs you right now.":f?"No activity matches these filters. Try another filter.":e?"Runs on this workspace's public connections show up here.":"New activity will appear here as your agents, apps, and feeds work."}):t==="attention"?o.jsx(nt,{owner:n,rows:A}):o.jsxs(o.Fragment,{children:[y?o.jsx("div",{className:"space-y-1",children:o.jsx(V,{owner:n,organizationId:a,feeds:h.feeds,rows:h.pageRows})}):null,o.jsx("ul",{className:"divide-y divide-border/60",children:C.map(x=>o.jsx("li",{children:o.jsx(kn,{owner:n,group:x,connectorDefinitions:m})},x.key))})]}),!$&&t!=="attention"?o.jsxs("div",{className:"flex flex-wrap gap-4 pt-2 text-xs text-muted-foreground",children:[e&&t==="all"?o.jsx(j,{to:"/$owner/data",params:{owner:n},children:"Browse memory"}):null,t==="all"||t==="feeds"?o.jsx(j,{to:"/$owner/connectors",params:{owner:n},children:"Browse feeds"}):null,t==="all"||t==="automations"?o.jsx(j,{to:"/$owner",params:{owner:n},search:{tab:"runs",run_type:"automation"},children:"Automation history"}):null,t==="sessions"?o.jsx(j,{to:"/$owner/agents",params:{owner:n},children:"Browse agents and apps"}):null]}):null]})}function kn({owner:n,group:t,connectorDefinitions:e}){const[a,i]=v.useState(!1),r=v.useId(),c=t.entries[0];if(t.entries.length===1)return o.jsx(J,{owner:n,entry:c,connectorDefinitions:e});const d=t.entries.filter(s=>F(s.card?.status??"")).length,p=c.kind==="session"?"sessions":c.kind==="feed"?"syncs":c.kind==="run"?"operations":"runs";return o.jsxs("div",{children:[o.jsxs("button",{type:"button","aria-expanded":a,"aria-controls":r,onClick:()=>i(!a),className:"flex w-full items-center gap-3 rounded-md px-2 py-3 text-left hover:bg-accent/60",children:[o.jsx(lt,{entry:c,connectorDefinitions:e}),o.jsxs("span",{className:"min-w-0 flex-1",children:[o.jsx("span",{className:"block truncate text-sm font-medium",children:c.subjectLabel}),o.jsxs("span",{className:"block truncate text-xs text-muted-foreground",children:[t.entries.length," recent ",p,d>0?o.jsxs("span",{className:"text-destructive",children:[" · ",d," failed"]}):null,c.kind==="session"?null:` · ${c.detail??""}`]})]}),o.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:it(c.at)}),o.jsx(It,{"aria-hidden":!0,className:$t("h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform motion-reduce:transition-none",a&&"rotate-180")})]}),o.jsxs("ul",{id:r,hidden:!a,className:"ml-4 border-l pl-3",children:[a?t.entries.map(s=>o.jsx("li",{children:o.jsx(J,{owner:n,entry:s,connectorDefinitions:e})},s.id)):null,a&&c.card?.href?o.jsx("li",{children:o.jsx(_n,{entry:c})}):null]})]})}function _n({entry:n}){const t=ct(n.card?.href??"");return o.jsx(j,{to:t.pathname,search:t.search,className:"inline-block px-2 py-2 text-xs text-muted-foreground hover:text-foreground",children:n.kind==="automation"?"View Automation history":"View connection history"})}function lt({entry:n,connectorDefinitions:t}){const e=n.kind==="session"?at:n.kind==="feed"?ot:n.kind==="automation"?Ct:st;return o.jsx("span",{"aria-hidden":!0,className:"flex h-5 w-5 shrink-0 items-center justify-center",children:o.jsx(Lt,{source:n.source,connectorDefinitions:t,label:n.subjectLabel,fallback:o.jsx(e,{className:"h-4 w-4 text-muted-foreground"})})})}function J({owner:n,entry:t,connectorDefinitions:e}){const a=Rt();if(t.kind==="notification"&&t.card)return o.jsx(St,{owner:n,item:Et({...t.card,...t.source})});const i=o.jsxs(o.Fragment,{children:[o.jsx(lt,{entry:t,connectorDefinitions:e}),o.jsxs("span",{className:"min-w-0 flex-1",children:[o.jsx("span",{className:"block truncate text-sm font-medium",children:t.title}),o.jsxs("span",{className:"flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground",children:[F(t.card?.status??"")?o.jsx(et,{"aria-label":"Failed",className:"h-3 w-3 shrink-0 text-destructive"}):null,o.jsx("span",{className:"truncate",children:t.detail})]})]}),o.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:it(t.at)})]}),r="flex w-full items-center gap-3 rounded-md px-2 py-3 text-left hover:bg-accent/60";if(!t.href)return o.jsx("div",{className:r,children:i});const c=ct(t.href);return o.jsx(j,{to:c.pathname,search:c.search,className:r,onClick:d=>{!a||!t.card||t.kind==="session"||d.metaKey||d.ctrlKey||d.shiftKey||d.altKey||d.button!==0||(d.preventDefault(),a.open({href:t.href??"",title:t.title,runId:t.card.run_id??void 0,body:t.card.body,createdAt:t.card.at,owner:n,sourceAttribution:t.source??t.card}))},children:i})}function Mn({owner:n,search:t,entityScope:e,home:a=!1,homeView:i}){const r=typeof t.type=="string"&&t.type.trim()?O(t.type.trim()):void 0,c=typeof t.tab=="string"?t.tab:void 0,p=i??(a?c==="sessions"||c==="feeds"||c==="runs"?c:c==="automations"?"runs":"attention":null),s=String(t.attention)==="1",u=Object.entries(t).some(([f,y])=>(Tt.includes(f)||f.startsWith("clf_"))&&y!=null&&y!==""),g=B(),{pathname:m}=Mt(),l=Vt(t),h=f=>{const y={...l,...f};g({to:m,search:(b=>({...b,...tn(y)})),replace:!0})};return o.jsxs(Ft,{className:"gap-6 pt-2.5 pb-8",children:[o.jsx(Yt,{}),o.jsx(Ot,{owner:n,children:f=>o.jsx(Wt,{organizationId:f.organizationId,isWorkspaceLoading:f.isWorkspaceLoading,children:o.jsx(Pt,{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:p!=null&&(!u||p==="runs")&&!r&&!e?o.jsx(jn,{owner:f.ownerSlug,organizationId:f.organizationId,view:p,filters:l,onFiltersChange:h}):o.jsx(Jt,{organizationId:f.organizationId,ownerSlug:f.ownerSlug,typeScope:r,entityScope:e,attentionOnly:s})})})})]})}export{Mn as A,Tn as h};
2
- //# sourceMappingURL=activity-route-view-DN0ZEAzr.js.map
1
+ import{v as rt,at as Z,ck as K,bj as O,cl as Q,r as v,c as B,aq as ut,cm as dt,j as o,bO as X,b2 as M,cn as mt,co as V,cp as pt,cq as tt,B as T,L as j,cr as nt,cs as ft,ct as gt,cu as xt,cv as F,bb as ht,cw as vt,cx as bt,cy as et,cz as jt,cA as at,cB as ot,cC as st,cD as yt,aH as kt,cE as _t,cF as Nt,cG as At,cH as it,cI as It,i as $t,u as Rt,cJ as St,cK as Et,d as ct,cL as Ct,cM as Lt,cN as Tt,w as Mt,ak as Ft,az as Ot,al as Pt}from"./index-BjcZVe7n.js";import{R as Ht,E as Kt,S as Bt,N as U,M as Wt}from"./record-activity-CTLwq8s1.js";import{M as wt}from"./member-scope-gate-BQiRAqtx.js";import{o as P,F as Dt}from"./filter-bar-CQ_oE7a9.js";import{W as Ut}from"./runs-panel-BwTVaRsE.js";import{u as zt}from"./client-activity-scopes-BD2HBo-_.js";import{n as Gt}from"./nav-pill-Bam6s3jj.js";import{c as qt}from"./client-rows-x_CxeWkP.js";import{P as Yt}from"./public-shell-ready-Diq15_QW.js";function Jt({organizationId:n,ownerSlug:t,typeScope:e,entityScope:a,attentionOnly:i=!1}){const{orgContext:r}=rt(),{isMember:c,isLoading:d}=Z(),p=c&&!!n,{attentionItems:s,isError:u}=K(t),g=e?O(e):void 0,m=!a&&!g,{feeds:l,rows:h,pageRows:f}=Q(n,s),y=v.useMemo(()=>new Set(f.flatMap(({item:D})=>D.approvalRunId!=null?[D.approvalRunId]:[])),[f]),b=B(),_=()=>void b({to:"/$owner",params:{owner:t},search:{attention:"1"}}),{data:k,isLoading:N,error:C}=ut(a?`/${t}/${dt(a)}`:`/${t}`,r),A=a?k?.entity:void 0,L=(a?A?.entity_type??O(a.split("/").at(-2)??""):g)==="$member",$=a!=null&&!N&&(C!=null||k?.entity==null),x=a?void 0:k?.counts,R=x?x.connections>0||x.agents>0:!1,w=p&&!d&&!N&&x!=null&&!R,S=a&&N?o.jsx(X,{label:"Loading record…"}):$?o.jsx(M,{icon:mt,title:"Record not found",description:"It may have been deleted, or it may live in a workspace you can't access."}):i&&m?o.jsx(Zt,{owner:t,items:h,isError:u}):A?o.jsx(Ht,{ownerSlug:t,entity:A,organizationId:n}):o.jsx(Kt,{organizationId:n,ownerSlug:t,hideSourceFilter:!0,scopedEntityTypes:g?[g]:void 0,pinned:m&&(f.length>0||l.length>0)?{rows:o.jsx(V,{owner:t,organizationId:n,feeds:l,rows:f}),hiddenApprovalRunIds:y}:void 0,onShowNotifications:m?_:void 0,emptyState:w?o.jsx(Xt,{ownerSlug:t}):void 0});return o.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col gap-4",children:L?o.jsx(wt,{children:S}):S})}function Zt({owner:n,items:t,isError:e}){const a=B();return o.jsxs("section",{"aria-label":"Notifications",className:"space-y-3",children:[o.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2.5",children:[o.jsx("span",{className:"mr-auto text-sm text-muted-foreground tabular-nums",children:t.length>0?`${t.length} ${t.length===1?"notification":"notifications"}`:null}),o.jsx(Qt,{owner:n}),o.jsx(Bt,{value:U.value,withNotifications:!0,onChange:i=>{if(i===U.value)return;const[r,c]=i.split("-");a({to:"/$owner",params:{owner:n},search:pt({sortBy:r,sortOrder:c})})}})]}),e?o.jsx("p",{className:"px-3 text-sm text-destructive",children:"Could not load notifications."}):t.length===0?o.jsx(M,{icon:tt,title:"All caught up",description:"Nothing needs you right now.",children:o.jsx(T,{asChild:!0,variant:"outline",className:"mt-4",children:o.jsx(j,{to:"/$owner",params:{owner:n},children:"See all activity"})})}):o.jsx(nt,{owner:n,rows:t})]})}function Qt({owner:n}){const{visibleUnreadIds:t,markVisibleRead:e,bulkPending:a}=K(n);return t.length===0?null:o.jsxs(T,{type:"button",variant:"ghost",size:"sm",className:"h-8 text-muted-foreground",disabled:a,onClick:()=>void e(),children:[o.jsx(tt,{className:"mr-1.5 h-3.5 w-3.5"}),"Mark all as read"]})}function Xt({ownerSlug:n}){return o.jsx("div",{className:"px-6",children:o.jsx(M,{icon:ft,title:"Nothing to catch up on — yet",description:"No notifications here. Add a connector to bring in data, or bring your agent to Lobu and give it something to work with.",children:o.jsxs("div",{className:"mt-4 flex flex-wrap justify-center gap-2",children:[o.jsx(T,{asChild:!0,children:o.jsxs(j,{to:"/$owner/connectors/create",params:{owner:n},children:[o.jsx(gt,{className:"mr-2 h-4 w-4"}),"Add a connector"]})}),o.jsx(T,{asChild:!0,variant:"outline",children:o.jsxs(j,{to:"/$owner/agents",params:{owner:n},children:[o.jsx(xt,{className:"mr-2 h-4 w-4"}),"Connect agent"]})})]})})})}const H={agent:null,connection:null,automation:null,status:null,attentionKind:null};function E(n,t){const e=n[t];return typeof e=="string"&&e.trim()?e.trim():typeof e=="number"&&Number.isFinite(e)?String(e):null}function Vt(n){const t=E(n,"home_status"),e=E(n,"home_kind");return{agent:E(n,"home_agent"),connection:E(n,"home_connection"),automation:E(n,"home_automation"),status:t==="failed"||t==="running"||t==="completed"?t:null,attentionKind:e==="approval"||e==="notification"||e==="draft"?e:null}}function tn(n){return{home_agent:n.agent??void 0,home_connection:n.connection??void 0,home_automation:n.automation??void 0,home_status:n.status??void 0,home_kind:n.attentionKind??void 0}}function nn(n){return Object.values(n).some(t=>t!=null)}function en(n,t){const e=n.card?.status;return e?t==="failed"?F(e):t==="running"?e==="pending"||e==="claimed"||e==="running":e==="completed":!1}function an(n,t){return!(t.agent&&n.source?.agent_id!==t.agent||t.connection&&String(n.source?.connection_id??"")!==t.connection||t.automation&&String(n.source?.automation_id??"")!==t.automation||t.status&&!en(n,t.status))}function on(n,t){const e=n.notification;return t.agent&&e?.agent_id!==t.agent||t.connection&&String(e?.connection_id??"")!==t.connection||t.automation&&String(e?.automation_id??"")!==t.automation?!1:t.attentionKind==="draft"?n.browserUrl!=null:t.attentionKind==="approval"?n.approvalRunId!=null||n.interactionType==="approval"||n.interactionType==="authorization":t.attentionKind==="notification"?n.notification!=null&&n.approvalRunId==null:!0}function sn(n){const t=new Map;for(const e of n){const a=e.source?.agent_id;a&&t.set(a,e.source?.agent_name??a)}return[...t].map(([e,a])=>({value:e,label:a})).sort((e,a)=>e.label.localeCompare(a.label))}function cn(n){const t=new Map;for(const e of n){const a=e.source?.automation_id;a!=null&&t.set(String(a),e.source?.automation_name||e.subjectLabel||`Automation ${a}`)}return[...t].map(([e,a])=>({value:e,label:a})).sort((e,a)=>e.label.localeCompare(a.label))}function ln(n){return n.map(t=>({value:String(t.id),label:t.display_name||t.connector_key})).sort((t,e)=>t.label.localeCompare(e.label))}function rn(n){const t=new Map;for(const e of n){const a=e.notification?.agent_id;a&&t.set(a,e.notification?.agent_name??a)}return[...t].map(([e,a])=>({value:e,label:a})).sort((e,a)=>e.label.localeCompare(a.label))}function un(n){const t=new Map;for(const e of n){const a=e.notification?.automation_id;a!=null&&t.set(String(a),e.notification?.automation_name??`Automation ${a}`)}return[...t].map(([e,a])=>({value:e,label:a})).sort((e,a)=>e.label.localeCompare(a.label))}function dn(n){const t=new Map;for(const e of n){const a=e.notification?.connection_id;a!=null&&t.set(String(a),e.notification?.connection_name??`Connection ${a}`)}return[...t].map(([e,a])=>({value:e,label:a})).sort((e,a)=>e.label.localeCompare(a.label))}const z=[{value:"failed",label:"Failed"},{value:"running",label:"Running"},{value:"completed",label:"Completed"}],G=[{value:"approval",label:"Approvals"},{value:"notification",label:"Notifications"},{value:"draft",label:"Browser drafts"}];function I(n,t,e,a){return P({searchPlaceholder:`Search ${n.toLowerCase()}...`,emptyText:`No ${n.toLowerCase()} in this view`,options:t,selected:e?[e]:[],onSelect:a})}function mn({view:n,entries:t,attentionItems:e=[],connections:a,filters:i,onChange:r}){const c=n==="attention",d=[],p=c?rn(e):sn(t),s=c?un(e):cn(t),u=c?dn(e):ln(a);c?((()=>{d.push({key:"agent",label:"Agent",editor:I("agents",p,i.agent,l=>r({agent:l}))}),d.push({key:"connection",label:"Connection",editor:I("connections",u,i.connection,l=>r({connection:l}))}),d.push({key:"automation",label:"Automation",editor:I("automations",s,i.automation,l=>r({automation:l}))})})(),d.push({key:"attentionKind",label:"Type",editor:P({searchPlaceholder:"Search types...",options:G,selected:i.attentionKind?[i.attentionKind]:[],onSelect:l=>r({attentionKind:l})})})):((n==="all"||n==="sessions")&&d.push({key:"agent",label:"Agent",editor:I("agents",p,i.agent,l=>r({agent:l}))}),(n==="all"||n==="feeds")&&d.push({key:"connection",label:"Connection",editor:I("connections",u,i.connection,l=>r({connection:l}))}),(n==="all"||n==="automations")&&d.push({key:"automation",label:"Automation",editor:I("automations",s,i.automation,l=>r({automation:l}))}),n!=="sessions"&&d.push({key:"status",label:"Status",editor:P({searchPlaceholder:"Search statuses...",options:z,selected:i.status?[i.status]:[],onSelect:l=>r({status:l})})}));const m=[];if(i.agent&&m.push({id:"agent",label:"Agent",op:"is",value:p.find(l=>l.value===i.agent)?.label??i.agent,onRemove:()=>r({agent:null})}),i.connection){const l=u.find(h=>h.value===i.connection)?.label??i.connection;m.push({id:"connection",label:"Connection",op:"is",value:l,onRemove:()=>r({connection:null})})}return i.automation&&m.push({id:"automation",label:"Automation",op:"is",value:s.find(l=>l.value===i.automation)?.label??i.automation,onRemove:()=>r({automation:null})}),i.status&&!c&&m.push({id:"status",label:"Status",op:"is",value:z.find(l=>l.value===i.status)?.label??i.status,onRemove:()=>r({status:null})}),i.attentionKind&&c&&m.push({id:"attentionKind",label:"Type",op:"is",value:G.find(l=>l.value===i.attentionKind)?.label??i.attentionKind,onRemove:()=>r({attentionKind:null})}),o.jsx(Dt,{label:"Home filters",fields:d,chips:m,onClearAll:()=>r(H)})}const q=12,pn=5e3;function fn(n,t){const e=!!n&&!!t.organizationId&&(t.enabled??!0),a=ht({enabled:e}),{data:i}=a,r=i??[],c=v.useMemo(()=>r.map(l=>l.agentId),[r]),{threads:d,isLoading:p,isError:s}=vt(n,c,{enabled:e&&c.length>0,limit:q}),u=zt({enabled:e,limit:q,excludeCommandClients:!1,organizationId:t.organizationId,refetchInterval:l=>l?pn:!1}),g=t.organizationId?u.data:void 0;return{items:v.useMemo(()=>[...d.map(l=>({kind:"conversation",at:l.updatedAt,thread:l})),...(g??[]).map(l=>({kind:"mcp",at:l.lastCallAt,conversation:l}))].sort((l,h)=>h.at-l.at),[g,d]),agents:r,isLoading:e&&(a.isLoading||p||u.isLoading),isError:a.isError||s||u.isError}}function gn(n){return n==="all"?"activity":n}function Tn(n){switch(n){case"attention":return"attention";case"activity":return"all";case"sessions":return"sessions";case"feeds":return"feeds";case"runs":return"runs";case"automations":return"automations";default:return null}}function xn(n,t){return t==="attention"?{to:"/$owner",params:{owner:n}}:{to:"/$owner/views/$view",params:{owner:n,view:gn(t)}}}function hn(n,t,e,a=[]){const i=new Map(a.map(s=>[s.id,s])),r=new Map;for(const s of[...t.filter(u=>u.kind==="notification"),...e])r.set(s.notification_id!=null?`n:${s.notification_id}`:s.id,s);const c=new Set([...r.values()].flatMap(s=>s.run_id!=null?[s.run_id]:[])),d=new Map,p=new Set(t.flatMap(s=>s.kind==="automation_due"&&s.run_id!=null?[s.run_id]:[]));for(const s of[...t.filter(u=>u.kind!=="notification"&&(u.kind==="automation_due"||u.run_id==null||!p.has(u.run_id))&&(u.run_id==null||!c.has(u.run_id))),...r.values()])d.set(s.id,s);return[...d.values()].map(s=>{const u=s.connection_id!=null?i.get(s.connection_id):void 0,g={...s,platform:s.platform||u?.connector_key,connection_name:s.connection_name||u?.display_name},m=s.kind==="notification"?"notification":s.kind==="sync"?"feed":s.kind==="automation_run"||s.kind==="automation_due"?"automation":"run",l=m==="automation"&&s.automation_id!=null?`automation:${s.automation_id}`:(m==="feed"||m==="run")&&s.connection_id!=null?`connection:${s.connection_id}`:null;return{id:s.id,at:new Date(s.at).getTime(),title:s.title,detail:s.kind==="run"&&s.status&&!F(s.status)?s.status:s.body||s.status,kind:m,subject:l,subjectLabel:s.automation_name||g.connection_name||s.title,href:m!=="notification"&&s.run_id!=null?m==="automation"&&s.automation_id!=null?`/${n}/automations/${s.automation_id}?view=activity&run_id=${s.run_id}`:`/${n}/events?run_ids=${s.run_id}`:s.href,card:s,source:g}})}function vn(n,t,e){return t.map(a=>{if(a.kind==="mcp"){const s=a.conversation,u=n==="me"||s.organizationId==null?"/me/events":`/${n}/agents/connected/${encodeURIComponent(s.clientId)}/activity`,g=new URLSearchParams({mcp_activity_id:s.activityId});return(n==="me"||s.organizationId==null)&&g.set("client_ids",s.clientId),{id:`client:${s.clientId}:${s.activityId}`,at:a.at,title:qt(s),detail:`${s.clientName||"Connected app"} · ${s.callCount} ${s.callCount===1?"call":"calls"}${s.isLive?" · Active":""}`,href:`${u}?${g}`,kind:"session",subject:`client:${s.clientId}`,subjectLabel:s.clientName||"Connected app",source:{client_id:s.clientId,client_name:s.clientName}}}const i=a.thread,r=e.get(i.agentId)||"Agent",c=i.platform||"web",d=bt(n,i.agentId,i.id),p=c==="web"?Object.entries(d.params).reduce((s,[u,g])=>s.replace(`$${u}`,encodeURIComponent(g)),d.to):`/${n}/agents/${encodeURIComponent(i.agentId)}/conversations/${encodeURIComponent(i.conversationId??i.id)}`;return{id:`thread:${i.agentId}:${i.id}`,at:a.at,title:i.title||"Conversation",detail:`${r} · ${c==="web"?"Chat":c}${i.isRunning?" · Active":""}`,href:p,kind:"session",subject:`agent:${i.agentId}`,subjectLabel:r,source:{agent_id:i.agentId,agent_name:r,platform:c==="web"?null:c}}})}function bn(n){const t=new Map;for(const e of[...n].sort((a,i)=>i.at-a.at||a.id.localeCompare(i.id))){const a=new Date(e.at),i=`${a.getFullYear()}-${a.getMonth()}-${a.getDate()}`,r=e.subject?`${e.kind}:${e.subject}:${i}`:e.id,c=t.get(r)??{key:r,entries:[]};c.entries.push(e),t.set(r,c)}return[...t.values()]}const Y=[{view:"attention",label:"Needs attention",icon:et},{view:"all",label:"Activity",icon:jt},{view:"sessions",label:"Sessions",icon:at},{view:"feeds",label:"Feeds",icon:ot},{view:"runs",label:"Runs",icon:st}];function jn({owner:n,view:t,organizationId:e,filters:a,onFiltersChange:i}){const{isMember:r,isPublic:c,isLoading:d}=Z(n),p=c&&!r&&!d,s=p&&(t==="attention"||t==="sessions")?"all":t,u=p?Y.filter(m=>m.view!=="attention"&&m.view!=="sessions"):Y,g=K(p?null:n);return o.jsxs("div",{className:"flex min-w-0 flex-col gap-4",children:[o.jsx("nav",{"aria-label":"Activity views",className:"flex flex-wrap items-center gap-1.5",children:u.map(({view:m,label:l,icon:h})=>{const f=xn(n,m);return o.jsxs(j,{to:f.to,params:f.params,activeOptions:{exact:!0},"aria-current":s===m?"page":void 0,className:Gt(s===m,"h-7 gap-1.5 px-2 text-xs"),children:[o.jsx(h,{"aria-hidden":"true",className:"size-3.5"}),l,m==="attention"&&g.attentionItems.length>0?o.jsx("span",{className:"text-xs tabular-nums",children:g.attentionItems.length}):null]},m)})}),s==="runs"?o.jsx(Ut,{ownerSlug:n}):o.jsx(yn,{owner:n,view:s,visitor:p,organizationId:e,attention:g,filters:a,onFiltersChange:i})]})}function yn({owner:n,view:t,visitor:e,organizationId:a,attention:i,filters:r,onFiltersChange:c}){const[d,p]=v.useState(H),s=c!=null,u=r??d,g=x=>{if(c){c(x);return}p(R=>({...R,...x}))};v.useEffect(()=>{s||p(H)},[t,s]);const{data:m=[]}=yt(a),{data:l=[]}=kt(t==="all"||t==="feeds"||t==="automations"?a:null),h=Q(e?null:a,i.attentionItems),f=nn(u),y=t==="all"&&!f&&(h.feeds.length>0||h.pageRows.length>0),b=fn(n,{organizationId:a,enabled:!e&&(t==="all"||t==="sessions")}),_=_t(t==="attention"||t==="sessions"?null:n,{limit:50,aggregate:!1,includeRuns:!0,includeNotifications:!1,kinds:t==="feeds"?["sync"]:t==="automations"?["automation","automation_due"]:void 0}),k=v.useMemo(()=>{const x=new Map(b.agents.map(S=>[S.agentId,S.name])),R=t==="all"||t==="sessions"?vn(n,b.items,x):[];return[...t==="attention"?[]:hn(n,[..._.data??[],...t==="all"?i.notificationCards:[]],t==="all"?i.attentionCards:[],l),...R]},[n,t,b.agents,b.items,_.data,l,i.attentionCards,i.notificationCards]),N=v.useMemo(()=>new Set(t==="all"?h.pageRows.map(({item:x})=>x.id):[]),[t,h.pageRows]),C=v.useMemo(()=>bn(k.filter(x=>!N.has(x.id)&&an(x,u))),[k,N,u]),A=v.useMemo(()=>h.rows.filter(({item:x})=>on(x,u)),[h.rows,u]),W=a==null||(t==="attention"?i.isLoading:t!=="sessions"&&_.isLoading||(t==="all"||t==="sessions")&&b.isLoading||t==="all"&&i.isLoading),L=t==="attention"?i.isError:t!=="sessions"&&_.isError||(t==="all"||t==="sessions")&&b.isError||t==="all"&&i.isError,$=t==="attention"?A.length===0:C.length===0&&!y;return o.jsxs("section",{"aria-label":"Home activity",className:"flex min-w-0 flex-col gap-4",children:[o.jsx(mn,{view:t,entries:k,attentionItems:i.attentionItems,connections:l,filters:u,onChange:g}),t==="attention"&&!f?o.jsx(Nt,{owner:n}):null,L?o.jsx("p",{role:"alert",className:"text-sm text-destructive",children:"Some activity could not be loaded. Refresh to try again."}):null,W&&$?o.jsx(X,{label:"activity"}):$?L?null:o.jsx(M,{icon:At,title:t==="attention"?f?"No notifications match":"All caught up":e?"No public activity":"No recent activity",description:t==="attention"?f?"No notifications match these filters. Try another filter.":"Nothing needs you right now.":f?"No activity matches these filters. Try another filter.":e?"Runs on this workspace's public connections show up here.":"New activity will appear here as your agents, apps, and feeds work."}):t==="attention"?o.jsx(nt,{owner:n,rows:A}):o.jsxs(o.Fragment,{children:[y?o.jsx("div",{className:"space-y-1",children:o.jsx(V,{owner:n,organizationId:a,feeds:h.feeds,rows:h.pageRows})}):null,o.jsx("ul",{className:"divide-y divide-border/60",children:C.map(x=>o.jsx("li",{children:o.jsx(kn,{owner:n,group:x,connectorDefinitions:m})},x.key))})]}),!$&&t!=="attention"?o.jsxs("div",{className:"flex flex-wrap gap-4 pt-2 text-xs text-muted-foreground",children:[e&&t==="all"?o.jsx(j,{to:"/$owner/data",params:{owner:n},children:"Browse memory"}):null,t==="all"||t==="feeds"?o.jsx(j,{to:"/$owner/connectors",params:{owner:n},children:"Browse feeds"}):null,t==="all"||t==="automations"?o.jsx(j,{to:"/$owner",params:{owner:n},search:{tab:"runs",run_type:"automation"},children:"Automation history"}):null,t==="sessions"?o.jsx(j,{to:"/$owner/agents",params:{owner:n},children:"Browse agents and apps"}):null]}):null]})}function kn({owner:n,group:t,connectorDefinitions:e}){const[a,i]=v.useState(!1),r=v.useId(),c=t.entries[0];if(t.entries.length===1)return o.jsx(J,{owner:n,entry:c,connectorDefinitions:e});const d=t.entries.filter(s=>F(s.card?.status??"")).length,p=c.kind==="session"?"sessions":c.kind==="feed"?"syncs":c.kind==="run"?"operations":"runs";return o.jsxs("div",{children:[o.jsxs("button",{type:"button","aria-expanded":a,"aria-controls":r,onClick:()=>i(!a),className:"flex w-full items-center gap-3 rounded-md px-2 py-3 text-left hover:bg-accent/60",children:[o.jsx(lt,{entry:c,connectorDefinitions:e}),o.jsxs("span",{className:"min-w-0 flex-1",children:[o.jsx("span",{className:"block truncate text-sm font-medium",children:c.subjectLabel}),o.jsxs("span",{className:"block truncate text-xs text-muted-foreground",children:[t.entries.length," recent ",p,d>0?o.jsxs("span",{className:"text-destructive",children:[" · ",d," failed"]}):null,c.kind==="session"?null:` · ${c.detail??""}`]})]}),o.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:it(c.at)}),o.jsx(It,{"aria-hidden":!0,className:$t("h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform motion-reduce:transition-none",a&&"rotate-180")})]}),o.jsxs("ul",{id:r,hidden:!a,className:"ml-4 border-l pl-3",children:[a?t.entries.map(s=>o.jsx("li",{children:o.jsx(J,{owner:n,entry:s,connectorDefinitions:e})},s.id)):null,a&&c.card?.href?o.jsx("li",{children:o.jsx(_n,{entry:c})}):null]})]})}function _n({entry:n}){const t=ct(n.card?.href??"");return o.jsx(j,{to:t.pathname,search:t.search,className:"inline-block px-2 py-2 text-xs text-muted-foreground hover:text-foreground",children:n.kind==="automation"?"View Automation history":"View connection history"})}function lt({entry:n,connectorDefinitions:t}){const e=n.kind==="session"?at:n.kind==="feed"?ot:n.kind==="automation"?Ct:st;return o.jsx("span",{"aria-hidden":!0,className:"flex h-5 w-5 shrink-0 items-center justify-center",children:o.jsx(Lt,{source:n.source,connectorDefinitions:t,label:n.subjectLabel,fallback:o.jsx(e,{className:"h-4 w-4 text-muted-foreground"})})})}function J({owner:n,entry:t,connectorDefinitions:e}){const a=Rt();if(t.kind==="notification"&&t.card)return o.jsx(St,{owner:n,item:Et({...t.card,...t.source})});const i=o.jsxs(o.Fragment,{children:[o.jsx(lt,{entry:t,connectorDefinitions:e}),o.jsxs("span",{className:"min-w-0 flex-1",children:[o.jsx("span",{className:"block truncate text-sm font-medium",children:t.title}),o.jsxs("span",{className:"flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground",children:[F(t.card?.status??"")?o.jsx(et,{"aria-label":"Failed",className:"h-3 w-3 shrink-0 text-destructive"}):null,o.jsx("span",{className:"truncate",children:t.detail})]})]}),o.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:it(t.at)})]}),r="flex w-full items-center gap-3 rounded-md px-2 py-3 text-left hover:bg-accent/60";if(!t.href)return o.jsx("div",{className:r,children:i});const c=ct(t.href);return o.jsx(j,{to:c.pathname,search:c.search,className:r,onClick:d=>{!a||!t.card||t.kind==="session"||d.metaKey||d.ctrlKey||d.shiftKey||d.altKey||d.button!==0||(d.preventDefault(),a.open({href:t.href??"",title:t.title,runId:t.card.run_id??void 0,body:t.card.body,createdAt:t.card.at,owner:n,sourceAttribution:t.source??t.card}))},children:i})}function Mn({owner:n,search:t,entityScope:e,home:a=!1,homeView:i}){const r=typeof t.type=="string"&&t.type.trim()?O(t.type.trim()):void 0,c=typeof t.tab=="string"?t.tab:void 0,p=i??(a?c==="sessions"||c==="feeds"||c==="runs"?c:c==="automations"?"runs":"attention":null),s=String(t.attention)==="1",u=Object.entries(t).some(([f,y])=>(Tt.includes(f)||f.startsWith("clf_"))&&y!=null&&y!==""),g=B(),{pathname:m}=Mt(),l=Vt(t),h=f=>{const y={...l,...f};g({to:m,search:(b=>({...b,...tn(y)})),replace:!0})};return o.jsxs(Ft,{className:"gap-6 pt-2.5 pb-8",children:[o.jsx(Yt,{}),o.jsx(Ot,{owner:n,children:f=>o.jsx(Wt,{organizationId:f.organizationId,isWorkspaceLoading:f.isWorkspaceLoading,children:o.jsx(Pt,{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:p!=null&&(!u||p==="runs")&&!r&&!e?o.jsx(jn,{owner:f.ownerSlug,organizationId:f.organizationId,view:p,filters:l,onFiltersChange:h}):o.jsx(Jt,{organizationId:f.organizationId,ownerSlug:f.ownerSlug,typeScope:r,entityScope:e,attentionOnly:s})})})})]})}export{Mn as A,Tn as h};
2
+ //# sourceMappingURL=activity-route-view-CZykJXQp.js.map
@@ -1,2 +1,2 @@
1
- import{j as e,fC as i,C as l,i as c}from"./index-DdBTTN3y.js";function x({enabled:t,name:s,expanded:r,onToggleEnabled:a,toggleDisabled:n,onToggle:o}){return e.jsxs("div",{className:"flex shrink-0 items-center gap-2 self-center",children:[e.jsx(i,{checked:t,onCheckedChange:a,disabled:n,"aria-label":t?`Disable ${s}`:`Enable ${s}`}),e.jsx("button",{type:"button",onClick:o,"aria-label":r?"Collapse":"Expand",className:"text-muted-foreground transition-colors hover:text-foreground",children:e.jsx(l,{className:c("h-4 w-4 transition-transform",r&&"rotate-90")})})]})}export{x as A};
2
- //# sourceMappingURL=agent-card-controls-C5jNWgfq.js.map
1
+ import{j as e,fu as i,C as l,i as c}from"./index-BjcZVe7n.js";function x({enabled:t,name:s,expanded:r,onToggleEnabled:a,toggleDisabled:n,onToggle:o}){return e.jsxs("div",{className:"flex shrink-0 items-center gap-2 self-center",children:[e.jsx(i,{checked:t,onCheckedChange:a,disabled:n,"aria-label":t?`Disable ${s}`:`Enable ${s}`}),e.jsx("button",{type:"button",onClick:o,"aria-label":r?"Collapse":"Expand",className:"text-muted-foreground transition-colors hover:text-foreground",children:e.jsx(l,{className:c("h-4 w-4 transition-transform",r&&"rotate-90")})})]})}export{x as A};
2
+ //# sourceMappingURL=agent-card-controls-DuQJhtqp.js.map