decocms 4.400.4 → 4.400.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Cdi9MsfI.js → AlertCircle-CiIF9Yxb.js} +1 -1
- package/dist/client/assets/{AreaChart-FATZKl1B.js → AreaChart-CiScmeLa.js} +1 -1
- package/dist/client/assets/{ArrowLeft--sbQIcA4.js → ArrowLeft-Cw8zoASu.js} +1 -1
- package/dist/client/assets/{ArrowRight-D3bCXfs3.js → ArrowRight-DXuJxv6z.js} +1 -1
- package/dist/client/assets/{ArrowUp-DOGYG-2d.js → ArrowUp-i7W4PLl8.js} +1 -1
- package/dist/client/assets/{CartesianChart-B8x6kuT4.js → CartesianChart-CAtvwpDL.js} +1 -1
- package/dist/client/assets/{Check-Cu8ZpiXU.js → Check-Cxn5ODoZ.js} +1 -1
- package/dist/client/assets/{CheckCircle-V_B-3A54.js → CheckCircle-Cb0ohXc_.js} +1 -1
- package/dist/client/assets/{ChevronUp-fM8pBRMJ.js → ChevronUp-B3Rmv2Rm.js} +1 -1
- package/dist/client/assets/{Copy01-B9PN4for.js → Copy01-CDFMtB2-.js} +1 -1
- package/dist/client/assets/{CreditCard01-0hm82-Yz.js → CreditCard01-Bpp7DUE2.js} +1 -1
- package/dist/client/assets/{DotsVertical-CxZAdY1u.js → DotsVertical-CsphgVVa.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-BG0OPjLW.js → ErrorBarContext-Cmgr12jK.js} +1 -1
- package/dist/client/assets/{Eye-Vnu3GFnh.js → Eye-BaKrr1k0.js} +1 -1
- package/dist/client/assets/{Globe04-hb2fIuJ3.js → Globe04-BjYimuB_.js} +1 -1
- package/dist/client/assets/{Image01-RGU0s9ee.js → Image01-BokX_Ygh.js} +1 -1
- package/dist/client/assets/{Key01-CN4l1Zci.js → Key01--iK_92aj.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CtFtWr5A.js → LayoutLeft-DbmxTpPW.js} +1 -1
- package/dist/client/assets/{Line-PKR1ayO1.js → Line-CkGSu-B6.js} +1 -1
- package/dist/client/assets/{Link01-C5_VVVM6.js → Link01-CwRVjiFm.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BXIOuIUa.js → LinkExternal01-C1LIoQUC.js} +1 -1
- package/dist/client/assets/{Monitor01-CSVz4TM7.js → Monitor01-B-jx6SlO.js} +1 -1
- package/dist/client/assets/{Palette-D27CjO4F.js → Palette-BZ8zPcQQ.js} +1 -1
- package/dist/client/assets/{Plus-91Je9mAy.js → Plus-BeOCeSsu.js} +1 -1
- package/dist/client/assets/{SearchMd-DwLB0FEi.js → SearchMd-CmoIwdFD.js} +1 -1
- package/dist/client/assets/{Sector-De0tOOsW.js → Sector-L9R2CZ3j.js} +1 -1
- package/dist/client/assets/{Share07-Vq8ntjl8.js → Share07-BQpOEypi.js} +1 -1
- package/dist/client/assets/{Sun-DGczRjF9.js → Sun-BwQeSpzv.js} +1 -1
- package/dist/client/assets/{Tool01-BUVvNqCT.js → Tool01-CFPgtTUB.js} +1 -1
- package/dist/client/assets/{Trash01-7JyRrrFx.js → Trash01-yjy5Djos.js} +1 -1
- package/dist/client/assets/{Upload01-BJxqsXwZ.js → Upload01-C3YaZ92x.js} +1 -1
- package/dist/client/assets/{User01-DlkJQdTb.js → User01-CxY9-OxA.js} +1 -1
- package/dist/client/assets/{UserSquare-DeAUSm2x.js → UserSquare-D1SexGLq.js} +1 -1
- package/dist/client/assets/{Users01-CCyYZBpM.js → Users01-C234jzz1.js} +1 -1
- package/dist/client/assets/{X-B4zsCxDW.js → X-C49OUFcX.js} +1 -1
- package/dist/client/assets/{XClose-CSFrevt_.js → XClose-CKQjrGZS.js} +1 -1
- package/dist/client/assets/{Zap-B5gdN-nI.js → Zap-GTFewWZO.js} +1 -1
- package/dist/client/assets/{ZoomOut-BHIrcxIe.js → ZoomOut-BCbY44Eu.js} +1 -1
- package/dist/client/assets/{access-gate-Ds2jKty7.js → access-gate-BWJ5-fyg.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DYlJc7gh.js → add-connection-dialog-BRSOSKaa.js} +1 -1
- package/dist/client/assets/{agent-analytics-D1y1FIdS.js → agent-analytics-DvZELmro.js} +1 -1
- package/dist/client/assets/agent-app-CR4dhbC3.js +1 -0
- package/dist/client/assets/{agent-assets-he630f2G.js → agent-assets-CAIo2BGp.js} +1 -1
- package/dist/client/assets/{agent-automation-p3TaVles.js → agent-automation-4_v-jQ62.js} +1 -1
- package/dist/client/assets/{agent-automations-YEuTCdVe.js → agent-automations-DideyLR7.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DsHfJ5Zx.js → agent-connect-sources-C16mG4Vi.js} +1 -1
- package/dist/client/assets/agent-deck-B2S-lir7.js +1 -0
- package/dist/client/assets/{agent-e2e-fUwXmhh1.js → agent-e2e-CQ-lGjg-.js} +1 -1
- package/dist/client/assets/{agent-experiments-DaVWJof0.js → agent-experiments-CXowDnMX.js} +1 -1
- package/dist/client/assets/{agent-file-B93Bl0TW.js → agent-file-DVtUKLrb.js} +1 -1
- package/dist/client/assets/{agent-git-f_DEDBRu.js → agent-git-CEsra0W5.js} +1 -1
- package/dist/client/assets/{agent-hosting-CRCyc8Lg.js → agent-hosting-B95vsATF.js} +1 -1
- package/dist/client/assets/{agent-icon-BbP5hNkj.js → agent-icon-B4H17A-3.js} +1 -1
- package/dist/client/assets/agent-library-file-c5FcaNLf.js +1 -0
- package/dist/client/assets/{agent-monitor-BsBVzIPX.js → agent-monitor-DKyHOvd6.js} +1 -1
- package/dist/client/assets/{agent-overview-qdoB7HzH.js → agent-overview-Dq7efx0u.js} +1 -1
- package/dist/client/assets/agent-settings-tjDRwuVg.js +1 -0
- package/dist/client/assets/{agent-site-editor-BH866jep.js → agent-site-editor-DqHsR1Oa.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-D1x0TO9d.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-CHGNvzMq.js → agent-site-editor-content-C0C8gdKB.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-B6NYDXwx.js → agent-site-editor-preview-BPAT7NTN.js} +3 -3
- package/dist/client/assets/agent-view-DECRuUKv.js +1 -0
- package/dist/client/assets/{agent-view-guard-Bp0pW9MP.js → agent-view-guard-AncI1H8B.js} +1 -1
- package/dist/client/assets/{agents-list-B4sznemV.js → agents-list-DdpIsQof.js} +1 -1
- package/dist/client/assets/{ai-providers-CZBTpGpi.js → ai-providers-C91I1RIi.js} +1 -1
- package/dist/client/assets/{alert-fmPTgSG6.js → alert-Vv8Gd72t.js} +1 -1
- package/dist/client/assets/{alert-dialog-CkMD96Bv.js → alert-dialog-p_yxBHYu.js} +1 -1
- package/dist/client/assets/analytics-sections-CJlCPTTn.js +1 -0
- package/dist/client/assets/api-keys-CAMHVAF8.js +1 -0
- package/dist/client/assets/{api-keys-U6jTLKpL.js → api-keys-Ct4yGdka.js} +1 -1
- package/dist/client/assets/app-editor-BWuGvl0o.js +1 -0
- package/dist/client/assets/{asset-utils-DFbdowi6.js → asset-utils-brdDGay3.js} +1 -1
- package/dist/client/assets/{auth-lb5mcKTR.js → auth-DN1jUXQS.js} +1 -1
- package/dist/client/assets/{auth-catchall-Cu3ndlzT.js → auth-catchall-B8jjuh3t.js} +1 -1
- package/dist/client/assets/{auth-entry-DL6KDtI_.js → auth-entry-BZ-zlX-A.js} +1 -1
- package/dist/client/assets/{auth-split-layout-B9FyTKOD.js → auth-split-layout-9lXDS5uC.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CKbQN4IJ.js → authenticate-and-persist-oauth-BS0KLtdr.js} +1 -1
- package/dist/client/assets/{automation-list-row-KGDhotTq.js → automation-list-row-Z-oEG96S.js} +1 -1
- package/dist/client/assets/{automation-runs-DeogW8xC.js → automation-runs-BfoVhm3K.js} +1 -1
- package/dist/client/assets/{automations-CpmJXxwq.js → automations-BPxNxlY1.js} +1 -1
- package/dist/client/assets/{autosend-BpkK8bzM.js → autosend-C9lP7MMD.js} +1 -1
- package/dist/client/assets/{avatar-DaUKcz80.js → avatar-CaSFUaWf.js} +1 -1
- package/dist/client/assets/{badge-BNONYRUH.js → badge-DO3CQ_LV.js} +1 -1
- package/dist/client/assets/{block-document-Tibc5A4h.js → block-document-BQbcWy3F.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-91sjF69u.js → blocks-preview-workspace-context-Bsh7P3Oa.js} +1 -1
- package/dist/client/assets/{breadcrumb-DxVQOwYp.js → breadcrumb-D3KLnh1b.js} +1 -1
- package/dist/client/assets/{buckets-BaWcFtXo.js → buckets-DAqePqsj.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DLgcijyp.js → build-improve-prompt-doc-DKmCIRM5.js} +1 -1
- package/dist/client/assets/{calendar-Dqi7n5D5.js → calendar-v3rFo_Cq.js} +1 -1
- package/dist/client/assets/{capability-load-error-Bky3ifQ3.js → capability-load-error-nzBIi4Tr.js} +1 -1
- package/dist/client/assets/{category-editor-D2BwCwQ9.js → category-editor-CLkY8j6x.js} +1 -1
- package/dist/client/assets/{chart-rMl1SR7T.js → chart-CXdIvQqa.js} +1 -1
- package/dist/client/assets/{chat-context-BhEgSLmq.js → chat-context-CypzFnUJ.js} +1 -1
- package/dist/client/assets/{chat-draft-CurOwgHM.js → chat-draft-bJa35Dyv.js} +1 -1
- package/dist/client/assets/{checkbox-DWPYmeiE.js → checkbox-RuVP2KAD.js} +1 -1
- package/dist/client/assets/{choose-editor-BTICXQM4.js → choose-editor-B6bnAbTO.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-XM4vINtj.js → claim-phase-copy-IBG3Spfs.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CA08oqhc.js → cli-auth-success-Gnusnqeq.js} +1 -1
- package/dist/client/assets/{client-icons-Dffu8riI.js → client-icons-DeH3wN29.js} +1 -1
- package/dist/client/assets/{collapsible-Dzx6i1aG.js → collapsible-Bx8hZ5vv.js} +1 -1
- package/dist/client/assets/{collection-detail-D0oyTW2f.js → collection-detail-Xqlt3OgU.js} +1 -1
- package/dist/client/assets/{collection-display-button-DbL3RQ_W.js → collection-display-button-B4JQi_wC.js} +1 -1
- package/dist/client/assets/{collection-search-CQ3mLuEi.js → collection-search-CPwy4oTQ.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D8sio31h.js → collection-table-wrapper-DzLC9Cad.js} +1 -1
- package/dist/client/assets/{collection-tabs-C6wmaayy.js → collection-tabs-VZH79ort.js} +1 -1
- package/dist/client/assets/{combobox-BRrC4Ns3.js → combobox-bXWHxi5l.js} +1 -1
- package/dist/client/assets/{command-BNyvmfvT.js → command-C0IXiNme.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-Cwou5hHH.js → companion-mcps-section-BiiIWMdJ.js} +1 -1
- package/dist/client/assets/{connect-BVapoZUA.js → connect-B9RtRyUW.js} +1 -1
- package/dist/client/assets/{connect-layout-BbzVh08-.js → connect-layout-C5m144rF.js} +1 -1
- package/dist/client/assets/{connection-BUAfkZui.js → connection-C1Cmv_sz.js} +1 -1
- package/dist/client/assets/{connection-card-CTbyclre.js → connection-card-lUin0zXZ.js} +1 -1
- package/dist/client/assets/{connection-detail-DFKUaGiK.js → connection-detail-Bgtg-egn.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-smp2bSjt.js → connection-form-helpers-DiXUvzY1.js} +1 -1
- package/dist/client/assets/{connections-DgaKYqnw.js → connections-CIFiKTz-.js} +1 -1
- package/dist/client/assets/{context-p9DQxWne.js → context-lYPc9MR3.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CKKWvs4X.js → create-organization-dialog-CVGvbMrB.js} +1 -1
- package/dist/client/assets/{decofile-api-UiO97hYj.js → decofile-api-D2rDGWIR.js} +1 -1
- package/dist/client/assets/{decopilot-7hU6n5TB.js → decopilot-DZa7cUdc.js} +1 -1
- package/dist/client/assets/{dialog-B-8VCM7c.js → dialog-fTIcTyHb.js} +1 -1
- package/dist/client/assets/{discover-B8RQrBGE.js → discover-BZC8PmWN.js} +1 -1
- package/dist/client/assets/{domain-settings-EDuO6_V6.js → domain-settings-BoCWiWyd.js} +1 -1
- package/dist/client/assets/{download-app-dialog-CTPGH9A6.js → download-app-dialog-B8fu6N4W.js} +1 -1
- package/dist/client/assets/{drawer-CjVGNrnd.js → drawer-Dj7i5SNu.js} +1 -1
- package/dist/client/assets/{editor-4IyUFq4u.js → editor-CStKuO5E.js} +1 -1
- package/dist/client/assets/{empty-state-CS6HNwRE.js → empty-state-C8J78MMg.js} +1 -1
- package/dist/client/assets/{empty-state-D72D4ZR9.js → empty-state-DuOhKQcg.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CAltfKQ-.js → extract-connection-data-BN6Gn7S7.js} +1 -1
- package/dist/client/assets/{feature-gate-CfLoLIlu.js → feature-gate-BYtexfTr.js} +1 -1
- package/dist/client/assets/{feature-paywall-BCqSjzuF.js → feature-paywall-Do9-TIse.js} +1 -1
- package/dist/client/assets/{file-explorer-Cg_F57N8.js → file-explorer-sM87NUct.js} +1 -1
- package/dist/client/assets/{file-preview-CNBkiVTE.js → file-preview-Cctwbzua.js} +1 -1
- package/dist/client/assets/{file-share-button-inbG-LwU.js → file-share-button-Dcpl3tTi.js} +1 -1
- package/dist/client/assets/{file-type-icon-rfuBA0fB.js → file-type-icon-C--_TBMw.js} +1 -1
- package/dist/client/assets/{folder-icon-Bd7gC7tF.js → folder-icon-Be-ry1Lo.js} +1 -1
- package/dist/client/assets/{form-CWAKn5Sq.js → form-msoIoPH9.js} +1 -1
- package/dist/client/assets/{gateway-client-CZp2KYL3.js → gateway-client-B7EtyAUZ.js} +1 -1
- package/dist/client/assets/{general-Cv7UmmjQ.js → general-B5uAiOFe.js} +1 -1
- package/dist/client/assets/{github-icon-Bh61uHPw.js → github-icon-Czf3JIe0.js} +1 -1
- package/dist/client/assets/{home-DJ_WJoeS.js → home-nqrW03_D.js} +1 -1
- package/dist/client/assets/{hooks-roc0TixH.js → hooks-BunFzIMc.js} +1 -1
- package/dist/client/assets/{icon-button-CP8V2gkI.js → icon-button-TBoaqswf.js} +1 -1
- package/dist/client/assets/{index-B5qcJXym.js → index-B-RfjkQs.js} +5 -5
- package/dist/client/assets/{index-Jw5ejg9y.js → index-B48I-F_s.js} +1 -1
- package/dist/client/assets/{index-DgyOWCYw.js → index-B4lO5kiB.js} +1 -1
- package/dist/client/assets/{index-D8_5URbQ.js → index-BO3WDGm0.js} +1 -1
- package/dist/client/assets/{index-BnfLIXH4.js → index-Bv9cknRX.js} +1 -1
- package/dist/client/assets/{index-CW4vFH_U.js → index-C4bcGTWO.js} +1 -1
- package/dist/client/assets/{index-B7iFtRv_.js → index-CUoS9PHq.js} +1 -1
- package/dist/client/assets/{index-Cy_Bi45u.js → index-CnM-XjMS.js} +1 -1
- package/dist/client/assets/{index-x8omtPnT.js → index-CnlnpiW9.js} +1 -1
- package/dist/client/assets/{index-DLdwKgO-.js → index-Cnm8iPpl.js} +1 -1
- package/dist/client/assets/{index-hiCS6MSh.js → index-DNOKSPYL.js} +1 -1
- package/dist/client/assets/{index-NTTMRGYQ.js → index-DU8D4REs.js} +1 -1
- package/dist/client/assets/{index-BF91oVcr.js → index-bU1o14-j.js} +1 -1
- package/dist/client/assets/{index-BhuTxB_9.js → index-haAT4fp-.js} +1 -1
- package/dist/client/assets/{index-redirect-D6q0QA7s.js → index-redirect-lHlkLUpP.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-ByWJdGMW.js → infiniteQueryObserver-CFFZE0G7.js} +1 -1
- package/dist/client/assets/{infra-billing-skPYq5PT.js → infra-billing-CI3pPi6s.js} +1 -1
- package/dist/client/assets/{input-DglraHu0.js → input-CkBBlArz.js} +1 -1
- package/dist/client/assets/{input-BrTwdDWy.js → input-DgwTyBrI.js} +1 -1
- package/dist/client/assets/{input-aIjrQZiP.js → input-bCtnK_dS.js} +1 -1
- package/dist/client/assets/{integration-icon-BrdRpcDb.js → integration-icon-DuRUAYQY.js} +1 -1
- package/dist/client/assets/{label-ESYZa9X8.js → label-COhaglCI.js} +1 -1
- package/dist/client/assets/{last-preview-page-CJAGdbss.js → last-preview-page-C2BRWzsU.js} +1 -1
- package/dist/client/assets/{layout-Csgizr4e.js → layout-ezpRdHMe.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BxOoqRx4.js → legacy-agents-deep-7Ua9_FGE.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DYT6A3tU.js → legacy-main-redirect-CoKgMaf6.js} +1 -1
- package/dist/client/assets/{library-CgisXDgO.js → library-nbbFy0YJ.js} +1 -1
- package/dist/client/assets/{login-DPBNsRck.js → login-zL3v_Zks.js} +1 -1
- package/dist/client/assets/{markdown-Begy36Dj.js → markdown-CL_7eJfo.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-JrmeWSX0.js → mcp-app-renderer-BF1xjUD_.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CoZvf1D5.js → mcp-oauth-CYUMx6Lt.js} +1 -1
- package/dist/client/assets/{members-nBCqgD2X.js → members-Ci31aIzf.js} +1 -1
- package/dist/client/assets/{message-templates-CWXUURL5.js → message-templates-Dievwyon.js} +1 -1
- package/dist/client/assets/{mini-report-page-5gafctPE.js → mini-report-page-D2G_6nvn.js} +1 -1
- package/dist/client/assets/{mock-board-XAVgxJ96.js → mock-board-MGFiZQqD.js} +3 -3
- package/dist/client/assets/{monaco-editor-DfJuP3fh.js → monaco-editor-B-WPLOla.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BK9c5Iu-.js → monitoring-stats-row-IwXyXgpg.js} +1 -1
- package/dist/client/assets/{multi-select-26PEVJoi.js → multi-select-B5cPO8Zc.js} +1 -1
- package/dist/client/assets/{mustache-DmHolfGP.js → mustache-D5b2aALH.js} +1 -1
- package/dist/client/assets/{oauth-callback-DbIZdvQD.js → oauth-callback-XaDe1ZVU.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Y0bz799N.js → oauth-callback-ai-provider-CG6P6aWc.js} +1 -1
- package/dist/client/assets/{onboarding-DKasotYr.js → onboarding-C0P9leUg.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BWGLmNAz.js → optimistic-project-sidebar-views-BULTvoQH.js} +1 -1
- package/dist/client/assets/{org-file-open-context-0xdMR1Zs.js → org-file-open-context-C6mgZPAr.js} +1 -1
- package/dist/client/assets/{organization-choice-CCAISK-q.js → organization-choice-5mEr1aKE.js} +1 -1
- package/dist/client/assets/{orgs-DR4WNPA-.js → orgs-3MZWLo-q.js} +1 -1
- package/dist/client/assets/{page-seo-form-DvDOZ_3p.js → page-seo-form-BHc2C0F_.js} +1 -1
- package/dist/client/assets/{pair-CUb2vHH1.js → pair-CSXFDEIQ.js} +1 -1
- package/dist/client/assets/{plan-ladder-ksxJKxrI.js → plan-ladder-B7xKH1KD.js} +1 -1
- package/dist/client/assets/{popover-BLlUZ4cA.js → popover-DFY37Yvw.js} +1 -1
- package/dist/client/assets/{post-calendar-Bzz58mtp.js → post-calendar-Jvfo43V-.js} +1 -1
- package/dist/client/assets/{post-editor-DL7JP2qP.js → post-editor-D0HMXnr-.js} +1 -1
- package/dist/client/assets/{preview-content-CB7UdkTK.js → preview-content-DyylZdej.js} +1 -1
- package/dist/client/assets/{preview-dialog-DQx8pV8f.js → preview-dialog-GxP1iGgN.js} +1 -1
- package/dist/client/assets/{profile-vtso7GBh.js → profile-Bl7SMbnv.js} +1 -1
- package/dist/client/assets/{project-app-view-r_uaIezj.js → project-app-view-C-S_SBUQ.js} +1 -1
- package/dist/client/assets/{project-feed-Bo8nl6ck.js → project-feed-C9k9tVu9.js} +1 -1
- package/dist/client/assets/{project-icon-DF-WnAKp.js → project-icon-CsZAOQy_.js} +1 -1
- package/dist/client/assets/project-reports-h9XKnGzZ.js +1 -0
- package/dist/client/assets/project-tasks-CvQsB5FR.js +1 -0
- package/dist/client/assets/{prompts-ChHNEam0.js → prompts-CvgNBkYO.js} +1 -1
- package/dist/client/assets/record-editor-Dco1ladi.js +1 -0
- package/dist/client/assets/{redirect-editor-CrU2EqK0.js → redirect-editor-D2NLj98m.js} +1 -1
- package/dist/client/assets/{reports-CwIPUFo9.js → reports-BCYtzeDa.js} +1 -1
- package/dist/client/assets/reports-KVVIwKGA.js +1 -0
- package/dist/client/assets/{reports-onboarding-O4eF7b7Y.js → reports-onboarding-BG7_PC6g.js} +1 -1
- package/dist/client/assets/{reports-tab-B7WQklEj.js → reports-tab-CZyY8SM6.js} +2 -2
- package/dist/client/assets/{repositories-CCA1wYFw.js → repositories-C5RyL_z1.js} +1 -1
- package/dist/client/assets/{repository-import-picker-CujefGI6.js → repository-import-picker-ByioO6uG.js} +1 -1
- package/dist/client/assets/{repository-picker-CNYdtW6b.js → repository-picker-BPuZL7HO.js} +1 -1
- package/dist/client/assets/{require-capability-B_6DjiAo.js → require-capability-BlL45yDc.js} +1 -1
- package/dist/client/assets/{required-auth-layout-ClB8hL7Q.js → required-auth-layout-Duev8t_N.js} +1 -1
- package/dist/client/assets/{reset-password-Dx7u8W9_.js → reset-password-JANPJ9Jd.js} +1 -1
- package/dist/client/assets/{resizable-CpLTkicX.js → resizable-yTD1tEOl.js} +1 -1
- package/dist/client/assets/{review-settings-L27vheb8.js → review-settings-vW0-yRPH.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-B-b4deKU.js → rich-text-link-control-BUscMTY0.js} +1 -1
- package/dist/client/assets/{roles-BcEzenfc.js → roles-B-T-wGt2.js} +1 -1
- package/dist/client/assets/{route-CM3iiVrn.js → route-BoE0K809.js} +1 -1
- package/dist/client/assets/{route-nRAtVHEV.js → route-Ciyyz2ig.js} +1 -1
- package/dist/client/assets/{route-Cww0fegn.js → route-X5r9RmD7.js} +1 -1
- package/dist/client/assets/{route-page-header-BscP7W0Y.js → route-page-header-Ck32Z_z1.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-KU98pXbk.js → runnable-block-editor-DXtvF8jt.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-u0nfmumC.js → sandbox-lifecycle-context-BZ0OGbvt.js} +1 -1
- package/dist/client/assets/{schema-BWeXdYUm.js → schema-kN4UiUD7.js} +1 -1
- package/dist/client/assets/{scroll-area-8CMA0JRR.js → scroll-area-DtmE_V3W.js} +1 -1
- package/dist/client/assets/{search-input-BNBSYhPG.js → search-input-5SNth6iW.js} +1 -1
- package/dist/client/assets/{search-toggle-BtIEmhkX.js → search-toggle-BQLp0m3w.js} +1 -1
- package/dist/client/assets/{secret-picker-DVfMLFZ5.js → secret-picker-CNRCwGgJ.js} +1 -1
- package/dist/client/assets/{secrets-DTkfy9bj.js → secrets-BUndq66A.js} +1 -1
- package/dist/client/assets/{sections-editor-C74U1aqE.js → sections-editor-BMGHgar4.js} +1 -1
- package/dist/client/assets/{select-DoCYMQfs.js → select-lkzYgXdD.js} +1 -1
- package/dist/client/assets/{select-model-PLFE5YwX.js → select-model-L0RmAR5m.js} +1 -1
- package/dist/client/assets/{seo-editor-B6Tb4pTp.js → seo-editor-C5sUOmWC.js} +1 -1
- package/dist/client/assets/{separator-CsHKa1W1.js → separator-DIB2NY6d.js} +1 -1
- package/dist/client/assets/{settings-tab-z4s2gHWj.js → settings-tab-BQA673_Z.js} +1 -1
- package/dist/client/assets/{sheet-C8Ka_3Bl.js → sheet-B5VBlNbo.js} +1 -1
- package/dist/client/assets/{shell-layout-CBmKAy4i.js → shell-layout-t1NP6lxk.js} +1 -1
- package/dist/client/assets/{sidebar-BBtDR060.js → sidebar-Bsj1oRm2.js} +1 -1
- package/dist/client/assets/{skill-preview-CZNJ2WCv.js → skill-preview-_2hXoPIK.js} +1 -1
- package/dist/client/assets/{skills-CVTG2yWU.js → skills-D_mDF0TE.js} +1 -1
- package/dist/client/assets/{sso-_QHlY1fi.js → sso-kIq_TNP0.js} +1 -1
- package/dist/client/assets/{suggestion-BzE4n393.js → suggestion-Bm5WiIMl.js} +1 -1
- package/dist/client/assets/{switch-BFic22ny.js → switch-C_Vj5_E0.js} +1 -1
- package/dist/client/assets/{synced-repos-BsnLFa8l.js → synced-repos-wPtrwk-M.js} +1 -1
- package/dist/client/assets/{table-DKkmnbql.js → table-EewUoElk.js} +1 -1
- package/dist/client/assets/{tabs-DU4r7quM.js → tabs-Dn00_KeP.js} +1 -1
- package/dist/client/assets/{task-board-CozK5n91.js → task-board-B1qWBX1A.js} +1 -1
- package/dist/client/assets/{task-route-rl3iH1Gq.js → task-route-D--4JOl_.js} +1 -1
- package/dist/client/assets/{task-status-5E7k7Smt.js → task-status-Nj47Imo6.js} +1 -1
- package/dist/client/assets/taskboard-analytics-DlcZmFmP.js +1 -0
- package/dist/client/assets/{tasks-BsK7tVOd.js → tasks-BKvSOVwi.js} +1 -1
- package/dist/client/assets/tasks-DhBfoBLp.js +1 -0
- package/dist/client/assets/{textarea-B5yuRdsu.js → textarea-BJstaU_4.js} +1 -1
- package/dist/client/assets/{thread-analytics-BNcg7e8K.js → thread-analytics-CJvSEofm.js} +1 -1
- package/dist/client/assets/{thread-button-2n8amwUg.js → thread-button-Dg0_8ATn.js} +1 -1
- package/dist/client/assets/{thread-intent-BTsHDxNw.js → thread-intent-Dv_ln6w2.js} +1 -1
- package/dist/client/assets/{thread-route-CGrjdB3j.js → thread-route-BBwMAr4Q.js} +1 -1
- package/dist/client/assets/{thread-route-nE_TboQI.js → thread-route-C2QO3TRR.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CMCfZLFE.js → thread-sheet-body-a-hPHT_-.js} +1 -1
- package/dist/client/assets/{toggle-group-CNlPaZuW.js → toggle-group-n81OZ_Uu.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DHR-F1kV.js → toolbar-icon-button-G0ZB62BK.js} +1 -1
- package/dist/client/assets/{tooltip-C6PJ1j7n.js → tooltip-1YZ9_LEc.js} +1 -1
- package/dist/client/assets/{track-lTueJx3U.js → track-BdOLl-rI.js} +1 -1
- package/dist/client/assets/{types-vDN5599c.js → types-BcA15it5.js} +1 -1
- package/dist/client/assets/{usage-stats-DYDCKzqE.js → usage-stats-BXm3jzMp.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BQNZifYi.js → use-ai-providers-OZaiJf_i.js} +1 -1
- package/dist/client/assets/{use-automations-DJpHABJm.js → use-automations-D-L8pJyH.js} +1 -1
- package/dist/client/assets/{use-autosave-YwIBHqy2.js → use-autosave-WOg9IhGs.js} +1 -1
- package/dist/client/assets/{use-connect-companion-Dle_H8n2.js → use-connect-companion-dh23z2e4.js} +1 -1
- package/dist/client/assets/{use-connection-Dy2UvMsH.js → use-connection-B5_J2wP6.js} +1 -1
- package/dist/client/assets/{use-copy-Bw7YyuKq.js → use-copy-B6plqh15.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-C6KU_yQu.js → use-create-virtual-mcp-BHGrzRmt.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-wS9cqoLa.js → use-date-fns-locale-giBeaSOM.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C_bSdi4a.js → use-debounced-autosave-B9G4Lz7n.js} +1 -1
- package/dist/client/assets/{use-debounced-value-D7b3ywg0.js → use-debounced-value-CUPne1nm.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BuNCD-l1.js → use-deco-credits-BhBg4qYv.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DlgLtEEG.js → use-decopilot-events-CrYWYj1F.js} +1 -1
- package/dist/client/assets/{use-delete-connection-ts-TF_ss.js → use-delete-connection-XgJ1tVSe.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DJqEvn2b.js → use-deployment-admin-DhLAmeuE.js} +1 -1
- package/dist/client/assets/{use-entitlements-fEQpkKFP.js → use-entitlements-Bk0dyRQ2.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-i6FR9RFe.js → use-fast-preview-draft-url-BfzrR4he.js} +1 -1
- package/dist/client/assets/{use-file-configs-BQJBfmxg.js → use-file-configs-Q9mf6jQo.js} +1 -1
- package/dist/client/assets/{use-in-settings-Cb69tcP1.js → use-in-settings-_C3gW9Az.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-0LalUJCN.js → use-infinite-scroll-BAK1V_oQ.js} +1 -1
- package/dist/client/assets/{use-join-requests-DSW0vkRz.js → use-join-requests-DbabBnEV.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-G5nWzyVP.js → use-main-panel-tabs-rnsNQmUO.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-Cz5Y_X_F.js → use-mcp-auth-status-DetA28-g.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Dyv-A06S.js → use-mcp-client-6HSoOGyN.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CZl2jjLC.js → use-mcp-prompts-1aH_UXpe.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DYU3MkS7.js → use-mcp-tools-yAkOUoVS.js} +1 -1
- package/dist/client/assets/{use-members-KTrNaWmE.js → use-members-CNAxK8NG.js} +1 -1
- package/dist/client/assets/{use-mobile-CdSKJGCa.js → use-mobile-BA2OXMES.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-D3Xn6t_-.js → use-navigate-to-agent-B7J0geak.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-Bog7ZDbT.js → use-open-billing-url-CdE8qyDV.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-pOk6sLlZ.js → use-org-auth-client-DJC4lcTZ.js} +1 -1
- package/dist/client/assets/{use-org-fs-CNN3GCMi.js → use-org-fs-DxNvtETC.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CvlTSOj3.js → use-org-repo-syncs-BMiVfW6D.js} +1 -1
- package/dist/client/assets/{use-org-sso-DH5rPnv0.js → use-org-sso-D0y0H-Wd.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DaLGpeQ9.js → use-organization-roles-CTjyx7IB.js} +1 -1
- package/dist/client/assets/{use-organization-settings-fbMi-nT-.js → use-organization-settings-fx1CniIO.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BlZnn1hk.js → use-panel-navigate-ZqAXzPy8.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-COFFzQP2.js → use-project-native-view-presence-DU2K0Eyd.js} +1 -1
- package/dist/client/assets/{use-project-scope-tgoWQS9k.js → use-project-scope-Hp7aDrht.js} +1 -1
- package/dist/client/assets/{use-releases-BJEH_Gxf.js → use-releases-BXIf7cF0.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-xTirWZwR.js → use-reports-diagnostic-D7jrD_HD.js} +1 -1
- package/dist/client/assets/{use-route-default-main-C9OTmlNB.js → use-route-default-main-DGbZPJrO.js} +1 -1
- package/dist/client/assets/{use-secrets-DmG_jTeJ.js → use-secrets-C-Xp8b4K.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BvD9cWJy.js → use-section-preview-base-BIeB_qzV.js} +1 -1
- package/dist/client/assets/{use-session-runtime-K-LFEX9p.js → use-session-runtime-BGl1FWUp.js} +1 -1
- package/dist/client/assets/{use-tags-r8Qc6aUA.js → use-tags-pwsJJDvy.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-mFPVusE0.js → use-task-board-analytics-Dh7V7MPv.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CEdhKynf.js → use-task-metadata-DKjAQSZf.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-DJd2F3Ap.js → use-thread-analytics-CusHOOmZ.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-Bm0ChfUV.js → use-thread-outputs-8akdlycY.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-n3oy3EAh.js → use-virtual-mcp-CbHEuH0C.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CEwPAAtp.js +1 -0
- package/dist/client/assets/{useQueries-DrNKW5a4.js → useQueries-B5DxQ3Sp.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CC4BMd5I.js +1 -0
- package/dist/client/assets/{users-C9G9oF_D.js → users-p9MUZzW1.js} +1 -1
- package/dist/client/assets/{utils-BLPcefcc.js → utils-BkPwCtYS.js} +1 -1
- package/dist/client/assets/{variant-calendar-DfSfWSQj.js → variant-calendar-CcJNDqFN.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-r8Czoqzo.js → variant-matcher-override-CexHfhU3.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BzRY2KFe.js → view-mode-toggle-CJHrx4Q2.js} +1 -1
- package/dist/client/assets/{virtual-mcp-VJeGJpq-.js → virtual-mcp-Dd5g9b73.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +41 -41
- package/dist/server/server.js +38 -38
- package/package.json +1 -1
- package/dist/client/assets/agent-app-C47b8jCZ.js +0 -1
- package/dist/client/assets/agent-deck-GsBukHOk.js +0 -1
- package/dist/client/assets/agent-library-file-CzLaKl1X.js +0 -1
- package/dist/client/assets/agent-settings-C4e2827g.js +0 -1
- package/dist/client/assets/agent-site-editor-code-DmItYB-R.js +0 -2
- package/dist/client/assets/agent-view-D_1iIPoB.js +0 -1
- package/dist/client/assets/analytics-sections-DE65c1ns.js +0 -1
- package/dist/client/assets/api-keys-DT-I-M-J.js +0 -1
- package/dist/client/assets/app-editor-wWoZmBjm.js +0 -1
- package/dist/client/assets/project-reports-55gJC-H3.js +0 -1
- package/dist/client/assets/project-tasks-Dc1m3VcV.js +0 -1
- package/dist/client/assets/record-editor-wm4M53rQ.js +0 -1
- package/dist/client/assets/reports-e1nTZkbS.js +0 -1
- package/dist/client/assets/taskboard-analytics-mrSvXE0J.js +0 -1
- package/dist/client/assets/tasks-BFbbkTC-.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BRngavau.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BWAelygX.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,j as t,B as K,h as X,ao as tt,ap as ie,b as W,E as Re,r as D,U as Fe,Y as xe,d8 as st,d7 as Me,an as ot,n as ze,P as ye,u as nt,L as te,t as lt,f as fe,b$ as Be}from"./index-B5qcJXym.js";import{E as Le}from"./empty-state-D72D4ZR9.js";import{u as he}from"./use-mcp-client-Dyv-A06S.js";import{F as re,a as it,b as ae,d as ce}from"./form-CWAKn5Sq.js";import{I as ue}from"./input-BrTwdDWy.js";import{T as pe}from"./textarea-B5yuRdsu.js";import{D as ge,O as rt,M as at}from"./index-Jw5ejg9y.js";import{bj as ct,a5 as dt,bt as mt,O as ut,I as pt,J as xt,aN as ft,C as we,as as ht}from"./agent-icon-BbP5hNkj.js";import{M as gt}from"./mcp-app-renderer-JrmeWSX0.js";import{g as jt,M as Ce}from"./types-vDN5599c.js";import{a as bt,b as Nt,A as vt}from"./alert-fmPTgSG6.js";import{S as Ie,b as Te,a as $e,d as Pe,c as de}from"./select-DoCYMQfs.js";import{b as St,c as De,T as ke,a as Ae}from"./tooltip-C6PJ1j7n.js";import{B as Ue,a as _e,b as Y,c as se,d as oe,e as Je}from"./breadcrumb-DxVQOwYp.js";import{i as yt}from"./AlertCircle-Cdi9MsfI.js";import{a as wt}from"./Copy01-B9PN4for.js";import{i as Ct}from"./Sun-DGczRjF9.js";import{g as It}from"./connection-slug-CITJ0kGN.js";import{u as Tt,T as $t}from"./use-mcp-auth-status-Cz5Y_X_F.js";import{a as Ve,u as qe}from"./use-connection-Dy2UvMsH.js";import{u as Pt}from"./use-mcp-tools-DYU3MkS7.js";import{c as Dt}from"./content-blocks-o63cs2vh.js";import{I as Ee}from"./integration-icon-BrdRpcDb.js";import{f as kt,r as At}from"./chat-context-BhEgSLmq.js";import{a as Et}from"./shell-layout-CBmKAy4i.js";import{M as Ot}from"./monaco-editor-DfJuP3fh.js";import{E as Rt}from"./empty-state-CS6HNwRE.js";import"./auth-lb5mcKTR.js";import"./label-ESYZa9X8.js";import"./sidebar-BBtDR060.js";import"./LayoutLeft-CtFtWr5A.js";import"./use-mobile-CdSKJGCa.js";import"./sheet-C8Ka_3Bl.js";import"./X-B4zsCxDW.js";import"./Key01-CN4l1Zci.js";import"./extract-connection-data-CAltfKQ-.js";import"./metadata-D72DunRR.js";import"./connection-BUAfkZui.js";import"./Plus-91Je9mAy.js";import"./index-B7iFtRv_.js";import"./index-BnfLIXH4.js";import"./index-BF91oVcr.js";import"./popover-BLlUZ4cA.js";import"./use-virtual-mcp-n3oy3EAh.js";import"./Check-Cu8ZpiXU.js";import"./SearchMd-DwLB0FEi.js";import"./use-create-virtual-mcp-C6KU_yQu.js";import"./use-navigate-to-agent-D3Xn6t_-.js";import"./hooks-roc0TixH.js";import"./backoff-8mStPHYB.js";import"./task-board-CozK5n91.js";import"./schema-BWeXdYUm.js";import"./thread-intent-BTsHDxNw.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01-BUVvNqCT.js";import"./ArrowUp-DOGYG-2d.js";import"./ArrowLeft--sbQIcA4.js";import"./ArrowRight-D3bCXfs3.js";import"./ZoomOut-BHIrcxIe.js";import"./Globe04-hb2fIuJ3.js";import"./CheckCircle-V_B-3A54.js";import"./ChevronUp-fM8pBRMJ.js";import"./UserSquare-DeAUSm2x.js";import"./CreditCard01-0hm82-Yz.js";import"./DotsVertical-CxZAdY1u.js";import"./Eye-Vnu3GFnh.js";import"./Share07-Vq8ntjl8.js";import"./XClose-CSFrevt_.js";import"./Image01-RGU0s9ee.js";import"./Link01-C5_VVVM6.js";import"./LinkExternal01-BXIOuIUa.js";import"./Monitor01-CSVz4TM7.js";import"./Palette-D27CjO4F.js";import"./Trash01-7JyRrrFx.js";import"./Upload01-BJxqsXwZ.js";import"./User01-DlkJQdTb.js";import"./Users01-CCyYZBpM.js";import"./Zap-B5gdN-nI.js";import"./index-hiCS6MSh.js";import"./badge-BNONYRUH.js";import"./mcp-oauth-CoZvf1D5.js";import"./use-panel-navigate-BlZnn1hk.js";import"./thread-route-nE_TboQI.js";import"./use-project-scope-tgoWQS9k.js";import"./autosend-BpkK8bzM.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-fEQpkKFP.js";import"./use-ai-providers-BQNZifYi.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DlgLtEEG.js";import"./use-organization-settings-fbMi-nT-.js";import"./avatar-DaUKcz80.js";import"./download-app-dialog-CTPGH9A6.js";import"./dialog-B-8VCM7c.js";import"./command-BNyvmfvT.js";import"./project-icon-DF-WnAKp.js";import"./required-auth-layout-ClB8hL7Q.js";import"./use-org-sso-DH5rPnv0.js";import"./editor-4IyUFq4u.js";function Oe(s){const e=z.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(X,{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=z.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 zt(s){const e=z.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(ze.Title,{actions:t.jsx(Oe,{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(Oe,{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 Bt(s){const e=z.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(Re,{children:t.jsx(D.Suspense,{fallback:null,children:t.jsx(zt,{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=z.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=Tt(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=kt(),B=At(),{openSidePanel:U}=Et(),H=`${e}:${s}`,L=he({connectionId:e,orgId:k.id,orgSlug:k.slug}),O=Pt({client:L}),N=O.data?.tools?.find(c=>c.name===s),E=jt(N?._meta),_=c=>{if(!q)return;const g=Dt(c.content);g.content.length>0&&(U(),q.sendMessage({tiptapDoc:g}))},[R,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):[],G=be.length>0,Z={};if(G&&N?.inputSchema?.properties)for(const c of be)Z[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=G?{...Z,...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.")})();G&&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,Xe=performance.now(),Ze=Math.round(Xe-c);j(ee),b(P),w(g);const et=JSON.stringify(ee),ve=new TextEncoder().encode(et).length;y({duration:`${Ze}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:It(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:G&&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]??"":Z[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]??"":Z[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enter",{key:c})})]},c)):N?.inputSchema&&!G?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(Ct,{className:"h-3.5 w-3.5 fill-current"}),o("details.tool.executeTool")]})})]}),Ge=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(St,{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:R==="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:R==="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(bt,{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(yt,{className:"h-4 w-4"}),t.jsx(Nt,{className:"mb-0",children:o("details.tool.executionFailed")})]}),t.jsx(vt,{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&&R==="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(X,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:o("details.tool.loadingApp")})]})}),children:t.jsx(gt,{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=>B?.setAppContext(H,c),onTeardown:()=>B?.clearAppContext(H),className:"h-full"})}):x?t.jsxs(t.Fragment,{children:[t.jsx(Ot,{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(wt,{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(ze.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:[O.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):O.isLoading?t.jsx(X,{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:O.isSuccess?"ready":O.isLoading?"connecting":"error"})]}),t.jsx($t,{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}),Ge]})})]})})}function Jt(s){const e=z.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(X,{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:Bt};function qt(){const s=z.c(9),e=Be();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=z.c(52),e=Be();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 B;s[19]!==o||s[20]!==p||s[21]!==r.slug||s[22]!==n.appSlug?(B=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]=B):B=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]!==B||s[27]!==U||s[28]!==A?(H=t.jsx(Ue,{children:t.jsxs(_e,{children:[A,q,B,U]})}),s[26]=B,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 O;s[35]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(ht,{size:36,className:"text-muted-foreground"}),s[35]=O):O=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 R;s[42]!==d||s[43]!==_?(R={onClick:d,children:_},s[42]=d,s[43]=_,s[44]=R):R=s[44];let F;s[45]!==N||s[46]!==E||s[47]!==R?(F=t.jsx(Rt,{icon:O,title:N,description:E,buttonProps:R}),s[45]=N,s[46]=E,s[47]=R,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=z.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 Jo(){const s=z.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Re,{children:t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Jo as default};
|
|
1
|
+
import{c as z,j as t,B as K,h as X,ao as tt,ap as ie,b as W,E as Re,r as D,U as Fe,Y as xe,d8 as st,d7 as Me,an as ot,n as ze,P as ye,u as nt,L as te,t as lt,f as fe,b$ as Be}from"./index-B-RfjkQs.js";import{E as Le}from"./empty-state-DuOhKQcg.js";import{u as he}from"./use-mcp-client-6HSoOGyN.js";import{F as re,a as it,b as ae,d as ce}from"./form-msoIoPH9.js";import{I as ue}from"./input-DgwTyBrI.js";import{T as pe}from"./textarea-BJstaU_4.js";import{D as ge,O as rt,M as at}from"./index-B48I-F_s.js";import{bj as ct,a5 as dt,bt as mt,O as ut,I as pt,J as xt,aN as ft,C as we,as as ht}from"./agent-icon-B4H17A-3.js";import{M as gt}from"./mcp-app-renderer-BF1xjUD_.js";import{g as jt,M as Ce}from"./types-BcA15it5.js";import{a as bt,b as Nt,A as vt}from"./alert-Vv8Gd72t.js";import{S as Ie,b as Te,a as $e,d as Pe,c as de}from"./select-lkzYgXdD.js";import{b as St,c as De,T as ke,a as Ae}from"./tooltip-1YZ9_LEc.js";import{B as Ue,a as _e,b as Y,c as se,d as oe,e as Je}from"./breadcrumb-D3KLnh1b.js";import{i as yt}from"./AlertCircle-CiIF9Yxb.js";import{a as wt}from"./Copy01-CDFMtB2-.js";import{i as Ct}from"./Sun-BwQeSpzv.js";import{g as It}from"./connection-slug-CITJ0kGN.js";import{u as Tt,T as $t}from"./use-mcp-auth-status-DetA28-g.js";import{a as Ve,u as qe}from"./use-connection-B5_J2wP6.js";import{u as Pt}from"./use-mcp-tools-yAkOUoVS.js";import{c as Dt}from"./content-blocks-o63cs2vh.js";import{I as Ee}from"./integration-icon-DuRUAYQY.js";import{f as kt,r as At}from"./chat-context-CypzFnUJ.js";import{a as Et}from"./shell-layout-t1NP6lxk.js";import{M as Ot}from"./monaco-editor-B-WPLOla.js";import{E as Rt}from"./empty-state-C8J78MMg.js";import"./auth-DN1jUXQS.js";import"./label-COhaglCI.js";import"./sidebar-Bsj1oRm2.js";import"./LayoutLeft-DbmxTpPW.js";import"./use-mobile-BA2OXMES.js";import"./sheet-B5VBlNbo.js";import"./X-C49OUFcX.js";import"./Key01--iK_92aj.js";import"./extract-connection-data-BN6Gn7S7.js";import"./metadata-D72DunRR.js";import"./connection-C1Cmv_sz.js";import"./Plus-BeOCeSsu.js";import"./index-CUoS9PHq.js";import"./index-Bv9cknRX.js";import"./index-bU1o14-j.js";import"./popover-DFY37Yvw.js";import"./use-virtual-mcp-CbHEuH0C.js";import"./Check-Cxn5ODoZ.js";import"./SearchMd-CmoIwdFD.js";import"./use-create-virtual-mcp-BHGrzRmt.js";import"./use-navigate-to-agent-B7J0geak.js";import"./hooks-BunFzIMc.js";import"./backoff-8mStPHYB.js";import"./task-board-B1qWBX1A.js";import"./schema-kN4UiUD7.js";import"./thread-intent-Dv_ln6w2.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01-CFPgtTUB.js";import"./ArrowUp-i7W4PLl8.js";import"./ArrowLeft-Cw8zoASu.js";import"./ArrowRight-DXuJxv6z.js";import"./ZoomOut-BCbY44Eu.js";import"./Globe04-BjYimuB_.js";import"./CheckCircle-Cb0ohXc_.js";import"./ChevronUp-B3Rmv2Rm.js";import"./UserSquare-D1SexGLq.js";import"./CreditCard01-Bpp7DUE2.js";import"./DotsVertical-CsphgVVa.js";import"./Eye-BaKrr1k0.js";import"./Share07-BQpOEypi.js";import"./XClose-CKQjrGZS.js";import"./Image01-BokX_Ygh.js";import"./Link01-CwRVjiFm.js";import"./LinkExternal01-C1LIoQUC.js";import"./Monitor01-B-jx6SlO.js";import"./Palette-BZ8zPcQQ.js";import"./Trash01-yjy5Djos.js";import"./Upload01-C3YaZ92x.js";import"./User01-CxY9-OxA.js";import"./Users01-C234jzz1.js";import"./Zap-GTFewWZO.js";import"./index-DNOKSPYL.js";import"./badge-DO3CQ_LV.js";import"./mcp-oauth-CYUMx6Lt.js";import"./use-panel-navigate-ZqAXzPy8.js";import"./thread-route-C2QO3TRR.js";import"./use-project-scope-Hp7aDrht.js";import"./autosend-C9lP7MMD.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-Bk0dyRQ2.js";import"./use-ai-providers-OZaiJf_i.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-CrYWYj1F.js";import"./use-organization-settings-fx1CniIO.js";import"./avatar-CaSFUaWf.js";import"./download-app-dialog-B8fu6N4W.js";import"./dialog-fTIcTyHb.js";import"./command-C0IXiNme.js";import"./project-icon-CsZAOQy_.js";import"./required-auth-layout-Duev8t_N.js";import"./use-org-sso-D0y0H-Wd.js";import"./editor-CStKuO5E.js";function Oe(s){const e=z.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(X,{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=z.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 zt(s){const e=z.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(ze.Title,{actions:t.jsx(Oe,{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(Oe,{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 Bt(s){const e=z.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(Re,{children:t.jsx(D.Suspense,{fallback:null,children:t.jsx(zt,{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=z.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=Tt(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=kt(),B=At(),{openSidePanel:U}=Et(),H=`${e}:${s}`,L=he({connectionId:e,orgId:k.id,orgSlug:k.slug}),O=Pt({client:L}),N=O.data?.tools?.find(c=>c.name===s),E=jt(N?._meta),_=c=>{if(!q)return;const g=Dt(c.content);g.content.length>0&&(U(),q.sendMessage({tiptapDoc:g}))},[R,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):[],G=be.length>0,Z={};if(G&&N?.inputSchema?.properties)for(const c of be)Z[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=G?{...Z,...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.")})();G&&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,Xe=performance.now(),Ze=Math.round(Xe-c);j(ee),b(P),w(g);const et=JSON.stringify(ee),ve=new TextEncoder().encode(et).length;y({duration:`${Ze}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:It(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:G&&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]??"":Z[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]??"":Z[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enter",{key:c})})]},c)):N?.inputSchema&&!G?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(Ct,{className:"h-3.5 w-3.5 fill-current"}),o("details.tool.executeTool")]})})]}),Ge=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(St,{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:R==="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:R==="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(bt,{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(yt,{className:"h-4 w-4"}),t.jsx(Nt,{className:"mb-0",children:o("details.tool.executionFailed")})]}),t.jsx(vt,{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&&R==="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(X,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:o("details.tool.loadingApp")})]})}),children:t.jsx(gt,{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=>B?.setAppContext(H,c),onTeardown:()=>B?.clearAppContext(H),className:"h-full"})}):x?t.jsxs(t.Fragment,{children:[t.jsx(Ot,{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(wt,{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(ze.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:[O.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):O.isLoading?t.jsx(X,{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:O.isSuccess?"ready":O.isLoading?"connecting":"error"})]}),t.jsx($t,{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}),Ge]})})]})})}function Jt(s){const e=z.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(X,{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:Bt};function qt(){const s=z.c(9),e=Be();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=z.c(52),e=Be();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 B;s[19]!==o||s[20]!==p||s[21]!==r.slug||s[22]!==n.appSlug?(B=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]=B):B=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]!==B||s[27]!==U||s[28]!==A?(H=t.jsx(Ue,{children:t.jsxs(_e,{children:[A,q,B,U]})}),s[26]=B,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 O;s[35]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(ht,{size:36,className:"text-muted-foreground"}),s[35]=O):O=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 R;s[42]!==d||s[43]!==_?(R={onClick:d,children:_},s[42]=d,s[43]=_,s[44]=R):R=s[44];let F;s[45]!==N||s[46]!==E||s[47]!==R?(F=t.jsx(Rt,{icon:O,title:N,description:E,buttonProps:R}),s[45]=N,s[46]=E,s[47]=R,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=z.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 Jo(){const s=z.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Re,{children:t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Jo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as R,b as S,j as s,G as z,l as A,F as V,B as $,H as E,I as _}from"./index-
|
|
1
|
+
import{c as R,b as S,j as s,G as z,l as A,F as V,B as $,H as E,I as _}from"./index-B-RfjkQs.js";import{i as I,n as L}from"./ArrowUp-i7W4PLl8.js";import{i as F}from"./Check-Cxn5ODoZ.js";import{a as O,i as P,c as Y}from"./XClose-CKQjrGZS.js";import{T as G,a as H,b as K,c as W}from"./tooltip-1YZ9_LEc.js";import{V as q}from"./view-mode-toggle-CJHrx4Q2.js";import{B as J}from"./badge-DO3CQ_LV.js";const M=[];function oe(t){const e=R.c(35),{viewMode:i,onViewModeChange:h,sortKey:T,sortDirection:g,onSort:j,sortOptions:B,filters:D}=t,b=B===void 0?M:B,o=D===void 0?M:D,l=S();let v;e[0]!==o?(v=o.filter(U),e[0]=o,e[1]=v):v=e[1];const N=v.length;let r;e[2]!==l?(r=l("collections.collectionDisplayButton.displayAndFilters"),e[2]=l,e[3]=r):r=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(O,{size:16}),e[4]=w):w=e[4];let n;e[5]!==N?(n=N>0&&s.jsx(J,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[5]=N,e[6]=n):n=e[6];let a;e[7]!==r||e[8]!==n?(a=s.jsx(G,{asChild:!0,children:s.jsx(V,{asChild:!0,children:s.jsxs($,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=a):a=e[9];let c;e[10]!==l?(c=l("collections.collectionDisplayButton.displayAndFilters"),e[10]=l,e[11]=c):c=e[11];let d;e[12]!==c?(d=s.jsx(H,{children:c}),e[12]=c,e[13]=d):d=e[13];let x;e[14]!==a||e[15]!==d?(x=s.jsx(K,{children:s.jsxs(W,{children:[a,d]})}),e[14]=a,e[15]=d,e[16]=x):x=e[16];let m;e[17]!==h||e[18]!==i?(m=h&&i&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:i,onValueChange:h,fullWidth:!0,options:[{value:"table",icon:s.jsx(P,{})},{value:"cards",icon:s.jsx(Y,{})}]})}),e[17]=h,e[18]=i,e[19]=m):m=e[19];let p;e[20]!==j||e[21]!==g||e[22]!==T||e[23]!==b||e[24]!==l?(p=b.length>0&&j&&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:l("collections.collectionDisplayButton.sortBy")}),b.map(C=>{const k=T===C.id;return s.jsx(z,{onClick:()=>j(C.id),className:A("h-8 px-2 py-0 cursor-pointer",k&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[k&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!k&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:C.label}),k&&g&&(g==="asc"?s.jsx(I,{size:16,className:"text-foreground shrink-0"}):s.jsx(L,{size:16,className:"text-foreground shrink-0"}))]})},C.id)})]}),e[20]=j,e[21]=g,e[22]=T,e[23]=b,e[24]=l,e[25]=p):p=e[25];let u;e[26]!==o?(u=o.map(Q),e[26]=o,e[27]=u):u=e[27];let f;e[28]!==m||e[29]!==p||e[30]!==u?(f=s.jsxs(E,{align:"end",className:"w-[200px] p-0 gap-0",children:[m,p,u]}),e[28]=m,e[29]=p,e[30]=u,e[31]=f):f=e[31];let y;return e[32]!==x||e[33]!==f?(y=s.jsxs(_,{children:[x,f]}),e[32]=x,e[33]=f,e[34]=y):y=e[34],y}function Q(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 i=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:A("h-8 px-2 py-0 cursor-pointer",i&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[i&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!i&&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 U(t){return t.value!=="ALL"}export{oe 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-B-RfjkQs.js";import{i as C}from"./SearchMd-CmoIwdFD.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 n,l as y,b as D}from"./index-
|
|
1
|
+
import{c as S,j as n,l as y,b as D}from"./index-B-RfjkQs.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-EewUoElk.js";import{i as W,n as z}from"./ArrowUp-i7W4PLl8.js";function L(C){const e=S.c(31),{columns:o,data:u,sortKey:x,sortDirection:i,onSort:c,onRowClick:l,rowClassName:m}=C;let p;e[0]!==i?(p=function(t,b){return n.jsx("div",{className:"w-4 flex items-center justify-center",children:b&&i&&(i==="asc"?n.jsx(W,{size:16,className:"text-muted-foreground transition-colors"}):n.jsx(z,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=i,e[1]=p):p=e[1];const h=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,b){let g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===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 v=d;let s;if(e[3]!==o||e[4]!==c||e[5]!==h||e[6]!==i||e[7]!==x){let f;e[9]!==o.length||e[10]!==c||e[11]!==h||e[12]!==i||e[13]!==x?(f=(t,b)=>{const g=x===t.id,r=t.sortable&&c;return n.jsx(I,{className:y(v(b,o.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":g&&i?i==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r?()=>c(t.id):void 0,onKeyDown:r?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c(t.id))}:void 0,children:n.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&h(t.id,g)]})},t.id)},e[9]=o.length,e[10]=c,e[11]=h,e[12]=i,e[13]=x,e[14]=f):f=e[14],s=o.map(f),e[3]=o,e[4]=c,e[5]=h,e[6]=i,e[7]=x,e[8]=s}else s=e[8];let a;e[15]!==s?(a=n.jsx(R,{className:"border-b-0",children:n.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:s})}),e[15]=s,e[16]=a):a=e[16];let j;if(e[17]!==o||e[18]!==u||e[19]!==l||e[20]!==m){let f;e[22]!==o||e[23]!==l||e[24]!==m?(f=(t,b)=>{const g=m?.(t);return n.jsx(T,{"data-row-index":b,className:y("group/data-row transition-colors border-b-0 hover:bg-accent/50",l?"cursor-pointer":"",g),role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l?()=>l(t):void 0,onKeyDown:l?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),l(t))}:void 0,children:o.map(r=>n.jsx(E,{className:y("px-5 py-4 h-16 align-middle text-sm text-foreground",r.cellClassName,r.wrap?"whitespace-normal wrap-break-word":""),children:n.jsx("div",{className:y(r.wrap?"w-full":"min-w-0 w-full",!r.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:r.render?r.render(t):r.accessor?r.accessor(t):null})},r.id))},b)},e[22]=o,e[23]=l,e[24]=m,e[25]=f):f=e[25],j=u.map(f),e[17]=o,e[18]=u,e[19]=l,e[20]=m,e[21]=j}else j=e[21];let w;e[26]!==j?(w=n.jsx(H,{children:j}),e[26]=j,e[27]=w):w=e[27];let N;return e[28]!==a||e[29]!==w?(N=n.jsxs(K,{className:"w-full border-collapse",children:[a,w]}),e[28]=a,e[29]=w,e[30]=N):N=e[30],N}function F(C){const e=S.c(16),{columns:o,data:u,isLoading:x,sortKey:i,sortDirection:c,onSort:l,onRowClick:m,emptyState:p}=C,h=x===void 0?!1:x,d=D();if(h){let s;e[0]!==d?(s=d("collections.collectionTableWrapper.loading"),e[0]=d,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=a):a=e[3],a}if(u.length===0){let s;e[4]!==p||e[5]!==d?(s=p||n.jsx("div",{className:"text-center py-12 text-muted-foreground",children:d("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=d,e[6]=s):s=e[6];let a;return e[7]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=a):a=e[8],a}let v;return e[9]!==o||e[10]!==u||e[11]!==m||e[12]!==l||e[13]!==c||e[14]!==i?(v=n.jsx("div",{className:"flex-1",children:n.jsx(L,{columns:o,data:u,sortKey:i,sortDirection:c,onSort:l,onRowClick:m})}),e[9]=o,e[10]=u,e[11]=m,e[12]=l,e[13]=c,e[14]=i,e[15]=v):v=e[15],v}export{F as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g,U as j,j as u,n as h,P as T,b as C,l as b}from"./index-
|
|
1
|
+
import{c as g,U as j,j as u,n as h,P as T,b as C,l as b}from"./index-B-RfjkQs.js";import{B as v}from"./badge-DO3CQ_LV.js";function y(f){const e=g.c(13),{tabs:o,activeTab:t,onTabChange:s,className:m,placement:x}=f,i=x===void 0?"inline":x;let n;if(e[0]!==t||e[1]!==s||e[2]!==o){let l;e[4]!==t||e[5]!==s?(l=c=>{const p=t===c.id;return u.jsxs(h.Tab,{active:p,onClick:()=>s(c.id),children:[c.label,c.count!==void 0&&u.jsx(v,{variant:"secondary",className:b("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:c.count})]},c.id)},e[4]=t,e[5]=s,e[6]=l):l=e[6],n=o.map(l),e[0]=t,e[1]=s,e[2]=o,e[3]=n}else n=e[3];let r;e[7]!==m||e[8]!==n?(r=u.jsx(h.Tabs,{className:m,children:n}),e[7]=m,e[8]=n,e[9]=r):r=e[9];const a=r;let d;return e[10]!==a||e[11]!==i?(d=i==="page"?u.jsx(T.Toolbar.Left.Portal,{fallback:a,children:a}):a,e[10]=a,e[11]=i,e[12]=d):d=e[12],d}function N(f){const e=g.c(15),{tabs:o,activeTab:t,onTabChange:s,className:m}=f,x=C();let i;e[0]!==x?(i=x("collections.collectionTabs.tabList"),e[0]=x,e[1]=i):i=e[1];let n;e[2]!==m?(n=b("flex items-center gap-2 overflow-x-auto no-scrollbar",m),e[2]=m,e[3]=n):n=e[3];let r;if(e[4]!==t||e[5]!==s||e[6]!==o){let d;e[8]!==t||e[9]!==s?(d=l=>{const c=t===l.id;return u.jsxs("button",{type:"button","aria-pressed":c,onClick:()=>s(l.id),className:b("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex gap-1.5 items-center",c&&"bg-accent border-border text-foreground",!c&&"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:[l.label,l.count!==void 0&&u.jsx(v,{variant:"secondary",className:b("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",c?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:l.count})]},l.id)},e[8]=t,e[9]=s,e[10]=d):d=e[10],r=o.map(d),e[4]=t,e[5]=s,e[6]=o,e[7]=r}else r=e[7];let a;return e[11]!==i||e[12]!==n||e[13]!==r?(a=u.jsx("nav",{"aria-label":i,className:n,children:r}),e[11]=i,e[12]=n,e[13]=r,e[14]=a):a=e[14],a}function w(f){const e=g.c(3),o=j();let t;return e[0]!==o||e[1]!==f?(t=o?u.jsx(y,{...f}):u.jsx(N,{...f}),e[0]=o,e[1]=f,e[2]=t):t=e[2],t}export{w as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as J,r as K,j as s,l as y,B as Q}from"./index-
|
|
1
|
+
import{c as J,r as K,j as s,l as y,B as Q}from"./index-B-RfjkQs.js";import{i as U}from"./Check-Cxn5ODoZ.js";import{i as V}from"./Tool01-CFPgtTUB.js";import{e as W,C as X,b as Y,a as Z,c as _,d as ee}from"./command-C0IXiNme.js";import{a as se,P as te,b as le}from"./popover-DFY37Yvw.js";function ne(q){const e=J.c(45),{options:j,value:l,onChange:v,placeholder:R,triggerClassName:$,contentClassName:N,width:A,renderTrigger:F,renderItem:r,emptyMessage:G,searchPlaceholder:L,filter:S,renderSearchAction:w}=q,z=R===void 0?"Select...":R,D=A===void 0?"w-[200px]":A,P=G===void 0?"No results found.":G,E=L===void 0?"Search...":L;let C;e[0]!==l?(C=x=>x.value===l,e[0]=l,e[1]=C):C=e[1];const T=j.find(C),[I,t]=K.useState(!1),O=te,B=se,H=!0,M=F?s.jsx("div",{className:y("cursor-pointer",$),children:F(T)}):s.jsxs(Q,{variant:"outline",role:"combobox",className:y("justify-between",D,$),children:[T?T.label:z,s.jsx(V,{className:"opacity-50"})]});let o;e[2]!==B||e[3]!==M?(o=s.jsx(B,{asChild:H,children:M}),e[2]=B,e[3]=M,e[4]=o):o=e[4];let i;e[5]!==N?(i=y("p-0",N),e[5]=N,e[6]=i):i=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g={width:"var(--radix-popover-trigger-width)"},e[7]=g):g=e[7];let c;e[8]!==w||e[9]!==t?(c=w?.(()=>t(!1)),e[8]=w,e[9]=t,e[10]=c):c=e[10];let n;e[11]!==E||e[12]!==c?(n=s.jsx(W,{placeholder:E,className:"h-9",action:c}),e[11]=E,e[12]=c,e[13]=n):n=e[13];let m;e[14]!==P?(m=s.jsx(X,{children:P}),e[14]=P,e[15]=m):m=e[15];let d;if(e[16]!==v||e[17]!==j||e[18]!==r||e[19]!==t||e[20]!==l){let x;e[22]!==v||e[23]!==r||e[24]!==t||e[25]!==l?(x=a=>{const k=l===a.value;return s.jsx(Y,{value:a.label,onSelect:()=>{v(a.value===l?"":a.value),t(!1)},children:r?r(a,k):s.jsxs(s.Fragment,{children:[a.label,s.jsx(U,{className:y("ml-auto",k?"opacity-100":"opacity-0")})]})},a.value)},e[22]=v,e[23]=r,e[24]=t,e[25]=l,e[26]=x):x=e[26],d=j.map(x),e[16]=v,e[17]=j,e[18]=r,e[19]=t,e[20]=l,e[21]=d}else d=e[21];let h;e[27]!==d?(h=s.jsx(Z,{children:d}),e[27]=d,e[28]=h):h=e[28];let p;e[29]!==m||e[30]!==h?(p=s.jsxs(_,{children:[m,h]}),e[29]=m,e[30]=h,e[31]=p):p=e[31];let f;e[32]!==S||e[33]!==n||e[34]!==p?(f=s.jsxs(ee,{filter:S,children:[n,p]}),e[32]=S,e[33]=n,e[34]=p,e[35]=f):f=e[35];let u;e[36]!==f||e[37]!==i?(u=s.jsx(le,{className:i,style:g,children:f}),e[36]=f,e[37]=i,e[38]=u):u=e[38];let b;return e[39]!==O||e[40]!==I||e[41]!==t||e[42]!==u||e[43]!==o?(b=s.jsxs(O,{open:I,onOpenChange:t,children:[o,u]}),e[39]=O,e[40]=I,e[41]=t,e[42]=u,e[43]=o,e[44]=b):b=e[44],b}export{ne as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,l as u,j as n,aD as j}from"./index-
|
|
1
|
+
import{c as f,l as u,j as n,aD as j}from"./index-B-RfjkQs.js";import{_ as x}from"./index-bU1o14-j.js";import{D as b,d as w,h as y,c as C,b as D}from"./dialog-fTIcTyHb.js";import{i as z}from"./SearchMd-CmoIwdFD.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(x,{"data-slot":"command",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function R(a){const e=f.c(28);let t,s,l,o,g,i,d;e[0]!==a?({title:i,description:d,children:t,className:s,filter:l,shouldFilter:g,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=g,e[6]=i,e[7]=d):(t=e[1],s=e[2],l=e[3],o=e[4],g=e[5],i=e[6],d=e[7]);const p=i===void 0?"Command Palette":i,m=d===void 0?"Search for a command to run...":d;let r;e[8]!==p?(r=n.jsx(w,{children:p}),e[8]=p,e[9]=r):r=e[9];let c;e[10]!==m?(c=n.jsx(y,{children:m}),e[10]=m,e[11]=c):c=e[11];let h;e[12]!==r||e[13]!==c?(h=n.jsxs(C,{className:"sr-only",children:[r,c]}),e[12]=r,e[13]=c,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]!==g?(v=n.jsx($,{filter:l,shouldFilter:g,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]=g,e[20]=v):v=e[20];let k;e[21]!==_||e[22]!==v?(k=n.jsx(D,{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 V(a){const e=f.c(18);let t,s,l,o;e[0]!==a?({className:s,size:o,action:t,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);const i=(o===void 0?"default":o)==="sm"?"h-9":"h-10";let d;e[5]!==i?(d=u("flex items-center gap-2 border-b px-3",i),e[5]=i,e[6]=d):d=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(z,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=p):p=e[7];let m;e[8]!==s||e[9]!==i?(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",i,s),e[8]=s,e[9]=i,e[10]=m):m=e[10];let r;e[11]!==l||e[12]!==m?(r=n.jsx(x.Input,{"data-slot":"command-input",className:m,...l}),e[11]=l,e[12]=m,e[13]=r):r=e[13];let c;return e[14]!==t||e[15]!==d||e[16]!==r?(c=n.jsxs("div",{"data-slot":"command-input-wrapper",className:d,children:[p,r,t]}),e[14]=t,e[15]=d,e[16]=r,e[17]=c):c=e[17],c}function B(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(x.List,{"data-slot":"command-list",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function F(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(x.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(x.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(x.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(x.Item,{"data-slot":"command-item",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}export{F as C,H as a,T as b,B as c,$ as d,V as e,R as f,I as g,P as h};
|
package/dist/client/assets/{companion-mcps-section-Cwou5hHH.js → companion-mcps-section-BiiIWMdJ.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-B-RfjkQs.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-6HSoOGyN.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-dh23z2e4.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,4 +1,4 @@
|
|
|
1
|
-
import{c as _,b as B,r as D,l as ee,j as s,fr as te,Y as se,ad as ne,Z as ie,B as F,t as Y,eL as oe,dX as le,al as ae}from"./index-
|
|
1
|
+
import{c as _,b as B,r as D,l as ee,j as s,fr as te,Y as se,ad as ne,Z as ie,B as F,t as Y,eL as oe,dX as le,al as ae}from"./index-B-RfjkQs.js";import{a as re,A as ce}from"./alert-Vv8Gd72t.js";import{a as de,b as ue,c as V,d as me,S as pe}from"./select-lkzYgXdD.js";import{T as fe,c as xe,a as ge,b as he}from"./tabs-Dn00_KeP.js";import{u as q}from"./use-copy-B6plqh15.js";import{i as J}from"./Check-Cxn5ODoZ.js";import{a as Z}from"./Copy01-CDFMtB2-.js";import{i as ye}from"./Key01--iK_92aj.js";import{i as Ce}from"./Link01-CwRVjiFm.js";import{C as je,a as be,b as ve}from"./client-icons-DeH3wN29.js";import{u as we,a as Ne,A as $e}from"./api-keys-Ct4yGdka.js";import{R as ke}from"./require-capability-BlL45yDc.js";import"./index-DNOKSPYL.js";import"./ChevronUp-B3Rmv2Rm.js";import"./AlertCircle-CiIF9Yxb.js";import"./Plus-BeOCeSsu.js";import"./Trash01-yjy5Djos.js";import"./alert-dialog-p_yxBHYu.js";import"./dialog-fTIcTyHb.js";import"./X-C49OUFcX.js";import"./input-DgwTyBrI.js";import"./label-COhaglCI.js";import"./use-mcp-client-6HSoOGyN.js";import"./auth-DN1jUXQS.js";import"./access-gate-BWJ5-fyg.js";import"./capability-load-error-nzBIi4Tr.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
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,b as N,j as s,a8 as w,al as k,B as y}from"./index-
|
|
1
|
+
import{c as v,b as N,j as s,a8 as w,al as k,B as y}from"./index-B-RfjkQs.js";import{i as z}from"./X-C49OUFcX.js";import{aB as _,at as C}from"./agent-icon-B4H17A-3.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 c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=c):c=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:[c,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let a;return t[10]!==o||t[11]!==i?(a=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=a):a=t[12],a}function M(){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 c;t[6]!==o?(c={Icon:w,label:o},t[6]=o,t[7]=c):c=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 a;t[12]!==n||t[13]!==c||t[14]!==i?(a=[n,c,i],t[12]=n,t[13]=c,t[14]=i,t[15]=a):a=t[15];const m=a;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(q)})]}),t[17]=m,t[18]=d):d=t[18],d}function q(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:c}=t,r=N(),i=l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null;let a;e[0]!==o||e[1]!==r?(a=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]=a):a=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]!==c||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,c,g]}),e[12]=c,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(M,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==a||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[a,h,p]}),e[19]=a,e[20]=h,e[21]=j):j=e[21],j}function B(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:c,children:r}=t,i=n||!l,a=l&&!n?r:null;let m;return e[0]!==o||e[1]!==c||e[2]!==i||e[3]!==a?(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:c,disabled:i,children:[o,a]}),e[0]=o,e[1]=c,e[2]=i,e[3]=a,e[4]=m):m=e[4],m}export{A as C,B as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ao as o,bN as a,bO as t,ap as e,bP as i,bQ as r,cW as p,dB as b,cS as m}from"./index-
|
|
1
|
+
import{ao as o,bN as a,bO as t,ap as e,bP as i,bQ as r,cW as p,dB as b,cS as m}from"./index-B-RfjkQs.js";const h=o({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:t(e()),grantType:a(["authorization_code","client_credentials"])}),s=o({type:p("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),_=b.extend({inputSchema:s,outputSchema:s.optional()}),f=o({headers:i(e(),e()).optional()}),g=o({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:t(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:i(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),d=256*1024;function l(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=d,{message:`${n} must serialize to at most ${d} bytes`})}const u=o({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),slug:e().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),connection_type:a(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:m([g,f]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:h.nullable().describe("OAuth configuration"),configuration_state:l("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:l("metadata").describe("Additional metadata (includes repository info)"),tools:t(_).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});u.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:e().nullish()});u.partial();function T(n){return n!=null&&"command"in n}function y(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{h as O,T as i,y as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,Y as S,a4 as $,K as F,a6 as R,b as K,l as A,j as c,eL as q}from"./index-
|
|
1
|
+
import{c as M,Y as S,a4 as $,K as F,a6 as R,b as K,l as A,j as c,eL as q}from"./index-B-RfjkQs.js";import{u as O}from"./useInfiniteQuery-CEwPAAtp.js";import{g as D}from"./connection-slug-CITJ0kGN.js";import{I as Y}from"./integration-icon-DuRUAYQY.js";function X(t){const e=M.c(21),{org:s}=S(),o=$();let l;e[0]!==t?(l=t?.trim().split(/\s+/).filter(Boolean)??[],e[0]=t,e[1]=l):l=e[1];const r=l;let n;e[2]!==s.id||e[3]!==t?(n=F.storeDiscovery(s.id,`deco-json:${t??""}`),e[2]=s.id,e[3]=t,e[4]=n):n=e[4];let a;e[5]!==o||e[6]!==r?(a=I=>{const{pageParam:L}=I;return o.call("COLLECTION_REGISTRY_APP_LIST",{limit:24,cursor:L,where:r.length?{operator:"or",conditions:r.flatMap(B)}:void 0})},e[5]=o,e[6]=r,e[7]=a):a=e[7];let u;e[8]!==n||e[9]!==a?(u={queryKey:n,queryFn:a,initialPageParam:void 0,getNextPageParam:z,staleTime:3e5,placeholderData:R,throwOnError:!0},e[8]=n,e[9]=a,e[10]=u):u=e[10];const i=O(u);let p;e[11]!==i.data?.pages?(p=i.data?.pages.flatMap(V)??[],e[11]=i.data?.pages,e[12]=p):p=e[12];const m=p;let f;e[13]!==i?(f=()=>{i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},e[13]=i,e[14]=f):f=e[14];let d;return e[15]!==m||e[16]!==i.hasNextPage||e[17]!==i.isFetchingNextPage||e[18]!==i.isLoading||e[19]!==f?(d={items:m,hasMore:i.hasNextPage,isLoadingMore:i.isFetchingNextPage,isInitialLoading:i.isLoading,loadMore:f},e[15]=m,e[16]=i.hasNextPage,e[17]=i.isFetchingNextPage,e[18]=i.isLoading,e[19]=f,e[20]=d):d=e[20],d}function V(t){return t.items}function z(t){return t.nextCursor}function B(t){return[["title"],["description"],["id"],["server","name"]].map(e=>({field:e,operator:"contains",value:t}))}function Z(t){const e=new Map;for(const l of t){const r=D(l),n=e.get(r);n?n.push(l):e.set(r,[l])}const s=[],o=new Set;for(const l of t){const r=D(l);if(o.has(r))continue;o.add(r);const n=e.get(r),a=n[0];n.length===1?s.push({type:"single",connection:a}):s.push({type:"group",key:r,icon:a.icon,title:a.app_name?a.title.replace(/\s*\(\d+\)\s*$/,""):a.title,connections:n})}return s}function ee(t){const e=M.c(43),{connection:s,onClick:o,headerActions:l,headerActionsAlwaysVisible:r,footer:n,className:a,fallbackIcon:u,selected:i}=t,p=r===void 0?!1:r,m=K(),f=o&&"cursor-pointer hover:bg-muted/50";let d;e[0]!==a||e[1]!==f?(d=A("transition-colors group overflow-hidden flex flex-col h-full",f,a),e[0]=a,e[1]=f,e[2]=d):d=e[2];const I=o?"button":void 0,L=o?0:void 0,T=o&&i!==void 0?i:void 0;let g;e[3]!==o?(g=o?_=>{_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),o())}:void 0,e[3]=o,e[4]=g):g=e[4];let x;e[5]!==s.icon||e[6]!==s.title||e[7]!==u?(x=c.jsx(Y,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:u}),e[5]=s.icon,e[6]=s.title,e[7]=u,e[8]=x):x=e[8];let h;e[9]!==l||e[10]!==p?(h=l&&c.jsx("div",{className:A("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:Q,children:l}),e[9]=l,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==h?(v=c.jsx("div",{className:"relative",children:h}),e[12]=h,e[13]=v):v=e[13];let N;e[14]!==v||e[15]!==x?(N=c.jsxs("div",{className:"flex items-start justify-between",children:[x,v]}),e[14]=v,e[15]=x,e[16]=N):N=e[16];let y;e[17]!==s.title?(y=c.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[17]=s.title,e[18]=y):y=e[18];let P;e[19]!==s.description||e[20]!==m?(P=s.description||m("connections.connectionCard.noDescription"),e[19]=s.description,e[20]=m,e[21]=P):P=e[21];let j;e[22]!==P?(j=c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=j):j=e[23];let C;e[24]!==y||e[25]!==j?(C=c.jsxs("div",{className:"flex flex-col gap-1",children:[y,j]}),e[24]=y,e[25]=j,e[26]=C):C=e[26];let b;e[27]!==N||e[28]!==C?(b=c.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,C]}),e[27]=N,e[28]=C,e[29]=b):b=e[29];let k;e[30]!==n?(k=n&&c.jsx("div",{className:"border-t border-border mt-auto",children:c.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:G,children:n})}),e[30]=n,e[31]=k):k=e[31];let w;e[32]!==b||e[33]!==k?(w=c.jsxs("div",{className:"flex flex-col flex-1",children:[b,k]}),e[32]=b,e[33]=k,e[34]=w):w=e[34];let E;return e[35]!==o||e[36]!==w||e[37]!==d||e[38]!==I||e[39]!==L||e[40]!==T||e[41]!==g?(E=c.jsx(q,{className:d,onClick:o,role:I,tabIndex:L,"aria-pressed":T,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=d,e[38]=I,e[39]=L,e[40]=T,e[41]=g,e[42]=E):E=e[42],E}function G(t){return t.stopPropagation()}function Q(t){return t.stopPropagation()}export{ee as C,Z as g,X as u};
|