decocms 4.221.0 → 4.221.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 (233) hide show
  1. package/dist/client/assets/{AlertCircle-B5sDezf-.js → AlertCircle-BngcPF6g.js} +1 -1
  2. package/dist/client/assets/{AreaChart-B14o5fmp.js → AreaChart-DVnqbznT.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-hINWrmDM.js → ArrowLeft-D0SMPcnr.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-BCKIIXqC.js → ArrowUp-CQvXx2Eb.js} +1 -1
  5. package/dist/client/assets/{ArrowUpRight-D9wNgkJO.js → ArrowUpRight-DZpp5DED.js} +1 -1
  6. package/dist/client/assets/{Check-DvgcRTBi.js → Check-BVTsyPDh.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-hJqs3poK.js → CheckCircle-Blh8DmbD.js} +1 -1
  8. package/dist/client/assets/{ChevronDown-Dg-G9Bza.js → ChevronDown-C6mtwPLn.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-D--quDsb.js → ChevronRight-BEp1VAsd.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-DVfjlsaH.js → ChevronUp-BIP55CrT.js} +1 -1
  11. package/dist/client/assets/{Copy01-A-iF56j2.js → Copy01-DgiqwcSK.js} +1 -1
  12. package/dist/client/assets/{CpuChip01-C4a1EmKL.js → CpuChip01-CENIClYZ.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-DD3YsjP8.js → CreditCard01-BhrVduIh.js} +1 -1
  14. package/dist/client/assets/{DotsVertical-Dna5iyxv.js → DotsVertical-C6DREveP.js} +1 -1
  15. package/dist/client/assets/{Eye-Sv9L0hDt.js → Eye-PKXEw9_c.js} +1 -1
  16. package/dist/client/assets/{FilterLines-BP3DhNOH.js → FilterLines-CEQFAuO4.js} +1 -1
  17. package/dist/client/assets/{Globe01-DDNwpjh5.js → Globe01-7jkIPFoA.js} +1 -1
  18. package/dist/client/assets/{Globe04-akm1kAFe.js → Globe04-DR8uwSal.js} +1 -1
  19. package/dist/client/assets/{HardDrive-CK5PbODV.js → HardDrive-JJwxAgPq.js} +1 -1
  20. package/dist/client/assets/{Key01-LdZJmUXU.js → Key01-BJ3dxv9s.js} +1 -1
  21. package/dist/client/assets/{LayoutLeft-DTYf3Zp9.js → LayoutLeft-BdUVMA1s.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-BaEq__IR.js → LinkExternal01-zuYuwJZ-.js} +1 -1
  23. package/dist/client/assets/{LogOut01-1f2QOh82.js → LogOut01-BLeeRd_x.js} +1 -1
  24. package/dist/client/assets/{Monitor01-DPJi2KGo.js → Monitor01-BnK9fFda.js} +1 -1
  25. package/dist/client/assets/{Palette-DpXIzWgD.js → Palette-Cg1tIBcF.js} +1 -1
  26. package/dist/client/assets/{Play-CFJ7WwbI.js → Play-2YDlreGg.js} +1 -1
  27. package/dist/client/assets/{Plus-DzzDYhDH.js → Plus-CgUsDtXu.js} +1 -1
  28. package/dist/client/assets/{SearchLg-Ddza_Jes.js → SearchLg-CKHQyByC.js} +1 -1
  29. package/dist/client/assets/{SearchMd-DheaqQdu.js → SearchMd-D_hwjTJs.js} +1 -1
  30. package/dist/client/assets/{Settings02-nh2DxBto.js → Settings02-I4I2nClv.js} +1 -1
  31. package/dist/client/assets/{Share07-CnHohhT8.js → Share07-BPGtMefI.js} +1 -1
  32. package/dist/client/assets/{Shield01-CDtPaxfg.js → Shield01-CK9cE1oJ.js} +1 -1
  33. package/dist/client/assets/{Star01-Dtu6SkUk.js → Star01-DCIbpwnb.js} +1 -1
  34. package/dist/client/assets/{Stars01-C_U8OZIq.js → Stars01-C5PvctF2.js} +1 -1
  35. package/dist/client/assets/{Stars02-Cw0-QoyL.js → Stars02-BAO2I02Z.js} +1 -1
  36. package/dist/client/assets/{Sun-CPY69DKL.js → Sun-E3c2IB3O.js} +1 -1
  37. package/dist/client/assets/{SwitchHorizontal01-Buu6mw-W.js → SwitchHorizontal01-zV8kVIQA.js} +1 -1
  38. package/dist/client/assets/{Tool01-Cn0-xBBt.js → Tool01-CN04dNAZ.js} +1 -1
  39. package/dist/client/assets/{Tool02-BlzqzZAJ.js → Tool02-mI78frGe.js} +1 -1
  40. package/dist/client/assets/{Trash01-C3hHB6NE.js → Trash01-BxlP0eyg.js} +1 -1
  41. package/dist/client/assets/{TrendUp01-B8cusAvZ.js → TrendUp01-D7jiFi03.js} +1 -1
  42. package/dist/client/assets/{Upload01-DOECu3Z7.js → Upload01-Bbnlu9tq.js} +1 -1
  43. package/dist/client/assets/{User01-v0JW3r6M.js → User01-BIqoyKIS.js} +1 -1
  44. package/dist/client/assets/{Users01-Bo461Fnp.js → Users01-DY_fYiv0.js} +1 -1
  45. package/dist/client/assets/{Users03-c4O2AlzH.js → Users03-DUwPNwXU.js} +1 -1
  46. package/dist/client/assets/{X-D4P_xotm.js → X-ibOvxK6r.js} +1 -1
  47. package/dist/client/assets/{XCircle-BhdQMcW8.js → XCircle-BnwtkUhP.js} +1 -1
  48. package/dist/client/assets/{XClose-NC_Nso5p.js → XClose-DI0JEn_A.js} +1 -1
  49. package/dist/client/assets/{YAxis-Cns8RI4u.js → YAxis-FCDZOHrS.js} +1 -1
  50. package/dist/client/assets/{Zap-UDNJrio-.js → Zap-DS_8b3SH.js} +1 -1
  51. package/dist/client/assets/{ZapSquare-BEEyAqSI.js → ZapSquare-BYkzde_j.js} +1 -1
  52. package/dist/client/assets/{access-gate-vBdGjDQW.js → access-gate-DS6vMaXc.js} +1 -1
  53. package/dist/client/assets/{agent-icon-B5lPNSsP.js → agent-icon-DxmmOieH.js} +1 -1
  54. package/dist/client/assets/{agents-list-BJn8TJuy.js → agents-list-DH1J1PER.js} +1 -1
  55. package/dist/client/assets/{ai-providers-BbeFgeD3.js → ai-providers-BgGFh3bD.js} +1 -1
  56. package/dist/client/assets/{alert-CUvt8zLM.js → alert-BMIHoWVc.js} +1 -1
  57. package/dist/client/assets/{alert-dialog-jruC7mBq.js → alert-dialog-C-EKs2lL.js} +1 -1
  58. package/dist/client/assets/{api-keys-Dwla9eef.js → api-keys-oH6s0Kiy.js} +1 -1
  59. package/dist/client/assets/{app-editor-BEgPwoRq.js → app-editor-CKRORZ0B.js} +1 -1
  60. package/dist/client/assets/{auth-Bz9lRoBo.js → auth-Bog8FqNA.js} +1 -1
  61. package/dist/client/assets/{auth-catchall-CNW5wSxJ.js → auth-catchall-DEr4VweJ.js} +1 -1
  62. package/dist/client/assets/{auth-entry-DuHumkii.js → auth-entry-P98QAa8r.js} +1 -1
  63. package/dist/client/assets/{auth-split-layout-DCr3x48B.js → auth-split-layout-b3qV-eZZ.js} +1 -1
  64. package/dist/client/assets/{authenticate-and-persist-oauth-Dgj4f6Ax.js → authenticate-and-persist-oauth-P5_Ha_c9.js} +1 -1
  65. package/dist/client/assets/{automation-list-row-BDhubR9Y.js → automation-list-row-DeBMFDOi.js} +1 -1
  66. package/dist/client/assets/{automation-runs-j2r--LSH.js → automation-runs-CqphiI3m.js} +1 -1
  67. package/dist/client/assets/{automations-CFSdHPgS.js → automations-2mLiSOY-.js} +1 -1
  68. package/dist/client/assets/{avatar-D4NA2Bhx.js → avatar-D98__g63.js} +1 -1
  69. package/dist/client/assets/{badge-BjVK4C89.js → badge-Ce3GqcFl.js} +1 -1
  70. package/dist/client/assets/{billing-B7KybG63.js → billing-ENaqQdK2.js} +1 -1
  71. package/dist/client/assets/{block-document-DIxKyslO.js → block-document-CG0NFzAh.js} +1 -1
  72. package/dist/client/assets/{brand-context-KFGh7Cqy.js → brand-context-BKLPwaYZ.js} +1 -1
  73. package/dist/client/assets/{buckets-DAxo88K_.js → buckets-56Mkka1H.js} +1 -1
  74. package/dist/client/assets/{bulk-category-panel-CgGP-pZo.js → bulk-category-panel-CHCRKR4P.js} +1 -1
  75. package/dist/client/assets/{capability-load-error-BB1uxQxo.js → capability-load-error-DG1kaWeF.js} +1 -1
  76. package/dist/client/assets/{card-DYQ6zVHs.js → card-FTRG4FI8.js} +1 -1
  77. package/dist/client/assets/{cards-B0hdhTBg.js → cards-BEKt-odr.js} +1 -1
  78. package/dist/client/assets/{category-editor-uo-GEs22.js → category-editor-B8YNO_Z8.js} +1 -1
  79. package/dist/client/assets/{chart-Cu0CqzUJ.js → chart-jXstGrkI.js} +1 -1
  80. package/dist/client/assets/{chat-context-6z6Usp8t.js → chat-context-0AU1Ck7Q.js} +1 -1
  81. package/dist/client/assets/{checkbox-BYUUT_OQ.js → checkbox-DG1KP888.js} +1 -1
  82. package/dist/client/assets/{cli-auth-success-BmwTSIm3.js → cli-auth-success-VKH_DAL_.js} +1 -1
  83. package/dist/client/assets/{collection-detail-DL2maNvj.js → collection-detail-DRmwoW6R.js} +1 -1
  84. package/dist/client/assets/{collection-display-button-K8EPC15C.js → collection-display-button-BgL0eHeD.js} +1 -1
  85. package/dist/client/assets/{collection-search-BEi_6zWf.js → collection-search-Dd_8W7pe.js} +1 -1
  86. package/dist/client/assets/{collection-table-wrapper-CJ1bvTF4.js → collection-table-wrapper-B-jYZKrj.js} +1 -1
  87. package/dist/client/assets/{collection-tabs-z4TGwElC.js → collection-tabs-C1U9k4YH.js} +1 -1
  88. package/dist/client/assets/{command-Dy--q7-N.js → command-DO7yCE_e.js} +1 -1
  89. package/dist/client/assets/{commerce-onboarding-B-bcfSh9.js → commerce-onboarding-DmnJndiV.js} +1 -1
  90. package/dist/client/assets/{connect-C5yqxNbe.js → connect-BbfJB-8y.js} +1 -1
  91. package/dist/client/assets/{connection-BvqWJ-Xq.js → connection-BbKGBDgy.js} +1 -1
  92. package/dist/client/assets/{connection-card-VoqZ5QIL.js → connection-card-CQ96AbdZ.js} +1 -1
  93. package/dist/client/assets/{connection-detail-evUcN-XV.js → connection-detail-BdRCVGMR.js} +1 -1
  94. package/dist/client/assets/{connection-form-helpers-B4Paw6j5.js → connection-form-helpers-C2-q5pAR.js} +1 -1
  95. package/dist/client/assets/{connections-4syOz7oA.js → connections-S-_0Igvd.js} +1 -1
  96. package/dist/client/assets/{decopilot-sse-pool-CBWbLfMa.js → decopilot-sse-pool-DaDP3S1o.js} +1 -1
  97. package/dist/client/assets/{dialog-6eLF19WZ.js → dialog-BplUXBMG.js} +1 -1
  98. package/dist/client/assets/{domain-settings-C5eQMGnS.js → domain-settings-I_K89_VF.js} +1 -1
  99. package/dist/client/assets/{drawer-gzblMb4G.js → drawer-BGh4JkbP.js} +1 -1
  100. package/dist/client/assets/{dropdown-menu-AtDwBl9o.js → dropdown-menu-lGvTdVZ8.js} +1 -1
  101. package/dist/client/assets/{empty-state-BT_HKEND.js → empty-state-CXLNA2ti.js} +1 -1
  102. package/dist/client/assets/{extract-connection-data-CXHDzEiJ.js → extract-connection-data-DvtgDdiK.js} +1 -1
  103. package/dist/client/assets/{file-explorer-Bw6TAY8Q.js → file-explorer-CvDONbdg.js} +1 -1
  104. package/dist/client/assets/{file-type-icon-rCrXf4Wk.js → file-type-icon-C8_FY9PP.js} +1 -1
  105. package/dist/client/assets/{form-BMN1fUOX.js → form-bokF6u7G.js} +1 -1
  106. package/dist/client/assets/{general-DKR8bXXm.js → general-DzZ5IPBp.js} +1 -1
  107. package/dist/client/assets/{github-repo-picker-D7fRmvNp.js → github-repo-picker-ERlP0mrh.js} +1 -1
  108. package/dist/client/assets/{hooks-15WKVCFA.js → hooks-Bg9fS6HW.js} +1 -1
  109. package/dist/client/assets/{index-CCLrlcV5.js → index-5gemagf1.js} +3 -3
  110. package/dist/client/assets/{index-CGSTZ1ZU.js → index-BG3OISG4.js} +1 -1
  111. package/dist/client/assets/{index-BwmITuIy.js → index-D4ix1fGK.js} +1 -1
  112. package/dist/client/assets/{index-BFjeToXL.js → index-DA2rLLPh.js} +1 -1
  113. package/dist/client/assets/{index-DP9nGBt7.js → index-DKORCoqT.js} +1 -1
  114. package/dist/client/assets/{index-Dpu2EeKk.js → index-ITbViqR5.js} +1 -1
  115. package/dist/client/assets/{index-DAxY6pzU.js → index-NDWWiHlo.js} +1 -1
  116. package/dist/client/assets/{index-D2lGClaQ.js → index-OhAQDPDV.js} +1 -1
  117. package/dist/client/assets/{index-B4LwrR_z.js → index-UrA_YNnD.js} +4 -4
  118. package/dist/client/assets/{index-DuQpNddO.js → index-VNa6_71P.js} +1 -1
  119. package/dist/client/assets/{index-redirect-DkWYochk.js → index-redirect-Dpbvfg6v.js} +1 -1
  120. package/dist/client/assets/{infra-billing-D3_zJevY.js → infra-billing-Cvk_Z_aX.js} +1 -1
  121. package/dist/client/assets/{input-D-IOsTjg.js → input-Dolcjx-g.js} +1 -1
  122. package/dist/client/assets/{integration-icon-B83LqhIA.js → integration-icon-B-EnQSDk.js} +1 -1
  123. package/dist/client/assets/{invite-member-dialog-Cui6XPGV.js → invite-member-dialog-DxBLq6lg.js} +1 -1
  124. package/dist/client/assets/{label-D1FqNbWH.js → label-D3lnkDBW.js} +1 -1
  125. package/dist/client/assets/{layout-CgLUlycD.js → layout-kHrtOvTw.js} +1 -1
  126. package/dist/client/assets/{login-Ctbk1pYe.js → login-3PIKR3WF.js} +1 -1
  127. package/dist/client/assets/{mcp-oauth-BcVMm2uf.js → mcp-oauth-CfTAXvvd.js} +1 -1
  128. package/dist/client/assets/{members-llcw8uEg.js → members-UXTsVHFy.js} +1 -1
  129. package/dist/client/assets/{monaco-editor-DKEoDpqg.js → monaco-editor-UmS7A7ZQ.js} +1 -1
  130. package/dist/client/assets/{monitoring-stats-row-CY21GWyZ.js → monitoring-stats-row-B5bAARD2.js} +1 -1
  131. package/dist/client/assets/{multi-select-DXDADON8.js → multi-select-FdtITAIk.js} +1 -1
  132. package/dist/client/assets/{oauth-callback-DSAxbmbr.js → oauth-callback-CLULI95z.js} +1 -1
  133. package/dist/client/assets/{oauth-callback-ai-provider-Cfqol9wy.js → oauth-callback-ai-provider-wEHKm3gV.js} +1 -1
  134. package/dist/client/assets/{onboarding-CIis0EMQ.js → onboarding-CivMuKXz.js} +1 -1
  135. package/dist/client/assets/{org-layout-BXQQoCDr.js → org-layout-AMIbegtU.js} +1 -1
  136. package/dist/client/assets/{organization-choice-D5x-9mO1.js → organization-choice-C0EtSlhf.js} +1 -1
  137. package/dist/client/assets/{orgs-DdP5J1RP.js → orgs-CO2N7ZHV.js} +1 -1
  138. package/dist/client/assets/{page-seo-form-DEW14diT.js → page-seo-form-f6-aQWck.js} +1 -1
  139. package/dist/client/assets/{popover-C80X4J3B.js → popover-14h9vyqc.js} +1 -1
  140. package/dist/client/assets/{post-editor-BKzphWjx.js → post-editor-D7JohTJd.js} +1 -1
  141. package/dist/client/assets/{primitives-CKMnJ8eQ.js → primitives-D-bSFfki.js} +1 -1
  142. package/dist/client/assets/{profile-16zdistj.js → profile-CcIncDgB.js} +1 -1
  143. package/dist/client/assets/{project-app-view-BjsLwg8u.js → project-app-view-DPjt3Vyt.js} +1 -1
  144. package/dist/client/assets/record-editor-DBla9sJF.js +1 -0
  145. package/dist/client/assets/redirect-editor-D6KHsC0M.js +1 -0
  146. package/dist/client/assets/registry-C2SpOJjd.js +2 -0
  147. package/dist/client/assets/{registry-layout-DWDx18Gs.js → registry-layout-BZJDOdWz.js} +1 -1
  148. package/dist/client/assets/{reports-PMHpEHQ2.js → reports-0bkwbP7B.js} +1 -1
  149. package/dist/client/assets/{require-capability-ByZBV_vi.js → require-capability-ZHR0pgYI.js} +1 -1
  150. package/dist/client/assets/{required-auth-layout-BIQhfPe7.js → required-auth-layout-BczHZORq.js} +1 -1
  151. package/dist/client/assets/{reset-password-CjKPS-n3.js → reset-password-COgN7m3z.js} +1 -1
  152. package/dist/client/assets/{roles-Btj87vKr.js → roles-BvrKR6eV.js} +1 -1
  153. package/dist/client/assets/{search-input-ClLM0YYE.js → search-input-RItYBnRq.js} +1 -1
  154. package/dist/client/assets/{secrets-DOlH1wS-.js → secrets-D0UdjGnX.js} +1 -1
  155. package/dist/client/assets/{sections-editor-B86M8NM1.js → sections-editor-YqkyT2dk.js} +1 -1
  156. package/dist/client/assets/{select-CDSdt8fw.js → select-Ddz9NuOw.js} +1 -1
  157. package/dist/client/assets/{select-model-C_6qnRyS.js → select-model-CGoC4bru.js} +1 -1
  158. package/dist/client/assets/{self-tool-result-DaYACJ0n.js → self-tool-result-CRZICvmy.js} +1 -1
  159. package/dist/client/assets/{seo-editor-DMq-kqMV.js → seo-editor-JmC09E-T.js} +1 -1
  160. package/dist/client/assets/{settings-layout-BwDa1Kdm.js → settings-layout-CcuZgI21.js} +1 -1
  161. package/dist/client/assets/{settings-section-CW4NkTM6.js → settings-section-y0TY3QQz.js} +1 -1
  162. package/dist/client/assets/{shell-controls-C1BF0iiw.js → shell-controls-Bf-F5nfO.js} +1 -1
  163. package/dist/client/assets/{shell-layout-BLTnNvbt.js → shell-layout-CtR_VnY2.js} +1 -1
  164. package/dist/client/assets/{sidebar-7RoWud82.js → sidebar-4tITL9-j.js} +1 -1
  165. package/dist/client/assets/{skeleton-CHINK0-G.js → skeleton-CEbCDyXB.js} +1 -1
  166. package/dist/client/assets/{spinner-Ch6YiaO3.js → spinner-DA1qqmBF.js} +1 -1
  167. package/dist/client/assets/{sso-otN1zQLX.js → sso-DVLO8_9V.js} +1 -1
  168. package/dist/client/assets/store-registry-Bdhg587z.js +2 -0
  169. package/dist/client/assets/{store-Cyi0zNMM.js → store-vZKTlVw8.js} +1 -1
  170. package/dist/client/assets/{studio-tools-VaW1QNJX.js → studio-tools-CQ2rygf5.js} +1 -1
  171. package/dist/client/assets/{switch-5yajnsJ1.js → switch-DuNudDxw.js} +1 -1
  172. package/dist/client/assets/{synced-repos-DT7jZ4al.js → synced-repos-CfRbhLY3.js} +1 -1
  173. package/dist/client/assets/{tab-id-B-ZhKmzp.js → tab-id-yehNTD_Y.js} +1 -1
  174. package/dist/client/assets/{table-CGQtLSZX.js → table-BGuPhElJ.js} +1 -1
  175. package/dist/client/assets/{tabs-B9pbmfNS.js → tabs-DjzfxGSN.js} +1 -1
  176. package/dist/client/assets/{textarea-PTW5Gjko.js → textarea-_Pli16i3.js} +1 -1
  177. package/dist/client/assets/{toggle-group-DTqvTqtA.js → toggle-group-BMH9CGot.js} +1 -1
  178. package/dist/client/assets/{toolbar-DA64sova.js → toolbar-Dxwz1zDu.js} +1 -1
  179. package/dist/client/assets/{tooltip-D4n-WF2q.js → tooltip-CyXjvnKb.js} +1 -1
  180. package/dist/client/assets/{track-CtujQPYm.js → track-ZTi3rGvE.js} +1 -1
  181. package/dist/client/assets/{types-Dil0eUsT.js → types-CSDveaQ0.js} +1 -1
  182. package/dist/client/assets/{use-ai-providers-DSPW7HA5.js → use-ai-providers-Cgq4fq_s.js} +1 -1
  183. package/dist/client/assets/{use-api-keys-CwXATxOd.js → use-api-keys-DxrzkSir.js} +1 -1
  184. package/dist/client/assets/{use-automations-C-VZMP6n.js → use-automations-Cy-Q13k9.js} +1 -1
  185. package/dist/client/assets/{use-autosave-Dz4TK2qS.js → use-autosave-BLqJyX9U.js} +1 -1
  186. package/dist/client/assets/{use-capability-if9Tx37f.js → use-capability-D3-UBGHo.js} +1 -1
  187. package/dist/client/assets/{use-clock-tick-BJJCAsNs.js → use-clock-tick-Bgw2dE7q.js} +1 -1
  188. package/dist/client/assets/{use-connection-CTtDScYT.js → use-connection-BEzC3g8f.js} +1 -1
  189. package/dist/client/assets/{use-copy-Bhq89_Kc.js → use-copy-D53s1qEg.js} +1 -1
  190. package/dist/client/assets/{use-create-virtual-mcp-DGJQwotb.js → use-create-virtual-mcp-ANUYf12Q.js} +1 -1
  191. package/dist/client/assets/{use-debounced-autosave-BOUcFzt5.js → use-debounced-autosave-BJZGzBBA.js} +1 -1
  192. package/dist/client/assets/{use-debounced-value-BTkSCUP8.js → use-debounced-value-CYa76Zmr.js} +1 -1
  193. package/dist/client/assets/{use-deco-credits-BMYnKYPH.js → use-deco-credits-WZGr7UOX.js} +1 -1
  194. package/dist/client/assets/{use-decopilot-events-hcWdwEuS.js → use-decopilot-events-BV0PbrVT.js} +1 -1
  195. package/dist/client/assets/{use-delete-connection-BzQuIunM.js → use-delete-connection-Ccr3K0EP.js} +1 -1
  196. package/dist/client/assets/{use-deployment-admin-Dtk9gilM.js → use-deployment-admin-BTi-7IB8.js} +1 -1
  197. package/dist/client/assets/{use-file-configs-TjH-jCIl.js → use-file-configs-kOtKCUoV.js} +1 -1
  198. package/dist/client/assets/{use-infinite-scroll-BqNrHJAq.js → use-infinite-scroll-CONOHnuy.js} +1 -1
  199. package/dist/client/assets/{use-infra-billing-CTNpYocM.js → use-infra-billing-B4EAURSE.js} +1 -1
  200. package/dist/client/assets/{use-join-requests-BHFt0urj.js → use-join-requests-DtBvsbrF.js} +1 -1
  201. package/dist/client/assets/{use-mcp-client-C-LXOIxN.js → use-mcp-client-DTIaJzH5.js} +1 -1
  202. package/dist/client/assets/{use-mcp-tools--8cQ92eh.js → use-mcp-tools-JzoGZ6p1.js} +1 -1
  203. package/dist/client/assets/{use-members-Brt19w11.js → use-members-COIGrf9q.js} +1 -1
  204. package/dist/client/assets/{use-mobile-WonL71_u.js → use-mobile-BfoXl3UK.js} +1 -1
  205. package/dist/client/assets/{use-navigate-to-agent-DF7sO83S.js → use-navigate-to-agent-CvPty0ka.js} +1 -1
  206. package/dist/client/assets/{use-open-billing-url-Cc23huFw.js → use-open-billing-url-49jCKOMZ.js} +1 -1
  207. package/dist/client/assets/{use-org-auth-client-t9JfZIjw.js → use-org-auth-client-Dur3Yig8.js} +1 -1
  208. package/dist/client/assets/{use-org-sso-UKEGNTmI.js → use-org-sso-BcptYP89.js} +1 -1
  209. package/dist/client/assets/{use-organization-roles-CkLxPl_R.js → use-organization-roles-CWEb_6Wz.js} +1 -1
  210. package/dist/client/assets/{use-organization-settings-BaavpVJk.js → use-organization-settings-CNMbxTls.js} +1 -1
  211. package/dist/client/assets/{use-registry-connections-BMitvLFT.js → use-registry-connections-DAANgu0H.js} +1 -1
  212. package/dist/client/assets/{use-secrets-DxHmo3_h.js → use-secrets-BCJA-H_b.js} +1 -1
  213. package/dist/client/assets/{use-section-preview-base-CmKT9IBD.js → use-section-preview-base-DwokRW01.js} +1 -1
  214. package/dist/client/assets/{use-status-sounds-DX2DHYLU.js → use-status-sounds-C8n706u8.js} +1 -1
  215. package/dist/client/assets/{use-tags-BXByInuC.js → use-tags-ah4hD1oP.js} +1 -1
  216. package/dist/client/assets/{use-view-mode-DWObKYOq.js → use-view-mode-Bf5q7usB.js} +1 -1
  217. package/dist/client/assets/{use-virtual-mcp-DsDRQJX3.js → use-virtual-mcp-CChazQvN.js} +1 -1
  218. package/dist/client/assets/useInfiniteQuery-B75UMXoa.js +1 -0
  219. package/dist/client/assets/{useRouterState-OwhrRUai.js → useRouterState-CdeKrYGj.js} +1 -1
  220. package/dist/client/assets/useSuspenseInfiniteQuery-2Xb4xxXy.js +1 -0
  221. package/dist/client/assets/{users-CnXnxHmT.js → users-DreFNVYF.js} +1 -1
  222. package/dist/client/assets/{variant-calendar-fCIvpvPi.js → variant-calendar-2VE-dx9u.js} +1 -1
  223. package/dist/client/assets/{view-mode-toggle-BaqCYZ7S.js → view-mode-toggle-CKkq4yjo.js} +1 -1
  224. package/dist/client/index.html +1 -1
  225. package/dist/server/cli.js +442 -442
  226. package/dist/server/server.js +309 -309
  227. package/package.json +1 -1
  228. package/dist/client/assets/record-editor-BF9u1n6O.js +0 -1
  229. package/dist/client/assets/redirect-editor-CzmitCSW.js +0 -1
  230. package/dist/client/assets/registry-BO3JsbA7.js +0 -2
  231. package/dist/client/assets/store-registry-BRdj0CWe.js +0 -2
  232. package/dist/client/assets/useInfiniteQuery-BXmYrs00.js +0 -1
  233. package/dist/client/assets/useSuspenseInfiniteQuery-MTcqeDuU.js +0 -1
@@ -1 +1 @@
1
- import{c as m,n as p,x as q,K as T}from"./index-CCLrlcV5.js";function C(r){const e=m.c(12);let t,o;e[0]!==r?({client:t,...o}=r,e[0]=r,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let s;e[5]!==t?(s=async()=>await t.listTools(),e[5]=t,e[6]=s):s=e[6];const n=o.staleTime??3e4;let i;return e[7]!==o||e[8]!==l||e[9]!==s||e[10]!==n?(i={...o,queryKey:l,queryFn:s,staleTime:n,retry:!1},e[7]=o,e[8]=l,e[9]=s,e[10]=n,e[11]=i):i=e[11],q(i)}function K(r){const e=m.c(12);let t,o;e[0]!==r?({client:t,...o}=r,e[0]=r,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let s;e[5]!==t?(s=async()=>await t.listTools(),e[5]=t,e[6]=s):s=e[6];const n=o.staleTime??3e4;let i;return e[7]!==o||e[8]!==l||e[9]!==s||e[10]!==n?(i={...o,queryKey:l,queryFn:s,staleTime:n,retry:!1},e[7]=o,e[8]=l,e[9]=s,e[10]=n,e[11]=i):i=e[11],p(i)}function O(r){const e=m.c(21);let t,o,l,s;e[0]!==r?({client:t,toolName:s,toolArguments:l,...o}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=l,e[4]=s):(t=e[1],o=e[2],l=e[3],s=e[4]);let n,i,u;if(e[5]!==t||e[6]!==o||e[7]!==l||e[8]!==s){const f=JSON.stringify(l??{});u=q,n=o,i=T.mcpToolCall(t,s,f),e[5]=t,e[6]=o,e[7]=l,e[8]=s,e[9]=n,e[10]=i,e[11]=u}else n=e[9],i=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==s?(a=async()=>await t.callTool({name:s,arguments:l}),e[12]=t,e[13]=l,e[14]=s,e[15]=a):a=e[15];const y=o.staleTime??3e4;let c;return e[16]!==n||e[17]!==i||e[18]!==a||e[19]!==y?(c={...n,queryKey:i,queryFn:a,staleTime:y,retry:!1},e[16]=n,e[17]=i,e[18]=a,e[19]=y,e[20]=c):c=e[20],u(c)}function w(r){const e=m.c(21);let t,o,l,s;e[0]!==r?({client:t,toolName:s,toolArguments:l,...o}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=l,e[4]=s):(t=e[1],o=e[2],l=e[3],s=e[4]);let n,i,u;if(e[5]!==t||e[6]!==o||e[7]!==l||e[8]!==s){const f=JSON.stringify(l??{});u=p,n=o,i=T.mcpToolCall(t,s,f),e[5]=t,e[6]=o,e[7]=l,e[8]=s,e[9]=n,e[10]=i,e[11]=u}else n=e[9],i=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==s?(a=async()=>await t.callTool({name:s,arguments:l}),e[12]=t,e[13]=l,e[14]=s,e[15]=a):a=e[15];const y=o.staleTime??3e4;let c;return e[16]!==n||e[17]!==i||e[18]!==a||e[19]!==y?(c={...n,queryKey:i,queryFn:a,staleTime:y,retry:!1},e[16]=n,e[17]=i,e[18]=a,e[19]=y,e[20]=c):c=e[20],u(c)}export{K as a,C as b,O as c,w as u};
1
+ import{c as m,n as p,x as q,K as T}from"./index-5gemagf1.js";function C(r){const e=m.c(12);let t,o;e[0]!==r?({client:t,...o}=r,e[0]=r,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let s;e[5]!==t?(s=async()=>await t.listTools(),e[5]=t,e[6]=s):s=e[6];const n=o.staleTime??3e4;let i;return e[7]!==o||e[8]!==l||e[9]!==s||e[10]!==n?(i={...o,queryKey:l,queryFn:s,staleTime:n,retry:!1},e[7]=o,e[8]=l,e[9]=s,e[10]=n,e[11]=i):i=e[11],q(i)}function K(r){const e=m.c(12);let t,o;e[0]!==r?({client:t,...o}=r,e[0]=r,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let s;e[5]!==t?(s=async()=>await t.listTools(),e[5]=t,e[6]=s):s=e[6];const n=o.staleTime??3e4;let i;return e[7]!==o||e[8]!==l||e[9]!==s||e[10]!==n?(i={...o,queryKey:l,queryFn:s,staleTime:n,retry:!1},e[7]=o,e[8]=l,e[9]=s,e[10]=n,e[11]=i):i=e[11],p(i)}function O(r){const e=m.c(21);let t,o,l,s;e[0]!==r?({client:t,toolName:s,toolArguments:l,...o}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=l,e[4]=s):(t=e[1],o=e[2],l=e[3],s=e[4]);let n,i,u;if(e[5]!==t||e[6]!==o||e[7]!==l||e[8]!==s){const f=JSON.stringify(l??{});u=q,n=o,i=T.mcpToolCall(t,s,f),e[5]=t,e[6]=o,e[7]=l,e[8]=s,e[9]=n,e[10]=i,e[11]=u}else n=e[9],i=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==s?(a=async()=>await t.callTool({name:s,arguments:l}),e[12]=t,e[13]=l,e[14]=s,e[15]=a):a=e[15];const y=o.staleTime??3e4;let c;return e[16]!==n||e[17]!==i||e[18]!==a||e[19]!==y?(c={...n,queryKey:i,queryFn:a,staleTime:y,retry:!1},e[16]=n,e[17]=i,e[18]=a,e[19]=y,e[20]=c):c=e[20],u(c)}function w(r){const e=m.c(21);let t,o,l,s;e[0]!==r?({client:t,toolName:s,toolArguments:l,...o}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=l,e[4]=s):(t=e[1],o=e[2],l=e[3],s=e[4]);let n,i,u;if(e[5]!==t||e[6]!==o||e[7]!==l||e[8]!==s){const f=JSON.stringify(l??{});u=p,n=o,i=T.mcpToolCall(t,s,f),e[5]=t,e[6]=o,e[7]=l,e[8]=s,e[9]=n,e[10]=i,e[11]=u}else n=e[9],i=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==s?(a=async()=>await t.callTool({name:s,arguments:l}),e[12]=t,e[13]=l,e[14]=s,e[15]=a):a=e[15];const y=o.staleTime??3e4;let c;return e[16]!==n||e[17]!==i||e[18]!==a||e[19]!==y?(c={...n,queryKey:i,queryFn:a,staleTime:y,retry:!1},e[16]=n,e[17]=i,e[18]=a,e[19]=y,e[20]=c):c=e[20],u(c)}export{K as a,C as b,O as c,w as u};
@@ -1 +1 @@
1
- import{c,F as m,x as b,n as M,K as f}from"./index-CCLrlcV5.js";import{u as y}from"./use-org-auth-client-t9JfZIjw.js";const p=300*1e3;function d(){const t=c.c(7),{locator:e}=m(),o=y();let r;t[0]!==e?(r=f.members(e),t[0]=e,t[1]=r):r=t[1];let s;t[2]!==o?(s=()=>o.organization.listMembers(),t[2]=o,t[3]=s):s=t[3];let n;return t[4]!==r||t[5]!==s?(n={queryKey:r,queryFn:s},t[4]=r,t[5]=s,t[6]=n):n=t[6],b(n)}function q(t){const e=c.c(10);let o;e[0]!==t?(o=t===void 0?{}:t,e[0]=t,e[1]=o):o=e[1];const{enabled:r}=o,s=r===void 0?!0:r,{locator:n}=m(),a=y();let u;e[2]!==n?(u=f.members(n),e[2]=n,e[3]=u):u=e[3];let i;e[4]!==a?(i=()=>a.organization.listMembers(),e[4]=a,e[5]=i):i=e[5];let l;return e[6]!==s||e[7]!==u||e[8]!==i?(l={queryKey:u,queryFn:i,staleTime:p,enabled:s},e[6]=s,e[7]=u,e[8]=i,e[9]=l):l=e[9],M(l)}export{d as a,q as u};
1
+ import{c,F as m,x as b,n as M,K as f}from"./index-5gemagf1.js";import{u as y}from"./use-org-auth-client-Dur3Yig8.js";const p=300*1e3;function d(){const t=c.c(7),{locator:e}=m(),o=y();let r;t[0]!==e?(r=f.members(e),t[0]=e,t[1]=r):r=t[1];let s;t[2]!==o?(s=()=>o.organization.listMembers(),t[2]=o,t[3]=s):s=t[3];let n;return t[4]!==r||t[5]!==s?(n={queryKey:r,queryFn:s},t[4]=r,t[5]=s,t[6]=n):n=t[6],b(n)}function q(t){const e=c.c(10);let o;e[0]!==t?(o=t===void 0?{}:t,e[0]=t,e[1]=o):o=e[1];const{enabled:r}=o,s=r===void 0?!0:r,{locator:n}=m(),a=y();let u;e[2]!==n?(u=f.members(n),e[2]=n,e[3]=u):u=e[3];let i;e[4]!==a?(i=()=>a.organization.listMembers(),e[4]=a,e[5]=i):i=e[5];let l;return e[6]!==s||e[7]!==u||e[8]!==i?(l={queryKey:u,queryFn:i,staleTime:p,enabled:s},e[6]=s,e[7]=u,e[8]=i,e[9]=l):l=e[9],M(l)}export{d as a,q as u};
@@ -1 +1 @@
1
- import{c as m,r}from"./index-CCLrlcV5.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
1
+ import{c as m,r}from"./index-5gemagf1.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
@@ -1 +1 @@
1
- import{G as y,r as c,c as b,j as A,d as C,F as E,a as $}from"./index-CCLrlcV5.js";import{a as _}from"./use-virtual-mcp-DsDRQJX3.js";import{c as G}from"./hooks-15WKVCFA.js";import{f as P}from"./reusable-new-chat-CouMjkYR.js";const h=new Map;function I(e){return`${e.orgId}:${e.userId}`}function w(e){return`sidebar.group-order.${e}`}function O(e){try{const t=localStorage.getItem(e),r=t?JSON.parse(t):[];return Array.isArray(r)?r.filter(s=>typeof s=="string"):[]}catch{return[]}}function N(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}function U(e){const t=I(e),r=h.get(t);if(r)return r;const s=y.sidebarGroupOrder(e.orgId,e.userId);let a=!1;try{a=localStorage.getItem(s)!==null}catch{}let o=O(s);if(!a&&o.length===0&&e.userId!=="anon"){const i=O(w(e.orgId));i.length>0&&(o=i)}return h.set(t,o),o}function T(e,t){const r=new Set(t);return U(e).filter(s=>!r.has(s))}function j(e,t){h.set(I(e),t),N(y.sidebarGroupOrder(e.orgId,e.userId),t)}function K(e,t,r=[]){if(r.includes(t))return;const s=T(e,r);s.includes(t)||j(e,[t,...s])}const S=c.createContext(null);function Q(e){const t=b.c(7),{children:r}=e,[s,a]=c.useState(!1),[o,i]=c.useState(0);let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=()=>i(k),t[0]=d):d=t[0];const l=d;let n;t[1]!==s||t[2]!==o?(n={empty:s,setEmpty:a,orderRevision:o,bumpOrderRevision:l},t[1]=s,t[2]=o,t[3]=n):n=t[3];let u;return t[4]!==r||t[5]!==n?(u=A.jsx(S.Provider,{value:n,children:r}),t[4]=r,t[5]=n,t[6]=u):u=t[6],u}function k(e){return e+1}function W(){return c.useContext(S)?.empty??!1}function D(){return c.useContext(S)?.bumpOrderRevision??J}function J(){}const v=[],L=()=>()=>{};function B(e){return(e??[]).filter(t=>!!t.pinned).map(t=>t.id)}function X(){const e=b.c(15),t=C(),{org:r}=E(),s=_(),{data:a}=$.useSession(),o=a?.user?.id??"anon";let i;e[0]!==s?(i=B(s),e[0]=s,e[1]=i):i=e[1];const d=i,l=D(),n=G();let u;e[2]!==n?.threads.get?(u=n?.threads.get??H,e[2]=n?.threads.get,e[3]=u):u=e[3];let f;e[4]!==n?.threads.get?(f=n?.threads.get??F,e[4]=n?.threads.get,e[5]=f):f=e[5];const m=c.useSyncExternalStore(n?.threads.subscribe??L,u,f);let g;return e[6]!==l||e[7]!==t||e[8]!==r.id||e[9]!==r.slug||e[10]!==d||e[11]!==a?.user?.id||e[12]!==o||e[13]!==m?(g=(p,x)=>{K({orgId:r.id,userId:o},p,d),l();const R=P(m,p,a?.user?.id)?.id??crypto.randomUUID();t({to:"/$org/$taskId",params:{org:r.slug,taskId:R},search:{...x?.search??{},virtualmcpid:p}})},e[6]=l,e[7]=t,e[8]=r.id,e[9]=r.slug,e[10]=d,e[11]=a?.user?.id,e[12]=o,e[13]=m,e[14]=g):g=e[14],g}function F(){return v}function H(){return v}export{Q as S,D as a,K as b,X as c,B as g,W as u};
1
+ import{G as y,r as c,c as b,j as A,d as C,F as E,a as $}from"./index-5gemagf1.js";import{a as _}from"./use-virtual-mcp-CChazQvN.js";import{c as G}from"./hooks-Bg9fS6HW.js";import{f as P}from"./reusable-new-chat-CouMjkYR.js";const h=new Map;function I(e){return`${e.orgId}:${e.userId}`}function w(e){return`sidebar.group-order.${e}`}function O(e){try{const t=localStorage.getItem(e),r=t?JSON.parse(t):[];return Array.isArray(r)?r.filter(s=>typeof s=="string"):[]}catch{return[]}}function N(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}function U(e){const t=I(e),r=h.get(t);if(r)return r;const s=y.sidebarGroupOrder(e.orgId,e.userId);let a=!1;try{a=localStorage.getItem(s)!==null}catch{}let o=O(s);if(!a&&o.length===0&&e.userId!=="anon"){const i=O(w(e.orgId));i.length>0&&(o=i)}return h.set(t,o),o}function T(e,t){const r=new Set(t);return U(e).filter(s=>!r.has(s))}function j(e,t){h.set(I(e),t),N(y.sidebarGroupOrder(e.orgId,e.userId),t)}function K(e,t,r=[]){if(r.includes(t))return;const s=T(e,r);s.includes(t)||j(e,[t,...s])}const S=c.createContext(null);function Q(e){const t=b.c(7),{children:r}=e,[s,a]=c.useState(!1),[o,i]=c.useState(0);let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=()=>i(k),t[0]=d):d=t[0];const l=d;let n;t[1]!==s||t[2]!==o?(n={empty:s,setEmpty:a,orderRevision:o,bumpOrderRevision:l},t[1]=s,t[2]=o,t[3]=n):n=t[3];let u;return t[4]!==r||t[5]!==n?(u=A.jsx(S.Provider,{value:n,children:r}),t[4]=r,t[5]=n,t[6]=u):u=t[6],u}function k(e){return e+1}function W(){return c.useContext(S)?.empty??!1}function D(){return c.useContext(S)?.bumpOrderRevision??J}function J(){}const v=[],L=()=>()=>{};function B(e){return(e??[]).filter(t=>!!t.pinned).map(t=>t.id)}function X(){const e=b.c(15),t=C(),{org:r}=E(),s=_(),{data:a}=$.useSession(),o=a?.user?.id??"anon";let i;e[0]!==s?(i=B(s),e[0]=s,e[1]=i):i=e[1];const d=i,l=D(),n=G();let u;e[2]!==n?.threads.get?(u=n?.threads.get??H,e[2]=n?.threads.get,e[3]=u):u=e[3];let f;e[4]!==n?.threads.get?(f=n?.threads.get??F,e[4]=n?.threads.get,e[5]=f):f=e[5];const m=c.useSyncExternalStore(n?.threads.subscribe??L,u,f);let g;return e[6]!==l||e[7]!==t||e[8]!==r.id||e[9]!==r.slug||e[10]!==d||e[11]!==a?.user?.id||e[12]!==o||e[13]!==m?(g=(p,x)=>{K({orgId:r.id,userId:o},p,d),l();const R=P(m,p,a?.user?.id)?.id??crypto.randomUUID();t({to:"/$org/$taskId",params:{org:r.slug,taskId:R},search:{...x?.search??{},virtualmcpid:p}})},e[6]=l,e[7]=t,e[8]=r.id,e[9]=r.slug,e[10]=d,e[11]=a?.user?.id,e[12]=o,e[13]=m,e[14]=g):g=e[14],g}function F(){return v}function H(){return v}export{Q as S,D as a,K as b,X as c,B as g,W as u};
@@ -1 +1 @@
1
- import{c,b as l,e as p,t as f}from"./index-CCLrlcV5.js";import{u as m}from"./studio-tools-VaW1QNJX.js";function b(n,r){const t=c.c(9),u=m(),i=l();let e;t[0]!==u||t[1]!==n?(e=async()=>{const{url:a}=await u.call(n,{});return a},t[0]=u,t[1]=n,t[2]=e):e=t[2];let s;t[3]!==r||t[4]!==i?(s=a=>f.error(i(r,{message:a.message})),t[3]=r,t[4]=i,t[5]=s):s=t[5];let o;return t[6]!==e||t[7]!==s?(o={mutationFn:e,onSuccess:d,onError:s},t[6]=e,t[7]=s,t[8]=o):o=t[8],p(o)}function d(n){return window.open(n,"_blank","noopener,noreferrer")}export{b as u};
1
+ import{c,b as l,e as p,t as f}from"./index-5gemagf1.js";import{u as m}from"./studio-tools-CQ2rygf5.js";function b(n,r){const t=c.c(9),u=m(),i=l();let e;t[0]!==u||t[1]!==n?(e=async()=>{const{url:a}=await u.call(n,{});return a},t[0]=u,t[1]=n,t[2]=e):e=t[2];let s;t[3]!==r||t[4]!==i?(s=a=>f.error(i(r,{message:a.message})),t[3]=r,t[4]=i,t[5]=s):s=t[5];let o;return t[6]!==e||t[7]!==s?(o={mutationFn:e,onSuccess:d,onError:s},t[6]=e,t[7]=s,t[8]=o):o=t[8],p(o)}function d(n){return window.open(n,"_blank","noopener,noreferrer")}export{b as u};
@@ -1 +1 @@
1
- import{c as x,F as j,a as i}from"./index-CCLrlcV5.js";function A(){const e=x.c(32),{org:O}=j(),o=O.id;let z;e[0]!==o?(z=R=>(f=>i.organization[R]({...f??{},organizationId:o})),e[0]=o,e[1]=z):z=e[1];const t=z;let M;e[2]!==o?(M=R=>(f=>{const y={...f??{}},h=y.query??{};return y.query={...h,organizationId:o},i.organization[R](y)}),e[2]=o,e[3]=M):M=e[3];const n=M;let a,r;e[4]!==n?(a=n("listMembers"),r=n("listRoles"),e[4]=n,e[5]=a,e[6]=r):(a=e[5],r=e[6]);let l,s,c,g,u,m,d,v,b;e[7]!==t?(g=t("inviteMember"),u=t("removeMember"),m=t("updateMemberRole"),d=t("addMember"),v=t("createRole"),b=t("updateRole"),l=t("deleteRole"),s=t("cancelInvitation"),c=t("update"),e[7]=t,e[8]=l,e[9]=s,e[10]=c,e[11]=g,e[12]=u,e[13]=m,e[14]=d,e[15]=v,e[16]=b):(l=e[8],s=e[9],c=e[10],g=e[11],u=e[12],m=e[13],d=e[14],v=e[15],b=e[16]);let p;e[17]!==n?(p=n("getActiveMember"),e[17]=n,e[18]=p):p=e[18];let I;return e[19]!==l||e[20]!==s||e[21]!==c||e[22]!==p||e[23]!==a||e[24]!==r||e[25]!==g||e[26]!==u||e[27]!==m||e[28]!==d||e[29]!==v||e[30]!==b?(I={organization:{listMembers:a,listRoles:r,inviteMember:g,removeMember:u,updateMemberRole:m,addMember:d,createRole:v,updateRole:b,deleteRole:l,cancelInvitation:s,update:c,getActiveMember:p,acceptInvitation:i.organization.acceptInvitation,rejectInvitation:i.organization.rejectInvitation,getInvitation:i.organization.getInvitation,list:i.organization.list,create:i.organization.create,getFullOrganization:i.organization.getFullOrganization}},e[19]=l,e[20]=s,e[21]=c,e[22]=p,e[23]=a,e[24]=r,e[25]=g,e[26]=u,e[27]=m,e[28]=d,e[29]=v,e[30]=b,e[31]=I):I=e[31],I}export{A as u};
1
+ import{c as x,F as j,a as i}from"./index-5gemagf1.js";function A(){const e=x.c(32),{org:O}=j(),o=O.id;let z;e[0]!==o?(z=R=>(f=>i.organization[R]({...f??{},organizationId:o})),e[0]=o,e[1]=z):z=e[1];const t=z;let M;e[2]!==o?(M=R=>(f=>{const y={...f??{}},h=y.query??{};return y.query={...h,organizationId:o},i.organization[R](y)}),e[2]=o,e[3]=M):M=e[3];const n=M;let a,r;e[4]!==n?(a=n("listMembers"),r=n("listRoles"),e[4]=n,e[5]=a,e[6]=r):(a=e[5],r=e[6]);let l,s,c,g,u,m,d,v,b;e[7]!==t?(g=t("inviteMember"),u=t("removeMember"),m=t("updateMemberRole"),d=t("addMember"),v=t("createRole"),b=t("updateRole"),l=t("deleteRole"),s=t("cancelInvitation"),c=t("update"),e[7]=t,e[8]=l,e[9]=s,e[10]=c,e[11]=g,e[12]=u,e[13]=m,e[14]=d,e[15]=v,e[16]=b):(l=e[8],s=e[9],c=e[10],g=e[11],u=e[12],m=e[13],d=e[14],v=e[15],b=e[16]);let p;e[17]!==n?(p=n("getActiveMember"),e[17]=n,e[18]=p):p=e[18];let I;return e[19]!==l||e[20]!==s||e[21]!==c||e[22]!==p||e[23]!==a||e[24]!==r||e[25]!==g||e[26]!==u||e[27]!==m||e[28]!==d||e[29]!==v||e[30]!==b?(I={organization:{listMembers:a,listRoles:r,inviteMember:g,removeMember:u,updateMemberRole:m,addMember:d,createRole:v,updateRole:b,deleteRole:l,cancelInvitation:s,update:c,getActiveMember:p,acceptInvitation:i.organization.acceptInvitation,rejectInvitation:i.organization.rejectInvitation,getInvitation:i.organization.getInvitation,list:i.organization.list,create:i.organization.create,getFullOrganization:i.organization.getFullOrganization}},e[19]=l,e[20]=s,e[21]=c,e[22]=p,e[23]=a,e[24]=r,e[25]=g,e[26]=u,e[27]=m,e[28]=d,e[29]=v,e[30]=b,e[31]=I):I=e[31],I}export{A as u};
@@ -1 +1 @@
1
- import{c as u,n as S,o as r,e as y,K as c}from"./index-CCLrlcV5.js";async function f(i,a,e){const s=await fetch(i,a);if(!s.ok){const t=await s.json().catch(()=>null);throw new Error(t?.error||e)}return s.json()}function q(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoStatus(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/status`,void 0,"Failed to check SSO status"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function C(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoConfig(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/config`,void 0,"Failed to fetch SSO config"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function O(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)},"Failed to save SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function m(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=()=>f(`/api/${a}/sso/config`,{method:"DELETE"},"Failed to delete SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function h(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:l})},"Failed to toggle SSO enforcement"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}export{C as a,O as b,m as c,h as d,q as u};
1
+ import{c as u,n as S,o as r,e as y,K as c}from"./index-5gemagf1.js";async function f(i,a,e){const s=await fetch(i,a);if(!s.ok){const t=await s.json().catch(()=>null);throw new Error(t?.error||e)}return s.json()}function q(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoStatus(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/status`,void 0,"Failed to check SSO status"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function C(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoConfig(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/config`,void 0,"Failed to fetch SSO config"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function O(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)},"Failed to save SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function m(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=()=>f(`/api/${a}/sso/config`,{method:"DELETE"},"Failed to delete SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function h(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:l})},"Failed to toggle SSO enforcement"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}export{C as a,O as b,m as c,h as d,q as u};
@@ -1 +1 @@
1
- import{u as R}from"./use-org-auth-client-t9JfZIjw.js";import{F as b,n as P,K as y}from"./index-CCLrlcV5.js";const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function B(t){return t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function O(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const u=[];let c=!1;const a=new Set;let s=!1,f=0,e=!1;for(const[l,o]of Object.entries(t)){if(l==="self"){o.includes("*")?i=!0:n.push(...o);continue}if(l==="models"){o.includes("*:*")?e=!0:f=o.length;continue}if(l==="*"){if(c=!0,o.includes("*"))s=!0;else for(const r of o)a.add(r);continue}if(u.push(l),o.includes("*"))s=!0;else for(const r of o)a.add(r)}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:u,allowsAllConnections:c,toolNames:Array.from(a),allowsAllTools:s,modelCount:f,allowsAllModels:e}}function I(){const{locator:t}=b(),n=R(),{data:i,isLoading:u,error:c,refetch:a}=P({queryKey:y.organizationRoles(t),queryFn:async()=>{try{const e=await n.organization.listRoles();return e?.error?(console.error("[useOrganizationRoles] API error:",e.error),[]):e?.data??[]}catch(e){return console.error("[useOrganizationRoles] Fetch error:",e),[]}},staleTime:3e4}),s=w.map(e=>({role:e.value,label:e.label,isBuiltin:e.isBuiltin}));if(i&&Array.isArray(i))for(const e of i){const l=e.role;if(!l||w.some(h=>h.value===l))continue;const{staticPermissions:o,allowsAllStaticPermissions:r,connectionIds:g,allowsAllConnections:m,toolNames:p,allowsAllTools:d,modelCount:C,allowsAllModels:A}=O(e.permission);s.push({id:e.id,role:l,label:B(l),isBuiltin:!1,permission:e.permission??void 0,staticPermissionCount:r?-1:o.length,allowsAllStaticPermissions:r,connectionCount:m?-1:g.length,allowsAllConnections:m,toolCount:d?-1:p.length,allowsAllTools:d,modelCount:A?-1:C,allowsAllModels:A})}const f=s.filter(e=>!e.isBuiltin);return{roles:s,customRoles:f,builtinRoles:s.filter(e=>e.isBuiltin),isLoading:u,error:c,refetch:a}}export{I as u};
1
+ import{u as R}from"./use-org-auth-client-Dur3Yig8.js";import{F as b,n as P,K as y}from"./index-5gemagf1.js";const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function B(t){return t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function O(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const u=[];let c=!1;const a=new Set;let s=!1,f=0,e=!1;for(const[l,o]of Object.entries(t)){if(l==="self"){o.includes("*")?i=!0:n.push(...o);continue}if(l==="models"){o.includes("*:*")?e=!0:f=o.length;continue}if(l==="*"){if(c=!0,o.includes("*"))s=!0;else for(const r of o)a.add(r);continue}if(u.push(l),o.includes("*"))s=!0;else for(const r of o)a.add(r)}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:u,allowsAllConnections:c,toolNames:Array.from(a),allowsAllTools:s,modelCount:f,allowsAllModels:e}}function I(){const{locator:t}=b(),n=R(),{data:i,isLoading:u,error:c,refetch:a}=P({queryKey:y.organizationRoles(t),queryFn:async()=>{try{const e=await n.organization.listRoles();return e?.error?(console.error("[useOrganizationRoles] API error:",e.error),[]):e?.data??[]}catch(e){return console.error("[useOrganizationRoles] Fetch error:",e),[]}},staleTime:3e4}),s=w.map(e=>({role:e.value,label:e.label,isBuiltin:e.isBuiltin}));if(i&&Array.isArray(i))for(const e of i){const l=e.role;if(!l||w.some(h=>h.value===l))continue;const{staticPermissions:o,allowsAllStaticPermissions:r,connectionIds:g,allowsAllConnections:m,toolNames:p,allowsAllTools:d,modelCount:C,allowsAllModels:A}=O(e.permission);s.push({id:e.id,role:l,label:B(l),isBuiltin:!1,permission:e.permission??void 0,staticPermissionCount:r?-1:o.length,allowsAllStaticPermissions:r,connectionCount:m?-1:g.length,allowsAllConnections:m,toolCount:d?-1:p.length,allowsAllTools:d,modelCount:A?-1:C,allowsAllModels:A})}const f=s.filter(e=>!e.isBuiltin);return{roles:s,customRoles:f,builtinRoles:s.filter(e=>e.isBuiltin),isLoading:u,error:c,refetch:a}}export{I as u};
@@ -1 +1 @@
1
- import{Z as c,$ as r,_ as I,a3 as k,a4 as m,a0 as E,ba as C,c as u,F as A,n as O,K as y,o as x,e as $,r as Q}from"./index-CCLrlcV5.js";import{W as q}from"./use-mcp-client-C-LXOIxN.js";import{c as G,u as U}from"./studio-tools-VaW1QNJX.js";c({title:r(),url:r(),icon:r()});c({registries:k(r(),c({enabled:m()})).describe("Per-registry enabled/disabled state. Key is connection ID. Absent registries are treated as enabled."),blockedMcps:I(r()).describe("List of MCP app_name or app_id values to hide from the store.")});const g=c({keyId:r(),modelId:r(),title:r().optional()}).nullable();E(["fast","smart","thinking","image","web_search","deep_research"]);E(["fast","smart","thinking"]);const ne=c({tiers:c({fast:g,smart:g,thinking:g,image:g,web_search:g,deep_research:g})});c({tiers:c({fast:g.optional(),smart:g.optional(),thinking:g.optional()})});c({ids:I(r()).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});c({demo_mode:m().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),reports_only:m().optional().describe("Curated commerce (reports) look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),qa_agent_enabled:m().optional().describe("Run the QA Agent on a task's pull request once it's In Review — it verifies the task actually solved the problem (exercises the feature, not just the diff)."),code_reviewer_enabled:m().optional().describe("Run the Code Reviewer on a task's pull request once it's In Review — it reviews the code using the repo's stack-appropriate review skills."),auto_merge:m().optional().describe("When every enabled reviewer (QA Agent / Code Reviewer) approves a task's pull request, merge it automatically instead of leaving the merge to a human. If the merge is blocked by a conflict with the base branch, hand the PR back to the Super Agent to resolve the conflict (check out the branch, merge the base, push) so it can then merge."),cheap_reviewer_model:m().optional().describe("Run the QA Agent and Code Reviewer on a cheaper model than the Super Agent. A review reads a diff and reaches a verdict; it does not need the model that wrote the code. Off by default — turning it on trades some review depth for cost."),auto_assign_report_tasks_to_super_agent:m().optional().describe("When a report import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned.")});const M=new Set(["qa_agent_enabled","code_reviewer_enabled"]);function L(e,t){const n=e?.[t];return M.has(t)?n!==!1:n===!0}c({id:r().describe("Brand context ID"),name:r().describe("Company name"),domain:r().describe("Company domain (e.g. example.com)"),overview:r().describe("Company overview / description"),logo:r().nullable().optional().describe("Logo URL"),favicon:r().nullable().optional().describe("Favicon URL"),ogImage:r().nullable().optional().describe("OG image URL"),fonts:c({heading:r().optional().describe("Font family for headings"),body:r().optional().describe("Font family for body text"),code:r().optional().describe("Font family for code / monospace")}).nullable().optional().describe("Font families by semantic role"),colors:c({primary:r().optional().describe("Primary brand color (hex)"),secondary:r().optional().describe("Secondary brand color (hex)"),accent:r().optional().describe("Accent / highlight color (hex)"),background:r().optional().describe("Background color (hex)"),foreground:r().optional().describe("Foreground / text color (hex)")}).nullable().optional().describe("Semantic color palette"),images:I(k(r(),C())).nullable().optional().describe("Brand images"),metadata:k(r(),C()).nullable().optional().describe("Extra design tokens (typography, components, spacing, layout, tone, etc.)"),archivedAt:r().nullable().optional().describe("Archive timestamp (null to unarchive)"),isDefault:m().optional().describe("Whether this is the default brand for the organization")});const D={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null,flags:null,main_agent_id:null},F={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function P(e,t){return{queryKey:y.organizationSettings(t),queryFn:async()=>{try{return await G(e,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...D,organizationId:t}}},staleTime:6e4}}function h(e){const t=u.c(6),{org:n}=A();let a;t[0]!==n.id||t[1]!==n.slug?(a=P(n.slug,n.id),t[0]=n.id,t[1]=n.slug,t[2]=a):a=t[2];const o=e;let s;return t[3]!==a||t[4]!==o?(s={...a,select:o},t[3]=a,t[4]=o,t[5]=s):s=t[5],O(s)}function ae(e,t){const n=u.c(3);let a;n[0]!==e||n[1]!==t?(a=P(t,e),n[0]=e,n[1]=t,n[2]=a):a=n[2];const{data:o}=O(a);return o??null}function p(){const e=u.c(9),{org:t}=A(),n=U(),a=x();let o;e[0]!==t||e[1]!==n?(o=async l=>{const d=await n.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:t.id,...l});if(!d)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return d},e[0]=t,e[1]=n,e[2]=o):o=e[2];let s;e[3]!==t||e[4]!==a?(s=l=>{a.setQueryData(y.organizationSettings(t.id),d=>({...d??D,...l}))},e[3]=t,e[4]=a,e[5]=s):s=e[5];let i;return e[6]!==o||e[7]!==s?(i={mutationFn:o,onSuccess:s},e[6]=o,e[7]=s,e[8]=i):i=e[8],$(i)}function K(e){return e?.tiers?{tiers:{fast:e.tiers.fast??null,smart:e.tiers.smart??null,thinking:e.tiers.thinking??null,image:e.tiers.image??null,web_search:e.tiers.web_search??null,deep_research:e.tiers.deep_research??null}}:F}function oe(){const{data:e}=h(W);return e??F}function W(e){return K(e.simple_mode)}function se(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(s,i)=>t.mutate({simple_mode:s},i),a=(s,i)=>t.mutateAsync({simple_mode:s},i),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let o;return e[3]!==t||e[4]!==n||e[5]!==a?(o={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=o):o=e[6],o}function ie(){return j("reports_only")}function j(e){const t=u.c(5);let n;t[0]!==e?(n=s=>L(s.flags,e),t[0]=e,t[1]=n):n=t[1];const{data:a}=h(n);let o;return t[2]!==a||t[3]!==e?(o=a??M.has(e),t[2]=a,t[3]=e,t[4]=o):o=t[4],o}function re(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(s,i,l)=>t.mutate({flags:{[s]:i}},l),a=(s,i,l)=>t.mutateAsync({flags:{[s]:i}},l),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let o;return e[3]!==t||e[4]!==n||e[5]!==a?(o={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=o):o=e[6],o}function B(){const{data:e}=h(Y);return e??null}function Y(e){return e.registry_config}function le(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(s,i)=>t.mutate({registry_config:s},i),a=(s,i)=>t.mutateAsync({registry_config:s},i),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let o;return e[3]!==t||e[4]!==n||e[5]!==a?(o={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=o):o=e[6],o}function ce(){const{data:e}=h(Z);return e??null}function Z(e){return e.default_home_agents}function H(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(s,i)=>t.mutate({default_home_agents:s},i),a=(s,i)=>t.mutateAsync({default_home_agents:s},i),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let o;return e[3]!==t||e[4]!==n||e[5]!==a?(o={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=o):o=e[6],o}function ue(){const e=u.c(14),{org:t}=A(),n=H(),a=x();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Promise.resolve(),e[0]=o):o=e[0];const s=Q.useRef(o);let i;e[1]!==t.id?(i=y.organizationSettings(t.id),e[1]=t.id,e[2]=i):i=e[2];const l=i;let d;e[3]!==l||e[4]!==a?(d=()=>a.getQueryData(l)?.default_home_agents?.ids??[],e[3]=l,e[4]=a,e[5]=d):d=e[5];const S=d;let b;e[6]!==l||e[7]!==t.slug||e[8]!==a||e[9]!==n?(b=z=>{const R=s.current.then(async()=>{const T=a.getQueryData(l),v=z(T?.default_home_agents?.ids??[]);if(v!==null){a.setQueryData(l,f=>f&&{...f,default_home_agents:{ids:v}});try{await n.mutateAsync({ids:v}),await a.refetchQueries({queryKey:y.homeNextActions(t.slug),type:"active"})}catch(f){const N=f;throw a.setQueryData(l,T),N}}});return s.current=R.catch(J),R},e[6]=l,e[7]=t.slug,e[8]=a,e[9]=n,e[10]=b):b=e[10];const w=b;let _;return e[11]!==w||e[12]!==S?(_={currentIds:S,apply:w},e[11]=w,e[12]=S,e[13]=_):_=e[13],_}function J(){}function de(){const e=u.c(3),{data:t,isPending:n}=h(V),a=t??null;let o;return e[0]!==n||e[1]!==a?(o={mainAgentId:a,isPending:n},e[0]=n,e[1]=a,e[2]=o):o=e[2],o}function V(e){return e.main_agent_id??null}function me(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(s,i)=>t.mutate({main_agent_id:s},i),a=(s,i)=>t.mutateAsync({main_agent_id:s},i),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let o;return e[3]!==t||e[4]!==n||e[5]!==a?(o={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=o):o=e[6],o}function ge(){const e=u.c(5),{org:t}=A(),n=B();let a;e[0]!==t.id?(a=q.REGISTRY(t.id),e[0]=t.id,e[1]=a):a=e[1];const o=a;let s;return e[2]!==o||e[3]!==n?(s=i=>{if(!n)return i===o;const l=n.registries[i];return l?l.enabled:i===o},e[2]=o,e[3]=n,e[4]=s):s=e[4],s}export{ne as S,ie as a,oe as b,ce as c,ue as d,de as e,ge as f,ae as g,me as h,re as i,se as j,B as k,le as l,j as u};
1
+ import{Z as c,$ as r,_ as I,a3 as k,a4 as m,a0 as E,ba as C,c as u,F as A,n as O,K as y,o as x,e as $,r as Q}from"./index-5gemagf1.js";import{W as q}from"./use-mcp-client-DTIaJzH5.js";import{c as G,u as U}from"./studio-tools-CQ2rygf5.js";c({title:r(),url:r(),icon:r()});c({registries:k(r(),c({enabled:m()})).describe("Per-registry enabled/disabled state. Key is connection ID. Absent registries are treated as enabled."),blockedMcps:I(r()).describe("List of MCP app_name or app_id values to hide from the store.")});const g=c({keyId:r(),modelId:r(),title:r().optional()}).nullable();E(["fast","smart","thinking","image","web_search","deep_research"]);E(["fast","smart","thinking"]);const ne=c({tiers:c({fast:g,smart:g,thinking:g,image:g,web_search:g,deep_research:g})});c({tiers:c({fast:g.optional(),smart:g.optional(),thinking:g.optional()})});c({ids:I(r()).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});c({demo_mode:m().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),reports_only:m().optional().describe("Curated commerce (reports) look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),qa_agent_enabled:m().optional().describe("Run the QA Agent on a task's pull request once it's In Review — it verifies the task actually solved the problem (exercises the feature, not just the diff)."),code_reviewer_enabled:m().optional().describe("Run the Code Reviewer on a task's pull request once it's In Review — it reviews the code using the repo's stack-appropriate review skills."),auto_merge:m().optional().describe("When every enabled reviewer (QA Agent / Code Reviewer) approves a task's pull request, merge it automatically instead of leaving the merge to a human. If the merge is blocked by a conflict with the base branch, hand the PR back to the Super Agent to resolve the conflict (check out the branch, merge the base, push) so it can then merge."),cheap_reviewer_model:m().optional().describe("Run the QA Agent and Code Reviewer on a cheaper model than the Super Agent. A review reads a diff and reaches a verdict; it does not need the model that wrote the code. Off by default — turning it on trades some review depth for cost."),auto_assign_report_tasks_to_super_agent:m().optional().describe("When a report import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned.")});const M=new Set(["qa_agent_enabled","code_reviewer_enabled"]);function L(e,t){const n=e?.[t];return M.has(t)?n!==!1:n===!0}c({id:r().describe("Brand context ID"),name:r().describe("Company name"),domain:r().describe("Company domain (e.g. example.com)"),overview:r().describe("Company overview / description"),logo:r().nullable().optional().describe("Logo URL"),favicon:r().nullable().optional().describe("Favicon URL"),ogImage:r().nullable().optional().describe("OG image URL"),fonts:c({heading:r().optional().describe("Font family for headings"),body:r().optional().describe("Font family for body text"),code:r().optional().describe("Font family for code / monospace")}).nullable().optional().describe("Font families by semantic role"),colors:c({primary:r().optional().describe("Primary brand color (hex)"),secondary:r().optional().describe("Secondary brand color (hex)"),accent:r().optional().describe("Accent / highlight color (hex)"),background:r().optional().describe("Background color (hex)"),foreground:r().optional().describe("Foreground / text color (hex)")}).nullable().optional().describe("Semantic color palette"),images:I(k(r(),C())).nullable().optional().describe("Brand images"),metadata:k(r(),C()).nullable().optional().describe("Extra design tokens (typography, components, spacing, layout, tone, etc.)"),archivedAt:r().nullable().optional().describe("Archive timestamp (null to unarchive)"),isDefault:m().optional().describe("Whether this is the default brand for the organization")});const D={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null,flags:null,main_agent_id:null},F={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function P(e,t){return{queryKey:y.organizationSettings(t),queryFn:async()=>{try{return await G(e,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...D,organizationId:t}}},staleTime:6e4}}function h(e){const t=u.c(6),{org:n}=A();let a;t[0]!==n.id||t[1]!==n.slug?(a=P(n.slug,n.id),t[0]=n.id,t[1]=n.slug,t[2]=a):a=t[2];const o=e;let s;return t[3]!==a||t[4]!==o?(s={...a,select:o},t[3]=a,t[4]=o,t[5]=s):s=t[5],O(s)}function ae(e,t){const n=u.c(3);let a;n[0]!==e||n[1]!==t?(a=P(t,e),n[0]=e,n[1]=t,n[2]=a):a=n[2];const{data:o}=O(a);return o??null}function p(){const e=u.c(9),{org:t}=A(),n=U(),a=x();let o;e[0]!==t||e[1]!==n?(o=async l=>{const d=await n.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:t.id,...l});if(!d)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return d},e[0]=t,e[1]=n,e[2]=o):o=e[2];let s;e[3]!==t||e[4]!==a?(s=l=>{a.setQueryData(y.organizationSettings(t.id),d=>({...d??D,...l}))},e[3]=t,e[4]=a,e[5]=s):s=e[5];let i;return e[6]!==o||e[7]!==s?(i={mutationFn:o,onSuccess:s},e[6]=o,e[7]=s,e[8]=i):i=e[8],$(i)}function K(e){return e?.tiers?{tiers:{fast:e.tiers.fast??null,smart:e.tiers.smart??null,thinking:e.tiers.thinking??null,image:e.tiers.image??null,web_search:e.tiers.web_search??null,deep_research:e.tiers.deep_research??null}}:F}function oe(){const{data:e}=h(W);return e??F}function W(e){return K(e.simple_mode)}function se(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(s,i)=>t.mutate({simple_mode:s},i),a=(s,i)=>t.mutateAsync({simple_mode:s},i),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let o;return e[3]!==t||e[4]!==n||e[5]!==a?(o={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=o):o=e[6],o}function ie(){return j("reports_only")}function j(e){const t=u.c(5);let n;t[0]!==e?(n=s=>L(s.flags,e),t[0]=e,t[1]=n):n=t[1];const{data:a}=h(n);let o;return t[2]!==a||t[3]!==e?(o=a??M.has(e),t[2]=a,t[3]=e,t[4]=o):o=t[4],o}function re(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(s,i,l)=>t.mutate({flags:{[s]:i}},l),a=(s,i,l)=>t.mutateAsync({flags:{[s]:i}},l),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let o;return e[3]!==t||e[4]!==n||e[5]!==a?(o={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=o):o=e[6],o}function B(){const{data:e}=h(Y);return e??null}function Y(e){return e.registry_config}function le(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(s,i)=>t.mutate({registry_config:s},i),a=(s,i)=>t.mutateAsync({registry_config:s},i),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let o;return e[3]!==t||e[4]!==n||e[5]!==a?(o={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=o):o=e[6],o}function ce(){const{data:e}=h(Z);return e??null}function Z(e){return e.default_home_agents}function H(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(s,i)=>t.mutate({default_home_agents:s},i),a=(s,i)=>t.mutateAsync({default_home_agents:s},i),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let o;return e[3]!==t||e[4]!==n||e[5]!==a?(o={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=o):o=e[6],o}function ue(){const e=u.c(14),{org:t}=A(),n=H(),a=x();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Promise.resolve(),e[0]=o):o=e[0];const s=Q.useRef(o);let i;e[1]!==t.id?(i=y.organizationSettings(t.id),e[1]=t.id,e[2]=i):i=e[2];const l=i;let d;e[3]!==l||e[4]!==a?(d=()=>a.getQueryData(l)?.default_home_agents?.ids??[],e[3]=l,e[4]=a,e[5]=d):d=e[5];const S=d;let b;e[6]!==l||e[7]!==t.slug||e[8]!==a||e[9]!==n?(b=z=>{const R=s.current.then(async()=>{const T=a.getQueryData(l),v=z(T?.default_home_agents?.ids??[]);if(v!==null){a.setQueryData(l,f=>f&&{...f,default_home_agents:{ids:v}});try{await n.mutateAsync({ids:v}),await a.refetchQueries({queryKey:y.homeNextActions(t.slug),type:"active"})}catch(f){const N=f;throw a.setQueryData(l,T),N}}});return s.current=R.catch(J),R},e[6]=l,e[7]=t.slug,e[8]=a,e[9]=n,e[10]=b):b=e[10];const w=b;let _;return e[11]!==w||e[12]!==S?(_={currentIds:S,apply:w},e[11]=w,e[12]=S,e[13]=_):_=e[13],_}function J(){}function de(){const e=u.c(3),{data:t,isPending:n}=h(V),a=t??null;let o;return e[0]!==n||e[1]!==a?(o={mainAgentId:a,isPending:n},e[0]=n,e[1]=a,e[2]=o):o=e[2],o}function V(e){return e.main_agent_id??null}function me(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(s,i)=>t.mutate({main_agent_id:s},i),a=(s,i)=>t.mutateAsync({main_agent_id:s},i),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let o;return e[3]!==t||e[4]!==n||e[5]!==a?(o={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=o):o=e[6],o}function ge(){const e=u.c(5),{org:t}=A(),n=B();let a;e[0]!==t.id?(a=q.REGISTRY(t.id),e[0]=t.id,e[1]=a):a=e[1];const o=a;let s;return e[2]!==o||e[3]!==n?(s=i=>{if(!n)return i===o;const l=n.registries[i];return l?l.enabled:i===o},e[2]=o,e[3]=n,e[4]=s):s=e[4],s}export{ne as S,ie as a,oe as b,ce as c,ue as d,de as e,ge as f,ae as g,me as h,re as i,se as j,B as k,le as l,j as u};
@@ -1 +1 @@
1
- import{c as C,F as R}from"./index-CCLrlcV5.js";import{u as p}from"./use-connection-CTtDScYT.js";import{W as a}from"./use-mcp-client-C-LXOIxN.js";import{k as y}from"./use-organization-settings-BaavpVJk.js";function M(){const e=C.c(19),{org:i}=R(),o=y();let l;e[0]!==i.id?(l=a.REGISTRY(i.id),e[0]=i.id,e[1]=l):l=e[1];const d=l;let f;e[2]!==i.id?(f=a.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 u of s)t.add(u)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const m=p();let n;e[12]!==m?(n=m??[],e[12]=m,e[13]=n):n=e[13];let c;if(e[14]!==t||e[15]!==n){let s;e[17]!==t?(s=u=>t.has(u.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{M as u};
1
+ import{c as C,F as R}from"./index-5gemagf1.js";import{u as p}from"./use-connection-BEzC3g8f.js";import{W as a}from"./use-mcp-client-DTIaJzH5.js";import{k as y}from"./use-organization-settings-CNMbxTls.js";function M(){const e=C.c(19),{org:i}=R(),o=y();let l;e[0]!==i.id?(l=a.REGISTRY(i.id),e[0]=i.id,e[1]=l):l=e[1];const d=l;let f;e[2]!==i.id?(f=a.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 u of s)t.add(u)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const m=p();let n;e[12]!==m?(n=m??[],e[12]=m,e[13]=n):n=e[13];let c;if(e[14]!==t||e[15]!==n){let s;e[17]!==t?(s=u=>t.has(u.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{M as u};
@@ -1 +1 @@
1
- import{c as r,F as a,K as c,x as y,o as d,e as S}from"./index-CCLrlcV5.js";import{u as l}from"./studio-tools-VaW1QNJX.js";function C(){const e=r.c(7),{org:i}=a(),u=l();let o;e[0]!==i.id?(o=c.secrets(i.id),e[0]=i.id,e[1]=o):o=e[1];let t;e[2]!==u?(t=async()=>await u.call("SECRET_LIST",{}),e[2]=u,e[3]=t):t=e[3];let s;e[4]!==o||e[5]!==t?(s={queryKey:o,staleTime:6e4,queryFn:t},e[4]=o,e[5]=t,e[6]=s):s=e[6];const{data:n}=y(s);return n.secrets}function p(){const e=r.c(8),{org:i}=a(),u=l(),o=d();let t;e[0]!==u?(t=async f=>await u.call("SECRET_CREATE",{...f}),e[0]=u,e[1]=t):t=e[1];let s;e[2]!==i||e[3]!==o?(s=()=>{o.invalidateQueries({queryKey:c.secrets(i.id)})},e[2]=i,e[3]=o,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{p as a,C as u};
1
+ import{c as r,F as a,K as c,x as y,o as d,e as S}from"./index-5gemagf1.js";import{u as l}from"./studio-tools-CQ2rygf5.js";function C(){const e=r.c(7),{org:i}=a(),u=l();let o;e[0]!==i.id?(o=c.secrets(i.id),e[0]=i.id,e[1]=o):o=e[1];let t;e[2]!==u?(t=async()=>await u.call("SECRET_LIST",{}),e[2]=u,e[3]=t):t=e[3];let s;e[4]!==o||e[5]!==t?(s={queryKey:o,staleTime:6e4,queryFn:t},e[4]=o,e[5]=t,e[6]=s):s=e[6];const{data:n}=y(s);return n.secrets}function p(){const e=r.c(8),{org:i}=a(),u=l(),o=d();let t;e[0]!==u?(t=async f=>await u.call("SECRET_CREATE",{...f}),e[0]=u,e[1]=t):t=e[1];let s;e[2]!==i||e[3]!==o?(s=()=>{o.invalidateQueries({queryKey:c.secrets(i.id)})},e[2]=i,e[3]=o,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{p as a,C as u};
@@ -1 +1 @@
1
- import{c as D,b as X,r as w,j as r,m as J}from"./index-CCLrlcV5.js";import{af as _}from"./agent-icon-B5lPNSsP.js";import{i as Y}from"./SearchMd-DheaqQdu.js";import{e as Z,d as ee,b as te,a as re}from"./dialog-6eLF19WZ.js";import{I as se}from"./input-D-IOsTjg.js";import{K as le,L as oe,M as ie,N as K,O as ne,P as ae,Q as ce}from"./index-B4LwrR_z.js";import{u as fe}from"./use-virtual-mcp-DsDRQJX3.js";const de=12,z=new Set,q=new Set;function ue(){for(const s of q)s()}function me(s){return z.has(s)?!0:z.size>=de?!1:(z.add(s),!0)}function Q(s){z.delete(s)&&ue()}function ve(s){return q.add(s),()=>{q.delete(s)}}function pe(s,e){const t=w.useRef(!1),[a,c]=w.useState(!1),i=w.useRef(null),d=w.useRef(null),n=w.useRef(null),l=w.useRef(s);l.current=s;const[f]=w.useState(()=>{const o=()=>{n.current?.(),n.current=null},u=()=>t.current?!0:me(e)?(t.current=!0,c(!0),o(),!0):!1;return v=>{if(d.current=v,i.current&&(i.current.disconnect(),i.current=null),o(),!v){t.current&&(Q(e),t.current=!1,c(!1));return}queueMicrotask(()=>{if(d.current!==v)return;const x=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!u()&&!n.current&&(n.current=ve(()=>{d.current===v&&u()}));return}o(),t.current&&(Q(e),t.current=!1,c(!1))},{root:l.current.current,rootMargin:"160px 0px"});x.observe(v),i.current=x})}});return{ref:f,iframeActive:a}}function xe(s){const e=D.c(8),{previewUrl:t,title:a,scrollRootRef:c,slotId:i}=s,{ref:d,iframeActive:n}=pe(c,i),[l,f]=w.useState(!1);let o;e[0]!==n||e[1]!==l||e[2]!==t||e[3]!==a?(o=n?r.jsxs(r.Fragment,{children:[!l&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:r.jsx(_,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),r.jsx("iframe",{src:t,title:`Preview ${a}`,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:()=>f(!0)})]}):r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(_,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=n,e[1]=l,e[2]=t,e[3]=a,e[4]=o):o=e[4];let u;return e[5]!==d||e[6]!==o?(u=r.jsx("div",{ref:d,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:o}),e[5]=d,e[6]=o,e[7]=u):u=e[7],u}function he(s){const e=D.c(26),{entry:t,previewUrl:a,scrollRootRef:c,onSelect:i}=s,d=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let n;e[0]!==d?(n=J("group flex flex-col overflow-hidden rounded-lg border bg-card text-left transition-colors","hover:border-primary/40 hover:bg-accent/30",d),e[0]=d,e[1]=n):n=e[1];let l;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==a||e[5]!==c?(l=r.jsx(xe,{previewUrl:a,title:t.title,scrollRootRef:c,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=a,e[5]=c,e[6]=l):l=e[6];let f;e[7]!==t.isSavedBlock?(f=t.isSavedBlock?{color:ne}:void 0,e[7]=t.isSavedBlock,e[8]=f):f=e[8];let o;e[9]!==f?(o=r.jsx(_,{className:"h-4 w-4 shrink-0",style:f}),e[9]=f,e[10]=o):o=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]!==o||e[19]!==x?(m=r.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[o,x]}),e[18]=o,e[19]=x,e[20]=m):m=e[20];let h;return e[21]!==i||e[22]!==n||e[23]!==l||e[24]!==m?(h=r.jsxs("button",{type:"button",onClick:i,className:n,children:[l,m]}),e[21]=i,e[22]=n,e[23]=l,e[24]=m,e[25]=h):h=e[25],h}function Re(s){const e=D.c(51),{open:t,onOpenChange:a,meta:c,decofile:i,previewBaseUrl:d,onSelect:n}=s,l=X(),[f,o]=w.useState(""),[u,v]=w.useState(t),x=w.useRef(null);t!==u&&(v(t),t&&o(""));let m,h,S,b,j,N,y,R,g,P,C;if(e[0]!==i||e[1]!==c||e[2]!==a||e[3]!==n||e[4]!==t||e[5]!==d||e[6]!==f||e[7]!==l){const F=t&&c&&i?le(c,i):[],W=c?oe(c):"",V=i?ie(i):void 0,G=new Map;if(t&&W)for(const p of F)G.set(p.resolveType,K(d,W,p.previewBlock,V));const E=f.trim().toLowerCase(),H=E?F.filter(p=>p.title.toLowerCase().includes(E)||p.resolveType.toLowerCase().includes(E)||p.description?.toLowerCase().includes(E)):F;h=Z,P=t,C=a,m=ee,y="top-3 right-3",R="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let M;e[19]!==l?(M=l("sectionsEditor.addSectionModal.title"),e[19]=l,e[20]=M):M=e[20];let U;e[21]!==M?(U=r.jsx(te,{children:M}),e[21]=M,e[22]=U):U=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k=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]=k):k=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=p=>o(p.target.value),e[24]=$):$=e[24];let A;e[25]!==l?(A=l("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=l,e[26]=A):A=e[26];let B;e[27]!==f||e[28]!==A?(B=r.jsxs("div",{className:"relative pt-2",children:[k,r.jsx(se,{value:f,onChange:$,placeholder:A,className:"h-9 pl-8"})]}),e[27]=f,e[28]=A,e[29]=B):B=e[29],e[30]!==U||e[31]!==B?(g=r.jsxs(re,{className:"shrink-0 border-b px-4 py-3 text-left",children:[U,B]}),e[30]=U,e[31]=B,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(he,{entry:p,scrollRootRef:x,previewUrl:G.get(p.resolveType)??K(d,W,p.previewBlock,V),onSelect:()=>n(p)},p.resolveType))}),e[0]=i,e[1]=c,e[2]=a,e[3]=n,e[4]=t,e[5]=d,e[6]=f,e[7]=l,e[8]=m,e[9]=h,e[10]=S,e[11]=b,e[12]=j,e[13]=N,e[14]=y,e[15]=R,e[16]=g,e[17]=P,e[18]=C}else m=e[8],h=e[9],S=e[10],b=e[11],j=e[12],N=e[13],y=e[14],R=e[15],g=e[16],P=e[17],C=e[18];let T;e[33]!==S||e[34]!==b?(T=r.jsx("div",{className:S,children:b}),e[33]=S,e[34]=b,e[35]=T):T=e[35];let I;e[36]!==T||e[37]!==j||e[38]!==N?(I=r.jsx("div",{ref:j,className:N,children:T}),e[36]=T,e[37]=j,e[38]=N,e[39]=I):I=e[39];let L;e[40]!==m||e[41]!==I||e[42]!==y||e[43]!==R||e[44]!==g?(L=r.jsxs(m,{closeButtonClassName:y,className:R,children:[g,I]}),e[40]=m,e[41]=I,e[42]=y,e[43]=R,e[44]=g,e[45]=L):L=e[45];let O;return e[46]!==h||e[47]!==L||e[48]!==P||e[49]!==C?(O=r.jsx(h,{open:P,onOpenChange:C,children:L}),e[46]=h,e[47]=L,e[48]=P,e[49]=C,e[50]=O):O=e[50],O}function Pe(s){const e=D.c(3),t=fe(s.virtualMcpId);let a;if(e[0]!==s.sandboxUrl||e[1]!==t?.metadata){const{previewServerUrl:c,active:i}=ae(t?.metadata);a=ce({sandboxUrl:s.sandboxUrl,previewServerUrl:c,fastPreviewActive:i}),e[0]=s.sandboxUrl,e[1]=t?.metadata,e[2]=a}else a=e[2];return a}export{Re as A,Pe as u};
1
+ import{c as D,b as X,r as w,j as r,m as J}from"./index-5gemagf1.js";import{af as _}from"./agent-icon-DxmmOieH.js";import{i as Y}from"./SearchMd-D_hwjTJs.js";import{e as Z,d as ee,b as te,a as re}from"./dialog-BplUXBMG.js";import{I as se}from"./input-Dolcjx-g.js";import{K as le,L as oe,M as ie,N as K,O as ne,P as ae,Q as ce}from"./index-UrA_YNnD.js";import{u as fe}from"./use-virtual-mcp-CChazQvN.js";const de=12,z=new Set,q=new Set;function ue(){for(const s of q)s()}function me(s){return z.has(s)?!0:z.size>=de?!1:(z.add(s),!0)}function Q(s){z.delete(s)&&ue()}function ve(s){return q.add(s),()=>{q.delete(s)}}function pe(s,e){const t=w.useRef(!1),[a,c]=w.useState(!1),i=w.useRef(null),d=w.useRef(null),n=w.useRef(null),l=w.useRef(s);l.current=s;const[f]=w.useState(()=>{const o=()=>{n.current?.(),n.current=null},u=()=>t.current?!0:me(e)?(t.current=!0,c(!0),o(),!0):!1;return v=>{if(d.current=v,i.current&&(i.current.disconnect(),i.current=null),o(),!v){t.current&&(Q(e),t.current=!1,c(!1));return}queueMicrotask(()=>{if(d.current!==v)return;const x=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!u()&&!n.current&&(n.current=ve(()=>{d.current===v&&u()}));return}o(),t.current&&(Q(e),t.current=!1,c(!1))},{root:l.current.current,rootMargin:"160px 0px"});x.observe(v),i.current=x})}});return{ref:f,iframeActive:a}}function xe(s){const e=D.c(8),{previewUrl:t,title:a,scrollRootRef:c,slotId:i}=s,{ref:d,iframeActive:n}=pe(c,i),[l,f]=w.useState(!1);let o;e[0]!==n||e[1]!==l||e[2]!==t||e[3]!==a?(o=n?r.jsxs(r.Fragment,{children:[!l&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:r.jsx(_,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),r.jsx("iframe",{src:t,title:`Preview ${a}`,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:()=>f(!0)})]}):r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(_,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=n,e[1]=l,e[2]=t,e[3]=a,e[4]=o):o=e[4];let u;return e[5]!==d||e[6]!==o?(u=r.jsx("div",{ref:d,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:o}),e[5]=d,e[6]=o,e[7]=u):u=e[7],u}function he(s){const e=D.c(26),{entry:t,previewUrl:a,scrollRootRef:c,onSelect:i}=s,d=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let n;e[0]!==d?(n=J("group flex flex-col overflow-hidden rounded-lg border bg-card text-left transition-colors","hover:border-primary/40 hover:bg-accent/30",d),e[0]=d,e[1]=n):n=e[1];let l;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==a||e[5]!==c?(l=r.jsx(xe,{previewUrl:a,title:t.title,scrollRootRef:c,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=a,e[5]=c,e[6]=l):l=e[6];let f;e[7]!==t.isSavedBlock?(f=t.isSavedBlock?{color:ne}:void 0,e[7]=t.isSavedBlock,e[8]=f):f=e[8];let o;e[9]!==f?(o=r.jsx(_,{className:"h-4 w-4 shrink-0",style:f}),e[9]=f,e[10]=o):o=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]!==o||e[19]!==x?(m=r.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[o,x]}),e[18]=o,e[19]=x,e[20]=m):m=e[20];let h;return e[21]!==i||e[22]!==n||e[23]!==l||e[24]!==m?(h=r.jsxs("button",{type:"button",onClick:i,className:n,children:[l,m]}),e[21]=i,e[22]=n,e[23]=l,e[24]=m,e[25]=h):h=e[25],h}function Re(s){const e=D.c(51),{open:t,onOpenChange:a,meta:c,decofile:i,previewBaseUrl:d,onSelect:n}=s,l=X(),[f,o]=w.useState(""),[u,v]=w.useState(t),x=w.useRef(null);t!==u&&(v(t),t&&o(""));let m,h,S,b,j,N,y,R,g,P,C;if(e[0]!==i||e[1]!==c||e[2]!==a||e[3]!==n||e[4]!==t||e[5]!==d||e[6]!==f||e[7]!==l){const F=t&&c&&i?le(c,i):[],W=c?oe(c):"",V=i?ie(i):void 0,G=new Map;if(t&&W)for(const p of F)G.set(p.resolveType,K(d,W,p.previewBlock,V));const E=f.trim().toLowerCase(),H=E?F.filter(p=>p.title.toLowerCase().includes(E)||p.resolveType.toLowerCase().includes(E)||p.description?.toLowerCase().includes(E)):F;h=Z,P=t,C=a,m=ee,y="top-3 right-3",R="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let M;e[19]!==l?(M=l("sectionsEditor.addSectionModal.title"),e[19]=l,e[20]=M):M=e[20];let U;e[21]!==M?(U=r.jsx(te,{children:M}),e[21]=M,e[22]=U):U=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k=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]=k):k=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=p=>o(p.target.value),e[24]=$):$=e[24];let A;e[25]!==l?(A=l("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=l,e[26]=A):A=e[26];let B;e[27]!==f||e[28]!==A?(B=r.jsxs("div",{className:"relative pt-2",children:[k,r.jsx(se,{value:f,onChange:$,placeholder:A,className:"h-9 pl-8"})]}),e[27]=f,e[28]=A,e[29]=B):B=e[29],e[30]!==U||e[31]!==B?(g=r.jsxs(re,{className:"shrink-0 border-b px-4 py-3 text-left",children:[U,B]}),e[30]=U,e[31]=B,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(he,{entry:p,scrollRootRef:x,previewUrl:G.get(p.resolveType)??K(d,W,p.previewBlock,V),onSelect:()=>n(p)},p.resolveType))}),e[0]=i,e[1]=c,e[2]=a,e[3]=n,e[4]=t,e[5]=d,e[6]=f,e[7]=l,e[8]=m,e[9]=h,e[10]=S,e[11]=b,e[12]=j,e[13]=N,e[14]=y,e[15]=R,e[16]=g,e[17]=P,e[18]=C}else m=e[8],h=e[9],S=e[10],b=e[11],j=e[12],N=e[13],y=e[14],R=e[15],g=e[16],P=e[17],C=e[18];let T;e[33]!==S||e[34]!==b?(T=r.jsx("div",{className:S,children:b}),e[33]=S,e[34]=b,e[35]=T):T=e[35];let I;e[36]!==T||e[37]!==j||e[38]!==N?(I=r.jsx("div",{ref:j,className:N,children:T}),e[36]=T,e[37]=j,e[38]=N,e[39]=I):I=e[39];let L;e[40]!==m||e[41]!==I||e[42]!==y||e[43]!==R||e[44]!==g?(L=r.jsxs(m,{closeButtonClassName:y,className:R,children:[g,I]}),e[40]=m,e[41]=I,e[42]=y,e[43]=R,e[44]=g,e[45]=L):L=e[45];let O;return e[46]!==h||e[47]!==L||e[48]!==P||e[49]!==C?(O=r.jsx(h,{open:P,onOpenChange:C,children:L}),e[46]=h,e[47]=L,e[48]=P,e[49]=C,e[50]=O):O=e[50],O}function Pe(s){const e=D.c(3),t=fe(s.virtualMcpId);let a;if(e[0]!==s.sandboxUrl||e[1]!==t?.metadata){const{previewServerUrl:c,active:i}=ae(t?.metadata);a=ce({sandboxUrl:s.sandboxUrl,previewServerUrl:c,fastPreviewActive:i}),e[0]=s.sandboxUrl,e[1]=t?.metadata,e[2]=a}else a=e[2];return a}export{Re as A,Pe as u};
@@ -1 +1 @@
1
- import{c as r,v as u}from"./index-CCLrlcV5.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-hcWdwEuS.js";const p=new Set(["completed","failed","requires_action"]);function q(s){const e=r.c(5),[n]=u();let t;e[0]!==n?(t=o=>{n.enableSounds&&p.has(o.data.status)&&i(c.dataUri).catch(l)},e[0]=n,e[1]=t):t=e[1];let a;e[2]!==s||e[3]!==t?(a={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=a):a=e[4],f(a)}function l(s){console.warn("[status-sounds] playback failed:",s)}export{q as u};
1
+ import{c as r,v as u}from"./index-5gemagf1.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-BV0PbrVT.js";const p=new Set(["completed","failed","requires_action"]);function q(s){const e=r.c(5),[n]=u();let t;e[0]!==n?(t=o=>{n.enableSounds&&p.has(o.data.status)&&i(c.dataUri).catch(l)},e[0]=n,e[1]=t):t=e[1];let a;e[2]!==s||e[3]!==t?(a={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=a):a=e[4],f(a)}function l(s){console.warn("[status-sounds] playback failed:",s)}export{q as u};
@@ -1 +1 @@
1
- import{c as u,F as f,n as E,o as g,e as T,K as l,t as m}from"./index-CCLrlcV5.js";import{u as y}from"./studio-tools-VaW1QNJX.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],E(a)}function C(){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){m.error(e instanceof Error?e.message:"Failed to create tag")}function M(){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){m.error(e instanceof Error?e.message:"Failed to delete tag")}function A(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],E(c)}function G(){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){m.error(e instanceof Error?e.message:"Failed to update member tags")}export{C as a,M as b,A as c,G as d,K as u};
1
+ import{c as u,F as f,n as E,o as g,e as T,K as l,t as m}from"./index-5gemagf1.js";import{u as y}from"./studio-tools-CQ2rygf5.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],E(a)}function C(){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){m.error(e instanceof Error?e.message:"Failed to create tag")}function M(){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){m.error(e instanceof Error?e.message:"Failed to delete tag")}function A(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],E(c)}function G(){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){m.error(e instanceof Error?e.message:"Failed to update member tags")}export{C as a,M as b,A as c,G as d,K as u};
@@ -1 +1 @@
1
- import{c as p,r as f}from"./index-CCLrlcV5.js";import{u as w}from"./use-mobile-WonL71_u.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-5gemagf1.js";import{u as w}from"./use-mobile-BfoXl3UK.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 d,F as a,e2 as P,bf as L,K as S,be as p,n as V}from"./index-CCLrlcV5.js";import{S as g,u as C}from"./use-mcp-client-C-LXOIxN.js";function U(s){const t=d.c(5);let e;t[0]!==s?(e=s===void 0?{}:s,t[0]=s,t[1]=e):e=t[1];const n=e,{org:i}=a();let o;t[2]!==i.id||t[3]!==i.slug?(o={connectionId:g,orgId:i.id,orgSlug:i.slug},t[2]=i.id,t[3]=i.slug,t[4]=o):o=t[4];const l=C(o);return P(i.id,"VIRTUAL_MCP",l,n)}function b(s){const t=d.c(3),{org:e}=a();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 i=C(n);return p(e.id,"VIRTUAL_MCP",s??void 0,i)}function y(s){const t=d.c(15),{org:e}=a();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 i=C(n);let o,l,c;t[3]!==s||t[4]!==e.id?(o=[...s].sort(),c=V,l=S.virtualMcpLastUsed(e.id,o),t[3]=s,t[4]=e.id,t[5]=o,t[6]=l,t[7]=c):(o=t[5],l=t[6],c=t[7]);const f=o.length>0;let u;t[8]!==i||t[9]!==o?(u=async()=>{const M=(await i.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:o}})).structuredContent??{items:[]},I=new Map;for(const m of M.items)I.set(m.id,m);return I},t[8]=i,t[9]=o,t[10]=u):u=t[10];let r;return t[11]!==l||t[12]!==f||t[13]!==u?(r={queryKey:l,enabled:f,staleTime:3e4,queryFn:u},t[11]=l,t[12]=f,t[13]=u,t[14]=r):r=t[14],c(r)}function R(){const s=d.c(3),{org:t}=a();let e;s[0]!==t.id||s[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},s[0]=t.id,s[1]=t.slug,s[2]=e):e=s[2];const n=C(e);return L(t.id,"VIRTUAL_MCP",n)}export{U as a,R as b,y as c,b as u};
1
+ import{c as d,F as a,e2 as P,bf as L,K as S,be as p,n as V}from"./index-5gemagf1.js";import{S as g,u as C}from"./use-mcp-client-DTIaJzH5.js";function U(s){const t=d.c(5);let e;t[0]!==s?(e=s===void 0?{}:s,t[0]=s,t[1]=e):e=t[1];const n=e,{org:i}=a();let o;t[2]!==i.id||t[3]!==i.slug?(o={connectionId:g,orgId:i.id,orgSlug:i.slug},t[2]=i.id,t[3]=i.slug,t[4]=o):o=t[4];const l=C(o);return P(i.id,"VIRTUAL_MCP",l,n)}function b(s){const t=d.c(3),{org:e}=a();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 i=C(n);return p(e.id,"VIRTUAL_MCP",s??void 0,i)}function y(s){const t=d.c(15),{org:e}=a();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 i=C(n);let o,l,c;t[3]!==s||t[4]!==e.id?(o=[...s].sort(),c=V,l=S.virtualMcpLastUsed(e.id,o),t[3]=s,t[4]=e.id,t[5]=o,t[6]=l,t[7]=c):(o=t[5],l=t[6],c=t[7]);const f=o.length>0;let u;t[8]!==i||t[9]!==o?(u=async()=>{const M=(await i.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:o}})).structuredContent??{items:[]},I=new Map;for(const m of M.items)I.set(m.id,m);return I},t[8]=i,t[9]=o,t[10]=u):u=t[10];let r;return t[11]!==l||t[12]!==f||t[13]!==u?(r={queryKey:l,enabled:f,staleTime:3e4,queryFn:u},t[11]=l,t[12]=f,t[13]=u,t[14]=r):r=t[14],c(r)}function R(){const s=d.c(3),{org:t}=a();let e;s[0]!==t.id||s[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},s[0]=t.id,s[1]=t.slug,s[2]=e):e=s[2];const n=C(e);return L(t.id,"VIRTUAL_MCP",n)}export{U as a,R as b,y as c,b as u};
@@ -0,0 +1 @@
1
+ import{I as u}from"./use-infinite-scroll-CONOHnuy.js";import{e6 as i}from"./index-5gemagf1.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +1 @@
1
- import{b5 as s,r as c,b6 as a,b7 as i}from"./index-CCLrlcV5.js";function f(r){const n=s({warn:r?.router===void 0}),t=r?.router||n,u=c.useRef(void 0);return a(t.stores.__store,e=>{if(r?.select){if(r.structuralSharing??t.options.defaultStructuralSharing){const o=i(u.current,r.select(e));return u.current=o,o}return r.select(e)}return e})}export{f as u};
1
+ import{b5 as s,r as c,b6 as a,b7 as i}from"./index-5gemagf1.js";function f(r){const n=s({warn:r?.router===void 0}),t=r?.router||n,u=c.useRef(void 0);return a(t.stores.__store,e=>{if(r?.select){if(r.structuralSharing??t.options.defaultStructuralSharing){const o=i(u.current,r.select(e));return u.current=o,o}return r.select(e)}return e})}export{f as u};
@@ -0,0 +1 @@
1
+ import{I as s}from"./use-infinite-scroll-CONOHnuy.js";import{e6 as u,b3 as n}from"./index-5gemagf1.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};
@@ -1 +1 @@
1
- import{c as V,b as q,r as z,a as O,n as Y,e as $,j as t,K as J,t as Q,B as W}from"./index-CCLrlcV5.js";import{P as I}from"./index-Dpu2EeKk.js";import{C as G}from"./collection-table-wrapper-CJ1bvTF4.js";import{E as L}from"./empty-state-BT_HKEND.js";import{S as H}from"./search-input-ClLM0YYE.js";import{A as X}from"./avatar-D4NA2Bhx.js";import{B as D}from"./badge-BjVK4C89.js";import{u as Z}from"./use-debounced-value-BTkSCUP8.js";import{a as K}from"./admin-fetch-CCSvjTk1.js";import{f as ee}from"./format-time-BnbuEtat.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./sidebar-7RoWud82.js";import"./LayoutLeft-DTYf3Zp9.js";import"./use-mobile-WonL71_u.js";import"./X-D4P_xotm.js";import"./tooltip-D4n-WF2q.js";import"./table-CGQtLSZX.js";import"./ArrowUp-BCKIIXqC.js";import"./SearchMd-DheaqQdu.js";import"./User01-v0JW3r6M.js";import"./differenceInSeconds-NQ4PDo0z.js";function be(){const e=V.c(58),s=q(),[a,M]=z.useState("");let N;e[0]!==a?(N=a.trim(),e[0]=a,e[1]=N):N=e[1];const r=Z(N,300),{data:R}=O.useSession(),P=R?.user?.id;let n;e[2]!==r?(n=J.deploymentAdminUsers(r),e[2]=r,e[3]=n):n=e[3];let l;e[4]!==r?(l=()=>{const i=new URLSearchParams({limit:"100"});return r&&i.set("searchValue",r),K(`/api/_admin/users?${i}`)},e[4]=r,e[5]=l):l=e[5];let y;e[6]!==n||e[7]!==l?(y={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=y):y=e[8];const{data:k,isLoading:_,isError:A}=Y(y);let C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=ie,e[9]=C):C=e[9];let w;e[10]!==s?(w={mutationFn:re,onSuccess:C,onError:i=>{Q.error(i instanceof Error?i.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=w):w=e[11];const E=$(w);let b;e[12]!==k?.users?(b=k?.users??[],e[12]=k?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=i=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:i.image??void 0,fallback:se(i.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:i.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:i.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=i=>i.emailVerified?t.jsx(D,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(D,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:te,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==P||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===P||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=P,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==a||e[44]!==j?(g=t.jsx(H,{value:a,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=a,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==r||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:r?s("admin.users.noUsersMatchSearch",{search:r}):s("admin.users.noUsersYet")}),e[46]=r,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.Body,{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 re(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{be as default};
1
+ import{c as V,b as q,r as z,a as O,n as Y,e as $,j as t,K as J,t as Q,B as W}from"./index-5gemagf1.js";import{P as I}from"./index-ITbViqR5.js";import{C as G}from"./collection-table-wrapper-B-jYZKrj.js";import{E as L}from"./empty-state-CXLNA2ti.js";import{S as H}from"./search-input-RItYBnRq.js";import{A as X}from"./avatar-D98__g63.js";import{B as D}from"./badge-Ce3GqcFl.js";import{u as Z}from"./use-debounced-value-CYa76Zmr.js";import{a as K}from"./admin-fetch-CCSvjTk1.js";import{f as ee}from"./format-time-BnbuEtat.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./sidebar-4tITL9-j.js";import"./LayoutLeft-BdUVMA1s.js";import"./use-mobile-BfoXl3UK.js";import"./X-ibOvxK6r.js";import"./tooltip-CyXjvnKb.js";import"./table-BGuPhElJ.js";import"./ArrowUp-CQvXx2Eb.js";import"./SearchMd-D_hwjTJs.js";import"./User01-BIqoyKIS.js";import"./differenceInSeconds-NQ4PDo0z.js";function be(){const e=V.c(58),s=q(),[a,M]=z.useState("");let N;e[0]!==a?(N=a.trim(),e[0]=a,e[1]=N):N=e[1];const r=Z(N,300),{data:R}=O.useSession(),P=R?.user?.id;let n;e[2]!==r?(n=J.deploymentAdminUsers(r),e[2]=r,e[3]=n):n=e[3];let l;e[4]!==r?(l=()=>{const i=new URLSearchParams({limit:"100"});return r&&i.set("searchValue",r),K(`/api/_admin/users?${i}`)},e[4]=r,e[5]=l):l=e[5];let y;e[6]!==n||e[7]!==l?(y={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=y):y=e[8];const{data:k,isLoading:_,isError:A}=Y(y);let C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=ie,e[9]=C):C=e[9];let w;e[10]!==s?(w={mutationFn:re,onSuccess:C,onError:i=>{Q.error(i instanceof Error?i.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=w):w=e[11];const E=$(w);let b;e[12]!==k?.users?(b=k?.users??[],e[12]=k?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=i=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:i.image??void 0,fallback:se(i.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:i.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:i.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=i=>i.emailVerified?t.jsx(D,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(D,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:te,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==P||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===P||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=P,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==a||e[44]!==j?(g=t.jsx(H,{value:a,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=a,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==r||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:r?s("admin.users.noUsersMatchSearch",{search:r}):s("admin.users.noUsersYet")}),e[46]=r,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.Body,{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 re(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{be as default};
@@ -1 +1 @@
1
- import{c as K,b as tt,r as et,j as s,m as ot,B as nt}from"./index-CCLrlcV5.js";import{u as vt,a7 as dt,f as yt}from"./agent-icon-B5lPNSsP.js";import{i as Tt}from"./ChevronRight-D--quDsb.js";import{L as jt}from"./label-D1FqNbWH.js";import{B as pt}from"./automation-runs-j2r--LSH.js";import{S as Nt}from"./switch-5yajnsJ1.js";import{T as wt,c as kt,a as Mt}from"./tooltip-D4n-WF2q.js";import{V as _t}from"./view-mode-toggle-BaqCYZ7S.js";import"./AlertCircle-B5sDezf-.js";import"./Tool01-Cn0-xBBt.js";import"./ArrowUp-BCKIIXqC.js";import"./ArrowLeft-hINWrmDM.js";import"./Tool02-BlzqzZAJ.js";import"./XCircle-BhdQMcW8.js";import"./ArrowUpRight-D9wNgkJO.js";import"./TrendUp01-B8cusAvZ.js";import"./ZapSquare-BEEyAqSI.js";import"./Users03-c4O2AlzH.js";import"./CheckCircle-hJqs3poK.js";import"./Check-DvgcRTBi.js";import"./ChevronDown-Dg-G9Bza.js";import"./ChevronUp-DVfjlsaH.js";import"./DotsVertical-Dna5iyxv.js";import"./Stars02-Cw0-QoyL.js";import"./Copy01-A-iF56j2.js";import"./CpuChip01-C4a1EmKL.js";import"./CreditCard01-DD3YsjP8.js";import"./Globe01-DDNwpjh5.js";import"./Settings02-nh2DxBto.js";import"./Eye-Sv9L0hDt.js";import"./FilterLines-BP3DhNOH.js";import"./Share07-CnHohhT8.js";import"./Star01-Dtu6SkUk.js";import"./Globe04-akm1kAFe.js";import"./SwitchHorizontal01-Buu6mw-W.js";import"./HardDrive-CK5PbODV.js";import"./Key01-LdZJmUXU.js";import"./LayoutLeft-DTYf3Zp9.js";import"./LinkExternal01-BaEq__IR.js";import"./LogOut01-1f2QOh82.js";import"./Monitor01-DPJi2KGo.js";import"./Sun-CPY69DKL.js";import"./Palette-DpXIzWgD.js";import"./Play-CFJ7WwbI.js";import"./Plus-DzzDYhDH.js";import"./SearchLg-Ddza_Jes.js";import"./SearchMd-DheaqQdu.js";import"./Shield01-CDtPaxfg.js";import"./Stars01-C_U8OZIq.js";import"./Trash01-C3hHB6NE.js";import"./Upload01-DOECu3Z7.js";import"./User01-v0JW3r6M.js";import"./Users01-Bo461Fnp.js";import"./XClose-NC_Nso5p.js";import"./X-D4P_xotm.js";import"./Zap-UDNJrio-.js";import"./select-CDSdt8fw.js";import"./useInfiniteQuery-BXmYrs00.js";import"./use-infinite-scroll-BqNrHJAq.js";import"./use-connection-CTtDScYT.js";import"./use-mcp-client-C-LXOIxN.js";import"./auth-Bz9lRoBo.js";import"./use-virtual-mcp-DsDRQJX3.js";import"./card-DYQ6zVHs.js";import"./sidebar-7RoWud82.js";import"./use-mobile-WonL71_u.js";import"./table-CGQtLSZX.js";import"./empty-state-BT_HKEND.js";import"./use-members-Brt19w11.js";import"./use-org-auth-client-t9JfZIjw.js";import"./use-clock-tick-BJJCAsNs.js";import"./use-automations-C-VZMP6n.js";import"./studio-tools-VaW1QNJX.js";import"./useSuspenseInfiniteQuery-MTcqeDuU.js";import"./avatar-D4NA2Bhx.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Bhq89_Kc.js";import"./dialog-6eLF19WZ.js";import"./tab-id-B-ZhKmzp.js";import"./hooks-15WKVCFA.js";import"./decopilot-sse-pool-CBWbLfMa.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-6z6Usp8t.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-DSPW7HA5.js";import"./use-decopilot-events-hcWdwEuS.js";import"./use-organization-settings-BaavpVJk.js";import"./monaco-editor-DKEoDpqg.js";import"./spinner-Ch6YiaO3.js";import"./types-Dil0eUsT.js";import"./shell-layout-BLTnNvbt.js";import"./required-auth-layout-BIQhfPe7.js";import"./use-org-sso-UKEGNTmI.js";import"./integration-icon-B83LqhIA.js";import"./use-navigate-to-agent-DF7sO83S.js";import"./reusable-new-chat-CouMjkYR.js";import"./chart-Cu0CqzUJ.js";import"./index-DuQpNddO.js";import"./form-BMN1fUOX.js";import"./input-D-IOsTjg.js";import"./file-type-icon-rCrXf4Wk.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Dt=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:n}=e,r=typeof t=="string",i=typeof n=="string";if(!r&&!i)return null;const o=r?new Date(t):Ct,a=i?new Date(n):Dt;return Number.isNaN(o.getTime())||Number.isNaN(a.getTime())||r&&i&&a.getTime()<=o.getTime()?null:{start:o,end:a,openStart:!r,openEnd:!i}}function ft(e,t){if(!e||typeof e!="object")return;const n=e.__resolveType;if(typeof n=="string"){if(Et.has(n)){const r=Rt(e);r&&t.push(r);return}if(St.has(n)){const r=e.matchers;if(Array.isArray(r))for(const i of r)ft(i,t)}}}function Ot(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const n=e.variants;return Array.isArray(n)}function It(e){if(typeof e=="string"){const m=e.trim();if(m.length===0)return null;try{const c=new URL(m).pathname.split("/").filter(Boolean),d=c[c.length-1];if(d)return decodeURIComponent(d)}catch{}return m.length>80?`${m.slice(0,77)}…`:m}if(!e||typeof e!="object")return null;const t=e,n=t.config,i=t.desktop?.media,o=[t.title,t.name,t.label,t.alt,n?.title,n?.name,n?.typeAlert?.message,i?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const m of o)if(typeof m=="string"&&m.trim().length>0)return m.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];typeof r=="number"?t.length>0?t[t.length-1]+=`[${r}]`:t.push(`[${r}]`):t.push(r)}return t.join(" · ")}function X(e,t,n,r,i){if(Ot(e)){const o=e.variants,a=e.__resolveType,m=$t.test(a)?"":Pt(r);o.forEach((l,c)=>{if(!l||typeof l!="object")return;const d=l,f=[];if(ft(d.rule,f),f.length===0)return;const x=It(d.value)??(m||n);for(const h of f)i.push({blockKey:t,blockLabel:n,innerPath:m,variantIndex:c,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:x,flagResolveType:a})});for(let l=0;l<o.length;l++){const c=o[l];c&&typeof c=="object"&&X(c.value,t,n,[...r,"variants",l,"value"],i)}return}if(Array.isArray(e)){for(let o=0;o<e.length;o++)X(e[o],t,n,[...r,o],i);return}if(e&&typeof e=="object")for(const[o,a]of Object.entries(e))o!=="__resolveType"&&X(a,t,n,[...r,o],i)}function Ft(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e))X(r,n,Lt(n),[],t);return t.sort((n,r)=>n.start.getTime()-r.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),n=new Map;return t.forEach((r,i)=>{const o=i*137.508%360;n.set(r,{bg:`oklch(0.62 0.14 ${o})`,text:"white",border:`oklch(0.50 0.14 ${o})`})}),n}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function ut(e,t){return e.get(t)??Ht}const Bt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ht=["January","February","March","April","May","June","July","August","September","October","November","December"],gt=1440*60*1e3;function B(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function xt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function G(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function Z(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function st(e,t){return Math.round((B(e).getTime()-B(t).getTime())/gt)}function Wt(e){const t=(e.getTime()-B(e).getTime())/gt;return Math.min(Math.max(t,0),1)}function it(e,t){return st(e,t)+Wt(e)}function zt(e){const t=Z(e,-e.getDay()),n=[];for(let r=0;r<6;r++){const i=[];for(let o=0;o<7;o++)i.push(Z(t,r*7+o));n.push(i)}for(;n.length>0&&n[n.length-1].every(r=>r.getMonth()!==e.getMonth());)n.pop();return n}function Ut(e,t){const n=B(e[0]),r=Z(n,7),i=n.getTime(),o=r.getTime(),a=[];for(const c of t){const d=B(c.start),f=B(c.end);if(f.getTime()<n.getTime()||d.getTime()>=r.getTime())continue;const u=d.getTime()<n.getTime()?n:d,x=f.getTime()>=r.getTime()?Z(r,-1):f,h=st(u,n),g=st(x,u)+1;if(g<=0)continue;const b=Math.max(c.start.getTime(),i),j=Math.min(c.end.getTime(),o),v=it(new Date(b),n),p=Math.max(it(new Date(j),n)-v,0);p<=0||a.push({variant:c,startCol:h,span:g,leftUnits:v,widthUnits:p})}a.sort((c,d)=>c.startCol-d.startCol||d.span-c.span||c.variant.blockKey.localeCompare(d.variant.blockKey));const m=[],l=[];for(const c of a){let d=m.findIndex(f=>f<=c.startCol);d===-1&&(d=m.length,m.push(0)),m[d]=c.startCol+c.span,l.push({...c,lane:d})}return l}const at=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Yt(e,t){const n=e.openStart?t("sandbox.variantCalendar.always"):at.format(e.start),r=e.openEnd?t("sandbox.variantCalendar.ongoing"):at.format(e.end);return`${n} → ${r}`}function Gt(e){const t=K.c(18),{variant:n}=e,r=tt();let i;t[0]!==n.blockLabel?(i=s.jsx("div",{className:"font-semibold",children:n.blockLabel}),t[0]=n.blockLabel,t[1]=i):i=t[1];let o;t[2]!==n.innerPath?(o=n.innerPath&&s.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),t[2]=n.innerPath,t[3]=o):o=t[3];let a;t[4]!==n.blockLabel||t[5]!==n.innerPath||t[6]!==n.label?(a=n.label!==n.blockLabel&&n.label!==n.innerPath&&s.jsx("div",{className:"text-muted-foreground",children:n.label}),t[4]=n.blockLabel,t[5]=n.innerPath,t[6]=n.label,t[7]=a):a=t[7];let m;t[8]!==r||t[9]!==n?(m=Yt(n,r),t[8]=r,t[9]=n,t[10]=m):m=t[10];let l;t[11]!==m?(l=s.jsx("div",{className:"mt-1",children:m}),t[11]=m,t[12]=l):l=t[12];let c;return t[13]!==i||t[14]!==o||t[15]!==a||t[16]!==l?(c=s.jsx(Mt,{children:s.jsxs("div",{className:"text-xs",children:[i,o,a,l]})}),t[13]=i,t[14]=o,t[15]=a,t[16]=l,t[17]=c):c=t[17],c}const lt=16;function Kt(e,t){const n=e?"transparent":"#000 0",r=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${n}, #000 ${lt}px, #000 calc(100% - ${lt}px), ${r})`}function bt(e){const t=K.c(26),{variant:n,color:r,style:i,children:o,fadeStart:a,fadeEnd:m}=e,l=a===void 0?!1:a,c=m===void 0?!1:m;let d;t[0]!==c||t[1]!==l?(d=Kt(l,c),t[0]=c,t[1]=l,t[2]=d):d=t[2];const f=d;let u;t[3]!==l?(u=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=u):u=t[4];let x;t[5]!==c?(x=c&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=c,t[6]=x):x=t[6];let h;t[7]!==f?(h=f&&{maskImage:f,WebkitMaskImage:f},t[7]=f,t[8]=h):h=t[8];let g;t[9]!==r.bg||t[10]!==r.text||t[11]!==i||t[12]!==u||t[13]!==x||t[14]!==h?(g={background:r.bg,color:r.text,borderRadius:4,...u,...x,...h,...i},t[9]=r.bg,t[10]=r.text,t[11]=i,t[12]=u,t[13]=x,t[14]=h,t[15]=g):g=t[15];let b;t[16]!==o?(b=s.jsx("span",{className:"truncate",children:o}),t[16]=o,t[17]=b):b=t[17];let j;t[18]!==g||t[19]!==b?(j=s.jsx(wt,{asChild:!0,children:s.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:g,children:b})}),t[18]=g,t[19]=b,t[20]=j):j=t[20];let v;t[21]!==n?(v=s.jsx(Gt,{variant:n}),t[21]=n,t[22]=v):v=t[22];let p;return t[23]!==v||t[24]!==j?(p=s.jsxs(kt,{children:[j,v]}),t[23]=v,t[24]=j,t[25]=p):p=t[25],p}function or(e){const t=K.c(72),{decofile:n}=e,r=tt(),[i,o]=et.useState("calendar"),[a,m]=et.useState(Xt),[l,c]=et.useState(!1);let d,f,u;if(t[0]!==n||t[1]!==l){const P=Ft(n);d=P.filter(Qt).length,u=l?P:P.filter(qt),f=Vt(u.map(Jt)),t[0]=n,t[1]=l,t[2]=d,t[3]=f,t[4]=u}else d=t[2],f=t[3],u=t[4];const x=f;let h;t[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>m(xt(new Date)),t[5]=h):h=t[5];const g=h;let b;t[6]!==i?(b=()=>m(P=>i==="calendar"?G(P,-1):G(P,-3)),t[6]=i,t[7]=b):b=t[7];const j=b;let v;t[8]!==i?(v=()=>m(P=>i==="calendar"?G(P,1):G(P,3)),t[8]=i,t[9]=v):v=t[9];const p=v;let y;t[10]!==r?(y=r("sandbox.variantCalendar.today"),t[10]=r,t[11]=y):y=t[11];let T;t[12]!==y?(T=s.jsx(nt,{variant:"outline",size:"sm",onClick:g,children:y}),t[12]=y,t[13]=T):T=t[13];let w;t[14]!==r?(w=r("sandbox.variantCalendar.previous"),t[14]=r,t[15]=w):w=t[15];let D;t[16]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(vt,{size:16}),t[16]=D):D=t[16];let k;t[17]!==j||t[18]!==w?(k=s.jsx(nt,{variant:"ghost",size:"icon",className:"size-8",onClick:j,"aria-label":w,children:D}),t[17]=j,t[18]=w,t[19]=k):k=t[19];let M;t[20]!==r?(M=r("sandbox.variantCalendar.next"),t[20]=r,t[21]=M):M=t[21];let S;t[22]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Tt,{size:16}),t[22]=S):S=t[22];let A;t[23]!==p||t[24]!==M?(A=s.jsx(nt,{variant:"ghost",size:"icon",className:"size-8",onClick:p,"aria-label":M,children:S}),t[23]=p,t[24]=M,t[25]=A):A=t[25];const $=ht[a.getMonth()];let C;t[26]!==a?(C=a.getFullYear(),t[26]=a,t[27]=C):C=t[27];let _;t[28]!==$||t[29]!==C?(_=s.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[$," ",C]}),t[28]=$,t[29]=C,t[30]=_):_=t[30];let N;t[31]!==A||t[32]!==_||t[33]!==T||t[34]!==k?(N=s.jsxs("div",{className:"flex items-center gap-2",children:[T,k,A,_]}),t[31]=A,t[32]=_,t[33]=T,t[34]=k,t[35]=N):N=t[35];let L;t[36]!==d||t[37]!==l||t[38]!==r?(L=d>0&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Nt,{id:"show-ongoing",checked:l,onCheckedChange:c}),s.jsx(jt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:r("sandbox.variantCalendar.showOngoing",{count:d})})]}),t[36]=d,t[37]=l,t[38]=r,t[39]=L):L=t[39];let H;t[40]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(dt,{}),t[40]=H):H=t[40];let F;t[41]!==r?(F=r("sandbox.variantCalendar.calendarMode"),t[41]=r,t[42]=F):F=t[42];let E;t[43]!==F?(E={value:"calendar",icon:H,label:F},t[43]=F,t[44]=E):E=t[44];let W;t[45]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(yt,{}),t[45]=W):W=t[45];let R;t[46]!==r?(R=r("sandbox.variantCalendar.timelineMode"),t[46]=r,t[47]=R):R=t[47];let O;t[48]!==R?(O={value:"timeline",icon:W,label:R},t[48]=R,t[49]=O):O=t[49];let I;t[50]!==E||t[51]!==O?(I=[E,O],t[50]=E,t[51]=O,t[52]=I):I=t[52];let V;t[53]!==I||t[54]!==i?(V=s.jsx(_t,{value:i,onValueChange:o,options:I}),t[53]=I,t[54]=i,t[55]=V):V=t[55];let z;t[56]!==L||t[57]!==V?(z=s.jsxs("div",{className:"flex items-center gap-4",children:[L,V]}),t[56]=L,t[57]=V,t[58]=z):z=t[58];let U;t[59]!==N||t[60]!==z?(U=s.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[N,z]}),t[59]=N,t[60]=z,t[61]=U):U=t[61];let Y;t[62]!==x||t[63]!==a||t[64]!==d||t[65]!==l||t[66]!==u||t[67]!==i?(Y=u.length===0?s.jsx(Zt,{hiddenOngoing:l?0:d}):i==="calendar"?s.jsx(ee,{monthStart:a,variants:u,colorMap:x}):s.jsx(oe,{monthStart:a,variants:u,colorMap:x}),t[62]=x,t[63]=a,t[64]=d,t[65]=l,t[66]=u,t[67]=i,t[68]=Y):Y=t[68];let q;return t[69]!==U||t[70]!==Y?(q=s.jsxs("div",{className:"flex h-full w-full flex-col",children:[U,Y]}),t[69]=U,t[70]=Y,t[71]=q):q=t[71],q}function Jt(e){return e.blockKey}function qt(e){return!e.openEnd}function Qt(e){return e.openEnd}function Xt(){return xt(new Date)}function Zt(e){const t=K.c(4),{hiddenOngoing:n}=e,r=n===void 0?0:n,i=tt();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(dt,{size:24,className:"text-muted-foreground/60"}),t[0]=o):o=t[0];let a;return t[1]!==r||t[2]!==i?(a=s.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[o,r>0?s.jsxs(s.Fragment,{children:[s.jsx("div",{children:i("sandbox.variantCalendar.noDatedVariants")}),s.jsx("div",{className:"text-xs text-muted-foreground/80",children:i("sandbox.variantCalendar.hiddenOngoingVariants",{count:r})})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{children:i("sandbox.variantCalendar.noScheduledVariants")}),s.jsx("div",{className:"text-xs text-muted-foreground/80",children:i("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=r,t[2]=i,t[3]=a):a=t[3],a}const rt=20,ct=2,mt=28,te=6;function ee(e){const t=K.c(17),{monthStart:n,variants:r,colorMap:i}=e;let o,a,m,l,c;if(t[0]!==i||t[1]!==n||t[2]!==r){const u=zt(n),x=B(new Date);o=pt,c="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:Bt.map(re)}),t[8]=m):m=t[8],l=u.map((h,g)=>{const b=Ut(h,r),j=b.reduce(ne,0),v=mt+j*(rt+ct)+8;return s.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:v},children:[h.map((p,y)=>{const T=p.getMonth()===n.getMonth(),w=p.getTime()===x.getTime();return s.jsx("div",{className:ot("border-r last:border-r-0 px-2 pt-1.5 text-xs",T?"bg-background":"bg-muted/30 text-muted-foreground"),children:s.jsx("span",{className:ot("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",w&&"bg-primary text-primary-foreground font-semibold"),children:p.getDate()})},y)}),b.map((p,y)=>{const T=ut(i,p.variant.blockKey),w=mt+p.lane*(rt+ct),D=p.leftUnits/7*100,k=p.widthUnits/7*100,M=p.variant.openStart&&g===0,S=p.variant.openEnd&&g===u.length-1;return s.jsxs(bt,{variant:p.variant,color:T,fadeStart:M,fadeEnd:S,style:{top:w,left:`calc(${D}% + 2px)`,width:`calc(${k}% - 4px)`,minWidth:te,height:rt},children:[p.variant.blockLabel,p.variant.label!==p.variant.blockLabel&&s.jsxs("span",{className:"opacity-70",children:[" · ",p.variant.label]})]},`${g}-${y}`)})]},g)}),t[0]=i,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=m,t[6]=l,t[7]=c}else o=t[3],a=t[4],m=t[5],l=t[6],c=t[7];let d;t[9]!==a||t[10]!==m||t[11]!==l?(d=s.jsxs("div",{className:a,children:[m,l]}),t[9]=a,t[10]=m,t[11]=l,t[12]=d):d=t[12];let f;return t[13]!==o||t[14]!==c||t[15]!==d?(f=s.jsx(o,{className:c,children:d}),t[13]=o,t[14]=c,t[15]=d,t[16]=f):f=t[16],f}function ne(e,t){return Math.max(e,t.lane+1)}function re(e){return s.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const Q=4,se=32,J=240;function oe(e){const t=K.c(23),{monthStart:n,variants:r,colorMap:i}=e,o=n,a=G(n,Q),m=new Date,l=new Map;for(const _ of r){const N=l.get(_.blockKey)??[];N.push(_),l.set(_.blockKey,N)}const c=Array.from(l.entries()).sort(le),d=a.getTime()-o.getTime(),f=_=>(Math.max(o.getTime(),Math.min(a.getTime(),_.getTime()))-o.getTime())/d*100;let u;t[0]!==o?(u=(_,N)=>G(o,N),t[0]=o,t[1]=u):u=t[1];const x=Array.from({length:Q},u),h=m.getTime()>=o.getTime()&&m.getTime()<=a.getTime()?f(m):null,g=tt(),b=pt,j="flex-1 min-h-0",v="min-w-[900px] relative";let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p={width:J},t[2]=p):p=t[2];let y;t[3]!==g?(y=g("sandbox.variantCalendar.variantBlock"),t[3]=g,t[4]=y):y=t[4];let T;t[5]!==y?(T=s.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:p,children:y}),t[5]=y,t[6]=T):T=t[6];let w;t[7]===Symbol.for("react.memo_cache_sentinel")?(w={gridTemplateColumns:`repeat(${Q}, minmax(0, 1fr))`},t[7]=w):w=t[7];const D=x.map(ae);let k;t[8]!==D?(k=s.jsx("div",{className:"flex-1 grid",style:w,children:D}),t[8]=D,t[9]=k):k=t[9];let M;t[10]!==T||t[11]!==k?(M=s.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[T,k]}),t[10]=T,t[11]=k,t[12]=M):M=t[12];let S;t[13]!==g||t[14]!==h?(S=h!==null&&s.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${J}px + (100% - ${J}px) * ${h} / 100)`},children:s.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:g("sandbox.variantCalendar.todayLabel")})}),t[13]=g,t[14]=h,t[15]=S):S=t[15];const A=c.map(_=>{const[N,L]=_,H=ut(i,N),F=L[0]?.blockLabel??N;return s.jsxs("div",{children:[s.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:s.jsx("div",{className:"px-3 truncate",style:{width:J},children:F})}),L.map((E,W)=>s.jsxs("div",{className:"flex border-b items-center",style:{height:se},children:[s.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:J},children:[s.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:H.bg}}),s.jsx("span",{className:"truncate text-foreground/80",children:E.label})]}),s.jsxs("div",{className:"relative flex-1 h-full",children:[s.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${Q}, minmax(0, 1fr))`},children:x.map(ie)}),(()=>{const R=Math.max(E.start.getTime(),o.getTime()),O=Math.min(E.end.getTime(),a.getTime());if(O<=R)return null;const I=f(new Date(R)),V=f(new Date(O))-I;return s.jsx(bt,{variant:E,color:H,fadeStart:E.openStart,fadeEnd:E.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${I}%`,width:`calc(${V}% - 2px)`,height:22},children:E.label})})()]})]},W))]},N)});let $;t[16]!==M||t[17]!==S||t[18]!==A?($=s.jsxs("div",{className:v,children:[M,S,A]}),t[16]=M,t[17]=S,t[18]=A,t[19]=$):$=t[19];let C;return t[20]!==b||t[21]!==$?(C=s.jsx(b,{className:j,children:$}),t[20]=b,t[21]=$,t[22]=C):C=t[22],C}function ie(e,t){return s.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function ae(e,t){return s.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ht[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function le(e,t){return e[0].localeCompare(t[0])}export{or as VariantCalendar};
1
+ import{c as K,b as tt,r as et,j as s,m as ot,B as nt}from"./index-5gemagf1.js";import{u as vt,a7 as dt,f as yt}from"./agent-icon-DxmmOieH.js";import{i as Tt}from"./ChevronRight-BEp1VAsd.js";import{L as jt}from"./label-D3lnkDBW.js";import{B as pt}from"./automation-runs-CqphiI3m.js";import{S as Nt}from"./switch-DuNudDxw.js";import{T as wt,c as kt,a as Mt}from"./tooltip-CyXjvnKb.js";import{V as _t}from"./view-mode-toggle-CKkq4yjo.js";import"./AlertCircle-BngcPF6g.js";import"./Tool01-CN04dNAZ.js";import"./ArrowUp-CQvXx2Eb.js";import"./ArrowLeft-D0SMPcnr.js";import"./Tool02-mI78frGe.js";import"./XCircle-BnwtkUhP.js";import"./ArrowUpRight-DZpp5DED.js";import"./TrendUp01-D7jiFi03.js";import"./ZapSquare-BYkzde_j.js";import"./Users03-DUwPNwXU.js";import"./CheckCircle-Blh8DmbD.js";import"./Check-BVTsyPDh.js";import"./ChevronDown-C6mtwPLn.js";import"./ChevronUp-BIP55CrT.js";import"./DotsVertical-C6DREveP.js";import"./Stars02-BAO2I02Z.js";import"./Copy01-DgiqwcSK.js";import"./CpuChip01-CENIClYZ.js";import"./CreditCard01-BhrVduIh.js";import"./Globe01-7jkIPFoA.js";import"./Settings02-I4I2nClv.js";import"./Eye-PKXEw9_c.js";import"./FilterLines-CEQFAuO4.js";import"./Share07-BPGtMefI.js";import"./Star01-DCIbpwnb.js";import"./Globe04-DR8uwSal.js";import"./SwitchHorizontal01-zV8kVIQA.js";import"./HardDrive-JJwxAgPq.js";import"./Key01-BJ3dxv9s.js";import"./LayoutLeft-BdUVMA1s.js";import"./LinkExternal01-zuYuwJZ-.js";import"./LogOut01-BLeeRd_x.js";import"./Monitor01-BnK9fFda.js";import"./Sun-E3c2IB3O.js";import"./Palette-Cg1tIBcF.js";import"./Play-2YDlreGg.js";import"./Plus-CgUsDtXu.js";import"./SearchLg-CKHQyByC.js";import"./SearchMd-D_hwjTJs.js";import"./Shield01-CK9cE1oJ.js";import"./Stars01-C5PvctF2.js";import"./Trash01-BxlP0eyg.js";import"./Upload01-Bbnlu9tq.js";import"./User01-BIqoyKIS.js";import"./Users01-DY_fYiv0.js";import"./XClose-DI0JEn_A.js";import"./X-ibOvxK6r.js";import"./Zap-DS_8b3SH.js";import"./select-Ddz9NuOw.js";import"./useInfiniteQuery-B75UMXoa.js";import"./use-infinite-scroll-CONOHnuy.js";import"./use-connection-BEzC3g8f.js";import"./use-mcp-client-DTIaJzH5.js";import"./auth-Bog8FqNA.js";import"./use-virtual-mcp-CChazQvN.js";import"./card-FTRG4FI8.js";import"./sidebar-4tITL9-j.js";import"./use-mobile-BfoXl3UK.js";import"./table-BGuPhElJ.js";import"./empty-state-CXLNA2ti.js";import"./use-members-COIGrf9q.js";import"./use-org-auth-client-Dur3Yig8.js";import"./use-clock-tick-Bgw2dE7q.js";import"./use-automations-Cy-Q13k9.js";import"./studio-tools-CQ2rygf5.js";import"./useSuspenseInfiniteQuery-2Xb4xxXy.js";import"./avatar-D98__g63.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D53s1qEg.js";import"./dialog-BplUXBMG.js";import"./tab-id-yehNTD_Y.js";import"./hooks-Bg9fS6HW.js";import"./decopilot-sse-pool-DaDP3S1o.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-0AU1Ck7Q.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-Cgq4fq_s.js";import"./use-decopilot-events-BV0PbrVT.js";import"./use-organization-settings-CNMbxTls.js";import"./monaco-editor-UmS7A7ZQ.js";import"./spinner-DA1qqmBF.js";import"./types-CSDveaQ0.js";import"./shell-layout-CtR_VnY2.js";import"./required-auth-layout-BczHZORq.js";import"./use-org-sso-BcptYP89.js";import"./integration-icon-B-EnQSDk.js";import"./use-navigate-to-agent-CvPty0ka.js";import"./reusable-new-chat-CouMjkYR.js";import"./chart-jXstGrkI.js";import"./index-VNa6_71P.js";import"./form-bokF6u7G.js";import"./input-Dolcjx-g.js";import"./file-type-icon-C8_FY9PP.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Dt=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:n}=e,r=typeof t=="string",i=typeof n=="string";if(!r&&!i)return null;const o=r?new Date(t):Ct,a=i?new Date(n):Dt;return Number.isNaN(o.getTime())||Number.isNaN(a.getTime())||r&&i&&a.getTime()<=o.getTime()?null:{start:o,end:a,openStart:!r,openEnd:!i}}function ft(e,t){if(!e||typeof e!="object")return;const n=e.__resolveType;if(typeof n=="string"){if(Et.has(n)){const r=Rt(e);r&&t.push(r);return}if(St.has(n)){const r=e.matchers;if(Array.isArray(r))for(const i of r)ft(i,t)}}}function Ot(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const n=e.variants;return Array.isArray(n)}function It(e){if(typeof e=="string"){const m=e.trim();if(m.length===0)return null;try{const c=new URL(m).pathname.split("/").filter(Boolean),d=c[c.length-1];if(d)return decodeURIComponent(d)}catch{}return m.length>80?`${m.slice(0,77)}…`:m}if(!e||typeof e!="object")return null;const t=e,n=t.config,i=t.desktop?.media,o=[t.title,t.name,t.label,t.alt,n?.title,n?.name,n?.typeAlert?.message,i?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const m of o)if(typeof m=="string"&&m.trim().length>0)return m.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];typeof r=="number"?t.length>0?t[t.length-1]+=`[${r}]`:t.push(`[${r}]`):t.push(r)}return t.join(" · ")}function X(e,t,n,r,i){if(Ot(e)){const o=e.variants,a=e.__resolveType,m=$t.test(a)?"":Pt(r);o.forEach((l,c)=>{if(!l||typeof l!="object")return;const d=l,f=[];if(ft(d.rule,f),f.length===0)return;const x=It(d.value)??(m||n);for(const h of f)i.push({blockKey:t,blockLabel:n,innerPath:m,variantIndex:c,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:x,flagResolveType:a})});for(let l=0;l<o.length;l++){const c=o[l];c&&typeof c=="object"&&X(c.value,t,n,[...r,"variants",l,"value"],i)}return}if(Array.isArray(e)){for(let o=0;o<e.length;o++)X(e[o],t,n,[...r,o],i);return}if(e&&typeof e=="object")for(const[o,a]of Object.entries(e))o!=="__resolveType"&&X(a,t,n,[...r,o],i)}function Ft(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e))X(r,n,Lt(n),[],t);return t.sort((n,r)=>n.start.getTime()-r.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),n=new Map;return t.forEach((r,i)=>{const o=i*137.508%360;n.set(r,{bg:`oklch(0.62 0.14 ${o})`,text:"white",border:`oklch(0.50 0.14 ${o})`})}),n}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function ut(e,t){return e.get(t)??Ht}const Bt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ht=["January","February","March","April","May","June","July","August","September","October","November","December"],gt=1440*60*1e3;function B(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function xt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function G(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function Z(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function st(e,t){return Math.round((B(e).getTime()-B(t).getTime())/gt)}function Wt(e){const t=(e.getTime()-B(e).getTime())/gt;return Math.min(Math.max(t,0),1)}function it(e,t){return st(e,t)+Wt(e)}function zt(e){const t=Z(e,-e.getDay()),n=[];for(let r=0;r<6;r++){const i=[];for(let o=0;o<7;o++)i.push(Z(t,r*7+o));n.push(i)}for(;n.length>0&&n[n.length-1].every(r=>r.getMonth()!==e.getMonth());)n.pop();return n}function Ut(e,t){const n=B(e[0]),r=Z(n,7),i=n.getTime(),o=r.getTime(),a=[];for(const c of t){const d=B(c.start),f=B(c.end);if(f.getTime()<n.getTime()||d.getTime()>=r.getTime())continue;const u=d.getTime()<n.getTime()?n:d,x=f.getTime()>=r.getTime()?Z(r,-1):f,h=st(u,n),g=st(x,u)+1;if(g<=0)continue;const b=Math.max(c.start.getTime(),i),j=Math.min(c.end.getTime(),o),v=it(new Date(b),n),p=Math.max(it(new Date(j),n)-v,0);p<=0||a.push({variant:c,startCol:h,span:g,leftUnits:v,widthUnits:p})}a.sort((c,d)=>c.startCol-d.startCol||d.span-c.span||c.variant.blockKey.localeCompare(d.variant.blockKey));const m=[],l=[];for(const c of a){let d=m.findIndex(f=>f<=c.startCol);d===-1&&(d=m.length,m.push(0)),m[d]=c.startCol+c.span,l.push({...c,lane:d})}return l}const at=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Yt(e,t){const n=e.openStart?t("sandbox.variantCalendar.always"):at.format(e.start),r=e.openEnd?t("sandbox.variantCalendar.ongoing"):at.format(e.end);return`${n} → ${r}`}function Gt(e){const t=K.c(18),{variant:n}=e,r=tt();let i;t[0]!==n.blockLabel?(i=s.jsx("div",{className:"font-semibold",children:n.blockLabel}),t[0]=n.blockLabel,t[1]=i):i=t[1];let o;t[2]!==n.innerPath?(o=n.innerPath&&s.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),t[2]=n.innerPath,t[3]=o):o=t[3];let a;t[4]!==n.blockLabel||t[5]!==n.innerPath||t[6]!==n.label?(a=n.label!==n.blockLabel&&n.label!==n.innerPath&&s.jsx("div",{className:"text-muted-foreground",children:n.label}),t[4]=n.blockLabel,t[5]=n.innerPath,t[6]=n.label,t[7]=a):a=t[7];let m;t[8]!==r||t[9]!==n?(m=Yt(n,r),t[8]=r,t[9]=n,t[10]=m):m=t[10];let l;t[11]!==m?(l=s.jsx("div",{className:"mt-1",children:m}),t[11]=m,t[12]=l):l=t[12];let c;return t[13]!==i||t[14]!==o||t[15]!==a||t[16]!==l?(c=s.jsx(Mt,{children:s.jsxs("div",{className:"text-xs",children:[i,o,a,l]})}),t[13]=i,t[14]=o,t[15]=a,t[16]=l,t[17]=c):c=t[17],c}const lt=16;function Kt(e,t){const n=e?"transparent":"#000 0",r=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${n}, #000 ${lt}px, #000 calc(100% - ${lt}px), ${r})`}function bt(e){const t=K.c(26),{variant:n,color:r,style:i,children:o,fadeStart:a,fadeEnd:m}=e,l=a===void 0?!1:a,c=m===void 0?!1:m;let d;t[0]!==c||t[1]!==l?(d=Kt(l,c),t[0]=c,t[1]=l,t[2]=d):d=t[2];const f=d;let u;t[3]!==l?(u=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=u):u=t[4];let x;t[5]!==c?(x=c&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=c,t[6]=x):x=t[6];let h;t[7]!==f?(h=f&&{maskImage:f,WebkitMaskImage:f},t[7]=f,t[8]=h):h=t[8];let g;t[9]!==r.bg||t[10]!==r.text||t[11]!==i||t[12]!==u||t[13]!==x||t[14]!==h?(g={background:r.bg,color:r.text,borderRadius:4,...u,...x,...h,...i},t[9]=r.bg,t[10]=r.text,t[11]=i,t[12]=u,t[13]=x,t[14]=h,t[15]=g):g=t[15];let b;t[16]!==o?(b=s.jsx("span",{className:"truncate",children:o}),t[16]=o,t[17]=b):b=t[17];let j;t[18]!==g||t[19]!==b?(j=s.jsx(wt,{asChild:!0,children:s.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:g,children:b})}),t[18]=g,t[19]=b,t[20]=j):j=t[20];let v;t[21]!==n?(v=s.jsx(Gt,{variant:n}),t[21]=n,t[22]=v):v=t[22];let p;return t[23]!==v||t[24]!==j?(p=s.jsxs(kt,{children:[j,v]}),t[23]=v,t[24]=j,t[25]=p):p=t[25],p}function or(e){const t=K.c(72),{decofile:n}=e,r=tt(),[i,o]=et.useState("calendar"),[a,m]=et.useState(Xt),[l,c]=et.useState(!1);let d,f,u;if(t[0]!==n||t[1]!==l){const P=Ft(n);d=P.filter(Qt).length,u=l?P:P.filter(qt),f=Vt(u.map(Jt)),t[0]=n,t[1]=l,t[2]=d,t[3]=f,t[4]=u}else d=t[2],f=t[3],u=t[4];const x=f;let h;t[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>m(xt(new Date)),t[5]=h):h=t[5];const g=h;let b;t[6]!==i?(b=()=>m(P=>i==="calendar"?G(P,-1):G(P,-3)),t[6]=i,t[7]=b):b=t[7];const j=b;let v;t[8]!==i?(v=()=>m(P=>i==="calendar"?G(P,1):G(P,3)),t[8]=i,t[9]=v):v=t[9];const p=v;let y;t[10]!==r?(y=r("sandbox.variantCalendar.today"),t[10]=r,t[11]=y):y=t[11];let T;t[12]!==y?(T=s.jsx(nt,{variant:"outline",size:"sm",onClick:g,children:y}),t[12]=y,t[13]=T):T=t[13];let w;t[14]!==r?(w=r("sandbox.variantCalendar.previous"),t[14]=r,t[15]=w):w=t[15];let D;t[16]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(vt,{size:16}),t[16]=D):D=t[16];let k;t[17]!==j||t[18]!==w?(k=s.jsx(nt,{variant:"ghost",size:"icon",className:"size-8",onClick:j,"aria-label":w,children:D}),t[17]=j,t[18]=w,t[19]=k):k=t[19];let M;t[20]!==r?(M=r("sandbox.variantCalendar.next"),t[20]=r,t[21]=M):M=t[21];let S;t[22]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Tt,{size:16}),t[22]=S):S=t[22];let A;t[23]!==p||t[24]!==M?(A=s.jsx(nt,{variant:"ghost",size:"icon",className:"size-8",onClick:p,"aria-label":M,children:S}),t[23]=p,t[24]=M,t[25]=A):A=t[25];const $=ht[a.getMonth()];let C;t[26]!==a?(C=a.getFullYear(),t[26]=a,t[27]=C):C=t[27];let _;t[28]!==$||t[29]!==C?(_=s.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[$," ",C]}),t[28]=$,t[29]=C,t[30]=_):_=t[30];let N;t[31]!==A||t[32]!==_||t[33]!==T||t[34]!==k?(N=s.jsxs("div",{className:"flex items-center gap-2",children:[T,k,A,_]}),t[31]=A,t[32]=_,t[33]=T,t[34]=k,t[35]=N):N=t[35];let L;t[36]!==d||t[37]!==l||t[38]!==r?(L=d>0&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Nt,{id:"show-ongoing",checked:l,onCheckedChange:c}),s.jsx(jt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:r("sandbox.variantCalendar.showOngoing",{count:d})})]}),t[36]=d,t[37]=l,t[38]=r,t[39]=L):L=t[39];let H;t[40]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(dt,{}),t[40]=H):H=t[40];let F;t[41]!==r?(F=r("sandbox.variantCalendar.calendarMode"),t[41]=r,t[42]=F):F=t[42];let E;t[43]!==F?(E={value:"calendar",icon:H,label:F},t[43]=F,t[44]=E):E=t[44];let W;t[45]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(yt,{}),t[45]=W):W=t[45];let R;t[46]!==r?(R=r("sandbox.variantCalendar.timelineMode"),t[46]=r,t[47]=R):R=t[47];let O;t[48]!==R?(O={value:"timeline",icon:W,label:R},t[48]=R,t[49]=O):O=t[49];let I;t[50]!==E||t[51]!==O?(I=[E,O],t[50]=E,t[51]=O,t[52]=I):I=t[52];let V;t[53]!==I||t[54]!==i?(V=s.jsx(_t,{value:i,onValueChange:o,options:I}),t[53]=I,t[54]=i,t[55]=V):V=t[55];let z;t[56]!==L||t[57]!==V?(z=s.jsxs("div",{className:"flex items-center gap-4",children:[L,V]}),t[56]=L,t[57]=V,t[58]=z):z=t[58];let U;t[59]!==N||t[60]!==z?(U=s.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[N,z]}),t[59]=N,t[60]=z,t[61]=U):U=t[61];let Y;t[62]!==x||t[63]!==a||t[64]!==d||t[65]!==l||t[66]!==u||t[67]!==i?(Y=u.length===0?s.jsx(Zt,{hiddenOngoing:l?0:d}):i==="calendar"?s.jsx(ee,{monthStart:a,variants:u,colorMap:x}):s.jsx(oe,{monthStart:a,variants:u,colorMap:x}),t[62]=x,t[63]=a,t[64]=d,t[65]=l,t[66]=u,t[67]=i,t[68]=Y):Y=t[68];let q;return t[69]!==U||t[70]!==Y?(q=s.jsxs("div",{className:"flex h-full w-full flex-col",children:[U,Y]}),t[69]=U,t[70]=Y,t[71]=q):q=t[71],q}function Jt(e){return e.blockKey}function qt(e){return!e.openEnd}function Qt(e){return e.openEnd}function Xt(){return xt(new Date)}function Zt(e){const t=K.c(4),{hiddenOngoing:n}=e,r=n===void 0?0:n,i=tt();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(dt,{size:24,className:"text-muted-foreground/60"}),t[0]=o):o=t[0];let a;return t[1]!==r||t[2]!==i?(a=s.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[o,r>0?s.jsxs(s.Fragment,{children:[s.jsx("div",{children:i("sandbox.variantCalendar.noDatedVariants")}),s.jsx("div",{className:"text-xs text-muted-foreground/80",children:i("sandbox.variantCalendar.hiddenOngoingVariants",{count:r})})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{children:i("sandbox.variantCalendar.noScheduledVariants")}),s.jsx("div",{className:"text-xs text-muted-foreground/80",children:i("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=r,t[2]=i,t[3]=a):a=t[3],a}const rt=20,ct=2,mt=28,te=6;function ee(e){const t=K.c(17),{monthStart:n,variants:r,colorMap:i}=e;let o,a,m,l,c;if(t[0]!==i||t[1]!==n||t[2]!==r){const u=zt(n),x=B(new Date);o=pt,c="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:Bt.map(re)}),t[8]=m):m=t[8],l=u.map((h,g)=>{const b=Ut(h,r),j=b.reduce(ne,0),v=mt+j*(rt+ct)+8;return s.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:v},children:[h.map((p,y)=>{const T=p.getMonth()===n.getMonth(),w=p.getTime()===x.getTime();return s.jsx("div",{className:ot("border-r last:border-r-0 px-2 pt-1.5 text-xs",T?"bg-background":"bg-muted/30 text-muted-foreground"),children:s.jsx("span",{className:ot("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",w&&"bg-primary text-primary-foreground font-semibold"),children:p.getDate()})},y)}),b.map((p,y)=>{const T=ut(i,p.variant.blockKey),w=mt+p.lane*(rt+ct),D=p.leftUnits/7*100,k=p.widthUnits/7*100,M=p.variant.openStart&&g===0,S=p.variant.openEnd&&g===u.length-1;return s.jsxs(bt,{variant:p.variant,color:T,fadeStart:M,fadeEnd:S,style:{top:w,left:`calc(${D}% + 2px)`,width:`calc(${k}% - 4px)`,minWidth:te,height:rt},children:[p.variant.blockLabel,p.variant.label!==p.variant.blockLabel&&s.jsxs("span",{className:"opacity-70",children:[" · ",p.variant.label]})]},`${g}-${y}`)})]},g)}),t[0]=i,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=m,t[6]=l,t[7]=c}else o=t[3],a=t[4],m=t[5],l=t[6],c=t[7];let d;t[9]!==a||t[10]!==m||t[11]!==l?(d=s.jsxs("div",{className:a,children:[m,l]}),t[9]=a,t[10]=m,t[11]=l,t[12]=d):d=t[12];let f;return t[13]!==o||t[14]!==c||t[15]!==d?(f=s.jsx(o,{className:c,children:d}),t[13]=o,t[14]=c,t[15]=d,t[16]=f):f=t[16],f}function ne(e,t){return Math.max(e,t.lane+1)}function re(e){return s.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const Q=4,se=32,J=240;function oe(e){const t=K.c(23),{monthStart:n,variants:r,colorMap:i}=e,o=n,a=G(n,Q),m=new Date,l=new Map;for(const _ of r){const N=l.get(_.blockKey)??[];N.push(_),l.set(_.blockKey,N)}const c=Array.from(l.entries()).sort(le),d=a.getTime()-o.getTime(),f=_=>(Math.max(o.getTime(),Math.min(a.getTime(),_.getTime()))-o.getTime())/d*100;let u;t[0]!==o?(u=(_,N)=>G(o,N),t[0]=o,t[1]=u):u=t[1];const x=Array.from({length:Q},u),h=m.getTime()>=o.getTime()&&m.getTime()<=a.getTime()?f(m):null,g=tt(),b=pt,j="flex-1 min-h-0",v="min-w-[900px] relative";let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p={width:J},t[2]=p):p=t[2];let y;t[3]!==g?(y=g("sandbox.variantCalendar.variantBlock"),t[3]=g,t[4]=y):y=t[4];let T;t[5]!==y?(T=s.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:p,children:y}),t[5]=y,t[6]=T):T=t[6];let w;t[7]===Symbol.for("react.memo_cache_sentinel")?(w={gridTemplateColumns:`repeat(${Q}, minmax(0, 1fr))`},t[7]=w):w=t[7];const D=x.map(ae);let k;t[8]!==D?(k=s.jsx("div",{className:"flex-1 grid",style:w,children:D}),t[8]=D,t[9]=k):k=t[9];let M;t[10]!==T||t[11]!==k?(M=s.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[T,k]}),t[10]=T,t[11]=k,t[12]=M):M=t[12];let S;t[13]!==g||t[14]!==h?(S=h!==null&&s.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${J}px + (100% - ${J}px) * ${h} / 100)`},children:s.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:g("sandbox.variantCalendar.todayLabel")})}),t[13]=g,t[14]=h,t[15]=S):S=t[15];const A=c.map(_=>{const[N,L]=_,H=ut(i,N),F=L[0]?.blockLabel??N;return s.jsxs("div",{children:[s.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:s.jsx("div",{className:"px-3 truncate",style:{width:J},children:F})}),L.map((E,W)=>s.jsxs("div",{className:"flex border-b items-center",style:{height:se},children:[s.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:J},children:[s.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:H.bg}}),s.jsx("span",{className:"truncate text-foreground/80",children:E.label})]}),s.jsxs("div",{className:"relative flex-1 h-full",children:[s.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${Q}, minmax(0, 1fr))`},children:x.map(ie)}),(()=>{const R=Math.max(E.start.getTime(),o.getTime()),O=Math.min(E.end.getTime(),a.getTime());if(O<=R)return null;const I=f(new Date(R)),V=f(new Date(O))-I;return s.jsx(bt,{variant:E,color:H,fadeStart:E.openStart,fadeEnd:E.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${I}%`,width:`calc(${V}% - 2px)`,height:22},children:E.label})})()]})]},W))]},N)});let $;t[16]!==M||t[17]!==S||t[18]!==A?($=s.jsxs("div",{className:v,children:[M,S,A]}),t[16]=M,t[17]=S,t[18]=A,t[19]=$):$=t[19];let C;return t[20]!==b||t[21]!==$?(C=s.jsx(b,{className:j,children:$}),t[20]=b,t[21]=$,t[22]=C):C=t[22],C}function ie(e,t){return s.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function ae(e,t){return s.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ht[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function le(e,t){return e[0].localeCompare(t[0])}export{or as VariantCalendar};
@@ -1 +1 @@
1
- import{c as $,r as T,m as f,j as i}from"./index-CCLrlcV5.js";import{c as k,T as I,a as P}from"./tooltip-D4n-WF2q.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[d,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=f("relative flex gap-0 bg-muted rounded-lg",z),t[6]=z,t[7]=n):n=t[7];let a;t[8]!==l||t[9]!==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:f("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",b?"flex-1 h-12 px-4":e.label?f(l.buttonWithLabel,"px-3"):l.button),children:[i.jsx("span",{className:f("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",l.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:f("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=l,t[9]=b,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=b?"h-12":l.button;let r;t[14]!==w?(r=f("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=r):r=t[15];const W=`${d.left}px`,N=`${d.width}px`;let c;t[16]!==d.opacity||t[17]!==W||t[18]!==N?(c={left:W,width:N,opacity:d.opacity},t[16]=d.opacity,t[17]=W,t[18]=N,t[19]=c):c=t[19];let u;t[20]!==r||t[21]!==c?(u=i.jsx("div",{className:r,style:c}),t[20]=r,t[21]=c,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==n||t[25]!==a?(v=i.jsxs("div",{className:n,children:[a,u]}),t[23]=u,t[24]=n,t[25]=a,t[26]=v):v=t[26],v}export{B as V};
1
+ import{c as $,r as T,m as f,j as i}from"./index-5gemagf1.js";import{c as k,T as I,a as P}from"./tooltip-CyXjvnKb.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[d,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=f("relative flex gap-0 bg-muted rounded-lg",z),t[6]=z,t[7]=n):n=t[7];let a;t[8]!==l||t[9]!==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:f("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",b?"flex-1 h-12 px-4":e.label?f(l.buttonWithLabel,"px-3"):l.button),children:[i.jsx("span",{className:f("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",l.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:f("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=l,t[9]=b,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=b?"h-12":l.button;let r;t[14]!==w?(r=f("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=r):r=t[15];const W=`${d.left}px`,N=`${d.width}px`;let c;t[16]!==d.opacity||t[17]!==W||t[18]!==N?(c={left:W,width:N,opacity:d.opacity},t[16]=d.opacity,t[17]=W,t[18]=N,t[19]=c):c=t[19];let u;t[20]!==r||t[21]!==c?(u=i.jsx("div",{className:r,style:c}),t[20]=r,t[21]=c,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==n||t[25]!==a?(v=i.jsxs("div",{className:n,children:[a,u]}),t[23]=u,t[24]=n,t[25]=a,t[26]=v):v=t[26],v}export{B as V};
@@ -50,7 +50,7 @@
50
50
  <meta name="twitter:description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
51
51
  <meta name="twitter:image" content="/og-image.png" />
52
52
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
53
- <script type="module" crossorigin src="/assets/index-CCLrlcV5.js"></script>
53
+ <script type="module" crossorigin src="/assets/index-5gemagf1.js"></script>
54
54
  <link rel="stylesheet" crossorigin href="/assets/index-Dncm6IaE.css">
55
55
  </head>
56
56
  <body>