decocms 3.19.0 → 3.19.1
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-C9JUOaws.js → AlertCircle-CfP2ydlK.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Bwml3dGS.js → ArrowUpRight-BG7K2o4g.js} +1 -1
- package/dist/client/assets/{Check-BzXu6vHH.js → Check-Rzhysg8v.js} +1 -1
- package/dist/client/assets/{CheckCircle-su5hrO_e.js → CheckCircle-ByVfCd_z.js} +1 -1
- package/dist/client/assets/{ChevronDown-gSUAfWPF.js → ChevronDown-DgAQraB9.js} +1 -1
- package/dist/client/assets/{ChevronLeft-BC97RjBw.js → ChevronLeft-hIkmA-06.js} +1 -1
- package/dist/client/assets/{ChevronRight-Dux_yLvn.js → ChevronRight-C-1GbVi6.js} +1 -1
- package/dist/client/assets/{ChevronUp-CXkCjKqv.js → ChevronUp-D95kdAWS.js} +1 -1
- package/dist/client/assets/{Container-C8k7lbOc.js → Container-EsK9R8Cs.js} +1 -1
- package/dist/client/assets/{DotsVertical-DWiLUYJO.js → DotsVertical--nxfulT_.js} +1 -1
- package/dist/client/assets/{Eye-t3eVRE3Z.js → Eye-0u1NnyPn.js} +1 -1
- package/dist/client/assets/{FilterLines-ViuS0lFk.js → FilterLines-lN6ZYEU6.js} +1 -1
- package/dist/client/assets/{Globe01-CGunhIwf.js → Globe01-CYJ5akFo.js} +1 -1
- package/dist/client/assets/{HardDrive-o3HFWQsW.js → HardDrive-Bi11tZlO.js} +1 -1
- package/dist/client/assets/{Key01-0fC_ABuU.js → Key01-ETI9VuA0.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BQa2hbfU.js → LayoutLeft-D5P3SyL5.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DJNc23XQ.js → LinkExternal01-CMTN51kD.js} +1 -1
- package/dist/client/assets/{Monitor01-CcSqah-8.js → Monitor01-B9COEs1V.js} +1 -1
- package/dist/client/assets/{Palette--LVgymSg.js → Palette-CvBtCHX7.js} +1 -1
- package/dist/client/assets/{Play-CQr-pCHq.js → Play-zcNTCzY3.js} +1 -1
- package/dist/client/assets/{Plus-ChMQCV7G.js → Plus-BVt3gf6N.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-zZXb1P-Q.js → RefreshCcw01-Do9uT8r5.js} +1 -1
- package/dist/client/assets/{SearchMd-CJ0Jit57.js → SearchMd-Ckbe6j0d.js} +1 -1
- package/dist/client/assets/{Settings02-CFBirb-e.js → Settings02-BFHOCA5h.js} +1 -1
- package/dist/client/assets/{Shield01-B_ZXCovS.js → Shield01-ebA_Mmqa.js} +1 -1
- package/dist/client/assets/{Star01-DulwnQz5.js → Star01-DinMZEQp.js} +1 -1
- package/dist/client/assets/{Stars01-DK-H1p4r.js → Stars01-cUHrtzm6.js} +1 -1
- package/dist/client/assets/{Stars02-CSACzL7s.js → Stars02-CovFPupV.js} +1 -1
- package/dist/client/assets/{Sun-DHva39hC.js → Sun-D5MzBxyK.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BS9t3x5X.js → SwitchHorizontal01-CLmvgZdy.js} +1 -1
- package/dist/client/assets/{Tool01-BYb7jCKW.js → Tool01-D6Ixmgxm.js} +1 -1
- package/dist/client/assets/{Trash01-2lr1rqF4.js → Trash01-C6sXu2xm.js} +1 -1
- package/dist/client/assets/{Upload01-CnNZE7vS.js → Upload01-DslYY_N3.js} +1 -1
- package/dist/client/assets/{User01-DHWmHQ_0.js → User01-9CJ-p7XF.js} +1 -1
- package/dist/client/assets/{Users01-DESgb7lR.js → Users01-Ds5_zubO.js} +1 -1
- package/dist/client/assets/{Users03-DAgMr0JB.js → Users03-C3j_vENk.js} +1 -1
- package/dist/client/assets/{X-DVQYurKS.js → X-Dzpu-bw3.js} +1 -1
- package/dist/client/assets/{XCircle-BpUDrc48.js → XCircle-gezQrKJB.js} +1 -1
- package/dist/client/assets/{XClose-k4rWIWqj.js → XClose-dfaecXcF.js} +1 -1
- package/dist/client/assets/{Zap-xRfMfbJi.js → Zap-ZCJiHFB8.js} +1 -1
- package/dist/client/assets/{ZapSquare-ByVLcFOX.js → ZapSquare-Doe97qp7.js} +1 -1
- package/dist/client/assets/{ZoomOut-Cdd0yeKI.js → ZoomOut-u9z9zRXH.js} +1 -1
- package/dist/client/assets/{access-gate-DTJClj21.js → access-gate-CLs4hv6_.js} +1 -1
- package/dist/client/assets/{accordion-B3Bzfajw.js → accordion-y8ERtqeD.js} +1 -1
- package/dist/client/assets/{add-section-modal-d9XGcP0j.js → add-section-modal-MSG0lE-F.js} +1 -1
- package/dist/client/assets/{agent-capabilities-whJi_sCV.js → agent-capabilities-C4HO1AsU.js} +1 -1
- package/dist/client/assets/{agent-icon-DZTkwV17.js → agent-icon-atw8dEpB.js} +1 -1
- package/dist/client/assets/{agent-icons-LbUbunjp.js → agent-icons-BO9U458u.js} +1 -1
- package/dist/client/assets/{agents-list-DoA-7u41.js → agents-list-BjNtpZI5.js} +1 -1
- package/dist/client/assets/{ai-providers-CqDb1dv1.js → ai-providers-DzY2b1ST.js} +1 -1
- package/dist/client/assets/{alert-dialog-B7PlUHLi.js → alert-dialog-BDuu9Vea.js} +1 -1
- package/dist/client/assets/{alert-NdmPVkDo.js → alert-f3LQH8ql.js} +1 -1
- package/dist/client/assets/app-editor-BOf1C0bR.js +1 -0
- package/dist/client/assets/{auth-catchall-Se5nODa8.js → auth-catchall-kvc8ufSV.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CgUVCCPU.js → auth-split-layout-CJrIhcxn.js} +1 -1
- package/dist/client/assets/{automation-list-row-D4davVZi.js → automation-list-row-DCGCyvJL.js} +1 -1
- package/dist/client/assets/{automation-runs-CoUo2_V3.js → automation-runs-BPWO4Oxo.js} +1 -1
- package/dist/client/assets/{automations-b04Bumqu.js → automations-BzMfwiu_.js} +1 -1
- package/dist/client/assets/{avatar-D-bsYnpv.js → avatar-DiepLBEZ.js} +1 -1
- package/dist/client/assets/{badge-CWGk7Ycm.js → badge-Cosh8Jv6.js} +1 -1
- package/dist/client/assets/{brand-context-BO0YtVFA.js → brand-context-fK95FTJj.js} +1 -1
- package/dist/client/assets/{buckets-Dp3kokGE.js → buckets-C3L_6HTA.js} +1 -1
- package/dist/client/assets/{calendar-CksgqwIl.js → calendar-D85iiJjZ.js} +1 -1
- package/dist/client/assets/{capability-load-error-BqbyZYLK.js → capability-load-error-h6odhJ2k.js} +1 -1
- package/dist/client/assets/{card-DasvMuJL.js → card-B2dT-2ts.js} +1 -1
- package/dist/client/assets/{chat-context-BlNQF_T0.js → chat-context-7nRfVaxU.js} +1 -1
- package/dist/client/assets/{checkbox-vGUQlpLL.js → checkbox-B2YbUc0m.js} +1 -1
- package/dist/client/assets/{cli-auth-success-4uhSq-mx.js → cli-auth-success-BLeVCI6_.js} +1 -1
- package/dist/client/assets/{collection-detail-DJiuBIZZ.js → collection-detail-CindHN_k.js} +1 -1
- package/dist/client/assets/{collection-display-button-FHTwkW_y.js → collection-display-button-COhijorf.js} +1 -1
- package/dist/client/assets/{collection-search-gn36IrpO.js → collection-search-C0bvNtM9.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DHtDjT8j.js → collection-table-wrapper-C_B1r31J.js} +1 -1
- package/dist/client/assets/{collection-tabs-0nhusZFu.js → collection-tabs-BN4In63u.js} +1 -1
- package/dist/client/assets/{collections-GjH2LHjQ.js → collections-BUCuRVxl.js} +1 -1
- package/dist/client/assets/{command-D5FlBd7Y.js → command-BjqkQYxa.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-CpUAKyx5.js → connect-desktop-dialog-Cd86_kfs.js} +1 -1
- package/dist/client/assets/{connection-card-DxwYIz34.js → connection-card-DEJjtCgn.js} +1 -1
- package/dist/client/assets/{connection-detail-C86-6HXx.js → connection-detail-ChUQp5-t.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Bt1ZEhr7.js → connection-form-helpers-B093QOVj.js} +1 -1
- package/dist/client/assets/{connections-DGIjm0jH.js → connections-DN6XHtGB.js} +1 -1
- package/dist/client/assets/{constants-aPPN5V2v.js → constants-DDZG6Edw.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BBl5W0Tj.js → decopilot-sse-pool-DYhlxmFV.js} +1 -1
- package/dist/client/assets/{dialog-BaK82u87.js → dialog-CvJmXij7.js} +1 -1
- package/dist/client/assets/{domain-settings-CQKv-Kqx.js → domain-settings-BfbT9yk-.js} +1 -1
- package/dist/client/assets/{drawer-yHH46b03.js → drawer-Cm2a8ouX.js} +1 -1
- package/dist/client/assets/{dropdown-menu-yy90gDN6.js → dropdown-menu-jK5-EocK.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-D7ScdN9_.js → dynamic-plugin-layout-DLdasNw1.js} +1 -1
- package/dist/client/assets/{empty-state-D_pYKTU3.js → empty-state-BvMn8pb-.js} +1 -1
- package/dist/client/assets/{empty-state-CCnlZ7GR.js → empty-state-CZ6jnWLa.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DrKmmn44.js → extract-connection-data-uGXsWpo7.js} +1 -1
- package/dist/client/assets/{features-CVJmIvVE.js → features-Dr9Pp0WS.js} +1 -1
- package/dist/client/assets/{file-explorer-L9IT5bGn.js → file-explorer-VM_XUNbz.js} +1 -1
- package/dist/client/assets/{file-type-icon-DRsKIC8W.js → file-type-icon-B565DmsG.js} +1 -1
- package/dist/client/assets/{files-D9WTmMTJ.js → files-DDtaNJV8.js} +1 -1
- package/dist/client/assets/{form-BCl6OXal.js → form-DAahwl9B.js} +1 -1
- package/dist/client/assets/{general-CG0F0-d3.js → general-DwCAWtBz.js} +1 -1
- package/dist/client/assets/{generate-id-ZsC1RUWQ.js → generate-id-CnLzNGg6.js} +1 -1
- package/dist/client/assets/{github-repo-picker-7JPOKSQD.js → github-repo-picker-qDFzaGLa.js} +1 -1
- package/dist/client/assets/{header-tab-button-CVQ66rZ_.js → header-tab-button-sg2Bkh9m.js} +1 -1
- package/dist/client/assets/{hover-card-CI2MSKgY.js → hover-card-DyNloM84.js} +1 -1
- package/dist/client/assets/{image-field-BLhSRWcP.js → image-field-BaHZoCuZ.js} +1 -1
- package/dist/client/assets/{index-CB8LHcJp.js → index-3Euwx3bh.js} +1 -1
- package/dist/client/assets/{index-BfGDcalt.js → index-B2iHTL-o.js} +1 -1
- package/dist/client/assets/{index-DBGFIuGo.js → index-BDzZll30.js} +1 -1
- package/dist/client/assets/{index-BY17lxEN.js → index-BFIoANt_.js} +1 -1
- package/dist/client/assets/{index-DXeWwmWs.js → index-BlWGRwfE.js} +1 -1
- package/dist/client/assets/{index-DOnTzCnS.js → index-BloRy46B.js} +1 -1
- package/dist/client/assets/{index-CzawwGgQ.js → index-CEv88FJY.js} +1 -1
- package/dist/client/assets/{index-CY-PWor-.js → index-CPhDomOg.js} +1 -1
- package/dist/client/assets/{index-BdoaJBU6.js → index-CW47dQON.js} +1 -1
- package/dist/client/assets/{index-Ba4wmfJu.js → index-DU03U45c.js} +4 -4
- package/dist/client/assets/{index-DNcbds__.js → index-DaTDomcZ.js} +1 -1
- package/dist/client/assets/{index-CYwFOc5i.js → index-Dhy2A-ml.js} +1 -1
- package/dist/client/assets/{index-DtDRmG6f.js → index-Dw66yPMC.js} +1 -1
- package/dist/client/assets/{index-dqAJv28v.js → index-RoHcRkq0.js} +3 -3
- package/dist/client/assets/{index-CC0h9YYV.js → index-nS3rTKOQ.js} +1 -1
- package/dist/client/assets/{index-redirect-CxiTeeKU.js → index-redirect-DNU9Ckad.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-hiquHMTW.js → infiniteQueryObserver-GkUb2zKT.js} +1 -1
- package/dist/client/assets/{input-g57wjU1g.js → input-DsRHjNfg.js} +1 -1
- package/dist/client/assets/{integration-icon-DSGO08om.js → integration-icon-BOg4uSLi.js} +1 -1
- package/dist/client/assets/{label-CrKmXKNE.js → label-WCbT5R_C.js} +1 -1
- package/dist/client/assets/{layout-BjGH5djQ.js → layout-B9kVRgC4.js} +1 -1
- package/dist/client/assets/{login-BET22Z9E.js → login-B2dT1ex9.js} +1 -1
- package/dist/client/assets/{members-CilFq0xZ.js → members-CNZCKoI1.js} +1 -1
- package/dist/client/assets/{monaco-editor-C_Tuxk42.js → monaco-editor-BleU3J2F.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CwGawmh3.js → monitoring-stats-row-CwPKi62k.js} +1 -1
- package/dist/client/assets/{oauth-callback-BFT3R-DE.js → oauth-callback-D_06ga7T.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CVDBAD5Q.js → oauth-callback-ai-provider-kq_yOJkf.js} +1 -1
- package/dist/client/assets/{onboarding-BU6GSgPh.js → onboarding-CFkZhYek.js} +1 -1
- package/dist/client/assets/{org-install-BynTCjH8.js → org-install-BNh6vn9t.js} +1 -1
- package/dist/client/assets/{org-layout-0Bnw3P7M.js → org-layout-3aD45RuC.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-DESxR1Gw.js → org-plugin-layout-BZ9dFRVl.js} +1 -1
- package/dist/client/assets/{page-seo-form-C-Y9qnmJ.js → page-seo-form-CtJ-H1-o.js} +1 -1
- package/dist/client/assets/page-seo-sheet-EUvWIgmh.js +1 -0
- package/dist/client/assets/{pair-D_IL5sES.js → pair-DPmFvoFZ.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BZK_5PqX.js → plugin-empty-state-m3Z19NWv.js} +1 -1
- package/dist/client/assets/{plugin-header-D4JJ3voK.js → plugin-header-CeEbbzl3.js} +1 -1
- package/dist/client/assets/{plugin-layout-BEvF8eTd.js → plugin-layout-Bi-w5408.js} +1 -1
- package/dist/client/assets/{popover-BuOUBG75.js → popover-00xsE00R.js} +1 -1
- package/dist/client/assets/{post-editor-XJB6kteG.js → post-editor-DHpEWcQc.js} +1 -1
- package/dist/client/assets/{primitives-C2zoWyYP.js → primitives-DpFr-gq2.js} +1 -1
- package/dist/client/assets/{profile-2NnKuviS.js → profile-BJCcQ1KU.js} +1 -1
- package/dist/client/assets/project-app-view-I1ua83t6.js +1 -0
- package/dist/client/assets/record-editor-B1-ONBrf.js +1 -0
- package/dist/client/assets/registry-CbWwvuqp.js +2 -0
- package/dist/client/assets/{registry-layout-J64ZOI0c.js → registry-layout-DfY363OJ.js} +1 -1
- package/dist/client/assets/{require-capability-B0O8YByg.js → require-capability-USY4c6Pw.js} +1 -1
- package/dist/client/assets/{required-auth-layout-ALaJbpft.js → required-auth-layout-BTqABC6o.js} +1 -1
- package/dist/client/assets/{reset-password-DTdMT1S3.js → reset-password-DAzKe1m4.js} +1 -1
- package/dist/client/assets/{resizable-BRpTlH9y.js → resizable-tvU32_PL.js} +1 -1
- package/dist/client/assets/{roles-wPl7znmR.js → roles-B2-ESfgD.js} +1 -1
- package/dist/client/assets/{save-status-CwrNcAKP.js → save-status-c_gSkXRz.js} +1 -1
- package/dist/client/assets/{schema-form-SAecfN9n.js → schema-form-DC8-fGrX.js} +1 -1
- package/dist/client/assets/{scroll-area-C1sNHm-G.js → scroll-area-DjlF9Nhh.js} +1 -1
- package/dist/client/assets/{search-input-BEzOgxF0.js → search-input-BIE6clnk.js} +1 -1
- package/dist/client/assets/{secrets-Bq6E-0Vs.js → secrets-Dx_3aWOf.js} +1 -1
- package/dist/client/assets/{sections-editor-Dnk47pVw.js → sections-editor-S-fGjWCd.js} +1 -1
- package/dist/client/assets/{select-CQhrjrZt.js → select-DzGY5lz9.js} +1 -1
- package/dist/client/assets/{select-model-CSIR0Hwm.js → select-model-dzURvkLU.js} +1 -1
- package/dist/client/assets/{seo-editor-DVn-Y39X.js → seo-editor-II_27c8U.js} +1 -1
- package/dist/client/assets/{settings-layout-5f3-biog.js → settings-layout-B12mDVFK.js} +1 -1
- package/dist/client/assets/{settings-section-CBMqoVgr.js → settings-section-DWjadbjH.js} +1 -1
- package/dist/client/assets/{sheet-B0OtoK4g.js → sheet-D-hNRlw_.js} +1 -1
- package/dist/client/assets/{shell-controls-DUE8KDzr.js → shell-controls-BGifAFuQ.js} +1 -1
- package/dist/client/assets/{shell-layout-BS8PWBNQ.js → shell-layout-DSHLjHdv.js} +1 -1
- package/dist/client/assets/{shell-route-loading-CAZC-oZf.js → shell-route-loading-BMFmixVz.js} +1 -1
- package/dist/client/assets/{sidebar-DnNGfDVM.js → sidebar-3Sp07kli.js} +1 -1
- package/dist/client/assets/{skeleton-BPBohI57.js → skeleton-CQGVA-Lx.js} +1 -1
- package/dist/client/assets/{sortable.esm-Df68FLqK.js → sortable.esm-DR5iV7W2.js} +1 -1
- package/dist/client/assets/{spinner-DDyyMi0N.js → spinner-CCf2Lbex.js} +1 -1
- package/dist/client/assets/{sso-DUX6n79P.js → sso-qnvxODbb.js} +1 -1
- package/dist/client/assets/{store-BSrOWZ4e.js → store-DDT_HXod.js} +1 -1
- package/dist/client/assets/store-registry-IbxDOVas.js +2 -0
- package/dist/client/assets/{switch-C2Y2_mIK.js → switch-DhDeb5VA.js} +1 -1
- package/dist/client/assets/{tab-id-cQMLY4La.js → tab-id-BNsa7AXA.js} +1 -1
- package/dist/client/assets/{table-Cg0vEP92.js → table-BMoC5dcf.js} +1 -1
- package/dist/client/assets/{tabs-Dar7VVRd.js → tabs-DiVDzsDA.js} +1 -1
- package/dist/client/assets/{task-status-BsScVzYU.js → task-status-DJjK_vX7.js} +1 -1
- package/dist/client/assets/{textarea-Dzs-nEzu.js → textarea-Cq68Cg3C.js} +1 -1
- package/dist/client/assets/{toggle-group-DL2hp0iq.js → toggle-group-CVuIqYb9.js} +1 -1
- package/dist/client/assets/{toolbar-BQB5pnhm.js → toolbar-CKVgGEMh.js} +1 -1
- package/dist/client/assets/{tools-list-BhNnbGnJ.js → tools-list-6s8Pp55V.js} +1 -1
- package/dist/client/assets/{tooltip-CfoZeW67.js → tooltip-CLHWv9z-.js} +1 -1
- package/dist/client/assets/{types-CIsBAM3o.js → types-Cxg1qjf9.js} +1 -1
- package/dist/client/assets/{use-ai-providers-NRrrnA-J.js → use-ai-providers-BUmRVTXM.js} +1 -1
- package/dist/client/assets/{use-automations-CZ4zp1j0.js → use-automations-BQsS5jcL.js} +1 -1
- package/dist/client/assets/{use-capability-3k7bVAib.js → use-capability-DGItFWVB.js} +1 -1
- package/dist/client/assets/{use-collections-FLCwdNjq.js → use-collections-DxWiIX9G.js} +1 -1
- package/dist/client/assets/{use-connection-D4WzU3_k.js → use-connection-BKakpvkk.js} +1 -1
- package/dist/client/assets/{use-copy-_jmUyLpq.js → use-copy-N9gIT0E2.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-kb4Ir_gt.js → use-create-virtual-mcp-DilrGBsI.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-D_Bi08pd.js → use-debounced-autosave-B43AQzLm.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Cm2EMeto.js → use-delete-connection-Sa9GqDFj.js} +1 -1
- package/dist/client/assets/{use-file-configs-5dgjZn7I.js → use-file-configs-BSxIo3R0.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DcwUtmPt.js → use-infinite-scroll-DVN8HYM6.js} +1 -1
- package/dist/client/assets/{use-list-state-C3RCz8pU.js → use-list-state-VA1tpljN.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-G_HTyGOk.js → use-mcp-prompts-CY9OUQZa.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-hTkE2DEJ.js → use-mcp-tools-DXY52I1e.js} +1 -1
- package/dist/client/assets/{use-members-BY9KofTT.js → use-members-9msf87Qx.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BIKPoTyl.js → use-navigate-to-agent-B_6LJV9r.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CoWt-72u.js → use-org-auth-client-5h3UhfD-.js} +1 -1
- package/dist/client/assets/{use-org-sso-Cf6yzVx1.js → use-org-sso-BTJacuR9.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BE65evRw.js → use-organization-roles-D4RU1UCZ.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CNL9UOuT.js → use-organization-settings-DeuE04BS.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Dqnr-etF.js → use-registry-connections-BFubWEDK.js} +1 -1
- package/dist/client/assets/{use-secrets-BKTdpjyy.js → use-secrets-CEE2TPN5.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CX4o4GMh.js → use-status-sounds-CFOYqswl.js} +1 -1
- package/dist/client/assets/{use-view-mode-BOLJ4aWZ.js → use-view-mode-lzqGiNUo.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CAYghdFz.js → use-virtual-mcp-wf8itLFJ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-FaewV0Uc.js +1 -0
- package/dist/client/assets/{useRouterState-BGnrX-Hz.js → useRouterState-mAFXQkAT.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DzO-0tti.js +1 -0
- package/dist/client/assets/{user-34n2nz0Y.js → user-ujRRaChx.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CynTvZ42.js → view-mode-toggle-PpUBwSzB.js} +1 -1
- package/dist/client/assets/{workflow-BshAk9Kc.js → workflow-BQljQVTn.js} +1 -1
- package/dist/client/assets/workflow-detail-BK_EcA2N.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +135 -135
- package/dist/server/server.js +131 -131
- package/package.json +1 -1
- package/dist/client/assets/app-editor-BhC6jRVQ.js +0 -1
- package/dist/client/assets/page-seo-sheet-DQc1VDxv.js +0 -1
- package/dist/client/assets/project-app-view-hD9MKEk_.js +0 -1
- package/dist/client/assets/record-editor-uXAOUSNo.js +0 -1
- package/dist/client/assets/registry-B_rjHctM.js +0 -2
- package/dist/client/assets/store-registry-BSG42YQR.js +0 -2
- package/dist/client/assets/useInfiniteQuery-Cgk7GsZV.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CfQkrjpq.js +0 -1
- package/dist/client/assets/workflow-detail-DXNyWVQ8.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,j as c,a7 as H,bi as Z,bh as ee,dj as te,bx as $,dk as oe,a8 as b,bk as G,dl as re,dm as V,dn as ne,dp as se,ag as ae,dq as ie,dr as le,e as _,c as ce}from"./index-
|
|
1
|
+
import{r as a,j as c,a7 as H,bi as Z,bh as ee,dj as te,bx as $,dk as oe,a8 as b,bk as G,dl as re,dm as V,dn as ne,dp as se,ag as ae,dq as ie,dr as le,e as _,c as ce}from"./index-RoHcRkq0.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,M]=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=M(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 k="TooltipTrigger",q=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=j(k,t),s=M(k,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=k;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=M(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,ke=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 Me(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(Me,{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(ke,{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,Me as c,Ne as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bT as p,bp as t,aJ as y,W as a,bU as q,T as s,aK as f,aH as u,U as m,ba as x,bV as O,bW as fe,bX as ge,bY as $,bZ as j,b_ as be,b$ as ye,c0 as B,c1 as Se,c2 as _e,c3 as He,c4 as Me,c5 as ke,c6 as Pe,c7 as qe,c8 as Te,c9 as Ie,ca as Ee,cb as Le,cc as ze,cd as Ue,ce as Ae,cf as De,cg as Ne,ch as Oe,r as te,e as V,j as b,ci as je,cj as $e,t as Be,c as oe}from"./index-
|
|
1
|
+
import{bT as p,bp as t,aJ as y,W as a,bU as q,T as s,aK as f,aH as u,U as m,ba as x,bV as O,bW as fe,bX as ge,bY as $,bZ as j,b_ as be,b$ as ye,c0 as B,c1 as Se,c2 as _e,c3 as He,c4 as Me,c5 as ke,c6 as Pe,c7 as qe,c8 as Te,c9 as Ie,ca as Ee,cb as Le,cc as ze,cd as Ue,ce as Ae,cf as De,cg as Ne,ch as Oe,r as te,e as V,j as b,ci as je,cj as $e,t as Be,c as oe}from"./index-RoHcRkq0.js";import{P as Ve}from"./constants-DDZG6Edw.js";const le=["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 We(r,e={}){const i=`<meta http-equiv="Content-Security-Policy" content="${Ke(e)}">`,n=/<head(\s[^>]*)?>|<HEAD(\s[^>]*)?>/i,l=r.match(n);if(l){const g=(l.index??0)+l[0].length;return r.slice(0,g)+`
|
|
2
2
|
`+i+r.slice(g)}const c=/<html(\s[^>]*)?>|<HTML(\s[^>]*)?>/i,d=r.match(c);if(d){const g=(d.index??0)+d[0].length;return r.slice(0,g)+`
|
|
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-RoHcRkq0.js";import{S,u as P}from"./constants-DDZG6Edw.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,G as V,a as f,o as g}from"./index-
|
|
1
|
+
import{e as q,q as U,K as T,n as x,G as V,a as f,o as g}from"./index-RoHcRkq0.js";import{S as D,u as G}from"./constants-DDZG6Edw.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 R;t[43]!==n||t[44]!==l?(R=(m,i)=>{n(),l(i.automation_id)},t[43]=n,t[44]=l,t[45]=R):R=t[45];let b;t[46]!==O||t[47]!==R?(b={mutationFn:O,onSuccess:R},t[46]=O,t[47]=R,t[48]=b):b=t[48];const v=f(b);let C;t[49]!==o?(C=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]=C):C=t[50];let F;t[51]!==n||t[52]!==l?(F=(m,i)=>{n(),l(i.automation_id)},t[51]=n,t[52]=l,t[53]=F):F=t[53];let L;t[54]!==C||t[55]!==F?(L={mutationFn:C,onSuccess:F},t[54]=C,t[55]=F,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-RoHcRkq0.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,G as b,a as F,s as x,aO as q,o as _}from"./index-
|
|
1
|
+
import{e as v,G as b,a as F,s as x,aO as q,o as _}from"./index-RoHcRkq0.js";function Q(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 k(e,s,n){const t=e??n,o=s??"desc";return[{field:[String(t)],direction:o}]}function w(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 D(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 w(a)},staleTime:6e4}}function Y(e,s,n,t){const o=v.c(5);let r;o[0]!==t||o[1]!==s||o[2]!==n||o[3]!==e?(r=D(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 K={structuredContent:{items:[]},isError:!1};function j(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=Q(o,r,S),T=k(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:O}=x({queryKey:C,queryFn:async()=>n?await n.callTool({name:f,arguments:u}):K,staleTime:3e4,retry:!1,select:d=>w(d??{})?.items??[]});return O}function z(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 w(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=F(p);let u;t[14]!==n||t[15]!==S?(u=async E=>{const{id:i,data:A}=E,U=await n.callTool({name:S,arguments:{id:i,data:A}});return w(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 O=F(C);let d;t[22]!==n||t[23]!==h?(d=async E=>{const i=await n.callTool({name:h,arguments:{id:E}});return w(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(N);let I;return t[30]!==T||t[31]!==$||t[32]!==O?(I={create:T,update:O,delete:$},t[30]=T,t[31]=$,t[32]=O,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{z as a,j as b,D as c,Y as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as f,q as C}from"./index-
|
|
1
|
+
import{e as f,q as C}from"./index-RoHcRkq0.js";import{u as N,b as O,a as S}from"./use-collections-DxWiIX9G.js";import{S as I,u as m}from"./constants-DDZG6Edw.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-RoHcRkq0.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-kb4Ir_gt.js → use-create-virtual-mcp-DilrGBsI.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as g}from"./index-
|
|
1
|
+
import{e as g}from"./index-RoHcRkq0.js";import{b as f}from"./use-virtual-mcp-wf8itLFJ.js";import{k as p}from"./use-navigate-to-agent-B_6LJV9r.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-D_Bi08pd.js → use-debounced-autosave-B43AQzLm.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u}from"./index-
|
|
1
|
+
import{r as u}from"./index-RoHcRkq0.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-Cm2EMeto.js → use-delete-connection-Sa9GqDFj.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as H,j as n,q as P,G as Q,r as G,o as T,bl as J,bm as Y}from"./index-
|
|
1
|
+
import{e as H,j as n,q as P,G as Q,r as G,o as T,bl as J,bm as Y}from"./index-RoHcRkq0.js";import{c as w,b as L,d as q,f as R,e as U,g as $,a as k,A as K}from"./alert-dialog-BDuu9Vea.js";import{u as z,S as B}from"./constants-DDZG6Edw.js";function Z(E){const e=H.c(41),{deleteState:s,cancelDelete:i,confirmDelete:c,confirmForceDelete:r}=E,N=s.mode==="deleting";let a;e[0]!==i?(a=I=>{I||i()},e[0]=i,e[1]=a):a=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(w,{children:"Delete Connection?"}),e[2]=f):f=e[2];const A=s.mode==="deleting"&&s.connection.title;let u;e[3]!==A?(u=n.jsxs(L,{children:[f,n.jsxs(q,{children:["This action cannot be undone. This will permanently delete"," ",n.jsx("span",{className:"font-medium text-foreground",children:A}),"."]})]}),e[3]=A,e[4]=u):u=e[4];let _;e[5]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(R,{children:"Cancel"}),e[5]=_):_=e[5];let g;e[6]!==c?(g=n.jsxs(U,{children:[_,n.jsx($,{onClick:c,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[6]=c,e[7]=g):g=e[7];let o;e[8]!==u||e[9]!==g?(o=n.jsxs(k,{children:[u,g]}),e[8]=u,e[9]=g,e[10]=o):o=e[10];let t;e[11]!==N||e[12]!==a||e[13]!==o?(t=n.jsx(K,{open:N,onOpenChange:a,children:o}),e[11]=N,e[12]=a,e[13]=o,e[14]=t):t=e[14];const l=s.mode==="force-deleting";let d;e[15]!==i?(d=I=>{I||i()},e[15]=i,e[16]=d):d=e[16];let m;e[17]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx(w,{children:"Connection Used by Agents"}),e[17]=m):m=e[17];const S=s.mode==="force-deleting"&&s.connection.title;let h;e[18]!==S?(h=n.jsx("span",{className:"font-medium text-foreground",children:S}),e[18]=S,e[19]=h):h=e[19];const F=s.mode==="force-deleting"&&s.agentNames;let x;e[20]!==F?(x=n.jsx("span",{className:"font-medium text-foreground",children:F}),e[20]=F,e[21]=x):x=e[21];let C;e[22]!==h||e[23]!==x?(C=n.jsxs("p",{children:["The connection"," ",h," ","is currently used by the following agent(s):"," ",x,"."]}),e[22]=h,e[23]=x,e[24]=C):C=e[24];let O;e[25]===Symbol.for("react.memo_cache_sentinel")?(O=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]=O):O=e[25];let D;e[26]!==C?(D=n.jsxs(L,{children:[m,n.jsx(q,{asChild:!0,children:n.jsxs("div",{children:[C,O]})})]}),e[26]=C,e[27]=D):D=e[27];let b;e[28]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(R,{children:"Cancel"}),e[28]=b):b=e[28];let p;e[29]!==r?(p=n.jsxs(U,{children:[b,n.jsx($,{onClick:r,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete Anyway"})]}),e[29]=r,e[30]=p):p=e[30];let y;e[31]!==D||e[32]!==p?(y=n.jsxs(k,{children:[D,p]}),e[31]=D,e[32]=p,e[33]=y):y=e[33];let j;e[34]!==l||e[35]!==d||e[36]!==y?(j=n.jsx(K,{open:l,onOpenChange:d,children:y}),e[34]=l,e[35]=d,e[36]=y,e[37]=j):j=e[37];let v;return e[38]!==j||e[39]!==t?(v=n.jsxs(n.Fragment,{children:[t,j]}),e[38]=j,e[39]=t,e[40]=v):v=e[40],v}function M(E){const e=E.content;return Array.isArray(e)&&e[0]?.type==="text"&&typeof e[0].text=="string"?e[0].text:"Unknown error"}function ee({onSuccess:E}={}){const{org:e}=P(),s=Q(),i=z({connectionId:B,orgId:e.id,orgSlug:e.slug}),[c,r]=G.useState({mode:"idle"}),N=()=>{s.invalidateQueries({predicate:o=>{const t=o.queryKey;return t[1]===e.id&&t[3]==="collection"&&t[4]==="CONNECTIONS"}})},a=o=>{J(o),s.invalidateQueries({predicate:t=>t.queryKey[1]===Y&&t.queryKey[3]===o})},f=o=>{N(),a(o),T.success("Connection deleted successfully"),r({mode:"idle"}),E?.()};return{deleteState:c,requestDelete:o=>{r({mode:"deleting",connection:o})},cancelDelete:()=>{r({mode:"idle"})},confirmDelete:async()=>{if(c.mode!=="deleting")return;const o=c.connection;r({mode:"idle"});try{const t=await i.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:o.id}});if(t.isError){const l=M(t),d=l.replace(/^Error:\s*/,"");try{const m=JSON.parse(d);if(m.code==="CONNECTION_IN_USE"&&m.agentNames){r({mode:"force-deleting",connection:o,agentNames:m.agentNames.map(S=>`"${S}"`).join(", ")});return}}catch{}T.error(`Failed to delete connection: ${l}`);return}f(o.id)}catch(t){const l=t instanceof Error?t.message:String(t);T.error(`Failed to delete connection: ${l}`)}},confirmForceDelete:async()=>{if(c.mode!=="force-deleting")return;const o=c.connection.id;r({mode:"idle"});try{const t=await i.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:o,force:!0}});if(t.isError){T.error(`Failed to delete connection: ${M(t)}`);return}f(o)}catch(t){const l=t instanceof Error?t.message:String(t);T.error(`Failed to delete connection: ${l}`)}}}}export{Z as D,ee as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c,q as a,K as g,s as F,n as S,G as y,a as I}from"./index-
|
|
1
|
+
import{e as c,q as a,K as g,s as F,n as S,G as y,a as I}from"./index-RoHcRkq0.js";import{S as f,u as d}from"./constants-DDZG6Edw.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-DcwUtmPt.js → use-infinite-scroll-DVN8HYM6.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./index-
|
|
1
|
+
import{r as e}from"./index-RoHcRkq0.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-RoHcRkq0.js";import{u as E}from"./use-view-mode-lzqGiNUo.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,bH as m,bI as f,s as y,aO as n}from"./index-
|
|
1
|
+
import{e as l,n as c,bH as m,bI as f,s as y,aO as n}from"./index-RoHcRkq0.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 b(r,e,t){if(!r.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await r.getPrompt({name:e,arguments:t??{}})}function g(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 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],c(a)}export{q as a,b as g,u as l,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as m,n as p,s as q,aO as T,a as C}from"./index-
|
|
1
|
+
import{e as m,n as p,s as q,aO as T,a as C}from"./index-RoHcRkq0.js";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 n=s.staleTime??3e4;let i;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==n?(i={...s,queryKey:l,queryFn:o,staleTime:n,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=n,e[11]=i):i=e[11],q(i)}function K(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 n=s.staleTime??3e4;let i;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==n?(i={...s,queryKey:l,queryFn:o,staleTime:n,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=n,e[11]=i):i=e[11],p(i)}function M(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 n,i,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const f=JSON.stringify(l??{});u=q,n=s,i=T.mcpToolCall(t,o,f),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=n,e[10]=i,e[11]=u}else n=e[9],i=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]!==n||e[17]!==i||e[18]!==r||e[19]!==y?(c={...n,queryKey:i,queryFn:r,staleTime:y,retry:!1},e[16]=n,e[17]=i,e[18]=r,e[19]=y,e[20]=c):c=e[20],u(c)}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 n,i,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const f=JSON.stringify(l??{});u=p,n=s,i=T.mcpToolCall(t,o,f),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=n,e[10]=i,e[11]=u}else n=e[9],i=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]!==n||e[17]!==i||e[18]!==r||e[19]!==y?(c={...n,queryKey:i,queryFn:r,staleTime:y,retry:!1},e[16]=n,e[17]=i,e[18]=r,e[19]=y,e[20]=c):c=e[20],u(c)}function F(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 n=>await t.callTool(n),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{O as a,K as b,M as c,F as d,w as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n,q as i,s as l,K as m}from"./index-
|
|
1
|
+
import{e as n,q as i,s as l,K as m}from"./index-RoHcRkq0.js";import{u as a}from"./use-org-auth-client-5h3UhfD-.js";function p(){const e=n.c(7),{locator:o}=i(),u=a();let t;e[0]!==o?(t=m.members(o),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==u?(s=()=>u.organization.listMembers(),e[2]=u,e[3]=s):s=e[3];let r;return e[4]!==t||e[5]!==s?(r={queryKey:t,queryFn:s},e[4]=t,e[5]=s,e[6]=r):r=e[6],l(r)}export{p as u};
|
package/dist/client/assets/{use-navigate-to-agent-BIKPoTyl.js → use-navigate-to-agent-B_6LJV9r.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as v,r as f,e as C,j,f as N,q as D,b as F}from"./index-
|
|
1
|
+
import{L as v,r as f,e as C,j,f as N,q as D,b as F}from"./index-RoHcRkq0.js";import{a as q}from"./use-virtual-mcp-wf8itLFJ.js";const h="__tool_call_runs__",w=["requires_action","in_progress","failed","expired","completed"];function te(e){const t=new Map(w.map(r=>[r,[]]));for(const r of e){const n=r.status??"completed";(t.get(n)??t.get("completed")).push(r)}return w.map(r=>({status:r,threads:t.get(r)}))}function re(e,t){const r=new Map;for(const u of e){if(u.id.startsWith("thrd_welcome_"))continue;const c=u.virtual_mcp_id??h,a=r.get(c);a?(a.threads.push(u),(u.updated_at??"")>a.latestUpdatedAt&&(a.latestUpdatedAt=u.updated_at??"")):r.set(c,{virtualMcpId:c,threads:[u],latestUpdatedAt:u.updated_at??""})}const n=t!==null?r.get(t):void 0;n&&t&&r.delete(t);const s=r.get(h);s&&r.delete(h);const o=[...r.values()].sort((u,c)=>c.latestUpdatedAt.localeCompare(u.latestUpdatedAt)),i=[];return n&&n.threads.length>0&&i.push(n),i.push(...o),s&&s.threads.length>0&&i.push(s),i}const R=new Map,A=new Map;function P(e){return`${e.orgId}:${e.userId}`}function E(e){return`sidebar.group-order.${e}`}function O(e){try{const t=localStorage.getItem(e),r=t?JSON.parse(t):[];return Array.isArray(r)?r.filter(n=>typeof n=="string"):[]}catch{return[]}}function T(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}function $(e){const t=P(e),r=R.get(t);if(r)return r;const n=v.sidebarGroupOrder(e.orgId,e.userId);let s=!1;try{s=localStorage.getItem(n)!==null}catch{}let o=O(n);if(!s&&o.length===0&&e.userId!=="anon"){const i=O(E(e.orgId));i.length>0&&(o=i)}return R.set(t,o),o}function p(e,t){const r=new Set(t);return $(e).filter(n=>!r.has(n))}function g(e,t){R.set(P(e),t),T(v.sidebarGroupOrder(e.orgId,e.userId),t)}function m(e){const t=A.get(e);if(t)return t;const r=O(v.sidebarOrgPinnedOrder(e));return A.set(e,r),r}function S(e,t){A.set(e,t),T(v.sidebarOrgPinnedOrder(e),t)}function ne(e,t){g(e,t)}function se(e,t){S(e,t)}function k(e,t){return e===t||e===h}function I(e,t){return t.includes(e)}function B(e,t){return e.map(r=>r.virtualMcpId).filter(r=>!k(r,t))}function oe(e,t,r,n){const s=new Set(n);return B(e,r).filter(o=>t==="org"?s.has(o):!s.has(o))}function J(e,t){const r=new Set(e),n=t.filter(s=>!r.has(s));return n.length===0?e:[...e,...n]}function ie(e,t,r){const n=new Set(r),s=[],o=[];let i,u;for(const c of e){const a=c.virtualMcpId;if(t&&a===t){i=c;continue}if(a===h){u=c;continue}if(n.has(a)){s.push(c);continue}o.push(c)}return{decopilot:i,orgPinned:s,user:o,toolCallRuns:u}}function L(e,t,r,n=[],s=[]){const o=r?e.find(d=>d.virtualMcpId===r):void 0,i=e.find(d=>d.virtualMcpId===h),u=new Set(n),c=n.filter(d=>!k(d,r)),a=J(s,c),l=t.filter(d=>!u.has(d)),x=new Map(e.map(d=>[d.virtualMcpId,d])),_=d=>{const U=x.get(d);return U||{virtualMcpId:d,threads:[],latestUpdatedAt:""}},G=a.filter(d=>u.has(d)).map(_),K=l.map(_),b=[];return o&&b.push(o),b.push(...G,...K),i&&b.push(i),{groups:b,userOrder:l,orgOrder:G.map(d=>d.virtualMcpId)}}function Y(e,t){const r=new Set(t);m(e.orgId).length===0&&t.length>0&&S(e.orgId,[...t]);const s=v.sidebarGroupOrder(e.orgId,e.userId);if(O(s).length>0)return;const o=O(E(e.orgId));if(o.length===0)return;const i=o.filter(u=>!r.has(u));g(e,i)}function M(e,t){const r=new Set(t),n=$(e),s=n.filter(o=>!r.has(o));s.length!==n.length&&g(e,s)}function ue(e,t,r,n=[]){Y(e,n),M(e,n);const s=p(e,n),o=m(e.orgId),{userOrder:i,orgOrder:u}=L(t,s,r,n,o);(i.length!==s.length||i.some((c,a)=>c!==s[a]))&&g(e,i),(u.length!==o.length||u.some((c,a)=>c!==o[a]))&&S(e.orgId,u)}function ae(e,t,r,n=[]){const s=p(e,n),o=m(e.orgId);return L(t,s,r,n,o).groups}function ce(e,t,r){if(r){const o=p(e,[t]).filter(u=>u!==t);g(e,o);const i=m(e.orgId);i.includes(t)||S(e.orgId,[...i,t]);return}const n=m(e.orgId).filter(o=>o!==t);S(e.orgId,n);const s=p(e,[]);s.includes(t)||g(e,[...s,t])}function W(e,t,r=[]){if(r.includes(t))return;const n=p(e,r);n.includes(t)||g(e,[t,...n])}function de(e,t,r=[]){const n=p(e,r),s=n.filter(o=>o!==t);s.length!==n.length&&g(e,s)}function le(e,t,r){const n=e.indexOf(t),s=e.indexOf(r);if(n===-1||s===-1||n===s)return e;const o=[...e],[i]=o.splice(n,1);return i===void 0?e:(o.splice(s,0,i),o)}function fe(e,t,r,n){if(e==="org")return n;const s=p(t,r),o=new Set(n),i=s.filter(u=>!o.has(u));return[...n,...i]}function ge(e,t,r){const n=I(e,r),s=I(t,r);return n===s}const y=f.createContext(null);function pe(e){const t=C.c(7),{children:r}=e,[n,s]=f.useState(!1),[o,i]=f.useState(0);let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=()=>i(z),t[0]=u):u=t[0];const c=u;let a;t[1]!==n||t[2]!==o?(a={empty:n,setEmpty:s,orderRevision:o,bumpOrderRevision:c},t[1]=n,t[2]=o,t[3]=a):a=t[3];let l;return t[4]!==r||t[5]!==a?(l=j.jsx(y.Provider,{value:a,children:r}),t[4]=r,t[5]=a,t[6]=l):l=t[6],l}function z(e){return e+1}function he(){return f.useContext(y)?.empty??!1}function Oe(){return f.useContext(y)?.orderRevision??0}function H(){return f.useContext(y)?.bumpOrderRevision??Q}function Q(){}function me(e){const{value:t}=e,r=f.useContext(y),[n,s]=f.useState(null);return r&&n!==t&&(r.setEmpty(t),s(t)),null}function Se(){const e=C.c(9),t=N(),{org:r}=D(),n=q(),{data:s}=F.useSession(),o=s?.user?.id??"anon";let i;e[0]!==n?(i=n.filter(Z).map(X),e[0]=n,e[1]=i):i=e[1];const u=i,c=H();let a;return e[2]!==c||e[3]!==t||e[4]!==r.id||e[5]!==r.slug||e[6]!==u||e[7]!==o?(a=(l,x)=>{W({orgId:r.id,userId:o},l,u),c();const _=crypto.randomUUID();t({to:"/$org/$taskId",params:{org:r.slug,taskId:_},search:{...x?.search??{},virtualmcpid:l}})},e[2]=c,e[3]=t,e[4]=r.id,e[5]=r.slug,e[6]=u,e[7]=o,e[8]=a):a=e[8],a}function X(e){return e.id}function Z(e){return!!e.pinned}export{me as S,h as T,H as a,W as b,ge as c,fe as d,se as e,ne as f,ue as g,ae as h,Oe as i,re as j,Se as k,te as l,de as m,ce as n,pe as o,ie as p,le as r,oe as s,he as u};
|
package/dist/client/assets/{use-org-auth-client-CoWt-72u.js → use-org-auth-client-5h3UhfD-.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as q,q as x,b as i}from"./index-
|
|
1
|
+
import{e as q,q as x,b as i}from"./index-RoHcRkq0.js";function A(){const e=q.c(32),{org:O}=x(),o=O.id;let z;e[0]!==o?(z=R=>(f=>i.organization[R]({...f??{},organizationId:o})),e[0]=o,e[1]=z):z=e[1];const t=z;let M;e[2]!==o?(M=R=>(f=>{const y={...f??{}},h=y.query??{};return y.query={...h,organizationId:o},i.organization[R](y)}),e[2]=o,e[3]=M):M=e[3];const n=M;let a,r;e[4]!==n?(a=n("listMembers"),r=n("listRoles"),e[4]=n,e[5]=a,e[6]=r):(a=e[5],r=e[6]);let l,s,c,g,u,m,d,v,b;e[7]!==t?(g=t("inviteMember"),u=t("removeMember"),m=t("updateMemberRole"),d=t("addMember"),v=t("createRole"),b=t("updateRole"),l=t("deleteRole"),s=t("cancelInvitation"),c=t("update"),e[7]=t,e[8]=l,e[9]=s,e[10]=c,e[11]=g,e[12]=u,e[13]=m,e[14]=d,e[15]=v,e[16]=b):(l=e[8],s=e[9],c=e[10],g=e[11],u=e[12],m=e[13],d=e[14],v=e[15],b=e[16]);let p;e[17]!==n?(p=n("getActiveMember"),e[17]=n,e[18]=p):p=e[18];let I;return e[19]!==l||e[20]!==s||e[21]!==c||e[22]!==p||e[23]!==a||e[24]!==r||e[25]!==g||e[26]!==u||e[27]!==m||e[28]!==d||e[29]!==v||e[30]!==b?(I={organization:{listMembers:a,listRoles:r,inviteMember:g,removeMember:u,updateMemberRole:m,addMember:d,createRole:v,updateRole:b,deleteRole:l,cancelInvitation:s,update:c,getActiveMember:p,acceptInvitation:i.organization.acceptInvitation,rejectInvitation:i.organization.rejectInvitation,getInvitation:i.organization.getInvitation,list:i.organization.list,create:i.organization.create,getFullOrganization:i.organization.getFullOrganization}},e[19]=l,e[20]=s,e[21]=c,e[22]=p,e[23]=a,e[24]=r,e[25]=g,e[26]=u,e[27]=m,e[28]=d,e[29]=v,e[30]=b,e[31]=I):I=e[31],I}export{A as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as u,n as S,G as l,a as y,K as c}from"./index-
|
|
1
|
+
import{e as u,n as S,G as l,a as y,K as c}from"./index-RoHcRkq0.js";function w(o,a){const e=u.c(8);let s;e[0]!==o?(s=c.orgSsoStatus(o??""),e[0]=o,e[1]=s):s=e[1];let t;e[2]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/status`);if(!r.ok)throw new Error("Failed to check SSO status");return r.json()},e[2]=a,e[3]=t):t=e[3];const n=!!o&&!!a;let i;return e[4]!==s||e[5]!==t||e[6]!==n?(i={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=i):i=e[7],S(i)}function q(o,a){const e=u.c(8);let s;e[0]!==o?(s=c.orgSsoConfig(o??""),e[0]=o,e[1]=s):s=e[1];let t;e[2]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/config`);if(!r.ok)throw new Error("Failed to fetch SSO config");return r.json()},e[2]=a,e[3]=t):t=e[3];const n=!!o&&!!a;let i;return e[4]!==s||e[5]!==t||e[6]!==n?(i={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=i):i=e[7],S(i)}function C(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async r=>{const f=await fetch(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!f.ok){const p=await f.json();throw new Error(p.error||"Failed to save SSO config")}return f.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}function O(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/config`,{method:"DELETE"});if(!r.ok)throw new Error("Failed to delete SSO config");return r.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}function m(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async r=>{const f=await fetch(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:r})});if(!f.ok)throw new Error("Failed to toggle SSO enforcement");return f.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}export{q as a,C as b,O as c,m as d,w as u};
|
package/dist/client/assets/{use-organization-roles-BE65evRw.js → use-organization-roles-D4RU1UCZ.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as R}from"./use-org-auth-client-
|
|
1
|
+
import{u as R}from"./use-org-auth-client-5h3UhfD-.js";import{q as b,n as P,K as y}from"./index-RoHcRkq0.js";const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function B(t){return t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function O(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const u=[];let c=!1;const a=new Set;let s=!1,f=0,e=!1;for(const[l,o]of Object.entries(t)){if(l==="self"){o.includes("*")?i=!0:n.push(...o);continue}if(l==="models"){o.includes("*:*")?e=!0:f=o.length;continue}if(l==="*"){if(c=!0,o.includes("*"))s=!0;else for(const r of o)a.add(r);continue}if(u.push(l),o.includes("*"))s=!0;else for(const r of o)a.add(r)}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:u,allowsAllConnections:c,toolNames:Array.from(a),allowsAllTools:s,modelCount:f,allowsAllModels:e}}function I(){const{locator:t}=b(),n=R(),{data:i,isLoading:u,error:c,refetch:a}=P({queryKey:y.organizationRoles(t),queryFn:async()=>{try{const e=await n.organization.listRoles();return e?.error?(console.error("[useOrganizationRoles] API error:",e.error),[]):e?.data??[]}catch(e){return console.error("[useOrganizationRoles] Fetch error:",e),[]}},staleTime:3e4}),s=w.map(e=>({role:e.value,label:e.label,isBuiltin:e.isBuiltin}));if(i&&Array.isArray(i))for(const e of i){const l=e.role;if(!l||w.some(h=>h.value===l))continue;const{staticPermissions:o,allowsAllStaticPermissions:r,connectionIds:g,allowsAllConnections:m,toolNames:p,allowsAllTools:d,modelCount:C,allowsAllModels:A}=O(e.permission);s.push({id:e.id,role:l,label:B(l),isBuiltin:!1,permission:e.permission??void 0,staticPermissionCount:r?-1:o.length,allowsAllStaticPermissions:r,connectionCount:m?-1:g.length,allowsAllConnections:m,toolCount:d?-1:p.length,allowsAllTools:d,modelCount:A?-1:C,allowsAllModels:A})}const f=s.filter(e=>!e.isBuiltin);return{roles:s,customRoles:f,builtinRoles:s.filter(e=>e.isBuiltin),isLoading:u,error:c,refetch:a}}export{I as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as g,e as c,q as _,n as z,G as C,a as G,r as P}from"./index-
|
|
1
|
+
import{K as g,e as c,q as _,n as z,G as C,a as G,r as P}from"./index-RoHcRkq0.js";import{S as h,u as A,W as R}from"./constants-DDZG6Edw.js";const S={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null},N={tiers:{fast:null,smart:null,thinking:null,image:null,web_research:null}};function O(t,e){return{queryKey:g.organizationSettings(e),queryFn:async()=>{const n=await t.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}});return n?.isError?{...S,organizationId:e}:n.structuredContent??{...S,organizationId:e}},staleTime:6e4}}function E(t){const e=c.c(9),{org:n}=_();let s;e[0]!==n.id||e[1]!==n.slug?(s={connectionId:h,orgId:n.id,orgSlug:n.slug},e[0]=n.id,e[1]=n.slug,e[2]=s):s=e[2];const r=A(s);let i;e[3]!==r||e[4]!==n.id?(i=O(r,n.id),e[3]=r,e[4]=n.id,e[5]=i):i=e[5];const o=t;let a;return e[6]!==i||e[7]!==o?(a={...i,select:o},e[6]=i,e[7]=o,e[8]=a):a=e[8],z(a)}function Y(t,e){const n=c.c(6);let s;n[0]!==t||n[1]!==e?(s={connectionId:h,orgId:t,orgSlug:e},n[0]=t,n[1]=e,n[2]=s):s=n[2];const r=A(s);let i;n[3]!==r||n[4]!==t?(i=O(r,t),n[3]=r,n[4]=t,n[5]=i):i=n[5];const{data:o}=z(i);return o??null}function T(){const t=c.c(12),{org:e}=_();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:h,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=A(n),r=C();let i;t[3]!==s||t[4]!==e.id?(i=async l=>{const u=await s.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e.id,...l}});if(u?.isError)throw new Error(u.content?.[0]?.text??"Failed to update organization settings");const f=u.structuredContent;if(!f)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return f},t[3]=s,t[4]=e.id,t[5]=i):i=t[5];let o;t[6]!==e.id||t[7]!==r?(o=l=>{r.setQueryData(g.organizationSettings(e.id),u=>({...u??S,...l}))},t[6]=e.id,t[7]=r,t[8]=o):o=t[8];let a;return t[9]!==i||t[10]!==o?(a={mutationFn:i,onSuccess:o},t[9]=i,t[10]=o,t[11]=a):a=t[11],G(a)}function b(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_research:t.tiers.web_research??null}}:N}function H(){const{data:t}=E(Q);return t??N}function Q(t){return b(t.simple_mode)}function L(){const t=c.c(7),e=T();let n,s;t[0]!==e?(n=(i,o)=>e.mutate({simple_mode:i},o),s=(i,o)=>e.mutateAsync({simple_mode:i},o),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let r;return t[3]!==e||t[4]!==n||t[5]!==s?(r={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=r):r=t[6],r}function $(){const{data:t}=E(x);return t??null}function x(t){return t.registry_config}function W(){const t=c.c(7),e=T();let n,s;t[0]!==e?(n=(i,o)=>e.mutate({registry_config:i},o),s=(i,o)=>e.mutateAsync({registry_config:i},o),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let r;return t[3]!==e||t[4]!==n||t[5]!==s?(r={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=r):r=t[6],r}function Z(){const{data:t}=E(q);return t??null}function q(t){return t.default_home_agents}function U(){const t=c.c(7),e=T();let n,s;t[0]!==e?(n=(i,o)=>e.mutate({default_home_agents:i},o),s=(i,o)=>e.mutateAsync({default_home_agents:i},o),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let r;return t[3]!==e||t[4]!==n||t[5]!==s?(r={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=r):r=t[6],r}function j(){const t=c.c(14),{org:e}=_(),n=U(),s=C();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=Promise.resolve(),t[0]=r):r=t[0];const i=P.useRef(r);let o;t[1]!==e.id?(o=g.organizationSettings(e.id),t[1]=e.id,t[2]=o):o=t[2];const a=o;let l;t[3]!==a||t[4]!==s?(l=()=>s.getQueryData(a)?.default_home_agents?.ids??[],t[3]=a,t[4]=s,t[5]=l):l=t[5];const u=l;let f;t[6]!==a||t[7]!==e.slug||t[8]!==s||t[9]!==n?(f=D=>{const I=i.current.then(async()=>{const w=s.getQueryData(a),p=D(w?.default_home_agents?.ids??[]);if(p!==null){s.setQueryData(a,m=>m&&{...m,default_home_agents:{ids:p}});try{await n.mutateAsync({ids:p}),await s.refetchQueries({queryKey:g.homeNextActions(e.slug),type:"active"})}catch(m){const M=m;throw s.setQueryData(a,w),M}}});return i.current=I.catch(k),I},t[6]=a,t[7]=e.slug,t[8]=s,t[9]=n,t[10]=f):f=t[10];const y=f;let d;return t[11]!==y||t[12]!==u?(d={currentIds:u,apply:y},t[11]=y,t[12]=u,t[13]=d):d=t[13],d}function k(){}function B(){const t=c.c(5),{org:e}=_(),n=$();let s;t[0]!==e.id?(s=R.REGISTRY(e.id),t[0]=e.id,t[1]=s):s=t[1];const r=s;let i;return t[2]!==r||t[3]!==n?(i=o=>{if(!n)return o===r;const a=n.registries[o];return a?a.enabled:o===r},t[2]=r,t[3]=n,t[4]=i):i=t[4],i}export{j as a,B as b,Y as c,T as d,H as e,L as f,$ as g,W as h,O as o,Z as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a,q as C}from"./index-
|
|
1
|
+
import{e as a,q as C}from"./index-RoHcRkq0.js";import{u as R}from"./use-connection-BKakpvkk.js";import{W as u}from"./constants-DDZG6Edw.js";import{g as p}from"./use-organization-settings-DeuE04BS.js";function E(){const e=a.c(17),{org:i}=C(),o=p();let n;e[0]!==i.id?(n=u.REGISTRY(i.id),e[0]=i.id,e[1]=n):n=e[1];const c=n;let l;e[2]!==i.id?(l=u.COMMUNITY_REGISTRY(i.id),e[2]=i.id,e[3]=l):l=e[3];const d=l;let r;e[4]!==d||e[5]!==c?(r=[c,d],e[4]=d,e[5]=c,e[6]=r):r=e[6];let t;if(e[7]!==o||e[8]!==r){if(t=new Set(r),o?.registries){let s;e[10]!==o.registries?(s=Object.keys(o.registries),e[10]=o.registries,e[11]=s):s=e[11];for(const m of s)t.add(m)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const g=R();let f;if(e[12]!==g||e[13]!==t){let s;e[15]!==t?(s=m=>t.has(m.id),e[15]=t,e[16]=s):s=e[16],f=g.filter(s),e[12]=g,e[13]=t,e[14]=f}else f=e[14];return f}export{E as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a,q as c,K as d,s as y,G as C,a as E}from"./index-
|
|
1
|
+
import{e as a,q as c,K as d,s as y,G as C,a as E}from"./index-RoHcRkq0.js";import{S as g,u as m}from"./constants-DDZG6Edw.js";import{u as f}from"./unwrap-tool-result-BYXdCQMg.js";function q(){const e=a.c(10),{org:t}=c();let l;e[0]!==t.id||e[1]!==t.slug?(l={connectionId:g,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=l):l=e[2];const o=m(l);let i;e[3]!==t.id?(i=d.secrets(t.id),e[3]=t.id,e[4]=i):i=e[4];let s;e[5]!==o?(s=async()=>{const u=await o.callTool({name:"SECRET_LIST",arguments:{}});return f(u)},e[5]=o,e[6]=s):s=e[6];let n;e[7]!==i||e[8]!==s?(n={queryKey:i,staleTime:6e4,queryFn:s},e[7]=i,e[8]=s,e[9]=n):n=e[9];const{data:r}=y(n);return r.secrets}function R(){const e=a.c(11),{org:t}=c();let l;e[0]!==t.id||e[1]!==t.slug?(l={connectionId:g,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=l):l=e[2];const o=m(l),i=C();let s;e[3]!==o?(s=async u=>{const S=await o.callTool({name:"SECRET_CREATE",arguments:{...u}});return f(S)},e[3]=o,e[4]=s):s=e[4];let n;e[5]!==t.id||e[6]!==i?(n=()=>{i.invalidateQueries({queryKey:d.secrets(t.id)})},e[5]=t.id,e[6]=i,e[7]=n):n=e[7];let r;return e[8]!==s||e[9]!==n?(r={mutationFn:s,onSuccess:n},e[8]=s,e[9]=n,e[10]=r):r=e[10],E(r)}export{R as a,q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,e as m,a0 as h}from"./index-
|
|
1
|
+
import{r as o,e as m,a0 as h}from"./index-RoHcRkq0.js";import{p as R,q as I}from"./question-004-sINsf4GQ.js";import{d as y,D as S}from"./decopilot-sse-pool-DYhlxmFV.js";const b=()=>0;function D(s){const{orgSlug:e,taskId:r,enabled:t=!0,onStep:n,onFinish:u,onTaskStatus:f}=s,l=o.useRef({taskId:r,onStep:n,onFinish:u,onTaskStatus:f});l.current={taskId:r,onStep:n,onFinish:u,onTaskStatus:f};const i=o.useRef(null),p=o.useRef(t),d=o.useRef(e);(!i.current||p.current!==t||d.current!==e)&&(p.current=t,d.current=e,i.current=E=>{if(!t||!e)return()=>{};const k=T=>{let a;try{a=JSON.parse(T.data)}catch{return}const c=l.current;if(!(c.taskId&&a.subject!==c.taskId)){switch(a.type){case S.STEP:c.onStep?.(a);break;case S.FINISH:c.onFinish?.(a);break;case S.THREAD_STATUS:c.onTaskStatus?.(a);break}E()}};return y.subscribe(e,k)}),o.useSyncExternalStore(i.current,b,b)}const O=new Set(["completed","failed","requires_action"]);function U(s){const e=m.c(5),[r]=h();let t;e[0]!==r?(t=u=>{r.enableSounds&&O.has(u.data.status)&&R(I.dataUri).catch(_)},e[0]=r,e[1]=t):t=e[1];let n;e[2]!==s||e[3]!==t?(n={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=n):n=e[4],D(n)}function _(s){console.warn("[status-sounds] playback failed:",s)}export{U as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as p,r as f}from"./index-
|
|
1
|
+
import{e as p,r as f}from"./index-RoHcRkq0.js";import{u as w}from"./tooltip-CLHWv9z-.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a,q as d,aO as p,n as P}from"./index-
|
|
1
|
+
import{e as a,q as d,aO as p,n as P}from"./index-RoHcRkq0.js";import{b as L,a as S,u as V,c as _}from"./use-collections-DxWiIX9G.js";import{S as g,u as I}from"./constants-DDZG6Edw.js";function v(s){const t=a.c(5);let e;t[0]!==s?(e=s===void 0?{}:s,t[0]=s,t[1]=e):e=t[1];const n=e,{org:i}=d();let o;t[2]!==i.id||t[3]!==i.slug?(o={connectionId:g,orgId:i.id,orgSlug:i.slug},t[2]=i.id,t[3]=i.slug,t[4]=o):o=t[4];const l=I(o);return L(i.id,"VIRTUAL_MCP",l,n)}function R(s,t,e){return _(s,"VIRTUAL_MCP",t??void 0,e)}function b(s){const t=a.c(3),{org:e}=d();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=I(n);return V(e.id,"VIRTUAL_MCP",s??void 0,i)}function E(s){const t=a.c(15),{org:e}=d();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=I(n);let o,l,c;t[3]!==s||t[4]!==e.id?(o=[...s].sort(),c=P,l=p.virtualMcpLastUsed(e.id,o),t[3]=s,t[4]=e.id,t[5]=o,t[6]=l,t[7]=c):(o=t[5],l=t[6],c=t[7]);const C=o.length>0;let u;t[8]!==i||t[9]!==o?(u=async()=>{const M=(await i.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:o}})).structuredContent??{items:[]},f=new Map;for(const m of M.items)f.set(m.id,m);return f},t[8]=i,t[9]=o,t[10]=u):u=t[10];let r;return t[11]!==l||t[12]!==C||t[13]!==u?(r={queryKey:l,enabled:C,staleTime:3e4,queryFn:u},t[11]=l,t[12]=C,t[13]=u,t[14]=r):r=t[14],c(r)}function $(){const s=a.c(3),{org:t}=d();let e;s[0]!==t.id||s[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},s[0]=t.id,s[1]=t.slug,s[2]=e):e=s[2];const n=I(e);return S(t.id,"VIRTUAL_MCP",n)}export{v as a,$ as b,E as c,b as u,R as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-GkUb2zKT.js";import{cE as i}from"./index-RoHcRkq0.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bo as s,r as c,bR as a,bS as i}from"./index-
|
|
1
|
+
import{bo as s,r as c,bR as a,bS as i}from"./index-RoHcRkq0.js";function S(r){const n=s({warn:r?.router===void 0}),t=r?.router||n,u=c.useRef(void 0);return a(t.stores.__store,e=>{if(r?.select){if(r.structuralSharing??t.options.defaultStructuralSharing){const o=i(u.current,r.select(e));return u.current=o,o}return r.select(e)}return e})}export{S as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-GkUb2zKT.js";import{cE as u,aF as n}from"./index-RoHcRkq0.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as S,q as b,n as C,K as k,c as y,j as t}from"./index-
|
|
1
|
+
import{e as S,q as b,n as C,K as k,c as y,j as t}from"./index-RoHcRkq0.js";import{A as E}from"./avatar-DiepLBEZ.js";import{S as A,u as _}from"./constants-DDZG6Edw.js";function q(m){const e=S.c(12),{org:u}=b();let x;e[0]!==u.id||e[1]!==u.slug?(x={connectionId:A,orgId:u.id,orgSlug:u.slug},e[0]=u.id,e[1]=u.slug,e[2]=x):x=e[2];const g=_(x);let d;e[3]!==m?(d=k.user(m),e[3]=m,e[4]=d):d=e[4];let s;e[5]!==g||e[6]!==m?(s=async()=>{const c=await g.callTool({name:"USER_GET",arguments:{id:m}});return(c.structuredContent??c).user},e[5]=g,e[6]=m,e[7]=s):s=e[7];const l=!!m;let o;return e[8]!==d||e[9]!==s||e[10]!==l?(o={queryKey:d,queryFn:s,staleTime:3e5,retry:1,enabled:l},e[8]=d,e[9]=s,e[10]=l,e[11]=o):o=e[11],C(o)}function R(m){const e=S.c(36),{id:u,size:x,showEmail:g,avatarOnly:d,className:s}=m,l=x===void 0?"xs":x,o=g===void 0?!1:g,c=d===void 0?!1:d,{data:r,isLoading:w,isError:U}=q(u);if(w){let a;e[0]!==s?(a=y("flex items-center gap-2",s),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==l?(i=t.jsx(E.Skeleton,{shape:"circle",size:l}),e[2]=l,e[3]=i):i=e[3];let n;e[4]!==c||e[5]!==o?(n=!c&&t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),o&&t.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=c,e[5]=o,e[6]=n):n=e[6];let f;return e[7]!==a||e[8]!==i||e[9]!==n?(f=t.jsxs("div",{className:a,children:[i,n]}),e[7]=a,e[8]=i,e[9]=n,e[10]=f):f=e[10],f}if(U||!r){let a;e[11]!==s?(a=y("flex items-center gap-2",s),e[11]=s,e[12]=a):a=e[12];let i;e[13]!==l?(i=t.jsx(E,{shape:"circle",size:l,fallback:"?",muted:!0}),e[13]=l,e[14]=i):i=e[14];let n;e[15]!==c?(n=!c&&t.jsx("div",{className:"flex flex-col",children:t.jsx("div",{className:"text-sm text-muted-foreground",children:"Unknown User"})}),e[15]=c,e[16]=n):n=e[16];let f;return e[17]!==a||e[18]!==i||e[19]!==n?(f=t.jsxs("div",{className:a,children:[i,n]}),e[17]=a,e[18]=i,e[19]=n,e[20]=f):f=e[20],f}let p;e[21]!==s?(p=y("flex items-center gap-2",s),e[21]=s,e[22]=p):p=e[22];const N=r.image??void 0;let v;e[23]!==l||e[24]!==N||e[25]!==r.name?(v=t.jsx(E,{shape:"circle",size:l,url:N,fallback:r.name}),e[23]=l,e[24]=N,e[25]=r.name,e[26]=v):v=e[26];let j;e[27]!==c||e[28]!==o||e[29]!==r.email||e[30]!==r.name?(j=!c&&t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-sm font-medium",children:r.name}),o&&t.jsx("div",{className:"text-xs text-muted-foreground",children:r.email})]}),e[27]=c,e[28]=o,e[29]=r.email,e[30]=r.name,e[31]=j):j=e[31];let h;return e[32]!==p||e[33]!==v||e[34]!==j?(h=t.jsxs("div",{className:p,children:[v,j]}),e[32]=p,e[33]=v,e[34]=j,e[35]=h):h=e[35],h}export{R as U};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as k,r as C,c as x,j as i}from"./index-
|
|
1
|
+
import{e as k,r as C,c as x,j as i}from"./index-RoHcRkq0.js";import{b as I,T as P,a as L}from"./tooltip-CLHWv9z-.js";const M={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function B(S){const e=k.c(27),{value:s,onValueChange:y,options:o,size:R,fullWidth:E,className:z}=S,V=R===void 0?"sm":R,u=E===void 0?!1:E;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[0]=b):b=e[0];const _=C.useRef(b);let g;e[1]===Symbol.for("react.memo_cache_sentinel")?(g={left:0,width:0,opacity:0},e[1]=g):g=e[1];const[f,W]=C.useState(g);let h,p;e[2]!==o||e[3]!==s?(h=()=>{const t=o.findIndex(j=>j.value===s),m=_.current[t];m&&W({left:m.offsetLeft,width:m.offsetWidth,opacity:1})},p=[s,o],e[2]=o,e[3]=s,e[4]=h,e[5]=p):(h=e[4],p=e[5]),C.useEffect(h,p);const d=M[V];let n;e[6]!==z?(n=x("relative flex gap-0 bg-muted rounded-lg",z),e[6]=z,e[7]=n):n=e[7];let l;e[8]!==d||e[9]!==u||e[10]!==y||e[11]!==o||e[12]!==s?(l=o.map((t,m)=>{const j=i.jsxs("button",{ref:$=>{_.current[m]=$},type:"button",onClick:()=>y(t.value),className:x("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",u?"flex-1 h-12 px-4":d.button,!u&&t.label?"px-3":""),children:[i.jsx("span",{className:x("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",d.icon,s===t.value?"text-foreground":"text-muted-foreground"),children:t.icon}),t.label&&i.jsx("span",{className:x("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===t.value?"text-foreground":"text-muted-foreground"),children:t.label})]},t.value);return t.tooltip?i.jsxs(I,{children:[i.jsx(P,{asChild:!0,children:j}),i.jsx(L,{side:"bottom",children:t.tooltip})]},t.value):j}),e[8]=d,e[9]=u,e[10]=y,e[11]=o,e[12]=s,e[13]=l):l=e[13];const w=u?"h-12":d.button;let a;e[14]!==w?(a=x("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),e[14]=w,e[15]=a):a=e[15];const N=`${f.left}px`,T=`${f.width}px`;let r;e[16]!==f.opacity||e[17]!==N||e[18]!==T?(r={left:N,width:T,opacity:f.opacity},e[16]=f.opacity,e[17]=N,e[18]=T,e[19]=r):r=e[19];let c;e[20]!==a||e[21]!==r?(c=i.jsx("div",{className:a,style:r}),e[20]=a,e[21]=r,e[22]=c):c=e[22];let v;return e[23]!==c||e[24]!==n||e[25]!==l?(v=i.jsxs("div",{className:n,children:[l,c]}),e[23]=c,e[24]=n,e[25]=l,e[26]=v):v=e[26],v}export{B as V};
|