decocms 4.217.13 → 4.218.0
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-0OUPWUNo.js → AlertCircle-DphgiHT4.js} +1 -1
- package/dist/client/assets/{AreaChart-BKcNvqGV.js → AreaChart-DdgvMQ5o.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CcZIvmNQ.js → ArrowLeft-B0w40s_Y.js} +1 -1
- package/dist/client/assets/{ArrowUp-CNifCRwW.js → ArrowUp-DFTBvXzm.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CHr_jXVV.js → ArrowUpRight-4-vyYDuS.js} +1 -1
- package/dist/client/assets/{Check-YqNpUnjS.js → Check-X8DOcL_O.js} +1 -1
- package/dist/client/assets/{CheckCircle-HA9HSubF.js → CheckCircle-Bj-sbB75.js} +1 -1
- package/dist/client/assets/{ChevronDown-BX2HgupK.js → ChevronDown-1hRC2WTu.js} +1 -1
- package/dist/client/assets/{ChevronRight-kdKaq9Ii.js → ChevronRight-BXQuiEZz.js} +1 -1
- package/dist/client/assets/{ChevronUp-J2R9ILOH.js → ChevronUp-C595nZnN.js} +1 -1
- package/dist/client/assets/{Copy01-Bm8H5mLb.js → Copy01-BfTmIvh6.js} +1 -1
- package/dist/client/assets/{CpuChip01-DgkecjAs.js → CpuChip01-C-jW3qvr.js} +1 -1
- package/dist/client/assets/{CreditCard01-f8B5Wkqh.js → CreditCard01-Cwy1vypA.js} +1 -1
- package/dist/client/assets/{DotsVertical-Cz5ElmDn.js → DotsVertical-j-YUGLOj.js} +1 -1
- package/dist/client/assets/{Eye-CaOR6o-h.js → Eye-CoeTMeYi.js} +1 -1
- package/dist/client/assets/{FilterLines-CU3G94q8.js → FilterLines-DF7qiR9w.js} +1 -1
- package/dist/client/assets/{Globe01-BAit6vQe.js → Globe01-DC55fg9E.js} +1 -1
- package/dist/client/assets/{Globe04-DOMcqhEH.js → Globe04-50nhVLzn.js} +1 -1
- package/dist/client/assets/{HardDrive-CGleOs63.js → HardDrive-DxVpYaYC.js} +1 -1
- package/dist/client/assets/{Key01-DE0cHxdc.js → Key01-B63LGSV9.js} +1 -1
- package/dist/client/assets/{LayoutLeft-B3Xq6Q9F.js → LayoutLeft-C6MowxGH.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CtVhb7np.js → LinkExternal01-CJEUNT1V.js} +1 -1
- package/dist/client/assets/{LogOut01-pEbmO0Np.js → LogOut01-B3RQAtr0.js} +1 -1
- package/dist/client/assets/{Monitor01-DDxK-vql.js → Monitor01-BJw16DzK.js} +1 -1
- package/dist/client/assets/{Palette-BdM6u7AM.js → Palette-CVsVFrqm.js} +1 -1
- package/dist/client/assets/{Play-IbqcJdN3.js → Play-C3M4Fq_O.js} +1 -1
- package/dist/client/assets/{Plus-BXW-bLkv.js → Plus-DK99_Snh.js} +1 -1
- package/dist/client/assets/{SearchLg-L_ta90AC.js → SearchLg-NR76eHsn.js} +1 -1
- package/dist/client/assets/{SearchMd-B1jAF5PX.js → SearchMd-16uJ5wWN.js} +1 -1
- package/dist/client/assets/{Settings02-D8A1C3JO.js → Settings02-9twLcdZv.js} +1 -1
- package/dist/client/assets/{Share07-BVdvoyk4.js → Share07-giwW40i4.js} +1 -1
- package/dist/client/assets/{Shield01-D2H3k2fO.js → Shield01-B0-2sivE.js} +1 -1
- package/dist/client/assets/{Star01-Dk3FFpxM.js → Star01-Dk1qRJS6.js} +1 -1
- package/dist/client/assets/{Stars01-ndnSTODt.js → Stars01-BViddKuu.js} +1 -1
- package/dist/client/assets/{Stars02-D49Mvriv.js → Stars02-Bd9mbF0O.js} +1 -1
- package/dist/client/assets/{Sun-BZWpsJUV.js → Sun-UYmpl8sO.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-B0vjSREj.js → SwitchHorizontal01-C2i-2oWy.js} +1 -1
- package/dist/client/assets/{Tool01-BK3Hfpvm.js → Tool01-BvwPMEC-.js} +1 -1
- package/dist/client/assets/{Tool02-gKszIrtU.js → Tool02-C99rEtv1.js} +1 -1
- package/dist/client/assets/{Trash01-BSXuR-v0.js → Trash01-D5A4qYbL.js} +1 -1
- package/dist/client/assets/{TrendUp01-D4y32I70.js → TrendUp01-CxmO20HP.js} +1 -1
- package/dist/client/assets/{Upload01-nh4tHrH4.js → Upload01-Bq-W2XYi.js} +1 -1
- package/dist/client/assets/{User01-XKHS0Yi2.js → User01-BUulxXF8.js} +1 -1
- package/dist/client/assets/{Users01-tFQvWfNL.js → Users01-BB8GbuBi.js} +1 -1
- package/dist/client/assets/{Users03-DEaDNrbw.js → Users03-p5OKQBCe.js} +1 -1
- package/dist/client/assets/{X-B1FpD19v.js → X-CxStVdnL.js} +1 -1
- package/dist/client/assets/{XCircle-CT6qobjT.js → XCircle-DcGXltkc.js} +1 -1
- package/dist/client/assets/{XClose-CnW8TKsr.js → XClose-BgfpbBbH.js} +1 -1
- package/dist/client/assets/{Zap-CAz1ejRf.js → Zap-EgeLq4Xz.js} +1 -1
- package/dist/client/assets/{ZapSquare-C7FTkjlS.js → ZapSquare-DMVkQSav.js} +1 -1
- package/dist/client/assets/{access-gate-BUqNYnUF.js → access-gate-BXWJmAzP.js} +1 -1
- package/dist/client/assets/{agent-icon-ivyach6Y.js → agent-icon-DsR8jJXh.js} +1 -1
- package/dist/client/assets/{agents-list-BD8HMFlr.js → agents-list-CLp4cAjF.js} +1 -1
- package/dist/client/assets/{ai-providers-CLkRw_xJ.js → ai-providers-DlMtLPjx.js} +1 -1
- package/dist/client/assets/{alert-JiyNNqe_.js → alert-CW9-yMT-.js} +1 -1
- package/dist/client/assets/{alert-dialog-BtRTtbG0.js → alert-dialog-DdY4B_Sm.js} +1 -1
- package/dist/client/assets/{api-keys-DpqcfGrn.js → api-keys-BPypnxOo.js} +1 -1
- package/dist/client/assets/{app-editor-BUsapCBQ.js → app-editor-D3rteNpd.js} +1 -1
- package/dist/client/assets/{auth-BxRabvv-.js → auth-BEISECSN.js} +1 -1
- package/dist/client/assets/{auth-catchall-Cs7ipMDJ.js → auth-catchall-B1BBwKRT.js} +1 -1
- package/dist/client/assets/{auth-entry-Db5e2aY_.js → auth-entry-DwTUbqIf.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Du-8m3RM.js → auth-split-layout-D8g6--d7.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DH2xTiqE.js → authenticate-and-persist-oauth-DBN2TjjF.js} +1 -1
- package/dist/client/assets/{automation-list-row-D0gz_UHt.js → automation-list-row-Duq4mfOd.js} +1 -1
- package/dist/client/assets/{automation-runs-B9PPWxz2.js → automation-runs-Bfh7po5p.js} +1 -1
- package/dist/client/assets/{automations-B77Ef8pJ.js → automations-Cxt27RO3.js} +1 -1
- package/dist/client/assets/{avatar-BxOwauBx.js → avatar-DqLlWPph.js} +1 -1
- package/dist/client/assets/{badge-YeCL-pM6.js → badge-C9ZI18xs.js} +1 -1
- package/dist/client/assets/{billing-LBD_HGMi.js → billing-lyU9xutF.js} +1 -1
- package/dist/client/assets/{block-document-Dwn6SQky.js → block-document-8x3J_dmf.js} +1 -1
- package/dist/client/assets/{brand-context-B5zJkNnY.js → brand-context-CKhYV8zO.js} +1 -1
- package/dist/client/assets/{buckets-BnUKsEzp.js → buckets-BMPl5Nt8.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-DTyd9WI7.js → bulk-category-panel-C_9fiYCF.js} +1 -1
- package/dist/client/assets/{capability-load-error-Bl4HXrb5.js → capability-load-error-BtYnFNge.js} +1 -1
- package/dist/client/assets/{card-BgLseUz9.js → card-BmJrCmKV.js} +1 -1
- package/dist/client/assets/{cards-nVim6xBl.js → cards-DjurRpNu.js} +1 -1
- package/dist/client/assets/{category-editor-DsDVl13L.js → category-editor-DvevRxqt.js} +1 -1
- package/dist/client/assets/{chat-context-DtiyxjXg.js → chat-context-COWUXvFa.js} +1 -1
- package/dist/client/assets/{checkbox-DtxWa1Lp.js → checkbox-BG0D5iEC.js} +1 -1
- package/dist/client/assets/{cli-auth-success-D7_d7B6d.js → cli-auth-success-Dhw8-c6w.js} +1 -1
- package/dist/client/assets/{collection-detail-BsnNHZuj.js → collection-detail-BmWrMCH2.js} +1 -1
- package/dist/client/assets/{collection-display-button-o9rgPX4h.js → collection-display-button-CAHtLk_Z.js} +1 -1
- package/dist/client/assets/{collection-search-C5R8jkCo.js → collection-search-DFOzK1I3.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-prfaJL6p.js → collection-table-wrapper-Dd-mvW8W.js} +1 -1
- package/dist/client/assets/{collection-tabs-CCbVGHLG.js → collection-tabs-CSUDfb5Q.js} +1 -1
- package/dist/client/assets/{command-BweZE9r1.js → command-Bl96W3DU.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-D86hui_V.js → commerce-onboarding-D7ML8onk.js} +1 -1
- package/dist/client/assets/{connect-C9Mordhu.js → connect-DKU0Lxgs.js} +1 -1
- package/dist/client/assets/{connection-BHMqqEr8.js → connection-BfL3xZzr.js} +1 -1
- package/dist/client/assets/{connection-card-B7NQUqWh.js → connection-card-BFmawtN3.js} +1 -1
- package/dist/client/assets/{connection-detail-BRAl0ckH.js → connection-detail-CBRzVZB3.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-ZRhzxhfS.js → connection-form-helpers-Bzg0_nHr.js} +1 -1
- package/dist/client/assets/{connections-DpqEid10.js → connections-BPxUPtXy.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BwUtRq_o.js → decopilot-sse-pool-DAEpXljW.js} +1 -1
- package/dist/client/assets/{dialog-DsCqITds.js → dialog-D6bhM5Bl.js} +1 -1
- package/dist/client/assets/{domain-settings-D-pog2VX.js → domain-settings-DQ-DAHsI.js} +1 -1
- package/dist/client/assets/{drawer-CWuptb6-.js → drawer-oU9goTDJ.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CkysSdXs.js → dropdown-menu-DNywxboQ.js} +1 -1
- package/dist/client/assets/{empty-state-HwZPqFUt.js → empty-state-CG7QAJeX.js} +1 -1
- package/dist/client/assets/{extract-connection-data-XyQY0B73.js → extract-connection-data-CDvlX618.js} +1 -1
- package/dist/client/assets/{file-explorer-BYizn1JB.js → file-explorer-CEK1Beu-.js} +1 -1
- package/dist/client/assets/{file-type-icon-Cqwaa-8d.js → file-type-icon-DcDuFZ3n.js} +1 -1
- package/dist/client/assets/{form-C5LT36jD.js → form-DCiXkgfG.js} +1 -1
- package/dist/client/assets/{general-jy9ogNyA.js → general-Dz8tTBW2.js} +1 -1
- package/dist/client/assets/{github-repo-picker-UNa4kaK1.js → github-repo-picker-DdYb_TqJ.js} +1 -1
- package/dist/client/assets/{hooks-DoEly3LT.js → hooks-BFx7cozZ.js} +1 -1
- package/dist/client/assets/{index-HWhUkMVs.js → index-B-9MVTpa.js} +35 -35
- package/dist/client/assets/{index-6TRi0uef.js → index-BLGEGRDp.js} +1 -1
- package/dist/client/assets/{index-B6bkuuby.js → index-BTJpW-dv.js} +1 -1
- package/dist/client/assets/index-CAspJWZI.js +1 -0
- package/dist/client/assets/{index-DC1l1OL-.js → index-CFqueeh5.js} +1 -1
- package/dist/client/assets/{index-uoMzVpNH.js → index-DeV8glvQ.js} +1 -1
- package/dist/client/assets/index-Dj-wIQXC.js +736 -0
- package/dist/client/assets/{index-wqhKYY5M.js → index-Dj4J1YBU.js} +2 -2
- package/dist/client/assets/index-DnBuldP_.css +1 -0
- package/dist/client/assets/{index-Cb7hCoS-.js → index-kh_JguFC.js} +1 -1
- package/dist/client/assets/{index-BQO3LZFM.js → index-krrgKyLi.js} +1 -1
- package/dist/client/assets/{index-redirect-BoS6Qpc-.js → index-redirect-0PUU_hsN.js} +1 -1
- package/dist/client/assets/{input-CDxc4QX0.js → input-CFIREZLG.js} +1 -1
- package/dist/client/assets/{integration-icon-CtS0uJhZ.js → integration-icon-Cr6ioOYy.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-vJbHGv59.js → invite-member-dialog-CcBfSfDW.js} +1 -1
- package/dist/client/assets/{label-CZbP70z-.js → label-DbhNC-9w.js} +1 -1
- package/dist/client/assets/{layout-DqMTePyh.js → layout-RvAa0Qq6.js} +1 -1
- package/dist/client/assets/{login-Cajnb4aP.js → login-BzRMDWW3.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DKoInR_S.js → mcp-oauth-CwCJBdf0.js} +1 -1
- package/dist/client/assets/{members-SjX1OUIT.js → members-BLcpqPW7.js} +1 -1
- package/dist/client/assets/{monaco-editor-8vQ4bsg1.js → monaco-editor-WjL6XJMD.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DCubd6zO.js → monitoring-stats-row-0ROntuTh.js} +1 -1
- package/dist/client/assets/{multi-select-CP76ESrQ.js → multi-select-JrWqFu7h.js} +1 -1
- package/dist/client/assets/{oauth-callback-BRJVac2a.js → oauth-callback-DH0RhGUJ.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DwlNDTj-.js → oauth-callback-ai-provider-CcM0YY0h.js} +1 -1
- package/dist/client/assets/{onboarding-DN4soHuD.js → onboarding-BgP_AJaX.js} +1 -1
- package/dist/client/assets/{org-layout-7FmNBUHk.js → org-layout-D-_UIVeK.js} +1 -1
- package/dist/client/assets/{organization-choice-DditNfue.js → organization-choice-8xXFsK0U.js} +1 -1
- package/dist/client/assets/{orgs-C8FbFzrk.js → orgs-BnXbCiyP.js} +1 -1
- package/dist/client/assets/{page-seo-form-q36UjJko.js → page-seo-form-DaYd7moF.js} +1 -1
- package/dist/client/assets/{popover-CnbRVVJ4.js → popover-1SpdqXlq.js} +1 -1
- package/dist/client/assets/{post-editor-CsgQrDnJ.js → post-editor-DnmUZKIE.js} +1 -1
- package/dist/client/assets/{primitives-D7u08cAb.js → primitives-DdFwHoqJ.js} +1 -1
- package/dist/client/assets/{profile-DjaGLDcj.js → profile-C6RpANHY.js} +1 -1
- package/dist/client/assets/{project-app-view-DlvKMam_.js → project-app-view-CgYpxMo8.js} +1 -1
- package/dist/client/assets/record-editor-CpioL2BS.js +1 -0
- package/dist/client/assets/redirect-editor-Co_wonCS.js +1 -0
- package/dist/client/assets/registry-DuT2iviK.js +2 -0
- package/dist/client/assets/{registry-layout-CQILIy3B.js → registry-layout-CorYQkqg.js} +1 -1
- package/dist/client/assets/{reports-4WwZo7l5.js → reports-DN1XsZk9.js} +2 -2
- package/dist/client/assets/{require-capability-V2e0LU3P.js → require-capability-DkGeJzln.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Cdi-946f.js → required-auth-layout-B-U42Xp3.js} +1 -1
- package/dist/client/assets/{reset-password-Daf0ERPq.js → reset-password-Bu510WId.js} +1 -1
- package/dist/client/assets/{roles-D5WQ-8A7.js → roles-X42lMOeP.js} +1 -1
- package/dist/client/assets/{search-input-DmFmc4FA.js → search-input-CNsoObTw.js} +1 -1
- package/dist/client/assets/{secrets-Dp7mvwc3.js → secrets-GEdUwio4.js} +1 -1
- package/dist/client/assets/{sections-editor-D9g5CKfD.js → sections-editor-CYwd9StN.js} +1 -1
- package/dist/client/assets/{select-D3htjNBx.js → select-479TmRNo.js} +1 -1
- package/dist/client/assets/{select-model-DQpQr2DQ.js → select-model-LhQTSmu_.js} +1 -1
- package/dist/client/assets/{self-tool-result-Ces-0lJd.js → self-tool-result-D7tCNtIW.js} +1 -1
- package/dist/client/assets/{seo-editor-DpR_FVvo.js → seo-editor-BI0_GfWH.js} +1 -1
- package/dist/client/assets/{settings-layout-Be7ozVBR.js → settings-layout-Wka9Gfib.js} +1 -1
- package/dist/client/assets/{settings-section-DzETP_0_.js → settings-section-BODjIVT_.js} +1 -1
- package/dist/client/assets/{shell-controls-D7-dloPl.js → shell-controls-CZMWZfia.js} +1 -1
- package/dist/client/assets/{shell-layout-CzKlLa8f.js → shell-layout-BGKbWdUU.js} +1 -1
- package/dist/client/assets/sidebar-DWFsKUYY.js +1 -0
- package/dist/client/assets/{skeleton-Y7gyZPrn.js → skeleton-D-QVm2-v.js} +1 -1
- package/dist/client/assets/{spinner-CMWgEkOv.js → spinner-DR-lvtYj.js} +1 -1
- package/dist/client/assets/{sso-pOrWsTkM.js → sso-DCYhrTBe.js} +1 -1
- package/dist/client/assets/{store-u2l_1WH6.js → store-B2YY6vmX.js} +1 -1
- package/dist/client/assets/store-registry-BLZ7Ehd9.js +2 -0
- package/dist/client/assets/{studio-tools-whdp8gFV.js → studio-tools-B48zN66-.js} +1 -1
- package/dist/client/assets/{switch-b6594rNl.js → switch-DRpyAKAn.js} +1 -1
- package/dist/client/assets/{synced-repos-DBzAs0pB.js → synced-repos-CAXdMKxM.js} +1 -1
- package/dist/client/assets/{tab-id-fxY7FqYq.js → tab-id-BI-ZdXtx.js} +1 -1
- package/dist/client/assets/{table-Bieg1GxH.js → table-CTW0WsOP.js} +1 -1
- package/dist/client/assets/{tabs-D4B8_rLi.js → tabs-B9YzWyot.js} +1 -1
- package/dist/client/assets/{textarea-CXh3iKjW.js → textarea-DN4gewG7.js} +1 -1
- package/dist/client/assets/{toggle-group-CBptT1rM.js → toggle-group-BQqHmxyO.js} +1 -1
- package/dist/client/assets/{toolbar-BI3FThik.js → toolbar-B2QmizD9.js} +1 -1
- package/dist/client/assets/{tooltip-DO91iaPZ.js → tooltip-iD2amP63.js} +1 -1
- package/dist/client/assets/{track-CY-fnB6q.js → track-Bhet8_aM.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Dfw1C_Qb.js → use-ai-providers-CZjqEJy0.js} +1 -1
- package/dist/client/assets/{use-api-keys-D0_X5TBd.js → use-api-keys-DY4P6QaR.js} +1 -1
- package/dist/client/assets/{use-automations-Y3CwRy47.js → use-automations-Deafj0lE.js} +1 -1
- package/dist/client/assets/{use-autosave-DwrF0hri.js → use-autosave-DJdJ-fOt.js} +1 -1
- package/dist/client/assets/{use-capability-hVyOyKfv.js → use-capability-D4NVN7Xn.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CttCxR3S.js → use-clock-tick-kyyqCW_M.js} +1 -1
- package/dist/client/assets/{use-connection-B24S3YCN.js → use-connection-DJmNO8PS.js} +1 -1
- package/dist/client/assets/{use-copy-BNHHpgOS.js → use-copy-C4DHtP6p.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B4-JNTOi.js → use-create-virtual-mcp-Df8k-i5H.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CrvyuS1z.js → use-debounced-autosave-BkGXqKW-.js} +1 -1
- package/dist/client/assets/{use-debounced-value-P_5pUA9W.js → use-debounced-value-Bwe_Ywaw.js} +1 -1
- package/dist/client/assets/{use-deco-credits-5oBMNAq-.js → use-deco-credits-DpEKktF5.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-LcKd19eo.js → use-decopilot-events-Db-rzvkD.js} +1 -1
- package/dist/client/assets/{use-delete-connection-YreJg1bm.js → use-delete-connection-CRqm8G9n.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BHP-geVv.js → use-deployment-admin-DMJNgp42.js} +1 -1
- package/dist/client/assets/{use-file-configs-CPONQlYc.js → use-file-configs-DTcmH_gF.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CBy2t19Z.js → use-infinite-scroll-BV9iYWuG.js} +1 -1
- package/dist/client/assets/{use-join-requests-atODS-UJ.js → use-join-requests-PaKifzIK.js} +1 -1
- package/dist/client/assets/{use-mcp-client-WNkI8KAJ.js → use-mcp-client-BVNppOHU.js} +4 -4
- package/dist/client/assets/{use-mcp-tools-BW_wQYIZ.js → use-mcp-tools-DmQGxNG4.js} +1 -1
- package/dist/client/assets/{use-members-smedIK7m.js → use-members-eRW-lpx_.js} +1 -1
- package/dist/client/assets/{use-mobile-nNGwbm7m.js → use-mobile-BDBEccf0.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-9y1G65Xj.js → use-navigate-to-agent-CohO9vnC.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-GphQa9pn.js → use-open-billing-url-DB_49CX7.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-uDIBUVH9.js → use-org-auth-client-GYynwkNi.js} +1 -1
- package/dist/client/assets/{use-org-sso-DrOx8nh9.js → use-org-sso-JGd0CX02.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DYd5AO4U.js → use-organization-roles-SVAmzVWe.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BJdrgwhq.js → use-organization-settings-B282pR89.js} +1 -1
- package/dist/client/assets/{use-registry-connections-ChaImRoz.js → use-registry-connections-CM1IgVmE.js} +1 -1
- package/dist/client/assets/{use-secrets-Dl1vnLJJ.js → use-secrets-ClkPpQGb.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BcBdEo4a.js → use-section-preview-base-BbFaEZts.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CRL_QHV0.js → use-status-sounds-Dovl1n_T.js} +1 -1
- package/dist/client/assets/{use-tags-4N4KBIBB.js → use-tags-DD1xsN0U.js} +1 -1
- package/dist/client/assets/{use-view-mode-Cuib_Qyk.js → use-view-mode-Ez9Bjv2D.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-uppMIhb1.js → use-virtual-mcp-fXc4CszM.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CiZ85w8A.js +1 -0
- package/dist/client/assets/{useRouterState-DMhgLsX7.js → useRouterState-B2K44ZHd.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CrmgYenE.js +1 -0
- package/dist/client/assets/{users-D_L2xQM5.js → users-DmwLsN8S.js} +1 -1
- package/dist/client/assets/{variant-calendar-CqXsSQtn.js → variant-calendar-a0YsFjGy.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Bd7XGg_T.js → view-mode-toggle-CX7FwABy.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/index-CD1X_eW5.js +0 -1
- package/dist/client/assets/index-CxV3B-5l.js +0 -736
- package/dist/client/assets/index-DJP7bbyy.css +0 -1
- package/dist/client/assets/record-editor-B9tAoum2.js +0 -1
- package/dist/client/assets/redirect-editor-B0SRp5vj.js +0 -1
- package/dist/client/assets/registry-DMD5W51g.js +0 -2
- package/dist/client/assets/sidebar-DbMpr-rh.js +0 -1
- package/dist/client/assets/store-registry-D-qh_ccf.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BOShi_GX.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-C2H3DSMn.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as S,F as O,K as k,n as I,o as K,e as R,r as q,j as f,b as M,m as Q,B as Y}from"./index-HWhUkMVs.js";import{u as X}from"./studio-tools-whdp8gFV.js";import{a as J}from"./DotsVertical-Cz5ElmDn.js";import{n as le,i as oe}from"./Globe01-BAit6vQe.js";import{i as ae,a as ce}from"./Share07-BVdvoyk4.js";import{i as fe}from"./Key01-DE0cHxdc.js";import{a as de}from"./Palette-BdM6u7AM.js";import{s as Z}from"./Trash01-BSXuR-v0.js";import{i as ue}from"./Zap-CAz1ejRf.js";import{a as L,D as ee,b as te,c as ne}from"./dropdown-menu-CkysSdXs.js";import{d as se,F as A}from"./file-type-icon-Cqwaa-8d.js";import{s as me}from"./Eye-CaOR6o-h.js";function St(t){return t.contentHash??`${t.size}-${t.updatedAt}`}function v(t,e,n,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(t)}/fs/${encodeURIComponent(e)}/${n}${r?`?${r}`:""}`}async function T(t,e,n){const s=await fetch(t,e);if(s.ok||n?.allow404&&s.status===404)return s;let r="";try{r=(await s.json()).error??""}catch{}throw new Error(r||`HTTP ${s.status}`)}function Ft(t,e){const n=S.c(15),{org:s}=O();let r;n[0]!==s.id||n[1]!==e||n[2]!==t?(r=k.orgFsList(s.id,t,e),n[0]=s.id,n[1]=e,n[2]=t,n[3]=r):r=n[3];let i;n[4]!==s.id||n[5]!==t?(i=(a,c)=>c?.queryKey[1]===s.id&&c.queryKey[2]===t?a:void 0,n[4]=s.id,n[5]=t,n[6]=i):i=n[6];let l;n[7]!==s.slug||n[8]!==e||n[9]!==t?(l=async()=>(await(await T(v(s.slug,t,"list",{path:e}))).json()).entries.toSorted(he),n[7]=s.slug,n[8]=e,n[9]=t,n[10]=l):l=n[10];let o;return n[11]!==r||n[12]!==i||n[13]!==l?(o={queryKey:r,placeholderData:i,queryFn:l},n[11]=r,n[12]=i,n[13]=l,n[14]=o):o=n[14],I(o)}function he(t,e){return t.kind!==e.kind?t.kind==="dir"?-1:1:t.path.localeCompare(e.path)}function $t(t,e,n){const s=S.c(15),{org:r}=O();let i;s[0]!==r.id||s[1]!==e||s[2]!==t?(i=k.orgFsStat(r.id,t??"",e),s[0]=r.id,s[1]=e,s[2]=t,s[3]=i):i=s[3];const l=t!==null;let o;s[4]!==n?(o=n?.refetchIntervalWhenAbsent?u=>u.state.data?!1:n.refetchIntervalWhenAbsent??!1:void 0,s[4]=n,s[5]=o):o=s[5];let a;s[6]!==r.slug||s[7]!==e||s[8]!==t?(a=async()=>{const u=await T(v(r.slug,t??"","stat",{path:e}),void 0,{allow404:!0});return u.status===404?null:(await u.json()).entry},s[6]=r.slug,s[7]=e,s[8]=t,s[9]=a):a=s[9];let c;return s[10]!==i||s[11]!==l||s[12]!==o||s[13]!==a?(c={queryKey:i,enabled:l,refetchInterval:o,queryFn:a},s[10]=i,s[11]=l,s[12]=o,s[13]=a,s[14]=c):c=s[14],I(c)}function kt(t){const e=S.c(9),{org:n}=O();let s;e[0]!==n.id||e[1]!==t?(s=k.orgFsUsage(n.id,t),e[0]=n.id,e[1]=t,e[2]=s):s=e[2];let r;e[3]!==n.slug||e[4]!==t?(r=async()=>await(await T(v(n.slug,t,"usage"))).json(),e[3]=n.slug,e[4]=t,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,queryFn:r},e[6]=s,e[7]=r,e[8]=i):i=e[8],I(i)}function _t(t,e){const n=S.c(9),s=t===void 0?60:t,{org:r}=O();let i;n[0]!==r.id?(i=k.orgFsRecent(r.id),n[0]=r.id,n[1]=i):i=n[1];const l=e?.enabled;let o;n[2]!==s||n[3]!==r.slug?(o=async()=>(await(await T(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,n[2]=s,n[3]=r.slug,n[4]=o):o=n[4];let a;return n[5]!==i||n[6]!==l||n[7]!==o?(a={queryKey:i,enabled:l,queryFn:o},n[5]=i,n[6]=l,n[7]=o,n[8]=a):a=n[8],I(a)}const ge=50;function Ct(t,e){const n=S.c(16),{org:s}=O();let r;n[0]!==s.id||n[1]!==t||n[2]!==e?.prefix||n[3]!==e?.volume?(r=k.orgFsSearch(s.id,t,e?.volume??"",e?.prefix??""),n[0]=s.id,n[1]=t,n[2]=e?.prefix,n[3]=e?.volume,n[4]=r):r=n[4];const i=t.length>0;let l;n[5]!==s.id?(l=(c,u)=>u?.queryKey[1]===s.id?c:void 0,n[5]=s.id,n[6]=l):l=n[6];let o;n[7]!==s.slug||n[8]!==t||n[9]!==e?(o=async()=>{const c=new URLSearchParams({q:t,limit:String(ge)});return e&&(c.set("volume",e.volume),e.prefix&&c.set("prefix",e.prefix)),(await(await T(`/api/${encodeURIComponent(s.slug)}/fs/search?${c}`)).json()).entries},n[7]=s.slug,n[8]=t,n[9]=e,n[10]=o):o=n[10];let a;return n[11]!==r||n[12]!==i||n[13]!==l||n[14]!==o?(a={queryKey:r,enabled:i,placeholderData:l,queryFn:o},n[11]=r,n[12]=i,n[13]=l,n[14]=o,n[15]=a):a=n[15],I(a)}function Tt(t){const e=S.c(8),{org:n}=O();let s;e[0]!==n.id?(s=k.orgFsSkills(n.id),e[0]=n.id,e[1]=s):s=e[1];const r=t?.enabled;let i;e[2]!==n.slug?(i=async()=>{const o=await T(`/api/${encodeURIComponent(n.slug)}/fs/skills`),{skills:a}=await o.json();return a.map(ye)},e[2]=n.slug,e[3]=i):i=e[3];let l;return e[4]!==s||e[5]!==r||e[6]!==i?(l={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=l):l=e[7],I(l)}function ye(t){return{volume:t.volume,path:t.path}}async function Ot(t){const e=await T(`/api/${encodeURIComponent(t)}/fs/skills`),{skills:n}=await e.json();return n}async function xe(t,e,n){return(await T(v(t,e,"read",{path:n}))).text()}function H(t,e){const n=S.c(8);let s;n[0]!==t?(s=k.fileText(t),n[0]=t,n[1]=s):s=n[1];const r=e?.enabled!==!1&&t!=="";let i;n[2]!==t?(i=async()=>{const o=await fetch(t,{credentials:"include"});return o.ok?await o.text():null},n[2]=t,n[3]=i):i=n[3];let l;return n[4]!==s||n[5]!==r||n[6]!==i?(l={queryKey:s,enabled:r,staleTime:6e4,retry:!1,queryFn:i},n[4]=s,n[5]=r,n[6]=i,n[7]=l):l=n[7],I(l)}const pe=new Set(["md","mdx","markdown","txt","text"]),be=25,we=64*1024,je=256*1024,Se=4;function Fe(t){const e=t.lastIndexOf(".");return e===-1?!1:pe.has(t.slice(e+1).toLowerCase())}async function Dt(t,e,n){const s=n?`${n}/`:"",r=d=>d.startsWith(s)?d.slice(s.length):d,i=[],l=[],o=[{path:n,depth:0}];for(;o.length>0;){const d=o.shift();if(!d)break;let h;try{h=(await(await T(v(t,e,"list",{path:d.path}))).json()).entries}catch{continue}for(const m of[...h].sort((g,y)=>g.path.localeCompare(y.path))){if(m.kind==="dir"){d.depth<Se&&o.push({path:m.path,depth:d.depth+1});continue}Fe(m.path)&&m.size<=we&&i.length<be?i.push(m.path):l.push(r(m.path))}}const a=await Promise.all(i.map(d=>xe(t,e,d).catch(()=>null))),c=[];let u=0;return i.forEach((d,h)=>{const m=a[h];if(m==null||u+m.length>je){l.push(r(d));return}u+=m.length,c.push({relPath:r(d),content:m})}),c.sort((d,h)=>d.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:d.relPath.localeCompare(h.relPath)),l.sort(),{files:c,omittedPaths:l}}function Nt(){const t=S.c(7),{org:e}=O();let n;t[0]!==e.id?(n=k.orgFsPublicSets(e.id),t[0]=e.id,t[1]=n):n=t[1];let s;t[2]!==e.slug?(s=async()=>(await(await T(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,t[2]=e.slug,t[3]=s):s=t[3];let r;return t[4]!==n||t[5]!==s?(r={queryKey:n,staleTime:3e5,queryFn:s},t[4]=n,t[5]=s,t[6]=r):r=t[6],I(r)}function vt(t){const e=S.c(3),{org:n}=O();let s;return e[0]!==n.slug||e[1]!==t?(s=r=>v(n.slug,t,"read",{path:r}),e[0]=n.slug,e[1]=t,e[2]=s):s=e[2],s}function Et(){const t=S.c(2),{org:e}=O();let n;return t[0]!==e.slug?(n=(s,r)=>v(e.slug,s,"read",{path:r}),t[0]=e.slug,t[1]=n):n=t[1],n}function It(t){const e=S.c(3),{org:n}=O();let s;return e[0]!==n||e[1]!==t?(s={mutationFn:async r=>(await(await T(v(n.slug,t,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=n,e[1]=t,e[2]=s):s=e[2],R(s)}function Rt(t){const e=S.c(18),{org:n}=O(),s=K();let r;e[0]!==n||e[1]!==t?(r=async c=>(await(await T(v(n.slug,t,"public",{path:c.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:c.mode,password:c.password})})).json()).entry,e[0]=n,e[1]=t,e[2]=r):r=e[2];let i;e[3]!==n||e[4]!==s||e[5]!==t?(i=async c=>{const u=k.orgFsStat(n.id,t,c.path);await s.cancelQueries({queryKey:u});const d=s.getQueryData(u),h=c.mode!=="private";return s.setQueryData(u,m=>m&&{...m,readPublic:h,effectivePublic:h,shareMode:c.mode}),{key:u,previous:d}},e[3]=n,e[4]=s,e[5]=t,e[6]=i):i=e[6];let l;e[7]!==s?(l=(c,u,d)=>{d&&s.setQueryData(d.key,d.previous)},e[7]=s,e[8]=l):l=e[8];let o;e[9]!==n||e[10]!==s||e[11]!==t?(o=(c,u,d)=>{s.invalidateQueries({queryKey:k.orgFsStat(n.id,t,d.path)}),s.invalidateQueries({queryKey:k.orgFsVolume(n.id,t)}),s.invalidateQueries({queryKey:k.orgFsRecent(n.id)}),s.invalidateQueries({queryKey:k.orgFsSearchRoot(n.id)})},e[9]=n,e[10]=s,e[11]=t,e[12]=o):o=e[12];let a;return e[13]!==r||e[14]!==i||e[15]!==l||e[16]!==o?(a={mutationFn:r,onMutate:i,onError:l,onSettled:o},e[13]=r,e[14]=i,e[15]=l,e[16]=o,e[17]=a):a=e[17],R(a)}function Lt(t){const e=S.c(33),{org:n}=O(),s=K();let r;e[0]!==n||e[1]!==s||e[2]!==t?(r=()=>{s.invalidateQueries({queryKey:k.orgFsVolume(n.id,t)}),s.invalidateQueries({queryKey:k.orgFsRecent(n.id)}),s.invalidateQueries({queryKey:k.orgFsSearchRoot(n.id)})},e[0]=n,e[1]=s,e[2]=t,e[3]=r):r=e[3];const i=r;let l;e[4]!==n||e[5]!==t?(l=async p=>{const F=(await Promise.allSettled(p.files.map($=>{const D=p.dir?`${p.dir}/${$.name}`:$.name;return T(v(n.slug,t,"file",{path:D}),{method:"PUT",headers:{"content-type":$.type||"application/octet-stream"},body:$})}))).find($e);if(F)throw F.reason},e[4]=n,e[5]=t,e[6]=l):l=e[6];let o;e[7]!==i||e[8]!==l?(o={mutationFn:l,onSettled:i},e[7]=i,e[8]=l,e[9]=o):o=e[9];const a=R(o);let c;e[10]!==n||e[11]!==t?(c=async p=>{await T(v(n.slug,t,"dir",{path:p}),{method:"POST"})},e[10]=n,e[11]=t,e[12]=c):c=e[12];let u;e[13]!==i||e[14]!==c?(u={mutationFn:c,onSuccess:i},e[13]=i,e[14]=c,e[15]=u):u=e[15];const d=R(u);let h;e[16]!==n||e[17]!==t?(h=async p=>{await T(v(n.slug,t,"file",{path:p}),{method:"DELETE"})},e[16]=n,e[17]=t,e[18]=h):h=e[18];let m;e[19]!==i||e[20]!==h?(m={mutationFn:h,onSuccess:i},e[19]=i,e[20]=h,e[21]=m):m=e[21];const g=R(m);let y;e[22]!==n||e[23]!==t?(y=async p=>{await T(v(n.slug,t,"move"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(p)})},e[22]=n,e[23]=t,e[24]=y):y=e[24];let x;e[25]!==i||e[26]!==y?(x={mutationFn:y,onSuccess:i},e[25]=i,e[26]=y,e[27]=x):x=e[27];const w=R(x);let b;return e[28]!==d||e[29]!==w||e[30]!==g||e[31]!==a?(b={upload:a,mkdir:d,remove:g,move:w},e[28]=d,e[29]=w,e[30]=g,e[31]=a,e[32]=b):b=e[32],b}function $e(t){return t.status==="rejected"}const ke=5e3;function _e(t){return(t??[]).some(e=>!e.lastSyncedAt&&!e.lastSyncError)}function Ce(){const t=S.c(7),{org:e}=O(),n=X();let s;t[0]!==e.id?(s=k.orgRepoSyncs(e.id),t[0]=e.id,t[1]=s):s=t[1];let r;t[2]!==n?(r=async()=>(await n.call("ORG_REPO_SYNC_LIST",{})).configs,t[2]=n,t[3]=r):r=t[3];let i;return t[4]!==s||t[5]!==r?(i={queryKey:s,staleTime:6e4,refetchInterval:Te,queryFn:r},t[4]=s,t[5]=r,t[6]=i):i=t[6],I(i)}function Te(t){return _e(t.state.data)?ke:!1}function Mt(){const t=S.c(2),e=Ce();let n;return t[0]!==e.data?(n=new Set((e.data??[]).map(Oe)),t[0]=e.data,t[1]=n):n=t[1],n}function Oe(t){return t.volume}function Pt(){const t=S.c(12),{org:e}=O(),n=X(),s=K();let r;t[0]!==e||t[1]!==s?(r=()=>s.invalidateQueries({queryKey:k.orgRepoSyncs(e.id)}),t[0]=e,t[1]=s,t[2]=r):r=t[2];const i=r;let l;t[3]!==n?(l=async c=>(await n.call("ORG_REPO_SYNC_CREATE",c)).config,t[3]=n,t[4]=l):l=t[4];let o;t[5]!==i||t[6]!==n?(o=c=>{n.call("ORG_REPO_SYNC_RUN",{id:c.id}).catch(De).then(i)},t[5]=i,t[6]=n,t[7]=o):o=t[7];let a;return t[8]!==i||t[9]!==l||t[10]!==o?(a={mutationFn:l,onSuccess:o,onSettled:i},t[8]=i,t[9]=l,t[10]=o,t[11]=a):a=t[11],R(a)}function De(){return null}function Ut(){const t=S.c(8),{org:e}=O(),n=X(),s=K();let r;t[0]!==n?(r=o=>n.call("ORG_REPO_SYNC_DELETE",{id:o}),t[0]=n,t[1]=r):r=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:k.orgRepoSyncs(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let l;return t[5]!==r||t[6]!==i?(l={mutationFn:r,onSettled:i},t[5]=r,t[6]=i,t[7]=l):l=t[7],R(l)}function Ne(t,e,n){return e?"color":n?"font":/^--brand-(text|fw|leading|tracking)/i.test(t)?"type":/^--brand-space/i.test(t)?"space":/^--brand-radius/i.test(t)?"radius":/^--brand-shadow/i.test(t)?"shadow":/^--brand-(duration|delay|ease)/i.test(t)?"motion":"other"}const ve=/^(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)\(/i,Ee=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Ie=["svg","png","jpg","jpeg","webp","avif","gif"];function Re(t){return t.split(".").pop()?.toLowerCase()??""}function Le(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Me(t){const e=t.trim();return Ee.test(e)||ve.test(e)}function qt(t){const e=t.trim(),n=e.match(/^#([0-9a-f]{3})$/i);return n?.[1]?`#${[...n[1]].map(s=>s+s).join("")}`:e}function Pe(t){const e=[],n=new Map,s=/(--brand-[\w-]+)\s*:\s*([^;]+);/g;let r;for(;(r=s.exec(t))!==null;){const i=r[1],l=r[2].trim();n.has(i)||e.push(i),n.set(i,l)}return e.map(i=>{const l=n.get(i),o=Me(l),a=/^--brand-font/i.test(i);return{name:i,value:l,isColor:o,isFont:a,kind:Ne(i,o,a)}})}const V=["primary","secondary","accent","neutral","success","warning","error","info","bg","fg","border","ring"];function Ue(t){return t.match(/^--brand-([a-z]+)/i)?.[1]?.toLowerCase()??t}function At(t){const e=[],n=new Map;for(const r of t){if(r.kind!=="color")continue;const i=Ue(r.name);n.has(i)||(e.push(i),n.set(i,[])),n.get(i).push(r)}return e.map(r=>{const i=n.get(r);return{family:r,tokens:i,isRamp:i.filter(l=>/-\d+$/.test(l.name)).length>=5}}).sort((r,i)=>{const l=V.indexOf(r.family),o=V.indexOf(i.family);return l===-1&&o===-1?0:l===-1?1:o===-1?-1:l-o})}function Kt(t,e,n){const s=new RegExp(`(${Le(e)}\\s*:\\s*)[^;]+(;)`);if(s.test(t))return t.replace(s,(l,o,a)=>`${o}${n}${a}`);const r=t.search(/:root\s*\{/);if(r!==-1){const l=t.indexOf("{",r)+1;return`${t.slice(0,l)}
|
|
1
|
+
import{c as S,F as O,K as k,n as I,o as K,e as R,r as q,j as f,b as M,m as Q,B as Y}from"./index-B-9MVTpa.js";import{u as X}from"./studio-tools-B48zN66-.js";import{a as J}from"./DotsVertical-j-YUGLOj.js";import{n as le,i as oe}from"./Globe01-DC55fg9E.js";import{i as ae,a as ce}from"./Share07-giwW40i4.js";import{i as fe}from"./Key01-B63LGSV9.js";import{a as de}from"./Palette-CVsVFrqm.js";import{s as Z}from"./Trash01-D5A4qYbL.js";import{i as ue}from"./Zap-EgeLq4Xz.js";import{a as L,D as ee,b as te,c as ne}from"./dropdown-menu-DNywxboQ.js";import{d as se,F as A}from"./file-type-icon-DcDuFZ3n.js";import{s as me}from"./Eye-CoeTMeYi.js";function St(t){return t.contentHash??`${t.size}-${t.updatedAt}`}function v(t,e,n,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(t)}/fs/${encodeURIComponent(e)}/${n}${r?`?${r}`:""}`}async function T(t,e,n){const s=await fetch(t,e);if(s.ok||n?.allow404&&s.status===404)return s;let r="";try{r=(await s.json()).error??""}catch{}throw new Error(r||`HTTP ${s.status}`)}function Ft(t,e){const n=S.c(15),{org:s}=O();let r;n[0]!==s.id||n[1]!==e||n[2]!==t?(r=k.orgFsList(s.id,t,e),n[0]=s.id,n[1]=e,n[2]=t,n[3]=r):r=n[3];let i;n[4]!==s.id||n[5]!==t?(i=(a,c)=>c?.queryKey[1]===s.id&&c.queryKey[2]===t?a:void 0,n[4]=s.id,n[5]=t,n[6]=i):i=n[6];let l;n[7]!==s.slug||n[8]!==e||n[9]!==t?(l=async()=>(await(await T(v(s.slug,t,"list",{path:e}))).json()).entries.toSorted(he),n[7]=s.slug,n[8]=e,n[9]=t,n[10]=l):l=n[10];let o;return n[11]!==r||n[12]!==i||n[13]!==l?(o={queryKey:r,placeholderData:i,queryFn:l},n[11]=r,n[12]=i,n[13]=l,n[14]=o):o=n[14],I(o)}function he(t,e){return t.kind!==e.kind?t.kind==="dir"?-1:1:t.path.localeCompare(e.path)}function $t(t,e,n){const s=S.c(15),{org:r}=O();let i;s[0]!==r.id||s[1]!==e||s[2]!==t?(i=k.orgFsStat(r.id,t??"",e),s[0]=r.id,s[1]=e,s[2]=t,s[3]=i):i=s[3];const l=t!==null;let o;s[4]!==n?(o=n?.refetchIntervalWhenAbsent?u=>u.state.data?!1:n.refetchIntervalWhenAbsent??!1:void 0,s[4]=n,s[5]=o):o=s[5];let a;s[6]!==r.slug||s[7]!==e||s[8]!==t?(a=async()=>{const u=await T(v(r.slug,t??"","stat",{path:e}),void 0,{allow404:!0});return u.status===404?null:(await u.json()).entry},s[6]=r.slug,s[7]=e,s[8]=t,s[9]=a):a=s[9];let c;return s[10]!==i||s[11]!==l||s[12]!==o||s[13]!==a?(c={queryKey:i,enabled:l,refetchInterval:o,queryFn:a},s[10]=i,s[11]=l,s[12]=o,s[13]=a,s[14]=c):c=s[14],I(c)}function kt(t){const e=S.c(9),{org:n}=O();let s;e[0]!==n.id||e[1]!==t?(s=k.orgFsUsage(n.id,t),e[0]=n.id,e[1]=t,e[2]=s):s=e[2];let r;e[3]!==n.slug||e[4]!==t?(r=async()=>await(await T(v(n.slug,t,"usage"))).json(),e[3]=n.slug,e[4]=t,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,queryFn:r},e[6]=s,e[7]=r,e[8]=i):i=e[8],I(i)}function _t(t,e){const n=S.c(9),s=t===void 0?60:t,{org:r}=O();let i;n[0]!==r.id?(i=k.orgFsRecent(r.id),n[0]=r.id,n[1]=i):i=n[1];const l=e?.enabled;let o;n[2]!==s||n[3]!==r.slug?(o=async()=>(await(await T(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,n[2]=s,n[3]=r.slug,n[4]=o):o=n[4];let a;return n[5]!==i||n[6]!==l||n[7]!==o?(a={queryKey:i,enabled:l,queryFn:o},n[5]=i,n[6]=l,n[7]=o,n[8]=a):a=n[8],I(a)}const ge=50;function Ct(t,e){const n=S.c(16),{org:s}=O();let r;n[0]!==s.id||n[1]!==t||n[2]!==e?.prefix||n[3]!==e?.volume?(r=k.orgFsSearch(s.id,t,e?.volume??"",e?.prefix??""),n[0]=s.id,n[1]=t,n[2]=e?.prefix,n[3]=e?.volume,n[4]=r):r=n[4];const i=t.length>0;let l;n[5]!==s.id?(l=(c,u)=>u?.queryKey[1]===s.id?c:void 0,n[5]=s.id,n[6]=l):l=n[6];let o;n[7]!==s.slug||n[8]!==t||n[9]!==e?(o=async()=>{const c=new URLSearchParams({q:t,limit:String(ge)});return e&&(c.set("volume",e.volume),e.prefix&&c.set("prefix",e.prefix)),(await(await T(`/api/${encodeURIComponent(s.slug)}/fs/search?${c}`)).json()).entries},n[7]=s.slug,n[8]=t,n[9]=e,n[10]=o):o=n[10];let a;return n[11]!==r||n[12]!==i||n[13]!==l||n[14]!==o?(a={queryKey:r,enabled:i,placeholderData:l,queryFn:o},n[11]=r,n[12]=i,n[13]=l,n[14]=o,n[15]=a):a=n[15],I(a)}function Tt(t){const e=S.c(8),{org:n}=O();let s;e[0]!==n.id?(s=k.orgFsSkills(n.id),e[0]=n.id,e[1]=s):s=e[1];const r=t?.enabled;let i;e[2]!==n.slug?(i=async()=>{const o=await T(`/api/${encodeURIComponent(n.slug)}/fs/skills`),{skills:a}=await o.json();return a.map(ye)},e[2]=n.slug,e[3]=i):i=e[3];let l;return e[4]!==s||e[5]!==r||e[6]!==i?(l={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=l):l=e[7],I(l)}function ye(t){return{volume:t.volume,path:t.path}}async function Ot(t){const e=await T(`/api/${encodeURIComponent(t)}/fs/skills`),{skills:n}=await e.json();return n}async function xe(t,e,n){return(await T(v(t,e,"read",{path:n}))).text()}function H(t,e){const n=S.c(8);let s;n[0]!==t?(s=k.fileText(t),n[0]=t,n[1]=s):s=n[1];const r=e?.enabled!==!1&&t!=="";let i;n[2]!==t?(i=async()=>{const o=await fetch(t,{credentials:"include"});return o.ok?await o.text():null},n[2]=t,n[3]=i):i=n[3];let l;return n[4]!==s||n[5]!==r||n[6]!==i?(l={queryKey:s,enabled:r,staleTime:6e4,retry:!1,queryFn:i},n[4]=s,n[5]=r,n[6]=i,n[7]=l):l=n[7],I(l)}const pe=new Set(["md","mdx","markdown","txt","text"]),be=25,we=64*1024,je=256*1024,Se=4;function Fe(t){const e=t.lastIndexOf(".");return e===-1?!1:pe.has(t.slice(e+1).toLowerCase())}async function Dt(t,e,n){const s=n?`${n}/`:"",r=d=>d.startsWith(s)?d.slice(s.length):d,i=[],l=[],o=[{path:n,depth:0}];for(;o.length>0;){const d=o.shift();if(!d)break;let h;try{h=(await(await T(v(t,e,"list",{path:d.path}))).json()).entries}catch{continue}for(const m of[...h].sort((g,y)=>g.path.localeCompare(y.path))){if(m.kind==="dir"){d.depth<Se&&o.push({path:m.path,depth:d.depth+1});continue}Fe(m.path)&&m.size<=we&&i.length<be?i.push(m.path):l.push(r(m.path))}}const a=await Promise.all(i.map(d=>xe(t,e,d).catch(()=>null))),c=[];let u=0;return i.forEach((d,h)=>{const m=a[h];if(m==null||u+m.length>je){l.push(r(d));return}u+=m.length,c.push({relPath:r(d),content:m})}),c.sort((d,h)=>d.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:d.relPath.localeCompare(h.relPath)),l.sort(),{files:c,omittedPaths:l}}function Nt(){const t=S.c(7),{org:e}=O();let n;t[0]!==e.id?(n=k.orgFsPublicSets(e.id),t[0]=e.id,t[1]=n):n=t[1];let s;t[2]!==e.slug?(s=async()=>(await(await T(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,t[2]=e.slug,t[3]=s):s=t[3];let r;return t[4]!==n||t[5]!==s?(r={queryKey:n,staleTime:3e5,queryFn:s},t[4]=n,t[5]=s,t[6]=r):r=t[6],I(r)}function vt(t){const e=S.c(3),{org:n}=O();let s;return e[0]!==n.slug||e[1]!==t?(s=r=>v(n.slug,t,"read",{path:r}),e[0]=n.slug,e[1]=t,e[2]=s):s=e[2],s}function Et(){const t=S.c(2),{org:e}=O();let n;return t[0]!==e.slug?(n=(s,r)=>v(e.slug,s,"read",{path:r}),t[0]=e.slug,t[1]=n):n=t[1],n}function It(t){const e=S.c(3),{org:n}=O();let s;return e[0]!==n||e[1]!==t?(s={mutationFn:async r=>(await(await T(v(n.slug,t,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=n,e[1]=t,e[2]=s):s=e[2],R(s)}function Rt(t){const e=S.c(18),{org:n}=O(),s=K();let r;e[0]!==n||e[1]!==t?(r=async c=>(await(await T(v(n.slug,t,"public",{path:c.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:c.mode,password:c.password})})).json()).entry,e[0]=n,e[1]=t,e[2]=r):r=e[2];let i;e[3]!==n||e[4]!==s||e[5]!==t?(i=async c=>{const u=k.orgFsStat(n.id,t,c.path);await s.cancelQueries({queryKey:u});const d=s.getQueryData(u),h=c.mode!=="private";return s.setQueryData(u,m=>m&&{...m,readPublic:h,effectivePublic:h,shareMode:c.mode}),{key:u,previous:d}},e[3]=n,e[4]=s,e[5]=t,e[6]=i):i=e[6];let l;e[7]!==s?(l=(c,u,d)=>{d&&s.setQueryData(d.key,d.previous)},e[7]=s,e[8]=l):l=e[8];let o;e[9]!==n||e[10]!==s||e[11]!==t?(o=(c,u,d)=>{s.invalidateQueries({queryKey:k.orgFsStat(n.id,t,d.path)}),s.invalidateQueries({queryKey:k.orgFsVolume(n.id,t)}),s.invalidateQueries({queryKey:k.orgFsRecent(n.id)}),s.invalidateQueries({queryKey:k.orgFsSearchRoot(n.id)})},e[9]=n,e[10]=s,e[11]=t,e[12]=o):o=e[12];let a;return e[13]!==r||e[14]!==i||e[15]!==l||e[16]!==o?(a={mutationFn:r,onMutate:i,onError:l,onSettled:o},e[13]=r,e[14]=i,e[15]=l,e[16]=o,e[17]=a):a=e[17],R(a)}function Lt(t){const e=S.c(33),{org:n}=O(),s=K();let r;e[0]!==n||e[1]!==s||e[2]!==t?(r=()=>{s.invalidateQueries({queryKey:k.orgFsVolume(n.id,t)}),s.invalidateQueries({queryKey:k.orgFsRecent(n.id)}),s.invalidateQueries({queryKey:k.orgFsSearchRoot(n.id)})},e[0]=n,e[1]=s,e[2]=t,e[3]=r):r=e[3];const i=r;let l;e[4]!==n||e[5]!==t?(l=async p=>{const F=(await Promise.allSettled(p.files.map($=>{const D=p.dir?`${p.dir}/${$.name}`:$.name;return T(v(n.slug,t,"file",{path:D}),{method:"PUT",headers:{"content-type":$.type||"application/octet-stream"},body:$})}))).find($e);if(F)throw F.reason},e[4]=n,e[5]=t,e[6]=l):l=e[6];let o;e[7]!==i||e[8]!==l?(o={mutationFn:l,onSettled:i},e[7]=i,e[8]=l,e[9]=o):o=e[9];const a=R(o);let c;e[10]!==n||e[11]!==t?(c=async p=>{await T(v(n.slug,t,"dir",{path:p}),{method:"POST"})},e[10]=n,e[11]=t,e[12]=c):c=e[12];let u;e[13]!==i||e[14]!==c?(u={mutationFn:c,onSuccess:i},e[13]=i,e[14]=c,e[15]=u):u=e[15];const d=R(u);let h;e[16]!==n||e[17]!==t?(h=async p=>{await T(v(n.slug,t,"file",{path:p}),{method:"DELETE"})},e[16]=n,e[17]=t,e[18]=h):h=e[18];let m;e[19]!==i||e[20]!==h?(m={mutationFn:h,onSuccess:i},e[19]=i,e[20]=h,e[21]=m):m=e[21];const g=R(m);let y;e[22]!==n||e[23]!==t?(y=async p=>{await T(v(n.slug,t,"move"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(p)})},e[22]=n,e[23]=t,e[24]=y):y=e[24];let x;e[25]!==i||e[26]!==y?(x={mutationFn:y,onSuccess:i},e[25]=i,e[26]=y,e[27]=x):x=e[27];const w=R(x);let b;return e[28]!==d||e[29]!==w||e[30]!==g||e[31]!==a?(b={upload:a,mkdir:d,remove:g,move:w},e[28]=d,e[29]=w,e[30]=g,e[31]=a,e[32]=b):b=e[32],b}function $e(t){return t.status==="rejected"}const ke=5e3;function _e(t){return(t??[]).some(e=>!e.lastSyncedAt&&!e.lastSyncError)}function Ce(){const t=S.c(7),{org:e}=O(),n=X();let s;t[0]!==e.id?(s=k.orgRepoSyncs(e.id),t[0]=e.id,t[1]=s):s=t[1];let r;t[2]!==n?(r=async()=>(await n.call("ORG_REPO_SYNC_LIST",{})).configs,t[2]=n,t[3]=r):r=t[3];let i;return t[4]!==s||t[5]!==r?(i={queryKey:s,staleTime:6e4,refetchInterval:Te,queryFn:r},t[4]=s,t[5]=r,t[6]=i):i=t[6],I(i)}function Te(t){return _e(t.state.data)?ke:!1}function Mt(){const t=S.c(2),e=Ce();let n;return t[0]!==e.data?(n=new Set((e.data??[]).map(Oe)),t[0]=e.data,t[1]=n):n=t[1],n}function Oe(t){return t.volume}function Pt(){const t=S.c(12),{org:e}=O(),n=X(),s=K();let r;t[0]!==e||t[1]!==s?(r=()=>s.invalidateQueries({queryKey:k.orgRepoSyncs(e.id)}),t[0]=e,t[1]=s,t[2]=r):r=t[2];const i=r;let l;t[3]!==n?(l=async c=>(await n.call("ORG_REPO_SYNC_CREATE",c)).config,t[3]=n,t[4]=l):l=t[4];let o;t[5]!==i||t[6]!==n?(o=c=>{n.call("ORG_REPO_SYNC_RUN",{id:c.id}).catch(De).then(i)},t[5]=i,t[6]=n,t[7]=o):o=t[7];let a;return t[8]!==i||t[9]!==l||t[10]!==o?(a={mutationFn:l,onSuccess:o,onSettled:i},t[8]=i,t[9]=l,t[10]=o,t[11]=a):a=t[11],R(a)}function De(){return null}function Ut(){const t=S.c(8),{org:e}=O(),n=X(),s=K();let r;t[0]!==n?(r=o=>n.call("ORG_REPO_SYNC_DELETE",{id:o}),t[0]=n,t[1]=r):r=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:k.orgRepoSyncs(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let l;return t[5]!==r||t[6]!==i?(l={mutationFn:r,onSettled:i},t[5]=r,t[6]=i,t[7]=l):l=t[7],R(l)}function Ne(t,e,n){return e?"color":n?"font":/^--brand-(text|fw|leading|tracking)/i.test(t)?"type":/^--brand-space/i.test(t)?"space":/^--brand-radius/i.test(t)?"radius":/^--brand-shadow/i.test(t)?"shadow":/^--brand-(duration|delay|ease)/i.test(t)?"motion":"other"}const ve=/^(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)\(/i,Ee=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Ie=["svg","png","jpg","jpeg","webp","avif","gif"];function Re(t){return t.split(".").pop()?.toLowerCase()??""}function Le(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Me(t){const e=t.trim();return Ee.test(e)||ve.test(e)}function qt(t){const e=t.trim(),n=e.match(/^#([0-9a-f]{3})$/i);return n?.[1]?`#${[...n[1]].map(s=>s+s).join("")}`:e}function Pe(t){const e=[],n=new Map,s=/(--brand-[\w-]+)\s*:\s*([^;]+);/g;let r;for(;(r=s.exec(t))!==null;){const i=r[1],l=r[2].trim();n.has(i)||e.push(i),n.set(i,l)}return e.map(i=>{const l=n.get(i),o=Me(l),a=/^--brand-font/i.test(i);return{name:i,value:l,isColor:o,isFont:a,kind:Ne(i,o,a)}})}const V=["primary","secondary","accent","neutral","success","warning","error","info","bg","fg","border","ring"];function Ue(t){return t.match(/^--brand-([a-z]+)/i)?.[1]?.toLowerCase()??t}function At(t){const e=[],n=new Map;for(const r of t){if(r.kind!=="color")continue;const i=Ue(r.name);n.has(i)||(e.push(i),n.set(i,[])),n.get(i).push(r)}return e.map(r=>{const i=n.get(r);return{family:r,tokens:i,isRamp:i.filter(l=>/-\d+$/.test(l.name)).length>=5}}).sort((r,i)=>{const l=V.indexOf(r.family),o=V.indexOf(i.family);return l===-1&&o===-1?0:l===-1?1:o===-1?-1:l-o})}function Kt(t,e,n){const s=new RegExp(`(${Le(e)}\\s*:\\s*)[^;]+(;)`);if(s.test(t))return t.replace(s,(l,o,a)=>`${o}${n}${a}`);const r=t.search(/:root\s*\{/);if(r!==-1){const l=t.indexOf("{",r)+1;return`${t.slice(0,l)}
|
|
2
2
|
${e}: ${n};${t.slice(l)}`}const i=t.length>0&&!t.endsWith(`
|
|
3
3
|
`)?`
|
|
4
4
|
`:"";return`${t}${i}:root {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as q,r as k,m as G,j as t,b as Q,B as $,k as V,t as I}from"./index-HWhUkMVs.js";import{i as Y}from"./XCircle-CT6qobjT.js";import{aZ as _,y as U}from"./agent-icon-ivyach6Y.js";import{n as K}from"./LinkExternal01-CtVhb7np.js";import{g as tt,f as ot,b as et,A as rt,a as it,e as st,c as at,d as nt}from"./alert-dialog-BtRTtbG0.js";import{I as W}from"./input-CDxc4QX0.js";import{L as Z}from"./label-CZbP70z-.js";import{T as mt,R as lt,U as pt,al as ct,J as dt,W as B,Z as gt,am as ut,X as xt}from"./index-CxV3B-5l.js";import{c as ft,B as ht,a as yt}from"./block-document-Dwn6SQky.js";import{u as bt}from"./use-autosave-DwrF0hri.js";import{t as jt}from"./ChevronDown-BX2HgupK.js";import{af as vt,ag as Et,ae as Nt}from"./automation-runs-B9PPWxz2.js";import{s as b,E as Ct}from"./primitives-D7u08cAb.js";import"./AlertCircle-0OUPWUNo.js";import"./Tool01-BK3Hfpvm.js";import"./ArrowUp-CNifCRwW.js";import"./ArrowLeft-CcZIvmNQ.js";import"./Tool02-gKszIrtU.js";import"./ArrowUpRight-CHr_jXVV.js";import"./TrendUp01-D4y32I70.js";import"./ZapSquare-C7FTkjlS.js";import"./Users03-DEaDNrbw.js";import"./CheckCircle-HA9HSubF.js";import"./Check-YqNpUnjS.js";import"./ChevronRight-kdKaq9Ii.js";import"./ChevronUp-J2R9ILOH.js";import"./DotsVertical-Cz5ElmDn.js";import"./Stars02-D49Mvriv.js";import"./Copy01-Bm8H5mLb.js";import"./CpuChip01-DgkecjAs.js";import"./CreditCard01-f8B5Wkqh.js";import"./Globe01-BAit6vQe.js";import"./Settings02-D8A1C3JO.js";import"./Eye-CaOR6o-h.js";import"./FilterLines-CU3G94q8.js";import"./Share07-BVdvoyk4.js";import"./Star01-Dk3FFpxM.js";import"./Globe04-DOMcqhEH.js";import"./SwitchHorizontal01-B0vjSREj.js";import"./HardDrive-CGleOs63.js";import"./Key01-DE0cHxdc.js";import"./LayoutLeft-B3Xq6Q9F.js";import"./LogOut01-pEbmO0Np.js";import"./Monitor01-DDxK-vql.js";import"./Sun-BZWpsJUV.js";import"./Palette-BdM6u7AM.js";import"./Play-IbqcJdN3.js";import"./Plus-BXW-bLkv.js";import"./SearchLg-L_ta90AC.js";import"./SearchMd-B1jAF5PX.js";import"./Shield01-D2H3k2fO.js";import"./Stars01-ndnSTODt.js";import"./Trash01-BSXuR-v0.js";import"./Upload01-nh4tHrH4.js";import"./User01-XKHS0Yi2.js";import"./Users01-tFQvWfNL.js";import"./XClose-CnW8TKsr.js";import"./X-B1FpD19v.js";import"./Zap-CAz1ejRf.js";import"./chat-context-DtiyxjXg.js";import"./tab-id-fxY7FqYq.js";import"./dialog-DsCqITds.js";import"./hooks-DoEly3LT.js";import"./use-mcp-client-WNkI8KAJ.js";import"./auth-BxRabvv-.js";import"./decopilot-sse-pool-BwUtRq_o.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-uppMIhb1.js";import"./use-ai-providers-Dfw1C_Qb.js";import"./studio-tools-whdp8gFV.js";import"./use-decopilot-events-LcKd19eo.js";import"./use-organization-settings-BJdrgwhq.js";import"./spinner-CMWgEkOv.js";import"./tooltip-DO91iaPZ.js";import"./drawer-CWuptb6-.js";import"./collection-search-C5R8jkCo.js";import"./use-mobile-nNGwbm7m.js";import"./AreaChart-BKcNvqGV.js";import"./index-B6bkuuby.js";import"./shell-layout-CzKlLa8f.js";import"./avatar-BxOwauBx.js";import"./required-auth-layout-Cdi-946f.js";import"./use-org-sso-DrOx8nh9.js";import"./deco-site-production-url-BjY4ZYd-.js";import"./form-C5LT36jD.js";import"./select-D3htjNBx.js";import"./tabs-D4B8_rLi.js";import"./toggle-group-CBptT1rM.js";import"./use-deco-credits-5oBMNAq-.js";import"./sidebar-DbMpr-rh.js";import"./popover-CnbRVVJ4.js";import"./self-tool-result-Ces-0lJd.js";import"./integration-icon-CtS0uJhZ.js";import"./extract-connection-data-XyQY0B73.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-C2HwF4Ce.js";import"./use-debounced-value-P_5pUA9W.js";import"./authenticate-and-persist-oauth-DH2xTiqE.js";import"./mcp-oauth-DKoInR_S.js";import"./track-CY-fnB6q.js";import"./toolbar-BI3FThik.js";import"./skeleton-Y7gyZPrn.js";import"./github-repo-picker-UNa4kaK1.js";import"./use-connection-B24S3YCN.js";import"./use-mcp-tools-BW_wQYIZ.js";import"./use-navigate-to-agent-9y1G65Xj.js";import"./reusable-new-chat-CouMjkYR.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-B7NQUqWh.js";import"./use-registry-connections-ChaImRoz.js";import"./useInfiniteQuery-BOShi_GX.js";import"./use-infinite-scroll-CBy2t19Z.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./card-BgLseUz9.js";import"./textarea-CXh3iKjW.js";import"./connection-form-helpers-ZRhzxhfS.js";import"./collection-tabs-CCbVGHLG.js";import"./badge-YeCL-pM6.js";import"./useSuspenseInfiniteQuery-C2H3DSMn.js";import"./use-open-billing-url-GphQa9pn.js";import"./select-model-DQpQr2DQ.js";import"./checkbox-DtxWa1Lp.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DzETP_0_.js";import"./cards-nVim6xBl.js";import"./dropdown-menu-CkysSdXs.js";import"./file-type-icon-Cqwaa-8d.js";import"./question-004-sINsf4GQ.js";import"./use-members-smedIK7m.js";import"./use-org-auth-client-uDIBUVH9.js";import"./use-status-sounds-CRL_QHV0.js";import"./empty-state-HwZPqFUt.js";import"./use-capability-hVyOyKfv.js";import"./monaco-editor-8vQ4bsg1.js";import"./pt-BR-CLy76QW2.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./switch-b6594rNl.js";import"./use-debounced-autosave-CrvyuS1z.js";import"./index-6TRi0uef.js";import"./search-input-DmFmc4FA.js";import"./index-uoMzVpNH.js";import"./use-secrets-Dl1vnLJJ.js";import"./format-time-BnbuEtat.js";import"./use-copy-BNHHpgOS.js";import"./use-tags-4N4KBIBB.js";import"./get-initials-D-f_fDFw.js";import"./command-BweZE9r1.js";import"./index-BQO3LZFM.js";import"./use-file-configs-CPONQlYc.js";import"./use-automations-Y3CwRy47.js";import"./automation-list-row-D0gz_UHt.js";import"./table-Bieg1GxH.js";import"./use-clock-tick-CttCxR3S.js";function St(j){const o=q.c(18),{icon:x,title:m,defaultOpen:v,children:u}=j,w=v===void 0?!1:v,[f,P]=k.useState(w);let l;o[0]!==x?(l=t.jsx(x,{size:15}),o[0]=x,o[1]=l):l=o[1];let r;o[2]!==m?(r=t.jsx("span",{className:"flex-1 text-left",children:m}),o[2]=m,o[3]=r):r=o[3];const a=f&&"rotate-180";let p;o[4]!==a?(p=G("transition-transform",a),o[4]=a,o[5]=p):p=o[5];let i;o[6]!==p?(i=t.jsx(jt,{size:15,className:p}),o[6]=p,o[7]=i):i=o[7];let c;o[8]!==l||o[9]!==r||o[10]!==i?(c=t.jsx(vt,{asChild:!0,children:t.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground cursor-pointer",children:[l,r,i]})}),o[8]=l,o[9]=r,o[10]=i,o[11]=c):c=o[11];let d;o[12]!==u?(d=t.jsx(Et,{className:"px-2 pt-4",children:u}),o[12]=u,o[13]=d):d=o[13];let n;return o[14]!==f||o[15]!==c||o[16]!==d?(n=t.jsxs(Nt,{open:f,onOpenChange:P,className:"mt-4",children:[c,d]}),o[14]=f,o[15]=c,o[16]=d,o[17]=n):n=o[17],n}function vr({orgSlug:j,virtualMcpId:o,branch:x,blockKey:m,block:v,decofile:u,meta:w,onManagePosts:f,onOpenPost:P,previewBaseUrl:l}){const r=Q(),a=mt({orgSlug:j,virtualMcpId:o,branch:x,packagePath:lt(o)}),p=pt(v,"categories"),[i,c,d]=bt(p,e=>{a.mutate({blockKey:m,data:B(m,"categories",e)})}),n=(e,S)=>c({...i,[e]:S}),A=ft({decofile:u,category:i,previewBaseUrl:l}),s=b(i.slug),[D,y]=k.useState(s),[g,E]=k.useState(null),[N,T]=k.useState(!1),z=s?ct(u).filter(e=>e.categorySlugs.includes(s)):[],C=z.length,H=e=>n("slug",e),J=async(e,S)=>{const X=b(i.name);T(!0);try{let h=0;for(const{key:F,payload:O}of gt(u,"posts")){const L=ut(O,e,{name:X,slug:S});L!==O&&(await a.mutateAsync({blockKey:F,data:B(F,"posts",xt(L))}),h+=1)}const R={...i,slug:S};await a.mutateAsync({blockKey:m,data:B(m,"categories",R)}),d(R),I.success(h>0?r("sandbox.categoryEditor.renameSuccessWithPosts",{count:String(h)}):r("sandbox.categoryEditor.renameSuccessNoPosts")),E(null)}catch(h){y(e),E(null),I.error(h instanceof Error?h.message:r("sandbox.categoryEditor.renameFailed"))}finally{T(!1)}},M=()=>{const e=D.trim();if(e===s){D!==e&&y(e);return}if(!e){y(s);return}if(C===0){H(e);return}E({oldSlug:s,newSlug:e,count:C})};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[t.jsx("span",{className:"truncate text-sm font-medium",children:b(i.name)||r("sandbox.categoryEditor.untitledCategory")}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[t.jsx(dt,{isPending:a.isPending,isError:a.isError}),A&&t.jsxs($,{type:"button",variant:"outline",size:"sm",title:r("sandbox.categoryEditor.previewTooltip"),onClick:()=>window.open(A,"_blank","noopener,noreferrer"),children:[t.jsx(K,{size:14}),r("sandbox.categoryEditor.seeCategoryPreview")]})]})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[t.jsx(Ct,{value:b(i.name),onChange:e=>n("name",e),placeholder:r("sandbox.categoryEditor.categoryNamePlaceholder"),className:"py-1 text-3xl font-bold text-foreground"}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(Z,{htmlFor:"category-slug",children:r("sandbox.categoryEditor.slugLabel")}),t.jsx(W,{id:"category-slug",value:D,onChange:e=>y(e.target.value),onBlur:M,placeholder:r("sandbox.categoryEditor.slugPlaceholder"),className:"h-10"})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(Z,{htmlFor:"category-description",children:r("sandbox.categoryEditor.descriptionLabel")}),t.jsx(W,{id:"category-description",value:b(i.description),onChange:e=>n("description",e.target.value),placeholder:r("sandbox.categoryEditor.descriptionPlaceholder"),className:"h-10"})]}),t.jsx(St,{icon:_,title:r("sandbox.categoryEditor.contentTitle"),defaultOpen:!0,children:t.jsx(ht,{value:yt(i.sections),onChange:e=>n("sections",e),meta:w,sandboxRef:{orgSlug:j,virtualMcpId:o,branch:x},emptyMessage:r("sandbox.categoryEditor.noContentEmpty")})}),t.jsxs("div",{className:"mt-6 overflow-hidden rounded-lg border bg-muted/30",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(U,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:r("sandbox.categoryEditor.postsInCategory",{count:String(C)})})]}),t.jsxs($,{type:"button",variant:"outline",size:"sm",disabled:!s,title:r(s?"sandbox.categoryEditor.pickPostsTooltip":"sandbox.categoryEditor.setSlugTooltip"),onClick:()=>f(s),children:[r("sandbox.categoryEditor.addPostsButton"),t.jsx(Y,{size:14})]})]}),C>0&&t.jsx("ul",{className:"divide-y border-t bg-background",children:z.map(e=>t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>P(e.key),className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-left transition-colors hover:bg-muted cursor-pointer",children:[t.jsx(U,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"min-w-0 flex-1",children:[t.jsx("span",{className:"block truncate text-sm",children:e.title||r("sandbox.categoryEditor.untitledPost")}),e.slug&&t.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:e.slug})]})]})},e.key))})]})]})})]}),t.jsx(tt,{open:!!g,onOpenChange:e=>{e||N||(y(s),E(null))},children:t.jsxs(ot,{children:[t.jsxs(et,{children:[t.jsx(rt,{children:r("sandbox.categoryEditor.renameDialogTitle")}),t.jsx(it,{children:g?r("sandbox.categoryEditor.renameDialogDescription",{oldSlug:g.oldSlug,newSlug:g.newSlug,count:String(g.count)}):null})]}),t.jsxs(st,{children:[t.jsx(at,{disabled:N,children:r("sandbox.categoryEditor.cancelButton")}),t.jsx(nt,{onClick:e=>{e.preventDefault(),g&&J(g.oldSlug,g.newSlug)},disabled:N,children:N?t.jsxs(t.Fragment,{children:[t.jsx(V,{size:14,className:"animate-spin"}),r("sandbox.categoryEditor.renamingLabel")]}):r("sandbox.categoryEditor.renameActionButton")})]})]})})]})}export{vr as CategoryEditor};
|
|
1
|
+
import{c as q,r as k,m as G,j as t,b as Q,B as $,k as V,t as I}from"./index-B-9MVTpa.js";import{i as Y}from"./XCircle-DcGXltkc.js";import{a_ as _,y as U}from"./agent-icon-DsR8jJXh.js";import{n as K}from"./LinkExternal01-CJEUNT1V.js";import{g as tt,f as ot,b as et,A as rt,a as it,e as st,c as at,d as nt}from"./alert-dialog-DdY4B_Sm.js";import{I as W}from"./input-CFIREZLG.js";import{L as H}from"./label-DbhNC-9w.js";import{T as mt,R as lt,U as pt,al as ct,J as dt,W as B,Z as gt,am as ut,X as xt}from"./index-Dj-wIQXC.js";import{c as ft,B as ht,a as yt}from"./block-document-8x3J_dmf.js";import{u as bt}from"./use-autosave-DJdJ-fOt.js";import{t as jt}from"./ChevronDown-1hRC2WTu.js";import{af as vt,ag as Et,ae as Nt}from"./automation-runs-Bfh7po5p.js";import{s as b,E as Ct}from"./primitives-DdFwHoqJ.js";import"./AlertCircle-DphgiHT4.js";import"./Tool01-BvwPMEC-.js";import"./ArrowUp-DFTBvXzm.js";import"./ArrowLeft-B0w40s_Y.js";import"./Tool02-C99rEtv1.js";import"./ArrowUpRight-4-vyYDuS.js";import"./TrendUp01-CxmO20HP.js";import"./ZapSquare-DMVkQSav.js";import"./Users03-p5OKQBCe.js";import"./CheckCircle-Bj-sbB75.js";import"./Check-X8DOcL_O.js";import"./ChevronRight-BXQuiEZz.js";import"./ChevronUp-C595nZnN.js";import"./DotsVertical-j-YUGLOj.js";import"./Stars02-Bd9mbF0O.js";import"./Copy01-BfTmIvh6.js";import"./CpuChip01-C-jW3qvr.js";import"./CreditCard01-Cwy1vypA.js";import"./Globe01-DC55fg9E.js";import"./Settings02-9twLcdZv.js";import"./Eye-CoeTMeYi.js";import"./FilterLines-DF7qiR9w.js";import"./Share07-giwW40i4.js";import"./Star01-Dk1qRJS6.js";import"./Globe04-50nhVLzn.js";import"./SwitchHorizontal01-C2i-2oWy.js";import"./HardDrive-DxVpYaYC.js";import"./Key01-B63LGSV9.js";import"./LayoutLeft-C6MowxGH.js";import"./LogOut01-B3RQAtr0.js";import"./Monitor01-BJw16DzK.js";import"./Sun-UYmpl8sO.js";import"./Palette-CVsVFrqm.js";import"./Play-C3M4Fq_O.js";import"./Plus-DK99_Snh.js";import"./SearchLg-NR76eHsn.js";import"./SearchMd-16uJ5wWN.js";import"./Shield01-B0-2sivE.js";import"./Stars01-BViddKuu.js";import"./Trash01-D5A4qYbL.js";import"./Upload01-Bq-W2XYi.js";import"./User01-BUulxXF8.js";import"./Users01-BB8GbuBi.js";import"./XClose-BgfpbBbH.js";import"./X-CxStVdnL.js";import"./Zap-EgeLq4Xz.js";import"./chat-context-COWUXvFa.js";import"./tab-id-BI-ZdXtx.js";import"./dialog-D6bhM5Bl.js";import"./hooks-BFx7cozZ.js";import"./use-mcp-client-BVNppOHU.js";import"./auth-BEISECSN.js";import"./decopilot-sse-pool-DAEpXljW.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-fXc4CszM.js";import"./use-ai-providers-CZjqEJy0.js";import"./studio-tools-B48zN66-.js";import"./use-decopilot-events-Db-rzvkD.js";import"./use-organization-settings-B282pR89.js";import"./spinner-DR-lvtYj.js";import"./tooltip-iD2amP63.js";import"./drawer-oU9goTDJ.js";import"./collection-search-DFOzK1I3.js";import"./use-mobile-BDBEccf0.js";import"./AreaChart-DdgvMQ5o.js";import"./index-BTJpW-dv.js";import"./shell-layout-BGKbWdUU.js";import"./avatar-DqLlWPph.js";import"./required-auth-layout-B-U42Xp3.js";import"./use-org-sso-JGd0CX02.js";import"./deco-site-production-url-BjY4ZYd-.js";import"./form-DCiXkgfG.js";import"./select-479TmRNo.js";import"./tabs-B9YzWyot.js";import"./toggle-group-BQqHmxyO.js";import"./use-deco-credits-DpEKktF5.js";import"./sidebar-DWFsKUYY.js";import"./popover-1SpdqXlq.js";import"./self-tool-result-D7tCNtIW.js";import"./integration-icon-Cr6ioOYy.js";import"./extract-connection-data-CDvlX618.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-C2HwF4Ce.js";import"./use-debounced-value-Bwe_Ywaw.js";import"./authenticate-and-persist-oauth-DBN2TjjF.js";import"./mcp-oauth-CwCJBdf0.js";import"./track-Bhet8_aM.js";import"./toolbar-B2QmizD9.js";import"./skeleton-D-QVm2-v.js";import"./github-repo-picker-DdYb_TqJ.js";import"./use-connection-DJmNO8PS.js";import"./use-mcp-tools-DmQGxNG4.js";import"./use-navigate-to-agent-CohO9vnC.js";import"./reusable-new-chat-CouMjkYR.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-BFmawtN3.js";import"./use-registry-connections-CM1IgVmE.js";import"./useInfiniteQuery-CiZ85w8A.js";import"./use-infinite-scroll-BV9iYWuG.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./card-BmJrCmKV.js";import"./textarea-DN4gewG7.js";import"./connection-form-helpers-Bzg0_nHr.js";import"./collection-tabs-CSUDfb5Q.js";import"./badge-C9ZI18xs.js";import"./useSuspenseInfiniteQuery-CrmgYenE.js";import"./use-open-billing-url-DB_49CX7.js";import"./select-model-LhQTSmu_.js";import"./checkbox-BG0D5iEC.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BODjIVT_.js";import"./cards-DjurRpNu.js";import"./dropdown-menu-DNywxboQ.js";import"./file-type-icon-DcDuFZ3n.js";import"./question-004-sINsf4GQ.js";import"./use-members-eRW-lpx_.js";import"./use-org-auth-client-GYynwkNi.js";import"./use-status-sounds-Dovl1n_T.js";import"./empty-state-CG7QAJeX.js";import"./use-capability-D4NVN7Xn.js";import"./monaco-editor-WjL6XJMD.js";import"./pt-BR-CLy76QW2.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./switch-DRpyAKAn.js";import"./use-debounced-autosave-BkGXqKW-.js";import"./index-BLGEGRDp.js";import"./search-input-CNsoObTw.js";import"./index-DeV8glvQ.js";import"./use-secrets-ClkPpQGb.js";import"./format-time-BnbuEtat.js";import"./use-copy-C4DHtP6p.js";import"./use-tags-DD1xsN0U.js";import"./get-initials-D-f_fDFw.js";import"./command-Bl96W3DU.js";import"./index-krrgKyLi.js";import"./use-file-configs-DTcmH_gF.js";import"./use-automations-Deafj0lE.js";import"./automation-list-row-Duq4mfOd.js";import"./table-CTW0WsOP.js";import"./use-clock-tick-kyyqCW_M.js";function St(j){const o=q.c(18),{icon:x,title:m,defaultOpen:v,children:u}=j,w=v===void 0?!1:v,[f,P]=k.useState(w);let l;o[0]!==x?(l=t.jsx(x,{size:15}),o[0]=x,o[1]=l):l=o[1];let r;o[2]!==m?(r=t.jsx("span",{className:"flex-1 text-left",children:m}),o[2]=m,o[3]=r):r=o[3];const a=f&&"rotate-180";let p;o[4]!==a?(p=G("transition-transform",a),o[4]=a,o[5]=p):p=o[5];let i;o[6]!==p?(i=t.jsx(jt,{size:15,className:p}),o[6]=p,o[7]=i):i=o[7];let c;o[8]!==l||o[9]!==r||o[10]!==i?(c=t.jsx(vt,{asChild:!0,children:t.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground cursor-pointer",children:[l,r,i]})}),o[8]=l,o[9]=r,o[10]=i,o[11]=c):c=o[11];let d;o[12]!==u?(d=t.jsx(Et,{className:"px-2 pt-4",children:u}),o[12]=u,o[13]=d):d=o[13];let n;return o[14]!==f||o[15]!==c||o[16]!==d?(n=t.jsxs(Nt,{open:f,onOpenChange:P,className:"mt-4",children:[c,d]}),o[14]=f,o[15]=c,o[16]=d,o[17]=n):n=o[17],n}function vr({orgSlug:j,virtualMcpId:o,branch:x,blockKey:m,block:v,decofile:u,meta:w,onManagePosts:f,onOpenPost:P,previewBaseUrl:l}){const r=Q(),a=mt({orgSlug:j,virtualMcpId:o,branch:x,packagePath:lt(o)}),p=pt(v,"categories"),[i,c,d]=bt(p,e=>{a.mutate({blockKey:m,data:B(m,"categories",e)})}),n=(e,S)=>c({...i,[e]:S}),A=ft({decofile:u,category:i,previewBaseUrl:l}),s=b(i.slug),[D,y]=k.useState(s),[g,E]=k.useState(null),[N,T]=k.useState(!1),z=s?ct(u).filter(e=>e.categorySlugs.includes(s)):[],C=z.length,J=e=>n("slug",e),M=async(e,S)=>{const Z=b(i.name);T(!0);try{let h=0;for(const{key:F,payload:O}of gt(u,"posts")){const L=ut(O,e,{name:Z,slug:S});L!==O&&(await a.mutateAsync({blockKey:F,data:B(F,"posts",xt(L))}),h+=1)}const R={...i,slug:S};await a.mutateAsync({blockKey:m,data:B(m,"categories",R)}),d(R),I.success(h>0?r("sandbox.categoryEditor.renameSuccessWithPosts",{count:String(h)}):r("sandbox.categoryEditor.renameSuccessNoPosts")),E(null)}catch(h){y(e),E(null),I.error(h instanceof Error?h.message:r("sandbox.categoryEditor.renameFailed"))}finally{T(!1)}},X=()=>{const e=D.trim();if(e===s){D!==e&&y(e);return}if(!e){y(s);return}if(C===0){J(e);return}E({oldSlug:s,newSlug:e,count:C})};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[t.jsx("span",{className:"truncate text-sm font-medium",children:b(i.name)||r("sandbox.categoryEditor.untitledCategory")}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[t.jsx(dt,{isPending:a.isPending,isError:a.isError}),A&&t.jsxs($,{type:"button",variant:"outline",size:"sm",title:r("sandbox.categoryEditor.previewTooltip"),onClick:()=>window.open(A,"_blank","noopener,noreferrer"),children:[t.jsx(K,{size:14}),r("sandbox.categoryEditor.seeCategoryPreview")]})]})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[t.jsx(Ct,{value:b(i.name),onChange:e=>n("name",e),placeholder:r("sandbox.categoryEditor.categoryNamePlaceholder"),className:"py-1 text-3xl font-bold text-foreground"}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(H,{htmlFor:"category-slug",children:r("sandbox.categoryEditor.slugLabel")}),t.jsx(W,{id:"category-slug",value:D,onChange:e=>y(e.target.value),onBlur:X,placeholder:r("sandbox.categoryEditor.slugPlaceholder"),className:"h-10"})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(H,{htmlFor:"category-description",children:r("sandbox.categoryEditor.descriptionLabel")}),t.jsx(W,{id:"category-description",value:b(i.description),onChange:e=>n("description",e.target.value),placeholder:r("sandbox.categoryEditor.descriptionPlaceholder"),className:"h-10"})]}),t.jsx(St,{icon:_,title:r("sandbox.categoryEditor.contentTitle"),defaultOpen:!0,children:t.jsx(ht,{value:yt(i.sections),onChange:e=>n("sections",e),meta:w,sandboxRef:{orgSlug:j,virtualMcpId:o,branch:x},emptyMessage:r("sandbox.categoryEditor.noContentEmpty")})}),t.jsxs("div",{className:"mt-6 overflow-hidden rounded-lg border bg-muted/30",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(U,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:r("sandbox.categoryEditor.postsInCategory",{count:String(C)})})]}),t.jsxs($,{type:"button",variant:"outline",size:"sm",disabled:!s,title:r(s?"sandbox.categoryEditor.pickPostsTooltip":"sandbox.categoryEditor.setSlugTooltip"),onClick:()=>f(s),children:[r("sandbox.categoryEditor.addPostsButton"),t.jsx(Y,{size:14})]})]}),C>0&&t.jsx("ul",{className:"divide-y border-t bg-background",children:z.map(e=>t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>P(e.key),className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-left transition-colors hover:bg-muted cursor-pointer",children:[t.jsx(U,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"min-w-0 flex-1",children:[t.jsx("span",{className:"block truncate text-sm",children:e.title||r("sandbox.categoryEditor.untitledPost")}),e.slug&&t.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:e.slug})]})]})},e.key))})]})]})})]}),t.jsx(tt,{open:!!g,onOpenChange:e=>{e||N||(y(s),E(null))},children:t.jsxs(ot,{children:[t.jsxs(et,{children:[t.jsx(rt,{children:r("sandbox.categoryEditor.renameDialogTitle")}),t.jsx(it,{children:g?r("sandbox.categoryEditor.renameDialogDescription",{oldSlug:g.oldSlug,newSlug:g.newSlug,count:String(g.count)}):null})]}),t.jsxs(st,{children:[t.jsx(at,{disabled:N,children:r("sandbox.categoryEditor.cancelButton")}),t.jsx(nt,{onClick:e=>{e.preventDefault(),g&&M(g.oldSlug,g.newSlug)},disabled:N,children:N?t.jsxs(t.Fragment,{children:[t.jsx(V,{size:14,className:"animate-spin"}),r("sandbox.categoryEditor.renamingLabel")]}):r("sandbox.categoryEditor.renameActionButton")})]})]})})]})}export{vr as CategoryEditor};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Z as S,_ as C,a4 as z,$ as i,a0 as ue,a3 as Ie,aP as Ce,cy as Mt,bk as qe,b9 as ut,c as ie,J as pt,u as Ve,o as He,F as ee,K as de,t as ce,I as be,G as ge,d as ht,f as Tt,r as v,n as Ct,e as At,j as Me,b as De,a as Pt,v as _t,a8 as Rt,p as Et}from"./index-HWhUkMVs.js";import{d as Dt,s as $t,A as mt,t as Ut,u as Ot,o as Lt,w as Nt}from"./tab-id-fxY7FqYq.js";import{S as Ft,s as qt,u as jt,f as Bt,i as Vt,b as Ht}from"./hooks-DoEly3LT.js";import{u as Kt}from"./use-is-desktop-app-BNujXJc_.js";import{a as Qt,u as Wt,S as Gt}from"./use-mcp-client-WNkI8KAJ.js";import{u as zt}from"./use-virtual-mcp-uppMIhb1.js";import{u as ft,p as Xt,b as we,i as Zt,c as Yt}from"./use-ai-providers-Dfw1C_Qb.js";import{u as Jt}from"./use-decopilot-events-LcKd19eo.js";import{u as en,c as tn}from"./studio-tools-whdp8gFV.js";import{b as nn}from"./use-organization-settings-BJdrgwhq.js";const xe=S({connection_id:i().describe("Connection ID"),selected_tools:C(i()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:C(i()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:C(i()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),bt=xe.extend({selected_tools:xe.shape.selected_tools.optional(),selected_resources:xe.shape.selected_resources.optional(),selected_prompts:xe.shape.selected_prompts.optional()}),sn=S({connectionId:i(),toolName:i(),label:i(),icon:i().nullable().optional()}),on=S({id:i().describe("Stable id; used as React key and ?tab= value"),title:i().describe("Tab label"),icon:i().optional().describe("Optional lucide icon name"),view:S({type:qe("ext-app"),appId:i(),args:Ie(i(),ut()).optional()})}),an=S({defaultMainView:S({type:i(),id:i().optional(),toolName:i().optional()}).nullable().optional(),chatDefaultOpen:z().nullable().optional(),cmsDefaultOpen:z().nullable().optional(),tabs:C(on).optional()}),at=S({tileId:i().optional(),connectionId:i().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:i().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:i().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:Ie(i(),ut()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:Ce().int().positive().optional(),maxHeight:Ce().int().positive().optional()}),Ke=S({banner:i().nullable().optional(),bannerColor:i().nullable().optional(),icon:i().nullable().optional(),themeColor:i().nullable().optional(),pinnedViews:C(sn).nullable().optional(),layout:an.nullable().optional(),homeTile:at.nullable().optional(),homeTiles:C(at).nullable().optional(),homePrompts:C(i()).nullable().optional()});function bs(t){const e=t?.homeTiles;if(Array.isArray(e)&&e.length>0)return e;const n=t?.homeTile;return n?[n]:[]}const rn=/^[A-Za-z_][A-Za-z0-9_]*$/,it=i().min(1).regex(rn,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),ln=Mt("kind",[S({key:it,kind:qe("literal"),value:i()}),S({key:it,kind:qe("secret"),secretId:i().min(1)})]),cn=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/,dn=S({host:i().min(1).regex(cn).describe("Submodule host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:i().min(1).describe("Vault secret id holding the PAT used to fetch this host.")}),Qe=S({selected:i().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:i().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:i().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:C(ln).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that Studio resolves via the credential vault before posting /_sandbox/config."),submoduleCredentials:C(dn).nullable().optional().describe("Git submodule credentials injected on every SANDBOX_START. Each entry maps a host to a vault secret (PAT) that Studio resolves before posting /_sandbox/config; the daemon uses it to authenticate `git submodule update` for submodules on that host.")}),We=S({url:i().describe("GitHub repository URL"),owner:i().describe("Repository owner"),name:i().describe("Repository name"),installationId:Ce().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:i().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials.")}),un=ue(["agent-sandbox","user-desktop"]),pn=ue(["agent-sandbox","user-desktop","cluster"]);function Ge(t){return t==="cluster"?"agent-sandbox":t}const gt={sandboxHandle:i().describe("Provider-specific handle"),previewUrl:i().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:i().nullable().optional().describe("Daemon's public URL — what cluster→daemon RPCs target. Equal to previewUrl for user-desktop; null/absent for the agent-sandbox provider (routes through hosted ingress)."),sandboxProviderKind:un.optional(),createdAt:Ce().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:S({packageManager:i().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:i().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:i().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},yt=S(gt),hn=S({...gt,sandboxProviderKind:pn.optional()});function mn(t){const e=hn.parse(t);return yt.parse({...e,sandboxProviderKind:e.sandboxProviderKind?Ge(e.sandboxProviderKind):void 0})}function gs(t){if(!t||typeof t!="object"||Array.isArray(t))return{};const e=t,n={};for(const[s,o]of Object.entries(e)){if(!o||typeof o!="object"||s!=="cluster"&&s!=="agent-sandbox"&&s!=="user-desktop")continue;const a=Ge(s);try{if(s==="cluster"&&n[a])continue;n[a]=mn(o)}catch{}}return n}const ze=Ie(i().describe("userId"),Ie(i().describe("branch"),Ie(i().describe("sandboxProviderKind"),yt))),fn=S({id:i().describe("Stable identifier for this knowledge file"),name:i().describe("File name shown in the UI"),kind:ue(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:i().describe("Org filesystem (Library) volume the file lives in"),path:i().describe("Path within the volume"),url:i().describe("Same-origin URL to read the file (display/download)"),contentType:i().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:Ce().nullable().optional().describe("File size in bytes"),addedAt:i().describe("ISO timestamp when the file was attached")}),Xe=C(fn).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),bn=ue(["smart","code-review","open"]),Ze=bn.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),Ye=z().nullable().optional().describe("Enable Fast Preview (sandbox-less): render the draft instantly on the preview server's own page via a ?__draft pointer, with reads/writes served by the decofile API against GitHub. Requires previewServerUrl (or legacy productionUrl) to be set to take effect."),Je=i().nullable().optional().describe("Preview server URL — the deployment the CMS preview renders against (often the live site, e.g. https://acme.com). Painted in the preview iframe, and the render target for Fast Preview drafts. Supersedes the legacy productionUrl key."),et=z().nullable().optional().describe("Show a 'Sync' action in the CMS preview's overflow menu that tells the agent to commit pending changes, pull --rebase this branch, and rebase onto the latest base branch. Off by default."),ys=S({id:i().describe("Unique identifier"),title:i().describe("Human-readable name"),description:i().nullable().describe("Description"),icon:i().nullable().describe("Icon URL"),created_at:i().describe("Creation timestamp"),updated_at:i().describe("Last update timestamp"),created_by:i().describe("User ID who created this item"),updated_by:i().optional().describe("User ID who last updated this item"),organization_id:i().describe("Organization ID this item belongs to"),status:ue(["active","inactive"]).describe("Current status"),pinned:z().describe("Whether this space is pinned to the sidebar"),metadata:S({instructions:i().nullable().describe("Instructions also used as system prompt"),enabled_plugins:C(i()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(i()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:i().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Ke.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:ze.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:i().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,previewServerUrl:Je,productionUrl:i().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:z().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye,syncButtonEnabled:et}).loose().describe("Metadata"),connections:C(xe).describe("Connections with their selected tools, resources, and prompts")}),vt=S({title:i().min(1).max(120).describe("Short label shown on the chip"),description:i().max(280).optional().describe("One-line subtitle shown under the title"),text:i().min(1).describe("The message sent to the agent when the prompt is clicked")});S({title:i().min(1).max(255).describe("Name for the virtual MCP"),description:i().nullable().optional().describe("Optional description"),icon:i().nullish().describe("Optional icon URL"),status:ue(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:z().optional().default(!1).describe("Pin to sidebar"),metadata:S({instructions:i().nullable().optional().describe("MCP server instructions"),enabled_plugins:C(i()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(i()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:i().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Ke.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:ze.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:i().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,previewServerUrl:Je,productionUrl:i().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:z().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye,syncButtonEnabled:et}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:C(bt).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:C(vt).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});S({title:i().min(1).max(255).optional().describe("New name"),description:i().nullable().optional().describe("New description (null to clear)"),icon:i().nullish().describe("New icon URL"),status:ue(["active","inactive"]).optional().describe("New status"),pinned:z().optional().describe("Pin/unpin from sidebar"),metadata:S({instructions:i().nullable().optional().describe("MCP server instructions"),enabled_plugins:C(i()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(i()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:i().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Ke.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:ze.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:i().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,previewServerUrl:Je,productionUrl:i().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:z().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye,syncButtonEnabled:et}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:C(bt).optional().describe("New connections (replaces existing)"),prompts:C(vt).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});function gn(t,e=[]){return t==="stop"?"completed":t==="tool-calls"?e.some(s=>s.type==="tool-user_ask"&&s.state==="input-available"||s.state==="approval-requested")?"requires_action":"completed":"failed"}const je={decopilot:{harness:"decopilot",sandbox:"agent-sandbox"},"claude-code-desktop":{harness:"claude-code",sandbox:"user-desktop"},"codex-desktop":{harness:"codex",sandbox:"user-desktop"},"opencode-desktop":{harness:"opencode",sandbox:"user-desktop"}};function yn(t,e){if(!t)return null;const n=e?Ge(e):null;if(t==="decopilot"&&(n===null||n==="user-desktop"))return"decopilot";for(const[s,o]of Object.entries(je))if(o.harness===t&&o.sandbox===n)return s;return null}function vn({pendingOption:t,lockedHarness:e}){return e==="claude-code"?"claude-code-desktop":e==="codex"?"codex-desktop":e==="opencode"?"opencode-desktop":t==="claude-code-desktop"||t==="codex-desktop"||t==="opencode-desktop"?t:null}function Sn(t){return t.thread?.harness_id!=null?{}:{harnessId:"decopilot",sandboxProviderKind:"agent-sandbox",branch:t.globals.branch??null}}const kn="home",wn=new Set(["output","upload","public","home"]),xn=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;function vs(t){return wn.has(t)||!xn.test(t)?"home":t}function In(t){const e=t?t.split("/").filter(Boolean):[],n=e[0]==="public",s=n?e[1]??null:null,o=n?s?`public-${s}`:null:e[0]??null,a=(n?e.slice(2):e.slice(1)).join("/");return{segments:e,volume:o,dirPath:a,isPublic:n,publicSet:s,readOnly:n,isHomeRoot:o===kn&&a===""}}function Ss(t){return t==="public"?"skills":t}function ks(t,e){return t.isPublic&&t.publicSet?`public/${t.publicSet}/${e}`:t.volume?`${t.volume}/${e}`:e}const rt="public-";function St(t){return t.startsWith(rt)?t.slice(rt.length):null}function ws(t,e){const n=St(t);return n?`public/${n}/${e}`:`${t}/${e}`}function Mn(t){const e=t.lastIndexOf("/");return e===-1?t:t.slice(e+1)}function Tn(t){const{volume:e,dirPath:n}=In(t);if(!e)return null;let s;if(e==="home")s="org/home";else if(e==="outputs")s="org/.outputs";else if(e==="uploads")s="org/.uploads";else{const o=St(e);s=o?`org/public/${o}`:`org/${e}`}return n?`${s}/${n}`:s}function Cn(t){const e=ie.c(21);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId",shouldThrow:!1},e[0]=n):n=e[0];const s=pt(n);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[1]=o):o=e[1];const a=Ve(o);let l;e[2]!==a.brand||e[3]!==a.main||e[4]!==a.preview||e[5]!==a.skill?(l=(typeof a.main=="string"?Dt(a.main)?.path:void 0)??a.preview??a.skill??a.brand??null,e[2]=a.brand,e[3]=a.main,e[4]=a.preview,e[5]=a.skill,e[6]=l):l=e[6];const c=l;let h;if(e[7]!==s?.params.appSlug||e[8]!==s?.params.collectionName||e[9]!==s?.params.itemId||e[10]!==c||e[11]!==t){if(h=[],t&&h.push(`### Selected Agent
|
|
1
|
+
import{Z as S,_ as C,a4 as z,$ as i,a0 as ue,a3 as Ie,aP as Ce,cy as Mt,bl as qe,ba as ut,c as ie,J as pt,u as Ve,o as He,F as ee,K as de,t as ce,I as be,G as ge,d as ht,f as Tt,r as v,n as Ct,e as At,j as Me,b as De,a as Pt,v as _t,a8 as Rt,p as Et}from"./index-B-9MVTpa.js";import{d as Dt,s as $t,A as mt,t as Ut,u as Ot,o as Lt,w as Nt}from"./tab-id-BI-ZdXtx.js";import{S as Ft,s as qt,u as jt,f as Bt,i as Vt,b as Ht}from"./hooks-BFx7cozZ.js";import{u as Kt}from"./use-is-desktop-app-BNujXJc_.js";import{a as Qt,u as Wt,S as Gt}from"./use-mcp-client-BVNppOHU.js";import{u as zt}from"./use-virtual-mcp-fXc4CszM.js";import{u as ft,p as Xt,b as we,i as Zt,c as Yt}from"./use-ai-providers-CZjqEJy0.js";import{u as Jt}from"./use-decopilot-events-Db-rzvkD.js";import{u as en,c as tn}from"./studio-tools-B48zN66-.js";import{b as nn}from"./use-organization-settings-B282pR89.js";const xe=S({connection_id:i().describe("Connection ID"),selected_tools:C(i()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:C(i()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:C(i()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),bt=xe.extend({selected_tools:xe.shape.selected_tools.optional(),selected_resources:xe.shape.selected_resources.optional(),selected_prompts:xe.shape.selected_prompts.optional()}),sn=S({connectionId:i(),toolName:i(),label:i(),icon:i().nullable().optional()}),on=S({id:i().describe("Stable id; used as React key and ?tab= value"),title:i().describe("Tab label"),icon:i().optional().describe("Optional lucide icon name"),view:S({type:qe("ext-app"),appId:i(),args:Ie(i(),ut()).optional()})}),an=S({defaultMainView:S({type:i(),id:i().optional(),toolName:i().optional()}).nullable().optional(),chatDefaultOpen:z().nullable().optional(),cmsDefaultOpen:z().nullable().optional(),tabs:C(on).optional()}),at=S({tileId:i().optional(),connectionId:i().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:i().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:i().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:Ie(i(),ut()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:Ce().int().positive().optional(),maxHeight:Ce().int().positive().optional()}),Ke=S({banner:i().nullable().optional(),bannerColor:i().nullable().optional(),icon:i().nullable().optional(),themeColor:i().nullable().optional(),pinnedViews:C(sn).nullable().optional(),layout:an.nullable().optional(),homeTile:at.nullable().optional(),homeTiles:C(at).nullable().optional(),homePrompts:C(i()).nullable().optional()});function bs(t){const e=t?.homeTiles;if(Array.isArray(e)&&e.length>0)return e;const n=t?.homeTile;return n?[n]:[]}const rn=/^[A-Za-z_][A-Za-z0-9_]*$/,it=i().min(1).regex(rn,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),ln=Mt("kind",[S({key:it,kind:qe("literal"),value:i()}),S({key:it,kind:qe("secret"),secretId:i().min(1)})]),cn=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/,dn=S({host:i().min(1).regex(cn).describe("Submodule host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:i().min(1).describe("Vault secret id holding the PAT used to fetch this host.")}),Qe=S({selected:i().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:i().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:i().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:C(ln).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that Studio resolves via the credential vault before posting /_sandbox/config."),submoduleCredentials:C(dn).nullable().optional().describe("Git submodule credentials injected on every SANDBOX_START. Each entry maps a host to a vault secret (PAT) that Studio resolves before posting /_sandbox/config; the daemon uses it to authenticate `git submodule update` for submodules on that host.")}),We=S({url:i().describe("GitHub repository URL"),owner:i().describe("Repository owner"),name:i().describe("Repository name"),installationId:Ce().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:i().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials.")}),un=ue(["agent-sandbox","user-desktop"]),pn=ue(["agent-sandbox","user-desktop","cluster"]);function Ge(t){return t==="cluster"?"agent-sandbox":t}const gt={sandboxHandle:i().describe("Provider-specific handle"),previewUrl:i().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:i().nullable().optional().describe("Daemon's public URL — what cluster→daemon RPCs target. Equal to previewUrl for user-desktop; null/absent for the agent-sandbox provider (routes through hosted ingress)."),sandboxProviderKind:un.optional(),createdAt:Ce().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:S({packageManager:i().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:i().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:i().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},yt=S(gt),hn=S({...gt,sandboxProviderKind:pn.optional()});function mn(t){const e=hn.parse(t);return yt.parse({...e,sandboxProviderKind:e.sandboxProviderKind?Ge(e.sandboxProviderKind):void 0})}function gs(t){if(!t||typeof t!="object"||Array.isArray(t))return{};const e=t,n={};for(const[s,o]of Object.entries(e)){if(!o||typeof o!="object"||s!=="cluster"&&s!=="agent-sandbox"&&s!=="user-desktop")continue;const a=Ge(s);try{if(s==="cluster"&&n[a])continue;n[a]=mn(o)}catch{}}return n}const ze=Ie(i().describe("userId"),Ie(i().describe("branch"),Ie(i().describe("sandboxProviderKind"),yt))),fn=S({id:i().describe("Stable identifier for this knowledge file"),name:i().describe("File name shown in the UI"),kind:ue(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:i().describe("Org filesystem (Library) volume the file lives in"),path:i().describe("Path within the volume"),url:i().describe("Same-origin URL to read the file (display/download)"),contentType:i().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:Ce().nullable().optional().describe("File size in bytes"),addedAt:i().describe("ISO timestamp when the file was attached")}),Xe=C(fn).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),bn=ue(["smart","code-review","open"]),Ze=bn.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),Ye=z().nullable().optional().describe("Enable Fast Preview (sandbox-less): render the draft instantly on the preview server's own page via a ?__draft pointer, with reads/writes served by the decofile API against GitHub. Requires previewServerUrl (or legacy productionUrl) to be set to take effect."),Je=i().nullable().optional().describe("Preview server URL — the deployment the CMS preview renders against (often the live site, e.g. https://acme.com). Painted in the preview iframe, and the render target for Fast Preview drafts. Supersedes the legacy productionUrl key."),et=z().nullable().optional().describe("Show a 'Sync' action in the CMS preview's overflow menu that tells the agent to commit pending changes, pull --rebase this branch, and rebase onto the latest base branch. Off by default."),ys=S({id:i().describe("Unique identifier"),title:i().describe("Human-readable name"),description:i().nullable().describe("Description"),icon:i().nullable().describe("Icon URL"),created_at:i().describe("Creation timestamp"),updated_at:i().describe("Last update timestamp"),created_by:i().describe("User ID who created this item"),updated_by:i().optional().describe("User ID who last updated this item"),organization_id:i().describe("Organization ID this item belongs to"),status:ue(["active","inactive"]).describe("Current status"),pinned:z().describe("Whether this space is pinned to the sidebar"),metadata:S({instructions:i().nullable().describe("Instructions also used as system prompt"),enabled_plugins:C(i()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(i()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:i().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Ke.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:ze.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:i().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,previewServerUrl:Je,productionUrl:i().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:z().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye,syncButtonEnabled:et}).loose().describe("Metadata"),connections:C(xe).describe("Connections with their selected tools, resources, and prompts")}),vt=S({title:i().min(1).max(120).describe("Short label shown on the chip"),description:i().max(280).optional().describe("One-line subtitle shown under the title"),text:i().min(1).describe("The message sent to the agent when the prompt is clicked")});S({title:i().min(1).max(255).describe("Name for the virtual MCP"),description:i().nullable().optional().describe("Optional description"),icon:i().nullish().describe("Optional icon URL"),status:ue(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:z().optional().default(!1).describe("Pin to sidebar"),metadata:S({instructions:i().nullable().optional().describe("MCP server instructions"),enabled_plugins:C(i()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(i()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:i().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Ke.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:ze.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:i().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,previewServerUrl:Je,productionUrl:i().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:z().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye,syncButtonEnabled:et}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:C(bt).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:C(vt).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});S({title:i().min(1).max(255).optional().describe("New name"),description:i().nullable().optional().describe("New description (null to clear)"),icon:i().nullish().describe("New icon URL"),status:ue(["active","inactive"]).optional().describe("New status"),pinned:z().optional().describe("Pin/unpin from sidebar"),metadata:S({instructions:i().nullable().optional().describe("MCP server instructions"),enabled_plugins:C(i()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(i()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:i().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Ke.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:ze.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:i().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,previewServerUrl:Je,productionUrl:i().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:z().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye,syncButtonEnabled:et}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:C(bt).optional().describe("New connections (replaces existing)"),prompts:C(vt).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});function gn(t,e=[]){return t==="stop"?"completed":t==="tool-calls"?e.some(s=>s.type==="tool-user_ask"&&s.state==="input-available"||s.state==="approval-requested")?"requires_action":"completed":"failed"}const je={decopilot:{harness:"decopilot",sandbox:"agent-sandbox"},"claude-code-desktop":{harness:"claude-code",sandbox:"user-desktop"},"codex-desktop":{harness:"codex",sandbox:"user-desktop"},"opencode-desktop":{harness:"opencode",sandbox:"user-desktop"}};function yn(t,e){if(!t)return null;const n=e?Ge(e):null;if(t==="decopilot"&&(n===null||n==="user-desktop"))return"decopilot";for(const[s,o]of Object.entries(je))if(o.harness===t&&o.sandbox===n)return s;return null}function vn({pendingOption:t,lockedHarness:e}){return e==="claude-code"?"claude-code-desktop":e==="codex"?"codex-desktop":e==="opencode"?"opencode-desktop":t==="claude-code-desktop"||t==="codex-desktop"||t==="opencode-desktop"?t:null}function Sn(t){return t.thread?.harness_id!=null?{}:{harnessId:"decopilot",sandboxProviderKind:"agent-sandbox",branch:t.globals.branch??null}}const kn="home",wn=new Set(["output","upload","public","home"]),xn=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;function vs(t){return wn.has(t)||!xn.test(t)?"home":t}function In(t){const e=t?t.split("/").filter(Boolean):[],n=e[0]==="public",s=n?e[1]??null:null,o=n?s?`public-${s}`:null:e[0]??null,a=(n?e.slice(2):e.slice(1)).join("/");return{segments:e,volume:o,dirPath:a,isPublic:n,publicSet:s,readOnly:n,isHomeRoot:o===kn&&a===""}}function Ss(t){return t==="public"?"skills":t}function ks(t,e){return t.isPublic&&t.publicSet?`public/${t.publicSet}/${e}`:t.volume?`${t.volume}/${e}`:e}const rt="public-";function St(t){return t.startsWith(rt)?t.slice(rt.length):null}function ws(t,e){const n=St(t);return n?`public/${n}/${e}`:`${t}/${e}`}function Mn(t){const e=t.lastIndexOf("/");return e===-1?t:t.slice(e+1)}function Tn(t){const{volume:e,dirPath:n}=In(t);if(!e)return null;let s;if(e==="home")s="org/home";else if(e==="outputs")s="org/.outputs";else if(e==="uploads")s="org/.uploads";else{const o=St(e);s=o?`org/public/${o}`:`org/${e}`}return n?`${s}/${n}`:s}function Cn(t){const e=ie.c(21);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId",shouldThrow:!1},e[0]=n):n=e[0];const s=pt(n);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[1]=o):o=e[1];const a=Ve(o);let l;e[2]!==a.brand||e[3]!==a.main||e[4]!==a.preview||e[5]!==a.skill?(l=(typeof a.main=="string"?Dt(a.main)?.path:void 0)??a.preview??a.skill??a.brand??null,e[2]=a.brand,e[3]=a.main,e[4]=a.preview,e[5]=a.skill,e[6]=l):l=e[6];const c=l;let h;if(e[7]!==s?.params.appSlug||e[8]!==s?.params.collectionName||e[9]!==s?.params.itemId||e[10]!==c||e[11]!==t){if(h=[],t&&h.push(`### Selected Agent
|
|
2
2
|
- ID: ${t}`),c){let f;e[13]!==c?(f=Tn(c),e[13]=c,e[14]=f):f=e[14];const k=f;let M;e[15]!==c?(M=Mn(c),e[15]=c,e[16]=M):M=e[16],h.push(`### Currently Open File
|
|
3
3
|
The user has this file open in the Library and is most likely referring to it:
|
|
4
4
|
- Name: ${M}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,m as d,j as c,bF as l,bG as m}from"./index-
|
|
1
|
+
import{c as n,m as d,j as c,bF as l,bG as m}from"./index-B-9MVTpa.js";import{i as b}from"./Check-X8DOcL_O.js";function u(o){const e=n.c(9);let r,i;e[0]!==o?({className:r,...i}=o,e[0]=o,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let a;e[3]!==r?(a=d("peer border-foreground dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[2px] disabled:opacity-50",r),e[3]=r,e[4]=a):a=e[4];let t;e[5]===Symbol.for("react.memo_cache_sentinel")?(t=c.jsx(m,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-primary-foreground transition-none",children:c.jsx(b,{className:"size-3.5"})}),e[5]=t):t=e[5];let s;return e[6]!==i||e[7]!==a?(s=c.jsx(l,{"data-slot":"checkbox",className:a,...i,children:t}),e[6]=i,e[7]=a,e[8]=s):s=e[8],s}export{u as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,a as c,r as m,j as o}from"./index-
|
|
1
|
+
import{c as a,a as c,r as m,j as o}from"./index-B-9MVTpa.js";import{A as u}from"./auth-split-layout-D8g6--d7.js";function p(){const e=a.c(8),i=c.useSession().data?.user?.email;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0],m.useEffect(f,l);let t;e[1]!==i?(t=i?o.jsxs(o.Fragment,{children:[" as ",i]}):"",e[1]=i,e[2]=t):t=e[2];let s;e[3]!==t?(s=o.jsxs("h1",{className:"text-3xl font-semibold tracking-tight",children:["You're logged in",t,"."]}),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("p",{className:"text-muted-foreground",children:"You can return to your terminal."}),e[5]=n):n=e[5];let r;return e[6]!==s?(r=o.jsx(u,{children:o.jsxs("div",{className:"space-y-3",children:[s,n]})}),e[6]=s,e[7]=r):r=e[7],r}function f(){window.close()}export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as t,B as K,k as oe,Z as Ye,$ as re,b as Q,E as Ee,r as E,F as fe,bd as Ze,be as Re,a1 as Xe,m as W,bf as et,u as tt,L as te,t as st,f as he,b4 as Oe}from"./index-HWhUkMVs.js";import{E as Fe}from"./empty-state-HwZPqFUt.js";import{u as ge}from"./use-mcp-client-WNkI8KAJ.js";import{d as ae,F as lt,a as ce,b as de}from"./form-C5LT36jD.js";import{I as pe}from"./input-CDxc4QX0.js";import{T as xe}from"./textarea-CXh3iKjW.js";import{a as ot,b as nt,V as je,O as it,M as rt}from"./index-Cb7hCoS-.js";import{aG as at,R as ct,aH as dt,aj as mt,al as ut,aI as pt,_ as ye}from"./agent-icon-ivyach6Y.js";import{g as xt,M as ft,a as we}from"./index-B6bkuuby.js";import{A as ht,a as gt,b as jt}from"./alert-JiyNNqe_.js";import{S as Ce,a as Ie,b as $e,c as Te,d as me}from"./select-D3htjNBx.js";import{b as bt,c as Pe,T as ke,a as Ae}from"./tooltip-DO91iaPZ.js";import{i as Nt}from"./AlertCircle-0OUPWUNo.js";import{s as vt}from"./Stars02-D49Mvriv.js";import{a as St}from"./Copy01-Bm8H5mLb.js";import{i as yt}from"./Play-IbqcJdN3.js";import{i as wt}from"./ChevronRight-kdKaq9Ii.js";import{g as Ct}from"./connection-slug-eyAPH6o3.js";import{u as It,T as $t}from"./index-uoMzVpNH.js";import{a as ze,u as Me}from"./use-connection-B24S3YCN.js";import{a as Tt}from"./use-mcp-tools-BW_wQYIZ.js";import{M as Pt,c as kt}from"./monaco-editor-8vQ4bsg1.js";import{I as De}from"./integration-icon-CtS0uJhZ.js";import{j as At,D as Dt}from"./chat-context-DtiyxjXg.js";import{u as Et}from"./shell-layout-CzKlLa8f.js";import{n as Rt}from"./Tool02-gKszIrtU.js";import"./auth-BxRabvv-.js";import"./label-CZbP70z-.js";import"./index-6TRi0uef.js";import"./sidebar-DbMpr-rh.js";import"./LayoutLeft-B3Xq6Q9F.js";import"./use-mobile-nNGwbm7m.js";import"./X-B1FpD19v.js";import"./Key01-DE0cHxdc.js";import"./extract-connection-data-XyQY0B73.js";import"./metadata-dUsYcpuu.js";import"./use-registry-connections-ChaImRoz.js";import"./use-organization-settings-BJdrgwhq.js";import"./studio-tools-whdp8gFV.js";import"./Plus-BXW-bLkv.js";import"./index-BQO3LZFM.js";import"./popover-CnbRVVJ4.js";import"./use-virtual-mcp-uppMIhb1.js";import"./Check-YqNpUnjS.js";import"./SearchMd-B1jAF5PX.js";import"./Users03-DEaDNrbw.js";import"./use-create-virtual-mcp-B4-JNTOi.js";import"./use-navigate-to-agent-9y1G65Xj.js";import"./hooks-DoEly3LT.js";import"./decopilot-sse-pool-BwUtRq_o.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CouMjkYR.js";import"./Tool01-BK3Hfpvm.js";import"./ArrowUp-CNifCRwW.js";import"./ArrowLeft-CcZIvmNQ.js";import"./XCircle-CT6qobjT.js";import"./ArrowUpRight-CHr_jXVV.js";import"./TrendUp01-D4y32I70.js";import"./ZapSquare-C7FTkjlS.js";import"./CheckCircle-HA9HSubF.js";import"./ChevronDown-BX2HgupK.js";import"./ChevronUp-J2R9ILOH.js";import"./DotsVertical-Cz5ElmDn.js";import"./CpuChip01-DgkecjAs.js";import"./CreditCard01-f8B5Wkqh.js";import"./Globe01-BAit6vQe.js";import"./Settings02-D8A1C3JO.js";import"./Eye-CaOR6o-h.js";import"./FilterLines-CU3G94q8.js";import"./Share07-BVdvoyk4.js";import"./Star01-Dk3FFpxM.js";import"./Globe04-DOMcqhEH.js";import"./SwitchHorizontal01-B0vjSREj.js";import"./HardDrive-CGleOs63.js";import"./LinkExternal01-CtVhb7np.js";import"./LogOut01-pEbmO0Np.js";import"./Monitor01-DDxK-vql.js";import"./Sun-BZWpsJUV.js";import"./Palette-BdM6u7AM.js";import"./SearchLg-L_ta90AC.js";import"./Shield01-D2H3k2fO.js";import"./Stars01-ndnSTODt.js";import"./Trash01-BSXuR-v0.js";import"./Upload01-nh4tHrH4.js";import"./User01-XKHS0Yi2.js";import"./Users01-tFQvWfNL.js";import"./XClose-CnW8TKsr.js";import"./Zap-CAz1ejRf.js";import"./badge-YeCL-pM6.js";import"./mcp-oauth-DKoInR_S.js";import"./spinner-CMWgEkOv.js";import"./tab-id-fxY7FqYq.js";import"./dialog-DsCqITds.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-Dfw1C_Qb.js";import"./use-decopilot-events-LcKd19eo.js";import"./avatar-BxOwauBx.js";import"./required-auth-layout-Cdi-946f.js";import"./use-org-sso-DrOx8nh9.js";function Ot(s){const e=k.c(15),{onSave:n,onUndo:l,isDirty:o,isSaving:i,saveLabel:r,undoLabel:c}=s,d=r===void 0?"Save":r,a=c===void 0?"Undo":c;if(!o)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(at,{size:14}),e[0]=x):x=e[0];let h;e[1]!==i||e[2]!==l||e[3]!==a?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:l,disabled:i,"aria-label":a,children:[x,a]}),e[1]=i,e[2]=l,e[3]=a,e[4]=h):h=e[4];let m;e[5]!==i?(m=i?t.jsx(oe,{size:14,className:"animate-spin"}):t.jsx(ct,{size:14}),e[5]=i,e[6]=m):m=e[6];let f;e[7]!==i||e[8]!==n||e[9]!==d||e[10]!==m?(f=t.jsxs(K,{variant:"default",size:"sm",onClick:n,disabled:i,"aria-label":d,children:[m,d]}),e[7]=i,e[8]=n,e[9]=d,e[10]=m,e[11]=f):f=e[11];let p;return e[12]!==h||e[13]!==f?(p=t.jsxs(t.Fragment,{children:[h,f]}),e[12]=h,e[13]=f,e[14]=p):p=e[14],p}Ye({title:re().min(1),description:re().nullable(),body:re()});function ue(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ft(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(l=>l==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function zt(s){const e=k.c(43),{form:n}=s,l=Q();let o;e[0]!==l?(o=l("details.prompt.details"),e[0]=l,e[1]=o):o=e[1];let i;e[2]!==o?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:o}),e[2]=o,e[3]=i):i=e[3];let r;e[4]!==l?(r=w=>{const{field:N}=w;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:l("details.prompt.title")}),t.jsx(de,{children:t.jsx(pe,{...N,placeholder:l("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=l,e[5]=r):r=e[5];let c;e[6]!==n.control||e[7]!==r?(c=t.jsx(ae,{control:n.control,name:"title",render:r}),e[6]=n.control,e[7]=r,e[8]=c):c=e[8];let d;e[9]!==l?(d=w=>{const{field:N}=w;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:l("details.prompt.description")}),t.jsx(de,{children:t.jsx(pe,{...N,value:N.value??"",placeholder:l("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=l,e[10]=d):d=e[10];let a;e[11]!==n.control||e[12]!==d?(a=t.jsx(ae,{control:n.control,name:"description",render:d}),e[11]=n.control,e[12]=d,e[13]=a):a=e[13];let x;e[14]!==c||e[15]!==a?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c,a]}),e[14]=c,e[15]=a,e[16]=x):x=e[16];let h;e[17]!==i||e[18]!==x?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=h):h=e[19];let m;e[20]!==l?(m=l("details.prompt.message"),e[20]=l,e[21]=m):m=e[21];let f;e[22]!==m?(f=t.jsx("div",{className:"text-sm font-medium text-foreground",children:m}),e[22]=m,e[23]=f):f=e[23];let p;e[24]!==l?(p=l("details.prompt.messageDescription"),e[24]=l,e[25]=p):p=e[25];let g;e[26]!==p?(g=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=g):g=e[27];let b;e[28]!==l?(b=w=>{const{field:N}=w;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(xe,{...N,value:N.value??"",placeholder:l("details.prompt.bodyPlaceholder"),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"})})})},e[28]=l,e[29]=b):b=e[29];let S;e[30]!==n.control||e[31]!==b?(S=t.jsx(ae,{control:n.control,name:"body",render:b}),e[30]=n.control,e[31]=b,e[32]=S):S=e[32];let T;e[33]!==f||e[34]!==g||e[35]!==S?(T=t.jsxs("div",{className:"flex flex-col gap-2",children:[f,g,S]}),e[33]=f,e[34]=g,e[35]=S,e[36]=T):T=e[36];let y;e[37]!==T||e[38]!==h?(y=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:[h,T]}),e[37]=T,e[38]=h,e[39]=y):y=e[39];let P;return e[40]!==n||e[41]!==y?(P=t.jsx(lt,{...n,children:y}),e[40]=n,e[41]=y,e[42]=P):P=e[42],P}function Mt(s){const e=k.c(42),{providerId:n,promptId:l}=s,o=Q(),{org:i}=fe(),r=n||null;let c;e[0]!==i.id||e[1]!==i.slug||e[2]!==r?(c={connectionId:r,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=r,e[3]=c):c=e[3];const d=ge(c),a=Ze(n,"PROMPT",l,d),x=Re(n,"PROMPT",d),h=x.update.isPending;let m;e[4]!==a?(m=a?{title:a.title,description:a.description??null,body:ue(a)}:void 0,e[4]=a,e[5]=m):m=e[5];let f;e[6]!==m?(f={values:m},e[6]=m,e[7]=f):f=e[7];const p=Xe(f);let g;e[8]!==p||e[9]!==a?(g=()=>{a&&p.reset({title:a.title,description:a.description??null,body:ue(a)})},e[8]=p,e[9]=a,e[10]=g):g=e[10];const b=g;let S;e[11]!==x.update||e[12]!==p||e[13]!==l?(S=p.handleSubmit(async C=>{const I=await x.update.mutateAsync({id:l,data:{title:C.title,description:C.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:C.body}}]}});p.reset({title:I.title,description:I.description??null,body:ue(I)})}),e[11]=x.update,e[12]=p,e[13]=l,e[14]=S):S=e[14];const T=S;if(!a){let C;e[15]!==o?(C=o("details.prompt.notFoundTitle"),e[15]=o,e[16]=C):C=e[16];let I;e[17]!==o?(I=o("details.prompt.notFoundDescription"),e[17]=o,e[18]=I):I=e[18];let O;return e[19]!==C||e[20]!==I?(O=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Fe,{title:C,description:I})}),e[19]=C,e[20]=I,e[21]=O):O=e[21],O}let y;e[22]!==a.title?(y=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:a.title}),e[22]=a.title,e[23]=y):y=e[23];let P;e[24]!==a.description?(P=a.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:a.description})]}):null,e[24]=a.description,e[25]=P):P=e[25];let w;e[26]!==y||e[27]!==P?(w=t.jsx(nt,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[y,P]})}),e[26]=y,e[27]=P,e[28]=w):w=e[28];let N;e[29]!==T?(N=()=>{T()},e[29]=T,e[30]=N):N=e[30];let A;e[31]!==p.formState.isDirty||e[32]!==h||e[33]!==b||e[34]!==N?(A=t.jsx(ot,{children:t.jsx(Ot,{onSave:N,onUndo:b,isDirty:p.formState.isDirty,isSaving:h})}),e[31]=p.formState.isDirty,e[32]=h,e[33]=b,e[34]=N,e[35]=A):A=e[35];let D;e[36]!==p?(D=t.jsx("div",{className:"h-full",children:t.jsx(zt,{form:p})}),e[36]=p,e[37]=D):D=e[37];let R;return e[38]!==A||e[39]!==D||e[40]!==w?(R=t.jsxs(je,{children:[w,A,D]}),e[38]=A,e[39]=D,e[40]=w,e[41]=R):R=e[41],R}function Lt(s){const e=k.c(10),{itemId:n}=s,l=Q();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Ft(),e[0]=o):o=e[0];const i=o;if(!i){let c;e[1]!==l?(c=l("details.prompt.notFoundTitle"),e[1]=l,e[2]=c):c=e[2];let d;e[3]!==l?(d=l("details.prompt.missingConnectionDescription"),e[3]=l,e[4]=d):d=e[4];let a;return e[5]!==c||e[6]!==d?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Fe,{title:c,description:d})}),e[5]=c,e[6]=d,e[7]=a):a=e[7],a}let r;return e[8]!==n?(r=t.jsx(Ee,{children:t.jsx(E.Suspense,{fallback:null,children:t.jsx(Mt,{providerId:i,promptId:n})})}),e[8]=n,e[9]=r):r=e[9],r}function Le(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=W("min-w-0 overflow-hidden",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function Be(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=W("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("ol",{"data-slot":"breadcrumb-list",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function Y(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=W("inline-flex items-center gap-1.5 min-w-0",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("li",{"data-slot":"breadcrumb-item",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function se(s){const e=k.c(10);let n,l,o;e[0]!==s?({asChild:n,className:l,...o}=s,e[0]=s,e[1]=n,e[2]=l,e[3]=o):(n=e[1],l=e[2],o=e[3]);const i=n?et:"a";let r;e[4]!==l?(r=W("hover:text-foreground transition-colors truncate",l),e[4]=l,e[5]=r):r=e[5];let c;return e[6]!==i||e[7]!==o||e[8]!==r?(c=t.jsx(i,{"data-slot":"breadcrumb-link",className:r,...o}),e[6]=i,e[7]=o,e[8]=r,e[9]=c):c=e[9],c}function Ue(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=W("text-foreground font-medium truncate",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function le(s){const e=k.c(12);let n,l,o;e[0]!==s?({children:n,className:l,...o}=s,e[0]=s,e[1]=n,e[2]=l,e[3]=o):(n=e[1],l=e[2],o=e[3]);let i;e[4]!==l?(i=W("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",l),e[4]=l,e[5]=i):i=e[5];let r;e[6]!==n?(r=n??t.jsx(wt,{}),e[6]=n,e[7]=r):r=e[7];let c;return e[8]!==o||e[9]!==i||e[10]!==r?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...o,children:r}),e[8]=o,e[9]=i,e[10]=r,e[11]=c):c=e[11],c}const Bt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=k.c(12),{toolName:n,connectionId:l,siblings:o,onSelectInstance:i,onBack:r}=s,c=Q();let d;e[0]!==l?(d={connectionId:l},e[0]=l,e[1]=d):d=e[1];const a=It(d);if(!a.isAuthenticated){let m;return e[2]!==a.supportsOAuth||e[3]!==r||e[4]!==c?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:a.supportsOAuth?t.jsx(it,{onAuthenticate:()=>r(),buttonText:c("details.tool.goBackToAuthenticate")}):t.jsx(rt,{hasReadme:!1})}),e[2]=a.supportsOAuth,e[3]=r,e[4]=c,e[5]=m):m=e[5],m}const x=`${l}:${n}`;let h;return e[6]!==l||e[7]!==i||e[8]!==o||e[9]!==x||e[10]!==n?(h=t.jsx(Vt,{toolName:n,connectionId:l,siblings:o,onSelectInstance:i},x),e[6]=l,e[7]=i,e[8]=o,e[9]=x,e[10]=n,e[11]=h):h=e[11],h}function Vt({toolName:s,connectionId:e,siblings:n,onSelectInstance:l}){const o=Q(),{replayId:i}=tt({strict:!1}),r=(()=>{if(!i)return null;const u=`replay-${i}`,j=sessionStorage.getItem(u);if(!j)return null;sessionStorage.removeItem(u);try{return JSON.parse(j)}catch{return null}})(),c=(()=>{if(!r)return null;const u={};for(const[j,$]of Object.entries(r))$!==null&&typeof $=="object"?u[j]=JSON.stringify($,null,2):u[j]=$;return u})(),[d,a]=E.useState(c??{}),[x,h]=E.useState(r?JSON.stringify(r,null,2):"{}"),[m,f]=E.useState(null),[p,g]=E.useState(null),[b,S]=E.useState(null),[T,y]=E.useState(null),[P,w]=E.useState(!1),[N,A]=E.useState(null),{org:D}=fe(),R=ze(e),C=At(),I=Dt(),{openSidePanel:O}=Et(),U=`${e}:${s}`,z=ge({connectionId:e,orgId:D.id,orgSlug:D.slug}),V=Tt({client:z}),v=V.data?.tools?.find(u=>u.name===s),F=xt(v?._meta),J=u=>{if(!C)return;const j=kt(u.content);j.content.length>0&&(O("chat"),C.sendMessage({tiptapDoc:j}))},[M,L]=E.useState("json"),[q,G]=E.useState(!1);F&&!q&&(L("ui"),G(!0));const _=v?.inputSchema?.properties,be=_?Object.keys(_):[],Z=be.length>0,X={};if(Z&&v?.inputSchema?.properties)for(const u of be)X[u]=v.inputSchema.required?.includes(u)?"":void 0;const ne=u=>Object.prototype.hasOwnProperty.call(d,u),Ve=async()=>{w(!0),y(null),f(null),g(null),S(null),A(null);const u=performance.now();try{if(!z)throw new Error("MCP client is not available");const j=Z?{...X,...d}:(()=>{const B=x.trim();if(!B)return{};const H=JSON.parse(B);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();Z&&v?.inputSchema?.properties&&Object.entries(v.inputSchema.properties).forEach(([B,H])=>{if((H.type==="object"||H.type==="array")&&typeof j[B]=="string")try{j[B]=JSON.parse(j[B])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof j[B]=="string"&&j[B]!==""){const Se=Number(j[B]);Number.isNaN(Se)||(j[B]=Se)}});const $=await z.callTool({name:s,arguments:j}),ee=$.structuredContent??$,We=performance.now(),Qe=Math.round(We-u);f(ee),g($),S(j);const Ge=JSON.stringify(ee),ve=new TextEncoder().encode(Ge).length;A({duration:`${Qe}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(j){const $=j instanceof Error?j.message:String(j);y($||"Unknown error occurred");const ee=performance.now();A({duration:`${Math.round(ee-u)}ms`})}finally{w(!1)}},ie=(u,j)=>{a($=>({...$,[u]:j}))},_e=()=>{f(null),g(null),S(null),y(null),A(null)},Je=v?.name??Bt(s),qe=t.jsx(Le,{children:t.jsxs(Be,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:D.slug},children:o("details.tool.connections")})})}),t.jsx(le,{}),R&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:D.slug,appSlug:Ct(R)},search:{tab:"tools"},children:R.title})})}),t.jsx(le,{})]}),t.jsx(Y,{children:t.jsx(Ue,{children:Je})})]})}),Ne=n.length>1&&t.jsxs(Ce,{value:e,onValueChange:l,children:[t.jsx(Ie,{className:"h-8 w-auto min-w-[200px]",children:t.jsx($e,{})}),t.jsx(Te,{children:n.map(u=>t.jsx(me,{value:u.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(De,{icon:u.icon,name:u.title,size:"xs",className:"shrink-0"}),u.title]})},u.id))})]}),He=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:o("details.tool.parameters")}),v?.inputSchema?.required&&v.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",o("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:Z&&v?.inputSchema?.properties?Object.entries(v.inputSchema.properties).map(([u,j])=>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:[u,v.inputSchema?.required?.includes(u)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:j.type})]}),j.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:j.description}),j.type==="object"||j.type==="array"?t.jsx(xe,{className:"font-mono text-xs",value:ne(u)?d[u]??"":X[u]??"",onChange:$=>ie(u,$.target.value),placeholder:o("details.tool.enterAsJson",{key:u}),rows:3}):j.type==="boolean"?t.jsxs(Ce,{value:ne(u)?String(d[u]??""):"",onValueChange:$=>ie(u,$==="true"),children:[t.jsx(Ie,{children:t.jsx($e,{placeholder:o("details.tool.selectTrueOrFalse")})}),t.jsxs(Te,{children:[t.jsx(me,{value:"true",children:"true"}),t.jsx(me,{value:"false",children:"false"})]})]}):t.jsx(pe,{value:ne(u)?d[u]??"":X[u]??"",onChange:$=>ie(u,$.target.value),placeholder:o("details.tool.enter",{key:u})})]},u)):v?.inputSchema&&!Z?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:o("details.tool.rawJsonInput")}),t.jsx(xe,{className:"font-mono text-xs min-h-[120px]",value:x,onChange:u=>h(u.target.value),placeholder:o("details.tool.rawJsonExample")})]}):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:o("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:P?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:_e,children:[t.jsx(dt,{className:"h-3.5 w-3.5"}),o("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Ve,children:[t.jsx(yt,{className:"h-3.5 w-3.5 fill-current"}),o("details.tool.executeTool")]})})]}),Ke=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:o("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[N&&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(vt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:N.duration})]}),N.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(mt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:N.tokens})]}),N.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:N.bytes})]}),N.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:N.cost})})]}),F&&t.jsx(bt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:M==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>L("ui"),children:t.jsx(pt,{size:14})})}),t.jsx(Ae,{children:o("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:M==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>L("json"),children:t.jsx(ye,{size:14})})}),t.jsx(Ae,{children:o("details.tool.jsonView")})]})]})})]})]}),T&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(ht,{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(Nt,{className:"h-4 w-4"}),t.jsx(gt,{className:"mb-0",children:o("details.tool.executionFailed")})]}),t.jsx(jt,{className:"text-xs text-destructive",children:T})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:F&&M==="ui"&&z?t.jsx(E.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:o("details.tool.loadingApp")})]})}),children:t.jsx(ft,{resourceURI:F,toolInfo:v?{tool:v}:void 0,toolInput:b??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:z,onMessage:J,onUpdateModelContext:u=>I?.setAppContext(U,u),onTeardown:()=>I?.clearAppContext(U),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(K,{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)),st.success(o("details.tool.copiedToClipboard"))},children:t.jsx(St,{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(ye,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:o("details.tool.runToolToSeeResults")})]})})]});return t.jsx(je,{breadcrumb:qe,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(De,{icon:R?.icon||null,name:R?.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:[V.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):V.isLoading?t.jsx(oe,{size:10,className:"animate-spin text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:V.isSuccess?"ready":V.isLoading?"connecting":"error"})]}),t.jsx($t,{annotations:v?.annotations,_meta:v?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:v?.description||"No description available"})]}),n.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:o("details.tool.instance")}),Ne]}),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:He}),Ke]})})]})})}function _t(s){const e=k.c(20),{itemId:n,siblings:l,onBack:o}=s,i=Q(),[r,c]=E.useState(l[0]?.id??"");let d;e[0]!==r||e[1]!==l?(d=l.find(f=>f.id===r)?.id??l[0]?.id??"",e[0]=r,e[1]=l,e[2]=d):d=e[2];const a=d;if(!ze(a||void 0)||!a){let f;e[3]!==i?(f=i("details.tool.connectionNotFound"),e[3]=i,e[4]=f):f=e[4];let p;e[5]!==f?(p=t.jsx("h3",{className:"text-lg font-semibold",children:f}),e[5]=f,e[6]=p):p=e[6];let g;e[7]!==i?(g=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=g):g=e[8];let b;e[9]!==g?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[9]=g,e[10]=b):b=e[10];let S;return e[11]!==p||e[12]!==b?(S=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:[p,b]})}),e[11]=p,e[12]=b,e[13]=S):S=e[13],S}let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(oe,{size:32,className:"animate-spin text-muted-foreground"})}),e[14]=h):h=e[14];let m;return e[15]!==a||e[16]!==o||e[17]!==l||e[18]!==n?(m=t.jsx(E.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:n,connectionId:a,siblings:l,onSelectInstance:c,onBack:o})}),e[15]=a,e[16]=o,e[17]=l,e[18]=n,e[19]=m):m=e[19],m}function Jt(s){const e=k.c(21),{icon:n,illustration:l,title:o,description:i,buttonProps:r,buttonComponent:c,className:d,children:a}=s;let x;e[0]!==d?(x=W("flex flex-col items-center justify-center py-16 text-center",d),e[0]=d,e[1]=x):x=e[1];let h;e[2]!==n||e[3]!==l?(h=l?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:l}):n?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:n}):null,e[2]=n,e[3]=l,e[4]=h):h=e[4];let m;e[5]!==o?(m=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:o}),e[5]=o,e[6]=m):m=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 p;e[9]!==m||e[10]!==f?(p=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[m,f]}),e[9]=m,e[10]=f,e[11]=p):p=e[11];let g;e[12]!==c||e[13]!==r?(g=(c??r)&&t.jsx("div",{className:"mt-4",children:c??(r&&t.jsx(K,{size:"sm",className:W(r?.className),...r}))}),e[12]=c,e[13]=r,e[14]=g):g=e[14];let b;return e[15]!==a||e[16]!==x||e[17]!==h||e[18]!==p||e[19]!==g?(b=t.jsxs("div",{className:x,children:[h,p,g,a]}),e[15]=a,e[16]=x,e[17]=h,e[18]=p,e[19]=g,e[20]=b):b=e[20],b}const qt={prompt:Lt};function Ht(){const s=k.c(9),e=Oe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const l=he(n),o=decodeURIComponent(l.itemId);let i;s[1]!==l.appSlug?(i={slug:l.appSlug},s[1]=l.appSlug,s[2]=i):i=s[2];const r=Me(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,a=Kt;let x;return s[5]!==d||s[6]!==o||s[7]!==r?(x=t.jsx(_t,{itemId:o,siblings:r,onBack:d,onUpdate:a}),s[5]=d,s[6]=o,s[7]=r,s[8]=x):x=s[8],x}async function Kt(s){return Promise.resolve()}function Wt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Qt(){const s=k.c(52),e=Oe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const l=he(n),o=Q(),i=decodeURIComponent(l.collectionName),r=decodeURIComponent(l.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:a}=fe();let x;s[3]!==l.appSlug?(x={slug:l.appSlug},s[3]=l.appSlug,s[4]=x):x=s[4];const m=Me(x)[0]??null,f=m?.id??"",p=f||"no-connection",g=f??null;let b;s[5]!==a.id||s[6]!==a.slug||s[7]!==g?(b={connectionId:g,orgId:a.id,orgSlug:a.slug},s[5]=a.id,s[6]=a.slug,s[7]=g,s[8]=b):b=s[8];const S=ge(b),T=Re(p,i,S);let y;s[9]!==T||s[10]!==r?(y=async _=>{r&&await T.update.mutateAsync({id:r,data:_})},s[9]=T,s[10]=r,s[11]=y):y=s[11];const P=y;let w;s[12]!==i?(w=i?.toLowerCase(),s[12]=i,s[13]=w):w=s[13];const N=w,A=N&&qt[N];let D;s[14]!==i?(D=Wt(i),s[14]=i,s[15]=D):D=s[15];const R=D;let C;s[16]!==a.slug?(C=t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:a.slug},children:"Connections"})})}),s[16]=a.slug,s[17]=C):C=s[17];let I;s[18]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(le,{}),s[18]=I):I=s[18];let O;s[19]!==i||s[20]!==m||s[21]!==a.slug||s[22]!==l.appSlug?(O=m&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:a.slug,appSlug:l.appSlug},search:{tab:i},children:m.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=m,s[21]=a.slug,s[22]=l.appSlug,s[23]=O):O=s[23];let U;s[24]!==R?(U=t.jsx(Y,{children:t.jsx(Ue,{children:R})}),s[24]=R,s[25]=U):U=s[25];let z;s[26]!==O||s[27]!==U||s[28]!==C?(z=t.jsx(Le,{children:t.jsxs(Be,{children:[C,I,O,U]})}),s[26]=O,s[27]=U,s[28]=C,s[29]=z):z=s[29];const V=z;if(A){let _;return s[30]!==A||s[31]!==d||s[32]!==P||s[33]!==r?(_=t.jsx(A,{itemId:r,onBack:d,onUpdate:P}),s[30]=A,s[31]=d,s[32]=P,s[33]=r,s[34]=_):_=s[34],_}let v;s[35]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(Rt,{size:36,className:"text-muted-foreground"}),s[35]=v):v=s[35];let F;s[36]!==o?(F=o("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=o,s[37]=F):F=s[37];let J;s[38]!==o?(J=o("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=o,s[39]=J):J=s[39];let M;s[40]!==o?(M=o("orgs.collectionDetail.goBackButton"),s[40]=o,s[41]=M):M=s[41];let L;s[42]!==d||s[43]!==M?(L={onClick:d,children:M},s[42]=d,s[43]=M,s[44]=L):L=s[44];let q;s[45]!==F||s[46]!==J||s[47]!==L?(q=t.jsx(Jt,{icon:v,title:F,description:J,buttonProps:L}),s[45]=F,s[46]=J,s[47]=L,s[48]=q):q=s[48];let G;return s[49]!==V||s[50]!==q?(G=t.jsx(je,{breadcrumb:V,children:q}),s[49]=V,s[50]=q,s[51]=G):G=s[51],G}function Gt(){const s=k.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 n=he(e);if(decodeURIComponent(n.collectionName)==="tools"){let r;return s[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Ht,{}),s[1]=r):r=s[1],r}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Qt,{}),s[2]=i):i=s[2],i}function _l(){const s=k.c(7),e=Q();let n;s[0]!==e?(n=e("orgs.collectionDetail.loadingAriaLabel"),s[0]=e,s[1]=n):n=s[1];let l;s[2]!==n?(l=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(oe,{size:32,className:"animate-spin text-muted-foreground","aria-label":n})}),s[2]=n,s[3]=l):l=s[3];let o;s[4]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Gt,{}),s[4]=o):o=s[4];let i;return s[5]!==l?(i=t.jsx(Ee,{children:t.jsx(E.Suspense,{fallback:l,children:o})}),s[5]=l,s[6]=i):i=s[6],i}export{_l as default};
|
|
1
|
+
import{c as k,j as t,B as K,k as oe,Z as Ze,$ as re,b as Q,E as Ee,r as E,F as fe,be as Ge,bf as Re,a1 as Xe,m as W,bg as et,u as tt,L as te,t as st,f as he,b5 as Oe}from"./index-B-9MVTpa.js";import{E as Fe}from"./empty-state-CG7QAJeX.js";import{u as ge}from"./use-mcp-client-BVNppOHU.js";import{d as ae,F as lt,a as ce,b as de}from"./form-DCiXkgfG.js";import{I as pe}from"./input-CFIREZLG.js";import{T as xe}from"./textarea-DN4gewG7.js";import{a as ot,b as nt,V as je,O as it,M as rt}from"./index-kh_JguFC.js";import{aH as at,R as ct,aI as dt,aj as mt,al as ut,aJ as pt,_ as ye}from"./agent-icon-DsR8jJXh.js";import{g as xt,M as ft,a as we}from"./index-BTJpW-dv.js";import{A as ht,a as gt,b as jt}from"./alert-CW9-yMT-.js";import{S as Ce,a as Ie,b as $e,c as Te,d as me}from"./select-479TmRNo.js";import{b as bt,c as Pe,T as ke,a as Ae}from"./tooltip-iD2amP63.js";import{i as Nt}from"./AlertCircle-DphgiHT4.js";import{s as vt}from"./Stars02-Bd9mbF0O.js";import{a as St}from"./Copy01-BfTmIvh6.js";import{i as yt}from"./Play-C3M4Fq_O.js";import{i as wt}from"./ChevronRight-BXQuiEZz.js";import{g as Ct}from"./connection-slug-eyAPH6o3.js";import{u as It,T as $t}from"./index-DeV8glvQ.js";import{a as ze,u as Me}from"./use-connection-DJmNO8PS.js";import{a as Tt}from"./use-mcp-tools-DmQGxNG4.js";import{M as Pt,c as kt}from"./monaco-editor-WjL6XJMD.js";import{I as De}from"./integration-icon-Cr6ioOYy.js";import{j as At,D as Dt}from"./chat-context-COWUXvFa.js";import{u as Et}from"./shell-layout-BGKbWdUU.js";import{n as Rt}from"./Tool02-C99rEtv1.js";import"./auth-BEISECSN.js";import"./label-DbhNC-9w.js";import"./index-BLGEGRDp.js";import"./sidebar-DWFsKUYY.js";import"./LayoutLeft-C6MowxGH.js";import"./use-mobile-BDBEccf0.js";import"./X-CxStVdnL.js";import"./Key01-B63LGSV9.js";import"./extract-connection-data-CDvlX618.js";import"./metadata-dUsYcpuu.js";import"./use-registry-connections-CM1IgVmE.js";import"./use-organization-settings-B282pR89.js";import"./studio-tools-B48zN66-.js";import"./Plus-DK99_Snh.js";import"./index-krrgKyLi.js";import"./popover-1SpdqXlq.js";import"./use-virtual-mcp-fXc4CszM.js";import"./Check-X8DOcL_O.js";import"./SearchMd-16uJ5wWN.js";import"./Users03-p5OKQBCe.js";import"./use-create-virtual-mcp-Df8k-i5H.js";import"./use-navigate-to-agent-CohO9vnC.js";import"./hooks-BFx7cozZ.js";import"./decopilot-sse-pool-DAEpXljW.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CouMjkYR.js";import"./Tool01-BvwPMEC-.js";import"./ArrowUp-DFTBvXzm.js";import"./ArrowLeft-B0w40s_Y.js";import"./XCircle-DcGXltkc.js";import"./ArrowUpRight-4-vyYDuS.js";import"./TrendUp01-CxmO20HP.js";import"./ZapSquare-DMVkQSav.js";import"./CheckCircle-Bj-sbB75.js";import"./ChevronDown-1hRC2WTu.js";import"./ChevronUp-C595nZnN.js";import"./DotsVertical-j-YUGLOj.js";import"./CpuChip01-C-jW3qvr.js";import"./CreditCard01-Cwy1vypA.js";import"./Globe01-DC55fg9E.js";import"./Settings02-9twLcdZv.js";import"./Eye-CoeTMeYi.js";import"./FilterLines-DF7qiR9w.js";import"./Share07-giwW40i4.js";import"./Star01-Dk1qRJS6.js";import"./Globe04-50nhVLzn.js";import"./SwitchHorizontal01-C2i-2oWy.js";import"./HardDrive-DxVpYaYC.js";import"./LinkExternal01-CJEUNT1V.js";import"./LogOut01-B3RQAtr0.js";import"./Monitor01-BJw16DzK.js";import"./Sun-UYmpl8sO.js";import"./Palette-CVsVFrqm.js";import"./SearchLg-NR76eHsn.js";import"./Shield01-B0-2sivE.js";import"./Stars01-BViddKuu.js";import"./Trash01-D5A4qYbL.js";import"./Upload01-Bq-W2XYi.js";import"./User01-BUulxXF8.js";import"./Users01-BB8GbuBi.js";import"./XClose-BgfpbBbH.js";import"./Zap-EgeLq4Xz.js";import"./badge-C9ZI18xs.js";import"./mcp-oauth-CwCJBdf0.js";import"./spinner-DR-lvtYj.js";import"./tab-id-BI-ZdXtx.js";import"./dialog-D6bhM5Bl.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-CZjqEJy0.js";import"./use-decopilot-events-Db-rzvkD.js";import"./avatar-DqLlWPph.js";import"./required-auth-layout-B-U42Xp3.js";import"./use-org-sso-JGd0CX02.js";function Ot(s){const e=k.c(15),{onSave:n,onUndo:l,isDirty:o,isSaving:i,saveLabel:r,undoLabel:c}=s,d=r===void 0?"Save":r,a=c===void 0?"Undo":c;if(!o)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(at,{size:14}),e[0]=x):x=e[0];let h;e[1]!==i||e[2]!==l||e[3]!==a?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:l,disabled:i,"aria-label":a,children:[x,a]}),e[1]=i,e[2]=l,e[3]=a,e[4]=h):h=e[4];let m;e[5]!==i?(m=i?t.jsx(oe,{size:14,className:"animate-spin"}):t.jsx(ct,{size:14}),e[5]=i,e[6]=m):m=e[6];let f;e[7]!==i||e[8]!==n||e[9]!==d||e[10]!==m?(f=t.jsxs(K,{variant:"default",size:"sm",onClick:n,disabled:i,"aria-label":d,children:[m,d]}),e[7]=i,e[8]=n,e[9]=d,e[10]=m,e[11]=f):f=e[11];let p;return e[12]!==h||e[13]!==f?(p=t.jsxs(t.Fragment,{children:[h,f]}),e[12]=h,e[13]=f,e[14]=p):p=e[14],p}Ze({title:re().min(1),description:re().nullable(),body:re()});function ue(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ft(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(l=>l==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function zt(s){const e=k.c(43),{form:n}=s,l=Q();let o;e[0]!==l?(o=l("details.prompt.details"),e[0]=l,e[1]=o):o=e[1];let i;e[2]!==o?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:o}),e[2]=o,e[3]=i):i=e[3];let r;e[4]!==l?(r=w=>{const{field:N}=w;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:l("details.prompt.title")}),t.jsx(de,{children:t.jsx(pe,{...N,placeholder:l("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=l,e[5]=r):r=e[5];let c;e[6]!==n.control||e[7]!==r?(c=t.jsx(ae,{control:n.control,name:"title",render:r}),e[6]=n.control,e[7]=r,e[8]=c):c=e[8];let d;e[9]!==l?(d=w=>{const{field:N}=w;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:l("details.prompt.description")}),t.jsx(de,{children:t.jsx(pe,{...N,value:N.value??"",placeholder:l("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=l,e[10]=d):d=e[10];let a;e[11]!==n.control||e[12]!==d?(a=t.jsx(ae,{control:n.control,name:"description",render:d}),e[11]=n.control,e[12]=d,e[13]=a):a=e[13];let x;e[14]!==c||e[15]!==a?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c,a]}),e[14]=c,e[15]=a,e[16]=x):x=e[16];let h;e[17]!==i||e[18]!==x?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=h):h=e[19];let m;e[20]!==l?(m=l("details.prompt.message"),e[20]=l,e[21]=m):m=e[21];let f;e[22]!==m?(f=t.jsx("div",{className:"text-sm font-medium text-foreground",children:m}),e[22]=m,e[23]=f):f=e[23];let p;e[24]!==l?(p=l("details.prompt.messageDescription"),e[24]=l,e[25]=p):p=e[25];let g;e[26]!==p?(g=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=g):g=e[27];let b;e[28]!==l?(b=w=>{const{field:N}=w;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(xe,{...N,value:N.value??"",placeholder:l("details.prompt.bodyPlaceholder"),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"})})})},e[28]=l,e[29]=b):b=e[29];let S;e[30]!==n.control||e[31]!==b?(S=t.jsx(ae,{control:n.control,name:"body",render:b}),e[30]=n.control,e[31]=b,e[32]=S):S=e[32];let T;e[33]!==f||e[34]!==g||e[35]!==S?(T=t.jsxs("div",{className:"flex flex-col gap-2",children:[f,g,S]}),e[33]=f,e[34]=g,e[35]=S,e[36]=T):T=e[36];let y;e[37]!==T||e[38]!==h?(y=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:[h,T]}),e[37]=T,e[38]=h,e[39]=y):y=e[39];let P;return e[40]!==n||e[41]!==y?(P=t.jsx(lt,{...n,children:y}),e[40]=n,e[41]=y,e[42]=P):P=e[42],P}function Mt(s){const e=k.c(42),{providerId:n,promptId:l}=s,o=Q(),{org:i}=fe(),r=n||null;let c;e[0]!==i.id||e[1]!==i.slug||e[2]!==r?(c={connectionId:r,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=r,e[3]=c):c=e[3];const d=ge(c),a=Ge(n,"PROMPT",l,d),x=Re(n,"PROMPT",d),h=x.update.isPending;let m;e[4]!==a?(m=a?{title:a.title,description:a.description??null,body:ue(a)}:void 0,e[4]=a,e[5]=m):m=e[5];let f;e[6]!==m?(f={values:m},e[6]=m,e[7]=f):f=e[7];const p=Xe(f);let g;e[8]!==p||e[9]!==a?(g=()=>{a&&p.reset({title:a.title,description:a.description??null,body:ue(a)})},e[8]=p,e[9]=a,e[10]=g):g=e[10];const b=g;let S;e[11]!==x.update||e[12]!==p||e[13]!==l?(S=p.handleSubmit(async C=>{const I=await x.update.mutateAsync({id:l,data:{title:C.title,description:C.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:C.body}}]}});p.reset({title:I.title,description:I.description??null,body:ue(I)})}),e[11]=x.update,e[12]=p,e[13]=l,e[14]=S):S=e[14];const T=S;if(!a){let C;e[15]!==o?(C=o("details.prompt.notFoundTitle"),e[15]=o,e[16]=C):C=e[16];let I;e[17]!==o?(I=o("details.prompt.notFoundDescription"),e[17]=o,e[18]=I):I=e[18];let O;return e[19]!==C||e[20]!==I?(O=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Fe,{title:C,description:I})}),e[19]=C,e[20]=I,e[21]=O):O=e[21],O}let y;e[22]!==a.title?(y=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:a.title}),e[22]=a.title,e[23]=y):y=e[23];let P;e[24]!==a.description?(P=a.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:a.description})]}):null,e[24]=a.description,e[25]=P):P=e[25];let w;e[26]!==y||e[27]!==P?(w=t.jsx(nt,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[y,P]})}),e[26]=y,e[27]=P,e[28]=w):w=e[28];let N;e[29]!==T?(N=()=>{T()},e[29]=T,e[30]=N):N=e[30];let A;e[31]!==p.formState.isDirty||e[32]!==h||e[33]!==b||e[34]!==N?(A=t.jsx(ot,{children:t.jsx(Ot,{onSave:N,onUndo:b,isDirty:p.formState.isDirty,isSaving:h})}),e[31]=p.formState.isDirty,e[32]=h,e[33]=b,e[34]=N,e[35]=A):A=e[35];let D;e[36]!==p?(D=t.jsx("div",{className:"h-full",children:t.jsx(zt,{form:p})}),e[36]=p,e[37]=D):D=e[37];let R;return e[38]!==A||e[39]!==D||e[40]!==w?(R=t.jsxs(je,{children:[w,A,D]}),e[38]=A,e[39]=D,e[40]=w,e[41]=R):R=e[41],R}function Lt(s){const e=k.c(10),{itemId:n}=s,l=Q();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Ft(),e[0]=o):o=e[0];const i=o;if(!i){let c;e[1]!==l?(c=l("details.prompt.notFoundTitle"),e[1]=l,e[2]=c):c=e[2];let d;e[3]!==l?(d=l("details.prompt.missingConnectionDescription"),e[3]=l,e[4]=d):d=e[4];let a;return e[5]!==c||e[6]!==d?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Fe,{title:c,description:d})}),e[5]=c,e[6]=d,e[7]=a):a=e[7],a}let r;return e[8]!==n?(r=t.jsx(Ee,{children:t.jsx(E.Suspense,{fallback:null,children:t.jsx(Mt,{providerId:i,promptId:n})})}),e[8]=n,e[9]=r):r=e[9],r}function Le(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=W("min-w-0 overflow-hidden",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function Be(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=W("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("ol",{"data-slot":"breadcrumb-list",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function Z(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=W("inline-flex items-center gap-1.5 min-w-0",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("li",{"data-slot":"breadcrumb-item",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function se(s){const e=k.c(10);let n,l,o;e[0]!==s?({asChild:n,className:l,...o}=s,e[0]=s,e[1]=n,e[2]=l,e[3]=o):(n=e[1],l=e[2],o=e[3]);const i=n?et:"a";let r;e[4]!==l?(r=W("hover:text-foreground transition-colors truncate",l),e[4]=l,e[5]=r):r=e[5];let c;return e[6]!==i||e[7]!==o||e[8]!==r?(c=t.jsx(i,{"data-slot":"breadcrumb-link",className:r,...o}),e[6]=i,e[7]=o,e[8]=r,e[9]=c):c=e[9],c}function Ue(s){const e=k.c(8);let n,l;e[0]!==s?({className:n,...l}=s,e[0]=s,e[1]=n,e[2]=l):(n=e[1],l=e[2]);let o;e[3]!==n?(o=W("text-foreground font-medium truncate",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==l||e[6]!==o?(i=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:o,...l}),e[5]=l,e[6]=o,e[7]=i):i=e[7],i}function le(s){const e=k.c(12);let n,l,o;e[0]!==s?({children:n,className:l,...o}=s,e[0]=s,e[1]=n,e[2]=l,e[3]=o):(n=e[1],l=e[2],o=e[3]);let i;e[4]!==l?(i=W("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",l),e[4]=l,e[5]=i):i=e[5];let r;e[6]!==n?(r=n??t.jsx(wt,{}),e[6]=n,e[7]=r):r=e[7];let c;return e[8]!==o||e[9]!==i||e[10]!==r?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...o,children:r}),e[8]=o,e[9]=i,e[10]=r,e[11]=c):c=e[11],c}const Bt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=k.c(12),{toolName:n,connectionId:l,siblings:o,onSelectInstance:i,onBack:r}=s,c=Q();let d;e[0]!==l?(d={connectionId:l},e[0]=l,e[1]=d):d=e[1];const a=It(d);if(!a.isAuthenticated){let m;return e[2]!==a.supportsOAuth||e[3]!==r||e[4]!==c?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:a.supportsOAuth?t.jsx(it,{onAuthenticate:()=>r(),buttonText:c("details.tool.goBackToAuthenticate")}):t.jsx(rt,{hasReadme:!1})}),e[2]=a.supportsOAuth,e[3]=r,e[4]=c,e[5]=m):m=e[5],m}const x=`${l}:${n}`;let h;return e[6]!==l||e[7]!==i||e[8]!==o||e[9]!==x||e[10]!==n?(h=t.jsx(Vt,{toolName:n,connectionId:l,siblings:o,onSelectInstance:i},x),e[6]=l,e[7]=i,e[8]=o,e[9]=x,e[10]=n,e[11]=h):h=e[11],h}function Vt({toolName:s,connectionId:e,siblings:n,onSelectInstance:l}){const o=Q(),{replayId:i}=tt({strict:!1}),r=(()=>{if(!i)return null;const u=`replay-${i}`,j=sessionStorage.getItem(u);if(!j)return null;sessionStorage.removeItem(u);try{return JSON.parse(j)}catch{return null}})(),c=(()=>{if(!r)return null;const u={};for(const[j,$]of Object.entries(r))$!==null&&typeof $=="object"?u[j]=JSON.stringify($,null,2):u[j]=$;return u})(),[d,a]=E.useState(c??{}),[x,h]=E.useState(r?JSON.stringify(r,null,2):"{}"),[m,f]=E.useState(null),[p,g]=E.useState(null),[b,S]=E.useState(null),[T,y]=E.useState(null),[P,w]=E.useState(!1),[N,A]=E.useState(null),{org:D}=fe(),R=ze(e),C=At(),I=Dt(),{openSidePanel:O}=Et(),U=`${e}:${s}`,z=ge({connectionId:e,orgId:D.id,orgSlug:D.slug}),V=Tt({client:z}),v=V.data?.tools?.find(u=>u.name===s),F=xt(v?._meta),J=u=>{if(!C)return;const j=kt(u.content);j.content.length>0&&(O("chat"),C.sendMessage({tiptapDoc:j}))},[M,L]=E.useState("json"),[q,Y]=E.useState(!1);F&&!q&&(L("ui"),Y(!0));const _=v?.inputSchema?.properties,be=_?Object.keys(_):[],G=be.length>0,X={};if(G&&v?.inputSchema?.properties)for(const u of be)X[u]=v.inputSchema.required?.includes(u)?"":void 0;const ne=u=>Object.prototype.hasOwnProperty.call(d,u),Ve=async()=>{w(!0),y(null),f(null),g(null),S(null),A(null);const u=performance.now();try{if(!z)throw new Error("MCP client is not available");const j=G?{...X,...d}:(()=>{const B=x.trim();if(!B)return{};const H=JSON.parse(B);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();G&&v?.inputSchema?.properties&&Object.entries(v.inputSchema.properties).forEach(([B,H])=>{if((H.type==="object"||H.type==="array")&&typeof j[B]=="string")try{j[B]=JSON.parse(j[B])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof j[B]=="string"&&j[B]!==""){const Se=Number(j[B]);Number.isNaN(Se)||(j[B]=Se)}});const $=await z.callTool({name:s,arguments:j}),ee=$.structuredContent??$,We=performance.now(),Qe=Math.round(We-u);f(ee),g($),S(j);const Ye=JSON.stringify(ee),ve=new TextEncoder().encode(Ye).length;A({duration:`${Qe}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(j){const $=j instanceof Error?j.message:String(j);y($||"Unknown error occurred");const ee=performance.now();A({duration:`${Math.round(ee-u)}ms`})}finally{w(!1)}},ie=(u,j)=>{a($=>({...$,[u]:j}))},_e=()=>{f(null),g(null),S(null),y(null),A(null)},Je=v?.name??Bt(s),qe=t.jsx(Le,{children:t.jsxs(Be,{children:[t.jsx(Z,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:D.slug},children:o("details.tool.connections")})})}),t.jsx(le,{}),R&&t.jsxs(t.Fragment,{children:[t.jsx(Z,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:D.slug,appSlug:Ct(R)},search:{tab:"tools"},children:R.title})})}),t.jsx(le,{})]}),t.jsx(Z,{children:t.jsx(Ue,{children:Je})})]})}),Ne=n.length>1&&t.jsxs(Ce,{value:e,onValueChange:l,children:[t.jsx(Ie,{className:"h-8 w-auto min-w-[200px]",children:t.jsx($e,{})}),t.jsx(Te,{children:n.map(u=>t.jsx(me,{value:u.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(De,{icon:u.icon,name:u.title,size:"xs",className:"shrink-0"}),u.title]})},u.id))})]}),He=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:o("details.tool.parameters")}),v?.inputSchema?.required&&v.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",o("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:G&&v?.inputSchema?.properties?Object.entries(v.inputSchema.properties).map(([u,j])=>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:[u,v.inputSchema?.required?.includes(u)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:j.type})]}),j.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:j.description}),j.type==="object"||j.type==="array"?t.jsx(xe,{className:"font-mono text-xs",value:ne(u)?d[u]??"":X[u]??"",onChange:$=>ie(u,$.target.value),placeholder:o("details.tool.enterAsJson",{key:u}),rows:3}):j.type==="boolean"?t.jsxs(Ce,{value:ne(u)?String(d[u]??""):"",onValueChange:$=>ie(u,$==="true"),children:[t.jsx(Ie,{children:t.jsx($e,{placeholder:o("details.tool.selectTrueOrFalse")})}),t.jsxs(Te,{children:[t.jsx(me,{value:"true",children:"true"}),t.jsx(me,{value:"false",children:"false"})]})]}):t.jsx(pe,{value:ne(u)?d[u]??"":X[u]??"",onChange:$=>ie(u,$.target.value),placeholder:o("details.tool.enter",{key:u})})]},u)):v?.inputSchema&&!G?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:o("details.tool.rawJsonInput")}),t.jsx(xe,{className:"font-mono text-xs min-h-[120px]",value:x,onChange:u=>h(u.target.value),placeholder:o("details.tool.rawJsonExample")})]}):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:o("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:P?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:_e,children:[t.jsx(dt,{className:"h-3.5 w-3.5"}),o("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Ve,children:[t.jsx(yt,{className:"h-3.5 w-3.5 fill-current"}),o("details.tool.executeTool")]})})]}),Ke=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:o("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[N&&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(vt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:N.duration})]}),N.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(mt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:N.tokens})]}),N.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:N.bytes})]}),N.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:N.cost})})]}),F&&t.jsx(bt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:M==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>L("ui"),children:t.jsx(pt,{size:14})})}),t.jsx(Ae,{children:o("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:M==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>L("json"),children:t.jsx(ye,{size:14})})}),t.jsx(Ae,{children:o("details.tool.jsonView")})]})]})})]})]}),T&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(ht,{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(Nt,{className:"h-4 w-4"}),t.jsx(gt,{className:"mb-0",children:o("details.tool.executionFailed")})]}),t.jsx(jt,{className:"text-xs text-destructive",children:T})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:F&&M==="ui"&&z?t.jsx(E.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:o("details.tool.loadingApp")})]})}),children:t.jsx(ft,{resourceURI:F,toolInfo:v?{tool:v}:void 0,toolInput:b??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:z,onMessage:J,onUpdateModelContext:u=>I?.setAppContext(U,u),onTeardown:()=>I?.clearAppContext(U),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(K,{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)),st.success(o("details.tool.copiedToClipboard"))},children:t.jsx(St,{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(ye,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:o("details.tool.runToolToSeeResults")})]})})]});return t.jsx(je,{breadcrumb:qe,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(De,{icon:R?.icon||null,name:R?.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:[V.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):V.isLoading?t.jsx(oe,{size:10,className:"animate-spin text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:V.isSuccess?"ready":V.isLoading?"connecting":"error"})]}),t.jsx($t,{annotations:v?.annotations,_meta:v?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:v?.description||"No description available"})]}),n.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:o("details.tool.instance")}),Ne]}),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:He}),Ke]})})]})})}function _t(s){const e=k.c(20),{itemId:n,siblings:l,onBack:o}=s,i=Q(),[r,c]=E.useState(l[0]?.id??"");let d;e[0]!==r||e[1]!==l?(d=l.find(f=>f.id===r)?.id??l[0]?.id??"",e[0]=r,e[1]=l,e[2]=d):d=e[2];const a=d;if(!ze(a||void 0)||!a){let f;e[3]!==i?(f=i("details.tool.connectionNotFound"),e[3]=i,e[4]=f):f=e[4];let p;e[5]!==f?(p=t.jsx("h3",{className:"text-lg font-semibold",children:f}),e[5]=f,e[6]=p):p=e[6];let g;e[7]!==i?(g=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=g):g=e[8];let b;e[9]!==g?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[9]=g,e[10]=b):b=e[10];let S;return e[11]!==p||e[12]!==b?(S=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:[p,b]})}),e[11]=p,e[12]=b,e[13]=S):S=e[13],S}let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(oe,{size:32,className:"animate-spin text-muted-foreground"})}),e[14]=h):h=e[14];let m;return e[15]!==a||e[16]!==o||e[17]!==l||e[18]!==n?(m=t.jsx(E.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:n,connectionId:a,siblings:l,onSelectInstance:c,onBack:o})}),e[15]=a,e[16]=o,e[17]=l,e[18]=n,e[19]=m):m=e[19],m}function Jt(s){const e=k.c(21),{icon:n,illustration:l,title:o,description:i,buttonProps:r,buttonComponent:c,className:d,children:a}=s;let x;e[0]!==d?(x=W("flex flex-col items-center justify-center py-16 text-center",d),e[0]=d,e[1]=x):x=e[1];let h;e[2]!==n||e[3]!==l?(h=l?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:l}):n?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:n}):null,e[2]=n,e[3]=l,e[4]=h):h=e[4];let m;e[5]!==o?(m=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:o}),e[5]=o,e[6]=m):m=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 p;e[9]!==m||e[10]!==f?(p=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[m,f]}),e[9]=m,e[10]=f,e[11]=p):p=e[11];let g;e[12]!==c||e[13]!==r?(g=(c??r)&&t.jsx("div",{className:"mt-4",children:c??(r&&t.jsx(K,{size:"sm",className:W(r?.className),...r}))}),e[12]=c,e[13]=r,e[14]=g):g=e[14];let b;return e[15]!==a||e[16]!==x||e[17]!==h||e[18]!==p||e[19]!==g?(b=t.jsxs("div",{className:x,children:[h,p,g,a]}),e[15]=a,e[16]=x,e[17]=h,e[18]=p,e[19]=g,e[20]=b):b=e[20],b}const qt={prompt:Lt};function Ht(){const s=k.c(9),e=Oe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const l=he(n),o=decodeURIComponent(l.itemId);let i;s[1]!==l.appSlug?(i={slug:l.appSlug},s[1]=l.appSlug,s[2]=i):i=s[2];const r=Me(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,a=Kt;let x;return s[5]!==d||s[6]!==o||s[7]!==r?(x=t.jsx(_t,{itemId:o,siblings:r,onBack:d,onUpdate:a}),s[5]=d,s[6]=o,s[7]=r,s[8]=x):x=s[8],x}async function Kt(s){return Promise.resolve()}function Wt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Qt(){const s=k.c(52),e=Oe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const l=he(n),o=Q(),i=decodeURIComponent(l.collectionName),r=decodeURIComponent(l.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:a}=fe();let x;s[3]!==l.appSlug?(x={slug:l.appSlug},s[3]=l.appSlug,s[4]=x):x=s[4];const m=Me(x)[0]??null,f=m?.id??"",p=f||"no-connection",g=f??null;let b;s[5]!==a.id||s[6]!==a.slug||s[7]!==g?(b={connectionId:g,orgId:a.id,orgSlug:a.slug},s[5]=a.id,s[6]=a.slug,s[7]=g,s[8]=b):b=s[8];const S=ge(b),T=Re(p,i,S);let y;s[9]!==T||s[10]!==r?(y=async _=>{r&&await T.update.mutateAsync({id:r,data:_})},s[9]=T,s[10]=r,s[11]=y):y=s[11];const P=y;let w;s[12]!==i?(w=i?.toLowerCase(),s[12]=i,s[13]=w):w=s[13];const N=w,A=N&&qt[N];let D;s[14]!==i?(D=Wt(i),s[14]=i,s[15]=D):D=s[15];const R=D;let C;s[16]!==a.slug?(C=t.jsx(Z,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:a.slug},children:"Connections"})})}),s[16]=a.slug,s[17]=C):C=s[17];let I;s[18]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(le,{}),s[18]=I):I=s[18];let O;s[19]!==i||s[20]!==m||s[21]!==a.slug||s[22]!==l.appSlug?(O=m&&t.jsxs(t.Fragment,{children:[t.jsx(Z,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:a.slug,appSlug:l.appSlug},search:{tab:i},children:m.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=m,s[21]=a.slug,s[22]=l.appSlug,s[23]=O):O=s[23];let U;s[24]!==R?(U=t.jsx(Z,{children:t.jsx(Ue,{children:R})}),s[24]=R,s[25]=U):U=s[25];let z;s[26]!==O||s[27]!==U||s[28]!==C?(z=t.jsx(Le,{children:t.jsxs(Be,{children:[C,I,O,U]})}),s[26]=O,s[27]=U,s[28]=C,s[29]=z):z=s[29];const V=z;if(A){let _;return s[30]!==A||s[31]!==d||s[32]!==P||s[33]!==r?(_=t.jsx(A,{itemId:r,onBack:d,onUpdate:P}),s[30]=A,s[31]=d,s[32]=P,s[33]=r,s[34]=_):_=s[34],_}let v;s[35]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(Rt,{size:36,className:"text-muted-foreground"}),s[35]=v):v=s[35];let F;s[36]!==o?(F=o("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=o,s[37]=F):F=s[37];let J;s[38]!==o?(J=o("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=o,s[39]=J):J=s[39];let M;s[40]!==o?(M=o("orgs.collectionDetail.goBackButton"),s[40]=o,s[41]=M):M=s[41];let L;s[42]!==d||s[43]!==M?(L={onClick:d,children:M},s[42]=d,s[43]=M,s[44]=L):L=s[44];let q;s[45]!==F||s[46]!==J||s[47]!==L?(q=t.jsx(Jt,{icon:v,title:F,description:J,buttonProps:L}),s[45]=F,s[46]=J,s[47]=L,s[48]=q):q=s[48];let Y;return s[49]!==V||s[50]!==q?(Y=t.jsx(je,{breadcrumb:V,children:q}),s[49]=V,s[50]=q,s[51]=Y):Y=s[51],Y}function Yt(){const s=k.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 n=he(e);if(decodeURIComponent(n.collectionName)==="tools"){let r;return s[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Ht,{}),s[1]=r):r=s[1],r}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Qt,{}),s[2]=i):i=s[2],i}function _l(){const s=k.c(7),e=Q();let n;s[0]!==e?(n=e("orgs.collectionDetail.loadingAriaLabel"),s[0]=e,s[1]=n):n=s[1];let l;s[2]!==n?(l=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(oe,{size:32,className:"animate-spin text-muted-foreground","aria-label":n})}),s[2]=n,s[3]=l):l=s[3];let o;s[4]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Yt,{}),s[4]=o):o=s[4];let i;return s[5]!==l?(i=t.jsx(Ee,{children:t.jsx(E.Suspense,{fallback:l,children:o})}),s[5]=l,s[6]=i):i=s[6],i}export{_l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as $,b as A,j as s,m as z,B as E}from"./index-
|
|
1
|
+
import{c as $,b as A,j as s,m as z,B as E}from"./index-B-9MVTpa.js";import{a as S,D as F,b as L,c as O}from"./dropdown-menu-DNywxboQ.js";import{i as R,n as _}from"./ArrowUp-DFTBvXzm.js";import{i as V}from"./Check-X8DOcL_O.js";import{a as I,i as K,c as P}from"./SwitchHorizontal01-C2i-2oWy.js";import{T as W,a as q,b as G,c as H}from"./tooltip-iD2amP63.js";import{V as J}from"./view-mode-toggle-CX7FwABy.js";import{B as Q}from"./badge-C9ZI18xs.js";function oe(t){const e=$.c(36),{viewMode:l,onViewModeChange:u,sortKey:M,sortDirection:h,onSort:g,sortOptions:j,filters:b}=t;let v;e[0]!==j?(v=j===void 0?[]:j,e[0]=j,e[1]=v):v=e[1];const N=v;let w;e[2]!==b?(w=b===void 0?[]:b,e[2]=b,e[3]=w):w=e[3];const r=w,i=A();let C;e[4]!==r?(C=r.filter(X),e[4]=r,e[5]=C):C=e[5];const y=C.length;let k;e[6]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(I,{size:16}),e[6]=k):k=e[6];let o;e[7]!==y?(o=y>0&&s.jsx(Q,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:y}),e[7]=y,e[8]=o):o=e[8];let n;e[9]!==o?(n=s.jsx(W,{asChild:!0,children:s.jsx(F,{asChild:!0,children:s.jsxs(E,{variant:"outline",size:"icon",className:"relative",children:[k,o]})})}),e[9]=o,e[10]=n):n=e[10];let a;e[11]!==i?(a=i("collections.collectionDisplayButton.displayAndFilters"),e[11]=i,e[12]=a):a=e[12];let c;e[13]!==a?(c=s.jsx(q,{children:a}),e[13]=a,e[14]=c):c=e[14];let d;e[15]!==c||e[16]!==n?(d=s.jsx(G,{children:s.jsxs(H,{children:[n,c]})}),e[15]=c,e[16]=n,e[17]=d):d=e[17];let x;e[18]!==u||e[19]!==l?(x=u&&l&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(J,{value:l,onValueChange:u,fullWidth:!0,options:[{value:"table",icon:s.jsx(K,{})},{value:"cards",icon:s.jsx(P,{})}]})}),e[18]=u,e[19]=l,e[20]=x):x=e[20];let m;e[21]!==g||e[22]!==h||e[23]!==M||e[24]!==N||e[25]!==i?(m=N.length>0&&g&&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:i("collections.collectionDisplayButton.sortBy")}),N.map(T=>{const B=M===T.id;return s.jsx(S,{onClick:()=>g(T.id),className:z("h-8 px-2 py-0 cursor-pointer",B&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[B&&s.jsx(V,{size:16,className:"text-foreground shrink-0"}),!B&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:T.label}),B&&h&&(h==="asc"?s.jsx(R,{size:16,className:"text-foreground shrink-0"}):s.jsx(_,{size:16,className:"text-foreground shrink-0"}))]})},T.id)})]}),e[21]=g,e[22]=h,e[23]=M,e[24]=N,e[25]=i,e[26]=m):m=e[26];let p;e[27]!==r?(p=r.map(U),e[27]=r,e[28]=p):p=e[28];let f;e[29]!==x||e[30]!==m||e[31]!==p?(f=s.jsxs(L,{align:"end",className:"w-[200px] p-0 gap-0",children:[x,m,p]}),e[29]=x,e[30]=m,e[31]=p,e[32]=f):f=e[32];let D;return e[33]!==d||e[34]!==f?(D=s.jsxs(O,{children:[d,f]}),e[33]=d,e[34]=f,e[35]=D):D=e[35],D}function U(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 l=t.value===e.id;return s.jsx(S,{onClick:()=>t.onChange(e.id),className:z("h-8 px-2 py-0 cursor-pointer",l&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[l&&s.jsx(V,{size:16,className:"text-foreground shrink-0"}),!l&&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 X(t){return t.value!=="ALL"}export{oe as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,m as b,j as n,k as v}from"./index-
|
|
1
|
+
import{c as k,m as b,j as n,k as v}from"./index-B-9MVTpa.js";import{i as w}from"./SearchMd-16uJ5wWN.js";function S(j){const e=k.c(21),{value:m,onChange:d,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?n.jsx(v,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):n.jsx(w,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==d?(r=N=>d(N.target.value),e[6]=d,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==p||e[11]!==r||e[12]!==m?(o=n.jsx("input",{type:"text",value:m,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]=m,e[13]=o):o=e[13];let a;e[14]!==s||e[15]!==l||e[16]!==o?(a=n.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=a):a=e[17];let c;return e[18]!==t||e[19]!==a?(c=n.jsx("div",{className:t,children:a}),e[18]=t,e[19]=a,e[20]=c):c=e[20],c}export{S as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as r,m as C,b as S}from"./index-
|
|
1
|
+
import{c as k,j as r,m as C,b as S}from"./index-B-9MVTpa.js";import{d as R,e as H,a as T,T as I,b as W,c as z}from"./table-CTW0WsOP.js";import{i as D,n as E}from"./ArrowUp-DFTBvXzm.js";function K(y){const e=k.c(29),{columns:n,data:f,sortKey:u,sortDirection:x,onSort:c,onRowClick:a,rowClassName:d}=y;let p;e[0]!==x?(p=function(s,h){return r.jsx("div",{className:"w-4 flex items-center justify-center",children:h&&x&&(x==="asc"?r.jsx(D,{size:16,className:"text-muted-foreground transition-colors"}):r.jsx(E,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=x,e[1]=p):p=e[1];const b=p;let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=function(s,h){let N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return s===h-1&&(N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),N},e[2]=o):o=e[2];const g=o;let t;if(e[3]!==n||e[4]!==c||e[5]!==b||e[6]!==u){let i;e[8]!==n.length||e[9]!==c||e[10]!==b||e[11]!==u?(i=(s,h)=>{const N=u===s.id;return r.jsx(R,{className:C(g(h,n.length),"group transition-colors select-none",s.sortable&&"hover:bg-accent cursor-pointer",s.rowClassName,s.cellClassName),onClick:s.sortable&&c?()=>c(s.id):void 0,children:r.jsxs("span",{className:"flex items-center gap-1",children:[s.header,s.sortable&&b(s.id,N)]})},s.id)},e[8]=n.length,e[9]=c,e[10]=b,e[11]=u,e[12]=i):i=e[12],t=n.map(i),e[3]=n,e[4]=c,e[5]=b,e[6]=u,e[7]=t}else t=e[7];let l;e[13]!==t?(l=r.jsx(H,{className:"border-b-0",children:r.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:t})}),e[13]=t,e[14]=l):l=e[14];let j;if(e[15]!==n||e[16]!==f||e[17]!==a||e[18]!==d){let i;e[20]!==n||e[21]!==a||e[22]!==d?(i=(s,h)=>{const N=d?.(s);return r.jsx(T,{"data-row-index":h,className:C("group/data-row transition-colors border-b-0 hover:bg-accent/50",a?"cursor-pointer":"",N),onClick:a?()=>a(s):void 0,children:n.map(m=>r.jsx(I,{className:C("px-5 py-4 h-16 align-middle text-sm text-foreground",m.cellClassName,m.wrap?"whitespace-normal wrap-break-word":""),children:r.jsx("div",{className:C(m.wrap?"w-full":"min-w-0 w-full",!m.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:m.render?m.render(s):m.accessor?m.accessor(s):null})},m.id))},h)},e[20]=n,e[21]=a,e[22]=d,e[23]=i):i=e[23],j=f.map(i),e[15]=n,e[16]=f,e[17]=a,e[18]=d,e[19]=j}else j=e[19];let w;e[24]!==j?(w=r.jsx(W,{children:j}),e[24]=j,e[25]=w):w=e[25];let v;return e[26]!==l||e[27]!==w?(v=r.jsxs(z,{className:"w-full border-collapse",children:[l,w]}),e[26]=l,e[27]=w,e[28]=v):v=e[28],v}function B(y){const e=k.c(16),{columns:n,data:f,isLoading:u,sortKey:x,sortDirection:c,onSort:a,onRowClick:d,emptyState:p}=y,b=u===void 0?!1:u,o=S();if(b){let t;e[0]!==o?(t=o("collections.collectionTableWrapper.loading"),e[0]=o,e[1]=t):t=e[1];let l;return e[2]!==t?(l=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx("div",{className:"text-muted-foreground",children:t})}),e[2]=t,e[3]=l):l=e[3],l}if(f.length===0){let t;e[4]!==p||e[5]!==o?(t=p||r.jsx("div",{className:"text-center py-12 text-muted-foreground",children:o("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=o,e[6]=t):t=e[6];let l;return e[7]!==t?(l=r.jsx("div",{className:"flex items-center justify-center h-full",children:t}),e[7]=t,e[8]=l):l=e[8],l}let g;return e[9]!==n||e[10]!==f||e[11]!==d||e[12]!==a||e[13]!==c||e[14]!==x?(g=r.jsx("div",{className:"flex-1",children:r.jsx(K,{columns:n,data:f,sortKey:x,sortDirection:c,onSort:a,onRowClick:d})}),e[9]=n,e[10]=f,e[11]=d,e[12]=a,e[13]=c,e[14]=x,e[15]=g):g=e[15],g}export{B as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,m as u,j as m}from"./index-
|
|
1
|
+
import{c as f,m as u,j as m}from"./index-B-9MVTpa.js";import{B as g}from"./badge-C9ZI18xs.js";function h(x){const e=f.c(12),{tabs:l,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]!==l){let c;e[6]!==n||e[7]!==s?(c=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]=c):c=e[8],r=l.map(c),e[2]=n,e[3]=s,e[4]=l,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,m as i,j as n}from"./index-
|
|
1
|
+
import{c as d,m as i,j as n}from"./index-B-9MVTpa.js";import{_ as m}from"./index-krrgKyLi.js";import{e as N,b as j,h as b,a as w,d as y}from"./dialog-D6bhM5Bl.js";import{i as C}from"./SearchMd-16uJ5wWN.js";function $(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 z(a){const e=d.c(26);let t,s,o,l,r,h;e[0]!==a?({title:r,description:h,children:t,className:s,filter:o,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=r,e[6]=h):(t=e[1],s=e[2],o=e[3],l=e[4],r=e[5],h=e[6]);const v=r===void 0?"Command Palette":r,k=h===void 0?"Search for a command to run...":h;let c;e[7]!==v?(c=n.jsx(j,{children:v}),e[7]=v,e[8]=c):c=e[8];let p;e[9]!==k?(p=n.jsx(b,{children:k}),e[9]=k,e[10]=p):p=e[10];let u;e[11]!==c||e[12]!==p?(u=n.jsxs(w,{className:"sr-only",children:[c,p]}),e[11]=c,e[12]=p,e[13]=u):u=e[13];let f;e[14]!==s?(f=i("overflow-hidden p-0",s),e[14]=s,e[15]=f):f=e[15];let x;e[16]!==t||e[17]!==o?(x=n.jsx($,{filter:o,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[16]=t,e[17]=o,e[18]=x):x=e[18];let g;e[19]!==f||e[20]!==x?(g=n.jsx(y,{className:f,closeButtonClassName:"hidden",children:x}),e[19]=f,e[20]=x,e[21]=g):g=e[21];let _;return e[22]!==l||e[23]!==u||e[24]!==g?(_=n.jsxs(N,{...l,children:[u,g]}),e[22]=l,e[23]=u,e[24]=g,e[25]=_):_=e[25],_}function G(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(C,{className:"size-4 shrink-0 text-muted-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 L(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 R(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:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}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("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 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("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 P(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,R as a,B as b,P as c,G as d,$ as e,z as f,H as g};
|