decocms 2.306.7 → 2.306.9
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-Cb7fTEMa.js → AlertCircle-DJf7WJW3.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-tcEBzg5K.js → ArrowNarrowLeft-zhth65sS.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Ds7CgDkL.js → ArrowUpRight-B3qf65r_.js} +1 -1
- package/dist/client/assets/{Check-Dgq0jjpz.js → Check-BA7p_1wq.js} +1 -1
- package/dist/client/assets/{CheckCircle-rZ5sDOOP.js → CheckCircle-Y9PieZLB.js} +1 -1
- package/dist/client/assets/{ChevronDown-CH5lQohM.js → ChevronDown-CHAav7qy.js} +1 -1
- package/dist/client/assets/{ChevronRight-DfFDUpKj.js → ChevronRight-2ozRd8ql.js} +1 -1
- package/dist/client/assets/{ChevronUp-DCsRkih0.js → ChevronUp-DiTrXBul.js} +1 -1
- package/dist/client/assets/{Container-zeFPXb1Q.js → Container-C2bhieKl.js} +1 -1
- package/dist/client/assets/{DotsVertical-BljfGuhu.js → DotsVertical-EPasiNNs.js} +1 -1
- package/dist/client/assets/{LinkExternal01-MvI2bZbP.js → LinkExternal01-BPHdX5PH.js} +1 -1
- package/dist/client/assets/{Lock01-CidilFiJ.js → Lock01-BGF0eORu.js} +1 -1
- package/dist/client/assets/{Palette-CURRsupy.js → Palette-C_hdzDFv.js} +1 -1
- package/dist/client/assets/{Play-DLW6aJFn.js → Play-F9KGb4fS.js} +1 -1
- package/dist/client/assets/{Plus-28zZOE9T.js → Plus-yWDQ_tpZ.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-CCzpYBs0.js → RefreshCcw01-02Zm-r_b.js} +1 -1
- package/dist/client/assets/{SearchMd-BpRj1P2W.js → SearchMd-KthT6Z0D.js} +1 -1
- package/dist/client/assets/{Settings02-CE5ZLw2I.js → Settings02-o9kWs5LM.js} +1 -1
- package/dist/client/assets/{Shield01-Dtb2_AeI.js → Shield01-C6IvOcka.js} +1 -1
- package/dist/client/assets/{Star01-ChekdAzX.js → Star01-DfneWwne.js} +1 -1
- package/dist/client/assets/{Sun-TuktgENq.js → Sun-jEEtT5QL.js} +1 -1
- package/dist/client/assets/{Tool01-Cu4I31F8.js → Tool01-Ba51oSqA.js} +1 -1
- package/dist/client/assets/{Trash01-4Dq6ympL.js → Trash01-phS8Heeq.js} +1 -1
- package/dist/client/assets/{User01-DKnZn118.js → User01-ZJzkhpRI.js} +1 -1
- package/dist/client/assets/{Users03-rbWg-6tV.js → Users03-BpQp0OZp.js} +1 -1
- package/dist/client/assets/{X-CAquUT--.js → X-C7tkmqiA.js} +1 -1
- package/dist/client/assets/{XCircle-B-00qJpY.js → XCircle-D-iHz9mr.js} +1 -1
- package/dist/client/assets/{XClose-_Y5VAjW5.js → XClose-DGH-dkmK.js} +1 -1
- package/dist/client/assets/{Zap-B8xnzkap.js → Zap-B3d9PZiM.js} +1 -1
- package/dist/client/assets/{ZapSquare-Cpo7Z7gP.js → ZapSquare-zYT4mArq.js} +1 -1
- package/dist/client/assets/{accordion-CyIKHcCT.js → accordion-hHFtU32i.js} +1 -1
- package/dist/client/assets/{agent-icon-D9odI-qh.js → agent-icon-CJE3IrTn.js} +1 -1
- package/dist/client/assets/{agents-list-CLJAN1rm.js → agents-list-vYYge1ev.js} +1 -1
- package/dist/client/assets/ai-providers-CqQQNPte.js +1 -0
- package/dist/client/assets/{alert-dialog-DCT4MTMH.js → alert-dialog-BX6tjxLQ.js} +1 -1
- package/dist/client/assets/{auth-catchall-DoKHQvfb.js → auth-catchall-tLsDaZib.js} +1 -1
- package/dist/client/assets/{automation-list-row-C0fNHM9j.js → automation-list-row-CcwE53y-.js} +1 -1
- package/dist/client/assets/{automations-CVam3JT8.js → automations-BESFBIp2.js} +1 -1
- package/dist/client/assets/{avatar-JoKAxyik.js → avatar-qtN1d68D.js} +1 -1
- package/dist/client/assets/{badge-BXVtVPzt.js → badge-B9X-6Gl1.js} +1 -1
- package/dist/client/assets/{brand-context-B00HyWuJ.js → brand-context-XewU7lcG.js} +1 -1
- package/dist/client/assets/{card-CkFfla-m.js → card-BoqhySt6.js} +1 -1
- package/dist/client/assets/{chat-context-C4lTxfjV.js → chat-context-CKn0S8Zn.js} +1 -1
- package/dist/client/assets/{checkbox-Baro7Q1f.js → checkbox-CsbRNJyh.js} +1 -1
- package/dist/client/assets/{collection-detail-CvBw6hsJ.js → collection-detail-CNKa10ok.js} +1 -1
- package/dist/client/assets/{collection-display-button-BSv13jEo.js → collection-display-button-DKtSFWra.js} +1 -1
- package/dist/client/assets/{collection-search-BHyuqRiT.js → collection-search-B3qdCdab.js} +1 -1
- package/dist/client/assets/{collection-search-jhKWbxqo.js → collection-search-Ce1lQnUu.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-hR7H16-N.js → collection-table-wrapper-Bd9ZSFN9.js} +1 -1
- package/dist/client/assets/{collection-tabs-BPF8fjT2.js → collection-tabs-f6wZXNju.js} +1 -1
- package/dist/client/assets/{collections-B60eBxX4.js → collections-DW4PTltg.js} +1 -1
- package/dist/client/assets/{command-CJRvOxZ7.js → command-COSC6-sU.js} +1 -1
- package/dist/client/assets/{connection-card-ugyEg8FF.js → connection-card-CZXyfhfz.js} +1 -1
- package/dist/client/assets/{connection-detail-EgRvIktM.js → connection-detail-j7Z5rP7l.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CYrNbtwl.js → connection-form-helpers-BlYNQpCT.js} +1 -1
- package/dist/client/assets/{connections-I35i0t7r.js → connections-BV8XJOt_.js} +1 -1
- package/dist/client/assets/{constants-XGFAnuHn.js → constants-BVAyWr7s.js} +1 -1
- package/dist/client/assets/{constants-CMPjFkrZ.js → constants-DGVET5nO.js} +1 -1
- package/dist/client/assets/{dialog-sfEBwtz9.js → dialog-Hnl5R_ro.js} +1 -1
- package/dist/client/assets/{domain-settings-BEv8OnaD.js → domain-settings-C-IlkGnr.js} +1 -1
- package/dist/client/assets/{drawer--MluJNWl.js → drawer-Crup1SLH.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BpPFRti7.js → dropdown-menu-V4M0HjsW.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-JwST599m.js → dynamic-plugin-layout-8c6x-ky8.js} +1 -1
- package/dist/client/assets/{empty-state-Vlkqr5Ha.js → empty-state-CZ3CJw7j.js} +1 -1
- package/dist/client/assets/{empty-state-Be0FdXg2.js → empty-state-D5_lJgOy.js} +1 -1
- package/dist/client/assets/{extract-connection-data-B9BMTKgA.js → extract-connection-data-em000wPy.js} +1 -1
- package/dist/client/assets/{features-ymCT4sQe.js → features-DAVmQLQk.js} +1 -1
- package/dist/client/assets/{form-DpB6tHPK.js → form-C7tw7wIR.js} +1 -1
- package/dist/client/assets/{general-Bi8iKo_s.js → general-DnnDmUeP.js} +1 -1
- package/dist/client/assets/{index-DE4jOyEe.js → index-BFRqxr4t.js} +1 -1
- package/dist/client/assets/{index-mKsCyZ2c.js → index-BOzqanlB.js} +1 -1
- package/dist/client/assets/{index-B_IvwEkx.js → index-Bbymo0Ib.js} +1 -1
- package/dist/client/assets/index-Bg9RJYuW.js +1 -0
- package/dist/client/assets/{index-Bzh6y1DZ.js → index-CA3OM7o_.js} +1 -1
- package/dist/client/assets/{index-0dtUnOR1.js → index-CnknCe9i.js} +2 -2
- package/dist/client/assets/{index-CGKwbcyW.js → index-CoJ8j1Pw.js} +1 -1
- package/dist/client/assets/{index-BAl-Vlym.js → index-DNL4AbVG.js} +1 -1
- package/dist/client/assets/{index-B-PMmlqs.js → index-DUQBUyCZ.js} +1 -1
- package/dist/client/assets/{index-BWMPhdit.js → index-DkII30Yp.js} +1 -1
- package/dist/client/assets/{index-DqWmbGe9.js → index-Dq2z-GHI.js} +1 -1
- package/dist/client/assets/{index-JYp8Y8Zk.js → index-DtUD0Pyz.js} +17 -17
- package/dist/client/assets/{index-DlEDBVDU.js → index-HuDOZoSO.js} +1 -1
- package/dist/client/assets/{index-BG0omYxu.js → index-RIIjlnIA.js} +1 -1
- package/dist/client/assets/{index-uTY5VsaX.js → index-XN9sCkdo.js} +1 -1
- package/dist/client/assets/{index-Cav3nFoE.js → index-pVdenInH.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-D69C8aZS.js → infiniteQueryObserver-BpzCmbvi.js} +1 -1
- package/dist/client/assets/{input-Dh3J6cxA.js → input-tSjlegEI.js} +1 -1
- package/dist/client/assets/{integration-icon-CDE9CENl.js → integration-icon-BIIE53tx.js} +1 -1
- package/dist/client/assets/{label-BGhcnROH.js → label-BPDMOqL-.js} +1 -1
- package/dist/client/assets/{layout-DMQieMve.js → layout-CdewzpDg.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-DZfH4ZaB.js → lean-canvas-recruit-modal-vF31gMjX.js} +1 -1
- package/dist/client/assets/{login-HZPNR9xd.js → login-BoZD0ihV.js} +1 -1
- package/dist/client/assets/{members-DXQFXjq8.js → members-Cu6j2bC_.js} +1 -1
- package/dist/client/assets/{monaco-editor-BaDnBAIf.js → monaco-editor-BkaEDfnn.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CQqHcgiv.js → monitoring-stats-row-B4VSVC5f.js} +1 -1
- package/dist/client/assets/{oauth-callback-Du4eDSpz.js → oauth-callback-BZ22lnb7.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BhxrV53q.js → oauth-callback-ai-provider-DdNo-cUU.js} +1 -1
- package/dist/client/assets/{onboarding-HMRjmRyP.js → onboarding-BsxXp_91.js} +1 -1
- package/dist/client/assets/{org-layout-DoqHSWQn.js → org-layout-C5IzT9XM.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-DXqded6M.js → org-plugin-layout-rnBVYx1J.js} +1 -1
- package/dist/client/assets/{pair-D1MIu7ah.js → pair-CgrOS8jZ.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BSfCLmcP.js → plugin-empty-state-DrUsi_Xi.js} +1 -1
- package/dist/client/assets/{plugin-header-2Ks_trAw.js → plugin-header-CdV-nsX3.js} +1 -1
- package/dist/client/assets/{plugin-layout-CdtsQwFc.js → plugin-layout-CazyvxCF.js} +1 -1
- package/dist/client/assets/{popover-D4Clv1Kb.js → popover-B72j1a-i.js} +1 -1
- package/dist/client/assets/{profile-CjGu4VCE.js → profile-Cu0ySZu7.js} +1 -1
- package/dist/client/assets/{project-app-view-Cr2YOe9x.js → project-app-view-DrBetUBZ.js} +1 -1
- package/dist/client/assets/registry-BcpPcvh_.js +2 -0
- package/dist/client/assets/{registry-layout-DGUmz1QL.js → registry-layout-CjG7kzKY.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DMKD_TV3.js → required-auth-layout-DesCgYHR.js} +1 -1
- package/dist/client/assets/{reset-password-Bn__ApCp.js → reset-password-eRneDfhd.js} +1 -1
- package/dist/client/assets/{roles-C4lGMFwb.js → roles-BOPJuCtk.js} +1 -1
- package/dist/client/assets/{scroll-area-yWZqBKom.js → scroll-area-B7p5KGay.js} +1 -1
- package/dist/client/assets/{search-input-UA1Jjc1m.js → search-input-BkMpxSNZ.js} +1 -1
- package/dist/client/assets/{select-CG0rwGUX.js → select-Cgq5fB25.js} +1 -1
- package/dist/client/assets/{select-model-DcRnjECr.js → select-model-BrcDDMDY.js} +1 -1
- package/dist/client/assets/{settings-layout-ePFy_Zf4.js → settings-layout-DnlWM3l_.js} +1 -1
- package/dist/client/assets/{settings-section-HkZRSntL.js → settings-section-BnPqXFEQ.js} +1 -1
- package/dist/client/assets/{shell-layout-CtEV3YzW.js → shell-layout-KvQC2n8R.js} +1 -1
- package/dist/client/assets/{skeleton-BxQRt9FI.js → skeleton-DIbgbTEL.js} +1 -1
- package/dist/client/assets/{sso-DElvxw59.js → sso-CKV2Ny8h.js} +1 -1
- package/dist/client/assets/{store-CQloMsrY.js → store-OiRvkTn1.js} +1 -1
- package/dist/client/assets/store-registry-CcoZihF8.js +2 -0
- package/dist/client/assets/{switch-DydlPJmA.js → switch-DHlXaCRu.js} +1 -1
- package/dist/client/assets/{table-Cg2S62iB.js → table-DM5YCF_t.js} +1 -1
- package/dist/client/assets/{tabs-BArWG_lg.js → tabs-DP8p-QKj.js} +1 -1
- package/dist/client/assets/{task-status-Bi6NGRuA.js → task-status-RjLfrU9E.js} +1 -1
- package/dist/client/assets/{textarea-Dkmw6W4u.js → textarea-BKxnYjv4.js} +1 -1
- package/dist/client/assets/{toggle-group-BdQafmUc.js → toggle-group-BTIHjGuh.js} +1 -1
- package/dist/client/assets/{tools-list-C0MslVQp.js → tools-list-DltD98In.js} +1 -1
- package/dist/client/assets/{tooltip-XW5rFMNu.js → tooltip-VTeNtMCR.js} +1 -1
- package/dist/client/assets/{types-BU1oqgjO.js → types-DXN89wPs.js} +1 -1
- package/dist/client/assets/{use-ai-providers-ClmB64W8.js → use-ai-providers-Dn3Z7IEd.js} +1 -1
- package/dist/client/assets/{use-collections-BLOTVIAP.js → use-collections-CiD-L_rq.js} +1 -1
- package/dist/client/assets/{use-connection-DGPnnQz6.js → use-connection-JNwwjcGV.js} +1 -1
- package/dist/client/assets/{use-copy-BquaY5FR.js → use-copy-BC2pt5R_.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-gYa1vYVG.js → use-create-virtual-mcp-BaV_MWOd.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BFE3ZeG7.js → use-debounced-autosave-BZkVf5Bt.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-nw-lJk37.js → use-decopilot-events-CNFY9Cdo.js} +1 -1
- package/dist/client/assets/{use-delete-connection-MTPofM5f.js → use-delete-connection-B92EkvSW.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-KzNu752x.js → use-infinite-scroll-DxHMXvd2.js} +1 -1
- package/dist/client/assets/{use-list-state-BMUfPc5P.js → use-list-state-CC6sLPth.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DkxVTDC9.js → use-mcp-tools-CVArZMz4.js} +1 -1
- package/dist/client/assets/{use-members-DadnCd-C.js → use-members-DwBHQoXS.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-zDaGGVEB.js → use-navigate-to-agent-CBT4EeEo.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CPZNMqkZ.js → use-org-auth-client-Btoi24Ng.js} +1 -1
- package/dist/client/assets/{use-org-sso-DMUwA_K8.js → use-org-sso-BraRussC.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CJVol15S.js → use-organization-roles-D_UI-fW0.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CoHf1k_t.js → use-organization-settings-Dxy82qy3.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DWMBdekg.js → use-registry-connections-Dutuf-7C.js} +1 -1
- package/dist/client/assets/{use-status-sounds-j2IA-viC.js → use-status-sounds-D0gU5bqv.js} +1 -1
- package/dist/client/assets/{use-tasks-DqkYGNHa.js → use-tasks-dDV8jhdD.js} +1 -1
- package/dist/client/assets/{use-view-mode-Bc5J1h4b.js → use-view-mode-CNrwjFk2.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Dndzl8Kr.js → use-virtual-mcp-DYwCZbrQ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DgNRpfvJ.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-olKcjkDq.js +1 -0
- package/dist/client/assets/{user-Df7A58iD.js → user-kEnfgZB9.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DoidsjaP.js → view-mode-toggle-CrpJwZiO.js} +1 -1
- package/dist/client/assets/{workflow-DgvsxaIb.js → workflow-BXznQ79f.js} +1 -1
- package/dist/client/assets/workflow-detail-DeJ9MrPo.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +27 -9
- package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
- package/dist/server/node_modules/ansi-styles/index.js +223 -0
- package/dist/server/node_modules/ansi-styles/license +9 -0
- package/dist/server/node_modules/ansi-styles/package.json +54 -0
- package/dist/server/node_modules/ansi-styles/readme.md +173 -0
- package/dist/server/node_modules/environment/index.d.ts +74 -0
- package/dist/server/node_modules/environment/index.js +47 -0
- package/dist/server/node_modules/environment/license +9 -0
- package/dist/server/node_modules/environment/package.json +74 -0
- package/dist/server/node_modules/environment/readme.md +94 -0
- package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
- package/dist/server/node_modules/escape-string-regexp/license +9 -0
- package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
- package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
- package/dist/server/node_modules/is-fullwidth-code-point/license +9 -0
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +53 -0
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
- package/dist/server/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/dist/server/node_modules/is-unicode-supported/index.js +21 -0
- package/dist/server/node_modules/is-unicode-supported/license +9 -0
- package/dist/server/node_modules/is-unicode-supported/package.json +47 -0
- package/dist/server/node_modules/is-unicode-supported/readme.md +35 -0
- package/dist/server/node_modules/mimic-fn/index.d.ts +54 -0
- package/dist/server/node_modules/mimic-fn/index.js +13 -0
- package/dist/server/node_modules/mimic-fn/license +9 -0
- package/dist/server/node_modules/mimic-fn/package.json +42 -0
- package/dist/server/node_modules/mimic-fn/readme.md +69 -0
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
- package/dist/server/node_modules/postgres-array/index.js +97 -0
- package/dist/server/node_modules/postgres-array/license +21 -0
- package/dist/server/node_modules/postgres-array/package.json +35 -0
- package/dist/server/node_modules/postgres-array/readme.md +43 -0
- package/dist/server/node_modules/restore-cursor/index.d.ts +11 -0
- package/dist/server/node_modules/restore-cursor/index.js +11 -0
- package/dist/server/node_modules/restore-cursor/license +9 -0
- package/dist/server/node_modules/restore-cursor/package.json +55 -0
- package/dist/server/node_modules/restore-cursor/readme.md +31 -0
- package/dist/server/node_modules/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -0
- package/dist/server/node_modules/string-width/index.d.ts +39 -0
- package/dist/server/node_modules/string-width/index.js +82 -0
- package/dist/server/node_modules/string-width/license +9 -0
- package/dist/server/node_modules/string-width/package.json +64 -0
- package/dist/server/node_modules/string-width/readme.md +66 -0
- package/dist/server/server.js +26 -8
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-28dSCs53.js +0 -1
- package/dist/client/assets/index-BkJIlnCh.js +0 -1
- package/dist/client/assets/registry-YuZMNy-0.js +0 -2
- package/dist/client/assets/store-registry-h--qJyio.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BzvZ_TDh.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-ZnAzp1qO.js +0 -1
- package/dist/client/assets/workflow-detail-Bebyclsh.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as o}from"./AlertCircle-
|
|
1
|
+
import{i as o}from"./AlertCircle-DJf7WJW3.js";import{i as t}from"./CheckCircle-Y9PieZLB.js";import{a as r}from"./DotsVertical-EPasiNNs.js";import{Z as a}from"./agent-icon-CJE3IrTn.js";import{l}from"./index-CnknCe9i.js";import{i as n}from"./XCircle-D-iHz9mr.js";const i={requires_action:{label:"Needs review",verb:"Waiting for your review",icon:o,iconClassName:"text-orange-500",labelColor:"text-orange-600 dark:text-orange-400"},failed:{label:"Failed",verb:"Something went wrong",icon:n,iconClassName:"text-red-500",labelColor:"text-red-600 dark:text-red-400"},expired:{label:"Timed out",verb:"Stopped responding",icon:a,iconClassName:"text-amber-500",labelColor:"text-amber-600 dark:text-amber-400"},in_progress:{label:"Running",verb:"Agent is working",icon:l,iconClassName:"text-blue-500",labelColor:"text-blue-600 dark:text-blue-400"},completed:{label:"Done",verb:"Completed",icon:t,iconClassName:"text-muted-foreground/50",labelColor:"text-muted-foreground"}},m={label:"Unknown",verb:"Unknown status",icon:r,iconClassName:"text-muted-foreground",labelColor:"text-muted-foreground"};function x(e){return i[e??"completed"]??m}export{i as S,x as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as o,c as l,j as n}from"./index-
|
|
1
|
+
import{e as o,c as l,j as n}from"./index-CnknCe9i.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=l("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-xl bg-background dark:bg-input/30 px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,aT as h,j as c,a7 as m,a8 as k,bc as p,aQ as S,aR as T,aS as M,aV as A,ae as F,aX as $,e as P,c as C}from"./index-
|
|
1
|
+
import{r as x,aT as h,j as c,a7 as m,a8 as k,bc as p,aQ as S,aR as T,aS as M,aV as A,ae as F,aX as $,e as P,c as C}from"./index-CnknCe9i.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=h({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),I=T(),b=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});b.displayName=v;var[z,R]=w(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(y,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(E=>E!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(y,{...r,ref:e})})});b.displayName=v;var[O,H]=w(v),y=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=I(l),u=M(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=R(f,a.__scopeToggleGroup),s=H(f,a.__scopeToggleGroup),n=I(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(S,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=R(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),L=b,Q=N;const U=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),V=x.createContext({size:"default",variant:"default"});function q(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(V.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(L,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function J(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(V),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(U({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(Q,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{q as T,J as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as h,s as I,K as T,w as b,G as C,y as k,M as N,j as o}from"./index-
|
|
1
|
+
import{e as h,s as I,K as T,w as b,G as C,y as k,M as N,j as o}from"./index-CnknCe9i.js";import{B as x}from"./badge-B9X-6Gl1.js";import{T as y,a as j,b as g,c as S}from"./tooltip-VTeNtMCR.js";import{g as _}from"./types-DXN89wPs.js";import{s as $}from"./RefreshCcw01-02Zm-r_b.js";import{s as w}from"./Star01-DfneWwne.js";import{V as A}from"./agent-icon-CJE3IrTn.js";function q(m){const e=h.c(11),{connectionId:a}=m,{org:r}=I();let i,t,l;e[0]!==a||e[1]!==r.slug?(i=new URL(`/api/${r.slug}/mcp/${a}`,window.location.origin),l=b,t=T.isMCPAuthenticated(i.href,null),e[0]=a,e[1]=r.slug,e[2]=i,e[3]=t,e[4]=l):(i=e[2],t=e[3],l=e[4]);let s;e[5]!==i||e[6]!==r.id?(s=()=>C({url:i.href,token:null,orgId:r.id}),e[5]=i,e[6]=r.id,e[7]=s):s=e[7];let n;e[8]!==t||e[9]!==s?(n={queryKey:t,queryFn:s},e[8]=t,e[9]=s,e[10]=n):n=e[10];const{data:c}=l(n);return c}const H=[{key:"readOnlyHint",label:"Read-only",Icon:$,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:k,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:N,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:w,variant:"outline"}];function z(m){const e=h.c(18),{annotations:a,_meta:r}=m;let i;e[0]!==r?(i=_(r),e[0]=r,e[1]=i):i=e[1];const t=!!i;let l,s,n,c,u;if(e[2]!==a||e[3]!==t){u=Symbol.for("react.early_return_sentinel");e:{const f=a?H.filter(v=>a[v.key]===!0):[];if(f.length===0&&!t){u=null;break e}l=S,s="flex gap-1 flex-nowrap",e[9]!==t?(n=t&&o.jsxs(y,{children:[o.jsx(j,{asChild:!0,children:o.jsx(x,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:o.jsx(A,{})})}),o.jsx(g,{children:"Interactive"})]}),e[9]=t,e[10]=n):n=e[10],c=f.map(P)}e[2]=a,e[3]=t,e[4]=l,e[5]=s,e[6]=n,e[7]=c,e[8]=u}else l=e[4],s=e[5],n=e[6],c=e[7],u=e[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;let d;e[11]!==s||e[12]!==n||e[13]!==c?(d=o.jsxs("div",{className:s,children:[n,c]}),e[11]=s,e[12]=n,e[13]=c,e[14]=d):d=e[14];let p;return e[15]!==l||e[16]!==d?(p=o.jsx(l,{children:d}),e[15]=l,e[16]=d,e[17]=p):p=e[17],p}function P(m){const{label:e,Icon:a,variant:r}=m;return o.jsxs(y,{children:[o.jsx(j,{asChild:!0,children:o.jsx(x,{asChild:!0,variant:r,className:"size-6 p-1",children:o.jsx(a,{})})}),o.jsx(g,{children:e})]},e)}export{z as T,q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,j as c,a7 as H,aU as Z,aT as ee,c4 as te,b6 as $,c5 as oe,a8 as b,aW as G,c6 as re,c7 as V,cd as ne,ce as se,ae,df as ie,cf as le,e as _,c as ce}from"./index-
|
|
1
|
+
import{r as a,j as c,a7 as H,aU as Z,aT as ee,c4 as te,b6 as $,c5 as oe,a8 as b,aW as G,c6 as re,c7 as V,cd as ne,ce as se,ae,df as ie,cf as le,e as _,c as ce}from"./index-CnknCe9i.js";var ue=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),de="VisuallyHidden",z=a.forwardRef((o,e)=>c.jsx(H.span,{...o,ref:e,style:{...ue,...o.style}}));z.displayName=de;var pe=z,[O]=ae("Tooltip",[V]),D=V(),B="TooltipProvider",fe=700,A="tooltip.open",[ve,k]=O(B),F=o=>{const{__scopeTooltip:e,delayDuration:t=fe,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,i=a.useRef(!0),d=a.useRef(!1),l=a.useRef(0);return a.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),c.jsx(ve,{scope:e,isOpenDelayedRef:i,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=B;var R="Tooltip",[he,j]=O(R),U=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:i,delayDuration:d}=o,l=k(R,o.__scopeTooltip),p=D(e),[u,v]=a.useState(null),h=Z(),f=a.useRef(0),x=i??l.disableHoverableContent,m=d??l.delayDuration,g=a.useRef(!1),[y,T]=ee({prop:r,defaultProp:n??!1,onChange:S=>{S?(l.onOpen(),document.dispatchEvent(new CustomEvent(A))):l.onClose(),s?.(S)},caller:R}),w=a.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,T(!0)},[T]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,T(!1)},[T]),N=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,T(!0),f.current=0},m)},[m,T]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(te,{...p,children:c.jsx(he,{scope:e,contentId:h,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{l.isOpenDelayedRef.current?N():E()},[l.isOpenDelayedRef,N,E]),onTriggerLeave:a.useCallback(()=>{x?P():(window.clearTimeout(f.current),f.current=0)},[P,x]),onOpen:E,onClose:P,disableHoverableContent:x,children:t})})};U.displayName=R;var M="TooltipTrigger",Y=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=j(M,t),s=k(M,t),i=D(t),d=a.useRef(null),l=$(e,d,n.onTriggerChange),p=a.useRef(!1),u=a.useRef(!1),v=a.useCallback(()=>p.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(oe,{asChild:!0,...i,children:c.jsx(H.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:l,onPointerMove:b(o.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:b(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:b(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:b(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:b(o.onBlur,n.onClose),onClick:b(o.onClick,n.onClose)})})});Y.displayName=M;var I="TooltipPortal",[xe,ge]=O(I,{forceMount:void 0}),W=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=j(I,e);return c.jsx(xe,{scope:e,forceMount:t,children:c.jsx(G,{present:t||s.open,children:c.jsx(re,{asChild:!0,container:n,children:r})})})};W.displayName=I;var C="TooltipContent",q=a.forwardRef((o,e)=>{const t=ge(C,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,i=j(C,o.__scopeTooltip);return c.jsx(G,{present:r||i.open,children:i.disableHoverableContent?c.jsx(K,{side:n,...s,ref:e}):c.jsx(me,{side:n,...s,ref:e})})}),me=a.forwardRef((o,e)=>{const t=j(C,o.__scopeTooltip),r=k(C,o.__scopeTooltip),n=a.useRef(null),s=$(e,n),[i,d]=a.useState(null),{trigger:l,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,h=a.useCallback(()=>{d(null),v(!1)},[v]),f=a.useCallback((x,m)=>{const g=x.currentTarget,y={x:x.clientX,y:x.clientY},T=Ce(y,g.getBoundingClientRect()),w=we(y,T),E=Ee(m.getBoundingClientRect()),P=Re([...w,...E]);d(P),v(!0)},[v]);return a.useEffect(()=>()=>h(),[h]),a.useEffect(()=>{if(l&&u){const x=g=>f(g,u),m=g=>f(g,l);return l.addEventListener("pointerleave",x),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",x),u.removeEventListener("pointerleave",m)}}},[l,u,f,h]),a.useEffect(()=>{if(i){const x=m=>{const g=m.target,y={x:m.clientX,y:m.clientY},T=l?.contains(g)||u?.contains(g),w=!Pe(y,i);T?h():w&&(h(),p())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,u,i,p,h]),c.jsx(K,{...o,ref:s})}),[Te,ye]=O(R,{isInside:!1}),be=ie("TooltipContent"),K=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:i,...d}=o,l=j(C,t),p=D(t),{onClose:u}=l;return a.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),a.useEffect(()=>{if(l.trigger){const v=h=>{h.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[l.trigger,u]),c.jsx(ne,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(se,{"data-state":l.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(be,{children:r}),c.jsx(Te,{scope:t,isInside:!0,children:c.jsx(pe,{id:l.contentId,role:"tooltip",children:n||r})})]})})});q.displayName=C;var X="TooltipArrow",J=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return ye(X,t).isInside?null:c.jsx(le,{...n,...r,ref:e})});J.displayName=X;function Ce(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function we(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function Ee(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function Pe(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const d=e[s],l=e[i],p=d.x,u=d.y,v=l.x,h=l.y;u>r!=h>r&&t<(v-p)*(r-u)/(h-u)+p&&(n=!n)}return n}function Re(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),_e(e)}function _e(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],i=e[e.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var je=F,Oe=U,De=Y,Le=W,Ae=q,Me=J;const Q=768,L=()=>globalThis.innerWidth<Q;function Ne(){const o=_.c(2),[e,t]=a.useState(L);let r,n;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{const s=()=>t(L),i=globalThis.matchMedia(`(max-width: ${Q-1}px)`);return i.addEventListener("change",s),t(L),()=>i.removeEventListener("change",s)},n=[],o[0]=r,o[1]=n):(r=o[0],n=o[1]),a.useEffect(r,n),e}function ke(o){const e=_.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(je,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Se(o){const e=_.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(ke,{children:c.jsx(Oe,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function He(o){const e=_.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(De,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function $e(o){const e=_.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const i=s===void 0?0:s;let d;e[5]!==r?(d=ce("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=c.jsx(Me,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=l):l=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==i||e[11]!==d?(p=c.jsx(Le,{children:c.jsxs(Ae,{"data-slot":"tooltip-content",sideOffset:i,className:d,...n,children:[t,l]})}),e[8]=t,e[9]=n,e[10]=i,e[11]=d,e[12]=p):p=e[12],p}export{Se as T,ue as V,He as a,$e as b,ke as c,Ne as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as F,n as ke,aO as qe,aP as Pe,w as be,bl as p,a$ as t,aI as b,J as l,bm as P,H as s,a_ as g,aK as u,I as f,aJ as x,bn as B,bo as ye,bp as ve,bq as K,br as j,bs as xe,bt as we,bu as V,bv as Te,bw as Ie,bx as Ee,by as Le,bz as ze,bA as De,bB as Ne,bC as Ae,bD as Ue,bE as Oe,bF as $e,bG as Be,bH as je,bI as Fe,bJ as Ke,bK as Ve,bL as We,r as oe,t as Je,c as se,j as v}from"./index-
|
|
1
|
+
import{e as F,n as ke,aO as qe,aP as Pe,w as be,bl as p,a$ as t,aI as b,J as l,bm as P,H as s,a_ as g,aK as u,I as f,aJ as x,bn as B,bo as ye,bp as ve,bq as K,br as j,bs as xe,bt as we,bu as V,bv as Te,bw as Ie,bx as Ee,by as Le,bz as ze,bA as De,bB as Ne,bC as Ae,bD as Ue,bE as Oe,bF as $e,bG as Be,bH as je,bI as Fe,bJ as Ke,bK as Ve,bL as We,r as oe,t as Je,c as se,j as v}from"./index-CnknCe9i.js";import{K as re,P as Ze}from"./constants-DGVET5nO.js";async function Re(n){if(!n.getServerCapabilities()?.resources)return{resources:[]};try{return await n.listResources()}catch(o){if(o instanceof qe&&o.code===Pe.MethodNotFound)return{resources:[]};throw o}}async function Qe(n,e){return await n.readResource({uri:e})}function Yt(n){const e=F.c(12);let o,i;e[0]!==n?({client:o,...i}=n,e[0]=n,e[1]=o,e[2]=i):(o=e[1],i=e[2]);let r;e[3]!==o?(r=re.mcpResourcesList(o),e[3]=o,e[4]=r):r=e[4];let a;e[5]!==o?(a=()=>Re(o),e[5]=o,e[6]=a):a=e[6];const c=i.staleTime??3e4;let d;return e[7]!==i||e[8]!==r||e[9]!==a||e[10]!==c?(d={...i,queryKey:r,queryFn:a,staleTime:c,retry:!1},e[7]=i,e[8]=r,e[9]=a,e[10]=c,e[11]=d):d=e[11],be(d)}function Gt(n){const e=F.c(12);let o,i;e[0]!==n?({client:o,...i}=n,e[0]=n,e[1]=o,e[2]=i):(o=e[1],i=e[2]);let r;e[3]!==o?(r=re.mcpResourcesList(o),e[3]=o,e[4]=r):r=e[4];let a;e[5]!==o?(a=()=>Re(o),e[5]=o,e[6]=a):a=e[6];const c=i.staleTime??3e4;let d;return e[7]!==i||e[8]!==r||e[9]!==a||e[10]!==c?(d={...i,queryKey:r,queryFn:a,staleTime:c,retry:!1},e[7]=i,e[8]=r,e[9]=a,e[10]=c,e[11]=d):d=e[11],ke(d)}function Ye(n){const e=F.c(15);let o,i,r;e[0]!==n?({client:o,uri:r,...i}=n,e[0]=n,e[1]=o,e[2]=i,e[3]=r):(o=e[1],i=e[2],r=e[3]);let a;e[4]!==o||e[5]!==r?(a=re.mcpReadResource(o,r),e[4]=o,e[5]=r,e[6]=a):a=e[6];let c;e[7]!==o||e[8]!==r?(c=()=>Qe(o,r),e[7]=o,e[8]=r,e[9]=c):c=e[9];const d=i.staleTime??3e4;let h;return e[10]!==i||e[11]!==a||e[12]!==c||e[13]!==d?(h={...i,queryKey:a,queryFn:c,staleTime:d,retry:!1},e[10]=i,e[11]=a,e[12]=c,e[13]=d,e[14]=h):h=e[14],be(h)}const de=["default-src 'none'","script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'","style-src 'unsafe-inline'","img-src * data: blob:","media-src * data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src blob:","form-action 'none'","base-uri 'none'"].join("; ");function Ge(n,e={}){const i=`<meta http-equiv="Content-Security-Policy" content="${et(e)}">`,r=/<head(\s[^>]*)?>|<HEAD(\s[^>]*)?>/i,a=n.match(r);if(a){const m=(a.index??0)+a[0].length;return n.slice(0,m)+`
|
|
2
2
|
`+i+n.slice(m)}const c=/<html(\s[^>]*)?>|<HTML(\s[^>]*)?>/i,d=n.match(c);if(d){const m=(d.index??0)+d[0].length;return n.slice(0,m)+`
|
|
3
3
|
<head>
|
|
4
4
|
`+i+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as g,s as f,K as m,w as y,n as I}from"./index-
|
|
1
|
+
import{e as g,s as f,K as m,w as y,n as I}from"./index-CnknCe9i.js";import{S,u as P}from"./constants-DGVET5nO.js";function K(){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 n;t[3]!==e.id?(n=m.aiProviders(e.id),t[3]=e.id,t[4]=n):n=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 i;t[7]!==n||t[8]!==l?(i={queryKey:n,staleTime:1/0,queryFn:l},t[7]=n,t[8]=l,t[9]=i):i=t[9];const{data:r}=y(i);return r}function R(){const t=g.c(12),{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 n;t[3]!==e.id?(n=m.aiProviderKeys(e.id),t[3]=e.id,t[4]=n):n=t[4];let l;t[5]!==o?(l=async()=>(await o.callTool({name:"AI_PROVIDER_KEY_LIST",arguments:{}})).structuredContent??null,t[5]=o,t[6]=l):l=t[6];let i;t[7]!==n||t[8]!==l?(i={queryKey:n,staleTime:6e4,queryFn:l},t[7]=n,t[8]=l,t[9]=i):i=t[9];const{data:r}=y(i);let u;return t[10]!==r?.keys?(u=r?.keys??[],t[10]=r?.keys,t[11]=u):u=t[11],u}function q(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 n=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 i=!!t;let r;e[6]!==n||e[7]!==t?(r=async()=>(await n.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:t}})).structuredContent??null,e[6]=n,e[7]=t,e[8]=r):r=e[8];let u;e[9]!==l||e[10]!==i||e[11]!==r?(u={queryKey:l,enabled:i,staleTime:6e4,queryFn:r},e[9]=l,e[10]=i,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 _=!!t&&T;let d;return e[15]!==a||e[16]!==_?(d={models:a,isLoading:_},e[15]=a,e[16]=_,e[17]=d):d=e[17],d}function v(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 n=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 i;e[6]!==n||e[7]!==t?(i=async()=>(await n.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:t}})).structuredContent??null,e[6]=n,e[7]=t,e[8]=i):i=e[8];let r;e[9]!==l||e[10]!==i?(r={queryKey:l,staleTime:6e4,queryFn:i},e[9]=l,e[10]=i,e[11]=r):r=e[11];const{data:u}=y(r);let c;return e[12]!==u?.models?(c=u?.models??[],e[12]=u?.models,e[13]=c):c=e[13],c}export{q as a,K as b,v as c,R as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as I,o as D,a as x,w as K,x as L}from"./index-
|
|
1
|
+
import{e as I,o as D,a as x,w as K,x as L}from"./index-CnknCe9i.js";import{K as v}from"./constants-DGVET5nO.js";function q(o,s,n){const t=[];if(o?.trim()){const e=o.trim(),r=n.map(a=>({field:[String(a)],operator:"contains",value:e}));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 e of s)t.push({field:[e.column],operator:"eq",value:e.value});if(t.length!==0)return t.length===1?t[0]:{operator:"and",conditions:t}}function U(o,s,n){const t=o??n,e=s??"desc";return[{field:[String(t)],direction:e}]}function O(o){if(!o||typeof o!="object")throw new Error("Invalid result");if("isError"in o&&o.isError)throw new Error("content"in o&&Array.isArray(o.content)&&o.content[0]?.type==="text"?o.content[0].text:"Unknown error");if("structuredContent"in o)return o.structuredContent;throw new Error("No structured content found")}function M(o,s,n,t){const e=I.c(14);let r,a,u;if(e[0]!==t||e[1]!==s||e[2]!==n||e[3]!==o){const i=s.toUpperCase();r=`COLLECTION_${i}_GET`,u=K,a=v.collectionItem(t,o,"",i,n??""),e[0]=t,e[1]=s,e[2]=n,e[3]=o,e[4]=r,e[5]=a,e[6]=u}else r=e[4],a=e[5],u=e[6];let c;e[7]!==t||e[8]!==r||e[9]!==n?(c=async()=>{if(!n)return{item:null};const i=await t.callTool({name:r,arguments:{id:n}});return O(i)},e[7]=t,e[8]=r,e[9]=n,e[10]=c):c=e[10];let d;e[11]!==a||e[12]!==c?(d={queryKey:a,queryFn:c,staleTime:6e4},e[11]=a,e[12]=c,e[13]=d):d=e[13];const{data:y}=u(d);return y?.item??null}const Q={structuredContent:{items:[]},isError:!1};function Y(o,s,n,t={}){const{searchTerm:e,filters:r,sortKey:a,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:d="updated_at",pageSize:y=100,additionalToolArgs:i}=t,f=s.toUpperCase(),m=`COLLECTION_${f}_LIST`,g=q(e,r,c),T=U(a,u,d),p={...g&&{where:g},...T&&{orderBy:T},limit:y,offset:0,...i},C=JSON.stringify(p),h=v.collectionList(n,o,"",f,C),{data:w}=K({queryKey:h,queryFn:async()=>n?await n.callTool({name:m,arguments:p}):Q,staleTime:3e4,retry:!1,select:E=>O(E??{})?.items??[]});return w}function j(o,s,n,t={}){const{searchTerm:e,filters:r,sortKey:a,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:d="updated_at",pageSize:y=100,additionalToolArgs:i}=t,f=s.toUpperCase(),m=q(e,r,c),g=U(a,u,d),T={...m&&{where:m},...g&&{orderBy:g},limit:y,offset:0,...i},p=JSON.stringify(T);return v.collectionList(o,n,"",f,p)}function G(o,s,n){const t=I.c(34),e=D();let r;t[0]!==s?(r=s.toUpperCase(),t[0]=s,t[1]=r):r=t[1];const a=r,u=`COLLECTION_${a}_CREATE`,c=`COLLECTION_${a}_UPDATE`,d=`COLLECTION_${a}_DELETE`;let y;t[2]!==e||t[3]!==o||t[4]!==a?(y=()=>{e.invalidateQueries({predicate:S=>{const l=S.queryKey;return l[1]===o&&l[3]==="collection"&&l[4]===a}})},t[2]=e,t[3]=o,t[4]=a,t[5]=y):y=t[5];const i=y;let f;t[6]!==n||t[7]!==u?(f=async S=>{const l=await n.callTool({name:u,arguments:{data:S}});if(l.isError)throw new Error(Array.isArray(l.content)?l.content[0]?.text:String(l.content));return O(l).item},t[6]=n,t[7]=u,t[8]=f):f=t[8];let m;t[9]!==i?(m=()=>{i(),L.success("Item created successfully")},t[9]=i,t[10]=m):m=t[10];let g;t[11]!==f||t[12]!==m?(g={mutationFn:f,onSuccess:m,onError:P},t[11]=f,t[12]=m,t[13]=g):g=t[13];const T=x(g);let p;t[14]!==n||t[15]!==c?(p=async S=>{const{id:l,data:$}=S,b=await n.callTool({name:c,arguments:{id:l,data:$}});return O(b).item},t[14]=n,t[15]=c,t[16]=p):p=t[16];let C;t[17]!==i?(C=()=>{i(),L.success("Item updated successfully")},t[17]=i,t[18]=C):C=t[18];let h;t[19]!==p||t[20]!==C?(h={mutationFn:p,onSuccess:C,onError:B},t[19]=p,t[20]=C,t[21]=h):h=t[21];const w=x(h);let E;t[22]!==n||t[23]!==d?(E=async S=>{const l=await n.callTool({name:d,arguments:{id:S}});return O(l).item.id},t[22]=n,t[23]=d,t[24]=E):E=t[24];let _;t[25]!==i?(_=()=>{i(),L.success("Item deleted successfully")},t[25]=i,t[26]=_):_=t[26];let N;t[27]!==E||t[28]!==_?(N={mutationFn:E,onSuccess:_,onError:k},t[27]=E,t[28]=_,t[29]=N):N=t[29];const F=x(N);let A;return t[30]!==T||t[31]!==F||t[32]!==w?(A={create:T,update:w,delete:F},t[30]=T,t[31]=F,t[32]=w,t[33]=A):A=t[33],A}function k(o){const s=o instanceof Error?o.message:String(o);L.error(`Failed to delete item: ${s}`)}function B(o){const s=o instanceof Error?o.message:String(o);L.error(`Failed to update item: ${s}`)}function P(o){const s=o instanceof Error?o.message:String(o);L.error(`Failed to create item: ${s}`)}export{G as a,j as b,Y as c,M as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as f,s as C}from"./index-
|
|
1
|
+
import{e as f,s as C}from"./index-CnknCe9i.js";import{u as N,c as O,a as S}from"./use-collections-CiD-L_rq.js";import{S as I,u as m}from"./constants-DGVET5nO.js";function b(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 s,l,c,d;o[2]!==n?({binding:s,includeVirtual:c,slug:d,...l}=n,o[2]=n,o[3]=s,o[4]=l,o[5]=c,o[6]=d):(s=o[3],l=o[4],c=o[5],d=o[6]);let e;o[7]!==s||o[8]!==l.additionalToolArgs||o[9]!==c||o[10]!==d?(e={...l.additionalToolArgs},s!==void 0&&(e.binding=s),c!==void 0&&(e.include_virtual=c),d!==void 0&&(e.slug=d),o[7]=s,o[8]=l.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]!==l||o[15]!==r?(g={...l,additionalToolArgs:r},o[14]=l,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 s=m(n);return N(i.id,"CONNECTIONS",t,s)}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,b as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c,r as n}from"./index-
|
|
1
|
+
import{e as c,r as n}from"./index-CnknCe9i.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-gYa1vYVG.js → use-create-virtual-mcp-BaV_MWOd.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as g}from"./index-
|
|
1
|
+
import{e as g}from"./index-CnknCe9i.js";import{a as p}from"./use-virtual-mcp-DYwCZbrQ.js";import{a as f}from"./use-navigate-to-agent-CBT4EeEo.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 l=n,{navigateOnCreate:d}=l,r=d===void 0?!1:d,t=p(),c=f();let a;e[2]!==t.create||e[3]!==r||e[4]!==c?(a=async()=>{const u=await t.create.mutateAsync({title:"New Agent",description:"AI-driven assistant designed to handle specific tasks",status:"active",connections:[],pinned:!0});return r&&c(u.id,{search:{main:"instructions"}}),{id:u.id,virtualMcp:u}},e[2]=t.create,e[3]=r,e[4]=c,e[5]=a):a=e[5];const o=a;let s;return e[6]!==t.create.isPending||e[7]!==o?(s={createVirtualMCP:o,isCreating:t.create.isPending},e[6]=t.create.isPending,e[7]=o,e[8]=s):s=e[8],s}export{A as u};
|
package/dist/client/assets/{use-debounced-autosave-BFE3ZeG7.js → use-debounced-autosave-BZkVf5Bt.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u}from"./index-
|
|
1
|
+
import{r as u}from"./index-CnknCe9i.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-decopilot-events-nw-lJk37.js → use-decopilot-events-CNFY9Cdo.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s}from"./index-
|
|
1
|
+
import{r as s}from"./index-CnknCe9i.js";import{c as k}from"./create-sse-subscription-CxkOgzKf.js";const c={STEP:"decopilot.step",FINISH:"decopilot.finish",THREAD_STATUS:"decopilot.thread.status"},b=Object.values(c),R=k({buildUrl:o=>{const e=b.join(",");return`/api/${encodeURIComponent(o)}/watch?types=${e}`},eventTypes:[...b]}),d=()=>0;function v(o){const{orgSlug:e,taskId:u,enabled:n=!0,onStep:i,onFinish:S,onTaskStatus:p}=o,l=s.useRef({taskId:u,onStep:i,onFinish:S,onTaskStatus:p});l.current={taskId:u,onStep:i,onFinish:S,onTaskStatus:p};const a=s.useRef(null),E=s.useRef(n),T=s.useRef(e);(!a.current||E.current!==n||T.current!==e)&&(E.current=n,T.current=e,a.current=f=>{if(!n||!e)return()=>{};const I=h=>{let t;try{t=JSON.parse(h.data)}catch{return}const r=l.current;if(!(r.taskId&&t.subject!==r.taskId)){switch(t.type){case c.STEP:r.onStep?.(t);break;case c.FINISH:r.onFinish?.(t);break;case c.THREAD_STATUS:r.onTaskStatus?.(t);break}f()}};return R.subscribe(e,I)}),s.useSyncExternalStore(a.current,d,d)}export{v as u};
|
package/dist/client/assets/{use-delete-connection-MTPofM5f.js → use-delete-connection-B92EkvSW.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as R,j as n,s as H,o as J,r as K,x as S}from"./index-
|
|
1
|
+
import{e as R,j as n,s as H,o as J,r as K,x as S}from"./index-CnknCe9i.js";import{c as F,b as L,d as $,f as k,e as q,g as M,a as P,A as U}from"./alert-dialog-BX6tjxLQ.js";import{u as z,S as B}from"./constants-DGVET5nO.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=w=>{w||i()},e[0]=i,e[1]=d):d=e[1];let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx(F,{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=w=>{w||i()},e[15]=i,e[16]=c):c=e[16];let f;e[17]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(F,{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 I=r.mode==="force-deleting"&&r.agentNames;let g;e[20]!==I?(g=n.jsx("span",{className:"font-medium text-foreground",children:I}),e[20]=I,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};
|
package/dist/client/assets/{use-infinite-scroll-KzNu752x.js → use-infinite-scroll-DxHMXvd2.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-CnknCe9i.js";function a(t,n,s=!1){const e=r.useRef(null),c=r.useRef(t),u=r.useRef(n),f=r.useRef(s);return c.current=t,u.current=n,f.current=s,o=>{e.current&&e.current.disconnect(),e.current=new IntersectionObserver(i=>{i[0]?.isIntersecting&&u.current&&!f.current&&c.current()}),o&&e.current.observe(o)}}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u,e as w}from"./index-
|
|
1
|
+
import{r as u,e as w}from"./index-CnknCe9i.js";import{u as E}from"./use-view-mode-CNrwjFk2.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 m,a as C,n as p,w as q}from"./index-
|
|
1
|
+
import{e as m,a as C,n as p,w as q}from"./index-CnknCe9i.js";import{K as T}from"./constants-DGVET5nO.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,s as i,w as l,K as m}from"./index-
|
|
1
|
+
import{e as n,s as i,w as l,K as m}from"./index-CnknCe9i.js";import{u as a}from"./use-org-auth-client-Btoi24Ng.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-zDaGGVEB.js → use-navigate-to-agent-CBT4EeEo.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as x,b as C,Q as b,f as k,s as v}from"./index-
|
|
1
|
+
import{e as x,b as C,Q as b,f as k,s as v}from"./index-CnknCe9i.js";import{b as y}from"./use-virtual-mcp-DYwCZbrQ.js";function N(s,i){const e=x.c(16),{data:l}=C.useSession(),a=l?.user?.id??"anon",$=`mesh:pinned-agents:${s}:${a}`;let r;e[0]!==i?(r=o=>o??i,e[0]=i,e[1]=r):r=e[1];const[n,t]=b($,r);let c;e[2]!==t?(c=o=>{t(f=>f.includes(o)?f:[...f,o])},e[2]=t,e[3]=c):c=e[3];const u=c;let d;e[4]!==t?(d=o=>{t(f=>f.filter(A=>A!==o))},e[4]=t,e[5]=d):d=e[5];const h=d;let g;e[6]!==t?(g=o=>{t(o)},e[6]=t,e[7]=g):g=e[7];const I=g;let p;e[8]!==n?(p=o=>n.includes(o),e[8]=n,e[9]=p):p=e[9];const P=p;let m;return e[10]!==P||e[11]!==u||e[12]!==n||e[13]!==I||e[14]!==h?(m={pinnedIds:n,pin:u,unpin:h,reorder:I,isPinned:P},e[10]=P,e[11]=u,e[12]=n,e[13]=I,e[14]=h,e[15]=m):m=e[15],m}function D(){const s=x.c(6),i=k(),{org:e}=v(),l=y();let a;s[0]!==l?(a=l.filter(U).map(S),s[0]=l,s[1]=a):a=s[1];const $=a,{pin:r}=N(e.id,$);let n;return s[2]!==i||s[3]!==e.slug||s[4]!==r?(n=(t,c)=>{r(t);const u=crypto.randomUUID();i({to:"/$org/$taskId",params:{org:e.slug,taskId:u},search:{...c?.search??{},virtualmcpid:t}})},s[2]=i,s[3]=e.slug,s[4]=r,s[5]=n):n=s[5],n}function S(s){return s.id}function U(s){return!!s.pinned}export{D as a,N as u};
|
package/dist/client/assets/{use-org-auth-client-CPZNMqkZ.js → use-org-auth-client-Btoi24Ng.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as h,s as x,b as i}from"./index-
|
|
1
|
+
import{e as h,s as x,b as i}from"./index-CnknCe9i.js";function q(){const e=h.c(29),{org:y}=x(),n=y.id;let v;e[0]!==n?(v=R=>(M=>i.organization[R]({...M??{},organizationId:n})),e[0]=n,e[1]=v):v=e[1];const t=v;let z;e[2]!==n?(z=R=>(M=>{const f={...M??{}},O=f.query??{};return f.query={...O,organizationId:n},i.organization[R](f)}),e[2]=n,e[3]=z):z=e[3];const b=z;let o,a;e[4]!==b?(o=b("listMembers"),a=b("listRoles"),e[4]=b,e[5]=o,e[6]=a):(o=e[5],a=e[6]);let r,l,s,c,u,g,d,m,p;e[7]!==t?(c=t("inviteMember"),u=t("removeMember"),g=t("updateMemberRole"),d=t("addMember"),m=t("createRole"),p=t("updateRole"),r=t("deleteRole"),l=t("cancelInvitation"),s=t("update"),e[7]=t,e[8]=r,e[9]=l,e[10]=s,e[11]=c,e[12]=u,e[13]=g,e[14]=d,e[15]=m,e[16]=p):(r=e[8],l=e[9],s=e[10],c=e[11],u=e[12],g=e[13],d=e[14],m=e[15],p=e[16]);let I;return e[17]!==r||e[18]!==l||e[19]!==s||e[20]!==o||e[21]!==a||e[22]!==c||e[23]!==u||e[24]!==g||e[25]!==d||e[26]!==m||e[27]!==p?(I={organization:{listMembers:o,listRoles:a,inviteMember:c,removeMember:u,updateMemberRole:g,addMember:d,createRole:m,updateRole:p,deleteRole:r,cancelInvitation:l,update:s,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[17]=r,e[18]=l,e[19]=s,e[20]=o,e[21]=a,e[22]=c,e[23]=u,e[24]=g,e[25]=d,e[26]=m,e[27]=p,e[28]=I):I=e[28],I}export{q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as u,n as S,o as l,a as y,K as c}from"./index-
|
|
1
|
+
import{e as u,n as S,o as l,a as y,K as c}from"./index-CnknCe9i.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-CJVol15S.js → use-organization-roles-D_UI-fW0.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as p}from"./use-org-auth-client-
|
|
1
|
+
import{u as p}from"./use-org-auth-client-Btoi24Ng.js";import{s as P,n as b,K as y}from"./index-CnknCe9i.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," ")}function O(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const a=[];let n=!1;const u=[];let c=!1;const r=new Set;let s=!1,f=0,o=!1;for(const[l,e]of Object.entries(t)){if(l==="self"){e.includes("*")?n=!0:a.push(...e);continue}if(l==="models"){e.includes("*:*")?o=!0:f=e.length;continue}if(l==="*"){if(c=!0,e.includes("*"))s=!0;else for(const i of e)r.add(i);continue}if(u.push(l),e.includes("*"))s=!0;else for(const i of e)r.add(i)}return{staticPermissions:a,allowsAllStaticPermissions:n,connectionIds:u,allowsAllConnections:c,toolNames:Array.from(r),allowsAllTools:s,modelCount:f,allowsAllModels:o}}function I(){const{locator:t}=P(),a=p(),{data:n,isLoading:u,error:c,refetch:r}=b({queryKey:y.organizationRoles(t),queryFn:async()=>{try{const o=await a.organization.listRoles();return o?.error?(console.error("[useOrganizationRoles] API error:",o.error),[]):o?.data??[]}catch(o){return console.error("[useOrganizationRoles] Fetch error:",o),[]}},staleTime:3e4}),s=w.map(o=>({role:o.value,label:o.label,isBuiltin:o.isBuiltin}));if(n&&Array.isArray(n))for(const o of n){const l=o.role;if(!l||w.some(R=>R.value===l))continue;const{staticPermissions:e,allowsAllStaticPermissions:i,connectionIds:g,allowsAllConnections:m,toolNames:h,allowsAllTools:d,modelCount:C,allowsAllModels:A}=O(o.permission);s.push({id:o.id,role:l,label:B(l),isBuiltin:!1,permission:o.permission??void 0,staticPermissionCount:i?-1:e.length,allowsAllStaticPermissions:i,connectionCount:m?-1:g.length,allowsAllConnections:m,toolCount:d?-1:h.length,allowsAllTools:d,modelCount:A?-1:C,allowsAllModels:A})}const f=s.filter(o=>!o.isBuiltin);return{roles:s,customRoles:f,builtinRoles:s.filter(o=>o.isBuiltin),isLoading:u,error:c,refetch:r}}export{I as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c,s as m,K as f,n as E,o as A,a as I,w as h}from"./index-
|
|
1
|
+
import{e as c,s as m,K as f,n as E,o as A,a as I,w as h}from"./index-CnknCe9i.js";import{S as g,u as _,d as z}from"./constants-DGVET5nO.js";const d={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null},p={enabled:!1,chat:{fast:null,smart:null,thinking:null},image:null,webResearch:null};function y(t){const e=c.c(12),{org:n}=m();let s;e[0]!==n.id||e[1]!==n.slug?(s={connectionId:g,orgId:n.id,orgSlug:n.slug},e[0]=n.id,e[1]=n.slug,e[2]=s):s=e[2];const l=_(s);let i;e[3]!==n.id?(i=f.organizationSettings(n.id),e[3]=n.id,e[4]=i):i=e[4];let a;e[5]!==l||e[6]!==n.id?(a=async()=>{const u=await l.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}});return u?.isError?{...d,organizationId:n.id}:u.structuredContent??{...d,organizationId:n.id}},e[5]=l,e[6]=n.id,e[7]=a):a=e[7];const r=t;let o;return e[8]!==i||e[9]!==a||e[10]!==r?(o={queryKey:i,queryFn:a,staleTime:6e4,select:r},e[8]=i,e[9]=a,e[10]=r,e[11]=o):o=e[11],E(o)}function M(t,e){const n=c.c(11);let s;n[0]!==t||n[1]!==e?(s={connectionId:g,orgId:t,orgSlug:e},n[0]=t,n[1]=e,n[2]=s):s=n[2];const l=_(s);let i;n[3]!==t?(i=f.organizationSettings(t),n[3]=t,n[4]=i):i=n[4];let a;n[5]!==l||n[6]!==t?(a=async()=>{const u=await l.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}});return u?.isError?{...d,organizationId:t}:u.structuredContent??{...d,organizationId:t}},n[5]=l,n[6]=t,n[7]=a):a=n[7];let r;n[8]!==i||n[9]!==a?(r={queryKey:i,queryFn:a,staleTime:6e4},n[8]=i,n[9]=a,n[10]=r):r=n[10];const{data:o}=h(r);return o}function S(){const t=c.c(12),{org:e}=m();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 s=_(n),l=A();let i;t[3]!==s||t[4]!==e.id?(i=async o=>{const u=await s.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e.id,...o}});if(u?.isError)throw new Error(u.content?.[0]?.text??"Failed to update organization settings");const T=u.structuredContent;if(!T)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return T},t[3]=s,t[4]=e.id,t[5]=i):i=t[5];let a;t[6]!==e.id||t[7]!==l?(a=o=>{l.setQueryData(f.organizationSettings(e.id),u=>({...u??d,...o}))},t[6]=e.id,t[7]=l,t[8]=a):a=t[8];let r;return t[9]!==i||t[10]!==a?(r={mutationFn:i,onSuccess:a},t[9]=i,t[10]=a,t[11]=r):r=t[11],I(r)}function C(t){return t?{enabled:t.enabled??!1,chat:{fast:t.chat?.fast??null,smart:t.chat?.smart??null,thinking:t.chat?.thinking??null},image:t.image??null,webResearch:t.webResearch??null}:p}function P(){const{data:t}=y(N);return t??p}function N(t){return C(t.simple_mode)}function D(){const t=c.c(7),e=S();let n,s;t[0]!==e?(n=(i,a)=>e.mutate({simple_mode:i},a),s=(i,a)=>e.mutateAsync({simple_mode:i},a),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let l;return t[3]!==e||t[4]!==n||t[5]!==s?(l={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=l):l=t[6],l}function O(){const{data:t}=y(R);return t??null}function R(t){return t.registry_config}function $(){const t=c.c(7),e=S();let n,s;t[0]!==e?(n=(i,a)=>e.mutate({registry_config:i},a),s=(i,a)=>e.mutateAsync({registry_config:i},a),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let l;return t[3]!==e||t[4]!==n||t[5]!==s?(l={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=l):l=t[6],l}function U(){const{data:t}=y(w);return t??null}function w(t){return t.default_home_agents}function q(){const t=c.c(7),e=S();let n,s;t[0]!==e?(n=(i,a)=>e.mutate({default_home_agents:i},a),s=(i,a)=>e.mutateAsync({default_home_agents:i},a),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let l;return t[3]!==e||t[4]!==n||t[5]!==s?(l={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=l):l=t[6],l}function F(){const t=c.c(5),{org:e}=m(),n=O();let s;t[0]!==e.id?(s=z.REGISTRY(e.id),t[0]=e.id,t[1]=s):s=t[1];const l=s;let i;return t[2]!==l||t[3]!==n?(i=a=>{if(!n)return a===l;const r=n.registries[a];return r?r.enabled:a===l},t[2]=l,t[3]=n,t[4]=i):i=t[4],i}export{F as a,M as b,q as c,S as d,P as e,D as f,O as g,$ as h,U as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a,s as C}from"./index-
|
|
1
|
+
import{e as a,s as C}from"./index-CnknCe9i.js";import{u as R}from"./use-connection-JNwwjcGV.js";import{d as u}from"./constants-DGVET5nO.js";import{g as p}from"./use-organization-settings-Dxy82qy3.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 r,P as u}from"./index-
|
|
1
|
+
import{e as r,P as u}from"./index-CnknCe9i.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-CNFY9Cdo.js";const p=new Set(["completed","failed","requires_action"]);function q(s){const e=r.c(5),[n]=u();let t;e[0]!==n?(t=o=>{n.enableSounds&&p.has(o.data.status)&&i(c.dataUri).catch(l)},e[0]=n,e[1]=t):t=e[1];let a;e[2]!==s||e[3]!==t?(a={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=a):a=e[4],f(a)}function l(s){console.warn("[status-sounds] playback failed:",s)}export{q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as p,s as y,o as A,K as C}from"./index-
|
|
1
|
+
import{e as p,s as y,o as A,K as C}from"./index-CnknCe9i.js";import{a as S}from"./use-collections-CiD-L_rq.js";import{S as x,u as E}from"./constants-DGVET5nO.js";function M(){const t=p.c(13),{org:e,locator:c}=y();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:x,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const m=E(n),l=A(),i=S(e.id,"THREADS",m),s=i.create;let r;t[3]!==c||t[4]!==s||t[5]!==l?(r=async(f,d)=>{const g=await s.mutateAsync(f,d);return l.invalidateQueries({queryKey:C.tasksPrefix(c)}),g},t[3]=c,t[4]=s,t[5]=l,t[6]=r):r=t[6];const u=r;let o;t[7]!==s||t[8]!==u?(o={...s,mutateAsync:u},t[7]=s,t[8]=u,t[9]=o):o=t[9];let a;return t[10]!==i||t[11]!==o?(a={...i,create:o},t[10]=i,t[11]=o,t[12]=a):a=t[12],a}export{M as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as p,r as f}from"./index-
|
|
1
|
+
import{e as p,r as f}from"./index-CnknCe9i.js";import{u as w}from"./tooltip-VTeNtMCR.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 l,s as u}from"./index-
|
|
1
|
+
import{e as l,s as u}from"./index-CnknCe9i.js";import{c as g,a,u as C}from"./use-collections-CiD-L_rq.js";import{S as c,u as r}from"./constants-DGVET5nO.js";function M(s){const o=l.c(5);let t;o[0]!==s?(t=s===void 0?{}:s,o[0]=s,o[1]=t):t=o[1];const n=t,{org:i}=u();let e;o[2]!==i.id||o[3]!==i.slug?(e={connectionId:c,orgId:i.id,orgSlug:i.slug},o[2]=i.id,o[3]=i.slug,o[4]=e):e=o[4];const d=r(e);return g(i.id,"VIRTUAL_MCP",d,n)}function m(s){const o=l.c(3),{org:t}=u();let n;o[0]!==t.id||o[1]!==t.slug?(n={connectionId:c,orgId:t.id,orgSlug:t.slug},o[0]=t.id,o[1]=t.slug,o[2]=n):n=o[2];const i=r(n);return C(t.id,"VIRTUAL_MCP",s??void 0,i)}function V(){const s=l.c(3),{org:o}=u();let t;s[0]!==o.id||s[1]!==o.slug?(t={connectionId:c,orgId:o.id,orgSlug:o.slug},s[0]=o.id,s[1]=o.slug,s[2]=t):t=s[2];const n=r(t);return a(o.id,"VIRTUAL_MCP",n)}export{V as a,M as b,m as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-BpzCmbvi.js";import{c2 as i}from"./index-CnknCe9i.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-BpzCmbvi.js";import{c2 as u,c3 as n}from"./index-CnknCe9i.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,s as b,n as C,K as k,c as y,j as t}from"./index-
|
|
1
|
+
import{e as S,s as b,n as C,K as k,c as y,j as t}from"./index-CnknCe9i.js";import{A as E}from"./avatar-qtN1d68D.js";import{S as A,u as _}from"./constants-DGVET5nO.js";function K(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 T(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}=K(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{T as U};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as P,r as v,c as m,j as o}from"./index-
|
|
1
|
+
import{e as P,r as v,c as m,j as o}from"./index-CnknCe9i.js";import{T as L,a as M,b as q}from"./tooltip-VTeNtMCR.js";const A={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function F(W){const e=P.c(29),{value:s,onValueChange:j,options:i,size:_,fullWidth:C,className:y}=W,$=_===void 0?"sm":_,u=C===void 0?!1:C,E=v.useRef(null),S=v.useRef(null);let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={left:0,width:0,opacity:0},e[0]=x):x=e[0];const[f,k]=v.useState(x);let g;e[1]===Symbol.for("react.memo_cache_sentinel")?(g=t=>{if(!t.current)return;const{offsetLeft:R,offsetWidth:T}=t.current;k({left:R,width:T,opacity:1})},e[1]=g):g=e[1];const I=g;let b;e[2]!==i[0].value||e[3]!==s?(b=()=>{const t=s===i[0].value?E:S;I(t)},e[2]=i[0].value,e[3]=s,e[4]=b):b=e[4];let h;e[5]!==i||e[6]!==s?(h=[s,i],e[5]=i,e[6]=s,e[7]=h):h=e[7],v.useEffect(b,h);const d=A[$];let n;e[8]!==y?(n=m("relative flex gap-0 bg-muted rounded-lg",y),e[8]=y,e[9]=n):n=e[9];let l;e[10]!==d||e[11]!==u||e[12]!==j||e[13]!==i||e[14]!==s?(l=i.map((t,R)=>{const T=R===0?E:S,V=o.jsxs("button",{ref:T,type:"button",onClick:()=>j(t.value),className:m("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:[o.jsx("span",{className:m("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&&o.jsx("span",{className:m("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?o.jsxs(L,{children:[o.jsx(M,{asChild:!0,children:V}),o.jsx(q,{side:"bottom",children:t.tooltip})]},t.value):V}),e[10]=d,e[11]=u,e[12]=j,e[13]=i,e[14]=s,e[15]=l):l=e[15];const z=u?"h-12":d.button;let a;e[16]!==z?(a=m("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",z),e[16]=z,e[17]=a):a=e[17];const w=`${f.left}px`,N=`${f.width}px`;let r;e[18]!==f.opacity||e[19]!==w||e[20]!==N?(r={left:w,width:N,opacity:f.opacity},e[18]=f.opacity,e[19]=w,e[20]=N,e[21]=r):r=e[21];let c;e[22]!==a||e[23]!==r?(c=o.jsx("div",{className:a,style:r}),e[22]=a,e[23]=r,e[24]=c):c=e[24];let p;return e[25]!==c||e[26]!==n||e[27]!==l?(p=o.jsxs("div",{className:n,children:[l,c]}),e[25]=c,e[26]=n,e[27]=l,e[28]=p):p=e[28],p}export{F as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as oe,j as t,B as Ce,f as Be,b as ct,s as ze,r as dt,x as Le,o as ut,a as mt,K as Fe,Y as Ke,Z as pt}from"./index-0dtUnOR1.js";import{u as Ve,S as qe}from"./constants-CMPjFkrZ.js";import{B as ft,g as Me}from"./constants-XGFAnuHn.js";import{C as Ge}from"./collection-display-button-BSv13jEo.js";import{C as ht}from"./collection-search-jhKWbxqo.js";import{C as gt}from"./card-CkFfla-m.js";import{I as Qe}from"./integration-icon-CDE9CENl.js";import{D as Ye,a as He,b as Je,c as O}from"./dropdown-menu-BpPFRti7.js";import{c as Ze}from"./XCircle-B-00qJpY.js";import{i as Xe}from"./DotsVertical-BljfGuhu.js";import{i as et}from"./Tool01-Cu4I31F8.js";import{s as tt}from"./RefreshCcw01-CCzpYBs0.js";import{s as st}from"./Trash01-4Dq6ympL.js";import{C as xt}from"./collection-table-wrapper-hR7H16-N.js";import{E as Ue}from"./empty-state-Vlkqr5Ha.js";import{G as We}from"./agent-icon-D9odI-qh.js";import{U as jt}from"./user-Df7A58iD.js";import{E as it}from"./empty-state-Be0FdXg2.js";import{u as Ct}from"./use-list-state-BMUfPc5P.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-DCT4MTMH.js";import{a as It,c as At}from"./use-collections-BLOTVIAP.js";import{a as Tt}from"./use-connection-DGPnnQz6.js";import{s as Et}from"./Plus-28zZOE9T.js";import{a as Ot}from"./layout-DMQieMve.js";import{P as je}from"./index-CGKwbcyW.js";import"./collections-B60eBxX4.js";import"./XClose-_Y5VAjW5.js";import"./Check-Dgq0jjpz.js";import"./tooltip-XW5rFMNu.js";import"./view-mode-toggle-DoidsjaP.js";import"./badge-BXVtVPzt.js";import"./SearchMd-BpRj1P2W.js";import"./Container-zeFPXb1Q.js";import"./ChevronRight-DfFDUpKj.js";import"./table-Cg2S62iB.js";import"./AlertCircle-Cb7fTEMa.js";import"./ArrowNarrowLeft-tcEBzg5K.js";import"./ArrowUpRight-Ds7CgDkL.js";import"./ZapSquare-Cpo7Z7gP.js";import"./Users03-rbWg-6tV.js";import"./CheckCircle-rZ5sDOOP.js";import"./ChevronDown-CH5lQohM.js";import"./ChevronUp-DCsRkih0.js";import"./Star01-ChekdAzX.js";import"./Palette-CURRsupy.js";import"./LinkExternal01-MvI2bZbP.js";import"./Lock01-CidilFiJ.js";import"./Sun-TuktgENq.js";import"./Play-DLW6aJFn.js";import"./Settings02-CE5ZLw2I.js";import"./Shield01-Dtb2_AeI.js";import"./User01-DKnZn118.js";import"./X-CAquUT--.js";import"./Zap-B8xnzkap.js";import"./avatar-JoKAxyik.js";import"./use-view-mode-Bc5J1h4b.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,p=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 m;e[5]!==r||e[6]!==s.title?(m=t.jsx(Qe,{icon:r,name:s.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=s.title,e[7]=m):m=e[7];let u;e[8]!==s.title?(u=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=u):u=e[9];const f=p||"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]!==u||e[13]!==a?(v=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[u,a]}),e[12]=u,e[13]=a,e[14]=v):v=e[14];let y;e[15]!==m||e[16]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[m,v]}),e[15]=m,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:Ft,children:t.jsxs(Ye,{children:[t.jsx(He,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Lt,children:t.jsx(Xe,{size:20})})}),t.jsxs(Je,{align:"end",onClick:zt,children:[n.open&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.open?.(s)},children:[t.jsx(tt,{size:16}),"Open"]}),n.edit&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.edit?.(s)},children:[t.jsx(et,{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 Lt(i){return i.stopPropagation()}function Ft(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:p,onSort:d,actions:o,onItemClick:m,headerActions:u,emptyState:f,readOnly:a,columns:v,hideToolbar:y,sortableFields:b}=i,x=p===void 0?"asc":p,g=d===void 0?qt:d;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const h=$,T=m===void 0?Vt:m,E=u===void 0?null:u,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(Ge,{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:Yt(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 Vt(){}function qt(){}function Gt(i){return{id:"actions",header:"",render:e=>t.jsxs(Ye,{children:[t.jsx(He,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:s=>s.stopPropagation(),children:t.jsx(Xe,{size:20})})}),t.jsxs(Je,{align:"end",onClick:s=>s.stopPropagation(),children:[i.open&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.open?.(e)},children:[t.jsx(tt,{size:16}),"Open"]}),i.edit&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.edit?.(e)},children:[t.jsx(et,{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 Qt(i,e){const s=i.properties||{},l=Object.keys(s).filter(o=>{const m=s[o];return m&&nt(m)}),n=Ut(s),c=[],r=new Set;n&&l.includes(n)&&(c.push(n),r.add(n));const p=["title","description","updated_at","updated_by"];for(const o of p)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,m)=>o.localeCompare(m));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 m=s[o],u=e?e.includes(o):!["id"].includes(o);return o===n?{id:o,header:"",render:f=>{const a=f[o];return t.jsx(Qe,{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:u,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:u,cellClassName:"max-w-[250px]"}:m?.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:u,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:u,cellClassName:"max-w-[200px]"}})}function Yt(i,e,s,l){const n=i||Qt(e,s);return n.some(p=>p.id==="actions")?n:Object.keys(l).length>0?[...n,Gt(l)]:n}function Ht(i){const e=oe.c(119),{connectionId:s,org:l,activeCollection:n,onItemClick:c}=i,r=n.name,p=n.schema??ft,d=n.hasCreateTool,o=n.hasUpdateTool,m=n.hasDeleteTool,u=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 $=Ve(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&&!m;let ne;e[14]!==b||e[15]!==r||e[16]!==u||e[17]!==c||e[18]!==l?(ne=C=>{if(c){c(C);return}u({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]=u,e[17]=c,e[18]=l,e[19]=ne):ne=e[19];const L=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,[F,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]!==L||e[25]!==o?(K=o&&{edit:L},e[24]=L,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]!==m?(U=m&&{delete:rt},e[30]=m,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]!==F?(ce=async()=>{F&&(await h.delete.mutateAsync(F.id),ve(null))},e[36]=h.delete,e[37]=F,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]!==u||e[44]!==l||e[45]!==a?(de=async()=>{if(!d){Le.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);u({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]=u,e[44]=l,e[45]=a,e[46]=de):de=e[46];const we=de;let ue;e[47]!==p?(ue=ot(p),e[47]=p,e[48]=ue):ue=e[48];const Se=ue,lt=(I?.length??0)>0,at=d&&!lt&&!N;let me;e[49]!==h.create||e[50]!==we||e[51]!==d?(me=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]=me):me=e[52];const pe=me,Pe=D;let W;e[53]!==S||e[54]!==w||e[55]!==Se||e[56]!==Pe?(W=t.jsx(Ot,{children:t.jsx(Ge,{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 V;e[65]!==pe||e[66]!==d?(V=d&&t.jsx("div",{className:"pr-3",children:pe}),e[65]=pe,e[66]=d,e[67]=V):V=e[67];let q;e[68]!==B||e[69]!==V?(q=t.jsxs("div",{className:"flex items-center gap-2",children:[B,V]}),e[68]=B,e[69]=V,e[70]=q):q=e[70];let G;e[71]!==I?(G=I??[],e[71]=I,e[72]=G):G=e[72];const De=D;let Q;e[73]!==L?(Q=C=>L(C),e[73]=L,e[74]=Q):Q=e[74];const Ie="No items found",Ae=N?"Try adjusting your search terms":"This collection doesn't have any items yet.",Te=at?pe:void 0;let Y;e[75]!==Ie||e[76]!==Ae||e[77]!==Te?(Y=t.jsx(it,{image:null,title:Ie,description:Ae,actions:Te}),e[75]=Ie,e[76]=Ae,e[77]=Te,e[78]=Y):Y=e[78];let H;e[79]!==S||e[80]!==A||e[81]!==ye||e[82]!==p||e[83]!==N||e[84]!==j||e[85]!==P||e[86]!==w||e[87]!==G||e[88]!==De||e[89]!==Q||e[90]!==Y||e[91]!==z?(H=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Wt,{hideToolbar:!0,data:G,schema:p,viewMode:z,onViewModeChange:P,search:N,onSearchChange:j,sortKey:De,sortDirection:w,onSort:S,actions:ye,onItemClick:Q,readOnly:A,emptyState:Y})}),e[79]=S,e[80]=A,e[81]=ye,e[82]=p,e[83]=N,e[84]=j,e[85]=P,e[86]=w,e[87]=G,e[88]=De,e[89]=Q,e[90]=Y,e[91]=z,e[92]=H):H=e[92];let J;e[93]!==q||e[94]!==H?(J=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[q,H]}),e[93]=q,e[94]=H,e[95]=J):J=e[95];const Ee=!!F;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=F?.title;let Z;e[98]!==Oe?(Z=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]=Z):Z=e[99];let X;e[100]!==h.delete.isPending?(X=t.jsx(vt,{disabled:h.delete.isPending,children:"Cancel"}),e[100]=h.delete.isPending,e[101]=X):X=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]!==X||e[107]!==ee?(te=t.jsxs(Pt,{children:[X,ee]}),e[106]=X,e[107]=ee,e[108]=te):te=e[108];let se;e[109]!==Z||e[110]!==te?(se=t.jsxs(_t,{children:[Z,te]}),e[109]=Z,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]!==J||e[117]!==ie?(ge=t.jsxs(t.Fragment,{children:[W,J,ie]}),e[115]=W,e[116]=J,e[117]=ie,e[118]=ge):ge=e[118],ge}function Jt(){const i=oe.c(13),{org:e,project:s}=ze(),l=ut();let n;i[0]!==e.id||i[1]!==e.slug?(n={connectionId:qe,orgId:e.id,orgSlug:e.slug},i[0]=e.id,i[1]=e.slug,i[2]=n):n=i[2];const c=Ve(n);let r;i[3]!==c||i[4]!==s?(r=async m=>{const u=s.enabledPlugins??[];if(u.includes(m))return;const f=[...u,m],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 p;i[6]!==e.id||i[7]!==s||i[8]!==l?(p=()=>{l.invalidateQueries({queryKey:Fe.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Fe.projects(e.id)})},i[6]=e.id,i[7]=s,i[8]=l,i[9]=p):p=i[9];let d;return i[10]!==r||i[11]!==p?(d={mutationFn:r,onSuccess:p,onError:Zt},i[10]=r,i[11]=p,i[12]=d):d=i[12],mt(d)}function Zt(i){Le.error("Failed to enable plugin: "+(i instanceof Error?i.message:"Unknown error"))}function Xt(i){const e=oe.c(12),{pluginId:s,title:l,description:n,icon:c}=i,r=Jt();let p;e[0]!==r||e[1]!==s?(p=async()=>{try{await r.mutateAsync(s),Le.success("Plugin enabled!")}catch{}},e[0]=r,e[1]=s,e[2]=p):p=e[2];const d=p,o=c??null,m=r.isPending?"Enabling…":"Enable plugin";let u;e[3]!==r.isPending||e[4]!==d||e[5]!==m?(u=t.jsx(Ce,{onClick:d,disabled:r.isPending,children:m}),e[3]=r.isPending,e[4]=d,e[5]=m,e[6]=u):u=e[6];let f;return e[7]!==n||e[8]!==o||e[9]!==u||e[10]!==l?(f=t.jsx(it,{image:o,title:l,description:n,actions:u}),e[7]=n,e[8]=o,e[9]=u,e[10]=l,e[11]=f):f=e[11],f}const es={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function ni(){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(Xt,{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(pt,{className:"size-8 text-muted-foreground"})})})})})});const n=Be();return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx(Ht,{connectionId:qe,org:e.slug,activeCollection:es,onItemClick:c=>n({to:"/$org/settings/workflows/$itemId",params:{org:e.slug,itemId:c.id}})})})})}export{ni as default};
|
|
1
|
+
import{e as oe,j as t,B as Ce,f as Be,b as ct,s as ze,r as dt,x as Le,o as ut,a as mt,K as Fe,Y as Ke,Z as pt}from"./index-CnknCe9i.js";import{u as Ve,S as qe}from"./constants-DGVET5nO.js";import{B as ft,g as Me}from"./constants-BVAyWr7s.js";import{C as Ge}from"./collection-display-button-DKtSFWra.js";import{C as ht}from"./collection-search-Ce1lQnUu.js";import{C as gt}from"./card-BoqhySt6.js";import{I as Qe}from"./integration-icon-BIIE53tx.js";import{D as Ye,a as He,b as Je,c as O}from"./dropdown-menu-V4M0HjsW.js";import{c as Ze}from"./XCircle-D-iHz9mr.js";import{i as Xe}from"./DotsVertical-EPasiNNs.js";import{i as et}from"./Tool01-Ba51oSqA.js";import{s as tt}from"./RefreshCcw01-02Zm-r_b.js";import{s as st}from"./Trash01-phS8Heeq.js";import{C as xt}from"./collection-table-wrapper-Bd9ZSFN9.js";import{E as Ue}from"./empty-state-CZ3CJw7j.js";import{G as We}from"./agent-icon-CJE3IrTn.js";import{U as jt}from"./user-kEnfgZB9.js";import{E as it}from"./empty-state-D5_lJgOy.js";import{u as Ct}from"./use-list-state-CC6sLPth.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-BX6tjxLQ.js";import{a as It,c as At}from"./use-collections-CiD-L_rq.js";import{a as Tt}from"./use-connection-JNwwjcGV.js";import{s as Et}from"./Plus-yWDQ_tpZ.js";import{a as Ot}from"./layout-CdewzpDg.js";import{P as je}from"./index-CoJ8j1Pw.js";import"./collections-DW4PTltg.js";import"./XClose-DGH-dkmK.js";import"./Check-BA7p_1wq.js";import"./tooltip-VTeNtMCR.js";import"./view-mode-toggle-CrpJwZiO.js";import"./badge-B9X-6Gl1.js";import"./SearchMd-KthT6Z0D.js";import"./Container-C2bhieKl.js";import"./ChevronRight-2ozRd8ql.js";import"./table-DM5YCF_t.js";import"./AlertCircle-DJf7WJW3.js";import"./ArrowNarrowLeft-zhth65sS.js";import"./ArrowUpRight-B3qf65r_.js";import"./ZapSquare-zYT4mArq.js";import"./Users03-BpQp0OZp.js";import"./CheckCircle-Y9PieZLB.js";import"./ChevronDown-CHAav7qy.js";import"./ChevronUp-DiTrXBul.js";import"./Star01-DfneWwne.js";import"./Palette-C_hdzDFv.js";import"./LinkExternal01-BPHdX5PH.js";import"./Lock01-BGF0eORu.js";import"./Sun-jEEtT5QL.js";import"./Play-F9KGb4fS.js";import"./Settings02-o9kWs5LM.js";import"./Shield01-C6IvOcka.js";import"./User01-ZJzkhpRI.js";import"./X-C7tkmqiA.js";import"./Zap-B3d9PZiM.js";import"./avatar-qtN1d68D.js";import"./use-view-mode-CNrwjFk2.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,p=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 m;e[5]!==r||e[6]!==s.title?(m=t.jsx(Qe,{icon:r,name:s.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=s.title,e[7]=m):m=e[7];let u;e[8]!==s.title?(u=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=u):u=e[9];const f=p||"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]!==u||e[13]!==a?(v=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[u,a]}),e[12]=u,e[13]=a,e[14]=v):v=e[14];let y;e[15]!==m||e[16]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[m,v]}),e[15]=m,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:Ft,children:t.jsxs(Ye,{children:[t.jsx(He,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Lt,children:t.jsx(Xe,{size:20})})}),t.jsxs(Je,{align:"end",onClick:zt,children:[n.open&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.open?.(s)},children:[t.jsx(tt,{size:16}),"Open"]}),n.edit&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.edit?.(s)},children:[t.jsx(et,{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 Lt(i){return i.stopPropagation()}function Ft(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:p,onSort:d,actions:o,onItemClick:m,headerActions:u,emptyState:f,readOnly:a,columns:v,hideToolbar:y,sortableFields:b}=i,x=p===void 0?"asc":p,g=d===void 0?qt:d;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const h=$,T=m===void 0?Vt:m,E=u===void 0?null:u,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(Ge,{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:Yt(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 Vt(){}function qt(){}function Gt(i){return{id:"actions",header:"",render:e=>t.jsxs(Ye,{children:[t.jsx(He,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:s=>s.stopPropagation(),children:t.jsx(Xe,{size:20})})}),t.jsxs(Je,{align:"end",onClick:s=>s.stopPropagation(),children:[i.open&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.open?.(e)},children:[t.jsx(tt,{size:16}),"Open"]}),i.edit&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.edit?.(e)},children:[t.jsx(et,{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 Qt(i,e){const s=i.properties||{},l=Object.keys(s).filter(o=>{const m=s[o];return m&&nt(m)}),n=Ut(s),c=[],r=new Set;n&&l.includes(n)&&(c.push(n),r.add(n));const p=["title","description","updated_at","updated_by"];for(const o of p)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,m)=>o.localeCompare(m));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 m=s[o],u=e?e.includes(o):!["id"].includes(o);return o===n?{id:o,header:"",render:f=>{const a=f[o];return t.jsx(Qe,{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:u,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:u,cellClassName:"max-w-[250px]"}:m?.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:u,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:u,cellClassName:"max-w-[200px]"}})}function Yt(i,e,s,l){const n=i||Qt(e,s);return n.some(p=>p.id==="actions")?n:Object.keys(l).length>0?[...n,Gt(l)]:n}function Ht(i){const e=oe.c(119),{connectionId:s,org:l,activeCollection:n,onItemClick:c}=i,r=n.name,p=n.schema??ft,d=n.hasCreateTool,o=n.hasUpdateTool,m=n.hasDeleteTool,u=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 $=Ve(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&&!m;let ne;e[14]!==b||e[15]!==r||e[16]!==u||e[17]!==c||e[18]!==l?(ne=C=>{if(c){c(C);return}u({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]=u,e[17]=c,e[18]=l,e[19]=ne):ne=e[19];const L=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,[F,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]!==L||e[25]!==o?(K=o&&{edit:L},e[24]=L,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]!==m?(U=m&&{delete:rt},e[30]=m,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]!==F?(ce=async()=>{F&&(await h.delete.mutateAsync(F.id),ve(null))},e[36]=h.delete,e[37]=F,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]!==u||e[44]!==l||e[45]!==a?(de=async()=>{if(!d){Le.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);u({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]=u,e[44]=l,e[45]=a,e[46]=de):de=e[46];const we=de;let ue;e[47]!==p?(ue=ot(p),e[47]=p,e[48]=ue):ue=e[48];const Se=ue,lt=(I?.length??0)>0,at=d&&!lt&&!N;let me;e[49]!==h.create||e[50]!==we||e[51]!==d?(me=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]=me):me=e[52];const pe=me,Pe=D;let W;e[53]!==S||e[54]!==w||e[55]!==Se||e[56]!==Pe?(W=t.jsx(Ot,{children:t.jsx(Ge,{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 V;e[65]!==pe||e[66]!==d?(V=d&&t.jsx("div",{className:"pr-3",children:pe}),e[65]=pe,e[66]=d,e[67]=V):V=e[67];let q;e[68]!==B||e[69]!==V?(q=t.jsxs("div",{className:"flex items-center gap-2",children:[B,V]}),e[68]=B,e[69]=V,e[70]=q):q=e[70];let G;e[71]!==I?(G=I??[],e[71]=I,e[72]=G):G=e[72];const De=D;let Q;e[73]!==L?(Q=C=>L(C),e[73]=L,e[74]=Q):Q=e[74];const Ie="No items found",Ae=N?"Try adjusting your search terms":"This collection doesn't have any items yet.",Te=at?pe:void 0;let Y;e[75]!==Ie||e[76]!==Ae||e[77]!==Te?(Y=t.jsx(it,{image:null,title:Ie,description:Ae,actions:Te}),e[75]=Ie,e[76]=Ae,e[77]=Te,e[78]=Y):Y=e[78];let H;e[79]!==S||e[80]!==A||e[81]!==ye||e[82]!==p||e[83]!==N||e[84]!==j||e[85]!==P||e[86]!==w||e[87]!==G||e[88]!==De||e[89]!==Q||e[90]!==Y||e[91]!==z?(H=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Wt,{hideToolbar:!0,data:G,schema:p,viewMode:z,onViewModeChange:P,search:N,onSearchChange:j,sortKey:De,sortDirection:w,onSort:S,actions:ye,onItemClick:Q,readOnly:A,emptyState:Y})}),e[79]=S,e[80]=A,e[81]=ye,e[82]=p,e[83]=N,e[84]=j,e[85]=P,e[86]=w,e[87]=G,e[88]=De,e[89]=Q,e[90]=Y,e[91]=z,e[92]=H):H=e[92];let J;e[93]!==q||e[94]!==H?(J=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[q,H]}),e[93]=q,e[94]=H,e[95]=J):J=e[95];const Ee=!!F;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=F?.title;let Z;e[98]!==Oe?(Z=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]=Z):Z=e[99];let X;e[100]!==h.delete.isPending?(X=t.jsx(vt,{disabled:h.delete.isPending,children:"Cancel"}),e[100]=h.delete.isPending,e[101]=X):X=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]!==X||e[107]!==ee?(te=t.jsxs(Pt,{children:[X,ee]}),e[106]=X,e[107]=ee,e[108]=te):te=e[108];let se;e[109]!==Z||e[110]!==te?(se=t.jsxs(_t,{children:[Z,te]}),e[109]=Z,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]!==J||e[117]!==ie?(ge=t.jsxs(t.Fragment,{children:[W,J,ie]}),e[115]=W,e[116]=J,e[117]=ie,e[118]=ge):ge=e[118],ge}function Jt(){const i=oe.c(13),{org:e,project:s}=ze(),l=ut();let n;i[0]!==e.id||i[1]!==e.slug?(n={connectionId:qe,orgId:e.id,orgSlug:e.slug},i[0]=e.id,i[1]=e.slug,i[2]=n):n=i[2];const c=Ve(n);let r;i[3]!==c||i[4]!==s?(r=async m=>{const u=s.enabledPlugins??[];if(u.includes(m))return;const f=[...u,m],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 p;i[6]!==e.id||i[7]!==s||i[8]!==l?(p=()=>{l.invalidateQueries({queryKey:Fe.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Fe.projects(e.id)})},i[6]=e.id,i[7]=s,i[8]=l,i[9]=p):p=i[9];let d;return i[10]!==r||i[11]!==p?(d={mutationFn:r,onSuccess:p,onError:Zt},i[10]=r,i[11]=p,i[12]=d):d=i[12],mt(d)}function Zt(i){Le.error("Failed to enable plugin: "+(i instanceof Error?i.message:"Unknown error"))}function Xt(i){const e=oe.c(12),{pluginId:s,title:l,description:n,icon:c}=i,r=Jt();let p;e[0]!==r||e[1]!==s?(p=async()=>{try{await r.mutateAsync(s),Le.success("Plugin enabled!")}catch{}},e[0]=r,e[1]=s,e[2]=p):p=e[2];const d=p,o=c??null,m=r.isPending?"Enabling…":"Enable plugin";let u;e[3]!==r.isPending||e[4]!==d||e[5]!==m?(u=t.jsx(Ce,{onClick:d,disabled:r.isPending,children:m}),e[3]=r.isPending,e[4]=d,e[5]=m,e[6]=u):u=e[6];let f;return e[7]!==n||e[8]!==o||e[9]!==u||e[10]!==l?(f=t.jsx(it,{image:o,title:l,description:n,actions:u}),e[7]=n,e[8]=o,e[9]=u,e[10]=l,e[11]=f):f=e[11],f}const es={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function ni(){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(Xt,{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(pt,{className:"size-8 text-muted-foreground"})})})})})});const n=Be();return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx(Ht,{connectionId:qe,org:e.slug,activeCollection:es,onItemClick:c=>n({to:"/$org/settings/workflows/$itemId",params:{org:e.slug,itemId:c.id}})})})})}export{ni 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-CnknCe9i.js";import{a as f}from"./index-DUQBUyCZ.js";import"./index-DNL4AbVG.js";import"./constants-DGVET5nO.js";import"./collections-DW4PTltg.js";import"./index-RIIjlnIA.js";import"./use-virtual-mcp-DYwCZbrQ.js";import"./use-collections-CiD-L_rq.js";import"./monaco-editor-BkaEDfnn.js";import"./index-BOzqanlB.js";import"./accordion-hHFtU32i.js";import"./agent-icon-CJE3IrTn.js";import"./AlertCircle-DJf7WJW3.js";import"./Tool01-Ba51oSqA.js";import"./XClose-DGH-dkmK.js";import"./RefreshCcw01-02Zm-r_b.js";import"./ArrowNarrowLeft-zhth65sS.js";import"./XCircle-D-iHz9mr.js";import"./ArrowUpRight-B3qf65r_.js";import"./ZapSquare-zYT4mArq.js";import"./Users03-BpQp0OZp.js";import"./CheckCircle-Y9PieZLB.js";import"./Check-BA7p_1wq.js";import"./ChevronDown-CHAav7qy.js";import"./ChevronRight-2ozRd8ql.js";import"./ChevronUp-DiTrXBul.js";import"./DotsVertical-EPasiNNs.js";import"./Container-C2bhieKl.js";import"./Star01-DfneWwne.js";import"./Palette-C_hdzDFv.js";import"./SearchMd-KthT6Z0D.js";import"./index-CoJ8j1Pw.js";import"./tooltip-VTeNtMCR.js";import"./X-C7tkmqiA.js";import"./LinkExternal01-BPHdX5PH.js";import"./Lock01-BGF0eORu.js";import"./Sun-jEEtT5QL.js";import"./Play-F9KGb4fS.js";import"./Plus-yWDQ_tpZ.js";import"./Settings02-o9kWs5LM.js";import"./Shield01-C6IvOcka.js";import"./Trash01-phS8Heeq.js";import"./User01-ZJzkhpRI.js";import"./Zap-B3d9PZiM.js";import"./badge-B9X-6Gl1.js";import"./select-Cgq5fB25.js";import"./view-mode-toggle-CrpJwZiO.js";import"./layout-CdewzpDg.js";import"./use-connection-JNwwjcGV.js";import"./use-mcp-tools-CVArZMz4.js";import"./dialog-Hnl5R_ro.js";import"./index-pVdenInH.js";import"./dropdown-menu-V4M0HjsW.js";import"./integration-icon-BIIE53tx.js";import"./scroll-area-B7p5KGay.js";import"./index-Bbymo0Ib.js";import"./empty-state-CZ3CJw7j.js";import"./create-sse-subscription-CxkOgzKf.js";import"./input-tSjlegEI.js";function gt(){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{gt as default};
|
package/dist/client/index.html
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
28
28
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
29
29
|
<meta name="theme-color" content="#D0EC1A" />
|
|
30
|
-
<script type="module" crossorigin src="/assets/index-
|
|
30
|
+
<script type="module" crossorigin src="/assets/index-CnknCe9i.js"></script>
|
|
31
31
|
<link rel="stylesheet" crossorigin href="/assets/index-B_4-KoG_.css">
|
|
32
32
|
</head>
|
|
33
33
|
<body>
|