decocms 4.538.0 → 4.538.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 (393) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-BAkVUwUO.js → ActiveShapeUtils-CFnSXQrP.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-GiWY14UJ.js → AlertCircle-Ds_2WhXL.js} +1 -1
  3. package/dist/client/assets/{AreaChart-Dci3EK3c.js → AreaChart-nWCoaPwi.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-Dm1DOIO_.js → ArrowLeft-GaJGcGPr.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-DmZqFHxG.js → ArrowUp-Ve1cK4qn.js} +1 -1
  6. package/dist/client/assets/{BarChart-BjaeNt4p.js → BarChart-Dcp2-buy.js} +1 -1
  7. package/dist/client/assets/{Building02-BIDOqlzR.js → Building02-Cf4X-d51.js} +1 -1
  8. package/dist/client/assets/{CartesianChart-CB8wC0a9.js → CartesianChart-DBuztnGc.js} +1 -1
  9. package/dist/client/assets/{CategoricalChart-BA1mz10K.js → CategoricalChart-BmgZ7uPj.js} +1 -1
  10. package/dist/client/assets/{CheckCircle-XFmpER2C.js → CheckCircle-D7olxQBc.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-BB7VHQ8R.js → ChevronSelectorVertical-ByzlNFqX.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-BOBhKnkD.js → ChevronUp-zgLSJo7N.js} +1 -1
  13. package/dist/client/assets/{Copy01-CNd4Y0N1.js → Copy01-BzoMFIdk.js} +1 -1
  14. package/dist/client/assets/{CreditCard01-12Md4Si9.js → CreditCard01-DqirQppZ.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-PMMJbcO3.js → DotsVertical-DkVpKTIv.js} +1 -1
  16. package/dist/client/assets/{ErrorBarContext-B2VOr3wa.js → ErrorBarContext-vyTaVMu4.js} +1 -1
  17. package/dist/client/assets/{Globe04-CGU-JbvL.js → Globe04-CkFRv0Y2.js} +1 -1
  18. package/dist/client/assets/{Image01-W4iMjF9I.js → Image01-DqO4SvqB.js} +1 -1
  19. package/dist/client/assets/{Key01-BYK94S-D.js → Key01-DWe6k94t.js} +1 -1
  20. package/dist/client/assets/{Link01-B2ZgpsAH.js → Link01-3o9Elk03.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-BIEHba-f.js → LinkBroken01-DRUa5XT1.js} +1 -1
  22. package/dist/client/assets/{Minus-7M5sAhSA.js → Minus-kzkj_29B.js} +1 -1
  23. package/dist/client/assets/{Monitor01-Dbk8mjTp.js → Monitor01-is8ZyUQC.js} +1 -1
  24. package/dist/client/assets/{Play-BbRDkLyq.js → Play-CjXmtBKS.js} +1 -1
  25. package/dist/client/assets/{Plus-DdEst5EN.js → Plus-DCMQMI-9.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-BsJ5BUHq.js → ReferenceLine-BJ-vDTSh.js} +1 -1
  27. package/dist/client/assets/{SearchMd-tzLrT0kr.js → SearchMd-BPcibh2b.js} +1 -1
  28. package/dist/client/assets/{Sector--uekcoiH.js → Sector-BBrsL2eG.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-qJGLHlTH.js → ShoppingBag01-Bqi9yZ2c.js} +1 -1
  30. package/dist/client/assets/{Sun-D-KTUfZy.js → Sun-ChTfaRFO.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01--A00BMas.js → SwitchHorizontal01-vlFzntYK.js} +1 -1
  32. package/dist/client/assets/{Tool01-CkZ1DNSP.js → Tool01-D_DzUkH6.js} +1 -1
  33. package/dist/client/assets/{Trash01-CbJGwAlq.js → Trash01-D5WxxfhG.js} +1 -1
  34. package/dist/client/assets/{Upload01-DjD3JGRn.js → Upload01-CCpxUc0U.js} +1 -1
  35. package/dist/client/assets/{UserSquare-ynyjvlRU.js → UserSquare-BpdCC6Kq.js} +1 -1
  36. package/dist/client/assets/{Users01-DdZpwbA5.js → Users01-BewLilnR.js} +1 -1
  37. package/dist/client/assets/{XClose-DceAPqwG.js → XClose-CBoBcHI9.js} +1 -1
  38. package/dist/client/assets/{ZoomOut-CdHfy3Ql.js → ZoomOut-UKDGw6yq.js} +1 -1
  39. package/dist/client/assets/{access-gate-DJuyzn-i.js → access-gate-B5lnrNp3.js} +1 -1
  40. package/dist/client/assets/{add-connection-dialog-C1MwBP_r.js → add-connection-dialog-C5Y_DQIe.js} +1 -1
  41. package/dist/client/assets/{agent-analytics-dfXX1cU0.js → agent-analytics-CrWuxji2.js} +1 -1
  42. package/dist/client/assets/agent-app-B8g7HXCG.js +1 -0
  43. package/dist/client/assets/{agent-assets-CyRSmalt.js → agent-assets-CjCohDd1.js} +1 -1
  44. package/dist/client/assets/{agent-automation-CJd8wY6G.js → agent-automation-Cw1vupSq.js} +1 -1
  45. package/dist/client/assets/{agent-automations-D6Adafc6.js → agent-automations-DADyH9LU.js} +1 -1
  46. package/dist/client/assets/{agent-calendar-Cv3ib5K3.js → agent-calendar-BpnS1B-Q.js} +1 -1
  47. package/dist/client/assets/{agent-connect-sources-DHBUa3O2.js → agent-connect-sources-BUtEOOEi.js} +1 -1
  48. package/dist/client/assets/agent-deck-BjW3Z3s-.js +1 -0
  49. package/dist/client/assets/{agent-e2e-VKi-AtE0.js → agent-e2e-BhriQdAN.js} +1 -1
  50. package/dist/client/assets/agent-experiments-Dr_m9GDA.js +1 -0
  51. package/dist/client/assets/{agent-file-DZcooBP1.js → agent-file-GsiMJmdT.js} +1 -1
  52. package/dist/client/assets/{agent-hosting-B7r4qgUV.js → agent-hosting-3IKxPqmX.js} +1 -1
  53. package/dist/client/assets/{agent-icon-gy5gO-IG.js → agent-icon-CXyyqpMa.js} +1 -1
  54. package/dist/client/assets/agent-library-4NnJCrl7.js +1 -0
  55. package/dist/client/assets/agent-library-file-wOie6wjv.js +1 -0
  56. package/dist/client/assets/agent-monitor-D93cGiV4.js +1 -0
  57. package/dist/client/assets/{agent-overview-d81QkJ3q.js → agent-overview-B5PvLXFR.js} +1 -1
  58. package/dist/client/assets/{agent-releases-BZ3IyOFH.js → agent-releases-bMsZ5yQZ.js} +1 -1
  59. package/dist/client/assets/agent-settings-0mcQwgqo.js +1 -0
  60. package/dist/client/assets/{agent-site-editor-CCwQiTOn.js → agent-site-editor-DN3KRvIk.js} +1 -1
  61. package/dist/client/assets/agent-site-editor-code-BQblA5PP.js +2 -0
  62. package/dist/client/assets/agent-site-editor-content-CzD7r_8-.js +1 -0
  63. package/dist/client/assets/agent-site-editor-preview-C0fyF2la.js +1 -0
  64. package/dist/client/assets/agent-view-BqQguXfW.js +1 -0
  65. package/dist/client/assets/{agent-view-guard-DZoYULDN.js → agent-view-guard-z90QrYwh.js} +1 -1
  66. package/dist/client/assets/{agents-list-DbBurDms.js → agents-list-DSXkyPRk.js} +1 -1
  67. package/dist/client/assets/{ai-providers-_rRUHcQ7.js → ai-providers-BbOFlSCp.js} +1 -1
  68. package/dist/client/assets/{alert-DvVSGyF3.js → alert-DtgstSU8.js} +1 -1
  69. package/dist/client/assets/{analytics-sections-NE_bzeJg.js → analytics-sections-u74BlDgr.js} +1 -1
  70. package/dist/client/assets/api-keys-C3Yfrg07.js +1 -0
  71. package/dist/client/assets/{api-keys-ahow6ILL.js → api-keys-CH40x9b5.js} +1 -1
  72. package/dist/client/assets/{app-editor-B3KQDcRV.js → app-editor-lpYZsEpK.js} +1 -1
  73. package/dist/client/assets/{asset-utils-DHO8iK1b.js → asset-utils-D4yG02dq.js} +1 -1
  74. package/dist/client/assets/{auth-BaDT9x77.js → auth-BdHhBAFh.js} +1 -1
  75. package/dist/client/assets/{auth-catchall-DjY3AfiL.js → auth-catchall-GYBtR3ic.js} +1 -1
  76. package/dist/client/assets/{auth-entry-CdkNSgrh.js → auth-entry-CfOxikcY.js} +1 -1
  77. package/dist/client/assets/{auth-split-layout-j0u9Y9VH.js → auth-split-layout-D4alojNr.js} +1 -1
  78. package/dist/client/assets/{authenticate-and-persist-oauth-Ck_jXxSo.js → authenticate-and-persist-oauth-C5KpSVFq.js} +1 -1
  79. package/dist/client/assets/{automation-list-row-CXx6fw_j.js → automation-list-row-CFMhUt1F.js} +1 -1
  80. package/dist/client/assets/{automation-runs-cOtzrPMg.js → automation-runs-r4ByP7K9.js} +1 -1
  81. package/dist/client/assets/{automations-BpilPhr-.js → automations-CJg1PL_7.js} +1 -1
  82. package/dist/client/assets/{autosend-BH28Njc8.js → autosend-BgdlbO_i.js} +1 -1
  83. package/dist/client/assets/{badge-Bwux_Jdb.js → badge-CCN5Ad5E.js} +1 -1
  84. package/dist/client/assets/{block-document-DukFXvb9.js → block-document-BQbDLhhm.js} +1 -1
  85. package/dist/client/assets/{blocks-preview-workspace-context-DK3CHyzo.js → blocks-preview-workspace-context-BoGPIYEL.js} +1 -1
  86. package/dist/client/assets/{blocks-tab-states-BHECZHqH.js → blocks-tab-states-XuAlkDNG.js} +1 -1
  87. package/dist/client/assets/{blog-schema-BbmcwIps.js → blog-schema-BHUk1mcN.js} +1 -1
  88. package/dist/client/assets/{buckets-Dqk3SwDj.js → buckets-B4G1WogN.js} +1 -1
  89. package/dist/client/assets/{build-improve-prompt-doc-ChB-j5_L.js → build-improve-prompt-doc-BSYSdSKQ.js} +1 -1
  90. package/dist/client/assets/{calendar-BSsKj4_c.js → calendar-DFYFqMKq.js} +1 -1
  91. package/dist/client/assets/{capability-load-error-DUUGeyFg.js → capability-load-error-WlqEME5j.js} +1 -1
  92. package/dist/client/assets/{category-editor-CWstRZQV.js → category-editor-DH1seDHj.js} +1 -1
  93. package/dist/client/assets/{cdn-tab-BTtRBzdr.js → cdn-tab-DtA8sFST.js} +1 -1
  94. package/dist/client/assets/{chart-wRtBwGr8.js → chart-DBJ0nBTj.js} +1 -1
  95. package/dist/client/assets/{chat-context-CMHTyqVA.js → chat-context-B0QfMtK7.js} +1 -1
  96. package/dist/client/assets/{chat-draft-CircrMX4.js → chat-draft-C2BZw8j7.js} +1 -1
  97. package/dist/client/assets/{checkbox-B6Jej9eU.js → checkbox-CzFYIYeS.js} +1 -1
  98. package/dist/client/assets/{choose-editor-CWRKxtO4.js → choose-editor-DJ0ZEPVl.js} +1 -1
  99. package/dist/client/assets/{cli-auth-success-DsdcdvJc.js → cli-auth-success-BXfPKx1V.js} +1 -1
  100. package/dist/client/assets/{client-icons-y1Q10YFN.js → client-icons-azojl93a.js} +1 -1
  101. package/dist/client/assets/{cms-settings-editor-Rl7CYt-n.js → cms-settings-editor-CVlNsR9g.js} +1 -1
  102. package/dist/client/assets/{collapsible-BX4HWcSo.js → collapsible-D7SyoWI6.js} +1 -1
  103. package/dist/client/assets/{collection-detail-CIMh3Jei.js → collection-detail-2IiivUXw.js} +1 -1
  104. package/dist/client/assets/{collection-display-button-B6dcxjrb.js → collection-display-button-BdfHxfK8.js} +1 -1
  105. package/dist/client/assets/{collection-search-DF_k1vPg.js → collection-search-ZYYfADQw.js} +1 -1
  106. package/dist/client/assets/{collection-table-wrapper-DY_FxG6c.js → collection-table-wrapper-nUoCOMI0.js} +1 -1
  107. package/dist/client/assets/{collection-tabs-CY_ndJsm.js → collection-tabs-DUT-_32y.js} +1 -1
  108. package/dist/client/assets/{column-rules-AJ36A-hh.js → column-rules-zsCVfrEU.js} +1 -1
  109. package/dist/client/assets/{combobox-BtOTHSYG.js → combobox-BcG9kY9H.js} +1 -1
  110. package/dist/client/assets/{command-CJ4gxSMG.js → command-DMjv9UCp.js} +1 -1
  111. package/dist/client/assets/{companion-mcps-section-C2KCTUUR.js → companion-mcps-section-BbQDgg34.js} +1 -1
  112. package/dist/client/assets/{config-CPsLBULE.js → config-BRQKyTF3.js} +1 -1
  113. package/dist/client/assets/{connect-kUNXUGjC.js → connect-PJXKtBkj.js} +1 -1
  114. package/dist/client/assets/{connect-layout-VH1UNOcl.js → connect-layout-CdIOrnnB.js} +1 -1
  115. package/dist/client/assets/{connect-source-dialog-Ctou8yGb.js → connect-source-dialog-wB_CpMH5.js} +1 -1
  116. package/dist/client/assets/{connection-DK177lmE.js → connection-Co5j8iMf.js} +1 -1
  117. package/dist/client/assets/{connection-card-B-1tJM8j.js → connection-card-C0W4Y5E8.js} +1 -1
  118. package/dist/client/assets/{connection-detail--WCzBAT2.js → connection-detail-CndRUN2P.js} +1 -1
  119. package/dist/client/assets/{connection-form-helpers-1yiAHH1P.js → connection-form-helpers-Dz9M5mpv.js} +1 -1
  120. package/dist/client/assets/{connections-Caq3gWB-.js → connections-CyFz6dcc.js} +1 -1
  121. package/dist/client/assets/{content-tab-Cc0Q2ULJ.js → content-tab-YfBULH2U.js} +3 -3
  122. package/dist/client/assets/{context-B-ngValp.js → context-CyZYwDX8.js} +1 -1
  123. package/dist/client/assets/{context-menu-BU8ZaQuM.js → context-menu-BR-HLcTM.js} +1 -1
  124. package/dist/client/assets/{context-shell-DWKwHJHJ.js → context-shell-v5YxJs4X.js} +3 -3
  125. package/dist/client/assets/{core.esm-DGTo4W3O.js → core.esm-CJau0VZ_.js} +1 -1
  126. package/dist/client/assets/{create-organization-dialog-xggmlIiR.js → create-organization-dialog-D3uDt-mS.js} +1 -1
  127. package/dist/client/assets/{daily-pulse-qg2c97vc.js → daily-pulse-CEYtilUl.js} +1 -1
  128. package/dist/client/assets/{discover-UBQau0mq.js → discover-Dt5UzKit.js} +1 -1
  129. package/dist/client/assets/{domain-settings-DOo9wUGy.js → domain-settings-Vd91cRuZ.js} +1 -1
  130. package/dist/client/assets/{drawer-cCeHz-L_.js → drawer-DVDEynMl.js} +1 -1
  131. package/dist/client/assets/{editor-CJ3BTpUv.js → editor-BPHWgsFO.js} +1 -1
  132. package/dist/client/assets/{editor-classes-BWss0ahE.js → editor-classes-DO0eVExg.js} +1 -1
  133. package/dist/client/assets/{empty-state-C1tanHed.js → empty-state-6fA1LS5m.js} +1 -1
  134. package/dist/client/assets/{empty-state-KX515AmC.js → empty-state-C98_cQun.js} +1 -1
  135. package/dist/client/assets/{experiments-tab-ChFL1Dxn.js → experiments-tab-CVhWHQz6.js} +1 -1
  136. package/dist/client/assets/{experiments-tab-choice-Cmll9XRX.js → experiments-tab-choice-9WDva_co.js} +1 -1
  137. package/dist/client/assets/{extract-connection-data-B4eV0UAf.js → extract-connection-data-CQ-9c4M4.js} +1 -1
  138. package/dist/client/assets/{feature-gate-KjTs7hEa.js → feature-gate-BM2nPq_K.js} +1 -1
  139. package/dist/client/assets/{feature-paywall-CDnBgqeG.js → feature-paywall-BkRDvqlZ.js} +1 -1
  140. package/dist/client/assets/{file-explorer-vsnyJPrF.js → file-explorer-CGmxhajs.js} +1 -1
  141. package/dist/client/assets/{file-preview-CSlYixvL.js → file-preview-CW106Au3.js} +1 -1
  142. package/dist/client/assets/{file-share-button-DcdF8SPH.js → file-share-button-B6mdTr9l.js} +1 -1
  143. package/dist/client/assets/{file-type-icon-CGcvQl1w.js → file-type-icon-BQOlt6bc.js} +1 -1
  144. package/dist/client/assets/{folder-icon-DMKaQAkS.js → folder-icon-CEeLVxaA.js} +1 -1
  145. package/dist/client/assets/{form-D3QMRyGF.js → form-D31DoepE.js} +1 -1
  146. package/dist/client/assets/{general-CeodHkRL.js → general-CJiud_H3.js} +1 -1
  147. package/dist/client/assets/{held-block-view-B7Cg1lHe.js → held-block-view-CB3xOhYs.js} +3 -3
  148. package/dist/client/assets/{home-B2OMFpn1.js → home-CNcl_kvy.js} +1 -1
  149. package/dist/client/assets/{hosted-publish-feedback-BHrbF1cA.js → hosted-publish-feedback-BSdcqLMQ.js} +1 -1
  150. package/dist/client/assets/{icon-button-QBx8ZygL.js → icon-button-CbqEy6tn.js} +1 -1
  151. package/dist/client/assets/{index-D0C3Q4Qh.js → index-7IShUKYk.js} +1 -1
  152. package/dist/client/assets/{index-D5DdhWpU.js → index-BU5FmmeM.js} +1 -1
  153. package/dist/client/assets/{index-JgxModG_.js → index-BdgyAwPA.js} +1 -1
  154. package/dist/client/assets/{index-D_g5fbwO.js → index-CD3fj83c.js} +3 -3
  155. package/dist/client/assets/{index-CxwJoIfH.js → index-CQr86l05.js} +1 -1
  156. package/dist/client/assets/{index-w4PzPo3L.js → index-CeKKvvrE.js} +1 -1
  157. package/dist/client/assets/{index-CCCFXbTH.js → index-Cm3twnkq.js} +1 -1
  158. package/dist/client/assets/{index-BFCPigEv.js → index-Cnj5xCCg.js} +1 -1
  159. package/dist/client/assets/{index-DU9qEpSd.js → index-D4YmJ5bn.js} +1 -1
  160. package/dist/client/assets/{index-DXUKwqTT.js → index-DGMpoxyU.js} +1 -1
  161. package/dist/client/assets/{index-DzZQyUBS.js → index-DZBneeX2.js} +1 -1
  162. package/dist/client/assets/{index-CK3OHota.js → index-D_3ll4pl.js} +1 -1
  163. package/dist/client/assets/{index-BKdv8yOo.js → index-GuHT1Dqd.js} +1 -1
  164. package/dist/client/assets/{index-f6pvFBro.js → index-XNAHJkYn.js} +1 -1
  165. package/dist/client/assets/{index-redirect-DR3kwfY_.js → index-redirect-D2Jxd7RA.js} +1 -1
  166. package/dist/client/assets/{index-nla-PJCP.js → index-zj4emT8y.js} +1 -1
  167. package/dist/client/assets/{infiniteQueryObserver-OmdTxLUx.js → infiniteQueryObserver-DIZnkeqn.js} +1 -1
  168. package/dist/client/assets/{infra-billing-CnuDBKgM.js → infra-billing-CHM9W63C.js} +1 -1
  169. package/dist/client/assets/{input-Bn4dO9O5.js → input-B5oK-tm6.js} +1 -1
  170. package/dist/client/assets/{input-BM_N6Y5w.js → input-C8LAqcW8.js} +3 -3
  171. package/dist/client/assets/{integration-icon-CjeKpmHY.js → integration-icon-DrUX7MlE.js} +1 -1
  172. package/dist/client/assets/{jira-icon-tR4A-oH7.js → jira-icon-BZpTWRDk.js} +1 -1
  173. package/dist/client/assets/{label-OhIpdV40.js → label-BjHcnejP.js} +1 -1
  174. package/dist/client/assets/{layout-DanHGYTn.js → layout-D-7ngqTv.js} +1 -1
  175. package/dist/client/assets/{legacy-agents-deep-CJWuMxLh.js → legacy-agents-deep-DlwSBmEx.js} +1 -1
  176. package/dist/client/assets/{legacy-main-redirect-LHCezREc.js → legacy-main-redirect-CjBqfgkP.js} +1 -1
  177. package/dist/client/assets/library-DGmRBsYh.js +1 -0
  178. package/dist/client/assets/{login-CGX_-9NW.js → login-DoscEwvo.js} +1 -1
  179. package/dist/client/assets/{markdown-Ccl-upwY.js → markdown-DCOlrq5H.js} +1 -1
  180. package/dist/client/assets/{mcp-app-renderer-Bd1deLT9.js → mcp-app-renderer-CpTKqKhy.js} +1 -1
  181. package/dist/client/assets/{mcp-oauth-TQiYMgbF.js → mcp-oauth-CFWliElr.js} +1 -1
  182. package/dist/client/assets/{mcp-oauth-V5LqpjQv.js → mcp-oauth-rYjfwNTN.js} +1 -1
  183. package/dist/client/assets/{members-D-q5n-4d.js → members-CtNRNIZz.js} +1 -1
  184. package/dist/client/assets/{memory-fmVzKsZd.js → memory-BzISrBF9.js} +1 -1
  185. package/dist/client/assets/{mini-report-page-C-2Xi8qg.js → mini-report-page-COcteM5H.js} +1 -1
  186. package/dist/client/assets/{mock-board-BZHCoT8_.js → mock-board-C1z7Js6O.js} +3 -3
  187. package/dist/client/assets/{monaco-editor-DXrAgHWf.js → monaco-editor-8NbaeYxI.js} +1 -1
  188. package/dist/client/assets/{monitoring-D9N3dAzZ.js → monitoring-CP2OHem9.js} +1 -1
  189. package/dist/client/assets/{monitoring-stats-row-CGUI7QEq.js → monitoring-stats-row-DJwGXbaX.js} +1 -1
  190. package/dist/client/assets/{multi-select-74_OAX-H.js → multi-select-MrdYsdQJ.js} +1 -1
  191. package/dist/client/assets/{mustache-CbGdlb3Z.js → mustache-Cse4SZP_.js} +1 -1
  192. package/dist/client/assets/{named-rule-uses-CjwCvwXA.js → named-rule-uses-DbKcBg9W.js} +1 -1
  193. package/dist/client/assets/{new-project-dialog-WrDYKTwo.js → new-project-dialog-t1kb5xiA.js} +1 -1
  194. package/dist/client/assets/{oauth-callback-ai-provider-WCBjh_Q4.js → oauth-callback-ai-provider-DsuZukYv.js} +1 -1
  195. package/dist/client/assets/{oauth-callback-2GTQxAE4.js → oauth-callback-bSFZUAjG.js} +1 -1
  196. package/dist/client/assets/{onboarding-Vxd9x2Lr.js → onboarding-8qc2gNkO.js} +1 -1
  197. package/dist/client/assets/{openai-conversation-BmXZjGte.js → openai-conversation-CaEjm2EP.js} +1 -1
  198. package/dist/client/assets/{optimistic-project-sidebar-views-Blt0TNGA.js → optimistic-project-sidebar-views-B6Zgt9ra.js} +1 -1
  199. package/dist/client/assets/{order-monitor-day-RXwFA0HX.js → order-monitor-day-kqoS-Y_Q.js} +1 -1
  200. package/dist/client/assets/{organization-choice-Bh1vqoey.js → organization-choice-DZZeL1XT.js} +1 -1
  201. package/dist/client/assets/{orgs-D8Cd4o2t.js → orgs-kt9vh-dy.js} +1 -1
  202. package/dist/client/assets/{page-seo-form-PkkDJzzh.js → page-seo-form-Dp0KuKjw.js} +1 -1
  203. package/dist/client/assets/{pair-CUzOr8bI.js → pair-o3WkMbxi.js} +1 -1
  204. package/dist/client/assets/{parse-sections-CoU5h-pA.js → parse-sections-B9Tf8cb0.js} +1 -1
  205. package/dist/client/assets/{plan-BFEo7Gl8.js → plan-9q_Cw6ji.js} +1 -1
  206. package/dist/client/assets/{plan-ladder-BD0dFgi7.js → plan-ladder-6A8SWD1S.js} +1 -1
  207. package/dist/client/assets/{popover-C_zTb0re.js → popover-DNa0geGd.js} +1 -1
  208. package/dist/client/assets/{post-calendar-DFQsiTn7.js → post-calendar-N4MlB9EJ.js} +1 -1
  209. package/dist/client/assets/{post-editor-DE0wNTFZ.js → post-editor-BPhcrZnu.js} +1 -1
  210. package/dist/client/assets/{preview-content-C-qeGfnu.js → preview-content-BGa1aq6N.js} +1 -1
  211. package/dist/client/assets/{preview-dialog-DQK5-M23.js → preview-dialog-BcLlrF7L.js} +1 -1
  212. package/dist/client/assets/{preview-panel-D-QfoUDv.js → preview-panel-BipRwFTG.js} +1 -1
  213. package/dist/client/assets/{preview-tab-C3PhJlLe.js → preview-tab-D_XmjQ94.js} +3 -3
  214. package/dist/client/assets/{product-picker-dialog-pe0_j8eG.js → product-picker-dialog-CuQoqK9j.js} +1 -1
  215. package/dist/client/assets/{profile-DAfBQItX.js → profile-FuN22bNA.js} +1 -1
  216. package/dist/client/assets/{project-app-view-B6LGlz1-.js → project-app-view-MMtV5o0V.js} +1 -1
  217. package/dist/client/assets/{project-apps-CPupwOqV.js → project-apps-GTR8G8Ys.js} +1 -1
  218. package/dist/client/assets/{project-feed-vxPoCD9l.js → project-feed-CkPrHQsk.js} +1 -1
  219. package/dist/client/assets/{project-icon-Cr845_CG.js → project-icon-fmbPzLuQ.js} +1 -1
  220. package/dist/client/assets/project-reports-Dg-vdrJe.js +1 -0
  221. package/dist/client/assets/project-tasks-C1Fo6Q_q.js +1 -0
  222. package/dist/client/assets/{projects-BjWFpkwY.js → projects-Do4dpHSf.js} +1 -1
  223. package/dist/client/assets/{projects-empty-state-BYlm9UUi.js → projects-empty-state-DOLbuC5C.js} +1 -1
  224. package/dist/client/assets/{prompts-Cssd3XKK.js → prompts-Cbd5IniR.js} +1 -1
  225. package/dist/client/assets/record-editor-CzhxcAkT.js +1 -0
  226. package/dist/client/assets/{redirect-editor-DMEEDgtP.js → redirect-editor-Be9-Qvv_.js} +1 -1
  227. package/dist/client/assets/{releases-api-Bk5t0ert.js → releases-api-CJKOs4iF.js} +1 -1
  228. package/dist/client/assets/reports-BC3mXfe2.js +1 -0
  229. package/dist/client/assets/{reports-Dgbcbhtv.js → reports-Cwi7mYJf.js} +1 -1
  230. package/dist/client/assets/{reports-onboarding-DqBX9ov6.js → reports-onboarding-DBwy9sOO.js} +1 -1
  231. package/dist/client/assets/{reports-tab-CacnVvHJ.js → reports-tab-C6GCZ_1e.js} +2 -2
  232. package/dist/client/assets/repositories-C-vvRVWc.js +1 -0
  233. package/dist/client/assets/{repositories-ByXlUnyd.js → repositories-CLK21UHp.js} +1 -1
  234. package/dist/client/assets/{repository-binding-By57Fxxd.js → repository-binding-BpxbVNK2.js} +1 -1
  235. package/dist/client/assets/{repository-import-picker-CEj8FSjR.js → repository-import-picker-BIa2KeQJ.js} +1 -1
  236. package/dist/client/assets/{repository-picker-CYEr0G_x.js → repository-picker-D1FdmUjm.js} +1 -1
  237. package/dist/client/assets/{require-capability-DEL3Av3U.js → require-capability-DiaarhnE.js} +1 -1
  238. package/dist/client/assets/{required-auth-layout-CjuTV0NI.js → required-auth-layout-CLzneFN8.js} +1 -1
  239. package/dist/client/assets/{reset-password-UdQOTW8F.js → reset-password-CFxj9jWH.js} +1 -1
  240. package/dist/client/assets/{resizable-Dm7Ppqsk.js → resizable-BRQDRNKu.js} +1 -1
  241. package/dist/client/assets/{resolve-tab-icon-RIV-aaN8.js → resolve-tab-icon-bhxvukg7.js} +1 -1
  242. package/dist/client/assets/{review-settings-BTvN1SXb.js → review-settings-BY-BbFx8.js} +1 -1
  243. package/dist/client/assets/{roles-BIW20J-X.js → roles-8aR2wtse.js} +1 -1
  244. package/dist/client/assets/{route-ZLMvRGu5.js → route-BKABB7N0.js} +1 -1
  245. package/dist/client/assets/route-CBcyPgFB.js +1 -0
  246. package/dist/client/assets/{route-CXQCqWNG.js → route-D0phypJY.js} +1 -1
  247. package/dist/client/assets/{sandbox-lifecycle-context-Dgq0M2ct.js → sandbox-lifecycle-context-CP46WhuD.js} +1 -1
  248. package/dist/client/assets/{schema-Bo1PMfNO.js → schema-CZyOweh2.js} +1 -1
  249. package/dist/client/assets/{schema-BCNeMwy9.js → schema-DlfScG-X.js} +1 -1
  250. package/dist/client/assets/{scroll-area-B5DHgOgq.js → scroll-area-DfDFaLoK.js} +1 -1
  251. package/dist/client/assets/{search-input-DUnxVDPX.js → search-input-Ce0LKLJH.js} +1 -1
  252. package/dist/client/assets/{search-toggle-BNKJfOTM.js → search-toggle-mwrYnTpd.js} +1 -1
  253. package/dist/client/assets/{secret-picker-_MclVjTA.js → secret-picker-0ebHTmVr.js} +1 -1
  254. package/dist/client/assets/{secrets-BefWQ0Kr.js → secrets-i5YFgzbS.js} +1 -1
  255. package/dist/client/assets/{section-array-field-CkpcagA9.js → section-array-field-oWK_IMJM.js} +1 -1
  256. package/dist/client/assets/{sections-BnnbYMn9.js → sections-BhWKKbK8.js} +1 -1
  257. package/dist/client/assets/{sections-editor-cmh9dcT6.js → sections-editor-B6j8jHtF.js} +1 -1
  258. package/dist/client/assets/{select-BjHL6qhR.js → select-CEUzoC6o.js} +1 -1
  259. package/dist/client/assets/{select-model-VvtmJMg1.js → select-model-rItZIAGH.js} +1 -1
  260. package/dist/client/assets/{seo-editor-CvmOkvM2.js → seo-editor-BNYNobIZ.js} +1 -1
  261. package/dist/client/assets/{separator-DNlHxi9i.js → separator-DnXEcPkq.js} +1 -1
  262. package/dist/client/assets/settings-tab-4qrzXqQr.js +1 -0
  263. package/dist/client/assets/{sheet-BDXuMmna.js → sheet-BdF546xt.js} +1 -1
  264. package/dist/client/assets/{shell-layout-CjolmPkc.js → shell-layout-BHS6wDGg.js} +1 -1
  265. package/dist/client/assets/{site-draft-actions-BHDZ9fow.js → site-draft-actions-D9KLDMNb.js} +1 -1
  266. package/dist/client/assets/{site-draft-view-DS-zp5U3.js → site-draft-view-Dwp6ox-i.js} +2 -2
  267. package/dist/client/assets/site-editor-C_RF5xzW.js +1 -0
  268. package/dist/client/assets/{site-editor-toast-l1dhSHCt.js → site-editor-toast-qpDJ9c8x.js} +1 -1
  269. package/dist/client/assets/{skills-G8RLqpdy.js → skills-DkTHa0rC.js} +1 -1
  270. package/dist/client/assets/{slider-CMbVyVJQ.js → slider-C2GpxduI.js} +1 -1
  271. package/dist/client/assets/{sortable.esm-ZyT2TvZV.js → sortable.esm-DSLK_VXl.js} +1 -1
  272. package/dist/client/assets/{sso-dK3w8qI7.js → sso-9_HDrEa6.js} +1 -1
  273. package/dist/client/assets/{suggestion-DXuFICZE.js → suggestion-DWnq0fLw.js} +1 -1
  274. package/dist/client/assets/{switch-CZBObdNg.js → switch-JNrraILQ.js} +1 -1
  275. package/dist/client/assets/{symbol-PHC61XFI.js → symbol-DN0zRhCk.js} +1 -1
  276. package/dist/client/assets/{synced-repos-Bz2NDPvW.js → synced-repos-BqaODaqZ.js} +1 -1
  277. package/dist/client/assets/{tab-icon-glyph-Dasyata1.js → tab-icon-glyph-CAGljGST.js} +1 -1
  278. package/dist/client/assets/{table-DCMR2n9h.js → table-CQyj6E6L.js} +1 -1
  279. package/dist/client/assets/{tabs-C-9VaJhf.js → tabs-Dsn3YxbL.js} +1 -1
  280. package/dist/client/assets/{task-assignee-avatar-CIYygg8_.js → task-assignee-avatar-_ItHEfyB.js} +1 -1
  281. package/dist/client/assets/{task-board-CbT-KEYT.js → task-board-Bl8e1XTd.js} +1 -1
  282. package/dist/client/assets/{task-route-BvmEqfe-.js → task-route-TqMS3_Xw.js} +1 -1
  283. package/dist/client/assets/{task-status-DBdRSG-l.js → task-status-RY841uT0.js} +1 -1
  284. package/dist/client/assets/{taskboard-analytics-D-HgYUFe.js → taskboard-analytics-CVrP0ozY.js} +1 -1
  285. package/dist/client/assets/tasks-BQyDO5YT.js +1 -0
  286. package/dist/client/assets/{tasks-TnH1j2VG.js → tasks-DKrnOMsF.js} +1 -1
  287. package/dist/client/assets/{textarea-CM43JFTD.js → textarea-DHsxWS9H.js} +1 -1
  288. package/dist/client/assets/{thread-analytics-0CnU2XFc.js → thread-analytics-BlBn_Ue7.js} +1 -1
  289. package/dist/client/assets/{thread-intent-Cqs1opf_.js → thread-intent-CIa2mqqt.js} +1 -1
  290. package/dist/client/assets/{thread-route-B5ut0NU_.js → thread-route-CUBgdoZ0.js} +1 -1
  291. package/dist/client/assets/{thread-route-LGDwdWed.js → thread-route-OlD3VCew.js} +1 -1
  292. package/dist/client/assets/{thread-sheet-body-O5yfLvQS.js → thread-sheet-body-DcCGHErs.js} +1 -1
  293. package/dist/client/assets/{time-range-picker-CZQbuwqz.js → time-range-picker-DG1uQaMF.js} +1 -1
  294. package/dist/client/assets/{toggle-group-D2zNn425.js → toggle-group-BFn7oikO.js} +1 -1
  295. package/dist/client/assets/{tool-namespace-DTR_kwTg.js → tool-namespace-DtJ2HF8a.js} +1 -1
  296. package/dist/client/assets/{toolbar-icon-button-BHKfNIjM.js → toolbar-icon-button-DZ8JPQ_p.js} +1 -1
  297. package/dist/client/assets/{tooltip-C9Lea48a.js → tooltip-BFOA909d.js} +1 -1
  298. package/dist/client/assets/{tooltipContext-DOujR0BI.js → tooltipContext-2V1j45YY.js} +1 -1
  299. package/dist/client/assets/{track-7vwNFuqv.js → track-XCtPNBYr.js} +1 -1
  300. package/dist/client/assets/{types-CcFIA35S.js → types-BxxJTVxe.js} +1 -1
  301. package/dist/client/assets/{url-slug-BwNJtYgj.js → url-slug-nNAf_zW7.js} +1 -1
  302. package/dist/client/assets/{usage-stats-B1BWkK1R.js → usage-stats-bTZK9s6S.js} +1 -1
  303. package/dist/client/assets/{use-ai-providers-CGxV6Ump.js → use-ai-providers-CehDWGIM.js} +1 -1
  304. package/dist/client/assets/{use-apply-named-rule-CZu73ste.js → use-apply-named-rule-DlF_o_O9.js} +1 -1
  305. package/dist/client/assets/{use-automations-CnW9gLcq.js → use-automations-CcifryrO.js} +1 -1
  306. package/dist/client/assets/{use-autosave-DXgCcKSg.js → use-autosave-Brq7MoHE.js} +1 -1
  307. package/dist/client/assets/{use-chat-layout-state-Df9sHeOa.js → use-chat-layout-state-DX2dVnP3.js} +1 -1
  308. package/dist/client/assets/{use-clock-tick-CIwUUqD7.js → use-clock-tick-9j5u-Rtx.js} +1 -1
  309. package/dist/client/assets/{use-cms-publish-actions-uyU5PTIQ.js → use-cms-publish-actions-CpgSJalU.js} +1 -1
  310. package/dist/client/assets/{use-connect-companion-GZcPBM3Q.js → use-connect-companion-DZRxznzL.js} +1 -1
  311. package/dist/client/assets/{use-connection-Bl0Snogb.js → use-connection-BUd2E1e4.js} +1 -1
  312. package/dist/client/assets/{use-copy-BymKXx9E.js → use-copy-AGiqroYo.js} +1 -1
  313. package/dist/client/assets/{use-create-virtual-mcp-3B7eJ8ln.js → use-create-virtual-mcp-DUfDYvY_.js} +1 -1
  314. package/dist/client/assets/{use-date-fns-locale-C9WVsNHe.js → use-date-fns-locale-t1pyfasq.js} +1 -1
  315. package/dist/client/assets/{use-debounced-autosave-CM2eDIid.js → use-debounced-autosave-uS4v6WVr.js} +1 -1
  316. package/dist/client/assets/{use-debounced-value-DD-Uo8LF.js → use-debounced-value-Bvr3c0Bg.js} +1 -1
  317. package/dist/client/assets/{use-deco-credits-DI-Ge8Zp.js → use-deco-credits-D3Ul2AHT.js} +1 -1
  318. package/dist/client/assets/{use-decopilot-events-C_or96Qd.js → use-decopilot-events-CQwRTT8g.js} +1 -1
  319. package/dist/client/assets/{use-delete-connection-DPdqR9cX.js → use-delete-connection-MUWA0C1G.js} +1 -1
  320. package/dist/client/assets/{use-deployment-admin-B4OyNHUs.js → use-deployment-admin-DtrC7GR5.js} +1 -1
  321. package/dist/client/assets/{use-fast-preview-draft-url-DTWM-ut4.js → use-fast-preview-draft-url-B40YryGZ.js} +1 -1
  322. package/dist/client/assets/{use-file-configs-CuUOK6xS.js → use-file-configs-C87nAUnF.js} +1 -1
  323. package/dist/client/assets/{use-inbox-feed-BXBI7C7m.js → use-inbox-feed-BrxFGNGq.js} +1 -1
  324. package/dist/client/assets/{use-infinite-scroll-DtUCDqWy.js → use-infinite-scroll-BBt1tR4g.js} +1 -1
  325. package/dist/client/assets/{use-join-requests-Cif12_Yd.js → use-join-requests-KZQ6WXPe.js} +1 -1
  326. package/dist/client/assets/{use-main-panel-tabs-DwRWmy8l.js → use-main-panel-tabs-DFZxwocn.js} +1 -1
  327. package/dist/client/assets/{use-mcp-auth-status-CUefMSEY.js → use-mcp-auth-status-fGawges9.js} +1 -1
  328. package/dist/client/assets/{use-mcp-client-B7ar03Mf.js → use-mcp-client-BHU-qsif.js} +1 -1
  329. package/dist/client/assets/{use-mcp-prompts-CSHnamAQ.js → use-mcp-prompts-DVKPAtxK.js} +1 -1
  330. package/dist/client/assets/{use-mcp-tools-C3K1Ek3G.js → use-mcp-tools-DTZgJEdW.js} +1 -1
  331. package/dist/client/assets/{use-mobile-DkF4ktIE.js → use-mobile-C7tjJGs8.js} +1 -1
  332. package/dist/client/assets/{use-move-blocks-D7FqLWkn.js → use-move-blocks-Co0993wA.js} +1 -1
  333. package/dist/client/assets/{use-navigate-to-agent-BMet2fBs.js → use-navigate-to-agent-BZyzGjVW.js} +1 -1
  334. package/dist/client/assets/{use-org-fs-CpvRxmtT.js → use-org-fs-DiFStjLf.js} +1 -1
  335. package/dist/client/assets/{use-org-repo-syncs-DiMRemww.js → use-org-repo-syncs-D8YSA9t2.js} +1 -1
  336. package/dist/client/assets/{use-org-sso-BvIeHiW0.js → use-org-sso-C9Iucy6w.js} +1 -1
  337. package/dist/client/assets/{use-organization-roles-DVxxo3pr.js → use-organization-roles-Dz-b1a1s.js} +1 -1
  338. package/dist/client/assets/{use-organization-settings-BDkE8atK.js → use-organization-settings-CHidLnF6.js} +1 -1
  339. package/dist/client/assets/{use-panel-navigate-CQ5-5m15.js → use-panel-navigate-CrCScmoE.js} +1 -1
  340. package/dist/client/assets/{use-project-native-view-presence-DYYkvSz7.js → use-project-native-view-presence-DSs2LzKr.js} +1 -1
  341. package/dist/client/assets/{use-project-scope-C58lw4kY.js → use-project-scope-ejA4MhTG.js} +1 -1
  342. package/dist/client/assets/{use-recent-apps-CKV2JUjj.js → use-recent-apps-BQamzqjd.js} +1 -1
  343. package/dist/client/assets/{use-releases-BuVS0Zpo.js → use-releases-BgQagTY2.js} +1 -1
  344. package/dist/client/assets/{use-reports-diagnostic-Cw-6s-9X.js → use-reports-diagnostic-DiC-K8YA.js} +1 -1
  345. package/dist/client/assets/{use-sandbox-events-DpAa77RX.js → use-sandbox-events-BbmfXv6n.js} +1 -1
  346. package/dist/client/assets/{use-secrets-BiIt-MIc.js → use-secrets-0iGSdnGP.js} +1 -1
  347. package/dist/client/assets/{use-section-preview-base-Ua-YFPnC.js → use-section-preview-base-QNrdx3XX.js} +1 -1
  348. package/dist/client/assets/{use-session-runtime-D0DDxEjh.js → use-session-runtime-DYJ3pOXd.js} +1 -1
  349. package/dist/client/assets/{use-sidebar-collapsed-a4idgJIz.js → use-sidebar-collapsed-DBJ9kFpJ.js} +1 -1
  350. package/dist/client/assets/{use-tags-BDB4AWNG.js → use-tags-XdRP6hv7.js} +1 -1
  351. package/dist/client/assets/{use-task-board-analytics-DRaiYNSr.js → use-task-board-analytics-C8Y_Nmnp.js} +1 -1
  352. package/dist/client/assets/{use-task-board-events-C59TKc8i.js → use-task-board-events-C3c7HDax.js} +1 -1
  353. package/dist/client/assets/{use-task-board-item-prs-B-u60KUK.js → use-task-board-item-prs-DlYgoZJv.js} +1 -1
  354. package/dist/client/assets/{use-task-metadata-DRhZU82v.js → use-task-metadata-PWx0qQrW.js} +1 -1
  355. package/dist/client/assets/{use-thread-analytics-Czfic6gr.js → use-thread-analytics-DfrxxjCR.js} +1 -1
  356. package/dist/client/assets/{use-thread-outputs-DGui0G3n.js → use-thread-outputs-CAL5fh-E.js} +1 -1
  357. package/dist/client/assets/useInfiniteQuery-BPkTbU3d.js +1 -0
  358. package/dist/client/assets/{useQueries-DBXn9O72.js → useQueries-D1NR6XSj.js} +1 -1
  359. package/dist/client/assets/useSuspenseInfiniteQuery-BpGKYE1U.js +1 -0
  360. package/dist/client/assets/{users-CU_fKKjr.js → users-CHbLiMHe.js} +1 -1
  361. package/dist/client/assets/{utils-BaNJYkyI.js → utils-BzZnpE20.js} +1 -1
  362. package/dist/client/assets/{variant-calendar-Bjoa2Jrm.js → variant-calendar-nksjvE17.js} +1 -1
  363. package/dist/client/assets/{variant-matcher-override-CJIqSDDL.js → variant-matcher-override-CIWGPj0Z.js} +1 -1
  364. package/dist/client/assets/{view-header-CWrj1Fiv.js → view-header-D6fHMTsm.js} +1 -1
  365. package/dist/client/assets/{virtual-mcp-TF_kASgw.js → virtual-mcp-AzZIPPoU.js} +1 -1
  366. package/dist/client/assets/{watch-sse-pool-C69EsECV.js → watch-sse-pool-CF4IoX_h.js} +1 -1
  367. package/dist/client/index.html +1 -1
  368. package/dist/server/server.js +459 -459
  369. package/package.json +1 -1
  370. package/dist/client/assets/agent-app-Lnk024cG.js +0 -1
  371. package/dist/client/assets/agent-deck-cPCyRJh0.js +0 -1
  372. package/dist/client/assets/agent-experiments-DCNDtGmX.js +0 -1
  373. package/dist/client/assets/agent-library-file-BqdlZ9Na.js +0 -1
  374. package/dist/client/assets/agent-library-gWUsTUyf.js +0 -1
  375. package/dist/client/assets/agent-monitor-BwzA3a4j.js +0 -1
  376. package/dist/client/assets/agent-settings-BhGh94On.js +0 -1
  377. package/dist/client/assets/agent-site-editor-code-XUcD4VpI.js +0 -2
  378. package/dist/client/assets/agent-site-editor-content-BJrBGR9_.js +0 -1
  379. package/dist/client/assets/agent-site-editor-preview-Dpc2igwh.js +0 -1
  380. package/dist/client/assets/agent-view-DxoZ1pTh.js +0 -1
  381. package/dist/client/assets/api-keys-CvP8E9BO.js +0 -1
  382. package/dist/client/assets/library-Drr0VtsN.js +0 -1
  383. package/dist/client/assets/project-reports-BFmjNCSO.js +0 -1
  384. package/dist/client/assets/project-tasks-LmEIVMLo.js +0 -1
  385. package/dist/client/assets/record-editor-BOadhn6H.js +0 -1
  386. package/dist/client/assets/reports-vuOwE56c.js +0 -1
  387. package/dist/client/assets/repositories-CNfg6b14.js +0 -1
  388. package/dist/client/assets/route-CUPxBHEr.js +0 -1
  389. package/dist/client/assets/settings-tab-BVbLfmf7.js +0 -1
  390. package/dist/client/assets/site-editor-CL-_ktpm.js +0 -1
  391. package/dist/client/assets/tasks-Bcry5trB.js +0 -1
  392. package/dist/client/assets/useInfiniteQuery-CVBb5I8q.js +0 -1
  393. package/dist/client/assets/useSuspenseInfiniteQuery-DN4Vh5CF.js +0 -1
@@ -1 +1 @@
1
- import{q as P,r as i,eB as ce,br as le,c as X,e as de,ec as q,j as I,a4 as fe,R as Se}from"./index-D_g5fbwO.js";import{i as me,c as pe,u as ye}from"./chat-context-CMHTyqVA.js";import{u as Ee}from"./use-mcp-client-B7ar03Mf.js";import{u as he}from"./use-session-runtime-D0DDxEjh.js";import{u as xe}from"./thread-intent-Cqs1opf_.js";import{e as Re}from"./backoff-CrEUbyZT.js";import{u as we}from"./use-sandbox-events-DpAa77RX.js";import{d as Ae}from"./sandbox-start-errors-BK_aDCyt.js";function be(e,t){const n=P(t);return Pe({filters:{...e,status:"pending"}},n).length}function j(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function Pe(e={},t){const n=P(t).getMutationCache(),r=i.useRef(e),s=i.useRef(null);return s.current===null&&(s.current=j(n,e)),i.useEffect(()=>{r.current=e}),i.useSyncExternalStore(i.useCallback(o=>n.subscribe(()=>{const u=ce(s.current,j(n,r.current));s.current!==u&&(s.current=u,le.schedule(o))}),[n]),()=>s.current,()=>s.current)}async function Te(e,t,n){const r=await e.callTool({name:t,arguments:n});if(r.isError){const s=r.content?.[0]?.text??`Tool ${t} failed without a message`;throw new Error(s)}return r}const Y=["SANDBOX_START"],w=new Map,Ce=e=>`${e.virtualMcpId}::${e.branch??""}`,ke=e=>e.message.includes("retry shortly"),L=new Set,g={mark:(e,t)=>L.add(`${e}::${t}`),clear:(e,t)=>L.delete(`${e}::${t}`),isStopped:(e,t)=>L.has(`${e}::${t}`)};function _e(e,t){const n=P();return de({mutationKey:Y,retry:(r,s)=>ke(s)&&r<6,retryDelay:r=>Re(5e3,500,r,2,0),mutationFn:async r=>{r.branch&&g.clear(r.virtualMcpId,r.branch);const s=Ce(r),o=w.get(s);if(o)return o;const u=(async()=>(await Te(e,"SANDBOX_START",r)).structuredContent)();w.set(s,u);try{return await u}finally{w.get(s)===u&&w.delete(s)}},onSuccess:()=>{q(n),t?.onStarted?.()}})}function Ge(e,t){const n=X.c(3);let r;return n[0]!==t||n[1]!==e?(r={mutationKey:Y,predicate:o=>{if(!e)return!1;const u=o.state.variables;return!u||u.virtualMcpId!==e?!1:(u.branch??"")===(t??"")}},n[0]=t,n[1]=e,n[2]=r):r=n[2],be(r)>0}function Ue(e){return e.appPaused||e.userStopped?{kind:"suspended"}:e.startError&&!e.previewUrl?{kind:"errored",error:e.startError}:e.previewUrl?{kind:"iframe",previewUrl:e.previewUrl}:{kind:"starting"}}function Le(e){return e.executionEnabled&&e.sessionRuntime==="sandbox"&&e.hasActiveRepository&&!!e.userId&&!!e.branch&&!e.vmEntry&&!e.userStopped&&!e.isPending&&!e.attempted}function Ze(e){return e.threadLoaded&&e.isOwner&&e.hasActiveRepository&&!e.branch&&!e.attempted}function ge(e){return e.executionEnabled&&e.notFound&&!!e.deadVmId&&!e.isPending&&!e.userStopped&&e.deadVmId!==e.lastDeadVmId}function et(e){const{agentSandboxMap:t,threadSandboxMap:n,userId:r,branch:s}=e,o=e.ownerId??r;if(!r||!o||!s)return t;const u=n?.[o]?.[s];return u?{...t??{},[r]:{...t?.[r]??{},[s]:u}}:t}function A(e,t,n){const r={virtualMcpId:e};return t&&(r.branch=t),n&&(r.threadId=n),r}const Q=2,De=new Set(["scheduling-timeout","reconciler-error","claim-never-created","unknown"]);function J(e){return De.has(e)}function $e(e){return e.executionEnabled&&e.failedReason!==null&&J(e.failedReason)&&e.attempts<Q&&!e.isPending&&!e.userStopped&&!e.alreadyHandled}const Be={branch:null,count:0,handled:!1};function Oe(e,t){return e.branch===t?e:{branch:t,count:0,handled:!1}}function Ve(e){return e.mutationError?e.mutationError:e.phase?.kind==="failed"&&!e.startPending&&e.claimRetryExhausted?{code:null,message:e.phase.message}:null}function Fe(e){switch(e.kind){case"suspended":return"suspended";case"iframe":return"running";case"starting":return"starting";case"errored":return"errored"}}function M(e,t){return`${e??""}::${t??""}`}function ve(e){const t=e.vmEntry?.previewUrl??null;return t||(e.seeded?.key===e.key?e.seeded.url:null)}function b(e){const{data:t,virtualMcpId:n,branch:r}=e;t?.branch&&!r&&e.setCurrentTaskBranch(t.branch),t?.previewUrl&&e.setSeededPreviewUrl({key:M(n,t.branch??r),url:t.previewUrl})}const Ke={branch:null,previewState:{kind:"starting"},status:"idle",vmEntry:null,previewUrl:null,userStopped:!1,start:()=>{},stop:async()=>{},restart:async()=>{},retry:()=>{},resume:()=>{}},W=i.createContext(Ke);function tt(){return i.use(W)}const z=me(W);function nt(e){const t=X.c(10);let n,r,s;t[0]!==e?({resetKey:s,children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=s):(n=t[1],r=t[2],s=t[3]);let o;t[4]!==r||t[5]!==s?(o=I.jsx(Ne,{...r},s),t[4]=r,t[5]=s,t[6]=o):o=t[6];let u;return t[7]!==n||t[8]!==o?(u=I.jsx(z.Host,{source:o,children:n}),t[7]=n,t[8]=o,t[9]=u):u=t[9],u}function Ne(e){return z.usePublish(He(e)),null}function He({executionEnabled:e,virtualMcpId:t,branch:n,userId:r,hasActiveRepository:s,vmEntry:o,threadId:u}){const{org:T}=fe(),{setCurrentTaskBranch:l}=pe(),G=xe(),p=we(),Z=P(),D=he(t),ee=D.resolved?D.runtime:null,d=ye()?.taskId??null,$=Ee({connectionId:Se,orgId:T.id,orgSlug:T.slug}),c=_e($,{onStarted:()=>{u&&G?.refreshThreadMetadata(u)}}),{mutate:f,reset:te}=c,[ne,S]=i.useState(null),C=i.useRef(new Set),k=i.useRef(null),[B,x]=i.useState(Be),E=Oe(B,n);E!==B&&x(E);const y=p.phase?.kind==="failed"?p.phase:null,O=ve({vmEntry:o,seeded:y?null:ne,key:M(t,n)}),h=!!t&&!!n&&g.isStopped(t,n),re=p.status.state==="paused",se=!y||!J(y.reason)||E.count>=Q,oe=Ve({mutationError:c.isError&&c.error?Ae(c.error.message):null,phase:p.phase,startPending:c.isPending,claimRetryExhausted:se}),V=Ue({previewUrl:O,appPaused:re,userStopped:h,startError:oe}),ae=Fe(V),_=n??"",ue=C.current.has(_),F=Le({executionEnabled:e,hasActiveRepository:s,userId:r,branch:n,vmEntry:o,userStopped:h,isPending:c.isPending,attempted:ue,sessionRuntime:ee});i.useEffect(()=>{if(!F||!t)return;C.current.add(_);const m=A(t,n,d);f(m,{onSuccess:a=>{b({data:a,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:a=>{console.error("[sandbox-lifecycle] auto-start failed:",a)}})},[F,_,n,t,d,f,l,S]);const R=p.notFound?o?.sandboxHandle??null:null,v=ge({executionEnabled:e,notFound:p.notFound,deadVmId:R,lastDeadVmId:k.current,isPending:c.isPending,userStopped:h});i.useEffect(()=>{if(!v||!R||!t)return;k.current=R;const m=A(t,n,d);f(m,{onSuccess:a=>{b({data:a,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:a=>{console.error("[sandbox-lifecycle] self-heal failed:",a)}})},[v,R,t,n,d,f,l,S]);const K=$e({executionEnabled:e,failedReason:y?.reason??null,attempts:E.count,isPending:c.isPending,userStopped:h,alreadyHandled:E.handled});i.useEffect(()=>{if(!y){x(a=>a.handled?{...a,handled:!1}:a);return}if(!K||!t)return;x(a=>({...a,handled:!0,count:a.count+1}));const m=A(t,n,d);f(m,{onSuccess:a=>{b({data:a,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:a=>{console.error("[sandbox-lifecycle] claim auto-retry failed:",a)}})},[y,K,t,n,d,f,l,S]);const U=()=>{if(!e||!t)return;const m=A(t,n,d);f(m,{onSuccess:a=>{b({data:a,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:a=>{console.error("[sandbox-lifecycle] user start failed:",a)}})},N=async()=>{if(!(!e||!t||!n)&&o){g.mark(t,n);try{await $.callTool({name:"SANDBOX_DELETE",arguments:{virtualMcpId:t,branch:n}})}catch{}q(Z)}},ie=async()=>{await N(),U()},H=()=>{C.current=new Set,k.current=null,x({branch:n,count:0,handled:!1}),te(),U()};return{branch:n,previewState:V,status:ae,vmEntry:o,previewUrl:O,userStopped:h,start:U,stop:N,restart:ie,retry:H,resume:H}}export{nt as S,tt as a,_e as b,et as o,Ze as s,Ge as u};
1
+ import{q as P,r as i,eB as ce,br as le,c as X,e as de,ec as q,j as I,a4 as fe,R as Se}from"./index-CD3fj83c.js";import{i as me,c as pe,u as ye}from"./chat-context-B0QfMtK7.js";import{u as Ee}from"./use-mcp-client-BHU-qsif.js";import{u as he}from"./use-session-runtime-DYJ3pOXd.js";import{u as xe}from"./thread-intent-CIa2mqqt.js";import{e as Re}from"./backoff-CrEUbyZT.js";import{u as we}from"./use-sandbox-events-BbmfXv6n.js";import{d as Ae}from"./sandbox-start-errors-BK_aDCyt.js";function be(e,t){const n=P(t);return Pe({filters:{...e,status:"pending"}},n).length}function j(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function Pe(e={},t){const n=P(t).getMutationCache(),r=i.useRef(e),s=i.useRef(null);return s.current===null&&(s.current=j(n,e)),i.useEffect(()=>{r.current=e}),i.useSyncExternalStore(i.useCallback(o=>n.subscribe(()=>{const u=ce(s.current,j(n,r.current));s.current!==u&&(s.current=u,le.schedule(o))}),[n]),()=>s.current,()=>s.current)}async function Te(e,t,n){const r=await e.callTool({name:t,arguments:n});if(r.isError){const s=r.content?.[0]?.text??`Tool ${t} failed without a message`;throw new Error(s)}return r}const Y=["SANDBOX_START"],w=new Map,Ce=e=>`${e.virtualMcpId}::${e.branch??""}`,ke=e=>e.message.includes("retry shortly"),L=new Set,g={mark:(e,t)=>L.add(`${e}::${t}`),clear:(e,t)=>L.delete(`${e}::${t}`),isStopped:(e,t)=>L.has(`${e}::${t}`)};function _e(e,t){const n=P();return de({mutationKey:Y,retry:(r,s)=>ke(s)&&r<6,retryDelay:r=>Re(5e3,500,r,2,0),mutationFn:async r=>{r.branch&&g.clear(r.virtualMcpId,r.branch);const s=Ce(r),o=w.get(s);if(o)return o;const u=(async()=>(await Te(e,"SANDBOX_START",r)).structuredContent)();w.set(s,u);try{return await u}finally{w.get(s)===u&&w.delete(s)}},onSuccess:()=>{q(n),t?.onStarted?.()}})}function Ge(e,t){const n=X.c(3);let r;return n[0]!==t||n[1]!==e?(r={mutationKey:Y,predicate:o=>{if(!e)return!1;const u=o.state.variables;return!u||u.virtualMcpId!==e?!1:(u.branch??"")===(t??"")}},n[0]=t,n[1]=e,n[2]=r):r=n[2],be(r)>0}function Ue(e){return e.appPaused||e.userStopped?{kind:"suspended"}:e.startError&&!e.previewUrl?{kind:"errored",error:e.startError}:e.previewUrl?{kind:"iframe",previewUrl:e.previewUrl}:{kind:"starting"}}function Le(e){return e.executionEnabled&&e.sessionRuntime==="sandbox"&&e.hasActiveRepository&&!!e.userId&&!!e.branch&&!e.vmEntry&&!e.userStopped&&!e.isPending&&!e.attempted}function Ze(e){return e.threadLoaded&&e.isOwner&&e.hasActiveRepository&&!e.branch&&!e.attempted}function ge(e){return e.executionEnabled&&e.notFound&&!!e.deadVmId&&!e.isPending&&!e.userStopped&&e.deadVmId!==e.lastDeadVmId}function et(e){const{agentSandboxMap:t,threadSandboxMap:n,userId:r,branch:s}=e,o=e.ownerId??r;if(!r||!o||!s)return t;const u=n?.[o]?.[s];return u?{...t??{},[r]:{...t?.[r]??{},[s]:u}}:t}function A(e,t,n){const r={virtualMcpId:e};return t&&(r.branch=t),n&&(r.threadId=n),r}const Q=2,De=new Set(["scheduling-timeout","reconciler-error","claim-never-created","unknown"]);function J(e){return De.has(e)}function $e(e){return e.executionEnabled&&e.failedReason!==null&&J(e.failedReason)&&e.attempts<Q&&!e.isPending&&!e.userStopped&&!e.alreadyHandled}const Be={branch:null,count:0,handled:!1};function Oe(e,t){return e.branch===t?e:{branch:t,count:0,handled:!1}}function Ve(e){return e.mutationError?e.mutationError:e.phase?.kind==="failed"&&!e.startPending&&e.claimRetryExhausted?{code:null,message:e.phase.message}:null}function Fe(e){switch(e.kind){case"suspended":return"suspended";case"iframe":return"running";case"starting":return"starting";case"errored":return"errored"}}function M(e,t){return`${e??""}::${t??""}`}function ve(e){const t=e.vmEntry?.previewUrl??null;return t||(e.seeded?.key===e.key?e.seeded.url:null)}function b(e){const{data:t,virtualMcpId:n,branch:r}=e;t?.branch&&!r&&e.setCurrentTaskBranch(t.branch),t?.previewUrl&&e.setSeededPreviewUrl({key:M(n,t.branch??r),url:t.previewUrl})}const Ke={branch:null,previewState:{kind:"starting"},status:"idle",vmEntry:null,previewUrl:null,userStopped:!1,start:()=>{},stop:async()=>{},restart:async()=>{},retry:()=>{},resume:()=>{}},W=i.createContext(Ke);function tt(){return i.use(W)}const z=me(W);function nt(e){const t=X.c(10);let n,r,s;t[0]!==e?({resetKey:s,children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=s):(n=t[1],r=t[2],s=t[3]);let o;t[4]!==r||t[5]!==s?(o=I.jsx(Ne,{...r},s),t[4]=r,t[5]=s,t[6]=o):o=t[6];let u;return t[7]!==n||t[8]!==o?(u=I.jsx(z.Host,{source:o,children:n}),t[7]=n,t[8]=o,t[9]=u):u=t[9],u}function Ne(e){return z.usePublish(He(e)),null}function He({executionEnabled:e,virtualMcpId:t,branch:n,userId:r,hasActiveRepository:s,vmEntry:o,threadId:u}){const{org:T}=fe(),{setCurrentTaskBranch:l}=pe(),G=xe(),p=we(),Z=P(),D=he(t),ee=D.resolved?D.runtime:null,d=ye()?.taskId??null,$=Ee({connectionId:Se,orgId:T.id,orgSlug:T.slug}),c=_e($,{onStarted:()=>{u&&G?.refreshThreadMetadata(u)}}),{mutate:f,reset:te}=c,[ne,S]=i.useState(null),C=i.useRef(new Set),k=i.useRef(null),[B,x]=i.useState(Be),E=Oe(B,n);E!==B&&x(E);const y=p.phase?.kind==="failed"?p.phase:null,O=ve({vmEntry:o,seeded:y?null:ne,key:M(t,n)}),h=!!t&&!!n&&g.isStopped(t,n),re=p.status.state==="paused",se=!y||!J(y.reason)||E.count>=Q,oe=Ve({mutationError:c.isError&&c.error?Ae(c.error.message):null,phase:p.phase,startPending:c.isPending,claimRetryExhausted:se}),V=Ue({previewUrl:O,appPaused:re,userStopped:h,startError:oe}),ae=Fe(V),_=n??"",ue=C.current.has(_),F=Le({executionEnabled:e,hasActiveRepository:s,userId:r,branch:n,vmEntry:o,userStopped:h,isPending:c.isPending,attempted:ue,sessionRuntime:ee});i.useEffect(()=>{if(!F||!t)return;C.current.add(_);const m=A(t,n,d);f(m,{onSuccess:a=>{b({data:a,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:a=>{console.error("[sandbox-lifecycle] auto-start failed:",a)}})},[F,_,n,t,d,f,l,S]);const R=p.notFound?o?.sandboxHandle??null:null,v=ge({executionEnabled:e,notFound:p.notFound,deadVmId:R,lastDeadVmId:k.current,isPending:c.isPending,userStopped:h});i.useEffect(()=>{if(!v||!R||!t)return;k.current=R;const m=A(t,n,d);f(m,{onSuccess:a=>{b({data:a,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:a=>{console.error("[sandbox-lifecycle] self-heal failed:",a)}})},[v,R,t,n,d,f,l,S]);const K=$e({executionEnabled:e,failedReason:y?.reason??null,attempts:E.count,isPending:c.isPending,userStopped:h,alreadyHandled:E.handled});i.useEffect(()=>{if(!y){x(a=>a.handled?{...a,handled:!1}:a);return}if(!K||!t)return;x(a=>({...a,handled:!0,count:a.count+1}));const m=A(t,n,d);f(m,{onSuccess:a=>{b({data:a,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:a=>{console.error("[sandbox-lifecycle] claim auto-retry failed:",a)}})},[y,K,t,n,d,f,l,S]);const U=()=>{if(!e||!t)return;const m=A(t,n,d);f(m,{onSuccess:a=>{b({data:a,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:a=>{console.error("[sandbox-lifecycle] user start failed:",a)}})},N=async()=>{if(!(!e||!t||!n)&&o){g.mark(t,n);try{await $.callTool({name:"SANDBOX_DELETE",arguments:{virtualMcpId:t,branch:n}})}catch{}q(Z)}},ie=async()=>{await N(),U()},H=()=>{C.current=new Set,k.current=null,x({branch:n,count:0,handled:!1}),te(),U()};return{branch:n,previewState:V,status:ae,vmEntry:o,previewUrl:O,userStopped:h,start:U,stop:N,restart:ie,retry:H,resume:H}}export{nt as S,tt as a,_e as b,et as o,Ze as s,Ge as u};
@@ -1 +1 @@
1
- import{aK as s,cS as e,aL as a,cT as d,cU as l}from"./index-D_g5fbwO.js";const o=500;s({title:a().max(o),url:a().max(o),icon:a().max(o)});const t=s({keyId:a().max(o),modelId:a().max(o),title:a().max(o).optional()}).nullable();d(["fast","smart","thinking","image","web_search","deep_research"]);d(["fast","smart","thinking"]);const b=s({tiers:s({fast:t,smart:t,thinking:t,image:t,web_search:t,deep_research:t})});s({tiers:s({fast:t.optional(),smart:t.optional(),thinking:t.optional()})});const f=50,c=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;s({host:a().trim().toLowerCase().min(1).max(o).regex(c).describe("Git host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:a().min(1).max(o).describe("Vault secret id holding the PAT used to authenticate this host.")});s({ids:l(a().max(o)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const u=s({voice_mode:e().optional(),home_task_intake_enabled:e().optional().describe("Show Task mode on the Home composer and allow reports to start tasks."),demo_mode:e().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),demo_board_reset:e().optional().describe("Curated demo org: every morning the task board returns to its captured snapshot, and admins can reset or recapture it on demand."),reports_only:e().optional().describe("Curated Deco Score look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),reviewer_enabled:e().optional().describe("Run the Reviewer on a task's pull request when the card reaches In Review — it reviews the code with the repo's stack-appropriate skills, fixes what it finds on the PR's own branch, then exercises the change on the deploy preview and approves or hands the card to a human."),qa_agent_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),code_reviewer_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),auto_merge:e().optional().describe("When a card reaches Ready for Deployment, merge its pull request automatically instead of waiting for someone to press Ship."),auto_resolve_conflicts:e().optional().describe("When a pull request in Ready for Deployment can't be merged because it conflicts with its base branch, hand it back to the Super Agent to resolve the conflict (check out the branch, merge the base, push). Unset, it follows `auto_merge`; set it explicitly to run one without the other."),cheap_reviewer_model:e().optional().describe("Run the Reviewer on a cheaper model than the Super Agent that wrote the code. On by default — turning it off trades cost for some review depth."),coding_agent_org_mcps:e().optional().describe("Give a coding-agent run (the claude-code harness in a sandbox) every MCP connection in the org as its own MCP server, on top of the narrow Studio surface it always gets. Off by default: each connection is one more server the agent connects to at session start, and all of their tools land in its context."),coding_agents_claude_code:e().optional().describe("Run chats on a Code Agent (an agent imported from a GitHub repo) with the claude-code harness inside its sandbox, instead of hosted Decopilot. Off by default: it changes the runtime of every such chat, and claude-code flushes whole turns rather than streaming tokens."),task_board_codex:e().optional().describe("Allow tasks to select the Codex harness. Off by default; existing tasks keep Claude Code. Reviewers keep their own runtime."),chat_harness_codex:e().optional().describe("Use Codex for new sandbox chats. Off by default; requires hosted sandboxes and a ChatGPT subscription or Responses API provider. Existing chats keep their pinned runtime."),chat_harness_sandbox_only:e().optional().describe("Run every chat with the claude-code harness in its own sandbox instead of hosted Decopilot. On by default (see DEFAULT_ON_FLAGS); a deployment without hosted sandboxes keeps Decopilot regardless."),sandbox_run_metadata:e().optional().describe("Forward a sandbox run's metadata (such as a webhook trigger's run_metadata) to the MCP tools it calls, as hosted Decopilot runs do. Off by default."),sandbox_repo_snapshots:e().optional().describe("Keep a Freestyle snapshot of each project repo at its default branch's head, with its dependencies installed and its dev server running, so a new sandbox for that repo starts already serving. Off by default: each push to a default branch costs a snapshot build the next time a sandbox starts."),auto_assign_report_tasks_to_super_agent:e().optional().describe("When a Deco Score import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned."),hosting_enabled:e().optional().describe("Per-site Hosting tab (deployments, domains, deploy outcomes). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),deco_analytics_enabled:e().optional().describe("Per-site Deco Analytics tab (traffic, realtime, usage & limits). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),e2e_enabled:e().optional().describe("Per-site E2E tab (end-to-end test runs). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),experiments_enabled:e().optional().describe("Per-site Experiments tab (A/B tests + variant results). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org."),experiments_v2_enabled:e().optional().describe("Rebuilt Experiments tab: describe the test in prose and an agent drafts it, plus inline editing and the implement/preview tools that write the split into the site. Off by default — an org without it keeps the table-and-dialog tab, which only records experiment metadata. Requires `experiments_enabled`, which still decides whether the tab exists at all."),monitor_enabled:e().optional().describe("Per-site Monitor tab (CDN Performance + Audience from the stats-lake warehouse). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. Its own deployment-wide switch `MONITOR_GA` opens it to every org at once (independent of the control-plane trio)."),site_create_enabled:e().optional().describe('The "Create a new site" option under New project: generates a GitHub repository from a site template in an account the org connected, and opens it as a project. Off by default, for every org — deco.cx staff included.'),new_blocks_editor:e().optional().describe("Use the redesigned blocks editor for every member of the organization. Off by default — the classic editor stays until an admin opts the org in."),blog_ai_enabled:e().optional().describe("The blog's brand context tab and its agentic generation — campaigns, post drafting and link suggestions. Off by default; with it off the blog is written by hand and every BLOG_* tool refuses, over MCP and in the app alike, so an agent cannot spend the organization's credits on a feature it turned off."),site_apps_install_enabled:e().optional().describe("Installing a site app from the Apps tab: writes the app module, the npm dependency and the registry entry into the project's repository, then reinstalls dependencies and restarts the dev script on the running sandbox. Off by default, for every org — the catalogue stays browsable without it and nothing is installable. Rollout lever, separate from the deploy."),multi_app_preview:e().optional().describe("Previewing more than one app of a monorepo: an Apps list in project settings, app tabs with a split view in the preview, and a dev server per extra app in the sandbox, served at its own preview host. Off by default."),hide_default_blog_blocks:e().optional().describe("Hide the `deco-cms/blog` built-in post blocks everywhere a post is written — the inserter, the format briefs, and generated drafts — so only the site's own `site/sections/Blog/Post/*` blocks are eligible. Off by default. Blocks already present in a post keep rendering; this only governs what can be added.")}),h=new Set(["reviewer_enabled","cheap_reviewer_model","chat_harness_sandbox_only"]);function g(i,n){const r=i?.[n];return h.has(n)?r!==!1:r===!0}function m(i){const n=i?.auto_resolve_conflicts;return typeof n=="boolean"?n:i?.auto_merge===!0}export{h as D,f as G,u as O,b as S,m as a,c as b,g as o};
1
+ import{aK as s,cS as e,aL as a,cT as d,cU as l}from"./index-CD3fj83c.js";const o=500;s({title:a().max(o),url:a().max(o),icon:a().max(o)});const t=s({keyId:a().max(o),modelId:a().max(o),title:a().max(o).optional()}).nullable();d(["fast","smart","thinking","image","web_search","deep_research"]);d(["fast","smart","thinking"]);const b=s({tiers:s({fast:t,smart:t,thinking:t,image:t,web_search:t,deep_research:t})});s({tiers:s({fast:t.optional(),smart:t.optional(),thinking:t.optional()})});const f=50,c=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;s({host:a().trim().toLowerCase().min(1).max(o).regex(c).describe("Git host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:a().min(1).max(o).describe("Vault secret id holding the PAT used to authenticate this host.")});s({ids:l(a().max(o)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const u=s({voice_mode:e().optional(),home_task_intake_enabled:e().optional().describe("Show Task mode on the Home composer and allow reports to start tasks."),demo_mode:e().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),demo_board_reset:e().optional().describe("Curated demo org: every morning the task board returns to its captured snapshot, and admins can reset or recapture it on demand."),reports_only:e().optional().describe("Curated Deco Score look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),reviewer_enabled:e().optional().describe("Run the Reviewer on a task's pull request when the card reaches In Review — it reviews the code with the repo's stack-appropriate skills, fixes what it finds on the PR's own branch, then exercises the change on the deploy preview and approves or hands the card to a human."),qa_agent_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),code_reviewer_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),auto_merge:e().optional().describe("When a card reaches Ready for Deployment, merge its pull request automatically instead of waiting for someone to press Ship."),auto_resolve_conflicts:e().optional().describe("When a pull request in Ready for Deployment can't be merged because it conflicts with its base branch, hand it back to the Super Agent to resolve the conflict (check out the branch, merge the base, push). Unset, it follows `auto_merge`; set it explicitly to run one without the other."),cheap_reviewer_model:e().optional().describe("Run the Reviewer on a cheaper model than the Super Agent that wrote the code. On by default — turning it off trades cost for some review depth."),coding_agent_org_mcps:e().optional().describe("Give a coding-agent run (the claude-code harness in a sandbox) every MCP connection in the org as its own MCP server, on top of the narrow Studio surface it always gets. Off by default: each connection is one more server the agent connects to at session start, and all of their tools land in its context."),coding_agents_claude_code:e().optional().describe("Run chats on a Code Agent (an agent imported from a GitHub repo) with the claude-code harness inside its sandbox, instead of hosted Decopilot. Off by default: it changes the runtime of every such chat, and claude-code flushes whole turns rather than streaming tokens."),task_board_codex:e().optional().describe("Allow tasks to select the Codex harness. Off by default; existing tasks keep Claude Code. Reviewers keep their own runtime."),chat_harness_codex:e().optional().describe("Use Codex for new sandbox chats. Off by default; requires hosted sandboxes and a ChatGPT subscription or Responses API provider. Existing chats keep their pinned runtime."),chat_harness_sandbox_only:e().optional().describe("Run every chat with the claude-code harness in its own sandbox instead of hosted Decopilot. On by default (see DEFAULT_ON_FLAGS); a deployment without hosted sandboxes keeps Decopilot regardless."),sandbox_run_metadata:e().optional().describe("Forward a sandbox run's metadata (such as a webhook trigger's run_metadata) to the MCP tools it calls, as hosted Decopilot runs do. Off by default."),sandbox_repo_snapshots:e().optional().describe("Keep a Freestyle snapshot of each project repo at its default branch's head, with its dependencies installed and its dev server running, so a new sandbox for that repo starts already serving. Off by default: each push to a default branch costs a snapshot build the next time a sandbox starts."),auto_assign_report_tasks_to_super_agent:e().optional().describe("When a Deco Score import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned."),hosting_enabled:e().optional().describe("Per-site Hosting tab (deployments, domains, deploy outcomes). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),deco_analytics_enabled:e().optional().describe("Per-site Deco Analytics tab (traffic, realtime, usage & limits). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),e2e_enabled:e().optional().describe("Per-site E2E tab (end-to-end test runs). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),experiments_enabled:e().optional().describe("Per-site Experiments tab (A/B tests + variant results). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org."),experiments_v2_enabled:e().optional().describe("Rebuilt Experiments tab: describe the test in prose and an agent drafts it, plus inline editing and the implement/preview tools that write the split into the site. Off by default — an org without it keeps the table-and-dialog tab, which only records experiment metadata. Requires `experiments_enabled`, which still decides whether the tab exists at all."),monitor_enabled:e().optional().describe("Per-site Monitor tab (CDN Performance + Audience from the stats-lake warehouse). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. Its own deployment-wide switch `MONITOR_GA` opens it to every org at once (independent of the control-plane trio)."),site_create_enabled:e().optional().describe('The "Create a new site" option under New project: generates a GitHub repository from a site template in an account the org connected, and opens it as a project. Off by default, for every org — deco.cx staff included.'),new_blocks_editor:e().optional().describe("Use the redesigned blocks editor for every member of the organization. Off by default — the classic editor stays until an admin opts the org in."),blog_ai_enabled:e().optional().describe("The blog's brand context tab and its agentic generation — campaigns, post drafting and link suggestions. Off by default; with it off the blog is written by hand and every BLOG_* tool refuses, over MCP and in the app alike, so an agent cannot spend the organization's credits on a feature it turned off."),site_apps_install_enabled:e().optional().describe("Installing a site app from the Apps tab: writes the app module, the npm dependency and the registry entry into the project's repository, then reinstalls dependencies and restarts the dev script on the running sandbox. Off by default, for every org — the catalogue stays browsable without it and nothing is installable. Rollout lever, separate from the deploy."),multi_app_preview:e().optional().describe("Previewing more than one app of a monorepo: an Apps list in project settings, app tabs with a split view in the preview, and a dev server per extra app in the sandbox, served at its own preview host. Off by default."),hide_default_blog_blocks:e().optional().describe("Hide the `deco-cms/blog` built-in post blocks everywhere a post is written — the inserter, the format briefs, and generated drafts — so only the site's own `site/sections/Blog/Post/*` blocks are eligible. Off by default. Blocks already present in a post keep rendering; this only governs what can be added.")}),h=new Set(["reviewer_enabled","cheap_reviewer_model","chat_harness_sandbox_only"]);function g(i,n){const r=i?.[n];return h.has(n)?r!==!1:r===!0}function m(i){const n=i?.auto_resolve_conflicts;return typeof n=="boolean"?n:i?.auto_merge===!0}export{h as D,f as G,u as O,b as S,m as a,c as b,g as o};
@@ -1 +1 @@
1
- import{aK as r,dZ as p,dX as _,aL as n,cU as o,cT as m}from"./index-D_g5fbwO.js";const f=r({key:n().min(1,"Key is required"),value:n()}),g=r({title:n().min(1,"Name is required"),description:n().nullable().optional(),icon:n().nullable().optional(),ui_type:m(["HTTP","SSE","Websocket","NPX","STDIO"]),connection_url:n().optional(),connection_token:n().nullable().optional(),npx_package:n().optional(),stdio_command:n().optional(),stdio_args:n().optional(),stdio_cwd:n().optional(),env_vars:o(f).optional(),configuration_scopes:o(n()).nullable().optional(),configuration_state:p(n(),_()).nullable().optional()}).refine(e=>e.ui_type==="NPX"?!!e.npx_package?.trim():!0,{message:"NPM package is required",path:["npx_package"]}).refine(e=>e.ui_type==="STDIO"?!!e.stdio_command?.trim():!0,{message:"Command is required",path:["stdio_command"]}).refine(e=>e.ui_type==="HTTP"||e.ui_type==="SSE"||e.ui_type==="Websocket"?!!e.connection_url?.trim():!0,{message:"URL is required",path:["connection_url"]}).refine(e=>(e.ui_type==="HTTP"||e.ui_type==="SSE"||e.ui_type==="Websocket")&&e.connection_url?.trim()?n().url().safeParse(e.connection_url.trim()).success:!0,{message:"Enter a valid URL",path:["connection_url"]});function S(e,u,s){const a=i=>{if(i==="*")return!0;const c=i.split("::")[0]??"";let t=s;for(const l of c.split(".")){if(t===null||typeof t!="object")return!1;t=t[l]}return t!=null};return[...new Set([...e,...u.filter(a)])]}export{S as a,g as c};
1
+ import{aK as r,dZ as p,dX as _,aL as n,cU as o,cT as m}from"./index-CD3fj83c.js";const f=r({key:n().min(1,"Key is required"),value:n()}),g=r({title:n().min(1,"Name is required"),description:n().nullable().optional(),icon:n().nullable().optional(),ui_type:m(["HTTP","SSE","Websocket","NPX","STDIO"]),connection_url:n().optional(),connection_token:n().nullable().optional(),npx_package:n().optional(),stdio_command:n().optional(),stdio_args:n().optional(),stdio_cwd:n().optional(),env_vars:o(f).optional(),configuration_scopes:o(n()).nullable().optional(),configuration_state:p(n(),_()).nullable().optional()}).refine(e=>e.ui_type==="NPX"?!!e.npx_package?.trim():!0,{message:"NPM package is required",path:["npx_package"]}).refine(e=>e.ui_type==="STDIO"?!!e.stdio_command?.trim():!0,{message:"Command is required",path:["stdio_command"]}).refine(e=>e.ui_type==="HTTP"||e.ui_type==="SSE"||e.ui_type==="Websocket"?!!e.connection_url?.trim():!0,{message:"URL is required",path:["connection_url"]}).refine(e=>(e.ui_type==="HTTP"||e.ui_type==="SSE"||e.ui_type==="Websocket")&&e.connection_url?.trim()?n().url().safeParse(e.connection_url.trim()).success:!0,{message:"Enter a valid URL",path:["connection_url"]});function S(e,u,s){const a=i=>{if(i==="*")return!0;const c=i.split("::")[0]??"";let t=s;for(const l of c.split(".")){if(t===null||typeof t!="object")return!1;t=t[l]}return t!=null};return[...new Set([...e,...u.filter(a)])]}export{S as a,g as c};
@@ -1 +1 @@
1
- import{r as d,cy as A,cu as ce,j as b,cA as _,cN as ae,ep as O,cB as C,cH as P,cC as ie,c as F,l as $}from"./index-D_g5fbwO.js";import{c as de}from"./index-BdQq_4o_.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,v]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[T,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,H]=d.useState(!1),m=A(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:T,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:H,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:m,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=v(J,o),a=d.useRef(null),c=A(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(B,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Z,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(B,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Z=d.forwardRef((r,e)=>{const o=v(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(B,{"data-state":n?"visible":"hidden",...t,ref:e})})}),B=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=v(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=k(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(me,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=k(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),me=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[ve,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=v(g,o),[w,T]=d.useState(null),Y=A(e,m=>T(m)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function H(m){if(x.current){const p=m.clientX-x.current.left,R=m.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const m=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",m,{passive:!1}),()=>document.removeEventListener("wheel",m,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(ve,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,m=>{m.button===0&&(m.target.setPointerCapture(m.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),H(m))}),onPointerMove:C(r.onPointerMove,H),onPointerUp:C(r.onPointerUp,m=>{const p=m.target;p.hasPointerCapture(m.pointerId)&&p.releasePointerCapture(m.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),W="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(W,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=v(W,o),s=ee(W,o),{onThumbPositionChange:a}=s,c=A(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,T=h.clientY-S.top;s.onThumbPointerDown({x:w,y:T})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=W;var V="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=v(V,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=V;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=v(V,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function k(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] transition-[color,box-shadow] focus-ring",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
1
+ import{r as d,cy as A,cu as ce,j as b,cA as _,cN as ae,ep as O,cB as C,cH as P,cC as ie,c as F,l as $}from"./index-CD3fj83c.js";import{c as de}from"./index-BdQq_4o_.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,v]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[T,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,H]=d.useState(!1),m=A(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:T,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:H,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:m,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=v(J,o),a=d.useRef(null),c=A(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(B,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Z,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(B,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Z=d.forwardRef((r,e)=>{const o=v(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(B,{"data-state":n?"visible":"hidden",...t,ref:e})})}),B=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=v(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=k(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(me,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=k(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),me=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[ve,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=v(g,o),[w,T]=d.useState(null),Y=A(e,m=>T(m)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function H(m){if(x.current){const p=m.clientX-x.current.left,R=m.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const m=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",m,{passive:!1}),()=>document.removeEventListener("wheel",m,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(ve,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,m=>{m.button===0&&(m.target.setPointerCapture(m.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),H(m))}),onPointerMove:C(r.onPointerMove,H),onPointerUp:C(r.onPointerUp,m=>{const p=m.target;p.hasPointerCapture(m.pointerId)&&p.releasePointerCapture(m.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),W="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(W,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=v(W,o),s=ee(W,o),{onThumbPositionChange:a}=s,c=A(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,T=h.clientY-S.top;s.onThumbPointerDown({x:w,y:T})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=W;var V="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=v(V,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=V;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=v(V,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function k(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] transition-[color,box-shadow] focus-ring",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
@@ -1 +1 @@
1
- import{c as f,j as a,co as j,h as I,cp as S,cq as g}from"./index-D_g5fbwO.js";import{i as v}from"./SearchMd-tzLrT0kr.js";function y(x){const e=f.c(14),{value:r,onChange:l,placeholder:h,onKeyDown:c,className:i,isSearching:p,disabled:u}=x,m=h===void 0?"Search...":h;let s;e[0]!==p?(s=a.jsx(j,{className:"pr-0",children:p?a.jsx(I,{className:"size-4"}):a.jsx(v,{})}),e[0]=p,e[1]=s):s=e[1];let t;e[2]!==l?(t=d=>l(d.target.value),e[2]=l,e[3]=t):t=e[3];let n;e[4]!==u||e[5]!==c||e[6]!==m||e[7]!==t||e[8]!==r?(n=a.jsx(S,{type:"text",value:r,onChange:t,onKeyDown:c,placeholder:m,disabled:u}),e[4]=u,e[5]=c,e[6]=m,e[7]=t,e[8]=r,e[9]=n):n=e[9];let o;return e[10]!==i||e[11]!==s||e[12]!==n?(o=a.jsxs(g,{size:"sm",className:i,children:[s,n]}),e[10]=i,e[11]=s,e[12]=n,e[13]=o):o=e[13],o}export{y as S};
1
+ import{c as f,j as a,co as j,h as I,cp as S,cq as g}from"./index-CD3fj83c.js";import{i as v}from"./SearchMd-BPcibh2b.js";function y(x){const e=f.c(14),{value:r,onChange:l,placeholder:h,onKeyDown:c,className:i,isSearching:p,disabled:u}=x,m=h===void 0?"Search...":h;let s;e[0]!==p?(s=a.jsx(j,{className:"pr-0",children:p?a.jsx(I,{className:"size-4"}):a.jsx(v,{})}),e[0]=p,e[1]=s):s=e[1];let t;e[2]!==l?(t=d=>l(d.target.value),e[2]=l,e[3]=t):t=e[3];let n;e[4]!==u||e[5]!==c||e[6]!==m||e[7]!==t||e[8]!==r?(n=a.jsx(S,{type:"text",value:r,onChange:t,onKeyDown:c,placeholder:m,disabled:u}),e[4]=u,e[5]=c,e[6]=m,e[7]=t,e[8]=r,e[9]=n):n=e[9];let o;return e[10]!==i||e[11]!==s||e[12]!==n?(o=a.jsxs(g,{size:"sm",className:i,children:[s,n]}),e[10]=i,e[11]=s,e[12]=n,e[13]=o):o=e[13],o}export{y as S};
@@ -1 +1 @@
1
- import{c as K,r as C,l as B,j as a,b7 as M}from"./index-D_g5fbwO.js";import{i as I}from"./SearchMd-tzLrT0kr.js";import{I as O}from"./icon-button-QBx8ZygL.js";function G(S){const e=K.c(34),{value:t,onChange:l,label:E,placeholder:D,clearLabel:F,expanded:o,className:j}=S,w=E===void 0?"Search":E,d=D===void 0?"Search…":D,_=F===void 0?"Clear search":F,[L,p]=C.useState(t!==""),[R,z]=C.useState(!1),[V,$]=C.useState(t);if(t!==V&&($(t),t===""&&!R&&p(!1)),!L&&!o){let s,g;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>p(!0),g=a.jsx(I,{}),e[0]=s,e[1]=g):(s=e[0],g=e[1]);let v;return e[2]!==w?(v=a.jsx(O,{label:w,tooltipSide:"bottom",variant:"outline",onClick:s,children:g}),e[2]=w,e[3]=v):v=e[3],v}const k=o?"h-10 w-full px-3":"h-7 w-32 animate-search-expand px-2.5 sm:w-44";let n;e[4]!==j||e[5]!==k?(n=B("inline-flex shrink-0 items-center gap-1.5 overflow-hidden rounded-full bg-card text-card-foreground shadow-edge",k,j),e[4]=j,e[5]=k,e[6]=n):n=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(I,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=x):x=e[7];const y=!o;let r;e[8]!==l?(r=s=>l(s.target.value),e[8]=l,e[9]=r):r=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>z(!0),e[10]=h):h=e[10];let i;e[11]!==t?(i=()=>{z(!1),t===""&&p(!1)},e[11]=t,e[12]=i):i=e[12];let c;e[13]!==l?(c=s=>{s.key==="Escape"&&l("")},e[13]=l,e[14]=c):c=e[14];const N=o?"text-sm":"text-xs";let f;e[15]!==N?(f=B("w-full min-w-0 bg-transparent outline-none placeholder:text-muted-foreground",N),e[15]=N,e[16]=f):f=e[16];let u;e[17]!==d||e[18]!==i||e[19]!==c||e[20]!==f||e[21]!==y||e[22]!==r||e[23]!==t?(u=a.jsx("input",{autoFocus:y,value:t,onChange:r,onFocus:h,onBlur:i,onKeyDown:c,placeholder:d,"aria-label":d,className:f}),e[17]=d,e[18]=i,e[19]=c,e[20]=f,e[21]=y,e[22]=r,e[23]=t,e[24]=u):u=e[24];let m;e[25]!==_||e[26]!==o||e[27]!==l||e[28]!==t?(m=t!==""&&a.jsx("button",{type:"button","aria-label":_,onMouseDown:P,onClick:()=>{l(""),o||p(!1)},className:"shrink-0 text-muted-foreground hover:text-foreground",children:a.jsx(M,{className:"size-3.5"})}),e[25]=_,e[26]=o,e[27]=l,e[28]=t,e[29]=m):m=e[29];let b;return e[30]!==u||e[31]!==m||e[32]!==n?(b=a.jsxs("div",{className:n,children:[x,u,m]}),e[30]=u,e[31]=m,e[32]=n,e[33]=b):b=e[33],b}function P(S){return S.preventDefault()}export{G as S};
1
+ import{c as K,r as C,l as B,j as a,b7 as M}from"./index-CD3fj83c.js";import{i as I}from"./SearchMd-BPcibh2b.js";import{I as O}from"./icon-button-CbqEy6tn.js";function G(S){const e=K.c(34),{value:t,onChange:l,label:E,placeholder:D,clearLabel:F,expanded:o,className:j}=S,w=E===void 0?"Search":E,d=D===void 0?"Search…":D,_=F===void 0?"Clear search":F,[L,p]=C.useState(t!==""),[R,z]=C.useState(!1),[V,$]=C.useState(t);if(t!==V&&($(t),t===""&&!R&&p(!1)),!L&&!o){let s,g;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>p(!0),g=a.jsx(I,{}),e[0]=s,e[1]=g):(s=e[0],g=e[1]);let v;return e[2]!==w?(v=a.jsx(O,{label:w,tooltipSide:"bottom",variant:"outline",onClick:s,children:g}),e[2]=w,e[3]=v):v=e[3],v}const k=o?"h-10 w-full px-3":"h-7 w-32 animate-search-expand px-2.5 sm:w-44";let n;e[4]!==j||e[5]!==k?(n=B("inline-flex shrink-0 items-center gap-1.5 overflow-hidden rounded-full bg-card text-card-foreground shadow-edge",k,j),e[4]=j,e[5]=k,e[6]=n):n=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(I,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=x):x=e[7];const y=!o;let r;e[8]!==l?(r=s=>l(s.target.value),e[8]=l,e[9]=r):r=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>z(!0),e[10]=h):h=e[10];let i;e[11]!==t?(i=()=>{z(!1),t===""&&p(!1)},e[11]=t,e[12]=i):i=e[12];let c;e[13]!==l?(c=s=>{s.key==="Escape"&&l("")},e[13]=l,e[14]=c):c=e[14];const N=o?"text-sm":"text-xs";let f;e[15]!==N?(f=B("w-full min-w-0 bg-transparent outline-none placeholder:text-muted-foreground",N),e[15]=N,e[16]=f):f=e[16];let u;e[17]!==d||e[18]!==i||e[19]!==c||e[20]!==f||e[21]!==y||e[22]!==r||e[23]!==t?(u=a.jsx("input",{autoFocus:y,value:t,onChange:r,onFocus:h,onBlur:i,onKeyDown:c,placeholder:d,"aria-label":d,className:f}),e[17]=d,e[18]=i,e[19]=c,e[20]=f,e[21]=y,e[22]=r,e[23]=t,e[24]=u):u=e[24];let m;e[25]!==_||e[26]!==o||e[27]!==l||e[28]!==t?(m=t!==""&&a.jsx("button",{type:"button","aria-label":_,onMouseDown:P,onClick:()=>{l(""),o||p(!1)},className:"shrink-0 text-muted-foreground hover:text-foreground",children:a.jsx(M,{className:"size-3.5"})}),e[25]=_,e[26]=o,e[27]=l,e[28]=t,e[29]=m):m=e[29];let b;return e[30]!==u||e[31]!==m||e[32]!==n?(b=a.jsxs("div",{className:n,children:[x,u,m]}),e[30]=u,e[31]=m,e[32]=n,e[33]=b):b=e[33],b}function P(S){return S.preventDefault()}export{G as S};
@@ -1 +1 @@
1
- import{c as x,aC as d,b as j,j as i}from"./index-D_g5fbwO.js";import{t as E}from"./Users01-DdZpwbA5.js";const R=/^[A-Za-z0-9_.-]+$/;function b(f){const e=x.c(15),{field:p,secretById:t}=f,s=j(),n=p.value||"";if(!n)return null;let l;e[0]!==n||e[1]!==t?(l=t.get(n),e[0]=n,e[1]=t,e[2]=l):l=e[2];const c=l;if(!c){let a;e[3]!==n||e[4]!==s?(a=s("sandbox.envVarsField.missingSecret",{id:n}),e[3]=n,e[4]=s,e[5]=a):a=e[5];let u;return e[6]!==a?(u=i.jsx("span",{className:"text-destructive",children:a}),e[6]=a,e[7]=u):u=e[7],u}let o;e[8]!==c.scope?(o=i.jsx(N,{scope:c.scope}),e[8]=c.scope,e[9]=o):o=e[9];let r;e[10]!==c.name?(r=i.jsx("span",{className:"truncate font-mono",children:c.name}),e[10]=c.name,e[11]=r):r=e[11];let m;return e[12]!==o||e[13]!==r?(m=i.jsxs("span",{className:"inline-flex items-center gap-1.5 truncate",children:[o,r]}),e[12]=o,e[13]=r,e[14]=m):m=e[14],m}function N(f){const e=x.c(2),{scope:p}=f,t=p==="user"?d:E;let s;return e[0]!==t?(s=i.jsx(t,{className:"size-3 text-muted-foreground"}),e[0]=t,e[1]=s):s=e[1],s}export{b as S,R as a,N as b};
1
+ import{c as x,aC as d,b as j,j as i}from"./index-CD3fj83c.js";import{t as E}from"./Users01-BewLilnR.js";const R=/^[A-Za-z0-9_.-]+$/;function b(f){const e=x.c(15),{field:p,secretById:t}=f,s=j(),n=p.value||"";if(!n)return null;let l;e[0]!==n||e[1]!==t?(l=t.get(n),e[0]=n,e[1]=t,e[2]=l):l=e[2];const c=l;if(!c){let a;e[3]!==n||e[4]!==s?(a=s("sandbox.envVarsField.missingSecret",{id:n}),e[3]=n,e[4]=s,e[5]=a):a=e[5];let u;return e[6]!==a?(u=i.jsx("span",{className:"text-destructive",children:a}),e[6]=a,e[7]=u):u=e[7],u}let o;e[8]!==c.scope?(o=i.jsx(N,{scope:c.scope}),e[8]=c.scope,e[9]=o):o=e[9];let r;e[10]!==c.name?(r=i.jsx("span",{className:"truncate font-mono",children:c.name}),e[10]=c.name,e[11]=r):r=e[11];let m;return e[12]!==o||e[13]!==r?(m=i.jsxs("span",{className:"inline-flex items-center gap-1.5 truncate",children:[o,r]}),e[12]=o,e[13]=r,e[14]=m):m=e[14],m}function N(f){const e=x.c(2),{scope:p}=f,t=p==="user"?d:E;let s;return e[0]!==t?(s=i.jsx(t,{className:"size-3 text-muted-foreground"}),e[0]=t,e[1]=s):s=e[1],s}export{b as S,R as a,N as b};
@@ -1 +1 @@
1
- import{c as j,b as N,j as s,n as C,hd as F,M as k,r as y,bB as B,B as D,aC as L,ag as T,D as O,v as A,w as R,x as I,aY as q,I as _,y as V,t as z,fU as H}from"./index-D_g5fbwO.js";import{i as M}from"./AlertCircle-GiWY14UJ.js";import{s as U}from"./Plus-DdEst5EN.js";import{t as Y}from"./Users01-DdZpwbA5.js";import{E as G}from"./empty-state-KX515AmC.js";import{L as w}from"./label-OhIpdV40.js";import{S as J,b as K,a as Q,d as W,c as P}from"./select-BjHL6qhR.js";import{T as X}from"./textarea-CM43JFTD.js";import{u as Z,a as ee}from"./use-secrets-BiIt-MIc.js";import{R as te}from"./require-capability-DEL3Av3U.js";import"./index-BdQq_4o_.js";import"./index-DU9qEpSd.js";import"./ChevronUp-BOBhKnkD.js";import"./access-gate-DJuyzn-i.js";import"./capability-load-error-DUUGeyFg.js";function se(t){const e=j.c(6),{error:r}=t,i=N();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(M,{size:16}),e[0]=c):c=e[0];let n;e[1]!==r.message||e[2]!==i?(n=i("settings.secrets.failedToLoadError",{error:r.message}),e[1]=r.message,e[2]=i,e[3]=n):n=e[3];let l;return e[4]!==n?(l=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[c,s.jsx("span",{className:"text-sm font-medium",children:n})]}),e[4]=n,e[5]=l):l=e[5],l}function re(t){const e=j.c(8),{scope:r}=t,i=N(),c=r==="user"?L:Y;let n;e[0]!==r||e[1]!==i?(n=i(r==="user"?"settings.secrets.scopePrivate":"settings.secrets.scopeOrganization"),e[0]=r,e[1]=i,e[2]=n):n=e[2];const l=n;let a;e[3]!==c?(a=s.jsx(c,{size:12}),e[3]=c,e[4]=a):a=e[4];let m;return e[5]!==l||e[6]!==a?(m=s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-muted text-muted-foreground text-xs",children:[a,l]}),e[5]=l,e[6]=a,e[7]=m):m=e[7],m}function $(t){const e=j.c(20),{secret:r}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(T,{size:16,className:"text-muted-foreground"})}),e[0]=i):i=e[0];let c;e[1]!==r.name?(c=s.jsx("span",{className:"font-medium text-sm truncate",children:r.name}),e[1]=r.name,e[2]=c):c=e[2];let n;e[3]!==r.scope?(n=s.jsx(re,{scope:r.scope}),e[3]=r.scope,e[4]=n):n=e[4];let l;e[5]!==c||e[6]!==n?(l=s.jsxs("div",{className:"flex items-center gap-2",children:[c,n]}),e[5]=c,e[6]=n,e[7]=l):l=e[7];let a;e[8]!==r.description?(a=r.description?s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:r.description}):null,e[8]=r.description,e[9]=a):a=e[9];let m;e[10]!==l||e[11]!==a?(m=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[i,s.jsxs("div",{className:"min-w-0",children:[l,a]})]}),e[10]=l,e[11]=a,e[12]=m):m=e[12];let d;e[13]!==r.createdAt?(d=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=d):d=e[14];let u;e[15]!==d?(u=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:d}),e[15]=d,e[16]=u):u=e[16];let x;return e[17]!==m||e[18]!==u?(x=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[m,u]}),e[17]=m,e[18]=u,e[19]=x):x=e[19],x}function ne(t){const e=j.c(9),{action:r}=t,i=N();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(T,{}),e[0]=c):c=e[0];let n;e[1]!==i?(n=i("settings.secrets.emptyTitle"),e[1]=i,e[2]=n):n=e[2];let l;e[3]!==i?(l=i("settings.secrets.emptyDescription"),e[3]=i,e[4]=l):l=e[4];let a;return e[5]!==r||e[6]!==n||e[7]!==l?(a=s.jsx(H,{children:s.jsx(G,{size:"inline",icon:c,title:n,description:l,children:r})}),e[5]=r,e[6]=n,e[7]=l,e[8]=a):a=e[8],a}function E({open:t,onOpenChange:e}){const r=N(),[i,c]=y.useState("organization"),[n,l]=y.useState(""),[a,m]=y.useState(""),[d,u]=y.useState(""),x=ee();function g(){c("organization"),l(""),m(""),u("")}function p(){g(),e(!1)}async function S(o){if(o.preventDefault(),!(!n.trim()||!a))try{await x.mutateAsync({scope:i,name:n.trim(),value:a,description:d.trim()||void 0}),z.success(r("settings.secrets.secretCreated",{name:n.trim()})),p()}catch(f){z.error(f instanceof Error?f.message:r("settings.secrets.failedToCreateSecret"))}}return s.jsx(O,{open:t,onOpenChange:o=>{o?e(o):p()},children:s.jsxs(A,{className:"sm:max-w-lg",children:[s.jsxs(R,{children:[s.jsx(I,{children:r("settings.secrets.newSecretTitle")}),s.jsx(q,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:S,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-scope",children:r("settings.secrets.scopeLabel")}),s.jsxs(J,{value:i,onValueChange:o=>c(o),children:[s.jsx(K,{id:"secret-scope",children:s.jsx(Q,{})}),s.jsxs(W,{children:[s.jsx(P,{value:"organization",children:r("settings.secrets.scopeOrganizationDescription")}),s.jsx(P,{value:"user",children:r("settings.secrets.scopePrivateDescription")})]})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-name",children:r("settings.secrets.nameLabel")}),s.jsx(_,{id:"secret-name",value:n,onChange:o=>l(o.target.value),placeholder:r("settings.secrets.namePlaceholder"),autoComplete:"off",required:!0}),s.jsx("p",{className:"text-xs text-muted-foreground",children:r("settings.secrets.nameHelp")})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-value",children:r("settings.secrets.valueLabel")}),s.jsx(_,{id:"secret-value",type:"password",value:a,onChange:o=>m(o.target.value),autoComplete:"new-password",required:!0})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-description",children:r("settings.secrets.descriptionLabel")}),s.jsx(X,{id:"secret-description",value:d,onChange:o=>u(o.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(V,{children:[s.jsx(D,{type:"button",variant:"outline",onClick:p,disabled:x.isPending,children:r("settings.secrets.cancelButton")}),s.jsx(D,{type:"submit",disabled:x.isPending||!n.trim()||!a,children:x.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function ie(){const t=j.c(34),e=N(),r=Z(),[i,c]=y.useState(!1);let n,l;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c(!0),l=s.jsx(U,{size:14}),t[0]=n,t[1]=l):(n=t[0],l=t[1]);let a;t[2]!==e?(a=e("settings.secrets.newSecret"),t[2]=e,t[3]=a):a=t[3];let m;t[4]!==a?(m=s.jsx(C.Actions,{children:s.jsxs(D,{size:"sm",onClick:n,children:[l,a]})}),t[4]=a,t[5]=m):m=t[5];const d=m;if(r.length===0){let o;t[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(ne,{action:!1}),t[6]=o):o=t[6];let f;t[7]!==i?(f=s.jsx(E,{open:i,onOpenChange:c}),t[7]=i,t[8]=f):f=t[8];let h;return t[9]!==d||t[10]!==f?(h=s.jsxs(s.Fragment,{children:[d,o,f]}),t[9]=d,t[10]=f,t[11]=h):h=t[11],h}let u,x,g;if(t[12]!==d||t[13]!==r||t[14]!==e){const o=r.filter(oe),f=r.filter(ae),h=r.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let b;t[18]!==r.length||t[19]!==e||t[20]!==h?(b=e(h,{count:r.length}),t[18]=r.length,t[19]=e,t[20]=h,t[21]=b):b=t[21];let v;t[22]!==b?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:b}),t[22]=b,t[23]=v):v=t[23],t[24]!==d||t[25]!==v?(u=s.jsxs("div",{className:"flex items-center justify-between",children:[v,d]}),t[24]=d,t[25]=v,t[26]=u):u=t[26],x=o.length>0?s.jsxs("section",{className:"surface p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionOrganization")}),s.jsx("div",{children:o.map(le)})]}):null,g=f.length>0?s.jsxs("section",{className:"surface p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionPrivate")}),s.jsx("div",{children:f.map(ce)})]}):null,t[12]=d,t[13]=r,t[14]=e,t[15]=u,t[16]=x,t[17]=g}else u=t[15],x=t[16],g=t[17];let p;t[27]!==i?(p=s.jsx(E,{open:i,onOpenChange:c}),t[27]=i,t[28]=p):p=t[28];let S;return t[29]!==u||t[30]!==x||t[31]!==g||t[32]!==p?(S=s.jsxs(s.Fragment,{children:[u,x,g,p]}),t[29]=u,t[30]=x,t[31]=g,t[32]=p,t[33]=S):S=t[33],S}function ce(t){return s.jsx($,{secret:t},t.id)}function le(t){return s.jsx($,{secret:t},t.id)}function ae(t){return t.scope==="user"}function oe(t){return t.scope==="organization"}function me(){const t=j.c(7),e=N();let r;t[0]!==e?(r=e("settings.nav.secrets"),t[0]=e,t[1]=r):r=t[1];let i;t[2]!==r?(i=s.jsx(C.Title,{children:r}),t[2]=r,t[3]=i):i=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(k,{fallback:de,children:s.jsx(y.Suspense,{fallback:s.jsx(B,{className:"h-32 w-full"}),children:s.jsx(ie,{})})}),t[4]=c):c=t[4];let n;return t[5]!==i?(n=s.jsx(C,{children:s.jsx(C.Content,{children:s.jsx(C.Container,{children:s.jsxs(F,{children:[i,c]})})})}),t[5]=i,t[6]=n):n=t[6],n}function de(t){const{error:e}=t;return s.jsx(se,{error:e??new Error("Failed to load secrets")})}function _e(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(te,{capability:"secrets:manage",area:"secrets",children:s.jsx(me,{})}),t[0]=e):e=t[0],e}export{_e as default};
1
+ import{c as j,b as N,j as s,n as C,hd as F,M as k,r as y,bB as B,B as D,aC as L,ag as T,D as O,v as A,w as R,x as I,aY as q,I as _,y as V,t as z,fU as H}from"./index-CD3fj83c.js";import{i as M}from"./AlertCircle-Ds_2WhXL.js";import{s as U}from"./Plus-DCMQMI-9.js";import{t as Y}from"./Users01-BewLilnR.js";import{E as G}from"./empty-state-C98_cQun.js";import{L as w}from"./label-BjHcnejP.js";import{S as J,b as K,a as Q,d as W,c as P}from"./select-CEUzoC6o.js";import{T as X}from"./textarea-DHsxWS9H.js";import{u as Z,a as ee}from"./use-secrets-0iGSdnGP.js";import{R as te}from"./require-capability-DiaarhnE.js";import"./index-BdQq_4o_.js";import"./index-D4YmJ5bn.js";import"./ChevronUp-zgLSJo7N.js";import"./access-gate-B5lnrNp3.js";import"./capability-load-error-WlqEME5j.js";function se(t){const e=j.c(6),{error:r}=t,i=N();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(M,{size:16}),e[0]=c):c=e[0];let n;e[1]!==r.message||e[2]!==i?(n=i("settings.secrets.failedToLoadError",{error:r.message}),e[1]=r.message,e[2]=i,e[3]=n):n=e[3];let l;return e[4]!==n?(l=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[c,s.jsx("span",{className:"text-sm font-medium",children:n})]}),e[4]=n,e[5]=l):l=e[5],l}function re(t){const e=j.c(8),{scope:r}=t,i=N(),c=r==="user"?L:Y;let n;e[0]!==r||e[1]!==i?(n=i(r==="user"?"settings.secrets.scopePrivate":"settings.secrets.scopeOrganization"),e[0]=r,e[1]=i,e[2]=n):n=e[2];const l=n;let a;e[3]!==c?(a=s.jsx(c,{size:12}),e[3]=c,e[4]=a):a=e[4];let m;return e[5]!==l||e[6]!==a?(m=s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-muted text-muted-foreground text-xs",children:[a,l]}),e[5]=l,e[6]=a,e[7]=m):m=e[7],m}function $(t){const e=j.c(20),{secret:r}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(T,{size:16,className:"text-muted-foreground"})}),e[0]=i):i=e[0];let c;e[1]!==r.name?(c=s.jsx("span",{className:"font-medium text-sm truncate",children:r.name}),e[1]=r.name,e[2]=c):c=e[2];let n;e[3]!==r.scope?(n=s.jsx(re,{scope:r.scope}),e[3]=r.scope,e[4]=n):n=e[4];let l;e[5]!==c||e[6]!==n?(l=s.jsxs("div",{className:"flex items-center gap-2",children:[c,n]}),e[5]=c,e[6]=n,e[7]=l):l=e[7];let a;e[8]!==r.description?(a=r.description?s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:r.description}):null,e[8]=r.description,e[9]=a):a=e[9];let m;e[10]!==l||e[11]!==a?(m=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[i,s.jsxs("div",{className:"min-w-0",children:[l,a]})]}),e[10]=l,e[11]=a,e[12]=m):m=e[12];let d;e[13]!==r.createdAt?(d=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=d):d=e[14];let u;e[15]!==d?(u=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:d}),e[15]=d,e[16]=u):u=e[16];let x;return e[17]!==m||e[18]!==u?(x=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[m,u]}),e[17]=m,e[18]=u,e[19]=x):x=e[19],x}function ne(t){const e=j.c(9),{action:r}=t,i=N();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(T,{}),e[0]=c):c=e[0];let n;e[1]!==i?(n=i("settings.secrets.emptyTitle"),e[1]=i,e[2]=n):n=e[2];let l;e[3]!==i?(l=i("settings.secrets.emptyDescription"),e[3]=i,e[4]=l):l=e[4];let a;return e[5]!==r||e[6]!==n||e[7]!==l?(a=s.jsx(H,{children:s.jsx(G,{size:"inline",icon:c,title:n,description:l,children:r})}),e[5]=r,e[6]=n,e[7]=l,e[8]=a):a=e[8],a}function E({open:t,onOpenChange:e}){const r=N(),[i,c]=y.useState("organization"),[n,l]=y.useState(""),[a,m]=y.useState(""),[d,u]=y.useState(""),x=ee();function g(){c("organization"),l(""),m(""),u("")}function p(){g(),e(!1)}async function S(o){if(o.preventDefault(),!(!n.trim()||!a))try{await x.mutateAsync({scope:i,name:n.trim(),value:a,description:d.trim()||void 0}),z.success(r("settings.secrets.secretCreated",{name:n.trim()})),p()}catch(f){z.error(f instanceof Error?f.message:r("settings.secrets.failedToCreateSecret"))}}return s.jsx(O,{open:t,onOpenChange:o=>{o?e(o):p()},children:s.jsxs(A,{className:"sm:max-w-lg",children:[s.jsxs(R,{children:[s.jsx(I,{children:r("settings.secrets.newSecretTitle")}),s.jsx(q,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:S,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-scope",children:r("settings.secrets.scopeLabel")}),s.jsxs(J,{value:i,onValueChange:o=>c(o),children:[s.jsx(K,{id:"secret-scope",children:s.jsx(Q,{})}),s.jsxs(W,{children:[s.jsx(P,{value:"organization",children:r("settings.secrets.scopeOrganizationDescription")}),s.jsx(P,{value:"user",children:r("settings.secrets.scopePrivateDescription")})]})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-name",children:r("settings.secrets.nameLabel")}),s.jsx(_,{id:"secret-name",value:n,onChange:o=>l(o.target.value),placeholder:r("settings.secrets.namePlaceholder"),autoComplete:"off",required:!0}),s.jsx("p",{className:"text-xs text-muted-foreground",children:r("settings.secrets.nameHelp")})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-value",children:r("settings.secrets.valueLabel")}),s.jsx(_,{id:"secret-value",type:"password",value:a,onChange:o=>m(o.target.value),autoComplete:"new-password",required:!0})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-description",children:r("settings.secrets.descriptionLabel")}),s.jsx(X,{id:"secret-description",value:d,onChange:o=>u(o.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(V,{children:[s.jsx(D,{type:"button",variant:"outline",onClick:p,disabled:x.isPending,children:r("settings.secrets.cancelButton")}),s.jsx(D,{type:"submit",disabled:x.isPending||!n.trim()||!a,children:x.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function ie(){const t=j.c(34),e=N(),r=Z(),[i,c]=y.useState(!1);let n,l;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c(!0),l=s.jsx(U,{size:14}),t[0]=n,t[1]=l):(n=t[0],l=t[1]);let a;t[2]!==e?(a=e("settings.secrets.newSecret"),t[2]=e,t[3]=a):a=t[3];let m;t[4]!==a?(m=s.jsx(C.Actions,{children:s.jsxs(D,{size:"sm",onClick:n,children:[l,a]})}),t[4]=a,t[5]=m):m=t[5];const d=m;if(r.length===0){let o;t[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(ne,{action:!1}),t[6]=o):o=t[6];let f;t[7]!==i?(f=s.jsx(E,{open:i,onOpenChange:c}),t[7]=i,t[8]=f):f=t[8];let h;return t[9]!==d||t[10]!==f?(h=s.jsxs(s.Fragment,{children:[d,o,f]}),t[9]=d,t[10]=f,t[11]=h):h=t[11],h}let u,x,g;if(t[12]!==d||t[13]!==r||t[14]!==e){const o=r.filter(oe),f=r.filter(ae),h=r.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let b;t[18]!==r.length||t[19]!==e||t[20]!==h?(b=e(h,{count:r.length}),t[18]=r.length,t[19]=e,t[20]=h,t[21]=b):b=t[21];let v;t[22]!==b?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:b}),t[22]=b,t[23]=v):v=t[23],t[24]!==d||t[25]!==v?(u=s.jsxs("div",{className:"flex items-center justify-between",children:[v,d]}),t[24]=d,t[25]=v,t[26]=u):u=t[26],x=o.length>0?s.jsxs("section",{className:"surface p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionOrganization")}),s.jsx("div",{children:o.map(le)})]}):null,g=f.length>0?s.jsxs("section",{className:"surface p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionPrivate")}),s.jsx("div",{children:f.map(ce)})]}):null,t[12]=d,t[13]=r,t[14]=e,t[15]=u,t[16]=x,t[17]=g}else u=t[15],x=t[16],g=t[17];let p;t[27]!==i?(p=s.jsx(E,{open:i,onOpenChange:c}),t[27]=i,t[28]=p):p=t[28];let S;return t[29]!==u||t[30]!==x||t[31]!==g||t[32]!==p?(S=s.jsxs(s.Fragment,{children:[u,x,g,p]}),t[29]=u,t[30]=x,t[31]=g,t[32]=p,t[33]=S):S=t[33],S}function ce(t){return s.jsx($,{secret:t},t.id)}function le(t){return s.jsx($,{secret:t},t.id)}function ae(t){return t.scope==="user"}function oe(t){return t.scope==="organization"}function me(){const t=j.c(7),e=N();let r;t[0]!==e?(r=e("settings.nav.secrets"),t[0]=e,t[1]=r):r=t[1];let i;t[2]!==r?(i=s.jsx(C.Title,{children:r}),t[2]=r,t[3]=i):i=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(k,{fallback:de,children:s.jsx(y.Suspense,{fallback:s.jsx(B,{className:"h-32 w-full"}),children:s.jsx(ie,{})})}),t[4]=c):c=t[4];let n;return t[5]!==i?(n=s.jsx(C,{children:s.jsx(C.Content,{children:s.jsx(C.Container,{children:s.jsxs(F,{children:[i,c]})})})}),t[5]=i,t[6]=n):n=t[6],n}function de(t){const{error:e}=t;return s.jsx(se,{error:e??new Error("Failed to load secrets")})}function _e(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(te,{capability:"secrets:manage",area:"secrets",children:s.jsx(me,{})}),t[0]=e):e=t[0],e}export{_e as default};
@@ -1 +1 @@
1
- import{c as S,b as j,j as i,r as N,ai as w,B as R,l as _,a7 as k,f3 as A}from"./index-D_g5fbwO.js";import{a as C}from"./Copy01-CNd4Y0N1.js";import{a as E,b as O,A as L}from"./alert-DvVSGyF3.js";import{u as D}from"./use-copy-BymKXx9E.js";import{O as T}from"./parse-sections-CoU5h-pA.js";const h="https://docs.decocms.com/storefront/blocks",$={quickstart:`${h}/next/quickstart`,siteEditor:`${h}/next/site-editor#edit-on-your-machine`,serve:`${h}/next/cli#deco-serve`,schema:`${h}/next/cli#deco-schema-and-deco-content`,troubleshooting:`${h}/next/troubleshooting#site-editor`};function Y(t){const e=S.c(4),{text:s}=t;let o;e[0]!==s?(o=s.split("`").map(B),e[0]=s,e[1]=o):o=e[1];let r;return e[2]!==o?(r=i.jsx(i.Fragment,{children:o}),e[2]=o,e[3]=r):r=e[3],r}function B(t,e){return e%2===1?i.jsx("code",{className:"whitespace-nowrap rounded bg-muted px-1 py-px font-mono text-[0.85em] text-foreground",children:t},e):i.jsx(N.Fragment,{children:t},e)}function H(t){const e=S.c(31),{command:s}=t,o=j(),{handleCopy:r,copied:n}=D();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsxs("span",{"aria-hidden":"true",className:"select-none text-muted-foreground",children:["$"," "]}),e[0]=a):a=e[0];let c;e[1]!==s?(c=s.split(" ").map(P),e[1]=s,e[2]=c):c=e[2];let l;e[3]!==c?(l=i.jsxs("code",{className:"min-w-0 flex-1 overflow-x-auto py-1.5 font-mono text-xs leading-5 text-foreground",children:[a,c]}),e[3]=c,e[4]=l):l=e[4];let d;e[5]!==o?(d=o("decoServe.guide.copy"),e[5]=o,e[6]=d):d=e[6];let f;e[7]!==s||e[8]!==r?(f=()=>{r(s).catch(F)},e[7]=s,e[8]=r,e[9]=f):f=e[9];let u;e[10]!==n?(u=n?i.jsx(w,{className:"text-success"}):i.jsx(C,{}),e[10]=n,e[11]=u):u=e[11];let m;e[12]!==n||e[13]!==o?(m=o(n?"decoServe.guide.copied":"decoServe.guide.copyShort"),e[12]=n,e[13]=o,e[14]=m):m=e[14];let p;e[15]!==m?(p=i.jsx("span",{"aria-hidden":"true",children:m}),e[15]=m,e[16]=p):p=e[16];let g;e[17]!==d||e[18]!==f||e[19]!==u||e[20]!==p?(g=i.jsxs(R,{type:"button",variant:"ghost",size:"sm",className:"shrink-0 self-start","aria-label":d,onClick:f,children:[u,p]}),e[17]=d,e[18]=f,e[19]=u,e[20]=p,e[21]=g):g=e[21];let x;e[22]!==n||e[23]!==o?(x=n?o("decoServe.guide.copiedAnnouncement"):"",e[22]=n,e[23]=o,e[24]=x):x=e[24];let v;e[25]!==x?(v=i.jsx("span",{className:"sr-only","aria-live":"polite",children:x}),e[25]=x,e[26]=v):v=e[26];let y;return e[27]!==v||e[28]!==l||e[29]!==g?(y=i.jsxs("div",{className:"flex items-center gap-1 rounded-lg border border-border bg-muted/60 py-1 pr-1 pl-3",children:[l,g,v]}),e[27]=v,e[28]=l,e[29]=g,e[30]=y):y=e[30],y}function F(){}function P(t,e){return i.jsxs(N.Fragment,{children:[e>0&&" ",i.jsx("span",{className:"whitespace-nowrap",children:t})]},e)}const M={quickstart:"decoServe.docs.quickstart",siteEditor:"decoServe.docs.siteEditor",serve:"decoServe.docs.serve",schema:"decoServe.docs.schema",troubleshooting:"decoServe.docs.troubleshooting"};function G(t){const e=S.c(20),{links:s,className:o}=t,r=j();let n;e[0]!==r?(n=r("decoServe.docs.heading"),e[0]=r,e[1]=n):n=e[1];let a;e[2]!==o?(a=_("flex flex-col gap-2 text-sm",o),e[2]=o,e[3]=a):a=e[3];let c;e[4]!==r?(c=r("decoServe.docs.heading"),e[4]=r,e[5]=c):c=e[5];let l;e[6]!==c?(l=i.jsx("span",{className:"text-muted-foreground",children:c}),e[6]=c,e[7]=l):l=e[7];let d;if(e[8]!==s||e[9]!==r){let m;e[11]!==r?(m=p=>i.jsxs("a",{href:$[p],target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-foreground underline-offset-4 hover:underline focus-visible:underline",children:[r(M[p]),i.jsx(k,{"aria-hidden":"true",className:"size-3.5"}),i.jsx("span",{className:"sr-only",children:r("decoServe.docs.newTab")})]},p),e[11]=r,e[12]=m):m=e[12],d=s.map(m),e[8]=s,e[9]=r,e[10]=d}else d=e[10];let f;e[13]!==d?(f=i.jsx("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1",children:d}),e[13]=d,e[14]=f):f=e[14];let u;return e[15]!==n||e[16]!==a||e[17]!==l||e[18]!==f?(u=i.jsxs("nav",{"aria-label":n,className:a,children:[l,f]}),e[15]=n,e[16]=a,e[17]=l,e[18]=f,e[19]=u):u=e[19],u}function J(t,e,s){switch(e.reason){case"not-answering":return{title:t("decoServe.state.notAnswering.title"),body:t("decoServe.state.notAnswering.short",{host:s})};case"outdated":return{title:t("decoServe.state.outdated.title"),body:t("decoServe.state.outdated.body",{host:s})};case"version-mismatch":return{title:t("decoServe.state.versionMismatch.title"),body:t("decoServe.state.versionMismatch.body",{host:s})};case"not-deco-serve":return{title:t("decoServe.state.notDecoServe.title",{host:s}),body:t("decoServe.state.notDecoServe.body",{host:s})};case"not-v8":return{title:t("decoServe.state.notV8.title"),body:t("decoServe.state.notV8.body",{host:s})};case"error":return{title:t("decoServe.state.error.title"),body:t("decoServe.state.error.body",{detail:e.detail??""})}}}function K(){const t=S.c(11),e=j();let s;t[0]!==e?(s=e("decoServe.lna.deniedTitle"),t[0]=e,t[1]=s):s=t[1];let o;t[2]!==s?(o=i.jsx(E,{className:"line-clamp-none",children:s}),t[2]=s,t[3]=o):o=t[3];let r;t[4]!==e?(r=e("decoServe.lna.deniedBody"),t[4]=e,t[5]=r):r=t[5];let n;t[6]!==r?(n=i.jsx(O,{children:r}),t[6]=r,t[7]=n):n=t[7];let a;return t[8]!==o||t[9]!==n?(a=i.jsx(L,{variant:"destructive",children:i.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[o,n]})}),t[8]=o,t[9]=n,t[10]=a):a=t[10],a}const Q={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};function b(t){return t.includes("/sections/")||t.includes("multivariate/section")||t===A}function q(t){if(t.anyOfRefs?.length)return t.anyOfRefs.some(s=>b(s.resolveType));const e=t.properties?.__resolveType;return e?.type==="block-ref"&&e.anyOfRefs?.length?e.anyOfRefs.some(s=>b(s.resolveType)):!1}function X(t){return t.type!=="block-ref"||!t.anyOfRefs?.length?!1:t.anyOfRefs.some(e=>b(e.resolveType))}function Z(t,e){if(e==="global"||e==="sections"||T(t))return!0;const s=t.type==="array"?t.items:void 0;return s?q(s):!1}export{H as C,G as D,K as L,Y as R,Q as a,$ as b,X as c,b as d,Z as i,J as s};
1
+ import{c as S,b as j,j as i,r as N,ai as w,B as R,l as _,a7 as k,f3 as A}from"./index-CD3fj83c.js";import{a as C}from"./Copy01-BzoMFIdk.js";import{a as E,b as O,A as L}from"./alert-DtgstSU8.js";import{u as D}from"./use-copy-AGiqroYo.js";import{O as T}from"./parse-sections-B9Tf8cb0.js";const h="https://docs.decocms.com/storefront/blocks",$={quickstart:`${h}/next/quickstart`,siteEditor:`${h}/next/site-editor#edit-on-your-machine`,serve:`${h}/next/cli#deco-serve`,schema:`${h}/next/cli#deco-schema-and-deco-content`,troubleshooting:`${h}/next/troubleshooting#site-editor`};function Y(t){const e=S.c(4),{text:s}=t;let o;e[0]!==s?(o=s.split("`").map(B),e[0]=s,e[1]=o):o=e[1];let r;return e[2]!==o?(r=i.jsx(i.Fragment,{children:o}),e[2]=o,e[3]=r):r=e[3],r}function B(t,e){return e%2===1?i.jsx("code",{className:"whitespace-nowrap rounded bg-muted px-1 py-px font-mono text-[0.85em] text-foreground",children:t},e):i.jsx(N.Fragment,{children:t},e)}function H(t){const e=S.c(31),{command:s}=t,o=j(),{handleCopy:r,copied:n}=D();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsxs("span",{"aria-hidden":"true",className:"select-none text-muted-foreground",children:["$"," "]}),e[0]=a):a=e[0];let c;e[1]!==s?(c=s.split(" ").map(P),e[1]=s,e[2]=c):c=e[2];let l;e[3]!==c?(l=i.jsxs("code",{className:"min-w-0 flex-1 overflow-x-auto py-1.5 font-mono text-xs leading-5 text-foreground",children:[a,c]}),e[3]=c,e[4]=l):l=e[4];let d;e[5]!==o?(d=o("decoServe.guide.copy"),e[5]=o,e[6]=d):d=e[6];let f;e[7]!==s||e[8]!==r?(f=()=>{r(s).catch(F)},e[7]=s,e[8]=r,e[9]=f):f=e[9];let u;e[10]!==n?(u=n?i.jsx(w,{className:"text-success"}):i.jsx(C,{}),e[10]=n,e[11]=u):u=e[11];let m;e[12]!==n||e[13]!==o?(m=o(n?"decoServe.guide.copied":"decoServe.guide.copyShort"),e[12]=n,e[13]=o,e[14]=m):m=e[14];let p;e[15]!==m?(p=i.jsx("span",{"aria-hidden":"true",children:m}),e[15]=m,e[16]=p):p=e[16];let g;e[17]!==d||e[18]!==f||e[19]!==u||e[20]!==p?(g=i.jsxs(R,{type:"button",variant:"ghost",size:"sm",className:"shrink-0 self-start","aria-label":d,onClick:f,children:[u,p]}),e[17]=d,e[18]=f,e[19]=u,e[20]=p,e[21]=g):g=e[21];let x;e[22]!==n||e[23]!==o?(x=n?o("decoServe.guide.copiedAnnouncement"):"",e[22]=n,e[23]=o,e[24]=x):x=e[24];let v;e[25]!==x?(v=i.jsx("span",{className:"sr-only","aria-live":"polite",children:x}),e[25]=x,e[26]=v):v=e[26];let y;return e[27]!==v||e[28]!==l||e[29]!==g?(y=i.jsxs("div",{className:"flex items-center gap-1 rounded-lg border border-border bg-muted/60 py-1 pr-1 pl-3",children:[l,g,v]}),e[27]=v,e[28]=l,e[29]=g,e[30]=y):y=e[30],y}function F(){}function P(t,e){return i.jsxs(N.Fragment,{children:[e>0&&" ",i.jsx("span",{className:"whitespace-nowrap",children:t})]},e)}const M={quickstart:"decoServe.docs.quickstart",siteEditor:"decoServe.docs.siteEditor",serve:"decoServe.docs.serve",schema:"decoServe.docs.schema",troubleshooting:"decoServe.docs.troubleshooting"};function G(t){const e=S.c(20),{links:s,className:o}=t,r=j();let n;e[0]!==r?(n=r("decoServe.docs.heading"),e[0]=r,e[1]=n):n=e[1];let a;e[2]!==o?(a=_("flex flex-col gap-2 text-sm",o),e[2]=o,e[3]=a):a=e[3];let c;e[4]!==r?(c=r("decoServe.docs.heading"),e[4]=r,e[5]=c):c=e[5];let l;e[6]!==c?(l=i.jsx("span",{className:"text-muted-foreground",children:c}),e[6]=c,e[7]=l):l=e[7];let d;if(e[8]!==s||e[9]!==r){let m;e[11]!==r?(m=p=>i.jsxs("a",{href:$[p],target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-foreground underline-offset-4 hover:underline focus-visible:underline",children:[r(M[p]),i.jsx(k,{"aria-hidden":"true",className:"size-3.5"}),i.jsx("span",{className:"sr-only",children:r("decoServe.docs.newTab")})]},p),e[11]=r,e[12]=m):m=e[12],d=s.map(m),e[8]=s,e[9]=r,e[10]=d}else d=e[10];let f;e[13]!==d?(f=i.jsx("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1",children:d}),e[13]=d,e[14]=f):f=e[14];let u;return e[15]!==n||e[16]!==a||e[17]!==l||e[18]!==f?(u=i.jsxs("nav",{"aria-label":n,className:a,children:[l,f]}),e[15]=n,e[16]=a,e[17]=l,e[18]=f,e[19]=u):u=e[19],u}function J(t,e,s){switch(e.reason){case"not-answering":return{title:t("decoServe.state.notAnswering.title"),body:t("decoServe.state.notAnswering.short",{host:s})};case"outdated":return{title:t("decoServe.state.outdated.title"),body:t("decoServe.state.outdated.body",{host:s})};case"version-mismatch":return{title:t("decoServe.state.versionMismatch.title"),body:t("decoServe.state.versionMismatch.body",{host:s})};case"not-deco-serve":return{title:t("decoServe.state.notDecoServe.title",{host:s}),body:t("decoServe.state.notDecoServe.body",{host:s})};case"not-v8":return{title:t("decoServe.state.notV8.title"),body:t("decoServe.state.notV8.body",{host:s})};case"error":return{title:t("decoServe.state.error.title"),body:t("decoServe.state.error.body",{detail:e.detail??""})}}}function K(){const t=S.c(11),e=j();let s;t[0]!==e?(s=e("decoServe.lna.deniedTitle"),t[0]=e,t[1]=s):s=t[1];let o;t[2]!==s?(o=i.jsx(E,{className:"line-clamp-none",children:s}),t[2]=s,t[3]=o):o=t[3];let r;t[4]!==e?(r=e("decoServe.lna.deniedBody"),t[4]=e,t[5]=r):r=t[5];let n;t[6]!==r?(n=i.jsx(O,{children:r}),t[6]=r,t[7]=n):n=t[7];let a;return t[8]!==o||t[9]!==n?(a=i.jsx(L,{variant:"destructive",children:i.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[o,n]})}),t[8]=o,t[9]=n,t[10]=a):a=t[10],a}const Q={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};function b(t){return t.includes("/sections/")||t.includes("multivariate/section")||t===A}function q(t){if(t.anyOfRefs?.length)return t.anyOfRefs.some(s=>b(s.resolveType));const e=t.properties?.__resolveType;return e?.type==="block-ref"&&e.anyOfRefs?.length?e.anyOfRefs.some(s=>b(s.resolveType)):!1}function X(t){return t.type!=="block-ref"||!t.anyOfRefs?.length?!1:t.anyOfRefs.some(e=>b(e.resolveType))}function Z(t,e){if(e==="global"||e==="sections"||T(t))return!0;const s=t.type==="array"?t.items:void 0;return s?q(s):!1}export{H as C,G as D,K as L,Y as R,Q as a,$ as b,X as c,b as d,Z as i,J as s};
@@ -1 +1 @@
1
- import{W as i,F as e}from"./agent-icon-gy5gO-IG.js";import{i as n}from"./Link01-B2ZgpsAH.js";const s=["general","connections","site"],r={general:{icon:e,titleKey:"virtualMcp.settings.general.title",descriptionKey:"virtualMcp.settings.general.description"},connections:{icon:n,titleKey:"virtualMcp.settings.connections.title",descriptionKey:"virtualMcp.settings.connections.description"},site:{icon:i,titleKey:"virtualMcp.settings.site.title",descriptionKey:"virtualMcp.settings.site.description"}};function l(t){return!!t&&s.includes(t)}export{s as P,r as a,l as i};
1
+ import{W as i,F as e}from"./agent-icon-CXyyqpMa.js";import{i as n}from"./Link01-3o9Elk03.js";const s=["general","connections","site"],r={general:{icon:e,titleKey:"virtualMcp.settings.general.title",descriptionKey:"virtualMcp.settings.general.description"},connections:{icon:n,titleKey:"virtualMcp.settings.connections.title",descriptionKey:"virtualMcp.settings.connections.description"},site:{icon:i,titleKey:"virtualMcp.settings.site.title",descriptionKey:"virtualMcp.settings.site.description"}};function l(t){return!!t&&s.includes(t)}export{s as P,r as a,l as i};