decocms 4.17.0 → 4.17.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-D8gnDqwf.js → AlertCircle-DdrwwZMq.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BlXghneM.js → ArrowUpRight-jXBy9ipz.js} +1 -1
- package/dist/client/assets/{CheckCircle-DCCFCHyS.js → CheckCircle-3ZOkMXIL.js} +1 -1
- package/dist/client/assets/{ChevronDown-BLALKRGM.js → ChevronDown-CLx4-WM1.js} +1 -1
- package/dist/client/assets/{ChevronRight-Gacf5_E2.js → ChevronRight-jYKilAXW.js} +1 -1
- package/dist/client/assets/{ChevronUp-DBXbYduj.js → ChevronUp-BGt4chTY.js} +1 -1
- package/dist/client/assets/{DotsVertical-D7ryssxp.js → DotsVertical-CqrNmdxL.js} +1 -1
- package/dist/client/assets/{Eye-BFLaa-Ve.js → Eye-o5yQXJvl.js} +1 -1
- package/dist/client/assets/{FilterLines-CK4jmUMp.js → FilterLines-CDGBU4Yu.js} +1 -1
- package/dist/client/assets/{Globe01-Bx-hz-as.js → Globe01-CcG20jKe.js} +1 -1
- package/dist/client/assets/{Globe04-u6eY2Kop.js → Globe04-Cv_V-Fs_.js} +1 -1
- package/dist/client/assets/{HardDrive-B06hZ2KP.js → HardDrive-BSIK0u4A.js} +1 -1
- package/dist/client/assets/{Key01-D0oVN5CX.js → Key01-DgIKoZGo.js} +1 -1
- package/dist/client/assets/{LayoutLeft-1bN-FR8E.js → LayoutLeft-Ck3c6EbZ.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D4vA-I3a.js → LinkExternal01-C4RHyT_k.js} +1 -1
- package/dist/client/assets/{Monitor01-DrJKeSJ4.js → Monitor01-CWIDsYmm.js} +1 -1
- package/dist/client/assets/{Palette-CvuWqoBi.js → Palette-BFwjtSY1.js} +1 -1
- package/dist/client/assets/{Play-DuOwU6E2.js → Play-DqQKGu-U.js} +1 -1
- package/dist/client/assets/{Plus-Bz2JwGOE.js → Plus-DZiClNST.js} +1 -1
- package/dist/client/assets/{SearchLg-CfwbHNr5.js → SearchLg-CaS6w27I.js} +1 -1
- package/dist/client/assets/{SearchMd-Bn2Kbs9E.js → SearchMd-CYoVQBZq.js} +1 -1
- package/dist/client/assets/{Settings02-N32UBNZq.js → Settings02-C-6P9tLl.js} +1 -1
- package/dist/client/assets/{Shield01-BztOm8mA.js → Shield01-B3rvsBtl.js} +1 -1
- package/dist/client/assets/{Star01-GFElhP7X.js → Star01-CkOKT_Ec.js} +1 -1
- package/dist/client/assets/{Stars01-CK-XatBt.js → Stars01-sPe6wVRL.js} +1 -1
- package/dist/client/assets/{Stars02-BpRz9194.js → Stars02-YL1S7hw5.js} +1 -1
- package/dist/client/assets/{Sun-CRJdfBLT.js → Sun-CX24eczl.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Bcp8nSOf.js → SwitchHorizontal01-1JfD3pEr.js} +1 -1
- package/dist/client/assets/{Tool01-DrE6CqtR.js → Tool01-84S8urW1.js} +1 -1
- package/dist/client/assets/{Trash01-kVRWRMat.js → Trash01-oru1b8W8.js} +1 -1
- package/dist/client/assets/{Upload01-TiHLQTwG.js → Upload01-Cou_1dwr.js} +1 -1
- package/dist/client/assets/{User01-9o9EbE3X.js → User01-BL-jdznB.js} +1 -1
- package/dist/client/assets/{Users01-CMbqiB_R.js → Users01-CvViXbMH.js} +1 -1
- package/dist/client/assets/{Users03-K1B4uaw7.js → Users03-B-JAgn9g.js} +1 -1
- package/dist/client/assets/{X-BQZZQdg0.js → X-D1xM7jXL.js} +1 -1
- package/dist/client/assets/{XCircle-BOFvuFHl.js → XCircle-D1ibZ16t.js} +1 -1
- package/dist/client/assets/{XClose-ChRyc7zA.js → XClose-D0Zu_lRC.js} +1 -1
- package/dist/client/assets/{Zap-RN8PAcZE.js → Zap-Bo8lb0F-.js} +1 -1
- package/dist/client/assets/{ZapSquare-D4RqdrSL.js → ZapSquare-B4AjMOPu.js} +1 -1
- package/dist/client/assets/{ZoomOut-CwXzA7X6.js → ZoomOut-DfCeUHFX.js} +1 -1
- package/dist/client/assets/{access-gate-DayZt2qh.js → access-gate-CRTZfiyx.js} +1 -1
- package/dist/client/assets/{add-section-modal-BgsTQi1S.js → add-section-modal-t6NTp3dt.js} +1 -1
- package/dist/client/assets/{agent-capabilities-C8WZk9re.js → agent-capabilities-BDCwG9Eh.js} +1 -1
- package/dist/client/assets/agent-icon-C1BWispo.js +1 -0
- package/dist/client/assets/{agents-list-Bb32bFe0.js → agents-list-D2wP1uld.js} +1 -1
- package/dist/client/assets/ai-providers-D8gEIycW.js +1 -0
- package/dist/client/assets/{alert-DGlfAxXY.js → alert-DAyg3TSF.js} +1 -1
- package/dist/client/assets/{alert-dialog-D87-BKea.js → alert-dialog-ha1v59qY.js} +2 -2
- package/dist/client/assets/app-editor-3RKJRSU7.js +1 -0
- package/dist/client/assets/{auth-catchall-CDZHIENi.js → auth-catchall-B-EHVfUd.js} +1 -1
- package/dist/client/assets/{auth-entry--IJuST3G.js → auth-entry-BFuuwZkf.js} +1 -1
- package/dist/client/assets/{auth-pLLkIszG.js → auth-ou2428Bw.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Cm8DpBZy.js → auth-split-layout-lfv3bwPm.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-VdmVLbtW.js → authenticate-and-persist-oauth-B3lWqExf.js} +1 -1
- package/dist/client/assets/{automation-list-row-DJcYtMaz.js → automation-list-row-DUKMiAFn.js} +1 -1
- package/dist/client/assets/{automation-runs-BQZ05VJM.js → automation-runs-HEfBB2IO.js} +1 -1
- package/dist/client/assets/{automations-DXzG8kgd.js → automations-DcVo9aht.js} +1 -1
- package/dist/client/assets/{avatar-DxH3BnSs.js → avatar-tYV7Xj5e.js} +1 -1
- package/dist/client/assets/{badge-wh5eWpb9.js → badge-DjU6bfHE.js} +1 -1
- package/dist/client/assets/{block-document-OYJ-kskh.js → block-document-CYnqjTQ5.js} +1 -1
- package/dist/client/assets/{brand-context-Dkhy-emW.js → brand-context-D5KhJzF5.js} +1 -1
- package/dist/client/assets/{breadcrumb-DZbB5tzN.js → breadcrumb-C_jNPElt.js} +1 -1
- package/dist/client/assets/{buckets-DWf7-mkQ.js → buckets-Bi6Dz7dc.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BfqGc7PR.js → bulk-category-panel-CQyTVuMJ.js} +1 -1
- package/dist/client/assets/{capability-load-error-B0knfbbl.js → capability-load-error-B4T1DTOe.js} +1 -1
- package/dist/client/assets/{card-D-LCVQQb.js → card-BcWpe7XA.js} +1 -1
- package/dist/client/assets/category-editor-CHiWWzkP.js +1 -0
- package/dist/client/assets/{chat-context-CIKFBD8u.js → chat-context-BXvC8snN.js} +1 -1
- package/dist/client/assets/{checkbox-CFdij7Ei.js → checkbox-BGLrFwOD.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BJWjcvwa.js → cli-auth-success-SPj5zX1c.js} +1 -1
- package/dist/client/assets/{collection-detail-C8jnHEZw.js → collection-detail-ClK5ckvV.js} +1 -1
- package/dist/client/assets/{collection-display-button-DDEI8eBI.js → collection-display-button-AdaNOeng.js} +1 -1
- package/dist/client/assets/{collection-search-B0gYtEWh.js → collection-search-BWPhJb0W.js} +1 -1
- package/dist/client/assets/{collection-tabs-DGDRpyxJ.js → collection-tabs-LbK97vzL.js} +1 -1
- package/dist/client/assets/{command-VE4J0WmB.js → command-BrahLBH2.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-DtwhvPKV.js → commerce-onboarding-BY8ZIbvj.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-DRNK5Zqx.js → connect-desktop-dialog-wN68EGmx.js} +1 -1
- package/dist/client/assets/{connection-card-Dzp4nWAC.js → connection-card-CS0ZRcyq.js} +1 -1
- package/dist/client/assets/{connection-detail-BnRE6ILz.js → connection-detail-6cGe5AzW.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BKzMCiDP.js → connection-form-helpers--RFzi4SS.js} +1 -1
- package/dist/client/assets/{connections-BPohRO-Z.js → connections-BM_4XV1f.js} +1 -1
- package/dist/client/assets/{decopilot-D_-94MU_.js → decopilot-DitDP2XU.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DA88fFcW.js → decopilot-sse-pool-DrXwOdO1.js} +1 -1
- package/dist/client/assets/{dialog-BdIjDk0G.js → dialog-DaSKz7DM.js} +1 -1
- package/dist/client/assets/{domain-settings-CTC9j3wY.js → domain-settings-BssGRdmx.js} +1 -1
- package/dist/client/assets/{drawer-D1X6O6Aa.js → drawer-DdiW0TLs.js} +1 -1
- package/dist/client/assets/{dropdown-menu-8PMbgM0q.js → dropdown-menu-5pJpeeqf.js} +1 -1
- package/dist/client/assets/{empty-state-y_scHUYK.js → empty-state-B08-kVr_.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BhI39RpO.js → extract-connection-data-X711B5tE.js} +1 -1
- package/dist/client/assets/file-explorer-CXo4_clT.js +2 -0
- package/dist/client/assets/{file-type-icon-Bx1NX_Gy.js → file-type-icon-Cm6D0wrz.js} +1 -1
- package/dist/client/assets/{files-BFgu7BJp.js → files-K9oI8c_-.js} +1 -1
- package/dist/client/assets/{form-P-LOMg0X.js → form-D1efg8C-.js} +1 -1
- package/dist/client/assets/{general-DaU6Yz-f.js → general-BSA7tAJi.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CmustdLW.js → github-repo-picker-CXt90kMG.js} +1 -1
- package/dist/client/assets/{hooks-UY6BFV6z.js → hooks-BgBnOJ3c.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-CopvXqdM.js → import-from-deco-dialog-P6TRPQ14.js} +1 -1
- package/dist/client/assets/index-8NfBTjo_.js +1 -0
- package/dist/client/assets/{index-BwaOBBZ-.js → index-B96RsdAE.js} +1 -1
- package/dist/client/assets/{index-DStyXwbT.js → index-BtaxzVR0.js} +1 -1
- package/dist/client/assets/{index-D4EP6iY-.js → index-C3i4LyhT.js} +1 -1
- package/dist/client/assets/{index-DJMmArQj.js → index-D3ZbfB7L.js} +1 -1
- package/dist/client/assets/{index-BrtU3HWl.js → index-D9Jl2teh.js} +1 -1
- package/dist/client/assets/{index-Dq2Ts3Yi.js → index-Da2BgJQV.js} +1 -1
- package/dist/client/assets/{index-BbFfuuHN.js → index-DikJYrmI.js} +1 -1
- package/dist/client/assets/{index-Cgz2WBho.js → index-YOEpEUyS.js} +1 -1
- package/dist/client/assets/{index-BgCyOgdF.js → index-YqfRemtU.js} +13 -13
- package/dist/client/assets/{index-CAQVV5KO.js → index-cif87MVR.js} +1 -1
- package/dist/client/assets/{index-BZCHEyhA.js → index-pn1YPMKj.js} +1 -1
- package/dist/client/assets/{index-DHTICC_v.js → index-qfheH9Xc.js} +26 -26
- package/dist/client/assets/{index-redirect-YHMCgUs4.js → index-redirect-DdgddsNH.js} +1 -1
- package/dist/client/assets/{input-DgsFOGyM.js → input-c3bkJxBD.js} +1 -1
- package/dist/client/assets/{integration-icon-m6Sa_hcd.js → integration-icon-DsTjAPrY.js} +1 -1
- package/dist/client/assets/{label-CwMsBEmc.js → label-C-M0DX5a.js} +1 -1
- package/dist/client/assets/{library-tab-DZNwBek9.js → library-tab-D1dP6e2l.js} +1 -1
- package/dist/client/assets/{login-DDPQBbDq.js → login-DMQTn7wh.js} +1 -1
- package/dist/client/assets/{mcp-oauth-SxDhA9AX.js → mcp-oauth-D8P2QaWG.js} +1 -1
- package/dist/client/assets/{members-DiR3wVIq.js → members-B3Jf-1QZ.js} +1 -1
- package/dist/client/assets/{monaco-editor-iFVtSMuF.js → monaco-editor-Bn7nTC-y.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D6W0tudn.js → monitoring-stats-row-D2SCaVP_.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Dc1dGP3j.js → oauth-callback-ai-provider-BrGx-toi.js} +1 -1
- package/dist/client/assets/{oauth-callback-Cj-8kU65.js → oauth-callback-arRRISlw.js} +1 -1
- package/dist/client/assets/{onboarding-DF_zbux6.js → onboarding-DfQssXGo.js} +1 -1
- package/dist/client/assets/{org-install-CEMN6R-y.js → org-install-CAxOgyNR.js} +1 -1
- package/dist/client/assets/{org-layout-bk5Xtfa_.js → org-layout-C7RcAVm5.js} +1 -1
- package/dist/client/assets/{organization-choice-CE_aU8pP.js → organization-choice-aXwHBCUC.js} +1 -1
- package/dist/client/assets/{page-seo-form-Derb8U-C.js → page-seo-form-DTBhJgv0.js} +1 -1
- package/dist/client/assets/page-seo-sheet-DSFzu1g0.js +1 -0
- package/dist/client/assets/{popover-4-S-2t4S.js → popover-DvGqLTJl.js} +1 -1
- package/dist/client/assets/post-editor-C-KR7OSD.js +1 -0
- package/dist/client/assets/{primitives-DFOak6EH.js → primitives-Cbyyj3A3.js} +1 -1
- package/dist/client/assets/{profile-BNOuWcgq.js → profile-eglAZx5J.js} +1 -1
- package/dist/client/assets/project-app-view-BZfBTk7X.js +1 -0
- package/dist/client/assets/record-editor-lkwoQjs9.js +1 -0
- package/dist/client/assets/registry-_cXAc0hk.js +2 -0
- package/dist/client/assets/{registry-layout-BPKVzNcW.js → registry-layout-hOf6zsxt.js} +1 -1
- package/dist/client/assets/{require-capability-BJprrccL.js → require-capability-XNz95caz.js} +1 -1
- package/dist/client/assets/{required-auth-layout-B0YEEBld.js → required-auth-layout-CrFETKOt.js} +1 -1
- package/dist/client/assets/{reset-password-CkXuGUs6.js → reset-password-DvMp7JEU.js} +1 -1
- package/dist/client/assets/{roles-lfwag5Tp.js → roles-HzDtUpXH.js} +1 -1
- package/dist/client/assets/{scroll-area-C8YtCymQ.js → scroll-area-Bkg-mZA1.js} +1 -1
- package/dist/client/assets/{search-input-Du_36cRj.js → search-input-Csys3Koh.js} +1 -1
- package/dist/client/assets/{secrets-CnPg0qON.js → secrets-Bc04lDOi.js} +1 -1
- package/dist/client/assets/{sections-editor-BR6KfAKE.js → sections-editor-DMIuM8hP.js} +1 -1
- package/dist/client/assets/{select-DzzBmNmo.js → select-CyjV0F4C.js} +1 -1
- package/dist/client/assets/{select-model-F8Y_Cf3t.js → select-model-DkNEmCB-.js} +1 -1
- package/dist/client/assets/seo-editor-CXv7fPuW.js +1 -0
- package/dist/client/assets/{settings-layout-CGT7LCro.js → settings-layout-CqQSdUJ1.js} +1 -1
- package/dist/client/assets/{settings-section-rq7s23q-.js → settings-section-CWGTzuvV.js} +1 -1
- package/dist/client/assets/{sheet-B3q7nz8B.js → sheet-DuOoVZUG.js} +1 -1
- package/dist/client/assets/{shell-controls-mi9y4ySh.js → shell-controls-_ERLWSRt.js} +1 -1
- package/dist/client/assets/{shell-layout-QzfqSuxf.js → shell-layout-DbD_tkNz.js} +1 -1
- package/dist/client/assets/{sidebar-D2BmctMK.js → sidebar-Dk_5AbOf.js} +1 -1
- package/dist/client/assets/{skeleton-f0d6RrIL.js → skeleton-erh5yXDG.js} +1 -1
- package/dist/client/assets/{sso-D4e1TwT3.js → sso-CA0aW0DE.js} +1 -1
- package/dist/client/assets/{store-DxI78Zhs.js → store-fNZRBFZQ.js} +1 -1
- package/dist/client/assets/store-registry-Bfou8ECl.js +2 -0
- package/dist/client/assets/{studio-tools-D6ANxpFE.js → studio-tools-BaSvhr-J.js} +1 -1
- package/dist/client/assets/{switch-BRlkUTqX.js → switch-BHo8xs7D.js} +1 -1
- package/dist/client/assets/{table-65-g1dd8.js → table-7NpUUPTt.js} +1 -1
- package/dist/client/assets/{tabs-ByVhqny2.js → tabs-MyyL-fGu.js} +1 -1
- package/dist/client/assets/task-row-CSJH3BP-.js +1 -0
- package/dist/client/assets/{task-status-BMnLETgS.js → task-status-CcNy4g07.js} +1 -1
- package/dist/client/assets/{textarea-Dp78LmPE.js → textarea-DE7i4Gz-.js} +1 -1
- package/dist/client/assets/{toggle-group-BIoy7tOG.js → toggle-group-BPcVs9aZ.js} +1 -1
- package/dist/client/assets/{toolbar-C1WgDWOZ.js → toolbar-DO76WyPk.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DdAIuoK2.js → toolbar-icon-button-CRc66nZ-.js} +1 -1
- package/dist/client/assets/tools-list-Bq5PisM1.js +1 -0
- package/dist/client/assets/{tooltip-CWNyrHYY.js → tooltip-CBYM2iV5.js} +1 -1
- package/dist/client/assets/{types-BHL4d6ji.js → types-BxTesI-C.js} +5 -5
- package/dist/client/assets/{use-ai-providers-CVS8EjHf.js → use-ai-providers-BLBRqrOl.js} +1 -1
- package/dist/client/assets/{use-automations-DJ1_UqKB.js → use-automations-5UyPQOVR.js} +1 -1
- package/dist/client/assets/{use-capability-BmznXR_9.js → use-capability-BOo3wKB9.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BXZK-6ig.js → use-clock-tick-DpMHy-Ay.js} +1 -1
- package/dist/client/assets/{use-collections-BnOL5hT8.js → use-collections-CQf58LpF.js} +1 -1
- package/dist/client/assets/{use-connection-CRsO-Bab.js → use-connection-BuG3o_JE.js} +1 -1
- package/dist/client/assets/{use-copy-DK8lBdjB.js → use-copy-jWg55WQ8.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-C50juX43.js → use-create-virtual-mcp-LuXF-lyt.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Q8tZcL7-.js → use-debounced-autosave-BlFX0cfT.js} +1 -1
- package/dist/client/assets/{use-debounced-value-C2hJqHIV.js → use-debounced-value-Df6CEQAw.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BB7o7ets.js → use-decopilot-events-uI4wGrsY.js} +1 -1
- package/dist/client/assets/{use-delete-connection-D7WMNDAi.js → use-delete-connection-UF4lOt5V.js} +1 -1
- package/dist/client/assets/{use-file-configs-Bxsm4MXe.js → use-file-configs-Bs9D0249.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DFBavgZf.js → use-infinite-scroll-DlYly1rf.js} +1 -1
- package/dist/client/assets/{use-join-requests-CNT469hS.js → use-join-requests-B315-fOS.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DAJmDOVO.js → use-mcp-client-CpnbLiac.js} +2 -2
- package/dist/client/assets/{use-mcp-prompts-D3eulxzR.js → use-mcp-prompts-B5dgZtuY.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-AjHzJbIQ.js → use-mcp-tools-DpNh0INt.js} +1 -1
- package/dist/client/assets/{use-members-BZroloWO.js → use-members-BRjOC4BL.js} +1 -1
- package/dist/client/assets/{use-mobile-BkWraisf.js → use-mobile-BnJF8Qa_.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Dlhjy-0a.js → use-navigate-to-agent-CI_L2BEy.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BG_aw3vg.js → use-org-auth-client-DmjZpfi2.js} +1 -1
- package/dist/client/assets/{use-org-sso-CEETlaem.js → use-org-sso-B_xa25Ag.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BrhJCA0y.js → use-organization-roles-BO6fS6vf.js} +1 -1
- package/dist/client/assets/{use-organization-settings-D9G2tGsW.js → use-organization-settings-DtUUny9s.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CTTYiKTQ.js → use-registry-connections-CLetM4Ks.js} +1 -1
- package/dist/client/assets/{use-secrets-sB7thdOD.js → use-secrets-CuFzitLe.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DuOBmrHo.js → use-status-sounds-4tbPTgQW.js} +1 -1
- package/dist/client/assets/{use-view-mode-CFXBQhh0.js → use-view-mode-C2fVP0l9.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CJycW-Qv.js → use-virtual-mcp-OVYXqA3Z.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CgWnzkKu.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DtkXwhfE.js +1 -0
- package/dist/client/assets/{useSuspenseQueries-DohIOUYY.js → useSuspenseQueries-g4R4jK3t.js} +1 -1
- package/dist/client/assets/{variant-calendar-DxXS9CiZ.js → variant-calendar-amJKLF4x.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-D2SvIjQW.js → view-mode-toggle-DGsaaoN8.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-icon-BRuLsBYY.js +0 -1
- package/dist/client/assets/ai-providers-CtFbvrBB.js +0 -1
- package/dist/client/assets/app-editor-BTeZcD9G.js +0 -1
- package/dist/client/assets/category-editor-dubEmgpx.js +0 -1
- package/dist/client/assets/file-explorer-BD0vY2dd.js +0 -2
- package/dist/client/assets/index-DTpadbju.js +0 -1
- package/dist/client/assets/page-seo-sheet-BoNARuVh.js +0 -1
- package/dist/client/assets/post-editor-CHJjQHP8.js +0 -1
- package/dist/client/assets/project-app-view-ChmoDNv-.js +0 -1
- package/dist/client/assets/record-editor-CS39Vomm.js +0 -1
- package/dist/client/assets/registry-D4tm3ZFm.js +0 -2
- package/dist/client/assets/seo-editor-gJ1HxoCF.js +0 -1
- package/dist/client/assets/shell-route-loading-Bpj8AlnX.js +0 -1
- package/dist/client/assets/store-registry-DKwI23vv.js +0 -2
- package/dist/client/assets/tools-list-BrZf2-sc.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Bl42Nudd.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-uA0LQwFa.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as O,j as t,B as F,i as Y,o as Ge,s as te,E as Pe,r as $,G as re,p as Qe,u as Ye,R as W,t as Xe,l as je,e as le,aV as ke}from"./index-DHTICC_v.js";import{E as Ee}from"./empty-state-y_scHUYK.js";import{u as Ze,a as Ae}from"./use-collections-BnOL5hT8.js";import{u as ae}from"./use-mcp-client-DAJmDOVO.js";import{F as se,a as et,b as ce,d as de}from"./form-P-LOMg0X.js";import{I as me}from"./input-DgsFOGyM.js";import{T as ie}from"./textarea-Dp78LmPE.js";import{a as tt,b as st,V as ue,O as nt,M as ot}from"./index-CAQVV5KO.js";import{am as it,y as rt,ab as lt,an as at,$ as ct,ao as dt,K as be}from"./agent-icon-BRuLsBYY.js";import{g as mt,M as ut,a as Ne}from"./types-BHL4d6ji.js";import{A as xt,a as pt,b as ft}from"./alert-DGlfAxXY.js";import{d as ve,S as Se,a as ye,b as we,c as ne}from"./select-DzzBmNmo.js";import{c as ht,T as Ce,a as Ie,b as $e}from"./tooltip-CWNyrHYY.js";import{i as gt}from"./AlertCircle-D8gnDqwf.js";import{s as jt}from"./Stars02-BpRz9194.js";import{a as bt}from"./Eye-BFLaa-Ve.js";import{i as Nt}from"./Play-DuOwU6E2.js";import{b as Oe,c as Re,B as J,d as G,a as Q,e as _e}from"./breadcrumb-DZbB5tzN.js";import{g as vt}from"./connection-slug-eyAPH6o3.js";import{u as St,T as yt}from"./tools-list-BrZf2-sc.js";import{a as De,u as Me}from"./use-connection-CRsO-Bab.js";import{a as wt}from"./use-mcp-tools-AjHzJbIQ.js";import{c as Ct}from"./content-blocks-o63cs2vh.js";import{I as Te}from"./integration-icon-m6Sa_hcd.js";import{j as It,m as $t}from"./chat-context-CIKFBD8u.js";import{b as Tt}from"./shell-layout-QzfqSuxf.js";import{M as Pt}from"./monaco-editor-iFVtSMuF.js";import{n as kt}from"./XCircle-BOFvuFHl.js";import"./auth-pLLkIszG.js";import"./label-CwMsBEmc.js";import"./index-BZCHEyhA.js";import"./sidebar-D2BmctMK.js";import"./LayoutLeft-1bN-FR8E.js";import"./use-mobile-BkWraisf.js";import"./sheet-B3q7nz8B.js";import"./X-BQZZQdg0.js";import"./ZoomOut-CwXzA7X6.js";import"./Key01-D0oVN5CX.js";import"./extract-connection-data-BhI39RpO.js";import"./use-registry-connections-CTTYiKTQ.js";import"./use-organization-settings-D9G2tGsW.js";import"./studio-tools-D6ANxpFE.js";import"./Plus-Bz2JwGOE.js";import"./index-DJMmArQj.js";import"./index-D4EP6iY-.js";import"./index-BbFfuuHN.js";import"./popover-4-S-2t4S.js";import"./use-virtual-mcp-CJycW-Qv.js";import"./ChevronUp-DBXbYduj.js";import"./SearchMd-Bn2Kbs9E.js";import"./Users03-K1B4uaw7.js";import"./use-create-virtual-mcp-C50juX43.js";import"./use-navigate-to-agent-Dlhjy-0a.js";import"./Tool01-DrE6CqtR.js";import"./SwitchHorizontal01-Bcp8nSOf.js";import"./Settings02-N32UBNZq.js";import"./ArrowUpRight-BlXghneM.js";import"./ZapSquare-D4RqdrSL.js";import"./CheckCircle-DCCFCHyS.js";import"./ChevronDown-BLALKRGM.js";import"./ChevronRight-Gacf5_E2.js";import"./DotsVertical-D7ryssxp.js";import"./Globe01-Bx-hz-as.js";import"./FilterLines-CK4jmUMp.js";import"./Star01-GFElhP7X.js";import"./Globe04-u6eY2Kop.js";import"./HardDrive-B06hZ2KP.js";import"./LinkExternal01-D4vA-I3a.js";import"./Monitor01-DrJKeSJ4.js";import"./Sun-CRJdfBLT.js";import"./Palette-CvuWqoBi.js";import"./SearchLg-CfwbHNr5.js";import"./Shield01-BztOm8mA.js";import"./Stars01-CK-XatBt.js";import"./Trash01-kVRWRMat.js";import"./Upload01-TiHLQTwG.js";import"./User01-9o9EbE3X.js";import"./Users01-CMbqiB_R.js";import"./XClose-ChRyc7zA.js";import"./Zap-RN8PAcZE.js";import"./mcp-oauth-SxDhA9AX.js";import"./badge-wh5eWpb9.js";import"./hooks-UY6BFV6z.js";import"./decopilot-sse-pool-DA88fFcW.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-CVS8EjHf.js";import"./use-decopilot-events-BB7o7ets.js";import"./tab-id-DPNwWMUY.js";import"./avatar-DxH3BnSs.js";import"./dialog-BdIjDk0G.js";import"./alert-dialog-D87-BKea.js";import"./required-auth-layout-B0YEEBld.js";import"./use-org-sso-CEETlaem.js";import"./index-BwaOBBZ-.js";function Et(s){const e=O.c(15),{onSave:r,onUndo:o,isDirty:l,isSaving:i,saveLabel:c,undoLabel:d}=s,n=c===void 0?"Save":c,u=d===void 0?"Undo":d;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(it,{size:14}),e[0]=x):x=e[0];let m;e[1]!==i||e[2]!==o||e[3]!==u?(m=t.jsxs(F,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":u,children:[x,u]}),e[1]=i,e[2]=o,e[3]=u,e[4]=m):m=e[4];let p;e[5]!==i?(p=i?t.jsx(Y,{size:14,className:"animate-spin"}):t.jsx(rt,{size:14}),e[5]=i,e[6]=p):p=e[6];let f;e[7]!==i||e[8]!==r||e[9]!==n||e[10]!==p?(f=t.jsxs(F,{variant:"default",size:"sm",onClick:r,disabled:i,"aria-label":n,children:[p,n]}),e[7]=i,e[8]=r,e[9]=n,e[10]=p,e[11]=f):f=e[11];let g;return e[12]!==m||e[13]!==f?(g=t.jsxs(t.Fragment,{children:[m,f]}),e[12]=m,e[13]=f,e[14]=g):g=e[14],g}Ge({title:te().min(1),description:te().nullable(),body:te()});function oe(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function At(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),r=e>=0?s[e+1]:void 0;return r?decodeURIComponent(r):void 0}function Ot(s){const e=O.c(13),{form:r}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=o):o=e[0];let l;e[1]!==r.control?(l=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(se,{control:r.control,name:"title",render:Dt}),t.jsx(se,{control:r.control,name:"description",render:_t})]})]}),e[1]=r.control,e[2]=l):l=e[2];let i,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),c=t.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=i,e[4]=c):(i=e[3],c=e[4]);let d;e[5]!==r.control?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[i,c,t.jsx(se,{control:r.control,name:"body",render:Rt})]}),e[5]=r.control,e[6]=d):d=e[6];let n;e[7]!==l||e[8]!==d?(n=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[l,d]}),e[7]=l,e[8]=d,e[9]=n):n=e[9];let u;return e[10]!==r||e[11]!==n?(u=t.jsx(et,{...r,children:n}),e[10]=r,e[11]=n,e[12]=u):u=e[12],u}function Rt(s){const{field:e}=s;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(ie,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function _t(s){const{field:e}=s;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),t.jsx(de,{children:t.jsx(me,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Dt(s){const{field:e}=s;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),t.jsx(de,{children:t.jsx(me,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Mt(s){const e=O.c(36),{providerId:r,promptId:o}=s,{org:l}=re(),i=r||null;let c;e[0]!==l.id||e[1]!==l.slug||e[2]!==i?(c={connectionId:i,orgId:l.id,orgSlug:l.slug},e[0]=l.id,e[1]=l.slug,e[2]=i,e[3]=c):c=e[3];const d=ae(c),n=Ze(r,"PROMPT",o,d),u=Ae(r,"PROMPT",d),x=u.update.isPending;let m;e[4]!==n?(m=n?{title:n.title,description:n.description??null,body:oe(n)}:void 0,e[4]=n,e[5]=m):m=e[5];let p;e[6]!==m?(p={values:m},e[6]=m,e[7]=p):p=e[7];const f=Qe(p);let g;e[8]!==f||e[9]!==n?(g=()=>{n&&f.reset({title:n.title,description:n.description??null,body:oe(n)})},e[8]=f,e[9]=n,e[10]=g):g=e[10];const S=g;let C;e[11]!==u.update||e[12]!==f||e[13]!==o?(C=f.handleSubmit(async N=>{const E=await u.update.mutateAsync({id:o,data:{title:N.title,description:N.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:N.body}}]}});f.reset({title:E.title,description:E.description??null,body:oe(E)})}),e[11]=u.update,e[12]=f,e[13]=o,e[14]=C):C=e[14];const R=C;if(!n){let N;return e[15]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[15]=N):N=e[15],N}let I;e[16]!==n.title?(I=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[16]=n.title,e[17]=I):I=e[17];let k;e[18]!==n.description?(k=n.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:n.description})]}):null,e[18]=n.description,e[19]=k):k=e[19];let T;e[20]!==I||e[21]!==k?(T=t.jsx(st,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[I,k]})}),e[20]=I,e[21]=k,e[22]=T):T=e[22];let b;e[23]!==R?(b=()=>{R()},e[23]=R,e[24]=b):b=e[24];let y;e[25]!==f.formState.isDirty||e[26]!==x||e[27]!==S||e[28]!==b?(y=t.jsx(tt,{children:t.jsx(Et,{onSave:b,onUndo:S,isDirty:f.formState.isDirty,isSaving:x})}),e[25]=f.formState.isDirty,e[26]=x,e[27]=S,e[28]=b,e[29]=y):y=e[29];let w;e[30]!==f?(w=t.jsx("div",{className:"h-full",children:t.jsx(Ot,{form:f})}),e[30]=f,e[31]=w):w=e[31];let P;return e[32]!==y||e[33]!==w||e[34]!==T?(P=t.jsxs(ue,{children:[T,y,w]}),e[32]=y,e[33]=w,e[34]=T,e[35]=P):P=e[35],P}function zt(s){const e=O.c(4),{itemId:r}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=At(),e[0]=o):o=e[0];const l=o;if(!l){let c;return e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=c):c=e[1],c}let i;return e[2]!==r?(i=t.jsx(Pe,{children:t.jsx($.Suspense,{fallback:null,children:t.jsx(Mt,{providerId:l,promptId:r})})}),e[2]=r,e[3]=i):i=e[3],i}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=O.c(11),{toolName:r,connectionId:o,siblings:l,onSelectInstance:i,onBack:c}=s;let d;e[0]!==o?(d={connectionId:o},e[0]=o,e[1]=d):d=e[1];const n=St(d);if(!n.isAuthenticated){let m;return e[2]!==n.supportsOAuth||e[3]!==c?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:n.supportsOAuth?t.jsx(nt,{onAuthenticate:()=>c(),buttonText:"Go back to authenticate"}):t.jsx(ot,{hasReadme:!1})}),e[2]=n.supportsOAuth,e[3]=c,e[4]=m):m=e[4],m}const u=`${o}:${r}`;let x;return e[5]!==o||e[6]!==i||e[7]!==l||e[8]!==u||e[9]!==r?(x=t.jsx(Bt,{toolName:r,connectionId:o,siblings:l,onSelectInstance:i},u),e[5]=o,e[6]=i,e[7]=l,e[8]=u,e[9]=r,e[10]=x):x=e[10],x}function Bt({toolName:s,connectionId:e,siblings:r,onSelectInstance:o}){const{replayId:l}=Ye({strict:!1}),i=(()=>{if(!l)return null;const a=`replay-${l}`,h=sessionStorage.getItem(a);if(!h)return null;sessionStorage.removeItem(a);try{return JSON.parse(h)}catch{return null}})(),c=(()=>{if(!i)return null;const a={};for(const[h,v]of Object.entries(i))v!==null&&typeof v=="object"?a[h]=JSON.stringify(v,null,2):a[h]=v;return a})(),[d,n]=$.useState(c??{}),[u,x]=$.useState(i?JSON.stringify(i,null,2):"{}"),[m,p]=$.useState(null),[f,g]=$.useState(null),[S,C]=$.useState(null),[R,I]=$.useState(null),[k,T]=$.useState(!1),[b,y]=$.useState(null),{org:w}=re(),P=De(e),N=It(),E=$t(),{setChatOpen:U}=Tt(),z=`${e}:${s}`,_=ae({connectionId:e,orgId:w.id,orgSlug:w.slug}),L=wt({client:_}),j=L.data?.tools?.find(a=>a.name===s),A=mt(j?._meta),V=a=>{if(!N)return;const h=Ct(a.content);h.content.length>0&&(U(!0),N.sendMessage({tiptapDoc:h}))},[D,X]=$.useState("json"),[ze,Le]=$.useState(!1);A&&!ze&&(X("ui"),Le(!0));const xe=j?.inputSchema?.properties,pe=xe?Object.keys(xe):[],q=pe.length>0,H={};if(q&&j?.inputSchema?.properties)for(const a of pe)H[a]=j.inputSchema.required?.includes(a)?"":void 0;const Z=a=>Object.prototype.hasOwnProperty.call(d,a),Ue=async()=>{T(!0),I(null),p(null),g(null),C(null),y(null);const a=performance.now();try{if(!_)throw new Error("MCP client is not available");const h=q?{...H,...d}:(()=>{const M=u.trim();if(!M)return{};const B=JSON.parse(M);if(B&&typeof B=="object")return B;throw new Error("Raw JSON input must be an object.")})();q&&j?.inputSchema?.properties&&Object.entries(j.inputSchema.properties).forEach(([M,B])=>{if((B.type==="object"||B.type==="array")&&typeof h[M]=="string")try{h[M]=JSON.parse(h[M])}catch{}else if((B.type==="number"||B.type==="integer")&&typeof h[M]=="string"&&h[M]!==""){const ge=Number(h[M]);Number.isNaN(ge)||(h[M]=ge)}});const v=await _.callTool({name:s,arguments:h}),K=v.structuredContent??v,He=performance.now(),Ke=Math.round(He-a);p(K),g(v),C(h);const We=JSON.stringify(K),he=new TextEncoder().encode(We).length;y({duration:`${Ke}ms`,bytes:`${he} bytes`,tokens:`~${Math.ceil(he/4)} tokens`,cost:"$0.0000"})}catch(h){const v=h instanceof Error?h.message:String(h);I(v||"Unknown error occurred");const K=performance.now();y({duration:`${Math.round(K-a)}ms`})}finally{T(!1)}},ee=(a,h)=>{n(v=>({...v,[a]:h}))},Be=()=>{p(null),g(null),C(null),I(null),y(null)},Fe=j?.name??Lt(s),Ve=t.jsx(Oe,{children:t.jsxs(Re,{children:[t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(W,{to:"/$org/settings/connections",params:{org:w.slug},children:"Connections"})})}),t.jsx(Q,{}),P&&t.jsxs(t.Fragment,{children:[t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(W,{to:"/$org/settings/connections/$appSlug",params:{org:w.slug,appSlug:vt(P)},search:{tab:"tools"},children:P.title})})}),t.jsx(Q,{})]}),t.jsx(J,{children:t.jsx(_e,{children:Fe})})]})}),fe=r.length>1&&t.jsxs(ve,{value:e,onValueChange:o,children:[t.jsx(Se,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(ye,{})}),t.jsx(we,{children:r.map(a=>t.jsx(ne,{value:a.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Te,{icon:a.icon,name:a.title,size:"xs",className:"shrink-0"}),a.title]})},a.id))})]}),Je=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),j?.inputSchema?.required&&j.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),t.jsx("div",{className:"space-y-4",children:q&&j?.inputSchema?.properties?Object.entries(j.inputSchema.properties).map(([a,h])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[a,j.inputSchema?.required?.includes(a)&&t.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:h.type})]}),h.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:h.description}),h.type==="object"||h.type==="array"?t.jsx(ie,{className:"font-mono text-xs",value:Z(a)?d[a]??"":H[a]??"",onChange:v=>ee(a,v.target.value),placeholder:`Enter ${a} as JSON...`,rows:3}):h.type==="boolean"?t.jsxs(ve,{value:Z(a)?String(d[a]??""):"",onValueChange:v=>ee(a,v==="true"),children:[t.jsx(Se,{children:t.jsx(ye,{placeholder:"Select true or false..."})}),t.jsxs(we,{children:[t.jsx(ne,{value:"true",children:"true"}),t.jsx(ne,{value:"false",children:"false"})]})]}):t.jsx(me,{value:Z(a)?d[a]??"":H[a]??"",onChange:v=>ee(a,v.target.value),placeholder:`Enter ${a}...`})]},a)):j?.inputSchema&&!q?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),t.jsx(ie,{className:"font-mono text-xs min-h-[120px]",value:u,onChange:a=>x(a.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:k?t.jsxs(F,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Be,children:[t.jsx(lt,{className:"h-3.5 w-3.5"}),"Cancel"]}):t.jsxs(F,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Ue,children:[t.jsx(Nt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})})]}),qe=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(jt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(at,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ct,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),A&&t.jsx(ht,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Ce,{children:[t.jsx(Ie,{asChild:!0,children:t.jsx(F,{size:"icon",variant:D==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("ui"),children:t.jsx(dt,{size:14})})}),t.jsx($e,{children:"Interactive view"})]}),t.jsxs(Ce,{children:[t.jsx(Ie,{asChild:!0,children:t.jsx(F,{size:"icon",variant:D==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("json"),children:t.jsx(be,{size:14})})}),t.jsx($e,{children:"JSON view"})]})]})})]})]}),R&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(xt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(gt,{className:"h-4 w-4"}),t.jsx(pt,{className:"mb-0",children:"Execution Failed"})]}),t.jsx(ft,{className:"text-xs text-destructive",children:R})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:A&&D==="ui"&&_?t.jsx($.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:t.jsx(ut,{resourceURI:A,toolInfo:j?{tool:j}:void 0,toolInput:S??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:Ne.view.minHeight,maxHeight:Ne.view.maxHeight,client:_,onMessage:V,onUpdateModelContext:a=>E?.setAppContext(z,a),onTeardown:()=>E?.clearAppContext(z),className:"h-full"})}):m?t.jsxs(t.Fragment,{children:[t.jsx(Pt,{code:JSON.stringify(m,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(F,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(m,null,2)),Xe.success("Copied to clipboard")},children:t.jsx(bt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(be,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]});return t.jsx(ue,{breadcrumb:Ve,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Te,{icon:P?.icon||null,name:P?.title||s,size:"xl",className:"shrink-0"}),t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[L.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):L.isLoading?t.jsx(Y,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:L.isSuccess?"ready":L.isLoading?"connecting":"error"})]}),t.jsx(yt,{annotations:j?.annotations,_meta:j?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:fe})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:j?.description||"No description available"})]}),r.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:"Instance"}),fe]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Je}),qe]})})]})})}function Ft(s){const e=O.c(10),{itemId:r,siblings:o,onBack:l}=s,[i,c]=$.useState(o[0]?.id??"");let d;e[0]!==i||e[1]!==o?(d=o.find(p=>p.id===i)?.id??o[0]?.id??"",e[0]=i,e[1]=o,e[2]=d):d=e[2];const n=d;if(!De(n||void 0)||!n){let p;return e[3]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[t.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[3]=p):p=e[3],p}let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}),e[4]=x):x=e[4];let m;return e[5]!==n||e[6]!==l||e[7]!==o||e[8]!==r?(m=t.jsx($.Suspense,{fallback:x,children:t.jsx(Ut,{toolName:r,connectionId:n,siblings:o,onSelectInstance:c,onBack:l})}),e[5]=n,e[6]=l,e[7]=o,e[8]=r,e[9]=m):m=e[9],m}function Vt(s){const e=O.c(21),{icon:r,illustration:o,title:l,description:i,buttonProps:c,buttonComponent:d,className:n,children:u}=s;let x;e[0]!==n?(x=je("flex flex-col items-center justify-center py-16 text-center",n),e[0]=n,e[1]=x):x=e[1];let m;e[2]!==r||e[3]!==o?(m=o?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:o}):r?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:r}):null,e[2]=r,e[3]=o,e[4]=m):m=e[4];let p;e[5]!==l?(p=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:l}),e[5]=l,e[6]=p):p=e[6];let f;e[7]!==i?(f=i&&t.jsx("div",{className:"text-sm text-muted-foreground",children:i}),e[7]=i,e[8]=f):f=e[8];let g;e[9]!==p||e[10]!==f?(g=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[p,f]}),e[9]=p,e[10]=f,e[11]=g):g=e[11];let S;e[12]!==d||e[13]!==c?(S=(d??c)&&t.jsx("div",{className:"mt-4",children:d??(c&&t.jsx(F,{size:"sm",className:je(c?.className),...c}))}),e[12]=d,e[13]=c,e[14]=S):S=e[14];let C;return e[15]!==u||e[16]!==x||e[17]!==m||e[18]!==g||e[19]!==S?(C=t.jsxs("div",{className:x,children:[m,g,S,u]}),e[15]=u,e[16]=x,e[17]=m,e[18]=g,e[19]=S,e[20]=C):C=e[20],C}const Jt={prompt:zt};function qt(){const s=O.c(9),e=ke();let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=r):r=s[0];const o=le(r),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const c=Me(i);let d;s[3]!==e.history?(d=()=>{e.history.back()},s[3]=e.history,s[4]=d):d=s[4];const n=d,u=Ht;let x;return s[5]!==n||s[6]!==l||s[7]!==c?(x=t.jsx(Ft,{itemId:l,siblings:c,onBack:n,onUpdate:u}),s[5]=n,s[6]=l,s[7]=c,s[8]=x):x=s[8],x}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=O.c(41),e=ke();let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=r):r=s[0];const o=le(r),l=decodeURIComponent(o.collectionName),i=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:n}=re();let u;s[3]!==o.appSlug?(u={slug:o.appSlug},s[3]=o.appSlug,s[4]=u):u=s[4];const m=Me(u)[0]??null,p=m?.id??"",f=p||"no-connection",g=p??null;let S;s[5]!==n.id||s[6]!==n.slug||s[7]!==g?(S={connectionId:g,orgId:n.id,orgSlug:n.slug},s[5]=n.id,s[6]=n.slug,s[7]=g,s[8]=S):S=s[8];const C=ae(S),R=Ae(f,l,C);let I;s[9]!==R||s[10]!==i?(I=async D=>{i&&await R.update.mutateAsync({id:i,data:D})},s[9]=R,s[10]=i,s[11]=I):I=s[11];const k=I;let T;s[12]!==l?(T=l?.toLowerCase(),s[12]=l,s[13]=T):T=s[13];const b=T,y=b&&Jt[b];let w;s[14]!==l?(w=Kt(l),s[14]=l,s[15]=w):w=s[15];const P=w;let N;s[16]!==n.slug?(N=t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(W,{to:"/$org/settings/connections",params:{org:n.slug},children:"Connections"})})}),s[16]=n.slug,s[17]=N):N=s[17];let E;s[18]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(Q,{}),s[18]=E):E=s[18];let U;s[19]!==l||s[20]!==m||s[21]!==n.slug||s[22]!==o.appSlug?(U=m&&t.jsxs(t.Fragment,{children:[t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(W,{to:"/$org/settings/connections/$appSlug",params:{org:n.slug,appSlug:o.appSlug},search:{tab:l},children:m.title})})}),t.jsx(Q,{})]}),s[19]=l,s[20]=m,s[21]=n.slug,s[22]=o.appSlug,s[23]=U):U=s[23];let z;s[24]!==P?(z=t.jsx(J,{children:t.jsx(_e,{children:P})}),s[24]=P,s[25]=z):z=s[25];let _;s[26]!==U||s[27]!==z||s[28]!==N?(_=t.jsx(Oe,{children:t.jsxs(Re,{children:[N,E,U,z]})}),s[26]=U,s[27]=z,s[28]=N,s[29]=_):_=s[29];const L=_;if(y){let D;return s[30]!==y||s[31]!==d||s[32]!==k||s[33]!==i?(D=t.jsx(y,{itemId:i,onBack:d,onUpdate:k}),s[30]=y,s[31]=d,s[32]=k,s[33]=i,s[34]=D):D=s[34],D}let j;s[35]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(kt,{size:36,className:"text-muted-foreground"}),s[35]=j):j=s[35];let A;s[36]!==d?(A=t.jsx(Vt,{icon:j,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:d,children:"Go back"}}),s[36]=d,s[37]=A):A=s[37];let V;return s[38]!==L||s[39]!==A?(V=t.jsx(ue,{breadcrumb:L,children:A}),s[38]=L,s[39]=A,s[40]=V):V=s[40],V}function Gt(){const s=O.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const r=le(e);if(decodeURIComponent(r.collectionName)==="tools"){let c;return s[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(qt,{}),s[1]=c):c=s[1],c}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Wt,{}),s[2]=i):i=s[2],i}function zn(){const s=O.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Pe,{children:t.jsx($.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Gt,{})})}),s[0]=e):e=s[0],e}export{zn as default};
|
|
1
|
+
import{c as O,j as t,B as F,i as Y,o as Ge,s as te,E as Pe,r as $,G as re,p as Qe,u as Ye,R as W,t as Xe,l as je,e as le,aW as ke}from"./index-qfheH9Xc.js";import{E as Ee}from"./empty-state-B08-kVr_.js";import{u as Ze,a as Ae}from"./use-collections-CQf58LpF.js";import{u as ae}from"./use-mcp-client-CpnbLiac.js";import{F as se,a as et,b as ce,d as de}from"./form-D1efg8C-.js";import{I as me}from"./input-c3bkJxBD.js";import{T as ie}from"./textarea-DE7i4Gz-.js";import{a as tt,b as st,V as ue,O as nt,M as ot}from"./index-cif87MVR.js";import{am as it,y as rt,ab as lt,an as at,$ as ct,ao as dt,K as be}from"./agent-icon-C1BWispo.js";import{g as mt,M as ut,a as Ne}from"./types-BxTesI-C.js";import{A as xt,a as pt,b as ft}from"./alert-DAyg3TSF.js";import{d as ve,S as Se,a as ye,b as we,c as ne}from"./select-CyjV0F4C.js";import{c as ht,T as Ce,a as Ie,b as $e}from"./tooltip-CBYM2iV5.js";import{i as gt}from"./AlertCircle-DdrwwZMq.js";import{s as jt}from"./Stars02-YL1S7hw5.js";import{a as bt}from"./Eye-o5yQXJvl.js";import{i as Nt}from"./Play-DqQKGu-U.js";import{b as Oe,c as Re,B as J,d as G,a as Q,e as _e}from"./breadcrumb-C_jNPElt.js";import{g as vt}from"./connection-slug-eyAPH6o3.js";import{u as St,T as yt}from"./tools-list-Bq5PisM1.js";import{a as De,u as Me}from"./use-connection-BuG3o_JE.js";import{a as wt}from"./use-mcp-tools-DpNh0INt.js";import{c as Ct}from"./content-blocks-o63cs2vh.js";import{I as Te}from"./integration-icon-DsTjAPrY.js";import{j as It,m as $t}from"./chat-context-BXvC8snN.js";import{b as Tt}from"./shell-layout-DbD_tkNz.js";import{M as Pt}from"./monaco-editor-Bn7nTC-y.js";import{n as kt}from"./XCircle-D1ibZ16t.js";import"./auth-ou2428Bw.js";import"./label-C-M0DX5a.js";import"./index-pn1YPMKj.js";import"./sidebar-Dk_5AbOf.js";import"./LayoutLeft-Ck3c6EbZ.js";import"./use-mobile-BnJF8Qa_.js";import"./sheet-DuOoVZUG.js";import"./X-D1xM7jXL.js";import"./ZoomOut-DfCeUHFX.js";import"./Key01-DgIKoZGo.js";import"./extract-connection-data-X711B5tE.js";import"./use-registry-connections-CLetM4Ks.js";import"./use-organization-settings-DtUUny9s.js";import"./studio-tools-BaSvhr-J.js";import"./Plus-DZiClNST.js";import"./index-D3ZbfB7L.js";import"./index-C3i4LyhT.js";import"./index-DikJYrmI.js";import"./popover-DvGqLTJl.js";import"./use-virtual-mcp-OVYXqA3Z.js";import"./ChevronUp-BGt4chTY.js";import"./SearchMd-CYoVQBZq.js";import"./Users03-B-JAgn9g.js";import"./use-create-virtual-mcp-LuXF-lyt.js";import"./use-navigate-to-agent-CI_L2BEy.js";import"./Tool01-84S8urW1.js";import"./SwitchHorizontal01-1JfD3pEr.js";import"./Settings02-C-6P9tLl.js";import"./ArrowUpRight-jXBy9ipz.js";import"./ZapSquare-B4AjMOPu.js";import"./CheckCircle-3ZOkMXIL.js";import"./ChevronDown-CLx4-WM1.js";import"./ChevronRight-jYKilAXW.js";import"./DotsVertical-CqrNmdxL.js";import"./Globe01-CcG20jKe.js";import"./FilterLines-CDGBU4Yu.js";import"./Star01-CkOKT_Ec.js";import"./Globe04-Cv_V-Fs_.js";import"./HardDrive-BSIK0u4A.js";import"./LinkExternal01-C4RHyT_k.js";import"./Monitor01-CWIDsYmm.js";import"./Sun-CX24eczl.js";import"./Palette-BFwjtSY1.js";import"./SearchLg-CaS6w27I.js";import"./Shield01-B3rvsBtl.js";import"./Stars01-sPe6wVRL.js";import"./Trash01-oru1b8W8.js";import"./Upload01-Cou_1dwr.js";import"./User01-BL-jdznB.js";import"./Users01-CvViXbMH.js";import"./XClose-D0Zu_lRC.js";import"./Zap-Bo8lb0F-.js";import"./mcp-oauth-D8P2QaWG.js";import"./badge-DjU6bfHE.js";import"./hooks-BgBnOJ3c.js";import"./decopilot-sse-pool-DrXwOdO1.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-BLBRqrOl.js";import"./use-decopilot-events-uI4wGrsY.js";import"./tab-id-DPNwWMUY.js";import"./avatar-tYV7Xj5e.js";import"./dialog-DaSKz7DM.js";import"./alert-dialog-ha1v59qY.js";import"./required-auth-layout-CrFETKOt.js";import"./use-org-sso-B_xa25Ag.js";import"./index-B96RsdAE.js";function Et(s){const e=O.c(15),{onSave:r,onUndo:o,isDirty:l,isSaving:i,saveLabel:c,undoLabel:d}=s,n=c===void 0?"Save":c,u=d===void 0?"Undo":d;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(it,{size:14}),e[0]=x):x=e[0];let m;e[1]!==i||e[2]!==o||e[3]!==u?(m=t.jsxs(F,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":u,children:[x,u]}),e[1]=i,e[2]=o,e[3]=u,e[4]=m):m=e[4];let p;e[5]!==i?(p=i?t.jsx(Y,{size:14,className:"animate-spin"}):t.jsx(rt,{size:14}),e[5]=i,e[6]=p):p=e[6];let f;e[7]!==i||e[8]!==r||e[9]!==n||e[10]!==p?(f=t.jsxs(F,{variant:"default",size:"sm",onClick:r,disabled:i,"aria-label":n,children:[p,n]}),e[7]=i,e[8]=r,e[9]=n,e[10]=p,e[11]=f):f=e[11];let g;return e[12]!==m||e[13]!==f?(g=t.jsxs(t.Fragment,{children:[m,f]}),e[12]=m,e[13]=f,e[14]=g):g=e[14],g}Ge({title:te().min(1),description:te().nullable(),body:te()});function oe(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function At(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),r=e>=0?s[e+1]:void 0;return r?decodeURIComponent(r):void 0}function Ot(s){const e=O.c(13),{form:r}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=o):o=e[0];let l;e[1]!==r.control?(l=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(se,{control:r.control,name:"title",render:Dt}),t.jsx(se,{control:r.control,name:"description",render:_t})]})]}),e[1]=r.control,e[2]=l):l=e[2];let i,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),c=t.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=i,e[4]=c):(i=e[3],c=e[4]);let d;e[5]!==r.control?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[i,c,t.jsx(se,{control:r.control,name:"body",render:Rt})]}),e[5]=r.control,e[6]=d):d=e[6];let n;e[7]!==l||e[8]!==d?(n=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[l,d]}),e[7]=l,e[8]=d,e[9]=n):n=e[9];let u;return e[10]!==r||e[11]!==n?(u=t.jsx(et,{...r,children:n}),e[10]=r,e[11]=n,e[12]=u):u=e[12],u}function Rt(s){const{field:e}=s;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(ie,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function _t(s){const{field:e}=s;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),t.jsx(de,{children:t.jsx(me,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Dt(s){const{field:e}=s;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),t.jsx(de,{children:t.jsx(me,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Mt(s){const e=O.c(36),{providerId:r,promptId:o}=s,{org:l}=re(),i=r||null;let c;e[0]!==l.id||e[1]!==l.slug||e[2]!==i?(c={connectionId:i,orgId:l.id,orgSlug:l.slug},e[0]=l.id,e[1]=l.slug,e[2]=i,e[3]=c):c=e[3];const d=ae(c),n=Ze(r,"PROMPT",o,d),u=Ae(r,"PROMPT",d),x=u.update.isPending;let m;e[4]!==n?(m=n?{title:n.title,description:n.description??null,body:oe(n)}:void 0,e[4]=n,e[5]=m):m=e[5];let p;e[6]!==m?(p={values:m},e[6]=m,e[7]=p):p=e[7];const f=Qe(p);let g;e[8]!==f||e[9]!==n?(g=()=>{n&&f.reset({title:n.title,description:n.description??null,body:oe(n)})},e[8]=f,e[9]=n,e[10]=g):g=e[10];const S=g;let C;e[11]!==u.update||e[12]!==f||e[13]!==o?(C=f.handleSubmit(async N=>{const E=await u.update.mutateAsync({id:o,data:{title:N.title,description:N.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:N.body}}]}});f.reset({title:E.title,description:E.description??null,body:oe(E)})}),e[11]=u.update,e[12]=f,e[13]=o,e[14]=C):C=e[14];const R=C;if(!n){let N;return e[15]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[15]=N):N=e[15],N}let I;e[16]!==n.title?(I=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[16]=n.title,e[17]=I):I=e[17];let k;e[18]!==n.description?(k=n.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:n.description})]}):null,e[18]=n.description,e[19]=k):k=e[19];let T;e[20]!==I||e[21]!==k?(T=t.jsx(st,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[I,k]})}),e[20]=I,e[21]=k,e[22]=T):T=e[22];let b;e[23]!==R?(b=()=>{R()},e[23]=R,e[24]=b):b=e[24];let y;e[25]!==f.formState.isDirty||e[26]!==x||e[27]!==S||e[28]!==b?(y=t.jsx(tt,{children:t.jsx(Et,{onSave:b,onUndo:S,isDirty:f.formState.isDirty,isSaving:x})}),e[25]=f.formState.isDirty,e[26]=x,e[27]=S,e[28]=b,e[29]=y):y=e[29];let w;e[30]!==f?(w=t.jsx("div",{className:"h-full",children:t.jsx(Ot,{form:f})}),e[30]=f,e[31]=w):w=e[31];let P;return e[32]!==y||e[33]!==w||e[34]!==T?(P=t.jsxs(ue,{children:[T,y,w]}),e[32]=y,e[33]=w,e[34]=T,e[35]=P):P=e[35],P}function zt(s){const e=O.c(4),{itemId:r}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=At(),e[0]=o):o=e[0];const l=o;if(!l){let c;return e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=c):c=e[1],c}let i;return e[2]!==r?(i=t.jsx(Pe,{children:t.jsx($.Suspense,{fallback:null,children:t.jsx(Mt,{providerId:l,promptId:r})})}),e[2]=r,e[3]=i):i=e[3],i}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=O.c(11),{toolName:r,connectionId:o,siblings:l,onSelectInstance:i,onBack:c}=s;let d;e[0]!==o?(d={connectionId:o},e[0]=o,e[1]=d):d=e[1];const n=St(d);if(!n.isAuthenticated){let m;return e[2]!==n.supportsOAuth||e[3]!==c?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:n.supportsOAuth?t.jsx(nt,{onAuthenticate:()=>c(),buttonText:"Go back to authenticate"}):t.jsx(ot,{hasReadme:!1})}),e[2]=n.supportsOAuth,e[3]=c,e[4]=m):m=e[4],m}const u=`${o}:${r}`;let x;return e[5]!==o||e[6]!==i||e[7]!==l||e[8]!==u||e[9]!==r?(x=t.jsx(Bt,{toolName:r,connectionId:o,siblings:l,onSelectInstance:i},u),e[5]=o,e[6]=i,e[7]=l,e[8]=u,e[9]=r,e[10]=x):x=e[10],x}function Bt({toolName:s,connectionId:e,siblings:r,onSelectInstance:o}){const{replayId:l}=Ye({strict:!1}),i=(()=>{if(!l)return null;const a=`replay-${l}`,h=sessionStorage.getItem(a);if(!h)return null;sessionStorage.removeItem(a);try{return JSON.parse(h)}catch{return null}})(),c=(()=>{if(!i)return null;const a={};for(const[h,v]of Object.entries(i))v!==null&&typeof v=="object"?a[h]=JSON.stringify(v,null,2):a[h]=v;return a})(),[d,n]=$.useState(c??{}),[u,x]=$.useState(i?JSON.stringify(i,null,2):"{}"),[m,p]=$.useState(null),[f,g]=$.useState(null),[S,C]=$.useState(null),[R,I]=$.useState(null),[k,T]=$.useState(!1),[b,y]=$.useState(null),{org:w}=re(),P=De(e),N=It(),E=$t(),{setChatOpen:U}=Tt(),z=`${e}:${s}`,_=ae({connectionId:e,orgId:w.id,orgSlug:w.slug}),L=wt({client:_}),j=L.data?.tools?.find(a=>a.name===s),A=mt(j?._meta),V=a=>{if(!N)return;const h=Ct(a.content);h.content.length>0&&(U(!0),N.sendMessage({tiptapDoc:h}))},[D,X]=$.useState("json"),[ze,Le]=$.useState(!1);A&&!ze&&(X("ui"),Le(!0));const xe=j?.inputSchema?.properties,pe=xe?Object.keys(xe):[],q=pe.length>0,H={};if(q&&j?.inputSchema?.properties)for(const a of pe)H[a]=j.inputSchema.required?.includes(a)?"":void 0;const Z=a=>Object.prototype.hasOwnProperty.call(d,a),Ue=async()=>{T(!0),I(null),p(null),g(null),C(null),y(null);const a=performance.now();try{if(!_)throw new Error("MCP client is not available");const h=q?{...H,...d}:(()=>{const M=u.trim();if(!M)return{};const B=JSON.parse(M);if(B&&typeof B=="object")return B;throw new Error("Raw JSON input must be an object.")})();q&&j?.inputSchema?.properties&&Object.entries(j.inputSchema.properties).forEach(([M,B])=>{if((B.type==="object"||B.type==="array")&&typeof h[M]=="string")try{h[M]=JSON.parse(h[M])}catch{}else if((B.type==="number"||B.type==="integer")&&typeof h[M]=="string"&&h[M]!==""){const ge=Number(h[M]);Number.isNaN(ge)||(h[M]=ge)}});const v=await _.callTool({name:s,arguments:h}),K=v.structuredContent??v,He=performance.now(),Ke=Math.round(He-a);p(K),g(v),C(h);const We=JSON.stringify(K),he=new TextEncoder().encode(We).length;y({duration:`${Ke}ms`,bytes:`${he} bytes`,tokens:`~${Math.ceil(he/4)} tokens`,cost:"$0.0000"})}catch(h){const v=h instanceof Error?h.message:String(h);I(v||"Unknown error occurred");const K=performance.now();y({duration:`${Math.round(K-a)}ms`})}finally{T(!1)}},ee=(a,h)=>{n(v=>({...v,[a]:h}))},Be=()=>{p(null),g(null),C(null),I(null),y(null)},Fe=j?.name??Lt(s),Ve=t.jsx(Oe,{children:t.jsxs(Re,{children:[t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(W,{to:"/$org/settings/connections",params:{org:w.slug},children:"Connections"})})}),t.jsx(Q,{}),P&&t.jsxs(t.Fragment,{children:[t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(W,{to:"/$org/settings/connections/$appSlug",params:{org:w.slug,appSlug:vt(P)},search:{tab:"tools"},children:P.title})})}),t.jsx(Q,{})]}),t.jsx(J,{children:t.jsx(_e,{children:Fe})})]})}),fe=r.length>1&&t.jsxs(ve,{value:e,onValueChange:o,children:[t.jsx(Se,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(ye,{})}),t.jsx(we,{children:r.map(a=>t.jsx(ne,{value:a.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Te,{icon:a.icon,name:a.title,size:"xs",className:"shrink-0"}),a.title]})},a.id))})]}),Je=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),j?.inputSchema?.required&&j.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),t.jsx("div",{className:"space-y-4",children:q&&j?.inputSchema?.properties?Object.entries(j.inputSchema.properties).map(([a,h])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[a,j.inputSchema?.required?.includes(a)&&t.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:h.type})]}),h.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:h.description}),h.type==="object"||h.type==="array"?t.jsx(ie,{className:"font-mono text-xs",value:Z(a)?d[a]??"":H[a]??"",onChange:v=>ee(a,v.target.value),placeholder:`Enter ${a} as JSON...`,rows:3}):h.type==="boolean"?t.jsxs(ve,{value:Z(a)?String(d[a]??""):"",onValueChange:v=>ee(a,v==="true"),children:[t.jsx(Se,{children:t.jsx(ye,{placeholder:"Select true or false..."})}),t.jsxs(we,{children:[t.jsx(ne,{value:"true",children:"true"}),t.jsx(ne,{value:"false",children:"false"})]})]}):t.jsx(me,{value:Z(a)?d[a]??"":H[a]??"",onChange:v=>ee(a,v.target.value),placeholder:`Enter ${a}...`})]},a)):j?.inputSchema&&!q?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),t.jsx(ie,{className:"font-mono text-xs min-h-[120px]",value:u,onChange:a=>x(a.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:k?t.jsxs(F,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Be,children:[t.jsx(lt,{className:"h-3.5 w-3.5"}),"Cancel"]}):t.jsxs(F,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Ue,children:[t.jsx(Nt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})})]}),qe=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(jt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(at,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ct,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),A&&t.jsx(ht,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Ce,{children:[t.jsx(Ie,{asChild:!0,children:t.jsx(F,{size:"icon",variant:D==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("ui"),children:t.jsx(dt,{size:14})})}),t.jsx($e,{children:"Interactive view"})]}),t.jsxs(Ce,{children:[t.jsx(Ie,{asChild:!0,children:t.jsx(F,{size:"icon",variant:D==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("json"),children:t.jsx(be,{size:14})})}),t.jsx($e,{children:"JSON view"})]})]})})]})]}),R&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(xt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(gt,{className:"h-4 w-4"}),t.jsx(pt,{className:"mb-0",children:"Execution Failed"})]}),t.jsx(ft,{className:"text-xs text-destructive",children:R})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:A&&D==="ui"&&_?t.jsx($.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:t.jsx(ut,{resourceURI:A,toolInfo:j?{tool:j}:void 0,toolInput:S??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:Ne.view.minHeight,maxHeight:Ne.view.maxHeight,client:_,onMessage:V,onUpdateModelContext:a=>E?.setAppContext(z,a),onTeardown:()=>E?.clearAppContext(z),className:"h-full"})}):m?t.jsxs(t.Fragment,{children:[t.jsx(Pt,{code:JSON.stringify(m,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(F,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(m,null,2)),Xe.success("Copied to clipboard")},children:t.jsx(bt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(be,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]});return t.jsx(ue,{breadcrumb:Ve,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Te,{icon:P?.icon||null,name:P?.title||s,size:"xl",className:"shrink-0"}),t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[L.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):L.isLoading?t.jsx(Y,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:L.isSuccess?"ready":L.isLoading?"connecting":"error"})]}),t.jsx(yt,{annotations:j?.annotations,_meta:j?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:fe})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:j?.description||"No description available"})]}),r.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:"Instance"}),fe]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Je}),qe]})})]})})}function Ft(s){const e=O.c(10),{itemId:r,siblings:o,onBack:l}=s,[i,c]=$.useState(o[0]?.id??"");let d;e[0]!==i||e[1]!==o?(d=o.find(p=>p.id===i)?.id??o[0]?.id??"",e[0]=i,e[1]=o,e[2]=d):d=e[2];const n=d;if(!De(n||void 0)||!n){let p;return e[3]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[t.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[3]=p):p=e[3],p}let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}),e[4]=x):x=e[4];let m;return e[5]!==n||e[6]!==l||e[7]!==o||e[8]!==r?(m=t.jsx($.Suspense,{fallback:x,children:t.jsx(Ut,{toolName:r,connectionId:n,siblings:o,onSelectInstance:c,onBack:l})}),e[5]=n,e[6]=l,e[7]=o,e[8]=r,e[9]=m):m=e[9],m}function Vt(s){const e=O.c(21),{icon:r,illustration:o,title:l,description:i,buttonProps:c,buttonComponent:d,className:n,children:u}=s;let x;e[0]!==n?(x=je("flex flex-col items-center justify-center py-16 text-center",n),e[0]=n,e[1]=x):x=e[1];let m;e[2]!==r||e[3]!==o?(m=o?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:o}):r?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:r}):null,e[2]=r,e[3]=o,e[4]=m):m=e[4];let p;e[5]!==l?(p=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:l}),e[5]=l,e[6]=p):p=e[6];let f;e[7]!==i?(f=i&&t.jsx("div",{className:"text-sm text-muted-foreground",children:i}),e[7]=i,e[8]=f):f=e[8];let g;e[9]!==p||e[10]!==f?(g=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[p,f]}),e[9]=p,e[10]=f,e[11]=g):g=e[11];let S;e[12]!==d||e[13]!==c?(S=(d??c)&&t.jsx("div",{className:"mt-4",children:d??(c&&t.jsx(F,{size:"sm",className:je(c?.className),...c}))}),e[12]=d,e[13]=c,e[14]=S):S=e[14];let C;return e[15]!==u||e[16]!==x||e[17]!==m||e[18]!==g||e[19]!==S?(C=t.jsxs("div",{className:x,children:[m,g,S,u]}),e[15]=u,e[16]=x,e[17]=m,e[18]=g,e[19]=S,e[20]=C):C=e[20],C}const Jt={prompt:zt};function qt(){const s=O.c(9),e=ke();let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=r):r=s[0];const o=le(r),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const c=Me(i);let d;s[3]!==e.history?(d=()=>{e.history.back()},s[3]=e.history,s[4]=d):d=s[4];const n=d,u=Ht;let x;return s[5]!==n||s[6]!==l||s[7]!==c?(x=t.jsx(Ft,{itemId:l,siblings:c,onBack:n,onUpdate:u}),s[5]=n,s[6]=l,s[7]=c,s[8]=x):x=s[8],x}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=O.c(41),e=ke();let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=r):r=s[0];const o=le(r),l=decodeURIComponent(o.collectionName),i=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:n}=re();let u;s[3]!==o.appSlug?(u={slug:o.appSlug},s[3]=o.appSlug,s[4]=u):u=s[4];const m=Me(u)[0]??null,p=m?.id??"",f=p||"no-connection",g=p??null;let S;s[5]!==n.id||s[6]!==n.slug||s[7]!==g?(S={connectionId:g,orgId:n.id,orgSlug:n.slug},s[5]=n.id,s[6]=n.slug,s[7]=g,s[8]=S):S=s[8];const C=ae(S),R=Ae(f,l,C);let I;s[9]!==R||s[10]!==i?(I=async D=>{i&&await R.update.mutateAsync({id:i,data:D})},s[9]=R,s[10]=i,s[11]=I):I=s[11];const k=I;let T;s[12]!==l?(T=l?.toLowerCase(),s[12]=l,s[13]=T):T=s[13];const b=T,y=b&&Jt[b];let w;s[14]!==l?(w=Kt(l),s[14]=l,s[15]=w):w=s[15];const P=w;let N;s[16]!==n.slug?(N=t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(W,{to:"/$org/settings/connections",params:{org:n.slug},children:"Connections"})})}),s[16]=n.slug,s[17]=N):N=s[17];let E;s[18]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(Q,{}),s[18]=E):E=s[18];let U;s[19]!==l||s[20]!==m||s[21]!==n.slug||s[22]!==o.appSlug?(U=m&&t.jsxs(t.Fragment,{children:[t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(W,{to:"/$org/settings/connections/$appSlug",params:{org:n.slug,appSlug:o.appSlug},search:{tab:l},children:m.title})})}),t.jsx(Q,{})]}),s[19]=l,s[20]=m,s[21]=n.slug,s[22]=o.appSlug,s[23]=U):U=s[23];let z;s[24]!==P?(z=t.jsx(J,{children:t.jsx(_e,{children:P})}),s[24]=P,s[25]=z):z=s[25];let _;s[26]!==U||s[27]!==z||s[28]!==N?(_=t.jsx(Oe,{children:t.jsxs(Re,{children:[N,E,U,z]})}),s[26]=U,s[27]=z,s[28]=N,s[29]=_):_=s[29];const L=_;if(y){let D;return s[30]!==y||s[31]!==d||s[32]!==k||s[33]!==i?(D=t.jsx(y,{itemId:i,onBack:d,onUpdate:k}),s[30]=y,s[31]=d,s[32]=k,s[33]=i,s[34]=D):D=s[34],D}let j;s[35]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(kt,{size:36,className:"text-muted-foreground"}),s[35]=j):j=s[35];let A;s[36]!==d?(A=t.jsx(Vt,{icon:j,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:d,children:"Go back"}}),s[36]=d,s[37]=A):A=s[37];let V;return s[38]!==L||s[39]!==A?(V=t.jsx(ue,{breadcrumb:L,children:A}),s[38]=L,s[39]=A,s[40]=V):V=s[40],V}function Gt(){const s=O.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const r=le(e);if(decodeURIComponent(r.collectionName)==="tools"){let c;return s[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(qt,{}),s[1]=c):c=s[1],c}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Wt,{}),s[2]=i):i=s[2],i}function zn(){const s=O.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Pe,{children:t.jsx($.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Gt,{})})}),s[0]=e):e=s[0],e}export{zn as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,j as s,l as M,B as V}from"./index-
|
|
1
|
+
import{c as B,j as s,l as M,B as V}from"./index-qfheH9Xc.js";import{c as z,a as _,b as $,D as E}from"./dropdown-menu-5pJpeeqf.js";import{a as L,n as O,d as R,i as A,c as F}from"./SwitchHorizontal01-1JfD3pEr.js";import{i as S}from"./ChevronUp-BGt4chTY.js";import{a as I,b as K,c as P,T as W}from"./tooltip-CBYM2iV5.js";import{V as q}from"./view-mode-toggle-DGsaaoN8.js";import{B as G}from"./badge-DjU6bfHE.js";function te(t){const e=B.c(31),{viewMode:r,onViewModeChange:m,sortKey:T,sortDirection:p,onSort:f,sortOptions:u,filters:h}=t;let g;e[0]!==u?(g=u===void 0?[]:u,e[0]=u,e[1]=g):g=e[1];const j=g;let b;e[2]!==h?(b=h===void 0?[]:h,e[2]=h,e[3]=b):b=e[3];const l=b;let v;e[4]!==l?(v=l.filter(J),e[4]=l,e[5]=v):v=e[5];const N=v.length;let w;e[6]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(R,{size:16}),e[6]=w):w=e[6];let i;e[7]!==N?(i=N>0&&s.jsx(G,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[7]=N,e[8]=i):i=e[8];let o;e[9]!==i?(o=s.jsx(I,{asChild:!0,children:s.jsx(_,{asChild:!0,children:s.jsxs(V,{variant:"outline",size:"icon",className:"relative",children:[w,i]})})}),e[9]=i,e[10]=o):o=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(K,{children:"Display & filters"}),e[11]=C):C=e[11];let n;e[12]!==o?(n=s.jsx(P,{children:s.jsxs(W,{children:[o,C]})}),e[12]=o,e[13]=n):n=e[13];let a;e[14]!==m||e[15]!==r?(a=m&&r&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:r,onValueChange:m,fullWidth:!0,options:[{value:"table",icon:s.jsx(A,{})},{value:"cards",icon:s.jsx(F,{})}]})}),e[14]=m,e[15]=r,e[16]=a):a=e[16];let c;e[17]!==f||e[18]!==p||e[19]!==T||e[20]!==j?(c=j.length>0&&f&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:"Sort by"}),j.map(y=>{const D=T===y.id;return s.jsx(z,{onClick:()=>f(y.id),className:M("h-8 px-2 py-0 cursor-pointer",D&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[D&&s.jsx(S,{size:16,className:"text-foreground shrink-0"}),!D&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:y.label}),D&&p&&(p==="asc"?s.jsx(L,{size:16,className:"text-foreground shrink-0"}):s.jsx(O,{size:16,className:"text-foreground shrink-0"}))]})},y.id)})]}),e[17]=f,e[18]=p,e[19]=T,e[20]=j,e[21]=c):c=e[21];let d;e[22]!==l?(d=l.map(H),e[22]=l,e[23]=d):d=e[23];let x;e[24]!==a||e[25]!==c||e[26]!==d?(x=s.jsxs($,{align:"end",className:"w-[200px] p-0 gap-0",children:[a,c,d]}),e[24]=a,e[25]=c,e[26]=d,e[27]=x):x=e[27];let k;return e[28]!==n||e[29]!==x?(k=s.jsxs(E,{children:[n,x]}),e[28]=n,e[29]=x,e[30]=k):k=e[30],k}function H(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const r=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:M("h-8 px-2 py-0 cursor-pointer",r&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[r&&s.jsx(S,{size:16,className:"text-foreground shrink-0"}),!r&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function J(t){return t.value!=="ALL"}export{te as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,l as b,j as a,i as w}from"./index-
|
|
1
|
+
import{c as v,l as b,j as a,i as w}from"./index-qfheH9Xc.js";import{i as C}from"./SearchMd-CYoVQBZq.js";function S(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,p=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const h=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==h?(s=b("flex items-center gap-2.5 h-12 px-4",h),e[2]=h,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==p||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:p,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=p,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{S as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,l as u,j as m}from"./index-
|
|
1
|
+
import{c as f,l as u,j as m}from"./index-qfheH9Xc.js";import{B as g}from"./badge-DjU6bfHE.js";function h(x){const e=f.c(12),{tabs:c,activeTab:n,onTabChange:s,className:a}=x;let t;e[0]!==a?(t=u("flex items-center gap-2 overflow-x-auto no-scrollbar",a),e[0]=a,e[1]=t):t=e[1];let r;if(e[2]!==n||e[3]!==s||e[4]!==c){let l;e[6]!==n||e[7]!==s?(l=o=>{const d=n===o.id;return m.jsxs("button",{type:"button",onClick:()=>s(o.id),className:u("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex gap-1.5 items-center",d&&"bg-accent border-border text-foreground",!d&&"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:[o.label,o.count!==void 0&&m.jsx(g,{variant:"secondary",className:u("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",d?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:o.count})]},o.id)},e[6]=n,e[7]=s,e[8]=l):l=e[8],r=c.map(l),e[2]=n,e[3]=s,e[4]=c,e[5]=r}else r=e[5];let i;return e[9]!==t||e[10]!==r?(i=m.jsx("div",{className:t,children:r}),e[9]=t,e[10]=r,e[11]=i):i=e[11],i}export{h as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,l as i,j as n}from"./index-
|
|
1
|
+
import{c as d,l as i,j as n}from"./index-qfheH9Xc.js";import{_ as m}from"./index-DikJYrmI.js";import{e as k,a as N,b as j,c as b,d as w}from"./dialog-DaSKz7DM.js";import{i as y}from"./SearchMd-CYoVQBZq.js";function C(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function S(a){const e=d.c(24);let t,s,o,l,r;e[0]!==a?({title:l,description:r,children:t,className:s,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=r):(t=e[1],s=e[2],o=e[3],l=e[4],r=e[5]);const _=l===void 0?"Command Palette":l,v=r===void 0?"Search for a command to run...":r;let c;e[6]!==_?(c=n.jsx(N,{children:_}),e[6]=_,e[7]=c):c=e[7];let p;e[8]!==v?(p=n.jsx(j,{children:v}),e[8]=v,e[9]=p):p=e[9];let u;e[10]!==c||e[11]!==p?(u=n.jsxs(b,{className:"sr-only",children:[c,p]}),e[10]=c,e[11]=p,e[12]=u):u=e[12];let f;e[13]!==s?(f=i("overflow-hidden p-0",s),e[13]=s,e[14]=f):f=e[14];let x;e[15]!==t?(x=n.jsx(C,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t}),e[15]=t,e[16]=x):x=e[16];let g;e[17]!==f||e[18]!==x?(g=n.jsx(w,{className:f,closeButtonClassName:"hidden",children:x}),e[17]=f,e[18]=x,e[19]=g):g=e[19];let h;return e[20]!==o||e[21]!==u||e[22]!==g?(h=n.jsxs(k,{...o,children:[u,g]}),e[20]=o,e[21]=u,e[22]=g,e[23]=h):h=e[23],h}function z(a){const e=d.c(9);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(y,{className:"size-5 shrink-0 text-foreground"}),e[3]=o):o=e[3];let l;e[4]!==t?(l=i("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=l):l=e[5];let r;return e[6]!==s||e[7]!==l?(r=n.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-10 items-center gap-2 border-b px-3",children:[o,n.jsx(m.Input,{"data-slot":"command-input",className:l,...s})]}),e[6]=s,e[7]=l,e[8]=r):r=e[8],r}function G(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=d.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(m.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function R(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function B(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function H(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Item,{"data-slot":"command-item",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}export{L as C,H as a,z as b,G as c,C as d,R as e,S as f,B as g};
|