decocms 2.179.2 → 2.179.3
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-QngH9BVd.js → AlertCircle-DcuzO-dN.js} +1 -1
- package/dist/client/assets/{AlignLeft-BUW8XsMa.js → AlignLeft-DH6vJ97u.js} +1 -1
- package/dist/client/assets/{ArrowDown-Ba2t7m6d.js → ArrowDown-DrJY3Wf3.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DX2ldnBo.js → ArrowLeft-B0zQkfl0.js} +1 -1
- package/dist/client/assets/{ArrowUp-Wy3Qa9X3.js → ArrowUp-B4DKDJey.js} +1 -1
- package/dist/client/assets/{Building02-DW6RLSwU.js → Building02-B5vUKe4K.js} +1 -1
- package/dist/client/assets/{Check-CLxUgI8Z.js → Check-5nIJP_0B.js} +1 -1
- package/dist/client/assets/{CheckCircle-DDKCxiAn.js → CheckCircle-CPfAK_ok.js} +1 -1
- package/dist/client/assets/{CheckSquare-IgZnioYh.js → CheckSquare-Bd5OlGNx.js} +1 -1
- package/dist/client/assets/{CheckVerified02-Brnp4Z-Q.js → CheckVerified02-BImD45AM.js} +1 -1
- package/dist/client/assets/{ChevronDown-D0b1rvAp.js → ChevronDown-t60R5l2B.js} +1 -1
- package/dist/client/assets/{ChevronLeft-BOF7bp9d.js → ChevronLeft-lVdUD9SW.js} +1 -1
- package/dist/client/assets/{ChevronRight-BEUO8jhU.js → ChevronRight-3uKoJ2yX.js} +1 -1
- package/dist/client/assets/{ChevronUp-BWhuIqS7.js → ChevronUp-l7iXrppT.js} +1 -1
- package/dist/client/assets/{Clock-Aquumu5W.js → Clock-Cu62NiMl.js} +1 -1
- package/dist/client/assets/{Code01-_in0gxFd.js → Code01-DA4cXrzu.js} +1 -1
- package/dist/client/assets/{Container-b65PFshp.js → Container-Cvd3ILsk.js} +1 -1
- package/dist/client/assets/{Copy01-Ds0OKZs5.js → Copy01-DCmX2pvi.js} +1 -1
- package/dist/client/assets/{Dataflow03-CE4IJeUz.js → Dataflow03-SvWKmU9-.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-EK1-V4Yv.js → DotsHorizontal-DE3Ptwny.js} +1 -1
- package/dist/client/assets/{DotsVertical-Bo0fAyx-.js → DotsVertical-CZep1rYf.js} +1 -1
- package/dist/client/assets/{Download01-CN3AkzFm.js → Download01-DOZIvPhC.js} +1 -1
- package/dist/client/assets/{Edit01-BeW3IgwV.js → Edit01-Bh7u1xp-.js} +1 -1
- package/dist/client/assets/{Edit05-DDQmnS5O.js → Edit05-DwDDlBNQ.js} +1 -1
- package/dist/client/assets/{Eye-Cqad01Et.js → Eye-D3Q7o9JY.js} +1 -1
- package/dist/client/assets/{EyeOff-rTYDCZUH.js → EyeOff--TPuyP7J.js} +1 -1
- package/dist/client/assets/{File02-k_9AZvHT.js → File02-6xeEPCuC.js} +1 -1
- package/dist/client/assets/{File06-BAp2UeVQ.js → File06-BocZAjHf.js} +1 -1
- package/dist/client/assets/{FilterLines-BQVg1PzI.js → FilterLines-CUdG83Ae.js} +1 -1
- package/dist/client/assets/{Globe01-sBw0ReRO.js → Globe01-BTdgnOS2.js} +1 -1
- package/dist/client/assets/{Globe02-DlxZmkSI.js → Globe02-X8fGWI0t.js} +1 -1
- package/dist/client/assets/{Grid01-B9zEjFyx.js → Grid01-NkSMXhQ7.js} +1 -1
- package/dist/client/assets/{Home02-DsMimBHw.js → Home02-BmcJp5G2.js} +1 -1
- package/dist/client/assets/{Image01-zSA25K9S.js → Image01-RwxwuRZg.js} +1 -1
- package/dist/client/assets/{Inbox01-Bcon6dDK.js → Inbox01-B7dU6IpS.js} +1 -1
- package/dist/client/assets/{InfoCircle-CA8mfcG6.js → InfoCircle-BO2XWy7v.js} +1 -1
- package/dist/client/assets/{Key01-V3zgT2bk.js → Key01-CjhxaGrC.js} +1 -1
- package/dist/client/assets/{LayersTwo01-D3otbQFN.js → LayersTwo01-DEwkReGL.js} +1 -1
- package/dist/client/assets/{Link01-VlHez4tu.js → Link01-h9aUM7NA.js} +1 -1
- package/dist/client/assets/{LinkExternal01-vs3DKlfq.js → LinkExternal01-CmkQ0Pr-.js} +1 -1
- package/dist/client/assets/{List-D6xZGoxJ.js → List-BbeB05v1.js} +1 -1
- package/dist/client/assets/{Loading01-DQphO9Su.js → Loading01-D0sCOwf7.js} +1 -1
- package/dist/client/assets/{Lock01-Cbqd9PVH.js → Lock01-DFfVnVtc.js} +1 -1
- package/dist/client/assets/{Play-jCDYHrdu.js → Play-hGa2UcUZ.js} +1 -1
- package/dist/client/assets/{Plus-CURSuoDd.js → Plus-Dcf0Y3wA.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-oV1XFIRn.js → RefreshCcw01-BOXuamrY.js} +1 -1
- package/dist/client/assets/{Save01-CpNh-fPw.js → Save01-CA0I32a6.js} +1 -1
- package/dist/client/assets/{SearchMd-C8ADHGFY.js → SearchMd-BSRGE1t4.js} +1 -1
- package/dist/client/assets/{Settings01-B76KnDHb.js → Settings01-CCUkMwLj.js} +1 -1
- package/dist/client/assets/{Shield01-BodC6YjW.js → Shield01-BYpsgCVA.js} +1 -1
- package/dist/client/assets/{Terminal-BHkLJhoR.js → Terminal-ZymOmGb9.js} +1 -1
- package/dist/client/assets/{Tool01-DlbILfZg.js → Tool01-Doogi-IK.js} +1 -1
- package/dist/client/assets/{Trash01-CYMRq_nY.js → Trash01-Cs72bTP6.js} +1 -1
- package/dist/client/assets/{Upload01-BQ7z5iC5.js → Upload01-ByUvmqDm.js} +1 -1
- package/dist/client/assets/{Users03-DEpvReeu.js → Users03-CGvJARf5.js} +1 -1
- package/dist/client/assets/{X-BT_y3J3a.js → X-CD9ZB6hw.js} +1 -1
- package/dist/client/assets/{XClose-C-H07PEn.js → XClose-BxUlnJUs.js} +1 -1
- package/dist/client/assets/{Zap-BY3Hn1l9.js → Zap-0WHKFRes.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-DbwllQSw.js → agent-connections-preview-BEmLqtx5.js} +1 -1
- package/dist/client/assets/agent-detail-jg81y7ZA.js +2 -0
- package/dist/client/assets/agents-PmHD6Xb_.js +1 -0
- package/dist/client/assets/{ai-providers-logos-DGTpC_MW.js → ai-providers-logos-C_voEDmL.js} +1 -1
- package/dist/client/assets/{alert-dialog-BqCiJDa8.js → alert-dialog-qmvoIx9J.js} +3 -3
- package/dist/client/assets/{auth-catchall-DPwCqyhO.js → auth-catchall-ByYcT8WN.js} +1 -1
- package/dist/client/assets/automation-detail-C1-q2EzY.js +1 -0
- package/dist/client/assets/automations-C9eao1B2.js +1 -0
- package/dist/client/assets/avatar-DeGeJRAR.js +1 -0
- package/dist/client/assets/badge-Cjjl_FHP.js +1 -0
- package/dist/client/assets/{binder-CuBUxi11.js → binder-C1eSZFT4.js} +1 -1
- package/dist/client/assets/{breadcrumb-BWfepeob.js → breadcrumb-C8hDXS86.js} +1 -1
- package/dist/client/assets/{card-gfMzoGpr.js → card-CoyaoT6W.js} +1 -1
- package/dist/client/assets/{checkbox-DygphnIU.js → checkbox-D5DFx9da.js} +1 -1
- package/dist/client/assets/{collapsible-BJo6q_NJ.js → collapsible-DcaWkNTt.js} +1 -1
- package/dist/client/assets/{collection-detail-fTigPh-V.js → collection-detail-Dsgpohom.js} +3 -3
- package/dist/client/assets/{collection-display-button-C42ZnuS7.js → collection-display-button-BcIJp1SX.js} +1 -1
- package/dist/client/assets/{collection-search-Dzoe9W56.js → collection-search-nKZEJ_r3.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Bka5CUqj.js → collection-table-wrapper-Bq15EL3p.js} +1 -1
- package/dist/client/assets/{collection-tabs-D9qLvNTu.js → collection-tabs-qLP6ozkD.js} +1 -1
- package/dist/client/assets/{command-D_HBfmpj.js → command-Bk-fXiVb.js} +1 -1
- package/dist/client/assets/connection-card-BYUbg7iO.js +1 -0
- package/dist/client/assets/connection-detail-Zdtj4TKi.js +1 -0
- package/dist/client/assets/connections-CMaQr-QY.js +1 -0
- package/dist/client/assets/{constants-D5QZg84_.js → constants-DclZTqHf.js} +1 -1
- package/dist/client/assets/{context-CGMT963w.js → context-BFi-zuf6.js} +12 -12
- package/dist/client/assets/{create-organization-dialog-CeMf7qju.js → create-organization-dialog-pXQ89_sr.js} +1 -1
- package/dist/client/assets/{create-project-dialog-Bs_mS8aj.js → create-project-dialog-M-dgrV_c.js} +1 -1
- package/dist/client/assets/{danger-gTdMMqBl.js → danger-DqsrtWLB.js} +1 -1
- package/dist/client/assets/{danger-zone-BE94J4G-.js → danger-zone-BhDM5wIc.js} +1 -1
- package/dist/client/assets/{dependencies-DQ9gMDrw.js → dependencies-CPYZFhhf.js} +1 -1
- package/dist/client/assets/dialog-DzGwvQ_K.js +1 -0
- package/dist/client/assets/drawer-CAX2URBi.js +1 -0
- package/dist/client/assets/{dropdown-menu-DE2pKopg.js → dropdown-menu-BcNYk9_F.js} +1 -1
- package/dist/client/assets/dynamic-plugin-layout-D0dkPO22.js +1 -0
- package/dist/client/assets/editable-task-title-BR-xQ-UT.js +16 -0
- package/dist/client/assets/{empty-state-BjCXvoyS.js → empty-state-BuGXY27l.js} +1 -1
- package/dist/client/assets/{empty-state-Bk9Z7Q-U.js → empty-state-CGSu9IQ9.js} +1 -1
- package/dist/client/assets/{env-vars-editor-BjeFjhEe.js → env-vars-editor-VoVbIy9n.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CZxT3XNH.js → extract-connection-data-DhU56Zd0.js} +1 -1
- package/dist/client/assets/{file-browser-C4MCCicp.js → file-browser-DIaRK0us.js} +2 -2
- package/dist/client/assets/{form-tOTNzCZe.js → form-DBjkdSps.js} +1 -1
- package/dist/client/assets/{general-DOjbT8YE.js → general-DCfBGmuh.js} +1 -1
- package/dist/client/assets/{generate-id-kfQDJb0K.js → generate-id-DRuK_WRM.js} +1 -1
- package/dist/client/assets/{grid-view-CM2kDBxz.js → grid-view-DsY2qZrB.js} +1 -1
- package/dist/client/assets/{home-rO4pkzPH.js → home-C52P_wmy.js} +1 -1
- package/dist/client/assets/{index-BLtI6TU9.js → index-BLNBD7Tl.js} +1 -1
- package/dist/client/assets/index-BObCXgKJ.js +1 -0
- package/dist/client/assets/{index-DyL93sTY.js → index-BzPzEjOV.js} +1 -1
- package/dist/client/assets/index-COFAW4F5.js +1 -0
- package/dist/client/assets/index-CubWD7-P.css +1 -0
- package/dist/client/assets/index-DMmNh7jR.js +218 -0
- package/dist/client/assets/index-DYAF-Vgt.js +1 -0
- package/dist/client/assets/index-DiczHAor.js +1 -0
- package/dist/client/assets/{index-DjVQ8cwy.js → index-Dumm3WtY.js} +2 -2
- package/dist/client/assets/{index-Bwlq4qOs.js → index-PFtbLrE4.js} +1 -1
- package/dist/client/assets/{index-DiHcYCxZ.js → index-bHgla3gL.js} +1 -1
- package/dist/client/assets/index-hmkE8HuP.js +1 -0
- package/dist/client/assets/{infiniteQueryObserver-XS4LWR6q.js → infiniteQueryObserver-CZ8w6Ao-.js} +1 -1
- package/dist/client/assets/input-Bt_nejZh.js +1 -0
- package/dist/client/assets/{integration-icon-C9GR_8Ea.js → integration-icon-Dyr7fOYU.js} +1 -1
- package/dist/client/assets/{label-DJvdRQ2A.js → label-DTNkd20e.js} +1 -1
- package/dist/client/assets/layout-Ck4QNb1R.js +1 -0
- package/dist/client/assets/{layout-10Sxtyop.js → layout-VG2uM_nk.js} +1 -1
- package/dist/client/assets/login-x4JJuKeA.js +1 -0
- package/dist/client/assets/{logo-upload-iqCQyRXD.js → logo-upload-7WcycT9q.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-C3qFwvPf.js → mcp-app-renderer-hLmmzHl_.js} +1 -1
- package/dist/client/assets/{mcp-server-card-DCDS8v4f.js → mcp-server-card-CwYAe4vO.js} +1 -1
- package/dist/client/assets/mcp-server-detail-CjZvaa-f.js +2 -0
- package/dist/client/assets/{members-CykhAYWe.js → members-Sgl6kVS6.js} +1 -1
- package/dist/client/assets/{monaco-editor-DQf5JSy_.js → monaco-editor-BS1-hh4n.js} +4 -4
- package/dist/client/assets/monitoring-DWB-fw7M.js +4 -0
- package/dist/client/assets/monitoring-dashboard-edit-DdNrWKBz.js +1 -0
- package/dist/client/assets/{monitoring-dashboard-view-CXCG5P_H.js → monitoring-dashboard-view-BUxqPLpn.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-BfoeteQX.js → monitoring-stats-row-CiWvBCYV.js} +2 -2
- package/dist/client/assets/{oauth-callback-CXrwzvh_.js → oauth-callback-7ed5Z9Xs.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-bQZvbhnr.js → oauth-callback-ai-provider-qEm-Q5-E.js} +1 -1
- package/dist/client/assets/{org-ai-providers-4gYTufEL.js → org-ai-providers-CUAlOa9f.js} +1 -1
- package/dist/client/assets/page-BQl7Ie3w.js +1 -0
- package/dist/client/assets/page-DfQnSuW1.js +1 -0
- package/dist/client/assets/{plugin-empty-state-cb7GbeKy.js → plugin-empty-state-DUosCqGd.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CEvZCNFj.js → plugin-empty-state-qFDP0Nr2.js} +1 -1
- package/dist/client/assets/{plugin-header-C4ZfQdcs.js → plugin-header-BeGFVTX4.js} +1 -1
- package/dist/client/assets/{plugin-header-Do_HgCfI.js → plugin-header-CJlxZY-i.js} +1 -1
- package/dist/client/assets/plugins-CzL725OF.js +1 -0
- package/dist/client/assets/popover-CF2iI6mL.js +1 -0
- package/dist/client/assets/project-app-view-lqZ02NJN.js +1 -0
- package/dist/client/assets/project-layout-CBbKmowd.js +1 -0
- package/dist/client/assets/{project-plugins-C18qk0lc.js → project-plugins-DqmH9sWQ.js} +1 -1
- package/dist/client/assets/{projects-list-CtvT2y9h.js → projects-list-Bz_1RhAg.js} +1 -1
- package/dist/client/assets/{registry-layout-Cvu5zKVR.js → registry-layout-6H7s-msc.js} +2 -2
- package/dist/client/assets/{registry-utils-Bx7--rIH.js → registry-utils-DZHZD5gP.js} +1 -1
- package/dist/client/assets/{reset-password-CSswd9M3.js → reset-password-3HgT81EI.js} +1 -1
- package/dist/client/assets/{resizable-B0HQ1vuq.js → resizable-BwEPpKFX.js} +1 -1
- package/dist/client/assets/{save-actions-BxTuQTa4.js → save-actions-Z-_7bu1u.js} +1 -1
- package/dist/client/assets/scroll-area-CwrVaRUF.js +1 -0
- package/dist/client/assets/select-hHfKwVbN.js +1 -0
- package/dist/client/assets/select-virtual-mcp-DsImheli.js +1 -0
- package/dist/client/assets/shell-layout-Bh0wZbL8.js +3 -0
- package/dist/client/assets/{sidebar-settings-pZmI7pGH.js → sidebar-settings-U5rAu7py.js} +1 -1
- package/dist/client/assets/{skeleton-NLo71_Sb.js → skeleton-BvrwcS3X.js} +1 -1
- package/dist/client/assets/spinner-CSLYV8gq.js +1 -0
- package/dist/client/assets/{store-invite-CP9PWG-2.js → store-invite-z_eVOBRF.js} +1 -1
- package/dist/client/assets/switch-CoYIum7D.js +1 -0
- package/dist/client/assets/{table-BK1bAac3.js → table-BSLV9H8I.js} +1 -1
- package/dist/client/assets/tabs-sTqc1_U2.js +1 -0
- package/dist/client/assets/{task-status-DCsPkppQ.js → task-status-CrO2oj_v.js} +37 -37
- package/dist/client/assets/tasks-CazLoC59.js +1 -0
- package/dist/client/assets/tasks-panel-DBJx0hs6.js +1 -0
- package/dist/client/assets/textarea-CgJ5x-hs.js +1 -0
- package/dist/client/assets/{time-range-picker-CEhZhu7c.js → time-range-picker-BCm8UHQI.js} +1 -1
- package/dist/client/assets/toggle-group-C20N8vss.js +1 -0
- package/dist/client/assets/{tools-list-DGVVcYEB.js → tools-list-JehNbMf9.js} +1 -1
- package/dist/client/assets/tooltip-DHJtaI_Z.js +1 -0
- package/dist/client/assets/{topbar-portal-DLbOrsQP.js → topbar-portal-jewy4fLu.js} +1 -1
- package/dist/client/assets/{types-BOmhR0hZ.js → types-BtTmvTe4.js} +1 -1
- package/dist/client/assets/{use-automations-CPlNdxed.js → use-automations-D-X6Oij9.js} +1 -1
- package/dist/client/assets/{use-collections-Le9CzDbY.js → use-collections-DhavVshD.js} +1 -1
- package/dist/client/assets/{use-connection-CNeKPAtP.js → use-connection-CVlyXslk.js} +1 -1
- package/dist/client/assets/{use-copy-CR_0d0zs.js → use-copy-DkDz3lds.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BOxl7MdZ.js → use-create-virtual-mcp-DZAv89rZ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CbBHKCjw.js → use-infinite-scroll-j2WybGGN.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-Ckutd61H.js → use-install-from-registry-Ch6GOwHv.js} +1 -1
- package/dist/client/assets/{use-list-state-DrSbpG8C.js → use-list-state-Baq-X1EV.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-D4XXlnov.js → use-mcp-prompts-BDRKUj7D.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-BueR0w1E.js → use-mcp-resources-BxIahbOo.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CFyULGGP.js → use-mcp-tools-kv4r4Zvn.js} +1 -1
- package/dist/client/assets/{use-members-Bgz9FSqE.js → use-members-Coq2XO1k.js} +1 -1
- package/dist/client/assets/{use-project-RpN1fut9.js → use-project-XBmxO4XX.js} +1 -1
- package/dist/client/assets/{use-store-discovery-BS96E_Li.js → use-store-discovery-D-xa6Q86.js} +1 -1
- package/dist/client/assets/use-view-mode-CdGajc1j.js +1 -0
- package/dist/client/assets/{use-virtual-mcp-DGT5zflo.js → use-virtual-mcp-DCxXK_bv.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-H-W7n7En.js +1 -0
- package/dist/client/assets/{useMutation-Betr8yis.js → useMutation-DrLoVqQ7.js} +1 -1
- package/dist/client/assets/useQuery-B-AaJTeZ.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-Czq4y4BP.js +1 -0
- package/dist/client/assets/{user-ChA79mrb.js → user-8V0wpye0.js} +1 -1
- package/dist/client/assets/workflow-Bb3JE-XH.js +1 -0
- package/dist/client/index.html +3 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/pg-cloudflare/README.md +112 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +2 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js +6 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +31 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js +152 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +3 -0
- package/dist/server/node_modules/pg-cloudflare/package.json +39 -0
- package/dist/server/node_modules/pg-cloudflare/src/empty.ts +3 -0
- package/dist/server/node_modules/pg-cloudflare/src/index.ts +166 -0
- package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +25 -0
- package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
- package/dist/server/node_modules/pg-connection-string/README.md +105 -0
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
- package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
- package/dist/server/node_modules/pg-connection-string/index.js +231 -0
- package/dist/server/node_modules/pg-connection-string/package.json +52 -0
- package/dist/server/node_modules/pg-pool/LICENSE +21 -0
- package/dist/server/node_modules/pg-pool/README.md +357 -0
- package/dist/server/node_modules/pg-pool/esm/index.mjs +5 -0
- package/dist/server/node_modules/pg-pool/index.js +517 -0
- package/dist/server/node_modules/pg-pool/package.json +51 -0
- package/dist/server/node_modules/pg-protocol/LICENSE +21 -0
- package/dist/server/node_modules/pg-protocol/README.md +3 -0
- package/dist/server/node_modules/pg-protocol/dist/b.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js +23 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +15 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +55 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +16 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +81 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +530 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/index.d.ts +6 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js +15 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +162 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js +160 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +252 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +24 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js +324 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +42 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js +189 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/esm/index.js +11 -0
- package/dist/server/node_modules/pg-protocol/package.json +45 -0
- package/dist/server/node_modules/pg-protocol/src/b.ts +25 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +58 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +85 -0
- package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +575 -0
- package/dist/server/node_modules/pg-protocol/src/index.ts +11 -0
- package/dist/server/node_modules/pg-protocol/src/messages.ts +262 -0
- package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +276 -0
- package/dist/server/node_modules/pg-protocol/src/parser.ts +413 -0
- package/dist/server/node_modules/pg-protocol/src/serializer.ts +274 -0
- package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +67 -0
- package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +166 -0
- package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +1 -0
- package/dist/server/node_modules/pg-types/.travis.yml +7 -0
- package/dist/server/node_modules/pg-types/Makefile +14 -0
- package/dist/server/node_modules/pg-types/README.md +75 -0
- package/dist/server/node_modules/pg-types/index.d.ts +137 -0
- package/dist/server/node_modules/pg-types/index.js +47 -0
- package/dist/server/node_modules/pg-types/index.test-d.ts +21 -0
- package/dist/server/node_modules/pg-types/lib/arrayParser.js +11 -0
- package/dist/server/node_modules/pg-types/lib/binaryParsers.js +257 -0
- package/dist/server/node_modules/pg-types/lib/builtins.js +73 -0
- package/dist/server/node_modules/pg-types/lib/textParsers.js +215 -0
- package/dist/server/node_modules/pg-types/package.json +42 -0
- package/dist/server/node_modules/pg-types/test/index.js +24 -0
- package/dist/server/node_modules/pg-types/test/types.js +597 -0
- package/dist/server/node_modules/pgpass/README.md +74 -0
- package/dist/server/node_modules/pgpass/lib/helper.js +233 -0
- package/dist/server/node_modules/pgpass/lib/index.js +23 -0
- package/dist/server/node_modules/pgpass/package.json +41 -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/postgres-date/index.js +116 -0
- package/dist/server/node_modules/postgres-date/license +21 -0
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/postgres-interval/license +21 -0
- package/dist/server/node_modules/postgres-interval/package.json +36 -0
- package/dist/server/node_modules/postgres-interval/readme.md +48 -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/xtend/.jshintrc +30 -0
- package/dist/server/node_modules/xtend/LICENSE +20 -0
- package/dist/server/node_modules/xtend/README.md +32 -0
- package/dist/server/node_modules/xtend/immutable.js +19 -0
- package/dist/server/node_modules/xtend/mutable.js +17 -0
- package/dist/server/node_modules/xtend/package.json +55 -0
- package/dist/server/node_modules/xtend/test.js +103 -0
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/LayoutLeft-CbUmiI7I.js +0 -1
- package/dist/client/assets/agent-detail-DqMa-yjy.js +0 -2
- package/dist/client/assets/agents-DXD0J3OW.js +0 -1
- package/dist/client/assets/automation-detail-bmoX3GK-.js +0 -1
- package/dist/client/assets/automations-Dp1WjxxK.js +0 -1
- package/dist/client/assets/avatar-BoRF-Me1.js +0 -1
- package/dist/client/assets/badge-DIWKuwVU.js +0 -1
- package/dist/client/assets/connection-card-DuHVLZ35.js +0 -1
- package/dist/client/assets/connection-detail-vcbLbssZ.js +0 -1
- package/dist/client/assets/connections-14pDMsUe.js +0 -1
- package/dist/client/assets/dialog-B8WS5FOh.js +0 -1
- package/dist/client/assets/dynamic-plugin-layout-yMvA298P.js +0 -1
- package/dist/client/assets/editable-task-title-oggBOZ_d.js +0 -16
- package/dist/client/assets/index-B09Yemt1.js +0 -1
- package/dist/client/assets/index-CAsAeYNN.css +0 -1
- package/dist/client/assets/index-CMImT9Gt.js +0 -1
- package/dist/client/assets/index-D-6rbOIG.js +0 -1
- package/dist/client/assets/index-DnJ6a24w.js +0 -218
- package/dist/client/assets/index-hCeFdkUk.js +0 -1
- package/dist/client/assets/index-qrpgIqks.js +0 -1
- package/dist/client/assets/input-BBKBJVKe.js +0 -1
- package/dist/client/assets/layout-BjyFY_1R.js +0 -1
- package/dist/client/assets/login-ClPbfjlJ.js +0 -1
- package/dist/client/assets/mcp-server-detail-lOR_wUNJ.js +0 -2
- package/dist/client/assets/monitoring-BPuhRE0m.js +0 -4
- package/dist/client/assets/monitoring-dashboard-edit-BVtLOBNe.js +0 -1
- package/dist/client/assets/page-CCXJyUyN.js +0 -1
- package/dist/client/assets/page-DB3QLlpA.js +0 -1
- package/dist/client/assets/plugins-pEgOY1Nz.js +0 -1
- package/dist/client/assets/popover-vDURg2rv.js +0 -1
- package/dist/client/assets/project-app-view-DfCIvrF7.js +0 -1
- package/dist/client/assets/project-layout-CkMdq05b.js +0 -1
- package/dist/client/assets/scroll-area-dsTSFUPi.js +0 -1
- package/dist/client/assets/select-Bbaj2HCW.js +0 -1
- package/dist/client/assets/select-virtual-mcp-CZJoA7HG.js +0 -1
- package/dist/client/assets/sheet-B_-2ygzJ.js +0 -1
- package/dist/client/assets/shell-layout-Ca5Bbhzi.js +0 -3
- package/dist/client/assets/spinner-EdHFCjIL.js +0 -1
- package/dist/client/assets/switch-bfk4EFAk.js +0 -1
- package/dist/client/assets/tabs-aIY_aIUV.js +0 -1
- package/dist/client/assets/tasks-Dw1i-69W.js +0 -1
- package/dist/client/assets/tasks-panel-CEAgXi7r.js +0 -1
- package/dist/client/assets/textarea-lF0m7xkk.js +0 -1
- package/dist/client/assets/toggle-group-Dak-s1p3.js +0 -1
- package/dist/client/assets/tooltip-Csc3oeTz.js +0 -1
- package/dist/client/assets/use-mobile-Y3tADOOl.js +0 -1
- package/dist/client/assets/use-view-mode-BeRbE5Df.js +0 -1
- package/dist/client/assets/useInfiniteQuery-ChOuKh6v.js +0 -1
- package/dist/client/assets/useQuery-mzOsnjYJ.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DFs2FFlW.js +0 -1
- package/dist/client/assets/workflow-CBDfcQFP.js +0 -1
- package/dist/server/node_modules/pg/README.md +0 -95
- package/dist/server/node_modules/pg/esm/index.mjs +0 -20
- package/dist/server/node_modules/pg/lib/client.js +0 -743
- package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
- package/dist/server/node_modules/pg/lib/connection.js +0 -221
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
- package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
- package/dist/server/node_modules/pg/lib/defaults.js +0 -91
- package/dist/server/node_modules/pg/lib/index.js +0 -73
- package/dist/server/node_modules/pg/lib/native/client.js +0 -323
- package/dist/server/node_modules/pg/lib/native/index.js +0 -2
- package/dist/server/node_modules/pg/lib/native/query.js +0 -165
- package/dist/server/node_modules/pg/lib/query.js +0 -252
- package/dist/server/node_modules/pg/lib/result.js +0 -109
- package/dist/server/node_modules/pg/lib/stream.js +0 -83
- package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
- package/dist/server/node_modules/pg/lib/utils.js +0 -217
- package/dist/server/node_modules/pg/package.json +0 -76
- /package/dist/server/node_modules/{pg → pg-cloudflare}/LICENSE +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as k,c as L,D as X,j as t,B as Z,E as fe,a6 as Xe,u as de,V as Qe,n as et,v as ce,e as tt,g as st,O as Fe,t as lt,q as ot,G as nt,H as Be}from"./index-DMmNh7jR.js";import{u as rt}from"./context-BFi-zuf6.js";import{E as it}from"./empty-state-BuGXY27l.js";import{I as Ie}from"./input-Bt_nejZh.js";import{P as at,a as ct,b as dt}from"./popover-CF2iI6mL.js";import{S as mt}from"./scroll-area-CwrVaRUF.js";import{n as ut}from"./Container-Cvd3ILsk.js";import{i as ft}from"./Edit05-DwDDlBNQ.js";import{i as xt}from"./Link01-h9aUM7NA.js";import{s as pt}from"./XClose-BxUlnJUs.js";import{I as Oe}from"./integration-icon-Dyr7fOYU.js";import{a as ht}from"./index-DYAF-Vgt.js";import{B as $e}from"./badge-Cjjl_FHP.js";import{C as gt,a as jt}from"./collapsible-DcaWkNTt.js";import{S as bt}from"./switch-CoYIum7D.js";import{T as Nt}from"./textarea-CgJ5x-hs.js";import{u as vt,a as xe,c as ve,T as pe,b as he}from"./tooltip-DHJtaI_Z.js";import{b as yt,u as Ct}from"./use-connection-CVlyXslk.js";import{u as _t,a as St}from"./use-virtual-mcp-DCxXK_bv.js";import{i as Ue}from"./ChevronRight-3uKoJ2yX.js";import{n as kt}from"./ChevronUp-l7iXrppT.js";import{i as De}from"./File02-6xeEPCuC.js";import{i as ze}from"./Loading01-D0sCOwf7.js";import{i as wt}from"./Play-hGa2UcUZ.js";import{s as Ve}from"./Plus-Dcf0Y3wA.js";import{a as Le}from"./Tool01-Doogi-IK.js";import{t as Tt}from"./Users03-CGvJARf5.js";import{B as Et,a as It,b as Ge,d as At,e as Ot,c as $t}from"./breadcrumb-C8hDXS86.js";import{a as Dt,V as zt}from"./layout-VG2uM_nk.js";import{S as Lt}from"./save-actions-Z-_7bu1u.js";import{C as Pt}from"./collection-search-nKZEJ_r3.js";import{T as Rt}from"./tools-list-JehNbMf9.js";import{C as Pe}from"./checkbox-D5DFx9da.js";import{e as Mt,a as He,D as Ke,b as Bt,c as Vt}from"./dialog-DzGwvQ_K.js";import{T as ye,a as Gt,b as Ce,c as Ft}from"./tabs-sTqc1_U2.js";import{u as ge,a as Ut}from"./constants-DclZTqHf.js";import{c as Ht}from"./use-mcp-tools-kv4r4Zvn.js";import{a as Kt}from"./use-mcp-resources-BxIahbOo.js";import{u as Wt}from"./use-mcp-prompts-BDRKUj7D.js";import{s as We}from"./slugify-CEUa2lfQ.js";import{c as Yt,a as Zt,D as qt}from"./drawer-CAX2URBi.js";import{I as Jt,R as Xt,a as Qt}from"./index-DiczHAor.js";import{k as es}from"./dropdown-menu-BcNYk9_F.js";import{i as je}from"./Check-5nIJP_0B.js";import{i as ts}from"./Code01-DA4cXrzu.js";import{a as Re}from"./Copy01-DCmX2pvi.js";import{i as _e}from"./InfoCircle-BO2XWy7v.js";import{i as ss}from"./Key01-CjhxaGrC.js";import{A as ls}from"./agent-connections-preview-BEmLqtx5.js";import"./decopilot-events-Brt4gAR6.js";import"./index-PFtbLrE4.js";import"./useQuery-B-AaJTeZ.js";import"./useMutation-DrLoVqQ7.js";import"./X-CD9ZB6hw.js";import"./index-BObCXgKJ.js";import"./index-COFAW4F5.js";import"./use-collections-DhavVshD.js";import"./Save01-CA0I32a6.js";import"./SearchMd-BSRGE1t4.js";import"./collection-display-button-BcIJp1SX.js";import"./ArrowDown-DrJY3Wf3.js";import"./ArrowUp-B4DKDJey.js";import"./Grid01-NkSMXhQ7.js";import"./List-BbeB05v1.js";import"./collection-table-wrapper-Bq15EL3p.js";import"./table-BSLV9H8I.js";import"./card-CoyaoT6W.js";import"./types-BtTmvTe4.js";import"./Eye-D3Q7o9JY.js";import"./Globe02-X8fGWI0t.js";import"./LayersTwo01-DEwkReGL.js";const Ye=({size:o=24,color:e="currentColor",...s})=>k.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},k.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));Ye.displayName="ArrowsRight";const be=({size:o=24,color:e="currentColor",...s})=>k.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},k.createElement("path",{d:"m9.75 20.75 1.473.818c.284.158.425.237.576.268.133.027.27.027.402 0 .15-.031.292-.11.576-.268l1.473-.818m-9-2.5-1.427-.793c-.3-.166-.45-.25-.558-.368a1 1 0 0 1-.215-.364C3 16.573 3 16.401 3 16.06V14.5m0-5V7.942c0-.343 0-.514.05-.667a1 1 0 0 1 .215-.364c.109-.119.258-.202.558-.368L5.25 5.75m4.5-2.5 1.473-.818c.284-.158.425-.237.576-.267a1 1 0 0 1 .402 0c.15.03.292.11.576.267l1.473.818m4.5 2.5 1.427.793c.3.166.45.25.558.368a1 1 0 0 1 .215.364c.05.153.05.324.05.667V9.5m0 5v1.559c0 .342 0 .514-.05.666a.999.999 0 0 1-.215.364c-.109.119-.258.202-.558.368l-1.427.793m-9-7.5L12 12m0 0 2.25-1.25M12 12v2.5M3 7l2.25 1.25m13.5 0L21 7m-9 12.5V22"}));be.displayName="CubeOutline";const Ze=({size:o=24,color:e="currentColor",...s})=>k.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},k.createElement("path",{d:"M10 17.659V20a2 2 0 1 0 4 0v-2.341M12 2v1m-9 9H2m3.5-6.5-.6-.6m13.6.6.6-.6M22 12h-1m-3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"}));Ze.displayName="Lightbulb02";const qe=({size:o=24,color:e="currentColor",...s})=>k.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},k.createElement("path",{d:"m12 5.5-4.638 6.747c-.28.406-.42.609-.41.778a.5.5 0 0 0 .195.373c.135.102.38.102.874.102H12v5l4.638-6.747c.28-.406.42-.609.41-.778a.5.5 0 0 0-.195-.373c-.135-.102-.38-.102-.874-.102H12v-5Z"}),k.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));qe.displayName="ZapCircle";const os=0,ns=38;function rs(){const o=[];for(let e=os;e<=ns;e++)o.push(`/icons/capy-${e}.png`);return o}const is={sm:"h-8 w-8",md:"h-12 w-12",lg:"h-16 w-16"},as=rs();function cs(o){const e=L.c(53),{value:s,onChange:n,name:l,size:r,className:d,fallbackIcon:c}=o,a=r===void 0?"lg":r,[i,u]=k.useState(""),[g,h]=k.useState(!1);let p;e[0]!==n?(p=S=>{n(S),h(!1),u("")},e[0]=n,e[1]=p):p=e[1];const x=p;let f;e[2]!==i||e[3]!==n?(f=()=>{const S=i.trim();S&&(n(S),h(!1),u(""))},e[2]=i,e[3]=n,e[4]=f):f=e[4];const b=f;let m;e[5]!==n?(m=()=>{n(null),h(!1),u("")},e[5]=n,e[6]=m):m=e[6];const j=m,v=is[a];let C;e[7]!==d||e[8]!==v?(C=X("relative group rounded-lg border border-border shrink-0 overflow-hidden cursor-pointer",v,d),e[7]=d,e[8]=v,e[9]=C):C=e[9];const y=s??"no-icon";let V;e[10]!==c||e[11]!==l||e[12]!==y||e[13]!==s?(V=t.jsx(ms,{icon:s,name:l,fallbackIcon:c},y),e[10]=c,e[11]=l,e[12]=y,e[13]=s,e[14]=V):V=e[14];let F;e[15]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity",children:t.jsx(ft,{size:16,className:"text-white"})}),e[15]=F):F=e[15];let w;e[16]!==C||e[17]!==V?(w=t.jsx(at,{asChild:!0,children:t.jsxs("button",{type:"button",className:C,children:[V,F]})}),e[16]=C,e[17]=V,e[18]=w):w=e[18];let M;e[19]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx("span",{className:"text-sm font-medium",children:"Choose icon"}),e[19]=M):M=e[19];let _;e[20]!==j||e[21]!==s?(_=s&&t.jsxs(Z,{variant:"ghost",size:"sm",className:"h-6 px-1.5 text-xs text-muted-foreground",onClick:j,children:[t.jsx(pt,{size:12}),"Remove"]}),e[20]=j,e[21]=s,e[22]=_):_=e[22];let E;e[23]!==_?(E=t.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border",children:[M,_]}),e[23]=_,e[24]=E):E=e[24];let P;e[25]!==x||e[26]!==s?(P=as.map(S=>t.jsx("button",{type:"button",onClick:()=>x(S),className:X("h-9 w-9 rounded-md overflow-hidden border transition-colors hover:border-primary cursor-pointer",s===S?"border-primary ring-1 ring-primary":"border-transparent"),children:t.jsx("img",{src:S,alt:"",className:"h-full w-full object-cover",loading:"lazy"})},S)),e[25]=x,e[26]=s,e[27]=P):P=e[27];let O;e[28]!==P?(O=t.jsx(mt,{className:"h-48",children:t.jsx("div",{className:"grid grid-cols-7 gap-1 p-2",children:P})}),e[28]=P,e[29]=O):O=e[29];let R;e[30]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(xt,{size:14,className:"text-muted-foreground shrink-0"}),e[30]=R):R=e[30];let B;e[31]===Symbol.for("react.memo_cache_sentinel")?(B=S=>u(S.target.value),e[31]=B):B=e[31];let I;e[32]!==b?(I=S=>{S.key==="Enter"&&(S.preventDefault(),b())},e[32]=b,e[33]=I):I=e[33];let $;e[34]!==i||e[35]!==I?($=t.jsx(Ie,{value:i,onChange:B,placeholder:"Paste image URL...",className:"h-7 text-xs",onKeyDown:I}),e[34]=i,e[35]=I,e[36]=$):$=e[36];let G;e[37]!==i?(G=i.trim(),e[37]=i,e[38]=G):G=e[38];const U=!G;let A;e[39]!==b||e[40]!==U?(A=t.jsx(Z,{variant:"outline",size:"sm",className:"h-7 px-2 text-xs shrink-0",onClick:b,disabled:U,children:"Apply"}),e[39]=b,e[40]=U,e[41]=A):A=e[41];let D;e[42]!==$||e[43]!==A?(D=t.jsxs("div",{className:"flex items-center gap-1.5 p-2 border-t border-border",children:[R,$,A]}),e[42]=$,e[43]=A,e[44]=D):D=e[44];let T;e[45]!==E||e[46]!==O||e[47]!==D?(T=t.jsx(ct,{align:"start",className:"w-80 p-0",onOpenAutoFocus:ds,children:t.jsxs("div",{className:"flex flex-col",children:[E,O,D]})}),e[45]=E,e[46]=O,e[47]=D,e[48]=T):T=e[48];let z;return e[49]!==g||e[50]!==w||e[51]!==T?(z=t.jsxs(dt,{open:g,onOpenChange:h,children:[w,T]}),e[49]=g,e[50]=w,e[51]=T,e[52]=z):z=e[52],z}function ds(o){return o.preventDefault()}function ms(o){const e=L.c(8),{icon:s,name:n,fallbackIcon:l}=o,[r,d]=k.useState(!1);if(!s||r){let i;e[0]!==l?(i=l??t.jsx(ut,{size:24,className:"text-muted-foreground"}),e[0]=l,e[1]=i):i=e[1];let u;return e[2]!==i?(u=t.jsx("div",{className:"h-full w-full flex items-center justify-center bg-muted/20",children:i}),e[2]=i,e[3]=u):u=e[3],u}let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=()=>d(!0),e[4]=c):c=e[4];let a;return e[5]!==s||e[6]!==n?(a=t.jsx("img",{src:s,alt:n,className:"h-full w-full object-cover",onError:c}),e[5]=s,e[6]=n,e[7]=a):a=e[7],a}function Se(o){return o===null?"all":o?.length??0}function us(o,e){const s=o[e];if(!s)return"";const n=[];return s.tools===null?n.push("all tools"):s.tools&&s.tools.length>0&&n.push(`${s.tools.length} tools`),s.resources===null?n.push("all resources"):s.resources&&s.resources.length>0&&n.push(`${s.resources.length} resources`),s.prompts===null?n.push("all prompts"):s.prompts&&s.prompts.length>0&&n.push(`${s.prompts.length} prompts`),n.join(", ")}function fs(o,e){const s=o[e];return s?!((s.tools===void 0||s.tools!==null&&s.tools.length===0)&&(s.resources===void 0||s.resources!==null&&s.resources.length===0)&&(s.prompts===void 0||s.prompts!==null&&s.prompts.length===0)):!1}const xs={tools:null,resources:null,prompts:null};function ke(){const o=L.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex items-center justify-center h-32",children:t.jsx(ze,{className:"animate-spin text-muted-foreground",size:24})}),o[0]=e):e=o[0],e}function we(o){return({error:e})=>e?.message?.includes("Method not found")||e?.code===-32601?t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:o})}):t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(Xe,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e?.message?e.message.length>200?`${e.message.slice(0,200)}...`:e.message:"An unexpected error occurred"})]})]})}function ps(o){const e=L.c(23),{item:s,isSelected:n,onToggle:l,disabled:r}=o,d=r?"cursor-not-allowed opacity-50":"cursor-pointer",c=n?"bg-accent/25":"hover:bg-muted/50";let a;e[0]!==d||e[1]!==c?(a=X("flex items-start gap-3 p-4 rounded-lg transition-colors",d,c),e[0]=d,e[1]=c,e[2]=a):a=e[2];let i;e[3]!==s.name?(i=t.jsx("p",{className:"text-sm font-medium leading-none truncate",children:s.name}),e[3]=s.name,e[4]=i):i=e[4];let u;e[5]!==s.tags?(u=s.tags&&t.jsx("span",{className:"shrink-0",children:s.tags}),e[5]=s.tags,e[6]=u):u=e[6];let g;e[7]!==i||e[8]!==u?(g=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[i,u]}),e[7]=i,e[8]=u,e[9]=g):g=e[9];let h;e[10]!==s.description?(h=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.description}),e[10]=s.description,e[11]=h):h=e[11];let p;e[12]!==g||e[13]!==h?(p=t.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[g,h]}),e[12]=g,e[13]=h,e[14]=p):p=e[14];let x;e[15]!==r||e[16]!==n||e[17]!==l?(x=t.jsx(Pe,{checked:n,onCheckedChange:l,disabled:r,className:"mt-0.5"}),e[15]=r,e[16]=n,e[17]=l,e[18]=x):x=e[18];let f;return e[19]!==a||e[20]!==p||e[21]!==x?(f=t.jsxs("label",{className:a,children:[p,x]}),e[19]=a,e[20]=p,e[21]=x,e[22]=f):f=e[22],f}function Me(o){const e=L.c(32),{items:s,selections:n,onToggle:l,onToggleAll:r,emptyMessage:d,disabled:c}=o;let a,i,u,g,h;if(e[0]!==c||e[1]!==d||e[2]!==s||e[3]!==l||e[4]!==r||e[5]!==n){h=Symbol.for("react.early_return_sentinel");e:{const f=s.map(hs);if(s.length===0){let y;e[11]!==d?(y=t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:d})}),e[11]=d,e[12]=y):y=e[12],h=y;break e}u="flex flex-col h-full";const b=c?"cursor-not-allowed opacity-50":"cursor-pointer";let m;e[13]!==b?(m=X("flex items-start gap-3 p-4",b),e[13]=b,e[14]=m):m=e[14];let j;e[15]!==s.length?(j=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsxs("span",{className:"text-sm font-medium",children:["Select All (",s.length,")"]})}),e[15]=s.length,e[16]=j):j=e[16];const v=n===null;let C;e[17]!==c||e[18]!==r||e[19]!==v?(C=t.jsx(Pe,{checked:v,onCheckedChange:r,disabled:c,className:"mt-0.5"}),e[17]=c,e[18]=r,e[19]=v,e[20]=C):C=e[20],e[21]!==C||e[22]!==m||e[23]!==j?(g=t.jsx("div",{className:"px-4 border-b border-border shrink-0",children:t.jsxs("label",{className:m,children:[j,C]})}),e[21]=C,e[22]=m,e[23]=j,e[24]=g):g=e[24],a="flex-1 overflow-auto px-4 py-3 space-y-1",i=s.map(y=>t.jsx(ps,{item:y,isSelected:n===null||n?.includes(y.id),onToggle:()=>l(y.id,f),disabled:c},y.id))}e[0]=c,e[1]=d,e[2]=s,e[3]=l,e[4]=r,e[5]=n,e[6]=a,e[7]=i,e[8]=u,e[9]=g,e[10]=h}else a=e[6],i=e[7],u=e[8],g=e[9],h=e[10];if(h!==Symbol.for("react.early_return_sentinel"))return h;let p;e[25]!==a||e[26]!==i?(p=t.jsx("div",{className:a,children:i}),e[25]=a,e[26]=i,e[27]=p):p=e[27];let x;return e[28]!==u||e[29]!==g||e[30]!==p?(x=t.jsxs("div",{className:u,children:[g,p]}),e[28]=u,e[29]=g,e[30]=p,e[31]=x):x=e[31],x}function hs(o){return o.id}function gs(o){const e=L.c(13),{connectionId:s,selections:n,onToggle:l,onToggleAll:r,disabled:d}=o,{org:c}=de();let a;e[0]!==s||e[1]!==c.id?(a={connectionId:s,orgId:c.id},e[0]=s,e[1]=c.id,e[2]=a):a=e[2];const i=ge(a);let u;e[3]!==i?(u={client:i},e[3]=i,e[4]=u):u=e[4];const{data:g}=Ht(u);let h;e[5]!==g.tools?(h=g.tools.map(js),e[5]=g.tools,e[6]=h):h=e[6];const p=h;let x;return e[7]!==d||e[8]!==p||e[9]!==l||e[10]!==r||e[11]!==n?(x=t.jsx(Me,{items:p,selections:n,onToggle:l,onToggleAll:r,emptyMessage:"No tools available",disabled:d}),e[7]=d,e[8]=p,e[9]=l,e[10]=r,e[11]=n,e[12]=x):x=e[12],x}function js(o){return{id:o.name,name:o.name,description:o.description,tags:t.jsx(Rt,{annotations:o.annotations,_meta:o._meta})}}function bs(o){const e=L.c(13),{connectionId:s,selections:n,onToggle:l,onToggleAll:r,disabled:d}=o,{org:c}=de();let a;e[0]!==s||e[1]!==c.id?(a={connectionId:s,orgId:c.id},e[0]=s,e[1]=c.id,e[2]=a):a=e[2];const i=ge(a);let u;e[3]!==i?(u={client:i},e[3]=i,e[4]=u):u=e[4];const{data:g}=Kt(u);let h;e[5]!==g.resources?(h=g.resources.map(Ns),e[5]=g.resources,e[6]=h):h=e[6];const p=h;let x;return e[7]!==d||e[8]!==p||e[9]!==l||e[10]!==r||e[11]!==n?(x=t.jsx(Me,{items:p,selections:n,onToggle:l,onToggleAll:r,emptyMessage:"No resources available",disabled:d}),e[7]=d,e[8]=p,e[9]=l,e[10]=r,e[11]=n,e[12]=x):x=e[12],x}function Ns(o){return{id:o.name||o.uri,name:o.name||o.uri,description:o.description}}function vs(o){const e=L.c(13),{connectionId:s,selections:n,onToggle:l,onToggleAll:r,disabled:d}=o,{org:c}=de();let a;e[0]!==s||e[1]!==c.id?(a={connectionId:s,orgId:c.id},e[0]=s,e[1]=c.id,e[2]=a):a=e[2];const i=ge(a);let u;e[3]!==i?(u={client:i},e[3]=i,e[4]=u):u=e[4];const{data:g}=Wt(u);let h;e[5]!==g.prompts?(h=g.prompts.map(ys),e[5]=g.prompts,e[6]=h):h=e[6];const p=h;let x;return e[7]!==d||e[8]!==p||e[9]!==l||e[10]!==r||e[11]!==n?(x=t.jsx(Me,{items:p,selections:n,onToggle:l,onToggleAll:r,emptyMessage:"No prompts available",disabled:d}),e[7]=d,e[8]=p,e[9]=l,e[10]=r,e[11]=n,e[12]=x):x=e[12],x}function ys(o){return{id:o.name,name:o.name,description:o.description}}function Cs(o){const e=L.c(24),{connection:s,isSelected:n,hasSelections:l,summary:r,onClick:d,onToggleAll:c,disabled:a}=o,i=a?"cursor-not-allowed opacity-50":"cursor-pointer",u=n?"bg-accent":"hover:bg-muted/50";let g;e[0]!==i||e[1]!==u?(g=X("flex items-center gap-2 p-2 h-12 rounded-lg transition-colors",i,u),e[0]=i,e[1]=u,e[2]=g):g=e[2];const h=a?void 0:d;let p;e[3]!==s.icon||e[4]!==s.title?(p=t.jsx(Oe,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[3]=s.icon,e[4]=s.title,e[5]=p):p=e[5];let x;e[6]!==s.title?(x=t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[6]=s.title,e[7]=x):x=e[7];let f;e[8]!==l||e[9]!==r?(f=l&&r&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:r}),e[8]=l,e[9]=r,e[10]=f):f=e[10];let b;e[11]!==x||e[12]!==f?(b=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[x,f]}),e[11]=x,e[12]=f,e[13]=b):b=e[13];let m;e[14]!==a||e[15]!==l||e[16]!==c?(m=t.jsx(Pe,{checked:l,onCheckedChange:c,onClick:_s,disabled:a,className:"shrink-0"}),e[14]=a,e[15]=l,e[16]=c,e[17]=m):m=e[17];let j;return e[18]!==g||e[19]!==h||e[20]!==p||e[21]!==b||e[22]!==m?(j=t.jsxs("div",{className:g,onClick:h,children:[p,b,m]}),e[18]=g,e[19]=h,e[20]=p,e[21]=b,e[22]=m,e[23]=j):j=e[23],j}function _s(o){return o.stopPropagation()}function Ss(o){const e=L.c(22),{allConnections:s,searchTerm:n,selectedId:l,hasSelections:r,getSelectionSummary:d,onConnectionClick:c,onToggleAll:a,disabled:i}=o;let u;e[0]!==s||e[1]!==n?(u=n?s.filter(x=>x.title.toLowerCase().includes(n.toLowerCase())||x.description?.toLowerCase().includes(n.toLowerCase())):s,e[0]=s,e[1]=n,e[2]=u):u=e[2];const g=u;if(g.length===0){const x=n?"No connections found":"No connections available";let f;return e[3]!==x?(f=t.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground p-4",children:x}),e[3]=x,e[4]=f):f=e[4],f}let h;if(e[5]!==i||e[6]!==g||e[7]!==d||e[8]!==r||e[9]!==c||e[10]!==a||e[11]!==l){let x;e[13]!==i||e[14]!==d||e[15]!==r||e[16]!==c||e[17]!==a||e[18]!==l?(x=f=>t.jsx(Cs,{connection:f,isSelected:l===f.id,hasSelections:r(f.id),summary:d(f.id),onClick:()=>c(f.id),onToggleAll:()=>a(f.id),disabled:i},f.id),e[13]=i,e[14]=d,e[15]=r,e[16]=c,e[17]=a,e[18]=l,e[19]=x):x=e[19],h=g.map(x),e[5]=i,e[6]=g,e[7]=d,e[8]=r,e[9]=c,e[10]=a,e[11]=l,e[12]=h}else h=e[12];let p;return e[20]!==h?(p=t.jsx("div",{className:"flex flex-col gap-0.5",children:h}),e[20]=h,e[21]=p):p=e[21],p}function ks(o){const e=L.c(75),{currentConnection:s,activeTab:n,selectedId:l,formData:r,toggleTool:d,toggleResource:c,togglePrompt:a,toggleAllTools:i,toggleAllResources:u,toggleAllPrompts:g,onTabChange:h}=o;let p;e[0]!==s.icon||e[1]!==s.title?(p=t.jsx(Oe,{icon:s.icon,name:s.title,size:"md",className:"shrink-0"}),e[0]=s.icon,e[1]=s.title,e[2]=p):p=e[2];let x;e[3]!==s.title?(x=t.jsx("h2",{className:"text-lg font-semibold truncate",children:s.title}),e[3]=s.title,e[4]=x):x=e[4];let f;e[5]!==s.description?(f=s.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:s.description}),e[5]=s.description,e[6]=f):f=e[6];let b;e[7]!==x||e[8]!==f?(b=t.jsxs("div",{className:"flex-1 min-w-0",children:[x,f]}),e[7]=x,e[8]=f,e[9]=b):b=e[9];let m;e[10]!==p||e[11]!==b?(m=t.jsx("div",{className:"p-6 border-b border-border shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[p,b]})}),e[10]=p,e[11]=b,e[12]=m):m=e[12];let j;e[13]!==h?(j=K=>h(K),e[13]=h,e[14]=j):j=e[14];let v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsxs(ye,{value:"tools",variant:"underline",className:"gap-2",children:[t.jsx(Le,{size:16}),"Tools"]}),e[15]=v):v=e[15];let C;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsxs(ye,{value:"resources",variant:"underline",className:"gap-2",children:[t.jsx(be,{size:16}),"Resources"]}),e[16]=C):C=e[16];let y;e[17]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsxs(Gt,{variant:"underline",className:"shrink-0 px-6",children:[v,C,t.jsxs(ye,{value:"prompts",variant:"underline",className:"gap-2",children:[t.jsx(De,{size:16}),"Prompts"]})]}),e[17]=y):y=e[17];let V;e[18]===Symbol.for("react.memo_cache_sentinel")?(V=we("Tools not supported by this server"),e[18]=V):V=e[18];let F;e[19]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(ke,{}),e[19]=F):F=e[19];let w;e[20]!==r||e[21]!==l?(w=r[l]?r[l].tools:[],e[20]=r,e[21]=l,e[22]=w):w=e[22];let M;e[23]!==l||e[24]!==d?(M=(K,q)=>d(l,K,q),e[23]=l,e[24]=d,e[25]=M):M=e[25];let _;e[26]!==l||e[27]!==i?(_=()=>i(l),e[26]=l,e[27]=i,e[28]=_):_=e[28];let E;e[29]!==l||e[30]!==w||e[31]!==M||e[32]!==_?(E=t.jsx(Ce,{value:"tools",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:V,children:t.jsx(k.Suspense,{fallback:F,children:t.jsx(gs,{connectionId:l,selections:w,onToggle:M,onToggleAll:_})})})}),e[29]=l,e[30]=w,e[31]=M,e[32]=_,e[33]=E):E=e[33];let P;e[34]===Symbol.for("react.memo_cache_sentinel")?(P=we("Resources not supported by this server"),e[34]=P):P=e[34];let O;e[35]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(ke,{}),e[35]=O):O=e[35];let R;e[36]!==r||e[37]!==l?(R=r[l]?r[l].resources:[],e[36]=r,e[37]=l,e[38]=R):R=e[38];let B;e[39]!==l||e[40]!==c?(B=(K,q)=>c(l,K,q),e[39]=l,e[40]=c,e[41]=B):B=e[41];let I;e[42]!==l||e[43]!==u?(I=()=>u(l),e[42]=l,e[43]=u,e[44]=I):I=e[44];let $;e[45]!==l||e[46]!==R||e[47]!==B||e[48]!==I?($=t.jsx(Ce,{value:"resources",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:P,children:t.jsx(k.Suspense,{fallback:O,children:t.jsx(bs,{connectionId:l,selections:R,onToggle:B,onToggleAll:I})})})}),e[45]=l,e[46]=R,e[47]=B,e[48]=I,e[49]=$):$=e[49];let G;e[50]===Symbol.for("react.memo_cache_sentinel")?(G=we("Prompts not supported by this server"),e[50]=G):G=e[50];let U;e[51]===Symbol.for("react.memo_cache_sentinel")?(U=t.jsx(ke,{}),e[51]=U):U=e[51];let A;e[52]!==r||e[53]!==l?(A=r[l]?r[l].prompts:[],e[52]=r,e[53]=l,e[54]=A):A=e[54];let D;e[55]!==l||e[56]!==a?(D=(K,q)=>a(l,K,q),e[55]=l,e[56]=a,e[57]=D):D=e[57];let T;e[58]!==l||e[59]!==g?(T=()=>g(l),e[58]=l,e[59]=g,e[60]=T):T=e[60];let z;e[61]!==l||e[62]!==A||e[63]!==D||e[64]!==T?(z=t.jsx(Ce,{value:"prompts",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:G,children:t.jsx(k.Suspense,{fallback:U,children:t.jsx(vs,{connectionId:l,selections:A,onToggle:D,onToggleAll:T})})})}),e[61]=l,e[62]=A,e[63]=D,e[64]=T,e[65]=z):z=e[65];let S;e[66]!==n||e[67]!==E||e[68]!==$||e[69]!==z||e[70]!==j?(S=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:t.jsxs(Ft,{value:n,onValueChange:j,variant:"underline",className:"flex-1 flex flex-col overflow-hidden",children:[y,E,$,z]})}),e[66]=n,e[67]=E,e[68]=$,e[69]=z,e[70]=j,e[71]=S):S=e[71];let J;return e[72]!==S||e[73]!==m?(J=t.jsxs(t.Fragment,{children:[m,S]}),e[72]=S,e[73]=m,e[74]=J):J=e[74],J}function ws(o){const e={};for(const s of o)e[s.connection_id]={tools:s.selected_tools,resources:s.selected_resources??null,prompts:s.selected_prompts??null};return e}function Te(o){return Object.entries(o).map(([e,s])=>({connection_id:e,selected_tools:s.tools,selected_resources:s.resources,selected_prompts:s.prompts}))}function Ts(o,e){switch(e.type){case"SET_SEARCH_TERM":return{...o,searchTerm:e.payload};case"SET_SELECTED":return{...o,selectedId:e.payload};case"SET_ACTIVE_TAB":return{...o,activeTab:e.payload};case"RESET":return{searchTerm:"",selectedId:e.payload.selectedId??e.payload.firstConnectionId??null,activeTab:"tools"};case"SELECT_CONNECTION":return{...o,selectedId:e.payload,activeTab:"tools"};default:return o}}const Es=(o,e)=>o.find(s=>s.id===e)??o[0];function Is(o){const e=L.c(77),{open:s,onOpenChange:n,selectedId:l,form:r,connections:d}=o;let c;e[0]!==l?(c={activeTab:"tools",searchTerm:"",selectedId:l},e[0]=l,e[1]=c):c=e[1];const[a,i]=k.useReducer(Ts,c),u=k.useDeferredValue(a.searchTerm);let g;e[2]!==u?(g={searchTerm:u},e[2]=u,e[3]=g):g=e[3];const h=yt(g);let p;e[4]!==d?(p=d??[],e[4]=d,e[5]=p):p=e[5];let x;e[6]!==p?(x=ws(p),e[6]=p,e[7]=x):x=e[7];const f=x;let b;e[8]!==h||e[9]!==a.selectedId?(b=Es(h,a.selectedId),e[8]=h,e[9]=a.selectedId,e[10]=b):b=e[10];const m=b,j=m?.id??null;let v;e[11]!==f?(v=N=>fs(f,N),e[11]=f,e[12]=v):v=e[12];const C=v;let y;e[13]!==f?(y=N=>us(f,N),e[13]=f,e[14]=y):y=e[14];const V=y;let F;e[15]!==r||e[16]!==f?(F=(N,H,W,Q)=>{const ie=f[N]?.[H];let Y;ie===null?Y=Q.filter(Ne=>Ne!==W):ie?.includes(W)?Y=ie.filter(Ne=>Ne!==W):(Y=[...ie??[],W],Y.length===Q.length&&(Y=null));const ae={...f};ae[N]?ae[N]={...ae[N]}:ae[N]={tools:null,resources:null,prompts:null},ae[N][H]=Y,r.setValue("connections",Te(ae),{shouldDirty:!0,shouldTouch:!0})},e[15]=r,e[16]=f,e[17]=F):F=e[17];const w=F;let M;e[18]!==r||e[19]!==f?(M=(N,H)=>{const ie=f[N]?.[H]===null?[]:null,Y={...f};Y[N]?Y[N]={...Y[N]}:Y[N]={tools:null,resources:null,prompts:null},Y[N][H]=ie,r.setValue("connections",Te(Y),{shouldDirty:!0,shouldTouch:!0})},e[18]=r,e[19]=f,e[20]=M):M=e[20];const _=M;let E;e[21]!==w?(E=(N,H,W)=>w(N,"tools",H,W),e[21]=w,e[22]=E):E=e[22];const P=E;let O;e[23]!==w?(O=(N,H,W)=>w(N,"resources",H,W),e[23]=w,e[24]=O):O=e[24];const R=O;let B;e[25]!==w?(B=(N,H,W)=>w(N,"prompts",H,W),e[25]=w,e[26]=B):B=e[26];const I=B;let $;e[27]!==_?($=N=>_(N,"tools"),e[27]=_,e[28]=$):$=e[28];const G=$;let U;e[29]!==_?(U=N=>_(N,"resources"),e[29]=_,e[30]=U):U=e[30];const A=U;let D;e[31]!==_?(D=N=>_(N,"prompts"),e[31]=_,e[32]=D):D=e[32];const T=D;let z;e[33]!==r||e[34]!==f?(z=N=>{const H=f[N],W=H&&H.tools===null&&H.resources===null&&H.prompts===null,Q={...f};W?delete Q[N]:Q[N]=xs,r.setValue("connections",Te(Q),{shouldDirty:!0,shouldTouch:!0})},e[33]=r,e[34]=f,e[35]=z):z=e[35];const S=z;let J;e[36]!==h||e[37]!==n||e[38]!==l?(J=N=>{N&&i({type:"RESET",payload:{selectedId:l,firstConnectionId:h[0]?.id??null}}),n(N)},e[36]=h,e[37]=n,e[38]=l,e[39]=J):J=e[39];const K=J;let q;e[40]===Symbol.for("react.memo_cache_sentinel")?(q=N=>{i({type:"SELECT_CONNECTION",payload:N})},e[40]=q):q=e[40];const Je=q;let me;e[41]===Symbol.for("react.memo_cache_sentinel")?(me=N=>i({type:"SET_SEARCH_TERM",payload:N}),e[41]=me):me=e[41];let ee;e[42]!==a.searchTerm?(ee=t.jsx(Pt,{value:a.searchTerm,onChange:me,placeholder:"Search connections..."}),e[42]=a.searchTerm,e[43]=ee):ee=e[43];let te;e[44]!==h||e[45]!==a.searchTerm||e[46]!==j||e[47]!==V||e[48]!==C||e[49]!==S?(te=t.jsx("div",{className:"flex-1 overflow-auto p-2",children:t.jsx(Ss,{allConnections:h,searchTerm:a.searchTerm,selectedId:j,hasSelections:C,getSelectionSummary:V,onConnectionClick:Je,onToggleAll:S})}),e[44]=h,e[45]=a.searchTerm,e[46]=j,e[47]=V,e[48]=C,e[49]=S,e[50]=te):te=e[50];let se;e[51]!==ee||e[52]!==te?(se=t.jsxs("div",{className:"w-full sm:w-72 sm:border-r border-b sm:border-b-0 border-border flex flex-col bg-background sm:h-full max-h-[40vh] sm:max-h-full",children:[ee,te]}),e[51]=ee,e[52]=te,e[53]=se):se=e[53];let le;e[54]!==m||e[55]!==a.activeTab||e[56]!==j||e[57]!==f||e[58]!==T||e[59]!==A||e[60]!==G||e[61]!==I||e[62]!==R||e[63]!==P?(le=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:m&&j?t.jsx(ks,{currentConnection:m,activeTab:a.activeTab,selectedId:j,formData:f,toggleTool:P,toggleResource:R,togglePrompt:I,toggleAllTools:G,toggleAllResources:A,toggleAllPrompts:T,onTabChange:N=>i({type:"SET_ACTIVE_TAB",payload:N})},j):t.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:"Select a connection to view its tools, resources, and prompts"})}),e[54]=m,e[55]=a.activeTab,e[56]=j,e[57]=f,e[58]=T,e[59]=A,e[60]=G,e[61]=I,e[62]=R,e[63]=P,e[64]=le):le=e[64];let oe;e[65]!==se||e[66]!==le?(oe=t.jsxs("div",{className:"flex-1 flex overflow-hidden min-h-0 flex-col sm:flex-row",children:[se,le]}),e[65]=se,e[66]=le,e[67]=oe):oe=e[67];let ne;e[68]!==K?(ne=t.jsx(Mt,{className:"px-6 py-4 border-t border-border shrink-0",children:t.jsx(Z,{variant:"outline",onClick:()=>K(!1),children:"Done"})}),e[68]=K,e[69]=ne):ne=e[69];let re;e[70]!==oe||e[71]!==ne?(re=t.jsxs(He,{className:"sm:max-w-5xl h-[80vh] max-h-[80vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[oe,ne]}),e[70]=oe,e[71]=ne,e[72]=re):re=e[72];let ue;return e[73]!==K||e[74]!==s||e[75]!==re?(ue=t.jsx(Ke,{open:s,onOpenChange:K,children:re}),e[73]=K,e[74]=s,e[75]=re,e[76]=ue):ue=e[76],ue}const As=Qe.pick({title:!0,description:!0,icon:!0,status:!0,metadata:!0,connections:!0}).extend({title:et().min(1,"Name is required").max(255)});function Os(o){const e=L.c(8);let s,n;e[0]!==o?({className:s,...n}=o,e[0]=o,e[1]=s,e[2]=n):(s=e[1],n=e[2]);let l;e[3]!==s?(l=X("grid gap-3",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==n||e[6]!==l?(r=t.jsx(Xt,{"data-slot":"radio-group",className:l,...n}),e[5]=n,e[6]=l,e[7]=r):r=e[7],r}function Ee(o){const e=L.c(9);let s,n;e[0]!==o?({className:s,...n}=o,e[0]=o,e[1]=s,e[2]=n):(s=e[1],n=e[2]);let l;e[3]!==s?(l=X("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),e[3]=s,e[4]=l):l=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Qt,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(es,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=r):r=e[5];let d;return e[6]!==n||e[7]!==l?(d=t.jsx(Jt,{"data-slot":"radio-group-item",className:l,...n,children:r}),e[6]=n,e[7]=l,e[8]=d):d=e[8],d}function $s(o){const s=new TextEncoder().encode(o),n=Array.from(s,l=>String.fromCharCode(l)).join("");return btoa(n)}function Ds(o){const e=L.c(10),{url:s}=o,[n,l]=k.useState(!1);let r;e[0]!==s?(r=async()=>{await navigator.clipboard.writeText(s),l(!0),ce.success("Agent URL copied to clipboard"),setTimeout(()=>l(!1),2e3)},e[0]=s,e[1]=r):r=e[1];const d=r;let c;e[2]!==n?(c=n?t.jsx(je,{size:20,className:"text-green-600"}):t.jsx(Re,{size:20}),e[2]=n,e[3]=c):c=e[3];const a=n?"Copied!":"Copy URL";let i;e[4]!==a?(i=t.jsx("span",{className:"text-xs font-medium",children:a}),e[4]=a,e[5]=i):i=e[5];let u;return e[6]!==d||e[7]!==c||e[8]!==i?(u=t.jsxs(Z,{type:"button",variant:"outline",onClick:d,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[c,i]}),e[6]=d,e[7]=c,e[8]=i,e[9]=u):u=e[9],u}function zs(o){const e=L.c(7),{url:s,serverName:n}=o;let l;e[0]!==n||e[1]!==s?(l=()=>{const i=We(n),g=$s(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),h=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(i)}&config=${encodeURIComponent(g)}`;window.open(h,"_blank"),ce.success("Opening Cursor...")},e[0]=n,e[1]=s,e[2]=l):l=e[2];const r=l;let d,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("img",{src:"/logos/cursor.svg",alt:"Cursor",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(11%) sepia(8%) saturate(785%) hue-rotate(1deg) brightness(95%) contrast(89%)"}}),c=t.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=d,e[4]=c):(d=e[3],c=e[4]);let a;return e[5]!==r?(a=t.jsxs(Z,{type:"button",variant:"outline",onClick:r,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[d,c]}),e[5]=r,e[6]=a):a=e[6],a}function Ls(o){const e=L.c(11),{url:s,serverName:n}=o,[l,r]=k.useState(!1);let d;e[0]!==n||e[1]!==s?(d=async()=>{const h=We(n),x=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),f=`claude mcp add-json "${h}" '${x.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(f),r(!0),ce.success("Claude Code command copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=n,e[1]=s,e[2]=d):d=e[2];const c=d;let a;e[3]!==l?(a=l?t.jsx(je,{size:20,className:"text-green-600"}):t.jsx("img",{src:"/logos/Claude Code.svg",alt:"Claude Code",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(55%) sepia(31%) saturate(1264%) hue-rotate(331deg) brightness(92%) contrast(86%)"}}),e[3]=l,e[4]=a):a=e[4];const i=l?"Copied!":"Install on Claude";let u;e[5]!==i?(u=t.jsx("span",{className:"text-xs font-medium",children:i}),e[5]=i,e[6]=u):u=e[6];let g;return e[7]!==c||e[8]!==a||e[9]!==u?(g=t.jsxs(Z,{type:"button",variant:"outline",onClick:c,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[a,u]}),e[7]=c,e[8]=a,e[9]=u,e[10]=g):g=e[10],g}function Ps({virtualMcp:o}){const{org:e}=de(),s=ge({connectionId:Ut,orgId:e.id}),[n,l]=k.useState(null),[r,d]=k.useState(!1),[c,a]=k.useState(!1),i=o.id,u=o.title||`agent-${i.slice(0,8)}`,g=n?`bunx @decocms/typegen@latest --mcp ${i} --key ${n} --output client.ts`:`bunx @decocms/typegen@latest --mcp ${i} --key <api-key> --output client.ts`,h=async()=>{d(!0);try{const f=(await s.callTool({name:"API_KEY_CREATE",arguments:{name:`typegen-${u}`,permissions:{[i]:["*"]}}})).structuredContent?.key;if(!f)throw new Error("No key in response");l(f)}catch{ce.error("Failed to generate API key")}finally{d(!1)}},p=async()=>{await navigator.clipboard.writeText(g),a(!0),ce.success("Command copied to clipboard"),setTimeout(()=>a(!1),2e3)};return t.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("h4",{className:"text-sm font-medium text-foreground",children:"Generate typed client"}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Introspects this agent and writes a typed"," ",t.jsx("code",{className:"font-mono",children:"client.ts"})," you can import directly."]})]}),!n&&t.jsxs(Z,{type:"button",variant:"outline",size:"sm",className:"shrink-0 gap-1.5",onClick:h,disabled:r,children:[r?t.jsx(ze,{size:14,className:"animate-spin"}):t.jsx(ss,{size:14}),t.jsx("span",{children:r?"Generating…":"Generate API key"})]})]}),n&&t.jsx("p",{className:"rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-700",children:"Store this key securely — it won't be shown again."}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Generate client"}),t.jsx("div",{className:"rounded-md border border-input bg-muted/50 px-3 py-2.5",children:t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx("code",{className:"min-w-0 flex-1 break-all font-mono text-xs text-muted-foreground",children:g}),t.jsx(Z,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:p,children:c?t.jsx(je,{size:12,className:"text-green-600"}):t.jsx(Re,{size:12})})]})}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Runtime variables"}),t.jsx(Rs,{apiKey:n})]})}function Rs(o){const e=L.c(19),{apiKey:s}=o,[n,l]=k.useState(!1),r=window.location.origin,d=s?`MESH_API_KEY=${s}`:"MESH_API_KEY=<api-key>",c=`MESH_BASE_URL=${r}`,a=`${d}
|
|
2
|
+
${c}`;let i;e[0]!==a?(i=async()=>{await navigator.clipboard.writeText(a),l(!0),setTimeout(()=>l(!1),2e3)},e[0]=a,e[1]=i):i=e[1];const u=i,g=!s;let h;e[2]!==g?(h=X({"opacity-50":g}),e[2]=g,e[3]=h):h=e[3];let p;e[4]!==d||e[5]!==h?(p=t.jsx("span",{className:h,children:d}),e[4]=d,e[5]=h,e[6]=p):p=e[6];let x,f;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("br",{}),f=t.jsx("span",{children:c}),e[7]=x,e[8]=f):(x=e[7],f=e[8]);let b;e[9]!==p?(b=t.jsxs("code",{className:"min-w-0 flex-1 font-mono text-xs text-muted-foreground",children:[p,x,f]}),e[9]=p,e[10]=b):b=e[10];let m;e[11]!==n?(m=n?t.jsx(je,{size:12,className:"text-green-600"}):t.jsx(Re,{size:12}),e[11]=n,e[12]=m):m=e[12];let j;e[13]!==u||e[14]!==m?(j=t.jsx(Z,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:u,children:m}),e[13]=u,e[14]=m,e[15]=j):j=e[15];let v;return e[16]!==b||e[17]!==j?(v=t.jsx("div",{className:"rounded-md border border-input bg-muted/50 px-3 py-2.5",children:t.jsxs("div",{className:"flex items-start gap-2",children:[b,j]})}),e[16]=b,e[17]=j,e[18]=v):v=e[18],v}function Ms(o){const e=L.c(3),{virtualMcp:s}=o;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"h-20 animate-pulse rounded-md bg-muted"}),e[0]=n):n=e[0];let l;return e[1]!==s?(l=t.jsx(k.Suspense,{fallback:n,children:t.jsx(Ps,{virtualMcp:s})}),e[1]=s,e[2]=l):l=e[2],l}function Bs(o){const e=L.c(53),{open:s,onOpenChange:n,virtualMcp:l}=o,[r,d]=k.useState("code_execution");let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=T=>{(T==="passthrough"||T==="smart_tool_selection"||T==="code_execution")&&d(T)},e[0]=c):c=e[0];const a=c;let i;e[1]!==r||e[2]!==l.id?(i=new URL(`/mcp/virtual-mcp/${l.id}`,window.location.origin),i.searchParams.set("mode",r),e[1]=r,e[2]=l.id,e[3]=i):i=e[3];let u;e[4]!==l.id||e[5]!==l.title?(u=l.title||`agent-${l.id?.slice(0,8)??"default"}`,e[4]=l.id,e[5]=l.title,e[6]=u):u=e[6];const g=u,h=vt();let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[7]=p):p=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Ye,{className:"size-5 text-muted-foreground"})}),e[8]=x):x=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Direct access"}),e[9]=f):f=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(xe,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[10]=b):b=e[10];let m;e[11]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs("label",{htmlFor:"mode-passthrough",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[x,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[f,t.jsx(ve,{children:t.jsxs(pe,{children:[b,t.jsx(he,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"All tools are exposed directly via tools/list. Best for small tool surfaces with deterministic behavior."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Best for small teams or when you need predictable behavior"})]}),t.jsx(Ee,{id:"mode-passthrough",value:"passthrough"})]}),e[11]=m):m=e[11];let j;e[12]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Ze,{className:"size-5 text-muted-foreground"})}),e[12]=j):j=e[12];let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[13]=v):v=e[13];let C;e[14]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(xe,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[14]=C):C=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsxs("label",{htmlFor:"mode-smart",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[j,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[v,t.jsx(ve,{children:t.jsxs(pe,{children:[C,t.jsx(he,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"Uses meta-tools (GATEWAY_SEARCH_TOOLS, GATEWAY_DESCRIBE_TOOLS, GATEWAY_CALL_TOOL) to keep the tool list small and request details on demand."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Ideal for large teams with many tools - AI finds what it needs"})]}),t.jsx(Ee,{id:"mode-smart",value:"smart_tool_selection"})]}),e[15]=y):y=e[15];let V;e[16]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(ts,{className:"size-5 text-muted-foreground"})}),e[16]=V):V=e[16];let F;e[17]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[17]=F):F=e[17];let w;e[18]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(xe,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[18]=w):w=e[18];let M;e[19]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsxs("label",{htmlFor:"mode-code",className:"relative flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[V,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[F,t.jsx(ve,{children:t.jsxs(pe,{children:[w,t.jsx(he,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"Exposes meta-tools for discovery + sandboxed execution (GATEWAY_RUN_CODE). Reduces overhead on large surfaces by shifting work into a controlled runtime."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Maximum flexibility - AI can write code to orchestrate tools"})]}),t.jsx(Ee,{id:"mode-code",value:"code_execution"}),t.jsx($e,{variant:"outline",className:"absolute -top-2.5 left-1/2 -translate-x-1/2 bg-background z-10",children:"Recommended"})]}),e[19]=M):M=e[19];let _;e[20]!==r?(_=t.jsxs("div",{className:"flex flex-col gap-3",children:[p,t.jsxs(Os,{value:r,onValueChange:a,className:"flex flex-col gap-4.5",children:[m,y,M]})]}),e[20]=r,e[21]=_):_=e[21];let E;e[22]!==i.href?(E=t.jsx(Ds,{url:i.href}),e[22]=i.href,e[23]=E):E=e[23];let P,O;e[24]!==g||e[25]!==i.href?(P=t.jsx(zs,{url:i.href,serverName:g}),O=t.jsx(Ls,{url:i.href,serverName:g}),e[24]=g,e[25]=i.href,e[26]=P,e[27]=O):(P=e[26],O=e[27]);let R;e[28]!==E||e[29]!==P||e[30]!==O?(R=t.jsx("div",{className:"flex flex-col gap-3 pt-2",children:t.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[E,P,O]})}),e[28]=E,e[29]=P,e[30]=O,e[31]=R):R=e[31];let B;e[32]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("div",{className:"border-t border-border"}),e[32]=B):B=e[32];let I;e[33]!==l?(I=t.jsx(Ms,{virtualMcp:l}),e[33]=l,e[34]=I):I=e[34];let $;e[35]!==_||e[36]!==R||e[37]!==I?($=t.jsxs("div",{className:"flex flex-col gap-6",children:[_,R,B,I]}),e[35]=_,e[36]=R,e[37]=I,e[38]=$):$=e[38];const G=$;if(h){let T;e[39]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(Yt,{className:"mt-4 mb-4 text-base font-semibold",children:"Connect"}),e[39]=T):T=e[39];let z;e[40]!==G?(z=t.jsx(Zt,{children:t.jsxs("div",{className:"flex-1 overflow-y-auto px-4 pb-6 [touch-action:pan-y]",children:[T,G]})}),e[40]=G,e[41]=z):z=e[41];let S;return e[42]!==n||e[43]!==s||e[44]!==z?(S=t.jsx(qt,{open:s,onOpenChange:n,children:z}),e[42]=n,e[43]=s,e[44]=z,e[45]=S):S=e[45],S}let U;e[46]===Symbol.for("react.memo_cache_sentinel")?(U=t.jsx(Bt,{children:t.jsx(Vt,{children:"Connect"})}),e[46]=U):U=e[46];let A;e[47]!==G?(A=t.jsxs(He,{className:"max-h-[80vh] overflow-y-auto sm:max-w-2xl",children:[U,G]}),e[47]=G,e[48]=A):A=e[48];let D;return e[49]!==n||e[50]!==s||e[51]!==A?(D=t.jsx(Ke,{open:s,onOpenChange:n,children:A}),e[49]=n,e[50]=s,e[51]=A,e[52]=D):D=e[52],D}function Vs(o,e){switch(e.type){case"SET_SHARE_DIALOG_OPEN":return{...o,shareDialogOpen:e.payload};case"SET_CONNECTION_DIALOG_OPEN":return{...o,connectionDialogOpen:e.payload};case"SET_EDITING_CONNECTION_ID":return{...o,editingConnectionId:e.payload};case"SET_SKILLS_OPEN":return{...o,skillsOpen:e.payload};default:return o}}function Ae(o){const e=L.c(27),{connection_id:s,selected_tools:n,selected_resources:l,selected_prompts:r,onClick:d}=o,c=Ct(s);if(!c)return null;let a;e[0]!==n?(a=Se(n),e[0]=n,e[1]=a):a=e[1];const i=a;let u;e[2]!==l?(u=Se(l),e[2]=l,e[3]=u):u=e[3];const g=u;let h;e[4]!==r?(h=Se(r),e[4]=r,e[5]=h):h=e[5];const p=h;let x;e[6]!==c.icon||e[7]!==c.title?(x=t.jsx(Oe,{icon:c.icon,name:c.title,size:"xs"}),e[6]=c.icon,e[7]=c.title,e[8]=x):x=e[8];let f;e[9]!==c.title?(f=t.jsx("p",{className:"flex-1 text-sm font-normal text-foreground truncate",children:c.title}),e[9]=c.title,e[10]=f):f=e[10];let b;e[11]!==i?(b=i!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:i==="all"?"all":i}),t.jsx(Le,{size:12})]}),e[11]=i,e[12]=b):b=e[12];let m;e[13]!==g?(m=g!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:g==="all"?"all":g}),t.jsx(be,{size:12})]}),e[13]=g,e[14]=m):m=e[14];let j;e[15]!==p?(j=p!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:p==="all"?"all":p}),t.jsx(De,{size:12})]}),e[15]=p,e[16]=j):j=e[16];let v;e[17]!==b||e[18]!==m||e[19]!==j?(v=t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[b,m,j]}),e[17]=b,e[18]=m,e[19]=j,e[20]=v):v=e[20];let C;e[21]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(Ue,{size:16,className:"text-muted-foreground shrink-0"}),e[21]=C):C=e[21];let y;return e[22]!==d||e[23]!==x||e[24]!==f||e[25]!==v?(y=t.jsxs("div",{onClick:d,className:"w-full h-12 flex items-center gap-2 px-3 rounded-lg border border-border hover:bg-accent/50 transition-colors cursor-pointer",children:[x,f,v,C]}),e[22]=d,e[23]=x,e[24]=f,e[25]=v,e[26]=y):y=e[26],y}Ae.Fallback=function(){return t.jsxs("div",{className:"w-full h-12 flex items-center gap-2 px-3 rounded-lg border border-border",children:[t.jsx("div",{className:"size-5 rounded bg-muted animate-pulse shrink-0"}),t.jsx("div",{className:"flex-1 h-4 rounded bg-muted animate-pulse"}),t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(Le,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(be,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(De,{size:12})]})]}),t.jsx(Ue,{size:16,className:"text-muted-foreground shrink-0"})]})};function Gs({virtualMcp:o}){const{org:e}=de(),s=St(),n=lt({resolver:ot(As),defaultValues:o}),l=n.watch("connections"),[r,d]=k.useReducer(Vs,{shareDialogOpen:!1,connectionDialogOpen:!1,editingConnectionId:null,skillsOpen:localStorage.getItem("agent-connections-open")==="true"}),[,c]=ht(),{setVirtualMcpId:a}=rt();k.useEffect(()=>{c(!0),a(o.id)},[o.id]);const i=()=>{a(o.id),c(!0)},u=n.formState.isDirty,g=async()=>{const m=n.getValues(),j=await s.update.mutateAsync({id:o.id,data:m});n.reset(j)},h=()=>{n.reset(o)},p=()=>{d({type:"SET_EDITING_CONNECTION_ID",payload:null}),d({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},x=m=>{d({type:"SET_EDITING_CONNECTION_ID",payload:m}),d({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},f=s.update.isPending,b=t.jsx(Et,{children:t.jsxs(It,{children:[t.jsx(Ge,{children:t.jsx(At,{asChild:!0,children:t.jsx(nt,{to:"/$org/$project/agents",params:{org:e.slug,project:Fe},children:"Agents"})})}),t.jsx(Ot,{}),t.jsx(Ge,{children:t.jsx($t,{children:o.title})})]})});return t.jsxs(Dt,{breadcrumb:b,children:[t.jsxs(zt,{children:[t.jsx(Lt,{onSave:g,onUndo:h,isDirty:u,isSaving:f}),t.jsxs(pe,{delayDuration:0,children:[t.jsx(xe,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsxs(Z,{variant:"outline",size:"sm",className:"h-7 gap-1.5 px-2 border border-input",onClick:i,"aria-label":"Test Agent",children:[t.jsx(wt,{size:14}),"Test Agent"]})})}),t.jsx(he,{side:"bottom",children:"Test this agent in chat"})]}),t.jsxs(Z,{variant:"outline",size:"sm",className:"h-7 gap-1.5 px-2 border border-input",onClick:()=>d({type:"SET_SHARE_DIALOG_OPEN",payload:!0}),children:[t.jsx(qe,{size:14}),"Connect"]})]}),t.jsx("div",{className:"flex h-full w-full bg-background overflow-auto",children:t.jsxs("div",{className:"flex flex-col w-full",children:[t.jsxs("div",{className:"flex items-start justify-between gap-4 p-6 shrink-0",children:[t.jsxs("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[t.jsx(Be,{control:n.control,name:"icon",render:({field:m})=>t.jsx(cs,{value:m.value,onChange:m.onChange,name:n.watch("title")||"Agent",size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(Tt,{})})}),t.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[t.jsx(Ie,{...n.register("title"),className:"h-auto py-0.5 text-lg! font-medium leading-7 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Agent Name"}),t.jsx(Ie,{...n.register("description"),className:"h-auto py-0.5 text-base text-muted-foreground leading-6 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Add a description..."})]})]}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(bt,{checked:n.watch("status")==="active",onCheckedChange:m=>n.setValue("status",m?"active":"inactive",{shouldDirty:!0})})})]}),t.jsxs(gt,{open:r.skillsOpen,onOpenChange:m=>{localStorage.setItem("agent-connections-open",String(m)),d({type:"SET_SKILLS_OPEN",payload:m})},className:"border-t border-border shrink-0 max-h-[400px] overflow-hidden flex flex-col",children:[l.length===0?t.jsxs("div",{className:"px-6 py-4 flex flex-col gap-3",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Connections"}),t.jsxs("button",{type:"button",onClick:p,className:"flex items-center gap-3 px-3 py-2.5 rounded-lg border border-border hover:bg-accent/50 transition-colors w-full text-left cursor-pointer overflow-hidden",children:[t.jsxs("div",{className:"relative flex items-center justify-center size-8 rounded-md text-muted-foreground/75 shrink-0",children:[t.jsxs("svg",{className:"absolute inset-0 size-full overflow-hidden",fill:"none",viewBox:"0 0 32 32",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"agent-detail-border-gradient",gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:"32",y2:"32",children:[t.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"6s",repeatCount:"indefinite"}),t.jsx("stop",{offset:"0%",stopColor:"var(--chart-1)"}),t.jsx("stop",{offset:"100%",stopColor:"var(--chart-4)"})]})}),t.jsx("rect",{x:"0.5",y:"0.5",width:"31",height:"31",rx:"5.5",stroke:"url(#agent-detail-border-gradient)",strokeWidth:"1",strokeDasharray:"3 3"})]}),t.jsx(Ve,{size:16})]}),t.jsx("span",{className:"text-sm text-muted-foreground truncate",children:"No connections yet. Add one to get started."})]})]}):t.jsx(jt,{asChild:!0,children:t.jsxs("button",{type:"button",className:"w-full flex items-center justify-between px-6 py-4 hover:bg-muted/50 transition-colors cursor-pointer",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Connections"}),t.jsxs("div",{className:"flex items-center",children:[t.jsx("div",{className:"ease-(--ease-out-expo)",style:{width:r.skillsOpen?0:"auto",marginRight:r.skillsOpen?0:4,opacity:r.skillsOpen?0:1,pointerEvents:r.skillsOpen?"none":"auto",transitionProperty:"all",transitionDuration:r.skillsOpen?"0ms":"200ms"},children:t.jsx(ls,{connectionIds:l.map(m=>m.connection_id),maxVisibleIcons:2})}),t.jsxs("div",{role:"button",tabIndex:0,className:"h-7 inline-flex items-center justify-center rounded-md text-sm text-muted-foreground overflow-hidden transition-all duration-200 ease-(--ease-out-expo) hover:bg-accent hover:text-accent-foreground",style:{width:r.skillsOpen?"auto":28,paddingLeft:r.skillsOpen?8:0,paddingRight:r.skillsOpen?8:0,gap:r.skillsOpen?4:0},onPointerDown:m=>{m.stopPropagation()},onClick:m=>{m.stopPropagation(),m.preventDefault(),p()},onKeyDown:m=>{(m.key==="Enter"||m.key===" ")&&(m.stopPropagation(),m.preventDefault(),p())},children:[t.jsx(Ve,{size:14,className:"shrink-0"}),t.jsx("span",{className:"overflow-hidden whitespace-nowrap transition-all duration-200 ease-(--ease-out-expo)",style:{width:r.skillsOpen?"auto":0,opacity:r.skillsOpen?1:0},children:"Add"})]}),t.jsx("div",{className:"h-7 inline-flex items-center justify-center overflow-hidden transition-all duration-200 ease-(--ease-out-expo)",style:{width:r.skillsOpen?28:0,opacity:r.skillsOpen?1:0},children:t.jsx(kt,{size:16,className:"shrink-0"})})]})]})}),t.jsx("div",{className:"grid overflow-hidden transition-[grid-template-rows] duration-200 ease-(--ease-out-expo)",style:{gridTemplateRows:r.skillsOpen?"1fr":"0fr"},children:t.jsx("div",{className:"min-h-0 overflow-hidden",children:t.jsx("div",{className:"overflow-y-auto max-h-[300px] mask-[linear-gradient(to_bottom,black_calc(100%-40px),transparent_100%)]",children:t.jsx("div",{className:"flex flex-col gap-2 px-6 pb-4 pt-2",children:l.map(m=>t.jsx(k.Suspense,{fallback:t.jsx(Ae.Fallback,{}),children:t.jsx(Ae,{connection_id:m.connection_id,selected_tools:m.selected_tools,selected_resources:m.selected_resources,selected_prompts:m.selected_prompts,onClick:()=>x(m.connection_id)})},m.connection_id))})})})})]}),t.jsxs("div",{className:"flex flex-col flex-1 p-6 border-t border-border overflow-auto",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Instructions"}),t.jsx(Be,{name:"metadata.instructions",control:n.control,render:({field:m})=>t.jsx(Nt,{...m,value:m.value??"",placeholder:"Write instructions here...",className:"min-h-[200px] resize-none text-sm placeholder:text-muted-foreground/50 leading-relaxed border-0 rounded-none shadow-none px-0 focus-visible:ring-0 focus-visible:ring-offset-0 focus:border-0 bg-transparent"})})]})]})}),t.jsx(Is,{open:r.connectionDialogOpen,onOpenChange:m=>d({type:"SET_CONNECTION_DIALOG_OPEN",payload:m}),selectedId:r.editingConnectionId,form:n,connections:l}),t.jsx(Bs,{open:r.shareDialogOpen,onOpenChange:m=>d({type:"SET_SHARE_DIALOG_OPEN",payload:m}),virtualMcp:o})]})}function Fs(){const o=L.c(6),e=tt();let s;o[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/$project/agents/$agentId"},o[0]=s):s=o[0];const n=st(s),{org:l,agentId:r}=n,d=_t(r);if(!d){let a;return o[1]!==e||o[2]!==l?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(it,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(Z,{variant:"outline",onClick:()=>e({to:"/$org/$project/agents",params:{org:l,project:Fe}}),children:"Back to agents"})})}),o[1]=e,o[2]=l,o[3]=a):a=o[3],a}let c;return o[4]!==d?(c=t.jsx(Gs,{virtualMcp:d}),o[4]=d,o[5]=c):c=o[5],c}function io(){const o=L.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(fe,{children:t.jsx(k.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(ze,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Fs,{})})}),o[0]=e):e=o[0],e}export{io as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as ue,j as s,E as ut,r as G,u as ft,e as pt,B as E,D as K,v as gt,O as jt}from"./index-DMmNh7jR.js";import{C as bt}from"./collection-display-button-BcIJp1SX.js";import{C as vt}from"./collection-search-nKZEJ_r3.js";import{P as pe,S as Nt,b as Ct,c as wt,d as yt,e as kt}from"./index-DYAF-Vgt.js";import{B as St,a as Dt,b as _t,c as zt}from"./breadcrumb-C8hDXS86.js";import{C as ct}from"./connection-card-BYUbg7iO.js";import{B as Q}from"./badge-Cjjl_FHP.js";import{i as At}from"./AlertCircle-DcuzO-dN.js";import{i as Mt}from"./CheckCircle-CPfAK_ok.js";import{E as Ye}from"./empty-state-BuGXY27l.js";import{I as de}from"./integration-icon-Dyr7fOYU.js";import{u as Tt}from"./use-list-state-Baq-X1EV.js";import{u as $t}from"./use-create-virtual-mcp-DZAv89rZ.js";import{i as me}from"./constants-DclZTqHf.js";import{b as Pt,a as It}from"./use-virtual-mcp-DCxXK_bv.js";import{c as Ze,b as et,d as tt,A as st,e as nt,h as it,a as at,f as rt}from"./alert-dialog-qmvoIx9J.js";import{C as Be}from"./checkbox-D5DFx9da.js";import{D as Ot,a as Bt,b as Et,c as Rt,d as Vt}from"./dialog-DzGwvQ_K.js";import{u as Kt}from"./tooltip-DHJtaI_Z.js";import{c as Gt,a as Ht,b as Oe,e as U,d as Ut,T as Ft}from"./table-BSLV9H8I.js";import{D as Ee,a as Re,b as Ve,c as F}from"./dropdown-menu-BcNYk9_F.js";import{n as Lt}from"./ArrowDown-DrJY3Wf3.js";import{i as qt}from"./ArrowUp-B4DKDJey.js";import{i as Jt}from"./CheckSquare-Bd5OlGNx.js";import{t as Qt}from"./ChevronDown-t60R5l2B.js";import{i as Ke}from"./DotsVertical-CZep1rYf.js";import{s as Ge}from"./Eye-D3Q7o9JY.js";import{i as Wt}from"./Loading01-D0sCOwf7.js";import{s as Xe}from"./Plus-Dcf0Y3wA.js";import{s as ge}from"./Trash01-Cs72bTP6.js";import{t as V}from"./Users03-CGvJARf5.js";import{s as dt}from"./XClose-BxUlnJUs.js";import{U as he}from"./user-8V0wpye0.js";import{A as lt}from"./agent-connections-preview-BEmLqtx5.js";import{f as xe}from"./format-time-CMKyl-GC.js";import"./Check-5nIJP_0B.js";import"./Grid01-NkSMXhQ7.js";import"./List-BbeB05v1.js";import"./SearchMd-BSRGE1t4.js";import"./input-Bt_nejZh.js";import"./useQuery-B-AaJTeZ.js";import"./useMutation-DrLoVqQ7.js";import"./X-CD9ZB6hw.js";import"./ChevronRight-3uKoJ2yX.js";import"./card-CoyaoT6W.js";import"./Container-Cvd3ILsk.js";import"./use-view-mode-CdGajc1j.js";import"./use-collections-DhavVshD.js";import"./index-COFAW4F5.js";import"./avatar-DeGeJRAR.js";import"./use-connection-CVlyXslk.js";import"./differenceInSeconds-NQ4PDo0z.js";function Xt(e){const t=ue.c(3),{status:n}=e;if(n==="active"){let i;return t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(Q,{variant:"success",className:"gap-1.5 text-success border-success/40 bg-background",children:[s.jsx(Mt,{size:12}),"Active"]}),t[0]=i):i=t[0],i}if(n==="error"){let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(Q,{variant:"outline",className:"gap-1.5 text-destructive border-destructive/40 bg-background",children:[s.jsx(At,{size:12}),"Error"]}),t[1]=i):i=t[1],i}let c;return t[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Q,{variant:"outline",className:"text-muted-foreground",children:"Inactive"}),t[2]=c):c=t[2],c}function ot(e){return e.title.trim().replace(/\s+\(\d+\)$/,"")}function Yt(e){const t=new Map;for(const i of e){const l=ot(i),r=t.get(l);r?r.push(i):t.set(l,[i])}const n=[],c=new Set;for(const i of e){const l=ot(i);if(c.has(l))continue;c.add(l);const r=t.get(l),x=r[0];r.length===1?n.push({type:"single",agent:x}):n.push({type:"group",key:l,icon:x.icon,title:x.title.replace(/\s*\(\d+\)\s*$/,""),agents:r})}return n}function mt(e){const t=new Set,n=[];for(const c of e)c.created_by&&!t.has(c.created_by)&&(t.add(c.created_by),n.push(c.created_by));return n}function Zt(e,t){switch(t.type){case"delete":return{mode:"deleting",virtualMcp:t.virtualMcp};case"close":return{mode:"idle"}}}function es(e){const t=ue.c(77),{group:n,onNavigate:c,onDelete:i,selectionMode:l,selectedIds:r,onToggleSelect:x}=e,[g,u]=G.useState(!1),k=Kt();let b;if(t[0]!==n.agents||t[1]!==r){let a;t[3]!==r?(a=o=>r.has(o.id),t[3]=r,t[4]=a):a=t[4],b=n.agents.every(a),t[0]=n.agents,t[1]=r,t[2]=b}else b=t[2];const v=b;let d;if(t[5]!==n.agents||t[6]!==r){let a;t[8]!==r?(a=o=>r.has(o.id),t[8]=r,t[9]=a):a=t[9],d=n.agents.some(a),t[5]=n.agents,t[6]=r,t[7]=d}else d=t[7];const I=d;let S,m,C,A,P,M,D,T,p,f;if(t[10]!==v||t[11]!==n.agents||t[12]!==n.icon||t[13]!==n.title||t[14]!==x||t[15]!==r||t[16]!==l||t[17]!==I){const a=mt(n.agents),o=n.agents.reduce(as,n.agents[0]),N=o.updated_at??o.created_at;S=ct;const _=`${n.agents.length} instances`;t[28]!==n.icon||t[29]!==n.title||t[30]!==_?(T={title:n.title,icon:n.icon,description:_},t[28]=n.icon,t[29]=n.title,t[30]=_,t[31]=T):T=t[31],t[32]!==v||t[33]!==n.agents||t[34]!==x||t[35]!==r||t[36]!==l?(p=()=>l?(()=>{for(const w of n.agents)v?r.has(w.id)&&x(w.id):r.has(w.id)||x(w.id)})():u(!0),t[32]=v,t[33]=n.agents,t[34]=x,t[35]=r,t[36]=l,t[37]=p):p=t[37];const H=l&&v&&"ring-2 ring-primary",R=l&&I&&!v&&"ring-1 ring-primary/50";t[38]!==H||t[39]!==R?(f=K(H,R),t[38]=H,t[39]=R,t[40]=f):f=t[40],t[41]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(V,{}),t[41]=m):m=t[41],t[42]!==v||t[43]!==n.agents||t[44]!==x||t[45]!==r||t[46]!==l||t[47]!==I?(C=l?s.jsx(Be,{checked:v?!0:I?"indeterminate":!1,onCheckedChange:()=>{for(const w of n.agents)v?r.has(w.id)&&x(w.id):r.has(w.id)||x(w.id)}}):s.jsxs(Q,{variant:"secondary",className:"text-xs tabular-nums",children:["x",n.agents.length]}),t[42]=v,t[43]=n.agents,t[44]=x,t[45]=r,t[46]=l,t[47]=I,t[48]=C):C=t[48],M="flex items-center justify-between text-xs text-muted-foreground w-full min-w-0";const L=a.map(w=>s.jsx(he,{id:w,size:"3xs",avatarOnly:a.length>1},w));t[49]!==L?(D=s.jsx("div",{className:"flex items-center -space-x-1.5",children:L}),t[49]=L,t[50]=D):D=t[50],A="shrink-0 ml-2",P=N?xe(new Date(N)):"—",t[10]=v,t[11]=n.agents,t[12]=n.icon,t[13]=n.title,t[14]=x,t[15]=r,t[16]=l,t[17]=I,t[18]=S,t[19]=m,t[20]=C,t[21]=A,t[22]=P,t[23]=M,t[24]=D,t[25]=T,t[26]=p,t[27]=f}else S=t[18],m=t[19],C=t[20],A=t[21],P=t[22],M=t[23],D=t[24],T=t[25],p=t[26],f=t[27];let h;t[51]!==A||t[52]!==P?(h=s.jsx("span",{className:A,children:P}),t[51]=A,t[52]=P,t[53]=h):h=t[53];let $;t[54]!==h||t[55]!==M||t[56]!==D?($=s.jsxs("div",{className:M,children:[D,h]}),t[54]=h,t[55]=M,t[56]=D,t[57]=$):$=t[57];let z;t[58]!==S||t[59]!==m||t[60]!==C||t[61]!==$||t[62]!==T||t[63]!==p||t[64]!==f?(z=s.jsx(S,{connection:T,onClick:p,className:f,fallbackIcon:m,headerActions:C,footer:$}),t[58]=S,t[59]=m,t[60]=C,t[61]=$,t[62]=T,t[63]=p,t[64]=f,t[65]=z):z=t[65];let B;t[66]!==g||t[67]!==n.agents||t[68]!==n.icon||t[69]!==n.title||t[70]!==k||t[71]!==i||t[72]!==c?(B=k?s.jsx(Nt,{open:g,onOpenChange:u,children:s.jsxs(Ct,{side:"bottom",className:"p-0 flex flex-col max-h-[80vh]",children:[s.jsx(wt,{className:"px-6 pt-6 pb-4 border-b border-border shrink-0",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(de,{icon:n.icon,name:n.title,size:"md",className:"shrink-0 shadow-sm",fallbackIcon:s.jsx(V,{})}),s.jsxs("div",{children:[s.jsxs(yt,{children:[n.title,s.jsxs(Q,{variant:"secondary",className:"ml-2 text-xs tabular-nums",children:["x",n.agents.length]})]}),s.jsxs(kt,{children:[n.agents.length," instances"]})]})]})}),s.jsx("div",{className:"divide-y overflow-auto",children:n.agents.map(a=>s.jsxs("div",{className:"flex items-center gap-3 px-6 py-3 hover:bg-muted/30 cursor-pointer transition-colors",onClick:()=>{u(!1),c(a.id)},children:[s.jsx(de,{icon:a.icon,name:a.title,size:"sm",className:"shrink-0",fallbackIcon:s.jsx(V,{})}),s.jsx("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:s.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:a.title})}),s.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground shrink-0",children:[s.jsx(he,{id:a.created_by,size:"3xs"}),s.jsx("span",{children:a.created_at?xe(new Date(a.created_at)):"—"})]}),s.jsxs(Ee,{children:[s.jsx(Re,{asChild:!0,children:s.jsx(E,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:is,children:s.jsx(Ke,{size:16})})}),s.jsxs(Ve,{align:"end",onClick:ns,children:[s.jsxs(F,{onClick:()=>{u(!1),c(a.id)},children:[s.jsx(Ge,{size:16}),"Open"]}),!me(a.id)&&s.jsxs(F,{variant:"destructive",onClick:()=>i(a),children:[s.jsx(ge,{size:16}),"Delete"]})]})]})]},a.id))})]})}):s.jsx(Ot,{open:g,onOpenChange:u,children:s.jsxs(Bt,{className:"sm:max-w-lg p-0 gap-0",children:[s.jsx(Et,{className:"px-6 pt-6 pb-4",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(de,{icon:n.icon,name:n.title,size:"md",className:"shrink-0 shadow-sm",fallbackIcon:s.jsx(V,{})}),s.jsxs("div",{children:[s.jsxs(Rt,{children:[n.title,s.jsxs(Q,{variant:"secondary",className:"ml-2 text-xs tabular-nums",children:["x",n.agents.length]})]}),s.jsxs(Vt,{children:[n.agents.length," instances"]})]})]})}),s.jsx("div",{className:"divide-y max-h-80 overflow-auto",children:n.agents.map(a=>s.jsxs("div",{className:"flex items-center gap-3 px-6 py-3 hover:bg-muted/30 cursor-pointer transition-colors",onClick:()=>{u(!1),c(a.id)},children:[s.jsx(de,{icon:a.icon,name:a.title,size:"sm",className:"shrink-0",fallbackIcon:s.jsx(V,{})}),s.jsx("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:s.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:a.title})}),s.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground shrink-0",children:[s.jsx(he,{id:a.created_by,size:"3xs"}),s.jsx("span",{children:a.created_at?xe(new Date(a.created_at)):"—"})]}),s.jsxs(Ee,{children:[s.jsx(Re,{asChild:!0,children:s.jsx(E,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:ss,children:s.jsx(Ke,{size:16})})}),s.jsxs(Ve,{align:"end",onClick:ts,children:[s.jsxs(F,{onClick:()=>{u(!1),c(a.id)},children:[s.jsx(Ge,{size:16}),"Open"]}),!me(a.id)&&s.jsxs(F,{variant:"destructive",onClick:()=>i(a),children:[s.jsx(ge,{size:16}),"Delete"]})]})]})]},a.id))})]})}),t[66]=g,t[67]=n.agents,t[68]=n.icon,t[69]=n.title,t[70]=k,t[71]=i,t[72]=c,t[73]=B):B=t[73];let O;return t[74]!==z||t[75]!==B?(O=s.jsxs(s.Fragment,{children:[z,B]}),t[74]=z,t[75]=B,t[76]=O):O=t[76],O}function ts(e){return e.stopPropagation()}function ss(e){return e.stopPropagation()}function ns(e){return e.stopPropagation()}function is(e){return e.stopPropagation()}function as(e,t){const n=t.updated_at??t.created_at,c=e.updated_at??e.created_at;return n?c?new Date(n)>new Date(c)?t:e:t:e}function rs(e){const t=ue.c(21),{count:n,total:c,onSelectAll:i,onDeselectAll:l,onDelete:r,onCancel:x}=e;if(n===0)return null;let g;t[0]!==n?(g=s.jsxs("span",{className:"text-sm font-medium tabular-nums",children:[n," selected"]}),t[0]=n,t[1]=g):g=t[1];let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("div",{className:"h-4 w-px bg-border"}),t[2]=u):u=t[2];let k;t[3]!==n||t[4]!==l||t[5]!==i||t[6]!==c?(k=n<c?s.jsxs(E,{variant:"ghost",size:"sm",onClick:i,children:["Select all (",c,")"]}):s.jsx(E,{variant:"ghost",size:"sm",onClick:l,children:"Clear selection"}),t[3]=n,t[4]=l,t[5]=i,t[6]=c,t[7]=k):k=t[7];let b;t[8]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"h-4 w-px bg-border"}),t[8]=b):b=t[8];let v;t[9]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(ge,{size:14}),t[9]=v):v=t[9];let d;t[10]!==r?(d=s.jsxs(E,{variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive",onClick:r,children:[v,"Delete"]}),t[10]=r,t[11]=d):d=t[11];let I;t[12]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx("div",{className:"h-4 w-px bg-border"}),t[12]=I):I=t[12];let S;t[13]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(dt,{size:14}),t[13]=S):S=t[13];let m;t[14]!==x?(m=s.jsxs(E,{variant:"ghost",size:"sm",onClick:x,children:[S,"Cancel"]}),t[14]=x,t[15]=m):m=t[15];let C;return t[16]!==g||t[17]!==k||t[18]!==d||t[19]!==m?(C=s.jsxs("div",{className:"fixed bottom-4 left-1/2 z-50 -translate-x-1/2 flex items-center gap-3 rounded-xl border border-border bg-background/95 backdrop-blur px-4 py-2.5 shadow-lg",children:[g,u,k,b,d,I,m]}),t[16]=g,t[17]=k,t[18]=d,t[19]=m,t[20]=C):C=t[20],C}function ls(e){const t=ue.c(37),{columns:n,grouped:c,sortKey:i,sortDirection:l,onSort:r,onRowClick:x,selectionMode:g,selectedIds:u,onToggleSelect:k,emptyState:b}=e;let v;t[0]===Symbol.for("react.memo_cache_sentinel")?(v=new Set,t[0]=v):v=t[0];const[d,I]=G.useState(v);let S;t[1]===Symbol.for("react.memo_cache_sentinel")?(S=p=>{I(f=>{const h=new Set(f);return h.has(p)?h.delete(p):h.add(p),h})},t[1]=S):S=t[1];const m=S;if(c.length===0&&b){let p;return t[2]!==b?(p=s.jsx("div",{className:"flex items-center justify-center h-full",children:b}),t[2]=b,t[3]=p):p=t[3],p}const C=n.length;let A;if(t[4]!==C||t[5]!==n||t[6]!==r||t[7]!==l||t[8]!==i){let p;t[10]!==C||t[11]!==r||t[12]!==l||t[13]!==i?(p=(f,h)=>{const $=i===f.id,z=h===C-1;return s.jsx(Gt,{className:K("px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider",z&&"w-8","group transition-colors select-none",f.sortable&&"hover:bg-accent cursor-pointer",f.cellClassName),onClick:f.sortable&&r?()=>r(f.id):void 0,children:s.jsxs("span",{className:"flex items-center gap-1",children:[f.header,f.sortable&&s.jsx("span",{className:"w-4 flex items-center justify-center",children:$&&l&&(l==="asc"?s.jsx(qt,{size:16,className:"text-muted-foreground"}):s.jsx(Lt,{size:16,className:"text-muted-foreground"}))})]})},f.id)},t[10]=C,t[11]=r,t[12]=l,t[13]=i,t[14]=p):p=t[14],A=n.map(p),t[4]=C,t[5]=n,t[6]=r,t[7]=l,t[8]=i,t[9]=A}else A=t[9];let P;t[15]!==A?(P=s.jsx(Ht,{className:"border-b-0",children:s.jsx(Oe,{className:"h-9 hover:bg-transparent border-b border-border",children:A})}),t[15]=A,t[16]=P):P=t[16];let M;if(t[17]!==n||t[18]!==d||t[19]!==c||t[20]!==x||t[21]!==k||t[22]!==u||t[23]!==g){let p;t[25]!==n||t[26]!==d||t[27]!==x||t[28]!==k||t[29]!==u||t[30]!==g?(p=f=>{if(f.type==="single"){const o=f.agent;return s.jsx(Oe,{className:K("group/data-row transition-colors border-b-0 hover:bg-accent/50 cursor-pointer",g&&u.has(o.id)&&"bg-primary/5"),onClick:()=>x(o),children:n.map(N=>s.jsx(U,{className:K("px-5 py-4 h-16 align-middle text-sm text-foreground",N.cellClassName),children:s.jsx("div",{className:"min-w-0 w-full truncate overflow-hidden whitespace-nowrap",children:N.render?N.render(o):null})},N.id))},o.id)}const h=f,$=d.has(h.key),z=h.agents.every(o=>u.has(o.id)),B=h.agents.some(o=>u.has(o.id)),O=mt(h.agents),a=h.agents.reduce(cs,h.agents[0]);return s.jsxs(G.Fragment,{children:[s.jsx(Oe,{className:"border-b-0 hover:bg-accent/50 cursor-pointer transition-colors",onClick:()=>m(h.key),children:n.map(o=>{const N=K("px-5 py-3 h-14 align-middle text-sm",o.cellClassName);if(o.id==="select")return s.jsx(U,{className:N,children:s.jsx(Be,{checked:z?!0:B?"indeterminate":!1,onCheckedChange:()=>{for(const _ of h.agents)z?u.has(_.id)&&k(_.id):u.has(_.id)||k(_.id)},onClick:os})},o.id);if(o.id==="title")return s.jsx(U,{className:N,children:s.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[s.jsx(de,{icon:h.icon,name:h.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:s.jsx(V,{size:16})}),s.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:h.title}),s.jsxs(Q,{variant:"secondary",className:"text-xs tabular-nums",children:["x",h.agents.length]})]})},o.id);if(o.id==="updated_by")return s.jsx(U,{className:N,children:s.jsx("div",{className:"flex items-center -space-x-1.5",children:O.map(_=>s.jsx(he,{id:_,size:"3xs",avatarOnly:O.length>1},_))})},o.id);if(o.id==="updated_at"){const _=a.updated_at??a.created_at;return s.jsx(U,{className:N,children:s.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:_?xe(new Date(_)):"—"})},o.id)}return o.id==="actions"?s.jsx(U,{className:N,children:s.jsx(Qt,{size:16,className:K("text-muted-foreground transition-transform",$&&"rotate-180")})},o.id):s.jsx(U,{className:N},o.id)})}),$&&h.agents.map(o=>s.jsx(Oe,{className:K("group/data-row transition-colors border-b-0 hover:bg-accent/50 cursor-pointer bg-muted/20",g&&u.has(o.id)&&"bg-primary/5"),onClick:()=>x(o),children:n.map(N=>s.jsx(U,{className:K("px-5 py-3 h-14 align-middle text-sm text-foreground",N.cellClassName,N.id==="title"&&"pl-12"),children:s.jsx("div",{className:"min-w-0 w-full truncate overflow-hidden whitespace-nowrap",children:N.render?N.render(o):null})},N.id))},o.id))]},h.key)},t[25]=n,t[26]=d,t[27]=x,t[28]=k,t[29]=u,t[30]=g,t[31]=p):p=t[31],M=c.map(p),t[17]=n,t[18]=d,t[19]=c,t[20]=x,t[21]=k,t[22]=u,t[23]=g,t[24]=M}else M=t[24];let D;t[32]!==M?(D=s.jsx(Ut,{children:M}),t[32]=M,t[33]=D):D=t[33];let T;return t[34]!==P||t[35]!==D?(T=s.jsx("div",{className:"flex-1 overflow-auto",children:s.jsxs(Ft,{className:"w-full border-collapse",children:[P,D]})}),t[34]=P,t[35]=D,t[36]=T):T=t[36],T}function os(e){return e.stopPropagation()}function cs(e,t){const n=t.updated_at??t.created_at,c=e.updated_at??e.created_at;return n?c?new Date(n)>new Date(c)?t:e:t:e}function ds(){const e=ue.c(130),{org:t}=ft(),n=pt();let c;e[0]!==t.slug?(c={namespace:t.slug,resource:"agents",defaultViewMode:"cards"},e[0]=t.slug,e[1]=c):c=e[1];const i=Tt(c),l=Pt(i);let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r={navigateOnCreate:!0},e[2]=r):r=e[2];const{createVirtualMCP:x,isCreating:g}=$t(r),u=It();let k;e[3]===Symbol.for("react.memo_cache_sentinel")?(k={mode:"idle"},e[3]=k):k=e[3];const[b,v]=G.useReducer(Zt,k),[d,I]=G.useState(!1);let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=new Set,e[4]=S):S=e[4];const[m,C]=G.useState(S),[A,P]=G.useState(!1);let M;e[5]===Symbol.for("react.memo_cache_sentinel")?(M=R=>{C(L=>{const w=new Set(L);return w.has(R)?w.delete(R):w.add(R),w})},e[5]=M):M=e[5];const D=M;let T;e[6]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{I(!1),C(new Set)},e[6]=T):T=e[6];const p=T,f=l;let h,$,z,B,O,a,o;if(e[7]!==u||e[8]!==A||e[9]!==x||e[10]!==b.mode||e[11]!==b.virtualMcp||e[12]!==f||e[13]!==g||e[14]!==i||e[15]!==n||e[16]!==t.slug||e[17]!==m||e[18]!==d||e[19]!==l){const R=Yt(f),L=l.length;let w;e[27]!==l?(w=l.filter(ks),e[27]=l,e[28]=w):w=e[28];const ht=w.length;let W;e[29]!==l?(W=l.filter(ys),e[29]=l,e[30]=W):W=e[30];let je;e[31]!==w.length||e[32]!==W.length||e[33]!==l.length?(je={total:L,active:ht,inactive:W.length},e[31]=w.length,e[32]=W.length,e[33]=l.length,e[34]=je):je=e[34];const q=je;let be;e[35]!==u||e[36]!==b.mode||e[37]!==b.virtualMcp?(be=async()=>{if(b.mode!=="deleting")return;const j=b.virtualMcp.id;if(v({type:"close"}),!(!j||me(j)))try{await u.delete.mutateAsync(j)}catch{}},e[35]=u,e[36]=b.mode,e[37]=b.virtualMcp,e[38]=be):be=e[38];const He=be;let ve;e[39]!==u||e[40]!==m?(ve=async()=>{P(!1);let j=0;for(const y of m)if(!me(y))try{await u.delete.mutateAsync(y),j++}catch{}gt.success(`Deleted ${j} agent${j!==1?"s":""}`),p()},e[39]=u,e[40]=m,e[41]=ve):ve=e[41];const Ue=ve;let Ne;e[42]!==n||e[43]!==t.slug||e[44]!==d?(Ne=j=>{if(d){D(j);return}n({to:"/$org/$project/agents/$agentId",params:{org:t.slug,project:jt,agentId:j}})},e[42]=n,e[43]=t.slug,e[44]=d,e[45]=Ne):Ne=e[45];const J=Ne;let X;e[46]!==m||e[47]!==d?(X=d?[{id:"select",header:"",render:j=>s.jsx(Be,{checked:m.has(j.id),onCheckedChange:()=>D(j.id),onClick:ws}),cellClassName:"w-10 shrink-0"}]:[],e[46]=m,e[47]=d,e[48]=X):X=e[48];let Ce,we,ye,ke,Se,De;e[49]===Symbol.for("react.memo_cache_sentinel")?(Ce={id:"title",header:"Name",render:Cs,cellClassName:"w-48 min-w-0 shrink-0",sortable:!0},we={id:"description",header:"Description",render:Ns,cellClassName:"flex-1 min-w-0",wrap:!0,sortable:!0},ye={id:"connections",header:"Connections",render:bs,cellClassName:"w-28 shrink-0"},ke={id:"status",header:"Status",render:js,cellClassName:"w-24 shrink-0"},Se={id:"updated_by",header:"Updated by",render:gs,cellClassName:"w-32 shrink-0",sortable:!0},De={id:"updated_at",header:"Updated",render:ps,cellClassName:"max-w-24 w-24 shrink-0",sortable:!0},e[49]=Ce,e[50]=we,e[51]=ye,e[52]=ke,e[53]=Se,e[54]=De):(Ce=e[49],we=e[50],ye=e[51],ke=e[52],Se=e[53],De=e[54]);let Y;e[55]!==J?(Y={id:"actions",header:"",render:j=>s.jsxs(Ee,{children:[s.jsx(Re,{asChild:!0,children:s.jsx(E,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:fs,children:s.jsx(Ke,{size:20})})}),s.jsxs(Ve,{align:"end",onClick:us,children:[s.jsxs(F,{onClick:y=>{y.stopPropagation(),J(j.id)},children:[s.jsx(Ge,{size:16}),"Open"]}),!me(j.id)&&s.jsxs(F,{variant:"destructive",onClick:y=>{y.stopPropagation(),v({type:"delete",virtualMcp:j})},children:[s.jsx(ge,{size:16}),"Delete"]})]})]}),cellClassName:"w-12 shrink-0"},e[55]=J,e[56]=Y):Y=e[56];let _e;e[57]!==X||e[58]!==Y?(_e=[...X,Ce,we,ye,ke,Se,De,Y],e[57]=X,e[58]=Y,e[59]=_e):_e=e[59];const xt=_e;let ze;e[60]!==x||e[61]!==g||e[62]!==d?(ze=s.jsx("div",{className:"flex items-center gap-2",children:d?s.jsxs(E,{variant:"ghost",size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",onClick:p,children:[s.jsx(dt,{size:14}),"Cancel"]}):s.jsxs(s.Fragment,{children:[s.jsxs(E,{variant:"outline",size:"sm",className:"hidden sm:flex h-7 w-7 px-0 sm:w-auto sm:px-3 rounded-lg text-sm font-medium",onClick:()=>I(!0),children:[s.jsx(Jt,{size:14}),s.jsx("span",{className:"hidden sm:inline",children:"Select"})]}),s.jsxs(E,{onClick:x,size:"sm",className:"h-7 w-7 px-0 sm:w-auto sm:px-3 rounded-lg text-sm font-medium",disabled:g,children:[s.jsx(Xe,{size:14}),s.jsx("span",{className:"hidden sm:inline",children:g?"Creating...":"Create Agent"})]})]})}),e[60]=x,e[61]=g,e[62]=d,e[63]=ze):ze=e[63];const Fe=ze;$=pe;const Le=b.mode==="deleting";let Ae;e[64]===Symbol.for("react.memo_cache_sentinel")?(Ae=j=>!j&&v({type:"close"}),e[64]=Ae):Ae=e[64];let Me;e[65]===Symbol.for("react.memo_cache_sentinel")?(Me=s.jsx(Ze,{children:"Delete Agent?"}),e[65]=Me):Me=e[65];const qe=b.mode==="deleting"&&b.virtualMcp.title;let Z;e[66]!==qe?(Z=s.jsxs(et,{children:[Me,s.jsxs(tt,{children:["This action cannot be undone. This will permanently delete"," ",s.jsx("span",{className:"font-medium text-foreground",children:qe}),"."]})]}),e[66]=qe,e[67]=Z):Z=e[67];let Te;e[68]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsx(st,{children:"Cancel"}),e[68]=Te):Te=e[68];let ee;e[69]!==He?(ee=s.jsxs(nt,{children:[Te,s.jsx(it,{onClick:He,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[69]=He,e[70]=ee):ee=e[70];let te;e[71]!==Z||e[72]!==ee?(te=s.jsxs(at,{children:[Z,ee]}),e[71]=Z,e[72]=ee,e[73]=te):te=e[73],e[74]!==Le||e[75]!==te?(O=s.jsx(rt,{open:Le,onOpenChange:Ae,children:te}),e[74]=Le,e[75]=te,e[76]=O):O=e[76];const Je=m.size!==1?"s":"";let se;e[77]!==m.size||e[78]!==Je?(se=s.jsxs(Ze,{children:["Delete ",m.size," agent",Je,"?"]}),e[77]=m.size,e[78]=Je,e[79]=se):se=e[79];let $e;e[80]===Symbol.for("react.memo_cache_sentinel")?($e=s.jsx(tt,{children:"This action cannot be undone. This will permanently delete the selected agents."}),e[80]=$e):$e=e[80];let ne;e[81]!==se?(ne=s.jsxs(et,{children:[se,$e]}),e[81]=se,e[82]=ne):ne=e[82];let Pe;e[83]===Symbol.for("react.memo_cache_sentinel")?(Pe=s.jsx(st,{children:"Cancel"}),e[83]=Pe):Pe=e[83];let ie;e[84]!==Ue?(ie=s.jsxs(nt,{children:[Pe,s.jsx(it,{onClick:Ue,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[84]=Ue,e[85]=ie):ie=e[85];let ae;e[86]!==ne||e[87]!==ie?(ae=s.jsxs(at,{children:[ne,ie]}),e[86]=ne,e[87]=ie,e[88]=ae):ae=e[88],e[89]!==A||e[90]!==ae?(a=s.jsx(rt,{open:A,onOpenChange:P,children:ae}),e[89]=A,e[90]=ae,e[91]=a):a=e[91];const Qe=q.active>0&&` · ${q.active} active`,We=q.inactive>0&&` · ${q.inactive} inactive`;let re;e[92]!==q.total||e[93]!==Qe||e[94]!==We?(re=s.jsx(pe.Header.Left,{children:s.jsx(St,{children:s.jsx(Dt,{children:s.jsx(_t,{children:s.jsxs(zt,{className:"flex items-center gap-2",children:["Agents",s.jsxs("span",{className:"hidden sm:inline text-xs font-normal text-muted-foreground tabular-nums",children:[q.total," total",Qe,We]})]})})})})}),e[92]=q.total,e[93]=Qe,e[94]=We,e[95]=re):re=e[95];let Ie;e[96]===Symbol.for("react.memo_cache_sentinel")?(Ie=[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"updated_by",label:"Updated by"},{id:"updated_at",label:"Updated"}],e[96]=Ie):Ie=e[96];let le;e[97]!==i.handleSort||e[98]!==i.setViewMode||e[99]!==i.sortDirection||e[100]!==i.sortKey||e[101]!==i.viewMode?(le=s.jsx(bt,{viewMode:i.viewMode,onViewModeChange:i.setViewMode,sortKey:i.sortKey,sortDirection:i.sortDirection,onSort:i.handleSort,sortOptions:Ie}),e[97]=i.handleSort,e[98]=i.setViewMode,e[99]=i.sortDirection,e[100]=i.sortKey,e[101]=i.viewMode,e[102]=le):le=e[102];let oe;e[103]!==Fe||e[104]!==le?(oe=s.jsxs(pe.Header.Right,{children:[le,Fe]}),e[103]=Fe,e[104]=le,e[105]=oe):oe=e[105],e[106]!==re||e[107]!==oe?(o=s.jsxs(pe.Header,{children:[re,oe]}),e[106]=re,e[107]=oe,e[108]=o):o=e[108];let ce;e[109]!==i?(ce=j=>{j.key==="Escape"&&(i.setSearch(""),j.target.blur())},e[109]=i,e[110]=ce):ce=e[110],e[111]!==i.search||e[112]!==i.setSearch||e[113]!==ce?(z=s.jsx("div",{className:"flex items-center gap-3 px-5 pb-0",children:s.jsx("div",{className:"flex-1",children:s.jsx(vt,{value:i.search,onChange:i.setSearch,placeholder:"Search for an agent...",onKeyDown:ce})})}),e[111]=i.search,e[112]=i.setSearch,e[113]=ce,e[114]=z):z=e[114],h=pe.Content,B=i.viewMode==="cards"?s.jsx("div",{className:"flex-1 overflow-auto p-5",children:f.length===0?s.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:s.jsx(Ye,{image:s.jsx(V,{size:48,className:"text-muted-foreground"}),title:i.search?"No agents found":"No agents yet",description:i.search?`No agents match "${i.search}"`:"Create an agent to aggregate tools from multiple Connections.",actions:!i.search&&s.jsxs(E,{size:"sm",onClick:x,disabled:g,children:[s.jsx(Xe,{size:14}),g?"Creating...":"Create Agent"]})})}):s.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:R.map(j=>{if(j.type==="group")return s.jsx(es,{group:j,onNavigate:J,onDelete:fe=>v({type:"delete",virtualMcp:fe}),selectionMode:d,selectedIds:m,onToggleSelect:D},j.key);const y=j.agent;return s.jsxs("div",{className:"relative",children:[d&&s.jsx("div",{className:"absolute top-3 left-3 z-10",children:s.jsx(Be,{checked:m.has(y.id),onCheckedChange:()=>D(y.id)})}),s.jsx(ct,{connection:{id:y.id??"",title:y.title,description:y.description,icon:y.icon,status:y.status},fallbackIcon:s.jsx(V,{}),onClick:()=>J(y.id),className:K(d&&m.has(y.id)&&"ring-2 ring-primary"),footer:s.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground w-full min-w-0",children:[s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(he,{id:y.updated_by??y.created_by,size:"3xs"})}),s.jsx("span",{className:"shrink-0 ml-2",children:y.updated_at?xe(new Date(y.updated_at)):"—"})]}),headerActions:d?void 0:s.jsxs(Ee,{children:[s.jsx(Re,{asChild:!0,children:s.jsx(E,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:xs,children:s.jsx(Ke,{size:20})})}),s.jsxs(Ve,{align:"end",onClick:hs,children:[s.jsxs(F,{onClick:fe=>{fe.stopPropagation(),J(y.id)},children:[s.jsx(Ge,{size:16}),"Open"]}),!me(y.id)&&s.jsxs(F,{variant:"destructive",onClick:fe=>{fe.stopPropagation(),v({type:"delete",virtualMcp:y})},children:[s.jsx(ge,{size:16}),"Delete"]})]})]})})]},y.id)})})}):s.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:s.jsx("div",{className:"flex-1 overflow-auto min-w-0",children:R.length===0?s.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:s.jsx(Ye,{image:s.jsx(V,{size:48,className:"text-muted-foreground"}),title:i.search?"No agents found":"No agents yet",description:i.search?`No agents match "${i.search}"`:"Create an agent to aggregate tools from multiple Connections.",actions:!i.search&&s.jsxs(E,{size:"sm",onClick:x,disabled:g,children:[s.jsx(Xe,{size:14}),g?"Creating...":"Create Agent"]})})}):s.jsx("div",{className:"min-w-[1000px]",children:s.jsx(ls,{columns:xt,grouped:R,sortKey:i.sortKey,sortDirection:i.sortDirection,onSort:i.handleSort,onRowClick:j=>J(j.id),selectionMode:d,selectedIds:m,onToggleSelect:D})})})}),e[7]=u,e[8]=A,e[9]=x,e[10]=b.mode,e[11]=b.virtualMcp,e[12]=f,e[13]=g,e[14]=i,e[15]=n,e[16]=t.slug,e[17]=m,e[18]=d,e[19]=l,e[20]=h,e[21]=$,e[22]=z,e[23]=B,e[24]=O,e[25]=a,e[26]=o}else h=e[20],$=e[21],z=e[22],B=e[23],O=e[24],a=e[25],o=e[26];let N;e[115]!==h||e[116]!==B?(N=s.jsx(h,{children:B}),e[115]=h,e[116]=B,e[117]=N):N=e[117];let _;e[118]!==f||e[119]!==m.size||e[120]!==d?(_=d&&s.jsx(rs,{count:m.size,total:f.length,onSelectAll:()=>C(new Set(f.map(ms))),onDeselectAll:()=>C(new Set),onDelete:()=>P(!0),onCancel:p}),e[118]=f,e[119]=m.size,e[120]=d,e[121]=_):_=e[121];let H;return e[122]!==$||e[123]!==z||e[124]!==N||e[125]!==_||e[126]!==O||e[127]!==a||e[128]!==o?(H=s.jsxs($,{children:[O,a,o,z,N,_]}),e[122]=$,e[123]=z,e[124]=N,e[125]=_,e[126]=O,e[127]=a,e[128]=o,e[129]=H):H=e[129],H}function ms(e){return e.id}function hs(e){return e.stopPropagation()}function xs(e){return e.stopPropagation()}function us(e){return e.stopPropagation()}function fs(e){return e.stopPropagation()}function ps(e){return s.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:e.updated_at?xe(new Date(e.updated_at)):"—"})}function gs(e){return s.jsx(he,{id:e.updated_by??e.created_by,size:"3xs"})}function js(e){return s.jsx(Xt,{status:e.status})}function bs(e){return s.jsx(G.Suspense,{fallback:s.jsx(lt.Fallback,{}),children:s.jsx(lt,{connectionIds:e.connections.map(vs),maxVisibleIcons:2})})}function vs(e){return e.connection_id}function Ns(e){return s.jsx("span",{className:"text-sm text-foreground line-clamp-2",children:e.description||"—"})}function Cs(e){return s.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[s.jsx(de,{icon:e.icon,name:e.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:s.jsx(V,{size:16})}),s.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})]})}function ws(e){return e.stopPropagation()}function ys(e){return e.status==="inactive"}function ks(e){return e.status==="active"}function kn(){const e=ue.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ut,{children:s.jsx(G.Suspense,{fallback:s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(Wt,{size:32,className:"animate-spin text-muted-foreground"})}),children:s.jsx(ds,{})})}),e[0]=t):t=e[0],t}export{kn as default};
|
package/dist/client/assets/{ai-providers-logos-DGTpC_MW.js → ai-providers-logos-C_voEDmL.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,u as h,x as P,K as g}from"./index-
|
|
1
|
+
import{c as b,u as h,x as P,K as g}from"./index-DMmNh7jR.js";import{u as w}from"./useQuery-B-AaJTeZ.js";import{a as u,u as _}from"./constants-DclZTqHf.js";function A(){const c=b.c(9),{locator:e,org:i}=h();let o;c[0]!==i.id?(o={connectionId:u,orgId:i.id},c[0]=i.id,c[1]=o):o=c[1];const d=_(o);let a;c[2]!==e?(a=g.aiProviders(e),c[2]=e,c[3]=a):a=c[3];let s;c[4]!==d?(s=async()=>(await d.callTool({name:"AI_PROVIDERS_LIST",arguments:{}})).structuredContent,c[4]=d,c[5]=s):s=c[5];let t;c[6]!==a||c[7]!==s?(t={queryKey:a,staleTime:1/0,queryFn:s},c[6]=a,c[7]=s,c[8]=t):t=c[8];const{data:n}=P(t);return n}function q(){const c=b.c(11),{locator:e,org:i}=h();let o;c[0]!==i.id?(o={connectionId:u,orgId:i.id},c[0]=i.id,c[1]=o):o=c[1];const d=_(o);let a;c[2]!==e?(a=g.aiProviderKeys(e),c[2]=e,c[3]=a):a=c[3];let s;c[4]!==d?(s=async()=>(await d.callTool({name:"AI_PROVIDER_KEY_LIST",arguments:{}})).structuredContent??null,c[4]=d,c[5]=s):s=c[5];let t;c[6]!==a||c[7]!==s?(t={queryKey:a,staleTime:6e4,queryFn:s},c[6]=a,c[7]=s,c[8]=t):t=c[8];const{data:n}=P(t);let m;return c[9]!==n?.keys?(m=n?.keys??[],c[9]=n?.keys,c[10]=m):m=c[10],m}function C(c){const e=b.c(17),{locator:i,org:o}=h();let d;e[0]!==o.id?(d={connectionId:u,orgId:o.id},e[0]=o.id,e[1]=d):d=e[1];const a=_(d);let s;e[2]!==c||e[3]!==i?(s=g.aiProviderModels(i,c??""),e[2]=c,e[3]=i,e[4]=s):s=e[4];const t=!!c;let n;e[5]!==a||e[6]!==c?(n=async()=>(await a.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:c}})).structuredContent??null,e[5]=a,e[6]=c,e[7]=n):n=e[7];let m;e[8]!==s||e[9]!==t||e[10]!==n?(m={queryKey:s,enabled:t,staleTime:6e4,queryFn:n},e[8]=s,e[9]=t,e[10]=n,e[11]=m):m=e[11];const{data:f,isLoading:y}=w(m);let l;e[12]!==f?.models?(l=f?.models??[],e[12]=f?.models,e[13]=l):l=e[13];const v=!!c&&y;let p;return e[14]!==l||e[15]!==v?(p={models:l,isLoading:v},e[14]=l,e[15]=v,e[16]=p):p=e[16],p}function x(c){const e=b.c(13),{locator:i,org:o}=h();let d;e[0]!==o.id?(d={connectionId:u,orgId:o.id},e[0]=o.id,e[1]=d):d=e[1];const a=_(d);let s;e[2]!==c||e[3]!==i?(s=g.aiProviderModels(i,c),e[2]=c,e[3]=i,e[4]=s):s=e[4];let t;e[5]!==a||e[6]!==c?(t=async()=>(await a.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:c}})).structuredContent??null,e[5]=a,e[6]=c,e[7]=t):t=e[7];let n;e[8]!==s||e[9]!==t?(n={queryKey:s,staleTime:6e4,queryFn:t},e[8]=s,e[9]=t,e[10]=n):n=e[10];const{data:m}=P(n);let f;return e[11]!==m?.models?(f=m?.models??[],e[11]=m?.models,e[12]=f):f=e[12],f}const r="https://assets.decocache.com/decocms/bc2ca488-2bae-4aac-8d3e-ead262dad764/agent.png",L="https://assets.decocache.com/decocms/b2e2f64f-6025-45f7-9e8c-3b3ebdd073d8/openrouter_logojpg.jpg",S="https://assets.decocache.com/decocms/4fa4f3ed-1bf3-4e5a-8d05-4f3787df5966/anthropic-icon-tdvkiqisswbrmtkiygb0ia.webp";function D(c){const e=c.modelId.includes("/")?c.modelId.split("/")[0]:null;return e&&I[e]||I[c.providerId]||r}const I={"aion-labs":"https://assets.decocache.com/decocms/6da18da8-0160-4b85-8bca-84eefffebe12/images-(6).png",ai21:"https://assets.decocache.com/decocms/5d8388e9-027b-4b23-b816-90cee1cd28ad/images-(5).png",alfredpros:"https://assets.decocache.com/decocms/76eaa620-ce73-43d6-8817-272c1d498b53/images-(19).png",alibaba:"https://assets.decocache.com/decocms/4d113b13-5412-4d3b-96ec-3c2e7c1f7a5f/images-(8).png",allenai:"https://assets.decocache.com/decocms/21d6071a-e0da-4919-9f35-902b1d0b85b8/allen.png",alpindale:"https://assets.decocache.com/decocms/76eaa620-ce73-43d6-8817-272c1d498b53/images-(19).png",amazon:"https://assets.decocache.com/decocms/31e7b260-6cf0-4753-bb32-bd062b15c5f1/Amazon_icon.png",anthropic:S,"anthracite-org":r,"arcee-ai":"https://assets.decocache.com/decocms/ee325839-6acc-48dc-8cf7-8bab74698015/126496414.png",baidu:"https://assets.decocache.com/decocms/cf4c19f1-39b5-499e-87b7-e16dc5da2b50/images-(9).png",bytedance:"https://assets.decocache.com/decocms/1c111a26-8e1d-4a48-9d3c-fe9fb728af06/images-(18).png","bytedance-seed":"https://assets.decocache.com/decocms/1c111a26-8e1d-4a48-9d3c-fe9fb728af06/images-(18).png",cognitivecomputations:r,cohere:"https://assets.decocache.com/decocms/c942091b-b3bf-4c46-af37-fc2c1086d9f7/cohere-color.png",deepcogito:"https://assets.decocache.com/decocms/4ee77a8f-a36a-4933-8cdf-d2e8676b88d8/images-(13).png",deepseek:"https://assets.decocache.com/decocms/3611e8ac-4cad-4b0e-a1f8-8f791288ce03/images-(1).png",eleutherai:"https://assets.decocache.com/decocms/76eaa620-ce73-43d6-8817-272c1d498b53/images-(19).png",essentialai:"https://assets.decocache.com/decocms/c5afc6de-1e41-457e-a6dd-91810d92541e/images-(1).jpeg",google:"https://assets.decocache.com/webdraw/17df85af-1578-42ef-ae07-4300de0d1723/gemini.svg",gryphe:"https://assets.decocache.com/decocms/a5503d3b-2056-47f2-a76c-611b7416bdc8/6798c7dccaaadd0a1318d66a_66f41d1fd146c3b0b9c76453_gryphe-logo.webp","ibm-granite":"https://assets.decocache.com/decocms/2c50018d-6f70-472d-be30-65a5e8e249f0/images-(10).png",inflection:r,inception:"https://assets.decocache.com/decocms/ff9822b8-a914-482b-bd7d-b0e46b9d5a56/images-(6).jpeg",kwaipilot:"https://assets.decocache.com/decocms/cd576e1d-1184-45ba-8162-cf2bd06d684f/images-(14).png",liquid:r,mancer:"https://assets.decocache.com/decocms/79762356-a0c5-4546-b268-ad4a0b51db51/Screenshot-2026-01-08-at-18.49.42.png",meituan:r,"meta-llama":"https://assets.decocache.com/decocms/56421cb3-488c-4cc3-83a5-16d9a303850e/images-(11).png",microsoft:"https://assets.decocache.com/decocms/0e352a51-4ea5-4f35-802e-fd82bf266683/images-(12).png",minimax:"https://assets.decocache.com/decocms/f362cc4f-7ccc-4317-afda-92e6f348fdfd/images-(2).png",mistralai:"https://assets.decocache.com/decocms/73ab9971-bbbc-40dc-99a3-5fddd9a0f340/images-(3).png",morph:r,moonshotai:"https://assets.decocache.com/decocms/b8abfea7-e8b4-4b72-b653-fdf11c9e3b66/moonshot.png",neversleep:r,"nex-agi":"https://assets.decocache.com/decocms/d2ada265-160d-4959-981d-e90210d71713/241570229.jpeg",nousresearch:"https://assets.decocache.com/decocms/496acb3d-9b5d-4759-b764-16c9ca7eb6b2/nousresearch.png",nvidia:"https://assets.decocache.com/decocms/ecca3238-fa79-4648-bb55-738f13a4293f/nvidia-7.svg",opengvlab:"https://assets.decocache.com/decocms/fb2d0c32-85f1-410a-87f4-9731dfafd248/images-(2).jpeg",openai:"https://assets.decocache.com/webdraw/15dc381c-23b4-4f6b-9ceb-9690f77a7cf5/openai.svg",openrouter:L,perplexity:"https://assets.decocache.com/decocms/3a134746-f370-4089-a3c9-fe545be0441c/images-(15).png","prime-intellect":r,qwen:"https://assets.decocache.com/decocms/ab94208c-4439-4aec-a06c-c51747120e43/Qwen_logo.svg.png",raifle:r,relace:"https://assets.decocache.com/decocms/c5dbae73-3ce0-40ca-8433-c38783fb13a9/Screenshot-2026-01-08-at-18.52.09.png",sao10k:"https://assets.decocache.com/decocms/76eaa620-ce73-43d6-8817-272c1d498b53/images-(19).png","stepfun-ai":"https://assets.decocache.com/decocms/8892b883-4905-444e-b554-648565dc7fab/images-(16).png",switchpoint:"https://assets.decocache.com/decocms/0319d595-e0dd-4d8e-a0a3-b20ff4cbddcb/images-(4).jpeg",tencent:"https://assets.decocache.com/decocms/80f2f7bd-f9ea-4fcf-b89c-c58823a389ed/images-(3).jpeg",thedrummer:"https://assets.decocache.com/decocms/5c6c09fc-cf9d-43a1-a1c3-4a1ef367b824/images-(17).png",thudm:r,tngtech:"https://assets.decocache.com/decocms/5b5648ad-f858-4687-b67b-212cf186b62d/images-(7).png",undi95:r,xiaomi:"https://assets.decocache.com/decocms/2d7191b7-fc80-4867-a431-6d443d691cfc/images-(4).png","x-ai":"https://assets.decocache.com/webdraw/7a8003ff-8f2d-4988-8693-3feb20e87eca/xai.svg","z-ai":"https://assets.decocache.com/decocms/12a0877f-c978-4880-88d1-09097e606e2f/Z.ai_(company_logo).svg.png"};export{r as D,I as P,A as a,q as b,x as c,D as g,C as u};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{j as r,
|
|
1
|
+
import{j as r,ab as w,r as n,_ as m,bc as O,ac as M,a0 as I,ad as z,ae as F,ah as A,bd as D,af as L,be as G,a3 as k,ai as H,ag as V,c as i,D as p,bf as v}from"./index-DMmNh7jR.js";var x="AlertDialog",[W]=k(x,[D]),d=D(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(w,{...a,...t,modal:!0})};N.displayName=x;var Y="AlertDialogTrigger",y=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(H,{...o,...a,ref:e})});y.displayName=Y;var q="AlertDialogPortal",_=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(L,{...a,...t})};_.displayName=q;var B="AlertDialogOverlay",j=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(V,{...o,...a,ref:e})});j.displayName=B;var g="AlertDialogContent",[J,K]=W(g),Q=G("AlertDialogContent"),b=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=n.useRef(null),T=m(e,c),u=n.useRef(null);return r.jsx(O,{contentName:g,titleName:h,docsSlug:"alert-dialog",children:r.jsx(J,{scope:t,cancelRef:u,children:r.jsxs(M,{role:"alertdialog",...s,...o,ref:T,onOpenAutoFocus:I(o.onOpenAutoFocus,f=>{f.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault(),children:[r.jsx(Q,{children:a}),r.jsx(X,{contentRef:c})]})})})});b.displayName=g;var h="AlertDialogTitle",$=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(z,{...o,...a,ref:e})});$.displayName=h;var E="AlertDialogDescription",R=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(F,{...o,...a,ref:e})});R.displayName=E;var U="AlertDialogAction",C=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(A,{...o,...a,ref:e})});C.displayName=U;var S="AlertDialogCancel",P=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,{cancelRef:o}=K(S,t),s=d(t),c=m(e,o);return r.jsx(A,{...s,...a,ref:c})});P.displayName=S;var X=({contentRef:l})=>{const e=`\`${g}\` requires a description for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
|
-
You can add a description to the \`${g}\` by passing a \`${
|
|
3
|
+
You can add a description to the \`${g}\` by passing a \`${E}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
4
|
|
|
5
5
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${g}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
6
6
|
|
|
7
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return n.useEffect(()=>{document.getElementById(l.current?.getAttribute("aria-describedby"))||console.warn(e)},[e,l]),null},Z=N,ee=y,te=
|
|
7
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return n.useEffect(()=>{document.getElementById(l.current?.getAttribute("aria-describedby"))||console.warn(e)},[e,l]),null},Z=N,ee=y,te=_,ae=j,oe=b,le=C,se=P,re=$,ie=R;function pe(l){const e=i.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=r.jsx(Z,{"data-slot":"alert-dialog",...t}),e[2]=t,e[3]=a):a=e[3],a}function ge(l){const e=i.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=r.jsx(ee,{"data-slot":"alert-dialog-trigger",...t}),e[2]=t,e[3]=a):a=e[3],a}function ne(l){const e=i.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=r.jsx(te,{"data-slot":"alert-dialog-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function ce(l){const e=i.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(ae,{"data-slot":"alert-dialog-overlay",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function fe(l){const e=i.c(9);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(ce,{}),e[3]=o):o=e[3];let s;e[4]!==t?(s=p("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-xl border p-6 shadow-lg duration-200 sm:max-w-lg",t),e[4]=t,e[5]=s):s=e[5];let c;return e[6]!==a||e[7]!==s?(c=r.jsxs(ne,{children:[o,r.jsx(oe,{"data-slot":"alert-dialog-content",className:s,...a})]}),e[6]=a,e[7]=s,e[8]=c):c=e[8],c}function ue(l){const e=i.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("flex flex-col gap-2 text-center sm:text-left",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx("div",{"data-slot":"alert-dialog-header",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function me(l){const e=i.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx("div",{"data-slot":"alert-dialog-footer",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function Ae(l){const e=i.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("text-lg font-semibold",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(re,{"data-slot":"alert-dialog-title",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function De(l){const e=i.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("text-muted-foreground text-sm",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(ie,{"data-slot":"alert-dialog-description",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function ve(l){const e=i.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p(v(),t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(le,{className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function xe(l){const e=i.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p(v({variant:"outline"}),t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(se,{className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}export{xe as A,fe as a,ue as b,Ae as c,De as d,me as e,pe as f,ge as g,ve as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,g as m,j as t,A as f,S as h,k as x,l as r,m as p,N as u}from"./index-
|
|
1
|
+
import{c as l,g as m,j as t,A as f,S as h,k as x,l as r,m as p,N as u}from"./index-DMmNh7jR.js";function d(){const e=l.c(1),a=window.location.pathname+window.location.search;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(u,{to:"/login",search:{next:a},replace:!0}),e[0]=n):n=e[0],n}function g(){const e=l.c(6);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={from:"/auth/$pathname"},e[0]=a):a=e[0];const{pathname:n}=m(a);if(n==="accept-invitation"){let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(f,{children:t.jsx(h,{})}),e[1]=c):c=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(x,{children:t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(r,{pathname:"accept-invitation"})})}),e[2]=i):i=e[2];let o;return e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsxs(t.Fragment,{children:[c,i,t.jsx(p,{children:t.jsx(d,{})})]}),e[3]=o):o=e[3],o}let s;return e[4]!==n?(s=t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(r,{pathname:n})}),e[4]=n,e[5]=s):s=e[5],s}export{g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as B,g as ve,e as be,u as ae,r as T,j as t,G as _e,O as X,v as I,B as U,t as Ce,H as Ne,w as Se,K as q}from"./index-DMmNh7jR.js";import{E as le}from"./empty-state-BuGXY27l.js";import{V as ce,a as we}from"./layout-VG2uM_nk.js";import{S as ke}from"./save-actions-Z-_7bu1u.js";import{u as De}from"./ai-providers-logos-C_voEDmL.js";import{T as Ae,a as Te,M as Ie,S as Z}from"./task-status-CrO2oj_v.js";import{V as ee}from"./select-virtual-mcp-DsImheli.js";import{I as Me}from"./integration-icon-Dyr7fOYU.js";import{U as Ee}from"./user-8V0wpye0.js";import{c as $e,b as ze,d as Oe,e as Q,f as Re}from"./use-automations-D-X6Oij9.js";import{a as de}from"./index-DYAF-Vgt.js";import{b as me,d as ue,c as pe,A as fe,e as xe,h as he,a as ge,f as ye}from"./alert-dialog-qmvoIx9J.js";import{b as te,d as Pe,c as Ve,e as Fe,B as Le,a as Ue}from"./breadcrumb-C8hDXS86.js";import{I as Be}from"./input-Bt_nejZh.js";import{c as se,a as He,d as Ke,e as Ge,f as We,b as qe,D as Qe}from"./dropdown-menu-BcNYk9_F.js";import{P as re,a as ne,b as oe}from"./popover-CF2iI6mL.js";import{S as Je}from"./switch-CoYIum7D.js";import{T as Ye,a as Xe,b as Ze}from"./tooltip-DHJtaI_Z.js";import{u as et}from"./useQuery-B-AaJTeZ.js";import{i as tt,u as st,a as rt}from"./constants-DclZTqHf.js";import{b as nt}from"./use-virtual-mcp-DCxXK_bv.js";import{i as ot}from"./ArrowUp-B4DKDJey.js";import{s as H}from"./Clock-Cu62NiMl.js";import{i as it}from"./Edit01-Bh7u1xp-.js";import{i as G}from"./Loading01-D0sCOwf7.js";import{s as at}from"./Plus-Dcf0Y3wA.js";import{s as lt}from"./Trash01-Cs72bTP6.js";import{t as ie}from"./Users03-CGvJARf5.js";import{s as J}from"./XClose-BxUlnJUs.js";import{a as je,t as ct,b as dt}from"./context-BFi-zuf6.js";import{f as mt}from"./formatDistanceToNow-Cb2QZZJn.js";import"./Save01-CA0I32a6.js";import"./skeleton-BvrwcS3X.js";import"./spinner-CSLYV8gq.js";import"./use-mcp-prompts-BDRKUj7D.js";import"./dialog-DzGwvQ_K.js";import"./X-CD9ZB6hw.js";import"./form-DBjkdSps.js";import"./label-DTNkd20e.js";import"./index-BLNBD7Tl.js";import"./usage-BW6ztpN6.js";import"./ChevronDown-t60R5l2B.js";import"./Lock01-DFfVnVtc.js";import"./use-copy-DkDz3lds.js";import"./AlertCircle-DcuzO-dN.js";import"./select-hHfKwVbN.js";import"./ChevronUp-l7iXrppT.js";import"./index-COFAW4F5.js";import"./Check-5nIJP_0B.js";import"./org-ai-providers-CUAlOa9f.js";import"./useMutation-DrLoVqQ7.js";import"./EyeOff--TPuyP7J.js";import"./Eye-D3Q7o9JY.js";import"./Key01-CjhxaGrC.js";import"./card-CoyaoT6W.js";import"./toggle-group-C20N8vss.js";import"./avatar-DeGeJRAR.js";import"./ArrowLeft-B0zQkfl0.js";import"./tabs-sTqc1_U2.js";import"./checkbox-D5DFx9da.js";import"./drawer-CAX2URBi.js";import"./AlignLeft-DH6vJ97u.js";import"./Image01-RwxwuRZg.js";import"./RefreshCcw01-BOXuamrY.js";import"./SearchMd-BSRGE1t4.js";import"./Settings01-CCUkMwLj.js";import"./Tool01-Doogi-IK.js";import"./use-mcp-resources-BxIahbOo.js";import"./ChevronRight-3uKoJ2yX.js";import"./Copy01-DCmX2pvi.js";import"./collapsible-DcaWkNTt.js";import"./index-BObCXgKJ.js";import"./marked.esm-BaswSlok.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-hLmmzHl_.js";import"./types-BtTmvTe4.js";import"./Globe02-X8fGWI0t.js";import"./LayersTwo01-DEwkReGL.js";import"./use-collections-DhavVshD.js";import"./useSuspenseInfiniteQuery-Czq4y4BP.js";import"./infiniteQueryObserver-CZ8w6Ao-.js";import"./CheckCircle-CPfAK_ok.js";import"./use-create-virtual-mcp-DZAv89rZ.js";import"./Container-Cvd3ILsk.js";import"./decopilot-events-Brt4gAR6.js";import"./index-PFtbLrE4.js";import"./differenceInSeconds-NQ4PDo0z.js";function K(s){const e=s.trim().split(/\s+/);return e.length!==5?!1:e.every(r=>/^[\d*/,\-]+$/.test(r))}function ut(s){if(!s)return"Unknown schedule";const e=s.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const r=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(r)return`Every ${r[1]} minutes`;const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return`Every ${n[1]} hours`;const o=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(o){const f=parseInt(o[1]??"1");return f%7===0?`Every ${f/7} weeks`:`Every ${f} days`}const a=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(a){const f=(a[2]??"0").padStart(2,"0"),d=(a[1]??"0").padStart(2,"0");return`Every day at ${f}:${d} UTC`}const x=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(x){const d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(x[3]??"0")]??"day",l=(x[2]??"0").padStart(2,"0"),y=(x[1]??"0").padStart(2,"0");return`Every ${d} at ${l}:${y} UTC`}return s}function pt(s,e){const r=Math.max(1,s);switch(e){case"minutes":return r===1?"* * * * *":`*/${r} * * * *`;case"hours":return r===1?"0 * * * *":`0 */${r} * * *`;case"days":return r===1?"0 0 * * *":`0 0 */${r} * *`;case"weeks":return r===1?"0 0 * * 1":`0 0 */${r*7} * *`}}function ft(s){const e=s.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const r=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(r)return{count:parseInt(r[1]),unit:"minutes"};const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return{count:parseInt(n[1]),unit:"hours"};const o=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(o){const a=parseInt(o[1]);return a%7===0?{count:a/7,unit:"weeks"}:{count:a,unit:"days"}}return null}function xt(s,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[s]??s:s}const ht=[{label:"Minute",cron:"* * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function gt(s){const e=B.c(26),{automationId:r,open:n,onOpenChange:o,onCustomSelect:a}=s,x=Q(),[f,d]=T.useState(!1),l=n??f;let y;e[0]!==o?(y=N=>{o?o(N):d(N)},e[0]=o,e[1]=y):y=e[1];const m=y;let j;e[2]!==x||e[3]!==r||e[4]!==m?(j=async N=>{try{await x.mutateAsync({automation_id:r,type:"cron",cron_expression:N}),I.success("Starter added"),m(!1)}catch(D){const A=D,g=A instanceof Error?A.message:"Failed to add starter";I.error(g)}},e[2]=x,e[3]=r,e[4]=m,e[5]=j):j=e[5];const S=j;let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(He,{asChild:!0,children:t.jsxs(U,{variant:"outline",size:"sm",children:[t.jsx(at,{size:14}),"Add Starter"]})}),e[6]=p):p=e[6];let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsxs(Ke,{className:"gap-2.5",children:[t.jsx(H,{size:14,className:"text-muted-foreground shrink-0"}),"Every..."]}),e[7]=_):_=e[7];let v;e[8]!==x||e[9]!==S?(v=ht.map(N=>t.jsxs(se,{className:"gap-2.5",onSelect:()=>S(N.cron),disabled:x.isPending,children:[t.jsx(H,{size:14,className:"text-muted-foreground shrink-0"}),"Every ",N.label]},N.cron)),e[8]=x,e[9]=S,e[10]=v):v=e[10];let i;e[11]!==v?(i=t.jsxs(Ge,{children:[_,t.jsx(We,{className:"w-[160px]",children:v})]}),e[11]=v,e[12]=i):i=e[12];let u;e[13]!==m||e[14]!==a?(u=()=>{m(!1),a?.()},e[13]=m,e[14]=a,e[15]=u):u=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(H,{size:14,className:"text-muted-foreground shrink-0"}),e[16]=b):b=e[16];let h;e[17]!==u?(h=t.jsxs(se,{className:"gap-2.5",onSelect:u,children:[b,"Custom (cron)"]}),e[17]=u,e[18]=h):h=e[18];let C;e[19]!==i||e[20]!==h?(C=t.jsxs(qe,{align:"end",className:"w-[200px]",children:[i,h]}),e[19]=i,e[20]=h,e[21]=C):C=e[21];let w;return e[22]!==m||e[23]!==l||e[24]!==C?(w=t.jsxs(Qe,{open:l,onOpenChange:m,children:[p,C]}),e[22]=m,e[23]=l,e[24]=C,e[25]=w):w=e[25],w}function yt(s){const e=B.c(56),{trigger:r,automationId:n}=s,o=Re(),a=Q(),[x,f]=T.useState(!1);let d;e[0]!==r.cron_expression?(d=r.cron_expression?ft(r.cron_expression):null,e[0]=r.cron_expression,e[1]=d):d=e[1];const l=d,[y,m]=T.useState(l?.count??1),[j,S]=T.useState(!1),[p,_]=T.useState(r.cron_expression??""),v=o.isPending||a.isPending,i=r.type==="cron";let u;e[2]!==n||e[3]!==o||e[4]!==r.id?(u=async()=>{try{await o.mutateAsync({trigger_id:r.id,automation_id:n}),I.success("Starter removed")}catch{I.error("Failed to remove starter")}f(!1)},e[2]=n,e[3]=o,e[4]=r.id,e[5]=u):u=e[5];const b=u;let h;e[6]!==a||e[7]!==n||e[8]!==p||e[9]!==o||e[10]!==r.cron_expression||e[11]!==r.id?(h=async()=>{const k=p.trim();if(!k||!K(k)||k===r.cron_expression){S(!1),_(r.cron_expression??"");return}try{await a.mutateAsync({automation_id:n,type:"cron",cron_expression:k}),await o.mutateAsync({trigger_id:r.id,automation_id:n}),S(!1)}catch{I.error("Failed to update starter"),_(r.cron_expression??""),S(!1)}},e[6]=a,e[7]=n,e[8]=p,e[9]=o,e[10]=r.cron_expression,e[11]=r.id,e[12]=h):h=e[12];const C=h;let w;e[13]!==a||e[14]!==n||e[15]!==l||e[16]!==o||e[17]!==r.cron_expression||e[18]!==r.id?(w=async k=>{if(!l)return;const W=Math.max(1,k),c=pt(W,l.unit);if(c!==r.cron_expression)try{await a.mutateAsync({automation_id:n,type:"cron",cron_expression:c}),await o.mutateAsync({trigger_id:r.id,automation_id:n})}catch{I.error("Failed to update starter"),m(l.count)}},e[13]=a,e[14]=n,e[15]=l,e[16]=o,e[17]=r.cron_expression,e[18]=r.id,e[19]=w):w=e[19];const N=w;let D;e[20]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(H,{size:14,className:"text-muted-foreground shrink-0"}),e[20]=D):D=e[20];let A;e[21]!==y||e[22]!==p||e[23]!==N||e[24]!==C||e[25]!==l||e[26]!==i||e[27]!==j||e[28]!==v||e[29]!==r.cron_expression||e[30]!==r.event_type?(A=l&&i?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-sm text-muted-foreground",children:"Every"}),t.jsx("input",{type:"number",min:1,value:y,onChange:k=>m(parseInt(k.target.value)||1),onBlur:()=>N(y),onKeyDown:k=>{k.key==="Enter"&&k.target.blur(),k.key==="Escape"&&m(l.count)},disabled:v,className:"w-12 text-center text-sm h-7 border border-border rounded-md bg-background px-1 focus:outline-none focus:ring-1 focus:ring-ring"}),t.jsx("span",{className:"text-sm",children:xt(l.unit,y)})]}):i&&j?t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"text",value:p,onChange:k=>_(k.target.value),onBlur:C,onKeyDown:k=>{k.key==="Enter"&&k.target.blur(),k.key==="Escape"&&(S(!1),_(r.cron_expression??""))},className:"flex-1 text-sm font-mono bg-transparent outline-none",autoFocus:!0}),p&&!K(p)&&t.jsx("span",{className:"text-xs text-muted-foreground/60 shrink-0",children:"invalid"})]}):t.jsx("span",{className:"text-sm flex-1 font-mono text-xs text-muted-foreground",children:i?ut(r.cron_expression??""):`${r.event_type} event`}),e[21]=y,e[22]=p,e[23]=N,e[24]=C,e[25]=l,e[26]=i,e[27]=j,e[28]=v,e[29]=r.cron_expression,e[30]=r.event_type,e[31]=A):A=e[31];let g;e[32]!==v?(g=v&&t.jsx(G,{size:13,className:"animate-spin text-muted-foreground"}),e[32]=v,e[33]=g):g=e[33];let z;e[34]!==l||e[35]!==i||e[36]!==j||e[37]!==r.cron_expression?(z=i&&!l&&!j&&t.jsx(U,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>{_(r.cron_expression??""),S(!0)},children:t.jsx(it,{size:13,className:"text-muted-foreground"})}),e[34]=l,e[35]=i,e[36]=j,e[37]=r.cron_expression,e[38]=z):z=e[38];let R;e[39]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(U,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>f(!0),children:t.jsx(J,{size:13,className:"text-muted-foreground"})}),e[39]=R):R=e[39];let M;e[40]!==g||e[41]!==z?(M=t.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[g,z,R]}),e[40]=g,e[41]=z,e[42]=M):M=e[42];let O;e[43]!==M||e[44]!==A?(O=t.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2.5 rounded-lg border border-border bg-background group",children:[D,A,M]}),e[43]=M,e[44]=A,e[45]=O):O=e[45];let P;e[46]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsxs(me,{children:[t.jsx(pe,{children:"Remove Starter"}),t.jsx(ue,{children:"Are you sure you want to remove this starter?"})]}),e[46]=P):P=e[46];let V;e[47]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(fe,{children:"Cancel"}),e[47]=V):V=e[47];let E;e[48]!==b?(E=t.jsxs(ge,{children:[P,t.jsxs(xe,{children:[V,t.jsx(he,{onClick:b,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Remove"})]})]}),e[48]=b,e[49]=E):E=e[49];let $;e[50]!==x||e[51]!==E?($=t.jsx(ye,{open:x,onOpenChange:f,children:E}),e[50]=x,e[51]=E,e[52]=$):$=e[52];let F;return e[53]!==O||e[54]!==$?(F=t.jsxs(t.Fragment,{children:[O,$]}),e[53]=O,e[54]=$,e[55]=F):F=e[55],F}function jt(s){const e=B.c(41),{selectedId:r,onChange:n}=s,[o,a]=T.useState(!1),x=nt();let f,d;e[0]!==x||e[1]!==r?(d=x.filter(vt),f=r?d.find(p=>p.id===r):null,e[0]=x,e[1]=r,e[2]=f,e[3]=d):(f=e[2],d=e[3]);const l=f;if(l){let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(ie,{size:16}),e[4]=p):p=e[4];let _;e[5]!==l.icon||e[6]!==l.title?(_=t.jsx(Me,{icon:l.icon,name:l.title,size:"sm",fallbackIcon:p,className:"rounded-md shrink-0"}),e[5]=l.icon,e[6]=l.title,e[7]=_):_=e[7];let v;e[8]!==l.title?(v=t.jsx("span",{className:"text-sm font-medium truncate",children:l.title}),e[8]=l.title,e[9]=v):v=e[9];let i;e[10]!==_||e[11]!==v?(i=t.jsx(re,{asChild:!0,children:t.jsxs("button",{type:"button",className:"flex items-center gap-3 flex-1 min-w-0 text-left cursor-pointer",children:[_,v]})}),e[10]=_,e[11]=v,e[12]=i):i=e[12];let u;e[13]!==n?(u=A=>{n(A),a(!1)},e[13]=n,e[14]=u):u=e[14];let b;e[15]!==r||e[16]!==u||e[17]!==d?(b=t.jsx(ne,{className:"w-[550px] p-0 overflow-hidden",align:"start",sideOffset:8,children:t.jsx(ee,{virtualMcps:d,selectedVirtualMcpId:r,onVirtualMcpChange:u})}),e[15]=r,e[16]=u,e[17]=d,e[18]=b):b=e[18];let h;e[19]!==o||e[20]!==i||e[21]!==b?(h=t.jsxs(oe,{open:o,onOpenChange:a,children:[i,b]}),e[19]=o,e[20]=i,e[21]=b,e[22]=h):h=e[22];let C;e[23]!==n?(C=()=>n(null),e[23]=n,e[24]=C):C=e[24];let w;e[25]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(J,{size:13}),e[25]=w):w=e[25];let N;e[26]!==C?(N=t.jsx(U,{type:"button",variant:"ghost",size:"icon",className:"shrink-0 size-7 text-muted-foreground hover:text-foreground",onClick:C,title:"Remove agent",children:w}),e[26]=C,e[27]=N):N=e[27];let D;return e[28]!==N||e[29]!==h?(D=t.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-lg border border-border bg-background hover:bg-accent/50 transition-colors",children:[h,N]}),e[28]=N,e[29]=h,e[30]=D):D=e[30],D}let y;e[31]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(re,{asChild:!0,children:t.jsxs("button",{type:"button",className:"flex items-center gap-3 px-3 py-2.5 rounded-lg border border-border hover:bg-accent/50 transition-colors w-full text-left cursor-pointer",children:[t.jsxs("div",{className:"relative flex items-center justify-center size-8 rounded-md text-muted-foreground/75 shrink-0",children:[t.jsxs("svg",{className:"absolute inset-0 size-full",fill:"none",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"agent-picker-border-gradient",gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:"32",y2:"32",children:[t.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"6s",repeatCount:"indefinite"}),t.jsx("stop",{offset:"0%",stopColor:"var(--chart-1)"}),t.jsx("stop",{offset:"100%",stopColor:"var(--chart-4)"})]})}),t.jsx("rect",{x:"0.5",y:"0.5",width:"31",height:"31",rx:"5.5",stroke:"url(#agent-picker-border-gradient)",strokeWidth:"1",strokeDasharray:"3 3"})]}),t.jsx(ie,{size:16})]}),t.jsx("span",{className:"text-sm text-muted-foreground",children:"No agent selected. All connections available."})]})}),e[31]=y):y=e[31];let m;e[32]!==n?(m=p=>{n(p),a(!1)},e[32]=n,e[33]=m):m=e[33];let j;e[34]!==r||e[35]!==m||e[36]!==d?(j=t.jsx(ne,{className:"w-[550px] p-0 overflow-hidden",align:"start",sideOffset:8,children:t.jsx(ee,{virtualMcps:d,selectedVirtualMcpId:r,onVirtualMcpChange:m})}),e[34]=r,e[35]=m,e[36]=d,e[37]=j):j=e[37];let S;return e[38]!==o||e[39]!==j?(S=t.jsxs(oe,{open:o,onOpenChange:a,children:[y,j]}),e[38]=o,e[39]=j,e[40]=S):S=e[40],S}function vt(s){return!s.id||!tt(s.id)}function bt({automationId:s,automation:e}){const r=Oe(),{createTask:n,setVirtualMcpId:o,setSelectedModel:a,sendMessage:x,credentialId:f,model:d}=je(),[,l]=de(),y=e.messages?.[0]?.metadata?.tiptapDoc??void 0,[m,j]=T.useState(y),[S,p]=T.useState(y),[_,v]=T.useState(!1),[i,u]=T.useState(!1),[b,h]=T.useState(""),C=Q(),w=T.useRef(!1),N=c=>{j(c),w.current||(w.current=!0,y||p(c))},D=e.models?.credentialId||f||"",A=e.models?.thinking?.id||d?.modelId||"",g=Ce({defaultValues:{name:e.name,active:e.active,agent_id:e.agent?.id??"",credential_id:D,model_id:A}}),z=g.watch("active"),R=g.watch("agent_id"),M=g.watch("credential_id"),O=g.watch("model_id"),{models:P,isLoading:V}=De(M||void 0),E=P.find(c=>c.modelId===O)??null,$=async()=>{const c=g.getValues();try{const L=c.credential_id&&c.model_id?c.credential_id:"",Y=c.credential_id&&c.model_id?c.model_id:"";return await r.mutateAsync({id:s,name:c.name,active:c.active,agent:{id:c.agent_id},models:{credentialId:L,thinking:{id:Y}},messages:ct(m),temperature:0}),g.reset({...c,credential_id:L,model_id:Y}),p(m),I.success("Automation saved"),!0}catch{return I.error("Failed to save automation"),!1}},F=()=>{g.reset(),N(S)},k=g.formState.isDirty||JSON.stringify(m??null)!==JSON.stringify(S??null),W=async()=>{if(k&&!await $())return;if(!m){I.error("No instructions configured for this automation");return}const c=g.getValues();o(c.agent_id||null),E&&M&&a({...E,keyId:M}),l(!0),n(),setTimeout(()=>{x(m,{toolApprovalLevel:"yolo"})},0)};return t.jsxs(t.Fragment,{children:[t.jsx(ce,{children:t.jsx(ke,{onSave:async()=>{await $()},onUndo:F,isDirty:k,isSaving:r.isPending})}),t.jsxs("div",{className:"max-w-2xl mx-auto w-full px-6 py-6 flex flex-col gap-8",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx(Be,{...g.register("name"),placeholder:"Automation name",className:"border border-transparent shadow-none px-0 text-2xl md:text-2xl font-semibold h-auto focus-visible:ring-0 focus-visible:border-border bg-transparent"}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ne,{control:g.control,name:"active",render:({field:c})=>t.jsx(Je,{checked:c.value,onCheckedChange:c.onChange,className:"cursor-pointer"})}),t.jsx("span",{className:"text-sm text-muted-foreground",children:z?"Active":"Inactive"}),t.jsx("span",{className:"text-muted-foreground/50 text-sm",children:"·"}),t.jsx(Ee,{id:e.created_by,size:"2xs",className:"text-sm text-muted-foreground"})]})]}),t.jsxs("div",{className:"flex flex-col gap-2.5",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:"Starter"}),t.jsx(gt,{automationId:s,open:_,onOpenChange:v,onCustomSelect:()=>{u(!0),h("")}})]}),e.triggers.length===0&&!i?t.jsx("div",{className:"rounded-lg border border-dashed border-border px-4 py-6 text-center",children:t.jsxs("p",{className:"text-sm text-muted-foreground",children:["When should this automation run?"," ",t.jsx("button",{type:"button",className:"text-foreground underline underline-offset-2 cursor-pointer hover:text-foreground/80 transition-colors",onClick:()=>v(!0),children:"Add a starter"})," ","to get going."]})}):t.jsx("div",{className:"flex flex-col gap-2",children:e.triggers.map(c=>t.jsx(yt,{trigger:c,automationId:s},c.id))}),i&&t.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2.5 rounded-lg border border-border bg-background group",children:[t.jsx(H,{size:14,className:"text-muted-foreground shrink-0"}),t.jsx("input",{type:"text",value:b,onChange:c=>h(c.target.value),onBlur:async()=>{const c=b.trim();if(!(!c||!K(c)))try{await C.mutateAsync({automation_id:s,type:"cron",cron_expression:c}),I.success("Starter added"),u(!1),h("")}catch{I.error("Failed to add starter")}},onKeyDown:async c=>{const L=b.trim();c.key==="Enter"&&L&&K(L)&&c.target.blur(),c.key==="Escape"&&(u(!1),h(""))},placeholder:"0 9 * * 1-5",className:"flex-1 text-sm font-mono bg-transparent outline-none placeholder:text-muted-foreground/40",autoFocus:!0}),b&&!K(b)&&t.jsx("span",{className:"text-xs text-muted-foreground/60 shrink-0",children:"invalid"}),C.isPending&&t.jsx(G,{size:13,className:"animate-spin text-muted-foreground shrink-0"}),t.jsx("button",{type:"button",className:"shrink-0 p-0.5 rounded text-muted-foreground opacity-0 group-hover:opacity-100 hover:text-foreground transition-opacity",onClick:()=>{u(!1),h("")},children:t.jsx(J,{size:13})})]})]}),t.jsxs("div",{className:"flex flex-col gap-2.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:"Agent"}),t.jsx(jt,{selectedId:R||null,onChange:c=>g.setValue("agent_id",c??"",{shouldDirty:!0})})]}),t.jsxs("div",{className:"flex flex-col gap-2.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:"Instructions"}),t.jsx(Ae,{tiptapDoc:m,setTiptapDoc:N,placeholder:"What should this automation do?",children:t.jsxs("div",{className:"rounded-xl border border-border min-h-[120px] flex flex-col",children:[t.jsx(Te,{virtualMcpId:R||null}),t.jsxs("div",{className:"flex items-center justify-end gap-1.5 p-2.5",children:[t.jsx(Ie,{model:E,isLoading:V,credentialId:M||null,onCredentialChange:c=>{g.setValue("credential_id",c??"",{shouldDirty:!0}),g.setValue("model_id","",{shouldDirty:!0})},onModelChange:c=>g.setValue("model_id",c.modelId,{shouldDirty:!0}),placeholder:"Model"}),t.jsxs(Ye,{children:[t.jsx(Xe,{asChild:!0,children:t.jsxs(U,{type:"button",variant:"default",className:"h-8 gap-1.5 rounded-md px-3 text-sm font-medium",onClick:W,children:[t.jsx(ot,{size:16}),"Test"]})}),t.jsx(Ze,{children:"Test Automation"})]})]})]})})]}),t.jsxs("div",{className:"flex flex-col gap-2.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:"Run History"}),t.jsx(Ct,{automationId:s,triggerIds:e.triggers.map(c=>c.id)})]})]})]})}function _t(s,e,r){const n=B.c(13);let o;n[0]!==s?(o={connectionId:rt,orgId:s},n[0]=s,n[1]=o):o=n[1];const a=st(o);let x;n[2]!==e||n[3]!==s||n[4]!==r?(x=q.automationRuns(s,e,r),n[2]=e,n[3]=s,n[4]=r,n[5]=x):x=n[5];let f;n[6]!==a||n[7]!==r?(f=async()=>{if(!a)throw new Error("MCP client not available");const y=await a.callTool({name:"COLLECTION_THREADS_LIST",arguments:{where:{trigger_ids:r},limit:20}});return(y.structuredContent??y).items??[]},n[6]=a,n[7]=r,n[8]=f):f=n[8];const d=r.length>0;let l;return n[9]!==x||n[10]!==f||n[11]!==d?(l={queryKey:x,queryFn:f,enabled:d},n[9]=x,n[10]=f,n[11]=d,n[12]=l):l=n[12],et(l)}function Ct(s){const e=B.c(22),{automationId:r,triggerIds:n}=s,{org:o}=ae(),{switchToTask:a}=je(),[,x]=de(),f=Se(),{data:d,isLoading:l}=_t(o.id,r,n),y=n.length>0;let m;e[0]!==r||e[1]!==o.id||e[2]!==f||e[3]!==d||e[4]!==n?(m=i=>{const u=i.subject,b=d??[];b.find(C=>C.id===u)?f.setQueryData(q.automationRuns(o.id,r,n),b.map(C=>C.id===u?{...C,status:i.data.status,updated_at:new Date().toISOString()}:C)):f.invalidateQueries({queryKey:q.automationRuns(o.id,r,n)})},e[0]=r,e[1]=o.id,e[2]=f,e[3]=d,e[4]=n,e[5]=m):m=e[5];let j;if(e[6]!==o.id||e[7]!==y||e[8]!==m?(j={orgId:o.id,enabled:y,onTaskStatus:m},e[6]=o.id,e[7]=y,e[8]=m,e[9]=j):j=e[9],dt(j),l){let i;return e[10]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"flex items-center justify-center py-8",children:t.jsx(G,{size:18,className:"animate-spin text-muted-foreground"})}),e[10]=i):i=e[10],i}if(!d||d.length===0){let i;return e[11]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(le,{image:null,className:"mt-6",title:"No run history",description:"Run history will appear here when the automation has been triggered."}),e[11]=i):i=e[11],i}let S;e[12]!==x||e[13]!==a?(S=async i=>{await a(i),x(!0)},e[12]=x,e[13]=a,e[14]=S):S=e[14];const p=S;let _;if(e[15]!==p||e[16]!==d){let i;e[18]!==p?(i=u=>{const b=Z[u.status]??Z.completed,h=b.icon;return t.jsxs("button",{type:"button",className:"flex items-center gap-3 px-1 py-2.5 text-left hover:bg-accent/50 transition-colors cursor-pointer rounded-sm",onClick:()=>p(u.id),children:[t.jsx(h,{size:16,className:b.iconClassName}),t.jsx("span",{className:"flex-1 min-w-0 text-sm truncate",children:u.title}),t.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:mt(new Date(u.updated_at),{addSuffix:!0})})]},u.id)},e[18]=p,e[19]=i):i=e[19],_=d.map(i),e[15]=p,e[16]=d,e[17]=_}else _=e[17];let v;return e[20]!==_?(v=t.jsx("div",{className:"flex flex-col divide-y divide-border",children:_}),e[20]=_,e[21]=v):v=e[21],v}function rr(){const s=B.c(36);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},s[0]=e):e=s[0];const{automationId:r}=ve(e),n=be(),{org:o}=ae(),{data:a,isLoading:x}=$e(r),f=ze(),[d,l]=T.useState(!1);let y;s[1]!==r||s[2]!==f||s[3]!==n||s[4]!==o?(y=async()=>{try{await f.mutateAsync(r),I.success("Automation deleted"),n({to:"/$org/$project/automations",params:{org:o.slug,project:X}})}catch{I.error("Failed to delete automation")}l(!1)},s[1]=r,s[2]=f,s[3]=n,s[4]=o,s[5]=y):y=s[5];const m=y;if(x){let g;return s[6]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex items-center justify-center h-full",children:t.jsx(G,{size:24,className:"animate-spin text-muted-foreground"})}),s[6]=g):g=s[6],g}if(!a){let g;return s[7]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(le,{title:"Automation not found",description:"This automation may have been deleted."}),s[7]=g):g=s[7],g}let j;s[8]!==o.slug?(j=t.jsx(te,{children:t.jsx(Pe,{asChild:!0,children:t.jsx(_e,{to:"/$org/$project/automations",params:{org:o.slug,project:X},children:"Automations"})})}),s[8]=o.slug,s[9]=j):j=s[9];let S;s[10]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Fe,{}),s[10]=S):S=s[10];let p;s[11]!==a.name?(p=t.jsx(te,{children:t.jsx(Ve,{children:a.name})}),s[11]=a.name,s[12]=p):p=s[12];let _;s[13]!==j||s[14]!==p?(_=t.jsx(Le,{children:t.jsxs(Ue,{children:[j,S,p]})}),s[13]=j,s[14]=p,s[15]=_):_=s[15];const v=_;let i;s[16]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(ce,{children:t.jsxs(U,{variant:"ghost",size:"sm",className:"h-7 text-destructive hover:text-destructive",onClick:()=>l(!0),children:[t.jsx(lt,{size:14}),"Delete"]})}),s[16]=i):i=s[16];let u;s[17]!==a||s[18]!==r?(u=t.jsx(bt,{automationId:r,automation:a},r),s[17]=a,s[18]=r,s[19]=u):u=s[19];let b;s[20]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(pe,{children:"Delete Automation"}),s[20]=b):b=s[20];let h;s[21]!==a.name?(h=t.jsxs(me,{children:[b,t.jsxs(ue,{children:['Are you sure you want to delete "',a.name,'"? This action cannot be undone.']})]}),s[21]=a.name,s[22]=h):h=s[22];let C;s[23]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(fe,{children:"Cancel"}),s[23]=C):C=s[23];let w;s[24]!==m?(w=t.jsxs(xe,{children:[C,t.jsx(he,{onClick:m,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),s[24]=m,s[25]=w):w=s[25];let N;s[26]!==w||s[27]!==h?(N=t.jsxs(ge,{children:[h,w]}),s[26]=w,s[27]=h,s[28]=N):N=s[28];let D;s[29]!==d||s[30]!==N?(D=t.jsx(ye,{open:d,onOpenChange:l,children:N}),s[29]=d,s[30]=N,s[31]=D):D=s[31];let A;return s[32]!==v||s[33]!==D||s[34]!==u?(A=t.jsxs(we,{breadcrumb:v,children:[i,u,D]}),s[32]=v,s[33]=D,s[34]=u,s[35]=A):A=s[35],A}export{rr as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as S,u as _,r as $,O as u,j as e,B as p,D as B,v as h}from"./index-DMmNh7jR.js";import{C as I}from"./collection-search-nKZEJ_r3.js";import{E as L}from"./empty-state-BuGXY27l.js";import{P as l}from"./index-DYAF-Vgt.js";import{u as M,a as E,b as H}from"./use-automations-D-X6Oij9.js";import{u as O}from"./use-list-state-Baq-X1EV.js";import{U as R}from"./user-8V0wpye0.js";import{f as F,a as K,b as U,c as G,d as J,e as V,A as q,h as Q}from"./alert-dialog-qmvoIx9J.js";import{B as W}from"./badge-Cjjl_FHP.js";import{B as X,a as Y,b as Z,c as ee}from"./breadcrumb-C8hDXS86.js";import{D as se,a as te,b as re,c as C}from"./dropdown-menu-BcNYk9_F.js";import{T as ae,a as ie,b as y,c as oe,d as ne,e as c}from"./table-BSLV9H8I.js";import{n as le}from"./ArrowDown-DrJY3Wf3.js";import{i as ce}from"./ArrowUp-B4DKDJey.js";import{i as me}from"./DotsVertical-CZep1rYf.js";import{s as de}from"./Eye-D3Q7o9JY.js";import{i as x}from"./Loading01-D0sCOwf7.js";import{s as A}from"./Plus-Dcf0Y3wA.js";import{s as ue}from"./RefreshCcw01-BOXuamrY.js";import{s as pe}from"./Trash01-Cs72bTP6.js";import"./SearchMd-BSRGE1t4.js";import"./input-Bt_nejZh.js";import"./useQuery-B-AaJTeZ.js";import"./useMutation-DrLoVqQ7.js";import"./tooltip-DHJtaI_Z.js";import"./index-COFAW4F5.js";import"./X-CD9ZB6hw.js";import"./constants-DclZTqHf.js";import"./use-view-mode-CdGajc1j.js";import"./avatar-DeGeJRAR.js";import"./ChevronRight-3uKoJ2yX.js";import"./Check-5nIJP_0B.js";function Je(){const g=S(),{org:j,locator:D}=_(),{data:a,isLoading:k}=M(),o=E(),T=H(),[m,d]=$.useState(null),t=O({namespace:j.slug,resource:"automations",defaultViewMode:"table"}),f=D.split("/")[0]??j.slug??u,b=async()=>{try{const s=await o.mutateAsync({name:"New Automation",agent:{id:"",mode:"passthrough"},messages:[],models:{credentialId:"",thinking:{id:""}},temperature:.5,active:!0});g({to:"/$org/$project/automations/$automationId",params:{org:f,project:u,automationId:s.id}})}catch{h.error("Failed to create automation")}},z=async()=>{if(m)try{await T.mutateAsync(m.id),h.success("Automation deleted")}catch{h.error("Failed to delete automation")}finally{d(null)}},N=s=>{g({to:"/$org/$project/automations/$automationId",params:{org:f,project:u,automationId:s}})},v=(a??[]).filter(s=>t.searchTerm?s.name.toLowerCase().includes(t.searchTerm.toLowerCase()):!0).sort((s,r)=>{if(!t.sortDirection)return 0;const n=t.sortDirection==="asc"?1:-1,i=t.sortKey;return i==="name"?s.name.localeCompare(r.name)*n:i==="active"?((s.active?1:0)-(r.active?1:0))*n:i==="trigger_count"?((s.trigger_count??0)-(r.trigger_count??0))*n:0}),P="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider group transition-colors select-none";return e.jsxs(l,{children:[e.jsxs(l.Header,{children:[e.jsx(l.Header.Left,{children:e.jsx(X,{children:e.jsx(Y,{children:e.jsx(Z,{children:e.jsxs(ee,{className:"flex items-center gap-2",children:["Automations",a&&a.length>0&&e.jsxs("span",{className:"hidden sm:inline text-xs font-normal text-muted-foreground tabular-nums",children:[a.length," total"]})]})})})})}),e.jsx(l.Header.Right,{children:e.jsxs(p,{size:"sm",onClick:b,disabled:o.isPending,className:"h-7 w-7 px-0 sm:w-auto sm:px-3",children:[o.isPending?e.jsx(x,{size:14,className:"animate-spin"}):e.jsx(A,{size:14}),e.jsx("span",{className:"hidden sm:inline",children:"Create Automation"})]})})]}),e.jsx(I,{value:t.search,onChange:t.setSearch,placeholder:"Search automations...",onKeyDown:s=>{s.key==="Escape"&&(t.setSearch(""),s.target.blur())}}),e.jsxs(l.Content,{children:[k?e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx(x,{size:24,className:"animate-spin text-muted-foreground"})}):!a||a.length===0?e.jsx("div",{className:"flex items-center h-full",children:e.jsx(L,{image:e.jsx(ue,{size:48,className:"text-muted-foreground"}),title:"No automations yet",description:"Automations run tasks on a schedule or in response to events.",actions:e.jsxs(p,{size:"sm",onClick:b,disabled:o.isPending,children:[o.isPending?e.jsx(x,{size:14,className:"animate-spin"}):e.jsx(A,{size:14}),"Create Automation"]})})}):e.jsxs(ae,{className:"w-full border-collapse",children:[e.jsx(ie,{className:"border-b-0",children:e.jsx(y,{className:"h-9 hover:bg-transparent border-b border-border",children:[{id:"name",label:"Name",className:"flex-1 min-w-0 cursor-pointer hover:bg-accent"},{id:"active",label:"Status",className:"w-24 shrink-0 cursor-pointer hover:bg-accent"},{id:"trigger_count",label:"Triggers",className:"w-24 shrink-0 cursor-pointer hover:bg-accent"},{id:"created_by",label:"Created by",className:"w-40 shrink-0"},{id:"_actions",label:"",className:"w-12 shrink-0"}].map(({id:s,label:r,className:n})=>{const i=t.sortKey===s,w=s!=="created_by"&&s!=="_actions";return e.jsx(oe,{className:B(P,n),onClick:w?()=>t.handleSort(s):void 0,children:e.jsxs("span",{className:"flex items-center gap-1",children:[r,w&&e.jsxs("span",{className:"w-4 flex items-center justify-center",children:[i&&t.sortDirection==="asc"&&e.jsx(ce,{size:12,className:"text-muted-foreground"}),i&&t.sortDirection==="desc"&&e.jsx(le,{size:12,className:"text-muted-foreground"})]})]})},s)})})}),e.jsx(ne,{children:v.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:5,className:"py-16 text-center",children:e.jsxs("span",{className:"text-sm text-muted-foreground",children:['No automations match "',t.search,'"']})})}):v.map(s=>e.jsxs(y,{className:"group/data-row border-b-0 hover:bg-accent/50 cursor-pointer transition-colors",onClick:()=>N(s.id),children:[e.jsx(c,{className:"px-5 py-4 h-16 align-middle text-sm font-medium text-foreground flex-1 min-w-0",children:s.name}),e.jsx(c,{className:"px-5 py-4 h-16 align-middle w-24 shrink-0",children:e.jsx(W,{variant:s.active?"default":"secondary",children:s.active?"Active":"Inactive"})}),e.jsx(c,{className:"px-5 py-4 h-16 align-middle text-sm text-muted-foreground w-24 shrink-0",children:s.trigger_count}),e.jsx(c,{className:"px-5 py-4 h-16 align-middle w-40 shrink-0",children:e.jsx(R,{id:s.created_by})}),e.jsx(c,{className:"px-5 py-4 h-16 align-middle w-12 shrink-0",children:e.jsxs(se,{children:[e.jsx(te,{asChild:!0,children:e.jsx(p,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:r=>r.stopPropagation(),children:e.jsx(me,{size:20})})}),e.jsxs(re,{align:"end",onClick:r=>r.stopPropagation(),children:[e.jsxs(C,{onClick:r=>{r.stopPropagation(),N(s.id)},children:[e.jsx(de,{size:16}),"Open"]}),e.jsxs(C,{variant:"destructive",onClick:r=>{r.stopPropagation(),d({id:s.id,name:s.name})},children:[e.jsx(pe,{size:16}),"Delete"]})]})]})})]},s.id))})]}),e.jsx(F,{open:!!m,onOpenChange:s=>!s&&d(null),children:e.jsxs(K,{children:[e.jsxs(U,{children:[e.jsx(G,{children:"Delete Automation?"}),e.jsxs(J,{children:["This action cannot be undone. This will permanently delete"," ",e.jsx("span",{className:"font-medium text-foreground",children:m?.name}),". All triggers will be removed."]})]}),e.jsxs(V,{children:[e.jsx(q,{children:"Cancel"}),e.jsx(Q,{onClick:z,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]})]})})]})]})}export{Je as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as R,c as j,j as i,D as m,U as I,aY as $,aZ as L,a_ as M}from"./index-DMmNh7jR.js";const U=({size:a=24,color:e="currentColor",...s})=>R.createElement("svg",{viewBox:"0 0 24 24",width:a,height:a,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},R.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));U.displayName="User01";function O(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(M,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function _(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx($,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function D(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(L,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}const S=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],T="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function W(a){let e=0;for(let t=0;t<a.length;t++)e=a.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%S.length;return S[s]}const V=I("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-[7px] font-semibold","2xs":"w-4 h-4 text-[9px] font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),Z=I("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),B=a=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[a]||e.base};function Y(a){const e=j.c(35);let s,t,o,r,n,d,g,l;e[0]!==a?({url:l,fallback:t,shape:r,size:n,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,[f,x]=R.useState(!1);let F;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],F=c;break e}F=t}const C=F;let z;e:{if(k){z=T;break e}if(typeof t=="string"){let c;e[11]!==t?(c=W(t),e[11]=t,e[12]=c):c=e[12],z=c;break e}z=S[0]}const y=z;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const E=q;let w;e[18]!==s||e[19]!==b||e[20]!==h?(w=m(V({shape:b,size:h}),s),e[18]=s,e[19]=b,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==y||e[23]!==C||e[24]!==E||e[25]!==f||e[26]!==p||e[27]!==u||e[28]!==h||e[29]!==l?(v=p&&E?i.jsx("div",{className:m("flex items-center justify-center w-full h-full",y),children:i.jsx(U,{size:B(h)})}):i.jsxs(i.Fragment,{children:[l&&!f&&i.jsx(_,{src:l,loading:"lazy",alt:"Avatar",className:m(Z({objectFit:u})),onError:()=>x(!0)}),(!l||f)&&i.jsx(D,{className:m(y,"rounded-none"),children:C})]}),e[22]=y,e[23]=C,e[24]=E,e[25]=f,e[26]=p,e[27]=u,e[28]=h,e[29]=l,e[30]=v):v=e[30];let A;return e[31]!==o||e[32]!==v||e[33]!==w?(A=i.jsx(O,{className:w,...o,children:v}),e[31]=o,e[32]=v,e[33]=w,e[34]=A):A=e[34],A}function G(a){const e=j.c(18);let s,t,o,r,n,d,g,l;e[0]!==a?({shape:r,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,f=h??"base";let x;return e[9]!==s||e[10]!==t||e[11]!==k||e[12]!==u||e[13]!==o||e[14]!==b||e[15]!==f||e[16]!==l?(x=i.jsx(Y,{shape:b,url:l,fallback:t,size:f,objectFit:u,className:s,muted:k,...o}),e[9]=s,e[10]=t,e[11]=k,e[12]=u,e[13]=o,e[14]=b,e[15]=f,e[16]=l,e[17]=x):x=e[17],x}G.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:m(V({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{G as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as d,D as u,j as l,J as v,U as g}from"./index-DMmNh7jR.js";const b=g("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function x(o){const e=d.c(12);let r,s,a,t;e[0]!==o?({className:r,variant:t,asChild:a,...s}=o,e[0]=o,e[1]=r,e[2]=s,e[3]=a,e[4]=t):(r=e[1],s=e[2],a=e[3],t=e[4]);const c=(a===void 0?!1:a)?v:"span";let i;e[5]!==r||e[6]!==t?(i=u(b({variant:t}),r),e[5]=r,e[6]=t,e[7]=i):i=e[7];let n;return e[8]!==c||e[9]!==s||e[10]!==i?(n=l.jsx(c,{"data-slot":"badge",className:i,...s}),e[8]=c,e[9]=s,e[10]=i,e[11]=n):n=e[11],n}export{x as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./index-
|
|
1
|
+
import"./index-DMmNh7jR.js";function a(o){return{isImplementedBy:c=>{for(const e of o){const r=typeof e.name=="string"?new RegExp(`^${e.name}$`):e.name,t=c.find(i=>r.test(i.name));if(!(!t&&e.opt)&&!t)return!1}return!0}}}function s(o,c){const e=o.tools;if(!e||e.length===0)return!1;const r=e.map(n=>({name:n.name,inputSchema:n.inputSchema})),t=c.map(n=>({name:n.name,inputSchema:n.inputSchema,opt:n.opt}));return a(t).isImplementedBy(r)}export{a,s as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,D as m,j as o,
|
|
1
|
+
import{c,D as m,j as o,J as u}from"./index-DMmNh7jR.js";import{i as d}from"./ChevronRight-3uKoJ2yX.js";function b(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("min-w-0 overflow-hidden",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function x(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("ol",{"data-slot":"breadcrumb-list",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function N(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("inline-flex items-center gap-1.5 min-w-0",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("li",{"data-slot":"breadcrumb-item",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function g(r){const e=c.c(10);let a,t,s;e[0]!==r?({asChild:a,className:t,...s}=r,e[0]=r,e[1]=a,e[2]=t,e[3]=s):(a=e[1],t=e[2],s=e[3]);const l=a?u:"a";let i;e[4]!==t?(i=m("hover:text-foreground transition-colors truncate",t),e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==l||e[7]!==s||e[8]!==i?(n=o.jsx(l,{"data-slot":"breadcrumb-link",className:i,...s}),e[6]=l,e[7]=s,e[8]=i,e[9]=n):n=e[9],n}function j(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("text-foreground font-medium truncate",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function h(r){const e=c.c(12);let a,t,s;e[0]!==r?({children:a,className:t,...s}=r,e[0]=r,e[1]=a,e[2]=t,e[3]=s):(a=e[1],t=e[2],s=e[3]);let l;e[4]!==t?(l=m("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",t),e[4]=t,e[5]=l):l=e[5];let i;e[6]!==a?(i=a??o.jsx(d,{}),e[6]=a,e[7]=i):i=e[7];let n;return e[8]!==s||e[9]!==l||e[10]!==i?(n=o.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:l,...s,children:i}),e[8]=s,e[9]=l,e[10]=i,e[11]=n):n=e[11],n}export{b as B,x as a,N as b,j as c,g as d,h as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,D as c,j as d}from"./index-
|
|
1
|
+
import{c as l,D as c,j as d}from"./index-DMmNh7jR.js";function x(a){const e=l.c(8);let r,s;e[0]!==a?({className:r,...s}=a,e[0]=a,e[1]=r,e[2]=s):(r=e[1],s=e[2]);let o;e[3]!==r?(o=c("bg-card text-card-foreground hover:bg-accent/50 flex flex-col gap-6 rounded-xl border border-border shadow-xs",r),e[3]=r,e[4]=o):o=e[4];let t;return e[5]!==s||e[6]!==o?(t=d.jsx("div",{"data-slot":"card",className:o,...s}),e[5]=s,e[6]=o,e[7]=t):t=e[7],t}export{x as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,D as d,j as c,
|
|
1
|
+
import{c as n,D as d,j as c,an as l,ao as m}from"./index-DMmNh7jR.js";import{i as b}from"./Check-5nIJP_0B.js";function x(o){const e=n.c(9);let r,a;e[0]!==o?({className:r,...a}=o,e[0]=o,e[1]=r,e[2]=a):(r=e[1],a=e[2]);let i;e[3]!==r?(i=d("peer border-foreground dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",r),e[3]=r,e[4]=i):i=e[4];let t;e[5]===Symbol.for("react.memo_cache_sentinel")?(t=c.jsx(m,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-primary-foreground transition-none",children:c.jsx(b,{className:"size-3.5"})}),e[5]=t):t=e[5];let s;return e[6]!==a||e[7]!==i?(s=c.jsx(l,{"data-slot":"checkbox",className:i,...a,children:t}),e[6]=a,e[7]=i,e[8]=s):s=e[8],s}export{x as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t,j as i}from"./index-
|
|
1
|
+
import{c as t,j as i}from"./index-DMmNh7jR.js";import{R as a,C as r,a as n}from"./index-BObCXgKJ.js";function f(o){const l=t.c(4);let e;l[0]!==o?({...e}=o,l[0]=o,l[1]=e):e=l[1];let s;return l[2]!==e?(s=i.jsx(a,{"data-slot":"collapsible",...e}),l[2]=e,l[3]=s):s=l[3],s}function b(o){const l=t.c(4);let e;l[0]!==o?({...e}=o,l[0]=o,l[1]=e):e=l[1];let s;return l[2]!==e?(s=i.jsx(r,{"data-slot":"collapsible-trigger",...e}),l[2]=e,l[3]=s):s=l[3],s}function C(o){const l=t.c(4);let e;l[0]!==o?({...e}=o,l[0]=o,l[1]=e):e=l[1];let s;return l[2]!==e?(s=i.jsx(n,{"data-slot":"collapsible-content",...e}),l[2]=e,l[3]=s):s=l[3],s}export{f as C,b as a,C as b};
|