decocms 2.310.3 → 2.310.4
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-B72APkrz.js → AlertCircle-B_ixt4PV.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-Dz0P9WNF.js → ArrowNarrowLeft-CrFHQhYJ.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CCQZEQ7k.js → ArrowUpRight-nmn7SUvw.js} +1 -1
- package/dist/client/assets/{Check-CUpq9BBu.js → Check-BqWn0Qac.js} +1 -1
- package/dist/client/assets/{CheckCircle-DTCxFilU.js → CheckCircle-D5vzorp6.js} +1 -1
- package/dist/client/assets/{ChevronDown-D5WF5tyi.js → ChevronDown-D9U47f9C.js} +1 -1
- package/dist/client/assets/{ChevronRight-DwbV0YDZ.js → ChevronRight-FNA-cwb3.js} +1 -1
- package/dist/client/assets/{ChevronUp-CDMPc0ql.js → ChevronUp-i8raSBwP.js} +1 -1
- package/dist/client/assets/{Container-BioZd28q.js → Container-D4mVdsOS.js} +1 -1
- package/dist/client/assets/{DotsVertical-D8wcDPCU.js → DotsVertical-DyRKYk_4.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CKpEz_fF.js → LinkExternal01-DbpTHzhG.js} +1 -1
- package/dist/client/assets/{Lock01-CHfwR6Qi.js → Lock01-BCzwOsnt.js} +1 -1
- package/dist/client/assets/{Palette-brLBiHpP.js → Palette-BPPf-x1D.js} +1 -1
- package/dist/client/assets/{Play-DRCdZRLW.js → Play-DVx-BQBK.js} +1 -1
- package/dist/client/assets/{Plus-DNkjVBwq.js → Plus-6Aj_3OR1.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-CdP9yH0w.js → RefreshCcw01-C5KiSpOO.js} +1 -1
- package/dist/client/assets/{SearchMd-JqX1mLMq.js → SearchMd-acewDSqi.js} +1 -1
- package/dist/client/assets/{Settings02-D1Jfvo1d.js → Settings02-D5TrG9xD.js} +1 -1
- package/dist/client/assets/{Shield01-D5fQpAyA.js → Shield01-BFVZdmRt.js} +1 -1
- package/dist/client/assets/{Star01-Y834gtsL.js → Star01-BlH1_8-6.js} +1 -1
- package/dist/client/assets/{Sun-BgOSswUu.js → Sun-DPLFw75Q.js} +1 -1
- package/dist/client/assets/{Tool01-CXQZ3p7Z.js → Tool01-C2Si0HgH.js} +1 -1
- package/dist/client/assets/{Trash01-B8-uqWxa.js → Trash01-BCpCFt9s.js} +1 -1
- package/dist/client/assets/{User01-Cxb6YtJq.js → User01-DI61qRtW.js} +1 -1
- package/dist/client/assets/{Users03-CXkopkPu.js → Users03-knaWc8Kc.js} +1 -1
- package/dist/client/assets/{X-CdXDgTcN.js → X-DBkpNyXP.js} +1 -1
- package/dist/client/assets/{XCircle-CjR4LC4r.js → XCircle-Cw6xQq75.js} +1 -1
- package/dist/client/assets/{XClose-zqTFiPq2.js → XClose-3a3Tbrfg.js} +1 -1
- package/dist/client/assets/{Zap--FKeiDFf.js → Zap-UEJX5ZfT.js} +1 -1
- package/dist/client/assets/{ZapSquare-CliIuzcs.js → ZapSquare-pD3KrBS0.js} +1 -1
- package/dist/client/assets/{accordion-BBKL1fM-.js → accordion-hXQ4kg4L.js} +1 -1
- package/dist/client/assets/{agent-icon-CaG-DX2m.js → agent-icon-DF6ftYz_.js} +1 -1
- package/dist/client/assets/{agents-list-BUqQO9y3.js → agents-list-YKvU-KT5.js} +1 -1
- package/dist/client/assets/ai-providers-CEOJVgLo.js +1 -0
- package/dist/client/assets/{alert-dialog-B-P8jHly.js → alert-dialog-C9W8_i7D.js} +1 -1
- package/dist/client/assets/{auth-catchall-CyIMPFaS.js → auth-catchall-BjoJ1fit.js} +1 -1
- package/dist/client/assets/{automation-list-row-Qk3UXtKg.js → automation-list-row-Bn56w3kA.js} +1 -1
- package/dist/client/assets/{automations-CkkIdwK3.js → automations-CjWF6ELU.js} +1 -1
- package/dist/client/assets/{avatar-CYyuZ3vB.js → avatar-DSXx4LT-.js} +1 -1
- package/dist/client/assets/{badge-C-R5WeFR.js → badge-CgKuwLV1.js} +1 -1
- package/dist/client/assets/brand-context-BqrRLTJ8.js +1 -0
- package/dist/client/assets/{card-BWjsP1pO.js → card-Dvu8__Va.js} +1 -1
- package/dist/client/assets/{chat-context-D7DJNKEQ.js → chat-context-D4Q2hOxG.js} +1 -1
- package/dist/client/assets/{checkbox-DRyB8BVf.js → checkbox-9a2NidDz.js} +1 -1
- package/dist/client/assets/{collection-detail-BiG3-7wS.js → collection-detail-D3nsJ20C.js} +1 -1
- package/dist/client/assets/{collection-display-button-D0yyhe94.js → collection-display-button-CF3TPZsy.js} +1 -1
- package/dist/client/assets/{collection-search-CVa4reVh.js → collection-search-CavMXw0U.js} +1 -1
- package/dist/client/assets/{collection-search-BtC9EgTH.js → collection-search-CnhSwXsN.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-C2Zi2ikn.js → collection-table-wrapper-JhsTc14z.js} +1 -1
- package/dist/client/assets/{collection-tabs-8bicuWoG.js → collection-tabs-CvpQBjP4.js} +1 -1
- package/dist/client/assets/{collections-ZqRHYd6U.js → collections-DgMj_tKp.js} +1 -1
- package/dist/client/assets/{command-BUJHwA-d.js → command-DdZ6m00L.js} +1 -1
- package/dist/client/assets/{connection-card-CiNzXirJ.js → connection-card-DCcXVB_E.js} +1 -1
- package/dist/client/assets/{connection-detail-DQFCqOq5.js → connection-detail-CzXiJt7V.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BFnOvbFy.js → connection-form-helpers-0guFAknk.js} +1 -1
- package/dist/client/assets/{connections-BzqA2cUL.js → connections-DPNF_KPz.js} +1 -1
- package/dist/client/assets/{constants-BmLTAQzq.js → constants-B0bVjev-.js} +1 -1
- package/dist/client/assets/{constants-Df56C9B1.js → constants-DP1fYfN5.js} +1 -1
- package/dist/client/assets/{dialog-HqMwvS0c.js → dialog-BFoHlGht.js} +1 -1
- package/dist/client/assets/{domain-settings-8zUtZk7o.js → domain-settings-BrBa2-xP.js} +1 -1
- package/dist/client/assets/{drawer-hkToOxOG.js → drawer-BhTf1Qla.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CD1YJIi0.js → dropdown-menu-ECqk4Bwl.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout--sGvQXk2.js → dynamic-plugin-layout-C6uS9Fgd.js} +1 -1
- package/dist/client/assets/{empty-state-B29HN9Vl.js → empty-state-DnTORYxE.js} +1 -1
- package/dist/client/assets/{empty-state-CElAqeAn.js → empty-state-WM4MEN1n.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DYXiFLZH.js → extract-connection-data-DI8Ev_i1.js} +1 -1
- package/dist/client/assets/{features-Dvru3uGD.js → features-CeLAaeRl.js} +1 -1
- package/dist/client/assets/{form-CKajJk24.js → form-FQnGS2M2.js} +1 -1
- package/dist/client/assets/general-ChIDXqk_.js +1 -0
- package/dist/client/assets/{index-CO402MfB.js → index--7GMpzOC.js} +1 -1
- package/dist/client/assets/{index-ClxNnAsp.js → index-B52t-Jgl.js} +1 -1
- package/dist/client/assets/{index-CgQG3OxM.js → index-BNGN_z8K.js} +1 -1
- package/dist/client/assets/{index-Y4klGMPr.js → index-BR_akr8d.js} +1 -1
- package/dist/client/assets/{index-CHpjwsZ-.js → index-BaGA1Dwt.js} +1 -1
- package/dist/client/assets/{index-DVk4aJ0j.js → index-BxU5h0n7.js} +1 -1
- package/dist/client/assets/{index-CnR4TnGO.js → index-CMV1uVKR.js} +1 -1
- package/dist/client/assets/{index-D9-ppQFz.js → index-CQTEAoFE.js} +1 -1
- package/dist/client/assets/index-D2ho-V2I.js +182 -0
- package/dist/client/assets/{index-BPgW_PVH.js → index-D5ted9OP.js} +1 -1
- package/dist/client/assets/{index-D7rGFiVq.js → index-D8S8aIBi.js} +1 -1
- package/dist/client/assets/{index-CMbhqARA.js → index-DMXTlRhR.js} +1 -1
- package/dist/client/assets/{index-Boo37gVZ.js → index-DMhywANg.js} +1 -1
- package/dist/client/assets/{index--52kuhAD.js → index-DtFLCGGC.js} +1 -1
- package/dist/client/assets/index-inyirlB4.js +1 -0
- package/dist/client/assets/{index-k8njt3_A.js → index-tTl1XGBH.js} +2 -2
- package/dist/client/assets/{infiniteQueryObserver-IG8f9wWg.js → infiniteQueryObserver-DZfr_jIN.js} +1 -1
- package/dist/client/assets/{input-DrFzs1Yw.js → input-7B8HJEw8.js} +1 -1
- package/dist/client/assets/{integration-icon-DUMCOZJc.js → integration-icon--zCgX8zg.js} +1 -1
- package/dist/client/assets/{label-0J4Z8Ji8.js → label-D7eZ_QmZ.js} +1 -1
- package/dist/client/assets/{layout-zbF9c9kI.js → layout-yHPZhe3e.js} +1 -1
- package/dist/client/assets/lean-canvas-recruit-modal-c_n0ecvK.js +139 -0
- package/dist/client/assets/{login-m1plet6k.js → login-qkZIlsfB.js} +1 -1
- package/dist/client/assets/{members-DsVQeYYP.js → members-Bz4sBwrN.js} +1 -1
- package/dist/client/assets/{monaco-editor-Br1M5lwR.js → monaco-editor-DN9aHYBK.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BtBHpMXc.js → monitoring-stats-row-D_GvzMhv.js} +1 -1
- package/dist/client/assets/{oauth-callback-D6DOFeyW.js → oauth-callback-D32b5XtK.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-wUhwntlH.js → oauth-callback-ai-provider-KERy7Bq0.js} +1 -1
- package/dist/client/assets/{onboarding-dml5YruP.js → onboarding-C7pha-UZ.js} +1 -1
- package/dist/client/assets/{org-layout-QSP-N9k0.js → org-layout-CGeuSECe.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-ZONr0rlX.js → org-plugin-layout-DaAkPGcd.js} +1 -1
- package/dist/client/assets/{pair-mf97TAS_.js → pair-BAhyu5p7.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CFxEUNdF.js → plugin-empty-state-JWDC1EDj.js} +1 -1
- package/dist/client/assets/{plugin-header-HXnwUdYS.js → plugin-header-U1iHtY7c.js} +1 -1
- package/dist/client/assets/{plugin-layout-ZwMLw5wK.js → plugin-layout-D2NVqZwK.js} +1 -1
- package/dist/client/assets/{popover-DUMNq33j.js → popover-ScITtqj7.js} +1 -1
- package/dist/client/assets/profile-CS9_x9iB.js +1 -0
- package/dist/client/assets/{project-app-view-Di4yF5Oz.js → project-app-view-B18G8KW8.js} +1 -1
- package/dist/client/assets/registry-B-s71WVC.js +2 -0
- package/dist/client/assets/{registry-layout-B2U_9fgO.js → registry-layout-DXh--Ctx.js} +1 -1
- package/dist/client/assets/{required-auth-layout-PH0-_blQ.js → required-auth-layout-RV8D4BS5.js} +1 -1
- package/dist/client/assets/{reset-password-5ioWEbN5.js → reset-password-BMtkWtLN.js} +1 -1
- package/dist/client/assets/{roles-4ojRgHgc.js → roles-Cu1HtilV.js} +1 -1
- package/dist/client/assets/{scroll-area-D_tsHfC-.js → scroll-area-CV3e2fLD.js} +1 -1
- package/dist/client/assets/{search-input-Boj5tfQn.js → search-input-CbWJaisp.js} +1 -1
- package/dist/client/assets/{select-B3lWwv9y.js → select-BNR6YSaM.js} +1 -1
- package/dist/client/assets/{select-model-C-fLwr4k.js → select-model-CpSDRQob.js} +1 -1
- package/dist/client/assets/{settings-layout-U-ZhWkRq.js → settings-layout-C-BNaFF6.js} +1 -1
- package/dist/client/assets/{settings-section-qufbNRCL.js → settings-section-BFYWADTj.js} +1 -1
- package/dist/client/assets/{shell-layout-G8D-0WXl.js → shell-layout-B81nbNNu.js} +1 -1
- package/dist/client/assets/{skeleton-BfKJMKYc.js → skeleton-BcUEgjSY.js} +1 -1
- package/dist/client/assets/{sso-BdojNoX2.js → sso-BBUY-MCm.js} +1 -1
- package/dist/client/assets/{store-DGVb_5C1.js → store-WOpWwK_Y.js} +1 -1
- package/dist/client/assets/store-registry-D6Fj-htY.js +2 -0
- package/dist/client/assets/{switch-YLfAn92x.js → switch-D4ose26R.js} +1 -1
- package/dist/client/assets/{table-wHPRdxYv.js → table-DSn9HnbO.js} +1 -1
- package/dist/client/assets/{tabs-8aX3BTo-.js → tabs-DGhvVWfp.js} +1 -1
- package/dist/client/assets/{task-status-CY3ltf_M.js → task-status-ClsSHWqn.js} +1 -1
- package/dist/client/assets/{textarea-BJZt5-vN.js → textarea-BjUuyph-.js} +1 -1
- package/dist/client/assets/{toggle-group-C_B32Tm8.js → toggle-group-DsS9JBq7.js} +1 -1
- package/dist/client/assets/{tools-list-bxPeEc0p.js → tools-list-Bs_cdsww.js} +1 -1
- package/dist/client/assets/{tooltip-B26xbtws.js → tooltip-Bo9taUEe.js} +1 -1
- package/dist/client/assets/{types-DfgXo_cD.js → types-BuGRX8kV.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CnyJW7s-.js → use-ai-providers-BIiiUYbr.js} +1 -1
- package/dist/client/assets/{use-collections-D66SnH5Q.js → use-collections-Dn6M4xty.js} +1 -1
- package/dist/client/assets/{use-connection-9VrA1Bg7.js → use-connection-CHMNg8na.js} +1 -1
- package/dist/client/assets/{use-copy-DpxSUjqd.js → use-copy-BQRsHq5p.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DBfs4FWm.js → use-create-virtual-mcp-CA-saUXt.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Ja8PcJv_.js → use-debounced-autosave-JBt9gs6I.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DjAxcjIH.js → use-decopilot-events-M1xI3bmE.js} +1 -1
- package/dist/client/assets/{use-delete-connection-7Blp6D0s.js → use-delete-connection-n0Lzneey.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-IwyU_OvC.js → use-infinite-scroll-Culgd2S6.js} +1 -1
- package/dist/client/assets/{use-list-state-Dk2QFrYd.js → use-list-state-C9Nw5MqH.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C7yIpDHe.js → use-mcp-tools-DI96BLC5.js} +1 -1
- package/dist/client/assets/{use-members-Bg4ZFsu9.js → use-members-VHDkQ6EX.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BehsrrsA.js → use-navigate-to-agent-Bt2qz35f.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-mkgKwCAh.js → use-org-auth-client-DtFIoaM_.js} +1 -1
- package/dist/client/assets/{use-org-sso-Xv4QV2bL.js → use-org-sso-D-lyKVWd.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BmH8DM7C.js → use-organization-roles-CWUEcGZv.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Coi7Ggqq.js → use-organization-settings-DIRe4_4X.js} +1 -1
- package/dist/client/assets/{use-registry-connections-_83vUYHS.js → use-registry-connections-DQxUdfb_.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DLYnzZvv.js → use-status-sounds-m1a3znss.js} +1 -1
- package/dist/client/assets/{use-tasks-CUt44N_R.js → use-tasks-_o5ReDjx.js} +1 -1
- package/dist/client/assets/{use-view-mode-CZXZPLm6.js → use-view-mode-6IIIMDrq.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BlYQqAfZ.js → use-virtual-mcp-CCHAGkyS.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CLIUsnnt.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-C7imnQ20.js +1 -0
- package/dist/client/assets/{user-BFqIXUgg.js → user-CRtM2HfA.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BC7A6oBR.js → view-mode-toggle-DXuwWpcV.js} +1 -1
- package/dist/client/assets/{workflow-B3ajRQIi.js → workflow-BmpdL636.js} +1 -1
- package/dist/client/assets/workflow-detail-CF7Wua1l.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/mimic-fn/index.d.ts +54 -0
- package/dist/server/node_modules/mimic-fn/index.js +13 -0
- package/dist/server/node_modules/mimic-fn/license +9 -0
- package/dist/server/node_modules/mimic-fn/package.json +42 -0
- package/dist/server/node_modules/mimic-fn/readme.md +69 -0
- package/dist/server/node_modules/{postgres-bytea/license → pg/LICENSE} +6 -6
- package/dist/server/node_modules/pg/README.md +95 -0
- package/dist/server/node_modules/pg/esm/index.mjs +20 -0
- package/dist/server/node_modules/pg/lib/client.js +743 -0
- package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
- package/dist/server/node_modules/pg/lib/connection.js +221 -0
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
- package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/dist/server/node_modules/pg/lib/defaults.js +91 -0
- package/dist/server/node_modules/pg/lib/index.js +73 -0
- package/dist/server/node_modules/pg/lib/native/client.js +323 -0
- package/dist/server/node_modules/pg/lib/native/index.js +2 -0
- package/dist/server/node_modules/pg/lib/native/query.js +165 -0
- package/dist/server/node_modules/pg/lib/query.js +252 -0
- package/dist/server/node_modules/pg/lib/result.js +109 -0
- package/dist/server/node_modules/pg/lib/stream.js +83 -0
- package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/dist/server/node_modules/pg/lib/utils.js +217 -0
- package/dist/server/node_modules/pg/package.json +76 -0
- package/dist/server/node_modules/xtend/.jshintrc +30 -0
- package/dist/server/node_modules/{postgres-array/license → xtend/LICENSE} +1 -2
- package/dist/server/node_modules/xtend/README.md +32 -0
- package/dist/server/node_modules/xtend/immutable.js +19 -0
- package/dist/server/node_modules/xtend/mutable.js +17 -0
- package/dist/server/node_modules/xtend/package.json +55 -0
- package/dist/server/node_modules/xtend/test.js +103 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-BvV5AI1b.js +0 -1
- package/dist/client/assets/brand-context-BqPn2XVA.js +0 -1
- package/dist/client/assets/general-D8u2dVV2.js +0 -1
- package/dist/client/assets/index-BPbckF-i.js +0 -182
- package/dist/client/assets/index-BTded5vd.js +0 -1
- package/dist/client/assets/lean-canvas-recruit-modal-D2QgFiqW.js +0 -139
- package/dist/client/assets/profile-CyqjRQfg.js +0 -1
- package/dist/client/assets/registry-DgOCTdY8.js +0 -2
- package/dist/client/assets/store-registry-KlW3QwUJ.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BJ1I2JSf.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BpfkmtaB.js +0 -1
- package/dist/client/assets/workflow-detail-l83JU-Mp.js +0 -1
- package/dist/server/node_modules/pg-int8/LICENSE +0 -13
- package/dist/server/node_modules/pg-int8/README.md +0 -16
- package/dist/server/node_modules/pg-int8/index.js +0 -100
- package/dist/server/node_modules/pg-int8/package.json +0 -24
- package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
- package/dist/server/node_modules/postgres-array/index.js +0 -97
- package/dist/server/node_modules/postgres-array/package.json +0 -35
- package/dist/server/node_modules/postgres-array/readme.md +0 -43
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/license +0 -21
- package/dist/server/node_modules/postgres-date/package.json +0 -33
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-U1iHtY7c.js","assets/Check-BqWn0Qac.js","assets/ChevronDown-D9U47f9C.js","assets/login-qkZIlsfB.js","assets/input-7B8HJEw8.js","assets/reset-password-BMtkWtLN.js","assets/shell-layout-B81nbNNu.js","assets/dialog-BFoHlGht.js","assets/X-DBkpNyXP.js","assets/required-auth-layout-RV8D4BS5.js","assets/use-tasks-_o5ReDjx.js","assets/use-collections-Dn6M4xty.js","assets/constants-DP1fYfN5.js","assets/use-organization-settings-DIRe4_4X.js","assets/use-org-sso-D-lyKVWd.js","assets/Lock01-BCzwOsnt.js","assets/onboarding-C7pha-UZ.js","assets/label-D7eZ_QmZ.js","assets/Users03-knaWc8Kc.js","assets/CheckCircle-D5vzorp6.js","assets/Palette-BPPf-x1D.js","assets/index-inyirlB4.js","assets/index-B52t-Jgl.js","assets/tooltip-Bo9taUEe.js","assets/index-BxU5h0n7.js","assets/agent-icon-DF6ftYz_.js","assets/AlertCircle-B_ixt4PV.js","assets/Tool01-C2Si0HgH.js","assets/XClose-3a3Tbrfg.js","assets/RefreshCcw01-C5KiSpOO.js","assets/ArrowNarrowLeft-CrFHQhYJ.js","assets/XCircle-Cw6xQq75.js","assets/ArrowUpRight-nmn7SUvw.js","assets/ZapSquare-pD3KrBS0.js","assets/ChevronRight-FNA-cwb3.js","assets/ChevronUp-i8raSBwP.js","assets/DotsVertical-DyRKYk_4.js","assets/Container-D4mVdsOS.js","assets/Star01-BlH1_8-6.js","assets/SearchMd-acewDSqi.js","assets/LinkExternal01-DbpTHzhG.js","assets/Sun-DPLFw75Q.js","assets/Play-DVx-BQBK.js","assets/Plus-6Aj_3OR1.js","assets/Settings02-D5TrG9xD.js","assets/Shield01-BFVZdmRt.js","assets/Trash01-BCpCFt9s.js","assets/User01-DI61qRtW.js","assets/Zap-UEJX5ZfT.js","assets/pair-BAhyu5p7.js","assets/index-D5ted9OP.js","assets/use-copy-BQRsHq5p.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/content-blocks-o63cs2vh.js","assets/types-BuGRX8kV.js","assets/chat-context-D4Q2hOxG.js","assets/use-virtual-mcp-CCHAGkyS.js","assets/use-ai-providers-BIiiUYbr.js","assets/use-decopilot-events-M1xI3bmE.js","assets/create-sse-subscription-CxkOgzKf.js","assets/integration-icon--zCgX8zg.js","assets/skeleton-BcUEgjSY.js","assets/popover-ScITtqj7.js","assets/drawer-BhTf1Qla.js","assets/avatar-DSXx4LT-.js","assets/alert-dialog-C9W8_i7D.js","assets/form-FQnGS2M2.js","assets/index-BR_akr8d.js","assets/use-mcp-tools-DI96BLC5.js","assets/index-BaGA1Dwt.js","assets/switch-D4ose26R.js","assets/use-connection-CHMNg8na.js","assets/lean-canvas-recruit-modal-c_n0ecvK.js","assets/use-navigate-to-agent-Bt2qz35f.js","assets/collection-search-CavMXw0U.js","assets/checkbox-9a2NidDz.js","assets/extract-connection-data-DI8Ev_i1.js","assets/constants-B0bVjev-.js","assets/collections-DgMj_tKp.js","assets/tabs-DGhvVWfp.js","assets/select-BNR6YSaM.js","assets/toggle-group-DsS9JBq7.js","assets/select-model-CpSDRQob.js","assets/ai-providers-logos-DD3qZ33J.js","assets/use-debounced-autosave-JBt9gs6I.js","assets/settings-section-BFYWADTj.js","assets/card-Dvu8__Va.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/dropdown-menu-ECqk4Bwl.js","assets/index-D8S8aIBi.js","assets/question-004-sINsf4GQ.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-DCcXVB_E.js","assets/use-registry-connections-DQxUdfb_.js","assets/useInfiniteQuery-CLIUsnnt.js","assets/infiniteQueryObserver-DZfr_jIN.js","assets/collection-tabs-CvpQBjP4.js","assets/badge-CgKuwLV1.js","assets/textarea-BjUuyph-.js","assets/connection-form-helpers-0guFAknk.js","assets/use-infinite-scroll-Culgd2S6.js","assets/useSuspenseInfiniteQuery-C7imnQ20.js","assets/collection-search-CnhSwXsN.js","assets/use-create-virtual-mcp-CA-saUXt.js","assets/empty-state-WM4MEN1n.js","assets/task-status-ClsSHWqn.js","assets/index-D2ho-V2I.js","assets/command-DdZ6m00L.js","assets/index-BNGN_z8K.js","assets/use-status-sounds-m1a3znss.js","assets/accordion-hXQ4kg4L.js","assets/user-CRtM2HfA.js","assets/tools-list-Bs_cdsww.js","assets/scroll-area-CV3e2fLD.js","assets/view-mode-toggle-DXuwWpcV.js","assets/automation-list-row-Bn56w3kA.js","assets/search-input-CbWJaisp.js","assets/index-DDGTF8rc.css","assets/index-DMhywANg.js","assets/settings-layout-C-BNaFF6.js","assets/connections-DPNF_KPz.js","assets/collection-display-button-CF3TPZsy.js","assets/use-delete-connection-n0Lzneey.js","assets/use-list-state-C9Nw5MqH.js","assets/use-view-mode-6IIIMDrq.js","assets/connection-detail-CzXiJt7V.js","assets/index-CMV1uVKR.js","assets/index--7GMpzOC.js","assets/index-CQTEAoFE.js","assets/use-members-VHDkQ6EX.js","assets/use-org-auth-client-DtFIoaM_.js","assets/layout-yHPZhe3e.js","assets/monitoring-stats-row-D_GvzMhv.js","assets/collection-detail-D3nsJ20C.js","assets/index-DtFLCGGC.js","assets/monaco-editor-DN9aHYBK.js","assets/empty-state-DnTORYxE.js","assets/index-DMXTlRhR.js","assets/table-DSn9HnbO.js","assets/general-ChIDXqk_.js","assets/domain-settings-BrBa2-xP.js","assets/features-CeLAaeRl.js","assets/brand-context-BqrRLTJ8.js","assets/ai-providers-CEOJVgLo.js","assets/members-Bz4sBwrN.js","assets/collection-table-wrapper-JhsTc14z.js","assets/use-organization-roles-CWUEcGZv.js","assets/roles-Cu1HtilV.js","assets/sso-BBUY-MCm.js","assets/profile-CS9_x9iB.js","assets/store-WOpWwK_Y.js","assets/workflow-BmpdL636.js","assets/workflow-detail-CF7Wua1l.js","assets/org-plugin-layout-DaAkPGcd.js","assets/plugin-layout-D2NVqZwK.js","assets/agents-list-YKvU-KT5.js","assets/automations-CjWF6ELU.js","assets/dynamic-plugin-layout-C6uS9Fgd.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function z$(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const F$="modulepreload",B$=function(e){return"/"+e},X2={},At=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");i=l(n.map(f=>{if(f=B$(f),f in X2)return;X2[f]=!0;const m=f.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const g=document.createElement("link");if(g.rel=m?"stylesheet":F$,m||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),m)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return i.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var ele=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function la(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var __={exports:{}},Bu={};var J2;function V$(){if(J2)return Bu;J2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return Bu.Fragment=t,Bu.jsx=n,Bu.jsxs=n,Bu}var eO;function q$(){return eO||(eO=1,__.exports=V$()),__.exports}var T=q$(),y_={exports:{}},Vu={},b_={exports:{}},w_={};var tO;function H$(){return tO||(tO=1,(function(e){function t(q,W){var ee=q.length;q.push(W);e:for(;0<ee;){var ae=ee-1>>>1,Q=q[ae];if(0<i(Q,W))q[ae]=W,q[ee]=Q,ee=ae;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var W=q[0],ee=q.pop();if(ee!==W){q[0]=ee;e:for(var ae=0,Q=q.length,k=Q>>>1;ae<k;){var K=2*(ae+1)-1,V=q[K],D=K+1,F=q[D];if(0>i(V,ee))D<Q&&0>i(F,V)?(q[ae]=F,q[D]=ee,ae=D):(q[ae]=V,q[K]=ee,ae=K);else if(D<Q&&0>i(F,ee))q[ae]=F,q[D]=ee,ae=D;else break e}}return W}function i(q,W){var ee=q.sortIndex-W.sortIndex;return ee!==0?ee:q.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],m=1,p=null,g=3,v=!1,y=!1,b=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function C(q){for(var W=n(f);W!==null;){if(W.callback===null)r(f);else if(W.startTime<=q)r(f),W.sortIndex=W.expirationTime,t(d,W);else break;W=n(f)}}function O(q){if(b=!1,C(q),!y)if(n(d)!==null)y=!0,A||(A=!0,B());else{var W=n(f);W!==null&&re(O,W.startTime-q)}}var A=!1,M=-1,P=5,L=-1;function H(){return x?!0:!(e.unstable_now()-L<P)}function j(){if(x=!1,A){var q=e.unstable_now();L=q;var W=!0;try{e:{y=!1,b&&(b=!1,E(M),M=-1),v=!0;var ee=g;try{t:{for(C(q),p=n(d);p!==null&&!(p.expirationTime>q&&H());){var ae=p.callback;if(typeof ae=="function"){p.callback=null,g=p.priorityLevel;var Q=ae(p.expirationTime<=q);if(q=e.unstable_now(),typeof Q=="function"){p.callback=Q,C(q),W=!0;break t}p===n(d)&&r(d),C(q)}else r(d);p=n(d)}if(p!==null)W=!0;else{var k=n(f);k!==null&&re(O,k.startTime-q),W=!1}}break e}finally{p=null,g=ee,v=!1}W=void 0}}finally{W?B():A=!1}}}var B;if(typeof R=="function")B=function(){R(j)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,Z=U.port2;U.port1.onmessage=j,B=function(){Z.postMessage(null)}}else B=function(){S(j,0)};function re(q,W){M=S(function(){q(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(q){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var ee=g;g=W;try{return q()}finally{g=ee}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=g;g=q;try{return W()}finally{g=ee}},e.unstable_scheduleCallback=function(q,W,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ae+ee:ae):ee=ae,q){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=ee+Q,q={id:m++,callback:W,priorityLevel:q,startTime:ee,expirationTime:Q,sortIndex:-1},ee>ae?(q.sortIndex=ee,t(f,q),n(d)===null&&q===n(f)&&(b?(E(M),M=-1):b=!0,re(O,ee-ae))):(q.sortIndex=Q,t(d,q),y||v||(y=!0,A||(A=!0,B()))),q},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(q){var W=g;return function(){var ee=g;g=W;try{return q.apply(this,arguments)}finally{g=ee}}}})(w_)),w_}var nO;function G$(){return nO||(nO=1,b_.exports=H$()),b_.exports}var S_={exports:{}},rt={};var rO;function K$(){if(rO)return rt;rO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function S(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}S.prototype.isReactComponent={},S.prototype.setState=function(k,K){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,K,"setState")},S.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=S.prototype;function R(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}var C=R.prototype=new E;C.constructor=R,b(C,S.prototype),C.isPureReactComponent=!0;var O=Array.isArray;function A(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function L(k,K,V){var D=V.ref;return{$$typeof:e,type:k,key:K,ref:D!==void 0?D:null,props:V}}function H(k,K){return L(k.type,K,k.props)}function j(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function B(k){var K={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(V){return K[V]})}var U=/\/+/g;function Z(k,K){return typeof k=="object"&&k!==null&&k.key!=null?B(""+k.key):K.toString(36)}function re(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(A,A):(k.status="pending",k.then(function(K){k.status==="pending"&&(k.status="fulfilled",k.value=K)},function(K){k.status==="pending"&&(k.status="rejected",k.reason=K)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function q(k,K,V,D,F){var X=typeof k;(X==="undefined"||X==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(X){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case m:return fe=k._init,q(fe(k._payload),K,V,D,F)}}if(fe)return F=F(k),fe=D===""?"."+Z(k,0):D,O(F)?(V="",fe!=null&&(V=fe.replace(U,"$&/")+"/"),q(F,K,V,"",function(Ue){return Ue})):F!=null&&(j(F)&&(F=H(F,V+(F.key==null||k&&k.key===F.key?"":(""+F.key).replace(U,"$&/")+"/")+fe)),K.push(F)),1;fe=0;var pe=D===""?".":D+":";if(O(k))for(var xe=0;xe<k.length;xe++)D=k[xe],X=pe+Z(D,xe),fe+=q(D,K,V,X,F);else if(xe=v(k),typeof xe=="function")for(k=xe.call(k),xe=0;!(D=k.next()).done;)D=D.value,X=pe+Z(D,xe++),fe+=q(D,K,V,X,F);else if(X==="object"){if(typeof k.then=="function")return q(re(k),K,V,D,F);throw K=String(k),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(k,K,V){if(k==null)return k;var D=[],F=0;return q(k,D,"","",function(X){return K.call(V,X,F++)}),D}function ee(k){if(k._status===-1){var K=k._result;K=K(),K.then(function(V){(k._status===0||k._status===-1)&&(k._status=1,k._result=V)},function(V){(k._status===0||k._status===-1)&&(k._status=2,k._result=V)}),k._status===-1&&(k._status=0,k._result=K)}if(k._status===1)return k._result.default;throw k._result}var ae=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Q={map:W,forEach:function(k,K,V){W(k,function(){K.apply(this,arguments)},V)},count:function(k){var K=0;return W(k,function(){K++}),K},toArray:function(k){return W(k,function(K){return K})||[]},only:function(k){if(!j(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return rt.Activity=p,rt.Children=Q,rt.Component=S,rt.Fragment=n,rt.Profiler=i,rt.PureComponent=R,rt.StrictMode=r,rt.Suspense=d,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,rt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return M.H.useMemoCache(k)}},rt.cache=function(k){return function(){return k.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(k,K,V){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var D=b({},k.props),F=k.key;if(K!=null)for(X in K.key!==void 0&&(F=""+K.key),K)!P.call(K,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&K.ref===void 0||(D[X]=K[X]);var X=arguments.length-2;if(X===1)D.children=V;else if(1<X){for(var fe=Array(X),pe=0;pe<X;pe++)fe[pe]=arguments[pe+2];D.children=fe}return L(k.type,F,D)},rt.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},rt.createElement=function(k,K,V){var D,F={},X=null;if(K!=null)for(D in K.key!==void 0&&(X=""+K.key),K)P.call(K,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(F[D]=K[D]);var fe=arguments.length-2;if(fe===1)F.children=V;else if(1<fe){for(var pe=Array(fe),xe=0;xe<fe;xe++)pe[xe]=arguments[xe+2];F.children=pe}if(k&&k.defaultProps)for(D in fe=k.defaultProps,fe)F[D]===void 0&&(F[D]=fe[D]);return L(k,X,F)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(k){return{$$typeof:c,render:k}},rt.isValidElement=j,rt.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:ee}},rt.memo=function(k,K){return{$$typeof:f,type:k,compare:K===void 0?null:K}},rt.startTransition=function(k){var K=M.T,V={};M.T=V;try{var D=k(),F=M.S;F!==null&&F(V,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(A,ae)}catch(X){ae(X)}finally{K!==null&&V.types!==null&&(K.types=V.types),M.T=K}},rt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},rt.use=function(k){return M.H.use(k)},rt.useActionState=function(k,K,V){return M.H.useActionState(k,K,V)},rt.useCallback=function(k,K){return M.H.useCallback(k,K)},rt.useContext=function(k){return M.H.useContext(k)},rt.useDebugValue=function(){},rt.useDeferredValue=function(k,K){return M.H.useDeferredValue(k,K)},rt.useEffect=function(k,K){return M.H.useEffect(k,K)},rt.useEffectEvent=function(k){return M.H.useEffectEvent(k)},rt.useId=function(){return M.H.useId()},rt.useImperativeHandle=function(k,K,V){return M.H.useImperativeHandle(k,K,V)},rt.useInsertionEffect=function(k,K){return M.H.useInsertionEffect(k,K)},rt.useLayoutEffect=function(k,K){return M.H.useLayoutEffect(k,K)},rt.useMemo=function(k,K){return M.H.useMemo(k,K)},rt.useOptimistic=function(k,K){return M.H.useOptimistic(k,K)},rt.useReducer=function(k,K,V){return M.H.useReducer(k,K,V)},rt.useRef=function(k){return M.H.useRef(k)},rt.useState=function(k){return M.H.useState(k)},rt.useSyncExternalStore=function(k,K,V){return M.H.useSyncExternalStore(k,K,V)},rt.useTransition=function(){return M.H.useTransition()},rt.version="19.2.5",rt}var iO;function ca(){return iO||(iO=1,S_.exports=K$()),S_.exports}var E_={exports:{}},yr={};var oO;function Z$(){if(oO)return yr;oO=1;var e=ca();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return yr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,yr.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,m)},yr.flushSync=function(d){var f=l.T,m=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=m,r.d.f()}},yr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},yr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},yr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:v}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},yr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},yr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},yr.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},yr.requestFormReset=function(d){r.d.r(d)},yr.unstable_batchedUpdates=function(d,f){return d(f)},yr.useFormState=function(d,f,m){return l.H.useFormState(d,f,m)},yr.useFormStatus=function(){return l.H.useHostTransitionStatus()},yr.version="19.2.5",yr}var sO;function IM(){if(sO)return E_.exports;sO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),E_.exports=Z$(),E_.exports}var aO;function Y$(){if(aO)return Vu;aO=1;var e=G$(),t=ca(),n=IM();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var a=o,u=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(u=a.return),o=a.return;while(o)}return a.tag===3?u:null}function l(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function c(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function d(o){if(s(o)!==o)throw Error(r(188))}function f(o){var a=o.alternate;if(!a){if(a=s(o),a===null)throw Error(r(188));return a!==o?null:o}for(var u=o,h=a;;){var _=u.return;if(_===null)break;var w=_.alternate;if(w===null){if(h=_.return,h!==null){u=h;continue}break}if(_.child===w.child){for(w=_.child;w;){if(w===u)return d(_),o;if(w===h)return d(_),a;w=w.sibling}throw Error(r(188))}if(u.return!==h.return)u=_,h=w;else{for(var N=!1,$=_.child;$;){if($===u){N=!0,u=_,h=w;break}if($===h){N=!0,h=_,u=w;break}$=$.sibling}if(!N){for($=w.child;$;){if($===u){N=!0,u=w,h=_;break}if($===h){N=!0,h=w,u=_;break}$=$.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:a}function m(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=m(o),a!==null)return a;o=o.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),R=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function B(o){return o===null||typeof o!="object"?null:(o=j&&o[j]||o["@@iterator"],typeof o=="function"?o:null)}var U=Symbol.for("react.client.reference");function Z(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===U?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case A:return"SuspenseList";case L:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case R:return o.displayName||"Context";case E:return(o._context.displayName||"Context")+".Consumer";case C:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return a=o.displayName||null,a!==null?a:Z(o.type)||"Memo";case P:a=o._payload,o=o._init;try{return Z(o(a))}catch{}}return null}var re=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ae=[],Q=-1;function k(o){return{current:o}}function K(o){0>Q||(o.current=ae[Q],ae[Q]=null,Q--)}function V(o,a){Q++,ae[Q]=o.current,o.current=a}var D=k(null),F=k(null),X=k(null),fe=k(null);function pe(o,a){switch(V(X,a),V(F,o),V(D,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?w2(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=w2(a),o=S2(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}K(D),V(D,o)}function xe(){K(D),K(F),K(X)}function Ue(o){o.memoizedState!==null&&V(fe,o);var a=D.current,u=S2(a,o.type);a!==u&&(V(F,o),V(D,u))}function Y(o){F.current===o&&(K(D),K(F)),fe.current===o&&(K(fe),ju._currentValue=ee)}var te,ve;function se(o){if(te===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);te=a&&a[1]||"",ve=-1<u.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+te+o+ve}var we=!1;function Oe(o,a){if(!o||we)return"";we=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(a){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(ge){var he=ge}Reflect.construct(o,[],Se)}else{try{Se.call()}catch(ge){he=ge}o.call(Se.prototype)}}else{try{throw Error()}catch(ge){he=ge}(Se=o())&&typeof Se.catch=="function"&&Se.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=h.DetermineComponentFrameRoot(),N=w[0],$=w[1];if(N&&$){var J=N.split(`
|
|
@@ -168,4 +168,4 @@ ${r}
|
|
|
168
168
|
${r}
|
|
169
169
|
}`)}if(n.length>0){const r=document.createElement("style");r.id="mesh-theme-overrides",r.textContent=n.join(`
|
|
170
170
|
|
|
171
|
-
`),document.head.appendChild(r)}}function Jse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:GM.publicConfig(),queryFn:Qse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=HM(r),[s]=Yse();i.internalUrl&&Use(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Xse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const eae=new bj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function tae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(hH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(jD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(wj,{client:eae,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Jse,{children:T.jsx(Lj,{children:T.jsx(Fee,{children:T.jsx(Wne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function nae(...e){return BP(pw(e))}const rae=y4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function W1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?jw:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=nae(rae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const CM="__mesh_chunk_reload_ts";function AM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class ice extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),kD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class iae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=AM(t);if(kD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(CM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(CM,String(s)),window.location.reload())}render(){return this.state.hasError&&AM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx($D,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(W1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const oae="MCP Workflows",sae="Create workflows using your MCP tools",aae=I.lazy(()=>At(()=>import("./plugin-header-HXnwUdYS.js"),__vite__mapDeps([0,1,2]))),lae=I.lazy(()=>At(()=>import("./plugin-empty-state-CFxEUNdF.js"),[])),cae={id:oae,description:sae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(aae,{...e}),renderEmptyState:()=>T.jsx(lae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(DD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},uae=[cae],ma=t7({component:()=>T.jsx(iae,{children:T.jsx(tae,{children:T.jsx(I.Suspense,{fallback:T.jsx(jD,{}),children:T.jsx(mP,{})})})})}),dae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-m1plet6k.js"),__vite__mapDeps([3,4]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),fae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-5ioWEbN5.js"),__vite__mapDeps([5,4]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),hae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-CyIMPFaS.js"),[]))}),pae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-D6DOFeyW.js"),[]))}),mae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-wUhwntlH.js"),[]))}),rE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-G8D-0WXl.js").then(e=>e.s),__vite__mapDeps([6,7,8,9,10,11,12,13,14,15])))}),gae=mt({getParentRoute:()=>rE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=localStorage.getItem(Rg.lastOrgSlug());if(t){if(e.some(i=>i.slug===t))throw Oc({to:"/$org",params:{org:t}});localStorage.removeItem(Rg.lastOrgSlug())}const n=e[0];throw Oc(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),vae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(e&&e.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-dml5YruP.js"),__vite__mapDeps([16,9,4,17,18,19,20])))}),iE=mt({getParentRoute:()=>rE,path:"/$org",component:It(()=>At(()=>import("./org-layout-QSP-N9k0.js"),[]))}),oE=mt({getParentRoute:()=>iE,id:"org-shell",component:It(()=>At(()=>import("./index-BTded5vd.js"),__vite__mapDeps([21,22,23,8,24,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,40,15,41,42,43,44,45,46,47,48,6,7,9,10,11,12,13,14,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,17,4,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106])))}),sE=mt({getParentRoute:()=>oE,id:"agent-shell",component:It(()=>At(()=>import("./index-BPbckF-i.js"),__vite__mapDeps([107,69,7,8,70,4,71,11,12,72,73,56,29,74,39,75,1,15,25,26,27,28,30,31,32,33,18,19,2,34,35,36,37,38,20,22,23,40,41,42,43,44,45,46,47,48,76,77,78,63,60,68,55,57,58,59,10,13,6,9,14,49,50,51,52,53,54,79,66,17,80,81,82,61,83,84,85,86,64,65,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,108,109,62,24,67,103,104,105,106,110,111,112,113,114,115,116,117,118])))}),_ae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),O6=mt({getParentRoute:()=>sE,path:"/$taskId",validateSearch:_ae,component:()=>null}),yae=mt({getParentRoute:()=>oE,path:"/",component:It(()=>At(()=>import("./index-Boo37gVZ.js"),__vite__mapDeps([119,60,37,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,38,20,39,22,23,8,40,15,41,42,43,44,45,46,47,48,61,12,56,11,13,72,73,7,74,75,71,76,77,78,63,68,69,70,4,55,57,58,59,10,6,9,14,49,50,51,52,53,54,79,66,17,80,81,82,83,84,85,86,64,65,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,104])))}),Pn=mt({getParentRoute:()=>iE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-U-ZhWkRq.js"),__vite__mapDeps([120,22,23,8,30,33,18,34,15,45,47,48,110,91,58,59])))}),bae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),wae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-BzqA2cUL.js"),__vite__mapDeps([121,77,78,122,89,1,34,36,28,23,115,98,117,39,97,93,92,94,71,11,12,13,95,96,76,86,60,37,25,26,27,29,30,31,32,33,18,19,2,35,38,20,22,8,40,15,41,42,43,44,45,46,47,48,105,123,65,101,124,125,75,7,63,66,17,4,80,99,56,100]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),Sae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-DQFCqOq5.js"),__vite__mapDeps([126,77,78,105,100,4,43,46,127,12,68,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,22,23,8,40,15,41,42,44,45,47,48,71,11,128,129,76,94,13,80,109,62,56,104,73,113,98,54,130,131,64,79,60,66,17,123,65,132,133,92,74,86,89]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-BiG3-7wS.js"),__vite__mapDeps([134,105,11,12,66,17,4,99,132,22,23,8,135,128,78,129,56,136,50,111,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,40,15,41,42,43,44,45,46,47,48,98,80,115,71,68,7,90,89,60,114,67,137,59,54,127,76,77,94,13,109,62,104,73,92,113,53,55,57,58,10,6,9,14]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),xae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-CMbhqARA.js"),__vite__mapDeps([138,117,39,22,23,8,105,98,62,1,31,42,25,26,27,28,29,30,32,33,18,19,2,34,35,36,37,38,20,40,15,41,43,44,45,46,47,48,136,50,130,131,71,11,12,56,4,75,108,109,80,114,99,97,70,17,60,64,86,133,129,68,92,102,96,139,101,95,49,51,52,7,53,54,55,57,58,59,10,13,6,9,14,106]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),Rae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-D8u2dVV2.js"),__vite__mapDeps([140,22,23,8,131,84,64,47,4,85,86,32,141,88,12,70,103,39,56,11,62,61,25,26,27,28,29,30,31,33,18,19,1,2,34,35,36,37,38,20,40,15,41,42,43,44,45,46,48,60,13])))}),Oae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-Dvru3uGD.js"),__vite__mapDeps([142,22,23,8,13,12,70,37,85,86,32])))}),Tae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-BqPn2XVA.js"),__vite__mapDeps([143,12,2,34,38,40,43,46,48,65,4,99,22,23,8,88,84])))}),Cae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-BvV5AI1b.js"),__vite__mapDeps([144,82,75,1,4,7,8,63,23,80,2,35,61,27,29,39,44,57,12,55,56,11,58,59,10,13,83,48,84,26,19,46,22,85,86,32,70,81,64,47,65,87,52,88])))}),Aae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-DsVQeYYP.js"),__vite__mapDeps([145,122,89,1,34,36,28,23,115,98,117,39,22,8,146,139,105,7,66,17,80,2,35,99,131,147,130,12,65,64,47,86,45,46,75,108,109,62,43])))}),Iae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-4ojRgHgc.js"),__vite__mapDeps([148,147,131,98,65,89,1,34,36,15,43,46,146,139,28,22,23,8,105,117,39,83,60,37,25,26,27,29,30,31,32,33,18,19,2,35,38,20,40,41,42,44,45,47,48,101,75,102,96,12,74,130,71,11,57,64,70,85,86]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Mae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-BdojNoX2.js"),__vite__mapDeps([149,141,88,12,70,85,86,32,22,23,8,4,14,46])))}),Pae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-CyqjRQfg.js"),__vite__mapDeps([150,22,23,8,64,47,70,80,1,2,35,81,4,41,42,84,91,67,85,86,32])))}),Nae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-DGVb_5C1.js"),__vite__mapDeps([151,26,34,43,46,4,70,61,64,47,62,71,11,12,22,23,8,94,13,85,86,32])))}),kae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-DgOCTdY8.js"),[]))}),Dae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-KlW3QwUJ.js"),[]))}),Lae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-B3ajRQIi.js"),__vite__mapDeps([152,12,77,78,122,89,1,34,36,28,23,115,98,74,39,86,60,37,25,26,27,29,30,31,32,33,18,19,2,35,38,20,22,8,40,15,41,42,43,44,45,46,47,48,146,139,137,112,64,105,124,125,92,65,11,71,132])))}),$ae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-l83JU-Mp.js"),__vite__mapDeps([153,135,128,12,78,129,56,11,136,50,111,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,22,23,8,40,15,41,42,43,44,45,46,47,48,98,80,115,132,71,68,7,90,89,60,114,67,137,59,4])))}),jae=mt({getParentRoute:()=>sE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-ZONr0rlX.js"),__vite__mapDeps([154,155,71,11,12,44,22,23,8])))}),Uae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-BUqQO9y3.js"),__vite__mapDeps([156,89,1,34,36,18,72,12,73,56,11,7,8,29,74,39,75,71,15,25,26,27,28,30,31,32,33,19,2,35,37,38,20,22,23,40,41,42,43,44,45,46,47,48,76,77,78,63,60,68,86,87,52,105,104,65,117])))}),zae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-CkkIdwK3.js"),__vite__mapDeps([157,43,48,117,39,22,23,8,105,116,65,89,1,34,36,25,26,27,28,29,30,31,32,33,18,19,2,35,37,38,20,40,15,41,42,44,45,46,47,56,11,12,73])))}),T6=mt({getParentRoute:()=>O6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout--sGvQXk2.js"),__vite__mapDeps([158,155,71,11,12,44,22,23,8])))}),Fae=[],Bae=[],Vae=[],C6=[];uae.forEach(e=>{if(!e.setup)return;const t={parentRoute:T6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>Fae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Bae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Vae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{C6.push(...n)}};e.setup(t)});const qae=T6.addChildren(C6),Hae=Pn.addChildren([bae,wae,Sae,Eae,Uae,zae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,Nae,Dae,kae,Lae,$ae]),Gae=O6.addChildren([qae]),Kae=sE.addChildren([Gae,jae]),Zae=oE.addChildren([yae,Kae]),Yae=iE.addChildren([Zae,Hae]),Wae=rE.addChildren([gae,Yae]),Qae=ma.addChildren([Wae,vae,dae,fae,hae,pae,mae]),Xae=u7({routeTree:Qae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),Jae=document.getElementById("root");Q$.createRoot(Jae).render(T.jsx(I.StrictMode,{children:T.jsx(h7,{router:Xae})}));export{KM as $,Mle as A,W1 as B,To as C,tG as D,ice as E,ece as F,nce as G,Ee as H,St as I,z as J,GM as K,fw as L,$D as M,cle as N,mP as O,Yse as P,Gse as Q,Rg as R,jD as S,LJ as T,Yr as U,Jle as V,Fae as W,Bae as X,oae as Y,DD as Z,At as _,kj as a,Ye as a$,sle as a0,xo as a1,eee as a2,ht as a3,no as a4,cW as a5,uW as a6,yn as a7,lt as a8,dW as a9,t3 as aA,sY as aB,cY as aC,aY as aD,ZZ as aE,Ole as aF,Vae as aG,tle as aH,Ut as aI,Xt as aJ,Ie as aK,JH as aL,Xle as aM,Qle as aN,HS as aO,vg as aP,DY as aQ,x3 as aR,X4 as aS,lf as aT,ta as aU,kY as aV,ds as aW,y4 as aX,jw as aY,Wr as aZ,Pt as a_,fW as aa,mW as ab,bW as ac,I3 as ad,fl as ae,hW as af,pW as ag,gW as ah,vW as ai,_W as aj,yW as ak,wW as al,EW as am,xW as an,Ig as ao,dn as ap,fC as aq,Q1 as ar,iY as as,ro as at,Kd as au,Ww as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,nZ as b$,RV as b0,BP as b1,pw as b2,Rk as b3,Tk as b4,YW as b5,Wn as b6,wQ as b7,d3 as b8,Q4 as b9,wre as bA,xre as bB,Dre as bC,Zre as bD,Qre as bE,bre as bF,Sre as bG,Rre as bH,Ore as bI,Lre as bJ,qre as bK,qle as bL,uae as bM,pV as bN,ule as bO,mle as bP,gq as bQ,ul as bR,VN as bS,GN as bT,fle as bU,rce as bV,rG as bW,nG as bX,u4 as bY,pf as bZ,eZ as b_,rae as ba,la as bb,ne as bc,ele as bd,iZ as be,Lle as bf,uP as bg,ca as bh,as as bi,Dle as bj,$le as bk,rn as bl,dle as bm,qN as bn,zre as bo,Fre as bp,VS as bq,l6 as br,qS as bs,nv as bt,GD as bu,tie as bv,ZD as bw,Wre as bx,cie as by,yre as bz,nae as c,n6 as c$,rZ as c0,af as c1,qM as c2,Aj as c3,S3 as c4,wY as c5,Fw as c6,h3 as c7,k4 as c8,Bw as c9,Wle as cA,eoe as cB,pt as cC,Hoe as cD,to as cE,XW as cF,fP as cG,Ale as cH,oZ as cI,sZ as cJ,tZ as cK,aZ as cL,Bz as cM,HD as cN,YD as cO,XD as cP,e6 as cQ,t6 as cR,r6 as cS,Ble as cT,Vle as cU,zle as cV,Fle as cW,Jne as cX,Ule as cY,WD as cZ,JD as c_,Gd as ca,R4 as cb,zw as cc,Uw as cd,SY as ce,EY as cf,oQ as cg,sQ as ch,iQ as ci,Or as cj,lle as ck,QH as cl,YH as cm,HH as cn,n4 as co,HV as cp,Sw as cq,EV as cr,hle as cs,ZV as ct,xw as cu,Ew as cv,XV as cw,ple as cx,Yle as cy,_se as cz,dw as d,Gle as d0,QD as d1,Zle as d2,kS as d3,fre as d4,jle as d5,qD as d6,Die as d7,Vre as d8,Kle as d9,Tie as da,Iie as db,die as dc,uie as dd,Hle as de,gle as df,BW as dg,VW as dh,GW as di,qW as dj,HW as dk,yle as dl,ble as dm,xle as dn,Rle as dp,Tle as dq,Ele as dr,Sle as ds,wle as dt,_le as du,vle as dv,UM as dw,yO as dx,rle as dy,nle as dz,Ro as e,rf as f,uw as g,Ple as h,Ile as i,T as j,Nle as k,LD as l,tce as m,Nj as n,nw as o,PM as p,Zn as q,I as r,Xne as s,kle as t,ale as u,ole as v,HM as w,RT as x,NS as y,Oo as z};
|
|
171
|
+
`),document.head.appendChild(r)}}function Jse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:GM.publicConfig(),queryFn:Qse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=HM(r),[s]=Yse();i.internalUrl&&Use(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Xse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const eae=new bj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function tae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(hH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(jD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(wj,{client:eae,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Jse,{children:T.jsx(Lj,{children:T.jsx(Fee,{children:T.jsx(Wne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function nae(...e){return BP(pw(e))}const rae=y4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function W1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?jw:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=nae(rae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const CM="__mesh_chunk_reload_ts";function AM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class ice extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),kD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class iae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=AM(t);if(kD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(CM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(CM,String(s)),window.location.reload())}render(){return this.state.hasError&&AM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx($D,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(W1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const oae="MCP Workflows",sae="Create workflows using your MCP tools",aae=I.lazy(()=>At(()=>import("./plugin-header-U1iHtY7c.js"),__vite__mapDeps([0,1,2]))),lae=I.lazy(()=>At(()=>import("./plugin-empty-state-JWDC1EDj.js"),[])),cae={id:oae,description:sae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(aae,{...e}),renderEmptyState:()=>T.jsx(lae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(DD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},uae=[cae],ma=t7({component:()=>T.jsx(iae,{children:T.jsx(tae,{children:T.jsx(I.Suspense,{fallback:T.jsx(jD,{}),children:T.jsx(mP,{})})})})}),dae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-qkZIlsfB.js"),__vite__mapDeps([3,4]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),fae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-BMtkWtLN.js"),__vite__mapDeps([5,4]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),hae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-BjoJ1fit.js"),[]))}),pae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-D32b5XtK.js"),[]))}),mae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-KERy7Bq0.js"),[]))}),rE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-B81nbNNu.js").then(e=>e.s),__vite__mapDeps([6,7,8,9,10,11,12,13,14,15])))}),gae=mt({getParentRoute:()=>rE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=localStorage.getItem(Rg.lastOrgSlug());if(t){if(e.some(i=>i.slug===t))throw Oc({to:"/$org",params:{org:t}});localStorage.removeItem(Rg.lastOrgSlug())}const n=e[0];throw Oc(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),vae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(e&&e.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-C7pha-UZ.js"),__vite__mapDeps([16,9,4,17,18,19,20])))}),iE=mt({getParentRoute:()=>rE,path:"/$org",component:It(()=>At(()=>import("./org-layout-CGeuSECe.js"),[]))}),oE=mt({getParentRoute:()=>iE,id:"org-shell",component:It(()=>At(()=>import("./index-inyirlB4.js"),__vite__mapDeps([21,22,23,8,24,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,40,15,41,42,43,44,45,46,47,48,6,7,9,10,11,12,13,14,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,17,4,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106])))}),sE=mt({getParentRoute:()=>oE,id:"agent-shell",component:It(()=>At(()=>import("./index-D2ho-V2I.js"),__vite__mapDeps([107,69,7,8,70,4,71,11,12,72,73,56,29,74,39,75,1,15,25,26,27,28,30,31,32,33,18,19,2,34,35,36,37,38,20,22,23,40,41,42,43,44,45,46,47,48,76,77,78,63,60,68,55,57,58,59,10,13,6,9,14,49,50,51,52,53,54,79,66,17,80,81,82,61,83,84,85,86,64,65,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,108,109,62,24,67,103,104,105,106,110,111,112,113,114,115,116,117,118])))}),_ae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),O6=mt({getParentRoute:()=>sE,path:"/$taskId",validateSearch:_ae,component:()=>null}),yae=mt({getParentRoute:()=>oE,path:"/",component:It(()=>At(()=>import("./index-DMhywANg.js"),__vite__mapDeps([119,60,37,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,38,20,39,22,23,8,40,15,41,42,43,44,45,46,47,48,61,12,56,11,13,72,73,7,74,75,71,76,77,78,63,68,69,70,4,55,57,58,59,10,6,9,14,49,50,51,52,53,54,79,66,17,80,81,82,83,84,85,86,64,65,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,104])))}),Pn=mt({getParentRoute:()=>iE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-C-BNaFF6.js"),__vite__mapDeps([120,22,23,8,30,33,18,34,15,45,47,48,110,91,58,59])))}),bae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),wae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-DPNF_KPz.js"),__vite__mapDeps([121,77,78,122,89,1,34,36,28,23,115,98,117,39,97,93,92,94,71,11,12,13,95,96,76,86,60,37,25,26,27,29,30,31,32,33,18,19,2,35,38,20,22,8,40,15,41,42,43,44,45,46,47,48,105,123,65,101,124,125,75,7,63,66,17,4,80,99,56,100]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),Sae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-CzXiJt7V.js"),__vite__mapDeps([126,77,78,105,100,4,43,46,127,12,68,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,22,23,8,40,15,41,42,44,45,47,48,71,11,128,129,76,94,13,80,109,62,56,104,73,113,98,54,130,131,64,79,60,66,17,123,65,132,133,92,74,86,89]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-D3nsJ20C.js"),__vite__mapDeps([134,105,11,12,66,17,4,99,132,22,23,8,135,128,78,129,56,136,50,111,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,40,15,41,42,43,44,45,46,47,48,98,80,115,71,68,7,90,89,60,114,67,137,59,54,127,76,77,94,13,109,62,104,73,92,113,53,55,57,58,10,6,9,14]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),xae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-DMXTlRhR.js"),__vite__mapDeps([138,117,39,22,23,8,105,98,62,1,31,42,25,26,27,28,29,30,32,33,18,19,2,34,35,36,37,38,20,40,15,41,43,44,45,46,47,48,136,50,130,131,71,11,12,56,4,75,108,109,80,114,99,97,70,17,60,64,86,133,129,68,92,102,96,139,101,95,49,51,52,7,53,54,55,57,58,59,10,13,6,9,14,106]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),Rae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-ChIDXqk_.js"),__vite__mapDeps([140,22,23,8,131,84,64,47,4,85,86,32,141,88,12,70,103,39,56,11,62,61,25,26,27,28,29,30,31,33,18,19,1,2,34,35,36,37,38,20,40,15,41,42,43,44,45,46,48,60,13])))}),Oae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-CeLAaeRl.js"),__vite__mapDeps([142,22,23,8,13,12,70,37,85,86,32])))}),Tae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-BqrRLTJ8.js"),__vite__mapDeps([143,12,2,34,38,40,43,46,48,65,4,99,22,23,8,88,84])))}),Cae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-CEOJVgLo.js"),__vite__mapDeps([144,82,75,1,4,7,8,63,23,80,2,35,61,27,29,39,44,57,12,55,56,11,58,59,10,13,83,48,84,26,19,46,22,85,86,32,70,81,64,47,65,87,52,88])))}),Aae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-Bz4sBwrN.js"),__vite__mapDeps([145,122,89,1,34,36,28,23,115,98,117,39,22,8,146,139,105,7,66,17,80,2,35,99,131,147,130,12,65,64,47,86,45,46,75,108,109,62,43])))}),Iae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-Cu1HtilV.js"),__vite__mapDeps([148,147,131,98,65,89,1,34,36,15,43,46,146,139,28,22,23,8,105,117,39,83,60,37,25,26,27,29,30,31,32,33,18,19,2,35,38,20,40,41,42,44,45,47,48,101,75,102,96,12,74,130,71,11,57,64,70,85,86]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Mae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-BBUY-MCm.js"),__vite__mapDeps([149,141,88,12,70,85,86,32,22,23,8,4,14,46])))}),Pae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-CS9_x9iB.js"),__vite__mapDeps([150,22,23,8,64,47,70,80,1,2,35,81,4,41,42,84,91,67,85,86,32])))}),Nae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-WOpWwK_Y.js"),__vite__mapDeps([151,26,34,43,46,4,70,61,64,47,62,71,11,12,22,23,8,94,13,85,86,32])))}),kae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-B-s71WVC.js"),[]))}),Dae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-D6Fj-htY.js"),[]))}),Lae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-BmpdL636.js"),__vite__mapDeps([152,12,77,78,122,89,1,34,36,28,23,115,98,74,39,86,60,37,25,26,27,29,30,31,32,33,18,19,2,35,38,20,22,8,40,15,41,42,43,44,45,46,47,48,146,139,137,112,64,105,124,125,92,65,11,71,132])))}),$ae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-CF7Wua1l.js"),__vite__mapDeps([153,135,128,12,78,129,56,11,136,50,111,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,22,23,8,40,15,41,42,43,44,45,46,47,48,98,80,115,132,71,68,7,90,89,60,114,67,137,59,4])))}),jae=mt({getParentRoute:()=>sE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-DaAkPGcd.js"),__vite__mapDeps([154,155,71,11,12,44,22,23,8])))}),Uae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-YKvU-KT5.js"),__vite__mapDeps([156,89,1,34,36,18,72,12,73,56,11,7,8,29,74,39,75,71,15,25,26,27,28,30,31,32,33,19,2,35,37,38,20,22,23,40,41,42,43,44,45,46,47,48,76,77,78,63,60,68,86,87,52,105,104,65,117])))}),zae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-CjWF6ELU.js"),__vite__mapDeps([157,43,48,117,39,22,23,8,105,116,65,89,1,34,36,25,26,27,28,29,30,31,32,33,18,19,2,35,37,38,20,40,15,41,42,44,45,46,47,56,11,12,73])))}),T6=mt({getParentRoute:()=>O6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-C6uS9Fgd.js"),__vite__mapDeps([158,155,71,11,12,44,22,23,8])))}),Fae=[],Bae=[],Vae=[],C6=[];uae.forEach(e=>{if(!e.setup)return;const t={parentRoute:T6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>Fae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Bae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Vae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{C6.push(...n)}};e.setup(t)});const qae=T6.addChildren(C6),Hae=Pn.addChildren([bae,wae,Sae,Eae,Uae,zae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,Nae,Dae,kae,Lae,$ae]),Gae=O6.addChildren([qae]),Kae=sE.addChildren([Gae,jae]),Zae=oE.addChildren([yae,Kae]),Yae=iE.addChildren([Zae,Hae]),Wae=rE.addChildren([gae,Yae]),Qae=ma.addChildren([Wae,vae,dae,fae,hae,pae,mae]),Xae=u7({routeTree:Qae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),Jae=document.getElementById("root");Q$.createRoot(Jae).render(T.jsx(I.StrictMode,{children:T.jsx(h7,{router:Xae})}));export{KM as $,Mle as A,W1 as B,To as C,tG as D,ice as E,ece as F,nce as G,Ee as H,St as I,z as J,GM as K,fw as L,$D as M,cle as N,mP as O,Yse as P,Gse as Q,Rg as R,jD as S,LJ as T,Yr as U,Jle as V,Fae as W,Bae as X,oae as Y,DD as Z,At as _,kj as a,Ye as a$,sle as a0,xo as a1,eee as a2,ht as a3,no as a4,cW as a5,uW as a6,yn as a7,lt as a8,dW as a9,t3 as aA,sY as aB,cY as aC,aY as aD,ZZ as aE,Ole as aF,Vae as aG,tle as aH,Ut as aI,Xt as aJ,Ie as aK,JH as aL,Xle as aM,Qle as aN,HS as aO,vg as aP,DY as aQ,x3 as aR,X4 as aS,lf as aT,ta as aU,kY as aV,ds as aW,y4 as aX,jw as aY,Wr as aZ,Pt as a_,fW as aa,mW as ab,bW as ac,I3 as ad,fl as ae,hW as af,pW as ag,gW as ah,vW as ai,_W as aj,yW as ak,wW as al,EW as am,xW as an,Ig as ao,dn as ap,fC as aq,Q1 as ar,iY as as,ro as at,Kd as au,Ww as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,nZ as b$,RV as b0,BP as b1,pw as b2,Rk as b3,Tk as b4,YW as b5,Wn as b6,wQ as b7,d3 as b8,Q4 as b9,wre as bA,xre as bB,Dre as bC,Zre as bD,Qre as bE,bre as bF,Sre as bG,Rre as bH,Ore as bI,Lre as bJ,qre as bK,qle as bL,uae as bM,pV as bN,ule as bO,mle as bP,gq as bQ,ul as bR,VN as bS,GN as bT,fle as bU,rce as bV,rG as bW,nG as bX,u4 as bY,pf as bZ,eZ as b_,rae as ba,la as bb,ne as bc,ele as bd,iZ as be,Lle as bf,uP as bg,ca as bh,as as bi,Dle as bj,$le as bk,rn as bl,dle as bm,qN as bn,zre as bo,Fre as bp,VS as bq,l6 as br,qS as bs,nv as bt,GD as bu,tie as bv,ZD as bw,Wre as bx,cie as by,yre as bz,nae as c,n6 as c$,rZ as c0,af as c1,qM as c2,Aj as c3,S3 as c4,wY as c5,Fw as c6,h3 as c7,k4 as c8,Bw as c9,Wle as cA,eoe as cB,pt as cC,Hoe as cD,to as cE,XW as cF,fP as cG,Ale as cH,oZ as cI,sZ as cJ,tZ as cK,aZ as cL,Bz as cM,HD as cN,YD as cO,XD as cP,e6 as cQ,t6 as cR,r6 as cS,Ble as cT,Vle as cU,zle as cV,Fle as cW,Jne as cX,Ule as cY,WD as cZ,JD as c_,Gd as ca,R4 as cb,zw as cc,Uw as cd,SY as ce,EY as cf,oQ as cg,sQ as ch,iQ as ci,Or as cj,lle as ck,QH as cl,YH as cm,HH as cn,n4 as co,HV as cp,Sw as cq,EV as cr,hle as cs,ZV as ct,xw as cu,Ew as cv,XV as cw,ple as cx,Yle as cy,_se as cz,dw as d,Gle as d0,QD as d1,Zle as d2,kS as d3,fre as d4,jle as d5,qD as d6,Die as d7,Vre as d8,Kle as d9,Tie as da,Iie as db,die as dc,uie as dd,Hle as de,gle as df,BW as dg,VW as dh,GW as di,qW as dj,HW as dk,yle as dl,ble as dm,xle as dn,Rle as dp,Tle as dq,Ele as dr,Sle as ds,wle as dt,_le as du,vle as dv,UM as dw,yO as dx,rle as dy,nle as dz,Ro as e,rf as f,uw as g,Ple as h,Ile as i,T as j,Nle as k,LD as l,tce as m,Nj as n,nw as o,PM as p,Zn as q,I as r,Xne as s,kle as t,ale as u,ole as v,HM as w,RT as x,NS as y,Oo as z};
|
package/dist/client/assets/{infiniteQueryObserver-IG8f9wWg.js → infiniteQueryObserver-DZfr_jIN.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dw as d,dx as f,dy as v,dz as x}from"./index-
|
|
1
|
+
import{dw as d,dx as f,dy as v,dz as x}from"./index-tTl1XGBH.js";var N=class extends d{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:f()})}getOptimisticResult(e){return e.behavior=f(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:a,isRefetching:P,isError:c,isRefetchError:g}=i,r=s.fetchMeta?.fetchMore?.direction,h=c&&r==="forward",o=a&&r==="forward",n=c&&r==="backward",u=a&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:x(t,s.data),hasPreviousPage:v(t,s.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:u,isRefetchError:g&&!h&&!n,isRefetching:P&&!o&&!u}}};export{N as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as s,c as a,j as d}from"./index-
|
|
1
|
+
import{e as s,c as a,j as d}from"./index-tTl1XGBH.js";function f(l){const e=s.c(10);let i,t,r;e[0]!==l?({className:i,type:r,...t}=l,e[0]=l,e[1]=i,e[2]=t,e[3]=r):(i=e[1],t=e[2],r=e[3]);let n;e[4]!==i?(n=a("file:text-foreground text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground flex h-9 w-full min-w-0 rounded-lg bg-background dark:bg-input/30 px-3 py-1 text-sm transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:opacity-50 card-shadow","focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),e[4]=i,e[5]=n):n=e[5];let o;return e[6]!==t||e[7]!==n||e[8]!==r?(o=d.jsx("input",{type:r,"data-slot":"input",className:n,...t}),e[6]=t,e[7]=n,e[8]=r,e[9]=o):o=e[9],o}export{f as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as A,j as h,r as z,c as _}from"./index-
|
|
1
|
+
import{e as A,j as h,r as z,c as _}from"./index-tTl1XGBH.js";import{n as L}from"./Container-D4mVdsOS.js";import{A as k}from"./agent-icon-DF6ftYz_.js";const C={"2xs":"h-4 w-4",xs:"h-6 w-6",sm:"h-9 w-9",md:"h-12 w-12",lg:"h-16 w-16",xl:"h-14 w-14"},Z={"2xs":"min-w-4",xs:"min-w-6",sm:"min-w-9",md:"min-w-12",lg:"min-w-16",xl:"min-w-14"},y={"2xs":8,xs:12,sm:16,md:24,lg:32,xl:28},M={"2xs":"xs",xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"lg"};function q(E){const e=A.c(12),{icon:t,name:s,size:w,className:o,fallbackIcon:c}=E,n=w===void 0?"md":w;if(t?.startsWith("icon://")||t?.includes("#agentcolor=")){const r=M[n];let l;return e[0]!==o||e[1]!==t||e[2]!==s||e[3]!==r?(l=h.jsx(k,{icon:t,name:s,size:r,className:o}),e[0]=o,e[1]=t,e[2]=s,e[3]=r,e[4]=l):l=e[4],l}const g=t??"no-icon";let i;return e[5]!==o||e[6]!==c||e[7]!==t||e[8]!==s||e[9]!==n||e[10]!==g?(i=h.jsx(R,{icon:t,name:s,size:n,className:o,fallbackIcon:c},g),e[5]=o,e[6]=c,e[7]=t,e[8]=s,e[9]=n,e[10]=g,e[11]=i):i=e[11],i}function R(E){const e=A.c(24),{icon:t,name:s,size:w,className:o,fallbackIcon:c}=E,n=w===void 0?"md":w,[g,i]=z.useState(!1),r=!!t&&g,l=C[n],b=Z[n];let a;e[0]!==o||e[1]!==l||e[2]!==b?(a=_("rounded-lg border border-border shrink-0 overflow-hidden aspect-square bg-white",l,b,o),e[0]=o,e[1]=l,e[2]=b,e[3]=a):a=e[3];const p=t||void 0,N=!r&&"hidden";let m;e[4]!==N?(m=_("h-full w-full object-cover",N),e[4]=N,e[5]=m):m=e[5];let I,S;e[6]===Symbol.for("react.memo_cache_sentinel")?(I=()=>i(!1),S=()=>i(!0),e[6]=I,e[7]=S):(I=e[6],S=e[7]);let d;e[8]!==s||e[9]!==p||e[10]!==m?(d=h.jsx("img",{src:p,alt:s,className:m,onError:I,onLoad:S}),e[8]=s,e[9]=p,e[10]=m,e[11]=d):d=e[11];const v=r&&"hidden";let f;e[12]!==v?(f=_("h-full w-full flex items-center justify-center bg-muted/20",v),e[12]=v,e[13]=f):f=e[13];let x;e[14]!==c||e[15]!==n?(x=c??h.jsx(L,{size:y[n],className:"text-muted-foreground"}),e[14]=c,e[15]=n,e[16]=x):x=e[16];let u;e[17]!==f||e[18]!==x?(u=h.jsx("div",{className:f,children:x}),e[17]=f,e[18]=x,e[19]=u):u=e[19];let j;return e[20]!==d||e[21]!==u||e[22]!==a?(j=h.jsxs("div",{className:a,children:[d,u]}),e[20]=d,e[21]=u,e[22]=a,e[23]=j):j=e[23],j}export{q as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n,c as r,j as i,b5 as p}from"./index-
|
|
1
|
+
import{e as n,c as r,j as i,b5 as p}from"./index-tTl1XGBH.js";function c(l){const e=n.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=r("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=i.jsx(p,{"data-slot":"label",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}export{c as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as C,r as i,c as A,j as a,ao as V}from"./index-
|
|
1
|
+
import{e as C,r as i,c as A,j as a,ao as V}from"./index-tTl1XGBH.js";import{P as E}from"./index-B52t-Jgl.js";const H=i.createContext(null);function z(x){const e=C.c(3),{children:l}=x,s=i.useContext(H);if(!s?.tabsEl)return null;let c;return e[0]!==l||e[1]!==s.tabsEl?(c=V.createPortal(l,s.tabsEl),e[0]=l,e[1]=s.tabsEl,e[2]=c):c=e[2],c}function D(x){const e=C.c(3),{children:l}=x,s=i.useContext(H);if(!s?.actionsEl)return null;let c;return e[0]!==l||e[1]!==s.actionsEl?(c=V.createPortal(l,s.actionsEl),e[0]=l,e[1]=s.actionsEl,e[2]=c):c=e[2],c}const B=D;function F(x){const e=C.c(21),{children:l,breadcrumb:s,hideHeader:c}=x;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={leftEl:null,tabsEl:null,actionsEl:null},e[0]=b):b=e[0];const[w,g]=i.useState(b),N=i.useRef(null),P=i.useRef(null),L=i.useRef(null);let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h=t=>{N.current=t,t&&g(n=>n.leftEl===t?n:{...n,leftEl:t})},e[1]=h):h=e[1];const $=h;let R;e[2]===Symbol.for("react.memo_cache_sentinel")?(R=t=>{P.current=t,t&&g(n=>n.tabsEl===t?n:{...n,tabsEl:t})},e[2]=R):R=e[2];const _=R;let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=t=>{L.current=t,t&&g(n=>n.actionsEl===t?n:{...n,actionsEl:t})},e[3]=d):d=e[3];const k=d,p=c&&"hidden";let o;e[4]!==p?(o=A(p),e[4]=p,e[5]=o):o=e[5];let j;e[6]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx("div",{ref:$,className:"flex items-center gap-2 min-w-0"}),e[6]=j):j=e[6];let r;e[7]!==s?(r=a.jsxs(E.Header.Left,{children:[s,j]}),e[7]=s,e[8]=r):r=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsxs(E.Header.Right,{children:[a.jsx("div",{ref:_,className:"flex items-center gap-2 overflow-x-auto min-w-0"}),a.jsx("div",{ref:k,className:"flex items-center gap-2 shrink-0"})]}),e[9]=y):y=e[9];let f;e[10]!==o||e[11]!==r?(f=a.jsxs(E.Header,{className:o,children:[r,y]}),e[10]=o,e[11]=r,e[12]=f):f=e[12];let m;e[13]!==l?(m=a.jsx(E.Content,{children:l}),e[13]=l,e[14]=m):m=e[14];let u;e[15]!==f||e[16]!==m?(u=a.jsxs(E,{children:[f,m]}),e[15]=f,e[16]=m,e[17]=u):u=e[17];let S;return e[18]!==w||e[19]!==u?(S=a.jsx(H,{value:w,children:u}),e[18]=w,e[19]=u,e[20]=S):S=e[20],S}export{F as V,B as a,z as b};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import{e as R,j as t,s as $,o as je,b as Fe,r as O,K as ne,n as He,a as Be,c as xe,B as ae,t as D,x as oe,G as Xe,F as Ze,v as ve,P as et,l as Ne,w as tt,f as nt}from"./index-tTl1XGBH.js";import{S as ce,u as V,d as Ae,W as qe,a as be}from"./constants-DP1fYfN5.js";import{a as _e}from"./use-navigate-to-agent-Bt2qz35f.js";import{a as le,b as de,c as ue,d as me,D as st}from"./dialog-BFoHlGht.js";import{i as Ee}from"./RefreshCcw01-C5KiSpOO.js";import{C as Qe}from"./collection-search-CavMXw0U.js";import{C as it}from"./checkbox-9a2NidDz.js";import{b as Se,u as ot}from"./use-connection-CHMNg8na.js";import{i as at}from"./Lock01-BCzwOsnt.js";import{n as rt}from"./agent-icon-DF6ftYz_.js";import{e as ct}from"./extract-connection-data-DI8Ev_i1.js";import{b as Oe,a as Le,c as Re,D as Me}from"./drawer-BhTf1Qla.js";import{u as ke}from"./tooltip-Bo9taUEe.js";import{I as Ue}from"./integration-icon--zCgX8zg.js";import{u as lt,d as Ke}from"./use-mcp-tools-DI96BLC5.js";import{a as Pe,b as dt}from"./use-virtual-mcp-CCHAGkyS.js";function re(i){const e=R.c(4),{size:n,className:a}=i;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"}),e[0]=c):c=e[0];let s;return e[1]!==a||e[2]!==n?(s=t.jsx("svg",{width:n,height:n,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",className:a,children:c}),e[1]=a,e[2]=n,e[3]=s):s=e[3],s}function ut(i){return i.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}async function mt(i){const e=await fetch(`/api/${i}/deco-sites`);if(!e.ok){const n=await e.json().catch(()=>({}));throw new Error(n.error??`Failed to load sites (${e.status})`)}return e.json()}function Zt(i){const e=R.c(70),{open:n,onOpenChange:a,onBack:c}=i,{org:s}=$(),r=_e(),d=je(),{data:u}=Fe.useSession(),[_,l]=O.useState(null),[p,T]=O.useState("");let h;e[0]!==s.id||e[1]!==s.slug?(h={connectionId:ce,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=h):h=e[2];const g=V(h);let f;e[3]!==u?.user?.email?(f=ne.decoSites(u?.user?.email),e[3]=u?.user?.email,e[4]=f):f=e[4];let m;e[5]!==s.slug?(m=()=>mt(s.slug),e[5]=s.slug,e[6]=m):m=e[6];const C=n&&!!u?.user?.email;let I;e[7]!==f||e[8]!==m||e[9]!==C?(I={queryKey:f,queryFn:m,enabled:C,staleTime:6e4,retry:!1},e[7]=f,e[8]=m,e[9]=C,e[10]=I):I=e[10];const{data:b,isLoading:x,error:y}=He(I),o=b?.sites??[];let N;e[11]!==a?(N=j=>{j||(l(null),T("")),a(j)},e[11]=a,e[12]=N):N=e[12];const w=N;let v;e[13]!==p?(v=j=>j.name.toLowerCase().includes(p.toLowerCase())||j.domains?.[0]?.domain.toLowerCase().includes(p.toLowerCase()),e[13]=p,e[14]=v):v=e[14];const A=o.filter(v),E=!_||A.some(j=>j.name===_);let S;e[15]!==g||e[16]!==s.id||e[17]!==s.slug?(S=async j=>{D("deco_site_import_started",{site_name:j});const P=await fetch(`/api/${s.slug}/deco-sites/connection`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({siteName:j,orgId:s.id})}),G=await P.json().catch(pt);if(!P.ok)throw new Error(G.error??`Failed to create connection (${P.status})`);const k=G.connId;if(!k)throw new Error("Server did not return a connection ID");const he=G.icon??null,te=ut(j),Ge=await g.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:j,description:"Imported from deco.cx",pinned:!0,icon:he??null,subtype:"project",metadata:{instructions:null,enabled_plugins:[],ui:{banner:null,bannerColor:"#22C55E",icon:he,themeColor:"#22C55E",slug:te,pinnedViews:[{connectionId:k,toolName:"file_explorer",label:"Preview",icon:null},{connectionId:k,toolName:"fetch_assets",label:"Assets",icon:null},{connectionId:k,toolName:"get_monitor_data",label:"Monitor",icon:null},{connectionId:k,toolName:"list_pull_requests",label:"Pull Requests",icon:null},{connectionId:k,toolName:"list_releases",label:"Releases",icon:null}],layout:{defaultMainView:{type:"ext-apps",id:k,toolName:"file_explorer"},chatDefaultOpen:!0}}},connections:[{connection_id:k}]}}}),De=Ge.structuredContent??Ge;return{slug:te,virtualMcpId:De.item.id,connId:k,item:De.item}},e[15]=g,e[16]=s.id,e[17]=s.slug,e[18]=S):S=e[18];let M;e[19]!==g||e[20]!==w||e[21]!==r||e[22]!==s.id||e[23]!==d?(M=j=>{const{slug:P,virtualMcpId:G,item:k}=j;D("deco_site_import_succeeded",{site_name:k.title,virtual_mcp_id:G,slug:P}),d.setQueryData(ne.collectionItem(g,s.id,"","VIRTUAL_MCP",G),{item:k}),d.invalidateQueries({predicate:he=>{const te=he.queryKey;return te[1]===s.id&&te[3]==="collection"&&te[4]==="VIRTUAL_MCP"}}),d.invalidateQueries({queryKey:ne.projects(s.id)}),oe.success(`Imported ${P} from deco.cx`),w(!1),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),r(G)},e[19]=g,e[20]=w,e[21]=r,e[22]=s.id,e[23]=d,e[24]=M):M=e[24];let z;e[25]!==S||e[26]!==M?(z={mutationFn:S,onSuccess:M,onError:gt},e[25]=S,e[26]=M,e[27]=z):z=e[27];const U=Be(z),se=de,L=le,ie="sm:max-w-[900px] p-0 gap-0 overflow-hidden";let F;e[28]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(ue,{className:"sr-only",children:t.jsx(me,{children:"Import from deco.cx"})}),e[28]=F):F=e[28];let H;e[29]!==c?(H=c&&t.jsx("button",{type:"button",onClick:c,className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors","aria-label":"Go back",children:t.jsx(Ee,{size:18})}),e[29]=c,e[30]=H):H=e[30];let fe;e[31]===Symbol.for("react.memo_cache_sentinel")?(fe=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Import from deco.cx"}),e[31]=fe):fe=e[31];let B;e[32]!==H?(B=t.jsxs("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3",children:[H,fe]}),e[32]=H,e[33]=B):B=e[33];let ge;e[34]===Symbol.for("react.memo_cache_sentinel")?(ge=j=>{j.key==="Escape"&&T("")},e[34]=ge):ge=e[34];let q;e[35]!==p?(q=t.jsx("div",{children:t.jsx(Qe,{value:p,onChange:T,placeholder:"Search sites...",onKeyDown:ge})}),e[35]=p,e[36]=q):q=e[36];const Je="pb-0 min-h-[300px]";let Q;e[37]!==x?(Q=x&&t.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"Loading sites..."}),e[37]=x,e[38]=Q):Q=e[38];const Te=!x&&!y&&o.length===0&&t.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"No sites found for this account."}),Ce=!x&&o.length>0&&t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 max-h-[420px] overflow-y-auto py-4 px-8 [scrollbar-gutter:stable]",children:[A.length===0&&t.jsxs("p",{className:"col-span-3 text-sm text-muted-foreground text-center py-8",children:["No sites match “",p,"”"]}),A.map(j=>{const P=j.domains?.find(ft)?.domain??j.domains?.[0]?.domain,G=_===j.name;return t.jsxs("button",{type:"button",onClick:()=>l(j.name),className:xe("flex flex-col rounded-xl border overflow-hidden text-left transition-all cursor-pointer",G?"border-primary ring-1 ring-primary":"border-border hover:border-muted-foreground/40"),children:[t.jsx("div",{className:"w-full aspect-video bg-muted overflow-hidden",children:j.thumb_url?t.jsx("img",{src:j.thumb_url,alt:j.name,className:"w-full h-full object-cover",loading:"lazy"}):t.jsx("div",{className:"w-full h-full bg-muted"})}),t.jsxs("div",{className:"px-4 py-3",children:[t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:j.name}),P&&t.jsx("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:P})]})]},j.name)})]});let K;e[39]!==Q||e[40]!==Te||e[41]!==Ce?(K=t.jsxs("div",{className:Je,children:[Q,Te,Ce]}),e[39]=Q,e[40]=Te,e[41]=Ce,e[42]=K):K=e[42];let Y;e[43]!==w?(Y=()=>w(!1),e[43]=w,e[44]=Y):Y=e[44];let W;e[45]!==U.isPending||e[46]!==Y?(W=t.jsx(ae,{variant:"outline",onClick:Y,disabled:U.isPending,children:"Cancel"}),e[45]=U.isPending,e[46]=Y,e[47]=W):W=e[47];const Ie=!_||!E||U.isPending||x;let J;e[48]!==U||e[49]!==_?(J=()=>_&&U.mutate(_),e[48]=U,e[49]=_,e[50]=J):J=e[50];const ye=U.isPending?"Importing...":"Import";let X;e[51]!==Ie||e[52]!==J||e[53]!==ye?(X=t.jsx(ae,{disabled:Ie,onClick:J,children:ye}),e[51]=Ie,e[52]=J,e[53]=ye,e[54]=X):X=e[54];let Z;e[55]!==W||e[56]!==X?(Z=t.jsxs(st,{className:"px-8 py-5 border-t border-border",children:[W,X]}),e[55]=W,e[56]=X,e[57]=Z):Z=e[57];let ee;e[58]!==L||e[59]!==F||e[60]!==B||e[61]!==q||e[62]!==K||e[63]!==Z?(ee=t.jsxs(L,{className:ie,children:[F,B,q,K,Z]}),e[58]=L,e[59]=F,e[60]=B,e[61]=q,e[62]=K,e[63]=Z,e[64]=ee):ee=e[64];let pe;return e[65]!==se||e[66]!==w||e[67]!==n||e[68]!==ee?(pe=t.jsx(se,{open:n,onOpenChange:w,children:ee}),e[65]=se,e[66]=w,e[67]=n,e[68]=ee,e[69]=pe):pe=e[69],pe}function ft(i){return i.production}function gt(i){D("deco_site_import_failed",{error:i instanceof Error?i.message:"Unknown error"}),oe.error("Import failed: "+(i instanceof Error?i.message:"Unknown error"))}function pt(){return{}}function ht(i,e){const n=R.c(4),[a,c]=O.useState(i);let s,r;return n[0]!==e||n[1]!==i?(s=()=>{const d=setTimeout(()=>c(i),e);return()=>clearTimeout(d)},r=[i,e],n[0]=e,n[1]=i,n[2]=s,n[3]=r):(s=n[2],r=n[3]),O.useEffect(s,r),a}function Ye(i,e){const n=R.c(12),{org:a}=$();let c;n[0]!==a.id?(c=Ae.REGISTRY(a.id),n[0]=a.id,n[1]=c):c=n[1];const s=c;let r;n[2]!==a.id||n[3]!==a.slug||n[4]!==s?(r={connectionId:s,orgId:a.id,orgSlug:a.slug},n[2]=a.id,n[3]=a.slug,n[4]=s,n[5]=r):r=n[5];const d=V(r);let u;n[6]!==i?(u={name:i},n[6]=i,n[7]=u):u=n[7];const _=e?.enabled??!0;let l;return n[8]!==d||n[9]!==u||n[10]!==_?(l={client:d,toolName:"COLLECTION_REGISTRY_APP_GET",toolArguments:u,enabled:_,staleTime:3e5,select:xt},n[8]=d,n[9]=u,n[10]=_,n[11]=l):l=n[11],lt(l)}function xt(i){return i.structuredContent?.item??null}const Nt="deco/mcp-github";function _t(i){const{org:e}=$(),{data:n}=Fe.useSession(),a=Se(),c=je(),[s,r]=O.useState("idle"),[d,u]=O.useState(null),[_,l]=O.useState(null),{data:p,isLoading:T}=Ye(Nt,{enabled:i.enabled}),h=O.useRef(!1);i.enabled&&p&&!T&&!h.current&&n?.user?.id&&s==="idle"&&(h.current=!0,g());async function g(){if(!(!p||!n?.user?.id||!e))try{r("installing"),u(null);const m=ct(p,e.id,n.user.id,{remoteIndex:0});if(!m.connection_url)throw new Error("Registry item is missing a remote URL for mcp-github");const{id:I}=await a.create.mutateAsync(m);r("authenticating");const b=new URL(`/api/${e.slug}/mcp/${I}`,window.location.origin),x=await Xe({url:b.href,token:null,orgId:e.id});if(x.supportsOAuth&&!x.isAuthenticated){const{token:y,tokenInfo:o,error:N}=await Ze({connectionId:I,orgSlug:e.slug,scope:"offline_access"});if(N||!y){try{await a.delete.mutateAsync(I)}catch{}throw new Error(N??"No token received from GitHub")}if(o)try{(await fetch(`/api/${e.slug}/connections/${I}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:o.accessToken,refreshToken:o.refreshToken,expiresIn:o.expiresIn,scope:o.scope,clientId:o.clientId,clientSecret:o.clientSecret,tokenEndpoint:o.tokenEndpoint})})).ok||await a.update.mutateAsync({id:I,data:{connection_token:y}})}catch{await a.update.mutateAsync({id:I,data:{connection_token:y}})}}ve(c,e.id),l(m),r("ready")}catch(m){u(m instanceof Error?m.message:String(m)),r("error")}}function f(){r("idle"),u(null),l(null),h.current=!1}return i.enabled&&T&&s==="idle"?{status:"installing",error:null,connection:null,retry:f}:{status:s,error:d,connection:_,retry:f}}function en(i){const e=R.c(21),{open:n,onOpenChange:a,title:c,hideAutoRespondCheckbox:s,onImportComplete:r}=i,d=c===void 0?"Import from GitHub":c,u=s===void 0?!1:s,[_]=et(),[l,p]=O.useState(null);if(!_.experimental_vibecode)return null;let T;e[0]!==d?(T=t.jsx(ue,{className:"sr-only",children:t.jsx(me,{children:d})}),e[0]=d,e[1]=T):T=e[1];let h;e[2]!==l||e[3]!==d?(h=t.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3 shrink-0",children:l?t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",onClick:()=>p(null),className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors shrink-0","aria-label":"Back to accounts",children:t.jsx(Ee,{size:16})}),t.jsx("img",{src:l.avatarUrl,alt:l.login,className:"size-5 rounded-full ring-1 ring-border shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:l.login})]}):t.jsxs(t.Fragment,{children:[t.jsx(re,{className:"size-4 text-foreground shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:d})]})}),e[2]=l,e[3]=d,e[4]=h):h=e[4];let g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Ne,{size:18,className:"animate-spin text-muted-foreground"})}),e[5]=g):g=e[5];let f;e[6]!==a?(f=()=>a(!1),e[6]=a,e[7]=f):f=e[7];let m;e[8]!==u||e[9]!==r||e[10]!==l||e[11]!==f?(m=t.jsx("div",{className:"flex-1 overflow-hidden flex flex-col min-w-0",children:t.jsx(O.Suspense,{fallback:g,children:t.jsx(Tt,{onComplete:f,selectedInstallation:l,onSelectInstallation:p,hideAutoRespondCheckbox:u,onImportComplete:r})})}),e[8]=u,e[9]=r,e[10]=l,e[11]=f,e[12]=m):m=e[12];let C;e[13]!==T||e[14]!==h||e[15]!==m?(C=t.jsxs(le,{className:"sm:max-w-[560px] h-[85svh] sm:h-[520px] p-0 gap-0 overflow-hidden flex flex-col",children:[T,h,m]}),e[13]=T,e[14]=h,e[15]=m,e[16]=C):C=e[16];let I;return e[17]!==a||e[18]!==n||e[19]!==C?(I=t.jsx(de,{open:n,onOpenChange:a,children:C}),e[17]=a,e[18]=n,e[19]=C,e[20]=I):I=e[20],I}function Tt({onComplete:i,selectedInstallation:e,onSelectInstallation:n,hideAutoRespondCheckbox:a,onImportComplete:c}){const{org:s}=$(),r=je(),d=_e(),[u,_]=O.useState(null),[l,p]=O.useState(!0),T=a?!0:l,h=ot({slug:"mcp-github"}),g=_t({enabled:h.length===0}),f=h.length===1?h[0]??null:u,m=V({connectionId:f?.id??"",orgId:s.id,orgSlug:s.slug}),C=V({connectionId:ce,orgId:s.id,orgSlug:s.slug}),I=async(o,N)=>{try{const v=await m.callTool({name:"get_file_contents",arguments:{owner:o.owner,repo:o.name,path:N}});if(v.isError)return null;const E=v.content?.find(S=>S.type==="resource")?.resource?.text;if(!E)return null;try{const S=JSON.parse(E);return typeof S=="string"?S:JSON.stringify(S)}catch{return E}}catch{return null}},b=(o,N)=>{Promise.all([I(N,"AGENTS.md"),I(N,"CLAUDE.md")]).then(async([w,v])=>{const A=w??v??null;A&&(await C.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:o,data:{metadata:{instructions:A}}}}),ve(r,s.id))}).catch(w=>{console.error("GitHub instructions fetch failed:",w)})},x=async({virtualMcpId:o,repo:N,connectionId:w})=>{const v=await m.callTool({name:"TRIGGER_LIST",arguments:{}}),A=v.structuredContent??v,E=A.triggers?.find(L=>L.type==="github.issues.opened")??A.triggers?.find(L=>{const ie=L.type.toLowerCase();return/\bissues?\./.test(ie)&&(ie.endsWith(".opened")||ie.endsWith(".created"))});if(!E)throw new Error("No issue-created trigger exposed by GitHub connection");const S=new Set;if(Array.isArray(E.params))for(const L of E.params)S.add(L.name);else if(E.params&&typeof E.params=="object")for(const L of Object.keys(E.params))S.add(L);if(E.paramsSchema)for(const L of Object.keys(E.paramsSchema))S.add(L);const M={};S.has("repo")?M.repo=`${N.owner}/${N.name}`:(S.has("owner")&&(M.owner=N.owner),S.has("name")&&(M.name=N.name),S.has("repository")&&(M.repository=`${N.owner}/${N.name}`));const z=`A new GitHub issue has been opened in ${N.owner}/${N.name}. Read the issue details, explore the relevant code in the repository, create a new branch, implement the fix or feature requested, and open a pull request that resolves the issue. Reference the issue number in the PR description.`,U=await C.callTool({name:"AUTOMATION_CREATE",arguments:{name:`${N.name}: auto-respond to issues`,virtual_mcp_id:o,messages:z,active:!0}}),se=U.structuredContent??U;await C.callTool({name:"AUTOMATION_TRIGGER_ADD",arguments:{automation_id:se.id,type:"event",connection_id:w,event_type:E.type,params:M}})},y=Be({mutationFn:async o=>{if(!f||!e)throw new Error("No GitHub connection or installation");const N=f.id,w=await C.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:o.name,description:o.description||"Imported from GitHub",pinned:!0,icon:null,metadata:{githubRepo:{owner:o.owner,name:o.name,url:o.url,installationId:e.installationId,connectionId:N},instructions:null,ui:{pinnedViews:null,layout:{defaultMainView:{type:"preview"}}}},connections:[{connection_id:N}]}}}),v=w.structuredContent??w,A=v.item.id;return T&&await x({virtualMcpId:A,repo:o,connectionId:N}).catch(E=>{console.error("Failed to set up issue automation:",E),oe.warning("Imported repo, but failed to set up issue auto-response. You can add the trigger manually from the automations view.")}),{virtualMcpId:A,repo:o,connectionId:N,item:v.item}},onSuccess:({virtualMcpId:o,repo:N,connectionId:w,item:v})=>{if(r.setQueryData(ne.collectionItem(C,s.id,"","VIRTUAL_MCP",o),{item:v}),ve(r,s.id),b(o,N),c){c({virtualMcpId:o,repo:N,connectionId:w});return}oe.success(`Imported ${N.name} from GitHub`),i(),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),d(o)},onError:o=>{oe.error("Failed to import repo: "+(o instanceof Error?o.message:"Unknown error"))}});return g.status==="installing"||g.status==="authenticating"?t.jsx(we,{status:g.status,error:null,retry:g.retry}):g.status==="error"?t.jsx(we,{status:"error",error:g.error,retry:g.retry}):h.length===0&&g.status==="idle"?t.jsx(we,{status:"installing",error:null,retry:g.retry}):h.length>1&&!f?t.jsxs("div",{className:"flex flex-col py-2",children:[t.jsx("div",{className:"px-4 py-2",children:t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Select a connection"})}),h.map(o=>t.jsxs("button",{type:"button",onClick:()=>_(o),className:"flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left",children:[o.icon?t.jsx("img",{src:o.icon,alt:o.title,className:"size-7 rounded-full shrink-0"}):t.jsx("div",{className:"size-7 rounded-full bg-muted flex items-center justify-center shrink-0",children:t.jsx(re,{className:"size-3.5 text-muted-foreground"})}),t.jsx("span",{className:"text-sm font-medium",children:o.title})]},o.id))]}):f?e?t.jsx(It,{connectionId:f.id,orgId:s.id,orgSlug:s.slug,installation:e,onSelectRepo:o=>y.mutate(o),isSaving:y.isPending,autoRespondToIssues:l,onAutoRespondChange:p,hideAutoRespondCheckbox:a}):t.jsx(Ct,{connectionId:f.id,orgId:s.id,orgSlug:s.slug,onSelect:n,showBackButton:h.length>1,onBack:()=>_(null)}):null}function Ct(i){const e=R.c(31),{connectionId:n,orgId:a,orgSlug:c,onSelect:s,showBackButton:r,onBack:d}=i;let u;e[0]!==a||e[1]!==c?(u={connectionId:ce,orgId:a,orgSlug:c},e[0]=a,e[1]=c,e[2]=u):u=e[2];const _=V(u);let l;e[3]!==n||e[4]!==a?(l=ne.githubUserOrgs(a,n),e[3]=n,e[4]=a,e[5]=l):l=e[5];let p;e[6]!==n||e[7]!==_?(p=async()=>{const N=(await _.callTool({name:"GITHUB_LIST_USER_ORGS",arguments:{connectionId:n}})).content?.[0]?.text;if(!N)throw new Error("No response from GITHUB_LIST_USER_ORGS");return JSON.parse(N)},e[6]=n,e[7]=_,e[8]=p):p=e[8];let T;e[9]!==l||e[10]!==p?(T={queryKey:l,queryFn:p},e[9]=l,e[10]=p,e[11]=T):T=e[11];const h=He(T);if(h.isLoading){let o;return e[12]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Ne,{size:18,className:"animate-spin text-muted-foreground"})}),e[12]=o):o=e[12],o}if(h.isError){let o;return e[13]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx("p",{className:"text-sm text-destructive",children:"Failed to load GitHub accounts"})}),e[13]=o):o=e[13],o}const g=h.data;if(!g)return null;let f;e[14]!==d||e[15]!==r?(f=r&&t.jsx("div",{className:"flex items-center gap-1 px-4 pt-3 pb-1 shrink-0",children:t.jsxs("button",{type:"button",onClick:d,className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[t.jsx(Ee,{size:12}),"Change connection"]})}),e[14]=d,e[15]=r,e[16]=f):f=e[16];let m;if(e[17]!==g.installations||e[18]!==s){let o;e[20]!==s?(o=N=>t.jsxs("button",{type:"button",onClick:()=>s(N),className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left group",children:[t.jsx("img",{src:N.avatarUrl,alt:N.login,className:"size-7 rounded-full shrink-0 ring-1 ring-border"}),t.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[t.jsx("span",{className:"text-sm font-medium leading-none",children:N.login}),N.type==="User"&&t.jsx("span",{className:"text-xs text-muted-foreground mt-1",children:"Personal account"})]}),t.jsx("span",{className:"text-xs text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:"Select →"})]},N.installationId),e[20]=s,e[21]=o):o=e[21],m=g.installations.map(o),e[17]=g.installations,e[18]=s,e[19]=m}else m=e[19];let C;e[22]!==m?(C=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden [scrollbar-gutter:stable]",children:m}),e[22]=m,e[23]=C):C=e[23];const I=g.appSlug?`https://github.com/apps/${g.appSlug}/installations/new`:"https://github.com/settings/installations";let b;e[24]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"underline underline-offset-2",children:"Install the GitHub App"}),e[24]=b):b=e[24];let x;e[25]!==I?(x=t.jsx("div",{className:"px-4 py-3 border-t border-border shrink-0",children:t.jsxs("a",{href:I,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:["Account not listed?"," ",b]})}),e[25]=I,e[26]=x):x=e[26];let y;return e[27]!==x||e[28]!==f||e[29]!==C?(y=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[f,C,x]}),e[27]=x,e[28]=f,e[29]=C,e[30]=y):y=e[30],y}function It(i){const e=R.c(25),{connectionId:n,orgId:a,orgSlug:c,installation:s,onSelectRepo:r,isSaving:d,autoRespondToIssues:u,onAutoRespondChange:_,hideAutoRespondCheckbox:l}=i,[p,T]=O.useState(""),h=ht(p,300),g=O.useDeferredValue(h),f=p!==g;let m;e[0]!==f||e[1]!==p?(m=t.jsx(Qe,{placeholder:"Search repositories...",value:p,onChange:T,isSearching:f}),e[0]=f,e[1]=p,e[2]=m):m=e[2];const C=f?"opacity-40":"opacity-100";let I;e[3]!==C?(I=xe("flex-1 overflow-hidden flex flex-col transition-opacity duration-150",C),e[3]=C,e[4]=I):I=e[4];let b;e[5]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Ne,{size:18,className:"animate-spin text-muted-foreground"})}),e[5]=b):b=e[5];let x;e[6]!==n||e[7]!==g||e[8]!==s||e[9]!==d||e[10]!==r||e[11]!==a||e[12]!==c?(x=t.jsx(O.Suspense,{fallback:b,children:t.jsx(yt,{connectionId:n,orgId:a,orgSlug:c,installation:s,query:g,onSelectRepo:r,isSaving:d})}),e[6]=n,e[7]=g,e[8]=s,e[9]=d,e[10]=r,e[11]=a,e[12]=c,e[13]=x):x=e[13];let y;e[14]!==I||e[15]!==x?(y=t.jsx("div",{className:I,children:x}),e[14]=I,e[15]=x,e[16]=y):y=e[16];let o;e[17]!==u||e[18]!==l||e[19]!==_?(o=!l&&t.jsxs("label",{className:"flex items-center gap-2 px-4 py-3 border-t border-border shrink-0 cursor-pointer select-none",children:[t.jsx(it,{checked:u,onCheckedChange:w=>_(w===!0)}),t.jsx("span",{className:"text-xs text-foreground",children:"Auto-respond to new issues with a PR"})]}),e[17]=u,e[18]=l,e[19]=_,e[20]=o):o=e[20];let N;return e[21]!==m||e[22]!==y||e[23]!==o?(N=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[m,y,o]}),e[21]=m,e[22]=y,e[23]=o,e[24]=N):N=e[24],N}function yt(i){const e=R.c(29),{connectionId:n,orgId:a,orgSlug:c,installation:s,query:r,onSelectRepo:d,isSaving:u}=i;let _;e[0]!==n||e[1]!==a||e[2]!==c?(_={connectionId:n,orgId:a,orgSlug:c},e[0]=n,e[1]=a,e[2]=c,e[3]=_):_=e[3];const l=V(_),p=s.type==="User"?"user":"org",T=r?`${p}:${s.login} ${r} in:name`:`${p}:${s.login}`;let h;e[4]!==n||e[5]!==s.login||e[6]!==a||e[7]!==r?(h=ne.githubOrgRepos(a,n,s.login,r),e[4]=n,e[5]=s.login,e[6]=a,e[7]=r,e[8]=h):h=e[8];let g;e[9]!==l||e[10]!==T?(g=async b=>{const{signal:x}=b,o=(await l.callTool({name:"search_repositories",arguments:{query:T,page:1,perPage:30}},void 0,{signal:x})).content?.[0]?.text;if(!o)throw new Error("No response from search_repositories");return(JSON.parse(o).items??[]).map(bt)},e[9]=l,e[10]=T,e[11]=g):g=e[11];let f;e[12]!==h||e[13]!==g?(f={queryKey:h,queryFn:g},e[12]=h,e[13]=g,e[14]=f):f=e[14];const{data:m}=tt(f);if(m.length===0){let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:"No repositories found"}),e[15]=b):b=e[15];let x;e[16]!==r?(x=r&&t.jsx("p",{className:"text-xs text-muted-foreground/60",children:"Try a different search term"}),e[16]=r,e[17]=x):x=e[17];let y;return e[18]!==x?(y=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-1",children:[b,x]}),e[18]=x,e[19]=y):y=e[19],y}let C;if(e[20]!==u||e[21]!==d||e[22]!==m){let b;e[24]!==u||e[25]!==d?(b=x=>t.jsxs("button",{type:"button",onClick:()=>d(x),disabled:u,className:"flex items-start gap-3 px-4 py-3 hover:bg-accent transition-colors text-left disabled:opacity-50 disabled:cursor-not-allowed",children:[t.jsx(re,{className:"size-4 text-muted-foreground mt-0.5 shrink-0"}),t.jsx("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:t.jsx("span",{className:"text-sm font-medium truncate",children:x.name})}),t.jsxs("span",{className:"flex items-center gap-1 text-xs font-medium text-muted-foreground border border-border rounded px-1.5 py-0.5 shrink-0 leading-none",children:[x.private?t.jsx(at,{size:10}):t.jsx(rt,{size:10}),x.private?"Private":"Public"]})]},x.fullName),e[24]=u,e[25]=d,e[26]=b):b=e[26],C=m.map(b),e[20]=u,e[21]=d,e[22]=m,e[23]=C}else C=e[23];let I;return e[27]!==C?(I=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden flex flex-col [scrollbar-gutter:stable]",children:C}),e[27]=C,e[28]=I):I=e[28],I}function bt(i){return{name:i.name,fullName:i.full_name,owner:i.full_name.split("/")[0]??"",url:i.html_url,private:i.private,description:i.description,updatedAt:i.updated_at}}function we(i){const e=R.c(33),{status:n,error:a,retry:c}=i;if(n==="error"){let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"size-10 rounded-full bg-destructive/10 flex items-center justify-center",children:t.jsx(re,{className:"size-5 text-destructive"})}),e[0]=o):o=e[0];let N;e[1]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("p",{className:"text-sm font-medium",children:"Connection failed"}),e[1]=N):N=e[1];const w=a??"Something went wrong while connecting to GitHub.";let v;e[2]!==w?(v=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[N,t.jsx("p",{className:"text-xs text-muted-foreground max-w-[260px] leading-relaxed",children:w})]}),e[2]=w,e[3]=v):v=e[3];let A;e[4]!==c?(A=t.jsx("button",{type:"button",onClick:c,className:"text-xs font-medium text-foreground border border-border rounded-md px-3 py-1.5 hover:bg-accent transition-colors",children:"Try again"}),e[4]=c,e[5]=A):A=e[5];let E;return e[6]!==v||e[7]!==A?(E=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[o,v,A]}),e[6]=v,e[7]=A,e[8]=E):E=e[8],E}const s=n==="authenticating";let r;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"size-10 rounded-full bg-muted flex items-center justify-center",children:t.jsx(re,{className:"size-5 text-foreground"})}),e[9]=r):r=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsxs("div",{className:"relative size-10",children:[r,t.jsx("div",{className:"absolute -bottom-0.5 -right-0.5 size-4 rounded-full bg-background flex items-center justify-center",children:t.jsx(Ne,{size:12,className:"animate-spin text-muted-foreground"})})]}),e[10]=d):d=e[10];const u=s?"Authenticating with GitHub":"Setting up GitHub";let _;e[11]!==u?(_=t.jsx("p",{className:"text-sm font-medium",children:u}),e[11]=u,e[12]=_):_=e[12];const l=s?"Complete the OAuth flow in your browser":"Installing the GitHub connection...";let p;e[13]!==l?(p=t.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[13]=l,e[14]=p):p=e[14];let T;e[15]!==_||e[16]!==p?(T=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[_,p]}),e[15]=_,e[16]=p,e[17]=T):T=e[17];const h=s?"bg-muted-foreground/30":"bg-foreground animate-pulse";let g;e[18]!==h?(g=xe("size-1.5 rounded-full",h),e[18]=h,e[19]=g):g=e[19];let f;e[20]!==g?(f=t.jsx("span",{className:g}),e[20]=g,e[21]=f):f=e[21];const m=s?"bg-foreground animate-pulse":"bg-muted-foreground/30";let C;e[22]!==m?(C=xe("size-1.5 rounded-full",m),e[22]=m,e[23]=C):C=e[23];let I;e[24]!==C?(I=t.jsx("span",{className:C}),e[24]=C,e[25]=I):I=e[25];let b;e[26]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"size-1.5 rounded-full bg-muted-foreground/30"}),e[26]=b):b=e[26];let x;e[27]!==f||e[28]!==I?(x=t.jsxs("div",{className:"flex items-center gap-1.5",children:[f,I,b]}),e[27]=f,e[28]=I,e[29]=x):x=e[29];let y;return e[30]!==x||e[31]!==T?(y=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[d,T,x]}),e[30]=x,e[31]=T,e[32]=y):y=e[32],y}const wt=["Full HAR capture with cache, TTFB, and request analysis","Screenshot capture for visual inspection","Page discovery via sitemap, navigation, and link crawling","SEO audit — meta tags, structured data, robots.txt","Third-party script inventory and size analysis","Dead link detection across the entire site","Deco-specific diagnostics (?__d debug mode)"];function Ve(i){const e=R.c(7),{onRecruit:n,isRecruiting:a,isLoading:c}=i;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("p",{className:"text-sm text-muted-foreground",children:"Add a blackbox diagnostics agent that tests your storefront from the outside — no internal access needed. Give it a URL and it produces a detailed performance and health report."}),e[0]=s):s=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Capabilities"}),e[1]=r):r=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsxs("div",{className:"space-y-2",children:[r,t.jsx("ul",{className:"space-y-1.5",children:wt.map(vt)})]}),e[2]=d):d=e[2];const u=a||c,_=a?"Setting up...":"Add Site Diagnostics";let l;return e[3]!==n||e[4]!==u||e[5]!==_?(l=t.jsxs("div",{className:"flex flex-col gap-6",children:[s,d,t.jsx(ae,{onClick:n,disabled:u,className:"w-full cursor-pointer",children:_})]}),e[3]=n,e[4]=u,e[5]=_,e[6]=l):l=e[6],l}function vt(i){return t.jsxs("li",{className:"text-sm text-muted-foreground flex items-start gap-2",children:[t.jsx("span",{className:"text-emerald-500 mt-0.5 shrink-0",children:"+"}),i]},i)}function tn({open:i,onOpenChange:e,existingAgent:n}){const a=ke(),{org:c}=$(),s=_e(),r=Se(),d=Pe(),u=V({connectionId:ce,orgId:c.id,orgSlug:c.slug}),_=Ke({client:u}),[l,p]=O.useState(!1),T=qe.find(y=>y.id==="site-diagnostics"),{data:h,isLoading:g}=Ye(T.appId,{enabled:i}),f=h?.title||h?.server?.title||h?.server?.name||T.title,m=h?.server?.icons?.[0]?.src??T.icon,C=h?.server?.description??null,I=t.jsx(Ue,{icon:m,name:f,size:"sm"}),b=async()=>{if(h){if(n){e(!1),s(n.id);return}p(!0);try{const y=await _.mutateAsync({name:"COLLECTION_CONNECTIONS_LIST",arguments:{where:{field:["app_id"],operator:"eq",value:T.appId},limit:1,offset:0}});let o;const w=y?.structuredContent?.items?.find(A=>A.app_id===T.appId);if(w)o=w.id;else{const A=h.server?.remotes?.[0]?.url;if(!A)throw new Error("Registry item is missing a remote URL for site-diagnostics");o=(await r.create.mutateAsync({title:f,description:C,icon:h.server?.icons?.[0]?.src??T.icon,connection_type:"HTTP",connection_url:A,app_name:h.server?.name??"site-diagnostics",app_id:T.appId,metadata:{type:"site-diagnostics",source:"store",registry_item_id:T.appId,verified:!0}})).id}const v=await d.create.mutateAsync({title:f,description:C,icon:m,status:"active",connections:[{connection_id:o,selected_tools:null,selected_resources:null,selected_prompts:null}],metadata:{type:"site-diagnostics",instructions:null,ui:{pinnedViews:[{connectionId:o,toolName:"diagnose",label:"diagnose",icon:null}],layout:{defaultMainView:{type:"ext-apps",id:o,toolName:"diagnose"}}}}});D("agent_recruit_confirmed",{template_id:"site-diagnostics",agent_id:v.id}),e(!1),s(v.id)}catch(y){D("agent_recruit_failed",{template_id:"site-diagnostics",error:y instanceof Error?y.message:String(y)}),console.error("Failed to create Site Diagnostics agent:",y)}finally{p(!1)}}},x=`Add ${f}`;return a?t.jsx(Oe,{open:i,onOpenChange:e,children:t.jsxs(Le,{className:"h-[70dvh]",children:[t.jsx(Re,{className:"px-4 pt-4 pb-4 shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[I,t.jsx(Me,{className:"text-xl font-semibold",children:x})]})}),t.jsx("div",{className:"flex flex-col flex-1 min-h-0 px-4 pb-8",children:t.jsx(Ve,{onRecruit:b,isRecruiting:l,isLoading:g})})]})}):t.jsx(de,{open:i,onOpenChange:e,children:t.jsxs(le,{className:"sm:max-w-[500px] p-8",children:[t.jsx(ue,{className:"mb-4",children:t.jsxs("div",{className:"flex items-center gap-3",children:[I,t.jsx(me,{className:"text-xl font-semibold",children:x})]})}),t.jsx(Ve,{onRecruit:b,isRecruiting:l,isLoading:g})]})})}const jt=`<role>
|
|
2
|
+
You are the Agent Manager. You create, configure, and maintain agents (Virtual MCPs) in this workspace.
|
|
3
|
+
</role>
|
|
4
|
+
|
|
5
|
+
<capabilities>
|
|
6
|
+
- Create new agents with appropriate connections and instructions.
|
|
7
|
+
- Update agent configurations: instructions, connections, tool/resource/prompt selection.
|
|
8
|
+
- List and inspect existing agents and their current setup.
|
|
9
|
+
- Delete agents that are no longer needed.
|
|
10
|
+
- Configure agent plugins and pinned views.
|
|
11
|
+
- Browse available connections to help decide what to aggregate into an agent.
|
|
12
|
+
</capabilities>
|
|
13
|
+
|
|
14
|
+
<constraints>
|
|
15
|
+
- You can list and inspect connections but cannot create, modify, or delete them.
|
|
16
|
+
- Always confirm with the user before deleting an agent.
|
|
17
|
+
- When adding connections to an agent, verify the connection exists by listing or getting it first.
|
|
18
|
+
- Do not broaden an agent's scope unless the user explicitly requests it.
|
|
19
|
+
- Preserve existing behavior when updating — apply the smallest necessary change set.
|
|
20
|
+
</constraints>
|
|
21
|
+
|
|
22
|
+
<workflows>
|
|
23
|
+
1. Creating an agent:
|
|
24
|
+
a. List available connections with COLLECTION_CONNECTIONS_LIST.
|
|
25
|
+
b. Confirm the agent's purpose, target user, and scope with the user.
|
|
26
|
+
c. Create the agent with COLLECTION_VIRTUAL_MCP_CREATE, including a focused title, description, selected connections, and XML-structured instructions.
|
|
27
|
+
d. Verify the saved configuration with COLLECTION_VIRTUAL_MCP_GET.
|
|
28
|
+
|
|
29
|
+
2. Updating an agent:
|
|
30
|
+
a. Get the current agent config with COLLECTION_VIRTUAL_MCP_GET.
|
|
31
|
+
b. If the update changes connections, verify new connections exist with COLLECTION_CONNECTIONS_GET.
|
|
32
|
+
c. Apply changes with COLLECTION_VIRTUAL_MCP_UPDATE using the smallest change set.
|
|
33
|
+
d. Confirm the final state with COLLECTION_VIRTUAL_MCP_GET.
|
|
34
|
+
|
|
35
|
+
3. Reviewing agents:
|
|
36
|
+
a. List all agents with COLLECTION_VIRTUAL_MCP_LIST.
|
|
37
|
+
b. For detailed inspection, use COLLECTION_VIRTUAL_MCP_GET on specific agents.
|
|
38
|
+
c. Cross-reference with COLLECTION_CONNECTIONS_LIST to identify unused or missing connections.
|
|
39
|
+
|
|
40
|
+
4. Improving an agent's instructions:
|
|
41
|
+
a. Read docs://agents.md for the instruction-writing pattern (XML-style sections, explicit workflows).
|
|
42
|
+
b. Get the current instructions with COLLECTION_VIRTUAL_MCP_GET on the supplied agent id.
|
|
43
|
+
c. If the intended purpose, audience, or boundaries are unclear, use user_ask before rewriting.
|
|
44
|
+
d. Rewrite the instructions with explicit XML-style sections: <role>, <capabilities>, <constraints>, <workflows>.
|
|
45
|
+
- Make the purpose explicit in <role>.
|
|
46
|
+
- If a workflow already exists, sharpen it into concrete, ordered, operational steps. If none exists, add one that reflects how the agent should actually operate.
|
|
47
|
+
- Tighten <constraints> when the current instructions are too open-ended.
|
|
48
|
+
- Preserve the user's intended domain and responsibilities.
|
|
49
|
+
e. Save the rewritten instructions with COLLECTION_VIRTUAL_MCP_UPDATE using the smallest change set (only \`metadata.instructions\`).
|
|
50
|
+
f. Re-read with COLLECTION_VIRTUAL_MCP_GET to verify the stored result.
|
|
51
|
+
</workflows>`,At=`<role>
|
|
52
|
+
You are the Automation Manager. You create, configure, and manage automations — background agents that run on triggers (cron schedules or events).
|
|
53
|
+
</role>
|
|
54
|
+
|
|
55
|
+
<capabilities>
|
|
56
|
+
- Create automations with instructions, model configuration, and triggers.
|
|
57
|
+
- Add and remove triggers (cron schedules or event-based).
|
|
58
|
+
- Manually run automations for testing.
|
|
59
|
+
- Update automation behavior, instructions, and model settings.
|
|
60
|
+
- List and inspect existing automations.
|
|
61
|
+
- Delete automations that are no longer needed.
|
|
62
|
+
- Browse available agents and connections to configure automation targets.
|
|
63
|
+
</capabilities>
|
|
64
|
+
|
|
65
|
+
<constraints>
|
|
66
|
+
- You can list and inspect agents and connections but cannot create, modify, or delete them.
|
|
67
|
+
- Always confirm with the user before deleting an automation.
|
|
68
|
+
- When assigning an agent to an automation, verify the agent exists first.
|
|
69
|
+
- Validate cron expressions before adding cron triggers.
|
|
70
|
+
- Warn the user about high-frequency triggers (less than 1 minute intervals).
|
|
71
|
+
</constraints>
|
|
72
|
+
|
|
73
|
+
<workflows>
|
|
74
|
+
1. Creating an automation:
|
|
75
|
+
a. Clarify the automation's purpose, schedule, and expected behavior.
|
|
76
|
+
b. List agents with COLLECTION_VIRTUAL_MCP_LIST and confirm the target — pass its id as virtual_mcp_id to AUTOMATION_CREATE.
|
|
77
|
+
c. Create the automation with AUTOMATION_CREATE, including clear instructions and model config.
|
|
78
|
+
d. Add triggers with AUTOMATION_TRIGGER_ADD (cron or event-based).
|
|
79
|
+
e. Verify with AUTOMATION_GET.
|
|
80
|
+
|
|
81
|
+
2. Updating an automation:
|
|
82
|
+
a. Get current config with AUTOMATION_GET.
|
|
83
|
+
b. Apply changes with AUTOMATION_UPDATE.
|
|
84
|
+
c. If triggers need updating, use AUTOMATION_TRIGGER_REMOVE and AUTOMATION_TRIGGER_ADD.
|
|
85
|
+
d. Confirm the final state with AUTOMATION_GET.
|
|
86
|
+
|
|
87
|
+
3. Testing an automation:
|
|
88
|
+
a. Get the automation config with AUTOMATION_GET to review its setup.
|
|
89
|
+
b. Run it manually with AUTOMATION_RUN.
|
|
90
|
+
c. Report the result to the user.
|
|
91
|
+
|
|
92
|
+
4. Improving an automation's instructions:
|
|
93
|
+
a. Read docs://automations.md for the messages/instructions pattern, then docs://agents.md for the XML-style structure.
|
|
94
|
+
b. Get the current automation with AUTOMATION_GET on the supplied automation id.
|
|
95
|
+
c. If the intended purpose, trigger context, or expected output is unclear, use user_ask before rewriting.
|
|
96
|
+
d. Rewrite the messages with explicit XML-style sections: <role>, <capabilities>, <constraints>, <workflows>.
|
|
97
|
+
- Keep the rewrite aligned with the automation's trigger and expected background-execution behavior.
|
|
98
|
+
- If a workflow already exists, sharpen it into concrete, ordered, operational steps. If none exists, add one.
|
|
99
|
+
- Tighten <constraints> when the current messages are too open-ended.
|
|
100
|
+
e. Save with AUTOMATION_UPDATE using the smallest change set.
|
|
101
|
+
f. Re-read with AUTOMATION_GET to verify the stored result.
|
|
102
|
+
</workflows>`,Et=`<role>
|
|
103
|
+
You are the Connection Manager. You create, configure, test, and manage MCP connections in this workspace.
|
|
104
|
+
</role>
|
|
105
|
+
|
|
106
|
+
<capabilities>
|
|
107
|
+
- Create new connections (HTTP, SSE, STDIO types) with proper configuration.
|
|
108
|
+
- List and inspect existing connections and their status.
|
|
109
|
+
- Update connection details: URL, headers, authentication, metadata.
|
|
110
|
+
- Test connection health to verify connectivity.
|
|
111
|
+
- Delete connections that are no longer needed.
|
|
112
|
+
</capabilities>
|
|
113
|
+
|
|
114
|
+
<constraints>
|
|
115
|
+
- Always confirm with the user before deleting a connection.
|
|
116
|
+
- Never expose connection tokens or secrets in responses — refer to them as "configured" or "not configured."
|
|
117
|
+
- When creating HTTP connections, validate that a URL is provided.
|
|
118
|
+
- Test connections after creation or URL changes to verify they work.
|
|
119
|
+
- Warn the user if deleting a connection that might be in use by agents (suggest they check first).
|
|
120
|
+
</constraints>
|
|
121
|
+
|
|
122
|
+
<workflows>
|
|
123
|
+
1. Creating a connection:
|
|
124
|
+
a. Clarify the connection type (HTTP, SSE, or STDIO) and target URL/command.
|
|
125
|
+
b. Create with COLLECTION_CONNECTIONS_CREATE, including title, description, type, and URL.
|
|
126
|
+
c. Test the new connection with CONNECTION_TEST.
|
|
127
|
+
d. Report the result to the user.
|
|
128
|
+
|
|
129
|
+
2. Troubleshooting a connection:
|
|
130
|
+
a. Get the connection details with COLLECTION_CONNECTIONS_GET.
|
|
131
|
+
b. Run CONNECTION_TEST to check health.
|
|
132
|
+
c. If the test fails, review the configuration and suggest fixes.
|
|
133
|
+
d. After fixes, re-test to confirm.
|
|
134
|
+
|
|
135
|
+
3. Auditing connections:
|
|
136
|
+
a. List all connections with COLLECTION_CONNECTIONS_LIST.
|
|
137
|
+
b. Test each connection's health with CONNECTION_TEST.
|
|
138
|
+
c. Report which connections are healthy, erroring, or inactive.
|
|
139
|
+
</workflows>`,We=[{id:"studio-agent-manager",title:"Agent Manager",icon:"icon://Bot?color=violet",description:"Create, configure, and manage agents",selectedTools:["COLLECTION_VIRTUAL_MCP_CREATE","COLLECTION_VIRTUAL_MCP_LIST","COLLECTION_VIRTUAL_MCP_GET","COLLECTION_VIRTUAL_MCP_UPDATE","COLLECTION_VIRTUAL_MCP_DELETE","VIRTUAL_MCP_PLUGIN_CONFIG_GET","VIRTUAL_MCP_PLUGIN_CONFIG_UPDATE","VIRTUAL_MCP_PINNED_VIEWS_UPDATE","COLLECTION_CONNECTIONS_LIST","COLLECTION_CONNECTIONS_GET"],instructions:jt,getId:be.AGENT_MANAGER},{id:"studio-automation-manager",title:"Automation Manager",icon:"icon://Zap?color=amber",description:"Create, configure, and run automations with triggers",selectedTools:["AUTOMATION_CREATE","AUTOMATION_GET","AUTOMATION_LIST","AUTOMATION_UPDATE","AUTOMATION_DELETE","AUTOMATION_TRIGGER_ADD","AUTOMATION_TRIGGER_REMOVE","AUTOMATION_RUN","COLLECTION_VIRTUAL_MCP_LIST","COLLECTION_VIRTUAL_MCP_GET","COLLECTION_CONNECTIONS_LIST","COLLECTION_CONNECTIONS_GET"],instructions:At,getId:be.AUTOMATION_MANAGER},{id:"studio-connection-manager",title:"Connection Manager",icon:"icon://Link01?color=cyan",description:"Create, configure, test, and manage connections",selectedTools:["COLLECTION_CONNECTIONS_CREATE","COLLECTION_CONNECTIONS_LIST","COLLECTION_CONNECTIONS_GET","COLLECTION_CONNECTIONS_UPDATE","COLLECTION_CONNECTIONS_DELETE","CONNECTION_TEST"],instructions:Et,getId:be.CONNECTION_MANAGER}];function St(){const i=R.c(4),{org:e}=$(),n=Pe(),a=dt();let c;return i[0]!==n||i[1]!==a||i[2]!==e.id?(c=async function(r){const d=Ae.SELF(e.id),u=new Set(a.map(Ot)),_=We.filter(l=>r.includes(l.id));for(const l of _)u.has(l.title)||await n.create.mutateAsync({title:l.title,description:l.description,icon:l.icon,status:"active",metadata:{instructions:l.instructions},connections:[{connection_id:d,selected_tools:[...l.selectedTools],selected_resources:null,selected_prompts:null}]})},i[0]=n,i[1]=a,i[2]=e.id,i[3]=c):c=i[3],c}function Ot(i){return i.title}const Lt=[{title:"Agent Manager",description:"Create, configure, and manage agents"},{title:"Automation Manager",description:"Create, configure, and run automations with triggers"},{title:"Connection Manager",description:"Create, configure, test, and manage connections"}];function $e(i){const e=R.c(7),{onInstall:n,isInstalling:a}=i;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("p",{className:"text-sm text-muted-foreground",children:"Install a suite of pre-configured agents for managing your studio. Each agent is scoped to a specific domain with focused instructions."}),e[0]=c):c=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Included agents"}),e[1]=s):s=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs("div",{className:"space-y-2",children:[s,t.jsx("ul",{className:"space-y-1.5",children:Lt.map(Rt)})]}),e[2]=r):r=e[2];const d=a?"Installing...":"Install Studio Pack";let u;return e[3]!==a||e[4]!==n||e[5]!==d?(u=t.jsxs("div",{className:"flex flex-col gap-6",children:[c,r,t.jsx(ae,{onClick:n,disabled:a,className:"w-full cursor-pointer",children:d})]}),e[3]=a,e[4]=n,e[5]=d,e[6]=u):u=e[6],u}function Rt(i){return t.jsxs("li",{className:"text-sm text-muted-foreground flex items-start gap-2",children:[t.jsx("span",{className:"text-emerald-500 mt-0.5 shrink-0",children:"+"}),t.jsxs("span",{children:[t.jsx("span",{className:"text-foreground font-medium",children:i.title})," ","— ",i.description]})]},i.title)}function nn({open:i,onOpenChange:e}){const n=ke(),{org:a}=$(),c=St(),s=nt(),[r,d]=O.useState(!1),u=t.jsx(Ue,{icon:"icon://Package?color=blue",name:"Studio Pack",size:"sm"}),_=async()=>{d(!0);try{const p=We.map(T=>T.id);await c(p),D("agent_recruit_confirmed",{template_id:"studio-pack",installed_count:p.length}),e(!1),s({to:"/$org",params:{org:a.slug}})}catch(p){D("agent_recruit_failed",{template_id:"studio-pack",error:p instanceof Error?p.message:String(p)}),console.error("Failed to install Studio Pack:",p)}finally{d(!1)}},l="Install Studio Pack";return n?t.jsx(Oe,{open:i,onOpenChange:e,children:t.jsxs(Le,{className:"h-[70dvh]",children:[t.jsx(Re,{className:"px-4 pt-4 pb-4 shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[u,t.jsx(Me,{className:"text-xl font-semibold",children:l})]})}),t.jsx("div",{className:"flex flex-col flex-1 min-h-0 px-4 pb-8",children:t.jsx($e,{onInstall:_,isInstalling:r})})]})}):t.jsx(de,{open:i,onOpenChange:e,children:t.jsxs(le,{className:"sm:max-w-[500px] p-8",children:[t.jsx(ue,{className:"mb-4",children:t.jsxs("div",{className:"flex items-center gap-3",children:[u,t.jsx(me,{className:"text-xl font-semibold",children:l})]})}),t.jsx($e,{onInstall:_,isInstalling:r})]})})}const Mt="https://sites-lean-canva.decocache.com/api/mcp",kt=["Build and update Lean Canvas business models visually","Interactive grid UI with all 9 canvas sections","Iterative updates — add information as you discover it","Covers: Problem, Solution, Key Metrics, Unique Value Proposition","Covers: Channels, Customer Segments, Cost Structure, Revenue Streams","Unfair Advantage analysis"];function ze(i){const e=R.c(7),{onRecruit:n,isRecruiting:a}=i;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("p",{className:"text-sm text-muted-foreground",children:"Add a Lean Canvas agent that helps you build and iterate on your business model. Describe your idea and it produces a visual, structured canvas."}),e[0]=c):c=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Capabilities"}),e[1]=s):s=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs("div",{className:"space-y-2",children:[s,t.jsx("ul",{className:"space-y-1.5",children:kt.map(Ut)})]}),e[2]=r):r=e[2];const d=a?"Setting up...":"Add Lean Canvas";let u;return e[3]!==a||e[4]!==n||e[5]!==d?(u=t.jsxs("div",{className:"flex flex-col gap-6",children:[c,r,t.jsx(ae,{onClick:n,disabled:a,className:"w-full cursor-pointer",children:d})]}),e[3]=a,e[4]=n,e[5]=d,e[6]=u):u=e[6],u}function Ut(i){return t.jsxs("li",{className:"text-sm text-muted-foreground flex items-start gap-2",children:[t.jsx("span",{className:"text-emerald-500 mt-0.5 shrink-0",children:"+"}),i]},i)}function sn({open:i,onOpenChange:e,existingAgent:n}){const a=ke(),{org:c}=$(),s=_e(),r=Se(),d=Pe(),u=V({connectionId:ce,orgId:c.id,orgSlug:c.slug}),_=Ke({client:u}),[l,p]=O.useState(!1),T=qe.find(m=>m.id==="lean-canvas"),h=t.jsx(Ue,{icon:T.icon,name:T.title,size:"sm"}),g=async()=>{if(n){e(!1),s(n.id);return}p(!0);try{const m=await _.mutateAsync({name:"COLLECTION_CONNECTIONS_LIST",arguments:{where:{field:["app_id"],operator:"eq",value:"lean-canvas"},limit:1,offset:0}});let C;const b=m?.structuredContent?.items?.find(o=>o.app_id==="lean-canvas"),x=Ae.SELF(c.id);b?C=b.id:C=(await r.create.mutateAsync({title:T.title,description:"Lean Canvas business model builder",icon:T.icon,connection_type:"HTTP",connection_url:Mt,app_name:"lean-canvas",app_id:"lean-canvas",configuration_state:{OBJECT_STORAGE:{__type:"@deco/object-storage",value:x}},metadata:{type:"lean-canvas",source:"store",verified:!0}})).id;const y=await d.create.mutateAsync({title:T.title,description:"Lean Canvas business model builder",icon:T.icon,status:"active",connections:[{connection_id:C,selected_tools:null,selected_resources:null,selected_prompts:null},{connection_id:x,selected_tools:null,selected_resources:null,selected_prompts:null}],metadata:{type:"lean-canvas",instructions:null,ui:{pinnedViews:[{connectionId:C,toolName:"lean_canvas",label:"lean_canvas",icon:null}],layout:{defaultMainView:{type:"ext-apps",id:C,toolName:"lean_canvas"}}}}});D("agent_recruit_confirmed",{template_id:"lean-canvas",agent_id:y.id}),e(!1),s(y.id)}catch(m){D("agent_recruit_failed",{template_id:"lean-canvas",error:m instanceof Error?m.message:String(m)}),console.error("Failed to create Lean Canvas agent:",m)}finally{p(!1)}},f=`Add ${T.title}`;return a?t.jsx(Oe,{open:i,onOpenChange:e,children:t.jsxs(Le,{className:"h-[70dvh]",children:[t.jsx(Re,{className:"px-4 pt-4 pb-4 shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[h,t.jsx(Me,{className:"text-xl font-semibold",children:f})]})}),t.jsx("div",{className:"flex flex-col flex-1 min-h-0 px-4 pb-8",children:t.jsx(ze,{onRecruit:g,isRecruiting:l})})]})}):t.jsx(de,{open:i,onOpenChange:e,children:t.jsxs(le,{className:"sm:max-w-[500px] p-8",children:[t.jsx(ue,{className:"mb-4",children:t.jsxs("div",{className:"flex items-center gap-3",children:[h,t.jsx(me,{className:"text-xl font-semibold",children:f})]})}),t.jsx(ze,{onRecruit:g,isRecruiting:l})]})})}export{re as G,Zt as I,sn as L,tn as S,en as a,nn as b,Ye as c,St as u};
|