decocms 2.175.2 → 2.175.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-CnfwZdxb.js → AlertCircle-Bu9DNwe-.js} +1 -1
- package/dist/client/assets/{AlignLeft-zj1VrWVO.js → AlignLeft-CJvAdEi-.js} +1 -1
- package/dist/client/assets/{ArrowDown-BnnQhLmg.js → ArrowDown-BrkOB1Av.js} +1 -1
- package/dist/client/assets/{ArrowLeft-C3_bzjZf.js → ArrowLeft-BLUY3Pjw.js} +1 -1
- package/dist/client/assets/{ArrowUp-BuKX1RSZ.js → ArrowUp-Bl5YEbbF.js} +1 -1
- package/dist/client/assets/{Check-7kB05ju_.js → Check-CN56KhoF.js} +1 -1
- package/dist/client/assets/{CheckCircle-DrGaevdP.js → CheckCircle-B4pYO1ZS.js} +1 -1
- package/dist/client/assets/{CheckDone01-CVJEgdwq.js → CheckDone01-DgXembQE.js} +1 -1
- package/dist/client/assets/{CheckVerified02-DmV5dzDn.js → CheckVerified02-BTUqey_K.js} +1 -1
- package/dist/client/assets/{ChevronDown-DHeagNGb.js → ChevronDown-BURkaeCD.js} +1 -1
- package/dist/client/assets/{ChevronLeft-W2gkpjgL.js → ChevronLeft-C1fUg8Ja.js} +1 -1
- package/dist/client/assets/{ChevronRight-Blv21S_7.js → ChevronRight-Df5oEIdG.js} +1 -1
- package/dist/client/assets/{ChevronUp-J7upZD3-.js → ChevronUp-Ql_IhfwF.js} +1 -1
- package/dist/client/assets/{Clock-9Mm0U0Dg.js → Clock-DY1djxCP.js} +1 -1
- package/dist/client/assets/{Code01-DDbKsccR.js → Code01-ClhNhs6L.js} +1 -1
- package/dist/client/assets/{Coins01-DTz6uYyF.js → Coins01-C0DqkhBz.js} +1 -1
- package/dist/client/assets/{Container-Ci_1Xm4L.js → Container-De-pv4QL.js} +1 -1
- package/dist/client/assets/{Copy01-BexEalI-.js → Copy01-E3kqWO3T.js} +1 -1
- package/dist/client/assets/{Dataflow03-CKfLDuKw.js → Dataflow03-DVfc8SxS.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-3xIvFzgk.js → DotsHorizontal-zFut2S5z.js} +1 -1
- package/dist/client/assets/{DotsVertical-7N_NB6wt.js → DotsVertical-ZWNLrGdE.js} +1 -1
- package/dist/client/assets/{Download01-D-oC1d8d.js → Download01-D_QoltgV.js} +1 -1
- package/dist/client/assets/{Edit01-gYPHsLoC.js → Edit01-KzFCPjcw.js} +1 -1
- package/dist/client/assets/{Edit05-BA2Lz_6R.js → Edit05-DFdmrfVO.js} +1 -1
- package/dist/client/assets/{Eye-Cn6YseXl.js → Eye-CUyEl5IU.js} +1 -1
- package/dist/client/assets/{EyeOff-L-SLicw9.js → EyeOff-D3iBtnD1.js} +1 -1
- package/dist/client/assets/{File02-Dx1Iz50W.js → File02-CqU_tyTM.js} +1 -1
- package/dist/client/assets/{File06-Dqc-K1-5.js → File06-B23HFdp6.js} +1 -1
- package/dist/client/assets/{FilterLines-DCrzLWfV.js → FilterLines-B4Jg_hkv.js} +1 -1
- package/dist/client/assets/{Globe01-DW2rHI0i.js → Globe01-BAfb6FiF.js} +1 -1
- package/dist/client/assets/{Globe02-CyGtzZ8k.js → Globe02-DAjgLqHS.js} +1 -1
- package/dist/client/assets/{Grid01-Dqz--q3o.js → Grid01-B7q4cvPD.js} +1 -1
- package/dist/client/assets/{Hash02-pqCZ_ykD.js → Hash02-BPlWtian.js} +1 -1
- package/dist/client/assets/{Home02-D2W6xjpZ.js → Home02-BYbFBx09.js} +1 -1
- package/dist/client/assets/{Image01-U7ZIAIPc.js → Image01-C62qGXSk.js} +1 -1
- package/dist/client/assets/{Inbox01-DpRIO4ZY.js → Inbox01-BF4_faho.js} +1 -1
- package/dist/client/assets/{InfoCircle-CvSmMU6H.js → InfoCircle-DhO0vGS4.js} +1 -1
- package/dist/client/assets/{Key01-Dq5b7fdA.js → Key01-Bfc7gsTd.js} +1 -1
- package/dist/client/assets/{LayersTwo01-Li6JqY2K.js → LayersTwo01-CsbV79W9.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BAk65lFq.js → LayoutLeft-BjhMzXil.js} +1 -1
- package/dist/client/assets/{Link01-NJWLnzFs.js → Link01-CBvOA17k.js} +1 -1
- package/dist/client/assets/{LinkExternal01-B8e_Oa3I.js → LinkExternal01-v1Fp9c9j.js} +1 -1
- package/dist/client/assets/{List-Cc_Ri6eQ.js → List-DxiRK8pO.js} +1 -1
- package/dist/client/assets/{Loading01-Cbk1oNZ2.js → Loading01-CDOurw-F.js} +1 -1
- package/dist/client/assets/{Lock01-dP10fLup.js → Lock01-jAI5MKWg.js} +1 -1
- package/dist/client/assets/{Play-DqxAqUbl.js → Play-DSE8IZVS.js} +1 -1
- package/dist/client/assets/{Plus-CqWob4tu.js → Plus-OTc7Ql1V.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-B6R5Js1R.js → RefreshCcw01-QnfLSKau.js} +1 -1
- package/dist/client/assets/{Save01-BfieBu6m.js → Save01-Df_qJsfN.js} +1 -1
- package/dist/client/assets/{SearchMd-DJI6OMcD.js → SearchMd-D6jy19cO.js} +1 -1
- package/dist/client/assets/{Settings01-BWkL3Bf9.js → Settings01-Bl2wNagM.js} +1 -1
- package/dist/client/assets/{Shield01-DMT1motk.js → Shield01-B145EOAd.js} +1 -1
- package/dist/client/assets/{Terminal-zNrinv6B.js → Terminal-D3ILbCbK.js} +1 -1
- package/dist/client/assets/{Tool01-CUx5BAY-.js → Tool01-BBVRBzC0.js} +1 -1
- package/dist/client/assets/{Trash01-C0891dQq.js → Trash01-DhGTBhjv.js} +1 -1
- package/dist/client/assets/{Upload01-ngHWsp64.js → Upload01-DvtQC2yf.js} +1 -1
- package/dist/client/assets/{Users03-FsZwQwZq.js → Users03-B2n8Cd76.js} +1 -1
- package/dist/client/assets/{X-CeRZ6ROs.js → X-DVxsAMCH.js} +1 -1
- package/dist/client/assets/{XAxis-B4Pxztvn.js → XAxis-D14vbkR0.js} +1 -1
- package/dist/client/assets/{XCircle-X3Ds2fko.js → XCircle-l3Ck-71_.js} +1 -1
- package/dist/client/assets/{XClose-BieEiV6P.js → XClose-C8g1LxXV.js} +1 -1
- package/dist/client/assets/{Zap-B-qa654H.js → Zap-DUVjsAS1.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-BXeLz6mJ.js → agent-connections-preview-D0-1Au_l.js} +1 -1
- package/dist/client/assets/{agent-detail-2cFCKx9t.js → agent-detail-BALBko9m.js} +1 -1
- package/dist/client/assets/{agents-DS-16MLo.js → agents-BuGtmP_d.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-Bb5LHAPU.js → ai-providers-logos-NSo4Ckh1.js} +1 -1
- package/dist/client/assets/{alert-dialog-DgTufZ_p.js → alert-dialog-DfOenbUZ.js} +1 -1
- package/dist/client/assets/{auth-catchall-zO2o6cw1.js → auth-catchall-BAl96W8M.js} +1 -1
- package/dist/client/assets/{automation-detail-CyiDphKi.js → automation-detail-D16eCAb7.js} +1 -1
- package/dist/client/assets/{automations-CBvKrAy1.js → automations-UpOWNkQ6.js} +1 -1
- package/dist/client/assets/{avatar-w6QMWHVj.js → avatar-DexhTB4g.js} +1 -1
- package/dist/client/assets/{badge-B-_hRtCy.js → badge-C7XTRm7k.js} +1 -1
- package/dist/client/assets/{binder-BEJ4wRzw.js → binder--omYMrhv.js} +1 -1
- package/dist/client/assets/{breadcrumb-Dk9kRV2t.js → breadcrumb-h9Dq7GJ0.js} +1 -1
- package/dist/client/assets/{card-BSGld6G2.js → card-Cm-keK-z.js} +1 -1
- package/dist/client/assets/{chart-CEfru1MQ.js → chart-BkIsuiHb.js} +1 -1
- package/dist/client/assets/{checkbox-COsQJsO9.js → checkbox-B92JdB3t.js} +1 -1
- package/dist/client/assets/{collapsible-BCGKc4Wz.js → collapsible-B5VFLcG-.js} +1 -1
- package/dist/client/assets/{collection-detail-BimbOEiL.js → collection-detail-BUpBhGP1.js} +1 -1
- package/dist/client/assets/{collection-display-button-CuyLh-NC.js → collection-display-button-CEqdF8O7.js} +1 -1
- package/dist/client/assets/{collection-search-aJlY7LHs.js → collection-search-CPQlTmfx.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CcbJTCba.js → collection-table-wrapper-BVpN3w_L.js} +1 -1
- package/dist/client/assets/{collection-tabs-B2Xeppc1.js → collection-tabs-DwGvAiHF.js} +1 -1
- package/dist/client/assets/{command-CyHipwcz.js → command-BYr1e0yf.js} +1 -1
- package/dist/client/assets/{connect-3nC8bK4k.js → connect-DKqC06uo.js} +1 -1
- package/dist/client/assets/{connection-card-iA_b7WBI.js → connection-card-BDqdYEuX.js} +1 -1
- package/dist/client/assets/{connection-detail-B4CoR-IH.js → connection-detail-CHMgcK2a.js} +1 -1
- package/dist/client/assets/{connection-status-BddpcBJZ.js → connection-status-B854Axgl.js} +1 -1
- package/dist/client/assets/{connections-B-zXLcDP.js → connections-DxOgNXy0.js} +1 -1
- package/dist/client/assets/{constants-CDL9XClm.js → constants-BZUBXkLq.js} +1 -1
- package/dist/client/assets/constants-DgbSVhNJ.js +1 -0
- package/dist/client/assets/{context-DDV_uL9a.js → context-GHqlq7Gd.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CG01zre5.js → create-organization-dialog-Cum8PmLv.js} +1 -1
- package/dist/client/assets/{create-project-dialog-5e-piQzY.js → create-project-dialog-d10TQ9K8.js} +1 -1
- package/dist/client/assets/{danger-_ZcnVgTL.js → danger-qmT_QFAs.js} +1 -1
- package/dist/client/assets/{danger-zone-e3foS_su.js → danger-zone-daxj8FQE.js} +1 -1
- package/dist/client/assets/{dependencies-DUviAtSp.js → dependencies-sz-4aCSB.js} +1 -1
- package/dist/client/assets/{dialog-DxTRqiug.js → dialog-PlqYdiap.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CdjuOUR6.js → dropdown-menu-V8gWmDzD.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DszdejBu.js → dynamic-plugin-layout-PDo9TaOG.js} +1 -1
- package/dist/client/assets/{editable-task-title-44X_8A19.js → editable-task-title-CXa2sXGX.js} +1 -1
- package/dist/client/assets/{empty-state-v8jdj56V.js → empty-state-BUpyINsX.js} +1 -1
- package/dist/client/assets/{empty-state-Bj_isc1T.js → empty-state-CADB2xYt.js} +1 -1
- package/dist/client/assets/{env-vars-editor-Bs6jziXp.js → env-vars-editor-Crsr3jiO.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Cyjq-Q5I.js → extract-connection-data-CBWW8njI.js} +1 -1
- package/dist/client/assets/{file-browser-4NMlO2k_.js → file-browser-Ba38jp_3.js} +2 -2
- package/dist/client/assets/{form-BV3tSlED.js → form-CnUcVXlu.js} +1 -1
- package/dist/client/assets/{general-LSfgt8-y.js → general-D78WAnZa.js} +1 -1
- package/dist/client/assets/{grid-view-BD9vYk3H.js → grid-view-D92iM48j.js} +1 -1
- package/dist/client/assets/{home-Ck605SqF.js → home-Dh3Zkl7g.js} +1 -1
- package/dist/client/assets/{index-L6huQtcJ.js → index-AtuNXtl1.js} +1 -1
- package/dist/client/assets/{index-B70G5L15.js → index-BAS3V89m.js} +1 -1
- package/dist/client/assets/{index-zJEaoyYS.js → index-BG9x5ELw.js} +1 -1
- package/dist/client/assets/{index-rWegviRE.js → index-Bs-gkatC.js} +1 -1
- package/dist/client/assets/{index-BE93ZIdg.js → index-CMdtjEkH.js} +1 -1
- package/dist/client/assets/{index-DlhaGZnK.js → index-Ce1KA469.js} +1 -1
- package/dist/client/assets/{index-Dg_kVhT7.js → index-D0LkSlcd.js} +1 -1
- package/dist/client/assets/{index-CZ7yh8sQ.js → index-DDOXVfmG.js} +1 -1
- package/dist/client/assets/{index-uQDoUdMq.js → index-DINW__d9.js} +1 -1
- package/dist/client/assets/{index-BXUNq6d7.js → index-SkQC2bL2.js} +3 -3
- package/dist/client/assets/{infiniteQueryObserver-DXFe0xIV.js → infiniteQueryObserver-dFlgfKVl.js} +1 -1
- package/dist/client/assets/{input-BFH8rk50.js → input-C4xXFdLa.js} +1 -1
- package/dist/client/assets/{integration-icon-D6SJHU0f.js → integration-icon-9nN5AvVn.js} +1 -1
- package/dist/client/assets/{label-DE7vX487.js → label-B5UIAzjB.js} +1 -1
- package/dist/client/assets/{layout-B_GGomJW.js → layout-C93ItuDu.js} +1 -1
- package/dist/client/assets/{layout-B2GnF_Vp.js → layout-DIeoK390.js} +1 -1
- package/dist/client/assets/{login-CgzRmuxY.js → login-Cum9TENA.js} +1 -1
- package/dist/client/assets/{logo-upload-Bfzj_LQV.js → logo-upload-HuBGdFvy.js} +1 -1
- package/dist/client/assets/{markdown-Da-6gcG9.js → markdown-C7LUMDS1.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CNc9yMN5.js → mcp-app-renderer-8UT29L5G.js} +1 -1
- package/dist/client/assets/{mcp-server-card-s9NGsKpt.js → mcp-server-card--KsSGXj4.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-fMXGyX4W.js → mcp-server-detail-DpFZrrxK.js} +2 -2
- package/dist/client/assets/{members-BvBWfv9e.js → members-Cv4ALw5c.js} +1 -1
- package/dist/client/assets/{monaco-editor-VspAvYbk.js → monaco-editor-CGQB1ouQ.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-Bdujw4Ym.js → monitoring-dashboard-edit-_8LF_BxB.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-CSfkxnkl.js → monitoring-dashboard-view-CZdUWDWw.js} +1 -1
- package/dist/client/assets/{monitoring-B1jfqgQN.js → monitoring-jUgSe2al.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Ds_uiyYJ.js → monitoring-stats-row-DOJg3snj.js} +1 -1
- package/dist/client/assets/{oauth-callback-BNPNdlSW.js → oauth-callback-DUHDiUnV.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CODmoIp9.js → oauth-callback-ai-provider-DJ-b74-1.js} +1 -1
- package/dist/client/assets/{org-ai-providers-CQKU4ds_.js → org-ai-providers-DUCq5EUw.js} +1 -1
- package/dist/client/assets/{page-BfphKBfj.js → page-DAq05p7G.js} +1 -1
- package/dist/client/assets/{page-Bbbh0c0Z.js → page-SgyDrWHD.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Cx_CuKe3.js → plugin-empty-state-CrnlpA9V.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BWhKyfJ8.js → plugin-empty-state-Dnds-DCV.js} +1 -1
- package/dist/client/assets/{plugin-header-ET8DV5kQ.js → plugin-header-C1XYEeTv.js} +1 -1
- package/dist/client/assets/{plugin-header-ncr8MkbN.js → plugin-header-CIduSygp.js} +1 -1
- package/dist/client/assets/plugins-CJcJdSWL.js +1 -0
- package/dist/client/assets/{popover-BcyJids_.js → popover-U_QlVu0r.js} +1 -1
- package/dist/client/assets/{project-app-view-BdLdOYqG.js → project-app-view-D9t5-mJm.js} +1 -1
- package/dist/client/assets/{project-layout-DReK69oR.js → project-layout-BL0jttJZ.js} +1 -1
- package/dist/client/assets/{project-plugins-CXWguN_r.js → project-plugins-By0aRQeH.js} +1 -1
- package/dist/client/assets/{projects-list-CZANuMq5.js → projects-list-C2BO1TYf.js} +1 -1
- package/dist/client/assets/{registry-layout-CqXQ571U.js → registry-layout-CNpSd9I3.js} +1 -1
- package/dist/client/assets/{registry-utils-CaVl1vKg.js → registry-utils-Bi8LTB_e.js} +1 -1
- package/dist/client/assets/{reports-layout-CQyNOFqA.js → reports-layout-DH4L5-lG.js} +1 -1
- package/dist/client/assets/{reset-password-Bt_v8_59.js → reset-password-BiJO11OF.js} +1 -1
- package/dist/client/assets/{resizable-B4X_WbHf.js → resizable-XfUJo45G.js} +1 -1
- package/dist/client/assets/{save-actions-Py9YKTe0.js → save-actions-AenTNPs2.js} +1 -1
- package/dist/client/assets/{scroll-area-R7PT492V.js → scroll-area-BvqSXnHA.js} +1 -1
- package/dist/client/assets/{select-B-f7jgVG.js → select-Bqr12jkn.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-YanYQUBn.js → select-virtual-mcp-DorfgjZR.js} +1 -1
- package/dist/client/assets/{sheet-7nFLkS7G.js → sheet-D7MnTm5h.js} +1 -1
- package/dist/client/assets/{shell-layout-Dp8xiQMR.js → shell-layout-F6dMRYN1.js} +2 -2
- package/dist/client/assets/{sidebar-settings-w0p27D0n.js → sidebar-settings-ZSwNsZur.js} +1 -1
- package/dist/client/assets/{skeleton-CK2-6UkT.js → skeleton-xiE088f2.js} +1 -1
- package/dist/client/assets/{spinner-B1-EIDBS.js → spinner-Bt_p6wlU.js} +1 -1
- package/dist/client/assets/{store-invite-DVPM6U-x.js → store-invite-BxsZ0zsl.js} +1 -1
- package/dist/client/assets/{switch-4UL4iV3X.js → switch-BIAgKxiJ.js} +1 -1
- package/dist/client/assets/{table-Bu98B5a-.js → table-c-SrSmwK.js} +1 -1
- package/dist/client/assets/{tabs-Cif80TZ4.js → tabs-CytiJeE2.js} +1 -1
- package/dist/client/assets/{task-status-BWKjAgiX.js → task-status-9RY3Ya8o.js} +1 -1
- package/dist/client/assets/tasks-C43Ik9tC.js +1 -0
- package/dist/client/assets/{tasks-panel-D6Bb-wiS.js → tasks-panel-CftcenZ4.js} +1 -1
- package/dist/client/assets/{textarea-DPLd5P1K.js → textarea-Buug1Hxe.js} +1 -1
- package/dist/client/assets/{time-range-picker-FJd_w9AH.js → time-range-picker-BlD0TDtN.js} +1 -1
- package/dist/client/assets/{toggle-group-B4QQy8X1.js → toggle-group-abCGptw4.js} +1 -1
- package/dist/client/assets/{tools-list-BgmW-tI4.js → tools-list-BdA1jEJI.js} +1 -1
- package/dist/client/assets/{tooltip-BGPUMzDS.js → tooltip-Ckpai_jH.js} +1 -1
- package/dist/client/assets/{topbar-portal-CLOTo-7w.js → topbar-portal-B-Tb-3gt.js} +1 -1
- package/dist/client/assets/{types-DZ5M-eMJ.js → types-CUEMI47Y.js} +1 -1
- package/dist/client/assets/{use-automations-D7j59hRT.js → use-automations-Cw8FAF0H.js} +1 -1
- package/dist/client/assets/{use-binding-CZ8osTa1.js → use-binding-f1akiPTf.js} +1 -1
- package/dist/client/assets/{use-collections-yY78nnLx.js → use-collections-C3CSj681.js} +1 -1
- package/dist/client/assets/{use-connection-lXrlfojY.js → use-connection-DSkVzqSP.js} +1 -1
- package/dist/client/assets/{use-copy-DZJI58oZ.js → use-copy-F9tiQWTi.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DK_WDS9Y.js → use-create-virtual-mcp-C5n2ShE6.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-C-TK62Eo.js → use-infinite-scroll-C1Dhvj0C.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-C24f0cqa.js → use-install-from-registry-BQfcs7M8.js} +1 -1
- package/dist/client/assets/{use-list-state-D6LU1koz.js → use-list-state-Djxe5eyh.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DT9l3i02.js → use-mcp-prompts-D5tu2gbi.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-DhBJVSsg.js → use-mcp-resources-D0eHe68n.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CwVNqTmj.js → use-mcp-tools-DTZxAm-y.js} +1 -1
- package/dist/client/assets/{use-members-fpZqw1dy.js → use-members-DdPysVve.js} +1 -1
- package/dist/client/assets/{use-mobile-B0lEbMk3.js → use-mobile-DqlomLIB.js} +1 -1
- package/dist/client/assets/{use-project-BnRSDoVD.js → use-project-Cdk7AuZE.js} +1 -1
- package/dist/client/assets/{use-store-discovery-C9fJhQ4Y.js → use-store-discovery-C_al4z4H.js} +1 -1
- package/dist/client/assets/{use-view-mode-0w9n1sJ-.js → use-view-mode-Ag3VBJ77.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CyoGC0aH.js → use-virtual-mcp-V0XoWMM_.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BXEdoCXW.js +1 -0
- package/dist/client/assets/{useMutation-CkdHuTyE.js → useMutation-CXgAMvoC.js} +1 -1
- package/dist/client/assets/useQuery-CtOvMPbo.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-Ds_6ilsi.js +1 -0
- package/dist/client/assets/{user-sbKkVV9F.js → user-C2BDT4Rq.js} +1 -1
- package/dist/client/assets/{workflow-CpP3zoVI.js → workflow-Bp2ajWVc.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +243 -243
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
- package/dist/server/node_modules/postgres-array/index.js +97 -0
- package/dist/server/node_modules/{xtend/LICENSE → postgres-array/license} +2 -1
- 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-bytea/index.js +33 -0
- package/dist/server/node_modules/{pg/LICENSE → postgres-bytea/license} +6 -6
- package/dist/server/node_modules/postgres-bytea/package.json +34 -0
- package/dist/server/node_modules/postgres-bytea/readme.md +34 -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/server.js +217 -217
- package/package.json +1 -1
- package/dist/client/assets/constants-DxY-8FrK.js +0 -1
- package/dist/client/assets/plugins-BdyM0ZUw.js +0 -1
- package/dist/client/assets/tasks-tenjlvFT.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BlrmUHYA.js +0 -1
- package/dist/client/assets/useQuery-Bmc4jnG2.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DD4jjrsx.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/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,g as be,e as _e,u as le,r as I,j as t,J as Ce,O as Z,w as M,B as U,t as Ne,M as Se,x as we,K as J}from"./index-BXUNq6d7.js";import{E as ce}from"./empty-state-v8jdj56V.js";import{V as de,a as ke}from"./layout-B2GnF_Vp.js";import{S as De}from"./save-actions-Py9YKTe0.js";import{u as Ae}from"./ai-providers-logos-Bb5LHAPU.js";import{T as Te,a as Ie,M as Me,S as ee}from"./task-status-BWKjAgiX.js";import{V as te}from"./select-virtual-mcp-YanYQUBn.js";import{I as Ee}from"./integration-icon-D6SJHU0f.js";import{U as $e}from"./user-sbKkVV9F.js";import{c as ze,b as Oe,d as Re,e as Q,f as Pe}from"./use-automations-D7j59hRT.js";import{u as me}from"./index-rWegviRE.js";import{b as ue,d as pe,c as fe,A as xe,e as he,h as ge,a as ye,f as je}from"./alert-dialog-DgTufZ_p.js";import{b as se,d as Ve,c as Fe,e as Le,B as Ue,a as Be}from"./breadcrumb-Dk9kRV2t.js";import{I as He}from"./input-BFH8rk50.js";import{c as re,a as Ke,d as We,e as qe,f as Ge,b as Je,D as Qe}from"./dropdown-menu-CdjuOUR6.js";import{P as ne,a as oe,b as ie}from"./popover-BcyJids_.js";import{S as Ye}from"./switch-4UL4iV3X.js";import{T as Xe,a as Ze,b as et}from"./tooltip-BGPUMzDS.js";import{u as tt}from"./useQuery-Bmc4jnG2.js";import{i as st,u as rt,a as nt}from"./constants-CDL9XClm.js";import{b as ot}from"./use-virtual-mcp-CyoGC0aH.js";import{i as it}from"./ArrowUp-BuKX1RSZ.js";import{s as H}from"./Clock-9Mm0U0Dg.js";import{i as at}from"./Edit01-gYPHsLoC.js";import{i as G}from"./Loading01-Cbk1oNZ2.js";import{s as lt}from"./Plus-CqWob4tu.js";import{s as ct}from"./Trash01-C0891dQq.js";import{t as ae}from"./Users03-FsZwQwZq.js";import{s as Y}from"./XClose-BieEiV6P.js";import{a as ve,t as dt,b as mt}from"./context-DDV_uL9a.js";import{f as ut}from"./formatDistanceToNow-Cb2QZZJn.js";import"./Save01-BfieBu6m.js";import"./skeleton-CK2-6UkT.js";import"./spinner-B1-EIDBS.js";import"./use-mcp-prompts-DT9l3i02.js";import"./dialog-DxTRqiug.js";import"./X-CeRZ6ROs.js";import"./form-BV3tSlED.js";import"./label-DE7vX487.js";import"./index-B70G5L15.js";import"./usage-B8rgFVXq.js";import"./ChevronDown-DHeagNGb.js";import"./Lock01-dP10fLup.js";import"./XCircle-X3Ds2fko.js";import"./AlertCircle-CnfwZdxb.js";import"./select-B-f7jgVG.js";import"./ChevronUp-J7upZD3-.js";import"./index-L6huQtcJ.js";import"./Check-7kB05ju_.js";import"./org-ai-providers-CQKU4ds_.js";import"./useMutation-CkdHuTyE.js";import"./EyeOff-L-SLicw9.js";import"./Eye-Cn6YseXl.js";import"./Key01-Dq5b7fdA.js";import"./card-BSGld6G2.js";import"./avatar-w6QMWHVj.js";import"./ArrowLeft-C3_bzjZf.js";import"./use-copy-DZJI58oZ.js";import"./tabs-Cif80TZ4.js";import"./badge-B-_hRtCy.js";import"./collapsible-BCGKc4Wz.js";import"./index-Dg_kVhT7.js";import"./Code01-DDbKsccR.js";import"./checkbox-COsQJsO9.js";import"./AlignLeft-zj1VrWVO.js";import"./Image01-U7ZIAIPc.js";import"./RefreshCcw01-B6R5Js1R.js";import"./SearchMd-DJI6OMcD.js";import"./Settings01-BWkL3Bf9.js";import"./Tool01-CUx5BAY-.js";import"./use-mcp-resources-DhBJVSsg.js";import"./ChevronRight-Blv21S_7.js";import"./Copy01-BexEalI-.js";import"./marked.esm-BaswSlok.js";import"./markdown-Da-6gcG9.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CNc9yMN5.js";import"./types-DZ5M-eMJ.js";import"./Globe02-CyGtzZ8k.js";import"./LayersTwo01-Li6JqY2K.js";import"./use-collections-yY78nnLx.js";import"./useSuspenseInfiniteQuery-DD4jjrsx.js";import"./infiniteQueryObserver-DXFe0xIV.js";import"./CheckCircle-DrGaevdP.js";import"./use-create-virtual-mcp-DK_WDS9Y.js";import"./Container-Ci_1Xm4L.js";import"./decopilot-events-Brt4gAR6.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 pt(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 x=parseInt(o[1]??"1");return x%7===0?`Every ${x/7} weeks`:`Every ${x} days`}const a=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(a){const x=(a[2]??"0").padStart(2,"0"),d=(a[1]??"0").padStart(2,"0");return`Every day at ${x}:${d} UTC`}const h=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(h){const d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(h[3]??"0")]??"day",l=(h[2]??"0").padStart(2,"0"),v=(h[1]??"0").padStart(2,"0");return`Every ${d} at ${l}:${v} UTC`}return s}function ft(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 xt(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 ht(s,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[s]??s:s}const gt=[{label:"Minute",cron:"* * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function yt(s){const e=B.c(26),{automationId:r,open:n,onOpenChange:o,onCustomSelect:a}=s,h=Q(),[x,d]=I.useState(!1),l=n??x;let v;e[0]!==o?(v=C=>{o?o(C):d(C)},e[0]=o,e[1]=v):v=e[1];const f=v;let u;e[2]!==h||e[3]!==r||e[4]!==f?(u=async C=>{try{await h.mutateAsync({automation_id:r,type:"cron",cron_expression:C}),M.success("Starter added"),f(!1)}catch(k){const T=k,D=T instanceof Error?T.message:"Failed to add starter";M.error(D)}},e[2]=h,e[3]=r,e[4]=f,e[5]=u):u=e[5];const N=u;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(Ke,{asChild:!0,children:t.jsxs(U,{variant:"outline",size:"sm",children:[t.jsx(lt,{size:14}),"Add Starter"]})}),e[6]=m):m=e[6];let j;e[7]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsxs(We,{className:"gap-2.5",children:[t.jsx(H,{size:14,className:"text-muted-foreground shrink-0"}),"Every..."]}),e[7]=j):j=e[7];let b;e[8]!==h||e[9]!==N?(b=gt.map(C=>t.jsxs(re,{className:"gap-2.5",onSelect:()=>N(C.cron),disabled:h.isPending,children:[t.jsx(H,{size:14,className:"text-muted-foreground shrink-0"}),"Every ",C.label]},C.cron)),e[8]=h,e[9]=N,e[10]=b):b=e[10];let i;e[11]!==b?(i=t.jsxs(qe,{children:[j,t.jsx(Ge,{className:"w-[160px]",children:b})]}),e[11]=b,e[12]=i):i=e[12];let p;e[13]!==f||e[14]!==a?(p=()=>{f(!1),a?.()},e[13]=f,e[14]=a,e[15]=p):p=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(H,{size:14,className:"text-muted-foreground shrink-0"}),e[16]=_):_=e[16];let g;e[17]!==p?(g=t.jsxs(re,{className:"gap-2.5",onSelect:p,children:[_,"Custom (cron)"]}),e[17]=p,e[18]=g):g=e[18];let y;e[19]!==i||e[20]!==g?(y=t.jsxs(Je,{align:"end",className:"w-[200px]",children:[i,g]}),e[19]=i,e[20]=g,e[21]=y):y=e[21];let S;return e[22]!==f||e[23]!==l||e[24]!==y?(S=t.jsxs(Qe,{open:l,onOpenChange:f,children:[m,y]}),e[22]=f,e[23]=l,e[24]=y,e[25]=S):S=e[25],S}function jt(s){const e=B.c(56),{trigger:r,automationId:n}=s,o=Pe(),a=Q(),[h,x]=I.useState(!1);let d;e[0]!==r.cron_expression?(d=r.cron_expression?xt(r.cron_expression):null,e[0]=r.cron_expression,e[1]=d):d=e[1];const l=d,[v,f]=I.useState(l?.count??1),[u,N]=I.useState(!1),[m,j]=I.useState(r.cron_expression??""),b=o.isPending||a.isPending,i=r.type==="cron";let p;e[2]!==n||e[3]!==o||e[4]!==r.id?(p=async()=>{try{await o.mutateAsync({trigger_id:r.id,automation_id:n}),M.success("Starter removed")}catch{M.error("Failed to remove starter")}x(!1)},e[2]=n,e[3]=o,e[4]=r.id,e[5]=p):p=e[5];const _=p;let g;e[6]!==a||e[7]!==n||e[8]!==m||e[9]!==o||e[10]!==r.cron_expression||e[11]!==r.id?(g=async()=>{const A=m.trim();if(!A||!K(A)||A===r.cron_expression){N(!1),j(r.cron_expression??"");return}try{await a.mutateAsync({automation_id:n,type:"cron",cron_expression:A}),await o.mutateAsync({trigger_id:r.id,automation_id:n}),N(!1)}catch{M.error("Failed to update starter"),j(r.cron_expression??""),N(!1)}},e[6]=a,e[7]=n,e[8]=m,e[9]=o,e[10]=r.cron_expression,e[11]=r.id,e[12]=g):g=e[12];const y=g;let S;e[13]!==a||e[14]!==n||e[15]!==l||e[16]!==o||e[17]!==r.cron_expression||e[18]!==r.id?(S=async A=>{if(!l)return;const W=Math.max(1,A),q=ft(W,l.unit);if(q!==r.cron_expression)try{await a.mutateAsync({automation_id:n,type:"cron",cron_expression:q}),await o.mutateAsync({trigger_id:r.id,automation_id:n})}catch{M.error("Failed to update starter"),f(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]=S):S=e[19];const C=S;let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(H,{size:14,className:"text-muted-foreground shrink-0"}),e[20]=k):k=e[20];let T;e[21]!==v||e[22]!==m||e[23]!==C||e[24]!==y||e[25]!==l||e[26]!==i||e[27]!==u||e[28]!==b||e[29]!==r.cron_expression||e[30]!==r.event_type?(T=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:v,onChange:A=>f(parseInt(A.target.value)||1),onBlur:()=>C(v),onKeyDown:A=>{A.key==="Enter"&&A.target.blur(),A.key==="Escape"&&f(l.count)},disabled:b,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:ht(l.unit,v)})]}):i&&u?t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"text",value:m,onChange:A=>j(A.target.value),onBlur:y,onKeyDown:A=>{A.key==="Enter"&&A.target.blur(),A.key==="Escape"&&(N(!1),j(r.cron_expression??""))},className:"flex-1 text-sm font-mono bg-transparent outline-none",autoFocus:!0}),m&&!K(m)&&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?pt(r.cron_expression??""):`${r.event_type} event`}),e[21]=v,e[22]=m,e[23]=C,e[24]=y,e[25]=l,e[26]=i,e[27]=u,e[28]=b,e[29]=r.cron_expression,e[30]=r.event_type,e[31]=T):T=e[31];let D;e[32]!==b?(D=b&&t.jsx(G,{size:13,className:"animate-spin text-muted-foreground"}),e[32]=b,e[33]=D):D=e[33];let w;e[34]!==l||e[35]!==i||e[36]!==u||e[37]!==r.cron_expression?(w=i&&!l&&!u&&t.jsx(U,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>{j(r.cron_expression??""),N(!0)},children:t.jsx(at,{size:13,className:"text-muted-foreground"})}),e[34]=l,e[35]=i,e[36]=u,e[37]=r.cron_expression,e[38]=w):w=e[38];let P;e[39]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(U,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>x(!0),children:t.jsx(Y,{size:13,className:"text-muted-foreground"})}),e[39]=P):P=e[39];let z;e[40]!==D||e[41]!==w?(z=t.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[D,w,P]}),e[40]=D,e[41]=w,e[42]=z):z=e[42];let E;e[43]!==z||e[44]!==T?(E=t.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2.5 rounded-lg border border-border bg-background group",children:[k,T,z]}),e[43]=z,e[44]=T,e[45]=E):E=e[45];let V;e[46]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsxs(ue,{children:[t.jsx(fe,{children:"Remove Starter"}),t.jsx(pe,{children:"Are you sure you want to remove this starter?"})]}),e[46]=V):V=e[46];let F;e[47]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(xe,{children:"Cancel"}),e[47]=F):F=e[47];let O;e[48]!==_?(O=t.jsxs(ye,{children:[V,t.jsxs(he,{children:[F,t.jsx(ge,{onClick:_,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Remove"})]})]}),e[48]=_,e[49]=O):O=e[49];let $;e[50]!==h||e[51]!==O?($=t.jsx(je,{open:h,onOpenChange:x,children:O}),e[50]=h,e[51]=O,e[52]=$):$=e[52];let R;return e[53]!==E||e[54]!==$?(R=t.jsxs(t.Fragment,{children:[E,$]}),e[53]=E,e[54]=$,e[55]=R):R=e[55],R}function vt(s){const e=B.c(41),{selectedId:r,onChange:n}=s,[o,a]=I.useState(!1),h=ot();let x,d;e[0]!==h||e[1]!==r?(d=h.filter(bt),x=r?d.find(m=>m.id===r):null,e[0]=h,e[1]=r,e[2]=x,e[3]=d):(x=e[2],d=e[3]);const l=x;if(l){let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(ae,{size:16}),e[4]=m):m=e[4];let j;e[5]!==l.icon||e[6]!==l.title?(j=t.jsx(Ee,{icon:l.icon,name:l.title,size:"sm",fallbackIcon:m,className:"rounded-md shrink-0"}),e[5]=l.icon,e[6]=l.title,e[7]=j):j=e[7];let b;e[8]!==l.title?(b=t.jsx("span",{className:"text-sm font-medium truncate",children:l.title}),e[8]=l.title,e[9]=b):b=e[9];let i;e[10]!==j||e[11]!==b?(i=t.jsx(ne,{asChild:!0,children:t.jsxs("button",{type:"button",className:"flex items-center gap-3 flex-1 min-w-0 text-left cursor-pointer",children:[j,b]})}),e[10]=j,e[11]=b,e[12]=i):i=e[12];let p;e[13]!==n?(p=T=>{n(T),a(!1)},e[13]=n,e[14]=p):p=e[14];let _;e[15]!==r||e[16]!==p||e[17]!==d?(_=t.jsx(oe,{className:"w-[550px] p-0 overflow-hidden",align:"start",sideOffset:8,children:t.jsx(te,{virtualMcps:d,selectedVirtualMcpId:r,onVirtualMcpChange:p})}),e[15]=r,e[16]=p,e[17]=d,e[18]=_):_=e[18];let g;e[19]!==o||e[20]!==i||e[21]!==_?(g=t.jsxs(ie,{open:o,onOpenChange:a,children:[i,_]}),e[19]=o,e[20]=i,e[21]=_,e[22]=g):g=e[22];let y;e[23]!==n?(y=()=>n(null),e[23]=n,e[24]=y):y=e[24];let S;e[25]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Y,{size:13}),e[25]=S):S=e[25];let C;e[26]!==y?(C=t.jsx(U,{type:"button",variant:"ghost",size:"icon",className:"shrink-0 size-7 text-muted-foreground hover:text-foreground",onClick:y,title:"Remove agent",children:S}),e[26]=y,e[27]=C):C=e[27];let k;return e[28]!==C||e[29]!==g?(k=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:[g,C]}),e[28]=C,e[29]=g,e[30]=k):k=e[30],k}let v;e[31]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(ne,{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(ae,{size:16})]}),t.jsx("span",{className:"text-sm text-muted-foreground",children:"No agent selected. All connections available."})]})}),e[31]=v):v=e[31];let f;e[32]!==n?(f=m=>{n(m),a(!1)},e[32]=n,e[33]=f):f=e[33];let u;e[34]!==r||e[35]!==f||e[36]!==d?(u=t.jsx(oe,{className:"w-[550px] p-0 overflow-hidden",align:"start",sideOffset:8,children:t.jsx(te,{virtualMcps:d,selectedVirtualMcpId:r,onVirtualMcpChange:f})}),e[34]=r,e[35]=f,e[36]=d,e[37]=u):u=e[37];let N;return e[38]!==o||e[39]!==u?(N=t.jsxs(ie,{open:o,onOpenChange:a,children:[v,u]}),e[38]=o,e[39]=u,e[40]=N):N=e[40],N}function bt(s){return!s.id||!st(s.id)}function _t({automationId:s,automation:e}){const r=Re(),{createTask:n,setVirtualMcpId:o,setSelectedModel:a,setSelectedMode:h,sendMessage:x,credentialId:d,model:l}=ve(),[,v]=me(),f=e.messages?.[0]?.metadata?.tiptapDoc??void 0,[u,N]=I.useState(f),[m,j]=I.useState(f),[b,i]=I.useState(!1),[p,_]=I.useState(!1),[g,y]=I.useState(""),S=Q(),C=I.useRef(!1),k=c=>{N(c),C.current||(C.current=!0,f||j(c))},T=e.models?.credentialId||d||"",D=e.models?.thinking?.id||l?.modelId||"",w=Ne({defaultValues:{name:e.name,active:e.active,agent_id:e.agent?.id??"",credential_id:T,model_id:D}}),P=w.watch("active"),z=w.watch("agent_id"),E=w.watch("credential_id"),V=w.watch("model_id"),{models:F,isLoading:O}=Ae(E||void 0),$=F.find(c=>c.modelId===V)??null,R=async()=>{const c=w.getValues();try{const L=c.credential_id&&c.model_id?c.credential_id:"",X=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,mode:"passthrough"},models:{credentialId:L,thinking:{id:X}},messages:dt(u),temperature:0}),w.reset({...c,credential_id:L,model_id:X}),j(u),M.success("Automation saved"),!0}catch{return M.error("Failed to save automation"),!1}},A=()=>{w.reset(),k(m)},W=w.formState.isDirty||JSON.stringify(u??null)!==JSON.stringify(m??null),q=async()=>{if(W&&!await R())return;if(!u){M.error("No instructions configured for this automation");return}const c=w.getValues();o(c.agent_id||null),h("passthrough"),$&&E&&a({...$,keyId:E}),v(!0),n(),setTimeout(()=>{x(u,{toolApprovalLevel:"yolo"})},0)};return t.jsxs(t.Fragment,{children:[t.jsx(de,{children:t.jsx(De,{onSave:async()=>{await R()},onUndo:A,isDirty:W,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(He,{...w.register("name"),placeholder:"Automation name",className:"border-0 shadow-none px-0 text-2xl md:text-2xl font-semibold h-auto focus-visible:ring-0 bg-transparent"}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Se,{control:w.control,name:"active",render:({field:c})=>t.jsx(Ye,{checked:c.value,onCheckedChange:c.onChange,className:"cursor-pointer"})}),t.jsx("span",{className:"text-sm text-muted-foreground",children:P?"Active":"Inactive"}),t.jsx("span",{className:"text-muted-foreground/50 text-sm",children:"·"}),t.jsx($e,{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(yt,{automationId:s,open:b,onOpenChange:i,onCustomSelect:()=>{_(!0),y("")}})]}),e.triggers.length===0&&!p?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:()=>i(!0),children:"Add a starter"})," ","to get going."]})}):t.jsx("div",{className:"flex flex-col gap-2",children:e.triggers.map(c=>t.jsx(jt,{trigger:c,automationId:s},c.id))}),p&&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:g,onChange:c=>y(c.target.value),onBlur:async()=>{const c=g.trim();if(!(!c||!K(c)))try{await S.mutateAsync({automation_id:s,type:"cron",cron_expression:c}),M.success("Starter added"),_(!1),y("")}catch{M.error("Failed to add starter")}},onKeyDown:async c=>{const L=g.trim();c.key==="Enter"&&L&&K(L)&&c.target.blur(),c.key==="Escape"&&(_(!1),y(""))},placeholder:"0 9 * * 1-5",className:"flex-1 text-sm font-mono bg-transparent outline-none placeholder:text-muted-foreground/40",autoFocus:!0}),g&&!K(g)&&t.jsx("span",{className:"text-xs text-muted-foreground/60 shrink-0",children:"invalid"}),S.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:()=>{_(!1),y("")},children:t.jsx(Y,{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(vt,{selectedId:z||null,onChange:c=>w.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(Te,{tiptapDoc:u,setTiptapDoc:k,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(Ie,{virtualMcpId:z||null}),t.jsxs("div",{className:"flex items-center justify-end gap-1.5 p-2.5",children:[t.jsx(Me,{model:$,isLoading:O,credentialId:E||null,onCredentialChange:c=>{w.setValue("credential_id",c??"",{shouldDirty:!0}),w.setValue("model_id","",{shouldDirty:!0})},onModelChange:c=>w.setValue("model_id",c.modelId,{shouldDirty:!0}),placeholder:"Model"}),t.jsxs(Xe,{children:[t.jsx(Ze,{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:q,children:[t.jsx(it,{size:16}),"Test"]})}),t.jsx(et,{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(Nt,{automationId:s,triggerIds:e.triggers.map(c=>c.id)})]})]})]})}function Ct(s,e,r){const n=B.c(13);let o;n[0]!==s?(o={connectionId:nt,orgId:s},n[0]=s,n[1]=o):o=n[1];const a=rt(o);let h;n[2]!==e||n[3]!==s||n[4]!==r?(h=J.automationRuns(s,e,r),n[2]=e,n[3]=s,n[4]=r,n[5]=h):h=n[5];let x;n[6]!==a||n[7]!==r?(x=async()=>{if(!a)throw new Error("MCP client not available");const v=await a.callTool({name:"COLLECTION_THREADS_LIST",arguments:{where:{trigger_ids:r},limit:20}});return(v.structuredContent??v).items??[]},n[6]=a,n[7]=r,n[8]=x):x=n[8];const d=r.length>0;let l;return n[9]!==h||n[10]!==x||n[11]!==d?(l={queryKey:h,queryFn:x,enabled:d},n[9]=h,n[10]=x,n[11]=d,n[12]=l):l=n[12],tt(l)}function Nt(s){const e=B.c(22),{automationId:r,triggerIds:n}=s,{org:o}=le(),{switchToTask:a}=ve(),[,h]=me(),x=we(),{data:d,isLoading:l}=Ct(o.id,r,n),v=n.length>0;let f;e[0]!==r||e[1]!==o.id||e[2]!==x||e[3]!==d||e[4]!==n?(f=i=>{const p=i.subject,_=d??[];_.find(y=>y.id===p)?x.setQueryData(J.automationRuns(o.id,r,n),_.map(y=>y.id===p?{...y,status:i.data.status,updated_at:new Date().toISOString()}:y)):x.invalidateQueries({queryKey:J.automationRuns(o.id,r,n)})},e[0]=r,e[1]=o.id,e[2]=x,e[3]=d,e[4]=n,e[5]=f):f=e[5];let u;if(e[6]!==o.id||e[7]!==v||e[8]!==f?(u={orgId:o.id,enabled:v,onTaskStatus:f},e[6]=o.id,e[7]=v,e[8]=f,e[9]=u):u=e[9],mt(u),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(ce,{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 N;e[12]!==h||e[13]!==a?(N=async i=>{await a(i),h(!0)},e[12]=h,e[13]=a,e[14]=N):N=e[14];const m=N;let j;if(e[15]!==m||e[16]!==d){let i;e[18]!==m?(i=p=>{const _=ee[p.status]??ee.completed,g=_.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:()=>m(p.id),children:[t.jsx(g,{size:16,className:_.iconClassName}),t.jsx("span",{className:"flex-1 min-w-0 text-sm truncate",children:p.title}),t.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:ut(new Date(p.updated_at),{addSuffix:!0})})]},p.id)},e[18]=m,e[19]=i):i=e[19],j=d.map(i),e[15]=m,e[16]=d,e[17]=j}else j=e[17];let b;return e[20]!==j?(b=t.jsx("div",{className:"flex flex-col divide-y divide-border",children:j}),e[20]=j,e[21]=b):b=e[21],b}function or(){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}=be(e),n=_e(),{org:o}=le(),{data:a,isLoading:h}=ze(r),x=Oe(),[d,l]=I.useState(!1);let v;s[1]!==r||s[2]!==x||s[3]!==n||s[4]!==o?(v=async()=>{try{await x.mutateAsync(r),M.success("Automation deleted"),n({to:"/$org/$project/automations",params:{org:o.slug,project:Z}})}catch{M.error("Failed to delete automation")}l(!1)},s[1]=r,s[2]=x,s[3]=n,s[4]=o,s[5]=v):v=s[5];const f=v;if(h){let D;return s[6]===Symbol.for("react.memo_cache_sentinel")?(D=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]=D):D=s[6],D}if(!a){let D;return s[7]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(ce,{title:"Automation not found",description:"This automation may have been deleted."}),s[7]=D):D=s[7],D}let u;s[8]!==o.slug?(u=t.jsx(se,{children:t.jsx(Ve,{asChild:!0,children:t.jsx(Ce,{to:"/$org/$project/automations",params:{org:o.slug,project:Z},children:"Automations"})})}),s[8]=o.slug,s[9]=u):u=s[9];let N;s[10]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(Le,{}),s[10]=N):N=s[10];let m;s[11]!==a.name?(m=t.jsx(se,{children:t.jsx(Fe,{children:a.name})}),s[11]=a.name,s[12]=m):m=s[12];let j;s[13]!==u||s[14]!==m?(j=t.jsx(Ue,{children:t.jsxs(Be,{children:[u,N,m]})}),s[13]=u,s[14]=m,s[15]=j):j=s[15];const b=j;let i;s[16]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(de,{children:t.jsxs(U,{variant:"ghost",size:"sm",className:"h-7 text-destructive hover:text-destructive",onClick:()=>l(!0),children:[t.jsx(ct,{size:14}),"Delete"]})}),s[16]=i):i=s[16];let p;s[17]!==a||s[18]!==r?(p=t.jsx(_t,{automationId:r,automation:a},r),s[17]=a,s[18]=r,s[19]=p):p=s[19];let _;s[20]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(fe,{children:"Delete Automation"}),s[20]=_):_=s[20];let g;s[21]!==a.name?(g=t.jsxs(ue,{children:[_,t.jsxs(pe,{children:['Are you sure you want to delete "',a.name,'"? This action cannot be undone.']})]}),s[21]=a.name,s[22]=g):g=s[22];let y;s[23]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(xe,{children:"Cancel"}),s[23]=y):y=s[23];let S;s[24]!==f?(S=t.jsxs(he,{children:[y,t.jsx(ge,{onClick:f,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),s[24]=f,s[25]=S):S=s[25];let C;s[26]!==S||s[27]!==g?(C=t.jsxs(ye,{children:[g,S]}),s[26]=S,s[27]=g,s[28]=C):C=s[28];let k;s[29]!==d||s[30]!==C?(k=t.jsx(je,{open:d,onOpenChange:l,children:C}),s[29]=d,s[30]=C,s[31]=k):k=s[31];let T;return s[32]!==b||s[33]!==k||s[34]!==p?(T=t.jsxs(ke,{breadcrumb:b,children:[i,p,k]}),s[32]=b,s[33]=k,s[34]=p,s[35]=T):T=s[35],T}export{or as default};
|
|
1
|
+
import{c as B,g as be,e as _e,u as le,r as I,j as t,J as Ce,O as Z,w as M,B as U,t as Ne,M as Se,x as we,K as J}from"./index-SkQC2bL2.js";import{E as ce}from"./empty-state-BUpyINsX.js";import{V as de,a as ke}from"./layout-DIeoK390.js";import{S as De}from"./save-actions-AenTNPs2.js";import{u as Ae}from"./ai-providers-logos-NSo4Ckh1.js";import{T as Te,a as Ie,M as Me,S as ee}from"./task-status-9RY3Ya8o.js";import{V as te}from"./select-virtual-mcp-DorfgjZR.js";import{I as Ee}from"./integration-icon-9nN5AvVn.js";import{U as $e}from"./user-C2BDT4Rq.js";import{c as ze,b as Oe,d as Re,e as Q,f as Pe}from"./use-automations-Cw8FAF0H.js";import{u as me}from"./index-Bs-gkatC.js";import{b as ue,d as pe,c as fe,A as xe,e as he,h as ge,a as ye,f as je}from"./alert-dialog-DfOenbUZ.js";import{b as se,d as Ve,c as Fe,e as Le,B as Ue,a as Be}from"./breadcrumb-h9Dq7GJ0.js";import{I as He}from"./input-C4xXFdLa.js";import{c as re,a as Ke,d as We,e as qe,f as Ge,b as Je,D as Qe}from"./dropdown-menu-V8gWmDzD.js";import{P as ne,a as oe,b as ie}from"./popover-U_QlVu0r.js";import{S as Ye}from"./switch-BIAgKxiJ.js";import{T as Xe,a as Ze,b as et}from"./tooltip-Ckpai_jH.js";import{u as tt}from"./useQuery-CtOvMPbo.js";import{i as st,u as rt,a as nt}from"./constants-BZUBXkLq.js";import{b as ot}from"./use-virtual-mcp-V0XoWMM_.js";import{i as it}from"./ArrowUp-Bl5YEbbF.js";import{s as H}from"./Clock-DY1djxCP.js";import{i as at}from"./Edit01-KzFCPjcw.js";import{i as G}from"./Loading01-CDOurw-F.js";import{s as lt}from"./Plus-OTc7Ql1V.js";import{s as ct}from"./Trash01-DhGTBhjv.js";import{t as ae}from"./Users03-B2n8Cd76.js";import{s as Y}from"./XClose-C8g1LxXV.js";import{a as ve,t as dt,b as mt}from"./context-GHqlq7Gd.js";import{f as ut}from"./formatDistanceToNow-Cb2QZZJn.js";import"./Save01-Df_qJsfN.js";import"./skeleton-xiE088f2.js";import"./spinner-Bt_p6wlU.js";import"./use-mcp-prompts-D5tu2gbi.js";import"./dialog-PlqYdiap.js";import"./X-DVxsAMCH.js";import"./form-CnUcVXlu.js";import"./label-B5UIAzjB.js";import"./index-BAS3V89m.js";import"./usage-B8rgFVXq.js";import"./ChevronDown-BURkaeCD.js";import"./Lock01-jAI5MKWg.js";import"./XCircle-l3Ck-71_.js";import"./AlertCircle-Bu9DNwe-.js";import"./select-Bqr12jkn.js";import"./ChevronUp-Ql_IhfwF.js";import"./index-AtuNXtl1.js";import"./Check-CN56KhoF.js";import"./org-ai-providers-DUCq5EUw.js";import"./useMutation-CXgAMvoC.js";import"./EyeOff-D3iBtnD1.js";import"./Eye-CUyEl5IU.js";import"./Key01-Bfc7gsTd.js";import"./card-Cm-keK-z.js";import"./avatar-DexhTB4g.js";import"./ArrowLeft-BLUY3Pjw.js";import"./use-copy-F9tiQWTi.js";import"./tabs-CytiJeE2.js";import"./badge-C7XTRm7k.js";import"./collapsible-B5VFLcG-.js";import"./index-D0LkSlcd.js";import"./Code01-ClhNhs6L.js";import"./checkbox-B92JdB3t.js";import"./AlignLeft-CJvAdEi-.js";import"./Image01-C62qGXSk.js";import"./RefreshCcw01-QnfLSKau.js";import"./SearchMd-D6jy19cO.js";import"./Settings01-Bl2wNagM.js";import"./Tool01-BBVRBzC0.js";import"./use-mcp-resources-D0eHe68n.js";import"./ChevronRight-Df5oEIdG.js";import"./Copy01-E3kqWO3T.js";import"./marked.esm-BaswSlok.js";import"./markdown-C7LUMDS1.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-8UT29L5G.js";import"./types-CUEMI47Y.js";import"./Globe02-DAjgLqHS.js";import"./LayersTwo01-CsbV79W9.js";import"./use-collections-C3CSj681.js";import"./useSuspenseInfiniteQuery-Ds_6ilsi.js";import"./infiniteQueryObserver-dFlgfKVl.js";import"./CheckCircle-B4pYO1ZS.js";import"./use-create-virtual-mcp-C5n2ShE6.js";import"./Container-De-pv4QL.js";import"./decopilot-events-Brt4gAR6.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 pt(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 x=parseInt(o[1]??"1");return x%7===0?`Every ${x/7} weeks`:`Every ${x} days`}const a=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(a){const x=(a[2]??"0").padStart(2,"0"),d=(a[1]??"0").padStart(2,"0");return`Every day at ${x}:${d} UTC`}const h=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(h){const d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(h[3]??"0")]??"day",l=(h[2]??"0").padStart(2,"0"),v=(h[1]??"0").padStart(2,"0");return`Every ${d} at ${l}:${v} UTC`}return s}function ft(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 xt(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 ht(s,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[s]??s:s}const gt=[{label:"Minute",cron:"* * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function yt(s){const e=B.c(26),{automationId:r,open:n,onOpenChange:o,onCustomSelect:a}=s,h=Q(),[x,d]=I.useState(!1),l=n??x;let v;e[0]!==o?(v=C=>{o?o(C):d(C)},e[0]=o,e[1]=v):v=e[1];const f=v;let u;e[2]!==h||e[3]!==r||e[4]!==f?(u=async C=>{try{await h.mutateAsync({automation_id:r,type:"cron",cron_expression:C}),M.success("Starter added"),f(!1)}catch(k){const T=k,D=T instanceof Error?T.message:"Failed to add starter";M.error(D)}},e[2]=h,e[3]=r,e[4]=f,e[5]=u):u=e[5];const N=u;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(Ke,{asChild:!0,children:t.jsxs(U,{variant:"outline",size:"sm",children:[t.jsx(lt,{size:14}),"Add Starter"]})}),e[6]=m):m=e[6];let j;e[7]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsxs(We,{className:"gap-2.5",children:[t.jsx(H,{size:14,className:"text-muted-foreground shrink-0"}),"Every..."]}),e[7]=j):j=e[7];let b;e[8]!==h||e[9]!==N?(b=gt.map(C=>t.jsxs(re,{className:"gap-2.5",onSelect:()=>N(C.cron),disabled:h.isPending,children:[t.jsx(H,{size:14,className:"text-muted-foreground shrink-0"}),"Every ",C.label]},C.cron)),e[8]=h,e[9]=N,e[10]=b):b=e[10];let i;e[11]!==b?(i=t.jsxs(qe,{children:[j,t.jsx(Ge,{className:"w-[160px]",children:b})]}),e[11]=b,e[12]=i):i=e[12];let p;e[13]!==f||e[14]!==a?(p=()=>{f(!1),a?.()},e[13]=f,e[14]=a,e[15]=p):p=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(H,{size:14,className:"text-muted-foreground shrink-0"}),e[16]=_):_=e[16];let g;e[17]!==p?(g=t.jsxs(re,{className:"gap-2.5",onSelect:p,children:[_,"Custom (cron)"]}),e[17]=p,e[18]=g):g=e[18];let y;e[19]!==i||e[20]!==g?(y=t.jsxs(Je,{align:"end",className:"w-[200px]",children:[i,g]}),e[19]=i,e[20]=g,e[21]=y):y=e[21];let S;return e[22]!==f||e[23]!==l||e[24]!==y?(S=t.jsxs(Qe,{open:l,onOpenChange:f,children:[m,y]}),e[22]=f,e[23]=l,e[24]=y,e[25]=S):S=e[25],S}function jt(s){const e=B.c(56),{trigger:r,automationId:n}=s,o=Pe(),a=Q(),[h,x]=I.useState(!1);let d;e[0]!==r.cron_expression?(d=r.cron_expression?xt(r.cron_expression):null,e[0]=r.cron_expression,e[1]=d):d=e[1];const l=d,[v,f]=I.useState(l?.count??1),[u,N]=I.useState(!1),[m,j]=I.useState(r.cron_expression??""),b=o.isPending||a.isPending,i=r.type==="cron";let p;e[2]!==n||e[3]!==o||e[4]!==r.id?(p=async()=>{try{await o.mutateAsync({trigger_id:r.id,automation_id:n}),M.success("Starter removed")}catch{M.error("Failed to remove starter")}x(!1)},e[2]=n,e[3]=o,e[4]=r.id,e[5]=p):p=e[5];const _=p;let g;e[6]!==a||e[7]!==n||e[8]!==m||e[9]!==o||e[10]!==r.cron_expression||e[11]!==r.id?(g=async()=>{const A=m.trim();if(!A||!K(A)||A===r.cron_expression){N(!1),j(r.cron_expression??"");return}try{await a.mutateAsync({automation_id:n,type:"cron",cron_expression:A}),await o.mutateAsync({trigger_id:r.id,automation_id:n}),N(!1)}catch{M.error("Failed to update starter"),j(r.cron_expression??""),N(!1)}},e[6]=a,e[7]=n,e[8]=m,e[9]=o,e[10]=r.cron_expression,e[11]=r.id,e[12]=g):g=e[12];const y=g;let S;e[13]!==a||e[14]!==n||e[15]!==l||e[16]!==o||e[17]!==r.cron_expression||e[18]!==r.id?(S=async A=>{if(!l)return;const W=Math.max(1,A),q=ft(W,l.unit);if(q!==r.cron_expression)try{await a.mutateAsync({automation_id:n,type:"cron",cron_expression:q}),await o.mutateAsync({trigger_id:r.id,automation_id:n})}catch{M.error("Failed to update starter"),f(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]=S):S=e[19];const C=S;let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(H,{size:14,className:"text-muted-foreground shrink-0"}),e[20]=k):k=e[20];let T;e[21]!==v||e[22]!==m||e[23]!==C||e[24]!==y||e[25]!==l||e[26]!==i||e[27]!==u||e[28]!==b||e[29]!==r.cron_expression||e[30]!==r.event_type?(T=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:v,onChange:A=>f(parseInt(A.target.value)||1),onBlur:()=>C(v),onKeyDown:A=>{A.key==="Enter"&&A.target.blur(),A.key==="Escape"&&f(l.count)},disabled:b,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:ht(l.unit,v)})]}):i&&u?t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"text",value:m,onChange:A=>j(A.target.value),onBlur:y,onKeyDown:A=>{A.key==="Enter"&&A.target.blur(),A.key==="Escape"&&(N(!1),j(r.cron_expression??""))},className:"flex-1 text-sm font-mono bg-transparent outline-none",autoFocus:!0}),m&&!K(m)&&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?pt(r.cron_expression??""):`${r.event_type} event`}),e[21]=v,e[22]=m,e[23]=C,e[24]=y,e[25]=l,e[26]=i,e[27]=u,e[28]=b,e[29]=r.cron_expression,e[30]=r.event_type,e[31]=T):T=e[31];let D;e[32]!==b?(D=b&&t.jsx(G,{size:13,className:"animate-spin text-muted-foreground"}),e[32]=b,e[33]=D):D=e[33];let w;e[34]!==l||e[35]!==i||e[36]!==u||e[37]!==r.cron_expression?(w=i&&!l&&!u&&t.jsx(U,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>{j(r.cron_expression??""),N(!0)},children:t.jsx(at,{size:13,className:"text-muted-foreground"})}),e[34]=l,e[35]=i,e[36]=u,e[37]=r.cron_expression,e[38]=w):w=e[38];let P;e[39]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(U,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>x(!0),children:t.jsx(Y,{size:13,className:"text-muted-foreground"})}),e[39]=P):P=e[39];let z;e[40]!==D||e[41]!==w?(z=t.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[D,w,P]}),e[40]=D,e[41]=w,e[42]=z):z=e[42];let E;e[43]!==z||e[44]!==T?(E=t.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2.5 rounded-lg border border-border bg-background group",children:[k,T,z]}),e[43]=z,e[44]=T,e[45]=E):E=e[45];let V;e[46]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsxs(ue,{children:[t.jsx(fe,{children:"Remove Starter"}),t.jsx(pe,{children:"Are you sure you want to remove this starter?"})]}),e[46]=V):V=e[46];let F;e[47]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(xe,{children:"Cancel"}),e[47]=F):F=e[47];let O;e[48]!==_?(O=t.jsxs(ye,{children:[V,t.jsxs(he,{children:[F,t.jsx(ge,{onClick:_,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Remove"})]})]}),e[48]=_,e[49]=O):O=e[49];let $;e[50]!==h||e[51]!==O?($=t.jsx(je,{open:h,onOpenChange:x,children:O}),e[50]=h,e[51]=O,e[52]=$):$=e[52];let R;return e[53]!==E||e[54]!==$?(R=t.jsxs(t.Fragment,{children:[E,$]}),e[53]=E,e[54]=$,e[55]=R):R=e[55],R}function vt(s){const e=B.c(41),{selectedId:r,onChange:n}=s,[o,a]=I.useState(!1),h=ot();let x,d;e[0]!==h||e[1]!==r?(d=h.filter(bt),x=r?d.find(m=>m.id===r):null,e[0]=h,e[1]=r,e[2]=x,e[3]=d):(x=e[2],d=e[3]);const l=x;if(l){let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(ae,{size:16}),e[4]=m):m=e[4];let j;e[5]!==l.icon||e[6]!==l.title?(j=t.jsx(Ee,{icon:l.icon,name:l.title,size:"sm",fallbackIcon:m,className:"rounded-md shrink-0"}),e[5]=l.icon,e[6]=l.title,e[7]=j):j=e[7];let b;e[8]!==l.title?(b=t.jsx("span",{className:"text-sm font-medium truncate",children:l.title}),e[8]=l.title,e[9]=b):b=e[9];let i;e[10]!==j||e[11]!==b?(i=t.jsx(ne,{asChild:!0,children:t.jsxs("button",{type:"button",className:"flex items-center gap-3 flex-1 min-w-0 text-left cursor-pointer",children:[j,b]})}),e[10]=j,e[11]=b,e[12]=i):i=e[12];let p;e[13]!==n?(p=T=>{n(T),a(!1)},e[13]=n,e[14]=p):p=e[14];let _;e[15]!==r||e[16]!==p||e[17]!==d?(_=t.jsx(oe,{className:"w-[550px] p-0 overflow-hidden",align:"start",sideOffset:8,children:t.jsx(te,{virtualMcps:d,selectedVirtualMcpId:r,onVirtualMcpChange:p})}),e[15]=r,e[16]=p,e[17]=d,e[18]=_):_=e[18];let g;e[19]!==o||e[20]!==i||e[21]!==_?(g=t.jsxs(ie,{open:o,onOpenChange:a,children:[i,_]}),e[19]=o,e[20]=i,e[21]=_,e[22]=g):g=e[22];let y;e[23]!==n?(y=()=>n(null),e[23]=n,e[24]=y):y=e[24];let S;e[25]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Y,{size:13}),e[25]=S):S=e[25];let C;e[26]!==y?(C=t.jsx(U,{type:"button",variant:"ghost",size:"icon",className:"shrink-0 size-7 text-muted-foreground hover:text-foreground",onClick:y,title:"Remove agent",children:S}),e[26]=y,e[27]=C):C=e[27];let k;return e[28]!==C||e[29]!==g?(k=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:[g,C]}),e[28]=C,e[29]=g,e[30]=k):k=e[30],k}let v;e[31]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(ne,{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(ae,{size:16})]}),t.jsx("span",{className:"text-sm text-muted-foreground",children:"No agent selected. All connections available."})]})}),e[31]=v):v=e[31];let f;e[32]!==n?(f=m=>{n(m),a(!1)},e[32]=n,e[33]=f):f=e[33];let u;e[34]!==r||e[35]!==f||e[36]!==d?(u=t.jsx(oe,{className:"w-[550px] p-0 overflow-hidden",align:"start",sideOffset:8,children:t.jsx(te,{virtualMcps:d,selectedVirtualMcpId:r,onVirtualMcpChange:f})}),e[34]=r,e[35]=f,e[36]=d,e[37]=u):u=e[37];let N;return e[38]!==o||e[39]!==u?(N=t.jsxs(ie,{open:o,onOpenChange:a,children:[v,u]}),e[38]=o,e[39]=u,e[40]=N):N=e[40],N}function bt(s){return!s.id||!st(s.id)}function _t({automationId:s,automation:e}){const r=Re(),{createTask:n,setVirtualMcpId:o,setSelectedModel:a,setSelectedMode:h,sendMessage:x,credentialId:d,model:l}=ve(),[,v]=me(),f=e.messages?.[0]?.metadata?.tiptapDoc??void 0,[u,N]=I.useState(f),[m,j]=I.useState(f),[b,i]=I.useState(!1),[p,_]=I.useState(!1),[g,y]=I.useState(""),S=Q(),C=I.useRef(!1),k=c=>{N(c),C.current||(C.current=!0,f||j(c))},T=e.models?.credentialId||d||"",D=e.models?.thinking?.id||l?.modelId||"",w=Ne({defaultValues:{name:e.name,active:e.active,agent_id:e.agent?.id??"",credential_id:T,model_id:D}}),P=w.watch("active"),z=w.watch("agent_id"),E=w.watch("credential_id"),V=w.watch("model_id"),{models:F,isLoading:O}=Ae(E||void 0),$=F.find(c=>c.modelId===V)??null,R=async()=>{const c=w.getValues();try{const L=c.credential_id&&c.model_id?c.credential_id:"",X=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,mode:"passthrough"},models:{credentialId:L,thinking:{id:X}},messages:dt(u),temperature:0}),w.reset({...c,credential_id:L,model_id:X}),j(u),M.success("Automation saved"),!0}catch{return M.error("Failed to save automation"),!1}},A=()=>{w.reset(),k(m)},W=w.formState.isDirty||JSON.stringify(u??null)!==JSON.stringify(m??null),q=async()=>{if(W&&!await R())return;if(!u){M.error("No instructions configured for this automation");return}const c=w.getValues();o(c.agent_id||null),h("passthrough"),$&&E&&a({...$,keyId:E}),v(!0),n(),setTimeout(()=>{x(u,{toolApprovalLevel:"yolo"})},0)};return t.jsxs(t.Fragment,{children:[t.jsx(de,{children:t.jsx(De,{onSave:async()=>{await R()},onUndo:A,isDirty:W,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(He,{...w.register("name"),placeholder:"Automation name",className:"border-0 shadow-none px-0 text-2xl md:text-2xl font-semibold h-auto focus-visible:ring-0 bg-transparent"}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Se,{control:w.control,name:"active",render:({field:c})=>t.jsx(Ye,{checked:c.value,onCheckedChange:c.onChange,className:"cursor-pointer"})}),t.jsx("span",{className:"text-sm text-muted-foreground",children:P?"Active":"Inactive"}),t.jsx("span",{className:"text-muted-foreground/50 text-sm",children:"·"}),t.jsx($e,{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(yt,{automationId:s,open:b,onOpenChange:i,onCustomSelect:()=>{_(!0),y("")}})]}),e.triggers.length===0&&!p?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:()=>i(!0),children:"Add a starter"})," ","to get going."]})}):t.jsx("div",{className:"flex flex-col gap-2",children:e.triggers.map(c=>t.jsx(jt,{trigger:c,automationId:s},c.id))}),p&&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:g,onChange:c=>y(c.target.value),onBlur:async()=>{const c=g.trim();if(!(!c||!K(c)))try{await S.mutateAsync({automation_id:s,type:"cron",cron_expression:c}),M.success("Starter added"),_(!1),y("")}catch{M.error("Failed to add starter")}},onKeyDown:async c=>{const L=g.trim();c.key==="Enter"&&L&&K(L)&&c.target.blur(),c.key==="Escape"&&(_(!1),y(""))},placeholder:"0 9 * * 1-5",className:"flex-1 text-sm font-mono bg-transparent outline-none placeholder:text-muted-foreground/40",autoFocus:!0}),g&&!K(g)&&t.jsx("span",{className:"text-xs text-muted-foreground/60 shrink-0",children:"invalid"}),S.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:()=>{_(!1),y("")},children:t.jsx(Y,{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(vt,{selectedId:z||null,onChange:c=>w.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(Te,{tiptapDoc:u,setTiptapDoc:k,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(Ie,{virtualMcpId:z||null}),t.jsxs("div",{className:"flex items-center justify-end gap-1.5 p-2.5",children:[t.jsx(Me,{model:$,isLoading:O,credentialId:E||null,onCredentialChange:c=>{w.setValue("credential_id",c??"",{shouldDirty:!0}),w.setValue("model_id","",{shouldDirty:!0})},onModelChange:c=>w.setValue("model_id",c.modelId,{shouldDirty:!0}),placeholder:"Model"}),t.jsxs(Xe,{children:[t.jsx(Ze,{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:q,children:[t.jsx(it,{size:16}),"Test"]})}),t.jsx(et,{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(Nt,{automationId:s,triggerIds:e.triggers.map(c=>c.id)})]})]})]})}function Ct(s,e,r){const n=B.c(13);let o;n[0]!==s?(o={connectionId:nt,orgId:s},n[0]=s,n[1]=o):o=n[1];const a=rt(o);let h;n[2]!==e||n[3]!==s||n[4]!==r?(h=J.automationRuns(s,e,r),n[2]=e,n[3]=s,n[4]=r,n[5]=h):h=n[5];let x;n[6]!==a||n[7]!==r?(x=async()=>{if(!a)throw new Error("MCP client not available");const v=await a.callTool({name:"COLLECTION_THREADS_LIST",arguments:{where:{trigger_ids:r},limit:20}});return(v.structuredContent??v).items??[]},n[6]=a,n[7]=r,n[8]=x):x=n[8];const d=r.length>0;let l;return n[9]!==h||n[10]!==x||n[11]!==d?(l={queryKey:h,queryFn:x,enabled:d},n[9]=h,n[10]=x,n[11]=d,n[12]=l):l=n[12],tt(l)}function Nt(s){const e=B.c(22),{automationId:r,triggerIds:n}=s,{org:o}=le(),{switchToTask:a}=ve(),[,h]=me(),x=we(),{data:d,isLoading:l}=Ct(o.id,r,n),v=n.length>0;let f;e[0]!==r||e[1]!==o.id||e[2]!==x||e[3]!==d||e[4]!==n?(f=i=>{const p=i.subject,_=d??[];_.find(y=>y.id===p)?x.setQueryData(J.automationRuns(o.id,r,n),_.map(y=>y.id===p?{...y,status:i.data.status,updated_at:new Date().toISOString()}:y)):x.invalidateQueries({queryKey:J.automationRuns(o.id,r,n)})},e[0]=r,e[1]=o.id,e[2]=x,e[3]=d,e[4]=n,e[5]=f):f=e[5];let u;if(e[6]!==o.id||e[7]!==v||e[8]!==f?(u={orgId:o.id,enabled:v,onTaskStatus:f},e[6]=o.id,e[7]=v,e[8]=f,e[9]=u):u=e[9],mt(u),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(ce,{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 N;e[12]!==h||e[13]!==a?(N=async i=>{await a(i),h(!0)},e[12]=h,e[13]=a,e[14]=N):N=e[14];const m=N;let j;if(e[15]!==m||e[16]!==d){let i;e[18]!==m?(i=p=>{const _=ee[p.status]??ee.completed,g=_.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:()=>m(p.id),children:[t.jsx(g,{size:16,className:_.iconClassName}),t.jsx("span",{className:"flex-1 min-w-0 text-sm truncate",children:p.title}),t.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:ut(new Date(p.updated_at),{addSuffix:!0})})]},p.id)},e[18]=m,e[19]=i):i=e[19],j=d.map(i),e[15]=m,e[16]=d,e[17]=j}else j=e[17];let b;return e[20]!==j?(b=t.jsx("div",{className:"flex flex-col divide-y divide-border",children:j}),e[20]=j,e[21]=b):b=e[21],b}function or(){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}=be(e),n=_e(),{org:o}=le(),{data:a,isLoading:h}=ze(r),x=Oe(),[d,l]=I.useState(!1);let v;s[1]!==r||s[2]!==x||s[3]!==n||s[4]!==o?(v=async()=>{try{await x.mutateAsync(r),M.success("Automation deleted"),n({to:"/$org/$project/automations",params:{org:o.slug,project:Z}})}catch{M.error("Failed to delete automation")}l(!1)},s[1]=r,s[2]=x,s[3]=n,s[4]=o,s[5]=v):v=s[5];const f=v;if(h){let D;return s[6]===Symbol.for("react.memo_cache_sentinel")?(D=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]=D):D=s[6],D}if(!a){let D;return s[7]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(ce,{title:"Automation not found",description:"This automation may have been deleted."}),s[7]=D):D=s[7],D}let u;s[8]!==o.slug?(u=t.jsx(se,{children:t.jsx(Ve,{asChild:!0,children:t.jsx(Ce,{to:"/$org/$project/automations",params:{org:o.slug,project:Z},children:"Automations"})})}),s[8]=o.slug,s[9]=u):u=s[9];let N;s[10]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(Le,{}),s[10]=N):N=s[10];let m;s[11]!==a.name?(m=t.jsx(se,{children:t.jsx(Fe,{children:a.name})}),s[11]=a.name,s[12]=m):m=s[12];let j;s[13]!==u||s[14]!==m?(j=t.jsx(Ue,{children:t.jsxs(Be,{children:[u,N,m]})}),s[13]=u,s[14]=m,s[15]=j):j=s[15];const b=j;let i;s[16]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(de,{children:t.jsxs(U,{variant:"ghost",size:"sm",className:"h-7 text-destructive hover:text-destructive",onClick:()=>l(!0),children:[t.jsx(ct,{size:14}),"Delete"]})}),s[16]=i):i=s[16];let p;s[17]!==a||s[18]!==r?(p=t.jsx(_t,{automationId:r,automation:a},r),s[17]=a,s[18]=r,s[19]=p):p=s[19];let _;s[20]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(fe,{children:"Delete Automation"}),s[20]=_):_=s[20];let g;s[21]!==a.name?(g=t.jsxs(ue,{children:[_,t.jsxs(pe,{children:['Are you sure you want to delete "',a.name,'"? This action cannot be undone.']})]}),s[21]=a.name,s[22]=g):g=s[22];let y;s[23]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(xe,{children:"Cancel"}),s[23]=y):y=s[23];let S;s[24]!==f?(S=t.jsxs(he,{children:[y,t.jsx(ge,{onClick:f,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),s[24]=f,s[25]=S):S=s[25];let C;s[26]!==S||s[27]!==g?(C=t.jsxs(ye,{children:[g,S]}),s[26]=S,s[27]=g,s[28]=C):C=s[28];let k;s[29]!==d||s[30]!==C?(k=t.jsx(je,{open:d,onOpenChange:l,children:C}),s[29]=d,s[30]=C,s[31]=k):k=s[31];let T;return s[32]!==b||s[33]!==k||s[34]!==p?(T=t.jsxs(ke,{breadcrumb:b,children:[i,p,k]}),s[32]=b,s[33]=k,s[34]=p,s[35]=T):T=s[35],T}export{or as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as S,u as _,r as B,O as u,j as e,B as p,y as $,w as h}from"./index-
|
|
1
|
+
import{e as S,u as _,r as B,O as u,j as e,B as p,y as $,w as h}from"./index-SkQC2bL2.js";import{C as I}from"./collection-search-CPQlTmfx.js";import{E as L}from"./empty-state-BUpyINsX.js";import{P as l}from"./index-Bs-gkatC.js";import{u as M,a as E,b as H}from"./use-automations-Cw8FAF0H.js";import{u as O}from"./use-list-state-Djxe5eyh.js";import{U as R}from"./user-C2BDT4Rq.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-DfOenbUZ.js";import{B as W}from"./badge-C7XTRm7k.js";import{B as X,a as Y,b as Z,c as ee}from"./breadcrumb-h9Dq7GJ0.js";import{D as te,a as se,b as re,c as C}from"./dropdown-menu-V8gWmDzD.js";import{T as ae,a as oe,b as w,c as ie,d as ne,e as c}from"./table-c-SrSmwK.js";import{n as le}from"./ArrowDown-BrkOB1Av.js";import{i as ce}from"./ArrowUp-Bl5YEbbF.js";import{i as de}from"./DotsVertical-ZWNLrGdE.js";import{s as me}from"./Eye-CUyEl5IU.js";import{i as x}from"./Loading01-CDOurw-F.js";import{s as A}from"./Plus-OTc7Ql1V.js";import{s as ue}from"./Trash01-DhGTBhjv.js";import"./SearchMd-D6jy19cO.js";import"./input-C4xXFdLa.js";import"./useQuery-CtOvMPbo.js";import"./useMutation-CXgAMvoC.js";import"./tooltip-Ckpai_jH.js";import"./index-AtuNXtl1.js";import"./constants-BZUBXkLq.js";import"./use-view-mode-Ag3VBJ77.js";import"./use-mobile-DqlomLIB.js";import"./avatar-DexhTB4g.js";import"./ChevronRight-Df5oEIdG.js";import"./Check-CN56KhoF.js";function Ue(){const g=S(),{org:j,locator:D}=_(),{data:a,isLoading:k}=M(),i=E(),T=H(),[d,m]=B.useState(null),s=O({namespace:j.slug,resource:"automations",defaultViewMode:"table"}),f=D.split("/")[0]??j.slug??u,b=async()=>{try{const t=await i.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:t.id}})}catch{h.error("Failed to create automation")}},P=async()=>{if(d)try{await T.mutateAsync(d.id),h.success("Automation deleted")}catch{h.error("Failed to delete automation")}finally{m(null)}},N=t=>{g({to:"/$org/$project/automations/$automationId",params:{org:f,project:u,automationId:t}})},v=(a??[]).filter(t=>s.searchTerm?t.name.toLowerCase().includes(s.searchTerm.toLowerCase()):!0).sort((t,r)=>{if(!s.sortDirection)return 0;const n=s.sortDirection==="asc"?1:-1,o=s.sortKey;return o==="name"?t.name.localeCompare(r.name)*n:o==="active"?((t.active?1:0)-(r.active?1:0))*n:o==="trigger_count"?((t.trigger_count??0)-(r.trigger_count??0))*n:0}),z="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:"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:i.isPending,children:[i.isPending?e.jsx(x,{size:14,className:"animate-spin"}):e.jsx(A,{size:14}),"Create Automation"]})})]}),e.jsx(I,{value:s.search,onChange:s.setSearch,placeholder:"Search automations...",onKeyDown:t=>{t.key==="Escape"&&(s.setSearch(""),t.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,{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:i.isPending,children:[i.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(oe,{className:"border-b-0",children:e.jsx(w,{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:t,label:r,className:n})=>{const o=s.sortKey===t,y=t!=="created_by"&&t!=="_actions";return e.jsx(ie,{className:$(z,n),onClick:y?()=>s.handleSort(t):void 0,children:e.jsxs("span",{className:"flex items-center gap-1",children:[r,y&&e.jsxs("span",{className:"w-4 flex items-center justify-center",children:[o&&s.sortDirection==="asc"&&e.jsx(ce,{size:12,className:"text-muted-foreground"}),o&&s.sortDirection==="desc"&&e.jsx(le,{size:12,className:"text-muted-foreground"})]})]})},t)})})}),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 "',s.search,'"']})})}):v.map(t=>e.jsxs(w,{className:"group/data-row border-b-0 hover:bg-accent/50 cursor-pointer transition-colors",onClick:()=>N(t.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:t.name}),e.jsx(c,{className:"px-5 py-4 h-16 align-middle w-24 shrink-0",children:e.jsx(W,{variant:t.active?"default":"secondary",children:t.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:t.trigger_count}),e.jsx(c,{className:"px-5 py-4 h-16 align-middle w-40 shrink-0",children:e.jsx(R,{id:t.created_by})}),e.jsx(c,{className:"px-5 py-4 h-16 align-middle w-12 shrink-0",children:e.jsxs(te,{children:[e.jsx(se,{asChild:!0,children:e.jsx(p,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:r=>r.stopPropagation(),children:e.jsx(de,{size:20})})}),e.jsxs(re,{align:"end",onClick:r=>r.stopPropagation(),children:[e.jsxs(C,{onClick:r=>{r.stopPropagation(),N(t.id)},children:[e.jsx(me,{size:16}),"Open"]}),e.jsxs(C,{variant:"destructive",onClick:r=>{r.stopPropagation(),m({id:t.id,name:t.name})},children:[e.jsx(ue,{size:16}),"Delete"]})]})]})})]},t.id))})]}),e.jsx(F,{open:!!d,onOpenChange:t=>!t&&m(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:d?.name}),". All triggers will be removed."]})]}),e.jsxs(V,{children:[e.jsx(q,{children:"Cancel"}),e.jsx(Q,{onClick:P,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]})]})})]})]})}export{Ue as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as R,c as j,j as i,y as m,_ as I,aY as $,aZ as L,a_ as M}from"./index-
|
|
1
|
+
import{r as R,c as j,j as i,y as m,_ as I,aY as $,aZ as L,a_ as M}from"./index-SkQC2bL2.js";const V=({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"}));V.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 T(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"],W="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function Z(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 U=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"}}),B=I("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),D=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 y;e:{if(k){y=W;break e}if(typeof t=="string"){let c;e[11]!==t?(c=Z(t),e[11]=t,e[12]=c):c=e[12],y=c;break e}y=S[0]}const z=y;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(U({shape:b,size:h}),s),e[18]=s,e[19]=b,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==z||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",z),children:i.jsx(V,{size:D(h)})}):i.jsxs(i.Fragment,{children:[l&&!f&&i.jsx(_,{src:l,loading:"lazy",alt:"Avatar",className:m(B({objectFit:u})),onError:()=>x(!0)}),(!l||f)&&i.jsx(T,{className:m(z,"rounded-none"),children:C})]}),e[22]=z,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(U({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{G as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,y as u,j as l,U as v,_ as g}from"./index-
|
|
1
|
+
import{c as d,y as u,j as l,U as v,_ as g}from"./index-SkQC2bL2.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-SkQC2bL2.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,y as m,j as o,U as u}from"./index-
|
|
1
|
+
import{c,y as m,j as o,U as u}from"./index-SkQC2bL2.js";import{i as d}from"./ChevronRight-Df5oEIdG.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 o,y as d,j as c}from"./index-
|
|
1
|
+
import{c as o,y as d,j as c}from"./index-SkQC2bL2.js";function n(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("bg-card text-card-foreground hover:bg-accent/50 flex flex-col gap-6 rounded-xl border border-border shadow-xs",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function f(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto]",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function p(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("leading-none font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function u(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function m(r){const e=o.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s=c.jsx("div",{"data-slot":"card-content",...t}),e[2]=t,e[3]=s):s=e[3],s}export{n as C,p as a,u as b,f as c,m as d};
|