decocms 4.515.1 → 4.517.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-CHmxGMIj.js → ActiveShapeUtils-BB436TvV.js} +1 -1
- package/dist/client/assets/{AlertCircle-CUAx3A4b.js → AlertCircle-Cch634f7.js} +1 -1
- package/dist/client/assets/{AreaChart-CW0Iiw9b.js → AreaChart-CpsihjcZ.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BWCsylYe.js → ArrowLeft-CohopnCT.js} +1 -1
- package/dist/client/assets/{ArrowUp-EL0FBv9C.js → ArrowUp-DLUdomd9.js} +1 -1
- package/dist/client/assets/{BarChart-7G_lP-bc.js → BarChart-DC5-aC-9.js} +1 -1
- package/dist/client/assets/{Building02-PifDTlhb.js → Building02-BHJQSDUK.js} +1 -1
- package/dist/client/assets/{CartesianChart-CQlacwEw.js → CartesianChart-dMOiAgfo.js} +1 -1
- package/dist/client/assets/{CategoricalChart-QwBn7EzX.js → CategoricalChart-BCAB1JR1.js} +3 -3
- package/dist/client/assets/{CheckCircle-CMGqXocs.js → CheckCircle-Cs8i9zYt.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BSRBjpBn.js → ChevronSelectorVertical-C5d75KyY.js} +1 -1
- package/dist/client/assets/{ChevronUp-x46FJEcD.js → ChevronUp-BT7eMKPK.js} +1 -1
- package/dist/client/assets/{Copy01-OBSYmimV.js → Copy01-B341DqLV.js} +1 -1
- package/dist/client/assets/{CreditCard01-DWsSThAm.js → CreditCard01-4Fwr0tNh.js} +1 -1
- package/dist/client/assets/{DotsVertical-jkvtcdek.js → DotsVertical-DbrlDgFh.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-MNRbBKZp.js → ErrorBarContext-t45nElJh.js} +1 -1
- package/dist/client/assets/{Globe04-blkS_Kfg.js → Globe04-BE6c1UDj.js} +1 -1
- package/dist/client/assets/{Image01-BCnLFq1D.js → Image01-hTzc15CE.js} +1 -1
- package/dist/client/assets/{Key01-CG7Kua6O.js → Key01-kTu6t6u_.js} +1 -1
- package/dist/client/assets/{Link01-8aKNfNRw.js → Link01-hfA48cFL.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DcsqjBuj.js → LinkBroken01-Dioz3u9i.js} +1 -1
- package/dist/client/assets/{Minus-B38cW2ZC.js → Minus-DqDPTtRG.js} +1 -1
- package/dist/client/assets/{Monitor01-DQEkUL3d.js → Monitor01-Bz6QaUO4.js} +1 -1
- package/dist/client/assets/{Play-Ns9aRVTY.js → Play-CByslM3d.js} +1 -1
- package/dist/client/assets/{Plus-vkM1FxVr.js → Plus-Dewm72je.js} +1 -1
- package/dist/client/assets/ReferenceLine-DV9hYxt_.js +1 -0
- package/dist/client/assets/{SearchMd-Cp6J-1Iu.js → SearchMd-7Jo0ZofC.js} +1 -1
- package/dist/client/assets/{Sector-BeXkYaJv.js → Sector-D64VY8hG.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-aJuRSlBz.js → ShoppingBag01-BStpgW0a.js} +1 -1
- package/dist/client/assets/{Sun-k4hypx5Q.js → Sun-C37Hpdko.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-B5WFt7_0.js → SwitchHorizontal01-CrC4ThKg.js} +1 -1
- package/dist/client/assets/{Tool01-BsK9c3-e.js → Tool01-2gJDR0Ho.js} +1 -1
- package/dist/client/assets/{Trash01-Z1ezoy3S.js → Trash01-DjE7Raat.js} +1 -1
- package/dist/client/assets/{Upload01-B3-nlnKa.js → Upload01-CYfTR3aZ.js} +1 -1
- package/dist/client/assets/{User01-C2Sw39bs.js → User01-X6IeKYZH.js} +1 -1
- package/dist/client/assets/{UserSquare-BBEl_BxL.js → UserSquare-pmxb5ZdZ.js} +1 -1
- package/dist/client/assets/{Users01-DMFeioyM.js → Users01-uKJoVSle.js} +1 -1
- package/dist/client/assets/{XClose-BdwIxxCT.js → XClose-BVxVAZ6V.js} +1 -1
- package/dist/client/assets/{ZoomOut-DytgoG2i.js → ZoomOut-DixQygt2.js} +1 -1
- package/dist/client/assets/{access-gate-BUnHIPK_.js → access-gate-BpfEc6VH.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-F6QQAEZv.js → add-connection-dialog-BZwLO1Ja.js} +1 -1
- package/dist/client/assets/agent-analytics-Cb2tda3-.js +1 -0
- package/dist/client/assets/agent-app-HX00w6TV.js +1 -0
- package/dist/client/assets/agent-assets-e6Gk5J-Q.js +1 -0
- package/dist/client/assets/{agent-automation-CKRFKK95.js → agent-automation-jGwXvC8f.js} +1 -1
- package/dist/client/assets/{agent-automations-CoXmwt9k.js → agent-automations-DzW1crP1.js} +1 -1
- package/dist/client/assets/agent-calendar-DCHNIRTc.js +1 -0
- package/dist/client/assets/{agent-connect-sources-B_bS144d.js → agent-connect-sources-6bCKMOK5.js} +1 -1
- package/dist/client/assets/agent-deck-BV-5B8og.js +1 -0
- package/dist/client/assets/{agent-e2e-DC8ADnZZ.js → agent-e2e-DwASXEee.js} +1 -1
- package/dist/client/assets/agent-experiments-DetDutY3.js +1 -0
- package/dist/client/assets/agent-file-BvfhZ3mT.js +1 -0
- package/dist/client/assets/{agent-hosting-Tr8uV5DY.js → agent-hosting-BVT3wdCc.js} +1 -1
- package/dist/client/assets/{agent-icon--EtIPqub.js → agent-icon-CiKTiUdq.js} +1 -1
- package/dist/client/assets/agent-library-DSuyqe6T.js +1 -0
- package/dist/client/assets/agent-library-file-B1l2ZLvA.js +1 -0
- package/dist/client/assets/agent-monitor-C_MtaF0x.js +1 -0
- package/dist/client/assets/agent-overview-BaJQVLzH.js +1 -0
- package/dist/client/assets/agent-releases-rSbadgkl.js +2 -0
- package/dist/client/assets/agent-settings-DCjo4ZYC.js +1 -0
- package/dist/client/assets/{agent-site-editor-BML41A1E.js → agent-site-editor-DGIssniL.js} +2 -2
- package/dist/client/assets/agent-site-editor-code-BVwfCzHc.js +2 -0
- package/dist/client/assets/agent-site-editor-content-BU-vFmu-.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-Coo-Ni4u.js +1 -0
- package/dist/client/assets/agent-view-CftHb5tC.js +1 -0
- package/dist/client/assets/{agent-view-guard-BuPewEB-.js → agent-view-guard-Cz_9FSeB.js} +1 -1
- package/dist/client/assets/{agents-list-BxOpJ6GX.js → agents-list-BehVRlw8.js} +1 -1
- package/dist/client/assets/{ai-providers-BgJW78yt.js → ai-providers-Cfzh0dop.js} +1 -1
- package/dist/client/assets/{alert-BDbwlXZm.js → alert-DlpN1nbO.js} +1 -1
- package/dist/client/assets/{alert-dialog-C-DaggA1.js → alert-dialog-BdWXpnme.js} +1 -1
- package/dist/client/assets/{analytics-sections-i9-JccxC.js → analytics-sections-CBRurMfi.js} +1 -1
- package/dist/client/assets/analytics-tab-Bu3yOSFE.js +2 -0
- package/dist/client/assets/{api-keys-CsGvnzMj.js → api-keys-SwcfBYZn.js} +1 -1
- package/dist/client/assets/api-keys-jGYtI-cW.js +1 -0
- package/dist/client/assets/app-editor-BzaLO82-.js +1 -0
- package/dist/client/assets/{asset-utils-Cb8p2lKk.js → asset-utils-CYj7sEud.js} +1 -1
- package/dist/client/assets/{auth-C_nDagDA.js → auth-DVebpHI3.js} +1 -1
- package/dist/client/assets/{auth-catchall-DLKOtnms.js → auth-catchall-CM988zgH.js} +1 -1
- package/dist/client/assets/{auth-entry-CGuqEb3C.js → auth-entry-BM6bA3ji.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CA_lMCib.js → auth-split-layout-BnlVBIeL.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CpcQdSQ-.js → authenticate-and-persist-oauth-qcbNyaRp.js} +1 -1
- package/dist/client/assets/{automation-list-row-B0U8Omed.js → automation-list-row-BIlvc0v-.js} +1 -1
- package/dist/client/assets/{automation-runs-CHS-S7AU.js → automation-runs-jRApvuta.js} +1 -1
- package/dist/client/assets/{automations-BMiuIrti.js → automations-DMHgje9o.js} +1 -1
- package/dist/client/assets/{autosend-xoWUmECR.js → autosend-BTx7-p6a.js} +1 -1
- package/dist/client/assets/{avatar-DHKJiyOX.js → avatar-DjIkOwsx.js} +1 -1
- package/dist/client/assets/{badge-ux-RK1YK.js → badge-BfMggcm8.js} +1 -1
- package/dist/client/assets/{block-document-C53UA67Y.js → block-document-DKju3Lsl.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-CCLLqfhM.js → blocks-preview-workspace-context-AokvrTWO.js} +1 -1
- package/dist/client/assets/blocks-tab-states-5tpSikld.js +1 -0
- package/dist/client/assets/{blog-schema-CUXWCb3x.js → blog-schema-B8hGgOKc.js} +1 -1
- package/dist/client/assets/{buckets-KXy-OHx-.js → buckets-DzW1ArnB.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-7EW1ZAui.js → build-improve-prompt-doc-BGKe2ED3.js} +1 -1
- package/dist/client/assets/{calendar-qN6CeKGa.js → calendar-kdikRXDO.js} +1 -1
- package/dist/client/assets/campaigns-view-CXUV2H04.js +1 -0
- package/dist/client/assets/{capability-load-error-CoMXa4ni.js → capability-load-error-BuC7MxXm.js} +1 -1
- package/dist/client/assets/category-editor-jRguVRoH.js +1 -0
- package/dist/client/assets/{chart-86pPxb3F.js → chart-aHPEwhl0.js} +1 -1
- package/dist/client/assets/{chat-context-DXm8btNS.js → chat-context-BEyCIAaN.js} +2 -2
- package/dist/client/assets/{chat-draft-WGnppXw7.js → chat-draft-Dql_zG1A.js} +1 -1
- package/dist/client/assets/{checkbox-vFQy8MvV.js → checkbox-R6Pm_B33.js} +1 -1
- package/dist/client/assets/{choose-editor-Bry8-aop.js → choose-editor-C1zV1Fp9.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BM0cUkz3.js → cli-auth-success-Dw0y5N0L.js} +1 -1
- package/dist/client/assets/{client-icons-M2pakr5u.js → client-icons-C_WiAP0u.js} +1 -1
- package/dist/client/assets/cms-settings-editor-BAGntXvx.js +1 -0
- package/dist/client/assets/{collapsible-CnlVGt-G.js → collapsible-BcZaehP2.js} +1 -1
- package/dist/client/assets/{collection-detail-B_r2Oxl1.js → collection-detail-AO17C_8B.js} +1 -1
- package/dist/client/assets/{collection-display-button-ALXFDy_R.js → collection-display-button-C0cYhq66.js} +1 -1
- package/dist/client/assets/{collection-search--9d0M5sc.js → collection-search-7sBPioRN.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DyQ4WIpY.js → collection-table-wrapper-BzgZq6u7.js} +1 -1
- package/dist/client/assets/{collection-tabs-BfpnVdlQ.js → collection-tabs-DMsbicTn.js} +1 -1
- package/dist/client/assets/{column-rules-DgVqSNU2.js → column-rules-CBkHBJjn.js} +1 -1
- package/dist/client/assets/{combobox-BMxhMbUn.js → combobox-CEzxugDA.js} +1 -1
- package/dist/client/assets/{command-BlBQgQPI.js → command-KmLWWmqo.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-B3EkkVtL.js → companion-mcps-section-vJ3FRpYP.js} +1 -1
- package/dist/client/assets/{config-CE3I8pu5.js → config-0t8v4_10.js} +1 -1
- package/dist/client/assets/{connect-C4NhmEFJ.js → connect-Ceo_a42v.js} +1 -1
- package/dist/client/assets/{connect-layout-DZGJCEON.js → connect-layout-DXn91Bwy.js} +1 -1
- package/dist/client/assets/connect-source-dialog-DCA13Vr9.js +1 -0
- package/dist/client/assets/{connection-Bo3v2rj5.js → connection-BXCm7RUN.js} +1 -1
- package/dist/client/assets/{connection-card-DMfcnulT.js → connection-card-DudSxk_f.js} +1 -1
- package/dist/client/assets/{connection-detail-DxSeFIwH.js → connection-detail-Bzj7ZAYC.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-A3QfJozi.js → connection-form-helpers-BCgvOrMH.js} +1 -1
- package/dist/client/assets/{connections-DzbvhEpV.js → connections-DZsQ6PqI.js} +1 -1
- package/dist/client/assets/{content-tab-CaoAhPSw.js → content-tab-B8CAyeYn.js} +8 -8
- package/dist/client/assets/context-Dxx9Nppi.js +1 -0
- package/dist/client/assets/{context-menu-BD833dh0.js → context-menu-Bup14w-O.js} +1 -1
- package/dist/client/assets/{context-shell-D1uT0vY1.js → context-shell-YuMc6M7u.js} +3 -3
- package/dist/client/assets/{core.esm-DJ5llHMe.js → core.esm-BmE_KURk.js} +2 -2
- package/dist/client/assets/{create-organization-dialog-nhhaUNZK.js → create-organization-dialog-oYjru5bh.js} +1 -1
- package/dist/client/assets/{daily-pulse-Cry9rVi8.js → daily-pulse-Cj6zflmn.js} +1 -1
- package/dist/client/assets/{discover-C4Up8V0-.js → discover-BsfuhgQD.js} +1 -1
- package/dist/client/assets/{domain-settings-Bec9kB9d.js → domain-settings-BCFlmNLU.js} +1 -1
- package/dist/client/assets/{drawer-0sYDH2mt.js → drawer-Bi1-udV5.js} +1 -1
- package/dist/client/assets/{editor-BctLuJLS.js → editor-DAekV0he.js} +1 -1
- package/dist/client/assets/{editor-classes-BnPaf--r.js → editor-classes-BaBC2QPU.js} +1 -1
- package/dist/client/assets/{empty-state-D6RWdvUz.js → empty-state-B4dSQMeM.js} +1 -1
- package/dist/client/assets/{empty-state-DeArX05X.js → empty-state-wXIjf_EN.js} +1 -1
- package/dist/client/assets/experiments-tab-PntzDOfu.js +1 -0
- package/dist/client/assets/{experiments-tab-choice-CMHPX5ZC.js → experiments-tab-choice-CQ5EsK8h.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CBAyhzk-.js → extract-connection-data-Bg9K46Rs.js} +1 -1
- package/dist/client/assets/{feature-gate-DQ0ZaDj1.js → feature-gate-4u7sb4lR.js} +1 -1
- package/dist/client/assets/{feature-paywall-hsFyGLR_.js → feature-paywall-BsVH1P4Z.js} +1 -1
- package/dist/client/assets/{file-explorer-GrzeifA-.js → file-explorer-CsBngoR2.js} +1 -1
- package/dist/client/assets/{file-preview-Bcawxb03.js → file-preview-CVVpAx14.js} +1 -1
- package/dist/client/assets/{file-share-button-LmGmSS33.js → file-share-button-Dh2OblA7.js} +1 -1
- package/dist/client/assets/{file-type-icon-DHFVwXjA.js → file-type-icon-DYeFNgMs.js} +1 -1
- package/dist/client/assets/{folder-icon-BwmfzM1C.js → folder-icon-CMfbCZZj.js} +1 -1
- package/dist/client/assets/{form-D4PspedZ.js → form-BGI3x6he.js} +1 -1
- package/dist/client/assets/{general-CXfgWejD.js → general-AgdwRV2K.js} +1 -1
- package/dist/client/assets/home-B3JLIiqG.js +1 -0
- package/dist/client/assets/hosted-publish-api-Cg6A3e6a.js +1 -0
- package/dist/client/assets/hosted-publish-feedback-R86hK4rw.js +1 -0
- package/dist/client/assets/{icon-button-HZwQKD3a.js → icon-button-Du_O8eku.js} +1 -1
- package/dist/client/assets/{index-Bxkd37dZ.js → index-BEaGR-Ng.js} +1 -1
- package/dist/client/assets/{index-XzZeDzj0.js → index-BWEksKOa.js} +1 -1
- package/dist/client/assets/{index-CgVQmSg0.js → index-BXwVgYyP.js} +1 -1
- package/dist/client/assets/{index-ifZGovK1.js → index-BeWb3VLq.js} +52 -52
- package/dist/client/assets/{index-D_6gfRTQ.js → index-BflgjdLH.js} +1 -1
- package/dist/client/assets/{index-BCHFFeZZ.js → index-BliYmmPu.js} +1 -1
- package/dist/client/assets/{index-B32YFtAw.js → index-BnbMIYQC.js} +1 -1
- package/dist/client/assets/index-CEnumkKh.js +1 -0
- package/dist/client/assets/{index-BeV3dEoK.js → index-CcDpskhn.js} +2 -2
- package/dist/client/assets/{index-DNa7Epd0.js → index-CdhgpKbn.js} +1 -1
- package/dist/client/assets/{index-CafY8AgN.js → index-CkwxAoM4.js} +1 -1
- package/dist/client/assets/{index-DgfcOEet.js → index-CqX2WR0x.js} +1 -1
- package/dist/client/assets/{index-BjrJaWD9.js → index-CqllmV-p.js} +1 -1
- package/dist/client/assets/{index-gqp4B5qj.js → index-DVxNOEMj.js} +1 -1
- package/dist/client/assets/index-DjdMnw7p.css +1 -0
- package/dist/client/assets/{index-CvMuyNgv.js → index-Dw3D39xs.js} +1 -1
- package/dist/client/assets/{index-redirect-BKvfBlvA.js → index-redirect-BpERt5XK.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DvmMaiCa.js → infiniteQueryObserver-BOCgDRcQ.js} +1 -1
- package/dist/client/assets/{infra-billing-WLIR9CQb.js → infra-billing-443Q4BKf.js} +1 -1
- package/dist/client/assets/input-D1nDj3Gx.js +17 -0
- package/dist/client/assets/{input-BeDIlaby.js → input-D9vH1igB.js} +1 -1
- package/dist/client/assets/{integration-icon-D1aQLe0v.js → integration-icon-VoZokpOe.js} +1 -1
- package/dist/client/assets/{jira-icon-Bs7EGbwb.js → jira-icon-BOD4UX3O.js} +1 -1
- package/dist/client/assets/{label-Dhoh3DcI.js → label-TKhfC6jr.js} +1 -1
- package/dist/client/assets/{layout-dz9-bhT2.js → layout-OvvfNrHJ.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DO-8kywe.js → legacy-agents-deep-Bj2cFPCz.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BMyuR4az.js → legacy-main-redirect-Y-IABTgs.js} +1 -1
- package/dist/client/assets/library-CEpc5ko6.js +1 -0
- package/dist/client/assets/{login-DwOQDvQC.js → login-d1G00P7v.js} +1 -1
- package/dist/client/assets/{markdown-prFeEkT4.js → markdown-D_Bab0vD.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-fHjuxWIZ.js → mcp-app-renderer-C5DYTOzS.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CTJ5Iw4i.js → mcp-oauth-Bv0ymH6e.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CNKUkWMd.js → mcp-oauth-gJmjFND6.js} +1 -1
- package/dist/client/assets/{members-B9Wn7yAF.js → members-CGCmgk2j.js} +1 -1
- package/dist/client/assets/{memory-BDb7_tyh.js → memory-DjHNNPOW.js} +1 -1
- package/dist/client/assets/{mini-report-page-Bsjfan82.js → mini-report-page-BSYlfSmZ.js} +1 -1
- package/dist/client/assets/{mock-board-BWfjyR2S.js → mock-board-BCQJ9AHq.js} +3 -3
- package/dist/client/assets/{monaco-editor-Wx_2qGOP.js → monaco-editor-CVRVgXSh.js} +1 -1
- package/dist/client/assets/monitor-v8-CHgzPfyd.js +1 -0
- package/dist/client/assets/monitoring-mogv5pNr.js +1 -0
- package/dist/client/assets/{monitoring-stats-row-THiAXYTp.js → monitoring-stats-row-BEpenrU2.js} +1 -1
- package/dist/client/assets/{multi-select-DOxlfIKk.js → multi-select-ZwwArowo.js} +1 -1
- package/dist/client/assets/{mustache-BzHjgnm5.js → mustache-B20fDMb8.js} +1 -1
- package/dist/client/assets/named-rule-uses-Bxr3PCeC.js +1 -0
- package/dist/client/assets/named-rule-view-pF5yBmDb.js +1 -0
- package/dist/client/assets/{new-project-dialog-DFsG79bb.js → new-project-dialog-DfI138Mw.js} +1 -1
- package/dist/client/assets/{oauth-callback-BekJkoCF.js → oauth-callback-C0l4AVA-.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-FtcHAH0j.js → oauth-callback-ai-provider-DlpJWGZf.js} +1 -1
- package/dist/client/assets/{onboarding-DNskGrdg.js → onboarding-DMkG4-4M.js} +1 -1
- package/dist/client/assets/openai-conversation-BcQvnIOU.js +3 -0
- package/dist/client/assets/{optimistic-project-sidebar-views-CrYamEqL.js → optimistic-project-sidebar-views-CBzXyVUz.js} +1 -1
- package/dist/client/assets/order-monitor-day-raWLiT1v.js +1 -0
- package/dist/client/assets/{organization-choice-zGI39_sg.js → organization-choice-CSBUJWem.js} +1 -1
- package/dist/client/assets/{orgs-BjIQy8J3.js → orgs-DYr5Iir2.js} +1 -1
- package/dist/client/assets/{page-seo-form-CrgZFHtq.js → page-seo-form-C0_Mzxj0.js} +1 -1
- package/dist/client/assets/{pair-Ck7rgrik.js → pair-v8_ULhan.js} +7 -7
- package/dist/client/assets/parse-sections-CigeyiXV.js +1 -0
- package/dist/client/assets/plan-BYiUi2-G.js +1 -0
- package/dist/client/assets/{plan-ladder-BKLU8eo8.js → plan-ladder-CtR99jrd.js} +1 -1
- package/dist/client/assets/{popover-DaReiQzV.js → popover-s88DXvPL.js} +1 -1
- package/dist/client/assets/post-calendar-DbUDJn5r.js +1 -0
- package/dist/client/assets/{post-editor-CRy0VAcT.js → post-editor-CdhtoksR.js} +2 -2
- package/dist/client/assets/{preview-content-DJOuEciL.js → preview-content-BNZ95rhM.js} +1 -1
- package/dist/client/assets/{preview-dialog-CnlKftcv.js → preview-dialog-BZcvH5f1.js} +1 -1
- package/dist/client/assets/{preview-panel-C2Athpf5.js → preview-panel-CjWzxG-O.js} +1 -1
- package/dist/client/assets/{preview-tab-CzS9kIxI.js → preview-tab-ztwq5J9Z.js} +4 -4
- package/dist/client/assets/product-picker-dialog-CecFCJox.js +1 -0
- package/dist/client/assets/{profile-DAF3l5cg.js → profile-Bo384oXV.js} +1 -1
- package/dist/client/assets/project-app-view-C-JC6Lnp.js +1 -0
- package/dist/client/assets/{project-apps-CG2eY1ZZ.js → project-apps-BQ30Q_BX.js} +1 -1
- package/dist/client/assets/{project-feed-K24c6-Xx.js → project-feed--d7Txdh1.js} +1 -1
- package/dist/client/assets/{project-icon-ZadU5ZjL.js → project-icon-Ds8VtVRG.js} +1 -1
- package/dist/client/assets/project-reports-BRMk8sbv.js +1 -0
- package/dist/client/assets/project-tasks-DPFfk-Co.js +1 -0
- package/dist/client/assets/{projects-BWrIdbSy.js → projects-BN_UNvg1.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BWAilN1f.js → projects-empty-state-CmS_yrG7.js} +1 -1
- package/dist/client/assets/{prompts-DKnoRB34.js → prompts-g_Bby1s0.js} +1 -1
- package/dist/client/assets/record-editor-CmI7uwKH.js +1 -0
- package/dist/client/assets/redirect-editor-CBEbRvVY.js +1 -0
- package/dist/client/assets/releases-api-DbKlRR9w.js +1 -0
- package/dist/client/assets/reports-BKtNuFy0.js +1 -0
- package/dist/client/assets/{reports-Bg1fi6kR.js → reports-Bgmc-lqT.js} +1 -1
- package/dist/client/assets/{reports-onboarding-acV5ZZpQ.js → reports-onboarding-D6-A2sL7.js} +1 -1
- package/dist/client/assets/reports-tab-B_Sk2TLl.js +2 -0
- package/dist/client/assets/repositories-C2vwcNjc.js +1 -0
- package/dist/client/assets/repositories-CszhODTX.js +1 -0
- package/dist/client/assets/{repository-binding-DtIeSvDY.js → repository-binding-Cf_thK-b.js} +1 -1
- package/dist/client/assets/{repository-import-picker-C2sQ94O1.js → repository-import-picker-BOku3VrR.js} +1 -1
- package/dist/client/assets/repository-picker-CeCsQGv8.js +1 -0
- package/dist/client/assets/{require-capability-DAfCGgHW.js → require-capability-DC_q9Xad.js} +1 -1
- package/dist/client/assets/{required-auth-layout-4jyUcmCy.js → required-auth-layout-DhxdstQv.js} +1 -1
- package/dist/client/assets/{reset-password-BGjvzv1z.js → reset-password-BCS7WVZ6.js} +1 -1
- package/dist/client/assets/{resizable-CQyxQjcn.js → resizable-BySAwPSW.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-56O81FJc.js → resolve-tab-icon-B7CsMGsC.js} +1 -1
- package/dist/client/assets/{review-settings-CWih3HF4.js → review-settings-DtZi6zHg.js} +1 -1
- package/dist/client/assets/{roles-BRkp9ar3.js → roles-CGYNn4dv.js} +1 -1
- package/dist/client/assets/route-ChD1cXkH.js +1 -0
- package/dist/client/assets/route-ChLLCXC9.js +1 -0
- package/dist/client/assets/route-_su_B2um.js +1 -0
- package/dist/client/assets/{runnable-block-editor-CqYgijVY.js → runnable-block-editor-Bod17qTV.js} +7 -7
- package/dist/client/assets/sandbox-lifecycle-context-CCjKxqdS.js +1 -0
- package/dist/client/assets/{schema-Dvc5tPTN.js → schema-ClGCzPdy.js} +1 -1
- package/dist/client/assets/{schema-Cn4x5iT-.js → schema-b5uziS6S.js} +1 -1
- package/dist/client/assets/{scroll-area-9wUBmncr.js → scroll-area-BVZXqx5M.js} +1 -1
- package/dist/client/assets/{search-input-1DLvCYgl.js → search-input-BL6XGlmm.js} +1 -1
- package/dist/client/assets/{search-toggle-BnK2KHqJ.js → search-toggle-IRNGzCzn.js} +1 -1
- package/dist/client/assets/secret-ciphertext-CKG2rzpX.js +1 -0
- package/dist/client/assets/{secret-picker-B4zI9e3W.js → secret-picker-NNIqKwTx.js} +1 -1
- package/dist/client/assets/{secrets-C2PS9_a9.js → secrets-BLs8g0Qc.js} +1 -1
- package/dist/client/assets/{sections-DX6pY_bs.js → sections-Dw8sSpTv.js} +1 -1
- package/dist/client/assets/sections-editor-IbsR8YsO.js +4 -0
- package/dist/client/assets/{select-DUEGSJco.js → select-H4FJk0rp.js} +1 -1
- package/dist/client/assets/{select-model-mFyCcf-O.js → select-model-VSltfcKe.js} +1 -1
- package/dist/client/assets/seo-editor-DJxK0wxd.js +1 -0
- package/dist/client/assets/{separator-Bk_a4cod.js → separator-l8ktDBQ-.js} +1 -1
- package/dist/client/assets/settings-tab-D08h17sS.js +1 -0
- package/dist/client/assets/{sheet-Dhe0uPV2.js → sheet-DdrzSnyB.js} +1 -1
- package/dist/client/assets/{shell-layout-U7D4A6nk.js → shell-layout-Dpds4_um.js} +1 -1
- package/dist/client/assets/{site-draft-actions-Dpnw67Ug.js → site-draft-actions-B1VIigls.js} +6 -6
- package/dist/client/assets/site-draft-view-BvQXujRd.js +2 -0
- package/dist/client/assets/site-editor-B8qpeTpl.js +1 -0
- package/dist/client/assets/site-editor-toast-C48kJZ8y.js +1 -0
- package/dist/client/assets/{skills-DghKPwKw.js → skills-F7XSMMWV.js} +1 -1
- package/dist/client/assets/{slider-CLUaEqdg.js → slider-tSRa1HDF.js} +1 -1
- package/dist/client/assets/{sortable.esm-CkqHW6-y.js → sortable.esm-CE2eXOQU.js} +1 -1
- package/dist/client/assets/{sso-DGFWPeza.js → sso-B_KsCvoW.js} +1 -1
- package/dist/client/assets/{suggestion-BNEVVm5c.js → suggestion-Bu3BweEe.js} +1 -1
- package/dist/client/assets/{switch-ByCU93P4.js → switch-BI2l0q9a.js} +1 -1
- package/dist/client/assets/{symbol-BQLM2_V8.js → symbol-CW0bfPL3.js} +1 -1
- package/dist/client/assets/{synced-repos-CjPrTUpI.js → synced-repos-BXQtYjtL.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-Cz_BoFAU.js → tab-icon-glyph-B_hAV_wB.js} +1 -1
- package/dist/client/assets/{table-Tw2gCVXe.js → table-BI-3H0Nx.js} +1 -1
- package/dist/client/assets/{tabs-C7f3nqQx.js → tabs-Cw5epDK7.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-BiPanmNM.js → task-assignee-avatar-B4jYRjC8.js} +1 -1
- package/dist/client/assets/{task-board-BrTYr-oE.js → task-board-ByNQwZsl.js} +1 -1
- package/dist/client/assets/{task-route-BLP-DBaS.js → task-route-B8oSJFnj.js} +1 -1
- package/dist/client/assets/{task-status-CVpsP3bD.js → task-status-GAY2L2Vz.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-CQMw4wzL.js → taskboard-analytics-MtxZahkF.js} +1 -1
- package/dist/client/assets/{tasks-CtPgnGlW.js → tasks-CaRFrr2H.js} +1 -1
- package/dist/client/assets/tasks-Zus8qgLK.js +1 -0
- package/dist/client/assets/{textarea-Bbbnnl4r.js → textarea-7I-DLD6x.js} +1 -1
- package/dist/client/assets/{thread-analytics-CtQHMk9N.js → thread-analytics-BhyMnytl.js} +1 -1
- package/dist/client/assets/{thread-intent-7GmQH5mt.js → thread-intent-CoB1rbzj.js} +2 -2
- package/dist/client/assets/{thread-route-C7RSGMhP.js → thread-route-BPSSuk8V.js} +1 -1
- package/dist/client/assets/{thread-route-DpLeB4i0.js → thread-route-Bjcqwe4C.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-dWggSd-b.js → thread-sheet-body-DyDxpawL.js} +1 -1
- package/dist/client/assets/{time-range-picker-BVXe-Owx.js → time-range-picker-DJ-TaM2M.js} +1 -1
- package/dist/client/assets/{toggle-group-CXUKmPFr.js → toggle-group-BngkTNsG.js} +1 -1
- package/dist/client/assets/{tool-namespace-DIE_8J9o.js → tool-namespace-DePiqr-m.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DzJeqLa2.js → toolbar-icon-button-DKjsnGdZ.js} +1 -1
- package/dist/client/assets/{tooltip-gMeEuHtO.js → tooltip-4vv5k-uR.js} +1 -1
- package/dist/client/assets/{tooltipContext-BQS7kWxi.js → tooltipContext-B3bWUtmi.js} +1 -1
- package/dist/client/assets/{track-DdeuRUoM.js → track-C0wfSYRO.js} +1 -1
- package/dist/client/assets/{types-CHFSNT7a.js → types-CNU-uWw-.js} +1 -1
- package/dist/client/assets/{url-slug-D37s8EDd.js → url-slug-DU3tFMUC.js} +1 -1
- package/dist/client/assets/{usage-stats-BecGIkLk.js → usage-stats-CKpL0uWf.js} +2 -2
- package/dist/client/assets/{use-ai-providers-CAt_9H4n.js → use-ai-providers-Ct47MIru.js} +1 -1
- package/dist/client/assets/use-apply-named-rule-R20A_NaL.js +1 -0
- package/dist/client/assets/{use-automations-C6LbyvJD.js → use-automations-Ho0ayZT_.js} +1 -1
- package/dist/client/assets/{use-autosave-e9CI9oFB.js → use-autosave-DzNsVsl3.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-24wCHq_-.js → use-chat-layout-state-CWI-mwQI.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DflKMAWl.js → use-clock-tick-DE4s8Okz.js} +1 -1
- package/dist/client/assets/{use-connect-companion-3OWtftC8.js → use-connect-companion-Dmdscsai.js} +1 -1
- package/dist/client/assets/{use-connection-CBKH8IwL.js → use-connection-HenJjVMr.js} +1 -1
- package/dist/client/assets/use-content-sync-C0CqYtRD.js +1 -0
- package/dist/client/assets/{use-copy-Cn8Org7G.js → use-copy-C4LbXPXl.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-jW1iVRi_.js → use-create-virtual-mcp-dBeQ8KM_.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DTRxIyi4.js → use-date-fns-locale-DBqQ9Xwt.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DDaoW-uw.js → use-debounced-autosave-B_kpX8YN.js} +1 -1
- package/dist/client/assets/{use-debounced-value-c5JdkW89.js → use-debounced-value-Br6JzfN-.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D8w-JIDW.js → use-deco-credits-DhL8Ql0T.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Cp8NaBPU.js → use-decopilot-events-CuBncVze.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BJIObh7l.js → use-delete-connection-DuErB0IF.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-D7XKR1Dx.js → use-deployment-admin-BOXhbvir.js} +1 -1
- package/dist/client/assets/use-fast-preview-draft-url-BPrZ2XMf.js +1 -0
- package/dist/client/assets/{use-file-configs-DW0hmZjE.js → use-file-configs-B_k4AoEo.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-DOpe-XBh.js → use-inbox-feed-D96kN3Ph.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Cuyf7850.js → use-infinite-scroll-Ba0Xf9MO.js} +1 -1
- package/dist/client/assets/{use-join-requests-CBahVlKF.js → use-join-requests-DNpCy_xv.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-BndsHuRH.js +1 -0
- package/dist/client/assets/{use-mcp-auth-status-Cs8ZHHaN.js → use-mcp-auth-status-BOQ5PtOH.js} +1 -1
- package/dist/client/assets/{use-mcp-client-D1kFCZ4v.js → use-mcp-client-2WkK0AxE.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-wKDmQlGB.js → use-mcp-prompts-BY0itm-N.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-I-kpM305.js → use-mcp-tools-Wkfd46Rr.js} +1 -1
- package/dist/client/assets/{use-members-0ZBHc0S5.js → use-members-Cl1_-fx1.js} +1 -1
- package/dist/client/assets/{use-mobile-CKoO3XSk.js → use-mobile-BAnIvR27.js} +1 -1
- package/dist/client/assets/use-move-blocks-lN8kagdi.js +1 -0
- package/dist/client/assets/{use-navigate-to-agent-DLX1nkvn.js → use-navigate-to-agent-C2NQ-36B.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-C5lEsbaH.js → use-open-billing-url-Bewtr0D-.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-t4l-TKT1.js → use-org-auth-client-vWdVrvgR.js} +1 -1
- package/dist/client/assets/{use-org-fs-49a1bhbu.js → use-org-fs-CxjQMzFd.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BunA5GFg.js → use-org-repo-syncs-dRJpc7Ti.js} +1 -1
- package/dist/client/assets/{use-org-sso-B_zXOLDA.js → use-org-sso-BnFa9r-G.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Bc45ILhm.js → use-organization-roles-D9hV-WPT.js} +1 -1
- package/dist/client/assets/{use-organization-settings-laAOR3Cm.js → use-organization-settings-CE5BJyh9.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-Bghh8kV3.js → use-panel-navigate-CXkMPISv.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-C3Vtd78t.js → use-project-native-view-presence-D4-BL2Rg.js} +1 -1
- package/dist/client/assets/{use-project-scope-DH5nL_oD.js → use-project-scope-BOj2O9A_.js} +1 -1
- package/dist/client/assets/{use-recent-apps-D6yVH6-8.js → use-recent-apps-Cj-iBJUa.js} +1 -1
- package/dist/client/assets/{use-releases-G0pirYfu.js → use-releases-2-Z6BMdW.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BKJYEIJX.js → use-reports-diagnostic-D--oIp45.js} +1 -1
- package/dist/client/assets/use-sandbox-events-BVhJrX2Z.js +2 -0
- package/dist/client/assets/{use-secrets-DszBqpzD.js → use-secrets-CQ9dfY46.js} +1 -1
- package/dist/client/assets/use-section-preview-base-CrcAXE9z.js +1 -0
- package/dist/client/assets/use-session-runtime-CqJF6neP.js +1 -0
- package/dist/client/assets/{use-sidebar-collapsed-CuPY8XXm.js → use-sidebar-collapsed-NZNztmvG.js} +1 -1
- package/dist/client/assets/{use-tags-BsXvHuTC.js → use-tags-BG7cxCCb.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BtNGPBbp.js → use-task-board-analytics-BhvhSxL9.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BARWSwfj.js → use-task-board-events-CtQgceab.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BhAhDKGd.js → use-task-board-item-prs-Dp099nXL.js} +1 -1
- package/dist/client/assets/{use-task-metadata-Dd-9Qkoq.js → use-task-metadata-BBoC1uvX.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-B9Rm3t_E.js → use-thread-analytics-g0_FCkSl.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CoFWg3_v.js → use-thread-outputs-C38yfNsJ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CxzyY6DS.js +1 -0
- package/dist/client/assets/{useQueries-_Urb_S-y.js → useQueries-DSs3oNbf.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CWvS_hOW.js +1 -0
- package/dist/client/assets/{users-BXTFPRVd.js → users-BAyRTNUi.js} +1 -1
- package/dist/client/assets/{utils-CduIoZ0d.js → utils-t1gjPfET.js} +1 -1
- package/dist/client/assets/{variant-calendar-D0iLcmjF.js → variant-calendar-BYITnHO8.js} +1 -1
- package/dist/client/assets/{variant-draft-pointer-HWAlFj6Z.js → variant-draft-pointer-Cjn_TXkR.js} +1 -1
- package/dist/client/assets/{virtual-mcp-Xd6PvE5_.js → virtual-mcp-cTWrWR4Y.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-BoG6Bqps.js → watch-sse-pool-C9NPGTmI.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/migrate.js +214 -209
- package/dist/server/server.js +633 -633
- package/package.json +1 -1
- package/dist/client/assets/ReferenceLine-CJq91vhq.js +0 -1
- package/dist/client/assets/agent-analytics-2BuaXhJ4.js +0 -2
- package/dist/client/assets/agent-app-DW_869sy.js +0 -1
- package/dist/client/assets/agent-assets-CPVwuId5.js +0 -1
- package/dist/client/assets/agent-calendar-CV9Ef0wP.js +0 -1
- package/dist/client/assets/agent-deck-OUciFfON.js +0 -1
- package/dist/client/assets/agent-experiments-BwjYQ0V4.js +0 -1
- package/dist/client/assets/agent-file-CStNgNPQ.js +0 -1
- package/dist/client/assets/agent-library-Bf2YaEvb.js +0 -1
- package/dist/client/assets/agent-library-file-DAttgEac.js +0 -1
- package/dist/client/assets/agent-monitor-DIe6BVqe.js +0 -1
- package/dist/client/assets/agent-overview-popLuSBk.js +0 -1
- package/dist/client/assets/agent-releases-CZVpd2dN.js +0 -2
- package/dist/client/assets/agent-settings-C6L22aS3.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Dnn-bhoB.js +0 -2
- package/dist/client/assets/agent-site-editor-content-Bt6vrV5b.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-q3wCu8-N.js +0 -1
- package/dist/client/assets/agent-view-B1o861lr.js +0 -1
- package/dist/client/assets/api-keys-DfU9uedt.js +0 -1
- package/dist/client/assets/app-editor-Cq-B0QFL.js +0 -1
- package/dist/client/assets/blocks-tab-states-Chq5j0oT.js +0 -1
- package/dist/client/assets/campaigns-view-CwEmfYeP.js +0 -1
- package/dist/client/assets/category-editor-C-13e8GC.js +0 -1
- package/dist/client/assets/cms-settings-editor-CHoKFct5.js +0 -1
- package/dist/client/assets/coming-soon-page-6F4aAL8E.js +0 -1
- package/dist/client/assets/context-0XuHSild.js +0 -1
- package/dist/client/assets/home-DkYJf0RN.js +0 -1
- package/dist/client/assets/hosted-publish-api-CK3ZnEoi.js +0 -1
- package/dist/client/assets/hosted-publish-feedback-BG4t8HgW.js +0 -1
- package/dist/client/assets/index-EoMx4WDO.css +0 -1
- package/dist/client/assets/index-j4NUsiRT.js +0 -2
- package/dist/client/assets/input-DIcILgWd.js +0 -17
- package/dist/client/assets/library-BQ9URfiH.js +0 -1
- package/dist/client/assets/monitoring-BmpcQtwP.js +0 -1
- package/dist/client/assets/named-rule-uses-Mu_Msc9v.js +0 -1
- package/dist/client/assets/named-rule-view-CN2yeHp5.js +0 -1
- package/dist/client/assets/openai-conversation-_LIGb37e.js +0 -3
- package/dist/client/assets/order-monitor-day-DLFR-weA.js +0 -1
- package/dist/client/assets/parse-sections-YhOUxu7l.js +0 -1
- package/dist/client/assets/plan-Iixr6Ywe.js +0 -1
- package/dist/client/assets/post-calendar--v0MjZPE.js +0 -1
- package/dist/client/assets/product-picker-dialog-oD9OPZfl.js +0 -1
- package/dist/client/assets/project-app-view-CZXBsQ0a.js +0 -1
- package/dist/client/assets/project-reports-Crv9B-vM.js +0 -1
- package/dist/client/assets/project-tasks-Cz-57jQh.js +0 -1
- package/dist/client/assets/record-editor-d52mwz1n.js +0 -1
- package/dist/client/assets/redirect-editor-C-WKtN9s.js +0 -1
- package/dist/client/assets/releases-api-q3AffL1J.js +0 -1
- package/dist/client/assets/reports-B3miutne.js +0 -1
- package/dist/client/assets/reports-tab-Clf7FxSU.js +0 -2
- package/dist/client/assets/repositories-CxdgYwWQ.js +0 -1
- package/dist/client/assets/repositories-D42Ai47E.js +0 -1
- package/dist/client/assets/repository-picker-BXaWFfDW.js +0 -1
- package/dist/client/assets/route-4SgoFvu0.js +0 -1
- package/dist/client/assets/route-BEESJELS.js +0 -1
- package/dist/client/assets/route-D6eBZFy3.js +0 -1
- package/dist/client/assets/sandbox-lifecycle-context-DdMgF1Lv.js +0 -1
- package/dist/client/assets/sections-editor-DD9uWqQ8.js +0 -4
- package/dist/client/assets/seo-editor-Bf-sfYSP.js +0 -1
- package/dist/client/assets/settings-tab-DpQMA4J6.js +0 -1
- package/dist/client/assets/site-draft-view-Cho80MC6.js +0 -2
- package/dist/client/assets/site-editor-34XlqmyW.js +0 -1
- package/dist/client/assets/tasks-C_346UtB.js +0 -1
- package/dist/client/assets/use-apply-named-rule-B_CXDUdG.js +0 -1
- package/dist/client/assets/use-content-sync-D_qyLHCv.js +0 -1
- package/dist/client/assets/use-fast-preview-draft-url-CSz1rYUo.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-CVsgtXg7.js +0 -1
- package/dist/client/assets/use-move-blocks-Dm4etxGk.js +0 -1
- package/dist/client/assets/use-section-preview-base-BASvFHv_.js +0 -1
- package/dist/client/assets/useInfiniteQuery-wCORGPw3.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-JvpRoEFG.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as E,j as t,B as K,h as Z,aF as Ye,aG as re,b as W,H as Ee,r as A,a2 as fe,dg as Ze,df as Oe,aE as et,n as Re,I as pe,l as X,bu as tt,av as st,u as ot,L as se,t as lt,f as he,c5 as Fe}from"./index-ifZGovK1.js";import{E as Me}from"./empty-state-D6RWdvUz.js";import{u as ge}from"./use-mcp-client-D1kFCZ4v.js";import{F as ae,a as nt,b as ce,d as de}from"./form-D4PspedZ.js";import{T as xe}from"./textarea-Bbbnnl4r.js";import{D as je,O as it,M as rt}from"./index-D_6gfRTQ.js";import{S as at,ae as ct,bI as dt,W as mt,aP as ut,X as pt,aS as xt,a0 as ye}from"./agent-icon--EtIPqub.js";import{M as ft}from"./mcp-app-renderer-fHjuxWIZ.js";import{g as ht,M as we}from"./types-CHFSNT7a.js";import{A as gt,a as jt,b as bt}from"./alert-BDbwlXZm.js";import{S as Ce,b as Ie,a as Te,d as $e,c as me}from"./select-DUEGSJco.js";import{b as Nt,c as Pe,T as De,a as ke}from"./tooltip-gMeEuHtO.js";import{i as vt}from"./AlertCircle-CUAx3A4b.js";import{a as St}from"./Copy01-OBSYmimV.js";import{i as yt}from"./Play-Ns9aRVTY.js";import{g as wt}from"./connection-slug-CITJ0kGN.js";import{u as Ct,T as It}from"./use-mcp-auth-status-Cs8ZHHaN.js";import{a as ze,u as Be}from"./use-connection-CBKH8IwL.js";import{u as Tt}from"./use-mcp-tools-I-kpM305.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as Ae}from"./integration-icon-D1aQLe0v.js";import{f as Pt,B as Dt}from"./chat-context-DXm8btNS.js";import{a as kt}from"./shell-layout-U7D4A6nk.js";import{MonacoCodeEditor as At}from"./monaco-editor-Wx_2qGOP.js";import{E as Et}from"./empty-state-DeArX05X.js";import{n as Ot}from"./LinkBroken01-DcsqjBuj.js";import"./auth-C_nDagDA.js";import"./label-Dhoh3DcI.js";import"./Key01-CG7Kua6O.js";import"./extract-connection-data-CBAyhzk-.js";import"./metadata-D72DunRR.js";import"./connection-Bo3v2rj5.js";import"./url-slug-D37s8EDd.js";import"./Plus-vkM1FxVr.js";import"./index-gqp4B5qj.js";import"./index-Bxkd37dZ.js";import"./index-BdQq_4o_.js";import"./index-BCHFFeZZ.js";import"./popover-DaReiQzV.js";import"./repository-binding-DtIeSvDY.js";import"./SearchMd-Cp6J-1Iu.js";import"./use-mobile-CKoO3XSk.js";import"./use-create-virtual-mcp-jW1iVRi_.js";import"./use-navigate-to-agent-DLX1nkvn.js";import"./thread-intent-7GmQH5mt.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BoG6Bqps.js";import"./task-board-BrTYr-oE.js";import"./schema-Cn4x5iT-.js";import"./slugify-CEUa2lfQ.js";import"./schema-Dvc5tPTN.js";import"./Tool01-BsK9c3-e.js";import"./ArrowUp-EL0FBv9C.js";import"./ArrowLeft-BWCsylYe.js";import"./ShoppingBag01-aJuRSlBz.js";import"./ZoomOut-DytgoG2i.js";import"./Building02-PifDTlhb.js";import"./CheckCircle-CMGqXocs.js";import"./ChevronUp-x46FJEcD.js";import"./ChevronSelectorVertical-BSRBjpBn.js";import"./UserSquare-BBEl_BxL.js";import"./CreditCard01-DWsSThAm.js";import"./DotsVertical-jkvtcdek.js";import"./Image01-BCnLFq1D.js";import"./Globe04-blkS_Kfg.js";import"./SwitchHorizontal01-B5WFt7_0.js";import"./Link01-8aKNfNRw.js";import"./Minus-B38cW2ZC.js";import"./Monitor01-DQEkUL3d.js";import"./Sun-k4hypx5Q.js";import"./Trash01-Z1ezoy3S.js";import"./Upload01-B3-nlnKa.js";import"./User01-C2Sw39bs.js";import"./Users01-DMFeioyM.js";import"./XClose-BdwIxxCT.js";import"./index-DNa7Epd0.js";import"./badge-ux-RK1YK.js";import"./mcp-oauth-CTJ5Iw4i.js";import"./use-panel-navigate-Bghh8kV3.js";import"./thread-route-C7RSGMhP.js";import"./use-project-scope-DH5nL_oD.js";import"./autosend-xoWUmECR.js";import"./use-decopilot-events-Cp8NaBPU.js";import"./use-ai-providers-CAt_9H4n.js";import"./location-V0VwTJTt.js";import"./use-organization-settings-laAOR3Cm.js";import"./avatar-DHKJiyOX.js";import"./use-clock-tick-DflKMAWl.js";import"./command-BlBQgQPI.js";import"./project-icon-ZadU5ZjL.js";import"./new-project-dialog-DFsG79bb.js";import"./repository-import-picker-C2sQ94O1.js";import"./repository-picker-BXaWFfDW.js";import"./useInfiniteQuery-wCORGPw3.js";import"./infiniteQueryObserver-DvmMaiCa.js";import"./collection-search--9d0M5sc.js";import"./use-debounced-value-c5JdkW89.js";import"./required-auth-layout-4jyUcmCy.js";import"./use-org-sso-B_zXOLDA.js";import"./editor-BctLuJLS.js";function Rt(s){const e=E.c(15),{onSave:n,onUndo:o,isDirty:l,isSaving:i,saveLabel:a,undoLabel:c}=s,d=a===void 0?"Save":a,r=c===void 0?"Undo":c;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(at,{size:14}),e[0]=x):x=e[0];let h;e[1]!==i||e[2]!==o||e[3]!==r?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":r,children:[x,r]}),e[1]=i,e[2]=o,e[3]=r,e[4]=h):h=e[4];let u;e[5]!==i?(u=i?t.jsx(Z,{className:"size-3.5"}):t.jsx(ct,{size:14}),e[5]=i,e[6]=u):u=e[6];let g;e[7]!==i||e[8]!==n||e[9]!==d||e[10]!==u?(g=t.jsxs(K,{variant:"default",size:"sm",onClick:n,disabled:i,"aria-label":d,children:[u,d]}),e[7]=i,e[8]=n,e[9]=d,e[10]=u,e[11]=g):g=e[11];let p;return e[12]!==h||e[13]!==g?(p=t.jsxs(t.Fragment,{children:[h,g]}),e[12]=h,e[13]=g,e[14]=p):p=e[14],p}Ye({title:re().min(1),description:re().nullable(),body:re()});function ue(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ft(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function Mt(s){const e=E.c(43),{form:n}=s,o=W();let l;e[0]!==o?(l=o("details.prompt.details"),e[0]=o,e[1]=l):l=e[1];let i;e[2]!==l?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:l}),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==o?(a=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.title")}),t.jsx(de,{children:t.jsx(pe,{...b,placeholder:o("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=o,e[5]=a):a=e[5];let c;e[6]!==n.control||e[7]!==a?(c=t.jsx(ae,{control:n.control,name:"title",render:a}),e[6]=n.control,e[7]=a,e[8]=c):c=e[8];let d;e[9]!==o?(d=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.description")}),t.jsx(de,{children:t.jsx(pe,{...b,value:b.value??"",placeholder:o("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=o,e[10]=d):d=e[10];let r;e[11]!==n.control||e[12]!==d?(r=t.jsx(ae,{control:n.control,name:"description",render:d}),e[11]=n.control,e[12]=d,e[13]=r):r=e[13];let x;e[14]!==c||e[15]!==r?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c,r]}),e[14]=c,e[15]=r,e[16]=x):x=e[16];let h;e[17]!==i||e[18]!==x?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=h):h=e[19];let u;e[20]!==o?(u=o("details.prompt.message"),e[20]=o,e[21]=u):u=e[21];let g;e[22]!==u?(g=t.jsx("div",{className:"text-sm font-medium text-foreground",children:u}),e[22]=u,e[23]=g):g=e[23];let p;e[24]!==o?(p=o("details.prompt.messageDescription"),e[24]=o,e[25]=p):p=e[25];let j;e[26]!==p?(j=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=j):j=e[27];let N;e[28]!==o?(N=C=>{const{field:b}=C;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(xe,{...b,value:b.value??"",placeholder:o("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]=o,e[29]=N):N=e[29];let v;e[30]!==n.control||e[31]!==N?(v=t.jsx(ae,{control:n.control,name:"body",render:N}),e[30]=n.control,e[31]=N,e[32]=v):v=e[32];let y;e[33]!==g||e[34]!==j||e[35]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-2",children:[g,j,v]}),e[33]=g,e[34]=j,e[35]=v,e[36]=y):y=e[36];let w;e[37]!==y||e[38]!==h?(w=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,y]}),e[37]=y,e[38]=h,e[39]=w):w=e[39];let P;return e[40]!==n||e[41]!==w?(P=t.jsx(nt,{...n,children:w}),e[40]=n,e[41]=w,e[42]=P):P=e[42],P}function zt(s){const e=E.c(42),{providerId:n,promptId:o}=s,l=W(),{org:i}=fe(),a=n||null;let c;e[0]!==i.id||e[1]!==i.slug||e[2]!==a?(c={connectionId:a,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=a,e[3]=c):c=e[3];const d=ge(c),r=Ze(n,"PROMPT",o,d),x=Oe(n,"PROMPT",d),h=x.update.isPending;let u;e[4]!==r?(u=r?{title:r.title,description:r.description??null,body:ue(r)}:void 0,e[4]=r,e[5]=u):u=e[5];let g;e[6]!==u?(g={values:u},e[6]=u,e[7]=g):g=e[7];const p=et(g);let j;e[8]!==p||e[9]!==r?(j=()=>{r&&p.reset({title:r.title,description:r.description??null,body:ue(r)})},e[8]=p,e[9]=r,e[10]=j):j=e[10];const N=j;let v;e[11]!==x.update||e[12]!==p||e[13]!==o?(v=p.handleSubmit(async I=>{const T=await x.update.mutateAsync({id:o,data:{title:I.title,description:I.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:I.body}}]}});p.reset({title:T.title,description:T.description??null,body:ue(T)})}),e[11]=x.update,e[12]=p,e[13]=o,e[14]=v):v=e[14];const y=v;if(!r){let I;e[15]!==l?(I=l("details.prompt.notFoundTitle"),e[15]=l,e[16]=I):I=e[16];let T;e[17]!==l?(T=l("details.prompt.notFoundDescription"),e[17]=l,e[18]=T):T=e[18];let R;return e[19]!==I||e[20]!==T?(R=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:I,description:T})}),e[19]=I,e[20]=T,e[21]=R):R=e[21],R}let w;e[22]!==y?(w=()=>{y()},e[22]=y,e[23]=w):w=e[23];let P;e[24]!==p.formState.isDirty||e[25]!==h||e[26]!==N||e[27]!==w?(P=t.jsx(Rt,{onSave:w,onUndo:N,isDirty:p.formState.isDirty,isSaving:h}),e[24]=p.formState.isDirty,e[25]=h,e[26]=N,e[27]=w,e[28]=P):P=e[28];let C;e[29]!==r.title||e[30]!==P?(C=t.jsx(Re.Title,{actions:P,children:r.title}),e[29]=r.title,e[30]=P,e[31]=C):C=e[31];let b;e[32]!==r.description?(b=r.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:r.description}),e[32]=r.description,e[33]=b):b=e[33];let D;e[34]!==b||e[35]!==C?(D=t.jsxs(t.Fragment,{children:[C,b]}),e[34]=b,e[35]=C,e[36]=D):D=e[36];let k;e[37]!==p?(k=t.jsx("div",{className:"h-full",children:t.jsx(Mt,{form:p})}),e[37]=p,e[38]=k):k=e[38];let O;return e[39]!==D||e[40]!==k?(O=t.jsxs(je,{children:[D,k]}),e[39]=D,e[40]=k,e[41]=O):O=e[41],O}function Bt(s){const e=E.c(10),{itemId:n}=s,o=W();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ft(),e[0]=l):l=e[0];const i=l;if(!i){let c;e[1]!==o?(c=o("details.prompt.notFoundTitle"),e[1]=o,e[2]=c):c=e[2];let d;e[3]!==o?(d=o("details.prompt.missingConnectionDescription"),e[3]=o,e[4]=d):d=e[4];let r;return e[5]!==c||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:c,description:d})}),e[5]=c,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==n?(a=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:null,children:t.jsx(zt,{providerId:i,promptId:n})})}),e[8]=n,e[9]=a):a=e[9],a}function Le(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=X("min-w-0 overflow-hidden",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function Ue(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=X("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden text-muted-foreground",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("ol",{"data-slot":"breadcrumb-list",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function G(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=X("inline-flex items-center gap-1.5 min-w-0",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("li",{"data-slot":"breadcrumb-item",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function oe(s){const e=E.c(10);let n,o,l;e[0]!==s?({asChild:n,className:o,...l}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=l):(n=e[1],o=e[2],l=e[3]);const i=n?tt:"a";let a;e[4]!==o?(a=X("hover:text-foreground transition-colors truncate",o),e[4]=o,e[5]=a):a=e[5];let c;return e[6]!==i||e[7]!==l||e[8]!==a?(c=t.jsx(i,{"data-slot":"breadcrumb-link",className:a,...l}),e[6]=i,e[7]=l,e[8]=a,e[9]=c):c=e[9],c}function _e(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=X("text-foreground font-medium truncate",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function le(s){const e=E.c(12);let n,o,l;e[0]!==s?({children:n,className:o,...l}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=l):(n=e[1],o=e[2],l=e[3]);let i;e[4]!==o?(i=X("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",o),e[4]=o,e[5]=i):i=e[5];let a;e[6]!==n?(a=n??t.jsx(st,{}),e[6]=n,e[7]=a):a=e[7];let c;return e[8]!==l||e[9]!==i||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...l,children:a}),e[8]=l,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=E.c(12),{toolName:n,connectionId:o,siblings:l,onSelectInstance:i,onBack:a}=s,c=W();let d;e[0]!==o?(d={connectionId:o},e[0]=o,e[1]=d):d=e[1];const r=Ct(d);if(!r.isAuthenticated){let u;return e[2]!==r.supportsOAuth||e[3]!==a||e[4]!==c?(u=t.jsx("div",{className:"flex h-full items-center justify-center",children:r.supportsOAuth?t.jsx(it,{onAuthenticate:()=>a(),buttonText:c("details.tool.goBackToAuthenticate")}):t.jsx(rt,{hasReadme:!1})}),e[2]=r.supportsOAuth,e[3]=a,e[4]=c,e[5]=u):u=e[5],u}const x=`${o}:${n}`;let h;return e[6]!==o||e[7]!==i||e[8]!==l||e[9]!==x||e[10]!==n?(h=t.jsx(_t,{toolName:n,connectionId:o,siblings:l,onSelectInstance:i},x),e[6]=o,e[7]=i,e[8]=l,e[9]=x,e[10]=n,e[11]=h):h=e[11],h}function _t({toolName:s,connectionId:e,siblings:n,onSelectInstance:o}){const l=W(),{replayId:i}=ot({strict:!1}),a=(()=>{if(!i)return null;const m=`replay-${i}`,f=sessionStorage.getItem(m);if(!f)return null;sessionStorage.removeItem(m);try{return JSON.parse(f)}catch{return null}})(),c=(()=>{if(!a)return null;const m={};for(const[f,$]of Object.entries(a))$!==null&&typeof $=="object"?m[f]=JSON.stringify($,null,2):m[f]=$;return m})(),[d,r]=A.useState(c??{}),[x,h]=A.useState(a?JSON.stringify(a,null,2):"{}"),[u,g]=A.useState(null),[p,j]=A.useState(null),[N,v]=A.useState(null),[y,w]=A.useState(null),[P,C]=A.useState(!1),[b,D]=A.useState(null),{org:k}=fe(),O=ze(e),I=Pt(),T=Dt(),{openSidePanel:R}=kt(),U=`${e}:${s}`,M=ge({connectionId:e,orgId:k.id,orgSlug:k.slug}),_=Tt({client:M}),S=_.data?.tools?.find(m=>m.name===s),F=ht(S?._meta),V=m=>{if(!I)return;const f=$t(m.content);f.content.length>0&&(R(),I.sendMessage({tiptapDoc:f}))},[z,B]=A.useState("json"),[q,Q]=A.useState(!1);F&&!q&&(B("ui"),Q(!0));const J=S?.inputSchema?.properties,be=J?Object.keys(J):[],Y=be.length>0,ee={};if(Y&&S?.inputSchema?.properties)for(const m of be)ee[m]=S.inputSchema.required?.includes(m)?"":void 0;const ne=m=>Object.prototype.hasOwnProperty.call(d,m),Je=async()=>{C(!0),w(null),g(null),j(null),v(null),D(null);const m=performance.now();try{if(!M)throw new Error("MCP client is not available");const f=Y?{...ee,...d}:(()=>{const L=x.trim();if(!L)return{};const H=JSON.parse(L);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();Y&&S?.inputSchema?.properties&&Object.entries(S.inputSchema.properties).forEach(([L,H])=>{if((H.type==="object"||H.type==="array")&&typeof f[L]=="string")try{f[L]=JSON.parse(f[L])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof f[L]=="string"&&f[L]!==""){const Se=Number(f[L]);Number.isNaN(Se)||(f[L]=Se)}});const $=await M.callTool({name:s,arguments:f}),te=$.structuredContent??$,Qe=performance.now(),Ge=Math.round(Qe-m);g(te),j($),v(f);const Xe=JSON.stringify(te),ve=new TextEncoder().encode(Xe).length;D({duration:`${Ge}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(f){const $=f instanceof Error?f.message:String(f);w($||"Unknown error occurred");const te=performance.now();D({duration:`${Math.round(te-m)}ms`})}finally{C(!1)}},ie=(m,f)=>{r($=>({...$,[m]:f}))},Ve=()=>{g(null),j(null),v(null),w(null),D(null)},qe=S?.name??Lt(s),He=t.jsx(Le,{children:t.jsxs(Ue,{children:[t.jsx(G,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:k.slug},children:l("details.tool.connections")})})}),t.jsx(le,{}),O&&t.jsxs(t.Fragment,{children:[t.jsx(G,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:k.slug,appSlug:wt(O)},search:{tab:"tools"},children:O.title})})}),t.jsx(le,{})]}),t.jsx(G,{children:t.jsx(_e,{children:qe})})]})}),Ne=n.length>1&&t.jsxs(Ce,{value:e,onValueChange:o,children:[t.jsx(Ie,{size:"sm",className:"w-auto min-w-[200px]",children:t.jsx(Te,{})}),t.jsx($e,{children:n.map(m=>t.jsx(me,{value:m.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ae,{icon:m.icon,name:m.title,size:"xs",className:"shrink-0"}),m.title]})},m.id))})]}),Ke=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",children:l("details.tool.parameters")}),S?.inputSchema?.required&&S.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",l("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:Y&&S?.inputSchema?.properties?Object.entries(S.inputSchema.properties).map(([m,f])=>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:[m,S.inputSchema?.required?.includes(m)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:f.type})]}),f.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:f.description}),f.type==="object"||f.type==="array"?t.jsx(xe,{className:"font-mono text-xs",value:ne(m)?d[m]??"":ee[m]??"",onChange:$=>ie(m,$.target.value),placeholder:l("details.tool.enterAsJson",{key:m}),rows:3}):f.type==="boolean"?t.jsxs(Ce,{value:ne(m)?String(d[m]??""):"",onValueChange:$=>ie(m,$==="true"),children:[t.jsx(Ie,{children:t.jsx(Te,{placeholder:l("details.tool.selectTrueOrFalse")})}),t.jsxs($e,{children:[t.jsx(me,{value:"true",children:"true"}),t.jsx(me,{value:"false",children:"false"})]})]}):t.jsx(pe,{value:ne(m)?d[m]??"":ee[m]??"",onChange:$=>ie(m,$.target.value),placeholder:l("details.tool.enter",{key:m})})]},m)):S?.inputSchema&&!Y?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:l("details.tool.rawJsonInput")}),t.jsx(xe,{className:"font-mono text-xs min-h-[120px]",value:x,onChange:m=>h(m.target.value),placeholder:l("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:l("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:P?t.jsxs(K,{variant:"destructive",className:"gap-2",onClick:Ve,children:[t.jsx(dt,{className:"h-3.5 w-3.5"}),l("details.tool.cancel")]}):t.jsxs(K,{variant:"default",className:"gap-2",onClick:Je,children:[t.jsx(yt,{className:"h-3.5 w-3.5 fill-current"}),l("details.tool.executeTool")]})})]}),We=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",children:l("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&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(mt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&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:b.tokens})]}),b.bytes&&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:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),F&&t.jsx(Nt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(De,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="ui"?"secondary":"ghost",onClick:()=>B("ui"),children:t.jsx(xt,{size:14})})}),t.jsx(ke,{children:l("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(De,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="json"?"secondary":"ghost",onClick:()=>B("json"),children:t.jsx(ye,{size:14})})}),t.jsx(ke,{children:l("details.tool.jsonView")})]})]})})]})]}),y&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(gt,{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(vt,{className:"h-4 w-4"}),t.jsx(jt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(bt,{className:"text-xs text-destructive",children:y})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:F&&z==="ui"&&M?t.jsx(A.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(Z,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:l("details.tool.loadingApp")})]})}),children:t.jsx(ft,{resourceURI:F,toolInfo:S?{tool:S}:void 0,toolInput:N??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:M,onMessage:V,onUpdateModelContext:m=>T?.setAppContext(U,m),onTeardown:()=>T?.clearAppContext(U),className:"h-full"})}):u?t.jsxs(t.Fragment,{children:[t.jsx(At,{code:JSON.stringify(u,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"outline",className:"absolute top-4 right-4",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(u,null,2)),lt.success(l("details.tool.copiedToClipboard"))},children:t.jsx(St,{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(ye,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:l("details.tool.runToolToSeeResults")})]})})]});return t.jsx(je,{leading:He,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(Ae,{icon:O?.icon||null,name:O?.title||s,size:"xl",className:"shrink-0"}),t.jsx(Re.Title,{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:[_.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):_.isLoading?t.jsx(Z,{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:_.isSuccess?"ready":_.isLoading?"connecting":"error"})]}),t.jsx(It,{annotations:S?.annotations,_meta:S?._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:S?.description||"No description available"})]}),n.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:l("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:Ke}),We]})})]})})}function Jt(s){const e=E.c(21),{itemId:n,siblings:o,onBack:l}=s,i=W(),[a,c]=A.useState(o[0]?.id??"");let d;e[0]!==a||e[1]!==o?(d=o.find(p=>p.id===a)?.id??o[0]?.id??"",e[0]=a,e[1]=o,e[2]=d):d=e[2];const r=d;if(!ze(r||void 0)||!r){let p;e[3]!==i?(p=i("details.tool.connectionNotFound"),e[3]=i,e[4]=p):p=e[4];let j;e[5]!==p?(j=t.jsx("h3",{className:"text-lg font-semibold",children:p}),e[5]=p,e[6]=j):j=e[6];let N;e[7]!==i?(N=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=N):N=e[8];let v;e[9]!==N?(v=t.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[9]=N,e[10]=v):v=e[10];let y;return e[11]!==j||e[12]!==v?(y=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,v]})}),e[11]=j,e[12]=v,e[13]=y):y=e[13],y}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(Z,{className:"size-8 text-muted-foreground"})}),e[14]=h):h=e[14];let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=p=>A.startTransition(()=>c(p)),e[15]=u):u=e[15];let g;return e[16]!==r||e[17]!==l||e[18]!==o||e[19]!==n?(g=t.jsx(A.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:n,connectionId:r,siblings:o,onSelectInstance:u,onBack:l})}),e[16]=r,e[17]=l,e[18]=o,e[19]=n,e[20]=g):g=e[20],g}const Vt={prompt:Bt};function qt(){const s=E.c(9),e=Fe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const a=Be(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,r=Ht;let x;return s[5]!==d||s[6]!==l||s[7]!==a?(x=t.jsx(Jt,{itemId:l,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}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=E.c(52),e=Fe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=W(),i=decodeURIComponent(o.collectionName),a=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:r}=fe();let x;s[3]!==o.appSlug?(x={slug:o.appSlug},s[3]=o.appSlug,s[4]=x):x=s[4];const u=Be(x)[0]??null,g=u?.id??"",p=g||"no-connection",j=g??null;let N;s[5]!==r.id||s[6]!==r.slug||s[7]!==j?(N={connectionId:j,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=j,s[8]=N):N=s[8];const v=ge(N),y=Oe(p,i,v);let w;s[9]!==y||s[10]!==a?(w=async J=>{a&&await y.update.mutateAsync({id:a,data:J})},s[9]=y,s[10]=a,s[11]=w):w=s[11];const P=w;let C;s[12]!==i?(C=i?.toLowerCase(),s[12]=i,s[13]=C):C=s[13];const b=C,D=b&&Vt[b];let k;s[14]!==i?(k=Kt(i),s[14]=i,s[15]=k):k=s[15];const O=k;let I;s[16]!==r.slug?(I=t.jsx(G,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=I):I=s[17];let T;s[18]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(le,{}),s[18]=T):T=s[18];let R;s[19]!==i||s[20]!==u||s[21]!==r.slug||s[22]!==o.appSlug?(R=u&&t.jsxs(t.Fragment,{children:[t.jsx(G,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:o.appSlug},search:{tab:i},children:u.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=u,s[21]=r.slug,s[22]=o.appSlug,s[23]=R):R=s[23];let U;s[24]!==O?(U=t.jsx(G,{children:t.jsx(_e,{children:O})}),s[24]=O,s[25]=U):U=s[25];let M;s[26]!==R||s[27]!==U||s[28]!==I?(M=t.jsx(Le,{children:t.jsxs(Ue,{children:[I,T,R,U]})}),s[26]=R,s[27]=U,s[28]=I,s[29]=M):M=s[29];const _=M;if(D){let J;return s[30]!==D||s[31]!==d||s[32]!==P||s[33]!==a?(J=t.jsx(D,{itemId:a,onBack:d,onUpdate:P}),s[30]=D,s[31]=d,s[32]=P,s[33]=a,s[34]=J):J=s[34],J}let S;s[35]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Ot,{size:36,className:"text-muted-foreground"}),s[35]=S):S=s[35];let F;s[36]!==l?(F=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=F):F=s[37];let V;s[38]!==l?(V=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=V):V=s[39];let z;s[40]!==l?(z=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=z):z=s[41];let B;s[42]!==d||s[43]!==z?(B={onClick:d,children:z},s[42]=d,s[43]=z,s[44]=B):B=s[44];let q;s[45]!==F||s[46]!==V||s[47]!==B?(q=t.jsx(Et,{icon:S,title:F,description:V,buttonProps:B}),s[45]=F,s[46]=V,s[47]=B,s[48]=q):q=s[48];let Q;return s[49]!==_||s[50]!==q?(Q=t.jsx(je,{leading:_,children:q}),s[49]=_,s[50]=q,s[51]=Q):Q=s[51],Q}function Qt(){const s=E.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 n=he(e);if(decodeURIComponent(n.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 i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Wt,{}),s[2]=i):i=s[2],i}function Vo(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Z,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Vo as default};
|
|
1
|
+
import{c as E,j as t,B as K,h as Z,aF as Ye,aG as re,b as W,H as Ee,r as A,a2 as fe,dg as Ze,df as Oe,aE as et,n as Re,I as pe,l as X,bu as tt,av as st,u as ot,L as se,t as lt,f as he,c5 as Fe}from"./index-BeWb3VLq.js";import{E as Me}from"./empty-state-B4dSQMeM.js";import{u as ge}from"./use-mcp-client-2WkK0AxE.js";import{F as ae,a as nt,b as ce,d as de}from"./form-BGI3x6he.js";import{T as xe}from"./textarea-7I-DLD6x.js";import{D as je,O as it,M as rt}from"./index-BflgjdLH.js";import{S as at,ae as ct,bI as dt,W as mt,aK as ut,X as pt,aN as xt,a0 as ye}from"./agent-icon-CiKTiUdq.js";import{M as ft}from"./mcp-app-renderer-C5DYTOzS.js";import{g as ht,M as we}from"./types-CNU-uWw-.js";import{A as gt,a as jt,b as bt}from"./alert-DlpN1nbO.js";import{S as Ce,b as Ie,a as Te,d as $e,c as me}from"./select-H4FJk0rp.js";import{b as Nt,c as Pe,T as De,a as ke}from"./tooltip-4vv5k-uR.js";import{i as vt}from"./AlertCircle-Cch634f7.js";import{a as St}from"./Copy01-B341DqLV.js";import{i as yt}from"./Play-CByslM3d.js";import{g as wt}from"./connection-slug-CITJ0kGN.js";import{u as Ct,T as It}from"./use-mcp-auth-status-BOQ5PtOH.js";import{a as ze,u as Be}from"./use-connection-HenJjVMr.js";import{u as Tt}from"./use-mcp-tools-Wkfd46Rr.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as Ae}from"./integration-icon-VoZokpOe.js";import{f as Pt,m as Dt}from"./chat-context-BEyCIAaN.js";import{a as kt}from"./shell-layout-Dpds4_um.js";import{MonacoCodeEditor as At}from"./monaco-editor-CVRVgXSh.js";import{E as Et}from"./empty-state-wXIjf_EN.js";import{n as Ot}from"./LinkBroken01-Dioz3u9i.js";import"./auth-DVebpHI3.js";import"./label-TKhfC6jr.js";import"./Key01-kTu6t6u_.js";import"./extract-connection-data-Bg9K46Rs.js";import"./metadata-D72DunRR.js";import"./connection-BXCm7RUN.js";import"./url-slug-DU3tFMUC.js";import"./Plus-Dewm72je.js";import"./index-DVxNOEMj.js";import"./index-BEaGR-Ng.js";import"./index-BdQq_4o_.js";import"./index-BliYmmPu.js";import"./popover-s88DXvPL.js";import"./repository-binding-Cf_thK-b.js";import"./SearchMd-7Jo0ZofC.js";import"./use-mobile-BAnIvR27.js";import"./use-create-virtual-mcp-dBeQ8KM_.js";import"./use-navigate-to-agent-C2NQ-36B.js";import"./thread-intent-CoB1rbzj.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-C9NPGTmI.js";import"./task-board-ByNQwZsl.js";import"./schema-b5uziS6S.js";import"./slugify-CEUa2lfQ.js";import"./schema-ClGCzPdy.js";import"./Tool01-2gJDR0Ho.js";import"./ArrowUp-DLUdomd9.js";import"./ArrowLeft-CohopnCT.js";import"./ShoppingBag01-BStpgW0a.js";import"./ZoomOut-DixQygt2.js";import"./Building02-BHJQSDUK.js";import"./CheckCircle-Cs8i9zYt.js";import"./ChevronUp-BT7eMKPK.js";import"./ChevronSelectorVertical-C5d75KyY.js";import"./UserSquare-pmxb5ZdZ.js";import"./CreditCard01-4Fwr0tNh.js";import"./DotsVertical-DbrlDgFh.js";import"./Image01-hTzc15CE.js";import"./Globe04-BE6c1UDj.js";import"./SwitchHorizontal01-CrC4ThKg.js";import"./Link01-hfA48cFL.js";import"./Minus-DqDPTtRG.js";import"./Monitor01-Bz6QaUO4.js";import"./Sun-C37Hpdko.js";import"./Trash01-DjE7Raat.js";import"./Upload01-CYfTR3aZ.js";import"./User01-X6IeKYZH.js";import"./Users01-uKJoVSle.js";import"./XClose-BVxVAZ6V.js";import"./index-CdhgpKbn.js";import"./badge-BfMggcm8.js";import"./mcp-oauth-Bv0ymH6e.js";import"./use-panel-navigate-CXkMPISv.js";import"./thread-route-BPSSuk8V.js";import"./use-project-scope-BOj2O9A_.js";import"./autosend-BTx7-p6a.js";import"./use-decopilot-events-CuBncVze.js";import"./use-ai-providers-Ct47MIru.js";import"./location-V0VwTJTt.js";import"./use-organization-settings-CE5BJyh9.js";import"./avatar-DjIkOwsx.js";import"./use-clock-tick-DE4s8Okz.js";import"./command-KmLWWmqo.js";import"./project-icon-Ds8VtVRG.js";import"./new-project-dialog-DfI138Mw.js";import"./repository-import-picker-BOku3VrR.js";import"./repository-picker-CeCsQGv8.js";import"./useInfiniteQuery-CxzyY6DS.js";import"./infiniteQueryObserver-BOCgDRcQ.js";import"./collection-search-7sBPioRN.js";import"./use-debounced-value-Br6JzfN-.js";import"./required-auth-layout-DhxdstQv.js";import"./use-org-sso-BnFa9r-G.js";import"./editor-DAekV0he.js";function Rt(s){const e=E.c(15),{onSave:n,onUndo:o,isDirty:l,isSaving:i,saveLabel:a,undoLabel:c}=s,d=a===void 0?"Save":a,r=c===void 0?"Undo":c;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(at,{size:14}),e[0]=x):x=e[0];let h;e[1]!==i||e[2]!==o||e[3]!==r?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":r,children:[x,r]}),e[1]=i,e[2]=o,e[3]=r,e[4]=h):h=e[4];let u;e[5]!==i?(u=i?t.jsx(Z,{className:"size-3.5"}):t.jsx(ct,{size:14}),e[5]=i,e[6]=u):u=e[6];let g;e[7]!==i||e[8]!==n||e[9]!==d||e[10]!==u?(g=t.jsxs(K,{variant:"default",size:"sm",onClick:n,disabled:i,"aria-label":d,children:[u,d]}),e[7]=i,e[8]=n,e[9]=d,e[10]=u,e[11]=g):g=e[11];let p;return e[12]!==h||e[13]!==g?(p=t.jsxs(t.Fragment,{children:[h,g]}),e[12]=h,e[13]=g,e[14]=p):p=e[14],p}Ye({title:re().min(1),description:re().nullable(),body:re()});function ue(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ft(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function Mt(s){const e=E.c(43),{form:n}=s,o=W();let l;e[0]!==o?(l=o("details.prompt.details"),e[0]=o,e[1]=l):l=e[1];let i;e[2]!==l?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:l}),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==o?(a=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.title")}),t.jsx(de,{children:t.jsx(pe,{...b,placeholder:o("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=o,e[5]=a):a=e[5];let c;e[6]!==n.control||e[7]!==a?(c=t.jsx(ae,{control:n.control,name:"title",render:a}),e[6]=n.control,e[7]=a,e[8]=c):c=e[8];let d;e[9]!==o?(d=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.description")}),t.jsx(de,{children:t.jsx(pe,{...b,value:b.value??"",placeholder:o("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=o,e[10]=d):d=e[10];let r;e[11]!==n.control||e[12]!==d?(r=t.jsx(ae,{control:n.control,name:"description",render:d}),e[11]=n.control,e[12]=d,e[13]=r):r=e[13];let x;e[14]!==c||e[15]!==r?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c,r]}),e[14]=c,e[15]=r,e[16]=x):x=e[16];let h;e[17]!==i||e[18]!==x?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=h):h=e[19];let u;e[20]!==o?(u=o("details.prompt.message"),e[20]=o,e[21]=u):u=e[21];let g;e[22]!==u?(g=t.jsx("div",{className:"text-sm font-medium text-foreground",children:u}),e[22]=u,e[23]=g):g=e[23];let p;e[24]!==o?(p=o("details.prompt.messageDescription"),e[24]=o,e[25]=p):p=e[25];let j;e[26]!==p?(j=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=j):j=e[27];let N;e[28]!==o?(N=C=>{const{field:b}=C;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(xe,{...b,value:b.value??"",placeholder:o("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]=o,e[29]=N):N=e[29];let v;e[30]!==n.control||e[31]!==N?(v=t.jsx(ae,{control:n.control,name:"body",render:N}),e[30]=n.control,e[31]=N,e[32]=v):v=e[32];let y;e[33]!==g||e[34]!==j||e[35]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-2",children:[g,j,v]}),e[33]=g,e[34]=j,e[35]=v,e[36]=y):y=e[36];let w;e[37]!==y||e[38]!==h?(w=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,y]}),e[37]=y,e[38]=h,e[39]=w):w=e[39];let P;return e[40]!==n||e[41]!==w?(P=t.jsx(nt,{...n,children:w}),e[40]=n,e[41]=w,e[42]=P):P=e[42],P}function zt(s){const e=E.c(42),{providerId:n,promptId:o}=s,l=W(),{org:i}=fe(),a=n||null;let c;e[0]!==i.id||e[1]!==i.slug||e[2]!==a?(c={connectionId:a,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=a,e[3]=c):c=e[3];const d=ge(c),r=Ze(n,"PROMPT",o,d),x=Oe(n,"PROMPT",d),h=x.update.isPending;let u;e[4]!==r?(u=r?{title:r.title,description:r.description??null,body:ue(r)}:void 0,e[4]=r,e[5]=u):u=e[5];let g;e[6]!==u?(g={values:u},e[6]=u,e[7]=g):g=e[7];const p=et(g);let j;e[8]!==p||e[9]!==r?(j=()=>{r&&p.reset({title:r.title,description:r.description??null,body:ue(r)})},e[8]=p,e[9]=r,e[10]=j):j=e[10];const N=j;let v;e[11]!==x.update||e[12]!==p||e[13]!==o?(v=p.handleSubmit(async I=>{const T=await x.update.mutateAsync({id:o,data:{title:I.title,description:I.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:I.body}}]}});p.reset({title:T.title,description:T.description??null,body:ue(T)})}),e[11]=x.update,e[12]=p,e[13]=o,e[14]=v):v=e[14];const y=v;if(!r){let I;e[15]!==l?(I=l("details.prompt.notFoundTitle"),e[15]=l,e[16]=I):I=e[16];let T;e[17]!==l?(T=l("details.prompt.notFoundDescription"),e[17]=l,e[18]=T):T=e[18];let R;return e[19]!==I||e[20]!==T?(R=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:I,description:T})}),e[19]=I,e[20]=T,e[21]=R):R=e[21],R}let w;e[22]!==y?(w=()=>{y()},e[22]=y,e[23]=w):w=e[23];let P;e[24]!==p.formState.isDirty||e[25]!==h||e[26]!==N||e[27]!==w?(P=t.jsx(Rt,{onSave:w,onUndo:N,isDirty:p.formState.isDirty,isSaving:h}),e[24]=p.formState.isDirty,e[25]=h,e[26]=N,e[27]=w,e[28]=P):P=e[28];let C;e[29]!==r.title||e[30]!==P?(C=t.jsx(Re.Title,{actions:P,children:r.title}),e[29]=r.title,e[30]=P,e[31]=C):C=e[31];let b;e[32]!==r.description?(b=r.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:r.description}),e[32]=r.description,e[33]=b):b=e[33];let D;e[34]!==b||e[35]!==C?(D=t.jsxs(t.Fragment,{children:[C,b]}),e[34]=b,e[35]=C,e[36]=D):D=e[36];let k;e[37]!==p?(k=t.jsx("div",{className:"h-full",children:t.jsx(Mt,{form:p})}),e[37]=p,e[38]=k):k=e[38];let O;return e[39]!==D||e[40]!==k?(O=t.jsxs(je,{children:[D,k]}),e[39]=D,e[40]=k,e[41]=O):O=e[41],O}function Bt(s){const e=E.c(10),{itemId:n}=s,o=W();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ft(),e[0]=l):l=e[0];const i=l;if(!i){let c;e[1]!==o?(c=o("details.prompt.notFoundTitle"),e[1]=o,e[2]=c):c=e[2];let d;e[3]!==o?(d=o("details.prompt.missingConnectionDescription"),e[3]=o,e[4]=d):d=e[4];let r;return e[5]!==c||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:c,description:d})}),e[5]=c,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==n?(a=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:null,children:t.jsx(zt,{providerId:i,promptId:n})})}),e[8]=n,e[9]=a):a=e[9],a}function Le(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=X("min-w-0 overflow-hidden",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function Ue(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=X("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden text-muted-foreground",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("ol",{"data-slot":"breadcrumb-list",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function G(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=X("inline-flex items-center gap-1.5 min-w-0",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("li",{"data-slot":"breadcrumb-item",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function oe(s){const e=E.c(10);let n,o,l;e[0]!==s?({asChild:n,className:o,...l}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=l):(n=e[1],o=e[2],l=e[3]);const i=n?tt:"a";let a;e[4]!==o?(a=X("hover:text-foreground transition-colors truncate",o),e[4]=o,e[5]=a):a=e[5];let c;return e[6]!==i||e[7]!==l||e[8]!==a?(c=t.jsx(i,{"data-slot":"breadcrumb-link",className:a,...l}),e[6]=i,e[7]=l,e[8]=a,e[9]=c):c=e[9],c}function _e(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=X("text-foreground font-medium truncate",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function le(s){const e=E.c(12);let n,o,l;e[0]!==s?({children:n,className:o,...l}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=l):(n=e[1],o=e[2],l=e[3]);let i;e[4]!==o?(i=X("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",o),e[4]=o,e[5]=i):i=e[5];let a;e[6]!==n?(a=n??t.jsx(st,{}),e[6]=n,e[7]=a):a=e[7];let c;return e[8]!==l||e[9]!==i||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...l,children:a}),e[8]=l,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=E.c(12),{toolName:n,connectionId:o,siblings:l,onSelectInstance:i,onBack:a}=s,c=W();let d;e[0]!==o?(d={connectionId:o},e[0]=o,e[1]=d):d=e[1];const r=Ct(d);if(!r.isAuthenticated){let u;return e[2]!==r.supportsOAuth||e[3]!==a||e[4]!==c?(u=t.jsx("div",{className:"flex h-full items-center justify-center",children:r.supportsOAuth?t.jsx(it,{onAuthenticate:()=>a(),buttonText:c("details.tool.goBackToAuthenticate")}):t.jsx(rt,{hasReadme:!1})}),e[2]=r.supportsOAuth,e[3]=a,e[4]=c,e[5]=u):u=e[5],u}const x=`${o}:${n}`;let h;return e[6]!==o||e[7]!==i||e[8]!==l||e[9]!==x||e[10]!==n?(h=t.jsx(_t,{toolName:n,connectionId:o,siblings:l,onSelectInstance:i},x),e[6]=o,e[7]=i,e[8]=l,e[9]=x,e[10]=n,e[11]=h):h=e[11],h}function _t({toolName:s,connectionId:e,siblings:n,onSelectInstance:o}){const l=W(),{replayId:i}=ot({strict:!1}),a=(()=>{if(!i)return null;const m=`replay-${i}`,f=sessionStorage.getItem(m);if(!f)return null;sessionStorage.removeItem(m);try{return JSON.parse(f)}catch{return null}})(),c=(()=>{if(!a)return null;const m={};for(const[f,$]of Object.entries(a))$!==null&&typeof $=="object"?m[f]=JSON.stringify($,null,2):m[f]=$;return m})(),[d,r]=A.useState(c??{}),[x,h]=A.useState(a?JSON.stringify(a,null,2):"{}"),[u,g]=A.useState(null),[p,j]=A.useState(null),[N,v]=A.useState(null),[y,w]=A.useState(null),[P,C]=A.useState(!1),[b,D]=A.useState(null),{org:k}=fe(),O=ze(e),I=Pt(),T=Dt(),{openSidePanel:R}=kt(),U=`${e}:${s}`,M=ge({connectionId:e,orgId:k.id,orgSlug:k.slug}),_=Tt({client:M}),S=_.data?.tools?.find(m=>m.name===s),F=ht(S?._meta),V=m=>{if(!I)return;const f=$t(m.content);f.content.length>0&&(R(),I.sendMessage({tiptapDoc:f}))},[z,B]=A.useState("json"),[q,Q]=A.useState(!1);F&&!q&&(B("ui"),Q(!0));const J=S?.inputSchema?.properties,be=J?Object.keys(J):[],Y=be.length>0,ee={};if(Y&&S?.inputSchema?.properties)for(const m of be)ee[m]=S.inputSchema.required?.includes(m)?"":void 0;const ne=m=>Object.prototype.hasOwnProperty.call(d,m),Je=async()=>{C(!0),w(null),g(null),j(null),v(null),D(null);const m=performance.now();try{if(!M)throw new Error("MCP client is not available");const f=Y?{...ee,...d}:(()=>{const L=x.trim();if(!L)return{};const H=JSON.parse(L);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();Y&&S?.inputSchema?.properties&&Object.entries(S.inputSchema.properties).forEach(([L,H])=>{if((H.type==="object"||H.type==="array")&&typeof f[L]=="string")try{f[L]=JSON.parse(f[L])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof f[L]=="string"&&f[L]!==""){const Se=Number(f[L]);Number.isNaN(Se)||(f[L]=Se)}});const $=await M.callTool({name:s,arguments:f}),te=$.structuredContent??$,Qe=performance.now(),Ge=Math.round(Qe-m);g(te),j($),v(f);const Xe=JSON.stringify(te),ve=new TextEncoder().encode(Xe).length;D({duration:`${Ge}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(f){const $=f instanceof Error?f.message:String(f);w($||"Unknown error occurred");const te=performance.now();D({duration:`${Math.round(te-m)}ms`})}finally{C(!1)}},ie=(m,f)=>{r($=>({...$,[m]:f}))},Ve=()=>{g(null),j(null),v(null),w(null),D(null)},qe=S?.name??Lt(s),He=t.jsx(Le,{children:t.jsxs(Ue,{children:[t.jsx(G,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:k.slug},children:l("details.tool.connections")})})}),t.jsx(le,{}),O&&t.jsxs(t.Fragment,{children:[t.jsx(G,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:k.slug,appSlug:wt(O)},search:{tab:"tools"},children:O.title})})}),t.jsx(le,{})]}),t.jsx(G,{children:t.jsx(_e,{children:qe})})]})}),Ne=n.length>1&&t.jsxs(Ce,{value:e,onValueChange:o,children:[t.jsx(Ie,{size:"sm",className:"w-auto min-w-[200px]",children:t.jsx(Te,{})}),t.jsx($e,{children:n.map(m=>t.jsx(me,{value:m.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ae,{icon:m.icon,name:m.title,size:"xs",className:"shrink-0"}),m.title]})},m.id))})]}),Ke=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",children:l("details.tool.parameters")}),S?.inputSchema?.required&&S.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",l("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:Y&&S?.inputSchema?.properties?Object.entries(S.inputSchema.properties).map(([m,f])=>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:[m,S.inputSchema?.required?.includes(m)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:f.type})]}),f.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:f.description}),f.type==="object"||f.type==="array"?t.jsx(xe,{className:"font-mono text-xs",value:ne(m)?d[m]??"":ee[m]??"",onChange:$=>ie(m,$.target.value),placeholder:l("details.tool.enterAsJson",{key:m}),rows:3}):f.type==="boolean"?t.jsxs(Ce,{value:ne(m)?String(d[m]??""):"",onValueChange:$=>ie(m,$==="true"),children:[t.jsx(Ie,{children:t.jsx(Te,{placeholder:l("details.tool.selectTrueOrFalse")})}),t.jsxs($e,{children:[t.jsx(me,{value:"true",children:"true"}),t.jsx(me,{value:"false",children:"false"})]})]}):t.jsx(pe,{value:ne(m)?d[m]??"":ee[m]??"",onChange:$=>ie(m,$.target.value),placeholder:l("details.tool.enter",{key:m})})]},m)):S?.inputSchema&&!Y?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:l("details.tool.rawJsonInput")}),t.jsx(xe,{className:"font-mono text-xs min-h-[120px]",value:x,onChange:m=>h(m.target.value),placeholder:l("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:l("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:P?t.jsxs(K,{variant:"destructive",className:"gap-2",onClick:Ve,children:[t.jsx(dt,{className:"h-3.5 w-3.5"}),l("details.tool.cancel")]}):t.jsxs(K,{variant:"default",className:"gap-2",onClick:Je,children:[t.jsx(yt,{className:"h-3.5 w-3.5 fill-current"}),l("details.tool.executeTool")]})})]}),We=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",children:l("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&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(mt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&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:b.tokens})]}),b.bytes&&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:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),F&&t.jsx(Nt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(De,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="ui"?"secondary":"ghost",onClick:()=>B("ui"),children:t.jsx(xt,{size:14})})}),t.jsx(ke,{children:l("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(De,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="json"?"secondary":"ghost",onClick:()=>B("json"),children:t.jsx(ye,{size:14})})}),t.jsx(ke,{children:l("details.tool.jsonView")})]})]})})]})]}),y&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(gt,{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(vt,{className:"h-4 w-4"}),t.jsx(jt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(bt,{className:"text-xs text-destructive",children:y})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:F&&z==="ui"&&M?t.jsx(A.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(Z,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:l("details.tool.loadingApp")})]})}),children:t.jsx(ft,{resourceURI:F,toolInfo:S?{tool:S}:void 0,toolInput:N??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:M,onMessage:V,onUpdateModelContext:m=>T?.setAppContext(U,m),onTeardown:()=>T?.clearAppContext(U),className:"h-full"})}):u?t.jsxs(t.Fragment,{children:[t.jsx(At,{code:JSON.stringify(u,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"outline",className:"absolute top-4 right-4",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(u,null,2)),lt.success(l("details.tool.copiedToClipboard"))},children:t.jsx(St,{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(ye,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:l("details.tool.runToolToSeeResults")})]})})]});return t.jsx(je,{leading:He,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(Ae,{icon:O?.icon||null,name:O?.title||s,size:"xl",className:"shrink-0"}),t.jsx(Re.Title,{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:[_.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):_.isLoading?t.jsx(Z,{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:_.isSuccess?"ready":_.isLoading?"connecting":"error"})]}),t.jsx(It,{annotations:S?.annotations,_meta:S?._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:S?.description||"No description available"})]}),n.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:l("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:Ke}),We]})})]})})}function Jt(s){const e=E.c(21),{itemId:n,siblings:o,onBack:l}=s,i=W(),[a,c]=A.useState(o[0]?.id??"");let d;e[0]!==a||e[1]!==o?(d=o.find(p=>p.id===a)?.id??o[0]?.id??"",e[0]=a,e[1]=o,e[2]=d):d=e[2];const r=d;if(!ze(r||void 0)||!r){let p;e[3]!==i?(p=i("details.tool.connectionNotFound"),e[3]=i,e[4]=p):p=e[4];let j;e[5]!==p?(j=t.jsx("h3",{className:"text-lg font-semibold",children:p}),e[5]=p,e[6]=j):j=e[6];let N;e[7]!==i?(N=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=N):N=e[8];let v;e[9]!==N?(v=t.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[9]=N,e[10]=v):v=e[10];let y;return e[11]!==j||e[12]!==v?(y=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,v]})}),e[11]=j,e[12]=v,e[13]=y):y=e[13],y}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(Z,{className:"size-8 text-muted-foreground"})}),e[14]=h):h=e[14];let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=p=>A.startTransition(()=>c(p)),e[15]=u):u=e[15];let g;return e[16]!==r||e[17]!==l||e[18]!==o||e[19]!==n?(g=t.jsx(A.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:n,connectionId:r,siblings:o,onSelectInstance:u,onBack:l})}),e[16]=r,e[17]=l,e[18]=o,e[19]=n,e[20]=g):g=e[20],g}const Vt={prompt:Bt};function qt(){const s=E.c(9),e=Fe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const a=Be(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,r=Ht;let x;return s[5]!==d||s[6]!==l||s[7]!==a?(x=t.jsx(Jt,{itemId:l,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}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=E.c(52),e=Fe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=W(),i=decodeURIComponent(o.collectionName),a=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:r}=fe();let x;s[3]!==o.appSlug?(x={slug:o.appSlug},s[3]=o.appSlug,s[4]=x):x=s[4];const u=Be(x)[0]??null,g=u?.id??"",p=g||"no-connection",j=g??null;let N;s[5]!==r.id||s[6]!==r.slug||s[7]!==j?(N={connectionId:j,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=j,s[8]=N):N=s[8];const v=ge(N),y=Oe(p,i,v);let w;s[9]!==y||s[10]!==a?(w=async J=>{a&&await y.update.mutateAsync({id:a,data:J})},s[9]=y,s[10]=a,s[11]=w):w=s[11];const P=w;let C;s[12]!==i?(C=i?.toLowerCase(),s[12]=i,s[13]=C):C=s[13];const b=C,D=b&&Vt[b];let k;s[14]!==i?(k=Kt(i),s[14]=i,s[15]=k):k=s[15];const O=k;let I;s[16]!==r.slug?(I=t.jsx(G,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=I):I=s[17];let T;s[18]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(le,{}),s[18]=T):T=s[18];let R;s[19]!==i||s[20]!==u||s[21]!==r.slug||s[22]!==o.appSlug?(R=u&&t.jsxs(t.Fragment,{children:[t.jsx(G,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:o.appSlug},search:{tab:i},children:u.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=u,s[21]=r.slug,s[22]=o.appSlug,s[23]=R):R=s[23];let U;s[24]!==O?(U=t.jsx(G,{children:t.jsx(_e,{children:O})}),s[24]=O,s[25]=U):U=s[25];let M;s[26]!==R||s[27]!==U||s[28]!==I?(M=t.jsx(Le,{children:t.jsxs(Ue,{children:[I,T,R,U]})}),s[26]=R,s[27]=U,s[28]=I,s[29]=M):M=s[29];const _=M;if(D){let J;return s[30]!==D||s[31]!==d||s[32]!==P||s[33]!==a?(J=t.jsx(D,{itemId:a,onBack:d,onUpdate:P}),s[30]=D,s[31]=d,s[32]=P,s[33]=a,s[34]=J):J=s[34],J}let S;s[35]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Ot,{size:36,className:"text-muted-foreground"}),s[35]=S):S=s[35];let F;s[36]!==l?(F=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=F):F=s[37];let V;s[38]!==l?(V=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=V):V=s[39];let z;s[40]!==l?(z=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=z):z=s[41];let B;s[42]!==d||s[43]!==z?(B={onClick:d,children:z},s[42]=d,s[43]=z,s[44]=B):B=s[44];let q;s[45]!==F||s[46]!==V||s[47]!==B?(q=t.jsx(Et,{icon:S,title:F,description:V,buttonProps:B}),s[45]=F,s[46]=V,s[47]=B,s[48]=q):q=s[48];let Q;return s[49]!==_||s[50]!==q?(Q=t.jsx(je,{leading:_,children:q}),s[49]=_,s[50]=q,s[51]=Q):Q=s[51],Q}function Qt(){const s=E.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 n=he(e);if(decodeURIComponent(n.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 i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Wt,{}),s[2]=i):i=s[2],i}function Vo(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Z,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Vo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,b as $,j as s,U as A,af as V,l as R,T as E,B as F,V as _,X as G}from"./index-
|
|
1
|
+
import{c as S,b as $,j as s,U as A,af as V,l as R,T as E,B as F,V as _,X as G}from"./index-BeWb3VLq.js";import{i as I,n as L}from"./ArrowUp-DLUdomd9.js";import{i as O,c as P,a as Y}from"./SwitchHorizontal01-CrC4ThKg.js";import{T as K,a as U,b as X,c as q}from"./tooltip-4vv5k-uR.js";import{a as H,T as z}from"./toggle-group-BngkTNsG.js";import{B as J}from"./badge-BfMggcm8.js";const M=[];function ae(t){const e=S.c(36),{viewMode:i,onViewModeChange:j,sortKey:B,sortDirection:g,onSort:b,sortOptions:D,filters:k}=t,v=D===void 0?M:D,o=k===void 0?M:k,l=$();let N;e[0]!==o?(N=o.filter(W),e[0]=o,e[1]=N):N=e[1];const y=N.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(Y,{size:16}),e[4]=w):w=e[4];let n;e[5]!==y?(n=y>0&&s.jsx(J,{variant:"default",size:"sm",className:"absolute -top-1.5 -right-1.5 min-w-4",children:y}),e[5]=y,e[6]=n):n=e[6];let c;e[7]!==r||e[8]!==n?(c=s.jsx(K,{asChild:!0,children:s.jsx(E,{asChild:!0,children:s.jsxs(F,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=c):c=e[9];let d;e[10]!==l?(d=l("collections.collectionDisplayButton.displayAndFilters"),e[10]=l,e[11]=d):d=e[11];let m;e[12]!==d?(m=s.jsx(U,{children:d}),e[12]=d,e[13]=m):m=e[13];let x;e[14]!==c||e[15]!==m?(x=s.jsx(X,{children:s.jsxs(q,{children:[c,m]})}),e[14]=c,e[15]=m,e[16]=x):x=e[16];let p;e[17]!==j||e[18]!==l||e[19]!==i?(p=j&&i&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsxs(H,{type:"single",variant:"segmented",size:"sm",className:"w-full",value:i,onValueChange:a=>{(a==="table"||a==="cards")&&j(a)},children:[s.jsx(z,{value:"table",tooltip:l("collections.collectionDisplayButton.tableView"),className:"flex-1",children:s.jsx(O,{})}),s.jsx(z,{value:"cards",tooltip:l("collections.collectionDisplayButton.cardsView"),className:"flex-1",children:s.jsx(P,{})})]})}),e[17]=j,e[18]=l,e[19]=i,e[20]=p):p=e[20];let u;e[21]!==b||e[22]!==g||e[23]!==B||e[24]!==v||e[25]!==l?(u=v.length>0&&b&&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 font-normal text-meta",children:l("collections.collectionDisplayButton.sortBy")}),v.map(a=>{const C=B===a.id;return s.jsx(A,{onClick:()=>b(a.id),className:R("h-8 px-2 py-0 cursor-pointer",C&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[C&&s.jsx(V,{size:16,className:"text-foreground shrink-0"}),!C&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:a.label}),C&&g&&(g==="asc"?s.jsx(I,{size:16,className:"text-foreground shrink-0"}):s.jsx(L,{size:16,className:"text-foreground shrink-0"}))]})},a.id)})]}),e[21]=b,e[22]=g,e[23]=B,e[24]=v,e[25]=l,e[26]=u):u=e[26];let f;e[27]!==o?(f=o.map(Q),e[27]=o,e[28]=f):f=e[28];let h;e[29]!==p||e[30]!==u||e[31]!==f?(h=s.jsxs(_,{align:"end",className:"w-[200px] p-0 gap-0",children:[p,u,f]}),e[29]=p,e[30]=u,e[31]=f,e[32]=h):h=e[32];let T;return e[33]!==x||e[34]!==h?(T=s.jsxs(G,{children:[x,h]}),e[33]=x,e[34]=h,e[35]=T):T=e[35],T}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 font-normal text-meta",children:t.label}),t.options.map(e=>{const i=t.value===e.id;return s.jsx(A,{onClick:()=>t.onChange(e.id),className:R("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(V,{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 W(t){return t.value!=="ALL"}export{ae 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-BeWb3VLq.js";import{i as C}from"./SearchMd-7Jo0ZofC.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-BeWb3VLq.js";import{T as I,a as R,b as k,c as E,d as H,e as K}from"./table-BI-3H0Nx.js";import{i as W,n as z}from"./ArrowUp-DLUdomd9.js";function L(C){const e=S.c(31),{columns:l,data:x,sortKey:u,sortDirection:i,onSort:c,onRowClick:o,rowClassName:f}=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 v="px-4 py-2 text-left font-normal text-meta h-9";return t===b-1&&(v="px-4 py-2 text-left font-normal text-meta h-9 w-8"),v},e[2]=d):d=e[2];const g=d;let s;if(e[3]!==l||e[4]!==c||e[5]!==h||e[6]!==i||e[7]!==u){let m;e[9]!==l.length||e[10]!==c||e[11]!==h||e[12]!==i||e[13]!==u?(m=(t,b)=>{const v=u===t.id,r=t.sortable&&c;return n.jsx(I,{className:y(g(b,l.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":v&&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?T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),c(t.id))}:void 0,children:n.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&h(t.id,v)]})},t.id)},e[9]=l.length,e[10]=c,e[11]=h,e[12]=i,e[13]=u,e[14]=m):m=e[14],s=l.map(m),e[3]=l,e[4]=c,e[5]=h,e[6]=i,e[7]=u,e[8]=s}else s=e[8];let a;e[15]!==s?(a=n.jsx(R,{className:"border-b-0",children:n.jsx(k,{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]!==l||e[18]!==x||e[19]!==o||e[20]!==f){let m;e[22]!==l||e[23]!==o||e[24]!==f?(m=(t,b)=>{const v=f?.(t);return n.jsx(k,{"data-row-index":b,className:y("group/data-row transition-colors border-b-0 hover:bg-accent",o?"cursor-pointer":"",v),role:o?"button":void 0,tabIndex:o?0:void 0,onClick:o?()=>o(t):void 0,onKeyDown:o?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),o(t))}:void 0,children:l.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",!r.wrap&&"-m-0.5 truncate overflow-hidden whitespace-nowrap p-0.5"),children:r.render?r.render(t):r.accessor?r.accessor(t):null})},r.id))},b)},e[22]=l,e[23]=o,e[24]=f,e[25]=m):m=e[25],j=x.map(m),e[17]=l,e[18]=x,e[19]=o,e[20]=f,e[21]=j}else j=e[21];let N;e[26]!==j?(N=n.jsx(H,{children:j}),e[26]=j,e[27]=N):N=e[27];let w;return e[28]!==a||e[29]!==N?(w=n.jsxs(K,{className:"w-full border-collapse",children:[a,N]}),e[28]=a,e[29]=N,e[30]=w):w=e[30],w}function F(C){const e=S.c(16),{columns:l,data:x,isLoading:u,sortKey:i,sortDirection:c,onSort:o,onRowClick:f,emptyState:p}=C,h=u===void 0?!1:u,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(x.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 g;return e[9]!==l||e[10]!==x||e[11]!==f||e[12]!==o||e[13]!==c||e[14]!==i?(g=n.jsx("div",{className:"flex-1",children:n.jsx(L,{columns:l,data:x,sortKey:i,sortDirection:c,onSort:o,onRowClick:f})}),e[9]=l,e[10]=x,e[11]=f,e[12]=o,e[13]=c,e[14]=i,e[15]=g):g=e[15],g}export{F as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,j as r,n as p,P as j,l as h}from"./index-
|
|
1
|
+
import{c as b,j as r,n as p,P as j,l as h}from"./index-BeWb3VLq.js";import{B as v}from"./badge-BfMggcm8.js";function P(g){const e=b.c(13),{tabs:d,activeTab:o,onTabChange:s,className:m,placement:u}=g,f=u===void 0?"inline":u;let t;if(e[0]!==o||e[1]!==s||e[2]!==d){let c;e[4]!==o||e[5]!==s?(c=n=>{const x=o===n.id;return r.jsxs(p.Tab,{active:x,onClick:()=>s(n.id),children:[n.label,n.count!==void 0&&r.jsx(v,{variant:"secondary",className:h("h-5 min-w-5 px-1 rounded-full text-2xs font-mono inline-flex items-center justify-center",x?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:n.count})]},n.id)},e[4]=o,e[5]=s,e[6]=c):c=e[6],t=d.map(c),e[0]=o,e[1]=s,e[2]=d,e[3]=t}else t=e[3];let l;e[7]!==m||e[8]!==t?(l=r.jsx(p.Tabs,{className:m,children:t}),e[7]=m,e[8]=t,e[9]=l):l=e[9];const i=l;let a;return e[10]!==i||e[11]!==f?(a=f==="page"?r.jsx(j.Toolbar.Left.Portal,{fallback:i,children:i}):i,e[10]=i,e[11]=f,e[12]=a):a=e[12],a}export{P as C};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{c as E,a2 as F,an as X,K as z,m as te,o as J,e as se,r as q,b as H,l as D,j as o,t as V,B as Y,fy as le,L as U}from"./index-
|
|
1
|
+
import{c as E,a2 as F,an as X,K as z,m as te,o as J,e as se,r as q,b as H,l as D,j as o,t as V,B as Y,fy as le,L as U}from"./index-BeWb3VLq.js";import{s as ae}from"./Plus-Dewm72je.js";import{s as ne}from"./XClose-BVxVAZ6V.js";import{B as K}from"./badge-BfMggcm8.js";import{d as ie,e as oe,c as re,C as ce,a as de,b as me}from"./command-KmLWWmqo.js";import{I as ue}from"./icon-button-Du_O8eku.js";import{c as fe,S as pe,a as xe,b as he,e as ge}from"./sheet-DdrzSnyB.js";import{S as je}from"./switch-BI2l0q9a.js";import{T as ke}from"./textarea-7I-DLD6x.js";import{h as Se}from"./task-board-ByNQwZsl.js";import{h as be}from"./use-org-fs-CxjQMzFd.js";import{c as Re}from"./watch-sse-pool-C9NPGTmI.js";import{u as Z,a as ve}from"./use-automations-Ho0ayZT_.js";function Be(){const s=E.c(7),{org:e}=F(),a=X();let t;s[0]!==e.id?(t=z.taskBoardPrompts(e.id),s[0]=e.id,s[1]=t):t=s[1];let n;s[2]!==a?(n=async()=>(await a.call("TASK_BOARD_PROMPT_LIST",{})).prompts,s[2]=a,s[3]=n):n=s[3];let i;return s[4]!==t||s[5]!==n?(i={queryKey:t,staleTime:6e4,queryFn:n},s[4]=t,s[5]=n,s[6]=i):i=s[6],te(i)}function Ce(){const s=E.c(8),{org:e}=F(),a=X(),t=J();let n;s[0]!==a?(n=async c=>{const{columnKey:r,rules:p}=c;if(p){const d=p.prompt.trim();await(d||p.skills.length?a.call("TASK_BOARD_PROMPT_UPSERT",{columnKey:r,prompt:d,skills:p.skills}):a.call("TASK_BOARD_PROMPT_DELETE",{columnKey:r}))}},s[0]=a,s[1]=n):n=s[1];let i;s[2]!==e||s[3]!==t?(i=()=>t.invalidateQueries({queryKey:z.taskBoardPrompts(e.id)}),s[2]=e,s[3]=t,s[4]=i):i=s[4];let l;return s[5]!==n||s[6]!==i?(l={mutationFn:n,onSettled:i},s[5]=n,s[6]=i,s[7]=l):l=s[7],se(l)}const W=()=>0;function Ge(){const s=E.c(6),{org:e}=F(),a=J();let t;s[0]!==e.id||s[1]!==a?(t=()=>a.invalidateQueries({queryKey:z.taskBoardPrompts(e.id)}),s[0]=e.id,s[1]=a,s[2]=t):t=s[2];const n=t;let i;s[3]!==e.slug||s[4]!==n?(i=()=>Re.subscribe(e.slug,n,n),s[3]=e.slug,s[4]=n,s[5]=i):i=s[5];const l=i;q.useSyncExternalStore(l,W,W)}function Ne(s){const e=E.c(8),a=Be();let t;e[0]!==s||e[1]!==a.data?(t=a.data?.find(l=>l.columnKey===s),e[0]=s,e[1]=a.data,e[2]=t):t=e[2];let n;e[3]!==a.data?(n=a.data?.find(Te)?.skills??[],e[3]=a.data,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={scope:t,boardSkills:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],i}function Te(s){return s.columnKey===null}function Ve(s){const e=E.c(7),{data:a}=Z();let t;e[0]!==a?(t=a??[],e[0]=a,e[1]=t):t=e[1];let n;if(e[2]!==s||e[3]!==t){let i;e[5]!==s?(i=l=>l.board_triggers.some(c=>c.type==="board_column_transition"&&c.column_key===s),e[5]=s,e[6]=i):i=e[6],n=t.filter(i),e[2]=s,e[3]=t,e[4]=n}else n=e[4];return n}function ye(s){const e=E.c(7),{data:a}=Z();let t;e[0]!==a?(t=a??[],e[0]=a,e[1]=t):t=e[1];let n;if(e[2]!==s||e[3]!==t){let i;e[5]!==s?(i=l=>l.board_triggers.some(c=>c.column_key===s),e[5]=s,e[6]=i):i=e[6],n=t.filter(i),e[2]=s,e[3]=t,e[4]=n}else n=e[4];return n}function Pe(s){const e=E.c(33),{columnKey:a}=s,t=H(),{org:n}=F(),i=ye(a),{update:l}=ve();let c;e[0]!==t?(c=t("taskBoard.columnRules.automationsLabel"),e[0]=t,e[1]=c):c=e[1];let r;e[2]!==c?(r=o.jsx(Q,{children:c}),e[2]=c,e[3]=r):r=e[3];let p;if(e[4]!==i||e[5]!==n.slug||e[6]!==t||e[7]!==l){let S;e[9]!==n.slug||e[10]!==t||e[11]!==l?(S=h=>o.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border px-3 py-2",children:[o.jsxs(U,{to:"/$org/projects/$agentId/automations/$automationId",params:{org:n.slug,agentId:h.virtual_mcp_id,automationId:h.id},className:"flex min-w-0 flex-1 items-center gap-2 text-sm text-foreground hover:underline",children:[o.jsx("span",{className:"truncate",children:h.name}),h.system_key&&o.jsx(K,{variant:"muted",children:t("automations.builtin.badge")})]}),o.jsx(je,{checked:h.active,disabled:l.isPending,onCheckedChange:R=>l.mutate({id:h.id,active:R}),"aria-label":t("taskBoard.columnRules.toggleAutomation",{name:h.name})})]},h.id),e[9]=n.slug,e[10]=t,e[11]=l,e[12]=S):S=e[12],p=i.map(S),e[4]=i,e[5]=n.slug,e[6]=t,e[7]=l,e[8]=p}else p=e[8];let d;e[13]!==i.length||e[14]!==t?(d=i.length===0&&o.jsxs(o.Fragment,{children:[t("taskBoard.columnRules.noAutomations")," "]}),e[13]=i.length,e[14]=t,e[15]=d):d=e[15];const j=n.slug;let f;e[16]!==n.id?(f=le(n.id),e[16]=n.id,e[17]=f):f=e[17];let x;e[18]!==n.slug||e[19]!==f?(x={org:j,agentId:f},e[18]=n.slug,e[19]=f,e[20]=x):x=e[20];let m;e[21]!==t?(m=t("taskBoard.columnRules.addAutomation"),e[21]=t,e[22]=m):m=e[22];let u;e[23]!==x||e[24]!==m?(u=o.jsx(U,{to:"/$org/projects/$agentId/automations",params:x,className:"text-foreground underline underline-offset-2",children:m}),e[23]=x,e[24]=m,e[25]=u):u=e[25];let k;e[26]!==d||e[27]!==u?(k=o.jsxs("p",{className:"text-meta",children:[d,u]}),e[26]=d,e[27]=u,e[28]=k):k=e[28];let b;return e[29]!==k||e[30]!==r||e[31]!==p?(b=o.jsxs("section",{className:"flex flex-col gap-2",children:[r,p,k]}),e[29]=k,e[30]=r,e[31]=p,e[32]=b):b=e[32],b}function Ye(s){const e=E.c(21),{columnKey:a,label:t,open:n,onOpenChange:i}=s,{scope:l,boardSkills:c}=Ne(a);let r;e[0]!==t?(r=o.jsx(fe,{className:"border-b",children:o.jsx(pe,{children:t})}),e[0]=t,e[1]=r):r=e[1];const p=l?.prompt??"";let d;e[2]!==l?.skills?(d=l?.skills??[],e[2]=l?.skills,e[3]=d):d=e[3];let j;e[4]!==p||e[5]!==d?(j={prompt:p,skills:d},e[4]=p,e[5]=d,e[6]=j):j=e[6];let f;e[7]!==i?(f=()=>i(!1),e[7]=i,e[8]=f):f=e[8];let x;e[9]!==c||e[10]!==a||e[11]!==j||e[12]!==f?(x=o.jsx($e,{columnKey:a,initial:j,boardSkills:c,onDone:f}),e[9]=c,e[10]=a,e[11]=j,e[12]=f,e[13]=x):x=e[13];let m;e[14]!==r||e[15]!==x?(m=o.jsxs(xe,{className:"w-full gap-0 sm:max-w-md","aria-describedby":void 0,children:[r,x]}),e[14]=r,e[15]=x,e[16]=m):m=e[16];let u;return e[17]!==n||e[18]!==i||e[19]!==m?(u=o.jsx(o.Fragment,{children:o.jsx(he,{open:n,onOpenChange:i,children:m})}),e[17]=n,e[18]=i,e[19]=m,e[20]=u):u=e[20],u}function $e(s){const e=E.c(58),{columnKey:a,initial:t,boardSkills:n,onDone:i}=s,l=H(),c=Ce(),[r,p]=q.useState(t.prompt),[d,j]=q.useState(t.skills);let f;e[0]!==a||e[1]!==t.prompt||e[2]!==t.skills||e[3]!==i||e[4]!==r||e[5]!==c||e[6]!==d||e[7]!==l?(f=()=>c.mutate({columnKey:a,...r!==t.prompt||d.join(`
|
|
2
2
|
`)!==t.skills.join(`
|
|
3
3
|
`)?{rules:{prompt:r,skills:d}}:{}},{onSuccess:()=>{V.success(l("taskBoard.columnRules.saved")),i()},onError:g=>V.error(g instanceof Error?g.message:l("taskBoard.columnRules.failed"))}),e[0]=a,e[1]=t.prompt,e[2]=t.skills,e[3]=i,e[4]=r,e[5]=c,e[6]=d,e[7]=l,e[8]=f):f=e[8];const x=f;let m;e[9]!==a?(m=o.jsx(Pe,{columnKey:a}),e[9]=a,e[10]=m):m=e[10];let u;e[11]!==l?(u=l("taskBoard.columnRules.promptLabel"),e[11]=l,e[12]=u):u=e[12];let k;e[13]!==u?(k=o.jsx(Q,{children:u}),e[13]=u,e[14]=k):k=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=g=>p(g.target.value),e[15]=b):b=e[15];let S;e[16]!==l?(S=l("taskBoard.columnRules.promptPlaceholder"),e[16]=l,e[17]=S):S=e[17];let h;e[18]!==l?(h=l("taskBoard.columnRules.promptLabel"),e[18]=l,e[19]=h):h=e[19];let R;e[20]!==r||e[21]!==S||e[22]!==h?(R=o.jsx(ke,{value:r,rows:5,maxLength:Se,onChange:b,placeholder:S,"aria-label":h}),e[20]=r,e[21]=S,e[22]=h,e[23]=R):R=e[23];let v;e[24]!==k||e[25]!==R?(v=o.jsxs("section",{className:"flex flex-col gap-2",children:[k,R]}),e[24]=k,e[25]=R,e[26]=v):v=e[26];let C;e[27]!==l?(C=l("taskBoard.columnRules.skillsLabel"),e[27]=l,e[28]=C):C=e[28];let N;e[29]!==C?(N=o.jsx(Q,{children:C}),e[29]=C,e[30]=N):N=e[30];let T;e[31]!==n||e[32]!==d?(T=o.jsx(Ee,{fill:!0,value:d,onChange:j,inherited:n}),e[31]=n,e[32]=d,e[33]=T):T=e[33];let y;e[34]!==N||e[35]!==T?(y=o.jsxs("section",{className:"flex min-h-64 flex-1 flex-col gap-2",children:[N,T]}),e[34]=N,e[35]=T,e[36]=y):y=e[36];let A;e[37]!==y||e[38]!==m||e[39]!==v?(A=o.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto p-4",children:[m,v,y]}),e[37]=y,e[38]=m,e[39]=v,e[40]=A):A=e[40];let B;e[41]!==l?(B=l("taskBoard.columnRules.cancel"),e[41]=l,e[42]=B):B=e[42];let w;e[43]!==i||e[44]!==B?(w=o.jsx(Y,{variant:"outline",onClick:i,children:B}),e[43]=i,e[44]=B,e[45]=w):w=e[45];const O=c.isPending;let P;e[46]!==l?(P=l("taskBoard.columnRules.save"),e[46]=l,e[47]=P):P=e[47];let I;e[48]!==c.isPending||e[49]!==x||e[50]!==P?(I=o.jsx(Y,{disabled:O,onClick:x,children:P}),e[48]=c.isPending,e[49]=x,e[50]=P,e[51]=I):I=e[51];let $;e[52]!==w||e[53]!==I?($=o.jsxs(ge,{className:"flex-row justify-end border-t",children:[w,I]}),e[52]=w,e[53]=I,e[54]=$):$=e[54];let L;return e[55]!==A||e[56]!==$?(L=o.jsxs(o.Fragment,{children:[A,$]}),e[55]=A,e[56]=$,e[57]=L):L=e[57],L}function Q(s){const e=E.c(2),{children:a}=s;let t;return e[0]!==a?(t=o.jsx("h3",{className:"text-sm font-medium text-foreground",children:a}),e[0]=a,e[1]=t):t=e[1],t}const Ae=[];function Ee(s){const e=E.c(71),{value:a,onChange:t,inherited:n,fill:i}=s,l=n===void 0?Ae:n,c=i===void 0?!1:i,r=H(),p=be();let d;e[0]!==p.data?(d=B=>p.data?.find(w=>w.id===B)?.name??B,e[0]=p.data,e[1]=d):d=e[1];const j=d;let f,x,m,u,k,b,S,h,R,v;if(e[2]!==p.data||e[3]!==c||e[4]!==l||e[5]!==j||e[6]!==t||e[7]!==r||e[8]!==a){let B;e[19]!==l||e[20]!==a?(B=g=>!g.disableModelInvocation&&!a.includes(g.id)&&!l.includes(g.id),e[19]=l,e[20]=a,e[21]=B):B=e[21];const w=(p.data??[]).filter(B);if(e[22]!==c||e[23]!==l||e[24]!==j||e[25]!==t||e[26]!==r||e[27]!==a){let g;e[30]!==l?(g=_=>!l.includes(_),e[30]=l,e[31]=g):g=e[31];const G=a.filter(g),M=c&&"min-h-0 flex-1";e[32]!==M?(v=D("flex flex-col gap-2",M),e[32]=M,e[33]=v):v=e[33],u=G.length>0&&o.jsx("div",{className:"flex flex-wrap gap-1.5",children:G.map(_=>o.jsxs(K,{variant:"outline",className:"py-0 pr-0 pl-2",children:[j(_),o.jsx(ue,{label:r("taskBoard.columnRules.removeSkill",{skill:j(_)}),onClick:()=>t(a.filter(ee=>ee!==_)),className:"size-5 text-muted-foreground",children:o.jsx(ne,{size:12})})]},_))}),e[22]=c,e[23]=l,e[24]=j,e[25]=t,e[26]=r,e[27]=a,e[28]=u,e[29]=v}else u=e[28],v=e[29];m=ie;const O=c&&"min-h-0 flex-1";e[34]!==O?(h=D("h-auto border",O),e[34]=O,e[35]=h):h=e[35];let P;e[36]!==r?(P=r("taskBoard.columnRules.searchSkills"),e[36]=r,e[37]=P):P=e[37],e[38]!==P?(R=o.jsx(oe,{placeholder:P,className:"h-9"}),e[38]=P,e[39]=R):R=e[39],x=re;const I=c?"max-h-none flex-1":"max-h-56";e[40]!==I?(b=D(I),e[40]=I,e[41]=b):b=e[41];let $;e[42]!==r?($=r("taskBoard.columnRules.noSkills"),e[42]=r,e[43]=$):$=e[43],e[44]!==$?(S=o.jsx(ce,{children:$}),e[44]=$,e[45]=S):S=e[45],f=de;let L;e[46]!==t||e[47]!==a?(L=g=>o.jsxs(me,{value:`${g.name} ${g.id}`,onSelect:()=>t([...a,g.id]),children:[o.jsx(ae,{size:14,className:"shrink-0 text-muted-foreground"}),o.jsxs("span",{className:"flex min-w-0 flex-col",children:[o.jsx("span",{className:"truncate text-sm",children:g.name}),g.description&&o.jsx("span",{className:"text-meta line-clamp-1",children:g.description})]})]},g.id),e[46]=t,e[47]=a,e[48]=L):L=e[48],k=w.map(L),e[2]=p.data,e[3]=c,e[4]=l,e[5]=j,e[6]=t,e[7]=r,e[8]=a,e[9]=f,e[10]=x,e[11]=m,e[12]=u,e[13]=k,e[14]=b,e[15]=S,e[16]=h,e[17]=R,e[18]=v}else f=e[9],x=e[10],m=e[11],u=e[12],k=e[13],b=e[14],S=e[15],h=e[16],R=e[17],v=e[18];let C;e[49]!==f||e[50]!==k?(C=o.jsx(f,{children:k}),e[49]=f,e[50]=k,e[51]=C):C=e[51];let N;e[52]!==x||e[53]!==C||e[54]!==b||e[55]!==S?(N=o.jsxs(x,{className:b,children:[S,C]}),e[52]=x,e[53]=C,e[54]=b,e[55]=S,e[56]=N):N=e[56];let T;e[57]!==m||e[58]!==N||e[59]!==h||e[60]!==R?(T=o.jsxs(m,{className:h,children:[R,N]}),e[57]=m,e[58]=N,e[59]=h,e[60]=R,e[61]=T):T=e[61];let y;e[62]!==l||e[63]!==j||e[64]!==r?(y=l.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-meta",children:r("taskBoard.columnRules.inheritedHint")}),o.jsx("div",{className:"flex flex-wrap gap-1.5",children:l.map(B=>o.jsx(K,{variant:"muted",children:j(B)},B))})]}),e[62]=l,e[63]=j,e[64]=r,e[65]=y):y=e[65];let A;return e[66]!==u||e[67]!==T||e[68]!==y||e[69]!==v?(A=o.jsxs("div",{className:v,children:[u,T,y]}),e[66]=u,e[67]=T,e[68]=y,e[69]=v,e[70]=A):A=e[70],A}export{Ye as C,Ee as S,Ve as a,Be as b,Ce as c,Ge as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Q,r as U,j as s,l as S,B as W,af as X}from"./index-
|
|
1
|
+
import{c as Q,r as U,j as s,l as S,B as W,af as X}from"./index-BeWb3VLq.js";import{i as Y}from"./ChevronSelectorVertical-C5d75KyY.js";import{e as Z,C as _,b as ee,a as se,c as te,d as le}from"./command-KmLWWmqo.js";import{a as ae,P as re,b as oe}from"./popover-s88DXvPL.js";function me(z){const e=Q.c(48),{options:C,value:l,onChange:j,placeholder:A,triggerClassName:F,contentClassName:w,width:G,renderTrigger:L,renderItem:o,emptyMessage:V,searchPlaceholder:k,filter:P,renderSearchAction:E,onSearchChange:n}=z,D=A===void 0?"Select...":A,H=G===void 0?"w-[200px]":G,O=V===void 0?"No results found.":V,T=k===void 0?"Search...":k;let g;e[0]!==l?(g=a=>a.value===l,e[0]=l,e[1]=g):g=e[1];const I=C.find(g),[B,J]=U.useState(!1);let b;e[2]!==n?(b=a=>{J(a),a||n?.("")},e[2]=n,e[3]=b):b=e[3];const t=b,M=re,R=ae,K=!0,$=L?s.jsx("div",{className:S("cursor-pointer",F),children:L(I)}):s.jsxs(W,{variant:"outline",role:"combobox",className:S("justify-between rounded-[var(--studio-control-radius,var(--radius-lg))]",H,F),children:[I?I.label:D,s.jsx(Y,{className:"opacity-50"})]});let i;e[4]!==R||e[5]!==$?(i=s.jsx(R,{asChild:K,children:$}),e[4]=R,e[5]=$,e[6]=i):i=e[6];let c;e[7]!==w?(c=S("p-0",w),e[7]=w,e[8]=c):c=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y={width:"var(--radix-popover-trigger-width)"},e[9]=y):y=e[9];let d;e[10]!==E||e[11]!==t?(d=E?.(()=>t(!1)),e[10]=E,e[11]=t,e[12]=d):d=e[12];let m;e[13]!==n||e[14]!==T||e[15]!==d?(m=s.jsx(Z,{placeholder:T,className:"h-9",onValueChange:n,action:d}),e[13]=n,e[14]=T,e[15]=d,e[16]=m):m=e[16];let h;e[17]!==O?(h=s.jsx(_,{children:O}),e[17]=O,e[18]=h):h=e[18];let f;if(e[19]!==j||e[20]!==C||e[21]!==o||e[22]!==t||e[23]!==l){let a;e[25]!==j||e[26]!==o||e[27]!==t||e[28]!==l?(a=r=>{const q=l===r.value;return s.jsx(ee,{value:r.label,onSelect:()=>{j(r.value===l?"":r.value),t(!1)},children:o?o(r,q):s.jsxs(s.Fragment,{children:[r.label,s.jsx(X,{className:S("ml-auto",q?"opacity-100":"opacity-0")})]})},r.value)},e[25]=j,e[26]=o,e[27]=t,e[28]=l,e[29]=a):a=e[29],f=C.map(a),e[19]=j,e[20]=C,e[21]=o,e[22]=t,e[23]=l,e[24]=f}else f=e[24];let p;e[30]!==f?(p=s.jsx(se,{children:f}),e[30]=f,e[31]=p):p=e[31];let u;e[32]!==h||e[33]!==p?(u=s.jsxs(te,{children:[h,p]}),e[32]=h,e[33]=p,e[34]=u):u=e[34];let x;e[35]!==P||e[36]!==m||e[37]!==u?(x=s.jsxs(le,{filter:P,children:[m,u]}),e[35]=P,e[36]=m,e[37]=u,e[38]=x):x=e[38];let v;e[39]!==c||e[40]!==x?(v=s.jsx(oe,{className:c,style:y,children:x}),e[39]=c,e[40]=x,e[41]=v):v=e[41];let N;return e[42]!==M||e[43]!==B||e[44]!==t||e[45]!==v||e[46]!==i?(N=s.jsxs(M,{open:B,onOpenChange:t,children:[i,v]}),e[42]=M,e[43]=B,e[44]=t,e[45]=v,e[46]=i,e[47]=N):N=e[47],N}export{me as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,j as r,l as h,bs as b,D as j,v as w,aM as y,s as C,q as z}from"./index-
|
|
1
|
+
import{c as v,j as r,l as h,bs as b,D as j,v as w,aM as y,s as C,q as z}from"./index-BeWb3VLq.js";import{_ as k}from"./index-BliYmmPu.js";import{i as D}from"./SearchMd-7Jo0ZofC.js";function $(a){const e=v.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=h("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=r.jsx(k,{"data-slot":"command",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function L(a){const e=v.c(28);let t,s,l,o,n,_,u;e[0]!==a?({title:_,description:u,children:t,className:s,filter:l,shouldFilter:n,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=_,e[7]=u):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5],_=e[6],u=e[7]);const f=_===void 0?"Command Palette":_,x=u===void 0?"Search for a command to run...":u;let g;e[8]!==f?(g=r.jsx(w,{children:f}),e[8]=f,e[9]=g):g=e[9];let i;e[10]!==x?(i=r.jsx(y,{children:x}),e[10]=x,e[11]=i):i=e[11];let d;e[12]!==g||e[13]!==i?(d=r.jsxs(C,{className:"sr-only",children:[g,i]}),e[12]=g,e[13]=i,e[14]=d):d=e[14];let c;e[15]!==s?(c=h("overflow-hidden p-0",s),e[15]=s,e[16]=c):c=e[16];let m;e[17]!==t||e[18]!==l||e[19]!==n?(m=r.jsx($,{filter:l,shouldFilter:n,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]=n,e[20]=m):m=e[20];let p;e[21]!==c||e[22]!==m?(p=r.jsx(z,{className:c,closeButtonClassName:"hidden",children:m}),e[21]=c,e[22]=m,e[23]=p):p=e[23];let N;return e[24]!==o||e[25]!==d||e[26]!==p?(N=r.jsxs(j,{...o,children:[d,p]}),e[24]=o,e[25]=d,e[26]=p,e[27]=N):N=e[27],N}function R(a){const e=v.c(23);let t,s,l,o,n;e[0]!==a?({className:s,size:o,variant:n,action:t,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5]);const _=o===void 0?"default":o,u=n===void 0?"underline":n,f=_==="sm"?"h-9":"h-10",x=u==="boxed",g=x?"rounded-xl border border-input bg-transparent focus-within-ring":"border-b";let i;e[6]!==f||e[7]!==g?(i=h("flex items-center gap-2 px-3",f,g),e[6]=f,e[7]=g,e[8]=i):i=e[8];let d;e[9]!==x?(d=!x&&r.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[9]=x,e[10]=d):d=e[10];let c;e[11]!==s||e[12]!==f?(c=h("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",f,s),e[11]=s,e[12]=f,e[13]=c):c=e[13];let m;e[14]!==l||e[15]!==c?(m=r.jsx(k.Input,{"data-slot":"command-input",className:c,...l}),e[14]=l,e[15]=c,e[16]=m):m=e[16];let p;return e[17]!==t||e[18]!==i||e[19]!==d||e[20]!==m||e[21]!==u?(p=r.jsxs("div",{"data-slot":"command-input-wrapper","data-variant":u,className:i,children:[d,m,t]}),e[17]=t,e[18]=i,e[19]=d,e[20]=m,e[21]=u,e[22]=p):p=e[22],p}function V(a){const e=v.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=h("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=r.jsx(k.List,{"data-slot":"command-list",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function q(a){const e=v.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=r.jsx(k.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 B(a){const e=v.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=h("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=r.jsx(k.Group,{"data-slot":"command-group",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function F(a){const e=v.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=h("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=r.jsx(k.Separator,{"data-slot":"command-separator",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}const I=b("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex 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"},size:{default:"",lg:"min-h-11 gap-3 rounded-lg px-2.5 py-2"}},defaultVariants:{highlight:"selected",size:"default"}});function H(a){const e=v.c(10);let t,s,l;e[0]!==a?({className:t,size:l,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==t||e[5]!==l?(o=h(I({size:l}),t),e[4]=t,e[5]=l,e[6]=o):o=e[6];let n;return e[7]!==s||e[8]!==o?(n=r.jsx(k.Item,{"data-slot":"command-item",className:o,...s}),e[7]=s,e[8]=o,e[9]=n):n=e[9],n}export{q as C,B as a,H as b,V as c,$ as d,R as e,L as f,I as g,F as h};
|
package/dist/client/assets/{companion-mcps-section-B3EkkVtL.js → companion-mcps-section-vJ3FRpYP.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _,r as T,l as Q,j as s,Q as Y,H as Z,b as U,a as ee,J as te,B as ne}from"./index-
|
|
1
|
+
import{c as _,r as T,l as Q,j as s,Q as Y,H as Z,b as U,a as ee,J as te,B as ne}from"./index-BeWb3VLq.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-2WkK0AxE.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-Dmdscsai.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 z="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:z,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:z,children:[r,s.jsxs("div",{role:"alert",className:"surface 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),[F,D]=T.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==F||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),J=m.filter(xe),G=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(G),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:F,onAutoOpenConfigHandled:()=>D(H=>H===h.fieldKey?null:H),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=z,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=[...$,...J].map(W)}e[17]=F,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 +1 @@
|
|
|
1
|
-
import{p as x,m as k}from"./core.esm-
|
|
1
|
+
import{p as x,m as k}from"./core.esm-BmE_KURk.js";import{i as _}from"./AlertCircle-Cch634f7.js";import{aY as v,aZ as B,a_ as g,a$ as K,B as S,F as w,b0 as A,t as I,b1 as L,b2 as O,aQ as T,a9 as E}from"./agent-icon-CiKTiUdq.js";import{b0 as D,a6 as R,aN as P,d9 as y}from"./index-BeWb3VLq.js";import{i as $}from"./CheckCircle-Cs8i9zYt.js";import{s as M}from"./Image01-hTzc15CE.js";import{e as F,C as l}from"./task-board-ByNQwZsl.js";const U=D("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),j=["ended_after_delivery","superseded"];function H(e){return!!e&&j.includes(e)}function re(e){return!(e.action==="status_changed"&&typeof e.data?.retry=="number")}function oe(e){return e.failureKind!=="superseded"}function d(e){return e.threads.some(t=>t.status==="requires_action")}function ie(e){return e.status==="in_review"&&!e.assigneeId}function ce(e){return d(e)}function u(e){return e.status==="done"||e.status==="archived"?!1:e.priority==="urgent"||e.type==="security"||d(e)||Y(e)==="failed"}const N="critical:";function W(e){return e!=="done"&&e!=="archived"}function le({overId:e,itemOf:t,fromStatus:a,toStatus:n}){if(e===void 0||!W(n))return null;const s=String(e);if(s.startsWith(N))return"critical";if(a!==n)return null;if(s.startsWith(b))return"improvements";const r=t(s);return r?u(r)?"critical":"improvements":null}function ue(e,t){const a=u(e);return t==="critical"?a?null:"urgent":a?u({...e,priority:"high"})?null:"high":null}function de(e){return e.status==="in_progress"&&d(e)?"text-warning animate-pulse":h(e.status).iconClassName}function Y(e){return e.threads.some(a=>a.status==="in_progress")?"running":e.threads.some(a=>a.status==="failed"&&!H(a.failureKind))?"failed":null}function fe(e,t,a){const n=e.findIndex(o=>o.id===a),s=t===a?e[n+1]?.id??null:t,r=e.filter(o=>o.id!==a),f=s?r.findIndex(o=>o.id===s):-1,m=f===-1?r.length:f,i=r[m-1],c=r[m];return i&&c?(i.sortOrder+c.sortOrder)/2:i?i.sortOrder+1:c?c.sortOrder-1:0}function me(e,t){return Array.from({length:t},(a,n)=>e-(t-1-n)*1e-4)}const q=["archived"],C={triage:{labelKey:"taskBoard.config.statusBacklog",icon:_,iconClassName:"text-muted-foreground"},todo:{labelKey:"taskBoard.config.statusTodo",icon:y,iconClassName:"text-muted-foreground"},in_progress:{labelKey:"taskBoard.config.statusInProgress",icon:E,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:M,iconClassName:"text-warning"},qa:{labelKey:"taskBoard.config.statusQa",icon:T,iconClassName:"text-warning"},customer_approval:{labelKey:"taskBoard.config.statusCustomerApproval",icon:O,iconClassName:"text-warning"},ready_for_deployment:{labelKey:"taskBoard.config.statusReadyForDeployment",icon:L,iconClassName:"text-success"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:I,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:$,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:P,iconClassName:"text-muted-foreground"}},G={icon:y,iconClassName:"text-muted-foreground"},V=C;function h(e){return V[e]??G}function ge(e,t){const a=C[e];return{label:a?t(a.labelKey):e,visual:h(e)}}const pe=["bug","feature","chore","spike","security"],ye={bug:{labelKey:"taskBoard.config.typeBug",icon:U,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:A,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:w,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:S,iconClassName:"text-brand-yellow"},security:{labelKey:"taskBoard.config.typeSecurity",icon:R,iconClassName:"text-project-purple"}};function p(e,t){return t[e]??!q.includes(e)}function Ne(e){return{lanes:l.filter(t=>p(t,e)),hidden:l.filter(t=>!p(t,e))}}const z=44;function Ce({lanes:e,collapsed:t,hasHiddenTail:a}){const n=e.map(s=>t.includes(s)?`${z}px`:"minmax(280px, 1fr)");return a&&n.push("280px"),n.join(" ")}const b="lane:",he=e=>{const t=x(e);return t.length>0?t:k(e)};function Q(e){return l.includes(e)}function be({overId:e,statusOf:t}){if(e===void 0)return null;const a=String(e),n=[b,N].find(r=>a.startsWith(r)),s=n?a.slice(n.length):t(a);return s!==void 0&&Q(s)?s:null}function xe(e,t){return Math.max(0,Math.floor((t-Date.parse(e))/864e5))}const ke=["none","low","medium","high","urgent"],_e={none:{labelKey:"taskBoard.config.priorityNone",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50",icon:g,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:K,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-project-blue",dotClassName:"bg-project-blue",icon:g,iconClassName:"text-project-blue"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:B,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:v,iconClassName:"text-destructive"}};function ve(e,t=Date.now()){const a=new Date(e).getTime();return Number.isNaN(a)?null:a<t?"overdue":a-t<=X*864e5?"soon":null}const X=3;function Be(e){return`color-mix(in oklab, ${e??F} var(--user-color-strength), transparent)`}export{N as C,q as H,b as L,ke as P,C as S,pe as T,ie as a,_e as b,ye as c,Y as d,u as e,h as f,oe as g,re as h,d as i,H as j,p as k,ge as l,Ne as m,Ce as n,he as o,ce as p,ue as q,me as r,de as s,Be as t,fe as u,W as v,be as w,le as x,ve as y,xe as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as w,j as s,b as _,r as J,l as Ce,af as me,
|
|
1
|
+
import{c as w,j as s,b as _,r as J,l as Ce,af as me,g5 as be,a2 as ve,am as Ne,a3 as we,B as ie,t as fe,f0 as pe,ew as ke,av as Se}from"./index-BeWb3VLq.js";import{A as $e,b as _e}from"./alert-DlpN1nbO.js";import{B as Ke}from"./badge-BfMggcm8.js";import{a as Ae,b as Ie,c as de,d as ze,S as Te}from"./select-H4FJk0rp.js";import{b as se,T as oe,a as xe,c as ae}from"./tabs-Cw5epDK7.js";import{u as ge}from"./use-copy-C4LbXPXl.js";import{a as he}from"./Copy01-B341DqLV.js";import{i as Le}from"./Key01-kTu6t6u_.js";import{i as Oe}from"./Link01-hfA48cFL.js";import{C as De,a as Me,b as Ee}from"./client-icons-C_WiAP0u.js";import{u as Be,a as He,A as Pe}from"./api-keys-SwcfBYZn.js";import{R as Ge}from"./require-capability-DC_q9Xad.js";import"./index-BdQq_4o_.js";import"./index-CdhgpKbn.js";import"./ChevronUp-BT7eMKPK.js";import"./active-indicator-CCMhAsc_.js";import"./AlertCircle-Cch634f7.js";import"./Plus-Dewm72je.js";import"./Trash01-DjE7Raat.js";import"./empty-state-wXIjf_EN.js";import"./alert-dialog-BdWXpnme.js";import"./label-TKhfC6jr.js";import"./use-mcp-client-2WkK0AxE.js";import"./auth-DVebpHI3.js";import"./access-gate-BpfEc6VH.js";import"./capability-load-error-BuC7MxXm.js";function Re(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ve(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function Ue({client:t,mode:e,url:i,apiKey:o}){const n=o??"<paste-your-api-key>",r=Re();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${r} ${i}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${r} ${i} \\
|
|
2
2
|
--header "Authorization: Bearer ${n}"`};if(t==="cursor"){const l={url:i};return e==="api-key"&&(l.headers={Authorization:`Bearer ${n}`}),{language:"json",pathHint:"~/.cursor/mcp.json",code:JSON.stringify({mcpServers:{[r]:l}},null,2)}}if(t==="codex"){const l=[`[mcp_servers.${r}]`,`url = "${i}"`];return e==="api-key"&&l.push(`http_headers = { "Authorization" = "Bearer ${n}" }`),{language:"toml",pathHint:"~/.codex/config.toml",code:l.join(`
|
|
3
3
|
`)}}return e==="oauth"?{language:"text",code:`${i}
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,b as N,j as s,ad as w,aU as k,av as y,B as z}from"./index-
|
|
1
|
+
import{c as v,b as N,j as s,ad as w,aU as k,av as y,B as z}from"./index-BeWb3VLq.js";import{b3 as _,aD as C}from"./agent-icon-CiKTiUdq.js";const S="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function $(){const t=v.c(13),e=N();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),t[0]=l):l=t[0];let n;t[1]!==e?(n=e("routes.reportsOnboarding.connectModal.quote"),t[1]=e,t[2]=n):n=t[2];let o;t[3]!==n?(o=s.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",n,"”"]}),t[3]=n,t[4]=o):o=t[4];let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=c):c=t[5];let r;t[6]!==e?(r=e("routes.reportsOnboarding.connectModal.quoteAuthor"),t[6]=e,t[7]=r):r=t[7];let i;t[8]!==r?(i=s.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[c,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let a;return t[10]!==o||t[11]!==i?(a=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=a):a=t[12],a}function M(){const t=v.c(19),e=N();let l;t[0]!==e?(l=e("routes.reportsOnboarding.connectModal.trustRevoke"),t[0]=e,t[1]=l):l=t[1];let n;t[2]!==l?(n={Icon:_,label:l},t[2]=l,t[3]=n):n=t[3];let o;t[4]!==e?(o=e("routes.reportsOnboarding.connectModal.trustEncrypted"),t[4]=e,t[5]=o):o=t[5];let c;t[6]!==o?(c={Icon:w,label:o},t[6]=o,t[7]=c):c=t[7];let r;t[8]!==e?(r=e("routes.reportsOnboarding.connectModal.trustNeverSold"),t[8]=e,t[9]=r):r=t[9];let i;t[10]!==r?(i={Icon:C,label:r},t[10]=r,t[11]=i):i=t[11];let a;t[12]!==n||t[13]!==c||t[14]!==i?(a=[n,c,i],t[12]=n,t[13]=c,t[14]=i,t[15]=a):a=t[15];const m=a;let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"h-px w-full bg-white/15"}),t[16]=f):f=t[16];let d;return t[17]!==m?(d=s.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[f,s.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:m.map(q)})]}),t[17]=m,t[18]=d):d=t[18],d}function q(t){const{Icon:e,label:l}=t;return s.jsxs("li",{className:"flex items-center gap-2.5 text-sm leading-tight text-white/70",children:[s.jsx(e,{className:"size-4 shrink-0 opacity-85"}),l]},l)}function R(t){const e=v.c(22),{siteHost:l,footer:n,onClose:o,children:c}=t,r=N(),i=l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null;let a;e[0]!==o||e[1]!==r?(a=o&&s.jsx("button",{type:"button",onClick:o,"aria-label":r("routes.reportsOnboarding.connectModal.close"),className:"absolute right-3 top-3 z-10 flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-black/10 hover:text-foreground lg:text-white/80 lg:hover:bg-white/15 lg:hover:text-white",children:s.jsx(k,{size:18})}),e[0]=o,e[1]=r,e[2]=a):a=e[2];let m,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"size-7 shrink-0 dark:hidden"}),f=s.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"hidden size-7 shrink-0 dark:block"}),e[3]=m,e[4]=f):(m=e[3],f=e[4]);let d;e[5]!==i||e[6]!==l?(d=l&&s.jsxs(s.Fragment,{children:[s.jsx(y,{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-base leading-tight text-muted-foreground",children:l})]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let x;e[8]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[m,f,d]}),e[8]=d,e[9]=x):x=e[9];let g;e[10]!==n?(g=s.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:n}),e[10]=n,e[11]=g):g=e[11];let h;e[12]!==c||e[13]!==x||e[14]!==g?(h=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[x,c,g]}),e[12]=c,e[13]=x,e[14]=g,e[15]=h):h=e[15];let u,b;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),b=s.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=u,e[17]=b):(u=e[16],b=e[17]);let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[u,b,s.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[s.jsx("div",{className:"flex-1"}),s.jsx($,{}),s.jsx("div",{className:"flex-1"}),s.jsx(M,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==a||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[a,h,p]}),e[19]=a,e[20]=h,e[21]=j):j=e[21],j}function A(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:c,children:r}=t,i=n||!l,a=l&&!n?r:null;let m;return e[0]!==o||e[1]!==c||e[2]!==i||e[3]!==a?(m=s.jsxs(z,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal py-3 text-center text-base font-medium leading-tight",onClick:c,disabled:i,children:[o,a]}),e[0]=o,e[1]=c,e[2]=i,e[3]=a,e[4]=m):m=e[4],m}export{R as C,A as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as y,b as w,j as n,r as T,H as F,a2 as L,W as V,J as W,a as Y,v as K,B as G,s as U,q as z,D as A,h as J}from"./index-BeWb3VLq.js";import{s as Q}from"./site-url-en5df9c-.js";import{u as X}from"./use-mcp-client-2WkK0AxE.js";import{I as Z}from"./integration-icon-VoZokpOe.js";import{c as ee,u as te,a as se,P as ne,d as le,S as ie}from"./use-connect-companion-Dmdscsai.js";function k(b){const e=y.c(12),{onClose:l,children:s}=b,r=w();let t;e[0]!==l?(t=g=>!g&&l(),e[0]=l,e[1]=t):t=e[1];let d;e[2]!==r?(d=r("reportsOnboarding.connectSourceDialog.title"),e[2]=r,e[3]=d):d=e[3];let o;e[4]!==d?(o=n.jsx(U,{children:n.jsx(K,{children:d})}),e[4]=d,e[5]=o):o=e[5];let x;e[6]!==s||e[7]!==o?(x=n.jsxs(z,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[o,s]}),e[6]=s,e[7]=o,e[8]=x):x=e[8];let i;return e[9]!==t||e[10]!==x?(i=n.jsx(A,{open:!0,onOpenChange:t,children:x}),e[9]=t,e[10]=x,e[11]=i):i=e[11],i}function $(b){const e=y.c(3),{label:l}=b;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(J,{className:"size-4"}),e[0]=s):s=e[0];let r;return e[1]!==l?(r=n.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[s,n.jsx("span",{children:l})]}),e[1]=l,e[2]=r):r=e[2],r}function xe(b){const e=y.c(19),{field:l,onClose:s}=b,r=w();let t;e[0]!==s||e[1]!==r?(t=()=>n.jsx(k,{onClose:s,children:n.jsx("p",{className:"text-sm text-muted-foreground",children:r("routes.reportsOnboarding.connectModal.loadError")})}),e[0]=s,e[1]=r,e[2]=t):t=e[2];let d;e[3]!==r?(d=r("reportsOnboarding.connectSourceDialog.loading"),e[3]=r,e[4]=d):d=e[4];let o;e[5]!==d?(o=n.jsx($,{label:d}),e[5]=d,e[6]=o):o=e[6];let x;e[7]!==s||e[8]!==o?(x=n.jsx(k,{onClose:s,children:o}),e[7]=s,e[8]=o,e[9]=x):x=e[9];let i;e[10]!==l||e[11]!==s?(i=n.jsx(oe,{field:l,onClose:s}),e[10]=l,e[11]=s,e[12]=i):i=e[12];let g;e[13]!==x||e[14]!==i?(g=n.jsx(T.Suspense,{fallback:x,children:i}),e[13]=x,e[14]=i,e[15]=g):g=e[15];let p;return e[16]!==t||e[17]!==g?(p=n.jsx(F,{fallback:t,children:g}),e[16]=t,e[17]=g,e[18]=p):p=e[18],p}function oe(b){const e=y.c(75),{field:l,onClose:s}=b,r=w(),{org:t}=L();let d;e[0]!==t.id?(d=V.REPORTS(t.id),e[0]=t.id,e[1]=d):d=e[1];const o=d;let x;e[2]!==t.id||e[3]!==t.slug?(x={connectionId:W,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=x):x=e[4];const i=X(x),{data:g}=Y.useSession(),p=g?.user?.id??"";let j;e[5]!==o||e[6]!==t||e[7]!==i?(j={selfClient:i,org:t,cdConnectionId:o},e[5]=o,e[6]=t,e[7]=i,e[8]=j):j=e[8];const f=ee(j);let h;e[9]!==o||e[10]!==t||e[11]!==i||e[12]!==f?(h={selfClient:i,org:t,cdConnectionId:o,siteUrl:f},e[9]=o,e[10]=t,e[11]=i,e[12]=f,e[13]=h):h=e[13];const{cards:S}=te(h);let C;e[14]!==f?(C=Q(f)??void 0,e[14]=f,e[15]=C):C=e[15];let I;e[16]!==o||e[17]!==t||e[18]!==i||e[19]!==f||e[20]!==C||e[21]!==p?(I={selfClient:i,org:t,userId:p,cdConnectionId:o,domain:C,siteUrl:f},e[16]=o,e[17]=t,e[18]=i,e[19]=f,e[20]=C,e[21]=p,e[22]=I):I=e[22];const{connect:O,connectingFieldKey:H,error:B}=se(I);let E;if(e[23]!==S||e[24]!==l){let c;e[26]!==l?(c=u=>u.fieldKey===l,e[26]=l,e[27]=c):c=e[27],E=S.find(c),e[23]=S,e[24]=l,e[25]=E}else E=e[25];const a=E;if(!a){let c;e[28]!==r?(c=r("routes.reportsOnboarding.connectModal.loadError"),e[28]=r,e[29]=c):c=e[29];let u;e[30]!==c?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:c}),e[30]=c,e[31]=u):u=e[31];let m;return e[32]!==s||e[33]!==u?(m=n.jsx(k,{onClose:s,children:u}),e[32]=s,e[33]=u,e[34]=m):m=e[34],m}const P=ne[a.bindingType];if(P&&a.boundVia!=="oauth"){let c;e[35]!==s?(c=D=>!D&&s(),e[35]=s,e[36]=c):c=e[36];let u;e[37]!==a||e[38]!==O?(u=a.satisfied?void 0:()=>{O(a)},e[37]=a,e[38]=O,e[39]=u):u=e[39];let m;return e[40]!==a||e[41]!==t||e[42]!==P||e[43]!==i||e[44]!==f||e[45]!==c||e[46]!==u?(m=n.jsx(ie,{card:a,provider:P,org:t,selfClient:i,siteUrl:f,open:!0,onOpenChange:c,onOAuthInstead:u}),e[40]=a,e[41]=t,e[42]=P,e[43]=i,e[44]=f,e[45]=c,e[46]=u,e[47]=m):m=e[47],m}if(a.satisfied&&a.linkedConnectionId){let c;e[48]!==r?(c=r("reportsOnboarding.connectSourceDialog.loading"),e[48]=r,e[49]=c):c=e[49];let u;e[50]!==c?(u=n.jsx($,{label:c}),e[50]=c,e[51]=u):u=e[51];let m;e[52]!==s||e[53]!==u?(m=n.jsx(k,{onClose:s,children:u}),e[52]=s,e[53]=u,e[54]=m):m=e[54];let D;e[55]!==s?(D=q=>!q&&s(),e[55]=s,e[56]=D):D=e[56];let v;e[57]!==a||e[58]!==t||e[59]!==i||e[60]!==f||e[61]!==D?(v=n.jsx(le,{card:a,org:t,selfClient:i,connectionId:a.linkedConnectionId,contextSiteUrl:f,open:!0,onOpenChange:D}),e[57]=a,e[58]=t,e[59]=i,e[60]=f,e[61]=D,e[62]=v):v=e[62];let _;return e[63]!==m||e[64]!==v?(_=n.jsx(T.Suspense,{fallback:m,children:v}),e[63]=m,e[64]=v,e[65]=_):_=e[65],_}const M=H===a.fieldKey;let N;e[66]!==a||e[67]!==O?(N=()=>{O(a)},e[66]=a,e[67]=O,e[68]=N):N=e[68];let R;return e[69]!==a||e[70]!==B||e[71]!==s||e[72]!==M||e[73]!==N?(R=n.jsx(re,{card:a,connecting:M,error:B,onConnect:N,onClose:s}),e[69]=a,e[70]=B,e[71]=s,e[72]=M,e[73]=N,e[74]=R):R=e[74],R}function re(b){const e=y.c(22),{card:l,connecting:s,error:r,onConnect:t,onClose:d}=b,o=w(),[x,i]=T.useState(!1);x||(i(!0),queueMicrotask(t));let g;e[0]!==s||e[1]!==d?(g=I=>{!I&&s||I||d()},e[0]=s,e[1]=d,e[2]=g):g=e[2];let p;e[3]!==l.icon||e[4]!==l.title?(p=n.jsx(Z,{icon:l.icon,name:l.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=l.icon,e[4]=l.title,e[5]=p):p=e[5];let j;e[6]!==l.title?(j=n.jsx(K,{className:"min-w-0 flex-1",children:l.title}),e[6]=l.title,e[7]=j):j=e[7];let f;e[8]!==p||e[9]!==j?(f=n.jsxs(U,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[p,j]}),e[8]=p,e[9]=j,e[10]=f):f=e[10];let h;e[11]!==l.title||e[12]!==r||e[13]!==t||e[14]!==o?(h=r?n.jsxs("div",{className:"flex flex-col gap-3",children:[n.jsx("p",{role:"alert",className:"text-sm text-destructive",children:r}),n.jsx(G,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:o("routes.reportsOnboarding.companionSection.retry")})]}):n.jsx($,{label:o("reportsOnboarding.connectSourceDialog.connecting",{title:l.title})}),e[11]=l.title,e[12]=r,e[13]=t,e[14]=o,e[15]=h):h=e[15];let S;e[16]!==f||e[17]!==h?(S=n.jsxs(z,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[f,h]}),e[16]=f,e[17]=h,e[18]=S):S=e[18];let C;return e[19]!==g||e[20]!==S?(C=n.jsx(A,{open:!0,onOpenChange:g,children:S}),e[19]=g,e[20]=S,e[21]=C):C=e[21],C}export{xe as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as b}from"./url-slug-
|
|
1
|
+
import{U as b}from"./url-slug-DU3tFMUC.js";import{aF as o,bV as a,bW as t,aG as e,cZ as i,cX as r,d1 as m,dT as h,cY as _}from"./index-BeWb3VLq.js";const g=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:m("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),f=h.extend({inputSchema:s,outputSchema:s.optional()}),S=o({headers:i(e(),e()).optional()}),T=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)")}),l=256*1024;function d(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=l,{message:`${n} must serialize to at most ${l} bytes`})}const u=4096,p=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"),url_slug:e().nullable().optional().describe("Name of the connection in Studio URLs, unique in the organization. Set it to rename the URL; the old one keeps redirecting."),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:_([T,S]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:g.nullable().describe("OAuth configuration"),configuration_state:d("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:d("metadata").describe("Additional metadata (includes repository info)"),tools:t(f).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});p.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(),connection_token:e().max(u).nullish()});p.partial().extend({url_slug:b.nullish(),connection_token:e().max(u).nullish()});function I(n){return n!=null&&"command"in n}function O(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{g as O,I as i,O as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,a2 as S,an as $,K as F,ae as R,b as K,l as A,j as c,f0 as q}from"./index-
|
|
1
|
+
import{c as M,a2 as S,an as $,K as F,ae as R,b as K,l as A,j as c,f0 as q}from"./index-BeWb3VLq.js";import{u as O}from"./useInfiniteQuery-CxzyY6DS.js";import{g as D}from"./connection-slug-CITJ0kGN.js";import{I as z}from"./integration-icon-VoZokpOe.js";function X(t){const e=M.c(21),{org:s}=S(),o=$();let l;e[0]!==t?(l=t?.trim().split(/\s+/).filter(Boolean)??[],e[0]=t,e[1]=l):l=e[1];const r=l;let n;e[2]!==s.id||e[3]!==t?(n=F.storeDiscovery(s.id,`deco-json:${t??""}`),e[2]=s.id,e[3]=t,e[4]=n):n=e[4];let a;e[5]!==o||e[6]!==r?(a=I=>{const{pageParam:_}=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:Y,staleTime:3e5,placeholderData:R,throwOnError:!0},e[8]=n,e[9]=a,e[10]=u):u=e[10];const i=O(u);let p;e[11]!==i.data?.pages?(p=i.data?.pages.flatMap(V)??[],e[11]=i.data?.pages,e[12]=p):p=e[12];const m=p;let d;e[13]!==i?(d=()=>{i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},e[13]=i,e[14]=d):d=e[14];let f;return e[15]!==m||e[16]!==i.hasNextPage||e[17]!==i.isFetchingNextPage||e[18]!==i.isLoading||e[19]!==d?(f={items:m,hasMore:i.hasNextPage,isLoadingMore:i.isFetchingNextPage,isInitialLoading:i.isLoading,loadMore:d},e[15]=m,e[16]=i.hasNextPage,e[17]=i.isFetchingNextPage,e[18]=i.isLoading,e[19]=d,e[20]=f):f=e[20],f}function V(t){return t.items}function Y(t){return t.nextCursor}function B(t){return[["title"],["description"],["id"],["server","name"]].map(e=>({field:e,operator:"contains",value:t}))}function Z(t){const e=new Map;for(const l of t){const r=D(l),n=e.get(r);n?n.push(l):e.set(r,[l])}const s=[],o=new Set;for(const l of t){const r=D(l);if(o.has(r))continue;o.add(r);const n=e.get(r),a=n[0];n.length===1?s.push({type:"single",connection:a}):s.push({type:"group",key:r,icon:a.icon,title:a.app_name?a.title.replace(/\s*\(\d+\)\s*$/,""):a.title,connections:n})}return s}function ee(t){const e=M.c(43),{connection:s,onClick:o,headerActions:l,headerActionsAlwaysVisible:r,footer:n,className:a,fallbackIcon:u,selected:i}=t,p=r===void 0?!1:r,m=K(),d=o&&"cursor-pointer hover:bg-accent";let f;e[0]!==a||e[1]!==d?(f=A("transition-colors group overflow-hidden flex flex-col h-full",d,a),e[0]=a,e[1]=d,e[2]=f):f=e[2];const I=o?"button":void 0,_=o?0:void 0,T=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(z,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-edge",fallbackIcon:u}),e[5]=s.icon,e[6]=s.title,e[7]=u,e[8]=x):x=e[8];let h;e[9]!==l||e[10]!==p?(h=l&&c.jsx("div",{className:A("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:Q,children:l}),e[9]=l,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==h?(v=c.jsx("div",{className:"relative",children:h}),e[12]=h,e[13]=v):v=e[13];let N;e[14]!==v||e[15]!==x?(N=c.jsxs("div",{className:"flex items-start justify-between",children:[x,v]}),e[14]=v,e[15]=x,e[16]=N):N=e[16];let y;e[17]!==s.title?(y=c.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[17]=s.title,e[18]=y):y=e[18];let P;e[19]!==s.description||e[20]!==m?(P=s.description||m("connections.connectionCard.noDescription"),e[19]=s.description,e[20]=m,e[21]=P):P=e[21];let j;e[22]!==P?(j=c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=j):j=e[23];let C;e[24]!==y||e[25]!==j?(C=c.jsxs("div",{className:"flex flex-col gap-1",children:[y,j]}),e[24]=y,e[25]=j,e[26]=C):C=e[26];let b;e[27]!==N||e[28]!==C?(b=c.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,C]}),e[27]=N,e[28]=C,e[29]=b):b=e[29];let k;e[30]!==n?(k=n&&c.jsx("div",{className:"border-t border-border mt-auto",children:c.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:G,children:n})}),e[30]=n,e[31]=k):k=e[31];let w;e[32]!==b||e[33]!==k?(w=c.jsxs("div",{className:"flex flex-col flex-1",children:[b,k]}),e[32]=b,e[33]=k,e[34]=w):w=e[34];let E;return e[35]!==o||e[36]!==w||e[37]!==f||e[38]!==I||e[39]!==_||e[40]!==T||e[41]!==g?(E=c.jsx(q,{size:"flush",className:f,onClick:o,role:I,tabIndex:_,"aria-pressed":T,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=f,e[38]=I,e[39]=_,e[40]=T,e[41]=g,e[42]=E):E=e[42],E}function G(t){return t.stopPropagation()}function Q(t){return t.stopPropagation()}export{ee as C,Z as g,X as u};
|