decocms 2.292.0 → 2.292.2
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-BJZjcLR8.js → AlertCircle-De2C9wZC.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-Yoaq7-cz.js → ArrowNarrowLeft-bSu4Kz2F.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DoZ1aCQb.js → ArrowUpRight-DT3QLsvt.js} +1 -1
- package/dist/client/assets/{CheckCircle-BbLUS0ek.js → CheckCircle-BIi7toDZ.js} +1 -1
- package/dist/client/assets/{ChevronDown-CGHjchOw.js → ChevronDown-DmIUGcFl.js} +1 -1
- package/dist/client/assets/{ChevronRight-Do3Je1ER.js → ChevronRight-CIh2nJ4L.js} +1 -1
- package/dist/client/assets/{ChevronUp-dSBPqUJ1.js → ChevronUp-BYOoc7wr.js} +1 -1
- package/dist/client/assets/{Container-CDgY_XYz.js → Container-BerLGLgK.js} +1 -1
- package/dist/client/assets/{DotsVertical-BxL7Owtq.js → DotsVertical-CDho1dav.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DxLyrYeW.js → LinkExternal01-CcTNZj2P.js} +1 -1
- package/dist/client/assets/{Lock01-BI0K2L_g.js → Lock01-B-vCOiSg.js} +1 -1
- package/dist/client/assets/{Palette-CWiKw0AC.js → Palette-CqW3vcqn.js} +1 -1
- package/dist/client/assets/{Play-C7K9es-c.js → Play-CrdOw1Iv.js} +1 -1
- package/dist/client/assets/{Plus-BpCTKUfi.js → Plus-Zv0hv0Vg.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-BEGaV3W5.js → RefreshCcw01-COL3SGLi.js} +1 -1
- package/dist/client/assets/{SearchMd-fRD_HHud.js → SearchMd-BjteSZXQ.js} +1 -1
- package/dist/client/assets/{Settings02-DtQ4_bLf.js → Settings02-w5kxVqcK.js} +1 -1
- package/dist/client/assets/{Shield01-Di_q_zxl.js → Shield01-DodcxEya.js} +1 -1
- package/dist/client/assets/{Star01-CIsSx9uE.js → Star01-BhFELsp4.js} +1 -1
- package/dist/client/assets/{Sun-CgyDUxcQ.js → Sun-DY_ADcda.js} +1 -1
- package/dist/client/assets/{Tool01-By8ElVEn.js → Tool01-B5mm7tYF.js} +1 -1
- package/dist/client/assets/{Trash01-BzOKZIoE.js → Trash01-DuRnWn1E.js} +1 -1
- package/dist/client/assets/{User01-B6EEMzxh.js → User01-CQoJwY3u.js} +1 -1
- package/dist/client/assets/{Users03-CKRT_0yR.js → Users03-DfcHW1oz.js} +1 -1
- package/dist/client/assets/{X-DXjTCsIF.js → X-Bgfd1eh0.js} +1 -1
- package/dist/client/assets/{XCircle-Ce7DOyui.js → XCircle-DUufUsoh.js} +1 -1
- package/dist/client/assets/{XClose-Bnw2tzQy.js → XClose-BQJEwJET.js} +1 -1
- package/dist/client/assets/{Zap-BEX7Xuxl.js → Zap-CDLB-lxK.js} +1 -1
- package/dist/client/assets/{ZapSquare-CsTKlylz.js → ZapSquare-BFGlmWLE.js} +1 -1
- package/dist/client/assets/{accordion-rxim1ZAp.js → accordion-zVtel299.js} +1 -1
- package/dist/client/assets/{agent-icon-DtvDglSH.js → agent-icon-DSfidSus.js} +1 -1
- package/dist/client/assets/{agents-list-Dn30Me50.js → agents-list-vffTTABq.js} +1 -1
- package/dist/client/assets/ai-providers-t0YXr9kj.js +1 -0
- package/dist/client/assets/{alert-dialog-DkRKYqdD.js → alert-dialog-rItivTOb.js} +1 -1
- package/dist/client/assets/{auth-catchall-BgWDU-In.js → auth-catchall-BGNYNNAk.js} +1 -1
- package/dist/client/assets/{automation-list-row-Dk3EbUOn.js → automation-list-row-lCQuQb2Q.js} +1 -1
- package/dist/client/assets/{automations-CbjDzR7F.js → automations-C7xJbJSO.js} +1 -1
- package/dist/client/assets/{avatar-CAgGCSe2.js → avatar-UVBUP_wG.js} +1 -1
- package/dist/client/assets/{badge-DBxFBhAO.js → badge-nX1O9Qf1.js} +1 -1
- package/dist/client/assets/{brand-context-C1u8HhCR.js → brand-context-7PuYXROc.js} +1 -1
- package/dist/client/assets/{card-DWuJsQ-l.js → card-B6kxnNb0.js} +1 -1
- package/dist/client/assets/{chat-context-w7qWGRrL.js → chat-context-KGI8H-cg.js} +1 -1
- package/dist/client/assets/{checkbox-CgUCf0vo.js → checkbox-CTi7T5x-.js} +1 -1
- package/dist/client/assets/{collection-detail-miARxdMD.js → collection-detail-D_GfRl2U.js} +1 -1
- package/dist/client/assets/{collection-display-button-IHUVDN00.js → collection-display-button-DtLA-_Qf.js} +1 -1
- package/dist/client/assets/{collection-search-9iq4cHBD.js → collection-search-BVB_BOr-.js} +1 -1
- package/dist/client/assets/{collection-search-Dz-DfctK.js → collection-search-DHiaU-oT.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-zolZkVPt.js → collection-table-wrapper-Cqd6KCzo.js} +1 -1
- package/dist/client/assets/{collection-tabs-DQLxqY5f.js → collection-tabs-CczYJtOJ.js} +1 -1
- package/dist/client/assets/{collections-U39XM2D0.js → collections-Czgjy6V_.js} +1 -1
- package/dist/client/assets/{command-YWTBTzZ-.js → command-C1riJax0.js} +1 -1
- package/dist/client/assets/{connection-card-CzIrL4EL.js → connection-card-MQF8JSkw.js} +1 -1
- package/dist/client/assets/{connection-detail-BAaKFeAe.js → connection-detail-Kmft9f88.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CkuYmS0Y.js → connection-form-helpers-DMZ5iUjm.js} +1 -1
- package/dist/client/assets/{connections-BhrD0IQp.js → connections-Qfmncrnr.js} +1 -1
- package/dist/client/assets/{constants-3nmHZB7k.js → constants-CMKJaZow.js} +1 -1
- package/dist/client/assets/{constants-C9aLxYHE.js → constants-puxzW8Tt.js} +1 -1
- package/dist/client/assets/{dialog-Dh1iMW0s.js → dialog-CAwNCLeY.js} +1 -1
- package/dist/client/assets/{domain-settings-AVM0VKvz.js → domain-settings-ZwlKCgS9.js} +1 -1
- package/dist/client/assets/{drawer-BVsQgzeD.js → drawer-Co7qhpAL.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BFB_BhxE.js → dropdown-menu-CiJ99ly5.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-89eFL9j5.js → dynamic-plugin-layout-SGNBzqAT.js} +1 -1
- package/dist/client/assets/{empty-state-DaBJGn03.js → empty-state-Bio4MAFs.js} +1 -1
- package/dist/client/assets/{empty-state-Ccngpo14.js → empty-state-DIogXxVN.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DTYSYxBG.js → extract-connection-data-BFIbyEiI.js} +1 -1
- package/dist/client/assets/{features-DyBQ3hAD.js → features-QRbg1n3B.js} +1 -1
- package/dist/client/assets/{form-D1t1amOF.js → form-FdRX5pG1.js} +1 -1
- package/dist/client/assets/{general-BSxOk1qz.js → general-Cc1ql58y.js} +1 -1
- package/dist/client/assets/{github-repo-picker-DSEipb9O.js → github-repo-picker-QAmOQiwy.js} +1 -1
- package/dist/client/assets/{index-aI7M0qEI.js → index-BhZeUpb1.js} +1 -1
- package/dist/client/assets/{index-CiGNH6-A.js → index-BiFex3ig.js} +1 -1
- package/dist/client/assets/{index-DKd6U8ZD.js → index-C4KOdiuW.js} +2 -2
- package/dist/client/assets/{index-DDmmZL9v.js → index-DFoLVe7P.js} +1 -1
- package/dist/client/assets/{index-D0Y3Q7N3.js → index-DcnXzgrr.js} +1 -1
- package/dist/client/assets/{index-BXJluhPl.js → index-DdEYcoGw.js} +1 -1
- package/dist/client/assets/{index-CfcY28zS.js → index-L8A_STvx.js} +1 -1
- package/dist/client/assets/{index-CxNPMl3z.js → index-SoZ9vkB3.js} +4 -4
- package/dist/client/assets/{index-DskwxDSD.js → index-mWgQ602E.js} +1 -1
- package/dist/client/assets/{index-Bgh3Fg-W.js → index-mcaIOSGF.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-RFzqIOTQ.js → infiniteQueryObserver-DS8PEXT3.js} +1 -1
- package/dist/client/assets/{input-rXpcOW54.js → input-DrxCctpM.js} +1 -1
- package/dist/client/assets/{integration-icon-wh5nd5gB.js → integration-icon-B-ypwxt-.js} +1 -1
- package/dist/client/assets/{label-KG6f6ypV.js → label-qumw5kFa.js} +1 -1
- package/dist/client/assets/{layout-C1dBBrJO.js → layout-BHQW603q.js} +1 -1
- package/dist/client/assets/{login-aCzD1yj3.js → login-zoPe2LeA.js} +1 -1
- package/dist/client/assets/{members-CcYrdU9b.js → members-BrCn_crL.js} +1 -1
- package/dist/client/assets/{monaco-editor-CetiEdE3.js → monaco-editor-C80vYwBa.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Bpsycv3a.js → monitoring-stats-row-DoiRCC4f.js} +1 -1
- package/dist/client/assets/{oauth-callback-Bgqii5KN.js → oauth-callback-CNmuoGWl.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BM8V8XSD.js → oauth-callback-ai-provider-CsQrJZmR.js} +1 -1
- package/dist/client/assets/{onboarding-BstJNU1_.js → onboarding-C7clLSW8.js} +1 -1
- package/dist/client/assets/{org-layout-Cbl-bpnq.js → org-layout-BmM2YD3_.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-D5W8iJ__.js → org-plugin-layout-Csh0KNUp.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-ClLmoORa.js → plugin-empty-state-DxSYI7WM.js} +1 -1
- package/dist/client/assets/{plugin-header-BfIRczN-.js → plugin-header-D0WCyAas.js} +1 -1
- package/dist/client/assets/{plugin-layout-CSlooCiQ.js → plugin-layout-BZBMQxU7.js} +1 -1
- package/dist/client/assets/{popover-oHy7A2NB.js → popover-BdnMz9At.js} +1 -1
- package/dist/client/assets/{profile--BcrwHZB.js → profile-BZlcE9Y0.js} +1 -1
- package/dist/client/assets/{project-app-view-7T_TcCNb.js → project-app-view-B8g2l52t.js} +1 -1
- package/dist/client/assets/{registry-layout-DSvJ6NrU.js → registry-layout-DF08kMn2.js} +1 -1
- package/dist/client/assets/registry-oDwGjrMT.js +2 -0
- package/dist/client/assets/{required-auth-layout-C9I2Cbbq.js → required-auth-layout-DAzAQKek.js} +1 -1
- package/dist/client/assets/{reset-password-CIaSK0Sp.js → reset-password-KFV68Ks-.js} +1 -1
- package/dist/client/assets/{roles-BquZRSxB.js → roles-CMvkTrhY.js} +1 -1
- package/dist/client/assets/{scroll-area-UNfVJI8t.js → scroll-area-BlUv7zcB.js} +1 -1
- package/dist/client/assets/{search-input-DfM3hp54.js → search-input-CbSuDoZL.js} +1 -1
- package/dist/client/assets/{select-CIfh_MBY.js → select-W23RccQR.js} +1 -1
- package/dist/client/assets/{select-model-BuijBTi2.js → select-model-BLp2y3cG.js} +1 -1
- package/dist/client/assets/{settings-layout-7GZHLZ6d.js → settings-layout-b1Br3189.js} +1 -1
- package/dist/client/assets/{settings-section-DU0g5n0Q.js → settings-section-CKsKmGWh.js} +1 -1
- package/dist/client/assets/{shell-layout-CcnEVz8S.js → shell-layout-BUuy9S_L.js} +1 -1
- package/dist/client/assets/{skeleton-DWxGcluE.js → skeleton-BKGbLlxs.js} +1 -1
- package/dist/client/assets/{sso-BwOkQ_ww.js → sso-aoLg93_m.js} +1 -1
- package/dist/client/assets/{store-R02TTTNN.js → store-DGgyYg8C.js} +1 -1
- package/dist/client/assets/store-registry-Dbm0_etm.js +2 -0
- package/dist/client/assets/{switch-CWaKO_3R.js → switch-DNv5M4ZB.js} +1 -1
- package/dist/client/assets/{table-UpR-J_t9.js → table-CaLu-Lo8.js} +1 -1
- package/dist/client/assets/{tabs-CgpYNCZH.js → tabs-Ds3m3VsK.js} +1 -1
- package/dist/client/assets/{task-status-CPd-pzw_.js → task-status-DhB__zcV.js} +1 -1
- package/dist/client/assets/{textarea-CVs7u-e-.js → textarea-D8dnqUDV.js} +1 -1
- package/dist/client/assets/{toggle-group-DIrVgcK0.js → toggle-group-DiaVR0jE.js} +1 -1
- package/dist/client/assets/{tools-list-C1Tdz1hL.js → tools-list-CVgYt-8F.js} +1 -1
- package/dist/client/assets/{types-DqiNUavs.js → types-Cj_XQKsH.js} +1 -1
- package/dist/client/assets/{use-ai-providers-D5Tufg2O.js → use-ai-providers-CiKg1J6I.js} +1 -1
- package/dist/client/assets/{use-collections-DpIHOTql.js → use-collections-BgcKlAB6.js} +1 -1
- package/dist/client/assets/{use-connection-1SSSHaHs.js → use-connection-D0OofLda.js} +1 -1
- package/dist/client/assets/{use-copy-CDfDyhwS.js → use-copy-DU9Tefqq.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Bkn7rT3M.js → use-create-virtual-mcp-DAB2T3vN.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CN5jq2Ax.js → use-decopilot-events-ClmBUkq4.js} +1 -1
- package/dist/client/assets/{use-delete-connection-3pf7Gnxc.js → use-delete-connection-D8siAEqJ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DknIuIQ2.js → use-infinite-scroll-8BgvLQv0.js} +1 -1
- package/dist/client/assets/{use-list-state-8iqNUJS2.js → use-list-state-BEoAeszV.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-qxi4PxSc.js → use-mcp-tools-D1ScXFUK.js} +1 -1
- package/dist/client/assets/{use-members-Ck6hn7xk.js → use-members-BzwLO50s.js} +1 -1
- package/dist/client/assets/{use-mobile-DrlR5BbG.js → use-mobile-DvmdhkH5.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DlV84y97.js → use-navigate-to-agent-Dg24R1Fh.js} +1 -1
- package/dist/client/assets/{use-org-sso-CWrx0G98.js → use-org-sso-D0nq7yh3.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DsSbdLcn.js → use-organization-roles-Dl9VoSUw.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DoI0c_Gi.js → use-organization-settings-C1HGFbFZ.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BZXVzsNL.js → use-registry-connections-DzXuLNdG.js} +1 -1
- package/dist/client/assets/{use-status-sounds-UAO5zXMo.js → use-status-sounds-BC_OJyRi.js} +1 -1
- package/dist/client/assets/{use-tasks-BGCdXCFh.js → use-tasks-BtGSWUvO.js} +1 -1
- package/dist/client/assets/{use-view-mode-Cobet5rP.js → use-view-mode-BnyE0_EO.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-G7jm3TGl.js → use-virtual-mcp-D1fXVRo5.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-H3t_tPfZ.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-BAnABuH7.js +1 -0
- package/dist/client/assets/{user-BXlY7NuV.js → user-DAufXs4h.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-PXHnKZlc.js → view-mode-toggle-LshbVzEB.js} +1 -1
- package/dist/client/assets/{workflow-q8JEUlLD.js → workflow-Dt2CIq6i.js} +1 -1
- package/dist/client/assets/workflow-detail-BZ0JnpLY.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/node_modules/ansi-regex/index.d.ts +33 -0
- package/dist/server/node_modules/ansi-regex/index.js +14 -0
- package/dist/server/node_modules/ansi-regex/license +9 -0
- package/dist/server/node_modules/ansi-regex/package.json +61 -0
- package/dist/server/node_modules/ansi-regex/readme.md +66 -0
- package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
- package/dist/server/node_modules/ansi-styles/index.js +223 -0
- package/dist/server/node_modules/ansi-styles/license +9 -0
- package/dist/server/node_modules/ansi-styles/package.json +54 -0
- package/dist/server/node_modules/ansi-styles/readme.md +173 -0
- package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/dist/server/node_modules/emoji-regex/README.md +107 -0
- package/dist/server/node_modules/emoji-regex/index.d.ts +3 -0
- package/dist/server/node_modules/emoji-regex/index.js +4 -0
- package/dist/server/node_modules/emoji-regex/index.mjs +4 -0
- package/dist/server/node_modules/emoji-regex/package.json +45 -0
- package/dist/server/node_modules/environment/index.d.ts +74 -0
- package/dist/server/node_modules/environment/index.js +47 -0
- package/dist/server/node_modules/environment/license +9 -0
- package/dist/server/node_modules/environment/package.json +74 -0
- package/dist/server/node_modules/environment/readme.md +94 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
- package/dist/server/node_modules/is-fullwidth-code-point/license +9 -0
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +53 -0
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
- package/dist/server/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/dist/server/node_modules/is-unicode-supported/index.js +21 -0
- package/dist/server/node_modules/is-unicode-supported/license +9 -0
- package/dist/server/node_modules/is-unicode-supported/package.json +47 -0
- package/dist/server/node_modules/is-unicode-supported/readme.md +35 -0
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
- package/dist/server/node_modules/postgres-array/index.js +97 -0
- package/dist/server/node_modules/postgres-array/license +21 -0
- package/dist/server/node_modules/postgres-array/package.json +35 -0
- package/dist/server/node_modules/postgres-array/readme.md +43 -0
- package/dist/server/node_modules/postgres-bytea/index.js +33 -0
- package/dist/server/node_modules/postgres-bytea/license +21 -0
- package/dist/server/node_modules/postgres-bytea/package.json +34 -0
- package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/postgres-date/license +21 -0
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/restore-cursor/index.d.ts +11 -0
- package/dist/server/node_modules/restore-cursor/index.js +11 -0
- package/dist/server/node_modules/restore-cursor/license +9 -0
- package/dist/server/node_modules/restore-cursor/package.json +55 -0
- package/dist/server/node_modules/restore-cursor/readme.md +31 -0
- package/dist/server/node_modules/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -0
- package/dist/server/node_modules/string-width/index.d.ts +39 -0
- package/dist/server/node_modules/string-width/index.js +82 -0
- package/dist/server/node_modules/string-width/license +9 -0
- package/dist/server/node_modules/string-width/package.json +64 -0
- package/dist/server/node_modules/string-width/readme.md +66 -0
- package/dist/server/node_modules/xtend/.jshintrc +30 -0
- package/dist/server/node_modules/{pg → xtend}/LICENSE +6 -7
- package/dist/server/node_modules/xtend/README.md +32 -0
- package/dist/server/node_modules/xtend/immutable.js +19 -0
- package/dist/server/node_modules/xtend/mutable.js +17 -0
- package/dist/server/node_modules/xtend/package.json +55 -0
- package/dist/server/node_modules/xtend/test.js +103 -0
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-CC7AZG4I.js +0 -1
- package/dist/client/assets/registry-CDfXAwnP.js +0 -2
- package/dist/client/assets/store-registry-DdbRGyFG.js +0 -2
- package/dist/client/assets/useInfiniteQuery-J4O9iX8k.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BBJXEpEL.js +0 -1
- package/dist/client/assets/workflow-detail-FemzGjdG.js +0 -1
- package/dist/server/node_modules/pg/README.md +0 -95
- package/dist/server/node_modules/pg/esm/index.mjs +0 -20
- package/dist/server/node_modules/pg/lib/client.js +0 -743
- package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
- package/dist/server/node_modules/pg/lib/connection.js +0 -221
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
- package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
- package/dist/server/node_modules/pg/lib/defaults.js +0 -91
- package/dist/server/node_modules/pg/lib/index.js +0 -73
- package/dist/server/node_modules/pg/lib/native/client.js +0 -323
- package/dist/server/node_modules/pg/lib/native/index.js +0 -2
- package/dist/server/node_modules/pg/lib/native/query.js +0 -165
- package/dist/server/node_modules/pg/lib/query.js +0 -252
- package/dist/server/node_modules/pg/lib/result.js +0 -109
- package/dist/server/node_modules/pg/lib/stream.js +0 -83
- package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
- package/dist/server/node_modules/pg/lib/utils.js +0 -217
- package/dist/server/node_modules/pg/package.json +0 -76
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as b,s as k,o as E,bM as P,j as i,a6 as K,aG as _,K as S,z as q}from"./index-
|
|
1
|
+
import{e as b,s as k,o as E,bM as P,j as i,a6 as K,aG as _,K as S,z as q}from"./index-C4KOdiuW.js";import{P as j}from"./index-mcaIOSGF.js";import{d as z}from"./use-organization-settings-C1HGFbFZ.js";import{S as I}from"./switch-DNv5M4ZB.js";import{n as Q}from"./Container-BerLGLgK.js";import{b as R,S as w,a as F,d as M}from"./settings-section-CKsKmGWh.js";import"./use-mobile-DvmdhkH5.js";import"./X-Bgfd1eh0.js";import"./constants-puxzW8Tt.js";import"./card-B6kxnNb0.js";import"./ArrowUpRight-DT3QLsvt.js";function N(){const e=b.c(17),{org:t,project:s}=k(),o=E();let u;e[0]!==s.enabledPlugins?(u=s.enabledPlugins??[],e[0]=s.enabledPlugins,e[1]=u):u=e[1];const a=u,l=z();let m;e[2]!==t||e[3]!==s.slug||e[4]!==o?(m=()=>{o.invalidateQueries({queryKey:S.project(t.id,s.slug)}),o.invalidateQueries({queryKey:S.projects(t.id)}),o.invalidateQueries({predicate:n=>{const r=n.queryKey;return r[1]===t.id&&r[3]==="collection"&&r[4]==="VIRTUAL_MCP"}})},e[2]=t,e[3]=s.slug,e[4]=o,e[5]=m):m=e[5];const x=m;let g;e[6]!==x||e[7]!==l||e[8]!==a?(g=(n,r)=>{const d=new Set(a);r?d.add(n):d.delete(n),l.mutate({enabled_plugins:Array.from(d)},{onSuccess:x,onError:A})},e[6]=x,e[7]=l,e[8]=a,e[9]=g):g=e[9];const p=g,y=$,C=U;if(P.length===0){let n;return e[10]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx("p",{className:"text-sm text-muted-foreground",children:"No plugins available."}),e[10]=n):n=e[10],n}let c;e[11]!==p||e[12]!==l||e[13]!==a?(c=P.map(n=>{const r=y(n.id),d=C(n.id),h=a.includes(n.id);return i.jsx(R,{title:r?.label??n.id,description:d??void 0,icon:i.jsx("span",{className:"text-muted-foreground [&>svg]:size-4",children:r?.icon??i.jsx(Q,{size:14})}),onClick:()=>!l.isPending&&p(n.id,!h),action:i.jsx(I,{checked:h,onCheckedChange:v=>p(n.id,v),disabled:l.isPending,onClick:T})},n.id)}),e[11]=p,e[12]=l,e[13]=a,e[14]=c):c=e[14];let f;return e[15]!==c?(f=i.jsx(w,{children:i.jsx(F,{children:c})}),e[15]=c,e[16]=f):f=e[16],f}function T(e){return e.stopPropagation()}function U(e){return P.find(s=>s.id===e)?.description??null}function $(e){const t=K.find(o=>o.pluginId===e);if(t)return{label:t.label,icon:t.items[0]?.icon};const s=_.find(o=>o.pluginId===e);return s?{label:s.label,icon:s.icon}:null}function A(e){q.error("Failed to update plugin: "+(e instanceof Error?e.message:"Unknown error"))}function D(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(j,{children:i.jsx(j.Content,{children:i.jsx(j.Body,{children:i.jsxs(M,{children:[i.jsx(j.Title,{children:"Plugins"}),i.jsx(N,{})]})})})}),e[0]=t):t=e[0],t}function ee(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(D,{}),e[0]=t):t=e[0],t}export{ee as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bW as b,e as f,j as c,aB as C,r as d,c as p,aY as j,bX as v,bY as h}from"./index-
|
|
1
|
+
import{bW as b,e as f,j as c,aB as C,r as d,c as p,aY as j,bX as v,bY as h}from"./index-C4KOdiuW.js";import{L as N}from"./label-qumw5kFa.js";const E=b,g=d.createContext({}),M=t=>{const e=f.c(9);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;e[2]!==s.name?(o={name:s.name},e[2]=s.name,e[3]=o):o=e[3];let n;e[4]!==s?(n=c.jsx(C,{...s}),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==o||e[7]!==n?(r=c.jsx(g.Provider,{value:o,children:n}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r},x=()=>{const t=f.c(13),e=d.useContext(g),s=d.useContext($),{getFieldState:o}=v();let n;t[0]!==e.name?(n={name:e.name},t[0]=e.name,t[1]=n):n=t[1];const r=h(n);let a;t[2]!==e.name||t[3]!==r||t[4]!==o?(a=o(e.name,r),t[2]=e.name,t[3]=r,t[4]=o,t[5]=a):a=t[5];const l=a;if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=s,m=`${i}-form-item`,F=`${i}-form-item-description`,I=`${i}-form-item-message`;let u;return t[6]!==e.name||t[7]!==l||t[8]!==i||t[9]!==m||t[10]!==F||t[11]!==I?(u={id:i,name:e.name,formItemId:m,formDescriptionId:F,formMessageId:I,...l},t[6]=e.name,t[7]=l,t[8]=i,t[9]=m,t[10]=F,t[11]=I,t[12]=u):u=t[12],u},$=d.createContext({});function w(t){const e=f.c(13);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=d.useId();let r;e[3]!==n?(r={id:n},e[3]=n,e[4]=r):r=e[4];let a;e[5]!==s?(a=p("grid gap-2",s),e[5]=s,e[6]=a):a=e[6];let l;e[7]!==o||e[8]!==a?(l=c.jsx("div",{"data-slot":"form-item",className:a,...o}),e[7]=o,e[8]=a,e[9]=l):l=e[9];let i;return e[10]!==r||e[11]!==l?(i=c.jsx($.Provider,{value:r,children:l}),e[10]=r,e[11]=l,e[12]=i):i=e[12],i}function L(t){const e=f.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formItemId:r}=x(),a=!!n;let l;e[3]!==s?(l=p("text-foreground data-[error=true]:text-destructive",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==r||e[6]!==o||e[7]!==a||e[8]!==l?(i=c.jsx(N,{"data-slot":"form-label","data-error":a,className:l,htmlFor:r,...o}),e[5]=r,e[6]=o,e[7]=a,e[8]=l,e[9]=i):i=e[9],i}function P(t){const e=f.c(7);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];const{error:o,formItemId:n,formDescriptionId:r,formMessageId:a}=x(),l=o?`${r} ${a}`:`${r}`,i=!!o;let m;return e[2]!==n||e[3]!==s||e[4]!==l||e[5]!==i?(m=c.jsx(j,{"data-slot":"form-control",id:n,"aria-describedby":l,"aria-invalid":i,...s}),e[2]=n,e[3]=s,e[4]=l,e[5]=i,e[6]=m):m=e[6],m}function y(t){const e=f.c(9);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{formDescriptionId:n}=x();let r;e[3]!==s?(r=p("text-muted-foreground text-sm",s),e[3]=s,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==o||e[7]!==r?(a=c.jsx("p",{"data-slot":"form-description",id:n,className:r,...o}),e[5]=n,e[6]=o,e[7]=r,e[8]=a):a=e[8],a}function R(t){const e=f.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formMessageId:r}=x(),a=n?String(n?.message??""):o.children;if(!a)return null;let l;e[3]!==s?(l=p("text-destructive text-sm",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==a||e[6]!==r||e[7]!==o||e[8]!==l?(i=c.jsx("p",{"data-slot":"form-message",id:r,className:l,...o,children:a}),e[5]=a,e[6]=r,e[7]=o,e[8]=l,e[9]=i):i=e[9],i}export{E as F,M as a,w as b,L as c,P as d,R as e,y as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as re,s as ce,o as de,r as U,x as me,w as ue,a as fe,t as Y,z as q,K as te,b as ge,j as s,B as H,v as xe,y as Q,e as L,c as pe,aD as he}from"./index-DKd6U8ZD.js";import{P as V}from"./index-Bgh3Fg-W.js";import{A as be}from"./avatar-CAgGCSe2.js";import{I as je}from"./input-rXpcOW54.js";import{S as X,a as Z,b as W,c as ie,d as ve}from"./settings-section-DU0g5n0Q.js";import{D as Se}from"./domain-settings-AVM0VKvz.js";import{u as ye,a as se,D as Ne,c as Ce,S as we,v as _e,K as ze,P as De,d as Pe,C as ke,s as Ae,b as Ie,e as Ee}from"./collection-search-Dz-DfctK.js";import{W as ee,i as Te}from"./constants-C9aLxYHE.js";import{u as le}from"./use-virtual-mcp-G7jm3TGl.js";import{b as Oe,P as Re,a as Fe}from"./popover-oHy7A2NB.js";import{S as Le}from"./skeleton-DWxGcluE.js";import{Q as $e}from"./agent-icon-DtvDglSH.js";import{s as Me}from"./Plus-BpCTKUfi.js";import{a as ae}from"./Users03-CKRT_0yR.js";import{i as Ke}from"./X-DXjTCsIF.js";import{I as J}from"./integration-icon-wh5nd5gB.js";import{u as He,c as Ue}from"./use-organization-settings-DoI0c_Gi.js";import"./use-mobile-DrlR5BbG.js";import"./User01-B6EEMzxh.js";import"./card-DWuJsQ-l.js";import"./ArrowUpRight-DoZ1aCQb.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./switch-CWaKO_3R.js";import"./SearchMd-fRD_HHud.js";import"./use-collections-DpIHOTql.js";import"./AlertCircle-BJZjcLR8.js";import"./Tool01-By8ElVEn.js";import"./XClose-Bnw2tzQy.js";import"./RefreshCcw01-BEGaV3W5.js";import"./ArrowNarrowLeft-Yoaq7-cz.js";import"./XCircle-Ce7DOyui.js";import"./ZapSquare-CsTKlylz.js";import"./CheckCircle-BbLUS0ek.js";import"./ChevronDown-CGHjchOw.js";import"./ChevronRight-Do3Je1ER.js";import"./ChevronUp-dSBPqUJ1.js";import"./DotsVertical-BxL7Owtq.js";import"./Container-CDgY_XYz.js";import"./Star01-CIsSx9uE.js";import"./Palette-CWiKw0AC.js";import"./LinkExternal01-DxLyrYeW.js";import"./Lock01-BI0K2L_g.js";import"./Sun-CgyDUxcQ.js";import"./Play-C7K9es-c.js";import"./Settings02-DtQ4_bLf.js";import"./Shield01-Di_q_zxl.js";import"./Trash01-BzOKZIoE.js";import"./Zap-BEX7Xuxl.js";const qe=xe({name:Q().min(1,"Name is required").max(255,"Name is too long"),slug:Q().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens"),logo:Q().optional()});function Be(t){const e=L.c(13),{value:a,onChange:i,name:f,disabled:l}=t,n=U.useRef(null);let S;e[0]===Symbol.for("react.memo_cache_sentinel")?(S=()=>n.current?.click(),e[0]=S):S=e[0];const _=S;let c;e[1]!==i?(c=z=>{const p=z.target.files?.[0];if(!p)return;if(p.size>2097152){q.error("Image must be smaller than 2MB");return}const b=new FileReader;b.onerror=Ge,b.onloadend=()=>{b.result&&i(b.result),n.current&&(n.current.value="")},b.readAsDataURL(p)},e[1]=i,e[2]=c):c=e[2];const g=c;let o;e[3]!==l||e[4]!==g?(o=s.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:g,className:"hidden",disabled:l}),e[3]=l,e[4]=g,e[5]=o):o=e[5];const u=a||void 0,d=f??"?";let m;e[6]!==u||e[7]!==d?(m=s.jsx(be,{url:u,fallback:d,shape:"square",size:"base"}),e[6]=u,e[7]=d,e[8]=m):m=e[8];let x;return e[9]!==l||e[10]!==o||e[11]!==m?(x=s.jsxs("button",{type:"button",onClick:_,disabled:l,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[o,m]}),e[9]=l,e[10]=o,e[11]=m,e[12]=x):x=e[12],x}function Ge(){return q.error("Failed to read image")}function Ve(){const t=re(),{org:e}=ce(),a=de(),[i,f]=U.useState(!1),l=me({resolver:ue(qe),values:{name:e.name??"",slug:e.slug??"",logo:e.logo??""}}),n=fe({mutationFn:async o=>{const u={name:o.name,slug:o.slug};o.logo&&(u.logo=o.logo);const d=await ge.organization.update({organizationId:e.id,data:u});if(d?.error)throw new Error(d.error.message||"Failed to update organization");return d},onSuccess:o=>{Y("organization_settings_updated",{organization_id:e.id,fields:Object.keys(l.formState.dirtyFields)}),a.invalidateQueries({queryKey:te.organizations()}),a.invalidateQueries({queryKey:te.activeOrganization(e.slug)}),q.success("Organization settings updated successfully"),o?.data?.slug&&o.data.slug!==e.slug&&t({to:"/$org/settings/general",params:{org:o.data.slug}})},onError:o=>{Y("organization_settings_update_failed",{organization_id:e.id,fields:Object.keys(l.formState.dirtyFields),error:o instanceof Error?o.message:String(o)}),q.error(o instanceof Error?o.message:"Failed to update organization")},onSettled:()=>{f(!1)}}),S=o=>{f(!0),n.mutate(o)},_=l.formState.isDirty,c=l.formState.errors,g=typeof window<"u"?`${window.location.host}/`:"";return s.jsx("form",{onSubmit:l.handleSubmit(S),className:"flex flex-col gap-3",children:s.jsx(X,{children:s.jsxs(Z,{children:[s.jsx(W,{title:"Logo",description:"Recommended size is 256x256px",action:s.jsx(Be,{value:l.watch("logo"),onChange:o=>l.setValue("logo",o??"",{shouldDirty:!0}),name:l.watch("name"),disabled:i})}),s.jsx(W,{title:"Name",action:s.jsx(je,{id:"org-name",...l.register("name"),placeholder:"Organization name",disabled:i,className:"w-[280px]"})}),s.jsx(W,{title:"URL",action:s.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-input/30 focus-within:ring-2 focus-within:ring-ring/50 overflow-hidden",children:[g&&s.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:g}),s.jsx("input",{id:"org-slug",...l.register("slug"),placeholder:"my-organization",disabled:i,className:"flex-1 min-w-0 bg-transparent px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground/60 outline-none",onChange:o=>{const u=o.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");l.setValue("slug",u,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})}})]})}),(c.name||c.slug||c.logo)&&s.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[c.name&&s.jsx("p",{className:"text-xs text-destructive",children:c.name.message}),c.slug&&s.jsx("p",{className:"text-xs text-destructive",children:c.slug.message}),c.logo&&s.jsx("p",{className:"text-xs text-destructive",children:c.logo.message})]}),_&&s.jsxs(ie,{children:[s.jsx(H,{type:"button",variant:"outline",size:"sm",onClick:()=>l.reset(),disabled:i,children:"Cancel"}),s.jsx(H,{type:"submit",disabled:i,size:"sm",children:i?"Saving…":"Save"})]})]})})})}const ne=["site-editor","site-diagnostics","ai-image","ai-research"],oe=8;function Qe(t,e,a){const i=e.find(l=>l.id===t);if(i)return{id:i.id,title:i.title,icon:i.icon,kind:"template"};const f=a.find(l=>l.id===t);return f?{id:t,title:f.title,icon:f.icon??null,kind:"custom"}:{id:t,title:t,icon:null,kind:"missing"}}function We(t){const e=L.c(39),{agent:a,onRemove:i}=t;let f;e[0]!==a.id?(f={id:a.id},e[0]=a.id,e[1]=f):f=e[1];const{attributes:l,listeners:n,setNodeRef:S,transform:_,transition:c,isDragging:g}=Pe(f);let o;e[2]!==_?(o=ke.Transform.toString(_),e[2]=_,e[3]=o):o=e[3];const u=g?.5:void 0,d=g?100:void 0;let m;e[4]!==o||e[5]!==u||e[6]!==d||e[7]!==c?(m={transform:o,transition:c,opacity:u,zIndex:d},e[4]=o,e[5]=u,e[6]=d,e[7]=c,e[8]=m):m=e[8];const x=m,z=g&&"shadow-lg";let p;e[9]!==z?(p=pe("flex items-center gap-3 px-3 py-2 rounded-lg border border-border bg-background",z),e[9]=z,e[10]=p):p=e[10];const b=`Drag to reorder ${a.title}`;let D;e[11]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx($e,{size:14}),e[11]=D):D=e[11];let A;e[12]!==l||e[13]!==n||e[14]!==b?(A=s.jsx("button",{type:"button",...l,...n,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing","aria-label":b,children:D}),e[12]=l,e[13]=n,e[14]=b,e[15]=A):A=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(ae,{size:14}),e[16]=y):y=e[16];let C;e[17]!==a.icon||e[18]!==a.title?(C=s.jsx(J,{icon:a.icon,name:a.title,size:"xs",fallbackIcon:y}),e[17]=a.icon,e[18]=a.title,e[19]=C):C=e[19];let j;e[20]!==a.title?(j=s.jsx("span",{className:"text-sm text-foreground truncate",children:a.title}),e[20]=a.title,e[21]=j):j=e[21];const w=a.kind==="template"?"Template":a.kind==="custom"?"Custom agent":"Unavailable";let h;e[22]!==w?(h=s.jsx("span",{className:"text-xs text-muted-foreground",children:w}),e[22]=w,e[23]=h):h=e[23];let v;e[24]!==j||e[25]!==h?(v=s.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[j,h]}),e[24]=j,e[25]=h,e[26]=v):v=e[26];const I=`Remove ${a.title}`;let P;e[27]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(Ke,{size:14}),e[27]=P):P=e[27];let N;e[28]!==i||e[29]!==I?(N=s.jsx("button",{type:"button",onClick:i,className:"text-muted-foreground hover:text-foreground p-1 rounded","aria-label":I,children:P}),e[28]=i,e[29]=I,e[30]=N):N=e[30];let k;return e[31]!==S||e[32]!==x||e[33]!==A||e[34]!==C||e[35]!==v||e[36]!==N||e[37]!==p?(k=s.jsxs("div",{ref:S,style:x,className:p,children:[A,C,v,N]}),e[31]=S,e[32]=x,e[33]=A,e[34]=C,e[35]=v,e[36]=N,e[37]=p,e[38]=k):k=e[38],k}function Ye(t){const e=L.c(48),{selectedIds:a,onAdd:i}=t,[f,l]=U.useState(!1),[n,S]=U.useState(""),_=le();let c;e[0]!==a?(c=new Set(a),e[0]=a,e[1]=c):c=e[1];const g=c;let o,u,d,m,x,z,p,b,D,A,y,C,j;if(e[2]!==_||e[3]!==i||e[4]!==f||e[5]!==n||e[6]!==g){const P=n.toLowerCase();m=ee.filter(r=>!g.has(r.id)&&(!n||r.title.toLowerCase().includes(P)));let N;e[20]!==g?(N=r=>r.id!==null&&!Te(r.id)&&!g.has(r.id),e[20]=g,e[21]=N):N=e[21],d=_.filter(N).filter(r=>!n||r.title.toLowerCase().includes(P));let k;e[22]!==i?(k=r=>{i(r),l(!1),S("")},e[22]=i,e[23]=k):k=e[23];const T=k;u=Oe,C=f,j=l,e[24]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Re,{asChild:!0,children:s.jsxs(H,{type:"button",variant:"outline",size:"sm",children:[s.jsx(Me,{size:14}),"Add agent"]})}),e[24]=x):x=e[24],o=Fe,D="w-[320px] p-0 overflow-hidden",A="start",e[25]!==n?(y=s.jsx(Ee,{value:n,onChange:S,placeholder:"Search agents..."}),e[25]=n,e[26]=y):y=e[26],z="max-h-[320px] overflow-y-auto p-2 flex flex-col gap-3",p=m.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Templates"}),m.map(r=>s.jsxs("button",{type:"button",onClick:()=>T(r.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:r.icon,name:r.title,size:"xs"}),s.jsx("span",{className:"text-sm truncate",children:r.title})]},r.id))]}),b=d.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Custom agents"}),d.map(r=>s.jsxs("button",{type:"button",onClick:()=>T(r.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:r.icon,name:r.title,size:"xs",fallbackIcon:s.jsx(ae,{size:14})}),s.jsx("span",{className:"text-sm truncate",children:r.title})]},r.id))]}),e[2]=_,e[3]=i,e[4]=f,e[5]=n,e[6]=g,e[7]=o,e[8]=u,e[9]=d,e[10]=m,e[11]=x,e[12]=z,e[13]=p,e[14]=b,e[15]=D,e[16]=A,e[17]=y,e[18]=C,e[19]=j}else o=e[7],u=e[8],d=e[9],m=e[10],x=e[11],z=e[12],p=e[13],b=e[14],D=e[15],A=e[16],y=e[17],C=e[18],j=e[19];let w;e[27]!==d||e[28]!==m.length||e[29]!==n?(w=m.length===0&&d.length===0&&s.jsx("div",{className:"text-xs text-muted-foreground text-center py-6",children:n?"No agents found":"All agents are already added"}),e[27]=d,e[28]=m.length,e[29]=n,e[30]=w):w=e[30];let h;e[31]!==w||e[32]!==z||e[33]!==p||e[34]!==b?(h=s.jsxs("div",{className:z,children:[p,b,w]}),e[31]=w,e[32]=z,e[33]=p,e[34]=b,e[35]=h):h=e[35];let v;e[36]!==o||e[37]!==h||e[38]!==D||e[39]!==A||e[40]!==y?(v=s.jsxs(o,{className:D,align:A,children:[y,h]}),e[36]=o,e[37]=h,e[38]=D,e[39]=A,e[40]=y,e[41]=v):v=e[41];let I;return e[42]!==u||e[43]!==x||e[44]!==v||e[45]!==C||e[46]!==j?(I=s.jsxs(u,{open:C,onOpenChange:j,children:[x,v]}),e[42]=u,e[43]=x,e[44]=v,e[45]=C,e[46]=j,e[47]=I):I=e[47],I}function Je(){const t=L.c(61),e=He(),a=le(),i=Ue();let f;t[0]!==e?.ids?(f=e?.ids??[...ne],t[0]=e?.ids,t[1]=f):f=t[1];const l=f,[n,S]=U.useState(l);let _;t[2]!==n||t[3]!==l?(_=n.length!==l.length||n.some((E,O)=>E!==l[O]),t[2]=n,t[3]=l,t[4]=_):_=t[4];const c=_;let g;t[5]===Symbol.for("react.memo_cache_sentinel")?(g={activationConstraint:{distance:5}},t[5]=g):g=t[5];let o;t[6]===Symbol.for("react.memo_cache_sentinel")?(o={coordinateGetter:Ae},t[6]=o):o=t[6];const u=ye(se(De,g),se(ze,o));let d;t[7]!==n?(d=E=>{const{active:O,over:R}=E;if(!R||O.id===R.id)return;const F=n.indexOf(O.id),G=n.indexOf(R.id);F===-1||G===-1||S(Ie([...n],F,G))},t[7]=n,t[8]=d):d=t[8];const m=d;let x;t[9]!==n?(x=E=>{n.includes(E)||S([...n,E])},t[9]=n,t[10]=x):x=t[10];const z=x;let p;t[11]!==n?(p=E=>{S(n.filter(O=>O!==E))},t[11]=n,t[12]=p):p=t[12];const b=p;let D;t[13]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{S([...ne])},t[13]=D):D=t[13];const A=D;let y;t[14]!==n||t[15]!==i?(y=()=>{i.mutate({ids:n},{onSuccess:()=>{Y("default_home_agents_updated",{count:n.length,template_count:n.filter(Ze).length}),q.success("Default home agents updated")},onError:Xe})},t[14]=n,t[15]=i,t[16]=y):y=t[16];const C=y;let j,w,h,v,I,P,N;if(t[17]!==a||t[18]!==n||t[19]!==m||t[20]!==b||t[21]!==u||t[22]!==i.isPending){let E;t[30]!==a?(E=F=>Qe(F,ee,a),t[30]=a,t[31]=E):E=t[31];const O=n.map(E);h=Math.max(0,n.length-oe),w=X,I="Default home agents";let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(he,{size:14}),t[32]=R):R=t[32],t[33]!==i.isPending?(P=s.jsxs(H,{type:"button",variant:"ghost",size:"sm",onClick:A,disabled:i.isPending,children:[R,"Reset defaults"]}),t[33]=i.isPending,t[34]=P):P=t[34],j=Z,N="px-5 py-5 flex flex-col gap-3",v=O.length===0?s.jsx("div",{className:"rounded-lg border border-dashed border-border p-6 text-center text-xs text-muted-foreground",children:'No agents selected. The home view will only show "Create agent".'}):s.jsx(Ne,{sensors:u,collisionDetection:Ce,onDragEnd:m,children:s.jsx(we,{items:n,strategy:_e,children:s.jsx("div",{className:"flex flex-col gap-1.5",children:O.map((F,G)=>s.jsxs("div",{className:"flex flex-col gap-1.5",children:[G===oe&&s.jsxs("div",{className:"flex items-center gap-2 px-1 py-1 text-xs text-muted-foreground",children:[s.jsx("div",{className:"flex-1 h-px bg-border"}),s.jsx("span",{children:"Below this line is hidden on the home view"}),s.jsx("div",{className:"flex-1 h-px bg-border"})]}),s.jsx(We,{agent:F,onRemove:()=>b(F.id)})]},F.id))})})}),t[17]=a,t[18]=n,t[19]=m,t[20]=b,t[21]=u,t[22]=i.isPending,t[23]=j,t[24]=w,t[25]=h,t[26]=v,t[27]=I,t[28]=P,t[29]=N}else j=t[23],w=t[24],h=t[25],v=t[26],I=t[27],P=t[28],N=t[29];let k;t[35]!==n||t[36]!==z?(k=s.jsx(Ye,{selectedIds:n,onAdd:z}),t[35]=n,t[36]=z,t[37]=k):k=t[37];let T;t[38]!==h?(T=h>0&&s.jsxs("span",{className:"text-xs text-muted-foreground",children:[h," agent",h===1?"":"s"," won't fit on the home view"]}),t[38]=h,t[39]=T):T=t[39];let r;t[40]!==k||t[41]!==T?(r=s.jsxs("div",{className:"flex items-center justify-between",children:[k,T]}),t[40]=k,t[41]=T,t[42]=r):r=t[42];let $;t[43]!==v||t[44]!==r||t[45]!==N?($=s.jsxs("div",{className:N,children:[v,r]}),t[43]=v,t[44]=r,t[45]=N,t[46]=$):$=t[46];let M;t[47]!==C||t[48]!==l||t[49]!==c||t[50]!==i.isPending?(M=c&&s.jsxs(ie,{children:[s.jsx(H,{type:"button",variant:"outline",onClick:()=>S(l),disabled:i.isPending,children:"Cancel"}),s.jsx(H,{type:"button",onClick:C,disabled:i.isPending,children:i.isPending?"Saving…":"Save"})]}),t[47]=C,t[48]=l,t[49]=c,t[50]=i.isPending,t[51]=M):M=t[51];let K;t[52]!==j||t[53]!==$||t[54]!==M?(K=s.jsxs(j,{children:[$,M]}),t[52]=j,t[53]=$,t[54]=M,t[55]=K):K=t[55];let B;return t[56]!==w||t[57]!==I||t[58]!==P||t[59]!==K?(B=s.jsx(w,{title:I,actions:P,children:K}),t[56]=w,t[57]=I,t[58]=P,t[59]=K,t[60]=B):B=t[60],B}function Xe(t){q.error(t instanceof Error?t.message:"Failed to update default home agents")}function Ze(t){return ee.some(e=>e.id===t)}function et(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X,{title:"Default home agents",children:s.jsx(Z,{children:s.jsx("div",{className:"px-5 py-5 flex flex-col gap-2",children:Array.from({length:4}).map(tt)})})}),t[0]=e):e=t[0],e}function tt(t,e){return s.jsx(Le,{className:"h-12 w-full rounded-lg"},e)}function st(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(U.Suspense,{fallback:s.jsx(et,{}),children:s.jsx(Je,{})}),t[0]=e):e=t[0],e}function nt(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(V,{children:s.jsx(V.Content,{children:s.jsx(V.Body,{children:s.jsxs(ve,{children:[s.jsx(V.Title,{children:"Organization"}),s.jsx(Ve,{}),s.jsx(Se,{}),s.jsx(st,{})]})})})}),t[0]=e):e=t[0],e}function Xt(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(nt,{}),t[0]=e):e=t[0],e}export{Xt as default};
|
|
1
|
+
import{f as re,s as ce,o as de,r as U,x as me,w as ue,a as fe,t as Y,z as q,K as te,b as ge,j as s,B as H,v as xe,y as Q,e as L,c as pe,aD as he}from"./index-C4KOdiuW.js";import{P as V}from"./index-mcaIOSGF.js";import{A as be}from"./avatar-UVBUP_wG.js";import{I as je}from"./input-DrxCctpM.js";import{S as X,a as Z,b as W,c as ie,d as ve}from"./settings-section-CKsKmGWh.js";import{D as Se}from"./domain-settings-ZwlKCgS9.js";import{u as ye,a as se,D as Ne,c as Ce,S as we,v as _e,K as ze,P as De,d as Pe,C as ke,s as Ae,b as Ie,e as Ee}from"./collection-search-DHiaU-oT.js";import{W as ee,i as Te}from"./constants-puxzW8Tt.js";import{u as le}from"./use-virtual-mcp-D1fXVRo5.js";import{b as Oe,P as Re,a as Fe}from"./popover-BdnMz9At.js";import{S as Le}from"./skeleton-BKGbLlxs.js";import{Q as $e}from"./agent-icon-DSfidSus.js";import{s as Me}from"./Plus-Zv0hv0Vg.js";import{a as ae}from"./Users03-DfcHW1oz.js";import{i as Ke}from"./X-Bgfd1eh0.js";import{I as J}from"./integration-icon-B-ypwxt-.js";import{u as He,c as Ue}from"./use-organization-settings-C1HGFbFZ.js";import"./use-mobile-DvmdhkH5.js";import"./User01-CQoJwY3u.js";import"./card-B6kxnNb0.js";import"./ArrowUpRight-DT3QLsvt.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./switch-DNv5M4ZB.js";import"./SearchMd-BjteSZXQ.js";import"./use-collections-BgcKlAB6.js";import"./AlertCircle-De2C9wZC.js";import"./Tool01-B5mm7tYF.js";import"./XClose-BQJEwJET.js";import"./RefreshCcw01-COL3SGLi.js";import"./ArrowNarrowLeft-bSu4Kz2F.js";import"./XCircle-DUufUsoh.js";import"./ZapSquare-BFGlmWLE.js";import"./CheckCircle-BIi7toDZ.js";import"./ChevronDown-DmIUGcFl.js";import"./ChevronRight-CIh2nJ4L.js";import"./ChevronUp-BYOoc7wr.js";import"./DotsVertical-CDho1dav.js";import"./Container-BerLGLgK.js";import"./Star01-BhFELsp4.js";import"./Palette-CqW3vcqn.js";import"./LinkExternal01-CcTNZj2P.js";import"./Lock01-B-vCOiSg.js";import"./Sun-DY_ADcda.js";import"./Play-CrdOw1Iv.js";import"./Settings02-w5kxVqcK.js";import"./Shield01-DodcxEya.js";import"./Trash01-DuRnWn1E.js";import"./Zap-CDLB-lxK.js";const qe=xe({name:Q().min(1,"Name is required").max(255,"Name is too long"),slug:Q().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens"),logo:Q().optional()});function Be(t){const e=L.c(13),{value:a,onChange:i,name:f,disabled:l}=t,n=U.useRef(null);let S;e[0]===Symbol.for("react.memo_cache_sentinel")?(S=()=>n.current?.click(),e[0]=S):S=e[0];const _=S;let c;e[1]!==i?(c=z=>{const p=z.target.files?.[0];if(!p)return;if(p.size>2097152){q.error("Image must be smaller than 2MB");return}const b=new FileReader;b.onerror=Ge,b.onloadend=()=>{b.result&&i(b.result),n.current&&(n.current.value="")},b.readAsDataURL(p)},e[1]=i,e[2]=c):c=e[2];const g=c;let o;e[3]!==l||e[4]!==g?(o=s.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:g,className:"hidden",disabled:l}),e[3]=l,e[4]=g,e[5]=o):o=e[5];const u=a||void 0,d=f??"?";let m;e[6]!==u||e[7]!==d?(m=s.jsx(be,{url:u,fallback:d,shape:"square",size:"base"}),e[6]=u,e[7]=d,e[8]=m):m=e[8];let x;return e[9]!==l||e[10]!==o||e[11]!==m?(x=s.jsxs("button",{type:"button",onClick:_,disabled:l,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[o,m]}),e[9]=l,e[10]=o,e[11]=m,e[12]=x):x=e[12],x}function Ge(){return q.error("Failed to read image")}function Ve(){const t=re(),{org:e}=ce(),a=de(),[i,f]=U.useState(!1),l=me({resolver:ue(qe),values:{name:e.name??"",slug:e.slug??"",logo:e.logo??""}}),n=fe({mutationFn:async o=>{const u={name:o.name,slug:o.slug};o.logo&&(u.logo=o.logo);const d=await ge.organization.update({organizationId:e.id,data:u});if(d?.error)throw new Error(d.error.message||"Failed to update organization");return d},onSuccess:o=>{Y("organization_settings_updated",{organization_id:e.id,fields:Object.keys(l.formState.dirtyFields)}),a.invalidateQueries({queryKey:te.organizations()}),a.invalidateQueries({queryKey:te.activeOrganization(e.slug)}),q.success("Organization settings updated successfully"),o?.data?.slug&&o.data.slug!==e.slug&&t({to:"/$org/settings/general",params:{org:o.data.slug}})},onError:o=>{Y("organization_settings_update_failed",{organization_id:e.id,fields:Object.keys(l.formState.dirtyFields),error:o instanceof Error?o.message:String(o)}),q.error(o instanceof Error?o.message:"Failed to update organization")},onSettled:()=>{f(!1)}}),S=o=>{f(!0),n.mutate(o)},_=l.formState.isDirty,c=l.formState.errors,g=typeof window<"u"?`${window.location.host}/`:"";return s.jsx("form",{onSubmit:l.handleSubmit(S),className:"flex flex-col gap-3",children:s.jsx(X,{children:s.jsxs(Z,{children:[s.jsx(W,{title:"Logo",description:"Recommended size is 256x256px",action:s.jsx(Be,{value:l.watch("logo"),onChange:o=>l.setValue("logo",o??"",{shouldDirty:!0}),name:l.watch("name"),disabled:i})}),s.jsx(W,{title:"Name",action:s.jsx(je,{id:"org-name",...l.register("name"),placeholder:"Organization name",disabled:i,className:"w-[280px]"})}),s.jsx(W,{title:"URL",action:s.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-input/30 focus-within:ring-2 focus-within:ring-ring/50 overflow-hidden",children:[g&&s.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:g}),s.jsx("input",{id:"org-slug",...l.register("slug"),placeholder:"my-organization",disabled:i,className:"flex-1 min-w-0 bg-transparent px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground/60 outline-none",onChange:o=>{const u=o.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");l.setValue("slug",u,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})}})]})}),(c.name||c.slug||c.logo)&&s.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[c.name&&s.jsx("p",{className:"text-xs text-destructive",children:c.name.message}),c.slug&&s.jsx("p",{className:"text-xs text-destructive",children:c.slug.message}),c.logo&&s.jsx("p",{className:"text-xs text-destructive",children:c.logo.message})]}),_&&s.jsxs(ie,{children:[s.jsx(H,{type:"button",variant:"outline",size:"sm",onClick:()=>l.reset(),disabled:i,children:"Cancel"}),s.jsx(H,{type:"submit",disabled:i,size:"sm",children:i?"Saving…":"Save"})]})]})})})}const ne=["site-editor","site-diagnostics","ai-image","ai-research"],oe=8;function Qe(t,e,a){const i=e.find(l=>l.id===t);if(i)return{id:i.id,title:i.title,icon:i.icon,kind:"template"};const f=a.find(l=>l.id===t);return f?{id:t,title:f.title,icon:f.icon??null,kind:"custom"}:{id:t,title:t,icon:null,kind:"missing"}}function We(t){const e=L.c(39),{agent:a,onRemove:i}=t;let f;e[0]!==a.id?(f={id:a.id},e[0]=a.id,e[1]=f):f=e[1];const{attributes:l,listeners:n,setNodeRef:S,transform:_,transition:c,isDragging:g}=Pe(f);let o;e[2]!==_?(o=ke.Transform.toString(_),e[2]=_,e[3]=o):o=e[3];const u=g?.5:void 0,d=g?100:void 0;let m;e[4]!==o||e[5]!==u||e[6]!==d||e[7]!==c?(m={transform:o,transition:c,opacity:u,zIndex:d},e[4]=o,e[5]=u,e[6]=d,e[7]=c,e[8]=m):m=e[8];const x=m,z=g&&"shadow-lg";let p;e[9]!==z?(p=pe("flex items-center gap-3 px-3 py-2 rounded-lg border border-border bg-background",z),e[9]=z,e[10]=p):p=e[10];const b=`Drag to reorder ${a.title}`;let D;e[11]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx($e,{size:14}),e[11]=D):D=e[11];let A;e[12]!==l||e[13]!==n||e[14]!==b?(A=s.jsx("button",{type:"button",...l,...n,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing","aria-label":b,children:D}),e[12]=l,e[13]=n,e[14]=b,e[15]=A):A=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(ae,{size:14}),e[16]=y):y=e[16];let C;e[17]!==a.icon||e[18]!==a.title?(C=s.jsx(J,{icon:a.icon,name:a.title,size:"xs",fallbackIcon:y}),e[17]=a.icon,e[18]=a.title,e[19]=C):C=e[19];let j;e[20]!==a.title?(j=s.jsx("span",{className:"text-sm text-foreground truncate",children:a.title}),e[20]=a.title,e[21]=j):j=e[21];const w=a.kind==="template"?"Template":a.kind==="custom"?"Custom agent":"Unavailable";let h;e[22]!==w?(h=s.jsx("span",{className:"text-xs text-muted-foreground",children:w}),e[22]=w,e[23]=h):h=e[23];let v;e[24]!==j||e[25]!==h?(v=s.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[j,h]}),e[24]=j,e[25]=h,e[26]=v):v=e[26];const I=`Remove ${a.title}`;let P;e[27]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(Ke,{size:14}),e[27]=P):P=e[27];let N;e[28]!==i||e[29]!==I?(N=s.jsx("button",{type:"button",onClick:i,className:"text-muted-foreground hover:text-foreground p-1 rounded","aria-label":I,children:P}),e[28]=i,e[29]=I,e[30]=N):N=e[30];let k;return e[31]!==S||e[32]!==x||e[33]!==A||e[34]!==C||e[35]!==v||e[36]!==N||e[37]!==p?(k=s.jsxs("div",{ref:S,style:x,className:p,children:[A,C,v,N]}),e[31]=S,e[32]=x,e[33]=A,e[34]=C,e[35]=v,e[36]=N,e[37]=p,e[38]=k):k=e[38],k}function Ye(t){const e=L.c(48),{selectedIds:a,onAdd:i}=t,[f,l]=U.useState(!1),[n,S]=U.useState(""),_=le();let c;e[0]!==a?(c=new Set(a),e[0]=a,e[1]=c):c=e[1];const g=c;let o,u,d,m,x,z,p,b,D,A,y,C,j;if(e[2]!==_||e[3]!==i||e[4]!==f||e[5]!==n||e[6]!==g){const P=n.toLowerCase();m=ee.filter(r=>!g.has(r.id)&&(!n||r.title.toLowerCase().includes(P)));let N;e[20]!==g?(N=r=>r.id!==null&&!Te(r.id)&&!g.has(r.id),e[20]=g,e[21]=N):N=e[21],d=_.filter(N).filter(r=>!n||r.title.toLowerCase().includes(P));let k;e[22]!==i?(k=r=>{i(r),l(!1),S("")},e[22]=i,e[23]=k):k=e[23];const T=k;u=Oe,C=f,j=l,e[24]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Re,{asChild:!0,children:s.jsxs(H,{type:"button",variant:"outline",size:"sm",children:[s.jsx(Me,{size:14}),"Add agent"]})}),e[24]=x):x=e[24],o=Fe,D="w-[320px] p-0 overflow-hidden",A="start",e[25]!==n?(y=s.jsx(Ee,{value:n,onChange:S,placeholder:"Search agents..."}),e[25]=n,e[26]=y):y=e[26],z="max-h-[320px] overflow-y-auto p-2 flex flex-col gap-3",p=m.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Templates"}),m.map(r=>s.jsxs("button",{type:"button",onClick:()=>T(r.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:r.icon,name:r.title,size:"xs"}),s.jsx("span",{className:"text-sm truncate",children:r.title})]},r.id))]}),b=d.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Custom agents"}),d.map(r=>s.jsxs("button",{type:"button",onClick:()=>T(r.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:r.icon,name:r.title,size:"xs",fallbackIcon:s.jsx(ae,{size:14})}),s.jsx("span",{className:"text-sm truncate",children:r.title})]},r.id))]}),e[2]=_,e[3]=i,e[4]=f,e[5]=n,e[6]=g,e[7]=o,e[8]=u,e[9]=d,e[10]=m,e[11]=x,e[12]=z,e[13]=p,e[14]=b,e[15]=D,e[16]=A,e[17]=y,e[18]=C,e[19]=j}else o=e[7],u=e[8],d=e[9],m=e[10],x=e[11],z=e[12],p=e[13],b=e[14],D=e[15],A=e[16],y=e[17],C=e[18],j=e[19];let w;e[27]!==d||e[28]!==m.length||e[29]!==n?(w=m.length===0&&d.length===0&&s.jsx("div",{className:"text-xs text-muted-foreground text-center py-6",children:n?"No agents found":"All agents are already added"}),e[27]=d,e[28]=m.length,e[29]=n,e[30]=w):w=e[30];let h;e[31]!==w||e[32]!==z||e[33]!==p||e[34]!==b?(h=s.jsxs("div",{className:z,children:[p,b,w]}),e[31]=w,e[32]=z,e[33]=p,e[34]=b,e[35]=h):h=e[35];let v;e[36]!==o||e[37]!==h||e[38]!==D||e[39]!==A||e[40]!==y?(v=s.jsxs(o,{className:D,align:A,children:[y,h]}),e[36]=o,e[37]=h,e[38]=D,e[39]=A,e[40]=y,e[41]=v):v=e[41];let I;return e[42]!==u||e[43]!==x||e[44]!==v||e[45]!==C||e[46]!==j?(I=s.jsxs(u,{open:C,onOpenChange:j,children:[x,v]}),e[42]=u,e[43]=x,e[44]=v,e[45]=C,e[46]=j,e[47]=I):I=e[47],I}function Je(){const t=L.c(61),e=He(),a=le(),i=Ue();let f;t[0]!==e?.ids?(f=e?.ids??[...ne],t[0]=e?.ids,t[1]=f):f=t[1];const l=f,[n,S]=U.useState(l);let _;t[2]!==n||t[3]!==l?(_=n.length!==l.length||n.some((E,O)=>E!==l[O]),t[2]=n,t[3]=l,t[4]=_):_=t[4];const c=_;let g;t[5]===Symbol.for("react.memo_cache_sentinel")?(g={activationConstraint:{distance:5}},t[5]=g):g=t[5];let o;t[6]===Symbol.for("react.memo_cache_sentinel")?(o={coordinateGetter:Ae},t[6]=o):o=t[6];const u=ye(se(De,g),se(ze,o));let d;t[7]!==n?(d=E=>{const{active:O,over:R}=E;if(!R||O.id===R.id)return;const F=n.indexOf(O.id),G=n.indexOf(R.id);F===-1||G===-1||S(Ie([...n],F,G))},t[7]=n,t[8]=d):d=t[8];const m=d;let x;t[9]!==n?(x=E=>{n.includes(E)||S([...n,E])},t[9]=n,t[10]=x):x=t[10];const z=x;let p;t[11]!==n?(p=E=>{S(n.filter(O=>O!==E))},t[11]=n,t[12]=p):p=t[12];const b=p;let D;t[13]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{S([...ne])},t[13]=D):D=t[13];const A=D;let y;t[14]!==n||t[15]!==i?(y=()=>{i.mutate({ids:n},{onSuccess:()=>{Y("default_home_agents_updated",{count:n.length,template_count:n.filter(Ze).length}),q.success("Default home agents updated")},onError:Xe})},t[14]=n,t[15]=i,t[16]=y):y=t[16];const C=y;let j,w,h,v,I,P,N;if(t[17]!==a||t[18]!==n||t[19]!==m||t[20]!==b||t[21]!==u||t[22]!==i.isPending){let E;t[30]!==a?(E=F=>Qe(F,ee,a),t[30]=a,t[31]=E):E=t[31];const O=n.map(E);h=Math.max(0,n.length-oe),w=X,I="Default home agents";let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(he,{size:14}),t[32]=R):R=t[32],t[33]!==i.isPending?(P=s.jsxs(H,{type:"button",variant:"ghost",size:"sm",onClick:A,disabled:i.isPending,children:[R,"Reset defaults"]}),t[33]=i.isPending,t[34]=P):P=t[34],j=Z,N="px-5 py-5 flex flex-col gap-3",v=O.length===0?s.jsx("div",{className:"rounded-lg border border-dashed border-border p-6 text-center text-xs text-muted-foreground",children:'No agents selected. The home view will only show "Create agent".'}):s.jsx(Ne,{sensors:u,collisionDetection:Ce,onDragEnd:m,children:s.jsx(we,{items:n,strategy:_e,children:s.jsx("div",{className:"flex flex-col gap-1.5",children:O.map((F,G)=>s.jsxs("div",{className:"flex flex-col gap-1.5",children:[G===oe&&s.jsxs("div",{className:"flex items-center gap-2 px-1 py-1 text-xs text-muted-foreground",children:[s.jsx("div",{className:"flex-1 h-px bg-border"}),s.jsx("span",{children:"Below this line is hidden on the home view"}),s.jsx("div",{className:"flex-1 h-px bg-border"})]}),s.jsx(We,{agent:F,onRemove:()=>b(F.id)})]},F.id))})})}),t[17]=a,t[18]=n,t[19]=m,t[20]=b,t[21]=u,t[22]=i.isPending,t[23]=j,t[24]=w,t[25]=h,t[26]=v,t[27]=I,t[28]=P,t[29]=N}else j=t[23],w=t[24],h=t[25],v=t[26],I=t[27],P=t[28],N=t[29];let k;t[35]!==n||t[36]!==z?(k=s.jsx(Ye,{selectedIds:n,onAdd:z}),t[35]=n,t[36]=z,t[37]=k):k=t[37];let T;t[38]!==h?(T=h>0&&s.jsxs("span",{className:"text-xs text-muted-foreground",children:[h," agent",h===1?"":"s"," won't fit on the home view"]}),t[38]=h,t[39]=T):T=t[39];let r;t[40]!==k||t[41]!==T?(r=s.jsxs("div",{className:"flex items-center justify-between",children:[k,T]}),t[40]=k,t[41]=T,t[42]=r):r=t[42];let $;t[43]!==v||t[44]!==r||t[45]!==N?($=s.jsxs("div",{className:N,children:[v,r]}),t[43]=v,t[44]=r,t[45]=N,t[46]=$):$=t[46];let M;t[47]!==C||t[48]!==l||t[49]!==c||t[50]!==i.isPending?(M=c&&s.jsxs(ie,{children:[s.jsx(H,{type:"button",variant:"outline",onClick:()=>S(l),disabled:i.isPending,children:"Cancel"}),s.jsx(H,{type:"button",onClick:C,disabled:i.isPending,children:i.isPending?"Saving…":"Save"})]}),t[47]=C,t[48]=l,t[49]=c,t[50]=i.isPending,t[51]=M):M=t[51];let K;t[52]!==j||t[53]!==$||t[54]!==M?(K=s.jsxs(j,{children:[$,M]}),t[52]=j,t[53]=$,t[54]=M,t[55]=K):K=t[55];let B;return t[56]!==w||t[57]!==I||t[58]!==P||t[59]!==K?(B=s.jsx(w,{title:I,actions:P,children:K}),t[56]=w,t[57]=I,t[58]=P,t[59]=K,t[60]=B):B=t[60],B}function Xe(t){q.error(t instanceof Error?t.message:"Failed to update default home agents")}function Ze(t){return ee.some(e=>e.id===t)}function et(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X,{title:"Default home agents",children:s.jsx(Z,{children:s.jsx("div",{className:"px-5 py-5 flex flex-col gap-2",children:Array.from({length:4}).map(tt)})})}),t[0]=e):e=t[0],e}function tt(t,e){return s.jsx(Le,{className:"h-12 w-full rounded-lg"},e)}function st(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(U.Suspense,{fallback:s.jsx(et,{}),children:s.jsx(Je,{})}),t[0]=e):e=t[0],e}function nt(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(V,{children:s.jsx(V.Content,{children:s.jsx(V.Body,{children:s.jsxs(ve,{children:[s.jsx(V.Title,{children:"Organization"}),s.jsx(Ve,{}),s.jsx(Se,{}),s.jsx(st,{})]})})})}),t[0]=e):e=t[0],e}function Xt(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(nt,{}),t[0]=e):e=t[0],e}export{Xt as default};
|
package/dist/client/assets/{github-repo-picker-DSEipb9O.js → github-repo-picker-QAmOQiwy.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as M,s as z,o as ve,b as ze,r as O,K as ne,n as Fe,a as He,j as t,c as he,B as oe,t as V,z as ie,f as We,a0 as Je,a1 as Xe,az as je,C as Ze,l as xe,V as et}from"./index-DKd6U8ZD.js";import{S as re,u as $,d as we,W as Be,j as ye}from"./constants-C9aLxYHE.js";import{u as Ne}from"./use-navigate-to-agent-DlV84y97.js";import{c as ce,d as le,a as de,D as ue,b as tt}from"./dialog-Dh1iMW0s.js";import{i as Ae}from"./RefreshCcw01-BEGaV3W5.js";import{C as qe}from"./collection-search-9iq4cHBD.js";import{c as Ee,b as Se,D as Oe,a as Le}from"./drawer-BVsQgzeD.js";import{u as Re}from"./use-mobile-DrlR5BbG.js";import{I as Me}from"./integration-icon-wh5nd5gB.js";import{a as ke,u as nt}from"./use-connection-1SSSHaHs.js";import{u as st,d as Qe}from"./use-mcp-tools-qxi4PxSc.js";import{b as Ue,u as it}from"./use-virtual-mcp-G7jm3TGl.js";import{C as ot}from"./checkbox-CgUCf0vo.js";import{i as at}from"./Lock01-BI0K2L_g.js";import{F as rt}from"./agent-icon-DtvDglSH.js";import{e as ct}from"./extract-connection-data-DTYSYxBG.js";function lt(i){return i.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}async function dt(){const i=await fetch("/api/deco-sites");if(!i.ok){const e=await i.json().catch(()=>({}));throw new Error(e.error??`Failed to load sites (${i.status})`)}return i.json()}function Kt(i){const e=M.c(65),{open:n,onOpenChange:a,onBack:c}=i,{org:s}=z(),l=Ne(),m=ve(),{data:f}=ze.useSession(),[x,h]=O.useState(null),[T,d]=O.useState("");let u;e[0]!==s.id?(u={connectionId:re,orgId:s.id},e[0]=s.id,e[1]=u):u=e[1];const p=$(u);let r;e[2]!==f?.user?.email?(r=ne.decoSites(f?.user?.email),e[2]=f?.user?.email,e[3]=r):r=e[3];const g=n&&!!f?.user?.email;let C;e[4]!==r||e[5]!==g?(C={queryKey:r,queryFn:dt,enabled:g,staleTime:6e4,retry:!1},e[4]=r,e[5]=g,e[6]=C):C=e[6];const{data:_,isLoading:N,error:b}=Fe(C),I=_?.sites??[];let o;e[7]!==a?(o=w=>{w||(h(null),d("")),a(w)},e[7]=a,e[8]=o):o=e[8];const y=o;let A;e[9]!==T?(A=w=>w.name.toLowerCase().includes(T.toLowerCase())||w.domains?.[0]?.domain.toLowerCase().includes(T.toLowerCase()),e[9]=T,e[10]=A):A=e[10];const v=I.filter(A),E=!x||v.some(w=>w.name===x);let j;e[11]!==p||e[12]!==s.id?(j=async w=>{V("deco_site_import_started",{site_name:w});const G=await fetch("/api/deco-sites/connection",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({siteName:w,orgId:s.id})}),D=await G.json().catch(ft);if(!G.ok)throw new Error(D.error??`Failed to create connection (${G.status})`);const L=D.connId;if(!L)throw new Error("Server did not return a connection ID");const ge=D.icon??null,te=lt(w),Pe=await p.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:w,description:"Imported from deco.cx",pinned:!0,icon:ge??null,subtype:"project",metadata:{instructions:null,enabled_plugins:[],ui:{banner:null,bannerColor:"#22C55E",icon:ge,themeColor:"#22C55E",slug:te,pinnedViews:[{connectionId:L,toolName:"file_explorer",label:"Preview",icon:null},{connectionId:L,toolName:"fetch_assets",label:"Assets",icon:null},{connectionId:L,toolName:"get_monitor_data",label:"Monitor",icon:null},{connectionId:L,toolName:"list_pull_requests",label:"Pull Requests",icon:null},{connectionId:L,toolName:"list_releases",label:"Releases",icon:null}],layout:{defaultMainView:{type:"ext-apps",id:L,toolName:"file_explorer"}}}},connections:[{connection_id:L}]}}}),Ge=Pe.structuredContent??Pe;return{slug:te,virtualMcpId:Ge.item.id,connId:L,item:Ge.item}},e[11]=p,e[12]=s.id,e[13]=j):j=e[13];let S;e[14]!==p||e[15]!==y||e[16]!==l||e[17]!==s.id||e[18]!==m?(S=w=>{const{slug:G,virtualMcpId:D,item:L}=w;V("deco_site_import_succeeded",{site_name:L.title,virtual_mcp_id:D,slug:G}),m.setQueryData(ne.collectionItem(p,s.id,"","VIRTUAL_MCP",D),{item:L}),m.invalidateQueries({predicate:ge=>{const te=ge.queryKey;return te[1]===s.id&&te[3]==="collection"&&te[4]==="VIRTUAL_MCP"}}),m.invalidateQueries({queryKey:ne.projects(s.id)}),ie.success(`Imported ${G} from deco.cx`),y(!1),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),l(D)},e[14]=p,e[15]=y,e[16]=l,e[17]=s.id,e[18]=m,e[19]=S):S=e[19];let k;e[20]!==j||e[21]!==S?(k={mutationFn:j,onSuccess:S,onError:mt},e[20]=j,e[21]=S,e[22]=k):k=e[22];const U=He(k),F=le,se=ce,R="sm:max-w-[900px] p-0 gap-0 overflow-hidden";let P;e[23]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(de,{className:"sr-only",children:t.jsx(ue,{children:"Import from deco.cx"})}),e[23]=P):P=e[23];let H;e[24]!==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(Ae,{size:18})}),e[24]=c,e[25]=H):H=e[25];let me;e[26]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Import from deco.cx"}),e[26]=me):me=e[26];let B;e[27]!==H?(B=t.jsxs("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3",children:[H,me]}),e[27]=H,e[28]=B):B=e[28];let fe;e[29]===Symbol.for("react.memo_cache_sentinel")?(fe=w=>{w.key==="Escape"&&d("")},e[29]=fe):fe=e[29];let q;e[30]!==T?(q=t.jsx("div",{children:t.jsx(qe,{value:T,onChange:d,placeholder:"Search sites...",onKeyDown:fe})}),e[30]=T,e[31]=q):q=e[31];const Ke="pb-0 min-h-[300px]";let Q;e[32]!==N?(Q=N&&t.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"Loading sites..."}),e[32]=N,e[33]=Q):Q=e[33];const _e=!N&&!b&&I.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=!N&&I.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:[v.length===0&&t.jsxs("p",{className:"col-span-3 text-sm text-muted-foreground text-center py-8",children:["No sites match “",T,"”"]}),v.map(w=>{const G=w.domains?.find(ut)?.domain??w.domains?.[0]?.domain,D=x===w.name;return t.jsxs("button",{type:"button",onClick:()=>h(w.name),className:he("flex flex-col rounded-xl border overflow-hidden text-left transition-all cursor-pointer",D?"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:w.thumb_url?t.jsx("img",{src:w.thumb_url,alt:w.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:w.name}),G&&t.jsx("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:G})]})]},w.name)})]});let Y;e[34]!==Q||e[35]!==_e||e[36]!==Ce?(Y=t.jsxs("div",{className:Ke,children:[Q,_e,Ce]}),e[34]=Q,e[35]=_e,e[36]=Ce,e[37]=Y):Y=e[37];let K;e[38]!==y?(K=()=>y(!1),e[38]=y,e[39]=K):K=e[39];let W;e[40]!==U.isPending||e[41]!==K?(W=t.jsx(oe,{variant:"outline",onClick:K,disabled:U.isPending,children:"Cancel"}),e[40]=U.isPending,e[41]=K,e[42]=W):W=e[42];const Ie=!x||!E||U.isPending||N;let J;e[43]!==U||e[44]!==x?(J=()=>x&&U.mutate(x),e[43]=U,e[44]=x,e[45]=J):J=e[45];const Te=U.isPending?"Importing...":"Import";let X;e[46]!==Ie||e[47]!==J||e[48]!==Te?(X=t.jsx(oe,{disabled:Ie,onClick:J,children:Te}),e[46]=Ie,e[47]=J,e[48]=Te,e[49]=X):X=e[49];let Z;e[50]!==W||e[51]!==X?(Z=t.jsxs(tt,{className:"px-8 py-5 border-t border-border",children:[W,X]}),e[50]=W,e[51]=X,e[52]=Z):Z=e[52];let ee;e[53]!==se||e[54]!==P||e[55]!==B||e[56]!==q||e[57]!==Y||e[58]!==Z?(ee=t.jsxs(se,{className:R,children:[P,B,q,Y,Z]}),e[53]=se,e[54]=P,e[55]=B,e[56]=q,e[57]=Y,e[58]=Z,e[59]=ee):ee=e[59];let pe;return e[60]!==F||e[61]!==y||e[62]!==n||e[63]!==ee?(pe=t.jsx(F,{open:n,onOpenChange:y,children:ee}),e[60]=F,e[61]=y,e[62]=n,e[63]=ee,e[64]=pe):pe=e[64],pe}function ut(i){return i.production}function mt(i){V("deco_site_import_failed",{error:i instanceof Error?i.message:"Unknown error"}),ie.error("Import failed: "+(i instanceof Error?i.message:"Unknown error"))}function ft(){return{}}function Ye(i,e){const n=M.c(11),{org:a}=z();let c;n[0]!==a.id?(c=we.REGISTRY(a.id),n[0]=a.id,n[1]=c):c=n[1];const s=c;let l;n[2]!==a.id||n[3]!==s?(l={connectionId:s,orgId:a.id},n[2]=a.id,n[3]=s,n[4]=l):l=n[4];const m=$(l);let f;n[5]!==i?(f={name:i},n[5]=i,n[6]=f):f=n[6];const x=e?.enabled??!0;let h;return n[7]!==m||n[8]!==f||n[9]!==x?(h={client:m,toolName:"COLLECTION_REGISTRY_APP_GET",toolArguments:f,enabled:x,staleTime:3e5,select:pt},n[7]=m,n[8]=f,n[9]=x,n[10]=h):h=n[10],st(h)}function pt(i){return i.structuredContent?.item??null}const gt=["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 De(i){const e=M.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 l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Capabilities"}),e[1]=l):l=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs("div",{className:"space-y-2",children:[l,t.jsx("ul",{className:"space-y-1.5",children:gt.map(ht)})]}),e[2]=m):m=e[2];const f=a||c,x=a?"Setting up...":"Add Site Diagnostics";let h;return e[3]!==n||e[4]!==f||e[5]!==x?(h=t.jsxs("div",{className:"flex flex-col gap-6",children:[s,m,t.jsx(oe,{onClick:n,disabled:f,className:"w-full cursor-pointer",children:x})]}),e[3]=n,e[4]=f,e[5]=x,e[6]=h):h=e[6],h}function ht(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 Wt({open:i,onOpenChange:e,existingAgent:n}){const a=Re(),{org:c}=z(),s=Ne(),l=ke(),m=Ue(),f=$({connectionId:re,orgId:c.id}),x=Qe({client:f}),[h,T]=O.useState(!1),d=Be.find(I=>I.id==="site-diagnostics"),{data:u,isLoading:p}=Ye(d.appId,{enabled:i}),r=u?.title||u?.server?.title||u?.server?.name||d.title,g=u?.server?.icons?.[0]?.src??d.icon,C=u?.server?.description??null,_=t.jsx(Me,{icon:g,name:r,size:"sm"}),N=async()=>{if(u){if(n){e(!1),s(n.id);return}T(!0);try{const I=await x.mutateAsync({name:"COLLECTION_CONNECTIONS_LIST",arguments:{where:{field:["app_id"],operator:"eq",value:d.appId},limit:1,offset:0}});let o;const A=I?.structuredContent?.items?.find(E=>E.app_id===d.appId);if(A)o=A.id;else{const E=u.server?.remotes?.[0]?.url;if(!E)throw new Error("Registry item is missing a remote URL for site-diagnostics");o=(await l.create.mutateAsync({title:r,description:C,icon:u.server?.icons?.[0]?.src??d.icon,connection_type:"HTTP",connection_url:E,app_name:u.server?.name??"site-diagnostics",app_id:d.appId,metadata:{type:"site-diagnostics",source:"store",registry_item_id:d.appId,verified:!0}})).id}const v=await m.create.mutateAsync({title:r,description:C,icon:g,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"}}}}});V("agent_recruit_confirmed",{template_id:"site-diagnostics",agent_id:v.id}),e(!1),s(v.id)}catch(I){V("agent_recruit_failed",{template_id:"site-diagnostics",error:I instanceof Error?I.message:String(I)}),console.error("Failed to create Site Diagnostics agent:",I)}finally{T(!1)}}},b=`Add ${r}`;return a?t.jsx(Ee,{open:i,onOpenChange:e,children:t.jsxs(Se,{className:"h-[70dvh]",children:[t.jsx(Oe,{className:"px-4 pt-4 pb-4 shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[_,t.jsx(Le,{className:"text-xl font-semibold",children:b})]})}),t.jsx("div",{className:"flex flex-col flex-1 min-h-0 px-4 pb-8",children:t.jsx(De,{onRecruit:N,isRecruiting:h,isLoading:p})})]})}):t.jsx(le,{open:i,onOpenChange:e,children:t.jsxs(ce,{className:"sm:max-w-[500px] p-8",children:[t.jsx(de,{className:"mb-4",children:t.jsxs("div",{className:"flex items-center gap-3",children:[_,t.jsx(ue,{className:"text-xl font-semibold",children:b})]})}),t.jsx(De,{onRecruit:N,isRecruiting:h,isLoading:p})]})})}const xt="https://sites-lean-canva.decocache.com/api/mcp",Nt=["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 Ve(i){const e=M.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 l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsxs("div",{className:"space-y-2",children:[s,t.jsx("ul",{className:"space-y-1.5",children:Nt.map(_t)})]}),e[2]=l):l=e[2];const m=a?"Setting up...":"Add Lean Canvas";let f;return e[3]!==a||e[4]!==n||e[5]!==m?(f=t.jsxs("div",{className:"flex flex-col gap-6",children:[c,l,t.jsx(oe,{onClick:n,disabled:a,className:"w-full cursor-pointer",children:m})]}),e[3]=a,e[4]=n,e[5]=m,e[6]=f):f=e[6],f}function _t(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 Jt({open:i,onOpenChange:e,existingAgent:n}){const a=Re(),{org:c}=z(),s=Ne(),l=ke(),m=Ue(),f=$({connectionId:re,orgId:c.id}),x=Qe({client:f}),[h,T]=O.useState(!1),d=Be.find(g=>g.id==="lean-canvas"),u=t.jsx(Me,{icon:d.icon,name:d.title,size:"sm"}),p=async()=>{if(n){e(!1),s(n.id);return}T(!0);try{const g=await x.mutateAsync({name:"COLLECTION_CONNECTIONS_LIST",arguments:{where:{field:["app_id"],operator:"eq",value:"lean-canvas"},limit:1,offset:0}});let C;const N=g?.structuredContent?.items?.find(o=>o.app_id==="lean-canvas"),b=we.SELF(c.id);N?C=N.id:C=(await l.create.mutateAsync({title:d.title,description:"Lean Canvas business model builder",icon:d.icon,connection_type:"HTTP",connection_url:xt,app_name:"lean-canvas",app_id:"lean-canvas",configuration_state:{OBJECT_STORAGE:{__type:"@deco/object-storage",value:b}},metadata:{type:"lean-canvas",source:"store",verified:!0}})).id;const I=await m.create.mutateAsync({title:d.title,description:"Lean Canvas business model builder",icon:d.icon,status:"active",connections:[{connection_id:C,selected_tools:null,selected_resources:null,selected_prompts:null},{connection_id:b,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"}}}}});V("agent_recruit_confirmed",{template_id:"lean-canvas",agent_id:I.id}),e(!1),s(I.id)}catch(g){V("agent_recruit_failed",{template_id:"lean-canvas",error:g instanceof Error?g.message:String(g)}),console.error("Failed to create Lean Canvas agent:",g)}finally{T(!1)}},r=`Add ${d.title}`;return a?t.jsx(Ee,{open:i,onOpenChange:e,children:t.jsxs(Se,{className:"h-[70dvh]",children:[t.jsx(Oe,{className:"px-4 pt-4 pb-4 shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[u,t.jsx(Le,{className:"text-xl font-semibold",children:r})]})}),t.jsx("div",{className:"flex flex-col flex-1 min-h-0 px-4 pb-8",children:t.jsx(Ve,{onRecruit:p,isRecruiting:h})})]})}):t.jsx(le,{open:i,onOpenChange:e,children:t.jsxs(ce,{className:"sm:max-w-[500px] p-8",children:[t.jsx(de,{className:"mb-4",children:t.jsxs("div",{className:"flex items-center gap-3",children:[u,t.jsx(ue,{className:"text-xl font-semibold",children:r})]})}),t.jsx(Ve,{onRecruit:p,isRecruiting:h})]})})}const Ct=`<role>
|
|
1
|
+
import{e as M,s as z,o as ve,b as ze,r as O,K as ne,n as Fe,a as He,j as t,c as he,B as oe,t as V,z as ie,f as We,a0 as Je,a1 as Xe,az as je,C as Ze,l as xe,V as et}from"./index-C4KOdiuW.js";import{S as re,u as $,d as we,W as Be,j as ye}from"./constants-puxzW8Tt.js";import{u as Ne}from"./use-navigate-to-agent-Dg24R1Fh.js";import{c as ce,d as le,a as de,D as ue,b as tt}from"./dialog-CAwNCLeY.js";import{i as Ae}from"./RefreshCcw01-COL3SGLi.js";import{C as qe}from"./collection-search-BVB_BOr-.js";import{c as Ee,b as Se,D as Oe,a as Le}from"./drawer-Co7qhpAL.js";import{u as Re}from"./use-mobile-DvmdhkH5.js";import{I as Me}from"./integration-icon-B-ypwxt-.js";import{a as ke,u as nt}from"./use-connection-D0OofLda.js";import{u as st,d as Qe}from"./use-mcp-tools-D1ScXFUK.js";import{b as Ue,u as it}from"./use-virtual-mcp-D1fXVRo5.js";import{C as ot}from"./checkbox-CTi7T5x-.js";import{i as at}from"./Lock01-B-vCOiSg.js";import{F as rt}from"./agent-icon-DSfidSus.js";import{e as ct}from"./extract-connection-data-BFIbyEiI.js";function lt(i){return i.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}async function dt(){const i=await fetch("/api/deco-sites");if(!i.ok){const e=await i.json().catch(()=>({}));throw new Error(e.error??`Failed to load sites (${i.status})`)}return i.json()}function Kt(i){const e=M.c(65),{open:n,onOpenChange:a,onBack:c}=i,{org:s}=z(),l=Ne(),m=ve(),{data:f}=ze.useSession(),[x,h]=O.useState(null),[T,d]=O.useState("");let u;e[0]!==s.id?(u={connectionId:re,orgId:s.id},e[0]=s.id,e[1]=u):u=e[1];const p=$(u);let r;e[2]!==f?.user?.email?(r=ne.decoSites(f?.user?.email),e[2]=f?.user?.email,e[3]=r):r=e[3];const g=n&&!!f?.user?.email;let C;e[4]!==r||e[5]!==g?(C={queryKey:r,queryFn:dt,enabled:g,staleTime:6e4,retry:!1},e[4]=r,e[5]=g,e[6]=C):C=e[6];const{data:_,isLoading:N,error:b}=Fe(C),I=_?.sites??[];let o;e[7]!==a?(o=w=>{w||(h(null),d("")),a(w)},e[7]=a,e[8]=o):o=e[8];const y=o;let A;e[9]!==T?(A=w=>w.name.toLowerCase().includes(T.toLowerCase())||w.domains?.[0]?.domain.toLowerCase().includes(T.toLowerCase()),e[9]=T,e[10]=A):A=e[10];const v=I.filter(A),E=!x||v.some(w=>w.name===x);let j;e[11]!==p||e[12]!==s.id?(j=async w=>{V("deco_site_import_started",{site_name:w});const G=await fetch("/api/deco-sites/connection",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({siteName:w,orgId:s.id})}),D=await G.json().catch(ft);if(!G.ok)throw new Error(D.error??`Failed to create connection (${G.status})`);const L=D.connId;if(!L)throw new Error("Server did not return a connection ID");const ge=D.icon??null,te=lt(w),Pe=await p.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:w,description:"Imported from deco.cx",pinned:!0,icon:ge??null,subtype:"project",metadata:{instructions:null,enabled_plugins:[],ui:{banner:null,bannerColor:"#22C55E",icon:ge,themeColor:"#22C55E",slug:te,pinnedViews:[{connectionId:L,toolName:"file_explorer",label:"Preview",icon:null},{connectionId:L,toolName:"fetch_assets",label:"Assets",icon:null},{connectionId:L,toolName:"get_monitor_data",label:"Monitor",icon:null},{connectionId:L,toolName:"list_pull_requests",label:"Pull Requests",icon:null},{connectionId:L,toolName:"list_releases",label:"Releases",icon:null}],layout:{defaultMainView:{type:"ext-apps",id:L,toolName:"file_explorer"}}}},connections:[{connection_id:L}]}}}),Ge=Pe.structuredContent??Pe;return{slug:te,virtualMcpId:Ge.item.id,connId:L,item:Ge.item}},e[11]=p,e[12]=s.id,e[13]=j):j=e[13];let S;e[14]!==p||e[15]!==y||e[16]!==l||e[17]!==s.id||e[18]!==m?(S=w=>{const{slug:G,virtualMcpId:D,item:L}=w;V("deco_site_import_succeeded",{site_name:L.title,virtual_mcp_id:D,slug:G}),m.setQueryData(ne.collectionItem(p,s.id,"","VIRTUAL_MCP",D),{item:L}),m.invalidateQueries({predicate:ge=>{const te=ge.queryKey;return te[1]===s.id&&te[3]==="collection"&&te[4]==="VIRTUAL_MCP"}}),m.invalidateQueries({queryKey:ne.projects(s.id)}),ie.success(`Imported ${G} from deco.cx`),y(!1),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),l(D)},e[14]=p,e[15]=y,e[16]=l,e[17]=s.id,e[18]=m,e[19]=S):S=e[19];let k;e[20]!==j||e[21]!==S?(k={mutationFn:j,onSuccess:S,onError:mt},e[20]=j,e[21]=S,e[22]=k):k=e[22];const U=He(k),F=le,se=ce,R="sm:max-w-[900px] p-0 gap-0 overflow-hidden";let P;e[23]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(de,{className:"sr-only",children:t.jsx(ue,{children:"Import from deco.cx"})}),e[23]=P):P=e[23];let H;e[24]!==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(Ae,{size:18})}),e[24]=c,e[25]=H):H=e[25];let me;e[26]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Import from deco.cx"}),e[26]=me):me=e[26];let B;e[27]!==H?(B=t.jsxs("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3",children:[H,me]}),e[27]=H,e[28]=B):B=e[28];let fe;e[29]===Symbol.for("react.memo_cache_sentinel")?(fe=w=>{w.key==="Escape"&&d("")},e[29]=fe):fe=e[29];let q;e[30]!==T?(q=t.jsx("div",{children:t.jsx(qe,{value:T,onChange:d,placeholder:"Search sites...",onKeyDown:fe})}),e[30]=T,e[31]=q):q=e[31];const Ke="pb-0 min-h-[300px]";let Q;e[32]!==N?(Q=N&&t.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"Loading sites..."}),e[32]=N,e[33]=Q):Q=e[33];const _e=!N&&!b&&I.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=!N&&I.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:[v.length===0&&t.jsxs("p",{className:"col-span-3 text-sm text-muted-foreground text-center py-8",children:["No sites match “",T,"”"]}),v.map(w=>{const G=w.domains?.find(ut)?.domain??w.domains?.[0]?.domain,D=x===w.name;return t.jsxs("button",{type:"button",onClick:()=>h(w.name),className:he("flex flex-col rounded-xl border overflow-hidden text-left transition-all cursor-pointer",D?"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:w.thumb_url?t.jsx("img",{src:w.thumb_url,alt:w.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:w.name}),G&&t.jsx("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:G})]})]},w.name)})]});let Y;e[34]!==Q||e[35]!==_e||e[36]!==Ce?(Y=t.jsxs("div",{className:Ke,children:[Q,_e,Ce]}),e[34]=Q,e[35]=_e,e[36]=Ce,e[37]=Y):Y=e[37];let K;e[38]!==y?(K=()=>y(!1),e[38]=y,e[39]=K):K=e[39];let W;e[40]!==U.isPending||e[41]!==K?(W=t.jsx(oe,{variant:"outline",onClick:K,disabled:U.isPending,children:"Cancel"}),e[40]=U.isPending,e[41]=K,e[42]=W):W=e[42];const Ie=!x||!E||U.isPending||N;let J;e[43]!==U||e[44]!==x?(J=()=>x&&U.mutate(x),e[43]=U,e[44]=x,e[45]=J):J=e[45];const Te=U.isPending?"Importing...":"Import";let X;e[46]!==Ie||e[47]!==J||e[48]!==Te?(X=t.jsx(oe,{disabled:Ie,onClick:J,children:Te}),e[46]=Ie,e[47]=J,e[48]=Te,e[49]=X):X=e[49];let Z;e[50]!==W||e[51]!==X?(Z=t.jsxs(tt,{className:"px-8 py-5 border-t border-border",children:[W,X]}),e[50]=W,e[51]=X,e[52]=Z):Z=e[52];let ee;e[53]!==se||e[54]!==P||e[55]!==B||e[56]!==q||e[57]!==Y||e[58]!==Z?(ee=t.jsxs(se,{className:R,children:[P,B,q,Y,Z]}),e[53]=se,e[54]=P,e[55]=B,e[56]=q,e[57]=Y,e[58]=Z,e[59]=ee):ee=e[59];let pe;return e[60]!==F||e[61]!==y||e[62]!==n||e[63]!==ee?(pe=t.jsx(F,{open:n,onOpenChange:y,children:ee}),e[60]=F,e[61]=y,e[62]=n,e[63]=ee,e[64]=pe):pe=e[64],pe}function ut(i){return i.production}function mt(i){V("deco_site_import_failed",{error:i instanceof Error?i.message:"Unknown error"}),ie.error("Import failed: "+(i instanceof Error?i.message:"Unknown error"))}function ft(){return{}}function Ye(i,e){const n=M.c(11),{org:a}=z();let c;n[0]!==a.id?(c=we.REGISTRY(a.id),n[0]=a.id,n[1]=c):c=n[1];const s=c;let l;n[2]!==a.id||n[3]!==s?(l={connectionId:s,orgId:a.id},n[2]=a.id,n[3]=s,n[4]=l):l=n[4];const m=$(l);let f;n[5]!==i?(f={name:i},n[5]=i,n[6]=f):f=n[6];const x=e?.enabled??!0;let h;return n[7]!==m||n[8]!==f||n[9]!==x?(h={client:m,toolName:"COLLECTION_REGISTRY_APP_GET",toolArguments:f,enabled:x,staleTime:3e5,select:pt},n[7]=m,n[8]=f,n[9]=x,n[10]=h):h=n[10],st(h)}function pt(i){return i.structuredContent?.item??null}const gt=["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 De(i){const e=M.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 l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Capabilities"}),e[1]=l):l=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs("div",{className:"space-y-2",children:[l,t.jsx("ul",{className:"space-y-1.5",children:gt.map(ht)})]}),e[2]=m):m=e[2];const f=a||c,x=a?"Setting up...":"Add Site Diagnostics";let h;return e[3]!==n||e[4]!==f||e[5]!==x?(h=t.jsxs("div",{className:"flex flex-col gap-6",children:[s,m,t.jsx(oe,{onClick:n,disabled:f,className:"w-full cursor-pointer",children:x})]}),e[3]=n,e[4]=f,e[5]=x,e[6]=h):h=e[6],h}function ht(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 Wt({open:i,onOpenChange:e,existingAgent:n}){const a=Re(),{org:c}=z(),s=Ne(),l=ke(),m=Ue(),f=$({connectionId:re,orgId:c.id}),x=Qe({client:f}),[h,T]=O.useState(!1),d=Be.find(I=>I.id==="site-diagnostics"),{data:u,isLoading:p}=Ye(d.appId,{enabled:i}),r=u?.title||u?.server?.title||u?.server?.name||d.title,g=u?.server?.icons?.[0]?.src??d.icon,C=u?.server?.description??null,_=t.jsx(Me,{icon:g,name:r,size:"sm"}),N=async()=>{if(u){if(n){e(!1),s(n.id);return}T(!0);try{const I=await x.mutateAsync({name:"COLLECTION_CONNECTIONS_LIST",arguments:{where:{field:["app_id"],operator:"eq",value:d.appId},limit:1,offset:0}});let o;const A=I?.structuredContent?.items?.find(E=>E.app_id===d.appId);if(A)o=A.id;else{const E=u.server?.remotes?.[0]?.url;if(!E)throw new Error("Registry item is missing a remote URL for site-diagnostics");o=(await l.create.mutateAsync({title:r,description:C,icon:u.server?.icons?.[0]?.src??d.icon,connection_type:"HTTP",connection_url:E,app_name:u.server?.name??"site-diagnostics",app_id:d.appId,metadata:{type:"site-diagnostics",source:"store",registry_item_id:d.appId,verified:!0}})).id}const v=await m.create.mutateAsync({title:r,description:C,icon:g,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"}}}}});V("agent_recruit_confirmed",{template_id:"site-diagnostics",agent_id:v.id}),e(!1),s(v.id)}catch(I){V("agent_recruit_failed",{template_id:"site-diagnostics",error:I instanceof Error?I.message:String(I)}),console.error("Failed to create Site Diagnostics agent:",I)}finally{T(!1)}}},b=`Add ${r}`;return a?t.jsx(Ee,{open:i,onOpenChange:e,children:t.jsxs(Se,{className:"h-[70dvh]",children:[t.jsx(Oe,{className:"px-4 pt-4 pb-4 shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[_,t.jsx(Le,{className:"text-xl font-semibold",children:b})]})}),t.jsx("div",{className:"flex flex-col flex-1 min-h-0 px-4 pb-8",children:t.jsx(De,{onRecruit:N,isRecruiting:h,isLoading:p})})]})}):t.jsx(le,{open:i,onOpenChange:e,children:t.jsxs(ce,{className:"sm:max-w-[500px] p-8",children:[t.jsx(de,{className:"mb-4",children:t.jsxs("div",{className:"flex items-center gap-3",children:[_,t.jsx(ue,{className:"text-xl font-semibold",children:b})]})}),t.jsx(De,{onRecruit:N,isRecruiting:h,isLoading:p})]})})}const xt="https://sites-lean-canva.decocache.com/api/mcp",Nt=["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 Ve(i){const e=M.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 l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsxs("div",{className:"space-y-2",children:[s,t.jsx("ul",{className:"space-y-1.5",children:Nt.map(_t)})]}),e[2]=l):l=e[2];const m=a?"Setting up...":"Add Lean Canvas";let f;return e[3]!==a||e[4]!==n||e[5]!==m?(f=t.jsxs("div",{className:"flex flex-col gap-6",children:[c,l,t.jsx(oe,{onClick:n,disabled:a,className:"w-full cursor-pointer",children:m})]}),e[3]=a,e[4]=n,e[5]=m,e[6]=f):f=e[6],f}function _t(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 Jt({open:i,onOpenChange:e,existingAgent:n}){const a=Re(),{org:c}=z(),s=Ne(),l=ke(),m=Ue(),f=$({connectionId:re,orgId:c.id}),x=Qe({client:f}),[h,T]=O.useState(!1),d=Be.find(g=>g.id==="lean-canvas"),u=t.jsx(Me,{icon:d.icon,name:d.title,size:"sm"}),p=async()=>{if(n){e(!1),s(n.id);return}T(!0);try{const g=await x.mutateAsync({name:"COLLECTION_CONNECTIONS_LIST",arguments:{where:{field:["app_id"],operator:"eq",value:"lean-canvas"},limit:1,offset:0}});let C;const N=g?.structuredContent?.items?.find(o=>o.app_id==="lean-canvas"),b=we.SELF(c.id);N?C=N.id:C=(await l.create.mutateAsync({title:d.title,description:"Lean Canvas business model builder",icon:d.icon,connection_type:"HTTP",connection_url:xt,app_name:"lean-canvas",app_id:"lean-canvas",configuration_state:{OBJECT_STORAGE:{__type:"@deco/object-storage",value:b}},metadata:{type:"lean-canvas",source:"store",verified:!0}})).id;const I=await m.create.mutateAsync({title:d.title,description:"Lean Canvas business model builder",icon:d.icon,status:"active",connections:[{connection_id:C,selected_tools:null,selected_resources:null,selected_prompts:null},{connection_id:b,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"}}}}});V("agent_recruit_confirmed",{template_id:"lean-canvas",agent_id:I.id}),e(!1),s(I.id)}catch(g){V("agent_recruit_failed",{template_id:"lean-canvas",error:g instanceof Error?g.message:String(g)}),console.error("Failed to create Lean Canvas agent:",g)}finally{T(!1)}},r=`Add ${d.title}`;return a?t.jsx(Ee,{open:i,onOpenChange:e,children:t.jsxs(Se,{className:"h-[70dvh]",children:[t.jsx(Oe,{className:"px-4 pt-4 pb-4 shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[u,t.jsx(Le,{className:"text-xl font-semibold",children:r})]})}),t.jsx("div",{className:"flex flex-col flex-1 min-h-0 px-4 pb-8",children:t.jsx(Ve,{onRecruit:p,isRecruiting:h})})]})}):t.jsx(le,{open:i,onOpenChange:e,children:t.jsxs(ce,{className:"sm:max-w-[500px] p-8",children:[t.jsx(de,{className:"mb-4",children:t.jsxs("div",{className:"flex items-center gap-3",children:[u,t.jsx(ue,{className:"text-xl font-semibold",children:r})]})}),t.jsx(Ve,{onRecruit:p,isRecruiting:h})]})})}const Ct=`<role>
|
|
2
2
|
You are the Agent Manager. You create, configure, and maintain agents (Virtual MCPs) in this workspace.
|
|
3
3
|
</role>
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as h}from"./index-
|
|
1
|
+
import{r as h}from"./index-C4KOdiuW.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bb as _}from"./index-
|
|
1
|
+
import{bb as _}from"./index-C4KOdiuW.js";var b={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===S||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,b.exports=I()),b.exports}var g=C();const h=_(g);export{h as R,g as r};
|
|
@@ -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-D0WCyAas.js","assets/ChevronDown-DmIUGcFl.js","assets/login-zoPe2LeA.js","assets/input-DrxCctpM.js","assets/reset-password-KFV68Ks-.js","assets/shell-layout-BUuy9S_L.js","assets/dialog-CAwNCLeY.js","assets/X-Bgfd1eh0.js","assets/required-auth-layout-DAzAQKek.js","assets/use-tasks-BtGSWUvO.js","assets/use-collections-BgcKlAB6.js","assets/constants-puxzW8Tt.js","assets/use-organization-settings-C1HGFbFZ.js","assets/use-org-sso-D0nq7yh3.js","assets/Lock01-B-vCOiSg.js","assets/onboarding-C7clLSW8.js","assets/label-qumw5kFa.js","assets/Users03-DfcHW1oz.js","assets/CheckCircle-BIi7toDZ.js","assets/Palette-CqW3vcqn.js","assets/index-SoZ9vkB3.js","assets/chat-context-KGI8H-cg.js","assets/use-virtual-mcp-D1fXVRo5.js","assets/use-ai-providers-CiKg1J6I.js","assets/use-decopilot-events-ClmBUkq4.js","assets/create-sse-subscription-CxkOgzKf.js","assets/task-status-DhB__zcV.js","assets/agent-icon-DSfidSus.js","assets/AlertCircle-De2C9wZC.js","assets/Tool01-B5mm7tYF.js","assets/XClose-BQJEwJET.js","assets/RefreshCcw01-COL3SGLi.js","assets/ArrowNarrowLeft-bSu4Kz2F.js","assets/XCircle-DUufUsoh.js","assets/ArrowUpRight-DT3QLsvt.js","assets/ZapSquare-BFGlmWLE.js","assets/ChevronRight-CIh2nJ4L.js","assets/ChevronUp-BYOoc7wr.js","assets/DotsVertical-CDho1dav.js","assets/Container-BerLGLgK.js","assets/Star01-BhFELsp4.js","assets/SearchMd-BjteSZXQ.js","assets/index-mcaIOSGF.js","assets/use-mobile-DvmdhkH5.js","assets/LinkExternal01-CcTNZj2P.js","assets/Sun-DY_ADcda.js","assets/Play-CrdOw1Iv.js","assets/Plus-Zv0hv0Vg.js","assets/Settings02-w5kxVqcK.js","assets/Shield01-DodcxEya.js","assets/Trash01-DuRnWn1E.js","assets/User01-CQoJwY3u.js","assets/Zap-CDLB-lxK.js","assets/scroll-area-BlUv7zcB.js","assets/select-W23RccQR.js","assets/use-copy-DU9Tefqq.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/content-blocks-o63cs2vh.js","assets/types-Cj_XQKsH.js","assets/integration-icon-B-ypwxt-.js","assets/drawer-Co7qhpAL.js","assets/collection-search-BVB_BOr-.js","assets/tabs-Ds3m3VsK.js","assets/form-FdRX5pG1.js","assets/dropdown-menu-CiJ99ly5.js","assets/toggle-group-DiaVR0jE.js","assets/select-model-BLp2y3cG.js","assets/checkbox-CTi7T5x-.js","assets/skeleton-BKGbLlxs.js","assets/ai-providers-logos-D6a8kmGH.js","assets/settings-section-CKsKmGWh.js","assets/card-B6kxnNb0.js","assets/switch-DNv5M4ZB.js","assets/avatar-UVBUP_wG.js","assets/alert-dialog-rItivTOb.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/accordion-zVtel299.js","assets/use-connection-D0OofLda.js","assets/question-004-sINsf4GQ.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-MQF8JSkw.js","assets/use-registry-connections-DzXuLNdG.js","assets/useInfiniteQuery-H3t_tPfZ.js","assets/infiniteQueryObserver-DS8PEXT3.js","assets/extract-connection-data-BFIbyEiI.js","assets/constants-CMKJaZow.js","assets/collections-Czgjy6V_.js","assets/collection-tabs-CczYJtOJ.js","assets/badge-nX1O9Qf1.js","assets/textarea-D8dnqUDV.js","assets/connection-form-helpers-DMZ5iUjm.js","assets/use-infinite-scroll-8BgvLQv0.js","assets/useSuspenseInfiniteQuery-BAnABuH7.js","assets/github-repo-picker-QAmOQiwy.js","assets/use-navigate-to-agent-Dg24R1Fh.js","assets/use-mcp-tools-D1ScXFUK.js","assets/use-create-virtual-mcp-DAB2T3vN.js","assets/command-C1riJax0.js","assets/index-DcnXzgrr.js","assets/popover-BdnMz9At.js","assets/empty-state-Bio4MAFs.js","assets/index-BhZeUpb1.js","assets/collection-search-DHiaU-oT.js","assets/use-status-sounds-BC_OJyRi.js","assets/user-DAufXs4h.js","assets/tools-list-CVgYt-8F.js","assets/view-mode-toggle-LshbVzEB.js","assets/automation-list-row-lCQuQb2Q.js","assets/search-input-CbSuDoZL.js","assets/index-DDGTF8rc.css","assets/settings-layout-b1Br3189.js","assets/connections-Qfmncrnr.js","assets/collection-display-button-DtLA-_Qf.js","assets/use-delete-connection-D8siAEqJ.js","assets/use-list-state-BEoAeszV.js","assets/use-view-mode-BnyE0_EO.js","assets/connection-detail-Kmft9f88.js","assets/index-L8A_STvx.js","assets/index-DdEYcoGw.js","assets/index-BiFex3ig.js","assets/use-members-BzwLO50s.js","assets/layout-BHQW603q.js","assets/monitoring-stats-row-DoiRCC4f.js","assets/collection-detail-D_GfRl2U.js","assets/index-DFoLVe7P.js","assets/monaco-editor-C80vYwBa.js","assets/empty-state-DIogXxVN.js","assets/index-mWgQ602E.js","assets/table-CaLu-Lo8.js","assets/general-Cc1ql58y.js","assets/domain-settings-ZwlKCgS9.js","assets/features-QRbg1n3B.js","assets/brand-context-7PuYXROc.js","assets/ai-providers-t0YXr9kj.js","assets/members-BrCn_crL.js","assets/collection-table-wrapper-Cqd6KCzo.js","assets/use-organization-roles-Dl9VoSUw.js","assets/roles-CMvkTrhY.js","assets/sso-aoLg93_m.js","assets/profile-BZlcE9Y0.js","assets/store-DGgyYg8C.js","assets/workflow-Dt2CIq6i.js","assets/workflow-detail-BZ0JnpLY.js","assets/org-plugin-layout-Csh0KNUp.js","assets/plugin-layout-BZBMQxU7.js","assets/agents-list-vffTTABq.js","assets/automations-C7xJbJSO.js","assets/dynamic-plugin-layout-SGNBzqAT.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function U$(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 z$="modulepreload",F$=function(e){return"/"+e},Q2={},Pt=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=F$(f),f in Q2)return;Q2[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":z$,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 Qae=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 X2;function B$(){if(X2)return Bu;X2=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 J2;function V$(){return J2||(J2=1,__.exports=B$()),__.exports}var T=V$(),y_={exports:{}},Vu={},b_={exports:{}},w_={};var eO;function q$(){return eO||(eO=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,z=q[D];if(0>i(V,ee))D<Q&&0>i(z,V)?(q[ae]=z,q[D]=ee,ae=D):(q[ae]=V,q[K]=ee,ae=K);else if(D<Q&&0>i(z,ee))q[ae]=z,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 tO;function H$(){return tO||(tO=1,b_.exports=q$()),b_.exports}var S_={exports:{}},rt={};var nO;function G$(){if(nO)return rt;nO=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,z){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,z)}}if(fe)return z=z(k),fe=D===""?"."+Z(k,0):D,O(z)?(V="",fe!=null&&(V=fe.replace(U,"$&/")+"/"),q(z,K,V,"",function(Ue){return Ue})):z!=null&&(j(z)&&(z=H(z,V+(z.key==null||k&&k.key===z.key?"":(""+z.key).replace(U,"$&/")+"/")+fe)),K.push(z)),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,z);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,z);else if(X==="object"){if(typeof k.then=="function")return q(re(k),K,V,D,z);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=[],z=0;return q(k,D,"","",function(X){return K.call(V,X,z++)}),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),z=k.key;if(K!=null)for(X in K.key!==void 0&&(z=""+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,z,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,z={},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"&&(z[D]=K[D]);var fe=arguments.length-2;if(fe===1)z.children=V;else if(1<fe){for(var pe=Array(fe),xe=0;xe<fe;xe++)pe[xe]=arguments[xe+2];z.children=pe}if(k&&k.defaultProps)for(D in fe=k.defaultProps,fe)z[D]===void 0&&(z[D]=fe[D]);return L(k,X,z)},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(),z=M.S;z!==null&&z(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 rO;function ca(){return rO||(rO=1,S_.exports=G$()),S_.exports}var E_={exports:{}},yr={};var iO;function K$(){if(iO)return yr;iO=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 oO;function AM(){if(oO)return E_.exports;oO=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=K$(),E_.exports}var sO;function Z$(){if(sO)return Vu;sO=1;var e=H$(),t=ca(),n=AM();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),z=k(null),X=k(null),fe=k(null);function pe(o,a){switch(V(X,a),V(z,o),V(D,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?b2(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=b2(a),o=w2(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(z),K(X)}function Ue(o){o.memoizedState!==null&&V(fe,o);var a=D.current,u=w2(a,o.type);a!==u&&(V(z,o),V(D,u))}function Y(o){z.current===o&&(K(D),K(z)),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 Qse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:HM.publicConfig(),queryFn:Yse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=qM(r),[s]=Kse();i.internalUrl&&jse(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Wse(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 Xse=new yj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function Jse(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(fH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx($D,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(bj,{client:Xse,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Qse,{children:T.jsx(Dj,{children:T.jsx(zee,{children:T.jsx(Yne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function eae(...e){return FP(pw(e))}const tae=_3("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",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=eae(tae({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 TM="__mesh_chunk_reload_ts";function CM(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 tce 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),ND(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 nae 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=CM(t);if(ND(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(TM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(TM,String(s)),window.location.reload())}render(){return this.state.hasError&&CM(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(LD,{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 rae="MCP Workflows",iae="Create workflows using your MCP tools",oae=I.lazy(()=>Pt(()=>import("./plugin-header-BfIRczN-.js"),__vite__mapDeps([0,1]))),sae=I.lazy(()=>Pt(()=>import("./plugin-empty-state-ClLmoORa.js"),[])),aae={id:rae,description:iae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(oae,{...e}),renderEmptyState:()=>T.jsx(sae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(kD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},lae=[aae],ma=e7({component:()=>T.jsx(nae,{children:T.jsx(Jse,{children:T.jsx(I.Suspense,{fallback:T.jsx($D,{}),children:T.jsx(pP,{})})})})}),cae=St({getParentRoute:()=>ma,path:"/login",component:$t(()=>Pt(()=>import("./login-aCzD1yj3.js"),__vite__mapDeps([2,3]))),validateSearch:dl(()=>Ee({next:F().optional(),client_id:F().optional(),redirect_uri:F().optional(),response_type:F().optional(),state:F().optional(),scope:F().optional(),code_challenge:F().optional(),code_challenge_method:F().optional()}))}),uae=St({getParentRoute:()=>ma,path:"/reset-password",component:$t(()=>Pt(()=>import("./reset-password-CIaSK0Sp.js"),__vite__mapDeps([4,3]))),validateSearch:dl(()=>Ee({token:F().optional(),error:F().optional()}))}),dae=St({getParentRoute:()=>ma,path:"/auth/$pathname",component:$t(()=>Pt(()=>import("./auth-catchall-BgWDU-In.js"),[]))}),fae=St({getParentRoute:()=>ma,path:"/oauth/callback",component:$t(()=>Pt(()=>import("./oauth-callback-Bgqii5KN.js"),[]))}),hae=St({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:$t(()=>Pt(()=>import("./oauth-callback-ai-provider-BM8V8XSD.js"),[]))}),iE=St({getParentRoute:()=>ma,id:"shell",component:$t(()=>Pt(()=>import("./shell-layout-CcnEVz8S.js").then(e=>e.s),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14])))}),pae=St({getParentRoute:()=>iE,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 Xa({to:"/$org",params:{org:t}});localStorage.removeItem(Rg.lastOrgSlug())}const n=e[0];throw Xa(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),mae=St({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(e&&e.length>0)throw Xa({to:"/"})},component:$t(()=>Pt(()=>import("./onboarding-BstJNU1_.js"),__vite__mapDeps([15,8,3,16,17,18,19])))}),oE=St({getParentRoute:()=>iE,path:"/$org",component:$t(()=>Pt(()=>import("./org-layout-Cbl-bpnq.js"),[]))}),av=St({getParentRoute:()=>oE,id:"agent-shell",component:$t(()=>Pt(()=>import("./index-CxNPMl3z.js"),__vite__mapDeps([20,21,11,22,10,23,24,25,9,12,26,27,28,29,30,31,32,33,34,35,17,18,1,36,37,38,39,40,19,41,42,43,7,44,14,45,46,47,48,49,50,51,52,53,54,55,56,6,57,58,5,8,13,59,60,61,62,63,16,3,64,65,66,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,107,108,109,110])))}),gae=Ee({virtualmcpid:F().optional(),tab:F().optional(),main:F().optional(),id:F().optional(),toolName:F().optional(),tasks:wt().optional(),mainOpen:wt().optional(),chat:wt().optional()}),R6=St({getParentRoute:()=>av,path:"/$taskId",validateSearch:gae,component:()=>null}),vae=St({getParentRoute:()=>av,path:"/",beforeLoad:({params:e})=>{const t=crypto.randomUUID();throw Xa({to:"/$org/$taskId",params:{org:e.org,taskId:t}})},component:()=>null}),Pn=St({getParentRoute:()=>oE,path:"/settings",component:$t(()=>Pt(()=>import("./settings-layout-7GZHLZ6d.js"),__vite__mapDeps([111,42,43,7,32,35,17,36,14,49,51,52,104,79,24,25])))}),_ae=St({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Xa({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),yae=St({getParentRoute:()=>Pn,path:"/connections",component:$t(()=>Pt(()=>import("./connections-BhrD0IQp.js"),__vite__mapDeps([112,86,87,113,64,1,36,38,30,43,107,89,109,41,88,81,80,82,78,10,11,12,83,84,85,71,59,39,27,28,29,31,32,33,34,35,17,18,37,40,19,42,7,44,14,45,46,47,48,49,50,51,52,101,114,74,92,115,116,67,6,60,63,16,3,54,90,22,91]))),validateSearch:dl(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),bae=St({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:$t(()=>Pt(()=>import("./connection-detail-BAaKFeAe.js"),__vite__mapDeps([117,86,87,101,91,3,47,50,118,11,96,27,28,29,30,31,32,33,34,35,17,18,1,36,37,38,39,40,19,41,42,43,7,44,14,45,46,48,49,51,52,78,10,119,120,85,82,12,54,99,100,22,97,95,106,89,58,121,73,62,59,63,16,114,74,122,123,80,61,71,64]))),validateSearch:dl(()=>Ee({tab:F().optional()}))}),wae=St({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:$t(()=>Pt(()=>import("./collection-detail-miARxdMD.js"),__vite__mapDeps([124,101,10,11,63,16,3,90,122,42,43,7,125,119,87,120,22,126,53,54,1,37,77,27,28,29,30,31,32,33,34,35,17,18,36,38,39,40,19,41,44,14,45,46,47,48,49,50,51,52,89,107,78,96,6,64,59,102,127,25,58,118,85,86,82,12,99,100,97,95,80,106,57,21,23,24,9,5,8,13]))),validateSearch:dl(()=>Ee({replayId:F().optional()}))}),Sae=St({getParentRoute:()=>Pn,path:"/monitor",component:$t(()=>Pt(()=>import("./index-DskwxDSD.js"),__vite__mapDeps([128,109,41,42,43,7,101,89,100,1,33,46,27,28,29,30,31,32,34,35,17,18,36,37,38,39,40,19,44,14,45,47,48,49,50,51,52,126,53,54,121,78,10,11,22,3,67,98,99,90,88,72,16,59,73,71,123,120,96,80,93,84,129,92,83,26,55,56,6,57,58,21,23,24,25,9,12,5,8,13]))),validateSearch:dl(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:F().default("now-30m"),to:F().default("now"),connectionId:Ie(F()).optional().default([]),virtualMcpId:Ie(F()).optional().default([]),tool:F().default(""),status:dn(["all","success","errors"]).default("all"),search:F().default(""),page:wt().optional(),streaming:It().default(!0),propertyFilters:F().default(""),hideSystem:It().default(!1)}))}),Eae=St({getParentRoute:()=>Pn,path:"/general",component:$t(()=>Pt(()=>import("./general-BSxOk1qz.js"),__vite__mapDeps([130,42,43,7,73,51,3,70,71,34,131,76,11,72,103,41,22,10,100,68,27,28,29,30,31,32,33,35,17,18,1,36,37,38,39,40,19,44,14,45,46,47,48,49,50,52,59,12])))}),xae=St({getParentRoute:()=>Pn,path:"/features",component:$t(()=>Pt(()=>import("./features-DyBQ3hAD.js"),__vite__mapDeps([132,42,43,7,12,11,72,39,70,71,34])))}),Rae=St({getParentRoute:()=>Pn,path:"/brand-context",component:$t(()=>Pt(()=>import("./brand-context-C1u8HhCR.js"),__vite__mapDeps([133,11,1,36,40,44,47,50,7,52,74,3,90,42,43,76])))}),Oae=St({getParentRoute:()=>Pn,path:"/ai-providers",component:$t(()=>Pt(()=>import("./ai-providers-CC7AZG4I.js"),__vite__mapDeps([134,66,67,1,3,6,7,60,43,54,37,68,29,31,41,48,23,11,21,22,10,24,25,9,12,69,52,28,18,50,42,70,71,34,72,65,73,51,74,75,56,76])))}),Tae=St({getParentRoute:()=>Pn,path:"/members",component:$t(()=>Pt(()=>import("./members-CcYrdU9b.js"),__vite__mapDeps([135,113,64,1,36,38,30,43,107,89,109,41,42,7,136,129,101,6,63,16,54,37,90,137,121,11,74,73,51,71,49,50,67,98,99,100,47])))}),Cae=St({getParentRoute:()=>Pn,path:"/roles",component:$t(()=>Pt(()=>import("./roles-BquZRSxB.js"),__vite__mapDeps([138,137,89,74,64,1,36,38,14,47,50,136,129,30,42,43,7,101,109,41,69,59,39,27,28,29,31,32,33,34,35,17,18,37,40,19,44,45,46,48,49,51,52,92,67,93,84,11,61,121,78,10,23,73,72]))),validateSearch:dl(()=>Ee({role:F().optional()}))}),Aae=St({getParentRoute:()=>Pn,path:"/sso",component:$t(()=>Pt(()=>import("./sso-BwOkQ_ww.js"),__vite__mapDeps([139,131,76,11,72,70,71,34,42,43,7,3,13,50])))}),Iae=St({getParentRoute:()=>Pn,path:"/profile",component:$t(()=>Pt(()=>import("./profile--BcrwHZB.js"),__vite__mapDeps([140,42,43,7,73,51,72,54,1,37,65,3,45,46,79,102,70,71,34])))}),Mae=St({getParentRoute:()=>Pn,path:"/store",component:$t(()=>Pt(()=>import("./store-R02TTTNN.js"),__vite__mapDeps([141,28,36,47,50,3,72,68,73,51,100,78,10,11,42,43,7,82,12,70,71,34])))}),Pae=St({getParentRoute:()=>Pn,path:"/registry",component:$t(()=>Pt(()=>import("./registry-CDfXAwnP.js"),[]))}),Nae=St({getParentRoute:()=>Pn,path:"/store/registry",component:$t(()=>Pt(()=>import("./store-registry-DdbRGyFG.js"),[]))}),kae=St({getParentRoute:()=>Pn,path:"/workflows",component:$t(()=>Pt(()=>import("./workflow-q8JEUlLD.js"),__vite__mapDeps([142,11,86,87,113,64,1,36,38,30,43,107,89,61,41,71,59,39,27,28,29,31,32,33,34,35,17,18,37,40,19,42,7,44,14,45,46,47,48,49,50,51,52,136,129,127,105,73,101,115,116,80,74,10,78,122])))}),Dae=St({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:$t(()=>Pt(()=>import("./workflow-detail-FemzGjdG.js"),__vite__mapDeps([143,125,119,11,87,120,22,10,126,53,54,43,1,37,77,27,28,29,30,31,32,33,34,35,17,18,36,38,39,40,19,41,42,7,44,14,45,46,47,48,49,50,51,52,89,107,122,78,96,6,64,59,102,127,25,3])))}),Lae=St({getParentRoute:()=>av,path:"/plugins/$pluginId",component:$t(()=>Pt(()=>import("./org-plugin-layout-D5W8iJ__.js"),__vite__mapDeps([144,145,78,10,11,48,42,43,7])))}),$ae=St({getParentRoute:()=>Pn,path:"/agents",component:$t(()=>Pt(()=>import("./agents-list-Dn30Me50.js"),__vite__mapDeps([146,64,1,36,38,17,94,11,95,22,10,6,7,31,61,41,60,43,59,39,27,28,29,30,32,33,34,35,18,37,40,19,42,44,14,45,46,47,48,49,50,51,52,78,96,67,85,86,87,71,75,56,101,97,74,109])))}),jae=St({getParentRoute:()=>Pn,path:"/automations",component:$t(()=>Pt(()=>import("./automations-CbjDzR7F.js"),__vite__mapDeps([147,47,52,109,41,42,43,7,101,108,74,64,1,36,38,27,28,29,30,31,32,33,34,35,17,18,37,39,40,19,44,14,45,46,48,49,50,51,22,10,11,95])))}),O6=St({getParentRoute:()=>R6,path:"/$pluginId",component:$t(()=>Pt(()=>import("./dynamic-plugin-layout-89eFL9j5.js"),__vite__mapDeps([148,145,78,10,11,48,42,43,7])))}),Uae=[],zae=[],Fae=[],T6=[];lae.forEach(e=>{if(!e.setup)return;const t={parentRoute:O6,routing:{createRoute:St,lazyRouteComponent:$t},registerRootSidebarItem:n=>Uae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>zae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Fae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{T6.push(...n)}};e.setup(t)});const Bae=O6.addChildren(T6),Vae=Pn.addChildren([_ae,yae,bae,wae,$ae,jae,Sae,Eae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Nae,Pae,kae,Dae]),qae=R6.addChildren([Bae]),Hae=av.addChildren([vae,qae,Lae]),Gae=oE.addChildren([Hae,Vae]),Kae=iE.addChildren([pae,Gae]),Zae=ma.addChildren([Kae,mae,cae,uae,dae,fae,hae]),Yae=c7({routeTree:Zae,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"})]})})}),Wae=document.getElementById("root");W$.createRoot(Wae).render(T.jsx(I.StrictMode,{children:T.jsx(f7,{router:Yae})}));export{Ele as $,Cle as A,W1 as B,Kse as C,NS as D,tce as E,dC as F,rY as G,ro as H,Kd as I,Ig as J,HM as K,Ww as L,jc as M,sle as N,pP as O,aa as P,fs as Q,Q1 as R,$D as S,io as T,e4 as U,qM as V,oY as W,lY as X,sY as Y,KZ as Z,dn as _,Nj as a,Ye as a$,Jle as a0,Qle as a1,qse as a2,Rg as a3,Yr as a4,Uae as a5,zae as a6,rae as a7,kD as a8,GM as a9,Wle as aA,eG as aB,wt as aC,LD as aD,Pt as aE,DJ as aF,Fae as aG,Xae as aH,Ut as aI,Xt as aJ,Ie as aK,XH as aL,Yle as aM,Zle as aN,HS as aO,vg as aP,kY as aQ,E4 as aR,Q3 as aS,lf as aT,ta as aU,NY as aV,ds as aW,_3 as aX,jw as aY,Wr as aZ,It as a_,rle as aa,xo as ab,JJ as ac,ht as ad,no as ae,lW as af,cW as ag,yn as ah,lt as ai,uW as aj,dW as ak,pW as al,yW as am,A4 as an,hl as ao,fW as ap,hW as aq,mW as ar,gW as as,vW as at,_W as au,bW as av,SW as aw,EW as ax,fw as ay,nle as az,Mg as b,tZ as b$,xV as b0,FP as b1,pw as b2,xk as b3,Ok as b4,ZW as b5,Wn as b6,bQ as b7,u4 as b8,W3 as b9,bre as bA,Ere as bB,kre as bC,Kre as bD,Wre as bE,yre as bF,wre as bG,xre as bH,Rre as bI,Dre as bJ,Vre as bK,Fle as bL,lae as bM,hV as bN,ale as bO,fle as bP,mq as bQ,dl as bR,BN as bS,HN as bT,cle as bU,ece as bV,nG as bW,tG as bX,c3 as bY,pf as bZ,JK as b_,tae as ba,la as bb,ne as bc,Qae as bd,rZ as be,Nle as bf,cP as bg,ca as bh,as as bi,Ple as bj,kle as bk,rn as bl,lle as bm,VN as bn,Ure as bo,zre as bp,VS as bq,a6 as br,qS as bs,nv as bt,HD as bu,eie as bv,KD as bw,Yre as bx,lie as by,_re as bz,eae as c,t6 as c$,nZ as c0,af as c1,VM as c2,Cj as c3,w4 as c4,bY as c5,Fw as c6,f4 as c7,N3 as c8,Bw as c9,Kle as cA,Jie as cB,pt as cC,qoe as cD,QW as cE,dP as cF,to as cG,Ole as cH,iZ as cI,oZ as cJ,sZ as cK,eZ as cL,Fz as cM,qD as cN,ZD as cO,QD as cP,JD as cQ,e6 as cR,n6 as cS,Ule as cT,zle as cU,$le as cV,jle as cW,Xne as cX,Lle as cY,YD as cZ,XD as c_,Gd as ca,x3 as cb,zw as cc,Uw as cd,wY as ce,SY as cf,iQ as cg,oQ as ch,rQ as ci,Or as cj,ole as ck,WH as cl,ZH as cm,qH as cn,t3 as co,qV as cp,Sw as cq,SV as cr,ule as cs,KV as ct,xw as cu,Ew as cv,QV as cw,dle as cx,Gle as cy,vse as cz,dw as d,Vle as d0,WD as d1,Hle as d2,kS as d3,dre as d4,Dle as d5,VD as d6,kie as d7,Bre as d8,qle as d9,Oie as da,Aie as db,uie as dc,cie as dd,Ble as de,hle as df,FW as dg,BW as dh,HW as di,VW as dj,qW as dk,gle as dl,vle as dm,wle as dn,Sle as dp,xle as dq,ble as dr,yle as ds,_le as dt,mle as du,ple as dv,jM as dw,_O as dx,ele as dy,Jae as dz,Ro as e,rf as f,uw as g,Ale as h,Tle as i,T as j,Ile as k,DD as l,Xle as m,Pj as n,nw as o,MM as p,Zn as q,I as r,Qne as s,Mle as t,ile as u,Ee as v,To as w,Oo as x,F as y,xT as z};
|
|
171
|
+
`),document.head.appendChild(r)}}function Qse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:HM.publicConfig(),queryFn:Yse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=qM(r),[s]=Kse();i.internalUrl&&jse(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Wse(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 Xse=new yj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function Jse(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(fH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx($D,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(bj,{client:Xse,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Qse,{children:T.jsx(Dj,{children:T.jsx(zee,{children:T.jsx(Yne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function eae(...e){return FP(pw(e))}const tae=_3("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",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=eae(tae({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 TM="__mesh_chunk_reload_ts";function CM(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 tce 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),ND(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 nae 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=CM(t);if(ND(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(TM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(TM,String(s)),window.location.reload())}render(){return this.state.hasError&&CM(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(LD,{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 rae="MCP Workflows",iae="Create workflows using your MCP tools",oae=I.lazy(()=>Pt(()=>import("./plugin-header-D0WCyAas.js"),__vite__mapDeps([0,1]))),sae=I.lazy(()=>Pt(()=>import("./plugin-empty-state-DxSYI7WM.js"),[])),aae={id:rae,description:iae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(oae,{...e}),renderEmptyState:()=>T.jsx(sae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(kD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},lae=[aae],ma=e7({component:()=>T.jsx(nae,{children:T.jsx(Jse,{children:T.jsx(I.Suspense,{fallback:T.jsx($D,{}),children:T.jsx(pP,{})})})})}),cae=St({getParentRoute:()=>ma,path:"/login",component:$t(()=>Pt(()=>import("./login-zoPe2LeA.js"),__vite__mapDeps([2,3]))),validateSearch:dl(()=>Ee({next:F().optional(),client_id:F().optional(),redirect_uri:F().optional(),response_type:F().optional(),state:F().optional(),scope:F().optional(),code_challenge:F().optional(),code_challenge_method:F().optional()}))}),uae=St({getParentRoute:()=>ma,path:"/reset-password",component:$t(()=>Pt(()=>import("./reset-password-KFV68Ks-.js"),__vite__mapDeps([4,3]))),validateSearch:dl(()=>Ee({token:F().optional(),error:F().optional()}))}),dae=St({getParentRoute:()=>ma,path:"/auth/$pathname",component:$t(()=>Pt(()=>import("./auth-catchall-BGNYNNAk.js"),[]))}),fae=St({getParentRoute:()=>ma,path:"/oauth/callback",component:$t(()=>Pt(()=>import("./oauth-callback-CNmuoGWl.js"),[]))}),hae=St({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:$t(()=>Pt(()=>import("./oauth-callback-ai-provider-CsQrJZmR.js"),[]))}),iE=St({getParentRoute:()=>ma,id:"shell",component:$t(()=>Pt(()=>import("./shell-layout-BUuy9S_L.js").then(e=>e.s),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14])))}),pae=St({getParentRoute:()=>iE,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 Xa({to:"/$org",params:{org:t}});localStorage.removeItem(Rg.lastOrgSlug())}const n=e[0];throw Xa(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),mae=St({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(e&&e.length>0)throw Xa({to:"/"})},component:$t(()=>Pt(()=>import("./onboarding-C7clLSW8.js"),__vite__mapDeps([15,8,3,16,17,18,19])))}),oE=St({getParentRoute:()=>iE,path:"/$org",component:$t(()=>Pt(()=>import("./org-layout-BmM2YD3_.js"),[]))}),av=St({getParentRoute:()=>oE,id:"agent-shell",component:$t(()=>Pt(()=>import("./index-SoZ9vkB3.js"),__vite__mapDeps([20,21,11,22,10,23,24,25,9,12,26,27,28,29,30,31,32,33,34,35,17,18,1,36,37,38,39,40,19,41,42,43,7,44,14,45,46,47,48,49,50,51,52,53,54,55,56,6,57,58,5,8,13,59,60,61,62,63,16,3,64,65,66,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,107,108,109,110])))}),gae=Ee({virtualmcpid:F().optional(),tab:F().optional(),main:F().optional(),id:F().optional(),toolName:F().optional(),tasks:wt().optional(),mainOpen:wt().optional(),chat:wt().optional()}),R6=St({getParentRoute:()=>av,path:"/$taskId",validateSearch:gae,component:()=>null}),vae=St({getParentRoute:()=>av,path:"/",beforeLoad:({params:e})=>{const t=crypto.randomUUID();throw Xa({to:"/$org/$taskId",params:{org:e.org,taskId:t}})},component:()=>null}),Pn=St({getParentRoute:()=>oE,path:"/settings",component:$t(()=>Pt(()=>import("./settings-layout-b1Br3189.js"),__vite__mapDeps([111,42,43,7,32,35,17,36,14,49,51,52,104,79,24,25])))}),_ae=St({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Xa({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),yae=St({getParentRoute:()=>Pn,path:"/connections",component:$t(()=>Pt(()=>import("./connections-Qfmncrnr.js"),__vite__mapDeps([112,86,87,113,64,1,36,38,30,43,107,89,109,41,88,81,80,82,78,10,11,12,83,84,85,71,59,39,27,28,29,31,32,33,34,35,17,18,37,40,19,42,7,44,14,45,46,47,48,49,50,51,52,101,114,74,92,115,116,67,6,60,63,16,3,54,90,22,91]))),validateSearch:dl(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),bae=St({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:$t(()=>Pt(()=>import("./connection-detail-Kmft9f88.js"),__vite__mapDeps([117,86,87,101,91,3,47,50,118,11,96,27,28,29,30,31,32,33,34,35,17,18,1,36,37,38,39,40,19,41,42,43,7,44,14,45,46,48,49,51,52,78,10,119,120,85,82,12,54,99,100,22,97,95,106,89,58,121,73,62,59,63,16,114,74,122,123,80,61,71,64]))),validateSearch:dl(()=>Ee({tab:F().optional()}))}),wae=St({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:$t(()=>Pt(()=>import("./collection-detail-D_GfRl2U.js"),__vite__mapDeps([124,101,10,11,63,16,3,90,122,42,43,7,125,119,87,120,22,126,53,54,1,37,77,27,28,29,30,31,32,33,34,35,17,18,36,38,39,40,19,41,44,14,45,46,47,48,49,50,51,52,89,107,78,96,6,64,59,102,127,25,58,118,85,86,82,12,99,100,97,95,80,106,57,21,23,24,9,5,8,13]))),validateSearch:dl(()=>Ee({replayId:F().optional()}))}),Sae=St({getParentRoute:()=>Pn,path:"/monitor",component:$t(()=>Pt(()=>import("./index-mWgQ602E.js"),__vite__mapDeps([128,109,41,42,43,7,101,89,100,1,33,46,27,28,29,30,31,32,34,35,17,18,36,37,38,39,40,19,44,14,45,47,48,49,50,51,52,126,53,54,121,78,10,11,22,3,67,98,99,90,88,72,16,59,73,71,123,120,96,80,93,84,129,92,83,26,55,56,6,57,58,21,23,24,25,9,12,5,8,13]))),validateSearch:dl(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:F().default("now-30m"),to:F().default("now"),connectionId:Ie(F()).optional().default([]),virtualMcpId:Ie(F()).optional().default([]),tool:F().default(""),status:dn(["all","success","errors"]).default("all"),search:F().default(""),page:wt().optional(),streaming:It().default(!0),propertyFilters:F().default(""),hideSystem:It().default(!1)}))}),Eae=St({getParentRoute:()=>Pn,path:"/general",component:$t(()=>Pt(()=>import("./general-Cc1ql58y.js"),__vite__mapDeps([130,42,43,7,73,51,3,70,71,34,131,76,11,72,103,41,22,10,100,68,27,28,29,30,31,32,33,35,17,18,1,36,37,38,39,40,19,44,14,45,46,47,48,49,50,52,59,12])))}),xae=St({getParentRoute:()=>Pn,path:"/features",component:$t(()=>Pt(()=>import("./features-QRbg1n3B.js"),__vite__mapDeps([132,42,43,7,12,11,72,39,70,71,34])))}),Rae=St({getParentRoute:()=>Pn,path:"/brand-context",component:$t(()=>Pt(()=>import("./brand-context-7PuYXROc.js"),__vite__mapDeps([133,11,1,36,40,44,47,50,7,52,74,3,90,42,43,76])))}),Oae=St({getParentRoute:()=>Pn,path:"/ai-providers",component:$t(()=>Pt(()=>import("./ai-providers-t0YXr9kj.js"),__vite__mapDeps([134,66,67,1,3,6,7,60,43,54,37,68,29,31,41,48,23,11,21,22,10,24,25,9,12,69,52,28,18,50,42,70,71,34,72,65,73,51,74,75,56,76])))}),Tae=St({getParentRoute:()=>Pn,path:"/members",component:$t(()=>Pt(()=>import("./members-BrCn_crL.js"),__vite__mapDeps([135,113,64,1,36,38,30,43,107,89,109,41,42,7,136,129,101,6,63,16,54,37,90,137,121,11,74,73,51,71,49,50,67,98,99,100,47])))}),Cae=St({getParentRoute:()=>Pn,path:"/roles",component:$t(()=>Pt(()=>import("./roles-CMvkTrhY.js"),__vite__mapDeps([138,137,89,74,64,1,36,38,14,47,50,136,129,30,42,43,7,101,109,41,69,59,39,27,28,29,31,32,33,34,35,17,18,37,40,19,44,45,46,48,49,51,52,92,67,93,84,11,61,121,78,10,23,73,72]))),validateSearch:dl(()=>Ee({role:F().optional()}))}),Aae=St({getParentRoute:()=>Pn,path:"/sso",component:$t(()=>Pt(()=>import("./sso-aoLg93_m.js"),__vite__mapDeps([139,131,76,11,72,70,71,34,42,43,7,3,13,50])))}),Iae=St({getParentRoute:()=>Pn,path:"/profile",component:$t(()=>Pt(()=>import("./profile-BZlcE9Y0.js"),__vite__mapDeps([140,42,43,7,73,51,72,54,1,37,65,3,45,46,79,102,70,71,34])))}),Mae=St({getParentRoute:()=>Pn,path:"/store",component:$t(()=>Pt(()=>import("./store-DGgyYg8C.js"),__vite__mapDeps([141,28,36,47,50,3,72,68,73,51,100,78,10,11,42,43,7,82,12,70,71,34])))}),Pae=St({getParentRoute:()=>Pn,path:"/registry",component:$t(()=>Pt(()=>import("./registry-oDwGjrMT.js"),[]))}),Nae=St({getParentRoute:()=>Pn,path:"/store/registry",component:$t(()=>Pt(()=>import("./store-registry-Dbm0_etm.js"),[]))}),kae=St({getParentRoute:()=>Pn,path:"/workflows",component:$t(()=>Pt(()=>import("./workflow-Dt2CIq6i.js"),__vite__mapDeps([142,11,86,87,113,64,1,36,38,30,43,107,89,61,41,71,59,39,27,28,29,31,32,33,34,35,17,18,37,40,19,42,7,44,14,45,46,47,48,49,50,51,52,136,129,127,105,73,101,115,116,80,74,10,78,122])))}),Dae=St({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:$t(()=>Pt(()=>import("./workflow-detail-BZ0JnpLY.js"),__vite__mapDeps([143,125,119,11,87,120,22,10,126,53,54,43,1,37,77,27,28,29,30,31,32,33,34,35,17,18,36,38,39,40,19,41,42,7,44,14,45,46,47,48,49,50,51,52,89,107,122,78,96,6,64,59,102,127,25,3])))}),Lae=St({getParentRoute:()=>av,path:"/plugins/$pluginId",component:$t(()=>Pt(()=>import("./org-plugin-layout-Csh0KNUp.js"),__vite__mapDeps([144,145,78,10,11,48,42,43,7])))}),$ae=St({getParentRoute:()=>Pn,path:"/agents",component:$t(()=>Pt(()=>import("./agents-list-vffTTABq.js"),__vite__mapDeps([146,64,1,36,38,17,94,11,95,22,10,6,7,31,61,41,60,43,59,39,27,28,29,30,32,33,34,35,18,37,40,19,42,44,14,45,46,47,48,49,50,51,52,78,96,67,85,86,87,71,75,56,101,97,74,109])))}),jae=St({getParentRoute:()=>Pn,path:"/automations",component:$t(()=>Pt(()=>import("./automations-C7xJbJSO.js"),__vite__mapDeps([147,47,52,109,41,42,43,7,101,108,74,64,1,36,38,27,28,29,30,31,32,33,34,35,17,18,37,39,40,19,44,14,45,46,48,49,50,51,22,10,11,95])))}),O6=St({getParentRoute:()=>R6,path:"/$pluginId",component:$t(()=>Pt(()=>import("./dynamic-plugin-layout-SGNBzqAT.js"),__vite__mapDeps([148,145,78,10,11,48,42,43,7])))}),Uae=[],zae=[],Fae=[],T6=[];lae.forEach(e=>{if(!e.setup)return;const t={parentRoute:O6,routing:{createRoute:St,lazyRouteComponent:$t},registerRootSidebarItem:n=>Uae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>zae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Fae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{T6.push(...n)}};e.setup(t)});const Bae=O6.addChildren(T6),Vae=Pn.addChildren([_ae,yae,bae,wae,$ae,jae,Sae,Eae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Nae,Pae,kae,Dae]),qae=R6.addChildren([Bae]),Hae=av.addChildren([vae,qae,Lae]),Gae=oE.addChildren([Hae,Vae]),Kae=iE.addChildren([pae,Gae]),Zae=ma.addChildren([Kae,mae,cae,uae,dae,fae,hae]),Yae=c7({routeTree:Zae,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"})]})})}),Wae=document.getElementById("root");W$.createRoot(Wae).render(T.jsx(I.StrictMode,{children:T.jsx(f7,{router:Yae})}));export{Ele as $,Cle as A,W1 as B,Kse as C,NS as D,tce as E,dC as F,rY as G,ro as H,Kd as I,Ig as J,HM as K,Ww as L,jc as M,sle as N,pP as O,aa as P,fs as Q,Q1 as R,$D as S,io as T,e4 as U,qM as V,oY as W,lY as X,sY as Y,KZ as Z,dn as _,Nj as a,Ye as a$,Jle as a0,Qle as a1,qse as a2,Rg as a3,Yr as a4,Uae as a5,zae as a6,rae as a7,kD as a8,GM as a9,Wle as aA,eG as aB,wt as aC,LD as aD,Pt as aE,DJ as aF,Fae as aG,Xae as aH,Ut as aI,Xt as aJ,Ie as aK,XH as aL,Yle as aM,Zle as aN,HS as aO,vg as aP,kY as aQ,E4 as aR,Q3 as aS,lf as aT,ta as aU,NY as aV,ds as aW,_3 as aX,jw as aY,Wr as aZ,It as a_,rle as aa,xo as ab,JJ as ac,ht as ad,no as ae,lW as af,cW as ag,yn as ah,lt as ai,uW as aj,dW as ak,pW as al,yW as am,A4 as an,hl as ao,fW as ap,hW as aq,mW as ar,gW as as,vW as at,_W as au,bW as av,SW as aw,EW as ax,fw as ay,nle as az,Mg as b,tZ as b$,xV as b0,FP as b1,pw as b2,xk as b3,Ok as b4,ZW as b5,Wn as b6,bQ as b7,u4 as b8,W3 as b9,bre as bA,Ere as bB,kre as bC,Kre as bD,Wre as bE,yre as bF,wre as bG,xre as bH,Rre as bI,Dre as bJ,Vre as bK,Fle as bL,lae as bM,hV as bN,ale as bO,fle as bP,mq as bQ,dl as bR,BN as bS,HN as bT,cle as bU,ece as bV,nG as bW,tG as bX,c3 as bY,pf as bZ,JK as b_,tae as ba,la as bb,ne as bc,Qae as bd,rZ as be,Nle as bf,cP as bg,ca as bh,as as bi,Ple as bj,kle as bk,rn as bl,lle as bm,VN as bn,Ure as bo,zre as bp,VS as bq,a6 as br,qS as bs,nv as bt,HD as bu,eie as bv,KD as bw,Yre as bx,lie as by,_re as bz,eae as c,t6 as c$,nZ as c0,af as c1,VM as c2,Cj as c3,w4 as c4,bY as c5,Fw as c6,f4 as c7,N3 as c8,Bw as c9,Kle as cA,Jie as cB,pt as cC,qoe as cD,QW as cE,dP as cF,to as cG,Ole as cH,iZ as cI,oZ as cJ,sZ as cK,eZ as cL,Fz as cM,qD as cN,ZD as cO,QD as cP,JD as cQ,e6 as cR,n6 as cS,Ule as cT,zle as cU,$le as cV,jle as cW,Xne as cX,Lle as cY,YD as cZ,XD as c_,Gd as ca,x3 as cb,zw as cc,Uw as cd,wY as ce,SY as cf,iQ as cg,oQ as ch,rQ as ci,Or as cj,ole as ck,WH as cl,ZH as cm,qH as cn,t3 as co,qV as cp,Sw as cq,SV as cr,ule as cs,KV as ct,xw as cu,Ew as cv,QV as cw,dle as cx,Gle as cy,vse as cz,dw as d,Vle as d0,WD as d1,Hle as d2,kS as d3,dre as d4,Dle as d5,VD as d6,kie as d7,Bre as d8,qle as d9,Oie as da,Aie as db,uie as dc,cie as dd,Ble as de,hle as df,FW as dg,BW as dh,HW as di,VW as dj,qW as dk,gle as dl,vle as dm,wle as dn,Sle as dp,xle as dq,ble as dr,yle as ds,_le as dt,mle as du,ple as dv,jM as dw,_O as dx,ele as dy,Jae as dz,Ro as e,rf as f,uw as g,Ale as h,Tle as i,T as j,Ile as k,DD as l,Xle as m,Pj as n,nw as o,MM as p,Zn as q,I as r,Qne as s,Mle as t,ile as u,Ee as v,To as w,Oo as x,F as y,xT as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cj as ne,e as _,j as o,B as te,l as ln,bc as ze,ck as ms,r as T,s as oe,c as O,g as ps,o as cn,c5 as xs,ah as hs,ai as fe,aW as an,c6 as gs,aT as bs,c4 as js,c7 as dn,b6 as Ss,cd as ys,ce as vs,ao as ws,cf as Ns,cl as $t,cm as un,z as ks,D as _s,cn as Cs,co as Is}from"./index-DKd6U8ZD.js";import{D as Ts,F as Es,B as $s}from"./index-BXJluhPl.js";import{b as Fe,i as Os,u as ae}from"./constants-C9aLxYHE.js";import{u as fn}from"./use-virtual-mcp-G7jm3TGl.js";import{M as Re}from"./monaco-editor-CetiEdE3.js";import{S as Rs,A as Ms,c as Ls,a as Ps,b as As,e as zs,R as qt,d as Ws}from"./accordion-rxim1ZAp.js";import{B as le}from"./badge-DBxFBhAO.js";import{S as vt,a as wt,b as nt,d as Nt,c as kt}from"./select-CIfh_MBY.js";import{N as Ds,j as Fs,k as Hs,m as Be,P as Vs,i as qs,R as Us,c as Ks,l as Bs,f as Ut,d as Xs,S as st,n as Js,e as Gs}from"./scroll-area-UNfVJI8t.js";import{V as Qs}from"./view-mode-toggle-PXHnKZlc.js";import{a7 as Ys,a8 as Zs,h as eo,a9 as mn,aa as to,d as no,I as so,ab as pn,Z as oo,V as xn,ac as ro,ad as io,T as bt,ae as lo}from"./agent-icon-DtvDglSH.js";import{i as hn}from"./Play-C7K9es-c.js";import{b as co,a as ao,V as Qe}from"./layout-C1dBBrJO.js";import{T as gn,c as bn,a as jn,b as Sn}from"./use-mobile-DrlR5BbG.js";import{u as uo,b as fo}from"./use-connection-1SSSHaHs.js";import{u as Ot,d as Rt,b as yn}from"./use-mcp-tools-qxi4PxSc.js";import{a as mo,D as po,e as xo,b as ho,c as go,d as bo}from"./dialog-Dh1iMW0s.js";import"./index-CiGNH6-A.js";import{c as vn,d as wn,e as Nn,D as Ye}from"./dropdown-menu-BFB_BhxE.js";import{s as jo}from"./Plus-BpCTKUfi.js";import{b as kn}from"./Tool01-By8ElVEn.js";import{i as He}from"./ChevronDown-CGHjchOw.js";import{s as Mt}from"./XClose-Bnw2tzQy.js";import{I as Lt}from"./integration-icon-wh5nd5gB.js";import"./index-aI7M0qEI.js";import{i as _n}from"./X-DXjTCsIF.js";import{u as Cn,a as So}from"./use-collections-DpIHOTql.js";import{E as In}from"./empty-state-Ccngpo14.js";import{c as yo}from"./create-sse-subscription-CxkOgzKf.js";import{I as Kt}from"./input-rXpcOW54.js";const Tn=ne("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const En=ne("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const ot=ne("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const rt=ne("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const vo=ne("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const $n=ne("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const wo=ne("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const On=ne("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const Rn=ne("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);const Mn=ne("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const No=ne("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const Ln=ne("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Pn=ne("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const ko=ne("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const An=ne("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);function _o(t){const e=_.c(15),{onSave:n,onUndo:s,isDirty:i,isSaving:r,saveLabel:l,undoLabel:c}=t,a=l===void 0?"Save":l,d=c===void 0?"Undo":c;if(!i)return null;let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx(Ys,{size:14}),e[0]=u):u=e[0];let f;e[1]!==r||e[2]!==s||e[3]!==d?(f=o.jsxs(te,{variant:"outline",size:"sm",onClick:s,disabled:r,"aria-label":d,children:[u,d]}),e[1]=r,e[2]=s,e[3]=d,e[4]=f):f=e[4];let m;e[5]!==r?(m=r?o.jsx(ln,{size:14,className:"animate-spin"}):o.jsx(Zs,{size:14}),e[5]=r,e[6]=m):m=e[6];let x;e[7]!==r||e[8]!==n||e[9]!==a||e[10]!==m?(x=o.jsxs(te,{variant:"default",size:"sm",onClick:n,disabled:r,"aria-label":a,children:[m,a]}),e[7]=r,e[8]=n,e[9]=a,e[10]=m,e[11]=x):x=e[11];let p;return e[12]!==f||e[13]!==x?(p=o.jsxs(o.Fragment,{children:[f,x]}),e[12]=f,e[13]=x,e[14]=p):p=e[14],p}const Bt=t=>{let e;const n=new Set,s=(d,u)=>{const f=typeof d=="function"?d(e):d;if(!Object.is(f,e)){const m=e;e=u??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(x=>x(e,m))}},i=()=>e,c={setState:s,getState:i,getInitialState:()=>a,subscribe:d=>(n.add(d),()=>n.delete(d))},a=e=t(s,i,c);return c},Pt=(t=>t?Bt(t):Bt),Co=t=>t;function _t(t,e=Co){const n=ze.useSyncExternalStore(t.subscribe,ze.useCallback(()=>e(t.getState()),[t,e]),ze.useCallback(()=>e(t.getInitialState()),[t,e]));return ze.useDebugValue(n),n}const Io=t=>{const e=Pt(t),n=s=>_t(e,s);return Object.assign(n,e),n},To=(t=>Io);function zn(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var r;const l=a=>a===null?null:JSON.parse(a,void 0),c=(r=n.getItem(i))!=null?r:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,r)=>n.setItem(i,JSON.stringify(r,void 0)),removeItem:i=>n.removeItem(i)}}const Ct=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return Ct(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Ct(s)(n)}}}},Eo=(t,e)=>(n,s,i)=>{let r={storage:zn(()=>window.localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},l=!1,c=0;const a=new Set,d=new Set;let u=r.storage;if(!u)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},s,i);const f=()=>{const g=r.partialize({...s()});return u.setItem(r.name,{state:g,version:r.version})},m=i.setState;i.setState=(g,b)=>(m(g,b),f());const x=t((...g)=>(n(...g),f()),s,i);i.getInitialState=()=>x;let p;const h=()=>{var g,b;if(!u)return;const S=++c;l=!1,a.forEach(y=>{var j;return y((j=s())!=null?j:x)});const v=((b=r.onRehydrateStorage)==null?void 0:b.call(r,(g=s())!=null?g:x))||void 0;return Ct(u.getItem.bind(u))(r.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==r.version){if(r.migrate){const j=r.migrate(y.state,y.version);return j instanceof Promise?j.then(w=>[!0,w]):[!0,j]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var j;if(S!==c)return;const[w,N]=y;if(p=r.merge(N,(j=s())!=null?j:x),n(p,!0),w)return f()}).then(()=>{S===c&&(v?.(s(),void 0),p=s(),l=!0,d.forEach(y=>y(p)))}).catch(y=>{S===c&&v?.(void 0,y)})};return i.persist={setOptions:g=>{r={...r,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(d.add(g),()=>{d.delete(g)})},r.skipHydration||h(),p||x},Wn=Eo,{useSyncExternalStoreWithSelector:$o}=ms,Oo=t=>t;function Ro(t,e=Oo,n){const s=$o(t.subscribe,t.getState,t.getInitialState,e,n);return ze.useDebugValue(s),s}const Xt=t=>Symbol.iterator in t,Jt=t=>"entries"in t,Gt=(t,e)=>{const n=t instanceof Map?t:new Map(t.entries()),s=e instanceof Map?e:new Map(e.entries());if(n.size!==s.size)return!1;for(const[i,r]of n)if(!s.has(i)||!Object.is(r,s.get(i)))return!1;return!0},Mo=(t,e)=>{const n=t[Symbol.iterator](),s=e[Symbol.iterator]();let i=n.next(),r=s.next();for(;!i.done&&!r.done;){if(!Object.is(i.value,r.value))return!1;i=n.next(),r=s.next()}return!!i.done&&!!r.done};function Lo(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:Xt(t)&&Xt(e)?Jt(t)&&Jt(e)?Gt(t,e):Mo(t,e):Gt({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}function Dn(t,e="Output"){if(!t)return`interface ${e} {}`;function n(r){if(!r||typeof r!="object")return"unknown";const l=r.type;if(Array.isArray(l))return l.map(c=>s(c)).join(" | ");switch(l){case"string":return r.enum?r.enum.map(c=>`"${c}"`).join(" | "):"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";case"array":{const c=r.items;return c?`${n(c)}[]`:"unknown[]"}case"object":return i(r);default:return r.anyOf?r.anyOf.map(n).join(" | "):r.oneOf?r.oneOf.map(n).join(" | "):r.allOf?r.allOf.map(n).join(" & "):"unknown"}}function s(r){switch(r){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";default:return"unknown"}}function i(r){const l=r.properties;if(!l)return"Record<string, unknown>";const c=new Set(r.required||[]);return`{
|
|
1
|
+
import{cj as ne,e as _,j as o,B as te,l as ln,bc as ze,ck as ms,r as T,s as oe,c as O,g as ps,o as cn,c5 as xs,ah as hs,ai as fe,aW as an,c6 as gs,aT as bs,c4 as js,c7 as dn,b6 as Ss,cd as ys,ce as vs,ao as ws,cf as Ns,cl as $t,cm as un,z as ks,D as _s,cn as Cs,co as Is}from"./index-C4KOdiuW.js";import{D as Ts,F as Es,B as $s}from"./index-DdEYcoGw.js";import{b as Fe,i as Os,u as ae}from"./constants-puxzW8Tt.js";import{u as fn}from"./use-virtual-mcp-D1fXVRo5.js";import{M as Re}from"./monaco-editor-C80vYwBa.js";import{S as Rs,A as Ms,c as Ls,a as Ps,b as As,e as zs,R as qt,d as Ws}from"./accordion-zVtel299.js";import{B as le}from"./badge-nX1O9Qf1.js";import{S as vt,a as wt,b as nt,d as Nt,c as kt}from"./select-W23RccQR.js";import{N as Ds,j as Fs,k as Hs,m as Be,P as Vs,i as qs,R as Us,c as Ks,l as Bs,f as Ut,d as Xs,S as st,n as Js,e as Gs}from"./scroll-area-BlUv7zcB.js";import{V as Qs}from"./view-mode-toggle-LshbVzEB.js";import{a7 as Ys,a8 as Zs,h as eo,a9 as mn,aa as to,d as no,I as so,ab as pn,Z as oo,V as xn,ac as ro,ad as io,T as bt,ae as lo}from"./agent-icon-DSfidSus.js";import{i as hn}from"./Play-CrdOw1Iv.js";import{b as co,a as ao,V as Qe}from"./layout-BHQW603q.js";import{T as gn,c as bn,a as jn,b as Sn}from"./use-mobile-DvmdhkH5.js";import{u as uo,b as fo}from"./use-connection-D0OofLda.js";import{u as Ot,d as Rt,b as yn}from"./use-mcp-tools-D1ScXFUK.js";import{a as mo,D as po,e as xo,b as ho,c as go,d as bo}from"./dialog-CAwNCLeY.js";import"./index-BiFex3ig.js";import{c as vn,d as wn,e as Nn,D as Ye}from"./dropdown-menu-CiJ99ly5.js";import{s as jo}from"./Plus-Zv0hv0Vg.js";import{b as kn}from"./Tool01-B5mm7tYF.js";import{i as He}from"./ChevronDown-DmIUGcFl.js";import{s as Mt}from"./XClose-BQJEwJET.js";import{I as Lt}from"./integration-icon-B-ypwxt-.js";import"./index-BhZeUpb1.js";import{i as _n}from"./X-Bgfd1eh0.js";import{u as Cn,a as So}from"./use-collections-BgcKlAB6.js";import{E as In}from"./empty-state-DIogXxVN.js";import{c as yo}from"./create-sse-subscription-CxkOgzKf.js";import{I as Kt}from"./input-DrxCctpM.js";const Tn=ne("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const En=ne("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const ot=ne("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const rt=ne("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const vo=ne("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const $n=ne("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const wo=ne("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const On=ne("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const Rn=ne("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);const Mn=ne("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const No=ne("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const Ln=ne("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Pn=ne("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const ko=ne("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const An=ne("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);function _o(t){const e=_.c(15),{onSave:n,onUndo:s,isDirty:i,isSaving:r,saveLabel:l,undoLabel:c}=t,a=l===void 0?"Save":l,d=c===void 0?"Undo":c;if(!i)return null;let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx(Ys,{size:14}),e[0]=u):u=e[0];let f;e[1]!==r||e[2]!==s||e[3]!==d?(f=o.jsxs(te,{variant:"outline",size:"sm",onClick:s,disabled:r,"aria-label":d,children:[u,d]}),e[1]=r,e[2]=s,e[3]=d,e[4]=f):f=e[4];let m;e[5]!==r?(m=r?o.jsx(ln,{size:14,className:"animate-spin"}):o.jsx(Zs,{size:14}),e[5]=r,e[6]=m):m=e[6];let x;e[7]!==r||e[8]!==n||e[9]!==a||e[10]!==m?(x=o.jsxs(te,{variant:"default",size:"sm",onClick:n,disabled:r,"aria-label":a,children:[m,a]}),e[7]=r,e[8]=n,e[9]=a,e[10]=m,e[11]=x):x=e[11];let p;return e[12]!==f||e[13]!==x?(p=o.jsxs(o.Fragment,{children:[f,x]}),e[12]=f,e[13]=x,e[14]=p):p=e[14],p}const Bt=t=>{let e;const n=new Set,s=(d,u)=>{const f=typeof d=="function"?d(e):d;if(!Object.is(f,e)){const m=e;e=u??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(x=>x(e,m))}},i=()=>e,c={setState:s,getState:i,getInitialState:()=>a,subscribe:d=>(n.add(d),()=>n.delete(d))},a=e=t(s,i,c);return c},Pt=(t=>t?Bt(t):Bt),Co=t=>t;function _t(t,e=Co){const n=ze.useSyncExternalStore(t.subscribe,ze.useCallback(()=>e(t.getState()),[t,e]),ze.useCallback(()=>e(t.getInitialState()),[t,e]));return ze.useDebugValue(n),n}const Io=t=>{const e=Pt(t),n=s=>_t(e,s);return Object.assign(n,e),n},To=(t=>Io);function zn(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var r;const l=a=>a===null?null:JSON.parse(a,void 0),c=(r=n.getItem(i))!=null?r:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,r)=>n.setItem(i,JSON.stringify(r,void 0)),removeItem:i=>n.removeItem(i)}}const Ct=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return Ct(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Ct(s)(n)}}}},Eo=(t,e)=>(n,s,i)=>{let r={storage:zn(()=>window.localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},l=!1,c=0;const a=new Set,d=new Set;let u=r.storage;if(!u)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},s,i);const f=()=>{const g=r.partialize({...s()});return u.setItem(r.name,{state:g,version:r.version})},m=i.setState;i.setState=(g,b)=>(m(g,b),f());const x=t((...g)=>(n(...g),f()),s,i);i.getInitialState=()=>x;let p;const h=()=>{var g,b;if(!u)return;const S=++c;l=!1,a.forEach(y=>{var j;return y((j=s())!=null?j:x)});const v=((b=r.onRehydrateStorage)==null?void 0:b.call(r,(g=s())!=null?g:x))||void 0;return Ct(u.getItem.bind(u))(r.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==r.version){if(r.migrate){const j=r.migrate(y.state,y.version);return j instanceof Promise?j.then(w=>[!0,w]):[!0,j]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var j;if(S!==c)return;const[w,N]=y;if(p=r.merge(N,(j=s())!=null?j:x),n(p,!0),w)return f()}).then(()=>{S===c&&(v?.(s(),void 0),p=s(),l=!0,d.forEach(y=>y(p)))}).catch(y=>{S===c&&v?.(void 0,y)})};return i.persist={setOptions:g=>{r={...r,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(d.add(g),()=>{d.delete(g)})},r.skipHydration||h(),p||x},Wn=Eo,{useSyncExternalStoreWithSelector:$o}=ms,Oo=t=>t;function Ro(t,e=Oo,n){const s=$o(t.subscribe,t.getState,t.getInitialState,e,n);return ze.useDebugValue(s),s}const Xt=t=>Symbol.iterator in t,Jt=t=>"entries"in t,Gt=(t,e)=>{const n=t instanceof Map?t:new Map(t.entries()),s=e instanceof Map?e:new Map(e.entries());if(n.size!==s.size)return!1;for(const[i,r]of n)if(!s.has(i)||!Object.is(r,s.get(i)))return!1;return!0},Mo=(t,e)=>{const n=t[Symbol.iterator](),s=e[Symbol.iterator]();let i=n.next(),r=s.next();for(;!i.done&&!r.done;){if(!Object.is(i.value,r.value))return!1;i=n.next(),r=s.next()}return!!i.done&&!!r.done};function Lo(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:Xt(t)&&Xt(e)?Jt(t)&&Jt(e)?Gt(t,e):Mo(t,e):Gt({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}function Dn(t,e="Output"){if(!t)return`interface ${e} {}`;function n(r){if(!r||typeof r!="object")return"unknown";const l=r.type;if(Array.isArray(l))return l.map(c=>s(c)).join(" | ");switch(l){case"string":return r.enum?r.enum.map(c=>`"${c}"`).join(" | "):"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";case"array":{const c=r.items;return c?`${n(c)}[]`:"unknown[]"}case"object":return i(r);default:return r.anyOf?r.anyOf.map(n).join(" | "):r.oneOf?r.oneOf.map(n).join(" | "):r.allOf?r.allOf.map(n).join(" & "):"unknown"}}function s(r){switch(r){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";default:return"unknown"}}function i(r){const l=r.properties;if(!l)return"Record<string, unknown>";const c=new Set(r.required||[]);return`{
|
|
2
2
|
${Object.entries(l).map(([d,u])=>{const f=c.has(d)?"":"?";return`${u.description?` /** ${u.description} */
|
|
3
3
|
`:""} ${d}${f}: ${n(u)};`}).join(`
|
|
4
4
|
`)}
|