decocms 4.527.0 → 4.528.0

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 (423) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-CLeQm0q6.js → ActiveShapeUtils-Br894ljM.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-D9_evsvO.js → AlertCircle-DwVsFaci.js} +1 -1
  3. package/dist/client/assets/{AreaChart-D4vFJ6vT.js → AreaChart-BpoQ8IcB.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-B6qwUpLq.js → ArrowLeft-D0U_UeWA.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-Cth_eVmU.js → ArrowUp-BHvj9x12.js} +1 -1
  6. package/dist/client/assets/{BarChart-DLJTWg68.js → BarChart-DSUrCO19.js} +1 -1
  7. package/dist/client/assets/{Building02-Wh9pimKL.js → Building02-4g278Kck.js} +1 -1
  8. package/dist/client/assets/{CartesianChart-DgnFHqiR.js → CartesianChart-B8sjFfWU.js} +1 -1
  9. package/dist/client/assets/{CategoricalChart-ChFkF0_C.js → CategoricalChart-C9NLmvFO.js} +1 -1
  10. package/dist/client/assets/{CheckCircle-DoJXwawU.js → CheckCircle-0mdIkBLG.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-CnRBP_5y.js → ChevronSelectorVertical-BRbuqJl7.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-7SZxJu8w.js → ChevronUp-Cn8PaBxH.js} +1 -1
  13. package/dist/client/assets/{Copy01-Bu20fOqK.js → Copy01-D6STLVd9.js} +1 -1
  14. package/dist/client/assets/{CreditCard01-Br0-9pHI.js → CreditCard01-CAW-vU_p.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-OSj5km5S.js → DotsVertical-C5Wc2qWf.js} +1 -1
  16. package/dist/client/assets/{ErrorBarContext-BvjdLnvD.js → ErrorBarContext-ClrUuJb8.js} +1 -1
  17. package/dist/client/assets/{Globe04-D4srY_QI.js → Globe04-COPfJ3z-.js} +1 -1
  18. package/dist/client/assets/{Image01-CzYWCBEQ.js → Image01-D00jtGx4.js} +1 -1
  19. package/dist/client/assets/{Key01-C-bam-4X.js → Key01-CiK2_UxI.js} +1 -1
  20. package/dist/client/assets/{Link01-DXRUIbxg.js → Link01-CEOBycf2.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-gdfveCgK.js → LinkBroken01-Bg7pBcuJ.js} +1 -1
  22. package/dist/client/assets/{Minus-Czu3kpSA.js → Minus-_SQ5lvlh.js} +1 -1
  23. package/dist/client/assets/{Monitor01-CruCSnyq.js → Monitor01-DyqIpSTl.js} +1 -1
  24. package/dist/client/assets/{Play-RzA3Niav.js → Play-BnWEmJaV.js} +1 -1
  25. package/dist/client/assets/{Plus-BA90GKs1.js → Plus-BPVKrQFz.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-8vT4zADE.js → ReferenceLine-_tT0r7bG.js} +1 -1
  27. package/dist/client/assets/{SearchMd-DO1eOJvD.js → SearchMd-OaBCBVrZ.js} +1 -1
  28. package/dist/client/assets/{Sector-Duu5xYm_.js → Sector-mFZOIMSW.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-BuVMkUkJ.js → ShoppingBag01-GpZCrbBR.js} +1 -1
  30. package/dist/client/assets/{Sun-Cg4UcsIP.js → Sun-BG4-BfE7.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-D_E9YPjp.js → SwitchHorizontal01-CMpEiSPu.js} +1 -1
  32. package/dist/client/assets/{Tool01-BJdrlQAn.js → Tool01-CIeMmnyv.js} +1 -1
  33. package/dist/client/assets/{Trash01-DcsYDVg8.js → Trash01-BLXgUBsw.js} +1 -1
  34. package/dist/client/assets/{Upload01-CYUmJE5W.js → Upload01-CgYtU1Ux.js} +1 -1
  35. package/dist/client/assets/{UserSquare-D0z8lAkn.js → UserSquare-pnEdx237.js} +1 -1
  36. package/dist/client/assets/{Users01-Y9yFg_2K.js → Users01-D-rlhQmk.js} +1 -1
  37. package/dist/client/assets/{XClose-DIFkFXp0.js → XClose-yFNn0LgD.js} +1 -1
  38. package/dist/client/assets/{ZoomOut-rfozMzwP.js → ZoomOut-D8_eDbPl.js} +1 -1
  39. package/dist/client/assets/{access-gate-5CuwEsfU.js → access-gate-CCmKpIU6.js} +1 -1
  40. package/dist/client/assets/{add-connection-dialog-Dl0GCijo.js → add-connection-dialog-MrHyqJnn.js} +1 -1
  41. package/dist/client/assets/agent-analytics-wllTP-xB.js +1 -0
  42. package/dist/client/assets/agent-app-MGvu076D.js +1 -0
  43. package/dist/client/assets/{agent-assets-Bca92OI9.js → agent-assets-DX3JCZz_.js} +1 -1
  44. package/dist/client/assets/{agent-automation-CMS-kRWl.js → agent-automation-BoPrO5n1.js} +1 -1
  45. package/dist/client/assets/{agent-automations-BnnaEANZ.js → agent-automations-Dj9SJC8y.js} +1 -1
  46. package/dist/client/assets/agent-calendar-CFKavSr7.js +1 -0
  47. package/dist/client/assets/{agent-connect-sources-BXy938hL.js → agent-connect-sources-guJSE0A3.js} +1 -1
  48. package/dist/client/assets/agent-deck-CdHFig9V.js +1 -0
  49. package/dist/client/assets/{agent-e2e-C129i6b0.js → agent-e2e--KzDh_gU.js} +1 -1
  50. package/dist/client/assets/agent-experiments-pgMnsFIB.js +1 -0
  51. package/dist/client/assets/{agent-file-Pm-Pf6i7.js → agent-file-Cdm4fL8A.js} +1 -1
  52. package/dist/client/assets/{agent-hosting-d0mTmoi-.js → agent-hosting-DewUrxzP.js} +1 -1
  53. package/dist/client/assets/agent-icon-I45DkNr8.js +1 -0
  54. package/dist/client/assets/agent-library-DjU97YsS.js +1 -0
  55. package/dist/client/assets/agent-library-file-DXHCBJAM.js +1 -0
  56. package/dist/client/assets/agent-monitor-Bucu2iO3.js +1 -0
  57. package/dist/client/assets/{agent-overview-Dxkm_aaP.js → agent-overview-D6KewKsA.js} +1 -1
  58. package/dist/client/assets/agent-releases-K-5ZFdWb.js +2 -0
  59. package/dist/client/assets/agent-settings-w-cNQlVy.js +1 -0
  60. package/dist/client/assets/{agent-site-editor-DvH8IVvU.js → agent-site-editor-5gjIAuRv.js} +2 -2
  61. package/dist/client/assets/agent-site-editor-code-B432kGPM.js +2 -0
  62. package/dist/client/assets/agent-site-editor-content-CQYunysB.js +1 -0
  63. package/dist/client/assets/agent-site-editor-preview-CLsSdnEd.js +1 -0
  64. package/dist/client/assets/agent-view-DP6mfHYN.js +1 -0
  65. package/dist/client/assets/{agent-view-guard-DSdm7lha.js → agent-view-guard-CiKD3WZM.js} +1 -1
  66. package/dist/client/assets/{agents-list-3hk3xPXP.js → agents-list-Bm03MUBc.js} +1 -1
  67. package/dist/client/assets/{ai-providers-CHbdsaF9.js → ai-providers--gYjttQ2.js} +1 -1
  68. package/dist/client/assets/alert-CRToIlco.js +1 -0
  69. package/dist/client/assets/{analytics-sections-CQH2mNjC.js → analytics-sections-CNk_D8Ba.js} +1 -1
  70. package/dist/client/assets/{analytics-tab-D1CO6HBg.js → analytics-tab-BmUlDGzX.js} +2 -2
  71. package/dist/client/assets/api-keys-8RAAQTX6.js +1 -0
  72. package/dist/client/assets/{api-keys-CsjJKvfD.js → api-keys-MdTn4EBK.js} +1 -1
  73. package/dist/client/assets/app-editor-DLDQxSbu.js +1 -0
  74. package/dist/client/assets/{asset-utils-ClXQ82gA.js → asset-utils-B46ygA_L.js} +1 -1
  75. package/dist/client/assets/{auth-BJe1aOgg.js → auth-AQB7DTaB.js} +1 -1
  76. package/dist/client/assets/{auth-catchall-CeL8XspO.js → auth-catchall-WOw2KABS.js} +1 -1
  77. package/dist/client/assets/{auth-entry-Bux_mJRN.js → auth-entry-D8h4o_s7.js} +1 -1
  78. package/dist/client/assets/{auth-split-layout-TRenqsIV.js → auth-split-layout-D1niEerJ.js} +1 -1
  79. package/dist/client/assets/{authenticate-and-persist-oauth-BhtEjQrU.js → authenticate-and-persist-oauth-08aLFUVr.js} +1 -1
  80. package/dist/client/assets/{automation-list-row-DtC2tENT.js → automation-list-row-D9muuYwH.js} +1 -1
  81. package/dist/client/assets/{automation-runs-BDvJXwcu.js → automation-runs-Cu7hhQJb.js} +1 -1
  82. package/dist/client/assets/{automations-Qapln07Q.js → automations-Ct6FcxrV.js} +1 -1
  83. package/dist/client/assets/{autosend-BKwtMB6P.js → autosend-CxxtAFJ_.js} +1 -1
  84. package/dist/client/assets/{badge-Dne4Jx9I.js → badge-zxuYXquF.js} +1 -1
  85. package/dist/client/assets/{block-document-Cs719bjv.js → block-document-D4CMkt4c.js} +3 -3
  86. package/dist/client/assets/{blocks-preview-workspace-context-DUWc_2XG.js → blocks-preview-workspace-context-LeIpajCL.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-DBqkaxym.js → blocks-tab-states-BrRgLQ_Y.js} +1 -1
  88. package/dist/client/assets/{blog-schema-bP1Fdz76.js → blog-schema-B4i8W-yj.js} +1 -1
  89. package/dist/client/assets/{buckets-DIalMn5g.js → buckets-CQWPtT87.js} +1 -1
  90. package/dist/client/assets/{build-improve-prompt-doc-CxMWosB4.js → build-improve-prompt-doc-CpbAFEGo.js} +1 -1
  91. package/dist/client/assets/{calendar-DqTMQkmt.js → calendar-C7teLmhJ.js} +1 -1
  92. package/dist/client/assets/{capability-load-error-C2YNxboS.js → capability-load-error-lTXihmQk.js} +1 -1
  93. package/dist/client/assets/category-editor-BrbTG2-B.js +1 -0
  94. package/dist/client/assets/{cdn-tab-qQFB8_vy.js → cdn-tab-BstEuIpQ.js} +1 -1
  95. package/dist/client/assets/{chart-CnvxVWLO.js → chart-DVgatavr.js} +1 -1
  96. package/dist/client/assets/{chat-context-C2Yxk7gW.js → chat-context-DIvwe-Wr.js} +5 -5
  97. package/dist/client/assets/{chat-draft-CoNCF5e9.js → chat-draft-DByw699W.js} +1 -1
  98. package/dist/client/assets/{checkbox-5tVptIvn.js → checkbox-CW4Dzojp.js} +1 -1
  99. package/dist/client/assets/{choose-editor-he5994Iy.js → choose-editor-zIlz3nud.js} +1 -1
  100. package/dist/client/assets/{cli-auth-success-C13o6nT8.js → cli-auth-success-CYE6hkOe.js} +1 -1
  101. package/dist/client/assets/{client-icons-AfqD3us-.js → client-icons-DL1p9F4w.js} +1 -1
  102. package/dist/client/assets/cms-settings-editor-D8-PKCcN.js +1 -0
  103. package/dist/client/assets/{collapsible-B_i_flQZ.js → collapsible-zPk-2gi_.js} +1 -1
  104. package/dist/client/assets/{collection-detail-C5W1nmJm.js → collection-detail-Drfng1H4.js} +1 -1
  105. package/dist/client/assets/{collection-display-button-g8pw1BKa.js → collection-display-button-DPvQVdd-.js} +1 -1
  106. package/dist/client/assets/{collection-search-DKSj36i2.js → collection-search-kUVZkueq.js} +1 -1
  107. package/dist/client/assets/collection-table-wrapper-vDq2vkVG.js +1 -0
  108. package/dist/client/assets/{collection-tabs-BVf232LH.js → collection-tabs-C3pu5E-Q.js} +1 -1
  109. package/dist/client/assets/{column-rules-CRkg9Fxl.js → column-rules-Dz5XFx3r.js} +1 -1
  110. package/dist/client/assets/{combobox-B8zTmLu1.js → combobox-BZSt-sf0.js} +1 -1
  111. package/dist/client/assets/{command-D79ZH19X.js → command-CSPNVB8c.js} +1 -1
  112. package/dist/client/assets/{companion-mcps-section-CthCluci.js → companion-mcps-section-HHphF1lt.js} +1 -1
  113. package/dist/client/assets/{config-94XCayih.js → config-B7tLWM1b.js} +1 -1
  114. package/dist/client/assets/{connect-DIgUkNj9.js → connect-BK8j-UfV.js} +1 -1
  115. package/dist/client/assets/{connect-layout-CH6ZSb5T.js → connect-layout-BC5qZusj.js} +1 -1
  116. package/dist/client/assets/{connect-source-dialog-DPHm5SIR.js → connect-source-dialog-Ch0tynWX.js} +1 -1
  117. package/dist/client/assets/{connection-CiqnzKwe.js → connection-amzL9L9Z.js} +1 -1
  118. package/dist/client/assets/{connection-card-CgbmOEtZ.js → connection-card-D8aS8J6Q.js} +1 -1
  119. package/dist/client/assets/{connection-detail-CWZ53gOP.js → connection-detail-Cu7F0ogE.js} +1 -1
  120. package/dist/client/assets/{connection-form-helpers-ntCbPy2n.js → connection-form-helpers-TT6AKW6f.js} +1 -1
  121. package/dist/client/assets/{connections-Bt4pwqu3.js → connections-B29MQqZW.js} +1 -1
  122. package/dist/client/assets/content-tab-BhOwV-AC.js +22 -0
  123. package/dist/client/assets/context-CgB14LeY.js +1 -0
  124. package/dist/client/assets/{context-menu-BAoOyR8J.js → context-menu-CFt3f_Gb.js} +1 -1
  125. package/dist/client/assets/{context-shell-BFW9I6d4.js → context-shell-KhGmYnbX.js} +5 -5
  126. package/dist/client/assets/{core.esm-DpydQIdT.js → core.esm-Brf7c66K.js} +1 -1
  127. package/dist/client/assets/{create-organization-dialog-DKF90Pre.js → create-organization-dialog-Dshiy6sU.js} +1 -1
  128. package/dist/client/assets/{daily-pulse-Bojl1W7A.js → daily-pulse-DglWu2t-.js} +1 -1
  129. package/dist/client/assets/{discover-CeBBMXm9.js → discover-BLv8PWTL.js} +1 -1
  130. package/dist/client/assets/{domain-settings-BXAu6Flk.js → domain-settings-7tpPEEzB.js} +1 -1
  131. package/dist/client/assets/{drawer-hQxgme01.js → drawer-w05H8pBO.js} +1 -1
  132. package/dist/client/assets/{editor-C7NsJj0P.js → editor-CiOoO-Ym.js} +1 -1
  133. package/dist/client/assets/{editor-classes-iJqU7okF.js → editor-classes-DNAm8ZAW.js} +1 -1
  134. package/dist/client/assets/{empty-state-BGj88Oz3.js → empty-state-BiIeVz7z.js} +1 -1
  135. package/dist/client/assets/{empty-state-Gwq8u3Sk.js → empty-state-ErDRcN-P.js} +1 -1
  136. package/dist/client/assets/experiments-tab-BghFguNv.js +1 -0
  137. package/dist/client/assets/{experiments-tab-choice-C-Kj-SaP.js → experiments-tab-choice-CY-Qbhut.js} +1 -1
  138. package/dist/client/assets/{extract-connection-data-Cx9ah1z5.js → extract-connection-data-C02FZ5zb.js} +1 -1
  139. package/dist/client/assets/{feature-gate-DTum9WCp.js → feature-gate-CE1MLoN2.js} +1 -1
  140. package/dist/client/assets/{feature-paywall-zO4dzbka.js → feature-paywall-C560RaP5.js} +1 -1
  141. package/dist/client/assets/{file-explorer-Xl96APN-.js → file-explorer-CVmiakjw.js} +1 -1
  142. package/dist/client/assets/{file-preview-Bm_62NfP.js → file-preview-Cc6_BSbv.js} +1 -1
  143. package/dist/client/assets/{file-share-button-D7t2lHex.js → file-share-button-Do4wEYep.js} +1 -1
  144. package/dist/client/assets/{file-type-icon-DptKoj-q.js → file-type-icon-CeBZX69W.js} +1 -1
  145. package/dist/client/assets/{folder-icon-CAAlpUI4.js → folder-icon-DgtIAyY7.js} +2 -2
  146. package/dist/client/assets/{form-DU60ZzuM.js → form-nJy5zMPE.js} +1 -1
  147. package/dist/client/assets/{general-DlFBPmt9.js → general-BOPFN5z3.js} +1 -1
  148. package/dist/client/assets/{held-block-view-rUTUNCUd.js → held-block-view-tvHMvR4T.js} +3 -3
  149. package/dist/client/assets/{home-Bo_yPeSm.js → home-CcsI1NKl.js} +1 -1
  150. package/dist/client/assets/hosted-publish-feedback-DxOmBJxT.js +1 -0
  151. package/dist/client/assets/{icon-button-DhKNS89h.js → icon-button-Xe7zTqiw.js} +1 -1
  152. package/dist/client/assets/{index-Boaq93Wx.js → index-B8jtRR0H.js} +2 -2
  153. package/dist/client/assets/{index-DDaQcb3Z.js → index-BD0IquFc.js} +1 -1
  154. package/dist/client/assets/{index-AaUC9WD6.js → index-BJTbyKBB.js} +1 -1
  155. package/dist/client/assets/{index-BwdKQXWi.js → index-BK_RqkJq.js} +1 -1
  156. package/dist/client/assets/{index-Cj3mLa-X.js → index-BzwMZ-96.js} +1 -1
  157. package/dist/client/assets/{index-7KY_ymC5.js → index-CcnAFkjW.js} +1 -1
  158. package/dist/client/assets/{index-Cuw4uBth.js → index-Ce7G0he3.js} +42 -42
  159. package/dist/client/assets/{index-D74iAt06.js → index-Cjzst5W1.js} +1 -1
  160. package/dist/client/assets/{index-BsRMIjqv.js → index-ComxOMRa.js} +1 -1
  161. package/dist/client/assets/{index-B-HoKvLm.js → index-DZ7OjEm4.js} +1 -1
  162. package/dist/client/assets/{index-T8jAgtpZ.js → index-DjOPmK0D.js} +1 -1
  163. package/dist/client/assets/{index-CoQjVodF.js → index-Dm-21QtS.js} +1 -1
  164. package/dist/client/assets/{index-redirect-Du4fUGPn.js → index-redirect-BRlBNfxv.js} +1 -1
  165. package/dist/client/assets/{index-Cp2UI7aA.js → index-tffbmy1v.js} +1 -1
  166. package/dist/client/assets/index-u-z_8GjU.css +1 -0
  167. package/dist/client/assets/{index-BoQ6UNxI.js → index-uE3tVNL6.js} +1 -1
  168. package/dist/client/assets/{index-XfVM7o1o.js → index-xw_Jw9LH.js} +1 -1
  169. package/dist/client/assets/{infiniteQueryObserver-Dy0j8RRj.js → infiniteQueryObserver-BJujpYxh.js} +1 -1
  170. package/dist/client/assets/{infra-billing-BUQH5Z5B.js → infra-billing-C0m6hfZU.js} +1 -1
  171. package/dist/client/assets/{input-eQkN56jq.js → input-B45cW293.js} +4 -4
  172. package/dist/client/assets/{input-CBK8CI9T.js → input-CzPtcD68.js} +1 -1
  173. package/dist/client/assets/{integration-icon-DkmY4VjA.js → integration-icon-Cs3IASPS.js} +1 -1
  174. package/dist/client/assets/{jira-icon-DIX055Fu.js → jira-icon-BuriBSdU.js} +1 -1
  175. package/dist/client/assets/{label-GaS9ZdQZ.js → label-ivnVLsJB.js} +1 -1
  176. package/dist/client/assets/{layout-D6bYiXJy.js → layout-CZlIpVTU.js} +1 -1
  177. package/dist/client/assets/{legacy-agents-deep-DwABkmGV.js → legacy-agents-deep-DMpNnXol.js} +1 -1
  178. package/dist/client/assets/{legacy-main-redirect-D9RmQuU4.js → legacy-main-redirect-CBL3GGt7.js} +1 -1
  179. package/dist/client/assets/library-CdY45oa5.js +1 -0
  180. package/dist/client/assets/{login-DbWYcBcy.js → login-ByMZv8aL.js} +1 -1
  181. package/dist/client/assets/{markdown-DWeSe4_P.js → markdown-UmudOdor.js} +1 -1
  182. package/dist/client/assets/{mcp-app-renderer-gjnt5Msm.js → mcp-app-renderer-PAwZvEJj.js} +1 -1
  183. package/dist/client/assets/{mcp-oauth-BN2jrcE-.js → mcp-oauth-Cz4RwYAs.js} +1 -1
  184. package/dist/client/assets/{mcp-oauth-DCesmV8O.js → mcp-oauth-qpkBxX91.js} +1 -1
  185. package/dist/client/assets/{members-A7hOfyTI.js → members-DcVu4FNR.js} +1 -1
  186. package/dist/client/assets/{memory-BToaysGU.js → memory-C_hVYwsN.js} +2 -2
  187. package/dist/client/assets/{mini-report-page-B-hsDt1L.js → mini-report-page-DqysKZ5e.js} +1 -1
  188. package/dist/client/assets/{mock-board-DrLmLQZ3.js → mock-board-BSsrmRDS.js} +3 -3
  189. package/dist/client/assets/{monaco-editor-D7u0RPEL.js → monaco-editor-Cc-5fhHI.js} +1 -1
  190. package/dist/client/assets/monitoring-DVujO52F.js +1 -0
  191. package/dist/client/assets/{monitoring-stats-row-BHTpzVVz.js → monitoring-stats-row-DosbF5BV.js} +1 -1
  192. package/dist/client/assets/{multi-select-A_VyitSa.js → multi-select-DHn_nlnM.js} +1 -1
  193. package/dist/client/assets/mustache-CKGDjf9j.js +4 -0
  194. package/dist/client/assets/{named-rule-uses-B_glLrdA.js → named-rule-uses-Drzf8cgA.js} +1 -1
  195. package/dist/client/assets/{new-project-dialog-M-WLwZ47.js → new-project-dialog-D3vjD1Ks.js} +1 -1
  196. package/dist/client/assets/{oauth-callback-eNefWc41.js → oauth-callback-D5wWKok2.js} +1 -1
  197. package/dist/client/assets/{oauth-callback-ai-provider-DwNEOUuo.js → oauth-callback-ai-provider-BKG0BbMN.js} +1 -1
  198. package/dist/client/assets/{onboarding-8FafpOAf.js → onboarding-Ci8OMwC9.js} +1 -1
  199. package/dist/client/assets/{openai-conversation-Bi2qzvSg.js → openai-conversation-D9RDSbbV.js} +2 -2
  200. package/dist/client/assets/{optimistic-project-sidebar-views-BFrvBRmj.js → optimistic-project-sidebar-views-L0iLKNqt.js} +1 -1
  201. package/dist/client/assets/{order-monitor-day-BBUvq3hr.js → order-monitor-day-CYrv-YPX.js} +1 -1
  202. package/dist/client/assets/{organization-choice-CGhQdnA_.js → organization-choice-DS1Td5mt.js} +1 -1
  203. package/dist/client/assets/{orgs-Cp4K5sO3.js → orgs-BdW5vuy7.js} +1 -1
  204. package/dist/client/assets/{page-seo-form-BUMyGTyK.js → page-seo-form-4Td1Bwhl.js} +1 -1
  205. package/dist/client/assets/{pair-DtCSsufw.js → pair-D40XxJSs.js} +1 -1
  206. package/dist/client/assets/{parse-sections-B1uka1Vq.js → parse-sections-6LYwkRXc.js} +1 -1
  207. package/dist/client/assets/{plan-D4y2SMp_.js → plan-B5MpX63p.js} +1 -1
  208. package/dist/client/assets/{plan-ladder-Cr-CdTR1.js → plan-ladder-DyKNTGpe.js} +1 -1
  209. package/dist/client/assets/{popover-DiqYPKHh.js → popover-BF3N_cWR.js} +1 -1
  210. package/dist/client/assets/post-calendar-BtEPuDia.js +1 -0
  211. package/dist/client/assets/{post-editor-Bcpnqi7N.js → post-editor-DlfqwxIk.js} +2 -2
  212. package/dist/client/assets/{preview-content-BC2_4BBb.js → preview-content-BV8Fh5Qw.js} +1 -1
  213. package/dist/client/assets/{preview-dialog-DO4TwwDT.js → preview-dialog-BmUPiPPl.js} +1 -1
  214. package/dist/client/assets/{preview-panel-DnnzsZo-.js → preview-panel-llvMLYPZ.js} +1 -1
  215. package/dist/client/assets/{preview-tab-DV_MhenF.js → preview-tab-DieLxroc.js} +3 -3
  216. package/dist/client/assets/{product-picker-dialog-D8RlvSwu.js → product-picker-dialog-DVInlx3E.js} +1 -1
  217. package/dist/client/assets/{profile-CCof6E-v.js → profile-BeQa-VCG.js} +1 -1
  218. package/dist/client/assets/project-app-view-Cey1t0qJ.js +1 -0
  219. package/dist/client/assets/{project-apps-dDvUBGvO.js → project-apps-B_x_Bovr.js} +1 -1
  220. package/dist/client/assets/{project-feed-JqOKyKR3.js → project-feed-CFTw8-Bu.js} +1 -1
  221. package/dist/client/assets/{project-icon-DQNZWn_4.js → project-icon-Cgbmeoa9.js} +1 -1
  222. package/dist/client/assets/project-reports-BuglSKY2.js +1 -0
  223. package/dist/client/assets/project-tasks-CwzdWFfG.js +1 -0
  224. package/dist/client/assets/{projects-D8PEOsfX.js → projects-Cadx_2S-.js} +1 -1
  225. package/dist/client/assets/{projects-empty-state-ComRagNK.js → projects-empty-state-B0sxQqwF.js} +1 -1
  226. package/dist/client/assets/{prompts-D-z15mGy.js → prompts-B6yRUPTQ.js} +1 -1
  227. package/dist/client/assets/record-editor-1SlOHcz4.js +1 -0
  228. package/dist/client/assets/redirect-editor-UO7ym99V.js +1 -0
  229. package/dist/client/assets/releases-api-Dz4kituq.js +1 -0
  230. package/dist/client/assets/{reports-C0wR9iIJ.js → reports-BN03l_kE.js} +1 -1
  231. package/dist/client/assets/reports-DuuFM9rE.js +1 -0
  232. package/dist/client/assets/{reports-onboarding-B1OyYbCz.js → reports-onboarding-CXYw21hI.js} +1 -1
  233. package/dist/client/assets/{reports-tab-D1M-BlGe.js → reports-tab-DNDxSx2i.js} +2 -2
  234. package/dist/client/assets/{repositories-DHT9v-UO.js → repositories-DkDpuhbE.js} +1 -1
  235. package/dist/client/assets/repositories-Dvbq5CpF.js +1 -0
  236. package/dist/client/assets/{repository-binding-CXnxCF4M.js → repository-binding-Dg4XMxXs.js} +1 -1
  237. package/dist/client/assets/{repository-import-picker-DLsxOOxp.js → repository-import-picker-BZ7PPi9W.js} +1 -1
  238. package/dist/client/assets/{repository-picker-Cq7JBkFe.js → repository-picker-aA12wSzy.js} +1 -1
  239. package/dist/client/assets/{require-capability-Cmje3DfT.js → require-capability-CXN6JJ5S.js} +1 -1
  240. package/dist/client/assets/{required-auth-layout-CwX_2fTY.js → required-auth-layout-pDiTStrv.js} +1 -1
  241. package/dist/client/assets/{reset-password-CmI8_Uk5.js → reset-password-CRhNEOOs.js} +1 -1
  242. package/dist/client/assets/{resizable-C7Is3s-0.js → resizable-HiC69AzM.js} +1 -1
  243. package/dist/client/assets/{resolve-tab-icon-_XMXFt4U.js → resolve-tab-icon-DdbyVt-l.js} +1 -1
  244. package/dist/client/assets/{review-settings-BFUKsPsq.js → review-settings-BdnOsmg6.js} +1 -1
  245. package/dist/client/assets/{roles-CeJo75GF.js → roles-C54CSjKN.js} +1 -1
  246. package/dist/client/assets/{route-BMliOu1G.js → route-19TfZ9Nu.js} +1 -1
  247. package/dist/client/assets/{route-Cvt2392J.js → route-ChUurj1a.js} +1 -1
  248. package/dist/client/assets/route-CkPY6J06.js +1 -0
  249. package/dist/client/assets/{sandbox-git-api-CH_-QFpD.js → sandbox-git-api-DcqI6XE4.js} +1 -1
  250. package/dist/client/assets/{sandbox-lifecycle-context-DdYoEP5e.js → sandbox-lifecycle-context-C-6LRZKK.js} +1 -1
  251. package/dist/client/assets/{schema-D5UoICKI.js → schema-4d6JAPZJ.js} +1 -1
  252. package/dist/client/assets/{schema-D02aTPkl.js → schema-DjHUnA9X.js} +1 -1
  253. package/dist/client/assets/{scroll-area-CDUvVvSH.js → scroll-area-DmCvljJ6.js} +1 -1
  254. package/dist/client/assets/{search-input-BqT8bImj.js → search-input-DuxKe01B.js} +1 -1
  255. package/dist/client/assets/{search-toggle-BoR9-yak.js → search-toggle-5fjHehxP.js} +1 -1
  256. package/dist/client/assets/{secret-picker-vfO2xRLb.js → secret-picker-gnCLcdHl.js} +1 -1
  257. package/dist/client/assets/{secrets-DIgmoPjh.js → secrets-1Q0KkbT2.js} +1 -1
  258. package/dist/client/assets/{section-array-field-BwPxgG9_.js → section-array-field-DJWSUlEO.js} +1 -1
  259. package/dist/client/assets/{sections-Bv_E_JwJ.js → sections-BFagCGU_.js} +1 -1
  260. package/dist/client/assets/sections-editor-Cd0e4qhb.js +1 -0
  261. package/dist/client/assets/{select-B73KS7i3.js → select-BU91L4uy.js} +1 -1
  262. package/dist/client/assets/{select-model-zK4bDPrj.js → select-model-CtxoaFb9.js} +1 -1
  263. package/dist/client/assets/{seo-editor-DMhyWewz.js → seo-editor-dOpYS1fH.js} +1 -1
  264. package/dist/client/assets/{separator-Bun_4c4E.js → separator-C2eDbIfB.js} +1 -1
  265. package/dist/client/assets/settings-tab-D7WyDwD7.js +1 -0
  266. package/dist/client/assets/{sheet-56HC7WRJ.js → sheet-CyFkbR9Y.js} +1 -1
  267. package/dist/client/assets/{shell-layout-C2BJGx2g.js → shell-layout-DjxWvBNL.js} +1 -1
  268. package/dist/client/assets/site-draft-actions-Ck3uf8oy.js +3 -0
  269. package/dist/client/assets/site-draft-view-DmpsxvZd.js +2 -0
  270. package/dist/client/assets/site-editor-BXDxn3xb.js +1 -0
  271. package/dist/client/assets/site-editor-toast-DwH2UhLV.js +1 -0
  272. package/dist/client/assets/{skills-DJ7eTdb8.js → skills-CEjNG6HD.js} +1 -1
  273. package/dist/client/assets/{slider-DnA5KcIW.js → slider-wRMQIU5C.js} +1 -1
  274. package/dist/client/assets/{sortable.esm-xXl-6mL4.js → sortable.esm-GfRDqHVM.js} +1 -1
  275. package/dist/client/assets/{sso-CpCZW-eP.js → sso-ou3AfF03.js} +1 -1
  276. package/dist/client/assets/{suggestion-CZpp719s.js → suggestion-GTJqe6wD.js} +2 -2
  277. package/dist/client/assets/{switch-n_zXX4if.js → switch-Be6f0Lf5.js} +1 -1
  278. package/dist/client/assets/{symbol-YpIq4fgA.js → symbol-D9upvJXv.js} +1 -1
  279. package/dist/client/assets/{synced-repos-B2cUQUNf.js → synced-repos-BMxqOtvT.js} +1 -1
  280. package/dist/client/assets/{tab-icon-glyph-D237cGJI.js → tab-icon-glyph-ixZicBgd.js} +1 -1
  281. package/dist/client/assets/{table-CSojOz4z.js → table-Sgqiv7ow.js} +1 -1
  282. package/dist/client/assets/{tabs-C8EZr9R7.js → tabs-CTBn6AHY.js} +1 -1
  283. package/dist/client/assets/{task-assignee-avatar-RKc3yRg-.js → task-assignee-avatar-CgqfXsXT.js} +1 -1
  284. package/dist/client/assets/{task-board-DH9ssxkG.js → task-board-B-WXUk04.js} +1 -1
  285. package/dist/client/assets/{task-route-bLUOK5JR.js → task-route-D7L_AjBa.js} +1 -1
  286. package/dist/client/assets/{task-status-Bc6ioQFn.js → task-status-D47mg_UC.js} +1 -1
  287. package/dist/client/assets/{taskboard-analytics-D7vs-xto.js → taskboard-analytics-BXOv_DdG.js} +1 -1
  288. package/dist/client/assets/tasks-CDonOW9g.js +1 -0
  289. package/dist/client/assets/{tasks-e6DH9H0h.js → tasks-DRiqBj-N.js} +3 -3
  290. package/dist/client/assets/{textarea-CDKBkceb.js → textarea-CiBj0MLq.js} +1 -1
  291. package/dist/client/assets/{thread-analytics-BTiORs_j.js → thread-analytics-apzZ--go.js} +1 -1
  292. package/dist/client/assets/{thread-intent-CZ5_EO2w.js → thread-intent-ClCyX82j.js} +1 -1
  293. package/dist/client/assets/{thread-route-BYWxmsao.js → thread-route-CFct_VQa.js} +1 -1
  294. package/dist/client/assets/{thread-route-DIZgBacC.js → thread-route-D14ghtgQ.js} +1 -1
  295. package/dist/client/assets/{thread-sheet-body-C_1TXm2y.js → thread-sheet-body-BCarr4x7.js} +1 -1
  296. package/dist/client/assets/{time-range-picker-CF_xrXhr.js → time-range-picker-C3_uZ5O2.js} +1 -1
  297. package/dist/client/assets/{toggle-group-DGx4bXEF.js → toggle-group-BVSslRda.js} +1 -1
  298. package/dist/client/assets/{tool-namespace-DO1Qm86o.js → tool-namespace-C-2tGGMF.js} +1 -1
  299. package/dist/client/assets/{toolbar-icon-button-DZE2ESw9.js → toolbar-icon-button-3L1Mfrbu.js} +1 -1
  300. package/dist/client/assets/{tooltip-Ci3ZwooP.js → tooltip-BHLCIkH9.js} +1 -1
  301. package/dist/client/assets/{tooltipContext-DfN2pXFs.js → tooltipContext-BMB7e6XT.js} +1 -1
  302. package/dist/client/assets/{track-BtJWR_CA.js → track-DUL7obAK.js} +1 -1
  303. package/dist/client/assets/{types-DhOLYbcW.js → types-9H7KFAzM.js} +3 -3
  304. package/dist/client/assets/{url-slug-CLyOdzAm.js → url-slug-CrYfl8wu.js} +1 -1
  305. package/dist/client/assets/{usage-stats-CNLGhk-o.js → usage-stats-CtXF_bWd.js} +1 -1
  306. package/dist/client/assets/{use-ai-providers-DOax94rO.js → use-ai-providers-DmHiyABc.js} +1 -1
  307. package/dist/client/assets/{use-apply-named-rule-CJFPy5HY.js → use-apply-named-rule-DnrC-2Y6.js} +1 -1
  308. package/dist/client/assets/{use-automations-CPkt7SVV.js → use-automations-BeX04Bm6.js} +1 -1
  309. package/dist/client/assets/{use-autosave-yGWalCYV.js → use-autosave-Civ5dqYG.js} +1 -1
  310. package/dist/client/assets/{use-chat-layout-state-EYafKK4O.js → use-chat-layout-state-DEHPkPVs.js} +1 -1
  311. package/dist/client/assets/{use-clock-tick-BUftA4XN.js → use-clock-tick-C1thlLib.js} +1 -1
  312. package/dist/client/assets/use-cms-publish-actions-Ca_6MHNE.js +10 -0
  313. package/dist/client/assets/{use-connect-companion-BhEYBdV4.js → use-connect-companion-XN72CB3K.js} +1 -1
  314. package/dist/client/assets/{use-connection-eHzowbKv.js → use-connection-DdV5v_sO.js} +1 -1
  315. package/dist/client/assets/{use-copy-ClerAXdJ.js → use-copy-DGCMROZD.js} +1 -1
  316. package/dist/client/assets/{use-create-virtual-mcp-J2E0RhLc.js → use-create-virtual-mcp-CYamK9uo.js} +1 -1
  317. package/dist/client/assets/{use-date-fns-locale-CrqyAQep.js → use-date-fns-locale-RvTpk_ov.js} +1 -1
  318. package/dist/client/assets/{use-debounced-autosave-BVxg8vxx.js → use-debounced-autosave-CCKD06RC.js} +1 -1
  319. package/dist/client/assets/{use-debounced-value-2_mLSVw4.js → use-debounced-value-D4hMc82O.js} +1 -1
  320. package/dist/client/assets/{use-deco-credits-DABk3yY1.js → use-deco-credits-8Cm_6S2l.js} +1 -1
  321. package/dist/client/assets/{use-decopilot-events-CA56Gos8.js → use-decopilot-events-CMhdGvid.js} +1 -1
  322. package/dist/client/assets/{use-delete-connection-CVhCNDYo.js → use-delete-connection-DczFLZ2h.js} +1 -1
  323. package/dist/client/assets/{use-deployment-admin-BGnnzyoF.js → use-deployment-admin-D33YqaOd.js} +1 -1
  324. package/dist/client/assets/{use-fast-preview-draft-url-DrM2pRhy.js → use-fast-preview-draft-url-5-OqnV1z.js} +1 -1
  325. package/dist/client/assets/{use-file-configs-Bg-fEAGm.js → use-file-configs-B-dtUlcn.js} +1 -1
  326. package/dist/client/assets/{use-inbox-feed-C9znaZFi.js → use-inbox-feed-DgAPUhXS.js} +1 -1
  327. package/dist/client/assets/{use-infinite-scroll-DfZZeab5.js → use-infinite-scroll-Boo11DpH.js} +1 -1
  328. package/dist/client/assets/{use-join-requests-DHGPKNlr.js → use-join-requests-WGDHodyD.js} +1 -1
  329. package/dist/client/assets/{use-main-panel-tabs-WUAIV6cr.js → use-main-panel-tabs-D8UhTy5h.js} +1 -1
  330. package/dist/client/assets/{use-mcp-auth-status-DZTVEUgz.js → use-mcp-auth-status-Ue891t8t.js} +1 -1
  331. package/dist/client/assets/{use-mcp-client-CfpsAKj4.js → use-mcp-client-B9-9jnHW.js} +1 -1
  332. package/dist/client/assets/{use-mcp-prompts-B6wGbsaO.js → use-mcp-prompts-Duq-F4uG.js} +1 -1
  333. package/dist/client/assets/{use-mcp-tools-De9LHWCI.js → use-mcp-tools-DvCVc1NG.js} +1 -1
  334. package/dist/client/assets/{use-mobile-99mfVsUI.js → use-mobile-BZz7cwuI.js} +1 -1
  335. package/dist/client/assets/use-move-blocks-DUpXqrhw.js +1 -0
  336. package/dist/client/assets/{use-navigate-to-agent-DaAFktW9.js → use-navigate-to-agent-CEpb-TPy.js} +1 -1
  337. package/dist/client/assets/{use-open-billing-url-Bzh-ntva.js → use-open-billing-url-AHjpaAXa.js} +1 -1
  338. package/dist/client/assets/{use-org-fs-Dczc29OI.js → use-org-fs-8kFrjmMH.js} +1 -1
  339. package/dist/client/assets/{use-org-repo-syncs-Cf3GrgqR.js → use-org-repo-syncs-DHiYUCj6.js} +1 -1
  340. package/dist/client/assets/{use-org-sso-CTKiuB0A.js → use-org-sso-l3h7LAOC.js} +1 -1
  341. package/dist/client/assets/{use-organization-roles-BfeXwaiy.js → use-organization-roles-DWGBtp2u.js} +1 -1
  342. package/dist/client/assets/{use-organization-settings-SIasU_tC.js → use-organization-settings-DAQWwUyU.js} +1 -1
  343. package/dist/client/assets/{use-panel-navigate-B12jZOsf.js → use-panel-navigate-C-mQZt-r.js} +1 -1
  344. package/dist/client/assets/{use-project-native-view-presence-BYkoNVb2.js → use-project-native-view-presence-D2zRgAqZ.js} +1 -1
  345. package/dist/client/assets/{use-project-scope-8q_Pr-Xb.js → use-project-scope-DYBc2cnp.js} +1 -1
  346. package/dist/client/assets/{use-recent-apps-0tmI_vdA.js → use-recent-apps-CahLdkOq.js} +1 -1
  347. package/dist/client/assets/{use-releases-BrcgpLBE.js → use-releases-Drxi11Hn.js} +1 -1
  348. package/dist/client/assets/{use-reports-diagnostic-DXt6zEk2.js → use-reports-diagnostic-C0y8CLzl.js} +1 -1
  349. package/dist/client/assets/{use-sandbox-events-DukuKdrD.js → use-sandbox-events-DKnAt9WL.js} +1 -1
  350. package/dist/client/assets/{use-secrets-zkQum-du.js → use-secrets-CCJcL_mR.js} +1 -1
  351. package/dist/client/assets/{use-section-preview-base-CPGTecvC.js → use-section-preview-base-yGU9kv3R.js} +1 -1
  352. package/dist/client/assets/{use-session-runtime-BkX1p9DX.js → use-session-runtime-CL3Ry0XG.js} +1 -1
  353. package/dist/client/assets/{use-sidebar-collapsed-DxKpoCm3.js → use-sidebar-collapsed-CbzeRAk-.js} +1 -1
  354. package/dist/client/assets/{use-tags-Cf5XANnQ.js → use-tags-Af_mmSB1.js} +1 -1
  355. package/dist/client/assets/{use-task-board-analytics-Bm_X5xzM.js → use-task-board-analytics-BkPBycom.js} +1 -1
  356. package/dist/client/assets/{use-task-board-events-CmQec1Gn.js → use-task-board-events-Bs2sMvhO.js} +1 -1
  357. package/dist/client/assets/{use-task-board-item-prs-CFwgg281.js → use-task-board-item-prs-DtKTjCYS.js} +1 -1
  358. package/dist/client/assets/{use-task-metadata-ztONCu50.js → use-task-metadata-CaEOmtPV.js} +1 -1
  359. package/dist/client/assets/{use-thread-analytics-D2_R_6NS.js → use-thread-analytics-DFAhXiiU.js} +1 -1
  360. package/dist/client/assets/{use-thread-outputs-CM6siwJk.js → use-thread-outputs-wHP5lV5E.js} +1 -1
  361. package/dist/client/assets/useInfiniteQuery-DAGt4Ai1.js +1 -0
  362. package/dist/client/assets/{useQueries-BmYWSC6K.js → useQueries-bayVPMWC.js} +1 -1
  363. package/dist/client/assets/useSuspenseInfiniteQuery-BCXHmK3t.js +1 -0
  364. package/dist/client/assets/{users-Tw_qkTX5.js → users-BXC7BZTC.js} +1 -1
  365. package/dist/client/assets/{utils-gKN9JfVP.js → utils-C_XIOzcP.js} +1 -1
  366. package/dist/client/assets/{variant-calendar-BPJ1qq_6.js → variant-calendar-DqsG-wJ9.js} +1 -1
  367. package/dist/client/assets/variant-matcher-override-BfAJFrjh.js +1 -0
  368. package/dist/client/assets/view-header-BlWEzmVd.js +1 -0
  369. package/dist/client/assets/{virtual-mcp-DSjzxtZz.js → virtual-mcp-BfSfmNNT.js} +1 -1
  370. package/dist/client/assets/{watch-sse-pool-B-BVtIbV.js → watch-sse-pool-D5nA1051.js} +1 -1
  371. package/dist/client/index.html +2 -2
  372. package/dist/server/server.js +1 -1
  373. package/package.json +1 -1
  374. package/dist/client/assets/agent-analytics-DekAZPEA.js +0 -1
  375. package/dist/client/assets/agent-app-CTIntyRO.js +0 -1
  376. package/dist/client/assets/agent-calendar-BOwlx26G.js +0 -1
  377. package/dist/client/assets/agent-deck-Blwg0xlI.js +0 -1
  378. package/dist/client/assets/agent-experiments-Dh0XTNYQ.js +0 -1
  379. package/dist/client/assets/agent-icon-C1y4Hi5E.js +0 -1
  380. package/dist/client/assets/agent-library-BvqNBNnB.js +0 -1
  381. package/dist/client/assets/agent-library-file-B3CNW-Ur.js +0 -1
  382. package/dist/client/assets/agent-monitor-CRDNCfA0.js +0 -1
  383. package/dist/client/assets/agent-releases-Cm87ANGo.js +0 -2
  384. package/dist/client/assets/agent-settings-BO1V25up.js +0 -1
  385. package/dist/client/assets/agent-site-editor-code-C_cxtapJ.js +0 -2
  386. package/dist/client/assets/agent-site-editor-content-BGtWv50J.js +0 -1
  387. package/dist/client/assets/agent-site-editor-preview-B0XVbr7I.js +0 -1
  388. package/dist/client/assets/agent-view-sQDimm56.js +0 -1
  389. package/dist/client/assets/alert-DiPve0LV.js +0 -1
  390. package/dist/client/assets/api-keys-6VZ4TzW2.js +0 -1
  391. package/dist/client/assets/app-editor-ajdhmZLY.js +0 -1
  392. package/dist/client/assets/category-editor-DcJjRuKm.js +0 -1
  393. package/dist/client/assets/cms-settings-editor-CFLaDl_s.js +0 -1
  394. package/dist/client/assets/collection-table-wrapper-BRngAqmo.js +0 -1
  395. package/dist/client/assets/content-tab--1ooKCUT.js +0 -22
  396. package/dist/client/assets/context-C0NiIgda.js +0 -1
  397. package/dist/client/assets/experiments-tab-B8wvIAAX.js +0 -1
  398. package/dist/client/assets/index-DfpwvZQG.css +0 -1
  399. package/dist/client/assets/library--gRfaIdM.js +0 -1
  400. package/dist/client/assets/monitoring-VWUfglka.js +0 -1
  401. package/dist/client/assets/mustache-BxO97obl.js +0 -4
  402. package/dist/client/assets/post-calendar-DYyzGtbp.js +0 -1
  403. package/dist/client/assets/project-app-view-BwcoGS-v.js +0 -1
  404. package/dist/client/assets/project-reports-C5SkTKHX.js +0 -1
  405. package/dist/client/assets/project-tasks-CX44ab5v.js +0 -1
  406. package/dist/client/assets/record-editor-FHEv7gn_.js +0 -1
  407. package/dist/client/assets/redirect-editor-BcHXzq7w.js +0 -1
  408. package/dist/client/assets/releases-api-Dd6sHYpc.js +0 -1
  409. package/dist/client/assets/reports-DRzidVXr.js +0 -1
  410. package/dist/client/assets/repositories-Q-unbJnr.js +0 -1
  411. package/dist/client/assets/route-DVaDfduX.js +0 -1
  412. package/dist/client/assets/sections-editor-2zr-sr1i.js +0 -1
  413. package/dist/client/assets/settings-tab-CdOisIW6.js +0 -1
  414. package/dist/client/assets/site-draft-actions-CSQlnRHC.js +0 -12
  415. package/dist/client/assets/site-draft-view-BaHCN82W.js +0 -2
  416. package/dist/client/assets/site-editor-VsNIJVQY.js +0 -1
  417. package/dist/client/assets/site-editor-toast-DQ656FVh.js +0 -1
  418. package/dist/client/assets/tasks-DnPEEzRb.js +0 -1
  419. package/dist/client/assets/use-content-sync-CsEeS6wP.js +0 -1
  420. package/dist/client/assets/use-move-blocks-ChQw5gpw.js +0 -1
  421. package/dist/client/assets/useInfiniteQuery-DFK0dHSs.js +0 -1
  422. package/dist/client/assets/useSuspenseInfiniteQuery-BBbMOBX0.js +0 -1
  423. package/dist/client/assets/variant-matcher-override-DKBTrcbu.js +0 -1
@@ -1 +1 @@
1
- import{g1 as O,aX as U,c as P,j as r,r as G,M as ee,b as F,B as K,a4 as te,K as Q,q as se,l as ne,o as re}from"./index-Cuw4uBth.js";import{u as ae}from"./useSuspenseInfiniteQuery-BBbMOBX0.js";import{S as ie,c as le}from"./sheet-56HC7WRJ.js";import{n as oe,t as ce}from"./ChevronUp-7SZxJu8w.js";import{n as W}from"./LinkBroken01-gdfveCgK.js";import{u as de,M as ue}from"./pair-DtCSsufw.js";import{D as me}from"./chat-context-C2Yxk7gW.js";import{I as X}from"./integration-icon-DkmY4VjA.js";import{b as fe}from"./use-decopilot-events-CA56Gos8.js";import{u as ge}from"./use-infinite-scroll-DfZZeab5.js";import{g as xe}from"./task-status-Bc6ioQFn.js";const A=[{ms:6e4,label:"1m"},{ms:12e4,label:"2m"},{ms:3e5,label:"5m"},{ms:6e5,label:"10m"},{ms:9e5,label:"15m"},{ms:18e5,label:"30m"},{ms:36e5,label:"1h"},{ms:72e5,label:"2h"},{ms:216e5,label:"6h"},{ms:432e5,label:"12h"},{ms:864e5,label:"1d"},{ms:6048e5,label:"7d"}],he=40;function Ke(t){const s=(t.endDate.getTime()-t.startDate.getTime())/he;return A.find(i=>i.ms>=s)?.label??A[A.length-1].label}function B(t){const e=A.find(l=>l.label===t);if(e)return e.ms;const s=/^(\d+)([mhd])$/.exec(t);if(!s)return 6e4;const n=parseInt(s[1],10),i=s[2];return i==="h"?n*36e5:i==="d"?n*864e5:n*6e4}function pe(t,e){const s=new Date(t);return B(e)>=864e5?s.toLocaleDateString([],{month:"short",day:"numeric"}):s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function H(t,e){const s=B(e);return new Date(Math.floor(t.getTime()/s)*s)}function be(t){return t>=1e4?`${(t/1e3).toFixed(1)}s`:`${Math.round(t)}ms`}function He(t){return Number.isFinite(t)?t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:Math.round(t).toLocaleString():"0"}function Oe(t){return Number.isFinite(t)?`$${t.toFixed(t<1?4:2)}`:"$0.00"}function Ue(t,e,s){const n=B(s),i=H(e.startDate,s).getTime(),l=e.endDate.getTime(),a=new Map(t.map(c=>[H(new Date(c.timestamp),s).getTime(),c])),d=[];for(let c=i;c<=l;c+=n){const m=a.get(c),h=new Date(c).toISOString();d.push({t:h,ts:c,label:pe(h,s),calls:m?.calls??0,errors:m?.errors??0,errorRate:m?.errorRate??0,avg:m?.avg??0,p50:m?.p50??0,p95:m?.p95??0,inputTokens:m?.inputTokens??0,outputTokens:m?.outputTokens??0,totalTokens:m?.totalTokens??0,costUsd:m?.costUsd??0})}return d}function Ge(t,e,s,n){const i=new Map;for(const o of t)i.set(o.toolName,(i.get(o.toolName)??0)+o[e]);const l=[...i.entries()].sort((o,u)=>u[1]-o[1]).slice(0,s).map(([o])=>o),a=new Set(l),d=new Map,c=new Map;for(const o of t){if(!a.has(o.toolName))continue;const u=o.virtualMcpId??"";d.set(u,(d.get(u)??0)+o[e]),c.set(`${u}::${o.toolName}`,{calls:o.calls,errors:o.errors,outputSize:o.outputSize})}const m=[...d.entries()].sort((o,u)=>u[1]-o[1]).slice(0,n).map(([o])=>o);let h=0;for(const o of m)for(const u of l){const g=c.get(`${o}::${u}`);g&&g[e]>h&&(h=g[e])}return{topTools:l,topAgentIds:m,cellMap:c,maxValue:h}}function Qe(t,e){return e==="requests"?t.calls:e==="errors"?t.errorRate:t.avgDurationMs}function We(t,e){return e==="requests"?t.calls.toLocaleString():e==="errors"?`${t.errorRate.toFixed(1)}%`:be(t.avgDurationMs)}function Y(t){return(t.run_config??{}).agent?.id??(t.virtual_mcp_id||null)}function Z(t,e,s,n){if(!t)return n;const i=e.find(a=>a.id===t)??s?.find(a=>a.id===t);if(i?.title)return i.title;const l=O(t);return l?U(l).title??n:t}function J(t,e,s){if(!t)return null;const n=e.find(l=>l.id===t)??s?.find(l=>l.id===t);if(n?.icon)return n.icon;const i=O(t);return i?U(i).icon??null:null}function je(t){return t?.data?.members??[]}function V(t){const e=P.c(32),{thread:s,connections:n,virtualMcps:i,nav:l}=t,a=F();let d,c;if(e[0]!==n||e[1]!==s||e[2]!==i){const N=Y(s);d=Z(N,i,n,""),c=J(N,i,n),e[0]=n,e[1]=s,e[2]=i,e[3]=d,e[4]=c}else d=e[3],c=e[4];const m=c;let h;e[5]!==d||e[6]!==a||e[7]!==s.title?(h=d||s.title||a("orgs.threads.untitledChat"),e[5]=d,e[6]=a,e[7]=s.title,e[8]=h):h=e[8];let o;e[9]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(W,{}),e[9]=o):o=e[9];let u;e[10]!==m||e[11]!==h?(u=r.jsx(X,{icon:m,name:h,size:"sm",fallbackIcon:o,className:"shadow-edge shrink-0 rounded-md"}),e[10]=m,e[11]=h,e[12]=u):u=e[12];let g;e[13]!==a||e[14]!==s.title?(g=s.title||a("orgs.threads.untitledChat"),e[13]=a,e[14]=s.title,e[15]=g):g=e[15];let b;e[16]!==g?(b=r.jsx(ie,{className:"text-sm leading-snug truncate",children:g}),e[16]=g,e[17]=b):b=e[17];let v;e[18]!==d?(v=d&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:d}),e[18]=d,e[19]=v):v=e[19];let p;e[20]!==b||e[21]!==v?(p=r.jsxs("div",{className:"min-w-0",children:[b,v]}),e[20]=b,e[21]=v,e[22]=p):p=e[22];let f;e[23]!==u||e[24]!==p?(f=r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[u,p]}),e[23]=u,e[24]=p,e[25]=f):f=e[25];let x;e[26]!==l||e[27]!==a?(x=l&&r.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[r.jsx(K,{size:"icon",variant:"ghost",onClick:l.onPrev,disabled:l.index===0,className:"h-7 w-7 text-muted-foreground","aria-label":a("orgs.threads.previousChat"),children:r.jsx(oe,{size:14})}),r.jsx(K,{size:"icon",variant:"ghost",onClick:l.onNext,disabled:l.index===l.total-1,className:"h-7 w-7 text-muted-foreground","aria-label":a("orgs.threads.nextChat"),children:r.jsx(ce,{size:14})})]}),e[26]=l,e[27]=a,e[28]=x):x=e[28];let j;return e[29]!==x||e[30]!==f?(j=r.jsx(le,{className:"px-5 md:px-6 pt-6 pb-5 border-b border-border shrink-0",children:r.jsxs("div",{className:"flex items-start justify-between gap-3 pr-8",children:[f,x]})}),e[29]=x,e[30]=f,e[31]=j):j=e[31],j}function ve(t){const e=P.c(62),{thread:s,connections:n,virtualMcps:i,members:l}=t,a=F();let d,c;if(e[0]!==n||e[1]!==s||e[2]!==i){const I=Y(s);d=Z(I,i,n,""),c=J(I,i,n),e[0]=n,e[1]=s,e[2]=i,e[3]=d,e[4]=c}else d=e[3],c=e[4];const m=c;let h;if(e[5]!==l||e[6]!==s.created_by){const I=je(l);let R;e[8]!==s.created_by?(R=L=>L.userId===s.created_by,e[8]=s.created_by,e[9]=R):R=e[9],h=I.find(R),e[5]=l,e[6]=s.created_by,e[7]=h}else h=e[7];const o=h;let u;e[10]!==o?.user.email||e[11]!==o?.user.name||e[12]!==s.created_by?(u=o?.user.name??o?.user.email??s.created_by?.substring(0,8)??"—",e[10]=o?.user.email,e[11]=o?.user.name,e[12]=s.created_by,e[13]=u):u=e[13];const g=u,b=o?.user.image??void 0;let v;e[14]!==s.created_at?(v=new Date(s.created_at).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}),e[14]=s.created_at,e[15]=v):v=e[15];const p=v;let f,x,j,N,C,w;if(e[16]!==a||e[17]!==s.status){const I=xe(s.status),R=I.icon;f="px-5 md:px-6 py-5 border-b border-border grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-4 text-sm";let L;e[24]!==a?(L=a("orgs.threads.status"),e[24]=a,e[25]=L):L=e[25],e[26]!==L?(w=r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:L}),e[26]=L,e[27]=w):w=e[27],N="flex items-center gap-1.5",C=r.jsx(R,{size:13,className:I.iconClassName}),x=ne("text-sm",I.labelColor),j=a(I.labelKey),e[16]=a,e[17]=s.status,e[18]=f,e[19]=x,e[20]=j,e[21]=N,e[22]=C,e[23]=w}else f=e[18],x=e[19],j=e[20],N=e[21],C=e[22],w=e[23];let T;e[28]!==x||e[29]!==j?(T=r.jsx("span",{className:x,children:j}),e[28]=x,e[29]=j,e[30]=T):T=e[30];let S;e[31]!==T||e[32]!==N||e[33]!==C?(S=r.jsxs("div",{className:N,children:[C,T]}),e[31]=T,e[32]=N,e[33]=C,e[34]=S):S=e[34];let y;e[35]!==S||e[36]!==w?(y=r.jsxs("div",{children:[w,S]}),e[35]=S,e[36]=w,e[37]=y):y=e[37];let E;e[38]!==a?(E=a("orgs.threads.date"),e[38]=a,e[39]=E):E=e[39];let _;e[40]!==E?(_=r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:E}),e[40]=E,e[41]=_):_=e[41];let M;e[42]!==p?(M=r.jsx("div",{className:"text-sm text-foreground",children:p}),e[42]=p,e[43]=M):M=e[43];let D;e[44]!==_||e[45]!==M?(D=r.jsxs("div",{children:[_,M]}),e[44]=_,e[45]=M,e[46]=D):D=e[46];let $;e[47]!==a||e[48]!==s.created_by||e[49]!==b||e[50]!==g?($=s.created_by&&r.jsxs("div",{children:[r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:a("orgs.threads.user")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(re,{url:b,fallback:g,shape:"circle",size:"2xs",className:"shrink-0"}),r.jsx("span",{className:"text-sm text-foreground",children:g})]})]}),e[47]=a,e[48]=s.created_by,e[49]=b,e[50]=g,e[51]=$):$=e[51];let k;e[52]!==m||e[53]!==d||e[54]!==a?(k=d&&r.jsxs("div",{children:[r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:a("orgs.threads.agent")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(X,{icon:m,name:d,size:"xs",fallbackIcon:r.jsx(W,{}),className:"shrink-0 size-5! min-w-5! rounded-md"}),r.jsx("span",{className:"text-sm text-foreground",children:d})]})]}),e[52]=m,e[53]=d,e[54]=a,e[55]=k):k=e[55];let z;return e[56]!==f||e[57]!==y||e[58]!==D||e[59]!==$||e[60]!==k?(z=r.jsxs("div",{className:f,children:[y,D,$,k]}),e[56]=f,e[57]=y,e[58]=D,e[59]=$,e[60]=k,e[61]=z):z=e[61],z}const q=100;function Ne(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.noMessagesInChat"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function Me(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.loadingMore"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}const Te=400,Se=5e3;function ye(t,e,s){const n=P.c(8),i=se(),l=G.useRef(null);let a;n[0]!==e||n[1]!==i||n[2]!==s?(a=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null,i.invalidateQueries({queryKey:Q.threadMessages(e,s)})},Te)},n[0]=e,n[1]=i,n[2]=s,n[3]=a):a=n[3];const d=a;let c;n[4]!==t||n[5]!==d||n[6]!==s?(c={orgSlug:t,taskId:s,onStep:d,onFinish:d,onReconnect:d},n[4]=t,n[5]=d,n[6]=s,n[7]=c):c=n[7],fe(c)}function _e(t){const e=P.c(36),{client:s,locator:n,thread:i,connections:l,virtualMcps:a,members:d,nav:c,meta:m}=t,{org:h}=te();let o;e[0]!==n||e[1]!==i.id?(o=Q.threadMessages(n,i.id),e[0]=n,e[1]=i.id,e[2]=o):o=e[2];let u;e[3]!==s||e[4]!==i.id?(u=async _=>{const{pageParam:M}=_,D=M===void 0?0:M;if(!s)throw new Error("MCP client is not available");const $=await s.callTool({name:"COLLECTION_THREAD_MESSAGES_LIST",arguments:{thread_id:i.id,limit:q,offset:D}});return $.structuredContent??$},e[3]=s,e[4]=i.id,e[5]=u):u=e[5];let g;e[6]!==o||e[7]!==u?(g={queryKey:o,queryFn:u,initialPageParam:0,getNextPageParam:Ee,staleTime:0,refetchInterval:Se},e[6]=o,e[7]=u,e[8]=g):g=e[8];const{data:b,fetchNextPage:v,hasNextPage:p,isFetchingNextPage:f}=ae(g);ye(h.slug,n,i.id);let x;e[9]!==b.pages?(x=b.pages.flatMap(Ce).filter(we),e[9]=b.pages,e[10]=x):x=e[10];const j=x,N=de(j);let C;e[11]!==v||e[12]!==p||e[13]!==f?(C=()=>{p&&!f&&v()},e[11]=v,e[12]=p,e[13]=f,e[14]=C):C=e[14];const w=ge(C,p??!1,f);let T;e[15]!==l||e[16]!==c||e[17]!==i||e[18]!==a?(T=r.jsx(V,{thread:i,connections:l,virtualMcps:a,nav:c}),e[15]=l,e[16]=c,e[17]=i,e[18]=a,e[19]=T):T=e[19];let S;e[20]!==l||e[21]!==d||e[22]!==m||e[23]!==i||e[24]!==a?(S=m&&r.jsx(ve,{thread:i,connections:l,virtualMcps:a,members:d}),e[20]=l,e[21]=d,e[22]=m,e[23]=i,e[24]=a,e[25]=S):S=e[25];let y;e[26]!==f||e[27]!==w||e[28]!==N||e[29]!==j.length||e[30]!==i.status?(y=j.length===0?r.jsx(Ne,{}):r.jsx("div",{"data-chat-scroller":!0,className:"flex-1 overflow-y-auto min-h-0",children:r.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[N.map((_,M)=>r.jsx("div",{ref:M===N.length-1?w:void 0,children:r.jsx(ue,{pair:_,isLastPair:M===N.length-1,status:M===N.length-1&&i.status==="in_progress"?"streaming":"ready"})},`pair-${_.user?.id??_.assistant?.id}`)),f&&r.jsx(Me,{})]})}),e[26]=f,e[27]=w,e[28]=N,e[29]=j.length,e[30]=i.status,e[31]=y):y=e[31];let E;return e[32]!==T||e[33]!==S||e[34]!==y?(E=r.jsxs(r.Fragment,{children:[T,S,y]}),e[32]=T,e[33]=S,e[34]=y,e[35]=E):E=e[35],E}function we(t){return t.role==="user"||t.role==="assistant"}function Ce(t){return t.items??[]}function Ee(t,e){const s=t,n=e;if(!((s?.items?.length??0)<q))return n.length*q}function Ie(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.failedToLoadMessages"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function $e(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.loadingConversation"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function Xe(t){const e=P.c(31),{thread:s,client:n,locator:i,connections:l,virtualMcps:a,members:d,nav:c,meta:m}=t,h=m===void 0?!0:m;let o;e[0]!==l||e[1]!==c||e[2]!==s||e[3]!==a?(o=r.jsx(V,{thread:s,connections:l,virtualMcps:a,nav:c}),e[0]=l,e[1]=c,e[2]=s,e[3]=a,e[4]=o):o=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsx(Ie,{}),e[5]=u):u=e[5];let g;e[6]!==o?(g=r.jsxs(r.Fragment,{children:[o,u]}),e[6]=o,e[7]=g):g=e[7];let b;e[8]!==l||e[9]!==c||e[10]!==s||e[11]!==a?(b=r.jsx(V,{thread:s,connections:l,virtualMcps:a,nav:c}),e[8]=l,e[9]=c,e[10]=s,e[11]=a,e[12]=b):b=e[12];let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx($e,{}),e[13]=v):v=e[13];let p;e[14]!==b?(p=r.jsxs(r.Fragment,{children:[b,v]}),e[14]=b,e[15]=p):p=e[15];let f;e[16]!==n||e[17]!==l||e[18]!==i||e[19]!==d||e[20]!==h||e[21]!==c||e[22]!==s||e[23]!==a?(f=r.jsx(_e,{client:n,locator:i,thread:s,connections:l,virtualMcps:a,members:d,nav:c,meta:h}),e[16]=n,e[17]=l,e[18]=i,e[19]=d,e[20]=h,e[21]=c,e[22]=s,e[23]=a,e[24]=f):f=e[24];let x;e[25]!==p||e[26]!==f?(x=r.jsx(G.Suspense,{fallback:p,children:f}),e[25]=p,e[26]=f,e[27]=x):x=e[27];let j;return e[28]!==g||e[29]!==x?(j=r.jsx(me,{children:r.jsx(ee,{fallback:g,children:x})}),e[28]=g,e[29]=x,e[30]=j):j=e[30],j}export{Xe as T,Oe as a,Ue as b,be as c,We as d,Qe as e,He as f,Ke as g,Ge as h,je as i,Y as j,J as k,Z as r};
1
+ import{g1 as O,aX as U,c as P,j as r,r as G,M as ee,b as F,B as K,a4 as te,K as Q,q as se,l as ne,o as re}from"./index-Ce7G0he3.js";import{u as ae}from"./useSuspenseInfiniteQuery-BCXHmK3t.js";import{S as ie,c as le}from"./sheet-CyFkbR9Y.js";import{n as oe,t as ce}from"./ChevronUp-Cn8PaBxH.js";import{n as W}from"./LinkBroken01-Bg7pBcuJ.js";import{u as de,M as ue}from"./pair-D40XxJSs.js";import{D as me}from"./chat-context-DIvwe-Wr.js";import{I as X}from"./integration-icon-Cs3IASPS.js";import{b as fe}from"./use-decopilot-events-CMhdGvid.js";import{u as ge}from"./use-infinite-scroll-Boo11DpH.js";import{g as xe}from"./task-status-D47mg_UC.js";const A=[{ms:6e4,label:"1m"},{ms:12e4,label:"2m"},{ms:3e5,label:"5m"},{ms:6e5,label:"10m"},{ms:9e5,label:"15m"},{ms:18e5,label:"30m"},{ms:36e5,label:"1h"},{ms:72e5,label:"2h"},{ms:216e5,label:"6h"},{ms:432e5,label:"12h"},{ms:864e5,label:"1d"},{ms:6048e5,label:"7d"}],he=40;function Ke(t){const s=(t.endDate.getTime()-t.startDate.getTime())/he;return A.find(i=>i.ms>=s)?.label??A[A.length-1].label}function B(t){const e=A.find(l=>l.label===t);if(e)return e.ms;const s=/^(\d+)([mhd])$/.exec(t);if(!s)return 6e4;const n=parseInt(s[1],10),i=s[2];return i==="h"?n*36e5:i==="d"?n*864e5:n*6e4}function pe(t,e){const s=new Date(t);return B(e)>=864e5?s.toLocaleDateString([],{month:"short",day:"numeric"}):s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function H(t,e){const s=B(e);return new Date(Math.floor(t.getTime()/s)*s)}function be(t){return t>=1e4?`${(t/1e3).toFixed(1)}s`:`${Math.round(t)}ms`}function He(t){return Number.isFinite(t)?t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:Math.round(t).toLocaleString():"0"}function Oe(t){return Number.isFinite(t)?`$${t.toFixed(t<1?4:2)}`:"$0.00"}function Ue(t,e,s){const n=B(s),i=H(e.startDate,s).getTime(),l=e.endDate.getTime(),a=new Map(t.map(c=>[H(new Date(c.timestamp),s).getTime(),c])),d=[];for(let c=i;c<=l;c+=n){const m=a.get(c),h=new Date(c).toISOString();d.push({t:h,ts:c,label:pe(h,s),calls:m?.calls??0,errors:m?.errors??0,errorRate:m?.errorRate??0,avg:m?.avg??0,p50:m?.p50??0,p95:m?.p95??0,inputTokens:m?.inputTokens??0,outputTokens:m?.outputTokens??0,totalTokens:m?.totalTokens??0,costUsd:m?.costUsd??0})}return d}function Ge(t,e,s,n){const i=new Map;for(const o of t)i.set(o.toolName,(i.get(o.toolName)??0)+o[e]);const l=[...i.entries()].sort((o,u)=>u[1]-o[1]).slice(0,s).map(([o])=>o),a=new Set(l),d=new Map,c=new Map;for(const o of t){if(!a.has(o.toolName))continue;const u=o.virtualMcpId??"";d.set(u,(d.get(u)??0)+o[e]),c.set(`${u}::${o.toolName}`,{calls:o.calls,errors:o.errors,outputSize:o.outputSize})}const m=[...d.entries()].sort((o,u)=>u[1]-o[1]).slice(0,n).map(([o])=>o);let h=0;for(const o of m)for(const u of l){const g=c.get(`${o}::${u}`);g&&g[e]>h&&(h=g[e])}return{topTools:l,topAgentIds:m,cellMap:c,maxValue:h}}function Qe(t,e){return e==="requests"?t.calls:e==="errors"?t.errorRate:t.avgDurationMs}function We(t,e){return e==="requests"?t.calls.toLocaleString():e==="errors"?`${t.errorRate.toFixed(1)}%`:be(t.avgDurationMs)}function Y(t){return(t.run_config??{}).agent?.id??(t.virtual_mcp_id||null)}function Z(t,e,s,n){if(!t)return n;const i=e.find(a=>a.id===t)??s?.find(a=>a.id===t);if(i?.title)return i.title;const l=O(t);return l?U(l).title??n:t}function J(t,e,s){if(!t)return null;const n=e.find(l=>l.id===t)??s?.find(l=>l.id===t);if(n?.icon)return n.icon;const i=O(t);return i?U(i).icon??null:null}function je(t){return t?.data?.members??[]}function V(t){const e=P.c(32),{thread:s,connections:n,virtualMcps:i,nav:l}=t,a=F();let d,c;if(e[0]!==n||e[1]!==s||e[2]!==i){const N=Y(s);d=Z(N,i,n,""),c=J(N,i,n),e[0]=n,e[1]=s,e[2]=i,e[3]=d,e[4]=c}else d=e[3],c=e[4];const m=c;let h;e[5]!==d||e[6]!==a||e[7]!==s.title?(h=d||s.title||a("orgs.threads.untitledChat"),e[5]=d,e[6]=a,e[7]=s.title,e[8]=h):h=e[8];let o;e[9]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(W,{}),e[9]=o):o=e[9];let u;e[10]!==m||e[11]!==h?(u=r.jsx(X,{icon:m,name:h,size:"sm",fallbackIcon:o,className:"shadow-edge shrink-0 rounded-md"}),e[10]=m,e[11]=h,e[12]=u):u=e[12];let g;e[13]!==a||e[14]!==s.title?(g=s.title||a("orgs.threads.untitledChat"),e[13]=a,e[14]=s.title,e[15]=g):g=e[15];let b;e[16]!==g?(b=r.jsx(ie,{className:"text-sm leading-snug truncate",children:g}),e[16]=g,e[17]=b):b=e[17];let v;e[18]!==d?(v=d&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:d}),e[18]=d,e[19]=v):v=e[19];let p;e[20]!==b||e[21]!==v?(p=r.jsxs("div",{className:"min-w-0",children:[b,v]}),e[20]=b,e[21]=v,e[22]=p):p=e[22];let f;e[23]!==u||e[24]!==p?(f=r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[u,p]}),e[23]=u,e[24]=p,e[25]=f):f=e[25];let x;e[26]!==l||e[27]!==a?(x=l&&r.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[r.jsx(K,{size:"icon",variant:"ghost",onClick:l.onPrev,disabled:l.index===0,className:"h-7 w-7 text-muted-foreground","aria-label":a("orgs.threads.previousChat"),children:r.jsx(oe,{size:14})}),r.jsx(K,{size:"icon",variant:"ghost",onClick:l.onNext,disabled:l.index===l.total-1,className:"h-7 w-7 text-muted-foreground","aria-label":a("orgs.threads.nextChat"),children:r.jsx(ce,{size:14})})]}),e[26]=l,e[27]=a,e[28]=x):x=e[28];let j;return e[29]!==x||e[30]!==f?(j=r.jsx(le,{className:"px-5 md:px-6 pt-6 pb-5 border-b border-border shrink-0",children:r.jsxs("div",{className:"flex items-start justify-between gap-3 pr-8",children:[f,x]})}),e[29]=x,e[30]=f,e[31]=j):j=e[31],j}function ve(t){const e=P.c(62),{thread:s,connections:n,virtualMcps:i,members:l}=t,a=F();let d,c;if(e[0]!==n||e[1]!==s||e[2]!==i){const I=Y(s);d=Z(I,i,n,""),c=J(I,i,n),e[0]=n,e[1]=s,e[2]=i,e[3]=d,e[4]=c}else d=e[3],c=e[4];const m=c;let h;if(e[5]!==l||e[6]!==s.created_by){const I=je(l);let R;e[8]!==s.created_by?(R=L=>L.userId===s.created_by,e[8]=s.created_by,e[9]=R):R=e[9],h=I.find(R),e[5]=l,e[6]=s.created_by,e[7]=h}else h=e[7];const o=h;let u;e[10]!==o?.user.email||e[11]!==o?.user.name||e[12]!==s.created_by?(u=o?.user.name??o?.user.email??s.created_by?.substring(0,8)??"—",e[10]=o?.user.email,e[11]=o?.user.name,e[12]=s.created_by,e[13]=u):u=e[13];const g=u,b=o?.user.image??void 0;let v;e[14]!==s.created_at?(v=new Date(s.created_at).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}),e[14]=s.created_at,e[15]=v):v=e[15];const p=v;let f,x,j,N,C,w;if(e[16]!==a||e[17]!==s.status){const I=xe(s.status),R=I.icon;f="px-5 md:px-6 py-5 border-b border-border grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-4 text-sm";let L;e[24]!==a?(L=a("orgs.threads.status"),e[24]=a,e[25]=L):L=e[25],e[26]!==L?(w=r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:L}),e[26]=L,e[27]=w):w=e[27],N="flex items-center gap-1.5",C=r.jsx(R,{size:13,className:I.iconClassName}),x=ne("text-sm",I.labelColor),j=a(I.labelKey),e[16]=a,e[17]=s.status,e[18]=f,e[19]=x,e[20]=j,e[21]=N,e[22]=C,e[23]=w}else f=e[18],x=e[19],j=e[20],N=e[21],C=e[22],w=e[23];let T;e[28]!==x||e[29]!==j?(T=r.jsx("span",{className:x,children:j}),e[28]=x,e[29]=j,e[30]=T):T=e[30];let S;e[31]!==T||e[32]!==N||e[33]!==C?(S=r.jsxs("div",{className:N,children:[C,T]}),e[31]=T,e[32]=N,e[33]=C,e[34]=S):S=e[34];let y;e[35]!==S||e[36]!==w?(y=r.jsxs("div",{children:[w,S]}),e[35]=S,e[36]=w,e[37]=y):y=e[37];let E;e[38]!==a?(E=a("orgs.threads.date"),e[38]=a,e[39]=E):E=e[39];let _;e[40]!==E?(_=r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:E}),e[40]=E,e[41]=_):_=e[41];let M;e[42]!==p?(M=r.jsx("div",{className:"text-sm text-foreground",children:p}),e[42]=p,e[43]=M):M=e[43];let D;e[44]!==_||e[45]!==M?(D=r.jsxs("div",{children:[_,M]}),e[44]=_,e[45]=M,e[46]=D):D=e[46];let $;e[47]!==a||e[48]!==s.created_by||e[49]!==b||e[50]!==g?($=s.created_by&&r.jsxs("div",{children:[r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:a("orgs.threads.user")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(re,{url:b,fallback:g,shape:"circle",size:"2xs",className:"shrink-0"}),r.jsx("span",{className:"text-sm text-foreground",children:g})]})]}),e[47]=a,e[48]=s.created_by,e[49]=b,e[50]=g,e[51]=$):$=e[51];let k;e[52]!==m||e[53]!==d||e[54]!==a?(k=d&&r.jsxs("div",{children:[r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:a("orgs.threads.agent")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(X,{icon:m,name:d,size:"xs",fallbackIcon:r.jsx(W,{}),className:"shrink-0 size-5! min-w-5! rounded-md"}),r.jsx("span",{className:"text-sm text-foreground",children:d})]})]}),e[52]=m,e[53]=d,e[54]=a,e[55]=k):k=e[55];let z;return e[56]!==f||e[57]!==y||e[58]!==D||e[59]!==$||e[60]!==k?(z=r.jsxs("div",{className:f,children:[y,D,$,k]}),e[56]=f,e[57]=y,e[58]=D,e[59]=$,e[60]=k,e[61]=z):z=e[61],z}const q=100;function Ne(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.noMessagesInChat"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function Me(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.loadingMore"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}const Te=400,Se=5e3;function ye(t,e,s){const n=P.c(8),i=se(),l=G.useRef(null);let a;n[0]!==e||n[1]!==i||n[2]!==s?(a=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null,i.invalidateQueries({queryKey:Q.threadMessages(e,s)})},Te)},n[0]=e,n[1]=i,n[2]=s,n[3]=a):a=n[3];const d=a;let c;n[4]!==t||n[5]!==d||n[6]!==s?(c={orgSlug:t,taskId:s,onStep:d,onFinish:d,onReconnect:d},n[4]=t,n[5]=d,n[6]=s,n[7]=c):c=n[7],fe(c)}function _e(t){const e=P.c(36),{client:s,locator:n,thread:i,connections:l,virtualMcps:a,members:d,nav:c,meta:m}=t,{org:h}=te();let o;e[0]!==n||e[1]!==i.id?(o=Q.threadMessages(n,i.id),e[0]=n,e[1]=i.id,e[2]=o):o=e[2];let u;e[3]!==s||e[4]!==i.id?(u=async _=>{const{pageParam:M}=_,D=M===void 0?0:M;if(!s)throw new Error("MCP client is not available");const $=await s.callTool({name:"COLLECTION_THREAD_MESSAGES_LIST",arguments:{thread_id:i.id,limit:q,offset:D}});return $.structuredContent??$},e[3]=s,e[4]=i.id,e[5]=u):u=e[5];let g;e[6]!==o||e[7]!==u?(g={queryKey:o,queryFn:u,initialPageParam:0,getNextPageParam:Ee,staleTime:0,refetchInterval:Se},e[6]=o,e[7]=u,e[8]=g):g=e[8];const{data:b,fetchNextPage:v,hasNextPage:p,isFetchingNextPage:f}=ae(g);ye(h.slug,n,i.id);let x;e[9]!==b.pages?(x=b.pages.flatMap(Ce).filter(we),e[9]=b.pages,e[10]=x):x=e[10];const j=x,N=de(j);let C;e[11]!==v||e[12]!==p||e[13]!==f?(C=()=>{p&&!f&&v()},e[11]=v,e[12]=p,e[13]=f,e[14]=C):C=e[14];const w=ge(C,p??!1,f);let T;e[15]!==l||e[16]!==c||e[17]!==i||e[18]!==a?(T=r.jsx(V,{thread:i,connections:l,virtualMcps:a,nav:c}),e[15]=l,e[16]=c,e[17]=i,e[18]=a,e[19]=T):T=e[19];let S;e[20]!==l||e[21]!==d||e[22]!==m||e[23]!==i||e[24]!==a?(S=m&&r.jsx(ve,{thread:i,connections:l,virtualMcps:a,members:d}),e[20]=l,e[21]=d,e[22]=m,e[23]=i,e[24]=a,e[25]=S):S=e[25];let y;e[26]!==f||e[27]!==w||e[28]!==N||e[29]!==j.length||e[30]!==i.status?(y=j.length===0?r.jsx(Ne,{}):r.jsx("div",{"data-chat-scroller":!0,className:"flex-1 overflow-y-auto min-h-0",children:r.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[N.map((_,M)=>r.jsx("div",{ref:M===N.length-1?w:void 0,children:r.jsx(ue,{pair:_,isLastPair:M===N.length-1,status:M===N.length-1&&i.status==="in_progress"?"streaming":"ready"})},`pair-${_.user?.id??_.assistant?.id}`)),f&&r.jsx(Me,{})]})}),e[26]=f,e[27]=w,e[28]=N,e[29]=j.length,e[30]=i.status,e[31]=y):y=e[31];let E;return e[32]!==T||e[33]!==S||e[34]!==y?(E=r.jsxs(r.Fragment,{children:[T,S,y]}),e[32]=T,e[33]=S,e[34]=y,e[35]=E):E=e[35],E}function we(t){return t.role==="user"||t.role==="assistant"}function Ce(t){return t.items??[]}function Ee(t,e){const s=t,n=e;if(!((s?.items?.length??0)<q))return n.length*q}function Ie(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.failedToLoadMessages"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function $e(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.loadingConversation"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function Xe(t){const e=P.c(31),{thread:s,client:n,locator:i,connections:l,virtualMcps:a,members:d,nav:c,meta:m}=t,h=m===void 0?!0:m;let o;e[0]!==l||e[1]!==c||e[2]!==s||e[3]!==a?(o=r.jsx(V,{thread:s,connections:l,virtualMcps:a,nav:c}),e[0]=l,e[1]=c,e[2]=s,e[3]=a,e[4]=o):o=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsx(Ie,{}),e[5]=u):u=e[5];let g;e[6]!==o?(g=r.jsxs(r.Fragment,{children:[o,u]}),e[6]=o,e[7]=g):g=e[7];let b;e[8]!==l||e[9]!==c||e[10]!==s||e[11]!==a?(b=r.jsx(V,{thread:s,connections:l,virtualMcps:a,nav:c}),e[8]=l,e[9]=c,e[10]=s,e[11]=a,e[12]=b):b=e[12];let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx($e,{}),e[13]=v):v=e[13];let p;e[14]!==b?(p=r.jsxs(r.Fragment,{children:[b,v]}),e[14]=b,e[15]=p):p=e[15];let f;e[16]!==n||e[17]!==l||e[18]!==i||e[19]!==d||e[20]!==h||e[21]!==c||e[22]!==s||e[23]!==a?(f=r.jsx(_e,{client:n,locator:i,thread:s,connections:l,virtualMcps:a,members:d,nav:c,meta:h}),e[16]=n,e[17]=l,e[18]=i,e[19]=d,e[20]=h,e[21]=c,e[22]=s,e[23]=a,e[24]=f):f=e[24];let x;e[25]!==p||e[26]!==f?(x=r.jsx(G.Suspense,{fallback:p,children:f}),e[25]=p,e[26]=f,e[27]=x):x=e[27];let j;return e[28]!==g||e[29]!==x?(j=r.jsx(me,{children:r.jsx(ee,{fallback:g,children:x})}),e[28]=g,e[29]=x,e[30]=j):j=e[30],j}export{Xe as T,Oe as a,Ue as b,be as c,We as d,Qe as e,He as f,Ke as g,Ge as h,je as i,Y as j,J as k,Z as r};
@@ -1 +1 @@
1
- import{r as u,j as t,I as O,l as E,B as C}from"./index-Cuw4uBth.js";import{P as H,a as P,b as _}from"./popover-DiqYPKHh.js";import{S as G}from"./scroll-area-CDUvVvSH.js";import{t as K}from"./ChevronUp-7SZxJu8w.js";import{r as Y,U as q}from"./agent-icon-C1y4Hi5E.js";import{C as J}from"./calendar-DqTMQkmt.js";const B=/^now(?:-(\d+)([mhdwM]))?$/,W={m:"minute",h:"hour",d:"day",w:"week",M:"month"};function z(e){const s=e.trim();if(s==="now")return{isNow:!0,offset:0,unit:null};const r=s.match(B);if(!r)return null;const l=r[1]?Number.parseInt(r[1],10):0,n=r[2]||null;return{isNow:!0,offset:l,unit:n}}function h(e,s=new Date){const r=e.trim(),l=new Date(r);if(!Number.isNaN(l.getTime())&&r.includes("-"))return{valid:!0,date:l};const n=z(r);if(!n)return{valid:!1,date:null,error:'Invalid expression. Use "now" or "now-Xu" (e.g., now-2d, now-3h)'};const o=new Date(s);if(n.offset===0||!n.unit)return{valid:!0,date:o};switch(n.unit){case"m":o.setMinutes(o.getMinutes()-n.offset);break;case"h":o.setHours(o.getHours()-n.offset);break;case"d":o.setDate(o.getDate()-n.offset);break;case"w":o.setDate(o.getDate()-n.offset*7);break;case"M":o.setMonth(o.getMonth()-n.offset);break}return{valid:!0,date:o}}function Z(e){return e.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function U(e){const s=e.trim();return B.test(s)}function V(e){const s=e.trim();if(s==="now")return"Now";const r=z(s);if(!r||!r.unit){const o=h(s);return o.valid&&o.date?Z(o.date):s}const l=W[r.unit],n=r.offset!==1?"s":"";return`${r.offset} ${l}${n} ago`}const Q=[{label:"Last 5 minutes",from:"now-5m",to:"now",value:"5m"},{label:"Last 15 minutes",from:"now-15m",to:"now",value:"15m"},{label:"Last 30 minutes",from:"now-30m",to:"now",value:"30m"},{label:"Last 1 hour",from:"now-1h",to:"now",value:"1h"},{label:"Last 3 hours",from:"now-3h",to:"now",value:"3h"},{label:"Last 6 hours",from:"now-6h",to:"now",value:"6h"},{label:"Last 12 hours",from:"now-12h",to:"now",value:"12h"},{label:"Last 24 hours",from:"now-24h",to:"now",value:"24h"},{label:"Last 2 days",from:"now-2d",to:"now",value:"2d"},{label:"Last 7 days",from:"now-7d",to:"now",value:"7d"},{label:"Last 30 days",from:"now-30d",to:"now",value:"30d"}];function ee(e,s,r=Q){const l=r.find(n=>n.from===e&&n.to===s);return l?l.label:`${V(e)} to ${V(s)}`}function T(e){const s=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),l=String(e.getDate()).padStart(2,"0"),n=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),p=String(e.getSeconds()).padStart(2,"0");return`${s}-${r}-${l} ${n}:${o}:${p}`}function te(e){const s=e.match(/^(\d{4})-(\d{2})-(\d{2})\s+(\d{2}):(\d{2}):(\d{2})$/);if(!s)return null;const[,r,l,n,o,p,g]=s,x=new Date(Number(r),Number(l)-1,Number(n),Number(o),Number(p),Number(g));return Number.isNaN(x.getTime())?null:x}function $(e){if(U(e))return e;const s=h(e);return s.valid&&s.date?T(s.date):e}function A({value:e,onChange:s,placeholder:r="now or now-2d",className:l,disabled:n,error:o}){const[p,g]=u.useState(!1),[x,m]=u.useState(()=>$(e)),[L,c]=u.useState(),[D,w]=u.useState(!1),b=u.useRef(e);b.current!==e&&(b.current=e,D||m($(e)));const y=i=>{const d=i.target.value;m(d),c(void 0)},R=()=>{w(!0)},N=()=>{w(!1);const i=x.trim();if(U(i)){c(void 0),s(i);return}const d=te(i);if(d){c(void 0),s(d.toISOString()),m(T(d));return}const f=h(i);if(f.valid&&f.date){c(void 0),s(i),m(T(f.date));return}m($(e)),c(void 0)},v=i=>{if(i){const f=h(e).date||new Date;i.setHours(f.getHours()),i.setMinutes(f.getMinutes()),i.setSeconds(0),i.setMilliseconds(0);const F=i.toISOString();m(T(i)),s(F),c(void 0)}g(!1)},M=i=>{const[d,f]=i.target.value.split(":").map(Number),j=h(e).date||new Date;j.setHours(d||0),j.setMinutes(f||0),j.setSeconds(0),j.setMilliseconds(0);const X=j.toISOString();m(T(j)),s(X)},I=h(e),S=I.valid?I.date:new Date,k=S?`${String(S.getHours()).padStart(2,"0")}:${String(S.getMinutes()).padStart(2,"0")}`:"",a=o||L;return t.jsxs("div",{className:E("flex gap-1",l),children:[t.jsxs("div",{className:"flex-1 relative",children:[t.jsx(O,{value:x,onChange:y,onFocus:R,onBlur:N,placeholder:r,disabled:n,className:E("text-sm h-8",a&&"border-destructive focus-visible:ring-destructive")}),a&&t.jsx("p",{className:"text-xs text-destructive mt-1",children:a})]}),t.jsxs(H,{open:p,onOpenChange:g,children:[t.jsx(P,{asChild:!0,children:t.jsx(C,{variant:"outline",size:"icon",className:"h-8 w-8 shrink-0",disabled:n,children:t.jsx(Y,{className:"h-4 w-4"})})}),t.jsxs(_,{className:"w-auto p-0",align:"end",children:[t.jsx(J,{mode:"single",selected:S||void 0,onSelect:v,initialFocus:!0}),t.jsxs("div",{className:"border-t p-3",children:[t.jsx("label",{className:"text-xs text-muted-foreground mb-1.5 block",children:"Time"}),t.jsx(O,{type:"time",value:k,onChange:M,className:"text-sm h-8"})]})]})]})]})}function le({value:e,onChange:s,className:r,disabled:l,quickRanges:n=Q,labels:o}){const p=o?.absoluteTimeRange??"Absolute time range",g=o?.from??"From",x=o?.to??"To",m=o?.applyTimeRange??"Apply time range",[L,c]=u.useState(!1),[D,w]=u.useState(e.from),[b,y]=u.useState(e.to),[R,N]=u.useState(null),v=u.useRef({from:e.from,to:e.to});(v.current.from!==e.from||v.current.to!==e.to)&&(v.current={from:e.from,to:e.to},w(e.from),y(e.to));const M=a=>{v.current={from:a.from,to:a.to},w(a.from),y(a.to),c(!1),s({from:a.from,to:a.to})},I=()=>{const a=h(D),i=h(b);if(!a.valid||!a.date){N("Invalid 'From' date");return}if(!i.valid||!i.date){N("Invalid 'To' date");return}if(a.date>=i.date){N("'From' must be before 'To'");return}N(null),s({from:D,to:b}),c(!1)},S=a=>e.from===a.from&&e.to===a.to,k=ee(e.from,e.to,n);return t.jsxs(H,{open:L,onOpenChange:c,children:[t.jsx(P,{asChild:!0,children:t.jsxs(C,{variant:"outline",className:E("gap-1.5 min-w-[160px] justify-between",r),disabled:l,children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(q,{className:"size-4 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:k})]}),t.jsx(K,{className:"size-4 text-muted-foreground"})]})}),t.jsx(_,{className:"w-[540px] p-0",align:"end",sideOffset:4,onCloseAutoFocus:a=>a.preventDefault(),style:L?void 0:{animationDuration:"0s"},children:t.jsxs("div",{className:"flex",children:[t.jsxs("div",{className:"flex-1 p-4 border-r",children:[t.jsx("h4",{className:"text-sm font-medium mb-4",children:p}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"text-xs text-muted-foreground mb-1.5 block",children:g}),t.jsx(A,{value:D,onChange:w,placeholder:"now-24h"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"text-xs text-muted-foreground mb-1.5 block",children:x}),t.jsx(A,{value:b,onChange:y,placeholder:"now"})]}),R&&t.jsx("p",{className:"text-xs text-destructive",children:R}),t.jsx(C,{onClick:I,className:"w-full",size:"sm",children:m})]})]}),t.jsx("div",{className:"w-[200px]",children:t.jsx(G,{className:"h-[280px]",children:t.jsx("div",{className:"p-2",children:n.map(a=>{const i=S(a);return t.jsx("button",{type:"button",onClick:()=>M(a),className:E("w-full text-left px-3 py-2 text-sm rounded-lg transition-colors","hover:bg-accent hover:text-accent-foreground",i&&"bg-accent text-accent-foreground font-medium"),children:a.label},a.value)})})})})]})})]})}export{le as T,h as e};
1
+ import{r as u,j as t,I as O,l as E,B as C}from"./index-Ce7G0he3.js";import{P as H,a as P,b as _}from"./popover-BF3N_cWR.js";import{S as G}from"./scroll-area-DmCvljJ6.js";import{t as K}from"./ChevronUp-Cn8PaBxH.js";import{r as Y,U as q}from"./agent-icon-I45DkNr8.js";import{C as J}from"./calendar-C7teLmhJ.js";const B=/^now(?:-(\d+)([mhdwM]))?$/,W={m:"minute",h:"hour",d:"day",w:"week",M:"month"};function z(e){const s=e.trim();if(s==="now")return{isNow:!0,offset:0,unit:null};const r=s.match(B);if(!r)return null;const l=r[1]?Number.parseInt(r[1],10):0,n=r[2]||null;return{isNow:!0,offset:l,unit:n}}function h(e,s=new Date){const r=e.trim(),l=new Date(r);if(!Number.isNaN(l.getTime())&&r.includes("-"))return{valid:!0,date:l};const n=z(r);if(!n)return{valid:!1,date:null,error:'Invalid expression. Use "now" or "now-Xu" (e.g., now-2d, now-3h)'};const o=new Date(s);if(n.offset===0||!n.unit)return{valid:!0,date:o};switch(n.unit){case"m":o.setMinutes(o.getMinutes()-n.offset);break;case"h":o.setHours(o.getHours()-n.offset);break;case"d":o.setDate(o.getDate()-n.offset);break;case"w":o.setDate(o.getDate()-n.offset*7);break;case"M":o.setMonth(o.getMonth()-n.offset);break}return{valid:!0,date:o}}function Z(e){return e.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function U(e){const s=e.trim();return B.test(s)}function V(e){const s=e.trim();if(s==="now")return"Now";const r=z(s);if(!r||!r.unit){const o=h(s);return o.valid&&o.date?Z(o.date):s}const l=W[r.unit],n=r.offset!==1?"s":"";return`${r.offset} ${l}${n} ago`}const Q=[{label:"Last 5 minutes",from:"now-5m",to:"now",value:"5m"},{label:"Last 15 minutes",from:"now-15m",to:"now",value:"15m"},{label:"Last 30 minutes",from:"now-30m",to:"now",value:"30m"},{label:"Last 1 hour",from:"now-1h",to:"now",value:"1h"},{label:"Last 3 hours",from:"now-3h",to:"now",value:"3h"},{label:"Last 6 hours",from:"now-6h",to:"now",value:"6h"},{label:"Last 12 hours",from:"now-12h",to:"now",value:"12h"},{label:"Last 24 hours",from:"now-24h",to:"now",value:"24h"},{label:"Last 2 days",from:"now-2d",to:"now",value:"2d"},{label:"Last 7 days",from:"now-7d",to:"now",value:"7d"},{label:"Last 30 days",from:"now-30d",to:"now",value:"30d"}];function ee(e,s,r=Q){const l=r.find(n=>n.from===e&&n.to===s);return l?l.label:`${V(e)} to ${V(s)}`}function T(e){const s=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),l=String(e.getDate()).padStart(2,"0"),n=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),p=String(e.getSeconds()).padStart(2,"0");return`${s}-${r}-${l} ${n}:${o}:${p}`}function te(e){const s=e.match(/^(\d{4})-(\d{2})-(\d{2})\s+(\d{2}):(\d{2}):(\d{2})$/);if(!s)return null;const[,r,l,n,o,p,g]=s,x=new Date(Number(r),Number(l)-1,Number(n),Number(o),Number(p),Number(g));return Number.isNaN(x.getTime())?null:x}function $(e){if(U(e))return e;const s=h(e);return s.valid&&s.date?T(s.date):e}function A({value:e,onChange:s,placeholder:r="now or now-2d",className:l,disabled:n,error:o}){const[p,g]=u.useState(!1),[x,m]=u.useState(()=>$(e)),[L,c]=u.useState(),[D,w]=u.useState(!1),b=u.useRef(e);b.current!==e&&(b.current=e,D||m($(e)));const y=i=>{const d=i.target.value;m(d),c(void 0)},R=()=>{w(!0)},N=()=>{w(!1);const i=x.trim();if(U(i)){c(void 0),s(i);return}const d=te(i);if(d){c(void 0),s(d.toISOString()),m(T(d));return}const f=h(i);if(f.valid&&f.date){c(void 0),s(i),m(T(f.date));return}m($(e)),c(void 0)},v=i=>{if(i){const f=h(e).date||new Date;i.setHours(f.getHours()),i.setMinutes(f.getMinutes()),i.setSeconds(0),i.setMilliseconds(0);const F=i.toISOString();m(T(i)),s(F),c(void 0)}g(!1)},M=i=>{const[d,f]=i.target.value.split(":").map(Number),j=h(e).date||new Date;j.setHours(d||0),j.setMinutes(f||0),j.setSeconds(0),j.setMilliseconds(0);const X=j.toISOString();m(T(j)),s(X)},I=h(e),S=I.valid?I.date:new Date,k=S?`${String(S.getHours()).padStart(2,"0")}:${String(S.getMinutes()).padStart(2,"0")}`:"",a=o||L;return t.jsxs("div",{className:E("flex gap-1",l),children:[t.jsxs("div",{className:"flex-1 relative",children:[t.jsx(O,{value:x,onChange:y,onFocus:R,onBlur:N,placeholder:r,disabled:n,className:E("text-sm h-8",a&&"border-destructive focus-visible:ring-destructive")}),a&&t.jsx("p",{className:"text-xs text-destructive mt-1",children:a})]}),t.jsxs(H,{open:p,onOpenChange:g,children:[t.jsx(P,{asChild:!0,children:t.jsx(C,{variant:"outline",size:"icon",className:"h-8 w-8 shrink-0",disabled:n,children:t.jsx(Y,{className:"h-4 w-4"})})}),t.jsxs(_,{className:"w-auto p-0",align:"end",children:[t.jsx(J,{mode:"single",selected:S||void 0,onSelect:v,initialFocus:!0}),t.jsxs("div",{className:"border-t p-3",children:[t.jsx("label",{className:"text-xs text-muted-foreground mb-1.5 block",children:"Time"}),t.jsx(O,{type:"time",value:k,onChange:M,className:"text-sm h-8"})]})]})]})]})}function le({value:e,onChange:s,className:r,disabled:l,quickRanges:n=Q,labels:o}){const p=o?.absoluteTimeRange??"Absolute time range",g=o?.from??"From",x=o?.to??"To",m=o?.applyTimeRange??"Apply time range",[L,c]=u.useState(!1),[D,w]=u.useState(e.from),[b,y]=u.useState(e.to),[R,N]=u.useState(null),v=u.useRef({from:e.from,to:e.to});(v.current.from!==e.from||v.current.to!==e.to)&&(v.current={from:e.from,to:e.to},w(e.from),y(e.to));const M=a=>{v.current={from:a.from,to:a.to},w(a.from),y(a.to),c(!1),s({from:a.from,to:a.to})},I=()=>{const a=h(D),i=h(b);if(!a.valid||!a.date){N("Invalid 'From' date");return}if(!i.valid||!i.date){N("Invalid 'To' date");return}if(a.date>=i.date){N("'From' must be before 'To'");return}N(null),s({from:D,to:b}),c(!1)},S=a=>e.from===a.from&&e.to===a.to,k=ee(e.from,e.to,n);return t.jsxs(H,{open:L,onOpenChange:c,children:[t.jsx(P,{asChild:!0,children:t.jsxs(C,{variant:"outline",className:E("gap-1.5 min-w-[160px] justify-between",r),disabled:l,children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(q,{className:"size-4 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:k})]}),t.jsx(K,{className:"size-4 text-muted-foreground"})]})}),t.jsx(_,{className:"w-[540px] p-0",align:"end",sideOffset:4,onCloseAutoFocus:a=>a.preventDefault(),style:L?void 0:{animationDuration:"0s"},children:t.jsxs("div",{className:"flex",children:[t.jsxs("div",{className:"flex-1 p-4 border-r",children:[t.jsx("h4",{className:"text-sm font-medium mb-4",children:p}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"text-xs text-muted-foreground mb-1.5 block",children:g}),t.jsx(A,{value:D,onChange:w,placeholder:"now-24h"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"text-xs text-muted-foreground mb-1.5 block",children:x}),t.jsx(A,{value:b,onChange:y,placeholder:"now"})]}),R&&t.jsx("p",{className:"text-xs text-destructive",children:R}),t.jsx(C,{onClick:I,className:"w-full",size:"sm",children:m})]})]}),t.jsx("div",{className:"w-[200px]",children:t.jsx(G,{className:"h-[280px]",children:t.jsx("div",{className:"p-2",children:n.map(a=>{const i=S(a);return t.jsx("button",{type:"button",onClick:()=>M(a),className:E("w-full text-left px-3 py-2 text-sm rounded-lg transition-colors","hover:bg-accent hover:text-accent-foreground",i&&"bg-accent text-accent-foreground font-medium"),children:a.label},a.value)})})})})]})})]})}export{le as T,h as e};
@@ -1 +1 @@
1
- import{r as C,cu as y,j as i,cz as P,cA as O,fd as v,fF as B,ct as H,fG as q,fH as R,cM as K,cr as L,c as w,l as I}from"./index-Cuw4uBth.js";import{A as U,t as J}from"./active-indicator-CCMhAsc_.js";import{T as Q,a as W,c as X}from"./tooltip-Ci3ZwooP.js";var A="Toggle",N=C.forwardRef((o,e)=>{const{pressed:t,defaultPressed:r,onPressedChange:s,...n}=o,[a,l]=y({prop:t,onChange:s,defaultProp:r??!1,caller:A});return i.jsx(P.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":o.disabled?"":void 0,...n,ref:e,onClick:O(o.onClick,()=>{o.disabled||l(!a)})})});N.displayName=A;var m="ToggleGroup",[E]=K(m,[R]),V=R(),z=v.forwardRef((o,e)=>{const{type:t,...r}=o;if(t==="single"){const s=r;return i.jsx(Y,{...s,ref:e})}if(t==="multiple"){const s=r;return i.jsx(Z,{...s,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${m}\``)});z.displayName=m;var[S,M]=E(m),Y=v.forwardRef((o,e)=>{const{value:t,defaultValue:r,onValueChange:s=()=>{},...n}=o,[a,l]=y({prop:t,defaultProp:r??"",onChange:s,caller:m});return i.jsx(S,{scope:o.__scopeToggleGroup,type:"single",value:v.useMemo(()=>a?[a]:[],[a]),onItemActivate:l,onItemDeactivate:v.useCallback(()=>l(""),[l]),children:i.jsx(F,{...n,ref:e})})}),Z=v.forwardRef((o,e)=>{const{value:t,defaultValue:r,onValueChange:s=()=>{},...n}=o,[a,l]=y({prop:t,defaultProp:r??[],onChange:s,caller:m}),d=v.useCallback(g=>l((c=[])=>[...c,g]),[l]),u=v.useCallback(g=>l((c=[])=>c.filter(p=>p!==g)),[l]);return i.jsx(S,{scope:o.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:d,onItemDeactivate:u,children:i.jsx(F,{...n,ref:e})})});z.displayName=m;var[ee,te]=E(m),F=v.forwardRef((o,e)=>{const{__scopeToggleGroup:t,disabled:r=!1,rovingFocus:s=!0,orientation:n,dir:a,loop:l=!0,...d}=o,u=V(t),g=H(a),c={role:"group",dir:g,...d};return i.jsx(ee,{scope:t,rovingFocus:s,disabled:r,children:s?i.jsx(q,{asChild:!0,...u,orientation:n,dir:g,loop:l,children:i.jsx(P.div,{...c,ref:e})}):i.jsx(P.div,{...c,ref:e})})}),j="ToggleGroupItem",$=v.forwardRef((o,e)=>{const t=M(j,o.__scopeToggleGroup),r=te(j,o.__scopeToggleGroup),s=V(o.__scopeToggleGroup),n=t.value.includes(o.value),a=r.disabled||o.disabled,l={...o,pressed:n,disabled:a},d=v.useRef(null);return r.rovingFocus?i.jsx(B,{asChild:!0,...s,focusable:!a,active:n,ref:d,children:i.jsx(k,{...l,ref:e})}):i.jsx(k,{...l,ref:e})});$.displayName=j;var k=v.forwardRef((o,e)=>{const{__scopeToggleGroup:t,value:r,...s}=o,n=M(j,t),a={role:"radio","aria-checked":o.pressed,"aria-pressed":void 0},l=n.type==="single"?a:void 0;return i.jsx(N,{...l,...s,ref:e,onPressedChange:d=>{d?n.onItemActivate(r):n.onItemDeactivate(r)}})}),ae=z,oe=$;const re=L("inline-flex items-center justify-center gap-2 rounded-full text-sm font-medium hover:bg-accent hover:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-muted data-[state=on]:hover:bg-secondary-hover data-[state=on]:text-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-ring outline-none transition-[color,background-color,box-shadow] whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"bg-card shadow-edge hover:bg-accent hover:text-accent-foreground",segmented:"text-muted-foreground hover:bg-transparent hover:text-foreground data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-[0_1px_2px_0_#0000000d] dark:data-[state=on]:bg-accent"},size:{default:"h-8 px-3 min-w-8",sm:"h-7 px-2.5 min-w-7",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),D=C.createContext({size:"default",variant:"default"}),ne=J(':scope > [data-slot="toggle-group-item"][data-state="on"]');function ce(o){const e=w.c(24);let t,r,s,n,a;e[0]!==o?({className:r,variant:a,size:n,children:t,...s}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=s,e[4]=n,e[5]=a):(t=e[1],r=e[2],s=e[3],n=e[4],a=e[5]);const l=a==="segmented"&&s.type==="single",d=l||void 0;let u;e[6]!==r?(u=I("group/toggle-group relative flex w-fit items-center rounded-full data-[variant=segmented]:bg-muted data-[variant=segmented]:gap-0.5 data-[variant=segmented]:p-0.5 data-[variant=outline]:after:pointer-events-none data-[variant=outline]:after:absolute data-[variant=outline]:after:inset-0 data-[variant=outline]:after:rounded-full data-[variant=outline]:after:shadow-edge data-[variant=outline]:bg-card data-[variant=outline]:after:content-['']",r),e[6]=r,e[7]=u):u=e[7];let g;e[8]!==l?(g=l&&i.jsx("span",{"aria-hidden":!0,ref:ne,"data-slot":"toggle-group-indicator",className:I(U,"bg-background dark:bg-accent top-0.5 bottom-0.5 rounded-full shadow-[0_1px_2px_0_#0000000d] opacity-0 in-data-has-active:opacity-100")}),e[8]=l,e[9]=g):g=e[9];let c;e[10]!==n||e[11]!==a?(c={variant:a,size:n},e[10]=n,e[11]=a,e[12]=c):c=e[12];let p;e[13]!==t||e[14]!==c?(p=i.jsx(D.Provider,{value:c,children:t}),e[13]=t,e[14]=c,e[15]=p):p=e[15];let f;return e[16]!==s||e[17]!==n||e[18]!==d||e[19]!==u||e[20]!==g||e[21]!==p||e[22]!==a?(f=i.jsxs(ae,{"data-slot":"toggle-group","data-variant":a,"data-size":n,"data-sliding":d,className:u,...s,children:[g,p]}),e[16]=s,e[17]=n,e[18]=d,e[19]=u,e[20]=g,e[21]=p,e[22]=a,e[23]=f):f=e[23],f}function se(o){const e=w.c(4);let t;if(e[0]!==o){const{"data-state":s,...n}=o;t=n,e[0]=o,e[1]=t}else t=e[1];let r;return e[2]!==t?(r=i.jsx(oe,{...t}),e[2]=t,e[3]=r):r=e[3],r}function ue(o){const e=w.c(30);let t,r,s,n,a,l;e[0]!==o?({className:r,children:t,variant:l,size:n,tooltip:a,...s}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=s,e[4]=n,e[5]=a,e[6]=l):(t=e[1],r=e[2],s=e[3],n=e[4],a=e[5],l=e[6]);const d=C.useContext(D);let u;e[7]!==t?(u=C.isValidElement(t),e[7]=t,e[8]=u):u=e[8];const g=u,c=d.variant||l,p=d.size||n,f=g||void 0;let x;e[9]!==r||e[10]!==d.size||e[11]!==d.variant||e[12]!==n||e[13]!==l?(x=I(re({variant:d.variant||l,size:d.size||n}),"relative z-10 min-w-0 flex-1 shrink-0 rounded-none first:rounded-l-full last:rounded-r-full focus:z-10 focus-visible:z-10 data-[icon-only]:aspect-square data-[icon-only]:px-0","data-[variant=segmented]:flex-none data-[variant=segmented]:rounded-full in-data-sliding:data-[state=on]:bg-transparent in-data-sliding:data-[state=on]:shadow-none","data-[variant=outline]:shadow-none data-[variant=outline]:border-hairline data-[variant=outline]:not-first:border-l",r),e[9]=r,e[10]=d.size,e[11]=d.variant,e[12]=n,e[13]=l,e[14]=x):x=e[14];let G;e[15]!==t||e[16]!==s||e[17]!==c||e[18]!==p||e[19]!==f||e[20]!==x||e[21]!==a?(G=i.jsx(se,{"data-slot":"toggle-group-item","data-variant":c,"data-size":p,"data-icon-only":f,"aria-label":a,className:x,...s,children:t}),e[15]=t,e[16]=s,e[17]=c,e[18]=p,e[19]=f,e[20]=x,e[21]=a,e[22]=G):G=e[22];const T=G;if(!a)return T;let h;e[23]!==T?(h=i.jsx(Q,{asChild:!0,children:T}),e[23]=T,e[24]=h):h=e[24];let b;e[25]!==a?(b=i.jsx(W,{children:a}),e[25]=a,e[26]=b):b=e[26];let _;return e[27]!==h||e[28]!==b?(_=i.jsxs(X,{children:[h,b]}),e[27]=h,e[28]=b,e[29]=_):_=e[29],_}export{ue as T,ce as a};
1
+ import{r as C,cv as y,j as i,cA as P,cB as O,fc as v,fF as B,cu as H,fG as q,fH as N,cN as K,cs as L,c as w,l as I}from"./index-Ce7G0he3.js";import{A as U,t as J}from"./active-indicator-CCMhAsc_.js";import{T as Q,a as W,c as X}from"./tooltip-BHLCIkH9.js";var R="Toggle",A=C.forwardRef((o,e)=>{const{pressed:t,defaultPressed:n,onPressedChange:s,...r}=o,[a,l]=y({prop:t,onChange:s,defaultProp:n??!1,caller:R});return i.jsx(P.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":o.disabled?"":void 0,...r,ref:e,onClick:O(o.onClick,()=>{o.disabled||l(!a)})})});A.displayName=R;var m="ToggleGroup",[E]=K(m,[N]),V=N(),z=v.forwardRef((o,e)=>{const{type:t,...n}=o;if(t==="single"){const s=n;return i.jsx(Y,{...s,ref:e})}if(t==="multiple"){const s=n;return i.jsx(Z,{...s,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${m}\``)});z.displayName=m;var[S,M]=E(m),Y=v.forwardRef((o,e)=>{const{value:t,defaultValue:n,onValueChange:s=()=>{},...r}=o,[a,l]=y({prop:t,defaultProp:n??"",onChange:s,caller:m});return i.jsx(S,{scope:o.__scopeToggleGroup,type:"single",value:v.useMemo(()=>a?[a]:[],[a]),onItemActivate:l,onItemDeactivate:v.useCallback(()=>l(""),[l]),children:i.jsx(F,{...r,ref:e})})}),Z=v.forwardRef((o,e)=>{const{value:t,defaultValue:n,onValueChange:s=()=>{},...r}=o,[a,l]=y({prop:t,defaultProp:n??[],onChange:s,caller:m}),d=v.useCallback(g=>l((c=[])=>[...c,g]),[l]),u=v.useCallback(g=>l((c=[])=>c.filter(p=>p!==g)),[l]);return i.jsx(S,{scope:o.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:d,onItemDeactivate:u,children:i.jsx(F,{...r,ref:e})})});z.displayName=m;var[ee,te]=E(m),F=v.forwardRef((o,e)=>{const{__scopeToggleGroup:t,disabled:n=!1,rovingFocus:s=!0,orientation:r,dir:a,loop:l=!0,...d}=o,u=V(t),g=H(a),c={role:"group",dir:g,...d};return i.jsx(ee,{scope:t,rovingFocus:s,disabled:n,children:s?i.jsx(q,{asChild:!0,...u,orientation:r,dir:g,loop:l,children:i.jsx(P.div,{...c,ref:e})}):i.jsx(P.div,{...c,ref:e})})}),j="ToggleGroupItem",$=v.forwardRef((o,e)=>{const t=M(j,o.__scopeToggleGroup),n=te(j,o.__scopeToggleGroup),s=V(o.__scopeToggleGroup),r=t.value.includes(o.value),a=n.disabled||o.disabled,l={...o,pressed:r,disabled:a},d=v.useRef(null);return n.rovingFocus?i.jsx(B,{asChild:!0,...s,focusable:!a,active:r,ref:d,children:i.jsx(k,{...l,ref:e})}):i.jsx(k,{...l,ref:e})});$.displayName=j;var k=v.forwardRef((o,e)=>{const{__scopeToggleGroup:t,value:n,...s}=o,r=M(j,t),a={role:"radio","aria-checked":o.pressed,"aria-pressed":void 0},l=r.type==="single"?a:void 0;return i.jsx(A,{...l,...s,ref:e,onPressedChange:d=>{d?r.onItemActivate(n):r.onItemDeactivate(n)}})}),ae=z,oe=$;const ne=L("inline-flex items-center justify-center gap-2 rounded-full text-sm font-medium hover:bg-accent hover:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-muted data-[state=on]:hover:bg-secondary-hover data-[state=on]:text-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-ring outline-none transition-[color,background-color,box-shadow] whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"bg-card shadow-edge hover:bg-accent hover:text-accent-foreground",segmented:"text-muted-foreground hover:bg-transparent hover:text-foreground data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-[0_1px_2px_0_#0000000d] dark:data-[state=on]:bg-accent"},size:{default:"h-8 px-3 min-w-8",sm:"h-7 px-2.5 min-w-7",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),D=C.createContext({size:"default",variant:"default"}),re=J(':scope > [data-slot="toggle-group-item"][data-state="on"]');function ce(o){const e=w.c(24);let t,n,s,r,a;e[0]!==o?({className:n,variant:a,size:r,children:t,...s}=o,e[0]=o,e[1]=t,e[2]=n,e[3]=s,e[4]=r,e[5]=a):(t=e[1],n=e[2],s=e[3],r=e[4],a=e[5]);const l=a==="segmented"&&s.type==="single",d=l||void 0;let u;e[6]!==n?(u=I("group/toggle-group relative flex w-fit items-center rounded-full data-[variant=segmented]:bg-muted data-[variant=segmented]:gap-0.5 data-[variant=segmented]:p-0.5 data-[variant=outline]:after:pointer-events-none data-[variant=outline]:after:absolute data-[variant=outline]:after:inset-0 data-[variant=outline]:after:rounded-full data-[variant=outline]:after:shadow-edge data-[variant=outline]:bg-card data-[variant=outline]:after:content-['']",n),e[6]=n,e[7]=u):u=e[7];let g;e[8]!==l?(g=l&&i.jsx("span",{"aria-hidden":!0,ref:re,"data-slot":"toggle-group-indicator",className:I(U,"bg-background dark:bg-accent top-0.5 bottom-0.5 rounded-full shadow-[0_1px_2px_0_#0000000d] opacity-0 in-data-has-active:opacity-100")}),e[8]=l,e[9]=g):g=e[9];let c;e[10]!==r||e[11]!==a?(c={variant:a,size:r},e[10]=r,e[11]=a,e[12]=c):c=e[12];let p;e[13]!==t||e[14]!==c?(p=i.jsx(D.Provider,{value:c,children:t}),e[13]=t,e[14]=c,e[15]=p):p=e[15];let f;return e[16]!==s||e[17]!==r||e[18]!==d||e[19]!==u||e[20]!==g||e[21]!==p||e[22]!==a?(f=i.jsxs(ae,{"data-slot":"toggle-group","data-variant":a,"data-size":r,"data-sliding":d,className:u,...s,children:[g,p]}),e[16]=s,e[17]=r,e[18]=d,e[19]=u,e[20]=g,e[21]=p,e[22]=a,e[23]=f):f=e[23],f}function se(o){const e=w.c(4);let t;if(e[0]!==o){const{"data-state":s,...r}=o;t=r,e[0]=o,e[1]=t}else t=e[1];let n;return e[2]!==t?(n=i.jsx(oe,{...t}),e[2]=t,e[3]=n):n=e[3],n}function ue(o){const e=w.c(30);let t,n,s,r,a,l;e[0]!==o?({className:n,children:t,variant:l,size:r,tooltip:a,...s}=o,e[0]=o,e[1]=t,e[2]=n,e[3]=s,e[4]=r,e[5]=a,e[6]=l):(t=e[1],n=e[2],s=e[3],r=e[4],a=e[5],l=e[6]);const d=C.useContext(D);let u;e[7]!==t?(u=C.isValidElement(t),e[7]=t,e[8]=u):u=e[8];const g=u,c=d.variant||l,p=d.size||r,f=g||void 0;let x;e[9]!==n||e[10]!==d.size||e[11]!==d.variant||e[12]!==r||e[13]!==l?(x=I(ne({variant:d.variant||l,size:d.size||r}),"relative z-10 min-w-0 flex-1 shrink-0 rounded-none first:rounded-l-full last:rounded-r-full focus:z-10 focus-visible:z-10 data-[icon-only]:aspect-square data-[icon-only]:px-0","data-[variant=segmented]:flex-none data-[variant=segmented]:rounded-full in-data-sliding:data-[state=on]:bg-transparent in-data-sliding:data-[state=on]:shadow-none","data-[variant=outline]:shadow-none data-[variant=outline]:border-hairline data-[variant=outline]:not-first:border-l",n),e[9]=n,e[10]=d.size,e[11]=d.variant,e[12]=r,e[13]=l,e[14]=x):x=e[14];let G;e[15]!==t||e[16]!==s||e[17]!==c||e[18]!==p||e[19]!==f||e[20]!==x||e[21]!==a?(G=i.jsx(se,{"data-slot":"toggle-group-item","data-variant":c,"data-size":p,"data-icon-only":f,"aria-label":a,className:x,...s,children:t}),e[15]=t,e[16]=s,e[17]=c,e[18]=p,e[19]=f,e[20]=x,e[21]=a,e[22]=G):G=e[22];const T=G;if(!a)return T;let h;e[23]!==T?(h=i.jsx(Q,{asChild:!0,children:T}),e[23]=T,e[24]=h):h=e[24];let b;e[25]!==a?(b=i.jsx(W,{children:a}),e[25]=a,e[26]=b):b=e[26];let _;return e[27]!==h||e[28]!==b?(_=i.jsxs(X,{children:[h,b]}),e[27]=h,e[28]=b,e[29]=_):_=e[29],_}export{ue as T,ce as a};
@@ -1 +1 @@
1
- import"./index-Cuw4uBth.js";function i(t){let r=2166136261;for(let e=0;e<t.length;e++)r=Math.imul(r^t.charCodeAt(e),16777619);return`a${(r>>>0).toString(36).padStart(6,"0").slice(-6)}`}function l(t){if(t&&typeof t=="object"&&"gatewayClientId"in t&&typeof t.gatewayClientId=="string")return t.gatewayClientId}function n(t,r){if(!r)return t;const e=`${i(r)}_`;return t.startsWith(e)?t.slice(e.length):t}function s(t,r){return n(t,r).replace(/[_-]/g," ").toLowerCase()}const o=/^mcp__[a-zA-Z0-9_-]+__/;function c(t){return t.replace(o,"")}export{c as a,s as d,l as g,n as s};
1
+ import"./index-Ce7G0he3.js";function i(t){let r=2166136261;for(let e=0;e<t.length;e++)r=Math.imul(r^t.charCodeAt(e),16777619);return`a${(r>>>0).toString(36).padStart(6,"0").slice(-6)}`}function l(t){if(t&&typeof t=="object"&&"gatewayClientId"in t&&typeof t.gatewayClientId=="string")return t.gatewayClientId}function n(t,r){if(!r)return t;const e=`${i(r)}_`;return t.startsWith(e)?t.slice(e.length):t}function s(t,r){return n(t,r).replace(/[_-]/g," ").toLowerCase()}const o=/^mcp__[a-zA-Z0-9_-]+__/;function c(t){return t.replace(o,"")}export{c as a,s as d,l as g,n as s};
@@ -1 +1 @@
1
- import{c as f,l as u,j as b,B as d}from"./index-Cuw4uBth.js";const v="focus-visible:not-forced-colors:outline-none focus-visible:forced-colors:outline-2 focus-visible:forced-colors:outline-offset-0 focus-visible:ring-0 focus-visible:border-border focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50";function m(n){return u("[transition:background-color_180ms_ease,color_180ms_ease] hover:bg-sidebar-accent hover:text-sidebar-foreground dark:hover:bg-sidebar-accent",v,n?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60")}function p(n){const e=f.c(14);let o,s,t,i,c;e[0]!==n?({active:o,className:s,ref:i,type:c,...t}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=i,e[5]=c):(o=e[1],s=e[2],t=e[3],i=e[4],c=e[5]);const a=c===void 0?"button":c;let r;e[6]!==o||e[7]!==s?(r=u("relative size-10 md:size-7","max-md:[&_svg:not([class*='size-'])]:size-5",m(o),s),e[6]=o,e[7]=s,e[8]=r):r=e[8];let l;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==a?(l=b.jsx(d,{ref:i,type:a,variant:"ghost",size:"icon-sm",className:r,...t}),e[9]=t,e[10]=i,e[11]=r,e[12]=a,e[13]=l):l=e[13],l}export{v as I,p as T};
1
+ import{c as f,l as u,j as b,B as d}from"./index-Ce7G0he3.js";const v="focus-visible:not-forced-colors:outline-none focus-visible:forced-colors:outline-2 focus-visible:forced-colors:outline-offset-0 focus-visible:ring-0 focus-visible:border-border focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50";function m(n){return u("[transition:background-color_180ms_ease,color_180ms_ease] hover:bg-sidebar-accent hover:text-sidebar-foreground dark:hover:bg-sidebar-accent",v,n?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60")}function p(n){const e=f.c(14);let o,s,t,i,c;e[0]!==n?({active:o,className:s,ref:i,type:c,...t}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=i,e[5]=c):(o=e[1],s=e[2],t=e[3],i=e[4],c=e[5]);const a=c===void 0?"button":c;let r;e[6]!==o||e[7]!==s?(r=u("relative size-10 md:size-7","max-md:[&_svg:not([class*='size-'])]:size-5",m(o),s),e[6]=o,e[7]=s,e[8]=r):r=e[8];let l;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==a?(l=b.jsx(d,{ref:i,type:a,variant:"ghost",size:"icon-sm",className:r,...t}),e[9]=t,e[10]=i,e[11]=r,e[12]=a,e[13]=l):l=e[13],l}export{v as I,p as T};
@@ -1 +1 @@
1
- import{r as i,cw as K,cu as W,j as c,cv as J,cx as H,cy as Q,cz as Z,cA as C,eo as S,cC as ee,cD as $,cL as te,cO as oe,cM as re,ep as ne,cP as se,c as j,l as ae}from"./index-Cuw4uBth.js";import{R as ie}from"./index-B-HoKvLm.js";var[O]=re("Tooltip",[$]),D=$(),G="TooltipProvider",le=700,A="tooltip.open",[ce,k]=O(G),z=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=i.useRef(!0),d=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};z.displayName=G;var R="Tooltip",[ue,_]=O(R),F=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=k(R,o.__scopeTooltip),p=D(e),[u,v]=i.useState(null),x=K(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=W({prop:r,defaultProp:n??!1,onChange:I=>{I?(a.onOpen(),document.dispatchEvent(new CustomEvent(A))):a.onClose(),s?.(I)},caller:R}),w=i.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),P=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),E=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),N=i.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return i.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(J,{...p,children:c.jsx(ue,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?N():P()},[a.isOpenDelayedRef,N,P]),onTriggerLeave:i.useCallback(()=>{h?E():(window.clearTimeout(f.current),f.current=0)},[E,h]),onOpen:P,onClose:E,disableHoverableContent:h,children:t})})};F.displayName=R;var L="TooltipTrigger",B=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(L,t),s=k(L,t),l=D(t),d=i.useRef(null),a=H(e,d,n.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),v=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(Q,{asChild:!0,...l,children:c.jsx(Z.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});B.displayName=L;var M="TooltipPortal",[de,pe]=O(M,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(M,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(S,{present:t||s.open,children:c.jsx(ee,{asChild:!0,container:n,children:r})})})};U.displayName=M;var b="TooltipContent",V=i.forwardRef((o,e)=>{const t=pe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx(S,{present:r||l.open,children:l.disableHoverableContent?c.jsx(Y,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=k(b,o.__scopeTooltip),n=i.useRef(null),s=H(e,n),[l,d]=i.useState(null),{trigger:a,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=i.useCallback(()=>{d(null),v(!1)},[v]),f=i.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ge(y,g.getBoundingClientRect()),w=Te(y,m),P=me(T.getBoundingClientRect()),E=Ce([...w,...P]);d(E),v(!0)},[v]);return i.useEffect(()=>()=>x(),[x]),i.useEffect(()=>{if(a&&u){const h=g=>f(g,u),T=g=>f(g,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[a,u,f,x]),i.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=a?.contains(g)||u?.contains(g),w=!ye(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,x]),c.jsx(Y,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),Y=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(b,t),p=D(t),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),i.useEffect(()=>{if(a.trigger){const v=x=>{x.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[a.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(oe,{"data-state":a.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(he,{children:r}),c.jsx(ve,{scope:t,isInside:!0,children:c.jsx(ie,{id:a.contentId,role:"tooltip",children:n||r})})]})})});V.displayName=b;var q="TooltipArrow",X=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(q,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});X.displayName=q;function ge(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Te(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function me(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function ye(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],a=e[l],p=d.x,u=d.y,v=a.x,x=a.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function Ce(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),be(e)}function be(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var we=z,Pe=F,Ee=B,Re=U,_e=V,je=X;function Oe(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(we,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Le(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Oe,{children:c.jsx(Pe,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function ke(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Ee,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Me(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ae("notranslate bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-lg px-2 py-1 text-xs font-medium text-balance",r),e[5]=r,e[6]=d):d=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=a):a=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Re,{children:c.jsxs(_e,{"data-slot":"tooltip-content",sideOffset:l,translate:"no",className:d,...n,children:[t,a]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{ke as T,Me as a,Oe as b,Le as c};
1
+ import{r as i,cx as K,cv as Q,j as c,cw as W,cy as H,cz as J,cA as Z,cB as C,ep as S,cD as ee,cE as $,cM as te,cP as oe,cN as re,eq as ne,cQ as se,c as j,l as ae}from"./index-Ce7G0he3.js";import{R as ie}from"./index-DZ7OjEm4.js";var[O]=re("Tooltip",[$]),D=$(),G="TooltipProvider",le=700,A="tooltip.open",[ce,k]=O(G),z=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=i.useRef(!0),d=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};z.displayName=G;var R="Tooltip",[ue,_]=O(R),F=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=k(R,o.__scopeTooltip),p=D(e),[u,v]=i.useState(null),x=K(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=Q({prop:r,defaultProp:n??!1,onChange:I=>{I?(a.onOpen(),document.dispatchEvent(new CustomEvent(A))):a.onClose(),s?.(I)},caller:R}),w=i.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),P=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),N=i.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return i.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(W,{...p,children:c.jsx(ue,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?N():E()},[a.isOpenDelayedRef,N,E]),onTriggerLeave:i.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};F.displayName=R;var L="TooltipTrigger",B=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(L,t),s=k(L,t),l=D(t),d=i.useRef(null),a=H(e,d,n.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),v=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(J,{asChild:!0,...l,children:c.jsx(Z.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});B.displayName=L;var M="TooltipPortal",[de,pe]=O(M,{forceMount:void 0}),q=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(M,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(S,{present:t||s.open,children:c.jsx(ee,{asChild:!0,container:n,children:r})})})};q.displayName=M;var b="TooltipContent",U=i.forwardRef((o,e)=>{const t=pe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx(S,{present:r||l.open,children:l.disableHoverableContent?c.jsx(V,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=k(b,o.__scopeTooltip),n=i.useRef(null),s=H(e,n),[l,d]=i.useState(null),{trigger:a,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=i.useCallback(()=>{d(null),v(!1)},[v]),f=i.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ge(y,g.getBoundingClientRect()),w=Te(y,m),E=me(T.getBoundingClientRect()),P=Ce([...w,...E]);d(P),v(!0)},[v]);return i.useEffect(()=>()=>x(),[x]),i.useEffect(()=>{if(a&&u){const h=g=>f(g,u),T=g=>f(g,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[a,u,f,x]),i.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=a?.contains(g)||u?.contains(g),w=!ye(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,x]),c.jsx(V,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),V=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(b,t),p=D(t),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),i.useEffect(()=>{if(a.trigger){const v=x=>{x.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[a.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(oe,{"data-state":a.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(he,{children:r}),c.jsx(ve,{scope:t,isInside:!0,children:c.jsx(ie,{id:a.contentId,role:"tooltip",children:n||r})})]})})});U.displayName=b;var Y="TooltipArrow",X=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(Y,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});X.displayName=Y;function ge(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Te(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function me(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function ye(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],a=e[l],p=d.x,u=d.y,v=a.x,x=a.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function Ce(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),be(e)}function be(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var we=z,Ee=F,Pe=B,Re=q,_e=U,je=X;function Oe(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(we,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Le(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Oe,{children:c.jsx(Ee,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function ke(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Pe,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Me(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ae("notranslate bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-lg px-2 py-1 text-xs font-medium text-balance",r),e[5]=r,e[6]=d):d=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=a):a=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Re,{children:c.jsxs(_e,{"data-slot":"tooltip-content",sideOffset:l,translate:"no",className:d,...n,children:[t,a]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{ke as T,Me as a,Oe as b,Le as c};
@@ -1 +1 @@
1
- import{a5 as l,af as I,ag as p,ah as d}from"./CategoricalChart-ChFkF0_C.js";var r=a=>null;r.displayName="Cell";var h=(a,e,i)=>{var v=l();return(t,c)=>s=>{a?.(t,c,s),v(I({activeIndex:String(c),activeDataKey:e,activeCoordinate:t.tooltipPosition,activeGraphicalItemId:i}))}},n=a=>{var e=l();return(i,v)=>t=>{a?.(i,v,t),e(p())}},m=(a,e,i)=>{var v=l();return(t,c)=>s=>{a?.(t,c,s),v(d({activeIndex:String(c),activeDataKey:e,activeCoordinate:t.tooltipPosition,activeGraphicalItemId:i}))}};export{r as C,n as a,m as b,h as u};
1
+ import{a5 as l,af as I,ag as p,ah as d}from"./CategoricalChart-C9NLmvFO.js";var r=a=>null;r.displayName="Cell";var h=(a,e,i)=>{var v=l();return(t,c)=>s=>{a?.(t,c,s),v(I({activeIndex:String(c),activeDataKey:e,activeCoordinate:t.tooltipPosition,activeGraphicalItemId:i}))}},n=a=>{var e=l();return(i,v)=>t=>{a?.(i,v,t),e(p())}},m=(a,e,i)=>{var v=l();return(t,c)=>s=>{a?.(t,c,s),v(d({activeIndex:String(c),activeDataKey:e,activeCoordinate:t.tooltipPosition,activeGraphicalItemId:i}))}};export{r as C,n as a,m as b,h as u};
@@ -1 +1 @@
1
- import{F as m,a1 as _}from"./index-Cuw4uBth.js";const y="onepager",l="report:auth-attempt:",p=3600*1e3;function h(e){const t=new URLSearchParams(e),n=t.get("share_id")||void 0,o=t.get("email_run_id")||void 0,r=t.get("utm_source")||void 0,u=t.get("utm_medium")||void 0,a=t.get("utm_campaign")||void 0;return{entrypoint:n||r==="share"?"share":o||t.has("d")||r==="email"?"email":r?"campaign":"direct",...n?{share_id:n}:{},...o?{email_run_id:o}:{},...r?{utm_source:r}:{},...u?{utm_medium:u}:{},...a?{utm_campaign:a}:{}}}function c(){return h(typeof window>"u"?"":window.location.search)}function i(e){return`${l}${e}`}function f(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function s(e){try{const t=window.sessionStorage.getItem(i(e));if(!t)return null;const n=JSON.parse(t);return n.domain!==e||typeof n.attempt_id!="string"||typeof n.gate_shown_at!="number"||Date.now()-n.gate_shown_at>p?(window.sessionStorage.removeItem(i(e)),null):n}catch{return null}}function d(e){try{window.sessionStorage.setItem(i(e.domain),JSON.stringify(e))}catch{}}function g(e){const t=s(e);if(t)return t;const n={attempt_id:f(),domain:e,gate_shown_at:Date.now(),...c()};return d(n),n}function R(e,t){const n={...g(e),...t};return d(n),n}function T(e){return{auth_attempt_id:e.attempt_id,entrypoint:e.entrypoint,...e.share_id?{share_id:e.share_id}:{},...e.email_run_id?{email_run_id:e.email_run_id}:{},...e.utm_source?{utm_source:e.utm_source}:{},...e.utm_medium?{utm_medium:e.utm_medium}:{},...e.utm_campaign?{utm_campaign:e.utm_campaign}:{}}}function v(e){const t=s(e);if(!t)return null;try{window.sessionStorage.removeItem(i(e))}catch{}return t}function S(e){const t=e.toLowerCase();return t==="invalid_email"?"invalid_email":t.includes("429")||t.includes("rate limit")?"rate_limited":t.includes("otp")||t.includes("verification code")||t.includes("invalid code")||t.includes("expired code")||t.includes("código")||t.includes("codigo")?"invalid_or_expired_code":t.includes("401")||t.includes("unauthorized")?"invalid_credentials":t.includes("409")||t.includes("already exists")?"account_exists":t.includes("network")||t.includes("fetch")?"network":t.includes("cancel")||t.includes("closed")?"cancelled":"unknown"}function I(e,t,n){if(m())try{_.capture(e,{...c(),...t},n)}catch{}}export{y as R,T as a,S as b,I as c,g as d,v as e,h as r,R as u};
1
+ import{F as m,a1 as _}from"./index-Ce7G0he3.js";const y="onepager",l="report:auth-attempt:",p=3600*1e3;function h(e){const t=new URLSearchParams(e),n=t.get("share_id")||void 0,o=t.get("email_run_id")||void 0,r=t.get("utm_source")||void 0,u=t.get("utm_medium")||void 0,a=t.get("utm_campaign")||void 0;return{entrypoint:n||r==="share"?"share":o||t.has("d")||r==="email"?"email":r?"campaign":"direct",...n?{share_id:n}:{},...o?{email_run_id:o}:{},...r?{utm_source:r}:{},...u?{utm_medium:u}:{},...a?{utm_campaign:a}:{}}}function c(){return h(typeof window>"u"?"":window.location.search)}function i(e){return`${l}${e}`}function f(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function s(e){try{const t=window.sessionStorage.getItem(i(e));if(!t)return null;const n=JSON.parse(t);return n.domain!==e||typeof n.attempt_id!="string"||typeof n.gate_shown_at!="number"||Date.now()-n.gate_shown_at>p?(window.sessionStorage.removeItem(i(e)),null):n}catch{return null}}function d(e){try{window.sessionStorage.setItem(i(e.domain),JSON.stringify(e))}catch{}}function g(e){const t=s(e);if(t)return t;const n={attempt_id:f(),domain:e,gate_shown_at:Date.now(),...c()};return d(n),n}function R(e,t){const n={...g(e),...t};return d(n),n}function T(e){return{auth_attempt_id:e.attempt_id,entrypoint:e.entrypoint,...e.share_id?{share_id:e.share_id}:{},...e.email_run_id?{email_run_id:e.email_run_id}:{},...e.utm_source?{utm_source:e.utm_source}:{},...e.utm_medium?{utm_medium:e.utm_medium}:{},...e.utm_campaign?{utm_campaign:e.utm_campaign}:{}}}function v(e){const t=s(e);if(!t)return null;try{window.sessionStorage.removeItem(i(e))}catch{}return t}function S(e){const t=e.toLowerCase();return t==="invalid_email"?"invalid_email":t.includes("429")||t.includes("rate limit")?"rate_limited":t.includes("otp")||t.includes("verification code")||t.includes("invalid code")||t.includes("expired code")||t.includes("código")||t.includes("codigo")?"invalid_or_expired_code":t.includes("401")||t.includes("unauthorized")?"invalid_credentials":t.includes("409")||t.includes("already exists")?"account_exists":t.includes("network")||t.includes("fetch")?"network":t.includes("cancel")||t.includes("closed")?"cancelled":"unknown"}function I(e,t,n){if(m())try{_.capture(e,{...c(),...t},n)}catch{}}export{y as R,T as a,S as b,I as c,g as d,v as e,h as r,R as u};
@@ -1,4 +1,4 @@
1
- import{dX as l,e0 as e,dY as h,aL as r,gq as b,aK as t,cR as p,cT as d,b9 as c,dW as m,d_ as v,gr as I,gs as E,gt as w,dx as x,eL as T,gu as z,gv as C,gw as D,db as O,gx as B,dO as V,gy as W,gz as $,gA as K,gB as F,dK as J,dy as Z,dH as j,dI as Y,dJ as Q,dA as G,dG as X,dz as ee,dS as te}from"./index-Cuw4uBth.js";import{P as oe}from"./use-mcp-client-CfpsAKj4.js";(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(o,s)=>(typeof require<"u"?require:o)[s]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});class se extends oe{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(o,s){}_ensureEventSlot(o){let s=this._eventSlots.get(o);if(!s){let i=this.eventSchemas[o];if(!i)throw Error(`Unknown event: ${String(o)}`);s={listeners:[]},this._eventSlots.set(o,s);let a=i.shape.method.value;this._registeredMethods.add(a);let u=s;super.setNotificationHandler(i,g=>{let R=g.params;this.onEventDispatch(o,R),u.onHandler?.(R);for(let A of[...u.listeners])A(R)})}return s}setEventHandler(o,s){let i=this._ensureEventSlot(o);i.onHandler&&s&&console.warn(`[MCP Apps] on${String(o)} handler replaced. Use addEventListener("${String(o)}", …) to add multiple listeners without replacing.`),i.onHandler=s}getEventHandler(o){return this._eventSlots.get(o)?.onHandler}addEventListener(o,s){this._ensureEventSlot(o).listeners.push(s)}removeEventListener(o,s){let i=this._eventSlots.get(o);if(!i)return;let a=i.listeners.indexOf(s);a!==-1&&i.listeners.splice(a,1)}setRequestHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setRequestHandler"),super.setRequestHandler(o,s)};setNotificationHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setNotificationHandler"),super.setNotificationHandler(o,s)};warnIfRequestHandlerReplaced(o,s,i){s&&i&&console.warn(`[MCP Apps] ${o} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(o,s)=>{let i=o.shape.method.value;this._registeredMethods.add(i),super.setRequestHandler(o,s)};_assertMethodNotRegistered(o,s){let i=o.shape.method.value;if(this._registeredMethods.has(i))throw Error(`Handler for "${i}" already registered (via ${s}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(i)}}var L="2026-01-26",ie="ui/notifications/tool-input-partial",re=l([e("light"),e("dark")]).describe("Color theme preference for the host environment."),f=l([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ae=l([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),ne=h(ae.describe(`Style variables for theming MCP apps.
1
+ import{dY as l,e1 as e,dZ as h,aL as r,gq as b,aK as t,cS as p,cU as d,b9 as c,dX as m,d$ as v,gr as I,gs as E,gt as w,dy as x,eM as T,gu as z,gv as C,gw as D,dc as B,gx as O,dP as V,gy as W,gz as $,gA as K,gB as F,dL as J,dz as Z,dI as j,dJ as Y,dK as Q,dB as G,dH as X,dA as ee,dT as te}from"./index-Ce7G0he3.js";import{P as oe}from"./use-mcp-client-B9-9jnHW.js";(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(o,s)=>(typeof require<"u"?require:o)[s]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});class se extends oe{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(o,s){}_ensureEventSlot(o){let s=this._eventSlots.get(o);if(!s){let i=this.eventSchemas[o];if(!i)throw Error(`Unknown event: ${String(o)}`);s={listeners:[]},this._eventSlots.set(o,s);let a=i.shape.method.value;this._registeredMethods.add(a);let u=s;super.setNotificationHandler(i,g=>{let R=g.params;this.onEventDispatch(o,R),u.onHandler?.(R);for(let A of[...u.listeners])A(R)})}return s}setEventHandler(o,s){let i=this._ensureEventSlot(o);i.onHandler&&s&&console.warn(`[MCP Apps] on${String(o)} handler replaced. Use addEventListener("${String(o)}", …) to add multiple listeners without replacing.`),i.onHandler=s}getEventHandler(o){return this._eventSlots.get(o)?.onHandler}addEventListener(o,s){this._ensureEventSlot(o).listeners.push(s)}removeEventListener(o,s){let i=this._eventSlots.get(o);if(!i)return;let a=i.listeners.indexOf(s);a!==-1&&i.listeners.splice(a,1)}setRequestHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setRequestHandler"),super.setRequestHandler(o,s)};setNotificationHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setNotificationHandler"),super.setNotificationHandler(o,s)};warnIfRequestHandlerReplaced(o,s,i){s&&i&&console.warn(`[MCP Apps] ${o} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(o,s)=>{let i=o.shape.method.value;this._registeredMethods.add(i),super.setRequestHandler(o,s)};_assertMethodNotRegistered(o,s){let i=o.shape.method.value;if(this._registeredMethods.has(i))throw Error(`Handler for "${i}" already registered (via ${s}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(i)}}var L="2026-01-26",ie="ui/notifications/tool-input-partial",re=l([e("light"),e("dark")]).describe("Color theme preference for the host environment."),f=l([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ae=l([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),ne=h(ae.describe(`Style variables for theming MCP apps.
2
2
 
3
3
  Individual style keys are optional - hosts may provide any subset of these values.
4
4
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
@@ -36,7 +36,7 @@ Boolean requesting whether a visible border and background is provided by the ho
36
36
  - omitted: host decides border`)});var P=t({method:e("ui/request-display-mode"),params:t({mode:f.describe("The display mode being requested.")})});t({mode:f.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough();var ye=l([e("model"),e("app")]).describe("Tool visibility scope - who can access the tool.");t({resourceUri:r().optional(),visibility:d(ye).optional().describe(`Who can access this tool. Default: ["model", "app"]
37
37
  - "model": Tool visible to and callable by the agent
38
38
  - "app": Tool callable by the app from this server only`),csp:v().optional(),permissions:v().optional()});t({mimeTypes:d(r()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});var ve=t({method:e("ui/download-file"),params:t({contents:d(l([I,E])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),xe=t({method:e("ui/message"),params:t({role:e("user").describe('Message role, currently only "user" is supported.'),content:d(w).describe("Message content blocks (text, image, etc.).")})});t({method:e("ui/notifications/sandbox-resource-ready"),params:t({html:r().describe("HTML content to load into the inner iframe."),sandbox:r().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:_.optional().describe("CSP configuration from resource metadata."),permissions:S.optional().describe("Sandbox permissions from resource metadata.")})});t({method:e("ui/notifications/tool-result"),params:x.describe("Standard MCP tool execution result.")});var N=t({toolInfo:t({id:z.optional().describe("JSON-RPC id of the tools/call request."),tool:T.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:re.optional().describe("Current color theme preference."),styles:he.optional().describe("Style configuration for theming the app."),displayMode:f.optional().describe("How the UI is currently displayed."),availableDisplayModes:d(f).optional().describe("Display modes the host supports."),containerDimensions:l([t({height:c().describe("Fixed container height in pixels.")}),t({maxHeight:l([c(),b()]).optional().describe("Maximum container height in pixels.")})]).and(l([t({width:c().describe("Fixed container width in pixels.")}),t({maxWidth:l([c(),b()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
39
- container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:r().optional().describe("User's language and region preference in BCP 47 format."),timeZone:r().optional().describe("User's timezone in IANA format."),userAgent:r().optional().describe("Host application identifier."),platform:l([e("web"),e("desktop"),e("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:t({touch:p().optional().describe("Whether the device supports touch input."),hover:p().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:t({top:c().describe("Top safe area inset in pixels."),right:c().describe("Right safe area inset in pixels."),bottom:c().describe("Bottom safe area inset in pixels."),left:c().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();t({method:e("ui/notifications/host-context-changed"),params:N.describe("Partial context update containing only changed fields.")});var we=t({method:e("ui/update-model-context"),params:t({content:d(w).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:h(r(),m().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),Ce=t({method:e("ui/initialize"),params:t({appInfo:C.describe("App identification (name and version)."),appCapabilities:be.describe("Features and capabilities this app provides."),protocolVersion:r().describe("Protocol version this app supports.")})});t({protocolVersion:r().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:C.describe("Host application identification and version."),hostCapabilities:ge.describe("Features and capabilities provided by the host."),hostContext:N.describe("Rich context about the host environment.")}).passthrough();class Ue{eventTarget;eventSource;messageListener;constructor(o=window.parent,s){this.eventTarget=o,this.eventSource=s,this.messageListener=i=>{if(s&&i.source!==this.eventSource){console.debug("Ignoring message from unknown source",i);return}let a=te.safeParse(i.data);a.success?(console.debug("Parsed message",a.data),this.onmessage?.(a.data)):i.data?.jsonrpc!=="2.0"?console.debug("Ignoring non-JSON-RPC message",a.error.message,i):(console.error("Failed to parse message",a.error.message,i),this.onerror?.(Error("Invalid JSON-RPC message received: "+a.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(o,s){o.method!==ie&&console.debug("Sending message",o),this.eventTarget.postMessage(o,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion}var Re="ui/resourceUri";function _e(n){let o=n._meta?.ui?.resourceUri;if(o===void 0&&(o=n._meta?.[Re]),typeof o=="string"&&o.startsWith("ui://"))return o;if(o!==void 0)throw Error(`Invalid UI resource URI: ${JSON.stringify(o)}`)}var Se=[L];class Ae extends se{_client;_hostInfo;_capabilities;_appCapabilities;_hostContext={};_appInfo;_initializedReceived=!1;_baseReplaceRequestHandler=this.replaceRequestHandler;replaceRequestHandler=(o,s)=>{this._baseReplaceRequestHandler(o,(i,a)=>(this._initializedReceived||console.warn(`[ext-apps] AppBridge received '${i.method}' before ui/notifications/initialized. The View is calling host methods before completing the handshake; it should await app.connect() first.`),s(i,a)))};eventSchemas={sizechange:ce,sandboxready:de,initialized:fe,requestteardown:me,loggingmessage:D};constructor(o,s,i,a){super(a),this._client=o,this._hostInfo=s,this._capabilities=i,this.addEventListener("initialized",()=>{this._initializedReceived=!0}),this._hostContext=a?.hostContext||{},this.setRequestHandler(Ce,u=>this._oninitialize(u)),this.setRequestHandler(O,(u,g)=>(this.onping?.(u.params,g),{})),this.replaceRequestHandler(P,u=>({mode:this._hostContext.displayMode??"inline"}))}getAppCapabilities(){return this._appCapabilities}getAppVersion(){return this._appInfo}onping;get onsizechange(){return this.getEventHandler("sizechange")}set onsizechange(o){this.setEventHandler("sizechange",o)}get onsandboxready(){return this.getEventHandler("sandboxready")}set onsandboxready(o){this.setEventHandler("sandboxready",o)}get oninitialized(){return this.getEventHandler("initialized")}set oninitialized(o){this.setEventHandler("initialized",o)}_onmessage;get onmessage(){return this._onmessage}set onmessage(o){this.warnIfRequestHandlerReplaced("onmessage",this._onmessage,o),this._onmessage=o,this.replaceRequestHandler(xe,async(s,i)=>{if(!this._onmessage)throw Error("No onmessage handler set");return this._onmessage(s.params,i)})}_onopenlink;get onopenlink(){return this._onopenlink}set onopenlink(o){this.warnIfRequestHandlerReplaced("onopenlink",this._onopenlink,o),this._onopenlink=o,this.replaceRequestHandler(le,async(s,i)=>{if(!this._onopenlink)throw Error("No onopenlink handler set");return this._onopenlink(s.params,i)})}_ondownloadfile;get ondownloadfile(){return this._ondownloadfile}set ondownloadfile(o){this.warnIfRequestHandlerReplaced("ondownloadfile",this._ondownloadfile,o),this._ondownloadfile=o,this.replaceRequestHandler(ve,async(s,i)=>{if(!this._ondownloadfile)throw Error("No ondownloadfile handler set");return this._ondownloadfile(s.params,i)})}get onrequestteardown(){return this.getEventHandler("requestteardown")}set onrequestteardown(o){this.setEventHandler("requestteardown",o)}_onrequestdisplaymode;get onrequestdisplaymode(){return this._onrequestdisplaymode}set onrequestdisplaymode(o){this.warnIfRequestHandlerReplaced("onrequestdisplaymode",this._onrequestdisplaymode,o),this._onrequestdisplaymode=o,this.replaceRequestHandler(P,async(s,i)=>{if(!this._onrequestdisplaymode)throw Error("No onrequestdisplaymode handler set");return this._onrequestdisplaymode(s.params,i)})}get onloggingmessage(){return this.getEventHandler("loggingmessage")}set onloggingmessage(o){this.setEventHandler("loggingmessage",o)}_onupdatemodelcontext;get onupdatemodelcontext(){return this._onupdatemodelcontext}set onupdatemodelcontext(o){this.warnIfRequestHandlerReplaced("onupdatemodelcontext",this._onupdatemodelcontext,o),this._onupdatemodelcontext=o,this.replaceRequestHandler(we,async(s,i)=>{if(!this._onupdatemodelcontext)throw Error("No onupdatemodelcontext handler set");return this._onupdatemodelcontext(s.params,i)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(o){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,o),this._oncalltool=o,this.replaceRequestHandler(B,async(s,i)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(s.params,i)})}set oncreatesamplingmessage(o){this.setRequestHandler(V,async(s,i)=>o(s.params,i))}sendToolListChanged(o={}){return this.notification({method:"notifications/tools/list_changed",params:o})}_onlistresources;get onlistresources(){return this._onlistresources}set onlistresources(o){this.warnIfRequestHandlerReplaced("onlistresources",this._onlistresources,o),this._onlistresources=o,this.replaceRequestHandler(W,async(s,i)=>{if(!this._onlistresources)throw Error("No onlistresources handler set");return this._onlistresources(s.params,i)})}_onlistresourcetemplates;get onlistresourcetemplates(){return this._onlistresourcetemplates}set onlistresourcetemplates(o){this.warnIfRequestHandlerReplaced("onlistresourcetemplates",this._onlistresourcetemplates,o),this._onlistresourcetemplates=o,this.replaceRequestHandler($,async(s,i)=>{if(!this._onlistresourcetemplates)throw Error("No onlistresourcetemplates handler set");return this._onlistresourcetemplates(s.params,i)})}_onreadresource;get onreadresource(){return this._onreadresource}set onreadresource(o){this.warnIfRequestHandlerReplaced("onreadresource",this._onreadresource,o),this._onreadresource=o,this.replaceRequestHandler(K,async(s,i)=>{if(!this._onreadresource)throw Error("No onreadresource handler set");return this._onreadresource(s.params,i)})}sendResourceListChanged(o={}){return this.notification({method:"notifications/resources/list_changed",params:o})}_onlistprompts;get onlistprompts(){return this._onlistprompts}set onlistprompts(o){this.warnIfRequestHandlerReplaced("onlistprompts",this._onlistprompts,o),this._onlistprompts=o,this.replaceRequestHandler(F,async(s,i)=>{if(!this._onlistprompts)throw Error("No onlistprompts handler set");return this._onlistprompts(s.params,i)})}sendPromptListChanged(o={}){return this.notification({method:"notifications/prompts/list_changed",params:o})}assertCapabilityForMethod(o){}assertRequestHandlerCapability(o){}assertNotificationCapability(o){}assertTaskCapability(o){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(o){throw Error("Task handlers are not supported in MCP Apps")}getCapabilities(){return this._capabilities}async _oninitialize(o){let s=o.params.protocolVersion;return this._appInfo!==void 0&&console.warn("[ext-apps] AppBridge received a second ui/initialize. The View may be double-mounting (e.g. React StrictMode in dev) without closing the previous App instance. Responding normally; the latest appInfo/appCapabilities replace the previous values."),this._appCapabilities=o.params.appCapabilities,this._appInfo=o.params.appInfo,{protocolVersion:Se.includes(s)?s:L,hostCapabilities:this.getCapabilities(),hostInfo:this._hostInfo,hostContext:this._hostContext}}setHostContext(o){let s={},i=!1;for(let a of Object.keys(o)){let u=this._hostContext[a],g=o[a];He(u,g)||(s[a]=g,i=!0)}i&&(this._hostContext=o,this.sendHostContextChange(s))}sendHostContextChange(o){return this.notification({method:"ui/notifications/host-context-changed",params:o})}sendToolInput(o){return this.notification({method:"ui/notifications/tool-input",params:o})}sendToolInputPartial(o){return this.notification({method:"ui/notifications/tool-input-partial",params:o})}sendToolResult(o){return this.notification({method:"ui/notifications/tool-result",params:o})}sendToolCancelled(o){return this.notification({method:"ui/notifications/tool-cancelled",params:o})}sendSandboxResourceReady(o){return this.notification({method:"ui/notifications/sandbox-resource-ready",params:o})}teardownResource(o,s){return this.request({method:"ui/resource-teardown",params:o},ue,s)}sendResourceTeardown=this.teardownResource;callTool(o,s){return this.request({method:"tools/call",params:o},x,s)}listTools(o,s){return this.request({method:"tools/list",params:o},J,s)}async connect(o){if(this.transport)throw Error("AppBridge is already connected. Call close() before connecting again.");if(this._initializedReceived=!1,this._client){let s=this._client.getServerCapabilities();if(!s)throw Error("Client server capabilities not available");s.tools&&(this.oncalltool=async(i,a)=>this._client.request({method:"tools/call",params:i},x,{signal:a.signal}),s.tools.listChanged&&this._client.setNotificationHandler(Z,i=>this.sendToolListChanged(i.params))),s.resources&&(this.onlistresources=async(i,a)=>this._client.request({method:"resources/list",params:i},j,{signal:a.signal}),this.onlistresourcetemplates=async(i,a)=>this._client.request({method:"resources/templates/list",params:i},Y,{signal:a.signal}),this.onreadresource=async(i,a)=>this._client.request({method:"resources/read",params:i},Q,{signal:a.signal}),s.resources.listChanged&&this._client.setNotificationHandler(G,i=>this.sendResourceListChanged(i.params))),s.prompts&&(this.onlistprompts=async(i,a)=>this._client.request({method:"prompts/list",params:i},X,{signal:a.signal}),s.prompts.listChanged&&this._client.setNotificationHandler(ee,i=>this.sendPromptListChanged(i.params)))}return super.connect(o)}}function He(n,o){return JSON.stringify(n)===JSON.stringify(o)}(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(o,s)=>(typeof require<"u"?require:o)[s]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var qe=l([e("light"),e("dark")]).describe("Color theme preference for the host environment."),y=l([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ke=l([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),Pe=h(ke.describe(`Style variables for theming MCP apps.
39
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:r().optional().describe("User's language and region preference in BCP 47 format."),timeZone:r().optional().describe("User's timezone in IANA format."),userAgent:r().optional().describe("Host application identifier."),platform:l([e("web"),e("desktop"),e("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:t({touch:p().optional().describe("Whether the device supports touch input."),hover:p().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:t({top:c().describe("Top safe area inset in pixels."),right:c().describe("Right safe area inset in pixels."),bottom:c().describe("Bottom safe area inset in pixels."),left:c().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();t({method:e("ui/notifications/host-context-changed"),params:N.describe("Partial context update containing only changed fields.")});var we=t({method:e("ui/update-model-context"),params:t({content:d(w).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:h(r(),m().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),Ce=t({method:e("ui/initialize"),params:t({appInfo:C.describe("App identification (name and version)."),appCapabilities:be.describe("Features and capabilities this app provides."),protocolVersion:r().describe("Protocol version this app supports.")})});t({protocolVersion:r().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:C.describe("Host application identification and version."),hostCapabilities:ge.describe("Features and capabilities provided by the host."),hostContext:N.describe("Rich context about the host environment.")}).passthrough();class Ue{eventTarget;eventSource;messageListener;constructor(o=window.parent,s){this.eventTarget=o,this.eventSource=s,this.messageListener=i=>{if(s&&i.source!==this.eventSource){console.debug("Ignoring message from unknown source",i);return}let a=te.safeParse(i.data);a.success?(console.debug("Parsed message",a.data),this.onmessage?.(a.data)):i.data?.jsonrpc!=="2.0"?console.debug("Ignoring non-JSON-RPC message",a.error.message,i):(console.error("Failed to parse message",a.error.message,i),this.onerror?.(Error("Invalid JSON-RPC message received: "+a.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(o,s){o.method!==ie&&console.debug("Sending message",o),this.eventTarget.postMessage(o,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion}var Re="ui/resourceUri";function _e(n){let o=n._meta?.ui?.resourceUri;if(o===void 0&&(o=n._meta?.[Re]),typeof o=="string"&&o.startsWith("ui://"))return o;if(o!==void 0)throw Error(`Invalid UI resource URI: ${JSON.stringify(o)}`)}var Se=[L];class Ae extends se{_client;_hostInfo;_capabilities;_appCapabilities;_hostContext={};_appInfo;_initializedReceived=!1;_baseReplaceRequestHandler=this.replaceRequestHandler;replaceRequestHandler=(o,s)=>{this._baseReplaceRequestHandler(o,(i,a)=>(this._initializedReceived||console.warn(`[ext-apps] AppBridge received '${i.method}' before ui/notifications/initialized. The View is calling host methods before completing the handshake; it should await app.connect() first.`),s(i,a)))};eventSchemas={sizechange:ce,sandboxready:de,initialized:fe,requestteardown:me,loggingmessage:D};constructor(o,s,i,a){super(a),this._client=o,this._hostInfo=s,this._capabilities=i,this.addEventListener("initialized",()=>{this._initializedReceived=!0}),this._hostContext=a?.hostContext||{},this.setRequestHandler(Ce,u=>this._oninitialize(u)),this.setRequestHandler(B,(u,g)=>(this.onping?.(u.params,g),{})),this.replaceRequestHandler(P,u=>({mode:this._hostContext.displayMode??"inline"}))}getAppCapabilities(){return this._appCapabilities}getAppVersion(){return this._appInfo}onping;get onsizechange(){return this.getEventHandler("sizechange")}set onsizechange(o){this.setEventHandler("sizechange",o)}get onsandboxready(){return this.getEventHandler("sandboxready")}set onsandboxready(o){this.setEventHandler("sandboxready",o)}get oninitialized(){return this.getEventHandler("initialized")}set oninitialized(o){this.setEventHandler("initialized",o)}_onmessage;get onmessage(){return this._onmessage}set onmessage(o){this.warnIfRequestHandlerReplaced("onmessage",this._onmessage,o),this._onmessage=o,this.replaceRequestHandler(xe,async(s,i)=>{if(!this._onmessage)throw Error("No onmessage handler set");return this._onmessage(s.params,i)})}_onopenlink;get onopenlink(){return this._onopenlink}set onopenlink(o){this.warnIfRequestHandlerReplaced("onopenlink",this._onopenlink,o),this._onopenlink=o,this.replaceRequestHandler(le,async(s,i)=>{if(!this._onopenlink)throw Error("No onopenlink handler set");return this._onopenlink(s.params,i)})}_ondownloadfile;get ondownloadfile(){return this._ondownloadfile}set ondownloadfile(o){this.warnIfRequestHandlerReplaced("ondownloadfile",this._ondownloadfile,o),this._ondownloadfile=o,this.replaceRequestHandler(ve,async(s,i)=>{if(!this._ondownloadfile)throw Error("No ondownloadfile handler set");return this._ondownloadfile(s.params,i)})}get onrequestteardown(){return this.getEventHandler("requestteardown")}set onrequestteardown(o){this.setEventHandler("requestteardown",o)}_onrequestdisplaymode;get onrequestdisplaymode(){return this._onrequestdisplaymode}set onrequestdisplaymode(o){this.warnIfRequestHandlerReplaced("onrequestdisplaymode",this._onrequestdisplaymode,o),this._onrequestdisplaymode=o,this.replaceRequestHandler(P,async(s,i)=>{if(!this._onrequestdisplaymode)throw Error("No onrequestdisplaymode handler set");return this._onrequestdisplaymode(s.params,i)})}get onloggingmessage(){return this.getEventHandler("loggingmessage")}set onloggingmessage(o){this.setEventHandler("loggingmessage",o)}_onupdatemodelcontext;get onupdatemodelcontext(){return this._onupdatemodelcontext}set onupdatemodelcontext(o){this.warnIfRequestHandlerReplaced("onupdatemodelcontext",this._onupdatemodelcontext,o),this._onupdatemodelcontext=o,this.replaceRequestHandler(we,async(s,i)=>{if(!this._onupdatemodelcontext)throw Error("No onupdatemodelcontext handler set");return this._onupdatemodelcontext(s.params,i)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(o){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,o),this._oncalltool=o,this.replaceRequestHandler(O,async(s,i)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(s.params,i)})}set oncreatesamplingmessage(o){this.setRequestHandler(V,async(s,i)=>o(s.params,i))}sendToolListChanged(o={}){return this.notification({method:"notifications/tools/list_changed",params:o})}_onlistresources;get onlistresources(){return this._onlistresources}set onlistresources(o){this.warnIfRequestHandlerReplaced("onlistresources",this._onlistresources,o),this._onlistresources=o,this.replaceRequestHandler(W,async(s,i)=>{if(!this._onlistresources)throw Error("No onlistresources handler set");return this._onlistresources(s.params,i)})}_onlistresourcetemplates;get onlistresourcetemplates(){return this._onlistresourcetemplates}set onlistresourcetemplates(o){this.warnIfRequestHandlerReplaced("onlistresourcetemplates",this._onlistresourcetemplates,o),this._onlistresourcetemplates=o,this.replaceRequestHandler($,async(s,i)=>{if(!this._onlistresourcetemplates)throw Error("No onlistresourcetemplates handler set");return this._onlistresourcetemplates(s.params,i)})}_onreadresource;get onreadresource(){return this._onreadresource}set onreadresource(o){this.warnIfRequestHandlerReplaced("onreadresource",this._onreadresource,o),this._onreadresource=o,this.replaceRequestHandler(K,async(s,i)=>{if(!this._onreadresource)throw Error("No onreadresource handler set");return this._onreadresource(s.params,i)})}sendResourceListChanged(o={}){return this.notification({method:"notifications/resources/list_changed",params:o})}_onlistprompts;get onlistprompts(){return this._onlistprompts}set onlistprompts(o){this.warnIfRequestHandlerReplaced("onlistprompts",this._onlistprompts,o),this._onlistprompts=o,this.replaceRequestHandler(F,async(s,i)=>{if(!this._onlistprompts)throw Error("No onlistprompts handler set");return this._onlistprompts(s.params,i)})}sendPromptListChanged(o={}){return this.notification({method:"notifications/prompts/list_changed",params:o})}assertCapabilityForMethod(o){}assertRequestHandlerCapability(o){}assertNotificationCapability(o){}assertTaskCapability(o){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(o){throw Error("Task handlers are not supported in MCP Apps")}getCapabilities(){return this._capabilities}async _oninitialize(o){let s=o.params.protocolVersion;return this._appInfo!==void 0&&console.warn("[ext-apps] AppBridge received a second ui/initialize. The View may be double-mounting (e.g. React StrictMode in dev) without closing the previous App instance. Responding normally; the latest appInfo/appCapabilities replace the previous values."),this._appCapabilities=o.params.appCapabilities,this._appInfo=o.params.appInfo,{protocolVersion:Se.includes(s)?s:L,hostCapabilities:this.getCapabilities(),hostInfo:this._hostInfo,hostContext:this._hostContext}}setHostContext(o){let s={},i=!1;for(let a of Object.keys(o)){let u=this._hostContext[a],g=o[a];He(u,g)||(s[a]=g,i=!0)}i&&(this._hostContext=o,this.sendHostContextChange(s))}sendHostContextChange(o){return this.notification({method:"ui/notifications/host-context-changed",params:o})}sendToolInput(o){return this.notification({method:"ui/notifications/tool-input",params:o})}sendToolInputPartial(o){return this.notification({method:"ui/notifications/tool-input-partial",params:o})}sendToolResult(o){return this.notification({method:"ui/notifications/tool-result",params:o})}sendToolCancelled(o){return this.notification({method:"ui/notifications/tool-cancelled",params:o})}sendSandboxResourceReady(o){return this.notification({method:"ui/notifications/sandbox-resource-ready",params:o})}teardownResource(o,s){return this.request({method:"ui/resource-teardown",params:o},ue,s)}sendResourceTeardown=this.teardownResource;callTool(o,s){return this.request({method:"tools/call",params:o},x,s)}listTools(o,s){return this.request({method:"tools/list",params:o},J,s)}async connect(o){if(this.transport)throw Error("AppBridge is already connected. Call close() before connecting again.");if(this._initializedReceived=!1,this._client){let s=this._client.getServerCapabilities();if(!s)throw Error("Client server capabilities not available");s.tools&&(this.oncalltool=async(i,a)=>this._client.request({method:"tools/call",params:i},x,{signal:a.signal}),s.tools.listChanged&&this._client.setNotificationHandler(Z,i=>this.sendToolListChanged(i.params))),s.resources&&(this.onlistresources=async(i,a)=>this._client.request({method:"resources/list",params:i},j,{signal:a.signal}),this.onlistresourcetemplates=async(i,a)=>this._client.request({method:"resources/templates/list",params:i},Y,{signal:a.signal}),this.onreadresource=async(i,a)=>this._client.request({method:"resources/read",params:i},Q,{signal:a.signal}),s.resources.listChanged&&this._client.setNotificationHandler(G,i=>this.sendResourceListChanged(i.params))),s.prompts&&(this.onlistprompts=async(i,a)=>this._client.request({method:"prompts/list",params:i},X,{signal:a.signal}),s.prompts.listChanged&&this._client.setNotificationHandler(ee,i=>this.sendPromptListChanged(i.params)))}return super.connect(o)}}function He(n,o){return JSON.stringify(n)===JSON.stringify(o)}(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(o,s)=>(typeof require<"u"?require:o)[s]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var qe=l([e("light"),e("dark")]).describe("Color theme preference for the host environment."),y=l([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ke=l([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),Pe=h(ke.describe(`Style variables for theming MCP apps.
40
40
 
41
41
  Individual style keys are optional - hosts may provide any subset of these values.
42
42
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
@@ -74,4 +74,4 @@ Boolean requesting whether a visible border and background is provided by the ho
74
74
  - omitted: host decides border`)});t({method:e("ui/request-display-mode"),params:t({mode:y.describe("The display mode being requested.")})});t({mode:y.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough();var ze=l([e("model"),e("app")]).describe("Tool visibility scope - who can access the tool.");t({resourceUri:r().optional(),visibility:d(ze).optional().describe(`Who can access this tool. Default: ["model", "app"]
75
75
  - "model": Tool visible to and callable by the agent
76
76
  - "app": Tool callable by the app from this server only`),csp:v().optional(),permissions:v().optional()});t({mimeTypes:d(r()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});t({method:e("ui/download-file"),params:t({contents:d(l([I,E])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});t({method:e("ui/message"),params:t({role:e("user").describe('Message role, currently only "user" is supported.'),content:d(w).describe("Message content blocks (text, image, etc.).")})});t({method:e("ui/notifications/sandbox-resource-ready"),params:t({html:r().describe("HTML content to load into the inner iframe."),sandbox:r().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:H.optional().describe("CSP configuration from resource metadata."),permissions:q.optional().describe("Sandbox permissions from resource metadata.")})});t({method:e("ui/notifications/tool-result"),params:x.describe("Standard MCP tool execution result.")});var U=t({toolInfo:t({id:z.optional().describe("JSON-RPC id of the tools/call request."),tool:T.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:qe.optional().describe("Current color theme preference."),styles:Ie.optional().describe("Style configuration for theming the app."),displayMode:y.optional().describe("How the UI is currently displayed."),availableDisplayModes:d(y).optional().describe("Display modes the host supports."),containerDimensions:l([t({height:c().describe("Fixed container height in pixels.")}),t({maxHeight:l([c(),b()]).optional().describe("Maximum container height in pixels.")})]).and(l([t({width:c().describe("Fixed container width in pixels.")}),t({maxWidth:l([c(),b()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
77
- container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:r().optional().describe("User's language and region preference in BCP 47 format."),timeZone:r().optional().describe("User's timezone in IANA format."),userAgent:r().optional().describe("Host application identifier."),platform:l([e("web"),e("desktop"),e("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:t({touch:p().optional().describe("Whether the device supports touch input."),hover:p().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:t({top:c().describe("Top safe area inset in pixels."),right:c().describe("Right safe area inset in pixels."),bottom:c().describe("Bottom safe area inset in pixels."),left:c().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();t({method:e("ui/notifications/host-context-changed"),params:U.describe("Partial context update containing only changed fields.")});t({method:e("ui/update-model-context"),params:t({content:d(w).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:h(r(),m().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});t({method:e("ui/initialize"),params:t({appInfo:C.describe("App identification (name and version)."),appCapabilities:Te.describe("Features and capabilities this app provides."),protocolVersion:r().describe("Protocol version this app supports.")})});t({protocolVersion:r().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:C.describe("Host application identification and version."),hostCapabilities:Ee.describe("Features and capabilities provided by the host."),hostContext:U.describe("Rich context about the host environment.")}).passthrough();function De(){let n=document.documentElement.getAttribute("data-theme");return n==="dark"||n==="light"?n:document.documentElement.classList.contains("dark")?"dark":"light"}const Oe={view:{minHeight:400,maxHeight:800},fullscreen:{minHeight:600,maxHeight:1200}};function Be(n){if(!(n==null||typeof n!="object"))try{return _e({_meta:n})}catch{return}}export{De as C,Ae as D,Ue as E,Oe as M,Be as g};
77
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:r().optional().describe("User's language and region preference in BCP 47 format."),timeZone:r().optional().describe("User's timezone in IANA format."),userAgent:r().optional().describe("Host application identifier."),platform:l([e("web"),e("desktop"),e("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:t({touch:p().optional().describe("Whether the device supports touch input."),hover:p().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:t({top:c().describe("Top safe area inset in pixels."),right:c().describe("Right safe area inset in pixels."),bottom:c().describe("Bottom safe area inset in pixels."),left:c().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();t({method:e("ui/notifications/host-context-changed"),params:U.describe("Partial context update containing only changed fields.")});t({method:e("ui/update-model-context"),params:t({content:d(w).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:h(r(),m().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});t({method:e("ui/initialize"),params:t({appInfo:C.describe("App identification (name and version)."),appCapabilities:Te.describe("Features and capabilities this app provides."),protocolVersion:r().describe("Protocol version this app supports.")})});t({protocolVersion:r().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:C.describe("Host application identification and version."),hostCapabilities:Ee.describe("Features and capabilities provided by the host."),hostContext:U.describe("Rich context about the host environment.")}).passthrough();function De(){let n=document.documentElement.getAttribute("data-theme");return n==="dark"||n==="light"?n:document.documentElement.classList.contains("dark")?"dark":"light"}const Be={view:{minHeight:400,maxHeight:800},fullscreen:{minHeight:600,maxHeight:1200}};function Oe(n){if(!(n==null||typeof n!="object"))try{return _e({_meta:n})}catch{return}}export{De as C,Ae as D,Ue as E,Be as M,Oe as g};
@@ -1 +1 @@
1
- import{aL as s}from"./index-Cuw4uBth.js";const n=2,t=64,i=/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/,r=new Set(["new","edit","settings","apps","projects","connections"]),o=s().min(n).max(t).regex(i,"Use lowercase letters, digits, and single hyphens between them").refine(e=>!e.includes("--"),"Use single hyphens").refine(e=>!r.has(e),"This slug is reserved");export{o as U};
1
+ import{aL as s}from"./index-Ce7G0he3.js";const n=2,t=64,i=/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/,r=new Set(["new","edit","settings","apps","projects","connections"]),o=s().min(n).max(t).regex(i,"Use lowercase letters, digits, and single hyphens between them").refine(e=>!e.includes("--"),"Use single hyphens").refine(e=>!r.has(e),"This slug is reserved");export{o as U};