decocms 4.10.0 → 4.11.1

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 (224) hide show
  1. package/dist/client/assets/{AlertCircle-B9i_x3yX.js → AlertCircle-Br7CfLvX.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-cF0mnN41.js → ArrowUpRight-Bm0I42Vg.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-zzRIg2zR.js → CheckCircle-Bh9aQ2VF.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-D4rBo5Cd.js → ChevronDown-BSXA0X2j.js} +1 -1
  5. package/dist/client/assets/{ChevronRight-CDn6HuCQ.js → ChevronRight-DCtjkcdS.js} +1 -1
  6. package/dist/client/assets/{ChevronUp-CFXuZkVg.js → ChevronUp-B5CTYZ29.js} +1 -1
  7. package/dist/client/assets/{DotsVertical-CyO7wZv3.js → DotsVertical-Cp_gOESp.js} +1 -1
  8. package/dist/client/assets/{Eye-DJjniuqY.js → Eye-Cl5xVjnx.js} +1 -1
  9. package/dist/client/assets/{FilterLines-C7d-9ZQk.js → FilterLines-DuHaMCAv.js} +1 -1
  10. package/dist/client/assets/{Globe01-Do2q7EuB.js → Globe01-BrFbdg9i.js} +1 -1
  11. package/dist/client/assets/{Globe04-Mvw3976B.js → Globe04-BY_mEKwR.js} +1 -1
  12. package/dist/client/assets/{HardDrive-Ci17wnKW.js → HardDrive-Dcgyml69.js} +1 -1
  13. package/dist/client/assets/{Key01-BiZk1T91.js → Key01-yWXuIvXr.js} +1 -1
  14. package/dist/client/assets/{LayoutLeft-BMp-06Ch.js → LayoutLeft-DaFUFPON.js} +1 -1
  15. package/dist/client/assets/{LinkExternal01-BIEuCHKR.js → LinkExternal01-BtG3Yjaj.js} +1 -1
  16. package/dist/client/assets/{Monitor01-DNKFU3PW.js → Monitor01-DiWXBdCO.js} +1 -1
  17. package/dist/client/assets/{Palette-CB1NQWQN.js → Palette-BHa56PsA.js} +1 -1
  18. package/dist/client/assets/{Play-An8HsyAi.js → Play-CC0UzcfF.js} +1 -1
  19. package/dist/client/assets/{Plus-D3xgmWdX.js → Plus-YsNvhs75.js} +1 -1
  20. package/dist/client/assets/{SearchLg-BYw4LhiQ.js → SearchLg-DN8WW4RT.js} +1 -1
  21. package/dist/client/assets/{SearchMd-BYsRf8JG.js → SearchMd-Eh9vdTJf.js} +1 -1
  22. package/dist/client/assets/{Settings02-CPxYREBE.js → Settings02-BAgaJKfH.js} +1 -1
  23. package/dist/client/assets/{Shield01-Dr2T7xLf.js → Shield01-C3eg9E2L.js} +1 -1
  24. package/dist/client/assets/{Star01-z6-lfdui.js → Star01-Btl_P8Ex.js} +1 -1
  25. package/dist/client/assets/{Stars01-ZkDAuQwr.js → Stars01-tAHopfEa.js} +1 -1
  26. package/dist/client/assets/{Stars02-D8az_5Af.js → Stars02-BKlbikd6.js} +1 -1
  27. package/dist/client/assets/{Sun-CCi4P6Lh.js → Sun-CylE9qNE.js} +1 -1
  28. package/dist/client/assets/{SwitchHorizontal01-DHUuncY2.js → SwitchHorizontal01-CC3QrqqH.js} +1 -1
  29. package/dist/client/assets/{Tool01-B4amg9yB.js → Tool01-DouR6tu6.js} +1 -1
  30. package/dist/client/assets/{Trash01-BcusIWqe.js → Trash01-BOBuBITr.js} +1 -1
  31. package/dist/client/assets/{Upload01-Dj1G7JBU.js → Upload01-CfKVWS6s.js} +1 -1
  32. package/dist/client/assets/{User01-NcvWezb3.js → User01-C8CPwAlr.js} +1 -1
  33. package/dist/client/assets/{Users01-CbnVd6yD.js → Users01-Cfx8Vr84.js} +1 -1
  34. package/dist/client/assets/{Users03-CCVhW9kg.js → Users03-HwPSmLR7.js} +1 -1
  35. package/dist/client/assets/{X-Dq3oJiz6.js → X-DnFBncs5.js} +1 -1
  36. package/dist/client/assets/{XCircle-7nuhx8NX.js → XCircle-BDS4O4y1.js} +1 -1
  37. package/dist/client/assets/{XClose-Bqzfjmh3.js → XClose-B30J5raq.js} +1 -1
  38. package/dist/client/assets/{Zap-BNW86-w0.js → Zap-DA2zNVJu.js} +1 -1
  39. package/dist/client/assets/{ZapSquare-CL8vn24R.js → ZapSquare-B3exHvaw.js} +1 -1
  40. package/dist/client/assets/{ZoomOut-CLFft6BA.js → ZoomOut-BXVyDbe6.js} +1 -1
  41. package/dist/client/assets/{access-gate-C4hUJNh_.js → access-gate-DRMde4Lj.js} +1 -1
  42. package/dist/client/assets/{add-section-modal-jXfcfN41.js → add-section-modal-CW4e6K5h.js} +1 -1
  43. package/dist/client/assets/{agent-icon-BM8MQ5be.js → agent-icon-D0xfW9tm.js} +1 -1
  44. package/dist/client/assets/{agents-list-C3-KQvRC.js → agents-list-BzbCjASH.js} +1 -1
  45. package/dist/client/assets/{ai-providers-D4SEreuO.js → ai-providers-BKRS6C22.js} +1 -1
  46. package/dist/client/assets/{alert-RaqgzwNf.js → alert-Bu0KmciZ.js} +1 -1
  47. package/dist/client/assets/{alert-dialog-BvMgbTr9.js → alert-dialog-DRqaDJgF.js} +1 -1
  48. package/dist/client/assets/{app-editor-DwNMCbKV.js → app-editor-BkE5A3Hh.js} +1 -1
  49. package/dist/client/assets/{auth-BU0GeO8h.js → auth-DbUndmuO.js} +1 -1
  50. package/dist/client/assets/{auth-catchall-ESAwWRyk.js → auth-catchall-Cp_Icy65.js} +1 -1
  51. package/dist/client/assets/{auth-entry-f4oO2pyf.js → auth-entry-BzT37PWX.js} +1 -1
  52. package/dist/client/assets/{auth-split-layout-CzFU6N2L.js → auth-split-layout-D3fzkokE.js} +1 -1
  53. package/dist/client/assets/{authenticate-and-persist-oauth-Bwuou5N5.js → authenticate-and-persist-oauth-CEpoZ411.js} +1 -1
  54. package/dist/client/assets/{automation-list-row-CIaxBCOJ.js → automation-list-row-CD6XcRtq.js} +1 -1
  55. package/dist/client/assets/{automation-runs-JsZo9EC7.js → automation-runs-B6IGPMWC.js} +1 -1
  56. package/dist/client/assets/{automations-DaITHsPe.js → automations-Cl-WKDZo.js} +1 -1
  57. package/dist/client/assets/{avatar-BP2FzYvw.js → avatar-BRMcK1Fa.js} +1 -1
  58. package/dist/client/assets/{badge-KNqQ-xkh.js → badge-IyD2awn9.js} +1 -1
  59. package/dist/client/assets/{block-document-Bu9KWNtO.js → block-document-l4MC4p0E.js} +1 -1
  60. package/dist/client/assets/{brand-context-BQJyP211.js → brand-context-CZ9ZkRzo.js} +1 -1
  61. package/dist/client/assets/{buckets-Bfj6xDEl.js → buckets-CVmdlYJQ.js} +1 -1
  62. package/dist/client/assets/{bulk-category-panel-Dj0HeJEJ.js → bulk-category-panel-Dwcozw91.js} +1 -1
  63. package/dist/client/assets/{capability-load-error-CGz8Hngs.js → capability-load-error-Cz-U4kpy.js} +1 -1
  64. package/dist/client/assets/{card-DuBMqYZm.js → card-DkGLJz1i.js} +1 -1
  65. package/dist/client/assets/{category-editor-B9Ck95Rl.js → category-editor-Dr7Q-28c.js} +1 -1
  66. package/dist/client/assets/{chat-context-PzKbUAil.js → chat-context-DLQm6s3r.js} +1 -1
  67. package/dist/client/assets/{checkbox-fYp407Fh.js → checkbox-CAZp4gqB.js} +1 -1
  68. package/dist/client/assets/{cli-auth-success-eA-t3OgD.js → cli-auth-success-vpR_zUUG.js} +1 -1
  69. package/dist/client/assets/collection-detail-C6v0FX6i.js +1 -0
  70. package/dist/client/assets/{collection-display-button-B7JPr-DT.js → collection-display-button-BhpOmYvj.js} +1 -1
  71. package/dist/client/assets/{collection-search-FrO71oF0.js → collection-search-Sx1B8ICI.js} +1 -1
  72. package/dist/client/assets/{collection-tabs-CjIQ8mgh.js → collection-tabs-txdKcvvO.js} +1 -1
  73. package/dist/client/assets/{command-Bnhz7-1L.js → command-CQa0SvAl.js} +1 -1
  74. package/dist/client/assets/{commerce-onboarding-G6HdfTep.js → commerce-onboarding-CyM0-TyT.js} +1 -1
  75. package/dist/client/assets/{connect-desktop-dialog-8s9YrP8w.js → connect-desktop-dialog-BnhE2jwv.js} +1 -1
  76. package/dist/client/assets/{connection-card-5hK-b_ZU.js → connection-card-C7X_tih3.js} +1 -1
  77. package/dist/client/assets/{connection-detail-DX7Dr0rR.js → connection-detail-ptDmzKUs.js} +1 -1
  78. package/dist/client/assets/{connection-form-helpers-BaOBFUzF.js → connection-form-helpers-BD99vME8.js} +1 -1
  79. package/dist/client/assets/{connections-CZ0xzDDq.js → connections-BtrvbbXR.js} +1 -1
  80. package/dist/client/assets/{context-menu-CSrtqxxM.js → context-menu-Dt8bitpN.js} +1 -1
  81. package/dist/client/assets/{decopilot-MP52Tp89.js → decopilot-BLAyXwA-.js} +1 -1
  82. package/dist/client/assets/{decopilot-sse-pool-DOCSJwAs.js → decopilot-sse-pool-BaRsrENm.js} +1 -1
  83. package/dist/client/assets/{dialog-C45rhbs4.js → dialog-07W2yxeT.js} +1 -1
  84. package/dist/client/assets/{domain-settings-CddLevU5.js → domain-settings-q7ve00ko.js} +1 -1
  85. package/dist/client/assets/{drawer-DfEPwI8N.js → drawer-Duybhr8F.js} +1 -1
  86. package/dist/client/assets/{dropdown-menu-ChAsKxcd.js → dropdown-menu-DWTgoPvl.js} +1 -1
  87. package/dist/client/assets/{empty-state-DW1Hxncl.js → empty-state-D7Bf9tu1.js} +1 -1
  88. package/dist/client/assets/{extract-connection-data-DhnwqdMi.js → extract-connection-data-DPv6JZEM.js} +1 -1
  89. package/dist/client/assets/{file-explorer-DsoUhoA0.js → file-explorer-BAloNSOV.js} +1 -1
  90. package/dist/client/assets/{file-type-icon-weqtDXd8.js → file-type-icon-BeYdcxvq.js} +1 -1
  91. package/dist/client/assets/{files-BTCpYytU.js → files-BkGN6lfv.js} +1 -1
  92. package/dist/client/assets/{form-CXezR26M.js → form-BfaJIT2-.js} +1 -1
  93. package/dist/client/assets/{general-BVTedgk9.js → general-Cf4_1MKO.js} +1 -1
  94. package/dist/client/assets/{github-repo-picker-CJ3K7Ssu.js → github-repo-picker-D7ggOM83.js} +1 -1
  95. package/dist/client/assets/{hooks-BxVsJBlY.js → hooks-Bkc6oCsQ.js} +1 -1
  96. package/dist/client/assets/{import-from-deco-dialog-BthWZyqT.js → import-from-deco-dialog-BOI7-GDq.js} +1 -1
  97. package/dist/client/assets/{index-DwFgoCov.js → index-BICoYGrI.js} +1 -1
  98. package/dist/client/assets/index-BWalXsiW.js +1 -0
  99. package/dist/client/assets/{index-IRZqLymo.js → index-BZAqyIds.js} +1 -1
  100. package/dist/client/assets/{index-DYjFitmS.js → index-BgwSyeXJ.js} +5 -5
  101. package/dist/client/assets/{index-Bb1TAV4I.js → index-BiYGT9-e.js} +1 -1
  102. package/dist/client/assets/index-Bmw1XOLw.js +1 -0
  103. package/dist/client/assets/{index-DlzujfAy.js → index-Bq-LLmH1.js} +1 -1
  104. package/dist/client/assets/index-C1FJSmcm.css +1 -0
  105. package/dist/client/assets/{index-BZUEFC59.js → index-CI1Jht9R.js} +1 -1
  106. package/dist/client/assets/{index-DW2ObUy5.js → index-CZuArN5L.js} +1 -1
  107. package/dist/client/assets/{index-BK387j8D.js → index-CyyOVIRa.js} +4 -4
  108. package/dist/client/assets/{index-CQr8eIPX.js → index-D04l1q2i.js} +1 -1
  109. package/dist/client/assets/{index-tteI6gsC.js → index-DWXEY8d6.js} +1 -1
  110. package/dist/client/assets/{index-DZ5bzPKv.js → index-Dq4pGeXP.js} +2 -2
  111. package/dist/client/assets/{index-Df3PBi-r.js → index-h6bqPl48.js} +1 -1
  112. package/dist/client/assets/{index-redirect-B3JUIDwz.js → index-redirect-Ba4q2tqb.js} +1 -1
  113. package/dist/client/assets/{input-DvLfRoZW.js → input-BmwjNaE_.js} +1 -1
  114. package/dist/client/assets/{integration-icon-BWhOzvug.js → integration-icon-DTYLyB0j.js} +1 -1
  115. package/dist/client/assets/{label-DoALhGxW.js → label-C0NFwQ-B.js} +1 -1
  116. package/dist/client/assets/{login-YSQySP0u.js → login-CGNGEz2y.js} +1 -1
  117. package/dist/client/assets/{mcp-oauth-DvrxuFpt.js → mcp-oauth-DC24xUWs.js} +1 -1
  118. package/dist/client/assets/{members-BuVfsbNX.js → members-D3XzBXV8.js} +1 -1
  119. package/dist/client/assets/{monaco-editor-CA9h_ekf.js → monaco-editor-DYjkflmx.js} +1 -1
  120. package/dist/client/assets/{monitoring-stats-row-eVx0x0p6.js → monitoring-stats-row-J-G1MYWT.js} +1 -1
  121. package/dist/client/assets/{oauth-callback-DSez9DtD.js → oauth-callback-DUpiMcs5.js} +1 -1
  122. package/dist/client/assets/{oauth-callback-ai-provider-DjnwtIpJ.js → oauth-callback-ai-provider-CO3P1OZI.js} +1 -1
  123. package/dist/client/assets/{onboarding-CiG0gYdW.js → onboarding-DclrsG6Y.js} +1 -1
  124. package/dist/client/assets/{org-install-B7OrIv8E.js → org-install-DeUKIKD8.js} +1 -1
  125. package/dist/client/assets/{org-layout-BZ7Kkhx3.js → org-layout-Cg8fHLJ3.js} +1 -1
  126. package/dist/client/assets/{organization-choice-C_odcuEm.js → organization-choice-19Z9fWPb.js} +1 -1
  127. package/dist/client/assets/{page-seo-form-DTO2x-C2.js → page-seo-form-Br3cQd7b.js} +1 -1
  128. package/dist/client/assets/page-seo-sheet-LvVyeCMa.js +1 -0
  129. package/dist/client/assets/{popover-DQyFV8gm.js → popover-ClZL1CWm.js} +1 -1
  130. package/dist/client/assets/{post-editor-8VwYe_fg.js → post-editor-BMMef4hZ.js} +1 -1
  131. package/dist/client/assets/{primitives-B6uu6gyb.js → primitives-DxrHnq66.js} +1 -1
  132. package/dist/client/assets/{profile-ufPV6YNA.js → profile-3JRFUV7F.js} +1 -1
  133. package/dist/client/assets/project-app-view-C4eEjnaY.js +1 -0
  134. package/dist/client/assets/record-editor-ChXkzoHs.js +1 -0
  135. package/dist/client/assets/registry-BP23lwdm.js +2 -0
  136. package/dist/client/assets/{registry-layout-BTgVNCIw.js → registry-layout-BccXQGxQ.js} +1 -1
  137. package/dist/client/assets/{require-capability-CJGLcYrf.js → require-capability-DpW2tvWJ.js} +1 -1
  138. package/dist/client/assets/{required-auth-layout-w72qbqCL.js → required-auth-layout-BDN_tOh_.js} +1 -1
  139. package/dist/client/assets/{reset-password-DgTyqBxV.js → reset-password-Duvtf1jV.js} +1 -1
  140. package/dist/client/assets/{roles-fAEk-7yD.js → roles-A5_ymSQV.js} +1 -1
  141. package/dist/client/assets/{scroll-area-NHg75EXM.js → scroll-area-CHLEJhKV.js} +1 -1
  142. package/dist/client/assets/{search-input-Co7OLTCa.js → search-input-muDNy6Ln.js} +1 -1
  143. package/dist/client/assets/{secrets-DjFyccFn.js → secrets-NBDgnL_7.js} +1 -1
  144. package/dist/client/assets/{sections-editor-8vNJbKih.js → sections-editor-BOCIkcbA.js} +1 -1
  145. package/dist/client/assets/{select-neJjS-sd.js → select-BrXsgaQw.js} +1 -1
  146. package/dist/client/assets/{select-model-C5-1Nf3S.js → select-model-I66VA05Y.js} +1 -1
  147. package/dist/client/assets/{seo-editor-CQNmoHPg.js → seo-editor-DgrFPKLm.js} +1 -1
  148. package/dist/client/assets/{settings-layout-Bq29dQXX.js → settings-layout-BHHlMr6X.js} +1 -1
  149. package/dist/client/assets/{settings-section-CDE63k2k.js → settings-section-DJLIT0a7.js} +1 -1
  150. package/dist/client/assets/{sheet-5r4gvmz4.js → sheet-X5a6kIzZ.js} +1 -1
  151. package/dist/client/assets/{shell-controls-D-HV2pZq.js → shell-controls-jA-KpHgH.js} +1 -1
  152. package/dist/client/assets/shell-layout-D7I7yjNX.js +1 -0
  153. package/dist/client/assets/{shell-route-loading-DsOqPmRX.js → shell-route-loading-DLaAxBcg.js} +1 -1
  154. package/dist/client/assets/{sidebar-X-9G9EvR.js → sidebar-Cotph9GB.js} +1 -1
  155. package/dist/client/assets/{skeleton-BZmNkJzm.js → skeleton-B7EgfrzJ.js} +1 -1
  156. package/dist/client/assets/{sortable.esm-CF7laJH4.js → sortable.esm-Bq0cxJFG.js} +1 -1
  157. package/dist/client/assets/{sso-BK7eY86R.js → sso-DIe8zGS9.js} +1 -1
  158. package/dist/client/assets/{store-CNNPxbb2.js → store-CcJfrtts.js} +1 -1
  159. package/dist/client/assets/store-registry-BVbGNn8k.js +2 -0
  160. package/dist/client/assets/{studio-tools-D0ivYLyr.js → studio-tools-CmzCyBSU.js} +1 -1
  161. package/dist/client/assets/{switch-pC1-GX3d.js → switch-q9ZAafWN.js} +1 -1
  162. package/dist/client/assets/{table-CE8mNTWi.js → table-DA_NVnEC.js} +1 -1
  163. package/dist/client/assets/{tabs-mXxKVCyL.js → tabs-trrgBSsE.js} +1 -1
  164. package/dist/client/assets/{task-status-URAtGr6i.js → task-status-DYJYBWK3.js} +1 -1
  165. package/dist/client/assets/{textarea-EExQ_9H4.js → textarea-CF_i2Emn.js} +1 -1
  166. package/dist/client/assets/{toggle-group-B1Y3vdU4.js → toggle-group--JnydyBd.js} +1 -1
  167. package/dist/client/assets/{toolbar-DCRlrcKI.js → toolbar-CFklUh7K.js} +1 -1
  168. package/dist/client/assets/{toolbar-icon-button-BVVbHoc7.js → toolbar-icon-button-CREWlh5Z.js} +1 -1
  169. package/dist/client/assets/{tools-list-Dg1n34t2.js → tools-list-BWRoiOhb.js} +1 -1
  170. package/dist/client/assets/{tooltip-AP6mu2Do.js → tooltip-BD_hqNMT.js} +1 -1
  171. package/dist/client/assets/{types-CbEn8FkC.js → types-DPAYBgv7.js} +1 -1
  172. package/dist/client/assets/{use-ai-providers-f1eJK-kn.js → use-ai-providers-AChSiauM.js} +1 -1
  173. package/dist/client/assets/{use-automations-Dzb7eJ_x.js → use-automations-CQFMa_xu.js} +1 -1
  174. package/dist/client/assets/{use-capability-Dd2n6N0i.js → use-capability-BDE4nswa.js} +1 -1
  175. package/dist/client/assets/{use-clock-tick-CVbq_r0l.js → use-clock-tick-epCV0GEa.js} +1 -1
  176. package/dist/client/assets/{use-collections-6pmiM0Qb.js → use-collections-FInS6wZz.js} +1 -1
  177. package/dist/client/assets/{use-connection-COqYPxZz.js → use-connection-BxRtoFu6.js} +1 -1
  178. package/dist/client/assets/{use-copy-Bwnp2CVs.js → use-copy-BxgG1adZ.js} +1 -1
  179. package/dist/client/assets/{use-create-virtual-mcp-CNpngIKw.js → use-create-virtual-mcp-CiJqon6J.js} +1 -1
  180. package/dist/client/assets/{use-debounced-autosave-BAzJX42Z.js → use-debounced-autosave-BesIuXJ2.js} +1 -1
  181. package/dist/client/assets/{use-debounced-value-cb2W_ITw.js → use-debounced-value-B3ccLn0n.js} +1 -1
  182. package/dist/client/assets/{use-decopilot-events-BW75euWo.js → use-decopilot-events-DoA4Dj8r.js} +1 -1
  183. package/dist/client/assets/{use-delete-connection-CtZBvQEi.js → use-delete-connection-CpYK1Pvo.js} +1 -1
  184. package/dist/client/assets/{use-file-configs-Bud6_vwO.js → use-file-configs-BMzJEODP.js} +1 -1
  185. package/dist/client/assets/{use-infinite-scroll-CT70Yzl7.js → use-infinite-scroll-CaP-AfaJ.js} +1 -1
  186. package/dist/client/assets/{use-join-requests-Cqn8c-p-.js → use-join-requests-TsGNMd2k.js} +1 -1
  187. package/dist/client/assets/{use-mcp-client-B7wTW6Za.js → use-mcp-client-D-3djHEd.js} +1 -1
  188. package/dist/client/assets/{use-mcp-prompts-BYKvWRs7.js → use-mcp-prompts-C7PCZmCf.js} +1 -1
  189. package/dist/client/assets/{use-mcp-tools-R4ecAJwu.js → use-mcp-tools-4b8tmekN.js} +1 -1
  190. package/dist/client/assets/{use-members-uN-CIzro.js → use-members-BkG6R_Ms.js} +1 -1
  191. package/dist/client/assets/{use-mobile-DUjtY1Or.js → use-mobile-4O24ZFvZ.js} +1 -1
  192. package/dist/client/assets/{use-navigate-to-agent-CCsB3ZB_.js → use-navigate-to-agent-dQ_9J_2Z.js} +1 -1
  193. package/dist/client/assets/{use-org-auth-client-BvnffwO5.js → use-org-auth-client-RcUHQqk5.js} +1 -1
  194. package/dist/client/assets/{use-org-fs-C4gEIpOa.js → use-org-fs-uLrDtVeE.js} +1 -1
  195. package/dist/client/assets/{use-org-sso-UVp5OsHW.js → use-org-sso-BTHPNY6i.js} +1 -1
  196. package/dist/client/assets/{use-organization-roles-B5xSJ3K5.js → use-organization-roles-CuhlCWMC.js} +1 -1
  197. package/dist/client/assets/{use-organization-settings-C9fqfs_P.js → use-organization-settings-4R0yhMfM.js} +1 -1
  198. package/dist/client/assets/{use-registry-connections-xn3NRt1I.js → use-registry-connections-hLJGRrY-.js} +1 -1
  199. package/dist/client/assets/{use-secrets-B1Y6lxEc.js → use-secrets-BsrVmEdZ.js} +1 -1
  200. package/dist/client/assets/{use-status-sounds-zZf0duMU.js → use-status-sounds-Bn5JSQLC.js} +1 -1
  201. package/dist/client/assets/{use-view-mode-rzzoxJSf.js → use-view-mode-Cof9K_JB.js} +1 -1
  202. package/dist/client/assets/{use-virtual-mcp-CKtNavH6.js → use-virtual-mcp-BOgjhoey.js} +1 -1
  203. package/dist/client/assets/useInfiniteQuery-DQxcwnxb.js +1 -0
  204. package/dist/client/assets/useSuspenseInfiniteQuery--Vx6AgQ4.js +1 -0
  205. package/dist/client/assets/{useSuspenseQueries-erPqJTOK.js → useSuspenseQueries-CWZVI1nR.js} +1 -1
  206. package/dist/client/assets/variant-calendar-DMinPkMh.js +1 -0
  207. package/dist/client/assets/{view-mode-toggle-BsTJiBtn.js → view-mode-toggle-C2E71WnX.js} +1 -1
  208. package/dist/client/index.html +2 -2
  209. package/dist/server/cli.js +287 -287
  210. package/dist/server/server.js +244 -244
  211. package/package.json +1 -1
  212. package/dist/client/assets/collection-detail-BXB7pr1D.js +0 -1
  213. package/dist/client/assets/index-BcXb7VeZ.css +0 -1
  214. package/dist/client/assets/index-CgNNkRrj.js +0 -1
  215. package/dist/client/assets/index-hCkkO38W.js +0 -1
  216. package/dist/client/assets/page-seo-sheet-DDy6pvD9.js +0 -1
  217. package/dist/client/assets/project-app-view-Cn00jw84.js +0 -1
  218. package/dist/client/assets/record-editor-otBpum8f.js +0 -1
  219. package/dist/client/assets/registry-De9FQA6w.js +0 -2
  220. package/dist/client/assets/shell-layout-B6f6Mezi.js +0 -1
  221. package/dist/client/assets/store-registry-ByfWDZq4.js +0 -2
  222. package/dist/client/assets/useInfiniteQuery-Cy3rKkmY.js +0 -1
  223. package/dist/client/assets/useSuspenseInfiniteQuery-AFWRY55D.js +0 -1
  224. package/dist/client/assets/variant-calendar-B-Aqso_O.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decocms",
3
- "version": "4.10.0",
3
+ "version": "4.11.1",
4
4
  "description": "Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- import{c as y,j as t,B as F,i as X,o as Ge,s as se,E as Pe,r as T,D as ie,p as Qe,l as V,bf as Ye,u as Xe,G,t as Ze,e as ae,b1 as ke}from"./index-BK387j8D.js";import{E as Ee}from"./empty-state-DW1Hxncl.js";import{u as et,a as Ae}from"./use-collections-6pmiM0Qb.js";import{u as ce}from"./use-mcp-client-B7wTW6Za.js";import{F as ne,a as tt,b as de,d as me}from"./form-CXezR26M.js";import{I as ue}from"./input-DvLfRoZW.js";import{T as re}from"./textarea-EExQ_9H4.js";import{a as st,b as nt,V as xe,O as ot,M as lt}from"./index-DwFgoCov.js";import{an as rt,z as it,ac as at,ao as ct,a0 as dt,ap as mt,L as be}from"./agent-icon-BM8MQ5be.js";import{g as ut,M as xt,a as Ne}from"./types-CbEn8FkC.js";import{A as pt,a as ft,b as ht}from"./alert-RaqgzwNf.js";import{S as ve,a as Se,b as ye,c as we,d as oe}from"./select-neJjS-sd.js";import{c as gt,T as Ce,a as Ie,b as $e}from"./tooltip-AP6mu2Do.js";import{i as jt}from"./AlertCircle-B9i_x3yX.js";import{s as bt}from"./Stars02-D8az_5Af.js";import{a as Nt}from"./Eye-DJjniuqY.js";import{i as vt}from"./Play-An8HsyAi.js";import{i as St}from"./ChevronRight-CDn6HuCQ.js";import{g as yt}from"./connection-slug-eyAPH6o3.js";import{u as wt,T as Ct}from"./tools-list-Dg1n34t2.js";import{a as Oe,u as Re}from"./use-connection-COqYPxZz.js";import{a as It}from"./use-mcp-tools-R4ecAJwu.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as Te}from"./integration-icon-BWhOzvug.js";import{i as Tt,l as Pt}from"./chat-context-PzKbUAil.js";import{b as kt}from"./shell-layout-B6f6Mezi.js";import{M as Et}from"./monaco-editor-CA9h_ekf.js";import{n as At}from"./XCircle-7nuhx8NX.js";import"./auth-BU0GeO8h.js";import"./label-DoALhGxW.js";import"./index-Bb1TAV4I.js";import"./sidebar-X-9G9EvR.js";import"./LayoutLeft-BMp-06Ch.js";import"./use-mobile-DUjtY1Or.js";import"./sheet-5r4gvmz4.js";import"./X-Dq3oJiz6.js";import"./ZoomOut-CLFft6BA.js";import"./Key01-BiZk1T91.js";import"./extract-connection-data-DhnwqdMi.js";import"./use-registry-connections-xn3NRt1I.js";import"./use-organization-settings-C9fqfs_P.js";import"./studio-tools-D0ivYLyr.js";import"./Plus-D3xgmWdX.js";import"./index-tteI6gsC.js";import"./index-CQr8eIPX.js";import"./index-BZUEFC59.js";import"./popover-DQyFV8gm.js";import"./use-virtual-mcp-CKtNavH6.js";import"./ChevronUp-CFXuZkVg.js";import"./SearchMd-BYsRf8JG.js";import"./Users03-CCVhW9kg.js";import"./use-create-virtual-mcp-CNpngIKw.js";import"./use-navigate-to-agent-CCsB3ZB_.js";import"./Tool01-B4amg9yB.js";import"./SwitchHorizontal01-DHUuncY2.js";import"./Settings02-CPxYREBE.js";import"./ArrowUpRight-cF0mnN41.js";import"./ZapSquare-CL8vn24R.js";import"./CheckCircle-zzRIg2zR.js";import"./ChevronDown-D4rBo5Cd.js";import"./DotsVertical-CyO7wZv3.js";import"./Globe01-Do2q7EuB.js";import"./FilterLines-C7d-9ZQk.js";import"./Star01-z6-lfdui.js";import"./Globe04-Mvw3976B.js";import"./HardDrive-Ci17wnKW.js";import"./LinkExternal01-BIEuCHKR.js";import"./Monitor01-DNKFU3PW.js";import"./Sun-CCi4P6Lh.js";import"./Palette-CB1NQWQN.js";import"./SearchLg-BYw4LhiQ.js";import"./Shield01-Dr2T7xLf.js";import"./Stars01-ZkDAuQwr.js";import"./Trash01-BcusIWqe.js";import"./Upload01-Dj1G7JBU.js";import"./User01-NcvWezb3.js";import"./Users01-CbnVd6yD.js";import"./XClose-Bqzfjmh3.js";import"./Zap-BNW86-w0.js";import"./mcp-oauth-DvrxuFpt.js";import"./badge-KNqQ-xkh.js";import"./hooks-BxVsJBlY.js";import"./decopilot-sse-pool-DOCSJwAs.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-f1eJK-kn.js";import"./use-decopilot-events-BW75euWo.js";import"./tab-id-AX1D_RMI.js";import"./avatar-BP2FzYvw.js";import"./dialog-C45rhbs4.js";import"./alert-dialog-BvMgbTr9.js";import"./required-auth-layout-w72qbqCL.js";import"./use-org-sso-UVp5OsHW.js";import"./index-DW2ObUy5.js";function Ot(s){const e=y.c(15),{onSave:o,onUndo:n,isDirty:l,isSaving:r,saveLabel:a,undoLabel:c}=s,i=a===void 0?"Save":a,u=c===void 0?"Undo":c;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(rt,{size:14}),e[0]=x):x=e[0];let m;e[1]!==r||e[2]!==n||e[3]!==u?(m=t.jsxs(F,{variant:"outline",size:"sm",onClick:n,disabled:r,"aria-label":u,children:[x,u]}),e[1]=r,e[2]=n,e[3]=u,e[4]=m):m=e[4];let p;e[5]!==r?(p=r?t.jsx(X,{size:14,className:"animate-spin"}):t.jsx(it,{size:14}),e[5]=r,e[6]=p):p=e[6];let f;e[7]!==r||e[8]!==o||e[9]!==i||e[10]!==p?(f=t.jsxs(F,{variant:"default",size:"sm",onClick:o,disabled:r,"aria-label":i,children:[p,i]}),e[7]=r,e[8]=o,e[9]=i,e[10]=p,e[11]=f):f=e[11];let g;return e[12]!==m||e[13]!==f?(g=t.jsxs(t.Fragment,{children:[m,f]}),e[12]=m,e[13]=f,e[14]=g):g=e[14],g}Ge({title:se().min(1),description:se().nullable(),body:se()});function le(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Rt(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(n=>n==="mcps"),o=e>=0?s[e+1]:void 0;return o?decodeURIComponent(o):void 0}function _t(s){const e=y.c(13),{form:o}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=n):n=e[0];let l;e[1]!==o.control?(l=t.jsxs("div",{className:"flex flex-col gap-4",children:[n,t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(ne,{control:o.control,name:"title",render:Mt}),t.jsx(ne,{control:o.control,name:"description",render:zt})]})]}),e[1]=o.control,e[2]=l):l=e[2];let r,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),a=t.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=r,e[4]=a):(r=e[3],a=e[4]);let c;e[5]!==o.control?(c=t.jsxs("div",{className:"flex flex-col gap-2",children:[r,a,t.jsx(ne,{control:o.control,name:"body",render:Dt})]}),e[5]=o.control,e[6]=c):c=e[6];let i;e[7]!==l||e[8]!==c?(i=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[l,c]}),e[7]=l,e[8]=c,e[9]=i):i=e[9];let u;return e[10]!==o||e[11]!==i?(u=t.jsx(tt,{...o,children:i}),e[10]=o,e[11]=i,e[12]=u):u=e[12],u}function Dt(s){const{field:e}=s;return t.jsx(de,{children:t.jsx(me,{children:t.jsx(re,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function zt(s){const{field:e}=s;return t.jsxs(de,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),t.jsx(me,{children:t.jsx(ue,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Mt(s){const{field:e}=s;return t.jsxs(de,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),t.jsx(me,{children:t.jsx(ue,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Lt(s){const e=y.c(36),{providerId:o,promptId:n}=s,{org:l}=ie(),r=o||null;let a;e[0]!==l.id||e[1]!==l.slug||e[2]!==r?(a={connectionId:r,orgId:l.id,orgSlug:l.slug},e[0]=l.id,e[1]=l.slug,e[2]=r,e[3]=a):a=e[3];const c=ce(a),i=et(o,"PROMPT",n,c),u=Ae(o,"PROMPT",c),x=u.update.isPending;let m;e[4]!==i?(m=i?{title:i.title,description:i.description??null,body:le(i)}:void 0,e[4]=i,e[5]=m):m=e[5];let p;e[6]!==m?(p={values:m},e[6]=m,e[7]=p):p=e[7];const f=Qe(p);let g;e[8]!==f||e[9]!==i?(g=()=>{i&&f.reset({title:i.title,description:i.description??null,body:le(i)})},e[8]=f,e[9]=i,e[10]=g):g=e[10];const S=g;let I;e[11]!==u.update||e[12]!==f||e[13]!==n?(I=f.handleSubmit(async N=>{const A=await u.update.mutateAsync({id:n,data:{title:N.title,description:N.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:N.body}}]}});f.reset({title:A.title,description:A.description??null,body:le(A)})}),e[11]=u.update,e[12]=f,e[13]=n,e[14]=I):I=e[14];const R=I;if(!i){let N;return e[15]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[15]=N):N=e[15],N}let $;e[16]!==i.title?($=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:i.title}),e[16]=i.title,e[17]=$):$=e[17];let E;e[18]!==i.description?(E=i.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:i.description})]}):null,e[18]=i.description,e[19]=E):E=e[19];let P;e[20]!==$||e[21]!==E?(P=t.jsx(nt,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[$,E]})}),e[20]=$,e[21]=E,e[22]=P):P=e[22];let b;e[23]!==R?(b=()=>{R()},e[23]=R,e[24]=b):b=e[24];let w;e[25]!==f.formState.isDirty||e[26]!==x||e[27]!==S||e[28]!==b?(w=t.jsx(st,{children:t.jsx(Ot,{onSave:b,onUndo:S,isDirty:f.formState.isDirty,isSaving:x})}),e[25]=f.formState.isDirty,e[26]=x,e[27]=S,e[28]=b,e[29]=w):w=e[29];let C;e[30]!==f?(C=t.jsx("div",{className:"h-full",children:t.jsx(_t,{form:f})}),e[30]=f,e[31]=C):C=e[31];let k;return e[32]!==w||e[33]!==C||e[34]!==P?(k=t.jsxs(xe,{children:[P,w,C]}),e[32]=w,e[33]=C,e[34]=P,e[35]=k):k=e[35],k}function Ut(s){const e=y.c(4),{itemId:o}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Rt(),e[0]=n):n=e[0];const l=n;if(!l){let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=a):a=e[1],a}let r;return e[2]!==o?(r=t.jsx(Pe,{children:t.jsx(T.Suspense,{fallback:null,children:t.jsx(Lt,{providerId:l,promptId:o})})}),e[2]=o,e[3]=r):r=e[3],r}function _e(s){const e=y.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let l;e[3]!==o?(l=V("min-w-0 overflow-hidden",o),e[3]=o,e[4]=l):l=e[4];let r;return e[5]!==n||e[6]!==l?(r=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:l,...n}),e[5]=n,e[6]=l,e[7]=r):r=e[7],r}function De(s){const e=y.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let l;e[3]!==o?(l=V("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",o),e[3]=o,e[4]=l):l=e[4];let r;return e[5]!==n||e[6]!==l?(r=t.jsx("ol",{"data-slot":"breadcrumb-list",className:l,...n}),e[5]=n,e[6]=l,e[7]=r):r=e[7],r}function q(s){const e=y.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let l;e[3]!==o?(l=V("inline-flex items-center gap-1.5 min-w-0",o),e[3]=o,e[4]=l):l=e[4];let r;return e[5]!==n||e[6]!==l?(r=t.jsx("li",{"data-slot":"breadcrumb-item",className:l,...n}),e[5]=n,e[6]=l,e[7]=r):r=e[7],r}function Q(s){const e=y.c(10);let o,n,l;e[0]!==s?({asChild:o,className:n,...l}=s,e[0]=s,e[1]=o,e[2]=n,e[3]=l):(o=e[1],n=e[2],l=e[3]);const r=o?Ye:"a";let a;e[4]!==n?(a=V("hover:text-foreground transition-colors truncate",n),e[4]=n,e[5]=a):a=e[5];let c;return e[6]!==r||e[7]!==l||e[8]!==a?(c=t.jsx(r,{"data-slot":"breadcrumb-link",className:a,...l}),e[6]=r,e[7]=l,e[8]=a,e[9]=c):c=e[9],c}function ze(s){const e=y.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let l;e[3]!==o?(l=V("text-foreground font-medium truncate",o),e[3]=o,e[4]=l):l=e[4];let r;return e[5]!==n||e[6]!==l?(r=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:l,...n}),e[5]=n,e[6]=l,e[7]=r):r=e[7],r}function Y(s){const e=y.c(12);let o,n,l;e[0]!==s?({children:o,className:n,...l}=s,e[0]=s,e[1]=o,e[2]=n,e[3]=l):(o=e[1],n=e[2],l=e[3]);let r;e[4]!==n?(r=V("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",n),e[4]=n,e[5]=r):r=e[5];let a;e[6]!==o?(a=o??t.jsx(St,{}),e[6]=o,e[7]=a):a=e[7];let c;return e[8]!==l||e[9]!==r||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:r,...l,children:a}),e[8]=l,e[9]=r,e[10]=a,e[11]=c):c=e[11],c}const Bt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ft(s){const e=y.c(11),{toolName:o,connectionId:n,siblings:l,onSelectInstance:r,onBack:a}=s;let c;e[0]!==n?(c={connectionId:n},e[0]=n,e[1]=c):c=e[1];const i=wt(c);if(!i.isAuthenticated){let m;return e[2]!==i.supportsOAuth||e[3]!==a?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:i.supportsOAuth?t.jsx(ot,{onAuthenticate:()=>a(),buttonText:"Go back to authenticate"}):t.jsx(lt,{hasReadme:!1})}),e[2]=i.supportsOAuth,e[3]=a,e[4]=m):m=e[4],m}const u=`${n}:${o}`;let x;return e[5]!==n||e[6]!==r||e[7]!==l||e[8]!==u||e[9]!==o?(x=t.jsx(Vt,{toolName:o,connectionId:n,siblings:l,onSelectInstance:r},u),e[5]=n,e[6]=r,e[7]=l,e[8]=u,e[9]=o,e[10]=x):x=e[10],x}function Vt({toolName:s,connectionId:e,siblings:o,onSelectInstance:n}){const{replayId:l}=Xe({strict:!1}),r=(()=>{if(!l)return null;const d=`replay-${l}`,h=sessionStorage.getItem(d);if(!h)return null;sessionStorage.removeItem(d);try{return JSON.parse(h)}catch{return null}})(),a=(()=>{if(!r)return null;const d={};for(const[h,v]of Object.entries(r))v!==null&&typeof v=="object"?d[h]=JSON.stringify(v,null,2):d[h]=v;return d})(),[c,i]=T.useState(a??{}),[u,x]=T.useState(r?JSON.stringify(r,null,2):"{}"),[m,p]=T.useState(null),[f,g]=T.useState(null),[S,I]=T.useState(null),[R,$]=T.useState(null),[E,P]=T.useState(!1),[b,w]=T.useState(null),{org:C}=ie(),k=Oe(e),N=Tt(),A=Pt(),{setChatOpen:U}=kt(),M=`${e}:${s}`,_=ce({connectionId:e,orgId:C.id,orgSlug:C.slug}),L=It({client:_}),j=L.data?.tools?.find(d=>d.name===s),O=ut(j?._meta),J=d=>{if(!N)return;const h=$t(d.content);h.content.length>0&&(U(!0),N.sendMessage({tiptapDoc:h}))},[D,Z]=T.useState("json"),[Me,Le]=T.useState(!1);O&&!Me&&(Z("ui"),Le(!0));const pe=j?.inputSchema?.properties,fe=pe?Object.keys(pe):[],H=fe.length>0,K={};if(H&&j?.inputSchema?.properties)for(const d of fe)K[d]=j.inputSchema.required?.includes(d)?"":void 0;const ee=d=>Object.prototype.hasOwnProperty.call(c,d),Ue=async()=>{P(!0),$(null),p(null),g(null),I(null),w(null);const d=performance.now();try{if(!_)throw new Error("MCP client is not available");const h=H?{...K,...c}:(()=>{const z=u.trim();if(!z)return{};const B=JSON.parse(z);if(B&&typeof B=="object")return B;throw new Error("Raw JSON input must be an object.")})();H&&j?.inputSchema?.properties&&Object.entries(j.inputSchema.properties).forEach(([z,B])=>{if((B.type==="object"||B.type==="array")&&typeof h[z]=="string")try{h[z]=JSON.parse(h[z])}catch{}else if((B.type==="number"||B.type==="integer")&&typeof h[z]=="string"&&h[z]!==""){const je=Number(h[z]);Number.isNaN(je)||(h[z]=je)}});const v=await _.callTool({name:s,arguments:h}),W=v.structuredContent??v,He=performance.now(),Ke=Math.round(He-d);p(W),g(v),I(h);const We=JSON.stringify(W),ge=new TextEncoder().encode(We).length;w({duration:`${Ke}ms`,bytes:`${ge} bytes`,tokens:`~${Math.ceil(ge/4)} tokens`,cost:"$0.0000"})}catch(h){const v=h instanceof Error?h.message:String(h);$(v||"Unknown error occurred");const W=performance.now();w({duration:`${Math.round(W-d)}ms`})}finally{P(!1)}},te=(d,h)=>{i(v=>({...v,[d]:h}))},Be=()=>{p(null),g(null),I(null),$(null),w(null)},Fe=j?.name??Bt(s),Ve=t.jsx(_e,{children:t.jsxs(De,{children:[t.jsx(q,{children:t.jsx(Q,{asChild:!0,children:t.jsx(G,{to:"/$org/settings/connections",params:{org:C.slug},children:"Connections"})})}),t.jsx(Y,{}),k&&t.jsxs(t.Fragment,{children:[t.jsx(q,{children:t.jsx(Q,{asChild:!0,children:t.jsx(G,{to:"/$org/settings/connections/$appSlug",params:{org:C.slug,appSlug:yt(k)},search:{tab:"tools"},children:k.title})})}),t.jsx(Y,{})]}),t.jsx(q,{children:t.jsx(ze,{children:Fe})})]})}),he=o.length>1&&t.jsxs(ve,{value:e,onValueChange:n,children:[t.jsx(Se,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(ye,{})}),t.jsx(we,{children:o.map(d=>t.jsx(oe,{value:d.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Te,{icon:d.icon,name:d.title,size:"xs",className:"shrink-0"}),d.title]})},d.id))})]}),Je=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),j?.inputSchema?.required&&j.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),t.jsx("div",{className:"space-y-4",children:H&&j?.inputSchema?.properties?Object.entries(j.inputSchema.properties).map(([d,h])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[d,j.inputSchema?.required?.includes(d)&&t.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:h.type})]}),h.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:h.description}),h.type==="object"||h.type==="array"?t.jsx(re,{className:"font-mono text-xs",value:ee(d)?c[d]??"":K[d]??"",onChange:v=>te(d,v.target.value),placeholder:`Enter ${d} as JSON...`,rows:3}):h.type==="boolean"?t.jsxs(ve,{value:ee(d)?String(c[d]??""):"",onValueChange:v=>te(d,v==="true"),children:[t.jsx(Se,{children:t.jsx(ye,{placeholder:"Select true or false..."})}),t.jsxs(we,{children:[t.jsx(oe,{value:"true",children:"true"}),t.jsx(oe,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:ee(d)?c[d]??"":K[d]??"",onChange:v=>te(d,v.target.value),placeholder:`Enter ${d}...`})]},d)):j?.inputSchema&&!H?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),t.jsx(re,{className:"font-mono text-xs min-h-[120px]",value:u,onChange:d=>x(d.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:E?t.jsxs(F,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Be,children:[t.jsx(at,{className:"h-3.5 w-3.5"}),"Cancel"]}):t.jsxs(F,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Ue,children:[t.jsx(vt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})})]}),qe=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(bt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ct,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(dt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),O&&t.jsx(gt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Ce,{children:[t.jsx(Ie,{asChild:!0,children:t.jsx(F,{size:"icon",variant:D==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>Z("ui"),children:t.jsx(mt,{size:14})})}),t.jsx($e,{children:"Interactive view"})]}),t.jsxs(Ce,{children:[t.jsx(Ie,{asChild:!0,children:t.jsx(F,{size:"icon",variant:D==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>Z("json"),children:t.jsx(be,{size:14})})}),t.jsx($e,{children:"JSON view"})]})]})})]})]}),R&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(pt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(jt,{className:"h-4 w-4"}),t.jsx(ft,{className:"mb-0",children:"Execution Failed"})]}),t.jsx(ht,{className:"text-xs text-destructive",children:R})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:O&&D==="ui"&&_?t.jsx(T.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:t.jsx(xt,{resourceURI:O,toolInfo:j?{tool:j}:void 0,toolInput:S??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:Ne.view.minHeight,maxHeight:Ne.view.maxHeight,client:_,onMessage:J,onUpdateModelContext:d=>A?.setAppContext(M,d),onTeardown:()=>A?.clearAppContext(M),className:"h-full"})}):m?t.jsxs(t.Fragment,{children:[t.jsx(Et,{code:JSON.stringify(m,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(F,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(m,null,2)),Ze.success("Copied to clipboard")},children:t.jsx(Nt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(be,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]});return t.jsx(xe,{breadcrumb:Ve,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Te,{icon:k?.icon||null,name:k?.title||s,size:"xl",className:"shrink-0"}),t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[L.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):L.isLoading?t.jsx(X,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:L.isSuccess?"ready":L.isLoading?"connecting":"error"})]}),t.jsx(Ct,{annotations:j?.annotations,_meta:j?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:he})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:j?.description||"No description available"})]}),o.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:"Instance"}),he]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Je}),qe]})})]})})}function Jt(s){const e=y.c(10),{itemId:o,siblings:n,onBack:l}=s,[r,a]=T.useState(n[0]?.id??"");let c;e[0]!==r||e[1]!==n?(c=n.find(p=>p.id===r)?.id??n[0]?.id??"",e[0]=r,e[1]=n,e[2]=c):c=e[2];const i=c;if(!Oe(i||void 0)||!i){let p;return e[3]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[t.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[3]=p):p=e[3],p}let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{size:32,className:"animate-spin text-muted-foreground"})}),e[4]=x):x=e[4];let m;return e[5]!==i||e[6]!==l||e[7]!==n||e[8]!==o?(m=t.jsx(T.Suspense,{fallback:x,children:t.jsx(Ft,{toolName:o,connectionId:i,siblings:n,onSelectInstance:a,onBack:l})}),e[5]=i,e[6]=l,e[7]=n,e[8]=o,e[9]=m):m=e[9],m}function qt(s){const e=y.c(21),{icon:o,illustration:n,title:l,description:r,buttonProps:a,buttonComponent:c,className:i,children:u}=s;let x;e[0]!==i?(x=V("flex flex-col items-center justify-center py-16 text-center",i),e[0]=i,e[1]=x):x=e[1];let m;e[2]!==o||e[3]!==n?(m=n?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:n}):o?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:o}):null,e[2]=o,e[3]=n,e[4]=m):m=e[4];let p;e[5]!==l?(p=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:l}),e[5]=l,e[6]=p):p=e[6];let f;e[7]!==r?(f=r&&t.jsx("div",{className:"text-sm text-muted-foreground",children:r}),e[7]=r,e[8]=f):f=e[8];let g;e[9]!==p||e[10]!==f?(g=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[p,f]}),e[9]=p,e[10]=f,e[11]=g):g=e[11];let S;e[12]!==c||e[13]!==a?(S=(c??a)&&t.jsx("div",{className:"mt-4",children:c??(a&&t.jsx(F,{size:"sm",className:V(a?.className),...a}))}),e[12]=c,e[13]=a,e[14]=S):S=e[14];let I;return e[15]!==u||e[16]!==x||e[17]!==m||e[18]!==g||e[19]!==S?(I=t.jsxs("div",{className:x,children:[m,g,S,u]}),e[15]=u,e[16]=x,e[17]=m,e[18]=g,e[19]=S,e[20]=I):I=e[20],I}const Ht={prompt:Ut};function Kt(){const s=y.c(9),e=ke();let o;s[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=o):o=s[0];const n=ae(o),l=decodeURIComponent(n.itemId);let r;s[1]!==n.appSlug?(r={slug:n.appSlug},s[1]=n.appSlug,s[2]=r):r=s[2];const a=Re(r);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const i=c,u=Wt;let x;return s[5]!==i||s[6]!==l||s[7]!==a?(x=t.jsx(Jt,{itemId:l,siblings:a,onBack:i,onUpdate:u}),s[5]=i,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}async function Wt(s){return Promise.resolve()}function Gt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Qt(){const s=y.c(41),e=ke();let o;s[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=o):o=s[0];const n=ae(o),l=decodeURIComponent(n.collectionName),r=decodeURIComponent(n.itemId);let a;s[1]!==e.history?(a=()=>{e.history.back()},s[1]=e.history,s[2]=a):a=s[2];const c=a,{org:i}=ie();let u;s[3]!==n.appSlug?(u={slug:n.appSlug},s[3]=n.appSlug,s[4]=u):u=s[4];const m=Re(u)[0]??null,p=m?.id??"",f=p||"no-connection",g=p??null;let S;s[5]!==i.id||s[6]!==i.slug||s[7]!==g?(S={connectionId:g,orgId:i.id,orgSlug:i.slug},s[5]=i.id,s[6]=i.slug,s[7]=g,s[8]=S):S=s[8];const I=ce(S),R=Ae(f,l,I);let $;s[9]!==R||s[10]!==r?($=async D=>{r&&await R.update.mutateAsync({id:r,data:D})},s[9]=R,s[10]=r,s[11]=$):$=s[11];const E=$;let P;s[12]!==l?(P=l?.toLowerCase(),s[12]=l,s[13]=P):P=s[13];const b=P,w=b&&Ht[b];let C;s[14]!==l?(C=Gt(l),s[14]=l,s[15]=C):C=s[15];const k=C;let N;s[16]!==i.slug?(N=t.jsx(q,{children:t.jsx(Q,{asChild:!0,children:t.jsx(G,{to:"/$org/settings/connections",params:{org:i.slug},children:"Connections"})})}),s[16]=i.slug,s[17]=N):N=s[17];let A;s[18]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(Y,{}),s[18]=A):A=s[18];let U;s[19]!==l||s[20]!==m||s[21]!==i.slug||s[22]!==n.appSlug?(U=m&&t.jsxs(t.Fragment,{children:[t.jsx(q,{children:t.jsx(Q,{asChild:!0,children:t.jsx(G,{to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:n.appSlug},search:{tab:l},children:m.title})})}),t.jsx(Y,{})]}),s[19]=l,s[20]=m,s[21]=i.slug,s[22]=n.appSlug,s[23]=U):U=s[23];let M;s[24]!==k?(M=t.jsx(q,{children:t.jsx(ze,{children:k})}),s[24]=k,s[25]=M):M=s[25];let _;s[26]!==U||s[27]!==M||s[28]!==N?(_=t.jsx(_e,{children:t.jsxs(De,{children:[N,A,U,M]})}),s[26]=U,s[27]=M,s[28]=N,s[29]=_):_=s[29];const L=_;if(w){let D;return s[30]!==w||s[31]!==c||s[32]!==E||s[33]!==r?(D=t.jsx(w,{itemId:r,onBack:c,onUpdate:E}),s[30]=w,s[31]=c,s[32]=E,s[33]=r,s[34]=D):D=s[34],D}let j;s[35]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(At,{size:36,className:"text-muted-foreground"}),s[35]=j):j=s[35];let O;s[36]!==c?(O=t.jsx(qt,{icon:j,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:c,children:"Go back"}}),s[36]=c,s[37]=O):O=s[37];let J;return s[38]!==L||s[39]!==O?(J=t.jsx(xe,{breadcrumb:L,children:O}),s[38]=L,s[39]=O,s[40]=J):J=s[40],J}function Yt(){const s=y.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const o=ae(e);if(decodeURIComponent(o.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Kt,{}),s[1]=a):a=s[1],a}let r;return s[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Qt,{}),s[2]=r):r=s[2],r}function Ln(){const s=y.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Pe,{children:t.jsx(T.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Yt,{})})}),s[0]=e):e=s[0],e}export{Ln as default};