decocms 2.446.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BgvyaAL6.js → AlertCircle-CMnAyjej.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DrDPl1ww.js → ArrowUpRight-D1OmgX_q.js} +1 -1
- package/dist/client/assets/{Check-CpRgfX9v.js → Check-BfVI7hnS.js} +1 -1
- package/dist/client/assets/{CheckCircle-B-pzErM9.js → CheckCircle-FNn3jQ6r.js} +1 -1
- package/dist/client/assets/{ChevronDown-Ck0kXXoi.js → ChevronDown-Dam5Ku7Z.js} +1 -1
- package/dist/client/assets/{ChevronRight-C3-N31UD.js → ChevronRight-WV_-bfVU.js} +1 -1
- package/dist/client/assets/{ChevronUp-C1pNLnkX.js → ChevronUp-D8hy96AX.js} +1 -1
- package/dist/client/assets/{Container-DtKKcYj1.js → Container-v4PDwCHT.js} +1 -1
- package/dist/client/assets/{DotsVertical-Dn-9kvPV.js → DotsVertical-C48Zbn1h.js} +1 -1
- package/dist/client/assets/{Eye-L6l6QAVo.js → Eye-BWxBVI3O.js} +1 -1
- package/dist/client/assets/{FilterLines-vdidQTPZ.js → FilterLines-DkLjHTNZ.js} +1 -1
- package/dist/client/assets/{Globe01-CmgkLjDA.js → Globe01-DMarfJXw.js} +1 -1
- package/dist/client/assets/{HardDrive-dDTShpdM.js → HardDrive-DwdKFJf0.js} +1 -1
- package/dist/client/assets/{Key01-B4ofXTQm.js → Key01-CKhLu5wS.js} +1 -1
- package/dist/client/assets/{LinkExternal01-WHe1S-E-.js → LinkExternal01-DPr7U6b-.js} +1 -1
- package/dist/client/assets/{Monitor01-FD67jx2m.js → Monitor01-Bc3RFawi.js} +1 -1
- package/dist/client/assets/{Palette-TC1tDkop.js → Palette-IScR5A2a.js} +1 -1
- package/dist/client/assets/{Play-C7Rue8fn.js → Play-D5-w8wUQ.js} +1 -1
- package/dist/client/assets/{Plus-DRIZd-2-.js → Plus-Ca82DisL.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-DpdZ9gm0.js → RefreshCcw01-D5-r7ZyQ.js} +1 -1
- package/dist/client/assets/{SearchMd-DShTT603.js → SearchMd-ZUhK0MkR.js} +1 -1
- package/dist/client/assets/{Settings02-MTx-k3S7.js → Settings02-BQaph7g_.js} +1 -1
- package/dist/client/assets/{Shield01-BY4aDf21.js → Shield01-CC2etA8Y.js} +1 -1
- package/dist/client/assets/{Star01-CDtvsxxe.js → Star01-Bzq1-0_7.js} +1 -1
- package/dist/client/assets/{Stars01-DzPa7_Zo.js → Stars01-DRw4BW92.js} +1 -1
- package/dist/client/assets/{Stars02-UcqCQViA.js → Stars02-Dk0DNi09.js} +1 -1
- package/dist/client/assets/{Sun-CFQIVViJ.js → Sun-qMWC1P42.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-B5oRfzWe.js → SwitchHorizontal01-Dms4XfpT.js} +1 -1
- package/dist/client/assets/{Tool01-4hNK4hhF.js → Tool01-Bqxf-vqf.js} +1 -1
- package/dist/client/assets/{Trash01-Cd-TfU52.js → Trash01-CfO860iW.js} +1 -1
- package/dist/client/assets/{Upload01-CODWkN2q.js → Upload01-DtLe0kFE.js} +1 -1
- package/dist/client/assets/{User01-gLhirg6x.js → User01-LHyp3_4e.js} +1 -1
- package/dist/client/assets/{Users01-DBWJec2Z.js → Users01-CmwiiDlH.js} +1 -1
- package/dist/client/assets/{Users03-DrS1ThY-.js → Users03-uN0cB08Z.js} +1 -1
- package/dist/client/assets/{X-CzsiH5k2.js → X-BVuQlLjC.js} +1 -1
- package/dist/client/assets/{XCircle-Btwiite7.js → XCircle-KI6IMDV1.js} +1 -1
- package/dist/client/assets/{XClose-CtxwJX4P.js → XClose-BChvurn2.js} +1 -1
- package/dist/client/assets/{Zap-BT8r4Lfd.js → Zap-BF0PF9-H.js} +1 -1
- package/dist/client/assets/{ZapSquare-Alh3PeLr.js → ZapSquare-CAslbjgD.js} +1 -1
- package/dist/client/assets/ZoomOut-xl3r1b6x.js +1 -0
- package/dist/client/assets/{access-gate-49AfiPid.js → access-gate-BsWxhjm1.js} +1 -1
- package/dist/client/assets/accordion-Dt7DNSWB.js +1 -0
- package/dist/client/assets/{add-section-modal-BtCHVJdb.js → add-section-modal-DOnjpT_8.js} +1 -1
- package/dist/client/assets/{agent-capabilities-C1-nbsvP.js → agent-capabilities-onU5-gbK.js} +1 -1
- package/dist/client/assets/agent-icon-BDkw702S.js +1 -0
- package/dist/client/assets/{agent-icons-VjS4qMx-.js → agent-icons-Bgk8_fma.js} +1 -1
- package/dist/client/assets/{agents-list-D59xaU6q.js → agents-list-CG_oikJQ.js} +1 -1
- package/dist/client/assets/{ai-providers-CjYWh7Ls.js → ai-providers-DqwgPI9S.js} +1 -1
- package/dist/client/assets/{alert-Deb5bKEP.js → alert-DPrq3byI.js} +1 -1
- package/dist/client/assets/{alert-dialog-DRN5w-t8.js → alert-dialog-DpFXZE53.js} +1 -1
- package/dist/client/assets/app-editor-DoAm4v9j.js +1 -0
- package/dist/client/assets/{auth-catchall-CB8huQUw.js → auth-catchall-CMHuFU89.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BvbFzAmT.js → auth-split-layout-VTM9I-oK.js} +1 -1
- package/dist/client/assets/{automation-list-row-74P8727s.js → automation-list-row-BMf-2Nra.js} +1 -1
- package/dist/client/assets/{automation-runs-C2k5umHE.js → automation-runs-BaOsH_Us.js} +1 -1
- package/dist/client/assets/{automations-CNCforTN.js → automations-DKCzPvN_.js} +1 -1
- package/dist/client/assets/{avatar-BBV4QWEL.js → avatar-Bzc1pzzT.js} +1 -1
- package/dist/client/assets/{badge-BSpskrOH.js → badge-CMa8EU_l.js} +1 -1
- package/dist/client/assets/{brand-context-BSsu5ufV.js → brand-context-DGYJXrtq.js} +1 -1
- package/dist/client/assets/{buckets-DObQcpCj.js → buckets-Cw65zR96.js} +1 -1
- package/dist/client/assets/{calendar-DUjAE_4N.js → calendar-ouKiDs_X.js} +1 -1
- package/dist/client/assets/{capability-load-error-YdVG6orY.js → capability-load-error-rUICjETf.js} +1 -1
- package/dist/client/assets/{card-DZwqn9tD.js → card-BjNWFu6e.js} +1 -1
- package/dist/client/assets/{chat-context-B2M4P5Ss.js → chat-context-JhdmXFj8.js} +1 -1
- package/dist/client/assets/{checkbox-DVXfLKtH.js → checkbox-CPM_S9g-.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DWli23rz.js → cli-auth-success-CjFaNK5a.js} +1 -1
- package/dist/client/assets/{collection-detail-7NZ-47Sk.js → collection-detail-D4N7y2Yz.js} +1 -1
- package/dist/client/assets/{collection-display-button-BEtadCaE.js → collection-display-button-Du-tLyx-.js} +1 -1
- package/dist/client/assets/{collection-search-CpScI8eY.js → collection-search-K1Ump2Xj.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-6C_ptY1o.js → collection-table-wrapper-Ao-C9NLV.js} +1 -1
- package/dist/client/assets/{collection-tabs-cISZZwXw.js → collection-tabs-CC8ctMOc.js} +1 -1
- package/dist/client/assets/{collections-B9feqlnI.js → collections-TBLl76B-.js} +1 -1
- package/dist/client/assets/{command-BJzE5xdm.js → command-DxQPjXPB.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-5wbrfqC7.js → connect-desktop-dialog-VsL4F1ao.js} +1 -1
- package/dist/client/assets/{connection-card-DUBuEg70.js → connection-card-BHWgRXyS.js} +1 -1
- package/dist/client/assets/{connection-detail-CGnEXhr8.js → connection-detail-B_ufAmiT.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-C_G-pfMz.js → connection-form-helpers-DLOP5jn2.js} +1 -1
- package/dist/client/assets/{connections-LTMSCj4m.js → connections-DPVf7uHu.js} +1 -1
- package/dist/client/assets/{constants-zedJER97.js → constants-BV9onSoP.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-COHY9r_J.js → decopilot-sse-pool-D7NXcssd.js} +1 -1
- package/dist/client/assets/{dialog-CE9cSi1n.js → dialog-DmA9PBpb.js} +1 -1
- package/dist/client/assets/{domain-settings-CoxAOXxT.js → domain-settings-BtQwc-FL.js} +1 -1
- package/dist/client/assets/{drawer-BbSfcrnZ.js → drawer-C65qQGdE.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BXdMM0hO.js → dropdown-menu-BS9qzHU_.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-ByCIwxNK.js → dynamic-plugin-layout-ntCK6ZJR.js} +1 -1
- package/dist/client/assets/{empty-state-DkGCUelT.js → empty-state-D8Nnqqqu.js} +1 -1
- package/dist/client/assets/{empty-state-bKARxats.js → empty-state-DnsdAuGp.js} +1 -1
- package/dist/client/assets/{extract-connection-data-uZfMlXLn.js → extract-connection-data-DVc9JR67.js} +1 -1
- package/dist/client/assets/{features-BWzvKvYJ.js → features-BmwKtHaQ.js} +1 -1
- package/dist/client/assets/{file-explorer-CHPSau6D.js → file-explorer-C8BHD2Ws.js} +1 -1
- package/dist/client/assets/{file-preview-C9371Se2.js → file-preview-CnCJb_Xb.js} +1 -1
- package/dist/client/assets/{file-type-icon-Ba_yRUxi.js → file-type-icon-BpJiqi3R.js} +1 -1
- package/dist/client/assets/{files-BdRmGWWz.js → files-BCToQqJO.js} +1 -1
- package/dist/client/assets/{form-BzcvWUSl.js → form-BGJY3Coz.js} +1 -1
- package/dist/client/assets/{general-DCWyYmET.js → general-gf9q8d84.js} +1 -1
- package/dist/client/assets/{generate-id-DY3u_JLh.js → generate-id-3a8zbSkX.js} +1 -1
- package/dist/client/assets/{github-repo-picker-Cq8oodHi.js → github-repo-picker-B5jdCtX1.js} +1 -1
- package/dist/client/assets/{hover-card-42wepGnd.js → hover-card-DA1eRL_p.js} +1 -1
- package/dist/client/assets/{image-field-zCWH1Q7t.js → image-field-BTjz1t1S.js} +1 -1
- package/dist/client/assets/{index-DD1ygIbP.js → index-B6WZR05-.js} +1 -1
- package/dist/client/assets/{index-BFENlSRG.js → index-BMd-NIDQ.js} +1 -1
- package/dist/client/assets/{index-DR2x8aZ0.js → index-BY9k79jr.js} +1 -1
- package/dist/client/assets/{index-Bjl6aMmo.js → index-BfrFOGfx.js} +1 -1
- package/dist/client/assets/index-Bz29IYD8.js +2 -0
- package/dist/client/assets/{index-Bq4_1g_m.js → index-CABGr2LB.js} +1 -1
- package/dist/client/assets/{index-hDhYAzuv.js → index-CP71kWj4.js} +3 -3
- package/dist/client/assets/{index-V6nGCE5i.js → index-CofJDcL9.js} +1 -1
- package/dist/client/assets/index-CrTIEi6N.js +1 -0
- package/dist/client/assets/{index-jHy-HnQ-.js → index-DL5Sfutp.js} +1 -1
- package/dist/client/assets/{index-D6arf7Ln.js → index-DxoXDPAf.js} +1 -1
- package/dist/client/assets/{index-DvR4XVkQ.js → index-OuidzUCn.js} +4 -4
- package/dist/client/assets/{index-D5YGFAmw.js → index-bcxX1U_z.js} +1 -1
- package/dist/client/assets/{index-BmaQNCkd.js → index-ix6qr39J.js} +1 -1
- package/dist/client/assets/{index-redirect-C5zpFU9B.js → index-redirect-D0ve1lbL.js} +1 -1
- package/dist/client/assets/{index-LtT7znvk.css → index-uXid0yMu.css} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-B7HHD4ga.js → infiniteQueryObserver-C5_3w7Qx.js} +1 -1
- package/dist/client/assets/{input-ohPOZpbr.js → input-gY4u7VDK.js} +1 -1
- package/dist/client/assets/{integration-icon-DkUje5pL.js → integration-icon-B_HI3o2r.js} +1 -1
- package/dist/client/assets/{label-CHl6K-PH.js → label-0pkDqpXA.js} +1 -1
- package/dist/client/assets/{layout-CHXGWT_X.js → layout-MdjEi5LF.js} +1 -1
- package/dist/client/assets/{login-U8YyQTqC.js → login-CDcyz1iO.js} +1 -1
- package/dist/client/assets/{members-DHFeYUG0.js → members-_WMrYSI2.js} +1 -1
- package/dist/client/assets/{monaco-editor-B2aErRoU.js → monaco-editor-DLSXhX4o.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-jUek3ihW.js → monitoring-stats-row-PT6HyFWg.js} +1 -1
- package/dist/client/assets/{oauth-callback-Br4Ra2ei.js → oauth-callback-D9zl3SSS.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-wSQ_fnY_.js → oauth-callback-ai-provider-13G9B732.js} +1 -1
- package/dist/client/assets/{onboarding--zQLEMQI.js → onboarding-CpkkYYUj.js} +1 -1
- package/dist/client/assets/{org-install-BhG88aMC.js → org-install-oaq0lf9d.js} +1 -1
- package/dist/client/assets/{org-layout-CrjcRyfJ.js → org-layout-DD_EaCGh.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-D-POgMey.js → org-plugin-layout-BOr2TK3I.js} +1 -1
- package/dist/client/assets/{page-seo-form-DKVorlIx.js → page-seo-form-JK6COczQ.js} +1 -1
- package/dist/client/assets/page-seo-sheet-CRaedVGZ.js +1 -0
- package/dist/client/assets/{pair-DoWxWQcr.js → pair-hl4GkWa0.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BoEo3W91.js → plugin-empty-state-tfK3Ugk8.js} +1 -1
- package/dist/client/assets/{plugin-header-B7o311WU.js → plugin-header-BdA-i8lm.js} +1 -1
- package/dist/client/assets/{plugin-layout-BHhxMTkL.js → plugin-layout-Dyphvqk5.js} +1 -1
- package/dist/client/assets/{popover-CoUzivxr.js → popover-HFF2KdTf.js} +1 -1
- package/dist/client/assets/{post-editor-ioH2kBJn.js → post-editor-Q6lBEHXF.js} +1 -1
- package/dist/client/assets/{primitives-B1GrxuAu.js → primitives-BqlnZdxG.js} +1 -1
- package/dist/client/assets/{profile-DTVI1-0b.js → profile-UdsdtnDX.js} +1 -1
- package/dist/client/assets/{project-app-view-DSFKcRzU.js → project-app-view-DMEi2Cj0.js} +1 -1
- package/dist/client/assets/record-editor-CBJWIWQx.js +1 -0
- package/dist/client/assets/registry-C5IGJFB7.js +2 -0
- package/dist/client/assets/{registry-layout-CKsXjr2G.js → registry-layout-DacvYqG6.js} +1 -1
- package/dist/client/assets/{require-capability-osNdEUYE.js → require-capability-BPbIwXf-.js} +1 -1
- package/dist/client/assets/{required-auth-layout-ByKzWGwl.js → required-auth-layout-BwzcSvWG.js} +1 -1
- package/dist/client/assets/{reset-password-BYZ6IlU3.js → reset-password-zQ1KMzC8.js} +1 -1
- package/dist/client/assets/{roles-CKvRJaL6.js → roles-Cbb9SYbw.js} +1 -1
- package/dist/client/assets/{save-status-nWpwLkZT.js → save-status-CncGcpJc.js} +1 -1
- package/dist/client/assets/schema-form-Bm1KzaoA.js +1 -0
- package/dist/client/assets/{scroll-area-D2-klXVe.js → scroll-area-B015vE-X.js} +1 -1
- package/dist/client/assets/{search-input-DdhTnIYb.js → search-input-BEc8xINe.js} +1 -1
- package/dist/client/assets/{secrets-DnYwB5yI.js → secrets-BSDxWmbc.js} +1 -1
- package/dist/client/assets/{sections-editor-RaAaC45Z.js → sections-editor-BZPcLWYn.js} +1 -1
- package/dist/client/assets/{select-B9hpehMO.js → select-WYoYOE2a.js} +1 -1
- package/dist/client/assets/{select-model-BVGmdezX.js → select-model-C2vhEitM.js} +1 -1
- package/dist/client/assets/{seo-editor-DrYkry2i.js → seo-editor-B9lmV-Ro.js} +1 -1
- package/dist/client/assets/settings-layout-CnjvvrHE.js +1 -0
- package/dist/client/assets/{settings-section-BwEX7g4K.js → settings-section-B_BsRzxf.js} +1 -1
- package/dist/client/assets/{sheet-B-rOc-m_.js → sheet-CkEMFOQn.js} +1 -1
- package/dist/client/assets/{shell-controls-BvG6CznZ.js → shell-controls-BWhBTIYP.js} +1 -1
- package/dist/client/assets/{shell-layout-4M44M6XO.js → shell-layout-aNbtAtMf.js} +1 -1
- package/dist/client/assets/shell-route-loading-D5YA8Pk_.js +1 -0
- package/dist/client/assets/{sidebar-D2KGUQZ5.js → sidebar-DOZv5X1e.js} +1 -1
- package/dist/client/assets/{skeleton-4CAwOTLn.js → skeleton-BMJydbVa.js} +1 -1
- package/dist/client/assets/{sortable.esm-CEfai7SC.js → sortable.esm-BM7MOuDe.js} +1 -1
- package/dist/client/assets/{spinner-Bn6xRjgs.js → spinner-Cgcn3wi8.js} +1 -1
- package/dist/client/assets/{sso-sWh2Awf4.js → sso-BRHDMGVP.js} +1 -1
- package/dist/client/assets/{store-6j-QguA5.js → store-C8lR_-GL.js} +1 -1
- package/dist/client/assets/store-registry-C3MIJJji.js +2 -0
- package/dist/client/assets/{switch-CrkT_nnD.js → switch-H2mJTfgm.js} +1 -1
- package/dist/client/assets/{tab-id-hyQlI0Kb.js → tab-id-Dw_oOcB5.js} +1 -1
- package/dist/client/assets/{table-GpE0DrPT.js → table-oShuaAsO.js} +1 -1
- package/dist/client/assets/{tabs-BSUsSBSP.js → tabs-CJAc2VSc.js} +1 -1
- package/dist/client/assets/{task-status-CkT-gKVV.js → task-status-BVsqUe8y.js} +1 -1
- package/dist/client/assets/{textarea-DjJrPp__.js → textarea-B0buVFM2.js} +1 -1
- package/dist/client/assets/{toggle-group-BiI-swRj.js → toggle-group-oYk6Wg-R.js} +1 -1
- package/dist/client/assets/{toolbar-Jc1Es0h2.js → toolbar-BxVraJFX.js} +1 -1
- package/dist/client/assets/{tools-list-CxPJ9zQW.js → tools-list-WUoIOI_Y.js} +1 -1
- package/dist/client/assets/{tooltip-D7iVgucV.js → tooltip-CyQVVn-_.js} +1 -1
- package/dist/client/assets/{types-DemhOgiB.js → types-B1liqey9.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BZS-MpDa.js → use-ai-providers-gv0wxkRO.js} +1 -1
- package/dist/client/assets/{use-automations-BrgymC39.js → use-automations-CaQBwUbK.js} +1 -1
- package/dist/client/assets/{use-capability-kezGfnPO.js → use-capability-D8gdoz7e.js} +1 -1
- package/dist/client/assets/{use-collections-Dv9VzQFM.js → use-collections-Dgz6VntH.js} +1 -1
- package/dist/client/assets/{use-connection-BDUQZCEk.js → use-connection-CZ4fMRQA.js} +1 -1
- package/dist/client/assets/{use-copy-DIglwQFC.js → use-copy-BX772HSE.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Cf_tJTHh.js → use-create-virtual-mcp-cZ5uS-7z.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CkBn5Xwg.js → use-debounced-autosave-B9OhnW_u.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Dqd8Xa7q.js → use-delete-connection-CMNjpQhX.js} +1 -1
- package/dist/client/assets/{use-file-configs-BlvDBMfZ.js → use-file-configs-DJxHdLNc.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CcZDhELS.js → use-infinite-scroll-DpzG67_S.js} +1 -1
- package/dist/client/assets/{use-list-state-bHGgac3-.js → use-list-state-DvT_yv_2.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CqiV5bO8.js → use-mcp-prompts-BPOg_b6c.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CT9H5Tgt.js → use-mcp-tools-BEhNL_fR.js} +1 -1
- package/dist/client/assets/{use-members-GWDjSfUU.js → use-members-BqeOrUK_.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-nrQW475X.js → use-navigate-to-agent-xxRVjAwY.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-QDIKZNDh.js → use-org-auth-client-CkkWpVCK.js} +1 -1
- package/dist/client/assets/{use-org-sso-Bj7NT1Lh.js → use-org-sso-Do7dVFZa.js} +1 -1
- package/dist/client/assets/{use-organization-roles-D5YSssEn.js → use-organization-roles-Be6k2UUz.js} +1 -1
- package/dist/client/assets/{use-organization-settings-C-NwnAkJ.js → use-organization-settings-0BfsoAw_.js} +1 -1
- package/dist/client/assets/{use-registry-connections-XEfm3Coy.js → use-registry-connections-BdJzrad1.js} +1 -1
- package/dist/client/assets/{use-secrets-mtYI3rLo.js → use-secrets-CiHusucF.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BVgXSRy3.js → use-status-sounds-DVOsYso-.js} +1 -1
- package/dist/client/assets/{use-view-mode-BuXYfEXk.js → use-view-mode-D5iAnvBO.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Cs8ggUiu.js → use-virtual-mcp-B1jlipb2.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-oJZSdhY_.js +1 -0
- package/dist/client/assets/{useRouterState-ox0nLJMv.js → useRouterState-BMhjTaqs.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CwcldWYk.js +1 -0
- package/dist/client/assets/{user-Co-otLks.js → user-Cg2V4AB6.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-D8ejVQgU.js → view-mode-toggle-Dr1xWaaz.js} +1 -1
- package/dist/client/assets/{workflow-q47qWEbL.js → workflow-CGHZul28.js} +1 -1
- package/dist/client/assets/workflow-detail-Cq4W7vJq.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +4798 -2141
- package/dist/server/migrate.js +95 -95
- package/dist/server/server.js +445 -420
- package/package.json +2 -3
- package/dist/client/assets/ZoomOut-DcRrZEDD.js +0 -1
- package/dist/client/assets/accordion-qSwNd8Sp.js +0 -1
- package/dist/client/assets/agent-icon-Cskjq81z.js +0 -1
- package/dist/client/assets/app-editor-DmXODpUq.js +0 -1
- package/dist/client/assets/index-B9wTguzP.js +0 -1
- package/dist/client/assets/index-_OB7PRq3.js +0 -2
- package/dist/client/assets/page-seo-sheet-BL6Qr_fp.js +0 -1
- package/dist/client/assets/record-editor-UjdJtAq9.js +0 -1
- package/dist/client/assets/registry-BxrdgO67.js +0 -2
- package/dist/client/assets/schema-form-CGiurH71.js +0 -1
- package/dist/client/assets/settings-layout-CezlrERw.js +0 -1
- package/dist/client/assets/shell-route-loading-BaLk32Ff.js +0 -1
- package/dist/client/assets/store-registry-B_w6ZYZP.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DjQiRGez.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-tT6OVxOk.js +0 -1
- package/dist/client/assets/workflow-detail-WxnU9dcU.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as D,j as s,E as le,r as K,q as ae,F as ce,f as de,g as me,B as Y,t as te,K as fe,a as ge,o as ie}from"./index-hDhYAzuv.js";import{i as ue}from"./AlertCircle-BgvyaAL6.js";import{i as pe}from"./ChevronRight-C3-N31UD.js";import{s as xe}from"./Plus-DRIZd-2-.js";import{s as he}from"./Trash01-Cd-TfU52.js";import{I as X}from"./input-ohPOZpbr.js";import{S as oe}from"./switch-CrkT_nnD.js";import{S as ye}from"./skeleton-4CAwOTLn.js";import{A as ne}from"./avatar-BBV4QWEL.js";import{P as je,a as Ce,b as Se}from"./popover-CoUzivxr.js";import{b as re}from"./use-connection-BDUQZCEk.js";import{W as Z}from"./constants-zedJER97.js";import{P as G}from"./index-BmaQNCkd.js";import{u as ve}from"./use-registry-connections-XEfm3Coy.js";import{g as _e,h as be}from"./use-organization-settings-C-NwnAkJ.js";import{c as Pe,b as I,S as ee,a as Q}from"./settings-section-BwEX7g4K.js";import{R as Re}from"./require-capability-osNdEUYE.js";import"./User01-gLhirg6x.js";import"./use-collections-Dv9VzQFM.js";import"./sidebar-D2KGUQZ5.js";import"./sheet-B-rOc-m_.js";import"./X-CzsiH5k2.js";import"./tooltip-D7iVgucV.js";import"./card-DZwqn9tD.js";import"./ArrowUpRight-DrDPl1ww.js";import"./use-capability-kezGfnPO.js";import"./access-gate-49AfiPid.js";import"./capability-load-error-YdVG6orY.js";function ke(t){const e=D.c(3),{error:o}=t;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(ue,{size:16}),e[0]=m):m=e[0];let n;return e[1]!==o.message?(n=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[m,s.jsxs("span",{className:"text-sm font-medium",children:["Failed to load store settings: ",o.message]})]}),e[1]=o.message,e[2]=n):n=e[2],n}function we(t){const e=D.c(36),{onCancel:o,onSuccess:m}=t,n=re(),[r,j]=K.useState(""),[a,S]=K.useState(""),[x,v]=K.useState("");let h;e[0]!==n||e[1]!==r||e[2]!==x||e[3]!==a?(h=async()=>(await n.create.mutateAsync({title:r||"Private Registry",description:"Private MCP registry",connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=n,e[1]=r,e[2]=x,e[3]=a,e[4]=h):h=e[4];let f;e[5]!==m?(f=C=>{te("store_private_registry_added",{connection_id:C}),ie.success("Private registry added"),m(C)},e[5]=m,e[6]=f):f=e[6];let y;e[7]!==h||e[8]!==f?(y={mutationFn:h,onSuccess:f,onError:Ne},e[7]=h,e[8]=f,e[9]=y):y=e[9];const{mutate:c,isPending:d}=ge(y);let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=C=>j(C.target.value),e[10]=g):g=e[10];let u;e[11]!==r?(u=s.jsx(I,{title:"Name",action:s.jsx(X,{placeholder:"e.g. Acme Corp Registry",value:r,onChange:g,className:"w-[280px]"})}),e[11]=r,e[12]=u):u=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=C=>S(C.target.value),e[13]=p):p=e[13];let l;e[14]!==a?(l=s.jsx(I,{title:"Registry URL",action:s.jsx(X,{placeholder:"https://registry.example.com/mcp",value:a,onChange:p,className:"w-[280px]"})}),e[14]=a,e[15]=l):l=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=C=>v(C.target.value),e[16]=_):_=e[16];let b;e[17]!==x?(b=s.jsx(I,{title:"Auth Token",description:"Optional",action:s.jsx(X,{type:"password",placeholder:"Bearer token...",value:x,onChange:_,className:"w-[280px]"})}),e[17]=x,e[18]=b):b=e[18];let k;e[19]!==d||e[20]!==o?(k=s.jsx(Y,{variant:"ghost",size:"sm",onClick:o,disabled:d,children:"Cancel"}),e[19]=d,e[20]=o,e[21]=k):k=e[21];let N;e[22]!==c?(N=()=>c(),e[22]=c,e[23]=N):N=e[23];const O=!a||d,B=d?"Adding...":"Add Registry";let A;e[24]!==N||e[25]!==O||e[26]!==B?(A=s.jsx(Y,{size:"sm",onClick:N,disabled:O,children:B}),e[24]=N,e[25]=O,e[26]=B,e[27]=A):A=e[27];let R;e[28]!==k||e[29]!==A?(R=s.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[k,A]}),e[28]=k,e[29]=A,e[30]=R):R=e[30];let P;return e[31]!==R||e[32]!==u||e[33]!==l||e[34]!==b?(P=s.jsxs(Q,{children:[u,l,b,R]}),e[31]=R,e[32]=u,e[33]=l,e[34]=b,e[35]=P):P=e[35],P}function Ne(t){ie.error(`Failed to add registry: ${t.message}`)}function L(t){const e=D.c(29),{name:o,description:m,icon:n,enabled:r,onToggle:j,onDelete:a,href:S}=t,x=de();let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v={from:"/shell/$org"},e[0]=v):v=e[0];const{org:h}=me(v);let f;e[1]!==r||e[2]!==S||e[3]!==x||e[4]!==j||e[5]!==h?(f=()=>{S?x({to:S,params:{org:h}}):j(!r)},e[1]=r,e[2]=S,e[3]=x,e[4]=j,e[5]=h,e[6]=f):f=e[6];const y=f;let c;e[7]!==n||e[8]!==o?(c=n?s.jsx("img",{src:n,alt:o,className:"size-8 rounded-md object-contain"}):s.jsx(ne,{fallback:o.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=n,e[8]=o,e[9]=c):c=e[9];let d;e[10]!==a?(d=a&&s.jsxs(je,{children:[s.jsx(Ce,{asChild:!0,children:s.jsx(Y,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Me,children:s.jsx(he,{size:14})})}),s.jsx(Se,{className:"w-auto p-2",align:"end",children:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{className:"text-xs font-medium",children:"Remove this registry?"}),s.jsx(Y,{variant:"destructive",size:"xs",onClick:b=>{b.stopPropagation(),a()},children:"Remove"})]})})]}),e[10]=a,e[11]=d):d=e[11];let g;e[12]!==j?(g=b=>j(b),e[12]=j,e[13]=g):g=e[13];let u;e[14]!==r||e[15]!==g?(u=s.jsx(oe,{checked:r,onClick:Ae,onCheckedChange:g}),e[14]=r,e[15]=g,e[16]=u):u=e[16];let p;e[17]!==S?(p=S&&s.jsx(pe,{size:14,className:"text-muted-foreground"}),e[17]=S,e[18]=p):p=e[18];let l;e[19]!==d||e[20]!==u||e[21]!==p?(l=s.jsxs("div",{className:"flex items-center gap-2",children:[d,u,p]}),e[19]=d,e[20]=u,e[21]=p,e[22]=l):l=e[22];let _;return e[23]!==m||e[24]!==y||e[25]!==o||e[26]!==c||e[27]!==l?(_=s.jsx(I,{title:o,description:m,onClick:y,icon:c,action:l}),e[23]=m,e[24]=y,e[25]=o,e[26]=c,e[27]=l,e[28]=_):_=e[28],_}function Ae(t){return t.stopPropagation()}function Me(t){return t.stopPropagation()}function Te(){const t=D.c(59),{org:e}=ae(),o=ve(),m=re(),n=_e(),{mutateAsync:r}=be(),j=ce(),[a,S]=K.useState(!1);let x,v,h,f,y,c;if(t[0]!==m||t[1]!==e.id||t[2]!==j||t[3]!==n||t[4]!==o||t[5]!==a||t[6]!==r){const p=Z.REGISTRY(e.id),l=i=>{if(!n)return i===p;const w=n.registries[i];return w?w.enabled:i===p},_=Z.COMMUNITY_REGISTRY(e.id),b=o.find(i=>i.id===p),k=o.find(i=>i.id===_||i.id==="community-registry"),N=k?.id??_,O=Z.SELF(e.id),B=new Set([p,_,"community-registry",O]),A=o.filter(i=>!B.has(i.id));let R;t[13]!==n||t[14]!==r?(R=async(i,w)=>{te("store_registry_toggled",{connection_id:i,enabled:w});const se=n??{registries:{},blockedMcps:[]};await r({...se,registries:{...se.registries,[i]:{enabled:w}}})},t[13]=n,t[14]=r,t[15]=R):R=t[15];const P=R;let C;t[16]!==m||t[17]!==e.id||t[18]!==j?(C=async i=>{te("store_private_registry_removed",{connection_id:i}),await m.delete.mutateAsync(i),j.invalidateQueries({queryKey:fe.organizationSettings(e.id)})},t[16]=m,t[17]=e.id,t[18]=j,t[19]=C):C=t[19];const W=C;let q;t[20]!==n||t[21]!==r?(q=async i=>{S(!1);const w=n??{registries:{},blockedMcps:[]};await r({...w,registries:{...w.registries,[i]:{enabled:!0}}})},t[20]=n,t[21]=r,t[22]=q):q=t[22];const H=q,J=b?s.jsx(L,{name:"Deco Store",description:"Official deco MCP registry with curated integrations",icon:b.icon,enabled:l(p),onToggle:i=>P(p,i)}):s.jsx(I,{title:"Deco Store",description:"Connection not found — will be created automatically."});t[23]!==J?(y=s.jsx(ee,{title:"Deco Store",children:s.jsx(Q,{children:J})}),t[23]=J,t[24]=y):y=t[24];let M;t[25]!==a?(M=a?void 0:s.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>S(!0),children:[s.jsx(xe,{size:14}),"Add registry"]}),t[25]=a,t[26]=M):M=t[26];let T;t[27]!==H||t[28]!==a?(T=a&&s.jsx(we,{onCancel:()=>S(!1),onSuccess:H}),t[27]=H,t[28]=a,t[29]=T):T=t[29];let z;t[30]!==l?(z=l("self"),t[30]=l,t[31]=z):z=t[31];let E;t[32]!==P?(E=i=>P("self",i),t[32]=P,t[33]=E):E=t[33];let F;t[34]!==z||t[35]!==E?(F=s.jsx(L,{name:"Private Registry",description:"Your organization's private MCP registry",enabled:z,onToggle:E,href:"/$org/settings/store/registry"}),t[34]=z,t[35]=E,t[36]=F):F=t[36];let U;t[37]!==W||t[38]!==P||t[39]!==l?(U=i=>s.jsx(L,{name:i.title,description:i.description??"Private MCP registry",icon:i.icon,enabled:l(i.id),onToggle:w=>P(i.id,w),onDelete:()=>W(i.id)},i.id),t[37]=W,t[38]=P,t[39]=l,t[40]=U):U=t[40];const V=A.map(U);let $;t[41]!==F||t[42]!==V?($=s.jsxs(Q,{children:[F,V]}),t[41]=F,t[42]=V,t[43]=$):$=t[43],t[44]!==$||t[45]!==M||t[46]!==T?(c=s.jsxs(ee,{title:"Private Registries",actions:M,children:[T,$]}),t[44]=$,t[45]=M,t[46]=T,t[47]=c):c=t[47],v=ee,f="Community",x=Q,h=k?s.jsx(L,{name:"MCP Registry",description:"Community MCP registry with thousands of handy MCPs",icon:k.icon,enabled:l(N),onToggle:i=>P(N,i)}):s.jsx(I,{title:"MCP Registry",description:"Community MCP registry — not yet added",icon:s.jsx(ne,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:s.jsx(oe,{checked:!1,disabled:!0,onCheckedChange:ze})}),t[0]=m,t[1]=e.id,t[2]=j,t[3]=n,t[4]=o,t[5]=a,t[6]=r,t[7]=x,t[8]=v,t[9]=h,t[10]=f,t[11]=y,t[12]=c}else x=t[7],v=t[8],h=t[9],f=t[10],y=t[11],c=t[12];let d;t[48]!==x||t[49]!==h?(d=s.jsx(x,{children:h}),t[48]=x,t[49]=h,t[50]=d):d=t[50];let g;t[51]!==v||t[52]!==f||t[53]!==d?(g=s.jsx(v,{title:f,children:d}),t[51]=v,t[52]=f,t[53]=d,t[54]=g):g=t[54];let u;return t[55]!==y||t[56]!==c||t[57]!==g?(u=s.jsxs(s.Fragment,{children:[y,c,g]}),t[55]=y,t[56]=c,t[57]=g,t[58]=u):u=t[58],u}function ze(){}function Ee(){const t=D.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ye,{className:"h-64 w-full"}),t[0]=e):e=t[0];let o;return t[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(le,{fallback:Fe,children:s.jsx(K.Suspense,{fallback:e,children:s.jsx(G,{children:s.jsx(G.Content,{children:s.jsx(G.Body,{children:s.jsxs(Pe,{children:[s.jsx(G.Title,{children:"Store"}),s.jsx(Te,{})]})})})})})}),t[1]=o):o=t[1],o}function Fe(t){const{error:e}=t;return s.jsx(ke,{error:e??new Error("Failed to load store settings")})}function dt(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Re,{capability:"registry:manage",area:"the store",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}export{dt as default};
|
|
1
|
+
import{e as D,j as s,E as le,r as K,q as ae,F as ce,f as de,g as me,B as Y,t as te,K as fe,a as ge,o as ie}from"./index-CP71kWj4.js";import{i as ue}from"./AlertCircle-CMnAyjej.js";import{i as pe}from"./ChevronRight-WV_-bfVU.js";import{s as xe}from"./Plus-Ca82DisL.js";import{s as he}from"./Trash01-CfO860iW.js";import{I as X}from"./input-gY4u7VDK.js";import{S as oe}from"./switch-H2mJTfgm.js";import{S as ye}from"./skeleton-BMJydbVa.js";import{A as ne}from"./avatar-Bzc1pzzT.js";import{P as je,a as Ce,b as Se}from"./popover-HFF2KdTf.js";import{b as re}from"./use-connection-CZ4fMRQA.js";import{W as Z}from"./constants-BV9onSoP.js";import{P as G}from"./index-ix6qr39J.js";import{u as ve}from"./use-registry-connections-BdJzrad1.js";import{g as _e,h as be}from"./use-organization-settings-0BfsoAw_.js";import{c as Pe,b as I,S as ee,a as Q}from"./settings-section-B_BsRzxf.js";import{R as Re}from"./require-capability-BPbIwXf-.js";import"./User01-LHyp3_4e.js";import"./use-collections-Dgz6VntH.js";import"./sidebar-DOZv5X1e.js";import"./sheet-CkEMFOQn.js";import"./X-BVuQlLjC.js";import"./tooltip-CyQVVn-_.js";import"./card-BjNWFu6e.js";import"./ArrowUpRight-D1OmgX_q.js";import"./use-capability-D8gdoz7e.js";import"./access-gate-BsWxhjm1.js";import"./capability-load-error-rUICjETf.js";function ke(t){const e=D.c(3),{error:o}=t;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(ue,{size:16}),e[0]=m):m=e[0];let n;return e[1]!==o.message?(n=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[m,s.jsxs("span",{className:"text-sm font-medium",children:["Failed to load store settings: ",o.message]})]}),e[1]=o.message,e[2]=n):n=e[2],n}function we(t){const e=D.c(36),{onCancel:o,onSuccess:m}=t,n=re(),[r,j]=K.useState(""),[a,S]=K.useState(""),[x,v]=K.useState("");let h;e[0]!==n||e[1]!==r||e[2]!==x||e[3]!==a?(h=async()=>(await n.create.mutateAsync({title:r||"Private Registry",description:"Private MCP registry",connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=n,e[1]=r,e[2]=x,e[3]=a,e[4]=h):h=e[4];let f;e[5]!==m?(f=C=>{te("store_private_registry_added",{connection_id:C}),ie.success("Private registry added"),m(C)},e[5]=m,e[6]=f):f=e[6];let y;e[7]!==h||e[8]!==f?(y={mutationFn:h,onSuccess:f,onError:Ne},e[7]=h,e[8]=f,e[9]=y):y=e[9];const{mutate:c,isPending:d}=ge(y);let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=C=>j(C.target.value),e[10]=g):g=e[10];let u;e[11]!==r?(u=s.jsx(I,{title:"Name",action:s.jsx(X,{placeholder:"e.g. Acme Corp Registry",value:r,onChange:g,className:"w-[280px]"})}),e[11]=r,e[12]=u):u=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=C=>S(C.target.value),e[13]=p):p=e[13];let l;e[14]!==a?(l=s.jsx(I,{title:"Registry URL",action:s.jsx(X,{placeholder:"https://registry.example.com/mcp",value:a,onChange:p,className:"w-[280px]"})}),e[14]=a,e[15]=l):l=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=C=>v(C.target.value),e[16]=_):_=e[16];let b;e[17]!==x?(b=s.jsx(I,{title:"Auth Token",description:"Optional",action:s.jsx(X,{type:"password",placeholder:"Bearer token...",value:x,onChange:_,className:"w-[280px]"})}),e[17]=x,e[18]=b):b=e[18];let k;e[19]!==d||e[20]!==o?(k=s.jsx(Y,{variant:"ghost",size:"sm",onClick:o,disabled:d,children:"Cancel"}),e[19]=d,e[20]=o,e[21]=k):k=e[21];let N;e[22]!==c?(N=()=>c(),e[22]=c,e[23]=N):N=e[23];const O=!a||d,B=d?"Adding...":"Add Registry";let A;e[24]!==N||e[25]!==O||e[26]!==B?(A=s.jsx(Y,{size:"sm",onClick:N,disabled:O,children:B}),e[24]=N,e[25]=O,e[26]=B,e[27]=A):A=e[27];let R;e[28]!==k||e[29]!==A?(R=s.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[k,A]}),e[28]=k,e[29]=A,e[30]=R):R=e[30];let P;return e[31]!==R||e[32]!==u||e[33]!==l||e[34]!==b?(P=s.jsxs(Q,{children:[u,l,b,R]}),e[31]=R,e[32]=u,e[33]=l,e[34]=b,e[35]=P):P=e[35],P}function Ne(t){ie.error(`Failed to add registry: ${t.message}`)}function L(t){const e=D.c(29),{name:o,description:m,icon:n,enabled:r,onToggle:j,onDelete:a,href:S}=t,x=de();let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v={from:"/shell/$org"},e[0]=v):v=e[0];const{org:h}=me(v);let f;e[1]!==r||e[2]!==S||e[3]!==x||e[4]!==j||e[5]!==h?(f=()=>{S?x({to:S,params:{org:h}}):j(!r)},e[1]=r,e[2]=S,e[3]=x,e[4]=j,e[5]=h,e[6]=f):f=e[6];const y=f;let c;e[7]!==n||e[8]!==o?(c=n?s.jsx("img",{src:n,alt:o,className:"size-8 rounded-md object-contain"}):s.jsx(ne,{fallback:o.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=n,e[8]=o,e[9]=c):c=e[9];let d;e[10]!==a?(d=a&&s.jsxs(je,{children:[s.jsx(Ce,{asChild:!0,children:s.jsx(Y,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Me,children:s.jsx(he,{size:14})})}),s.jsx(Se,{className:"w-auto p-2",align:"end",children:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{className:"text-xs font-medium",children:"Remove this registry?"}),s.jsx(Y,{variant:"destructive",size:"xs",onClick:b=>{b.stopPropagation(),a()},children:"Remove"})]})})]}),e[10]=a,e[11]=d):d=e[11];let g;e[12]!==j?(g=b=>j(b),e[12]=j,e[13]=g):g=e[13];let u;e[14]!==r||e[15]!==g?(u=s.jsx(oe,{checked:r,onClick:Ae,onCheckedChange:g}),e[14]=r,e[15]=g,e[16]=u):u=e[16];let p;e[17]!==S?(p=S&&s.jsx(pe,{size:14,className:"text-muted-foreground"}),e[17]=S,e[18]=p):p=e[18];let l;e[19]!==d||e[20]!==u||e[21]!==p?(l=s.jsxs("div",{className:"flex items-center gap-2",children:[d,u,p]}),e[19]=d,e[20]=u,e[21]=p,e[22]=l):l=e[22];let _;return e[23]!==m||e[24]!==y||e[25]!==o||e[26]!==c||e[27]!==l?(_=s.jsx(I,{title:o,description:m,onClick:y,icon:c,action:l}),e[23]=m,e[24]=y,e[25]=o,e[26]=c,e[27]=l,e[28]=_):_=e[28],_}function Ae(t){return t.stopPropagation()}function Me(t){return t.stopPropagation()}function Te(){const t=D.c(59),{org:e}=ae(),o=ve(),m=re(),n=_e(),{mutateAsync:r}=be(),j=ce(),[a,S]=K.useState(!1);let x,v,h,f,y,c;if(t[0]!==m||t[1]!==e.id||t[2]!==j||t[3]!==n||t[4]!==o||t[5]!==a||t[6]!==r){const p=Z.REGISTRY(e.id),l=i=>{if(!n)return i===p;const w=n.registries[i];return w?w.enabled:i===p},_=Z.COMMUNITY_REGISTRY(e.id),b=o.find(i=>i.id===p),k=o.find(i=>i.id===_||i.id==="community-registry"),N=k?.id??_,O=Z.SELF(e.id),B=new Set([p,_,"community-registry",O]),A=o.filter(i=>!B.has(i.id));let R;t[13]!==n||t[14]!==r?(R=async(i,w)=>{te("store_registry_toggled",{connection_id:i,enabled:w});const se=n??{registries:{},blockedMcps:[]};await r({...se,registries:{...se.registries,[i]:{enabled:w}}})},t[13]=n,t[14]=r,t[15]=R):R=t[15];const P=R;let C;t[16]!==m||t[17]!==e.id||t[18]!==j?(C=async i=>{te("store_private_registry_removed",{connection_id:i}),await m.delete.mutateAsync(i),j.invalidateQueries({queryKey:fe.organizationSettings(e.id)})},t[16]=m,t[17]=e.id,t[18]=j,t[19]=C):C=t[19];const W=C;let q;t[20]!==n||t[21]!==r?(q=async i=>{S(!1);const w=n??{registries:{},blockedMcps:[]};await r({...w,registries:{...w.registries,[i]:{enabled:!0}}})},t[20]=n,t[21]=r,t[22]=q):q=t[22];const H=q,J=b?s.jsx(L,{name:"Deco Store",description:"Official deco MCP registry with curated integrations",icon:b.icon,enabled:l(p),onToggle:i=>P(p,i)}):s.jsx(I,{title:"Deco Store",description:"Connection not found — will be created automatically."});t[23]!==J?(y=s.jsx(ee,{title:"Deco Store",children:s.jsx(Q,{children:J})}),t[23]=J,t[24]=y):y=t[24];let M;t[25]!==a?(M=a?void 0:s.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>S(!0),children:[s.jsx(xe,{size:14}),"Add registry"]}),t[25]=a,t[26]=M):M=t[26];let T;t[27]!==H||t[28]!==a?(T=a&&s.jsx(we,{onCancel:()=>S(!1),onSuccess:H}),t[27]=H,t[28]=a,t[29]=T):T=t[29];let z;t[30]!==l?(z=l("self"),t[30]=l,t[31]=z):z=t[31];let E;t[32]!==P?(E=i=>P("self",i),t[32]=P,t[33]=E):E=t[33];let F;t[34]!==z||t[35]!==E?(F=s.jsx(L,{name:"Private Registry",description:"Your organization's private MCP registry",enabled:z,onToggle:E,href:"/$org/settings/store/registry"}),t[34]=z,t[35]=E,t[36]=F):F=t[36];let U;t[37]!==W||t[38]!==P||t[39]!==l?(U=i=>s.jsx(L,{name:i.title,description:i.description??"Private MCP registry",icon:i.icon,enabled:l(i.id),onToggle:w=>P(i.id,w),onDelete:()=>W(i.id)},i.id),t[37]=W,t[38]=P,t[39]=l,t[40]=U):U=t[40];const V=A.map(U);let $;t[41]!==F||t[42]!==V?($=s.jsxs(Q,{children:[F,V]}),t[41]=F,t[42]=V,t[43]=$):$=t[43],t[44]!==$||t[45]!==M||t[46]!==T?(c=s.jsxs(ee,{title:"Private Registries",actions:M,children:[T,$]}),t[44]=$,t[45]=M,t[46]=T,t[47]=c):c=t[47],v=ee,f="Community",x=Q,h=k?s.jsx(L,{name:"MCP Registry",description:"Community MCP registry with thousands of handy MCPs",icon:k.icon,enabled:l(N),onToggle:i=>P(N,i)}):s.jsx(I,{title:"MCP Registry",description:"Community MCP registry — not yet added",icon:s.jsx(ne,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:s.jsx(oe,{checked:!1,disabled:!0,onCheckedChange:ze})}),t[0]=m,t[1]=e.id,t[2]=j,t[3]=n,t[4]=o,t[5]=a,t[6]=r,t[7]=x,t[8]=v,t[9]=h,t[10]=f,t[11]=y,t[12]=c}else x=t[7],v=t[8],h=t[9],f=t[10],y=t[11],c=t[12];let d;t[48]!==x||t[49]!==h?(d=s.jsx(x,{children:h}),t[48]=x,t[49]=h,t[50]=d):d=t[50];let g;t[51]!==v||t[52]!==f||t[53]!==d?(g=s.jsx(v,{title:f,children:d}),t[51]=v,t[52]=f,t[53]=d,t[54]=g):g=t[54];let u;return t[55]!==y||t[56]!==c||t[57]!==g?(u=s.jsxs(s.Fragment,{children:[y,c,g]}),t[55]=y,t[56]=c,t[57]=g,t[58]=u):u=t[58],u}function ze(){}function Ee(){const t=D.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ye,{className:"h-64 w-full"}),t[0]=e):e=t[0];let o;return t[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(le,{fallback:Fe,children:s.jsx(K.Suspense,{fallback:e,children:s.jsx(G,{children:s.jsx(G.Content,{children:s.jsx(G.Body,{children:s.jsxs(Pe,{children:[s.jsx(G.Title,{children:"Store"}),s.jsx(Te,{})]})})})})})}),t[1]=o):o=t[1],o}function Fe(t){const{error:e}=t;return s.jsx(ke,{error:e??new Error("Failed to load store settings")})}function dt(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Re,{capability:"registry:manage",area:"the store",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}export{dt as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DacvYqG6.js","assets/index-CP71kWj4.js","assets/index-uXid0yMu.css","assets/XCircle-KI6IMDV1.js","assets/CheckCircle-FNn3jQ6r.js","assets/Container-v4PDwCHT.js","assets/Settings02-BQaph7g_.js","assets/constants-BV9onSoP.js","assets/useInfiniteQuery-oJZSdhY_.js","assets/infiniteQueryObserver-C5_3w7Qx.js","assets/badge-CMa8EU_l.js","assets/input-gY4u7VDK.js","assets/dropdown-menu-BS9qzHU_.js","assets/Check-BfVI7hnS.js","assets/ChevronRight-WV_-bfVU.js","assets/DotsVertical-C48Zbn1h.js","assets/table-oShuaAsO.js","assets/toggle-group-oYk6Wg-R.js","assets/use-view-mode-D5iAnvBO.js","assets/tooltip-CyQVVn-_.js","assets/FilterLines-DkLjHTNZ.js","assets/Globe01-DMarfJXw.js","assets/SearchMd-ZUhK0MkR.js","assets/dialog-DmA9PBpb.js","assets/X-BVuQlLjC.js","assets/AlertCircle-CMnAyjej.js","assets/Upload01-DtLe0kFE.js","assets/alert-dialog-DpFXZE53.js","assets/card-BjNWFu6e.js","assets/Trash01-CfO860iW.js","assets/label-0pkDqpXA.js","assets/select-WYoYOE2a.js","assets/ChevronDown-Dam5Ku7Z.js","assets/ChevronUp-D8hy96AX.js","assets/switch-H2mJTfgm.js","assets/textarea-B0buVFM2.js","assets/RefreshCcw01-D5-r7ZyQ.js","assets/checkbox-CPM_S9g-.js","assets/Eye-BWxBVI3O.js","assets/LinkExternal01-DPr7U6b-.js","assets/use-copy-BX772HSE.js","assets/Key01-CKhLu5wS.js","assets/Plus-Ca82DisL.js","assets/Play-D5-w8wUQ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{e as m,f as n,g as c,j as t,l as f,r as l,_ as p}from"./index-CP71kWj4.js";import{R as u}from"./require-capability-BPbIwXf-.js";import"./use-capability-D8gdoz7e.js";import"./access-gate-BsWxhjm1.js";import"./capability-load-error-rUICjETf.js";const g=l.lazy(()=>p(()=>import("./registry-layout-DacvYqG6.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as i,a6 as C,bq as y,bc as T,a7 as I,br as M,bs as H,af as q,e as z,c as g}from"./index-
|
|
1
|
+
import{r as c,j as i,a6 as C,bq as y,bc as T,a7 as I,br as M,bs as H,af as q,e as z,c as g}from"./index-CP71kWj4.js";var m="Switch",[A]=q(m),[U,L]=A(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:a,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(U,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:a,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...a}=r,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:a=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:a});h.call(l,t),l.dispatchEvent(v)}},[u,t,a]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(r){return r?"checked":"unchecked"}var $=E,D=R;function W(r){const e=z.c(9);let t,a;e[0]!==r?({className:t,...a}=r,e[0]=r,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==a||e[7]!==s?(o=i.jsx($,{"data-slot":"switch",className:s,...a,children:n}),e[6]=a,e[7]=s,e[8]=o):o=e[8],o}export{W as S};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{L as bt,cf as Et,cg as _t,bM as O,U as c,ch as oe,ci as Ve,cj as It,ck as St,T as Tt,aJ as A,aI as U,aG as te,R as b,bi as f,b6 as k,cl as wt,cm as E,aH as At,o as he,r as $,e as Ee,q as Mt,j as Ot}from"./index-
|
|
1
|
+
import{L as bt,cf as Et,cg as _t,bM as O,U as c,ch as oe,ci as Ve,cj as It,ck as St,T as Tt,aJ as A,aI as U,aG as te,R as b,bi as f,b6 as k,cl as wt,cm as E,aH as At,o as he,r as $,e as Ee,q as Mt,j as Ot}from"./index-CP71kWj4.js";import{S as Ct,u as Nt}from"./constants-BV9onSoP.js";import{d as Rt,D as xt}from"./decopilot-sse-pool-D7NXcssd.js";import{e as Pt}from"./create-sse-subscription-BS5983N4.js";var K;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function a(s){throw new Error}t.assertNever=a,t.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},t.getValidEnumValues=s=>{const o=t.objectKeys(s).filter(n=>typeof s[s[n]]!="number"),i={};for(const n of o)i[n]=s[n];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(o){return s[o]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},t.find=(s,o)=>{for(const i of s)if(o(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}t.joinValues=r,t.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(K||(K={}));var Ae;(function(t){t.mergeShapes=(e,a)=>({...e,...a})})(Ae||(Ae={}));K.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);K.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ie extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=e}format(e){const a=e||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(a(i));else{let n=r,d=0;for(;d<i.path.length;){const l=i.path[d];d===i.path.length-1?(n[l]=n[l]||{_errors:[]},n[l]._errors.push(a(i))):n[l]=n[l]||{_errors:[]},n=n[l],d++}}};return s(this),r}static assert(e){if(!(e instanceof ie))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,K.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=a=>a.message){const a=Object.create(null),r=[];for(const s of this.issues)if(s.path.length>0){const o=s.path[0];a[o]=a[o]||[],a[o].push(e(s))}else r.push(e(s));return{formErrors:r,fieldErrors:a}}get formErrors(){return this.flatten()}}ie.create=t=>new ie(t);var Me;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Me||(Me={}));var m;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(m||(m={}));const Dt=1e4,Vr="true";function ue(t,e){return bt.chatAutosend(t,e)}function Lt(t){return t==="pending"||t==="sending"}function kt(t){if(!t)return null;let e;try{e=JSON.parse(t)}catch{return null}return!e||typeof e!="object"||typeof e.createdAt!="number"||typeof e.message!="object"||!Lt(e.status)?null:e}function zr(t,e,a,r,s=Date.now()){const o={message:r,createdAt:s,status:"pending"};return t.setItem(ue(e,a),JSON.stringify(o)),o}function jt(t,e,a){const r=ue(e,a),s=kt(t.getItem(r));return s||(t.removeItem(r),null)}function Jr(t,e,a,r=Date.now()){const s=ue(e,a),o=jt(t,e,a);return!o||o.status!=="pending"?null:r-o.createdAt>=Dt?(t.removeItem(s),null):(t.setItem(s,JSON.stringify({...o,status:"sending"})),{message:o.message,createdAt:o.createdAt})}function Wr(t,e,a){t.removeItem(ue(e,a))}var ze="vercel.ai.error",Zt=Symbol.for(ze),Oe,Ce,P=class Je extends(Ce=Error,Oe=Zt,Ce){constructor({name:e,message:a,cause:r}){super(a),this[Oe]=!0,this.name=e,this.cause=r}static isInstance(e){return Je.hasMarker(e,ze)}static hasMarker(e,a){const r=Symbol.for(a);return e!=null&&typeof e=="object"&&r in e&&typeof e[r]=="boolean"&&e[r]===!0}};function We(t){return t==null?"unknown error":typeof t=="string"?t:t instanceof Error?t.message:JSON.stringify(t)}var Ye="AI_InvalidArgumentError",He=`vercel.ai.error.${Ye}`,$t=Symbol.for(He),Ne,Re,Ut=class extends(Re=P,Ne=$t,Re){constructor({message:t,cause:e,argument:a}){super({name:Ye,message:t,cause:e}),this[Ne]=!0,this.argument=a}static isInstance(t){return P.hasMarker(t,He)}},qe="AI_JSONParseError",Ge=`vercel.ai.error.${qe}`,Bt=Symbol.for(Ge),xe,Pe,De=class extends(Pe=P,xe=Bt,Pe){constructor({text:t,cause:e}){super({name:qe,message:`JSON parsing failed: Text: ${t}.
|
|
2
2
|
Error message: ${We(e)}`,cause:e}),this[xe]=!0,this.text=t}static isInstance(t){return P.hasMarker(t,Ge)}},Xe="AI_TypeValidationError",Qe=`vercel.ai.error.${Xe}`,Ft=Symbol.for(Qe),Le,ke,Y=class ve extends(ke=P,Le=Ft,ke){constructor({value:e,cause:a,context:r}){let s="Type validation failed";if(r?.field&&(s+=` for ${r.field}`),r?.entityName||r?.entityId){s+=" (";const o=[];r.entityName&&o.push(r.entityName),r.entityId&&o.push(`id: "${r.entityId}"`),s+=o.join(", "),s+=")"}super({name:Xe,message:`${s}: Value: ${JSON.stringify(e)}.
|
|
3
3
|
Error message: ${We(a)}`,cause:a}),this[Le]=!0,this.value=e,this.context=r}static isInstance(e){return P.hasMarker(e,Qe)}static wrap({value:e,cause:a,context:r}){var s,o,i;return ve.isInstance(a)&&a.value===e&&((s=a.context)==null?void 0:s.field)===r?.field&&((o=a.context)==null?void 0:o.entityName)===r?.entityName&&((i=a.context)==null?void 0:i.entityId)===r?.entityId?a:new ve({value:e,cause:a,context:r})}},ae=({prefix:t,size:e=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{const s=()=>{const o=a.length,i=new Array(e);for(let n=0;n<e;n++)i[n]=a[Math.random()*o|0];return i.join("")};if(t==null)return s;if(a.includes(r))throw new Ut({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${a}".`});return()=>`${t}${r}${s()}`};ae();var Vt=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,zt=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function je(t){const e=JSON.parse(t);return e===null||typeof e!="object"||Vt.test(t)===!1&&zt.test(t)===!1?e:Jt(e)}function Jt(t){let e=[t];for(;e.length;){const a=e;e=[];for(const r of a){if(Object.prototype.hasOwnProperty.call(r,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor!==null&&typeof r.constructor=="object"&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const s in r){const o=r[s];o&&typeof o=="object"&&e.push(o)}}}return t}function Wt(t){const{stackTraceLimit:e}=Error;try{Error.stackTraceLimit=0}catch{return je(t)}try{return je(t)}finally{Error.stackTraceLimit=e}}function _e(t){if(t.type==="object"||Array.isArray(t.type)&&t.type.includes("object")){t.additionalProperties=!1;const{properties:a}=t;if(a!=null)for(const r of Object.keys(a))a[r]=Z(a[r])}t.items!=null&&(t.items=Array.isArray(t.items)?t.items.map(Z):Z(t.items)),t.anyOf!=null&&(t.anyOf=t.anyOf.map(Z)),t.allOf!=null&&(t.allOf=t.allOf.map(Z)),t.oneOf!=null&&(t.oneOf=t.oneOf.map(Z));const{definitions:e}=t;if(e!=null)for(const a of Object.keys(e))e[a]=Z(e[a]);return t}function Z(t){return typeof t=="boolean"?t:_e(t)}var Yt=Symbol("Let zodToJsonSchema decide on which parser to use"),Ze={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},Ht=t=>typeof t=="string"?{...Ze,name:t}:{...Ze,...t};function C(){return{}}function qt(t,e){var a,r,s;const o={type:"array"};return(a=t.type)!=null&&a._def&&((s=(r=t.type)==null?void 0:r._def)==null?void 0:s.typeName)!==m.ZodAny&&(o.items=g(t.type._def,{...e,currentPath:[...e.currentPath,"items"]})),t.minLength&&(o.minItems=t.minLength.value),t.maxLength&&(o.maxItems=t.maxLength.value),t.exactLength&&(o.minItems=t.exactLength.value,o.maxItems=t.exactLength.value),o}function Gt(t){const e={type:"integer",format:"int64"};if(!t.checks)return e;for(const a of t.checks)switch(a.kind){case"min":a.inclusive?e.minimum=a.value:e.exclusiveMinimum=a.value;break;case"max":a.inclusive?e.maximum=a.value:e.exclusiveMaximum=a.value;break;case"multipleOf":e.multipleOf=a.value;break}return e}function Xt(){return{type:"boolean"}}function Ke(t,e){return g(t.type._def,e)}var Qt=(t,e)=>g(t.innerType._def,e);function et(t,e,a){const r=a??e.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((s,o)=>et(t,e,s))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return Kt(t)}}var Kt=t=>{const e={type:"integer",format:"unix-time"};for(const a of t.checks)switch(a.kind){case"min":e.minimum=a.value;break;case"max":e.maximum=a.value;break}return e};function ea(t,e){return{...g(t.innerType._def,e),default:t.defaultValue()}}function ta(t,e){return e.effectStrategy==="input"?g(t.schema._def,e):C()}function aa(t){return{type:"string",enum:Array.from(t.values)}}var ra=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function sa(t,e){const a=[g(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),g(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(s=>!!s),r=[];return a.forEach(s=>{if(ra(s))r.push(...s.allOf);else{let o=s;if("additionalProperties"in s&&s.additionalProperties===!1){const{additionalProperties:i,...n}=s;o=n}r.push(o)}}),r.length?{allOf:r}:void 0}function na(t){const e=typeof t.value;return e!=="bigint"&&e!=="number"&&e!=="boolean"&&e!=="string"?{type:Array.isArray(t.value)?"array":"object"}:{type:e==="bigint"?"integer":e,const:t.value}}var pe=void 0,N={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(pe===void 0&&(pe=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),pe),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function tt(t,e){const a={type:"string"};if(t.checks)for(const r of t.checks)switch(r.kind){case"min":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value;break;case"max":a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"email":switch(e.emailStrategy){case"format:email":R(a,"email",r.message,e);break;case"format:idn-email":R(a,"idn-email",r.message,e);break;case"pattern:zod":w(a,N.email,r.message,e);break}break;case"url":R(a,"uri",r.message,e);break;case"uuid":R(a,"uuid",r.message,e);break;case"regex":w(a,r.regex,r.message,e);break;case"cuid":w(a,N.cuid,r.message,e);break;case"cuid2":w(a,N.cuid2,r.message,e);break;case"startsWith":w(a,RegExp(`^${fe(r.value,e)}`),r.message,e);break;case"endsWith":w(a,RegExp(`${fe(r.value,e)}$`),r.message,e);break;case"datetime":R(a,"date-time",r.message,e);break;case"date":R(a,"date",r.message,e);break;case"time":R(a,"time",r.message,e);break;case"duration":R(a,"duration",r.message,e);break;case"length":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value,a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"includes":{w(a,RegExp(fe(r.value,e)),r.message,e);break}case"ip":{r.version!=="v6"&&R(a,"ipv4",r.message,e),r.version!=="v4"&&R(a,"ipv6",r.message,e);break}case"base64url":w(a,N.base64url,r.message,e);break;case"jwt":w(a,N.jwt,r.message,e);break;case"cidr":{r.version!=="v6"&&w(a,N.ipv4Cidr,r.message,e),r.version!=="v4"&&w(a,N.ipv6Cidr,r.message,e);break}case"emoji":w(a,N.emoji(),r.message,e);break;case"ulid":{w(a,N.ulid,r.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{R(a,"binary",r.message,e);break}case"contentEncoding:base64":{a.contentEncoding="base64";break}case"pattern:zod":{w(a,N.base64,r.message,e);break}}break}case"nanoid":w(a,N.nanoid,r.message,e)}return a}function fe(t,e){return e.patternStrategy==="escape"?ia(t):t}var oa=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function ia(t){let e="";for(let a=0;a<t.length;a++)oa.has(t[a])||(e+="\\"),e+=t[a];return e}function R(t,e,a,r){var s;t.format||(s=t.anyOf)!=null&&s.some(o=>o.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format}),delete t.format),t.anyOf.push({format:e,...a&&r.errorMessages&&{errorMessage:{format:a}}})):t.format=e}function w(t,e,a,r){var s;t.pattern||(s=t.allOf)!=null&&s.some(o=>o.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern}),delete t.pattern),t.allOf.push({pattern:$e(e,r),...a&&r.errorMessages&&{errorMessage:{pattern:a}}})):t.pattern=$e(e,r)}function $e(t,e){var a;if(!e.applyRegexFlags||!t.flags)return t.source;const r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},s=r.i?t.source.toLowerCase():t.source;let o="",i=!1,n=!1,d=!1;for(let l=0;l<s.length;l++){if(i){o+=s[l],i=!1;continue}if(r.i){if(n){if(s[l].match(/[a-z]/)){d?(o+=s[l],o+=`${s[l-2]}-${s[l]}`.toUpperCase(),d=!1):s[l+1]==="-"&&((a=s[l+2])!=null&&a.match(/[a-z]/))?(o+=s[l],d=!0):o+=`${s[l]}${s[l].toUpperCase()}`;continue}}else if(s[l].match(/[a-z]/)){o+=`[${s[l]}${s[l].toUpperCase()}]`;continue}}if(r.m){if(s[l]==="^"){o+=`(^|(?<=[\r
|
|
4
4
|
]))`;continue}else if(s[l]==="$"){o+=`($|(?=[\r
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c,c as i,j as r}from"./index-
|
|
1
|
+
import{e as c,c as i,j as r}from"./index-CP71kWj4.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,p as a,b,d as c,f as d,m as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as f,j as d,b9 as k,a6 as p,a7 as T,ba as y,af as M,bb as P,bc as S,bd as F,be as V,bf as D,e as x,c as g}from"./index-
|
|
1
|
+
import{r as f,j as d,b9 as k,a6 as p,a7 as T,ba as y,af as M,bb as P,bc as S,bd as F,be as V,bf as D,e as x,c as g}from"./index-CP71kWj4.js";var m="Tabs",[G]=M(m,[y]),w=y(),[L,h]=G(m),C=f.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...v,ref:e})})});C.displayName=m;var N="TabsList",j=f.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=f.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=E(o.baseId,t),v=$(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":v,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=f.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),v=$(i.baseId,t),u=t===i.value,c=f.useRef(u);return f.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:v,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{Q as T,J as a,U as b,O as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as o}from"./AlertCircle-
|
|
1
|
+
import{i as o}from"./AlertCircle-CMnAyjej.js";import{i as t}from"./CheckCircle-FNn3jQ6r.js";import{a as r}from"./DotsVertical-C48Zbn1h.js";import{ab as a}from"./agent-icon-BDkw702S.js";import{l}from"./index-CP71kWj4.js";import{i as n}from"./XCircle-KI6IMDV1.js";const i={requires_action:{label:"Needs review",verb:"Waiting for your review",icon:o,iconClassName:"text-orange-500",labelColor:"text-orange-600 dark:text-orange-400"},failed:{label:"Failed",verb:"Something went wrong",icon:n,iconClassName:"text-red-500",labelColor:"text-red-600 dark:text-red-400"},expired:{label:"Timed out",verb:"Stopped responding",icon:a,iconClassName:"text-amber-500",labelColor:"text-amber-600 dark:text-amber-400"},in_progress:{label:"Running",verb:"Agent is working",icon:l,iconClassName:"text-blue-500",labelColor:"text-blue-600 dark:text-blue-400"},completed:{label:"Done",verb:"Completed",icon:t,iconClassName:"text-muted-foreground/50",labelColor:"text-muted-foreground"}},m={label:"Unknown",verb:"Unknown status",icon:r,iconClassName:"text-muted-foreground",labelColor:"text-muted-foreground"};function x(e){return i[e??"completed"]??m}export{i as S,x as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as o,c as l,j as n}from"./index-
|
|
1
|
+
import{e as o,c as l,j as n}from"./index-CP71kWj4.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=l("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-xl bg-background dark:bg-input/30 px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,bc as b,j as c,a6 as m,a7 as k,b1 as p,b9 as M,ba as T,bb as S,be as A,af as F,bm as $,e as P,c as C}from"./index-
|
|
1
|
+
import{r as x,bc as b,j as c,a6 as m,a7 as k,b1 as p,b9 as M,ba as T,bb as S,be as A,af as F,bm as $,e as P,c as C}from"./index-CP71kWj4.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),I=T(),h=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,y]=w(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...r,ref:e})})});h.displayName=v;var[O,H]=w(v),R=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=I(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=y(f,a.__scopeToggleGroup),s=H(f,a.__scopeToggleGroup),n=I(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=y(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),L=h,U=N;const q=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function K(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(L,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(q({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(U,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{K as T,Q as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c,c as E,j as l,r as d,g as S,aS as T,M as $,W as y,Y as N}from"./index-
|
|
1
|
+
import{e as c,c as E,j as l,r as d,g as S,aS as T,M as $,W as y,Y as N}from"./index-CP71kWj4.js";import{n as w}from"./ZapSquare-CAslbjgD.js";import{i as C}from"./ChevronRight-WV_-bfVU.js";function j(t){const e=c.c(14);let o,s,n,r,a;e[0]!==t?({active:o,className:s,ref:r,type:a,...n}=t,e[0]=t,e[1]=o,e[2]=s,e[3]=n,e[4]=r,e[5]=a):(o=e[1],s=e[2],n=e[3],r=e[4],a=e[5]);const f=a===void 0?"button":a,h=o?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground";let u;e[6]!==s||e[7]!==h?(u=E("relative flex size-10 md:size-7 shrink-0 items-center justify-center rounded-md transition-colors","max-md:[&_svg]:size-5","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",h,s),e[6]=s,e[7]=h,e[8]=u):u=e[8];let g;return e[9]!==n||e[10]!==r||e[11]!==u||e[12]!==f?(g=l.jsx("button",{ref:r,type:f,className:u,...n}),e[9]=n,e[10]=r,e[11]=u,e[12]=f,e[13]=g):g=e[13],g}const p=d.createContext(null);function m(){const t=d.use(p);if(!t)throw new Error("Toolbar.* must be used inside <Toolbar>");return t}function k(t){const e=c.c(8),{children:o}=t,[s,n]=d.useState(null),[r,a]=d.useState(null),[f,h]=d.useState(null),[u,g]=d.useState(null);let b;e[0]!==f||e[1]!==u||e[2]!==r||e[3]!==s?(b={togglesEl:s,setTogglesEl:n,tabsEl:r,setTabsEl:a,centerEl:f,setCenterEl:h,rightEl:u,setRightEl:g},e[0]=f,e[1]=u,e[2]=r,e[3]=s,e[4]=b):b=e[4];let x;return e[5]!==o||e[6]!==b?(x=l.jsx(p,{value:b,children:o}),e[5]=o,e[6]=b,e[7]=x):x=e[7],x}function i(t){const e=c.c(2),{children:o}=t;let s;return e[0]!==o?(s=l.jsx(k,{children:l.jsx("div",{className:"flex flex-col h-full min-h-0",children:o})}),e[0]=o,e[1]=s):s=e[1],s}function L(t){const e=c.c(2),{children:o}=t;let s;return e[0]!==o?(s=l.jsx("div",{className:"app-titlebar wco-drag shrink-0 grid grid-cols-3 items-center pl-1 pr-2 pt-0.25 h-12 bg-sidebar",children:o}),e[0]=o,e[1]=s):s=e[1],s}function _(t){const e=c.c(2),{children:o}=t;let s;return e[0]!==o?(s=l.jsx("div",{className:"flex items-center gap-0.5 min-w-0 justify-self-start",children:o}),e[0]=o,e[1]=s):s=e[1],s}function R(t){const e=c.c(2),{children:o}=t;let s;return e[0]!==o?(s=l.jsx("div",{className:"flex items-center justify-end gap-0.5 min-w-0 justify-self-end",children:o}),e[0]=o,e[1]=s):s=e[1],s}function z(){const t=c.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(j,{onClick:G,"aria-label":"Go back",title:"Go back",children:l.jsx(w,{size:16})}),t[0]=e):e=t[0];let o;return t[1]===Symbol.for("react.memo_cache_sentinel")?(o=l.jsxs(l.Fragment,{children:[e,l.jsx(j,{onClick:P,"aria-label":"Go forward",title:"Go forward",children:l.jsx(C,{size:16})})]}),t[1]=o):o=t[1],o}function P(){return window.history.forward()}function G(){return window.history.back()}function B(){const t=c.c(7),o=y().logo??N,s=typeof o=="string"?o:o.light,n=typeof o=="string"?o:o.dark;let r;t[0]!==s?(r=l.jsx("img",{src:s,alt:"Logo",className:"size-6 object-contain dark:hidden"}),t[0]=s,t[1]=r):r=t[1];let a;t[2]!==n?(a=l.jsx("img",{src:n,alt:"Logo",className:"size-6 object-contain hidden dark:block"}),t[2]=n,t[3]=a):a=t[3];let f;return t[4]!==r||t[5]!==a?(f=l.jsxs("span",{className:"wco-hide flex items-center shrink-0 px-2",children:[r,a]}),t[4]=r,t[5]=a,t[6]=f):f=t[6],f}function v(){const t=c.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(d.Suspense,{fallback:l.jsx("span",{className:"wco-hide shrink-0 size-6 mx-2"}),children:l.jsx(B,{})}),t[0]=e):e=t[0],e}function I(){const t=c.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:o}=S(e);let s;t[1]!==o?(s={org:o},t[1]=o,t[2]=s):s=t[2];let n;t[3]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx(v,{}),t[3]=n):n=t[3];let r;return t[4]!==s?(r=l.jsx($,{to:"/$org",params:s,"aria-label":"Back to home",title:"Back to home",className:"wco-no-drag flex items-center shrink-0 cursor-pointer pl-1",children:n}),t[4]=s,t[5]=r):r=t[5],r}function D(){const t=c.c(2),{setCenterEl:e}=m();let o;return t[0]!==e?(o=l.jsx("div",{ref:e,className:"min-w-0 flex items-center justify-center gap-2"}),t[0]=e,t[1]=o):o=t[1],o}function F(t){const e=c.c(3),{children:o}=t,{centerEl:s}=m();if(!s)return null;let n;return e[0]!==s||e[1]!==o?(n=T.createPortal(o,s),e[0]=s,e[1]=o,e[2]=n):n=e[2],n}function H(){const t=c.c(2),{setTabsEl:e}=m();let o;return t[0]!==e?(o=l.jsx("div",{ref:e,className:"shrink-0 flex items-center"}),t[0]=e,t[1]=o):o=t[1],o}function O(t){const e=c.c(3),{children:o}=t,{tabsEl:s}=m();if(!s)return null;let n;return e[0]!==o||e[1]!==s?(n=T.createPortal(o,s),e[0]=o,e[1]=s,e[2]=n):n=e[2],n}function A(){const t=c.c(2),{setTogglesEl:e}=m();let o;return t[0]!==e?(o=l.jsx("div",{ref:e,className:"contents"}),t[0]=e,t[1]=o):o=t[1],o}function M(t){const e=c.c(3),{children:o}=t,{togglesEl:s}=m();if(!s)return null;let n;return e[0]!==o||e[1]!==s?(n=T.createPortal(o,s),e[0]=o,e[1]=s,e[2]=n):n=e[2],n}function U(){const t=c.c(2),{setRightEl:e}=m();let o;return t[0]!==e?(o=l.jsx("div",{ref:e,className:"flex items-center justify-end gap-0.5 shrink-0"}),t[0]=e,t[1]=o):o=t[1],o}function W(t){const e=c.c(3),{children:o}=t,{rightEl:s}=m();if(!s)return null;let n;return e[0]!==o||e[1]!==s?(n=T.createPortal(o,s),e[0]=o,e[1]=s,e[2]=n):n=e[2],n}i.Provider=k;i.Header=L;i.LeftColumn=_;i.RightColumn=R;i.Nav=z;i.Logo=v;i.LogoLink=I;i.CenterSlot=D;i.Center=F;i.TabsSlot=H;i.Tabs=O;i.TogglesSlot=A;i.Toggles=M;i.RightSlot=U;i.Right=W;export{j as T,i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as h,q as I,K as T,s as b,J as C,v as k,z as N,j as o}from"./index-
|
|
1
|
+
import{e as h,q as I,K as T,s as b,J as C,v as k,z as N,j as o}from"./index-CP71kWj4.js";import{B as x}from"./badge-CMa8EU_l.js";import{b as y,T as j,a as g,c as S}from"./tooltip-CyQVVn-_.js";import{g as _}from"./types-B1liqey9.js";import{s as $}from"./Eye-BWxBVI3O.js";import{s as A}from"./Star01-Bzq1-0_7.js";import{a8 as w}from"./agent-icon-BDkw702S.js";function K(m){const e=h.c(11),{connectionId:a}=m,{org:r}=I();let i,t,l;e[0]!==a||e[1]!==r.slug?(i=new URL(`/api/${r.slug}/mcp/${a}`,window.location.origin),l=b,t=T.isMCPAuthenticated(i.href,null),e[0]=a,e[1]=r.slug,e[2]=i,e[3]=t,e[4]=l):(i=e[2],t=e[3],l=e[4]);let s;e[5]!==i||e[6]!==r.id?(s=()=>C({url:i.href,token:null,orgId:r.id}),e[5]=i,e[6]=r.id,e[7]=s):s=e[7];let n;e[8]!==t||e[9]!==s?(n={queryKey:t,queryFn:s},e[8]=t,e[9]=s,e[10]=n):n=e[10];const{data:c}=l(n);return c}const H=[{key:"readOnlyHint",label:"Read-only",Icon:$,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:k,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:N,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:A,variant:"outline"}];function M(m){const e=h.c(18),{annotations:a,_meta:r}=m;let i;e[0]!==r?(i=_(r),e[0]=r,e[1]=i):i=e[1];const t=!!i;let l,s,n,c,u;if(e[2]!==a||e[3]!==t){u=Symbol.for("react.early_return_sentinel");e:{const f=a?H.filter(v=>a[v.key]===!0):[];if(f.length===0&&!t){u=null;break e}l=S,s="flex gap-1 flex-nowrap",e[9]!==t?(n=t&&o.jsxs(y,{children:[o.jsx(j,{asChild:!0,children:o.jsx(x,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:o.jsx(w,{})})}),o.jsx(g,{children:"Interactive"})]}),e[9]=t,e[10]=n):n=e[10],c=f.map(P)}e[2]=a,e[3]=t,e[4]=l,e[5]=s,e[6]=n,e[7]=c,e[8]=u}else l=e[4],s=e[5],n=e[6],c=e[7],u=e[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;let d;e[11]!==s||e[12]!==n||e[13]!==c?(d=o.jsxs("div",{className:s,children:[n,c]}),e[11]=s,e[12]=n,e[13]=c,e[14]=d):d=e[14];let p;return e[15]!==l||e[16]!==d?(p=o.jsx(l,{children:d}),e[15]=l,e[16]=d,e[17]=p):p=e[17],p}function P(m){const{label:e,Icon:a,variant:r}=m;return o.jsxs(y,{children:[o.jsx(j,{asChild:!0,children:o.jsx(x,{asChild:!0,variant:r,className:"size-6 p-1",children:o.jsx(a,{})})}),o.jsx(g,{children:e})]},e)}export{M as T,K as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,j as c,a6 as H,bd as Z,bc as ee,da as te,bq as $,db as oe,a7 as b,bf as G,dc as re,dd as V,de as ne,df as se,af as ae,dg as ie,dh as le,e as _,c as ce}from"./index-
|
|
1
|
+
import{r as a,j as c,a6 as H,bd as Z,bc as ee,da as te,bq as $,db as oe,a7 as b,bf as G,dc as re,dd as V,de as ne,df as se,af as ae,dg as ie,dh as le,e as _,c as ce}from"./index-CP71kWj4.js";var ue=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),de="VisuallyHidden",z=a.forwardRef((o,e)=>c.jsx(H.span,{...o,ref:e,style:{...ue,...o.style}}));z.displayName=de;var pe=z,[O]=ae("Tooltip",[V]),D=V(),B="TooltipProvider",fe=700,A="tooltip.open",[ve,k]=O(B),F=o=>{const{__scopeTooltip:e,delayDuration:t=fe,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,i=a.useRef(!0),d=a.useRef(!1),l=a.useRef(0);return a.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),c.jsx(ve,{scope:e,isOpenDelayedRef:i,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=B;var R="Tooltip",[he,j]=O(R),Y=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:i,delayDuration:d}=o,l=k(R,o.__scopeTooltip),p=D(e),[u,v]=a.useState(null),h=Z(),f=a.useRef(0),x=i??l.disableHoverableContent,m=d??l.delayDuration,g=a.useRef(!1),[y,T]=ee({prop:r,defaultProp:n??!1,onChange:S=>{S?(l.onOpen(),document.dispatchEvent(new CustomEvent(A))):l.onClose(),s?.(S)},caller:R}),w=a.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,T(!0)},[T]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,T(!1)},[T]),N=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,T(!0),f.current=0},m)},[m,T]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(te,{...p,children:c.jsx(he,{scope:e,contentId:h,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{l.isOpenDelayedRef.current?N():E()},[l.isOpenDelayedRef,N,E]),onTriggerLeave:a.useCallback(()=>{x?P():(window.clearTimeout(f.current),f.current=0)},[P,x]),onOpen:E,onClose:P,disableHoverableContent:x,children:t})})};Y.displayName=R;var M="TooltipTrigger",q=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=j(M,t),s=k(M,t),i=D(t),d=a.useRef(null),l=$(e,d,n.onTriggerChange),p=a.useRef(!1),u=a.useRef(!1),v=a.useCallback(()=>p.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(oe,{asChild:!0,...i,children:c.jsx(H.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:l,onPointerMove:b(o.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:b(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:b(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:b(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:b(o.onBlur,n.onClose),onClick:b(o.onClick,n.onClose)})})});q.displayName=M;var I="TooltipPortal",[xe,ge]=O(I,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=j(I,e);return c.jsx(xe,{scope:e,forceMount:t,children:c.jsx(G,{present:t||s.open,children:c.jsx(re,{asChild:!0,container:n,children:r})})})};U.displayName=I;var C="TooltipContent",W=a.forwardRef((o,e)=>{const t=ge(C,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,i=j(C,o.__scopeTooltip);return c.jsx(G,{present:r||i.open,children:i.disableHoverableContent?c.jsx(K,{side:n,...s,ref:e}):c.jsx(me,{side:n,...s,ref:e})})}),me=a.forwardRef((o,e)=>{const t=j(C,o.__scopeTooltip),r=k(C,o.__scopeTooltip),n=a.useRef(null),s=$(e,n),[i,d]=a.useState(null),{trigger:l,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,h=a.useCallback(()=>{d(null),v(!1)},[v]),f=a.useCallback((x,m)=>{const g=x.currentTarget,y={x:x.clientX,y:x.clientY},T=Ce(y,g.getBoundingClientRect()),w=we(y,T),E=Ee(m.getBoundingClientRect()),P=Re([...w,...E]);d(P),v(!0)},[v]);return a.useEffect(()=>()=>h(),[h]),a.useEffect(()=>{if(l&&u){const x=g=>f(g,u),m=g=>f(g,l);return l.addEventListener("pointerleave",x),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",x),u.removeEventListener("pointerleave",m)}}},[l,u,f,h]),a.useEffect(()=>{if(i){const x=m=>{const g=m.target,y={x:m.clientX,y:m.clientY},T=l?.contains(g)||u?.contains(g),w=!Pe(y,i);T?h():w&&(h(),p())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,u,i,p,h]),c.jsx(K,{...o,ref:s})}),[Te,ye]=O(R,{isInside:!1}),be=ie("TooltipContent"),K=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:i,...d}=o,l=j(C,t),p=D(t),{onClose:u}=l;return a.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),a.useEffect(()=>{if(l.trigger){const v=h=>{h.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[l.trigger,u]),c.jsx(ne,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(se,{"data-state":l.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(be,{children:r}),c.jsx(Te,{scope:t,isInside:!0,children:c.jsx(pe,{id:l.contentId,role:"tooltip",children:n||r})})]})})});W.displayName=C;var X="TooltipArrow",J=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return ye(X,t).isInside?null:c.jsx(le,{...n,...r,ref:e})});J.displayName=X;function Ce(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function we(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function Ee(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function Pe(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const d=e[s],l=e[i],p=d.x,u=d.y,v=l.x,h=l.y;u>r!=h>r&&t<(v-p)*(r-u)/(h-u)+p&&(n=!n)}return n}function Re(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),_e(e)}function _e(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],i=e[e.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var je=F,Oe=Y,De=q,Le=U,Ae=W,Me=J;const Q=768,L=()=>globalThis.innerWidth<Q;function Ne(){const o=_.c(2),[e,t]=a.useState(L);let r,n;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{const s=()=>t(L),i=globalThis.matchMedia(`(max-width: ${Q-1}px)`);return i.addEventListener("change",s),t(L),()=>i.removeEventListener("change",s)},n=[],o[0]=r,o[1]=n):(r=o[0],n=o[1]),a.useEffect(r,n),e}function ke(o){const e=_.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(je,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Se(o){const e=_.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(ke,{children:c.jsx(Oe,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function He(o){const e=_.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(De,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function $e(o){const e=_.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const i=s===void 0?0:s;let d;e[5]!==r?(d=ce("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=c.jsx(Me,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=l):l=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==i||e[11]!==d?(p=c.jsx(Le,{children:c.jsxs(Ae,{"data-slot":"tooltip-content",sideOffset:i,className:d,...n,children:[t,l]})}),e[8]=t,e[9]=n,e[10]=i,e[11]=d,e[12]=p):p=e[12],p}export{He as T,ue as V,$e as a,Se as b,ke as c,Ne as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as F,n as ke,bA as qe,bB as Pe,s as be,bM as p,bi as t,aI as b,U as l,bN as P,R as s,aJ as g,aG as u,T as f,b6 as x,bO as B,bP as ye,bQ as ve,bR as V,bS as j,bT as xe,bU as we,bV as W,bW as Te,bX as Ie,bY as Ee,bZ as Le,b_ as ze,b$ as De,c0 as Ne,c1 as Ue,c2 as Ae,c3 as Oe,c4 as $e,c5 as Be,c6 as je,c7 as Fe,c8 as Ve,c9 as We,ca as Ke,r as oe,t as Ze,c as se,j as v}from"./index-
|
|
1
|
+
import{e as F,n as ke,bA as qe,bB as Pe,s as be,bM as p,bi as t,aI as b,U as l,bN as P,R as s,aJ as g,aG as u,T as f,b6 as x,bO as B,bP as ye,bQ as ve,bR as V,bS as j,bT as xe,bU as we,bV as W,bW as Te,bX as Ie,bY as Ee,bZ as Le,b_ as ze,b$ as De,c0 as Ne,c1 as Ue,c2 as Ae,c3 as Oe,c4 as $e,c5 as Be,c6 as je,c7 as Fe,c8 as Ve,c9 as We,ca as Ke,r as oe,t as Ze,c as se,j as v}from"./index-CP71kWj4.js";import{K as re,P as Je}from"./constants-BV9onSoP.js";async function Re(n){if(!n.getServerCapabilities()?.resources)return{resources:[]};try{return await n.listResources()}catch(o){if(o instanceof qe&&o.code===Pe.MethodNotFound)return{resources:[]};throw o}}async function Qe(n,e){return await n.readResource({uri:e})}function Yt(n){const e=F.c(12);let o,i;e[0]!==n?({client:o,...i}=n,e[0]=n,e[1]=o,e[2]=i):(o=e[1],i=e[2]);let r;e[3]!==o?(r=re.mcpResourcesList(o),e[3]=o,e[4]=r):r=e[4];let a;e[5]!==o?(a=()=>Re(o),e[5]=o,e[6]=a):a=e[6];const c=i.staleTime??3e4;let d;return e[7]!==i||e[8]!==r||e[9]!==a||e[10]!==c?(d={...i,queryKey:r,queryFn:a,staleTime:c,retry:!1},e[7]=i,e[8]=r,e[9]=a,e[10]=c,e[11]=d):d=e[11],be(d)}function Gt(n){const e=F.c(12);let o,i;e[0]!==n?({client:o,...i}=n,e[0]=n,e[1]=o,e[2]=i):(o=e[1],i=e[2]);let r;e[3]!==o?(r=re.mcpResourcesList(o),e[3]=o,e[4]=r):r=e[4];let a;e[5]!==o?(a=()=>Re(o),e[5]=o,e[6]=a):a=e[6];const c=i.staleTime??3e4;let d;return e[7]!==i||e[8]!==r||e[9]!==a||e[10]!==c?(d={...i,queryKey:r,queryFn:a,staleTime:c,retry:!1},e[7]=i,e[8]=r,e[9]=a,e[10]=c,e[11]=d):d=e[11],ke(d)}function Ye(n){const e=F.c(15);let o,i,r;e[0]!==n?({client:o,uri:r,...i}=n,e[0]=n,e[1]=o,e[2]=i,e[3]=r):(o=e[1],i=e[2],r=e[3]);let a;e[4]!==o||e[5]!==r?(a=re.mcpReadResource(o,r),e[4]=o,e[5]=r,e[6]=a):a=e[6];let c;e[7]!==o||e[8]!==r?(c=()=>Qe(o,r),e[7]=o,e[8]=r,e[9]=c):c=e[9];const d=i.staleTime??3e4;let h;return e[10]!==i||e[11]!==a||e[12]!==c||e[13]!==d?(h={...i,queryKey:a,queryFn:c,staleTime:d,retry:!1},e[10]=i,e[11]=a,e[12]=c,e[13]=d,e[14]=h):h=e[14],be(h)}const de=["default-src 'none'","script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'","style-src 'unsafe-inline'","img-src * data: blob:","media-src * data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src blob:","form-action 'none'","base-uri 'none'"].join("; ");function Ge(n,e={}){const i=`<meta http-equiv="Content-Security-Policy" content="${et(e)}">`,r=/<head(\s[^>]*)?>|<HEAD(\s[^>]*)?>/i,a=n.match(r);if(a){const m=(a.index??0)+a[0].length;return n.slice(0,m)+`
|
|
2
2
|
`+i+n.slice(m)}const c=/<html(\s[^>]*)?>|<HTML(\s[^>]*)?>/i,d=n.match(c);if(d){const m=(d.index??0)+d[0].length;return n.slice(0,m)+`
|
|
3
3
|
<head>
|
|
4
4
|
`+i+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as g,q as f,s as _,K as m,n as I}from"./index-
|
|
1
|
+
import{e as g,q as f,s as _,K as m,n as I}from"./index-CP71kWj4.js";import{S,u as P}from"./constants-BV9onSoP.js";function A(t,e){return{queryKey:m.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>(await t.callTool({name:"AI_PROVIDER_KEY_LIST",arguments:{}})).structuredContent??null}}function q(){const t=g.c(10),{org:e}=f();let s;t[0]!==e.id||t[1]!==e.slug?(s={connectionId:S,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=s):s=t[2];const o=P(s);let i;t[3]!==e.id?(i=m.aiProviders(e.id),t[3]=e.id,t[4]=i):i=t[4];let l;t[5]!==o?(l=async()=>(await o.callTool({name:"AI_PROVIDERS_LIST",arguments:{}})).structuredContent,t[5]=o,t[6]=l):l=t[6];let n;t[7]!==i||t[8]!==l?(n={queryKey:i,staleTime:1/0,queryFn:l},t[7]=i,t[8]=l,t[9]=n):n=t[9];const{data:r}=_(n);return r}function v(){const t=g.c(8),{org:e}=f();let s;t[0]!==e.id||t[1]!==e.slug?(s={connectionId:S,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=s):s=t[2];const o=P(s);let i;t[3]!==o||t[4]!==e.id?(i=A(o,e.id),t[3]=o,t[4]=e.id,t[5]=i):i=t[5];const{data:l}=_(i);let n;return t[6]!==l?.keys?(n=l?.keys??[],t[6]=l?.keys,t[7]=n):n=t[7],n}function R(t){const e=g.c(18),{org:s}=f();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:S,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const i=P(o);let l;e[3]!==t||e[4]!==s.id?(l=m.aiProviderModels(s.id,t??""),e[3]=t,e[4]=s.id,e[5]=l):l=e[5];const n=!!t;let r;e[6]!==i||e[7]!==t?(r=async()=>(await i.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:t}})).structuredContent??null,e[6]=i,e[7]=t,e[8]=r):r=e[8];let u;e[9]!==l||e[10]!==n||e[11]!==r?(u={queryKey:l,enabled:n,staleTime:6e4,queryFn:r},e[9]=l,e[10]=n,e[11]=r,e[12]=u):u=e[12];const{data:c,isLoading:T}=I(u);let a;e[13]!==c?.models?(a=c?.models??[],e[13]=c?.models,e[14]=a):a=e[14];const y=!!t&&T;let d;return e[15]!==a||e[16]!==y?(d={models:a,isLoading:y},e[15]=a,e[16]=y,e[17]=d):d=e[17],d}function p(t){const e=g.c(14),{org:s}=f();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:S,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const i=P(o);let l;e[3]!==t||e[4]!==s.id?(l=m.aiProviderModels(s.id,t),e[3]=t,e[4]=s.id,e[5]=l):l=e[5];let n;e[6]!==i||e[7]!==t?(n=async()=>(await i.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:t}})).structuredContent??null,e[6]=i,e[7]=t,e[8]=n):n=e[8];let r;e[9]!==l||e[10]!==n?(r={queryKey:l,staleTime:6e4,queryFn:n},e[9]=l,e[10]=n,e[11]=r):r=e[11];const{data:u}=_(r);let c;return e[12]!==u?.models?(c=u?.models??[],e[12]=u?.models,e[13]=c):c=e[13],c}export{A as a,R as b,q as c,p as d,v as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as q,q as U,K as T,n as x,F as V,a as f,o as g}from"./index-
|
|
1
|
+
import{e as q,q as U,K as T,n as x,F as V,a as f,o as g}from"./index-CP71kWj4.js";import{S as D,u as G}from"./constants-BV9onSoP.js";function Y(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function st(t){const e=q.c(12),{org:s}=U(),o=t??D;let a;e[0]!==s.id||e[1]!==s.slug||e[2]!==o?(a={connectionId:o,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o,e[3]=a):a=e[3];const u=G(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let r;e[6]!==u?(r=async()=>{const d=await u.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(Y)},e[6]=u,e[7]=r):r=e[7];const l=!!t;let c;return e[8]!==n||e[9]!==r||e[10]!==l?(c={queryKey:n,queryFn:r,enabled:l,staleTime:3e4},e[8]=n,e[9]=r,e[10]=l,e[11]=c):c=e[11],x(c)}function nt(t){const e=q.c(12),{org:s}=U();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:D,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const a=G(o);let u;e[3]!==s.id||e[4]!==t?(u=T.automations(s.id,t),e[3]=s.id,e[4]=t,e[5]=u):u=e[5];let n;e[6]!==a||e[7]!==t?(n=async()=>{const l=t!=null?{virtual_mcp_id:t}:{},c=await a.callTool({name:"AUTOMATION_LIST",arguments:l});return(c.structuredContent??c).automations},e[6]=a,e[7]=t,e[8]=n):n=e[8];let r;return e[9]!==u||e[10]!==n?(r={queryKey:u,queryFn:n,staleTime:1e4},e[9]=u,e[10]=n,e[11]=r):r=e[11],x(r)}function ot(t){const e=q.c(13),{org:s}=U();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:D,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const a=G(o);let u;e[3]!==t||e[4]!==s.id?(u=T.automation(s.id,t),e[3]=t,e[4]=s.id,e[5]=u):u=e[5];let n;e[6]!==a||e[7]!==t?(n=async()=>{const c=await a.callTool({name:"AUTOMATION_GET",arguments:{id:t}});return(c.structuredContent??c).automation},e[6]=a,e[7]=t,e[8]=n):n=e[8];const r=!!t;let l;return e[9]!==u||e[10]!==n||e[11]!==r?(l={queryKey:u,queryFn:n,enabled:r,staleTime:1e4},e[9]=u,e[10]=n,e[11]=r,e[12]=l):l=e[12],x(l)}function it(t,e){const s=q.c(15),{org:o}=U();let a;s[0]!==o.id||s[1]!==o.slug?(a={connectionId:D,orgId:o.id,orgSlug:o.slug},s[0]=o.id,s[1]=o.slug,s[2]=a):a=s[2];const u=G(a);let n;s[3]!==t||s[4]!==o.id||s[5]!==e?(n=T.automationRunStats(o.id,t,JSON.stringify(e??{})),s[3]=t,s[4]=o.id,s[5]=e,s[6]=n):n=s[6];let r;s[7]!==t||s[8]!==u||s[9]!==e?(r=async()=>{const d=await u.callTool({name:"AUTOMATION_RUN_STATS",arguments:{automation_id:t,...e?.startDate?{startDate:e.startDate}:{},...e?.endDate?{endDate:e.endDate}:{}}});return d.structuredContent??d},s[7]=t,s[8]=u,s[9]=e,s[10]=r):r=s[10];const l=!!t;let c;return s[11]!==n||s[12]!==r||s[13]!==l?(c={queryKey:n,queryFn:r,enabled:l,staleTime:3e4},s[11]=n,s[12]=r,s[13]=l,s[14]=c):c=s[14],x(c)}function at(t){return{name:"New Automation",messages:[],models:{tier:"smart"},temperature:.5,active:!0,virtual_mcp_id:t}}function rt(){const t=q.c(67),{org:e}=U();let s;t[0]!==e.id||t[1]!==e.slug?(s={connectionId:D,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=s):s=t[2];const o=G(s),a=V();let u;t[3]!==e.id||t[4]!==a?(u=()=>a.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[3]=e.id,t[4]=a,t[5]=u):u=t[5];const n=u;let r;t[6]!==e.id||t[7]!==a?(r=m=>a.invalidateQueries({queryKey:T.automation(e.id,m)}),t[6]=e.id,t[7]=a,t[8]=r):r=t[8];const l=r;let c;t[9]!==o?(c=async m=>{const i=await o.callTool({name:"AUTOMATION_CREATE",arguments:m});return i.structuredContent??i},t[9]=o,t[10]=c):c=t[10];let d;t[11]!==n?(d=()=>{n(),g.success("Automation created successfully")},t[11]=n,t[12]=d):d=t[12];let N;t[13]!==c||t[14]!==d?(N={mutationFn:c,onSuccess:d,onError:Z},t[13]=c,t[14]=d,t[15]=N):N=t[15];const k=f(N);let y;t[16]!==o?(y=async m=>{const i=await o.callTool({name:"AUTOMATION_UPDATE",arguments:m});return i.structuredContent??i},t[16]=o,t[17]=y):y=t[17];let _;t[18]!==n||t[19]!==l?(_=(m,i)=>{n(),typeof i.id=="string"&&l(i.id),g.success("Automation updated successfully")},t[18]=n,t[19]=l,t[20]=_):_=t[20];let $;t[21]!==y||t[22]!==_?($={mutationFn:y,onSuccess:_,onError:X},t[21]=y,t[22]=_,t[23]=$):$=t[23];const Q=f($);let A;t[24]!==o?(A=async m=>{const i=await o.callTool({name:"AUTOMATION_DELETE",arguments:{id:m}});return i.structuredContent??i},t[24]=o,t[25]=A):A=t[25];let p;t[26]!==n||t[27]!==e.id||t[28]!==a?(p=(m,i)=>{a.removeQueries({queryKey:T.automation(e.id,i)}),n(),g.success("Automation deleted successfully")},t[26]=n,t[27]=e.id,t[28]=a,t[29]=p):p=t[29];let K;t[30]!==p||t[31]!==A?(K={mutationFn:A,onSuccess:p,onError:W},t[30]=p,t[31]=A,t[32]=K):K=t[32];const j=f(K);let E;t[33]!==o?(E=async m=>{const i=await o.callTool({name:"AUTOMATION_TRIGGER_ADD",arguments:m});if(i.isError){const I=i.content?.[0]?.text??"Failed to add trigger";throw new Error(I)}return i.structuredContent??i},t[33]=o,t[34]=E):E=t[34];let S;t[35]!==n||t[36]!==l?(S=m=>{n(),l(m.automation_id)},t[35]=n,t[36]=l,t[37]=S):S=t[37];let w;t[38]!==E||t[39]!==S?(w={mutationFn:E,onSuccess:S},t[38]=E,t[39]=S,t[40]=w):w=t[40];const P=f(w);let O;t[41]!==o?(O=async m=>{const i=await o.callTool({name:"AUTOMATION_TRIGGER_ROTATE_TOKEN",arguments:{trigger_id:m.trigger_id}});if(i.isError){const I=i.content?.[0]?.text??"Failed to rotate token";throw new Error(I)}return i.structuredContent??i},t[41]=o,t[42]=O):O=t[42];let F;t[43]!==n||t[44]!==l?(F=(m,i)=>{n(),l(i.automation_id)},t[43]=n,t[44]=l,t[45]=F):F=t[45];let b;t[46]!==O||t[47]!==F?(b={mutationFn:O,onSuccess:F},t[46]=O,t[47]=F,t[48]=b):b=t[48];const v=f(b);let R;t[49]!==o?(R=async m=>{const i=await o.callTool({name:"AUTOMATION_TRIGGER_REMOVE",arguments:{trigger_id:m.trigger_id}});return i.structuredContent??i},t[49]=o,t[50]=R):R=t[50];let C;t[51]!==n||t[52]!==l?(C=(m,i)=>{n(),l(i.automation_id)},t[51]=n,t[52]=l,t[53]=C):C=t[53];let L;t[54]!==R||t[55]!==C?(L={mutationFn:R,onSuccess:C},t[54]=R,t[55]=C,t[56]=L):L=t[56];const z=f(L);let M;t[57]!==o?(M={mutationFn:async m=>{const i=await o.callTool({name:"AUTOMATION_RUN",arguments:{id:m}});if(i.isError){const I=i.content?.[0]?.text??"Failed to run automation";throw new Error(I)}return i.structuredContent??i},onSuccess:H,onError:B},t[57]=o,t[58]=M):M=t[58];const J=f(M);let h;return t[59]!==k||t[60]!==j||t[61]!==J||t[62]!==P||t[63]!==z||t[64]!==v||t[65]!==Q?(h={create:k,update:Q,remove:j,triggerAdd:P,triggerRemove:z,triggerRotateToken:v,run:J},t[59]=k,t[60]=j,t[61]=J,t[62]=P,t[63]=z,t[64]=v,t[65]=Q,t[66]=h):h=t[66],h}function B(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to run automation: ${e}`)}function H(t){t.skipped?g.info(`Automation skipped: ${t.skipped}`):t.error?g.error(`Automation failed: ${t.error}`):g.success("Automation triggered")}function W(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to delete automation: ${e}`)}function X(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to update automation: ${e}`)}function Z(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to create automation: ${e}`)}export{st as a,ot as b,nt as c,at as d,it as e,rt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as u,q as m,n as g,K as p}from"./index-
|
|
1
|
+
import{e as u,q as m,n as g,K as p}from"./index-CP71kWj4.js";const b=new Set(["owner","admin"]);function d(){const e=u.c(11),{org:r,locator:c}=m();let o;e[0]!==c?(o=p.myCapabilities(c),e[0]=c,e[1]=o):o=e[1];let a;e[2]!==r?(a=async()=>{const f=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(r.slug)}`,{credentials:"include"});if(!f.ok)throw new Error(`my-capabilities request failed: ${f.status}`);return await f.json()},e[2]=r,e[3]=a):a=e[3];let i;e[4]!==o||e[5]!==a?(i={queryKey:o,queryFn:a,staleTime:3e4,retry:2},e[4]=o,e[5]=a,e[6]=i):i=e[6];const{data:s,isLoading:l,isError:n}=g(i);let t;return e[7]!==s||e[8]!==n||e[9]!==l?(t={data:s,loading:l,error:n},e[7]=s,e[8]=n,e[9]=l,e[10]=t):t=e[10],t}function _(e){const r=u.c(8),{data:c,loading:o,error:a}=d();if(o){let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!0,error:!1,reason:"loading"},r[0]=t):t=r[0],t}if(a){let t;return r[1]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!0,reason:"error"},r[1]=t):t=r[1],t}const i=c?.role??null;if(!i){let t;return r[2]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!1,reason:"denied"},r[2]=t):t=r[2],t}if(i==="owner"){let t;return r[3]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"owner"},r[3]=t):t=r[3],t}if(i==="admin"){let t;return r[4]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"admin"},r[4]=t):t=r[4],t}const s=c?.capabilities?.[e]===!0,l=s?"role":"denied";let n;return r[5]!==s||r[6]!==l?(n={granted:s,loading:!1,error:!1,reason:l},r[5]=s,r[6]=l,r[7]=n):n=r[7],n}function S(){const e=u.c(10),{data:r,loading:c,error:o}=d(),a=r?.role??void 0;let i;e[0]!==a?(i=a?b.has(a):!1,e[0]=a,e[1]=i):i=e[1];const s=i;let l;e[2]!==r?.capabilities?(l=r?.capabilities??{},e[2]=r?.capabilities,e[3]=l):l=e[3];const n=l;let t;return e[4]!==o||e[5]!==s||e[6]!==c||e[7]!==a||e[8]!==n?(t={capabilities:n,loading:c,error:o,isPrivileged:s,roleSlug:a},e[4]=o,e[5]=s,e[6]=c,e[7]=a,e[8]=n,e[9]=t):t=e[9],t}export{S as a,_ as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as v,F as b,a as A,s as x,o as _}from"./index-
|
|
1
|
+
import{e as v,F as b,a as A,s as x,o as _}from"./index-CP71kWj4.js";import{K as q}from"./constants-BV9onSoP.js";function K(e,s,n){const t=[];if(e?.trim()){const o=e.trim(),r=n.map(a=>({field:[String(a)],operator:"contains",value:o}));r.length===1&&r[0]?t.push(r[0]):r.length>1&&t.push({operator:"or",conditions:r})}if(s&&s.length>0)for(const o of s)t.push({field:[o.column],operator:"eq",value:o.value});if(t.length!==0)return t.length===1?t[0]:{operator:"and",conditions:t}}function Q(e,s,n){const t=e??n,o=s??"desc";return[{field:[String(t)],direction:o}]}function O(e){if(!e||typeof e!="object")throw new Error("Invalid result");if("isError"in e&&e.isError)throw new Error("content"in e&&Array.isArray(e.content)&&e.content[0]?.type==="text"?e.content[0].text:"Unknown error");if("structuredContent"in e)return e.structuredContent;throw new Error("No structured content found")}function k(e,s,n,t){const o=s.toUpperCase(),r=`COLLECTION_${o}_GET`;return{queryKey:q.collectionItem(t,e,"",o,n??""),queryFn:async()=>{if(!n)return{item:null};const a=await t.callTool({name:r,arguments:{id:n}});return O(a)},staleTime:6e4}}function z(e,s,n,t){const o=v.c(5);let r;o[0]!==t||o[1]!==s||o[2]!==n||o[3]!==e?(r=k(e,s,n,t),o[0]=t,o[1]=s,o[2]=n,o[3]=e,o[4]=r):r=o[4];const{data:a}=x(r);return a?.item??null}const D={structuredContent:{items:[]},isError:!1};function G(e,s,n,t={}){const{searchTerm:o,filters:r,sortKey:a,sortDirection:L,searchFields:S=["title","description"],defaultSortKey:h="updated_at",pageSize:g=100,additionalToolArgs:c}=t,l=s.toUpperCase(),f=`COLLECTION_${l}_LIST`,p=K(o,r,S),T=Q(a,L,h),u={...p&&{where:p},...T&&{orderBy:T},limit:g,offset:0,...c},m=JSON.stringify(u),C=q.collectionList(n,e,"",l,m),{data:w}=x({queryKey:C,queryFn:async()=>n?await n.callTool({name:f,arguments:u}):D,staleTime:3e4,retry:!1,select:d=>O(d??{})?.items??[]});return w}function J(e,s,n){const t=v.c(34),o=b();let r;t[0]!==s?(r=s.toUpperCase(),t[0]=s,t[1]=r):r=t[1];const a=r,L=`COLLECTION_${a}_CREATE`,S=`COLLECTION_${a}_UPDATE`,h=`COLLECTION_${a}_DELETE`;let g;t[2]!==o||t[3]!==e||t[4]!==a?(g=()=>{o.invalidateQueries({predicate:E=>{const i=E.queryKey;return i[1]===e&&i[3]==="collection"&&i[4]===a}})},t[2]=o,t[3]=e,t[4]=a,t[5]=g):g=t[5];const c=g;let l;t[6]!==n||t[7]!==L?(l=async E=>{const i=await n.callTool({name:L,arguments:{data:E}});if(i.isError)throw new Error(Array.isArray(i.content)?i.content[0]?.text:String(i.content));return O(i).item},t[6]=n,t[7]=L,t[8]=l):l=t[8];let f;t[9]!==c?(f=()=>{c(),_.success("Item created successfully")},t[9]=c,t[10]=f):f=t[10];let p;t[11]!==l||t[12]!==f?(p={mutationFn:l,onSuccess:f,onError:B},t[11]=l,t[12]=f,t[13]=p):p=t[13];const T=A(p);let u;t[14]!==n||t[15]!==S?(u=async E=>{const{id:i,data:$}=E,U=await n.callTool({name:S,arguments:{id:i,data:$}});return O(U).item},t[14]=n,t[15]=S,t[16]=u):u=t[16];let m;t[17]!==c?(m=()=>{c(),_.success("Item updated successfully")},t[17]=c,t[18]=m):m=t[18];let C;t[19]!==u||t[20]!==m?(C={mutationFn:u,onSuccess:m,onError:R},t[19]=u,t[20]=m,t[21]=C):C=t[21];const w=A(C);let d;t[22]!==n||t[23]!==h?(d=async E=>{const i=await n.callTool({name:h,arguments:{id:E}});return O(i).item.id},t[22]=n,t[23]=h,t[24]=d):d=t[24];let y;t[25]!==c?(y=()=>{c(),_.success("Item deleted successfully")},t[25]=c,t[26]=y):y=t[26];let N;t[27]!==d||t[28]!==y?(N={mutationFn:d,onSuccess:y,onError:P},t[27]=d,t[28]=y,t[29]=N):N=t[29];const F=A(N);let I;return t[30]!==T||t[31]!==F||t[32]!==w?(I={create:T,update:w,delete:F},t[30]=T,t[31]=F,t[32]=w,t[33]=I):I=t[33],I}function P(e){const s=e instanceof Error?e.message:String(e);_.error(`Failed to delete item: ${s}`)}function R(e){const s=e instanceof Error?e.message:String(e);_.error(`Failed to update item: ${s}`)}function B(e){const s=e instanceof Error?e.message:String(e);_.error(`Failed to create item: ${s}`)}export{J as a,G as b,k as c,z as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as f,q as C}from"./index-
|
|
1
|
+
import{e as f,q as C}from"./index-CP71kWj4.js";import{u as N,b as O,a as S}from"./use-collections-Dgz6VntH.js";import{S as I,u as m}from"./constants-BV9onSoP.js";function E(t){const o=f.c(20);let i;o[0]!==t?(i=t===void 0?{}:t,o[0]=t,o[1]=i):i=o[1];const n=i;let l,s,c,d;o[2]!==n?({binding:l,includeVirtual:c,slug:d,...s}=n,o[2]=n,o[3]=l,o[4]=s,o[5]=c,o[6]=d):(l=o[3],s=o[4],c=o[5],d=o[6]);let e;o[7]!==l||o[8]!==s.additionalToolArgs||o[9]!==c||o[10]!==d?(e={...s.additionalToolArgs},l!==void 0&&(e.binding=l),c!==void 0&&(e.include_virtual=c),d!==void 0&&(e.slug=d),o[7]=l,o[8]=s.additionalToolArgs,o[9]=c,o[10]=d,o[11]=e):e=o[11];let r;o[12]!==e?(r=Object.keys(e).length>0?e:void 0,o[12]=e,o[13]=r):r=o[13];let g;o[14]!==s||o[15]!==r?(g={...s,additionalToolArgs:r},o[14]=s,o[15]=r,o[16]=g):g=o[16];const p=g,{org:u}=C();let a;o[17]!==u.id||o[18]!==u.slug?(a={connectionId:I,orgId:u.id,orgSlug:u.slug},o[17]=u.id,o[18]=u.slug,o[19]=a):a=o[19];const A=m(a);return O(u.id,"CONNECTIONS",A,p)}function _(t){const o=f.c(3),{org:i}=C();let n;o[0]!==i.id||o[1]!==i.slug?(n={connectionId:I,orgId:i.id,orgSlug:i.slug},o[0]=i.id,o[1]=i.slug,o[2]=n):n=o[2];const l=m(n);return N(i.id,"CONNECTIONS",t,l)}function x(){const t=f.c(3),{org:o}=C();let i;t[0]!==o.id||t[1]!==o.slug?(i={connectionId:I,orgId:o.id,orgSlug:o.slug},t[0]=o.id,t[1]=o.slug,t[2]=i):i=t[2];const n=m(i);return S(o.id,"CONNECTIONS",n)}export{_ as a,x as b,E as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c,r as n}from"./index-
|
|
1
|
+
import{e as c,r as n}from"./index-CP71kWj4.js";function p(){const e=c.c(3),[s,a]=n.useState(!1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=async i=>{await navigator.clipboard.writeText(i),a(!0),setTimeout(()=>a(!1),2e3)},e[0]=t):t=e[0];const r=t;let o;return e[1]!==s?(o={handleCopy:r,copied:s},e[1]=s,e[2]=o):o=e[2],o}export{p as u};
|
package/dist/client/assets/{use-create-virtual-mcp-Cf_tJTHh.js → use-create-virtual-mcp-cZ5uS-7z.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as g}from"./index-
|
|
1
|
+
import{e as g}from"./index-CP71kWj4.js";import{b as f}from"./use-virtual-mcp-B1jlipb2.js";import{k as p}from"./use-navigate-to-agent-xxRVjAwY.js";function A(i){const e=g.c(9);let n;e[0]!==i?(n=i===void 0?{}:i,e[0]=i,e[1]=n):n=e[1];const d=n,{navigateOnCreate:u}=d,r=u===void 0?!1:u,t=f(),c=p();let s;e[2]!==t.create||e[3]!==r||e[4]!==c?(s=async()=>{const l=await t.create.mutateAsync({title:"New Agent",description:"AI-driven assistant designed to handle specific tasks",status:"active",connections:[],pinned:!1});return r&&c(l.id,{search:{main:"instructions"}}),{id:l.id,virtualMcp:l}},e[2]=t.create,e[3]=r,e[4]=c,e[5]=s):s=e[5];const o=s;let a;return e[6]!==t.create.isPending||e[7]!==o?(a={createVirtualMCP:o,isCreating:t.create.isPending},e[6]=t.create.isPending,e[7]=o,e[8]=a):a=e[8],a}export{A as u};
|
package/dist/client/assets/{use-debounced-autosave-CkBn5Xwg.js → use-debounced-autosave-B9OhnW_u.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u}from"./index-
|
|
1
|
+
import{r as u}from"./index-CP71kWj4.js";function l({save:t,delayMs:n=1e3}){const e=u.useRef(t);e.current=t;const r=u.useRef(null),c=()=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{r.current=null,e.current()},n)},o=()=>(r.current&&(clearTimeout(r.current),r.current=null),e.current());return u.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null,e.current())},[]),{schedule:c,flush:o}}export{l as u};
|
package/dist/client/assets/{use-delete-connection-Dqd8Xa7q.js → use-delete-connection-CMNjpQhX.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as R,j as n,q as H,F as J,r as K,o as S}from"./index-
|
|
1
|
+
import{e as R,j as n,q as H,F as J,r as K,o as S}from"./index-CP71kWj4.js";import{c as w,b as L,d as $,f as k,e as q,g as M,a as P,A as U}from"./alert-dialog-DpFXZE53.js";import{u as z,S as B}from"./constants-BV9onSoP.js";function X(j){const e=R.c(41),{deleteState:r,cancelDelete:i,confirmDelete:a,confirmForceDelete:l}=j,y=r.mode==="deleting";let d;e[0]!==i?(d=I=>{I||i()},e[0]=i,e[1]=d):d=e[1];let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx(w,{children:"Delete Connection?"}),e[2]=N):N=e[2];const T=r.mode==="deleting"&&r.connection.title;let m;e[3]!==T?(m=n.jsxs(L,{children:[N,n.jsxs($,{children:["This action cannot be undone. This will permanently delete"," ",n.jsx("span",{className:"font-medium text-foreground",children:T}),"."]})]}),e[3]=T,e[4]=m):m=e[4];let E;e[5]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx(k,{children:"Cancel"}),e[5]=E):E=e[5];let o;e[6]!==a?(o=n.jsxs(q,{children:[E,n.jsx(M,{onClick:a,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[6]=a,e[7]=o):o=e[7];let t;e[8]!==m||e[9]!==o?(t=n.jsxs(P,{children:[m,o]}),e[8]=m,e[9]=o,e[10]=t):t=e[10];let s;e[11]!==y||e[12]!==d||e[13]!==t?(s=n.jsx(U,{open:y,onOpenChange:d,children:t}),e[11]=y,e[12]=d,e[13]=t,e[14]=s):s=e[14];const _=r.mode==="force-deleting";let c;e[15]!==i?(c=I=>{I||i()},e[15]=i,e[16]=c):c=e[16];let f;e[17]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(w,{children:"Connection Used by Agents"}),e[17]=f):f=e[17];const v=r.mode==="force-deleting"&&r.connection.title;let u;e[18]!==v?(u=n.jsx("span",{className:"font-medium text-foreground",children:v}),e[18]=v,e[19]=u):u=e[19];const F=r.mode==="force-deleting"&&r.agentNames;let g;e[20]!==F?(g=n.jsx("span",{className:"font-medium text-foreground",children:F}),e[20]=F,e[21]=g):g=e[21];let h;e[22]!==u||e[23]!==g?(h=n.jsxs("p",{children:["The connection"," ",u," ","is currently used by the following agent(s):"," ",g,"."]}),e[22]=u,e[23]=g,e[24]=h):h=e[24];let A;e[25]===Symbol.for("react.memo_cache_sentinel")?(A=n.jsx("p",{className:"mt-2",children:"Deleting this connection will remove it from those agents, which may impact existing workflows that depend on them."}),e[25]=A):A=e[25];let x;e[26]!==h?(x=n.jsxs(L,{children:[f,n.jsx($,{asChild:!0,children:n.jsxs("div",{children:[h,A]})})]}),e[26]=h,e[27]=x):x=e[27];let O;e[28]===Symbol.for("react.memo_cache_sentinel")?(O=n.jsx(k,{children:"Cancel"}),e[28]=O):O=e[28];let C;e[29]!==l?(C=n.jsxs(q,{children:[O,n.jsx(M,{onClick:l,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete Anyway"})]}),e[29]=l,e[30]=C):C=e[30];let D;e[31]!==x||e[32]!==C?(D=n.jsxs(P,{children:[x,C]}),e[31]=x,e[32]=C,e[33]=D):D=e[33];let p;e[34]!==_||e[35]!==c||e[36]!==D?(p=n.jsx(U,{open:_,onOpenChange:c,children:D}),e[34]=_,e[35]=c,e[36]=D,e[37]=p):p=e[37];let b;return e[38]!==p||e[39]!==s?(b=n.jsxs(n.Fragment,{children:[s,p]}),e[38]=p,e[39]=s,e[40]=b):b=e[40],b}function Q(j){const e=j.content;return Array.isArray(e)&&e[0]?.type==="text"&&typeof e[0].text=="string"?e[0].text:"Unknown error"}function Y({onSuccess:j}={}){const{org:e}=H(),r=J(),i=z({connectionId:B,orgId:e.id,orgSlug:e.slug}),[a,l]=K.useState({mode:"idle"}),y=()=>{r.invalidateQueries({predicate:o=>{const t=o.queryKey;return t[1]===e.id&&t[3]==="collection"&&t[4]==="CONNECTIONS"}})},d=()=>{y(),S.success("Connection deleted successfully"),l({mode:"idle"}),j?.()};return{deleteState:a,requestDelete:o=>{l({mode:"deleting",connection:o})},cancelDelete:()=>{l({mode:"idle"})},confirmDelete:async()=>{if(a.mode!=="deleting")return;const o=a.connection;l({mode:"idle"});try{const t=await i.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:o.id}});if(t.isError){const s=Q(t),_=s.replace(/^Error:\s*/,"");try{const c=JSON.parse(_);if(c.code==="CONNECTION_IN_USE"&&c.agentNames){l({mode:"force-deleting",connection:o,agentNames:c.agentNames.map(f=>`"${f}"`).join(", ")});return}}catch{}S.error(`Failed to delete connection: ${s}`);return}d()}catch(t){const s=t instanceof Error?t.message:String(t);S.error(`Failed to delete connection: ${s}`)}},confirmForceDelete:async()=>{if(a.mode!=="force-deleting")return;const o=a.connection.id;l({mode:"idle"});try{const t=await i.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:o,force:!0}});if(t.isError){S.error(`Failed to delete connection: ${Q(t)}`);return}d()}catch(t){const s=t instanceof Error?t.message:String(t);S.error(`Failed to delete connection: ${s}`)}}}}export{X as D,Y as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c,q as a,K as g,s as F,n as S,F as y,a as I}from"./index-
|
|
1
|
+
import{e as c,q as a,K as g,s as F,n as S,F as y,a as I}from"./index-CP71kWj4.js";import{S as f,u as d}from"./constants-BV9onSoP.js";import{u as C}from"./unwrap-tool-result-BYXdCQMg.js";function q(){const e=c.c(10),{org:t}=a();let l;e[0]!==t.id||e[1]!==t.slug?(l={connectionId:f,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=l):l=e[2];const o=d(l);let n;e[3]!==t.id?(n=g.fileConfigs(t.id),e[3]=t.id,e[4]=n):n=e[4];let s;e[5]!==o?(s=async()=>{const r=await o.callTool({name:"FILE_CONFIG_LIST",arguments:{}});return C(r)},e[5]=o,e[6]=s):s=e[6];let i;e[7]!==n||e[8]!==s?(i={queryKey:n,staleTime:6e4,queryFn:s},e[7]=n,e[8]=s,e[9]=i):i=e[9];const{data:u}=F(i);return u.configs}function L(){const e=c.c(10),{org:t}=a();let l;e[0]!==t.id||e[1]!==t.slug?(l={connectionId:f,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=l):l=e[2];const o=d(l);let n;e[3]!==t.id?(n=g.fileConfigs(t.id),e[3]=t.id,e[4]=n):n=e[4];let s;e[5]!==o?(s=async()=>{const u=await o.callTool({name:"FILE_CONFIG_LIST",arguments:{}});return C(u)},e[5]=o,e[6]=s):s=e[6];let i;return e[7]!==n||e[8]!==s?(i={queryKey:n,staleTime:6e4,queryFn:s},e[7]=n,e[8]=s,e[9]=i):i=e[9],S(i)}function p(){const e=c.c(11),{org:t}=a();let l;e[0]!==t.id||e[1]!==t.slug?(l={connectionId:f,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=l):l=e[2];const o=d(l),n=y();let s;e[3]!==o?(s=async r=>{const m=await o.callTool({name:"FILE_CONFIG_CREATE",arguments:{...r}});return C(m)},e[3]=o,e[4]=s):s=e[4];let i;e[5]!==t.id||e[6]!==n?(i=()=>{n.invalidateQueries({queryKey:g.fileConfigs(t.id)})},e[5]=t.id,e[6]=n,e[7]=i):i=e[7];let u;return e[8]!==s||e[9]!==i?(u={mutationFn:s,onSuccess:i},e[8]=s,e[9]=i,e[10]=u):u=e[10],I(u)}function K(){const e=c.c(11),{org:t}=a();let l;e[0]!==t.id||e[1]!==t.slug?(l={connectionId:f,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=l):l=e[2];const o=d(l),n=y();let s;e[3]!==o?(s=async r=>{const m=await o.callTool({name:"FILE_CONFIG_DELETE",arguments:{id:r}});return C(m)},e[3]=o,e[4]=s):s=e[4];let i;e[5]!==t.id||e[6]!==n?(i=()=>{n.invalidateQueries({queryKey:g.fileConfigs(t.id)})},e[5]=t.id,e[6]=n,e[7]=i):i=e[7];let u;return e[8]!==s||e[9]!==i?(u={mutationFn:s,onSuccess:i},e[8]=s,e[9]=i,e[10]=u):u=e[10],I(u)}export{p as a,K as b,L as c,q as u};
|
package/dist/client/assets/{use-infinite-scroll-CcZDhELS.js → use-infinite-scroll-DpzG67_S.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./index-
|
|
1
|
+
import{r as e}from"./index-CP71kWj4.js";function v(n,u,c=!1,s){const r=e.useRef(null),o=e.useRef(null),f=e.useRef(n),i=e.useRef(u),R=e.useRef(c),l=e.useRef(s);f.current=n,i.current=u,R.current=c,l.current=s;const[p]=e.useState(()=>t=>{o.current=t,r.current&&(r.current.disconnect(),r.current=null),t&&queueMicrotask(()=>{if(o.current!==t)return;const a=new IntersectionObserver(x=>{x[0]?.isIntersecting&&i.current&&!R.current&&f.current()},{root:l.current?.current??null,rootMargin:"0px 0px 200px 0px"});a.observe(t),r.current=a})});return p}export{v as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u,e as w}from"./index-
|
|
1
|
+
import{r as u,e as w}from"./index-CP71kWj4.js";import{u as E}from"./use-view-mode-D5iAnvBO.js";function J(a){const e=`deco-filters-${a}`,[s,i]=u.useState(()=>{try{const t=globalThis.localStorage?.getItem(e);if(t)return JSON.parse(t)}catch(t){console.error("Failed to parse stored filters:",t)}return[]});return[s,t=>{i(t);try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch(l){console.error("Failed to save filters:",l)}}]}function N(a){const e=w.c(7),[s,i]=u.useState(a),[r,t]=u.useState(a?"desc":null);let l;e[0]!==r||e[1]!==s?(l=S=>{s!==S?(i(S),t("asc")):r==="asc"?t("desc"):r==="desc"&&(i(void 0),t(null))},e[0]=r,e[1]=s,e[2]=l):l=e[2];const d=l;let o;return e[3]!==d||e[4]!==r||e[5]!==s?(o={sortKey:s,sortDirection:r,handleSort:d},e[3]=d,e[4]=r,e[5]=s,e[6]=o):o=e[6],o}function W(a){const e=w.c(20),{namespace:s,resource:i,defaultSortKey:r,defaultViewMode:t}=a,l=r===void 0?"title":r,d=t===void 0?"table":t,[o,S]=u.useState(""),b=u.useDeferredValue(o),D=`${s}-${i}`,[p,F]=J(D),c=`mesh-${i}-filter-visible-${s}`;let g;e[0]!==c?(g=()=>globalThis.localStorage?.getItem(c)==="true",e[0]=c,e[1]=g):g=e[1];const[n,x]=u.useState(g);let h;e[2]!==c?(h=T=>{x(T),globalThis.localStorage?.setItem(c,String(T))},e[2]=c,e[3]=h):h=e[3];const f=h;let m;e[4]!==n||e[5]!==f?(m=()=>{f(!n)},e[4]=n,e[5]=f,e[6]=m):m=e[6];const V=m,[$,K]=E(`mesh-${i}-${s}`,d),{sortKey:I,sortDirection:v,handleSort:B}=N(l),M=I;let y;return e[7]!==n||e[8]!==p||e[9]!==B||e[10]!==o||e[11]!==b||e[12]!==f||e[13]!==F||e[14]!==K||e[15]!==v||e[16]!==M||e[17]!==V||e[18]!==$?(y={search:o,searchTerm:b,setSearch:S,filters:p,setFilters:F,filterBarVisible:n,setFilterBarVisible:f,toggleFilterBar:V,viewMode:$,setViewMode:K,sortKey:M,sortDirection:v,handleSort:B},e[7]=n,e[8]=p,e[9]=B,e[10]=o,e[11]=b,e[12]=f,e[13]=F,e[14]=K,e[15]=v,e[16]=M,e[17]=V,e[18]=$,e[19]=y):y=e[19],y}export{W as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as l,n as c,bA as m,bB as f,s as y}from"./index-
|
|
1
|
+
import{e as l,n as c,bA as m,bB as f,s as y}from"./index-CP71kWj4.js";import{K as n}from"./constants-BV9onSoP.js";async function u(r){if(!r.getServerCapabilities()?.prompts)return{prompts:[]};try{return await r.listPrompts()}catch(t){if(t instanceof m&&t.code===f.MethodNotFound)return{prompts:[]};throw t}}async function g(r,e,t){if(!r.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await r.getPrompt({name:e,arguments:t??{}})}function q(r){const e=l.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=()=>u(t),e[5]=t,e[6]=o):o=e[6];const p=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==i||e[9]!==o||e[10]!==p?(a={...s,queryKey:i,queryFn:o,staleTime:p,retry:!1},e[7]=s,e[8]=i,e[9]=o,e[10]=p,e[11]=a):a=e[11],y(a)}function d(r){const e=l.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=()=>u(t),e[5]=t,e[6]=o):o=e[6];const p=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==i||e[9]!==o||e[10]!==p?(a={...s,queryKey:i,queryFn:o,staleTime:p,retry:!1},e[7]=s,e[8]=i,e[9]=o,e[10]=p,e[11]=a):a=e[11],c(a)}export{d as a,g,u as l,q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as m,n as p,s as q,a as C}from"./index-
|
|
1
|
+
import{e as m,n as p,s as q,a as C}from"./index-CP71kWj4.js";import{K as T}from"./constants-BV9onSoP.js";function M(a){const e=m.c(12);let t,s;e[0]!==a?({client:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],q(n)}function O(a){const e=m.c(12);let t,s;e[0]!==a?({client:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],p(n)}function w(a){const e=m.c(21);let t,s,l,o;e[0]!==a?({client:t,toolName:o,toolArguments:l,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const f=JSON.stringify(l??{});u=q,i=s,n=T.mcpToolCall(t,o,f),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let r;e[12]!==t||e[13]!==l||e[14]!==o?(r=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=r):r=e[15];const y=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==r||e[19]!==y?(c={...i,queryKey:n,queryFn:r,staleTime:y,retry:!1},e[16]=i,e[17]=n,e[18]=r,e[19]=y,e[20]=c):c=e[20],u(c)}function F(a){const e=m.c(21);let t,s,l,o;e[0]!==a?({client:t,toolName:o,toolArguments:l,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const f=JSON.stringify(l??{});u=p,i=s,n=T.mcpToolCall(t,o,f),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let r;e[12]!==t||e[13]!==l||e[14]!==o?(r=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=r):r=e[15];const y=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==r||e[19]!==y?(c={...i,queryKey:n,queryFn:r,staleTime:y,retry:!1},e[16]=i,e[17]=n,e[18]=r,e[19]=y,e[20]=c):c=e[20],u(c)}function P(a){const e=m.c(8);let t,s;e[0]!==a?({client:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=async i=>await t.callTool(i),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o={...s,mutationFn:l},e[5]=s,e[6]=l,e[7]=o):o=e[7],C(o)}export{M as a,O as b,w as c,P as d,F as u};
|