decocms 4.390.3 → 4.390.4
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-Plbq3B-q.js → AlertCircle-iVRTcaBg.js} +1 -1
- package/dist/client/assets/{AreaChart-B_NHmXx3.js → AreaChart-vGEKzI4F.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DrGT8UWu.js → ArrowLeft-DfZNe3Vl.js} +1 -1
- package/dist/client/assets/{ArrowRight-CbriRBrq.js → ArrowRight-CswoMXm3.js} +1 -1
- package/dist/client/assets/{ArrowUp-6u2hUOnH.js → ArrowUp-ZHCqKDUA.js} +1 -1
- package/dist/client/assets/{CartesianChart-COgbk__t.js → CartesianChart-_SxUX3gE.js} +1 -1
- package/dist/client/assets/{Check-C99gsNHm.js → Check-ocmT1xhM.js} +1 -1
- package/dist/client/assets/{CheckCircle-CKcxanRZ.js → CheckCircle-BmHBdTYn.js} +1 -1
- package/dist/client/assets/{ChevronUp-DSQ_1BER.js → ChevronUp-BEGO8LAp.js} +1 -1
- package/dist/client/assets/{Copy01-BenS5ro_.js → Copy01-Djl84HjT.js} +1 -1
- package/dist/client/assets/{CreditCard01-YK1yCS4W.js → CreditCard01-DA21YZ9t.js} +1 -1
- package/dist/client/assets/{DotsVertical-CQ6LBNOP.js → DotsVertical-GP-H6-nS.js} +1 -1
- package/dist/client/assets/{Download01-Bp4nnCQ1.js → Download01-CQZ78LGI.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CIx228C0.js → ErrorBarContext-CU0G222G.js} +1 -1
- package/dist/client/assets/{Eye-DbFIyI2n.js → Eye-CNk4ml55.js} +1 -1
- package/dist/client/assets/{Globe04-CGVAMpAe.js → Globe04-B3-IlgJ4.js} +1 -1
- package/dist/client/assets/{Image01-BggoPRkg.js → Image01-zHW5odO5.js} +1 -1
- package/dist/client/assets/{Key01-BV_ymGg3.js → Key01-BCjLeK7M.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DpIebcC-.js → LayoutLeft-dzqHSKuH.js} +1 -1
- package/dist/client/assets/{Line-DmECL8mT.js → Line-BPNz1hy-.js} +1 -1
- package/dist/client/assets/{Link01-OIIXb7cI.js → Link01-CBc36KC8.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CPCL9Cco.js → LinkExternal01-JGUyp91x.js} +1 -1
- package/dist/client/assets/{Monitor01-CDgu8CIt.js → Monitor01-DMBIX-hP.js} +1 -1
- package/dist/client/assets/{Package-Ci_Iuppc.js → Package-VT7-ZGoy.js} +1 -1
- package/dist/client/assets/{Palette-IB6rbtm1.js → Palette-CPW0a6wF.js} +1 -1
- package/dist/client/assets/{Plus-40Vqbuez.js → Plus-ojokEQ8x.js} +1 -1
- package/dist/client/assets/{SearchLg-CAy6qghA.js → SearchLg-C-i1c0zU.js} +1 -1
- package/dist/client/assets/{SearchMd-kVGeqQ7a.js → SearchMd-MG_xST09.js} +1 -1
- package/dist/client/assets/{Sector-BvGNn9CG.js → Sector-DLq_M76x.js} +1 -1
- package/dist/client/assets/{Share07-CcQxNSX3.js → Share07-uQomrLCR.js} +1 -1
- package/dist/client/assets/{Stars01-BMd1nnPj.js → Stars01-DxtRb5WZ.js} +1 -1
- package/dist/client/assets/{Sun-Be8FNPF2.js → Sun-BEdjuN6j.js} +1 -1
- package/dist/client/assets/{Tool01-C-oe4aXW.js → Tool01-COB6rywP.js} +1 -1
- package/dist/client/assets/{Trash01-Byz0_Sy5.js → Trash01-DTUu7NOU.js} +1 -1
- package/dist/client/assets/{Upload01-C2s_RH4H.js → Upload01-Dty36l1w.js} +1 -1
- package/dist/client/assets/{User01-XeAWOYXy.js → User01-BSto60sn.js} +1 -1
- package/dist/client/assets/{UserSquare-D-qt0de_.js → UserSquare-C8brDzYe.js} +1 -1
- package/dist/client/assets/{Users01-C3on152s.js → Users01-CxwIEg0g.js} +1 -1
- package/dist/client/assets/{X-RprAX0Ua.js → X-B5gw2EHv.js} +1 -1
- package/dist/client/assets/{XCircle-CQMzne_o.js → XCircle-seVaST6e.js} +1 -1
- package/dist/client/assets/{XClose-CVQLXZni.js → XClose-B5O4OZct.js} +1 -1
- package/dist/client/assets/{Zap-DzoV5VQ9.js → Zap-D7YN1rKW.js} +1 -1
- package/dist/client/assets/{ZoomOut-BWCMlmIP.js → ZoomOut-qVaUZ9ca.js} +1 -1
- package/dist/client/assets/{access-gate-Bgyfx_br.js → access-gate-BIKeQRL_.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DXEwYeqS.js → add-connection-dialog-BCh8Kz04.js} +1 -1
- package/dist/client/assets/{agent-analytics-BuqEjr-s.js → agent-analytics--KcDdN57.js} +1 -1
- package/dist/client/assets/agent-app-Br6aux_w.js +1 -0
- package/dist/client/assets/{agent-assets-D1tKS8pa.js → agent-assets-CB6ZSzqA.js} +1 -1
- package/dist/client/assets/{agent-automation-DSMp2kQn.js → agent-automation-B57x68Um.js} +1 -1
- package/dist/client/assets/{agent-automations-vUhw7tV_.js → agent-automations-DsNAcyrP.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-_vAJW22D.js → agent-connect-sources-D1XyNIWt.js} +1 -1
- package/dist/client/assets/agent-deck-Vhc8akKy.js +1 -0
- package/dist/client/assets/{agent-e2e-Bga4rsrF.js → agent-e2e-DPPSPIQv.js} +1 -1
- package/dist/client/assets/{agent-experiments-B7PIi2l-.js → agent-experiments-CMIDfL0o.js} +1 -1
- package/dist/client/assets/agent-file-BJobJMYY.js +1 -0
- package/dist/client/assets/{agent-git-DBDT-hIL.js → agent-git-BBWRyZCE.js} +1 -1
- package/dist/client/assets/{agent-hosting-CjnG0XIl.js → agent-hosting-BIMxJVDi.js} +1 -1
- package/dist/client/assets/{agent-icon-yvE2OrmS.js → agent-icon-BsnTrJjJ.js} +1 -1
- package/dist/client/assets/agent-library-file-SIskwRA5.js +1 -0
- package/dist/client/assets/{agent-monitor-BDXfL2vI.js → agent-monitor-CbmXFCNk.js} +1 -1
- package/dist/client/assets/{agent-overview-UpXocDJH.js → agent-overview-BPW1OhWv.js} +1 -1
- package/dist/client/assets/agent-settings-CzdAFelD.js +1 -0
- package/dist/client/assets/agent-site-editor-code-tjytfPRA.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-DgrOyzJ9.js → agent-site-editor-content-Y18YyEWw.js} +2 -2
- package/dist/client/assets/{agent-site-editor-CzhIp9D-.js → agent-site-editor-m4t0aVDo.js} +1 -1
- package/dist/client/assets/{agent-site-editor-preview-CBi5Tbv1.js → agent-site-editor-preview-BOHOs4hS.js} +3 -3
- package/dist/client/assets/agent-view-B0TeCTGP.js +1 -0
- package/dist/client/assets/{agent-view-guard-BL5Hr88U.js → agent-view-guard-DBlz_p2t.js} +1 -1
- package/dist/client/assets/{agents-list-C2VF3tm2.js → agents-list-7X7ucg0e.js} +1 -1
- package/dist/client/assets/{ai-providers-eLd1_N3b.js → ai-providers-Bm2tLrMu.js} +1 -1
- package/dist/client/assets/{alert-_voqqPHC.js → alert-DslM1OpO.js} +1 -1
- package/dist/client/assets/{alert-dialog-BCduxUz6.js → alert-dialog-BhgAEu2i.js} +1 -1
- package/dist/client/assets/api-keys-BdpkM46E.js +1 -0
- package/dist/client/assets/{api-keys-Dw8-fWJ8.js → api-keys-Dq1Bnar4.js} +1 -1
- package/dist/client/assets/app-editor-C3rD0azc.js +1 -0
- package/dist/client/assets/{asset-utils-CYVxOjk-.js → asset-utils-D3ZIfM_Z.js} +1 -1
- package/dist/client/assets/{auth-catchall-bR4cEBQ7.js → auth-catchall-pT36A0zr.js} +1 -1
- package/dist/client/assets/{auth-entry-BtyUVFkH.js → auth-entry-2UXAVZ_y.js} +1 -1
- package/dist/client/assets/{auth-split-layout-OXkozary.js → auth-split-layout-BjGbJo38.js} +1 -1
- package/dist/client/assets/{auth-DbhfOiDD.js → auth-uih7AqvO.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CTqF0T3I.js → authenticate-and-persist-oauth-B9I5UxEd.js} +1 -1
- package/dist/client/assets/{automation-list-row-CWKGol7C.js → automation-list-row-6I49gBmF.js} +1 -1
- package/dist/client/assets/{automation-runs-B0iVRx_v.js → automation-runs-EAqUU_Ij.js} +1 -1
- package/dist/client/assets/{automations-drGOc5kF.js → automations-CQPehM0c.js} +1 -1
- package/dist/client/assets/{autosend-DnpV-gpp.js → autosend-BJW1PfVQ.js} +1 -1
- package/dist/client/assets/{avatar-BEChGFx_.js → avatar-_8aGoMXJ.js} +1 -1
- package/dist/client/assets/{badge-DlwIZhYt.js → badge-DMewhq-R.js} +1 -1
- package/dist/client/assets/{block-document-CVQgWXY1.js → block-document-Dcc8Ersi.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-LIf6Y3Wf.js → blocks-preview-workspace-context-BRSFaO-e.js} +1 -1
- package/dist/client/assets/{breadcrumb-CVBoYVDa.js → breadcrumb-ClrBbM2y.js} +1 -1
- package/dist/client/assets/{buckets-BNxfJUdD.js → buckets-8W4ppyWH.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BojueIPy.js → build-improve-prompt-doc-CX4X_Kjx.js} +1 -1
- package/dist/client/assets/{bulk-category-panel--Sd4y8I1.js → bulk-category-panel-DRm2c8X2.js} +1 -1
- package/dist/client/assets/{calendar---myt21s.js → calendar-B83nuFOI.js} +1 -1
- package/dist/client/assets/{capability-load-error-DE4nXkTf.js → capability-load-error-BUHyT4vC.js} +1 -1
- package/dist/client/assets/{category-editor-Bm1OhVXt.js → category-editor-DmtS6BHb.js} +1 -1
- package/dist/client/assets/{chart-CQz-sp9S.js → chart-O1DWzSgB.js} +1 -1
- package/dist/client/assets/{chat-context-CigQFIrF.js → chat-context-H6Zpj-Vd.js} +1 -1
- package/dist/client/assets/{chat-draft-DowTsQ5a.js → chat-draft-BXT8ntBy.js} +1 -1
- package/dist/client/assets/{checkbox-ul_qDXO_.js → checkbox-JC6LoT32.js} +1 -1
- package/dist/client/assets/{choose-editor-CnrA1-KS.js → choose-editor-D-IXY8oL.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-BYAB1Czx.js → claim-phase-copy-CPiQ28RG.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DDGa-14a.js → cli-auth-success-CQt2stGY.js} +1 -1
- package/dist/client/assets/{client-icons-B6K_h_1z.js → client-icons-D5aE3fDf.js} +1 -1
- package/dist/client/assets/{collapsible-HcQLf87E.js → collapsible-B930Znij.js} +1 -1
- package/dist/client/assets/{collection-detail-D67vLPqg.js → collection-detail-DILC7xOI.js} +1 -1
- package/dist/client/assets/{collection-display-button-RAuDavRQ.js → collection-display-button-DKuiVs_e.js} +1 -1
- package/dist/client/assets/{collection-search-icw3NOdm.js → collection-search-DFVK1KQ8.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-WQa99W12.js → collection-table-wrapper-DvM7LDpZ.js} +1 -1
- package/dist/client/assets/{collection-tabs-D98CiePG.js → collection-tabs-DWdbo1Je.js} +1 -1
- package/dist/client/assets/{combobox-CDqgOlRO.js → combobox-BoqrgDcx.js} +1 -1
- package/dist/client/assets/{command-B8xkiuco.js → command-C3KYPhtk.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CeQtVwUw.js → companion-mcps-section-DhDS_06A.js} +1 -1
- package/dist/client/assets/{connect-CRzPLygu.js → connect-Dyr51oJk.js} +1 -1
- package/dist/client/assets/{connect-layout-D0Wg9FJl.js → connect-layout-BNbZXyRv.js} +1 -1
- package/dist/client/assets/{connection-YU2qDPgo.js → connection-D9jQPSCJ.js} +1 -1
- package/dist/client/assets/{connection-card-B0taizv-.js → connection-card-D-LytxKQ.js} +1 -1
- package/dist/client/assets/{connection-detail-Bn0G4Wes.js → connection-detail-CNt-Uyzd.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CTaXx_AV.js → connection-form-helpers-DSpcP1Dc.js} +1 -1
- package/dist/client/assets/{connections-M60VrJsO.js → connections-C7W7axzQ.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Cyc1fSp9.js → create-organization-dialog-DBxZ2XGo.js} +1 -1
- package/dist/client/assets/{decofile-api-0DF6BK8S.js → decofile-api-CAHmkQlU.js} +1 -1
- package/dist/client/assets/{decopilot-bu1L070q.js → decopilot-BnOOn6v6.js} +1 -1
- package/dist/client/assets/{dialog-Cgb6nNga.js → dialog-BTnr_AVV.js} +1 -1
- package/dist/client/assets/{discover-CAwJcBwl.js → discover-U5K5oM8Q.js} +1 -1
- package/dist/client/assets/{domain-settings-BSR7qpN5.js → domain-settings-CzbkVMPe.js} +1 -1
- package/dist/client/assets/{download-app-dialog-Ca89v1sb.js → download-app-dialog-nvCUSnk2.js} +1 -1
- package/dist/client/assets/{drawer-B9Ec8DO-.js → drawer-D6LfOfIo.js} +1 -1
- package/dist/client/assets/{editor-CGK-kOO1.js → editor-BqmQJegj.js} +1 -1
- package/dist/client/assets/{empty-state-Dihk-JSs.js → empty-state-DMiHCSxy.js} +1 -1
- package/dist/client/assets/{empty-state-EvZtk0QO.js → empty-state-DMmxHRTF.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DIQBho2q.js → extract-connection-data-CZjdLMbg.js} +1 -1
- package/dist/client/assets/{feature-gate-DWxohdMP.js → feature-gate-ByUUxxIv.js} +1 -1
- package/dist/client/assets/{feature-paywall-BQ9_mpV-.js → feature-paywall-C9xFi1nx.js} +1 -1
- package/dist/client/assets/{file-explorer--Hqae3zL.js → file-explorer-DmorIYyd.js} +1 -1
- package/dist/client/assets/{file-preview-DShpms1E.js → file-preview-DG6yyUI3.js} +1 -1
- package/dist/client/assets/{file-share-button-aNtwsWj1.js → file-share-button-B2dbicF1.js} +1 -1
- package/dist/client/assets/{file-type-icon-TpiFmwkV.js → file-type-icon-BkowPfFv.js} +1 -1
- package/dist/client/assets/{folder-icon-D4aLUwaZ.js → folder-icon-D4_mI7nX.js} +1 -1
- package/dist/client/assets/{form-Dx1-pFkl.js → form-Cs0YGgAz.js} +1 -1
- package/dist/client/assets/{gateway-client-RuR5Sgwm.js → gateway-client-D0N_12qS.js} +1 -1
- package/dist/client/assets/{general-D_pQn6h9.js → general-C7u2nzrT.js} +1 -1
- package/dist/client/assets/{github-icon-BCmmbu9G.js → github-icon-BuR6fL8l.js} +1 -1
- package/dist/client/assets/{home-D5hbT3sC.js → home-DVyMZFQG.js} +1 -1
- package/dist/client/assets/{hooks-C1_YzDjW.js → hooks-BIIUffrO.js} +1 -1
- package/dist/client/assets/{hooks-Dxf0iUx8.js → hooks-CZw8Nj9H.js} +1 -1
- package/dist/client/assets/{icon-button-DZaf2bob.js → icon-button-ffXmg1OC.js} +1 -1
- package/dist/client/assets/{index-Ou0kSF_4.js → index-B0qiS0Xy.js} +1 -1
- package/dist/client/assets/{index-mfLc4iDt.js → index-BSqcExWu.js} +1 -1
- package/dist/client/assets/{index-DZdHbrkX.js → index-BYhU0OAw.js} +1 -1
- package/dist/client/assets/{index-m8M9XNiz.js → index-Bo1CTi_x.js} +1 -1
- package/dist/client/assets/{index-DSfFiRiK.js → index-CC4ky7Bt.js} +1 -1
- package/dist/client/assets/{index-CuKynvIK.js → index-CJvGo7M-.js} +2 -2
- package/dist/client/assets/{index-NhsUUnWs.js → index-CwPMc6DD.js} +1 -1
- package/dist/client/assets/{index-C10vK9Gl.js → index-DbCXB6UC.js} +1 -1
- package/dist/client/assets/{index-CCckg7jq.js → index-DnfITnHh.js} +1 -1
- package/dist/client/assets/{index-CZgNJwMq.js → index-DqJtHo4n.js} +1 -1
- package/dist/client/assets/{index-B8rdF1mj.js → index-IKyehAj0.js} +1 -1
- package/dist/client/assets/{index-BCWnemyS.js → index-P6xk5T3b.js} +1 -1
- package/dist/client/assets/{index-DsClCmX4.js → index-R-0H4aXt.js} +1 -1
- package/dist/client/assets/{index-Ca5H_mlY.js → index-cLR8hRUZ.js} +1 -1
- package/dist/client/assets/{index-redirect-cxGDeRou.js → index-redirect-UW05aF5k.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DcexJUFl.js → infiniteQueryObserver-Co_jht2h.js} +1 -1
- package/dist/client/assets/{infra-billing-Bm5byk8f.js → infra-billing-BNNb1HUT.js} +1 -1
- package/dist/client/assets/{input-DAhHA2Ec.js → input-CW1e_IGW.js} +1 -1
- package/dist/client/assets/{input-CxixGGca.js → input-DmhYaSfN.js} +1 -1
- package/dist/client/assets/{input-D6xpm6o8.js → input-ctnVSOTh.js} +1 -1
- package/dist/client/assets/{integration-icon-V1IRIDo0.js → integration-icon-DBmxvUTr.js} +1 -1
- package/dist/client/assets/{label-sXJ5lD1Q.js → label-4VvccInH.js} +1 -1
- package/dist/client/assets/{last-preview-page-D6_JHljG.js → last-preview-page-CvHaNJZf.js} +1 -1
- package/dist/client/assets/{layout-B8Fn_UZq.js → layout-YtNzwgmw.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-COHnfJ6M.js → legacy-agents-deep-D_WKz4Q4.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DC6wMjwz.js → legacy-main-redirect-Cuoc1Q6w.js} +1 -1
- package/dist/client/assets/{library-CbGeI6nu.js → library-C5hSt5jS.js} +1 -1
- package/dist/client/assets/{login-B6k_w5JI.js → login-BHMe1ZN5.js} +1 -1
- package/dist/client/assets/{markdown-ZsxJYTnA.js → markdown-DgiLeH6x.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D3wIwpKO.js → mcp-app-renderer-Dpmk1Vv4.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BlhNJxOC.js → mcp-oauth-C2J7M1Qy.js} +1 -1
- package/dist/client/assets/{members-dZGKLQ5m.js → members-DZUeyWSF.js} +1 -1
- package/dist/client/assets/{message-templates-w495jgqF.js → message-templates-DEiaR-4t.js} +1 -1
- package/dist/client/assets/{mini-report-page-wChiKqpe.js → mini-report-page-DZ2brjJR.js} +1 -1
- package/dist/client/assets/{mock-board-DzoQZT_5.js → mock-board-C3-S11yK.js} +3 -3
- package/dist/client/assets/{monaco-editor--rfKIHsG.js → monaco-editor-CWYBB1Jc.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Db18eFc1.js → monitoring-stats-row-BIOo_dNd.js} +1 -1
- package/dist/client/assets/{multi-select-Dmek7lz3.js → multi-select-CQmA6upg.js} +1 -1
- package/dist/client/assets/{mustache-DeeFRL9O.js → mustache-CCIaSVE8.js} +1 -1
- package/dist/client/assets/{oauth-callback-C4VmqAGn.js → oauth-callback-JKin_sKW.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DqNzsmsa.js → oauth-callback-ai-provider-CVBe8y5A.js} +1 -1
- package/dist/client/assets/{onboarding-xllcE5pS.js → onboarding-CiuzJ17Q.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CPPQ3FAG.js → optimistic-project-sidebar-views-B1t6VhD_.js} +1 -1
- package/dist/client/assets/{org-file-open-context-C3GnNEyb.js → org-file-open-context-BpKzz2X6.js} +1 -1
- package/dist/client/assets/{organization-choice-BpJUZ9eE.js → organization-choice-DtGmLZl3.js} +1 -1
- package/dist/client/assets/{orgs-_F33P6Z2.js → orgs-C7GJQT2F.js} +1 -1
- package/dist/client/assets/{page-seo-form-0ddI5t6v.js → page-seo-form-CJEF56bx.js} +1 -1
- package/dist/client/assets/{pair-CbghiNzY.js → pair-B42JzU0G.js} +1 -1
- package/dist/client/assets/{plan-ladder-DEFdJtel.js → plan-ladder-DZj3EnLg.js} +1 -1
- package/dist/client/assets/{popover-C6yHcj70.js → popover-Dc6K6r1C.js} +1 -1
- package/dist/client/assets/{post-calendar-CdNsNph9.js → post-calendar-CdMKYMS2.js} +1 -1
- package/dist/client/assets/{post-editor-CPeRSjBp.js → post-editor-my4ezea6.js} +1 -1
- package/dist/client/assets/{preview-content-CpOQvNwD.js → preview-content-CziYH8nP.js} +1 -1
- package/dist/client/assets/{preview-dialog-C-feCeog.js → preview-dialog-DDwPGbj2.js} +1 -1
- package/dist/client/assets/{primitives-ChmMfj9v.js → primitives-BeUcpT_l.js} +1 -1
- package/dist/client/assets/{profile-V2BmVtCD.js → profile-BOKysRT9.js} +1 -1
- package/dist/client/assets/{project-app-view-Df3nXMqu.js → project-app-view-CRETWS5_.js} +1 -1
- package/dist/client/assets/{project-feed-DP96GA1D.js → project-feed-DnXMTyTK.js} +1 -1
- package/dist/client/assets/{project-icon-DpLJ2_Oe.js → project-icon-CQHpgqjE.js} +1 -1
- package/dist/client/assets/project-reports-D_REhIUx.js +1 -0
- package/dist/client/assets/project-tasks-CCtFBWbk.js +1 -0
- package/dist/client/assets/{prompts-DqZkMgF_.js → prompts-Buirx6sq.js} +1 -1
- package/dist/client/assets/record-editor-CvRbpNqI.js +1 -0
- package/dist/client/assets/{redirect-editor-BzITPvLZ.js → redirect-editor-T_gO2ARt.js} +1 -1
- package/dist/client/assets/reports-CyGj47MI.js +1 -0
- package/dist/client/assets/{reports-C04RdVL2.js → reports-D29xfPX4.js} +1 -1
- package/dist/client/assets/{reports-onboarding-Bu10YnNN.js → reports-onboarding-Cd6ZQZfG.js} +1 -1
- package/dist/client/assets/{reports-tab-DbjnZZdG.js → reports-tab-C8QCg1Zh.js} +2 -2
- package/dist/client/assets/{repositories-TQS3oe_Z.js → repositories-eEvxM93v.js} +1 -1
- package/dist/client/assets/{repository-import-picker-ir5lpemT.js → repository-import-picker-CYhmnGT6.js} +1 -1
- package/dist/client/assets/{repository-picker-8uzqMUSJ.js → repository-picker-CJrIw77i.js} +1 -1
- package/dist/client/assets/{require-capability-DR84qrNv.js → require-capability-CQeOwSD4.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BiKqBIJR.js → required-auth-layout-CE8AnY1F.js} +1 -1
- package/dist/client/assets/{reset-password-4NRQIi8T.js → reset-password-DFPIxqxe.js} +1 -1
- package/dist/client/assets/{resizable-g50QqQLR.js → resizable-C4Edp607.js} +1 -1
- package/dist/client/assets/{review-settings-D8BQ_JzW.js → review-settings-CbjseDbt.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-BEQwt7AM.js → rich-text-link-control-Do2n6JIO.js} +1 -1
- package/dist/client/assets/{roles-C5ucnXFf.js → roles-CJoQe-iA.js} +1 -1
- package/dist/client/assets/{route-Cu9dUUX5.js → route-DFFPgrtv.js} +1 -1
- package/dist/client/assets/{route-Dh7nT37A.js → route-euoZW6b2.js} +1 -1
- package/dist/client/assets/{route-page-header-BLIm8Sjw.js → route-page-header-CEYsqpu_.js} +1 -1
- package/dist/client/assets/{route-BYaroh6V.js → route-wRSR0-RQ.js} +1 -1
- package/dist/client/assets/runnable-block-editor-Bm9IpSRw.js +17 -0
- package/dist/client/assets/{sandbox-lifecycle-context-DpPd4Ppi.js → sandbox-lifecycle-context-CFfKpmMd.js} +1 -1
- package/dist/client/assets/{schema-BFAgc9vB.js → schema--090tLTs.js} +1 -1
- package/dist/client/assets/{scroll-area-BlAA-Bao.js → scroll-area-DaAnCQrg.js} +1 -1
- package/dist/client/assets/{search-input-Bh8Hda5I.js → search-input-Cq2H58ks.js} +1 -1
- package/dist/client/assets/{search-toggle-DizwDv5R.js → search-toggle-BzE09wAY.js} +1 -1
- package/dist/client/assets/{secret-picker-DaPihddw.js → secret-picker-FNqMA4b3.js} +1 -1
- package/dist/client/assets/{secrets-dO2-dm88.js → secrets-B79xiOvr.js} +1 -1
- package/dist/client/assets/{sections-editor-BJomHWUT.js → sections-editor-Bch82FO0.js} +1 -1
- package/dist/client/assets/{select-BanIfiiK.js → select-_7jCWmPs.js} +1 -1
- package/dist/client/assets/{select-model-BEVKH5_m.js → select-model-C991WVaS.js} +1 -1
- package/dist/client/assets/{seo-editor-fZ9M3Gp-.js → seo-editor-COzsrOm2.js} +1 -1
- package/dist/client/assets/{separator-D5oH9Tc6.js → separator-CTDFfWkU.js} +1 -1
- package/dist/client/assets/{settings-tab-BOSNM5xW.js → settings-tab-OQmnW7Ut.js} +1 -1
- package/dist/client/assets/{sheet-JibTB_ju.js → sheet-fXc9nA9M.js} +1 -1
- package/dist/client/assets/{shell-layout-C9P3RmGa.js → shell-layout-CFgBlrHw.js} +1 -1
- package/dist/client/assets/{sidebar-CKW8SX5I.js → sidebar-CD_qlBS1.js} +1 -1
- package/dist/client/assets/{skill-preview-CpSq5DoK.js → skill-preview-iGSQpWTN.js} +1 -1
- package/dist/client/assets/{skills-CR8unPX_.js → skills-Bo3AuN87.js} +1 -1
- package/dist/client/assets/{sso-CE4LK0kP.js → sso-bCqIdarJ.js} +1 -1
- package/dist/client/assets/{switch-4HMgPUts.js → switch-_-H0ZzQ0.js} +1 -1
- package/dist/client/assets/{synced-repos-Ca7MHWA4.js → synced-repos-CJ3PDs71.js} +1 -1
- package/dist/client/assets/{table-CJ1bijPH.js → table-B0ylfHsr.js} +1 -1
- package/dist/client/assets/{tabs-BhWYNgYG.js → tabs-CbBMI_3w.js} +1 -1
- package/dist/client/assets/{task-board-DEK9EtO8.js → task-board-BOtwbMNd.js} +1 -1
- package/dist/client/assets/{task-route-sectJiZr.js → task-route-ClDUjCmA.js} +1 -1
- package/dist/client/assets/{task-status-B0xsnDKH.js → task-status-DCDgnDj7.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-CGcaGS9p.js → taskboard-analytics-CiRR6YhP.js} +1 -1
- package/dist/client/assets/{tasks-DMOF4nmk.js → tasks-MLHolUxt.js} +1 -1
- package/dist/client/assets/tasks-pXX1X4bj.js +1 -0
- package/dist/client/assets/{textarea-DMkTjvEF.js → textarea-Pm894Vb7.js} +1 -1
- package/dist/client/assets/{thread-button-CuUIbUBd.js → thread-button-0yNolO5U.js} +1 -1
- package/dist/client/assets/{thread-intent-CxJrbPCr.js → thread-intent-CZ1rMWWZ.js} +1 -1
- package/dist/client/assets/{thread-route-DKPQW82J.js → thread-route-Cz0k6s-0.js} +1 -1
- package/dist/client/assets/{thread-route-B2U_o9C3.js → thread-route-DDyPLFny.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DSRzkXP7.js → thread-sheet-body-CoOlYiyz.js} +1 -1
- package/dist/client/assets/{toggle-group-CMNW4mwx.js → toggle-group-BCKZnr8W.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-NrY5UDrB.js → toolbar-icon-button-SVo3Fo7H.js} +1 -1
- package/dist/client/assets/{tooltip-CxEILWvZ.js → tooltip-ChaEDFwp.js} +1 -1
- package/dist/client/assets/{track-BDhbKfjd.js → track-CO4eg07r.js} +1 -1
- package/dist/client/assets/{types-Dm2A_SzK.js → types-DOMFbfVw.js} +1 -1
- package/dist/client/assets/{usage-stats-BUdPL4y7.js → usage-stats-rx7t_Nos.js} +1 -1
- package/dist/client/assets/{use-ai-providers-WVDlQI7a.js → use-ai-providers-8tdExCCT.js} +1 -1
- package/dist/client/assets/{use-automations-DhMVIrbH.js → use-automations-C3DIh181.js} +1 -1
- package/dist/client/assets/{use-autosave-Cs2l4kvH.js → use-autosave-Bra0uvzP.js} +1 -1
- package/dist/client/assets/{use-connect-companion-C8XtHv_z.js → use-connect-companion-Bull_Zxw.js} +1 -1
- package/dist/client/assets/{use-connection-BE5RGCED.js → use-connection-_01X3r9K.js} +1 -1
- package/dist/client/assets/{use-copy-CQHz89FX.js → use-copy-DYjRVCxp.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Clu3kTW-.js → use-create-virtual-mcp-Bj3aYXDp.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CsbCUQol.js → use-date-fns-locale-yvDr0D7T.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CELzcq38.js → use-debounced-autosave-DbVxH1pQ.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CYsH4FnM.js → use-debounced-value-BAx8VCR0.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BNjDojPM.js → use-deco-credits-yiRW4WkY.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BZRpbXtL.js → use-decopilot-events-D9jYfL-F.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DZGvcwH6.js → use-delete-connection-C_I3mgoO.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-3CKmN4Dm.js → use-deployment-admin-ByTSklJo.js} +1 -1
- package/dist/client/assets/{use-entitlements-CtDOlLOz.js → use-entitlements-C3RfsquV.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-h1FQgacX.js → use-fast-preview-draft-url-D8zl5mEv.js} +1 -1
- package/dist/client/assets/{use-file-configs-CCC51CiC.js → use-file-configs-DOTdJIrl.js} +1 -1
- package/dist/client/assets/{use-in-settings-D6Jf8r1J.js → use-in-settings-C7yJRVKh.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DPL5T_J6.js → use-infinite-scroll-D7ecDjvR.js} +1 -1
- package/dist/client/assets/{use-join-requests-xYwPRZaP.js → use-join-requests-Ilb6bw8C.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DFsNbB7_.js → use-main-panel-tabs-CnSLB640.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-C814rz9a.js → use-mcp-auth-status-BZ3hpP0X.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DVdW13n2.js → use-mcp-client-CNhRUvA5.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-B2lNJtI0.js → use-mcp-prompts-EbPPuTcd.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-yL6ngJhN.js → use-mcp-tools-BPf00IDz.js} +1 -1
- package/dist/client/assets/{use-members-BWGnt3xz.js → use-members-B3lGJD1d.js} +1 -1
- package/dist/client/assets/{use-mobile-uPe7iIqt.js → use-mobile-DX7VP8iK.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-SCyHTgIX.js → use-navigate-to-agent-g6nQp_q-.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-Cg1ys7hu.js → use-open-billing-url-UFHRZeDE.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CFw5de6Q.js → use-org-auth-client-DbfrlNFJ.js} +1 -1
- package/dist/client/assets/{use-org-fs-Bn_T0aJ_.js → use-org-fs-BJVySa9m.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DU8DfREe.js → use-org-repo-syncs-Bu37nqQ2.js} +1 -1
- package/dist/client/assets/{use-org-sso-BE_oQrhh.js → use-org-sso-BlWvz-NF.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Dux9hCaf.js → use-organization-roles-DE7kCN9L.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DxdRLAFr.js → use-organization-settings-BLQ6mu_F.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-Cv7gWgrI.js → use-panel-navigate-BsGJc9V3.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-Bb7AFTdc.js → use-project-native-view-presence-KEUHlmpo.js} +1 -1
- package/dist/client/assets/{use-project-scope--f8QE0rR.js → use-project-scope-BGBC-ayH.js} +1 -1
- package/dist/client/assets/{use-releases-DVpnjCc7.js → use-releases-CQr6l3Pj.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CG79-ua-.js → use-reports-diagnostic-CofOdWW9.js} +1 -1
- package/dist/client/assets/{use-route-default-main-GB9j_Yad.js → use-route-default-main-B3Le2s3e.js} +1 -1
- package/dist/client/assets/{use-secrets-Bz4y4UnB.js → use-secrets-C61EqNPY.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DPItNU2_.js → use-section-preview-base-lO8EHufR.js} +1 -1
- package/dist/client/assets/{use-session-runtime-D07OOfYZ.js → use-session-runtime-CJtUNfm9.js} +1 -1
- package/dist/client/assets/{use-tags-ClvpULLx.js → use-tags-Cw8Tl4V2.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BbJwbe-h.js → use-task-board-analytics-P3ACpavh.js} +1 -1
- package/dist/client/assets/{use-task-metadata-9BgABmJR.js → use-task-metadata-Bh8dwwJo.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BZFz5o_S.js → use-thread-outputs-DWb5Ffwp.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CkNe2Ju7.js → use-virtual-mcp-DYsZ_S7V.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ChD58h72.js +1 -0
- package/dist/client/assets/{useQueries-R9IL0RuG.js → useQueries-BkAl2Nho.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-C9oYMcau.js +1 -0
- package/dist/client/assets/{users-BUKS5lBn.js → users-D9VRrUZq.js} +1 -1
- package/dist/client/assets/{utils-DEVAjabd.js → utils-SncAWk77.js} +1 -1
- package/dist/client/assets/{variant-calendar-ChKxHp3R.js → variant-calendar-Bc7nrgXK.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DNboF61u.js → variant-matcher-override-B6vu1CuI.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BL5qLMml.js → view-mode-toggle-BaA42o_l.js} +1 -1
- package/dist/client/assets/{virtual-mcp-aM5OQNHZ.js → virtual-mcp-C32FiGUT.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Cv7i7dBd.js +0 -1
- package/dist/client/assets/agent-deck-CUWrc_nt.js +0 -1
- package/dist/client/assets/agent-file-DQVohtnZ.js +0 -1
- package/dist/client/assets/agent-library-file-Cz2ztsCV.js +0 -1
- package/dist/client/assets/agent-settings-Ae05XcIC.js +0 -1
- package/dist/client/assets/agent-site-editor-code-B79SiqEb.js +0 -2
- package/dist/client/assets/agent-view-Bk7GmWwZ.js +0 -1
- package/dist/client/assets/api-keys-CtGsw_Gs.js +0 -1
- package/dist/client/assets/app-editor-D_-0_IQ_.js +0 -1
- package/dist/client/assets/project-reports-D63nlO5g.js +0 -1
- package/dist/client/assets/project-tasks-_N74f8SM.js +0 -1
- package/dist/client/assets/record-editor-B-lKG-xN.js +0 -1
- package/dist/client/assets/reports-BcKOR84m.js +0 -1
- package/dist/client/assets/runnable-block-editor-CsvQsGtO.js +0 -17
- package/dist/client/assets/tasks-iUTJfP23.js +0 -1
- package/dist/client/assets/useInfiniteQuery-vUhOQoVF.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B8mFqMTg.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,j as t,B as K,h as G,ap as tt,aq as ie,b as W,E as Fe,r as D,Z as Oe,a0 as xe,d9 as st,d8 as Me,ao as ot,n as ze,P as ye,u as nt,L as te,t as lt,f as fe,c0 as Be}from"./index-CuKynvIK.js";import{E as Le}from"./empty-state-EvZtk0QO.js";import{u as he}from"./use-mcp-client-DVdW13n2.js";import{F as re,a as it,b as ae,d as ce}from"./form-Dx1-pFkl.js";import{I as ue}from"./input-CxixGGca.js";import{T as pe}from"./textarea-DMkTjvEF.js";import{D as ge,O as rt,M as at}from"./index-m8M9XNiz.js";import{bb as ct,U as dt,bl as mt,ae as ut,E as pt,F as xt,aF as ft,x as we,aj as ht}from"./agent-icon-yvE2OrmS.js";import{M as gt}from"./mcp-app-renderer-D3wIwpKO.js";import{g as jt,M as Ce}from"./types-Dm2A_SzK.js";import{a as bt,b as Nt,A as vt}from"./alert-_voqqPHC.js";import{S as Ie,b as Te,a as $e,d as Pe,c as de}from"./select-BanIfiiK.js";import{b as St,c as De,T as ke,a as Ae}from"./tooltip-CxEILWvZ.js";import{B as Ue,a as _e,b as Y,c as se,d as oe,e as Je}from"./breadcrumb-CVBoYVDa.js";import{i as yt}from"./AlertCircle-Plbq3B-q.js";import{a as wt}from"./Copy01-BenS5ro_.js";import{i as Ct}from"./Sun-Be8FNPF2.js";import{g as It}from"./connection-slug-CITJ0kGN.js";import{u as Tt,T as $t}from"./use-mcp-auth-status-C814rz9a.js";import{a as Ve,u as qe}from"./use-connection-BE5RGCED.js";import{u as Pt}from"./use-mcp-tools-yL6ngJhN.js";import{c as Dt}from"./content-blocks-o63cs2vh.js";import{I as Ee}from"./integration-icon-V1IRIDo0.js";import{f as kt,r as At}from"./chat-context-CigQFIrF.js";import{a as Et}from"./shell-layout-C9P3RmGa.js";import{M as Rt}from"./monaco-editor--rfKIHsG.js";import{E as Ft}from"./empty-state-Dihk-JSs.js";import"./auth-DbhfOiDD.js";import"./label-sXJ5lD1Q.js";import"./sidebar-CKW8SX5I.js";import"./LayoutLeft-DpIebcC-.js";import"./use-mobile-uPe7iIqt.js";import"./sheet-JibTB_ju.js";import"./X-RprAX0Ua.js";import"./Key01-BV_ymGg3.js";import"./extract-connection-data-DIQBho2q.js";import"./metadata-D72DunRR.js";import"./connection-YU2qDPgo.js";import"./Plus-40Vqbuez.js";import"./index-DsClCmX4.js";import"./index-Ou0kSF_4.js";import"./index-CCckg7jq.js";import"./index-CZgNJwMq.js";import"./popover-C6yHcj70.js";import"./use-virtual-mcp-CkNe2Ju7.js";import"./Check-C99gsNHm.js";import"./SearchMd-kVGeqQ7a.js";import"./use-create-virtual-mcp-Clu3kTW-.js";import"./use-navigate-to-agent-SCyHTgIX.js";import"./hooks-Dxf0iUx8.js";import"./backoff-8mStPHYB.js";import"./task-board-DEK9EtO8.js";import"./schema-BFAgc9vB.js";import"./thread-intent-CxJrbPCr.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01-C-oe4aXW.js";import"./ArrowUp-6u2hUOnH.js";import"./ArrowLeft-DrGT8UWu.js";import"./ArrowRight-CbriRBrq.js";import"./XCircle-CQMzne_o.js";import"./ZoomOut-BWCMlmIP.js";import"./Globe04-CGVAMpAe.js";import"./CheckCircle-CKcxanRZ.js";import"./ChevronUp-DSQ_1BER.js";import"./UserSquare-D-qt0de_.js";import"./CreditCard01-YK1yCS4W.js";import"./DotsVertical-CQ6LBNOP.js";import"./Download01-Bp4nnCQ1.js";import"./Eye-DbFIyI2n.js";import"./Share07-CcQxNSX3.js";import"./XClose-CVQLXZni.js";import"./Image01-BggoPRkg.js";import"./Link01-OIIXb7cI.js";import"./LinkExternal01-CPCL9Cco.js";import"./Monitor01-CDgu8CIt.js";import"./Package-Ci_Iuppc.js";import"./Palette-IB6rbtm1.js";import"./SearchLg-CAy6qghA.js";import"./Stars01-BMd1nnPj.js";import"./Trash01-Byz0_Sy5.js";import"./Upload01-C2s_RH4H.js";import"./User01-XeAWOYXy.js";import"./Users01-C3on152s.js";import"./Zap-DzoV5VQ9.js";import"./index-BCWnemyS.js";import"./badge-DlwIZhYt.js";import"./mcp-oauth-BlhNJxOC.js";import"./use-panel-navigate-Cv7gWgrI.js";import"./thread-route-DKPQW82J.js";import"./use-project-scope--f8QE0rR.js";import"./autosend-DnpV-gpp.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-CtDOlLOz.js";import"./use-ai-providers-WVDlQI7a.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BZRpbXtL.js";import"./use-organization-settings-DxdRLAFr.js";import"./avatar-BEChGFx_.js";import"./download-app-dialog-Ca89v1sb.js";import"./dialog-Cgb6nNga.js";import"./command-B8xkiuco.js";import"./project-icon-DpLJ2_Oe.js";import"./required-auth-layout-BiKqBIJR.js";import"./use-org-sso-BE_oQrhh.js";import"./editor-CGK-kOO1.js";function Re(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(G,{className:"size-3.5"}):t.jsx(dt,{size:14}),e[5]=o,e[6]=p):p=e[6];let x;e[7]!==o||e[8]!==l||e[9]!==d||e[10]!==p?(x=t.jsxs(K,{variant:"default",size:"sm",onClick:l,disabled:o,"aria-label":d,children:[p,d]}),e[7]=o,e[8]=l,e[9]=d,e[10]=p,e[11]=x):x=e[11];let j;return e[12]!==h||e[13]!==x?(j=t.jsxs(t.Fragment,{children:[h,x]}),e[12]=h,e[13]=x,e[14]=j):j=e[14],j}tt({title:ie().min(1),description:ie().nullable(),body:ie()});function me(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ot(){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=Oe(),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(Re,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p}),children:i.title}),i.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:i.description})]}):t.jsxs(t.Fragment,{children:[t.jsx(ye.Topbar.Center.Portal,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:i.title}),i.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:i.description})]}):null]})}),t.jsx(ye.Topbar.Right.Portal,{children:t.jsx(Re,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p})})]}),e[22]=m,e[23]=f.formState.isDirty,e[24]=p,e[25]=i.description,e[26]=i.title,e[27]=S,e[28]=C,e[29]=I):I=e[29];let T;e[30]!==f?(T=t.jsx("div",{className:"h-full",children:t.jsx(Mt,{form:f})}),e[30]=f,e[31]=T):T=e[31];let $;return e[32]!==I||e[33]!==T?($=t.jsxs(ge,{children:[I,T]}),e[32]=I,e[33]=T,e[34]=$):$=e[34],$}function Bt(s){const e=z.c(10),{itemId:l}=s,n=W();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=Ot(),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(Fe,{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=Oe(),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}),R=Pt({client:L}),N=R.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}))},[F,O]=D.useState("json"),[Q,J]=D.useState(!1);E&&!Q&&(O("ui"),J(!0));const je=N?.inputSchema?.properties,be=je?Object.keys(je):[],Z=be.length>0,X={};if(Z&&N?.inputSchema?.properties)for(const c of be)X[c]=N.inputSchema.required?.includes(c)?"":void 0;const ne=c=>Object.prototype.hasOwnProperty.call(r,c),He=async()=>{$(!0),I(null),j(null),b(null),w(null),y(null);const c=performance.now();try{if(!L)throw new Error("MCP client is not available");const g=Z?{...X,...r}:(()=>{const M=h.trim();if(!M)return{};const V=JSON.parse(M);if(V&&typeof V=="object")return V;throw new Error("Raw JSON input must be an object.")})();Z&&N?.inputSchema?.properties&&Object.entries(N.inputSchema.properties).forEach(([M,V])=>{if((V.type==="object"||V.type==="array")&&typeof g[M]=="string")try{g[M]=JSON.parse(g[M])}catch{}else if((V.type==="number"||V.type==="integer")&&typeof g[M]=="string"&&g[M]!==""){const Se=Number(g[M]);Number.isNaN(Se)||(g[M]=Se)}});const P=await L.callTool({name:s,arguments:g}),ee=P.structuredContent??P,Ge=performance.now(),Xe=Math.round(Ge-c);j(ee),b(P),w(g);const et=JSON.stringify(ee),ve=new TextEncoder().encode(et).length;y({duration:`${Xe}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(g){const P=g instanceof Error?g.message:String(g);I(P||"Unknown error occurred");const ee=performance.now();y({duration:`${Math.round(ee-c)}ms`})}finally{$(!1)}},le=(c,g)=>{i(P=>({...P,[c]:g}))},Ke=()=>{j(null),b(null),w(null),I(null),y(null)},We=N?.name??Lt(s),Qe=t.jsx(Ue,{children:t.jsxs(_e,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:k.slug},children:o("details.tool.connections")})})}),t.jsx(oe,{}),A&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:k.slug,appSlug: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:Z&&N?.inputSchema?.properties?Object.entries(N.inputSchema.properties).map(([c,g])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[c,N.inputSchema?.required?.includes(c)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:g.type})]}),g.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:g.description}),g.type==="object"||g.type==="array"?t.jsx(pe,{className:"font-mono text-xs",value:ne(c)?r[c]??"":X[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enterAsJson",{key:c}),rows:3}):g.type==="boolean"?t.jsxs(Ie,{value:ne(c)?String(r[c]??""):"",onValueChange:P=>le(c,P==="true"),children:[t.jsx(Te,{children:t.jsx($e,{placeholder:o("details.tool.selectTrueOrFalse")})}),t.jsxs(Pe,{children:[t.jsx(de,{value:"true",children:"true"}),t.jsx(de,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:ne(c)?r[c]??"":X[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enter",{key:c})})]},c)):N?.inputSchema&&!Z?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:o("details.tool.rawJsonInput")}),t.jsx(pe,{className:"font-mono text-xs min-h-[120px]",value:h,onChange:c=>p(c.target.value),placeholder:o("details.tool.rawJsonExample")})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:o("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:T?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Ke,children:[t.jsx(mt,{className:"h-3.5 w-3.5"}),o("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:He,children:[t.jsx(Ct,{className:"h-3.5 w-3.5 fill-current"}),o("details.tool.executeTool")]})})]}),Ze=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:o("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[v&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.duration})]}),v.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.tokens})]}),v.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(xt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.bytes})]}),v.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:v.cost})})]}),E&&t.jsx(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:F==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>O("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:F==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>O("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&&F==="ui"&&L?t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(G,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:o("details.tool.loadingApp")})]})}),children:t.jsx(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(Rt,{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:[R.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):R.isLoading?t.jsx(G,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:R.isSuccess?"ready":R.isLoading?"connecting":"error"})]}),t.jsx($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}),Ze]})})]})})}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(G,{className:"size-8 text-muted-foreground"})}),e[14]=h):h=e[14];let p;return e[15]!==r||e[16]!==m||e[17]!==n||e[18]!==l?(p=t.jsx(D.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:l,connectionId:r,siblings:n,onSelectInstance:u,onBack:m})}),e[15]=r,e[16]=m,e[17]=n,e[18]=l,e[19]=p):p=e[19],p}const Vt={prompt: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 R;s[35]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(ht,{size:36,className:"text-muted-foreground"}),s[35]=R):R=s[35];let N;s[36]!==m?(N=m("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=m,s[37]=N):N=s[37];let E;s[38]!==m?(E=m("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=m,s[39]=E):E=s[39];let _;s[40]!==m?(_=m("orgs.collectionDetail.goBackButton"),s[40]=m,s[41]=_):_=s[41];let F;s[42]!==d||s[43]!==_?(F={onClick:d,children:_},s[42]=d,s[43]=_,s[44]=F):F=s[44];let O;s[45]!==N||s[46]!==E||s[47]!==F?(O=t.jsx(Ft,{icon:R,title:N,description:E,buttonProps:F}),s[45]=N,s[46]=E,s[47]=F,s[48]=O):O=s[48];let Q;return s[49]!==L||s[50]!==O?(Q=t.jsx(ge,{leading:L,children:O}),s[49]=L,s[50]=O,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 Qo(){const s=z.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Fe,{children:t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(G,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Qo as default};
|
|
1
|
+
import{c as z,j as t,B as K,h as G,ap as tt,aq as ie,b as W,E as Fe,r as D,Z as Oe,a0 as xe,d9 as st,d8 as Me,ao as ot,n as ze,P as ye,u as nt,L as te,t as lt,f as fe,c0 as Be}from"./index-CJvGo7M-.js";import{E as Le}from"./empty-state-DMmxHRTF.js";import{u as he}from"./use-mcp-client-CNhRUvA5.js";import{F as re,a as it,b as ae,d as ce}from"./form-Cs0YGgAz.js";import{I as ue}from"./input-DmhYaSfN.js";import{T as pe}from"./textarea-Pm894Vb7.js";import{D as ge,O as rt,M as at}from"./index-Bo1CTi_x.js";import{bb as ct,U as dt,bl as mt,ae as ut,E as pt,F as xt,aF as ft,x as we,aj as ht}from"./agent-icon-BsnTrJjJ.js";import{M as gt}from"./mcp-app-renderer-Dpmk1Vv4.js";import{g as jt,M as Ce}from"./types-DOMFbfVw.js";import{a as bt,b as Nt,A as vt}from"./alert-DslM1OpO.js";import{S as Ie,b as Te,a as $e,d as Pe,c as de}from"./select-_7jCWmPs.js";import{b as St,c as De,T as ke,a as Ae}from"./tooltip-ChaEDFwp.js";import{B as Ue,a as _e,b as Y,c as se,d as oe,e as Je}from"./breadcrumb-ClrBbM2y.js";import{i as yt}from"./AlertCircle-iVRTcaBg.js";import{a as wt}from"./Copy01-Djl84HjT.js";import{i as Ct}from"./Sun-BEdjuN6j.js";import{g as It}from"./connection-slug-CITJ0kGN.js";import{u as Tt,T as $t}from"./use-mcp-auth-status-BZ3hpP0X.js";import{a as Ve,u as qe}from"./use-connection-_01X3r9K.js";import{u as Pt}from"./use-mcp-tools-BPf00IDz.js";import{c as Dt}from"./content-blocks-o63cs2vh.js";import{I as Ee}from"./integration-icon-DBmxvUTr.js";import{f as kt,r as At}from"./chat-context-H6Zpj-Vd.js";import{a as Et}from"./shell-layout-CFgBlrHw.js";import{M as Rt}from"./monaco-editor-CWYBB1Jc.js";import{E as Ft}from"./empty-state-DMiHCSxy.js";import"./auth-uih7AqvO.js";import"./label-4VvccInH.js";import"./sidebar-CD_qlBS1.js";import"./LayoutLeft-dzqHSKuH.js";import"./use-mobile-DX7VP8iK.js";import"./sheet-fXc9nA9M.js";import"./X-B5gw2EHv.js";import"./Key01-BCjLeK7M.js";import"./extract-connection-data-CZjdLMbg.js";import"./metadata-D72DunRR.js";import"./connection-D9jQPSCJ.js";import"./Plus-ojokEQ8x.js";import"./index-R-0H4aXt.js";import"./index-B0qiS0Xy.js";import"./index-DnfITnHh.js";import"./index-DqJtHo4n.js";import"./popover-Dc6K6r1C.js";import"./use-virtual-mcp-DYsZ_S7V.js";import"./Check-ocmT1xhM.js";import"./SearchMd-MG_xST09.js";import"./use-create-virtual-mcp-Bj3aYXDp.js";import"./use-navigate-to-agent-g6nQp_q-.js";import"./hooks-CZw8Nj9H.js";import"./backoff-8mStPHYB.js";import"./task-board-BOtwbMNd.js";import"./schema--090tLTs.js";import"./thread-intent-CZ1rMWWZ.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01-COB6rywP.js";import"./ArrowUp-ZHCqKDUA.js";import"./ArrowLeft-DfZNe3Vl.js";import"./ArrowRight-CswoMXm3.js";import"./XCircle-seVaST6e.js";import"./ZoomOut-qVaUZ9ca.js";import"./Globe04-B3-IlgJ4.js";import"./CheckCircle-BmHBdTYn.js";import"./ChevronUp-BEGO8LAp.js";import"./UserSquare-C8brDzYe.js";import"./CreditCard01-DA21YZ9t.js";import"./DotsVertical-GP-H6-nS.js";import"./Download01-CQZ78LGI.js";import"./Eye-CNk4ml55.js";import"./Share07-uQomrLCR.js";import"./XClose-B5O4OZct.js";import"./Image01-zHW5odO5.js";import"./Link01-CBc36KC8.js";import"./LinkExternal01-JGUyp91x.js";import"./Monitor01-DMBIX-hP.js";import"./Package-VT7-ZGoy.js";import"./Palette-CPW0a6wF.js";import"./SearchLg-C-i1c0zU.js";import"./Stars01-DxtRb5WZ.js";import"./Trash01-DTUu7NOU.js";import"./Upload01-Dty36l1w.js";import"./User01-BSto60sn.js";import"./Users01-CxwIEg0g.js";import"./Zap-D7YN1rKW.js";import"./index-P6xk5T3b.js";import"./badge-DMewhq-R.js";import"./mcp-oauth-C2J7M1Qy.js";import"./use-panel-navigate-BsGJc9V3.js";import"./thread-route-Cz0k6s-0.js";import"./use-project-scope-BGBC-ayH.js";import"./autosend-BJW1PfVQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-C3RfsquV.js";import"./use-ai-providers-8tdExCCT.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-D9jYfL-F.js";import"./use-organization-settings-BLQ6mu_F.js";import"./avatar-_8aGoMXJ.js";import"./download-app-dialog-nvCUSnk2.js";import"./dialog-BTnr_AVV.js";import"./command-C3KYPhtk.js";import"./project-icon-CQHpgqjE.js";import"./required-auth-layout-CE8AnY1F.js";import"./use-org-sso-BlWvz-NF.js";import"./editor-BqmQJegj.js";function Re(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(G,{className:"size-3.5"}):t.jsx(dt,{size:14}),e[5]=o,e[6]=p):p=e[6];let x;e[7]!==o||e[8]!==l||e[9]!==d||e[10]!==p?(x=t.jsxs(K,{variant:"default",size:"sm",onClick:l,disabled:o,"aria-label":d,children:[p,d]}),e[7]=o,e[8]=l,e[9]=d,e[10]=p,e[11]=x):x=e[11];let j;return e[12]!==h||e[13]!==x?(j=t.jsxs(t.Fragment,{children:[h,x]}),e[12]=h,e[13]=x,e[14]=j):j=e[14],j}tt({title:ie().min(1),description:ie().nullable(),body:ie()});function me(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ot(){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=Oe(),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(Re,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p}),children:i.title}),i.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:i.description})]}):t.jsxs(t.Fragment,{children:[t.jsx(ye.Topbar.Center.Portal,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:i.title}),i.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:i.description})]}):null]})}),t.jsx(ye.Topbar.Right.Portal,{children:t.jsx(Re,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p})})]}),e[22]=m,e[23]=f.formState.isDirty,e[24]=p,e[25]=i.description,e[26]=i.title,e[27]=S,e[28]=C,e[29]=I):I=e[29];let T;e[30]!==f?(T=t.jsx("div",{className:"h-full",children:t.jsx(Mt,{form:f})}),e[30]=f,e[31]=T):T=e[31];let $;return e[32]!==I||e[33]!==T?($=t.jsxs(ge,{children:[I,T]}),e[32]=I,e[33]=T,e[34]=$):$=e[34],$}function Bt(s){const e=z.c(10),{itemId:l}=s,n=W();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=Ot(),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(Fe,{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=Oe(),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}),R=Pt({client:L}),N=R.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}))},[F,O]=D.useState("json"),[Q,J]=D.useState(!1);E&&!Q&&(O("ui"),J(!0));const je=N?.inputSchema?.properties,be=je?Object.keys(je):[],Z=be.length>0,X={};if(Z&&N?.inputSchema?.properties)for(const c of be)X[c]=N.inputSchema.required?.includes(c)?"":void 0;const ne=c=>Object.prototype.hasOwnProperty.call(r,c),He=async()=>{$(!0),I(null),j(null),b(null),w(null),y(null);const c=performance.now();try{if(!L)throw new Error("MCP client is not available");const g=Z?{...X,...r}:(()=>{const M=h.trim();if(!M)return{};const V=JSON.parse(M);if(V&&typeof V=="object")return V;throw new Error("Raw JSON input must be an object.")})();Z&&N?.inputSchema?.properties&&Object.entries(N.inputSchema.properties).forEach(([M,V])=>{if((V.type==="object"||V.type==="array")&&typeof g[M]=="string")try{g[M]=JSON.parse(g[M])}catch{}else if((V.type==="number"||V.type==="integer")&&typeof g[M]=="string"&&g[M]!==""){const Se=Number(g[M]);Number.isNaN(Se)||(g[M]=Se)}});const P=await L.callTool({name:s,arguments:g}),ee=P.structuredContent??P,Ge=performance.now(),Xe=Math.round(Ge-c);j(ee),b(P),w(g);const et=JSON.stringify(ee),ve=new TextEncoder().encode(et).length;y({duration:`${Xe}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(g){const P=g instanceof Error?g.message:String(g);I(P||"Unknown error occurred");const ee=performance.now();y({duration:`${Math.round(ee-c)}ms`})}finally{$(!1)}},le=(c,g)=>{i(P=>({...P,[c]:g}))},Ke=()=>{j(null),b(null),w(null),I(null),y(null)},We=N?.name??Lt(s),Qe=t.jsx(Ue,{children:t.jsxs(_e,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:k.slug},children:o("details.tool.connections")})})}),t.jsx(oe,{}),A&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:k.slug,appSlug: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:Z&&N?.inputSchema?.properties?Object.entries(N.inputSchema.properties).map(([c,g])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[c,N.inputSchema?.required?.includes(c)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:g.type})]}),g.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:g.description}),g.type==="object"||g.type==="array"?t.jsx(pe,{className:"font-mono text-xs",value:ne(c)?r[c]??"":X[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enterAsJson",{key:c}),rows:3}):g.type==="boolean"?t.jsxs(Ie,{value:ne(c)?String(r[c]??""):"",onValueChange:P=>le(c,P==="true"),children:[t.jsx(Te,{children:t.jsx($e,{placeholder:o("details.tool.selectTrueOrFalse")})}),t.jsxs(Pe,{children:[t.jsx(de,{value:"true",children:"true"}),t.jsx(de,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:ne(c)?r[c]??"":X[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enter",{key:c})})]},c)):N?.inputSchema&&!Z?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:o("details.tool.rawJsonInput")}),t.jsx(pe,{className:"font-mono text-xs min-h-[120px]",value:h,onChange:c=>p(c.target.value),placeholder:o("details.tool.rawJsonExample")})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:o("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:T?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Ke,children:[t.jsx(mt,{className:"h-3.5 w-3.5"}),o("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:He,children:[t.jsx(Ct,{className:"h-3.5 w-3.5 fill-current"}),o("details.tool.executeTool")]})})]}),Ze=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:o("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[v&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.duration})]}),v.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.tokens})]}),v.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(xt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.bytes})]}),v.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:v.cost})})]}),E&&t.jsx(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:F==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>O("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:F==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>O("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&&F==="ui"&&L?t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(G,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:o("details.tool.loadingApp")})]})}),children:t.jsx(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(Rt,{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:[R.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):R.isLoading?t.jsx(G,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:R.isSuccess?"ready":R.isLoading?"connecting":"error"})]}),t.jsx($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}),Ze]})})]})})}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(G,{className:"size-8 text-muted-foreground"})}),e[14]=h):h=e[14];let p;return e[15]!==r||e[16]!==m||e[17]!==n||e[18]!==l?(p=t.jsx(D.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:l,connectionId:r,siblings:n,onSelectInstance:u,onBack:m})}),e[15]=r,e[16]=m,e[17]=n,e[18]=l,e[19]=p):p=e[19],p}const Vt={prompt: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 R;s[35]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(ht,{size:36,className:"text-muted-foreground"}),s[35]=R):R=s[35];let N;s[36]!==m?(N=m("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=m,s[37]=N):N=s[37];let E;s[38]!==m?(E=m("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=m,s[39]=E):E=s[39];let _;s[40]!==m?(_=m("orgs.collectionDetail.goBackButton"),s[40]=m,s[41]=_):_=s[41];let F;s[42]!==d||s[43]!==_?(F={onClick:d,children:_},s[42]=d,s[43]=_,s[44]=F):F=s[44];let O;s[45]!==N||s[46]!==E||s[47]!==F?(O=t.jsx(Ft,{icon:R,title:N,description:E,buttonProps:F}),s[45]=N,s[46]=E,s[47]=F,s[48]=O):O=s[48];let Q;return s[49]!==L||s[50]!==O?(Q=t.jsx(ge,{leading:L,children:O}),s[49]=L,s[50]=O,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 Qo(){const s=z.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Fe,{children:t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(G,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Qo 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-CJvGo7M-.js";import{i as I,n as L}from"./ArrowUp-ZHCqKDUA.js";import{i as F}from"./Check-ocmT1xhM.js";import{a as O,i as P,c as Y}from"./XClose-B5O4OZct.js";import{T as G,a as H,b as K,c as W}from"./tooltip-ChaEDFwp.js";import{V as q}from"./view-mode-toggle-BaA42o_l.js";import{B as J}from"./badge-DMewhq-R.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-CJvGo7M-.js";import{i as C}from"./SearchMd-MG_xST09.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-CJvGo7M-.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-B0ylfHsr.js";import{i as W,n as z}from"./ArrowUp-ZHCqKDUA.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,Z as j,j as u,n as h,P as T,b as C,l as b}from"./index-
|
|
1
|
+
import{c as g,Z as j,j as u,n as h,P as T,b as C,l as b}from"./index-CJvGo7M-.js";import{B as v}from"./badge-DMewhq-R.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-CJvGo7M-.js";import{i as U}from"./Check-ocmT1xhM.js";import{i as V}from"./Tool01-COB6rywP.js";import{e as W,C as X,b as Y,a as Z,c as _,d as ee}from"./command-C3KYPhtk.js";import{a as se,P as te,b as le}from"./popover-Dc6K6r1C.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,aE as j}from"./index-
|
|
1
|
+
import{c as f,l as u,j as n,aE as j}from"./index-CJvGo7M-.js";import{_ as x}from"./index-DqJtHo4n.js";import{D as b,d as w,h as y,c as C,b as z}from"./dialog-BTnr_AVV.js";import{i as D}from"./SearchMd-MG_xST09.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(z,{className:_,closeButtonClassName:"hidden",children:v}),e[21]=_,e[22]=v,e[23]=k):k=e[23];let N;return e[24]!==o||e[25]!==h||e[26]!==k?(N=n.jsxs(b,{...o,children:[h,k]}),e[24]=o,e[25]=h,e[26]=k,e[27]=N):N=e[27],N}function 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(D,{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 E=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(E(),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,E as g,P as h};
|
package/dist/client/assets/{companion-mcps-section-CeQtVwUw.js → companion-mcps-section-DhDS_06A.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-CJvGo7M-.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-CNhRUvA5.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-Bull_Zxw.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 D,r as G,l as ee,j as s,fs as te,a0 as se,ae as ne,T as ie,B as F,t as q,eM as oe,dY as le,am as ae}from"./index-
|
|
1
|
+
import{c as _,b as D,r as G,l as ee,j as s,fs as te,a0 as se,ae as ne,T as ie,B as F,t as q,eM as oe,dY as le,am as ae}from"./index-CJvGo7M-.js";import{a as re,A as ce}from"./alert-DslM1OpO.js";import{a as de,b as ue,c as V,d as me,S as pe}from"./select-_7jCWmPs.js";import{T as fe,c as xe,a as ge,b as he}from"./tabs-CbBMI_3w.js";import{u as J}from"./use-copy-DYjRVCxp.js";import{i as X}from"./Check-ocmT1xhM.js";import{a as Q}from"./Copy01-Djl84HjT.js";import{i as ye}from"./Key01-BCjLeK7M.js";import{i as Ce}from"./Link01-CBc36KC8.js";import{C as je,a as be,b as ve}from"./client-icons-D5aE3fDf.js";import{u as we,a as Ne,A as $e}from"./api-keys-Dq1Bnar4.js";import{R as ke}from"./require-capability-CQeOwSD4.js";import"./index-P6xk5T3b.js";import"./ChevronUp-BEGO8LAp.js";import"./AlertCircle-iVRTcaBg.js";import"./Plus-ojokEQ8x.js";import"./Trash01-DTUu7NOU.js";import"./alert-dialog-BhgAEu2i.js";import"./dialog-BTnr_AVV.js";import"./X-B5gw2EHv.js";import"./input-DmhYaSfN.js";import"./label-4VvccInH.js";import"./use-mcp-client-CNhRUvA5.js";import"./auth-uih7AqvO.js";import"./access-gate-BIKeQRL_.js";import"./capability-load-error-BUHyT4vC.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,R as w,am as k,B as y}from"./index-
|
|
1
|
+
import{c as v,b as N,j as s,R as w,am as k,B as y}from"./index-CJvGo7M-.js";import{i as z}from"./X-B5gw2EHv.js";import{at as _,ak as C}from"./agent-icon-BsnTrJjJ.js";const S="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function $(){const t=v.c(13),e=N();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),t[0]=l):l=t[0];let n;t[1]!==e?(n=e("routes.reportsOnboarding.connectModal.quote"),t[1]=e,t[2]=n):n=t[2];let o;t[3]!==n?(o=s.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",n,"”"]}),t[3]=n,t[4]=o):o=t[4];let a;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=a):a=t[5];let r;t[6]!==e?(r=e("routes.reportsOnboarding.connectModal.quoteAuthor"),t[6]=e,t[7]=r):r=t[7];let i;t[8]!==r?(i=s.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[a,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let c;return t[10]!==o||t[11]!==i?(c=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=c):c=t[12],c}function 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 a;t[6]!==o?(a={Icon:w,label:o},t[6]=o,t[7]=a):a=t[7];let r;t[8]!==e?(r=e("routes.reportsOnboarding.connectModal.trustNeverSold"),t[8]=e,t[9]=r):r=t[9];let i;t[10]!==r?(i={Icon:C,label:r},t[10]=r,t[11]=i):i=t[11];let c;t[12]!==n||t[13]!==a||t[14]!==i?(c=[n,a,i],t[12]=n,t[13]=a,t[14]=i,t[15]=c):c=t[15];const m=c;let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"h-px w-full bg-white/15"}),t[16]=f):f=t[16];let d;return t[17]!==m?(d=s.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[f,s.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:m.map(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:a}=t,r=N(),i=l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null;let c;e[0]!==o||e[1]!==r?(c=o&&s.jsx("button",{type:"button",onClick:o,"aria-label":r("routes.reportsOnboarding.connectModal.close"),className:"absolute right-3 top-3 z-10 flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-black/10 hover:text-foreground lg:text-white/80 lg:hover:bg-white/15 lg:hover:text-white",children:s.jsx(z,{size:18})}),e[0]=o,e[1]=r,e[2]=c):c=e[2];let m,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"size-7 shrink-0 dark:hidden"}),f=s.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"hidden size-7 shrink-0 dark:block"}),e[3]=m,e[4]=f):(m=e[3],f=e[4]);let d;e[5]!==i||e[6]!==l?(d=l&&s.jsxs(s.Fragment,{children:[s.jsx(k,{size:16,className:"shrink-0 text-foreground/25"}),i&&s.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center overflow-hidden rounded bg-white",children:s.jsx("img",{src:i,alt:"",className:"size-full"})}),s.jsx("span",{className:"truncate text-[15px] leading-tight text-muted-foreground",children:l})]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let x;e[8]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[m,f,d]}),e[8]=d,e[9]=x):x=e[9];let g;e[10]!==n?(g=s.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:n}),e[10]=n,e[11]=g):g=e[11];let h;e[12]!==a||e[13]!==x||e[14]!==g?(h=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[x,a,g]}),e[12]=a,e[13]=x,e[14]=g,e[15]=h):h=e[15];let u,b;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),b=s.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=u,e[17]=b):(u=e[16],b=e[17]);let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[u,b,s.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[s.jsx("div",{className:"flex-1"}),s.jsx($,{}),s.jsx("div",{className:"flex-1"}),s.jsx(M,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==c||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[c,h,p]}),e[19]=c,e[20]=h,e[21]=j):j=e[21],j}function I(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:a,children:r}=t,i=n||!l,c=l&&!n?r:null;let m;return e[0]!==o||e[1]!==a||e[2]!==i||e[3]!==c?(m=s.jsxs(y,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal classic:rounded-lg py-3 text-center text-base font-medium leading-tight",onClick:a,disabled:i,children:[o,c]}),e[0]=o,e[1]=a,e[2]=i,e[3]=c,e[4]=m):m=e[4],m}export{A as C,I as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ap as o,bO as a,bP as t,aq as e,bQ as i,bR as r,cX as p,dC as b,cT as m}from"./index-
|
|
1
|
+
import{ap as o,bO as a,bP as t,aq as e,bQ as i,bR as r,cX as p,dC as b,cT as m}from"./index-CJvGo7M-.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 D,a0 as S,a6 as $,K as F,a8 as R,b as K,l as T,j as c,eM as q}from"./index-
|
|
1
|
+
import{c as D,a0 as S,a6 as $,K as F,a8 as R,b as K,l as T,j as c,eM as q}from"./index-CJvGo7M-.js";import{u as O}from"./useInfiniteQuery-ChD58h72.js";import{g as A}from"./connection-slug-CITJ0kGN.js";import{I as V}from"./integration-icon-DBmxvUTr.js";function X(t){const e=D.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:_}=I;return o.call("COLLECTION_REGISTRY_APP_LIST",{limit:24,cursor:_,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(Y)??[],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 Y(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=A(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=A(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=D.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=T("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,_=o?0:void 0,M=o&&i!==void 0?i:void 0;let g;e[3]!==o?(g=o?L=>{L.target===L.currentTarget&&(L.key==="Enter"||L.key===" ")&&(L.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(V,{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:T("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]!==_||e[40]!==M||e[41]!==g?(E=c.jsx(q,{className:d,onClick:o,role:I,tabIndex:_,"aria-pressed":M,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=d,e[38]=I,e[39]=_,e[40]=M,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};
|