decocms 4.373.1 → 4.373.2

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 (364) hide show
  1. package/dist/client/assets/{AlertCircle-2L7lI8NL.js → AlertCircle-D0XfIdP3.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BSJ08P7a.js → AreaChart-BahcMnDC.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-8rouBEwC.js → ArrowLeft-COesgQ7q.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-DCA5zjxW.js → ArrowRight-CnMpegh6.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BtksDHBQ.js → ArrowUp-17ZWJBkC.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-BbOaLmfq.js → CartesianChart-DqSaDs52.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-BmVuh1xp.js → CheckCircle-GwUJIVVh.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-fg9sod-H.js → ChevronUp-CodzCI7T.js} +1 -1
  9. package/dist/client/assets/{Copy01-BgwuTJFm.js → Copy01-CrFZhFXo.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-CIt471eG.js → CreditCard01-DDojC3kk.js} +1 -1
  11. package/dist/client/assets/{DotsVertical-CE2o6L6N.js → DotsVertical-DMzYFBsd.js} +1 -1
  12. package/dist/client/assets/{Download01-DNhEQzg0.js → Download01-B93GUT2-.js} +1 -1
  13. package/dist/client/assets/{ErrorBarContext-DxNax47N.js → ErrorBarContext-BUk8y7Bj.js} +1 -1
  14. package/dist/client/assets/{Eye-Dq6Vw6FI.js → Eye-Bxxku7SE.js} +1 -1
  15. package/dist/client/assets/{Globe01-g_y8gAs1.js → Globe01-DjdW3vEO.js} +1 -1
  16. package/dist/client/assets/{Globe04-GFiRExL0.js → Globe04-1G-_QSZW.js} +1 -1
  17. package/dist/client/assets/{Image01-QB6twEDu.js → Image01-DPvj49a-.js} +1 -1
  18. package/dist/client/assets/{Key01-CO_i2QPb.js → Key01-O_Ykzy8v.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-BfySK4h8.js → LayoutLeft-Cr5_A1QG.js} +1 -1
  20. package/dist/client/assets/{Line-Cr57fOtp.js → Line-aFR7lShe.js} +1 -1
  21. package/dist/client/assets/{Link01-BIFMl_M0.js → Link01-D8T6mRIR.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-DQD59o7F.js → LinkExternal01-CWPNoGQ_.js} +1 -1
  23. package/dist/client/assets/{Monitor01-Ddm2yOG6.js → Monitor01-CQaKbr3c.js} +1 -1
  24. package/dist/client/assets/{Package-CvzEol5_.js → Package-Cd3aVeK8.js} +1 -1
  25. package/dist/client/assets/{Palette-DT856bn6.js → Palette-HRmzWYeK.js} +1 -1
  26. package/dist/client/assets/{Play-wYDcJhBq.js → Play-CaxaoMwA.js} +1 -1
  27. package/dist/client/assets/{Plus-BSp00qOC.js → Plus-BjOenFFb.js} +1 -1
  28. package/dist/client/assets/{SearchLg-DFD1t2UL.js → SearchLg-CT-Vntfj.js} +1 -1
  29. package/dist/client/assets/{SearchMd-Bb5gjLcX.js → SearchMd-C6gkQ2l2.js} +1 -1
  30. package/dist/client/assets/{Sector-wViCnB96.js → Sector-B-fHBulW.js} +1 -1
  31. package/dist/client/assets/{Settings02-D9Qv7BDm.js → Settings02-DH86cX_B.js} +1 -1
  32. package/dist/client/assets/{Share07-CZ7JzYs9.js → Share07-Bw4Wicv2.js} +1 -1
  33. package/dist/client/assets/{Stars01-D-wYuyik.js → Stars01-B1kYoDFp.js} +1 -1
  34. package/dist/client/assets/{Sun-DLRcOzSd.js → Sun-kycCorOO.js} +1 -1
  35. package/dist/client/assets/{Tool01-Dwy1nlT9.js → Tool01-iak9ZtFE.js} +1 -1
  36. package/dist/client/assets/{Tool02-CvlAGFBM.js → Tool02-CFu103hl.js} +1 -1
  37. package/dist/client/assets/{Trash01-DtE0n00a.js → Trash01-CpN6r-a0.js} +1 -1
  38. package/dist/client/assets/{TrendUp01-BCriuXJd.js → TrendUp01-DlYmFZ7k.js} +1 -1
  39. package/dist/client/assets/{Upload01-Ba-RLxE1.js → Upload01-DkDsqCWe.js} +1 -1
  40. package/dist/client/assets/{User01-DHd46PZp.js → User01-CmNzW4kH.js} +1 -1
  41. package/dist/client/assets/{UserSquare-CcF49LHs.js → UserSquare-1_FC93GE.js} +1 -1
  42. package/dist/client/assets/{Users01-B8gdz27Y.js → Users01-CVhfgklM.js} +1 -1
  43. package/dist/client/assets/{X-BtMi8Qau.js → X-DTaqHNcB.js} +1 -1
  44. package/dist/client/assets/{XCircle-BLCHBIhx.js → XCircle-BR8ZZHlj.js} +1 -1
  45. package/dist/client/assets/{XClose-CvcHLHe2.js → XClose-VLid_ZSM.js} +1 -1
  46. package/dist/client/assets/{Zap-DZAIluO6.js → Zap-D3d1wpzw.js} +1 -1
  47. package/dist/client/assets/{ZoomOut-DUFJq3-K.js → ZoomOut-B3S7N50e.js} +1 -1
  48. package/dist/client/assets/{access-gate-C9Dl5e5c.js → access-gate-DAO7tJ5A.js} +1 -1
  49. package/dist/client/assets/{add-connection-dialog-DA05asFs.js → add-connection-dialog-CaHZ3eeK.js} +1 -1
  50. package/dist/client/assets/{agent-analytics-CDo5Hugr.js → agent-analytics-CzbWclRj.js} +1 -1
  51. package/dist/client/assets/agent-app-DqzssWfL.js +1 -0
  52. package/dist/client/assets/{agent-assets-6UK-ev9d.js → agent-assets-Dfpjbzyj.js} +1 -1
  53. package/dist/client/assets/{agent-automation-BC-cMvrG.js → agent-automation-C8r5_lAR.js} +1 -1
  54. package/dist/client/assets/{agent-automations-CnHTcvU7.js → agent-automations-BSaV8k3Y.js} +1 -1
  55. package/dist/client/assets/{agent-connect-sources-CJ8artss.js → agent-connect-sources-AkHuiIU0.js} +1 -1
  56. package/dist/client/assets/agent-deck-BQOqb5JA.js +1 -0
  57. package/dist/client/assets/{agent-e2e-Cj1Q_JS0.js → agent-e2e-CjCqLXH1.js} +1 -1
  58. package/dist/client/assets/{agent-experiments-DJ13yAp9.js → agent-experiments-4inK9Pvj.js} +1 -1
  59. package/dist/client/assets/agent-file-CN4CJx4b.js +1 -0
  60. package/dist/client/assets/{agent-git-B8LMQ2zl.js → agent-git-BZmL1C91.js} +1 -1
  61. package/dist/client/assets/{agent-hosting-Bm-WxahY.js → agent-hosting-CP9gImki.js} +1 -1
  62. package/dist/client/assets/{agent-icon-CTsmTxHg.js → agent-icon-D5Ih-I28.js} +1 -1
  63. package/dist/client/assets/agent-library-file-CMtJlgeS.js +1 -0
  64. package/dist/client/assets/{agent-monitor-DgVt0zbx.js → agent-monitor-D7bE1AUL.js} +1 -1
  65. package/dist/client/assets/{agent-overview-pOglhwpN.js → agent-overview-C5zU0xJO.js} +1 -1
  66. package/dist/client/assets/agent-settings-G7qQl7Yj.js +1 -0
  67. package/dist/client/assets/{agent-site-editor-DVT-M9T0.js → agent-site-editor-BRzwUORk.js} +1 -1
  68. package/dist/client/assets/agent-site-editor-code-BV4iQvoi.js +2 -0
  69. package/dist/client/assets/{agent-site-editor-content-eM0WchN0.js → agent-site-editor-content-Da0JfE-w.js} +2 -2
  70. package/dist/client/assets/{agent-site-editor-preview-3VO_kTqr.js → agent-site-editor-preview-DqMQfEJz.js} +3 -3
  71. package/dist/client/assets/agent-view-BinIwia6.js +1 -0
  72. package/dist/client/assets/{agent-view-guard-BNYKK-x9.js → agent-view-guard-CmXIeKCe.js} +1 -1
  73. package/dist/client/assets/{agents-list-BXPjUzIN.js → agents-list-wHHXJTl8.js} +1 -1
  74. package/dist/client/assets/{ai-providers-BAmCFPvS.js → ai-providers-COexxMGY.js} +1 -1
  75. package/dist/client/assets/{alert-C8o4-kn8.js → alert-C_EPjsLF.js} +1 -1
  76. package/dist/client/assets/{alert-dialog-9n2p5SCQ.js → alert-dialog-D6rlFoy0.js} +1 -1
  77. package/dist/client/assets/api-keys-CN-jy2XH.js +1 -0
  78. package/dist/client/assets/{api-keys-Cu1KdEtK.js → api-keys-o45lgGkw.js} +1 -1
  79. package/dist/client/assets/app-editor-BPKOcfIg.js +1 -0
  80. package/dist/client/assets/{asset-utils-CK3Em4fb.js → asset-utils-BG24FUsq.js} +1 -1
  81. package/dist/client/assets/{auth-BBW3DF0r.js → auth-B_QE3yd2.js} +1 -1
  82. package/dist/client/assets/{auth-catchall-Bva2z4Gj.js → auth-catchall-BM8U6OhG.js} +1 -1
  83. package/dist/client/assets/{auth-entry-BuHqwUIr.js → auth-entry-CdieewWf.js} +1 -1
  84. package/dist/client/assets/{auth-split-layout-DMgxvbll.js → auth-split-layout-rKTEf0Lh.js} +1 -1
  85. package/dist/client/assets/{authenticate-and-persist-oauth-Pk9b2m8R.js → authenticate-and-persist-oauth-Cm242zr2.js} +1 -1
  86. package/dist/client/assets/{automation-list-row-D-zBLXA-.js → automation-list-row-DDeJYMHS.js} +1 -1
  87. package/dist/client/assets/{automation-runs-C8Wbje-n.js → automation-runs-BGXJk3-4.js} +1 -1
  88. package/dist/client/assets/{automations-D69ikqKh.js → automations-BhhOtnrs.js} +1 -1
  89. package/dist/client/assets/{autosend-CVNOmzPu.js → autosend-DtYV6o0l.js} +1 -1
  90. package/dist/client/assets/{avatar-BzRNaDEk.js → avatar-Dwn9Bjsb.js} +1 -1
  91. package/dist/client/assets/{badge-C5M6nZd4.js → badge-BSirYRuD.js} +1 -1
  92. package/dist/client/assets/{block-document-UPtnFOJG.js → block-document-DjxI0Nln.js} +1 -1
  93. package/dist/client/assets/{blocks-preview-workspace-context-DAFMxzU6.js → blocks-preview-workspace-context-BwjlsTrq.js} +1 -1
  94. package/dist/client/assets/{breadcrumb-0yy48vm9.js → breadcrumb-BpbnoaV3.js} +1 -1
  95. package/dist/client/assets/{buckets-CktpbsrB.js → buckets-DdptE4Pj.js} +1 -1
  96. package/dist/client/assets/{build-improve-prompt-doc-C-SX02eL.js → build-improve-prompt-doc-CIkgt5Ml.js} +1 -1
  97. package/dist/client/assets/{bulk-category-panel-MrIv4eD2.js → bulk-category-panel-BUvAK76e.js} +1 -1
  98. package/dist/client/assets/{calendar-QcX36iLy.js → calendar-Bhg3W8Dv.js} +1 -1
  99. package/dist/client/assets/{capability-load-error-BVb3VEU2.js → capability-load-error-l-yxDu1W.js} +1 -1
  100. package/dist/client/assets/category-editor-Crlp5xLx.js +1 -0
  101. package/dist/client/assets/{chart-BVjaATZw.js → chart-B7hxFGKr.js} +1 -1
  102. package/dist/client/assets/{chat-context-ELO8A2Ar.js → chat-context-CVZ1rNGo.js} +1 -1
  103. package/dist/client/assets/{chat-draft-tDfZTlxU.js → chat-draft-UIE-uNFd.js} +1 -1
  104. package/dist/client/assets/{checkbox-iGlb02v9.js → checkbox-VSstjUSb.js} +1 -1
  105. package/dist/client/assets/{choose-editor-CWLAiGtz.js → choose-editor-DD3-fBUp.js} +1 -1
  106. package/dist/client/assets/{cli-auth-success-DyNW_Pmq.js → cli-auth-success-LIJhoLzG.js} +1 -1
  107. package/dist/client/assets/{client-icons-BuRYGGKe.js → client-icons-D8SzN11F.js} +1 -1
  108. package/dist/client/assets/{collapsible-PyJ2NOzW.js → collapsible-BX137q_-.js} +1 -1
  109. package/dist/client/assets/{collection-detail-DXmBNKMr.js → collection-detail-Brbyx-hM.js} +1 -1
  110. package/dist/client/assets/{collection-display-button-Cz5AkuIg.js → collection-display-button-LAyYKy93.js} +1 -1
  111. package/dist/client/assets/{collection-search-DM8MkJfo.js → collection-search-Dvf73igt.js} +1 -1
  112. package/dist/client/assets/collection-table-wrapper-_ZnQA9Nx.js +1 -0
  113. package/dist/client/assets/{collection-tabs-aKKPIP9M.js → collection-tabs-BW0egx-_.js} +1 -1
  114. package/dist/client/assets/{combobox-CQBdlQef.js → combobox-D6GclaQ-.js} +1 -1
  115. package/dist/client/assets/{command-CZcxzTcw.js → command-Dsz0XoYc.js} +1 -1
  116. package/dist/client/assets/{companion-mcps-section-B7qgbnOZ.js → companion-mcps-section-D7ntAaGF.js} +1 -1
  117. package/dist/client/assets/{connect-D6Wz7x6C.js → connect-ChX83wmI.js} +1 -1
  118. package/dist/client/assets/{connect-layout-DzSDvFP2.js → connect-layout-SP9zSVi3.js} +1 -1
  119. package/dist/client/assets/{connection-DStV2sLP.js → connection-2MR1zroe.js} +1 -1
  120. package/dist/client/assets/{connection-card-CpIJKLp3.js → connection-card-B5yTdNvS.js} +1 -1
  121. package/dist/client/assets/{connection-detail-junbbrHX.js → connection-detail-DKOxQWbq.js} +1 -1
  122. package/dist/client/assets/{connection-form-helpers-DM_wSOEJ.js → connection-form-helpers-PrMbwr2L.js} +1 -1
  123. package/dist/client/assets/{connections-DvjnCZJT.js → connections-lQVX-uGO.js} +1 -1
  124. package/dist/client/assets/{create-organization-dialog-CvXOAbwA.js → create-organization-dialog-Ccojws8S.js} +1 -1
  125. package/dist/client/assets/{decofile-api-zRlIvvNL.js → decofile-api-DygXY02K.js} +1 -1
  126. package/dist/client/assets/{decopilot-BI8eOOPY.js → decopilot-rj_BJ_Z1.js} +1 -1
  127. package/dist/client/assets/{dialog-AoC07APJ.js → dialog-BKhaq-Xf.js} +1 -1
  128. package/dist/client/assets/{discover-zo2iAYFW.js → discover-C_imFiZx.js} +1 -1
  129. package/dist/client/assets/{domain-settings-C6kSznIr.js → domain-settings-CUKpZjNV.js} +1 -1
  130. package/dist/client/assets/{download-app-dialog-CsiIuf7j.js → download-app-dialog-wNu8nmu1.js} +1 -1
  131. package/dist/client/assets/{drawer-DGzquxJ8.js → drawer-CCmZWflK.js} +1 -1
  132. package/dist/client/assets/{editor-oL1B7LVJ.js → editor-DMij_Pa1.js} +1 -1
  133. package/dist/client/assets/{empty-state-DxJQDjCw.js → empty-state-BDpfsfUL.js} +1 -1
  134. package/dist/client/assets/{empty-state-Y08kvU5o.js → empty-state-DiRnF-wA.js} +1 -1
  135. package/dist/client/assets/{extract-connection-data-C7Wh9xkI.js → extract-connection-data-Bdk8iF2q.js} +1 -1
  136. package/dist/client/assets/{feature-gate-C1d068b1.js → feature-gate-KPNWzkBp.js} +1 -1
  137. package/dist/client/assets/{feature-paywall-BoABVlUQ.js → feature-paywall-B3_no1lb.js} +1 -1
  138. package/dist/client/assets/{file-explorer-DG5Gvb-w.js → file-explorer-oIhs2jyB.js} +1 -1
  139. package/dist/client/assets/{file-preview-iaqpqUYi.js → file-preview-BFDgPeRr.js} +1 -1
  140. package/dist/client/assets/{file-share-button-D0lT5ixf.js → file-share-button-7xy_ju8b.js} +1 -1
  141. package/dist/client/assets/{file-type-icon-lZW2ows7.js → file-type-icon-Co9lETmZ.js} +1 -1
  142. package/dist/client/assets/{folder-icon-DVG7PK8X.js → folder-icon-CPH1Bszw.js} +1 -1
  143. package/dist/client/assets/{form-CYsJTpNM.js → form-CxKBX2E3.js} +1 -1
  144. package/dist/client/assets/{gateway-client-CnYYocwu.js → gateway-client-B8HHtBA6.js} +1 -1
  145. package/dist/client/assets/{general-BiYLEv2o.js → general-BXQ_6idC.js} +1 -1
  146. package/dist/client/assets/{github-icon-swNUSpAU.js → github-icon-DSeg1rga.js} +1 -1
  147. package/dist/client/assets/{home-BbjS-573.js → home-FAOklPf6.js} +1 -1
  148. package/dist/client/assets/{hooks-D0dDgrIf.js → hooks-BFlZlUD7.js} +1 -1
  149. package/dist/client/assets/{hooks-BlE0QZwR.js → hooks-CFjlhRX0.js} +1 -1
  150. package/dist/client/assets/{icon-button-7c--Wy5B.js → icon-button-_3vMPXZp.js} +1 -1
  151. package/dist/client/assets/{index-DItj2r3e.js → index-B3clFfYi.js} +1 -1
  152. package/dist/client/assets/{index-DyCAAYSx.js → index-BcfYNZk_.js} +1 -1
  153. package/dist/client/assets/{index-C97O3ClY.js → index-BrLZxE6-.js} +1 -1
  154. package/dist/client/assets/{index-0-s9o3tr.js → index-BwwpOrcS.js} +1 -1
  155. package/dist/client/assets/{index-EcuFIS2a.js → index-CC7J7MsT.js} +2 -2
  156. package/dist/client/assets/{index-CutV0Ygc.js → index-CV2G6XgT.js} +1 -1
  157. package/dist/client/assets/{index-BUfoj27y.js → index-Ci8CqfCi.js} +1 -1
  158. package/dist/client/assets/{index-DKXWNSdB.js → index-Coo4IGyG.js} +1 -1
  159. package/dist/client/assets/{index-BDYXeKzz.js → index-CxsDd08k.js} +1 -1
  160. package/dist/client/assets/{index-Exw_Yjch.js → index-D2HOssRq.js} +1 -1
  161. package/dist/client/assets/{index-DllcfiZL.js → index-DZmKVVGY.js} +1 -1
  162. package/dist/client/assets/{index-DGY2nhhI.js → index-DoCuIH7r.js} +1 -1
  163. package/dist/client/assets/{index-fN6RkMSD.js → index-WfTG300W.js} +1 -1
  164. package/dist/client/assets/{index-redirect-Bm4zqVUy.js → index-redirect-BV59ZcWQ.js} +1 -1
  165. package/dist/client/assets/{index-BchRuDAc.js → index-zFkCX32V.js} +1 -1
  166. package/dist/client/assets/{infiniteQueryObserver-3RxH1tr-.js → infiniteQueryObserver-CKT-6XMq.js} +1 -1
  167. package/dist/client/assets/{infra-billing-CmY2herT.js → infra-billing-RcXbwjta.js} +1 -1
  168. package/dist/client/assets/{input-Buz_7xoG.js → input-DSV_9cOM.js} +1 -1
  169. package/dist/client/assets/{input-C5klQNJJ.js → input-QKe7l082.js} +1 -1
  170. package/dist/client/assets/{input-BrPa4I3Z.js → input-X38P96BY.js} +1 -1
  171. package/dist/client/assets/{integration-icon-D3FHJbYu.js → integration-icon-BARnXRTY.js} +1 -1
  172. package/dist/client/assets/{label-BX1BwzZ4.js → label-YKssz_GS.js} +1 -1
  173. package/dist/client/assets/{last-preview-page-BSVfE6AT.js → last-preview-page-D5EFEwR4.js} +1 -1
  174. package/dist/client/assets/{layout-030aDjqi.js → layout-UcqeKFE9.js} +1 -1
  175. package/dist/client/assets/{legacy-agents-deep-BblX_qPq.js → legacy-agents-deep-BYo-BuCs.js} +1 -1
  176. package/dist/client/assets/{legacy-main-redirect-BDaODIKZ.js → legacy-main-redirect-NyVTUirL.js} +1 -1
  177. package/dist/client/assets/{library-CmkU9fCT.js → library-FX2TKWir.js} +1 -1
  178. package/dist/client/assets/{login-BpUdj6Fq.js → login-gigmbDXu.js} +1 -1
  179. package/dist/client/assets/{markdown-VKlC4_bJ.js → markdown-tOSThun8.js} +1 -1
  180. package/dist/client/assets/{mcp-app-renderer-wS7imsel.js → mcp-app-renderer-c3JU3ROq.js} +1 -1
  181. package/dist/client/assets/{mcp-oauth-B7YJNr4N.js → mcp-oauth-Cr_ZflCp.js} +1 -1
  182. package/dist/client/assets/{members-2ZkimP3H.js → members-Cd4baVfz.js} +1 -1
  183. package/dist/client/assets/{message-templates-DyGM313y.js → message-templates-Pr7m4Pgn.js} +1 -1
  184. package/dist/client/assets/{mini-report-page-CYdef8vQ.js → mini-report-page-0G8UQBMn.js} +1 -1
  185. package/dist/client/assets/{mock-board-Dk2mRFCa.js → mock-board-Dw3AKqte.js} +3 -3
  186. package/dist/client/assets/{monaco-editor-ChRh_qus.js → monaco-editor-BhkNNN8A.js} +1 -1
  187. package/dist/client/assets/{monitoring-stats-row-DirMMFq2.js → monitoring-stats-row-D3wuHD5K.js} +1 -1
  188. package/dist/client/assets/{multi-select-CYKeAXVo.js → multi-select-Bw9uE0vh.js} +1 -1
  189. package/dist/client/assets/{mustache-BpzqsH6c.js → mustache-BMe4E-3i.js} +1 -1
  190. package/dist/client/assets/{oauth-callback-CLQttSb2.js → oauth-callback-Ckn9o5ws.js} +1 -1
  191. package/dist/client/assets/{oauth-callback-ai-provider-C5AqSldx.js → oauth-callback-ai-provider-B7dYzzRe.js} +1 -1
  192. package/dist/client/assets/{onboarding-BYeSkDcE.js → onboarding-BtLLloCy.js} +1 -1
  193. package/dist/client/assets/{optimistic-project-sidebar-views-hB0JGrCs.js → optimistic-project-sidebar-views-8yO8-q3h.js} +1 -1
  194. package/dist/client/assets/{org-file-open-context-D26BTBiX.js → org-file-open-context-k2zY7W2A.js} +1 -1
  195. package/dist/client/assets/{organization-choice-sm9k2ko4.js → organization-choice-oi5kPDHh.js} +1 -1
  196. package/dist/client/assets/{orgs-BT6gh3Sc.js → orgs-C8VfgzyW.js} +1 -1
  197. package/dist/client/assets/{page-seo-form-Bhk-2qvu.js → page-seo-form-D-yemID7.js} +1 -1
  198. package/dist/client/assets/{pair-Bh73YYpe.js → pair-CbUh0olY.js} +1 -1
  199. package/dist/client/assets/{plan-ladder-B-hb17ya.js → plan-ladder-DR8Snnfh.js} +1 -1
  200. package/dist/client/assets/{popover-Bff85VlI.js → popover-tYq49O5I.js} +1 -1
  201. package/dist/client/assets/{post-calendar-BUJnl75O.js → post-calendar-n3g3NXQN.js} +1 -1
  202. package/dist/client/assets/{post-editor-B8ClYTJb.js → post-editor-BCki1XwL.js} +1 -1
  203. package/dist/client/assets/{preview-content-C4FuOpTi.js → preview-content-BEe_g5h_.js} +1 -1
  204. package/dist/client/assets/{preview-dialog-DY1kQ4y_.js → preview-dialog-B88KWjD7.js} +1 -1
  205. package/dist/client/assets/{primitives-BCCkMTJb.js → primitives-DvNXO9ko.js} +1 -1
  206. package/dist/client/assets/{profile-T7ySaz_t.js → profile-Dn8W-1_J.js} +1 -1
  207. package/dist/client/assets/{project-app-view-D4HCSkue.js → project-app-view-CHIgEuQJ.js} +1 -1
  208. package/dist/client/assets/{project-feed-CRHprIgj.js → project-feed-BeVLcst-.js} +1 -1
  209. package/dist/client/assets/{project-icon-D_oHwik9.js → project-icon-BuTPt9Ec.js} +1 -1
  210. package/dist/client/assets/project-reports-EFWj1j4Z.js +1 -0
  211. package/dist/client/assets/project-tasks-DGYfz1Ev.js +1 -0
  212. package/dist/client/assets/{prompts-BuPAnA4R.js → prompts-BrLG0HnD.js} +1 -1
  213. package/dist/client/assets/record-editor-AST5wQoO.js +1 -0
  214. package/dist/client/assets/{redirect-editor-BrEMZWAU.js → redirect-editor-DQh1NXo4.js} +1 -1
  215. package/dist/client/assets/registry-FGkay0Wa.js +2 -0
  216. package/dist/client/assets/{registry-layout-o90YrVKa.js → registry-layout-tLc7-FpU.js} +1 -1
  217. package/dist/client/assets/{reports-DEVutxJq.js → reports-Bgxd82xF.js} +1 -1
  218. package/dist/client/assets/reports-CqtPOzss.js +1 -0
  219. package/dist/client/assets/{reports-onboarding-Dt5mvf07.js → reports-onboarding-BORIliYh.js} +1 -1
  220. package/dist/client/assets/{reports-tab-C6PZg0b6.js → reports-tab-3yvhtU-e.js} +2 -2
  221. package/dist/client/assets/{repositories-DBFrDUwl.js → repositories-DnQQ93Vy.js} +1 -1
  222. package/dist/client/assets/{repository-import-picker-ftg0FRzY.js → repository-import-picker-B1zE1wEx.js} +1 -1
  223. package/dist/client/assets/repository-picker-DMUsWfjy.js +1 -0
  224. package/dist/client/assets/{require-capability-gpVnF6U4.js → require-capability-B9l2cjC7.js} +1 -1
  225. package/dist/client/assets/{required-auth-layout-BhdxJMdb.js → required-auth-layout-qQ6V67AS.js} +1 -1
  226. package/dist/client/assets/{reset-password-DD2ixVIR.js → reset-password-CzGwWM54.js} +1 -1
  227. package/dist/client/assets/{resizable-wU1MiASn.js → resizable-c-JEmBrU.js} +1 -1
  228. package/dist/client/assets/{review-settings-3uLiRV1J.js → review-settings-CBDmCs9f.js} +1 -1
  229. package/dist/client/assets/{rich-text-link-control-Bn-QsIS6.js → rich-text-link-control-B4QybUls.js} +1 -1
  230. package/dist/client/assets/{roles-DX_ap2B0.js → roles-9Q5Zr1_l.js} +1 -1
  231. package/dist/client/assets/{route-Bdqr734y.js → route-Cyp-PzpR.js} +1 -1
  232. package/dist/client/assets/{route-DGhKwFXa.js → route-D9feMXoH.js} +1 -1
  233. package/dist/client/assets/{route-Cg6AOuOY.js → route-DrZOVBG5.js} +1 -1
  234. package/dist/client/assets/{route-page-header-DKm5kHtX.js → route-page-header-BzWw0nja.js} +1 -1
  235. package/dist/client/assets/{runnable-block-editor-9i5DpxOA.js → runnable-block-editor-nQ69L6jb.js} +1 -1
  236. package/dist/client/assets/{sandbox-lifecycle-context-BHn9YFEW.js → sandbox-lifecycle-context-DLKr6QBG.js} +1 -1
  237. package/dist/client/assets/{schema-FDf70VFI.js → schema-CStbpjQf.js} +1 -1
  238. package/dist/client/assets/{scroll-area-DMmJ7JtI.js → scroll-area-BLDUQh9N.js} +1 -1
  239. package/dist/client/assets/{search-input-BHVk6m6A.js → search-input-MlNEh696.js} +1 -1
  240. package/dist/client/assets/{search-toggle-CCC7TvwN.js → search-toggle-SUy-5Oe0.js} +1 -1
  241. package/dist/client/assets/{secrets-BNtrMaDs.js → secrets-CEw0kB_t.js} +1 -1
  242. package/dist/client/assets/{sections-editor-HtflyYMM.js → sections-editor-l8Cc724N.js} +1 -1
  243. package/dist/client/assets/{select-DBfOOW9i.js → select-C_C7jdl-.js} +1 -1
  244. package/dist/client/assets/{select-model-2C5Fdpra.js → select-model-FW_XGeEU.js} +1 -1
  245. package/dist/client/assets/{seo-editor-CFULobkJ.js → seo-editor-BhZJvD6-.js} +1 -1
  246. package/dist/client/assets/{separator-8fswVHAH.js → separator-D-DaNCb-.js} +1 -1
  247. package/dist/client/assets/{settings-tab-s3d5MtS-.js → settings-tab-DhuuexRq.js} +1 -1
  248. package/dist/client/assets/{sheet-DWSThpSZ.js → sheet-B5ncClVO.js} +1 -1
  249. package/dist/client/assets/shell-layout-p-WJ7uxl.js +1 -0
  250. package/dist/client/assets/{sidebar-CoC2_Nad.js → sidebar-BlfpAzXY.js} +1 -1
  251. package/dist/client/assets/{skill-preview-QgrtYNqp.js → skill-preview-CeIBKDR2.js} +1 -1
  252. package/dist/client/assets/{skills-BVINvlqv.js → skills-Cpf0zAbB.js} +1 -1
  253. package/dist/client/assets/{sso-CSqM_F3b.js → sso-CYe8kGWS.js} +1 -1
  254. package/dist/client/assets/{store-DBNpNTVQ.js → store-DDl3lPqK.js} +1 -1
  255. package/dist/client/assets/store-registry-DUH5xq3l.js +2 -0
  256. package/dist/client/assets/{switch-BIfmgDHS.js → switch-C_FmZ5Us.js} +1 -1
  257. package/dist/client/assets/{synced-repos-CG_pm_Ch.js → synced-repos-DHbM7OOb.js} +1 -1
  258. package/dist/client/assets/{table-CEVOOGGz.js → table-mH2G1tkg.js} +1 -1
  259. package/dist/client/assets/{tabs-Dd0IWElc.js → tabs-jjUOgDeE.js} +1 -1
  260. package/dist/client/assets/{task-board-Dip4Wu9j.js → task-board-BtEMyO1f.js} +1 -1
  261. package/dist/client/assets/{task-route-SKFoAFiU.js → task-route-BaALoopn.js} +1 -1
  262. package/dist/client/assets/{task-status-k7EGfTLN.js → task-status-CCMsckzm.js} +1 -1
  263. package/dist/client/assets/{taskboard-analytics-C3lk9wb7.js → taskboard-analytics-CzQSxt8I.js} +1 -1
  264. package/dist/client/assets/tasks-CI20rxb_.js +1 -0
  265. package/dist/client/assets/{tasks-ebQIYdwz.js → tasks-K4e2STZ0.js} +1 -1
  266. package/dist/client/assets/{textarea-D5v3ol7T.js → textarea-B7wqTmSc.js} +1 -1
  267. package/dist/client/assets/{thread-button-C3YUAV-G.js → thread-button-B9U3gqvP.js} +1 -1
  268. package/dist/client/assets/{thread-intent-CTSjhfEo.js → thread-intent-DZx7N_NL.js} +1 -1
  269. package/dist/client/assets/{thread-route-B57JfaL5.js → thread-route-B3hhxYHj.js} +1 -1
  270. package/dist/client/assets/{thread-route-CHwqHPf_.js → thread-route-DnE31jZ2.js} +1 -1
  271. package/dist/client/assets/{thread-sheet-body-Hqh1hVbj.js → thread-sheet-body-D_py0jIP.js} +1 -1
  272. package/dist/client/assets/{toggle-group-CwAn2mKr.js → toggle-group-C-J6fFSZ.js} +1 -1
  273. package/dist/client/assets/{toolbar-icon-button-ChZE-2zp.js → toolbar-icon-button-DQAUOhdv.js} +1 -1
  274. package/dist/client/assets/{tooltip-nr5oS_bm.js → tooltip-DSCGYdw1.js} +1 -1
  275. package/dist/client/assets/{track-BDYWN4z3.js → track-BWEjISsx.js} +1 -1
  276. package/dist/client/assets/{types-7UQ7SDxU.js → types-BQYrCHfb.js} +1 -1
  277. package/dist/client/assets/{usage-stats-YafP0g9G.js → usage-stats-CH100JwP.js} +1 -1
  278. package/dist/client/assets/{use-ai-providers-D-abiIwe.js → use-ai-providers-DPIPADTm.js} +1 -1
  279. package/dist/client/assets/{use-automations-D_y1YNke.js → use-automations-Cm_whz3Q.js} +1 -1
  280. package/dist/client/assets/{use-autosave-z8cIzzdm.js → use-autosave-C09DCahC.js} +1 -1
  281. package/dist/client/assets/{use-connect-companion-jQzCS0Na.js → use-connect-companion-D45RJA2C.js} +1 -1
  282. package/dist/client/assets/{use-connection-BKZRi94S.js → use-connection-DAR6kA6F.js} +1 -1
  283. package/dist/client/assets/{use-copy-Cp_DyXH6.js → use-copy-CLZ5Gmjm.js} +1 -1
  284. package/dist/client/assets/{use-create-virtual-mcp-nvoTomrD.js → use-create-virtual-mcp-DlDbTDWh.js} +1 -1
  285. package/dist/client/assets/{use-date-fns-locale-CNoKSvxx.js → use-date-fns-locale-4a1GuGUG.js} +1 -1
  286. package/dist/client/assets/{use-debounced-autosave-B0HBbqeX.js → use-debounced-autosave-s6ooboiq.js} +1 -1
  287. package/dist/client/assets/{use-debounced-value-BgYHDTDk.js → use-debounced-value-C7PP6GCc.js} +1 -1
  288. package/dist/client/assets/{use-deco-credits-CqbkXgA9.js → use-deco-credits-C78gqYYg.js} +1 -1
  289. package/dist/client/assets/{use-decopilot-events-qaEKsixC.js → use-decopilot-events-DDN9tgML.js} +1 -1
  290. package/dist/client/assets/{use-delete-connection-CqvqqWgS.js → use-delete-connection-DT4K_5dd.js} +1 -1
  291. package/dist/client/assets/{use-deployment-admin-DzkF6L4b.js → use-deployment-admin-mukdSbJI.js} +1 -1
  292. package/dist/client/assets/{use-entitlements-kPr6KRf9.js → use-entitlements-CsT7-WMV.js} +1 -1
  293. package/dist/client/assets/{use-fast-preview-draft-url-BBBDyhsD.js → use-fast-preview-draft-url-BofBOVEy.js} +1 -1
  294. package/dist/client/assets/{use-file-configs-6ygOocDG.js → use-file-configs-DT6Slpub.js} +1 -1
  295. package/dist/client/assets/{use-in-settings-BCDqA2EC.js → use-in-settings-BuwNY17C.js} +1 -1
  296. package/dist/client/assets/{use-infinite-scroll-D0T36z_V.js → use-infinite-scroll-BEJH1fno.js} +1 -1
  297. package/dist/client/assets/{use-join-requests-BBovhUnp.js → use-join-requests-CRlXrVsN.js} +1 -1
  298. package/dist/client/assets/{use-main-panel-tabs-BghanH6r.js → use-main-panel-tabs-CHXW72tt.js} +1 -1
  299. package/dist/client/assets/{use-mcp-auth-status-h4sAecTI.js → use-mcp-auth-status-BUHt6LYh.js} +1 -1
  300. package/dist/client/assets/{use-mcp-client-B_gcvvCy.js → use-mcp-client-jmamuSRM.js} +1 -1
  301. package/dist/client/assets/{use-mcp-prompts-DfSKL4Gu.js → use-mcp-prompts-Cb12ACl6.js} +1 -1
  302. package/dist/client/assets/{use-mcp-tools-DC47roTz.js → use-mcp-tools-U5kwqIN7.js} +1 -1
  303. package/dist/client/assets/{use-members-C6brpkJ1.js → use-members-CZk_logh.js} +1 -1
  304. package/dist/client/assets/{use-mobile-BZ15DgEB.js → use-mobile-X_9uHXB5.js} +1 -1
  305. package/dist/client/assets/{use-navigate-to-agent-B8SXI0oO.js → use-navigate-to-agent-XZHI0vTx.js} +1 -1
  306. package/dist/client/assets/{use-open-billing-url-BAg3ZeFq.js → use-open-billing-url-BygdFnSn.js} +1 -1
  307. package/dist/client/assets/{use-org-auth-client-8fDIgHEZ.js → use-org-auth-client-6spdYft8.js} +1 -1
  308. package/dist/client/assets/{use-org-fs-Bf6n51Xm.js → use-org-fs-C4AEj3YR.js} +1 -1
  309. package/dist/client/assets/{use-org-repo-syncs-CnBqiATM.js → use-org-repo-syncs-D5-YS2q1.js} +1 -1
  310. package/dist/client/assets/{use-org-sso-QeqdMaIa.js → use-org-sso-CbtWg6df.js} +1 -1
  311. package/dist/client/assets/{use-organization-roles-tuKknI1K.js → use-organization-roles-B2NYy6qP.js} +1 -1
  312. package/dist/client/assets/{use-organization-settings-DvtBymY3.js → use-organization-settings-DiOLzOn-.js} +1 -1
  313. package/dist/client/assets/{use-panel-navigate-IItrbgmN.js → use-panel-navigate-YnjVvVnu.js} +1 -1
  314. package/dist/client/assets/{use-project-native-view-presence-WwnxvZuP.js → use-project-native-view-presence-S2GuqygD.js} +1 -1
  315. package/dist/client/assets/{use-project-scope-CCxyXvEU.js → use-project-scope-azWGklpf.js} +1 -1
  316. package/dist/client/assets/{use-registry-connections-Bd4wJHbx.js → use-registry-connections-Dr6Tl0jy.js} +1 -1
  317. package/dist/client/assets/{use-releases-DZvNer89.js → use-releases-sRilJRv7.js} +1 -1
  318. package/dist/client/assets/{use-reports-diagnostic-BeTEI2FZ.js → use-reports-diagnostic-b56ze7yP.js} +1 -1
  319. package/dist/client/assets/{use-route-default-main-BhbKsXCz.js → use-route-default-main-DAXdKSA3.js} +1 -1
  320. package/dist/client/assets/{use-secrets-Bq9yyXHE.js → use-secrets-BD25jCAi.js} +1 -1
  321. package/dist/client/assets/{use-section-preview-base--XbKHK2U.js → use-section-preview-base-CfKeOl7s.js} +1 -1
  322. package/dist/client/assets/{use-session-runtime-B5wMaHtP.js → use-session-runtime-D8PgcjtK.js} +1 -1
  323. package/dist/client/assets/{use-tags-Do2tDPSO.js → use-tags-DMzy8m-k.js} +1 -1
  324. package/dist/client/assets/{use-task-board-analytics-MK_Z2cUq.js → use-task-board-analytics-BXM0SDto.js} +1 -1
  325. package/dist/client/assets/{use-task-metadata-CQjLXps1.js → use-task-metadata-IzJB5PVG.js} +1 -1
  326. package/dist/client/assets/{use-thread-outputs-DYukUH5N.js → use-thread-outputs-BhhE_Gkc.js} +1 -1
  327. package/dist/client/assets/{use-view-mode-BEPkb8x0.js → use-view-mode-CUHkIbeG.js} +1 -1
  328. package/dist/client/assets/{use-virtual-mcp-Ji9vcgUj.js → use-virtual-mcp-Bt7oX0ej.js} +1 -1
  329. package/dist/client/assets/useInfiniteQuery-zZoTJbYm.js +1 -0
  330. package/dist/client/assets/{useQueries-D0xhxw7a.js → useQueries-D7ondynP.js} +1 -1
  331. package/dist/client/assets/useSuspenseInfiniteQuery-BvOl5Id0.js +1 -0
  332. package/dist/client/assets/{users-DzwkCv2F.js → users-CP4Dfulp.js} +1 -1
  333. package/dist/client/assets/{utils-y2q6u6PK.js → utils-CcX7wgow.js} +1 -1
  334. package/dist/client/assets/{variant-calendar-D1R9xk7D.js → variant-calendar-BYxVe-PM.js} +1 -1
  335. package/dist/client/assets/{variant-matcher-override-qHzE4baz.js → variant-matcher-override-CgX58Kkx.js} +1 -1
  336. package/dist/client/assets/{view-mode-toggle-Ca0bFull.js → view-mode-toggle-CRnJAx40.js} +1 -1
  337. package/dist/client/assets/{virtual-mcp-Dji-1ojO.js → virtual-mcp-BWl8nlWy.js} +1 -1
  338. package/dist/client/index.html +1 -1
  339. package/dist/server/cli.js +648 -648
  340. package/dist/server/migrate.js +170 -170
  341. package/dist/server/server.js +415 -415
  342. package/package.json +1 -1
  343. package/dist/client/assets/agent-app-lfl4wDqj.js +0 -1
  344. package/dist/client/assets/agent-deck-BCZ0G4O2.js +0 -1
  345. package/dist/client/assets/agent-file-DbKP1r-4.js +0 -1
  346. package/dist/client/assets/agent-library-file-DvybgEEZ.js +0 -1
  347. package/dist/client/assets/agent-settings-Bx-Ya3hQ.js +0 -1
  348. package/dist/client/assets/agent-site-editor-code-DpPWdLwT.js +0 -2
  349. package/dist/client/assets/agent-view-v-h5B6vN.js +0 -1
  350. package/dist/client/assets/api-keys-DCurVLgh.js +0 -1
  351. package/dist/client/assets/app-editor-C3QSidsO.js +0 -1
  352. package/dist/client/assets/category-editor-DZThBJlF.js +0 -1
  353. package/dist/client/assets/collection-table-wrapper-cBr_X4Jo.js +0 -1
  354. package/dist/client/assets/project-reports-CzVFjEoR.js +0 -1
  355. package/dist/client/assets/project-tasks-c_cBe8VF.js +0 -1
  356. package/dist/client/assets/record-editor-CHfqyrFA.js +0 -1
  357. package/dist/client/assets/registry-4kJYrulU.js +0 -2
  358. package/dist/client/assets/reports-COffkxyo.js +0 -1
  359. package/dist/client/assets/repository-picker-BKj90hIS.js +0 -1
  360. package/dist/client/assets/shell-layout-BQnbNNla.js +0 -1
  361. package/dist/client/assets/store-registry-DLmFNBij.js +0 -2
  362. package/dist/client/assets/tasks-Sl_c9zFF.js +0 -1
  363. package/dist/client/assets/useInfiniteQuery-CzQJkRT9.js +0 -1
  364. package/dist/client/assets/useSuspenseInfiniteQuery-D9iG0Y5m.js +0 -1
@@ -1 +1 @@
1
- import{a as h,c as r,aQ as w,a0 as E,m as T,aE as x,K as A,W as F,a6 as N,o as P,e as $}from"./index-EcuFIS2a.js";import{D as z,o as D,a as U}from"./schema-FDf70VFI.js";import{r as k}from"./task-board-Dip4Wu9j.js";const b={organizationId:"",sidebar_items:null,enabled_plugins:null,coding_agent_mcp_excluded:null,registry_config:null,simple_mode:null,default_home_agents:null,flags:null},O={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function C(t,e){return{queryKey:A.organizationSettings(e),queryFn:async()=>{try{return await x(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...b,organizationId:e}}},staleTime:6e4}}function d(t){const e=r.c(6),{org:n}=E();let s;e[0]!==n.id||e[1]!==n.slug?(s=C(n.slug,n.id),e[0]=n.id,e[1]=n.slug,e[2]=s):s=e[2];const o=t;let i;return e[3]!==s||e[4]!==o?(i={...s,select:o},e[3]=s,e[4]=o,e[5]=i):i=e[5],T(i)}function V(t,e){const n=r.c(3);let s;n[0]!==t||n[1]!==e?(s=C(e,t),n[0]=t,n[1]=e,n[2]=s):s=n[2];const{data:o}=T(s);return o??null}function m(){const t=r.c(9),{org:e}=E(),n=N(),s=P();let o;t[0]!==e||t[1]!==n?(o=async l=>{const u=await n.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...l});if(!u)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return u},t[0]=e,t[1]=n,t[2]=o):o=t[2];let i;t[3]!==e||t[4]!==s?(i=l=>{s.setQueryData(A.organizationSettings(e.id),u=>({...u??b,...l}))},t[3]=e,t[4]=s,t[5]=i):i=t[5];let a;return t[6]!==o||t[7]!==i?(a={mutationFn:o,onSuccess:i},t[6]=o,t[7]=i,t[8]=a):a=t[8],$(a)}function L(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_search:t.tiers.web_search??null,deep_research:t.tiers.deep_research??null}}:O}function H(){const{data:t}=d(Q);return t??O}function Q(t){return L(t.simple_mode)}function J(){const t=r.c(7),e=m();let n,s;t[0]!==e?(n=(i,a)=>e.mutate({simple_mode:i},a),s=(i,a)=>e.mutateAsync({simple_mode:i},a),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function X(){return c("reports_only")}function c(t){const e=r.c(5);let n;e[0]!==t?(n=i=>D(i.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s}=d(n);let o;return e[2]!==s||e[3]!==t?(o=s??z.has(t),e[2]=s,e[3]=t,e[4]=o):o=e[4],o}function G(t){return!!t&&t.trim().toLowerCase().endsWith("@deco.cx")}function tt(){const{data:t}=h.useSession();return G(t?.user?.email)}function et(){const t=r.c(9),{data:e}=h.useSession(),n=w();let s;t[0]!==n.auth.localMode||t[1]!==e?.user?.email?(s=n.auth.localMode===!0||G(e?.user?.email),t[0]=n.auth.localMode,t[1]=e?.user?.email,t[2]=s):s=t[2];const o=s,i=n.hostingControlPlaneGa===!0,a=n.monitorGa===!0,l=c("hosting_enabled"),u=c("deco_analytics_enabled"),I=c("e2e_enabled"),M=c("monitor_enabled"),R=c("experiments_enabled"),g=o||i||l,_=o||i||u,p=o||i||I,y=o||a||M,S=o||i||R;let f;return t[3]!==g||t[4]!==_||t[5]!==p||t[6]!==y||t[7]!==S?(f={hosting:g,analytics:_,e2e:p,monitor:y,experiments:S},t[3]=g,t[4]=_,t[5]=p,t[6]=y,t[7]=S,t[8]=f):f=t[8],f}function nt(){const{data:t}=d(v);return t??!1}function v(t){return U(t.flags)}function st(){const{data:t}=d(K);return t??!0}function K(t){return k(t.flags)}function ot(){const t=r.c(7),e=m();let n,s;t[0]!==e?(n=(i,a,l)=>e.mutate({flags:{[i]:a}},l),s=(i,a,l)=>e.mutateAsync({flags:{[i]:a}},l),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function it(){const t=r.c(2),{data:e}=d(Y);let n;return t[0]!==e?(n=e??[],t[0]=e,t[1]=n):n=t[1],n}function Y(t){return t.coding_agent_mcp_excluded}function at(){const t=r.c(5),e=m();let n;t[0]!==e?(n=(o,i)=>e.mutate({coding_agent_mcp_excluded:o},i),t[0]=e,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s={...e,mutate:n},t[2]=e,t[3]=n,t[4]=s):s=t[4],s}function q(){const{data:t}=d(W);return t??null}function W(t){return t.registry_config}function lt(){const t=r.c(7),e=m();let n,s;t[0]!==e?(n=(i,a)=>e.mutate({registry_config:i},a),s=(i,a)=>e.mutateAsync({registry_config:i},a),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function rt(){const t=r.c(5),{org:e}=E(),n=q();let s;t[0]!==e.id?(s=F.REGISTRY(e.id),t[0]=e.id,t[1]=s):s=t[1];const o=s;let i;return t[2]!==o||t[3]!==n?(i=a=>{if(!n)return a===o;const l=n.registries[a];return l?l.enabled:a===o},t[2]=o,t[3]=n,t[4]=i):i=t[4],i}export{c as a,V as b,et as c,H as d,rt as e,q as f,st as g,nt as h,ot as i,it as j,at as k,J as l,lt as m,tt as n,X as u};
1
+ import{a as h,c as r,aQ as w,a0 as E,m as T,aE as x,K as A,W as F,a6 as N,o as P,e as $}from"./index-CC7J7MsT.js";import{D as z,o as D,a as U}from"./schema-CStbpjQf.js";import{r as k}from"./task-board-BtEMyO1f.js";const b={organizationId:"",sidebar_items:null,enabled_plugins:null,coding_agent_mcp_excluded:null,registry_config:null,simple_mode:null,default_home_agents:null,flags:null},O={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function C(t,e){return{queryKey:A.organizationSettings(e),queryFn:async()=>{try{return await x(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...b,organizationId:e}}},staleTime:6e4}}function d(t){const e=r.c(6),{org:n}=E();let s;e[0]!==n.id||e[1]!==n.slug?(s=C(n.slug,n.id),e[0]=n.id,e[1]=n.slug,e[2]=s):s=e[2];const o=t;let i;return e[3]!==s||e[4]!==o?(i={...s,select:o},e[3]=s,e[4]=o,e[5]=i):i=e[5],T(i)}function V(t,e){const n=r.c(3);let s;n[0]!==t||n[1]!==e?(s=C(e,t),n[0]=t,n[1]=e,n[2]=s):s=n[2];const{data:o}=T(s);return o??null}function m(){const t=r.c(9),{org:e}=E(),n=N(),s=P();let o;t[0]!==e||t[1]!==n?(o=async l=>{const u=await n.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...l});if(!u)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return u},t[0]=e,t[1]=n,t[2]=o):o=t[2];let i;t[3]!==e||t[4]!==s?(i=l=>{s.setQueryData(A.organizationSettings(e.id),u=>({...u??b,...l}))},t[3]=e,t[4]=s,t[5]=i):i=t[5];let a;return t[6]!==o||t[7]!==i?(a={mutationFn:o,onSuccess:i},t[6]=o,t[7]=i,t[8]=a):a=t[8],$(a)}function L(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_search:t.tiers.web_search??null,deep_research:t.tiers.deep_research??null}}:O}function H(){const{data:t}=d(Q);return t??O}function Q(t){return L(t.simple_mode)}function J(){const t=r.c(7),e=m();let n,s;t[0]!==e?(n=(i,a)=>e.mutate({simple_mode:i},a),s=(i,a)=>e.mutateAsync({simple_mode:i},a),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function X(){return c("reports_only")}function c(t){const e=r.c(5);let n;e[0]!==t?(n=i=>D(i.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s}=d(n);let o;return e[2]!==s||e[3]!==t?(o=s??z.has(t),e[2]=s,e[3]=t,e[4]=o):o=e[4],o}function G(t){return!!t&&t.trim().toLowerCase().endsWith("@deco.cx")}function tt(){const{data:t}=h.useSession();return G(t?.user?.email)}function et(){const t=r.c(9),{data:e}=h.useSession(),n=w();let s;t[0]!==n.auth.localMode||t[1]!==e?.user?.email?(s=n.auth.localMode===!0||G(e?.user?.email),t[0]=n.auth.localMode,t[1]=e?.user?.email,t[2]=s):s=t[2];const o=s,i=n.hostingControlPlaneGa===!0,a=n.monitorGa===!0,l=c("hosting_enabled"),u=c("deco_analytics_enabled"),I=c("e2e_enabled"),M=c("monitor_enabled"),R=c("experiments_enabled"),g=o||i||l,_=o||i||u,p=o||i||I,y=o||a||M,S=o||i||R;let f;return t[3]!==g||t[4]!==_||t[5]!==p||t[6]!==y||t[7]!==S?(f={hosting:g,analytics:_,e2e:p,monitor:y,experiments:S},t[3]=g,t[4]=_,t[5]=p,t[6]=y,t[7]=S,t[8]=f):f=t[8],f}function nt(){const{data:t}=d(v);return t??!1}function v(t){return U(t.flags)}function st(){const{data:t}=d(K);return t??!0}function K(t){return k(t.flags)}function ot(){const t=r.c(7),e=m();let n,s;t[0]!==e?(n=(i,a,l)=>e.mutate({flags:{[i]:a}},l),s=(i,a,l)=>e.mutateAsync({flags:{[i]:a}},l),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function it(){const t=r.c(2),{data:e}=d(Y);let n;return t[0]!==e?(n=e??[],t[0]=e,t[1]=n):n=t[1],n}function Y(t){return t.coding_agent_mcp_excluded}function at(){const t=r.c(5),e=m();let n;t[0]!==e?(n=(o,i)=>e.mutate({coding_agent_mcp_excluded:o},i),t[0]=e,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s={...e,mutate:n},t[2]=e,t[3]=n,t[4]=s):s=t[4],s}function q(){const{data:t}=d(W);return t??null}function W(t){return t.registry_config}function lt(){const t=r.c(7),e=m();let n,s;t[0]!==e?(n=(i,a)=>e.mutate({registry_config:i},a),s=(i,a)=>e.mutateAsync({registry_config:i},a),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function rt(){const t=r.c(5),{org:e}=E(),n=q();let s;t[0]!==e.id?(s=F.REGISTRY(e.id),t[0]=e.id,t[1]=s):s=t[1];const o=s;let i;return t[2]!==o||t[3]!==n?(i=a=>{if(!n)return a===o;const l=n.registries[a];return l?l.enabled:a===o},t[2]=o,t[3]=n,t[4]=i):i=t[4],i}export{c as a,V as b,et as c,H as d,rt as e,q as f,st as g,nt as h,ot as i,it as j,at as k,J as l,lt as m,tt as n,X as u};
@@ -1 +1 @@
1
- import{c as p,f as g,u as S,cX as _,d as b,k,cY as P,cZ as E}from"./index-EcuFIS2a.js";import{b as I}from"./thread-route-CHwqHPf_.js";import{a as R}from"./use-project-scope-CCxyXvEU.js";function x(e){const t=e.destination==="agent",a={thread:t?e.previous.thread:void 0,sidepanel:e.previous.sidepanel,autosend:t?e.previous.autosend:void 0};return{...e.update?e.update(a):a,mainpanel:void 0}}function T(){const e=p.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={structuralSharing:!0,select:j},e[0]=t):t=e[0],k(t)}function j(e){for(let t=e.matches.length-1;t>=0;t--){const a=e.matches[t]?.staticData;if(a?.mainView||a?.siteEditorView)return{mainView:a.mainView,siteEditorView:a.siteEditorView}}return{mainView:void 0,siteEditorView:void 0}}function A(){const e=p.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const a=g(t);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[1]=o):o=e[1];const i=S(o),s={file:"file"in i&&typeof i.file=="string"?i.file:void 0,key:"key"in i&&typeof i.key=="string"?i.key:void 0,path:"path"in i&&typeof i.path=="string"?i.path:void 0},{mainView:r,siteEditorView:n}=T();return _({mainView:r,siteEditorView:n,params:a,search:s})}function D(){const e=p.c(11),t=b();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const o=g(a),i=I(),s=R(),r=o.org??"";let n;e[1]!==t||e[2]!==r||e[3]!==i||e[4]!==s?(n=(u,d)=>{const h=P(u),v=d?.virtualmcpid!==void 0||s!==null?"project":"organization",V=h.kind==="org-destination"||h.kind==="project-destination"&&v==="organization",w=y=>x({previous:y,destination:V?"organization":"agent",update:d?.search});E(t,{org:r,agentId:d?.virtualmcpid??i,tabId:u,destinationScope:v,search:w,replace:d?.replace??!0})},e[1]=t,e[2]=r,e[3]=i,e[4]=s,e[5]=n):n=e[5];const m=n;let c;e[6]!==t?(c=u=>t({to:".",search:z,replace:u?.replace??!0}),e[6]=t,e[7]=c):c=e[7];const f=c;let l;return e[8]!==f||e[9]!==m?(l={openPanel:m,closePanel:f},e[8]=f,e[9]=m,e[10]=l):l=e[10],l}function z(e){return{...e,mainpanel:!1,sidepanel:!0}}export{D as a,x as r,A as u};
1
+ import{c as p,f as g,u as S,cX as _,d as b,k,cY as P,cZ as E}from"./index-CC7J7MsT.js";import{b as I}from"./thread-route-DnE31jZ2.js";import{a as R}from"./use-project-scope-azWGklpf.js";function x(e){const t=e.destination==="agent",a={thread:t?e.previous.thread:void 0,sidepanel:e.previous.sidepanel,autosend:t?e.previous.autosend:void 0};return{...e.update?e.update(a):a,mainpanel:void 0}}function T(){const e=p.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={structuralSharing:!0,select:j},e[0]=t):t=e[0],k(t)}function j(e){for(let t=e.matches.length-1;t>=0;t--){const a=e.matches[t]?.staticData;if(a?.mainView||a?.siteEditorView)return{mainView:a.mainView,siteEditorView:a.siteEditorView}}return{mainView:void 0,siteEditorView:void 0}}function A(){const e=p.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const a=g(t);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[1]=o):o=e[1];const i=S(o),s={file:"file"in i&&typeof i.file=="string"?i.file:void 0,key:"key"in i&&typeof i.key=="string"?i.key:void 0,path:"path"in i&&typeof i.path=="string"?i.path:void 0},{mainView:r,siteEditorView:n}=T();return _({mainView:r,siteEditorView:n,params:a,search:s})}function D(){const e=p.c(11),t=b();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const o=g(a),i=I(),s=R(),r=o.org??"";let n;e[1]!==t||e[2]!==r||e[3]!==i||e[4]!==s?(n=(u,d)=>{const h=P(u),v=d?.virtualmcpid!==void 0||s!==null?"project":"organization",V=h.kind==="org-destination"||h.kind==="project-destination"&&v==="organization",w=y=>x({previous:y,destination:V?"organization":"agent",update:d?.search});E(t,{org:r,agentId:d?.virtualmcpid??i,tabId:u,destinationScope:v,search:w,replace:d?.replace??!0})},e[1]=t,e[2]=r,e[3]=i,e[4]=s,e[5]=n):n=e[5];const m=n;let c;e[6]!==t?(c=u=>t({to:".",search:z,replace:u?.replace??!0}),e[6]=t,e[7]=c):c=e[7];const f=c;let l;return e[8]!==f||e[9]!==m?(l={openPanel:m,closePanel:f},e[8]=f,e[9]=m,e[10]=l):l=e[10],l}function z(e){return{...e,mainpanel:!1,sidepanel:!0}}export{D as a,x as r,A as u};
@@ -1 +1 @@
1
- import{c as h,a0 as x,aQ as A,m as _,K as I}from"./index-EcuFIS2a.js";import{m as R}from"./match-site-slug-config-D3fUJ6vX.js";import{a as C}from"./use-file-configs-6ygOocDG.js";import{c as v}from"./use-organization-settings-DvtBymY3.js";import{r as D}from"./site-slug-uya6Wp4-.js";const a=["overview","reports","board","site-editor","assets","hosting","e2e","analytics","cdn","automations","experiments"],O=["overview","reports","board","site-editor"],T=1,W=["assets","hosting","e2e","analytics","cdn","experiments"];function k(t,e,s){if(!t)return{project:s??null,resolvedScopeId:null};const n=e?.id===t?e:s?.id===t?s:null;return{project:n,resolvedScopeId:n?t:null}}function L(t){return t?.sidebarViews!==void 0?t.sidebarViews:t?.ui?.layout?.sidebarViews}function y(t,e){const s=new Set(t??[]);if(e!==T)for(const n of O)s.add(n);return a.filter(n=>s.has(n))}function J(t){return a.some(e=>e===t)}function N(t){return W.some(e=>e===t)}function U(t,e){return{overview:t,reports:t,board:t,"site-editor":t,assets:e.assets,hosting:e.hosting,e2e:e.e2e,analytics:e.analytics,cdn:e.cdn,experiments:e.experiments,automations:!0}}function Y(t,e,s){const n=U(e,s);return t?n:{...n,overview:!0,reports:!0,board:!0}}function z(t,e,s){const n=new Set(y(t,s));return a.filter(r=>e[r]&&n.has(r))}function G(t,e,s){return s||!t?t:(t.type==="preview"||t.type==="content"||t.type==="code"?"site-editor":t.type)===e?{type:"settings"}:t}function H(t){return a.filter(e=>t[e])}function B(t,e,s){return!J(t)||e[t]?!1:N(t)?!(t==="assets"?s.assets:s.siteAccess):!0}function X(t,e,s,n,r){return B(t==="preview"||t==="content"||t==="code"?"site-editor":t,e,s)||t==="content"&&!n.includes("content")||t==="code"&&r&&!n.includes("code")}function Z(t,e,s,n){const r=new Set(y(t,n));return s?r.add(e):r.delete(e),a.filter(i=>r.has(i))}function M(t){const e=h.c(11),{org:s}=x(),n=A(),r=v(),i=C(),c=D(t),u=n.hostingEnabled===!0,V=n.monitorEnabled===!0||n.auth.localMode===!0,w=(u||V)&&!!c,E=_({queryKey:I.hostingAccess(s.slug,c??""),queryFn:async()=>{const j=await fetch(`/api/${s.slug}/hosting/${encodeURIComponent(c??"")}/access`);return j.ok?await j.json():{owned:!1,canWrite:!1}},enabled:w,staleTime:6e4}),l=E.data?.owned===!0,f=!!R(i.data?.configs??[],c),p=u&&l&&r.hosting,g=u&&l&&r.e2e,m=u&&l&&r.analytics,S=V&&l&&r.monitor;let o;e[0]!==r.experiments||e[1]!==f||e[2]!==p||e[3]!==g||e[4]!==m||e[5]!==S?(o={assets:f,hosting:p,e2e:g,analytics:m,cdn:S,experiments:r.experiments},e[0]=r.experiments,e[1]=f,e[2]=p,e[3]=g,e[4]=m,e[5]=S,e[6]=o):o=e[6];const b=!!c&&i.isPending,P=w&&E.isPending;let d;return e[7]!==o||e[8]!==b||e[9]!==P?(d={presence:o,assetsPending:b,siteAccessPending:P},e[7]=o,e[8]=b,e[9]=P,e[10]=d):d=e[10],d}export{W as P,T as a,k as b,Y as c,X as d,y as e,B as f,H as g,G as h,U as p,L as r,z as s,Z as t,M as u};
1
+ import{c as h,a0 as x,aQ as A,m as _,K as I}from"./index-CC7J7MsT.js";import{m as R}from"./match-site-slug-config-D3fUJ6vX.js";import{a as C}from"./use-file-configs-DT6Slpub.js";import{c as v}from"./use-organization-settings-DiOLzOn-.js";import{r as D}from"./site-slug-uya6Wp4-.js";const a=["overview","reports","board","site-editor","assets","hosting","e2e","analytics","cdn","automations","experiments"],O=["overview","reports","board","site-editor"],T=1,W=["assets","hosting","e2e","analytics","cdn","experiments"];function k(t,e,s){if(!t)return{project:s??null,resolvedScopeId:null};const n=e?.id===t?e:s?.id===t?s:null;return{project:n,resolvedScopeId:n?t:null}}function L(t){return t?.sidebarViews!==void 0?t.sidebarViews:t?.ui?.layout?.sidebarViews}function y(t,e){const s=new Set(t??[]);if(e!==T)for(const n of O)s.add(n);return a.filter(n=>s.has(n))}function J(t){return a.some(e=>e===t)}function N(t){return W.some(e=>e===t)}function U(t,e){return{overview:t,reports:t,board:t,"site-editor":t,assets:e.assets,hosting:e.hosting,e2e:e.e2e,analytics:e.analytics,cdn:e.cdn,experiments:e.experiments,automations:!0}}function Y(t,e,s){const n=U(e,s);return t?n:{...n,overview:!0,reports:!0,board:!0}}function z(t,e,s){const n=new Set(y(t,s));return a.filter(r=>e[r]&&n.has(r))}function G(t,e,s){return s||!t?t:(t.type==="preview"||t.type==="content"||t.type==="code"?"site-editor":t.type)===e?{type:"settings"}:t}function H(t){return a.filter(e=>t[e])}function B(t,e,s){return!J(t)||e[t]?!1:N(t)?!(t==="assets"?s.assets:s.siteAccess):!0}function X(t,e,s,n,r){return B(t==="preview"||t==="content"||t==="code"?"site-editor":t,e,s)||t==="content"&&!n.includes("content")||t==="code"&&r&&!n.includes("code")}function Z(t,e,s,n){const r=new Set(y(t,n));return s?r.add(e):r.delete(e),a.filter(i=>r.has(i))}function M(t){const e=h.c(11),{org:s}=x(),n=A(),r=v(),i=C(),c=D(t),u=n.hostingEnabled===!0,V=n.monitorEnabled===!0||n.auth.localMode===!0,w=(u||V)&&!!c,E=_({queryKey:I.hostingAccess(s.slug,c??""),queryFn:async()=>{const j=await fetch(`/api/${s.slug}/hosting/${encodeURIComponent(c??"")}/access`);return j.ok?await j.json():{owned:!1,canWrite:!1}},enabled:w,staleTime:6e4}),l=E.data?.owned===!0,f=!!R(i.data?.configs??[],c),p=u&&l&&r.hosting,g=u&&l&&r.e2e,m=u&&l&&r.analytics,S=V&&l&&r.monitor;let o;e[0]!==r.experiments||e[1]!==f||e[2]!==p||e[3]!==g||e[4]!==m||e[5]!==S?(o={assets:f,hosting:p,e2e:g,analytics:m,cdn:S,experiments:r.experiments},e[0]=r.experiments,e[1]=f,e[2]=p,e[3]=g,e[4]=m,e[5]=S,e[6]=o):o=e[6];const b=!!c&&i.isPending,P=w&&E.isPending;let d;return e[7]!==o||e[8]!==b||e[9]!==P?(d={presence:o,assetsPending:b,siteAccessPending:P},e[7]=o,e[8]=b,e[9]=P,e[10]=d):d=e[10],d}export{W as P,T as a,k as b,Y as c,X as d,y as e,B as f,H as g,G as h,U as p,L as r,z as s,Z as t,M as u};
@@ -1 +1 @@
1
- import{c as A,f as _,u as R,d as T,ab as k,c_ as C,c$ as N,d0 as j,cZ as E,aa as b}from"./index-EcuFIS2a.js";import{e as w,d as D}from"./use-virtual-mcp-Ji9vcgUj.js";import{b as y,p as H}from"./github-repo-BknN0SVI.js";function F(t){if(typeof t!="object"||t===null)return!1;const s=t.githubRepo?.url;return typeof s=="string"&&s.length>0}function J(t){return y(t).status==="attached"}function K(t){const e=y(t).status;return e==="attached"||e==="detached"}function O(t){const e=new Set;for(const s of t??[]){const n=s.metadata?.liveAgentId;typeof n=="string"&&n&&e.add(s.id)}return e}function L(t,e){if(!t)return null;const s=t.metadata?.liveAgentId;if(typeof s=="string"&&s)return(e??[]).find(a=>a.id===s)?{mode:"dev",targetId:s}:null;const n=(e??[]).find(o=>o.metadata?.liveAgentId===t.id);return n?{mode:"live",targetId:n.id}:null}const G=1;function S(t){const e=t??[],s=O(e);return e.filter(n=>!s.has(n.id)&&!C(n.id)&&!N(n.id)&&!j(n.id))}function M(){const t=A.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const s=_(e);let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},t[1]=n):n=t[1];const o=R(n);if(s.agentId)return s.agentId;let a;return t[2]!==o?(a="virtualmcpid"in o&&typeof o.virtualmcpid=="string"?o.virtualmcpid.trim():void 0,t[2]=o,t[3]=a):a=t[3],a||null}function U(){const t=A.c(16),e=T();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=_(s),o=k(),a=w(),c=S(a),i=M(),P=c.find(r=>r.id===i)??null;let l;t[1]!==a||t[2]!==i?(l=i&&a.length>0&&!a.some(r=>r.id===i)?i:null,t[1]=a,t[2]=i,t[3]=l):l=t[3];const I=D(l),d=P??S(I?[I]:[])[0]??null;let u;t[4]!==o||t[5]!==e||t[6]!==n||t[7]!==i?(u=r=>{if(r===i&&o!==void 0)return;const v=n.org??"",h=V;if(r){E(e,{org:v,agentId:r,tabId:o==="board"||o==="reports"?o:"overview",search:h,replace:!1});return}if(o==="board"){e({to:b.tasks,params:{org:v,taskKey:void 0},search:h});return}e({to:b.home,params:{org:v},search:h})},t[4]=o,t[5]=e,t[6]=n,t[7]=i,t[8]=u):u=t[8];const m=u,g=H(d),p=c.length>=G;let f;return t[9]!==d||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==g||t[14]!==p?(f={scopeId:i,project:d,repo:g,projects:c,hasProjects:p,setScope:m},t[9]=d,t[10]=c,t[11]=i,t[12]=m,t[13]=g,t[14]=p,t[15]=f):f=t[15],f}function V(t){return{...t,virtualmcpid:void 0,thread:void 0,mainpanel:void 0}}export{M as a,F as b,K as c,J as d,L as f,O as g,S as s,U as u};
1
+ import{c as A,f as _,u as R,d as T,ab as k,c_ as C,c$ as N,d0 as j,cZ as E,aa as b}from"./index-CC7J7MsT.js";import{e as w,d as D}from"./use-virtual-mcp-Bt7oX0ej.js";import{b as y,p as H}from"./github-repo-BknN0SVI.js";function F(t){if(typeof t!="object"||t===null)return!1;const s=t.githubRepo?.url;return typeof s=="string"&&s.length>0}function J(t){return y(t).status==="attached"}function K(t){const e=y(t).status;return e==="attached"||e==="detached"}function O(t){const e=new Set;for(const s of t??[]){const n=s.metadata?.liveAgentId;typeof n=="string"&&n&&e.add(s.id)}return e}function L(t,e){if(!t)return null;const s=t.metadata?.liveAgentId;if(typeof s=="string"&&s)return(e??[]).find(a=>a.id===s)?{mode:"dev",targetId:s}:null;const n=(e??[]).find(o=>o.metadata?.liveAgentId===t.id);return n?{mode:"live",targetId:n.id}:null}const G=1;function S(t){const e=t??[],s=O(e);return e.filter(n=>!s.has(n.id)&&!C(n.id)&&!N(n.id)&&!j(n.id))}function M(){const t=A.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const s=_(e);let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},t[1]=n):n=t[1];const o=R(n);if(s.agentId)return s.agentId;let a;return t[2]!==o?(a="virtualmcpid"in o&&typeof o.virtualmcpid=="string"?o.virtualmcpid.trim():void 0,t[2]=o,t[3]=a):a=t[3],a||null}function U(){const t=A.c(16),e=T();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=_(s),o=k(),a=w(),c=S(a),i=M(),P=c.find(r=>r.id===i)??null;let l;t[1]!==a||t[2]!==i?(l=i&&a.length>0&&!a.some(r=>r.id===i)?i:null,t[1]=a,t[2]=i,t[3]=l):l=t[3];const I=D(l),d=P??S(I?[I]:[])[0]??null;let u;t[4]!==o||t[5]!==e||t[6]!==n||t[7]!==i?(u=r=>{if(r===i&&o!==void 0)return;const v=n.org??"",h=V;if(r){E(e,{org:v,agentId:r,tabId:o==="board"||o==="reports"?o:"overview",search:h,replace:!1});return}if(o==="board"){e({to:b.tasks,params:{org:v,taskKey:void 0},search:h});return}e({to:b.home,params:{org:v},search:h})},t[4]=o,t[5]=e,t[6]=n,t[7]=i,t[8]=u):u=t[8];const m=u,g=H(d),p=c.length>=G;let f;return t[9]!==d||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==g||t[14]!==p?(f={scopeId:i,project:d,repo:g,projects:c,hasProjects:p,setScope:m},t[9]=d,t[10]=c,t[11]=i,t[12]=m,t[13]=g,t[14]=p,t[15]=f):f=t[15],f}function V(t){return{...t,virtualmcpid:void 0,thread:void 0,mainpanel:void 0}}export{M as a,F as b,K as c,J as d,L as f,O as g,S as s,U as u};
@@ -1 +1 @@
1
- import{c as C,a0 as R,W as u}from"./index-EcuFIS2a.js";import{u as y}from"./use-connection-BKZRi94S.js";import{f as I}from"./use-organization-settings-DvtBymY3.js";function E(){const e=C.c(19),{org:i}=R(),o=I();let l;e[0]!==i.id?(l=u.REGISTRY(i.id),e[0]=i.id,e[1]=l):l=e[1];const d=l;let f;e[2]!==i.id?(f=u.COMMUNITY_REGISTRY(i.id),e[2]=i.id,e[3]=f):f=e[3];const g=f;let r;e[4]!==g||e[5]!==d?(r=[d,g],e[4]=g,e[5]=d,e[6]=r):r=e[6];let t;if(e[7]!==o||e[8]!==r){if(t=new Set(r),o?.registries){let s;e[10]!==o.registries?(s=Object.keys(o.registries),e[10]=o.registries,e[11]=s):s=e[11];for(const m of s)t.add(m)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const a=y();let n;e[12]!==a?(n=a??[],e[12]=a,e[13]=n):n=e[13];let c;if(e[14]!==t||e[15]!==n){let s;e[17]!==t?(s=m=>t.has(m.id),e[17]=t,e[18]=s):s=e[18],c=n.filter(s),e[14]=t,e[15]=n,e[16]=c}else c=e[16];return c}export{E as u};
1
+ import{c as C,a0 as R,W as u}from"./index-CC7J7MsT.js";import{u as y}from"./use-connection-DAR6kA6F.js";import{f as I}from"./use-organization-settings-DiOLzOn-.js";function E(){const e=C.c(19),{org:i}=R(),o=I();let l;e[0]!==i.id?(l=u.REGISTRY(i.id),e[0]=i.id,e[1]=l):l=e[1];const d=l;let f;e[2]!==i.id?(f=u.COMMUNITY_REGISTRY(i.id),e[2]=i.id,e[3]=f):f=e[3];const g=f;let r;e[4]!==g||e[5]!==d?(r=[d,g],e[4]=g,e[5]=d,e[6]=r):r=e[6];let t;if(e[7]!==o||e[8]!==r){if(t=new Set(r),o?.registries){let s;e[10]!==o.registries?(s=Object.keys(o.registries),e[10]=o.registries,e[11]=s):s=e[11];for(const m of s)t.add(m)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const a=y();let n;e[12]!==a?(n=a??[],e[12]=a,e[13]=n):n=e[13];let c;if(e[14]!==t||e[15]!==n){let s;e[17]!==t?(s=m=>t.has(m.id),e[17]=t,e[18]=s):s=e[18],c=n.filter(s),e[14]=t,e[15]=n,e[16]=c}else c=e[16];return c}export{E as u};
@@ -1 +1 @@
1
- import{c as N,a0 as Q,o as k}from"./index-EcuFIS2a.js";import{a as E,c as P}from"./use-virtual-mcp-Ji9vcgUj.js";import{r as z}from"./serial-task-queue-CGOeQgpr.js";function O(t){return(t??"").normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"user"}function B(t){return t?.name||t?.email?.split("@")[0]||void 0}function F(t){const e=O(t),s=Date.now().toString(36).split("").reverse().join("");return`${e}-${s}`}function T(t,e){return t.some(s=>s.branch===e.branch)?t:[...t,e]}function V(t,e){return t.filter(s=>s.branch!==e)}function _(t,e,s){return t.map(o=>o.branch===e?{...o,name:s}:o)}const S=["orange","violet","blue","pink","amber","teal"];function K(t){return S[t%S.length]}function W(t,e){const s=`${e} `,o=t.reduce((u,n)=>{if(!n.name.startsWith(s))return u;const l=Number(n.name.slice(s.length));return Number.isInteger(l)&&l>u?l:u},0);return`${e} ${o+1}`}const j={orange:"bg-orange-500",violet:"bg-violet-500",blue:"bg-blue-500",pink:"bg-pink-500",amber:"bg-amber-500",teal:"bg-teal-500"};function G(t){return t&&j[t]||"bg-muted-foreground"}function H(t){const e=N.c(26),s=E(t),o=P(),{org:u}=Q(),n=k();let l;e[0]!==s?.metadata?.releases?(l=s?.metadata?.releases??[],e[0]=s?.metadata?.releases,e[1]=l):l=e[1];const f=l;let b;e[2]!==u||e[3]!==t?(b=a=>a[1]===u.id&&a[3]==="collection"&&a[4]==="VIRTUAL_MCP"&&a[5]===t,e[2]=u,e[3]=t,e[4]=b):b=e[4];const m=b;let d;e[5]!==m||e[6]!==n||e[7]!==f?(d=()=>{for(const[,a]of n.getQueriesData({predicate:r=>m(r.queryKey)}))if(a?.item)return a.item.metadata?.releases??[];return f},e[5]=m,e[6]=n,e[7]=f,e[8]=d):d=e[8];const $=d;let p;e[9]!==o||e[10]!==m||e[11]!==n||e[12]!==$||e[13]!==t?(p=a=>z(`vm-releases:${t}`,async()=>{const r=$(),g=a(r);if(g!==r){n.setQueriesData({predicate:c=>m(c.queryKey)},c=>c?.item?{item:{...c.item,metadata:{...c.item.metadata,releases:g}}}:c);try{await o.update.mutateAsync({id:t,data:{metadata:{releases:g}}})}catch(c){const w=c;throw n.invalidateQueries({predicate:A=>m(A.queryKey)}),w}}}),e[9]=o,e[10]=m,e[11]=n,e[12]=$,e[13]=t,e[14]=p):p=e[14];const i=p;let R;e[15]!==i?(R=a=>i(r=>T(r,a)),e[15]=i,e[16]=R):R=e[16];const y=R;let h;e[17]!==i?(h=(a,r)=>i(g=>_(g,a,r)),e[17]=i,e[18]=h):h=e[18];const D=h;let C;e[19]!==i?(C=a=>i(r=>V(r,a)),e[19]=i,e[20]=C):C=e[20];const L=C;let x;return e[21]!==y||e[22]!==L||e[23]!==f||e[24]!==D?(x={releases:f,createRelease:y,renameRelease:D,deleteRelease:L},e[21]=y,e[22]=L,e[23]=f,e[24]=D,e[25]=x):x=e[25],x}export{W as a,B as b,F as g,K as n,G as r,H as u};
1
+ import{c as N,a0 as Q,o as k}from"./index-CC7J7MsT.js";import{a as E,c as P}from"./use-virtual-mcp-Bt7oX0ej.js";import{r as z}from"./serial-task-queue-CGOeQgpr.js";function O(t){return(t??"").normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"user"}function B(t){return t?.name||t?.email?.split("@")[0]||void 0}function F(t){const e=O(t),s=Date.now().toString(36).split("").reverse().join("");return`${e}-${s}`}function T(t,e){return t.some(s=>s.branch===e.branch)?t:[...t,e]}function V(t,e){return t.filter(s=>s.branch!==e)}function _(t,e,s){return t.map(o=>o.branch===e?{...o,name:s}:o)}const S=["orange","violet","blue","pink","amber","teal"];function K(t){return S[t%S.length]}function W(t,e){const s=`${e} `,o=t.reduce((u,n)=>{if(!n.name.startsWith(s))return u;const l=Number(n.name.slice(s.length));return Number.isInteger(l)&&l>u?l:u},0);return`${e} ${o+1}`}const j={orange:"bg-orange-500",violet:"bg-violet-500",blue:"bg-blue-500",pink:"bg-pink-500",amber:"bg-amber-500",teal:"bg-teal-500"};function G(t){return t&&j[t]||"bg-muted-foreground"}function H(t){const e=N.c(26),s=E(t),o=P(),{org:u}=Q(),n=k();let l;e[0]!==s?.metadata?.releases?(l=s?.metadata?.releases??[],e[0]=s?.metadata?.releases,e[1]=l):l=e[1];const f=l;let b;e[2]!==u||e[3]!==t?(b=a=>a[1]===u.id&&a[3]==="collection"&&a[4]==="VIRTUAL_MCP"&&a[5]===t,e[2]=u,e[3]=t,e[4]=b):b=e[4];const m=b;let d;e[5]!==m||e[6]!==n||e[7]!==f?(d=()=>{for(const[,a]of n.getQueriesData({predicate:r=>m(r.queryKey)}))if(a?.item)return a.item.metadata?.releases??[];return f},e[5]=m,e[6]=n,e[7]=f,e[8]=d):d=e[8];const $=d;let p;e[9]!==o||e[10]!==m||e[11]!==n||e[12]!==$||e[13]!==t?(p=a=>z(`vm-releases:${t}`,async()=>{const r=$(),g=a(r);if(g!==r){n.setQueriesData({predicate:c=>m(c.queryKey)},c=>c?.item?{item:{...c.item,metadata:{...c.item.metadata,releases:g}}}:c);try{await o.update.mutateAsync({id:t,data:{metadata:{releases:g}}})}catch(c){const w=c;throw n.invalidateQueries({predicate:A=>m(A.queryKey)}),w}}}),e[9]=o,e[10]=m,e[11]=n,e[12]=$,e[13]=t,e[14]=p):p=e[14];const i=p;let R;e[15]!==i?(R=a=>i(r=>T(r,a)),e[15]=i,e[16]=R):R=e[16];const y=R;let h;e[17]!==i?(h=(a,r)=>i(g=>_(g,a,r)),e[17]=i,e[18]=h):h=e[18];const D=h;let C;e[19]!==i?(C=a=>i(r=>V(r,a)),e[19]=i,e[20]=C):C=e[20];const L=C;let x;return e[21]!==y||e[22]!==L||e[23]!==f||e[24]!==D?(x={releases:f,createRelease:y,renameRelease:D,deleteRelease:L},e[21]=y,e[22]=L,e[23]=f,e[24]=D,e[25]=x):x=e[25],x}export{W as a,B as b,F as g,K as n,G as r,H as u};
@@ -1 +1 @@
1
- import{c as N,a0 as Q,W as F,z as A,m as f,K as T,dL as h,J as K,C as D}from"./index-EcuFIS2a.js";import{m as O}from"./use-mcp-client-B_gcvvCy.js";import{u as L}from"./companions-core-WMNDPuPs.js";function M(n){return n?n.run_in_progress?"generating":n.scanned_at?"ready":"none":"none"}function U(n){return n.connectionQueryPending?!0:!n.hasConnection||n.cdClientFailed?!1:n.diagnosticQueryPending}const b=2e4;function q(n){if(typeof n!="string"||!n)return null;try{return new URL(n).hostname||null}catch{return null}}function j(){const n=N.c(24),{org:e}=Q(),t=F.REPORTS(e.id);let l;n[0]!==e.id||n[1]!==e.slug?(l=O({connectionId:A,orgId:e.id,orgSlug:e.slug}),n[0]=e.id,n[1]=e.slug,n[2]=l):l=n[2];const{data:p}=f(l),u=f({queryKey:T.reportsConnection(e.id,t),enabled:!!p,retry:!1,staleTime:6e4,queryFn:async()=>{if(!p)throw new Error("selfClient not ready");const R=await p.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:t}});return L(R)}}),m=u.data?.item??null,{data:s,isError:y}=f({...O({connectionId:t,orgId:e.id,orgSlug:e.slug}),enabled:!!m}),C=T.reportsDiagnostic(e.id,t),E=!!s;let i;n[3]!==s?(i=async()=>{if(!s)throw new Error("cdClient not ready");const R=await s.callTool({name:h,arguments:{}});return L(R).diagnostic??null},n[3]=s,n[4]=i):i=n[4];let d;n[5]!==C||n[6]!==E||n[7]!==i?(d={queryKey:C,enabled:E,retry:1,refetchInterval:v,queryFn:i},n[5]=C,n[6]=E,n[7]=i,n[8]=d):d=n[8];const r=f(d),o=m?.metadata?.siteUrl,P=r.data??null,w=r.isSuccess,I=!!m;let a;n[9]!==y||n[10]!==u.isPending||n[11]!==r.isPending||n[12]!==I?(a=U({connectionQueryPending:u.isPending,hasConnection:I,cdClientFailed:y,diagnosticQueryPending:r.isPending}),n[9]=y,n[10]=u.isPending,n[11]=r.isPending,n[12]=I,n[13]=a):a=n[13];const S=typeof o=="string"&&o?o:null;let c;n[14]!==o?(c=q(o),n[14]=o,n[15]=c):c=n[15];const _=s??null;let g;return n[16]!==t||n[17]!==r.isSuccess||n[18]!==c||n[19]!==_||n[20]!==P||n[21]!==a||n[22]!==S?(g={diagnostic:P,isSuccess:w,isLoading:a,siteUrl:S,host:c,connectionId:t,cdClient:_},n[16]=t,n[17]=r.isSuccess,n[18]=c,n[19]=_,n[20]=P,n[21]=a,n[22]=S,n[23]=g):g=n[23],g}function v(n){return n.state.status!=="error"&&M(n.state.data)==="generating"?b:!1}function z(n,e){return{to:K.app,params:{org:n.slug,agentId:D(n.id),connectionId:e,toolName:h},search:{}}}export{M as d,z as r,j as u};
1
+ import{c as N,a0 as Q,W as F,z as A,m as f,K as T,dL as h,J as K,C as D}from"./index-CC7J7MsT.js";import{m as O}from"./use-mcp-client-jmamuSRM.js";import{u as L}from"./companions-core-WMNDPuPs.js";function M(n){return n?n.run_in_progress?"generating":n.scanned_at?"ready":"none":"none"}function U(n){return n.connectionQueryPending?!0:!n.hasConnection||n.cdClientFailed?!1:n.diagnosticQueryPending}const b=2e4;function q(n){if(typeof n!="string"||!n)return null;try{return new URL(n).hostname||null}catch{return null}}function j(){const n=N.c(24),{org:e}=Q(),t=F.REPORTS(e.id);let l;n[0]!==e.id||n[1]!==e.slug?(l=O({connectionId:A,orgId:e.id,orgSlug:e.slug}),n[0]=e.id,n[1]=e.slug,n[2]=l):l=n[2];const{data:p}=f(l),u=f({queryKey:T.reportsConnection(e.id,t),enabled:!!p,retry:!1,staleTime:6e4,queryFn:async()=>{if(!p)throw new Error("selfClient not ready");const R=await p.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:t}});return L(R)}}),m=u.data?.item??null,{data:s,isError:y}=f({...O({connectionId:t,orgId:e.id,orgSlug:e.slug}),enabled:!!m}),C=T.reportsDiagnostic(e.id,t),E=!!s;let i;n[3]!==s?(i=async()=>{if(!s)throw new Error("cdClient not ready");const R=await s.callTool({name:h,arguments:{}});return L(R).diagnostic??null},n[3]=s,n[4]=i):i=n[4];let d;n[5]!==C||n[6]!==E||n[7]!==i?(d={queryKey:C,enabled:E,retry:1,refetchInterval:v,queryFn:i},n[5]=C,n[6]=E,n[7]=i,n[8]=d):d=n[8];const r=f(d),o=m?.metadata?.siteUrl,P=r.data??null,w=r.isSuccess,I=!!m;let a;n[9]!==y||n[10]!==u.isPending||n[11]!==r.isPending||n[12]!==I?(a=U({connectionQueryPending:u.isPending,hasConnection:I,cdClientFailed:y,diagnosticQueryPending:r.isPending}),n[9]=y,n[10]=u.isPending,n[11]=r.isPending,n[12]=I,n[13]=a):a=n[13];const S=typeof o=="string"&&o?o:null;let c;n[14]!==o?(c=q(o),n[14]=o,n[15]=c):c=n[15];const _=s??null;let g;return n[16]!==t||n[17]!==r.isSuccess||n[18]!==c||n[19]!==_||n[20]!==P||n[21]!==a||n[22]!==S?(g={diagnostic:P,isSuccess:w,isLoading:a,siteUrl:S,host:c,connectionId:t,cdClient:_},n[16]=t,n[17]=r.isSuccess,n[18]=c,n[19]=_,n[20]=P,n[21]=a,n[22]=S,n[23]=g):g=n[23],g}function v(n){return n.state.status!=="error"&&M(n.state.data)==="generating"?b:!1}function z(n,e){return{to:K.app,params:{org:n.slug,agentId:D(n.id),connectionId:e,toolName:h},search:{}}}export{M as d,z as r,j as u};
@@ -1 +1 @@
1
- import{c as a,k as o}from"./index-EcuFIS2a.js";function c(){const e=a.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:r},e[0]=t):t=e[0],o(t)}function r(e){for(let t=e.matches.length-1;t>=0;t--){const n=e.matches[t]?.staticData.defaultMain;if(n)return n}return null}export{c as u};
1
+ import{c as a,k as o}from"./index-CC7J7MsT.js";function c(){const e=a.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:r},e[0]=t):t=e[0],o(t)}function r(e){for(let t=e.matches.length-1;t>=0;t--){const n=e.matches[t]?.staticData.defaultMain;if(n)return n}return null}export{c as u};
@@ -1 +1 @@
1
- import{c as u,a0 as c,a6 as r,K as l,D as d,o as f,e as S}from"./index-EcuFIS2a.js";function C(){const e=u.c(7),{org:i}=c(),o=r();let a;e[0]!==i.id?(a=l.secrets(i.id),e[0]=i.id,e[1]=a):a=e[1];let t;e[2]!==o?(t=async()=>await o.call("SECRET_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;e[4]!==a||e[5]!==t?(s={queryKey:a,staleTime:6e4,queryFn:t},e[4]=a,e[5]=t,e[6]=s):s=e[6];const{data:n}=d(s);return n.secrets}function m(){const e=u.c(8),{org:i}=c(),o=r(),a=f();let t;e[0]!==o?(t=async y=>await o.call("SECRET_CREATE",{...y}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==i||e[3]!==a?(s=()=>{a.invalidateQueries({queryKey:l.secrets(i.id)})},e[2]=i,e[3]=a,e[4]=s):s=e[4];let n;return e[5]!==t||e[6]!==s?(n={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=n):n=e[7],S(n)}export{m as a,C as u};
1
+ import{c as u,a0 as c,a6 as r,K as l,D as d,o as f,e as S}from"./index-CC7J7MsT.js";function C(){const e=u.c(7),{org:i}=c(),o=r();let a;e[0]!==i.id?(a=l.secrets(i.id),e[0]=i.id,e[1]=a):a=e[1];let t;e[2]!==o?(t=async()=>await o.call("SECRET_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;e[4]!==a||e[5]!==t?(s={queryKey:a,staleTime:6e4,queryFn:t},e[4]=a,e[5]=t,e[6]=s):s=e[6];const{data:n}=d(s);return n.secrets}function m(){const e=u.c(8),{org:i}=c(),o=r(),a=f();let t;e[0]!==o?(t=async y=>await o.call("SECRET_CREATE",{...y}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==i||e[3]!==a?(s=()=>{a.invalidateQueries({queryKey:l.secrets(i.id)})},e[2]=i,e[3]=a,e[4]=s):s=e[4];let n;return e[5]!==t||e[6]!==s?(n={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=n):n=e[7],S(n)}export{m as a,C as u};
@@ -1 +1 @@
1
- import{c as D,b as K,r as w,j as r,l as Q}from"./index-EcuFIS2a.js";import{z as q}from"./agent-icon-CTsmTxHg.js";import{i as Y}from"./SearchMd-Bb5gjLcX.js";import{D as Z,b as ee,d as te,c as re}from"./dialog-AoC07APJ.js";import{I as se}from"./input-Buz_7xoG.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-B5wMaHtP.js";const fe=12,z=new Set,F=new Set;function ue(){for(const s of F)s()}function de(s){return z.has(s)?!0:z.size>=fe?!1:(z.add(s),!0)}function J(s){z.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=D.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=D.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 ye(s){const e=D.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,N,R,y,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 W=t&&i&&o?le(i,o):[],_=i?oe(i):"",G=o?ie(o):void 0,V=new Map;if(t&&_)for(const p of W)V.set(p.resolveType,X(f,_,p.previewBlock,G));const M=a.trim().toLowerCase(),H=M?W.filter(p=>p.title.toLowerCase().includes(M)||p.resolveType.toLowerCase().includes(M)||p.description?.toLowerCase().includes(M)):W;h=Z,C=t,T=d,m=ee,R="top-3 right-3",y="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,N="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]=N,e[14]=R,e[15]=y,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],N=e[13],R=e[14],y=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]!==N?(I=r.jsx("div",{ref:j,className:N,children:P}),e[36]=P,e[37]=j,e[38]=N,e[39]=I):I=e[39];let L;e[40]!==m||e[41]!==I||e[42]!==R||e[43]!==y||e[44]!==g?(L=r.jsxs(m,{closeButtonClassName:R,className:y,children:[g,I]}),e[40]=m,e[41]=I,e[42]=R,e[43]=y,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=D.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{ye as A,Ce as u};
1
+ import{c as D,b as K,r as w,j as r,l as Q}from"./index-CC7J7MsT.js";import{z as q}from"./agent-icon-D5Ih-I28.js";import{i as Y}from"./SearchMd-C6gkQ2l2.js";import{D as Z,b as ee,d as te,c as re}from"./dialog-BKhaq-Xf.js";import{I as se}from"./input-DSV_9cOM.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-D8PgcjtK.js";const fe=12,z=new Set,F=new Set;function ue(){for(const s of F)s()}function de(s){return z.has(s)?!0:z.size>=fe?!1:(z.add(s),!0)}function J(s){z.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=D.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=D.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 ye(s){const e=D.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,N,R,y,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 W=t&&i&&o?le(i,o):[],_=i?oe(i):"",G=o?ie(o):void 0,V=new Map;if(t&&_)for(const p of W)V.set(p.resolveType,X(f,_,p.previewBlock,G));const M=a.trim().toLowerCase(),H=M?W.filter(p=>p.title.toLowerCase().includes(M)||p.resolveType.toLowerCase().includes(M)||p.description?.toLowerCase().includes(M)):W;h=Z,C=t,T=d,m=ee,R="top-3 right-3",y="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,N="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]=N,e[14]=R,e[15]=y,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],N=e[13],R=e[14],y=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]!==N?(I=r.jsx("div",{ref:j,className:N,children:P}),e[36]=P,e[37]=j,e[38]=N,e[39]=I):I=e[39];let L;e[40]!==m||e[41]!==I||e[42]!==R||e[43]!==y||e[44]!==g?(L=r.jsxs(m,{closeButtonClassName:R,className:y,children:[g,I]}),e[40]=m,e[41]=I,e[42]=R,e[43]=y,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=D.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{ye as A,Ce as u};
@@ -1 +1 @@
1
- import{c as h}from"./index-EcuFIS2a.js";import{r as R,d as T,a as k,p as S}from"./thread-intent-CTSjhfEo.js";import{u as j}from"./chat-context-ELO8A2Ar.js";import{a as w}from"./use-virtual-mcp-Ji9vcgUj.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-CC7J7MsT.js";import{r as R,d as T,a as k,p as S}from"./thread-intent-DZx7N_NL.js";import{u as j}from"./chat-context-CVZ1rNGo.js";import{a as w}from"./use-virtual-mcp-Bt7oX0ej.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,a0 as f,a6 as y,m,o as g,e as T,K as l,t as E}from"./index-EcuFIS2a.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 p(){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 C(){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: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 delete tag")}function M(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:_},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 update member tags")}export{p as a,C as b,M as c,A as d,K as u};
1
+ import{c as u,a0 as f,a6 as y,m,o as g,e as T,K as l,t as E}from"./index-CC7J7MsT.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 p(){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 C(){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: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 delete tag")}function M(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:_},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 update member tags")}export{p as a,C as b,M as c,A as d,K as u};
@@ -1 +1 @@
1
- import{c as i,f as T,m as l,a0 as S,a6 as _,K as u,aE as O}from"./index-EcuFIS2a.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 a(t,s){const e=i.c(13),{locator:n}=S(),A=_();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,a,K as u};
1
+ import{c as i,f as T,m as l,a0 as S,a6 as _,K as u,aE as O}from"./index-CC7J7MsT.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 a(t,s){const e=i.c(13),{locator:n}=S(),A=_();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,a,K as u};
@@ -1 +1 @@
1
- import{a0 as o,a6 as c,r as i,D as d,K as m}from"./index-EcuFIS2a.js";import{a as T}from"./hooks-D0dDgrIf.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{a0 as o,a6 as c,r as i,D as d,K as m}from"./index-CC7J7MsT.js";import{a as T}from"./hooks-BFlZlUD7.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,a0 as i,m as l,K as p}from"./index-EcuFIS2a.js";import{f}from"./chat-context-ELO8A2Ar.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,a0 as i,m as l,K as p}from"./index-CC7J7MsT.js";import{f}from"./chat-context-CVZ1rNGo.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-EcuFIS2a.js";import{u as w}from"./use-mobile-BZ15DgEB.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-CC7J7MsT.js";import{u as w}from"./use-mobile-X_9uHXB5.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,a0 as I,z as g,d2 as S,m,d3 as _,d4 as A,K as y,d5 as T,d6 as L,d7 as U}from"./index-EcuFIS2a.js";import{a as p,u as V,m as R}from"./use-mcp-client-B_gcvvCy.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=V(i);return _(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=p(i);let c;t[5]!==l||t[6]!==n||t[7]!==s.id?(c=L(s.id,"VIRTUAL_MCP",l,n),t[5]=l,t[6]=n,t[7]=s.id,t[8]=c):c=t[8];const d=!!l;let u;t[9]!==c||t[10]!==d?(u={...c,enabled:d},t[9]=c,t[10]=d,t[11]=u):u=t[11];const{data:r}=m(u);let a;return t[12]!==r?(a=r??[],t[12]=r,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=p(n),i=o??void 0;let l;t[3]!==s||t[4]!==e.id||t[5]!==i?(l=S(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 d;t[7]!==l||t[8]!==c?(d={...l,enabled:c},t[7]=l,t[8]=c,t[9]=d):d=t[9];const{data:u}=m(d);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=L(t.id,"VIRTUAL_MCP",n,e);return s.select(await o.fetchQuery(s))}function E(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=p(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 d=!!l;let u;t[9]!==c||t[10]!==d?(u={...c,enabled:d},t[9]=c,t[10]=d,t[11]=u):u=t[11];const{data:r}=m(u);let a;t[12]!==r?.items?(a=r?.items??[],t[12]=r?.items,t[13]=a):a=t[13];const P=r?.totalCount,M=r?.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 k(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=V(n);return T(e.id,"VIRTUAL_MCP",o??void 0,s)}function v(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=V(n);let i,l,c;t[3]!==o||t[4]!==e.id?(i=[...o].sort(),c=m,l=y.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 d=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 r;return t[11]!==l||t[12]!==d||t[13]!==u?(r={queryKey:l,enabled:d,staleTime:3e4,queryFn:u},t[11]=l,t[12]=d,t[13]=u,t[14]=r):r=t[14],c(r)}function x(){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=V(e);return A(t.id,"VIRTUAL_MCP",n)}export{k as a,$ as b,x as c,O as d,h as e,w as f,v as g,E as u};
1
+ import{c as C,a0 as I,z as g,d2 as S,m,d3 as _,d4 as A,K as y,d5 as T,d6 as L,d7 as U}from"./index-CC7J7MsT.js";import{a as p,u as V,m as R}from"./use-mcp-client-jmamuSRM.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=V(i);return _(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=p(i);let c;t[5]!==l||t[6]!==n||t[7]!==s.id?(c=L(s.id,"VIRTUAL_MCP",l,n),t[5]=l,t[6]=n,t[7]=s.id,t[8]=c):c=t[8];const d=!!l;let u;t[9]!==c||t[10]!==d?(u={...c,enabled:d},t[9]=c,t[10]=d,t[11]=u):u=t[11];const{data:r}=m(u);let a;return t[12]!==r?(a=r??[],t[12]=r,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=p(n),i=o??void 0;let l;t[3]!==s||t[4]!==e.id||t[5]!==i?(l=S(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 d;t[7]!==l||t[8]!==c?(d={...l,enabled:c},t[7]=l,t[8]=c,t[9]=d):d=t[9];const{data:u}=m(d);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=L(t.id,"VIRTUAL_MCP",n,e);return s.select(await o.fetchQuery(s))}function E(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=p(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 d=!!l;let u;t[9]!==c||t[10]!==d?(u={...c,enabled:d},t[9]=c,t[10]=d,t[11]=u):u=t[11];const{data:r}=m(u);let a;t[12]!==r?.items?(a=r?.items??[],t[12]=r?.items,t[13]=a):a=t[13];const P=r?.totalCount,M=r?.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 k(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=V(n);return T(e.id,"VIRTUAL_MCP",o??void 0,s)}function v(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=V(n);let i,l,c;t[3]!==o||t[4]!==e.id?(i=[...o].sort(),c=m,l=y.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 d=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 r;return t[11]!==l||t[12]!==d||t[13]!==u?(r={queryKey:l,enabled:d,staleTime:3e4,queryFn:u},t[11]=l,t[12]=d,t[13]=u,t[14]=r):r=t[14],c(r)}function x(){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=V(e);return A(t.id,"VIRTUAL_MCP",n)}export{k as a,$ as b,x as c,O as d,h as e,w as f,v as g,E as u};
@@ -0,0 +1 @@
1
+ import{I as u}from"./infiniteQueryObserver-CKT-6XMq.js";import{dF as i}from"./index-CC7J7MsT.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +1 @@
1
- import{dk as Q,dl as y,dm as w,dn as S,dp as C,o as k,dq as x,dr as q,r as p,ds as M,dt as H,du as L,dv as P,dw as O,dx as B,dy as A}from"./index-EcuFIS2a.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 z=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||!w(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=S(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 U({queries:r,...s},e){const t=k(e),i=x(),n=q(),u=p.useMemo(()=>r.map(h=>{const a=t.defaultQueryOptions(h);return a._optimisticResults=i?"isRestoring":"optimistic",a}),[r,t,i]);u.forEach(h=>{M(h);const a=t.getQueryCache().get(h.queryHash);H(h,n,a)}),L(n);const[c]=p.useState(()=>new z(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{U as u};
1
+ import{dk as Q,dl as y,dm as w,dn as S,dp as C,o as k,dq as x,dr as q,r as p,ds as M,dt as H,du as L,dv as P,dw as O,dx as B,dy as A}from"./index-CC7J7MsT.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 z=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||!w(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=S(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 U({queries:r,...s},e){const t=k(e),i=x(),n=q(),u=p.useMemo(()=>r.map(h=>{const a=t.defaultQueryOptions(h);return a._optimisticResults=i?"isRestoring":"optimistic",a}),[r,t,i]);u.forEach(h=>{M(h);const a=t.getQueryCache().get(h.queryHash);H(h,n,a)}),L(n);const[c]=p.useState(()=>new z(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{U as u};
@@ -0,0 +1 @@
1
+ import{I as s}from"./infiniteQueryObserver-CKT-6XMq.js";import{dF as u,dg as n}from"./index-CC7J7MsT.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,n as I,K as J,t as Q,B as W}from"./index-EcuFIS2a.js";import{C as G}from"./collection-table-wrapper-cBr_X4Jo.js";import{E as L}from"./empty-state-Y08kvU5o.js";import{S as H}from"./search-input-BHVk6m6A.js";import{A as X}from"./avatar-BzRNaDEk.js";import{B as D}from"./badge-C5M6nZd4.js";import{u as Z}from"./use-debounced-value-BgYHDTDk.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-CEVOOGGz.js";import"./ArrowUp-BtksDHBQ.js";import"./SearchMd-Bb5gjLcX.js";import"./User01-DHd46PZp.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(),k=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:P,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]!==P?.users?(b=P?.users??[],e[12]=P?.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]!==k||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===k||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=k,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,n as I,K as J,t as Q,B as W}from"./index-CC7J7MsT.js";import{C as G}from"./collection-table-wrapper-_ZnQA9Nx.js";import{E as L}from"./empty-state-DiRnF-wA.js";import{S as H}from"./search-input-MlNEh696.js";import{A as X}from"./avatar-Dwn9Bjsb.js";import{B as D}from"./badge-BSirYRuD.js";import{u as Z}from"./use-debounced-value-C7PP6GCc.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-mH2G1tkg.js";import"./ArrowUp-17ZWJBkC.js";import"./SearchMd-C6gkQ2l2.js";import"./User01-CmNzW4kH.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(),k=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:P,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]!==P?.users?(b=P?.users??[],e[12]=P?.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]!==k||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===k||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=k,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{a as W,s as E,i as w}from"./ZoomOut-DUFJq3-K.js";import{a as j}from"./Image01-QB6twEDu.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 G(e){return`.deco/blocks/${P(e)}.json`}const v=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 z(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 D(e,t){const n=t.replace(/^\/+|\/+$/g,"");return h(n?`${e==="/"?"":e}/${n}`:e)}function _(e,t){return t==="directory"?e:$(e)}function M(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 S(e,t,n,r=!1){return{files:[...new Set([...e,...n.files])],directories:[...new Set([...t,...n.directories??[]])],truncated:r||!!n.truncated}}function H(e,t){return B(e)>=F&&!t.has(e)}function q(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 U(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 A(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 X(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 K(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 V(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 J(e){const t=[];for(const n of e.split(`
1
+ import{a as W,s as E,i as w}from"./ZoomOut-B3S7N50e.js";import{a as j}from"./Image01-DPvj49a-.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 G(e){return`.deco/blocks/${P(e)}.json`}const v=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 z(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 D(e,t){const n=t.replace(/^\/+|\/+$/g,"");return h(n?`${e==="/"?"":e}/${n}`:e)}function _(e,t){return t==="directory"?e:$(e)}function M(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 S(e,t,n,r=!1){return{files:[...new Set([...e,...n.files])],directories:[...new Set([...t,...n.directories??[]])],truncated:r||!!n.truncated}}function H(e,t){return B(e)>=F&&!t.has(e)}function q(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 U(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 A(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 X(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 K(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 V(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 J(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 Q(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 Y(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 Z(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 tt(e){return e.split(`
3
3
  `).map(t=>t.replace(/^\d+\t/,"")).join(`
4
4
  `)}export{F as E,G as a,L as b,v as c,C as d,V as e,N as f,A as g,Z as h,z as i,_ as j,h as k,X as l,$ as m,K as n,Y as o,H as p,D as q,q as r,tt as s,x as t,Q as u,M as v,J as w,U as x,S as y};
@@ -1 +1 @@
1
- import{c as K,b as X,r as Z,j as i,l as rt,B as tt,an as ut}from"./index-EcuFIS2a.js";import{o as ht,Q as at,q as xt}from"./agent-icon-CTsmTxHg.js";import{L as gt}from"./label-BX1BwzZ4.js";import{S as lt}from"./scroll-area-DMmJ7JtI.js";import{S as bt}from"./switch-BIfmgDHS.js";import{T as vt,c as yt,a as jt}from"./tooltip-nr5oS_bm.js";import{V as Tt}from"./view-mode-toggle-Ca0bFull.js";import{M as ct,q as mt,t as Nt,v as _t,w as kt,x as U,W as wt}from"./agent-site-editor-content-eM0WchN0.js";import"./AlertCircle-2L7lI8NL.js";import"./Tool01-Dwy1nlT9.js";import"./ArrowUp-BtksDHBQ.js";import"./ArrowLeft-8rouBEwC.js";import"./Tool02-CvlAGFBM.js";import"./ArrowRight-DCA5zjxW.js";import"./TrendUp01-BCriuXJd.js";import"./ZoomOut-DUFJq3-K.js";import"./Globe04-GFiRExL0.js";import"./CheckCircle-BmVuh1xp.js";import"./ChevronUp-fg9sod-H.js";import"./UserSquare-CcF49LHs.js";import"./Copy01-BgwuTJFm.js";import"./CreditCard01-CIt471eG.js";import"./DotsVertical-CE2o6L6N.js";import"./Download01-DNhEQzg0.js";import"./Settings02-D9Qv7BDm.js";import"./Eye-Dq6Vw6FI.js";import"./Share07-CZ7JzYs9.js";import"./Globe01-g_y8gAs1.js";import"./XClose-CvcHLHe2.js";import"./Image01-QB6twEDu.js";import"./Key01-CO_i2QPb.js";import"./LayoutLeft-BfySK4h8.js";import"./Link01-BIFMl_M0.js";import"./LinkExternal01-DQD59o7F.js";import"./Monitor01-Ddm2yOG6.js";import"./Sun-DLRcOzSd.js";import"./Package-CvzEol5_.js";import"./Palette-DT856bn6.js";import"./Play-wYDcJhBq.js";import"./Plus-BSp00qOC.js";import"./SearchLg-DFD1t2UL.js";import"./SearchMd-Bb5gjLcX.js";import"./Stars01-D-wYuyik.js";import"./Trash01-DtE0n00a.js";import"./Upload01-Ba-RLxE1.js";import"./User01-DHd46PZp.js";import"./Users01-B8gdz27Y.js";import"./XCircle-BLCHBIhx.js";import"./X-BtMi8Qau.js";import"./Zap-DZAIluO6.js";import"./select-DBfOOW9i.js";import"./index-Exw_Yjch.js";import"./agent-view-guard-BNYKK-x9.js";import"./use-main-panel-tabs-BghanH6r.js";import"./use-route-default-main-BhbKsXCz.js";import"./use-connection-BKZRi94S.js";import"./use-mcp-client-B_gcvvCy.js";import"./auth-BBW3DF0r.js";import"./use-mcp-tools-DC47roTz.js";import"./use-virtual-mcp-Ji9vcgUj.js";import"./types-7UQ7SDxU.js";import"./utils-CVEq3hMx.js";import"./use-project-scope-CCxyXvEU.js";import"./github-repo-BknN0SVI.js";import"./index-CutV0Ygc.js";import"./chat-context-ELO8A2Ar.js";import"./use-panel-navigate-IItrbgmN.js";import"./thread-route-CHwqHPf_.js";import"./autosend-CVNOmzPu.js";import"./thread-intent-CTSjhfEo.js";import"./slugify-CEUa2lfQ.js";import"./hooks-D0dDgrIf.js";import"./backoff-8mStPHYB.js";import"./task-board-Dip4Wu9j.js";import"./schema-FDf70VFI.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-kPr6KRf9.js";import"./use-ai-providers-D-abiIwe.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-qaEKsixC.js";import"./use-organization-settings-DvtBymY3.js";import"./gateway-client-CnYYocwu.js";import"./dialog-AoC07APJ.js";import"./drawer-DGzquxJ8.js";import"./collection-search-DM8MkJfo.js";import"./use-mobile-BZ15DgEB.js";import"./use-mcp-prompts-DfSKL4Gu.js";import"./index-DyCAAYSx.js";import"./form-CYsJTpNM.js";import"./input-Buz_7xoG.js";import"./org-file-open-context-D26BTBiX.js";import"./input-BrPa4I3Z.js";import"./shell-layout-BQnbNNla.js";import"./avatar-BzRNaDEk.js";import"./download-app-dialog-CsiIuf7j.js";import"./command-CZcxzTcw.js";import"./index-C97O3ClY.js";import"./integration-icon-D3FHJbYu.js";import"./project-icon-D_oHwik9.js";import"./required-auth-layout-BhdxJMdb.js";import"./use-org-sso-QeqdMaIa.js";import"./chat-draft-tDfZTlxU.js";import"./use-session-runtime-B5wMaHtP.js";import"./usage-stats-YafP0g9G.js";import"./use-copy-Cp_DyXH6.js";import"./markdown-VKlC4_bJ.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-Dd0IWElc.js";import"./use-deco-credits-CqbkXgA9.js";import"./toggle-group-CwAn2mKr.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-BAg3ZeFq.js";import"./decopilot-BI8eOOPY.js";import"./checkbox-iGlb02v9.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-Bff85VlI.js";import"./index-DllcfiZL.js";import"./input-C5klQNJJ.js";import"./hooks-BlE0QZwR.js";import"./use-org-fs-Bf6n51Xm.js";import"./question-004-sINsf4GQ.js";import"./use-members-C6brpkJ1.js";import"./use-org-auth-client-8fDIgHEZ.js";import"./feature-paywall-BoABVlUQ.js";import"./plan-ladder-B-hb17ya.js";import"./add-connection-dialog-DA05asFs.js";import"./extract-connection-data-C7Wh9xkI.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-DStV2sLP.js";import"./connection-card-CpIJKLp3.js";import"./use-registry-connections-Bd4wJHbx.js";import"./useInfiniteQuery-CzQJkRT9.js";import"./infiniteQueryObserver-3RxH1tr-.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-D5v3ol7T.js";import"./connection-form-helpers-DM_wSOEJ.js";import"./authenticate-and-persist-oauth-Pk9b2m8R.js";import"./mcp-oauth-B7YJNr4N.js";import"./collection-tabs-aKKPIP9M.js";import"./badge-C5M6nZd4.js";import"./use-infinite-scroll-D0T36z_V.js";import"./useSuspenseInfiniteQuery-D9iG0Y5m.js";import"./pair-Bh73YYpe.js";import"./collapsible-PyJ2NOzW.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-wS7imsel.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-DWSThpSZ.js";import"./use-navigate-to-agent-B8SXI0oO.js";import"./use-thread-outputs-DYukUH5N.js";import"./file-type-icon-lZW2ows7.js";import"./sandbox-lifecycle-context-BHn9YFEW.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata-CQjLXps1.js";import"./use-project-native-view-presence-WwnxvZuP.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-6ygOocDG.js";import"./site-slug-uya6Wp4-.js";import"./virtual-mcp-Dji-1ojO.js";import"./feature-gate-C1d068b1.js";import"./alert-dialog-9n2p5SCQ.js";import"./runnable-block-editor-9i5DpxOA.js";import"./decofile-api-zRlIvvNL.js";import"./utils-y2q6u6PK.js";import"./claim-phase-copy-0btUuJoC.js";import"./monaco-editor-ChRh_qus.js";import"./editor-oL1B7LVJ.js";import"./calendar-QcX36iLy.js";import"./rich-text-link-control-Bn-QsIS6.js";import"./safe-image-url-D5z803Ot.js";import"./search-input-BHVk6m6A.js";import"./use-debounced-value-BgYHDTDk.js";import"./asset-utils-CK3Em4fb.js";import"./sandbox-git-api-CMdpE2TE.js";import"./mustache-BpzqsH6c.js";import"./empty-state-Y08kvU5o.js";import"./github-icon-swNUSpAU.js";import"./repository-import-picker-ftg0FRzY.js";import"./repository-picker-BKj90hIS.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 c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}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 c of n)if(typeof c=="string"&&c.trim().length>0)return c.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 J(e,t,r,o,s){if(Dt(e)){const n=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);n.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,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 m=n[l];m&&typeof m=="object"&&J(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let n=0;n<e.length;n++)J(e[n],t,r,[...o,n],s);return}if(e&&typeof e=="object")for(const[n,a]of Object.entries(e))n!=="__resolveType"&&J(a,t,r,[...o,n],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))J(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 c;t[8]!==o||t[9]!==r?(c=Bt(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=i.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==n||t[15]!==a||t[16]!==l?(m=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]=m):m=t[17],m}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:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,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]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,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 wi(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,n]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=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=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(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=()=>c(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(ht,{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(ut,{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=ct[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:m}),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(xt,{}),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(Qt,{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 mt(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 Qt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let n,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);n=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=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]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Jt,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]=c,t[6]=l,t[7]=m}else n=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=i.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==n||t[14]!==m||t[15]!==p?(h=i.jsx(n,{className:m,children:p}),t[13]=n,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Jt(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 Q=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,Q),c=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 m=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:Q},f),u=c.getTime()>=n.getTime()&&c.getTime()<=a.getTime()?h(c):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(${Q}, 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 $=m.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(${Q}, 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:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{wi as VariantCalendar};
1
+ import{c as K,b as X,r as Z,j as i,l as rt,B as tt,an as ut}from"./index-CC7J7MsT.js";import{o as ht,Q as at,q as xt}from"./agent-icon-D5Ih-I28.js";import{L as gt}from"./label-YKssz_GS.js";import{S as lt}from"./scroll-area-BLDUQh9N.js";import{S as bt}from"./switch-C_FmZ5Us.js";import{T as vt,c as yt,a as jt}from"./tooltip-DSCGYdw1.js";import{V as Tt}from"./view-mode-toggle-CRnJAx40.js";import{M as ct,q as mt,t as Nt,v as _t,w as kt,x as U,W as wt}from"./agent-site-editor-content-Da0JfE-w.js";import"./AlertCircle-D0XfIdP3.js";import"./Tool01-iak9ZtFE.js";import"./ArrowUp-17ZWJBkC.js";import"./ArrowLeft-COesgQ7q.js";import"./Tool02-CFu103hl.js";import"./ArrowRight-CnMpegh6.js";import"./TrendUp01-DlYmFZ7k.js";import"./ZoomOut-B3S7N50e.js";import"./Globe04-1G-_QSZW.js";import"./CheckCircle-GwUJIVVh.js";import"./ChevronUp-CodzCI7T.js";import"./UserSquare-1_FC93GE.js";import"./Copy01-CrFZhFXo.js";import"./CreditCard01-DDojC3kk.js";import"./DotsVertical-DMzYFBsd.js";import"./Download01-B93GUT2-.js";import"./Settings02-DH86cX_B.js";import"./Eye-Bxxku7SE.js";import"./Share07-Bw4Wicv2.js";import"./Globe01-DjdW3vEO.js";import"./XClose-VLid_ZSM.js";import"./Image01-DPvj49a-.js";import"./Key01-O_Ykzy8v.js";import"./LayoutLeft-Cr5_A1QG.js";import"./Link01-D8T6mRIR.js";import"./LinkExternal01-CWPNoGQ_.js";import"./Monitor01-CQaKbr3c.js";import"./Sun-kycCorOO.js";import"./Package-Cd3aVeK8.js";import"./Palette-HRmzWYeK.js";import"./Play-CaxaoMwA.js";import"./Plus-BjOenFFb.js";import"./SearchLg-CT-Vntfj.js";import"./SearchMd-C6gkQ2l2.js";import"./Stars01-B1kYoDFp.js";import"./Trash01-CpN6r-a0.js";import"./Upload01-DkDsqCWe.js";import"./User01-CmNzW4kH.js";import"./Users01-CVhfgklM.js";import"./XCircle-BR8ZZHlj.js";import"./X-DTaqHNcB.js";import"./Zap-D3d1wpzw.js";import"./select-C_C7jdl-.js";import"./index-D2HOssRq.js";import"./agent-view-guard-CmXIeKCe.js";import"./use-main-panel-tabs-CHXW72tt.js";import"./use-route-default-main-DAXdKSA3.js";import"./use-connection-DAR6kA6F.js";import"./use-mcp-client-jmamuSRM.js";import"./auth-B_QE3yd2.js";import"./use-mcp-tools-U5kwqIN7.js";import"./use-virtual-mcp-Bt7oX0ej.js";import"./types-BQYrCHfb.js";import"./utils-CVEq3hMx.js";import"./use-project-scope-azWGklpf.js";import"./github-repo-BknN0SVI.js";import"./index-CV2G6XgT.js";import"./chat-context-CVZ1rNGo.js";import"./use-panel-navigate-YnjVvVnu.js";import"./thread-route-DnE31jZ2.js";import"./autosend-DtYV6o0l.js";import"./thread-intent-DZx7N_NL.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BFlZlUD7.js";import"./backoff-8mStPHYB.js";import"./task-board-BtEMyO1f.js";import"./schema-CStbpjQf.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-CsT7-WMV.js";import"./use-ai-providers-DPIPADTm.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DDN9tgML.js";import"./use-organization-settings-DiOLzOn-.js";import"./gateway-client-B8HHtBA6.js";import"./dialog-BKhaq-Xf.js";import"./drawer-CCmZWflK.js";import"./collection-search-Dvf73igt.js";import"./use-mobile-X_9uHXB5.js";import"./use-mcp-prompts-Cb12ACl6.js";import"./index-BcfYNZk_.js";import"./form-CxKBX2E3.js";import"./input-DSV_9cOM.js";import"./org-file-open-context-k2zY7W2A.js";import"./input-X38P96BY.js";import"./shell-layout-p-WJ7uxl.js";import"./avatar-Dwn9Bjsb.js";import"./download-app-dialog-wNu8nmu1.js";import"./command-Dsz0XoYc.js";import"./index-BrLZxE6-.js";import"./integration-icon-BARnXRTY.js";import"./project-icon-BuTPt9Ec.js";import"./required-auth-layout-qQ6V67AS.js";import"./use-org-sso-CbtWg6df.js";import"./chat-draft-UIE-uNFd.js";import"./use-session-runtime-D8PgcjtK.js";import"./usage-stats-CH100JwP.js";import"./use-copy-CLZ5Gmjm.js";import"./markdown-tOSThun8.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-jjUOgDeE.js";import"./use-deco-credits-C78gqYYg.js";import"./toggle-group-C-J6fFSZ.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-BygdFnSn.js";import"./decopilot-rj_BJ_Z1.js";import"./checkbox-VSstjUSb.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-tYq49O5I.js";import"./index-DZmKVVGY.js";import"./input-QKe7l082.js";import"./hooks-CFjlhRX0.js";import"./use-org-fs-C4AEj3YR.js";import"./question-004-sINsf4GQ.js";import"./use-members-CZk_logh.js";import"./use-org-auth-client-6spdYft8.js";import"./feature-paywall-B3_no1lb.js";import"./plan-ladder-DR8Snnfh.js";import"./add-connection-dialog-CaHZ3eeK.js";import"./extract-connection-data-Bdk8iF2q.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-2MR1zroe.js";import"./connection-card-B5yTdNvS.js";import"./use-registry-connections-Dr6Tl0jy.js";import"./useInfiniteQuery-zZoTJbYm.js";import"./infiniteQueryObserver-CKT-6XMq.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-B7wqTmSc.js";import"./connection-form-helpers-PrMbwr2L.js";import"./authenticate-and-persist-oauth-Cm242zr2.js";import"./mcp-oauth-Cr_ZflCp.js";import"./collection-tabs-BW0egx-_.js";import"./badge-BSirYRuD.js";import"./use-infinite-scroll-BEJH1fno.js";import"./useSuspenseInfiniteQuery-BvOl5Id0.js";import"./pair-CbUh0olY.js";import"./collapsible-BX137q_-.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-c3JU3ROq.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-B5ncClVO.js";import"./use-navigate-to-agent-XZHI0vTx.js";import"./use-thread-outputs-BhhE_Gkc.js";import"./file-type-icon-Co9lETmZ.js";import"./sandbox-lifecycle-context-DLKr6QBG.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata-IzJB5PVG.js";import"./use-project-native-view-presence-S2GuqygD.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-DT6Slpub.js";import"./site-slug-uya6Wp4-.js";import"./virtual-mcp-BWl8nlWy.js";import"./feature-gate-KPNWzkBp.js";import"./alert-dialog-D6rlFoy0.js";import"./runnable-block-editor-nQ69L6jb.js";import"./decofile-api-DygXY02K.js";import"./utils-CcX7wgow.js";import"./claim-phase-copy-0btUuJoC.js";import"./monaco-editor-BhkNNN8A.js";import"./editor-DMij_Pa1.js";import"./calendar-Bhg3W8Dv.js";import"./rich-text-link-control-B4QybUls.js";import"./safe-image-url-D5z803Ot.js";import"./search-input-MlNEh696.js";import"./use-debounced-value-C7PP6GCc.js";import"./asset-utils-BG24FUsq.js";import"./sandbox-git-api-CMdpE2TE.js";import"./mustache-BMe4E-3i.js";import"./empty-state-DiRnF-wA.js";import"./github-icon-DSeg1rga.js";import"./repository-import-picker-B1zE1wEx.js";import"./repository-picker-DMUsWfjy.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 c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}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 c of n)if(typeof c=="string"&&c.trim().length>0)return c.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 J(e,t,r,o,s){if(Dt(e)){const n=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);n.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,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 m=n[l];m&&typeof m=="object"&&J(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let n=0;n<e.length;n++)J(e[n],t,r,[...o,n],s);return}if(e&&typeof e=="object")for(const[n,a]of Object.entries(e))n!=="__resolveType"&&J(a,t,r,[...o,n],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))J(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 c;t[8]!==o||t[9]!==r?(c=Bt(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=i.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==n||t[15]!==a||t[16]!==l?(m=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]=m):m=t[17],m}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:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,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]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,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 wi(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,n]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=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=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(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=()=>c(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(ht,{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(ut,{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=ct[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:m}),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(xt,{}),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(Qt,{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 mt(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 Qt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let n,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);n=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=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]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Jt,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]=c,t[6]=l,t[7]=m}else n=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=i.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==n||t[14]!==m||t[15]!==p?(h=i.jsx(n,{className:m,children:p}),t[13]=n,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Jt(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 Q=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,Q),c=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 m=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:Q},f),u=c.getTime()>=n.getTime()&&c.getTime()<=a.getTime()?h(c):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(${Q}, 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 $=m.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(${Q}, 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:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{wi as VariantCalendar};
@@ -1 +1 @@
1
- import{F as f,G as $}from"./runnable-block-editor-9i5DpxOA.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-nQ69L6jb.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 d,j as i}from"./index-EcuFIS2a.js";import{c as k,T as I,a as P}from"./tooltip-nr5oS_bm.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,b=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[f,S]=T.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),m=R.current[e];m&&S({left:m.offsetLeft,width:m.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=d("relative flex gap-0 bg-muted classic:rounded-lg compact:rounded-full",z),t[6]=z,t[7]=n):n=t[7];let a;t[8]!==l||t[9]!==b||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,m)=>{const j=i.jsxs("button",{ref:V=>{R.current[m]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label,className:d("relative z-10 flex items-center justify-center gap-2 classic:rounded-lg compact:rounded-full transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",b?"flex-1 h-12 px-4":e.label?d(l.buttonWithLabel,"px-3"):l.button),children:[i.jsx("span",{className:d("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:d("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]=b,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=b?"h-12":l.button;let c;t[14]!==w?(c=d("absolute z-0 bg-background classic:rounded-lg compact:rounded-full border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=c):c=t[15];const W=`${f.left}px`,N=`${f.width}px`;let r;t[16]!==f.opacity||t[17]!==W||t[18]!==N?(r={left:W,width:N,opacity:f.opacity},t[16]=f.opacity,t[17]=W,t[18]=N,t[19]=r):r=t[19];let u;t[20]!==c||t[21]!==r?(u=i.jsx("div",{className:c,style:r}),t[20]=c,t[21]=r,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 d,j as i}from"./index-CC7J7MsT.js";import{c as k,T as I,a as P}from"./tooltip-DSCGYdw1.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,b=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[f,S]=T.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),m=R.current[e];m&&S({left:m.offsetLeft,width:m.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=d("relative flex gap-0 bg-muted classic:rounded-lg compact:rounded-full",z),t[6]=z,t[7]=n):n=t[7];let a;t[8]!==l||t[9]!==b||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,m)=>{const j=i.jsxs("button",{ref:V=>{R.current[m]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label,className:d("relative z-10 flex items-center justify-center gap-2 classic:rounded-lg compact:rounded-full transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",b?"flex-1 h-12 px-4":e.label?d(l.buttonWithLabel,"px-3"):l.button),children:[i.jsx("span",{className:d("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:d("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]=b,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=b?"h-12":l.button;let c;t[14]!==w?(c=d("absolute z-0 bg-background classic:rounded-lg compact:rounded-full border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=c):c=t[15];const W=`${f.left}px`,N=`${f.width}px`;let r;t[16]!==f.opacity||t[17]!==W||t[18]!==N?(r={left:W,width:N,opacity:f.opacity},t[16]=f.opacity,t[17]=W,t[18]=N,t[19]=r):r=t[19];let u;t[20]!==c||t[21]!==r?(u=i.jsx("div",{className:c,style:r}),t[20]=c,t[21]=r,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{ao as a,ap as e,aI as l,bL as t,bK as s,bN as o,cU as c,bM as d,dR as A,cV as _,bO as v}from"./index-EcuFIS2a.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,U=50,k=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(k).nullable().optional(),layout:H.nullable().optional(),homeTile:f.nullable().optional(),homeTiles:t(f).max(E).nullable().optional(),homePrompts:t(e()).max(U).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)})]),K=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/,q=a({host:e().min(1).regex(K).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(q).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,K as S,ue as V,be as p,de as r,pe as w};
1
+ import{ao as a,ap as e,aI as l,bL as t,bK as s,bN as o,cU as c,bM as d,dR as A,cV as _,bO as v}from"./index-CC7J7MsT.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,U=50,k=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(k).nullable().optional(),layout:H.nullable().optional(),homeTile:f.nullable().optional(),homeTiles:t(f).max(E).nullable().optional(),homePrompts:t(e()).max(U).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)})]),K=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/,q=a({host:e().min(1).regex(K).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(q).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,K as S,ue as V,be as p,de as r,pe as w};