decocms 4.374.1 → 4.375.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-CvB24fpQ.js → AlertCircle-CqW1GFxy.js} +1 -1
- package/dist/client/assets/{AreaChart-CC-VldiG.js → AreaChart-DYNRbtHa.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CuPXwhY9.js → ArrowLeft-BGvcqKye.js} +1 -1
- package/dist/client/assets/{ArrowRight-DaeNVQjU.js → ArrowRight-CfSh04kd.js} +1 -1
- package/dist/client/assets/{ArrowUp-CMB2_B55.js → ArrowUp-DIK810PT.js} +1 -1
- package/dist/client/assets/{CartesianChart-fcGDW8tl.js → CartesianChart-CsHrela1.js} +1 -1
- package/dist/client/assets/{CheckCircle-L9rxLy8_.js → CheckCircle-eFuhjKFT.js} +1 -1
- package/dist/client/assets/{ChevronUp-Dy-cXbOz.js → ChevronUp-QcSQ5rVq.js} +1 -1
- package/dist/client/assets/{Copy01-KomJ49aq.js → Copy01-BsZDIS3z.js} +1 -1
- package/dist/client/assets/{CreditCard01-DNXTqT2E.js → CreditCard01-yw_JaYDH.js} +1 -1
- package/dist/client/assets/{DotsVertical-CycZdUV6.js → DotsVertical-DCTIN1zx.js} +1 -1
- package/dist/client/assets/{Download01-CK_3UsO1.js → Download01-B4Q5hpED.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-C_8xGdFw.js → ErrorBarContext-CTDVFTli.js} +1 -1
- package/dist/client/assets/{Eye-KAte8whD.js → Eye-C46dzrHd.js} +1 -1
- package/dist/client/assets/{Globe01-BmMm30Hp.js → Globe01-DlhUCcjG.js} +1 -1
- package/dist/client/assets/{Globe04-D2pxwWDa.js → Globe04-ClHubtty.js} +1 -1
- package/dist/client/assets/{Image01-BHoZzJSj.js → Image01-DVR_EyJG.js} +1 -1
- package/dist/client/assets/{Key01-BiLmhCHZ.js → Key01-muV6twoN.js} +1 -1
- package/dist/client/assets/{LayoutLeft-Dk8cMo-H.js → LayoutLeft-xdqdW3pr.js} +1 -1
- package/dist/client/assets/{Line-QF9kobp-.js → Line-hpj-dLud.js} +1 -1
- package/dist/client/assets/{Link01-BSX_7wIu.js → Link01-BbJKwlY6.js} +1 -1
- package/dist/client/assets/{LinkExternal01-COMF34Up.js → LinkExternal01-FZW_JKrN.js} +1 -1
- package/dist/client/assets/{Monitor01-C25vfwGa.js → Monitor01-CN-5WdRa.js} +1 -1
- package/dist/client/assets/{Package-BCflABQ6.js → Package-CkvAk6JQ.js} +1 -1
- package/dist/client/assets/{Palette-By8W7B7e.js → Palette-D8vRagJV.js} +1 -1
- package/dist/client/assets/{Play-C6orNG1z.js → Play-P0YcNy8v.js} +1 -1
- package/dist/client/assets/{Plus-BuCQnPNG.js → Plus-DcpbfgdJ.js} +1 -1
- package/dist/client/assets/{SearchLg-VMEsA-e7.js → SearchLg-7L27EznQ.js} +1 -1
- package/dist/client/assets/{SearchMd-DnahVlUn.js → SearchMd-XFzJrarE.js} +1 -1
- package/dist/client/assets/{Sector-CzI1MlO5.js → Sector-CLGxXMU7.js} +1 -1
- package/dist/client/assets/{Settings02-BZd-qcWS.js → Settings02-CncEwCCz.js} +1 -1
- package/dist/client/assets/{Share07-tpVfUX9-.js → Share07-CxrO44KP.js} +1 -1
- package/dist/client/assets/{Stars01-BcbLgM7d.js → Stars01-DyW-G6OS.js} +1 -1
- package/dist/client/assets/{Sun-C6ausIaw.js → Sun-xECmqRY7.js} +1 -1
- package/dist/client/assets/{Tool01-BlcXvpRH.js → Tool01-dwGgKodr.js} +1 -1
- package/dist/client/assets/{Tool02-BcSzj1eN.js → Tool02-CbeJXNE6.js} +1 -1
- package/dist/client/assets/{Trash01-Bt7knSgw.js → Trash01-Cs1900Vx.js} +1 -1
- package/dist/client/assets/{TrendUp01-kAJZHj1O.js → TrendUp01-BfIYShuZ.js} +1 -1
- package/dist/client/assets/{Upload01-CgS71RUS.js → Upload01-odxUyqlC.js} +1 -1
- package/dist/client/assets/{User01-DKY_ILGI.js → User01-C-kfOI2V.js} +1 -1
- package/dist/client/assets/{UserSquare-DU12tvTU.js → UserSquare-CBd8Lm1t.js} +1 -1
- package/dist/client/assets/{Users01-COWDl5zV.js → Users01-DW5XXBNa.js} +1 -1
- package/dist/client/assets/{X-DcceC-EQ.js → X-DgI4yqfX.js} +1 -1
- package/dist/client/assets/{XCircle-BirmII4v.js → XCircle-ChzUwnd9.js} +1 -1
- package/dist/client/assets/{XClose-CZo1KF0t.js → XClose-Cu0FBQhr.js} +1 -1
- package/dist/client/assets/{Zap-CIXkomUE.js → Zap-BkWm3G14.js} +1 -1
- package/dist/client/assets/{ZoomOut-CvMfmw42.js → ZoomOut-BYNmIOoy.js} +1 -1
- package/dist/client/assets/{access-gate-BkpH0rYV.js → access-gate-DrhvBokN.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DDFaH4NS.js → add-connection-dialog-BNKRqesq.js} +1 -1
- package/dist/client/assets/{agent-analytics-DI585OA2.js → agent-analytics-DhJQZGBL.js} +1 -1
- package/dist/client/assets/agent-app-CwhHpeQZ.js +1 -0
- package/dist/client/assets/agent-assets-BG71p0Uk.js +1 -0
- package/dist/client/assets/{agent-automation-CoXN7oT_.js → agent-automation-CDChcSyV.js} +1 -1
- package/dist/client/assets/{agent-automations-Dh2ldvlj.js → agent-automations-Ds_gyptW.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-p5uTnj09.js → agent-connect-sources-BQVAyJ4p.js} +1 -1
- package/dist/client/assets/agent-deck-w5dW0RRF.js +1 -0
- package/dist/client/assets/{agent-e2e-CgjMtxKa.js → agent-e2e-Waa8S4qH.js} +1 -1
- package/dist/client/assets/{agent-experiments-Z90gGdDa.js → agent-experiments-DocmKFCq.js} +1 -1
- package/dist/client/assets/agent-file-BNrxE2XH.js +1 -0
- package/dist/client/assets/{agent-git-8ujBeOTw.js → agent-git-CcB_AU8a.js} +2 -2
- package/dist/client/assets/{agent-hosting-Bzvqx7RN.js → agent-hosting-DqC3jsqS.js} +1 -1
- package/dist/client/assets/{agent-icon-Bbnm30MH.js → agent-icon-DZmc5CaF.js} +1 -1
- package/dist/client/assets/agent-library-file-CcAfTvZD.js +1 -0
- package/dist/client/assets/{agent-monitor-pcRQgKqs.js → agent-monitor-j0thXn_z.js} +1 -1
- package/dist/client/assets/{agent-overview-wBMo3ArI.js → agent-overview-Se96_nVw.js} +1 -1
- package/dist/client/assets/agent-settings-BUJ9WCtJ.js +1 -0
- package/dist/client/assets/{agent-site-editor-B_7293-6.js → agent-site-editor-BUv5taoc.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-UGzk7VE6.js +2 -0
- package/dist/client/assets/agent-site-editor-content-BT2waE8I.js +2 -0
- package/dist/client/assets/{agent-site-editor-preview-BoUgjuFc.js → agent-site-editor-preview-BYZPX7tr.js} +3 -3
- package/dist/client/assets/agent-view-CljCxEEY.js +1 -0
- package/dist/client/assets/{agent-view-guard-CE-w87FC.js → agent-view-guard-B-yMTUz4.js} +1 -1
- package/dist/client/assets/{agents-list-DYu2megT.js → agents-list--UPC2z-V.js} +1 -1
- package/dist/client/assets/{ai-providers-C4xd0vpP.js → ai-providers-DoD-WkyR.js} +2 -2
- package/dist/client/assets/{alert-JJIsthFC.js → alert-BiRypa2I.js} +1 -1
- package/dist/client/assets/{alert-dialog-DQ7VA4it.js → alert-dialog-BYQAyeOC.js} +1 -1
- package/dist/client/assets/{api-keys-Da7XeDcP.js → api-keys-CFH8WzHp.js} +1 -1
- package/dist/client/assets/api-keys-Vr2mIxG4.js +1 -0
- package/dist/client/assets/app-editor-D_IiCvgl.js +1 -0
- package/dist/client/assets/{asset-utils-Ckrgql68.js → asset-utils-Db2ZBQHY.js} +1 -1
- package/dist/client/assets/{auth-BAIe_T8g.js → auth-BCpLT4L2.js} +1 -1
- package/dist/client/assets/{auth-catchall-C3HcGo7O.js → auth-catchall-CSzayJNY.js} +1 -1
- package/dist/client/assets/{auth-entry-CXeBQuWy.js → auth-entry-Bf9MzjUn.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BLHoHl9d.js → auth-split-layout-B1xn3sDE.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-B_2a5Vfr.js → authenticate-and-persist-oauth-DVNhuSYI.js} +1 -1
- package/dist/client/assets/{automation-list-row-zcGZ57kC.js → automation-list-row-CfW-tzTh.js} +1 -1
- package/dist/client/assets/{automation-runs-CO5cfbAL.js → automation-runs-CI1zLVwE.js} +1 -1
- package/dist/client/assets/automations-DRLDJWNL.js +1 -0
- package/dist/client/assets/{autosend-DrbiZ7KD.js → autosend-U0G_KEv2.js} +1 -1
- package/dist/client/assets/{avatar-DAAVe66-.js → avatar-DxbODU4C.js} +1 -1
- package/dist/client/assets/{badge-Cxdo9MSD.js → badge-D6ygNqO6.js} +1 -1
- package/dist/client/assets/{block-document-BmtOSR_U.js → block-document-BezbnyKl.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-B9WGUHQW.js → blocks-preview-workspace-context-CTo5jpQ8.js} +1 -1
- package/dist/client/assets/{breadcrumb-Cl92-rSB.js → breadcrumb-DWcfFz9-.js} +1 -1
- package/dist/client/assets/{buckets-IfbnGi1h.js → buckets-CYMWAXId.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BjB8yBFt.js → build-improve-prompt-doc-C7lr6nl8.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BCXzorgr.js → bulk-category-panel-Bj1SJBXK.js} +1 -1
- package/dist/client/assets/{calendar-D29VArmq.js → calendar-PQ1Ftg13.js} +1 -1
- package/dist/client/assets/{capability-load-error-BML32Rgk.js → capability-load-error-CvIv1gsN.js} +1 -1
- package/dist/client/assets/category-editor-DliRWtls.js +1 -0
- package/dist/client/assets/{chart-DPH16IOZ.js → chart-Dr36_7b5.js} +1 -1
- package/dist/client/assets/{chat-context-BSf3NsZt.js → chat-context-BkliO4re.js} +5 -5
- package/dist/client/assets/{chat-draft-CYnWSaLo.js → chat-draft-CiN5fXJU.js} +1 -1
- package/dist/client/assets/{checkbox-Dabg6CvC.js → checkbox-Cklt31AJ.js} +1 -1
- package/dist/client/assets/{choose-editor-Cp-nak_V.js → choose-editor-DGrCIRT5.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Cn8-SffB.js → cli-auth-success-BHmPrydv.js} +1 -1
- package/dist/client/assets/{client-icons-I35gtKUf.js → client-icons-CS1fp_mb.js} +1 -1
- package/dist/client/assets/{collapsible-Cc5z9cdY.js → collapsible-DnZ_wlS4.js} +1 -1
- package/dist/client/assets/{collection-detail-DjBn5zYW.js → collection-detail-DwkABCiq.js} +1 -1
- package/dist/client/assets/{collection-display-button-BMj7QQEq.js → collection-display-button-CODidBR9.js} +1 -1
- package/dist/client/assets/{collection-search-ACimtR3t.js → collection-search-2f8pAB4Y.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D6uxp16B.js → collection-table-wrapper-D2XJ_BvC.js} +1 -1
- package/dist/client/assets/{collection-tabs-wZHzLlos.js → collection-tabs-CYx5-BiK.js} +1 -1
- package/dist/client/assets/{combobox-CFiHpYi-.js → combobox-BxJAO8U7.js} +1 -1
- package/dist/client/assets/{command-uelHA4Qc.js → command-s8BJjz1Z.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CElJkf6T.js → companion-mcps-section-idD3Wjuq.js} +1 -1
- package/dist/client/assets/{connect-C1wR3kQS.js → connect-YaAoKXfV.js} +2 -2
- package/dist/client/assets/{connect-layout-CEjyLlsQ.js → connect-layout-B5NqOhZR.js} +1 -1
- package/dist/client/assets/{connection-card-z-DTL8a8.js → connection-card-CyoPC3yi.js} +1 -1
- package/dist/client/assets/{connection-detail-DTW_zDz8.js → connection-detail-DUSw9X3H.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-w89tRjJb.js → connection-form-helpers-BKito2Bz.js} +1 -1
- package/dist/client/assets/{connection-CCOtyiTz.js → connection-ju8s9npF.js} +1 -1
- package/dist/client/assets/{connections-BCg7O22V.js → connections-B9YPH6e_.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DgZgs9aG.js → create-organization-dialog-Bd1vOpVb.js} +1 -1
- package/dist/client/assets/{decofile-api-BCvZWky6.js → decofile-api-tER_PaB4.js} +1 -1
- package/dist/client/assets/{decopilot-JzsJWa1H.js → decopilot-f7DFX3Qm.js} +2 -2
- package/dist/client/assets/{dialog-BVRmgEZZ.js → dialog-CfR9zhfQ.js} +1 -1
- package/dist/client/assets/{discover-CPUegLX9.js → discover-BuXt2vx3.js} +1 -1
- package/dist/client/assets/{domain-settings-BL6MiMeP.js → domain-settings-CqFWBtGR.js} +1 -1
- package/dist/client/assets/{download-app-dialog-BSQlf9Pn.js → download-app-dialog-BP-_J1f-.js} +1 -1
- package/dist/client/assets/{drawer-BwM5wPz_.js → drawer-BiF0PtML.js} +1 -1
- package/dist/client/assets/{editor-B9nqdqUb.js → editor-DUpmzLo7.js} +1 -1
- package/dist/client/assets/{empty-state-CUy_IWGW.js → empty-state-9hlMmNlC.js} +1 -1
- package/dist/client/assets/{empty-state-CyI2CaLY.js → empty-state-D6UqEEY-.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BYtH8M2u.js → extract-connection-data-DgcpMlth.js} +1 -1
- package/dist/client/assets/{feature-gate-Cf4hZv0B.js → feature-gate-D5GuzQQe.js} +1 -1
- package/dist/client/assets/{feature-paywall-BSg5h6Wb.js → feature-paywall-BikFTLog.js} +1 -1
- package/dist/client/assets/{file-explorer-BaQZtdi0.js → file-explorer-CQocIpVZ.js} +1 -1
- package/dist/client/assets/{file-preview-C3-dWXmK.js → file-preview-DNlbJHv7.js} +1 -1
- package/dist/client/assets/{file-share-button-BuCRyD4f.js → file-share-button-CO47V7vg.js} +1 -1
- package/dist/client/assets/{file-type-icon-Dg8sADAf.js → file-type-icon-Dv-tVjqp.js} +1 -1
- package/dist/client/assets/{folder-icon-DA4ZaB45.js → folder-icon-186o_xBL.js} +1 -1
- package/dist/client/assets/{form-DwCt2SR2.js → form-DHJlhF9m.js} +1 -1
- package/dist/client/assets/{gateway-client-D0oBW_qu.js → gateway-client-4Nr9Lszn.js} +1 -1
- package/dist/client/assets/{general-B9q-xe3O.js → general-BCtaDRKE.js} +1 -1
- package/dist/client/assets/{github-icon-C0b5ErP6.js → github-icon-B7rNxQCT.js} +1 -1
- package/dist/client/assets/{home-Dd28TK1r.js → home-Dskdg6sU.js} +1 -1
- package/dist/client/assets/{hooks-D0h9yhqP.js → hooks-BB3WxPkJ.js} +2 -2
- package/dist/client/assets/{hooks-DZN1ZKP-.js → hooks-Vq5fn_Sg.js} +1 -1
- package/dist/client/assets/{icon-button-DU-Ln0Ge.js → icon-button-C0MdJ7W1.js} +1 -1
- package/dist/client/assets/{index-BfTKB7dV.js → index-BCtojorK.js} +1 -1
- package/dist/client/assets/{index-CB_d_Ww9.js → index-BDzkh4SF.js} +1 -1
- package/dist/client/assets/{index-BK4gf4on.js → index-BNnRrN_z.js} +1 -1
- package/dist/client/assets/{index--5vhPfMl.js → index-BNtnQdj2.js} +1 -1
- package/dist/client/assets/{index-B4Sw3hof.js → index-BxPwUex4.js} +1 -1
- package/dist/client/assets/index-C-9eP1YM.js +1 -0
- package/dist/client/assets/{index-BNah-P_g.css → index-CCCwF5vG.css} +1 -1
- package/dist/client/assets/{index-CjolVbvM.js → index-CMgSStc4.js} +1 -1
- package/dist/client/assets/{index-0kHkZucW.js → index-Ci8I2ZAh.js} +1 -1
- package/dist/client/assets/{index-ChGB7Srd.js → index-CnX1wVk0.js} +1 -1
- package/dist/client/assets/{index-B4_5ne-m.js → index-DQZBt6Fl.js} +54 -54
- package/dist/client/assets/{index-IS0010-i.js → index-Dxn1KDpE.js} +1 -1
- package/dist/client/assets/{index-AOu8Y3dB.js → index-X9VHKMKa.js} +1 -1
- package/dist/client/assets/{index-BfbICK5t.js → index-aeXfMtPI.js} +1 -1
- package/dist/client/assets/{index-redirect-BeZh12s-.js → index-redirect-2ysrmYvb.js} +1 -1
- package/dist/client/assets/{index-D_t5RQk4.js → index-waKafOzk.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CzIaF1BV.js → infiniteQueryObserver-DGwzP6OU.js} +1 -1
- package/dist/client/assets/{infra-billing-DMsr0Q0z.js → infra-billing-8H9IQAku.js} +1 -1
- package/dist/client/assets/{input-DmFaWWaQ.js → input-Clcfr53P.js} +1 -1
- package/dist/client/assets/{input-D7rTqiZA.js → input-Tjg4Yj6g.js} +2 -2
- package/dist/client/assets/{input-DhQYTu0H.js → input-rh1Mv0Wr.js} +1 -1
- package/dist/client/assets/{integration-icon-CT7gtNMF.js → integration-icon-Dz7H1-MQ.js} +1 -1
- package/dist/client/assets/{label-C5dVgFkO.js → label-BNGvxM6S.js} +1 -1
- package/dist/client/assets/{last-preview-page-BbdRTqMd.js → last-preview-page-AQeXjWi9.js} +1 -1
- package/dist/client/assets/{layout-CXaobmoR.js → layout-X2JiO2W9.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-B2dKvF3G.js → legacy-agents-deep-vurFyg9D.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-psdr3_pB.js → legacy-main-redirect-Bbkf2fqL.js} +1 -1
- package/dist/client/assets/library-BGrUeG8I.js +161 -0
- package/dist/client/assets/{login-D0perYnq.js → login-Ks2wHpj_.js} +1 -1
- package/dist/client/assets/{markdown-CdMnKnHM.js → markdown-j472BGQe.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-kud7EQ1E.js → mcp-app-renderer-CSEPd7DC.js} +2 -2
- package/dist/client/assets/{mcp-oauth-Bqx9uZfn.js → mcp-oauth-8WwU56fl.js} +1 -1
- package/dist/client/assets/{members-BWNEw7IY.js → members-DXX-_l1x.js} +1 -1
- package/dist/client/assets/{message-templates-CwYx_hD_.js → message-templates-BszS8o8W.js} +1 -1
- package/dist/client/assets/{mini-report-page-i9lqZoyF.js → mini-report-page-IeosqtjA.js} +1 -1
- package/dist/client/assets/{mock-board-DDxAYcbL.js → mock-board-DrA4dW9Q.js} +7 -7
- package/dist/client/assets/{monaco-editor-BM2SBH_J.js → monaco-editor-B4FcjfHJ.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BAfuoPc4.js → monitoring-stats-row-ClsmEIaD.js} +1 -1
- package/dist/client/assets/{multi-select-Cma9DT-0.js → multi-select-DjG7jWJv.js} +1 -1
- package/dist/client/assets/{mustache-DCrtQrVG.js → mustache-B7tW8rKl.js} +1 -1
- package/dist/client/assets/{oauth-callback-Bjj2LnDu.js → oauth-callback-CuG-N4Ag.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-iJcxShkv.js → oauth-callback-ai-provider-BQiU_dV5.js} +1 -1
- package/dist/client/assets/{onboarding-DdPHiaTb.js → onboarding-oOptdWYC.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DbUoja1k.js → optimistic-project-sidebar-views-0eAIAyQZ.js} +1 -1
- package/dist/client/assets/org-file-open-context-CV0BvKfM.js +1 -0
- package/dist/client/assets/{organization-choice-DSZdyMNl.js → organization-choice-DzIjaq6z.js} +1 -1
- package/dist/client/assets/{orgs-EQ3dRKq1.js → orgs-Uh-4y791.js} +1 -1
- package/dist/client/assets/{page-seo-form-BgfALyeP.js → page-seo-form-0XF8k2QH.js} +1 -1
- package/dist/client/assets/{pair-mgqlVrg4.js → pair-oDAsulNf.js} +7 -7
- package/dist/client/assets/{plan-ladder-DFDsraie.js → plan-ladder-DWqjM2H6.js} +1 -1
- package/dist/client/assets/{popover-BREpugAm.js → popover-hNLbYWT0.js} +1 -1
- package/dist/client/assets/{post-calendar-CnbsL0eo.js → post-calendar-DzuJkfRI.js} +1 -1
- package/dist/client/assets/{post-editor-9KdgWdvu.js → post-editor-C1Tx2rOv.js} +1 -1
- package/dist/client/assets/{preview-content-BZq0WigR.js → preview-content-DMGh32pv.js} +1 -1
- package/dist/client/assets/{preview-dialog-h7LoP6ZX.js → preview-dialog-BGQQrh8x.js} +1 -1
- package/dist/client/assets/{primitives-zMFwX0Jx.js → primitives-BFH7BLqO.js} +1 -1
- package/dist/client/assets/{profile-CstkdBJB.js → profile-Buekam-F.js} +1 -1
- package/dist/client/assets/{project-app-view-BUXGEIxz.js → project-app-view-vdLc6iv3.js} +1 -1
- package/dist/client/assets/{project-feed-B2rjMsm6.js → project-feed-DoakvNjk.js} +1 -1
- package/dist/client/assets/{project-icon-BuXyfXr6.js → project-icon-DCwjX34f.js} +1 -1
- package/dist/client/assets/project-reports-ClF5O16Z.js +1 -0
- package/dist/client/assets/project-tasks-6eulHBR4.js +1 -0
- package/dist/client/assets/{prompts-C8Tw6ift.js → prompts-CPY17-ZY.js} +1 -1
- package/dist/client/assets/record-editor-CRgsUtua.js +1 -0
- package/dist/client/assets/{redirect-editor-fDaBjJbA.js → redirect-editor-eNlr_Mfk.js} +1 -1
- package/dist/client/assets/registry-AgS1bUyh.js +2 -0
- package/dist/client/assets/{registry-layout-CBmayW3a.js → registry-layout-DryRe-Z-.js} +1 -1
- package/dist/client/assets/reports-C6IYfeap.js +1 -0
- package/dist/client/assets/{reports-D3ZxTpvh.js → reports-D1FePU5c.js} +1 -1
- package/dist/client/assets/{reports-onboarding-C-jYNNpv.js → reports-onboarding-_i1HBu7w.js} +1 -1
- package/dist/client/assets/{reports-tab-ClSQGtJf.js → reports-tab-Dl6Dk6u1.js} +2 -2
- package/dist/client/assets/{repositories-VKk9R6NV.js → repositories-CIXZv6vt.js} +1 -1
- package/dist/client/assets/{repository-import-picker-Bxit3rwH.js → repository-import-picker-Cm_I6qX6.js} +1 -1
- package/dist/client/assets/{repository-picker-Dtn2F8yh.js → repository-picker-BE31MYd2.js} +1 -1
- package/dist/client/assets/{require-capability-DNPqpx0A.js → require-capability-DpBsO_NN.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DbcZh8KB.js → required-auth-layout-CLogPoNu.js} +1 -1
- package/dist/client/assets/{reset-password-H5cLuWq1.js → reset-password-BtrZlUmp.js} +1 -1
- package/dist/client/assets/{resizable-Dw8LR1j8.js → resizable-DW-7DjHg.js} +1 -1
- package/dist/client/assets/{review-settings-CQBykdsR.js → review-settings-CvxnEwkr.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-XbfHUQMq.js → rich-text-link-control-C4o-c0sL.js} +1 -1
- package/dist/client/assets/{roles-CoipftcE.js → roles-DfAkE-T7.js} +1 -1
- package/dist/client/assets/route-BUOzO2CZ.js +1 -0
- package/dist/client/assets/{route-COHKdv7H.js → route-DkpbXtY4.js} +1 -1
- package/dist/client/assets/route-page-header-ddubqYbl.js +1 -0
- package/dist/client/assets/{route-BKi-EnKl.js → route-x1w0_XOS.js} +1 -1
- package/dist/client/assets/runnable-block-editor-D7DBqRPo.js +16 -0
- package/dist/client/assets/{sandbox-lifecycle-context-HIhyPh-5.js → sandbox-lifecycle-context-H5kbI9ib.js} +1 -1
- package/dist/client/assets/{schema-iizf-P2g.js → schema-D9hq6-Ko.js} +1 -1
- package/dist/client/assets/{scroll-area-BcoH4ReJ.js → scroll-area-COAhNkSc.js} +1 -1
- package/dist/client/assets/{search-input-CmWlEMU8.js → search-input-eDRvpCEQ.js} +1 -1
- package/dist/client/assets/{search-toggle-4qgH_UjE.js → search-toggle-ukQDdkrg.js} +1 -1
- package/dist/client/assets/{secrets-Bi8Smqwe.js → secrets-DzQr3bGF.js} +1 -1
- package/dist/client/assets/sections-editor-H_6KGCpg.js +2 -0
- package/dist/client/assets/{select--0Nrx9pz.js → select-DKZw7VY5.js} +1 -1
- package/dist/client/assets/{select-model-BKF1kjR-.js → select-model-kV4UP8Pg.js} +1 -1
- package/dist/client/assets/seo-editor-B16rwVRf.js +1 -0
- package/dist/client/assets/{separator-CMAG9KMM.js → separator-BVE7Budu.js} +1 -1
- package/dist/client/assets/{settings-tab-BrwOMHxn.js → settings-tab-BtAzz40R.js} +1 -1
- package/dist/client/assets/{sheet-KfyT4iJh.js → sheet-DuM7cckc.js} +1 -1
- package/dist/client/assets/{shell-layout-C7iq_ybu.js → shell-layout-D6lfQGd1.js} +1 -1
- package/dist/client/assets/{sidebar-Ce0KwGyJ.js → sidebar-scwXsjFh.js} +1 -1
- package/dist/client/assets/{skill-preview-DaiAGQ8W.js → skill-preview-DN9PhO9W.js} +1 -1
- package/dist/client/assets/{skills-BfYJXdvY.js → skills-7D59_aEr.js} +1 -1
- package/dist/client/assets/{sso-j34bPfk7.js → sso-DXKGvN7S.js} +1 -1
- package/dist/client/assets/{store-DjXldX1F.js → store-2S5Y_Sm_.js} +1 -1
- package/dist/client/assets/store-registry-BkpvGjQw.js +2 -0
- package/dist/client/assets/{switch-uCmnTmA3.js → switch-UqleIRW2.js} +1 -1
- package/dist/client/assets/{synced-repos-C07oiVeE.js → synced-repos-I3mzZrDI.js} +1 -1
- package/dist/client/assets/{table-Cx5xJBa9.js → table-DY3yh4UN.js} +1 -1
- package/dist/client/assets/{tabs-CMPX7aLH.js → tabs-CWunSDaT.js} +1 -1
- package/dist/client/assets/{task-board-CwfOEd0p.js → task-board-CU3xz_UX.js} +1 -1
- package/dist/client/assets/{task-route-C0NB5FI3.js → task-route-5uvHoI6U.js} +1 -1
- package/dist/client/assets/{task-status-CunX_b1I.js → task-status-CbgGINwj.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BVZIpmtK.js → taskboard-analytics-BWpTxoly.js} +1 -1
- package/dist/client/assets/{tasks-CKy3IGSO.js → tasks-DEJodw4w.js} +2 -2
- package/dist/client/assets/tasks-cQIvs8Qh.js +1 -0
- package/dist/client/assets/{textarea-CNloF_6k.js → textarea-D07XC_67.js} +1 -1
- package/dist/client/assets/{thread-button-0wpTVhK0.js → thread-button-BQ25_n_A.js} +1 -1
- package/dist/client/assets/{thread-intent-BcdlSG8J.js → thread-intent-CPB41f6a.js} +1 -1
- package/dist/client/assets/{thread-route-D5lCt0bb.js → thread-route-CDYfrzkB.js} +1 -1
- package/dist/client/assets/{thread-route-Bq7TohAn.js → thread-route-DJwg4XWL.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CZ7U6WOP.js → thread-sheet-body-PhMLKGpO.js} +1 -1
- package/dist/client/assets/{toggle-group-BPpZ90Kk.js → toggle-group-CRsJ0kJ-.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Da8s1pOb.js → toolbar-icon-button-CLaEn_t2.js} +1 -1
- package/dist/client/assets/{tooltip-Ch_anXXw.js → tooltip-BdIw7qeF.js} +1 -1
- package/dist/client/assets/{track-B2ai-lhp.js → track-D7Zl0Ub2.js} +1 -1
- package/dist/client/assets/{types-DAtj8pL_.js → types-BFditkVL.js} +1 -1
- package/dist/client/assets/{usage-stats-DECzmKdw.js → usage-stats-CydE9W4n.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BLQu9X4b.js → use-ai-providers-Jte2cXEd.js} +1 -1
- package/dist/client/assets/{use-automations-DGQLDHfM.js → use-automations-DMglF-Hp.js} +1 -1
- package/dist/client/assets/{use-autosave-D2GJMvju.js → use-autosave-BK4aenoc.js} +1 -1
- package/dist/client/assets/{use-connect-companion-TpX59d2A.js → use-connect-companion-CWVubK_K.js} +1 -1
- package/dist/client/assets/{use-connection-DEkZ7Z3y.js → use-connection-CLDZmFlP.js} +1 -1
- package/dist/client/assets/{use-copy-BdX2_tpS.js → use-copy-BwelGe7h.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B22agNFs.js → use-create-virtual-mcp-C0nekJmJ.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DdFVZp6l.js → use-date-fns-locale-9ht16XX5.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-g0CT53cz.js → use-debounced-autosave-CxvwYE3R.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CPADjlu8.js → use-debounced-value-DTrA4F64.js} +1 -1
- package/dist/client/assets/{use-deco-credits-0LI1tSh2.js → use-deco-credits-toD66YNU.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CztvGxbe.js → use-decopilot-events-Cr8-gyRq.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BrxuwVV0.js → use-delete-connection-pojdnt_G.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BW07NJZx.js → use-deployment-admin-BtzBlxtt.js} +1 -1
- package/dist/client/assets/{use-entitlements-Cpg4O4cU.js → use-entitlements-Dd8GRYfR.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BS4vDkY8.js → use-fast-preview-draft-url-6t7oVPGL.js} +1 -1
- package/dist/client/assets/{use-file-configs-T83FDKTN.js → use-file-configs-DEt6cPMd.js} +1 -1
- package/dist/client/assets/{use-in-settings-CCWZ9EQU.js → use-in-settings-CpoJAiS9.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CQVHxZ2X.js → use-infinite-scroll-BxfFw7w5.js} +1 -1
- package/dist/client/assets/{use-join-requests-BM1WOs-R.js → use-join-requests-CIDw0OFM.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BGkjNCY6.js → use-main-panel-tabs-D1QVss-2.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DPrXZk0m.js → use-mcp-auth-status-Cg-aCR2N.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Di29uH1Z.js → use-mcp-client-CuZ_CH4K.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-pRQvLesG.js → use-mcp-prompts-SnT9jAGG.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BTMKYjmq.js → use-mcp-tools-DjSYGU3r.js} +1 -1
- package/dist/client/assets/{use-members-2-cC5S8b.js → use-members-DTIbBdqQ.js} +1 -1
- package/dist/client/assets/{use-mobile-Br1FbuT5.js → use-mobile-BwXePCI-.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BIB5Nkxx.js → use-navigate-to-agent-DIxyyobE.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-DwCvmaT1.js → use-open-billing-url-CnWEYZe0.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BQN7hmW6.js → use-org-auth-client-D-YRClZm.js} +1 -1
- package/dist/client/assets/{use-org-fs-up6Ae3F-.js → use-org-fs-6rzJUZWB.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-B1-u1Sww.js → use-org-repo-syncs-BPvYovov.js} +1 -1
- package/dist/client/assets/{use-org-sso-CSb7uzWR.js → use-org-sso-EA4En7Bf.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DP4t5Npf.js → use-organization-roles-DjL7Q_JO.js} +1 -1
- package/dist/client/assets/{use-organization-settings-B7QbhgeU.js → use-organization-settings-rcECAo5J.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-7owLLl5-.js → use-panel-navigate-CCrHg3rQ.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-C6Z-dNAC.js → use-project-native-view-presence-D_C9jbvc.js} +1 -1
- package/dist/client/assets/{use-project-scope-D7MgPnbk.js → use-project-scope-ChdEK9JU.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CvrvQHoJ.js → use-registry-connections-C8ZRYmvy.js} +1 -1
- package/dist/client/assets/{use-releases-DYrm3R-D.js → use-releases-B2PktYSE.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-B0GD9uDf.js → use-reports-diagnostic-Ffc8G8Yb.js} +1 -1
- package/dist/client/assets/{use-route-default-main--vHXCkHM.js → use-route-default-main-DTBEGWiB.js} +1 -1
- package/dist/client/assets/{use-secrets-DwITZFB8.js → use-secrets-C2UFcx4t.js} +1 -1
- package/dist/client/assets/use-section-preview-base-D8AdMeK_.js +1 -0
- package/dist/client/assets/{use-session-runtime-B1xdg1Mc.js → use-session-runtime-Kk87TZ4U.js} +1 -1
- package/dist/client/assets/{use-tags-DXxTmE03.js → use-tags-BZaCfmft.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-5o37lq8z.js → use-task-board-analytics-Dbi3TI9y.js} +1 -1
- package/dist/client/assets/{use-task-metadata-xMti_d98.js → use-task-metadata-DptBPkcd.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BwzUBEaq.js → use-thread-outputs-DE9doz4g.js} +1 -1
- package/dist/client/assets/{use-view-mode-DB3Sv4EV.js → use-view-mode-CavAJ0r0.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CdMkF3Nz.js → use-virtual-mcp-4T8Uqtz2.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Ds6mCrD2.js +1 -0
- package/dist/client/assets/{useQueries-B3o1rvWe.js → useQueries-D3RKoZYz.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-M0UgyPh7.js +1 -0
- package/dist/client/assets/{users-DBFRWsia.js → users-WBHQMz8R.js} +1 -1
- package/dist/client/assets/{utils-gTOau_mh.js → utils-CyaFhLFV.js} +1 -1
- package/dist/client/assets/{variant-calendar-DOxG9iwM.js → variant-calendar-DAIHFkeQ.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DPq8EH6t.js → variant-matcher-override-Dyv3s-dG.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DYECPSMs.js → view-mode-toggle-DEbfOadi.js} +1 -1
- package/dist/client/assets/{virtual-mcp-AqKeX5w8.js → virtual-mcp-DXgT3asw.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Dd4FMRFP.js +0 -1
- package/dist/client/assets/agent-assets-ihYul22E.js +0 -1
- package/dist/client/assets/agent-deck-BWPlKksS.js +0 -1
- package/dist/client/assets/agent-file-BKO35b36.js +0 -1
- package/dist/client/assets/agent-library-file-B3_-CXIA.js +0 -1
- package/dist/client/assets/agent-settings-BxZaeWUx.js +0 -1
- package/dist/client/assets/agent-site-editor-code-B-pWeSRV.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BGJ14_Az.js +0 -2
- package/dist/client/assets/agent-view-DDrzopEk.js +0 -1
- package/dist/client/assets/api-keys-DEkuX1eT.js +0 -1
- package/dist/client/assets/app-editor-ChfXMKUs.js +0 -1
- package/dist/client/assets/automations-BQHaweWF.js +0 -1
- package/dist/client/assets/category-editor-BTonT0GY.js +0 -1
- package/dist/client/assets/index-DbfxHNth.js +0 -1
- package/dist/client/assets/library-CHpieazL.js +0 -161
- package/dist/client/assets/org-file-open-context-DNcgI0Uf.js +0 -1
- package/dist/client/assets/project-reports-BCqm5aO0.js +0 -1
- package/dist/client/assets/project-tasks-Bka5utN5.js +0 -1
- package/dist/client/assets/record-editor-BpAD-e4x.js +0 -1
- package/dist/client/assets/registry-CtLO9kjB.js +0 -2
- package/dist/client/assets/reports-D2RKwYmT.js +0 -1
- package/dist/client/assets/route-C9H7VfVw.js +0 -1
- package/dist/client/assets/route-page-header-KctxVQ_e.js +0 -1
- package/dist/client/assets/runnable-block-editor-BzVWSPHL.js +0 -16
- package/dist/client/assets/sections-editor-Bo5eUKAB.js +0 -2
- package/dist/client/assets/seo-editor-D9L3VA5c.js +0 -1
- package/dist/client/assets/store-registry-RTogK1X0.js +0 -2
- package/dist/client/assets/tasks-DF_oVYA4.js +0 -1
- package/dist/client/assets/use-section-preview-base-BFHyMpzJ.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DvCOEAKG.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DMqlAGdI.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,j as t,B as K,h as G,ao as tt,ap as ie,b as W,E as Oe,r as D,Z as Fe,a0 as xe,d5 as st,d4 as Me,ar as ot,n as Be,P as ye,u as nt,L as te,t as lt,f as fe,bZ as ze}from"./index-B4_5ne-m.js";import{E as Le}from"./empty-state-CUy_IWGW.js";import{u as he}from"./use-mcp-client-Di29uH1Z.js";import{F as re,a as it,b as ae,d as ce}from"./form-DwCt2SR2.js";import{I as ue}from"./input-DhQYTu0H.js";import{T as pe}from"./textarea-CNloF_6k.js";import{D as ge,O as rt,M as at}from"./index-ChGB7Srd.js";import{b6 as ct,T as dt,bg as mt,ac as ut,E as pt,F as xt,aB as ft,x as we}from"./agent-icon-Bbnm30MH.js";import{M as ht}from"./mcp-app-renderer-kud7EQ1E.js";import{g as gt,M as Ce}from"./types-DAtj8pL_.js";import{a as jt,b as bt,A as Nt}from"./alert-JJIsthFC.js";import{S as Ie,b as Te,a as $e,d as Pe,c as de}from"./select--0Nrx9pz.js";import{b as vt,c as De,T as ke,a as Ae}from"./tooltip-Ch_anXXw.js";import{B as Ue,a as _e,b as Z,c as se,d as oe,e as Je}from"./breadcrumb-Cl92-rSB.js";import{i as St}from"./AlertCircle-CvB24fpQ.js";import{a as yt}from"./Copy01-KomJ49aq.js";import{i as wt}from"./Play-C6orNG1z.js";import{g as Ct}from"./connection-slug-CITJ0kGN.js";import{u as It,T as Tt}from"./use-mcp-auth-status-DPrXZk0m.js";import{a as Ve,u as qe}from"./use-connection-DEkZ7Z3y.js";import{u as $t}from"./use-mcp-tools-BTMKYjmq.js";import{c as Pt}from"./content-blocks-o63cs2vh.js";import{I as Ee}from"./integration-icon-CT7gtNMF.js";import{f as Dt,r as kt}from"./chat-context-BSf3NsZt.js";import{a as At}from"./shell-layout-C7iq_ybu.js";import{M as Et}from"./monaco-editor-BM2SBH_J.js";import{E as Rt}from"./empty-state-CyI2CaLY.js";import{n as Ot}from"./Tool02-BcSzj1eN.js";import"./auth-BAIe_T8g.js";import"./label-C5dVgFkO.js";import"./sidebar-Ce0KwGyJ.js";import"./LayoutLeft-Dk8cMo-H.js";import"./use-mobile-Br1FbuT5.js";import"./sheet-KfyT4iJh.js";import"./X-DcceC-EQ.js";import"./Key01-BiLmhCHZ.js";import"./extract-connection-data-BYtH8M2u.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-CCOtyiTz.js";import"./use-registry-connections-CvrvQHoJ.js";import"./use-organization-settings-B7QbhgeU.js";import"./schema-iizf-P2g.js";import"./task-board-CwfOEd0p.js";import"./Plus-BuCQnPNG.js";import"./index-BfbICK5t.js";import"./index-CB_d_Ww9.js";import"./index-CjolVbvM.js";import"./index--5vhPfMl.js";import"./popover-BREpugAm.js";import"./use-virtual-mcp-CdMkF3Nz.js";import"./SearchMd-DnahVlUn.js";import"./use-create-virtual-mcp-B22agNFs.js";import"./use-navigate-to-agent-BIB5Nkxx.js";import"./hooks-DZN1ZKP-.js";import"./backoff-8mStPHYB.js";import"./thread-intent-BcdlSG8J.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01-BlcXvpRH.js";import"./ArrowUp-CMB2_B55.js";import"./ArrowLeft-CuPXwhY9.js";import"./ArrowRight-DaeNVQjU.js";import"./TrendUp01-kAJZHj1O.js";import"./ZoomOut-CvMfmw42.js";import"./Globe04-D2pxwWDa.js";import"./CheckCircle-L9rxLy8_.js";import"./ChevronUp-Dy-cXbOz.js";import"./UserSquare-DU12tvTU.js";import"./CreditCard01-DNXTqT2E.js";import"./DotsVertical-CycZdUV6.js";import"./Download01-CK_3UsO1.js";import"./Settings02-BZd-qcWS.js";import"./Eye-KAte8whD.js";import"./Share07-tpVfUX9-.js";import"./Globe01-BmMm30Hp.js";import"./XClose-CZo1KF0t.js";import"./Image01-BHoZzJSj.js";import"./Link01-BSX_7wIu.js";import"./LinkExternal01-COMF34Up.js";import"./Monitor01-C25vfwGa.js";import"./Sun-C6ausIaw.js";import"./Package-BCflABQ6.js";import"./Palette-By8W7B7e.js";import"./SearchLg-VMEsA-e7.js";import"./Stars01-BcbLgM7d.js";import"./Trash01-Bt7knSgw.js";import"./Upload01-CgS71RUS.js";import"./User01-DKY_ILGI.js";import"./Users01-COWDl5zV.js";import"./XCircle-BirmII4v.js";import"./Zap-CIXkomUE.js";import"./index-BK4gf4on.js";import"./badge-Cxdo9MSD.js";import"./mcp-oauth-Bqx9uZfn.js";import"./use-panel-navigate-7owLLl5-.js";import"./thread-route-D5lCt0bb.js";import"./use-project-scope-D7MgPnbk.js";import"./autosend-DrbiZ7KD.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-Cpg4O4cU.js";import"./use-ai-providers-BLQu9X4b.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-CztvGxbe.js";import"./avatar-DAAVe66-.js";import"./download-app-dialog-BSQlf9Pn.js";import"./dialog-BVRmgEZZ.js";import"./command-uelHA4Qc.js";import"./project-icon-BuXyfXr6.js";import"./required-auth-layout-DbcZh8KB.js";import"./use-org-sso-CSb7uzWR.js";import"./editor-B9nqdqUb.js";function Re(s){const e=B.c(15),{onSave:l,onUndo:n,isDirty:m,isSaving:o,saveLabel:a,undoLabel:u}=s,d=a===void 0?"Save":a,r=u===void 0?"Undo":u;if(!m)return null;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(ct,{size:14}),e[0]=i):i=e[0];let h;e[1]!==o||e[2]!==n||e[3]!==r?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:n,disabled:o,"aria-label":r,children:[i,r]}),e[1]=o,e[2]=n,e[3]=r,e[4]=h):h=e[4];let p;e[5]!==o?(p=o?t.jsx(G,{className:"size-3.5"}):t.jsx(dt,{size:14}),e[5]=o,e[6]=p):p=e[6];let x;e[7]!==o||e[8]!==l||e[9]!==d||e[10]!==p?(x=t.jsxs(K,{variant:"default",size:"sm",onClick:l,disabled:o,"aria-label":d,children:[p,d]}),e[7]=o,e[8]=l,e[9]=d,e[10]=p,e[11]=x):x=e[11];let j;return e[12]!==h||e[13]!==x?(j=t.jsxs(t.Fragment,{children:[h,x]}),e[12]=h,e[13]=x,e[14]=j):j=e[14],j}tt({title:ie().min(1),description:ie().nullable(),body:ie()});function me(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ft(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(n=>n==="mcps"),l=e>=0?s[e+1]:void 0;return l?decodeURIComponent(l):void 0}function Mt(s){const e=B.c(43),{form:l}=s,n=W();let m;e[0]!==n?(m=n("details.prompt.details"),e[0]=n,e[1]=m):m=e[1];let o;e[2]!==m?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:m}),e[2]=m,e[3]=o):o=e[3];let a;e[4]!==n?(a=T=>{const{field:$}=T;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:n("details.prompt.title")}),t.jsx(ce,{children:t.jsx(ue,{...$,placeholder:n("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=n,e[5]=a):a=e[5];let u;e[6]!==l.control||e[7]!==a?(u=t.jsx(re,{control:l.control,name:"title",render:a}),e[6]=l.control,e[7]=a,e[8]=u):u=e[8];let d;e[9]!==n?(d=T=>{const{field:$}=T;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:n("details.prompt.description")}),t.jsx(ce,{children:t.jsx(ue,{...$,value:$.value??"",placeholder:n("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=n,e[10]=d):d=e[10];let r;e[11]!==l.control||e[12]!==d?(r=t.jsx(re,{control:l.control,name:"description",render:d}),e[11]=l.control,e[12]=d,e[13]=r):r=e[13];let i;e[14]!==u||e[15]!==r?(i=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[u,r]}),e[14]=u,e[15]=r,e[16]=i):i=e[16];let h;e[17]!==o||e[18]!==i?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,i]}),e[17]=o,e[18]=i,e[19]=h):h=e[19];let p;e[20]!==n?(p=n("details.prompt.message"),e[20]=n,e[21]=p):p=e[21];let x;e[22]!==p?(x=t.jsx("div",{className:"text-sm font-medium text-foreground",children:p}),e[22]=p,e[23]=x):x=e[23];let j;e[24]!==n?(j=n("details.prompt.messageDescription"),e[24]=n,e[25]=j):j=e[25];let f;e[26]!==j?(f=t.jsx("div",{className:"text-xs text-muted-foreground",children:j}),e[26]=j,e[27]=f):f=e[27];let b;e[28]!==n?(b=T=>{const{field:$}=T;return t.jsx(ae,{children:t.jsx(ce,{children:t.jsx(pe,{...$,value:$.value??"",placeholder:n("details.prompt.bodyPlaceholder"),className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})},e[28]=n,e[29]=b):b=e[29];let S;e[30]!==l.control||e[31]!==b?(S=t.jsx(re,{control:l.control,name:"body",render:b}),e[30]=l.control,e[31]=b,e[32]=S):S=e[32];let w;e[33]!==x||e[34]!==f||e[35]!==S?(w=t.jsxs("div",{className:"flex flex-col gap-2",children:[x,f,S]}),e[33]=x,e[34]=f,e[35]=S,e[36]=w):w=e[36];let C;e[37]!==w||e[38]!==h?(C=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[h,w]}),e[37]=w,e[38]=h,e[39]=C):C=e[39];let I;return e[40]!==l||e[41]!==C?(I=t.jsx(it,{...l,children:C}),e[40]=l,e[41]=C,e[42]=I):I=e[42],I}function Bt(s){const e=B.c(35),{providerId:l,promptId:n}=s,m=Fe(),o=W(),{org:a}=xe(),u=l||null;let d;e[0]!==a.id||e[1]!==a.slug||e[2]!==u?(d={connectionId:u,orgId:a.id,orgSlug:a.slug},e[0]=a.id,e[1]=a.slug,e[2]=u,e[3]=d):d=e[3];const r=he(d),i=st(l,"PROMPT",n,r),h=Me(l,"PROMPT",r),p=h.update.isPending;let x;e[4]!==i?(x=i?{title:i.title,description:i.description??null,body:me(i)}:void 0,e[4]=i,e[5]=x):x=e[5];let j;e[6]!==x?(j={values:x},e[6]=x,e[7]=j):j=e[7];const f=ot(j);let b;e[8]!==f||e[9]!==i?(b=()=>{i&&f.reset({title:i.title,description:i.description??null,body:me(i)})},e[8]=f,e[9]=i,e[10]=b):b=e[10];const S=b;let w;e[11]!==h.update||e[12]!==f||e[13]!==n?(w=f.handleSubmit(async v=>{const y=await h.update.mutateAsync({id:n,data:{title:v.title,description:v.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:v.body}}]}});f.reset({title:y.title,description:y.description??null,body:me(y)})}),e[11]=h.update,e[12]=f,e[13]=n,e[14]=w):w=e[14];const C=w;if(!i){let v;e[15]!==o?(v=o("details.prompt.notFoundTitle"),e[15]=o,e[16]=v):v=e[16];let y;e[17]!==o?(y=o("details.prompt.notFoundDescription"),e[17]=o,e[18]=y):y=e[18];let k;return e[19]!==v||e[20]!==y?(k=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Le,{title:v,description:y})}),e[19]=v,e[20]=y,e[21]=k):k=e[21],k}let I;e[22]!==m||e[23]!==f.formState.isDirty||e[24]!==p||e[25]!==i.description||e[26]!==i.title||e[27]!==S||e[28]!==C?(I=m?t.jsxs(t.Fragment,{children:[t.jsx(Be.Title,{actions:t.jsx(Re,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p}),children:i.title}),i.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:i.description})]}):t.jsxs(t.Fragment,{children:[t.jsx(ye.Topbar.Center.Portal,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:i.title}),i.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:i.description})]}):null]})}),t.jsx(ye.Topbar.Right.Portal,{children:t.jsx(Re,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p})})]}),e[22]=m,e[23]=f.formState.isDirty,e[24]=p,e[25]=i.description,e[26]=i.title,e[27]=S,e[28]=C,e[29]=I):I=e[29];let T;e[30]!==f?(T=t.jsx("div",{className:"h-full",children:t.jsx(Mt,{form:f})}),e[30]=f,e[31]=T):T=e[31];let $;return e[32]!==I||e[33]!==T?($=t.jsxs(ge,{children:[I,T]}),e[32]=I,e[33]=T,e[34]=$):$=e[34],$}function zt(s){const e=B.c(10),{itemId:l}=s,n=W();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=Ft(),e[0]=m):m=e[0];const o=m;if(!o){let u;e[1]!==n?(u=n("details.prompt.notFoundTitle"),e[1]=n,e[2]=u):u=e[2];let d;e[3]!==n?(d=n("details.prompt.missingConnectionDescription"),e[3]=n,e[4]=d):d=e[4];let r;return e[5]!==u||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Le,{title:u,description:d})}),e[5]=u,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==l?(a=t.jsx(Oe,{children:t.jsx(D.Suspense,{fallback:null,children:t.jsx(Bt,{providerId:o,promptId:l})})}),e[8]=l,e[9]=a):a=e[9],a}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=B.c(12),{toolName:l,connectionId:n,siblings:m,onSelectInstance:o,onBack:a}=s,u=W();let d;e[0]!==n?(d={connectionId:n},e[0]=n,e[1]=d):d=e[1];const r=It(d);if(!r.isAuthenticated){let p;return e[2]!==r.supportsOAuth||e[3]!==a||e[4]!==u?(p=t.jsx("div",{className:"flex h-full items-center justify-center",children:r.supportsOAuth?t.jsx(rt,{onAuthenticate:()=>a(),buttonText:u("details.tool.goBackToAuthenticate")}):t.jsx(at,{hasReadme:!1})}),e[2]=r.supportsOAuth,e[3]=a,e[4]=u,e[5]=p):p=e[5],p}const i=`${n}:${l}`;let h;return e[6]!==n||e[7]!==o||e[8]!==m||e[9]!==i||e[10]!==l?(h=t.jsx(_t,{toolName:l,connectionId:n,siblings:m,onSelectInstance:o},i),e[6]=n,e[7]=o,e[8]=m,e[9]=i,e[10]=l,e[11]=h):h=e[11],h}function _t({toolName:s,connectionId:e,siblings:l,onSelectInstance:n}){const m=Fe(),o=W(),{replayId:a}=nt({strict:!1}),u=(()=>{if(!a)return null;const c=`replay-${a}`,g=sessionStorage.getItem(c);if(!g)return null;sessionStorage.removeItem(c);try{return JSON.parse(g)}catch{return null}})(),d=(()=>{if(!u)return null;const c={};for(const[g,P]of Object.entries(u))P!==null&&typeof P=="object"?c[g]=JSON.stringify(P,null,2):c[g]=P;return c})(),[r,i]=D.useState(d??{}),[h,p]=D.useState(u?JSON.stringify(u,null,2):"{}"),[x,j]=D.useState(null),[f,b]=D.useState(null),[S,w]=D.useState(null),[C,I]=D.useState(null),[T,$]=D.useState(!1),[v,y]=D.useState(null),{org:k}=xe(),A=Ve(e),q=Dt(),z=kt(),{openSidePanel:U}=At(),H=`${e}:${s}`,L=he({connectionId:e,orgId:k.id,orgSlug:k.slug}),R=$t({client:L}),N=R.data?.tools?.find(c=>c.name===s),E=gt(N?._meta),_=c=>{if(!q)return;const g=Pt(c.content);g.content.length>0&&(U(),q.sendMessage({tiptapDoc:g}))},[O,F]=D.useState("json"),[Q,J]=D.useState(!1);E&&!Q&&(F("ui"),J(!0));const je=N?.inputSchema?.properties,be=je?Object.keys(je):[],Y=be.length>0,X={};if(Y&&N?.inputSchema?.properties)for(const c of be)X[c]=N.inputSchema.required?.includes(c)?"":void 0;const ne=c=>Object.prototype.hasOwnProperty.call(r,c),He=async()=>{$(!0),I(null),j(null),b(null),w(null),y(null);const c=performance.now();try{if(!L)throw new Error("MCP client is not available");const g=Y?{...X,...r}:(()=>{const M=h.trim();if(!M)return{};const V=JSON.parse(M);if(V&&typeof V=="object")return V;throw new Error("Raw JSON input must be an object.")})();Y&&N?.inputSchema?.properties&&Object.entries(N.inputSchema.properties).forEach(([M,V])=>{if((V.type==="object"||V.type==="array")&&typeof g[M]=="string")try{g[M]=JSON.parse(g[M])}catch{}else if((V.type==="number"||V.type==="integer")&&typeof g[M]=="string"&&g[M]!==""){const Se=Number(g[M]);Number.isNaN(Se)||(g[M]=Se)}});const P=await L.callTool({name:s,arguments:g}),ee=P.structuredContent??P,Ge=performance.now(),Xe=Math.round(Ge-c);j(ee),b(P),w(g);const et=JSON.stringify(ee),ve=new TextEncoder().encode(et).length;y({duration:`${Xe}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(g){const P=g instanceof Error?g.message:String(g);I(P||"Unknown error occurred");const ee=performance.now();y({duration:`${Math.round(ee-c)}ms`})}finally{$(!1)}},le=(c,g)=>{i(P=>({...P,[c]:g}))},Ke=()=>{j(null),b(null),w(null),I(null),y(null)},We=N?.name??Lt(s),Qe=t.jsx(Ue,{children:t.jsxs(_e,{children:[t.jsx(Z,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:k.slug},children:o("details.tool.connections")})})}),t.jsx(oe,{}),A&&t.jsxs(t.Fragment,{children:[t.jsx(Z,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:k.slug,appSlug:Ct(A)},search:{tab:"tools"},children:A.title})})}),t.jsx(oe,{})]}),t.jsx(Z,{children:t.jsx(Je,{children:We})})]})}),Ne=l.length>1&&t.jsxs(Ie,{value:e,onValueChange:n,children:[t.jsx(Te,{className:"h-8 w-auto min-w-[200px]",children:t.jsx($e,{})}),t.jsx(Pe,{children:l.map(c=>t.jsx(de,{value:c.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ee,{icon:c.icon,name:c.title,size:"xs",className:"shrink-0"}),c.title]})},c.id))})]}),Ze=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:o("details.tool.parameters")}),N?.inputSchema?.required&&N.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",o("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:Y&&N?.inputSchema?.properties?Object.entries(N.inputSchema.properties).map(([c,g])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[c,N.inputSchema?.required?.includes(c)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:g.type})]}),g.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:g.description}),g.type==="object"||g.type==="array"?t.jsx(pe,{className:"font-mono text-xs",value:ne(c)?r[c]??"":X[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enterAsJson",{key:c}),rows:3}):g.type==="boolean"?t.jsxs(Ie,{value:ne(c)?String(r[c]??""):"",onValueChange:P=>le(c,P==="true"),children:[t.jsx(Te,{children:t.jsx($e,{placeholder:o("details.tool.selectTrueOrFalse")})}),t.jsxs(Pe,{children:[t.jsx(de,{value:"true",children:"true"}),t.jsx(de,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:ne(c)?r[c]??"":X[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enter",{key:c})})]},c)):N?.inputSchema&&!Y?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:o("details.tool.rawJsonInput")}),t.jsx(pe,{className:"font-mono text-xs min-h-[120px]",value:h,onChange:c=>p(c.target.value),placeholder:o("details.tool.rawJsonExample")})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:o("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:T?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Ke,children:[t.jsx(mt,{className:"h-3.5 w-3.5"}),o("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:He,children:[t.jsx(wt,{className:"h-3.5 w-3.5 fill-current"}),o("details.tool.executeTool")]})})]}),Ye=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:o("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[v&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.duration})]}),v.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.tokens})]}),v.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(xt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.bytes})]}),v.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:v.cost})})]}),E&&t.jsx(vt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(De,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:O==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>F("ui"),children:t.jsx(ft,{size:14})})}),t.jsx(Ae,{children:o("details.tool.interactiveView")})]}),t.jsxs(De,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:O==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>F("json"),children:t.jsx(we,{size:14})})}),t.jsx(Ae,{children:o("details.tool.jsonView")})]})]})})]})]}),C&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(jt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(St,{className:"h-4 w-4"}),t.jsx(bt,{className:"mb-0",children:o("details.tool.executionFailed")})]}),t.jsx(Nt,{className:"text-xs text-destructive",children:C})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:E&&O==="ui"&&L?t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(G,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:o("details.tool.loadingApp")})]})}),children:t.jsx(ht,{resourceURI:E,toolInfo:N?{tool:N}:void 0,toolInput:S??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:Ce.view.minHeight,maxHeight:Ce.view.maxHeight,client:L,onMessage:_,onUpdateModelContext:c=>z?.setAppContext(H,c),onTeardown:()=>z?.clearAppContext(H),className:"h-full"})}):x?t.jsxs(t.Fragment,{children:[t.jsx(Et,{code:JSON.stringify(x,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(x,null,2)),lt.success(o("details.tool.copiedToClipboard"))},children:t.jsx(yt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(we,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:o("details.tool.runToolToSeeResults")})]})})]});return t.jsx(ge,{leading:Qe,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Ee,{icon:A?.icon||null,name:A?.title||s,size:"xl",className:"shrink-0"}),m?t.jsx(Be.Title,{children:s}):t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[R.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):R.isLoading?t.jsx(G,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:R.isSuccess?"ready":R.isLoading?"connecting":"error"})]}),t.jsx(Tt,{annotations:N?.annotations,_meta:N?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:N?.description||"No description available"})]}),l.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:o("details.tool.instance")}),Ne]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Ze}),Ye]})})]})})}function Jt(s){const e=B.c(20),{itemId:l,siblings:n,onBack:m}=s,o=W(),[a,u]=D.useState(n[0]?.id??"");let d;e[0]!==a||e[1]!==n?(d=n.find(x=>x.id===a)?.id??n[0]?.id??"",e[0]=a,e[1]=n,e[2]=d):d=e[2];const r=d;if(!Ve(r||void 0)||!r){let x;e[3]!==o?(x=o("details.tool.connectionNotFound"),e[3]=o,e[4]=x):x=e[4];let j;e[5]!==x?(j=t.jsx("h3",{className:"text-lg font-semibold",children:x}),e[5]=x,e[6]=j):j=e[6];let f;e[7]!==o?(f=o("details.tool.connectionNotFoundMessage"),e[7]=o,e[8]=f):f=e[8];let b;e[9]!==f?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[9]=f,e[10]=b):b=e[10];let S;return e[11]!==j||e[12]!==b?(S=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[j,b]})}),e[11]=j,e[12]=b,e[13]=S):S=e[13],S}let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(G,{className:"size-8 text-muted-foreground"})}),e[14]=h):h=e[14];let p;return e[15]!==r||e[16]!==m||e[17]!==n||e[18]!==l?(p=t.jsx(D.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:l,connectionId:r,siblings:n,onSelectInstance:u,onBack:m})}),e[15]=r,e[16]=m,e[17]=n,e[18]=l,e[19]=p):p=e[19],p}const Vt={prompt:zt};function qt(){const s=B.c(9),e=ze();let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=l):l=s[0];const n=fe(l),m=decodeURIComponent(n.itemId);let o;s[1]!==n.appSlug?(o={slug:n.appSlug},s[1]=n.appSlug,s[2]=o):o=s[2];const a=qe(o);let u;s[3]!==e.history?(u=()=>{e.history.back()},s[3]=e.history,s[4]=u):u=s[4];const d=u,r=Ht;let i;return s[5]!==d||s[6]!==m||s[7]!==a?(i=t.jsx(Jt,{itemId:m,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=m,s[7]=a,s[8]=i):i=s[8],i}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=B.c(52),e=ze();let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=l):l=s[0];const n=fe(l),m=W(),o=decodeURIComponent(n.collectionName),a=decodeURIComponent(n.itemId);let u;s[1]!==e.history?(u=()=>{e.history.back()},s[1]=e.history,s[2]=u):u=s[2];const d=u,{org:r}=xe();let i;s[3]!==n.appSlug?(i={slug:n.appSlug},s[3]=n.appSlug,s[4]=i):i=s[4];const p=qe(i)[0]??null,x=p?.id??"",j=x||"no-connection",f=x??null;let b;s[5]!==r.id||s[6]!==r.slug||s[7]!==f?(b={connectionId:f,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=f,s[8]=b):b=s[8];const S=he(b),w=Me(j,o,S);let C;s[9]!==w||s[10]!==a?(C=async J=>{a&&await w.update.mutateAsync({id:a,data:J})},s[9]=w,s[10]=a,s[11]=C):C=s[11];const I=C;let T;s[12]!==o?(T=o?.toLowerCase(),s[12]=o,s[13]=T):T=s[13];const $=T,v=$&&Vt[$];let y;s[14]!==o?(y=Kt(o),s[14]=o,s[15]=y):y=s[15];const k=y;let A;s[16]!==r.slug?(A=t.jsx(Z,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=A):A=s[17];let q;s[18]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(oe,{}),s[18]=q):q=s[18];let z;s[19]!==o||s[20]!==p||s[21]!==r.slug||s[22]!==n.appSlug?(z=p&&t.jsxs(t.Fragment,{children:[t.jsx(Z,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:n.appSlug},search:{tab:o},children:p.title})})}),t.jsx(oe,{})]}),s[19]=o,s[20]=p,s[21]=r.slug,s[22]=n.appSlug,s[23]=z):z=s[23];let U;s[24]!==k?(U=t.jsx(Z,{children:t.jsx(Je,{children:k})}),s[24]=k,s[25]=U):U=s[25];let H;s[26]!==z||s[27]!==U||s[28]!==A?(H=t.jsx(Ue,{children:t.jsxs(_e,{children:[A,q,z,U]})}),s[26]=z,s[27]=U,s[28]=A,s[29]=H):H=s[29];const L=H;if(v){let J;return s[30]!==v||s[31]!==d||s[32]!==I||s[33]!==a?(J=t.jsx(v,{itemId:a,onBack:d,onUpdate:I}),s[30]=v,s[31]=d,s[32]=I,s[33]=a,s[34]=J):J=s[34],J}let R;s[35]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(Ot,{size:36,className:"text-muted-foreground"}),s[35]=R):R=s[35];let N;s[36]!==m?(N=m("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=m,s[37]=N):N=s[37];let E;s[38]!==m?(E=m("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=m,s[39]=E):E=s[39];let _;s[40]!==m?(_=m("orgs.collectionDetail.goBackButton"),s[40]=m,s[41]=_):_=s[41];let O;s[42]!==d||s[43]!==_?(O={onClick:d,children:_},s[42]=d,s[43]=_,s[44]=O):O=s[44];let F;s[45]!==N||s[46]!==E||s[47]!==O?(F=t.jsx(Rt,{icon:R,title:N,description:E,buttonProps:O}),s[45]=N,s[46]=E,s[47]=O,s[48]=F):F=s[48];let Q;return s[49]!==L||s[50]!==F?(Q=t.jsx(ge,{leading:L,children:F}),s[49]=L,s[50]=F,s[51]=Q):Q=s[51],Q}function Qt(){const s=B.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const l=fe(e);if(decodeURIComponent(l.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(qt,{}),s[1]=a):a=s[1],a}let o;return s[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Wt,{}),s[2]=o):o=s[2],o}function tn(){const s=B.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Oe,{children:t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(G,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{tn as default};
|
|
1
|
+
import{c as B,j as t,B as K,h as G,ao as tt,ap as ie,b as W,E as Oe,r as D,Z as Fe,a0 as xe,d6 as st,d5 as Me,ar as ot,n as Be,P as ye,u as nt,L as te,t as lt,f as fe,b_ as ze}from"./index-DQZBt6Fl.js";import{E as Le}from"./empty-state-9hlMmNlC.js";import{u as he}from"./use-mcp-client-CuZ_CH4K.js";import{F as re,a as it,b as ae,d as ce}from"./form-DHJlhF9m.js";import{I as ue}from"./input-rh1Mv0Wr.js";import{T as pe}from"./textarea-D07XC_67.js";import{D as ge,O as rt,M as at}from"./index-CnX1wVk0.js";import{b6 as ct,T as dt,bg as mt,ac as ut,E as pt,F as xt,aB as ft,x as we}from"./agent-icon-DZmc5CaF.js";import{M as ht}from"./mcp-app-renderer-CSEPd7DC.js";import{g as gt,M as Ce}from"./types-BFditkVL.js";import{a as jt,b as bt,A as Nt}from"./alert-BiRypa2I.js";import{S as Ie,b as Te,a as $e,d as Pe,c as de}from"./select-DKZw7VY5.js";import{b as vt,c as De,T as ke,a as Ae}from"./tooltip-BdIw7qeF.js";import{B as Ue,a as _e,b as Y,c as se,d as oe,e as Je}from"./breadcrumb-DWcfFz9-.js";import{i as St}from"./AlertCircle-CqW1GFxy.js";import{a as yt}from"./Copy01-BsZDIS3z.js";import{i as wt}from"./Play-P0YcNy8v.js";import{g as Ct}from"./connection-slug-CITJ0kGN.js";import{u as It,T as Tt}from"./use-mcp-auth-status-Cg-aCR2N.js";import{a as Ve,u as qe}from"./use-connection-CLDZmFlP.js";import{u as $t}from"./use-mcp-tools-DjSYGU3r.js";import{c as Pt}from"./content-blocks-o63cs2vh.js";import{I as Ee}from"./integration-icon-Dz7H1-MQ.js";import{f as Dt,r as kt}from"./chat-context-BkliO4re.js";import{a as At}from"./shell-layout-D6lfQGd1.js";import{M as Et}from"./monaco-editor-B4FcjfHJ.js";import{E as Rt}from"./empty-state-D6UqEEY-.js";import{n as Ot}from"./Tool02-CbeJXNE6.js";import"./auth-BCpLT4L2.js";import"./label-BNGvxM6S.js";import"./sidebar-scwXsjFh.js";import"./LayoutLeft-xdqdW3pr.js";import"./use-mobile-BwXePCI-.js";import"./sheet-DuM7cckc.js";import"./X-DgI4yqfX.js";import"./Key01-muV6twoN.js";import"./extract-connection-data-DgcpMlth.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-ju8s9npF.js";import"./use-registry-connections-C8ZRYmvy.js";import"./use-organization-settings-rcECAo5J.js";import"./schema-D9hq6-Ko.js";import"./task-board-CU3xz_UX.js";import"./Plus-DcpbfgdJ.js";import"./index-aeXfMtPI.js";import"./index-BDzkh4SF.js";import"./index-CMgSStc4.js";import"./index-BNtnQdj2.js";import"./popover-hNLbYWT0.js";import"./use-virtual-mcp-4T8Uqtz2.js";import"./SearchMd-XFzJrarE.js";import"./use-create-virtual-mcp-C0nekJmJ.js";import"./use-navigate-to-agent-DIxyyobE.js";import"./hooks-Vq5fn_Sg.js";import"./backoff-8mStPHYB.js";import"./thread-intent-CPB41f6a.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01-dwGgKodr.js";import"./ArrowUp-DIK810PT.js";import"./ArrowLeft-BGvcqKye.js";import"./ArrowRight-CfSh04kd.js";import"./TrendUp01-BfIYShuZ.js";import"./ZoomOut-BYNmIOoy.js";import"./Globe04-ClHubtty.js";import"./CheckCircle-eFuhjKFT.js";import"./ChevronUp-QcSQ5rVq.js";import"./UserSquare-CBd8Lm1t.js";import"./CreditCard01-yw_JaYDH.js";import"./DotsVertical-DCTIN1zx.js";import"./Download01-B4Q5hpED.js";import"./Settings02-CncEwCCz.js";import"./Eye-C46dzrHd.js";import"./Share07-CxrO44KP.js";import"./Globe01-DlhUCcjG.js";import"./XClose-Cu0FBQhr.js";import"./Image01-DVR_EyJG.js";import"./Link01-BbJKwlY6.js";import"./LinkExternal01-FZW_JKrN.js";import"./Monitor01-CN-5WdRa.js";import"./Sun-xECmqRY7.js";import"./Package-CkvAk6JQ.js";import"./Palette-D8vRagJV.js";import"./SearchLg-7L27EznQ.js";import"./Stars01-DyW-G6OS.js";import"./Trash01-Cs1900Vx.js";import"./Upload01-odxUyqlC.js";import"./User01-C-kfOI2V.js";import"./Users01-DW5XXBNa.js";import"./XCircle-ChzUwnd9.js";import"./Zap-BkWm3G14.js";import"./index-BNnRrN_z.js";import"./badge-D6ygNqO6.js";import"./mcp-oauth-8WwU56fl.js";import"./use-panel-navigate-CCrHg3rQ.js";import"./thread-route-CDYfrzkB.js";import"./use-project-scope-ChdEK9JU.js";import"./autosend-U0G_KEv2.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-Dd8GRYfR.js";import"./use-ai-providers-Jte2cXEd.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-Cr8-gyRq.js";import"./avatar-DxbODU4C.js";import"./download-app-dialog-BP-_J1f-.js";import"./dialog-CfR9zhfQ.js";import"./command-s8BJjz1Z.js";import"./project-icon-DCwjX34f.js";import"./required-auth-layout-CLogPoNu.js";import"./use-org-sso-EA4En7Bf.js";import"./editor-DUpmzLo7.js";function Re(s){const e=B.c(15),{onSave:l,onUndo:n,isDirty:m,isSaving:o,saveLabel:a,undoLabel:u}=s,d=a===void 0?"Save":a,r=u===void 0?"Undo":u;if(!m)return null;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(ct,{size:14}),e[0]=i):i=e[0];let h;e[1]!==o||e[2]!==n||e[3]!==r?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:n,disabled:o,"aria-label":r,children:[i,r]}),e[1]=o,e[2]=n,e[3]=r,e[4]=h):h=e[4];let p;e[5]!==o?(p=o?t.jsx(G,{className:"size-3.5"}):t.jsx(dt,{size:14}),e[5]=o,e[6]=p):p=e[6];let x;e[7]!==o||e[8]!==l||e[9]!==d||e[10]!==p?(x=t.jsxs(K,{variant:"default",size:"sm",onClick:l,disabled:o,"aria-label":d,children:[p,d]}),e[7]=o,e[8]=l,e[9]=d,e[10]=p,e[11]=x):x=e[11];let j;return e[12]!==h||e[13]!==x?(j=t.jsxs(t.Fragment,{children:[h,x]}),e[12]=h,e[13]=x,e[14]=j):j=e[14],j}tt({title:ie().min(1),description:ie().nullable(),body:ie()});function me(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ft(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(n=>n==="mcps"),l=e>=0?s[e+1]:void 0;return l?decodeURIComponent(l):void 0}function Mt(s){const e=B.c(43),{form:l}=s,n=W();let m;e[0]!==n?(m=n("details.prompt.details"),e[0]=n,e[1]=m):m=e[1];let o;e[2]!==m?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:m}),e[2]=m,e[3]=o):o=e[3];let a;e[4]!==n?(a=T=>{const{field:$}=T;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:n("details.prompt.title")}),t.jsx(ce,{children:t.jsx(ue,{...$,placeholder:n("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=n,e[5]=a):a=e[5];let u;e[6]!==l.control||e[7]!==a?(u=t.jsx(re,{control:l.control,name:"title",render:a}),e[6]=l.control,e[7]=a,e[8]=u):u=e[8];let d;e[9]!==n?(d=T=>{const{field:$}=T;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:n("details.prompt.description")}),t.jsx(ce,{children:t.jsx(ue,{...$,value:$.value??"",placeholder:n("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=n,e[10]=d):d=e[10];let r;e[11]!==l.control||e[12]!==d?(r=t.jsx(re,{control:l.control,name:"description",render:d}),e[11]=l.control,e[12]=d,e[13]=r):r=e[13];let i;e[14]!==u||e[15]!==r?(i=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[u,r]}),e[14]=u,e[15]=r,e[16]=i):i=e[16];let h;e[17]!==o||e[18]!==i?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,i]}),e[17]=o,e[18]=i,e[19]=h):h=e[19];let p;e[20]!==n?(p=n("details.prompt.message"),e[20]=n,e[21]=p):p=e[21];let x;e[22]!==p?(x=t.jsx("div",{className:"text-sm font-medium text-foreground",children:p}),e[22]=p,e[23]=x):x=e[23];let j;e[24]!==n?(j=n("details.prompt.messageDescription"),e[24]=n,e[25]=j):j=e[25];let f;e[26]!==j?(f=t.jsx("div",{className:"text-xs text-muted-foreground",children:j}),e[26]=j,e[27]=f):f=e[27];let b;e[28]!==n?(b=T=>{const{field:$}=T;return t.jsx(ae,{children:t.jsx(ce,{children:t.jsx(pe,{...$,value:$.value??"",placeholder:n("details.prompt.bodyPlaceholder"),className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})},e[28]=n,e[29]=b):b=e[29];let S;e[30]!==l.control||e[31]!==b?(S=t.jsx(re,{control:l.control,name:"body",render:b}),e[30]=l.control,e[31]=b,e[32]=S):S=e[32];let w;e[33]!==x||e[34]!==f||e[35]!==S?(w=t.jsxs("div",{className:"flex flex-col gap-2",children:[x,f,S]}),e[33]=x,e[34]=f,e[35]=S,e[36]=w):w=e[36];let C;e[37]!==w||e[38]!==h?(C=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[h,w]}),e[37]=w,e[38]=h,e[39]=C):C=e[39];let I;return e[40]!==l||e[41]!==C?(I=t.jsx(it,{...l,children:C}),e[40]=l,e[41]=C,e[42]=I):I=e[42],I}function Bt(s){const e=B.c(35),{providerId:l,promptId:n}=s,m=Fe(),o=W(),{org:a}=xe(),u=l||null;let d;e[0]!==a.id||e[1]!==a.slug||e[2]!==u?(d={connectionId:u,orgId:a.id,orgSlug:a.slug},e[0]=a.id,e[1]=a.slug,e[2]=u,e[3]=d):d=e[3];const r=he(d),i=st(l,"PROMPT",n,r),h=Me(l,"PROMPT",r),p=h.update.isPending;let x;e[4]!==i?(x=i?{title:i.title,description:i.description??null,body:me(i)}:void 0,e[4]=i,e[5]=x):x=e[5];let j;e[6]!==x?(j={values:x},e[6]=x,e[7]=j):j=e[7];const f=ot(j);let b;e[8]!==f||e[9]!==i?(b=()=>{i&&f.reset({title:i.title,description:i.description??null,body:me(i)})},e[8]=f,e[9]=i,e[10]=b):b=e[10];const S=b;let w;e[11]!==h.update||e[12]!==f||e[13]!==n?(w=f.handleSubmit(async v=>{const y=await h.update.mutateAsync({id:n,data:{title:v.title,description:v.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:v.body}}]}});f.reset({title:y.title,description:y.description??null,body:me(y)})}),e[11]=h.update,e[12]=f,e[13]=n,e[14]=w):w=e[14];const C=w;if(!i){let v;e[15]!==o?(v=o("details.prompt.notFoundTitle"),e[15]=o,e[16]=v):v=e[16];let y;e[17]!==o?(y=o("details.prompt.notFoundDescription"),e[17]=o,e[18]=y):y=e[18];let k;return e[19]!==v||e[20]!==y?(k=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Le,{title:v,description:y})}),e[19]=v,e[20]=y,e[21]=k):k=e[21],k}let I;e[22]!==m||e[23]!==f.formState.isDirty||e[24]!==p||e[25]!==i.description||e[26]!==i.title||e[27]!==S||e[28]!==C?(I=m?t.jsxs(t.Fragment,{children:[t.jsx(Be.Title,{actions:t.jsx(Re,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p}),children:i.title}),i.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:i.description})]}):t.jsxs(t.Fragment,{children:[t.jsx(ye.Topbar.Center.Portal,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:i.title}),i.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:i.description})]}):null]})}),t.jsx(ye.Topbar.Right.Portal,{children:t.jsx(Re,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p})})]}),e[22]=m,e[23]=f.formState.isDirty,e[24]=p,e[25]=i.description,e[26]=i.title,e[27]=S,e[28]=C,e[29]=I):I=e[29];let T;e[30]!==f?(T=t.jsx("div",{className:"h-full",children:t.jsx(Mt,{form:f})}),e[30]=f,e[31]=T):T=e[31];let $;return e[32]!==I||e[33]!==T?($=t.jsxs(ge,{children:[I,T]}),e[32]=I,e[33]=T,e[34]=$):$=e[34],$}function zt(s){const e=B.c(10),{itemId:l}=s,n=W();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=Ft(),e[0]=m):m=e[0];const o=m;if(!o){let u;e[1]!==n?(u=n("details.prompt.notFoundTitle"),e[1]=n,e[2]=u):u=e[2];let d;e[3]!==n?(d=n("details.prompt.missingConnectionDescription"),e[3]=n,e[4]=d):d=e[4];let r;return e[5]!==u||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Le,{title:u,description:d})}),e[5]=u,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==l?(a=t.jsx(Oe,{children:t.jsx(D.Suspense,{fallback:null,children:t.jsx(Bt,{providerId:o,promptId:l})})}),e[8]=l,e[9]=a):a=e[9],a}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=B.c(12),{toolName:l,connectionId:n,siblings:m,onSelectInstance:o,onBack:a}=s,u=W();let d;e[0]!==n?(d={connectionId:n},e[0]=n,e[1]=d):d=e[1];const r=It(d);if(!r.isAuthenticated){let p;return e[2]!==r.supportsOAuth||e[3]!==a||e[4]!==u?(p=t.jsx("div",{className:"flex h-full items-center justify-center",children:r.supportsOAuth?t.jsx(rt,{onAuthenticate:()=>a(),buttonText:u("details.tool.goBackToAuthenticate")}):t.jsx(at,{hasReadme:!1})}),e[2]=r.supportsOAuth,e[3]=a,e[4]=u,e[5]=p):p=e[5],p}const i=`${n}:${l}`;let h;return e[6]!==n||e[7]!==o||e[8]!==m||e[9]!==i||e[10]!==l?(h=t.jsx(_t,{toolName:l,connectionId:n,siblings:m,onSelectInstance:o},i),e[6]=n,e[7]=o,e[8]=m,e[9]=i,e[10]=l,e[11]=h):h=e[11],h}function _t({toolName:s,connectionId:e,siblings:l,onSelectInstance:n}){const m=Fe(),o=W(),{replayId:a}=nt({strict:!1}),u=(()=>{if(!a)return null;const c=`replay-${a}`,g=sessionStorage.getItem(c);if(!g)return null;sessionStorage.removeItem(c);try{return JSON.parse(g)}catch{return null}})(),d=(()=>{if(!u)return null;const c={};for(const[g,P]of Object.entries(u))P!==null&&typeof P=="object"?c[g]=JSON.stringify(P,null,2):c[g]=P;return c})(),[r,i]=D.useState(d??{}),[h,p]=D.useState(u?JSON.stringify(u,null,2):"{}"),[x,j]=D.useState(null),[f,b]=D.useState(null),[S,w]=D.useState(null),[C,I]=D.useState(null),[T,$]=D.useState(!1),[v,y]=D.useState(null),{org:k}=xe(),A=Ve(e),q=Dt(),z=kt(),{openSidePanel:U}=At(),H=`${e}:${s}`,L=he({connectionId:e,orgId:k.id,orgSlug:k.slug}),R=$t({client:L}),N=R.data?.tools?.find(c=>c.name===s),E=gt(N?._meta),_=c=>{if(!q)return;const g=Pt(c.content);g.content.length>0&&(U(),q.sendMessage({tiptapDoc:g}))},[O,F]=D.useState("json"),[Q,J]=D.useState(!1);E&&!Q&&(F("ui"),J(!0));const je=N?.inputSchema?.properties,be=je?Object.keys(je):[],Z=be.length>0,X={};if(Z&&N?.inputSchema?.properties)for(const c of be)X[c]=N.inputSchema.required?.includes(c)?"":void 0;const ne=c=>Object.prototype.hasOwnProperty.call(r,c),He=async()=>{$(!0),I(null),j(null),b(null),w(null),y(null);const c=performance.now();try{if(!L)throw new Error("MCP client is not available");const g=Z?{...X,...r}:(()=>{const M=h.trim();if(!M)return{};const V=JSON.parse(M);if(V&&typeof V=="object")return V;throw new Error("Raw JSON input must be an object.")})();Z&&N?.inputSchema?.properties&&Object.entries(N.inputSchema.properties).forEach(([M,V])=>{if((V.type==="object"||V.type==="array")&&typeof g[M]=="string")try{g[M]=JSON.parse(g[M])}catch{}else if((V.type==="number"||V.type==="integer")&&typeof g[M]=="string"&&g[M]!==""){const Se=Number(g[M]);Number.isNaN(Se)||(g[M]=Se)}});const P=await L.callTool({name:s,arguments:g}),ee=P.structuredContent??P,Ge=performance.now(),Xe=Math.round(Ge-c);j(ee),b(P),w(g);const et=JSON.stringify(ee),ve=new TextEncoder().encode(et).length;y({duration:`${Xe}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(g){const P=g instanceof Error?g.message:String(g);I(P||"Unknown error occurred");const ee=performance.now();y({duration:`${Math.round(ee-c)}ms`})}finally{$(!1)}},le=(c,g)=>{i(P=>({...P,[c]:g}))},Ke=()=>{j(null),b(null),w(null),I(null),y(null)},We=N?.name??Lt(s),Qe=t.jsx(Ue,{children:t.jsxs(_e,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:k.slug},children:o("details.tool.connections")})})}),t.jsx(oe,{}),A&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:k.slug,appSlug:Ct(A)},search:{tab:"tools"},children:A.title})})}),t.jsx(oe,{})]}),t.jsx(Y,{children:t.jsx(Je,{children:We})})]})}),Ne=l.length>1&&t.jsxs(Ie,{value:e,onValueChange:n,children:[t.jsx(Te,{className:"h-8 w-auto min-w-[200px]",children:t.jsx($e,{})}),t.jsx(Pe,{children:l.map(c=>t.jsx(de,{value:c.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ee,{icon:c.icon,name:c.title,size:"xs",className:"shrink-0"}),c.title]})},c.id))})]}),Ye=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:o("details.tool.parameters")}),N?.inputSchema?.required&&N.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",o("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:Z&&N?.inputSchema?.properties?Object.entries(N.inputSchema.properties).map(([c,g])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[c,N.inputSchema?.required?.includes(c)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:g.type})]}),g.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:g.description}),g.type==="object"||g.type==="array"?t.jsx(pe,{className:"font-mono text-xs",value:ne(c)?r[c]??"":X[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enterAsJson",{key:c}),rows:3}):g.type==="boolean"?t.jsxs(Ie,{value:ne(c)?String(r[c]??""):"",onValueChange:P=>le(c,P==="true"),children:[t.jsx(Te,{children:t.jsx($e,{placeholder:o("details.tool.selectTrueOrFalse")})}),t.jsxs(Pe,{children:[t.jsx(de,{value:"true",children:"true"}),t.jsx(de,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:ne(c)?r[c]??"":X[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enter",{key:c})})]},c)):N?.inputSchema&&!Z?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:o("details.tool.rawJsonInput")}),t.jsx(pe,{className:"font-mono text-xs min-h-[120px]",value:h,onChange:c=>p(c.target.value),placeholder:o("details.tool.rawJsonExample")})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:o("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:T?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Ke,children:[t.jsx(mt,{className:"h-3.5 w-3.5"}),o("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:He,children:[t.jsx(wt,{className:"h-3.5 w-3.5 fill-current"}),o("details.tool.executeTool")]})})]}),Ze=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:o("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[v&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.duration})]}),v.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.tokens})]}),v.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(xt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.bytes})]}),v.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:v.cost})})]}),E&&t.jsx(vt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(De,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:O==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>F("ui"),children:t.jsx(ft,{size:14})})}),t.jsx(Ae,{children:o("details.tool.interactiveView")})]}),t.jsxs(De,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:O==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>F("json"),children:t.jsx(we,{size:14})})}),t.jsx(Ae,{children:o("details.tool.jsonView")})]})]})})]})]}),C&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(jt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(St,{className:"h-4 w-4"}),t.jsx(bt,{className:"mb-0",children:o("details.tool.executionFailed")})]}),t.jsx(Nt,{className:"text-xs text-destructive",children:C})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:E&&O==="ui"&&L?t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(G,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:o("details.tool.loadingApp")})]})}),children:t.jsx(ht,{resourceURI:E,toolInfo:N?{tool:N}:void 0,toolInput:S??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:Ce.view.minHeight,maxHeight:Ce.view.maxHeight,client:L,onMessage:_,onUpdateModelContext:c=>z?.setAppContext(H,c),onTeardown:()=>z?.clearAppContext(H),className:"h-full"})}):x?t.jsxs(t.Fragment,{children:[t.jsx(Et,{code:JSON.stringify(x,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(x,null,2)),lt.success(o("details.tool.copiedToClipboard"))},children:t.jsx(yt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(we,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:o("details.tool.runToolToSeeResults")})]})})]});return t.jsx(ge,{leading:Qe,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Ee,{icon:A?.icon||null,name:A?.title||s,size:"xl",className:"shrink-0"}),m?t.jsx(Be.Title,{children:s}):t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[R.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):R.isLoading?t.jsx(G,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:R.isSuccess?"ready":R.isLoading?"connecting":"error"})]}),t.jsx(Tt,{annotations:N?.annotations,_meta:N?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:N?.description||"No description available"})]}),l.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:o("details.tool.instance")}),Ne]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Ye}),Ze]})})]})})}function Jt(s){const e=B.c(20),{itemId:l,siblings:n,onBack:m}=s,o=W(),[a,u]=D.useState(n[0]?.id??"");let d;e[0]!==a||e[1]!==n?(d=n.find(x=>x.id===a)?.id??n[0]?.id??"",e[0]=a,e[1]=n,e[2]=d):d=e[2];const r=d;if(!Ve(r||void 0)||!r){let x;e[3]!==o?(x=o("details.tool.connectionNotFound"),e[3]=o,e[4]=x):x=e[4];let j;e[5]!==x?(j=t.jsx("h3",{className:"text-lg font-semibold",children:x}),e[5]=x,e[6]=j):j=e[6];let f;e[7]!==o?(f=o("details.tool.connectionNotFoundMessage"),e[7]=o,e[8]=f):f=e[8];let b;e[9]!==f?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[9]=f,e[10]=b):b=e[10];let S;return e[11]!==j||e[12]!==b?(S=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[j,b]})}),e[11]=j,e[12]=b,e[13]=S):S=e[13],S}let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(G,{className:"size-8 text-muted-foreground"})}),e[14]=h):h=e[14];let p;return e[15]!==r||e[16]!==m||e[17]!==n||e[18]!==l?(p=t.jsx(D.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:l,connectionId:r,siblings:n,onSelectInstance:u,onBack:m})}),e[15]=r,e[16]=m,e[17]=n,e[18]=l,e[19]=p):p=e[19],p}const Vt={prompt:zt};function qt(){const s=B.c(9),e=ze();let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=l):l=s[0];const n=fe(l),m=decodeURIComponent(n.itemId);let o;s[1]!==n.appSlug?(o={slug:n.appSlug},s[1]=n.appSlug,s[2]=o):o=s[2];const a=qe(o);let u;s[3]!==e.history?(u=()=>{e.history.back()},s[3]=e.history,s[4]=u):u=s[4];const d=u,r=Ht;let i;return s[5]!==d||s[6]!==m||s[7]!==a?(i=t.jsx(Jt,{itemId:m,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=m,s[7]=a,s[8]=i):i=s[8],i}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=B.c(52),e=ze();let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=l):l=s[0];const n=fe(l),m=W(),o=decodeURIComponent(n.collectionName),a=decodeURIComponent(n.itemId);let u;s[1]!==e.history?(u=()=>{e.history.back()},s[1]=e.history,s[2]=u):u=s[2];const d=u,{org:r}=xe();let i;s[3]!==n.appSlug?(i={slug:n.appSlug},s[3]=n.appSlug,s[4]=i):i=s[4];const p=qe(i)[0]??null,x=p?.id??"",j=x||"no-connection",f=x??null;let b;s[5]!==r.id||s[6]!==r.slug||s[7]!==f?(b={connectionId:f,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=f,s[8]=b):b=s[8];const S=he(b),w=Me(j,o,S);let C;s[9]!==w||s[10]!==a?(C=async J=>{a&&await w.update.mutateAsync({id:a,data:J})},s[9]=w,s[10]=a,s[11]=C):C=s[11];const I=C;let T;s[12]!==o?(T=o?.toLowerCase(),s[12]=o,s[13]=T):T=s[13];const $=T,v=$&&Vt[$];let y;s[14]!==o?(y=Kt(o),s[14]=o,s[15]=y):y=s[15];const k=y;let A;s[16]!==r.slug?(A=t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=A):A=s[17];let q;s[18]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(oe,{}),s[18]=q):q=s[18];let z;s[19]!==o||s[20]!==p||s[21]!==r.slug||s[22]!==n.appSlug?(z=p&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:n.appSlug},search:{tab:o},children:p.title})})}),t.jsx(oe,{})]}),s[19]=o,s[20]=p,s[21]=r.slug,s[22]=n.appSlug,s[23]=z):z=s[23];let U;s[24]!==k?(U=t.jsx(Y,{children:t.jsx(Je,{children:k})}),s[24]=k,s[25]=U):U=s[25];let H;s[26]!==z||s[27]!==U||s[28]!==A?(H=t.jsx(Ue,{children:t.jsxs(_e,{children:[A,q,z,U]})}),s[26]=z,s[27]=U,s[28]=A,s[29]=H):H=s[29];const L=H;if(v){let J;return s[30]!==v||s[31]!==d||s[32]!==I||s[33]!==a?(J=t.jsx(v,{itemId:a,onBack:d,onUpdate:I}),s[30]=v,s[31]=d,s[32]=I,s[33]=a,s[34]=J):J=s[34],J}let R;s[35]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(Ot,{size:36,className:"text-muted-foreground"}),s[35]=R):R=s[35];let N;s[36]!==m?(N=m("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=m,s[37]=N):N=s[37];let E;s[38]!==m?(E=m("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=m,s[39]=E):E=s[39];let _;s[40]!==m?(_=m("orgs.collectionDetail.goBackButton"),s[40]=m,s[41]=_):_=s[41];let O;s[42]!==d||s[43]!==_?(O={onClick:d,children:_},s[42]=d,s[43]=_,s[44]=O):O=s[44];let F;s[45]!==N||s[46]!==E||s[47]!==O?(F=t.jsx(Rt,{icon:R,title:N,description:E,buttonProps:O}),s[45]=N,s[46]=E,s[47]=O,s[48]=F):F=s[48];let Q;return s[49]!==L||s[50]!==F?(Q=t.jsx(ge,{leading:L,children:F}),s[49]=L,s[50]=F,s[51]=Q):Q=s[51],Q}function Qt(){const s=B.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const l=fe(e);if(decodeURIComponent(l.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(qt,{}),s[1]=a):a=s[1],a}let o;return s[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Wt,{}),s[2]=o):o=s[2],o}function tn(){const s=B.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Oe,{children:t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(G,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{tn as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as $,b as F,j as s,G as z,a9 as S,l as V,F as A,B as E,H as I,I as L}from"./index-
|
|
1
|
+
import{c as $,b as F,j as s,G as z,a9 as S,l as V,F as A,B as E,H as I,I as L}from"./index-DQZBt6Fl.js";import{i as O,n as R}from"./ArrowUp-DIK810PT.js";import{a as _,i as G,c as H}from"./XClose-Cu0FBQhr.js";import{T as K,a as P,b as W,c as q}from"./tooltip-BdIw7qeF.js";import{V as J}from"./view-mode-toggle-DEbfOadi.js";import{B as Q}from"./badge-D6ygNqO6.js";function re(t){const e=$.c(36),{viewMode:l,onViewModeChange:f,sortKey:M,sortDirection:h,onSort:g,sortOptions:j,filters:b}=t;let v;e[0]!==j?(v=j===void 0?[]:j,e[0]=j,e[1]=v):v=e[1];const N=v;let w;e[2]!==b?(w=b===void 0?[]:b,e[2]=b,e[3]=w):w=e[3];const r=w,i=F();let C;e[4]!==r?(C=r.filter(X),e[4]=r,e[5]=C):C=e[5];const y=C.length;let k;e[6]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(_,{size:16}),e[6]=k):k=e[6];let o;e[7]!==y?(o=y>0&&s.jsx(Q,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:y}),e[7]=y,e[8]=o):o=e[8];let n;e[9]!==o?(n=s.jsx(K,{asChild:!0,children:s.jsx(A,{asChild:!0,children:s.jsxs(E,{variant:"outline",size:"icon",className:"relative",children:[k,o]})})}),e[9]=o,e[10]=n):n=e[10];let a;e[11]!==i?(a=i("collections.collectionDisplayButton.displayAndFilters"),e[11]=i,e[12]=a):a=e[12];let c;e[13]!==a?(c=s.jsx(P,{children:a}),e[13]=a,e[14]=c):c=e[14];let d;e[15]!==c||e[16]!==n?(d=s.jsx(W,{children:s.jsxs(q,{children:[n,c]})}),e[15]=c,e[16]=n,e[17]=d):d=e[17];let x;e[18]!==f||e[19]!==l?(x=f&&l&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(J,{value:l,onValueChange:f,fullWidth:!0,options:[{value:"table",icon:s.jsx(G,{})},{value:"cards",icon:s.jsx(H,{})}]})}),e[18]=f,e[19]=l,e[20]=x):x=e[20];let m;e[21]!==g||e[22]!==h||e[23]!==M||e[24]!==N||e[25]!==i?(m=N.length>0&&g&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:i("collections.collectionDisplayButton.sortBy")}),N.map(B=>{const D=M===B.id;return s.jsx(z,{onClick:()=>g(B.id),className:V("h-8 px-2 py-0 cursor-pointer",D&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[D&&s.jsx(S,{size:16,className:"text-foreground shrink-0"}),!D&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:B.label}),D&&h&&(h==="asc"?s.jsx(O,{size:16,className:"text-foreground shrink-0"}):s.jsx(R,{size:16,className:"text-foreground shrink-0"}))]})},B.id)})]}),e[21]=g,e[22]=h,e[23]=M,e[24]=N,e[25]=i,e[26]=m):m=e[26];let p;e[27]!==r?(p=r.map(U),e[27]=r,e[28]=p):p=e[28];let u;e[29]!==x||e[30]!==m||e[31]!==p?(u=s.jsxs(I,{align:"end",className:"w-[200px] p-0 gap-0",children:[x,m,p]}),e[29]=x,e[30]=m,e[31]=p,e[32]=u):u=e[32];let T;return e[33]!==d||e[34]!==u?(T=s.jsxs(L,{children:[d,u]}),e[33]=d,e[34]=u,e[35]=T):T=e[35],T}function U(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const l=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:V("h-8 px-2 py-0 cursor-pointer",l&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[l&&s.jsx(S,{size:16,className:"text-foreground shrink-0"}),!l&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function X(t){return t.value!=="ALL"}export{re as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,l as b,j as a,h as w}from"./index-
|
|
1
|
+
import{c as v,l as b,j as a,h as w}from"./index-DQZBt6Fl.js";import{i as C}from"./SearchMd-XFzJrarE.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,j as r,l as y,b as R}from"./index-
|
|
1
|
+
import{c as S,j as r,l as y,b as R}from"./index-DQZBt6Fl.js";import{T as D,a as H,b as k,c as I,d as E,e as K}from"./table-DY3yh4UN.js";import{i as W,n as z}from"./ArrowUp-DIK810PT.js";function L(C){const e=S.c(31),{columns:a,data:u,sortKey:x,sortDirection:l,onSort:i,onRowClick:c,rowClassName:f}=C;let p;e[0]!==l?(p=function(s,b){return r.jsx("div",{className:"w-4 flex items-center justify-center",children:b&&l&&(l==="asc"?r.jsx(W,{size:16,className:"text-muted-foreground transition-colors"}):r.jsx(z,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=l,e[1]=p):p=e[1];const h=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(s,b){let g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return s===b-1&&(g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),g},e[2]=d):d=e[2];const j=d;let t;if(e[3]!==a||e[4]!==i||e[5]!==h||e[6]!==l||e[7]!==x){let m;e[9]!==a.length||e[10]!==i||e[11]!==h||e[12]!==l||e[13]!==x?(m=(s,b)=>{const g=x===s.id,o=s.sortable&&i;return r.jsx(D,{className:y(j(b,a.length),"group transition-colors select-none",s.sortable&&"hover:bg-accent cursor-pointer",s.rowClassName,s.cellClassName),"aria-sort":g&&l?l==="asc"?"ascending":"descending":s.sortable?"none":void 0,role:o?"button":void 0,tabIndex:o?0:void 0,onClick:o?()=>i(s.id):void 0,onKeyDown:o?T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),i(s.id))}:void 0,children:r.jsxs("span",{className:"flex items-center gap-1",children:[s.header,s.sortable&&h(s.id,g)]})},s.id)},e[9]=a.length,e[10]=i,e[11]=h,e[12]=l,e[13]=x,e[14]=m):m=e[14],t=a.map(m),e[3]=a,e[4]=i,e[5]=h,e[6]=l,e[7]=x,e[8]=t}else t=e[8];let n;e[15]!==t?(n=r.jsx(H,{className:"border-b-0",children:r.jsx(k,{className:"h-9 hover:bg-transparent border-b border-border",children:t})}),e[15]=t,e[16]=n):n=e[16];let w;if(e[17]!==a||e[18]!==u||e[19]!==c||e[20]!==f){let m;e[22]!==a||e[23]!==c||e[24]!==f?(m=(s,b)=>{const g=f?.(s);return r.jsx(k,{"data-row-index":b,className:y("group/data-row transition-colors border-b-0 hover:bg-accent/50",c?"cursor-pointer":"",g),onClick:c?()=>c(s):void 0,children:a.map(o=>r.jsx(I,{className:y("px-5 py-4 h-16 align-middle text-sm text-foreground",o.cellClassName,o.wrap?"whitespace-normal wrap-break-word":""),children:r.jsx("div",{className:y(o.wrap?"w-full":"min-w-0 w-full",!o.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:o.render?o.render(s):o.accessor?o.accessor(s):null})},o.id))},b)},e[22]=a,e[23]=c,e[24]=f,e[25]=m):m=e[25],w=u.map(m),e[17]=a,e[18]=u,e[19]=c,e[20]=f,e[21]=w}else w=e[21];let v;e[26]!==w?(v=r.jsx(E,{children:w}),e[26]=w,e[27]=v):v=e[27];let N;return e[28]!==n||e[29]!==v?(N=r.jsxs(K,{className:"w-full border-collapse",children:[n,v]}),e[28]=n,e[29]=v,e[30]=N):N=e[30],N}function F(C){const e=S.c(16),{columns:a,data:u,isLoading:x,sortKey:l,sortDirection:i,onSort:c,onRowClick:f,emptyState:p}=C,h=x===void 0?!1:x,d=R();if(h){let t;e[0]!==d?(t=d("collections.collectionTableWrapper.loading"),e[0]=d,e[1]=t):t=e[1];let n;return e[2]!==t?(n=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx("div",{className:"text-muted-foreground",children:t})}),e[2]=t,e[3]=n):n=e[3],n}if(u.length===0){let t;e[4]!==p||e[5]!==d?(t=p||r.jsx("div",{className:"text-center py-12 text-muted-foreground",children:d("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=d,e[6]=t):t=e[6];let n;return e[7]!==t?(n=r.jsx("div",{className:"flex items-center justify-center h-full",children:t}),e[7]=t,e[8]=n):n=e[8],n}let j;return e[9]!==a||e[10]!==u||e[11]!==f||e[12]!==c||e[13]!==i||e[14]!==l?(j=r.jsx("div",{className:"flex-1",children:r.jsx(L,{columns:a,data:u,sortKey:l,sortDirection:i,onSort:c,onRowClick:f})}),e[9]=a,e[10]=u,e[11]=f,e[12]=c,e[13]=i,e[14]=l,e[15]=j):j=e[15],j}export{F as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,Z as j,j as a,n as h,P as C,l as g}from"./index-
|
|
1
|
+
import{c as b,Z as j,j as a,n as h,P as C,l as g}from"./index-DQZBt6Fl.js";import{B as v}from"./badge-D6ygNqO6.js";function T(d){const e=b.c(13),{tabs:o,activeTab:t,onTabChange:r,className:f,placement:l}=d,c=l===void 0?"inline":l;let s;if(e[0]!==t||e[1]!==r||e[2]!==o){let x;e[4]!==t||e[5]!==r?(x=m=>{const p=t===m.id;return a.jsxs(h.Tab,{active:p,onClick:()=>r(m.id),children:[m.label,m.count!==void 0&&a.jsx(v,{variant:"secondary",className:g("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",p?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:m.count})]},m.id)},e[4]=t,e[5]=r,e[6]=x):x=e[6],s=o.map(x),e[0]=t,e[1]=r,e[2]=o,e[3]=s}else s=e[3];let i;e[7]!==f||e[8]!==s?(i=a.jsx(h.Tabs,{className:f,children:s}),e[7]=f,e[8]=s,e[9]=i):i=e[9];const n=i;let u;return e[10]!==n||e[11]!==c?(u=c==="page"?a.jsx(C.Toolbar.Left.Portal,{fallback:n,children:n}):n,e[10]=n,e[11]=c,e[12]=u):u=e[12],u}function y(d){const e=b.c(12),{tabs:o,activeTab:t,onTabChange:r,className:f}=d;let l;e[0]!==f?(l=g("flex items-center gap-2 overflow-x-auto no-scrollbar",f),e[0]=f,e[1]=l):l=e[1];let c;if(e[2]!==t||e[3]!==r||e[4]!==o){let i;e[6]!==t||e[7]!==r?(i=n=>{const u=t===n.id;return a.jsxs("button",{type:"button",onClick:()=>r(n.id),className:g("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex gap-1.5 items-center",u&&"bg-accent border-border text-foreground",!u&&"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:[n.label,n.count!==void 0&&a.jsx(v,{variant:"secondary",className:g("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",u?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:n.count})]},n.id)},e[6]=t,e[7]=r,e[8]=i):i=e[8],c=o.map(i),e[2]=t,e[3]=r,e[4]=o,e[5]=c}else c=e[5];let s;return e[9]!==l||e[10]!==c?(s=a.jsx("div",{className:l,children:c}),e[9]=l,e[10]=c,e[11]=s):s=e[11],s}function P(d){const e=b.c(3),o=j();let t;return e[0]!==o||e[1]!==d?(t=o?a.jsx(T,{...d}):a.jsx(y,{...d}),e[0]=o,e[1]=d,e[2]=t):t=e[2],t}export{P as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as D,r as H,j as s,l as b,B as J,a9 as K}from"./index-
|
|
1
|
+
import{c as D,r as H,j as s,l as b,B as J,a9 as K}from"./index-DQZBt6Fl.js";import{i as Q}from"./Tool01-dwGgKodr.js";import{e as U,C as V,b as W,a as X,c as Y,d as Z}from"./command-s8BJjz1Z.js";import{a as _,P as ee,b as se}from"./popover-hNLbYWT0.js";function re(k){const e=D.c(41),{options:v,value:t,onChange:x,placeholder:B,triggerClassName:M,contentClassName:y,width:R,renderTrigger:$,renderItem:o,emptyMessage:F,searchPlaceholder:G,filter:N}=k,q=B===void 0?"Select...":B,z=R===void 0?"w-[200px]":R,w=F===void 0?"No results found.":F,P=G===void 0?"Search...":G;let j;e[0]!==t?(j=u=>u.value===t,e[0]=t,e[1]=j):j=e[1];const S=v.find(j),[E,l]=H.useState(!1),T=ee,I=_,A=!0,O=$?s.jsx("div",{className:b("cursor-pointer",M),children:$(S)}):s.jsxs(J,{variant:"outline",role:"combobox",className:b("justify-between",z,M),children:[S?S.label:q,s.jsx(Q,{className:"opacity-50"})]});let r;e[2]!==I||e[3]!==O?(r=s.jsx(I,{asChild:A,children:O}),e[2]=I,e[3]=O,e[4]=r):r=e[4];let c;e[5]!==y?(c=b("p-0",y),e[5]=y,e[6]=c):c=e[6];let C;e[7]===Symbol.for("react.memo_cache_sentinel")?(C={width:"var(--radix-popover-trigger-width)"},e[7]=C):C=e[7];let n;e[8]!==P?(n=s.jsx(U,{placeholder:P,className:"h-9"}),e[8]=P,e[9]=n):n=e[9];let i;e[10]!==w?(i=s.jsx(V,{children:w}),e[10]=w,e[11]=i):i=e[11];let m;if(e[12]!==x||e[13]!==v||e[14]!==o||e[15]!==l||e[16]!==t){let u;e[18]!==x||e[19]!==o||e[20]!==l||e[21]!==t?(u=a=>{const L=t===a.value;return s.jsx(W,{value:a.label,onSelect:()=>{x(a.value===t?"":a.value),l(!1)},children:o?o(a,L):s.jsxs(s.Fragment,{children:[a.label,s.jsx(K,{className:b("ml-auto",L?"opacity-100":"opacity-0")})]})},a.value)},e[18]=x,e[19]=o,e[20]=l,e[21]=t,e[22]=u):u=e[22],m=v.map(u),e[12]=x,e[13]=v,e[14]=o,e[15]=l,e[16]=t,e[17]=m}else m=e[17];let d;e[23]!==m?(d=s.jsx(X,{children:m}),e[23]=m,e[24]=d):d=e[24];let h;e[25]!==i||e[26]!==d?(h=s.jsxs(Y,{children:[i,d]}),e[25]=i,e[26]=d,e[27]=h):h=e[27];let p;e[28]!==N||e[29]!==n||e[30]!==h?(p=s.jsxs(Z,{filter:N,children:[n,h]}),e[28]=N,e[29]=n,e[30]=h,e[31]=p):p=e[31];let f;e[32]!==p||e[33]!==c?(f=s.jsx(se,{className:c,style:C,children:p}),e[32]=p,e[33]=c,e[34]=f):f=e[34];let g;return e[35]!==T||e[36]!==E||e[37]!==l||e[38]!==f||e[39]!==r?(g=s.jsxs(T,{open:E,onOpenChange:l,children:[r,f]}),e[35]=T,e[36]=E,e[37]=l,e[38]=f,e[39]=r,e[40]=g):g=e[40],g}export{re as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,l as u,j as n,aF as j}from"./index-
|
|
1
|
+
import{c as f,l as u,j as n,aF as j}from"./index-DQZBt6Fl.js";import{_ as g}from"./index-BNtnQdj2.js";import{D as b,d as w,h as y,c as C,b as z}from"./dialog-CfR9zhfQ.js";import{i as D}from"./SearchMd-XFzJrarE.js";function $(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(g,{"data-slot":"command",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function L(a){const e=f.c(28);let t,s,l,o,r,i,c;e[0]!==a?({title:i,description:c,children:t,className:s,filter:l,shouldFilter:r,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=r,e[6]=i,e[7]=c):(t=e[1],s=e[2],l=e[3],o=e[4],r=e[5],i=e[6],c=e[7]);const m=i===void 0?"Command Palette":i,p=c===void 0?"Search for a command to run...":c;let d;e[8]!==m?(d=n.jsx(w,{children:m}),e[8]=m,e[9]=d):d=e[9];let x;e[10]!==p?(x=n.jsx(y,{children:p}),e[10]=p,e[11]=x):x=e[11];let h;e[12]!==d||e[13]!==x?(h=n.jsxs(C,{className:"sr-only",children:[d,x]}),e[12]=d,e[13]=x,e[14]=h):h=e[14];let _;e[15]!==s?(_=u("overflow-hidden p-0",s),e[15]=s,e[16]=_):_=e[16];let v;e[17]!==t||e[18]!==l||e[19]!==r?(v=n.jsx($,{filter:l,shouldFilter:r,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg:not([class*='size-'])]:h-5 [&_[cmdk-item]_svg:not([class*='size-'])]:w-5",children:t}),e[17]=t,e[18]=l,e[19]=r,e[20]=v):v=e[20];let k;e[21]!==_||e[22]!==v?(k=n.jsx(z,{className:_,closeButtonClassName:"hidden",children:v}),e[21]=_,e[22]=v,e[23]=k):k=e[23];let N;return e[24]!==o||e[25]!==h||e[26]!==k?(N=n.jsxs(b,{...o,children:[h,k]}),e[24]=o,e[25]=h,e[26]=k,e[27]=N):N=e[27],N}function R(a){const e=f.c(16);let t,s,l;e[0]!==a?({className:t,size:l,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);const r=(l===void 0?"default":l)==="sm"?"h-9":"h-10";let i;e[4]!==r?(i=u("flex items-center gap-2 border-b px-3",r),e[4]=r,e[5]=i):i=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[6]=c):c=e[6];let m;e[7]!==t||e[8]!==r?(m=u("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent classic:py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",r,t),e[7]=t,e[8]=r,e[9]=m):m=e[9];let p;e[10]!==s||e[11]!==m?(p=n.jsx(g.Input,{"data-slot":"command-input",className:m,...s}),e[10]=s,e[11]=m,e[12]=p):p=e[12];let d;return e[13]!==i||e[14]!==p?(d=n.jsxs("div",{"data-slot":"command-input-wrapper",className:i,children:[c,p]}),e[13]=i,e[14]=p,e[15]=d):d=e[15],d}function V(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(g.List,{"data-slot":"command-list",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function B(a){const e=f.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(g.Empty,{"data-slot":"command-empty",className:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function H(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(g.Group,{"data-slot":"command-group",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function P(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u("bg-border -mx-1 h-px",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(g.Separator,{"data-slot":"command-separator",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}const I=j("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex compact:min-h-8 cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{highlight:{selected:"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground",hover:"w-full hover:bg-accent hover:text-accent-foreground"}},defaultVariants:{highlight:"selected"}});function T(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u(I(),t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(g.Item,{"data-slot":"command-item",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}export{B as C,H as a,T as b,V as c,$ as d,R as e,L as f,I as g,P as h};
|
package/dist/client/assets/{companion-mcps-section-CElJkf6T.js → companion-mcps-section-idD3Wjuq.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _,r as T,l as Q,j as s,Q as Y,E as Z,b as U,a as ee,z as te,B as ne}from"./index-
|
|
1
|
+
import{c as _,r as T,l as Q,j as s,Q as Y,E as Z,b as U,a as ee,z as te,B as ne}from"./index-DQZBt6Fl.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-CuZ_CH4K.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-CWVubK_K.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=T.useState(!0);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=u=>{if(!u)return;const y=()=>{const j=u.scrollHeight-u.scrollTop-u.clientHeight<8;c(j)};y(),u.addEventListener("scroll",y,{passive:!0});const b=new ResizeObserver(y);b.observe(u);for(const j of Array.from(u.children))b.observe(j);return()=>{u.removeEventListener("scroll",y),b.disconnect()}},e[0]=f):f=e[0];const p=f;let l;e[1]!==r?(l=Q("relative",r),e[1]=r,e[2]=l):l=e[2];let i;e[3]!==n||e[4]!==o?(i=s.jsx("div",{ref:p,className:o,children:n}),e[3]=n,e[4]=o,e[5]=i):i=e[5];const a=d?"opacity-0":"opacity-100";let x;e[6]!==a?(x=Q("pointer-events-none absolute inset-x-0 -bottom-px h-[72px]","bg-gradient-to-t from-sidebar from-[6px] to-transparent","backdrop-blur-[1px] [mask-image:linear-gradient(to_top,black_6px,transparent)]","transition-opacity duration-200",a),e[6]=a,e[7]=x):x=e[7];let m;e[8]!==x?(m=s.jsx("div",{"aria-hidden":!0,className:x}),e[8]=x,e[9]=m):m=e[9];let g;return e[10]!==l||e[11]!==i||e[12]!==m?(g=s.jsxs("div",{className:l,children:[i,m]}),e[10]=l,e[11]=i,e[12]=m,e[13]=g):g=e[13],g}const H="flex min-h-0 flex-1 flex-col gap-6 md:grid md:flex-none md:gap-6";function q(){const t=_.c(4),e=U();let n;t[0]!==e?(n=e("routes.reportsOnboarding.companionSection.title"),t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=s.jsx("h1",{className:"text-lg font-medium leading-6 text-foreground lg:text-xl lg:leading-7",children:n}),t[2]=n,t[3]=o):o=t[3],o}function de(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-col gap-4",children:[0,1,2,3].map(me)}),t[0]=e):e=t[0],e}function me(t){return s.jsx(ae,{},t)}function fe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:H,children:[s.jsx(q,{}),s.jsx(de,{})]}),t[0]=e):e=t[0],e}function ue(t){const e=_.c(18),{onRetry:n}=t,o=U();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(q,{}),e[0]=r):r=e[0];let d;e[1]!==o?(d=o("routes.reportsOnboarding.companionSection.loadError"),e[1]=o,e[2]=d):d=e[2];let c;e[3]!==d?(c=s.jsx("p",{className:"text-sm text-foreground",children:d}),e[3]=d,e[4]=c):c=e[4];let f;e[5]!==o?(f=o("routes.reportsOnboarding.companionSection.loadErrorDescription"),e[5]=o,e[6]=f):f=e[6];let p;e[7]!==f?(p=s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:f}),e[7]=f,e[8]=p):p=e[8];let l;e[9]!==o?(l=o("routes.reportsOnboarding.companionSection.retry"),e[9]=o,e[10]=l):l=e[10];let i;e[11]!==n||e[12]!==l?(i=s.jsx(ne,{type:"button",variant:"outline",size:"sm",className:"mt-3",onClick:n,children:l}),e[11]=n,e[12]=l,e[13]=i):i=e[13];let a;return e[14]!==c||e[15]!==p||e[16]!==i?(a=s.jsxs("div",{className:H,children:[r,s.jsxs("div",{role:"alert",className:"rounded-2xl border border-border bg-card p-4",children:[c,p,i]})]}),e[14]=c,e[15]=p,e[16]=i,e[17]=a):a=e[17],a}function ve(t){const e=_.c(2);let n;return e[0]!==t?(n=s.jsx(Y,{children:o=>{const{reset:r}=o;return s.jsx(Z,{fallback:d=>{const{resetError:c}=d;return s.jsx(ue,{onRetry:()=>{r(),c()}})},children:s.jsx(T.Suspense,{fallback:s.jsx(fe,{}),children:s.jsx(pe,{...t})})})}}),e[0]=t,e[1]=n):n=e[1],n}function pe(t){const e=_.c(60),{org:n,cdConnectionId:o,siteUrl:r,onReadinessChange:d}=t,c=U(),{data:f}=ee.useSession(),p=f?.user?.id??"";let l;if(e[0]!==r){const $=r?se(r):null;if($?.ok)try{l=new URL($.value).hostname}catch{l=void 0}e[0]=r,e[1]=l}else l=e[1];let i;e[2]!==n.id||e[3]!==n.slug?(i={connectionId:te,orgId:n.id,orgSlug:n.slug},e[2]=n.id,e[3]=n.slug,e[4]=i):i=e[4];const a=oe(i);let x;e[5]!==o||e[6]!==n||e[7]!==a||e[8]!==r?(x={selfClient:a,org:n,cdConnectionId:o,siteUrl:r},e[5]=o,e[6]=n,e[7]=a,e[8]=r,e[9]=x):x=e[9];const{cards:m,saStatusUnavailable:g}=re(x);let u;e[10]!==o||e[11]!==n||e[12]!==a||e[13]!==l||e[14]!==r||e[15]!==p?(u={selfClient:a,org:n,userId:p,cdConnectionId:o,domain:l,siteUrl:r},e[10]=o,e[11]=n,e[12]=a,e[13]=l,e[14]=r,e[15]=p,e[16]=u):u=e[16];const{connect:y,connectingFieldKey:b,disconnect:j,disconnectingFieldKey:L,error:N}=le(u),[z,D]=T.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==z||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==L||e[24]!==d||e[25]!==n||e[26]!==g||e[27]!==a||e[28]!==r||e[29]!==c){k=Symbol.for("react.early_return_sentinel");e:{const $=m.filter(ge),G=m.filter(xe),J=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(J),m.length===0){k=null;break e}const V=b!==null||L!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:L===h.fieldKey,disabled:V&&b!==h.fieldKey&&L!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:z,onAutoOpenConfigHandled:()=>D(F=>F===h.fieldKey?null:F),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=H,e[40]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(q,{}),e[40]=C):C=e[40],E=ce,I="flex min-h-0 flex-1 flex-col md:block",w="-mx-1 min-h-0 flex-1 overflow-y-auto px-1 md:max-h-[min(60vh,calc(100dvh-330px))] md:flex-none",e[41]!==N?(S=N&&s.jsx("p",{role:"alert",className:"mb-3 text-sm text-destructive",children:N}),e[41]=N,e[42]=S):S=e[42],e[43]!==g||e[44]!==c?(v=g&&s.jsx("p",{role:"status",className:"mb-3 rounded-lg border border-warning/40 bg-warning/10 p-3 text-sm text-foreground",children:c("routes.reportsOnboarding.companionSection.statusUnavailable")}),e[43]=g,e[44]=c,e[45]=v):v=e[45],K="flex flex-col gap-4 pt-3",O=[...$,...G].map(W)}e[17]=z,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=L,e[24]=d,e[25]=n,e[26]=g,e[27]=a,e[28]=r,e[29]=c,e[30]=E,e[31]=R,e[32]=C,e[33]=k,e[34]=K,e[35]=O,e[36]=I,e[37]=w,e[38]=S,e[39]=v}else E=e[30],R=e[31],C=e[32],k=e[33],K=e[34],O=e[35],I=e[36],w=e[37],S=e[38],v=e[39];if(k!==Symbol.for("react.early_return_sentinel"))return k;let A;e[46]!==K||e[47]!==O?(A=s.jsx("div",{className:K,children:O}),e[46]=K,e[47]=O,e[48]=A):A=e[48];let B;e[49]!==E||e[50]!==A||e[51]!==I||e[52]!==w||e[53]!==S||e[54]!==v?(B=s.jsxs(E,{wrapperClassName:I,className:w,children:[S,v,A]}),e[49]=E,e[50]=A,e[51]=I,e[52]=w,e[53]=S,e[54]=v,e[55]=B):B=e[55];let M;return e[56]!==R||e[57]!==C||e[58]!==B?(M=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=M):M=e[59],M}function xe(t){return!t.required}function ge(t){return t.required}function he(t){return t.satisfied&&t.configured}export{fe as C,ce as S,ve as a};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{c as _,b as
|
|
1
|
+
import{c as _,b as D,r as G,l as ee,j as s,a9 as q,fs as te,a0 as se,af as ne,T as ie,B as F,t as J,eM as oe,dX as le,an as ae}from"./index-DQZBt6Fl.js";import{a as re,A as ce}from"./alert-BiRypa2I.js";import{a as de,b as ue,c as V,d as fe,S as pe}from"./select-DKZw7VY5.js";import{T as me,c as xe,a as ge,b as he}from"./tabs-CWunSDaT.js";import{u as Y}from"./use-copy-BwelGe7h.js";import{a as Q}from"./Copy01-BsZDIS3z.js";import{i as ye}from"./Key01-muV6twoN.js";import{i as Ce}from"./Link01-BbJKwlY6.js";import{C as je,a as be,b as ve}from"./client-icons-CS1fp_mb.js";import{u as we,a as Ne,A as $e}from"./api-keys-CFH8WzHp.js";import{R as ke}from"./require-capability-DpBsO_NN.js";import"./index-BNnRrN_z.js";import"./ChevronUp-QcSQ5rVq.js";import"./AlertCircle-CqW1GFxy.js";import"./Plus-DcpbfgdJ.js";import"./Trash01-Cs1900Vx.js";import"./alert-dialog-BYQAyeOC.js";import"./dialog-CfR9zhfQ.js";import"./X-DgI4yqfX.js";import"./input-rh1Mv0Wr.js";import"./label-BNGvxM6S.js";import"./use-mcp-client-CuZ_CH4K.js";import"./auth-BCpLT4L2.js";import"./access-gate-DrhvBokN.js";import"./capability-load-error-CvIv1gsN.js";function Se(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ke(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function _e({client:t,mode:e,url:r,apiKey:c}){const i=c??"<paste-your-api-key>",a=Se();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r} \\
|
|
2
2
|
--header "Authorization: Bearer ${i}"`};if(t==="cursor"){const n={url:r};return e==="api-key"&&(n.headers={Authorization:`Bearer ${i}`}),{language:"json",pathHint:"~/.cursor/mcp.json",code:JSON.stringify({mcpServers:{[a]:n}},null,2)}}if(t==="codex"){const n=[`[mcp_servers.${a}]`,`url = "${r}"`];return e==="api-key"&&n.push(`http_headers = { "Authorization" = "Bearer ${i}" }`),{language:"toml",pathHint:"~/.codex/config.toml",code:n.join(`
|
|
3
3
|
`)}}return e==="oauth"?{language:"text",code:`${r}
|
|
4
4
|
|
|
5
5
|
# OAuth: clients that support MCP OAuth 2.1 will discover
|
|
6
6
|
# the auth flow via the WWW-Authenticate header on 401.`}:{language:"text",code:`${r}
|
|
7
7
|
|
|
8
|
-
Authorization: Bearer ${i}`}}function ze(t){const e=_.c(32),{client:r,mode:c,url:i,apiKey:a}=t,n=B();let d;e[0]!==a||e[1]!==r||e[2]!==c||e[3]!==i?(d=_e({client:r,mode:c,url:i,apiKey:a}),e[0]=a,e[1]=r,e[2]=c,e[3]=i,e[4]=d):d=e[4];const o=d,{handleCopy:u,copied:l}=Y(),f=D.useId(),p=D.useId();let m;e[5]!==u||e[6]!==o.code?(m=()=>u(o.code),e[5]=u,e[6]=o.code,e[7]=m):m=e[7];const C=`${f} ${p}`;let x;e[8]!==n?(x=n("settings.connectClients.copy"),e[8]=n,e[9]=x):x=e[9];let h;e[10]!==f||e[11]!==x?(h=s.jsx("span",{id:f,className:"sr-only",children:x}),e[10]=f,e[11]=x,e[12]=h):h=e[12];const y=o.pathHint??o.language;let j;e[13]!==y?(j=s.jsx("span",{className:"min-w-0 truncate font-mono text-[11px] leading-none text-muted-foreground",children:y}),e[13]=y,e[14]=j):j=e[14];const S=l?"text-success":"group-hover:border-foreground/30 group-hover:text-foreground";let K;e[15]!==S?(K=ee("flex size-6 shrink-0 items-center justify-center self-start rounded-md border border-border text-muted-foreground transition-colors",S),e[15]=S,e[16]=K):K=e[16];let v;e[17]!==l?(v=l?s.jsx(J,{size:13}):s.jsx(Q,{size:13}),e[17]=l,e[18]=v):v=e[18];let N;e[19]!==v||e[20]!==K?(N=s.jsx("span",{"aria-hidden":"true",className:K,children:v}),e[19]=v,e[20]=K,e[21]=N):N=e[21];let b;e[22]!==p||e[23]!==o.code?(b=s.jsx("pre",{className:"overflow-x-auto pt-2 font-mono text-xs leading-relaxed",children:s.jsx("code",{id:p,children:o.code})}),e[22]=p,e[23]=o.code,e[24]=b):b=e[24];let w;return e[25]!==N||e[26]!==b||e[27]!==m||e[28]!==C||e[29]!==h||e[30]!==j?(w=s.jsxs("button",{type:"button",onClick:m,"aria-labelledby":C,className:"group relative grid w-full cursor-pointer grid-cols-[minmax(0,1fr)_auto] items-start gap-x-3 classic:rounded-md compact:rounded-lg p-3 text-left transition-colors hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[h,j,N,b]}),e[25]=N,e[26]=b,e[27]=m,e[28]=C,e[29]=h,e[30]=j,e[31]=w):w=e[31],w}const q="Connect: ",U=[{id:"claude-code",label:"Claude",Icon:je},{id:"cursor",label:"Cursor",Icon:be},{id:"codex",label:"Codex",Icon:ve},{id:"raw",label:"Other client",labelKey:"settings.connectClients.otherClient",Icon:Ce}];function Z(t){return U.find(e=>e.id===t)?.label??t}function Ae(){return typeof window>"u"?"unknown":window.location.hostname}function Ie(t){const e=_.c(11),{text:r}=t,c=B(),{handleCopy:i,copied:a}=Y();let n;e[0]!==i||e[1]!==r?(n=()=>i(r),e[0]=i,e[1]=r,e[2]=n):n=e[2];let d;e[3]!==c?(d=c("settings.connectClients.copy"),e[3]=c,e[4]=d):d=e[4];let o;e[5]!==a?(o=a?s.jsx(J,{size:14}):s.jsx(Q,{size:14}),e[5]=a,e[6]=o):o=e[6];let u;return e[7]!==n||e[8]!==d||e[9]!==o?(u=s.jsx(F,{variant:"ghost",size:"icon",className:"size-7 shrink-0",onClick:n,"aria-label":d,children:o}),e[7]=n,e[8]=d,e[9]=o,e[10]=u):u=e[10],u}function Oe(t){const e=_.c(17),{url:r}=t,c=B(),i=`${r}/.well-known/oauth-protected-resource`;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(ae,{size:12,className:"shrink-0 transition-transform group-open:rotate-90"}),e[0]=a):a=e[0];let n;e[1]!==c?(n=c("settings.connectClients.oauthDiscoveryDetails"),e[1]=c,e[2]=n):n=e[2];let d;e[3]!==n?(d=s.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 transition-colors hover:text-foreground [&::-webkit-details-marker]:hidden",children:[a,n]}),e[3]=n,e[4]=d):d=e[4];let o;e[5]!==c?(o=c("settings.connectClients.oauthMetadataHint"),e[5]=c,e[6]=o):o=e[6];let u;e[7]!==o?(u=s.jsx("p",{children:o}),e[7]=o,e[8]=u):u=e[8];let l;e[9]!==i?(l=s.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-1.5",children:[s.jsx("code",{className:"flex-1 truncate font-mono text-[11px]",children:i}),s.jsx(Ie,{text:i})]}),e[9]=i,e[10]=l):l=e[10];let f;e[11]!==u||e[12]!==l?(f=s.jsxs("div",{className:"mt-2 space-y-1 pl-[18px]",children:[u,l]}),e[11]=u,e[12]=l,e[13]=f):f=e[13];let p;return e[14]!==d||e[15]!==f?(p=s.jsxs("details",{className:"group text-xs text-muted-foreground",children:[d,f]}),e[14]=d,e[15]=f,e[16]=p):p=e[16],p}function Te(t){const e=_.c(23),{mode:r,onModeChange:c}=t,i=B();let a;e[0]!==c?(a=x=>{(x==="oauth"||x==="api-key")&&c(x)},e[0]=c,e[1]=a):a=e[1];let n;e[2]!==i?(n=i("settings.connectClients.installMethod"),e[2]=i,e[3]=n):n=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(de,{}),e[4]=d):d=e[4];let o;e[5]!==n?(o=s.jsx(ue,{size:"sm",className:"text-xs","aria-label":n,children:d}),e[5]=n,e[6]=o):o=e[6];let u;e[7]!==i?(u=i("settings.connectClients.oauthOption"),e[7]=i,e[8]=u):u=e[8];let l;e[9]!==u?(l=s.jsx(V,{value:"oauth",className:"text-xs",children:u}),e[9]=u,e[10]=l):l=e[10];let f;e[11]!==i?(f=i("settings.connectClients.apiKeyOption"),e[11]=i,e[12]=f):f=e[12];let p;e[13]!==f?(p=s.jsx(V,{value:"api-key",className:"text-xs",children:f}),e[13]=f,e[14]=p):p=e[14];let m;e[15]!==l||e[16]!==p?(m=s.jsxs(fe,{children:[l,p]}),e[15]=l,e[16]=p,e[17]=m):m=e[17];let C;return e[18]!==r||e[19]!==a||e[20]!==o||e[21]!==m?(C=s.jsxs(pe,{value:r,onValueChange:a,children:[o,m]}),e[18]=r,e[19]=a,e[20]=o,e[21]=m,e[22]=C):C=e[22],C}function Me(t){const e=_.c(26),{client:r,url:c,mode:i,newKey:a,canManageKeys:n,onGenerate:d,isGenerating:o,onClearNewKey:u}=t,l=B(),f=i==="api-key"&&a!==null,p=r==="raw";let m;e[0]!==f||e[1]!==l?(m=f&&s.jsxs(re,{variant:"warning",className:"text-xs",children:[s.jsx(ie,{}),s.jsx(ce,{children:l("settings.connectClients.snippetOneTimeWarning")})]}),e[0]=f,e[1]=l,e[2]=m):m=e[2];const C=f&&a?a:void 0;let x;e[3]!==r||e[4]!==i||e[5]!==C||e[6]!==c?(x=s.jsx(ze,{client:r,mode:i,url:c,apiKey:C}),e[3]=r,e[4]=i,e[5]=C,e[6]=c,e[7]=x):x=e[7];let h;e[8]!==p||e[9]!==c?(h=p&&s.jsx(Oe,{url:c}),e[8]=p,e[9]=c,e[10]=h):h=e[10];let y;e[11]!==n||e[12]!==r||e[13]!==o||e[14]!==p||e[15]!==i||e[16]!==u||e[17]!==d||e[18]!==f||e[19]!==l?(y=i==="api-key"&&n&&s.jsx("div",{children:f?s.jsx(F,{variant:"ghost",size:"sm",onClick:u,className:"text-xs",children:l("settings.connectClients.doneHideKey")}):s.jsxs(F,{size:"sm",onClick:d,disabled:o,className:"gap-1.5",children:[s.jsx(ye,{size:14}),o?l("settings.connectClients.generatingKey"):p?l("settings.connectClients.generateKey"):l("settings.connectClients.generateKeyFor",{client:Z(r)})]})}),e[11]=n,e[12]=r,e[13]=o,e[14]=p,e[15]=i,e[16]=u,e[17]=d,e[18]=f,e[19]=l,e[20]=y):y=e[20];let j;return e[21]!==m||e[22]!==x||e[23]!==h||e[24]!==y?(j=s.jsxs("div",{className:"flex flex-col gap-3",children:[m,x,h,y]}),e[21]=m,e[22]=x,e[23]=h,e[24]=y,e[25]=j):j=e[25],j}function Ee(){const t=_.c(51),e=B(),{org:r}=se();let c;t[0]!==r.slug?(c=Ke(r.slug),t[0]=r.slug,t[1]=c):c=t[1];const i=c,a=we(),{granted:n}=ne("api-keys:manage");let d;t[2]!==n?(d={enabled:n},t[2]=n,t[3]=d):d=t[3];const{data:o,dataUpdatedAt:u}=Ne(d),[l,f]=D.useState("oauth");let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p={},t[4]=p):p=t[4];const[m,C]=D.useState(p);let x;t[5]!==u||t[6]!==m||t[7]!==o?(x=$=>{const g=m[$];return g&&(!o||u<g.at||o.some(k=>k.id===g.id))?g.key:null},t[5]=u,t[6]=m,t[7]=o,t[8]=x):x=t[8];const h=x,[y,j]=D.useState("claude-code");let S;t[9]===Symbol.for("react.memo_cache_sentinel")?(S=$=>{const g=U.find(k=>k.id===$);g&&j(g.id)},t[9]=S):S=t[9];const K=S;let v;t[10]!==a||t[11]!==e?(v=$=>{const g=`${q}${Z($)} on ${Ae()}`;a.mutate({name:g,permissions:{"*":["*"]}},{onSuccess:k=>{C(P=>({...P,[$]:{id:k.id,key:k.key,at:Date.now()}})),X.success(e("settings.connectClients.keyCreated"))},onError:He})},t[10]=a,t[11]=e,t[12]=v):v=t[12];const N=v;let b;t[13]!==e?(b=e("settings.connectClients.connectAClient"),t[13]=e,t[14]=b):b=t[14];let w;t[15]!==e?(w=U.map($=>{const{id:g,label:k,labelKey:P,Icon:W}=$;return s.jsxs(me,{value:g,variant:"underline",className:"gap-2",children:[s.jsx(W,{size:16}),P?e(P):k]},g)}),t[15]=e,t[16]=w):w=t[16];let z;t[17]!==w?(z=s.jsx(ge,{variant:"underline",className:"h-10 min-w-0 flex-1 gap-1 overflow-x-auto border-b-0",children:w}),t[17]=w,t[18]=z):z=t[18];let A;t[19]!==l?(A=s.jsx(Te,{mode:l,onModeChange:f}),t[19]=l,t[20]=A):A=t[20];let I;t[21]!==z||t[22]!==A?(I=s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 px-3 py-1",children:[z,A]}),t[21]=z,t[22]=A,t[23]=I):I=t[23];let O;t[24]!==n||t[25]!==a||t[26]!==N||t[27]!==h||t[28]!==l||t[29]!==i?(O=U.map($=>{const{id:g,label:k}=$;return s.jsx(xe,{value:g,className:"p-2",children:s.jsx(Me,{client:g,url:i,mode:l,newKey:h(g),canManageKeys:n,onGenerate:()=>N(g),isGenerating:a.isPending&&a.variables?.name?.startsWith(`${q}${k}`)===!0,onClearNewKey:()=>C(P=>{const W={...P};return delete W[g],W})})},g)}),t[24]=n,t[25]=a,t[26]=N,t[27]=h,t[28]=l,t[29]=i,t[30]=O):O=t[30];let T;t[31]!==y||t[32]!==I||t[33]!==O?(T=s.jsx(oe,{className:"gap-0 overflow-hidden p-0",children:s.jsxs(he,{value:y,onValueChange:K,variant:"underline",className:"gap-0",children:[I,O]})}),t[31]=y,t[32]=I,t[33]=O,t[34]=T):T=t[34];let M;t[35]!==l||t[36]!==e?(M=e(l==="oauth"?"settings.connectClients.oauthKeyHint":"settings.connectClients.headlessKeyHint"),t[35]=l,t[36]=e,t[37]=M):M=t[37];let E;t[38]!==M?(E=s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:M}),t[38]=M,t[39]=E):E=t[39];let H;t[40]!==y||t[41]!==e?(H=y==="raw"&&s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:e("settings.connectClients.anyOtherClientDescription")}),t[40]=y,t[41]=e,t[42]=H):H=t[42];let L;t[43]!==T||t[44]!==E||t[45]!==H||t[46]!==b?(L=s.jsxs(le,{headerClassName:"px-0",title:b,children:[T,E,H]}),t[43]=T,t[44]=E,t[45]=H,t[46]=b,t[47]=L):L=t[47];let G;t[48]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(ke,{capability:"api-keys:manage",area:"api-keys",children:s.jsx($e,{})}),t[48]=G):G=t[48];let R;return t[49]!==L?(R=s.jsxs(s.Fragment,{children:[L,G]}),t[49]=L,t[50]=R):R=t[50],R}function He(t){return X.error(t.message)}function Le(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(te,{group:"connect",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}function dt(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Le,{}),t[0]=e):e=t[0],e}export{dt as default};
|
|
8
|
+
Authorization: Bearer ${i}`}}function ze(t){const e=_.c(32),{client:r,mode:c,url:i,apiKey:a}=t,n=D();let d;e[0]!==a||e[1]!==r||e[2]!==c||e[3]!==i?(d=_e({client:r,mode:c,url:i,apiKey:a}),e[0]=a,e[1]=r,e[2]=c,e[3]=i,e[4]=d):d=e[4];const o=d,{handleCopy:u,copied:l}=Y(),f=G.useId(),p=G.useId();let m;e[5]!==u||e[6]!==o.code?(m=()=>u(o.code),e[5]=u,e[6]=o.code,e[7]=m):m=e[7];const C=`${f} ${p}`;let x;e[8]!==n?(x=n("settings.connectClients.copy"),e[8]=n,e[9]=x):x=e[9];let h;e[10]!==f||e[11]!==x?(h=s.jsx("span",{id:f,className:"sr-only",children:x}),e[10]=f,e[11]=x,e[12]=h):h=e[12];const y=o.pathHint??o.language;let j;e[13]!==y?(j=s.jsx("span",{className:"min-w-0 truncate font-mono text-[11px] leading-none text-muted-foreground",children:y}),e[13]=y,e[14]=j):j=e[14];const S=l?"text-success":"group-hover:border-foreground/30 group-hover:text-foreground";let K;e[15]!==S?(K=ee("flex size-6 shrink-0 items-center justify-center self-start rounded-md border border-border text-muted-foreground transition-colors",S),e[15]=S,e[16]=K):K=e[16];let v;e[17]!==l?(v=l?s.jsx(q,{size:13}):s.jsx(Q,{size:13}),e[17]=l,e[18]=v):v=e[18];let N;e[19]!==v||e[20]!==K?(N=s.jsx("span",{"aria-hidden":"true",className:K,children:v}),e[19]=v,e[20]=K,e[21]=N):N=e[21];let b;e[22]!==p||e[23]!==o.code?(b=s.jsx("pre",{className:"overflow-x-auto pt-2 font-mono text-xs leading-relaxed",children:s.jsx("code",{id:p,children:o.code})}),e[22]=p,e[23]=o.code,e[24]=b):b=e[24];let w;return e[25]!==N||e[26]!==b||e[27]!==m||e[28]!==C||e[29]!==h||e[30]!==j?(w=s.jsxs("button",{type:"button",onClick:m,"aria-labelledby":C,className:"group relative grid w-full cursor-pointer grid-cols-[minmax(0,1fr)_auto] items-start gap-x-3 classic:rounded-md compact:rounded-lg p-3 text-left transition-colors hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[h,j,N,b]}),e[25]=N,e[26]=b,e[27]=m,e[28]=C,e[29]=h,e[30]=j,e[31]=w):w=e[31],w}const X="Connect: ",U=[{id:"claude-code",label:"Claude",Icon:je},{id:"cursor",label:"Cursor",Icon:be},{id:"codex",label:"Codex",Icon:ve},{id:"raw",label:"Other client",labelKey:"settings.connectClients.otherClient",Icon:Ce}];function Z(t){return U.find(e=>e.id===t)?.label??t}function Ae(){return typeof window>"u"?"unknown":window.location.hostname}function Ie(t){const e=_.c(11),{text:r}=t,c=D(),{handleCopy:i,copied:a}=Y();let n;e[0]!==i||e[1]!==r?(n=()=>i(r),e[0]=i,e[1]=r,e[2]=n):n=e[2];let d;e[3]!==c?(d=c("settings.connectClients.copy"),e[3]=c,e[4]=d):d=e[4];let o;e[5]!==a?(o=a?s.jsx(q,{size:14}):s.jsx(Q,{size:14}),e[5]=a,e[6]=o):o=e[6];let u;return e[7]!==n||e[8]!==d||e[9]!==o?(u=s.jsx(F,{variant:"ghost",size:"icon",className:"size-7 shrink-0",onClick:n,"aria-label":d,children:o}),e[7]=n,e[8]=d,e[9]=o,e[10]=u):u=e[10],u}function Oe(t){const e=_.c(17),{url:r}=t,c=D(),i=`${r}/.well-known/oauth-protected-resource`;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(ae,{size:12,className:"shrink-0 transition-transform group-open:rotate-90"}),e[0]=a):a=e[0];let n;e[1]!==c?(n=c("settings.connectClients.oauthDiscoveryDetails"),e[1]=c,e[2]=n):n=e[2];let d;e[3]!==n?(d=s.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 transition-colors hover:text-foreground [&::-webkit-details-marker]:hidden",children:[a,n]}),e[3]=n,e[4]=d):d=e[4];let o;e[5]!==c?(o=c("settings.connectClients.oauthMetadataHint"),e[5]=c,e[6]=o):o=e[6];let u;e[7]!==o?(u=s.jsx("p",{children:o}),e[7]=o,e[8]=u):u=e[8];let l;e[9]!==i?(l=s.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-1.5",children:[s.jsx("code",{className:"flex-1 truncate font-mono text-[11px]",children:i}),s.jsx(Ie,{text:i})]}),e[9]=i,e[10]=l):l=e[10];let f;e[11]!==u||e[12]!==l?(f=s.jsxs("div",{className:"mt-2 space-y-1 pl-[18px]",children:[u,l]}),e[11]=u,e[12]=l,e[13]=f):f=e[13];let p;return e[14]!==d||e[15]!==f?(p=s.jsxs("details",{className:"group text-xs text-muted-foreground",children:[d,f]}),e[14]=d,e[15]=f,e[16]=p):p=e[16],p}function Me(t){const e=_.c(23),{mode:r,onModeChange:c}=t,i=D();let a;e[0]!==c?(a=x=>{(x==="oauth"||x==="api-key")&&c(x)},e[0]=c,e[1]=a):a=e[1];let n;e[2]!==i?(n=i("settings.connectClients.installMethod"),e[2]=i,e[3]=n):n=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(de,{}),e[4]=d):d=e[4];let o;e[5]!==n?(o=s.jsx(ue,{size:"sm",className:"text-xs","aria-label":n,children:d}),e[5]=n,e[6]=o):o=e[6];let u;e[7]!==i?(u=i("settings.connectClients.oauthOption"),e[7]=i,e[8]=u):u=e[8];let l;e[9]!==u?(l=s.jsx(V,{value:"oauth",className:"text-xs",children:u}),e[9]=u,e[10]=l):l=e[10];let f;e[11]!==i?(f=i("settings.connectClients.apiKeyOption"),e[11]=i,e[12]=f):f=e[12];let p;e[13]!==f?(p=s.jsx(V,{value:"api-key",className:"text-xs",children:f}),e[13]=f,e[14]=p):p=e[14];let m;e[15]!==l||e[16]!==p?(m=s.jsxs(fe,{children:[l,p]}),e[15]=l,e[16]=p,e[17]=m):m=e[17];let C;return e[18]!==r||e[19]!==a||e[20]!==o||e[21]!==m?(C=s.jsxs(pe,{value:r,onValueChange:a,children:[o,m]}),e[18]=r,e[19]=a,e[20]=o,e[21]=m,e[22]=C):C=e[22],C}function Te(t){const e=_.c(26),{client:r,url:c,mode:i,newKey:a,canManageKeys:n,onGenerate:d,isGenerating:o,onClearNewKey:u}=t,l=D(),f=i==="api-key"&&a!==null,p=r==="raw";let m;e[0]!==f||e[1]!==l?(m=f&&s.jsxs(re,{variant:"warning",className:"text-xs",children:[s.jsx(ie,{}),s.jsx(ce,{children:l("settings.connectClients.snippetOneTimeWarning")})]}),e[0]=f,e[1]=l,e[2]=m):m=e[2];const C=f&&a?a:void 0;let x;e[3]!==r||e[4]!==i||e[5]!==C||e[6]!==c?(x=s.jsx(ze,{client:r,mode:i,url:c,apiKey:C}),e[3]=r,e[4]=i,e[5]=C,e[6]=c,e[7]=x):x=e[7];let h;e[8]!==p||e[9]!==c?(h=p&&s.jsx(Oe,{url:c}),e[8]=p,e[9]=c,e[10]=h):h=e[10];let y;e[11]!==n||e[12]!==r||e[13]!==o||e[14]!==p||e[15]!==i||e[16]!==u||e[17]!==d||e[18]!==f||e[19]!==l?(y=i==="api-key"&&n&&s.jsx("div",{children:f?s.jsx(F,{variant:"ghost",size:"sm",onClick:u,className:"text-xs",children:l("settings.connectClients.doneHideKey")}):s.jsxs(F,{size:"sm",onClick:d,disabled:o,className:"gap-1.5",children:[s.jsx(ye,{size:14}),o?l("settings.connectClients.generatingKey"):p?l("settings.connectClients.generateKey"):l("settings.connectClients.generateKeyFor",{client:Z(r)})]})}),e[11]=n,e[12]=r,e[13]=o,e[14]=p,e[15]=i,e[16]=u,e[17]=d,e[18]=f,e[19]=l,e[20]=y):y=e[20];let j;return e[21]!==m||e[22]!==x||e[23]!==h||e[24]!==y?(j=s.jsxs("div",{className:"flex flex-col gap-3",children:[m,x,h,y]}),e[21]=m,e[22]=x,e[23]=h,e[24]=y,e[25]=j):j=e[25],j}function Ee(){const t=_.c(51),e=D(),{org:r}=se();let c;t[0]!==r.slug?(c=Ke(r.slug),t[0]=r.slug,t[1]=c):c=t[1];const i=c,a=we(),{granted:n}=ne("api-keys:manage");let d;t[2]!==n?(d={enabled:n},t[2]=n,t[3]=d):d=t[3];const{data:o,dataUpdatedAt:u}=Ne(d),[l,f]=G.useState("oauth");let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p={},t[4]=p):p=t[4];const[m,C]=G.useState(p);let x;t[5]!==u||t[6]!==m||t[7]!==o?(x=$=>{const g=m[$];return g&&(!o||u<g.at||o.some(k=>k.id===g.id))?g.key:null},t[5]=u,t[6]=m,t[7]=o,t[8]=x):x=t[8];const h=x,[y,j]=G.useState("claude-code");let S;t[9]===Symbol.for("react.memo_cache_sentinel")?(S=$=>{const g=U.find(k=>k.id===$);g&&j(g.id)},t[9]=S):S=t[9];const K=S;let v;t[10]!==a||t[11]!==e?(v=$=>{const g=`${X}${Z($)} on ${Ae()}`;a.mutate({name:g,permissions:{"*":["*"]}},{onSuccess:k=>{C(B=>({...B,[$]:{id:k.id,key:k.key,at:Date.now()}})),J.success(e("settings.connectClients.keyCreated"))},onError:He})},t[10]=a,t[11]=e,t[12]=v):v=t[12];const N=v;let b;t[13]!==e?(b=e("settings.connectClients.connectAClient"),t[13]=e,t[14]=b):b=t[14];let w;t[15]!==e?(w=U.map($=>{const{id:g,label:k,labelKey:B,Icon:W}=$;return s.jsxs(me,{value:g,variant:"underline",className:"gap-2",children:[s.jsx(W,{size:16}),B?e(B):k]},g)}),t[15]=e,t[16]=w):w=t[16];let z;t[17]!==w?(z=s.jsx(ge,{variant:"underline",className:"h-10 min-w-0 flex-1 gap-1 overflow-x-auto border-b-0",children:w}),t[17]=w,t[18]=z):z=t[18];let A;t[19]!==l?(A=s.jsx(Me,{mode:l,onModeChange:f}),t[19]=l,t[20]=A):A=t[20];let I;t[21]!==z||t[22]!==A?(I=s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 px-3 py-1",children:[z,A]}),t[21]=z,t[22]=A,t[23]=I):I=t[23];let O;t[24]!==n||t[25]!==a||t[26]!==N||t[27]!==h||t[28]!==l||t[29]!==i?(O=U.map($=>{const{id:g,label:k}=$;return s.jsx(xe,{value:g,className:"p-2",children:s.jsx(Te,{client:g,url:i,mode:l,newKey:h(g),canManageKeys:n,onGenerate:()=>N(g),isGenerating:a.isPending&&a.variables?.name?.startsWith(`${X}${k}`)===!0,onClearNewKey:()=>C(B=>{const W={...B};return delete W[g],W})})},g)}),t[24]=n,t[25]=a,t[26]=N,t[27]=h,t[28]=l,t[29]=i,t[30]=O):O=t[30];let M;t[31]!==y||t[32]!==I||t[33]!==O?(M=s.jsx(oe,{className:"gap-0 overflow-hidden p-0",children:s.jsxs(he,{value:y,onValueChange:K,variant:"underline",className:"gap-0",children:[I,O]})}),t[31]=y,t[32]=I,t[33]=O,t[34]=M):M=t[34];let T;t[35]!==l||t[36]!==e?(T=e(l==="oauth"?"settings.connectClients.oauthKeyHint":"settings.connectClients.headlessKeyHint"),t[35]=l,t[36]=e,t[37]=T):T=t[37];let E;t[38]!==T?(E=s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:T}),t[38]=T,t[39]=E):E=t[39];let H;t[40]!==y||t[41]!==e?(H=y==="raw"&&s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:e("settings.connectClients.anyOtherClientDescription")}),t[40]=y,t[41]=e,t[42]=H):H=t[42];let P;t[43]!==M||t[44]!==E||t[45]!==H||t[46]!==b?(P=s.jsxs(le,{headerClassName:"px-0",title:b,children:[M,E,H]}),t[43]=M,t[44]=E,t[45]=H,t[46]=b,t[47]=P):P=t[47];let L;t[48]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(ke,{capability:"api-keys:manage",area:"api-keys",children:s.jsx($e,{})}),t[48]=L):L=t[48];let R;return t[49]!==P?(R=s.jsxs(s.Fragment,{children:[P,L]}),t[49]=P,t[50]=R):R=t[50],R}function He(t){return J.error(t.message)}function Pe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(te,{group:"connect",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}function dt(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Pe,{}),t[0]=e):e=t[0],e}export{dt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,b as N,j as s,R as w,an as k,B as y}from"./index-
|
|
1
|
+
import{c as v,b as N,j as s,R as w,an as k,B as y}from"./index-DQZBt6Fl.js";import{i as z}from"./X-DgI4yqfX.js";import{aq as _,ah as C}from"./agent-icon-DZmc5CaF.js";const S="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function $(){const t=v.c(13),e=N();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),t[0]=l):l=t[0];let n;t[1]!==e?(n=e("routes.reportsOnboarding.connectModal.quote"),t[1]=e,t[2]=n):n=t[2];let o;t[3]!==n?(o=s.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",n,"”"]}),t[3]=n,t[4]=o):o=t[4];let a;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=a):a=t[5];let r;t[6]!==e?(r=e("routes.reportsOnboarding.connectModal.quoteAuthor"),t[6]=e,t[7]=r):r=t[7];let i;t[8]!==r?(i=s.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[a,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let c;return t[10]!==o||t[11]!==i?(c=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=c):c=t[12],c}function q(){const t=v.c(19),e=N();let l;t[0]!==e?(l=e("routes.reportsOnboarding.connectModal.trustRevoke"),t[0]=e,t[1]=l):l=t[1];let n;t[2]!==l?(n={Icon:_,label:l},t[2]=l,t[3]=n):n=t[3];let o;t[4]!==e?(o=e("routes.reportsOnboarding.connectModal.trustEncrypted"),t[4]=e,t[5]=o):o=t[5];let a;t[6]!==o?(a={Icon:w,label:o},t[6]=o,t[7]=a):a=t[7];let r;t[8]!==e?(r=e("routes.reportsOnboarding.connectModal.trustNeverSold"),t[8]=e,t[9]=r):r=t[9];let i;t[10]!==r?(i={Icon:C,label:r},t[10]=r,t[11]=i):i=t[11];let c;t[12]!==n||t[13]!==a||t[14]!==i?(c=[n,a,i],t[12]=n,t[13]=a,t[14]=i,t[15]=c):c=t[15];const m=c;let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"h-px w-full bg-white/15"}),t[16]=f):f=t[16];let d;return t[17]!==m?(d=s.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[f,s.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:m.map(M)})]}),t[17]=m,t[18]=d):d=t[18],d}function M(t){const{Icon:e,label:l}=t;return s.jsxs("li",{className:"flex items-center gap-2.5 text-[13px] leading-tight text-white/70",children:[s.jsx(e,{className:"size-4 shrink-0 opacity-85"}),l]},l)}function A(t){const e=v.c(22),{siteHost:l,footer:n,onClose:o,children:a}=t,r=N(),i=l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null;let c;e[0]!==o||e[1]!==r?(c=o&&s.jsx("button",{type:"button",onClick:o,"aria-label":r("routes.reportsOnboarding.connectModal.close"),className:"absolute right-3 top-3 z-10 flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-black/10 hover:text-foreground lg:text-white/80 lg:hover:bg-white/15 lg:hover:text-white",children:s.jsx(z,{size:18})}),e[0]=o,e[1]=r,e[2]=c):c=e[2];let m,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"size-7 shrink-0 dark:hidden"}),f=s.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"hidden size-7 shrink-0 dark:block"}),e[3]=m,e[4]=f):(m=e[3],f=e[4]);let d;e[5]!==i||e[6]!==l?(d=l&&s.jsxs(s.Fragment,{children:[s.jsx(k,{size:16,className:"shrink-0 text-foreground/25"}),i&&s.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center overflow-hidden rounded bg-white",children:s.jsx("img",{src:i,alt:"",className:"size-full"})}),s.jsx("span",{className:"truncate text-[15px] leading-tight text-muted-foreground",children:l})]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let x;e[8]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[m,f,d]}),e[8]=d,e[9]=x):x=e[9];let g;e[10]!==n?(g=s.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:n}),e[10]=n,e[11]=g):g=e[11];let h;e[12]!==a||e[13]!==x||e[14]!==g?(h=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[x,a,g]}),e[12]=a,e[13]=x,e[14]=g,e[15]=h):h=e[15];let u,b;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),b=s.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=u,e[17]=b):(u=e[16],b=e[17]);let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[u,b,s.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[s.jsx("div",{className:"flex-1"}),s.jsx($,{}),s.jsx("div",{className:"flex-1"}),s.jsx(q,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==c||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[c,h,p]}),e[19]=c,e[20]=h,e[21]=j):j=e[21],j}function I(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:a,children:r}=t,i=n||!l,c=l&&!n?r:null;let m;return e[0]!==o||e[1]!==a||e[2]!==i||e[3]!==c?(m=s.jsxs(y,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal classic:rounded-lg py-3 text-center text-base font-medium leading-tight",onClick:a,disabled:i,children:[o,c]}),e[0]=o,e[1]=a,e[2]=i,e[3]=c,e[4]=m):m=e[4],m}export{A as C,I as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as $,a0 as K,z as k,a8 as F,K as H,b as q,l as A,j as x,
|
|
1
|
+
import{c as $,a0 as K,z as k,a8 as F,K as H,b as q,l as A,j as x,eM as z}from"./index-DQZBt6Fl.js";import{u as G}from"./use-registry-connections-C8ZRYmvy.js";import{e as U}from"./use-organization-settings-rcECAo5J.js";import{u as V}from"./useInfiniteQuery-Ds6mCrD2.js";import{c as X}from"./use-mcp-client-CuZ_CH4K.js";import{i as Y,f as B}from"./extract-connection-data-DgcpMlth.js";import{r as W,R as Z}from"./retry-i8LvYSZg.js";import{g as S}from"./connection-slug-CITJ0kGN.js";import{I as J}from"./integration-icon-Dz7H1-MQ.js";function ge(){const s=$.c(6),e=G(),t=U(),o=K().project.enabledPlugins??[];let n;if(s[0]!==o||s[1]!==t||s[2]!==e){let a;s[4]!==t?(a=r=>t(r.id),s[4]=t,s[5]=a):a=s[5],n=e.filter(a).map(O),o.includes("private-registry")&&t(k)&&n.push({id:k,title:"Private Registry",icon:null}),s[0]=o,s[1]=t,s[2]=e,s[3]=n}else n=s[3];return n}function O(s){return{id:s.id,title:s.title,icon:s.icon}}const ee=24,L=3;function Q(s){return s.id.includes("community-registry")}function te(s){const e=s?.trim().split(/\s+/).filter(Boolean)??[];if(e.length===0)return;const t=[["title"],["description"],["name"],["server","title"]];return{operator:"or",conditions:e.flatMap(o=>t.map(n=>({field:n,operator:"contains",value:o})))}}function D(s,e,t,o,n){const a=s.map(l=>l.id).sort().join(","),r=te(n),{data:p,fetchNextPage:f,hasNextPage:d,isFetchingNextPage:g,isLoading:N}=V({queryKey:H.storeDiscovery(e,`${a}:${n??""}`),queryFn:async({pageParam:l})=>{const c=l??{};return await Promise.all(s.map(async i=>{const y=c[i.id];if(y==="EXHAUSTED")return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]};const C=Y(i.id,e);try{return await W(async()=>{let u=null;try{u=await X({connectionId:i.id,orgId:e,orgSlug:t});const h={limit:ee};y&&(h.cursor=y),r&&(h.where=r);const b=await u.callTool({name:C,arguments:h}),v=b.structuredContent??b,P=v.nextCursor||v.cursor||void 0,M=B(v?[v]:[]);return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:M,nextCursor:P}}finally{await u?.close().catch(()=>{})}},{maxAttempts:L,minTimeout:0,maxTimeout:1e3,jitter:0})}catch(u){return console.warn(`[useMergedStoreDiscovery] Registry "${i.title}" (${i.id}) failed after ${L} attempts:`,u instanceof Z?u.cause:u),{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]}}}))},initialPageParam:{},getNextPageParam:l=>{const c={};let m=!1;for(const i of l)i.registryId&&(i.nextCursor?(c[i.registryId]=i.nextCursor,m=!0):c[i.registryId]="EXHAUSTED");return m?c:void 0},staleTime:3600*1e3,placeholderData:F,retry:!1,enabled:s.length>0}),I=[];if(p?.pages)for(const l of p.pages)for(const c of l)for(const m of c.items)I.push({...m,_sourceName:m._sourceName??c.registryTitle,_sourceIcon:m._sourceIcon??c.registryIcon,_registryId:m._registryId??c.registryId});return{items:I,hasMore:d??!1,isLoadingMore:g,isInitialLoading:N,fetchNextPage:()=>{d&&!g&&f()}}}function ye(s,e){const t=$.c(16),{org:o}=K();let n;t[0]!==s?(n=s.filter(ie),t[0]=s,t[1]=n):n=t[1];const a=n;let r;t[2]!==s?(r=s.filter(se),t[2]=s,t[3]=r):r=t[3];const p=r,f=D(a,o.id,o.slug,!0,e),d=D(p,o.id,o.slug,!0,e);let g;if(t[4]!==d.items||t[5]!==f.items){const y=new Set;g=[];const C=[...f.items,...d.items];for(const u of C){const h=`${u._registryId}:${u.id}`;y.has(h)||(y.add(h),g.push(u))}t[4]=d.items,t[5]=f.items,t[6]=g}else g=t[6];const N=f.isInitialLoading||d.isInitialLoading,I=f.isLoadingMore||d.isLoadingMore,l=f.hasMore||d.hasMore;let c;t[7]!==d||t[8]!==f?(c=()=>{f.hasMore&&f.fetchNextPage(),d.hasMore&&d.fetchNextPage()},t[7]=d,t[8]=f,t[9]=c):c=t[9];const m=c;let i;return t[10]!==l||t[11]!==N||t[12]!==I||t[13]!==g||t[14]!==m?(i={items:g,hasMore:l,isLoadingMore:I,isInitialLoading:N,loadMore:m},t[10]=l,t[11]=N,t[12]=I,t[13]=g,t[14]=m,t[15]=i):i=t[15],i}function se(s){return Q(s)}function ie(s){return!Q(s)}function he(s){const e=new Map;for(const n of s){const a=S(n),r=e.get(a);r?r.push(n):e.set(a,[n])}const t=[],o=new Set;for(const n of s){const a=S(n);if(o.has(a))continue;o.add(a);const r=e.get(a),p=r[0];r.length===1?t.push({type:"single",connection:p}):t.push({type:"group",key:a,icon:p.icon,title:p.app_name?p.title.replace(/\s*\(\d+\)\s*$/,""):p.title,connections:r})}return t}function xe(s){const e=$.c(43),{connection:t,onClick:o,headerActions:n,headerActionsAlwaysVisible:a,footer:r,className:p,fallbackIcon:f,selected:d}=s,g=a===void 0?!1:a,N=q(),I=o&&"cursor-pointer hover:bg-muted/50";let l;e[0]!==p||e[1]!==I?(l=A("transition-colors group overflow-hidden flex flex-col h-full",I,p),e[0]=p,e[1]=I,e[2]=l):l=e[2];const c=o?"button":void 0,m=o?0:void 0,i=o&&d!==void 0?d:void 0;let y;e[3]!==o?(y=o?E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),o())}:void 0,e[3]=o,e[4]=y):y=e[4];let C;e[5]!==t.icon||e[6]!==t.title||e[7]!==f?(C=x.jsx(J,{icon:t.icon,name:t.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:f}),e[5]=t.icon,e[6]=t.title,e[7]=f,e[8]=C):C=e[8];let u;e[9]!==n||e[10]!==g?(u=n&&x.jsx("div",{className:A("transition-opacity",!g&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:ne,children:n}),e[9]=n,e[10]=g,e[11]=u):u=e[11];let h;e[12]!==u?(h=x.jsx("div",{className:"relative",children:u}),e[12]=u,e[13]=h):h=e[13];let b;e[14]!==h||e[15]!==C?(b=x.jsxs("div",{className:"flex items-start justify-between",children:[C,h]}),e[14]=h,e[15]=C,e[16]=b):b=e[16];let v;e[17]!==t.title?(v=x.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:t.title}),e[17]=t.title,e[18]=v):v=e[18];let P;e[19]!==t.description||e[20]!==N?(P=t.description||N("connections.connectionCard.noDescription"),e[19]=t.description,e[20]=N,e[21]=P):P=e[21];let M;e[22]!==P?(M=x.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=M):M=e[23];let R;e[24]!==v||e[25]!==M?(R=x.jsxs("div",{className:"flex flex-col gap-1",children:[v,M]}),e[24]=v,e[25]=M,e[26]=R):R=e[26];let j;e[27]!==b||e[28]!==R?(j=x.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[b,R]}),e[27]=b,e[28]=R,e[29]=j):j=e[29];let w;e[30]!==r?(w=r&&x.jsx("div",{className:"border-t border-border mt-auto",children:x.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:oe,children:r})}),e[30]=r,e[31]=w):w=e[31];let T;e[32]!==j||e[33]!==w?(T=x.jsxs("div",{className:"flex flex-col flex-1",children:[j,w]}),e[32]=j,e[33]=w,e[34]=T):T=e[34];let _;return e[35]!==o||e[36]!==T||e[37]!==l||e[38]!==c||e[39]!==m||e[40]!==i||e[41]!==y?(_=x.jsx(z,{className:l,onClick:o,role:c,tabIndex:m,"aria-pressed":i,onKeyDown:y,children:T}),e[35]=o,e[36]=T,e[37]=l,e[38]=c,e[39]=m,e[40]=i,e[41]=y,e[42]=_):_=e[42],_}function oe(s){return s.stopPropagation()}function ne(s){return s.stopPropagation()}export{xe as C,ye as a,he as g,ge as u};
|