decocms 2.316.3 → 2.317.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CIhNxTTl.js → AlertCircle-DBGfLjQw.js} +1 -1
- package/dist/client/assets/{Archive-DOUYQc8s.js → Archive-BKT9Dg_O.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-B1LOVgdw.js → ArrowNarrowLeft-CukpweKs.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BXCPGKW0.js → ArrowUpRight-D9dARFlG.js} +1 -1
- package/dist/client/assets/{Check-CV-PYcTx.js → Check-BXg4TGxE.js} +1 -1
- package/dist/client/assets/{CheckCircle-DSnO-ZRF.js → CheckCircle-Bo4QB9pu.js} +1 -1
- package/dist/client/assets/{ChevronDown-d1XZuPx_.js → ChevronDown-DEP8rKZT.js} +1 -1
- package/dist/client/assets/{ChevronRight-OA6RE0bm.js → ChevronRight-CXiW90Fz.js} +1 -1
- package/dist/client/assets/{ChevronUp-BPXArXn4.js → ChevronUp-BhNdg10c.js} +1 -1
- package/dist/client/assets/{Container-D2TENyxw.js → Container-CxQrLgnS.js} +1 -1
- package/dist/client/assets/{DotsVertical-CkjufnVc.js → DotsVertical-Caoo-NuL.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CdHsorDG.js → LayoutLeft-Br6mPXCN.js} +1 -1
- package/dist/client/assets/{LinkExternal01-C_Dp-9up.js → LinkExternal01-FDsQXojs.js} +1 -1
- package/dist/client/assets/{Lock01-DbAsRqsB.js → Lock01-CjoGpFGs.js} +1 -1
- package/dist/client/assets/{Palette-TGj5HRZ0.js → Palette-C1Yvme6Z.js} +1 -1
- package/dist/client/assets/{Play-Bqd6KoLL.js → Play-BFNsKgtb.js} +1 -1
- package/dist/client/assets/{Plus-DU1c_qIh.js → Plus-BPcc_-zf.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-D_ZQRj8n.js → RefreshCcw01-DebjkWfq.js} +1 -1
- package/dist/client/assets/{SearchMd-D2HCX03E.js → SearchMd-CePuFGwO.js} +1 -1
- package/dist/client/assets/{Settings02-DvgEzqo-.js → Settings02-B5jIAnK4.js} +1 -1
- package/dist/client/assets/{Shield01-Bam4M-YR.js → Shield01-CKYDfpKE.js} +1 -1
- package/dist/client/assets/{Star01-eRHoMpoz.js → Star01-CxJjtPnY.js} +1 -1
- package/dist/client/assets/{Sun-CK-d8u_d.js → Sun-CBmGK6wu.js} +1 -1
- package/dist/client/assets/{Tool01-DXA_DwTO.js → Tool01-YKVy1yNP.js} +1 -1
- package/dist/client/assets/{Trash01-C98MAtHO.js → Trash01--KbsY2dn.js} +1 -1
- package/dist/client/assets/{User01-Ci3O3rgG.js → User01-BLvWkS9e.js} +1 -1
- package/dist/client/assets/{Users03-BE87UJzh.js → Users03-C4su_vOM.js} +1 -1
- package/dist/client/assets/{X-C8gNxXPZ.js → X-CNAnrf0f.js} +1 -1
- package/dist/client/assets/{XCircle-DcF4hahE.js → XCircle-QSJN9xhv.js} +1 -1
- package/dist/client/assets/{XClose-DM_WC7Hv.js → XClose-CPKu5cnb.js} +1 -1
- package/dist/client/assets/{Zap-BtcijgPp.js → Zap-B4MS-NKo.js} +1 -1
- package/dist/client/assets/{ZapSquare-ugGzur7h.js → ZapSquare-D07uWeTi.js} +1 -1
- package/dist/client/assets/{accordion-eVPt3AxV.js → accordion-DK_H38Gy.js} +1 -1
- package/dist/client/assets/{agent-icon-BaSFWyhf.js → agent-icon-ChigV_SM.js} +1 -1
- package/dist/client/assets/{agents-list-Bs-Qg8TC.js → agents-list-CQyCCUIN.js} +1 -1
- package/dist/client/assets/{ai-providers-goX3mYeT.js → ai-providers-D8YlgZiZ.js} +1 -1
- package/dist/client/assets/{alert-dialog-B28bzmjR.js → alert-dialog-B-CFL8EO.js} +1 -1
- package/dist/client/assets/{auth-catchall-D8AsZk2D.js → auth-catchall-CI1pA1WK.js} +1 -1
- package/dist/client/assets/{automation-list-row-Cw-nvI9t.js → automation-list-row-exexu0fc.js} +1 -1
- package/dist/client/assets/{automations-CIogEm_v.js → automations-Ch8DHfAX.js} +1 -1
- package/dist/client/assets/{avatar-BccIYZD6.js → avatar-DLcW-A0B.js} +1 -1
- package/dist/client/assets/{badge-B7UYPtu8.js → badge-Bovdptse.js} +1 -1
- package/dist/client/assets/{brand-context-GjgBMUq2.js → brand-context-BEky_t3d.js} +1 -1
- package/dist/client/assets/{card-e_SApZv-.js → card-Bij24Dhu.js} +1 -1
- package/dist/client/assets/{chat-context-BGitM-1g.js → chat-context-C_XiURbM.js} +1 -1
- package/dist/client/assets/{checkbox-BwDKjjzH.js → checkbox-DepLdWR1.js} +1 -1
- package/dist/client/assets/{collection-detail-CWgaM8qe.js → collection-detail-CWWkHJjz.js} +1 -1
- package/dist/client/assets/{collection-display-button-C5UVbYH9.js → collection-display-button-U6oQljTt.js} +1 -1
- package/dist/client/assets/{collection-search-BSC882az.js → collection-search-BCf7pr5A.js} +1 -1
- package/dist/client/assets/{collection-search-CXkehpMy.js → collection-search-oUHE77Ko.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DBwS-ncE.js → collection-table-wrapper-CIXt2Qna.js} +1 -1
- package/dist/client/assets/{collection-tabs-BIBHPtug.js → collection-tabs-CHoGEXEE.js} +1 -1
- package/dist/client/assets/{collections-CgxUTBvp.js → collections-DbmVPIqC.js} +1 -1
- package/dist/client/assets/{command-DTQGiHmi.js → command-BJXJqdxz.js} +1 -1
- package/dist/client/assets/{connection-card-BrngMsBW.js → connection-card-DvWQmocE.js} +1 -1
- package/dist/client/assets/{connection-detail-CCeKFmMl.js → connection-detail-DMePaT7A.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DlHOUpQU.js → connection-form-helpers-z7ekyahw.js} +1 -1
- package/dist/client/assets/{connections-BZs9OYYi.js → connections-C2W6I3Kx.js} +1 -1
- package/dist/client/assets/{constants-CiNOCN3_.js → constants-CrCZOO5F.js} +1 -1
- package/dist/client/assets/{constants-aoAzOZlb.js → constants-D2ruRIzu.js} +1 -1
- package/dist/client/assets/{dialog-D9JDljl1.js → dialog-zxbh5ng1.js} +1 -1
- package/dist/client/assets/{domain-settings-b037kHqN.js → domain-settings-CG6GaRrK.js} +1 -1
- package/dist/client/assets/{drawer-CPYyZD60.js → drawer-DNDd7AZJ.js} +1 -1
- package/dist/client/assets/{dropdown-menu-v2GBEFa6.js → dropdown-menu-BHUBCwIp.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DmLmlikq.js → dynamic-plugin-layout-DuN_fdev.js} +1 -1
- package/dist/client/assets/{empty-state-DzxY5CBA.js → empty-state-16qSOU0O.js} +1 -1
- package/dist/client/assets/{empty-state-Qo0QLKm5.js → empty-state-9cIH1OSj.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C2xJ0Fj_.js → extract-connection-data-CA-1nswb.js} +1 -1
- package/dist/client/assets/{features-_6JkrMwd.js → features-CemeaDAi.js} +1 -1
- package/dist/client/assets/{form-B4UBGEp5.js → form-DK_rcfC8.js} +1 -1
- package/dist/client/assets/{general-BHYjmLRM.js → general-C8mtE7AK.js} +1 -1
- package/dist/client/assets/{index-yZgZglUT.js → index-77yxUsUU.js} +1 -1
- package/dist/client/assets/{index-Ciepzli1.js → index-7mIMVlht.js} +9 -9
- package/dist/client/assets/{index-C45moMcG.js → index-B19uc8uS.js} +1 -1
- package/dist/client/assets/{index-DTJ_e6nL.js → index-BOMQKZYe.js} +1 -1
- package/dist/client/assets/index-BSzZmTb_.js +1 -0
- package/dist/client/assets/{index-cnKKVRZj.js → index-By1GUFmc.js} +1 -1
- package/dist/client/assets/index-C-NbBgOF.js +1 -0
- package/dist/client/assets/{index-DoCu980b.js → index-CCt7tyZ0.js} +1 -1
- package/dist/client/assets/{index-D379-Ra5.js → index-CEKdquZV.js} +1 -1
- package/dist/client/assets/{index-CNmK2UE6.js → index-CLwT6SqX.js} +1 -1
- package/dist/client/assets/{index--m7BENdv.js → index-CMD-gSoU.js} +1 -1
- package/dist/client/assets/{index-DXRwI8-Q.js → index-CVz9D9gf.js} +1 -1
- package/dist/client/assets/{index-CsB6QrBB.js → index-CzOMQ7ME.js} +2 -2
- package/dist/client/assets/index-D8oXDizB.js +1 -0
- package/dist/client/assets/index-DHNiGAXq.js +547 -0
- package/dist/client/assets/index-DtJ8d1aI.css +1 -0
- package/dist/client/assets/{index-B85sFotX.js → index-nTgL534f.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-C-liTxtI.js → infiniteQueryObserver-C3rVl4tZ.js} +1 -1
- package/dist/client/assets/{input-C-eXOMYP.js → input-B0c-2DIW.js} +1 -1
- package/dist/client/assets/{integration-icon-Ckowj_b4.js → integration-icon-BaScZvO6.js} +1 -1
- package/dist/client/assets/{label-C3Wj5fRJ.js → label-gqBY6uyz.js} +1 -1
- package/dist/client/assets/{layout-DyhaKtIo.js → layout-CYKmcI2j.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-B7oEpItL.js → lean-canvas-recruit-modal-CHTxHUjM.js} +1 -1
- package/dist/client/assets/{login-BfSyXKzY.js → login-DClTL_nN.js} +1 -1
- package/dist/client/assets/{members-2l-bN7R0.js → members-DhsQ9190.js} +1 -1
- package/dist/client/assets/{monaco-editor-2DI4BCuN.js → monaco-editor-BBalufRy.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-O0i0E0sX.js → monitoring-stats-row-Dv-X2RbZ.js} +1 -1
- package/dist/client/assets/{oauth-callback-FXnsziuV.js → oauth-callback-B-3DKhKg.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B_mMMBGP.js → oauth-callback-ai-provider-Bkh9HG7z.js} +1 -1
- package/dist/client/assets/{onboarding-C3R9iT7_.js → onboarding-D7bymWNF.js} +1 -1
- package/dist/client/assets/{org-layout-C5vsvaCJ.js → org-layout-CYfpIgy5.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-TVmKREDe.js → org-plugin-layout-C8RFioa3.js} +1 -1
- package/dist/client/assets/{pair-C-p-DbTv.js → pair-Bg3A59Mm.js} +2 -2
- package/dist/client/assets/{plugin-empty-state-DsUYr3t-.js → plugin-empty-state-BrALBpmq.js} +1 -1
- package/dist/client/assets/{plugin-header-92zfiruf.js → plugin-header-ClLf_cJL.js} +1 -1
- package/dist/client/assets/{plugin-layout-Ci2Gezpo.js → plugin-layout-C1cPizmH.js} +1 -1
- package/dist/client/assets/{popover-DaEdoMLv.js → popover-DVDtU_6G.js} +1 -1
- package/dist/client/assets/{profile-C64u-o9k.js → profile-OTfGZyjY.js} +1 -1
- package/dist/client/assets/{project-app-view-__Y1p7Pu.js → project-app-view-C5TQg2cG.js} +1 -1
- package/dist/client/assets/registry-CXDPGCG2.js +2 -0
- package/dist/client/assets/{registry-layout-BA3b7Khm.js → registry-layout-CmjO7_QP.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CKWnvSJk.js → required-auth-layout-BRR_6ANi.js} +1 -1
- package/dist/client/assets/{reset-password-BqmAkVAO.js → reset-password-BIYV3F1f.js} +1 -1
- package/dist/client/assets/{roles-99Si_WzF.js → roles-DjfHoeEL.js} +1 -1
- package/dist/client/assets/{scroll-area-BMqRsz1X.js → scroll-area-9lFTzWCb.js} +1 -1
- package/dist/client/assets/{search-input-DsCiCzet.js → search-input-BWH3fQpv.js} +1 -1
- package/dist/client/assets/{select-B7los4LB.js → select-Ilj6kxB7.js} +1 -1
- package/dist/client/assets/{select-model-CC6Vrb5m.js → select-model-Ca5uLyFK.js} +1 -1
- package/dist/client/assets/{settings-layout-nfV08EHo.js → settings-layout-DGVGgKqW.js} +1 -1
- package/dist/client/assets/{settings-section-CkhTzM-S.js → settings-section-DfJOrTB5.js} +1 -1
- package/dist/client/assets/{shell-layout-kk9CghF9.js → shell-layout-DbyGG6Wz.js} +1 -1
- package/dist/client/assets/{sidebar-YQQk47mU.js → sidebar-CHkSPfi1.js} +1 -1
- package/dist/client/assets/{skeleton-DyIf1f58.js → skeleton-BhYsT5bA.js} +1 -1
- package/dist/client/assets/{spinner-Cx3i9jg1.js → spinner-DRDdaYJh.js} +1 -1
- package/dist/client/assets/{sso-BdnItz6L.js → sso-BWvJitB4.js} +1 -1
- package/dist/client/assets/{store-BkZwsjod.js → store-CRnNdTmg.js} +1 -1
- package/dist/client/assets/store-registry-6e--RkKu.js +2 -0
- package/dist/client/assets/{switch-Ba58imnw.js → switch-MdXM9LTQ.js} +1 -1
- package/dist/client/assets/{table-BR31N60P.js → table-DqMsTisq.js} +1 -1
- package/dist/client/assets/{tabs-DgJzKZHT.js → tabs-BOCdrF2i.js} +1 -1
- package/dist/client/assets/{task-status-BAiKcdqG.js → task-status-BMDGQef8.js} +1 -1
- package/dist/client/assets/{textarea-CT2Jghcd.js → textarea-BqfIjmtd.js} +1 -1
- package/dist/client/assets/{toggle-group-BwCswIiA.js → toggle-group-i_HO-0bV.js} +1 -1
- package/dist/client/assets/{tools-list-Dkz550hJ.js → tools-list-BdLDYsTK.js} +1 -1
- package/dist/client/assets/{tooltip-v9goNoMa.js → tooltip-Dk-x7ks3.js} +1 -1
- package/dist/client/assets/{types-D30V4GBK.js → types-G67jsjMK.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DuJ557zy.js → use-ai-providers-Bo9kqLtW.js} +1 -1
- package/dist/client/assets/{use-collections-CfoSjDkZ.js → use-collections-DaGR-TK3.js} +1 -1
- package/dist/client/assets/{use-connection-CL8Sz4aB.js → use-connection-Bw3IdOYX.js} +1 -1
- package/dist/client/assets/{use-copy-9B_lKCQP.js → use-copy-B-uFxHk6.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B4YkhF26.js → use-create-virtual-mcp-CCKFB_a7.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CnKA4yL_.js → use-debounced-autosave-T0GvbwUO.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CKsjNSwH.js → use-decopilot-events-Co1GYuP2.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CdrzrkWw.js → use-delete-connection-kRigiWM3.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BYU0Szfl.js → use-infinite-scroll-BNHelzzC.js} +1 -1
- package/dist/client/assets/{use-list-state-BV6nWWeI.js → use-list-state-DUJmWeK2.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C0h3zeNG.js → use-mcp-tools-DVY8KcMA.js} +1 -1
- package/dist/client/assets/{use-members-Bc88CE0J.js → use-members-BgQ7Ica2.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-D3pu_YG_.js → use-navigate-to-agent-BQ5qza3f.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DKocDk2P.js → use-org-auth-client-CJlh_N8L.js} +1 -1
- package/dist/client/assets/{use-org-sso-Cow3Y2YN.js → use-org-sso-B3swYyz4.js} +1 -1
- package/dist/client/assets/{use-organization-roles-B-MXbHky.js → use-organization-roles-BIsWMlMh.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BtgJutO3.js → use-organization-settings-BMveAMB5.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CGJfCg9t.js → use-registry-connections-Cld8pkRO.js} +1 -1
- package/dist/client/assets/{use-status-sounds-IPRVjHSk.js → use-status-sounds-DsCr5ian.js} +1 -1
- package/dist/client/assets/{use-tasks-LPt7s23P.js → use-tasks-ChwW8r_K.js} +1 -1
- package/dist/client/assets/{use-view-mode-NK71s2Nx.js → use-view-mode-MWDbD9TW.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CcbuH5vn.js → use-virtual-mcp-lxX8wI4d.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ImrWnFFo.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CpJJnQ6p.js +1 -0
- package/dist/client/assets/{user-CHg0uxVs.js → user-BesiartC.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Ck5p4f38.js → view-mode-toggle-Dn0_DV4a.js} +1 -1
- package/dist/client/assets/{workflow-DBHhsoUK.js → workflow-8tifDY_U.js} +1 -1
- package/dist/client/assets/workflow-detail-8AQCTpUe.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/dist/server/node_modules/get-east-asian-width/index.js +30 -0
- package/dist/server/node_modules/get-east-asian-width/lookup-data.js +18 -0
- package/dist/server/node_modules/get-east-asian-width/lookup.js +135 -0
- package/dist/server/node_modules/get-east-asian-width/package.json +71 -0
- package/dist/server/node_modules/get-east-asian-width/readme.md +65 -0
- package/dist/server/node_modules/get-east-asian-width/utilities.js +24 -0
- package/package.json +1 -1
- package/dist/client/assets/index-9VIcQuRp.js +0 -1
- package/dist/client/assets/index-BJOFaTKm.js +0 -1
- package/dist/client/assets/index-Bo94M6wo.css +0 -1
- package/dist/client/assets/index-D5NG6paH.js +0 -547
- package/dist/client/assets/index-DW1EySXD.js +0 -1
- package/dist/client/assets/registry-LJpFNvAF.js +0 -2
- package/dist/client/assets/store-registry-Dr7mJzaG.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BIRZrmWs.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Bq4CZEUT.js +0 -1
- package/dist/client/assets/workflow-detail-BIpbk5VT.js +0 -1
- package/dist/server/node_modules/ansi-styles/index.d.ts +0 -236
- package/dist/server/node_modules/ansi-styles/index.js +0 -223
- package/dist/server/node_modules/ansi-styles/package.json +0 -54
- package/dist/server/node_modules/ansi-styles/readme.md +0 -173
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
- package/dist/server/node_modules/is-fullwidth-code-point/license +0 -9
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
- package/dist/server/node_modules/onetime/index.d.ts +0 -64
- package/dist/server/node_modules/onetime/index.js +0 -44
- package/dist/server/node_modules/onetime/license +0 -9
- package/dist/server/node_modules/onetime/package.json +0 -43
- package/dist/server/node_modules/onetime/readme.md +0 -94
- package/dist/server/node_modules/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/LICENSE +0 -20
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
- /package/dist/server/node_modules/{ansi-styles → get-east-asian-width}/license +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ne,c as Re,j as h,ba as lc,bb as _t,bc as tr,r as fe,bd as pS,B as uc,t as fS,s as cc,o as mS,a as gS,K as At,x as hS,n as dc,f as bS,E as ES,M as TS,be as TE}from"./index-CsB6QrBB.js";import{Z as SS,_ as yS,$ as _S,V as AS,a0 as kS,v as IS,T as NS,F as ld,a1 as RS,a2 as CS,L as xS,U as SE,a3 as vS,a4 as wS,a5 as OS,a6 as LS,a7 as DS}from"./agent-icon-BaSFWyhf.js";import{b as MS,i as PS,a as Lr,t as pc}from"./Tool01-DXA_DwTO.js";import{n as fc,c as pr,b as FS,t as BS,h as US}from"./XCircle-DcF4hahE.js";import{i as On}from"./Check-CV-PYcTx.js";import{i as ud}from"./ChevronRight-OA6RE0bm.js";import{N as yE,R as _E,e as AE,C as HS,f as $S,g as qS,c as GS,i as zS,d as jS}from"./index-B85sFotX.js";import{u as kE}from"./use-copy-9B_lKCQP.js";import{T as Ot,a as Lt,b as Dt}from"./tooltip-v9goNoMa.js";import{d as VS}from"./differenceInSeconds-NQ4PDo0z.js";import{b as WS,f as YS,g as KS,d as XS}from"./dialog-D9JDljl1.js";import{c as ZS}from"./content-blocks-o63cs2vh.js";import{g as IE,M as QS}from"./types-D30V4GBK.js";import{g as NE,k as JS,a as ey,h as ty}from"./chat-context-BGitM-1g.js";import{S as ny,u as RE,c as ry}from"./constants-CiNOCN3_.js";import{i as CE}from"./AlertCircle-CIhNxTTl.js";import{s as ay}from"./RefreshCcw01-D_ZQRj8n.js";import{s as nr}from"./Star01-eRHoMpoz.js";import{s as iy}from"./XClose-DM_WC7Hv.js";import{c as xE}from"./ZapSquare-ugGzur7h.js";import{i as sy}from"./Sun-CK-d8u_d.js";import{i as oy}from"./SearchMd-D2HCX03E.js";import{u as ly}from"./shell-layout-kk9CghF9.js";import{n as uy}from"./LinkExternal01-C_Dp-9up.js";import{I as vE}from"./integration-icon-Ckowj_b4.js";import{u as cy}from"./use-virtual-mcp-CcbuH5vn.js";import{a as wE}from"./Users03-BE87UJzh.js";const dy={openrouter:e=>{const t=e?.openrouter;return typeof t=="object"&&t!==null&&"usage"in t&&typeof t.usage=="object"&&t.usage!==null&&"cost"in t.usage&&typeof t.usage.cost=="number"?t.usage.cost:null}};function OE(e){if(!e?.providerMetadata)return 0;for(const t of Object.values(dy)){const n=t(e.providerMetadata);if(n!==null)return n}return 0}function LE(){return{inputTokens:0,outputTokens:0,reasoningTokens:0,totalTokens:0,cost:0,cacheReadTokens:0,cacheWriteTokens:0}}function DE(e,t){if(!t)return e;const n=t.inputTokenDetails?.cacheReadTokens??t.cachedInputTokens??0,r=t.inputTokenDetails?.cacheWriteTokens??0;return{inputTokens:e.inputTokens+(t.inputTokens??0),outputTokens:e.outputTokens+(t.outputTokens??0),reasoningTokens:e.reasoningTokens+(t.reasoningTokens??0),totalTokens:e.totalTokens+(t.totalTokens??0),cost:e.cost+OE(t),cacheReadTokens:e.cacheReadTokens+n,cacheWriteTokens:e.cacheWriteTokens+r}}function bB(e){return e.reduce((t,n)=>DE(t,n.metadata?.usage),LE())}function py(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function ME(e,t){return`app:${e}:${t}`}function EB(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),n=t.indexOf(":");if(n<=0)return null;const r=t.slice(0,n),a=t.slice(n+1);return!r||!a?null:{connectionId:r,toolName:a}}const fy=["settings","automations","preview","git"],my=new Set(fy),mc=new Set(["instructions","connections","layout","settings"]);function TB(e){return!!e&&mc.has(e)}function gy(e){const t=e?.defaultMainView??null;if(!t||mc.has(t.type))return"settings";if(my.has(t.type))return t.type;if(t.type==="ext-app"||t.type==="ext-apps"){if(t.id&&t.toolName)return ME(t.id,t.toolName);const n=e?.tabs?.map(r=>r.id)??[];return t.id&&n.includes(t.id)?t.id:n[0]??"settings"}return e?.tabs?.[0]?.id??"settings"}function SB(e){const t=gy(e.metadata);if(e.mainParam==="0")return{mainOpen:!1,activeTab:t};if(e.mainParam===void 0){const n=e.metadata?.defaultMainView??null;return{mainOpen:!(n==null||n.type==="chat"),activeTab:t}}return mc.has(e.mainParam)?{mainOpen:!0,activeTab:"settings"}:{mainOpen:!0,activeTab:e.mainParam}}function yB(e){return e.mainOpen&&e.clickedId===e.activeTab?"0":e.clickedId}function _B(e){return e.mainOpen?e.activeTab==="automations"?!0:py(e.activeTab)!==null:!1}function AB(e){return e.mainOpen&&e.activeTab==="automations"?"0":"automations"}function hy(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function by(e){if(e&&typeof e=="object"&&"gatewayClientId"in e&&typeof e.gatewayClientId=="string")return e.gatewayClientId}function PE(e,t){if(!t)return e;const n=`${hy(t)}_`;return e.startsWith(n)?e.slice(n.length):e}function kB(e,t){return PE(e,t).replace(/[_-]/g," ").toLowerCase()}function IB(e){const t=VS(new Date,e);return t<60?"<1m":t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:t<604800?`${Math.floor(t/86400)}d ago`:t<2592e3?`${Math.floor(t/604800)}w ago`:t<31536e3?`${Math.floor(t/2592e3)}mo ago`:`${Math.floor(t/31536e3)}y ago`}function Kt(e){if(e<60)return`${e.toFixed(1)}s`;const t=Math.round(e%60*10)/10,n=t>=60?1:0;return`${Math.floor(e/60)+n}m ${(n?0:t).toFixed(1)}s`}function FE(e){return e?e.replace(/[_-]/g," ").toLowerCase().split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "):""}function fr(e,t){return e==="output-error"?"error":e==="approval-requested"?"approval":e==="input-streaming"||e==="input-available"||e==="output-available"&&t===!0?"loading":"idle"}function NB(e,t,n){e.chain().focus().insertContentAt(t,[Ey(n),{type:"text",text:" "}]).run()}function Ey(e){return{type:"mention",attrs:e}}function Ty(e){const t=ne.c(9),{node:n,selected:r,view:a}=e,{name:i,char:s}=n.attrs,o=r&&a.editable,u=s==="@"?"bg-violet-100 text-violet-700 dark:bg-violet-900/30 dark:text-violet-400":"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-300",c=o&&"outline-2 outline-blue-300 outline-offset-0";let d;t[0]!==u||t[1]!==c?(d=Re("px-1 py-1 rounded","inline-flex items-center gap-1","cursor-default select-none","text-xs font-light",u,c,"capitalize"),t[0]=u,t[1]=c,t[2]=d):d=t[2];let f;t[3]!==i?(f=i?FE(i):"",t[3]=i,t[4]=f):f=t[4];let m;return t[5]!==s||t[6]!==d||t[7]!==f?(m=h.jsxs(AE,{className:d,children:[s,f]}),t[5]=s,t[6]=d,t[7]=f,t[8]=m):m=t[8],m}const Sy=yE.create({name:"mention",group:"inline",inline:!0,atom:!0,addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute("data-id")||null,renderHTML:e=>e.id?{"data-id":e.id}:{}},name:{default:null,parseHTML:e=>e.getAttribute("data-name")||null,renderHTML:e=>e.name?{"data-name":e.name}:{}},char:{default:"/",parseHTML:e=>e.getAttribute("data-char")||"/",renderHTML:e=>e.char?{"data-char":e.char}:{}},metadata:{default:null,parseHTML:e=>{try{return JSON.parse(e.getAttribute("data-metadata")||"null")}catch{return null}},renderHTML:e=>e.metadata?{"data-metadata":JSON.stringify(e.metadata)}:{}}}},parseHTML(){return[{tag:'span[data-type="mention"]'}]},renderHTML({node:e,HTMLAttributes:t}){const n={"data-type":"mention"};return e.attrs.id&&(n["data-id"]=e.attrs.id),e.attrs.name&&(n["data-name"]=e.attrs.name),e.attrs.char&&(n["data-char"]=e.attrs.char),e.attrs.metadata&&(n["data-metadata"]=JSON.stringify(e.attrs.metadata)),["span",{...t,...n}]},renderText({node:e}){const t=e.attrs.char??"@",n=e.attrs.name??"";return`${t}${n}`},addNodeView(){return _E(Ty)}}),yy=/^mcp__[a-zA-Z0-9_-]+__/;function BE(e){return e.replace(yy,"")}function gc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ft=gc();function UE(e){Ft=e}var En={exec:()=>null};function me(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(ze.caret,"$1"),n=n.replace(a,s),r},getRegex:()=>new RegExp(n,t)};return r}var ze={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},_y=/^(?:[ \t]*(?:\n|$))+/,Ay=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ky=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ln=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Iy=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hc=/(?:[*+-]|\d{1,9}[.)])/,HE=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,$E=me(HE).replace(/bull/g,hc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ny=me(HE).replace(/bull/g,hc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),bc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ry=/^[^\n]+/,Ec=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Cy=me(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ec).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),xy=me(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,hc).getRegex(),mr="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Tc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,vy=me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Tc).replace("tag",mr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qE=me(bc).replace("hr",Ln).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex(),wy=me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",qE).getRegex(),Sc={blockquote:wy,code:Ay,def:Cy,fences:ky,heading:Iy,hr:Ln,html:vy,lheading:$E,list:xy,newline:_y,paragraph:qE,table:En,text:Ry},cd=me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ln).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex(),Oy={...Sc,lheading:Ny,table:cd,paragraph:me(bc).replace("hr",Ln).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",cd).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex()},Ly={...Sc,html:me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Tc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:En,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:me(bc).replace("hr",Ln).replace("heading",` *#{1,6} *[^
|
|
1
|
+
import{e as ne,c as Re,j as h,ba as lc,bb as _t,bc as tr,r as fe,bd as pS,B as uc,t as fS,s as cc,o as mS,a as gS,K as At,x as hS,n as dc,f as bS,E as ES,M as TS,be as TE}from"./index-CzOMQ7ME.js";import{Z as SS,_ as yS,$ as _S,V as AS,a0 as kS,v as IS,T as NS,F as ld,a1 as RS,a2 as CS,L as xS,U as SE,a3 as vS,a4 as wS,a5 as OS,a6 as LS,a7 as DS}from"./agent-icon-ChigV_SM.js";import{b as MS,i as PS,a as Lr,t as pc}from"./Tool01-YKVy1yNP.js";import{n as fc,c as pr,b as FS,t as BS,h as US}from"./XCircle-QSJN9xhv.js";import{i as On}from"./Check-BXg4TGxE.js";import{i as ud}from"./ChevronRight-CXiW90Fz.js";import{N as yE,R as _E,e as AE,C as HS,f as $S,g as qS,c as GS,i as zS,d as jS}from"./index-nTgL534f.js";import{u as kE}from"./use-copy-B-uFxHk6.js";import{T as Ot,a as Lt,b as Dt}from"./tooltip-Dk-x7ks3.js";import{d as VS}from"./differenceInSeconds-NQ4PDo0z.js";import{b as WS,f as YS,g as KS,d as XS}from"./dialog-zxbh5ng1.js";import{c as ZS}from"./content-blocks-o63cs2vh.js";import{g as IE,M as QS}from"./types-G67jsjMK.js";import{g as NE,k as JS,a as ey,h as ty}from"./chat-context-C_XiURbM.js";import{S as ny,u as RE,c as ry}from"./constants-CrCZOO5F.js";import{i as CE}from"./AlertCircle-DBGfLjQw.js";import{s as ay}from"./RefreshCcw01-DebjkWfq.js";import{s as nr}from"./Star01-CxJjtPnY.js";import{s as iy}from"./XClose-CPKu5cnb.js";import{c as xE}from"./ZapSquare-D07uWeTi.js";import{i as sy}from"./Sun-CBmGK6wu.js";import{i as oy}from"./SearchMd-CePuFGwO.js";import{u as ly}from"./shell-layout-DbyGG6Wz.js";import{n as uy}from"./LinkExternal01-FDsQXojs.js";import{I as vE}from"./integration-icon-BaScZvO6.js";import{u as cy}from"./use-virtual-mcp-lxX8wI4d.js";import{a as wE}from"./Users03-C4su_vOM.js";const dy={openrouter:e=>{const t=e?.openrouter;return typeof t=="object"&&t!==null&&"usage"in t&&typeof t.usage=="object"&&t.usage!==null&&"cost"in t.usage&&typeof t.usage.cost=="number"?t.usage.cost:null}};function OE(e){if(!e?.providerMetadata)return 0;for(const t of Object.values(dy)){const n=t(e.providerMetadata);if(n!==null)return n}return 0}function LE(){return{inputTokens:0,outputTokens:0,reasoningTokens:0,totalTokens:0,cost:0,cacheReadTokens:0,cacheWriteTokens:0}}function DE(e,t){if(!t)return e;const n=t.inputTokenDetails?.cacheReadTokens??t.cachedInputTokens??0,r=t.inputTokenDetails?.cacheWriteTokens??0;return{inputTokens:e.inputTokens+(t.inputTokens??0),outputTokens:e.outputTokens+(t.outputTokens??0),reasoningTokens:e.reasoningTokens+(t.reasoningTokens??0),totalTokens:e.totalTokens+(t.totalTokens??0),cost:e.cost+OE(t),cacheReadTokens:e.cacheReadTokens+n,cacheWriteTokens:e.cacheWriteTokens+r}}function bB(e){return e.reduce((t,n)=>DE(t,n.metadata?.usage),LE())}function py(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function ME(e,t){return`app:${e}:${t}`}function EB(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),n=t.indexOf(":");if(n<=0)return null;const r=t.slice(0,n),a=t.slice(n+1);return!r||!a?null:{connectionId:r,toolName:a}}const fy=["settings","automations","preview","git"],my=new Set(fy),mc=new Set(["instructions","connections","layout","settings"]);function TB(e){return!!e&&mc.has(e)}function gy(e){const t=e?.defaultMainView??null;if(!t||mc.has(t.type))return"settings";if(my.has(t.type))return t.type;if(t.type==="ext-app"||t.type==="ext-apps"){if(t.id&&t.toolName)return ME(t.id,t.toolName);const n=e?.tabs?.map(r=>r.id)??[];return t.id&&n.includes(t.id)?t.id:n[0]??"settings"}return e?.tabs?.[0]?.id??"settings"}function SB(e){const t=gy(e.metadata);if(e.mainParam==="0")return{mainOpen:!1,activeTab:t};if(e.mainParam===void 0){const n=e.metadata?.defaultMainView??null;return{mainOpen:!(n==null||n.type==="chat"),activeTab:t}}return mc.has(e.mainParam)?{mainOpen:!0,activeTab:"settings"}:{mainOpen:!0,activeTab:e.mainParam}}function yB(e){return e.mainOpen&&e.clickedId===e.activeTab?"0":e.clickedId}function _B(e){return e.mainOpen?e.activeTab==="automations"?!0:py(e.activeTab)!==null:!1}function AB(e){return e.mainOpen&&e.activeTab==="automations"?"0":"automations"}function hy(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function by(e){if(e&&typeof e=="object"&&"gatewayClientId"in e&&typeof e.gatewayClientId=="string")return e.gatewayClientId}function PE(e,t){if(!t)return e;const n=`${hy(t)}_`;return e.startsWith(n)?e.slice(n.length):e}function kB(e,t){return PE(e,t).replace(/[_-]/g," ").toLowerCase()}function IB(e){const t=VS(new Date,e);return t<60?"<1m":t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:t<604800?`${Math.floor(t/86400)}d ago`:t<2592e3?`${Math.floor(t/604800)}w ago`:t<31536e3?`${Math.floor(t/2592e3)}mo ago`:`${Math.floor(t/31536e3)}y ago`}function Kt(e){if(e<60)return`${e.toFixed(1)}s`;const t=Math.round(e%60*10)/10,n=t>=60?1:0;return`${Math.floor(e/60)+n}m ${(n?0:t).toFixed(1)}s`}function FE(e){return e?e.replace(/[_-]/g," ").toLowerCase().split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "):""}function fr(e,t){return e==="output-error"?"error":e==="approval-requested"?"approval":e==="input-streaming"||e==="input-available"||e==="output-available"&&t===!0?"loading":"idle"}function NB(e,t,n){e.chain().focus().insertContentAt(t,[Ey(n),{type:"text",text:" "}]).run()}function Ey(e){return{type:"mention",attrs:e}}function Ty(e){const t=ne.c(9),{node:n,selected:r,view:a}=e,{name:i,char:s}=n.attrs,o=r&&a.editable,u=s==="@"?"bg-violet-100 text-violet-700 dark:bg-violet-900/30 dark:text-violet-400":"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-300",c=o&&"outline-2 outline-blue-300 outline-offset-0";let d;t[0]!==u||t[1]!==c?(d=Re("px-1 py-1 rounded","inline-flex items-center gap-1","cursor-default select-none","text-xs font-light",u,c,"capitalize"),t[0]=u,t[1]=c,t[2]=d):d=t[2];let f;t[3]!==i?(f=i?FE(i):"",t[3]=i,t[4]=f):f=t[4];let m;return t[5]!==s||t[6]!==d||t[7]!==f?(m=h.jsxs(AE,{className:d,children:[s,f]}),t[5]=s,t[6]=d,t[7]=f,t[8]=m):m=t[8],m}const Sy=yE.create({name:"mention",group:"inline",inline:!0,atom:!0,addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute("data-id")||null,renderHTML:e=>e.id?{"data-id":e.id}:{}},name:{default:null,parseHTML:e=>e.getAttribute("data-name")||null,renderHTML:e=>e.name?{"data-name":e.name}:{}},char:{default:"/",parseHTML:e=>e.getAttribute("data-char")||"/",renderHTML:e=>e.char?{"data-char":e.char}:{}},metadata:{default:null,parseHTML:e=>{try{return JSON.parse(e.getAttribute("data-metadata")||"null")}catch{return null}},renderHTML:e=>e.metadata?{"data-metadata":JSON.stringify(e.metadata)}:{}}}},parseHTML(){return[{tag:'span[data-type="mention"]'}]},renderHTML({node:e,HTMLAttributes:t}){const n={"data-type":"mention"};return e.attrs.id&&(n["data-id"]=e.attrs.id),e.attrs.name&&(n["data-name"]=e.attrs.name),e.attrs.char&&(n["data-char"]=e.attrs.char),e.attrs.metadata&&(n["data-metadata"]=JSON.stringify(e.attrs.metadata)),["span",{...t,...n}]},renderText({node:e}){const t=e.attrs.char??"@",n=e.attrs.name??"";return`${t}${n}`},addNodeView(){return _E(Ty)}}),yy=/^mcp__[a-zA-Z0-9_-]+__/;function BE(e){return e.replace(yy,"")}function gc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ft=gc();function UE(e){Ft=e}var En={exec:()=>null};function me(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(ze.caret,"$1"),n=n.replace(a,s),r},getRegex:()=>new RegExp(n,t)};return r}var ze={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},_y=/^(?:[ \t]*(?:\n|$))+/,Ay=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ky=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ln=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Iy=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hc=/(?:[*+-]|\d{1,9}[.)])/,HE=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,$E=me(HE).replace(/bull/g,hc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ny=me(HE).replace(/bull/g,hc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),bc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ry=/^[^\n]+/,Ec=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Cy=me(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ec).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),xy=me(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,hc).getRegex(),mr="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Tc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,vy=me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Tc).replace("tag",mr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qE=me(bc).replace("hr",Ln).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex(),wy=me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",qE).getRegex(),Sc={blockquote:wy,code:Ay,def:Cy,fences:ky,heading:Iy,hr:Ln,html:vy,lheading:$E,list:xy,newline:_y,paragraph:qE,table:En,text:Ry},cd=me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ln).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex(),Oy={...Sc,lheading:Ny,table:cd,paragraph:me(bc).replace("hr",Ln).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",cd).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex()},Ly={...Sc,html:me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Tc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:En,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:me(bc).replace("hr",Ln).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",$E).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Dy=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,My=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,GE=/^( {2,}|\\)\n(?!\s*$)/,Py=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,gr=/[\p{P}\p{S}]/u,yc=/[\s\p{P}\p{S}]/u,zE=/[^\s\p{P}\p{S}]/u,Fy=me(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,yc).getRegex(),jE=/(?!~)[\p{P}\p{S}]/u,By=/(?!~)[\s\p{P}\p{S}]/u,Uy=/(?:[^\s\p{P}\p{S}]|~)/u,Hy=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,VE=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,$y=me(VE,"u").replace(/punct/g,gr).getRegex(),qy=me(VE,"u").replace(/punct/g,jE).getRegex(),WE="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Gy=me(WE,"gu").replace(/notPunctSpace/g,zE).replace(/punctSpace/g,yc).replace(/punct/g,gr).getRegex(),zy=me(WE,"gu").replace(/notPunctSpace/g,Uy).replace(/punctSpace/g,By).replace(/punct/g,jE).getRegex(),jy=me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,zE).replace(/punctSpace/g,yc).replace(/punct/g,gr).getRegex(),Vy=me(/\\(punct)/,"gu").replace(/punct/g,gr).getRegex(),Wy=me(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Yy=me(Tc).replace("(?:-->|$)","-->").getRegex(),Ky=me("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Yy).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),rr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Xy=me(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",rr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),YE=me(/^!?\[(label)\]\[(ref)\]/).replace("label",rr).replace("ref",Ec).getRegex(),KE=me(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ec).getRegex(),Zy=me("reflink|nolink(?!\\()","g").replace("reflink",YE).replace("nolink",KE).getRegex(),_c={_backpedal:En,anyPunctuation:Vy,autolink:Wy,blockSkip:Hy,br:GE,code:My,del:En,emStrongLDelim:$y,emStrongRDelimAst:Gy,emStrongRDelimUnd:jy,escape:Dy,link:Xy,nolink:KE,punctuation:Fy,reflink:YE,reflinkSearch:Zy,tag:Ky,text:Py,url:En},Qy={..._c,link:me(/^!?\[(label)\]\((.*?)\)/).replace("label",rr).getRegex(),reflink:me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",rr).getRegex()},Uu={..._c,emStrongRDelimAst:zy,emStrongLDelim:qy,url:me(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Jy={...Uu,br:me(GE).replace("{2,}","*").getRegex(),text:me(Uu.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},$n={normal:Sc,gfm:Oy,pedantic:Ly},un={normal:_c,gfm:Uu,breaks:Jy,pedantic:Qy},e1={"&":"&","<":"<",">":">",'"':""","'":"'"},dd=e=>e1[e];function st(e,t){if(t){if(ze.escapeTest.test(e))return e.replace(ze.escapeReplace,dd)}else if(ze.escapeTestNoEncode.test(e))return e.replace(ze.escapeReplaceNoEncode,dd);return e}function pd(e){try{e=encodeURI(e).replace(ze.percentDecode,"%")}catch{return null}return e}function fd(e,t){const n=e.replace(ze.findPipe,(i,s,o)=>{let l=!1,u=s;for(;--u>=0&&o[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(ze.splitPipe);let a=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;a<r.length;a++)r[a]=r[a].trim().replace(ze.slashPipe,"|");return r}function cn(e,t,n){const r=e.length;if(r===0)return"";let a=0;for(;a<r&&e.charAt(r-a-1)===t;)a++;return e.slice(0,r-a)}function t1(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function md(e,t,n,r,a){const i=t.href,s=t.title||null,o=e[1].replace(a.other.outputLinkReplace,"$1");r.state.inLink=!0;const l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}function n1(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const a=r[1];return t.split(`
|
|
3
3
|
`).map(i=>{const s=i.match(n.other.beginningSpace);if(s===null)return i;const[o]=s;return o.length>=a.length?i.slice(a.length):i}).join(`
|
|
4
4
|
`)}var ar=class{options;rules;lexer;constructor(e){this.options=e||Ft}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:cn(n,`
|
|
@@ -127,4 +127,4 @@ ${f}`;return{fallbackTitle:u,summary:d,usage:t?.usage,latency:n,detail:m,state:l
|
|
|
127
127
|
`).trim().split(`
|
|
128
128
|
`).filter(Boolean),R=a?T[T.length-1]??"":T[0]??"";u=!s&&R?R.length>100?R.slice(0,100)+"…":R:void 0,t[4]=s,t[5]=a,t[6]=r,t[7]=u}else u=t[7];const c=u;let d;if(t[8]!==s||t[9]!==r){const y=r.map(CF).join(`
|
|
129
129
|
|
|
130
|
-
`);d=!s&&y.trim()?y:null,t[8]=s,t[9]=r,t[10]=d}else d=t[10];const f=d,m=!a&&n!=null?n/1e3:void 0;let g;t[11]!==a?(g=a?h.jsx(pc,{className:"size-4"}):h.jsx(LS,{className:"size-4"}),t[11]=a,t[12]=g):g=t[12];const E=a?"Thinking...":l,_=a?"loading":"idle";let S;return t[13]!==f||t[14]!==m||t[15]!==c||t[16]!==g||t[17]!==E||t[18]!==_?(S=h.jsx(ut,{icon:g,title:E,summary:c,detail:f,state:_,detailVariant:"prose",latency:m}),t[13]=f,t[14]=m,t[15]=c,t[16]=g,t[17]=E,t[18]=_,t[19]=S):S=t[19],S}function CF(e){return e.text??""}function xF(e){return e.text??""}function vF(e){return e.text?.includes("REDACTED")}const wF=3;function OF(e,t){let n=-1;for(let r=e.length-1;r>=0;r--){const a=e[r];if(a.kind==="part"&&t[a.index]?.type==="text"){n=r;break}}return n===-1?{collapsed:[],tail:e}:{collapsed:e.slice(0,n),tail:e.slice(n)}}function LF(e,t){let n=0,r=0;for(const a of e)if(a.kind==="reasoning-group")r++;else{const i=t[a.index]?.type;i==="text"?r++:(i==="dynamic-tool"||i?.startsWith("tool-"))&&n++}return{toolCalls:n,messages:r}}function DF(e){const t=ne.c(8),{toolCalls:n,messages:r}=e;let a;t[0]!==r||t[1]!==n?(a=n>0&&h.jsxs(h.Fragment,{children:[h.jsx(US,{className:"size-3.5 shrink-0"}),h.jsxs("span",{children:[n," tool call",n===1?"":"s",r>0?",":""]})]}),t[0]=r,t[1]=n,t[2]=a):a=t[2];let i;t[3]!==r?(i=r>0&&h.jsxs(h.Fragment,{children:[h.jsx(DS,{className:"size-3.5 shrink-0"}),h.jsxs("span",{children:[r," message",r===1?"":"s"]})]}),t[3]=r,t[4]=i):i=t[4];let s;return t[5]!==a||t[6]!==i?(s=h.jsxs("span",{className:"flex items-center gap-1.5 text-muted-foreground",children:[a,i]}),t[5]=a,t[6]=i,t[7]=s):s=t[7],s}function MF(e){const t=ne.c(28),{items:n,message:r,reasoningGroups:a,isReasoningActive:i,totalDuration:s,dataParts:o,isLoading:l,isLast:u}=e;let c;t[0]!==n||t[1]!==r.parts?(c=LF(n,r.parts),t[0]=n,t[1]=r.parts,t[2]=c):c=t[2];const{toolCalls:d,messages:f}=c;if(d===0&&f===0)return null;let m;t[3]!==f||t[4]!==d?(m=h.jsx(DF,{toolCalls:d,messages:f}),t[3]=f,t[4]=d,t[5]=m):m=t[5];let g;if(t[6]!==o||t[7]!==u||t[8]!==l||t[9]!==i||t[10]!==n||t[11]!==r||t[12]!==a||t[13]!==s){let S;t[15]!==o||t[16]!==u||t[17]!==l||t[18]!==i||t[19]!==r||t[20]!==a||t[21]!==s?(S=(y,T)=>cS({item:y,renderIndex:T,message:r,reasoningGroups:a,isReasoningActive:i,totalDuration:s,dataParts:o,isLoading:l,isLast:u,isLastVisiblePart:!1}),t[15]=o,t[16]=u,t[17]=l,t[18]=i,t[19]=r,t[20]=a,t[21]=s,t[22]=S):S=t[22],g=n.map(S),t[6]=o,t[7]=u,t[8]=l,t[9]=i,t[10]=n,t[11]=r,t[12]=a,t[13]=s,t[14]=g}else g=t[14];let E;t[23]!==g?(E=h.jsx("div",{className:"flex flex-col gap-3 sm:gap-2 pt-1",children:g}),t[23]=g,t[24]=E):E=t[24];let _;return t[25]!==m||t[26]!==E?(_=h.jsx(ut,{icon:null,alwaysChevron:!0,title:m,state:"idle",children:E}),t[25]=m,t[26]=E,t[27]=_):_=t[27],_}function cS({item:e,renderIndex:t,message:n,reasoningGroups:r,isReasoningActive:a,totalDuration:i,dataParts:s,isLoading:o,isLast:l,isLastVisiblePart:u,renderOrder:c}){if(e.kind==="reasoning-group"){const{group:g}=e,E=g===r[r.length-1],_=a&&E;if(!g.parts.some(T=>T.text?.trim())&&!_)return null;const y=r.length===1?i:null;return h.jsx(RF,{duration:y,parts:g.parts,isStreaming:_},`${n.id}-reasoning-${g.startIndex}`)}const d=n.parts[e.index],f=u||(c?c.findLastIndex(g=>g.kind==="part")===t:!1),m=f?DE(LE(),n.metadata?.usage):null;return h.jsx(PF,{part:d,id:n.id,usageStats:f&&h.jsx(DP,{usage:m,duration:i}),dataParts:s,isLoading:o,isLastMessage:l},`${n.id}-${e.index}`)}function PF(e){const t=ne.c(73),{part:n,id:r,usageStats:a,dataParts:i,isLoading:s,isLastMessage:o}=e;let l;t[0]!==i.toolMetadata?(l=f=>i.toolMetadata.get(f),t[0]=i.toolMetadata,t[1]=l):l=t[1];const u=l;let c;t[2]!==i.toolSubtaskMetadata?(c=f=>i.toolSubtaskMetadata.get(f),t[2]=i.toolSubtaskMetadata,t[3]=c):c=t[3];const d=c;switch(n.type){case"dynamic-tool":{let f;t[4]!==u||t[5]!==n.toolCallId?(f=u(n.toolCallId)?.annotations,t[4]=u,t[5]=n.toolCallId,t[6]=f):f=t[6];let m;t[7]!==u||t[8]!==n.toolCallId?(m=u(n.toolCallId)?.latencySeconds,t[7]=u,t[8]=n.toolCallId,t[9]=m):m=t[9];let g;t[10]!==u||t[11]!==n.toolCallId?(g=u(n.toolCallId)?._meta,t[10]=u,t[11]=n.toolCallId,t[12]=g):g=t[12];let E;return t[13]!==o||t[14]!==n||t[15]!==f||t[16]!==m||t[17]!==g?(E=h.jsx(bE,{part:n,annotations:f,latency:m,isLastMessage:o,toolMeta:g}),t[13]=o,t[14]=n,t[15]=f,t[16]=m,t[17]=g,t[18]=E):E=t[18],E}case"tool-user_ask":{let f;t[19]!==u||t[20]!==n.toolCallId?(f=u(n.toolCallId)?.latencySeconds,t[19]=u,t[20]=n.toolCallId,t[21]=f):f=t[21];let m;return t[22]!==n||t[23]!==f?(m=h.jsx(uF,{part:n,latency:f}),t[22]=n,t[23]=f,t[24]=m):m=t[24],m}case"tool-propose_plan":{let f;return t[25]!==n?(f=h.jsx(pF,{part:n}),t[25]=n,t[26]=f):f=t[26],f}case"tool-generate_image":{let f;t[27]!==u||t[28]!==n.toolCallId?(f=u(n.toolCallId)?.latencySeconds,t[27]=u,t[28]=n.toolCallId,t[29]=f):f=t[29];let m;return t[30]!==n||t[31]!==f?(m=h.jsx(XP,{part:n,latency:f}),t[30]=n,t[31]=f,t[32]=m):m=t[32],m}case"tool-web_search":{let f;t[33]!==u||t[34]!==n.toolCallId?(f=u(n.toolCallId)?.latencySeconds,t[33]=u,t[34]=n.toolCallId,t[35]=f):f=t[35];let m;t[36]!==i.webSearchStreaming||t[37]!==n.toolCallId?(m=i.webSearchStreaming.get(n.toolCallId),t[36]=i.webSearchStreaming,t[37]=n.toolCallId,t[38]=m):m=t[38];let g;return t[39]!==n||t[40]!==f||t[41]!==m?(g=h.jsx(lF,{part:n,latency:f,streamingText:m}),t[39]=n,t[40]=f,t[41]=m,t[42]=g):g=t[42],g}case"tool-subtask":{let f;t[43]!==d||t[44]!==n.toolCallId?(f=d(n.toolCallId),t[43]=d,t[44]=n.toolCallId,t[45]=f):f=t[45];let m;t[46]!==u||t[47]!==n.toolCallId?(m=u(n.toolCallId)?.annotations,t[46]=u,t[47]=n.toolCallId,t[48]=m):m=t[48];let g;t[49]!==u||t[50]!==n.toolCallId?(g=u(n.toolCallId)?.latencySeconds,t[49]=u,t[50]=n.toolCallId,t[51]=g):g=t[51];let E;t[52]!==n||t[53]!==f||t[54]!==m||t[55]!==g?(E={part:n,subtaskMeta:f,annotations:m,latency:g},t[52]=n,t[53]=f,t[54]=m,t[55]=g,t[56]=E):E=t[56];const _=E;let S;return t[57]!==_?(S=h.jsx(fe.Suspense,{fallback:h.jsx(cF,{..._}),children:h.jsx(dF,{..._})}),t[57]=_,t[58]=S):S=t[58],S}case"text":{const f=!!a&&!s;let m;return t[59]!==r||t[60]!==n||t[61]!==f||t[62]!==a?(m=h.jsx(nd,{id:r,part:n,extraActions:a,copyable:!0,alwaysShowActions:f}),t[59]=r,t[60]=n,t[61]=f,t[62]=a,t[63]=m):m=t[63],m}case"reasoning":return null;case"step-start":case"file":case"source-url":case"source-document":return null;case"data-tool-metadata":case"data-tool-subtask-metadata":case"data-generate-image":case"data-web-search":return null;default:{const f=n;if(f.type.startsWith("tool-")){const m=f.toolCallId;let g;t[64]!==i.toolMetadata||t[65]!==m?(g=i.toolMetadata.get(m),t[64]=i.toolMetadata,t[65]=m,t[66]=g):g=t[66];const E=g,_=E?.annotations,S=E?.latencySeconds,y=E?._meta;let T;return t[67]!==f||t[68]!==o||t[69]!==_||t[70]!==S||t[71]!==y?(T=h.jsx(bE,{part:f,annotations:_,latency:S,isLastMessage:o,toolMeta:y}),t[67]=f,t[68]=o,t[69]=_,t[70]=S,t[71]=y,t[72]=T):T=t[72],T}if(f.type.startsWith("data-"))return null;throw new Error(`Unknown part type: ${f.type}`)}}}function FF(e){const t=ne.c(2),{isRunInProgress:n}=e;if(n){let a;return t[0]===Symbol.for("react.memo_cache_sentinel")?(a=h.jsx("div",{className:"flex items-center gap-1.5 py-2 opacity-60",children:h.jsxs("span",{className:"flex items-center gap-1.5",children:[h.jsx(pc,{className:"text-muted-foreground shrink-0 animate-pulse",size:14}),h.jsx("span",{className:"text-[14px] text-muted-foreground shimmer",children:"Resuming task..."})]})}),t[0]=a):a=t[0],a}let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=h.jsx("div",{className:"text-[14px] text-muted-foreground/60 py-2",children:"No response was generated"}),t[1]=r):r=t[1],r}function BF(e){const t=ne.c(7),{className:n,children:r}=e;let a;t[0]!==n?(a=Re("w-full min-w-0 group relative flex items-start gap-4 px-4 z-20 text-foreground flex-row",n),t[0]=n,t[1]=a):a=t[1];let i;t[2]!==r?(i=h.jsx("div",{className:"flex flex-col min-w-0 w-full items-start",children:h.jsx("div",{className:"w-full min-w-0 not-only:rounded-2xl text-[14px] wrap-break-word overflow-wrap-anywhere bg-transparent",children:r})}),t[2]=r,t[3]=i):i=t[3];let s;return t[4]!==a||t[5]!==i?(s=h.jsx("div",{className:a,children:i}),t[4]=a,t[5]=i,t[6]=s):s=t[6],s}function UF(e){const t=ne.c(35),{message:n,status:r,className:a,isLast:i}=e,s=i===void 0?!1:i,{isRunInProgress:o}=NE()??{},l=o===void 0?!1:o,u=ty()?.taskId??null,c=r==="streaming",f=c||r==="submitted";let m;t[0]!==f?(m=()=>f?Date.now():null,t[0]=f,t[1]=m):m=t[1];const[g,E]=fe.useState(m),[_,S]=fe.useState(f);_!==f&&(S(f),E(f?Date.now():null));const y=n!==null&&n.parts.length>0,{reasoningGroups:T,renderOrder:R,dataParts:C}=TF(n),b=n&&n.parts.length>0?n.parts[n.parts.length-1]:null,w=c&&b?.type==="reasoning";let D;if(t[2]!==n){const W=n?.metadata?.reasoning_start_at?new Date(n.metadata.reasoning_start_at):null,z=n?.metadata?.reasoning_end_at?new Date(n.metadata.reasoning_end_at):new Date;D=W!==null?z.getTime()-W.getTime():null,t[2]=n,t[3]=D}else D=t[3];const O=D;let x;t[4]!==y||t[5]!==f||t[6]!==n||t[7]!==R?(x=!f&&y&&(()=>{let W=0;for(const z of R)if(z.kind==="part"){const K=n.parts[z.index]?.type;(K==="dynamic-tool"||K?.startsWith("tool-"))&&W++}return W>=wF})(),t[4]=y,t[5]=f,t[6]=n,t[7]=R,t[8]=x):x=t[8];const M=x;let P,V,H;if(t[9]!==a||t[10]!==C||t[11]!==y||t[12]!==s||t[13]!==f||t[14]!==w||t[15]!==l||t[16]!==n||t[17]!==T||t[18]!==R||t[19]!==M||t[20]!==g||t[21]!==u||t[22]!==O){const{collapsed:W,tail:z}=M?OF(R,n.parts):{collapsed:[],tail:R};P=BF,V=a,H=y?h.jsxs("div",{className:"flex flex-col gap-3 sm:gap-2",children:[W.length>0&&h.jsx(MF,{items:W,message:n,reasoningGroups:T,isReasoningActive:w,totalDuration:O,dataParts:C,isLoading:f,isLast:s}),z.map((K,N)=>{const Q=W.length+N,Z=z.findLastIndex(HF)===N;return cS({item:K,renderIndex:Q,message:n,reasoningGroups:T,isReasoningActive:w,totalDuration:O,dataParts:C,isLoading:f,isLast:s,isLastVisiblePart:Z,renderOrder:R})}),s&&f&&g!==null&&h.jsx(NF,{startedAt:g}),s&&!f&&u&&h.jsx(hF,{threadId:u})]}):f?h.jsx(IF,{}):h.jsx(FF,{isRunInProgress:s&&l}),t[9]=a,t[10]=C,t[11]=y,t[12]=s,t[13]=f,t[14]=w,t[15]=l,t[16]=n,t[17]=T,t[18]=R,t[19]=M,t[20]=g,t[21]=u,t[22]=O,t[23]=P,t[24]=V,t[25]=H}else P=t[23],V=t[24],H=t[25];let U;t[26]!==s||t[27]!==c||t[28]!==n?.parts?(U=s&&c&&h.jsx(fF,{parts:n?.parts}),t[26]=s,t[27]=c,t[28]=n?.parts,t[29]=U):U=t[29];let Y;return t[30]!==P||t[31]!==V||t[32]!==H||t[33]!==U?(Y=h.jsxs(P,{className:V,children:[H,U]}),t[30]=P,t[31]=V,t[32]=H,t[33]=U,t[34]=Y):Y=t[34],Y}function HF(e){return e.kind==="part"}const $F=[zS.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1}),Sy,OP];function qF(e){const t=ne.c(5),{tiptapDoc:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={attributes:{class:"prose prose-sm max-w-none focus:outline-none"}},t[0]=r):r=t[0];let a;t[1]!==n?(a={extensions:$F,content:n,editable:!1,editorProps:r},t[1]=n,t[2]=a):a=t[2];const i=GS(a);if(!i)return null;let s;return t[3]!==i?(s=h.jsx(jS,{editor:i,className:"[&_.ProseMirror]:outline-none [&_.ProseMirror]:cursor-text"}),t[3]=i,t[4]=s):s=t[4],s}function GF(e){const t=ne.c(27),{message:n,className:r,onScrollToPair:a}=e,{id:i,parts:s,metadata:o}=n,[l,u]=fe.useState(!1),[c,d]=fe.useState(!1),f=fe.useRef(!1);let m;t[0]===Symbol.for("react.memo_cache_sentinel")?(m=P=>{P&&!f.current&&(f.current=!0,d(P.scrollHeight>P.clientHeight))},t[0]=m):m=t[0];const g=m;if(!s||s.length===0)return null;let E;t[1]!==a?(E=()=>{u(!0),a?.()},t[1]=a,t[2]=E):E=t[2];const _=E,S=o?.tiptapDoc;let y;t[3]!==r?(y=Re("message-block w-full min-w-0 relative flex items-start gap-4 px-2.5 text-foreground flex-row-reverse",r),t[3]=r,t[4]=y):y=t[4];let T,R;t[5]===Symbol.for("react.memo_cache_sentinel")?(T=()=>u(!0),R=()=>u(!1),t[5]=T,t[6]=R):(T=t[5],R=t[6]);let C;t[7]===Symbol.for("react.memo_cache_sentinel")?(C=h.jsx("div",{className:"absolute inset-0 bg-muted/75 rounded-lg pointer-events-none"}),t[7]=C):C=t[7];let b;t[8]!==l||t[9]!==c?(b=Re("z-10 px-4 py-2 flex-1 transition-[max-height,opacity] duration-300 ease-out",l?"max-h-[50vh] overflow-auto opacity-100":Re("max-h-[84px] overflow-hidden opacity-99",c&&"mask-b-from-1%")),t[8]=l,t[9]=c,t[10]=b):b=t[10];let w;t[11]!==S||t[12]!==i||t[13]!==o||t[14]!==s?(w=S?h.jsx(qF,{tiptapDoc:o.tiptapDoc}):s.map((P,V)=>P.type==="text"?h.jsx(nd,{id:i,part:P},`${i}-${V}`):null),t[11]=S,t[12]=i,t[13]=o,t[14]=s,t[15]=w):w=t[15];let D;t[16]!==w?(D=h.jsx("div",{children:w}),t[16]=w,t[17]=D):D=t[17];let O;t[18]!==b||t[19]!==D?(O=h.jsx("div",{ref:g,className:b,children:D}),t[18]=b,t[19]=D,t[20]=O):O=t[20];let x;t[21]!==_||t[22]!==O?(x=h.jsxs("div",{tabIndex:0,onClick:_,onFocus:T,onBlur:R,className:"w-full border border-border/60 min-w-0 shadow-xs rounded-lg text-[14px] wrap-break-word overflow-wrap-anywhere bg-background cursor-pointer transition-colors relative flex outline-none",children:[C,O]}),t[21]=_,t[22]=O,t[23]=x):x=t[23];let M;return t[24]!==x||t[25]!==y?(M=h.jsx(h.Fragment,{children:h.jsx("div",{className:y,children:x})}),t[24]=x,t[25]=y,t[26]=M):M=t[26],M}function xB(e){const t=[],n=e.filter(r=>r.role!=="system");for(let r=0;r<n.length;r++){const a=n[r];if(a&&a.role==="user"){const i=n[r+1];i&&i.role==="assistant"?(t.push({user:a,assistant:i}),r++):t.push({user:a,assistant:null})}}return t}function vB(e){const t=ne.c(15),{pair:n,isLastPair:r,status:a}=e,i=fe.useRef(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{i.current&&i.current.scrollIntoView({behavior:"smooth",block:"start"})},t[0]=s):s=t[0];const o=s;let l;t[1]!==r?(l=E=>{i.current=E,r&&E?.scrollIntoView({behavior:"smooth",block:"start"})},t[1]=r,t[2]=l):l=t[2];const u=l;let c,d;t[3]===Symbol.for("react.memo_cache_sentinel")?(c=Re("flex flex-col pb-2 sm:pb-2"),d=h.jsx("div",{className:"sticky top-0 z-50 w-full h-4 bg-background"}),t[3]=c,t[4]=d):(c=t[3],d=t[4]);let f;t[5]!==n.user?(f=h.jsx("div",{className:"sticky mb-8 sm:mb-6 top-4 z-50",children:h.jsx(GF,{message:n.user,onScrollToPair:o})}),t[5]=n.user,t[6]=f):f=t[6];let m;t[7]!==r||t[8]!==n.assistant||t[9]!==a?(m=h.jsx(UF,{message:n.assistant,status:a,isLast:r}),t[7]=r,t[8]=n.assistant,t[9]=a,t[10]=m):m=t[10];let g;return t[11]!==u||t[12]!==f||t[13]!==m?(g=h.jsxs("div",{ref:u,className:c,children:[d,f,m]}),t[11]=u,t[12]=f,t[13]=m,t[14]=g):g=t[14],g}export{fy as F,yF as G,td as M,CB as S,yB as a,EB as b,bB as c,_B as d,AB as e,ME as f,gy as g,IB as h,TB as i,kB as j,by as k,Ey as l,BE as m,nd as n,RB as o,py as p,NB as q,SB as r,PE as s,FE as t,Sy as u,OP as v,xB as w,vB as x};
|
|
130
|
+
`);d=!s&&y.trim()?y:null,t[8]=s,t[9]=r,t[10]=d}else d=t[10];const f=d,m=!a&&n!=null?n/1e3:void 0;let g;t[11]!==a?(g=a?h.jsx(pc,{className:"size-4"}):h.jsx(LS,{className:"size-4"}),t[11]=a,t[12]=g):g=t[12];const E=a?"Thinking...":l,_=a?"loading":"idle";let S;return t[13]!==f||t[14]!==m||t[15]!==c||t[16]!==g||t[17]!==E||t[18]!==_?(S=h.jsx(ut,{icon:g,title:E,summary:c,detail:f,state:_,detailVariant:"prose",latency:m}),t[13]=f,t[14]=m,t[15]=c,t[16]=g,t[17]=E,t[18]=_,t[19]=S):S=t[19],S}function CF(e){return e.text??""}function xF(e){return e.text??""}function vF(e){return e.text?.includes("REDACTED")}const wF=3;function OF(e,t){let n=-1;for(let r=e.length-1;r>=0;r--){const a=e[r];if(a.kind==="part"&&t[a.index]?.type==="text"){n=r;break}}return n===-1?{collapsed:[],tail:e}:{collapsed:e.slice(0,n),tail:e.slice(n)}}function LF(e,t){let n=0,r=0;for(const a of e)if(a.kind==="reasoning-group")r++;else{const i=t[a.index]?.type;i==="text"?r++:(i==="dynamic-tool"||i?.startsWith("tool-"))&&n++}return{toolCalls:n,messages:r}}function DF(e){const t=ne.c(8),{toolCalls:n,messages:r}=e;let a;t[0]!==r||t[1]!==n?(a=n>0&&h.jsxs(h.Fragment,{children:[h.jsx(US,{className:"size-3.5 shrink-0"}),h.jsxs("span",{children:[n," tool call",n===1?"":"s",r>0?",":""]})]}),t[0]=r,t[1]=n,t[2]=a):a=t[2];let i;t[3]!==r?(i=r>0&&h.jsxs(h.Fragment,{children:[h.jsx(DS,{className:"size-3.5 shrink-0"}),h.jsxs("span",{children:[r," message",r===1?"":"s"]})]}),t[3]=r,t[4]=i):i=t[4];let s;return t[5]!==a||t[6]!==i?(s=h.jsxs("span",{className:"flex items-center gap-1.5 text-muted-foreground",children:[a,i]}),t[5]=a,t[6]=i,t[7]=s):s=t[7],s}function MF(e){const t=ne.c(28),{items:n,message:r,reasoningGroups:a,isReasoningActive:i,totalDuration:s,dataParts:o,isLoading:l,isLast:u}=e;let c;t[0]!==n||t[1]!==r.parts?(c=LF(n,r.parts),t[0]=n,t[1]=r.parts,t[2]=c):c=t[2];const{toolCalls:d,messages:f}=c;if(d===0&&f===0)return null;let m;t[3]!==f||t[4]!==d?(m=h.jsx(DF,{toolCalls:d,messages:f}),t[3]=f,t[4]=d,t[5]=m):m=t[5];let g;if(t[6]!==o||t[7]!==u||t[8]!==l||t[9]!==i||t[10]!==n||t[11]!==r||t[12]!==a||t[13]!==s){let S;t[15]!==o||t[16]!==u||t[17]!==l||t[18]!==i||t[19]!==r||t[20]!==a||t[21]!==s?(S=(y,T)=>cS({item:y,renderIndex:T,message:r,reasoningGroups:a,isReasoningActive:i,totalDuration:s,dataParts:o,isLoading:l,isLast:u,isLastVisiblePart:!1}),t[15]=o,t[16]=u,t[17]=l,t[18]=i,t[19]=r,t[20]=a,t[21]=s,t[22]=S):S=t[22],g=n.map(S),t[6]=o,t[7]=u,t[8]=l,t[9]=i,t[10]=n,t[11]=r,t[12]=a,t[13]=s,t[14]=g}else g=t[14];let E;t[23]!==g?(E=h.jsx("div",{className:"flex flex-col gap-3 sm:gap-2 pt-1",children:g}),t[23]=g,t[24]=E):E=t[24];let _;return t[25]!==m||t[26]!==E?(_=h.jsx(ut,{icon:null,alwaysChevron:!0,title:m,state:"idle",children:E}),t[25]=m,t[26]=E,t[27]=_):_=t[27],_}function cS({item:e,renderIndex:t,message:n,reasoningGroups:r,isReasoningActive:a,totalDuration:i,dataParts:s,isLoading:o,isLast:l,isLastVisiblePart:u,renderOrder:c}){if(e.kind==="reasoning-group"){const{group:g}=e,E=g===r[r.length-1],_=a&&E;if(!g.parts.some(T=>T.text?.trim())&&!_)return null;const y=r.length===1?i:null;return h.jsx(RF,{duration:y,parts:g.parts,isStreaming:_},`${n.id}-reasoning-${g.startIndex}`)}const d=n.parts[e.index],f=u||(c?c.findLastIndex(g=>g.kind==="part")===t:!1),m=f?DE(LE(),n.metadata?.usage):null;return h.jsx(PF,{part:d,id:n.id,usageStats:f&&h.jsx(DP,{usage:m,duration:i}),dataParts:s,isLoading:o,isLastMessage:l},`${n.id}-${e.index}`)}function PF(e){const t=ne.c(73),{part:n,id:r,usageStats:a,dataParts:i,isLoading:s,isLastMessage:o}=e;let l;t[0]!==i.toolMetadata?(l=f=>i.toolMetadata.get(f),t[0]=i.toolMetadata,t[1]=l):l=t[1];const u=l;let c;t[2]!==i.toolSubtaskMetadata?(c=f=>i.toolSubtaskMetadata.get(f),t[2]=i.toolSubtaskMetadata,t[3]=c):c=t[3];const d=c;switch(n.type){case"dynamic-tool":{let f;t[4]!==u||t[5]!==n.toolCallId?(f=u(n.toolCallId)?.annotations,t[4]=u,t[5]=n.toolCallId,t[6]=f):f=t[6];let m;t[7]!==u||t[8]!==n.toolCallId?(m=u(n.toolCallId)?.latencySeconds,t[7]=u,t[8]=n.toolCallId,t[9]=m):m=t[9];let g;t[10]!==u||t[11]!==n.toolCallId?(g=u(n.toolCallId)?._meta,t[10]=u,t[11]=n.toolCallId,t[12]=g):g=t[12];let E;return t[13]!==o||t[14]!==n||t[15]!==f||t[16]!==m||t[17]!==g?(E=h.jsx(bE,{part:n,annotations:f,latency:m,isLastMessage:o,toolMeta:g}),t[13]=o,t[14]=n,t[15]=f,t[16]=m,t[17]=g,t[18]=E):E=t[18],E}case"tool-user_ask":{let f;t[19]!==u||t[20]!==n.toolCallId?(f=u(n.toolCallId)?.latencySeconds,t[19]=u,t[20]=n.toolCallId,t[21]=f):f=t[21];let m;return t[22]!==n||t[23]!==f?(m=h.jsx(uF,{part:n,latency:f}),t[22]=n,t[23]=f,t[24]=m):m=t[24],m}case"tool-propose_plan":{let f;return t[25]!==n?(f=h.jsx(pF,{part:n}),t[25]=n,t[26]=f):f=t[26],f}case"tool-generate_image":{let f;t[27]!==u||t[28]!==n.toolCallId?(f=u(n.toolCallId)?.latencySeconds,t[27]=u,t[28]=n.toolCallId,t[29]=f):f=t[29];let m;return t[30]!==n||t[31]!==f?(m=h.jsx(XP,{part:n,latency:f}),t[30]=n,t[31]=f,t[32]=m):m=t[32],m}case"tool-web_search":{let f;t[33]!==u||t[34]!==n.toolCallId?(f=u(n.toolCallId)?.latencySeconds,t[33]=u,t[34]=n.toolCallId,t[35]=f):f=t[35];let m;t[36]!==i.webSearchStreaming||t[37]!==n.toolCallId?(m=i.webSearchStreaming.get(n.toolCallId),t[36]=i.webSearchStreaming,t[37]=n.toolCallId,t[38]=m):m=t[38];let g;return t[39]!==n||t[40]!==f||t[41]!==m?(g=h.jsx(lF,{part:n,latency:f,streamingText:m}),t[39]=n,t[40]=f,t[41]=m,t[42]=g):g=t[42],g}case"tool-subtask":{let f;t[43]!==d||t[44]!==n.toolCallId?(f=d(n.toolCallId),t[43]=d,t[44]=n.toolCallId,t[45]=f):f=t[45];let m;t[46]!==u||t[47]!==n.toolCallId?(m=u(n.toolCallId)?.annotations,t[46]=u,t[47]=n.toolCallId,t[48]=m):m=t[48];let g;t[49]!==u||t[50]!==n.toolCallId?(g=u(n.toolCallId)?.latencySeconds,t[49]=u,t[50]=n.toolCallId,t[51]=g):g=t[51];let E;t[52]!==n||t[53]!==f||t[54]!==m||t[55]!==g?(E={part:n,subtaskMeta:f,annotations:m,latency:g},t[52]=n,t[53]=f,t[54]=m,t[55]=g,t[56]=E):E=t[56];const _=E;let S;return t[57]!==_?(S=h.jsx(fe.Suspense,{fallback:h.jsx(cF,{..._}),children:h.jsx(dF,{..._})}),t[57]=_,t[58]=S):S=t[58],S}case"text":{const f=!!a&&!s;let m;return t[59]!==r||t[60]!==n||t[61]!==f||t[62]!==a?(m=h.jsx(nd,{id:r,part:n,extraActions:a,copyable:!0,alwaysShowActions:f}),t[59]=r,t[60]=n,t[61]=f,t[62]=a,t[63]=m):m=t[63],m}case"reasoning":return null;case"step-start":case"file":case"source-url":case"source-document":return null;case"data-tool-metadata":case"data-tool-subtask-metadata":case"data-generate-image":case"data-web-search":return null;default:{const f=n;if(f.type.startsWith("tool-")){const m=f.toolCallId;let g;t[64]!==i.toolMetadata||t[65]!==m?(g=i.toolMetadata.get(m),t[64]=i.toolMetadata,t[65]=m,t[66]=g):g=t[66];const E=g,_=E?.annotations,S=E?.latencySeconds,y=E?._meta;let T;return t[67]!==f||t[68]!==o||t[69]!==_||t[70]!==S||t[71]!==y?(T=h.jsx(bE,{part:f,annotations:_,latency:S,isLastMessage:o,toolMeta:y}),t[67]=f,t[68]=o,t[69]=_,t[70]=S,t[71]=y,t[72]=T):T=t[72],T}if(f.type.startsWith("data-"))return null;throw new Error(`Unknown part type: ${f.type}`)}}}function FF(e){const t=ne.c(2),{isRunInProgress:n}=e;if(n){let a;return t[0]===Symbol.for("react.memo_cache_sentinel")?(a=h.jsx("div",{className:"flex items-center gap-1.5 py-2 opacity-60",children:h.jsxs("span",{className:"flex items-center gap-1.5",children:[h.jsx(pc,{className:"text-muted-foreground shrink-0 animate-pulse",size:14}),h.jsx("span",{className:"text-[14px] text-muted-foreground shimmer",children:"Resuming task..."})]})}),t[0]=a):a=t[0],a}let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=h.jsx("div",{className:"text-[14px] text-muted-foreground/60 py-2",children:"No response was generated"}),t[1]=r):r=t[1],r}function BF(e){const t=ne.c(7),{className:n,children:r}=e;let a;t[0]!==n?(a=Re("w-full min-w-0 group relative flex items-start gap-4 px-4 z-20 text-foreground flex-row",n),t[0]=n,t[1]=a):a=t[1];let i;t[2]!==r?(i=h.jsx("div",{className:"flex flex-col min-w-0 w-full items-start",children:h.jsx("div",{className:"w-full min-w-0 not-only:rounded-2xl text-[14px] wrap-break-word overflow-wrap-anywhere bg-transparent",children:r})}),t[2]=r,t[3]=i):i=t[3];let s;return t[4]!==a||t[5]!==i?(s=h.jsx("div",{className:a,children:i}),t[4]=a,t[5]=i,t[6]=s):s=t[6],s}function UF(e){const t=ne.c(35),{message:n,status:r,className:a,isLast:i}=e,s=i===void 0?!1:i,{isRunInProgress:o}=NE()??{},l=o===void 0?!1:o,u=ty()?.taskId??null,c=r==="streaming",f=c||r==="submitted";let m;t[0]!==f?(m=()=>f?Date.now():null,t[0]=f,t[1]=m):m=t[1];const[g,E]=fe.useState(m),[_,S]=fe.useState(f);_!==f&&(S(f),E(f?Date.now():null));const y=n!==null&&n.parts.length>0,{reasoningGroups:T,renderOrder:R,dataParts:C}=TF(n),b=n&&n.parts.length>0?n.parts[n.parts.length-1]:null,w=c&&b?.type==="reasoning";let D;if(t[2]!==n){const W=n?.metadata?.reasoning_start_at?new Date(n.metadata.reasoning_start_at):null,z=n?.metadata?.reasoning_end_at?new Date(n.metadata.reasoning_end_at):new Date;D=W!==null?z.getTime()-W.getTime():null,t[2]=n,t[3]=D}else D=t[3];const O=D;let x;t[4]!==y||t[5]!==f||t[6]!==n||t[7]!==R?(x=!f&&y&&(()=>{let W=0;for(const z of R)if(z.kind==="part"){const K=n.parts[z.index]?.type;(K==="dynamic-tool"||K?.startsWith("tool-"))&&W++}return W>=wF})(),t[4]=y,t[5]=f,t[6]=n,t[7]=R,t[8]=x):x=t[8];const M=x;let P,V,H;if(t[9]!==a||t[10]!==C||t[11]!==y||t[12]!==s||t[13]!==f||t[14]!==w||t[15]!==l||t[16]!==n||t[17]!==T||t[18]!==R||t[19]!==M||t[20]!==g||t[21]!==u||t[22]!==O){const{collapsed:W,tail:z}=M?OF(R,n.parts):{collapsed:[],tail:R};P=BF,V=a,H=y?h.jsxs("div",{className:"flex flex-col gap-3 sm:gap-2",children:[W.length>0&&h.jsx(MF,{items:W,message:n,reasoningGroups:T,isReasoningActive:w,totalDuration:O,dataParts:C,isLoading:f,isLast:s}),z.map((K,N)=>{const Q=W.length+N,Z=z.findLastIndex(HF)===N;return cS({item:K,renderIndex:Q,message:n,reasoningGroups:T,isReasoningActive:w,totalDuration:O,dataParts:C,isLoading:f,isLast:s,isLastVisiblePart:Z,renderOrder:R})}),s&&f&&g!==null&&h.jsx(NF,{startedAt:g}),s&&!f&&u&&h.jsx(hF,{threadId:u})]}):f?h.jsx(IF,{}):h.jsx(FF,{isRunInProgress:s&&l}),t[9]=a,t[10]=C,t[11]=y,t[12]=s,t[13]=f,t[14]=w,t[15]=l,t[16]=n,t[17]=T,t[18]=R,t[19]=M,t[20]=g,t[21]=u,t[22]=O,t[23]=P,t[24]=V,t[25]=H}else P=t[23],V=t[24],H=t[25];let U;t[26]!==s||t[27]!==c||t[28]!==n?.parts?(U=s&&c&&h.jsx(fF,{parts:n?.parts}),t[26]=s,t[27]=c,t[28]=n?.parts,t[29]=U):U=t[29];let Y;return t[30]!==P||t[31]!==V||t[32]!==H||t[33]!==U?(Y=h.jsxs(P,{className:V,children:[H,U]}),t[30]=P,t[31]=V,t[32]=H,t[33]=U,t[34]=Y):Y=t[34],Y}function HF(e){return e.kind==="part"}const $F=[zS.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1}),Sy,OP];function qF(e){const t=ne.c(5),{tiptapDoc:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={attributes:{class:"prose prose-sm max-w-none focus:outline-none"}},t[0]=r):r=t[0];let a;t[1]!==n?(a={extensions:$F,content:n,editable:!1,editorProps:r},t[1]=n,t[2]=a):a=t[2];const i=GS(a);if(!i)return null;let s;return t[3]!==i?(s=h.jsx(jS,{editor:i,className:"[&_.ProseMirror]:outline-none [&_.ProseMirror]:cursor-text"}),t[3]=i,t[4]=s):s=t[4],s}function GF(e){const t=ne.c(27),{message:n,className:r,onScrollToPair:a}=e,{id:i,parts:s,metadata:o}=n,[l,u]=fe.useState(!1),[c,d]=fe.useState(!1),f=fe.useRef(!1);let m;t[0]===Symbol.for("react.memo_cache_sentinel")?(m=P=>{P&&!f.current&&(f.current=!0,d(P.scrollHeight>P.clientHeight))},t[0]=m):m=t[0];const g=m;if(!s||s.length===0)return null;let E;t[1]!==a?(E=()=>{u(!0),a?.()},t[1]=a,t[2]=E):E=t[2];const _=E,S=o?.tiptapDoc;let y;t[3]!==r?(y=Re("message-block w-full min-w-0 relative flex items-start gap-4 px-2.5 text-foreground flex-row-reverse",r),t[3]=r,t[4]=y):y=t[4];let T,R;t[5]===Symbol.for("react.memo_cache_sentinel")?(T=()=>u(!0),R=()=>u(!1),t[5]=T,t[6]=R):(T=t[5],R=t[6]);let C;t[7]===Symbol.for("react.memo_cache_sentinel")?(C=h.jsx("div",{className:"absolute inset-0 bg-muted/75 rounded-lg pointer-events-none"}),t[7]=C):C=t[7];let b;t[8]!==l||t[9]!==c?(b=Re("z-10 px-4 py-2 flex-1 transition-[max-height,opacity] duration-300 ease-out",l?"max-h-[50vh] overflow-auto opacity-100":Re("max-h-[84px] overflow-hidden opacity-99",c&&"mask-b-from-1%")),t[8]=l,t[9]=c,t[10]=b):b=t[10];let w;t[11]!==S||t[12]!==i||t[13]!==o||t[14]!==s?(w=S?h.jsx(qF,{tiptapDoc:o.tiptapDoc}):s.map((P,V)=>P.type==="text"?h.jsx(nd,{id:i,part:P},`${i}-${V}`):null),t[11]=S,t[12]=i,t[13]=o,t[14]=s,t[15]=w):w=t[15];let D;t[16]!==w?(D=h.jsx("div",{children:w}),t[16]=w,t[17]=D):D=t[17];let O;t[18]!==b||t[19]!==D?(O=h.jsx("div",{ref:g,className:b,children:D}),t[18]=b,t[19]=D,t[20]=O):O=t[20];let x;t[21]!==_||t[22]!==O?(x=h.jsxs("div",{tabIndex:0,onClick:_,onFocus:T,onBlur:R,className:"w-full border border-border/60 min-w-0 shadow-xs rounded-lg text-[14px] wrap-break-word overflow-wrap-anywhere bg-background cursor-pointer transition-colors relative flex outline-none",children:[C,O]}),t[21]=_,t[22]=O,t[23]=x):x=t[23];let M;return t[24]!==x||t[25]!==y?(M=h.jsx(h.Fragment,{children:h.jsx("div",{className:y,children:x})}),t[24]=x,t[25]=y,t[26]=M):M=t[26],M}function xB(e){const t=[],n=e.filter(r=>r.role!=="system");for(let r=0;r<n.length;r++){const a=n[r];if(a&&a.role==="user"){const i=n[r+1];i&&i.role==="assistant"?(t.push({user:a,assistant:i}),r++):t.push({user:a,assistant:null})}}return t}function vB(e){const t=ne.c(15),{pair:n,isLastPair:r,status:a}=e,i=fe.useRef(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{i.current&&i.current.scrollIntoView({behavior:"smooth",block:"start"})},t[0]=s):s=t[0];const o=s;let l;t[1]!==r?(l=E=>{i.current=E,r&&E?.scrollIntoView({behavior:"smooth",block:"start"})},t[1]=r,t[2]=l):l=t[2];const u=l;let c,d;t[3]===Symbol.for("react.memo_cache_sentinel")?(c=Re("flex flex-col pb-2 sm:pb-2"),d=h.jsx("div",{className:"sticky top-0 z-50 w-full h-4 bg-background"}),t[3]=c,t[4]=d):(c=t[3],d=t[4]);let f;t[5]!==n.user?(f=h.jsx("div",{className:"sticky mb-8 sm:mb-6 top-4 z-50",children:h.jsx(GF,{message:n.user,onScrollToPair:o})}),t[5]=n.user,t[6]=f):f=t[6];let m;t[7]!==r||t[8]!==n.assistant||t[9]!==a?(m=h.jsx(UF,{message:n.assistant,status:a,isLast:r}),t[7]=r,t[8]=n.assistant,t[9]=a,t[10]=m):m=t[10];let g;return t[11]!==u||t[12]!==f||t[13]!==m?(g=h.jsxs("div",{ref:u,className:c,children:[d,f,m]}),t[11]=u,t[12]=f,t[13]=m,t[14]=g):g=t[14],g}export{fy as F,yF as G,td as M,CB as S,yB as a,EB as b,bB as c,_B as d,AB as e,ME as f,IB as g,gy as h,TB as i,kB as j,by as k,Ey as l,BE as m,nd as n,RB as o,py as p,NB as q,SB as r,PE as s,FE as t,Sy as u,OP as v,xB as w,vB as x};
|
package/dist/client/assets/{plugin-empty-state-DsUYr3t-.js → plugin-empty-state-BrALBpmq.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as o,j as t,Z as n}from"./index-
|
|
1
|
+
import{e as o,j as t,Z as n}from"./index-CzOMQ7ME.js";function a(){const s=o.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[t.jsx(n,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No workflows connected"}),t.jsx("p",{className:"text-muted-foreground text-center max-w-md",children:"Connect a workflow provider to create and manage automated workflows with multiple steps and integrations."})]}),s[0]=e):e=s[0],e}export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as S,j as s,r as w,Z as y}from"./index-
|
|
1
|
+
import{e as S,j as s,r as w,Z as y}from"./index-CzOMQ7ME.js";import{i as R}from"./Check-BXg4TGxE.js";import{t as _}from"./ChevronDown-DEP8rKZT.js";function E(x){const e=S.c(32),{connections:l,selectedConnectionId:n,onConnectionChange:N}=x,[r,z]=w.useState(!1),C=w.useRef(null);let p;if(e[0]!==l||e[1]!==n){let t;e[3]!==n?(t=u=>u.id===n,e[3]=n,e[4]=t):t=e[4],p=l.find(t),e[0]=l,e[1]=n,e[2]=p}else p=e[2];const i=p;let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=t=>{C.current?.contains(t.relatedTarget)||z(!1)},e[5]=j):j=e[5];const k=j;if(l.length===1){let t;e[6]!==i?(t=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[6]=i,e[7]=t):t=e[7];const u=i?.title||"Workflows";let f;e[8]!==u?(f=s.jsx("span",{children:u}),e[8]=u,e[9]=f):f=e[9];let h;return e[10]!==t||e[11]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t,f]}),e[10]=t,e[11]=f,e[12]=h):h=e[12],h}let o;e[13]!==r?(o=()=>z(!r),e[13]=r,e[14]=o):o=e[14];let c;e[15]!==i?(c=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[15]=i,e[16]=c):c=e[16];const v=i?.title||"Select provider";let a;e[17]!==v?(a=s.jsx("span",{children:v}),e[17]=v,e[18]=a):a=e[18];let b;e[19]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(_,{size:14}),e[19]=b):b=e[19];let d;e[20]!==o||e[21]!==c||e[22]!==a?(d=s.jsxs("button",{type:"button",onClick:o,className:"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md border border-border bg-background hover:bg-accent transition-colors",children:[c,a,b]}),e[20]=o,e[21]=c,e[22]=a,e[23]=d):d=e[23];let m;e[24]!==l||e[25]!==r||e[26]!==N||e[27]!==n?(m=r&&s.jsx("div",{className:"absolute left-0 top-full mt-1 z-50 min-w-48 rounded-md border border-border bg-popover p-1 shadow-md",children:l.map(t=>s.jsxs("button",{type:"button",onClick:()=>{N(t.id),z(!1)},className:"flex items-center gap-2 w-full px-2 py-1.5 text-sm rounded-sm hover:bg-accent transition-colors",children:[t.icon?s.jsx("img",{src:t.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),s.jsx("span",{className:"flex-1 text-left",children:t.title}),t.id===n&&s.jsx(R,{size:14,className:"text-primary"})]},t.id))}),e[24]=l,e[25]=r,e[26]=N,e[27]=n,e[28]=m):m=e[28];let g;return e[29]!==d||e[30]!==m?(g=s.jsxs("div",{className:"relative",ref:C,onBlur:k,children:[d,m]}),e[29]=d,e[30]=m,e[31]=g):g=e[31],g}function $(x){const e=S.c(2);let l;return e[0]!==x?(l=s.jsx(E,{...x}),e[0]=x,e[1]=l):l=e[1],l}export{$ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as B,e as D,j as s,s as X,f as Z,g as ee,d as te,b as ne,K as se,n as ie,O as le,l as oe,B as re}from"./index-
|
|
1
|
+
import{r as B,e as D,j as s,s as X,f as Z,g as ee,d as te,b as ne,K as se,n as ie,O as le,l as oe,B as re}from"./index-CzOMQ7ME.js";import{u as ae}from"./use-connection-Bw3IdOYX.js";import{S as ce,u as ue,k as de}from"./constants-CrCZOO5F.js";import{a as me}from"./Settings02-B5jIAnK4.js";import{P as z}from"./index-CMD-gSoU.js";const ge=B.createContext(null);function F(i){const e=D.c(3),{value:h,children:m}=i,t=h;let l;return e[0]!==m||e[1]!==t?(l=s.jsx(ge.Provider,{value:t,children:m}),e[0]=m,e[1]=t,e[2]=l):l=e[2],l}B.createContext(null);function fe(i){return{id:i.id,title:i.title,icon:i.icon,description:i.description,app_name:i.app_name,app_id:i.app_id,tools:i.tools,metadata:i.metadata}}function _e(i){const e=D.c(60),{bindingName:h,renderEmptyState:m}=i,{org:t,project:l}=X(),k=Z();let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j={strict:!1},e[0]=j):j=e[0];const{org:T,taskId:w,pluginId:g}=ee(j);let I;e[1]===Symbol.for("react.memo_cache_sentinel")?(I={strict:!1},e[1]=I):I=e[1];const G=te(I).virtualmcpid;let P;e[2]!==h?(P={binding:h},e[2]=h,e[3]=P):P=e[3];const K=ae(P),{data:f}=ne.useSession();let _;e[4]!==t.id||e[5]!==t.slug?(_={connectionId:ce,orgId:t.id,orgSlug:t.slug},e[4]=t.id,e[5]=t.slug,e[6]=_):_=e[6];const O=ue(_);let x;e[7]!==g||e[8]!==l.id?(x=se.projectPluginConfig(l.id??"",g),e[7]=g,e[8]=l.id,e[9]=x):x=e[9];let p;e[10]!==g||e[11]!==l.id||e[12]!==O?(p=async()=>{const n=await O.callTool({name:"VIRTUAL_MCP_PLUGIN_CONFIG_GET",arguments:{virtualMcpId:l.id,pluginId:g}});return n.structuredContent??n},e[10]=g,e[11]=l.id,e[12]=O,e[13]=p):p=e[13];const U=!!l.id&&!!g;let v;e[14]!==x||e[15]!==p||e[16]!==U?(v={queryKey:x,queryFn:p,enabled:U},e[14]=x,e[15]=p,e[16]=U,e[17]=v):v=e[17];const{data:V,isLoading:Q}=ie(v),R=V?.config?.connectionId,C=R?K.find(n=>n.id===R):null,y=de({connectionId:C?.id,orgId:t.id,orgSlug:t.slug});let S;e[18]!==f?(S=f?.user?{user:{id:f.user.id,name:f.user.name,email:f.user.email,image:f.user.image}}:null,e[18]=f,e[19]=S):S=e[19];const a=S;let b;e[20]!==t.id||e[21]!==t.name||e[22]!==t.slug?(b={id:t.id,slug:t.slug,name:t.name},e[20]=t.id,e[21]=t.name,e[22]=t.slug,e[23]=b):b=e[23];const c=b;if(Q){let n;return e[24]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[s.jsx(oe,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})]}),e[24]=n):n=e[24],n}if(K.length===0){let n;e[25]!==c||e[26]!==a?(n={connectionId:null,connection:null,toolCaller:null,org:c,session:a},e[25]=c,e[26]=a,e[27]=n):n=e[27];const u=n;let r;e[28]!==m?(r=m(),e[28]=m,e[29]=r):r=e[29];let o;e[30]!==r?(o=s.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r}),e[30]=r,e[31]=o):o=e[31];let d;return e[32]!==u||e[33]!==o?(d=s.jsx(F,{value:u,children:o}),e[32]=u,e[33]=o,e[34]=d):d=e[34],d}if(!C){let n;e[35]!==c||e[36]!==a?(n={connectionId:null,connection:null,toolCaller:null,org:c,session:a},e[35]=c,e[36]=a,e[37]=n):n=e[37];const u=n;let r;e[38]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex flex-col items-center gap-2 text-center max-w-md",children:[s.jsx(me,{size:48,className:"text-muted-foreground mb-2"}),s.jsx("h2",{className:"text-lg font-semibold",children:"Plugin Not Configured"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"This plugin requires a connection to be configured. Go to project settings to select which integration to use."})]}),e[38]=r):r=e[38];let o;e[39]!==k||e[40]!==t.slug||e[41]!==T||e[42]!==l.id||e[43]!==w||e[44]!==G?(o=s.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-4 p-8",children:[r,s.jsx(re,{onClick:()=>{const H=T??t.slug,J=G??l.id??"",W=w??crypto.randomUUID();k({to:"/$org/$taskId",params:{org:H,taskId:W},search:{virtualmcpid:J,main:"settings"}})},children:"Go to Project Settings"})]}),e[39]=k,e[40]=t.slug,e[41]=T,e[42]=l.id,e[43]=w,e[44]=G,e[45]=o):o=e[45];let d;return e[46]!==u||e[47]!==o?(d=s.jsx(F,{value:u,children:o}),e[46]=u,e[47]=o,e[48]=d):d=e[48],d}const Y=C.id,$=fe(C);let N;e[49]!==y?(N=(n,u)=>y?y.callTool({name:n,arguments:u}).then(xe):Promise.reject(new Error("MCP client is not available")),e[49]=y,e[50]=N):N=e[50];const q=N;let E;e[51]!==C||e[52]!==c||e[53]!==a||e[54]!==$||e[55]!==q?(E={connectionId:Y,connection:$,toolCaller:q,org:c,session:a},e[51]=C,e[52]=c,e[53]=a,e[54]=$,e[55]=q,e[56]=E):E=e[56];const A=E;let L;e[57]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(z,{children:s.jsx(z.Content,{children:s.jsx(le,{})})}),e[57]=L):L=e[57];let M;return e[58]!==A?(M=s.jsx(F,{value:A,children:L}),e[58]=A,e[59]=M):M=e[59],M}function xe(i){return i.structuredContent??i}export{_e as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,aS as $,j as c,c3 as L,aT as z,b5 as A,a7 as _,a8 as g,c4 as b,aV as j,c5 as G,c6 as w,c7 as H,c8 as K,ae as V,c9 as U,ca as W,cb as Z,cc as q,cd as B,ce as J,e as R,c as Q}from"./index-
|
|
1
|
+
import{r as i,aS as $,j as c,c3 as L,aT as z,b5 as A,a7 as _,a8 as g,c4 as b,aV as j,c5 as G,c6 as w,c7 as H,c8 as K,ae as V,c9 as U,ca as W,cb as Z,cc as q,cd as B,ce as J,e as R,c as Q}from"./index-CzOMQ7ME.js";var C="Popover",[E]=V(C,[w]),P=w(),[X,u]=E(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=P(e),l=i.useRef(null),[d,h]=i.useState(!1),[x,f]=$({prop:r,defaultProp:n??!1,onChange:s,caller:C});return c.jsx(L,{...p,children:c.jsx(X,{scope:e,contentId:z(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:d,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:a,children:o})})};N.displayName=C;var F="PopoverAnchor",Y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(F,o),s=P(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(b,{...s,...r,ref:e})});Y.displayName=F;var S="PopoverTrigger",y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(S,o),s=P(o),a=A(e,n.triggerRef),p=c.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":I(n.open),...r,ref:a,onClick:g(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(b,{asChild:!0,...s,children:p})});y.displayName=S;var O="PopoverPortal",[ee,oe]=E(O,{forceMount:void 0}),D=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=u(O,e);return c.jsx(ee,{scope:e,forceMount:o,children:c.jsx(j,{present:o||s.open,children:c.jsx(G,{asChild:!0,container:n,children:r})})})};D.displayName=O;var v="PopoverContent",M=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=u(v,t.__scopePopover);return c.jsx(j,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});M.displayName=v;var te=U("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(null),n=A(e,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return H(a)},[]),c.jsx(K,{as:te,allowPinchZoom:!0,children:c.jsx(T,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g(t.onPointerDownOutside,a=>{const p=a.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,d=p.button===2||l;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:g(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return c.jsx(T,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),T=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:h,...x}=t,f=u(v,o),m=P(o);return W(),c.jsx(Z,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(q,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(B,{"data-state":I(f.open),role:"dialog",id:f.contentId,...m,...x,ref:e,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),k="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(k,o);return c.jsx(_.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=k;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return c.jsx(J,{...n,...r,ref:e})});ce.displayName=ae;function I(t){return t?"open":"closed"}var ie=N,pe=y,le=D,de=M;function fe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function ve(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function ge(t){const e=R.c(12);let o,r,n,s;e[0]!==t?({className:o,align:n,sideOffset:s,...r}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s):(o=e[1],r=e[2],n=e[3],s=e[4]);const a=n===void 0?"center":n,p=s===void 0?4:s;let l;e[5]!==o?(l=Q("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg overflow-hidden border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=l):l=e[6];let d;return e[7]!==a||e[8]!==r||e[9]!==p||e[10]!==l?(d=c.jsx(le,{children:c.jsx(de,{"data-slot":"popover-content",align:a,sideOffset:p,className:l,...r})}),e[7]=a,e[8]=r,e[9]=p,e[10]=l,e[11]=d):d=e[11],d}export{ve as P,ge as a,fe as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as A,j as t,b as D,z as R,C as q,P as G,t as y,x as V}from"./index-
|
|
1
|
+
import{e as A,j as t,b as D,z as R,C as q,P as G,t as y,x as V}from"./index-CzOMQ7ME.js";import{P as E}from"./index-CMD-gSoU.js";import{A as B}from"./avatar-DLcW-A0B.js";import{S as I}from"./switch-MdXM9LTQ.js";import{S as U,a as H,d as F,c as Y}from"./select-Ilj6kxB7.js";import{T as K,a as L}from"./toggle-group-i_HO-0bV.js";import{I as O}from"./input-B0c-2DIW.js";import{n as J,a as M,i as Q}from"./Sun-CBmGK6wu.js";import{i as W}from"./Play-BFNsKgtb.js";import{u as X}from"./use-debounced-autosave-T0GvbwUO.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-CVz9D9gf.js";import{d as te,b as C,S as T,a as $}from"./settings-section-DfJOrTB5.js";import"./sidebar-CHkSPfi1.js";import"./LayoutLeft-Br6mPXCN.js";import"./tooltip-Dk-x7ks3.js";import"./X-CNAnrf0f.js";import"./User01-BLvWkS9e.js";import"./Check-BXg4TGxE.js";import"./ChevronDown-DEP8rKZT.js";import"./ChevronUp-BhNdg10c.js";import"./card-Bij24Dhu.js";import"./ArrowUpRight-D9dARFlG.js";function oe(){const e=A.c(19),{data:o,isPending:s}=D.useSession(),r=o?.user,i=r?.image,l=r?.name??"";let a;e[0]!==l?(a={values:{name:l}},e[0]=l,e[1]=a):a=e[1];const n=R(a);let x;e[2]!==n?(x={save:async()=>{const S=n.control._formState.dirtyFields;if(Object.keys(S).length===0)return;const m=n.getValues(),p=n.control._defaultValues;n.reset(m,{keepValues:!0});try{await D.updateUser({name:m.name}),y("profile_updated",{fields:["name"]}),V.success("Profile updated successfully")}catch{n.reset(p,{keepValues:!0}),V.error("Failed to update profile")}}},e[2]=n,e[3]=x):x=e[3];const{schedule:j,flush:h}=X(x);if(s)return null;const g=r?.name??"U";let c;e[4]!==g||e[5]!==i?(c=t.jsx(C,{title:"Avatar",action:t.jsx(B,{url:i,fallback:g,shape:"circle",size:"base"})}),e[4]=g,e[5]=i,e[6]=c):c=e[6];let f;e[7]!==h||e[8]!==j?(f=S=>{const{field:m}=S;return t.jsx(O,{id:"display-name",...m,onChange:p=>{m.onChange(p),j()},onBlur:()=>{m.onBlur(),h()},onKeyDown:p=>{p.key==="Enter"&&h()},placeholder:"Your name",className:"w-[280px]"})},e[7]=h,e[8]=j,e[9]=f):f=e[9];let b;e[10]!==n.control||e[11]!==f?(b=t.jsx(C,{title:"Display name",action:t.jsx(q,{control:n.control,name:"name",render:f})}),e[10]=n.control,e[11]=f,e[12]=b):b=e[12];const _=r?.email;let d;e[13]!==_?(d=t.jsx(C,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:_})}),e[13]=_,e[14]=d):d=e[14];let v;return e[15]!==c||e[16]!==b||e[17]!==d?(v=t.jsx(T,{children:t.jsxs($,{children:[c,b,d]})}),e[15]=c,e[16]=b,e[17]=d,e[18]=v):v=e[18],v}function se(){const e=A.c(48),[o,s]=G();let r;e[0]!==s?(r=async u=>{if(u&&await Notification.requestPermission()!=="granted"){y("preferences_notifications_permission_denied"),V.error("Notifications denied. Please enable them in your browser settings."),s(re);return}y("preferences_notifications_toggled",{enabled:u}),s(N=>({...N,enableNotifications:u}))},e[0]=s,e[1]=r):r=e[1];const i=r;let l;e[2]!==s?(l=u=>{u&&(y("preferences_theme_changed",{to_value:u}),s(N=>({...N,theme:u})))},e[2]=s,e[3]=l):l=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(L,{value:"light","aria-label":"Light theme",children:t.jsx(J,{size:14})}),e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(L,{value:"dark","aria-label":"Dark theme",children:t.jsx(M,{size:14})}),e[5]=n):n=e[5];let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(L,{value:"system","aria-label":"System theme",children:t.jsx(Q,{size:14})}),e[6]=x):x=e[6];let j;e[7]!==o.theme||e[8]!==l?(j=t.jsx(C,{title:"Theme",description:"Your preferred color scheme.",action:t.jsxs(K,{type:"single",size:"sm",variant:"outline",value:o.theme,onValueChange:l,children:[a,n,x]})}),e[7]=o.theme,e[8]=l,e[9]=j):j=e[9];let h;e[10]!==i||e[11]!==o.enableNotifications?(h=typeof Notification<"u"?()=>i(!o.enableNotifications):void 0,e[10]=i,e[11]=o.enableNotifications,e[12]=h):h=e[12];let g;e[13]!==i||e[14]!==o.enableNotifications?(g=t.jsx(I,{disabled:typeof Notification>"u",checked:o.enableNotifications,onCheckedChange:i}),e[13]=i,e[14]=o.enableNotifications,e[15]=g):g=e[15];let c;e[16]!==h||e[17]!==g?(c=t.jsx(C,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:h,action:g}),e[16]=h,e[17]=g,e[18]=c):c=e[18];let f;e[19]!==o.enableSounds||e[20]!==s?(f=()=>{y("preferences_sounds_toggled",{enabled:!o.enableSounds}),s(le)},e[19]=o.enableSounds,e[20]=s,e[21]=f):f=e[21];let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ne,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:t.jsx(W,{size:11})}),e[22]=b):b=e[22];let _;e[23]!==s?(_=u=>{y("preferences_sounds_toggled",{enabled:u}),s(N=>({...N,enableSounds:u}))},e[23]=s,e[24]=_):_=e[24];let d;e[25]!==o.enableSounds||e[26]!==_?(d=t.jsxs("div",{className:"flex items-center gap-2",children:[b,t.jsx(I,{checked:o.enableSounds,onCheckedChange:_})]}),e[25]=o.enableSounds,e[26]=_,e[27]=d):d=e[27];let v;e[28]!==d||e[29]!==f?(v=t.jsx(C,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:f,action:d}),e[28]=d,e[29]=f,e[30]=v):v=e[30];let S;e[31]!==s?(S=u=>{y("preferences_tool_approval_changed",{to_value:u}),s(N=>({...N,toolApprovalLevel:u}))},e[31]=s,e[32]=S):S=e[32];let m;e[33]!==o.toolApprovalLevel?(m={readonly:"Ask before edit",auto:"Auto approve"}[o.toolApprovalLevel]??"Ask before edit",e[33]=o.toolApprovalLevel,e[34]=m):m=e[34];let p;e[35]!==m?(p=t.jsx(H,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:m})}),e[35]=m,e[36]=p):p=e[36];let k;e[37]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(F,{value:"readonly",textValue:"Ask before edit",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Ask before edit"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=k):k=e[37];let w;e[38]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsxs(Y,{children:[k,t.jsx(F,{value:"auto",textValue:"Auto approve",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Auto approve"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=w):w=e[38];let P;e[39]!==o.toolApprovalLevel||e[40]!==S||e[41]!==p?(P=t.jsx(C,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:t.jsxs(U,{value:o.toolApprovalLevel,onValueChange:S,children:[p,w]})}),e[39]=o.toolApprovalLevel,e[40]=S,e[41]=p,e[42]=P):P=e[42];let z;return e[43]!==v||e[44]!==P||e[45]!==j||e[46]!==c?(z=t.jsx(T,{title:"Preferences",children:t.jsxs($,{children:[j,c,v,P]})}),e[43]=v,e[44]=P,e[45]=j,e[46]=c,e[47]=z):z=e[47],z}function ne(){y("preferences_sounds_previewed"),Z(ee.dataUri).catch(ie)}function ie(){}function le(e){return{...e,enableSounds:!e.enableSounds}}function re(e){return{...e,enableNotifications:!1}}function ae(){const e=A.c(11),[o,s]=G();let r;e[0]!==o.experimental_vibecode||e[1]!==s?(r=()=>{y("preferences_experimental_vibecode_toggled",{enabled:!o.experimental_vibecode}),s(ce)},e[0]=o.experimental_vibecode,e[1]=s,e[2]=r):r=e[2];let i;e[3]!==s?(i=n=>{y("preferences_experimental_vibecode_toggled",{enabled:n}),s(x=>({...x,experimental_vibecode:n}))},e[3]=s,e[4]=i):i=e[4];let l;e[5]!==o.experimental_vibecode||e[6]!==i?(l=t.jsx(I,{checked:o.experimental_vibecode,onCheckedChange:i}),e[5]=o.experimental_vibecode,e[6]=i,e[7]=l):l=e[7];let a;return e[8]!==r||e[9]!==l?(a=t.jsx(T,{title:"Experimental",children:t.jsx($,{children:t.jsx(C,{title:"Import from GitHub",description:"Enable importing agents from GitHub repositories.",onClick:r,action:l})})}),e[8]=r,e[9]=l,e[10]=a):a=e[10],a}function ce(e){return{...e,experimental_vibecode:!e.experimental_vibecode}}function fe(){const e=A.c(1);let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(E,{children:t.jsx(E.Content,{children:t.jsx(E.Body,{children:t.jsxs(te,{children:[t.jsx(E.Title,{children:"Profile & Preferences"}),t.jsx(oe,{}),t.jsx(se,{}),t.jsx(ae,{})]})})})}),e[0]=o):o=e[0],o}function Ie(){const e=A.c(1);let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(fe,{}),e[0]=o):o=e[0],o}export{Ie as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as E,s as H,j as N}from"./index-
|
|
1
|
+
import{e as E,s as H,j as N}from"./index-CzOMQ7ME.js";import{m as O,k as $,s as v}from"./pair-Bg3A59Mm.js";import{u as L}from"./constants-CrCZOO5F.js";import{a as k,c as q}from"./use-mcp-tools-DVY8KcMA.js";import{c as B}from"./content-blocks-o63cs2vh.js";import{g as Y,M as G,b as w}from"./types-G67jsjMK.js";import{c as V,b as z}from"./chat-context-C_XiURbM.js";import{u as F}from"./shell-layout-DbyGG6Wz.js";import"./agent-icon-ChigV_SM.js";import"./AlertCircle-DBGfLjQw.js";import"./Tool01-YKVy1yNP.js";import"./Archive-BKT9Dg_O.js";import"./XClose-CPKu5cnb.js";import"./RefreshCcw01-DebjkWfq.js";import"./ArrowNarrowLeft-CukpweKs.js";import"./XCircle-QSJN9xhv.js";import"./ArrowUpRight-D9dARFlG.js";import"./ZapSquare-D07uWeTi.js";import"./Users03-C4su_vOM.js";import"./CheckCircle-Bo4QB9pu.js";import"./Check-BXg4TGxE.js";import"./ChevronDown-DEP8rKZT.js";import"./ChevronRight-CXiW90Fz.js";import"./ChevronUp-BhNdg10c.js";import"./DotsVertical-Caoo-NuL.js";import"./Container-CxQrLgnS.js";import"./Star01-CxJjtPnY.js";import"./Palette-C1Yvme6Z.js";import"./SearchMd-CePuFGwO.js";import"./LayoutLeft-Br6mPXCN.js";import"./LinkExternal01-FDsQXojs.js";import"./Lock01-CjoGpFGs.js";import"./Sun-CBmGK6wu.js";import"./Play-BFNsKgtb.js";import"./Plus-BPcc_-zf.js";import"./Settings02-B5jIAnK4.js";import"./Shield01-CKYDfpKE.js";import"./Trash01--KbsY2dn.js";import"./User01-BLvWkS9e.js";import"./X-CNAnrf0f.js";import"./Zap-B4MS-NKo.js";import"./index-nTgL534f.js";import"./use-copy-B-uFxHk6.js";import"./tooltip-Dk-x7ks3.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./dialog-zxbh5ng1.js";import"./integration-icon-BaScZvO6.js";import"./use-virtual-mcp-lxX8wI4d.js";import"./use-collections-DaGR-TK3.js";import"./use-ai-providers-Bo9kqLtW.js";import"./use-decopilot-events-Co1GYuP2.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-ChwW8r_K.js";import"./use-organization-settings-BMveAMB5.js";import"./required-auth-layout-BRR_6ANi.js";import"./use-org-sso-B3swYyz4.js";const J={};function K(S){const t=E.c(37),{client:s,resourceURI:P,tool:e,connectionId:n,orgId:p,args:a}=S,{sendMessage:c}=V(),{setAppContext:f,clearAppContext:g}=z(),{setChatOpen:u,openTab:r}=F(),m=`${n}:${e.name}`;let o;t[0]!==r?(o=h=>h==="inline"?(r("0"),"inline"):"fullscreen",t[0]=r,t[1]=o):o=t[1];const d=o,l=a??J;let i;t[2]!==s||t[3]!==e.name||t[4]!==l?(i={client:s,toolName:e.name,toolArguments:l},t[2]=s,t[3]=e.name,t[4]=l,t[5]=i):i=t[5];const{data:T}=q(i);let R;if(t[6]!==e._meta||t[7]!==e.name){const h=$(e._meta);R=v(e.name,h),t[6]=e._meta,t[7]=e.name,t[8]=R}else R=t[8];const U=R;let x;t[9]!==e.inputSchema?(x=e.inputSchema??{type:"object"},t[9]=e.inputSchema,t[10]=x):x=t[10];let A;t[11]!==U||t[12]!==x||t[13]!==e?(A={...e,name:U,inputSchema:x},t[11]=U,t[12]=x,t[13]=e,t[14]=A):A=t[14];const y=A;let _;t[15]!==c||t[16]!==u?(_=h=>{const b=B(h.content);b.content.length>0&&(u(!0),c({tiptapDoc:b}))},t[15]=c,t[16]=u,t[17]=_):_=t[17];const D=_;let C;t[18]!==y?(C={tool:y},t[18]=y,t[19]=C):C=t[19];let I;t[20]!==f||t[21]!==m?(I=h=>f(m,h),t[20]=f,t[21]=m,t[22]=I):I=t[22];let M;t[23]!==g||t[24]!==m?(M=()=>g(m),t[23]=g,t[24]=m,t[25]=M):M=t[25];let j;return t[26]!==s||t[27]!==D||t[28]!==d||t[29]!==p||t[30]!==P||t[31]!==C||t[32]!==I||t[33]!==M||t[34]!==l||t[35]!==T?(j=N.jsx(G,{resourceURI:P,orgId:p,toolInfo:C,toolInput:l,toolResult:T,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:s,onMessage:D,onUpdateModelContext:I,onTeardown:M,onRequestDisplayMode:d,className:"h-full"}),t[26]=s,t[27]=D,t[28]=d,t[29]=p,t[30]=P,t[31]=C,t[32]=I,t[33]=M,t[34]=l,t[35]=T,t[36]=j):j=t[36],j}function Xt(S){const t=E.c(23),{connectionId:s,toolName:P,args:e}=S,{org:n}=H();let p;t[0]!==s||t[1]!==n.id||t[2]!==n.slug?(p={connectionId:s,orgId:n.id,orgSlug:n.slug},t[0]=s,t[1]=n.id,t[2]=n.slug,t[3]=p):p=t[3];const a=L(p);let c;t[4]!==a?(c={client:a},t[4]=a,t[5]=c):c=t[5];const{data:f}=k(c),g=decodeURIComponent(P);let u;t[6]!==g?(u=O(g),t[6]=g,t[7]=u):u=t[7];const r=u;let m,o;if(t[8]!==r||t[9]!==f.tools){let i;t[12]!==r?(i=T=>T.name===r,t[12]=r,t[13]=i):i=t[13],o=f.tools.find(i),m=o?._meta?Y(o._meta):void 0,t[8]=r,t[9]=f.tools,t[10]=m,t[11]=o}else m=t[10],o=t[11];const d=m;if(!o||!d){let i;return t[14]!==r?(i=N.jsx("div",{className:"flex items-center justify-center h-full w-full",children:N.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[14]=r,t[15]=i):i=t[15],i}let l;return t[16]!==e||t[17]!==a||t[18]!==s||t[19]!==n.id||t[20]!==d||t[21]!==o?(l=N.jsx(K,{client:a,resourceURI:d,tool:o,connectionId:s,orgId:n.id,args:e}),t[16]=e,t[17]=a,t[18]=s,t[19]=n.id,t[20]=d,t[21]=o,t[22]=l):l=t[22],l}export{Xt as AppViewContent};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CmjO7_QP.js","assets/index-CzOMQ7ME.js","assets/index-DtJ8d1aI.css","assets/ArrowNarrowLeft-CukpweKs.js","assets/CheckCircle-Bo4QB9pu.js","assets/Container-CxQrLgnS.js","assets/Settings02-B5jIAnK4.js","assets/XCircle-QSJN9xhv.js","assets/constants-CrCZOO5F.js","assets/useInfiniteQuery-ImrWnFFo.js","assets/infiniteQueryObserver-C3rVl4tZ.js","assets/badge-Bovdptse.js","assets/input-B0c-2DIW.js","assets/dropdown-menu-BHUBCwIp.js","assets/Check-BXg4TGxE.js","assets/ChevronRight-CXiW90Fz.js","assets/DotsVertical-Caoo-NuL.js","assets/table-DqMsTisq.js","assets/toggle-group-i_HO-0bV.js","assets/use-view-mode-MWDbD9TW.js","assets/tooltip-Dk-x7ks3.js","assets/SearchMd-CePuFGwO.js","assets/dialog-zxbh5ng1.js","assets/X-CNAnrf0f.js","assets/AlertCircle-DBGfLjQw.js","assets/alert-dialog-B-CFL8EO.js","assets/card-Bij24Dhu.js","assets/Trash01--KbsY2dn.js","assets/label-gqBY6uyz.js","assets/select-Ilj6kxB7.js","assets/ChevronDown-DEP8rKZT.js","assets/ChevronUp-BhNdg10c.js","assets/switch-MdXM9LTQ.js","assets/textarea-BqfIjmtd.js","assets/RefreshCcw01-DebjkWfq.js","assets/checkbox-DepLdWR1.js","assets/LinkExternal01-FDsQXojs.js","assets/use-copy-B-uFxHk6.js","assets/Plus-BPcc_-zf.js","assets/Play-BFNsKgtb.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{e as a,j as t,r,l as i,_ as o}from"./index-CzOMQ7ME.js";const n=r.lazy(()=>o(()=>import("./registry-layout-CmjO7_QP.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39])));function c(){const s=a.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(r.Suspense,{fallback:t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(i,{size:20,className:"animate-spin text-muted-foreground"})}),children:t.jsx(n,{})}),s[0]=e):e=s[0],e}export{c as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Y,s as ie,n as Ie,o as ke,a as je,x as V,r as P,j as t,B as G,l as Le,c as Z,G as Fs,F as Bs}from"./index-
|
|
1
|
+
import{e as Y,s as ie,n as Ie,o as ke,a as je,x as V,r as P,j as t,B as G,l as Le,c as Z,G as Fs,F as Bs}from"./index-CzOMQ7ME.js";import{i as Qs}from"./ArrowNarrowLeft-CukpweKs.js";import{i as qe}from"./CheckCircle-Bo4QB9pu.js";import{n as Vs}from"./Container-CxQrLgnS.js";import{a as Gs}from"./Settings02-B5jIAnK4.js";import{b as Jt,n as Ks,a as ds,f as Zt,g as Ys,h as us,d as Hs,e as Ws,i as Js,c as St,t as Zs,j as Xs}from"./XCircle-QSJN9xhv.js";import{S as ce,u as oe,d as er}from"./constants-CrCZOO5F.js";import{u as ms}from"./useInfiniteQuery-ImrWnFFo.js";import{B as q}from"./badge-Bovdptse.js";import{I as ae}from"./input-B0c-2DIW.js";import{a as dt,c as Ce,D as ut,b as mt,j as Xt,k as es,i as tr}from"./dropdown-menu-BHUBCwIp.js";import{c as Mt,d as Et,a as Fe,e as ue,b as Dt,T as me}from"./table-DqMsTisq.js";import{T as sr,a as ts}from"./toggle-group-i_HO-0bV.js";import{u as rr}from"./use-view-mode-MWDbD9TW.js";import{i as At}from"./DotsVertical-Caoo-NuL.js";import{i as nr,a as ir}from"./SearchMd-CePuFGwO.js";import{c as xt,d as ht,e as pt,D as ft,a as gt,b as jt}from"./dialog-zxbh5ng1.js";import{i as Ke}from"./AlertCircle-DBGfLjQw.js";import{c as Ye,b as He,d as We,f as Je,g as Ze,e as Xe,a as et,A as tt}from"./alert-dialog-B-CFL8EO.js";import{C as ne}from"./card-Bij24Dhu.js";import{s as st}from"./Trash01--KbsY2dn.js";import{L as X}from"./label-gqBY6uyz.js";import{S as lr,a as ar,b as or,c as cr,d as Rt}from"./select-Ilj6kxB7.js";import{S as Oe}from"./switch-MdXM9LTQ.js";import{T as vt}from"./textarea-BqfIjmtd.js";import{a as $t,c as dr,i as ur,s as xs,b as mr}from"./RefreshCcw01-DebjkWfq.js";import{i as xr}from"./X-CNAnrf0f.js";import{t as hr}from"./ChevronDown-DEP8rKZT.js";import{n as pr}from"./ChevronUp-BhNdg10c.js";import{C as ss}from"./checkbox-DepLdWR1.js";import{n as fr}from"./LinkExternal01-FDsQXojs.js";import{u as Tt}from"./use-copy-B-uFxHk6.js";import{i as It}from"./Check-BXg4TGxE.js";import{s as gr}from"./Plus-BPcc_-zf.js";import{T as jr,a as vr,b as br}from"./tooltip-Dk-x7ks3.js";import{i as yr}from"./Play-BFNsKgtb.js";import"./infiniteQueryObserver-C3rVl4tZ.js";import"./ChevronRight-CXiW90Fz.js";const $e="private-registry",Nr=`
|
|
2
2
|
You are an MCP tool tester running automated integration checks.
|
|
3
3
|
|
|
4
4
|
Goal:
|
package/dist/client/assets/{required-auth-layout-CKWnvSJk.js → required-auth-layout-BRR_6ANi.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c,j as i,A as a,S as u,h,k as f,U as m,N as x}from"./index-
|
|
1
|
+
import{e as c,j as i,A as a,S as u,h,k as f,U as m,N as x}from"./index-CzOMQ7ME.js";function g(){const t=c.c(5),s=m().location.href;let r;t[0]!==s?(r=s==="/login"||s.startsWith("/login?"),t[0]=s,t[1]=r):r=t[1];const n=r;let o;if(t[2]!==s||t[3]!==n){const l=n?{}:{next:s};o=i.jsx(x,{to:"/login",search:l,replace:!0}),t[2]=s,t[3]=n,t[4]=o}else o=t[4];return o}function d(t){const e=c.c(6),{children:s}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(a,{children:i.jsx(u,{})}),e[0]=r):r=e[0];let n;e[1]!==s?(n=i.jsx(h,{children:s}),e[1]=s,e[2]=n):n=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(f,{children:i.jsx(g,{})}),e[3]=o):o=e[3];let l;return e[4]!==n?(l=i.jsxs(i.Fragment,{children:[r,n,o]}),e[4]=n,e[5]=l):l=e[5],l}export{d as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as q,d as Y,f as A,r as B,a as G,j as s,B as z,b as K}from"./index-
|
|
1
|
+
import{e as q,d as Y,f as A,r as B,a as G,j as s,B as z,b as K}from"./index-CzOMQ7ME.js";import{I as L}from"./input-B0c-2DIW.js";function H(){const e=q.c(45);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/reset-password"},e[0]=n):n=e[0];const{token:r,error:h}=Y(n),a=A(),[o,D]=B.useState(""),[l,M]=B.useState(""),[t,T]=B.useState(!1),i=h==="INVALID_TOKEN";let j;e[1]===Symbol.for("react.memo_cache_sentinel")?(j={mutationFn:O,onSuccess:()=>{T(!0)}},e[1]=j):j=e[1];const w=G(j),v=o===l,c=o.length>=8&&l.length>=8&&v,d=w.isPending,N=w.error;let y;e[2]!==c||e[3]!==o||e[4]!==w||e[5]!==r?(y=b=>{b.preventDefault(),!(!r||!c)&&w.mutate({newPassword:o,token:r})},e[2]=c,e[3]=o,e[4]=w,e[5]=r,e[6]=y):y=e[6];const F=y;let k;e[7]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle, var(--primary-foreground) 1px, transparent 1px)",backgroundSize:"16px 16px",opacity:.15}}),e[7]=k):k=e[7];let S,_,P,C;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),_=s.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),P=s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),C=s.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),e[8]=S,e[9]=_,e[10]=P,e[11]=C):(S=e[8],_=e[9],P=e[10],C=e[11]);let E;e[12]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"flex justify-center",children:s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12"})}),e[12]=E):E=e[12];const I=t?"Password reset successful":"Set a new password";let m;e[13]!==I?(m=s.jsx("div",{className:"text-center space-y-1",children:s.jsx("p",{className:"text-sm text-foreground/70",children:I})}),e[13]=I,e[14]=m):m=e[14];let u;e[15]!==i||e[16]!==a||e[17]!==t||e[18]!==r?(u=(i||!r&&!t)&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:"This reset link is invalid or has expired."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Back to login"})]}),e[15]=i,e[16]=a,e[17]=t,e[18]=r,e[19]=u):u=e[19];let x;e[20]!==N?(x=N&&s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:N.message||"Failed to reset password. Please try again."}),e[20]=N,e[21]=x):x=e[21];let f;e[22]!==a||e[23]!==t?(f=t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-emerald-500/10 p-3 text-sm text-emerald-600 dark:text-emerald-400 text-center",children:"Your password has been reset. You can now sign in with your new password."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Go to login"})]}),e[22]=a,e[23]=t,e[24]=f):f=e[24];let g;e[25]!==c||e[26]!==l||e[27]!==F||e[28]!==i||e[29]!==d||e[30]!==o||e[31]!==v||e[32]!==t||e[33]!==r?(g=r&&!i&&!t&&s.jsxs("form",{onSubmit:F,className:"grid gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"New password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:o,onChange:b=>D(b.target.value),required:!0,minLength:8,disabled:d})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Confirm password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:l,onChange:b=>M(b.target.value),required:!0,minLength:8,disabled:d}),l&&!v&&s.jsx("p",{className:"text-xs text-destructive mt-1.5",children:"Passwords do not match"})]}),s.jsx(z,{type:"submit",disabled:d||!c,className:"w-full font-semibold",size:"lg",children:d?"Resetting...":"Reset password"})]}),e[25]=c,e[26]=l,e[27]=F,e[28]=i,e[29]=d,e[30]=o,e[31]=v,e[32]=t,e[33]=r,e[34]=g):g=e[34];let p;e[35]!==a||e[36]!==t?(p=!t&&s.jsx("div",{className:"text-center",children:s.jsx(z,{type:"button",variant:"link",onClick:()=>a({to:"/login"}),className:"text-sm text-muted-foreground hover:text-foreground",children:"Back to sign in"})}),e[35]=a,e[36]=t,e[37]=p):p=e[37];let R;return e[38]!==m||e[39]!==u||e[40]!==x||e[41]!==f||e[42]!==g||e[43]!==p?(R=s.jsxs("main",{className:"relative flex min-h-screen items-center justify-center bg-gradient-to-br from-primary to-primary/75 p-4",children:[k,s.jsxs("div",{className:"relative z-10",children:[S,_,P,C,s.jsxs("div",{className:"mx-auto w-full min-w-[400px] max-w-md grid gap-6 bg-card p-10 border border-primary-foreground/20",children:[E,m,u,x,f,g,p]})]})]}),e[38]=m,e[39]=u,e[40]=x,e[41]=f,e[42]=g,e[43]=p,e[44]=R):R=e[44],R}async function O(e){const{newPassword:n,token:r}=e,h=await K.resetPassword({newPassword:n,token:r});if(h.error)throw new Error(h.error.message||"Failed to reset password");return h}export{H as default};
|