decocms 4.76.0 → 4.76.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 (236) hide show
  1. package/dist/client/assets/{AlertCircle-BDnE5L4D.js → AlertCircle-BspordpX.js} +1 -1
  2. package/dist/client/assets/{AreaChart-l3IKn5Z0.js → AreaChart-4kMJmgm4.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-dRA5fc_l.js → ArrowUp-BHs6aZEu.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-1HcDS2YR.js → ArrowUpRight-DWb0SHAh.js} +1 -1
  5. package/dist/client/assets/{Check-BtlFZpRz.js → Check-7WIITMAB.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-CKBMR-Fj.js → CheckCircle-BU9eUffg.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-CVgnPA8P.js → ChevronDown-CKvbLNpf.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-C3-A3c3p.js → ChevronRight-C-jwMI0x.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-DkbV0oQl.js → ChevronUp-xEk-Hkjn.js} +1 -1
  10. package/dist/client/assets/{Circle-BJcTGMmq.js → Circle-B-1p1V3u.js} +1 -1
  11. package/dist/client/assets/{Copy01-TiY6JLaT.js → Copy01-j7g0HzRj.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-Vq7gY_eS.js → DotsVertical-D_WbX0qI.js} +1 -1
  13. package/dist/client/assets/{Eye-Bs9xvFgJ.js → Eye-Qig4q8vO.js} +1 -1
  14. package/dist/client/assets/{FilterLines-iSlilwvJ.js → FilterLines-Clx9vkNd.js} +1 -1
  15. package/dist/client/assets/{Flag01-Dy_s1Q0I.js → Flag01-D-v8b8WA.js} +1 -1
  16. package/dist/client/assets/{Globe01-DRdAxLhB.js → Globe01-D8OVqcVm.js} +1 -1
  17. package/dist/client/assets/{Globe04-DSNZl7QO.js → Globe04-Byszod1w.js} +1 -1
  18. package/dist/client/assets/{HardDrive-fr-YHbXr.js → HardDrive-uNiSvuE5.js} +1 -1
  19. package/dist/client/assets/{Key01-ST8RT5SQ.js → Key01-DCLaxXrN.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-CJwMF2HD.js → LayoutLeft-BkkLEygy.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-EAtvM7Sp.js → LinkExternal01-D0e_JnBB.js} +1 -1
  22. package/dist/client/assets/{List-B5QCXbEX.js → List-DBle1pOm.js} +1 -1
  23. package/dist/client/assets/{Monitor01-CKw9I_5x.js → Monitor01-C68LgEUD.js} +1 -1
  24. package/dist/client/assets/{Package-DaABhYqB.js → Package-ArC6w3gk.js} +1 -1
  25. package/dist/client/assets/{Palette-DE08ex5s.js → Palette-CamQAW-l.js} +1 -1
  26. package/dist/client/assets/{Play-DslI2KfH.js → Play-Bo_FQ_Qt.js} +1 -1
  27. package/dist/client/assets/{Plus-B6haYOl6.js → Plus-BEhknaRt.js} +1 -1
  28. package/dist/client/assets/{SearchLg-BXBj2-4c.js → SearchLg-CkHW6FGX.js} +1 -1
  29. package/dist/client/assets/{SearchMd-D55R-iXz.js → SearchMd-BBU4Wq1F.js} +1 -1
  30. package/dist/client/assets/{Settings02-yTQowdAj.js → Settings02-BIYEvLxH.js} +1 -1
  31. package/dist/client/assets/{Shield01-M7iU2kJk.js → Shield01-CaKclxlZ.js} +1 -1
  32. package/dist/client/assets/{Star01-CU852avF.js → Star01-7lVQxn6j.js} +1 -1
  33. package/dist/client/assets/{Stars01-D8sF6iXn.js → Stars01-DoPAiLfG.js} +1 -1
  34. package/dist/client/assets/{Stars02-krLFJFg-.js → Stars02-6rBUSWRT.js} +1 -1
  35. package/dist/client/assets/{Sun-D12Vz4el.js → Sun-Xo-4W0GL.js} +1 -1
  36. package/dist/client/assets/{SwitchHorizontal01-BPk4D9zh.js → SwitchHorizontal01-DonuDjWr.js} +1 -1
  37. package/dist/client/assets/{Tool01-b5WlPVKZ.js → Tool01-BMNmn1yF.js} +1 -1
  38. package/dist/client/assets/{Tool02-DDh8IsFc.js → Tool02-DGufqHHa.js} +1 -1
  39. package/dist/client/assets/{Trash01-Cb_L54d7.js → Trash01-DfkqWioB.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-BdxmF4-n.js → TrendUp01-yN4PrbN-.js} +1 -1
  41. package/dist/client/assets/{Upload01-iEyHSXhx.js → Upload01-BjqchOMa.js} +1 -1
  42. package/dist/client/assets/{User01-DPYDztTi.js → User01-x16Tzx2V.js} +1 -1
  43. package/dist/client/assets/{UserPlus01-DW8Y3gn9.js → UserPlus01-Uz6S8Fjb.js} +1 -1
  44. package/dist/client/assets/{Users01-C5RCoDPo.js → Users01-CpqV9dUM.js} +1 -1
  45. package/dist/client/assets/{Users03-glNtzAIS.js → Users03-C7mz_KdA.js} +1 -1
  46. package/dist/client/assets/{X-Dg6xB81o.js → X-DqSvIURs.js} +1 -1
  47. package/dist/client/assets/{XCircle-C1kBe1WH.js → XCircle-BsaSEJdP.js} +1 -1
  48. package/dist/client/assets/{XClose-DPMx5YwL.js → XClose-BfUy7_Ni.js} +1 -1
  49. package/dist/client/assets/{Zap-mlOsBBaP.js → Zap-28TFXy2W.js} +1 -1
  50. package/dist/client/assets/{ZapSquare-DqO9Fwsk.js → ZapSquare-BA0p6n38.js} +1 -1
  51. package/dist/client/assets/{ZoomOut-CXCZeir4.js → ZoomOut-CrgIEWZv.js} +1 -1
  52. package/dist/client/assets/{access-gate-C8As6OgQ.js → access-gate-B8vNVSDk.js} +1 -1
  53. package/dist/client/assets/{add-section-modal-1Z8IFt3U.js → add-section-modal-BYax8siJ.js} +1 -1
  54. package/dist/client/assets/{agent-icon-BlmPFPm0.js → agent-icon-BMlO9g3f.js} +1 -1
  55. package/dist/client/assets/{agents-list-D9Hx_E90.js → agents-list-CMKpXE8Q.js} +1 -1
  56. package/dist/client/assets/{ai-providers-BScgdwa8.js → ai-providers-DHKrkbAz.js} +1 -1
  57. package/dist/client/assets/{alert-B7RKqRR_.js → alert-BSGXssrw.js} +1 -1
  58. package/dist/client/assets/{alert-dialog-D67rOy6F.js → alert-dialog-Dtszn4Rp.js} +1 -1
  59. package/dist/client/assets/app-editor-Dy9v_kf-.js +1 -0
  60. package/dist/client/assets/{auth-BCy5FAu6.js → auth-DhIYbras.js} +1 -1
  61. package/dist/client/assets/{auth-catchall-mcwJ9JqI.js → auth-catchall-CRq41sCS.js} +1 -1
  62. package/dist/client/assets/{auth-entry-tdnpkOdg.js → auth-entry-aBpNt9KV.js} +1 -1
  63. package/dist/client/assets/{auth-split-layout-BcSzp7SN.js → auth-split-layout-BX87WBBr.js} +1 -1
  64. package/dist/client/assets/{authenticate-and-persist-oauth-BNyx4h6x.js → authenticate-and-persist-oauth-ChFnJYYv.js} +1 -1
  65. package/dist/client/assets/{automation-list-row-Dd1HHifa.js → automation-list-row-CWjgUckd.js} +1 -1
  66. package/dist/client/assets/{automation-runs-Dm3heRb7.js → automation-runs-DHcUjECQ.js} +1 -1
  67. package/dist/client/assets/automations-C5zO-pTH.js +1 -0
  68. package/dist/client/assets/{autosend-DXJJq1Az.js → autosend-CZLKJkBV.js} +1 -1
  69. package/dist/client/assets/{avatar-Ck1hn8zR.js → avatar-DdtddiHF.js} +1 -1
  70. package/dist/client/assets/{badge-Ccg40_Zf.js → badge-JS3YhMut.js} +1 -1
  71. package/dist/client/assets/{block-document-DCJhhVJZ.js → block-document-C7RgqHof.js} +1 -1
  72. package/dist/client/assets/{brand-context-BzaQndKA.js → brand-context-CD3JJFrB.js} +1 -1
  73. package/dist/client/assets/{buckets-BQvhEGxp.js → buckets-CVhgoPiM.js} +1 -1
  74. package/dist/client/assets/{bulk-category-panel-DdwD24LM.js → bulk-category-panel-Cy0BB2fF.js} +1 -1
  75. package/dist/client/assets/{calendar-Cgh9oyJQ.js → calendar-2DG8dvZM.js} +1 -1
  76. package/dist/client/assets/{capability-load-error-Svp9J_dE.js → capability-load-error-D0AccagV.js} +1 -1
  77. package/dist/client/assets/{card-DMp90QVB.js → card-DpjecHY2.js} +1 -1
  78. package/dist/client/assets/{category-editor-XAqAObxc.js → category-editor-upzkvtPp.js} +1 -1
  79. package/dist/client/assets/{chat-context-DzKUrw43.js → chat-context-D0zCFK1M.js} +1 -1
  80. package/dist/client/assets/{checkbox-DNK1Tn8e.js → checkbox-CblPd3Hc.js} +1 -1
  81. package/dist/client/assets/{cli-auth-success-CKhXOukH.js → cli-auth-success-DBrWe-O0.js} +1 -1
  82. package/dist/client/assets/{collection-detail-Cn0VFWbM.js → collection-detail-V02psAZE.js} +1 -1
  83. package/dist/client/assets/{collection-display-button-Cv2NOI3Z.js → collection-display-button-Pbq97oJc.js} +1 -1
  84. package/dist/client/assets/{collection-search-CimAgLSm.js → collection-search-Dvs-LkIv.js} +1 -1
  85. package/dist/client/assets/{collection-table-wrapper-D5EI1Hag.js → collection-table-wrapper-DcJiU6c1.js} +1 -1
  86. package/dist/client/assets/{collection-tabs-Di4P6gkF.js → collection-tabs-CTEKQT9e.js} +1 -1
  87. package/dist/client/assets/{command-Dnfr95q6.js → command-BN9Ept_A.js} +1 -1
  88. package/dist/client/assets/{commerce-onboarding-DTJYGMky.js → commerce-onboarding-WLmZgPnQ.js} +1 -1
  89. package/dist/client/assets/{companions-core-BZL7ZBIl.js → companions-core-CW4X_eqm.js} +1 -1
  90. package/dist/client/assets/{connect-desktop-dialog-Bn2zPyuF.js → connect-desktop-dialog-DKrDKa4d.js} +1 -1
  91. package/dist/client/assets/{connection-card-VhQXdAlB.js → connection-card-Dduj2bdE.js} +1 -1
  92. package/dist/client/assets/{connection-detail-CX1jzsT5.js → connection-detail-C6ZU94xZ.js} +1 -1
  93. package/dist/client/assets/{connection-form-helpers-Cmf8YT8c.js → connection-form-helpers-DKpPvDSN.js} +1 -1
  94. package/dist/client/assets/{connections-C391b5Xc.js → connections-UhpGp-S2.js} +1 -1
  95. package/dist/client/assets/{decopilot-sse-pool-CIIR-fRd.js → decopilot-sse-pool-uJsbj6wS.js} +1 -1
  96. package/dist/client/assets/{dialog-CPPkPiFg.js → dialog-COLQcCRL.js} +1 -1
  97. package/dist/client/assets/{domain-settings-DWpNUlUh.js → domain-settings-BAoaDfdv.js} +1 -1
  98. package/dist/client/assets/{drawer-CFlStxqN.js → drawer-HTdc4YL3.js} +1 -1
  99. package/dist/client/assets/{dropdown-menu-BDRJLlCZ.js → dropdown-menu-DHMJS27m.js} +1 -1
  100. package/dist/client/assets/{empty-state-DWJADMqU.js → empty-state-YCut0sPg.js} +1 -1
  101. package/dist/client/assets/{extract-connection-data-CWws05uY.js → extract-connection-data-B8RjJlbH.js} +1 -1
  102. package/dist/client/assets/{file-explorer-CQUY--6x.js → file-explorer-DzglhtBO.js} +1 -1
  103. package/dist/client/assets/{file-type-icon-B-owX8l7.js → file-type-icon-OzS8T0u4.js} +1 -1
  104. package/dist/client/assets/{files-zpa_zwKb.js → files-CyujDvLN.js} +1 -1
  105. package/dist/client/assets/{form-DtCoPnMd.js → form-BMLTyaPP.js} +1 -1
  106. package/dist/client/assets/{general-xxUjPncV.js → general-GxYcJEzG.js} +1 -1
  107. package/dist/client/assets/{github-repo-picker-DExszVW8.js → github-repo-picker-uyxKPI6q.js} +1 -1
  108. package/dist/client/assets/{hooks-CL9e1Op1.js → hooks-BjdnAe-L.js} +1 -1
  109. package/dist/client/assets/{index-BZmEsnbS.js → index-B5ks997m.js} +1 -1
  110. package/dist/client/assets/{index-BPnGJudG.js → index-BcIFnd0f.js} +1 -1
  111. package/dist/client/assets/{index-DmYM7Ue7.js → index-BheKZ8tD.js} +1 -1
  112. package/dist/client/assets/{index-D3vogo_V.js → index-C2fT-8L6.js} +1 -1
  113. package/dist/client/assets/{index-DTdfq6hT.js → index-CL06la1a.js} +1 -1
  114. package/dist/client/assets/{index-DtFnIqcb.js → index-CNAmaCH3.js} +5 -5
  115. package/dist/client/assets/index-COYy9dBM.css +1 -0
  116. package/dist/client/assets/{index-AMDSiMB0.js → index-D1C9TQ71.js} +1 -1
  117. package/dist/client/assets/{index-B8mW3o_r.js → index-D3iTAL4-.js} +1 -1
  118. package/dist/client/assets/{index-D-cpkwMG.js → index-DPs9SgJd.js} +1 -1
  119. package/dist/client/assets/{index-BJBGu4mM.js → index-DQsrMO1f.js} +1 -1
  120. package/dist/client/assets/{index-B_CL9F3O.js → index-DS4rAqwY.js} +3 -3
  121. package/dist/client/assets/{index-CghNUnKs.js → index-DdJw1Zxw.js} +2 -2
  122. package/dist/client/assets/{index-D_MXZAx-.js → index-KdwK_bqc.js} +1 -1
  123. package/dist/client/assets/{index-DFTdEwma.js → index-rFHHEkal.js} +1 -1
  124. package/dist/client/assets/{index-redirect-Bd7JAVl8.js → index-redirect-CvN8jF5Z.js} +1 -1
  125. package/dist/client/assets/{input-DUfRQEb3.js → input-D5vcQhoL.js} +1 -1
  126. package/dist/client/assets/{integration-icon-CdXUPKZ3.js → integration-icon-BhHODF-u.js} +1 -1
  127. package/dist/client/assets/{invite-member-dialog-DXIm9Hib.js → invite-member-dialog-C5h7Heum.js} +1 -1
  128. package/dist/client/assets/{label-qDMp-M32.js → label-BgZiPLuQ.js} +1 -1
  129. package/dist/client/assets/{layout-CLwQvgXR.js → layout-bf7I011x.js} +1 -1
  130. package/dist/client/assets/{login-Br0TNHnJ.js → login-Dpe63XC5.js} +1 -1
  131. package/dist/client/assets/{mcp-oauth-BHYFKrXL.js → mcp-oauth-BreAtybq.js} +1 -1
  132. package/dist/client/assets/{members-BjUguH7T.js → members-CCZ7zish.js} +1 -1
  133. package/dist/client/assets/{monaco-editor-na2skEtz.js → monaco-editor-DchAWwXC.js} +1 -1
  134. package/dist/client/assets/{monitoring-stats-row-yi4f2RuU.js → monitoring-stats-row-B5kPnbuO.js} +1 -1
  135. package/dist/client/assets/{oauth-callback-NlTjwT0c.js → oauth-callback-CC4lP5CB.js} +1 -1
  136. package/dist/client/assets/{oauth-callback-ai-provider-1_Pb3E8z.js → oauth-callback-ai-provider-DECZg29t.js} +1 -1
  137. package/dist/client/assets/{onboarding-k0YvjoWb.js → onboarding-G2BPtj4H.js} +1 -1
  138. package/dist/client/assets/{org-install-DFMT_9eu.js → org-install-DnGYxys0.js} +1 -1
  139. package/dist/client/assets/{org-layout-C3wVmc8K.js → org-layout-CRWKnMwJ.js} +1 -1
  140. package/dist/client/assets/{organization-choice-cLgEmvpJ.js → organization-choice-CHGhQIiO.js} +1 -1
  141. package/dist/client/assets/{orgs-BiWvZm-S.js → orgs-BtZp7z5r.js} +1 -1
  142. package/dist/client/assets/{page-seo-form-CjwaXLTQ.js → page-seo-form-BLTJtOti.js} +1 -1
  143. package/dist/client/assets/page-seo-sheet-BySrSZBs.js +1 -0
  144. package/dist/client/assets/{popover-D7qlix13.js → popover-DquVr-be.js} +1 -1
  145. package/dist/client/assets/{post-editor-CUH3vyeu.js → post-editor-ibxxgL8G.js} +1 -1
  146. package/dist/client/assets/{primitives-BCbphEsc.js → primitives-BHkbxz43.js} +1 -1
  147. package/dist/client/assets/{profile-YlrFyUCB.js → profile-Cwp4irac.js} +1 -1
  148. package/dist/client/assets/project-app-view-lttHc1Pg.js +1 -0
  149. package/dist/client/assets/record-editor-CG9duDkL.js +1 -0
  150. package/dist/client/assets/redirect-editor-DN38Qy_4.js +1 -0
  151. package/dist/client/assets/registry-BsHzFPUW.js +2 -0
  152. package/dist/client/assets/{registry-layout-BPEhzxDD.js → registry-layout-CehAMgpE.js} +2 -2
  153. package/dist/client/assets/{reports-CqZ9RJgv.js → reports-DNSWa3ug.js} +1 -1
  154. package/dist/client/assets/{require-capability-CjuQ84Cb.js → require-capability-Df20chi2.js} +1 -1
  155. package/dist/client/assets/{required-auth-layout-CdEqo9YR.js → required-auth-layout-BQBGmnFG.js} +1 -1
  156. package/dist/client/assets/{reset-password-Cb63CnfX.js → reset-password-C3Z0-tcR.js} +1 -1
  157. package/dist/client/assets/{roles-Cchtfzup.js → roles-WfYUgxNX.js} +1 -1
  158. package/dist/client/assets/{search-input--8gvO2Gv.js → search-input-CIt36tQq.js} +1 -1
  159. package/dist/client/assets/{secrets-C7z5iVJG.js → secrets-CONinZEP.js} +1 -1
  160. package/dist/client/assets/{sections-editor-DUCSR6lz.js → sections-editor-DNezwFNj.js} +1 -1
  161. package/dist/client/assets/{select-D-ZOYUrI.js → select-32I1U7UG.js} +1 -1
  162. package/dist/client/assets/{select-model-DjTZ-rr8.js → select-model-BQOHE3MV.js} +1 -1
  163. package/dist/client/assets/{self-tool-result--mZhu0zQ.js → self-tool-result-Bf7pgo3v.js} +1 -1
  164. package/dist/client/assets/{seo-editor-C-VanUlz.js → seo-editor-1hBhUFbo.js} +1 -1
  165. package/dist/client/assets/{settings-layout-DX7ES-3J.js → settings-layout-BXGsRvG1.js} +1 -1
  166. package/dist/client/assets/{settings-section-DeoSPrPc.js → settings-section-C2j2B0zZ.js} +1 -1
  167. package/dist/client/assets/{shell-controls-a1jy6C25.js → shell-controls-Bion2poN.js} +1 -1
  168. package/dist/client/assets/{shell-layout-rbN89aRw.js → shell-layout-C1ZgPk96.js} +1 -1
  169. package/dist/client/assets/{sidebar-DhYXFJ5-.js → sidebar-DOGgTpNK.js} +1 -1
  170. package/dist/client/assets/{skeleton-DOdPo7-3.js → skeleton-DoBiZEib.js} +1 -1
  171. package/dist/client/assets/{sso-DYsRrz0Z.js → sso-pJo1PpuN.js} +1 -1
  172. package/dist/client/assets/{store-Cg0JI9hr.js → store-DxZsn637.js} +1 -1
  173. package/dist/client/assets/store-registry-MqdqxN1d.js +2 -0
  174. package/dist/client/assets/{studio-tools-B5RAK9ur.js → studio-tools-Brn4N5_U.js} +1 -1
  175. package/dist/client/assets/{switch-CCk6XuWu.js → switch-tHKnYv4p.js} +1 -1
  176. package/dist/client/assets/{table-4ardOUN_.js → table-D44fXBcj.js} +1 -1
  177. package/dist/client/assets/{tabs-_ri3aESf.js → tabs-B-tjXtUz.js} +1 -1
  178. package/dist/client/assets/{textarea-CRK9zXOF.js → textarea-DaaHcv5N.js} +1 -1
  179. package/dist/client/assets/{toggle-group-SHw7Ul3b.js → toggle-group-C-P2ViEb.js} +1 -1
  180. package/dist/client/assets/{toolbar-DKUi_gTD.js → toolbar-CZ_rtBa9.js} +1 -1
  181. package/dist/client/assets/{toolbar-icon-button-BXdMhoMU.js → toolbar-icon-button-Ba0OmFet.js} +1 -1
  182. package/dist/client/assets/{tools-list-jci5lYnR.js → tools-list-COQ-a9jF.js} +1 -1
  183. package/dist/client/assets/{tooltip-DAywz1VP.js → tooltip-Cv8zdj9x.js} +1 -1
  184. package/dist/client/assets/{use-ai-providers-BsNdP7UQ.js → use-ai-providers-My0L_zE8.js} +1 -1
  185. package/dist/client/assets/{use-automations-HnOmAuMC.js → use-automations-DfJYP9gI.js} +1 -1
  186. package/dist/client/assets/{use-autosave-C4aEFFI7.js → use-autosave-Xs2HOuwf.js} +1 -1
  187. package/dist/client/assets/{use-capability-Dbc-hhaR.js → use-capability-CrdOeLT6.js} +1 -1
  188. package/dist/client/assets/{use-clock-tick-CvlwALFz.js → use-clock-tick-_v1mau-X.js} +1 -1
  189. package/dist/client/assets/{use-collections-DHCLSVhN.js → use-collections-Bbw94V3E.js} +1 -1
  190. package/dist/client/assets/{use-connection-K9tLh8bt.js → use-connection-BuP1AL_I.js} +1 -1
  191. package/dist/client/assets/{use-copy-CX3L-i99.js → use-copy-DasuS9o3.js} +1 -1
  192. package/dist/client/assets/{use-create-virtual-mcp-RqmmhO0v.js → use-create-virtual-mcp--XQN2FTA.js} +1 -1
  193. package/dist/client/assets/{use-debounced-autosave-Dm5MQw9J.js → use-debounced-autosave-VGWMIg0D.js} +1 -1
  194. package/dist/client/assets/{use-debounced-value-DxjACreC.js → use-debounced-value-BdZGbVQ9.js} +1 -1
  195. package/dist/client/assets/{use-deco-credits-D19DKjbq.js → use-deco-credits-DUNDu3Fq.js} +1 -1
  196. package/dist/client/assets/{use-decopilot-events-4cJSG0RB.js → use-decopilot-events-C2YASEpX.js} +1 -1
  197. package/dist/client/assets/{use-delete-connection-B2QXcHFx.js → use-delete-connection-BOwvgJXD.js} +1 -1
  198. package/dist/client/assets/{use-deployment-admin-CH_O9TZc.js → use-deployment-admin-B3yBv_ku.js} +1 -1
  199. package/dist/client/assets/{use-file-configs-rNSC0T2Q.js → use-file-configs-DOV5LRzD.js} +1 -1
  200. package/dist/client/assets/{use-infinite-scroll-BV2ivHRE.js → use-infinite-scroll-BVSdrRwU.js} +1 -1
  201. package/dist/client/assets/{use-join-requests-J7aMXATs.js → use-join-requests-E02cAQvP.js} +1 -1
  202. package/dist/client/assets/{use-mcp-client-D0RiYS9g.js → use-mcp-client-ChtUpBEU.js} +1 -1
  203. package/dist/client/assets/{use-mcp-tools-BSuqhazp.js → use-mcp-tools-z_64KPxo.js} +1 -1
  204. package/dist/client/assets/{use-members-OYuAfhNQ.js → use-members-Cgw9sNN9.js} +1 -1
  205. package/dist/client/assets/{use-mobile-C2vEfjVQ.js → use-mobile-pnR-y4lq.js} +1 -1
  206. package/dist/client/assets/{use-navigate-to-agent-17ZQMkRu.js → use-navigate-to-agent-Chl5nrt3.js} +1 -1
  207. package/dist/client/assets/{use-org-auth-client-dnI6vo9f.js → use-org-auth-client-DwYtejPT.js} +1 -1
  208. package/dist/client/assets/{use-org-sso-B7dyeZGS.js → use-org-sso-D1GLkTq3.js} +1 -1
  209. package/dist/client/assets/{use-organization-roles-CjRvJnWc.js → use-organization-roles-Bc6MXNc1.js} +1 -1
  210. package/dist/client/assets/{use-organization-settings-Ca9ePHna.js → use-organization-settings-DDlWJKkK.js} +1 -1
  211. package/dist/client/assets/{use-registry-connections-C6J_fcmO.js → use-registry-connections-Dq9PwH8s.js} +1 -1
  212. package/dist/client/assets/{use-secrets-Dvse2ph3.js → use-secrets-DPnFGuFl.js} +1 -1
  213. package/dist/client/assets/{use-status-sounds-C7x7QU-z.js → use-status-sounds-Ce8ydwkp.js} +1 -1
  214. package/dist/client/assets/{use-view-mode-DcR07Xsc.js → use-view-mode-D9a3LP6U.js} +1 -1
  215. package/dist/client/assets/{use-virtual-mcp-DVT-i7Ns.js → use-virtual-mcp-DoUDWQYW.js} +1 -1
  216. package/dist/client/assets/useInfiniteQuery-BJ3vgi17.js +1 -0
  217. package/dist/client/assets/{useRouterState-D2BCcllw.js → useRouterState-8Pr6o_D3.js} +1 -1
  218. package/dist/client/assets/useSuspenseInfiniteQuery-CWXAI4ws.js +1 -0
  219. package/dist/client/assets/{users-kFR_BuhA.js → users-t7mdZGMR.js} +1 -1
  220. package/dist/client/assets/{variant-calendar-BSCsKxH6.js → variant-calendar-CdAayp2t.js} +1 -1
  221. package/dist/client/assets/{view-mode-toggle-DQLyqT2A.js → view-mode-toggle-D3k3QkWy.js} +1 -1
  222. package/dist/client/index.html +2 -2
  223. package/dist/server/cli.js +1 -1
  224. package/dist/server/server.js +1 -1
  225. package/package.json +1 -1
  226. package/dist/client/assets/app-editor-BcaTJ_RE.js +0 -1
  227. package/dist/client/assets/automations-Cw_f6Uu1.js +0 -1
  228. package/dist/client/assets/index-FznqHB3j.css +0 -1
  229. package/dist/client/assets/page-seo-sheet-D6tL5K4B.js +0 -1
  230. package/dist/client/assets/project-app-view-DxudPgPO.js +0 -1
  231. package/dist/client/assets/record-editor-B93Grbim.js +0 -1
  232. package/dist/client/assets/redirect-editor-8N-LhNDf.js +0 -1
  233. package/dist/client/assets/registry-CgR6qv4v.js +0 -2
  234. package/dist/client/assets/store-registry-B870evY0.js +0 -2
  235. package/dist/client/assets/useInfiniteQuery-2oaUne3r.js +0 -1
  236. package/dist/client/assets/useSuspenseInfiniteQuery-DvFNyZjL.js +0 -1
@@ -1 +1 @@
1
- import{c as H,j as t,B as Z}from"./index-B_CL9F3O.js";import{n as ee}from"./LinkExternal01-EAtvM7Sp.js";import{aC as te,g as ie}from"./agent-icon-BlmPFPm0.js";import{I as J}from"./input-DUfRQEb3.js";import{L as G}from"./label-qDMp-M32.js";import{a1 as oe}from"./automation-runs-Dm3heRb7.js";import{b as Q,c as se,T as W,a as re}from"./tabs-_ri3aESf.js";import{T as le}from"./textarea-CRK9zXOF.js";import{v as ae,w as me,o as pe,x as ne,y as ce,I as de,z as fe,A as ue,B as xe}from"./index-DtFnIqcb.js";import{b as he,a as ge,B as ve}from"./block-document-DCJhhVJZ.js";import{u as je}from"./use-autosave-C4aEFFI7.js";import{s as E,E as be,R as ye,A as Ce}from"./primitives-BCbphEsc.js";import"./AlertCircle-BDnE5L4D.js";import"./UserPlus01-DW8Y3gn9.js";import"./Tool01-b5WlPVKZ.js";import"./ArrowUp-dRA5fc_l.js";import"./Settings02-yTQowdAj.js";import"./Tool02-DDh8IsFc.js";import"./XCircle-C1kBe1WH.js";import"./ArrowUpRight-1HcDS2YR.js";import"./TrendUp01-BdxmF4-n.js";import"./ZapSquare-DqO9Fwsk.js";import"./Users03-glNtzAIS.js";import"./CheckCircle-CKBMR-Fj.js";import"./Check-BtlFZpRz.js";import"./ChevronDown-CVgnPA8P.js";import"./ChevronRight-C3-A3c3p.js";import"./ChevronUp-DkbV0oQl.js";import"./Circle-BJcTGMmq.js";import"./Stars02-krLFJFg-.js";import"./Copy01-TiY6JLaT.js";import"./ZoomOut-CXCZeir4.js";import"./DotsVertical-Vq7gY_eS.js";import"./Globe01-DRdAxLhB.js";import"./Eye-Bs9xvFgJ.js";import"./FilterLines-iSlilwvJ.js";import"./Flag01-Dy_s1Q0I.js";import"./Star01-CU852avF.js";import"./Globe04-DSNZl7QO.js";import"./SwitchHorizontal01-BPk4D9zh.js";import"./HardDrive-fr-YHbXr.js";import"./Key01-ST8RT5SQ.js";import"./LayoutLeft-CJwMF2HD.js";import"./List-B5QCXbEX.js";import"./Monitor01-CKw9I_5x.js";import"./Sun-D12Vz4el.js";import"./Package-DaABhYqB.js";import"./Palette-DE08ex5s.js";import"./Play-DslI2KfH.js";import"./Plus-B6haYOl6.js";import"./SearchLg-BXBj2-4c.js";import"./SearchMd-D55R-iXz.js";import"./Shield01-M7iU2kJk.js";import"./Stars01-D8sF6iXn.js";import"./Trash01-Cb_L54d7.js";import"./Upload01-iEyHSXhx.js";import"./User01-DPYDztTi.js";import"./Users01-C5RCoDPo.js";import"./XClose-DPMx5YwL.js";import"./X-Dg6xB81o.js";import"./Zap-mlOsBBaP.js";import"./select-D-ZOYUrI.js";import"./tooltip-DAywz1VP.js";import"./useInfiniteQuery-2oaUne3r.js";import"./use-infinite-scroll-BV2ivHRE.js";import"./use-connection-K9tLh8bt.js";import"./use-collections-DHCLSVhN.js";import"./use-mcp-client-D0RiYS9g.js";import"./constants-D_FQAPnt.js";import"./auth-BCy5FAu6.js";import"./use-virtual-mcp-DVT-i7Ns.js";import"./card-DMp90QVB.js";import"./sidebar-DhYXFJ5-.js";import"./use-mobile-C2vEfjVQ.js";import"./table-4ardOUN_.js";import"./empty-state-DWJADMqU.js";import"./use-members-OYuAfhNQ.js";import"./use-org-auth-client-dnI6vo9f.js";import"./use-clock-tick-CvlwALFz.js";import"./use-automations-HnOmAuMC.js";import"./studio-tools-B5RAK9ur.js";import"./useSuspenseInfiniteQuery-DvFNyZjL.js";import"./badge-Ccg40_Zf.js";import"./checkbox-DNK1Tn8e.js";import"./command-Dnfr95q6.js";import"./index-D_MXZAx-.js";import"./dialog-CPPkPiFg.js";import"./popover-D7qlix13.js";import"./avatar-Ck1hn8zR.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CX3L-i99.js";import"./file-type-icon-B-owX8l7.js";import"./tab-id-BijBBRwE.js";import"./monaco-editor-na2skEtz.js";import"./index-AMDSiMB0.js";import"./chat-context-DzKUrw43.js";import"./autosend-DXJJq1Az.js";import"./hooks-CL9e1Op1.js";import"./decopilot-sse-pool-CIIR-fRd.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-BsNdP7UQ.js";import"./use-decopilot-events-4cJSG0RB.js";import"./use-organization-settings-Ca9ePHna.js";import"./index-BZmEsnbS.js";import"./shell-layout-rbN89aRw.js";import"./alert-dialog-D67rOy6F.js";import"./required-auth-layout-CdEqo9YR.js";import"./use-org-sso-B7dyeZGS.js";import"./integration-icon-CdXUPKZ3.js";import"./use-navigate-to-agent-17ZQMkRu.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-l3IKn5Z0.js";import"./form-DtCoPnMd.js";import"./drawer-CFlStxqN.js";import"./collection-search-CimAgLSm.js";import"./toggle-group-SHw7Ul3b.js";import"./use-deco-credits-D19DKjbq.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-VhQXdAlB.js";import"./use-registry-connections-C6J_fcmO.js";import"./extract-connection-data-CWws05uY.js";import"./collection-tabs-Di4P6gkF.js";import"./connection-form-helpers-Cmf8YT8c.js";import"./authenticate-and-persist-oauth-BNyx4h6x.js";import"./mcp-oauth-BHYFKrXL.js";import"./connect-desktop-dialog-Bn2zPyuF.js";import"./select-model-DjTZ-rr8.js";import"./skeleton-DOdPo7-3.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DeoSPrPc.js";import"./dropdown-menu-BDRJLlCZ.js";import"./index-BPnGJudG.js";import"./toolbar-DKUi_gTD.js";import"./use-debounced-value-DxjACreC.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-C7x7QU-z.js";import"./use-mcp-tools-BSuqhazp.js";import"./use-capability-Dbc-hhaR.js";import"./tools-list-jci5lYnR.js";import"./switch-CCk6XuWu.js";import"./use-debounced-autosave-Dm5MQw9J.js";import"./index-DFTdEwma.js";import"./search-input--8gvO2Gv.js";import"./github-repo-picker-DExszVW8.js";import"./provision-repo-scoped-github-connection-CB4ICKHq.js";import"./use-secrets-Dvse2ph3.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-BZL7ZBIl.js";import"./index-CghNUnKs.js";import"./get-initials-D-f_fDFw.js";import"./calendar-Cgh9oyJQ.js";import"./toolbar-icon-button-BXdMhoMU.js";import"./use-file-configs-rNSC0T2Q.js";import"./automation-list-row-Dd1HHifa.js";function ke(g){return Array.isArray(g)?g.map(e=>({key:E(e?.key),value:E(e?.value)})):[]}function ko(g){const e=H.c(66),{orgSlug:o,virtualMcpId:m,branch:i,blockKey:f,block:a,decofile:l,meta:c,previewBaseUrl:h}=g;let x;e[0]!==i||e[1]!==o||e[2]!==m?(x={orgSlug:o,virtualMcpId:m,branch:i},e[0]=i,e[1]=o,e[2]=m,e[3]=x):x=e[3];const r=ae(x);let p;e[4]!==a?(p=me(a,"posts"),e[4]=a,e[5]=p):p=e[5];const d=p;let n;e[6]!==f||e[7]!==r?(n=F=>{r.mutate({blockKey:f,data:ne(f,"posts",ce(F))})},e[6]=f,e[7]=r,e[8]=n):n=e[8];const[s,N]=je(d,n);let S;e[9]!==s||e[10]!==N?(S=(F,Y)=>N({...s,[F]:Y}),e[9]=s,e[10]=N,e[11]=S):S=e[11];const v=S;let w;e[12]!==l||e[13]!==s||e[14]!==h?(w=he({decofile:l,post:s,previewBaseUrl:h}),e[12]=l,e[13]=s,e[14]=h,e[15]=w):w=e[15];const j=w;let b;e[16]!==s.title?(b=E(s.title)||"Untitled post",e[16]=s.title,e[17]=b):b=e[17];let y;e[18]!==b?(y=t.jsx("span",{className:"truncate text-sm font-medium",children:b}),e[18]=b,e[19]=y):y=e[19];let C;e[20]!==r.isError||e[21]!==r.isPending?(C=t.jsx(pe,{isPending:r.isPending,isError:r.isError}),e[20]=r.isError,e[21]=r.isPending,e[22]=C):C=e[22];const P=!j,_=j?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let k;e[23]!==j?(k=()=>{j&&window.open(j,"_blank","noopener,noreferrer")},e[23]=j,e[24]=k):k=e[24];let B;e[25]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(ee,{size:14}),e[25]=B):B=e[25];let u;e[26]!==_||e[27]!==k||e[28]!==P?(u=t.jsxs(Z,{type:"button",variant:"outline",size:"sm",disabled:P,title:_,onClick:k,children:[B,"See preview"]}),e[26]=_,e[27]=k,e[28]=P,e[29]=u):u=e[29];let T;e[30]!==u||e[31]!==C?(T=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[C,u]}),e[30]=u,e[31]=C,e[32]=T):T=e[32];let R;e[33]!==T||e[34]!==y?(R=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[y,T]}),e[33]=T,e[34]=y,e[35]=R):R=e[35];let A;e[36]!==s.title?(A=E(s.title),e[36]=s.title,e[37]=A):A=e[37];let L;e[38]!==v?(L=F=>v("title",F),e[38]=v,e[39]=L):L=e[39];let I;e[40]!==A||e[41]!==L?(I=t.jsx(be,{value:A,onChange:L,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[40]=A,e[41]=L,e[42]=I):I=e[42];let K;e[43]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsxs(Q,{value:"content",children:[t.jsx(te,{}),"Content"]}),e[43]=K):K=e[43];let O;e[44]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs(se,{children:[K,t.jsxs(Q,{value:"settings",children:[t.jsx(ie,{}),"Settings"]})]}),e[44]=O):O=e[44];let U;e[45]!==s.sections?(U=ge(s.sections),e[45]=s.sections,e[46]=U):U=e[46];let V;e[47]!==v?(V=F=>v("sections",F),e[47]=v,e[48]=V):V=e[48];let $;e[49]!==c||e[50]!==U||e[51]!==V?($=t.jsx(W,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(ve,{value:U,onChange:V,meta:c,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=c,e[50]=U,e[51]=V,e[52]=$):$=e[52];let M;e[53]!==l||e[54]!==s||e[55]!==v?(M=t.jsx(W,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Ne,{post:s,decofile:l,onChange:v})})}),e[53]=l,e[54]=s,e[55]=v,e[56]=M):M=e[56];let z;e[57]!==$||e[58]!==M?(z=t.jsxs(re,{defaultValue:"content",className:"mt-6 gap-4",children:[O,$,M]}),e[57]=$,e[58]=M,e[59]=z):z=e[59];let D;e[60]!==I||e[61]!==z?(D=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[I,z]})}),e[60]=I,e[61]=z,e[62]=D):D=e[62];let q;return e[63]!==R||e[64]!==D?(q=t.jsxs("div",{className:"flex h-full flex-col",children:[R,D]}),e[63]=R,e[64]=D,e[65]=q):q=e[65],q}function Ne(g){const e=H.c(57),{post:o,decofile:m,onChange:i}=g;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(G,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=f):f=e[0];let a;e[1]!==o.excerpt?(a=E(o.excerpt),e[1]=o.excerpt,e[2]=a):a=e[2];let l;e[3]!==i?(l=u=>i("excerpt",u.target.value),e[3]=i,e[4]=l):l=e[4];let c;e[5]!==a||e[6]!==l?(c=t.jsxs("div",{className:"space-y-2",children:[f,t.jsx(le,{id:"post-excerpt",value:a,onChange:l,rows:2})]}),e[5]=a,e[6]=l,e[7]=c):c=e[7];let h;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(G,{htmlFor:"post-slug",children:"Slug"}),e[8]=h):h=e[8];let x;e[9]!==o.slug?(x=E(o.slug),e[9]=o.slug,e[10]=x):x=e[10];let r;e[11]!==i?(r=u=>i("slug",u.target.value),e[11]=i,e[12]=r):r=e[12];let p;e[13]!==x||e[14]!==r?(p=t.jsxs("div",{className:"space-y-2",children:[h,t.jsx(J,{id:"post-slug",value:x,onChange:r,placeholder:"my-post",className:"h-10"})]}),e[13]=x,e[14]=r,e[15]=p):p=e[15];let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d={type:"string",format:"date",title:"Date"},e[16]=d):d=e[16];let n;e[17]!==o.date?(n=E(o.date),e[17]=o.date,e[18]=n):n=e[18];let s;e[19]!==i?(s=u=>i("date",u),e[19]=i,e[20]=s):s=e[20];let N;e[21]!==n||e[22]!==s?(N=t.jsx(xe,{schema:d,value:n,onChange:s,path:"post-date",label:"Date"}),e[21]=n,e[22]=s,e[23]=N):N=e[23];let S;e[24]!==N||e[25]!==p?(S=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p,N]}),e[24]=N,e[25]=p,e[26]=S):S=e[26];let v;e[27]===Symbol.for("react.memo_cache_sentinel")?(v={type:"string",format:"image-uri",title:"Cover image"},e[27]=v):v=e[27];let w;e[28]!==i?(w=u=>i("image",u),e[28]=i,e[29]=w):w=e[29];let j;e[30]!==o.image||e[31]!==w?(j=t.jsx(de,{schema:v,value:o.image,onChange:w,path:"post-image",label:"Cover image"}),e[30]=o.image,e[31]=w,e[32]=j):j=e[32];let b;e[33]!==i?(b=u=>i("authors",u),e[33]=i,e[34]=b):b=e[34];let y;e[35]!==m||e[36]!==o.authors||e[37]!==b?(y=t.jsx(X,{label:"Authors",decofile:m,kind:"authors",valueField:"email",toRef:we,selected:o.authors,onChange:b}),e[35]=m,e[36]=o.authors,e[37]=b,e[38]=y):y=e[38];let C;e[39]!==i?(C=u=>i("categories",u),e[39]=i,e[40]=C):C=e[40];let P;e[41]!==m||e[42]!==o.categories||e[43]!==C?(P=t.jsx(X,{label:"Categories",decofile:m,kind:"categories",valueField:"slug",toRef:Se,selected:o.categories,onChange:C}),e[41]=m,e[42]=o.categories,e[43]=C,e[44]=P):P=e[44];let _;e[45]!==i?(_=u=>i("extraProps",u),e[45]=i,e[46]=_):_=e[46];let k;e[47]!==o.extraProps||e[48]!==_?(k=t.jsx(Pe,{value:o.extraProps,onChange:_}),e[47]=o.extraProps,e[48]=_,e[49]=k):k=e[49];let B;return e[50]!==S||e[51]!==j||e[52]!==y||e[53]!==P||e[54]!==k||e[55]!==c?(B=t.jsxs("div",{className:"space-y-5",children:[c,S,j,y,P,k]}),e[50]=S,e[51]=j,e[52]=y,e[53]=P,e[54]=k,e[55]=c,e[56]=B):B=e[56],B}function Se(g){return{name:E(g.name),slug:E(g.slug)}}function we(g){return{...g}}function Pe(g){const e=H.c(15),{value:o,onChange:m}=g;let i,f,a,l;if(e[0]!==m||e[1]!==o){i=ke(o);const x=(r,p)=>m(i.map((d,n)=>n===r?{...d,...p}:d));f="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(G,{children:"Extra props"}),e[6]=a):a=e[6],l=i.length>0&&t.jsx("ul",{className:"space-y-2",children:i.map((r,p)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(J,{value:r.key,onChange:d=>x(p,{key:d.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(J,{value:r.value,onChange:d=>x(p,{value:d.target.value}),placeholder:"value",className:"h-9 flex-1"}),t.jsx(ye,{label:"Remove prop",onClick:()=>m(i.filter((d,n)=>n!==p))})]},p))}),e[0]=m,e[1]=o,e[2]=i,e[3]=f,e[4]=a,e[5]=l}else i=e[2],f=e[3],a=e[4],l=e[5];let c;e[7]!==i||e[8]!==m?(c=t.jsx(Ce,{label:"Add prop",onClick:()=>m([...i,{key:"",value:""}])}),e[7]=i,e[8]=m,e[9]=c):c=e[9];let h;return e[10]!==f||e[11]!==a||e[12]!==l||e[13]!==c?(h=t.jsxs("div",{className:f,children:[a,l,c]}),e[10]=f,e[11]=a,e[12]=l,e[13]=c,e[14]=h):h=e[14],h}function X(g){const e=H.c(17),{label:o,decofile:m,kind:i,valueField:f,toRef:a,selected:l,onChange:c}=g;let h;e[0]!==m||e[1]!==i||e[2]!==l||e[3]!==a||e[4]!==f?(h=fe({records:ue(m,i),selected:l,valueField:f,toRef:a}),e[0]=m,e[1]=i,e[2]=l,e[3]=a,e[4]=f,e[5]=h):h=e[5];const{options:x,selectedValues:r,refsForValues:p}=h;let d;e[6]!==o?(d=t.jsx(G,{children:o}),e[6]=o,e[7]=d):d=e[7];let n;e[8]!==o||e[9]!==c||e[10]!==x||e[11]!==p||e[12]!==r?(n=x.length===0?t.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",o.toLowerCase()," yet — create some in the"," ",o.toLowerCase()," collection."]}):t.jsx(oe,{options:x,defaultValue:r,onValueChange:N=>c(p(N)),placeholder:`Select ${o.toLowerCase()}`,maxCount:4}),e[8]=o,e[9]=c,e[10]=x,e[11]=p,e[12]=r,e[13]=n):n=e[13];let s;return e[14]!==d||e[15]!==n?(s=t.jsxs("div",{className:"space-y-2",children:[d,n]}),e[14]=d,e[15]=n,e[16]=s):s=e[16],s}export{ko as PostEditor};
1
+ import{c as H,j as t,B as Z}from"./index-DS4rAqwY.js";import{n as ee}from"./LinkExternal01-D0e_JnBB.js";import{aC as te,g as ie}from"./agent-icon-BMlO9g3f.js";import{I as J}from"./input-D5vcQhoL.js";import{L as G}from"./label-BgZiPLuQ.js";import{a1 as oe}from"./automation-runs-DHcUjECQ.js";import{b as Q,c as se,T as W,a as re}from"./tabs-B-tjXtUz.js";import{T as le}from"./textarea-DaaHcv5N.js";import{v as ae,w as me,o as pe,x as ne,y as ce,I as de,z as fe,A as ue,B as xe}from"./index-CNAmaCH3.js";import{b as he,a as ge,B as ve}from"./block-document-C7RgqHof.js";import{u as je}from"./use-autosave-Xs2HOuwf.js";import{s as E,E as be,R as ye,A as Ce}from"./primitives-BHkbxz43.js";import"./AlertCircle-BspordpX.js";import"./UserPlus01-Uz6S8Fjb.js";import"./Tool01-BMNmn1yF.js";import"./ArrowUp-BHs6aZEu.js";import"./Settings02-BIYEvLxH.js";import"./Tool02-DGufqHHa.js";import"./XCircle-BsaSEJdP.js";import"./ArrowUpRight-DWb0SHAh.js";import"./TrendUp01-yN4PrbN-.js";import"./ZapSquare-BA0p6n38.js";import"./Users03-C7mz_KdA.js";import"./CheckCircle-BU9eUffg.js";import"./Check-7WIITMAB.js";import"./ChevronDown-CKvbLNpf.js";import"./ChevronRight-C-jwMI0x.js";import"./ChevronUp-xEk-Hkjn.js";import"./Circle-B-1p1V3u.js";import"./Stars02-6rBUSWRT.js";import"./Copy01-j7g0HzRj.js";import"./ZoomOut-CrgIEWZv.js";import"./DotsVertical-D_WbX0qI.js";import"./Globe01-D8OVqcVm.js";import"./Eye-Qig4q8vO.js";import"./FilterLines-Clx9vkNd.js";import"./Flag01-D-v8b8WA.js";import"./Star01-7lVQxn6j.js";import"./Globe04-Byszod1w.js";import"./SwitchHorizontal01-DonuDjWr.js";import"./HardDrive-uNiSvuE5.js";import"./Key01-DCLaxXrN.js";import"./LayoutLeft-BkkLEygy.js";import"./List-DBle1pOm.js";import"./Monitor01-C68LgEUD.js";import"./Sun-Xo-4W0GL.js";import"./Package-ArC6w3gk.js";import"./Palette-CamQAW-l.js";import"./Play-Bo_FQ_Qt.js";import"./Plus-BEhknaRt.js";import"./SearchLg-CkHW6FGX.js";import"./SearchMd-BBU4Wq1F.js";import"./Shield01-CaKclxlZ.js";import"./Stars01-DoPAiLfG.js";import"./Trash01-DfkqWioB.js";import"./Upload01-BjqchOMa.js";import"./User01-x16Tzx2V.js";import"./Users01-CpqV9dUM.js";import"./XClose-BfUy7_Ni.js";import"./X-DqSvIURs.js";import"./Zap-28TFXy2W.js";import"./select-32I1U7UG.js";import"./tooltip-Cv8zdj9x.js";import"./useInfiniteQuery-BJ3vgi17.js";import"./use-infinite-scroll-BVSdrRwU.js";import"./use-connection-BuP1AL_I.js";import"./use-collections-Bbw94V3E.js";import"./use-mcp-client-ChtUpBEU.js";import"./constants-D_FQAPnt.js";import"./auth-DhIYbras.js";import"./use-virtual-mcp-DoUDWQYW.js";import"./card-DpjecHY2.js";import"./sidebar-DOGgTpNK.js";import"./use-mobile-pnR-y4lq.js";import"./table-D44fXBcj.js";import"./empty-state-YCut0sPg.js";import"./use-members-Cgw9sNN9.js";import"./use-org-auth-client-DwYtejPT.js";import"./use-clock-tick-_v1mau-X.js";import"./use-automations-DfJYP9gI.js";import"./studio-tools-Brn4N5_U.js";import"./useSuspenseInfiniteQuery-CWXAI4ws.js";import"./badge-JS3YhMut.js";import"./checkbox-CblPd3Hc.js";import"./command-BN9Ept_A.js";import"./index-KdwK_bqc.js";import"./dialog-COLQcCRL.js";import"./popover-DquVr-be.js";import"./avatar-DdtddiHF.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DasuS9o3.js";import"./file-type-icon-OzS8T0u4.js";import"./tab-id-BijBBRwE.js";import"./monaco-editor-DchAWwXC.js";import"./index-D1C9TQ71.js";import"./chat-context-D0zCFK1M.js";import"./autosend-CZLKJkBV.js";import"./hooks-BjdnAe-L.js";import"./decopilot-sse-pool-uJsbj6wS.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-My0L_zE8.js";import"./use-decopilot-events-C2YASEpX.js";import"./use-organization-settings-DDlWJKkK.js";import"./index-B5ks997m.js";import"./shell-layout-C1ZgPk96.js";import"./alert-dialog-Dtszn4Rp.js";import"./required-auth-layout-BQBGmnFG.js";import"./use-org-sso-D1GLkTq3.js";import"./integration-icon-BhHODF-u.js";import"./use-navigate-to-agent-Chl5nrt3.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-4kMJmgm4.js";import"./form-BMLTyaPP.js";import"./drawer-HTdc4YL3.js";import"./collection-search-Dvs-LkIv.js";import"./toggle-group-C-P2ViEb.js";import"./use-deco-credits-DUNDu3Fq.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Dduj2bdE.js";import"./use-registry-connections-Dq9PwH8s.js";import"./extract-connection-data-B8RjJlbH.js";import"./collection-tabs-CTEKQT9e.js";import"./connection-form-helpers-DKpPvDSN.js";import"./authenticate-and-persist-oauth-ChFnJYYv.js";import"./mcp-oauth-BreAtybq.js";import"./connect-desktop-dialog-DKrDKa4d.js";import"./select-model-BQOHE3MV.js";import"./skeleton-DoBiZEib.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-C2j2B0zZ.js";import"./dropdown-menu-DHMJS27m.js";import"./index-BcIFnd0f.js";import"./toolbar-CZ_rtBa9.js";import"./use-debounced-value-BdZGbVQ9.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ce8ydwkp.js";import"./use-mcp-tools-z_64KPxo.js";import"./use-capability-CrdOeLT6.js";import"./tools-list-COQ-a9jF.js";import"./switch-tHKnYv4p.js";import"./use-debounced-autosave-VGWMIg0D.js";import"./index-rFHHEkal.js";import"./search-input-CIt36tQq.js";import"./github-repo-picker-uyxKPI6q.js";import"./provision-repo-scoped-github-connection-CB4ICKHq.js";import"./use-secrets-DPnFGuFl.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-CW4X_eqm.js";import"./index-DdJw1Zxw.js";import"./get-initials-D-f_fDFw.js";import"./calendar-2DG8dvZM.js";import"./toolbar-icon-button-Ba0OmFet.js";import"./use-file-configs-DOV5LRzD.js";import"./automation-list-row-CWjgUckd.js";function ke(g){return Array.isArray(g)?g.map(e=>({key:E(e?.key),value:E(e?.value)})):[]}function ko(g){const e=H.c(66),{orgSlug:o,virtualMcpId:m,branch:i,blockKey:f,block:a,decofile:l,meta:c,previewBaseUrl:h}=g;let x;e[0]!==i||e[1]!==o||e[2]!==m?(x={orgSlug:o,virtualMcpId:m,branch:i},e[0]=i,e[1]=o,e[2]=m,e[3]=x):x=e[3];const r=ae(x);let p;e[4]!==a?(p=me(a,"posts"),e[4]=a,e[5]=p):p=e[5];const d=p;let n;e[6]!==f||e[7]!==r?(n=F=>{r.mutate({blockKey:f,data:ne(f,"posts",ce(F))})},e[6]=f,e[7]=r,e[8]=n):n=e[8];const[s,N]=je(d,n);let S;e[9]!==s||e[10]!==N?(S=(F,Y)=>N({...s,[F]:Y}),e[9]=s,e[10]=N,e[11]=S):S=e[11];const v=S;let w;e[12]!==l||e[13]!==s||e[14]!==h?(w=he({decofile:l,post:s,previewBaseUrl:h}),e[12]=l,e[13]=s,e[14]=h,e[15]=w):w=e[15];const j=w;let b;e[16]!==s.title?(b=E(s.title)||"Untitled post",e[16]=s.title,e[17]=b):b=e[17];let y;e[18]!==b?(y=t.jsx("span",{className:"truncate text-sm font-medium",children:b}),e[18]=b,e[19]=y):y=e[19];let C;e[20]!==r.isError||e[21]!==r.isPending?(C=t.jsx(pe,{isPending:r.isPending,isError:r.isError}),e[20]=r.isError,e[21]=r.isPending,e[22]=C):C=e[22];const P=!j,_=j?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let k;e[23]!==j?(k=()=>{j&&window.open(j,"_blank","noopener,noreferrer")},e[23]=j,e[24]=k):k=e[24];let B;e[25]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(ee,{size:14}),e[25]=B):B=e[25];let u;e[26]!==_||e[27]!==k||e[28]!==P?(u=t.jsxs(Z,{type:"button",variant:"outline",size:"sm",disabled:P,title:_,onClick:k,children:[B,"See preview"]}),e[26]=_,e[27]=k,e[28]=P,e[29]=u):u=e[29];let T;e[30]!==u||e[31]!==C?(T=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[C,u]}),e[30]=u,e[31]=C,e[32]=T):T=e[32];let R;e[33]!==T||e[34]!==y?(R=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[y,T]}),e[33]=T,e[34]=y,e[35]=R):R=e[35];let A;e[36]!==s.title?(A=E(s.title),e[36]=s.title,e[37]=A):A=e[37];let L;e[38]!==v?(L=F=>v("title",F),e[38]=v,e[39]=L):L=e[39];let I;e[40]!==A||e[41]!==L?(I=t.jsx(be,{value:A,onChange:L,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[40]=A,e[41]=L,e[42]=I):I=e[42];let K;e[43]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsxs(Q,{value:"content",children:[t.jsx(te,{}),"Content"]}),e[43]=K):K=e[43];let O;e[44]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs(se,{children:[K,t.jsxs(Q,{value:"settings",children:[t.jsx(ie,{}),"Settings"]})]}),e[44]=O):O=e[44];let U;e[45]!==s.sections?(U=ge(s.sections),e[45]=s.sections,e[46]=U):U=e[46];let V;e[47]!==v?(V=F=>v("sections",F),e[47]=v,e[48]=V):V=e[48];let $;e[49]!==c||e[50]!==U||e[51]!==V?($=t.jsx(W,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(ve,{value:U,onChange:V,meta:c,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=c,e[50]=U,e[51]=V,e[52]=$):$=e[52];let M;e[53]!==l||e[54]!==s||e[55]!==v?(M=t.jsx(W,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Ne,{post:s,decofile:l,onChange:v})})}),e[53]=l,e[54]=s,e[55]=v,e[56]=M):M=e[56];let z;e[57]!==$||e[58]!==M?(z=t.jsxs(re,{defaultValue:"content",className:"mt-6 gap-4",children:[O,$,M]}),e[57]=$,e[58]=M,e[59]=z):z=e[59];let D;e[60]!==I||e[61]!==z?(D=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[I,z]})}),e[60]=I,e[61]=z,e[62]=D):D=e[62];let q;return e[63]!==R||e[64]!==D?(q=t.jsxs("div",{className:"flex h-full flex-col",children:[R,D]}),e[63]=R,e[64]=D,e[65]=q):q=e[65],q}function Ne(g){const e=H.c(57),{post:o,decofile:m,onChange:i}=g;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(G,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=f):f=e[0];let a;e[1]!==o.excerpt?(a=E(o.excerpt),e[1]=o.excerpt,e[2]=a):a=e[2];let l;e[3]!==i?(l=u=>i("excerpt",u.target.value),e[3]=i,e[4]=l):l=e[4];let c;e[5]!==a||e[6]!==l?(c=t.jsxs("div",{className:"space-y-2",children:[f,t.jsx(le,{id:"post-excerpt",value:a,onChange:l,rows:2})]}),e[5]=a,e[6]=l,e[7]=c):c=e[7];let h;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(G,{htmlFor:"post-slug",children:"Slug"}),e[8]=h):h=e[8];let x;e[9]!==o.slug?(x=E(o.slug),e[9]=o.slug,e[10]=x):x=e[10];let r;e[11]!==i?(r=u=>i("slug",u.target.value),e[11]=i,e[12]=r):r=e[12];let p;e[13]!==x||e[14]!==r?(p=t.jsxs("div",{className:"space-y-2",children:[h,t.jsx(J,{id:"post-slug",value:x,onChange:r,placeholder:"my-post",className:"h-10"})]}),e[13]=x,e[14]=r,e[15]=p):p=e[15];let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d={type:"string",format:"date",title:"Date"},e[16]=d):d=e[16];let n;e[17]!==o.date?(n=E(o.date),e[17]=o.date,e[18]=n):n=e[18];let s;e[19]!==i?(s=u=>i("date",u),e[19]=i,e[20]=s):s=e[20];let N;e[21]!==n||e[22]!==s?(N=t.jsx(xe,{schema:d,value:n,onChange:s,path:"post-date",label:"Date"}),e[21]=n,e[22]=s,e[23]=N):N=e[23];let S;e[24]!==N||e[25]!==p?(S=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p,N]}),e[24]=N,e[25]=p,e[26]=S):S=e[26];let v;e[27]===Symbol.for("react.memo_cache_sentinel")?(v={type:"string",format:"image-uri",title:"Cover image"},e[27]=v):v=e[27];let w;e[28]!==i?(w=u=>i("image",u),e[28]=i,e[29]=w):w=e[29];let j;e[30]!==o.image||e[31]!==w?(j=t.jsx(de,{schema:v,value:o.image,onChange:w,path:"post-image",label:"Cover image"}),e[30]=o.image,e[31]=w,e[32]=j):j=e[32];let b;e[33]!==i?(b=u=>i("authors",u),e[33]=i,e[34]=b):b=e[34];let y;e[35]!==m||e[36]!==o.authors||e[37]!==b?(y=t.jsx(X,{label:"Authors",decofile:m,kind:"authors",valueField:"email",toRef:we,selected:o.authors,onChange:b}),e[35]=m,e[36]=o.authors,e[37]=b,e[38]=y):y=e[38];let C;e[39]!==i?(C=u=>i("categories",u),e[39]=i,e[40]=C):C=e[40];let P;e[41]!==m||e[42]!==o.categories||e[43]!==C?(P=t.jsx(X,{label:"Categories",decofile:m,kind:"categories",valueField:"slug",toRef:Se,selected:o.categories,onChange:C}),e[41]=m,e[42]=o.categories,e[43]=C,e[44]=P):P=e[44];let _;e[45]!==i?(_=u=>i("extraProps",u),e[45]=i,e[46]=_):_=e[46];let k;e[47]!==o.extraProps||e[48]!==_?(k=t.jsx(Pe,{value:o.extraProps,onChange:_}),e[47]=o.extraProps,e[48]=_,e[49]=k):k=e[49];let B;return e[50]!==S||e[51]!==j||e[52]!==y||e[53]!==P||e[54]!==k||e[55]!==c?(B=t.jsxs("div",{className:"space-y-5",children:[c,S,j,y,P,k]}),e[50]=S,e[51]=j,e[52]=y,e[53]=P,e[54]=k,e[55]=c,e[56]=B):B=e[56],B}function Se(g){return{name:E(g.name),slug:E(g.slug)}}function we(g){return{...g}}function Pe(g){const e=H.c(15),{value:o,onChange:m}=g;let i,f,a,l;if(e[0]!==m||e[1]!==o){i=ke(o);const x=(r,p)=>m(i.map((d,n)=>n===r?{...d,...p}:d));f="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(G,{children:"Extra props"}),e[6]=a):a=e[6],l=i.length>0&&t.jsx("ul",{className:"space-y-2",children:i.map((r,p)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(J,{value:r.key,onChange:d=>x(p,{key:d.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(J,{value:r.value,onChange:d=>x(p,{value:d.target.value}),placeholder:"value",className:"h-9 flex-1"}),t.jsx(ye,{label:"Remove prop",onClick:()=>m(i.filter((d,n)=>n!==p))})]},p))}),e[0]=m,e[1]=o,e[2]=i,e[3]=f,e[4]=a,e[5]=l}else i=e[2],f=e[3],a=e[4],l=e[5];let c;e[7]!==i||e[8]!==m?(c=t.jsx(Ce,{label:"Add prop",onClick:()=>m([...i,{key:"",value:""}])}),e[7]=i,e[8]=m,e[9]=c):c=e[9];let h;return e[10]!==f||e[11]!==a||e[12]!==l||e[13]!==c?(h=t.jsxs("div",{className:f,children:[a,l,c]}),e[10]=f,e[11]=a,e[12]=l,e[13]=c,e[14]=h):h=e[14],h}function X(g){const e=H.c(17),{label:o,decofile:m,kind:i,valueField:f,toRef:a,selected:l,onChange:c}=g;let h;e[0]!==m||e[1]!==i||e[2]!==l||e[3]!==a||e[4]!==f?(h=fe({records:ue(m,i),selected:l,valueField:f,toRef:a}),e[0]=m,e[1]=i,e[2]=l,e[3]=a,e[4]=f,e[5]=h):h=e[5];const{options:x,selectedValues:r,refsForValues:p}=h;let d;e[6]!==o?(d=t.jsx(G,{children:o}),e[6]=o,e[7]=d):d=e[7];let n;e[8]!==o||e[9]!==c||e[10]!==x||e[11]!==p||e[12]!==r?(n=x.length===0?t.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",o.toLowerCase()," yet — create some in the"," ",o.toLowerCase()," collection."]}):t.jsx(oe,{options:x,defaultValue:r,onValueChange:N=>c(p(N)),placeholder:`Select ${o.toLowerCase()}`,maxCount:4}),e[8]=o,e[9]=c,e[10]=x,e[11]=p,e[12]=r,e[13]=n):n=e[13];let s;return e[14]!==d||e[15]!==n?(s=t.jsxs("div",{className:"space-y-2",children:[d,n]}),e[14]=d,e[15]=n,e[16]=s):s=e[16],s}export{ko as PostEditor};
@@ -1 +1 @@
1
- import{c as f,l as h,j as a}from"./index-B_CL9F3O.js";import{j as y}from"./agent-icon-BlmPFPm0.js";import{s as v}from"./Plus-B6haYOl6.js";import{s as j}from"./Trash01-Cb_L54d7.js";function N(o){const e=f.c(14),{value:t,onChange:r,placeholder:s,className:n,onFocus:i,onBlur:l,onKeyDown:c,spellCheck:b,inputRef:p}=o,x=b===void 0?!0:b;let u;e[0]!==r?(u=g=>r(g.target.value),e[0]=r,e[1]=u):u=e[1];let d;e[2]!==n?(d=h("w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-muted-foreground/50 focus:ring-0",n),e[2]=n,e[3]=d):d=e[3];let m;return e[4]!==p||e[5]!==l||e[6]!==i||e[7]!==c||e[8]!==s||e[9]!==x||e[10]!==u||e[11]!==d||e[12]!==t?(m=a.jsx("textarea",{ref:p,value:t,onChange:u,onInput:w,onFocus:i,onBlur:l,onKeyDown:c,placeholder:s,spellCheck:x,rows:1,className:d}),e[4]=p,e[5]=l,e[6]=i,e[7]=c,e[8]=s,e[9]=x,e[10]=u,e[11]=d,e[12]=t,e[13]=m):m=e[13],m}function w(o){const e=o.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function z(o){return typeof o=="string"?o:""}function T(o){const e=f.c(11);let t,r;e[0]!==o?({className:t,...r}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=h(t,"pr-9"),e[3]=t,e[4]=s):s=e[4];let n;e[5]!==r||e[6]!==s?(n=a.jsx(N,{...r,className:s}),e[5]=r,e[6]=s,e[7]=n):n=e[7];let i;e[8]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(y,{size:18,"aria-hidden":!0,className:"pointer-events-none absolute right-2 top-3 text-muted-foreground/40 transition-opacity group-hover/editable:text-muted-foreground group-focus-within/editable:text-muted-foreground"}),e[8]=i):i=e[8];let l;return e[9]!==n?(l=a.jsxs("div",{className:"group/editable relative -mx-2 rounded-md px-2 transition-colors hover:bg-muted/50 focus-within:bg-muted/50",children:[n,i]}),e[9]=n,e[10]=l):l=e[10],l}function R(o){const e=f.c(5),{label:t,onClick:r,disabled:s}=o;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(v,{size:13}),e[0]=n):n=e[0];let i;return e[1]!==s||e[2]!==t||e[3]!==r?(i=a.jsxs("button",{type:"button",onClick:r,disabled:s,className:"flex items-center gap-1.5 rounded-md border border-dashed px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:border-foreground/30 hover:text-foreground disabled:opacity-40 disabled:hover:border-dashed disabled:hover:text-muted-foreground cursor-pointer",children:[n,t]}),e[1]=s,e[2]=t,e[3]=r,e[4]=i):i=e[4],i}function B(o){const e=f.c(4),{label:t,onClick:r}=o;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(j,{size:13}),e[0]=s):s=e[0];let n;return e[1]!==t||e[2]!==r?(n=a.jsx("button",{type:"button","aria-label":t,onClick:r,className:"flex h-6 w-6 shrink-0 items-center justify-center rounded text-muted-foreground/60 opacity-0 transition-opacity hover:text-destructive group-hover/item:opacity-100 cursor-pointer",children:s}),e[1]=t,e[2]=r,e[3]=n):n=e[3],n}function E(o){const e=f.c(2),{children:t}=o;let r;return e[0]!==t?(r=a.jsx("div",{className:"absolute -top-9 left-0 z-10 flex items-center gap-0.5 rounded-md border bg-popover p-0.5 shadow-md",children:t}),e[0]=t,e[1]=r):r=e[1],r}function S(o){const e=f.c(8),{active:t,label:r,onClick:s,children:n}=o,i=t?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let l;e[0]!==i?(l=h("flex h-7 min-w-7 items-center justify-center rounded px-1.5 text-sm transition-colors cursor-pointer",i),e[0]=i,e[1]=l):l=e[1];let c;return e[2]!==t||e[3]!==n||e[4]!==r||e[5]!==s||e[6]!==l?(c=a.jsx("button",{type:"button","aria-label":r,"aria-pressed":t,onMouseDown:_,onClick:s,className:l,children:n}),e[2]=t,e[3]=n,e[4]=r,e[5]=s,e[6]=l,e[7]=c):c=e[7],c}function _(o){return o.preventDefault()}function D(o){if(Array.isArray(o))return o;if(typeof o!="string"||o.trim()==="")return[];try{const e=JSON.parse(o);return Array.isArray(e)?e:[]}catch{return[]}}export{R as A,T as E,E as F,N as I,B as R,S as T,D as p,z as s};
1
+ import{c as f,l as h,j as a}from"./index-DS4rAqwY.js";import{j as y}from"./agent-icon-BMlO9g3f.js";import{s as v}from"./Plus-BEhknaRt.js";import{s as j}from"./Trash01-DfkqWioB.js";function N(o){const e=f.c(14),{value:t,onChange:r,placeholder:s,className:n,onFocus:i,onBlur:l,onKeyDown:c,spellCheck:b,inputRef:p}=o,x=b===void 0?!0:b;let u;e[0]!==r?(u=g=>r(g.target.value),e[0]=r,e[1]=u):u=e[1];let d;e[2]!==n?(d=h("w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-muted-foreground/50 focus:ring-0",n),e[2]=n,e[3]=d):d=e[3];let m;return e[4]!==p||e[5]!==l||e[6]!==i||e[7]!==c||e[8]!==s||e[9]!==x||e[10]!==u||e[11]!==d||e[12]!==t?(m=a.jsx("textarea",{ref:p,value:t,onChange:u,onInput:w,onFocus:i,onBlur:l,onKeyDown:c,placeholder:s,spellCheck:x,rows:1,className:d}),e[4]=p,e[5]=l,e[6]=i,e[7]=c,e[8]=s,e[9]=x,e[10]=u,e[11]=d,e[12]=t,e[13]=m):m=e[13],m}function w(o){const e=o.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function z(o){return typeof o=="string"?o:""}function T(o){const e=f.c(11);let t,r;e[0]!==o?({className:t,...r}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=h(t,"pr-9"),e[3]=t,e[4]=s):s=e[4];let n;e[5]!==r||e[6]!==s?(n=a.jsx(N,{...r,className:s}),e[5]=r,e[6]=s,e[7]=n):n=e[7];let i;e[8]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(y,{size:18,"aria-hidden":!0,className:"pointer-events-none absolute right-2 top-3 text-muted-foreground/40 transition-opacity group-hover/editable:text-muted-foreground group-focus-within/editable:text-muted-foreground"}),e[8]=i):i=e[8];let l;return e[9]!==n?(l=a.jsxs("div",{className:"group/editable relative -mx-2 rounded-md px-2 transition-colors hover:bg-muted/50 focus-within:bg-muted/50",children:[n,i]}),e[9]=n,e[10]=l):l=e[10],l}function R(o){const e=f.c(5),{label:t,onClick:r,disabled:s}=o;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(v,{size:13}),e[0]=n):n=e[0];let i;return e[1]!==s||e[2]!==t||e[3]!==r?(i=a.jsxs("button",{type:"button",onClick:r,disabled:s,className:"flex items-center gap-1.5 rounded-md border border-dashed px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:border-foreground/30 hover:text-foreground disabled:opacity-40 disabled:hover:border-dashed disabled:hover:text-muted-foreground cursor-pointer",children:[n,t]}),e[1]=s,e[2]=t,e[3]=r,e[4]=i):i=e[4],i}function B(o){const e=f.c(4),{label:t,onClick:r}=o;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(j,{size:13}),e[0]=s):s=e[0];let n;return e[1]!==t||e[2]!==r?(n=a.jsx("button",{type:"button","aria-label":t,onClick:r,className:"flex h-6 w-6 shrink-0 items-center justify-center rounded text-muted-foreground/60 opacity-0 transition-opacity hover:text-destructive group-hover/item:opacity-100 cursor-pointer",children:s}),e[1]=t,e[2]=r,e[3]=n):n=e[3],n}function E(o){const e=f.c(2),{children:t}=o;let r;return e[0]!==t?(r=a.jsx("div",{className:"absolute -top-9 left-0 z-10 flex items-center gap-0.5 rounded-md border bg-popover p-0.5 shadow-md",children:t}),e[0]=t,e[1]=r):r=e[1],r}function S(o){const e=f.c(8),{active:t,label:r,onClick:s,children:n}=o,i=t?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let l;e[0]!==i?(l=h("flex h-7 min-w-7 items-center justify-center rounded px-1.5 text-sm transition-colors cursor-pointer",i),e[0]=i,e[1]=l):l=e[1];let c;return e[2]!==t||e[3]!==n||e[4]!==r||e[5]!==s||e[6]!==l?(c=a.jsx("button",{type:"button","aria-label":r,"aria-pressed":t,onMouseDown:_,onClick:s,className:l,children:n}),e[2]=t,e[3]=n,e[4]=r,e[5]=s,e[6]=l,e[7]=c):c=e[7],c}function _(o){return o.preventDefault()}function D(o){if(Array.isArray(o))return o;if(typeof o!="string"||o.trim()==="")return[];try{const e=JSON.parse(o);return Array.isArray(e)?e:[]}catch{return[]}}export{R as A,T as E,E as F,N as I,B as R,S as T,D as p,z as s};
@@ -1 +1 @@
1
- import{c as V,j as t,a as D,M as R,ah as U,U as q,p as N,t as T}from"./index-B_CL9F3O.js";import{P as L}from"./index-DFTdEwma.js";import{A as B}from"./avatar-Ck1hn8zR.js";import{S as I}from"./switch-CCk6XuWu.js";import{S as G,a as Y,d as $,c as K}from"./select-D-ZOYUrI.js";import{a as M,T as z}from"./toggle-group-SHw7Ul3b.js";import{I as O}from"./input-DUfRQEb3.js";import{i as H}from"./Monitor01-CKw9I_5x.js";import{n as J,a as Q}from"./Sun-D12Vz4el.js";import{i as W}from"./Play-DslI2KfH.js";import{u as X}from"./use-debounced-autosave-Dm5MQw9J.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-DTdfq6hT.js";import{c as te,b as A,S as E,a as F}from"./settings-section-DeoSPrPc.js";import"./sidebar-DhYXFJ5-.js";import"./LayoutLeft-CJwMF2HD.js";import"./use-mobile-C2vEfjVQ.js";import"./X-Dg6xB81o.js";import"./tooltip-DAywz1VP.js";import"./User01-DPYDztTi.js";import"./Check-BtlFZpRz.js";import"./ChevronDown-CVgnPA8P.js";import"./ChevronUp-DkbV0oQl.js";import"./card-DMp90QVB.js";import"./ArrowUpRight-1HcDS2YR.js";function se(){const e=V.c(19),{data:s,isPending:o}=D.useSession(),v=s?.user,p=v?.image,h=v?.name??"";let S;e[0]!==h?(S={values:{name:h}},e[0]=h,e[1]=S):S=e[1];const n=R(S);let _;e[2]!==n?(_={save:async()=>{const g=n.control._formState.dirtyFields;if(Object.keys(g).length===0)return;const a=n.getValues(),f=n.control._defaultValues;n.reset(a,{keepValues:!0});try{await D.updateUser({name:a.name}),N("profile_updated",{fields:["name"]}),T.success("Profile updated successfully")}catch{n.reset(f,{keepValues:!0}),T.error("Failed to update profile")}}},e[2]=n,e[3]=_):_=e[3];const{schedule:x,flush:m}=X(_);if(o)return null;const j=v?.name??"U";let i;e[4]!==j||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(B,{url:p,fallback:j,shape:"circle",size:"base"})}),e[4]=j,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==m||e[8]!==x?(l=g=>{const{field:a}=g;return t.jsx(O,{id:"display-name",...a,onChange:f=>{a.onChange(f),x()},onBlur:()=>{a.onBlur(),m()},onKeyDown:f=>{f.key==="Enter"&&m()},placeholder:"Your name",className:"w-[280px]"})},e[7]=m,e[8]=x,e[9]=l):l=e[9];let d;e[10]!==n.control||e[11]!==l?(d=t.jsx(A,{title:"Display name",action:t.jsx(U,{control:n.control,name:"name",render:l})}),e[10]=n.control,e[11]=l,e[12]=d):d=e[12];const b=v?.email;let r;e[13]!==b?(r=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:b})}),e[13]=b,e[14]=r):r=e[14];let u;return e[15]!==i||e[16]!==d||e[17]!==r?(u=t.jsx(E,{children:t.jsxs(F,{children:[i,d,r]})}),e[15]=i,e[16]=d,e[17]=r,e[18]=u):u=e[18],u}function oe(){const e=V.c(48),[s,o]=q();let v;e[0]!==o?(v=async c=>{if(c&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),T.error("Notifications denied. Please enable them in your browser settings."),o(re);return}N("preferences_notifications_toggled",{enabled:c}),o(y=>({...y,enableNotifications:c}))},e[0]=o,e[1]=v):v=e[1];const p=v;let h;e[2]!==o?(h=c=>{c&&(N("preferences_theme_changed",{to_value:c}),o(y=>({...y,theme:c})))},e[2]=o,e[3]=h):h=e[3];let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(z,{value:"light","aria-label":"Light theme",children:t.jsx(J,{size:14})}),e[4]=S):S=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(z,{value:"dark","aria-label":"Dark theme",children:t.jsx(Q,{size:14})}),e[5]=n):n=e[5];let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(z,{value:"system","aria-label":"System theme",children:t.jsx(H,{size:14})}),e[6]=_):_=e[6];let x;e[7]!==s.theme||e[8]!==h?(x=t.jsx(A,{title:"Theme",description:"Your preferred color scheme.",action:t.jsxs(M,{type:"single",size:"sm",variant:"outline",value:s.theme,onValueChange:h,children:[S,n,_]})}),e[7]=s.theme,e[8]=h,e[9]=x):x=e[9];let m;e[10]!==p||e[11]!==s.enableNotifications?(m=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=m):m=e[12];let j;e[13]!==p||e[14]!==s.enableNotifications?(j=t.jsx(I,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=j):j=e[15];let i;e[16]!==m||e[17]!==j?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:m,action:j}),e[16]=m,e[17]=j,e[18]=i):i=e[18];let l;e[19]!==s.enableSounds||e[20]!==o?(l=()=>{N("preferences_sounds_toggled",{enabled:!s.enableSounds}),o(le)},e[19]=s.enableSounds,e[20]=o,e[21]=l):l=e[21];let d;e[22]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ne,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:t.jsx(W,{size:11})}),e[22]=d):d=e[22];let b;e[23]!==o?(b=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=b):b=e[24];let r;e[25]!==s.enableSounds||e[26]!==b?(r=t.jsxs("div",{className:"flex items-center gap-2",children:[d,t.jsx(I,{checked:s.enableSounds,onCheckedChange:b})]}),e[25]=s.enableSounds,e[26]=b,e[27]=r):r=e[27];let u;e[28]!==r||e[29]!==l?(u=t.jsx(A,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:l,action:r}),e[28]=r,e[29]=l,e[30]=u):u=e[30];let g;e[31]!==o?(g=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=g):g=e[32];let a;e[33]!==s.toolApprovalLevel?(a={readonly:"Ask before edit",auto:"Auto approve"}[s.toolApprovalLevel]??"Ask before edit",e[33]=s.toolApprovalLevel,e[34]=a):a=e[34];let f;e[35]!==a?(f=t.jsx(Y,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:a})}),e[35]=a,e[36]=f):f=e[36];let C;e[37]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx($,{value:"readonly",textValue:"Ask before edit",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Ask before edit"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=C):C=e[37];let k;e[38]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs(K,{children:[C,t.jsx($,{value:"auto",textValue:"Auto approve",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Auto approve"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=k):k=e[38];let P;e[39]!==s.toolApprovalLevel||e[40]!==g||e[41]!==f?(P=t.jsx(A,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:t.jsxs(G,{value:s.toolApprovalLevel,onValueChange:g,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=g,e[41]=f,e[42]=P):P=e[42];let w;return e[43]!==u||e[44]!==P||e[45]!==x||e[46]!==i?(w=t.jsx(E,{title:"Preferences",children:t.jsxs(F,{children:[x,i,u,P]})}),e[43]=u,e[44]=P,e[45]=x,e[46]=i,e[47]=w):w=e[47],w}function ne(){N("preferences_sounds_previewed"),Z(ee.dataUri).catch(ie)}function ie(){}function le(e){return{...e,enableSounds:!e.enableSounds}}function re(e){return{...e,enableNotifications:!1}}function ae(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs(te,{children:[t.jsx(L.Title,{children:"Profile & Preferences"}),t.jsx(se,{}),t.jsx(oe,{})]})})})}),e[0]=s):s=e[0],s}function De(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(ae,{}),e[0]=s):s=e[0],s}export{De as default};
1
+ import{c as V,j as t,a as D,M as R,ah as U,U as q,p as N,t as T}from"./index-DS4rAqwY.js";import{P as L}from"./index-rFHHEkal.js";import{A as B}from"./avatar-DdtddiHF.js";import{S as I}from"./switch-tHKnYv4p.js";import{S as G,a as Y,d as $,c as K}from"./select-32I1U7UG.js";import{a as M,T as z}from"./toggle-group-C-P2ViEb.js";import{I as O}from"./input-D5vcQhoL.js";import{i as H}from"./Monitor01-C68LgEUD.js";import{n as J,a as Q}from"./Sun-Xo-4W0GL.js";import{i as W}from"./Play-Bo_FQ_Qt.js";import{u as X}from"./use-debounced-autosave-VGWMIg0D.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-CL06la1a.js";import{c as te,b as A,S as E,a as F}from"./settings-section-C2j2B0zZ.js";import"./sidebar-DOGgTpNK.js";import"./LayoutLeft-BkkLEygy.js";import"./use-mobile-pnR-y4lq.js";import"./X-DqSvIURs.js";import"./tooltip-Cv8zdj9x.js";import"./User01-x16Tzx2V.js";import"./Check-7WIITMAB.js";import"./ChevronDown-CKvbLNpf.js";import"./ChevronUp-xEk-Hkjn.js";import"./card-DpjecHY2.js";import"./ArrowUpRight-DWb0SHAh.js";function se(){const e=V.c(19),{data:s,isPending:o}=D.useSession(),v=s?.user,p=v?.image,h=v?.name??"";let S;e[0]!==h?(S={values:{name:h}},e[0]=h,e[1]=S):S=e[1];const n=R(S);let _;e[2]!==n?(_={save:async()=>{const g=n.control._formState.dirtyFields;if(Object.keys(g).length===0)return;const a=n.getValues(),f=n.control._defaultValues;n.reset(a,{keepValues:!0});try{await D.updateUser({name:a.name}),N("profile_updated",{fields:["name"]}),T.success("Profile updated successfully")}catch{n.reset(f,{keepValues:!0}),T.error("Failed to update profile")}}},e[2]=n,e[3]=_):_=e[3];const{schedule:x,flush:m}=X(_);if(o)return null;const j=v?.name??"U";let i;e[4]!==j||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(B,{url:p,fallback:j,shape:"circle",size:"base"})}),e[4]=j,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==m||e[8]!==x?(l=g=>{const{field:a}=g;return t.jsx(O,{id:"display-name",...a,onChange:f=>{a.onChange(f),x()},onBlur:()=>{a.onBlur(),m()},onKeyDown:f=>{f.key==="Enter"&&m()},placeholder:"Your name",className:"w-[280px]"})},e[7]=m,e[8]=x,e[9]=l):l=e[9];let d;e[10]!==n.control||e[11]!==l?(d=t.jsx(A,{title:"Display name",action:t.jsx(U,{control:n.control,name:"name",render:l})}),e[10]=n.control,e[11]=l,e[12]=d):d=e[12];const b=v?.email;let r;e[13]!==b?(r=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:b})}),e[13]=b,e[14]=r):r=e[14];let u;return e[15]!==i||e[16]!==d||e[17]!==r?(u=t.jsx(E,{children:t.jsxs(F,{children:[i,d,r]})}),e[15]=i,e[16]=d,e[17]=r,e[18]=u):u=e[18],u}function oe(){const e=V.c(48),[s,o]=q();let v;e[0]!==o?(v=async c=>{if(c&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),T.error("Notifications denied. Please enable them in your browser settings."),o(re);return}N("preferences_notifications_toggled",{enabled:c}),o(y=>({...y,enableNotifications:c}))},e[0]=o,e[1]=v):v=e[1];const p=v;let h;e[2]!==o?(h=c=>{c&&(N("preferences_theme_changed",{to_value:c}),o(y=>({...y,theme:c})))},e[2]=o,e[3]=h):h=e[3];let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(z,{value:"light","aria-label":"Light theme",children:t.jsx(J,{size:14})}),e[4]=S):S=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(z,{value:"dark","aria-label":"Dark theme",children:t.jsx(Q,{size:14})}),e[5]=n):n=e[5];let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(z,{value:"system","aria-label":"System theme",children:t.jsx(H,{size:14})}),e[6]=_):_=e[6];let x;e[7]!==s.theme||e[8]!==h?(x=t.jsx(A,{title:"Theme",description:"Your preferred color scheme.",action:t.jsxs(M,{type:"single",size:"sm",variant:"outline",value:s.theme,onValueChange:h,children:[S,n,_]})}),e[7]=s.theme,e[8]=h,e[9]=x):x=e[9];let m;e[10]!==p||e[11]!==s.enableNotifications?(m=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=m):m=e[12];let j;e[13]!==p||e[14]!==s.enableNotifications?(j=t.jsx(I,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=j):j=e[15];let i;e[16]!==m||e[17]!==j?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:m,action:j}),e[16]=m,e[17]=j,e[18]=i):i=e[18];let l;e[19]!==s.enableSounds||e[20]!==o?(l=()=>{N("preferences_sounds_toggled",{enabled:!s.enableSounds}),o(le)},e[19]=s.enableSounds,e[20]=o,e[21]=l):l=e[21];let d;e[22]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ne,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:t.jsx(W,{size:11})}),e[22]=d):d=e[22];let b;e[23]!==o?(b=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=b):b=e[24];let r;e[25]!==s.enableSounds||e[26]!==b?(r=t.jsxs("div",{className:"flex items-center gap-2",children:[d,t.jsx(I,{checked:s.enableSounds,onCheckedChange:b})]}),e[25]=s.enableSounds,e[26]=b,e[27]=r):r=e[27];let u;e[28]!==r||e[29]!==l?(u=t.jsx(A,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:l,action:r}),e[28]=r,e[29]=l,e[30]=u):u=e[30];let g;e[31]!==o?(g=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=g):g=e[32];let a;e[33]!==s.toolApprovalLevel?(a={readonly:"Ask before edit",auto:"Auto approve"}[s.toolApprovalLevel]??"Ask before edit",e[33]=s.toolApprovalLevel,e[34]=a):a=e[34];let f;e[35]!==a?(f=t.jsx(Y,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:a})}),e[35]=a,e[36]=f):f=e[36];let C;e[37]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx($,{value:"readonly",textValue:"Ask before edit",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Ask before edit"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=C):C=e[37];let k;e[38]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs(K,{children:[C,t.jsx($,{value:"auto",textValue:"Auto approve",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Auto approve"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=k):k=e[38];let P;e[39]!==s.toolApprovalLevel||e[40]!==g||e[41]!==f?(P=t.jsx(A,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:t.jsxs(G,{value:s.toolApprovalLevel,onValueChange:g,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=g,e[41]=f,e[42]=P):P=e[42];let w;return e[43]!==u||e[44]!==P||e[45]!==x||e[46]!==i?(w=t.jsx(E,{title:"Preferences",children:t.jsxs(F,{children:[x,i,u,P]})}),e[43]=u,e[44]=P,e[45]=x,e[46]=i,e[47]=w):w=e[47],w}function ne(){N("preferences_sounds_previewed"),Z(ee.dataUri).catch(ie)}function ie(){}function le(e){return{...e,enableSounds:!e.enableSounds}}function re(e){return{...e,enableNotifications:!1}}function ae(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs(te,{children:[t.jsx(L.Title,{children:"Profile & Preferences"}),t.jsx(se,{}),t.jsx(oe,{})]})})})}),e[0]=s):s=e[0],s}function De(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(ae,{}),e[0]=s):s=e[0],s}export{De as default};
@@ -0,0 +1 @@
1
+ import{c as L,C as H,j as U}from"./index-DS4rAqwY.js";import{a as O,g as $,s as E}from"./automation-runs-DHcUjECQ.js";import{u as k}from"./use-mcp-client-ChtUpBEU.js";import{p as B}from"./constants-D_FQAPnt.js";import{b as V,c as Y}from"./use-mcp-tools-z_64KPxo.js";import{u as q}from"./index-CNAmaCH3.js";import{c as G}from"./monaco-editor-DchAWwXC.js";import{g as K,M as W,a as D}from"./index-B5ks997m.js";import{b as z,a as F}from"./chat-context-D0zCFK1M.js";import{u as J}from"./shell-layout-C1ZgPk96.js";import{O as Q}from"./tab-id-BijBBRwE.js";import"./select-32I1U7UG.js";import"./tooltip-Cv8zdj9x.js";import"./Check-7WIITMAB.js";import"./ChevronDown-CKvbLNpf.js";import"./ChevronUp-xEk-Hkjn.js";import"./useInfiniteQuery-BJ3vgi17.js";import"./use-infinite-scroll-BVSdrRwU.js";import"./use-connection-BuP1AL_I.js";import"./use-collections-Bbw94V3E.js";import"./use-virtual-mcp-DoUDWQYW.js";import"./card-DpjecHY2.js";import"./sidebar-DOGgTpNK.js";import"./LayoutLeft-BkkLEygy.js";import"./use-mobile-pnR-y4lq.js";import"./X-DqSvIURs.js";import"./table-D44fXBcj.js";import"./empty-state-YCut0sPg.js";import"./use-members-Cgw9sNN9.js";import"./use-org-auth-client-DwYtejPT.js";import"./use-clock-tick-_v1mau-X.js";import"./AlertCircle-BspordpX.js";import"./CheckCircle-BU9eUffg.js";import"./Circle-B-1p1V3u.js";import"./agent-icon-BMlO9g3f.js";import"./UserPlus01-Uz6S8Fjb.js";import"./Tool01-BMNmn1yF.js";import"./ArrowUp-BHs6aZEu.js";import"./Settings02-BIYEvLxH.js";import"./Tool02-DGufqHHa.js";import"./XCircle-BsaSEJdP.js";import"./ArrowUpRight-DWb0SHAh.js";import"./TrendUp01-yN4PrbN-.js";import"./ZapSquare-BA0p6n38.js";import"./Users03-C7mz_KdA.js";import"./ChevronRight-C-jwMI0x.js";import"./Stars02-6rBUSWRT.js";import"./Copy01-j7g0HzRj.js";import"./ZoomOut-CrgIEWZv.js";import"./DotsVertical-D_WbX0qI.js";import"./Globe01-D8OVqcVm.js";import"./Eye-Qig4q8vO.js";import"./FilterLines-Clx9vkNd.js";import"./Flag01-D-v8b8WA.js";import"./Star01-7lVQxn6j.js";import"./Globe04-Byszod1w.js";import"./SwitchHorizontal01-DonuDjWr.js";import"./HardDrive-uNiSvuE5.js";import"./Key01-DCLaxXrN.js";import"./LinkExternal01-D0e_JnBB.js";import"./List-DBle1pOm.js";import"./Monitor01-C68LgEUD.js";import"./Sun-Xo-4W0GL.js";import"./Package-ArC6w3gk.js";import"./Palette-CamQAW-l.js";import"./Play-Bo_FQ_Qt.js";import"./Plus-BEhknaRt.js";import"./SearchLg-CkHW6FGX.js";import"./SearchMd-BBU4Wq1F.js";import"./Shield01-CaKclxlZ.js";import"./Stars01-DoPAiLfG.js";import"./Trash01-DfkqWioB.js";import"./Upload01-BjqchOMa.js";import"./User01-x16Tzx2V.js";import"./Users01-CpqV9dUM.js";import"./XClose-BfUy7_Ni.js";import"./Zap-28TFXy2W.js";import"./use-automations-DfJYP9gI.js";import"./studio-tools-Brn4N5_U.js";import"./useSuspenseInfiniteQuery-CWXAI4ws.js";import"./badge-JS3YhMut.js";import"./checkbox-CblPd3Hc.js";import"./command-BN9Ept_A.js";import"./index-KdwK_bqc.js";import"./dialog-COLQcCRL.js";import"./popover-DquVr-be.js";import"./avatar-DdtddiHF.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DasuS9o3.js";import"./file-type-icon-OzS8T0u4.js";import"./hooks-BjdnAe-L.js";import"./decopilot-sse-pool-uJsbj6wS.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./integration-icon-BhHODF-u.js";import"./use-navigate-to-agent-Chl5nrt3.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-4kMJmgm4.js";import"./form-BMLTyaPP.js";import"./label-BgZiPLuQ.js";import"./input-D5vcQhoL.js";import"./auth-DhIYbras.js";import"./drawer-HTdc4YL3.js";import"./collection-search-Dvs-LkIv.js";import"./autosend-CZLKJkBV.js";import"./tabs-B-tjXtUz.js";import"./toggle-group-C-P2ViEb.js";import"./use-deco-credits-DUNDu3Fq.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Dduj2bdE.js";import"./use-registry-connections-Dq9PwH8s.js";import"./use-organization-settings-DDlWJKkK.js";import"./extract-connection-data-B8RjJlbH.js";import"./collection-tabs-CTEKQT9e.js";import"./textarea-DaaHcv5N.js";import"./connection-form-helpers-DKpPvDSN.js";import"./authenticate-and-persist-oauth-ChFnJYYv.js";import"./mcp-oauth-BreAtybq.js";import"./use-ai-providers-My0L_zE8.js";import"./connect-desktop-dialog-DKrDKa4d.js";import"./select-model-BQOHE3MV.js";import"./skeleton-DoBiZEib.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-C2j2B0zZ.js";import"./dropdown-menu-DHMJS27m.js";import"./index-BcIFnd0f.js";import"./alert-dialog-Dtszn4Rp.js";import"./toolbar-CZ_rtBa9.js";import"./use-debounced-value-BdZGbVQ9.js";import"./index-D1C9TQ71.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ce8ydwkp.js";import"./use-decopilot-events-C2YASEpX.js";import"./use-capability-CrdOeLT6.js";import"./tools-list-COQ-a9jF.js";import"./switch-tHKnYv4p.js";import"./use-debounced-autosave-VGWMIg0D.js";import"./index-rFHHEkal.js";import"./search-input-CIt36tQq.js";import"./github-repo-picker-uyxKPI6q.js";import"./provision-repo-scoped-github-connection-CB4ICKHq.js";import"./use-secrets-DPnFGuFl.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-CW4X_eqm.js";import"./index-DdJw1Zxw.js";import"./get-initials-D-f_fDFw.js";import"./calendar-2DG8dvZM.js";import"./toolbar-icon-button-Ba0OmFet.js";import"./use-file-configs-DOV5LRzD.js";import"./automation-list-row-CWjgUckd.js";import"./required-auth-layout-BQBGmnFG.js";import"./use-org-sso-D1GLkTq3.js";const X="studio://navigate";function Z(M){const[t]=M;if(M.length!==1||t?.type!=="resource_link"||!t.uri.startsWith(X))return{isNavigate:!1};let o=null;try{o=new URL(t.uri).searchParams.get("main")}catch{}return{isNavigate:!0,tab:o&&Q.has(o)?o:null}}const tt={};function ot(M){const t=L.c(38),{client:o,resourceURI:I,tool:i,connectionId:p,orgId:a,args:v}=M,{sendMessage:C}=z(),{setAppContext:d,clearAppContext:l}=F(),{openSidePanel:g,openTab:s}=J(),r=`${p}:${i.name}`;let c;t[0]!==s?(c=x=>x==="inline"?(s("0"),"inline"):"fullscreen",t[0]=s,t[1]=c):c=t[1];const m=c,n=v??tt;let u;t[2]!==o||t[3]!==i.name||t[4]!==n?(u={client:o,toolName:i.name,toolArguments:n},t[2]=o,t[3]=i.name,t[4]=n,t[5]=u):u=t[5];const{data:e}=Y(u);let h;if(t[6]!==i._meta||t[7]!==i.name){const x=$(i._meta);h=E(i.name,x),t[6]=i._meta,t[7]=i.name,t[8]=h}else h=t[8];const A=h;let f;t[9]!==i.inputSchema?(f=i.inputSchema??{type:"object"},t[9]=i.inputSchema,t[10]=f):f=t[10];let R;t[11]!==A||t[12]!==f||t[13]!==i?(R={...i,name:A,inputSchema:f},t[11]=A,t[12]=f,t[13]=i,t[14]=R):R=t[14];const b=R;let _;t[15]!==g||t[16]!==s||t[17]!==C?(_=x=>{const j=Z(x.content);if(j.isNavigate){j.tab&&s(j.tab);return}const w=G(x.content);w.content.length>0&&(g("chat"),C({tiptapDoc:w}))},t[15]=g,t[16]=s,t[17]=C,t[18]=_):_=t[18];const y=_;let P;t[19]!==b?(P={tool:b},t[19]=b,t[20]=P):P=t[20];let N;t[21]!==d||t[22]!==r?(N=x=>d(r,x),t[21]=d,t[22]=r,t[23]=N):N=t[23];let T;t[24]!==l||t[25]!==r?(T=()=>l(r),t[24]=l,t[25]=r,t[26]=T):T=t[26];let S;return t[27]!==o||t[28]!==y||t[29]!==m||t[30]!==a||t[31]!==I||t[32]!==P||t[33]!==N||t[34]!==T||t[35]!==n||t[36]!==e?(S=U.jsx(W,{resourceURI:I,orgId:a,toolInfo:P,toolInput:n,toolResult:e,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:o,onMessage:y,onUpdateModelContext:N,onTeardown:T,onRequestDisplayMode:m,className:"h-full"}),t[27]=o,t[28]=y,t[29]=m,t[30]=a,t[31]=I,t[32]=P,t[33]=N,t[34]=T,t[35]=n,t[36]=e,t[37]=S):S=t[37],S}function zi(M){const t=L.c(24),{connectionId:o,toolName:I,args:i}=M,{org:p}=H(),a=q();let v;t[0]!==o||t[1]!==a?(v=B(o)&&a.vmEntry?.sandboxProviderKind==="user-desktop"&&a.previewUrl?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=o,t[1]=a,t[2]=v):v=t[2];const C=v;let d;t[3]!==o||t[4]!==C||t[5]!==p.id||t[6]!==p.slug?(d={connectionId:o,orgId:p.id,orgSlug:p.slug,mcpUrl:C},t[3]=o,t[4]=C,t[5]=p.id,t[6]=p.slug,t[7]=d):d=t[7];const l=k(d);let g;t[8]!==l?(g={client:l},t[8]=l,t[9]=g):g=t[9];const{data:s}=V(g);let r,c,m;t[10]!==I||t[11]!==s.tools?(r=O(decodeURIComponent(I)),m=s.tools.find(e=>e.name===r)??s.tools.find(e=>{const h=$(e._meta);if(!h)return!1;if(E(e.name,h)===r)return!0;const f=E(r,h);return f!==r&&e.name===f}),c=m?._meta?K(m._meta):void 0,t[10]=I,t[11]=s.tools,t[12]=r,t[13]=c,t[14]=m):(r=t[12],c=t[13],m=t[14]);const n=c;if(!m||!n){let e;return t[15]!==r?(e=U.jsx("div",{className:"flex items-center justify-center h-full w-full",children:U.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[15]=r,t[16]=e):e=t[16],e}let u;return t[17]!==i||t[18]!==l||t[19]!==o||t[20]!==p.id||t[21]!==n||t[22]!==m?(u=U.jsx(ot,{client:l,resourceURI:n,tool:m,connectionId:o,orgId:p.id,args:i}),t[17]=i,t[18]=l,t[19]=o,t[20]=p.id,t[21]=n,t[22]=m,t[23]=u):u=t[23],u}export{zi as AppViewContent};
@@ -0,0 +1 @@
1
+ import{c as C,j as o}from"./index-DS4rAqwY.js";import{I as B}from"./input-D5vcQhoL.js";import{L as T}from"./label-BgZiPLuQ.js";import{S as L,a as A,b as R,c as z,d as O}from"./select-32I1U7UG.js";import{T as V}from"./textarea-DaaHcv5N.js";import{v as D,w as J,o as K,x as M,I as _}from"./index-CNAmaCH3.js";import{s as F}from"./primitives-BHkbxz43.js";import{u as $}from"./use-autosave-Xs2HOuwf.js";import"./tooltip-Cv8zdj9x.js";import"./Check-7WIITMAB.js";import"./ChevronDown-CKvbLNpf.js";import"./ChevronUp-xEk-Hkjn.js";import"./ArrowUp-BHs6aZEu.js";import"./chat-context-D0zCFK1M.js";import"./autosend-CZLKJkBV.js";import"./hooks-BjdnAe-L.js";import"./use-mcp-client-ChtUpBEU.js";import"./constants-D_FQAPnt.js";import"./auth-DhIYbras.js";import"./decopilot-sse-pool-uJsbj6wS.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-Brn4N5_U.js";import"./use-virtual-mcp-DoUDWQYW.js";import"./use-collections-Bbw94V3E.js";import"./use-ai-providers-My0L_zE8.js";import"./use-decopilot-events-C2YASEpX.js";import"./tab-id-BijBBRwE.js";import"./use-organization-settings-DDlWJKkK.js";import"./automation-runs-DHcUjECQ.js";import"./useInfiniteQuery-BJ3vgi17.js";import"./use-infinite-scroll-BVSdrRwU.js";import"./use-connection-BuP1AL_I.js";import"./card-DpjecHY2.js";import"./sidebar-DOGgTpNK.js";import"./LayoutLeft-BkkLEygy.js";import"./use-mobile-pnR-y4lq.js";import"./X-DqSvIURs.js";import"./table-D44fXBcj.js";import"./empty-state-YCut0sPg.js";import"./use-members-Cgw9sNN9.js";import"./use-org-auth-client-DwYtejPT.js";import"./use-clock-tick-_v1mau-X.js";import"./AlertCircle-BspordpX.js";import"./CheckCircle-BU9eUffg.js";import"./Circle-B-1p1V3u.js";import"./agent-icon-BMlO9g3f.js";import"./UserPlus01-Uz6S8Fjb.js";import"./Tool01-BMNmn1yF.js";import"./Settings02-BIYEvLxH.js";import"./Tool02-DGufqHHa.js";import"./XCircle-BsaSEJdP.js";import"./ArrowUpRight-DWb0SHAh.js";import"./TrendUp01-yN4PrbN-.js";import"./ZapSquare-BA0p6n38.js";import"./Users03-C7mz_KdA.js";import"./ChevronRight-C-jwMI0x.js";import"./Stars02-6rBUSWRT.js";import"./Copy01-j7g0HzRj.js";import"./ZoomOut-CrgIEWZv.js";import"./DotsVertical-D_WbX0qI.js";import"./Globe01-D8OVqcVm.js";import"./Eye-Qig4q8vO.js";import"./FilterLines-Clx9vkNd.js";import"./Flag01-D-v8b8WA.js";import"./Star01-7lVQxn6j.js";import"./Globe04-Byszod1w.js";import"./SwitchHorizontal01-DonuDjWr.js";import"./HardDrive-uNiSvuE5.js";import"./Key01-DCLaxXrN.js";import"./LinkExternal01-D0e_JnBB.js";import"./List-DBle1pOm.js";import"./Monitor01-C68LgEUD.js";import"./Sun-Xo-4W0GL.js";import"./Package-ArC6w3gk.js";import"./Palette-CamQAW-l.js";import"./Play-Bo_FQ_Qt.js";import"./Plus-BEhknaRt.js";import"./SearchLg-CkHW6FGX.js";import"./SearchMd-BBU4Wq1F.js";import"./Shield01-CaKclxlZ.js";import"./Stars01-DoPAiLfG.js";import"./Trash01-DfkqWioB.js";import"./Upload01-BjqchOMa.js";import"./User01-x16Tzx2V.js";import"./Users01-CpqV9dUM.js";import"./XClose-BfUy7_Ni.js";import"./Zap-28TFXy2W.js";import"./use-automations-DfJYP9gI.js";import"./useSuspenseInfiniteQuery-CWXAI4ws.js";import"./badge-JS3YhMut.js";import"./checkbox-CblPd3Hc.js";import"./command-BN9Ept_A.js";import"./index-KdwK_bqc.js";import"./dialog-COLQcCRL.js";import"./popover-DquVr-be.js";import"./avatar-DdtddiHF.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DasuS9o3.js";import"./file-type-icon-OzS8T0u4.js";import"./monaco-editor-DchAWwXC.js";import"./index-D1C9TQ71.js";import"./index-B5ks997m.js";import"./shell-layout-C1ZgPk96.js";import"./alert-dialog-Dtszn4Rp.js";import"./required-auth-layout-BQBGmnFG.js";import"./use-org-sso-D1GLkTq3.js";import"./integration-icon-BhHODF-u.js";import"./use-navigate-to-agent-Chl5nrt3.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-4kMJmgm4.js";import"./form-BMLTyaPP.js";import"./drawer-HTdc4YL3.js";import"./collection-search-Dvs-LkIv.js";import"./tabs-B-tjXtUz.js";import"./toggle-group-C-P2ViEb.js";import"./use-deco-credits-DUNDu3Fq.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Dduj2bdE.js";import"./use-registry-connections-Dq9PwH8s.js";import"./extract-connection-data-B8RjJlbH.js";import"./collection-tabs-CTEKQT9e.js";import"./connection-form-helpers-DKpPvDSN.js";import"./authenticate-and-persist-oauth-ChFnJYYv.js";import"./mcp-oauth-BreAtybq.js";import"./connect-desktop-dialog-DKrDKa4d.js";import"./select-model-BQOHE3MV.js";import"./skeleton-DoBiZEib.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-C2j2B0zZ.js";import"./dropdown-menu-DHMJS27m.js";import"./index-BcIFnd0f.js";import"./toolbar-CZ_rtBa9.js";import"./use-debounced-value-BdZGbVQ9.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ce8ydwkp.js";import"./use-mcp-tools-z_64KPxo.js";import"./use-capability-CrdOeLT6.js";import"./tools-list-COQ-a9jF.js";import"./switch-tHKnYv4p.js";import"./use-debounced-autosave-VGWMIg0D.js";import"./index-rFHHEkal.js";import"./search-input-CIt36tQq.js";import"./github-repo-picker-uyxKPI6q.js";import"./provision-repo-scoped-github-connection-CB4ICKHq.js";import"./use-secrets-DPnFGuFl.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-CW4X_eqm.js";import"./index-DdJw1Zxw.js";import"./get-initials-D-f_fDFw.js";import"./calendar-2DG8dvZM.js";import"./toolbar-icon-button-Ba0OmFet.js";import"./use-file-configs-DOV5LRzD.js";import"./automation-list-row-CWjgUckd.js";const q={authors:[{key:"name",label:"Name",widget:"text"},{key:"type",label:"Type",widget:"select",options:[{value:"Person",label:"Person"},{value:"Organization",label:"Organization"}]},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},G={authors:"Author"};function Mo(g){const t=C.c(34),{orgSlug:j,virtualMcpId:w,branch:S,kind:e,blockKey:h,block:E}=g;let y;t[0]!==S||t[1]!==j||t[2]!==w?(y={orgSlug:j,virtualMcpId:w,branch:S},t[0]=S,t[1]=j,t[2]=w,t[3]=y):y=t[3];const m=D(y);let d;t[4]!==E||t[5]!==e?(d=J(E,e),t[4]=E,t[5]=e,t[6]=d):d=t[6];const f=d;let k;t[7]!==h||t[8]!==e||t[9]!==m?(k=a=>{m.mutate({blockKey:h,data:M(h,e,a)})},t[7]=h,t[8]=e,t[9]=m,t[10]=k):k=t[10];const[i,N]=$(f,k);let b;t[11]!==i||t[12]!==N?(b=(a,r)=>N({...i,[a]:r}),t[11]=i,t[12]=N,t[13]=b):b=t[13];const p=b,I=G[e];let l;t[14]!==I?(l=o.jsx("span",{className:"text-sm font-medium",children:I}),t[14]=I,t[15]=l):l=t[15];let n;t[16]!==m.isError||t[17]!==m.isPending?(n=o.jsx(K,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=n):n=t[18];let c;t[19]!==l||t[20]!==n?(c=o.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[l,n]}),t[19]=l,t[20]=n,t[21]=c):c=t[21];const P=q[e];let u;if(t[22]!==i||t[23]!==p||t[24]!==P){let a;t[26]!==i||t[27]!==p?(a=r=>o.jsx("div",{className:"space-y-2",children:r.widget==="image"?o.jsx(_,{schema:{type:"string",format:"image-uri",title:r.label},value:i[r.key],onChange:s=>p(r.key,s),path:r.key,label:r.label}):r.widget==="select"?o.jsxs(o.Fragment,{children:[o.jsx(T,{htmlFor:r.key,children:r.label}),o.jsxs(L,{value:F(i[r.key])||r.options?.[0]?.value,onValueChange:s=>p(r.key,s),children:[o.jsx(A,{id:r.key,className:"h-10 w-full",children:o.jsx(R,{placeholder:r.label})}),o.jsx(z,{children:(r.options??[]).map(H)})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(T,{htmlFor:r.key,children:r.label}),r.widget==="textarea"?o.jsx(V,{id:r.key,value:F(i[r.key]),onChange:s=>p(r.key,s.target.value),rows:3}):o.jsx(B,{id:r.key,value:F(i[r.key]),placeholder:r.placeholder,onChange:s=>p(r.key,s.target.value),className:"h-10"})]})},r.key),t[26]=i,t[27]=p,t[28]=a):a=t[28],u=P.map(a),t[22]=i,t[23]=p,t[24]=P,t[25]=u}else u=t[25];let x;t[29]!==u?(x=o.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:u})}),t[29]=u,t[30]=x):x=t[30];let v;return t[31]!==x||t[32]!==c?(v=o.jsxs("div",{className:"flex h-full flex-col",children:[c,x]}),t[31]=x,t[32]=c,t[33]=v):v=t[33],v}function H(g){return o.jsx(O,{value:g.value,children:g.label},g.value)}export{Mo as RecordEditor};
@@ -0,0 +1 @@
1
+ import{c as X,j as t}from"./index-DS4rAqwY.js";import{C as Y}from"./checkbox-CblPd3Hc.js";import{I as K}from"./input-D5vcQhoL.js";import{L as q}from"./label-BgZiPLuQ.js";import{c as z,S as G,d as H,a as J,b as Z}from"./select-32I1U7UG.js";import{k as ee,aV as te,o as re,aW as M,aX as ie}from"./index-CNAmaCH3.js";import{u as oe}from"./use-autosave-Xs2HOuwf.js";import"./Check-7WIITMAB.js";import"./tooltip-Cv8zdj9x.js";import"./ChevronDown-CKvbLNpf.js";import"./ChevronUp-xEk-Hkjn.js";import"./ArrowUp-BHs6aZEu.js";import"./chat-context-D0zCFK1M.js";import"./autosend-CZLKJkBV.js";import"./hooks-BjdnAe-L.js";import"./use-mcp-client-ChtUpBEU.js";import"./constants-D_FQAPnt.js";import"./auth-DhIYbras.js";import"./decopilot-sse-pool-uJsbj6wS.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-Brn4N5_U.js";import"./use-virtual-mcp-DoUDWQYW.js";import"./use-collections-Bbw94V3E.js";import"./use-ai-providers-My0L_zE8.js";import"./use-decopilot-events-C2YASEpX.js";import"./tab-id-BijBBRwE.js";import"./use-organization-settings-DDlWJKkK.js";import"./automation-runs-DHcUjECQ.js";import"./useInfiniteQuery-BJ3vgi17.js";import"./use-infinite-scroll-BVSdrRwU.js";import"./use-connection-BuP1AL_I.js";import"./card-DpjecHY2.js";import"./sidebar-DOGgTpNK.js";import"./LayoutLeft-BkkLEygy.js";import"./use-mobile-pnR-y4lq.js";import"./X-DqSvIURs.js";import"./table-D44fXBcj.js";import"./empty-state-YCut0sPg.js";import"./use-members-Cgw9sNN9.js";import"./use-org-auth-client-DwYtejPT.js";import"./use-clock-tick-_v1mau-X.js";import"./AlertCircle-BspordpX.js";import"./CheckCircle-BU9eUffg.js";import"./Circle-B-1p1V3u.js";import"./agent-icon-BMlO9g3f.js";import"./UserPlus01-Uz6S8Fjb.js";import"./Tool01-BMNmn1yF.js";import"./Settings02-BIYEvLxH.js";import"./Tool02-DGufqHHa.js";import"./XCircle-BsaSEJdP.js";import"./ArrowUpRight-DWb0SHAh.js";import"./TrendUp01-yN4PrbN-.js";import"./ZapSquare-BA0p6n38.js";import"./Users03-C7mz_KdA.js";import"./ChevronRight-C-jwMI0x.js";import"./Stars02-6rBUSWRT.js";import"./Copy01-j7g0HzRj.js";import"./ZoomOut-CrgIEWZv.js";import"./DotsVertical-D_WbX0qI.js";import"./Globe01-D8OVqcVm.js";import"./Eye-Qig4q8vO.js";import"./FilterLines-Clx9vkNd.js";import"./Flag01-D-v8b8WA.js";import"./Star01-7lVQxn6j.js";import"./Globe04-Byszod1w.js";import"./SwitchHorizontal01-DonuDjWr.js";import"./HardDrive-uNiSvuE5.js";import"./Key01-DCLaxXrN.js";import"./LinkExternal01-D0e_JnBB.js";import"./List-DBle1pOm.js";import"./Monitor01-C68LgEUD.js";import"./Sun-Xo-4W0GL.js";import"./Package-ArC6w3gk.js";import"./Palette-CamQAW-l.js";import"./Play-Bo_FQ_Qt.js";import"./Plus-BEhknaRt.js";import"./SearchLg-CkHW6FGX.js";import"./SearchMd-BBU4Wq1F.js";import"./Shield01-CaKclxlZ.js";import"./Stars01-DoPAiLfG.js";import"./Trash01-DfkqWioB.js";import"./Upload01-BjqchOMa.js";import"./User01-x16Tzx2V.js";import"./Users01-CpqV9dUM.js";import"./XClose-BfUy7_Ni.js";import"./Zap-28TFXy2W.js";import"./use-automations-DfJYP9gI.js";import"./useSuspenseInfiniteQuery-CWXAI4ws.js";import"./badge-JS3YhMut.js";import"./command-BN9Ept_A.js";import"./index-KdwK_bqc.js";import"./dialog-COLQcCRL.js";import"./popover-DquVr-be.js";import"./avatar-DdtddiHF.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DasuS9o3.js";import"./file-type-icon-OzS8T0u4.js";import"./monaco-editor-DchAWwXC.js";import"./index-D1C9TQ71.js";import"./index-B5ks997m.js";import"./shell-layout-C1ZgPk96.js";import"./alert-dialog-Dtszn4Rp.js";import"./required-auth-layout-BQBGmnFG.js";import"./use-org-sso-D1GLkTq3.js";import"./integration-icon-BhHODF-u.js";import"./use-navigate-to-agent-Chl5nrt3.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-4kMJmgm4.js";import"./form-BMLTyaPP.js";import"./drawer-HTdc4YL3.js";import"./collection-search-Dvs-LkIv.js";import"./tabs-B-tjXtUz.js";import"./toggle-group-C-P2ViEb.js";import"./use-deco-credits-DUNDu3Fq.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Dduj2bdE.js";import"./use-registry-connections-Dq9PwH8s.js";import"./extract-connection-data-B8RjJlbH.js";import"./collection-tabs-CTEKQT9e.js";import"./textarea-DaaHcv5N.js";import"./connection-form-helpers-DKpPvDSN.js";import"./authenticate-and-persist-oauth-ChFnJYYv.js";import"./mcp-oauth-BreAtybq.js";import"./connect-desktop-dialog-DKrDKa4d.js";import"./select-model-BQOHE3MV.js";import"./skeleton-DoBiZEib.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-C2j2B0zZ.js";import"./dropdown-menu-DHMJS27m.js";import"./index-BcIFnd0f.js";import"./toolbar-CZ_rtBa9.js";import"./use-debounced-value-BdZGbVQ9.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ce8ydwkp.js";import"./use-mcp-tools-z_64KPxo.js";import"./use-capability-CrdOeLT6.js";import"./tools-list-COQ-a9jF.js";import"./switch-tHKnYv4p.js";import"./use-debounced-autosave-VGWMIg0D.js";import"./index-rFHHEkal.js";import"./search-input-CIt36tQq.js";import"./github-repo-picker-uyxKPI6q.js";import"./provision-repo-scoped-github-connection-CB4ICKHq.js";import"./use-secrets-DPnFGuFl.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-CW4X_eqm.js";import"./index-DdJw1Zxw.js";import"./get-initials-D-f_fDFw.js";import"./calendar-2DG8dvZM.js";import"./toolbar-icon-button-Ba0OmFet.js";import"./use-file-configs-DOV5LRzD.js";import"./automation-list-row-CWjgUckd.js";const me=[{value:"temporary",label:`Temporary (${M.temporary})`},{value:"permanent",label:`Permanent (${M.permanent})`}];function Zr(S){const e=X.c(62),{orgSlug:V,virtualMcpId:$,branch:A,blockKey:B,block:D}=S;let _;e[0]!==A||e[1]!==V||e[2]!==$?(_={orgSlug:V,virtualMcpId:$,branch:A},e[0]=A,e[1]=V,e[2]=$,e[3]=_):_=e[3];const m=ee(_);let g;e[4]!==D?(g=te(D),e[4]=D,e[5]=g):g=e[5];const W=g;let v;e[6]!==B||e[7]!==m?(v=o=>{m.mutate({blockKey:B,data:ie(o)})},e[6]=B,e[7]=m,e[8]=v):v=e[8];const[r,O]=oe(W,v);let N;e[9]!==r||e[10]!==O?(N=o=>O({...r,...o}),e[9]=r,e[10]=O,e[11]=N):N=e[11];const i=N;let P;e[12]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx("span",{className:"text-sm font-medium",children:"Redirect"}),e[12]=P):P=e[12];let p;e[13]!==m.isError||e[14]!==m.isPending?(p=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[P,t.jsx(re,{isPending:m.isPending,isError:m.isError})]}),e[13]=m.isError,e[14]=m.isPending,e[15]=p):p=e[15];let T;e[16]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(q,{htmlFor:"redirect-from",children:"From"}),e[16]=T):T=e[16];let s;e[17]!==i?(s=o=>i({from:o.target.value}),e[17]=i,e[18]=s):s=e[18];let l;e[19]!==r.from||e[20]!==s?(l=t.jsx(K,{id:"redirect-from",value:r.from,placeholder:"/old-path",onChange:s,className:"h-10"}),e[19]=r.from,e[20]=s,e[21]=l):l=e[21];let E;e[22]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsxs("p",{className:"text-xs text-muted-foreground",children:["The source path to match. Supports URLPattern syntax (e.g."," ",t.jsx("code",{children:"/product/:slug"}),")."]}),e[22]=E):E=e[22];let a;e[23]!==l?(a=t.jsxs("div",{className:"space-y-2",children:[T,l,E]}),e[23]=l,e[24]=a):a=e[24];let R;e[25]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(q,{htmlFor:"redirect-to",children:"To"}),e[25]=R):R=e[25];let c;e[26]!==i?(c=o=>i({to:o.target.value}),e[26]=i,e[27]=c):c=e[27];let n;e[28]!==r.to||e[29]!==c?(n=t.jsx(K,{id:"redirect-to",value:r.to,placeholder:"/new-path",onChange:c,className:"h-10"}),e[28]=r.to,e[29]=c,e[30]=n):n=e[30];let k;e[31]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("p",{className:"text-xs text-muted-foreground",children:"The destination — a relative path or an absolute URL."}),e[31]=k):k=e[31];let d;e[32]!==n?(d=t.jsxs("div",{className:"space-y-2",children:[R,n,k]}),e[32]=n,e[33]=d):d=e[33];let C;e[34]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(q,{htmlFor:"redirect-type",children:"Type"}),e[34]=C):C=e[34];let f;e[35]!==i?(f=o=>i({type:o}),e[35]=i,e[36]=f):f=e[36];let w;e[37]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(J,{id:"redirect-type",className:"h-10 w-full",children:t.jsx(Z,{placeholder:"Type"})}),e[37]=w):w=e[37];let I;e[38]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(z,{children:me.map(pe)}),e[38]=I):I=e[38];let h;e[39]!==r.type||e[40]!==f?(h=t.jsxs(G,{value:r.type,onValueChange:f,children:[w,I]}),e[39]=r.type,e[40]=f,e[41]=h):h=e[41];let F;e[42]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("strong",{children:"Temporary"}),e[42]=F):F=e[42];let L;e[43]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",F," when the redirect may change;"," ",t.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),e[43]=L):L=e[43];let x;e[44]!==h?(x=t.jsxs("div",{className:"space-y-2",children:[C,h,L]}),e[44]=h,e[45]=x):x=e[45];let u;e[46]!==i?(u=o=>i({discardQueryParameters:o===!0}),e[46]=i,e[47]=u):u=e[47];let y;e[48]!==r.discardQueryParameters||e[49]!==u?(y=t.jsx(Y,{checked:r.discardQueryParameters,onCheckedChange:u}),e[48]=r.discardQueryParameters,e[49]=u,e[50]=y):y=e[50];let Q;e[51]===Symbol.for("react.memo_cache_sentinel")?(Q=t.jsx("span",{className:"text-sm",children:"Discard query parameters"}),e[51]=Q):Q=e[51];let j;e[52]!==y?(j=t.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[y,Q]}),e[52]=y,e[53]=j):j=e[53];let b;e[54]!==a||e[55]!==d||e[56]!==x||e[57]!==j?(b=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:t.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[a,d,x,j]})}),e[54]=a,e[55]=d,e[56]=x,e[57]=j,e[58]=b):b=e[58];let U;return e[59]!==b||e[60]!==p?(U=t.jsxs("div",{className:"flex h-full flex-col",children:[p,b]}),e[59]=b,e[60]=p,e[61]=U):U=e[61],U}function pe(S){return t.jsx(H,{value:S.value,children:S.label},S.value)}export{Zr as RedirectEditor};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CehAMgpE.js","assets/index-DS4rAqwY.js","assets/index-COYy9dBM.css","assets/Tool02-DGufqHHa.js","assets/CheckCircle-BU9eUffg.js","assets/Settings02-BIYEvLxH.js","assets/use-mcp-client-ChtUpBEU.js","assets/constants-D_FQAPnt.js","assets/auth-DhIYbras.js","assets/useInfiniteQuery-BJ3vgi17.js","assets/use-infinite-scroll-BVSdrRwU.js","assets/studio-tools-Brn4N5_U.js","assets/badge-JS3YhMut.js","assets/input-D5vcQhoL.js","assets/dropdown-menu-DHMJS27m.js","assets/Check-7WIITMAB.js","assets/ChevronRight-C-jwMI0x.js","assets/Circle-B-1p1V3u.js","assets/table-D44fXBcj.js","assets/toggle-group-C-P2ViEb.js","assets/use-view-mode-D9a3LP6U.js","assets/use-mobile-pnR-y4lq.js","assets/DotsVertical-D_WbX0qI.js","assets/FilterLines-Clx9vkNd.js","assets/Globe01-D8OVqcVm.js","assets/SearchMd-BBU4Wq1F.js","assets/dialog-COLQcCRL.js","assets/X-DqSvIURs.js","assets/AlertCircle-BspordpX.js","assets/Upload01-BjqchOMa.js","assets/alert-dialog-Dtszn4Rp.js","assets/card-DpjecHY2.js","assets/Trash01-DfkqWioB.js","assets/label-BgZiPLuQ.js","assets/select-32I1U7UG.js","assets/tooltip-Cv8zdj9x.js","assets/ChevronDown-CKvbLNpf.js","assets/ChevronUp-xEk-Hkjn.js","assets/switch-tHKnYv4p.js","assets/textarea-DaaHcv5N.js","assets/XCircle-BsaSEJdP.js","assets/checkbox-CblPd3Hc.js","assets/Eye-Qig4q8vO.js","assets/LinkExternal01-D0e_JnBB.js","assets/use-copy-DasuS9o3.js","assets/Copy01-j7g0HzRj.js","assets/Key01-DCLaxXrN.js","assets/Plus-BEhknaRt.js","assets/mcp-oauth-BreAtybq.js","assets/Play-Bo_FQ_Qt.js"])))=>i.map(i=>d[i]);
2
+ import{c as s,j as e,r as i,i as a,aX as o}from"./index-DS4rAqwY.js";import{R as m}from"./require-capability-Df20chi2.js";import"./use-capability-CrdOeLT6.js";import"./access-gate-B8vNVSDk.js";import"./capability-load-error-D0AccagV.js";const n=i.lazy(()=>o(()=>import("./registry-layout-CehAMgpE.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};