decocms 3.9.0 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-dzvWxujb.js → AlertCircle-BQdZzjHT.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CBMu0EOf.js → ArrowUpRight-CeE0rmVq.js} +1 -1
- package/dist/client/assets/{Check-BTi6aK2O.js → Check-BC0oyj5b.js} +1 -1
- package/dist/client/assets/{CheckCircle-C24wnP2Z.js → CheckCircle-DH7rdvLk.js} +1 -1
- package/dist/client/assets/{ChevronDown-BZRrL23D.js → ChevronDown-R842NQ1U.js} +1 -1
- package/dist/client/assets/{ChevronLeft-DEtz4dkO.js → ChevronLeft-4yzLonaZ.js} +1 -1
- package/dist/client/assets/{ChevronRight-Ddjtetki.js → ChevronRight-ZAMgnesO.js} +1 -1
- package/dist/client/assets/{ChevronUp-DhRFiyWk.js → ChevronUp-BF-b-Nnx.js} +1 -1
- package/dist/client/assets/{Container-DqZ7iXxp.js → Container-DYeY832q.js} +1 -1
- package/dist/client/assets/{DotsVertical-DmUaYhK2.js → DotsVertical-qBVhBkwp.js} +1 -1
- package/dist/client/assets/{Eye-D-e14RXi.js → Eye-DT8d17_D.js} +1 -1
- package/dist/client/assets/{FilterLines-Ceib5U8s.js → FilterLines-0_3CSvNU.js} +1 -1
- package/dist/client/assets/{Globe01-D0-2dr7e.js → Globe01-Dq1s-8U-.js} +1 -1
- package/dist/client/assets/{HardDrive-iB6HZdkm.js → HardDrive-BSOkGCav.js} +1 -1
- package/dist/client/assets/{Key01-DJjMsflU.js → Key01-6ihQsQH5.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DC99mmKb.js → LayoutLeft-DW_oy1t7.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BpZEkrD7.js → LinkExternal01-Dr7L27C5.js} +1 -1
- package/dist/client/assets/{Monitor01-C8q7RxXu.js → Monitor01-B1nvgGLS.js} +1 -1
- package/dist/client/assets/{Palette-C1AASxx2.js → Palette-DgrVm9Lf.js} +1 -1
- package/dist/client/assets/{Play-BHXb_TUr.js → Play-Irj6Snpi.js} +1 -1
- package/dist/client/assets/{Plus-DTBFvoZ4.js → Plus-282oO62Z.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-BDUToMVd.js → RefreshCcw01-Ucb5geTM.js} +1 -1
- package/dist/client/assets/{SearchMd-CbQiai92.js → SearchMd-QjKlDFdA.js} +1 -1
- package/dist/client/assets/{Settings02-Bu96rwA_.js → Settings02-C6oxZAMK.js} +1 -1
- package/dist/client/assets/{Shield01-knE-M4LE.js → Shield01-D7qNI860.js} +1 -1
- package/dist/client/assets/{Star01-CVzgxp1x.js → Star01-3amhnFQB.js} +1 -1
- package/dist/client/assets/{Stars01-CDWeKJ6M.js → Stars01-D-S4IK6K.js} +1 -1
- package/dist/client/assets/{Stars02-XWO6H1Re.js → Stars02-BjwC_VwI.js} +1 -1
- package/dist/client/assets/{Sun-CbEJ7xkn.js → Sun-D7IGJ5Qz.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Dc6vSFgX.js → SwitchHorizontal01-CgqCR4Yz.js} +1 -1
- package/dist/client/assets/{Tool01-B6ELFGh-.js → Tool01-N1xf4ThS.js} +1 -1
- package/dist/client/assets/{Trash01-4Ps74tkv.js → Trash01-C5lXrAXB.js} +1 -1
- package/dist/client/assets/{Upload01-CnrDySm1.js → Upload01-CRQffHbJ.js} +1 -1
- package/dist/client/assets/{User01-BA7YwKC-.js → User01-sifBP7dG.js} +1 -1
- package/dist/client/assets/{Users01-DvcVTQ1g.js → Users01-CqOg_Qlq.js} +1 -1
- package/dist/client/assets/{Users03-BkEliyJ2.js → Users03-zhbxBBX-.js} +1 -1
- package/dist/client/assets/{X-Ch1EyNal.js → X-CY5EOp8o.js} +1 -1
- package/dist/client/assets/{XCircle-BKXSa_VQ.js → XCircle-C2jaCgsw.js} +1 -1
- package/dist/client/assets/{XClose-D_AWgVIk.js → XClose-Dp1ChvR4.js} +1 -1
- package/dist/client/assets/{Zap-C_lJ1cEb.js → Zap-DQUf40SC.js} +1 -1
- package/dist/client/assets/{ZapSquare-rvBlc1j-.js → ZapSquare-dqx_OfE2.js} +1 -1
- package/dist/client/assets/{ZoomOut-Dk_N18Ki.js → ZoomOut-BRLKFRz0.js} +1 -1
- package/dist/client/assets/{access-gate-jSqFnrGs.js → access-gate-CljCKnMv.js} +1 -1
- package/dist/client/assets/{accordion-C4Pme2EY.js → accordion-BU6HxGne.js} +1 -1
- package/dist/client/assets/{add-section-modal-cOeaGNML.js → add-section-modal-Ca9uYkx3.js} +1 -1
- package/dist/client/assets/{agent-capabilities-qbK6YAO9.js → agent-capabilities-CoD6HyyN.js} +1 -1
- package/dist/client/assets/{agent-icon-B_Sssulg.js → agent-icon-Cdddea4y.js} +1 -1
- package/dist/client/assets/{agent-icons-D51AFvhI.js → agent-icons-CKU8GGl2.js} +1 -1
- package/dist/client/assets/{agents-list-C2B7x1Is.js → agents-list-BrPrwKER.js} +1 -1
- package/dist/client/assets/{ai-providers-ogKn3dAb.js → ai-providers-DObQ3JKO.js} +1 -1
- package/dist/client/assets/{alert-D5REShaT.js → alert-B4M2bFp4.js} +1 -1
- package/dist/client/assets/{alert-dialog-6ai-9HnX.js → alert-dialog-wo7djkDg.js} +1 -1
- package/dist/client/assets/app-editor-BivZp6Yr.js +1 -0
- package/dist/client/assets/{auth-catchall-BnCKrsj9.js → auth-catchall-CARxKUXE.js} +1 -1
- package/dist/client/assets/{auth-split-layout-YnzLUagi.js → auth-split-layout-CdjhFpDE.js} +1 -1
- package/dist/client/assets/{automation-list-row-BWubsYMA.js → automation-list-row-DrMmYGg2.js} +1 -1
- package/dist/client/assets/{automation-runs-BB3z--MX.js → automation-runs-BxnZN2Rp.js} +1 -1
- package/dist/client/assets/{automations-DNOJ2JTp.js → automations-C9zBfa-L.js} +1 -1
- package/dist/client/assets/{avatar-O1JcTGgG.js → avatar-DZZ4PPWC.js} +1 -1
- package/dist/client/assets/{badge-BvUmM76z.js → badge-9pGcMSo9.js} +1 -1
- package/dist/client/assets/{brand-context-BxqAXCTz.js → brand-context-AKSB4TFX.js} +1 -1
- package/dist/client/assets/{buckets-DxKR4O3e.js → buckets-C5lDKn9n.js} +1 -1
- package/dist/client/assets/{calendar-DPPkP_2t.js → calendar-VsOQOecc.js} +1 -1
- package/dist/client/assets/{capability-load-error-H04-IMSf.js → capability-load-error-CjoddyUE.js} +1 -1
- package/dist/client/assets/{card-fKzJiL4z.js → card-Dj9cg3CK.js} +1 -1
- package/dist/client/assets/{chat-context-BmIMIbdZ.js → chat-context-DaxTCgBq.js} +1 -1
- package/dist/client/assets/{checkbox-BBA-baQg.js → checkbox-zURLZ3UX.js} +1 -1
- package/dist/client/assets/{cli-auth-success-VydTLV_L.js → cli-auth-success-Boc0yBdi.js} +1 -1
- package/dist/client/assets/{collection-detail-CzKfKNSD.js → collection-detail-DybzD5Xk.js} +1 -1
- package/dist/client/assets/{collection-display-button-w5gZgVyn.js → collection-display-button-C-0uZ95I.js} +1 -1
- package/dist/client/assets/{collection-search-DZy7ZGM2.js → collection-search-DcKd-0OB.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BtKHdP44.js → collection-table-wrapper-D16K4NpS.js} +1 -1
- package/dist/client/assets/{collection-tabs-BWubNGTM.js → collection-tabs-B68kf5RK.js} +1 -1
- package/dist/client/assets/{collections-_mVHVGxv.js → collections-CjKCiyyJ.js} +1 -1
- package/dist/client/assets/{command-eY3hMYWt.js → command-SwSMex4i.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-1K3-qmT6.js → connect-desktop-dialog-BHLyUOHP.js} +1 -1
- package/dist/client/assets/{connection-card-BiKxhszY.js → connection-card-BMM5SXL2.js} +1 -1
- package/dist/client/assets/{connection-detail-DiC5wG3m.js → connection-detail-01KrAftr.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-qNlMv9lf.js → connection-form-helpers-DQIelH5O.js} +1 -1
- package/dist/client/assets/{connections-CwFwHTK-.js → connections-DXt-OZ2a.js} +1 -1
- package/dist/client/assets/{constants-DVPpd9QA.js → constants-D3TwDQx3.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BSh6nGrY.js → decopilot-sse-pool-BegF480x.js} +1 -1
- package/dist/client/assets/{dialog-zrSzj7TD.js → dialog-ZmuU49gf.js} +1 -1
- package/dist/client/assets/{domain-settings-C0r5hJdO.js → domain-settings-MOa5o-N_.js} +1 -1
- package/dist/client/assets/{drawer-BOKSr-JQ.js → drawer-gGw1fcoY.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Dp0AYb5Q.js → dropdown-menu-CxtJkFj7.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BqbhGwCQ.js → dynamic-plugin-layout-NAmzVGzy.js} +1 -1
- package/dist/client/assets/{empty-state-C-Vzaz3T.js → empty-state-Bp53vJ5J.js} +1 -1
- package/dist/client/assets/{empty-state-CMCikW75.js → empty-state-DypMRY_b.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DqaNlLEE.js → extract-connection-data-BxLUPS35.js} +1 -1
- package/dist/client/assets/{features-DY0OBwI_.js → features-DdT_Un6T.js} +1 -1
- package/dist/client/assets/{file-explorer-c1AF4n2J.js → file-explorer-C6G0_-8u.js} +1 -1
- package/dist/client/assets/{file-type-icon-BPZ9mx_j.js → file-type-icon-C7hLWFjD.js} +1 -1
- package/dist/client/assets/{files-3Db0Ok-v.js → files-IHk2X7ln.js} +1 -1
- package/dist/client/assets/{form-DwvvaWfd.js → form-Bb30Dtd4.js} +1 -1
- package/dist/client/assets/{general-BSTtek3u.js → general-CyrOfN1n.js} +1 -1
- package/dist/client/assets/{generate-id-Lwmt2FKL.js → generate-id-DCuwKdwd.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BSS2HO9c.js → github-repo-picker-ukQ8mlgx.js} +1 -1
- package/dist/client/assets/{header-tab-button-ziMK8DeX.js → header-tab-button-Ct59Qn2o.js} +1 -1
- package/dist/client/assets/{hover-card-B1oYmeeS.js → hover-card-BJCPsde9.js} +1 -1
- package/dist/client/assets/{image-field-Xt_fxRp4.js → image-field-BUiTz_KS.js} +1 -1
- package/dist/client/assets/{index-Dkg-XbjX.js → index-B2iX6hZk.js} +1 -1
- package/dist/client/assets/{index-CM4eUM9Q.js → index-BD0Vs-CA.js} +3 -3
- package/dist/client/assets/{index-CTWR9OEI.js → index-BYpuQugU.js} +1 -1
- package/dist/client/assets/{index-DZT3k4JB.js → index-C-7fxrkj.js} +1 -1
- package/dist/client/assets/{index-tJpcknvZ.js → index-C-BjtSEe.js} +1 -1
- package/dist/client/assets/{index-C34u6PSm.js → index-CPp-3T8R.js} +1 -1
- package/dist/client/assets/{index-Bn2oEJye.js → index-CQ4OU5SG.js} +1 -1
- package/dist/client/assets/{index-BgCi7oO5.js → index-Cov_Guzr.js} +1 -1
- package/dist/client/assets/{index-C6H2oubI.js → index-Czyl40Yo.js} +1 -1
- package/dist/client/assets/{index-B55sS7_E.js → index-D3Ribt5F.js} +1 -1
- package/dist/client/assets/{index-Bno4hQSS.js → index-DF_fyalX.js} +1 -1
- package/dist/client/assets/{index-CSkdTWYd.js → index-De2W4Fh6.js} +1 -1
- package/dist/client/assets/{index-Bdaabwwx.js → index-DiDlqgd4.js} +1 -1
- package/dist/client/assets/{index-CFbzjrDU.js → index-Dji_l0xa.js} +4 -4
- package/dist/client/assets/{index-BhbqsWj0.js → index-c4IWlLfS.js} +1 -1
- package/dist/client/assets/{index-redirect-Cg0BDQlK.js → index-redirect-BvLQ4iq8.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-UgK429qS.js → infiniteQueryObserver-sLZJuWs1.js} +1 -1
- package/dist/client/assets/{input-DwZNdPHy.js → input-BdjjFpfr.js} +1 -1
- package/dist/client/assets/{integration-icon-CBe2H1CK.js → integration-icon-DjqEnfq3.js} +1 -1
- package/dist/client/assets/{label-4oCFH30G.js → label-C5JCVP3P.js} +1 -1
- package/dist/client/assets/{layout-DVfJUzzq.js → layout-K01ShTmz.js} +1 -1
- package/dist/client/assets/{login-okezlysx.js → login-Cni2d7NN.js} +1 -1
- package/dist/client/assets/{members-CLERhO5A.js → members-a7ObwkxU.js} +1 -1
- package/dist/client/assets/{monaco-editor-CB_L5Q_g.js → monaco-editor-D2Cgb5CL.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CmyF_9mp.js → monitoring-stats-row-Co_s1URu.js} +1 -1
- package/dist/client/assets/{oauth-callback-BXG4NwZh.js → oauth-callback-BT0UUcR2.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BnPVO-sU.js → oauth-callback-ai-provider-BMcv6iWf.js} +1 -1
- package/dist/client/assets/{onboarding-BSqDKN4n.js → onboarding-BLBFk2ZA.js} +1 -1
- package/dist/client/assets/{org-install-F0Blx0ik.js → org-install-BrfD2Fv0.js} +1 -1
- package/dist/client/assets/{org-layout-BSF2eWwr.js → org-layout-Bn3L93QB.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-Cy8OWL63.js → org-plugin-layout-Nka8ivWV.js} +1 -1
- package/dist/client/assets/{page-seo-form-DsSfrFx2.js → page-seo-form-CpoxmYxQ.js} +1 -1
- package/dist/client/assets/page-seo-sheet-Cni7GVIz.js +1 -0
- package/dist/client/assets/{pair-BUKInYHO.js → pair-Bui7pRoY.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BFoUX648.js → plugin-empty-state-5lCjYrbS.js} +1 -1
- package/dist/client/assets/{plugin-header-DQzSP9ZF.js → plugin-header-BFOQBz_i.js} +1 -1
- package/dist/client/assets/{plugin-layout-B7RnS0gK.js → plugin-layout-ONSas9Ui.js} +1 -1
- package/dist/client/assets/{popover-pbPJblFP.js → popover-cTB9T6zY.js} +1 -1
- package/dist/client/assets/{post-editor-Ct8uL9lS.js → post-editor-N9xx8HEl.js} +1 -1
- package/dist/client/assets/{primitives-D4DINGOQ.js → primitives-BY4b05zg.js} +1 -1
- package/dist/client/assets/{profile-GChqLjKK.js → profile-C-xaCM8D.js} +1 -1
- package/dist/client/assets/project-app-view-CLSVHcb8.js +1 -0
- package/dist/client/assets/record-editor-tc1QZAky.js +1 -0
- package/dist/client/assets/registry-HzF1Dkk-.js +2 -0
- package/dist/client/assets/{registry-layout-BUzClddy.js → registry-layout-oMaQFjep.js} +1 -1
- package/dist/client/assets/{require-capability-D0GS6z32.js → require-capability-CG52f6R3.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DHWUJ_wT.js → required-auth-layout-RkDlrM0L.js} +1 -1
- package/dist/client/assets/{reset-password-BS1iqoj0.js → reset-password-DfZLgZJf.js} +1 -1
- package/dist/client/assets/{resizable-DhLCux-y.js → resizable-BRPR_6nf.js} +1 -1
- package/dist/client/assets/{roles-BNQvS-Ms.js → roles-iynUa3v9.js} +1 -1
- package/dist/client/assets/{save-status-D1nMYaPA.js → save-status-Cs4ql7Lz.js} +1 -1
- package/dist/client/assets/{schema-form-BHbbVGcy.js → schema-form-BQLwCXS8.js} +1 -1
- package/dist/client/assets/{scroll-area-DMpuHtIE.js → scroll-area-DMkk7C5X.js} +1 -1
- package/dist/client/assets/{search-input-Br9hH5ca.js → search-input-C-P2O70i.js} +1 -1
- package/dist/client/assets/{secrets-wDf_j2Pb.js → secrets-mBqxX3ne.js} +1 -1
- package/dist/client/assets/{sections-editor-C0HkgTTy.js → sections-editor-CkUdgmBv.js} +1 -1
- package/dist/client/assets/{select-DUB_e2wA.js → select-877_XRoe.js} +1 -1
- package/dist/client/assets/{select-model-n2hGgZkG.js → select-model-C_cur-rH.js} +1 -1
- package/dist/client/assets/{seo-editor-C9Aqp93i.js → seo-editor-D8nPTKAd.js} +1 -1
- package/dist/client/assets/settings-layout-Dbfjpv2r.js +1 -0
- package/dist/client/assets/{settings-section-c0dyQilc.js → settings-section-kr7Y9bP9.js} +1 -1
- package/dist/client/assets/{sheet-CQuYX4pr.js → sheet-Dsz02SFl.js} +1 -1
- package/dist/client/assets/{shell-controls-haAPWYdb.js → shell-controls-DTLIiy6L.js} +1 -1
- package/dist/client/assets/{shell-layout-iqX4bmcb.js → shell-layout-CH8oYCM2.js} +1 -1
- package/dist/client/assets/shell-route-loading-Cn0fA0CZ.js +1 -0
- package/dist/client/assets/{sidebar-CUicHm9C.js → sidebar-OlCqSXPX.js} +1 -1
- package/dist/client/assets/{skeleton-CaDhIMN5.js → skeleton-CoJAV87H.js} +1 -1
- package/dist/client/assets/{sortable.esm-DHLq9Pb_.js → sortable.esm-ZerYvs9l.js} +1 -1
- package/dist/client/assets/{spinner-d6yvFwOg.js → spinner-CYDSZGqh.js} +1 -1
- package/dist/client/assets/{sso-k1LlLt2L.js → sso-AzS0X9Dv.js} +1 -1
- package/dist/client/assets/{store-COFkGwT_.js → store-2U1XV2kz.js} +1 -1
- package/dist/client/assets/store-registry-DWHj3GiE.js +2 -0
- package/dist/client/assets/{switch-CEixFBdL.js → switch-Bazzokl_.js} +1 -1
- package/dist/client/assets/{tab-id-DvasrPZC.js → tab-id-DrhK90L3.js} +1 -1
- package/dist/client/assets/{table-BwGGIiJ5.js → table-Do8GxGTj.js} +1 -1
- package/dist/client/assets/{tabs-Bo7dHK4T.js → tabs-D9ntWD-6.js} +1 -1
- package/dist/client/assets/{task-status-Cu-l7Iv4.js → task-status-Sjdts0gR.js} +1 -1
- package/dist/client/assets/{textarea-DHyB0Smt.js → textarea-D91MKpZC.js} +1 -1
- package/dist/client/assets/{toggle-group-calkhzKZ.js → toggle-group-DGrm2vuO.js} +1 -1
- package/dist/client/assets/{toolbar-NS6fUdLE.js → toolbar-Dy7jx2bJ.js} +1 -1
- package/dist/client/assets/{tools-list-CHRbHPAT.js → tools-list-BmmPeFb6.js} +1 -1
- package/dist/client/assets/{tooltip-c0JCK6eh.js → tooltip-BXkAyk_s.js} +1 -1
- package/dist/client/assets/{types-BqTbtprH.js → types-j6zTjYLW.js} +1 -1
- package/dist/client/assets/{use-ai-providers-ClrNZ9KV.js → use-ai-providers-DuBmTMbG.js} +1 -1
- package/dist/client/assets/{use-automations-D_GOMI0Y.js → use-automations-ClchBd2q.js} +1 -1
- package/dist/client/assets/{use-capability-D2Lekzsm.js → use-capability-4Bqq3Ptd.js} +1 -1
- package/dist/client/assets/{use-collections-BdrLE9lf.js → use-collections-HtykhO8E.js} +1 -1
- package/dist/client/assets/{use-connection-Bna7-Lpr.js → use-connection-CFCjzYr3.js} +1 -1
- package/dist/client/assets/{use-copy-9jbZNRel.js → use-copy-D2WKzb4n.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BrzNeIRQ.js → use-create-virtual-mcp-D8DtJRBD.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BZksQLwZ.js → use-debounced-autosave-B_zQVx0C.js} +1 -1
- package/dist/client/assets/{use-delete-connection-B9QWDFwu.js → use-delete-connection-CcHH3N6L.js} +1 -1
- package/dist/client/assets/{use-file-configs-mDsJFR6O.js → use-file-configs-BdoGIuji.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BmCBqG2s.js → use-infinite-scroll--wh3054T.js} +1 -1
- package/dist/client/assets/{use-list-state-5PGktjrQ.js → use-list-state-Dgqvi_Qc.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-zOwt9lRN.js → use-mcp-prompts-Cs73_aGi.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CVwEyvG9.js → use-mcp-tools-C1gRGhR_.js} +1 -1
- package/dist/client/assets/{use-members-BpSAkPCJ.js → use-members-PGJbXmC6.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CLGcl9A6.js → use-navigate-to-agent-BU3cK_V3.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-NzYQ0X0A.js → use-org-auth-client-DDgSMc-B.js} +1 -1
- package/dist/client/assets/{use-org-sso-CM2A8YLV.js → use-org-sso-BAFZBkLH.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BY_DCVFa.js → use-organization-roles-Dh3C98N-.js} +1 -1
- package/dist/client/assets/{use-organization-settings-oXVZ3xqu.js → use-organization-settings-DyFbECeN.js} +1 -1
- package/dist/client/assets/{use-registry-connections-C77RjnzI.js → use-registry-connections-Bk2SQzaL.js} +1 -1
- package/dist/client/assets/{use-secrets-TPJVmW_G.js → use-secrets-7GF-cSiL.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CM-eJHCl.js → use-status-sounds-CvJbKYn3.js} +1 -1
- package/dist/client/assets/{use-view-mode-CIGO_mC0.js → use-view-mode-DitlqWxa.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BA-W1Vhc.js → use-virtual-mcp-Cvm4KLIO.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BXWzDcVY.js +1 -0
- package/dist/client/assets/{useRouterState-wqO08_go.js → useRouterState-ComuFEbk.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-C3HFhtdp.js +1 -0
- package/dist/client/assets/{user-CctTJX2g.js → user-Bkww3yLN.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DvvzCaLm.js → view-mode-toggle-2ZW6tMJS.js} +1 -1
- package/dist/client/assets/{workflow-CijEnEyN.js → workflow-Dt_Gbo2I.js} +1 -1
- package/dist/client/assets/workflow-detail-cuV7fAVn.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +380 -380
- package/dist/server/server.js +244 -244
- package/package.json +1 -1
- package/dist/client/assets/app-editor-CNQX0fRz.js +0 -1
- package/dist/client/assets/page-seo-sheet-51vZvU9M.js +0 -1
- package/dist/client/assets/project-app-view-hOIqQC_C.js +0 -1
- package/dist/client/assets/record-editor-BrKRPPKj.js +0 -1
- package/dist/client/assets/registry-DKsLffG0.js +0 -2
- package/dist/client/assets/settings-layout-CBNchIFt.js +0 -1
- package/dist/client/assets/shell-route-loading-4HloIA9a.js +0 -1
- package/dist/client/assets/store-registry-Krrosx15.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CNKhmBjK.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-ojQaNUtI.js +0 -1
- package/dist/client/assets/workflow-detail-7ioCF-1N.js +0 -1
|
@@ -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-BD0Vs-CA.js";import{S,u as P}from"./constants-D3TwDQx3.js";function A(t,e){return{queryKey:m.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>(await t.callTool({name:"AI_PROVIDER_KEY_LIST",arguments:{}})).structuredContent??null}}function q(){const t=g.c(10),{org:e}=f();let s;t[0]!==e.id||t[1]!==e.slug?(s={connectionId:S,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=s):s=t[2];const o=P(s);let i;t[3]!==e.id?(i=m.aiProviders(e.id),t[3]=e.id,t[4]=i):i=t[4];let l;t[5]!==o?(l=async()=>(await o.callTool({name:"AI_PROVIDERS_LIST",arguments:{}})).structuredContent,t[5]=o,t[6]=l):l=t[6];let n;t[7]!==i||t[8]!==l?(n={queryKey:i,staleTime:1/0,queryFn:l},t[7]=i,t[8]=l,t[9]=n):n=t[9];const{data:r}=_(n);return r}function v(){const t=g.c(8),{org:e}=f();let s;t[0]!==e.id||t[1]!==e.slug?(s={connectionId:S,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=s):s=t[2];const o=P(s);let i;t[3]!==o||t[4]!==e.id?(i=A(o,e.id),t[3]=o,t[4]=e.id,t[5]=i):i=t[5];const{data:l}=_(i);let n;return t[6]!==l?.keys?(n=l?.keys??[],t[6]=l?.keys,t[7]=n):n=t[7],n}function R(t){const e=g.c(18),{org:s}=f();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:S,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const i=P(o);let l;e[3]!==t||e[4]!==s.id?(l=m.aiProviderModels(s.id,t??""),e[3]=t,e[4]=s.id,e[5]=l):l=e[5];const n=!!t;let r;e[6]!==i||e[7]!==t?(r=async()=>(await i.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:t}})).structuredContent??null,e[6]=i,e[7]=t,e[8]=r):r=e[8];let u;e[9]!==l||e[10]!==n||e[11]!==r?(u={queryKey:l,enabled:n,staleTime:6e4,queryFn:r},e[9]=l,e[10]=n,e[11]=r,e[12]=u):u=e[12];const{data:c,isLoading:T}=I(u);let a;e[13]!==c?.models?(a=c?.models??[],e[13]=c?.models,e[14]=a):a=e[14];const y=!!t&&T;let d;return e[15]!==a||e[16]!==y?(d={models:a,isLoading:y},e[15]=a,e[16]=y,e[17]=d):d=e[17],d}function p(t){const e=g.c(14),{org:s}=f();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:S,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const i=P(o);let l;e[3]!==t||e[4]!==s.id?(l=m.aiProviderModels(s.id,t),e[3]=t,e[4]=s.id,e[5]=l):l=e[5];let n;e[6]!==i||e[7]!==t?(n=async()=>(await i.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:t}})).structuredContent??null,e[6]=i,e[7]=t,e[8]=n):n=e[8];let r;e[9]!==l||e[10]!==n?(r={queryKey:l,staleTime:6e4,queryFn:n},e[9]=l,e[10]=n,e[11]=r):r=e[11];const{data:u}=_(r);let c;return e[12]!==u?.models?(c=u?.models??[],e[12]=u?.models,e[13]=c):c=e[13],c}export{A as a,R as b,q as c,p as d,v as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as q,q as U,K as T,n as x,F as V,a as f,o as g}from"./index-
|
|
1
|
+
import{e as q,q as U,K as T,n as x,F as V,a as f,o as g}from"./index-BD0Vs-CA.js";import{S as D,u as G}from"./constants-D3TwDQx3.js";function Y(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function st(t){const e=q.c(12),{org:s}=U(),o=t??D;let a;e[0]!==s.id||e[1]!==s.slug||e[2]!==o?(a={connectionId:o,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o,e[3]=a):a=e[3];const u=G(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let r;e[6]!==u?(r=async()=>{const d=await u.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(Y)},e[6]=u,e[7]=r):r=e[7];const l=!!t;let c;return e[8]!==n||e[9]!==r||e[10]!==l?(c={queryKey:n,queryFn:r,enabled:l,staleTime:3e4},e[8]=n,e[9]=r,e[10]=l,e[11]=c):c=e[11],x(c)}function nt(t){const e=q.c(12),{org:s}=U();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:D,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const a=G(o);let u;e[3]!==s.id||e[4]!==t?(u=T.automations(s.id,t),e[3]=s.id,e[4]=t,e[5]=u):u=e[5];let n;e[6]!==a||e[7]!==t?(n=async()=>{const l=t!=null?{virtual_mcp_id:t}:{},c=await a.callTool({name:"AUTOMATION_LIST",arguments:l});return(c.structuredContent??c).automations},e[6]=a,e[7]=t,e[8]=n):n=e[8];let r;return e[9]!==u||e[10]!==n?(r={queryKey:u,queryFn:n,staleTime:1e4},e[9]=u,e[10]=n,e[11]=r):r=e[11],x(r)}function ot(t){const e=q.c(13),{org:s}=U();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:D,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const a=G(o);let u;e[3]!==t||e[4]!==s.id?(u=T.automation(s.id,t),e[3]=t,e[4]=s.id,e[5]=u):u=e[5];let n;e[6]!==a||e[7]!==t?(n=async()=>{const c=await a.callTool({name:"AUTOMATION_GET",arguments:{id:t}});return(c.structuredContent??c).automation},e[6]=a,e[7]=t,e[8]=n):n=e[8];const r=!!t;let l;return e[9]!==u||e[10]!==n||e[11]!==r?(l={queryKey:u,queryFn:n,enabled:r,staleTime:1e4},e[9]=u,e[10]=n,e[11]=r,e[12]=l):l=e[12],x(l)}function it(t,e){const s=q.c(15),{org:o}=U();let a;s[0]!==o.id||s[1]!==o.slug?(a={connectionId:D,orgId:o.id,orgSlug:o.slug},s[0]=o.id,s[1]=o.slug,s[2]=a):a=s[2];const u=G(a);let n;s[3]!==t||s[4]!==o.id||s[5]!==e?(n=T.automationRunStats(o.id,t,JSON.stringify(e??{})),s[3]=t,s[4]=o.id,s[5]=e,s[6]=n):n=s[6];let r;s[7]!==t||s[8]!==u||s[9]!==e?(r=async()=>{const d=await u.callTool({name:"AUTOMATION_RUN_STATS",arguments:{automation_id:t,...e?.startDate?{startDate:e.startDate}:{},...e?.endDate?{endDate:e.endDate}:{}}});return d.structuredContent??d},s[7]=t,s[8]=u,s[9]=e,s[10]=r):r=s[10];const l=!!t;let c;return s[11]!==n||s[12]!==r||s[13]!==l?(c={queryKey:n,queryFn:r,enabled:l,staleTime:3e4},s[11]=n,s[12]=r,s[13]=l,s[14]=c):c=s[14],x(c)}function at(t){return{name:"New Automation",messages:[],models:{tier:"smart"},temperature:.5,active:!0,virtual_mcp_id:t}}function rt(){const t=q.c(67),{org:e}=U();let s;t[0]!==e.id||t[1]!==e.slug?(s={connectionId:D,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=s):s=t[2];const o=G(s),a=V();let u;t[3]!==e.id||t[4]!==a?(u=()=>a.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[3]=e.id,t[4]=a,t[5]=u):u=t[5];const n=u;let r;t[6]!==e.id||t[7]!==a?(r=m=>a.invalidateQueries({queryKey:T.automation(e.id,m)}),t[6]=e.id,t[7]=a,t[8]=r):r=t[8];const l=r;let c;t[9]!==o?(c=async m=>{const i=await o.callTool({name:"AUTOMATION_CREATE",arguments:m});return i.structuredContent??i},t[9]=o,t[10]=c):c=t[10];let d;t[11]!==n?(d=()=>{n(),g.success("Automation created successfully")},t[11]=n,t[12]=d):d=t[12];let N;t[13]!==c||t[14]!==d?(N={mutationFn:c,onSuccess:d,onError:Z},t[13]=c,t[14]=d,t[15]=N):N=t[15];const k=f(N);let y;t[16]!==o?(y=async m=>{const i=await o.callTool({name:"AUTOMATION_UPDATE",arguments:m});return i.structuredContent??i},t[16]=o,t[17]=y):y=t[17];let _;t[18]!==n||t[19]!==l?(_=(m,i)=>{n(),typeof i.id=="string"&&l(i.id),g.success("Automation updated successfully")},t[18]=n,t[19]=l,t[20]=_):_=t[20];let $;t[21]!==y||t[22]!==_?($={mutationFn:y,onSuccess:_,onError:X},t[21]=y,t[22]=_,t[23]=$):$=t[23];const Q=f($);let A;t[24]!==o?(A=async m=>{const i=await o.callTool({name:"AUTOMATION_DELETE",arguments:{id:m}});return i.structuredContent??i},t[24]=o,t[25]=A):A=t[25];let p;t[26]!==n||t[27]!==e.id||t[28]!==a?(p=(m,i)=>{a.removeQueries({queryKey:T.automation(e.id,i)}),n(),g.success("Automation deleted successfully")},t[26]=n,t[27]=e.id,t[28]=a,t[29]=p):p=t[29];let K;t[30]!==p||t[31]!==A?(K={mutationFn:A,onSuccess:p,onError:W},t[30]=p,t[31]=A,t[32]=K):K=t[32];const j=f(K);let E;t[33]!==o?(E=async m=>{const i=await o.callTool({name:"AUTOMATION_TRIGGER_ADD",arguments:m});if(i.isError){const I=i.content?.[0]?.text??"Failed to add trigger";throw new Error(I)}return i.structuredContent??i},t[33]=o,t[34]=E):E=t[34];let S;t[35]!==n||t[36]!==l?(S=m=>{n(),l(m.automation_id)},t[35]=n,t[36]=l,t[37]=S):S=t[37];let w;t[38]!==E||t[39]!==S?(w={mutationFn:E,onSuccess:S},t[38]=E,t[39]=S,t[40]=w):w=t[40];const P=f(w);let O;t[41]!==o?(O=async m=>{const i=await o.callTool({name:"AUTOMATION_TRIGGER_ROTATE_TOKEN",arguments:{trigger_id:m.trigger_id}});if(i.isError){const I=i.content?.[0]?.text??"Failed to rotate token";throw new Error(I)}return i.structuredContent??i},t[41]=o,t[42]=O):O=t[42];let F;t[43]!==n||t[44]!==l?(F=(m,i)=>{n(),l(i.automation_id)},t[43]=n,t[44]=l,t[45]=F):F=t[45];let b;t[46]!==O||t[47]!==F?(b={mutationFn:O,onSuccess:F},t[46]=O,t[47]=F,t[48]=b):b=t[48];const v=f(b);let R;t[49]!==o?(R=async m=>{const i=await o.callTool({name:"AUTOMATION_TRIGGER_REMOVE",arguments:{trigger_id:m.trigger_id}});return i.structuredContent??i},t[49]=o,t[50]=R):R=t[50];let C;t[51]!==n||t[52]!==l?(C=(m,i)=>{n(),l(i.automation_id)},t[51]=n,t[52]=l,t[53]=C):C=t[53];let L;t[54]!==R||t[55]!==C?(L={mutationFn:R,onSuccess:C},t[54]=R,t[55]=C,t[56]=L):L=t[56];const z=f(L);let M;t[57]!==o?(M={mutationFn:async m=>{const i=await o.callTool({name:"AUTOMATION_RUN",arguments:{id:m}});if(i.isError){const I=i.content?.[0]?.text??"Failed to run automation";throw new Error(I)}return i.structuredContent??i},onSuccess:H,onError:B},t[57]=o,t[58]=M):M=t[58];const J=f(M);let h;return t[59]!==k||t[60]!==j||t[61]!==J||t[62]!==P||t[63]!==z||t[64]!==v||t[65]!==Q?(h={create:k,update:Q,remove:j,triggerAdd:P,triggerRemove:z,triggerRotateToken:v,run:J},t[59]=k,t[60]=j,t[61]=J,t[62]=P,t[63]=z,t[64]=v,t[65]=Q,t[66]=h):h=t[66],h}function B(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to run automation: ${e}`)}function H(t){t.skipped?g.info(`Automation skipped: ${t.skipped}`):t.error?g.error(`Automation failed: ${t.error}`):g.success("Automation triggered")}function W(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to delete automation: ${e}`)}function X(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to update automation: ${e}`)}function Z(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to create automation: ${e}`)}export{st as a,ot as b,nt as c,at as d,it as e,rt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as u,q as m,n as g,K as p}from"./index-
|
|
1
|
+
import{e as u,q as m,n as g,K as p}from"./index-BD0Vs-CA.js";const b=new Set(["owner","admin"]);function d(){const e=u.c(11),{org:r,locator:c}=m();let o;e[0]!==c?(o=p.myCapabilities(c),e[0]=c,e[1]=o):o=e[1];let a;e[2]!==r?(a=async()=>{const f=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(r.slug)}`,{credentials:"include"});if(!f.ok)throw new Error(`my-capabilities request failed: ${f.status}`);return await f.json()},e[2]=r,e[3]=a):a=e[3];let i;e[4]!==o||e[5]!==a?(i={queryKey:o,queryFn:a,staleTime:3e4,retry:2},e[4]=o,e[5]=a,e[6]=i):i=e[6];const{data:s,isLoading:l,isError:n}=g(i);let t;return e[7]!==s||e[8]!==n||e[9]!==l?(t={data:s,loading:l,error:n},e[7]=s,e[8]=n,e[9]=l,e[10]=t):t=e[10],t}function _(e){const r=u.c(8),{data:c,loading:o,error:a}=d();if(o){let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!0,error:!1,reason:"loading"},r[0]=t):t=r[0],t}if(a){let t;return r[1]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!0,reason:"error"},r[1]=t):t=r[1],t}const i=c?.role??null;if(!i){let t;return r[2]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!1,reason:"denied"},r[2]=t):t=r[2],t}if(i==="owner"){let t;return r[3]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"owner"},r[3]=t):t=r[3],t}if(i==="admin"){let t;return r[4]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"admin"},r[4]=t):t=r[4],t}const s=c?.capabilities?.[e]===!0,l=s?"role":"denied";let n;return r[5]!==s||r[6]!==l?(n={granted:s,loading:!1,error:!1,reason:l},r[5]=s,r[6]=l,r[7]=n):n=r[7],n}function S(){const e=u.c(10),{data:r,loading:c,error:o}=d(),a=r?.role??void 0;let i;e[0]!==a?(i=a?b.has(a):!1,e[0]=a,e[1]=i):i=e[1];const s=i;let l;e[2]!==r?.capabilities?(l=r?.capabilities??{},e[2]=r?.capabilities,e[3]=l):l=e[3];const n=l;let t;return e[4]!==o||e[5]!==s||e[6]!==c||e[7]!==a||e[8]!==n?(t={capabilities:n,loading:c,error:o,isPrivileged:s,roleSlug:a},e[4]=o,e[5]=s,e[6]=c,e[7]=a,e[8]=n,e[9]=t):t=e[9],t}export{S as a,_ as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as v,F as b,a as A,s as x,o as _}from"./index-
|
|
1
|
+
import{e as v,F as b,a as A,s as x,o as _}from"./index-BD0Vs-CA.js";import{K as q}from"./constants-D3TwDQx3.js";function K(e,s,n){const t=[];if(e?.trim()){const o=e.trim(),r=n.map(a=>({field:[String(a)],operator:"contains",value:o}));r.length===1&&r[0]?t.push(r[0]):r.length>1&&t.push({operator:"or",conditions:r})}if(s&&s.length>0)for(const o of s)t.push({field:[o.column],operator:"eq",value:o.value});if(t.length!==0)return t.length===1?t[0]:{operator:"and",conditions:t}}function Q(e,s,n){const t=e??n,o=s??"desc";return[{field:[String(t)],direction:o}]}function O(e){if(!e||typeof e!="object")throw new Error("Invalid result");if("isError"in e&&e.isError)throw new Error("content"in e&&Array.isArray(e.content)&&e.content[0]?.type==="text"?e.content[0].text:"Unknown error");if("structuredContent"in e)return e.structuredContent;throw new Error("No structured content found")}function k(e,s,n,t){const o=s.toUpperCase(),r=`COLLECTION_${o}_GET`;return{queryKey:q.collectionItem(t,e,"",o,n??""),queryFn:async()=>{if(!n)return{item:null};const a=await t.callTool({name:r,arguments:{id:n}});return O(a)},staleTime:6e4}}function z(e,s,n,t){const o=v.c(5);let r;o[0]!==t||o[1]!==s||o[2]!==n||o[3]!==e?(r=k(e,s,n,t),o[0]=t,o[1]=s,o[2]=n,o[3]=e,o[4]=r):r=o[4];const{data:a}=x(r);return a?.item??null}const D={structuredContent:{items:[]},isError:!1};function G(e,s,n,t={}){const{searchTerm:o,filters:r,sortKey:a,sortDirection:L,searchFields:S=["title","description"],defaultSortKey:h="updated_at",pageSize:g=100,additionalToolArgs:c}=t,l=s.toUpperCase(),f=`COLLECTION_${l}_LIST`,p=K(o,r,S),T=Q(a,L,h),u={...p&&{where:p},...T&&{orderBy:T},limit:g,offset:0,...c},m=JSON.stringify(u),C=q.collectionList(n,e,"",l,m),{data:w}=x({queryKey:C,queryFn:async()=>n?await n.callTool({name:f,arguments:u}):D,staleTime:3e4,retry:!1,select:d=>O(d??{})?.items??[]});return w}function J(e,s,n){const t=v.c(34),o=b();let r;t[0]!==s?(r=s.toUpperCase(),t[0]=s,t[1]=r):r=t[1];const a=r,L=`COLLECTION_${a}_CREATE`,S=`COLLECTION_${a}_UPDATE`,h=`COLLECTION_${a}_DELETE`;let g;t[2]!==o||t[3]!==e||t[4]!==a?(g=()=>{o.invalidateQueries({predicate:E=>{const i=E.queryKey;return i[1]===e&&i[3]==="collection"&&i[4]===a}})},t[2]=o,t[3]=e,t[4]=a,t[5]=g):g=t[5];const c=g;let l;t[6]!==n||t[7]!==L?(l=async E=>{const i=await n.callTool({name:L,arguments:{data:E}});if(i.isError)throw new Error(Array.isArray(i.content)?i.content[0]?.text:String(i.content));return O(i).item},t[6]=n,t[7]=L,t[8]=l):l=t[8];let f;t[9]!==c?(f=()=>{c(),_.success("Item created successfully")},t[9]=c,t[10]=f):f=t[10];let p;t[11]!==l||t[12]!==f?(p={mutationFn:l,onSuccess:f,onError:B},t[11]=l,t[12]=f,t[13]=p):p=t[13];const T=A(p);let u;t[14]!==n||t[15]!==S?(u=async E=>{const{id:i,data:$}=E,U=await n.callTool({name:S,arguments:{id:i,data:$}});return O(U).item},t[14]=n,t[15]=S,t[16]=u):u=t[16];let m;t[17]!==c?(m=()=>{c(),_.success("Item updated successfully")},t[17]=c,t[18]=m):m=t[18];let C;t[19]!==u||t[20]!==m?(C={mutationFn:u,onSuccess:m,onError:R},t[19]=u,t[20]=m,t[21]=C):C=t[21];const w=A(C);let d;t[22]!==n||t[23]!==h?(d=async E=>{const i=await n.callTool({name:h,arguments:{id:E}});return O(i).item.id},t[22]=n,t[23]=h,t[24]=d):d=t[24];let y;t[25]!==c?(y=()=>{c(),_.success("Item deleted successfully")},t[25]=c,t[26]=y):y=t[26];let N;t[27]!==d||t[28]!==y?(N={mutationFn:d,onSuccess:y,onError:P},t[27]=d,t[28]=y,t[29]=N):N=t[29];const F=A(N);let I;return t[30]!==T||t[31]!==F||t[32]!==w?(I={create:T,update:w,delete:F},t[30]=T,t[31]=F,t[32]=w,t[33]=I):I=t[33],I}function P(e){const s=e instanceof Error?e.message:String(e);_.error(`Failed to delete item: ${s}`)}function R(e){const s=e instanceof Error?e.message:String(e);_.error(`Failed to update item: ${s}`)}function B(e){const s=e instanceof Error?e.message:String(e);_.error(`Failed to create item: ${s}`)}export{J as a,G as b,k as c,z as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as f,q as C}from"./index-
|
|
1
|
+
import{e as f,q as C}from"./index-BD0Vs-CA.js";import{u as N,b as O,a as S}from"./use-collections-HtykhO8E.js";import{S as I,u as m}from"./constants-D3TwDQx3.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-BD0Vs-CA.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-BrzNeIRQ.js → use-create-virtual-mcp-D8DtJRBD.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as g}from"./index-
|
|
1
|
+
import{e as g}from"./index-BD0Vs-CA.js";import{b as f}from"./use-virtual-mcp-Cvm4KLIO.js";import{k as p}from"./use-navigate-to-agent-BU3cK_V3.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-BZksQLwZ.js → use-debounced-autosave-B_zQVx0C.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u}from"./index-
|
|
1
|
+
import{r as u}from"./index-BD0Vs-CA.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-B9QWDFwu.js → use-delete-connection-CcHH3N6L.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as R,j as n,q as H,F as J,r as K,o as S}from"./index-
|
|
1
|
+
import{e as R,j as n,q as H,F as J,r as K,o as S}from"./index-BD0Vs-CA.js";import{c as w,b as L,d as $,f as k,e as q,g as M,a as P,A as U}from"./alert-dialog-wo7djkDg.js";import{u as z,S as B}from"./constants-D3TwDQx3.js";function X(j){const e=R.c(41),{deleteState:r,cancelDelete:i,confirmDelete:a,confirmForceDelete:l}=j,y=r.mode==="deleting";let d;e[0]!==i?(d=I=>{I||i()},e[0]=i,e[1]=d):d=e[1];let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx(w,{children:"Delete Connection?"}),e[2]=N):N=e[2];const T=r.mode==="deleting"&&r.connection.title;let m;e[3]!==T?(m=n.jsxs(L,{children:[N,n.jsxs($,{children:["This action cannot be undone. This will permanently delete"," ",n.jsx("span",{className:"font-medium text-foreground",children:T}),"."]})]}),e[3]=T,e[4]=m):m=e[4];let E;e[5]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx(k,{children:"Cancel"}),e[5]=E):E=e[5];let o;e[6]!==a?(o=n.jsxs(q,{children:[E,n.jsx(M,{onClick:a,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[6]=a,e[7]=o):o=e[7];let t;e[8]!==m||e[9]!==o?(t=n.jsxs(P,{children:[m,o]}),e[8]=m,e[9]=o,e[10]=t):t=e[10];let s;e[11]!==y||e[12]!==d||e[13]!==t?(s=n.jsx(U,{open:y,onOpenChange:d,children:t}),e[11]=y,e[12]=d,e[13]=t,e[14]=s):s=e[14];const _=r.mode==="force-deleting";let c;e[15]!==i?(c=I=>{I||i()},e[15]=i,e[16]=c):c=e[16];let f;e[17]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(w,{children:"Connection Used by Agents"}),e[17]=f):f=e[17];const v=r.mode==="force-deleting"&&r.connection.title;let u;e[18]!==v?(u=n.jsx("span",{className:"font-medium text-foreground",children:v}),e[18]=v,e[19]=u):u=e[19];const F=r.mode==="force-deleting"&&r.agentNames;let g;e[20]!==F?(g=n.jsx("span",{className:"font-medium text-foreground",children:F}),e[20]=F,e[21]=g):g=e[21];let h;e[22]!==u||e[23]!==g?(h=n.jsxs("p",{children:["The connection"," ",u," ","is currently used by the following agent(s):"," ",g,"."]}),e[22]=u,e[23]=g,e[24]=h):h=e[24];let A;e[25]===Symbol.for("react.memo_cache_sentinel")?(A=n.jsx("p",{className:"mt-2",children:"Deleting this connection will remove it from those agents, which may impact existing workflows that depend on them."}),e[25]=A):A=e[25];let x;e[26]!==h?(x=n.jsxs(L,{children:[f,n.jsx($,{asChild:!0,children:n.jsxs("div",{children:[h,A]})})]}),e[26]=h,e[27]=x):x=e[27];let O;e[28]===Symbol.for("react.memo_cache_sentinel")?(O=n.jsx(k,{children:"Cancel"}),e[28]=O):O=e[28];let C;e[29]!==l?(C=n.jsxs(q,{children:[O,n.jsx(M,{onClick:l,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete Anyway"})]}),e[29]=l,e[30]=C):C=e[30];let D;e[31]!==x||e[32]!==C?(D=n.jsxs(P,{children:[x,C]}),e[31]=x,e[32]=C,e[33]=D):D=e[33];let p;e[34]!==_||e[35]!==c||e[36]!==D?(p=n.jsx(U,{open:_,onOpenChange:c,children:D}),e[34]=_,e[35]=c,e[36]=D,e[37]=p):p=e[37];let b;return e[38]!==p||e[39]!==s?(b=n.jsxs(n.Fragment,{children:[s,p]}),e[38]=p,e[39]=s,e[40]=b):b=e[40],b}function Q(j){const e=j.content;return Array.isArray(e)&&e[0]?.type==="text"&&typeof e[0].text=="string"?e[0].text:"Unknown error"}function Y({onSuccess:j}={}){const{org:e}=H(),r=J(),i=z({connectionId:B,orgId:e.id,orgSlug:e.slug}),[a,l]=K.useState({mode:"idle"}),y=()=>{r.invalidateQueries({predicate:o=>{const t=o.queryKey;return t[1]===e.id&&t[3]==="collection"&&t[4]==="CONNECTIONS"}})},d=()=>{y(),S.success("Connection deleted successfully"),l({mode:"idle"}),j?.()};return{deleteState:a,requestDelete:o=>{l({mode:"deleting",connection:o})},cancelDelete:()=>{l({mode:"idle"})},confirmDelete:async()=>{if(a.mode!=="deleting")return;const o=a.connection;l({mode:"idle"});try{const t=await i.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:o.id}});if(t.isError){const s=Q(t),_=s.replace(/^Error:\s*/,"");try{const c=JSON.parse(_);if(c.code==="CONNECTION_IN_USE"&&c.agentNames){l({mode:"force-deleting",connection:o,agentNames:c.agentNames.map(f=>`"${f}"`).join(", ")});return}}catch{}S.error(`Failed to delete connection: ${s}`);return}d()}catch(t){const s=t instanceof Error?t.message:String(t);S.error(`Failed to delete connection: ${s}`)}},confirmForceDelete:async()=>{if(a.mode!=="force-deleting")return;const o=a.connection.id;l({mode:"idle"});try{const t=await i.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:o,force:!0}});if(t.isError){S.error(`Failed to delete connection: ${Q(t)}`);return}d()}catch(t){const s=t instanceof Error?t.message:String(t);S.error(`Failed to delete connection: ${s}`)}}}}export{X as D,Y as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c,q as a,K as g,s as F,n as S,F as y,a as I}from"./index-
|
|
1
|
+
import{e as c,q as a,K as g,s as F,n as S,F as y,a as I}from"./index-BD0Vs-CA.js";import{S as f,u as d}from"./constants-D3TwDQx3.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-BmCBqG2s.js → use-infinite-scroll--wh3054T.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./index-
|
|
1
|
+
import{r as e}from"./index-BD0Vs-CA.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-BD0Vs-CA.js";import{u as E}from"./use-view-mode-DitlqWxa.js";function J(a){const e=`deco-filters-${a}`,[s,i]=u.useState(()=>{try{const t=globalThis.localStorage?.getItem(e);if(t)return JSON.parse(t)}catch(t){console.error("Failed to parse stored filters:",t)}return[]});return[s,t=>{i(t);try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch(l){console.error("Failed to save filters:",l)}}]}function N(a){const e=w.c(7),[s,i]=u.useState(a),[r,t]=u.useState(a?"desc":null);let l;e[0]!==r||e[1]!==s?(l=S=>{s!==S?(i(S),t("asc")):r==="asc"?t("desc"):r==="desc"&&(i(void 0),t(null))},e[0]=r,e[1]=s,e[2]=l):l=e[2];const d=l;let o;return e[3]!==d||e[4]!==r||e[5]!==s?(o={sortKey:s,sortDirection:r,handleSort:d},e[3]=d,e[4]=r,e[5]=s,e[6]=o):o=e[6],o}function W(a){const e=w.c(20),{namespace:s,resource:i,defaultSortKey:r,defaultViewMode:t}=a,l=r===void 0?"title":r,d=t===void 0?"table":t,[o,S]=u.useState(""),b=u.useDeferredValue(o),D=`${s}-${i}`,[p,F]=J(D),c=`mesh-${i}-filter-visible-${s}`;let g;e[0]!==c?(g=()=>globalThis.localStorage?.getItem(c)==="true",e[0]=c,e[1]=g):g=e[1];const[n,x]=u.useState(g);let h;e[2]!==c?(h=T=>{x(T),globalThis.localStorage?.setItem(c,String(T))},e[2]=c,e[3]=h):h=e[3];const f=h;let m;e[4]!==n||e[5]!==f?(m=()=>{f(!n)},e[4]=n,e[5]=f,e[6]=m):m=e[6];const V=m,[$,K]=E(`mesh-${i}-${s}`,d),{sortKey:I,sortDirection:v,handleSort:B}=N(l),M=I;let y;return e[7]!==n||e[8]!==p||e[9]!==B||e[10]!==o||e[11]!==b||e[12]!==f||e[13]!==F||e[14]!==K||e[15]!==v||e[16]!==M||e[17]!==V||e[18]!==$?(y={search:o,searchTerm:b,setSearch:S,filters:p,setFilters:F,filterBarVisible:n,setFilterBarVisible:f,toggleFilterBar:V,viewMode:$,setViewMode:K,sortKey:M,sortDirection:v,handleSort:B},e[7]=n,e[8]=p,e[9]=B,e[10]=o,e[11]=b,e[12]=f,e[13]=F,e[14]=K,e[15]=v,e[16]=M,e[17]=V,e[18]=$,e[19]=y):y=e[19],y}export{W as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as l,n as c,bA as m,bB as f,s as y}from"./index-
|
|
1
|
+
import{e as l,n as c,bA as m,bB as f,s as y}from"./index-BD0Vs-CA.js";import{K as n}from"./constants-D3TwDQx3.js";async function u(r){if(!r.getServerCapabilities()?.prompts)return{prompts:[]};try{return await r.listPrompts()}catch(t){if(t instanceof m&&t.code===f.MethodNotFound)return{prompts:[]};throw t}}async function g(r,e,t){if(!r.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await r.getPrompt({name:e,arguments:t??{}})}function q(r){const e=l.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=()=>u(t),e[5]=t,e[6]=o):o=e[6];const p=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==i||e[9]!==o||e[10]!==p?(a={...s,queryKey:i,queryFn:o,staleTime:p,retry:!1},e[7]=s,e[8]=i,e[9]=o,e[10]=p,e[11]=a):a=e[11],y(a)}function d(r){const e=l.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=()=>u(t),e[5]=t,e[6]=o):o=e[6];const p=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==i||e[9]!==o||e[10]!==p?(a={...s,queryKey:i,queryFn:o,staleTime:p,retry:!1},e[7]=s,e[8]=i,e[9]=o,e[10]=p,e[11]=a):a=e[11],c(a)}export{d as a,g,u as l,q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as m,n as p,s as q,a as C}from"./index-
|
|
1
|
+
import{e as m,n as p,s as q,a as C}from"./index-BD0Vs-CA.js";import{K as T}from"./constants-D3TwDQx3.js";function M(a){const e=m.c(12);let t,s;e[0]!==a?({client:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],q(n)}function O(a){const e=m.c(12);let t,s;e[0]!==a?({client:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],p(n)}function w(a){const e=m.c(21);let t,s,l,o;e[0]!==a?({client:t,toolName:o,toolArguments:l,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const f=JSON.stringify(l??{});u=q,i=s,n=T.mcpToolCall(t,o,f),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let r;e[12]!==t||e[13]!==l||e[14]!==o?(r=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=r):r=e[15];const y=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==r||e[19]!==y?(c={...i,queryKey:n,queryFn:r,staleTime:y,retry:!1},e[16]=i,e[17]=n,e[18]=r,e[19]=y,e[20]=c):c=e[20],u(c)}function F(a){const e=m.c(21);let t,s,l,o;e[0]!==a?({client:t,toolName:o,toolArguments:l,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const f=JSON.stringify(l??{});u=p,i=s,n=T.mcpToolCall(t,o,f),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let r;e[12]!==t||e[13]!==l||e[14]!==o?(r=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=r):r=e[15];const y=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==r||e[19]!==y?(c={...i,queryKey:n,queryFn:r,staleTime:y,retry:!1},e[16]=i,e[17]=n,e[18]=r,e[19]=y,e[20]=c):c=e[20],u(c)}function P(a){const e=m.c(8);let t,s;e[0]!==a?({client:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=async i=>await t.callTool(i),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o={...s,mutationFn:l},e[5]=s,e[6]=l,e[7]=o):o=e[7],C(o)}export{M as a,O as b,w as c,P as d,F as u};
|
|
@@ -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-BD0Vs-CA.js";import{u as a}from"./use-org-auth-client-DDgSMc-B.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-CLGcl9A6.js → use-navigate-to-agent-BU3cK_V3.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-BD0Vs-CA.js";import{a as q}from"./use-virtual-mcp-Cvm4KLIO.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-NzYQ0X0A.js → use-org-auth-client-DDgSMc-B.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-BD0Vs-CA.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,F as l,a as y,K as c}from"./index-
|
|
1
|
+
import{e as u,n as S,F as l,a as y,K as c}from"./index-BD0Vs-CA.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-BY_DCVFa.js → use-organization-roles-Dh3C98N-.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as R}from"./use-org-auth-client-
|
|
1
|
+
import{u as R}from"./use-org-auth-client-DDgSMc-B.js";import{q as b,n as P,K as y}from"./index-BD0Vs-CA.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,F as C,a as P,r as R}from"./index-
|
|
1
|
+
import{K as g,e as c,q as _,n as z,F as C,a as P,r as R}from"./index-BD0Vs-CA.js";import{S as h,u as A,W as b}from"./constants-D3TwDQx3.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],P(a)}function G(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 G(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=R.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=b.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-BD0Vs-CA.js";import{u as R}from"./use-connection-CFCjzYr3.js";import{W as u}from"./constants-D3TwDQx3.js";import{g as p}from"./use-organization-settings-DyFbECeN.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,F as C,a as E}from"./index-
|
|
1
|
+
import{e as a,q as c,K as d,s as y,F as C,a as E}from"./index-BD0Vs-CA.js";import{S as g,u as m}from"./constants-D3TwDQx3.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-BD0Vs-CA.js";import{p as R,q as I}from"./question-004-sINsf4GQ.js";import{d as y,D as S}from"./decopilot-sse-pool-BegF480x.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-BD0Vs-CA.js";import{u as w}from"./tooltip-BXkAyk_s.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,n as p}from"./index-
|
|
1
|
+
import{e as a,q as d,n as p}from"./index-BD0Vs-CA.js";import{b as P,a as L,u as S,c as V}from"./use-collections-HtykhO8E.js";import{S as g,u as I,K as _}from"./constants-D3TwDQx3.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 P(i.id,"VIRTUAL_MCP",l,n)}function R(s,t,e){return V(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 S(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=_.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 L(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-sLZJuWs1.js";import{cv as i}from"./index-BD0Vs-CA.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bh as s,r as c,bK as a,bL as i}from"./index-
|
|
1
|
+
import{bh as s,r as c,bK as a,bL as i}from"./index-BD0Vs-CA.js";function f(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{f as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-sLZJuWs1.js";import{cv as u,aE as n}from"./index-BD0Vs-CA.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-BD0Vs-CA.js";import{A as E}from"./avatar-DZZ4PPWC.js";import{S as A,u as _}from"./constants-D3TwDQx3.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-BD0Vs-CA.js";import{b as I,T as P,a as L}from"./tooltip-BXkAyk_s.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as oe,j as t,B as Ce,f as Be,b as ct,q as ze,r as dt,o as Fe,F as mt,a as pt,K as Le,e1 as Ke,dn as ut}from"./index-CM4eUM9Q.js";import{u as qe,S as Ve}from"./constants-DVPpd9QA.js";import{B as ft,g as Me}from"./generate-id-Lwmt2FKL.js";import{C as Qe}from"./collection-display-button-w5gZgVyn.js";import{C as ht}from"./collection-search-DZy7ZGM2.js";import{C as gt}from"./card-fKzJiL4z.js";import{I as Ge}from"./integration-icon-CBe2H1CK.js";import{D as He,a as Je,b as Ye,c as O}from"./dropdown-menu-Dp0AYb5Q.js";import{s as Xe,a as Ze}from"./Eye-D-e14RXi.js";import{i as et}from"./DotsVertical-DmUaYhK2.js";import{i as tt}from"./Tool01-B6ELFGh-.js";import{s as st}from"./Trash01-4Ps74tkv.js";import{C as xt}from"./collection-table-wrapper-BtKHdP44.js";import{E as Ue}from"./empty-state-CMCikW75.js";import{n as We}from"./Stars02-XWO6H1Re.js";import{U as jt}from"./user-CctTJX2g.js";import{E as it}from"./empty-state-C-Vzaz3T.js";import{u as Ct}from"./use-list-state-5PGktjrQ.js";import{g as bt}from"./connection-slug-eyAPH6o3.js";import{f as vt,g as yt,c as Nt,b as wt,d as St,e as Pt,a as _t,A as Dt}from"./alert-dialog-6ai-9HnX.js";import{a as It,b as At}from"./use-collections-BdrLE9lf.js";import{a as Tt}from"./use-connection-Bna7-Lpr.js";import{s as Et}from"./Plus-DTBFvoZ4.js";import{a as Ot}from"./layout-DVfJUzzq.js";import{P as je}from"./index-B55sS7_E.js";import"./collections-_mVHVGxv.js";import"./SwitchHorizontal01-Dc6vSFgX.js";import"./Check-BTi6aK2O.js";import"./tooltip-c0JCK6eh.js";import"./view-mode-toggle-DvvzCaLm.js";import"./badge-BvUmM76z.js";import"./SearchMd-CbQiai92.js";import"./Container-DqZ7iXxp.js";import"./agent-icon-B_Sssulg.js";import"./AlertCircle-dzvWxujb.js";import"./RefreshCcw01-BDUToMVd.js";import"./XCircle-BKXSa_VQ.js";import"./ArrowUpRight-CBMu0EOf.js";import"./ZapSquare-rvBlc1j-.js";import"./Users03-BkEliyJ2.js";import"./CheckCircle-C24wnP2Z.js";import"./ChevronDown-BZRrL23D.js";import"./ChevronLeft-DEtz4dkO.js";import"./ChevronRight-Ddjtetki.js";import"./ChevronUp-DhRFiyWk.js";import"./ZoomOut-Dk_N18Ki.js";import"./Globe01-D0-2dr7e.js";import"./FilterLines-Ceib5U8s.js";import"./Star01-CVzgxp1x.js";import"./Palette-C1AASxx2.js";import"./HardDrive-iB6HZdkm.js";import"./Key01-DJjMsflU.js";import"./LayoutLeft-DC99mmKb.js";import"./LinkExternal01-BpZEkrD7.js";import"./Monitor01-C8q7RxXu.js";import"./Sun-CbEJ7xkn.js";import"./Play-BHXb_TUr.js";import"./Settings02-Bu96rwA_.js";import"./Shield01-knE-M4LE.js";import"./Stars01-CDWeKJ6M.js";import"./Upload01-CnrDySm1.js";import"./User01-BA7YwKC-.js";import"./Users01-DvcVTQ1g.js";import"./XClose-D_AWgVIk.js";import"./X-Ch1EyNal.js";import"./Zap-C_lJ1cEb.js";import"./table-BwGGIiJ5.js";import"./avatar-O1JcTGgG.js";import"./use-view-mode-CIGO_mC0.js";import"./sidebar-CUicHm9C.js";import"./sheet-CQuYX4pr.js";function $t(i,e){const s=i.properties||{};for(const n in s){const c=s[n];if(c&&c.type==="string"&&(c.format==="url"||c.format==="uri")&&e&&typeof e=="object"&&n in e&&e[n])return e[n]}const l=["image","img","avatar","icon","logo","thumbnail","cover"];for(const n of l)if(e&&typeof e=="object"&&n in e&&typeof e[n]=="string")return e[n]}function kt(i){const e=oe.c(25),{item:s,schema:l,actions:n}=i;let c;e[0]!==s||e[1]!==l?(c=$t(l,s),e[0]=s,e[1]=l,e[2]=c):c=e[2];const r=c,u=s&&typeof s=="object"&&"description"in s&&typeof s.description=="string"?s.description:void 0;let d;e[3]!==n?(d=n&&Object.keys(n).length>0,e[3]=n,e[4]=d):d=e[4];const o=d;let p;e[5]!==r||e[6]!==s.title?(p=t.jsx(Ge,{icon:r,name:s.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=s.title,e[7]=p):p=e[7];let m;e[8]!==s.title?(m=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=m):m=e[9];const f=u||"No description";let a;e[10]!==f?(a=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:f}),e[10]=f,e[11]=a):a=e[11];let v;e[12]!==m||e[13]!==a?(v=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[m,a]}),e[12]=m,e[13]=a,e[14]=v):v=e[14];let y;e[15]!==p||e[16]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[p,v]}),e[15]=p,e[16]=v,e[17]=y):y=e[17];let b;e[18]!==n||e[19]!==o||e[20]!==s?(b=o&&t.jsx("div",{className:"absolute top-6 right-6 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity",onClick:Kt,onMouseDown:Lt,children:t.jsxs(He,{children:[t.jsx(Je,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Ft,children:t.jsx(et,{size:20})})}),t.jsxs(Ye,{align:"end",onClick:zt,children:[n.open&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.open?.(s)},children:[t.jsx(Xe,{size:16}),"Open"]}),n.edit&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.edit?.(s)},children:[t.jsx(tt,{size:16}),"Edit"]}),n.duplicate&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.duplicate?.(s)},children:[t.jsx(Ze,{size:16}),"Duplicate"]}),n.delete&&t.jsxs(O,{variant:"destructive",onClick:g=>{g.stopPropagation(),n.delete?.(s)},children:[t.jsx(st,{size:16}),"Delete"]})]})]})}),e[18]=n,e[19]=o,e[20]=s,e[21]=b):b=e[21];let x;return e[22]!==y||e[23]!==b?(x=t.jsxs(gt,{className:"cursor-pointer transition-colors hover:bg-accent/50 h-full flex flex-col group relative",children:[y,b]}),e[22]=y,e[23]=b,e[24]=x):x=e[24],x}function zt(i){return i.stopPropagation()}function Ft(i){return i.stopPropagation()}function Lt(i){return i.stopPropagation()}function Kt(i){return i.stopPropagation()}const Mt=["icon","avatar","logo"],Re=["created_at","created_by","id"];function Ut(i){return Object.keys(i).find(e=>Mt.includes(e.toLowerCase()))}function ot(i,e){return Object.keys(i.properties||{}).filter(s=>["id","created_at","updated_at","created_by","updated_by"].includes(s)?!1:e?e.includes(s):!0).map(s=>({id:s,label:s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," ")}))}function Wt(i){const e=oe.c(30),{data:s,schema:l,viewMode:n,search:c,sortKey:r,sortDirection:u,onSort:d,actions:o,onItemClick:p,headerActions:m,emptyState:f,readOnly:a,columns:v,hideToolbar:y,sortableFields:b}=i,x=u===void 0?"asc":u,g=d===void 0?Vt:d;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const h=$,T=p===void 0?qt:p,E=m===void 0?null:m,N=f===void 0?null:f,k=a===void 0?!1:a,j=v===void 0?void 0:v,z=y===void 0?!1:y,P=b===void 0?void 0:b;let D;e[2]!==j||e[3]!==l||e[4]!==P?(D=j?j.filter(Bt).filter(A=>!P||P.includes(A.id)).map(Rt):ot(l,P),e[2]=j,e[3]=l,e[4]=P,e[5]=D):D=e[5];const w=D;let S;e[6]!==E||e[7]!==z||e[8]!==g||e[9]!==x||e[10]!==r||e[11]!==w?(S=!z&&t.jsx("div",{className:"shrink-0 w-full border-b border-border h-12",children:t.jsxs("div",{className:"flex items-center gap-3 h-12 px-4",children:[t.jsx("div",{className:"flex items-center gap-2 flex-1",children:E}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(Qe,{sortKey:r,sortDirection:x,onSort:g,sortOptions:w})})]})}),e[6]=E,e[7]=z,e[8]=g,e[9]=x,e[10]=r,e[11]=w,e[12]=S):S=e[12];let _;e[13]!==h||e[14]!==j||e[15]!==s||e[16]!==N||e[17]!==T||e[18]!==g||e[19]!==k||e[20]!==l||e[21]!==c||e[22]!==x||e[23]!==r||e[24]!==P||e[25]!==n?(_=n==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:s.length===0?t.jsx("div",{className:"flex items-center justify-center h-full",children:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:c?"Try adjusting your search":"No items to display"})}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:s.map(A=>t.jsx("div",{onClick:()=>T?.(A),className:"cursor-pointer h-full",children:t.jsx(kt,{item:A,schema:l,readOnly:k,actions:h})},A.id))})}):t.jsx(xt,{columns:Ht(j,l,P,h),data:s,sortKey:r,sortDirection:x,onSort:g,onRowClick:T,emptyState:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:c?"Try adjusting your search":"No items to display"})}),e[13]=h,e[14]=j,e[15]=s,e[16]=N,e[17]=T,e[18]=g,e[19]=k,e[20]=l,e[21]=c,e[22]=x,e[23]=r,e[24]=P,e[25]=n,e[26]=_):_=e[26];let I;return e[27]!==S||e[28]!==_?(I=t.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[S,_]}),e[27]=S,e[28]=_,e[29]=I):I=e[29],I}function Rt(i){return{id:i.id,label:typeof i.header=="string"?i.header:i.id}}function Bt(i){return i.sortable!==!1}function qt(){}function Vt(){}function Qt(i){return{id:"actions",header:"",render:e=>t.jsxs(He,{children:[t.jsx(Je,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:s=>s.stopPropagation(),children:t.jsx(et,{size:20})})}),t.jsxs(Ye,{align:"end",onClick:s=>s.stopPropagation(),children:[i.open&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.open?.(e)},children:[t.jsx(Xe,{size:16}),"Open"]}),i.edit&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.edit?.(e)},children:[t.jsx(tt,{size:16}),"Edit"]}),i.duplicate&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.duplicate?.(e)},children:[t.jsx(Ze,{size:16}),"Duplicate"]}),i.delete&&t.jsxs(O,{variant:"destructive",onClick:s=>{s.stopPropagation(),i.delete?.(e)},children:[t.jsx(st,{size:16}),"Delete"]})]})]}),cellClassName:"w-[60px]",sortable:!1}}function nt(i){const e=i.type;return Array.isArray(e)?e.every(s=>nt({type:s})):e==="string"||e==="number"||e==="integer"||e==="boolean"||e==="null"}function Gt(i,e){const s=i.properties||{},l=Object.keys(s).filter(o=>{const p=s[o];return p&&nt(p)}),n=Ut(s),c=[],r=new Set;n&&l.includes(n)&&(c.push(n),r.add(n));const u=["title","description","updated_at","updated_by"];for(const o of u)l.includes(o)&&!r.has(o)&&(c.push(o),r.add(o));const d=l.filter(o=>!r.has(o)&&!Re.includes(o)).sort((o,p)=>o.localeCompare(p));for(const o of d)c.push(o),r.add(o);for(const o of Re)l.includes(o)&&!r.has(o)&&(c.push(o),r.add(o));return c.map(o=>{const p=s[o],m=e?e.includes(o):!["id"].includes(o);return o===n?{id:o,header:"",render:f=>{const a=f[o];return t.jsx(Ge,{icon:a,name:f.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:o==="description"?{id:o,header:"Description",render:f=>{const a=f[o];return a==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(a)})},sortable:m,cellClassName:"max-w-[50ch]"}:o==="created_by"||o==="updated_by"?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a?t.jsx(jt,{id:String(a),size:"xs"}):"—"},sortable:m,cellClassName:"max-w-[250px]"}:p?.format==="date-time"||o.endsWith("_at")?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a?t.jsx("span",{className:"block truncate max-w-full",children:new Date(a).toLocaleDateString()}):"—"},sortable:m,cellClassName:"max-w-[200px]"}:{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(a)})},sortable:m,cellClassName:"max-w-[200px]"}})}function Ht(i,e,s,l){const n=i||Gt(e,s);return n.some(u=>u.id==="actions")?n:Object.keys(l).length>0?[...n,Qt(l)]:n}function Jt(i){const e=oe.c(119),{connectionId:s,org:l,activeCollection:n,onItemClick:c}=i,r=n.name,u=n.schema??ft,d=n.hasCreateTool,o=n.hasUpdateTool,p=n.hasDeleteTool,m=Be(),{data:f}=ct.useSession(),a=f?.user?.id||"unknown",v=Tt(s);let y;e[0]!==v||e[1]!==s?(y=v?bt(v):s,e[0]=v,e[1]=s,e[2]=y):y=e[2];const b=y,{org:x}=ze();let g;e[3]!==s||e[4]!==x.id||e[5]!==x.slug?(g={connectionId:s,orgId:x.id,orgSlug:x.slug},e[3]=s,e[4]=x.id,e[5]=x.slug,e[6]=g):g=e[6];const $=qe(g),h=It(s,r,$),T=`${s}-${r}`;let E;e[7]!==l||e[8]!==T?(E={namespace:l,resource:T,defaultSortKey:"updated_at"},e[7]=l,e[8]=T,e[9]=E):E=e[9];const{search:N,searchTerm:k,setSearch:j,viewMode:z,setViewMode:P,sortKey:D,sortDirection:w,handleSort:S}=Ct(E);let _;e[10]!==k||e[11]!==w||e[12]!==D?(_={searchTerm:k,sortKey:D,sortDirection:w},e[10]=k,e[11]=w,e[12]=D,e[13]=_):_=e[13];const I=At(s,r,$,_),A=!d&&!o&&!p;let ne;e[14]!==b||e[15]!==r||e[16]!==m||e[17]!==c||e[18]!==l?(ne=C=>{if(c){c(C);return}m({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:C.id}})},e[14]=b,e[15]=r,e[16]=m,e[17]=c,e[18]=l,e[19]=ne):ne=e[19];const F=ne;let re;e[20]!==h.create||e[21]!==a?(re=async C=>{const xe=new Date().toISOString();await h.create.mutateAsync({...C,id:Me("conn"),title:`${C.title} (Copy)`,created_at:xe,updated_at:xe,created_by:a,updated_by:a})},e[20]=h.create,e[21]=a,e[22]=re):re=e[22];const be=re,[L,ve]=dt.useState(null);let le;e[23]===Symbol.for("react.memo_cache_sentinel")?(le=C=>{ve(C)},e[23]=le):le=e[23];const rt=le;let K;e[24]!==F||e[25]!==o?(K=o&&{edit:F},e[24]=F,e[25]=o,e[26]=K):K=e[26];let M;e[27]!==be||e[28]!==d?(M=d&&{duplicate:be},e[27]=be,e[28]=d,e[29]=M):M=e[29];let U;e[30]!==p?(U=p&&{delete:rt},e[30]=p,e[31]=U):U=e[31];let ae;e[32]!==M||e[33]!==U||e[34]!==K?(ae={...K,...M,...U},e[32]=M,e[33]=U,e[34]=K,e[35]=ae):ae=e[35];const ye=ae;let ce;e[36]!==h.delete||e[37]!==L?(ce=async()=>{L&&(await h.delete.mutateAsync(L.id),ve(null))},e[36]=h.delete,e[37]=L,e[38]=ce):ce=e[38];const Ne=ce;let de;e[39]!==h.create||e[40]!==b||e[41]!==r||e[42]!==d||e[43]!==m||e[44]!==l||e[45]!==a?(de=async()=>{if(!d){Fe.error("Create operation is not available for this collection");return}const C=new Date().toISOString(),xe={id:Me("conn"),title:"New Item",description:"A brief description of the item",created_at:C,updated_at:C,created_by:a,updated_by:a};try{const ke=await h.create.mutateAsync(xe);m({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:ke.id}})}catch(ke){console.error("Failed to create item:",ke)}},e[39]=h.create,e[40]=b,e[41]=r,e[42]=d,e[43]=m,e[44]=l,e[45]=a,e[46]=de):de=e[46];const we=de;let me;e[47]!==u?(me=ot(u),e[47]=u,e[48]=me):me=e[48];const Se=me,lt=(I?.length??0)>0,at=d&&!lt&&!N;let pe;e[49]!==h.create||e[50]!==we||e[51]!==d?(pe=d?t.jsxs(Ce,{onClick:we,size:"sm",disabled:h.create.isPending,className:"h-7",children:[t.jsx(Et,{className:"mr-2 h-4 w-4"}),h.create.isPending?"Creating...":"Create"]}):null,e[49]=h.create,e[50]=we,e[51]=d,e[52]=pe):pe=e[52];const ue=pe,Pe=D;let W;e[53]!==S||e[54]!==w||e[55]!==Se||e[56]!==Pe?(W=t.jsx(Ot,{children:t.jsx(Qe,{sortKey:Pe,sortDirection:w,onSort:S,sortOptions:Se})}),e[53]=S,e[54]=w,e[55]=Se,e[56]=Pe,e[57]=W):W=e[57];const _e=`Search ${r}...`;let R;e[58]!==j?(R=C=>{C.key==="Escape"&&(j(""),C.target.blur())},e[58]=j,e[59]=R):R=e[59];let B;e[60]!==N||e[61]!==j||e[62]!==_e||e[63]!==R?(B=t.jsx("div",{className:"flex-1",children:t.jsx(ht,{value:N,onChange:j,placeholder:_e,onKeyDown:R})}),e[60]=N,e[61]=j,e[62]=_e,e[63]=R,e[64]=B):B=e[64];let q;e[65]!==ue||e[66]!==d?(q=d&&t.jsx("div",{className:"pr-3",children:ue}),e[65]=ue,e[66]=d,e[67]=q):q=e[67];let V;e[68]!==B||e[69]!==q?(V=t.jsxs("div",{className:"flex items-center gap-2",children:[B,q]}),e[68]=B,e[69]=q,e[70]=V):V=e[70];let Q;e[71]!==I?(Q=I??[],e[71]=I,e[72]=Q):Q=e[72];const De=D;let G;e[73]!==F?(G=C=>F(C),e[73]=F,e[74]=G):G=e[74];const Ie="No items found",Ae=N?"Try adjusting your search terms":"This collection doesn't have any items yet.",Te=at?ue:void 0;let H;e[75]!==Ie||e[76]!==Ae||e[77]!==Te?(H=t.jsx(it,{image:null,title:Ie,description:Ae,actions:Te}),e[75]=Ie,e[76]=Ae,e[77]=Te,e[78]=H):H=e[78];let J;e[79]!==S||e[80]!==A||e[81]!==ye||e[82]!==u||e[83]!==N||e[84]!==j||e[85]!==P||e[86]!==w||e[87]!==Q||e[88]!==De||e[89]!==G||e[90]!==H||e[91]!==z?(J=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Wt,{hideToolbar:!0,data:Q,schema:u,viewMode:z,onViewModeChange:P,search:N,onSearchChange:j,sortKey:De,sortDirection:w,onSort:S,actions:ye,onItemClick:G,readOnly:A,emptyState:H})}),e[79]=S,e[80]=A,e[81]=ye,e[82]=u,e[83]=N,e[84]=j,e[85]=P,e[86]=w,e[87]=Q,e[88]=De,e[89]=G,e[90]=H,e[91]=z,e[92]=J):J=e[92];let Y;e[93]!==V||e[94]!==J?(Y=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[V,J]}),e[93]=V,e[94]=J,e[95]=Y):Y=e[95];const Ee=!!L;let fe;e[96]===Symbol.for("react.memo_cache_sentinel")?(fe=C=>{C||ve(null)},e[96]=fe):fe=e[96];let he;e[97]===Symbol.for("react.memo_cache_sentinel")?(he=t.jsx(Nt,{children:"Delete item?"}),e[97]=he):he=e[97];const Oe=L?.title;let X;e[98]!==Oe?(X=t.jsxs(wt,{children:[he,t.jsxs(St,{children:['Are you sure you want to delete "',Oe,'"? This action cannot be undone.']})]}),e[98]=Oe,e[99]=X):X=e[99];let Z;e[100]!==h.delete.isPending?(Z=t.jsx(vt,{disabled:h.delete.isPending,children:"Cancel"}),e[100]=h.delete.isPending,e[101]=Z):Z=e[101];const $e=h.delete.isPending?"Deleting...":"Delete";let ee;e[102]!==h.delete.isPending||e[103]!==Ne||e[104]!==$e?(ee=t.jsx(yt,{onClick:Ne,disabled:h.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:$e}),e[102]=h.delete.isPending,e[103]=Ne,e[104]=$e,e[105]=ee):ee=e[105];let te;e[106]!==Z||e[107]!==ee?(te=t.jsxs(Pt,{children:[Z,ee]}),e[106]=Z,e[107]=ee,e[108]=te):te=e[108];let se;e[109]!==X||e[110]!==te?(se=t.jsxs(_t,{children:[X,te]}),e[109]=X,e[110]=te,e[111]=se):se=e[111];let ie;e[112]!==Ee||e[113]!==se?(ie=t.jsx(Dt,{open:Ee,onOpenChange:fe,children:se}),e[112]=Ee,e[113]=se,e[114]=ie):ie=e[114];let ge;return e[115]!==W||e[116]!==Y||e[117]!==ie?(ge=t.jsxs(t.Fragment,{children:[W,Y,ie]}),e[115]=W,e[116]=Y,e[117]=ie,e[118]=ge):ge=e[118],ge}function Yt(){const i=oe.c(13),{org:e,project:s}=ze(),l=mt();let n;i[0]!==e.id||i[1]!==e.slug?(n={connectionId:Ve,orgId:e.id,orgSlug:e.slug},i[0]=e.id,i[1]=e.slug,i[2]=n):n=i[2];const c=qe(n);let r;i[3]!==c||i[4]!==s?(r=async p=>{const m=s.enabledPlugins??[];if(m.includes(p))return;const f=[...m,p],a=await c.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:s.id,data:{metadata:{enabled_plugins:f}}}});return a.structuredContent??a},i[3]=c,i[4]=s,i[5]=r):r=i[5];let u;i[6]!==e.id||i[7]!==s||i[8]!==l?(u=()=>{l.invalidateQueries({queryKey:Le.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Le.projects(e.id)})},i[6]=e.id,i[7]=s,i[8]=l,i[9]=u):u=i[9];let d;return i[10]!==r||i[11]!==u?(d={mutationFn:r,onSuccess:u,onError:Xt},i[10]=r,i[11]=u,i[12]=d):d=i[12],pt(d)}function Xt(i){Fe.error("Failed to enable plugin: "+(i instanceof Error?i.message:"Unknown error"))}function Zt(i){const e=oe.c(12),{pluginId:s,title:l,description:n,icon:c}=i,r=Yt();let u;e[0]!==r||e[1]!==s?(u=async()=>{try{await r.mutateAsync(s),Fe.success("Plugin enabled!")}catch{}},e[0]=r,e[1]=s,e[2]=u):u=e[2];const d=u,o=c??null,p=r.isPending?"Enabling…":"Enable plugin";let m;e[3]!==r.isPending||e[4]!==d||e[5]!==p?(m=t.jsx(Ce,{onClick:d,disabled:r.isPending,children:p}),e[3]=r.isPending,e[4]=d,e[5]=p,e[6]=m):m=e[6];let f;return e[7]!==n||e[8]!==o||e[9]!==m||e[10]!==l?(f=t.jsx(it,{image:o,title:l,description:n,actions:m}),e[7]=n,e[8]=o,e[9]=m,e[10]=l,e[11]=f):f=e[11],f}const es={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function Ci(){const{project:i,org:e}=ze();if(!(i.enabledPlugins??[]).includes(Ke))return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(Zt,{pluginId:Ke,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(ut,{className:"size-8 text-muted-foreground"})})})})})});const n=Be();return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx(Jt,{connectionId:Ve,org:e.slug,activeCollection:es,onItemClick:c=>n({to:"/$org/settings/workflows/$itemId",params:{org:e.slug,itemId:c.id}})})})})}export{Ci as default};
|
|
1
|
+
import{e as oe,j as t,B as Ce,f as Be,b as ct,q as ze,r as dt,o as Fe,F as mt,a as pt,K as Le,e1 as Ke,dn as ut}from"./index-BD0Vs-CA.js";import{u as qe,S as Ve}from"./constants-D3TwDQx3.js";import{B as ft,g as Me}from"./generate-id-DCuwKdwd.js";import{C as Qe}from"./collection-display-button-C-0uZ95I.js";import{C as ht}from"./collection-search-DcKd-0OB.js";import{C as gt}from"./card-Dj9cg3CK.js";import{I as Ge}from"./integration-icon-DjqEnfq3.js";import{D as He,a as Je,b as Ye,c as O}from"./dropdown-menu-CxtJkFj7.js";import{s as Xe,a as Ze}from"./Eye-DT8d17_D.js";import{i as et}from"./DotsVertical-qBVhBkwp.js";import{i as tt}from"./Tool01-N1xf4ThS.js";import{s as st}from"./Trash01-C5lXrAXB.js";import{C as xt}from"./collection-table-wrapper-D16K4NpS.js";import{E as Ue}from"./empty-state-DypMRY_b.js";import{n as We}from"./Stars02-BjwC_VwI.js";import{U as jt}from"./user-Bkww3yLN.js";import{E as it}from"./empty-state-Bp53vJ5J.js";import{u as Ct}from"./use-list-state-Dgqvi_Qc.js";import{g as bt}from"./connection-slug-eyAPH6o3.js";import{f as vt,g as yt,c as Nt,b as wt,d as St,e as Pt,a as _t,A as Dt}from"./alert-dialog-wo7djkDg.js";import{a as It,b as At}from"./use-collections-HtykhO8E.js";import{a as Tt}from"./use-connection-CFCjzYr3.js";import{s as Et}from"./Plus-282oO62Z.js";import{a as Ot}from"./layout-K01ShTmz.js";import{P as je}from"./index-D3Ribt5F.js";import"./collections-CjKCiyyJ.js";import"./SwitchHorizontal01-CgqCR4Yz.js";import"./Check-BC0oyj5b.js";import"./tooltip-BXkAyk_s.js";import"./view-mode-toggle-2ZW6tMJS.js";import"./badge-9pGcMSo9.js";import"./SearchMd-QjKlDFdA.js";import"./Container-DYeY832q.js";import"./agent-icon-Cdddea4y.js";import"./AlertCircle-BQdZzjHT.js";import"./RefreshCcw01-Ucb5geTM.js";import"./XCircle-C2jaCgsw.js";import"./ArrowUpRight-CeE0rmVq.js";import"./ZapSquare-dqx_OfE2.js";import"./Users03-zhbxBBX-.js";import"./CheckCircle-DH7rdvLk.js";import"./ChevronDown-R842NQ1U.js";import"./ChevronLeft-4yzLonaZ.js";import"./ChevronRight-ZAMgnesO.js";import"./ChevronUp-BF-b-Nnx.js";import"./ZoomOut-BRLKFRz0.js";import"./Globe01-Dq1s-8U-.js";import"./FilterLines-0_3CSvNU.js";import"./Star01-3amhnFQB.js";import"./Palette-DgrVm9Lf.js";import"./HardDrive-BSOkGCav.js";import"./Key01-6ihQsQH5.js";import"./LayoutLeft-DW_oy1t7.js";import"./LinkExternal01-Dr7L27C5.js";import"./Monitor01-B1nvgGLS.js";import"./Sun-D7IGJ5Qz.js";import"./Play-Irj6Snpi.js";import"./Settings02-C6oxZAMK.js";import"./Shield01-D7qNI860.js";import"./Stars01-D-S4IK6K.js";import"./Upload01-CRQffHbJ.js";import"./User01-sifBP7dG.js";import"./Users01-CqOg_Qlq.js";import"./XClose-Dp1ChvR4.js";import"./X-CY5EOp8o.js";import"./Zap-DQUf40SC.js";import"./table-Do8GxGTj.js";import"./avatar-DZZ4PPWC.js";import"./use-view-mode-DitlqWxa.js";import"./sidebar-OlCqSXPX.js";import"./sheet-Dsz02SFl.js";function $t(i,e){const s=i.properties||{};for(const n in s){const c=s[n];if(c&&c.type==="string"&&(c.format==="url"||c.format==="uri")&&e&&typeof e=="object"&&n in e&&e[n])return e[n]}const l=["image","img","avatar","icon","logo","thumbnail","cover"];for(const n of l)if(e&&typeof e=="object"&&n in e&&typeof e[n]=="string")return e[n]}function kt(i){const e=oe.c(25),{item:s,schema:l,actions:n}=i;let c;e[0]!==s||e[1]!==l?(c=$t(l,s),e[0]=s,e[1]=l,e[2]=c):c=e[2];const r=c,u=s&&typeof s=="object"&&"description"in s&&typeof s.description=="string"?s.description:void 0;let d;e[3]!==n?(d=n&&Object.keys(n).length>0,e[3]=n,e[4]=d):d=e[4];const o=d;let p;e[5]!==r||e[6]!==s.title?(p=t.jsx(Ge,{icon:r,name:s.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=s.title,e[7]=p):p=e[7];let m;e[8]!==s.title?(m=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=m):m=e[9];const f=u||"No description";let a;e[10]!==f?(a=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:f}),e[10]=f,e[11]=a):a=e[11];let v;e[12]!==m||e[13]!==a?(v=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[m,a]}),e[12]=m,e[13]=a,e[14]=v):v=e[14];let y;e[15]!==p||e[16]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[p,v]}),e[15]=p,e[16]=v,e[17]=y):y=e[17];let b;e[18]!==n||e[19]!==o||e[20]!==s?(b=o&&t.jsx("div",{className:"absolute top-6 right-6 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity",onClick:Kt,onMouseDown:Lt,children:t.jsxs(He,{children:[t.jsx(Je,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Ft,children:t.jsx(et,{size:20})})}),t.jsxs(Ye,{align:"end",onClick:zt,children:[n.open&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.open?.(s)},children:[t.jsx(Xe,{size:16}),"Open"]}),n.edit&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.edit?.(s)},children:[t.jsx(tt,{size:16}),"Edit"]}),n.duplicate&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.duplicate?.(s)},children:[t.jsx(Ze,{size:16}),"Duplicate"]}),n.delete&&t.jsxs(O,{variant:"destructive",onClick:g=>{g.stopPropagation(),n.delete?.(s)},children:[t.jsx(st,{size:16}),"Delete"]})]})]})}),e[18]=n,e[19]=o,e[20]=s,e[21]=b):b=e[21];let x;return e[22]!==y||e[23]!==b?(x=t.jsxs(gt,{className:"cursor-pointer transition-colors hover:bg-accent/50 h-full flex flex-col group relative",children:[y,b]}),e[22]=y,e[23]=b,e[24]=x):x=e[24],x}function zt(i){return i.stopPropagation()}function Ft(i){return i.stopPropagation()}function Lt(i){return i.stopPropagation()}function Kt(i){return i.stopPropagation()}const Mt=["icon","avatar","logo"],Re=["created_at","created_by","id"];function Ut(i){return Object.keys(i).find(e=>Mt.includes(e.toLowerCase()))}function ot(i,e){return Object.keys(i.properties||{}).filter(s=>["id","created_at","updated_at","created_by","updated_by"].includes(s)?!1:e?e.includes(s):!0).map(s=>({id:s,label:s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," ")}))}function Wt(i){const e=oe.c(30),{data:s,schema:l,viewMode:n,search:c,sortKey:r,sortDirection:u,onSort:d,actions:o,onItemClick:p,headerActions:m,emptyState:f,readOnly:a,columns:v,hideToolbar:y,sortableFields:b}=i,x=u===void 0?"asc":u,g=d===void 0?Vt:d;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const h=$,T=p===void 0?qt:p,E=m===void 0?null:m,N=f===void 0?null:f,k=a===void 0?!1:a,j=v===void 0?void 0:v,z=y===void 0?!1:y,P=b===void 0?void 0:b;let D;e[2]!==j||e[3]!==l||e[4]!==P?(D=j?j.filter(Bt).filter(A=>!P||P.includes(A.id)).map(Rt):ot(l,P),e[2]=j,e[3]=l,e[4]=P,e[5]=D):D=e[5];const w=D;let S;e[6]!==E||e[7]!==z||e[8]!==g||e[9]!==x||e[10]!==r||e[11]!==w?(S=!z&&t.jsx("div",{className:"shrink-0 w-full border-b border-border h-12",children:t.jsxs("div",{className:"flex items-center gap-3 h-12 px-4",children:[t.jsx("div",{className:"flex items-center gap-2 flex-1",children:E}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(Qe,{sortKey:r,sortDirection:x,onSort:g,sortOptions:w})})]})}),e[6]=E,e[7]=z,e[8]=g,e[9]=x,e[10]=r,e[11]=w,e[12]=S):S=e[12];let _;e[13]!==h||e[14]!==j||e[15]!==s||e[16]!==N||e[17]!==T||e[18]!==g||e[19]!==k||e[20]!==l||e[21]!==c||e[22]!==x||e[23]!==r||e[24]!==P||e[25]!==n?(_=n==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:s.length===0?t.jsx("div",{className:"flex items-center justify-center h-full",children:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:c?"Try adjusting your search":"No items to display"})}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:s.map(A=>t.jsx("div",{onClick:()=>T?.(A),className:"cursor-pointer h-full",children:t.jsx(kt,{item:A,schema:l,readOnly:k,actions:h})},A.id))})}):t.jsx(xt,{columns:Ht(j,l,P,h),data:s,sortKey:r,sortDirection:x,onSort:g,onRowClick:T,emptyState:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:c?"Try adjusting your search":"No items to display"})}),e[13]=h,e[14]=j,e[15]=s,e[16]=N,e[17]=T,e[18]=g,e[19]=k,e[20]=l,e[21]=c,e[22]=x,e[23]=r,e[24]=P,e[25]=n,e[26]=_):_=e[26];let I;return e[27]!==S||e[28]!==_?(I=t.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[S,_]}),e[27]=S,e[28]=_,e[29]=I):I=e[29],I}function Rt(i){return{id:i.id,label:typeof i.header=="string"?i.header:i.id}}function Bt(i){return i.sortable!==!1}function qt(){}function Vt(){}function Qt(i){return{id:"actions",header:"",render:e=>t.jsxs(He,{children:[t.jsx(Je,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:s=>s.stopPropagation(),children:t.jsx(et,{size:20})})}),t.jsxs(Ye,{align:"end",onClick:s=>s.stopPropagation(),children:[i.open&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.open?.(e)},children:[t.jsx(Xe,{size:16}),"Open"]}),i.edit&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.edit?.(e)},children:[t.jsx(tt,{size:16}),"Edit"]}),i.duplicate&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.duplicate?.(e)},children:[t.jsx(Ze,{size:16}),"Duplicate"]}),i.delete&&t.jsxs(O,{variant:"destructive",onClick:s=>{s.stopPropagation(),i.delete?.(e)},children:[t.jsx(st,{size:16}),"Delete"]})]})]}),cellClassName:"w-[60px]",sortable:!1}}function nt(i){const e=i.type;return Array.isArray(e)?e.every(s=>nt({type:s})):e==="string"||e==="number"||e==="integer"||e==="boolean"||e==="null"}function Gt(i,e){const s=i.properties||{},l=Object.keys(s).filter(o=>{const p=s[o];return p&&nt(p)}),n=Ut(s),c=[],r=new Set;n&&l.includes(n)&&(c.push(n),r.add(n));const u=["title","description","updated_at","updated_by"];for(const o of u)l.includes(o)&&!r.has(o)&&(c.push(o),r.add(o));const d=l.filter(o=>!r.has(o)&&!Re.includes(o)).sort((o,p)=>o.localeCompare(p));for(const o of d)c.push(o),r.add(o);for(const o of Re)l.includes(o)&&!r.has(o)&&(c.push(o),r.add(o));return c.map(o=>{const p=s[o],m=e?e.includes(o):!["id"].includes(o);return o===n?{id:o,header:"",render:f=>{const a=f[o];return t.jsx(Ge,{icon:a,name:f.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:o==="description"?{id:o,header:"Description",render:f=>{const a=f[o];return a==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(a)})},sortable:m,cellClassName:"max-w-[50ch]"}:o==="created_by"||o==="updated_by"?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a?t.jsx(jt,{id:String(a),size:"xs"}):"—"},sortable:m,cellClassName:"max-w-[250px]"}:p?.format==="date-time"||o.endsWith("_at")?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a?t.jsx("span",{className:"block truncate max-w-full",children:new Date(a).toLocaleDateString()}):"—"},sortable:m,cellClassName:"max-w-[200px]"}:{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(a)})},sortable:m,cellClassName:"max-w-[200px]"}})}function Ht(i,e,s,l){const n=i||Gt(e,s);return n.some(u=>u.id==="actions")?n:Object.keys(l).length>0?[...n,Qt(l)]:n}function Jt(i){const e=oe.c(119),{connectionId:s,org:l,activeCollection:n,onItemClick:c}=i,r=n.name,u=n.schema??ft,d=n.hasCreateTool,o=n.hasUpdateTool,p=n.hasDeleteTool,m=Be(),{data:f}=ct.useSession(),a=f?.user?.id||"unknown",v=Tt(s);let y;e[0]!==v||e[1]!==s?(y=v?bt(v):s,e[0]=v,e[1]=s,e[2]=y):y=e[2];const b=y,{org:x}=ze();let g;e[3]!==s||e[4]!==x.id||e[5]!==x.slug?(g={connectionId:s,orgId:x.id,orgSlug:x.slug},e[3]=s,e[4]=x.id,e[5]=x.slug,e[6]=g):g=e[6];const $=qe(g),h=It(s,r,$),T=`${s}-${r}`;let E;e[7]!==l||e[8]!==T?(E={namespace:l,resource:T,defaultSortKey:"updated_at"},e[7]=l,e[8]=T,e[9]=E):E=e[9];const{search:N,searchTerm:k,setSearch:j,viewMode:z,setViewMode:P,sortKey:D,sortDirection:w,handleSort:S}=Ct(E);let _;e[10]!==k||e[11]!==w||e[12]!==D?(_={searchTerm:k,sortKey:D,sortDirection:w},e[10]=k,e[11]=w,e[12]=D,e[13]=_):_=e[13];const I=At(s,r,$,_),A=!d&&!o&&!p;let ne;e[14]!==b||e[15]!==r||e[16]!==m||e[17]!==c||e[18]!==l?(ne=C=>{if(c){c(C);return}m({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:C.id}})},e[14]=b,e[15]=r,e[16]=m,e[17]=c,e[18]=l,e[19]=ne):ne=e[19];const F=ne;let re;e[20]!==h.create||e[21]!==a?(re=async C=>{const xe=new Date().toISOString();await h.create.mutateAsync({...C,id:Me("conn"),title:`${C.title} (Copy)`,created_at:xe,updated_at:xe,created_by:a,updated_by:a})},e[20]=h.create,e[21]=a,e[22]=re):re=e[22];const be=re,[L,ve]=dt.useState(null);let le;e[23]===Symbol.for("react.memo_cache_sentinel")?(le=C=>{ve(C)},e[23]=le):le=e[23];const rt=le;let K;e[24]!==F||e[25]!==o?(K=o&&{edit:F},e[24]=F,e[25]=o,e[26]=K):K=e[26];let M;e[27]!==be||e[28]!==d?(M=d&&{duplicate:be},e[27]=be,e[28]=d,e[29]=M):M=e[29];let U;e[30]!==p?(U=p&&{delete:rt},e[30]=p,e[31]=U):U=e[31];let ae;e[32]!==M||e[33]!==U||e[34]!==K?(ae={...K,...M,...U},e[32]=M,e[33]=U,e[34]=K,e[35]=ae):ae=e[35];const ye=ae;let ce;e[36]!==h.delete||e[37]!==L?(ce=async()=>{L&&(await h.delete.mutateAsync(L.id),ve(null))},e[36]=h.delete,e[37]=L,e[38]=ce):ce=e[38];const Ne=ce;let de;e[39]!==h.create||e[40]!==b||e[41]!==r||e[42]!==d||e[43]!==m||e[44]!==l||e[45]!==a?(de=async()=>{if(!d){Fe.error("Create operation is not available for this collection");return}const C=new Date().toISOString(),xe={id:Me("conn"),title:"New Item",description:"A brief description of the item",created_at:C,updated_at:C,created_by:a,updated_by:a};try{const ke=await h.create.mutateAsync(xe);m({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:ke.id}})}catch(ke){console.error("Failed to create item:",ke)}},e[39]=h.create,e[40]=b,e[41]=r,e[42]=d,e[43]=m,e[44]=l,e[45]=a,e[46]=de):de=e[46];const we=de;let me;e[47]!==u?(me=ot(u),e[47]=u,e[48]=me):me=e[48];const Se=me,lt=(I?.length??0)>0,at=d&&!lt&&!N;let pe;e[49]!==h.create||e[50]!==we||e[51]!==d?(pe=d?t.jsxs(Ce,{onClick:we,size:"sm",disabled:h.create.isPending,className:"h-7",children:[t.jsx(Et,{className:"mr-2 h-4 w-4"}),h.create.isPending?"Creating...":"Create"]}):null,e[49]=h.create,e[50]=we,e[51]=d,e[52]=pe):pe=e[52];const ue=pe,Pe=D;let W;e[53]!==S||e[54]!==w||e[55]!==Se||e[56]!==Pe?(W=t.jsx(Ot,{children:t.jsx(Qe,{sortKey:Pe,sortDirection:w,onSort:S,sortOptions:Se})}),e[53]=S,e[54]=w,e[55]=Se,e[56]=Pe,e[57]=W):W=e[57];const _e=`Search ${r}...`;let R;e[58]!==j?(R=C=>{C.key==="Escape"&&(j(""),C.target.blur())},e[58]=j,e[59]=R):R=e[59];let B;e[60]!==N||e[61]!==j||e[62]!==_e||e[63]!==R?(B=t.jsx("div",{className:"flex-1",children:t.jsx(ht,{value:N,onChange:j,placeholder:_e,onKeyDown:R})}),e[60]=N,e[61]=j,e[62]=_e,e[63]=R,e[64]=B):B=e[64];let q;e[65]!==ue||e[66]!==d?(q=d&&t.jsx("div",{className:"pr-3",children:ue}),e[65]=ue,e[66]=d,e[67]=q):q=e[67];let V;e[68]!==B||e[69]!==q?(V=t.jsxs("div",{className:"flex items-center gap-2",children:[B,q]}),e[68]=B,e[69]=q,e[70]=V):V=e[70];let Q;e[71]!==I?(Q=I??[],e[71]=I,e[72]=Q):Q=e[72];const De=D;let G;e[73]!==F?(G=C=>F(C),e[73]=F,e[74]=G):G=e[74];const Ie="No items found",Ae=N?"Try adjusting your search terms":"This collection doesn't have any items yet.",Te=at?ue:void 0;let H;e[75]!==Ie||e[76]!==Ae||e[77]!==Te?(H=t.jsx(it,{image:null,title:Ie,description:Ae,actions:Te}),e[75]=Ie,e[76]=Ae,e[77]=Te,e[78]=H):H=e[78];let J;e[79]!==S||e[80]!==A||e[81]!==ye||e[82]!==u||e[83]!==N||e[84]!==j||e[85]!==P||e[86]!==w||e[87]!==Q||e[88]!==De||e[89]!==G||e[90]!==H||e[91]!==z?(J=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Wt,{hideToolbar:!0,data:Q,schema:u,viewMode:z,onViewModeChange:P,search:N,onSearchChange:j,sortKey:De,sortDirection:w,onSort:S,actions:ye,onItemClick:G,readOnly:A,emptyState:H})}),e[79]=S,e[80]=A,e[81]=ye,e[82]=u,e[83]=N,e[84]=j,e[85]=P,e[86]=w,e[87]=Q,e[88]=De,e[89]=G,e[90]=H,e[91]=z,e[92]=J):J=e[92];let Y;e[93]!==V||e[94]!==J?(Y=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[V,J]}),e[93]=V,e[94]=J,e[95]=Y):Y=e[95];const Ee=!!L;let fe;e[96]===Symbol.for("react.memo_cache_sentinel")?(fe=C=>{C||ve(null)},e[96]=fe):fe=e[96];let he;e[97]===Symbol.for("react.memo_cache_sentinel")?(he=t.jsx(Nt,{children:"Delete item?"}),e[97]=he):he=e[97];const Oe=L?.title;let X;e[98]!==Oe?(X=t.jsxs(wt,{children:[he,t.jsxs(St,{children:['Are you sure you want to delete "',Oe,'"? This action cannot be undone.']})]}),e[98]=Oe,e[99]=X):X=e[99];let Z;e[100]!==h.delete.isPending?(Z=t.jsx(vt,{disabled:h.delete.isPending,children:"Cancel"}),e[100]=h.delete.isPending,e[101]=Z):Z=e[101];const $e=h.delete.isPending?"Deleting...":"Delete";let ee;e[102]!==h.delete.isPending||e[103]!==Ne||e[104]!==$e?(ee=t.jsx(yt,{onClick:Ne,disabled:h.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:$e}),e[102]=h.delete.isPending,e[103]=Ne,e[104]=$e,e[105]=ee):ee=e[105];let te;e[106]!==Z||e[107]!==ee?(te=t.jsxs(Pt,{children:[Z,ee]}),e[106]=Z,e[107]=ee,e[108]=te):te=e[108];let se;e[109]!==X||e[110]!==te?(se=t.jsxs(_t,{children:[X,te]}),e[109]=X,e[110]=te,e[111]=se):se=e[111];let ie;e[112]!==Ee||e[113]!==se?(ie=t.jsx(Dt,{open:Ee,onOpenChange:fe,children:se}),e[112]=Ee,e[113]=se,e[114]=ie):ie=e[114];let ge;return e[115]!==W||e[116]!==Y||e[117]!==ie?(ge=t.jsxs(t.Fragment,{children:[W,Y,ie]}),e[115]=W,e[116]=Y,e[117]=ie,e[118]=ge):ge=e[118],ge}function Yt(){const i=oe.c(13),{org:e,project:s}=ze(),l=mt();let n;i[0]!==e.id||i[1]!==e.slug?(n={connectionId:Ve,orgId:e.id,orgSlug:e.slug},i[0]=e.id,i[1]=e.slug,i[2]=n):n=i[2];const c=qe(n);let r;i[3]!==c||i[4]!==s?(r=async p=>{const m=s.enabledPlugins??[];if(m.includes(p))return;const f=[...m,p],a=await c.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:s.id,data:{metadata:{enabled_plugins:f}}}});return a.structuredContent??a},i[3]=c,i[4]=s,i[5]=r):r=i[5];let u;i[6]!==e.id||i[7]!==s||i[8]!==l?(u=()=>{l.invalidateQueries({queryKey:Le.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Le.projects(e.id)})},i[6]=e.id,i[7]=s,i[8]=l,i[9]=u):u=i[9];let d;return i[10]!==r||i[11]!==u?(d={mutationFn:r,onSuccess:u,onError:Xt},i[10]=r,i[11]=u,i[12]=d):d=i[12],pt(d)}function Xt(i){Fe.error("Failed to enable plugin: "+(i instanceof Error?i.message:"Unknown error"))}function Zt(i){const e=oe.c(12),{pluginId:s,title:l,description:n,icon:c}=i,r=Yt();let u;e[0]!==r||e[1]!==s?(u=async()=>{try{await r.mutateAsync(s),Fe.success("Plugin enabled!")}catch{}},e[0]=r,e[1]=s,e[2]=u):u=e[2];const d=u,o=c??null,p=r.isPending?"Enabling…":"Enable plugin";let m;e[3]!==r.isPending||e[4]!==d||e[5]!==p?(m=t.jsx(Ce,{onClick:d,disabled:r.isPending,children:p}),e[3]=r.isPending,e[4]=d,e[5]=p,e[6]=m):m=e[6];let f;return e[7]!==n||e[8]!==o||e[9]!==m||e[10]!==l?(f=t.jsx(it,{image:o,title:l,description:n,actions:m}),e[7]=n,e[8]=o,e[9]=m,e[10]=l,e[11]=f):f=e[11],f}const es={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function Ci(){const{project:i,org:e}=ze();if(!(i.enabledPlugins??[]).includes(Ke))return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(Zt,{pluginId:Ke,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(ut,{className:"size-8 text-muted-foreground"})})})})})});const n=Be();return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx(Jt,{connectionId:Ve,org:e.slug,activeCollection:es,onItemClick:c=>n({to:"/$org/settings/workflows/$itemId",params:{org:e.slug,itemId:c.id}})})})})}export{Ci as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as s,g as l,j as o,l as a,E as n,r as c}from"./index-BD0Vs-CA.js";import{a as f}from"./index-De2W4Fh6.js";import"./index-DiDlqgd4.js";import"./constants-D3TwDQx3.js";import"./collections-CjKCiyyJ.js";import"./index-C-BjtSEe.js";import"./use-virtual-mcp-Cvm4KLIO.js";import"./use-collections-HtykhO8E.js";import"./monaco-editor-D2Cgb5CL.js";import"./index-CPp-3T8R.js";import"./spinner-CYDSZGqh.js";import"./resizable-BRPR_6nf.js";import"./ZoomOut-BRLKFRz0.js";import"./badge-9pGcMSo9.js";import"./select-877_XRoe.js";import"./tooltip-BXkAyk_s.js";import"./Check-BC0oyj5b.js";import"./ChevronDown-R842NQ1U.js";import"./ChevronUp-BF-b-Nnx.js";import"./view-mode-toggle-2ZW6tMJS.js";import"./agent-icon-Cdddea4y.js";import"./AlertCircle-BQdZzjHT.js";import"./Tool01-N1xf4ThS.js";import"./SwitchHorizontal01-CgqCR4Yz.js";import"./RefreshCcw01-Ucb5geTM.js";import"./XCircle-C2jaCgsw.js";import"./ArrowUpRight-CeE0rmVq.js";import"./ZapSquare-dqx_OfE2.js";import"./Users03-zhbxBBX-.js";import"./CheckCircle-DH7rdvLk.js";import"./ChevronLeft-4yzLonaZ.js";import"./ChevronRight-ZAMgnesO.js";import"./DotsVertical-qBVhBkwp.js";import"./Container-DYeY832q.js";import"./Eye-DT8d17_D.js";import"./Globe01-Dq1s-8U-.js";import"./FilterLines-0_3CSvNU.js";import"./Star01-3amhnFQB.js";import"./Palette-DgrVm9Lf.js";import"./HardDrive-BSOkGCav.js";import"./Stars02-BjwC_VwI.js";import"./Key01-6ihQsQH5.js";import"./LayoutLeft-DW_oy1t7.js";import"./LinkExternal01-Dr7L27C5.js";import"./Monitor01-B1nvgGLS.js";import"./Sun-D7IGJ5Qz.js";import"./Play-Irj6Snpi.js";import"./Plus-282oO62Z.js";import"./SearchMd-QjKlDFdA.js";import"./Settings02-C6oxZAMK.js";import"./Shield01-D7qNI860.js";import"./Stars01-D-S4IK6K.js";import"./Trash01-C5lXrAXB.js";import"./Upload01-CRQffHbJ.js";import"./User01-sifBP7dG.js";import"./Users01-CqOg_Qlq.js";import"./XClose-Dp1ChvR4.js";import"./X-CY5EOp8o.js";import"./Zap-DQUf40SC.js";import"./layout-K01ShTmz.js";import"./index-D3Ribt5F.js";import"./sidebar-OlCqSXPX.js";import"./sheet-Dsz02SFl.js";import"./use-connection-CFCjzYr3.js";import"./use-mcp-tools-C1gRGhR_.js";import"./dialog-ZmuU49gf.js";import"./scroll-area-DMkk7C5X.js";import"./index-C-7fxrkj.js";import"./hover-card-BJCPsde9.js";import"./dropdown-menu-CxtJkFj7.js";import"./integration-icon-DjqEnfq3.js";import"./accordion-BU6HxGne.js";import"./index-Cov_Guzr.js";import"./empty-state-DypMRY_b.js";import"./create-sse-subscription-BS5983N4.js";import"./input-BdjjFpfr.js";function Bt(){const t=s.c(4);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/workflows/$itemId"},t[0]=r):r=t[0];const{itemId:e}=l(r);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(a,{size:32,className:"animate-spin text-muted-foreground"})}),t[1]=i):i=t[1];const p=decodeURIComponent(e);let m;return t[2]!==p?(m=o.jsx(n,{children:o.jsx(c.Suspense,{fallback:i,children:o.jsx(f,{itemId:p})})}),t[2]=p,t[3]=m):m=t[3],m}export{Bt as default};
|
package/dist/client/index.html
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
44
44
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
45
45
|
<meta name="apple-mobile-web-app-title" content="deco Studio" />
|
|
46
|
-
<script type="module" crossorigin src="/assets/index-
|
|
46
|
+
<script type="module" crossorigin src="/assets/index-BD0Vs-CA.js"></script>
|
|
47
47
|
<link rel="stylesheet" crossorigin href="/assets/index-D5dv4kfs.css">
|
|
48
48
|
</head>
|
|
49
49
|
<body>
|