decocms 2.161.2 → 2.161.3

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 (202) hide show
  1. package/dist/client/assets/{AlertCircle-pqdPgDlg.js → AlertCircle-wzCWgJKp.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-BvhXqcAM.js → AlignLeft-Cm7D7Jz2.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-CZcxuDlT.js → ArrowDown-D7VDMxao.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-DKz-4xQV.js → ArrowLeft-CRiE2QCS.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-GyzIO44k.js → ArrowUp-WlBoHBUF.js} +1 -1
  6. package/dist/client/assets/{Check-CDFiVxzc.js → Check-CxalVwyD.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DCUZbDbf.js → CheckCircle-BqWi0uzz.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-DZ3FVLwH.js → CheckDone01-DcQm_x6s.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-BxkeUz6L.js → CheckVerified02-CCgMV0Xo.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-CUijSoMc.js → ChevronDown-92pMp2oX.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-Cbh1TRDV.js → ChevronLeft-Bf6LLh_f.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-NxpG2X5l.js → ChevronRight-tF0xM-4Z.js} +1 -1
  13. package/dist/client/assets/{Clock-CJUYUnBj.js → Clock-B7L5NA_R.js} +1 -1
  14. package/dist/client/assets/{Code01-DePjsj74.js → Code01-CSlTufbJ.js} +1 -1
  15. package/dist/client/assets/{Container-DegtKaTT.js → Container-DMtRMvOi.js} +1 -1
  16. package/dist/client/assets/{Copy01-CNPA12Jg.js → Copy01-DEpVJelC.js} +1 -1
  17. package/dist/client/assets/{Dataflow03-BVQa7VBE.js → Dataflow03-BhLXgKlQ.js} +1 -1
  18. package/dist/client/assets/{DotsHorizontal-Cmta8mvI.js → DotsHorizontal-zOYK6o8m.js} +1 -1
  19. package/dist/client/assets/{DotsVertical-tmylCaVb.js → DotsVertical-CLkpl368.js} +1 -1
  20. package/dist/client/assets/{Download01-BMpUSmpB.js → Download01-uDAq7ugX.js} +1 -1
  21. package/dist/client/assets/{Edit01-Dxc70kRZ.js → Edit01-DTFNmaeE.js} +1 -1
  22. package/dist/client/assets/{Edit05-BGwpCOy8.js → Edit05-syMMdkAn.js} +1 -1
  23. package/dist/client/assets/{Eye-Dn6eQVRc.js → Eye-DZR5Sgqw.js} +1 -1
  24. package/dist/client/assets/{File02-D6qDtegb.js → File02-p2vd5gRf.js} +1 -1
  25. package/dist/client/assets/{File06-Dq0JHkfg.js → File06-5rM4N04P.js} +1 -1
  26. package/dist/client/assets/{FilterLines-DsZEIYdO.js → FilterLines-DsZqrmoJ.js} +1 -1
  27. package/dist/client/assets/{Globe01-nCFh23MN.js → Globe01-Cna-7yb_.js} +1 -1
  28. package/dist/client/assets/{Globe02-58PFDYOO.js → Globe02-BLgrzxIE.js} +1 -1
  29. package/dist/client/assets/{Grid01-C3T5n4Ns.js → Grid01-BxyHC8oa.js} +1 -1
  30. package/dist/client/assets/{Hash02-BtbHJwIA.js → Hash02-up1a7Yk0.js} +1 -1
  31. package/dist/client/assets/{Home02-CVP_-AAq.js → Home02-C8u5Jhw0.js} +1 -1
  32. package/dist/client/assets/{Image01-Df4shQrN.js → Image01-CLI9NfSq.js} +1 -1
  33. package/dist/client/assets/{Inbox01-C2MChB8W.js → Inbox01-CMG4E9ai.js} +1 -1
  34. package/dist/client/assets/{InfoCircle-DdCgd8w-.js → InfoCircle-CgRpog_z.js} +1 -1
  35. package/dist/client/assets/{Key01-B75dBfxy.js → Key01-DCd_LGTZ.js} +1 -1
  36. package/dist/client/assets/{LayersTwo01-Bl8XKBa1.js → LayersTwo01-BvTnUwGe.js} +1 -1
  37. package/dist/client/assets/{LayoutLeft-DBgpHH4b.js → LayoutLeft-CJYXpDCf.js} +1 -1
  38. package/dist/client/assets/{Link01-DRbcjvnt.js → Link01-DPzj4tpz.js} +1 -1
  39. package/dist/client/assets/{LinkExternal01-BuW_IxKI.js → LinkExternal01-CGtY5qZg.js} +1 -1
  40. package/dist/client/assets/{List-JP-IMB61.js → List-SMahZTO4.js} +1 -1
  41. package/dist/client/assets/{Loading01-Bg86p_4S.js → Loading01-Bze1WZW-.js} +1 -1
  42. package/dist/client/assets/{Lock01-CUvqR8A1.js → Lock01-B_0cjFTJ.js} +1 -1
  43. package/dist/client/assets/{Play-BpTz5kZm.js → Play-niUvi64J.js} +1 -1
  44. package/dist/client/assets/{Plus-CJHPMEjp.js → Plus-LN4mY-9i.js} +1 -1
  45. package/dist/client/assets/{RefreshCcw01-CEzW5PgL.js → RefreshCcw01-C0C5ptaM.js} +1 -1
  46. package/dist/client/assets/{Save01-BkKVEz4t.js → Save01-DlZ1-cfR.js} +1 -1
  47. package/dist/client/assets/{SearchMd-CwJLSOLk.js → SearchMd-F_aXmF-3.js} +1 -1
  48. package/dist/client/assets/{Settings01-BsSJuzwS.js → Settings01-CaZwmsCJ.js} +1 -1
  49. package/dist/client/assets/{Shield01-BZwBHewX.js → Shield01-DngARJc0.js} +1 -1
  50. package/dist/client/assets/{Terminal-1srXw7Rb.js → Terminal-CtU-OVGn.js} +1 -1
  51. package/dist/client/assets/{Trash01-cTJibjyo.js → Trash01-Bwp87fCr.js} +1 -1
  52. package/dist/client/assets/{Upload01-DNqKt2Ex.js → Upload01-DaeDmQtZ.js} +1 -1
  53. package/dist/client/assets/{Users03-DIxTnlo-.js → Users03-DpxIJiCb.js} +1 -1
  54. package/dist/client/assets/{X-DBGegVwb.js → X-gf_3nNHG.js} +1 -1
  55. package/dist/client/assets/{XCircle-COZoJP07.js → XCircle-DWwJhgPa.js} +1 -1
  56. package/dist/client/assets/{XClose-BvkrJnEc.js → XClose-C-K_Vaja.js} +1 -1
  57. package/dist/client/assets/{Zap-BCX9_zhf.js → Zap-BlQhJ_AT.js} +1 -1
  58. package/dist/client/assets/{agent-connections-preview-CFJw9GRB.js → agent-connections-preview-gR-iq9W7.js} +1 -1
  59. package/dist/client/assets/{agent-detail-BiTkjuJB.js → agent-detail-VK4T-_6I.js} +1 -1
  60. package/dist/client/assets/{agents-CE4lmgtV.js → agents-DCGGwBmH.js} +1 -1
  61. package/dist/client/assets/{alert-dialog-CW_u7eeV.js → alert-dialog-Bin5Tfuj.js} +2 -2
  62. package/dist/client/assets/{auth-catchall-Ct6Cr7Jp.js → auth-catchall-DtU2g9Mj.js} +1 -1
  63. package/dist/client/assets/{avatar-DRLqoNkW.js → avatar-B31kskAu.js} +1 -1
  64. package/dist/client/assets/{badge-BWAmAiUV.js → badge-B3jUOBeA.js} +1 -1
  65. package/dist/client/assets/{binder-D_AU3Ukn.js → binder-CHjF8z7t.js} +1 -1
  66. package/dist/client/assets/{breadcrumb-Bg67HRy9.js → breadcrumb-RbNIhzC-.js} +1 -1
  67. package/dist/client/assets/{card-7hcLkCEB.js → card-20_V1oP3.js} +1 -1
  68. package/dist/client/assets/{chart-Dw0NZjkg.js → chart-BLHHpC2I.js} +1 -1
  69. package/dist/client/assets/{checkbox-6x2X31Pv.js → checkbox-DNOEZe6O.js} +1 -1
  70. package/dist/client/assets/{circle-alert-BWN8SLrI.js → circle-alert-hz2vvmc1.js} +1 -1
  71. package/dist/client/assets/{collapsible-DwbiUeUb.js → collapsible-D_ju1zYz.js} +1 -1
  72. package/dist/client/assets/{collection-detail-BBwCylSh.js → collection-detail-Bbc7xOYn.js} +1 -1
  73. package/dist/client/assets/{collection-display-button-WFmVtIi7.js → collection-display-button-CPl7pq_-.js} +1 -1
  74. package/dist/client/assets/{collection-search-B54umXGp.js → collection-search-Dta_7bLf.js} +1 -1
  75. package/dist/client/assets/{collection-tab-CsqqKCXP.js → collection-tab-CEV5V3f-.js} +1 -1
  76. package/dist/client/assets/{collection-table-wrapper-BZOIm27z.js → collection-table-wrapper-Cnt9IhWx.js} +1 -1
  77. package/dist/client/assets/{collection-tabs-DOOzAXiO.js → collection-tabs-Cqam0Wq_.js} +1 -1
  78. package/dist/client/assets/{command-BzHx0nFf.js → command-CpDdpJuA.js} +1 -1
  79. package/dist/client/assets/{connect-Xg64wSud.js → connect-7xkdm7Ir.js} +1 -1
  80. package/dist/client/assets/{connection-card-DmPIw4Kg.js → connection-card-nPL8X300.js} +1 -1
  81. package/dist/client/assets/{connection-detail-CEXWHLXf.js → connection-detail-CgVIKGuL.js} +1 -1
  82. package/dist/client/assets/{connection-status-B_Z109Ry.js → connection-status-BKjCpqS3.js} +1 -1
  83. package/dist/client/assets/{connections-YxVBFdW8.js → connections-DeZMKw48.js} +1 -1
  84. package/dist/client/assets/{constants-DaSprOUn.js → constants-5XohhD_f.js} +1 -1
  85. package/dist/client/assets/constants-BFru2KWV.js +1 -0
  86. package/dist/client/assets/{context-ZdWC0La7.js → context-CTtcoCIi.js} +9 -9
  87. package/dist/client/assets/{create-organization-dialog-CZ7XLJZ2.js → create-organization-dialog-BTGz9lFR.js} +1 -1
  88. package/dist/client/assets/{create-project-dialog-4nsCEPvB.js → create-project-dialog-DU8b5qIM.js} +1 -1
  89. package/dist/client/assets/{danger-9AY19M9I.js → danger-BF5r1XMZ.js} +1 -1
  90. package/dist/client/assets/{danger-zone-DUuYBmgY.js → danger-zone-BZF6899E.js} +1 -1
  91. package/dist/client/assets/{decopilot-events-Cs-pdJXs.js → decopilot-events-Dwy6dXgg.js} +1 -1
  92. package/dist/client/assets/{dependencies-6_1PBWMZ.js → dependencies-DNEszsvl.js} +1 -1
  93. package/dist/client/assets/{dialog-CRJHcV_w.js → dialog-DxH8GO4d.js} +1 -1
  94. package/dist/client/assets/{dropdown-menu-ByUVopOy.js → dropdown-menu-CFEWQa_K.js} +1 -1
  95. package/dist/client/assets/{dynamic-plugin-layout-BQems7BE.js → dynamic-plugin-layout-B0o94jmF.js} +1 -1
  96. package/dist/client/assets/{editable-task-title-CrLCl8ja.js → editable-task-title-Dt_WaZpR.js} +1 -1
  97. package/dist/client/assets/{empty-state-DlQl9kGl.js → empty-state-Bxs7XZNI.js} +1 -1
  98. package/dist/client/assets/{env-vars-editor-C01OdNa1.js → env-vars-editor-DWgND44l.js} +1 -1
  99. package/dist/client/assets/{extract-connection-data-BKLs62Bt.js → extract-connection-data-Dp0FIsZq.js} +1 -1
  100. package/dist/client/assets/{file-browser-_OPiYVIh.js → file-browser-B0WY7QVG.js} +2 -2
  101. package/dist/client/assets/{form-Bz8l0jHv.js → form--EiAjir4.js} +1 -1
  102. package/dist/client/assets/{general-BaVO7kUh.js → general-BLQW0SWq.js} +1 -1
  103. package/dist/client/assets/{grid-view-D5jnfnXS.js → grid-view-C1eQZV6T.js} +1 -1
  104. package/dist/client/assets/{home-GJ33QBLJ.js → home-BhlGjt60.js} +1 -1
  105. package/dist/client/assets/{icon-picker-xxyJ8vlW.js → icon-picker-CamZ5oDW.js} +1 -1
  106. package/dist/client/assets/{index-BobyOFZi.js → index-BhvDbEFS.js} +1 -1
  107. package/dist/client/assets/{index-Dj-lsKhk.js → index-BoCyb2nQ.js} +1 -1
  108. package/dist/client/assets/{index-D1yfwwV4.js → index-BtrdkWUP.js} +1 -1
  109. package/dist/client/assets/{index-C2na4guL.js → index-Cag7rf5f.js} +3 -3
  110. package/dist/client/assets/{index-vgijt9J_.js → index-DFtp5nAe.js} +1 -1
  111. package/dist/client/assets/{index-BU2sT9tj.js → index-DktUqq7R.js} +1 -1
  112. package/dist/client/assets/{index-Bqz2mF-E.js → index-OPym4w5o.js} +1 -1
  113. package/dist/client/assets/{index-ICSQACSj.js → index-eNFlYk0_.js} +7 -7
  114. package/dist/client/assets/index-iChka6qr.js +1 -0
  115. package/dist/client/assets/{infiniteQueryObserver-Bo5FxNtU.js → infiniteQueryObserver-B3dSQxWm.js} +1 -1
  116. package/dist/client/assets/{input-DUsZ0674.js → input-BU10AGC6.js} +1 -1
  117. package/dist/client/assets/{integration-icon-DGtldPz9.js → integration-icon-BKhIZQox.js} +1 -1
  118. package/dist/client/assets/{label-CSGfgop7.js → label-C6bT3eG4.js} +1 -1
  119. package/dist/client/assets/{layout-Cd_QYQV8.js → layout-a5d200P2.js} +1 -1
  120. package/dist/client/assets/{layout-Bv5qTAVf.js → layout-vXZA4ess.js} +1 -1
  121. package/dist/client/assets/{localstorage-keys-rCdSk7V1.js → localstorage-keys-Cc-8xT2Q.js} +1 -1
  122. package/dist/client/assets/{login-DnmLD1yR.js → login-Dbq21Mu8.js} +1 -1
  123. package/dist/client/assets/{markdown-7O_t6qjD.js → markdown-COW3UK8R.js} +1 -1
  124. package/dist/client/assets/{mcp-app-renderer-D4E7hypr.js → mcp-app-renderer-C0sSQYUl.js} +1 -1
  125. package/dist/client/assets/{mcp-server-card-B5bdDRrO.js → mcp-server-card-BVTY4fFK.js} +1 -1
  126. package/dist/client/assets/{mcp-server-detail-BipYUahd.js → mcp-server-detail-BfFEU3Ca.js} +2 -2
  127. package/dist/client/assets/{members-DXAGCIzX.js → members-Bzr6Eusy.js} +1 -1
  128. package/dist/client/assets/{monaco-editor-BqVWju5E.js → monaco-editor-3FBKoSxm.js} +4 -4
  129. package/dist/client/assets/{monitoring-C16CCkds.js → monitoring-B9_G9rGi.js} +10 -10
  130. package/dist/client/assets/{monitoring-dashboard-edit-kRZzzeLE.js → monitoring-dashboard-edit-ihZjovsR.js} +1 -1
  131. package/dist/client/assets/{monitoring-dashboard-view-dupkPgnr.js → monitoring-dashboard-view-DPJ5oOTL.js} +1 -1
  132. package/dist/client/assets/{oauth-callback-D6OSg7HB.js → oauth-callback-BfO8DiMX.js} +1 -1
  133. package/dist/client/assets/{page-CrwdxmJx.js → page-BK2FlAm7.js} +1 -1
  134. package/dist/client/assets/{page-JVDQd7Pa.js → page-DrNv2hLE.js} +1 -1
  135. package/dist/client/assets/{plugin-empty-state-B5OREokA.js → plugin-empty-state-BsIaJnf_.js} +1 -1
  136. package/dist/client/assets/{plugin-empty-state-CJTXfK5G.js → plugin-empty-state-DB3a-CPN.js} +1 -1
  137. package/dist/client/assets/{plugin-header-BMsRFrsD.js → plugin-header-DDUqZYqS.js} +1 -1
  138. package/dist/client/assets/{plugin-header-Mne8oE1c.js → plugin-header-DZoxK7XC.js} +1 -1
  139. package/dist/client/assets/plugins-D_dg2liE.js +1 -0
  140. package/dist/client/assets/{popover-BmtBdGjb.js → popover-BGTZ4Jg2.js} +1 -1
  141. package/dist/client/assets/{project-app-view-DEA_89TX.js → project-app-view-Cm5ZjDvK.js} +1 -1
  142. package/dist/client/assets/{project-layout-B_g2ZCw2.js → project-layout-BgkRCgXh.js} +1 -1
  143. package/dist/client/assets/{project-plugins-yhhcAtKz.js → project-plugins-B8wYA_TO.js} +1 -1
  144. package/dist/client/assets/{projects-list-Dbu7WBPl.js → projects-list-BFZq7rRM.js} +1 -1
  145. package/dist/client/assets/{readme-viewer-CnL3dK7d.js → readme-viewer-eWzpImJ-.js} +1 -1
  146. package/dist/client/assets/{registry-layout-3t7vZz5Q.js → registry-layout-QIjOoCIB.js} +1 -1
  147. package/dist/client/assets/{registry-utils-CpY2YQZE.js → registry-utils-CXytYPKT.js} +1 -1
  148. package/dist/client/assets/{reports-layout-f1uXp8Wf.js → reports-layout-C0EBnxlu.js} +1 -1
  149. package/dist/client/assets/{reset-password-CWh0Stuy.js → reset-password-CZbBRUWh.js} +1 -1
  150. package/dist/client/assets/{resizable-Qi5e07L5.js → resizable-Dx94LkuC.js} +1 -1
  151. package/dist/client/assets/{save-actions-c2kWRBna.js → save-actions-Dy1mpcoK.js} +1 -1
  152. package/dist/client/assets/{scroll-area-CCwz27Cs.js → scroll-area-B52F-BUc.js} +1 -1
  153. package/dist/client/assets/{select-T9DEkcHR.js → select-DDvIxYC9.js} +1 -1
  154. package/dist/client/assets/{shell-layout-CRsdpEqy.js → shell-layout-8je4eclk.js} +2 -2
  155. package/dist/client/assets/{sidebar-settings-ZtDhOJ6Z.js → sidebar-settings-COcD5aX9.js} +1 -1
  156. package/dist/client/assets/{skeleton-BGhieoub.js → skeleton-vPkfHL7x.js} +1 -1
  157. package/dist/client/assets/{spinner-Bk3X7OJx.js → spinner-BxzkOyD6.js} +1 -1
  158. package/dist/client/assets/{store-invite-CZnlE5ip.js → store-invite-CRXC_N2h.js} +1 -1
  159. package/dist/client/assets/{switch-D0mfz5pr.js → switch-CT1_NI6K.js} +1 -1
  160. package/dist/client/assets/{table-DZiJB3ll.js → table-zdx3E6v9.js} +1 -1
  161. package/dist/client/assets/{tabs-BJ9uf_RZ.js → tabs-DK6oUINY.js} +1 -1
  162. package/dist/client/assets/tasks-BIo2z4kh.js +1 -0
  163. package/dist/client/assets/{tasks-panel-wqluKmNr.js → tasks-panel-dDHzZhim.js} +1 -1
  164. package/dist/client/assets/{textarea-kzEpH4RL.js → textarea-BPWoaNFn.js} +1 -1
  165. package/dist/client/assets/{time-range-picker-BQ1TWL3N.js → time-range-picker-Ctmd8k0x.js} +1 -1
  166. package/dist/client/assets/{toggle-group-CXudIshV.js → toggle-group-CegKLH1n.js} +1 -1
  167. package/dist/client/assets/{tools-list-SUAoOCuM.js → tools-list-BY3uMZdA.js} +1 -1
  168. package/dist/client/assets/{tooltip-BdAKZv54.js → tooltip-s11dEtpO.js} +1 -1
  169. package/dist/client/assets/{topbar-portal-El7xAic9.js → topbar-portal-rPJmCois.js} +1 -1
  170. package/dist/client/assets/{types-UVafsfzF.js → types-DRyYjHsT.js} +1 -1
  171. package/dist/client/assets/{use-binding-B7oG4xk1.js → use-binding-Dc1kKEIB.js} +1 -1
  172. package/dist/client/assets/{use-collections--9SGeKjH.js → use-collections-BG9rywMN.js} +1 -1
  173. package/dist/client/assets/{use-connection-Dr0AHpj7.js → use-connection-Dx2EaFOc.js} +1 -1
  174. package/dist/client/assets/{use-copy-vMjmnXEc.js → use-copy-BFB-OGf3.js} +1 -1
  175. package/dist/client/assets/{use-create-virtual-mcp-ChqLoL1m.js → use-create-virtual-mcp-Boh0ylO8.js} +1 -1
  176. package/dist/client/assets/{use-install-from-registry-VJLNAOzt.js → use-install-from-registry-BUnkMe_u.js} +1 -1
  177. package/dist/client/assets/{use-list-state-D_iRo0PJ.js → use-list-state-f-AMTm78.js} +1 -1
  178. package/dist/client/assets/{use-llm-DnQz3dsu.js → use-llm-BSkNsxRE.js} +1 -1
  179. package/dist/client/assets/{use-mcp-prompts-DhKfEu5C.js → use-mcp-prompts-CAEcR_lH.js} +1 -1
  180. package/dist/client/assets/{use-mcp-tools-DiVZVnvo.js → use-mcp-tools-Bn0JXnu7.js} +1 -1
  181. package/dist/client/assets/{use-members-mIA8yoGT.js → use-members-1che_jpy.js} +1 -1
  182. package/dist/client/assets/{use-mobile-DHwqDvar.js → use-mobile-DAXjM9XF.js} +1 -1
  183. package/dist/client/assets/{use-preferences-DE_OGVCO.js → use-preferences-D5ktNb6g.js} +1 -1
  184. package/dist/client/assets/{use-project-BRmCR_r0.js → use-project-BLkau85f.js} +1 -1
  185. package/dist/client/assets/{use-settings-modal-DU2uB_2j.js → use-settings-modal-DKWQxpc-.js} +1 -1
  186. package/dist/client/assets/{use-view-mode-BZc5mOXP.js → use-view-mode-DoyNiHJV.js} +1 -1
  187. package/dist/client/assets/{use-virtual-mcp-BpJ2qfK9.js → use-virtual-mcp-gWnd6DnQ.js} +1 -1
  188. package/dist/client/assets/useInfiniteQuery-Bt8cle7l.js +1 -0
  189. package/dist/client/assets/{useMutation-Cu1CYNQ4.js → useMutation-CCDwZCqX.js} +1 -1
  190. package/dist/client/assets/useQuery-Clb9lPv3.js +1 -0
  191. package/dist/client/assets/useSuspenseInfiniteQuery-a8ay6F8p.js +1 -0
  192. package/dist/client/assets/{user-r4C-ASlZ.js → user-Dc2KBRdg.js} +1 -1
  193. package/dist/client/assets/{workflow-DwGrEsyc.js → workflow-DstksxgA.js} +1 -1
  194. package/dist/client/index.html +1 -1
  195. package/package.json +1 -1
  196. package/dist/client/assets/constants-YgRD23Vv.js +0 -1
  197. package/dist/client/assets/index-C5rk7Y_P.js +0 -1
  198. package/dist/client/assets/plugins-BmICZHEP.js +0 -1
  199. package/dist/client/assets/tasks-dtcrF_V6.js +0 -1
  200. package/dist/client/assets/useInfiniteQuery-D6h6YOzH.js +0 -1
  201. package/dist/client/assets/useQuery-DnHeIEbf.js +0 -1
  202. package/dist/client/assets/useSuspenseInfiniteQuery-CE3o8dC9.js +0 -1
@@ -1 +1 @@
1
- import{bd as V,r as N,c as S,j as s,z as C,B as oe,E as le}from"./index-C2na4guL.js";import"./index-vgijt9J_.js";import{a as Q,u as Z}from"./context-ZdWC0La7.js";import{C as ie}from"./collection-search-B54umXGp.js";import{U as ae}from"./user-r4C-ASlZ.js";import{f as ce}from"./format-time-CMKyl-GC.js";import{i as de}from"./CheckCircle-DCUZbDbf.js";import{i as A}from"./Loading01-Bg86p_4S.js";import{i as me}from"./XCircle-COZoJP07.js";import{a as ue,b as fe,T as xe}from"./tooltip-BdAKZv54.js";import{i as pe}from"./Check-CDFiVxzc.js";import{i as he}from"./ChevronRight-NxpG2X5l.js";import{i as be}from"./Edit01-Dxc70kRZ.js";import{s as ge}from"./Plus-CJHPMEjp.js";import{a as je,d as ye,e as Ne,f as K,b as ke,g as ve,D as we}from"./dropdown-menu-ByUVopOy.js";const Ce=V("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const Te=V("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),J=({size:t=24,color:e="currentColor",...r})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},N.createElement("path",{d:"M9 18.5h6M6.6 2h10.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C19 2.76 19 3.04 19 3.6v2.075c0 .489 0 .733-.055.963-.05.205-.13.4-.24.579-.123.201-.296.374-.642.72L15.13 10.87c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l2.932 2.932c.346.346.519.519.642.72.11.18.19.374.24.578.055.23.055.475.055.965V20.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C18.24 22 17.96 22 17.4 22H6.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C5 21.24 5 20.96 5 20.4v-2.074c0-.49 0-.734.055-.965.05-.204.13-.399.24-.578.123-.201.296-.374.642-.72L8.87 13.13c.396-.396.594-.594.668-.822a1 1 0 0 0 0-.618c-.074-.228-.272-.426-.668-.822L5.937 7.937c-.346-.346-.519-.519-.642-.72a2 2 0 0 1-.24-.579C5 6.408 5 6.164 5 5.675V3.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C5.76 2 6.04 2 6.6 2Z"}));J.displayName="Hourglass03";const X=({size:t=24,color:e="currentColor",...r})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},N.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));X.displayName="Placeholder";const Se=["in_progress","requires_action","failed","expired","completed"],_e={in_progress:{label:"In Progress",icon:A,iconClassName:"text-muted-foreground animate-spin"},requires_action:{label:"Need Action",icon:X,iconClassName:"text-orange-500"},failed:{label:"Failed",icon:me,iconClassName:"text-destructive"},expired:{label:"Timed Out",icon:J,iconClassName:"text-warning"},completed:{label:"Complete",icon:de,iconClassName:"text-success"}};function Ee(t){const e={};for(const r of t){const n=r.status??"completed";e[n]||(e[n]=[]),e[n].push(r)}for(const r of Object.values(e))r.sort((n,o)=>new Date(o.updated_at).getTime()-new Date(n.updated_at).getTime());return e}function De(t){const e=S.c(12),{text:r,className:n}=t,o=N.useRef(null),[i,d]=N.useState(!1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=b=>{b&&o.current?d(o.current.scrollWidth>o.current.clientWidth):d(!1)},e[0]=a):a=e[0];let c;e[1]!==n?(c=C("truncate block",n),e[1]=n,e[2]=c):c=e[2];let u;e[3]!==c||e[4]!==r?(u=s.jsx(ue,{asChild:!0,children:s.jsx("span",{ref:o,className:c,children:r})}),e[3]=c,e[4]=r,e[5]=u):u=e[5];let m;e[6]!==r?(m=s.jsx(fe,{side:"top",align:"start",children:r}),e[6]=r,e[7]=m):m=e[7];let f;return e[8]!==i||e[9]!==u||e[10]!==m?(f=s.jsxs(xe,{open:i,onOpenChange:a,children:[u,m]}),e[8]=i,e[9]=u,e[10]=m,e[11]=f):f=e[11],f}function Me(){const t=S.c(21),{ownerFilter:e,setOwnerFilter:r,isFilterChangePending:n}=Z();let o;t[0]!==r?(o=v=>{r(v)},t[0]=r,t[1]=o):o=t[1];const i=o,d=e==="me",a=n?A:d?Ce:Te,c=d?"My tasks":"All tasks",u=n?"animate-spin text-muted-foreground":d?"text-foreground":"text-muted-foreground";let m;t[2]!==u?(m=C(u),t[2]=u,t[3]=m):m=t[3];let f;t[4]!==a||t[5]!==m?(f=s.jsx(a,{size:14,className:m}),t[4]=a,t[5]=m,t[6]=f):f=t[6];let b;t[7]!==n||t[8]!==c||t[9]!==f?(b=s.jsx(je,{asChild:!0,children:s.jsx(oe,{variant:"ghost",className:"size-8",title:c,disabled:n,children:f})}),t[7]=n,t[8]=c,t[9]=f,t[10]=b):b=t[10];let k,g;t[11]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(ye,{children:"Filter by owner"}),g=s.jsx(Ne,{}),t[11]=k,t[12]=g):(k=t[11],g=t[12]);let w,j;t[13]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(K,{value:"me",children:"My tasks"}),j=s.jsx(K,{value:"everyone",children:"All tasks"}),t[13]=w,t[14]=j):(w=t[13],j=t[14]);let x;t[15]!==i||t[16]!==e?(x=s.jsxs(ke,{align:"end",children:[k,g,s.jsxs(ve,{value:e,onValueChange:i,children:[w,j]})]}),t[15]=i,t[16]=e,t[17]=x):x=t[17];let p;return t[18]!==x||t[19]!==b?(p=s.jsxs(we,{children:[b,x]}),t[18]=x,t[19]=b,t[20]=p):p=t[20],p}function ze(t){const e=S.c(35),{onTaskSelect:r}=t,{activeTaskId:n,switchToTask:o}=Q(),{renameTask:i,tasks:d}=Z(),[a,c]=N.useState("");let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={},e[0]=u):u=e[0];const[m,f]=N.useState(u),[b,k]=N.useState(null),[g,w]=N.useState("");let j,x,p;if(e[1]!==n||e[2]!==m||e[3]!==b||e[4]!==g||e[5]!==r||e[6]!==i||e[7]!==a||e[8]!==o||e[9]!==d){const B=d.filter(Fe),G=a.trim()?B.filter(l=>l.title.toLowerCase().includes(a.toLowerCase())):B,P=Ee(G),Y=Se.filter(l=>P[l]&&P[l].length>0);let z;e[13]===Symbol.for("react.memo_cache_sentinel")?(z=l=>{f(y=>({...y,[l]:!y[l]}))},e[13]=z):z=e[13];const ee=z;let $;e[14]!==r||e[15]!==o?($=async l=>{r?r(l.id):await o(l.id)},e[14]=r,e[15]=o,e[16]=$):$=e[16];const te=$;let L;e[17]===Symbol.for("react.memo_cache_sentinel")?(L=(l,y)=>{y.stopPropagation(),k(l.id),w(l.title||"")},e[17]=L):L=e[17];const se=L;let F;e[18]!==g||e[19]!==i?(F=async l=>{const y=g.trim();y&&await i(l,y),k(null)},e[18]=g,e[19]=i,e[20]=F):F=e[20];const _=F;let O;e[21]!==_?(O=(l,y)=>{l.key==="Enter"?(l.preventDefault(),_(y)):l.key==="Escape"&&k(null)},e[21]=_,e[22]=O):O=e[22];const re=O;let U;e[23]===Symbol.for("react.memo_cache_sentinel")?(U=l=>{l.key==="Escape"&&(c(""),l.target.blur())},e[23]=U):U=e[23];let T;e[24]!==a?(T=s.jsx(ie,{value:a,onChange:c,placeholder:"Search tasks...",onKeyDown:U}),e[24]=a,e[25]=T):T=e[25];let I;e[26]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2",children:s.jsx(Me,{})}),e[26]=I):I=e[26],e[27]!==T?(p=s.jsxs("div",{className:"relative",children:[T,I]}),e[27]=T,e[28]=p):p=e[28],j="flex-1 overflow-y-auto",x=G.length===0?s.jsx("div",{className:"flex flex-col items-center justify-center gap-2 py-12 px-4 text-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:a?"No tasks found":"No tasks yet"})}):Y.map((l,y)=>{const E=_e[l];if(!E)return null;const H=E.icon,W=P[l]??[],q=!m[l];return s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("button",{type:"button",onClick:()=>ee(l),className:C("flex items-center w-full bg-[rgba(245,245,245,0.3)] border-b border-border/50 dark:bg-[rgba(30,30,30,0.3)]",y!==0&&"border-t border-border/50"),children:[s.jsx("div",{className:"flex items-center justify-center w-9 shrink-0 px-3",children:s.jsx(he,{size:16,className:C("text-muted-foreground transition-transform duration-200",q&&"rotate-90")})}),s.jsxs("div",{className:"flex items-center gap-3 flex-1 py-3",children:[s.jsx(H,{size:16,className:E.iconClassName}),s.jsx("span",{className:"font-mono text-xs text-muted-foreground uppercase tracking-wider",children:E.label}),s.jsx("span",{className:"text-xs text-muted-foreground/60",children:W.length})]})]}),q&&W.map(h=>{const ne=h.id===n,R=b===h.id;return s.jsxs("div",{className:C("group flex items-center w-full hover:bg-accent/50 transition-colors cursor-pointer",ne&&"bg-accent/50"),onClick:()=>!R&&te(h),children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 py-3 pl-4 flex-1",children:[s.jsx(H,{size:16,className:C("shrink-0",E.iconClassName)}),R?s.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0 pr-3",onClick:Le,children:[s.jsx("input",{autoFocus:!0,value:g,onChange:D=>w(D.target.value),onBlur:()=>_(h.id),onKeyDown:D=>re(D,h.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),s.jsx("button",{type:"button",onMouseDown:$e,onClick:()=>_(h.id),className:"p-1 hover:bg-accent rounded shrink-0",children:s.jsx(pe,{size:12,className:"text-muted-foreground"})})]}):s.jsx(De,{text:h.title||"Untitled",className:"text-sm font-medium text-foreground flex-1 min-w-0"})]}),!R&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-1 px-2 shrink-0",children:[s.jsx("button",{type:"button",onClick:D=>se(h,D),className:"opacity-0 group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename task",children:s.jsx(be,{size:13,className:"text-muted-foreground"})}),h.created_by&&s.jsx(ae,{id:h.created_by,size:"3xs",avatarOnly:!0})]}),s.jsx("div",{className:"w-20 p-3 shrink-0 text-right",children:s.jsx("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:h.updated_at?ce(new Date(h.updated_at)):"—"})})]})]},h.id)})]},l)}),e[1]=n,e[2]=m,e[3]=b,e[4]=g,e[5]=r,e[6]=i,e[7]=a,e[8]=o,e[9]=d,e[10]=j,e[11]=x,e[12]=p}else j=e[10],x=e[11],p=e[12];let v;e[29]!==j||e[30]!==x?(v=s.jsx("div",{className:j,children:x}),e[29]=j,e[30]=x,e[31]=v):v=e[31];let M;return e[32]!==p||e[33]!==v?(M=s.jsxs(s.Fragment,{children:[p,v]}),e[32]=p,e[33]=v,e[34]=M):M=e[34],M}function $e(t){return t.preventDefault()}function Le(t){return t.stopPropagation()}function Fe(t){return!t.hidden}function Oe(){const t=S.c(10),{createTask:e,isChatEmpty:r}=Q();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"}),t[0]=n):n=t[0];let o;t[1]!==e?(o=()=>e(),t[1]=e,t[2]=o):o=t[2];let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ge,{size:16,className:"text-muted-foreground"}),t[3]=i):i=t[3];let d;t[4]!==r||t[5]!==o?(d=s.jsxs("div",{className:"h-11 px-4 flex items-center justify-between shrink-0 border-b border-border/50",children:[n,s.jsx("button",{type:"button",onClick:o,disabled:r,className:"flex size-7 items-center justify-center rounded-md hover:bg-accent transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",title:"New chat",children:i})]}),t[4]=r,t[5]=o,t[6]=d):d=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(ze,{}),t[7]=a):a=t[7];let c;return t[8]!==d?(c=s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[d,a]}),t[8]=d,t[9]=c):c=t[9],c}function Ue(){const t=S.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[e,s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(A,{size:20,className:"animate-spin text-muted-foreground"})})]}),t[1]=r):r=t[1],r}function et(t){const e=S.c(5),{className:r}=t;let n;e[0]!==r?(n=C("h-full",r),e[0]=r,e[1]=n):n=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(le,{fallback:Ie,children:s.jsx(N.Suspense,{fallback:s.jsx(Ue,{}),children:s.jsx(Oe,{})})}),e[2]=o):o=e[2];let i;return e[3]!==n?(i=s.jsx("div",{className:n,children:o}),e[3]=n,e[4]=i):i=e[4],i}function Ie(){return s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[s.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),s.jsx("div",{className:"flex-1 flex items-center justify-center px-4 text-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})]})}export{ze as T,et as a};
1
+ import{bc as V,r as N,c as S,j as s,z as C,B as oe,E as le}from"./index-Cag7rf5f.js";import"./index-DFtp5nAe.js";import{a as Q,u as Z}from"./context-CTtcoCIi.js";import{C as ie}from"./collection-search-Dta_7bLf.js";import{U as ae}from"./user-Dc2KBRdg.js";import{f as ce}from"./format-time-CMKyl-GC.js";import{i as de}from"./CheckCircle-BqWi0uzz.js";import{i as A}from"./Loading01-Bze1WZW-.js";import{i as me}from"./XCircle-DWwJhgPa.js";import{a as ue,b as fe,T as xe}from"./tooltip-s11dEtpO.js";import{i as pe}from"./Check-CxalVwyD.js";import{i as he}from"./ChevronRight-tF0xM-4Z.js";import{i as be}from"./Edit01-DTFNmaeE.js";import{s as ge}from"./Plus-LN4mY-9i.js";import{a as je,d as ye,e as Ne,f as K,b as ke,g as ve,D as we}from"./dropdown-menu-CFEWQa_K.js";const Ce=V("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const Te=V("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),J=({size:t=24,color:e="currentColor",...r})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},N.createElement("path",{d:"M9 18.5h6M6.6 2h10.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C19 2.76 19 3.04 19 3.6v2.075c0 .489 0 .733-.055.963-.05.205-.13.4-.24.579-.123.201-.296.374-.642.72L15.13 10.87c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l2.932 2.932c.346.346.519.519.642.72.11.18.19.374.24.578.055.23.055.475.055.965V20.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C18.24 22 17.96 22 17.4 22H6.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C5 21.24 5 20.96 5 20.4v-2.074c0-.49 0-.734.055-.965.05-.204.13-.399.24-.578.123-.201.296-.374.642-.72L8.87 13.13c.396-.396.594-.594.668-.822a1 1 0 0 0 0-.618c-.074-.228-.272-.426-.668-.822L5.937 7.937c-.346-.346-.519-.519-.642-.72a2 2 0 0 1-.24-.579C5 6.408 5 6.164 5 5.675V3.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C5.76 2 6.04 2 6.6 2Z"}));J.displayName="Hourglass03";const X=({size:t=24,color:e="currentColor",...r})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},N.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));X.displayName="Placeholder";const Se=["in_progress","requires_action","failed","expired","completed"],_e={in_progress:{label:"In Progress",icon:A,iconClassName:"text-muted-foreground animate-spin"},requires_action:{label:"Need Action",icon:X,iconClassName:"text-orange-500"},failed:{label:"Failed",icon:me,iconClassName:"text-destructive"},expired:{label:"Timed Out",icon:J,iconClassName:"text-warning"},completed:{label:"Complete",icon:de,iconClassName:"text-success"}};function Ee(t){const e={};for(const r of t){const n=r.status??"completed";e[n]||(e[n]=[]),e[n].push(r)}for(const r of Object.values(e))r.sort((n,o)=>new Date(o.updated_at).getTime()-new Date(n.updated_at).getTime());return e}function De(t){const e=S.c(12),{text:r,className:n}=t,o=N.useRef(null),[i,d]=N.useState(!1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=b=>{b&&o.current?d(o.current.scrollWidth>o.current.clientWidth):d(!1)},e[0]=a):a=e[0];let c;e[1]!==n?(c=C("truncate block",n),e[1]=n,e[2]=c):c=e[2];let u;e[3]!==c||e[4]!==r?(u=s.jsx(ue,{asChild:!0,children:s.jsx("span",{ref:o,className:c,children:r})}),e[3]=c,e[4]=r,e[5]=u):u=e[5];let m;e[6]!==r?(m=s.jsx(fe,{side:"top",align:"start",children:r}),e[6]=r,e[7]=m):m=e[7];let f;return e[8]!==i||e[9]!==u||e[10]!==m?(f=s.jsxs(xe,{open:i,onOpenChange:a,children:[u,m]}),e[8]=i,e[9]=u,e[10]=m,e[11]=f):f=e[11],f}function Me(){const t=S.c(21),{ownerFilter:e,setOwnerFilter:r,isFilterChangePending:n}=Z();let o;t[0]!==r?(o=v=>{r(v)},t[0]=r,t[1]=o):o=t[1];const i=o,d=e==="me",a=n?A:d?Ce:Te,c=d?"My tasks":"All tasks",u=n?"animate-spin text-muted-foreground":d?"text-foreground":"text-muted-foreground";let m;t[2]!==u?(m=C(u),t[2]=u,t[3]=m):m=t[3];let f;t[4]!==a||t[5]!==m?(f=s.jsx(a,{size:14,className:m}),t[4]=a,t[5]=m,t[6]=f):f=t[6];let b;t[7]!==n||t[8]!==c||t[9]!==f?(b=s.jsx(je,{asChild:!0,children:s.jsx(oe,{variant:"ghost",className:"size-8",title:c,disabled:n,children:f})}),t[7]=n,t[8]=c,t[9]=f,t[10]=b):b=t[10];let k,g;t[11]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(ye,{children:"Filter by owner"}),g=s.jsx(Ne,{}),t[11]=k,t[12]=g):(k=t[11],g=t[12]);let w,j;t[13]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(K,{value:"me",children:"My tasks"}),j=s.jsx(K,{value:"everyone",children:"All tasks"}),t[13]=w,t[14]=j):(w=t[13],j=t[14]);let x;t[15]!==i||t[16]!==e?(x=s.jsxs(ke,{align:"end",children:[k,g,s.jsxs(ve,{value:e,onValueChange:i,children:[w,j]})]}),t[15]=i,t[16]=e,t[17]=x):x=t[17];let p;return t[18]!==x||t[19]!==b?(p=s.jsxs(we,{children:[b,x]}),t[18]=x,t[19]=b,t[20]=p):p=t[20],p}function ze(t){const e=S.c(35),{onTaskSelect:r}=t,{activeTaskId:n,switchToTask:o}=Q(),{renameTask:i,tasks:d}=Z(),[a,c]=N.useState("");let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={},e[0]=u):u=e[0];const[m,f]=N.useState(u),[b,k]=N.useState(null),[g,w]=N.useState("");let j,x,p;if(e[1]!==n||e[2]!==m||e[3]!==b||e[4]!==g||e[5]!==r||e[6]!==i||e[7]!==a||e[8]!==o||e[9]!==d){const B=d.filter(Fe),G=a.trim()?B.filter(l=>l.title.toLowerCase().includes(a.toLowerCase())):B,P=Ee(G),Y=Se.filter(l=>P[l]&&P[l].length>0);let z;e[13]===Symbol.for("react.memo_cache_sentinel")?(z=l=>{f(y=>({...y,[l]:!y[l]}))},e[13]=z):z=e[13];const ee=z;let $;e[14]!==r||e[15]!==o?($=async l=>{r?r(l.id):await o(l.id)},e[14]=r,e[15]=o,e[16]=$):$=e[16];const te=$;let L;e[17]===Symbol.for("react.memo_cache_sentinel")?(L=(l,y)=>{y.stopPropagation(),k(l.id),w(l.title||"")},e[17]=L):L=e[17];const se=L;let F;e[18]!==g||e[19]!==i?(F=async l=>{const y=g.trim();y&&await i(l,y),k(null)},e[18]=g,e[19]=i,e[20]=F):F=e[20];const _=F;let O;e[21]!==_?(O=(l,y)=>{l.key==="Enter"?(l.preventDefault(),_(y)):l.key==="Escape"&&k(null)},e[21]=_,e[22]=O):O=e[22];const re=O;let U;e[23]===Symbol.for("react.memo_cache_sentinel")?(U=l=>{l.key==="Escape"&&(c(""),l.target.blur())},e[23]=U):U=e[23];let T;e[24]!==a?(T=s.jsx(ie,{value:a,onChange:c,placeholder:"Search tasks...",onKeyDown:U}),e[24]=a,e[25]=T):T=e[25];let I;e[26]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2",children:s.jsx(Me,{})}),e[26]=I):I=e[26],e[27]!==T?(p=s.jsxs("div",{className:"relative",children:[T,I]}),e[27]=T,e[28]=p):p=e[28],j="flex-1 overflow-y-auto",x=G.length===0?s.jsx("div",{className:"flex flex-col items-center justify-center gap-2 py-12 px-4 text-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:a?"No tasks found":"No tasks yet"})}):Y.map((l,y)=>{const E=_e[l];if(!E)return null;const H=E.icon,W=P[l]??[],q=!m[l];return s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("button",{type:"button",onClick:()=>ee(l),className:C("flex items-center w-full bg-[rgba(245,245,245,0.3)] border-b border-border/50 dark:bg-[rgba(30,30,30,0.3)]",y!==0&&"border-t border-border/50"),children:[s.jsx("div",{className:"flex items-center justify-center w-9 shrink-0 px-3",children:s.jsx(he,{size:16,className:C("text-muted-foreground transition-transform duration-200",q&&"rotate-90")})}),s.jsxs("div",{className:"flex items-center gap-3 flex-1 py-3",children:[s.jsx(H,{size:16,className:E.iconClassName}),s.jsx("span",{className:"font-mono text-xs text-muted-foreground uppercase tracking-wider",children:E.label}),s.jsx("span",{className:"text-xs text-muted-foreground/60",children:W.length})]})]}),q&&W.map(h=>{const ne=h.id===n,R=b===h.id;return s.jsxs("div",{className:C("group flex items-center w-full hover:bg-accent/50 transition-colors cursor-pointer",ne&&"bg-accent/50"),onClick:()=>!R&&te(h),children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 py-3 pl-4 flex-1",children:[s.jsx(H,{size:16,className:C("shrink-0",E.iconClassName)}),R?s.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0 pr-3",onClick:Le,children:[s.jsx("input",{autoFocus:!0,value:g,onChange:D=>w(D.target.value),onBlur:()=>_(h.id),onKeyDown:D=>re(D,h.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),s.jsx("button",{type:"button",onMouseDown:$e,onClick:()=>_(h.id),className:"p-1 hover:bg-accent rounded shrink-0",children:s.jsx(pe,{size:12,className:"text-muted-foreground"})})]}):s.jsx(De,{text:h.title||"Untitled",className:"text-sm font-medium text-foreground flex-1 min-w-0"})]}),!R&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-1 px-2 shrink-0",children:[s.jsx("button",{type:"button",onClick:D=>se(h,D),className:"opacity-0 group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename task",children:s.jsx(be,{size:13,className:"text-muted-foreground"})}),h.created_by&&s.jsx(ae,{id:h.created_by,size:"3xs",avatarOnly:!0})]}),s.jsx("div",{className:"w-20 p-3 shrink-0 text-right",children:s.jsx("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:h.updated_at?ce(new Date(h.updated_at)):"—"})})]})]},h.id)})]},l)}),e[1]=n,e[2]=m,e[3]=b,e[4]=g,e[5]=r,e[6]=i,e[7]=a,e[8]=o,e[9]=d,e[10]=j,e[11]=x,e[12]=p}else j=e[10],x=e[11],p=e[12];let v;e[29]!==j||e[30]!==x?(v=s.jsx("div",{className:j,children:x}),e[29]=j,e[30]=x,e[31]=v):v=e[31];let M;return e[32]!==p||e[33]!==v?(M=s.jsxs(s.Fragment,{children:[p,v]}),e[32]=p,e[33]=v,e[34]=M):M=e[34],M}function $e(t){return t.preventDefault()}function Le(t){return t.stopPropagation()}function Fe(t){return!t.hidden}function Oe(){const t=S.c(10),{createTask:e,isChatEmpty:r}=Q();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"}),t[0]=n):n=t[0];let o;t[1]!==e?(o=()=>e(),t[1]=e,t[2]=o):o=t[2];let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ge,{size:16,className:"text-muted-foreground"}),t[3]=i):i=t[3];let d;t[4]!==r||t[5]!==o?(d=s.jsxs("div",{className:"h-11 px-4 flex items-center justify-between shrink-0 border-b border-border/50",children:[n,s.jsx("button",{type:"button",onClick:o,disabled:r,className:"flex size-7 items-center justify-center rounded-md hover:bg-accent transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",title:"New chat",children:i})]}),t[4]=r,t[5]=o,t[6]=d):d=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(ze,{}),t[7]=a):a=t[7];let c;return t[8]!==d?(c=s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[d,a]}),t[8]=d,t[9]=c):c=t[9],c}function Ue(){const t=S.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[e,s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(A,{size:20,className:"animate-spin text-muted-foreground"})})]}),t[1]=r):r=t[1],r}function et(t){const e=S.c(5),{className:r}=t;let n;e[0]!==r?(n=C("h-full",r),e[0]=r,e[1]=n):n=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(le,{fallback:Ie,children:s.jsx(N.Suspense,{fallback:s.jsx(Ue,{}),children:s.jsx(Oe,{})})}),e[2]=o):o=e[2];let i;return e[3]!==n?(i=s.jsx("div",{className:n,children:o}),e[3]=n,e[4]=i):i=e[4],i}function Ie(){return s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[s.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),s.jsx("div",{className:"flex-1 flex items-center justify-center px-4 text-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})]})}export{ze as T,et as a};
@@ -1 +1 @@
1
- import{c as o,z as n,j as l}from"./index-C2na4guL.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=n("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=l.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
1
+ import{c as o,z as n,j as l}from"./index-Cag7rf5f.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=n("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=l.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
@@ -1,4 +1,4 @@
1
- import{r as N,c as At,e as gn,u as yn,j as s,B as I,O as Dt,x as ne,z as U,bb as kt}from"./index-C2na4guL.js";import{B as bn}from"./badge-BWAmAiUV.js";import{a as lt,b as ct,P as ut}from"./popover-BmtBdGjb.js";import{T as Ge,a as Qe,b as Xe}from"./tooltip-BdAKZv54.js";import{i as Je}from"./Check-CDFiVxzc.js";import{a as $e}from"./Copy01-CNPA12Jg.js";import{n as Mt}from"./Download01-BMpUSmpB.js";import{i as xn}from"./FilterLines-DsZEIYdO.js";import{i as wn}from"./Key01-B75dBfxy.js";import{i as Nn}from"./Play-BpTz5kZm.js";import{M as _t,n as Dn}from"./monaco-editor-BqVWju5E.js";import{S as kn}from"./scroll-area-CCwz27Cs.js";import{t as Mn}from"./ChevronDown-CUijSoMc.js";import{s as _n}from"./Clock-CJUYUnBj.js";import{n as jn}from"./ChevronLeft-Cbh1TRDV.js";import{i as Cn}from"./ChevronRight-NxpG2X5l.js";import{I as jt}from"./input-DUsZ0674.js";const Ht=({size:t=24,color:e="currentColor",...n})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},N.createElement("path",{d:"M4 7c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C5.602 4 6.068 4 7 4h10c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C20 5.602 20 6.068 20 7M9 20h6M12 4v16"}));Ht.displayName="Type01";const Ct={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Sn(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),r=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${r}`}).join(",")}function Ao(t){return t?t.split(",").map(e=>{const[n,r,...a]=e.split(":");return{key:decodeURIComponent(n||""),operator:r||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function Ho(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
1
+ import{r as N,c as At,e as gn,u as yn,j as s,B as I,O as Dt,x as ne,z as U,ba as kt}from"./index-Cag7rf5f.js";import{B as bn}from"./badge-B3jUOBeA.js";import{a as lt,b as ct,P as ut}from"./popover-BGTZ4Jg2.js";import{T as Ge,a as Qe,b as Xe}from"./tooltip-s11dEtpO.js";import{i as Je}from"./Check-CxalVwyD.js";import{a as $e}from"./Copy01-DEpVJelC.js";import{n as Mt}from"./Download01-uDAq7ugX.js";import{i as xn}from"./FilterLines-DsZqrmoJ.js";import{i as wn}from"./Key01-DCd_LGTZ.js";import{i as Nn}from"./Play-niUvi64J.js";import{M as _t,n as Dn}from"./monaco-editor-3FBKoSxm.js";import{S as kn}from"./scroll-area-B52F-BUc.js";import{t as Mn}from"./ChevronDown-92pMp2oX.js";import{s as _n}from"./Clock-B7L5NA_R.js";import{n as jn}from"./ChevronLeft-Bf6LLh_f.js";import{i as Cn}from"./ChevronRight-tF0xM-4Z.js";import{I as jt}from"./input-BU10AGC6.js";const Ht=({size:t=24,color:e="currentColor",...n})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},N.createElement("path",{d:"M4 7c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C5.602 4 6.068 4 7 4h10c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C20 5.602 20 6.068 20 7M9 20h6M12 4v16"}));Ht.displayName="Type01";const Ct={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Sn(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),r=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${r}`}).join(",")}function Ao(t){return t?t.split(",").map(e=>{const[n,r,...a]=e.split(":");return{key:decodeURIComponent(n||""),operator:r||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function Ho(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
2
2
  `)}function qo(t){return t.trim()?t.split(`
3
3
  `).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[n,...r]=e.split("=");return{key:n||"",operator:"eq",value:r.join("=")}}if(e.includes("~")){const[n,...r]=e.split("~");return{key:n||"",operator:"contains",value:r.join("~")}}if(e.includes("@")){const[n,...r]=e.split("@");return{key:n||"",operator:"in",value:r.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function zo(t){const e={},n={},r=[],a={};for(const o of t)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(n[o.key]=`%${o.value}%`);break;case"exists":r.push(o.key);break;case"in":o.value&&(a[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(n).length>0?n:void 0,propertyKeys:r.length>0?r:void 0,propertyInValues:Object.keys(a).length>0?a:void 0}}function St(t){if(!t)return{content:"null",isTruncated:!1,originalSize:4};const e=JSON.stringify(t,null,2),n=e.length;return n<=Ct.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:n}:{content:e.slice(0,Ct.maxJsonRenderSize)+`
4
4
 
@@ -1 +1 @@
1
- import{r as x,R as h,j as c,U as m,Y as k,bO as p,X as M,Z as T,Q as S,T as A,a0 as F,M as $,c as P,z as C}from"./index-C2na4guL.js";var j="Toggle",_=x.forwardRef((r,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...a}=r,[t,o]=h({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":r.disabled?"":void 0,...a,ref:e,onClick:k(r.onClick,()=>{r.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),z=T(),b=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(O,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});b.displayName=v;var[I,R]=w(v),D=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(I,{scope:r.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(y,{...a,ref:e})})}),O=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=h({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(I,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(y,{...a,ref:e})})});b.displayName=v;var[B,U]=w(v),y=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:a,dir:t,loop:o=!0,...i}=r,d=z(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(B,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:a,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((r,e)=>{const l=R(f,r.__scopeToggleGroup),s=U(f,r.__scopeToggleGroup),n=z(r.__scopeToggleGroup),a=l.value.includes(r.value),t=s.disabled||r.disabled,o={...r,pressed:a,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:a,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,value:s,...n}=r,a=R(f,l),t={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},o=a.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?a.onItemActivate(s):a.onItemDeactivate(s)}})}),H=b,L=N;const Q=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function Y(r){const e=P.c(20);let l,s,n,a,t;e[0]!==r?({className:s,variant:t,size:a,children:l,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==a||e[9]!==t?(i={variant:t,size:a},e[8]=a,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==a||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(H,{"data-slot":"toggle-group","data-variant":t,"data-size":a,className:o,...n,children:d}),e[14]=n,e[15]=a,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Z(r){const e=P.c(18);let l,s,n,a,t;e[0]!==r?({className:s,children:l,variant:t,size:a,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||a;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==a||e[10]!==t?(u=C(Q({variant:o.variant||t,size:o.size||a}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=a,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(L,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{Y as T,Z as a};
1
+ import{r as x,R as h,j as c,U as m,Y as k,bN as p,X as M,Z as T,Q as S,T as A,a0 as F,M as $,c as P,z as C}from"./index-Cag7rf5f.js";var j="Toggle",_=x.forwardRef((r,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...a}=r,[t,o]=h({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":r.disabled?"":void 0,...a,ref:e,onClick:k(r.onClick,()=>{r.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),z=T(),b=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});b.displayName=v;var[I,R]=w(v),D=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(I,{scope:r.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(y,{...a,ref:e})})}),B=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=h({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(I,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(y,{...a,ref:e})})});b.displayName=v;var[O,U]=w(v),y=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:a,dir:t,loop:o=!0,...i}=r,d=z(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:a,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((r,e)=>{const l=R(f,r.__scopeToggleGroup),s=U(f,r.__scopeToggleGroup),n=z(r.__scopeToggleGroup),a=l.value.includes(r.value),t=s.disabled||r.disabled,o={...r,pressed:a,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:a,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,value:s,...n}=r,a=R(f,l),t={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},o=a.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?a.onItemActivate(s):a.onItemDeactivate(s)}})}),H=b,L=N;const Q=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function Y(r){const e=P.c(20);let l,s,n,a,t;e[0]!==r?({className:s,variant:t,size:a,children:l,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==a||e[9]!==t?(i={variant:t,size:a},e[8]=a,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==a||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(H,{"data-slot":"toggle-group","data-variant":t,"data-size":a,className:o,...n,children:d}),e[14]=n,e[15]=a,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Z(r){const e=P.c(18);let l,s,n,a,t;e[0]!==r?({className:s,children:l,variant:t,size:a,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||a;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==a||e[10]!==t?(u=C(Q({variant:o.variant||t,size:o.size||a}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=a,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(L,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{Y as T,Z as a};
@@ -1 +1 @@
1
- import{c as z,e as X,r as H,j as t,a3 as Y,a4 as Z,O as ee}from"./index-C2na4guL.js";import{C as te}from"./collection-display-button-WFmVtIi7.js";import{E as B,C as se}from"./collection-search-B54umXGp.js";import{C as oe}from"./collection-table-wrapper-BZOIm27z.js";import{I as ne}from"./integration-icon-DGtldPz9.js";import{B as K}from"./badge-BWAmAiUV.js";import{C as ae}from"./card-7hcLkCEB.js";import{T as G,a as P,b as W,c as re}from"./tooltip-BdAKZv54.js";import{g as ie}from"./types-UVafsfzF.js";import{s as le}from"./Eye-Dn6eQVRc.js";import{s as ce}from"./Globe02-58PFDYOO.js";import{s as me}from"./LayersTwo01-Bl8XKBa1.js";import{V as de}from"./layout-Bv5qTAVf.js";const fe=[{key:"readOnlyHint",label:"Read-only",Icon:le,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:Y,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:Z,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:ce,variant:"outline"}];function pe(s){const e=z.c(18),{annotations:r,_meta:d}=s;let u;e[0]!==d?(u=ie(d),e[0]=d,e[1]=u):u=e[1];const l=!!u;let h,x,c,f,m;if(e[2]!==r||e[3]!==l){m=Symbol.for("react.early_return_sentinel");e:{const n=r?fe.filter(I=>r[I.key]===!0):[];if(n.length===0&&!l){m=null;break e}h=re,x="flex gap-1 flex-nowrap",e[9]!==l?(c=l&&t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:t.jsx(me,{})})}),t.jsx(W,{children:"Interactive"})]}),e[9]=l,e[10]=c):c=e[10],f=n.map(ue)}e[2]=r,e[3]=l,e[4]=h,e[5]=x,e[6]=c,e[7]=f,e[8]=m}else h=e[4],x=e[5],c=e[6],f=e[7],m=e[8];if(m!==Symbol.for("react.early_return_sentinel"))return m;let p;e[11]!==x||e[12]!==c||e[13]!==f?(p=t.jsxs("div",{className:x,children:[c,f]}),e[11]=x,e[12]=c,e[13]=f,e[14]=p):p=e[14];let g;return e[15]!==h||e[16]!==p?(g=t.jsx(h,{children:p}),e[15]=h,e[16]=p,e[17]=g):g=e[17],g}function ue(s){const{label:e,Icon:r,variant:d}=s;return t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:d,className:"size-6 p-1",children:t.jsx(r,{})})}),t.jsx(W,{children:e})]},e)}function De(s){const e=z.c(40),{tools:r,connectionId:d,org:u,onToolClick:l,showToolbar:h,emptyMessage:x,isLoading:c}=s,f=h===void 0?!0:h,m=x===void 0?"This connection doesn't have any tools yet.":x,p=c===void 0?!1:c,g=X(),[n,I]=H.useState(""),[j,F]=H.useState("table"),[a,M]=H.useState("name"),[i,V]=H.useState("asc");let w;e[0]!==i||e[1]!==a?(w=o=>{a===o?(V(Ne),i==="desc"&&M(void 0)):(M(o),V("asc"))},e[0]=i,e[1]=a,e[2]=w):w=e[2];const y=w;let _;e[3]!==d||e[4]!==g||e[5]!==l||e[6]!==u?(_=o=>{l?l(o):d&&u&&g({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:u,project:ee,connectionId:d,collectionName:"tools",itemId:encodeURIComponent(o.name)}})},e[3]=d,e[4]=g,e[5]=l,e[6]=u,e[7]=_):_=e[7];const k=_;let $;if(e[8]!==n||e[9]!==i||e[10]!==a||e[11]!==r){const o=!r||r.length===0?[]:n.trim()?(()=>{const E=n.toLowerCase();return r.filter(S=>S.name.toLowerCase().includes(E)||S.description&&S.description.toLowerCase().includes(E))})():r;$=!a||!i?o:[...o].sort((E,S)=>{const q=E[a]||"",Q=S[a]||"",U=String(q).localeCompare(String(Q));return i==="asc"?U:-U}),e[8]=n,e[9]=i,e[10]=a,e[11]=r,e[12]=$}else $=e[12];const T=$;let L;e[13]===Symbol.for("react.memo_cache_sentinel")?(L=[{id:"name",header:"Name",render:ye,sortable:!0},{id:"annotations",header:"Hints",render:je,cellClassName:"w-32 shrink-0"},{id:"description",header:"Description",render:ge,cellClassName:"flex-1",sortable:!0}],e[13]=L):L=e[13];const A=L;let O;e[14]===Symbol.for("react.memo_cache_sentinel")?(O=A.filter(xe).map(he),e[14]=O):O=e[14];const J=O;let N;e[15]!==y||e[16]!==f||e[17]!==i||e[18]!==a||e[19]!==j?(N=f&&t.jsx(de,{children:t.jsx(te,{viewMode:j,onViewModeChange:F,sortKey:a,sortDirection:i,onSort:y,sortOptions:J})}),e[15]=y,e[16]=f,e[17]=i,e[18]=a,e[19]=j,e[20]=N):N=e[20];let R;e[21]===Symbol.for("react.memo_cache_sentinel")?(R=o=>{o.key==="Escape"&&(I(""),o.target.blur())},e[21]=R):R=e[21];let v;e[22]!==n?(v=t.jsx(se,{value:n,onChange:I,placeholder:"Search tools...",onKeyDown:R}),e[22]=n,e[23]=v):v=e[23];let C;e[24]!==m||e[25]!==y||e[26]!==k||e[27]!==p||e[28]!==n||e[29]!==i||e[30]!==a||e[31]!==T||e[32]!==j?(C=j==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:T.length===0?t.jsx(B,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":m}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:T.map(o=>t.jsx(ae,{className:"cursor-pointer transition-colors",onClick:()=>k(o),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(ne,{icon:null,name:o.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:o.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:o.description||"No description"})]})]})},o.name))})}):t.jsx(oe,{columns:A,data:T,isLoading:p,sortKey:a,sortDirection:i,onSort:y,onRowClick:o=>k(o),emptyState:t.jsx(B,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":m})}),e[24]=m,e[25]=y,e[26]=k,e[27]=p,e[28]=n,e[29]=i,e[30]=a,e[31]=T,e[32]=j,e[33]=C):C=e[33];let b;e[34]!==v||e[35]!==C?(b=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[v,C]}),e[34]=v,e[35]=C,e[36]=b):b=e[36];let D;return e[37]!==b||e[38]!==N?(D=t.jsxs(t.Fragment,{children:[N,b]}),e[37]=b,e[38]=N,e[39]=D):D=e[39],D}function he(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function xe(s){return s.sortable}function ge(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function je(s){return t.jsx(pe,{annotations:s.annotations,_meta:s._meta})}function ye(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function Ne(s){return s==="asc"?"desc":s==="desc"?null:"asc"}export{pe as T,De as a};
1
+ import{c as z,e as X,r as H,j as t,a3 as Y,a4 as Z,O as ee}from"./index-Cag7rf5f.js";import{C as te}from"./collection-display-button-CPl7pq_-.js";import{E as B,C as se}from"./collection-search-Dta_7bLf.js";import{C as oe}from"./collection-table-wrapper-Cnt9IhWx.js";import{I as ne}from"./integration-icon-BKhIZQox.js";import{B as K}from"./badge-B3jUOBeA.js";import{C as ae}from"./card-20_V1oP3.js";import{T as G,a as P,b as W,c as re}from"./tooltip-s11dEtpO.js";import{g as ie}from"./types-DRyYjHsT.js";import{s as le}from"./Eye-DZR5Sgqw.js";import{s as ce}from"./Globe02-BLgrzxIE.js";import{s as me}from"./LayersTwo01-BvTnUwGe.js";import{V as de}from"./layout-vXZA4ess.js";const fe=[{key:"readOnlyHint",label:"Read-only",Icon:le,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:Y,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:Z,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:ce,variant:"outline"}];function pe(s){const e=z.c(18),{annotations:r,_meta:d}=s;let u;e[0]!==d?(u=ie(d),e[0]=d,e[1]=u):u=e[1];const l=!!u;let h,x,c,f,m;if(e[2]!==r||e[3]!==l){m=Symbol.for("react.early_return_sentinel");e:{const n=r?fe.filter(I=>r[I.key]===!0):[];if(n.length===0&&!l){m=null;break e}h=re,x="flex gap-1 flex-nowrap",e[9]!==l?(c=l&&t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:t.jsx(me,{})})}),t.jsx(W,{children:"Interactive"})]}),e[9]=l,e[10]=c):c=e[10],f=n.map(ue)}e[2]=r,e[3]=l,e[4]=h,e[5]=x,e[6]=c,e[7]=f,e[8]=m}else h=e[4],x=e[5],c=e[6],f=e[7],m=e[8];if(m!==Symbol.for("react.early_return_sentinel"))return m;let p;e[11]!==x||e[12]!==c||e[13]!==f?(p=t.jsxs("div",{className:x,children:[c,f]}),e[11]=x,e[12]=c,e[13]=f,e[14]=p):p=e[14];let g;return e[15]!==h||e[16]!==p?(g=t.jsx(h,{children:p}),e[15]=h,e[16]=p,e[17]=g):g=e[17],g}function ue(s){const{label:e,Icon:r,variant:d}=s;return t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:d,className:"size-6 p-1",children:t.jsx(r,{})})}),t.jsx(W,{children:e})]},e)}function De(s){const e=z.c(40),{tools:r,connectionId:d,org:u,onToolClick:l,showToolbar:h,emptyMessage:x,isLoading:c}=s,f=h===void 0?!0:h,m=x===void 0?"This connection doesn't have any tools yet.":x,p=c===void 0?!1:c,g=X(),[n,I]=H.useState(""),[j,F]=H.useState("table"),[a,M]=H.useState("name"),[i,V]=H.useState("asc");let w;e[0]!==i||e[1]!==a?(w=o=>{a===o?(V(Ne),i==="desc"&&M(void 0)):(M(o),V("asc"))},e[0]=i,e[1]=a,e[2]=w):w=e[2];const y=w;let _;e[3]!==d||e[4]!==g||e[5]!==l||e[6]!==u?(_=o=>{l?l(o):d&&u&&g({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:u,project:ee,connectionId:d,collectionName:"tools",itemId:encodeURIComponent(o.name)}})},e[3]=d,e[4]=g,e[5]=l,e[6]=u,e[7]=_):_=e[7];const k=_;let $;if(e[8]!==n||e[9]!==i||e[10]!==a||e[11]!==r){const o=!r||r.length===0?[]:n.trim()?(()=>{const E=n.toLowerCase();return r.filter(S=>S.name.toLowerCase().includes(E)||S.description&&S.description.toLowerCase().includes(E))})():r;$=!a||!i?o:[...o].sort((E,S)=>{const q=E[a]||"",Q=S[a]||"",U=String(q).localeCompare(String(Q));return i==="asc"?U:-U}),e[8]=n,e[9]=i,e[10]=a,e[11]=r,e[12]=$}else $=e[12];const T=$;let L;e[13]===Symbol.for("react.memo_cache_sentinel")?(L=[{id:"name",header:"Name",render:ye,sortable:!0},{id:"annotations",header:"Hints",render:je,cellClassName:"w-32 shrink-0"},{id:"description",header:"Description",render:ge,cellClassName:"flex-1",sortable:!0}],e[13]=L):L=e[13];const A=L;let O;e[14]===Symbol.for("react.memo_cache_sentinel")?(O=A.filter(xe).map(he),e[14]=O):O=e[14];const J=O;let N;e[15]!==y||e[16]!==f||e[17]!==i||e[18]!==a||e[19]!==j?(N=f&&t.jsx(de,{children:t.jsx(te,{viewMode:j,onViewModeChange:F,sortKey:a,sortDirection:i,onSort:y,sortOptions:J})}),e[15]=y,e[16]=f,e[17]=i,e[18]=a,e[19]=j,e[20]=N):N=e[20];let R;e[21]===Symbol.for("react.memo_cache_sentinel")?(R=o=>{o.key==="Escape"&&(I(""),o.target.blur())},e[21]=R):R=e[21];let v;e[22]!==n?(v=t.jsx(se,{value:n,onChange:I,placeholder:"Search tools...",onKeyDown:R}),e[22]=n,e[23]=v):v=e[23];let C;e[24]!==m||e[25]!==y||e[26]!==k||e[27]!==p||e[28]!==n||e[29]!==i||e[30]!==a||e[31]!==T||e[32]!==j?(C=j==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:T.length===0?t.jsx(B,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":m}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:T.map(o=>t.jsx(ae,{className:"cursor-pointer transition-colors",onClick:()=>k(o),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(ne,{icon:null,name:o.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:o.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:o.description||"No description"})]})]})},o.name))})}):t.jsx(oe,{columns:A,data:T,isLoading:p,sortKey:a,sortDirection:i,onSort:y,onRowClick:o=>k(o),emptyState:t.jsx(B,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":m})}),e[24]=m,e[25]=y,e[26]=k,e[27]=p,e[28]=n,e[29]=i,e[30]=a,e[31]=T,e[32]=j,e[33]=C):C=e[33];let b;e[34]!==v||e[35]!==C?(b=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[v,C]}),e[34]=v,e[35]=C,e[36]=b):b=e[36];let D;return e[37]!==b||e[38]!==N?(D=t.jsxs(t.Fragment,{children:[N,b]}),e[37]=b,e[38]=N,e[39]=D):D=e[39],D}function he(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function xe(s){return s.sortable}function ge(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function je(s){return t.jsx(pe,{annotations:s.annotations,_meta:s._meta})}function ye(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function Ne(s){return s==="asc"?"desc":s==="desc"?null:"asc"}export{pe as T,De as a};
@@ -1 +1 @@
1
- import{r as i,W as H,j as c,aY as X,U as K,Y as C,$ as S,aZ as Z,av as J,R as Q,a_ as ee,a$ as $,b0 as te,b1 as oe,a0 as re,b2 as ne,b3 as se,c as j,z as ae}from"./index-C2na4guL.js";import{R as ie}from"./index-BobyOFZi.js";var[O]=re("Tooltip",[$]),D=$(),G="TooltipProvider",le=700,A="tooltip.open",[ce,k]=O(G),z=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=i.useRef(!0),d=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};z.displayName=G;var R="Tooltip",[ue,_]=O(R),F=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=k(R,o.__scopeTooltip),p=D(e),[u,v]=i.useState(null),x=J(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=Q({prop:r,defaultProp:n??!1,onChange:I=>{I?(a.onOpen(),document.dispatchEvent(new CustomEvent(A))):a.onClose(),s?.(I)},caller:R}),w=i.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),P=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),N=i.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return i.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(ee,{...p,children:c.jsx(ue,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?N():E()},[a.isOpenDelayedRef,N,E]),onTriggerLeave:i.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};F.displayName=R;var L="TooltipTrigger",Y=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(L,t),s=k(L,t),l=D(t),d=i.useRef(null),a=H(e,d,n.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),v=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(X,{asChild:!0,...l,children:c.jsx(K.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});Y.displayName=L;var M="TooltipPortal",[de,pe]=O(M,{forceMount:void 0}),B=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(M,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(S,{present:t||s.open,children:c.jsx(Z,{asChild:!0,container:n,children:r})})})};B.displayName=M;var b="TooltipContent",U=i.forwardRef((o,e)=>{const t=pe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx(S,{present:r||l.open,children:l.disableHoverableContent?c.jsx(V,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=k(b,o.__scopeTooltip),n=i.useRef(null),s=H(e,n),[l,d]=i.useState(null),{trigger:a,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=i.useCallback(()=>{d(null),v(!1)},[v]),f=i.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ge(y,g.getBoundingClientRect()),w=Te(y,m),E=me(T.getBoundingClientRect()),P=Ce([...w,...E]);d(P),v(!0)},[v]);return i.useEffect(()=>()=>x(),[x]),i.useEffect(()=>{if(a&&u){const h=g=>f(g,u),T=g=>f(g,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[a,u,f,x]),i.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=a?.contains(g)||u?.contains(g),w=!ye(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,x]),c.jsx(V,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),V=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(b,t),p=D(t),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),i.useEffect(()=>{if(a.trigger){const v=x=>{x.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[a.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(oe,{"data-state":a.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(he,{children:r}),c.jsx(ve,{scope:t,isInside:!0,children:c.jsx(ie,{id:a.contentId,role:"tooltip",children:n||r})})]})})});U.displayName=b;var q="TooltipArrow",W=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(q,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});W.displayName=q;function ge(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Te(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function me(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function ye(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],a=e[l],p=d.x,u=d.y,v=a.x,x=a.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function Ce(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),be(e)}function be(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var we=z,Ee=F,Pe=Y,Re=B,_e=U,je=W;function Oe(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(we,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Le(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Oe,{children:c.jsx(Ee,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function ke(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Pe,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Me(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ae("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=a):a=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Re,{children:c.jsxs(_e,{"data-slot":"tooltip-content",sideOffset:l,className:d,...n,children:[t,a]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{Le as T,ke as a,Me as b,Oe as c};
1
+ import{r as i,W as H,j as c,aX as W,U as K,Y as C,$ as S,aY as Z,av as J,R as Q,aZ as ee,a_ as $,a$ as te,b0 as oe,a0 as re,b1 as ne,b2 as se,c as j,z as ae}from"./index-Cag7rf5f.js";import{R as ie}from"./index-BhvDbEFS.js";var[O]=re("Tooltip",[$]),D=$(),G="TooltipProvider",le=700,A="tooltip.open",[ce,k]=O(G),z=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=i.useRef(!0),d=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};z.displayName=G;var R="Tooltip",[ue,_]=O(R),F=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=k(R,o.__scopeTooltip),p=D(e),[u,v]=i.useState(null),x=J(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=Q({prop:r,defaultProp:n??!1,onChange:I=>{I?(a.onOpen(),document.dispatchEvent(new CustomEvent(A))):a.onClose(),s?.(I)},caller:R}),w=i.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),P=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),N=i.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return i.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(ee,{...p,children:c.jsx(ue,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?N():E()},[a.isOpenDelayedRef,N,E]),onTriggerLeave:i.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};F.displayName=R;var L="TooltipTrigger",Y=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(L,t),s=k(L,t),l=D(t),d=i.useRef(null),a=H(e,d,n.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),v=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(W,{asChild:!0,...l,children:c.jsx(K.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});Y.displayName=L;var M="TooltipPortal",[de,pe]=O(M,{forceMount:void 0}),B=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(M,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(S,{present:t||s.open,children:c.jsx(Z,{asChild:!0,container:n,children:r})})})};B.displayName=M;var b="TooltipContent",U=i.forwardRef((o,e)=>{const t=pe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx(S,{present:r||l.open,children:l.disableHoverableContent?c.jsx(V,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=k(b,o.__scopeTooltip),n=i.useRef(null),s=H(e,n),[l,d]=i.useState(null),{trigger:a,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=i.useCallback(()=>{d(null),v(!1)},[v]),f=i.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ge(y,g.getBoundingClientRect()),w=Te(y,m),E=me(T.getBoundingClientRect()),P=Ce([...w,...E]);d(P),v(!0)},[v]);return i.useEffect(()=>()=>x(),[x]),i.useEffect(()=>{if(a&&u){const h=g=>f(g,u),T=g=>f(g,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[a,u,f,x]),i.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=a?.contains(g)||u?.contains(g),w=!ye(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,x]),c.jsx(V,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),V=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(b,t),p=D(t),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),i.useEffect(()=>{if(a.trigger){const v=x=>{x.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[a.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(oe,{"data-state":a.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(he,{children:r}),c.jsx(ve,{scope:t,isInside:!0,children:c.jsx(ie,{id:a.contentId,role:"tooltip",children:n||r})})]})})});U.displayName=b;var X="TooltipArrow",q=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(X,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});q.displayName=X;function ge(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Te(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function me(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function ye(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],a=e[l],p=d.x,u=d.y,v=a.x,x=a.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function Ce(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),be(e)}function be(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var we=z,Ee=F,Pe=Y,Re=B,_e=U,je=q;function Oe(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(we,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Le(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Oe,{children:c.jsx(Ee,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function ke(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Pe,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Me(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ae("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=a):a=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Re,{children:c.jsxs(_e,{"data-slot":"tooltip-content",sideOffset:l,className:d,...n,children:[t,a]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{Le as T,ke as a,Me as b,Oe as c};
@@ -1 +1 @@
1
- import{r,c,j as l}from"./index-C2na4guL.js";const s=r.createContext(null);function x(i){const t=c.c(3),{value:u,children:n}=i,o=u;let e;return t[0]!==n||t[1]!==o?(e=l.jsx(s.Provider,{value:o,children:n}),t[0]=n,t[1]=o,t[2]=e):e=t[2],e}function p(i){const t=r.useContext(s);if(!t)throw new Error("usePluginContext must be used within a PluginContextProvider");if(!t.connectionId||!t.connection||!t.toolCaller)throw new Error("usePluginContext requires a valid connection. Use { partial: true } in empty state components.");return t}r.createContext(null);export{x as P,p as u};
1
+ import{r,c,j as l}from"./index-Cag7rf5f.js";const s=r.createContext(null);function x(i){const t=c.c(3),{value:u,children:n}=i,o=u;let e;return t[0]!==n||t[1]!==o?(e=l.jsx(s.Provider,{value:o,children:n}),t[0]=n,t[1]=o,t[2]=e):e=t[2],e}function p(i){const t=r.useContext(s);if(!t)throw new Error("usePluginContext must be used within a PluginContextProvider");if(!t.connectionId||!t.connection||!t.toolCaller)throw new Error("usePluginContext requires a valid connection. Use { partial: true } in empty state components.");return t}r.createContext(null);export{x as P,p as u};
@@ -1,4 +1,4 @@
1
- import{bg as A,bh as D,bi as N,bj as E,bk as O,bl as B,bm as V,bn as W,bo as C,bp as K,bq as F,br as J,bs as j,bt as Q,bu as $,bv as Y,bw as Z,o,n as r,bx as x,by as e,bz as l,D as c,bA as v,bB as n,bC as q,bD as T,bE as h,bF as u,bG as d,bH as b,bI as I,bJ as _}from"./index-C2na4guL.js";var z="2026-01-26",G="ui/notifications/tool-input-partial",X=n([e("light"),e("dark")]).describe("Color theme preference for the host environment."),g=n([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ee=n([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),oe=h(ee.describe(`Style variables for theming MCP apps.
1
+ import{bf as A,bg as D,bh as N,bi as E,bj as O,bk as B,bl as V,bm as W,bn as C,bo as K,bp as F,bq as J,br as j,bs as Q,bt as $,bu as Y,bv as Z,o,n as r,bw as x,bx as e,by as l,D as c,bz as v,bA as n,bB as q,bC as T,bD as h,bE as u,bF as d,bG as b,bH as I,bI as _}from"./index-Cag7rf5f.js";var z="2026-01-26",G="ui/notifications/tool-input-partial",X=n([e("light"),e("dark")]).describe("Color theme preference for the host environment."),g=n([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ee=n([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),oe=h(ee.describe(`Style variables for theming MCP apps.
2
2
 
3
3
  Individual style keys are optional - hosts may provide any subset of these values.
4
4
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
@@ -1 +1 @@
1
- import{a as L}from"./binder-D_AU3Ukn.js";import{bQ as O,a8 as C,o as t,n as e,bE as g,D as c,bR as l,bS as M,bT as D,bz as i,_ as y,bB as m,bG as T,by as n,bF as _,bU as k,bV as w,bW as G,bX as U,bY as A}from"./index-C2na4guL.js";const B=C.extend({avatar:e().describe("URL or data URI to the assistant's avatar image"),system_prompt:e().describe("System prompt that defines the assistant's behavior"),virtual_mcp_id:e().describe("Virtual MCP ID to use for this assistant"),model:t({id:e().describe("Model ID"),connectionId:e().describe("Connection ID that provides the model")}).describe("Selected model reference for this assistant")}),W=O("assistant",B),F=[...W],I=k(()=>m([w(),e(),i(),T(),g(e(),I),c(I)])),h=g(e(),g(e(),I)).optional().describe("Additional provider-specific options. Outer record keyed by provider name, inner by option key"),E=t({type:n("text"),text:e().describe("The text content"),providerOptions:h}),j=t({type:n("text"),text:e().describe("The text content"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),q=e().describe("File data as URL string"),R=t({type:n("file"),filename:e().optional().describe("Optional filename of the file"),data:q,mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),providerOptions:h}),Y=t({type:n("file"),mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),data:e().describe("Generated file data as base64 encoded string")}),$=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerOptions:h}),J=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),K=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call, used to match with tool result"),toolName:e().describe("Name of the tool being called"),input:e().describe("Arguments of the tool call (JSON-serializable object matching tool input schema)"),providerExecuted:T().optional().describe("Whether the tool call will be executed by the provider"),providerOptions:h}),z=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call"),toolName:e().describe("Name of the tool being called"),input:e().describe("Stringified JSON object with the tool call arguments"),providerExecuted:T().optional().describe("Whether the tool call will be executed by the provider"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),V=m([t({type:n("text"),value:e()}),t({type:n("json"),value:I}),t({type:n("error-text"),value:e()}),t({type:n("error-json"),value:I}),t({type:n("content"),value:c(m([t({type:n("text"),text:e().describe("Text content")}),t({type:n("media"),data:e().describe("Base-64 encoded media data"),mediaType:e().describe("IANA media type")})]))}),t({type:n("execution-denied"),reason:e().optional()}),e().describe("Raw or JSON-serialized output (e.g. from AI SDK mapToolResultOutput)")]),x=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),output:V.describe("Result of the tool call"),result:_().describe("Unknown result of the tool call"),providerOptions:h}),H=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),result:l().describe("Result of the tool call (JSON-serializable)"),isError:T().optional().describe("Whether the result is an error or error message"),providerExecuted:T().optional().describe("Whether the tool result was generated by the provider"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),X=m([t({type:n("source"),sourceType:n("url"),id:e().describe("The ID of the source"),url:e().describe("The URL of the source"),title:e().optional().describe("The title of the source"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),t({type:n("source"),sourceType:n("document"),id:e().describe("The ID of the source"),mediaType:e().describe("IANA media type of the document (e.g., application/pdf)"),title:e().describe("The title of the document"),filename:e().optional().describe("Optional filename of the document"),providerMetadata:l().optional().describe("Additional provider-specific metadata")})]),Q=t({role:n("system"),content:e().describe("System message content"),providerOptions:h}),Z=t({role:n("user"),content:c(m([E,R])).describe("User message content parts (text or file)"),providerOptions:h}),ee=t({role:n("assistant"),content:c(m([E,R,$,K,x])).describe("Assistant message content parts (text, file, reasoning, tool-call, or tool-result)"),providerOptions:h}),te=t({role:n("tool"),content:c(x).describe("Tool message content (tool results)"),providerOptions:h}),oe=m([Q,Z,ee,te]),ae=c(oe).describe("A list of messages forming the prompt"),ne=t({prompt:ae.describe("A language model prompt is a standardized prompt type (array of messages with roles: system, user, assistant, tool)"),maxOutputTokens:i().optional().describe("Maximum number of tokens to generate"),temperature:i().optional().describe("Temperature setting. The range depends on the provider and model"),topP:i().optional().describe("Nucleus sampling parameter"),topK:i().optional().describe("Only sample from the top K options for each subsequent token. Used to remove long tail low probability responses"),presencePenalty:i().optional().describe("Presence penalty setting. It affects the likelihood of the model to repeat information that is already in the prompt"),frequencyPenalty:i().optional().describe("Frequency penalty setting. It affects the likelihood of the model to repeatedly use the same words or phrases"),seed:i().optional().describe("The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results"),stopSequences:c(e()).optional().describe("Stop sequences. If set, the model will stop generating text when one of the stop sequences is generated"),responseFormat:m([t({type:n("text")}),t({type:n("json"),schema:l().optional().describe("JSON schema that the generated output should conform to"),name:e().optional().describe("Name of output that should be generated"),description:e().optional().describe("Description of the output that should be generated")})]).optional().describe("Response format. The output can either be text or JSON. Default is text"),tools:c(l()).optional().describe("The tools that are available for the model"),toolChoice:l().optional().describe("Specifies how the tool should be selected. Defaults to 'auto'"),includeRawChunks:T().optional().describe("Include raw chunks in the stream. Only applicable for streaming calls"),abortSignal:l().optional().describe("Abort signal for cancelling the operation"),providerOptions:l().optional().describe("Additional provider-specific options")}),ie=t({content:c(m([j,Y,J,z,H,X])).describe("Ordered content that the model has generated (text, tool-calls, reasoning, files, sources)"),finishReason:y(["stop","length","content-filter","tool-calls","error","other","unknown"]).describe("Reason why generation stopped"),usage:D({inputTokens:i().optional(),outputTokens:i().optional(),totalTokens:i().optional(),reasoningTokens:i().optional()}).describe("Usage information for the language model call"),providerMetadata:l().optional().describe("Additional provider-specific metadata"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({id:e().optional().describe("ID for the generated response"),timestamp:M().optional().describe("Timestamp for the start of the generated response"),modelId:e().optional().describe("The ID of the response model that was used"),headers:g(e(),e()).optional().describe("Response headers"),body:l().optional().describe("Response HTTP body")}).optional().describe("Optional response information for telemetry and debugging"),warnings:c(l()).describe("Warnings for the call, e.g. unsupported settings")});t({stream:l().describe("ReadableStream of LanguageModelV2StreamPart"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({headers:g(e(),e()).optional().describe("Response headers")}).optional().describe("Optional response data")});const re=t({supportedUrls:g(e(),c(e())).describe("Supported URL patterns by media type for the provider")});t({modelId:e().describe("The ID of the model"),logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:y(["openai","anthropic","google","x-ai","deepseek","openai-compatible","openrouter"]).nullable()});const N=t({modelId:e().describe("The ID of the model"),callOptions:ne}),se=C.extend({logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:y(["openai","anthropic","google","xai","deepseek","openai-compatible","openrouter"]).nullable()}),le=O("llm",se,{readOnly:!0}),ce=[{name:"LLM_METADATA",inputSchema:t({modelId:e().describe("The ID of the model")}),outputSchema:re},{name:"LLM_DO_STREAM",inputSchema:N,streamable:!0},{name:"LLM_DO_GENERATE",inputSchema:N,outputSchema:ie},...le],de=t({scopes:c(e()).describe("List of scopes available"),stateSchema:g(e(),_()).describe("JSON Schema (draft-07) defining the state structure")}),pe=[{name:"MCP_CONFIGURATION",inputSchema:t({}),outputSchema:de}],ue=t({}).strict(),me=t({billing:t({mode:y(["prepaid","postpaid"]),limitPeriod:y(["daily","weekly","monthly"]).nullable()}),limit:t({total:i().nullable(),remaining:i().nullable(),reset:e().nullable()}),usage:t({total:i(),daily:i(),weekly:i(),monthly:i()}),alert:t({enabled:T(),threshold_usd:i(),email:e().nullable()}),connectionId:e()}),he=[{name:"GATEWAY_USAGE",inputSchema:ue,outputSchema:me},{name:"GATEWAY_SET_LIMIT",inputSchema:t({}),outputSchema:t({}),opt:!0},{name:"GATEWAY_SET_ALERT",inputSchema:t({}),outputSchema:t({}),opt:!0}],v={LLMS:ce,WORKFLOW:U,WORKFLOW_EXECUTION:G,ASSISTANTS:F,MCP:pe,AI_GATEWAY_BILLING:he};function be(o){return o.map(a=>({name:a.name,inputSchema:a.inputSchema?(()=>{try{return A(a.inputSchema)}catch(s){return console.error(`Failed to convert input schema for ${a.name}:`,s),t({})}})():t({}),outputSchema:a.outputSchema?(()=>{try{return A(a.outputSchema)}catch(s){return console.error(`Failed to convert output schema for ${a.name}:`,s),t({})}})():t({})}))}function fe(o,a){const s=o.tools;if(!s||s.length===0)return!1;const r=s.map(p=>({name:p.name,inputSchema:p.inputSchema})),d=a.map(p=>({name:p.name,inputSchema:p.inputSchema,opt:p.opt}));return L(d).isImplementedBy(r)}function Ae({connections:o,binding:a}){const s=(()=>{if(a){if(typeof a=="string"){const r=a.toUpperCase(),d=v[r];if(!d){console.warn(`[useBindingConnections] Unknown binding "${a}". Available bindings: ${Object.keys(v).join(", ")}. Returning all connections without filtering.`);return}return d}if(a.length===0){console.warn("[useBindingConnections] Empty binding array provided. Returning all connections without filtering.");return}return be(a)}})();return o?s?o.filter(r=>fe(r,s)):o:[]}function ge(o){return o.toLowerCase().split("_").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}function P(o){if(!o||o.length===0)return[];const a=/^COLLECTION_(.+)_LIST$/,s=[];for(const r of o){const d=r.name.match(a);d?.[1]&&s.push(d[1])}return s}function Te(o){return!o||o.length===0?!1:o.some(a=>a.name==="REGISTRY_ITEM_LIST"||a.name==="COLLECTION_REGISTRY_APP_LIST"?!0:a.name.startsWith("COLLECTION_REGISTRY_APP_"))}function Se(o,a){const r=o.find(u=>u.name===`COLLECTION_${a}_CREATE`)?.inputSchema?.properties;if(r&&typeof r=="object"&&"data"in r)return r.data;const b=o.find(u=>u.name===`COLLECTION_${a}_UPDATE`)?.inputSchema?.properties;if(b&&typeof b=="object"&&"data"in b)return b.data;const S=o.find(u=>u.name===`COLLECTION_${a}_LIST`)?.outputSchema?.properties;if(S&&typeof S=="object"&&"items"in S){const u=S.items;if(u.items)return u.items}}function ye(o,a){const s=a.toUpperCase();return{hasCreateTool:o.some(r=>r.name===`COLLECTION_${s}_CREATE`),hasUpdateTool:o.some(r=>r.name===`COLLECTION_${s}_UPDATE`),hasDeleteTool:o.some(r=>r.name===`COLLECTION_${s}_DELETE`)}}function Ie(o){if(!o||o.length===0)return[];const a=P(o);if(a.length===0)return[];const s=[];for(const r of a)try{const d=O(r.toLowerCase(),C,{readOnly:!0}),b=o.map(f=>({name:f.name,inputSchema:f.inputSchema})),p=d.map(f=>({name:f.name,inputSchema:f.inputSchema}));if(L(p).isImplementedBy(b)){const f=ye(o,r);s.push({name:r,displayName:ge(r),schema:Se(o,r),...f})}}catch{}return s}function Ne(o){return Ie(o?.tools??null)}function ve(o){return o?o.filter(a=>P(a.tools).includes("REGISTRY_APP")||Te(a.tools)):[]}export{he as A,Ae as a,Ne as b,fe as c,ve as u};
1
+ import{a as L}from"./binder-CHjF8z7t.js";import{bP as O,a8 as A,o as t,n as e,bD as g,D as c,bQ as l,bR as D,bS as M,by as i,_ as y,bA as m,bF as T,bx as n,bE as _,bT as k,bU as w,bV as G,bW as U,bX as C}from"./index-Cag7rf5f.js";const B=A.extend({avatar:e().describe("URL or data URI to the assistant's avatar image"),system_prompt:e().describe("System prompt that defines the assistant's behavior"),virtual_mcp_id:e().describe("Virtual MCP ID to use for this assistant"),model:t({id:e().describe("Model ID"),connectionId:e().describe("Connection ID that provides the model")}).describe("Selected model reference for this assistant")}),W=O("assistant",B),F=[...W],I=k(()=>m([w(),e(),i(),T(),g(e(),I),c(I)])),h=g(e(),g(e(),I)).optional().describe("Additional provider-specific options. Outer record keyed by provider name, inner by option key"),E=t({type:n("text"),text:e().describe("The text content"),providerOptions:h}),j=t({type:n("text"),text:e().describe("The text content"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),q=e().describe("File data as URL string"),R=t({type:n("file"),filename:e().optional().describe("Optional filename of the file"),data:q,mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),providerOptions:h}),Y=t({type:n("file"),mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),data:e().describe("Generated file data as base64 encoded string")}),$=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerOptions:h}),J=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),K=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call, used to match with tool result"),toolName:e().describe("Name of the tool being called"),input:e().describe("Arguments of the tool call (JSON-serializable object matching tool input schema)"),providerExecuted:T().optional().describe("Whether the tool call will be executed by the provider"),providerOptions:h}),V=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call"),toolName:e().describe("Name of the tool being called"),input:e().describe("Stringified JSON object with the tool call arguments"),providerExecuted:T().optional().describe("Whether the tool call will be executed by the provider"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),z=m([t({type:n("text"),value:e()}),t({type:n("json"),value:I}),t({type:n("error-text"),value:e()}),t({type:n("error-json"),value:I}),t({type:n("content"),value:c(m([t({type:n("text"),text:e().describe("Text content")}),t({type:n("media"),data:e().describe("Base-64 encoded media data"),mediaType:e().describe("IANA media type")})]))}),t({type:n("execution-denied"),reason:e().optional()}),e().describe("Raw or JSON-serialized output (e.g. from AI SDK mapToolResultOutput)")]),x=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),output:z.describe("Result of the tool call"),result:_().describe("Unknown result of the tool call"),providerOptions:h}),H=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),result:l().describe("Result of the tool call (JSON-serializable)"),isError:T().optional().describe("Whether the result is an error or error message"),providerExecuted:T().optional().describe("Whether the tool result was generated by the provider"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),X=m([t({type:n("source"),sourceType:n("url"),id:e().describe("The ID of the source"),url:e().describe("The URL of the source"),title:e().optional().describe("The title of the source"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),t({type:n("source"),sourceType:n("document"),id:e().describe("The ID of the source"),mediaType:e().describe("IANA media type of the document (e.g., application/pdf)"),title:e().describe("The title of the document"),filename:e().optional().describe("Optional filename of the document"),providerMetadata:l().optional().describe("Additional provider-specific metadata")})]),Q=t({role:n("system"),content:e().describe("System message content"),providerOptions:h}),Z=t({role:n("user"),content:c(m([E,R])).describe("User message content parts (text or file)"),providerOptions:h}),ee=t({role:n("assistant"),content:c(m([E,R,$,K,x])).describe("Assistant message content parts (text, file, reasoning, tool-call, or tool-result)"),providerOptions:h}),te=t({role:n("tool"),content:c(x).describe("Tool message content (tool results)"),providerOptions:h}),oe=m([Q,Z,ee,te]),ae=c(oe).describe("A list of messages forming the prompt"),ne=t({prompt:ae.describe("A language model prompt is a standardized prompt type (array of messages with roles: system, user, assistant, tool)"),maxOutputTokens:i().optional().describe("Maximum number of tokens to generate"),temperature:i().optional().describe("Temperature setting. The range depends on the provider and model"),topP:i().optional().describe("Nucleus sampling parameter"),topK:i().optional().describe("Only sample from the top K options for each subsequent token. Used to remove long tail low probability responses"),presencePenalty:i().optional().describe("Presence penalty setting. It affects the likelihood of the model to repeat information that is already in the prompt"),frequencyPenalty:i().optional().describe("Frequency penalty setting. It affects the likelihood of the model to repeatedly use the same words or phrases"),seed:i().optional().describe("The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results"),stopSequences:c(e()).optional().describe("Stop sequences. If set, the model will stop generating text when one of the stop sequences is generated"),responseFormat:m([t({type:n("text")}),t({type:n("json"),schema:l().optional().describe("JSON schema that the generated output should conform to"),name:e().optional().describe("Name of output that should be generated"),description:e().optional().describe("Description of the output that should be generated")})]).optional().describe("Response format. The output can either be text or JSON. Default is text"),tools:c(l()).optional().describe("The tools that are available for the model"),toolChoice:l().optional().describe("Specifies how the tool should be selected. Defaults to 'auto'"),includeRawChunks:T().optional().describe("Include raw chunks in the stream. Only applicable for streaming calls"),abortSignal:l().optional().describe("Abort signal for cancelling the operation"),providerOptions:l().optional().describe("Additional provider-specific options")}),ie=t({content:c(m([j,Y,J,V,H,X])).describe("Ordered content that the model has generated (text, tool-calls, reasoning, files, sources)"),finishReason:y(["stop","length","content-filter","tool-calls","error","other","unknown"]).describe("Reason why generation stopped"),usage:M({inputTokens:i().optional(),outputTokens:i().optional(),totalTokens:i().optional(),reasoningTokens:i().optional()}).describe("Usage information for the language model call"),providerMetadata:l().optional().describe("Additional provider-specific metadata"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({id:e().optional().describe("ID for the generated response"),timestamp:D().optional().describe("Timestamp for the start of the generated response"),modelId:e().optional().describe("The ID of the response model that was used"),headers:g(e(),e()).optional().describe("Response headers"),body:l().optional().describe("Response HTTP body")}).optional().describe("Optional response information for telemetry and debugging"),warnings:c(l()).describe("Warnings for the call, e.g. unsupported settings")});t({stream:l().describe("ReadableStream of LanguageModelV2StreamPart"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({headers:g(e(),e()).optional().describe("Response headers")}).optional().describe("Optional response data")});const re=t({supportedUrls:g(e(),c(e())).describe("Supported URL patterns by media type for the provider")});t({modelId:e().describe("The ID of the model"),logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:y(["openai","anthropic","google","x-ai","deepseek","openai-compatible","openrouter"]).nullable()});const N=t({modelId:e().describe("The ID of the model"),callOptions:ne}),se=A.extend({logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:y(["openai","anthropic","google","xai","deepseek","openai-compatible","openrouter"]).nullable()}),le=O("llm",se,{readOnly:!0}),ce=[{name:"LLM_METADATA",inputSchema:t({modelId:e().describe("The ID of the model")}),outputSchema:re},{name:"LLM_DO_STREAM",inputSchema:N,streamable:!0},{name:"LLM_DO_GENERATE",inputSchema:N,outputSchema:ie},...le],de=t({scopes:c(e()).describe("List of scopes available"),stateSchema:g(e(),_()).describe("JSON Schema (draft-07) defining the state structure")}),pe=[{name:"MCP_CONFIGURATION",inputSchema:t({}),outputSchema:de}],ue=t({}).strict(),me=t({billing:t({mode:y(["prepaid","postpaid"]),limitPeriod:y(["daily","weekly","monthly"]).nullable()}),limit:t({total:i().nullable(),remaining:i().nullable(),reset:e().nullable()}),usage:t({total:i(),daily:i(),weekly:i(),monthly:i()}),alert:t({enabled:T(),threshold_usd:i(),email:e().nullable()}),connectionId:e()}),he=[{name:"GATEWAY_USAGE",inputSchema:ue,outputSchema:me},{name:"GATEWAY_SET_LIMIT",inputSchema:t({}),outputSchema:t({}),opt:!0},{name:"GATEWAY_SET_ALERT",inputSchema:t({}),outputSchema:t({}),opt:!0}],v={LLMS:ce,WORKFLOW:U,WORKFLOW_EXECUTION:G,ASSISTANTS:F,MCP:pe,AI_GATEWAY_BILLING:he};function be(o){return o.map(a=>({name:a.name,inputSchema:a.inputSchema?(()=>{try{return C(a.inputSchema)}catch(s){return console.error(`Failed to convert input schema for ${a.name}:`,s),t({})}})():t({}),outputSchema:a.outputSchema?(()=>{try{return C(a.outputSchema)}catch(s){return console.error(`Failed to convert output schema for ${a.name}:`,s),t({})}})():t({})}))}function fe(o,a){const s=o.tools;if(!s||s.length===0)return!1;const r=s.map(p=>({name:p.name,inputSchema:p.inputSchema})),d=a.map(p=>({name:p.name,inputSchema:p.inputSchema,opt:p.opt}));return L(d).isImplementedBy(r)}function Ce({connections:o,binding:a}){const s=(()=>{if(a){if(typeof a=="string"){const r=a.toUpperCase(),d=v[r];if(!d){console.warn(`[useBindingConnections] Unknown binding "${a}". Available bindings: ${Object.keys(v).join(", ")}. Returning all connections without filtering.`);return}return d}if(a.length===0){console.warn("[useBindingConnections] Empty binding array provided. Returning all connections without filtering.");return}return be(a)}})();return o?s?o.filter(r=>fe(r,s)):o:[]}function ge(o){return o.toLowerCase().split("_").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}function P(o){if(!o||o.length===0)return[];const a=/^COLLECTION_(.+)_LIST$/,s=[];for(const r of o){const d=r.name.match(a);d?.[1]&&s.push(d[1])}return s}function Te(o){return!o||o.length===0?!1:o.some(a=>a.name==="REGISTRY_ITEM_LIST"||a.name==="COLLECTION_REGISTRY_APP_LIST"?!0:a.name.startsWith("COLLECTION_REGISTRY_APP_"))}function Se(o,a){const r=o.find(u=>u.name===`COLLECTION_${a}_CREATE`)?.inputSchema?.properties;if(r&&typeof r=="object"&&"data"in r)return r.data;const b=o.find(u=>u.name===`COLLECTION_${a}_UPDATE`)?.inputSchema?.properties;if(b&&typeof b=="object"&&"data"in b)return b.data;const S=o.find(u=>u.name===`COLLECTION_${a}_LIST`)?.outputSchema?.properties;if(S&&typeof S=="object"&&"items"in S){const u=S.items;if(u.items)return u.items}}function ye(o,a){const s=a.toUpperCase();return{hasCreateTool:o.some(r=>r.name===`COLLECTION_${s}_CREATE`),hasUpdateTool:o.some(r=>r.name===`COLLECTION_${s}_UPDATE`),hasDeleteTool:o.some(r=>r.name===`COLLECTION_${s}_DELETE`)}}function Ie(o){if(!o||o.length===0)return[];const a=P(o);if(a.length===0)return[];const s=[];for(const r of a)try{const d=O(r.toLowerCase(),A,{readOnly:!0}),b=o.map(f=>({name:f.name,inputSchema:f.inputSchema})),p=d.map(f=>({name:f.name,inputSchema:f.inputSchema}));if(L(p).isImplementedBy(b)){const f=ye(o,r);s.push({name:r,displayName:ge(r),schema:Se(o,r),...f})}}catch{}return s}function Ne(o){return Ie(o?.tools??null)}function ve(o){return o?o.filter(a=>P(a.tools).includes("REGISTRY_APP")||Te(a.tools)):[]}export{he as A,Ce as a,Ne as b,fe as c,ve as u};
@@ -1 +1 @@
1
- import{v as I,c as K,w as D,x as w}from"./index-C2na4guL.js";import{u as x}from"./useMutation-Cu1CYNQ4.js";import{K as A}from"./constants-DaSprOUn.js";function q(o,n,s){const t=[];if(o?.trim()){const e=o.trim(),r=s.map(a=>({field:[String(a)],operator:"contains",value:e}));r.length===1&&r[0]?t.push(r[0]):r.length>1&&t.push({operator:"or",conditions:r})}if(n&&n.length>0)for(const e of n)t.push({field:[e.column],operator:"eq",value:e.value});if(t.length!==0)return t.length===1?t[0]:{operator:"and",conditions:t}}function U(o,n,s){const t=o??s,e=n??"asc";return[{field:[String(t)],direction:e}]}function O(o){if(!o||typeof o!="object")throw new Error("Invalid result");if("isError"in o&&o.isError)throw new Error("content"in o&&Array.isArray(o.content)&&o.content[0]?.type==="text"?o.content[0].text:"Unknown error");if("structuredContent"in o)return o.structuredContent;throw new Error("No structured content found")}function Y(o,n,s,t){const e=K.c(14);let r,a,u;if(e[0]!==t||e[1]!==n||e[2]!==s||e[3]!==o){const i=n.toUpperCase();r=`COLLECTION_${i}_GET`,u=I,a=A.collectionItem(t,o,"",i,s??""),e[0]=t,e[1]=n,e[2]=s,e[3]=o,e[4]=r,e[5]=a,e[6]=u}else r=e[4],a=e[5],u=e[6];let c;e[7]!==t||e[8]!==r||e[9]!==s?(c=async()=>{if(!s)return{item:null};const i=await t.callTool({name:r,arguments:{id:s}});return O(i)},e[7]=t,e[8]=r,e[9]=s,e[10]=c):c=e[10];let f;e[11]!==a||e[12]!==c?(f={queryKey:a,queryFn:c,staleTime:6e4},e[11]=a,e[12]=c,e[13]=f):f=e[13];const{data:p}=u(f);return p?.item??null}const Q={structuredContent:{items:[]},isError:!1};function j(o,n,s,t={}){const{searchTerm:e,filters:r,sortKey:a,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:f="updated_at",pageSize:p=100}=t,i=n.toUpperCase(),m=`COLLECTION_${i}_LIST`,d=q(e,r,c),y=U(a,u,f),E={...d&&{where:d},...y&&{orderBy:y},limit:p,offset:0},g=JSON.stringify(E),C=A.collectionList(s,o,"",i,g),{data:S}=I({queryKey:C,queryFn:async()=>s?await s.callTool({name:m,arguments:E}):Q,staleTime:3e4,retry:!1,select:h=>O(h??{})?.items??[]});return S}function G(o,n,s,t={}){const{searchTerm:e,filters:r,sortKey:a,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:f="updated_at",pageSize:p=100}=t,i=n.toUpperCase(),m=q(e,r,c),d=U(a,u,f),y={...m&&{where:m},...d&&{orderBy:d},limit:p,offset:0},E=JSON.stringify(y);return A.collectionList(o,s,"",i,E)}function W(o,n,s){const t=K.c(34),e=D();let r;t[0]!==n?(r=n.toUpperCase(),t[0]=n,t[1]=r):r=t[1];const a=r,u=`COLLECTION_${a}_CREATE`,c=`COLLECTION_${a}_UPDATE`,f=`COLLECTION_${a}_DELETE`;let p;t[2]!==e||t[3]!==o||t[4]!==a?(p=()=>{e.invalidateQueries({predicate:_=>{const l=_.queryKey;return l[1]===o&&l[3]==="collection"&&l[4]===a}})},t[2]=e,t[3]=o,t[4]=a,t[5]=p):p=t[5];const i=p;let m;t[6]!==s||t[7]!==u?(m=async _=>{const l=await s.callTool({name:u,arguments:{data:_}});if(l.isError)throw new Error(Array.isArray(l.content)?l.content[0]?.text:String(l.content));return O(l).item},t[6]=s,t[7]=u,t[8]=m):m=t[8];let d;t[9]!==i?(d=()=>{i(),w.success("Item created successfully")},t[9]=i,t[10]=d):d=t[10];let y;t[11]!==m||t[12]!==d?(y={mutationFn:m,onSuccess:d,onError:P},t[11]=m,t[12]=d,t[13]=y):y=t[13];const E=x(y);let g;t[14]!==s||t[15]!==c?(g=async _=>{const{id:l,data:v}=_,b=await s.callTool({name:c,arguments:{id:l,data:v}});return O(b).item},t[14]=s,t[15]=c,t[16]=g):g=t[16];let C;t[17]!==i?(C=()=>{i(),w.success("Item updated successfully")},t[17]=i,t[18]=C):C=t[18];let S;t[19]!==g||t[20]!==C?(S={mutationFn:g,onSuccess:C,onError:B},t[19]=g,t[20]=C,t[21]=S):S=t[21];const h=x(S);let T;t[22]!==s||t[23]!==f?(T=async _=>{const l=await s.callTool({name:f,arguments:{id:_}});return O(l).item.id},t[22]=s,t[23]=f,t[24]=T):T=t[24];let L;t[25]!==i?(L=()=>{i(),w.success("Item deleted successfully")},t[25]=i,t[26]=L):L=t[26];let N;t[27]!==T||t[28]!==L?(N={mutationFn:T,onSuccess:L,onError:k},t[27]=T,t[28]=L,t[29]=N):N=t[29];const $=x(N);let F;return t[30]!==E||t[31]!==$||t[32]!==h?(F={create:E,update:h,delete:$},t[30]=E,t[31]=$,t[32]=h,t[33]=F):F=t[33],F}function k(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to delete item: ${n}`)}function B(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to update item: ${n}`)}function P(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to create item: ${n}`)}export{Q as E,U as a,G as b,q as c,Y as d,j as e,W as u};
1
+ import{v as I,c as K,w as D,x as w}from"./index-Cag7rf5f.js";import{u as x}from"./useMutation-CCDwZCqX.js";import{K as A}from"./constants-5XohhD_f.js";function q(o,n,s){const t=[];if(o?.trim()){const e=o.trim(),r=s.map(a=>({field:[String(a)],operator:"contains",value:e}));r.length===1&&r[0]?t.push(r[0]):r.length>1&&t.push({operator:"or",conditions:r})}if(n&&n.length>0)for(const e of n)t.push({field:[e.column],operator:"eq",value:e.value});if(t.length!==0)return t.length===1?t[0]:{operator:"and",conditions:t}}function U(o,n,s){const t=o??s,e=n??"asc";return[{field:[String(t)],direction:e}]}function O(o){if(!o||typeof o!="object")throw new Error("Invalid result");if("isError"in o&&o.isError)throw new Error("content"in o&&Array.isArray(o.content)&&o.content[0]?.type==="text"?o.content[0].text:"Unknown error");if("structuredContent"in o)return o.structuredContent;throw new Error("No structured content found")}function Y(o,n,s,t){const e=K.c(14);let r,a,u;if(e[0]!==t||e[1]!==n||e[2]!==s||e[3]!==o){const i=n.toUpperCase();r=`COLLECTION_${i}_GET`,u=I,a=A.collectionItem(t,o,"",i,s??""),e[0]=t,e[1]=n,e[2]=s,e[3]=o,e[4]=r,e[5]=a,e[6]=u}else r=e[4],a=e[5],u=e[6];let c;e[7]!==t||e[8]!==r||e[9]!==s?(c=async()=>{if(!s)return{item:null};const i=await t.callTool({name:r,arguments:{id:s}});return O(i)},e[7]=t,e[8]=r,e[9]=s,e[10]=c):c=e[10];let f;e[11]!==a||e[12]!==c?(f={queryKey:a,queryFn:c,staleTime:6e4},e[11]=a,e[12]=c,e[13]=f):f=e[13];const{data:p}=u(f);return p?.item??null}const Q={structuredContent:{items:[]},isError:!1};function j(o,n,s,t={}){const{searchTerm:e,filters:r,sortKey:a,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:f="updated_at",pageSize:p=100}=t,i=n.toUpperCase(),m=`COLLECTION_${i}_LIST`,d=q(e,r,c),y=U(a,u,f),E={...d&&{where:d},...y&&{orderBy:y},limit:p,offset:0},g=JSON.stringify(E),C=A.collectionList(s,o,"",i,g),{data:S}=I({queryKey:C,queryFn:async()=>s?await s.callTool({name:m,arguments:E}):Q,staleTime:3e4,retry:!1,select:h=>O(h??{})?.items??[]});return S}function G(o,n,s,t={}){const{searchTerm:e,filters:r,sortKey:a,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:f="updated_at",pageSize:p=100}=t,i=n.toUpperCase(),m=q(e,r,c),d=U(a,u,f),y={...m&&{where:m},...d&&{orderBy:d},limit:p,offset:0},E=JSON.stringify(y);return A.collectionList(o,s,"",i,E)}function W(o,n,s){const t=K.c(34),e=D();let r;t[0]!==n?(r=n.toUpperCase(),t[0]=n,t[1]=r):r=t[1];const a=r,u=`COLLECTION_${a}_CREATE`,c=`COLLECTION_${a}_UPDATE`,f=`COLLECTION_${a}_DELETE`;let p;t[2]!==e||t[3]!==o||t[4]!==a?(p=()=>{e.invalidateQueries({predicate:_=>{const l=_.queryKey;return l[1]===o&&l[3]==="collection"&&l[4]===a}})},t[2]=e,t[3]=o,t[4]=a,t[5]=p):p=t[5];const i=p;let m;t[6]!==s||t[7]!==u?(m=async _=>{const l=await s.callTool({name:u,arguments:{data:_}});if(l.isError)throw new Error(Array.isArray(l.content)?l.content[0]?.text:String(l.content));return O(l).item},t[6]=s,t[7]=u,t[8]=m):m=t[8];let d;t[9]!==i?(d=()=>{i(),w.success("Item created successfully")},t[9]=i,t[10]=d):d=t[10];let y;t[11]!==m||t[12]!==d?(y={mutationFn:m,onSuccess:d,onError:P},t[11]=m,t[12]=d,t[13]=y):y=t[13];const E=x(y);let g;t[14]!==s||t[15]!==c?(g=async _=>{const{id:l,data:v}=_,b=await s.callTool({name:c,arguments:{id:l,data:v}});return O(b).item},t[14]=s,t[15]=c,t[16]=g):g=t[16];let C;t[17]!==i?(C=()=>{i(),w.success("Item updated successfully")},t[17]=i,t[18]=C):C=t[18];let S;t[19]!==g||t[20]!==C?(S={mutationFn:g,onSuccess:C,onError:B},t[19]=g,t[20]=C,t[21]=S):S=t[21];const h=x(S);let T;t[22]!==s||t[23]!==f?(T=async _=>{const l=await s.callTool({name:f,arguments:{id:_}});return O(l).item.id},t[22]=s,t[23]=f,t[24]=T):T=t[24];let L;t[25]!==i?(L=()=>{i(),w.success("Item deleted successfully")},t[25]=i,t[26]=L):L=t[26];let N;t[27]!==T||t[28]!==L?(N={mutationFn:T,onSuccess:L,onError:k},t[27]=T,t[28]=L,t[29]=N):N=t[29];const $=x(N);let F;return t[30]!==E||t[31]!==$||t[32]!==h?(F={create:E,update:h,delete:$},t[30]=E,t[31]=$,t[32]=h,t[33]=F):F=t[33],F}function k(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to delete item: ${n}`)}function B(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to update item: ${n}`)}function P(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to create item: ${n}`)}export{Q as E,U as a,G as b,q as c,Y as d,j as e,W as u};
@@ -1 +1 @@
1
- import{c,u as r}from"./index-C2na4guL.js";import{e as C,u as a,d as I}from"./use-collections--9SGeKjH.js";import{a as d,u as l}from"./constants-DaSprOUn.js";function p(t){const o=c.c(4);let n;o[0]!==t?(n=t===void 0?{}:t,o[0]=t,o[1]=n):n=o[1];const e=n,{org:i}=r();let s;o[2]!==i.id?(s={connectionId:d,orgId:i.id},o[2]=i.id,o[3]=s):s=o[3];const u=l(s);return C(i.id,"CONNECTIONS",u,e)}function g(t){const o=c.c(2),{org:n}=r();let e;o[0]!==n.id?(e={connectionId:d,orgId:n.id},o[0]=n.id,o[1]=e):e=o[1];const i=l(e);return I(n.id,"CONNECTIONS",t,i)}function O(){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:d,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=l(n);return a(o.id,"CONNECTIONS",e)}export{O as a,p as b,g as u};
1
+ import{c,u as r}from"./index-Cag7rf5f.js";import{e as C,u as a,d as I}from"./use-collections-BG9rywMN.js";import{a as d,u as l}from"./constants-5XohhD_f.js";function p(t){const o=c.c(4);let n;o[0]!==t?(n=t===void 0?{}:t,o[0]=t,o[1]=n):n=o[1];const e=n,{org:i}=r();let s;o[2]!==i.id?(s={connectionId:d,orgId:i.id},o[2]=i.id,o[3]=s):s=o[3];const u=l(s);return C(i.id,"CONNECTIONS",u,e)}function g(t){const o=c.c(2),{org:n}=r();let e;o[0]!==n.id?(e={connectionId:d,orgId:n.id},o[0]=n.id,o[1]=e):e=o[1];const i=l(e);return I(n.id,"CONNECTIONS",t,i)}function O(){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:d,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=l(n);return a(o.id,"CONNECTIONS",e)}export{O as a,p as b,g as u};
@@ -1 +1 @@
1
- import{r,c}from"./index-C2na4guL.js";const l=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M5 12h14m0 0-7-7m7 7-7 7"}));l.displayName="ArrowRight";const d=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M10.5 9.002a2.248 2.248 0 0 1 4.369.75C14.869 11.25 12.62 12 12.62 12m.028 3h.01m-.16 5a8.5 8.5 0 1 0-8.056-5.783c.108.32.162.481.172.604a.899.899 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021.07.002.12.009.187.024.069.016.155.05.329.116A8.478 8.478 0 0 0 12.5 20Z"}));d.displayName="MessageQuestionCircle";function h(){const e=c.c(3),[t,o]=r.useState(!1);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=async s=>{await navigator.clipboard.writeText(s),o(!0),setTimeout(()=>o(!1),2e3)},e[0]=i):i=e[0];const n=i;let a;return e[1]!==t?(a={handleCopy:n,copied:t},e[1]=t,e[2]=a):a=e[2],a}export{l as i,d as t,h as u};
1
+ import{r,c}from"./index-Cag7rf5f.js";const l=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M5 12h14m0 0-7-7m7 7-7 7"}));l.displayName="ArrowRight";const d=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M10.5 9.002a2.248 2.248 0 0 1 4.369.75C14.869 11.25 12.62 12 12.62 12m.028 3h.01m-.16 5a8.5 8.5 0 1 0-8.056-5.783c.108.32.162.481.172.604a.899.899 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021.07.002.12.009.187.024.069.016.155.05.329.116A8.478 8.478 0 0 0 12.5 20Z"}));d.displayName="MessageQuestionCircle";function h(){const e=c.c(3),[t,o]=r.useState(!1);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=async s=>{await navigator.clipboard.writeText(s),o(!0),setTimeout(()=>o(!1),2e3)},e[0]=i):i=e[0];const n=i;let a;return e[1]!==t?(a={handleCopy:n,copied:t},e[1]=t,e[2]=a):a=e[2],a}export{l as i,d as t,h as u};
@@ -1 +1 @@
1
- import{c as p,u as C,e as f,O as m}from"./index-C2na4guL.js";import{a as v}from"./use-virtual-mcp-BpJ2qfK9.js";function M(s){const e=p.c(10);let a;e[0]!==s?(a=s===void 0?{}:s,e[0]=s,e[1]=a):a=e[1];const d=a,{navigateOnCreate:l}=d,o=l===void 0?!1:l,{org:r}=C(),c=f(),t=v();let n;e[2]!==t.create||e[3]!==c||e[4]!==o||e[5]!==r?(n=async()=>{const g=await t.create.mutateAsync({title:"New Agent",description:"Agents let you securely expose integrated tools to the outside world.",status:"active",connections:[]});return o&&c({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:m,agentId:g.id}}),{id:g.id,virtualMcp:g}},e[2]=t.create,e[3]=c,e[4]=o,e[5]=r,e[6]=n):n=e[6];const u=n;let i;return e[7]!==t.create.isPending||e[8]!==u?(i={createVirtualMCP:u,isCreating:t.create.isPending},e[7]=t.create.isPending,e[8]=u,e[9]=i):i=e[9],i}export{M as u};
1
+ import{c as p,u as C,e as f,O as m}from"./index-Cag7rf5f.js";import{a as v}from"./use-virtual-mcp-gWnd6DnQ.js";function M(s){const e=p.c(10);let a;e[0]!==s?(a=s===void 0?{}:s,e[0]=s,e[1]=a):a=e[1];const d=a,{navigateOnCreate:l}=d,o=l===void 0?!1:l,{org:r}=C(),c=f(),t=v();let n;e[2]!==t.create||e[3]!==c||e[4]!==o||e[5]!==r?(n=async()=>{const g=await t.create.mutateAsync({title:"New Agent",description:"Agents let you securely expose integrated tools to the outside world.",status:"active",connections:[]});return o&&c({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:m,agentId:g.id}}),{id:g.id,virtualMcp:g}},e[2]=t.create,e[3]=c,e[4]=o,e[5]=r,e[6]=n):n=e[6];const u=n;let i;return e[7]!==t.create.isPending||e[8]!==u?(i={createVirtualMCP:u,isCreating:t.create.isPending},e[7]=t.create.isPending,e[8]=u,e[9]=i):i=e[9],i}export{M as u};
@@ -1 +1 @@
1
- import{u as y,f as C,x as e}from"./index-C2na4guL.js";import{u as g}from"./use-binding-B7oG4xk1.js";import{a as S,b as v}from"./use-connection-Dr0AHpj7.js";import{e as x}from"./extract-connection-data-BKLs62Bt.js";import{f as B,c as I,e as P}from"./registry-utils-CpY2YQZE.js";function _(t){return t.startsWith("@")?t:`@${t}`}function F(){const{org:t}=y(),{data:s}=C.useSession(),i=S(),l=v(),u=g(l);return{installByBinding:async r=>{if(!t||!s?.user?.id){e.error("Not authenticated");return}const d=_(r),a=(await Promise.all(u.map(async o=>{const c=B(o.tools);if(!c)return null;try{const h=await I(o.id,t.id,c,{where:{appName:d}});return P(h??[])[0]??null}catch{return null}}))).find(o=>o!==null);if(!a){e.error(`MCP Server not found in registry: ${r}`);return}const n=x(a,t.id,s.user.id),m=n.connection_type==="STDIO",f=!!n.connection_url,p=m&&n.connection_headers&&typeof n.connection_headers=="object"&&"command"in n.connection_headers;if(!f&&!p){e.error("This MCP Server cannot be connected: no connection method available");return}return await i.create.mutateAsync(n),{id:n.id,connection:n}},isInstalling:i.create.isPending}}export{F as u};
1
+ import{u as y,f as C,x as e}from"./index-Cag7rf5f.js";import{u as g}from"./use-binding-Dc1kKEIB.js";import{a as S,b as v}from"./use-connection-Dx2EaFOc.js";import{e as x}from"./extract-connection-data-Dp0FIsZq.js";import{f as B,c as I,e as P}from"./registry-utils-CXytYPKT.js";function _(t){return t.startsWith("@")?t:`@${t}`}function F(){const{org:t}=y(),{data:s}=C.useSession(),i=S(),l=v(),u=g(l);return{installByBinding:async r=>{if(!t||!s?.user?.id){e.error("Not authenticated");return}const d=_(r),a=(await Promise.all(u.map(async o=>{const c=B(o.tools);if(!c)return null;try{const h=await I(o.id,t.id,c,{where:{appName:d}});return P(h??[])[0]??null}catch{return null}}))).find(o=>o!==null);if(!a){e.error(`MCP Server not found in registry: ${r}`);return}const n=x(a,t.id,s.user.id),m=n.connection_type==="STDIO",f=!!n.connection_url,p=m&&n.connection_headers&&typeof n.connection_headers=="object"&&"command"in n.connection_headers;if(!f&&!p){e.error("This MCP Server cannot be connected: no connection method available");return}return await i.create.mutateAsync(n),{id:n.id,connection:n}},isInstalling:i.create.isPending}}export{F as u};
@@ -1 +1 @@
1
- import{r as u,c as w}from"./index-C2na4guL.js";import{u as E}from"./use-view-mode-BZc5mOXP.js";function J(c){const e=`deco-filters-${c}`,[s,i]=u.useState(()=>{try{const t=globalThis.localStorage?.getItem(e);if(t)return JSON.parse(t)}catch(t){console.error("Failed to parse stored filters:",t)}return[]});return[s,t=>{i(t);try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch(l){console.error("Failed to save filters:",l)}}]}function N(c){const e=w.c(7),[s,i]=u.useState(c),[r,t]=u.useState(c?"desc":null);let l;e[0]!==r||e[1]!==s?(l=S=>{s!==S?(i(S),t("asc")):r==="asc"?t("desc"):r==="desc"&&(i(void 0),t(null))},e[0]=r,e[1]=s,e[2]=l):l=e[2];const d=l;let o;return e[3]!==d||e[4]!==r||e[5]!==s?(o={sortKey:s,sortDirection:r,handleSort:d},e[3]=d,e[4]=r,e[5]=s,e[6]=o):o=e[6],o}function W(c){const e=w.c(20),{namespace:s,resource:i,defaultSortKey:r,defaultViewMode:t}=c,l=r===void 0?"title":r,d=t===void 0?"table":t,[o,S]=u.useState(""),b=u.useDeferredValue(o),D=`${s}-${i}`,[p,F]=J(D),a=`mesh-${i}-filter-visible-${s}`;let g;e[0]!==a?(g=()=>globalThis.localStorage?.getItem(a)==="true",e[0]=a,e[1]=g):g=e[1];const[n,x]=u.useState(g);let h;e[2]!==a?(h=T=>{x(T),globalThis.localStorage?.setItem(a,String(T))},e[2]=a,e[3]=h):h=e[3];const f=h;let m;e[4]!==n||e[5]!==f?(m=()=>{f(!n)},e[4]=n,e[5]=f,e[6]=m):m=e[6];const V=m,[$,K]=E(`mesh-${i}-${s}`,d),{sortKey:I,sortDirection:v,handleSort:B}=N(l),M=I;let y;return e[7]!==n||e[8]!==p||e[9]!==B||e[10]!==o||e[11]!==b||e[12]!==f||e[13]!==F||e[14]!==K||e[15]!==v||e[16]!==M||e[17]!==V||e[18]!==$?(y={search:o,searchTerm:b,setSearch:S,filters:p,setFilters:F,filterBarVisible:n,setFilterBarVisible:f,toggleFilterBar:V,viewMode:$,setViewMode:K,sortKey:M,sortDirection:v,handleSort:B},e[7]=n,e[8]=p,e[9]=B,e[10]=o,e[11]=b,e[12]=f,e[13]=F,e[14]=K,e[15]=v,e[16]=M,e[17]=V,e[18]=$,e[19]=y):y=e[19],y}export{W as u};
1
+ import{r as u,c as w}from"./index-Cag7rf5f.js";import{u as E}from"./use-view-mode-DoyNiHJV.js";function J(c){const e=`deco-filters-${c}`,[s,i]=u.useState(()=>{try{const t=globalThis.localStorage?.getItem(e);if(t)return JSON.parse(t)}catch(t){console.error("Failed to parse stored filters:",t)}return[]});return[s,t=>{i(t);try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch(l){console.error("Failed to save filters:",l)}}]}function N(c){const e=w.c(7),[s,i]=u.useState(c),[r,t]=u.useState(c?"desc":null);let l;e[0]!==r||e[1]!==s?(l=S=>{s!==S?(i(S),t("asc")):r==="asc"?t("desc"):r==="desc"&&(i(void 0),t(null))},e[0]=r,e[1]=s,e[2]=l):l=e[2];const d=l;let o;return e[3]!==d||e[4]!==r||e[5]!==s?(o={sortKey:s,sortDirection:r,handleSort:d},e[3]=d,e[4]=r,e[5]=s,e[6]=o):o=e[6],o}function W(c){const e=w.c(20),{namespace:s,resource:i,defaultSortKey:r,defaultViewMode:t}=c,l=r===void 0?"title":r,d=t===void 0?"table":t,[o,S]=u.useState(""),b=u.useDeferredValue(o),D=`${s}-${i}`,[p,F]=J(D),a=`mesh-${i}-filter-visible-${s}`;let g;e[0]!==a?(g=()=>globalThis.localStorage?.getItem(a)==="true",e[0]=a,e[1]=g):g=e[1];const[n,x]=u.useState(g);let h;e[2]!==a?(h=T=>{x(T),globalThis.localStorage?.setItem(a,String(T))},e[2]=a,e[3]=h):h=e[3];const f=h;let m;e[4]!==n||e[5]!==f?(m=()=>{f(!n)},e[4]=n,e[5]=f,e[6]=m):m=e[6];const V=m,[$,K]=E(`mesh-${i}-${s}`,d),{sortKey:I,sortDirection:v,handleSort:B}=N(l),M=I;let y;return e[7]!==n||e[8]!==p||e[9]!==B||e[10]!==o||e[11]!==b||e[12]!==f||e[13]!==F||e[14]!==K||e[15]!==v||e[16]!==M||e[17]!==V||e[18]!==$?(y={search:o,searchTerm:b,setSearch:S,filters:p,setFilters:F,filterBarVisible:n,setFilterBarVisible:f,toggleFilterBar:V,viewMode:$,setViewMode:K,sortKey:M,sortDirection:v,handleSort:B},e[7]=n,e[8]=p,e[9]=B,e[10]=o,e[11]=b,e[12]=f,e[13]=F,e[14]=K,e[15]=v,e[16]=M,e[17]=V,e[18]=$,e[19]=y):y=e[19],y}export{W as u};
@@ -1 +1 @@
1
- import{c,u as m}from"./index-C2na4guL.js";import{e as u}from"./use-collections--9SGeKjH.js";import{b as a}from"./use-connection-Dr0AHpj7.js";import{h as p}from"./constants-DaSprOUn.js";import{a as C}from"./use-binding-B7oG4xk1.js";function b(n,s){const o=c.c(5);let e;o[0]!==s?(e=s===void 0?{}:s,o[0]=s,o[1]=e):e=o[1];const r=e,{org:i}=m();let t;o[2]!==n||o[3]!==i.id?(t={connectionId:n,orgId:i.id},o[2]=n,o[3]=i.id,o[4]=t):t=o[4];const l=p(t);return u(n??"no-connection","LLM",l,r)}function y(){const n=c.c(2),s=a();let o;return n[0]!==s?(o={connections:s,binding:"LLMS"},n[0]=s,n[1]=o):o=n[1],C(o)}export{b as a,y as u};
1
+ import{c,u as m}from"./index-Cag7rf5f.js";import{e as u}from"./use-collections-BG9rywMN.js";import{b as a}from"./use-connection-Dx2EaFOc.js";import{h as p}from"./constants-5XohhD_f.js";import{a as C}from"./use-binding-Dc1kKEIB.js";function b(n,s){const o=c.c(5);let e;o[0]!==s?(e=s===void 0?{}:s,o[0]=s,o[1]=e):e=o[1];const r=e,{org:i}=m();let t;o[2]!==n||o[3]!==i.id?(t={connectionId:n,orgId:i.id},o[2]=n,o[3]=i.id,o[4]=t):t=o[4];const l=p(t);return u(n??"no-connection","LLM",l,r)}function y(){const n=c.c(2),s=a();let o;return n[0]!==s?(o={connections:s,binding:"LLMS"},n[0]=s,n[1]=o):o=n[1],C(o)}export{b as a,y as u};
@@ -1 +1 @@
1
- import{c as l,v as c,ak as m,al as f}from"./index-C2na4guL.js";import{u as y}from"./useQuery-DnHeIEbf.js";import{K as n}from"./constants-DaSprOUn.js";async function u(s){if(!s.getServerCapabilities()?.prompts)return{prompts:[]};try{return await s.listPrompts()}catch(t){if(t instanceof m&&t.code===f.MethodNotFound)return{prompts:[]};throw t}}async function q(s,e,t){if(!s.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await s.getPrompt({name:e,arguments:t??{}})}function d(s){const e=l.c(12);let t,r;e[0]!==s?({client:t,...r}=s,e[0]=s,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=()=>u(t),e[5]=t,e[6]=o):o=e[6];const p=r.staleTime??3e4;let a;return e[7]!==r||e[8]!==i||e[9]!==o||e[10]!==p?(a={...r,queryKey:i,queryFn:o,staleTime:p,retry:!1},e[7]=r,e[8]=i,e[9]=o,e[10]=p,e[11]=a):a=e[11],c(a)}function w(s){const e=l.c(12);let t,r;e[0]!==s?({client:t,...r}=s,e[0]=s,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=()=>u(t),e[5]=t,e[6]=o):o=e[6];const p=r.staleTime??3e4;let a;return e[7]!==r||e[8]!==i||e[9]!==o||e[10]!==p?(a={...r,queryKey:i,queryFn:o,staleTime:p,retry:!1},e[7]=r,e[8]=i,e[9]=o,e[10]=p,e[11]=a):a=e[11],y(a)}export{w as a,q as g,u as l,d as u};
1
+ import{c as l,v as c,ak as m,al as f}from"./index-Cag7rf5f.js";import{u as y}from"./useQuery-Clb9lPv3.js";import{K as n}from"./constants-5XohhD_f.js";async function u(s){if(!s.getServerCapabilities()?.prompts)return{prompts:[]};try{return await s.listPrompts()}catch(t){if(t instanceof m&&t.code===f.MethodNotFound)return{prompts:[]};throw t}}async function q(s,e,t){if(!s.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await s.getPrompt({name:e,arguments:t??{}})}function d(s){const e=l.c(12);let t,r;e[0]!==s?({client:t,...r}=s,e[0]=s,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=()=>u(t),e[5]=t,e[6]=o):o=e[6];const p=r.staleTime??3e4;let a;return e[7]!==r||e[8]!==i||e[9]!==o||e[10]!==p?(a={...r,queryKey:i,queryFn:o,staleTime:p,retry:!1},e[7]=r,e[8]=i,e[9]=o,e[10]=p,e[11]=a):a=e[11],c(a)}function w(s){const e=l.c(12);let t,r;e[0]!==s?({client:t,...r}=s,e[0]=s,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=()=>u(t),e[5]=t,e[6]=o):o=e[6];const p=r.staleTime??3e4;let a;return e[7]!==r||e[8]!==i||e[9]!==o||e[10]!==p?(a={...r,queryKey:i,queryFn:o,staleTime:p,retry:!1},e[7]=r,e[8]=i,e[9]=o,e[10]=p,e[11]=a):a=e[11],y(a)}export{w as a,q as g,u as l,d as u};
@@ -1 +1 @@
1
- import{c as m,v as p}from"./index-C2na4guL.js";import{u as q}from"./useQuery-DnHeIEbf.js";import{u as C}from"./useMutation-Cu1CYNQ4.js";import{K as T}from"./constants-DaSprOUn.js";function w(r){const e=m.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],p(n)}function F(r){const e=m.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],q(n)}function P(r){const e=m.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const y=JSON.stringify(l??{});u=p,i=s,n=T.mcpToolCall(t,o,y),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function $(r){const e=m.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const y=JSON.stringify(l??{});u=q,i=s,n=T.mcpToolCall(t,o,y),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function L(r){const e=m.c(8);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=async i=>await t.callTool(i),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o={...s,mutationFn:l},e[5]=s,e[6]=l,e[7]=o):o=e[7],C(o)}export{L as a,$ as b,w as c,F as d,P as u};
1
+ import{c as m,v as p}from"./index-Cag7rf5f.js";import{u as q}from"./useQuery-Clb9lPv3.js";import{u as C}from"./useMutation-CCDwZCqX.js";import{K as T}from"./constants-5XohhD_f.js";function w(r){const e=m.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],p(n)}function F(r){const e=m.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],q(n)}function P(r){const e=m.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const y=JSON.stringify(l??{});u=p,i=s,n=T.mcpToolCall(t,o,y),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function $(r){const e=m.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const y=JSON.stringify(l??{});u=q,i=s,n=T.mcpToolCall(t,o,y),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function L(r){const e=m.c(8);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=async i=>await t.callTool(i),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o={...s,mutationFn:l},e[5]=s,e[6]=l,e[7]=o):o=e[7],C(o)}export{L as a,$ as b,w as c,F as d,P as u};
@@ -1 +1 @@
1
- import{c as n,u as o,v as u,K as i,f as a}from"./index-C2na4guL.js";function l(){const e=n.c(4),{locator:r}=o();let t;e[0]!==r?(t=i.members(r),e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s={queryKey:t,queryFn:c},e[2]=t,e[3]=s):s=e[3],u(s)}function c(){return a.organization.listMembers()}export{l as u};
1
+ import{c as n,u as o,v as u,K as i,f as a}from"./index-Cag7rf5f.js";function l(){const e=n.c(4),{locator:r}=o();let t;e[0]!==r?(t=i.members(r),e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s={queryKey:t,queryFn:c},e[2]=t,e[3]=s):s=e[3],u(s)}function c(){return a.organization.listMembers()}export{l as u};
@@ -1 +1 @@
1
- import{c as m,r}from"./index-C2na4guL.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
1
+ import{c as m,r}from"./index-Cag7rf5f.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
@@ -1 +1 @@
1
- import{c as t}from"./index-C2na4guL.js";import{u as n,L as r}from"./localstorage-keys-rCdSk7V1.js";const s={devMode:!1,toolApprovalLevel:"none",enableNotifications:typeof Notification<"u"};function f(){const e=t.c(1);let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.preferences(),e[0]=o):o=e[0],n(o,c)}function c(e){return{...s,...e}}export{f as u};
1
+ import{c as t}from"./index-Cag7rf5f.js";import{u as n,L as r}from"./localstorage-keys-Cc-8xT2Q.js";const s={devMode:!1,toolApprovalLevel:"none",enableNotifications:typeof Notification<"u"};function f(){const e=t.c(1);let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.preferences(),e[0]=o):o=e[0],n(o,c)}function c(e){return{...s,...e}}export{f as u};
@@ -1 +1 @@
1
- import{K as m,c as C,v as T}from"./index-C2na4guL.js";import{u as y}from"./useQuery-DnHeIEbf.js";import{u as f,a}from"./constants-DaSprOUn.js";function S(t,s){const e=C.c(13);let r;e[0]!==t?(r={connectionId:a,orgId:t},e[0]=t,e[1]=r):r=e[1];const l=f(r);let u;e[2]!==t||e[3]!==s?(u=m.project(t,s),e[2]=t,e[3]=s,e[4]=u):u=e[4];let c;e[5]!==l||e[6]!==t||e[7]!==s?(c=async()=>{const p=await l.callTool({name:"PROJECT_GET",arguments:{organizationId:t,slug:s}});return(p.structuredContent??p).project},e[5]=l,e[6]=t,e[7]=s,e[8]=c):c=e[8];const o=!!t&&!!s;let n;return e[9]!==u||e[10]!==c||e[11]!==o?(n={queryKey:u,queryFn:c,enabled:o,staleTime:3e4},e[9]=u,e[10]=c,e[11]=o,e[12]=n):n=e[12],y(n)}function _(t,s){const e=f({connectionId:a,orgId:t}),r={queryKey:m.projects(t),queryFn:async()=>{const l=await e.callTool({name:"PROJECT_LIST",arguments:{organizationId:t}});return(l.structuredContent??l).projects.map(c=>({...c,organizationId:t}))},staleTime:3e4};return s?.suspense?T(r):y({...r,enabled:!!t})}export{_ as a,S as u};
1
+ import{K as m,c as C,v as T}from"./index-Cag7rf5f.js";import{u as y}from"./useQuery-Clb9lPv3.js";import{u as f,a}from"./constants-5XohhD_f.js";function S(t,s){const e=C.c(13);let r;e[0]!==t?(r={connectionId:a,orgId:t},e[0]=t,e[1]=r):r=e[1];const l=f(r);let u;e[2]!==t||e[3]!==s?(u=m.project(t,s),e[2]=t,e[3]=s,e[4]=u):u=e[4];let c;e[5]!==l||e[6]!==t||e[7]!==s?(c=async()=>{const p=await l.callTool({name:"PROJECT_GET",arguments:{organizationId:t,slug:s}});return(p.structuredContent??p).project},e[5]=l,e[6]=t,e[7]=s,e[8]=c):c=e[8];const o=!!t&&!!s;let n;return e[9]!==u||e[10]!==c||e[11]!==o?(n={queryKey:u,queryFn:c,enabled:o,staleTime:3e4},e[9]=u,e[10]=c,e[11]=o,e[12]=n):n=e[12],y(n)}function _(t,s){const e=f({connectionId:a,orgId:t}),r={queryKey:m.projects(t),queryFn:async()=>{const l=await e.callTool({name:"PROJECT_LIST",arguments:{organizationId:t}});return(l.structuredContent??l).projects.map(c=>({...c,organizationId:t}))},staleTime:3e4};return s?.suspense?T(r):y({...r,enabled:!!t})}export{_ as a,S as u};
@@ -1 +1 @@
1
- import{r as g,c as v,e as C,d as k,g as E}from"./index-C2na4guL.js";const M=({size:e=24,color:t="currentColor",...s})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},g.createElement("path",{d:"M15 21v-5.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 14 13.96 14 13.4 14h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 14.76 9 15.04 9 15.6V21M3 7a3 3 0 0 0 6 0 3 3 0 1 0 6 0 3 3 0 1 0 6 0M6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21Z"}));M.displayName="Building02";const j=({size:e=24,color:t="currentColor",...s})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},g.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));j.displayName="Coins01";const w=new Set(["account.profile","account.preferences","org.general","org.plugins","org.billing"]);function x(e){return e?w.has(e):!1}function _(){const e=v.c(17),t=C();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[0]=s):s=e[0];const n=k(s);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},e[1]=i):i=e[1];const{org:o,project:r}=E(i);let c;e[2]!==n.settings?(c=x(n.settings)?n.settings:void 0,e[2]=n.settings,e[3]=c):c=e[3];const m=c,f=!!m;let a;e[4]!==t||e[5]!==o||e[6]!==r?(a=S=>{!o||!r||t({to:"/$org/$project",params:{org:o,project:r},search:{settings:S}})},e[4]=t,e[5]=o,e[6]=r,e[7]=a):a=e[7];const p=a;let l;e[8]!==t||e[9]!==o||e[10]!==r?(l=()=>{!o||!r||t({to:"/$org/$project",params:{org:o,project:r},search:{}})},e[8]=t,e[9]=o,e[10]=r,e[11]=l):l=e[11];const d=l,h=m??"account.preferences";let u;return e[12]!==d||e[13]!==f||e[14]!==p||e[15]!==h?(u={isOpen:f,activeSection:h,open:p,close:d},e[12]=d,e[13]=f,e[14]=p,e[15]=h,e[16]=u):u=e[16],u}export{j as i,M as t,_ as u};
1
+ import{r as g,c as v,e as C,d as k,g as E}from"./index-Cag7rf5f.js";const M=({size:e=24,color:t="currentColor",...s})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},g.createElement("path",{d:"M15 21v-5.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 14 13.96 14 13.4 14h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 14.76 9 15.04 9 15.6V21M3 7a3 3 0 0 0 6 0 3 3 0 1 0 6 0 3 3 0 1 0 6 0M6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21Z"}));M.displayName="Building02";const j=({size:e=24,color:t="currentColor",...s})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},g.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));j.displayName="Coins01";const w=new Set(["account.profile","account.preferences","org.general","org.plugins","org.billing"]);function x(e){return e?w.has(e):!1}function _(){const e=v.c(17),t=C();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[0]=s):s=e[0];const n=k(s);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},e[1]=i):i=e[1];const{org:o,project:r}=E(i);let c;e[2]!==n.settings?(c=x(n.settings)?n.settings:void 0,e[2]=n.settings,e[3]=c):c=e[3];const m=c,f=!!m;let a;e[4]!==t||e[5]!==o||e[6]!==r?(a=S=>{!o||!r||t({to:"/$org/$project",params:{org:o,project:r},search:{settings:S}})},e[4]=t,e[5]=o,e[6]=r,e[7]=a):a=e[7];const p=a;let l;e[8]!==t||e[9]!==o||e[10]!==r?(l=()=>{!o||!r||t({to:"/$org/$project",params:{org:o,project:r},search:{}})},e[8]=t,e[9]=o,e[10]=r,e[11]=l):l=e[11];const d=l,h=m??"account.preferences";let u;return e[12]!==d||e[13]!==f||e[14]!==p||e[15]!==h?(u={isOpen:f,activeSection:h,open:p,close:d},e[12]=d,e[13]=f,e[14]=p,e[15]=h,e[16]=u):u=e[16],u}export{j as i,M as t,_ as u};
@@ -1 +1 @@
1
- import{c as p,r as f}from"./index-C2na4guL.js";import{u as w}from"./use-mobile-DHwqDvar.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
1
+ import{c as p,r as f}from"./index-Cag7rf5f.js";import{u as w}from"./use-mobile-DAXjM9XF.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
@@ -1 +1 @@
1
- import{c,u as r}from"./index-C2na4guL.js";import{e as a,u as C,d as I}from"./use-collections--9SGeKjH.js";import{a as l,u}from"./constants-DaSprOUn.js";function m(i){const t=c.c(4);let o;t[0]!==i?(o=i===void 0?{}:i,t[0]=i,t[1]=o):o=t[1];const n=o,{org:e}=r();let s;t[2]!==e.id?(s={connectionId:l,orgId:e.id},t[2]=e.id,t[3]=s):s=t[3];const d=u(s);return a(e.id,"VIRTUAL_MCP",d,n)}function V(i){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:l,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=u(n);return I(o.id,"VIRTUAL_MCP",i??void 0,e)}function p(){const i=c.c(2),{org:t}=r();let o;i[0]!==t.id?(o={connectionId:l,orgId:t.id},i[0]=t.id,i[1]=o):o=i[1];const n=u(o);return C(t.id,"VIRTUAL_MCP",n)}export{p as a,m as b,V as u};
1
+ import{c,u as r}from"./index-Cag7rf5f.js";import{e as a,u as C,d as I}from"./use-collections-BG9rywMN.js";import{a as l,u}from"./constants-5XohhD_f.js";function m(i){const t=c.c(4);let o;t[0]!==i?(o=i===void 0?{}:i,t[0]=i,t[1]=o):o=t[1];const n=o,{org:e}=r();let s;t[2]!==e.id?(s={connectionId:l,orgId:e.id},t[2]=e.id,t[3]=s):s=t[3];const d=u(s);return a(e.id,"VIRTUAL_MCP",d,n)}function V(i){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:l,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=u(n);return I(o.id,"VIRTUAL_MCP",i??void 0,e)}function p(){const i=c.c(2),{org:t}=r();let o;i[0]!==t.id?(o={connectionId:l,orgId:t.id},i[0]=t.id,i[1]=o):o=i[1];const n=u(o);return C(t.id,"VIRTUAL_MCP",n)}export{p as a,m as b,V as u};
@@ -0,0 +1 @@
1
+ import{I as u}from"./infiniteQueryObserver-B3dSQxWm.js";import{a5 as i}from"./index-Cag7rf5f.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +1 @@
1
- import{aD as l,aE as p,aF as n,aG as d,aH as h,w as b,r as o,aI as m,aJ as f}from"./index-C2na4guL.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
1
+ import{aC as l,aD as p,aE as n,aF as d,aG as h,w as b,r as o,aH as m,aI as f}from"./index-Cag7rf5f.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
@@ -0,0 +1 @@
1
+ import{a5 as u,aa as a}from"./index-Cag7rf5f.js";function o(e,r){return u(e,a,r)}export{o as u};
@@ -0,0 +1 @@
1
+ import{I as s}from"./infiniteQueryObserver-B3dSQxWm.js";import{a5 as u,a6 as n}from"./index-Cag7rf5f.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
@@ -1 +1 @@
1
- import{c as w,u as C,K as S,z as y,j as t}from"./index-C2na4guL.js";import{A as E}from"./avatar-DRLqoNkW.js";import{u as k}from"./useQuery-DnHeIEbf.js";import{a as A,u as _}from"./constants-DaSprOUn.js";function z(m){const e=w.c(11),{org:h}=C();let x;e[0]!==h.id?(x={connectionId:A,orgId:h.id},e[0]=h.id,e[1]=x):x=e[1];const u=_(x);let d;e[2]!==m?(d=S.user(m),e[2]=m,e[3]=d):d=e[3];let s;e[4]!==u||e[5]!==m?(s=async()=>{const r=await u.callTool({name:"USER_GET",arguments:{id:m}});return(r.structuredContent??r).user},e[4]=u,e[5]=m,e[6]=s):s=e[6];const l=!!m;let o;return e[7]!==d||e[8]!==s||e[9]!==l?(o={queryKey:d,queryFn:s,staleTime:3e5,retry:1,enabled:l},e[7]=d,e[8]=s,e[9]=l,e[10]=o):o=e[10],k(o)}function T(m){const e=w.c(36),{id:h,size:x,showEmail:u,avatarOnly:d,className:s}=m,l=x===void 0?"xs":x,o=u===void 0?!1:u,r=d===void 0?!1:d,{data:c,isLoading:U,isError:b}=z(h);if(U){let a;e[0]!==s?(a=y("flex items-center gap-2",s),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==l?(i=t.jsx(E.Skeleton,{shape:"circle",size:l}),e[2]=l,e[3]=i):i=e[3];let n;e[4]!==r||e[5]!==o?(n=!r&&t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),o&&t.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=r,e[5]=o,e[6]=n):n=e[6];let f;return e[7]!==a||e[8]!==i||e[9]!==n?(f=t.jsxs("div",{className:a,children:[i,n]}),e[7]=a,e[8]=i,e[9]=n,e[10]=f):f=e[10],f}if(b||!c){let a;e[11]!==s?(a=y("flex items-center gap-2",s),e[11]=s,e[12]=a):a=e[12];let i;e[13]!==l?(i=t.jsx(E,{shape:"circle",size:l,fallback:"?",muted:!0}),e[13]=l,e[14]=i):i=e[14];let n;e[15]!==r?(n=!r&&t.jsx("div",{className:"flex flex-col",children:t.jsx("div",{className:"text-sm text-muted-foreground",children:"Unknown User"})}),e[15]=r,e[16]=n):n=e[16];let f;return e[17]!==a||e[18]!==i||e[19]!==n?(f=t.jsxs("div",{className:a,children:[i,n]}),e[17]=a,e[18]=i,e[19]=n,e[20]=f):f=e[20],f}let p;e[21]!==s?(p=y("flex items-center gap-2",s),e[21]=s,e[22]=p):p=e[22];const N=c.image??void 0;let v;e[23]!==l||e[24]!==N||e[25]!==c.name?(v=t.jsx(E,{shape:"circle",size:l,url:N,fallback:c.name}),e[23]=l,e[24]=N,e[25]=c.name,e[26]=v):v=e[26];let j;e[27]!==r||e[28]!==o||e[29]!==c.email||e[30]!==c.name?(j=!r&&t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-sm font-medium",children:c.name}),o&&t.jsx("div",{className:"text-xs text-muted-foreground",children:c.email})]}),e[27]=r,e[28]=o,e[29]=c.email,e[30]=c.name,e[31]=j):j=e[31];let g;return e[32]!==p||e[33]!==v||e[34]!==j?(g=t.jsxs("div",{className:p,children:[v,j]}),e[32]=p,e[33]=v,e[34]=j,e[35]=g):g=e[35],g}export{T as U};
1
+ import{c as w,u as C,K as S,z as y,j as t}from"./index-Cag7rf5f.js";import{A as E}from"./avatar-B31kskAu.js";import{u as k}from"./useQuery-Clb9lPv3.js";import{a as A,u as _}from"./constants-5XohhD_f.js";function z(m){const e=w.c(11),{org:h}=C();let x;e[0]!==h.id?(x={connectionId:A,orgId:h.id},e[0]=h.id,e[1]=x):x=e[1];const u=_(x);let d;e[2]!==m?(d=S.user(m),e[2]=m,e[3]=d):d=e[3];let s;e[4]!==u||e[5]!==m?(s=async()=>{const r=await u.callTool({name:"USER_GET",arguments:{id:m}});return(r.structuredContent??r).user},e[4]=u,e[5]=m,e[6]=s):s=e[6];const l=!!m;let o;return e[7]!==d||e[8]!==s||e[9]!==l?(o={queryKey:d,queryFn:s,staleTime:3e5,retry:1,enabled:l},e[7]=d,e[8]=s,e[9]=l,e[10]=o):o=e[10],k(o)}function T(m){const e=w.c(36),{id:h,size:x,showEmail:u,avatarOnly:d,className:s}=m,l=x===void 0?"xs":x,o=u===void 0?!1:u,r=d===void 0?!1:d,{data:c,isLoading:U,isError:b}=z(h);if(U){let a;e[0]!==s?(a=y("flex items-center gap-2",s),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==l?(i=t.jsx(E.Skeleton,{shape:"circle",size:l}),e[2]=l,e[3]=i):i=e[3];let n;e[4]!==r||e[5]!==o?(n=!r&&t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),o&&t.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=r,e[5]=o,e[6]=n):n=e[6];let f;return e[7]!==a||e[8]!==i||e[9]!==n?(f=t.jsxs("div",{className:a,children:[i,n]}),e[7]=a,e[8]=i,e[9]=n,e[10]=f):f=e[10],f}if(b||!c){let a;e[11]!==s?(a=y("flex items-center gap-2",s),e[11]=s,e[12]=a):a=e[12];let i;e[13]!==l?(i=t.jsx(E,{shape:"circle",size:l,fallback:"?",muted:!0}),e[13]=l,e[14]=i):i=e[14];let n;e[15]!==r?(n=!r&&t.jsx("div",{className:"flex flex-col",children:t.jsx("div",{className:"text-sm text-muted-foreground",children:"Unknown User"})}),e[15]=r,e[16]=n):n=e[16];let f;return e[17]!==a||e[18]!==i||e[19]!==n?(f=t.jsxs("div",{className:a,children:[i,n]}),e[17]=a,e[18]=i,e[19]=n,e[20]=f):f=e[20],f}let p;e[21]!==s?(p=y("flex items-center gap-2",s),e[21]=s,e[22]=p):p=e[22];const N=c.image??void 0;let v;e[23]!==l||e[24]!==N||e[25]!==c.name?(v=t.jsx(E,{shape:"circle",size:l,url:N,fallback:c.name}),e[23]=l,e[24]=N,e[25]=c.name,e[26]=v):v=e[26];let j;e[27]!==r||e[28]!==o||e[29]!==c.email||e[30]!==c.name?(j=!r&&t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-sm font-medium",children:c.name}),o&&t.jsx("div",{className:"text-xs text-muted-foreground",children:c.email})]}),e[27]=r,e[28]=o,e[29]=c.email,e[30]=c.name,e[31]=j):j=e[31];let g;return e[32]!==p||e[33]!==v||e[34]!==j?(g=t.jsxs("div",{className:p,children:[v,j]}),e[32]=p,e[33]=v,e[34]=j,e[35]=g):g=e[35],g}export{T as U};
@@ -1 +1 @@
1
- import{c as g,u as C,w as W,K as x,x as w,j as i,B as I}from"./index-C2na4guL.js";import{a as _,u as L}from"./constants-DaSprOUn.js";import{C as k}from"./collection-tab-CsqqKCXP.js";import{E as O}from"./collection-search-B54umXGp.js";import{u as S}from"./useMutation-Cu1CYNQ4.js";import{P as u}from"./index-BU2sT9tj.js";import{B as b,a as h,b as P,c as y}from"./breadcrumb-Bg67HRy9.js";import{e as T}from"./Dataflow03-BVQa7VBE.js";import"./generate-id-Dyweu44Y.js";import"./collection-display-button-WFmVtIi7.js";import"./dropdown-menu-ByUVopOy.js";import"./Check-CDFiVxzc.js";import"./ChevronRight-NxpG2X5l.js";import"./ArrowDown-CZcxuDlT.js";import"./ArrowUp-GyzIO44k.js";import"./Grid01-C3T5n4Ns.js";import"./List-JP-IMB61.js";import"./tooltip-BdAKZv54.js";import"./index-BobyOFZi.js";import"./badge-BWAmAiUV.js";import"./card-7hcLkCEB.js";import"./integration-icon-DGtldPz9.js";import"./Container-DegtKaTT.js";import"./Copy01-CNPA12Jg.js";import"./DotsVertical-tmylCaVb.js";import"./Edit01-Dxc70kRZ.js";import"./Eye-Dn6eQVRc.js";import"./Trash01-cTJibjyo.js";import"./collection-table-wrapper-BZOIm27z.js";import"./table-DZiJB3ll.js";import"./empty-state-DlQl9kGl.js";import"./Inbox01-C2MChB8W.js";import"./user-r4C-ASlZ.js";import"./avatar-DRLqoNkW.js";import"./useQuery-DnHeIEbf.js";import"./use-list-state-D_iRo0PJ.js";import"./use-view-mode-BZc5mOXP.js";import"./use-mobile-DHwqDvar.js";import"./constants-YgRD23Vv.js";import"./alert-dialog-CW_u7eeV.js";import"./use-collections--9SGeKjH.js";import"./Plus-CJHPMEjp.js";import"./layout-Bv5qTAVf.js";import"./Loading01-Bg86p_4S.js";import"./SearchMd-CwJLSOLk.js";import"./input-DUsZ0674.js";import"./localstorage-keys-rCdSk7V1.js";function B(){const e=g.c(12),{org:t,project:r}=C(),a=W();let c;e[0]!==t.id?(c={connectionId:_,orgId:t.id},e[0]=t.id,e[1]=c):c=e[1];const l=L(c);let o;e[2]!==l||e[3]!==r?(o=async d=>{const m=r.enabledPlugins??[];if(m.includes(d))return;const p=[...m,d],j=await l.callTool({name:"PROJECT_UPDATE",arguments:{projectId:r.id,enabledPlugins:p}});return j.structuredContent??j},e[2]=l,e[3]=r,e[4]=o):o=e[4];let n;e[5]!==t.id||e[6]!==r||e[7]!==a?(n=()=>{a.invalidateQueries({queryKey:x.project(t.id,r.slug)}),a.invalidateQueries({queryKey:x.projects(t.id)})},e[5]=t.id,e[6]=r,e[7]=a,e[8]=n):n=e[8];let s;return e[9]!==o||e[10]!==n?(s={mutationFn:o,onSuccess:n,onError:K},e[9]=o,e[10]=n,e[11]=s):s=e[11],S(s)}function K(e){w.error("Failed to enable plugin: "+(e instanceof Error?e.message:"Unknown error"))}function N(e){const t=g.c(12),{pluginId:r,title:a,description:c,icon:l}=e,o=B();let n;t[0]!==o||t[1]!==r?(n=async()=>{try{await o.mutateAsync(r),w.success("Plugin enabled!")}catch{}},t[0]=o,t[1]=r,t[2]=n):n=t[2];const s=n,f=l??null,d=o.isPending?"Enabling…":"Enable plugin";let m;t[3]!==o.isPending||t[4]!==s||t[5]!==d?(m=i.jsx(I,{onClick:s,disabled:o.isPending,children:d}),t[3]=o.isPending,t[4]=s,t[5]=d,t[6]=m):m=t[6];let p;return t[7]!==c||t[8]!==f||t[9]!==m||t[10]!==a?(p=i.jsx(O,{image:f,title:a,description:c,actions:m}),t[7]=c,t[8]=f,t[9]=m,t[10]=a,t[11]=p):p=t[11],p}const E="workflows",F={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function Se(){const e=g.c(5),{project:t,org:r}=C();if(!(t.enabledPlugins??[]).includes(E)){let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(u.Header,{children:i.jsx(u.Header.Left,{children:i.jsx(b,{children:i.jsx(h,{children:i.jsx(P,{children:i.jsx(y,{children:"Workflows"})})})})})}),e[0]=n):n=e[0];let s;return e[1]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsxs(u,{children:[n,i.jsx(u.Content,{children:i.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:i.jsx(N,{pluginId:E,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:i.jsx("div",{className:"bg-muted p-4 rounded-full",children:i.jsx(T,{className:"size-8 text-muted-foreground"})})})})})]}),e[1]=s):s=e[1],s}let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx(u.Header,{children:i.jsx(u.Header.Left,{children:i.jsx(b,{children:i.jsx(h,{children:i.jsx(P,{children:i.jsx(y,{children:"Workflows"})})})})})}),e[2]=l):l=e[2];let o;return e[3]!==r.slug?(o=i.jsxs(u,{children:[l,i.jsx(u.Content,{children:i.jsx(k,{connectionId:_,org:r.slug,activeCollection:F})})]}),e[3]=r.slug,e[4]=o):o=e[4],o}export{Se as default};
1
+ import{c as g,u as C,w as W,K as x,x as w,j as i,B as I}from"./index-Cag7rf5f.js";import{a as _,u as L}from"./constants-5XohhD_f.js";import{C as k}from"./collection-tab-CEV5V3f-.js";import{E as O}from"./collection-search-Dta_7bLf.js";import{u as S}from"./useMutation-CCDwZCqX.js";import{P as u}from"./index-DktUqq7R.js";import{B as b,a as h,b as P,c as y}from"./breadcrumb-RbNIhzC-.js";import{e as T}from"./Dataflow03-BhLXgKlQ.js";import"./generate-id-Dyweu44Y.js";import"./collection-display-button-CPl7pq_-.js";import"./dropdown-menu-CFEWQa_K.js";import"./Check-CxalVwyD.js";import"./ChevronRight-tF0xM-4Z.js";import"./ArrowDown-D7VDMxao.js";import"./ArrowUp-WlBoHBUF.js";import"./Grid01-BxyHC8oa.js";import"./List-SMahZTO4.js";import"./tooltip-s11dEtpO.js";import"./index-BhvDbEFS.js";import"./badge-B3jUOBeA.js";import"./card-20_V1oP3.js";import"./integration-icon-BKhIZQox.js";import"./Container-DMtRMvOi.js";import"./Copy01-DEpVJelC.js";import"./DotsVertical-CLkpl368.js";import"./Edit01-DTFNmaeE.js";import"./Eye-DZR5Sgqw.js";import"./Trash01-Bwp87fCr.js";import"./collection-table-wrapper-Cnt9IhWx.js";import"./table-zdx3E6v9.js";import"./empty-state-Bxs7XZNI.js";import"./Inbox01-CMG4E9ai.js";import"./user-Dc2KBRdg.js";import"./avatar-B31kskAu.js";import"./useQuery-Clb9lPv3.js";import"./use-list-state-f-AMTm78.js";import"./use-view-mode-DoyNiHJV.js";import"./use-mobile-DAXjM9XF.js";import"./constants-BFru2KWV.js";import"./alert-dialog-Bin5Tfuj.js";import"./use-collections-BG9rywMN.js";import"./Plus-LN4mY-9i.js";import"./layout-vXZA4ess.js";import"./Loading01-Bze1WZW-.js";import"./SearchMd-F_aXmF-3.js";import"./input-BU10AGC6.js";import"./localstorage-keys-Cc-8xT2Q.js";function B(){const e=g.c(12),{org:t,project:r}=C(),a=W();let c;e[0]!==t.id?(c={connectionId:_,orgId:t.id},e[0]=t.id,e[1]=c):c=e[1];const l=L(c);let o;e[2]!==l||e[3]!==r?(o=async d=>{const m=r.enabledPlugins??[];if(m.includes(d))return;const p=[...m,d],j=await l.callTool({name:"PROJECT_UPDATE",arguments:{projectId:r.id,enabledPlugins:p}});return j.structuredContent??j},e[2]=l,e[3]=r,e[4]=o):o=e[4];let n;e[5]!==t.id||e[6]!==r||e[7]!==a?(n=()=>{a.invalidateQueries({queryKey:x.project(t.id,r.slug)}),a.invalidateQueries({queryKey:x.projects(t.id)})},e[5]=t.id,e[6]=r,e[7]=a,e[8]=n):n=e[8];let s;return e[9]!==o||e[10]!==n?(s={mutationFn:o,onSuccess:n,onError:K},e[9]=o,e[10]=n,e[11]=s):s=e[11],S(s)}function K(e){w.error("Failed to enable plugin: "+(e instanceof Error?e.message:"Unknown error"))}function N(e){const t=g.c(12),{pluginId:r,title:a,description:c,icon:l}=e,o=B();let n;t[0]!==o||t[1]!==r?(n=async()=>{try{await o.mutateAsync(r),w.success("Plugin enabled!")}catch{}},t[0]=o,t[1]=r,t[2]=n):n=t[2];const s=n,f=l??null,d=o.isPending?"Enabling…":"Enable plugin";let m;t[3]!==o.isPending||t[4]!==s||t[5]!==d?(m=i.jsx(I,{onClick:s,disabled:o.isPending,children:d}),t[3]=o.isPending,t[4]=s,t[5]=d,t[6]=m):m=t[6];let p;return t[7]!==c||t[8]!==f||t[9]!==m||t[10]!==a?(p=i.jsx(O,{image:f,title:a,description:c,actions:m}),t[7]=c,t[8]=f,t[9]=m,t[10]=a,t[11]=p):p=t[11],p}const E="workflows",F={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function Se(){const e=g.c(5),{project:t,org:r}=C();if(!(t.enabledPlugins??[]).includes(E)){let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(u.Header,{children:i.jsx(u.Header.Left,{children:i.jsx(b,{children:i.jsx(h,{children:i.jsx(P,{children:i.jsx(y,{children:"Workflows"})})})})})}),e[0]=n):n=e[0];let s;return e[1]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsxs(u,{children:[n,i.jsx(u.Content,{children:i.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:i.jsx(N,{pluginId:E,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:i.jsx("div",{className:"bg-muted p-4 rounded-full",children:i.jsx(T,{className:"size-8 text-muted-foreground"})})})})})]}),e[1]=s):s=e[1],s}let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx(u.Header,{children:i.jsx(u.Header.Left,{children:i.jsx(b,{children:i.jsx(h,{children:i.jsx(P,{children:i.jsx(y,{children:"Workflows"})})})})})}),e[2]=l):l=e[2];let o;return e[3]!==r.slug?(o=i.jsxs(u,{children:[l,i.jsx(u.Content,{children:i.jsx(k,{connectionId:_,org:r.slug,activeCollection:F})})]}),e[3]=r.slug,e[4]=o):o=e[4],o}export{Se as default};
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <title>MCP Mesh</title>
5
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
- <script type="module" crossorigin src="/assets/index-C2na4guL.js"></script>
6
+ <script type="module" crossorigin src="/assets/index-Cag7rf5f.js"></script>
7
7
  <link rel="stylesheet" crossorigin href="/assets/index-CcaZ2Rhp.css">
8
8
  </head>
9
9
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decocms",
3
- "version": "2.161.2",
3
+ "version": "2.161.3",
4
4
  "description": "Deco Studio — Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "license": "MIT",