decocms 4.584.12 → 4.584.14

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 (429) hide show
  1. package/dist/client/assets/{AlertCircle-BuSYYXoB.js → AlertCircle-BckhzGo9.js} +1 -1
  2. package/dist/client/assets/{AreaChart-B7QJFNyd.js → AreaChart-CH55n4Jv.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-CjBgi68F.js → ArrowLeft-DjFnycHz.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-BSOOXYJl.js → ArrowRight-DdCk_HCk.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-DsFRA_-F.js → ArrowUp-jwPYnWqs.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-Bg7SPIQl.js → BookOpen01-B2ISsdx6.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-CTbh6Hly.js → CartesianChart-2VySs-qY.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-Bk-NltJE.js → CategoricalChart-Di2gWvs8.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-CwkAQPvk.js → CheckCircle-p76CoLTf.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-Dq3-i4Ph.js → ChevronDown-Cf6eg1Aj.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-Ce-S0bwE.js → ChevronSelectorVertical-ies3TLws.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-CsGl40rv.js → ChevronUp-Yoxwp_-j.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-DyQlc3BQ.js → CreditCard01-DOIepajb.js} +1 -1
  14. package/dist/client/assets/{Eye-DgggGLP1.js → Eye-B-zZzOpR.js} +1 -1
  15. package/dist/client/assets/{File02-B-McavGu.js → File02-B4TAUApJ.js} +1 -1
  16. package/dist/client/assets/{Globe04-DByxWswA.js → Globe04-C8iXbhsR.js} +1 -1
  17. package/dist/client/assets/{Image01-C-12Ic3A.js → Image01-BKS8Yp4v.js} +1 -1
  18. package/dist/client/assets/{Key01-O_7ZqdlA.js → Key01-D3gaP9qK.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-CAJfUJ1M.js → LayoutLeft-C8ndIALE.js} +1 -1
  20. package/dist/client/assets/{LinkBroken01-DlxIHBPg.js → LinkBroken01-WNn1RqQL.js} +1 -1
  21. package/dist/client/assets/{MessageCircle01-DboGgDYl.js → MessageCircle01-dCZEdQhF.js} +1 -1
  22. package/dist/client/assets/{Minus-C8qbEmNR.js → Minus-BGxu6wTp.js} +1 -1
  23. package/dist/client/assets/{Monitor01-ByiCXP90.js → Monitor01-CrmQoLWb.js} +1 -1
  24. package/dist/client/assets/{Play-B1OcqbdZ.js → Play-B1JyKt5J.js} +1 -1
  25. package/dist/client/assets/{Plus-DgAT_TKu.js → Plus-nOMLt4Yk.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-BsFgkAaF.js → ReferenceLine-CVaZ4J9I.js} +1 -1
  27. package/dist/client/assets/{SearchMd-CAmRp0LP.js → SearchMd-BQl6TEDK.js} +1 -1
  28. package/dist/client/assets/{ShoppingBag01-qRoCf3xL.js → ShoppingBag01-DPoH0u5v.js} +1 -1
  29. package/dist/client/assets/{Sun-DMx5ulRn.js → Sun-CnYsG6YA.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-DRQUyYXI.js → SwitchHorizontal01-DB7Iju_C.js} +1 -1
  31. package/dist/client/assets/{Tool01-CIG9g9AW.js → Tool01-CtY1k5Dx.js} +1 -1
  32. package/dist/client/assets/{Tooltip-Co9f8gJx.js → Tooltip-JDvyEzxh.js} +1 -1
  33. package/dist/client/assets/{Trash01-BXZnDQzc.js → Trash01-DLwaS_5I.js} +1 -1
  34. package/dist/client/assets/{TrendUp01-BXVcz0CP.js → TrendUp01-DAuvMm77.js} +1 -1
  35. package/dist/client/assets/{Upload01-DkM_CW6J.js → Upload01-D8Llo-n7.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-Dd1TarPv.js → UserCheck01-lNPupOG8.js} +1 -1
  37. package/dist/client/assets/{UserSquare-Dx7SMn8a.js → UserSquare-xrIyO385.js} +1 -1
  38. package/dist/client/assets/{Users01-CrAD5jfs.js → Users01-B6_L_w2p.js} +1 -1
  39. package/dist/client/assets/{XClose-ChZfCB0S.js → XClose-BAaBoHXT.js} +1 -1
  40. package/dist/client/assets/{Zap-DzFzGOQ3.js → Zap-DV5_FZrE.js} +1 -1
  41. package/dist/client/assets/{access-gate-C2FMXB7E.js → access-gate-DAmYKrNY.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-CzeB9jwm.js → add-connection-dialog-HNNoGhQz.js} +1 -1
  43. package/dist/client/assets/agent-app-BX9KTYM-.js +1 -0
  44. package/dist/client/assets/{agent-assets-9HrQTQv3.js → agent-assets-D4WFTVXs.js} +1 -1
  45. package/dist/client/assets/{agent-automation-DzRF919j.js → agent-automation-BCaX7ESM.js} +1 -1
  46. package/dist/client/assets/{agent-automations-B7gnwLG-.js → agent-automations-Vz61YWWE.js} +1 -1
  47. package/dist/client/assets/{agent-blog-post-Bw3h59FR.js → agent-blog-post-BnDW4dJQ.js} +2 -2
  48. package/dist/client/assets/{agent-blog-C5kBZHf-.js → agent-blog-wICv4HuS.js} +2 -2
  49. package/dist/client/assets/{agent-calendar-Barh2tCG.js → agent-calendar-DJdZ4heH.js} +1 -1
  50. package/dist/client/assets/{agent-capabilities-pZr4u-WY.js → agent-capabilities-BI0sCkjS.js} +1 -1
  51. package/dist/client/assets/{agent-connect-sources-B13VfK46.js → agent-connect-sources-CyXkEet9.js} +1 -1
  52. package/dist/client/assets/agent-deck-ChhTCxwX.js +1 -0
  53. package/dist/client/assets/{agent-e2e-BZsczrS6.js → agent-e2e-B5_at-Zi.js} +1 -1
  54. package/dist/client/assets/agent-experiments-D1svONd4.js +1 -0
  55. package/dist/client/assets/agent-file-CIWnVX_Q.js +1 -0
  56. package/dist/client/assets/{agent-hosting-C_4Ag01X.js → agent-hosting-NbmgDCYe.js} +1 -1
  57. package/dist/client/assets/{agent-icon-CmYgsdkA.js → agent-icon-Da3tHBMv.js} +1 -1
  58. package/dist/client/assets/agent-library-XqjyriLQ.js +1 -0
  59. package/dist/client/assets/agent-library-file-DUdXPex9.js +1 -0
  60. package/dist/client/assets/agent-overview-CSLeMcxj.js +1 -0
  61. package/dist/client/assets/{agent-releases-DotOCii8.js → agent-releases-Cy6FvVXN.js} +1 -1
  62. package/dist/client/assets/agent-settings-CIezqrTQ.js +1 -0
  63. package/dist/client/assets/{agent-site-editor-U2R7cRzL.js → agent-site-editor-_uT5t8dC.js} +1 -1
  64. package/dist/client/assets/agent-site-editor-code-DQ2-qcrK.js +2 -0
  65. package/dist/client/assets/agent-site-editor-content-Bo52y6MP.js +1 -0
  66. package/dist/client/assets/agent-site-editor-preview-DWXAOs-I.js +1 -0
  67. package/dist/client/assets/agent-view-Cj0EamHG.js +1 -0
  68. package/dist/client/assets/{agent-view-guard-BFv6g1Ko.js → agent-view-guard-DkakdmVe.js} +1 -1
  69. package/dist/client/assets/{ai-providers-BuBmxWDQ.js → ai-providers-CpM0GOBE.js} +1 -1
  70. package/dist/client/assets/{alert-DuHwFyfE.js → alert-2VptOQ03.js} +1 -1
  71. package/dist/client/assets/{analytics-sections-CwBZ5Ted.js → analytics-sections-Dlo3vqkW.js} +1 -1
  72. package/dist/client/assets/api-keys-ClRjj7VM.js +1 -0
  73. package/dist/client/assets/{api-keys-DrP5YQ4I.js → api-keys-Da0Xjqef.js} +1 -1
  74. package/dist/client/assets/{app-editor-BsVJdNx8.js → app-editor-CFEr8Apb.js} +1 -1
  75. package/dist/client/assets/{asset-utils-QVjWQLHR.js → asset-utils-hi9ZCK7M.js} +1 -1
  76. package/dist/client/assets/{auth-D_64eYdt.js → auth-CNYHKCFg.js} +1 -1
  77. package/dist/client/assets/{auth-catchall-ILxf5wbm.js → auth-catchall-hGRrksq6.js} +1 -1
  78. package/dist/client/assets/{auth-entry-BCQtAQ2U.js → auth-entry-B65KEyLc.js} +1 -1
  79. package/dist/client/assets/{auth-split-layout-BJtbEMwI.js → auth-split-layout-DEwglaQq.js} +1 -1
  80. package/dist/client/assets/{authenticate-and-persist-oauth-DLO3ZGCC.js → authenticate-and-persist-oauth-D450Ij-p.js} +1 -1
  81. package/dist/client/assets/{automation-list-row-D0MQGuMj.js → automation-list-row-CpayrKzf.js} +1 -1
  82. package/dist/client/assets/{automation-runs-CLRJ9cBM.js → automation-runs-DBCPwmkF.js} +1 -1
  83. package/dist/client/assets/{automations-BZt_2MgL.js → automations-DXemr1t6.js} +1 -1
  84. package/dist/client/assets/{badge-CT_Bowl_.js → badge-loE1b0Vr.js} +1 -1
  85. package/dist/client/assets/{block-document-BJjPR7oq.js → block-document-C_ucAxAi.js} +1 -1
  86. package/dist/client/assets/{blocks-preview-workspace-context-DjXDZ6rd.js → blocks-preview-workspace-context-ByBcX_ix.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-D3HNXQiV.js → blocks-tab-states-DCjOLpkz.js} +1 -1
  88. package/dist/client/assets/{blog-preview-url-Dy7Dv8w3.js → blog-preview-url-B7uV4oRW.js} +1 -1
  89. package/dist/client/assets/{blog-schema-XG0-2F17.js → blog-schema-Cc_fWOEk.js} +1 -1
  90. package/dist/client/assets/{blog-source-gate-BNfT_-Se.js → blog-source-gate-BS-4HFBT.js} +1 -1
  91. package/dist/client/assets/{blog-view-gate-6XQCA5te.js → blog-view-gate-D10ViiI0.js} +1 -1
  92. package/dist/client/assets/{buckets-CFkCJ9AR.js → buckets-DsX--7i3.js} +1 -1
  93. package/dist/client/assets/{build-improve-prompt-doc-CdIUjiPi.js → build-improve-prompt-doc-B-4SVpBS.js} +1 -1
  94. package/dist/client/assets/{calendar-5YPFZKxL.js → calendar-BI3J-A5m.js} +1 -1
  95. package/dist/client/assets/{capability-load-error-BuCmA5o8.js → capability-load-error-qZIBtmfz.js} +1 -1
  96. package/dist/client/assets/{category-editor-Zr7r4C9b.js → category-editor-_jPyPfux.js} +1 -1
  97. package/dist/client/assets/{category-tree-C5NWwRUY.js → category-tree-DY9bWdK8.js} +1 -1
  98. package/dist/client/assets/{chart-NHpn8rhZ.js → chart-BvG6MEBA.js} +1 -1
  99. package/dist/client/assets/{chat-context-oV4F8WQc.js → chat-context-Cdr2Tzco.js} +1 -1
  100. package/dist/client/assets/{chat-draft-a_gkkGrw.js → chat-draft--xvDfEkY.js} +1 -1
  101. package/dist/client/assets/{checkbox-D_sNmJye.js → checkbox-ClBCJgC4.js} +1 -1
  102. package/dist/client/assets/{choose-editor-MNNOPLUU.js → choose-editor-C-PjDARE.js} +1 -1
  103. package/dist/client/assets/{cli-auth-success-CXQ8jWXU.js → cli-auth-success-DSyck-0K.js} +1 -1
  104. package/dist/client/assets/{cms-settings-editor-BbFLb9ZS.js → cms-settings-editor-CVlkde0D.js} +1 -1
  105. package/dist/client/assets/{cms-store-drafts-DxbgkQ0A.js → cms-store-drafts-Boyjd6L_.js} +1 -1
  106. package/dist/client/assets/{collapsible-BG95WVUo.js → collapsible-6ftDlMsd.js} +1 -1
  107. package/dist/client/assets/{collection-detail-kw3HL7Zg.js → collection-detail-C6p_EA7f.js} +1 -1
  108. package/dist/client/assets/{collection-display-button-C9XgzERd.js → collection-display-button-DtXUp3v-.js} +1 -1
  109. package/dist/client/assets/{collection-search-Blzi887q.js → collection-search-CW9SJXAE.js} +1 -1
  110. package/dist/client/assets/{collection-table-wrapper-0fJW8NBx.js → collection-table-wrapper-C2ZHhgyo.js} +1 -1
  111. package/dist/client/assets/{collection-tabs-BfGk19Xn.js → collection-tabs-Y93FdN1l.js} +1 -1
  112. package/dist/client/assets/{combobox-BugfSYhh.js → combobox-BQBhf9A-.js} +1 -1
  113. package/dist/client/assets/{command-2E07YrgQ.js → command-CtLQP1YS.js} +1 -1
  114. package/dist/client/assets/{companion-mcps-section-CSuVoTfi.js → companion-mcps-section-DngRMXnd.js} +1 -1
  115. package/dist/client/assets/{config-R6R9Ongh.js → config-CheVupom.js} +1 -1
  116. package/dist/client/assets/{connect-M7tiJDQi.js → connect-DYg_2v9f.js} +1 -1
  117. package/dist/client/assets/{connect-key-Cojwbl7P.js → connect-key-CeYjF2jt.js} +1 -1
  118. package/dist/client/assets/{connect-layout-Bx9T6hqz.js → connect-layout-BEGibWQF.js} +1 -1
  119. package/dist/client/assets/{connect-source-dialog-mX-5t-Zc.js → connect-source-dialog-BXFll5AK.js} +1 -1
  120. package/dist/client/assets/{connection-DjW2F0Sw.js → connection-BNwNEPn2.js} +1 -1
  121. package/dist/client/assets/{connection-card-D0xB4Qjx.js → connection-card-Bz0SPOqT.js} +1 -1
  122. package/dist/client/assets/{connection-detail-CRthnQCY.js → connection-detail-P17H-32n.js} +1 -1
  123. package/dist/client/assets/{connection-form-helpers-DFjr7AwA.js → connection-form-helpers-Bw7x5pKf.js} +1 -1
  124. package/dist/client/assets/{connection-slug-BY-obzjO.js → connection-slug-mPfdw4iI.js} +1 -1
  125. package/dist/client/assets/{connections-BnoTkXmg.js → connections-e83k0jvY.js} +1 -1
  126. package/dist/client/assets/{content-tab-BzfOLSKV.js → content-tab-DYv0CW9s.js} +3 -3
  127. package/dist/client/assets/{context-DVDLM_Ic.js → context-ByI47TZF.js} +1 -1
  128. package/dist/client/assets/{context-menu-CA2Qt-d2.js → context-menu-BRek7vb6.js} +1 -1
  129. package/dist/client/assets/{context-shell-DabLWz4l.js → context-shell-j8EHULJB.js} +3 -3
  130. package/dist/client/assets/{create-organization-dialog-D92lLoa4.js → create-organization-dialog-D1oYPgDd.js} +1 -1
  131. package/dist/client/assets/{daily-pulse-Ds3sxReN.js → daily-pulse-eHpvhv3c.js} +1 -1
  132. package/dist/client/assets/{delete-copy-3IZwE-9t.js → delete-copy-Dxwk399F.js} +1 -1
  133. package/dist/client/assets/{device-hint-_LCtjil4.js → device-hint-DwxBL2qp.js} +1 -1
  134. package/dist/client/assets/{discover-5fE1YFIy.js → discover-DBOXc7vr.js} +1 -1
  135. package/dist/client/assets/{domain-settings-C3fyHcP5.js → domain-settings-D00wzWwl.js} +1 -1
  136. package/dist/client/assets/{drawer-XYh0Y76X.js → drawer-CRP1WiCk.js} +1 -1
  137. package/dist/client/assets/{editor-um5vPMjZ.js → editor-Ca65jgGo.js} +1 -1
  138. package/dist/client/assets/{editor-classes-BatboZCB.js → editor-classes-DXmOOkk1.js} +1 -1
  139. package/dist/client/assets/{empty-message-B27EvPA5.js → empty-message-CFaFzCFq.js} +1 -1
  140. package/dist/client/assets/{empty-state-DUI1uMab.js → empty-state--JGqfPR-.js} +1 -1
  141. package/dist/client/assets/{empty-state-CD43HEkx.js → empty-state-BWFEJiAD.js} +1 -1
  142. package/dist/client/assets/{experiments-tab-choice-BWnh1BzP.js → experiments-tab-choice-CeoTUg2d.js} +1 -1
  143. package/dist/client/assets/{extract-connection-data-BhyRah4W.js → extract-connection-data-C26a1rUY.js} +1 -1
  144. package/dist/client/assets/{feature-gate-Dg0v4va6.js → feature-gate-BRL5qzLx.js} +1 -1
  145. package/dist/client/assets/{feature-paywall-TG7L-qMr.js → feature-paywall-DKi0OK9Z.js} +1 -1
  146. package/dist/client/assets/{file-explorer-DSgGqDRY.js → file-explorer-4BaytwST.js} +1 -1
  147. package/dist/client/assets/{file-preview-CIfFSMEa.js → file-preview-CB_q0R1c.js} +1 -1
  148. package/dist/client/assets/{file-share-button-mrsJYdan.js → file-share-button-DdNZkOgu.js} +1 -1
  149. package/dist/client/assets/{file-type-icon-MJit4Xxk.js → file-type-icon-BAAuwpOK.js} +1 -1
  150. package/dist/client/assets/{folder-icon-CIbEuHFJ.js → folder-icon-DOLHwvxN.js} +1 -1
  151. package/dist/client/assets/{form-CTAz1vX9.js → form-9ojGZv11.js} +1 -1
  152. package/dist/client/assets/{frame-navigation-BBEhmW78.js → frame-navigation-CmmgpT4V.js} +1 -1
  153. package/dist/client/assets/{gateway-client-BKm00588.js → gateway-client-BwxdQL6w.js} +1 -1
  154. package/dist/client/assets/{general-CYA6Zf6p.js → general-CpiioBfe.js} +1 -1
  155. package/dist/client/assets/{github-icon-llpq0MNv.js → github-icon-Bx9ss8sA.js} +1 -1
  156. package/dist/client/assets/{held-block-view-DVOSfe5P.js → held-block-view-CwXGGKH1.js} +1 -1
  157. package/dist/client/assets/{home-HOYD9Ses.js → home-lb0YjJQy.js} +1 -1
  158. package/dist/client/assets/{home-overview-BwE_ga8l.js → home-overview-Dks5WIsU.js} +1 -1
  159. package/dist/client/assets/{hosted-reconcile-CwdLagF7.js → hosted-reconcile-EHhmhhgb.js} +1 -1
  160. package/dist/client/assets/{icon-button-D7LkPwOF.js → icon-button-DhhoBQY7.js} +1 -1
  161. package/dist/client/assets/{index-B_wXIpW7.js → index-0mVsTo2D.js} +1 -1
  162. package/dist/client/assets/index-BT86t2zN.js +1 -0
  163. package/dist/client/assets/{index-DcEkCGAP.js → index-BUpEwBrv.js} +1 -1
  164. package/dist/client/assets/{index-coAeu4pU.js → index-B_eBHPlD.js} +1 -1
  165. package/dist/client/assets/{index-SF6h0OMA.js → index-Bnc-AlIv.js} +1 -1
  166. package/dist/client/assets/{index-CYgHpTZe.js → index-BxZDu5VS.js} +1 -1
  167. package/dist/client/assets/{index-weqOv2y6.js → index-ByI5JNyj.js} +1 -1
  168. package/dist/client/assets/{index-BldUavnl.js → index-CQwlvIdC.js} +1 -1
  169. package/dist/client/assets/{index-eNu6nx1W.js → index-Cb8rdIGe.js} +1 -1
  170. package/dist/client/assets/{index-Biams685.js → index-CnlrqsCd.js} +3 -3
  171. package/dist/client/assets/{index-DudhPIvY.js → index-ComiCY0D.js} +1 -1
  172. package/dist/client/assets/{index-D4_P19LT.js → index-DEg1eCWz.js} +1 -1
  173. package/dist/client/assets/{index-DY2XXBge.js → index-DjQbsfzi.js} +1 -1
  174. package/dist/client/assets/{index-BPGM2v94.js → index-K1m0OV2d.js} +1 -1
  175. package/dist/client/assets/{index-DoatmtZ6.js → index-qb9TO-KL.js} +1 -1
  176. package/dist/client/assets/{index-redirect-ZSm9yQL-.js → index-redirect-BuK2lj2s.js} +1 -1
  177. package/dist/client/assets/{index-BAqfesXo.js → index-xBV0t4Yq.js} +1 -1
  178. package/dist/client/assets/{index-BWYImI42.js → index-xajFYiUY.js} +1 -1
  179. package/dist/client/assets/{infiniteQueryObserver-DviOrlp9.js → infiniteQueryObserver-d6eMImhi.js} +1 -1
  180. package/dist/client/assets/{infra-billing-IBBLIWxF.js → infra-billing-BVBJ_vl6.js} +1 -1
  181. package/dist/client/assets/{input-B76M4kKw.js → input-BzVp3-J0.js} +1 -1
  182. package/dist/client/assets/{input-CeB8s6SZ.js → input-CzlhHu3g.js} +3 -3
  183. package/dist/client/assets/{integration-icon-C76s6rje.js → integration-icon-XdnHhG6r.js} +1 -1
  184. package/dist/client/assets/{item-actions-CZZ--PmH.js → item-actions-Dbd1iigC.js} +1 -1
  185. package/dist/client/assets/{jira-icon-XEH4IQk9.js → jira-icon-jvATtbBe.js} +1 -1
  186. package/dist/client/assets/{label-B5koT7GN.js → label-D9MCble5.js} +1 -1
  187. package/dist/client/assets/{layout-CxyUazai.js → layout-Pxiy0xY8.js} +1 -1
  188. package/dist/client/assets/{legacy-admin-welcome-dialog-D0q0NbRI.js → legacy-admin-welcome-dialog-5lUmP66o.js} +1 -1
  189. package/dist/client/assets/{legacy-agents-deep-C2DNyxqu.js → legacy-agents-deep-CYriesvh.js} +1 -1
  190. package/dist/client/assets/{legacy-main-redirect-WtSatDH5.js → legacy-main-redirect-CkeD71fA.js} +1 -1
  191. package/dist/client/assets/library-BiMH0bDk.js +1 -0
  192. package/dist/client/assets/{library-tab-2qBenxku.js → library-tab-hSyLAga2.js} +1 -1
  193. package/dist/client/assets/{login-c4mGU54U.js → login-CnrJpfTI.js} +1 -1
  194. package/dist/client/assets/{markdown-QFsCz8HO.js → markdown-DPh7H1MH.js} +1 -1
  195. package/dist/client/assets/{mcp-app-renderer-BQn1YwZp.js → mcp-app-renderer-DEDNSoX2.js} +1 -1
  196. package/dist/client/assets/{mcp-oauth-o7ej4_IN.js → mcp-oauth-D_ZnYWZH.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-BjLyRnBa.js → mcp-oauth-XpGc4vgb.js} +1 -1
  198. package/dist/client/assets/{members-D8PhbHd1.js → members-DBLGsZ8Z.js} +1 -1
  199. package/dist/client/assets/{memory-BtY-1LoU.js → memory-DpwHgd2f.js} +1 -1
  200. package/dist/client/assets/{mock-board-BtI43PTx.js → mock-board-b7I4Lkdt.js} +3 -3
  201. package/dist/client/assets/{monaco-editor-D9Tg3MLA.js → monaco-editor-DO6kYNn6.js} +1 -1
  202. package/dist/client/assets/{monitoring-stats-row-HbK1wloz.js → monitoring-stats-row-CDy_z2_I.js} +1 -1
  203. package/dist/client/assets/{monitoring-CtQcY_Yw.js → monitoring-v2S8Vbz2.js} +1 -1
  204. package/dist/client/assets/{multi-select-B-3mGzW5.js → multi-select-DVrZLS4y.js} +1 -1
  205. package/dist/client/assets/{mustache-BLA1CrAV.js → mustache-D8PrVRmL.js} +1 -1
  206. package/dist/client/assets/{named-rule-step-8144d_yV.js → named-rule-step-B-qKJe-K.js} +1 -1
  207. package/dist/client/assets/{named-rule-view-DPkhmptL.js → named-rule-view-CfHOB60I.js} +1 -1
  208. package/dist/client/assets/{new-project-dialog-CZtNDQaD.js → new-project-dialog-DqENGapI.js} +1 -1
  209. package/dist/client/assets/{new-project-store-DNJn4Jmh.js → new-project-store-BCRxr-mc.js} +1 -1
  210. package/dist/client/assets/{oauth-callback-6T3u1_5o.js → oauth-callback-CCZ4yfvy.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-ai-provider-B-x9qcVx.js → oauth-callback-ai-provider-CTt1_X_A.js} +1 -1
  212. package/dist/client/assets/{oauth-consent-DVlsNNXL.js → oauth-consent-CZX3xw6n.js} +1 -1
  213. package/dist/client/assets/{onboarding-Cb57pCFu.js → onboarding--PazlAJD.js} +1 -1
  214. package/dist/client/assets/{openai-conversation-DcmrMDzM.js → openai-conversation-xommJenc.js} +1 -1
  215. package/dist/client/assets/{optimistic-project-sidebar-views-BRMs4i73.js → optimistic-project-sidebar-views-BkffKpai.js} +1 -1
  216. package/dist/client/assets/{order-monitor-day-DfXP58WW.js → order-monitor-day-958y0odK.js} +1 -1
  217. package/dist/client/assets/{organization-choice-CUWW63qG.js → organization-choice-DvJnEyxf.js} +1 -1
  218. package/dist/client/assets/{orgs-BZlWgF_x.js → orgs-CO_oHECx.js} +1 -1
  219. package/dist/client/assets/{own-accounts-section-DxCHg0ny.js → own-accounts-section-BenVPCh8.js} +1 -1
  220. package/dist/client/assets/{pair-CgVGpWTx.js → pair-BqleDpPR.js} +1 -1
  221. package/dist/client/assets/{parse-sections-DUGfLIWJ.js → parse-sections-BzGAq8XE.js} +2 -2
  222. package/dist/client/assets/{plan-DnwLIGzd.js → plan-KhTTft6_.js} +1 -1
  223. package/dist/client/assets/{plan-ladder-Bu6W70aQ.js → plan-ladder-heY6MciQ.js} +1 -1
  224. package/dist/client/assets/{plan-usage-card-C57l8FIL.js → plan-usage-card-PQMuEzyd.js} +1 -1
  225. package/dist/client/assets/{popover-DmvVZ360.js → popover-BehWQy5s.js} +1 -1
  226. package/dist/client/assets/{post-calendar-DznCDSLK.js → post-calendar-D34f7PIU.js} +1 -1
  227. package/dist/client/assets/{post-editor-wEb9hjKG.js → post-editor-_PepvJ6a.js} +1 -1
  228. package/dist/client/assets/{preview-content-CviEl4FA.js → preview-content-CE2XWmAb.js} +1 -1
  229. package/dist/client/assets/{preview-dialog-BjWX-MRB.js → preview-dialog-DZ2IwkzI.js} +1 -1
  230. package/dist/client/assets/{preview-panel-SI4Ib1Aj.js → preview-panel-vXQnVw8H.js} +1 -1
  231. package/dist/client/assets/{preview-tab-Dk62lBXe.js → preview-tab-Cl9H482E.js} +3 -3
  232. package/dist/client/assets/{product-picker-dialog-BnZa5p8U.js → product-picker-dialog-BL9boxvk.js} +1 -1
  233. package/dist/client/assets/{profile-27iQlhcJ.js → profile-OP4zsfS_.js} +1 -1
  234. package/dist/client/assets/{project-app-view-BwR2AERO.js → project-app-view-CYOoDrbJ.js} +1 -1
  235. package/dist/client/assets/{project-apps-rpgmmv_y.js → project-apps-BcbysZgz.js} +1 -1
  236. package/dist/client/assets/{project-icon-VgM1tY99.js → project-icon-DsXJkCkm.js} +1 -1
  237. package/dist/client/assets/{project-index-CDh44wXq.js → project-index-D_813h_x.js} +1 -1
  238. package/dist/client/assets/project-reports-Cu_S3g_o.js +1 -0
  239. package/dist/client/assets/project-tasks-B0R4-BCy.js +1 -0
  240. package/dist/client/assets/{projects-OCdIg2Gi.js → projects-BPAfSozY.js} +1 -1
  241. package/dist/client/assets/{projects-empty-state-i0nk7emw.js → projects-empty-state-CqVfdsjs.js} +1 -1
  242. package/dist/client/assets/{prompts-DNMt0A82.js → prompts-BKgSI8pJ.js} +1 -1
  243. package/dist/client/assets/record-editor-CjcMnQKJ.js +1 -0
  244. package/dist/client/assets/{redirect-editor-YrpaR7IQ.js → redirect-editor-Dhnkzc8x.js} +1 -1
  245. package/dist/client/assets/reports-Ddcyqv78.js +1 -0
  246. package/dist/client/assets/{reports-onboarding-BU0_JYSd.js → reports-onboarding-Dqt1GZGm.js} +1 -1
  247. package/dist/client/assets/{reports-CHlbCaSO.js → reports-rQvh0Hwt.js} +1 -1
  248. package/dist/client/assets/{reports-tab-BXwRh5Je.js → reports-tab-DLtX9pIH.js} +2 -2
  249. package/dist/client/assets/{repositories-D5ePo5qD.js → repositories-DRcv3rGo.js} +1 -1
  250. package/dist/client/assets/repositories-o1iCE7DL.js +1 -0
  251. package/dist/client/assets/{repository-binding-CWTr70tX.js → repository-binding-B-NGFlA8.js} +1 -1
  252. package/dist/client/assets/{repository-picker-CAtWKBbx.js → repository-picker-gzTJe9Gv.js} +1 -1
  253. package/dist/client/assets/{require-capability-BEpAmIG-.js → require-capability-kZjYTRSp.js} +1 -1
  254. package/dist/client/assets/{required-auth-layout-CgZqM250.js → required-auth-layout-nH3iv-0Q.js} +1 -1
  255. package/dist/client/assets/{reset-password-bO2BtcrT.js → reset-password-DB-udXR6.js} +1 -1
  256. package/dist/client/assets/{resizable-CFK0TmIM.js → resizable-BlRMDdrh.js} +1 -1
  257. package/dist/client/assets/{resolve-tab-icon-qGMCDrsW.js → resolve-tab-icon-CiuDD5mB.js} +1 -1
  258. package/dist/client/assets/{review-settings-3GBzR4Yt.js → review-settings-CXLjCt8_.js} +1 -1
  259. package/dist/client/assets/{role-color-Bdj8ikki.js → role-color-uiFynXo0.js} +1 -1
  260. package/dist/client/assets/{roles-BOeP1ebp.js → roles-BAmonx9L.js} +1 -1
  261. package/dist/client/assets/route-BVJlGC3e.js +1 -0
  262. package/dist/client/assets/{route-CYW15Jx-.js → route-DnjRFCDt.js} +1 -1
  263. package/dist/client/assets/{route-j_qO2dDr.js → route-ezf78-kp.js} +1 -1
  264. package/dist/client/assets/{route-page-header-kK3KuiFw.js → route-page-header-X-mAmINr.js} +1 -1
  265. package/dist/client/assets/{sandbox-git-api-BTtQPEAs.js → sandbox-git-api-aKyMzAgE.js} +1 -1
  266. package/dist/client/assets/{sandbox-lifecycle-context-Cq9tokKr.js → sandbox-lifecycle-context-D7Fp6oqG.js} +1 -1
  267. package/dist/client/assets/{save-status-D6ZCuvIw.js → save-status-DJPya39G.js} +1 -1
  268. package/dist/client/assets/{schema-5sguLDZR.js → schema-BBpKzKno.js} +1 -1
  269. package/dist/client/assets/{schema-D-rmQGG7.js → schema-DCd8UMh8.js} +1 -1
  270. package/dist/client/assets/{scroll-area--F5PSuIY.js → scroll-area-Csvonw83.js} +1 -1
  271. package/dist/client/assets/{search-input-DSB0t8kj.js → search-input-Cu6jTXVw.js} +1 -1
  272. package/dist/client/assets/{search-toggle-qYosTs_8.js → search-toggle-e_exxt7r.js} +1 -1
  273. package/dist/client/assets/{secret-picker-0-8hMF-u.js → secret-picker-DNUQblEn.js} +1 -1
  274. package/dist/client/assets/{secrets-DXxd7p_6.js → secrets-Bn1WBwcl.js} +1 -1
  275. package/dist/client/assets/{section-array-field-bEeF0FCV.js → section-array-field-BEw6_ifu.js} +1 -1
  276. package/dist/client/assets/{sections-V-F7INF6.js → sections-DJiuecaT.js} +1 -1
  277. package/dist/client/assets/{sections-editor-zU--ttbg.js → sections-editor-DVOsCD59.js} +1 -1
  278. package/dist/client/assets/{select-ewWPkQXd.js → select-P0a7iEwt.js} +1 -1
  279. package/dist/client/assets/{select-model-lB0XjZQu.js → select-model-C0gDb4oR.js} +1 -1
  280. package/dist/client/assets/{seo-editor-C4YIyat5.js → seo-editor-bpOl0mAI.js} +1 -1
  281. package/dist/client/assets/{separator-C0S3W_GK.js → separator-CD1pacr0.js} +1 -1
  282. package/dist/client/assets/{session-runtime-OZnQWVyx.js → session-runtime-CPmKckVH.js} +1 -1
  283. package/dist/client/assets/settings-tab-DvLo5tCi.js +1 -0
  284. package/dist/client/assets/{sheet-DYP4kWtX.js → sheet-p2Ousfn8.js} +1 -1
  285. package/dist/client/assets/{shell-layout-Dd3ZOJl-.js → shell-layout-ipiZBDIC.js} +1 -1
  286. package/dist/client/assets/{site-draft-actions-B_UnkEm1.js → site-draft-actions-BvryPs_I.js} +1 -1
  287. package/dist/client/assets/{site-draft-view-B1FDjL56.js → site-draft-view-CafbfdCR.js} +1 -1
  288. package/dist/client/assets/site-editor-BXgkiOeW.js +1 -0
  289. package/dist/client/assets/{site-editor-toast-DrqWp80X.js → site-editor-toast-BCIjRFDB.js} +1 -1
  290. package/dist/client/assets/{skills-Bzk9DhOS.js → skills-B9A2Tnlp.js} +1 -1
  291. package/dist/client/assets/{slider-BcolzkZg.js → slider-BSVnJGMl.js} +1 -1
  292. package/dist/client/assets/{sortable.esm-BeN2A75n.js → sortable.esm-RnWQ2Udf.js} +1 -1
  293. package/dist/client/assets/{sso-DO6R7GAe.js → sso-CB570QeV.js} +1 -1
  294. package/dist/client/assets/{suggestion-BW469wQ_.js → suggestion-vwX5VgUe.js} +1 -1
  295. package/dist/client/assets/{super-agent-icon-fbJctyE7.js → super-agent-icon-BPbK3yEF.js} +1 -1
  296. package/dist/client/assets/{switch-Dmoe_p0M.js → switch-DhrqiPup.js} +1 -1
  297. package/dist/client/assets/{synced-repos-C2KamLS5.js → synced-repos-Dj7MNmrF.js} +1 -1
  298. package/dist/client/assets/{tab-icon-glyph-BpWNgKYN.js → tab-icon-glyph-CwXfY3im.js} +1 -1
  299. package/dist/client/assets/{table-DearQIjo.js → table-C2Ra_yKM.js} +1 -1
  300. package/dist/client/assets/{tabs-BqUC_RhT.js → tabs-BB9AjDp8.js} +1 -1
  301. package/dist/client/assets/{task-board-DfE7ACDs.js → task-board-B47Oba0a.js} +1 -1
  302. package/dist/client/assets/{task-key-D5Xi8Zpv.js → task-key-CzMIIXuS.js} +1 -1
  303. package/dist/client/assets/{task-route-YrsLsrlf.js → task-route-DnF8qwEX.js} +1 -1
  304. package/dist/client/assets/{task-status-Gh6OxLHy.js → task-status-Cgcee3O1.js} +1 -1
  305. package/dist/client/assets/{taskboard-analytics-DwPeXP0G.js → taskboard-analytics-BGk64d_U.js} +1 -1
  306. package/dist/client/assets/{tasks-JQNDYPkv.js → tasks-9BhHRctq.js} +1 -1
  307. package/dist/client/assets/tasks-qwSI_NuF.js +1 -0
  308. package/dist/client/assets/{textarea-DDxBLXs2.js → textarea-BfYW4m9c.js} +1 -1
  309. package/dist/client/assets/{thread-analytics-D-buV8-Z.js → thread-analytics-1PuOj_1s.js} +1 -1
  310. package/dist/client/assets/{thread-button-Swmr63Yb.js → thread-button-D5DY5gNU.js} +1 -1
  311. package/dist/client/assets/{thread-intent-B4ztyrl0.js → thread-intent-CMPSad7_.js} +1 -1
  312. package/dist/client/assets/{thread-route-DmAvNVfz.js → thread-route-BizqFXgE.js} +1 -1
  313. package/dist/client/assets/{thread-route-6XiMNHA9.js → thread-route-D3pQjYup.js} +1 -1
  314. package/dist/client/assets/{thread-sheet-body-DZFMrcN3.js → thread-sheet-body-XpKlRgjQ.js} +1 -1
  315. package/dist/client/assets/{time-range-picker-iaayu7xs.js → time-range-picker-DpPBnDJs.js} +1 -1
  316. package/dist/client/assets/{toggle-group-CVXqq62l.js → toggle-group-DNENle-P.js} +1 -1
  317. package/dist/client/assets/{tool-set-selector-DEUJAQky.js → tool-set-selector-jU7fZbNy.js} +1 -1
  318. package/dist/client/assets/{toolbar-icon-button-CrkoLL-g.js → toolbar-icon-button-BzpP1rEG.js} +1 -1
  319. package/dist/client/assets/{tooltip-CqtvIcRI.js → tooltip-iXXWa3VG.js} +1 -1
  320. package/dist/client/assets/{tooltipContext-BIVvJQGQ.js → tooltipContext-C8y_VFmL.js} +1 -1
  321. package/dist/client/assets/{track-jnZwcvQW.js → track-Bc9nbdpg.js} +1 -1
  322. package/dist/client/assets/{types-CqLgXd5K.js → types-Ds7H4BQL.js} +1 -1
  323. package/dist/client/assets/{url-slug-BMcANwuf.js → url-slug-Dl2YaRDk.js} +1 -1
  324. package/dist/client/assets/{usage-stats-LbQgUlFb.js → usage-stats-Cpv39cmk.js} +1 -1
  325. package/dist/client/assets/{use-ai-providers-D-W7KWam.js → use-ai-providers-DAAK1LJH.js} +1 -1
  326. package/dist/client/assets/{use-api-keys-BZkdV8_9.js → use-api-keys-DYWSrleO.js} +1 -1
  327. package/dist/client/assets/{use-apply-named-rule-Du3q600g.js → use-apply-named-rule-ChczImI2.js} +1 -1
  328. package/dist/client/assets/use-ask-in-chat-DsqzzR_R.js +1 -0
  329. package/dist/client/assets/{use-automations-CDdcaseZ.js → use-automations-BlLUMChm.js} +1 -1
  330. package/dist/client/assets/{use-autosave-B7jzEDxJ.js → use-autosave-C8IC3tXr.js} +1 -1
  331. package/dist/client/assets/use-blocks-v8-project-D3ldcoCH.js +1 -0
  332. package/dist/client/assets/use-blog-view-CjVBpsro.js +1 -0
  333. package/dist/client/assets/{use-chat-layout-state-3j9yfEqK.js → use-chat-layout-state-C8KgaHCk.js} +1 -1
  334. package/dist/client/assets/{use-cms-publish-actions-DO2ageGn.js → use-cms-publish-actions-CfFe1een.js} +1 -1
  335. package/dist/client/assets/{use-connect-companion-BC1E9YXV.js → use-connect-companion-BCNVG3tV.js} +1 -1
  336. package/dist/client/assets/{use-connection-D2uhV2tM.js → use-connection-CyhiAuyN.js} +1 -1
  337. package/dist/client/assets/{use-content-sync-CoY-_8zJ.js → use-content-sync-DMiZIHHe.js} +1 -1
  338. package/dist/client/assets/{use-copy-D38lTrG-.js → use-copy-jVRNS72q.js} +1 -1
  339. package/dist/client/assets/{use-current-view-DJKRVR3b.js → use-current-view-DbaDobC4.js} +1 -1
  340. package/dist/client/assets/{use-date-fns-locale-BoNBckFl.js → use-date-fns-locale-3quXKuiY.js} +1 -1
  341. package/dist/client/assets/{use-debounced-autosave-CTSPCSDa.js → use-debounced-autosave-Cj1eq42P.js} +1 -1
  342. package/dist/client/assets/{use-debounced-value-Bih1VwpO.js → use-debounced-value-CI6OWQk7.js} +1 -1
  343. package/dist/client/assets/{use-deco-credits-C7-mSVdn.js → use-deco-credits-CH6PNQ_v.js} +1 -1
  344. package/dist/client/assets/{use-decopilot-events-DZT948GO.js → use-decopilot-events-CsRo6_4Z.js} +1 -1
  345. package/dist/client/assets/{use-delete-block-CcKC_Ygp.js → use-delete-block-CgNbR5dQ.js} +1 -1
  346. package/dist/client/assets/{use-delete-connection-3J4cAqjZ.js → use-delete-connection-DKGnNBlw.js} +1 -1
  347. package/dist/client/assets/{use-deployment-admin-IWWegkPe.js → use-deployment-admin-DsggmftG.js} +1 -1
  348. package/dist/client/assets/{use-entitlements-DczHLBrX.js → use-entitlements-cKoK0gNm.js} +1 -1
  349. package/dist/client/assets/{use-fast-preview-draft-url-DQQlKJc9.js → use-fast-preview-draft-url-CVB9nGuj.js} +1 -1
  350. package/dist/client/assets/{use-file-configs-CRoKvN6g.js → use-file-configs-DvcuDR-z.js} +1 -1
  351. package/dist/client/assets/{use-id-selection-Bb7QXS3G.js → use-id-selection-BfYt0Wlx.js} +1 -1
  352. package/dist/client/assets/{use-in-settings-N8ExD21K.js → use-in-settings-DF-tVIoE.js} +1 -1
  353. package/dist/client/assets/{use-inbox-feed-Bcqc3dOm.js → use-inbox-feed-BBbvu_QZ.js} +1 -1
  354. package/dist/client/assets/{use-infinite-scroll-BGpcvUym.js → use-infinite-scroll-iq2V7hOe.js} +1 -1
  355. package/dist/client/assets/{use-join-requests-B56l6qYX.js → use-join-requests-yWpslxoF.js} +1 -1
  356. package/dist/client/assets/{use-main-panel-tabs-C6f1cnZR.js → use-main-panel-tabs-CkCUK4K2.js} +1 -1
  357. package/dist/client/assets/{use-mcp-auth-status-CmK1_0eP.js → use-mcp-auth-status-BjTyNUC6.js} +1 -1
  358. package/dist/client/assets/{use-mcp-client-DwG9qZWg.js → use-mcp-client-Bq8ol96W.js} +1 -1
  359. package/dist/client/assets/{use-mcp-prompts-D7T45oWG.js → use-mcp-prompts-B6Jw27dX.js} +1 -1
  360. package/dist/client/assets/{use-mcp-tools-DKzBuG5m.js → use-mcp-tools-BBonPTWo.js} +1 -1
  361. package/dist/client/assets/{use-mobile-0AteUciZ.js → use-mobile-dNUmCifC.js} +1 -1
  362. package/dist/client/assets/{use-move-blocks-CgGynxG8.js → use-move-blocks-DkefGETO.js} +1 -1
  363. package/dist/client/assets/{use-navigate-to-agent-C6-ZqKGw.js → use-navigate-to-agent-DeYqaaa3.js} +1 -1
  364. package/dist/client/assets/{use-never-published-RVkCjO67.js → use-never-published-V8ak3bds.js} +1 -1
  365. package/dist/client/assets/{use-org-fs-ZPuN9WFa.js → use-org-fs-qpGfwwQf.js} +1 -1
  366. package/dist/client/assets/{use-org-notice-pbZd-uTd.js → use-org-notice-DEvisT2l.js} +1 -1
  367. package/dist/client/assets/{use-org-repo-syncs-BrQetXCm.js → use-org-repo-syncs-CkMNVLVA.js} +1 -1
  368. package/dist/client/assets/{use-org-sso-D48jSMd3.js → use-org-sso-DiEFaIS8.js} +1 -1
  369. package/dist/client/assets/{use-organization-settings-BV6bWoGw.js → use-organization-settings-DmJ49Wll.js} +1 -1
  370. package/dist/client/assets/{use-panel-navigate-Du4Vt0nC.js → use-panel-navigate-BtwQP9g-.js} +1 -1
  371. package/dist/client/assets/{use-project-native-view-presence-zLdmW5cR.js → use-project-native-view-presence-DW2-U7IG.js} +1 -1
  372. package/dist/client/assets/{use-project-scope-V_yAQHXr.js → use-project-scope-B49l3tYT.js} +1 -1
  373. package/dist/client/assets/{use-recent-apps-Bb8uZJJ7.js → use-recent-apps-B62FmT2v.js} +1 -1
  374. package/dist/client/assets/{use-reports-diagnostic-Cd_5Wnxu.js → use-reports-diagnostic-DHnSBwPM.js} +1 -1
  375. package/dist/client/assets/{use-sandbox-events-D1U-YJTq.js → use-sandbox-events-CNUqntlP.js} +1 -1
  376. package/dist/client/assets/{use-secrets-CZuFBjjc.js → use-secrets-CexRiKHt.js} +1 -1
  377. package/dist/client/assets/{use-section-preview-base-BCev-1VC.js → use-section-preview-base-CqvFVrVu.js} +1 -1
  378. package/dist/client/assets/{use-sidebar-collapsed-Chi-pzOH.js → use-sidebar-collapsed-euA02TXK.js} +1 -1
  379. package/dist/client/assets/{use-tags-KY-h_MnI.js → use-tags-64LcPJtA.js} +1 -1
  380. package/dist/client/assets/{use-task-board-analytics-CUhloUfr.js → use-task-board-analytics-DUV56Jef.js} +1 -1
  381. package/dist/client/assets/{use-task-board-item-prs-DNGaq5jj.js → use-task-board-item-prs-BnskjWVg.js} +1 -1
  382. package/dist/client/assets/{use-task-board-items-B59GLlEu.js → use-task-board-items-DT4Yu9ci.js} +1 -1
  383. package/dist/client/assets/{use-task-board-prompts-C1giWqqF.js → use-task-board-prompts-DVYmomFM.js} +1 -1
  384. package/dist/client/assets/{use-task-metadata-BRvJ0j3n.js → use-task-metadata-BIJ7BpWb.js} +1 -1
  385. package/dist/client/assets/{use-thread-outputs-Bkey3xVy.js → use-thread-outputs-riYbRXeW.js} +1 -1
  386. package/dist/client/assets/{use-view-draft-kind-B_9utcmK.js → use-view-draft-kind-D6a-C5cc.js} +1 -1
  387. package/dist/client/assets/{use-voice-input-DlzypJCY.js → use-voice-input-DwLhccAL.js} +1 -1
  388. package/dist/client/assets/useInfiniteQuery-B7ay7aNP.js +1 -0
  389. package/dist/client/assets/{useQueries-Cviw5w4f.js → useQueries-v3dcLTuG.js} +1 -1
  390. package/dist/client/assets/useSuspenseInfiniteQuery-BuojYKnE.js +1 -0
  391. package/dist/client/assets/{users-BA4T3itE.js → users-v7Mpl1bC.js} +1 -1
  392. package/dist/client/assets/{utils-Cj5LhXnA.js → utils-DBfgNQF1.js} +1 -1
  393. package/dist/client/assets/{variant-calendar-DGQ-mjKB.js → variant-calendar-Bla8wTwx.js} +1 -1
  394. package/dist/client/assets/{variant-matcher-override-ChpI3nIf.js → variant-matcher-override-1y0OsCVS.js} +1 -1
  395. package/dist/client/assets/{view-header-LXBXxSn6.js → view-header-B7lYbePo.js} +1 -1
  396. package/dist/client/assets/{virtual-mcp-DLUwjTux.js → virtual-mcp-CrzgTGWz.js} +1 -1
  397. package/dist/client/assets/{watch-sse-pool-Ds--pRle.js → watch-sse-pool-wQgu9ix_.js} +1 -1
  398. package/dist/client/index.html +1 -1
  399. package/dist/server/server.js +3 -3
  400. package/package.json +1 -1
  401. package/dist/client/assets/agent-app-B1jAr8QK.js +0 -1
  402. package/dist/client/assets/agent-deck-BVwGHwBR.js +0 -1
  403. package/dist/client/assets/agent-experiments-COyu5Rcl.js +0 -1
  404. package/dist/client/assets/agent-file-DPDrxE_7.js +0 -1
  405. package/dist/client/assets/agent-library-file-CU1eOkzE.js +0 -1
  406. package/dist/client/assets/agent-library-q8_LANcn.js +0 -1
  407. package/dist/client/assets/agent-overview-BRnB7iWT.js +0 -1
  408. package/dist/client/assets/agent-settings-Cgvnel34.js +0 -1
  409. package/dist/client/assets/agent-site-editor-code-BqSvfO76.js +0 -2
  410. package/dist/client/assets/agent-site-editor-content-_-tYyjOD.js +0 -1
  411. package/dist/client/assets/agent-site-editor-preview-jH-WOsrh.js +0 -1
  412. package/dist/client/assets/agent-view-MbD56jPl.js +0 -1
  413. package/dist/client/assets/api-keys-3eW-YyQD.js +0 -1
  414. package/dist/client/assets/index-Ddy7VxaQ.js +0 -1
  415. package/dist/client/assets/library-BJvDSCmL.js +0 -1
  416. package/dist/client/assets/project-reports-COvDIlvF.js +0 -1
  417. package/dist/client/assets/project-tasks-CwFPqddm.js +0 -1
  418. package/dist/client/assets/record-editor-CDN43J2z.js +0 -1
  419. package/dist/client/assets/reports-Dz649Ru_.js +0 -1
  420. package/dist/client/assets/repositories-C5371f0z.js +0 -1
  421. package/dist/client/assets/route-BWi6FubP.js +0 -1
  422. package/dist/client/assets/settings-tab-zo16wZrm.js +0 -1
  423. package/dist/client/assets/site-editor-CDmLmfhI.js +0 -1
  424. package/dist/client/assets/tasks-D4yf2jWh.js +0 -1
  425. package/dist/client/assets/use-ask-in-chat-ChyvfgT2.js +0 -1
  426. package/dist/client/assets/use-blocks-v8-project-DcqGx_ow.js +0 -1
  427. package/dist/client/assets/use-blog-view-D_eJjHyi.js +0 -1
  428. package/dist/client/assets/useInfiniteQuery-CSP4ZKWe.js +0 -1
  429. package/dist/client/assets/useSuspenseInfiniteQuery-BuFOWpb6.js +0 -1
@@ -1 +1 @@
1
- import{c as M,b as Z,J as X,a as q,r as z,j as r,aq as re,n as R,a4 as oe,h as ie}from"./index-Biams685.js";import{ChatLayout as ne}from"./index-Ddy7VxaQ.js";import{b as se}from"./input-CeB8s6SZ.js";import{D as ae,a as me}from"./chat-context-oV4F8WQc.js";import{a as le}from"./use-organization-settings-BV6bWoGw.js";import{C as pe,u as ce,F as fe,R as ue,M as ge}from"./home-overview-BwE_ga8l.js";import{I as de}from"./icon-button-D7LkPwOF.js";import{T as he,a as V}from"./toggle-group-CVXqq62l.js";import{a as xe}from"./MessageCircle01-DboGgDYl.js";import{i as be}from"./sprints-C1z9xhcL.js";import{F as ye}from"./file-preview-CIfFSMEa.js";import{u as W,a as je}from"./use-org-fs-ZPuN9WFa.js";import{L as Se}from"./preview-dialog-BjWX-MRB.js";import{t as _e,r as we,s as De}from"./daily-pulse-Ds3sxReN.js";import{N as ke}from"./new-project-dialog-CZtNDQaD.js";import{P as ve}from"./projects-empty-state-i0nk7emw.js";import{b as Be}from"./project-index-CDh44wXq.js";import{u as Ce}from"./use-inbox-feed-Bcqc3dOm.js";import{b as Ne}from"./use-recent-apps-Bb8uZJJ7.js";import{s as Pe}from"./use-project-scope-V_yAQHXr.js";import{u as $e}from"./repository-binding-CWTr70tX.js";import"./use-mobile-0AteUciZ.js";import"./tooltip-CqtvIcRI.js";import"./index-D4_P19LT.js";import"./XClose-ChZfCB0S.js";import"./thread-button-Swmr63Yb.js";import"./use-sidebar-collapsed-Chi-pzOH.js";import"./sheet-DYP4kWtX.js";import"./use-chat-layout-state-3j9yfEqK.js";import"./use-panel-navigate-Du4Vt0nC.js";import"./thread-route-DmAvNVfz.js";import"./toolbar-icon-button-CrkoLL-g.js";import"./use-in-settings-N8ExD21K.js";import"./resizable-CFK0TmIM.js";import"./route-page-header-kK3KuiFw.js";import"./LayoutLeft-CAJfUJ1M.js";import"./use-current-view-DJKRVR3b.js";import"./usage-stats-LbQgUlFb.js";import"./utils-CVEq3hMx.js";import"./markdown-QFsCz8HO.js";import"./use-copy-D38lTrG-.js";import"./agent-icon-CmYgsdkA.js";import"./AlertCircle-BuSYYXoB.js";import"./UserCheck01-Dd1TarPv.js";import"./Tool01-CIG9g9AW.js";import"./ArrowUp-DsFRA_-F.js";import"./ArrowLeft-CjBgi68F.js";import"./ArrowRight-BSOOXYJl.js";import"./BookOpen01-Bg7SPIQl.js";import"./Globe04-DByxWswA.js";import"./CheckCircle-CwkAQPvk.js";import"./TrendUp01-BXVcz0CP.js";import"./ChevronDown-Dq3-i4Ph.js";import"./ChevronSelectorVertical-Ce-S0bwE.js";import"./ChevronUp-CsGl40rv.js";import"./UserSquare-Dx7SMn8a.js";import"./LinkBroken01-DlxIHBPg.js";import"./CreditCard01-DyQlc3BQ.js";import"./File02-B-McavGu.js";import"./SwitchHorizontal01-DRQUyYXI.js";import"./Eye-DgggGLP1.js";import"./Image01-C-12Ic3A.js";import"./Key01-O_7ZqdlA.js";import"./Minus-C8qbEmNR.js";import"./Monitor01-ByiCXP90.js";import"./Sun-DMx5ulRn.js";import"./Play-B1OcqbdZ.js";import"./Plus-DgAT_TKu.js";import"./SearchMd-CAmRp0LP.js";import"./ShoppingBag01-qRoCf3xL.js";import"./Trash01-BXZnDQzc.js";import"./Upload01-DkM_CW6J.js";import"./Users01-CrAD5jfs.js";import"./Zap-DzFzGOQ3.js";import"./task-board-DfE7ACDs.js";import"./schema-D-rmQGG7.js";import"./gateway-client-BKm00588.js";import"./form-CTAz1vX9.js";import"./label-B5koT7GN.js";import"./use-entitlements-DczHLBrX.js";import"./file-type-icon-MJit4Xxk.js";import"./use-view-draft-kind-B_9utcmK.js";import"./use-blog-view-D_eJjHyi.js";import"./thread-intent-B4ztyrl0.js";import"./use-mcp-client-DwG9qZWg.js";import"./auth-D_64eYdt.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Ds--pRle.js";import"./session-runtime-OZnQWVyx.js";import"./chat-draft-a_gkkGrw.js";import"./use-voice-input-DlzypJCY.js";import"./popover-DmvVZ360.js";import"./drawer-XYh0Y76X.js";import"./use-ai-providers-D-W7KWam.js";import"./index-BAqfesXo.js";import"./checkbox-D_sNmJye.js";import"./select-ewWPkQXd.js";import"./index-BdQq_4o_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./tabs-BqUC_RhT.js";import"./active-indicator-CCMhAsc_.js";import"./use-deco-credits-C7-mSVdn.js";import"./input-B76M4kKw.js";import"./suggestion-BW469wQ_.js";import"./use-mcp-prompts-D7T45oWG.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-TG7L-qMr.js";import"./plan-ladder-Bu6W70aQ.js";import"./add-connection-dialog-CzeB9jwm.js";import"./collection-search-Blzi887q.js";import"./extract-connection-data-BhyRah4W.js";import"./metadata-D72DunRR.js";import"./connection-DjW2F0Sw.js";import"./url-slug-BMcANwuf.js";import"./connection-card-D0xB4Qjx.js";import"./useInfiniteQuery-CSP4ZKWe.js";import"./infiniteQueryObserver-DviOrlp9.js";import"./connection-slug-BY-obzjO.js";import"./integration-icon-C76s6rje.js";import"./textarea-DDxBLXs2.js";import"./use-connection-D2uhV2tM.js";import"./schema-5sguLDZR.js";import"./connection-form-helpers-DFjr7AwA.js";import"./authenticate-and-persist-oauth-DLO3ZGCC.js";import"./mcp-oauth-o7ej4_IN.js";import"./mcp-oauth-BjLyRnBa.js";import"./collection-tabs-BfGk19Xn.js";import"./badge-CT_Bowl_.js";import"./use-infinite-scroll-BGpcvUym.js";import"./useSuspenseInfiniteQuery-BuFOWpb6.js";import"./use-task-board-items-B59GLlEu.js";import"./use-decopilot-events-DZT948GO.js";import"./connect-key-Cojwbl7P.js";import"./use-api-keys-BZkdV8_9.js";import"./chart-NHpn8rhZ.js";import"./CategoricalChart-Bk-NltJE.js";import"./index-BldUavnl.js";import"./tooltipContext-BIVvJQGQ.js";import"./CartesianChart-CTbh6Hly.js";import"./project-icon-VgM1tY99.js";import"./project-apps-rpgmmv_y.js";import"./config-R6R9Ongh.js";import"./task-key-D5Xi8Zpv.js";import"./task-route-YrsLsrlf.js";import"./ReferenceLine-BsFgkAaF.js";import"./utils-Cj5LhXnA.js";import"./editor-um5vPMjZ.js";import"./preview-content-CviEl4FA.js";import"./file-share-button-mrsJYdan.js";import"./use-navigate-to-agent-C6-ZqKGw.js";import"./repository-picker-CAtWKBbx.js";import"./github-icon-llpq0MNv.js";import"./use-debounced-value-Bih1VwpO.js";import"./new-project-store-DNJn4Jmh.js";const O="home",Q="brief";function ee(e){return`users/${e}/brief`}function Ee(e,t){return`${e}/${t}.html`}function Fe(e){const t=String(e.getFullYear()).padStart(4,"0"),i=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${t}-${i}-${s}`}function Ie(e){if(!e.endsWith(".html"))return null;const t=e.slice(0,-5);return be(t)?t:null}const Te=7;function te(e,t){return Math.round((Date.parse(`${t}T00:00:00Z`)-Date.parse(`${e}T00:00:00Z`))/864e5)}function Me(e,t){let i=null;for(const s of e){const a=Ie(s);if(!a||i&&a<=i.day)continue;const n=te(a,t);n>=0&&n<Te&&(i={name:s,day:a})}return i}const K=e=>e.slice(e.lastIndexOf("/")+1);function J(e,t,i,s){const a=i.filter(o=>o.kind==="file"),n=Me(a.map(o=>K(o.path)),s),l=n&&a.find(o=>K(o.path)===n.name);return n&&l?{scope:e,path:Ee(t,n.day),filename:n.name,size:l.size,day:n.day,ageDays:te(n.day,s)}:null}function Ae({userId:e,personal:t,org:i,today:s}){return[e?J("personal",ee(e),t,s):null,J("org",Q,i,s)].filter(a=>a!==null)}function Le(e,t){return t===0?e("home.dailyBrief.today"):t===1?e("home.dailyBrief.yesterday"):e("home.dailyBrief.daysAgo",{count:t})}function He(e,t){return new Date(`${t}T12:00:00Z`).toLocaleDateString(e,{weekday:"long",day:"numeric",month:"long",timeZone:"UTC"})}function Re(){const e=M.c(54),t=Z(),[i]=X(),{data:s}=q.useSession(),a=s?.user?.id,n=W(O,Q),l=a??"";let o;e[0]!==l?(o=ee(l),e[0]=l,e[1]=o):o=e[1];const D=!!a;let h;e[2]!==D?(h={enabled:D},e[2]=D,e[3]=h):h=e[3];const d=W(O,o,h),p=je(O),[k,v]=z.useState(null),[x,u]=z.useState(!1);let f,m,c,b,g,y,j,B,S,_;if(e[4]!==n.data||e[5]!==d.data||e[6]!==i||e[7]!==p||e[8]!==k||e[9]!==t||e[10]!==a){b=Symbol.for("react.early_return_sentinel");e:{const G=Ae({userId:a,personal:d.data??[],org:n.data??[],today:Fe(new Date)});if(m=G.find(T=>T.scope===k)??G[0],!m){b=null;break e}_="flex flex-col overflow-hidden surface";let A;e[21]!==t?(A=t("home.dailyBrief.title"),e[21]=t,e[22]=A):A=e[22];const U=r.jsxs("h2",{className:"flex min-w-0 items-baseline gap-2 text-[0.9rem] font-medium tracking-tight text-foreground",children:[A,r.jsxs("span",{className:"truncate text-xs font-normal text-muted-foreground",children:[Le(t,m.ageDays)," ·"," ",He(i.language,m.day)]})]}),Y=G.length>1&&r.jsxs(he,{type:"single",variant:"segmented",size:"sm",value:m.scope,onValueChange:T=>{(T==="personal"||T==="org")&&v(T)},children:[r.jsx(V,{value:"personal",className:"px-2.5 text-xs",children:t("home.dailyBrief.personal")}),r.jsx(V,{value:"org",className:"px-2.5 text-xs",children:t("home.dailyBrief.org")})]});let E;e[23]!==t?(E=t("home.dailyBrief.fullscreen"),e[23]=t,e[24]=E):E=e[24];let L,H;e[25]===Symbol.for("react.memo_cache_sentinel")?(L=()=>u(!0),H=r.jsx(xe,{size:14}),e[25]=L,e[26]=H):(L=e[25],H=e[26]);let F;e[27]!==E?(F=r.jsx(de,{label:E,onClick:L,children:H}),e[27]=E,e[28]=F):F=e[28];let I;e[29]!==Y||e[30]!==F?(I=r.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[Y,F]}),e[29]=Y,e[30]=F,e[31]=I):I=e[31],e[32]!==U||e[33]!==I?(c=r.jsxs("div",{className:"flex h-12 items-center justify-between gap-3 border-b border-border/70 px-5",children:[U,I]}),e[32]=U,e[33]=I,e[34]=c):c=e[34],S="h-[32rem]",f=ye,g=m.path,y=m.filename,j=m.size,B=p(m.path)}e[4]=n.data,e[5]=d.data,e[6]=i,e[7]=p,e[8]=k,e[9]=t,e[10]=a,e[11]=f,e[12]=m,e[13]=c,e[14]=b,e[15]=g,e[16]=y,e[17]=j,e[18]=B,e[19]=S,e[20]=_}else f=e[11],m=e[12],c=e[13],b=e[14],g=e[15],y=e[16],j=e[17],B=e[18],S=e[19],_=e[20];if(b!==Symbol.for("react.early_return_sentinel"))return b;let w;e[35]!==g||e[36]!==y||e[37]!==j||e[38]!==B?(w={key:g,filename:y,size:j,downloadUrl:B},e[35]=g,e[36]=y,e[37]=j,e[38]=B,e[39]=w):w=e[39];let C;e[40]!==f||e[41]!==w?(C=r.jsx(f,{file:w}),e[40]=f,e[41]=w,e[42]=C):C=e[42];let N;e[43]!==C||e[44]!==S?(N=r.jsx("div",{className:S,children:C}),e[43]=C,e[44]=S,e[45]=N):N=e[45];let $;e[46]!==m||e[47]!==x?($=x&&r.jsx(Se,{previewPath:`${O}/${m.path}`,onClose:()=>u(!1),showSeeInLibrary:!0}),e[46]=m,e[47]=x,e[48]=$):$=e[48];let P;return e[49]!==c||e[50]!==N||e[51]!==$||e[52]!==_?(P=r.jsxs("section",{className:_,children:[c,N,$]}),e[49]=c,e[50]=N,e[51]=$,e[52]=_,e[53]=P):P=e[53],P}function Oe(e){return e<12?"morning":e<18?"afternoon":"evening"}function ze(e){const t=(e??"").trim().split(/\s+/)[0];return t||null}function Ge(e,t){return t.toLocaleDateString(e,{weekday:"long",day:"numeric",month:"long"})}function Ue(e){return e==="morning"?"overnight":"today"}function Ye(e,t){const i=new Date(t);return i.setHours(0,0,0,0),e==="morning"&&i.setHours(-6),i.getTime()}const Ze={morning:{named:"home.orgHome.greetingMorning",bare:"home.orgHome.greetingMorningBare"},afternoon:{named:"home.orgHome.greetingAfternoon",bare:"home.orgHome.greetingAfternoonBare"},evening:{named:"home.orgHome.greetingEvening",bare:"home.orgHome.greetingEveningBare"}};function qe(){const e=M.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx("div",{className:"flex min-h-64 items-center justify-center",children:r.jsx(ie,{className:"size-5 text-muted-foreground"})}),e[0]=t):t=e[0],t}function Ve(e,t,i,s,a){const n=Ue(i)==="overnight",l=[];if(t>0){const o=e(t===1?"home.brief.changeOne":"home.brief.changeMany",{count:t});l.push(e(n?"home.brief.overnightShipped":"home.brief.todayShipped",{changes:o}))}else s===0&&l.push(e(a>0?"home.brief.working":n?"home.brief.quietNight":"home.brief.quietDay"));return l.push(s===0?e("home.brief.waitingNone"):e(s===1?"home.brief.waitingOne":"home.brief.waitingMany",{count:s})),l.join(" ")}function We(e){const t=M.c(41),{canManageProjects:i,eyebrow:s,greeting:a,slot:n}=e,l=Z(),{org:o}=oe(),{data:D}=q.useSession();let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h={pageSize:1e3},t[0]=h):h=t[0];const d=$e(h),p=ce(),k=Ce(),{recent:v}=Ne(o.slug);let x,u;if(t[1]!==d||t[2]!==i||t[3]!==o.id){u=Symbol.for("react.early_return_sentinel");e:{let N;t[6]!==o.id?(N=P=>P.id!==o.id,t[6]=o.id,t[7]=N):N=t[7];const $=Pe(d).filter(N);if($.length===0){let P;t[8]!==i?(P=r.jsx(ve,{canCreate:i}),t[8]=i,t[9]=P):P=t[9],u=P;break e}x=Be($)}t[1]=d,t[2]=i,t[3]=o.id,t[4]=x,t[5]=u}else x=t[4],u=t[5];if(u!==Symbol.for("react.early_return_sentinel"))return u;const f=x;let m,c;t[10]!==D?.user?.id||t[11]!==n||t[12]!==l||t[13]!==p?(c=_e(p,D?.user?.id),m=Ve(l,De(p,Ye(n,new Date)),n,c.length,we(p).length),t[10]=D?.user?.id,t[11]=n,t[12]=l,t[13]=p,t[14]=m,t[15]=c):(m=t[14],c=t[15]);const b=m;let g;t[16]!==s?(g=r.jsx("span",{className:"text-xs text-muted-foreground",children:s}),t[16]=s,t[17]=g):g=t[17];let y;t[18]!==b||t[19]!==a?(y=r.jsxs("h1",{className:"max-w-[40ch] text-2xl font-medium text-balance text-foreground",children:[a," ",b]}),t[18]=b,t[19]=a,t[20]=y):y=t[20];let j;t[21]!==g||t[22]!==y?(j=r.jsxs("div",{className:"flex flex-col gap-1",children:[g,y]}),t[21]=g,t[22]=y,t[23]=j):j=t[23];let B;t[24]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(Re,{}),t[24]=B):B=t[24];let S;t[25]!==k.updates||t[26]!==f||t[27]!==o.slug||t[28]!==p||t[29]!==c?(S=r.jsx(fe,{waiting:c,tasks:p,mentions:k.updates,index:f,orgSlug:o.slug}),t[25]=k.updates,t[26]=f,t[27]=o.slug,t[28]=p,t[29]=c,t[30]=S):S=t[30];let _;t[31]!==o.slug||t[32]!==v?(_=r.jsx(ue,{recent:v,orgSlug:o.slug}),t[31]=o.slug,t[32]=v,t[33]=_):_=t[33];let w;t[34]!==p?(w=r.jsx(ge,{tasks:p}),t[34]=p,t[35]=w):w=t[35];let C;return t[36]!==_||t[37]!==w||t[38]!==j||t[39]!==S?(C=r.jsxs("div",{className:"flex flex-col gap-8",children:[j,B,S,_,w]}),t[36]=_,t[37]=w,t[38]=j,t[39]=S,t[40]=C):C=t[40],C}function Ke(){const e=M.c(25),t=Z(),[i]=X(),s=le("home_task_intake_enabled"),{data:a}=q.useSession(),{granted:n}=re("agents:manage");let l,o,D;if(e[0]!==i.language||e[1]!==a?.user?.name||e[2]!==t){const c=new Date,b=ze(a?.user?.name);o=Oe(c.getHours());const g=Ze[o];l=Ge(i.language,c),D=b?t(g.named,{name:b}):t(g.bare),e[0]=i.language,e[1]=a?.user?.name,e[2]=t,e[3]=l,e[4]=o,e[5]=D}else l=e[3],o=e[4],D=e[5];const h=D;let d;e[6]!==n?(d=n&&r.jsx(ke,{source:"org_home_header"}),e[6]=n,e[7]=d):d=e[7];let p;e[8]!==d?(p=r.jsx(R.Actions,{children:d}),e[8]=d,e[9]=p):p=e[9];let k;e[10]===Symbol.for("react.memo_cache_sentinel")?(k=r.jsx(pe,{}),e[10]=k):k=e[10];let v;e[11]!==s?(v=s&&r.jsx(z.Suspense,{fallback:null,children:r.jsx(ae,{children:r.jsx(me,{children:r.jsx(se,{homeTaskComposer:!0})})})}),e[11]=s,e[12]=v):v=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(qe,{}),e[13]=x):x=e[13];let u;e[14]!==n||e[15]!==l||e[16]!==h||e[17]!==o?(u=r.jsx(z.Suspense,{fallback:x,children:r.jsx(We,{canManageProjects:n,eyebrow:l,greeting:h,slot:o})}),e[14]=n,e[15]=l,e[16]=h,e[17]=o,e[18]=u):u=e[18];let f;e[19]!==v||e[20]!==u?(f=r.jsx(R.Content,{children:r.jsxs(R.Container,{width:"wide",className:"flex min-h-full flex-col gap-10",children:[k,v,u]})}),e[19]=v,e[20]=u,e[21]=f):f=e[21];let m;return e[22]!==p||e[23]!==f?(m=r.jsxs(R,{children:[p,f]}),e[22]=p,e[23]=f,e[24]=m):m=e[24],m}function Zo(){const e=M.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(ne.Content,{children:r.jsx(Ke,{})}),e[0]=t):t=e[0],t}export{Zo as default};
1
+ import{c as M,b as Z,J as X,a as q,r as z,j as r,aq as re,n as R,a4 as oe,h as ie}from"./index-CnlrqsCd.js";import{ChatLayout as ne}from"./index-BT86t2zN.js";import{b as se}from"./input-CzlhHu3g.js";import{D as ae,a as me}from"./chat-context-Cdr2Tzco.js";import{a as le}from"./use-organization-settings-DmJ49Wll.js";import{C as pe,u as ce,F as fe,R as ue,M as ge}from"./home-overview-Dks5WIsU.js";import{I as de}from"./icon-button-DhhoBQY7.js";import{T as he,a as V}from"./toggle-group-DNENle-P.js";import{a as xe}from"./MessageCircle01-dCZEdQhF.js";import{i as be}from"./sprints-C1z9xhcL.js";import{F as ye}from"./file-preview-CB_q0R1c.js";import{u as W,a as je}from"./use-org-fs-qpGfwwQf.js";import{L as Se}from"./preview-dialog-DZ2IwkzI.js";import{t as _e,r as we,s as De}from"./daily-pulse-eHpvhv3c.js";import{N as ke}from"./new-project-dialog-DqENGapI.js";import{P as ve}from"./projects-empty-state-CqVfdsjs.js";import{b as Be}from"./project-index-D_813h_x.js";import{u as Ce}from"./use-inbox-feed-BBbvu_QZ.js";import{b as Ne}from"./use-recent-apps-B62FmT2v.js";import{s as Pe}from"./use-project-scope-B49l3tYT.js";import{u as $e}from"./repository-binding-B-NGFlA8.js";import"./use-mobile-dNUmCifC.js";import"./tooltip-iXXWa3VG.js";import"./index-DEg1eCWz.js";import"./XClose-BAaBoHXT.js";import"./thread-button-D5DY5gNU.js";import"./use-sidebar-collapsed-euA02TXK.js";import"./sheet-p2Ousfn8.js";import"./use-chat-layout-state-C8KgaHCk.js";import"./use-panel-navigate-BtwQP9g-.js";import"./thread-route-BizqFXgE.js";import"./toolbar-icon-button-BzpP1rEG.js";import"./use-in-settings-DF-tVIoE.js";import"./resizable-BlRMDdrh.js";import"./route-page-header-X-mAmINr.js";import"./LayoutLeft-C8ndIALE.js";import"./use-current-view-DbaDobC4.js";import"./usage-stats-Cpv39cmk.js";import"./utils-CVEq3hMx.js";import"./markdown-DPh7H1MH.js";import"./use-copy-jVRNS72q.js";import"./agent-icon-Da3tHBMv.js";import"./AlertCircle-BckhzGo9.js";import"./UserCheck01-lNPupOG8.js";import"./Tool01-CtY1k5Dx.js";import"./ArrowUp-jwPYnWqs.js";import"./ArrowLeft-DjFnycHz.js";import"./ArrowRight-DdCk_HCk.js";import"./BookOpen01-B2ISsdx6.js";import"./Globe04-C8iXbhsR.js";import"./CheckCircle-p76CoLTf.js";import"./TrendUp01-DAuvMm77.js";import"./ChevronDown-Cf6eg1Aj.js";import"./ChevronSelectorVertical-ies3TLws.js";import"./ChevronUp-Yoxwp_-j.js";import"./UserSquare-xrIyO385.js";import"./LinkBroken01-WNn1RqQL.js";import"./CreditCard01-DOIepajb.js";import"./File02-B4TAUApJ.js";import"./SwitchHorizontal01-DB7Iju_C.js";import"./Eye-B-zZzOpR.js";import"./Image01-BKS8Yp4v.js";import"./Key01-D3gaP9qK.js";import"./Minus-BGxu6wTp.js";import"./Monitor01-CrmQoLWb.js";import"./Sun-CnYsG6YA.js";import"./Play-B1JyKt5J.js";import"./Plus-nOMLt4Yk.js";import"./SearchMd-BQl6TEDK.js";import"./ShoppingBag01-DPoH0u5v.js";import"./Trash01-DLwaS_5I.js";import"./Upload01-D8Llo-n7.js";import"./Users01-B6_L_w2p.js";import"./Zap-DV5_FZrE.js";import"./task-board-B47Oba0a.js";import"./schema-DCd8UMh8.js";import"./gateway-client-BwxdQL6w.js";import"./form-9ojGZv11.js";import"./label-D9MCble5.js";import"./use-entitlements-cKoK0gNm.js";import"./file-type-icon-BAAuwpOK.js";import"./use-view-draft-kind-D6a-C5cc.js";import"./use-blog-view-CjVBpsro.js";import"./thread-intent-CMPSad7_.js";import"./use-mcp-client-Bq8ol96W.js";import"./auth-CNYHKCFg.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-wQgu9ix_.js";import"./session-runtime-CPmKckVH.js";import"./chat-draft--xvDfEkY.js";import"./use-voice-input-DwLhccAL.js";import"./popover-BehWQy5s.js";import"./drawer-CRP1WiCk.js";import"./use-ai-providers-DAAK1LJH.js";import"./index-xBV0t4Yq.js";import"./checkbox-ClBCJgC4.js";import"./select-P0a7iEwt.js";import"./index-BdQq_4o_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./tabs-BB9AjDp8.js";import"./active-indicator-CCMhAsc_.js";import"./use-deco-credits-CH6PNQ_v.js";import"./input-BzVp3-J0.js";import"./suggestion-vwX5VgUe.js";import"./use-mcp-prompts-B6Jw27dX.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-DKi0OK9Z.js";import"./plan-ladder-heY6MciQ.js";import"./add-connection-dialog-HNNoGhQz.js";import"./collection-search-CW9SJXAE.js";import"./extract-connection-data-C26a1rUY.js";import"./metadata-D72DunRR.js";import"./connection-BNwNEPn2.js";import"./url-slug-Dl2YaRDk.js";import"./connection-card-Bz0SPOqT.js";import"./useInfiniteQuery-B7ay7aNP.js";import"./infiniteQueryObserver-d6eMImhi.js";import"./connection-slug-mPfdw4iI.js";import"./integration-icon-XdnHhG6r.js";import"./textarea-BfYW4m9c.js";import"./use-connection-CyhiAuyN.js";import"./schema-BBpKzKno.js";import"./connection-form-helpers-Bw7x5pKf.js";import"./authenticate-and-persist-oauth-D450Ij-p.js";import"./mcp-oauth-D_ZnYWZH.js";import"./mcp-oauth-XpGc4vgb.js";import"./collection-tabs-Y93FdN1l.js";import"./badge-loE1b0Vr.js";import"./use-infinite-scroll-iq2V7hOe.js";import"./useSuspenseInfiniteQuery-BuojYKnE.js";import"./use-task-board-items-DT4Yu9ci.js";import"./use-decopilot-events-CsRo6_4Z.js";import"./connect-key-CeYjF2jt.js";import"./use-api-keys-DYWSrleO.js";import"./chart-BvG6MEBA.js";import"./CategoricalChart-Di2gWvs8.js";import"./index-CQwlvIdC.js";import"./tooltipContext-C8y_VFmL.js";import"./CartesianChart-2VySs-qY.js";import"./project-icon-DsXJkCkm.js";import"./project-apps-BcbysZgz.js";import"./config-CheVupom.js";import"./task-key-CzMIIXuS.js";import"./task-route-DnF8qwEX.js";import"./ReferenceLine-CVaZ4J9I.js";import"./utils-DBfgNQF1.js";import"./editor-Ca65jgGo.js";import"./preview-content-CE2XWmAb.js";import"./file-share-button-DdNZkOgu.js";import"./use-navigate-to-agent-DeYqaaa3.js";import"./repository-picker-gzTJe9Gv.js";import"./github-icon-Bx9ss8sA.js";import"./use-debounced-value-CI6OWQk7.js";import"./new-project-store-BCRxr-mc.js";const O="home",Q="brief";function ee(e){return`users/${e}/brief`}function Ee(e,t){return`${e}/${t}.html`}function Fe(e){const t=String(e.getFullYear()).padStart(4,"0"),i=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${t}-${i}-${s}`}function Ie(e){if(!e.endsWith(".html"))return null;const t=e.slice(0,-5);return be(t)?t:null}const Te=7;function te(e,t){return Math.round((Date.parse(`${t}T00:00:00Z`)-Date.parse(`${e}T00:00:00Z`))/864e5)}function Me(e,t){let i=null;for(const s of e){const a=Ie(s);if(!a||i&&a<=i.day)continue;const n=te(a,t);n>=0&&n<Te&&(i={name:s,day:a})}return i}const K=e=>e.slice(e.lastIndexOf("/")+1);function J(e,t,i,s){const a=i.filter(o=>o.kind==="file"),n=Me(a.map(o=>K(o.path)),s),l=n&&a.find(o=>K(o.path)===n.name);return n&&l?{scope:e,path:Ee(t,n.day),filename:n.name,size:l.size,day:n.day,ageDays:te(n.day,s)}:null}function Ae({userId:e,personal:t,org:i,today:s}){return[e?J("personal",ee(e),t,s):null,J("org",Q,i,s)].filter(a=>a!==null)}function Le(e,t){return t===0?e("home.dailyBrief.today"):t===1?e("home.dailyBrief.yesterday"):e("home.dailyBrief.daysAgo",{count:t})}function He(e,t){return new Date(`${t}T12:00:00Z`).toLocaleDateString(e,{weekday:"long",day:"numeric",month:"long",timeZone:"UTC"})}function Re(){const e=M.c(54),t=Z(),[i]=X(),{data:s}=q.useSession(),a=s?.user?.id,n=W(O,Q),l=a??"";let o;e[0]!==l?(o=ee(l),e[0]=l,e[1]=o):o=e[1];const D=!!a;let h;e[2]!==D?(h={enabled:D},e[2]=D,e[3]=h):h=e[3];const d=W(O,o,h),p=je(O),[k,v]=z.useState(null),[x,u]=z.useState(!1);let f,m,c,b,g,y,j,B,S,_;if(e[4]!==n.data||e[5]!==d.data||e[6]!==i||e[7]!==p||e[8]!==k||e[9]!==t||e[10]!==a){b=Symbol.for("react.early_return_sentinel");e:{const G=Ae({userId:a,personal:d.data??[],org:n.data??[],today:Fe(new Date)});if(m=G.find(T=>T.scope===k)??G[0],!m){b=null;break e}_="flex flex-col overflow-hidden surface";let A;e[21]!==t?(A=t("home.dailyBrief.title"),e[21]=t,e[22]=A):A=e[22];const U=r.jsxs("h2",{className:"flex min-w-0 items-baseline gap-2 text-[0.9rem] font-medium tracking-tight text-foreground",children:[A,r.jsxs("span",{className:"truncate text-xs font-normal text-muted-foreground",children:[Le(t,m.ageDays)," ·"," ",He(i.language,m.day)]})]}),Y=G.length>1&&r.jsxs(he,{type:"single",variant:"segmented",size:"sm",value:m.scope,onValueChange:T=>{(T==="personal"||T==="org")&&v(T)},children:[r.jsx(V,{value:"personal",className:"px-2.5 text-xs",children:t("home.dailyBrief.personal")}),r.jsx(V,{value:"org",className:"px-2.5 text-xs",children:t("home.dailyBrief.org")})]});let E;e[23]!==t?(E=t("home.dailyBrief.fullscreen"),e[23]=t,e[24]=E):E=e[24];let L,H;e[25]===Symbol.for("react.memo_cache_sentinel")?(L=()=>u(!0),H=r.jsx(xe,{size:14}),e[25]=L,e[26]=H):(L=e[25],H=e[26]);let F;e[27]!==E?(F=r.jsx(de,{label:E,onClick:L,children:H}),e[27]=E,e[28]=F):F=e[28];let I;e[29]!==Y||e[30]!==F?(I=r.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[Y,F]}),e[29]=Y,e[30]=F,e[31]=I):I=e[31],e[32]!==U||e[33]!==I?(c=r.jsxs("div",{className:"flex h-12 items-center justify-between gap-3 border-b border-border/70 px-5",children:[U,I]}),e[32]=U,e[33]=I,e[34]=c):c=e[34],S="h-[32rem]",f=ye,g=m.path,y=m.filename,j=m.size,B=p(m.path)}e[4]=n.data,e[5]=d.data,e[6]=i,e[7]=p,e[8]=k,e[9]=t,e[10]=a,e[11]=f,e[12]=m,e[13]=c,e[14]=b,e[15]=g,e[16]=y,e[17]=j,e[18]=B,e[19]=S,e[20]=_}else f=e[11],m=e[12],c=e[13],b=e[14],g=e[15],y=e[16],j=e[17],B=e[18],S=e[19],_=e[20];if(b!==Symbol.for("react.early_return_sentinel"))return b;let w;e[35]!==g||e[36]!==y||e[37]!==j||e[38]!==B?(w={key:g,filename:y,size:j,downloadUrl:B},e[35]=g,e[36]=y,e[37]=j,e[38]=B,e[39]=w):w=e[39];let C;e[40]!==f||e[41]!==w?(C=r.jsx(f,{file:w}),e[40]=f,e[41]=w,e[42]=C):C=e[42];let N;e[43]!==C||e[44]!==S?(N=r.jsx("div",{className:S,children:C}),e[43]=C,e[44]=S,e[45]=N):N=e[45];let $;e[46]!==m||e[47]!==x?($=x&&r.jsx(Se,{previewPath:`${O}/${m.path}`,onClose:()=>u(!1),showSeeInLibrary:!0}),e[46]=m,e[47]=x,e[48]=$):$=e[48];let P;return e[49]!==c||e[50]!==N||e[51]!==$||e[52]!==_?(P=r.jsxs("section",{className:_,children:[c,N,$]}),e[49]=c,e[50]=N,e[51]=$,e[52]=_,e[53]=P):P=e[53],P}function Oe(e){return e<12?"morning":e<18?"afternoon":"evening"}function ze(e){const t=(e??"").trim().split(/\s+/)[0];return t||null}function Ge(e,t){return t.toLocaleDateString(e,{weekday:"long",day:"numeric",month:"long"})}function Ue(e){return e==="morning"?"overnight":"today"}function Ye(e,t){const i=new Date(t);return i.setHours(0,0,0,0),e==="morning"&&i.setHours(-6),i.getTime()}const Ze={morning:{named:"home.orgHome.greetingMorning",bare:"home.orgHome.greetingMorningBare"},afternoon:{named:"home.orgHome.greetingAfternoon",bare:"home.orgHome.greetingAfternoonBare"},evening:{named:"home.orgHome.greetingEvening",bare:"home.orgHome.greetingEveningBare"}};function qe(){const e=M.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx("div",{className:"flex min-h-64 items-center justify-center",children:r.jsx(ie,{className:"size-5 text-muted-foreground"})}),e[0]=t):t=e[0],t}function Ve(e,t,i,s,a){const n=Ue(i)==="overnight",l=[];if(t>0){const o=e(t===1?"home.brief.changeOne":"home.brief.changeMany",{count:t});l.push(e(n?"home.brief.overnightShipped":"home.brief.todayShipped",{changes:o}))}else s===0&&l.push(e(a>0?"home.brief.working":n?"home.brief.quietNight":"home.brief.quietDay"));return l.push(s===0?e("home.brief.waitingNone"):e(s===1?"home.brief.waitingOne":"home.brief.waitingMany",{count:s})),l.join(" ")}function We(e){const t=M.c(41),{canManageProjects:i,eyebrow:s,greeting:a,slot:n}=e,l=Z(),{org:o}=oe(),{data:D}=q.useSession();let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h={pageSize:1e3},t[0]=h):h=t[0];const d=$e(h),p=ce(),k=Ce(),{recent:v}=Ne(o.slug);let x,u;if(t[1]!==d||t[2]!==i||t[3]!==o.id){u=Symbol.for("react.early_return_sentinel");e:{let N;t[6]!==o.id?(N=P=>P.id!==o.id,t[6]=o.id,t[7]=N):N=t[7];const $=Pe(d).filter(N);if($.length===0){let P;t[8]!==i?(P=r.jsx(ve,{canCreate:i}),t[8]=i,t[9]=P):P=t[9],u=P;break e}x=Be($)}t[1]=d,t[2]=i,t[3]=o.id,t[4]=x,t[5]=u}else x=t[4],u=t[5];if(u!==Symbol.for("react.early_return_sentinel"))return u;const f=x;let m,c;t[10]!==D?.user?.id||t[11]!==n||t[12]!==l||t[13]!==p?(c=_e(p,D?.user?.id),m=Ve(l,De(p,Ye(n,new Date)),n,c.length,we(p).length),t[10]=D?.user?.id,t[11]=n,t[12]=l,t[13]=p,t[14]=m,t[15]=c):(m=t[14],c=t[15]);const b=m;let g;t[16]!==s?(g=r.jsx("span",{className:"text-xs text-muted-foreground",children:s}),t[16]=s,t[17]=g):g=t[17];let y;t[18]!==b||t[19]!==a?(y=r.jsxs("h1",{className:"max-w-[40ch] text-2xl font-medium text-balance text-foreground",children:[a," ",b]}),t[18]=b,t[19]=a,t[20]=y):y=t[20];let j;t[21]!==g||t[22]!==y?(j=r.jsxs("div",{className:"flex flex-col gap-1",children:[g,y]}),t[21]=g,t[22]=y,t[23]=j):j=t[23];let B;t[24]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(Re,{}),t[24]=B):B=t[24];let S;t[25]!==k.updates||t[26]!==f||t[27]!==o.slug||t[28]!==p||t[29]!==c?(S=r.jsx(fe,{waiting:c,tasks:p,mentions:k.updates,index:f,orgSlug:o.slug}),t[25]=k.updates,t[26]=f,t[27]=o.slug,t[28]=p,t[29]=c,t[30]=S):S=t[30];let _;t[31]!==o.slug||t[32]!==v?(_=r.jsx(ue,{recent:v,orgSlug:o.slug}),t[31]=o.slug,t[32]=v,t[33]=_):_=t[33];let w;t[34]!==p?(w=r.jsx(ge,{tasks:p}),t[34]=p,t[35]=w):w=t[35];let C;return t[36]!==_||t[37]!==w||t[38]!==j||t[39]!==S?(C=r.jsxs("div",{className:"flex flex-col gap-8",children:[j,B,S,_,w]}),t[36]=_,t[37]=w,t[38]=j,t[39]=S,t[40]=C):C=t[40],C}function Ke(){const e=M.c(25),t=Z(),[i]=X(),s=le("home_task_intake_enabled"),{data:a}=q.useSession(),{granted:n}=re("agents:manage");let l,o,D;if(e[0]!==i.language||e[1]!==a?.user?.name||e[2]!==t){const c=new Date,b=ze(a?.user?.name);o=Oe(c.getHours());const g=Ze[o];l=Ge(i.language,c),D=b?t(g.named,{name:b}):t(g.bare),e[0]=i.language,e[1]=a?.user?.name,e[2]=t,e[3]=l,e[4]=o,e[5]=D}else l=e[3],o=e[4],D=e[5];const h=D;let d;e[6]!==n?(d=n&&r.jsx(ke,{source:"org_home_header"}),e[6]=n,e[7]=d):d=e[7];let p;e[8]!==d?(p=r.jsx(R.Actions,{children:d}),e[8]=d,e[9]=p):p=e[9];let k;e[10]===Symbol.for("react.memo_cache_sentinel")?(k=r.jsx(pe,{}),e[10]=k):k=e[10];let v;e[11]!==s?(v=s&&r.jsx(z.Suspense,{fallback:null,children:r.jsx(ae,{children:r.jsx(me,{children:r.jsx(se,{homeTaskComposer:!0})})})}),e[11]=s,e[12]=v):v=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(qe,{}),e[13]=x):x=e[13];let u;e[14]!==n||e[15]!==l||e[16]!==h||e[17]!==o?(u=r.jsx(z.Suspense,{fallback:x,children:r.jsx(We,{canManageProjects:n,eyebrow:l,greeting:h,slot:o})}),e[14]=n,e[15]=l,e[16]=h,e[17]=o,e[18]=u):u=e[18];let f;e[19]!==v||e[20]!==u?(f=r.jsx(R.Content,{children:r.jsxs(R.Container,{width:"wide",className:"flex min-h-full flex-col gap-10",children:[k,v,u]})}),e[19]=v,e[20]=u,e[21]=f):f=e[21];let m;return e[22]!==p||e[23]!==f?(m=r.jsxs(R,{children:[p,f]}),e[22]=p,e[23]=f,e[24]=m):m=e[24],m}function Zo(){const e=M.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(ne.Content,{children:r.jsx(Ke,{})}),e[0]=t):t=e[0],t}export{Zo as default};
@@ -1 +1 @@
1
- import{c as A,b as B,a4 as Q,aq as ne,j as o,m as K,L as P,E as V,ak as oe,V as re,h as ae,ae as ie,$ as le,o as ce}from"./index-Biams685.js";import{i as Z}from"./ArrowRight-BSOOXYJl.js";import{C as me,a as fe,b as de,c as ue}from"./connect-key-Cojwbl7P.js";import{u as xe}from"./use-api-keys-BZkdV8_9.js";import{u as pe,t as ge}from"./use-task-board-items-B59GLlEu.js";import{i as he}from"./AlertCircle-BuSYYXoB.js";import{i as H}from"./CheckCircle-CwkAQPvk.js";import{s as je}from"./Eye-DgggGLP1.js";import{u as ve,A as ke}from"./agent-icon-CmYgsdkA.js";import{C as be,a as we,B as ye,b as Ne,c as _e}from"./chart-NHpn8rhZ.js";import{P as Se}from"./project-icon-VgM1tY99.js";import{T as X,P as Ce,A as Ie}from"./project-apps-rpgmmv_y.js";import{a as Te}from"./config-R6R9Ongh.js";import{t as ze}from"./task-route-YrsLsrlf.js";import{p as $e}from"./project-index-CDh44wXq.js";import{a as Re,b as Ee,c as Ae,d as Me,R as F,f as G}from"./daily-pulse-Ds3sxReN.js";import{R as De}from"./ReferenceLine-BsFgkAaF.js";import{C as Le,X as Be,Y as Ke}from"./CartesianChart-CTbh6Hly.js";const ee=[{name:"Claude",Icon:me,size:[11,14],bg:"#D97757",fg:"#fff"},{name:"Cursor",Icon:fe,size:[10,12],bg:"#000",fg:"#fff"},{name:"Codex",Icon:de,size:[10,12],bg:"#4F46E5",fg:"#fff"}];function wt(t){const e=A.c(22),{dense:a}=t,s=a===void 0?!0:a,l=B(),{org:n}=Q();let i;e[0]!==n.slug?(i={org:n.slug},e[0]=n.slug,e[1]=i):i=e[1];const c=s?"h-7 shrink-0 gap-x-2 whitespace-nowrap pl-3 pr-1.5":"flex-wrap gap-x-3 gap-y-2 py-1.5 pl-4 pr-2.5";let r;e[2]!==c?(r=K("group hidden max-w-full @3xl/panel-header:inline-flex items-center justify-center rounded-full bg-card text-sm shadow-edge transition-colors hover:bg-accent",c),e[2]=c,e[3]=r):r=e[3];let m;e[4]!==l?(m=l("home.orgHome.connectPill"),e[4]=l,e[5]=m):m=e[5];let d;e[6]!==m?(d=o.jsx("span",{className:"font-medium text-foreground",children:m}),e[6]=m,e[7]=d):d=e[7];let f;e[8]!==s?(f=ee.map(j=>{const{name:v,Icon:z,size:_,bg:S,fg:$}=j;return o.jsx("span",{title:v,className:K("flex items-center justify-center rounded-full",s?"size-5":"size-6"),style:{backgroundColor:S,color:$},children:o.jsx(z,{size:s?_[0]:_[1]})},v)}),e[8]=s,e[9]=f):f=e[9];let u;e[10]!==f?(u=o.jsx("span",{"aria-hidden":"true",className:"flex items-center gap-1",children:f}),e[10]=f,e[11]=u):u=e[11];const x=s?"size-3":"size-3.5";let p;e[12]!==x?(p=K(x,"shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5"),e[12]=x,e[13]=p):p=e[13];let g;e[14]!==p?(g=o.jsx(Z,{className:p}),e[14]=p,e[15]=g):g=e[15];let h;return e[16]!==g||e[17]!==i||e[18]!==r||e[19]!==d||e[20]!==u?(h=o.jsxs(P,{to:"/$org/settings/connect",params:i,onClick:Oe,className:r,children:[d,u,g]}),e[16]=g,e[17]=i,e[18]=r,e[19]=d,e[20]=u,e[21]=h):h=e[21],h}function Oe(){return V("connect_clients_opened",{source:"org_home"})}function yt(){const t=A.c(13),e=B(),{org:a}=Q(),{granted:s}=ne("api-keys:manage");let l;t[0]!==s?(l={enabled:s},t[0]=s,t[1]=l):l=t[1];const{data:n}=xe(l);if(s&&!n||n?.some(Fe))return null;let i;t[2]!==a.slug?(i={org:a.slug},t[2]=a.slug,t[3]=i):i=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("span",{"aria-hidden":"true",className:"flex items-center gap-1",children:ee.map(Ye)}),t[4]=c):c=t[4];let r;t[5]!==e?(r=e("home.orgHome.connectPill"),t[5]=e,t[6]=r):r=t[6];let m;t[7]!==r?(m=o.jsx("span",{className:"font-medium text-foreground",children:r}),t[7]=r,t[8]=m):m=t[8];let d;t[9]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(Z,{className:"ml-auto size-3.5 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5"}),t[9]=d):d=t[9];let f;return t[10]!==i||t[11]!==m?(f=o.jsxs(P,{to:"/$org/settings/connect",params:i,onClick:Pe,className:"group hidden items-center gap-3 rounded-xl bg-card px-4 py-2.5 text-sm shadow-edge transition-colors hover:bg-accent md:flex",children:[c,m,d]}),t[10]=i,t[11]=m,t[12]=f):f=t[12],f}function Ye(t){const{name:e,Icon:a,size:s,bg:l,fg:n}=t;return o.jsx("span",{className:"flex size-5 items-center justify-center rounded-full",style:{backgroundColor:l,color:n},children:o.jsx(a,{size:s[0]})},e)}function Pe(){return V("connect_clients_opened",{source:"org_home"})}function Fe(t){return t.name.startsWith(ue)}function Nt(){const t=A.c(3),{locator:e}=Q(),a=oe();pe();let s;t[0]!==e||t[1]!==a?(s=ge(e,a),t[0]=e,t[1]=a,t[2]=s):s=t[2];const{data:l}=re(s);return l.items}function _t(t){const e=A.c(16),{recent:a,orgSlug:s}=t,l=B();let n,i,c,r;if(e[0]!==s||e[1]!==a||e[2]!==l){r=Symbol.for("react.early_return_sentinel");e:{let d;e[7]!==s||e[8]!==l?(d=u=>{const x={org:s,agentId:u.projectId};if(u.connection){const{label:g,icon:h,id:j,toolName:v}=u.connection;return[{key:`${j}:${v}:${u.projectId}`,label:g,project:u.projectTitle,link:{to:le.app,params:{...x,connectionId:j,toolName:v}},glyph:o.jsx(ke,{icon:h,name:g,size:"md",className:X})}]}const p=Ce[u.app];return p?[{key:`${u.app}:${u.projectId}`,label:l(p.labelKey),project:u.projectTitle,link:{to:p.to,params:x},glyph:o.jsx("span",{className:K(X,"flex items-center",p.tone),children:o.jsx(p.Icon,{size:24})})}]:[]},e[7]=s,e[8]=l,e[9]=d):d=e[9];const f=a.slice(0,8).flatMap(d);if(f.length===0){r=null;break e}n=Ie,e[10]!==l?(i=l("home.overview.recentApps"),e[10]=l,e[11]=i):i=e[11],c=f.map(Ue)}e[0]=s,e[1]=a,e[2]=l,e[3]=n,e[4]=i,e[5]=c,e[6]=r}else n=e[3],i=e[4],c=e[5],r=e[6];if(r!==Symbol.for("react.early_return_sentinel"))return r;let m;return e[12]!==n||e[13]!==i||e[14]!==c?(m=o.jsx(n,{title:i,children:c}),e[12]=n,e[13]=i,e[14]=c,e[15]=m):m=e[15],m}function Ue(t){return o.jsxs(P,{to:t.link.to,params:t.link.params,className:"group flex shrink-0 flex-col items-center gap-2.5 rounded-xl p-3 text-center transition-[background-color,transform] duration-150 ease-out hover:bg-accent active:scale-[0.97]",children:[t.glyph,o.jsxs("span",{className:"flex w-full min-w-0 flex-col",children:[o.jsx("span",{className:"line-clamp-2 text-xs font-medium break-words text-foreground",children:t.label}),o.jsx("span",{className:"truncate text-xs text-muted-foreground",children:t.project})]})]},t.key)}function qe(t,e){return{to:ie.tasks,params:{org:t,taskKey:ze(t,e)}}}const He={answer:{Icon:ve,tone:"text-warning",reasonKey:"home.needsYou.reasonAnswer"},failed:{Icon:he,tone:"text-destructive",reasonKey:"home.overview.reasonFailed"},review:{Icon:je,tone:"text-warning",reasonKey:"home.needsYou.reasonReview"},running:{Icon:H,tone:"text-muted-foreground",reasonKey:"home.overview.reasonRunning"},assigned:{Icon:H,tone:"text-muted-foreground",reasonKey:"home.needsYou.reasonAssigned"}},J=["answer","failed","review","running","assigned"];function Qe(t,e){const a=new Set,s=[],l=(n,i)=>{a.has(n.id)||(a.add(n.id),s.push({task:n,kind:i}))};for(const n of t)l(n,Re(n));for(const n of e){if(n.status==="done"||n.status==="archived")continue;const i=Te(n);i==="failed"?l(n,"failed"):i==="running"&&l(n,"running")}return s.sort((n,i)=>J.indexOf(n.kind)-J.indexOf(i.kind))}function Xe(t,e){const a=new Map;for(const r of e){if(r.action!=="mentioned"&&r.action!=="commented")continue;const m=a.get(r.taskBoardItemId);(!m||m.action!=="mentioned"&&r.action==="mentioned")&&a.set(r.taskBoardItemId,r)}const s=new Set(t.map(r=>r.task.id)),l=[...a.values()].filter(r=>!s.has(r.taskBoardItemId)).map(r=>({kind:"mention",task:null,mention:r})),n=t.map(({task:r,kind:m})=>({kind:m,task:r,mention:a.get(r.id)??null})),i=n.filter(r=>r.kind==="answer"),c=n.filter(r=>r.kind!=="answer");return[...i,...l,...c]}const Ge=7;function W(t){const e=A.c(6),{mention:a}=t,s=B();let l;e[0]!==a.actorName||e[1]!==s?(l=a.actorName??s("home.overview.someone"),e[0]=a.actorName,e[1]=s,e[2]=l):l=e[2];const n=l,i=a.actorImage??void 0;let c;return e[3]!==n||e[4]!==i?(c=o.jsx(ce,{url:i,fallback:n,shape:"circle",size:"2xs"}),e[3]=n,e[4]=i,e[5]=c):c=e[5],c}function Je(t,e){const a=t.actorName??e("home.overview.someone");return e(t.action==="mentioned"?"home.overview.mentioned":"home.overview.commented",{actor:a})}function St(t){const e=A.c(12),{waiting:a,tasks:s,mentions:l,index:n,orgSlug:i}=t,c=B();let r;if(e[0]!==n||e[1]!==l||e[2]!==i||e[3]!==c||e[4]!==s||e[5]!==a){const m=Xe(Qe(a,s),l);let d;e[7]!==c?(d=c("home.overview.forYou"),e[7]=c,e[8]=d):d=e[8];const f=m.length>0&&o.jsx("span",{className:"text-muted-foreground tabular-nums",children:m.length});let u;e[9]!==d||e[10]!==f?(u=o.jsxs("h2",{className:"flex items-center gap-2 px-2 pt-1 pb-1 text-sm font-medium text-foreground",children:[d,f]}),e[9]=d,e[10]=f,e[11]=u):u=e[11],r=o.jsxs("section",{className:"flex flex-col gap-2 surface p-3",children:[u,m.length===0?o.jsxs("div",{className:"flex flex-col items-center gap-3 px-2 py-10 text-center",children:[o.jsx("span",{className:"flex size-10 items-center justify-center rounded-full bg-success/10 text-success",children:o.jsx(H,{size:20})}),o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:c("home.overview.allClearTitle")}),o.jsx("p",{className:"text-sm text-muted-foreground",children:c("home.overview.allClearDescription")})]})]}):o.jsx("div",{className:"flex flex-col",children:m.slice(0,Ge).map(x=>{const p=x.kind==="mention"?{id:x.mention.taskBoardItemId,keySeq:x.mention.taskKeySeq,title:x.mention.taskTitle}:x.task,g=x.task?$e(x.task,n):null,h=x.kind==="mention"?null:He[x.kind],j=x.mention?Je(x.mention,c):h?c(h.reasonKey):"";return o.jsxs(P,{...qe(i,p),className:"group flex h-10 items-center gap-3 rounded-lg px-2 transition-colors hover:bg-accent",children:[o.jsx("span",{className:K("flex size-4 shrink-0 items-center justify-center",h?.tone),children:x.kind==="mention"?o.jsx(W,{mention:x.mention}):x.kind==="running"?o.jsx(ae,{className:"size-3.5"}):h?o.jsx(h.Icon,{size:16}):null}),o.jsx("span",{className:"min-w-0 truncate text-sm text-foreground",children:p.title}),o.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-sm text-muted-foreground",children:[x.kind!=="mention"&&x.mention&&o.jsx(W,{mention:x.mention}),o.jsx("span",{className:"truncate",children:j})]}),g&&o.jsxs("span",{className:"hidden max-w-48 shrink-0 items-center gap-1.5 text-xs text-muted-foreground md:flex",children:[o.jsx(Se,{icon:g.icon,name:g.title}),o.jsx("span",{className:"truncate",children:g.title})]})]},p.id)})})]}),e[0]=n,e[1]=l,e[2]=i,e[3]=c,e[4]=s,e[5]=a,e[6]=r}else r=e[6];return r}function We(t){if(t<=0)return 1;const e=10**Math.floor(Math.log10(t));for(const a of[1,2,2.5,5,10])if(a*e>=t)return a*e;return 10*e}const Ve=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"});function U(t){const e=A.c(52),{series:a,start:s,format:l,label:n,averageLabel:i}=t,c=We(Math.max(...a,0));let r;e[0]!==a?(r=a.length===0?0:a.reduce(et,0)/a.length,e[0]=a,e[1]=r):r=e[1];const m=r;let d;if(e[2]!==a||e[3]!==s){let E;e[5]!==s?(E=(te,se)=>({day:Ve.format(new Date(s.getTime()+se*864e5)),value:te}),e[5]=s,e[6]=E):E=e[6],d=a.map(E),e[2]=a,e[3]=s,e[4]=d}else d=e[4];const f=d,u=Math.max(f.length-1,0),x=f[0]?.day;let p;e[7]!==u||e[8]!==f?(p=f[Math.round(u/2)]?.day,e[7]=u,e[8]=f,e[9]=p):p=e[9];const g=f[u]?.day;let h;e[10]!==x||e[11]!==p||e[12]!==g?(h=[x,p,g].filter(Ze),e[10]=x,e[11]=p,e[12]=g,e[13]=h):h=e[13];const j=h;let v;e[14]!==n?(v={value:{label:n,color:"var(--chart-1)"}},e[14]=n,e[15]=v):v=e[15];const z=v;let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_={top:8,right:0,bottom:0,left:0},e[16]=_):_=e[16];let S;e[17]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx(Le,{vertical:!1,strokeDasharray:"4 4",stroke:"var(--border)"}),e[17]=S):S=e[17];let $,R;e[18]===Symbol.for("react.memo_cache_sentinel")?($={stroke:"var(--border)"},R={fontSize:12,fill:"var(--muted-foreground)"},e[18]=$,e[19]=R):($=e[18],R=e[19]);let b;e[20]!==j?(b=o.jsx(Be,{dataKey:"day",ticks:j,interval:"preserveStartEnd",tickLine:!1,axisLine:$,tick:R,tickMargin:8}),e[20]=j,e[21]=b):b=e[21];let I;e[22]!==c?(I=[0,c],e[22]=c,e[23]=I):I=e[23];const T=c/2;let w;e[24]!==c||e[25]!==T?(w=[0,T,c],e[24]=c,e[25]=T,e[26]=w):w=e[26];let y;e[27]!==l?(y=E=>E===0?"0":l(E),e[27]=l,e[28]=y):y=e[28];let M;e[29]===Symbol.for("react.memo_cache_sentinel")?(M={fontSize:12,fill:"var(--muted-foreground)"},e[29]=M):M=e[29];let N;e[30]!==I||e[31]!==w||e[32]!==y?(N=o.jsx(Ke,{orientation:"right",domain:I,ticks:w,tickFormatter:y,tickLine:!1,axisLine:!1,tick:M,width:44}),e[30]=I,e[31]=w,e[32]=y,e[33]=N):N=e[33];let C;e[34]===Symbol.for("react.memo_cache_sentinel")?(C={fill:"var(--muted)",opacity:.6},e[34]=C):C=e[34];let k;e[35]!==l||e[36]!==n?(k=o.jsx(be,{cursor:C,content:o.jsx(we,{indicator:"line",formatter:E=>o.jsxs("div",{className:"flex flex-1 items-center justify-between gap-3 leading-none",children:[o.jsx("span",{className:"text-muted-foreground",children:n}),o.jsx("span",{className:"font-medium text-foreground tabular-nums",children:l(Number(E))})]})})}),e[35]=l,e[36]=n,e[37]=k):k=e[37];let D;e[38]!==m||e[39]!==i||e[40]!==l?(D=m>0&&o.jsx(De,{y:m,stroke:"var(--foreground)",strokeOpacity:.6,strokeDasharray:"2 2",label:{value:i(l(m)),position:"insideBottomLeft",fontSize:12,fill:"var(--foreground)"}}),e[38]=m,e[39]=i,e[40]=l,e[41]=D):D=e[41];let O;e[42]===Symbol.for("react.memo_cache_sentinel")?(O=o.jsx(ye,{dataKey:"value",fill:"var(--color-value)",radius:[2,2,0,0],maxBarSize:4,animationDuration:300}),e[42]=O):O=e[42];let L;e[43]!==f||e[44]!==b||e[45]!==N||e[46]!==k||e[47]!==D?(L=o.jsxs(Ne,{data:f,margin:_,barCategoryGap:"30%",children:[S,b,N,k,D,O]}),e[43]=f,e[44]=b,e[45]=N,e[46]=k,e[47]=D,e[48]=L):L=e[48];let Y;return e[49]!==z||e[50]!==L?(Y=o.jsx(_e,{config:z,className:"aspect-auto h-[159px] w-full",children:L}),e[49]=z,e[50]=L,e[51]=Y):Y=e[51],Y}function Ze(t){return!!t}function et(t,e){return t+e}function q(t){const e=A.c(10),{label:a,value:s,chart:l}=t;let n;e[0]!==a?(n=o.jsx("span",{className:"text-sm font-medium text-foreground",children:a}),e[0]=a,e[1]=n):n=e[1];let i;e[2]!==s?(i=o.jsx("span",{className:"text-[32px] leading-none font-medium tracking-tight tabular-nums text-foreground",children:s}),e[2]=s,e[3]=i):i=e[3];let c;e[4]!==n||e[5]!==i?(c=o.jsxs("div",{className:"flex flex-col gap-2.5",children:[n,i]}),e[4]=n,e[5]=i,e[6]=c):c=e[6];let r;return e[7]!==l||e[8]!==c?(r=o.jsxs("section",{className:"flex flex-col gap-6 surface p-5",children:[c,l]}),e[7]=l,e[8]=c,e[9]=r):r=e[9],r}function Ct(t){const e=A.c(58),{tasks:a}=t,s=B();let l,n,i,c,r,m,d,f,u;if(e[0]!==s||e[1]!==a){const j=Ee(a,F),v=Ae(a,F);i=Me(a);const z=st;let _,S;if(e[11]===Symbol.for("react.memo_cache_sentinel")){const k=new Date;S=new Date(k.getFullYear(),k.getMonth(),k.getDate()-(F-1)),_=new Date(k.getFullYear(),k.getMonth(),1),e[11]=_,e[12]=S}else _=e[11],S=e[12];c=_;const $=tt;let R;e[13]!==s?(R=k=>s("home.overview.average",{value:k}),e[13]=s,e[14]=R):R=e[14],n=R,d="grid gap-4 md:grid-cols-3";let b;e[15]!==s?(b=s("home.overview.delivered"),e[15]=s,e[16]=b):b=e[16];const I=String(z(j));let T;e[17]!==s?(T=s("home.overview.delivered"),e[17]=s,e[18]=T):T=e[18];let w;e[19]!==n||e[20]!==j||e[21]!==T?(w=o.jsx(U,{label:T,series:j,start:S,format:$,averageLabel:n}),e[19]=n,e[20]=j,e[21]=T,e[22]=w):w=e[22],e[23]!==w||e[24]!==b||e[25]!==I?(f=o.jsx(q,{label:b,value:I,chart:w}),e[23]=w,e[24]=b,e[25]=I,e[26]=f):f=e[26];let y;e[27]!==s?(y=s("home.overview.agentRuns"),e[27]=s,e[28]=y):y=e[28];const M=String(z(v));let N;e[29]!==s?(N=s("home.overview.agentRuns"),e[29]=s,e[30]=N):N=e[30];let C;e[31]!==n||e[32]!==v||e[33]!==N?(C=o.jsx(U,{label:N,series:v,start:S,format:$,averageLabel:n}),e[31]=n,e[32]=v,e[33]=N,e[34]=C):C=e[34],e[35]!==y||e[36]!==M||e[37]!==C?(u=o.jsx(q,{label:y,value:M,chart:C}),e[35]=y,e[36]=M,e[37]=C,e[38]=u):u=e[38],l=q,e[39]!==s?(r=s("home.overview.agentCost"),e[39]=s,e[40]=r):r=e[40],m=G(z(i)),e[0]=s,e[1]=a,e[2]=l,e[3]=n,e[4]=i,e[5]=c,e[6]=r,e[7]=m,e[8]=d,e[9]=f,e[10]=u}else l=e[2],n=e[3],i=e[4],c=e[5],r=e[6],m=e[7],d=e[8],f=e[9],u=e[10];let x;e[41]!==s?(x=s("home.overview.agentCost"),e[41]=s,e[42]=x):x=e[42];let p;e[43]!==n||e[44]!==i||e[45]!==c||e[46]!==x?(p=o.jsx(U,{label:x,series:i,start:c,format:G,averageLabel:n}),e[43]=n,e[44]=i,e[45]=c,e[46]=x,e[47]=p):p=e[47];let g;e[48]!==l||e[49]!==r||e[50]!==m||e[51]!==p?(g=o.jsx(l,{label:r,value:m,chart:p}),e[48]=l,e[49]=r,e[50]=m,e[51]=p,e[52]=g):g=e[52];let h;return e[53]!==d||e[54]!==f||e[55]!==u||e[56]!==g?(h=o.jsxs("div",{className:d,children:[f,u,g]}),e[53]=d,e[54]=f,e[55]=u,e[56]=g,e[57]=h):h=e[57],h}function tt(t){return String(Math.round(t*10)/10)}function st(t){return t.reduce(nt,0)}function nt(t,e){return t+e}export{yt as C,St as F,Ct as M,_t as R,wt as a,Nt as u};
1
+ import{c as A,b as B,a4 as Q,aq as ne,j as o,m as K,L as P,E as V,ak as oe,V as re,h as ae,ae as ie,$ as le,o as ce}from"./index-CnlrqsCd.js";import{i as Z}from"./ArrowRight-DdCk_HCk.js";import{C as me,a as fe,b as de,c as ue}from"./connect-key-CeYjF2jt.js";import{u as xe}from"./use-api-keys-DYWSrleO.js";import{u as pe,t as ge}from"./use-task-board-items-DT4Yu9ci.js";import{i as he}from"./AlertCircle-BckhzGo9.js";import{i as H}from"./CheckCircle-p76CoLTf.js";import{s as je}from"./Eye-B-zZzOpR.js";import{u as ve,A as ke}from"./agent-icon-Da3tHBMv.js";import{C as be,a as we,B as ye,b as Ne,c as _e}from"./chart-BvG6MEBA.js";import{P as Se}from"./project-icon-DsXJkCkm.js";import{T as X,P as Ce,A as Ie}from"./project-apps-BcbysZgz.js";import{a as Te}from"./config-CheVupom.js";import{t as ze}from"./task-route-DnF8qwEX.js";import{p as $e}from"./project-index-D_813h_x.js";import{a as Re,b as Ee,c as Ae,d as Me,R as F,f as G}from"./daily-pulse-eHpvhv3c.js";import{R as De}from"./ReferenceLine-CVaZ4J9I.js";import{C as Le,X as Be,Y as Ke}from"./CartesianChart-2VySs-qY.js";const ee=[{name:"Claude",Icon:me,size:[11,14],bg:"#D97757",fg:"#fff"},{name:"Cursor",Icon:fe,size:[10,12],bg:"#000",fg:"#fff"},{name:"Codex",Icon:de,size:[10,12],bg:"#4F46E5",fg:"#fff"}];function wt(t){const e=A.c(22),{dense:a}=t,s=a===void 0?!0:a,l=B(),{org:n}=Q();let i;e[0]!==n.slug?(i={org:n.slug},e[0]=n.slug,e[1]=i):i=e[1];const c=s?"h-7 shrink-0 gap-x-2 whitespace-nowrap pl-3 pr-1.5":"flex-wrap gap-x-3 gap-y-2 py-1.5 pl-4 pr-2.5";let r;e[2]!==c?(r=K("group hidden max-w-full @3xl/panel-header:inline-flex items-center justify-center rounded-full bg-card text-sm shadow-edge transition-colors hover:bg-accent",c),e[2]=c,e[3]=r):r=e[3];let m;e[4]!==l?(m=l("home.orgHome.connectPill"),e[4]=l,e[5]=m):m=e[5];let d;e[6]!==m?(d=o.jsx("span",{className:"font-medium text-foreground",children:m}),e[6]=m,e[7]=d):d=e[7];let f;e[8]!==s?(f=ee.map(j=>{const{name:v,Icon:z,size:_,bg:S,fg:$}=j;return o.jsx("span",{title:v,className:K("flex items-center justify-center rounded-full",s?"size-5":"size-6"),style:{backgroundColor:S,color:$},children:o.jsx(z,{size:s?_[0]:_[1]})},v)}),e[8]=s,e[9]=f):f=e[9];let u;e[10]!==f?(u=o.jsx("span",{"aria-hidden":"true",className:"flex items-center gap-1",children:f}),e[10]=f,e[11]=u):u=e[11];const x=s?"size-3":"size-3.5";let p;e[12]!==x?(p=K(x,"shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5"),e[12]=x,e[13]=p):p=e[13];let g;e[14]!==p?(g=o.jsx(Z,{className:p}),e[14]=p,e[15]=g):g=e[15];let h;return e[16]!==g||e[17]!==i||e[18]!==r||e[19]!==d||e[20]!==u?(h=o.jsxs(P,{to:"/$org/settings/connect",params:i,onClick:Oe,className:r,children:[d,u,g]}),e[16]=g,e[17]=i,e[18]=r,e[19]=d,e[20]=u,e[21]=h):h=e[21],h}function Oe(){return V("connect_clients_opened",{source:"org_home"})}function yt(){const t=A.c(13),e=B(),{org:a}=Q(),{granted:s}=ne("api-keys:manage");let l;t[0]!==s?(l={enabled:s},t[0]=s,t[1]=l):l=t[1];const{data:n}=xe(l);if(s&&!n||n?.some(Fe))return null;let i;t[2]!==a.slug?(i={org:a.slug},t[2]=a.slug,t[3]=i):i=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("span",{"aria-hidden":"true",className:"flex items-center gap-1",children:ee.map(Ye)}),t[4]=c):c=t[4];let r;t[5]!==e?(r=e("home.orgHome.connectPill"),t[5]=e,t[6]=r):r=t[6];let m;t[7]!==r?(m=o.jsx("span",{className:"font-medium text-foreground",children:r}),t[7]=r,t[8]=m):m=t[8];let d;t[9]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(Z,{className:"ml-auto size-3.5 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5"}),t[9]=d):d=t[9];let f;return t[10]!==i||t[11]!==m?(f=o.jsxs(P,{to:"/$org/settings/connect",params:i,onClick:Pe,className:"group hidden items-center gap-3 rounded-xl bg-card px-4 py-2.5 text-sm shadow-edge transition-colors hover:bg-accent md:flex",children:[c,m,d]}),t[10]=i,t[11]=m,t[12]=f):f=t[12],f}function Ye(t){const{name:e,Icon:a,size:s,bg:l,fg:n}=t;return o.jsx("span",{className:"flex size-5 items-center justify-center rounded-full",style:{backgroundColor:l,color:n},children:o.jsx(a,{size:s[0]})},e)}function Pe(){return V("connect_clients_opened",{source:"org_home"})}function Fe(t){return t.name.startsWith(ue)}function Nt(){const t=A.c(3),{locator:e}=Q(),a=oe();pe();let s;t[0]!==e||t[1]!==a?(s=ge(e,a),t[0]=e,t[1]=a,t[2]=s):s=t[2];const{data:l}=re(s);return l.items}function _t(t){const e=A.c(16),{recent:a,orgSlug:s}=t,l=B();let n,i,c,r;if(e[0]!==s||e[1]!==a||e[2]!==l){r=Symbol.for("react.early_return_sentinel");e:{let d;e[7]!==s||e[8]!==l?(d=u=>{const x={org:s,agentId:u.projectId};if(u.connection){const{label:g,icon:h,id:j,toolName:v}=u.connection;return[{key:`${j}:${v}:${u.projectId}`,label:g,project:u.projectTitle,link:{to:le.app,params:{...x,connectionId:j,toolName:v}},glyph:o.jsx(ke,{icon:h,name:g,size:"md",className:X})}]}const p=Ce[u.app];return p?[{key:`${u.app}:${u.projectId}`,label:l(p.labelKey),project:u.projectTitle,link:{to:p.to,params:x},glyph:o.jsx("span",{className:K(X,"flex items-center",p.tone),children:o.jsx(p.Icon,{size:24})})}]:[]},e[7]=s,e[8]=l,e[9]=d):d=e[9];const f=a.slice(0,8).flatMap(d);if(f.length===0){r=null;break e}n=Ie,e[10]!==l?(i=l("home.overview.recentApps"),e[10]=l,e[11]=i):i=e[11],c=f.map(Ue)}e[0]=s,e[1]=a,e[2]=l,e[3]=n,e[4]=i,e[5]=c,e[6]=r}else n=e[3],i=e[4],c=e[5],r=e[6];if(r!==Symbol.for("react.early_return_sentinel"))return r;let m;return e[12]!==n||e[13]!==i||e[14]!==c?(m=o.jsx(n,{title:i,children:c}),e[12]=n,e[13]=i,e[14]=c,e[15]=m):m=e[15],m}function Ue(t){return o.jsxs(P,{to:t.link.to,params:t.link.params,className:"group flex shrink-0 flex-col items-center gap-2.5 rounded-xl p-3 text-center transition-[background-color,transform] duration-150 ease-out hover:bg-accent active:scale-[0.97]",children:[t.glyph,o.jsxs("span",{className:"flex w-full min-w-0 flex-col",children:[o.jsx("span",{className:"line-clamp-2 text-xs font-medium break-words text-foreground",children:t.label}),o.jsx("span",{className:"truncate text-xs text-muted-foreground",children:t.project})]})]},t.key)}function qe(t,e){return{to:ie.tasks,params:{org:t,taskKey:ze(t,e)}}}const He={answer:{Icon:ve,tone:"text-warning",reasonKey:"home.needsYou.reasonAnswer"},failed:{Icon:he,tone:"text-destructive",reasonKey:"home.overview.reasonFailed"},review:{Icon:je,tone:"text-warning",reasonKey:"home.needsYou.reasonReview"},running:{Icon:H,tone:"text-muted-foreground",reasonKey:"home.overview.reasonRunning"},assigned:{Icon:H,tone:"text-muted-foreground",reasonKey:"home.needsYou.reasonAssigned"}},J=["answer","failed","review","running","assigned"];function Qe(t,e){const a=new Set,s=[],l=(n,i)=>{a.has(n.id)||(a.add(n.id),s.push({task:n,kind:i}))};for(const n of t)l(n,Re(n));for(const n of e){if(n.status==="done"||n.status==="archived")continue;const i=Te(n);i==="failed"?l(n,"failed"):i==="running"&&l(n,"running")}return s.sort((n,i)=>J.indexOf(n.kind)-J.indexOf(i.kind))}function Xe(t,e){const a=new Map;for(const r of e){if(r.action!=="mentioned"&&r.action!=="commented")continue;const m=a.get(r.taskBoardItemId);(!m||m.action!=="mentioned"&&r.action==="mentioned")&&a.set(r.taskBoardItemId,r)}const s=new Set(t.map(r=>r.task.id)),l=[...a.values()].filter(r=>!s.has(r.taskBoardItemId)).map(r=>({kind:"mention",task:null,mention:r})),n=t.map(({task:r,kind:m})=>({kind:m,task:r,mention:a.get(r.id)??null})),i=n.filter(r=>r.kind==="answer"),c=n.filter(r=>r.kind!=="answer");return[...i,...l,...c]}const Ge=7;function W(t){const e=A.c(6),{mention:a}=t,s=B();let l;e[0]!==a.actorName||e[1]!==s?(l=a.actorName??s("home.overview.someone"),e[0]=a.actorName,e[1]=s,e[2]=l):l=e[2];const n=l,i=a.actorImage??void 0;let c;return e[3]!==n||e[4]!==i?(c=o.jsx(ce,{url:i,fallback:n,shape:"circle",size:"2xs"}),e[3]=n,e[4]=i,e[5]=c):c=e[5],c}function Je(t,e){const a=t.actorName??e("home.overview.someone");return e(t.action==="mentioned"?"home.overview.mentioned":"home.overview.commented",{actor:a})}function St(t){const e=A.c(12),{waiting:a,tasks:s,mentions:l,index:n,orgSlug:i}=t,c=B();let r;if(e[0]!==n||e[1]!==l||e[2]!==i||e[3]!==c||e[4]!==s||e[5]!==a){const m=Xe(Qe(a,s),l);let d;e[7]!==c?(d=c("home.overview.forYou"),e[7]=c,e[8]=d):d=e[8];const f=m.length>0&&o.jsx("span",{className:"text-muted-foreground tabular-nums",children:m.length});let u;e[9]!==d||e[10]!==f?(u=o.jsxs("h2",{className:"flex items-center gap-2 px-2 pt-1 pb-1 text-sm font-medium text-foreground",children:[d,f]}),e[9]=d,e[10]=f,e[11]=u):u=e[11],r=o.jsxs("section",{className:"flex flex-col gap-2 surface p-3",children:[u,m.length===0?o.jsxs("div",{className:"flex flex-col items-center gap-3 px-2 py-10 text-center",children:[o.jsx("span",{className:"flex size-10 items-center justify-center rounded-full bg-success/10 text-success",children:o.jsx(H,{size:20})}),o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:c("home.overview.allClearTitle")}),o.jsx("p",{className:"text-sm text-muted-foreground",children:c("home.overview.allClearDescription")})]})]}):o.jsx("div",{className:"flex flex-col",children:m.slice(0,Ge).map(x=>{const p=x.kind==="mention"?{id:x.mention.taskBoardItemId,keySeq:x.mention.taskKeySeq,title:x.mention.taskTitle}:x.task,g=x.task?$e(x.task,n):null,h=x.kind==="mention"?null:He[x.kind],j=x.mention?Je(x.mention,c):h?c(h.reasonKey):"";return o.jsxs(P,{...qe(i,p),className:"group flex h-10 items-center gap-3 rounded-lg px-2 transition-colors hover:bg-accent",children:[o.jsx("span",{"aria-hidden":"true",className:K("flex size-4 shrink-0 items-center justify-center",h?.tone),children:x.kind==="mention"?o.jsx(W,{mention:x.mention}):x.kind==="running"?o.jsx(ae,{className:"size-3.5"}):h?o.jsx(h.Icon,{size:16}):null}),o.jsx("span",{className:"min-w-0 truncate text-sm text-foreground",children:p.title}),o.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-sm text-muted-foreground",children:[x.kind!=="mention"&&x.mention&&o.jsx("span",{"aria-hidden":"true",children:o.jsx(W,{mention:x.mention})}),o.jsx("span",{className:"truncate",children:j})]}),g&&o.jsxs("span",{className:"hidden max-w-48 shrink-0 items-center gap-1.5 text-xs text-muted-foreground md:flex",children:[o.jsx(Se,{icon:g.icon,name:g.title}),o.jsx("span",{className:"truncate",children:g.title})]})]},p.id)})})]}),e[0]=n,e[1]=l,e[2]=i,e[3]=c,e[4]=s,e[5]=a,e[6]=r}else r=e[6];return r}function We(t){if(t<=0)return 1;const e=10**Math.floor(Math.log10(t));for(const a of[1,2,2.5,5,10])if(a*e>=t)return a*e;return 10*e}const Ve=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"});function U(t){const e=A.c(52),{series:a,start:s,format:l,label:n,averageLabel:i}=t,c=We(Math.max(...a,0));let r;e[0]!==a?(r=a.length===0?0:a.reduce(et,0)/a.length,e[0]=a,e[1]=r):r=e[1];const m=r;let d;if(e[2]!==a||e[3]!==s){let E;e[5]!==s?(E=(te,se)=>({day:Ve.format(new Date(s.getTime()+se*864e5)),value:te}),e[5]=s,e[6]=E):E=e[6],d=a.map(E),e[2]=a,e[3]=s,e[4]=d}else d=e[4];const f=d,u=Math.max(f.length-1,0),x=f[0]?.day;let p;e[7]!==u||e[8]!==f?(p=f[Math.round(u/2)]?.day,e[7]=u,e[8]=f,e[9]=p):p=e[9];const g=f[u]?.day;let h;e[10]!==x||e[11]!==p||e[12]!==g?(h=[x,p,g].filter(Ze),e[10]=x,e[11]=p,e[12]=g,e[13]=h):h=e[13];const j=h;let v;e[14]!==n?(v={value:{label:n,color:"var(--chart-1)"}},e[14]=n,e[15]=v):v=e[15];const z=v;let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_={top:8,right:0,bottom:0,left:0},e[16]=_):_=e[16];let S;e[17]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx(Le,{vertical:!1,strokeDasharray:"4 4",stroke:"var(--border)"}),e[17]=S):S=e[17];let $,R;e[18]===Symbol.for("react.memo_cache_sentinel")?($={stroke:"var(--border)"},R={fontSize:12,fill:"var(--muted-foreground)"},e[18]=$,e[19]=R):($=e[18],R=e[19]);let b;e[20]!==j?(b=o.jsx(Be,{dataKey:"day",ticks:j,interval:"preserveStartEnd",tickLine:!1,axisLine:$,tick:R,tickMargin:8}),e[20]=j,e[21]=b):b=e[21];let I;e[22]!==c?(I=[0,c],e[22]=c,e[23]=I):I=e[23];const T=c/2;let w;e[24]!==c||e[25]!==T?(w=[0,T,c],e[24]=c,e[25]=T,e[26]=w):w=e[26];let y;e[27]!==l?(y=E=>E===0?"0":l(E),e[27]=l,e[28]=y):y=e[28];let M;e[29]===Symbol.for("react.memo_cache_sentinel")?(M={fontSize:12,fill:"var(--muted-foreground)"},e[29]=M):M=e[29];let N;e[30]!==I||e[31]!==w||e[32]!==y?(N=o.jsx(Ke,{orientation:"right",domain:I,ticks:w,tickFormatter:y,tickLine:!1,axisLine:!1,tick:M,width:44}),e[30]=I,e[31]=w,e[32]=y,e[33]=N):N=e[33];let C;e[34]===Symbol.for("react.memo_cache_sentinel")?(C={fill:"var(--muted)",opacity:.6},e[34]=C):C=e[34];let k;e[35]!==l||e[36]!==n?(k=o.jsx(be,{cursor:C,content:o.jsx(we,{indicator:"line",formatter:E=>o.jsxs("div",{className:"flex flex-1 items-center justify-between gap-3 leading-none",children:[o.jsx("span",{className:"text-muted-foreground",children:n}),o.jsx("span",{className:"font-medium text-foreground tabular-nums",children:l(Number(E))})]})})}),e[35]=l,e[36]=n,e[37]=k):k=e[37];let D;e[38]!==m||e[39]!==i||e[40]!==l?(D=m>0&&o.jsx(De,{y:m,stroke:"var(--foreground)",strokeOpacity:.6,strokeDasharray:"2 2",label:{value:i(l(m)),position:"insideBottomLeft",fontSize:12,fill:"var(--foreground)"}}),e[38]=m,e[39]=i,e[40]=l,e[41]=D):D=e[41];let O;e[42]===Symbol.for("react.memo_cache_sentinel")?(O=o.jsx(ye,{dataKey:"value",fill:"var(--color-value)",radius:[2,2,0,0],maxBarSize:4,animationDuration:300}),e[42]=O):O=e[42];let L;e[43]!==f||e[44]!==b||e[45]!==N||e[46]!==k||e[47]!==D?(L=o.jsxs(Ne,{data:f,margin:_,barCategoryGap:"30%",children:[S,b,N,k,D,O]}),e[43]=f,e[44]=b,e[45]=N,e[46]=k,e[47]=D,e[48]=L):L=e[48];let Y;return e[49]!==z||e[50]!==L?(Y=o.jsx(_e,{config:z,className:"aspect-auto h-[159px] w-full",children:L}),e[49]=z,e[50]=L,e[51]=Y):Y=e[51],Y}function Ze(t){return!!t}function et(t,e){return t+e}function q(t){const e=A.c(10),{label:a,value:s,chart:l}=t;let n;e[0]!==a?(n=o.jsx("span",{className:"text-sm font-medium text-foreground",children:a}),e[0]=a,e[1]=n):n=e[1];let i;e[2]!==s?(i=o.jsx("span",{className:"text-[32px] leading-none font-medium tracking-tight tabular-nums text-foreground",children:s}),e[2]=s,e[3]=i):i=e[3];let c;e[4]!==n||e[5]!==i?(c=o.jsxs("div",{className:"flex flex-col gap-2.5",children:[n,i]}),e[4]=n,e[5]=i,e[6]=c):c=e[6];let r;return e[7]!==l||e[8]!==c?(r=o.jsxs("section",{className:"flex flex-col gap-6 surface p-5",children:[c,l]}),e[7]=l,e[8]=c,e[9]=r):r=e[9],r}function Ct(t){const e=A.c(58),{tasks:a}=t,s=B();let l,n,i,c,r,m,d,f,u;if(e[0]!==s||e[1]!==a){const j=Ee(a,F),v=Ae(a,F);i=Me(a);const z=st;let _,S;if(e[11]===Symbol.for("react.memo_cache_sentinel")){const k=new Date;S=new Date(k.getFullYear(),k.getMonth(),k.getDate()-(F-1)),_=new Date(k.getFullYear(),k.getMonth(),1),e[11]=_,e[12]=S}else _=e[11],S=e[12];c=_;const $=tt;let R;e[13]!==s?(R=k=>s("home.overview.average",{value:k}),e[13]=s,e[14]=R):R=e[14],n=R,d="grid gap-4 md:grid-cols-3";let b;e[15]!==s?(b=s("home.overview.delivered"),e[15]=s,e[16]=b):b=e[16];const I=String(z(j));let T;e[17]!==s?(T=s("home.overview.delivered"),e[17]=s,e[18]=T):T=e[18];let w;e[19]!==n||e[20]!==j||e[21]!==T?(w=o.jsx(U,{label:T,series:j,start:S,format:$,averageLabel:n}),e[19]=n,e[20]=j,e[21]=T,e[22]=w):w=e[22],e[23]!==w||e[24]!==b||e[25]!==I?(f=o.jsx(q,{label:b,value:I,chart:w}),e[23]=w,e[24]=b,e[25]=I,e[26]=f):f=e[26];let y;e[27]!==s?(y=s("home.overview.agentRuns"),e[27]=s,e[28]=y):y=e[28];const M=String(z(v));let N;e[29]!==s?(N=s("home.overview.agentRuns"),e[29]=s,e[30]=N):N=e[30];let C;e[31]!==n||e[32]!==v||e[33]!==N?(C=o.jsx(U,{label:N,series:v,start:S,format:$,averageLabel:n}),e[31]=n,e[32]=v,e[33]=N,e[34]=C):C=e[34],e[35]!==y||e[36]!==M||e[37]!==C?(u=o.jsx(q,{label:y,value:M,chart:C}),e[35]=y,e[36]=M,e[37]=C,e[38]=u):u=e[38],l=q,e[39]!==s?(r=s("home.overview.agentCost"),e[39]=s,e[40]=r):r=e[40],m=G(z(i)),e[0]=s,e[1]=a,e[2]=l,e[3]=n,e[4]=i,e[5]=c,e[6]=r,e[7]=m,e[8]=d,e[9]=f,e[10]=u}else l=e[2],n=e[3],i=e[4],c=e[5],r=e[6],m=e[7],d=e[8],f=e[9],u=e[10];let x;e[41]!==s?(x=s("home.overview.agentCost"),e[41]=s,e[42]=x):x=e[42];let p;e[43]!==n||e[44]!==i||e[45]!==c||e[46]!==x?(p=o.jsx(U,{label:x,series:i,start:c,format:G,averageLabel:n}),e[43]=n,e[44]=i,e[45]=c,e[46]=x,e[47]=p):p=e[47];let g;e[48]!==l||e[49]!==r||e[50]!==m||e[51]!==p?(g=o.jsx(l,{label:r,value:m,chart:p}),e[48]=l,e[49]=r,e[50]=m,e[51]=p,e[52]=g):g=e[52];let h;return e[53]!==d||e[54]!==f||e[55]!==u||e[56]!==g?(h=o.jsxs("div",{className:d,children:[f,u,g]}),e[53]=d,e[54]=f,e[55]=u,e[56]=g,e[57]=h):h=e[57],h}function tt(t){return String(Math.round(t*10)/10)}function st(t){return t.reduce(nt,0)}function nt(t,e){return t+e}export{yt as C,St as F,Ct as M,_t as R,wt as a,Nt as u};
@@ -1 +1 @@
1
- import{fV as B,ey as T,fW as J,c as U,r as Y,fL as N,fM as S,fR as K,fN as P,K as V,fO as z,fQ as G,fP as X,fJ as R}from"./index-Biams685.js";import{ax as Z,au as x,aF as ee,av as te,aw as C,aJ as ne,ay as re,aA as se}from"./site-editor-toast-DrqWp80X.js";import{a5 as F,ak as oe,a8 as ie,a4 as ae}from"./blocks-tab-states-D3HNXQiV.js";async function ce(e,t){return e.inDraft?e.value===void 0?T:J(e.value):await B(null,e.value,t)??null}class Ce{constructor(t){this.now=t,this.loaded=t()}now;copies=new Map;generations=new Map;loaded;settle(){this.loaded||(this.loaded=this.now())}get(t){const n=this.copies.get(t);if(n)return n;if(this.loaded)return{value:this.loaded.blocks[t],inDraft:this.loaded.versionOf(t)!==null}}generation(t){return this.generations.get(t)??0}edited(t){return{generation:this.generation(t),copy:this.get(t)}}guardOf(t,n){return n&&n.generation!==this.generation(t)?n.copy:this.get(t)}hold(t){this.generations.set(t,this.generation(t)+1);const n=this.now();!n||!Object.hasOwn(n.blocks,t)||this.copies.set(t,{value:n.blocks[t],inDraft:n.versionOf(t)!==null})}saved(t,n){this.copies.set(t,{value:n,inDraft:!0})}}const g=new Map,k=new Set,E=new Map;function ke(e){return`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`}function Ee(e,t){const n=new Map(g.get(e)??E);n.set(t,(n.get(t)??0)+1),g.set(e,n);for(const s of k)s()}function le(e){return k.add(e),()=>k.delete(e)}const A=new WeakMap;function fe(e){let t=A.get(e);return t||(t=n=>e.get(n)??0,A.set(e,t)),t}function De(e){const t=U.c(5);let n,s;t[0]!==e?(n=()=>g.get(e)??E,s=()=>g.get(e)??E,t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);const r=Y.useSyncExternalStore(le,n,s);let o;return t[3]!==r?(o=fe(r),t[3]=r,t[4]=o):o=t[4],o}class p extends Error{constructor(t){super("kept their version"),this.deleted=t,this.name="HostedKeptTheirsError"}deleted}const ue=3;function de(e,t,n,s){const r={},o={},i={};for(const a of e)t&&Object.hasOwn(t,a)&&(r[a]=t[a]),Object.hasOwn(n.writes,a)&&(o[a]=n.writes[a]),Object.hasOwn(s,a)&&(i[a]=s[a]);return z({ancestor:r,mine:o,theirs:i})}function he(e,t,n){const s={},r=[];for(const o of e){const i=t[o];W(i)?s[o]=i:Object.hasOwn(n,o)&&r.push(o)}return{writes:s,deletes:r}}function we(e,t){for(const[n,s]of Object.entries(e.writes))if(!Object.hasOwn(t,n)||R(t[n])!==R(s))return!1;return e.deletes.every(n=>!Object.hasOwn(t,n))}function Oe(e,t){if(!W(t))return null;if(F(e,t))return oe(t);const n=typeof t.name=="string"?t.name.trim():"";return n&&n!==e?n:I(e)}function I(e){const t=F(e);if(t)return ie(t);const n=e.split("/").pop()??e;return ae(n).trim()||n}function L(e,...t){for(const n of t){const s=Oe(e,n);if(s)return s}return I(e)}function H(e,t,n){return Object.keys(e.writes).some(r=>!t||!Object.hasOwn(t,r))?e.deletes.filter(r=>!Object.hasOwn(e.writes,r)&&n(r)):[]}async function q(e,t,n){const s=Object.keys(e.writes).filter(i=>!t||!Object.hasOwn(t,i)).map(i=>e.writes[i]),r=n[0];if(await P({kind:"theyDeleted",label:L(r,t?.[r],...s)})==="theirs")throw new p(!0);return{writes:e.writes,deletes:e.deletes.filter(i=>!n.includes(i))}}function Q(e){if(e.pointers.length!==1)return null;const t=e.pointers[0],n=t.split("/");if(n.length!==2)return null;const s=n[1].replaceAll("~1","/").replaceAll("~0","~"),r=e.mine[s],o=e.theirs[s];return r===void 0==(o===void 0)?null:{pointer:t,conflict:{kind:o===void 0?"theyDeleted":"youDeleted",label:L(s,r,o,e.ancestor[s])}}}async function pe(e,t,n,s){const r=Q(e);if(r)return{[r.pointer]:await P(r.conflict)};const o=G(e,t);return X(e,s?o.map(s):o,n?.author?{...n,author:{...n.author,keyed:!0}}:n)}function Me(e){const t=e.split("/")[1];return t?t.replaceAll("~1","/").replaceAll("~0","~"):null}function ge(e){const t=Object.values(e);return t.length>0&&t.every(n=>n==="theirs")}async function ve(e,t,n){const s=o=>se(e.queryClient,e.cacheKey,o,e.backend);if(t.some(o=>s(o)===void 0))try{await te(e.queryClient,e.backend,e.params,e.cacheKey)}catch{throw new C}const r={};for(const o of t){const i=s(o);if(i===void 0)throw new C;const a=n&&Object.hasOwn(n,o)?await B(i,n[o],N(e.queryClient,e.cacheKey,o)):i;if(a===void 0)throw new C;r[o]=a}return r}async function me(e,t,n,s){if(s&&w(e,t,r=>Object.hasOwn(s,r)?{value:s[r]}:null),!ne(e.queryClient,e.backend,e.cacheKey,n))for(const r of t)await re(e.queryClient,e.backend,e.params,e.cacheKey,r,n);return e.queryClient.getQueryData(V.decofile(e.cacheKey))??{}}async function Se(e,t,n,s){let r=t;const o=s?Object.keys(s):[];let i=o.length===0?n:{...n,...Object.fromEntries(o.map(a=>[a,s[a].value]))};for(let a=0;;a++){const v=r.deletes.filter(l=>!Object.hasOwn(r.writes,l)),d=[...Object.keys(r.writes),...v],O=await ve(e,d,a===0?i:void 0);if(a===0)for(const l of o)Object.hasOwn(O,l)&&(O[l]=await ce(s[l],N(e.queryClient,e.cacheKey,l)));const m=H(r,i,l=>O[l]===T);if(m.length>0){try{if(!S())throw new p(!0);r=await q(r,i,m)}catch(l){throw w(e,d,c=>m.includes(c)||!i||!Object.hasOwn(i,c)?null:{value:i[c]}),l}continue}try{const l=await Z(e.queryClient,e.backend,e.params,e.cacheKey,{set:r.writes,...v.length>0?{delete:v}:{}},O);return w(e,d,c=>Object.hasOwn(r.writes,c)?{value:r.writes[c]}:null),{...l,change:r}}catch(l){if(!x(l))throw l;const c=await me(e,d,l,i);if(a+1>=ue)throw new ee;if(!S())throw l;const D=Object.keys(r.writes).filter(u=>!i||!Object.hasOwn(i,u)),_=r;w(e,D,u=>({value:_.writes[u]}));const M=()=>w(e,D,u=>Object.hasOwn(c,u)?{value:c[u]}:null);try{const u=H(r,i,f=>!!i&&Object.hasOwn(i,f)&&!Object.hasOwn(c,f));if(u.length>0){r=await q(r,i,u),i=Object.fromEntries(d.filter(f=>Object.hasOwn(c,f)).map(f=>[f,c[f]]));continue}const h=de(d,i,r,c),b=h.pointers.length===0?{}:await pe(h),y=Q(h);if(y&&b[y.pointer]==="theirs")throw new p(y.conflict.kind==="theyDeleted");const $=h.pointers.length===0?h.merged:K(h,b),j=he(d,$,c);if(we(j,c)){if(ge(b))throw new p(d.some(f=>!Object.hasOwn(c,f)));return M(),{revision:"",versions:{},change:j}}r=j,i=Object.fromEntries(d.filter(f=>Object.hasOwn(c,f)).map(f=>[f,c[f]]))}catch(u){throw M(),u}}}}function w(e,t,n){e.queryClient.setQueryData(V.decofile(e.cacheKey),s=>{if(!s)return s;const r={...s};for(const o of t){const i=n(o);i?r[o]=i.value:delete r[o]}return r})}function W(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}export{p as H,ve as a,Ee as b,ke as c,ue as d,L as e,ge as f,Ce as g,ce as h,Se as i,pe as j,Me as k,he as l,we as m,de as p,De as u};
1
+ import{fV as B,ey as T,fW as J,c as U,r as Y,fL as N,fM as S,fR as K,fN as P,K as V,fO as z,fQ as G,fP as X,fJ as R}from"./index-CnlrqsCd.js";import{ax as Z,au as x,aF as ee,av as te,aw as C,aJ as ne,ay as re,aA as se}from"./site-editor-toast-BCIjRFDB.js";import{a5 as F,ak as oe,a8 as ie,a4 as ae}from"./blocks-tab-states-DCjOLpkz.js";async function ce(e,t){return e.inDraft?e.value===void 0?T:J(e.value):await B(null,e.value,t)??null}class Ce{constructor(t){this.now=t,this.loaded=t()}now;copies=new Map;generations=new Map;loaded;settle(){this.loaded||(this.loaded=this.now())}get(t){const n=this.copies.get(t);if(n)return n;if(this.loaded)return{value:this.loaded.blocks[t],inDraft:this.loaded.versionOf(t)!==null}}generation(t){return this.generations.get(t)??0}edited(t){return{generation:this.generation(t),copy:this.get(t)}}guardOf(t,n){return n&&n.generation!==this.generation(t)?n.copy:this.get(t)}hold(t){this.generations.set(t,this.generation(t)+1);const n=this.now();!n||!Object.hasOwn(n.blocks,t)||this.copies.set(t,{value:n.blocks[t],inDraft:n.versionOf(t)!==null})}saved(t,n){this.copies.set(t,{value:n,inDraft:!0})}}const g=new Map,k=new Set,E=new Map;function ke(e){return`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`}function Ee(e,t){const n=new Map(g.get(e)??E);n.set(t,(n.get(t)??0)+1),g.set(e,n);for(const s of k)s()}function le(e){return k.add(e),()=>k.delete(e)}const A=new WeakMap;function fe(e){let t=A.get(e);return t||(t=n=>e.get(n)??0,A.set(e,t)),t}function De(e){const t=U.c(5);let n,s;t[0]!==e?(n=()=>g.get(e)??E,s=()=>g.get(e)??E,t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);const r=Y.useSyncExternalStore(le,n,s);let o;return t[3]!==r?(o=fe(r),t[3]=r,t[4]=o):o=t[4],o}class p extends Error{constructor(t){super("kept their version"),this.deleted=t,this.name="HostedKeptTheirsError"}deleted}const ue=3;function de(e,t,n,s){const r={},o={},i={};for(const a of e)t&&Object.hasOwn(t,a)&&(r[a]=t[a]),Object.hasOwn(n.writes,a)&&(o[a]=n.writes[a]),Object.hasOwn(s,a)&&(i[a]=s[a]);return z({ancestor:r,mine:o,theirs:i})}function he(e,t,n){const s={},r=[];for(const o of e){const i=t[o];W(i)?s[o]=i:Object.hasOwn(n,o)&&r.push(o)}return{writes:s,deletes:r}}function we(e,t){for(const[n,s]of Object.entries(e.writes))if(!Object.hasOwn(t,n)||R(t[n])!==R(s))return!1;return e.deletes.every(n=>!Object.hasOwn(t,n))}function Oe(e,t){if(!W(t))return null;if(F(e,t))return oe(t);const n=typeof t.name=="string"?t.name.trim():"";return n&&n!==e?n:I(e)}function I(e){const t=F(e);if(t)return ie(t);const n=e.split("/").pop()??e;return ae(n).trim()||n}function L(e,...t){for(const n of t){const s=Oe(e,n);if(s)return s}return I(e)}function H(e,t,n){return Object.keys(e.writes).some(r=>!t||!Object.hasOwn(t,r))?e.deletes.filter(r=>!Object.hasOwn(e.writes,r)&&n(r)):[]}async function q(e,t,n){const s=Object.keys(e.writes).filter(i=>!t||!Object.hasOwn(t,i)).map(i=>e.writes[i]),r=n[0];if(await P({kind:"theyDeleted",label:L(r,t?.[r],...s)})==="theirs")throw new p(!0);return{writes:e.writes,deletes:e.deletes.filter(i=>!n.includes(i))}}function Q(e){if(e.pointers.length!==1)return null;const t=e.pointers[0],n=t.split("/");if(n.length!==2)return null;const s=n[1].replaceAll("~1","/").replaceAll("~0","~"),r=e.mine[s],o=e.theirs[s];return r===void 0==(o===void 0)?null:{pointer:t,conflict:{kind:o===void 0?"theyDeleted":"youDeleted",label:L(s,r,o,e.ancestor[s])}}}async function pe(e,t,n,s){const r=Q(e);if(r)return{[r.pointer]:await P(r.conflict)};const o=G(e,t);return X(e,s?o.map(s):o,n?.author?{...n,author:{...n.author,keyed:!0}}:n)}function Me(e){const t=e.split("/")[1];return t?t.replaceAll("~1","/").replaceAll("~0","~"):null}function ge(e){const t=Object.values(e);return t.length>0&&t.every(n=>n==="theirs")}async function ve(e,t,n){const s=o=>se(e.queryClient,e.cacheKey,o,e.backend);if(t.some(o=>s(o)===void 0))try{await te(e.queryClient,e.backend,e.params,e.cacheKey)}catch{throw new C}const r={};for(const o of t){const i=s(o);if(i===void 0)throw new C;const a=n&&Object.hasOwn(n,o)?await B(i,n[o],N(e.queryClient,e.cacheKey,o)):i;if(a===void 0)throw new C;r[o]=a}return r}async function me(e,t,n,s){if(s&&w(e,t,r=>Object.hasOwn(s,r)?{value:s[r]}:null),!ne(e.queryClient,e.backend,e.cacheKey,n))for(const r of t)await re(e.queryClient,e.backend,e.params,e.cacheKey,r,n);return e.queryClient.getQueryData(V.decofile(e.cacheKey))??{}}async function Se(e,t,n,s){let r=t;const o=s?Object.keys(s):[];let i=o.length===0?n:{...n,...Object.fromEntries(o.map(a=>[a,s[a].value]))};for(let a=0;;a++){const v=r.deletes.filter(l=>!Object.hasOwn(r.writes,l)),d=[...Object.keys(r.writes),...v],O=await ve(e,d,a===0?i:void 0);if(a===0)for(const l of o)Object.hasOwn(O,l)&&(O[l]=await ce(s[l],N(e.queryClient,e.cacheKey,l)));const m=H(r,i,l=>O[l]===T);if(m.length>0){try{if(!S())throw new p(!0);r=await q(r,i,m)}catch(l){throw w(e,d,c=>m.includes(c)||!i||!Object.hasOwn(i,c)?null:{value:i[c]}),l}continue}try{const l=await Z(e.queryClient,e.backend,e.params,e.cacheKey,{set:r.writes,...v.length>0?{delete:v}:{}},O);return w(e,d,c=>Object.hasOwn(r.writes,c)?{value:r.writes[c]}:null),{...l,change:r}}catch(l){if(!x(l))throw l;const c=await me(e,d,l,i);if(a+1>=ue)throw new ee;if(!S())throw l;const D=Object.keys(r.writes).filter(u=>!i||!Object.hasOwn(i,u)),_=r;w(e,D,u=>({value:_.writes[u]}));const M=()=>w(e,D,u=>Object.hasOwn(c,u)?{value:c[u]}:null);try{const u=H(r,i,f=>!!i&&Object.hasOwn(i,f)&&!Object.hasOwn(c,f));if(u.length>0){r=await q(r,i,u),i=Object.fromEntries(d.filter(f=>Object.hasOwn(c,f)).map(f=>[f,c[f]]));continue}const h=de(d,i,r,c),b=h.pointers.length===0?{}:await pe(h),y=Q(h);if(y&&b[y.pointer]==="theirs")throw new p(y.conflict.kind==="theyDeleted");const $=h.pointers.length===0?h.merged:K(h,b),j=he(d,$,c);if(we(j,c)){if(ge(b))throw new p(d.some(f=>!Object.hasOwn(c,f)));return M(),{revision:"",versions:{},change:j}}r=j,i=Object.fromEntries(d.filter(f=>Object.hasOwn(c,f)).map(f=>[f,c[f]]))}catch(u){throw M(),u}}}}function w(e,t,n){e.queryClient.setQueryData(V.decofile(e.cacheKey),s=>{if(!s)return s;const r={...s};for(const o of t){const i=n(o);i?r[o]=i.value:delete r[o]}return r})}function W(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}export{p as H,ve as a,Ee as b,ke as c,ue as d,L as e,ge as f,Ce as g,ce as h,Se as i,pe as j,Me as k,he as l,we as m,de as p,De as u};
@@ -1 +1 @@
1
- import{c as f,j as p,B as h}from"./index-Biams685.js";import{T as j,a as v,c as T}from"./tooltip-CqtvIcRI.js";function B(d){const t=f.c(19);let e,o,i,n,r,a;t[0]!==d?({label:o,tooltipSide:n,variant:r,size:a,children:e,...i}=d,t[0]=d,t[1]=e,t[2]=o,t[3]=i,t[4]=n,t[5]=r,t[6]=a):(e=t[1],o=t[2],i=t[3],n=t[4],r=t[5],a=t[6]);const m=n===void 0?"top":n,u=r===void 0?"ghost":r,x=a===void 0?"icon-sm":a;let s;t[7]!==e||t[8]!==o||t[9]!==i||t[10]!==x||t[11]!==u?(s=p.jsx(j,{asChild:!0,children:p.jsx(h,{"data-slot":"icon-button","aria-label":o,variant:u,size:x,...i,children:e})}),t[7]=e,t[8]=o,t[9]=i,t[10]=x,t[11]=u,t[12]=s):s=t[12];let l;t[13]!==o||t[14]!==m?(l=p.jsx(v,{side:m,children:o}),t[13]=o,t[14]=m,t[15]=l):l=t[15];let c;return t[16]!==s||t[17]!==l?(c=p.jsxs(T,{children:[s,l]}),t[16]=s,t[17]=l,t[18]=c):c=t[18],c}export{B as I};
1
+ import{c as f,j as p,B as h}from"./index-CnlrqsCd.js";import{T as j,a as v,c as T}from"./tooltip-iXXWa3VG.js";function B(d){const t=f.c(19);let e,o,i,n,r,a;t[0]!==d?({label:o,tooltipSide:n,variant:r,size:a,children:e,...i}=d,t[0]=d,t[1]=e,t[2]=o,t[3]=i,t[4]=n,t[5]=r,t[6]=a):(e=t[1],o=t[2],i=t[3],n=t[4],r=t[5],a=t[6]);const m=n===void 0?"top":n,u=r===void 0?"ghost":r,x=a===void 0?"icon-sm":a;let s;t[7]!==e||t[8]!==o||t[9]!==i||t[10]!==x||t[11]!==u?(s=p.jsx(j,{asChild:!0,children:p.jsx(h,{"data-slot":"icon-button","aria-label":o,variant:u,size:x,...i,children:e})}),t[7]=e,t[8]=o,t[9]=i,t[10]=x,t[11]=u,t[12]=s):s=t[12];let l;t[13]!==o||t[14]!==m?(l=p.jsx(v,{side:m,children:o}),t[13]=o,t[14]=m,t[15]=l):l=t[15];let c;return t[16]!==s||t[17]!==l?(c=p.jsxs(T,{children:[s,l]}),t[16]=s,t[17]=l,t[18]=c):c=t[18],c}export{B as I};
@@ -1 +1 @@
1
- import{r as l,b$ as ce,j as p,c5 as _,c4 as T,c2 as C,ca as le,b_ as de,cm as ue,ci as fe,cb as me}from"./index-Biams685.js";import{c as Y}from"./index-BdQq_4o_.js";var $=["PageUp","PageDown"],X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],G={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[H,Se,pe]=le(M),[W]=fe(M,[pe]),[he,V]=W(M),q=l.forwardRef((e,t)=>{const{name:o,min:n=0,max:s=100,step:c=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:w=[n],value:h,onValueChange:i=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:R,...g}=e,m=l.useRef(new Set),f=l.useRef(0),x=r==="horizontal"?ge:ve,[S=[],K]=ce({prop:h,defaultProp:w,onChange:b=>{[...m.current][f.current]?.focus(),i(b)}}),j=l.useRef(S);function B(b){const y=ye(S,b);I(b,y)}function se(b){I(b,f.current)}function ae(){const b=j.current[f.current];S[f.current]!==b&&d(S)}function I(b,y,{commit:k}={commit:!1}){const U=_e(c),z=Ce(Math.round((b-n)/c)*c+n,U),A=Y(z,[n,s]);K((E=[])=>{const P=be(E,A,y);if(Ee(P,u*c)){f.current=P.indexOf(A);const F=String(P)!==String(E);return F&&k&&d(P),F?P:E}else return E})}return p.jsx(he,{scope:e.__scopeSlider,name:o,disabled:a,min:n,max:s,valueIndexToChangeRef:f,thumbs:m.current,values:S,orientation:r,form:R,children:p.jsx(H.Provider,{scope:e.__scopeSlider,children:p.jsx(H.Slot,{scope:e.__scopeSlider,children:p.jsx(x,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(j.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:B,onSlideMove:a?void 0:se,onSlideEnd:a?void 0:ae,onHomeKeyDown:()=>!a&&I(n,0,{commit:!0}),onEndKeyDown:()=>!a&&I(s,S.length-1,{commit:!0}),onStepKeyDown:({event:b,direction:y})=>{if(!a){const z=$.includes(b.key)||b.shiftKey&&X.includes(b.key)?10:1,A=f.current,E=S[A],P=c*z*y;I(E+P,A,{commit:!0})}}})})})})});q.displayName=M;var[J,Q]=W(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:o,max:n,dir:s,inverted:c,onSlideStart:r,onSlideMove:a,onSlideEnd:u,onStepKeyDown:w,...h}=e,[i,d]=l.useState(null),v=C(t,x=>d(x)),R=l.useRef(void 0),g=de(s),m=g==="ltr",f=m&&!c||!m&&c;function D(x){const S=R.current||i.getBoundingClientRect(),K=[0,S.width],B=O(K,f?[o,n]:[n,o]);return R.current=S,B(x-S.left)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:p.jsx(Z,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=D(x.clientX);r?.(S)},onSlideMove:x=>{const S=D(x.clientX);a?.(S)},onSlideEnd:()=>{R.current=void 0,u?.()},onStepKeyDown:x=>{const K=G[f?"from-left":"from-right"].includes(x.key);w?.({event:x,direction:K?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:o,max:n,inverted:s,onSlideStart:c,onSlideMove:r,onSlideEnd:a,onStepKeyDown:u,...w}=e,h=l.useRef(null),i=C(t,h),d=l.useRef(void 0),v=!s;function R(g){const m=d.current||h.current.getBoundingClientRect(),f=[0,m.height],x=O(f,v?[n,o]:[o,n]);return d.current=m,x(g-m.top)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:p.jsx(Z,{"data-orientation":"vertical",...w,ref:i,style:{...w.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const m=R(g.clientY);c?.(m)},onSlideMove:g=>{const m=R(g.clientY);r?.(m)},onSlideEnd:()=>{d.current=void 0,a?.()},onStepKeyDown:g=>{const f=G[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),Z=l.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:u,...w}=e,h=V(M,o);return p.jsx(T.span,{...w,ref:t,onKeyDown:_(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):$.concat(X).includes(i.key)&&(u(i),i.preventDefault())}),onPointerDown:_(e.onPointerDown,i=>{const d=i.target;d.setPointerCapture(i.pointerId),i.preventDefault(),h.thumbs.has(d)?d.focus():n(i)}),onPointerMove:_(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:_(e.onPointerUp,i=>{const d=i.target;d.hasPointerCapture(i.pointerId)&&(d.releasePointerCapture(i.pointerId),c(i))})})}),ee="SliderTrack",te=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(ee,o);return p.jsx(T.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:t})});te.displayName=ee;var N="SliderRange",ne=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(N,o),c=Q(N,o),r=l.useRef(null),a=C(t,r),u=s.values.length,w=s.values.map(d=>ie(d,s.min,s.max)),h=u>1?Math.min(...w):0,i=100-Math.max(...w);return p.jsx(T.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{...e.style,[c.startEdge]:h+"%",[c.endEdge]:i+"%"}})});ne.displayName=N;var L="SliderThumb",oe=l.forwardRef((e,t)=>{const o=Se(e.__scopeSlider),[n,s]=l.useState(null),c=C(t,a=>s(a)),r=l.useMemo(()=>n?o().findIndex(a=>a.ref.current===n):-1,[o,n]);return p.jsx(we,{...e,ref:c,index:r})}),we=l.forwardRef((e,t)=>{const{__scopeSlider:o,index:n,name:s,...c}=e,r=V(L,o),a=Q(L,o),[u,w]=l.useState(null),h=C(t,D=>w(D)),i=u?r.form||!!u.closest("form"):!0,d=ue(u),v=r.values[n],R=v===void 0?0:ie(v,r.min,r.max),g=Re(n,r.values.length),m=d?.[a.size],f=m?Pe(m,R,a.direction):0;return l.useEffect(()=>{if(u)return r.thumbs.add(u),()=>{r.thumbs.delete(u)}},[u,r.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${R}% + ${f}px)`},children:[p.jsx(H.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(T.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...c,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{r.valueIndexToChangeRef.current=n})})}),i&&p.jsx(re,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},n)]})});oe.displayName=L;var xe="RadioBubbleInput",re=l.forwardRef(({__scopeSlider:e,value:t,...o},n)=>{const s=l.useRef(null),c=C(s,n),r=me(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(r!==t&&h){const i=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsx(T.input,{style:{display:"none"},...o,ref:c,defaultValue:t})});re.displayName=xe;function be(e=[],t,o){const n=[...e];return n[o]=t,n.sort((s,c)=>s-c)}function ie(e,t,o){const c=100/(o-t)*(e-t);return Y(c,[0,100])}function Re(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-t)),n=Math.min(...o);return o.indexOf(n)}function Pe(e,t,o){const n=e/2,c=O([0,50],[0,n]);return(n-c(t)*o)*o}function De(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function Ee(e,t){if(t>0){const o=De(e);return Math.min(...o)>=t}return!0}function O(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var Ie=q,Ae=te,Te=ne,Ve=oe;export{Te as R,Ae as T,Ie as a,Ve as b};
1
+ import{r as l,b$ as ce,j as p,c5 as _,c4 as T,c2 as C,ca as le,b_ as de,cm as ue,ci as fe,cb as me}from"./index-CnlrqsCd.js";import{c as Y}from"./index-BdQq_4o_.js";var $=["PageUp","PageDown"],X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],G={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[H,Se,pe]=le(M),[W]=fe(M,[pe]),[he,V]=W(M),q=l.forwardRef((e,t)=>{const{name:o,min:n=0,max:s=100,step:c=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:w=[n],value:h,onValueChange:i=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:R,...g}=e,m=l.useRef(new Set),f=l.useRef(0),x=r==="horizontal"?ge:ve,[S=[],K]=ce({prop:h,defaultProp:w,onChange:b=>{[...m.current][f.current]?.focus(),i(b)}}),j=l.useRef(S);function B(b){const y=ye(S,b);I(b,y)}function se(b){I(b,f.current)}function ae(){const b=j.current[f.current];S[f.current]!==b&&d(S)}function I(b,y,{commit:k}={commit:!1}){const U=_e(c),z=Ce(Math.round((b-n)/c)*c+n,U),A=Y(z,[n,s]);K((E=[])=>{const P=be(E,A,y);if(Ee(P,u*c)){f.current=P.indexOf(A);const F=String(P)!==String(E);return F&&k&&d(P),F?P:E}else return E})}return p.jsx(he,{scope:e.__scopeSlider,name:o,disabled:a,min:n,max:s,valueIndexToChangeRef:f,thumbs:m.current,values:S,orientation:r,form:R,children:p.jsx(H.Provider,{scope:e.__scopeSlider,children:p.jsx(H.Slot,{scope:e.__scopeSlider,children:p.jsx(x,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(j.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:B,onSlideMove:a?void 0:se,onSlideEnd:a?void 0:ae,onHomeKeyDown:()=>!a&&I(n,0,{commit:!0}),onEndKeyDown:()=>!a&&I(s,S.length-1,{commit:!0}),onStepKeyDown:({event:b,direction:y})=>{if(!a){const z=$.includes(b.key)||b.shiftKey&&X.includes(b.key)?10:1,A=f.current,E=S[A],P=c*z*y;I(E+P,A,{commit:!0})}}})})})})});q.displayName=M;var[J,Q]=W(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:o,max:n,dir:s,inverted:c,onSlideStart:r,onSlideMove:a,onSlideEnd:u,onStepKeyDown:w,...h}=e,[i,d]=l.useState(null),v=C(t,x=>d(x)),R=l.useRef(void 0),g=de(s),m=g==="ltr",f=m&&!c||!m&&c;function D(x){const S=R.current||i.getBoundingClientRect(),K=[0,S.width],B=O(K,f?[o,n]:[n,o]);return R.current=S,B(x-S.left)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:p.jsx(Z,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=D(x.clientX);r?.(S)},onSlideMove:x=>{const S=D(x.clientX);a?.(S)},onSlideEnd:()=>{R.current=void 0,u?.()},onStepKeyDown:x=>{const K=G[f?"from-left":"from-right"].includes(x.key);w?.({event:x,direction:K?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:o,max:n,inverted:s,onSlideStart:c,onSlideMove:r,onSlideEnd:a,onStepKeyDown:u,...w}=e,h=l.useRef(null),i=C(t,h),d=l.useRef(void 0),v=!s;function R(g){const m=d.current||h.current.getBoundingClientRect(),f=[0,m.height],x=O(f,v?[n,o]:[o,n]);return d.current=m,x(g-m.top)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:p.jsx(Z,{"data-orientation":"vertical",...w,ref:i,style:{...w.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const m=R(g.clientY);c?.(m)},onSlideMove:g=>{const m=R(g.clientY);r?.(m)},onSlideEnd:()=>{d.current=void 0,a?.()},onStepKeyDown:g=>{const f=G[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),Z=l.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:u,...w}=e,h=V(M,o);return p.jsx(T.span,{...w,ref:t,onKeyDown:_(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):$.concat(X).includes(i.key)&&(u(i),i.preventDefault())}),onPointerDown:_(e.onPointerDown,i=>{const d=i.target;d.setPointerCapture(i.pointerId),i.preventDefault(),h.thumbs.has(d)?d.focus():n(i)}),onPointerMove:_(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:_(e.onPointerUp,i=>{const d=i.target;d.hasPointerCapture(i.pointerId)&&(d.releasePointerCapture(i.pointerId),c(i))})})}),ee="SliderTrack",te=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(ee,o);return p.jsx(T.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:t})});te.displayName=ee;var N="SliderRange",ne=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(N,o),c=Q(N,o),r=l.useRef(null),a=C(t,r),u=s.values.length,w=s.values.map(d=>ie(d,s.min,s.max)),h=u>1?Math.min(...w):0,i=100-Math.max(...w);return p.jsx(T.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{...e.style,[c.startEdge]:h+"%",[c.endEdge]:i+"%"}})});ne.displayName=N;var L="SliderThumb",oe=l.forwardRef((e,t)=>{const o=Se(e.__scopeSlider),[n,s]=l.useState(null),c=C(t,a=>s(a)),r=l.useMemo(()=>n?o().findIndex(a=>a.ref.current===n):-1,[o,n]);return p.jsx(we,{...e,ref:c,index:r})}),we=l.forwardRef((e,t)=>{const{__scopeSlider:o,index:n,name:s,...c}=e,r=V(L,o),a=Q(L,o),[u,w]=l.useState(null),h=C(t,D=>w(D)),i=u?r.form||!!u.closest("form"):!0,d=ue(u),v=r.values[n],R=v===void 0?0:ie(v,r.min,r.max),g=Re(n,r.values.length),m=d?.[a.size],f=m?Pe(m,R,a.direction):0;return l.useEffect(()=>{if(u)return r.thumbs.add(u),()=>{r.thumbs.delete(u)}},[u,r.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${R}% + ${f}px)`},children:[p.jsx(H.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(T.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...c,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{r.valueIndexToChangeRef.current=n})})}),i&&p.jsx(re,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},n)]})});oe.displayName=L;var xe="RadioBubbleInput",re=l.forwardRef(({__scopeSlider:e,value:t,...o},n)=>{const s=l.useRef(null),c=C(s,n),r=me(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(r!==t&&h){const i=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsx(T.input,{style:{display:"none"},...o,ref:c,defaultValue:t})});re.displayName=xe;function be(e=[],t,o){const n=[...e];return n[o]=t,n.sort((s,c)=>s-c)}function ie(e,t,o){const c=100/(o-t)*(e-t);return Y(c,[0,100])}function Re(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-t)),n=Math.min(...o);return o.indexOf(n)}function Pe(e,t,o){const n=e/2,c=O([0,50],[0,n]);return(n-c(t)*o)*o}function De(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function Ee(e,t){if(t>0){const o=De(e);return Math.min(...o)>=t}return!0}function O(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var Ie=q,Ae=te,Te=ne,Ve=oe;export{Te as R,Ae as T,Ie as a,Ve as b};
@@ -0,0 +1 @@
1
+ import{c as j,ar as W,at as q,b as E,r as z,d as G,j as o,aR as $,R as I,P as N,n as U,B as k,b5 as V}from"./index-CnlrqsCd.js";import{u as K}from"./use-mobile-dNUmCifC.js";import{T as Y,a as Z,c as J}from"./tooltip-iXXWa3VG.js";import{t as Q,a as X}from"./MessageCircle01-dCZEdQhF.js";import{s as ee}from"./XClose-BAaBoHXT.js";import{b as te}from"./thread-button-D5DY5gNU.js";import{T as ne}from"./toolbar-icon-button-BzpP1rEG.js";import{b as se,R as oe,a as D}from"./resizable-BlRMDdrh.js";import{c as re,r as ie,m as le}from"./use-chat-layout-state-C8KgaHCk.js";import{R as ae}from"./route-page-header-X-mAmINr.js";import"./index-DEg1eCWz.js";import"./use-sidebar-collapsed-euA02TXK.js";import"./sheet-p2Ousfn8.js";import"./use-in-settings-DF-tVIoE.js";import"./use-panel-navigate-BtwQP9g-.js";import"./thread-route-BizqFXgE.js";import"./use-project-scope-B49l3tYT.js";import"./repository-binding-B-NGFlA8.js";import"./use-mcp-client-Bq8ol96W.js";import"./auth-CNYHKCFg.js";import"./LayoutLeft-C8ndIALE.js";import"./use-current-view-DbaDobC4.js";function A(t,e){const n=typeof t=="number"?t:Number(t);return!Number.isFinite(n)||n<=0||n>=100?e:n}function ce(t,e){const n=j.c(8);let r;n[0]!==e?(r=c=>A(c,e),n[0]=e,n[1]=r):r=n[1];const[i,l]=W(t,r);let s;n[2]!==e||n[3]!==i?(s=A(i,e),n[2]=e,n[3]=i,n[4]=s):s=n[4];let a;return n[5]!==l||n[6]!==s?(a=[s,l],n[5]=l,n[6]=s,n[7]=a):a=n[7],a}const ue=33;function de(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=q.sidePanelWidth(),t[0]=e):e=t[0],ce(e,ue)}const P="chat-layout-thread",M="chat-layout-content",H="320px",O=z.createContext(null);function Fe(){return T()}function fe(){return z.use(O)}function T(){const t=z.use(O);if(!t)throw new Error("ChatLayout regions require a ChatLayout");return t}function he(t){const e=j.c(22),{children:n,...r}=t,i=K(),l=G(),s=z.useRef(null),[a,c]=de(),{threadOpen:u,contentOpen:d}=r,h=re(r),m=u&&d?a:h.side,p=100-m,y=b=>{const v=b.getLayout(),w=v[P],S=v[M];typeof w!="number"||typeof S!="number"||Math.abs(w-m)<.001&&Math.abs(S-p)<.001||b.setLayout({[P]:m,[M]:p})},C=ie(r);let x;e[0]!==i||e[1]!==r||e[2]!==C?(x={...r,isMobile:i,mobileSurface:C},e[0]=i,e[1]=r,e[2]=C,e[3]=x):x=e[3];const f=x;let g;e[4]!==i||e[5]!==r||e[6]!==l||e[7]!==f?(g=i&&!r.threadless&&o.jsx(te,{open:f.mobileSurface==="chat",onToggle:()=>{l({to:".",search:b=>({...b,...le(f.mobileSurface==="chat"?"main":"chat")}),replace:!0})}}),e[4]=i,e[5]=r,e[6]=l,e[7]=f,e[8]=g):g=e[8];let L;e[9]!==n||e[10]!==d||e[11]!==p||e[12]!==i||e[13]!==c||e[14]!==y||e[15]!==u||e[16]!==m?(L=i?o.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:n}):o.jsx(oe,{ref:b=>{if(s.current=b,!b)return;let v=!0;return queueMicrotask(()=>{v&&y(b)}),()=>{v=!1,s.current===b&&(s.current=null)}},defaultLayout:{[P]:m,[M]:p},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0",style:{overflow:"visible"},onLayoutChanged:(b,v)=>{const{isUserInteraction:w}=v;if(!w){const B=s.current;B&&y(B);return}const S=b[P];u&&d&&typeof S=="number"&&S>0&&S<100&&c(S)},children:n}),e[9]=n,e[10]=d,e[11]=p,e[12]=i,e[13]=c,e[14]=y,e[15]=u,e[16]=m,e[17]=L):L=e[17];let _;return e[18]!==g||e[19]!==L||e[20]!==f?(_=o.jsxs(O,{value:f,children:[g,L]}),e[18]=g,e[19]=L,e[20]=f,e[21]=_):_=e[21],_}function me(t){const e=j.c(14),{children:n,topbar:r}=t,i=T();if(i.isMobile){let u;return e[0]!==n||e[1]!==i.mobileSurface||e[2]!==r?(u=i.mobileSurface==="chat"?o.jsxs(N,{variant:"plain","data-slot":"chat-layout-thread",children:[r,o.jsx(N.Content,{"data-testid":"chat-panel",children:n})]}):null,e[0]=n,e[1]=i.mobileSurface,e[2]=r,e[3]=u):u=e[3],u}if(!i.threadOpen)return null;let l;e[4]!==i.contentOpen?(l=i.contentOpen&&o.jsx(se,{className:"bg-sidebar"}),e[4]=i.contentOpen,e[5]=l):l=e[5];let s;e[6]!==n?(s=o.jsx(N.Content,{"data-testid":"chat-panel",children:n}),e[6]=n,e[7]=s):s=e[7];let a;e[8]!==s||e[9]!==r?(a=o.jsx(D,{id:P,defaultSize:"33%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsx("div",{className:"h-full min-h-0 p-0.5",children:o.jsxs(N,{"data-testid":"side-panel",children:[r,s]})})}),e[8]=s,e[9]=r,e[10]=a):a=e[10];let c;return e[11]!==l||e[12]!==a?(c=o.jsxs(o.Fragment,{children:[l,a]}),e[11]=l,e[12]=a,e[13]=c):c=e[13],c}function F(t){const e=j.c(10),{label:n,pressed:r,onClick:i,children:l}=t;let s;e[0]!==l||e[1]!==n||e[2]!==i||e[3]!==r?(s=o.jsx(Y,{asChild:!0,children:o.jsx(ne,{"aria-label":n,"aria-pressed":r,onClick:i,children:l})}),e[0]=l,e[1]=n,e[2]=i,e[3]=r,e[4]=s):s=e[4];let a;e[5]!==n?(a=o.jsx(Z,{side:"bottom",children:n}),e[5]=n,e[6]=a):a=e[6];let c;return e[7]!==s||e[8]!==a?(c=o.jsxs(J,{children:[s,a]}),e[7]=s,e[8]=a,e[9]=c):c=e[9],c}function pe(){const t=j.c(12),e=E(),n=T();if(n.isMobile||n.threadless)return null;const r=!n.threadOpen;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("span",{"aria-hidden":!0,className:"mr-1.5 h-4 w-px shrink-0 bg-border"}),t[0]=i):i=t[0];let l;t[1]!==r||t[2]!==n.toggleFullscreen||t[3]!==e?(l=r?o.jsxs(k,{variant:"ghost",size:"sm","aria-pressed":r,className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:n.toggleFullscreen,children:[o.jsx(Q,{size:16}),e("page.exitFullscreen")]}):o.jsx(F,{label:e("page.enterFullscreen"),pressed:r,onClick:n.toggleFullscreen,children:o.jsx(X,{size:16})}),t[1]=r,t[2]=n.toggleFullscreen,t[3]=e,t[4]=l):l=t[4];let s;t[5]!==r||t[6]!==n.toggleContent||t[7]!==e?(s=!r&&o.jsx(F,{label:e("page.closeMainPanel"),onClick:n.toggleContent,children:o.jsx(ee,{size:16})}),t[5]=r,t[6]=n.toggleContent,t[7]=e,t[8]=s):s=t[8];let a;return t[9]!==l||t[10]!==s?(a=o.jsxs("div",{className:"flex items-center gap-0.5",children:[i,l,s]}),t[9]=l,t[10]=s,t[11]=a):a=t[11],a}function Ke(){const t=j.c(9),e=E(),n=K(),r=fe();if(n||!r||r.threadless||r.contentOpen)return null;const i=r.toggleContent;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(xe,{}),t[0]=l):l=t[0];let s;t[1]!==e?(s=e("page.openMainPanel"),t[1]=e,t[2]=s):s=t[2];let a;t[3]!==r.toggleContent||t[4]!==s?(a=o.jsxs(k,{variant:"ghost",size:"sm",className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:i,children:[l,s]}),t[3]=r.toggleContent,t[4]=s,t[5]=a):a=t[5];let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("span",{"aria-hidden":!0,className:"mx-1 h-4 w-px shrink-0 bg-border"}),t[6]=c):c=t[6];let u;return t[7]!==a?(u=o.jsxs(o.Fragment,{children:[a,c]}),t[7]=a,t[8]=u):u=t[8],u}function xe(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"shrink-0",children:o.jsx("path",{d:"M4 5v14M8 12h12m0 0-6-6m6 6-6 6"})}),t[0]=e):e=t[0],e}function ge({children:t,routeId:e}){return t}function R(t){const e=j.c(26),{children:n,actions:r,drawer:i,aside:l}=t,s=T();if(s.isMobile&&s.mobileSurface!=="main")return null;const a=s.isMobile?"plain":"card";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(pe,{}),e[0]=c):c=e[0];let u;e[1]!==r||e[2]!==s.contentNavigation?(u=o.jsx(ae,{navigation:s.contentNavigation,actions:r,trailingActions:c}),e[1]=r,e[2]=s.contentNavigation,e[3]=u):u=e[3];let d;e[4]!==n||e[5]!==s.contentKey?(d=o.jsx($,{children:o.jsx(ge,{routeId:s.contentKey,children:n})}),e[4]=n,e[5]=s.contentKey,e[6]=d):d=e[6];let h;e[7]!==s.contentKey||e[8]!==d?(h=o.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:o.jsx(I,{children:d},s.contentKey)}),e[7]=s.contentKey,e[8]=d,e[9]=h):h=e[9];let m;e[10]!==i||e[11]!==h?(m=o.jsxs(N.Content,{children:[h,i]}),e[10]=i,e[11]=h,e[12]=m):m=e[12];let p;e[13]!==u||e[14]!==m?(p=o.jsxs(U.Breadcrumbs.Provider,{children:[u,m]}),e[13]=u,e[14]=m,e[15]=p):p=e[15];let y;e[16]!==a||e[17]!==p?(y=o.jsx(N,{"data-testid":"main-panel",variant:a,children:p}),e[16]=a,e[17]=p,e[18]=y):y=e[18];const C=y;if(s.isMobile)return C;if(!s.contentOpen)return null;let x;e[19]!==C?(x=o.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:C}),e[19]=C,e[20]=x):x=e[20];let f;e[21]!==l?(f=l&&o.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:o.jsx(N,{"data-testid":"aside-panel",children:o.jsx(I,{children:o.jsx($,{children:l})},z.isValidElement(l)?l.key??void 0:void 0)})}),e[21]=l,e[22]=f):f=e[22];let g;return e[23]!==f||e[24]!==x?(g=o.jsx(D,{id:M,defaultSize:"67%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsxs("div",{className:"flex h-full min-h-0",children:[x,f]})}),e[23]=f,e[24]=x,e[25]=g):g=e[25],g}function De(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(R,{children:o.jsx(V,{})}),t[0]=e):e=t[0],e}function He(t){const e=j.c(18),{error:n,reset:r}=t,i=E();let l;e[0]!==i?(l=i("common.errorBoundary.somethingWentWrong"),e[0]=i,e[1]=l):l=e[1];let s;e[2]!==l?(s=o.jsx("h2",{className:"text-lg font-medium",children:l}),e[2]=l,e[3]=s):s=e[3];let a;e[4]!==n.message||e[5]!==i?(a=n.message||i("common.errorBoundary.unexpectedError"),e[4]=n.message,e[5]=i,e[6]=a):a=e[6];let c;e[7]!==a?(c=o.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:a}),e[7]=a,e[8]=c):c=e[8];let u;e[9]!==i?(u=i("common.errorBoundary.tryAgain"),e[9]=i,e[10]=u):u=e[10];let d;e[11]!==r||e[12]!==u?(d=o.jsx(k,{variant:"outline",onClick:r,children:u}),e[11]=r,e[12]=u,e[13]=d):d=e[13];let h;return e[14]!==s||e[15]!==c||e[16]!==d?(h=o.jsx(R,{children:o.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[s,c,d]})}),e[14]=s,e[15]=c,e[16]=d,e[17]=h):h=e[17],h}const We=Object.assign(he,{Thread:me,Content:R});export{We as ChatLayout,He as ChatLayoutError,De as ChatLayoutPending,Ke as OpenMainPanelButton,Fe as useChatLayout,fe as useOptionalChatLayout};
@@ -1 +1 @@
1
- import{r as s,b_ as L,b$ as B,j as c,f_ as q,c4 as x,c2 as E,fZ as K,c5 as C,f$ as I,d$ as T,ci as w,cb as U,cm as V}from"./index-Biams685.js";var _="Radio",[$,P]=w(_),[z,H]=$(_),k=s.forwardRef((t,d)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=E(d,b=>m(b)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return c.jsxs(z,{scope:o,checked:e,disabled:a,children:[c.jsx(x.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:C(t.onClick,b=>{e||f?.(),h&&(u.current=b.isPropagationStopped(),u.current||b.stopPropagation())})}),h&&c.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=_;var g="RadioIndicator",G=s.forwardRef((t,d)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=H(g,o);return c.jsx(T,{present:n||r.checked,children:c.jsx(x.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:d})})});G.displayName=g;var W="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:d,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=E(a,r),f=U(o),R=V(d);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),c.jsx(x.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=W;function A(t){return t?"checked":"unchecked"}var X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y="RadioGroup",[Y]=w(y,[I,P]),j=I(),N=P(),[Z,J]=Y(y),D=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=L(R),[h,b]=B({prop:r,defaultProp:e??null,onChange:p,caller:y});return c.jsx(Z,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:b,children:c.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:c.jsx(x.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:d})})})});D.displayName=y;var M="RadioGroupItem",O=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=J(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=E(d,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{X.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),c.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:c.jsx(k,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:C(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:C(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var Q="RadioGroupIndicator",F=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return c.jsx(G,{...e,...n,ref:d})});F.displayName=Q;var oe=D,re=O,te=F;export{re as I,oe as R,te as a};
1
+ import{r as s,b_ as L,b$ as B,j as c,f_ as q,c4 as x,c2 as E,fZ as K,c5 as C,f$ as I,d$ as T,ci as w,cb as U,cm as V}from"./index-CnlrqsCd.js";var _="Radio",[$,P]=w(_),[z,H]=$(_),k=s.forwardRef((t,d)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=E(d,b=>m(b)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return c.jsxs(z,{scope:o,checked:e,disabled:a,children:[c.jsx(x.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:C(t.onClick,b=>{e||f?.(),h&&(u.current=b.isPropagationStopped(),u.current||b.stopPropagation())})}),h&&c.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=_;var g="RadioIndicator",G=s.forwardRef((t,d)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=H(g,o);return c.jsx(T,{present:n||r.checked,children:c.jsx(x.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:d})})});G.displayName=g;var W="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:d,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=E(a,r),f=U(o),R=V(d);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),c.jsx(x.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=W;function A(t){return t?"checked":"unchecked"}var X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y="RadioGroup",[Y]=w(y,[I,P]),j=I(),N=P(),[Z,J]=Y(y),D=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=L(R),[h,b]=B({prop:r,defaultProp:e??null,onChange:p,caller:y});return c.jsx(Z,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:b,children:c.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:c.jsx(x.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:d})})})});D.displayName=y;var M="RadioGroupItem",O=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=J(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=E(d,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{X.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),c.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:c.jsx(k,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:C(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:C(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var Q="RadioGroupIndicator",F=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return c.jsx(G,{...e,...n,ref:d})});F.displayName=Q;var oe=D,re=O,te=F;export{re as I,oe as R,te as a};
@@ -1 +1 @@
1
- import{c as v,a4 as z,K as Y,i as U,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aS as Z,w as J,v as ee,D as te}from"./index-Biams685.js";import{n as se}from"./ArrowUp-DsFRA_-F.js";import{u as H,f as G,T as ne,A as ae,n as re,o as ie,b as oe,c as le,p as ce,q as ue,t as de,L as fe}from"./chat-context-oV4F8WQc.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-CeB8s6SZ.js";import{u as je,a as ve,S as be,M as A}from"./pair-CgVGpWTx.js";import{A as ye,f as Q}from"./agent-icon-CmYgsdkA.js";import{n as Ne}from"./use-sandbox-events-D1U-YJTq.js";import{a as Ce}from"./agent-capabilities-pZr4u-WY.js";import{a as we}from"./repository-binding-CWTr70tX.js";import{c as Se,i as ke}from"./thread-intent-B4ztyrl0.js";import{a as Te}from"./use-panel-navigate-Du4Vt0nC.js";import{N as $e}from"./index-BAqfesXo.js";import{i as Ee}from"./ArrowRight-BSOOXYJl.js";import{d as De}from"./use-entitlements-DczHLBrX.js";import{u as Pe}from"./use-deco-credits-C7-mSVdn.js";import{F as _e}from"./feature-paywall-TG7L-qMr.js";import{i as Ie}from"./AlertCircle-BuSYYXoB.js";const Oe=15e3;function Me(e,t,n){const s=v.c(20),r=n===void 0?{}:n,{org:a}=z(),i=we(e);let c;s[0]!==t||s[1]!==i?.metadata||s[2]!==e?(c=!!e&&!!t&&Ce(i?.metadata),s[0]=t,s[1]=i?.metadata,s[2]=e,s[3]=c):c=s[3];const u=c;let o;s[4]!==t||s[5]!==a.slug||s[6]!==e?(o=Y.chatDraftChanges(a.slug,e??"",t??""),s[4]=t,s[5]=a.slug,s[6]=e,s[7]=o):o=s[7];let d;s[8]!==t||s[9]!==a.slug||s[10]!==e?(d=()=>Ne(a.slug,e,t),s[8]=t,s[9]=a.slug,s[10]=e,s[11]=d):d=s[11];const p=r.poll===!1?!1:Oe;let g;s[12]!==u||s[13]!==o||s[14]!==d||s[15]!==p?(g={queryKey:o,queryFn:d,enabled:u,refetchInterval:p,retry:!1},s[12]=u,s[13]=o,s[14]=d,s[15]=p,s[16]=g):g=s[16];const{data:m}=U(g),f=m===void 0?0:m,x=u?i:null;let h;return s[17]!==f||s[18]!==x?(h={project:x,changeCount:f},s[17]=f,s[18]=x,s[19]=h):h=s[19],h}function Fe(){const e=v.c(7),t=H(),n=G(),s=t?.virtualMcpId??null,r=t?.currentBranch??null,{project:a,changeCount:i}=Me(s,r);if(!a||!s||!r||i===0)return null;const c=a.icon??null,u=!!n&&(n.isRunInProgress||n.status==="streaming"||n.status==="submitted");let o;return e[0]!==r||e[1]!==i||e[2]!==a.title||e[3]!==c||e[4]!==u||e[5]!==s?(o={virtualMcpId:s,projectTitle:a.title,projectIcon:c,branch:r,changeCount:i,editing:u},e[0]=r,e[1]=i,e[2]=a.title,e[3]=c,e[4]=u,e[5]=s,e[6]=o):o=e[6],o}function Re(e){const t=v.c(24),{icon:n,title:s,subtitle:r,status:a,detail:i,action:c,className:u}=e;let o;t[0]!==u?(o=$("rounded-xl border border-border bg-card p-3",u),t[0]=u,t[1]=o):o=t[1];let d;t[2]!==n?(d=l.jsx("div",{className:"shrink-0",children:n}),t[2]=n,t[3]=d):d=t[3];let p;t[4]!==s?(p=l.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:s}),t[4]=s,t[5]=p):p=t[5];let g;t[6]!==r?(g=r&&l.jsx("p",{className:"truncate text-xs text-muted-foreground",children:r}),t[6]=r,t[7]=g):g=t[7];let m;t[8]!==p||t[9]!==g?(m=l.jsxs("div",{className:"min-w-0 flex-1",children:[p,g]}),t[8]=p,t[9]=g,t[10]=m):m=t[10];let f;t[11]!==a?(f=a&&l.jsx("span",{className:"flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground",children:a}),t[11]=a,t[12]=f):f=t[12];let x;t[13]!==d||t[14]!==m||t[15]!==f?(x=l.jsxs("div",{className:"flex items-center gap-2.5",children:[d,m,f]}),t[13]=d,t[14]=m,t[15]=f,t[16]=x):x=t[16];let h;t[17]!==c||t[18]!==i?(h=(i||c)&&l.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:i}),c]}),t[17]=c,t[18]=i,t[19]=h):h=t[19];let b;return t[20]!==o||t[21]!==x||t[22]!==h?(b=l.jsxs("div",{className:o,children:[x,h]}),t[20]=o,t[21]=x,t[22]=h,t[23]=b):b=t[23],b}function ze(e){const t=v.c(10),{draft:n}=e,s=M(),r=n.editing?"animate-pulse bg-warning":"bg-success";let a;t[0]!==r?(a=$("size-1.5 rounded-full",r),t[0]=r,t[1]=a):a=t[1];let i;t[2]!==a?(i=l.jsx("span",{"aria-hidden":!0,className:a}),t[2]=a,t[3]=i):i=t[3];const c=n.editing?"chat.draft.editing":"chat.draft.ready";let u;t[4]!==s||t[5]!==c?(u=s(c),t[4]=s,t[5]=c,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==u?(o=l.jsxs(l.Fragment,{children:[i,u]}),t[7]=i,t[8]=u,t[9]=o):o=t[9],o}function Be(e){const t=v.c(11),{draft:n}=e,s=M(),{org:r}=z(),a=H()?.taskId??null;let i;t[0]!==n.virtualMcpId||t[1]!==r.slug?(i={org:r.slug,agentId:n.virtualMcpId},t[0]=n.virtualMcpId,t[1]=r.slug,t[2]=i):i=t[2];let c;t[3]!==a?(c=a?{thread:a}:{},t[3]=a,t[4]=c):c=t[4];let u;t[5]!==s?(u=s("chat.draft.open"),t[5]=s,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==c||t[9]!==u?(o=l.jsx(B,{variant:"outline",size:"sm",asChild:!0,children:l.jsx(V,{to:"/$org/projects/$agentId/site-editor",params:i,search:c,children:u})}),t[7]=i,t[8]=c,t[9]=u,t[10]=o):o=t[10],o}function q(){const e=v.c(20),t=M(),n=Fe();if(!n)return null;let s;e[0]!==n.projectIcon||e[1]!==n.projectTitle?(s=l.jsx(ye,{icon:n.projectIcon,name:n.projectTitle,size:"sm"}),e[0]=n.projectIcon,e[1]=n.projectTitle,e[2]=s):s=e[2];const r=n.projectTitle;let a;e[3]!==n.branch?(a=l.jsx("span",{className:"font-mono",children:n.branch}),e[3]=n.branch,e[4]=a):a=e[4];let i;e[5]!==n?(i=l.jsx(ze,{draft:n}),e[5]=n,e[6]=i):i=e[6];const c=n.changeCount===1?"chat.draft.change":"chat.draft.changes";let u;e[7]!==n.changeCount||e[8]!==t||e[9]!==c?(u=t(c,{count:n.changeCount}),e[7]=n.changeCount,e[8]=t,e[9]=c,e[10]=u):u=e[10];let o;e[11]!==n?(o=l.jsx(Be,{draft:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==n.projectTitle||e[14]!==s||e[15]!==a||e[16]!==i||e[17]!==u||e[18]!==o?(d=l.jsx(Re,{className:"mx-2.5 mb-6",icon:s,title:r,subtitle:a,status:i,detail:u,action:o}),e[13]=n.projectTitle,e[14]=s,e[15]=a,e[16]=i,e[17]=u,e[18]=o,e[19]=d):d=e[19],d}function He(e){return e.parts.some(t=>t.type==="dynamic-tool"||t.type.startsWith("tool-"))}function Le(e){let t=0;for(const n of e)for(const s of n.parts??[]){const r=s;r.type==="tool-load_repo"&&r.state==="output-available"&&r.output?.success===!0&&t++}return t}function Ae(){const e=v.c(11),{openPanel:t}=Te(),n=Se(),s=G()?.messages??[],r=H(),a=r?.taskId??null,i=r?.currentBranch;let c;e[0]!==i?(c=ke(i),e[0]=i,e[1]=c):c=e[1];const u=c;let o;e[2]!==s?(o=Le(s),e[2]=s,e[3]=o):o=e[3];const d=o,p=w.useRef(null),g=w.useRef(null);let m,f;e[4]!==u||e[5]!==d||e[6]!==n||e[7]!==t||e[8]!==a?(m=()=>{if(!d||!a)return;const x=`${a}:${d}`;g.current!==x&&(g.current=x,n?.refreshThreadMetadata(a)),p.current!==a&&(p.current=a,u||t("site-editor"))},f=[d,a,t,n,u],e[4]=u,e[5]=d,e[6]=n,e[7]=t,e[8]=a,e[9]=m,e[10]=f):(m=e[9],f=e[10]),w.useEffect(m,f)}function W(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(W(e))==="1"}catch{return!1}}function qe(){const e=v.c(56),t=M(),{org:n}=z(),s=De("credits"),r=K(),{decoKeyId:a}=Pe(),[i,c]=w.useState(!0);let u;e[0]!==n.id?(u=()=>{L("credits_empty_state_dismissed",{organization_id:n.id}),c(!1);try{localStorage.setItem(W(n.id),"1")}catch{}},e[0]=n.id,e[1]=u):u=e[1];const o=u;let d,p;if(e[2]!==i||e[3]!==n.id?(d=()=>{i&&L("credits_empty_state_shown",{organization_id:n.id})},p=[i,n.id],e[2]=i,e[3]=n.id,e[4]=d,e[5]=p):(d=e[4],p=e[5]),w.useEffect(d,p),!i)return null;if(!s){let k;e[6]!==t?(k=t("chat.input.allowanceExhaustedTitle"),e[6]=t,e[7]=k):k=e[7];let O;e[8]!==k?(O={title:k},e[8]=k,e[9]=O):O=e[9];let R;return e[10]!==o||e[11]!==O?(R=l.jsx(_e,{feature:"chat",copy:O,onDismiss:o}),e[10]=o,e[11]=O,e[12]=R):R=e[12],R}let g;e[13]!==o?(g=k=>!k&&o(),e[13]=o,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:l.jsx(Q,{size:20,className:"text-warning"})}),e[16]=f):f=e[16];let x;e[17]!==t?(x=t("chat.creditsEmptyState.title"),e[17]=t,e[18]=x):x=e[18];let h;e[19]!==x?(h=l.jsx(X,{className:"text-lg font-semibold",children:x}),e[19]=x,e[20]=h):h=e[20];let b;e[21]!==t?(b=t("chat.creditsEmptyState.description"),e[21]=t,e[22]=b):b=e[22];let N;e[23]!==b?(N=l.jsx(Z,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:b}),e[23]=b,e[24]=N):N=e[24];let C;e[25]!==h||e[26]!==N?(C=l.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[m,l.jsxs(J,{className:"relative gap-3",children:[f,l.jsxs("div",{className:"text-center",children:[h,N]})]})]}),e[25]=h,e[26]=N,e[27]=C):C=e[27];let y;e[28]!==a||e[29]!==o?(y=a&&l.jsx("div",{className:"px-6 pb-5",children:l.jsx(me,{source:"empty_state",onDone:o})}),e[28]=a,e[29]=o,e[30]=y):y=e[30];let S;e[31]!==o||e[32]!==r||e[33]!==n.slug?(S=()=>{r({to:"/$org/settings/ai-providers",params:{org:n.slug}}),o()},e[31]=o,e[32]=r,e[33]=n.slug,e[34]=S):S=e[34];let j;e[35]!==t?(j=t("chat.creditsEmptyState.useYourOwnProvider"),e[35]=t,e[36]=j):j=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(Ee,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),e[37]=T):T=e[37];let E;e[38]!==S||e[39]!==j?(E=l.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:S,children:[j,T]}),e[38]=S,e[39]=j,e[40]=E):E=e[40];let D;e[41]!==t?(D=t("chat.creditsEmptyState.skipForNow"),e[41]=t,e[42]=D):D=e[42];let P;e[43]!==o||e[44]!==D?(P=l.jsx(B,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:o,children:D}),e[43]=o,e[44]=D,e[45]=P):P=e[45];let _;e[46]!==E||e[47]!==P?(_=l.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[E,P]}),e[46]=E,e[47]=P,e[48]=_):_=e[48];let I;e[49]!==C||e[50]!==y||e[51]!==_?(I=l.jsxs(ee,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ke,children:[C,y,_]}),e[49]=C,e[50]=y,e[51]=_,e[52]=I):I=e[52];let F;return e[53]!==I||e[54]!==g?(F=l.jsx(te,{open:!0,onOpenChange:g,children:I}),e[53]=I,e[54]=g,e[55]=F):F=e[55],F}function Ke(e){return e.preventDefault()}function Ge(e){const t=v.c(6),{balanceDollars:n}=e;let s;t[0]!==n?(s=n.toFixed(2),t[0]=n,t[1]=s):s=t[1];const r=s;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),i=l.jsx(Q,{size:13,className:"text-success"}),t[2]=a,t[3]=i):(a=t[2],i=t[3]);let c;return t[4]!==r?(c=l.jsxs("div",{className:a,children:[i,l.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",r," in credits to get started"]})]}),t[4]=r,t[5]=c):c=t[5],c}function Qe(){const e=v.c(8),{org:t}=z(),n=K();let s;e[0]!==n||e[1]!==t.slug?(s=()=>n({to:"/$org/settings/ai-providers",params:{org:t.slug}}),e[0]=n,e[1]=t.slug,e[2]=s):s=e[2];let r,a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),a=l.jsx(Ie,{size:13,className:"text-warning"}),i=l.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),e[3]=r,e[4]=a,e[5]=i):(r=e[3],a=e[4],i=e[5]);let c;return e[6]!==s?(c=l.jsxs("button",{type:"button",onClick:s,className:r,children:[a,i]}),e[6]=s,e[7]=c):c=e[7],c}function We(e){const t=v.c(7),{scrollRef:n,sentinelRef:s,hasMoreOlder:r,isFetchingOlder:a,fetchOlderMessages:i}=e;let c,u;t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==s?(c=()=>{const o=s.current,d=n.current;if(!o||!d||!r)return;const p=new IntersectionObserver(async g=>{if(!g[0]?.isIntersecting||a||!r)return;const f=d.scrollHeight,x=d.scrollTop;await i(),requestAnimationFrame(()=>{const h=d.scrollHeight;d.scrollTop=x+(h-f)})},{root:d,rootMargin:"200px 0px 0px 0px"});return p.observe(o),()=>p.disconnect()},u=[n,s,r,a,i],t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s,t[5]=c,t[6]=u):(c=t[5],u=t[6]),w.useEffect(c,u)}function Ye(e){const t=v.c(5),{className:n,children:s}=e;let r;t[0]!==n?(r=$("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),t[0]=n,t[1]=r):r=t[1];let a;return t[2]!==s||t[3]!==r?(a=l.jsx("div",{className:r,children:s}),t[2]=s,t[3]=r,t[4]=a):a=t[4],a}function Ue(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-1 min-h-0 overflow-y-auto isolate",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}function Ve(e){const t=v.c(2),{children:n}=e;let s;return t[0]!==n?(s=l.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:n}),t[0]=n,t[1]=s):s=t[1],s}function Xe(){const e=M(),{messages:t,status:n,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a,isRunInProgress:i}=oe(),{taskId:c}=le();Ae();const u=ce(c??""),o=ue(u),d=o.size===0?t:t.filter(j=>!o.has(j.id)),p=de(d,n==="submitted"||n==="streaming"||i),g=p.visible,m=je(g),f=m.at(-1),x=m.findIndex(j=>!!j.assistant&&He(j.assistant)),b=pe()*he+16,N=w.useRef(null),C=w.useRef(null);We({scrollRef:N,sentinelRef:C,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a});const y=ve({initial:!1}),S=j=>{N.current=j,y.scrollRef(j)};return l.jsx(fe.Provider,{value:p,children:l.jsx(be,{messages:t,children:l.jsxs("div",{className:"relative h-full w-full min-w-0",children:[l.jsx("div",{ref:S,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:b},children:l.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[l.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),r&&l.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:e("chat.chat.loadingOlderMessages")}),m.slice(0,-1).map((j,T)=>l.jsxs(w.Fragment,{children:[l.jsx(A,{pair:j,isLastPair:!1,status:T===m.length-1?n:void 0}),T===x&&l.jsx(q,{})]},`pair-${j.user?.id??j.assistant?.id}`))]}),f&&l.jsxs("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx(A,{pair:f,isLastPair:!0,status:n},`pair-${f.user?.id??f.assistant?.id}`),x===m.length-1&&l.jsx(q,{})]})]})}),!y.isAtBottom&&l.jsx(B,{type:"button",variant:"outline",size:"icon-sm","aria-label":e("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:b+8},onClick:()=>{y.scrollToBottom()},children:l.jsx(se,{size:14})})]})})})}function Ze(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}const ht=Object.assign(Ye,{Main:Ue,Messages:Xe,EmptyState:Ve,Footer:Ze,Input:xe,Provider:ie,StreamHost:re,ActiveTaskStreamSource:ae,ThreadlessStreamSource:ne,NoAiProviderEmptyState:$e,CreditsEmptyState:qe,CreditsEyebrow:Ge,NoCreditsEyebrow:Qe,CreditsExhaustedBanner:ge});export{ht as C,Me as u,pt as w};
1
+ import{c as v,a4 as z,K as Y,i as U,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aS as Z,w as J,v as ee,D as te}from"./index-CnlrqsCd.js";import{n as se}from"./ArrowUp-jwPYnWqs.js";import{u as H,f as G,T as ne,A as ae,n as re,o as ie,b as oe,c as le,p as ce,q as ue,t as de,L as fe}from"./chat-context-Cdr2Tzco.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-CzlhHu3g.js";import{u as je,a as ve,S as be,M as A}from"./pair-BqleDpPR.js";import{A as ye,f as Q}from"./agent-icon-Da3tHBMv.js";import{n as Ne}from"./use-sandbox-events-CNUqntlP.js";import{a as Ce}from"./agent-capabilities-BI0sCkjS.js";import{a as we}from"./repository-binding-B-NGFlA8.js";import{c as Se,i as ke}from"./thread-intent-CMPSad7_.js";import{a as Te}from"./use-panel-navigate-BtwQP9g-.js";import{N as $e}from"./index-xBV0t4Yq.js";import{i as Ee}from"./ArrowRight-DdCk_HCk.js";import{d as De}from"./use-entitlements-cKoK0gNm.js";import{u as Pe}from"./use-deco-credits-CH6PNQ_v.js";import{F as _e}from"./feature-paywall-DKi0OK9Z.js";import{i as Ie}from"./AlertCircle-BckhzGo9.js";const Oe=15e3;function Me(e,t,n){const s=v.c(20),r=n===void 0?{}:n,{org:a}=z(),i=we(e);let c;s[0]!==t||s[1]!==i?.metadata||s[2]!==e?(c=!!e&&!!t&&Ce(i?.metadata),s[0]=t,s[1]=i?.metadata,s[2]=e,s[3]=c):c=s[3];const u=c;let o;s[4]!==t||s[5]!==a.slug||s[6]!==e?(o=Y.chatDraftChanges(a.slug,e??"",t??""),s[4]=t,s[5]=a.slug,s[6]=e,s[7]=o):o=s[7];let d;s[8]!==t||s[9]!==a.slug||s[10]!==e?(d=()=>Ne(a.slug,e,t),s[8]=t,s[9]=a.slug,s[10]=e,s[11]=d):d=s[11];const p=r.poll===!1?!1:Oe;let g;s[12]!==u||s[13]!==o||s[14]!==d||s[15]!==p?(g={queryKey:o,queryFn:d,enabled:u,refetchInterval:p,retry:!1},s[12]=u,s[13]=o,s[14]=d,s[15]=p,s[16]=g):g=s[16];const{data:m}=U(g),f=m===void 0?0:m,x=u?i:null;let h;return s[17]!==f||s[18]!==x?(h={project:x,changeCount:f},s[17]=f,s[18]=x,s[19]=h):h=s[19],h}function Fe(){const e=v.c(7),t=H(),n=G(),s=t?.virtualMcpId??null,r=t?.currentBranch??null,{project:a,changeCount:i}=Me(s,r);if(!a||!s||!r||i===0)return null;const c=a.icon??null,u=!!n&&(n.isRunInProgress||n.status==="streaming"||n.status==="submitted");let o;return e[0]!==r||e[1]!==i||e[2]!==a.title||e[3]!==c||e[4]!==u||e[5]!==s?(o={virtualMcpId:s,projectTitle:a.title,projectIcon:c,branch:r,changeCount:i,editing:u},e[0]=r,e[1]=i,e[2]=a.title,e[3]=c,e[4]=u,e[5]=s,e[6]=o):o=e[6],o}function Re(e){const t=v.c(24),{icon:n,title:s,subtitle:r,status:a,detail:i,action:c,className:u}=e;let o;t[0]!==u?(o=$("rounded-xl border border-border bg-card p-3",u),t[0]=u,t[1]=o):o=t[1];let d;t[2]!==n?(d=l.jsx("div",{className:"shrink-0",children:n}),t[2]=n,t[3]=d):d=t[3];let p;t[4]!==s?(p=l.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:s}),t[4]=s,t[5]=p):p=t[5];let g;t[6]!==r?(g=r&&l.jsx("p",{className:"truncate text-xs text-muted-foreground",children:r}),t[6]=r,t[7]=g):g=t[7];let m;t[8]!==p||t[9]!==g?(m=l.jsxs("div",{className:"min-w-0 flex-1",children:[p,g]}),t[8]=p,t[9]=g,t[10]=m):m=t[10];let f;t[11]!==a?(f=a&&l.jsx("span",{className:"flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground",children:a}),t[11]=a,t[12]=f):f=t[12];let x;t[13]!==d||t[14]!==m||t[15]!==f?(x=l.jsxs("div",{className:"flex items-center gap-2.5",children:[d,m,f]}),t[13]=d,t[14]=m,t[15]=f,t[16]=x):x=t[16];let h;t[17]!==c||t[18]!==i?(h=(i||c)&&l.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:i}),c]}),t[17]=c,t[18]=i,t[19]=h):h=t[19];let b;return t[20]!==o||t[21]!==x||t[22]!==h?(b=l.jsxs("div",{className:o,children:[x,h]}),t[20]=o,t[21]=x,t[22]=h,t[23]=b):b=t[23],b}function ze(e){const t=v.c(10),{draft:n}=e,s=M(),r=n.editing?"animate-pulse bg-warning":"bg-success";let a;t[0]!==r?(a=$("size-1.5 rounded-full",r),t[0]=r,t[1]=a):a=t[1];let i;t[2]!==a?(i=l.jsx("span",{"aria-hidden":!0,className:a}),t[2]=a,t[3]=i):i=t[3];const c=n.editing?"chat.draft.editing":"chat.draft.ready";let u;t[4]!==s||t[5]!==c?(u=s(c),t[4]=s,t[5]=c,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==u?(o=l.jsxs(l.Fragment,{children:[i,u]}),t[7]=i,t[8]=u,t[9]=o):o=t[9],o}function Be(e){const t=v.c(11),{draft:n}=e,s=M(),{org:r}=z(),a=H()?.taskId??null;let i;t[0]!==n.virtualMcpId||t[1]!==r.slug?(i={org:r.slug,agentId:n.virtualMcpId},t[0]=n.virtualMcpId,t[1]=r.slug,t[2]=i):i=t[2];let c;t[3]!==a?(c=a?{thread:a}:{},t[3]=a,t[4]=c):c=t[4];let u;t[5]!==s?(u=s("chat.draft.open"),t[5]=s,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==c||t[9]!==u?(o=l.jsx(B,{variant:"outline",size:"sm",asChild:!0,children:l.jsx(V,{to:"/$org/projects/$agentId/site-editor",params:i,search:c,children:u})}),t[7]=i,t[8]=c,t[9]=u,t[10]=o):o=t[10],o}function q(){const e=v.c(20),t=M(),n=Fe();if(!n)return null;let s;e[0]!==n.projectIcon||e[1]!==n.projectTitle?(s=l.jsx(ye,{icon:n.projectIcon,name:n.projectTitle,size:"sm"}),e[0]=n.projectIcon,e[1]=n.projectTitle,e[2]=s):s=e[2];const r=n.projectTitle;let a;e[3]!==n.branch?(a=l.jsx("span",{className:"font-mono",children:n.branch}),e[3]=n.branch,e[4]=a):a=e[4];let i;e[5]!==n?(i=l.jsx(ze,{draft:n}),e[5]=n,e[6]=i):i=e[6];const c=n.changeCount===1?"chat.draft.change":"chat.draft.changes";let u;e[7]!==n.changeCount||e[8]!==t||e[9]!==c?(u=t(c,{count:n.changeCount}),e[7]=n.changeCount,e[8]=t,e[9]=c,e[10]=u):u=e[10];let o;e[11]!==n?(o=l.jsx(Be,{draft:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==n.projectTitle||e[14]!==s||e[15]!==a||e[16]!==i||e[17]!==u||e[18]!==o?(d=l.jsx(Re,{className:"mx-2.5 mb-6",icon:s,title:r,subtitle:a,status:i,detail:u,action:o}),e[13]=n.projectTitle,e[14]=s,e[15]=a,e[16]=i,e[17]=u,e[18]=o,e[19]=d):d=e[19],d}function He(e){return e.parts.some(t=>t.type==="dynamic-tool"||t.type.startsWith("tool-"))}function Le(e){let t=0;for(const n of e)for(const s of n.parts??[]){const r=s;r.type==="tool-load_repo"&&r.state==="output-available"&&r.output?.success===!0&&t++}return t}function Ae(){const e=v.c(11),{openPanel:t}=Te(),n=Se(),s=G()?.messages??[],r=H(),a=r?.taskId??null,i=r?.currentBranch;let c;e[0]!==i?(c=ke(i),e[0]=i,e[1]=c):c=e[1];const u=c;let o;e[2]!==s?(o=Le(s),e[2]=s,e[3]=o):o=e[3];const d=o,p=w.useRef(null),g=w.useRef(null);let m,f;e[4]!==u||e[5]!==d||e[6]!==n||e[7]!==t||e[8]!==a?(m=()=>{if(!d||!a)return;const x=`${a}:${d}`;g.current!==x&&(g.current=x,n?.refreshThreadMetadata(a)),p.current!==a&&(p.current=a,u||t("site-editor"))},f=[d,a,t,n,u],e[4]=u,e[5]=d,e[6]=n,e[7]=t,e[8]=a,e[9]=m,e[10]=f):(m=e[9],f=e[10]),w.useEffect(m,f)}function W(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(W(e))==="1"}catch{return!1}}function qe(){const e=v.c(56),t=M(),{org:n}=z(),s=De("credits"),r=K(),{decoKeyId:a}=Pe(),[i,c]=w.useState(!0);let u;e[0]!==n.id?(u=()=>{L("credits_empty_state_dismissed",{organization_id:n.id}),c(!1);try{localStorage.setItem(W(n.id),"1")}catch{}},e[0]=n.id,e[1]=u):u=e[1];const o=u;let d,p;if(e[2]!==i||e[3]!==n.id?(d=()=>{i&&L("credits_empty_state_shown",{organization_id:n.id})},p=[i,n.id],e[2]=i,e[3]=n.id,e[4]=d,e[5]=p):(d=e[4],p=e[5]),w.useEffect(d,p),!i)return null;if(!s){let k;e[6]!==t?(k=t("chat.input.allowanceExhaustedTitle"),e[6]=t,e[7]=k):k=e[7];let O;e[8]!==k?(O={title:k},e[8]=k,e[9]=O):O=e[9];let R;return e[10]!==o||e[11]!==O?(R=l.jsx(_e,{feature:"chat",copy:O,onDismiss:o}),e[10]=o,e[11]=O,e[12]=R):R=e[12],R}let g;e[13]!==o?(g=k=>!k&&o(),e[13]=o,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:l.jsx(Q,{size:20,className:"text-warning"})}),e[16]=f):f=e[16];let x;e[17]!==t?(x=t("chat.creditsEmptyState.title"),e[17]=t,e[18]=x):x=e[18];let h;e[19]!==x?(h=l.jsx(X,{className:"text-lg font-semibold",children:x}),e[19]=x,e[20]=h):h=e[20];let b;e[21]!==t?(b=t("chat.creditsEmptyState.description"),e[21]=t,e[22]=b):b=e[22];let N;e[23]!==b?(N=l.jsx(Z,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:b}),e[23]=b,e[24]=N):N=e[24];let C;e[25]!==h||e[26]!==N?(C=l.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[m,l.jsxs(J,{className:"relative gap-3",children:[f,l.jsxs("div",{className:"text-center",children:[h,N]})]})]}),e[25]=h,e[26]=N,e[27]=C):C=e[27];let y;e[28]!==a||e[29]!==o?(y=a&&l.jsx("div",{className:"px-6 pb-5",children:l.jsx(me,{source:"empty_state",onDone:o})}),e[28]=a,e[29]=o,e[30]=y):y=e[30];let S;e[31]!==o||e[32]!==r||e[33]!==n.slug?(S=()=>{r({to:"/$org/settings/ai-providers",params:{org:n.slug}}),o()},e[31]=o,e[32]=r,e[33]=n.slug,e[34]=S):S=e[34];let j;e[35]!==t?(j=t("chat.creditsEmptyState.useYourOwnProvider"),e[35]=t,e[36]=j):j=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(Ee,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),e[37]=T):T=e[37];let E;e[38]!==S||e[39]!==j?(E=l.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:S,children:[j,T]}),e[38]=S,e[39]=j,e[40]=E):E=e[40];let D;e[41]!==t?(D=t("chat.creditsEmptyState.skipForNow"),e[41]=t,e[42]=D):D=e[42];let P;e[43]!==o||e[44]!==D?(P=l.jsx(B,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:o,children:D}),e[43]=o,e[44]=D,e[45]=P):P=e[45];let _;e[46]!==E||e[47]!==P?(_=l.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[E,P]}),e[46]=E,e[47]=P,e[48]=_):_=e[48];let I;e[49]!==C||e[50]!==y||e[51]!==_?(I=l.jsxs(ee,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ke,children:[C,y,_]}),e[49]=C,e[50]=y,e[51]=_,e[52]=I):I=e[52];let F;return e[53]!==I||e[54]!==g?(F=l.jsx(te,{open:!0,onOpenChange:g,children:I}),e[53]=I,e[54]=g,e[55]=F):F=e[55],F}function Ke(e){return e.preventDefault()}function Ge(e){const t=v.c(6),{balanceDollars:n}=e;let s;t[0]!==n?(s=n.toFixed(2),t[0]=n,t[1]=s):s=t[1];const r=s;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),i=l.jsx(Q,{size:13,className:"text-success"}),t[2]=a,t[3]=i):(a=t[2],i=t[3]);let c;return t[4]!==r?(c=l.jsxs("div",{className:a,children:[i,l.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",r," in credits to get started"]})]}),t[4]=r,t[5]=c):c=t[5],c}function Qe(){const e=v.c(8),{org:t}=z(),n=K();let s;e[0]!==n||e[1]!==t.slug?(s=()=>n({to:"/$org/settings/ai-providers",params:{org:t.slug}}),e[0]=n,e[1]=t.slug,e[2]=s):s=e[2];let r,a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),a=l.jsx(Ie,{size:13,className:"text-warning"}),i=l.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),e[3]=r,e[4]=a,e[5]=i):(r=e[3],a=e[4],i=e[5]);let c;return e[6]!==s?(c=l.jsxs("button",{type:"button",onClick:s,className:r,children:[a,i]}),e[6]=s,e[7]=c):c=e[7],c}function We(e){const t=v.c(7),{scrollRef:n,sentinelRef:s,hasMoreOlder:r,isFetchingOlder:a,fetchOlderMessages:i}=e;let c,u;t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==s?(c=()=>{const o=s.current,d=n.current;if(!o||!d||!r)return;const p=new IntersectionObserver(async g=>{if(!g[0]?.isIntersecting||a||!r)return;const f=d.scrollHeight,x=d.scrollTop;await i(),requestAnimationFrame(()=>{const h=d.scrollHeight;d.scrollTop=x+(h-f)})},{root:d,rootMargin:"200px 0px 0px 0px"});return p.observe(o),()=>p.disconnect()},u=[n,s,r,a,i],t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s,t[5]=c,t[6]=u):(c=t[5],u=t[6]),w.useEffect(c,u)}function Ye(e){const t=v.c(5),{className:n,children:s}=e;let r;t[0]!==n?(r=$("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),t[0]=n,t[1]=r):r=t[1];let a;return t[2]!==s||t[3]!==r?(a=l.jsx("div",{className:r,children:s}),t[2]=s,t[3]=r,t[4]=a):a=t[4],a}function Ue(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-1 min-h-0 overflow-y-auto isolate",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}function Ve(e){const t=v.c(2),{children:n}=e;let s;return t[0]!==n?(s=l.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:n}),t[0]=n,t[1]=s):s=t[1],s}function Xe(){const e=M(),{messages:t,status:n,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a,isRunInProgress:i}=oe(),{taskId:c}=le();Ae();const u=ce(c??""),o=ue(u),d=o.size===0?t:t.filter(j=>!o.has(j.id)),p=de(d,n==="submitted"||n==="streaming"||i),g=p.visible,m=je(g),f=m.at(-1),x=m.findIndex(j=>!!j.assistant&&He(j.assistant)),b=pe()*he+16,N=w.useRef(null),C=w.useRef(null);We({scrollRef:N,sentinelRef:C,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a});const y=ve({initial:!1}),S=j=>{N.current=j,y.scrollRef(j)};return l.jsx(fe.Provider,{value:p,children:l.jsx(be,{messages:t,children:l.jsxs("div",{className:"relative h-full w-full min-w-0",children:[l.jsx("div",{ref:S,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:b},children:l.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[l.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),r&&l.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:e("chat.chat.loadingOlderMessages")}),m.slice(0,-1).map((j,T)=>l.jsxs(w.Fragment,{children:[l.jsx(A,{pair:j,isLastPair:!1,status:T===m.length-1?n:void 0}),T===x&&l.jsx(q,{})]},`pair-${j.user?.id??j.assistant?.id}`))]}),f&&l.jsxs("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx(A,{pair:f,isLastPair:!0,status:n},`pair-${f.user?.id??f.assistant?.id}`),x===m.length-1&&l.jsx(q,{})]})]})}),!y.isAtBottom&&l.jsx(B,{type:"button",variant:"outline",size:"icon-sm","aria-label":e("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:b+8},onClick:()=>{y.scrollToBottom()},children:l.jsx(se,{size:14})})]})})})}function Ze(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}const ht=Object.assign(Ye,{Main:Ue,Messages:Xe,EmptyState:Ve,Footer:Ze,Input:xe,Provider:ie,StreamHost:re,ActiveTaskStreamSource:ae,ThreadlessStreamSource:ne,NoAiProviderEmptyState:$e,CreditsEmptyState:qe,CreditsEyebrow:Ge,NoCreditsEyebrow:Qe,CreditsExhaustedBanner:ge});export{ht as C,Me as u,pt as w};
@@ -1,4 +1,4 @@
1
- import{c as ue,r as xe,d as ns,a4 as ht,b as Pe,j as t,B as je,t as dt,aW as Wt,ak as as,K as bt,i as Et,a5 as As,m as ot,gE as _s,o as cs,h as Ks,d_ as Us,ab as Vs,L as qs,u as Hs,n as _t,E as Yt,R as Bs,dU as Js,hd as Gs,T as Qs,W as Ws,I as Xt}from"./index-Biams685.js";import{S as Ys}from"./search-input-DSB0t8kj.js";import{E as Ht}from"./empty-state-CD43HEkx.js";import{R as Xs}from"./require-capability-BEpAmIG-.js";import{f as js}from"./pair-CgVGpWTx.js";import{b as ts}from"./use-connection-D2uhV2tM.js";import{g as Ps}from"./connection-slug-BY-obzjO.js";import{B as Lt}from"./badge-CT_Bowl_.js";import{P as ds,a as ms,b as us}from"./popover-DmvVZ360.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-CqtvIcRI.js";import{z as fs,e as Ut,bw as el,aw as Ns,K as tl}from"./agent-icon-CmYgsdkA.js";import{i as sl}from"./Key01-O_7ZqdlA.js";import{i as ll}from"./Play-B1OcqbdZ.js";import{MonacoCodeEditor as bs}from"./monaco-editor-D9Tg3MLA.js";import{u as rl}from"./use-mcp-client-DwG9qZWg.js";import{u as il}from"./repository-binding-CWTr70tX.js";import{n as Ot}from"./LinkBroken01-DlxIHBPg.js";import{c as ol}from"./SwitchHorizontal01-DRQUyYXI.js";import{s as nl}from"./Plus-DgAT_TKu.js";import{s as al}from"./Trash01-BXZnDQzc.js";import{M as zt}from"./multi-select-B-3mGzW5.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-ewWPkQXd.js";import{e as ys,T as cl}from"./time-range-picker-iaayu7xs.js";import{T as dl}from"./textarea-DDxBLXs2.js";import{C as Ds}from"./collection-tabs-BfGk19Xn.js";import{S as ml}from"./switch-Dmoe_p0M.js";import{L as ul}from"./label-B5koT7GN.js";import{I as It}from"./integration-icon-C76s6rje.js";import{A as fl,a as xl,b as pl}from"./alert-DuHwFyfE.js";import{K as gt}from"./monitoring-stats-row-HbK1wloz.js";import{b as Bt}from"./use-entitlements-DczHLBrX.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-DZFMrcN3.js";import{u as wl}from"./useSuspenseInfiniteQuery-BuFOWpb6.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-DYP4kWtX.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-DearQIjo.js";import{t as ss}from"./ChevronDown-Dq3-i4Ph.js";import{n as ls}from"./ChevronUp-CsGl40rv.js";import{u as Os}from"./use-id-selection-Bb7QXS3G.js";import{u as Fs}from"./use-infinite-scroll-BGpcvUym.js";import{u as Il}from"./useInfiniteQuery-CSP4ZKWe.js";import{g as Tl}from"./task-status-Gh6OxLHy.js";import{u as kl,d as Ml}from"./use-automations-CDdcaseZ.js";import{A as _l}from"./automation-runs-CLRJ9cBM.js";import{i as Pl}from"./ArrowLeft-CjBgi68F.js";import{E as Cs}from"./empty-state-DUI1uMab.js";import{O as $s}from"./watch-sse-pool-Ds--pRle.js";import{t as Dl}from"./task-key-D5Xi8Zpv.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-DfXP58WW.js";import{F as $l}from"./feature-gate-Dg0v4va6.js";import"./SearchMd-CAmRp0LP.js";import"./access-gate-C2FMXB7E.js";import"./capability-load-error-BuCmA5o8.js";import"./Tool01-CIG9g9AW.js";import"./ArrowRight-BSOOXYJl.js";import"./collapsible-BG95WVUo.js";import"./use-copy-D38lTrG-.js";import"./usage-stats-LbQgUlFb.js";import"./utils-CVEq3hMx.js";import"./markdown-QFsCz8HO.js";import"./chat-context-oV4F8WQc.js";import"./use-panel-navigate-Du4Vt0nC.js";import"./thread-route-DmAvNVfz.js";import"./use-project-scope-V_yAQHXr.js";import"./use-view-draft-kind-B_9utcmK.js";import"./use-blog-view-D_eJjHyi.js";import"./use-organization-settings-BV6bWoGw.js";import"./schema-D-rmQGG7.js";import"./task-board-DfE7ACDs.js";import"./thread-intent-B4ztyrl0.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-OZnQWVyx.js";import"./use-ai-providers-D-W7KWam.js";import"./use-current-view-DJKRVR3b.js";import"./use-in-settings-N8ExD21K.js";import"./use-decopilot-events-DZT948GO.js";import"./use-mobile-0AteUciZ.js";import"./File02-B-McavGu.js";import"./gateway-client-BKm00588.js";import"./form-CTAz1vX9.js";import"./UserCheck01-Dd1TarPv.js";import"./use-task-board-items-B59GLlEu.js";import"./config-R6R9Ongh.js";import"./AlertCircle-BuSYYXoB.js";import"./CheckCircle-CwkAQPvk.js";import"./Eye-DgggGLP1.js";import"./task-route-YrsLsrlf.js";import"./project-index-CDh44wXq.js";import"./TrendUp01-BXVcz0CP.js";import"./shell-layout-Dd3ZOJl-.js";import"./Globe04-DByxWswA.js";import"./UserSquare-Dx7SMn8a.js";import"./use-deployment-admin-IWWegkPe.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-ChZfCB0S.js";import"./use-org-notice-pbZd-uTd.js";import"./Monitor01-ByiCXP90.js";import"./Zap-DzFzGOQ3.js";import"./command-2E07YrgQ.js";import"./index-DY2XXBge.js";import"./project-icon-VgM1tY99.js";import"./use-navigate-to-agent-C6-ZqKGw.js";import"./use-debounced-value-Bih1VwpO.js";import"./new-project-dialog-CZtNDQaD.js";import"./repository-picker-CAtWKBbx.js";import"./github-icon-llpq0MNv.js";import"./collection-search-Blzi887q.js";import"./BookOpen01-Bg7SPIQl.js";import"./ShoppingBag01-qRoCf3xL.js";import"./new-project-store-DNJn4Jmh.js";import"./legacy-admin-welcome-dialog-D0q0NbRI.js";import"./drawer-XYh0Y76X.js";import"./required-auth-layout-CgZqM250.js";import"./use-org-sso-D48jSMd3.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BQn1YwZp.js";import"./types-CqLgXd5K.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-C-12Ic3A.js";import"./use-mcp-prompts-D7T45oWG.js";import"./use-thread-outputs-Bkey3xVy.js";import"./file-type-icon-MJit4Xxk.js";import"./index-D4_P19LT.js";import"./ArrowUp-DsFRA_-F.js";import"./ChevronSelectorVertical-Ce-S0bwE.js";import"./CreditCard01-DyQlc3BQ.js";import"./MessageCircle01-DboGgDYl.js";import"./LayoutLeft-CAJfUJ1M.js";import"./Minus-C8qbEmNR.js";import"./Sun-DMx5ulRn.js";import"./Upload01-DkM_CW6J.js";import"./Users01-CrAD5jfs.js";import"./editor-um5vPMjZ.js";import"./auth-D_64eYdt.js";import"./checkbox-D_sNmJye.js";import"./index-BdQq_4o_.js";import"./scroll-area--F5PSuIY.js";import"./calendar-5YPFZKxL.js";import"./chart-NHpn8rhZ.js";import"./CategoricalChart-Bk-NltJE.js";import"./index-BldUavnl.js";import"./tooltipContext-BIVvJQGQ.js";import"./CartesianChart-CTbh6Hly.js";import"./AreaChart-B7QJFNyd.js";import"./infiniteQueryObserver-DviOrlp9.js";import"./useQueries-Cviw5w4f.js";import"./ReferenceLine-BsFgkAaF.js";import"./feature-paywall-TG7L-qMr.js";import"./plan-ladder-Bu6W70aQ.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
1
+ import{c as ue,r as xe,d as ns,a4 as ht,b as Pe,j as t,B as je,t as dt,aW as Wt,ak as as,K as bt,i as Et,a5 as As,m as ot,gE as _s,o as cs,h as Ks,d_ as Us,ab as Vs,L as qs,u as Hs,n as _t,E as Yt,R as Bs,dU as Js,hd as Gs,T as Qs,W as Ws,I as Xt}from"./index-CnlrqsCd.js";import{S as Ys}from"./search-input-Cu6jTXVw.js";import{E as Ht}from"./empty-state-BWFEJiAD.js";import{R as Xs}from"./require-capability-kZjYTRSp.js";import{f as js}from"./pair-BqleDpPR.js";import{b as ts}from"./use-connection-CyhiAuyN.js";import{g as Ps}from"./connection-slug-mPfdw4iI.js";import{B as Lt}from"./badge-loE1b0Vr.js";import{P as ds,a as ms,b as us}from"./popover-BehWQy5s.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-iXXWa3VG.js";import{z as fs,e as Ut,bw as el,aw as Ns,K as tl}from"./agent-icon-Da3tHBMv.js";import{i as sl}from"./Key01-D3gaP9qK.js";import{i as ll}from"./Play-B1JyKt5J.js";import{MonacoCodeEditor as bs}from"./monaco-editor-DO6kYNn6.js";import{u as rl}from"./use-mcp-client-Bq8ol96W.js";import{u as il}from"./repository-binding-B-NGFlA8.js";import{n as Ot}from"./LinkBroken01-WNn1RqQL.js";import{c as ol}from"./SwitchHorizontal01-DB7Iju_C.js";import{s as nl}from"./Plus-nOMLt4Yk.js";import{s as al}from"./Trash01-DLwaS_5I.js";import{M as zt}from"./multi-select-DVrZLS4y.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-P0a7iEwt.js";import{e as ys,T as cl}from"./time-range-picker-DpPBnDJs.js";import{T as dl}from"./textarea-BfYW4m9c.js";import{C as Ds}from"./collection-tabs-Y93FdN1l.js";import{S as ml}from"./switch-DhrqiPup.js";import{L as ul}from"./label-D9MCble5.js";import{I as It}from"./integration-icon-XdnHhG6r.js";import{A as fl,a as xl,b as pl}from"./alert-2VptOQ03.js";import{K as gt}from"./monitoring-stats-row-CDy_z2_I.js";import{b as Bt}from"./use-entitlements-cKoK0gNm.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-XpKlRgjQ.js";import{u as wl}from"./useSuspenseInfiniteQuery-BuojYKnE.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-p2Ousfn8.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-C2Ra_yKM.js";import{t as ss}from"./ChevronDown-Cf6eg1Aj.js";import{n as ls}from"./ChevronUp-Yoxwp_-j.js";import{u as Os}from"./use-id-selection-BfYt0Wlx.js";import{u as Fs}from"./use-infinite-scroll-iq2V7hOe.js";import{u as Il}from"./useInfiniteQuery-B7ay7aNP.js";import{g as Tl}from"./task-status-Cgcee3O1.js";import{u as kl,d as Ml}from"./use-automations-BlLUMChm.js";import{A as _l}from"./automation-runs-DBCPwmkF.js";import{i as Pl}from"./ArrowLeft-DjFnycHz.js";import{E as Cs}from"./empty-state--JGqfPR-.js";import{O as $s}from"./watch-sse-pool-wQgu9ix_.js";import{t as Dl}from"./task-key-CzMIIXuS.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-958y0odK.js";import{F as $l}from"./feature-gate-BRL5qzLx.js";import"./SearchMd-BQl6TEDK.js";import"./access-gate-DAmYKrNY.js";import"./capability-load-error-qZIBtmfz.js";import"./Tool01-CtY1k5Dx.js";import"./ArrowRight-DdCk_HCk.js";import"./collapsible-6ftDlMsd.js";import"./use-copy-jVRNS72q.js";import"./usage-stats-Cpv39cmk.js";import"./utils-CVEq3hMx.js";import"./markdown-DPh7H1MH.js";import"./chat-context-Cdr2Tzco.js";import"./use-panel-navigate-BtwQP9g-.js";import"./thread-route-BizqFXgE.js";import"./use-project-scope-B49l3tYT.js";import"./use-view-draft-kind-D6a-C5cc.js";import"./use-blog-view-CjVBpsro.js";import"./use-organization-settings-DmJ49Wll.js";import"./schema-DCd8UMh8.js";import"./task-board-B47Oba0a.js";import"./thread-intent-CMPSad7_.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-CPmKckVH.js";import"./use-ai-providers-DAAK1LJH.js";import"./use-current-view-DbaDobC4.js";import"./use-in-settings-DF-tVIoE.js";import"./use-decopilot-events-CsRo6_4Z.js";import"./use-mobile-dNUmCifC.js";import"./File02-B4TAUApJ.js";import"./gateway-client-BwxdQL6w.js";import"./form-9ojGZv11.js";import"./UserCheck01-lNPupOG8.js";import"./use-task-board-items-DT4Yu9ci.js";import"./config-CheVupom.js";import"./AlertCircle-BckhzGo9.js";import"./CheckCircle-p76CoLTf.js";import"./Eye-B-zZzOpR.js";import"./task-route-DnF8qwEX.js";import"./project-index-D_813h_x.js";import"./TrendUp01-DAuvMm77.js";import"./shell-layout-ipiZBDIC.js";import"./Globe04-C8iXbhsR.js";import"./UserSquare-xrIyO385.js";import"./use-deployment-admin-DsggmftG.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-BAaBoHXT.js";import"./use-org-notice-DEvisT2l.js";import"./Monitor01-CrmQoLWb.js";import"./Zap-DV5_FZrE.js";import"./command-CtLQP1YS.js";import"./index-DjQbsfzi.js";import"./project-icon-DsXJkCkm.js";import"./use-navigate-to-agent-DeYqaaa3.js";import"./use-debounced-value-CI6OWQk7.js";import"./new-project-dialog-DqENGapI.js";import"./repository-picker-gzTJe9Gv.js";import"./github-icon-Bx9ss8sA.js";import"./collection-search-CW9SJXAE.js";import"./BookOpen01-B2ISsdx6.js";import"./ShoppingBag01-DPoH0u5v.js";import"./new-project-store-BCRxr-mc.js";import"./legacy-admin-welcome-dialog-5lUmP66o.js";import"./drawer-CRP1WiCk.js";import"./required-auth-layout-nH3iv-0Q.js";import"./use-org-sso-DiEFaIS8.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DEDNSoX2.js";import"./types-Ds7H4BQL.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-BKS8Yp4v.js";import"./use-mcp-prompts-B6Jw27dX.js";import"./use-thread-outputs-riYbRXeW.js";import"./file-type-icon-BAAuwpOK.js";import"./index-DEg1eCWz.js";import"./ArrowUp-jwPYnWqs.js";import"./ChevronSelectorVertical-ies3TLws.js";import"./CreditCard01-DOIepajb.js";import"./MessageCircle01-dCZEdQhF.js";import"./LayoutLeft-C8ndIALE.js";import"./Minus-BGxu6wTp.js";import"./Sun-CnYsG6YA.js";import"./Upload01-D8Llo-n7.js";import"./Users01-B6_L_w2p.js";import"./editor-Ca65jgGo.js";import"./auth-CNYHKCFg.js";import"./checkbox-ClBCJgC4.js";import"./index-BdQq_4o_.js";import"./scroll-area-Csvonw83.js";import"./calendar-BI3J-A5m.js";import"./chart-BvG6MEBA.js";import"./CategoricalChart-Di2gWvs8.js";import"./index-CQwlvIdC.js";import"./tooltipContext-C8y_VFmL.js";import"./CartesianChart-2VySs-qY.js";import"./AreaChart-CH55n4Jv.js";import"./infiniteQueryObserver-d6eMImhi.js";import"./useQueries-v3dcLTuG.js";import"./ReferenceLine-CVaZ4J9I.js";import"./feature-paywall-DKi0OK9Z.js";import"./plan-ladder-heY6MciQ.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
2
2
  `)}function Is(s){return s.trim()?s.split(`
3
3
  `).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[l,...i]=e.split("=");return{key:l||"",operator:"eq",value:i.join("=")}}if(e.includes("~")){const[l,...i]=e.split("~");return{key:l||"",operator:"contains",value:i.join("~")}}if(e.includes("@")){const[l,...i]=e.split("@");return{key:l||"",operator:"in",value:i.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function Kl(s){const e={},l={},i=[],m={};for(const n of s)if(n.key.trim())switch(n.operator){case"eq":n.value&&(e[n.key]=n.value);break;case"contains":n.value&&(l[n.key]=`%${n.value}%`);break;case"exists":i.push(n.key);break;case"in":n.value&&(m[n.key]=n.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(l).length>0?l:void 0,propertyKeys:i.length>0?i:void 0,propertyInValues:Object.keys(m).length>0?m:void 0}}function Ts(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};const e=s._decocms_truncated;if(typeof e=="string"&&e.length>0)return{content:e,isTruncated:!0,originalSize:e.length};let l;try{l=JSON.stringify(s,null,2)}catch{return{content:"[Unable to serialize JSON]",isTruncated:!1,originalSize:0}}const i=l.length;return i<=rs.maxJsonRenderSize?{content:l,isTruncated:!1,originalSize:i}:{content:l.slice(0,rs.maxJsonRenderSize)+`
4
4