decocms 4.91.4 → 4.91.6
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.
- package/dist/client/assets/{AlertCircle-CF1-Ouso.js → AlertCircle-CcH_bOxk.js} +1 -1
- package/dist/client/assets/{AreaChart-C6eOWyou.js → AreaChart-JPtlrDdc.js} +1 -1
- package/dist/client/assets/{ArrowUp-DsZMdHlI.js → ArrowUp-C2AEn2OG.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Bxfx0mGn.js → ArrowUpRight-BoOQpTWN.js} +1 -1
- package/dist/client/assets/{CheckCircle-wiCB7A1l.js → CheckCircle-DW5bobga.js} +1 -1
- package/dist/client/assets/{ChevronDown-DyjAqI3m.js → ChevronDown-CiZWLuMe.js} +1 -1
- package/dist/client/assets/{ChevronRight-Df2B68Ds.js → ChevronRight-CytmAzEp.js} +1 -1
- package/dist/client/assets/{ChevronUp-DAExiZbv.js → ChevronUp-BrWDtpzw.js} +1 -1
- package/dist/client/assets/{Copy01-yl04KoRE.js → Copy01-BWDWirG7.js} +1 -1
- package/dist/client/assets/{DotsVertical-bvDG8sRh.js → DotsVertical-CrMS0ntC.js} +1 -1
- package/dist/client/assets/{Eye-BFJNvxsd.js → Eye-sXXYRxsB.js} +1 -1
- package/dist/client/assets/{FilterLines-BqZk99p5.js → FilterLines-jVMdWUpM.js} +1 -1
- package/dist/client/assets/{Globe01-CrriuSxO.js → Globe01-Dj9P9bYX.js} +1 -1
- package/dist/client/assets/{Globe04-DACPo7x7.js → Globe04-BqIV_GOb.js} +1 -1
- package/dist/client/assets/{HardDrive-LjQciFQe.js → HardDrive-BW7rSZ6M.js} +1 -1
- package/dist/client/assets/{Image01-BYSIhLh2.js → Image01-B7OKhkcw.js} +1 -1
- package/dist/client/assets/{Key01-Lzz0ThQp.js → Key01-DGHWQ9PP.js} +1 -1
- package/dist/client/assets/{LayoutLeft-fGt4B_V6.js → LayoutLeft-B8e5OgIG.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BRIrxBM1.js → LinkExternal01-CujALlEc.js} +1 -1
- package/dist/client/assets/{Monitor01-B6UVUJyc.js → Monitor01-6K_ZjGck.js} +1 -1
- package/dist/client/assets/{Package-CrYiuzsO.js → Package-C_dItm-W.js} +1 -1
- package/dist/client/assets/{Palette-C48f3v4Y.js → Palette-Dbpl9liZ.js} +1 -1
- package/dist/client/assets/{Play-DIYdniDd.js → Play-Di71Lx-r.js} +1 -1
- package/dist/client/assets/{Plus-DT-2W1wT.js → Plus-sP7IdCet.js} +1 -1
- package/dist/client/assets/{SearchLg-DTthHNBJ.js → SearchLg-ByDyqJch.js} +1 -1
- package/dist/client/assets/{SearchMd-MXpFHXYg.js → SearchMd-CAabB6cG.js} +1 -1
- package/dist/client/assets/{Settings02-C1s-98Ge.js → Settings02-C_58NGMf.js} +1 -1
- package/dist/client/assets/{Shield01-DWL6KGgf.js → Shield01-z6N5dhMJ.js} +1 -1
- package/dist/client/assets/{Star01-DwAl9-p_.js → Star01-_rApLWqW.js} +1 -1
- package/dist/client/assets/{Stars01-DNB2jBIt.js → Stars01-DscI0nGz.js} +1 -1
- package/dist/client/assets/{Stars02-DcCuWVPa.js → Stars02-CvaQ7G_U.js} +1 -1
- package/dist/client/assets/{Sun-CF2vhsLR.js → Sun-Cqkb9YfZ.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DNrUeigm.js → SwitchHorizontal01-qXHyhVUB.js} +1 -1
- package/dist/client/assets/{Tool01-CSRypqfM.js → Tool01-lqRXjO9Q.js} +1 -1
- package/dist/client/assets/{Tool02-CSWTlCLd.js → Tool02-sgO2gBxE.js} +1 -1
- package/dist/client/assets/{Trash01-UQjosBE6.js → Trash01-BO8Lzt2t.js} +1 -1
- package/dist/client/assets/{TrendUp01-Di8K_0Ub.js → TrendUp01-cGxYPW5K.js} +1 -1
- package/dist/client/assets/{Upload01-CnCVZJAv.js → Upload01-DUbC9Edx.js} +1 -1
- package/dist/client/assets/{User01-CF6pDsdw.js → User01-Bt_owTEs.js} +1 -1
- package/dist/client/assets/{Users01-C_k5OJBp.js → Users01-C-7-ynSw.js} +1 -1
- package/dist/client/assets/{Users03-DTELiT5U.js → Users03-CXp0Gp25.js} +1 -1
- package/dist/client/assets/{X-BWn3kDs2.js → X-C2HR48bw.js} +1 -1
- package/dist/client/assets/{XCircle-CrP1StfT.js → XCircle-DExvTcJb.js} +1 -1
- package/dist/client/assets/{XClose-CjGp1c1G.js → XClose-CYQLG4_Q.js} +1 -1
- package/dist/client/assets/{Zap-BZCkBdl0.js → Zap-CCM6DeYE.js} +1 -1
- package/dist/client/assets/{ZapSquare-C6uVpqjQ.js → ZapSquare-BdxdrJJ8.js} +1 -1
- package/dist/client/assets/{ZoomOut-D_KRNWSe.js → ZoomOut-sZ-dDZym.js} +1 -1
- package/dist/client/assets/{access-gate-7v8G4_rr.js → access-gate-BYZfH4kZ.js} +1 -1
- package/dist/client/assets/{add-section-modal-Cnxg2RBD.js → add-section-modal-B8WxKAVv.js} +1 -1
- package/dist/client/assets/{agent-icon-DHXwUm9P.js → agent-icon-1myMQ7Rr.js} +1 -1
- package/dist/client/assets/{agents-list-beV1gPOw.js → agents-list-D_bgos9o.js} +1 -1
- package/dist/client/assets/{ai-providers-D431dycR.js → ai-providers-DaYqNUjw.js} +1 -1
- package/dist/client/assets/{alert-CuzEy4Gd.js → alert-FF4OO-2L.js} +1 -1
- package/dist/client/assets/{alert-dialog-Dp7Qz6rw.js → alert-dialog-DvL7lELx.js} +1 -1
- package/dist/client/assets/{app-editor-DNZzH5Gm.js → app-editor-BCEfc9RG.js} +1 -1
- package/dist/client/assets/{auth-SBllEMuV.js → auth-D0ljPABj.js} +1 -1
- package/dist/client/assets/{auth-catchall-DnleSkVZ.js → auth-catchall-CwFeYxFe.js} +1 -1
- package/dist/client/assets/{auth-entry-DW4XCBMV.js → auth-entry-BLSGl5T1.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CSqKV65d.js → auth-split-layout-Du15Fr-5.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-w-vDVvUb.js → authenticate-and-persist-oauth-Da6QgU07.js} +1 -1
- package/dist/client/assets/{automation-list-row-DxqyB35q.js → automation-list-row-Cn3ij2PQ.js} +1 -1
- package/dist/client/assets/{automation-runs-jZQsMT_1.js → automation-runs-B537gMZp.js} +1 -1
- package/dist/client/assets/{automations-B5tYNyFB.js → automations-CxEAq3fg.js} +1 -1
- package/dist/client/assets/{autosend-QH589PVa.js → autosend-CfanRrav.js} +1 -1
- package/dist/client/assets/{avatar-C6qQgELM.js → avatar-CltceXco.js} +1 -1
- package/dist/client/assets/{badge-CHPMmYmt.js → badge-B0J4O9z7.js} +1 -1
- package/dist/client/assets/{block-document-CtQxGr4H.js → block-document-DOq6k8Xd.js} +3 -3
- package/dist/client/assets/{brand-context-vrotVwiu.js → brand-context-QyJZAQRj.js} +1 -1
- package/dist/client/assets/{buckets-ClAlu9b3.js → buckets-Cn5CCw-T.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-DnZCDf5P.js → bulk-category-panel-cH1ys5kO.js} +1 -1
- package/dist/client/assets/{calendar-DCvzWe_7.js → calendar-BQpxr9U0.js} +1 -1
- package/dist/client/assets/{capability-load-error-BPWNkWfC.js → capability-load-error-CTH97ggX.js} +1 -1
- package/dist/client/assets/{card-CHkDvr9O.js → card-BLG_NHGO.js} +1 -1
- package/dist/client/assets/category-editor-BHQIhQGg.js +1 -0
- package/dist/client/assets/{chat-context-CI2whHa1.js → chat-context-BUfN5f1j.js} +1 -1
- package/dist/client/assets/{checkbox-BSEtc01G.js → checkbox-CZHsALa1.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Bb23pwY4.js → cli-auth-success-yHMlAPub.js} +1 -1
- package/dist/client/assets/{collection-detail-B0Zgy7Ob.js → collection-detail-DJ1sHjvZ.js} +1 -1
- package/dist/client/assets/{collection-display-button-C6oMLPQY.js → collection-display-button-C3BbYVHE.js} +1 -1
- package/dist/client/assets/{collection-search-DGOwHYSB.js → collection-search-DEo602JZ.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-dKvZq1Le.js → collection-table-wrapper-BJzgoKXt.js} +1 -1
- package/dist/client/assets/{collection-tabs-jDy30S9h.js → collection-tabs-Be6SPIzC.js} +1 -1
- package/dist/client/assets/{command-BpX9vYDN.js → command-DwyW0E0E.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-DMp9zppd.js → commerce-onboarding-CqiU1YyK.js} +1 -1
- package/dist/client/assets/{companions-core-Clem2qTA.js → companions-core-Bu6m_MnX.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-CJWfZbtR.js → connect-desktop-dialog-BM9OSXkL.js} +1 -1
- package/dist/client/assets/{connection-card-CB_IRhs2.js → connection-card-hlJARyGf.js} +1 -1
- package/dist/client/assets/{connection-detail-B6Xjo5Ql.js → connection-detail-B-fe2OGW.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-5SZwR200.js → connection-form-helpers-C97oF9aC.js} +1 -1
- package/dist/client/assets/{connections-B91jfg3e.js → connections-CzL0Fg0w.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-Hh2FYfwA.js → decopilot-sse-pool-Ca33ciGa.js} +1 -1
- package/dist/client/assets/{dialog-TaEY2Kx_.js → dialog-wi_xqgMH.js} +1 -1
- package/dist/client/assets/{domain-settings-DYzdwum7.js → domain-settings-C7666gyZ.js} +1 -1
- package/dist/client/assets/{drawer-67IpHpGQ.js → drawer-uoCSSBpG.js} +1 -1
- package/dist/client/assets/{dropdown-menu-LEcMeufE.js → dropdown-menu-BeaFFsLo.js} +1 -1
- package/dist/client/assets/{empty-state-BTjg_Aje.js → empty-state-CkJIZNRq.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Q7qhs3WT.js → extract-connection-data-CbgBM41Z.js} +1 -1
- package/dist/client/assets/{file-explorer-BANMUbbn.js → file-explorer-CehpOoWZ.js} +2 -2
- package/dist/client/assets/{file-type-icon-YUUkD6y6.js → file-type-icon-08GOP1yb.js} +1 -1
- package/dist/client/assets/{files-CYJC201y.js → files-Skqbompo.js} +1 -1
- package/dist/client/assets/{form-1PRNTVHF.js → form-DRM9Nd2h.js} +1 -1
- package/dist/client/assets/{general-BSy3MbQh.js → general-DNi5xWId.js} +1 -1
- package/dist/client/assets/{github-repo-picker-DljOfDjQ.js → github-repo-picker--3WyUyqJ.js} +1 -1
- package/dist/client/assets/{hooks-DFqR8Hvs.js → hooks-K28NflSF.js} +1 -1
- package/dist/client/assets/{index-D3WGUwBg.js → index-8TKzIPum.js} +1 -1
- package/dist/client/assets/{index-DwzbZGxY.js → index-BAWq_ivW.js} +1 -1
- package/dist/client/assets/{index-BEfXtmlR.js → index-BEewZISh.js} +1 -1
- package/dist/client/assets/{index-DcBf7T10.js → index-BQuI5Ql6.js} +1 -1
- package/dist/client/assets/{index-DMy3809p.js → index-BrCDnjU4.js} +2 -2
- package/dist/client/assets/{index-Dc6-ECoH.js → index-Bx-Uas1I.js} +1 -1
- package/dist/client/assets/{index-CySe4zj6.js → index-ChgJTpOd.js} +28 -28
- package/dist/client/assets/{index-B-Mwpftd.js → index-Cl7UvvNn.js} +1 -1
- package/dist/client/assets/{index-AmzNJaB8.js → index-Cw_8yQvh.js} +3 -3
- package/dist/client/assets/{index-CTIkkajs.js → index-D9UiFD96.js} +1 -1
- package/dist/client/assets/{index-Cq8TJSFy.js → index-DECSG44m.js} +1 -1
- package/dist/client/assets/{index-CMc5FLjP.js → index-DINlLJAQ.js} +1 -1
- package/dist/client/assets/{index-VazNHrO3.js → index-DPoJjXEa.js} +3 -3
- package/dist/client/assets/{index-Df64NLin.js → index-DwnK0oGV.js} +1 -1
- package/dist/client/assets/{index-redirect-D-Ph1F5B.js → index-redirect-DxaaB9yW.js} +1 -1
- package/dist/client/assets/{input-BC7Dr3Si.js → input-BK2liI0T.js} +1 -1
- package/dist/client/assets/{integration-icon-CHnUYdE2.js → integration-icon-Cf8ji5g2.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-BCDss0Ag.js → invite-member-dialog-HJIWoeKE.js} +1 -1
- package/dist/client/assets/{label-BvlvBg6i.js → label-Bkaroq0d.js} +1 -1
- package/dist/client/assets/{layout-D1a-gG8D.js → layout-DrQq0RV5.js} +1 -1
- package/dist/client/assets/{login-DKtieVJi.js → login-qWavYpsg.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DCuASqM5.js → mcp-oauth-DaXBZyPi.js} +1 -1
- package/dist/client/assets/{members-D2hWirsM.js → members-CdTtfKe1.js} +1 -1
- package/dist/client/assets/{monaco-editor-CYnhOzfS.js → monaco-editor-SoVMtDeT.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Dckp61zH.js → monitoring-stats-row-CfU4rsZk.js} +1 -1
- package/dist/client/assets/{multi-select-Dqhtcm0q.js → multi-select-Z-uu-vfX.js} +1 -1
- package/dist/client/assets/{oauth-callback-3dx2KsmZ.js → oauth-callback-CVCpH44p.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CwMFtKTo.js → oauth-callback-ai-provider-C56ru2u0.js} +1 -1
- package/dist/client/assets/{onboarding-NaHufSFJ.js → onboarding-I3jH2Gz2.js} +1 -1
- package/dist/client/assets/{org-install-CWxIOz3N.js → org-install-Dw58jn4e.js} +1 -1
- package/dist/client/assets/{org-layout-DoB6J4nI.js → org-layout-a_LVkBS6.js} +1 -1
- package/dist/client/assets/{organization-choice-BDeZRMou.js → organization-choice-DAGM_ITi.js} +1 -1
- package/dist/client/assets/{orgs-Dl1t3n-h.js → orgs-C32p0dJQ.js} +1 -1
- package/dist/client/assets/{page-seo-form-CvhgO2i7.js → page-seo-form-DlWtWY3W.js} +1 -1
- package/dist/client/assets/page-seo-sheet-CNRoD7yv.js +1 -0
- package/dist/client/assets/{popover-kRVVAZo0.js → popover-BdQbKkTU.js} +1 -1
- package/dist/client/assets/{post-editor-BgaavV-R.js → post-editor-B3xFvPXY.js} +1 -1
- package/dist/client/assets/{primitives-BjxnNwxz.js → primitives-5ovvMnlp.js} +1 -1
- package/dist/client/assets/{profile-CS-vUC_g.js → profile-wjTnPIge.js} +1 -1
- package/dist/client/assets/project-app-view-DK1IYKqS.js +1 -0
- package/dist/client/assets/record-editor-ZgN_l7HL.js +1 -0
- package/dist/client/assets/redirect-editor-CZlLmxsK.js +1 -0
- package/dist/client/assets/registry-BIfglq2R.js +2 -0
- package/dist/client/assets/{registry-layout-BTIzKxjo.js → registry-layout-P1IG26li.js} +1 -1
- package/dist/client/assets/{reports-BH6X5RYl.js → reports-NiTChBU-.js} +1 -1
- package/dist/client/assets/{require-capability-BD4RU70c.js → require-capability-BozVcgJR.js} +1 -1
- package/dist/client/assets/{required-auth-layout-D_qObw7l.js → required-auth-layout-Cy8O4p-X.js} +1 -1
- package/dist/client/assets/{reset-password-D7kfSNx6.js → reset-password-Dz0aoJEW.js} +1 -1
- package/dist/client/assets/{roles-BWRXFovz.js → roles-BSEXDOfN.js} +1 -1
- package/dist/client/assets/{search-input-D77R2Qlj.js → search-input-Gt_oBZDk.js} +1 -1
- package/dist/client/assets/{secrets-DRHUCmR6.js → secrets-BKKbpp2X.js} +1 -1
- package/dist/client/assets/{sections-editor-D4CZD-ha.js → sections-editor-DYdwEUT2.js} +1 -1
- package/dist/client/assets/{select-BuKjeCrb.js → select-BmfPhvm3.js} +1 -1
- package/dist/client/assets/{select-model-ByV9smVN.js → select-model-DE7wBdGx.js} +1 -1
- package/dist/client/assets/{self-tool-result-vB7nwgNH.js → self-tool-result-BpY52zK-.js} +1 -1
- package/dist/client/assets/{seo-editor-DfN4TiKO.js → seo-editor-DcI0JfFy.js} +1 -1
- package/dist/client/assets/{settings-layout-Bkj4VHZ3.js → settings-layout-Dk5X7Pq-.js} +1 -1
- package/dist/client/assets/{settings-section-DN4ehJk4.js → settings-section-HyBv0Br2.js} +1 -1
- package/dist/client/assets/{shell-controls-B2nL6uAe.js → shell-controls-NB0EIVG5.js} +1 -1
- package/dist/client/assets/{shell-layout-Ck7st-mc.js → shell-layout-DtaVomjI.js} +1 -1
- package/dist/client/assets/{sidebar-BudM_B2c.js → sidebar-v1Veu6Mz.js} +1 -1
- package/dist/client/assets/{skeleton-BmuNVVtD.js → skeleton-DU-meTLF.js} +1 -1
- package/dist/client/assets/{sso-BR_gYJ5g.js → sso-B_xmmAo-.js} +1 -1
- package/dist/client/assets/{store-R-81SNCO.js → store-H5zpMdDg.js} +1 -1
- package/dist/client/assets/store-registry-DCuv5Z10.js +2 -0
- package/dist/client/assets/{studio-tools-JQnAx-yt.js → studio-tools-GlRU44yy.js} +1 -1
- package/dist/client/assets/{switch-IxJ12UUN.js → switch--GdGuUz0.js} +1 -1
- package/dist/client/assets/{table-BRS5-Ghi.js → table-BZGxEEcI.js} +1 -1
- package/dist/client/assets/{tabs-D-BkrQS_.js → tabs-BLc7ey3d.js} +1 -1
- package/dist/client/assets/{textarea-DILcuTPp.js → textarea-VMuglGnh.js} +1 -1
- package/dist/client/assets/{toggle-group-BJlPDeJt.js → toggle-group-DeXtZ71s.js} +1 -1
- package/dist/client/assets/{toolbar-DPVCX4kM.js → toolbar-CGdj-Aoh.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-B_F-FzG4.js → toolbar-icon-button-Dt4AuZg5.js} +1 -1
- package/dist/client/assets/{tooltip-plNKOrsB.js → tooltip-Bwc3ojNE.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CZ05oGju.js → use-ai-providers-BezsGGir.js} +1 -1
- package/dist/client/assets/{use-automations-Br3sumHI.js → use-automations-VGIncgfa.js} +1 -1
- package/dist/client/assets/{use-autosave-ALvIsg84.js → use-autosave-BjFnrRhj.js} +1 -1
- package/dist/client/assets/{use-capability-PzwH7JXT.js → use-capability-VxZoeVQW.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BrUn8fxq.js → use-clock-tick-BQjHXBbr.js} +1 -1
- package/dist/client/assets/{use-collections-Du2dq1-S.js → use-collections-CpijbtDq.js} +1 -1
- package/dist/client/assets/{use-connection-DyhWyxCB.js → use-connection-_VQuKQfa.js} +1 -1
- package/dist/client/assets/{use-copy-Dmy-ICQK.js → use-copy-CaqOPH_i.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DXieltJG.js → use-create-virtual-mcp-C-wFNqYl.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DafilSTq.js → use-debounced-autosave-Dq3bXxfq.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Ky3kW6jR.js → use-debounced-value-pMoFqSlQ.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CwFgwpqm.js → use-deco-credits-IeSjz5KX.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-C0jxY0C-.js → use-decopilot-events-BOW1Vt4h.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DrwmEYHq.js → use-delete-connection-BfzLXQHB.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CqKzySYh.js → use-deployment-admin-Cse018WL.js} +1 -1
- package/dist/client/assets/{use-file-configs-BSpSzmcW.js → use-file-configs-DY3QqM07.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-HqU26K5r.js → use-infinite-scroll-CMOdRv3n.js} +1 -1
- package/dist/client/assets/{use-join-requests-Bkp1mE_c.js → use-join-requests-Bo655scJ.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-bqW_b4Be.js → use-mcp-auth-status-nxsnL25C.js} +1 -1
- package/dist/client/assets/{use-mcp-client-WisUNJdN.js → use-mcp-client-mPdv1yS9.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-gOgcsP4u.js → use-mcp-tools-yKBIbpDZ.js} +1 -1
- package/dist/client/assets/{use-members-C6oejWDG.js → use-members-CBgzwnXf.js} +1 -1
- package/dist/client/assets/{use-mobile-D6QzYWiJ.js → use-mobile-DkJSnM0V.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DWfbKHDA.js → use-navigate-to-agent-DYjykFw4.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-tox-aigT.js → use-org-auth-client-B2j2QNze.js} +1 -1
- package/dist/client/assets/{use-org-sso-COXxV9mp.js → use-org-sso-B2K2bHfl.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Ev36QIQK.js → use-organization-roles-C663nB0l.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DN87XZ2w.js → use-organization-settings-DJKETfsi.js} +1 -1
- package/dist/client/assets/{use-registry-app-CY_WkCby.js → use-registry-app-Xhe5Li50.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CRXkMAIJ.js → use-registry-connections-CsNyyCir.js} +1 -1
- package/dist/client/assets/{use-secrets-ANIEIjB0.js → use-secrets-CgNQqmzh.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CnhlraH9.js → use-status-sounds-CZgNaZaP.js} +1 -1
- package/dist/client/assets/{use-t-CvXQXPPS.js → use-t-Cn2A2Kmg.js} +1 -1
- package/dist/client/assets/{use-view-mode-DwWWJ97a.js → use-view-mode-BDZ2-l64.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Bf2VrYbg.js → use-virtual-mcp-DiByH1e6.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CN6MG3DE.js +1 -0
- package/dist/client/assets/{useRouterState-Cin9t5kL.js → useRouterState-0VfC7jN_.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BZDNxfLI.js +1 -0
- package/dist/client/assets/{users-C3TOmS20.js → users-Q0fLB5ZL.js} +1 -1
- package/dist/client/assets/{variant-calendar-BJlmAPbT.js → variant-calendar-B4l2JDA7.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BjgWJl0k.js → view-mode-toggle-BTc1II9-.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/category-editor-BpJ1RcO2.js +0 -1
- package/dist/client/assets/page-seo-sheet-D91cUBGQ.js +0 -1
- package/dist/client/assets/project-app-view-CLh8fTNH.js +0 -1
- package/dist/client/assets/record-editor-BB2C-EZB.js +0 -1
- package/dist/client/assets/redirect-editor-9mgrgA0Z.js +0 -1
- package/dist/client/assets/registry-D1ROE5Qm.js +0 -2
- package/dist/client/assets/store-registry-DeNKA--a.js +0 -2
- package/dist/client/assets/useInfiniteQuery-B1xeWAsJ.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CoSrihVf.js +0 -1
package/dist/client/assets/{automation-list-row-DxqyB35q.js → automation-list-row-Cn3ij2PQ.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as E,r as F,l as $,j as t,B as K}from"./index-
|
|
1
|
+
import{c as E,r as F,l as $,j as t,B as K}from"./index-DPoJjXEa.js";import{b as O,d as B,e as I,g as L,c as H,A as V,a as q,f as G}from"./alert-dialog-DvL7lELx.js";import{a as J,D as Q,c as U,d as W}from"./dropdown-menu-BeaFFsLo.js";import{s as X}from"./Stars02-CvaQ7G_U.js";import{i as Y}from"./DotsVertical-CrMS0ntC.js";import{s as Z}from"./Trash01-BO8Lzt2t.js";import{i as ee}from"./Zap-CCM6DeYE.js";import{a as te}from"./use-virtual-mcp-DiByH1e6.js";import{A as se}from"./agent-icon-1myMQ7Rr.js";import{u as ne}from"./use-automations-VGIncgfa.js";function he(a){const e=E.c(53),{automation:s,showAgent:n,onClick:r}=a,{remove:i}=ne(),[P,S]=F.useState(!1),o=te(n?s.virtual_mcp_id:void 0);let D;e[0]!==s.id||e[1]!==i?(D=()=>{i.mutate(s.id),S(!1)},e[0]=s.id,e[1]=i,e[2]=D):D=e[2];const z=D;let A;e[3]!==r?(A=l=>{l.target===l.currentTarget&&(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),r())},e[3]=r,e[4]=A):A=e[4];const T=A,M=s.active&&s.trigger_count>0?"bg-success":"bg-muted-foreground/40";let c;e[5]!==M?(c=$("inline-block size-2 rounded-full shrink-0",M),e[5]=M,e[6]=c):c=e[6];const R=s.active&&s.trigger_count>0?"Active":s.active?"No triggers configured":"Paused";let m;e[7]!==c||e[8]!==R?(m=t.jsx("span",{className:c,"aria-label":R}),e[7]=c,e[8]=R,e[9]=m):m=e[9];let u;e[10]!==o?.icon||e[11]!==o?.title||e[12]!==s.name||e[13]!==n?(u=n&&t.jsx(se,{icon:o?.icon??null,name:o?.title??s.name,size:"xs",className:"shrink-0"}),e[10]=o?.icon,e[11]=o?.title,e[12]=s.name,e[13]=n,e[14]=u):u=e[14];let d;e[15]!==s.name?(d=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:s.name}),e[15]=s.name,e[16]=d):d=e[16];let g;e[17]!==o||e[18]!==n?(g=n&&o&&t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:["· ",o.title]}),e[17]=o,e[18]=n,e[19]=g):g=e[19];let f;e[20]!==d||e[21]!==g?(f=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[d,g]}),e[20]=d,e[21]=g,e[22]=f):f=e[22];let x;e[23]!==s.nearest_next_run_at||e[24]!==s.trigger_count?(x=t.jsx(oe,{triggerCount:s.trigger_count,nextRunAt:s.nearest_next_run_at}),e[23]=s.nearest_next_run_at,e[24]=s.trigger_count,e[25]=x):x=e[25];let p;e[26]!==f||e[27]!==x?(p=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[f,x]}),e[26]=f,e[27]=x,e[28]=p):p=e[28];let N;e[29]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(J,{asChild:!0,children:t.jsx(K,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100 transition-opacity",children:t.jsx(Y,{size:16})})}),e[29]=N):N=e[29];let y;e[30]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("div",{onClick:ie,onKeyDown:re,role:"presentation",className:"shrink-0",children:t.jsxs(Q,{children:[N,t.jsx(U,{align:"end",children:t.jsxs(W,{variant:"destructive",onClick:l=>{l.stopPropagation(),S(!0)},children:[t.jsx(Z,{size:16}),"Delete"]})})]})}),e[30]=y):y=e[30];let h;e[31]!==T||e[32]!==r||e[33]!==p||e[34]!==m||e[35]!==u?(h=t.jsxs("div",{role:"button",tabIndex:0,onClick:r,onKeyDown:T,className:"group w-full flex items-center gap-3 px-4 py-3 border-b border-border text-left hover:bg-muted/50 transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[m,u,p,y]}),e[31]=T,e[32]=r,e[33]=p,e[34]=m,e[35]=u,e[36]=h):h=e[36];let w;e[37]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(H,{children:"Delete automation?"}),e[37]=w):w=e[37];let j;e[38]!==s.name?(j=t.jsxs(O,{children:[w,t.jsxs(B,{children:["This removes"," ",t.jsx("span",{className:"font-medium text-foreground",children:s.name})," ","and all of its triggers. This action cannot be undone."]})]}),e[38]=s.name,e[39]=j):j=e[39];let C;e[40]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(V,{children:"Cancel"}),e[40]=C):C=e[40];let _;e[41]!==z||e[42]!==i.isPending?(_=t.jsxs(I,{children:[C,t.jsx(L,{onClick:z,disabled:i.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[41]=z,e[42]=i.isPending,e[43]=_):_=e[43];let v;e[44]!==j||e[45]!==_?(v=t.jsxs(q,{children:[j,_]}),e[44]=j,e[45]=_,e[46]=v):v=e[46];let b;e[47]!==P||e[48]!==v?(b=t.jsx(G,{open:P,onOpenChange:S,children:v}),e[47]=P,e[48]=v,e[49]=b):b=e[49];let k;return e[50]!==h||e[51]!==b?(k=t.jsxs(t.Fragment,{children:[h,b]}),e[50]=h,e[51]=b,e[52]=k):k=e[52],k}function re(a){return a.stopPropagation()}function ie(a){return a.stopPropagation()}function oe(a){const e=E.c(4),{triggerCount:s,nextRunAt:n}=a;if(s===0){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("span",{className:"text-xs text-muted-foreground",children:"No triggers configured"}),e[0]=i):i=e[0],i}let r;return e[1]!==n||e[2]!==s?(r=t.jsx("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground min-w-0",children:n?t.jsxs(t.Fragment,{children:[t.jsx(X,{size:12,className:"shrink-0"}),t.jsxs("span",{className:"truncate",children:["Next run ",new Date(n).toLocaleString()]})]}):t.jsxs(t.Fragment,{children:[t.jsx(ee,{size:12,className:"shrink-0"}),t.jsxs("span",{className:"truncate",children:[s," trigger",s===1?"":"s"]})]})}),e[1]=n,e[2]=s,e[3]=r):r=e[3],r}export{he as A};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as _,c as P,J as _i,j as a,B as tt,I as ur,H as Ai,M as Ii,l as q,p as Ei,aR as Li,aO as Ge,aV as Mi,aU as Ke,ba as Et,aS as it,bJ as Br,aQ as Ur,C as He,n as Ri,d as Pi,K as ke,t as Yn,m as Lt,b as mt,E as Wr,aL as Kr,bK as ks,aT as $i,bL as Qe}from"./index-VazNHrO3.js";import{e as Oi}from"./select-BuKjeCrb.js";import{u as Vr}from"./useInfiniteQuery-B1xeWAsJ.js";import{a as Gr,u as Di}from"./use-connection-DyhWyxCB.js";import{j as Hi,u as Ss,b as zi,i as Fi,a as Bi,S as Ui}from"./use-mcp-client-WisUNJdN.js";import{u as Wi}from"./use-virtual-mcp-Bf2VrYbg.js";import{C as Ki}from"./card-CHkDvr9O.js";import{o as qr,m as Xr,p as js,q as ws}from"./sidebar-BudM_B2c.js";import{c as Yr,d as Qr,a as Tn,e as ye,b as Jr,T as ve}from"./table-BRS5-Ghi.js";import{E as Qn}from"./empty-state-BTjg_Aje.js";import{u as Ts}from"./use-infinite-scroll-HqU26K5r.js";import{u as Vi}from"./use-members-C6oejWDG.js";import{u as Zr,S as ct}from"./use-clock-tick-BrUn8fxq.js";import{e as Gi}from"./use-automations-Br3sumHI.js";import{u as eo}from"./studio-tools-JQnAx-yt.js";import{u as qi}from"./useSuspenseInfiniteQuery-CoSrihVf.js";import{A as to}from"./avatar-C6qQgELM.js";import{t as Wt}from"./ChevronDown-DyjAqI3m.js";import{i as Ns,n as Jn}from"./ChevronUp-DAExiZbv.js";import{t as Xi,a as no,n as Cs}from"./Tool02-CSWTlCLd.js";import{f as Yi,aA as Qi,aB as Ji,Z as Zi,x as ea,aC as ta,a4 as na,ak as sa,k as ra,ay as so,aD as oa,aE as ia,A as ro,aF as Le,aG as aa,n as la}from"./agent-icon-DHXwUm9P.js";import{t as Nn}from"./Stars01-DNB2jBIt.js";import{i as oo,b as Rt}from"./XCircle-CrP1StfT.js";import{i as dr}from"./ChevronRight-Df2B68Ds.js";import{a as io}from"./Copy01-yl04KoRE.js";import{b as Ve,t as _s,c as fr}from"./format-time-BnbuEtat.js";import{u as ao}from"./use-copy-Dmy-ICQK.js";import{T as nt,a as st,b as rt}from"./tooltip-plNKOrsB.js";import{M as As,I as lo,F as ca}from"./file-type-icon-YUUkD6y6.js";import{R as ua,c as da,r as fa,g as ma}from"./hooks-DFqR8Hvs.js";import{S as pa,h as pt,m as ha,c as Is,d as ga,b as xa}from"./chat-context-CI2whHa1.js";import{c as ba}from"./monaco-editor-CYnhOzfS.js";import{g as co,M as ya}from"./index-CMc5FLjP.js";import{f as va,n as ka,o as Sa}from"./tab-id-BijBBRwE.js";import{N as fe,R as ja,k as wa,a as Se,l as Ta,F as mr,S as uo,T as Ze,m as Na,n as Es,D as Nt,h as Cn,o as Ct,P as Te,p as Ca,e as Ne,q as _a,r as Aa,s as Ia,v as fo,w as ut,x as ae,y as ht,z as ot,A as dt,B as Zn,G as Ea,H as La,I as Ma,J as Ra,K as Pa,L as $a,O as Oa,Q as mo,U as es,V as Da,W as Ha,X as po,Y as za,Z as Fa,_ as pr,t as Ba,$ as Ce,a0 as gt,c as Ua,u as Wa,M as Ka,d as Va}from"./calendar-DCvzWe_7.js";import{i as ho}from"./AlertCircle-CF1-Ouso.js";import{s as Ga}from"./Eye-BFJNvxsd.js";import{s as Kt,t as go}from"./Star01-DwAl9-p_.js";import{s as qa}from"./XClose-CjGp1c1G.js";import{n as ts}from"./ZapSquare-C6uVpqjQ.js";import{n as xo,i as Xa}from"./Globe01-CrriuSxO.js";import{c as Ya,b as Qa}from"./Tool01-CSRypqfM.js";import{i as hr,a as Ja}from"./ZoomOut-D_KRNWSe.js";import{i as yt}from"./Monitor01-B6UVUJyc.js";import{i as Za}from"./SearchMd-MXpFHXYg.js";import{i as el}from"./Upload01-CnCVZJAv.js";import{u as tl,a as nl}from"./shell-layout-Ck7st-mc.js";import{a as Pt}from"./Image01-BYSIhLh2.js";import{n as bo}from"./LinkExternal01-BRIrxBM1.js";import{I as qe}from"./integration-icon-CHnUYdE2.js";import{i as sl}from"./ArrowUpRight-Bxfx0mGn.js";import{a as Ls}from"./Users03-DTELiT5U.js";import{a as Me}from"./Palette-C48f3v4Y.js";import{c as yo}from"./use-navigate-to-agent-DWfbKHDA.js";import{a as rl}from"./Stars02-DcCuWVPa.js";import{g as ol}from"./AreaChart-C6eOWyou.js";import{a as il,D as al,c as ll,d as cl,e as ul}from"./dialog-TaEY2Kx_.js";import{a as dl,F as fl,b as ml,c as pl,d as hl,f as gl}from"./form-1PRNTVHF.js";import{I as xl}from"./input-BC7Dr3Si.js";const bl={openrouter:t=>{const e=t?.openrouter;return typeof e=="object"&&e!==null&&"usage"in e&&typeof e.usage=="object"&&e.usage!==null&&"cost"in e.usage&&typeof e.usage.cost=="number"?e.usage.cost:null}};function vo(t){if(!t?.providerMetadata)return 0;for(const e of Object.values(bl)){const n=e(t.providerMetadata);if(n!==null)return n}return 0}function ko(){return{inputTokens:0,outputTokens:0,reasoningTokens:0,totalTokens:0,cost:0,cacheReadTokens:0,cacheWriteTokens:0}}function So(t,e){if(!e)return t;const n=e.inputTokenDetails?.cacheReadTokens??e.cachedInputTokens??0,s=e.inputTokenDetails?.cacheWriteTokens??0;return{inputTokens:t.inputTokens+(e.inputTokens??0),outputTokens:t.outputTokens+(e.outputTokens??0),reasoningTokens:t.reasoningTokens+(e.reasoningTokens??0),totalTokens:t.totalTokens+(e.totalTokens??0),cost:t.cost+vo(e),cacheReadTokens:t.cacheReadTokens+n,cacheWriteTokens:t.cacheWriteTokens+s}}function Ep(t){return t.reduce((e,n)=>So(e,n.metadata?.usage),ko())}const yl={damping:.7,stiffness:.05,mass:1.25},vl=70,kl=1e3/60,Sl=350;let _n=!1;globalThis.document?.addEventListener("mousedown",()=>{_n=!0});globalThis.document?.addEventListener("mouseup",()=>{_n=!1});globalThis.document?.addEventListener("click",()=>{_n=!1});const jl=(t={})=>{const[e,n]=_.useState(!1),[s,r]=_.useState(t.initial!==!1),[o,i]=_.useState(!1),l=_.useRef(null);l.current=t;const u=_.useCallback(()=>{if(!_n)return!1;const y=window.getSelection();if(!y||!y.rangeCount)return!1;const v=y.getRangeAt(0);return v.commonAncestorContainer.contains(x.current)||x.current?.contains(v.commonAncestorContainer)},[]),c=_.useCallback(y=>{d.isAtBottom=y,r(y)},[]),m=_.useCallback(y=>{d.escapedFromLock=y,n(y)},[]),d=_.useMemo(()=>{let y;return{escapedFromLock:e,isAtBottom:s,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return x.current?.scrollTop??0},set scrollTop(v){if(x.current){const{scrollBehavior:k}=getComputedStyle(x.current);k!=="auto"&&(x.current.style.scrollBehavior="auto"),x.current.scrollTop=v,d.ignoreScrollToTop=x.current.scrollTop,k!=="auto"&&(x.current.style.scrollBehavior=k)}},get targetScrollTop(){return!x.current||!b.current?0:x.current.scrollHeight-1-x.current.clientHeight},get calculatedTargetScrollTop(){if(!x.current||!b.current)return 0;const{targetScrollTop:v}=this;if(!t.targetScrollTop)return v;if(y?.targetScrollTop===v)return y.calculatedScrollTop;const k=Math.max(Math.min(t.targetScrollTop(v,{scrollElement:x.current,contentElement:b.current}),v),0);return y={targetScrollTop:v,calculatedScrollTop:k},requestAnimationFrame(()=>{y=void 0}),k},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=vl}}},[]),f=_.useCallback((y={})=>{typeof y=="string"&&(y={animation:y}),y.preserveScrollPosition||c(!0);const v=Date.now()+(Number(y.wait)||0),k=On(l.current,y.animation),{ignoreEscapes:j=!1}=y;let S,w=d.calculatedTargetScrollTop;y.duration instanceof Promise?y.duration.finally(()=>{S=Date.now()}):S=v+(y.duration??0);const T=async()=>{const N=new Promise(requestAnimationFrame).then(()=>{if(!d.isAtBottom)return d.animation=void 0,!1;const{scrollTop:C}=d,I=performance.now(),M=(I-(d.lastTick??I))/kl;if(d.animation||(d.animation={behavior:k,promise:N,ignoreEscapes:j}),d.animation.behavior===k&&(d.lastTick=I),u()||v>Date.now())return T();if(C<Math.min(w,d.calculatedTargetScrollTop)){if(d.animation?.behavior===k){if(k==="instant")return d.scrollTop=d.calculatedTargetScrollTop,T();d.velocity=(k.damping*d.velocity+k.stiffness*d.scrollDifference)/k.mass,d.accumulated+=d.velocity*M,d.scrollTop+=d.accumulated,d.scrollTop!==C&&(d.accumulated=0)}return T()}return S>Date.now()?(w=d.calculatedTargetScrollTop,T()):(d.animation=void 0,d.scrollTop<d.calculatedTargetScrollTop?f({animation:On(l.current,l.current.resize),ignoreEscapes:j,duration:Math.max(0,S-Date.now())||void 0}):d.isAtBottom)});return N.then(C=>(requestAnimationFrame(()=>{d.animation||(d.lastTick=void 0,d.velocity=0)}),C))};return y.wait!==!0&&(d.animation=void 0),d.animation?.behavior===k?d.animation.promise:T()},[c,u,d]),p=_.useCallback(()=>{m(!0),c(!1)},[m,c]),h=_.useCallback(({target:y})=>{if(y!==x.current)return;const{scrollTop:v,ignoreScrollToTop:k}=d;let{lastScrollTop:j=v}=d;d.lastScrollTop=v,d.ignoreScrollToTop=void 0,k&&k>v&&(j=k),i(d.isNearBottom),setTimeout(()=>{if(d.resizeDifference||v===k)return;if(u()){m(!0),c(!1);return}const S=v>j,w=v<j;if(d.animation?.ignoreEscapes){d.scrollTop=j;return}w&&(m(!0),c(!1)),S&&m(!1),!d.escapedFromLock&&d.isNearBottom&&c(!0)},1)},[m,c,u,d]),g=_.useCallback(({target:y,deltaY:v})=>{let k=y;for(;!["scroll","auto"].includes(getComputedStyle(k).overflow);){if(!k.parentElement)return;k=k.parentElement}k===x.current&&v<0&&x.current.scrollHeight>x.current.clientHeight&&!d.animation?.ignoreEscapes&&(m(!0),c(!1))},[m,c,d]),x=gr(y=>{x.current?.removeEventListener("scroll",h),x.current?.removeEventListener("wheel",g),y?.addEventListener("scroll",h,{passive:!0}),y?.addEventListener("wheel",g,{passive:!0})},[]),b=gr(y=>{if(d.resizeObserver?.disconnect(),d.resizeObserver=void 0,!y)return;let v;d.resizeObserver=new ResizeObserver(([k])=>{const{height:j}=k.contentRect,S=j-(v??j);if(d.resizeDifference=S,d.scrollTop>d.targetScrollTop&&(d.scrollTop=d.targetScrollTop),i(d.isNearBottom),S>=0){const w=On(l.current,v?l.current.resize:l.current.initial);f({animation:w,wait:!0,preserveScrollPosition:!0,duration:w==="instant"?void 0:Sl})}else d.isNearBottom&&(m(!1),c(!0));v=j,requestAnimationFrame(()=>{setTimeout(()=>{d.resizeDifference===S&&(d.resizeDifference=0)},1)})}),d.resizeObserver?.observe(y)},[]);return{contentRef:b,scrollRef:x,scrollToBottom:f,stopScroll:p,isAtBottom:s||o,isNearBottom:o,escapedFromLock:e,state:d}};function gr(t,e){const n=_.useCallback(s=>(n.current=s,t(s)),e);return n}const $n=new Map;function On(...t){const e={...yl};let n=!1;for(const r of t){if(r==="instant"){n=!0;continue}typeof r=="object"&&(n=!1,e.damping=r.damping??e.damping,e.stiffness=r.stiffness??e.stiffness,e.mass=r.mass??e.mass)}const s=JSON.stringify(e);return $n.has(s)||$n.set(s,Object.freeze(e)),n?"instant":$n.get(s)}function wl(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function Ms(t){if(t&&typeof t=="object"&&"gatewayClientId"in t&&typeof t.gatewayClientId=="string")return t.gatewayClientId}function Rs(t,e){if(!e)return t;const n=`${wl(e)}_`;return t.startsWith(n)?t.slice(n.length):t}function Tl(t,e){return Rs(t,e).replace(/[_-]/g," ").toLowerCase()}function Nl(t){const e={};for(const n of t?.arguments??[])e[n.name]=n.required?ur().min(1,"Required"):ur();return Ai(e)}function Cl(t,e){const n={};for(const s of t.arguments??[])n[s.name]=e?.[s.name]??"";return n}function _l(t){const e=P.c(67),{prompt:n,setPrompt:s,onSubmit:r,defaultValues:o}=t,i=_.useId();let l,u;if(e[0]!==n){const R=Nl(n);u=Ii,l=_i(R),e[0]=n,e[1]=l,e[2]=u}else l=e[1],u=e[2];let c;e[3]!==o||e[4]!==n?(c=n?Cl(n,o):{},e[3]=o,e[4]=n,e[5]=c):c=e[5];let m;e[6]!==l||e[7]!==c?(m={resolver:l,defaultValues:c,mode:"onChange"},e[6]=l,e[7]=c,e[8]=m):m=e[8];const d=u(m);let f;e[9]!==n?.arguments?(f=n?.arguments??[],e[9]=n?.arguments,e[10]=f):f=e[10];const p=f;let h;e[11]!==d||e[12]!==r||e[13]!==s?(h=async R=>{await r(R),s(null),d.reset()},e[11]=d,e[12]=r,e[13]=s,e[14]=h):h=e[14];const g=h;let x;e[15]!==d||e[16]!==s?(x=R=>{R||(d.reset(),s(null))},e[15]=d,e[16]=s,e[17]=x):x=e[17];const b=x;if(!n)return null;let y;e[18]!==n._meta||e[19]!==n.name||e[20]!==n.title?(y=n.title||Tl(n.name,Ms(n._meta)),e[18]=n._meta,e[19]=n.name,e[20]=n.title,e[21]=y):y=e[21];let v;e[22]!==y?(v=a.jsx(il,{children:a.jsx("span",{className:"capitalize",children:y})}),e[22]=y,e[23]=v):v=e[23];let k;e[24]!==n.description?(k=n.description&&a.jsx("p",{className:"text-sm text-muted-foreground",children:n.description}),e[24]=n.description,e[25]=k):k=e[25];let j;e[26]!==k||e[27]!==v?(j=a.jsxs(al,{children:[v,k]}),e[26]=k,e[27]=v,e[28]=j):j=e[28];let S;e[29]!==d||e[30]!==g?(S=R=>{R.stopPropagation(),d.handleSubmit(g)(R)},e[29]=d,e[30]=g,e[31]=S):S=e[31];let w;if(e[32]!==p||e[33]!==d.control||e[34]!==d.formState.isSubmitting){let R;e[36]!==d.control||e[37]!==d.formState.isSubmitting?(R=D=>a.jsx(fl,{control:d.control,name:D.name,render:H=>{const{field:F}=H;return a.jsxs(ml,{children:[a.jsxs(pl,{className:"text-xs",children:[D.name,D.required?null:a.jsxs("span",{className:"text-muted-foreground font-normal",children:[" ","(optional)"]})]}),a.jsx(hl,{children:a.jsx(xl,{...F,value:F.value??"",required:D.required,placeholder:D.description??"",className:"h-9",disabled:d.formState.isSubmitting})}),a.jsx(gl,{})]})}},D.name),e[36]=d.control,e[37]=d.formState.isSubmitting,e[38]=R):R=e[38],w=p.map(R),e[32]=p,e[33]=d.control,e[34]=d.formState.isSubmitting,e[35]=w}else w=e[35];let T;e[39]!==b?(T=()=>b(!1),e[39]=b,e[40]=T):T=e[40];let N;e[41]!==d.formState.isSubmitting||e[42]!==T?(N=a.jsx(tt,{type:"button",variant:"ghost",onClick:T,disabled:d.formState.isSubmitting,children:"Cancel"}),e[41]=d.formState.isSubmitting,e[42]=T,e[43]=N):N=e[43];let C;e[44]!==d.formState.isSubmitting?(C=d.formState.isSubmitting?a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(pa,{size:"xs"}),"Loading..."]}):"Use prompt",e[44]=d.formState.isSubmitting,e[45]=C):C=e[45];let I;e[46]!==d.formState.isSubmitting||e[47]!==i||e[48]!==C?(I=a.jsx(tt,{type:"submit",form:i,disabled:d.formState.isSubmitting,children:C}),e[46]=d.formState.isSubmitting,e[47]=i,e[48]=C,e[49]=I):I=e[49];let M;e[50]!==N||e[51]!==I?(M=a.jsxs(ll,{children:[N,I]}),e[50]=N,e[51]=I,e[52]=M):M=e[52];let A;e[53]!==i||e[54]!==S||e[55]!==w||e[56]!==M?(A=a.jsxs("form",{id:i,className:"space-y-4 py-4",autoComplete:"off",onSubmit:S,children:[w,M]}),e[53]=i,e[54]=S,e[55]=w,e[56]=M,e[57]=A):A=e[57];let $;e[58]!==d||e[59]!==A?($=a.jsx(dl,{...d,children:A}),e[58]=d,e[59]=A,e[60]=$):$=e[60];let E;e[61]!==j||e[62]!==$?(E=a.jsxs(cl,{className:"sm:max-w-lg max-h-[80vh] overflow-y-auto",children:[j,$]}),e[61]=j,e[62]=$,e[63]=E):E=e[63];let O;return e[64]!==b||e[65]!==E?(O=a.jsx(ul,{open:!0,onOpenChange:b,children:E}),e[64]=b,e[65]=E,e[66]=O):O=e[66],O}const Al=/^mcp__[a-zA-Z0-9_-]+__/;function jo(t){return t.replace(Al,"")}function An(t){const e=P.c(18),{id:n,part:s,copyable:r,extraActions:o,alwaysShowActions:i,animate:l}=t,u=r===void 0?!1:r,c=i===void 0?!1:i,m=l===void 0?!1:l,{handleCopy:d}=ao(),[f,p]=_.useState(!1);let h;e[0]!==d||e[1]!==n||e[2]!==s.text?(h=async()=>{Ei("chat_message_copied",{message_id:n,chars:s.text.length}),await d(s.text),p(!0),setTimeout(()=>p(!1),2e3)},e[0]=d,e[1]=n,e[2]=s.text,e[3]=h):h=e[3];const g=h,x=u&&o,b=x||o;let y;e[4]!==m||e[5]!==n||e[6]!==s.text?(y=a.jsx(As,{id:n,text:s.text,animate:m}),e[4]=m,e[5]=n,e[6]=s.text,e[7]=y):y=e[7];let v;e[8]!==c||e[9]!==o||e[10]!==g||e[11]!==f||e[12]!==b||e[13]!==x?(v=b&&a.jsxs("div",{className:q("flex w-full items-center gap-2 text-sm text-muted-foreground transition-all duration-200 mt-1 py-1",c?"opacity-100":"opacity-0 pointer-events-none group-hover/part:opacity-100 group-hover/part:pointer-events-auto"),children:[o,x&&o&&a.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),x&&a.jsx("button",{type:"button",onClick:g,className:"text-muted-foreground [@media(hover:hover)]:hover:text-foreground transition-colors active:scale-[0.97]","aria-label":"Copy message",children:f?a.jsx(Ns,{className:"size-4"}):a.jsx(io,{className:"size-4"})})]}),e[8]=c,e[9]=o,e[10]=g,e[11]=f,e[12]=b,e[13]=x,e[14]=v):v=e[14];let k;return e[15]!==y||e[16]!==v?(k=a.jsxs("div",{className:"group/part relative",children:[y,v]}),e[15]=y,e[16]=v,e[17]=k):k=e[17],k}function Lp(t,e,n){t.chain().focus().insertContentAt(e,[Il(n),{type:"text",text:" "}]).run()}function Il(t){return{type:"file",attrs:t}}function El(t){const e=P.c(17),{node:n,selected:s,view:r}=t,{name:o,mimeType:i,data:l}=n.attrs,u=s&&r.editable;let c;e[0]!==i?(c=i.startsWith("image/"),e[0]=i,e[1]=c):c=e[1];const m=c,d=u&&"outline-2 outline-blue-300 outline-offset-0";let f;e[2]!==d?(f=q("px-1 py-1 rounded","inline-flex items-center gap-1","cursor-default select-none","text-xs font-light","bg-muted text-muted-foreground",d),e[2]=d,e[3]=f):f=e[3];let p;e[4]!==o?(p=a.jsx(nt,{asChild:!0,children:a.jsx("span",{children:o})}),e[4]=o,e[5]=p):p=e[5];let h;e[6]!==l||e[7]!==m||e[8]!==i||e[9]!==o?(h=a.jsx(st,{side:"top",className:"max-w-sm p-1.5",children:m?a.jsx("img",{src:`data:${i};base64,${l}`,alt:o,className:"max-w-full max-h-64 object-contain rounded"}):a.jsxs("div",{className:"text-xs",children:[a.jsx("div",{className:"font-medium",children:o}),a.jsx("div",{className:"text-muted-foreground mt-1",children:i})]})}),e[6]=l,e[7]=m,e[8]=i,e[9]=o,e[10]=h):h=e[10];let g;e[11]!==p||e[12]!==h?(g=a.jsxs(rt,{children:[p,h]}),e[11]=p,e[12]=h,e[13]=g):g=e[13];let x;return e[14]!==f||e[15]!==g?(x=a.jsx(wa,{className:f,children:g}),e[14]=f,e[15]=g,e[16]=x):x=e[16],x}const Ll=fe.create({name:"file",group:"inline",inline:!0,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id")||null,renderHTML:t=>t.id?{"data-id":t.id}:{}},name:{default:null,parseHTML:t=>t.getAttribute("data-name")||null,renderHTML:t=>t.name?{"data-name":t.name}:{}},mimeType:{default:null,parseHTML:t=>t.getAttribute("data-mime-type")||null,renderHTML:t=>t.mimeType?{"data-mime-type":t.mimeType}:{}},size:{default:0,parseHTML:t=>{const e=t.getAttribute("data-size");return e?Number.parseInt(e,10):0},renderHTML:t=>t.size?{"data-size":String(t.size)}:{}},data:{default:null,parseHTML:t=>t.getAttribute("data-data")||null,renderHTML:t=>t.data?{"data-data":t.data}:{}}}},parseHTML(){return[{tag:'span[data-type="file"]'}]},renderHTML({node:t,HTMLAttributes:e}){const n={"data-type":"file"};return t.attrs.id&&(n["data-id"]=t.attrs.id),t.attrs.name&&(n["data-name"]=t.attrs.name),t.attrs.mimeType&&(n["data-mime-type"]=t.attrs.mimeType),t.attrs.size&&(n["data-size"]=String(t.attrs.size)),t.attrs.data&&(n["data-data"]=t.attrs.data),["span",{...e,...n}]},renderText({node:t}){return`[${t.attrs.name??""}]`},addNodeView(){return ja(El)}});function Ml(t={}){return new Se({view(e){return new Rl(e,t)}})}class Rl{constructor(e,n){var s;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(s=n.width)!==null&&s!==void 0?s:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let o=i=>{this[r](i)};return e.dom.addEventListener(r,o),{name:r,handler:o}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,s,r=this.editorView.dom,o=r.getBoundingClientRect(),i=o.width/r.offsetWidth,l=o.height/r.offsetHeight;if(n){let d=e.nodeBefore,f=e.nodeAfter;if(d||f){let p=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(p){let h=p.getBoundingClientRect(),g=d?h.bottom:h.top;d&&f&&(g=(g+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let x=this.width/2*l;s={left:h.left,right:h.right,top:g-x,bottom:g+x}}}}if(!s){let d=this.editorView.coordsAtPos(this.cursorPos),f=this.width/2*i;s={left:d.left-f,right:d.left+f,top:d.top,bottom:d.bottom}}let u=this.editorView.dom.offsetParent;this.element||(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let c,m;if(!u||u==document.body&&getComputedStyle(u).position=="static")c=-pageXOffset,m=-pageYOffset;else{let d=u.getBoundingClientRect(),f=d.width/u.offsetWidth,p=d.height/u.offsetHeight;c=d.left-u.scrollLeft*f,m=d.top-u.scrollTop*p}this.element.style.left=(s.left-c)/i+"px",this.element.style.top=(s.top-m)/l+"px",this.element.style.width=(s.right-s.left)/i+"px",this.element.style.height=(s.bottom-s.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),s=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),r=s&&s.type.spec.disableDropCursor,o=typeof r=="function"?r(this.editorView,n,e):r;if(n&&!o){let i=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=Ta(this.editorView.state.doc,i,this.editorView.dragging.slice);l!=null&&(i=l)}this.setCursor(i),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class oe extends Ct{constructor(e){super(e,e)}map(e,n){let s=e.resolve(n.map(this.head));return oe.valid(s)?new oe(s):Ct.near(s)}content(){return uo.empty}eq(e){return e instanceof oe&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new oe(e.resolve(n.pos))}getBookmark(){return new Ps(this.anchor)}static valid(e){let n=e.parent;if(n.inlineContent||!Pl(e)||!$l(e))return!1;let s=n.type.spec.allowGapCursor;if(s!=null)return s;let r=n.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,n,s=!1){e:for(;;){if(!s&&oe.valid(e))return e;let r=e.pos,o=null;for(let i=e.depth;;i--){let l=e.node(i);if(n>0?e.indexAfter(i)<l.childCount:e.index(i)>0){o=l.child(n>0?e.indexAfter(i):e.index(i)-1);break}else if(i==0)return null;r+=n;let u=e.doc.resolve(r);if(oe.valid(u))return u}for(;;){let i=n>0?o.firstChild:o.lastChild;if(!i){if(o.isAtom&&!o.isText&&!Es.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*n),s=!1;continue e}break}o=i,r+=n;let l=e.doc.resolve(r);if(oe.valid(l))return l}return null}}}oe.prototype.visible=!1;oe.findFrom=oe.findGapCursorFrom;Ct.jsonID("gapcursor",oe);class Ps{constructor(e){this.pos=e}map(e){return new Ps(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return oe.valid(n)?new oe(n):Ct.near(n)}}function wo(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function Pl(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),s=t.node(e);if(n==0){if(s.type.spec.isolating)return!0;continue}for(let r=s.child(n-1);;r=r.lastChild){if(r.childCount==0&&!r.inlineContent||wo(r.type))return!0;if(r.inlineContent)return!1}}return!0}function $l(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),s=t.node(e);if(n==s.childCount){if(s.type.spec.isolating)return!0;continue}for(let r=s.child(n);;r=r.firstChild){if(r.childCount==0&&!r.inlineContent||wo(r.type))return!0;if(r.inlineContent)return!1}}return!0}function Ol(){return new Se({props:{decorations:Fl,createSelectionBetween(t,e,n){return e.pos==n.pos&&oe.valid(n)?new oe(n):null},handleClick:Hl,handleKeyDown:Dl,handleDOMEvents:{beforeinput:zl}}})}const Dl=Na({ArrowLeft:$t("horiz",-1),ArrowRight:$t("horiz",1),ArrowUp:$t("vert",-1),ArrowDown:$t("vert",1)});function $t(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(s,r,o){let i=s.selection,l=e>0?i.$to:i.$from,u=i.empty;if(i instanceof Ze){if(!o.endOfTextblock(n)||l.depth==0)return!1;u=!1,l=s.doc.resolve(e>0?l.after():l.before())}let c=oe.findGapCursorFrom(l,e,u);return c?(r&&r(s.tr.setSelection(new oe(c))),!0):!1}}function Hl(t,e,n){if(!t||!t.editable)return!1;let s=t.state.doc.resolve(e);if(!oe.valid(s))return!1;let r=t.posAtCoords({left:n.clientX,top:n.clientY});return r&&r.inside>-1&&Es.isSelectable(t.state.doc.nodeAt(r.inside))?!1:(t.dispatch(t.state.tr.setSelection(new oe(s))),!0)}function zl(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof oe))return!1;let{$from:n}=t.state.selection,s=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!s)return!1;let r=mr.empty;for(let i=s.length-1;i>=0;i--)r=mr.from(s[i].createAndFill(null,r));let o=t.state.tr.replace(n.pos,n.pos,new uo(r,0,0));return o.setSelection(Ze.near(o.doc.resolve(n.pos+1))),t.dispatch(o),!1}function Fl(t){if(!(t.selection instanceof oe))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Nt.create(t.doc,[Cn.widget(t.selection.head,e,{key:"gapcursor"})])}var Vt=200,le=function(){};le.prototype.append=function(e){return e.length?(e=le.from(e),!this.length&&e||e.length<Vt&&this.leafAppend(e)||this.length<Vt&&e.leafPrepend(this)||this.appendInner(e)):this};le.prototype.prepend=function(e){return e.length?le.from(e).append(this):this};le.prototype.appendInner=function(e){return new Bl(this,e)};le.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?le.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};le.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};le.prototype.forEach=function(e,n,s){n===void 0&&(n=0),s===void 0&&(s=this.length),n<=s?this.forEachInner(e,n,s,0):this.forEachInvertedInner(e,n,s,0)};le.prototype.map=function(e,n,s){n===void 0&&(n=0),s===void 0&&(s=this.length);var r=[];return this.forEach(function(o,i){return r.push(e(o,i))},n,s),r};le.from=function(e){return e instanceof le?e:e&&e.length?new To(e):le.empty};var To=(function(t){function e(s){t.call(this),this.values=s}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(r,o){return r==0&&o==this.length?this:new e(this.values.slice(r,o))},e.prototype.getInner=function(r){return this.values[r]},e.prototype.forEachInner=function(r,o,i,l){for(var u=o;u<i;u++)if(r(this.values[u],l+u)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,i,l){for(var u=o-1;u>=i;u--)if(r(this.values[u],l+u)===!1)return!1},e.prototype.leafAppend=function(r){if(this.length+r.length<=Vt)return new e(this.values.concat(r.flatten()))},e.prototype.leafPrepend=function(r){if(this.length+r.length<=Vt)return new e(r.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(le);le.empty=new To([]);var Bl=(function(t){function e(n,s){t.call(this),this.left=n,this.right=s,this.length=n.length+s.length,this.depth=Math.max(n.depth,s.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(s){return s<this.left.length?this.left.get(s):this.right.get(s-this.left.length)},e.prototype.forEachInner=function(s,r,o,i){var l=this.left.length;if(r<l&&this.left.forEachInner(s,r,Math.min(o,l),i)===!1||o>l&&this.right.forEachInner(s,Math.max(r-l,0),Math.min(this.length,o)-l,i+l)===!1)return!1},e.prototype.forEachInvertedInner=function(s,r,o,i){var l=this.left.length;if(r>l&&this.right.forEachInvertedInner(s,r-l,Math.max(o,l)-l,i+l)===!1||o<l&&this.left.forEachInvertedInner(s,Math.min(r,l),o,i)===!1)return!1},e.prototype.sliceInner=function(s,r){if(s==0&&r==this.length)return this;var o=this.left.length;return r<=o?this.left.slice(s,r):s>=o?this.right.slice(s-o,r-o):this.left.slice(s,o).append(this.right.slice(0,r-o))},e.prototype.leafAppend=function(s){var r=this.right.leafAppend(s);if(r)return new e(this.left,r)},e.prototype.leafPrepend=function(s){var r=this.left.leafPrepend(s);if(r)return new e(r,this.right)},e.prototype.appendInner=function(s){return this.left.depth>=Math.max(this.right.depth,s.depth)+1?new e(this.left,new e(this.right,s)):new e(this,s)},e})(le);const Ul=500;class we{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let s=this.items.length;for(;;s--)if(this.items.get(s-1).selection){--s;break}let r,o;n&&(r=this.remapping(s,this.items.length),o=r.maps.length);let i=e.tr,l,u,c=[],m=[];return this.items.forEach((d,f)=>{if(!d.step){r||(r=this.remapping(s,f+1),o=r.maps.length),o--,m.push(d);return}if(r){m.push(new Ae(d.map));let p=d.step.map(r.slice(o)),h;p&&i.maybeStep(p).doc&&(h=i.mapping.maps[i.mapping.maps.length-1],c.push(new Ae(h,void 0,void 0,c.length+m.length))),o--,h&&r.appendMap(h,o)}else i.maybeStep(d.step);if(d.selection)return l=r?d.selection.map(r.slice(o)):d.selection,u=new we(this.items.slice(0,s).append(m.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:u,transform:i,selection:l}}addTransform(e,n,s,r){let o=[],i=this.eventCount,l=this.items,u=!r&&l.length?l.get(l.length-1):null;for(let m=0;m<e.steps.length;m++){let d=e.steps[m].invert(e.docs[m]),f=new Ae(e.mapping.maps[m],d,n),p;(p=u&&u.merge(f))&&(f=p,m?o.pop():l=l.slice(0,l.length-1)),o.push(f),n&&(i++,n=void 0),r||(u=f)}let c=i-s.depth;return c>Kl&&(l=Wl(l,c),i-=c),new we(l.append(o),i)}remapping(e,n){let s=new Ca;return this.items.forEach((r,o)=>{let i=r.mirrorOffset!=null&&o-r.mirrorOffset>=e?s.maps.length-r.mirrorOffset:void 0;s.appendMap(r.map,i)},e,n),s}addMaps(e){return this.eventCount==0?this:new we(this.items.append(e.map(n=>new Ae(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let s=[],r=Math.max(0,this.items.length-n),o=e.mapping,i=e.steps.length,l=this.eventCount;this.items.forEach(f=>{f.selection&&l--},r);let u=n;this.items.forEach(f=>{let p=o.getMirror(--u);if(p==null)return;i=Math.min(i,p);let h=o.maps[p];if(f.step){let g=e.steps[p].invert(e.docs[p]),x=f.selection&&f.selection.map(o.slice(u+1,p));x&&l++,s.push(new Ae(h,g,x))}else s.push(new Ae(h))},r);let c=[];for(let f=n;f<i;f++)c.push(new Ae(o.maps[f]));let m=this.items.slice(0,r).append(c).append(s),d=new we(m,l);return d.emptyItemCount()>Ul&&(d=d.compress(this.items.length-s.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),s=n.maps.length,r=[],o=0;return this.items.forEach((i,l)=>{if(l>=e)r.push(i),i.selection&&o++;else if(i.step){let u=i.step.map(n.slice(s)),c=u&&u.getMap();if(s--,c&&n.appendMap(c,s),u){let m=i.selection&&i.selection.map(n.slice(s));m&&o++;let d=new Ae(c.invert(),u,m),f,p=r.length-1;(f=r.length&&r[p].merge(d))?r[p]=f:r.push(d)}}else i.map&&s--},this.items.length,0),new we(le.from(r.reverse()),o)}}we.empty=new we(le.empty,0);function Wl(t,e){let n;return t.forEach((s,r)=>{if(s.selection&&e--==0)return n=r,!1}),t.slice(n)}class Ae{constructor(e,n,s,r){this.map=e,this.step=n,this.selection=s,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Ae(n.getMap().invert(),n,this.selection)}}}class Be{constructor(e,n,s,r,o){this.done=e,this.undone=n,this.prevRanges=s,this.prevTime=r,this.prevComposition=o}}const Kl=20;function Vl(t,e,n,s){let r=n.getMeta(et),o;if(r)return r.historyState;n.getMeta(Xl)&&(t=new Be(t.done,t.undone,null,0,-1));let i=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(i&&i.getMeta(et))return i.getMeta(et).redo?new Be(t.done.addTransform(n,void 0,s,Bt(e)),t.undone,xr(n.mapping.maps),t.prevTime,t.prevComposition):new Be(t.done,t.undone.addTransform(n,void 0,s,Bt(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(i&&i.getMeta("addToHistory")===!1)){let l=n.getMeta("composition"),u=t.prevTime==0||!i&&t.prevComposition!=l&&(t.prevTime<(n.time||0)-s.newGroupDelay||!Gl(n,t.prevRanges)),c=i?Dn(t.prevRanges,n.mapping):xr(n.mapping.maps);return new Be(t.done.addTransform(n,u?e.selection.getBookmark():void 0,s,Bt(e)),we.empty,c,n.time,l??t.prevComposition)}else return(o=n.getMeta("rebased"))?new Be(t.done.rebased(n,o),t.undone.rebased(n,o),Dn(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Be(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Dn(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function Gl(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((s,r)=>{for(let o=0;o<e.length;o+=2)s<=e[o+1]&&r>=e[o]&&(n=!0)}),n}function xr(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((s,r,o,i)=>e.push(o,i));return e}function Dn(t,e){if(!t)return null;let n=[];for(let s=0;s<t.length;s+=2){let r=e.map(t[s],1),o=e.map(t[s+1],-1);r<=o&&n.push(r,o)}return n}function ql(t,e,n){let s=Bt(e),r=et.get(e).spec.config,o=(n?t.undone:t.done).popEvent(e,s);if(!o)return null;let i=o.selection.resolve(o.transform.doc),l=(n?t.done:t.undone).addTransform(o.transform,e.selection.getBookmark(),r,s),u=new Be(n?l:o.remaining,n?o.remaining:l,null,0,-1);return o.transform.setSelection(i).setMeta(et,{redo:n,historyState:u})}let Hn=!1,br=null;function Bt(t){let e=t.plugins;if(br!=e){Hn=!1,br=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){Hn=!0;break}}return Hn}const et=new Te("history"),Xl=new Te("closeHistory");function Yl(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new Se({key:et,state:{init(){return new Be(we.empty,we.empty,null,0,-1)},apply(e,n,s){return Vl(n,s,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let s=n.inputType,r=s=="historyUndo"?Co:s=="historyRedo"?_o:null;return!r||!e.editable?!1:(n.preventDefault(),r(e.state,e.dispatch))}}}})}function No(t,e){return(n,s)=>{let r=et.getState(n);if(!r||(t?r.undone:r.done).eventCount==0)return!1;if(s){let o=ql(r,n,t);o&&s(e?o.scrollIntoView():o)}return!0}}const Co=No(!1,!0),_o=No(!0,!0);Ne.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const s=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(s)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new Se({key:new Te("characterCount"),appendTransaction:(e,n,s)=>{if(t)return;const r=this.options.limit;if(r==null||r===0){t=!0;return}const o=this.storage.characters({node:s.doc});if(o>r){const i=o-r,l=0,u=i;console.warn(`[CharacterCount] Initial content exceeded limit of ${r} characters. Content was automatically trimmed.`);const c=s.tr.deleteRange(l,u);return t=!0,c}t=!0},filterTransaction:(e,n)=>{const s=this.options.limit;if(!e.docChanged||s===0||s===null||s===void 0)return!0;const r=this.storage.characters({node:n.doc}),o=this.storage.characters({node:e.doc});if(o<=s||r>s&&o>s&&o<=r)return!0;if(r>s&&o>s&&o>r||!e.getMeta("paste"))return!1;const l=e.selection.$head.pos,u=o-s,c=l-u,m=l;return e.deleteRange(c,m),!(this.storage.characters({node:e.doc})>s)}})]}});var Ql=Ne.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Ml(this.options)]}});Ne.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new Se({key:new Te("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:s}=this.editor,{anchor:r}=e,o=[];if(!n||!s)return Nt.create(t,[]);let i=0;this.options.mode==="deepest"&&t.descendants((u,c)=>{if(u.isText)return;if(!(r>=c&&r<=c+u.nodeSize-1))return!1;i+=1});let l=0;return t.descendants((u,c)=>{if(u.isText||!(r>=c&&r<=c+u.nodeSize-1))return!1;if(l+=1,this.options.mode==="deepest"&&i-l>0||this.options.mode==="shallowest"&&l>1)return this.options.mode==="deepest";o.push(Cn.node(c,c+u.nodeSize,{class:this.options.className}))}),Nt.create(t,o)}}})]}});var Jl=Ne.create({name:"gapCursor",addProseMirrorPlugins(){return[Ol()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Aa(Ia(t,"allowGapCursor",n)))!=null?e:null}}}),yr="placeholder";function Zl(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var Mp=Ne.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:yr,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const t=this.options.dataAttribute?`data-${Zl(this.options.dataAttribute)}`:`data-${yr}`;return[new Se({key:new Te("placeholder"),props:{decorations:({doc:e,selection:n})=>{const s=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=n,o=[];if(!s)return null;const i=this.editor.isEmpty;return e.descendants((l,u)=>{const c=r>=u&&r<=u+l.nodeSize,m=!l.isLeaf&&_a(l);if((c||!this.options.showOnlyCurrent)&&m){const d=[this.options.emptyNodeClass];i&&d.push(this.options.emptyEditorClass);const f=Cn.node(u,u+l.nodeSize,{class:d.join(" "),[t]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:u,hasAnchor:c}):this.options.placeholder});o.push(f)}return this.options.includeChildren}),Nt.create(e,o)}}})]}});Ne.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new Se({key:new Te("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||fo(n.selection)||t.view.dragging?null:Nt.create(n.doc,[Cn.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function vr({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}var ec=Ne.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new Te(this.name),n=this.options.node||((t=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:t.name)||"paragraph",s=Object.entries(this.editor.schema.nodes).map(([,r])=>r).filter(r=>(this.options.notAfter||[]).concat(n).includes(r.name));return[new Se({key:e,appendTransaction:(r,o,i)=>{const{doc:l,tr:u,schema:c}=i,m=e.getState(i),d=l.content.size,f=c.nodes[n];if(m)return u.insert(d,f.create())},state:{init:(r,o)=>{const i=o.tr.doc.lastChild;return!vr({node:i,types:s})},apply:(r,o)=>{if(!r.docChanged||r.getMeta("__uniqueIDTransaction"))return o;const i=r.doc.lastChild;return!vr({node:i,types:s})}}})]}}),tc=Ne.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>Co(t,e),redo:()=>({state:t,dispatch:e})=>_o(t,e)}},addProseMirrorPlugins(){return[Yl(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Gt=(t,e)=>{if(t==="slot")return 0;if(t instanceof Function)return t(e);const{children:n,...s}=e??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,s,n]},nc=/^\s*>\s$/,sc=fe.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return Gt("blockquote",{...ae(this.options.HTMLAttributes,t),children:Gt("slot",{})})},parseMarkdown:(t,e)=>{var n;const s=(n=e.parseBlockChildren)!=null?n:e.parseChildren;return e.createNode("blockquote",void 0,s(t.tokens||[]))},renderMarkdown:(t,e)=>{if(!t.content)return"";const n=">",s=[];return t.content.forEach((r,o)=>{var i,l;const m=((l=(i=e.renderChild)==null?void 0:i.call(e,r,o))!=null?l:e.renderChildren([r])).split(`
|
|
1
|
+
import{r as _,c as P,J as _i,j as a,B as tt,I as ur,H as Ai,M as Ii,l as q,p as Ei,aR as Li,aO as Ge,aV as Mi,aU as Ke,ba as Et,aS as it,bJ as Br,aQ as Ur,C as He,n as Ri,d as Pi,K as ke,t as Yn,m as Lt,b as mt,E as Wr,aL as Kr,bK as ks,aT as $i,bL as Qe}from"./index-DPoJjXEa.js";import{e as Oi}from"./select-BmfPhvm3.js";import{u as Vr}from"./useInfiniteQuery-CN6MG3DE.js";import{a as Gr,u as Di}from"./use-connection-_VQuKQfa.js";import{j as Hi,u as Ss,b as zi,i as Fi,a as Bi,S as Ui}from"./use-mcp-client-mPdv1yS9.js";import{u as Wi}from"./use-virtual-mcp-DiByH1e6.js";import{C as Ki}from"./card-BLG_NHGO.js";import{o as qr,m as Xr,p as js,q as ws}from"./sidebar-v1Veu6Mz.js";import{c as Yr,d as Qr,a as Tn,e as ye,b as Jr,T as ve}from"./table-BZGxEEcI.js";import{E as Qn}from"./empty-state-CkJIZNRq.js";import{u as Ts}from"./use-infinite-scroll-CMOdRv3n.js";import{u as Vi}from"./use-members-CBgzwnXf.js";import{u as Zr,S as ct}from"./use-clock-tick-BQjHXBbr.js";import{e as Gi}from"./use-automations-VGIncgfa.js";import{u as eo}from"./studio-tools-GlRU44yy.js";import{u as qi}from"./useSuspenseInfiniteQuery-BZDNxfLI.js";import{A as to}from"./avatar-CltceXco.js";import{t as Wt}from"./ChevronDown-CiZWLuMe.js";import{i as Ns,n as Jn}from"./ChevronUp-BrWDtpzw.js";import{t as Xi,a as no,n as Cs}from"./Tool02-sgO2gBxE.js";import{f as Yi,aB as Qi,aC as Ji,_ as Zi,x as ea,aD as ta,a5 as na,al as sa,k as ra,az as so,aE as oa,aF as ia,A as ro,aG as Le,aH as aa,n as la}from"./agent-icon-1myMQ7Rr.js";import{t as Nn}from"./Stars01-DscI0nGz.js";import{i as oo,b as Rt}from"./XCircle-DExvTcJb.js";import{i as dr}from"./ChevronRight-CytmAzEp.js";import{a as io}from"./Copy01-BWDWirG7.js";import{b as Ve,t as _s,c as fr}from"./format-time-BnbuEtat.js";import{u as ao}from"./use-copy-CaqOPH_i.js";import{T as nt,a as st,b as rt}from"./tooltip-Bwc3ojNE.js";import{M as As,I as lo,F as ca}from"./file-type-icon-08GOP1yb.js";import{R as ua,c as da,r as fa,g as ma}from"./hooks-K28NflSF.js";import{S as pa,h as pt,m as ha,c as Is,d as ga,b as xa}from"./chat-context-BUfN5f1j.js";import{c as ba}from"./monaco-editor-SoVMtDeT.js";import{g as co,M as ya}from"./index-DINlLJAQ.js";import{f as va,n as ka,o as Sa}from"./tab-id-BijBBRwE.js";import{N as fe,R as ja,k as wa,a as Se,l as Ta,F as mr,S as uo,T as Ze,m as Na,n as Es,D as Nt,h as Cn,o as Ct,P as Te,p as Ca,e as Ne,q as _a,r as Aa,s as Ia,v as fo,w as ut,x as ae,y as ht,z as ot,A as dt,B as Zn,G as Ea,H as La,I as Ma,J as Ra,K as Pa,L as $a,O as Oa,Q as mo,U as es,V as Da,W as Ha,X as po,Y as za,Z as Fa,_ as pr,t as Ba,$ as Ce,a0 as gt,c as Ua,u as Wa,M as Ka,d as Va}from"./calendar-BQpxr9U0.js";import{i as ho}from"./AlertCircle-CcH_bOxk.js";import{s as Ga}from"./Eye-sXXYRxsB.js";import{s as Kt,t as go}from"./Star01-_rApLWqW.js";import{s as qa}from"./XClose-CYQLG4_Q.js";import{n as ts}from"./ZapSquare-BdxdrJJ8.js";import{n as xo,i as Xa}from"./Globe01-Dj9P9bYX.js";import{c as Ya,b as Qa}from"./Tool01-lqRXjO9Q.js";import{i as hr,a as Ja}from"./ZoomOut-sZ-dDZym.js";import{i as yt}from"./Monitor01-6K_ZjGck.js";import{i as Za}from"./SearchMd-CAabB6cG.js";import{i as el}from"./Upload01-DUbC9Edx.js";import{u as tl,a as nl}from"./shell-layout-DtaVomjI.js";import{a as Pt}from"./Image01-B7OKhkcw.js";import{n as bo}from"./LinkExternal01-CujALlEc.js";import{I as qe}from"./integration-icon-Cf8ji5g2.js";import{i as sl}from"./ArrowUpRight-BoOQpTWN.js";import{a as Ls}from"./Users03-CXp0Gp25.js";import{a as Me}from"./Palette-Dbpl9liZ.js";import{c as yo}from"./use-navigate-to-agent-DYjykFw4.js";import{a as rl}from"./Stars02-CvaQ7G_U.js";import{g as ol}from"./AreaChart-JPtlrDdc.js";import{a as il,D as al,c as ll,d as cl,e as ul}from"./dialog-wi_xqgMH.js";import{a as dl,F as fl,b as ml,c as pl,d as hl,f as gl}from"./form-DRM9Nd2h.js";import{I as xl}from"./input-BK2liI0T.js";const bl={openrouter:t=>{const e=t?.openrouter;return typeof e=="object"&&e!==null&&"usage"in e&&typeof e.usage=="object"&&e.usage!==null&&"cost"in e.usage&&typeof e.usage.cost=="number"?e.usage.cost:null}};function vo(t){if(!t?.providerMetadata)return 0;for(const e of Object.values(bl)){const n=e(t.providerMetadata);if(n!==null)return n}return 0}function ko(){return{inputTokens:0,outputTokens:0,reasoningTokens:0,totalTokens:0,cost:0,cacheReadTokens:0,cacheWriteTokens:0}}function So(t,e){if(!e)return t;const n=e.inputTokenDetails?.cacheReadTokens??e.cachedInputTokens??0,s=e.inputTokenDetails?.cacheWriteTokens??0;return{inputTokens:t.inputTokens+(e.inputTokens??0),outputTokens:t.outputTokens+(e.outputTokens??0),reasoningTokens:t.reasoningTokens+(e.reasoningTokens??0),totalTokens:t.totalTokens+(e.totalTokens??0),cost:t.cost+vo(e),cacheReadTokens:t.cacheReadTokens+n,cacheWriteTokens:t.cacheWriteTokens+s}}function Ep(t){return t.reduce((e,n)=>So(e,n.metadata?.usage),ko())}const yl={damping:.7,stiffness:.05,mass:1.25},vl=70,kl=1e3/60,Sl=350;let _n=!1;globalThis.document?.addEventListener("mousedown",()=>{_n=!0});globalThis.document?.addEventListener("mouseup",()=>{_n=!1});globalThis.document?.addEventListener("click",()=>{_n=!1});const jl=(t={})=>{const[e,n]=_.useState(!1),[s,r]=_.useState(t.initial!==!1),[o,i]=_.useState(!1),l=_.useRef(null);l.current=t;const u=_.useCallback(()=>{if(!_n)return!1;const y=window.getSelection();if(!y||!y.rangeCount)return!1;const v=y.getRangeAt(0);return v.commonAncestorContainer.contains(x.current)||x.current?.contains(v.commonAncestorContainer)},[]),c=_.useCallback(y=>{d.isAtBottom=y,r(y)},[]),m=_.useCallback(y=>{d.escapedFromLock=y,n(y)},[]),d=_.useMemo(()=>{let y;return{escapedFromLock:e,isAtBottom:s,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return x.current?.scrollTop??0},set scrollTop(v){if(x.current){const{scrollBehavior:k}=getComputedStyle(x.current);k!=="auto"&&(x.current.style.scrollBehavior="auto"),x.current.scrollTop=v,d.ignoreScrollToTop=x.current.scrollTop,k!=="auto"&&(x.current.style.scrollBehavior=k)}},get targetScrollTop(){return!x.current||!b.current?0:x.current.scrollHeight-1-x.current.clientHeight},get calculatedTargetScrollTop(){if(!x.current||!b.current)return 0;const{targetScrollTop:v}=this;if(!t.targetScrollTop)return v;if(y?.targetScrollTop===v)return y.calculatedScrollTop;const k=Math.max(Math.min(t.targetScrollTop(v,{scrollElement:x.current,contentElement:b.current}),v),0);return y={targetScrollTop:v,calculatedScrollTop:k},requestAnimationFrame(()=>{y=void 0}),k},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=vl}}},[]),f=_.useCallback((y={})=>{typeof y=="string"&&(y={animation:y}),y.preserveScrollPosition||c(!0);const v=Date.now()+(Number(y.wait)||0),k=On(l.current,y.animation),{ignoreEscapes:j=!1}=y;let S,w=d.calculatedTargetScrollTop;y.duration instanceof Promise?y.duration.finally(()=>{S=Date.now()}):S=v+(y.duration??0);const T=async()=>{const N=new Promise(requestAnimationFrame).then(()=>{if(!d.isAtBottom)return d.animation=void 0,!1;const{scrollTop:C}=d,I=performance.now(),M=(I-(d.lastTick??I))/kl;if(d.animation||(d.animation={behavior:k,promise:N,ignoreEscapes:j}),d.animation.behavior===k&&(d.lastTick=I),u()||v>Date.now())return T();if(C<Math.min(w,d.calculatedTargetScrollTop)){if(d.animation?.behavior===k){if(k==="instant")return d.scrollTop=d.calculatedTargetScrollTop,T();d.velocity=(k.damping*d.velocity+k.stiffness*d.scrollDifference)/k.mass,d.accumulated+=d.velocity*M,d.scrollTop+=d.accumulated,d.scrollTop!==C&&(d.accumulated=0)}return T()}return S>Date.now()?(w=d.calculatedTargetScrollTop,T()):(d.animation=void 0,d.scrollTop<d.calculatedTargetScrollTop?f({animation:On(l.current,l.current.resize),ignoreEscapes:j,duration:Math.max(0,S-Date.now())||void 0}):d.isAtBottom)});return N.then(C=>(requestAnimationFrame(()=>{d.animation||(d.lastTick=void 0,d.velocity=0)}),C))};return y.wait!==!0&&(d.animation=void 0),d.animation?.behavior===k?d.animation.promise:T()},[c,u,d]),p=_.useCallback(()=>{m(!0),c(!1)},[m,c]),h=_.useCallback(({target:y})=>{if(y!==x.current)return;const{scrollTop:v,ignoreScrollToTop:k}=d;let{lastScrollTop:j=v}=d;d.lastScrollTop=v,d.ignoreScrollToTop=void 0,k&&k>v&&(j=k),i(d.isNearBottom),setTimeout(()=>{if(d.resizeDifference||v===k)return;if(u()){m(!0),c(!1);return}const S=v>j,w=v<j;if(d.animation?.ignoreEscapes){d.scrollTop=j;return}w&&(m(!0),c(!1)),S&&m(!1),!d.escapedFromLock&&d.isNearBottom&&c(!0)},1)},[m,c,u,d]),g=_.useCallback(({target:y,deltaY:v})=>{let k=y;for(;!["scroll","auto"].includes(getComputedStyle(k).overflow);){if(!k.parentElement)return;k=k.parentElement}k===x.current&&v<0&&x.current.scrollHeight>x.current.clientHeight&&!d.animation?.ignoreEscapes&&(m(!0),c(!1))},[m,c,d]),x=gr(y=>{x.current?.removeEventListener("scroll",h),x.current?.removeEventListener("wheel",g),y?.addEventListener("scroll",h,{passive:!0}),y?.addEventListener("wheel",g,{passive:!0})},[]),b=gr(y=>{if(d.resizeObserver?.disconnect(),d.resizeObserver=void 0,!y)return;let v;d.resizeObserver=new ResizeObserver(([k])=>{const{height:j}=k.contentRect,S=j-(v??j);if(d.resizeDifference=S,d.scrollTop>d.targetScrollTop&&(d.scrollTop=d.targetScrollTop),i(d.isNearBottom),S>=0){const w=On(l.current,v?l.current.resize:l.current.initial);f({animation:w,wait:!0,preserveScrollPosition:!0,duration:w==="instant"?void 0:Sl})}else d.isNearBottom&&(m(!1),c(!0));v=j,requestAnimationFrame(()=>{setTimeout(()=>{d.resizeDifference===S&&(d.resizeDifference=0)},1)})}),d.resizeObserver?.observe(y)},[]);return{contentRef:b,scrollRef:x,scrollToBottom:f,stopScroll:p,isAtBottom:s||o,isNearBottom:o,escapedFromLock:e,state:d}};function gr(t,e){const n=_.useCallback(s=>(n.current=s,t(s)),e);return n}const $n=new Map;function On(...t){const e={...yl};let n=!1;for(const r of t){if(r==="instant"){n=!0;continue}typeof r=="object"&&(n=!1,e.damping=r.damping??e.damping,e.stiffness=r.stiffness??e.stiffness,e.mass=r.mass??e.mass)}const s=JSON.stringify(e);return $n.has(s)||$n.set(s,Object.freeze(e)),n?"instant":$n.get(s)}function wl(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function Ms(t){if(t&&typeof t=="object"&&"gatewayClientId"in t&&typeof t.gatewayClientId=="string")return t.gatewayClientId}function Rs(t,e){if(!e)return t;const n=`${wl(e)}_`;return t.startsWith(n)?t.slice(n.length):t}function Tl(t,e){return Rs(t,e).replace(/[_-]/g," ").toLowerCase()}function Nl(t){const e={};for(const n of t?.arguments??[])e[n.name]=n.required?ur().min(1,"Required"):ur();return Ai(e)}function Cl(t,e){const n={};for(const s of t.arguments??[])n[s.name]=e?.[s.name]??"";return n}function _l(t){const e=P.c(67),{prompt:n,setPrompt:s,onSubmit:r,defaultValues:o}=t,i=_.useId();let l,u;if(e[0]!==n){const R=Nl(n);u=Ii,l=_i(R),e[0]=n,e[1]=l,e[2]=u}else l=e[1],u=e[2];let c;e[3]!==o||e[4]!==n?(c=n?Cl(n,o):{},e[3]=o,e[4]=n,e[5]=c):c=e[5];let m;e[6]!==l||e[7]!==c?(m={resolver:l,defaultValues:c,mode:"onChange"},e[6]=l,e[7]=c,e[8]=m):m=e[8];const d=u(m);let f;e[9]!==n?.arguments?(f=n?.arguments??[],e[9]=n?.arguments,e[10]=f):f=e[10];const p=f;let h;e[11]!==d||e[12]!==r||e[13]!==s?(h=async R=>{await r(R),s(null),d.reset()},e[11]=d,e[12]=r,e[13]=s,e[14]=h):h=e[14];const g=h;let x;e[15]!==d||e[16]!==s?(x=R=>{R||(d.reset(),s(null))},e[15]=d,e[16]=s,e[17]=x):x=e[17];const b=x;if(!n)return null;let y;e[18]!==n._meta||e[19]!==n.name||e[20]!==n.title?(y=n.title||Tl(n.name,Ms(n._meta)),e[18]=n._meta,e[19]=n.name,e[20]=n.title,e[21]=y):y=e[21];let v;e[22]!==y?(v=a.jsx(il,{children:a.jsx("span",{className:"capitalize",children:y})}),e[22]=y,e[23]=v):v=e[23];let k;e[24]!==n.description?(k=n.description&&a.jsx("p",{className:"text-sm text-muted-foreground",children:n.description}),e[24]=n.description,e[25]=k):k=e[25];let j;e[26]!==k||e[27]!==v?(j=a.jsxs(al,{children:[v,k]}),e[26]=k,e[27]=v,e[28]=j):j=e[28];let S;e[29]!==d||e[30]!==g?(S=R=>{R.stopPropagation(),d.handleSubmit(g)(R)},e[29]=d,e[30]=g,e[31]=S):S=e[31];let w;if(e[32]!==p||e[33]!==d.control||e[34]!==d.formState.isSubmitting){let R;e[36]!==d.control||e[37]!==d.formState.isSubmitting?(R=D=>a.jsx(fl,{control:d.control,name:D.name,render:H=>{const{field:F}=H;return a.jsxs(ml,{children:[a.jsxs(pl,{className:"text-xs",children:[D.name,D.required?null:a.jsxs("span",{className:"text-muted-foreground font-normal",children:[" ","(optional)"]})]}),a.jsx(hl,{children:a.jsx(xl,{...F,value:F.value??"",required:D.required,placeholder:D.description??"",className:"h-9",disabled:d.formState.isSubmitting})}),a.jsx(gl,{})]})}},D.name),e[36]=d.control,e[37]=d.formState.isSubmitting,e[38]=R):R=e[38],w=p.map(R),e[32]=p,e[33]=d.control,e[34]=d.formState.isSubmitting,e[35]=w}else w=e[35];let T;e[39]!==b?(T=()=>b(!1),e[39]=b,e[40]=T):T=e[40];let N;e[41]!==d.formState.isSubmitting||e[42]!==T?(N=a.jsx(tt,{type:"button",variant:"ghost",onClick:T,disabled:d.formState.isSubmitting,children:"Cancel"}),e[41]=d.formState.isSubmitting,e[42]=T,e[43]=N):N=e[43];let C;e[44]!==d.formState.isSubmitting?(C=d.formState.isSubmitting?a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx(pa,{size:"xs"}),"Loading..."]}):"Use prompt",e[44]=d.formState.isSubmitting,e[45]=C):C=e[45];let I;e[46]!==d.formState.isSubmitting||e[47]!==i||e[48]!==C?(I=a.jsx(tt,{type:"submit",form:i,disabled:d.formState.isSubmitting,children:C}),e[46]=d.formState.isSubmitting,e[47]=i,e[48]=C,e[49]=I):I=e[49];let M;e[50]!==N||e[51]!==I?(M=a.jsxs(ll,{children:[N,I]}),e[50]=N,e[51]=I,e[52]=M):M=e[52];let A;e[53]!==i||e[54]!==S||e[55]!==w||e[56]!==M?(A=a.jsxs("form",{id:i,className:"space-y-4 py-4",autoComplete:"off",onSubmit:S,children:[w,M]}),e[53]=i,e[54]=S,e[55]=w,e[56]=M,e[57]=A):A=e[57];let $;e[58]!==d||e[59]!==A?($=a.jsx(dl,{...d,children:A}),e[58]=d,e[59]=A,e[60]=$):$=e[60];let E;e[61]!==j||e[62]!==$?(E=a.jsxs(cl,{className:"sm:max-w-lg max-h-[80vh] overflow-y-auto",children:[j,$]}),e[61]=j,e[62]=$,e[63]=E):E=e[63];let O;return e[64]!==b||e[65]!==E?(O=a.jsx(ul,{open:!0,onOpenChange:b,children:E}),e[64]=b,e[65]=E,e[66]=O):O=e[66],O}const Al=/^mcp__[a-zA-Z0-9_-]+__/;function jo(t){return t.replace(Al,"")}function An(t){const e=P.c(18),{id:n,part:s,copyable:r,extraActions:o,alwaysShowActions:i,animate:l}=t,u=r===void 0?!1:r,c=i===void 0?!1:i,m=l===void 0?!1:l,{handleCopy:d}=ao(),[f,p]=_.useState(!1);let h;e[0]!==d||e[1]!==n||e[2]!==s.text?(h=async()=>{Ei("chat_message_copied",{message_id:n,chars:s.text.length}),await d(s.text),p(!0),setTimeout(()=>p(!1),2e3)},e[0]=d,e[1]=n,e[2]=s.text,e[3]=h):h=e[3];const g=h,x=u&&o,b=x||o;let y;e[4]!==m||e[5]!==n||e[6]!==s.text?(y=a.jsx(As,{id:n,text:s.text,animate:m}),e[4]=m,e[5]=n,e[6]=s.text,e[7]=y):y=e[7];let v;e[8]!==c||e[9]!==o||e[10]!==g||e[11]!==f||e[12]!==b||e[13]!==x?(v=b&&a.jsxs("div",{className:q("flex w-full items-center gap-2 text-sm text-muted-foreground transition-all duration-200 mt-1 py-1",c?"opacity-100":"opacity-0 pointer-events-none group-hover/part:opacity-100 group-hover/part:pointer-events-auto"),children:[o,x&&o&&a.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),x&&a.jsx("button",{type:"button",onClick:g,className:"text-muted-foreground [@media(hover:hover)]:hover:text-foreground transition-colors active:scale-[0.97]","aria-label":"Copy message",children:f?a.jsx(Ns,{className:"size-4"}):a.jsx(io,{className:"size-4"})})]}),e[8]=c,e[9]=o,e[10]=g,e[11]=f,e[12]=b,e[13]=x,e[14]=v):v=e[14];let k;return e[15]!==y||e[16]!==v?(k=a.jsxs("div",{className:"group/part relative",children:[y,v]}),e[15]=y,e[16]=v,e[17]=k):k=e[17],k}function Lp(t,e,n){t.chain().focus().insertContentAt(e,[Il(n),{type:"text",text:" "}]).run()}function Il(t){return{type:"file",attrs:t}}function El(t){const e=P.c(17),{node:n,selected:s,view:r}=t,{name:o,mimeType:i,data:l}=n.attrs,u=s&&r.editable;let c;e[0]!==i?(c=i.startsWith("image/"),e[0]=i,e[1]=c):c=e[1];const m=c,d=u&&"outline-2 outline-blue-300 outline-offset-0";let f;e[2]!==d?(f=q("px-1 py-1 rounded","inline-flex items-center gap-1","cursor-default select-none","text-xs font-light","bg-muted text-muted-foreground",d),e[2]=d,e[3]=f):f=e[3];let p;e[4]!==o?(p=a.jsx(nt,{asChild:!0,children:a.jsx("span",{children:o})}),e[4]=o,e[5]=p):p=e[5];let h;e[6]!==l||e[7]!==m||e[8]!==i||e[9]!==o?(h=a.jsx(st,{side:"top",className:"max-w-sm p-1.5",children:m?a.jsx("img",{src:`data:${i};base64,${l}`,alt:o,className:"max-w-full max-h-64 object-contain rounded"}):a.jsxs("div",{className:"text-xs",children:[a.jsx("div",{className:"font-medium",children:o}),a.jsx("div",{className:"text-muted-foreground mt-1",children:i})]})}),e[6]=l,e[7]=m,e[8]=i,e[9]=o,e[10]=h):h=e[10];let g;e[11]!==p||e[12]!==h?(g=a.jsxs(rt,{children:[p,h]}),e[11]=p,e[12]=h,e[13]=g):g=e[13];let x;return e[14]!==f||e[15]!==g?(x=a.jsx(wa,{className:f,children:g}),e[14]=f,e[15]=g,e[16]=x):x=e[16],x}const Ll=fe.create({name:"file",group:"inline",inline:!0,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id")||null,renderHTML:t=>t.id?{"data-id":t.id}:{}},name:{default:null,parseHTML:t=>t.getAttribute("data-name")||null,renderHTML:t=>t.name?{"data-name":t.name}:{}},mimeType:{default:null,parseHTML:t=>t.getAttribute("data-mime-type")||null,renderHTML:t=>t.mimeType?{"data-mime-type":t.mimeType}:{}},size:{default:0,parseHTML:t=>{const e=t.getAttribute("data-size");return e?Number.parseInt(e,10):0},renderHTML:t=>t.size?{"data-size":String(t.size)}:{}},data:{default:null,parseHTML:t=>t.getAttribute("data-data")||null,renderHTML:t=>t.data?{"data-data":t.data}:{}}}},parseHTML(){return[{tag:'span[data-type="file"]'}]},renderHTML({node:t,HTMLAttributes:e}){const n={"data-type":"file"};return t.attrs.id&&(n["data-id"]=t.attrs.id),t.attrs.name&&(n["data-name"]=t.attrs.name),t.attrs.mimeType&&(n["data-mime-type"]=t.attrs.mimeType),t.attrs.size&&(n["data-size"]=String(t.attrs.size)),t.attrs.data&&(n["data-data"]=t.attrs.data),["span",{...e,...n}]},renderText({node:t}){return`[${t.attrs.name??""}]`},addNodeView(){return ja(El)}});function Ml(t={}){return new Se({view(e){return new Rl(e,t)}})}class Rl{constructor(e,n){var s;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(s=n.width)!==null&&s!==void 0?s:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let o=i=>{this[r](i)};return e.dom.addEventListener(r,o),{name:r,handler:o}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,s,r=this.editorView.dom,o=r.getBoundingClientRect(),i=o.width/r.offsetWidth,l=o.height/r.offsetHeight;if(n){let d=e.nodeBefore,f=e.nodeAfter;if(d||f){let p=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(p){let h=p.getBoundingClientRect(),g=d?h.bottom:h.top;d&&f&&(g=(g+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let x=this.width/2*l;s={left:h.left,right:h.right,top:g-x,bottom:g+x}}}}if(!s){let d=this.editorView.coordsAtPos(this.cursorPos),f=this.width/2*i;s={left:d.left-f,right:d.left+f,top:d.top,bottom:d.bottom}}let u=this.editorView.dom.offsetParent;this.element||(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let c,m;if(!u||u==document.body&&getComputedStyle(u).position=="static")c=-pageXOffset,m=-pageYOffset;else{let d=u.getBoundingClientRect(),f=d.width/u.offsetWidth,p=d.height/u.offsetHeight;c=d.left-u.scrollLeft*f,m=d.top-u.scrollTop*p}this.element.style.left=(s.left-c)/i+"px",this.element.style.top=(s.top-m)/l+"px",this.element.style.width=(s.right-s.left)/i+"px",this.element.style.height=(s.bottom-s.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),s=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),r=s&&s.type.spec.disableDropCursor,o=typeof r=="function"?r(this.editorView,n,e):r;if(n&&!o){let i=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=Ta(this.editorView.state.doc,i,this.editorView.dragging.slice);l!=null&&(i=l)}this.setCursor(i),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class oe extends Ct{constructor(e){super(e,e)}map(e,n){let s=e.resolve(n.map(this.head));return oe.valid(s)?new oe(s):Ct.near(s)}content(){return uo.empty}eq(e){return e instanceof oe&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new oe(e.resolve(n.pos))}getBookmark(){return new Ps(this.anchor)}static valid(e){let n=e.parent;if(n.inlineContent||!Pl(e)||!$l(e))return!1;let s=n.type.spec.allowGapCursor;if(s!=null)return s;let r=n.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,n,s=!1){e:for(;;){if(!s&&oe.valid(e))return e;let r=e.pos,o=null;for(let i=e.depth;;i--){let l=e.node(i);if(n>0?e.indexAfter(i)<l.childCount:e.index(i)>0){o=l.child(n>0?e.indexAfter(i):e.index(i)-1);break}else if(i==0)return null;r+=n;let u=e.doc.resolve(r);if(oe.valid(u))return u}for(;;){let i=n>0?o.firstChild:o.lastChild;if(!i){if(o.isAtom&&!o.isText&&!Es.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*n),s=!1;continue e}break}o=i,r+=n;let l=e.doc.resolve(r);if(oe.valid(l))return l}return null}}}oe.prototype.visible=!1;oe.findFrom=oe.findGapCursorFrom;Ct.jsonID("gapcursor",oe);class Ps{constructor(e){this.pos=e}map(e){return new Ps(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return oe.valid(n)?new oe(n):Ct.near(n)}}function wo(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function Pl(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),s=t.node(e);if(n==0){if(s.type.spec.isolating)return!0;continue}for(let r=s.child(n-1);;r=r.lastChild){if(r.childCount==0&&!r.inlineContent||wo(r.type))return!0;if(r.inlineContent)return!1}}return!0}function $l(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),s=t.node(e);if(n==s.childCount){if(s.type.spec.isolating)return!0;continue}for(let r=s.child(n);;r=r.firstChild){if(r.childCount==0&&!r.inlineContent||wo(r.type))return!0;if(r.inlineContent)return!1}}return!0}function Ol(){return new Se({props:{decorations:Fl,createSelectionBetween(t,e,n){return e.pos==n.pos&&oe.valid(n)?new oe(n):null},handleClick:Hl,handleKeyDown:Dl,handleDOMEvents:{beforeinput:zl}}})}const Dl=Na({ArrowLeft:$t("horiz",-1),ArrowRight:$t("horiz",1),ArrowUp:$t("vert",-1),ArrowDown:$t("vert",1)});function $t(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(s,r,o){let i=s.selection,l=e>0?i.$to:i.$from,u=i.empty;if(i instanceof Ze){if(!o.endOfTextblock(n)||l.depth==0)return!1;u=!1,l=s.doc.resolve(e>0?l.after():l.before())}let c=oe.findGapCursorFrom(l,e,u);return c?(r&&r(s.tr.setSelection(new oe(c))),!0):!1}}function Hl(t,e,n){if(!t||!t.editable)return!1;let s=t.state.doc.resolve(e);if(!oe.valid(s))return!1;let r=t.posAtCoords({left:n.clientX,top:n.clientY});return r&&r.inside>-1&&Es.isSelectable(t.state.doc.nodeAt(r.inside))?!1:(t.dispatch(t.state.tr.setSelection(new oe(s))),!0)}function zl(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof oe))return!1;let{$from:n}=t.state.selection,s=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!s)return!1;let r=mr.empty;for(let i=s.length-1;i>=0;i--)r=mr.from(s[i].createAndFill(null,r));let o=t.state.tr.replace(n.pos,n.pos,new uo(r,0,0));return o.setSelection(Ze.near(o.doc.resolve(n.pos+1))),t.dispatch(o),!1}function Fl(t){if(!(t.selection instanceof oe))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Nt.create(t.doc,[Cn.widget(t.selection.head,e,{key:"gapcursor"})])}var Vt=200,le=function(){};le.prototype.append=function(e){return e.length?(e=le.from(e),!this.length&&e||e.length<Vt&&this.leafAppend(e)||this.length<Vt&&e.leafPrepend(this)||this.appendInner(e)):this};le.prototype.prepend=function(e){return e.length?le.from(e).append(this):this};le.prototype.appendInner=function(e){return new Bl(this,e)};le.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?le.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};le.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};le.prototype.forEach=function(e,n,s){n===void 0&&(n=0),s===void 0&&(s=this.length),n<=s?this.forEachInner(e,n,s,0):this.forEachInvertedInner(e,n,s,0)};le.prototype.map=function(e,n,s){n===void 0&&(n=0),s===void 0&&(s=this.length);var r=[];return this.forEach(function(o,i){return r.push(e(o,i))},n,s),r};le.from=function(e){return e instanceof le?e:e&&e.length?new To(e):le.empty};var To=(function(t){function e(s){t.call(this),this.values=s}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(r,o){return r==0&&o==this.length?this:new e(this.values.slice(r,o))},e.prototype.getInner=function(r){return this.values[r]},e.prototype.forEachInner=function(r,o,i,l){for(var u=o;u<i;u++)if(r(this.values[u],l+u)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,i,l){for(var u=o-1;u>=i;u--)if(r(this.values[u],l+u)===!1)return!1},e.prototype.leafAppend=function(r){if(this.length+r.length<=Vt)return new e(this.values.concat(r.flatten()))},e.prototype.leafPrepend=function(r){if(this.length+r.length<=Vt)return new e(r.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(le);le.empty=new To([]);var Bl=(function(t){function e(n,s){t.call(this),this.left=n,this.right=s,this.length=n.length+s.length,this.depth=Math.max(n.depth,s.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(s){return s<this.left.length?this.left.get(s):this.right.get(s-this.left.length)},e.prototype.forEachInner=function(s,r,o,i){var l=this.left.length;if(r<l&&this.left.forEachInner(s,r,Math.min(o,l),i)===!1||o>l&&this.right.forEachInner(s,Math.max(r-l,0),Math.min(this.length,o)-l,i+l)===!1)return!1},e.prototype.forEachInvertedInner=function(s,r,o,i){var l=this.left.length;if(r>l&&this.right.forEachInvertedInner(s,r-l,Math.max(o,l)-l,i+l)===!1||o<l&&this.left.forEachInvertedInner(s,Math.min(r,l),o,i)===!1)return!1},e.prototype.sliceInner=function(s,r){if(s==0&&r==this.length)return this;var o=this.left.length;return r<=o?this.left.slice(s,r):s>=o?this.right.slice(s-o,r-o):this.left.slice(s,o).append(this.right.slice(0,r-o))},e.prototype.leafAppend=function(s){var r=this.right.leafAppend(s);if(r)return new e(this.left,r)},e.prototype.leafPrepend=function(s){var r=this.left.leafPrepend(s);if(r)return new e(r,this.right)},e.prototype.appendInner=function(s){return this.left.depth>=Math.max(this.right.depth,s.depth)+1?new e(this.left,new e(this.right,s)):new e(this,s)},e})(le);const Ul=500;class we{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let s=this.items.length;for(;;s--)if(this.items.get(s-1).selection){--s;break}let r,o;n&&(r=this.remapping(s,this.items.length),o=r.maps.length);let i=e.tr,l,u,c=[],m=[];return this.items.forEach((d,f)=>{if(!d.step){r||(r=this.remapping(s,f+1),o=r.maps.length),o--,m.push(d);return}if(r){m.push(new Ae(d.map));let p=d.step.map(r.slice(o)),h;p&&i.maybeStep(p).doc&&(h=i.mapping.maps[i.mapping.maps.length-1],c.push(new Ae(h,void 0,void 0,c.length+m.length))),o--,h&&r.appendMap(h,o)}else i.maybeStep(d.step);if(d.selection)return l=r?d.selection.map(r.slice(o)):d.selection,u=new we(this.items.slice(0,s).append(m.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:u,transform:i,selection:l}}addTransform(e,n,s,r){let o=[],i=this.eventCount,l=this.items,u=!r&&l.length?l.get(l.length-1):null;for(let m=0;m<e.steps.length;m++){let d=e.steps[m].invert(e.docs[m]),f=new Ae(e.mapping.maps[m],d,n),p;(p=u&&u.merge(f))&&(f=p,m?o.pop():l=l.slice(0,l.length-1)),o.push(f),n&&(i++,n=void 0),r||(u=f)}let c=i-s.depth;return c>Kl&&(l=Wl(l,c),i-=c),new we(l.append(o),i)}remapping(e,n){let s=new Ca;return this.items.forEach((r,o)=>{let i=r.mirrorOffset!=null&&o-r.mirrorOffset>=e?s.maps.length-r.mirrorOffset:void 0;s.appendMap(r.map,i)},e,n),s}addMaps(e){return this.eventCount==0?this:new we(this.items.append(e.map(n=>new Ae(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let s=[],r=Math.max(0,this.items.length-n),o=e.mapping,i=e.steps.length,l=this.eventCount;this.items.forEach(f=>{f.selection&&l--},r);let u=n;this.items.forEach(f=>{let p=o.getMirror(--u);if(p==null)return;i=Math.min(i,p);let h=o.maps[p];if(f.step){let g=e.steps[p].invert(e.docs[p]),x=f.selection&&f.selection.map(o.slice(u+1,p));x&&l++,s.push(new Ae(h,g,x))}else s.push(new Ae(h))},r);let c=[];for(let f=n;f<i;f++)c.push(new Ae(o.maps[f]));let m=this.items.slice(0,r).append(c).append(s),d=new we(m,l);return d.emptyItemCount()>Ul&&(d=d.compress(this.items.length-s.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),s=n.maps.length,r=[],o=0;return this.items.forEach((i,l)=>{if(l>=e)r.push(i),i.selection&&o++;else if(i.step){let u=i.step.map(n.slice(s)),c=u&&u.getMap();if(s--,c&&n.appendMap(c,s),u){let m=i.selection&&i.selection.map(n.slice(s));m&&o++;let d=new Ae(c.invert(),u,m),f,p=r.length-1;(f=r.length&&r[p].merge(d))?r[p]=f:r.push(d)}}else i.map&&s--},this.items.length,0),new we(le.from(r.reverse()),o)}}we.empty=new we(le.empty,0);function Wl(t,e){let n;return t.forEach((s,r)=>{if(s.selection&&e--==0)return n=r,!1}),t.slice(n)}class Ae{constructor(e,n,s,r){this.map=e,this.step=n,this.selection=s,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Ae(n.getMap().invert(),n,this.selection)}}}class Be{constructor(e,n,s,r,o){this.done=e,this.undone=n,this.prevRanges=s,this.prevTime=r,this.prevComposition=o}}const Kl=20;function Vl(t,e,n,s){let r=n.getMeta(et),o;if(r)return r.historyState;n.getMeta(Xl)&&(t=new Be(t.done,t.undone,null,0,-1));let i=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(i&&i.getMeta(et))return i.getMeta(et).redo?new Be(t.done.addTransform(n,void 0,s,Bt(e)),t.undone,xr(n.mapping.maps),t.prevTime,t.prevComposition):new Be(t.done,t.undone.addTransform(n,void 0,s,Bt(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(i&&i.getMeta("addToHistory")===!1)){let l=n.getMeta("composition"),u=t.prevTime==0||!i&&t.prevComposition!=l&&(t.prevTime<(n.time||0)-s.newGroupDelay||!Gl(n,t.prevRanges)),c=i?Dn(t.prevRanges,n.mapping):xr(n.mapping.maps);return new Be(t.done.addTransform(n,u?e.selection.getBookmark():void 0,s,Bt(e)),we.empty,c,n.time,l??t.prevComposition)}else return(o=n.getMeta("rebased"))?new Be(t.done.rebased(n,o),t.undone.rebased(n,o),Dn(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Be(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Dn(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function Gl(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((s,r)=>{for(let o=0;o<e.length;o+=2)s<=e[o+1]&&r>=e[o]&&(n=!0)}),n}function xr(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((s,r,o,i)=>e.push(o,i));return e}function Dn(t,e){if(!t)return null;let n=[];for(let s=0;s<t.length;s+=2){let r=e.map(t[s],1),o=e.map(t[s+1],-1);r<=o&&n.push(r,o)}return n}function ql(t,e,n){let s=Bt(e),r=et.get(e).spec.config,o=(n?t.undone:t.done).popEvent(e,s);if(!o)return null;let i=o.selection.resolve(o.transform.doc),l=(n?t.done:t.undone).addTransform(o.transform,e.selection.getBookmark(),r,s),u=new Be(n?l:o.remaining,n?o.remaining:l,null,0,-1);return o.transform.setSelection(i).setMeta(et,{redo:n,historyState:u})}let Hn=!1,br=null;function Bt(t){let e=t.plugins;if(br!=e){Hn=!1,br=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){Hn=!0;break}}return Hn}const et=new Te("history"),Xl=new Te("closeHistory");function Yl(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new Se({key:et,state:{init(){return new Be(we.empty,we.empty,null,0,-1)},apply(e,n,s){return Vl(n,s,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let s=n.inputType,r=s=="historyUndo"?Co:s=="historyRedo"?_o:null;return!r||!e.editable?!1:(n.preventDefault(),r(e.state,e.dispatch))}}}})}function No(t,e){return(n,s)=>{let r=et.getState(n);if(!r||(t?r.undone:r.done).eventCount==0)return!1;if(s){let o=ql(r,n,t);o&&s(e?o.scrollIntoView():o)}return!0}}const Co=No(!1,!0),_o=No(!0,!0);Ne.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const s=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(s)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new Se({key:new Te("characterCount"),appendTransaction:(e,n,s)=>{if(t)return;const r=this.options.limit;if(r==null||r===0){t=!0;return}const o=this.storage.characters({node:s.doc});if(o>r){const i=o-r,l=0,u=i;console.warn(`[CharacterCount] Initial content exceeded limit of ${r} characters. Content was automatically trimmed.`);const c=s.tr.deleteRange(l,u);return t=!0,c}t=!0},filterTransaction:(e,n)=>{const s=this.options.limit;if(!e.docChanged||s===0||s===null||s===void 0)return!0;const r=this.storage.characters({node:n.doc}),o=this.storage.characters({node:e.doc});if(o<=s||r>s&&o>s&&o<=r)return!0;if(r>s&&o>s&&o>r||!e.getMeta("paste"))return!1;const l=e.selection.$head.pos,u=o-s,c=l-u,m=l;return e.deleteRange(c,m),!(this.storage.characters({node:e.doc})>s)}})]}});var Ql=Ne.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Ml(this.options)]}});Ne.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new Se({key:new Te("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:s}=this.editor,{anchor:r}=e,o=[];if(!n||!s)return Nt.create(t,[]);let i=0;this.options.mode==="deepest"&&t.descendants((u,c)=>{if(u.isText)return;if(!(r>=c&&r<=c+u.nodeSize-1))return!1;i+=1});let l=0;return t.descendants((u,c)=>{if(u.isText||!(r>=c&&r<=c+u.nodeSize-1))return!1;if(l+=1,this.options.mode==="deepest"&&i-l>0||this.options.mode==="shallowest"&&l>1)return this.options.mode==="deepest";o.push(Cn.node(c,c+u.nodeSize,{class:this.options.className}))}),Nt.create(t,o)}}})]}});var Jl=Ne.create({name:"gapCursor",addProseMirrorPlugins(){return[Ol()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Aa(Ia(t,"allowGapCursor",n)))!=null?e:null}}}),yr="placeholder";function Zl(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var Mp=Ne.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:yr,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const t=this.options.dataAttribute?`data-${Zl(this.options.dataAttribute)}`:`data-${yr}`;return[new Se({key:new Te("placeholder"),props:{decorations:({doc:e,selection:n})=>{const s=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=n,o=[];if(!s)return null;const i=this.editor.isEmpty;return e.descendants((l,u)=>{const c=r>=u&&r<=u+l.nodeSize,m=!l.isLeaf&&_a(l);if((c||!this.options.showOnlyCurrent)&&m){const d=[this.options.emptyNodeClass];i&&d.push(this.options.emptyEditorClass);const f=Cn.node(u,u+l.nodeSize,{class:d.join(" "),[t]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:u,hasAnchor:c}):this.options.placeholder});o.push(f)}return this.options.includeChildren}),Nt.create(e,o)}}})]}});Ne.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new Se({key:new Te("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||fo(n.selection)||t.view.dragging?null:Nt.create(n.doc,[Cn.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function vr({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}var ec=Ne.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new Te(this.name),n=this.options.node||((t=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:t.name)||"paragraph",s=Object.entries(this.editor.schema.nodes).map(([,r])=>r).filter(r=>(this.options.notAfter||[]).concat(n).includes(r.name));return[new Se({key:e,appendTransaction:(r,o,i)=>{const{doc:l,tr:u,schema:c}=i,m=e.getState(i),d=l.content.size,f=c.nodes[n];if(m)return u.insert(d,f.create())},state:{init:(r,o)=>{const i=o.tr.doc.lastChild;return!vr({node:i,types:s})},apply:(r,o)=>{if(!r.docChanged||r.getMeta("__uniqueIDTransaction"))return o;const i=r.doc.lastChild;return!vr({node:i,types:s})}}})]}}),tc=Ne.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>Co(t,e),redo:()=>({state:t,dispatch:e})=>_o(t,e)}},addProseMirrorPlugins(){return[Yl(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Gt=(t,e)=>{if(t==="slot")return 0;if(t instanceof Function)return t(e);const{children:n,...s}=e??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,s,n]},nc=/^\s*>\s$/,sc=fe.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return Gt("blockquote",{...ae(this.options.HTMLAttributes,t),children:Gt("slot",{})})},parseMarkdown:(t,e)=>{var n;const s=(n=e.parseBlockChildren)!=null?n:e.parseChildren;return e.createNode("blockquote",void 0,s(t.tokens||[]))},renderMarkdown:(t,e)=>{if(!t.content)return"";const n=">",s=[];return t.content.forEach((r,o)=>{var i,l;const m=((l=(i=e.renderChild)==null?void 0:i.call(e,r,o))!=null?l:e.renderChildren([r])).split(`
|
|
2
2
|
`).map(d=>d.trim()===""?n:`${n} ${d}`);s.push(m.join(`
|
|
3
3
|
`))}),s.join(`
|
|
4
4
|
${n}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,j as o,C as D,b as M,r as $,B as q,p as R}from"./index-
|
|
1
|
+
import{c as B,j as o,C as D,b as M,r as $,B as q,p as R}from"./index-DPoJjXEa.js";import{s as V}from"./Plus-sP7IdCet.js";import{i as S}from"./Zap-CCM6DeYE.js";import{S as F}from"./search-input-Gt_oBZDk.js";import{P as d}from"./index-8TKzIPum.js";import{E as T}from"./empty-state-CkJIZNRq.js";import{c as G}from"./use-automations-VGIncgfa.js";import{c as H}from"./use-navigate-to-agent-DYjykFw4.js";import{A as J}from"./automation-list-row-Cn3ij2PQ.js";import{q as K}from"./use-mcp-client-mPdv1yS9.js";import{u as O}from"./use-virtual-mcp-DiByH1e6.js";import{R as Q}from"./require-capability-BozVcgJR.js";import{u as U}from"./use-t-Cn2A2Kmg.js";import"./SearchMd-CAabB6cG.js";import"./sidebar-v1Veu6Mz.js";import"./LayoutLeft-B8e5OgIG.js";import"./use-mobile-DkJSnM0V.js";import"./X-C2HR48bw.js";import"./tooltip-Bwc3ojNE.js";import"./studio-tools-GlRU44yy.js";import"./hooks-K28NflSF.js";import"./decopilot-sse-pool-Ca33ciGa.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CouMjkYR.js";import"./alert-dialog-DvL7lELx.js";import"./dropdown-menu-BeaFFsLo.js";import"./ChevronUp-BrWDtpzw.js";import"./ChevronRight-CytmAzEp.js";import"./DotsVertical-CrMS0ntC.js";import"./Stars02-CvaQ7G_U.js";import"./Trash01-BO8Lzt2t.js";import"./agent-icon-1myMQ7Rr.js";import"./AlertCircle-CcH_bOxk.js";import"./Tool01-lqRXjO9Q.js";import"./ArrowUp-C2AEn2OG.js";import"./Settings02-C_58NGMf.js";import"./Tool02-sgO2gBxE.js";import"./XCircle-DExvTcJb.js";import"./ArrowUpRight-BoOQpTWN.js";import"./TrendUp01-cGxYPW5K.js";import"./ZapSquare-BdxdrJJ8.js";import"./ZoomOut-sZ-dDZym.js";import"./Users03-CXp0Gp25.js";import"./CheckCircle-DW5bobga.js";import"./ChevronDown-CiZWLuMe.js";import"./Copy01-BWDWirG7.js";import"./Globe01-Dj9P9bYX.js";import"./Eye-sXXYRxsB.js";import"./FilterLines-jVMdWUpM.js";import"./Star01-_rApLWqW.js";import"./Globe04-BqIV_GOb.js";import"./SwitchHorizontal01-qXHyhVUB.js";import"./HardDrive-BW7rSZ6M.js";import"./Image01-B7OKhkcw.js";import"./Key01-DGHWQ9PP.js";import"./LinkExternal01-CujALlEc.js";import"./Monitor01-6K_ZjGck.js";import"./Sun-Cqkb9YfZ.js";import"./Package-C_dItm-W.js";import"./Palette-Dbpl9liZ.js";import"./Play-Di71Lx-r.js";import"./SearchLg-ByDyqJch.js";import"./Shield01-z6N5dhMJ.js";import"./Stars01-DscI0nGz.js";import"./Upload01-DUbC9Edx.js";import"./User01-Bt_owTEs.js";import"./Users01-C-7-ynSw.js";import"./XClose-CYQLG4_Q.js";import"./auth-D0ljPABj.js";import"./use-collections-CpijbtDq.js";import"./use-capability-VxZoeVQW.js";import"./access-gate-BYZfH4kZ.js";import"./capability-load-error-CTH97ggX.js";function W(){const t=B.c(20),e=U(),{org:c}=D(),{data:C}=G(void 0),g=C===void 0?[]:C,k=O(),P=H(),f=M(),[x,E]=$.useState(""),h=x.toLowerCase(),A=new Map(k.map(X)),b=g.filter(i=>{if(!h||i.name.toLowerCase().includes(h))return!0;if(i.virtual_mcp_id){const p=A.get(i.virtual_mcp_id);if(p&&p.title.toLowerCase().includes(h))return!0}return!1}),z=(i,p)=>{const N=p&&A.has(p)?p:K(c.id);R("automations_list_row_clicked",{automation_id:i,agent_id:N,source:"settings_automations"}),P(N,{search:{main:"automation:"+i}})};let l;t[0]!==f||t[1]!==c.slug?(l=()=>{R("automations_empty_state_browse_agents_clicked"),f({to:"/$org/settings/agents",params:{org:c.slug}})},t[0]=f,t[1]=c.slug,t[2]=l):l=t[2];const L=l,j=d,v=d,w=d;let s;t[3]!==e?(s=e("settings.automations.pageTitle"),t[3]=e,t[4]=s):s=t[4];let r;t[5]!==s?(r=o.jsx(d.Title,{children:s}),t[5]=s,t[6]=r):r=t[6];const _=g.length>0&&o.jsx(F,{value:x,onChange:E,placeholder:e("settings.automations.searchPlaceholder"),className:"w-full md:w-[375px]"});let m;t[7]!==r||t[8]!==_?(m=o.jsxs("div",{className:"flex flex-col gap-6",children:[r,_]}),t[7]=r,t[8]=_,t[9]=m):m=t[9];const y=g.length===0?o.jsx("div",{className:"flex items-center justify-center py-20",children:o.jsx(T,{image:o.jsx(S,{size:48,className:"text-muted-foreground"}),title:e("settings.automations.emptyTitle"),description:e("settings.automations.emptyDescription"),actions:o.jsxs(q,{size:"sm",onClick:L,children:[o.jsx(V,{size:14}),e("settings.automations.browseAgentsButton")]})})}):b.length===0?o.jsx("div",{className:"flex items-center justify-center py-20",children:o.jsx(T,{image:o.jsx(S,{size:48,className:"text-muted-foreground"}),title:e("settings.automations.noResultsTitle"),description:e("settings.automations.noResultsDescription",{search:x})})}):o.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:b.map(i=>o.jsx(J,{automation:i,showAgent:!0,onClick:()=>z(i.id,i.virtual_mcp_id)},i.id))});let n;t[10]!==w.Body||t[11]!==m||t[12]!==y?(n=o.jsxs(w.Body,{children:[m,y]}),t[10]=w.Body,t[11]=m,t[12]=y,t[13]=n):n=t[13];let a;t[14]!==v.Content||t[15]!==n?(a=o.jsx(v.Content,{children:n}),t[14]=v.Content,t[15]=n,t[16]=a):a=t[16];let u;return t[17]!==j||t[18]!==a?(u=o.jsx(j,{children:a}),t[17]=j,t[18]=a,t[19]=u):u=t[19],u}function X(t){return[t.id,t]}function jo(){const t=B.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Q,{capability:"automations:manage",area:"automations",children:o.jsx(W,{})}),t[0]=e):e=t[0],e}export{jo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as a}from"./index-
|
|
1
|
+
import{D as a}from"./index-DPoJjXEa.js";const i=1e4,m="true";function s(e,t){return a.chatAutosend(e,t)}function d(e){return e==="pending"||e==="sending"}function c(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}return!t||typeof t!="object"||typeof t.createdAt!="number"||typeof t.message!="object"||!d(t.status)?null:t}function A(e,t,r,o,u=Date.now()){const n={message:o,createdAt:u,status:"pending"};return e.setItem(s(t,r),JSON.stringify(n)),n}function f(e,t,r){const o=s(t,r),u=c(e.getItem(o));return u||(e.removeItem(o),null)}function S(e,t,r,o=Date.now()){const u=s(t,r),n=f(e,t,r);return!n||n.status!=="pending"?null:o-n.createdAt>=i?(e.removeItem(u),null):(e.setItem(u,JSON.stringify({...n,status:"sending"})),{message:n.message,createdAt:n.createdAt})}function p(e,t,r){e.removeItem(s(t,r))}export{m as A,p as a,S as c,A as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as i,l as m,bC as R,cI as S,cJ as V,cK as $}from"./index-
|
|
1
|
+
import{c as k,j as i,l as m,bC as R,cI as S,cJ as V,cK as $}from"./index-DPoJjXEa.js";import{s as O}from"./User01-Bt_owTEs.js";function U(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx($,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}function E(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx(S,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}function M(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx(V,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}const C=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],L="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function T(r){let e=0;for(let t=0;t<r.length;t++)e=r.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%C.length;return C[s]}const I=R("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-[7px] font-semibold","2xs":"w-4 h-4 text-[9px] font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),_=R("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),D=r=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[r]||e.base};function J(r){const e=k.c(34);let s,t,o,a,n,d,g,l;e[0]!==r?({url:l,fallback:t,shape:a,size:n,objectFit:d,className:s,muted:g,...o}=r,e[0]=r,e[1]=s,e[2]=t,e[3]=o,e[4]=a,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],a=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=a===void 0?"square":a,h=n===void 0?"base":n,u=d===void 0?"cover":d,j=g===void 0?!1:g;let x;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],x=c;break e}x=t}const f=x;let y;e:{if(j){y=L;break e}if(typeof t=="string"){let c;e[11]!==t?(c=T(t),e[11]=t,e[12]=c):c=e[12],y=c;break e}y=C[0]}const z=y;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const F=q;let w;e[18]!==s||e[19]!==b||e[20]!==h?(w=m(I({shape:b,size:h}),s),e[18]=s,e[19]=b,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==z||e[23]!==f||e[24]!==F||e[25]!==p||e[26]!==u||e[27]!==h||e[28]!==l?(v=p&&F?i.jsx("div",{className:m("flex items-center justify-center w-full h-full",z),children:i.jsx(O,{size:D(h)})}):i.jsxs(i.Fragment,{children:[l&&i.jsx(E,{src:l,loading:"lazy",alt:"Avatar",className:m(_({objectFit:u}))}),i.jsx(M,{className:m(z,"rounded-none"),delayMs:l?600:0,children:f})]}),e[22]=z,e[23]=f,e[24]=F,e[25]=p,e[26]=u,e[27]=h,e[28]=l,e[29]=v):v=e[29];let A;return e[30]!==o||e[31]!==v||e[32]!==w?(A=i.jsx(U,{className:w,...o,children:v}),e[30]=o,e[31]=v,e[32]=w,e[33]=A):A=e[33],A}function K(r){const e=k.c(18);let s,t,o,a,n,d,g,l;e[0]!==r?({shape:a,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=r,e[0]=r,e[1]=s,e[2]=t,e[3]=o,e[4]=a,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],a=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=a===void 0?"square":a,h=n===void 0?"base":n,u=d===void 0?"cover":d,j=g===void 0?!1:g,x=h??"base";let f;return e[9]!==s||e[10]!==t||e[11]!==j||e[12]!==u||e[13]!==o||e[14]!==b||e[15]!==x||e[16]!==l?(f=i.jsx(J,{shape:b,url:l,fallback:t,size:x,objectFit:u,className:s,muted:j,...o}),e[9]=s,e[10]=t,e[11]=j,e[12]=u,e[13]=o,e[14]=b,e[15]=x,e[16]=l,e[17]=f):f=e[17],f}K.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:m(I({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{K as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,l as u,j as g,bd as v,bC as b}from"./index-
|
|
1
|
+
import{c as l,l as u,j as g,bd as v,bC as b}from"./index-DPoJjXEa.js";const f=b("inline-flex items-center justify-center rounded-full border text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",warning:"border-transparent bg-warning text-warning-foreground [a&]:hover:bg-warning/90 focus-visible:ring-warning/20 dark:focus-visible:ring-warning/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"},size:{default:"px-2 py-0.5",icon:"size-5"}},defaultVariants:{variant:"default",size:"default"}});function h(c){const e=l.c(14);let r,s,i,n,t;e[0]!==c?({className:r,variant:t,size:i,asChild:n,...s}=c,e[0]=c,e[1]=r,e[2]=s,e[3]=i,e[4]=n,e[5]=t):(r=e[1],s=e[2],i=e[3],n=e[4],t=e[5]);const d=(n===void 0?!1:n)?v:"span";let a;e[6]!==r||e[7]!==i||e[8]!==t?(a=u(f({variant:t,size:i}),r),e[6]=r,e[7]=i,e[8]=t,e[9]=a):a=e[9];let o;return e[10]!==d||e[11]!==s||e[12]!==a?(o=g.jsx(d,{"data-slot":"badge",className:a,...s}),e[10]=d,e[11]=s,e[12]=a,e[13]=o):o=e[13],o}export{h as B};
|