decocms 4.372.1 → 4.372.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. package/dist/client/assets/{AlertCircle-DbwtWnTP.js → AlertCircle-CMjsP_Tk.js} +1 -1
  2. package/dist/client/assets/{AreaChart-tdrxZdfF.js → AreaChart-Bh_grNQZ.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-CyH6aWpS.js → ArrowLeft-CjYy5Nhj.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-Bv0iX4wy.js → ArrowRight-CLncCNat.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-Scf6R8DX.js → ArrowUp-Cii1LHW7.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-D1MxLL7k.js → CartesianChart-CD-5y_pX.js} +1 -1
  7. package/dist/client/assets/{Check-BZE0WrNL.js → Check-B3RSsr_D.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-BKb1RVrA.js → CheckCircle-DHXQFnpK.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-DNrwFBnC.js → ChevronRight-USKkhEpL.js} +1 -1
  10. package/dist/client/assets/{ChevronSelectorVertical-oXn0cTzk.js → ChevronSelectorVertical-DpRb2z1l.js} +1 -1
  11. package/dist/client/assets/{ChevronUp-D5_IWEtB.js → ChevronUp-DiYhGG4T.js} +1 -1
  12. package/dist/client/assets/{Copy01-DTHuBaTA.js → Copy01-nMxlBfeT.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-CwX6pA0M.js → CreditCard01-CWXVH3ZM.js} +1 -1
  14. package/dist/client/assets/{Database01-RGlwXHSd.js → Database01-C0YJpjc3.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-DE9eZKrJ.js → DotsVertical-CsjwfYzf.js} +1 -1
  16. package/dist/client/assets/{Download01-qX3hmvr5.js → Download01-BRrSA3Yx.js} +1 -1
  17. package/dist/client/assets/{ErrorBarContext-9sp0Dc4M.js → ErrorBarContext-fXvhmekg.js} +1 -1
  18. package/dist/client/assets/{Eye-DXUjft5i.js → Eye-Dyg2WPG4.js} +1 -1
  19. package/dist/client/assets/{File02-g-xJPix_.js → File02-BvR-HYxK.js} +1 -1
  20. package/dist/client/assets/{GitBranch01-ddoPQdPH.js → GitBranch01-rWb2SJK9.js} +1 -1
  21. package/dist/client/assets/{Globe01-DIy8wXF6.js → Globe01-D6FaaFR2.js} +1 -1
  22. package/dist/client/assets/{HardDrive-DU_z1AQw.js → HardDrive-DNTPLPT4.js} +1 -1
  23. package/dist/client/assets/{Image01-DfaxHjlV.js → Image01-CxnjAzbb.js} +1 -1
  24. package/dist/client/assets/{Key01-mqjfsZRe.js → Key01-CIXwHMRo.js} +1 -1
  25. package/dist/client/assets/{Line-D02_6GXf.js → Line-YO4Ozgbt.js} +1 -1
  26. package/dist/client/assets/{Link01-C656VtHx.js → Link01-C0FvgZZB.js} +1 -1
  27. package/dist/client/assets/{LinkExternal01-BkRUjBAn.js → LinkExternal01-AWlhN5o7.js} +1 -1
  28. package/dist/client/assets/{MessageCircle01-CgotMmLL.js → MessageCircle01-DBcg2aiD.js} +1 -1
  29. package/dist/client/assets/{Monitor01-CQ6Zk1oP.js → Monitor01-Ccs1gh2Z.js} +1 -1
  30. package/dist/client/assets/{Package-t6euxYcP.js → Package-nTbucmaQ.js} +1 -1
  31. package/dist/client/assets/{Palette-oECS8j3l.js → Palette-DSdn1Xis.js} +1 -1
  32. package/dist/client/assets/{Play-DQgzDnaW.js → Play-lMuWOObF.js} +1 -1
  33. package/dist/client/assets/{Plus-D2HOi_DD.js → Plus-CVauOqLT.js} +1 -1
  34. package/dist/client/assets/{Printer-BpZBiqyG.js → Printer-CvyxF9Jo.js} +1 -1
  35. package/dist/client/assets/{SearchLg-DbX4T5E-.js → SearchLg-BrrPVuXr.js} +1 -1
  36. package/dist/client/assets/{SearchMd-FDCJM3CR.js → SearchMd-C45D2PMI.js} +1 -1
  37. package/dist/client/assets/{Sector-BW9tyobX.js → Sector-9mXbxJ9i.js} +1 -1
  38. package/dist/client/assets/{Settings02-CFcKewXh.js → Settings02-Cyf85ea0.js} +1 -1
  39. package/dist/client/assets/{Share07-CxuHcmnM.js → Share07-wC47qn2E.js} +1 -1
  40. package/dist/client/assets/{Shield01-HrKG6yUn.js → Shield01-CqB4I7qm.js} +1 -1
  41. package/dist/client/assets/{Stars01-B_nM3FYf.js → Stars01-oAh9h5b5.js} +1 -1
  42. package/dist/client/assets/{Sun-SBoG-e9B.js → Sun-0Ied-kyZ.js} +1 -1
  43. package/dist/client/assets/{SwitchHorizontal01-hHr6GOmU.js → SwitchHorizontal01-DpXsFGyJ.js} +1 -1
  44. package/dist/client/assets/{Tool01-DHi_Z7zo.js → Tool01-DouqPjim.js} +1 -1
  45. package/dist/client/assets/{Tool02-JY0gm8cg.js → Tool02-CATStXCy.js} +1 -1
  46. package/dist/client/assets/{Trash01-C6bziN5X.js → Trash01-nl-t4IoV.js} +1 -1
  47. package/dist/client/assets/{TrendUp01-Bkdgpfn7.js → TrendUp01-BFAEMx9E.js} +1 -1
  48. package/dist/client/assets/{Upload01-DC2spim9.js → Upload01-B4Fqdkae.js} +1 -1
  49. package/dist/client/assets/{User01-BbOpA84p.js → User01-ClMaVCaJ.js} +1 -1
  50. package/dist/client/assets/{UserSquare-qgzToKNd.js → UserSquare-B2lKdt4w.js} +1 -1
  51. package/dist/client/assets/{Users01-BOsDT0Jv.js → Users01-BFhxJVhO.js} +1 -1
  52. package/dist/client/assets/{Users03-BP-0DNhp.js → Users03-Y0Jco4zL.js} +1 -1
  53. package/dist/client/assets/{X-Bzh3NI3m.js → X-CFCE4a-Q.js} +1 -1
  54. package/dist/client/assets/{XCircle-CuK2q_XU.js → XCircle-CleKT0Id.js} +1 -1
  55. package/dist/client/assets/{XClose-Cvyz3reC.js → XClose-BgzK-Dwz.js} +1 -1
  56. package/dist/client/assets/{Zap-DXNovEva.js → Zap-B6zkqKWB.js} +1 -1
  57. package/dist/client/assets/{ZoomOut-BRjMa-04.js → ZoomOut-BPxprY2s.js} +1 -1
  58. package/dist/client/assets/{access-gate-NMf18NsK.js → access-gate-Ds4n25mC.js} +1 -1
  59. package/dist/client/assets/{add-connection-dialog-GfufFuLz.js → add-connection-dialog-DZjTm9W3.js} +1 -1
  60. package/dist/client/assets/{agent-analytics-DKvARLL3.js → agent-analytics-DmvdLg8B.js} +1 -1
  61. package/dist/client/assets/agent-app-BvmFdS4C.js +1 -0
  62. package/dist/client/assets/{agent-assets-DePuap3v.js → agent-assets-czUGY90q.js} +1 -1
  63. package/dist/client/assets/{agent-automation-NvLs9ax2.js → agent-automation-C5Kr5Oj3.js} +1 -1
  64. package/dist/client/assets/{agent-automations-BV3f-ekl.js → agent-automations-D-3-Opoc.js} +1 -1
  65. package/dist/client/assets/{agent-connect-sources-DtqgR_Ib.js → agent-connect-sources-CjhmYssY.js} +1 -1
  66. package/dist/client/assets/agent-deck-BC5MWVm-.js +1 -0
  67. package/dist/client/assets/{agent-e2e-CHL03ziT.js → agent-e2e-DkL4Ltr6.js} +1 -1
  68. package/dist/client/assets/{agent-experiments-CWfra8gc.js → agent-experiments--rXT-2aB.js} +1 -1
  69. package/dist/client/assets/agent-file-C3XkHLMm.js +1 -0
  70. package/dist/client/assets/{agent-git-CU-dqFim.js → agent-git-D4IYczGa.js} +1 -1
  71. package/dist/client/assets/{agent-hosting-x-9xTx9o.js → agent-hosting-DaIfm8Hu.js} +1 -1
  72. package/dist/client/assets/{agent-icon-BD4DM2Lv.js → agent-icon-CczrFEe7.js} +1 -1
  73. package/dist/client/assets/agent-library-file-Dji653pU.js +1 -0
  74. package/dist/client/assets/{agent-monitor-CpVDwlgY.js → agent-monitor-C-HIyaF_.js} +1 -1
  75. package/dist/client/assets/{agent-overview-SQDEg6Zv.js → agent-overview-cm15sxNU.js} +1 -1
  76. package/dist/client/assets/agent-settings-XmhY1FOi.js +1 -0
  77. package/dist/client/assets/{agent-site-editor-BXrb3i4T.js → agent-site-editor-DJSdtoNU.js} +1 -1
  78. package/dist/client/assets/agent-site-editor-code-_Tz57RqE.js +2 -0
  79. package/dist/client/assets/{agent-site-editor-content-C3uy2bqp.js → agent-site-editor-content-DOAcxz0t.js} +2 -2
  80. package/dist/client/assets/{agent-site-editor-preview-BB-KqzfI.js → agent-site-editor-preview-mg5Q6hoW.js} +3 -3
  81. package/dist/client/assets/agent-view-ClMILC98.js +1 -0
  82. package/dist/client/assets/{agent-view-guard-q_9RifUL.js → agent-view-guard-DHJpzCVR.js} +1 -1
  83. package/dist/client/assets/{agents-list-BCgsEzHh.js → agents-list-rKFF5b3o.js} +1 -1
  84. package/dist/client/assets/{ai-providers-DGgtE9F7.js → ai-providers-jxGd6MbV.js} +1 -1
  85. package/dist/client/assets/{alert-Cnsh1M35.js → alert-U2IStW1f.js} +1 -1
  86. package/dist/client/assets/{alert-dialog-Bi9Cy1y8.js → alert-dialog-BI-B_8hq.js} +1 -1
  87. package/dist/client/assets/{api-keys-BlYGdiam.js → api-keys-AIfL76r6.js} +1 -1
  88. package/dist/client/assets/api-keys-B6ry5Bc6.js +1 -0
  89. package/dist/client/assets/app-editor-BZKFeBmU.js +1 -0
  90. package/dist/client/assets/{asset-utils-syVIRo9d.js → asset-utils-DhbLEVKo.js} +1 -1
  91. package/dist/client/assets/{auth-D-2jYpOE.js → auth-DhzAq_9m.js} +1 -1
  92. package/dist/client/assets/{auth-catchall-C3GEml6h.js → auth-catchall-Dar7OygY.js} +1 -1
  93. package/dist/client/assets/{auth-entry-CJhH7CHs.js → auth-entry-CwWjlqGu.js} +1 -1
  94. package/dist/client/assets/{auth-split-layout-B3xBkE6i.js → auth-split-layout-DLFqjvPt.js} +1 -1
  95. package/dist/client/assets/{authenticate-and-persist-oauth-2yRhuiER.js → authenticate-and-persist-oauth-DkJ4g-X5.js} +1 -1
  96. package/dist/client/assets/{automation-list-row-DVPV4sOa.js → automation-list-row-Btr-Kty6.js} +1 -1
  97. package/dist/client/assets/{automation-runs-DnDgp3GT.js → automation-runs-CnOOOwZJ.js} +1 -1
  98. package/dist/client/assets/automations-CtLmB1Eo.js +1 -0
  99. package/dist/client/assets/{autosend-D-BN-cv5.js → autosend-BberXmli.js} +1 -1
  100. package/dist/client/assets/{avatar-Duu5Gg02.js → avatar-C9HiP4eS.js} +1 -1
  101. package/dist/client/assets/{badge-BNBGXxmC.js → badge-Bu51Hlti.js} +1 -1
  102. package/dist/client/assets/{block-document-BT-7XjFG.js → block-document-BLCekKXO.js} +1 -1
  103. package/dist/client/assets/{blocks-preview-workspace-context-BvM2Da4n.js → blocks-preview-workspace-context-Bwmvvd4S.js} +1 -1
  104. package/dist/client/assets/{breadcrumb-sWWxibcS.js → breadcrumb-Dhdru7Jh.js} +1 -1
  105. package/dist/client/assets/{buckets-Biauz5yB.js → buckets-BndbOAGO.js} +1 -1
  106. package/dist/client/assets/{build-improve-prompt-doc-RalyChXZ.js → build-improve-prompt-doc-Cedp3vV1.js} +1 -1
  107. package/dist/client/assets/{bulk-category-panel-CODUgRdO.js → bulk-category-panel-D3c_qJDk.js} +1 -1
  108. package/dist/client/assets/{calendar-Dyov14Y_.js → calendar-DIQx67oO.js} +1 -1
  109. package/dist/client/assets/{capability-load-error-L3ivCxmO.js → capability-load-error-CJMvYDf4.js} +1 -1
  110. package/dist/client/assets/{cards-ojW-Mo-n.js → cards-BVw8sRdW.js} +1 -1
  111. package/dist/client/assets/category-editor-C7sRrVfl.js +1 -0
  112. package/dist/client/assets/{chart-Con9xnVz.js → chart-8nXuVw9P.js} +1 -1
  113. package/dist/client/assets/{chat-context-BBVkwd3p.js → chat-context-tZCX_cqt.js} +1 -1
  114. package/dist/client/assets/{chat-draft-bAtYgASI.js → chat-draft-BCeqPSxA.js} +1 -1
  115. package/dist/client/assets/{checkbox-Dkejdmst.js → checkbox-jLf7fBuW.js} +1 -1
  116. package/dist/client/assets/{choose-editor-BKF6XAA7.js → choose-editor-Cbu3-nVC.js} +1 -1
  117. package/dist/client/assets/{cli-auth-success-BUl2RZMr.js → cli-auth-success-D39z_FO3.js} +1 -1
  118. package/dist/client/assets/{client-icons-DLMNndDc.js → client-icons-DpcP1bht.js} +1 -1
  119. package/dist/client/assets/{collapsible-n44mVpiB.js → collapsible-CTgXdVQa.js} +1 -1
  120. package/dist/client/assets/{collection-detail-B7MXGdLU.js → collection-detail-BF7WM7Gn.js} +1 -1
  121. package/dist/client/assets/{collection-display-button-C3iXY6zC.js → collection-display-button-C-4xB6xx.js} +1 -1
  122. package/dist/client/assets/{collection-search-CeA9TK20.js → collection-search-J9Bt25gS.js} +1 -1
  123. package/dist/client/assets/{collection-table-wrapper-SWoJua5h.js → collection-table-wrapper-DBeauaNS.js} +1 -1
  124. package/dist/client/assets/{collection-tabs-3kW0qDG6.js → collection-tabs-CrXIJeNf.js} +1 -1
  125. package/dist/client/assets/{combobox-Px3Uvt7K.js → combobox-BHrqHmge.js} +1 -1
  126. package/dist/client/assets/{command-D2fiEFer.js → command-B-XD29Nx.js} +1 -1
  127. package/dist/client/assets/{command-palette-store-LVCQ6fRv.js → command-palette-store-DK-56E2K.js} +1 -1
  128. package/dist/client/assets/{companion-mcps-section-BcoKVpmX.js → companion-mcps-section-xmRpNJBK.js} +1 -1
  129. package/dist/client/assets/{connect-DlipH902.js → connect-D4qCE3TM.js} +1 -1
  130. package/dist/client/assets/{connect-layout-BQblJmFQ.js → connect-layout-DGO84ImO.js} +1 -1
  131. package/dist/client/assets/{connection-BfiO32wM.js → connection-DD0omVHZ.js} +1 -1
  132. package/dist/client/assets/{connection-card-83VJQMov.js → connection-card-fcMCwbTh.js} +1 -1
  133. package/dist/client/assets/{connection-detail-j_CvFKhd.js → connection-detail-DS015J4e.js} +1 -1
  134. package/dist/client/assets/{connection-form-helpers-Ms_1nBbP.js → connection-form-helpers-CHlcdgAK.js} +1 -1
  135. package/dist/client/assets/{connections-CERSp27f.js → connections-C98FMYyY.js} +1 -1
  136. package/dist/client/assets/{create-organization-dialog-D0myNU26.js → create-organization-dialog-1mI4Ad1B.js} +1 -1
  137. package/dist/client/assets/{decofile-api-BVqR93jw.js → decofile-api-BNWbEMR6.js} +1 -1
  138. package/dist/client/assets/{decopilot-72HlEf1U.js → decopilot-BvepxP_-.js} +1 -1
  139. package/dist/client/assets/{dialog-DbzCN1O8.js → dialog-llvhXw2o.js} +1 -1
  140. package/dist/client/assets/{discover-D5kdY2vL.js → discover-DNPHmIfF.js} +1 -1
  141. package/dist/client/assets/{domain-settings-uVxQd7aQ.js → domain-settings-CXxEmIjB.js} +1 -1
  142. package/dist/client/assets/{download-app-dialog-Bsig7tOs.js → download-app-dialog-D_4eQbbs.js} +1 -1
  143. package/dist/client/assets/{drawer-CBdcJytm.js → drawer-BIjkXMV3.js} +1 -1
  144. package/dist/client/assets/{dropdown-menu-Dd8nakK9.js → dropdown-menu-C5iafa8S.js} +1 -1
  145. package/dist/client/assets/{editor-CpBx0ZCm.js → editor-D4Ls62vg.js} +1 -1
  146. package/dist/client/assets/{empty-state-ClEXvr10.js → empty-state-BdiOfgle.js} +1 -1
  147. package/dist/client/assets/{empty-state-BIcQyeij.js → empty-state-CyICQznD.js} +1 -1
  148. package/dist/client/assets/{extract-connection-data-CM8c_Wvw.js → extract-connection-data-Dbm_cKaX.js} +1 -1
  149. package/dist/client/assets/{feature-gate-BURkiaEd.js → feature-gate-Bp7Cydio.js} +1 -1
  150. package/dist/client/assets/{feature-paywall-BOwjYKin.js → feature-paywall-DEy2mpV2.js} +1 -1
  151. package/dist/client/assets/{file-explorer-BgbzlNyO.js → file-explorer-Bs7B2-rr.js} +1 -1
  152. package/dist/client/assets/{file-preview-BOFvyeTK.js → file-preview-CARebwHJ.js} +1 -1
  153. package/dist/client/assets/{file-share-button-Doj91OJi.js → file-share-button-Dk1ugrdV.js} +1 -1
  154. package/dist/client/assets/{file-type-icon-C37FwvPU.js → file-type-icon-C9Qn36v4.js} +1 -1
  155. package/dist/client/assets/{folder-icon-Dox5xEXV.js → folder-icon-BLBZBD_a.js} +1 -1
  156. package/dist/client/assets/{form-B7dtslOD.js → form-CSXgIHLz.js} +1 -1
  157. package/dist/client/assets/{gateway-client-CFIpVRaR.js → gateway-client-BuiOykcN.js} +1 -1
  158. package/dist/client/assets/{general-BcnikUr3.js → general-BYFfG0fF.js} +1 -1
  159. package/dist/client/assets/{github-icon-BcrkxW36.js → github-icon-huXDOAgf.js} +1 -1
  160. package/dist/client/assets/{home-MrzklFP0.js → home-DTaaCW3K.js} +1 -1
  161. package/dist/client/assets/{hooks-D09Ti1PG.js → hooks-BoX5BC-f.js} +1 -1
  162. package/dist/client/assets/{hooks-CkL4R3Tj.js → hooks-DZOMRp7D.js} +1 -1
  163. package/dist/client/assets/{index-D-XXgZ8p.js → index-2eKztu7k.js} +1 -1
  164. package/dist/client/assets/{index-KOGfrBZR.js → index-2gtoysbs.js} +1 -1
  165. package/dist/client/assets/{index-Cyoz5tz5.js → index-BD213WLU.js} +1 -1
  166. package/dist/client/assets/{index-DZOe0ODJ.js → index-BH7uCYoT.js} +1 -1
  167. package/dist/client/assets/{index-D68Q2TT2.js → index-BWpNlf6e.js} +1 -1
  168. package/dist/client/assets/{index-CULK6hDm.js → index-Bb-Re5q8.js} +1 -1
  169. package/dist/client/assets/{index-G9Ugx8pT.js → index-CSd_k8Np.js} +1 -1
  170. package/dist/client/assets/{index-NrvdR10n.js → index-CiMUXLco.js} +1 -1
  171. package/dist/client/assets/{index-C9w15wdL.js → index-D4RUT3q0.js} +1 -1
  172. package/dist/client/assets/{index-B46P4HkV.js → index-DWw5wi2G.js} +1 -1
  173. package/dist/client/assets/{index-BFjKFLU3.js → index-D_X-LIyA.js} +1 -1
  174. package/dist/client/assets/{index-z4bKt11m.js → index-Dc7hzqoi.js} +2 -2
  175. package/dist/client/assets/{index-CuiP-22D.js → index-DiULBiX9.js} +1 -1
  176. package/dist/client/assets/{index-DLxUQ-f9.js → index-DqT4mG5l.js} +1 -1
  177. package/dist/client/assets/{index-redirect-AuU1lkcv.js → index-redirect-BQTLrDGT.js} +1 -1
  178. package/dist/client/assets/{index-BwuwoN1w.js → index-tj4CWdxr.js} +1 -1
  179. package/dist/client/assets/{infiniteQueryObserver-BjcfJE2O.js → infiniteQueryObserver-CjWlcBHD.js} +1 -1
  180. package/dist/client/assets/{infra-billing-Blv1R6xm.js → infra-billing-D6jrbNxA.js} +1 -1
  181. package/dist/client/assets/{input-C7XH8Uj_.js → input-DXlaTX4w.js} +1 -1
  182. package/dist/client/assets/{input-I71U33T1.js → input-D_FfvHr0.js} +1 -1
  183. package/dist/client/assets/{input-CSQboV8k.js → input-uIV5S_EX.js} +1 -1
  184. package/dist/client/assets/{integration-icon-DOHTaQ6D.js → integration-icon-BeEdjsn9.js} +1 -1
  185. package/dist/client/assets/{label-8juC5J-g.js → label-BMxIRiEr.js} +1 -1
  186. package/dist/client/assets/{last-preview-page-C8M_ayBL.js → last-preview-page-B_H0ubHa.js} +1 -1
  187. package/dist/client/assets/{layout-fdXIUmGR.js → layout-Dli4i2a0.js} +1 -1
  188. package/dist/client/assets/{legacy-agents-deep-CIQ2cOBs.js → legacy-agents-deep-CoiLV3QJ.js} +1 -1
  189. package/dist/client/assets/{legacy-main-redirect-DdrzU7Xj.js → legacy-main-redirect-BZ4nzqkQ.js} +1 -1
  190. package/dist/client/assets/{library-DyrbEVfm.js → library-Dste3SFA.js} +1 -1
  191. package/dist/client/assets/{login-BhC3su0G.js → login-C4Dx9xMO.js} +1 -1
  192. package/dist/client/assets/{markdown-BhLIBmBv.js → markdown-DGWjAeXL.js} +1 -1
  193. package/dist/client/assets/{mcp-app-renderer-DjwQ0S-h.js → mcp-app-renderer-BTjC7Gse.js} +1 -1
  194. package/dist/client/assets/{mcp-oauth-DiqQlKOx.js → mcp-oauth-C4khbNJJ.js} +1 -1
  195. package/dist/client/assets/{members-PF8wxsqA.js → members-CRtKrUle.js} +1 -1
  196. package/dist/client/assets/{message-templates-BvR8vQvs.js → message-templates-B8kOo0Kk.js} +1 -1
  197. package/dist/client/assets/{mini-report-page-D2etEugE.js → mini-report-page-Ci4cxCz8.js} +1 -1
  198. package/dist/client/assets/{mock-board-jCiKK3gA.js → mock-board-DRa60E6i.js} +3 -3
  199. package/dist/client/assets/{monaco-editor-BHu8MLvz.js → monaco-editor-CMRYkmyb.js} +1 -1
  200. package/dist/client/assets/{monitoring-stats-row-2QEp_Jld.js → monitoring-stats-row-PncjnNwy.js} +1 -1
  201. package/dist/client/assets/{multi-select-DcF09HV8.js → multi-select-DzAZ8Rb8.js} +1 -1
  202. package/dist/client/assets/{mustache-DtVu96DY.js → mustache-CPZS2ebG.js} +1 -1
  203. package/dist/client/assets/{oauth-callback-CwSlt3mo.js → oauth-callback-CETK2WZB.js} +1 -1
  204. package/dist/client/assets/{oauth-callback-ai-provider-Co0a0HMU.js → oauth-callback-ai-provider-DqbbngEF.js} +1 -1
  205. package/dist/client/assets/{onboarding-D-ej0NPt.js → onboarding-B5zAGi2B.js} +1 -1
  206. package/dist/client/assets/{optimistic-project-sidebar-views-yjPJnhEG.js → optimistic-project-sidebar-views-CrZ9OeIk.js} +1 -1
  207. package/dist/client/assets/{org-file-open-context-BgiBbqKQ.js → org-file-open-context-BCUpiY_R.js} +1 -1
  208. package/dist/client/assets/{organization-choice-loyQwhEZ.js → organization-choice-BNulT5zU.js} +1 -1
  209. package/dist/client/assets/{orgs-DkENMfud.js → orgs-B1TBklWZ.js} +1 -1
  210. package/dist/client/assets/{page-seo-form-BBCLz5m0.js → page-seo-form-BrHgBXF1.js} +1 -1
  211. package/dist/client/assets/{pair-B2TMNGEX.js → pair-B46EBBjF.js} +1 -1
  212. package/dist/client/assets/{plan-ladder-C80Qcxkm.js → plan-ladder-B2pv9Y73.js} +1 -1
  213. package/dist/client/assets/{popover-CsEsUqbZ.js → popover-yk_ePqAA.js} +1 -1
  214. package/dist/client/assets/{post-calendar-gswoVxcp.js → post-calendar-Bx8YiCbs.js} +1 -1
  215. package/dist/client/assets/{post-editor-5tYPjO0c.js → post-editor-B1fD7o8C.js} +1 -1
  216. package/dist/client/assets/{preview-content-D5E6-qEP.js → preview-content-CfbsbElk.js} +1 -1
  217. package/dist/client/assets/{preview-dialog-D1qWdONG.js → preview-dialog-CA2C3DS4.js} +1 -1
  218. package/dist/client/assets/{primitives-Dy5hA1_y.js → primitives-JiGRyPkw.js} +1 -1
  219. package/dist/client/assets/{profile-9GEyG1R7.js → profile-CDR0JVtv.js} +1 -1
  220. package/dist/client/assets/{project-app-view-CsjjG0iu.js → project-app-view-8VWdrWMf.js} +1 -1
  221. package/dist/client/assets/{project-feed-CEhr0jA4.js → project-feed-ChJRKxhk.js} +1 -1
  222. package/dist/client/assets/{project-icon-Cw3la58q.js → project-icon-MWmzrrm8.js} +1 -1
  223. package/dist/client/assets/project-reports-D31utlHg.js +1 -0
  224. package/dist/client/assets/project-tasks-D2AAgqxo.js +1 -0
  225. package/dist/client/assets/{prompts-DQaXCBzS.js → prompts-4lILOzK9.js} +1 -1
  226. package/dist/client/assets/record-editor-DPAL8Tq5.js +1 -0
  227. package/dist/client/assets/{redirect-editor-B2uGI7FY.js → redirect-editor-EPs_GX-_.js} +1 -1
  228. package/dist/client/assets/registry-Dw8UrRRZ.js +2 -0
  229. package/dist/client/assets/{registry-layout-tJiz4Tt0.js → registry-layout-CC2lewiS.js} +1 -1
  230. package/dist/client/assets/{reports-DvgXBdzM.js → reports-BpxYdv2_.js} +1 -1
  231. package/dist/client/assets/reports-Ch9UvBcS.js +1 -0
  232. package/dist/client/assets/{reports-onboarding-BLUSVbkd.js → reports-onboarding-Dhm8IBuD.js} +1 -1
  233. package/dist/client/assets/{reports-tab-DSknxHUH.js → reports-tab-BJWrZp37.js} +2 -2
  234. package/dist/client/assets/{repositories-cOMgIGPf.js → repositories-CMIGVJwC.js} +1 -1
  235. package/dist/client/assets/{repository-import-picker-C0YugeGx.js → repository-import-picker-DhVniDI2.js} +1 -1
  236. package/dist/client/assets/{repository-picker-BaqWNwxf.js → repository-picker-BkoSI-jm.js} +1 -1
  237. package/dist/client/assets/{require-capability-CjU7EXPP.js → require-capability-CmtOZnXt.js} +1 -1
  238. package/dist/client/assets/{required-auth-layout-WkX8CtfT.js → required-auth-layout-RoMNnMPO.js} +1 -1
  239. package/dist/client/assets/{reset-password-FnA2kczZ.js → reset-password-BeUL8IgX.js} +1 -1
  240. package/dist/client/assets/{resizable-7umHaFcH.js → resizable-Bt7dvMCc.js} +1 -1
  241. package/dist/client/assets/{review-settings-BHAkNdHq.js → review-settings-Cx_Yzx40.js} +1 -1
  242. package/dist/client/assets/{rich-text-link-control-DgGIjR0I.js → rich-text-link-control-CHsxXHIo.js} +1 -1
  243. package/dist/client/assets/{roles-iNTzpIoS.js → roles-BNleKwt9.js} +1 -1
  244. package/dist/client/assets/{route-BdFq2Icl.js → route-CHqG9ihd.js} +1 -1
  245. package/dist/client/assets/{route-DQ3O_pQ7.js → route-DqJoK5dW.js} +1 -1
  246. package/dist/client/assets/{route-D2mgsDfh.js → route-x8jgkj5T.js} +1 -1
  247. package/dist/client/assets/{runnable-block-editor-CCXhy-vO.js → runnable-block-editor-xmOnaiFL.js} +1 -1
  248. package/dist/client/assets/{sandbox-lifecycle-context-DL9kkwoa.js → sandbox-lifecycle-context-C7VKOJoV.js} +1 -1
  249. package/dist/client/assets/{schema-D0xfowSf.js → schema-1zAO-l7e.js} +1 -1
  250. package/dist/client/assets/{scroll-area-BqCCUXvj.js → scroll-area-C-wtbVS1.js} +1 -1
  251. package/dist/client/assets/{search-input-DpLbMQRj.js → search-input-Pobww52G.js} +1 -1
  252. package/dist/client/assets/{secrets-B9E8fieV.js → secrets-BF5nuoR4.js} +1 -1
  253. package/dist/client/assets/{sections-editor-D24EQfD8.js → sections-editor-B1LpXw4X.js} +1 -1
  254. package/dist/client/assets/{select-cIekAVlM.js → select-BkKPcZFe.js} +1 -1
  255. package/dist/client/assets/{select-model-DcwphIdD.js → select-model-DPv-zVVj.js} +1 -1
  256. package/dist/client/assets/{seo-editor-BRYLT6tF.js → seo-editor-9G7mQFJ5.js} +1 -1
  257. package/dist/client/assets/{settings-tab-DKZf7OJg.js → settings-tab-D1V5Uszb.js} +1 -1
  258. package/dist/client/assets/{sheet-DhNzwMUj.js → sheet-i72Qx7sL.js} +1 -1
  259. package/dist/client/assets/{shell-layout-DMJSwXH6.js → shell-layout-Ce0aCJuX.js} +1 -1
  260. package/dist/client/assets/{sidebar-BCim0GYP.js → sidebar-C5KRz1Pj.js} +1 -1
  261. package/dist/client/assets/{skill-preview-eH_MzYft.js → skill-preview-gfYVdSdM.js} +1 -1
  262. package/dist/client/assets/{skills-BtiwGp2Q.js → skills-CgTiBPyO.js} +1 -1
  263. package/dist/client/assets/{sso-BOpSC7cb.js → sso-BK-aRT5P.js} +1 -1
  264. package/dist/client/assets/{store-DmrioYP8.js → store-Nm6KtwbD.js} +1 -1
  265. package/dist/client/assets/store-registry-Cs6bPPkP.js +2 -0
  266. package/dist/client/assets/{switch-9PLadaw_.js → switch-BQFtt3BH.js} +1 -1
  267. package/dist/client/assets/{synced-repos-gfJnKqre.js → synced-repos-B1z4DDCt.js} +1 -1
  268. package/dist/client/assets/{table-B6mPp07a.js → table-6I6YKvFY.js} +1 -1
  269. package/dist/client/assets/{tabs-Co2GUrNY.js → tabs-CLziM0Ww.js} +1 -1
  270. package/dist/client/assets/{task-board-lQZGfEfb.js → task-board-DrUf5p-Z.js} +1 -1
  271. package/dist/client/assets/{task-route-Btltx00G.js → task-route-BCTCy27Q.js} +1 -1
  272. package/dist/client/assets/{task-status-CLlOhQGx.js → task-status-DhCT2ly_.js} +1 -1
  273. package/dist/client/assets/{taskboard-analytics-CCRKXVH2.js → taskboard-analytics-Cf1r1f7I.js} +1 -1
  274. package/dist/client/assets/tasks-BNvHI7hJ.js +1 -0
  275. package/dist/client/assets/{tasks-D_kcQmbi.js → tasks-Drgd6az8.js} +1 -1
  276. package/dist/client/assets/{textarea-BEOceSll.js → textarea-BU6xemAP.js} +1 -1
  277. package/dist/client/assets/{thread-intent-9fI0jPLV.js → thread-intent-F-sZEflj.js} +1 -1
  278. package/dist/client/assets/{thread-route-B1EuqJlg.js → thread-route-BBf64Mwk.js} +1 -1
  279. package/dist/client/assets/{thread-route-DG6kj-ho.js → thread-route-BSYRqZDg.js} +1 -1
  280. package/dist/client/assets/{thread-sheet-body-CbIiPC8V.js → thread-sheet-body-B4OUWlMn.js} +1 -1
  281. package/dist/client/assets/{toggle-group-Ck5f9XVv.js → toggle-group-BiU_UDOq.js} +1 -1
  282. package/dist/client/assets/{toolbar-icon-button-8ctMGgIP.js → toolbar-icon-button-PuQFE8Y9.js} +1 -1
  283. package/dist/client/assets/{tooltip-BuKeolDX.js → tooltip-DV2xHesQ.js} +1 -1
  284. package/dist/client/assets/{track-B7aLvyYR.js → track-ZuOMvhd2.js} +1 -1
  285. package/dist/client/assets/{types-Bh4jNqv3.js → types-27TVsPN_.js} +1 -1
  286. package/dist/client/assets/{usage-stats-waRf4dtg.js → usage-stats-vMRDbAUM.js} +1 -1
  287. package/dist/client/assets/{use-ai-providers-B0bxSHYG.js → use-ai-providers-BnF5Rw_n.js} +1 -1
  288. package/dist/client/assets/{use-automations-BdS9yl-d.js → use-automations-Bo0S3g8m.js} +1 -1
  289. package/dist/client/assets/{use-autosave-CfERN5UF.js → use-autosave-DOzyZumC.js} +1 -1
  290. package/dist/client/assets/{use-connect-companion-_GDNSGRN.js → use-connect-companion-CClQCUMS.js} +1 -1
  291. package/dist/client/assets/{use-connection-CPQUKm0a.js → use-connection-Ba04fHwa.js} +1 -1
  292. package/dist/client/assets/{use-copy-DUiBegp6.js → use-copy-C_ctOeuP.js} +1 -1
  293. package/dist/client/assets/{use-create-virtual-mcp-BRT9hKZ3.js → use-create-virtual-mcp-D1w9d4ex.js} +1 -1
  294. package/dist/client/assets/{use-date-fns-locale-PFUAQIxr.js → use-date-fns-locale-onM9TTf8.js} +1 -1
  295. package/dist/client/assets/{use-debounced-autosave-CyDohN_c.js → use-debounced-autosave-DqyNKPJM.js} +1 -1
  296. package/dist/client/assets/{use-debounced-value-DeY1TNRX.js → use-debounced-value-B9nG3bW5.js} +1 -1
  297. package/dist/client/assets/{use-deco-credits-Du6WCMYS.js → use-deco-credits-BGBshlLi.js} +1 -1
  298. package/dist/client/assets/{use-decopilot-events-_O_0AHeH.js → use-decopilot-events-BpuQrfKN.js} +1 -1
  299. package/dist/client/assets/{use-delete-connection-kqt66yqS.js → use-delete-connection-Cns6x8UC.js} +1 -1
  300. package/dist/client/assets/{use-deployment-admin-MznxNIiy.js → use-deployment-admin-BVfgEagI.js} +1 -1
  301. package/dist/client/assets/{use-entitlements-BWaaNeuI.js → use-entitlements-Dl7pAsQ5.js} +1 -1
  302. package/dist/client/assets/{use-fast-preview-draft-url-BrZtKg6o.js → use-fast-preview-draft-url-mcfOeAAq.js} +1 -1
  303. package/dist/client/assets/{use-file-configs-sqbLS09v.js → use-file-configs-DYGSdjth.js} +1 -1
  304. package/dist/client/assets/{use-infinite-scroll-RrOnf-fI.js → use-infinite-scroll-PhBGPm8H.js} +1 -1
  305. package/dist/client/assets/{use-join-requests-BZzsbvb0.js → use-join-requests-DjeVFQr9.js} +1 -1
  306. package/dist/client/assets/{use-main-panel-tabs-CyT7yQAB.js → use-main-panel-tabs-sSRGo66A.js} +1 -1
  307. package/dist/client/assets/{use-mcp-auth-status-DvQCYJw0.js → use-mcp-auth-status-I377R0Kg.js} +1 -1
  308. package/dist/client/assets/{use-mcp-client-B1u2B39v.js → use-mcp-client-e_hCatGm.js} +1 -1
  309. package/dist/client/assets/{use-mcp-prompts-DxT8Kz-M.js → use-mcp-prompts-DJRXjL4_.js} +1 -1
  310. package/dist/client/assets/{use-mcp-tools-Ch_j97A3.js → use-mcp-tools-g86k4oib.js} +1 -1
  311. package/dist/client/assets/{use-members-H3oi0qPu.js → use-members-DPYHJDe2.js} +1 -1
  312. package/dist/client/assets/{use-mobile-CV7f0Wqe.js → use-mobile-hIijCK0k.js} +1 -1
  313. package/dist/client/assets/{use-navigate-to-agent-BMSyO1iB.js → use-navigate-to-agent-C8pu0B4z.js} +1 -1
  314. package/dist/client/assets/{use-open-billing-url-BGn9Wkis.js → use-open-billing-url-Df7K1DCF.js} +1 -1
  315. package/dist/client/assets/{use-org-auth-client-ZxEGrzhh.js → use-org-auth-client-DbPU3bA-.js} +1 -1
  316. package/dist/client/assets/{use-org-fs-D6lKuMAi.js → use-org-fs-Du-ErRPs.js} +1 -1
  317. package/dist/client/assets/{use-org-notice-C5thI8aD.js → use-org-notice-CyiiFkRG.js} +1 -1
  318. package/dist/client/assets/{use-org-sso-vHIufIoJ.js → use-org-sso-BvfIL0yq.js} +1 -1
  319. package/dist/client/assets/{use-organization-roles-DmWmnvDm.js → use-organization-roles-FAEtbpE5.js} +1 -1
  320. package/dist/client/assets/{use-organization-settings-C-XY0Wze.js → use-organization-settings-CKbX2SdA.js} +1 -1
  321. package/dist/client/assets/{use-panel-navigate-BG4d0Vrr.js → use-panel-navigate-WrD0KEYx.js} +1 -1
  322. package/dist/client/assets/{use-project-native-view-presence-0NQTfFQT.js → use-project-native-view-presence-DWzPH-Sc.js} +1 -1
  323. package/dist/client/assets/{use-project-scope-DRope0ob.js → use-project-scope-DU0-JxYr.js} +1 -1
  324. package/dist/client/assets/{use-registry-connections-D_a0MIjQ.js → use-registry-connections-SLFMHpqj.js} +1 -1
  325. package/dist/client/assets/{use-releases-BPrtCiPS.js → use-releases-CFNTwgY3.js} +1 -1
  326. package/dist/client/assets/{use-reports-diagnostic-BtS3SpeX.js → use-reports-diagnostic-8BvW2in8.js} +1 -1
  327. package/dist/client/assets/{use-route-default-main-DBXt2fvS.js → use-route-default-main-Djaj_cL9.js} +1 -1
  328. package/dist/client/assets/{use-secrets-C5iKdreo.js → use-secrets-DVry--sz.js} +1 -1
  329. package/dist/client/assets/{use-section-preview-base-Dwn5dF7B.js → use-section-preview-base-BOFovHh4.js} +1 -1
  330. package/dist/client/assets/{use-session-runtime-DU2zS-3V.js → use-session-runtime-BR1aW1y5.js} +1 -1
  331. package/dist/client/assets/{use-tags-BvskEBAC.js → use-tags-CZXCbbwL.js} +1 -1
  332. package/dist/client/assets/{use-task-board-analytics-DjIJHPkR.js → use-task-board-analytics-Ci1AhxvH.js} +1 -1
  333. package/dist/client/assets/{use-task-metadata-9gheSHac.js → use-task-metadata-Dt9l5S_a.js} +1 -1
  334. package/dist/client/assets/{use-thread-outputs-DAcljy5D.js → use-thread-outputs-Dq-RN0P_.js} +1 -1
  335. package/dist/client/assets/{use-view-mode-CTt0Tykp.js → use-view-mode-B0LeaJg7.js} +1 -1
  336. package/dist/client/assets/{use-virtual-mcp-Bq1RMGPF.js → use-virtual-mcp-DkK7ErtB.js} +1 -1
  337. package/dist/client/assets/useInfiniteQuery-CspLjV7h.js +1 -0
  338. package/dist/client/assets/{useQueries-DMqJmHGu.js → useQueries-C-SV8tD7.js} +1 -1
  339. package/dist/client/assets/useSuspenseInfiniteQuery-BiQYAhJn.js +1 -0
  340. package/dist/client/assets/{users-B0Y-7Aab.js → users-BiOPZ43X.js} +1 -1
  341. package/dist/client/assets/{utils-CU3t1jst.js → utils-DsvmRe8M.js} +1 -1
  342. package/dist/client/assets/{variant-calendar-Bp201sXA.js → variant-calendar-DImnsJnP.js} +1 -1
  343. package/dist/client/assets/{variant-matcher-override-DUPu0vkW.js → variant-matcher-override-BFQoXu82.js} +1 -1
  344. package/dist/client/assets/{view-mode-toggle-DaZN0qXY.js → view-mode-toggle-DvGhnpsV.js} +1 -1
  345. package/dist/client/assets/{virtual-mcp-BYPZngzy.js → virtual-mcp-ldxphi5G.js} +1 -1
  346. package/dist/client/index.html +1 -1
  347. package/dist/server/cli.js +651 -651
  348. package/dist/server/server.js +434 -434
  349. package/package.json +1 -1
  350. package/dist/client/assets/agent-app-CQgi_fkJ.js +0 -1
  351. package/dist/client/assets/agent-deck-Dx12NQ18.js +0 -1
  352. package/dist/client/assets/agent-file-B5qivcOi.js +0 -1
  353. package/dist/client/assets/agent-library-file-OKK2mnnF.js +0 -1
  354. package/dist/client/assets/agent-settings-BraxsXkL.js +0 -1
  355. package/dist/client/assets/agent-site-editor-code-03I9o24S.js +0 -2
  356. package/dist/client/assets/agent-view-74_Cuyp8.js +0 -1
  357. package/dist/client/assets/api-keys-ClN6LoeU.js +0 -1
  358. package/dist/client/assets/app-editor-CaCDGdiz.js +0 -1
  359. package/dist/client/assets/automations-XsBsFuGM.js +0 -1
  360. package/dist/client/assets/category-editor-CFCxetoB.js +0 -1
  361. package/dist/client/assets/project-reports-D83XbTn5.js +0 -1
  362. package/dist/client/assets/project-tasks-IrwgrDaD.js +0 -1
  363. package/dist/client/assets/record-editor-C02fIlfV.js +0 -1
  364. package/dist/client/assets/registry-CORfkc_Z.js +0 -2
  365. package/dist/client/assets/reports-X2I2m9Nu.js +0 -1
  366. package/dist/client/assets/store-registry-B398fyC0.js +0 -2
  367. package/dist/client/assets/tasks-BqLnbtfB.js +0 -1
  368. package/dist/client/assets/useInfiniteQuery-C6OBOha-.js +0 -1
  369. package/dist/client/assets/useSuspenseInfiniteQuery-XFcbI_PD.js +0 -1
@@ -1 +1 @@
1
- import{c as W,b as K,r as w,j as r,l as Q}from"./index-z4bKt11m.js";import{y as q}from"./agent-icon-BD4DM2Lv.js";import{i as Y}from"./SearchMd-FDCJM3CR.js";import{D as Z,b as ee,d as te,c as re}from"./dialog-DbzCN1O8.js";import{I as se}from"./input-C7XH8Uj_.js";import{V as le,k as oe,W as ie,G as ne}from"./claim-phase-copy-0btUuJoC.js";import{d as X,r as ce}from"./section-preview-url-Csj0_ZDg.js";import{u as ae}from"./use-session-runtime-DU2zS-3V.js";const fe=12,D=new Set,F=new Set;function ue(){for(const s of F)s()}function de(s){return D.has(s)?!0:D.size>=fe?!1:(D.add(s),!0)}function J(s){D.delete(s)&&ue()}function me(s){return F.add(s),()=>{F.delete(s)}}function ve(s,e){const t=w.useRef(!1),[d,i]=w.useState(!1),o=w.useRef(null),f=w.useRef(null),c=w.useRef(null),l=w.useRef(s);l.current=s;const[a]=w.useState(()=>{const n=()=>{c.current?.(),c.current=null},u=()=>t.current?!0:de(e)?(t.current=!0,i(!0),n(),!0):!1;return v=>{if(f.current=v,o.current&&(o.current.disconnect(),o.current=null),n(),!v){t.current&&(J(e),t.current=!1,i(!1));return}queueMicrotask(()=>{if(f.current!==v)return;const x=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!u()&&!c.current&&(c.current=me(()=>{f.current===v&&u()}));return}n(),t.current&&(J(e),t.current=!1,i(!1))},{root:l.current.current,rootMargin:"160px 0px"});x.observe(v),o.current=x})}});return{ref:a,iframeActive:d}}function pe(s){const e=W.c(8),{previewUrl:t,title:d,scrollRootRef:i,slotId:o}=s,{ref:f,iframeActive:c}=ve(i,o),[l,a]=w.useState(!1);let n;e[0]!==c||e[1]!==l||e[2]!==t||e[3]!==d?(n=c?r.jsxs(r.Fragment,{children:[!l&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:r.jsx(q,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),r.jsx("iframe",{src:t,title:`Preview ${d}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>a(!0)})]}):r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(q,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=c,e[1]=l,e[2]=t,e[3]=d,e[4]=n):n=e[4];let u;return e[5]!==f||e[6]!==n?(u=r.jsx("div",{ref:f,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:n}),e[5]=f,e[6]=n,e[7]=u):u=e[7],u}function xe(s){const e=W.c(26),{entry:t,previewUrl:d,scrollRootRef:i,onSelect:o}=s,f=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let c;e[0]!==f?(c=Q("group flex flex-col overflow-hidden rounded-lg border bg-card text-left transition-colors","hover:border-primary/40 hover:bg-accent/30",f),e[0]=f,e[1]=c):c=e[1];let l;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==d||e[5]!==i?(l=r.jsx(pe,{previewUrl:d,title:t.title,scrollRootRef:i,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=d,e[5]=i,e[6]=l):l=e[6];let a;e[7]!==t.isSavedBlock?(a=t.isSavedBlock?{color:ne}:void 0,e[7]=t.isSavedBlock,e[8]=a):a=e[8];let n;e[9]!==a?(n=r.jsx(q,{className:"h-4 w-4 shrink-0",style:a}),e[9]=a,e[10]=n):n=e[10];let u;e[11]!==t.title?(u=r.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[11]=t.title,e[12]=u):u=e[12];let v;e[13]!==t.description?(v=t.description&&r.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[13]=t.description,e[14]=v):v=e[14];let x;e[15]!==u||e[16]!==v?(x=r.jsxs("div",{className:"min-w-0 flex-1",children:[u,v]}),e[15]=u,e[16]=v,e[17]=x):x=e[17];let m;e[18]!==n||e[19]!==x?(m=r.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[n,x]}),e[18]=n,e[19]=x,e[20]=m):m=e[20];let h;return e[21]!==o||e[22]!==c||e[23]!==l||e[24]!==m?(h=r.jsxs("button",{type:"button",onClick:o,className:c,children:[l,m]}),e[21]=o,e[22]=c,e[23]=l,e[24]=m,e[25]=h):h=e[25],h}function Re(s){const e=W.c(51),{open:t,onOpenChange:d,meta:i,decofile:o,previewBaseUrl:f,onSelect:c}=s,l=K(),[a,n]=w.useState(""),[u,v]=w.useState(t),x=w.useRef(null);t!==u&&(v(t),t&&n(""));let m,h,S,b,j,y,N,R,g,C,T;if(e[0]!==o||e[1]!==i||e[2]!==d||e[3]!==c||e[4]!==t||e[5]!==f||e[6]!==a||e[7]!==l){const z=t&&i&&o?le(i,o):[],_=i?oe(i):"",G=o?ie(o):void 0,V=new Map;if(t&&_)for(const p of z)V.set(p.resolveType,X(f,_,p.previewBlock,G));const M=a.trim().toLowerCase(),H=M?z.filter(p=>p.title.toLowerCase().includes(M)||p.resolveType.toLowerCase().includes(M)||p.description?.toLowerCase().includes(M)):z;h=Z,C=t,T=d,m=ee,N="top-3 right-3",R="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let U;e[19]!==l?(U=l("sectionsEditor.addSectionModal.title"),e[19]=l,e[20]=U):U=e[20];let A;e[21]!==U?(A=r.jsx(te,{children:U}),e[21]=U,e[22]=A):A=e[22];let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=r.jsx(Y,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=O):O=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=p=>n(p.target.value),e[24]=$):$=e[24];let B;e[25]!==l?(B=l("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=l,e[26]=B):B=e[26];let k;e[27]!==a||e[28]!==B?(k=r.jsxs("div",{className:"relative pt-2",children:[O,r.jsx(se,{value:a,onChange:$,placeholder:B,className:"h-9 pl-8"})]}),e[27]=a,e[28]=B,e[29]=k):k=e[29],e[30]!==A||e[31]!==k?(g=r.jsxs(re,{className:"shrink-0 border-b px-4 py-3 text-left",children:[A,k]}),e[30]=A,e[31]=k,e[32]=g):g=e[32],j=x,y="min-h-0 flex-1 overflow-y-auto",S="p-4",b=H.length===0?r.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:l("sectionsEditor.addSectionModal.noSectionsFound")}):r.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:H.map(p=>r.jsx(xe,{entry:p,scrollRootRef:x,previewUrl:V.get(p.resolveType)??X(f,_,p.previewBlock,G),onSelect:()=>c(p)},p.resolveType))}),e[0]=o,e[1]=i,e[2]=d,e[3]=c,e[4]=t,e[5]=f,e[6]=a,e[7]=l,e[8]=m,e[9]=h,e[10]=S,e[11]=b,e[12]=j,e[13]=y,e[14]=N,e[15]=R,e[16]=g,e[17]=C,e[18]=T}else m=e[8],h=e[9],S=e[10],b=e[11],j=e[12],y=e[13],N=e[14],R=e[15],g=e[16],C=e[17],T=e[18];let P;e[33]!==S||e[34]!==b?(P=r.jsx("div",{className:S,children:b}),e[33]=S,e[34]=b,e[35]=P):P=e[35];let I;e[36]!==P||e[37]!==j||e[38]!==y?(I=r.jsx("div",{ref:j,className:y,children:P}),e[36]=P,e[37]=j,e[38]=y,e[39]=I):I=e[39];let L;e[40]!==m||e[41]!==I||e[42]!==N||e[43]!==R||e[44]!==g?(L=r.jsxs(m,{closeButtonClassName:N,className:R,children:[g,I]}),e[40]=m,e[41]=I,e[42]=N,e[43]=R,e[44]=g,e[45]=L):L=e[45];let E;return e[46]!==h||e[47]!==L||e[48]!==C||e[49]!==T?(E=r.jsx(h,{open:C,onOpenChange:T,children:L}),e[46]=h,e[47]=L,e[48]=C,e[49]=T,e[50]=E):E=e[50],E}function Ce(s){const e=W.c(4),{previewServerUrl:t,runtime:d}=ae(s.virtualMcpId),i=d==="cms";let o;return e[0]!==i||e[1]!==s.sandboxUrl||e[2]!==t?(o=ce({sandboxUrl:s.sandboxUrl,previewServerUrl:t,fastPreviewActive:i}),e[0]=i,e[1]=s.sandboxUrl,e[2]=t,e[3]=o):o=e[3],o}export{Re as A,Ce as u};
1
+ import{c as W,b as K,r as w,j as r,l as Q}from"./index-Dc7hzqoi.js";import{y as q}from"./agent-icon-CczrFEe7.js";import{i as Y}from"./SearchMd-C45D2PMI.js";import{D as Z,b as ee,d as te,c as re}from"./dialog-llvhXw2o.js";import{I as se}from"./input-DXlaTX4w.js";import{V as le,k as oe,W as ie,G as ne}from"./claim-phase-copy-0btUuJoC.js";import{d as X,r as ce}from"./section-preview-url-Csj0_ZDg.js";import{u as ae}from"./use-session-runtime-BR1aW1y5.js";const fe=12,D=new Set,F=new Set;function ue(){for(const s of F)s()}function de(s){return D.has(s)?!0:D.size>=fe?!1:(D.add(s),!0)}function J(s){D.delete(s)&&ue()}function me(s){return F.add(s),()=>{F.delete(s)}}function ve(s,e){const t=w.useRef(!1),[d,i]=w.useState(!1),o=w.useRef(null),f=w.useRef(null),c=w.useRef(null),l=w.useRef(s);l.current=s;const[a]=w.useState(()=>{const n=()=>{c.current?.(),c.current=null},u=()=>t.current?!0:de(e)?(t.current=!0,i(!0),n(),!0):!1;return v=>{if(f.current=v,o.current&&(o.current.disconnect(),o.current=null),n(),!v){t.current&&(J(e),t.current=!1,i(!1));return}queueMicrotask(()=>{if(f.current!==v)return;const x=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!u()&&!c.current&&(c.current=me(()=>{f.current===v&&u()}));return}n(),t.current&&(J(e),t.current=!1,i(!1))},{root:l.current.current,rootMargin:"160px 0px"});x.observe(v),o.current=x})}});return{ref:a,iframeActive:d}}function pe(s){const e=W.c(8),{previewUrl:t,title:d,scrollRootRef:i,slotId:o}=s,{ref:f,iframeActive:c}=ve(i,o),[l,a]=w.useState(!1);let n;e[0]!==c||e[1]!==l||e[2]!==t||e[3]!==d?(n=c?r.jsxs(r.Fragment,{children:[!l&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:r.jsx(q,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),r.jsx("iframe",{src:t,title:`Preview ${d}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>a(!0)})]}):r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(q,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=c,e[1]=l,e[2]=t,e[3]=d,e[4]=n):n=e[4];let u;return e[5]!==f||e[6]!==n?(u=r.jsx("div",{ref:f,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:n}),e[5]=f,e[6]=n,e[7]=u):u=e[7],u}function xe(s){const e=W.c(26),{entry:t,previewUrl:d,scrollRootRef:i,onSelect:o}=s,f=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let c;e[0]!==f?(c=Q("group flex flex-col overflow-hidden rounded-lg border bg-card text-left transition-colors","hover:border-primary/40 hover:bg-accent/30",f),e[0]=f,e[1]=c):c=e[1];let l;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==d||e[5]!==i?(l=r.jsx(pe,{previewUrl:d,title:t.title,scrollRootRef:i,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=d,e[5]=i,e[6]=l):l=e[6];let a;e[7]!==t.isSavedBlock?(a=t.isSavedBlock?{color:ne}:void 0,e[7]=t.isSavedBlock,e[8]=a):a=e[8];let n;e[9]!==a?(n=r.jsx(q,{className:"h-4 w-4 shrink-0",style:a}),e[9]=a,e[10]=n):n=e[10];let u;e[11]!==t.title?(u=r.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[11]=t.title,e[12]=u):u=e[12];let v;e[13]!==t.description?(v=t.description&&r.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[13]=t.description,e[14]=v):v=e[14];let x;e[15]!==u||e[16]!==v?(x=r.jsxs("div",{className:"min-w-0 flex-1",children:[u,v]}),e[15]=u,e[16]=v,e[17]=x):x=e[17];let m;e[18]!==n||e[19]!==x?(m=r.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[n,x]}),e[18]=n,e[19]=x,e[20]=m):m=e[20];let h;return e[21]!==o||e[22]!==c||e[23]!==l||e[24]!==m?(h=r.jsxs("button",{type:"button",onClick:o,className:c,children:[l,m]}),e[21]=o,e[22]=c,e[23]=l,e[24]=m,e[25]=h):h=e[25],h}function Re(s){const e=W.c(51),{open:t,onOpenChange:d,meta:i,decofile:o,previewBaseUrl:f,onSelect:c}=s,l=K(),[a,n]=w.useState(""),[u,v]=w.useState(t),x=w.useRef(null);t!==u&&(v(t),t&&n(""));let m,h,S,b,j,y,N,R,g,C,T;if(e[0]!==o||e[1]!==i||e[2]!==d||e[3]!==c||e[4]!==t||e[5]!==f||e[6]!==a||e[7]!==l){const z=t&&i&&o?le(i,o):[],_=i?oe(i):"",G=o?ie(o):void 0,V=new Map;if(t&&_)for(const p of z)V.set(p.resolveType,X(f,_,p.previewBlock,G));const M=a.trim().toLowerCase(),H=M?z.filter(p=>p.title.toLowerCase().includes(M)||p.resolveType.toLowerCase().includes(M)||p.description?.toLowerCase().includes(M)):z;h=Z,C=t,T=d,m=ee,N="top-3 right-3",R="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let U;e[19]!==l?(U=l("sectionsEditor.addSectionModal.title"),e[19]=l,e[20]=U):U=e[20];let A;e[21]!==U?(A=r.jsx(te,{children:U}),e[21]=U,e[22]=A):A=e[22];let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=r.jsx(Y,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=O):O=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=p=>n(p.target.value),e[24]=$):$=e[24];let B;e[25]!==l?(B=l("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=l,e[26]=B):B=e[26];let k;e[27]!==a||e[28]!==B?(k=r.jsxs("div",{className:"relative pt-2",children:[O,r.jsx(se,{value:a,onChange:$,placeholder:B,className:"h-9 pl-8"})]}),e[27]=a,e[28]=B,e[29]=k):k=e[29],e[30]!==A||e[31]!==k?(g=r.jsxs(re,{className:"shrink-0 border-b px-4 py-3 text-left",children:[A,k]}),e[30]=A,e[31]=k,e[32]=g):g=e[32],j=x,y="min-h-0 flex-1 overflow-y-auto",S="p-4",b=H.length===0?r.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:l("sectionsEditor.addSectionModal.noSectionsFound")}):r.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:H.map(p=>r.jsx(xe,{entry:p,scrollRootRef:x,previewUrl:V.get(p.resolveType)??X(f,_,p.previewBlock,G),onSelect:()=>c(p)},p.resolveType))}),e[0]=o,e[1]=i,e[2]=d,e[3]=c,e[4]=t,e[5]=f,e[6]=a,e[7]=l,e[8]=m,e[9]=h,e[10]=S,e[11]=b,e[12]=j,e[13]=y,e[14]=N,e[15]=R,e[16]=g,e[17]=C,e[18]=T}else m=e[8],h=e[9],S=e[10],b=e[11],j=e[12],y=e[13],N=e[14],R=e[15],g=e[16],C=e[17],T=e[18];let P;e[33]!==S||e[34]!==b?(P=r.jsx("div",{className:S,children:b}),e[33]=S,e[34]=b,e[35]=P):P=e[35];let I;e[36]!==P||e[37]!==j||e[38]!==y?(I=r.jsx("div",{ref:j,className:y,children:P}),e[36]=P,e[37]=j,e[38]=y,e[39]=I):I=e[39];let L;e[40]!==m||e[41]!==I||e[42]!==N||e[43]!==R||e[44]!==g?(L=r.jsxs(m,{closeButtonClassName:N,className:R,children:[g,I]}),e[40]=m,e[41]=I,e[42]=N,e[43]=R,e[44]=g,e[45]=L):L=e[45];let E;return e[46]!==h||e[47]!==L||e[48]!==C||e[49]!==T?(E=r.jsx(h,{open:C,onOpenChange:T,children:L}),e[46]=h,e[47]=L,e[48]=C,e[49]=T,e[50]=E):E=e[50],E}function Ce(s){const e=W.c(4),{previewServerUrl:t,runtime:d}=ae(s.virtualMcpId),i=d==="cms";let o;return e[0]!==i||e[1]!==s.sandboxUrl||e[2]!==t?(o=ce({sandboxUrl:s.sandboxUrl,previewServerUrl:t,fastPreviewActive:i}),e[0]=i,e[1]=s.sandboxUrl,e[2]=t,e[3]=o):o=e[3],o}export{Re as A,Ce as u};
@@ -1 +1 @@
1
- import{c as h}from"./index-z4bKt11m.js";import{r as R,d as T,a as k,p as S}from"./thread-intent-9fI0jPLV.js";import{u as j}from"./chat-context-BBVkwd3p.js";import{a as w}from"./use-virtual-mcp-Bq1RMGPF.js";function D(d){const t=h.c(14),u=w(d),p=j(),e=u?.metadata,o=p?.activeTask,m=o?.metadata?.runtime;let i;t[0]!==m?(i=S(m),t[0]=m,t[1]=i):i=t[1];const f=i,v=!!o&&!o.partial,l=o?.metadata;let a;t[2]!==e||t[3]!==l?(a=R(l,e),t[2]=e,t[3]=l,t[4]=a):a=t[4];const c=!!f||v&&!!u;let r;t[5]!==e?(r=T(e),t[5]=e,t[6]=r):r=t[6];let s;t[7]!==e?(s=k(e),t[7]=e,t[8]=s):s=t[8];let n;return t[9]!==a||t[10]!==c||t[11]!==r||t[12]!==s?(n={runtime:a,resolved:c,projectDefault:r,previewServerUrl:s},t[9]=a,t[10]=c,t[11]=r,t[12]=s,t[13]=n):n=t[13],n}export{D as u};
1
+ import{c as h}from"./index-Dc7hzqoi.js";import{r as R,d as T,a as k,p as S}from"./thread-intent-F-sZEflj.js";import{u as j}from"./chat-context-tZCX_cqt.js";import{a as w}from"./use-virtual-mcp-DkK7ErtB.js";function D(d){const t=h.c(14),u=w(d),p=j(),e=u?.metadata,o=p?.activeTask,m=o?.metadata?.runtime;let i;t[0]!==m?(i=S(m),t[0]=m,t[1]=i):i=t[1];const f=i,v=!!o&&!o.partial,l=o?.metadata;let a;t[2]!==e||t[3]!==l?(a=R(l,e),t[2]=e,t[3]=l,t[4]=a):a=t[4];const c=!!f||v&&!!u;let r;t[5]!==e?(r=T(e),t[5]=e,t[6]=r):r=t[6];let s;t[7]!==e?(s=k(e),t[7]=e,t[8]=s):s=t[8];let n;return t[9]!==a||t[10]!==c||t[11]!==r||t[12]!==s?(n={runtime:a,resolved:c,projectDefault:r,previewServerUrl:s},t[9]=a,t[10]=c,t[11]=r,t[12]=s,t[13]=n):n=t[13],n}export{D as u};
@@ -1 +1 @@
1
- import{c as u,M as f,_ as y,m,n as g,e as T,K as l,t as E}from"./index-z4bKt11m.js";function K(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function M(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function p(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function C(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function A(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{M as a,p as b,C as c,A as d,K as u};
1
+ import{c as u,M as f,_ as y,m,n as g,e as T,K as l,t as E}from"./index-Dc7hzqoi.js";function K(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function M(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function p(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function C(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function A(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{M as a,p as b,C as c,A as d,K as u};
@@ -1 +1 @@
1
- import{c as i,f as T,m as l,M as _,_ as S,K as u,ap as O}from"./index-z4bKt11m.js";const R=["TASK_BOARD_DELIVERY","TASK_BOARD_STUCK","TASK_BOARD_COST","TASK_BOARD_QUALITY","TASK_BOARD_ERRORS","TASK_BOARD_TENANTS"];function K(){const t=i.c(8),s=T({strict:!1}).org??"";let e;t[0]!==s?(e=u.taskBoardAdminOrgs(s),t[0]=s,t[1]=e):e=t[1];const n=!!s;let A;t[2]!==s?(A=()=>O(s,"TASK_BOARD_ADMIN_ORG_LIST",{}),t[2]=s,t[3]=A):A=t[3];let o;return t[4]!==e||t[5]!==n||t[6]!==A?(o={queryKey:e,enabled:n,queryFn:A,staleTime:3e5},t[4]=e,t[5]=n,t[6]=A,t[7]=o):o=t[7],l(o)}function B(t,s){const e=i.c(13),{locator:n}=_(),A=S();let o;e[0]!==n||e[1]!==s.from||e[2]!==s.org||e[3]!==s.to||e[4]!==t?(o=u.taskBoardAnalytics(n,t,s.org,s.from,s.to),e[0]=n,e[1]=s.from,e[2]=s.org,e[3]=s.to,e[4]=t,e[5]=o):o=e[5];let r;e[6]!==s||e[7]!==A||e[8]!==t?(r=()=>A.call(t,s),e[6]=s,e[7]=A,e[8]=t,e[9]=r):r=e[9];let c;return e[10]!==o||e[11]!==r?(c={queryKey:o,queryFn:r},e[10]=o,e[11]=r,e[12]=c):c=e[12],l(c)}export{R as A,B as a,K as u};
1
+ import{c as i,f as T,m as l,M as _,_ as S,K as u,ap as O}from"./index-Dc7hzqoi.js";const R=["TASK_BOARD_DELIVERY","TASK_BOARD_STUCK","TASK_BOARD_COST","TASK_BOARD_QUALITY","TASK_BOARD_ERRORS","TASK_BOARD_TENANTS"];function K(){const t=i.c(8),s=T({strict:!1}).org??"";let e;t[0]!==s?(e=u.taskBoardAdminOrgs(s),t[0]=s,t[1]=e):e=t[1];const n=!!s;let A;t[2]!==s?(A=()=>O(s,"TASK_BOARD_ADMIN_ORG_LIST",{}),t[2]=s,t[3]=A):A=t[3];let o;return t[4]!==e||t[5]!==n||t[6]!==A?(o={queryKey:e,enabled:n,queryFn:A,staleTime:3e5},t[4]=e,t[5]=n,t[6]=A,t[7]=o):o=t[7],l(o)}function B(t,s){const e=i.c(13),{locator:n}=_(),A=S();let o;e[0]!==n||e[1]!==s.from||e[2]!==s.org||e[3]!==s.to||e[4]!==t?(o=u.taskBoardAnalytics(n,t,s.org,s.from,s.to),e[0]=n,e[1]=s.from,e[2]=s.org,e[3]=s.to,e[4]=t,e[5]=o):o=e[5];let r;e[6]!==s||e[7]!==A||e[8]!==t?(r=()=>A.call(t,s),e[6]=s,e[7]=A,e[8]=t,e[9]=r):r=e[9];let c;return e[10]!==o||e[11]!==r?(c={queryKey:o,queryFn:r},e[10]=o,e[11]=r,e[12]=c):c=e[12],l(c)}export{R as A,B as a,K as u};
@@ -1 +1 @@
1
- import{M as o,_ as c,r as i,z as d,K as m}from"./index-z4bKt11m.js";import{a as T}from"./hooks-CkL4R3Tj.js";function h(e){const{org:n}=o(),r=c(),a=T(),s=i.useSyncExternalStore(a.threads.subscribe,a.threads.get),u=e===null?null:s.find(t=>t.id===e)??null,{data:l}=d({queryKey:m.ensureTask(n.id,e),queryFn:async()=>{if(e===null)return null;try{const{item:t}=await r.call("COLLECTION_THREADS_GET",{id:e});return t??null}catch{return null}},select:t=>t?.metadata??null,staleTime:3e4});return u?.metadata??l??null}export{h as u};
1
+ import{M as o,_ as c,r as i,z as d,K as m}from"./index-Dc7hzqoi.js";import{a as T}from"./hooks-DZOMRp7D.js";function h(e){const{org:n}=o(),r=c(),a=T(),s=i.useSyncExternalStore(a.threads.subscribe,a.threads.get),u=e===null?null:s.find(t=>t.id===e)??null,{data:l}=d({queryKey:m.ensureTask(n.id,e),queryFn:async()=>{if(e===null)return null;try{const{item:t}=await r.call("COLLECTION_THREADS_GET",{id:e});return t??null}catch{return null}},select:t=>t?.metadata??null,staleTime:3e4});return u?.metadata??l??null}export{h as u};
@@ -1 +1 @@
1
- import{c,M as i,m as l,K as p}from"./index-z4bKt11m.js";import{f}from"./chat-context-BBVkwd3p.js";async function m(e,s){const t=await fetch(`/api/${s}/threads/${encodeURIComponent(e)}/outputs`,{credentials:"include"});if(!t.ok)throw new Error(`Failed to fetch thread outputs: ${t.status}`);return(await t.json()).objects??[]}function $(){const e=c.c(2),s=f()?.messages??[];let t;return e[0]!==s?(t=s.some(y),e[0]=s,e[1]=t):t=e[1],t}function y(e){return e.parts?.some(b)}function b(e){const s=e;return(s.type==="tool-bash"||s.type==="tool-write")&&s.state==="output-available"}function g(e,s){const t=c.c(9),{org:u}=i();let o;t[0]!==e?(o=p.threadOutputs(e??""),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==u||t[3]!==e?(n=()=>m(e??"",u.slug),t[2]=u,t[3]=e,t[4]=n):n=t[4];const r=!!e&&(s?.enabled??!0);let a;return t[5]!==o||t[6]!==n||t[7]!==r?(a={queryKey:o,queryFn:n,enabled:r,staleTime:0},t[5]=o,t[6]=n,t[7]=r,t[8]=a):a=t[8],l(a)}export{g as a,$ as u};
1
+ import{c,M as i,m as l,K as p}from"./index-Dc7hzqoi.js";import{f}from"./chat-context-tZCX_cqt.js";async function m(e,s){const t=await fetch(`/api/${s}/threads/${encodeURIComponent(e)}/outputs`,{credentials:"include"});if(!t.ok)throw new Error(`Failed to fetch thread outputs: ${t.status}`);return(await t.json()).objects??[]}function $(){const e=c.c(2),s=f()?.messages??[];let t;return e[0]!==s?(t=s.some(y),e[0]=s,e[1]=t):t=e[1],t}function y(e){return e.parts?.some(b)}function b(e){const s=e;return(s.type==="tool-bash"||s.type==="tool-write")&&s.state==="output-available"}function g(e,s){const t=c.c(9),{org:u}=i();let o;t[0]!==e?(o=p.threadOutputs(e??""),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==u||t[3]!==e?(n=()=>m(e??"",u.slug),t[2]=u,t[3]=e,t[4]=n):n=t[4];const r=!!e&&(s?.enabled??!0);let a;return t[5]!==o||t[6]!==n||t[7]!==r?(a={queryKey:o,queryFn:n,enabled:r,staleTime:0},t[5]=o,t[6]=n,t[7]=r,t[8]=a):a=t[8],l(a)}export{g as a,$ as u};
@@ -1 +1 @@
1
- import{c as p,r as f}from"./index-z4bKt11m.js";import{u as w}from"./use-mobile-CV7f0Wqe.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
1
+ import{c as p,r as f}from"./index-Dc7hzqoi.js";import{u as w}from"./use-mobile-hIijCK0k.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
@@ -1 +1 @@
1
- import{c as C,M as I,x as g,cH as S,cI as _,K as A,cJ as y,cK as T,m,cL as p,cM as U}from"./index-z4bKt11m.js";import{u as L,a as V,m as R}from"./use-mcp-client-B1u2B39v.js";function $(o){const t=C.c(5);let e;t[0]!==o?(e=o===void 0?{}:o,t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=L(i);return S(s.id,"VIRTUAL_MCP",l,n)}function h(o){const t=C.c(14);let e;t[0]!==o?(e={},t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=V(i);let c;t[5]!==l||t[6]!==n||t[7]!==s.id?(c=p(s.id,"VIRTUAL_MCP",l,n),t[5]=l,t[6]=n,t[7]=s.id,t[8]=c):c=t[8];const r=!!l;let u;t[9]!==c||t[10]!==r?(u={...c,enabled:r},t[9]=c,t[10]=r,t[11]=u):u=t[11];const{data:d}=m(u);let a;return t[12]!==d?(a=d??[],t[12]=d,t[13]=a):a=t[13],a}function O(o){const t=C.c(10),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=V(n),i=o??void 0;let l;t[3]!==s||t[4]!==e.id||t[5]!==i?(l=T(e.id,"VIRTUAL_MCP",i,s),t[3]=s,t[4]=e.id,t[5]=i,t[6]=l):l=t[6];const c=!!s&&!!o;let r;t[7]!==l||t[8]!==c?(r={...l,enabled:c},t[7]=l,t[8]=c,t[9]=r):r=t[9];const{data:u}=m(r);return u?.item??null}async function w(o,t,e={}){const n=await o.fetchQuery(R({connectionId:g,orgId:t.id,orgSlug:t.slug})),s=p(t.id,"VIRTUAL_MCP",n,e);return s.select(await o.fetchQuery(s))}function x(o){const t=C.c(18);let e;t[0]!==o?(e={},t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=V(i);let c;t[5]!==l||t[6]!==n||t[7]!==s.id?(c=U(s.id,"VIRTUAL_MCP",l,n),t[5]=l,t[6]=n,t[7]=s.id,t[8]=c):c=t[8];const r=!!l;let u;t[9]!==c||t[10]!==r?(u={...c,enabled:r},t[9]=c,t[10]=r,t[11]=u):u=t[11];const{data:d}=m(u);let a;t[12]!==d?.items?(a=d?.items??[],t[12]=d?.items,t[13]=a):a=t[13];const P=d?.totalCount,M=d?.hasMore;let f;return t[14]!==a||t[15]!==P||t[16]!==M?(f={items:a,totalCount:P,hasMore:M},t[14]=a,t[15]=P,t[16]=M,t[17]=f):f=t[17],f}function E(o){const t=C.c(3),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=L(n);return y(e.id,"VIRTUAL_MCP",o??void 0,s)}function K(o){const t=C.c(15),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=L(n);let i,l,c;t[3]!==o||t[4]!==e.id?(i=[...o].sort(),c=m,l=A.virtualMcpLastUsed(e.id,i),t[3]=o,t[4]=e.id,t[5]=i,t[6]=l,t[7]=c):(i=t[5],l=t[6],c=t[7]);const r=i.length>0;let u;t[8]!==s||t[9]!==i?(u=async()=>{const P=(await s.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:i}})).structuredContent??{items:[]},M=new Map;for(const f of P.items)M.set(f.id,f);return M},t[8]=s,t[9]=i,t[10]=u):u=t[10];let d;return t[11]!==l||t[12]!==r||t[13]!==u?(d={queryKey:l,enabled:r,staleTime:3e4,queryFn:u},t[11]=l,t[12]=r,t[13]=u,t[14]=d):d=t[14],c(d)}function k(){const o=C.c(3),{org:t}=I();let e;o[0]!==t.id||o[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},o[0]=t.id,o[1]=t.slug,o[2]=e):e=o[2];const n=L(e);return _(t.id,"VIRTUAL_MCP",n)}export{E as a,$ as b,k as c,O as d,h as e,w as f,K as g,x as u};
1
+ import{c as C,M as I,x as g,cH as S,cI as _,K as A,cJ as y,cK as T,m,cL as p,cM as U}from"./index-Dc7hzqoi.js";import{u as L,a as V,m as R}from"./use-mcp-client-e_hCatGm.js";function $(o){const t=C.c(5);let e;t[0]!==o?(e=o===void 0?{}:o,t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=L(i);return S(s.id,"VIRTUAL_MCP",l,n)}function h(o){const t=C.c(14);let e;t[0]!==o?(e={},t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=V(i);let c;t[5]!==l||t[6]!==n||t[7]!==s.id?(c=p(s.id,"VIRTUAL_MCP",l,n),t[5]=l,t[6]=n,t[7]=s.id,t[8]=c):c=t[8];const r=!!l;let u;t[9]!==c||t[10]!==r?(u={...c,enabled:r},t[9]=c,t[10]=r,t[11]=u):u=t[11];const{data:d}=m(u);let a;return t[12]!==d?(a=d??[],t[12]=d,t[13]=a):a=t[13],a}function O(o){const t=C.c(10),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=V(n),i=o??void 0;let l;t[3]!==s||t[4]!==e.id||t[5]!==i?(l=T(e.id,"VIRTUAL_MCP",i,s),t[3]=s,t[4]=e.id,t[5]=i,t[6]=l):l=t[6];const c=!!s&&!!o;let r;t[7]!==l||t[8]!==c?(r={...l,enabled:c},t[7]=l,t[8]=c,t[9]=r):r=t[9];const{data:u}=m(r);return u?.item??null}async function w(o,t,e={}){const n=await o.fetchQuery(R({connectionId:g,orgId:t.id,orgSlug:t.slug})),s=p(t.id,"VIRTUAL_MCP",n,e);return s.select(await o.fetchQuery(s))}function x(o){const t=C.c(18);let e;t[0]!==o?(e={},t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=V(i);let c;t[5]!==l||t[6]!==n||t[7]!==s.id?(c=U(s.id,"VIRTUAL_MCP",l,n),t[5]=l,t[6]=n,t[7]=s.id,t[8]=c):c=t[8];const r=!!l;let u;t[9]!==c||t[10]!==r?(u={...c,enabled:r},t[9]=c,t[10]=r,t[11]=u):u=t[11];const{data:d}=m(u);let a;t[12]!==d?.items?(a=d?.items??[],t[12]=d?.items,t[13]=a):a=t[13];const P=d?.totalCount,M=d?.hasMore;let f;return t[14]!==a||t[15]!==P||t[16]!==M?(f={items:a,totalCount:P,hasMore:M},t[14]=a,t[15]=P,t[16]=M,t[17]=f):f=t[17],f}function E(o){const t=C.c(3),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=L(n);return y(e.id,"VIRTUAL_MCP",o??void 0,s)}function K(o){const t=C.c(15),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=L(n);let i,l,c;t[3]!==o||t[4]!==e.id?(i=[...o].sort(),c=m,l=A.virtualMcpLastUsed(e.id,i),t[3]=o,t[4]=e.id,t[5]=i,t[6]=l,t[7]=c):(i=t[5],l=t[6],c=t[7]);const r=i.length>0;let u;t[8]!==s||t[9]!==i?(u=async()=>{const P=(await s.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:i}})).structuredContent??{items:[]},M=new Map;for(const f of P.items)M.set(f.id,f);return M},t[8]=s,t[9]=i,t[10]=u):u=t[10];let d;return t[11]!==l||t[12]!==r||t[13]!==u?(d={queryKey:l,enabled:r,staleTime:3e4,queryFn:u},t[11]=l,t[12]=r,t[13]=u,t[14]=d):d=t[14],c(d)}function k(){const o=C.c(3),{org:t}=I();let e;o[0]!==t.id||o[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},o[0]=t.id,o[1]=t.slug,o[2]=e):e=o[2];const n=L(e);return _(t.id,"VIRTUAL_MCP",n)}export{E as a,$ as b,k as c,O as d,h as e,w as f,K as g,x as u};
@@ -0,0 +1 @@
1
+ import{I as u}from"./infiniteQueryObserver-CjWlcBHD.js";import{dw as i}from"./index-Dc7hzqoi.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +1 @@
1
- import{db as Q,dc as y,dd as S,de as w,df as C,n as k,dg as x,dh as M,r as p,di as q,dj as H,dk as L,dl as P,dm as O,dn as B,dp as A}from"./index-z4bKt11m.js";function R(r,s){const e=new Set(s);return r.filter(t=>!e.has(t))}function T(r,s,e){const t=r.slice(0);return t[s]=e,t}var j=class extends Q{#i;#s;#n;#r;#e;#t;#o;#u;#h;#a=[];constructor(r,s,e){super(),this.#i=r,this.#r=e,this.#n=[],this.#e=[],this.#s=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#e.forEach(r=>{r.subscribe(s=>{this.#f(r,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#e.forEach(r=>{r.destroy()})}setQueries(r,s){this.#n=r,this.#r=s,y.batch(()=>{const e=this.#e,t=this.#d(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=e.length!==i.length,c=i.some((o,f)=>o!==e[f]),d=u||c,b=d?!0:n.some((o,f)=>{const g=this.#s[f];return!g||!S(o,g)});!d&&!b||(d&&(this.#a=t,this.#e=i),this.#s=n,this.hasListeners()&&(d&&(R(e,i).forEach(o=>{o.destroy()}),R(i,e).forEach(o=>{o.subscribe(f=>{this.#f(o,f)})})),this.#p()))})}getCurrentResult(){return this.#s}getQueries(){return this.#e.map(r=>r.getCurrentQuery())}getObservers(){return this.#e}getOptimisticResult(r,s){const e=this.#d(r),t=e.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=e.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,s,i),()=>this.#c(t,e)]}#c(r,s){return s.map((e,t)=>{const i=r[t];return e.defaultedQueryOptions.notifyOnChangeProps?i:e.observer.trackResult(i,n=>{s.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,s,e){if(s){const t=this.#h,i=e!==void 0&&t!==void 0&&(t.length!==e.length||e.some((n,u)=>n!==t[u]));return(!this.#t||this.#s!==this.#u||i||s!==this.#o)&&(this.#o=s,this.#u=this.#s,e!==void 0&&(this.#h=e),this.#t=w(this.#t,s(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#e.some((r,s)=>r.options.suspense&&this.#s[s]?.data===void 0)}#d(r){const s=new Map;this.#e.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=s.get(i);n?n.push(t):s.set(i,[t])});const e=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=s.get(i.queryHash)?.shift()??new C(this.#i,i);e.push({defaultedQueryOptions:i,observer:u})}),e}#f(r,s){const e=this.#e.indexOf(r);e!==-1&&(this.#s=T(this.#s,e,s),this.#p())}#p(){if(this.hasListeners()){const r=this.#c(this.#s,this.#a),s=this.#b(),e=this.#t,t=s?e:this.#l(r,this.#r?.combine);(s||e!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#s)})})}}};function I({queries:r,...s},e){const t=k(e),i=x(),n=M(),u=p.useMemo(()=>r.map(h=>{const a=t.defaultQueryOptions(h);return a._optimisticResults=i?"isRestoring":"optimistic",a}),[r,t,i]);u.forEach(h=>{q(h);const a=t.getQueryCache().get(h.queryHash);H(h,n,a)}),L(n);const[c]=p.useState(()=>new j(t,u,s)),[d,b,o]=c.getOptimisticResult(u,s.combine),f=!i&&s.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>f?c.subscribe(y.batchCalls(h)):P,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(u,s)},[u,s,c]);const m=d.some((h,a)=>O(u[a],h))?d.flatMap((h,a)=>{const l=u[a];if(l&&O(l,h)){const E=new C(t,l);return B(l,E,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const v=d.find((h,a)=>{const l=u[a];return l&&A({result:h,errorResetBoundary:n,throwOnError:l.throwOnError,query:t.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(v?.error)throw v.error;return b(o())}export{I as u};
1
+ import{db as Q,dc as y,dd as S,de as w,df as C,n as k,dg as x,dh as M,r as p,di as q,dj as H,dk as L,dl as P,dm as O,dn as B,dp as A}from"./index-Dc7hzqoi.js";function R(r,s){const e=new Set(s);return r.filter(t=>!e.has(t))}function T(r,s,e){const t=r.slice(0);return t[s]=e,t}var j=class extends Q{#i;#s;#n;#r;#e;#t;#o;#u;#h;#a=[];constructor(r,s,e){super(),this.#i=r,this.#r=e,this.#n=[],this.#e=[],this.#s=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#e.forEach(r=>{r.subscribe(s=>{this.#f(r,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#e.forEach(r=>{r.destroy()})}setQueries(r,s){this.#n=r,this.#r=s,y.batch(()=>{const e=this.#e,t=this.#d(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=e.length!==i.length,c=i.some((o,f)=>o!==e[f]),d=u||c,b=d?!0:n.some((o,f)=>{const g=this.#s[f];return!g||!S(o,g)});!d&&!b||(d&&(this.#a=t,this.#e=i),this.#s=n,this.hasListeners()&&(d&&(R(e,i).forEach(o=>{o.destroy()}),R(i,e).forEach(o=>{o.subscribe(f=>{this.#f(o,f)})})),this.#p()))})}getCurrentResult(){return this.#s}getQueries(){return this.#e.map(r=>r.getCurrentQuery())}getObservers(){return this.#e}getOptimisticResult(r,s){const e=this.#d(r),t=e.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=e.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,s,i),()=>this.#c(t,e)]}#c(r,s){return s.map((e,t)=>{const i=r[t];return e.defaultedQueryOptions.notifyOnChangeProps?i:e.observer.trackResult(i,n=>{s.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,s,e){if(s){const t=this.#h,i=e!==void 0&&t!==void 0&&(t.length!==e.length||e.some((n,u)=>n!==t[u]));return(!this.#t||this.#s!==this.#u||i||s!==this.#o)&&(this.#o=s,this.#u=this.#s,e!==void 0&&(this.#h=e),this.#t=w(this.#t,s(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#e.some((r,s)=>r.options.suspense&&this.#s[s]?.data===void 0)}#d(r){const s=new Map;this.#e.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=s.get(i);n?n.push(t):s.set(i,[t])});const e=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=s.get(i.queryHash)?.shift()??new C(this.#i,i);e.push({defaultedQueryOptions:i,observer:u})}),e}#f(r,s){const e=this.#e.indexOf(r);e!==-1&&(this.#s=T(this.#s,e,s),this.#p())}#p(){if(this.hasListeners()){const r=this.#c(this.#s,this.#a),s=this.#b(),e=this.#t,t=s?e:this.#l(r,this.#r?.combine);(s||e!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#s)})})}}};function I({queries:r,...s},e){const t=k(e),i=x(),n=M(),u=p.useMemo(()=>r.map(h=>{const a=t.defaultQueryOptions(h);return a._optimisticResults=i?"isRestoring":"optimistic",a}),[r,t,i]);u.forEach(h=>{q(h);const a=t.getQueryCache().get(h.queryHash);H(h,n,a)}),L(n);const[c]=p.useState(()=>new j(t,u,s)),[d,b,o]=c.getOptimisticResult(u,s.combine),f=!i&&s.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>f?c.subscribe(y.batchCalls(h)):P,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(u,s)},[u,s,c]);const m=d.some((h,a)=>O(u[a],h))?d.flatMap((h,a)=>{const l=u[a];if(l&&O(l,h)){const E=new C(t,l);return B(l,E,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const v=d.find((h,a)=>{const l=u[a];return l&&A({result:h,errorResetBoundary:n,throwOnError:l.throwOnError,query:t.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(v?.error)throw v.error;return b(o())}export{I as u};
@@ -0,0 +1 @@
1
+ import{I as s}from"./infiniteQueryObserver-CjWlcBHD.js";import{dw as u,d7 as n}from"./index-Dc7hzqoi.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
@@ -1 +1 @@
1
- import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,P as I,K as J,t as Q,B as W}from"./index-z4bKt11m.js";import{C as G}from"./collection-table-wrapper-SWoJua5h.js";import{E as L}from"./empty-state-BIcQyeij.js";import{S as H}from"./search-input-DpLbMQRj.js";import{A as X}from"./avatar-Duu5Gg02.js";import{B as D}from"./badge-BNBGXxmC.js";import{u as Z}from"./use-debounced-value-DeY1TNRX.js";import{a as K}from"./admin-fetch-CCSvjTk1.js";import{f as ee}from"./format-time-BtXRrtv4.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./table-B6mPp07a.js";import"./ArrowUp-Scf6R8DX.js";import"./SearchMd-FDCJM3CR.js";import"./User01-BbOpA84p.js";import"./differenceInSeconds-C3x8sHUj.js";function ve(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const a=Z(N,300),{data:R}=O.useSession(),P=R?.user?.id;let n;e[2]!==a?(n=J.deploymentAdminUsers(a),e[2]=a,e[3]=n):n=e[3];let l;e[4]!==a?(l=()=>{const i=new URLSearchParams({limit:"100"});return a&&i.set("searchValue",a),K(`/api/_admin/users?${i}`)},e[4]=a,e[5]=l):l=e[5];let C;e[6]!==n||e[7]!==l?(C={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=C):C=e[8];const{data:k,isLoading:_,isError:A}=Y(C);let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=ie,e[9]=w):w=e[9];let y;e[10]!==s?(y={mutationFn:ae,onSuccess:w,onError:i=>{Q.error(i instanceof Error?i.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=y):y=e[11];const E=$(y);let b;e[12]!==k?.users?(b=k?.users??[],e[12]=k?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=i=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:i.image??void 0,fallback:se(i.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:i.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:i.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=i=>i.emailVerified?t.jsx(D,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(D,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:te,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==P||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===P||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=P,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(H,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==a||e[47]!==A||e[48]!==s?(S=A?t.jsx(L,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(L,{title:s("admin.users.noUsersFoundTitle"),description:a?s("admin.users.noUsersMatchSearch",{search:a}):s("admin.users.noUsersYet")}),e[46]=a,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(G,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(I,{children:t.jsx(I.Content,{children:t.jsx(I.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function te(e){return t.jsx("span",{className:"text-sm text-foreground",children:ee(e.createdAt)})}function ie(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{ve as default};
1
+ import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,P as I,K as J,t as Q,B as W}from"./index-Dc7hzqoi.js";import{C as G}from"./collection-table-wrapper-DBeauaNS.js";import{E as L}from"./empty-state-CyICQznD.js";import{S as H}from"./search-input-Pobww52G.js";import{A as X}from"./avatar-C9HiP4eS.js";import{B as D}from"./badge-Bu51Hlti.js";import{u as Z}from"./use-debounced-value-B9nG3bW5.js";import{a as K}from"./admin-fetch-CCSvjTk1.js";import{f as ee}from"./format-time-BtXRrtv4.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./table-6I6YKvFY.js";import"./ArrowUp-Cii1LHW7.js";import"./SearchMd-C45D2PMI.js";import"./User01-ClMaVCaJ.js";import"./differenceInSeconds-C3x8sHUj.js";function ve(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const a=Z(N,300),{data:R}=O.useSession(),P=R?.user?.id;let n;e[2]!==a?(n=J.deploymentAdminUsers(a),e[2]=a,e[3]=n):n=e[3];let l;e[4]!==a?(l=()=>{const i=new URLSearchParams({limit:"100"});return a&&i.set("searchValue",a),K(`/api/_admin/users?${i}`)},e[4]=a,e[5]=l):l=e[5];let C;e[6]!==n||e[7]!==l?(C={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=C):C=e[8];const{data:k,isLoading:_,isError:A}=Y(C);let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=ie,e[9]=w):w=e[9];let y;e[10]!==s?(y={mutationFn:ae,onSuccess:w,onError:i=>{Q.error(i instanceof Error?i.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=y):y=e[11];const E=$(y);let b;e[12]!==k?.users?(b=k?.users??[],e[12]=k?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=i=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:i.image??void 0,fallback:se(i.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:i.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:i.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=i=>i.emailVerified?t.jsx(D,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(D,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:te,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==P||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===P||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=P,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(H,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==a||e[47]!==A||e[48]!==s?(S=A?t.jsx(L,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(L,{title:s("admin.users.noUsersFoundTitle"),description:a?s("admin.users.noUsersMatchSearch",{search:a}):s("admin.users.noUsersYet")}),e[46]=a,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(G,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(I,{children:t.jsx(I.Content,{children:t.jsx(I.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function te(e){return t.jsx("span",{className:"text-sm text-foreground",children:ee(e.createdAt)})}function ie(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{ve as default};
@@ -1,4 +1,4 @@
1
- import{i as W,s as E}from"./ZoomOut-BRjMa-04.js";import{i as w}from"./File02-g-xJPix_.js";import{a as j}from"./Image01-DfaxHjlV.js";function I(e){if(!e||e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;try{const t=decodeURIComponent(e);return!!(t.includes("\\")||t.includes("..")||t.includes("\0"))}catch{return!0}}function L(e){if(I(e))throw new Error(`Invalid block key: ${e||"(empty)"}`)}function C(e){try{return decodeURIComponent(e)}catch{return e}}function P(e){return L(e),encodeURIComponent(e)}function v(e){return`.deco/blocks/${P(e)}.json`}const z=1e4,F=3;function y(e){return e.trim()?(e.startsWith("/")?e:`/${e}`).replace(/\/+/g,"/"):"/"}function x(e){return e.startsWith("/")?e.slice(1):e}function D(e){const t=x(e);return!t||t.includes("..")||t.includes("\\")?!1:t.startsWith(".deco/blocks/")||!t.startsWith("/")&&!t.includes("://")}function h(e){return e.trim()?e.startsWith("/")?e:`/${e}`:"/"}function $(e){const t=h(e);if(t==="/")return"/";const n=t.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function _(e,t){const n=t.replace(/^\/+|\/+$/g,"");return h(n?`${e==="/"?"":e}/${n}`:e)}function M(e,t){return t==="directory"?e:$(e)}function S(e){const t=e.trim();return t?t.includes("/")||t.includes("\\")||t.includes("..")||t.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function B(e){const t=x(e);return t?t.split("/").filter(Boolean).length:0}function H(e,t,n,r=!1){return{files:[...new Set([...e,...n.files])],directories:[...new Set([...t,...n.directories??[]])],truncated:r||!!n.truncated}}function q(e,t){return B(e)>=F&&!t.has(e)}function U(e,t,n=[]){const r=x(e);if(t.includes(r)||n.includes(r))return!0;if(!r)return!1;const s=`${r}/`;return t.some(o=>o.startsWith(s))||n.some(o=>o.startsWith(s))}function A(e){const t=x(e),n=".deco/blocks/";if(!t.startsWith(n)||!t.endsWith(".json"))return null;const r=t.slice(n.length,-5);return C(r)}function X(e){if(!e)return"plaintext";const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?"typescript":t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?"javascript":t.endsWith(".json")?"json":t.endsWith(".md")||t.endsWith(".mdx")?"markdown":t.endsWith(".css")?"css":t.endsWith(".scss")?"scss":t.endsWith(".html")?"html":t.endsWith(".yaml")||t.endsWith(".yml")?"yaml":t.endsWith(".xml")||t.endsWith(".svg")?"xml":t.endsWith(".py")?"python":t.endsWith(".sql")?"sql":t.endsWith(".sh")?"shell":"plaintext"}const T="#94a3b8";function K(e){const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?{Icon:W,color:"#3b82f6"}:t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?{Icon:W,color:"#d9a441"}:t.endsWith(".json")?{Icon:E,color:"#cb9b3f"}:t.endsWith(".css")||t.endsWith(".scss")?{Icon:W,color:"#06b6d4"}:t.endsWith(".html")||t.endsWith(".xml")?{Icon:W,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(t)?{Icon:j,color:"#a855f7"}:t.endsWith(".md")||t.endsWith(".mdx")?{Icon:w,color:"#64748b"}:{Icon:w,color:T}}function V(e){const t=y(e).split("/").filter(Boolean),n=["/"];let r="";for(const s of t.slice(0,-1))r+=`/${s}`,n.push(r);return n}function J(e,t=[]){const n={path:"/",children:[]},r=new Map,s=a=>{let i=r.get(a.path);return i||(i=new Map,r.set(a.path,i)),i},o=a=>{const c=y(a).split("/").filter(Boolean);let l=n,m="";for(const f of c){m+=`/${f}`;const g=s(l);let d=g.get(f);d?d.kind==="file"&&(d.kind="directory"):(d={name:f,path:m,kind:"directory",children:[]},l.children.push(d),g.set(f,d)),l=d}};for(const a of e){const c=y(a).split("/").filter(Boolean);let l=n,m="";c.forEach((f,g)=>{m+=`/${f}`;const d=g===c.length-1,k=s(l);let p=k.get(f);p||(p={name:f,path:m,kind:d?"file":"directory",children:[]},l.children.push(p),k.set(f,p)),l=p})}for(const a of t)o(h(a));const u=a=>{a.sort((i,c)=>i.kind!==c.kind?i.kind==="directory"?-1:1:i.name.localeCompare(c.name));for(const i of a)i.children.length>0&&u(i.children)};return u(n.children),n.children}function N(e,t,n=0){const r=[];for(const s of e)if(s.name!==".gitkeep"&&(r.push({node:s,depth:n}),s.kind==="directory"&&s.children.length>0&&t.has(s.path)))for(const o of N(s.children,t,n+1))r.push(o);return r}function Q(e){const t=[];for(const n of e.split(`
1
+ import{i as W,s as E}from"./ZoomOut-BPxprY2s.js";import{i as w}from"./File02-BvR-HYxK.js";import{a as j}from"./Image01-CxnjAzbb.js";function I(e){if(!e||e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;try{const t=decodeURIComponent(e);return!!(t.includes("\\")||t.includes("..")||t.includes("\0"))}catch{return!0}}function L(e){if(I(e))throw new Error(`Invalid block key: ${e||"(empty)"}`)}function C(e){try{return decodeURIComponent(e)}catch{return e}}function P(e){return L(e),encodeURIComponent(e)}function v(e){return`.deco/blocks/${P(e)}.json`}const z=1e4,F=3;function y(e){return e.trim()?(e.startsWith("/")?e:`/${e}`).replace(/\/+/g,"/"):"/"}function x(e){return e.startsWith("/")?e.slice(1):e}function D(e){const t=x(e);return!t||t.includes("..")||t.includes("\\")?!1:t.startsWith(".deco/blocks/")||!t.startsWith("/")&&!t.includes("://")}function h(e){return e.trim()?e.startsWith("/")?e:`/${e}`:"/"}function $(e){const t=h(e);if(t==="/")return"/";const n=t.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function _(e,t){const n=t.replace(/^\/+|\/+$/g,"");return h(n?`${e==="/"?"":e}/${n}`:e)}function M(e,t){return t==="directory"?e:$(e)}function S(e){const t=e.trim();return t?t.includes("/")||t.includes("\\")||t.includes("..")||t.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function B(e){const t=x(e);return t?t.split("/").filter(Boolean).length:0}function H(e,t,n,r=!1){return{files:[...new Set([...e,...n.files])],directories:[...new Set([...t,...n.directories??[]])],truncated:r||!!n.truncated}}function q(e,t){return B(e)>=F&&!t.has(e)}function U(e,t,n=[]){const r=x(e);if(t.includes(r)||n.includes(r))return!0;if(!r)return!1;const s=`${r}/`;return t.some(o=>o.startsWith(s))||n.some(o=>o.startsWith(s))}function A(e){const t=x(e),n=".deco/blocks/";if(!t.startsWith(n)||!t.endsWith(".json"))return null;const r=t.slice(n.length,-5);return C(r)}function X(e){if(!e)return"plaintext";const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?"typescript":t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?"javascript":t.endsWith(".json")?"json":t.endsWith(".md")||t.endsWith(".mdx")?"markdown":t.endsWith(".css")?"css":t.endsWith(".scss")?"scss":t.endsWith(".html")?"html":t.endsWith(".yaml")||t.endsWith(".yml")?"yaml":t.endsWith(".xml")||t.endsWith(".svg")?"xml":t.endsWith(".py")?"python":t.endsWith(".sql")?"sql":t.endsWith(".sh")?"shell":"plaintext"}const T="#94a3b8";function K(e){const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?{Icon:W,color:"#3b82f6"}:t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?{Icon:W,color:"#d9a441"}:t.endsWith(".json")?{Icon:E,color:"#cb9b3f"}:t.endsWith(".css")||t.endsWith(".scss")?{Icon:W,color:"#06b6d4"}:t.endsWith(".html")||t.endsWith(".xml")?{Icon:W,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(t)?{Icon:j,color:"#a855f7"}:t.endsWith(".md")||t.endsWith(".mdx")?{Icon:w,color:"#64748b"}:{Icon:w,color:T}}function V(e){const t=y(e).split("/").filter(Boolean),n=["/"];let r="";for(const s of t.slice(0,-1))r+=`/${s}`,n.push(r);return n}function J(e,t=[]){const n={path:"/",children:[]},r=new Map,s=a=>{let i=r.get(a.path);return i||(i=new Map,r.set(a.path,i)),i},o=a=>{const c=y(a).split("/").filter(Boolean);let l=n,m="";for(const f of c){m+=`/${f}`;const g=s(l);let d=g.get(f);d?d.kind==="file"&&(d.kind="directory"):(d={name:f,path:m,kind:"directory",children:[]},l.children.push(d),g.set(f,d)),l=d}};for(const a of e){const c=y(a).split("/").filter(Boolean);let l=n,m="";c.forEach((f,g)=>{m+=`/${f}`;const d=g===c.length-1,k=s(l);let p=k.get(f);p||(p={name:f,path:m,kind:d?"file":"directory",children:[]},l.children.push(p),k.set(f,p)),l=p})}for(const a of t)o(h(a));const u=a=>{a.sort((i,c)=>i.kind!==c.kind?i.kind==="directory"?-1:1:i.name.localeCompare(c.name));for(const i of a)i.children.length>0&&u(i.children)};return u(n.children),n.children}function N(e,t,n=0){const r=[];for(const s of e)if(s.name!==".gitkeep"&&(r.push({node:s,depth:n}),s.kind==="directory"&&s.children.length>0&&t.has(s.path)))for(const o of N(s.children,t,n+1))r.push(o);return r}function Q(e){const t=[];for(const n of e.split(`
2
2
  `)){if(!n)continue;const r=n.indexOf(":");if(r<0)continue;const s=n.indexOf(":",r+1);if(s<0)continue;const o=Number.parseInt(n.slice(r+1,s),10);Number.isFinite(o)&&t.push({path:h(n.slice(0,r)),line:o,text:n.slice(s+1)})}return t}function Y(e,t,n){const r=t.trim().toLowerCase();if(!r)return[];const s=[];for(const o of e)if((o.split("/").pop()??o).toLowerCase().includes(r)&&(s.push(h(o)),s.length>=n))break;return s}const b=24;function Z(e,t){const n=e.replace(/^\s+/,""),r=t.trim().toLowerCase();if(!r)return{leadingEllipsis:!1,segments:[{text:n,match:!1}]};const s=n.toLowerCase().indexOf(r);if(s<0)return{leadingEllipsis:!1,segments:[{text:n,match:!1}]};const o=s>b,u=o?n.slice(s-b):n,a=u.toLowerCase(),i=[];let c=0;for(;;){const l=a.indexOf(r,c);if(l<0){c<u.length&&i.push({text:u.slice(c),match:!1});break}l>c&&i.push({text:u.slice(c,l),match:!1}),i.push({text:u.slice(l,l+r.length),match:!0}),c=l+r.length}return{leadingEllipsis:o,segments:i}}function tt(e){const t=[],n=new Map;for(const r of e){let s=n.get(r.path);s||(s={path:r.path,matches:[]},n.set(r.path,s),t.push(s)),s.matches.push(r)}return t}function et(e){return e.split(`
3
3
  `).map(t=>t.replace(/^\d+\t/,"")).join(`
4
4
  `)}export{F as E,v as a,L as b,z as c,C as d,J as e,N as f,X as g,tt as h,D as i,M as j,h as k,K as l,$ as m,V as n,Z as o,q as p,_ as q,U as r,et as s,x as t,Y as u,S as v,Q as w,A as x,H as y};
@@ -1 +1 @@
1
- import{c as K,b as X,r as Z,j as i,l as rt,B as tt}from"./index-z4bKt11m.js";import{o as ut,O as at,q as ht}from"./agent-icon-BD4DM2Lv.js";import{i as xt}from"./ChevronRight-DNrwFBnC.js";import{L as gt}from"./label-8juC5J-g.js";import{S as lt}from"./scroll-area-BqCCUXvj.js";import{S as bt}from"./switch-9PLadaw_.js";import{T as vt,c as yt,a as jt}from"./tooltip-BuKeolDX.js";import{V as Tt}from"./view-mode-toggle-DaZN0qXY.js";import{M as mt,q as ct,t as Nt,v as _t,w as kt,x as U,W as wt}from"./agent-site-editor-content-C3uy2bqp.js";import"./AlertCircle-DbwtWnTP.js";import"./Tool01-DHi_Z7zo.js";import"./ArrowUp-Scf6R8DX.js";import"./ArrowLeft-CyH6aWpS.js";import"./Tool02-JY0gm8cg.js";import"./ArrowRight-Bv0iX4wy.js";import"./TrendUp01-Bkdgpfn7.js";import"./ZoomOut-BRjMa-04.js";import"./Users03-BP-0DNhp.js";import"./CheckCircle-BKb1RVrA.js";import"./Check-BZE0WrNL.js";import"./ChevronUp-D5_IWEtB.js";import"./ChevronSelectorVertical-oXn0cTzk.js";import"./DotsVertical-DE9eZKrJ.js";import"./UserSquare-qgzToKNd.js";import"./Copy01-DTHuBaTA.js";import"./CreditCard01-CwX6pA0M.js";import"./Database01-RGlwXHSd.js";import"./MessageCircle01-CgotMmLL.js";import"./Download01-qX3hmvr5.js";import"./Printer-BpZBiqyG.js";import"./Settings02-CFcKewXh.js";import"./Eye-DXUjft5i.js";import"./File02-g-xJPix_.js";import"./Share07-CxuHcmnM.js";import"./GitBranch01-ddoPQdPH.js";import"./Globe01-DIy8wXF6.js";import"./SwitchHorizontal01-hHr6GOmU.js";import"./HardDrive-DU_z1AQw.js";import"./Image01-DfaxHjlV.js";import"./Key01-mqjfsZRe.js";import"./Link01-C656VtHx.js";import"./LinkExternal01-BkRUjBAn.js";import"./Monitor01-CQ6Zk1oP.js";import"./Sun-SBoG-e9B.js";import"./Package-t6euxYcP.js";import"./Palette-oECS8j3l.js";import"./Play-DQgzDnaW.js";import"./Plus-D2HOi_DD.js";import"./SearchLg-DbX4T5E-.js";import"./SearchMd-FDCJM3CR.js";import"./Shield01-HrKG6yUn.js";import"./Stars01-B_nM3FYf.js";import"./Trash01-C6bziN5X.js";import"./Upload01-DC2spim9.js";import"./User01-BbOpA84p.js";import"./Users01-BOsDT0Jv.js";import"./XCircle-CuK2q_XU.js";import"./XClose-Cvyz3reC.js";import"./X-Bzh3NI3m.js";import"./Zap-DXNovEva.js";import"./select-cIekAVlM.js";import"./index-B46P4HkV.js";import"./agent-view-guard-q_9RifUL.js";import"./use-main-panel-tabs-CyT7yQAB.js";import"./use-route-default-main-DBXt2fvS.js";import"./use-connection-CPQUKm0a.js";import"./use-mcp-client-B1u2B39v.js";import"./auth-D-2jYpOE.js";import"./use-mcp-tools-Ch_j97A3.js";import"./use-virtual-mcp-Bq1RMGPF.js";import"./types-Bh4jNqv3.js";import"./utils-CVEq3hMx.js";import"./use-project-scope-DRope0ob.js";import"./github-repo-BknN0SVI.js";import"./index-BFjKFLU3.js";import"./chat-context-BBVkwd3p.js";import"./use-panel-navigate-BG4d0Vrr.js";import"./thread-route-B1EuqJlg.js";import"./autosend-D-BN-cv5.js";import"./thread-intent-9fI0jPLV.js";import"./slugify-CEUa2lfQ.js";import"./hooks-CkL4R3Tj.js";import"./backoff-8mStPHYB.js";import"./task-board-lQZGfEfb.js";import"./schema-D0xfowSf.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-BWaaNeuI.js";import"./use-ai-providers-B0bxSHYG.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-_O_0AHeH.js";import"./use-organization-settings-C-XY0Wze.js";import"./gateway-client-CFIpVRaR.js";import"./dialog-DbzCN1O8.js";import"./drawer-CBdcJytm.js";import"./collection-search-CeA9TK20.js";import"./use-mobile-CV7f0Wqe.js";import"./use-mcp-prompts-DxT8Kz-M.js";import"./index-CuiP-22D.js";import"./form-B7dtslOD.js";import"./input-C7XH8Uj_.js";import"./org-file-open-context-BgiBbqKQ.js";import"./input-I71U33T1.js";import"./command-palette-store-LVCQ6fRv.js";import"./chat-draft-bAtYgASI.js";import"./use-session-runtime-DU2zS-3V.js";import"./usage-stats-waRf4dtg.js";import"./use-copy-DUiBegp6.js";import"./markdown-BhLIBmBv.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-Co2GUrNY.js";import"./use-deco-credits-Du6WCMYS.js";import"./toggle-group-Ck5f9XVv.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-BGn9Wkis.js";import"./decopilot-72HlEf1U.js";import"./checkbox-Dkejdmst.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-Duu5Gg02.js";import"./download-app-dialog-Bsig7tOs.js";import"./popover-CsEsUqbZ.js";import"./index-CULK6hDm.js";import"./input-CSQboV8k.js";import"./hooks-D09Ti1PG.js";import"./use-org-fs-D6lKuMAi.js";import"./dropdown-menu-Dd8nakK9.js";import"./question-004-sINsf4GQ.js";import"./use-members-H3oi0qPu.js";import"./use-org-auth-client-ZxEGrzhh.js";import"./feature-paywall-BOwjYKin.js";import"./plan-ladder-C80Qcxkm.js";import"./add-connection-dialog-GfufFuLz.js";import"./extract-connection-data-CM8c_Wvw.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-BfiO32wM.js";import"./connection-card-83VJQMov.js";import"./use-registry-connections-D_a0MIjQ.js";import"./useInfiniteQuery-C6OBOha-.js";import"./infiniteQueryObserver-BjcfJE2O.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./integration-icon-DOHTaQ6D.js";import"./textarea-BEOceSll.js";import"./connection-form-helpers-Ms_1nBbP.js";import"./authenticate-and-persist-oauth-2yRhuiER.js";import"./mcp-oauth-DiqQlKOx.js";import"./collection-tabs-3kW0qDG6.js";import"./badge-BNBGXxmC.js";import"./use-infinite-scroll-RrOnf-fI.js";import"./useSuspenseInfiniteQuery-XFcbI_PD.js";import"./pair-B2TMNGEX.js";import"./collapsible-n44mVpiB.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DjwQ0S-h.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-DMJSwXH6.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-C5thI8aD.js";import"./command-D2fiEFer.js";import"./index-Cyoz5tz5.js";import"./project-icon-Cw3la58q.js";import"./required-auth-layout-WkX8CtfT.js";import"./use-org-sso-vHIufIoJ.js";import"./sheet-DhNzwMUj.js";import"./use-navigate-to-agent-BMSyO1iB.js";import"./use-thread-outputs-DAcljy5D.js";import"./file-type-icon-C37FwvPU.js";import"./sandbox-lifecycle-context-DL9kkwoa.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata-9gheSHac.js";import"./use-project-native-view-presence-0NQTfFQT.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-sqbLS09v.js";import"./site-slug-uya6Wp4-.js";import"./virtual-mcp-BYPZngzy.js";import"./feature-gate-BURkiaEd.js";import"./alert-dialog-Bi9Cy1y8.js";import"./runnable-block-editor-CCXhy-vO.js";import"./decofile-api-BVqR93jw.js";import"./utils-CU3t1jst.js";import"./claim-phase-copy-0btUuJoC.js";import"./monaco-editor-BHu8MLvz.js";import"./editor-CpBx0ZCm.js";import"./calendar-Dyov14Y_.js";import"./rich-text-link-control-DgGIjR0I.js";import"./safe-image-url-D5z803Ot.js";import"./search-input-DpLbMQRj.js";import"./use-debounced-value-DeY1TNRX.js";import"./asset-utils-syVIRo9d.js";import"./sandbox-git-api-CMdpE2TE.js";import"./mustache-DtVu96DY.js";import"./empty-state-BIcQyeij.js";import"./github-icon-BcrkxW36.js";import"./repository-import-picker-C0YugeGx.js";import"./repository-picker-BaqWNwxf.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Mt=new Date(-864e13),Ct=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Lt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Rt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,o=typeof t=="string",s=typeof r=="string";if(!o&&!s)return null;const n=o?new Date(t):Mt,a=s?new Date(r):Ct;return Number.isNaN(n.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=n.getTime()?null:{start:n,end:a,openStart:!o,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const o=Rt(e);o&&t.push(o);return}if(St.has(r)){const o=e.matchers;if(Array.isArray(o))for(const s of o)pt(s,t)}}}function Dt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Ot(e){if(typeof e=="string"){const m=e.trim();if(m.length===0)return null;try{const c=new URL(m).pathname.split("/").filter(Boolean),p=c[c.length-1];if(p)return decodeURIComponent(p)}catch{}return m.length>80?`${m.slice(0,77)}…`:m}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,n=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const m of n)if(typeof m=="string"&&m.trim().length>0)return m.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let r=0;r<e.length;r++){const o=e[r];typeof o=="number"?t.length>0?t[t.length-1]+=`[${o}]`:t.push(`[${o}]`):t.push(o)}return t.join(" · ")}function Q(e,t,r,o,s){if(Dt(e)){const n=e.variants,a=e.__resolveType,m=$t.test(a)?"":Pt(o);n.forEach((l,c)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(m||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:m,variantIndex:c,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<n.length;l++){const c=n[l];c&&typeof c=="object"&&Q(c.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let n=0;n<e.length;n++)Q(e[n],t,r,[...o,n],s);return}if(e&&typeof e=="object")for(const[n,a]of Object.entries(e))n!=="__resolveType"&&Q(a,t,r,[...o,n],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))Q(o,r,Lt(r),[],t);return t.sort((r,o)=>r.start.getTime()-o.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((o,s)=>{const n=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${n})`,text:"white",border:`oklch(0.50 0.14 ${n})`})}),r}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Ht}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Bt(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):ot.format(e.start),o=e.openEnd?t("sandbox.variantCalendar.ongoing"):ot.format(e.end);return`${r} → ${o}`}function Ft(e){const t=K.c(18),{variant:r}=e,o=X();let s;t[0]!==r.blockLabel?(s=i.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let n;t[2]!==r.innerPath?(n=r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=n):n=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let m;t[8]!==o||t[9]!==r?(m=Bt(r,o),t[8]=o,t[9]=r,t[10]=m):m=t[10];let l;t[11]!==m?(l=i.jsx("div",{className:"mt-1",children:m}),t[11]=m,t[12]=l):l=t[12];let c;return t[13]!==s||t[14]!==n||t[15]!==a||t[16]!==l?(c=i.jsx(jt,{children:i.jsxs("div",{className:"text-xs",children:[s,n,a,l]})}),t[13]=s,t[14]=n,t[15]=a,t[16]=l,t[17]=c):c=t[17],c}const it=16;function zt(e,t){const r=e?"transparent":"#000 0",o=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${it}px, #000 calc(100% - ${it}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:n,fadeStart:a,fadeEnd:m}=e,l=a===void 0?!1:a,c=m===void 0?!1:m;let p;t[0]!==c||t[1]!==l?(p=zt(l,c),t[0]=c,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==c?(g=c&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=c,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==o.bg||t[10]!==o.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:o.bg,color:o.text,borderRadius:4,...f,...g,...u,...s},t[9]=o.bg,t[10]=o.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==n?(b=i.jsx("span",{className:"truncate",children:n}),t[16]=n,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=i.jsx(vt,{asChild:!0,children:i.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=i.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=i.jsxs(yt,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function Hi(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,n]=Z.useState("calendar"),[a,m]=Z.useState(Kt),[l,c]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const I=It(r);p=I.filter(Ut).length,f=l?I:I.filter(Gt),h=Vt(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>m(ct(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>m(I=>s==="calendar"?U(I,-1):U(I,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>m(I=>s==="calendar"?U(I,1):U(I,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==o?(v=o("sandbox.variantCalendar.today"),t[10]=o,t[11]=v):v=t[11];let y;t[12]!==v?(y=i.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==o?(N=o("sandbox.variantCalendar.previous"),t[14]=o,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=i.jsx(ut,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==o?(k=o("sandbox.variantCalendar.next"),t[20]=o,t[21]=k):k=t[21];let M;t[22]===Symbol.for("react.memo_cache_sentinel")?(M=i.jsx(xt,{size:16}),t[22]=M):M=t[22];let $;t[23]!==d||t[24]!==k?($=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:M}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const L=mt[a.getMonth()];let C;t[26]!==a?(C=a.getFullYear(),t[26]=a,t[27]=C):C=t[27];let w;t[28]!==L||t[29]!==C?(w=i.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[L," ",C]}),t[28]=L,t[29]=C,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=i.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let R;t[36]!==p||t[37]!==l||t[38]!==o?(R=p>0&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(bt,{id:"show-ongoing",checked:l,onCheckedChange:c}),i.jsx(gt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:o("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=o,t[39]=R):R=t[39];let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=i.jsx(at,{}),t[40]=B):B=t[40];let V;t[41]!==o?(V=o("sandbox.variantCalendar.calendarMode"),t[41]=o,t[42]=V):V=t[42];let S;t[43]!==V?(S={value:"calendar",icon:B,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=i.jsx(ht,{}),t[45]=F):F=t[45];let D;t[46]!==o?(D=o("sandbox.variantCalendar.timelineMode"),t[46]=o,t[47]=D):D=t[47];let O;t[48]!==D?(O={value:"timeline",icon:F,label:D},t[48]=D,t[49]=O):O=t[49];let P;t[50]!==S||t[51]!==O?(P=[S,O],t[50]=S,t[51]=O,t[52]=P):P=t[52];let H;t[53]!==P||t[54]!==s?(H=i.jsx(Tt,{value:s,onValueChange:n,options:P}),t[53]=P,t[54]=s,t[55]=H):H=t[55];let z;t[56]!==R||t[57]!==H?(z=i.jsxs("div",{className:"flex items-center gap-4",children:[R,H]}),t[56]=R,t[57]=H,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=i.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?i.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?i.jsx(Jt,{monthStart:a,variants:f,colorMap:g}):i.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let q;return t[69]!==W||t[70]!==G?(q=i.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=q):q=t[71],q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return ct(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,o=r===void 0?0:r,s=X();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=n):n=t[0];let a;return t[1]!==o||t[2]!==s?(a=i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[n,o>0?i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=o,t[2]=s,t[3]=a):a=t[3],a}const et=20,nt=2,st=28,qt=6;function Jt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let n,a,m,l,c;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);n=lt,c="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=m):m=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Qt,0),T=st+E*(et+nt)+8;return i.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return i.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:i.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+nt),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,M=d.variant.openEnd&&x===f.length-1;return i.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:M,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&i.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=n,t[4]=a,t[5]=m,t[6]=l,t[7]=c}else n=t[3],a=t[4],m=t[5],l=t[6],c=t[7];let p;t[9]!==a||t[10]!==m||t[11]!==l?(p=i.jsxs("div",{className:a,children:[m,l]}),t[9]=a,t[10]=m,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==n||t[14]!==c||t[15]!==p?(h=i.jsx(n,{className:c,children:p}),t[13]=n,t[14]=c,t[15]=p,t[16]=h):h=t[16],h}function Qt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return i.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const J=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,n=r,a=U(r,J),m=new Date,l=new Map;for(const w of o){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const c=Array.from(l.entries()).sort(oe),p=a.getTime()-n.getTime(),h=w=>(Math.max(n.getTime(),Math.min(a.getTime(),w.getTime()))-n.getTime())/p*100;let f;t[0]!==n?(f=(w,j)=>U(n,j),t[0]=n,t[1]=f):f=t[1];const g=Array.from({length:J},f),u=m.getTime()>=n.getTime()&&m.getTime()<=a.getTime()?h(m):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=i.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=i.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=i.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let M;t[13]!==x||t[14]!==u?(M=u!==null&&i.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${u} / 100)`},children:i.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=M):M=t[15];const $=c.map(w=>{const[j,R]=w,B=dt(s,j),V=R[0]?.blockLabel??j;return i.jsxs("div",{children:[i.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:i.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),R.map((S,F)=>i.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[i.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[i.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:B.bg}}),i.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),i.jsxs("div",{className:"relative flex-1 h-full",children:[i.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),n.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=D)return null;const P=h(new Date(D)),H=h(new Date(O))-P;return i.jsx(ft,{variant:S,color:B,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${H}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let L;t[16]!==k||t[17]!==M||t[18]!==$?(L=i.jsxs("div",{className:T,children:[k,M,$]}),t[16]=k,t[17]=M,t[18]=$,t[19]=L):L=t[19];let C;return t[20]!==b||t[21]!==L?(C=i.jsx(b,{className:E,children:L}),t[20]=b,t[21]=L,t[22]=C):C=t[22],C}function ee(e,t){return i.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return i.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[mt[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{Hi as VariantCalendar};
1
+ import{c as K,b as X,r as Z,j as i,l as rt,B as tt}from"./index-Dc7hzqoi.js";import{o as ut,O as at,q as ht}from"./agent-icon-CczrFEe7.js";import{i as xt}from"./ChevronRight-USKkhEpL.js";import{L as gt}from"./label-BMxIRiEr.js";import{S as lt}from"./scroll-area-C-wtbVS1.js";import{S as bt}from"./switch-BQFtt3BH.js";import{T as vt,c as yt,a as jt}from"./tooltip-DV2xHesQ.js";import{V as Tt}from"./view-mode-toggle-DvGhnpsV.js";import{M as mt,q as ct,t as Nt,v as _t,w as kt,x as U,W as wt}from"./agent-site-editor-content-DOAcxz0t.js";import"./AlertCircle-CMjsP_Tk.js";import"./Tool01-DouqPjim.js";import"./ArrowUp-Cii1LHW7.js";import"./ArrowLeft-CjYy5Nhj.js";import"./Tool02-CATStXCy.js";import"./ArrowRight-CLncCNat.js";import"./TrendUp01-BFAEMx9E.js";import"./ZoomOut-BPxprY2s.js";import"./Users03-Y0Jco4zL.js";import"./CheckCircle-DHXQFnpK.js";import"./Check-B3RSsr_D.js";import"./ChevronUp-DiYhGG4T.js";import"./ChevronSelectorVertical-DpRb2z1l.js";import"./DotsVertical-CsjwfYzf.js";import"./UserSquare-B2lKdt4w.js";import"./Copy01-nMxlBfeT.js";import"./CreditCard01-CWXVH3ZM.js";import"./Database01-C0YJpjc3.js";import"./MessageCircle01-DBcg2aiD.js";import"./Download01-BRrSA3Yx.js";import"./Printer-CvyxF9Jo.js";import"./Settings02-Cyf85ea0.js";import"./Eye-Dyg2WPG4.js";import"./File02-BvR-HYxK.js";import"./Share07-wC47qn2E.js";import"./GitBranch01-rWb2SJK9.js";import"./Globe01-D6FaaFR2.js";import"./SwitchHorizontal01-DpXsFGyJ.js";import"./HardDrive-DNTPLPT4.js";import"./Image01-CxnjAzbb.js";import"./Key01-CIXwHMRo.js";import"./Link01-C0FvgZZB.js";import"./LinkExternal01-AWlhN5o7.js";import"./Monitor01-Ccs1gh2Z.js";import"./Sun-0Ied-kyZ.js";import"./Package-nTbucmaQ.js";import"./Palette-DSdn1Xis.js";import"./Play-lMuWOObF.js";import"./Plus-CVauOqLT.js";import"./SearchLg-BrrPVuXr.js";import"./SearchMd-C45D2PMI.js";import"./Shield01-CqB4I7qm.js";import"./Stars01-oAh9h5b5.js";import"./Trash01-nl-t4IoV.js";import"./Upload01-B4Fqdkae.js";import"./User01-ClMaVCaJ.js";import"./Users01-BFhxJVhO.js";import"./XCircle-CleKT0Id.js";import"./XClose-BgzK-Dwz.js";import"./X-CFCE4a-Q.js";import"./Zap-B6zkqKWB.js";import"./select-BkKPcZFe.js";import"./index-DWw5wi2G.js";import"./agent-view-guard-DHJpzCVR.js";import"./use-main-panel-tabs-sSRGo66A.js";import"./use-route-default-main-Djaj_cL9.js";import"./use-connection-Ba04fHwa.js";import"./use-mcp-client-e_hCatGm.js";import"./auth-DhzAq_9m.js";import"./use-mcp-tools-g86k4oib.js";import"./use-virtual-mcp-DkK7ErtB.js";import"./types-27TVsPN_.js";import"./utils-CVEq3hMx.js";import"./use-project-scope-DU0-JxYr.js";import"./github-repo-BknN0SVI.js";import"./index-D_X-LIyA.js";import"./chat-context-tZCX_cqt.js";import"./use-panel-navigate-WrD0KEYx.js";import"./thread-route-BBf64Mwk.js";import"./autosend-BberXmli.js";import"./thread-intent-F-sZEflj.js";import"./slugify-CEUa2lfQ.js";import"./hooks-DZOMRp7D.js";import"./backoff-8mStPHYB.js";import"./task-board-DrUf5p-Z.js";import"./schema-1zAO-l7e.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-Dl7pAsQ5.js";import"./use-ai-providers-BnF5Rw_n.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BpuQrfKN.js";import"./use-organization-settings-CKbX2SdA.js";import"./gateway-client-BuiOykcN.js";import"./dialog-llvhXw2o.js";import"./drawer-BIjkXMV3.js";import"./collection-search-J9Bt25gS.js";import"./use-mobile-hIijCK0k.js";import"./use-mcp-prompts-DJRXjL4_.js";import"./index-DiULBiX9.js";import"./form-CSXgIHLz.js";import"./input-DXlaTX4w.js";import"./org-file-open-context-BCUpiY_R.js";import"./input-D_FfvHr0.js";import"./command-palette-store-DK-56E2K.js";import"./chat-draft-BCeqPSxA.js";import"./use-session-runtime-BR1aW1y5.js";import"./usage-stats-vMRDbAUM.js";import"./use-copy-C_ctOeuP.js";import"./markdown-DGWjAeXL.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-CLziM0Ww.js";import"./use-deco-credits-BGBshlLi.js";import"./toggle-group-BiU_UDOq.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-Df7K1DCF.js";import"./decopilot-BvepxP_-.js";import"./checkbox-jLf7fBuW.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-C9HiP4eS.js";import"./download-app-dialog-D_4eQbbs.js";import"./popover-yk_ePqAA.js";import"./index-Bb-Re5q8.js";import"./input-uIV5S_EX.js";import"./hooks-BoX5BC-f.js";import"./use-org-fs-Du-ErRPs.js";import"./dropdown-menu-C5iafa8S.js";import"./question-004-sINsf4GQ.js";import"./use-members-DPYHJDe2.js";import"./use-org-auth-client-DbPU3bA-.js";import"./feature-paywall-DEy2mpV2.js";import"./plan-ladder-B2pv9Y73.js";import"./add-connection-dialog-DZjTm9W3.js";import"./extract-connection-data-Dbm_cKaX.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-DD0omVHZ.js";import"./connection-card-fcMCwbTh.js";import"./use-registry-connections-SLFMHpqj.js";import"./useInfiniteQuery-CspLjV7h.js";import"./infiniteQueryObserver-CjWlcBHD.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./integration-icon-BeEdjsn9.js";import"./textarea-BU6xemAP.js";import"./connection-form-helpers-CHlcdgAK.js";import"./authenticate-and-persist-oauth-DkJ4g-X5.js";import"./mcp-oauth-C4khbNJJ.js";import"./collection-tabs-CrXIJeNf.js";import"./badge-Bu51Hlti.js";import"./use-infinite-scroll-PhBGPm8H.js";import"./useSuspenseInfiniteQuery-BiQYAhJn.js";import"./pair-B46EBBjF.js";import"./collapsible-CTgXdVQa.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BTjC7Gse.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-Ce0aCJuX.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-CyiiFkRG.js";import"./command-B-XD29Nx.js";import"./index-BD213WLU.js";import"./project-icon-MWmzrrm8.js";import"./required-auth-layout-RoMNnMPO.js";import"./use-org-sso-BvfIL0yq.js";import"./sheet-i72Qx7sL.js";import"./use-navigate-to-agent-C8pu0B4z.js";import"./use-thread-outputs-Dq-RN0P_.js";import"./file-type-icon-C9Qn36v4.js";import"./sandbox-lifecycle-context-C7VKOJoV.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata-Dt9l5S_a.js";import"./use-project-native-view-presence-DWzPH-Sc.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-DYGSdjth.js";import"./site-slug-uya6Wp4-.js";import"./virtual-mcp-ldxphi5G.js";import"./feature-gate-Bp7Cydio.js";import"./alert-dialog-BI-B_8hq.js";import"./runnable-block-editor-xmOnaiFL.js";import"./decofile-api-BNWbEMR6.js";import"./utils-DsvmRe8M.js";import"./claim-phase-copy-0btUuJoC.js";import"./monaco-editor-CMRYkmyb.js";import"./editor-D4Ls62vg.js";import"./calendar-DIQx67oO.js";import"./rich-text-link-control-CHsxXHIo.js";import"./safe-image-url-D5z803Ot.js";import"./search-input-Pobww52G.js";import"./use-debounced-value-B9nG3bW5.js";import"./asset-utils-DhbLEVKo.js";import"./sandbox-git-api-CMdpE2TE.js";import"./mustache-CPZS2ebG.js";import"./empty-state-CyICQznD.js";import"./github-icon-huXDOAgf.js";import"./repository-import-picker-DhVniDI2.js";import"./repository-picker-BkoSI-jm.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Mt=new Date(-864e13),Ct=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Lt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Rt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,o=typeof t=="string",s=typeof r=="string";if(!o&&!s)return null;const n=o?new Date(t):Mt,a=s?new Date(r):Ct;return Number.isNaN(n.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=n.getTime()?null:{start:n,end:a,openStart:!o,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const o=Rt(e);o&&t.push(o);return}if(St.has(r)){const o=e.matchers;if(Array.isArray(o))for(const s of o)pt(s,t)}}}function Dt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Ot(e){if(typeof e=="string"){const m=e.trim();if(m.length===0)return null;try{const c=new URL(m).pathname.split("/").filter(Boolean),p=c[c.length-1];if(p)return decodeURIComponent(p)}catch{}return m.length>80?`${m.slice(0,77)}…`:m}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,n=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const m of n)if(typeof m=="string"&&m.trim().length>0)return m.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let r=0;r<e.length;r++){const o=e[r];typeof o=="number"?t.length>0?t[t.length-1]+=`[${o}]`:t.push(`[${o}]`):t.push(o)}return t.join(" · ")}function Q(e,t,r,o,s){if(Dt(e)){const n=e.variants,a=e.__resolveType,m=$t.test(a)?"":Pt(o);n.forEach((l,c)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(m||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:m,variantIndex:c,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<n.length;l++){const c=n[l];c&&typeof c=="object"&&Q(c.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let n=0;n<e.length;n++)Q(e[n],t,r,[...o,n],s);return}if(e&&typeof e=="object")for(const[n,a]of Object.entries(e))n!=="__resolveType"&&Q(a,t,r,[...o,n],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))Q(o,r,Lt(r),[],t);return t.sort((r,o)=>r.start.getTime()-o.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((o,s)=>{const n=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${n})`,text:"white",border:`oklch(0.50 0.14 ${n})`})}),r}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Ht}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Bt(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):ot.format(e.start),o=e.openEnd?t("sandbox.variantCalendar.ongoing"):ot.format(e.end);return`${r} → ${o}`}function Ft(e){const t=K.c(18),{variant:r}=e,o=X();let s;t[0]!==r.blockLabel?(s=i.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let n;t[2]!==r.innerPath?(n=r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=n):n=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let m;t[8]!==o||t[9]!==r?(m=Bt(r,o),t[8]=o,t[9]=r,t[10]=m):m=t[10];let l;t[11]!==m?(l=i.jsx("div",{className:"mt-1",children:m}),t[11]=m,t[12]=l):l=t[12];let c;return t[13]!==s||t[14]!==n||t[15]!==a||t[16]!==l?(c=i.jsx(jt,{children:i.jsxs("div",{className:"text-xs",children:[s,n,a,l]})}),t[13]=s,t[14]=n,t[15]=a,t[16]=l,t[17]=c):c=t[17],c}const it=16;function zt(e,t){const r=e?"transparent":"#000 0",o=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${it}px, #000 calc(100% - ${it}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:n,fadeStart:a,fadeEnd:m}=e,l=a===void 0?!1:a,c=m===void 0?!1:m;let p;t[0]!==c||t[1]!==l?(p=zt(l,c),t[0]=c,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==c?(g=c&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=c,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==o.bg||t[10]!==o.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:o.bg,color:o.text,borderRadius:4,...f,...g,...u,...s},t[9]=o.bg,t[10]=o.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==n?(b=i.jsx("span",{className:"truncate",children:n}),t[16]=n,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=i.jsx(vt,{asChild:!0,children:i.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=i.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=i.jsxs(yt,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function Hi(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,n]=Z.useState("calendar"),[a,m]=Z.useState(Kt),[l,c]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const I=It(r);p=I.filter(Ut).length,f=l?I:I.filter(Gt),h=Vt(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>m(ct(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>m(I=>s==="calendar"?U(I,-1):U(I,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>m(I=>s==="calendar"?U(I,1):U(I,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==o?(v=o("sandbox.variantCalendar.today"),t[10]=o,t[11]=v):v=t[11];let y;t[12]!==v?(y=i.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==o?(N=o("sandbox.variantCalendar.previous"),t[14]=o,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=i.jsx(ut,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==o?(k=o("sandbox.variantCalendar.next"),t[20]=o,t[21]=k):k=t[21];let M;t[22]===Symbol.for("react.memo_cache_sentinel")?(M=i.jsx(xt,{size:16}),t[22]=M):M=t[22];let $;t[23]!==d||t[24]!==k?($=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:M}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const L=mt[a.getMonth()];let C;t[26]!==a?(C=a.getFullYear(),t[26]=a,t[27]=C):C=t[27];let w;t[28]!==L||t[29]!==C?(w=i.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[L," ",C]}),t[28]=L,t[29]=C,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=i.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let R;t[36]!==p||t[37]!==l||t[38]!==o?(R=p>0&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(bt,{id:"show-ongoing",checked:l,onCheckedChange:c}),i.jsx(gt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:o("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=o,t[39]=R):R=t[39];let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=i.jsx(at,{}),t[40]=B):B=t[40];let V;t[41]!==o?(V=o("sandbox.variantCalendar.calendarMode"),t[41]=o,t[42]=V):V=t[42];let S;t[43]!==V?(S={value:"calendar",icon:B,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=i.jsx(ht,{}),t[45]=F):F=t[45];let D;t[46]!==o?(D=o("sandbox.variantCalendar.timelineMode"),t[46]=o,t[47]=D):D=t[47];let O;t[48]!==D?(O={value:"timeline",icon:F,label:D},t[48]=D,t[49]=O):O=t[49];let P;t[50]!==S||t[51]!==O?(P=[S,O],t[50]=S,t[51]=O,t[52]=P):P=t[52];let H;t[53]!==P||t[54]!==s?(H=i.jsx(Tt,{value:s,onValueChange:n,options:P}),t[53]=P,t[54]=s,t[55]=H):H=t[55];let z;t[56]!==R||t[57]!==H?(z=i.jsxs("div",{className:"flex items-center gap-4",children:[R,H]}),t[56]=R,t[57]=H,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=i.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?i.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?i.jsx(Jt,{monthStart:a,variants:f,colorMap:g}):i.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let q;return t[69]!==W||t[70]!==G?(q=i.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=q):q=t[71],q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return ct(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,o=r===void 0?0:r,s=X();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=n):n=t[0];let a;return t[1]!==o||t[2]!==s?(a=i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[n,o>0?i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=o,t[2]=s,t[3]=a):a=t[3],a}const et=20,nt=2,st=28,qt=6;function Jt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let n,a,m,l,c;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);n=lt,c="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=m):m=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Qt,0),T=st+E*(et+nt)+8;return i.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return i.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:i.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+nt),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,M=d.variant.openEnd&&x===f.length-1;return i.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:M,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&i.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=n,t[4]=a,t[5]=m,t[6]=l,t[7]=c}else n=t[3],a=t[4],m=t[5],l=t[6],c=t[7];let p;t[9]!==a||t[10]!==m||t[11]!==l?(p=i.jsxs("div",{className:a,children:[m,l]}),t[9]=a,t[10]=m,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==n||t[14]!==c||t[15]!==p?(h=i.jsx(n,{className:c,children:p}),t[13]=n,t[14]=c,t[15]=p,t[16]=h):h=t[16],h}function Qt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return i.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const J=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,n=r,a=U(r,J),m=new Date,l=new Map;for(const w of o){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const c=Array.from(l.entries()).sort(oe),p=a.getTime()-n.getTime(),h=w=>(Math.max(n.getTime(),Math.min(a.getTime(),w.getTime()))-n.getTime())/p*100;let f;t[0]!==n?(f=(w,j)=>U(n,j),t[0]=n,t[1]=f):f=t[1];const g=Array.from({length:J},f),u=m.getTime()>=n.getTime()&&m.getTime()<=a.getTime()?h(m):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=i.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=i.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=i.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let M;t[13]!==x||t[14]!==u?(M=u!==null&&i.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${u} / 100)`},children:i.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=M):M=t[15];const $=c.map(w=>{const[j,R]=w,B=dt(s,j),V=R[0]?.blockLabel??j;return i.jsxs("div",{children:[i.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:i.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),R.map((S,F)=>i.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[i.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[i.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:B.bg}}),i.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),i.jsxs("div",{className:"relative flex-1 h-full",children:[i.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),n.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=D)return null;const P=h(new Date(D)),H=h(new Date(O))-P;return i.jsx(ft,{variant:S,color:B,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${H}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let L;t[16]!==k||t[17]!==M||t[18]!==$?(L=i.jsxs("div",{className:T,children:[k,M,$]}),t[16]=k,t[17]=M,t[18]=$,t[19]=L):L=t[19];let C;return t[20]!==b||t[21]!==L?(C=i.jsx(b,{className:E,children:L}),t[20]=b,t[21]=L,t[22]=C):C=t[22],C}function ee(e,t){return i.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return i.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[mt[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{Hi as VariantCalendar};
@@ -1 +1 @@
1
- import{F as f,G as $}from"./runnable-block-editor-CCXhy-vO.js";const l="x-deco-matchers-override";function h({pageKey:a,prefix:r,variants:t,selectedIndex:n,decofile:i,meta:s}){if(!a||n<0||n>=t.length)return[];const o=[];for(let e=0;e<=n;e++){const u=t[e];if(!u)continue;const c=u.rule,v=e===n?"1":"0",d=(f(c,i,s)?$(c,i,s):null)??`${a}@${r}.${e}.rule`;o.push(`${d}=${v}`)}return o}function B(a,r,t,n){return!r.multivariate||r.variants.length<=1?[]:h({pageKey:a,prefix:"sections.variants",variants:r.variants,selectedIndex:r.index,decofile:t,meta:n})}function P({pageKey:a,page:r,sectionIndex:t,sectionLazy:n,mvObj:i,selectedVariantIndex:s,decofile:o,meta:e}){if(t<0)return[];const c=`${r.multivariate?`sections.variants.${r.index}.value`:"sections"}.${t}${n?".section":""}.variants`,v=Array.isArray(i.variants)?i.variants:[];return h({pageKey:a,prefix:c,variants:v,selectedIndex:s,decofile:o,meta:e})}function x(a,r){if(r.length===0)return a;try{const t=new URL(a,"http://local");t.searchParams.delete(l);for(const n of r)t.searchParams.append(l,n);return a.startsWith("http")?t.toString():`${t.pathname}${t.search}${t.hash}`}catch{return a}}export{P as a,B as b,x as w};
1
+ import{F as f,G as $}from"./runnable-block-editor-xmOnaiFL.js";const l="x-deco-matchers-override";function h({pageKey:a,prefix:r,variants:t,selectedIndex:n,decofile:i,meta:s}){if(!a||n<0||n>=t.length)return[];const o=[];for(let e=0;e<=n;e++){const u=t[e];if(!u)continue;const c=u.rule,v=e===n?"1":"0",d=(f(c,i,s)?$(c,i,s):null)??`${a}@${r}.${e}.rule`;o.push(`${d}=${v}`)}return o}function B(a,r,t,n){return!r.multivariate||r.variants.length<=1?[]:h({pageKey:a,prefix:"sections.variants",variants:r.variants,selectedIndex:r.index,decofile:t,meta:n})}function P({pageKey:a,page:r,sectionIndex:t,sectionLazy:n,mvObj:i,selectedVariantIndex:s,decofile:o,meta:e}){if(t<0)return[];const c=`${r.multivariate?`sections.variants.${r.index}.value`:"sections"}.${t}${n?".section":""}.variants`,v=Array.isArray(i.variants)?i.variants:[];return h({pageKey:a,prefix:c,variants:v,selectedIndex:s,decofile:o,meta:e})}function x(a,r){if(r.length===0)return a;try{const t=new URL(a,"http://local");t.searchParams.delete(l);for(const n of r)t.searchParams.append(l,n);return a.startsWith("http")?t.toString():`${t.pathname}${t.search}${t.hash}`}catch{return a}}export{P as a,B as b,x as w};
@@ -1 +1 @@
1
- import{c as $,r as T,l as f,j as i}from"./index-z4bKt11m.js";import{c as k,T as I,a as P}from"./tooltip-BuKeolDX.js";const M={sm:{button:"size-7",buttonWithLabel:"h-7",icon:"size-4"},md:{button:"size-9",buttonWithLabel:"h-9",icon:"size-5"},lg:{button:"size-12",buttonWithLabel:"h-12",icon:"size-6"}};function B(E){const t=$.c(27),{value:s,onValueChange:y,options:o,size:C,fullWidth:L,className:z}=E,_=C===void 0?"sm":C,m=L===void 0?!1:L;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const R=T.useRef(h);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={left:0,width:0,opacity:0},t[1]=x):x=t[1];const[d,S]=T.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),b=R.current[e];b&&S({left:b.offsetLeft,width:b.offsetWidth,opacity:1})},p=[s,o],t[2]=o,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),T.useEffect(g,p);const l=M[_];let n;t[6]!==z?(n=f("relative flex gap-0 bg-muted rounded-lg",z),t[6]=z,t[7]=n):n=t[7];let a;t[8]!==l||t[9]!==m||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,b)=>{const j=i.jsxs("button",{ref:V=>{R.current[b]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label,className:f("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",m?"flex-1 h-12 px-4":e.label?f(l.buttonWithLabel,"px-3"):l.button),children:[i.jsx("span",{className:f("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",l.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:f("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=l,t[9]=m,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=m?"h-12":l.button;let r;t[14]!==w?(r=f("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=r):r=t[15];const W=`${d.left}px`,N=`${d.width}px`;let c;t[16]!==d.opacity||t[17]!==W||t[18]!==N?(c={left:W,width:N,opacity:d.opacity},t[16]=d.opacity,t[17]=W,t[18]=N,t[19]=c):c=t[19];let u;t[20]!==r||t[21]!==c?(u=i.jsx("div",{className:r,style:c}),t[20]=r,t[21]=c,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==n||t[25]!==a?(v=i.jsxs("div",{className:n,children:[a,u]}),t[23]=u,t[24]=n,t[25]=a,t[26]=v):v=t[26],v}export{B as V};
1
+ import{c as $,r as T,l as f,j as i}from"./index-Dc7hzqoi.js";import{c as k,T as I,a as P}from"./tooltip-DV2xHesQ.js";const M={sm:{button:"size-7",buttonWithLabel:"h-7",icon:"size-4"},md:{button:"size-9",buttonWithLabel:"h-9",icon:"size-5"},lg:{button:"size-12",buttonWithLabel:"h-12",icon:"size-6"}};function B(E){const t=$.c(27),{value:s,onValueChange:y,options:o,size:C,fullWidth:L,className:z}=E,_=C===void 0?"sm":C,m=L===void 0?!1:L;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const R=T.useRef(h);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={left:0,width:0,opacity:0},t[1]=x):x=t[1];const[d,S]=T.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),b=R.current[e];b&&S({left:b.offsetLeft,width:b.offsetWidth,opacity:1})},p=[s,o],t[2]=o,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),T.useEffect(g,p);const l=M[_];let n;t[6]!==z?(n=f("relative flex gap-0 bg-muted rounded-lg",z),t[6]=z,t[7]=n):n=t[7];let a;t[8]!==l||t[9]!==m||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,b)=>{const j=i.jsxs("button",{ref:V=>{R.current[b]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label,className:f("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",m?"flex-1 h-12 px-4":e.label?f(l.buttonWithLabel,"px-3"):l.button),children:[i.jsx("span",{className:f("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",l.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:f("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=l,t[9]=m,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=m?"h-12":l.button;let r;t[14]!==w?(r=f("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=r):r=t[15];const W=`${d.left}px`,N=`${d.width}px`;let c;t[16]!==d.opacity||t[17]!==W||t[18]!==N?(c={left:W,width:N,opacity:d.opacity},t[16]=d.opacity,t[17]=W,t[18]=N,t[19]=c):c=t[19];let u;t[20]!==r||t[21]!==c?(u=i.jsx("div",{className:r,style:c}),t[20]=r,t[21]=c,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==n||t[25]!==a?(v=i.jsxs("div",{className:n,children:[a,u]}),t[23]=u,t[24]=n,t[25]=a,t[26]=v):v=t[26],v}export{B as V};
@@ -1 +1 @@
1
- import{aa as a,ab as e,at as l,bq as t,bp as s,bs as o,cy as c,br as d,dI as A,cz as _,bt as v}from"./index-z4bKt11m.js";const w=a({connection_id:e().describe("Connection ID"),selected_tools:t(e()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:t(e()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:t(e()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),u=500,y=200,m=200,R=200,E=20,k=50,U=100,P=20,T=100,C=50,D=100,N=50,O=8192,S=w.extend({selected_tools:t(e()).max(u).nullable().optional().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:t(e()).max(u).nullable().optional().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:t(e()).max(u).nullable().optional().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),L=a({connectionId:e(),toolName:e(),label:e(),icon:e().nullable().optional()}),V=a({id:e().describe("Stable id; used as React key and ?tab= value"),title:e().describe("Tab label"),icon:e().optional().describe("Optional lucide icon name"),view:a({type:c("ext-app"),appId:e(),args:d(e(),v()).optional()})}),x=o(["overview","reports","board","site-editor","assets","hosting","e2e","analytics","cdn","automations","experiments"]),ce=o(["on","off"]),X=new Map([["manual","on"],["auto","on"]]),B=o(["on","off","manual","auto"]);function F(n){if(!n)return null;const i=X.get(n);return i||(n==="on"||n==="off"?n:null)}const H=a({defaultMainView:a({type:e(),id:e().optional(),toolName:e().optional()}).nullable().optional(),chatDefaultOpen:s().nullable().optional(),cmsDefaultOpen:s().nullable().optional(),cms:B.nullable().optional().describe("How this agent offers content editing. Absent means on; the retired `manual` / `auto` read as on too."),sidebarViews:t(x).max(10).nullable().optional().describe("Deprecated layout-scoped sidebar selections. Read only as a fallback when metadata.sidebarViews is absent."),tabs:t(V).max(P).optional()});function de(n){return F(n?.cms)??"on"}function pe(n,i){const r=i==="off"&&n?.defaultMainView?.type==="content";return{...n,cms:i,cmsDefaultOpen:null,...r?{defaultMainView:{type:"site-editor"}}:{}}}const f=a({tileId:e().optional(),connectionId:e().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:e().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:e().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:d(e(),v()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:l().int().positive().optional(),maxHeight:l().int().positive().optional()}),G=a({banner:e().nullable().optional(),bannerColor:e().nullable().optional(),icon:e().nullable().optional(),themeColor:e().nullable().optional(),pinnedViews:t(L).max(U).nullable().optional(),layout:H.nullable().optional(),homeTile:f.nullable().optional(),homeTiles:t(f).max(E).nullable().optional(),homePrompts:t(e()).max(k).nullable().optional()}),j=/^[A-Za-z_][A-Za-z0-9_]*$/,g=e().min(1).regex(j,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),z=_("kind",[a({key:g,kind:c("literal"),value:e().max(O)}),a({key:g,kind:c("secret"),secretId:e().min(1)})]),q=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/,K=a({host:e().min(1).regex(q).describe("Submodule host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:e().min(1).describe("Vault secret id holding the PAT used to fetch this host.")}),W=a({selected:e().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:e().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:e().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:t(z).max(D).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that Studio resolves via the credential vault before posting /_sandbox/config."),submoduleCredentials:t(K).max(N).nullable().optional().describe("Git submodule credentials injected on every SANDBOX_START. Each entry maps a host to a vault secret (PAT) that Studio resolves before posting /_sandbox/config; the daemon uses it to authenticate `git submodule update` for submodules on that host.")}),Z=a({url:e().describe("GitHub repository URL"),owner:e().describe("Repository owner"),name:e().describe("Repository name"),installationId:l().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:e().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials."),repositoryId:e().optional().describe("First-class repository (REPOSITORY_LINK) backing this binding. When set, credentials come from the repository's git provider account rather than connectionId.")}),Y=o(["agent-sandbox","local-api"]),$={sandboxHandle:e().describe("Provider-specific handle"),previewUrl:e().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:e().nullable().optional().describe("Direct sandbox API URL for runtimes that expose one. Equal to previewUrl for local-api; null/absent for AgentSandbox, which routes control traffic through hosted Studio."),createdAt:l().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:a({packageManager:e().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:e().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:e().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},M=a($);function be(n){if(!n||typeof n!="object"||Array.isArray(n))return{};const i=n,r={};for(const[p,b]of Object.entries(i))if(!(!b||typeof b!="object")&&!(p!=="agent-sandbox"&&p!=="local-api"))try{r[p]=M.parse(b)}catch{}return r}const J=d(e().describe("userId"),d(e().describe("branch"),A(Y,M))),Q=a({id:e().describe("Stable identifier for this knowledge file"),name:e().describe("File name shown in the UI"),kind:o(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:e().describe("Org filesystem (Library) volume the file lives in"),path:e().describe("Path within the volume"),url:e().describe("Same-origin URL to read the file (display/download)"),contentType:e().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:l().nullable().optional().describe("File size in bytes"),addedAt:e().describe("ISO timestamp when the file was attached")}),ee=t(Q).max(T).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),te=o(["smart","code-review","open"]),ae=te.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),ne=s().nullable().optional().describe("Enable Fast Preview (sandbox-less): render the draft instantly on the preview server's own page via a ?__draft pointer, with reads/writes served by the decofile API against GitHub. Requires previewServerUrl (or legacy productionUrl) to be set to take effect."),ie=s().nullable().optional().describe("EXPERIMENTAL: with Fast Preview on, refresh content edits via an in-place /live/previews render (no commit, no reload) instead of a commit + re-navigation. Deco-runtime preview targets only. Requires fastPreview."),oe=e().nullable().optional().describe("Preview server URL — the deployment the CMS preview renders against (often the live site, e.g. https://acme.com). Painted in the preview iframe, and the render target for Fast Preview drafts. Supersedes the legacy productionUrl key."),se=a({branch:e().describe("Git branch backing this release"),name:e().describe('User-facing name, e.g. "Black Friday 2026"'),color:e().describe("Dot color token shown in the version switcher"),createdBy:e().optional().describe("User ID who created the release"),createdAt:e().optional().describe("ISO 8601 creation timestamp")}),le=t(se).max(C).nullable().optional().describe("Curated list of named, branch-backed releases shown in the version switcher. The base branch ('No ar') is derived, not stored here."),h={instructions:e().nullable().optional().describe("Instructions also used as system prompt"),enabled_plugins:t(e()).max(m).nullable().optional().describe("List of enabled plugin IDs"),subAgents:t(e()).max(R).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:e().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:G.nullable().optional().describe("UI customization settings"),sidebarViews:t(x).max(10).nullable().optional().describe("Project views selected for the sidebar. Interpret as an exact list when sidebarViewsVersion is 1; unversioned values use legacy native-only semantics. Runtime presence gates still apply."),sidebarViewsVersion:c(1).optional().describe("Version 1 marks metadata.sidebarViews as an exact list that can disable legacy default rows."),githubRepo:Z.nullable().optional().describe("Linked GitHub repository"),runtime:W.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),knowledge:ee,siteSlug:e().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:ae,previewServerUrl:oe,productionUrl:e().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:s().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:ne,releases:le,fastPreviewInPlace:ie},ue=a({id:e().describe("Unique identifier"),title:e().describe("Human-readable name"),description:e().nullable().describe("Description"),icon:e().nullable().describe("Icon URL"),created_at:e().describe("Creation timestamp"),updated_at:e().describe("Last update timestamp"),created_by:e().describe("User ID who created this item"),updated_by:e().optional().describe("User ID who last updated this item"),organization_id:e().describe("Organization ID this item belongs to"),status:o(["active","inactive"]).describe("Current status"),pinned:s().describe("Whether this space is pinned to the sidebar"),metadata:a(h).extend({instructions:e().nullable().describe("Instructions also used as system prompt"),sandboxMap:J.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }")}).loose().describe("Metadata"),connections:t(w).describe("Connections with their selected tools, resources, and prompts")}),I=a({title:e().min(1).max(120).describe("Short label shown on the chip"),description:e().max(280).optional().describe("One-line subtitle shown under the title"),text:e().min(1).max(4e3).describe("The message sent to the agent when the prompt is clicked")});a({title:e().min(1).max(255).describe("Name for the virtual MCP"),description:e().max(500).nullable().optional().describe("Optional description"),icon:e().nullish().describe("Optional icon URL"),status:o(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:s().optional().default(!1).describe("Pin to sidebar"),metadata:a(h).extend({enabled_plugins:t(e()).max(m).nullable().optional().describe("List of enabled plugin IDs")}).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:t(S).max(y).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:t(I).max(20).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});a({title:e().min(1).max(255).optional().describe("New name"),description:e().max(500).nullable().optional().describe("New description (null to clear)"),icon:e().nullish().describe("New icon URL"),status:o(["active","inactive"]).optional().describe("New status"),pinned:s().optional().describe("Pin/unpin from sidebar"),metadata:a(h).extend({enabled_plugins:t(e()).max(m).nullable().optional().describe("List of enabled plugin IDs")}).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:t(S).max(y).optional().describe("New connections (replaces existing)"),prompts:t(I).max(20).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});export{ce as C,j as E,q as S,ue as V,be as p,de as r,pe as w};
1
+ import{aa as a,ab as e,at as l,bq as t,bp as s,bs as o,cy as c,br as d,dI as A,cz as _,bt as v}from"./index-Dc7hzqoi.js";const w=a({connection_id:e().describe("Connection ID"),selected_tools:t(e()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:t(e()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:t(e()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),u=500,y=200,m=200,R=200,E=20,k=50,U=100,P=20,T=100,C=50,D=100,N=50,O=8192,S=w.extend({selected_tools:t(e()).max(u).nullable().optional().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:t(e()).max(u).nullable().optional().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:t(e()).max(u).nullable().optional().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),L=a({connectionId:e(),toolName:e(),label:e(),icon:e().nullable().optional()}),V=a({id:e().describe("Stable id; used as React key and ?tab= value"),title:e().describe("Tab label"),icon:e().optional().describe("Optional lucide icon name"),view:a({type:c("ext-app"),appId:e(),args:d(e(),v()).optional()})}),x=o(["overview","reports","board","site-editor","assets","hosting","e2e","analytics","cdn","automations","experiments"]),ce=o(["on","off"]),X=new Map([["manual","on"],["auto","on"]]),B=o(["on","off","manual","auto"]);function F(n){if(!n)return null;const i=X.get(n);return i||(n==="on"||n==="off"?n:null)}const H=a({defaultMainView:a({type:e(),id:e().optional(),toolName:e().optional()}).nullable().optional(),chatDefaultOpen:s().nullable().optional(),cmsDefaultOpen:s().nullable().optional(),cms:B.nullable().optional().describe("How this agent offers content editing. Absent means on; the retired `manual` / `auto` read as on too."),sidebarViews:t(x).max(10).nullable().optional().describe("Deprecated layout-scoped sidebar selections. Read only as a fallback when metadata.sidebarViews is absent."),tabs:t(V).max(P).optional()});function de(n){return F(n?.cms)??"on"}function pe(n,i){const r=i==="off"&&n?.defaultMainView?.type==="content";return{...n,cms:i,cmsDefaultOpen:null,...r?{defaultMainView:{type:"site-editor"}}:{}}}const f=a({tileId:e().optional(),connectionId:e().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:e().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:e().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:d(e(),v()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:l().int().positive().optional(),maxHeight:l().int().positive().optional()}),G=a({banner:e().nullable().optional(),bannerColor:e().nullable().optional(),icon:e().nullable().optional(),themeColor:e().nullable().optional(),pinnedViews:t(L).max(U).nullable().optional(),layout:H.nullable().optional(),homeTile:f.nullable().optional(),homeTiles:t(f).max(E).nullable().optional(),homePrompts:t(e()).max(k).nullable().optional()}),j=/^[A-Za-z_][A-Za-z0-9_]*$/,g=e().min(1).regex(j,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),z=_("kind",[a({key:g,kind:c("literal"),value:e().max(O)}),a({key:g,kind:c("secret"),secretId:e().min(1)})]),q=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/,K=a({host:e().min(1).regex(q).describe("Submodule host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:e().min(1).describe("Vault secret id holding the PAT used to fetch this host.")}),W=a({selected:e().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:e().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:e().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:t(z).max(D).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that Studio resolves via the credential vault before posting /_sandbox/config."),submoduleCredentials:t(K).max(N).nullable().optional().describe("Git submodule credentials injected on every SANDBOX_START. Each entry maps a host to a vault secret (PAT) that Studio resolves before posting /_sandbox/config; the daemon uses it to authenticate `git submodule update` for submodules on that host.")}),Z=a({url:e().describe("GitHub repository URL"),owner:e().describe("Repository owner"),name:e().describe("Repository name"),installationId:l().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:e().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials."),repositoryId:e().optional().describe("First-class repository (REPOSITORY_LINK) backing this binding. When set, credentials come from the repository's git provider account rather than connectionId.")}),Y=o(["agent-sandbox","local-api"]),$={sandboxHandle:e().describe("Provider-specific handle"),previewUrl:e().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:e().nullable().optional().describe("Direct sandbox API URL for runtimes that expose one. Equal to previewUrl for local-api; null/absent for AgentSandbox, which routes control traffic through hosted Studio."),createdAt:l().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:a({packageManager:e().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:e().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:e().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},M=a($);function be(n){if(!n||typeof n!="object"||Array.isArray(n))return{};const i=n,r={};for(const[p,b]of Object.entries(i))if(!(!b||typeof b!="object")&&!(p!=="agent-sandbox"&&p!=="local-api"))try{r[p]=M.parse(b)}catch{}return r}const J=d(e().describe("userId"),d(e().describe("branch"),A(Y,M))),Q=a({id:e().describe("Stable identifier for this knowledge file"),name:e().describe("File name shown in the UI"),kind:o(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:e().describe("Org filesystem (Library) volume the file lives in"),path:e().describe("Path within the volume"),url:e().describe("Same-origin URL to read the file (display/download)"),contentType:e().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:l().nullable().optional().describe("File size in bytes"),addedAt:e().describe("ISO timestamp when the file was attached")}),ee=t(Q).max(T).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),te=o(["smart","code-review","open"]),ae=te.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),ne=s().nullable().optional().describe("Enable Fast Preview (sandbox-less): render the draft instantly on the preview server's own page via a ?__draft pointer, with reads/writes served by the decofile API against GitHub. Requires previewServerUrl (or legacy productionUrl) to be set to take effect."),ie=s().nullable().optional().describe("EXPERIMENTAL: with Fast Preview on, refresh content edits via an in-place /live/previews render (no commit, no reload) instead of a commit + re-navigation. Deco-runtime preview targets only. Requires fastPreview."),oe=e().nullable().optional().describe("Preview server URL — the deployment the CMS preview renders against (often the live site, e.g. https://acme.com). Painted in the preview iframe, and the render target for Fast Preview drafts. Supersedes the legacy productionUrl key."),se=a({branch:e().describe("Git branch backing this release"),name:e().describe('User-facing name, e.g. "Black Friday 2026"'),color:e().describe("Dot color token shown in the version switcher"),createdBy:e().optional().describe("User ID who created the release"),createdAt:e().optional().describe("ISO 8601 creation timestamp")}),le=t(se).max(C).nullable().optional().describe("Curated list of named, branch-backed releases shown in the version switcher. The base branch ('No ar') is derived, not stored here."),h={instructions:e().nullable().optional().describe("Instructions also used as system prompt"),enabled_plugins:t(e()).max(m).nullable().optional().describe("List of enabled plugin IDs"),subAgents:t(e()).max(R).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:e().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:G.nullable().optional().describe("UI customization settings"),sidebarViews:t(x).max(10).nullable().optional().describe("Project views selected for the sidebar. Interpret as an exact list when sidebarViewsVersion is 1; unversioned values use legacy native-only semantics. Runtime presence gates still apply."),sidebarViewsVersion:c(1).optional().describe("Version 1 marks metadata.sidebarViews as an exact list that can disable legacy default rows."),githubRepo:Z.nullable().optional().describe("Linked GitHub repository"),runtime:W.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),knowledge:ee,siteSlug:e().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:ae,previewServerUrl:oe,productionUrl:e().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:s().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:ne,releases:le,fastPreviewInPlace:ie},ue=a({id:e().describe("Unique identifier"),title:e().describe("Human-readable name"),description:e().nullable().describe("Description"),icon:e().nullable().describe("Icon URL"),created_at:e().describe("Creation timestamp"),updated_at:e().describe("Last update timestamp"),created_by:e().describe("User ID who created this item"),updated_by:e().optional().describe("User ID who last updated this item"),organization_id:e().describe("Organization ID this item belongs to"),status:o(["active","inactive"]).describe("Current status"),pinned:s().describe("Whether this space is pinned to the sidebar"),metadata:a(h).extend({instructions:e().nullable().describe("Instructions also used as system prompt"),sandboxMap:J.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }")}).loose().describe("Metadata"),connections:t(w).describe("Connections with their selected tools, resources, and prompts")}),I=a({title:e().min(1).max(120).describe("Short label shown on the chip"),description:e().max(280).optional().describe("One-line subtitle shown under the title"),text:e().min(1).max(4e3).describe("The message sent to the agent when the prompt is clicked")});a({title:e().min(1).max(255).describe("Name for the virtual MCP"),description:e().max(500).nullable().optional().describe("Optional description"),icon:e().nullish().describe("Optional icon URL"),status:o(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:s().optional().default(!1).describe("Pin to sidebar"),metadata:a(h).extend({enabled_plugins:t(e()).max(m).nullable().optional().describe("List of enabled plugin IDs")}).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:t(S).max(y).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:t(I).max(20).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});a({title:e().min(1).max(255).optional().describe("New name"),description:e().max(500).nullable().optional().describe("New description (null to clear)"),icon:e().nullish().describe("New icon URL"),status:o(["active","inactive"]).optional().describe("New status"),pinned:s().optional().describe("Pin/unpin from sidebar"),metadata:a(h).extend({enabled_plugins:t(e()).max(m).nullable().optional().describe("List of enabled plugin IDs")}).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:t(S).max(y).optional().describe("New connections (replaces existing)"),prompts:t(I).max(20).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});export{ce as C,j as E,q as S,ue as V,be as p,de as r,pe as w};
@@ -50,7 +50,7 @@
50
50
  <meta name="twitter:description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
51
51
  <meta name="twitter:image" content="/og-image.png" />
52
52
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
53
- <script type="module" crossorigin src="/assets/index-z4bKt11m.js"></script>
53
+ <script type="module" crossorigin src="/assets/index-Dc7hzqoi.js"></script>
54
54
  <link rel="stylesheet" crossorigin href="/assets/index-CpNTsElB.css">
55
55
  </head>
56
56
  <body>