decocms 4.373.1 → 4.373.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-2L7lI8NL.js → AlertCircle-D0XfIdP3.js} +1 -1
- package/dist/client/assets/{AreaChart-BSJ08P7a.js → AreaChart-BahcMnDC.js} +1 -1
- package/dist/client/assets/{ArrowLeft-8rouBEwC.js → ArrowLeft-COesgQ7q.js} +1 -1
- package/dist/client/assets/{ArrowRight-DCA5zjxW.js → ArrowRight-CnMpegh6.js} +1 -1
- package/dist/client/assets/{ArrowUp-BtksDHBQ.js → ArrowUp-17ZWJBkC.js} +1 -1
- package/dist/client/assets/{CartesianChart-BbOaLmfq.js → CartesianChart-DqSaDs52.js} +1 -1
- package/dist/client/assets/{CheckCircle-BmVuh1xp.js → CheckCircle-GwUJIVVh.js} +1 -1
- package/dist/client/assets/{ChevronUp-fg9sod-H.js → ChevronUp-CodzCI7T.js} +1 -1
- package/dist/client/assets/{Copy01-BgwuTJFm.js → Copy01-CrFZhFXo.js} +1 -1
- package/dist/client/assets/{CreditCard01-CIt471eG.js → CreditCard01-DDojC3kk.js} +1 -1
- package/dist/client/assets/{DotsVertical-CE2o6L6N.js → DotsVertical-DMzYFBsd.js} +1 -1
- package/dist/client/assets/{Download01-DNhEQzg0.js → Download01-B93GUT2-.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DxNax47N.js → ErrorBarContext-BUk8y7Bj.js} +1 -1
- package/dist/client/assets/{Eye-Dq6Vw6FI.js → Eye-Bxxku7SE.js} +1 -1
- package/dist/client/assets/{Globe01-g_y8gAs1.js → Globe01-DjdW3vEO.js} +1 -1
- package/dist/client/assets/{Globe04-GFiRExL0.js → Globe04-1G-_QSZW.js} +1 -1
- package/dist/client/assets/{Image01-QB6twEDu.js → Image01-DPvj49a-.js} +1 -1
- package/dist/client/assets/{Key01-CO_i2QPb.js → Key01-O_Ykzy8v.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BfySK4h8.js → LayoutLeft-Cr5_A1QG.js} +1 -1
- package/dist/client/assets/{Line-Cr57fOtp.js → Line-aFR7lShe.js} +1 -1
- package/dist/client/assets/{Link01-BIFMl_M0.js → Link01-D8T6mRIR.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DQD59o7F.js → LinkExternal01-CWPNoGQ_.js} +1 -1
- package/dist/client/assets/{Monitor01-Ddm2yOG6.js → Monitor01-CQaKbr3c.js} +1 -1
- package/dist/client/assets/{Package-CvzEol5_.js → Package-Cd3aVeK8.js} +1 -1
- package/dist/client/assets/{Palette-DT856bn6.js → Palette-HRmzWYeK.js} +1 -1
- package/dist/client/assets/{Play-wYDcJhBq.js → Play-CaxaoMwA.js} +1 -1
- package/dist/client/assets/{Plus-BSp00qOC.js → Plus-BjOenFFb.js} +1 -1
- package/dist/client/assets/{SearchLg-DFD1t2UL.js → SearchLg-CT-Vntfj.js} +1 -1
- package/dist/client/assets/{SearchMd-Bb5gjLcX.js → SearchMd-C6gkQ2l2.js} +1 -1
- package/dist/client/assets/{Sector-wViCnB96.js → Sector-B-fHBulW.js} +1 -1
- package/dist/client/assets/{Settings02-D9Qv7BDm.js → Settings02-DH86cX_B.js} +1 -1
- package/dist/client/assets/{Share07-CZ7JzYs9.js → Share07-Bw4Wicv2.js} +1 -1
- package/dist/client/assets/{Stars01-D-wYuyik.js → Stars01-B1kYoDFp.js} +1 -1
- package/dist/client/assets/{Sun-DLRcOzSd.js → Sun-kycCorOO.js} +1 -1
- package/dist/client/assets/{Tool01-Dwy1nlT9.js → Tool01-iak9ZtFE.js} +1 -1
- package/dist/client/assets/{Tool02-CvlAGFBM.js → Tool02-CFu103hl.js} +1 -1
- package/dist/client/assets/{Trash01-DtE0n00a.js → Trash01-CpN6r-a0.js} +1 -1
- package/dist/client/assets/{TrendUp01-BCriuXJd.js → TrendUp01-DlYmFZ7k.js} +1 -1
- package/dist/client/assets/{Upload01-Ba-RLxE1.js → Upload01-DkDsqCWe.js} +1 -1
- package/dist/client/assets/{User01-DHd46PZp.js → User01-CmNzW4kH.js} +1 -1
- package/dist/client/assets/{UserSquare-CcF49LHs.js → UserSquare-1_FC93GE.js} +1 -1
- package/dist/client/assets/{Users01-B8gdz27Y.js → Users01-CVhfgklM.js} +1 -1
- package/dist/client/assets/{X-BtMi8Qau.js → X-DTaqHNcB.js} +1 -1
- package/dist/client/assets/{XCircle-BLCHBIhx.js → XCircle-BR8ZZHlj.js} +1 -1
- package/dist/client/assets/{XClose-CvcHLHe2.js → XClose-VLid_ZSM.js} +1 -1
- package/dist/client/assets/{Zap-DZAIluO6.js → Zap-D3d1wpzw.js} +1 -1
- package/dist/client/assets/{ZoomOut-DUFJq3-K.js → ZoomOut-B3S7N50e.js} +1 -1
- package/dist/client/assets/{access-gate-C9Dl5e5c.js → access-gate-DAO7tJ5A.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DA05asFs.js → add-connection-dialog-CaHZ3eeK.js} +1 -1
- package/dist/client/assets/{agent-analytics-CDo5Hugr.js → agent-analytics-CzbWclRj.js} +1 -1
- package/dist/client/assets/agent-app-DqzssWfL.js +1 -0
- package/dist/client/assets/{agent-assets-6UK-ev9d.js → agent-assets-Dfpjbzyj.js} +1 -1
- package/dist/client/assets/{agent-automation-BC-cMvrG.js → agent-automation-C8r5_lAR.js} +1 -1
- package/dist/client/assets/{agent-automations-CnHTcvU7.js → agent-automations-BSaV8k3Y.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CJ8artss.js → agent-connect-sources-AkHuiIU0.js} +1 -1
- package/dist/client/assets/agent-deck-BQOqb5JA.js +1 -0
- package/dist/client/assets/{agent-e2e-Cj1Q_JS0.js → agent-e2e-CjCqLXH1.js} +1 -1
- package/dist/client/assets/{agent-experiments-DJ13yAp9.js → agent-experiments-4inK9Pvj.js} +1 -1
- package/dist/client/assets/agent-file-CN4CJx4b.js +1 -0
- package/dist/client/assets/{agent-git-B8LMQ2zl.js → agent-git-BZmL1C91.js} +1 -1
- package/dist/client/assets/{agent-hosting-Bm-WxahY.js → agent-hosting-CP9gImki.js} +1 -1
- package/dist/client/assets/{agent-icon-CTsmTxHg.js → agent-icon-D5Ih-I28.js} +1 -1
- package/dist/client/assets/agent-library-file-CMtJlgeS.js +1 -0
- package/dist/client/assets/{agent-monitor-DgVt0zbx.js → agent-monitor-D7bE1AUL.js} +1 -1
- package/dist/client/assets/{agent-overview-pOglhwpN.js → agent-overview-C5zU0xJO.js} +1 -1
- package/dist/client/assets/agent-settings-G7qQl7Yj.js +1 -0
- package/dist/client/assets/{agent-site-editor-DVT-M9T0.js → agent-site-editor-BRzwUORk.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-BV4iQvoi.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-eM0WchN0.js → agent-site-editor-content-Da0JfE-w.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-3VO_kTqr.js → agent-site-editor-preview-DqMQfEJz.js} +3 -3
- package/dist/client/assets/agent-view-BinIwia6.js +1 -0
- package/dist/client/assets/{agent-view-guard-BNYKK-x9.js → agent-view-guard-CmXIeKCe.js} +1 -1
- package/dist/client/assets/{agents-list-BXPjUzIN.js → agents-list-wHHXJTl8.js} +1 -1
- package/dist/client/assets/{ai-providers-BAmCFPvS.js → ai-providers-COexxMGY.js} +1 -1
- package/dist/client/assets/{alert-C8o4-kn8.js → alert-C_EPjsLF.js} +1 -1
- package/dist/client/assets/{alert-dialog-9n2p5SCQ.js → alert-dialog-D6rlFoy0.js} +1 -1
- package/dist/client/assets/api-keys-CN-jy2XH.js +1 -0
- package/dist/client/assets/{api-keys-Cu1KdEtK.js → api-keys-o45lgGkw.js} +1 -1
- package/dist/client/assets/app-editor-BPKOcfIg.js +1 -0
- package/dist/client/assets/{asset-utils-CK3Em4fb.js → asset-utils-BG24FUsq.js} +1 -1
- package/dist/client/assets/{auth-BBW3DF0r.js → auth-B_QE3yd2.js} +1 -1
- package/dist/client/assets/{auth-catchall-Bva2z4Gj.js → auth-catchall-BM8U6OhG.js} +1 -1
- package/dist/client/assets/{auth-entry-BuHqwUIr.js → auth-entry-CdieewWf.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DMgxvbll.js → auth-split-layout-rKTEf0Lh.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Pk9b2m8R.js → authenticate-and-persist-oauth-Cm242zr2.js} +1 -1
- package/dist/client/assets/{automation-list-row-D-zBLXA-.js → automation-list-row-DDeJYMHS.js} +1 -1
- package/dist/client/assets/{automation-runs-C8Wbje-n.js → automation-runs-BGXJk3-4.js} +1 -1
- package/dist/client/assets/{automations-D69ikqKh.js → automations-BhhOtnrs.js} +1 -1
- package/dist/client/assets/{autosend-CVNOmzPu.js → autosend-DtYV6o0l.js} +1 -1
- package/dist/client/assets/{avatar-BzRNaDEk.js → avatar-Dwn9Bjsb.js} +1 -1
- package/dist/client/assets/{badge-C5M6nZd4.js → badge-BSirYRuD.js} +1 -1
- package/dist/client/assets/{block-document-UPtnFOJG.js → block-document-DjxI0Nln.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-DAFMxzU6.js → blocks-preview-workspace-context-BwjlsTrq.js} +1 -1
- package/dist/client/assets/{breadcrumb-0yy48vm9.js → breadcrumb-BpbnoaV3.js} +1 -1
- package/dist/client/assets/{buckets-CktpbsrB.js → buckets-DdptE4Pj.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-C-SX02eL.js → build-improve-prompt-doc-CIkgt5Ml.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-MrIv4eD2.js → bulk-category-panel-BUvAK76e.js} +1 -1
- package/dist/client/assets/{calendar-QcX36iLy.js → calendar-Bhg3W8Dv.js} +1 -1
- package/dist/client/assets/{capability-load-error-BVb3VEU2.js → capability-load-error-l-yxDu1W.js} +1 -1
- package/dist/client/assets/category-editor-Crlp5xLx.js +1 -0
- package/dist/client/assets/{chart-BVjaATZw.js → chart-B7hxFGKr.js} +1 -1
- package/dist/client/assets/{chat-context-ELO8A2Ar.js → chat-context-CVZ1rNGo.js} +1 -1
- package/dist/client/assets/{chat-draft-tDfZTlxU.js → chat-draft-UIE-uNFd.js} +1 -1
- package/dist/client/assets/{checkbox-iGlb02v9.js → checkbox-VSstjUSb.js} +1 -1
- package/dist/client/assets/{choose-editor-CWLAiGtz.js → choose-editor-DD3-fBUp.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DyNW_Pmq.js → cli-auth-success-LIJhoLzG.js} +1 -1
- package/dist/client/assets/{client-icons-BuRYGGKe.js → client-icons-D8SzN11F.js} +1 -1
- package/dist/client/assets/{collapsible-PyJ2NOzW.js → collapsible-BX137q_-.js} +1 -1
- package/dist/client/assets/{collection-detail-DXmBNKMr.js → collection-detail-Brbyx-hM.js} +1 -1
- package/dist/client/assets/{collection-display-button-Cz5AkuIg.js → collection-display-button-LAyYKy93.js} +1 -1
- package/dist/client/assets/{collection-search-DM8MkJfo.js → collection-search-Dvf73igt.js} +1 -1
- package/dist/client/assets/collection-table-wrapper-_ZnQA9Nx.js +1 -0
- package/dist/client/assets/{collection-tabs-aKKPIP9M.js → collection-tabs-BW0egx-_.js} +1 -1
- package/dist/client/assets/{combobox-CQBdlQef.js → combobox-D6GclaQ-.js} +1 -1
- package/dist/client/assets/{command-CZcxzTcw.js → command-Dsz0XoYc.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-B7qgbnOZ.js → companion-mcps-section-D7ntAaGF.js} +1 -1
- package/dist/client/assets/{connect-D6Wz7x6C.js → connect-ChX83wmI.js} +1 -1
- package/dist/client/assets/{connect-layout-DzSDvFP2.js → connect-layout-SP9zSVi3.js} +1 -1
- package/dist/client/assets/{connection-DStV2sLP.js → connection-2MR1zroe.js} +1 -1
- package/dist/client/assets/{connection-card-CpIJKLp3.js → connection-card-B5yTdNvS.js} +1 -1
- package/dist/client/assets/{connection-detail-junbbrHX.js → connection-detail-DKOxQWbq.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DM_wSOEJ.js → connection-form-helpers-PrMbwr2L.js} +1 -1
- package/dist/client/assets/{connections-DvjnCZJT.js → connections-lQVX-uGO.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CvXOAbwA.js → create-organization-dialog-Ccojws8S.js} +1 -1
- package/dist/client/assets/{decofile-api-zRlIvvNL.js → decofile-api-DygXY02K.js} +1 -1
- package/dist/client/assets/{decopilot-BI8eOOPY.js → decopilot-rj_BJ_Z1.js} +1 -1
- package/dist/client/assets/{dialog-AoC07APJ.js → dialog-BKhaq-Xf.js} +1 -1
- package/dist/client/assets/{discover-zo2iAYFW.js → discover-C_imFiZx.js} +1 -1
- package/dist/client/assets/{domain-settings-C6kSznIr.js → domain-settings-CUKpZjNV.js} +1 -1
- package/dist/client/assets/{download-app-dialog-CsiIuf7j.js → download-app-dialog-wNu8nmu1.js} +1 -1
- package/dist/client/assets/{drawer-DGzquxJ8.js → drawer-CCmZWflK.js} +1 -1
- package/dist/client/assets/{editor-oL1B7LVJ.js → editor-DMij_Pa1.js} +1 -1
- package/dist/client/assets/{empty-state-DxJQDjCw.js → empty-state-BDpfsfUL.js} +1 -1
- package/dist/client/assets/{empty-state-Y08kvU5o.js → empty-state-DiRnF-wA.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C7Wh9xkI.js → extract-connection-data-Bdk8iF2q.js} +1 -1
- package/dist/client/assets/{feature-gate-C1d068b1.js → feature-gate-KPNWzkBp.js} +1 -1
- package/dist/client/assets/{feature-paywall-BoABVlUQ.js → feature-paywall-B3_no1lb.js} +1 -1
- package/dist/client/assets/{file-explorer-DG5Gvb-w.js → file-explorer-oIhs2jyB.js} +1 -1
- package/dist/client/assets/{file-preview-iaqpqUYi.js → file-preview-BFDgPeRr.js} +1 -1
- package/dist/client/assets/{file-share-button-D0lT5ixf.js → file-share-button-7xy_ju8b.js} +1 -1
- package/dist/client/assets/{file-type-icon-lZW2ows7.js → file-type-icon-Co9lETmZ.js} +1 -1
- package/dist/client/assets/{folder-icon-DVG7PK8X.js → folder-icon-CPH1Bszw.js} +1 -1
- package/dist/client/assets/{form-CYsJTpNM.js → form-CxKBX2E3.js} +1 -1
- package/dist/client/assets/{gateway-client-CnYYocwu.js → gateway-client-B8HHtBA6.js} +1 -1
- package/dist/client/assets/{general-BiYLEv2o.js → general-BXQ_6idC.js} +1 -1
- package/dist/client/assets/{github-icon-swNUSpAU.js → github-icon-DSeg1rga.js} +1 -1
- package/dist/client/assets/{home-BbjS-573.js → home-FAOklPf6.js} +1 -1
- package/dist/client/assets/{hooks-D0dDgrIf.js → hooks-BFlZlUD7.js} +1 -1
- package/dist/client/assets/{hooks-BlE0QZwR.js → hooks-CFjlhRX0.js} +1 -1
- package/dist/client/assets/{icon-button-7c--Wy5B.js → icon-button-_3vMPXZp.js} +1 -1
- package/dist/client/assets/{index-DItj2r3e.js → index-B3clFfYi.js} +1 -1
- package/dist/client/assets/{index-DyCAAYSx.js → index-BcfYNZk_.js} +1 -1
- package/dist/client/assets/{index-C97O3ClY.js → index-BrLZxE6-.js} +1 -1
- package/dist/client/assets/{index-0-s9o3tr.js → index-BwwpOrcS.js} +1 -1
- package/dist/client/assets/{index-EcuFIS2a.js → index-CC7J7MsT.js} +2 -2
- package/dist/client/assets/{index-CutV0Ygc.js → index-CV2G6XgT.js} +1 -1
- package/dist/client/assets/{index-BUfoj27y.js → index-Ci8CqfCi.js} +1 -1
- package/dist/client/assets/{index-DKXWNSdB.js → index-Coo4IGyG.js} +1 -1
- package/dist/client/assets/{index-BDYXeKzz.js → index-CxsDd08k.js} +1 -1
- package/dist/client/assets/{index-Exw_Yjch.js → index-D2HOssRq.js} +1 -1
- package/dist/client/assets/{index-DllcfiZL.js → index-DZmKVVGY.js} +1 -1
- package/dist/client/assets/{index-DGY2nhhI.js → index-DoCuIH7r.js} +1 -1
- package/dist/client/assets/{index-fN6RkMSD.js → index-WfTG300W.js} +1 -1
- package/dist/client/assets/{index-redirect-Bm4zqVUy.js → index-redirect-BV59ZcWQ.js} +1 -1
- package/dist/client/assets/{index-BchRuDAc.js → index-zFkCX32V.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-3RxH1tr-.js → infiniteQueryObserver-CKT-6XMq.js} +1 -1
- package/dist/client/assets/{infra-billing-CmY2herT.js → infra-billing-RcXbwjta.js} +1 -1
- package/dist/client/assets/{input-Buz_7xoG.js → input-DSV_9cOM.js} +1 -1
- package/dist/client/assets/{input-C5klQNJJ.js → input-QKe7l082.js} +1 -1
- package/dist/client/assets/{input-BrPa4I3Z.js → input-X38P96BY.js} +1 -1
- package/dist/client/assets/{integration-icon-D3FHJbYu.js → integration-icon-BARnXRTY.js} +1 -1
- package/dist/client/assets/{label-BX1BwzZ4.js → label-YKssz_GS.js} +1 -1
- package/dist/client/assets/{last-preview-page-BSVfE6AT.js → last-preview-page-D5EFEwR4.js} +1 -1
- package/dist/client/assets/{layout-030aDjqi.js → layout-UcqeKFE9.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BblX_qPq.js → legacy-agents-deep-BYo-BuCs.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BDaODIKZ.js → legacy-main-redirect-NyVTUirL.js} +1 -1
- package/dist/client/assets/{library-CmkU9fCT.js → library-FX2TKWir.js} +1 -1
- package/dist/client/assets/{login-BpUdj6Fq.js → login-gigmbDXu.js} +1 -1
- package/dist/client/assets/{markdown-VKlC4_bJ.js → markdown-tOSThun8.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-wS7imsel.js → mcp-app-renderer-c3JU3ROq.js} +1 -1
- package/dist/client/assets/{mcp-oauth-B7YJNr4N.js → mcp-oauth-Cr_ZflCp.js} +1 -1
- package/dist/client/assets/{members-2ZkimP3H.js → members-Cd4baVfz.js} +1 -1
- package/dist/client/assets/{message-templates-DyGM313y.js → message-templates-Pr7m4Pgn.js} +1 -1
- package/dist/client/assets/{mini-report-page-CYdef8vQ.js → mini-report-page-0G8UQBMn.js} +1 -1
- package/dist/client/assets/{mock-board-Dk2mRFCa.js → mock-board-Dw3AKqte.js} +3 -3
- package/dist/client/assets/{monaco-editor-ChRh_qus.js → monaco-editor-BhkNNN8A.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DirMMFq2.js → monitoring-stats-row-D3wuHD5K.js} +1 -1
- package/dist/client/assets/{multi-select-CYKeAXVo.js → multi-select-Bw9uE0vh.js} +1 -1
- package/dist/client/assets/{mustache-BpzqsH6c.js → mustache-BMe4E-3i.js} +1 -1
- package/dist/client/assets/{oauth-callback-CLQttSb2.js → oauth-callback-Ckn9o5ws.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C5AqSldx.js → oauth-callback-ai-provider-B7dYzzRe.js} +1 -1
- package/dist/client/assets/{onboarding-BYeSkDcE.js → onboarding-BtLLloCy.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-hB0JGrCs.js → optimistic-project-sidebar-views-8yO8-q3h.js} +1 -1
- package/dist/client/assets/{org-file-open-context-D26BTBiX.js → org-file-open-context-k2zY7W2A.js} +1 -1
- package/dist/client/assets/{organization-choice-sm9k2ko4.js → organization-choice-oi5kPDHh.js} +1 -1
- package/dist/client/assets/{orgs-BT6gh3Sc.js → orgs-C8VfgzyW.js} +1 -1
- package/dist/client/assets/{page-seo-form-Bhk-2qvu.js → page-seo-form-D-yemID7.js} +1 -1
- package/dist/client/assets/{pair-Bh73YYpe.js → pair-CbUh0olY.js} +1 -1
- package/dist/client/assets/{plan-ladder-B-hb17ya.js → plan-ladder-DR8Snnfh.js} +1 -1
- package/dist/client/assets/{popover-Bff85VlI.js → popover-tYq49O5I.js} +1 -1
- package/dist/client/assets/{post-calendar-BUJnl75O.js → post-calendar-n3g3NXQN.js} +1 -1
- package/dist/client/assets/{post-editor-B8ClYTJb.js → post-editor-BCki1XwL.js} +1 -1
- package/dist/client/assets/{preview-content-C4FuOpTi.js → preview-content-BEe_g5h_.js} +1 -1
- package/dist/client/assets/{preview-dialog-DY1kQ4y_.js → preview-dialog-B88KWjD7.js} +1 -1
- package/dist/client/assets/{primitives-BCCkMTJb.js → primitives-DvNXO9ko.js} +1 -1
- package/dist/client/assets/{profile-T7ySaz_t.js → profile-Dn8W-1_J.js} +1 -1
- package/dist/client/assets/{project-app-view-D4HCSkue.js → project-app-view-CHIgEuQJ.js} +1 -1
- package/dist/client/assets/{project-feed-CRHprIgj.js → project-feed-BeVLcst-.js} +1 -1
- package/dist/client/assets/{project-icon-D_oHwik9.js → project-icon-BuTPt9Ec.js} +1 -1
- package/dist/client/assets/project-reports-EFWj1j4Z.js +1 -0
- package/dist/client/assets/project-tasks-DGYfz1Ev.js +1 -0
- package/dist/client/assets/{prompts-BuPAnA4R.js → prompts-BrLG0HnD.js} +1 -1
- package/dist/client/assets/record-editor-AST5wQoO.js +1 -0
- package/dist/client/assets/{redirect-editor-BrEMZWAU.js → redirect-editor-DQh1NXo4.js} +1 -1
- package/dist/client/assets/registry-FGkay0Wa.js +2 -0
- package/dist/client/assets/{registry-layout-o90YrVKa.js → registry-layout-tLc7-FpU.js} +1 -1
- package/dist/client/assets/{reports-DEVutxJq.js → reports-Bgxd82xF.js} +1 -1
- package/dist/client/assets/reports-CqtPOzss.js +1 -0
- package/dist/client/assets/{reports-onboarding-Dt5mvf07.js → reports-onboarding-BORIliYh.js} +1 -1
- package/dist/client/assets/{reports-tab-C6PZg0b6.js → reports-tab-3yvhtU-e.js} +2 -2
- package/dist/client/assets/{repositories-DBFrDUwl.js → repositories-DnQQ93Vy.js} +1 -1
- package/dist/client/assets/{repository-import-picker-ftg0FRzY.js → repository-import-picker-B1zE1wEx.js} +1 -1
- package/dist/client/assets/repository-picker-DMUsWfjy.js +1 -0
- package/dist/client/assets/{require-capability-gpVnF6U4.js → require-capability-B9l2cjC7.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BhdxJMdb.js → required-auth-layout-qQ6V67AS.js} +1 -1
- package/dist/client/assets/{reset-password-DD2ixVIR.js → reset-password-CzGwWM54.js} +1 -1
- package/dist/client/assets/{resizable-wU1MiASn.js → resizable-c-JEmBrU.js} +1 -1
- package/dist/client/assets/{review-settings-3uLiRV1J.js → review-settings-CBDmCs9f.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-Bn-QsIS6.js → rich-text-link-control-B4QybUls.js} +1 -1
- package/dist/client/assets/{roles-DX_ap2B0.js → roles-9Q5Zr1_l.js} +1 -1
- package/dist/client/assets/{route-Bdqr734y.js → route-Cyp-PzpR.js} +1 -1
- package/dist/client/assets/{route-DGhKwFXa.js → route-D9feMXoH.js} +1 -1
- package/dist/client/assets/{route-Cg6AOuOY.js → route-DrZOVBG5.js} +1 -1
- package/dist/client/assets/{route-page-header-DKm5kHtX.js → route-page-header-BzWw0nja.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-9i5DpxOA.js → runnable-block-editor-nQ69L6jb.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-BHn9YFEW.js → sandbox-lifecycle-context-DLKr6QBG.js} +1 -1
- package/dist/client/assets/{schema-FDf70VFI.js → schema-CStbpjQf.js} +1 -1
- package/dist/client/assets/{scroll-area-DMmJ7JtI.js → scroll-area-BLDUQh9N.js} +1 -1
- package/dist/client/assets/{search-input-BHVk6m6A.js → search-input-MlNEh696.js} +1 -1
- package/dist/client/assets/{search-toggle-CCC7TvwN.js → search-toggle-SUy-5Oe0.js} +1 -1
- package/dist/client/assets/{secrets-BNtrMaDs.js → secrets-CEw0kB_t.js} +1 -1
- package/dist/client/assets/{sections-editor-HtflyYMM.js → sections-editor-l8Cc724N.js} +1 -1
- package/dist/client/assets/{select-DBfOOW9i.js → select-C_C7jdl-.js} +1 -1
- package/dist/client/assets/{select-model-2C5Fdpra.js → select-model-FW_XGeEU.js} +1 -1
- package/dist/client/assets/{seo-editor-CFULobkJ.js → seo-editor-BhZJvD6-.js} +1 -1
- package/dist/client/assets/{separator-8fswVHAH.js → separator-D-DaNCb-.js} +1 -1
- package/dist/client/assets/{settings-tab-s3d5MtS-.js → settings-tab-DhuuexRq.js} +1 -1
- package/dist/client/assets/{sheet-DWSThpSZ.js → sheet-B5ncClVO.js} +1 -1
- package/dist/client/assets/shell-layout-p-WJ7uxl.js +1 -0
- package/dist/client/assets/{sidebar-CoC2_Nad.js → sidebar-BlfpAzXY.js} +1 -1
- package/dist/client/assets/{skill-preview-QgrtYNqp.js → skill-preview-CeIBKDR2.js} +1 -1
- package/dist/client/assets/{skills-BVINvlqv.js → skills-Cpf0zAbB.js} +1 -1
- package/dist/client/assets/{sso-CSqM_F3b.js → sso-CYe8kGWS.js} +1 -1
- package/dist/client/assets/{store-DBNpNTVQ.js → store-DDl3lPqK.js} +1 -1
- package/dist/client/assets/store-registry-DUH5xq3l.js +2 -0
- package/dist/client/assets/{switch-BIfmgDHS.js → switch-C_FmZ5Us.js} +1 -1
- package/dist/client/assets/{synced-repos-CG_pm_Ch.js → synced-repos-DHbM7OOb.js} +1 -1
- package/dist/client/assets/{table-CEVOOGGz.js → table-mH2G1tkg.js} +1 -1
- package/dist/client/assets/{tabs-Dd0IWElc.js → tabs-jjUOgDeE.js} +1 -1
- package/dist/client/assets/{task-board-Dip4Wu9j.js → task-board-BtEMyO1f.js} +1 -1
- package/dist/client/assets/{task-route-SKFoAFiU.js → task-route-BaALoopn.js} +1 -1
- package/dist/client/assets/{task-status-k7EGfTLN.js → task-status-CCMsckzm.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-C3lk9wb7.js → taskboard-analytics-CzQSxt8I.js} +1 -1
- package/dist/client/assets/tasks-CI20rxb_.js +1 -0
- package/dist/client/assets/{tasks-ebQIYdwz.js → tasks-K4e2STZ0.js} +1 -1
- package/dist/client/assets/{textarea-D5v3ol7T.js → textarea-B7wqTmSc.js} +1 -1
- package/dist/client/assets/{thread-button-C3YUAV-G.js → thread-button-B9U3gqvP.js} +1 -1
- package/dist/client/assets/{thread-intent-CTSjhfEo.js → thread-intent-DZx7N_NL.js} +1 -1
- package/dist/client/assets/{thread-route-B57JfaL5.js → thread-route-B3hhxYHj.js} +1 -1
- package/dist/client/assets/{thread-route-CHwqHPf_.js → thread-route-DnE31jZ2.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-Hqh1hVbj.js → thread-sheet-body-D_py0jIP.js} +1 -1
- package/dist/client/assets/{toggle-group-CwAn2mKr.js → toggle-group-C-J6fFSZ.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-ChZE-2zp.js → toolbar-icon-button-DQAUOhdv.js} +1 -1
- package/dist/client/assets/{tooltip-nr5oS_bm.js → tooltip-DSCGYdw1.js} +1 -1
- package/dist/client/assets/{track-BDYWN4z3.js → track-BWEjISsx.js} +1 -1
- package/dist/client/assets/{types-7UQ7SDxU.js → types-BQYrCHfb.js} +1 -1
- package/dist/client/assets/{usage-stats-YafP0g9G.js → usage-stats-CH100JwP.js} +1 -1
- package/dist/client/assets/{use-ai-providers-D-abiIwe.js → use-ai-providers-DPIPADTm.js} +1 -1
- package/dist/client/assets/{use-automations-D_y1YNke.js → use-automations-Cm_whz3Q.js} +1 -1
- package/dist/client/assets/{use-autosave-z8cIzzdm.js → use-autosave-C09DCahC.js} +1 -1
- package/dist/client/assets/{use-connect-companion-jQzCS0Na.js → use-connect-companion-D45RJA2C.js} +1 -1
- package/dist/client/assets/{use-connection-BKZRi94S.js → use-connection-DAR6kA6F.js} +1 -1
- package/dist/client/assets/{use-copy-Cp_DyXH6.js → use-copy-CLZ5Gmjm.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-nvoTomrD.js → use-create-virtual-mcp-DlDbTDWh.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CNoKSvxx.js → use-date-fns-locale-4a1GuGUG.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-B0HBbqeX.js → use-debounced-autosave-s6ooboiq.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BgYHDTDk.js → use-debounced-value-C7PP6GCc.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CqbkXgA9.js → use-deco-credits-C78gqYYg.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-qaEKsixC.js → use-decopilot-events-DDN9tgML.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CqvqqWgS.js → use-delete-connection-DT4K_5dd.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DzkF6L4b.js → use-deployment-admin-mukdSbJI.js} +1 -1
- package/dist/client/assets/{use-entitlements-kPr6KRf9.js → use-entitlements-CsT7-WMV.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BBBDyhsD.js → use-fast-preview-draft-url-BofBOVEy.js} +1 -1
- package/dist/client/assets/{use-file-configs-6ygOocDG.js → use-file-configs-DT6Slpub.js} +1 -1
- package/dist/client/assets/{use-in-settings-BCDqA2EC.js → use-in-settings-BuwNY17C.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D0T36z_V.js → use-infinite-scroll-BEJH1fno.js} +1 -1
- package/dist/client/assets/{use-join-requests-BBovhUnp.js → use-join-requests-CRlXrVsN.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BghanH6r.js → use-main-panel-tabs-CHXW72tt.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-h4sAecTI.js → use-mcp-auth-status-BUHt6LYh.js} +1 -1
- package/dist/client/assets/{use-mcp-client-B_gcvvCy.js → use-mcp-client-jmamuSRM.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DfSKL4Gu.js → use-mcp-prompts-Cb12ACl6.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DC47roTz.js → use-mcp-tools-U5kwqIN7.js} +1 -1
- package/dist/client/assets/{use-members-C6brpkJ1.js → use-members-CZk_logh.js} +1 -1
- package/dist/client/assets/{use-mobile-BZ15DgEB.js → use-mobile-X_9uHXB5.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-B8SXI0oO.js → use-navigate-to-agent-XZHI0vTx.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BAg3ZeFq.js → use-open-billing-url-BygdFnSn.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-8fDIgHEZ.js → use-org-auth-client-6spdYft8.js} +1 -1
- package/dist/client/assets/{use-org-fs-Bf6n51Xm.js → use-org-fs-C4AEj3YR.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CnBqiATM.js → use-org-repo-syncs-D5-YS2q1.js} +1 -1
- package/dist/client/assets/{use-org-sso-QeqdMaIa.js → use-org-sso-CbtWg6df.js} +1 -1
- package/dist/client/assets/{use-organization-roles-tuKknI1K.js → use-organization-roles-B2NYy6qP.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DvtBymY3.js → use-organization-settings-DiOLzOn-.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-IItrbgmN.js → use-panel-navigate-YnjVvVnu.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-WwnxvZuP.js → use-project-native-view-presence-S2GuqygD.js} +1 -1
- package/dist/client/assets/{use-project-scope-CCxyXvEU.js → use-project-scope-azWGklpf.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Bd4wJHbx.js → use-registry-connections-Dr6Tl0jy.js} +1 -1
- package/dist/client/assets/{use-releases-DZvNer89.js → use-releases-sRilJRv7.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BeTEI2FZ.js → use-reports-diagnostic-b56ze7yP.js} +1 -1
- package/dist/client/assets/{use-route-default-main-BhbKsXCz.js → use-route-default-main-DAXdKSA3.js} +1 -1
- package/dist/client/assets/{use-secrets-Bq9yyXHE.js → use-secrets-BD25jCAi.js} +1 -1
- package/dist/client/assets/{use-section-preview-base--XbKHK2U.js → use-section-preview-base-CfKeOl7s.js} +1 -1
- package/dist/client/assets/{use-session-runtime-B5wMaHtP.js → use-session-runtime-D8PgcjtK.js} +1 -1
- package/dist/client/assets/{use-tags-Do2tDPSO.js → use-tags-DMzy8m-k.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-MK_Z2cUq.js → use-task-board-analytics-BXM0SDto.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CQjLXps1.js → use-task-metadata-IzJB5PVG.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DYukUH5N.js → use-thread-outputs-BhhE_Gkc.js} +1 -1
- package/dist/client/assets/{use-view-mode-BEPkb8x0.js → use-view-mode-CUHkIbeG.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Ji9vcgUj.js → use-virtual-mcp-Bt7oX0ej.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-zZoTJbYm.js +1 -0
- package/dist/client/assets/{useQueries-D0xhxw7a.js → useQueries-D7ondynP.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BvOl5Id0.js +1 -0
- package/dist/client/assets/{users-DzwkCv2F.js → users-CP4Dfulp.js} +1 -1
- package/dist/client/assets/{utils-y2q6u6PK.js → utils-CcX7wgow.js} +1 -1
- package/dist/client/assets/{variant-calendar-D1R9xk7D.js → variant-calendar-BYxVe-PM.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-qHzE4baz.js → variant-matcher-override-CgX58Kkx.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Ca0bFull.js → view-mode-toggle-CRnJAx40.js} +1 -1
- package/dist/client/assets/{virtual-mcp-Dji-1ojO.js → virtual-mcp-BWl8nlWy.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +648 -648
- package/dist/server/migrate.js +170 -170
- package/dist/server/server.js +415 -415
- package/package.json +1 -1
- package/dist/client/assets/agent-app-lfl4wDqj.js +0 -1
- package/dist/client/assets/agent-deck-BCZ0G4O2.js +0 -1
- package/dist/client/assets/agent-file-DbKP1r-4.js +0 -1
- package/dist/client/assets/agent-library-file-DvybgEEZ.js +0 -1
- package/dist/client/assets/agent-settings-Bx-Ya3hQ.js +0 -1
- package/dist/client/assets/agent-site-editor-code-DpPWdLwT.js +0 -2
- package/dist/client/assets/agent-view-v-h5B6vN.js +0 -1
- package/dist/client/assets/api-keys-DCurVLgh.js +0 -1
- package/dist/client/assets/app-editor-C3QSidsO.js +0 -1
- package/dist/client/assets/category-editor-DZThBJlF.js +0 -1
- package/dist/client/assets/collection-table-wrapper-cBr_X4Jo.js +0 -1
- package/dist/client/assets/project-reports-CzVFjEoR.js +0 -1
- package/dist/client/assets/project-tasks-c_cBe8VF.js +0 -1
- package/dist/client/assets/record-editor-CHfqyrFA.js +0 -1
- package/dist/client/assets/registry-4kJYrulU.js +0 -2
- package/dist/client/assets/reports-COffkxyo.js +0 -1
- package/dist/client/assets/repository-picker-BKj90hIS.js +0 -1
- package/dist/client/assets/shell-layout-BQnbNNla.js +0 -1
- package/dist/client/assets/store-registry-DLmFNBij.js +0 -2
- package/dist/client/assets/tasks-Sl_c9zFF.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CzQJkRT9.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D9iG0Y5m.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,l as f,j as i,bg as N,bf as y,as as S,bh as v,bi as $,bl as C,bk as w}from"./index-
|
|
1
|
+
import{c as n,l as f,j as i,bg as N,bf as y,as as S,bh as v,bi as $,bl as C,bk as w}from"./index-CC7J7MsT.js";import{i as k}from"./X-DTaqHNcB.js";function E(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(y,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function z(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function R(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(w,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function O(o){const e=n.c(20);let t,s,a,l,c;e[0]!==o?({className:s,children:t,side:l,hideCloseButton:c,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=c):(t=e[1],s=e[2],a=e[3],l=e[4],c=e[5]);const p=l===void 0?"right":l,h=c===void 0?!1:c;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(R,{}),e[6]=m):m=e[6];const x=p==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",b=p==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",g=p==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",j=p==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let r;e[7]!==s||e[8]!==x||e[9]!==b||e[10]!==g||e[11]!==j?(r=f("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",x,b,g,j,s),e[7]=s,e[8]=x,e[9]=b,e[10]=g,e[11]=j,e[12]=r):r=e[12];let d;e[13]!==h?(d=!h&&i.jsxs(C,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 classic:rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none compact:rounded-lg",children:[i.jsx(k,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=h,e[14]=d):d=e[14];let u;return e[15]!==t||e[16]!==a||e[17]!==r||e[18]!==d?(u=i.jsxs(z,{children:[m,i.jsxs(S,{"data-slot":"sheet-content",className:r,...a,children:[t,d]})]}),e[15]=t,e[16]=a,e[17]=r,e[18]=d,e[19]=u):u=e[19],u}function P(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(N,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(v,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{T as S,O as a,E as b,P as c,_ as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as R,b as W,e as Ye,j as n,B as F,t as Ve,bP as me,R as Tt,a as Ke,y as Vt,D as Nt,K as Ue,bQ as Wt,bR as Yt,$ as Be,l as ct,aJ as Qt,p as ht,bS as Xt,r as V,a1 as Zt,aa as ie,d as _t,a0 as ft,z as At,m as He,q as dt,au as Pt,bT as en,aB as tn,aH as pt,x as nn,bU as sn,bV as on,bW as an,bX as rn,bY as ln,T as cn,u as dn,a3 as un,bZ as mn,b_ as fn,k as Ct,b$ as rt,c0 as gn,c1 as hn,O as pn,c2 as yn}from"./index-CC7J7MsT.js";import{A as it}from"./avatar-Dwn9Bjsb.js";import{t as Et}from"./Globe04-1G-_QSZW.js";import{i as bn}from"./SearchLg-CT-Vntfj.js";import{ad as xn,ac as Sn,ae as te,r as wn,af as vn,n as yt,g as jn,f as kn,ag as Tn,e as Nn}from"./agent-icon-D5Ih-I28.js";import{s as _n}from"./XClose-VLid_ZSM.js";import{D as An}from"./download-app-dialog-wNu8nmu1.js";import{a as Pn,u as Cn}from"./use-project-scope-azWGklpf.js";import{u as Ot,a as En}from"./use-panel-navigate-YnjVvVnu.js";import{i as ae}from"./CheckCircle-GwUJIVVh.js";import{i as bt}from"./Tool02-CFu103hl.js";import{i as lt}from"./Monitor01-CQaKbr3c.js";import{i as re}from"./Zap-D3d1wpzw.js";import{c as It,d as Lt,b as $t,D as Dt,h as On,e as In}from"./dialog-BKhaq-Xf.js";import{i as Ln}from"./Share07-Bw4Wicv2.js";import{s as xt}from"./Plus-BjOenFFb.js";import{a as $n}from"./Settings02-DH86cX_B.js";import{b as le,a as Ge,f as Dn,e as Rn,c as Mn,C as Fn}from"./command-Dsz0XoYc.js";import{I as zn}from"./integration-icon-BARnXRTY.js";import{P as qn}from"./project-icon-BuTPt9Ec.js";import{a as Bn,m as Kn}from"./use-mcp-client-jmamuSRM.js";import{S as Hn,u as Un}from"./hooks-BFlZlUD7.js";import{u as Gn}from"./use-is-desktop-app-BNujXJc_.js";import{R as Jn}from"./required-auth-layout-qQ6V67AS.js";import{A as Vn}from"./autosend-DtYV6o0l.js";import{u as Wn,a as Yn,b as Qn,c as Xn}from"./thread-route-DnE31jZ2.js";import{b as Zn}from"./use-organization-settings-DiOLzOn-.js";import{u as es}from"./use-org-sso-CbtWg6df.js";function ts(t){const e=R.c(49),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let d;e[0]!==r||e[1]!==i?(d=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=d):d=e[2];let m;e[3]!==r?(m=k=>{window.location.href=`/${k.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=k=>{Ve.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let v;e[7]!==d||e[8]!==m||e[9]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[7]=d,e[8]=m,e[9]=h,e[10]=v):v=e[10];const c=Ye(v),b=ns;let p;e[11]!==o||e[12]!==s?(p=o?n.jsx(it,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Et,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=s,e[13]=p):p=e[13];let l;e[14]!==s||e[15]!==i?(l=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==l?(f=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[17]=l,e[18]=f):f=e[18];let u;e[19]!==a||e[20]!==i?(u=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=u):u=e[21];let x;e[22]!==u?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[22]=u,e[23]=x):x=e[23];let S;e[24]!==f||e[25]!==x?(S=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=S):S=e[26];let y;e[27]!==c?(y=()=>c.mutate(),e[27]=c,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==s||e[31]!==i?(w=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=i,e[32]=w):w=e[32];let _;e[33]!==c.isPending||e[34]!==y||e[35]!==w?(_=n.jsx(F,{onClick:y,disabled:c.isPending,children:w}),e[33]=c.isPending,e[34]=y,e[35]=w,e[36]=_):_=e[36];const P=c.isPending;let N;e[37]!==i?(N=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=N):N=e[38];let j;e[39]!==c.isPending||e[40]!==N?(j=n.jsx(F,{variant:"ghost",onClick:b,disabled:P,children:N}),e[39]=c.isPending,e[40]=N,e[41]=j):j=e[41];let g;e[42]!==_||e[43]!==j?(g=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,j]}),e[42]=_,e[43]=j,e[44]=g):g=e[44];let T;return e[45]!==S||e[46]!==g||e[47]!==p?(T=n.jsxs(me,{children:[p,S,g]}),e[45]=S,e[46]=g,e[47]=p,e[48]=T):T=e[48],T}function ns(){window.location.href="/"}function St(t){const e=R.c(25),{orgSlug:s,orgName:r,reason:o}=t,a=W(),i=ss,d=o==="not-found",m=d?bn:Tt;let h;e[0]!==d||e[1]!==a?(h=a(d?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=d,e[1]=a,e[2]=h):h=e[2];const v=h;let c;e[3]!==d||e[4]!==r||e[5]!==s||e[6]!==a?(c=d?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??s}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=d,e[4]=r,e[5]=s,e[6]=a,e[7]=c):c=e[7];const b=c;let p;e[8]!==m?(p=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=p):p=e[9];let l;e[10]!==v?(l=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[10]=v,e[11]=l):l=e[11];let f;e[12]!==b?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=f):f=e[13];let u;e[14]!==l||e[15]!==f?(u=n.jsxs("div",{className:"space-y-2",children:[l,f]}),e[14]=l,e[15]=f,e[16]=u):u=e[16];let x;e[17]!==a?(x=a("common.noAccessScreen.goToHome"),e[17]=a,e[18]=x):x=e[18];let S;e[19]!==x?(S=n.jsx(F,{onClick:i,children:x}),e[19]=x,e[20]=S):S=e[20];let y;return e[21]!==p||e[22]!==u||e[23]!==S?(y=n.jsxs(me,{children:[p,u,S]}),e[21]=p,e[22]=u,e[23]=S,e[24]=y):y=e[24],y}function ss(){window.location.href="/"}function os(t){const e=R.c(59),{invitationId:s,orgName:r,orgSlug:o,orgLogo:a}=t,i=W();let d;e[0]!==s?(d=async()=>{const I=await Ke.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=d):d=e[1];let m;e[2]!==o?(m=()=>{Vt(),window.location.href=`/${o}`},e[2]=o,e[3]=m):m=e[3];let h;e[4]!==i?(h=I=>{Ve.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let v;e[6]!==d||e[7]!==m||e[8]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[6]=d,e[7]=m,e[8]=h,e[9]=v):v=e[9];const c=Ye(v);let b;e[10]!==s?(b=async()=>{const I=await Ke.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=b):b=e[11];let p,l;e[12]!==i?(p=()=>{Ve.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=I=>{Ve.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=p,e[14]=l):(p=e[13],l=e[14]);let f;e[15]!==b||e[16]!==p||e[17]!==l?(f={mutationFn:b,onSuccess:p,onError:l},e[15]=b,e[16]=p,e[17]=l,e[18]=f):f=e[18];const u=Ye(f),x=c.isPending||u.isPending;let S;e[19]!==a||e[20]!==r?(S=a?n.jsx(it,{url:a,fallback:r.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(xn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=S):S=e[21];let y;e[22]!==r||e[23]!==i?(y=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=y):y=e[24];let w;e[25]!==y?(w=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[25]=y,e[26]=w):w=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let P;e[29]!==_?(P=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=P):P=e[30];let N;e[31]!==w||e[32]!==P?(N=n.jsxs("div",{className:"space-y-2",children:[w,P]}),e[31]=w,e[32]=P,e[33]=N):N=e[33];let j;e[34]!==c?(j=()=>c.mutate(),e[34]=c,e[35]=j):j=e[35];let g;e[36]!==c.isPending||e[37]!==i?(g=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=g):g=e[38];let T;e[39]!==x||e[40]!==j||e[41]!==g?(T=n.jsx(F,{onClick:j,disabled:x,children:g}),e[39]=x,e[40]=j,e[41]=g,e[42]=T):T=e[42];let k;e[43]!==u?(k=()=>u.mutate(),e[43]=u,e[44]=k):k=e[44];let A;e[45]!==u.isPending||e[46]!==i?(A=u.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=u.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==x||e[49]!==k||e[50]!==A?(E=n.jsx(F,{variant:"ghost",onClick:k,disabled:x,children:A}),e[48]=x,e[49]=k,e[50]=A,e[51]=E):E=e[51];let C;e[52]!==T||e[53]!==E?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,E]}),e[52]=T,e[53]=E,e[54]=C):C=e[54];let O;return e[55]!==N||e[56]!==C||e[57]!==S?(O=n.jsxs(me,{children:[S,N,C]}),e[55]=N,e[56]=C,e[57]=S,e[58]=O):O=e[58],O}function is(t){const e=R.c(23),{orgName:s,orgLogo:r}=t,o=W();let a;e[0]!==r||e[1]!==s?(a=r?n.jsx(it,{url:r,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Sn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=s,e[2]=a):a=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let d;e[5]!==i?(d=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=d):d=e[6];let m;e[7]!==s||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=o,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let v;e[12]!==d||e[13]!==h?(v=n.jsxs("div",{className:"space-y-2",children:[d,h]}),e[12]=d,e[13]=h,e[14]=v):v=e[14];let c;e[15]!==o?(c=o("common.requestPendingScreen.goHome"),e[15]=o,e[16]=c):c=e[16];let b;e[17]!==c?(b=n.jsx(F,{variant:"ghost",onClick:as,children:c}),e[17]=c,e[18]=b):b=e[18];let p;return e[19]!==a||e[20]!==v||e[21]!==b?(p=n.jsxs(me,{children:[a,v,b]}),e[19]=a,e[20]=v,e[21]=b,e[22]=p):p=e[22],p}function as(){window.location.href="/"}function rs(t){const e=R.c(45),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let d;e[0]!==r?(d=async()=>{const T=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),k=await T.json();if(!T.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=r,e[1]=d):d=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=cs,e[2]=m):m=e[2];let h;e[3]!==i?(h=T=>{Ve.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let v;e[5]!==d||e[6]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[5]=d,e[6]=h,e[7]=v):v=e[7];const c=Ye(v);let b;e[8]!==o||e[9]!==s?(b=o?n.jsx(it,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Et,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=s,e[10]=b):b=e[10];let p;e[11]!==s||e[12]!==i?(p=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=p):p=e[13];let l;e[14]!==p?(l=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let u;e[19]!==f?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=u):u=e[20];let x;e[21]!==l||e[22]!==u?(x=n.jsxs("div",{className:"space-y-2",children:[l,u]}),e[21]=l,e[22]=u,e[23]=x):x=e[23];let S;e[24]!==c?(S=()=>c.mutate(),e[24]=c,e[25]=S):S=e[25];let y;e[26]!==c.isPending||e[27]!==i?(y=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==S||e[31]!==y?(w=n.jsx(F,{onClick:S,disabled:c.isPending,children:y}),e[29]=c.isPending,e[30]=S,e[31]=y,e[32]=w):w=e[32];const _=c.isPending;let P;e[33]!==i?(P=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=P):P=e[34];let N;e[35]!==c.isPending||e[36]!==P?(N=n.jsx(F,{variant:"ghost",onClick:ls,disabled:_,children:P}),e[35]=c.isPending,e[36]=P,e[37]=N):N=e[37];let j;e[38]!==w||e[39]!==N?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,N]}),e[38]=w,e[39]=N,e[40]=j):j=e[40];let g;return e[41]!==x||e[42]!==j||e[43]!==b?(g=n.jsxs(me,{children:[b,x,j]}),e[41]=x,e[42]=j,e[43]=b,e[44]=g):g=e[44],g}function ls(){window.location.href="/"}function cs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ds(t){const e=R.c(7);let s;e[0]!==t?(s=Ue.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let r;e[2]!==t?(r=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=r):r=e[3];let o;return e[4]!==s||e[5]!==r?(o={queryKey:s,queryFn:r,refetchOnWindowFocus:!1},e[4]=s,e[5]=r,e[6]=o):o=e[6],Nt(o)}function us({orgSlug:t}){const{data:e}=ds(t);if(e.status!=="member"){Wt()?.org===t&&Yt();const s=localStorage.getItem(Be.lastOrgSlug())===t;if(s&&localStorage.removeItem(Be.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(St,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(os,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ts,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(is,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(St,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Rt(t){const e=R.c(42),{ariaLabel:s,dismissLabel:r,eyebrow:o,title:a,description:i,icon:d,children:m,footerLeading:h,actions:v,onDismiss:c,tone:b}=t,p=b===void 0?"neutral":b,l=h||v;let f;e[0]!==p?(f=p==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=p,e[1]=f):f=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(_n,{size:14}),e[2]=u):u=e[2];let x;e[3]!==r||e[4]!==c?(x=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:u}),e[3]=r,e[4]=c,e[5]=x):x=e[5];const S=d&&"flex items-start gap-3",y=m&&"pb-3";let w;e[6]!==S||e[7]!==y?(w=ct("p-4 pr-11",S,y),e[6]=S,e[7]=y,e[8]=w):w=e[8];let _;e[9]!==d?(_=d&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:d}),e[9]=d,e[10]=_):_=e[10];let P;e[11]!==o?(P=o&&n.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=P):P=e[12];let N;e[13]!==a?(N=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=N):N=e[14];let j;e[15]!==i?(j=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let g;e[17]!==N||e[18]!==j||e[19]!==P?(g=n.jsxs("div",{children:[P,N,j]}),e[17]=N,e[18]=j,e[19]=P,e[20]=g):g=e[20];let T;e[21]!==m?(T=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=T):T=e[22];let k;e[23]!==g||e[24]!==T?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[g,T]}),e[23]=g,e[24]=T,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==w||e[28]!==_?(A=n.jsxs("div",{className:w,children:[_,k]}),e[26]=k,e[27]=w,e[28]=_,e[29]=A):A=e[29];let E;e[30]!==v||e[31]!==h||e[32]!==l||e[33]!==p?(E=l&&n.jsxs("div",{className:ct("flex items-center justify-between gap-3 px-4 py-2.5",p==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:v})]}),e[30]=v,e[31]=h,e[32]=l,e[33]=p,e[34]=E):E=e[34];let C;return e[35]!==s||e[36]!==A||e[37]!==E||e[38]!==f||e[39]!==x||e[40]!==p?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":p,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,E]}),e[35]=s,e[36]=A,e[37]=E,e[38]=f,e[39]=x,e[40]=p,e[41]=C):C=e[41],C}const ms={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function Mt(t){return`[data-tour="${ms[t]}"]`}const fs=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function gs(t){return fs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function hs(t,e){return gs(e).map(s=>({element:Mt(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const ps=Mt("switcher"),ys=30;function Ft(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function bs(t,e){return hs(t,e).filter(s=>typeof s.element=="string"&&Ft(s.element))}function xs(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(s,{driver:r})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>r.destroy()),s.footerButtons.insertBefore(o,s.footerButtons.firstChild)},onDestroyed:()=>{Je=!1},steps:e}}let Je=!1;async function Ss(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function ws(t,e){if(Je)return;Je=!0;let s=0;const r=()=>{if(!Ft(ps)&&s++<ys){requestAnimationFrame(r);return}const o=bs(t,e);if(o.length===0){Je=!1;return}Ss().then(a=>{a(xs(t,o)).drive()}).catch(()=>{Je=!1})};r()}function vs(t){return t!=="off"}function ai(t){if(!t.hasSource)return[];const e=["site-editor"];return vs(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function zt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function ri(t){return t.reportsOnly&&!t.onReportAgent&&zt(t.tabId)}const js=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:ht,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:te,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:lt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"native-app-linux-beta",date:"2026-08-20",eyebrow:"Now Available",title:"Studio for Linux is now in beta",bullets:[{icon:lt,title:"Native Linux desktop app",body:"Studio now ships as an AppImage for 64-bit x86 Linux, bringing the local desktop workflow to Linux."},{icon:ae,title:"Verified, no-root install",body:"The installer verifies the download, installs Studio to ~/.local/bin, and adds it to your application launcher without sudo."},{icon:re,title:"Beta today, broader support next",body:"We're validating more distributions and desktop environments. Arm builds are not available yet, and your feedback will shape general availability."}],cta:{label:"Install Studio",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases/tag/native-v4.242.0"},{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:re,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:te,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:Xt,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:lt,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:te,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ae,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:re,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:te,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:ae,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:re,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:ae,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:te,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:re,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:te,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:ae,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:re,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:te,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:ae,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:re,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:te,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:bt,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:ae,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:ht,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:re,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:ae,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:te,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:bt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:te,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:wn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],qt=js,ot="studio.release-feed.v1",ut=new Set;let de="",ue={},mt=!1;function ks(){if(mt)return de||"{}";try{return localStorage.getItem(ot)??"{}"}catch{return de||"{}"}}function Bt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=ks();return t!==de&&(de=t,ue=Bt(t)),ue}function Ts(t){ut.add(t);const e=s=>{if(!(s.key!==ot&&s.key!==null)){try{const r=localStorage.getItem(ot)??"{}",a={...Bt(r),...ue};ue=a,de=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{ut.delete(t),window.removeEventListener("storage",e)}}function Ns(t){ue=t,de=JSON.stringify(t);try{localStorage.setItem(ot,de),mt=!1}catch{mt=!0}ut.forEach(e=>e())}function _s(){const t=R.c(7),e=V.useSyncExternalStore(Ts,wt,wt);let s;t[0]!==e?(s=m=>!!e[m],t[0]=e,t[1]=s):s=t[1];const r=s,o=As;let a;t[2]!==e?(a=qt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let d;return t[4]!==r||t[5]!==i?(d={isSeen:r,markSeen:o,unseenCount:i},t[4]=r,t[5]=i,t[6]=d):d=t[6],d}function As(t){ue[t]||Ns({...ue,[t]:{seenAt:new Date().toISOString()}})}const Ps=720*60*60*1e3,Cs=10080*60*1e3;function Es(t){const[e,s,r]=t.split("-").map(Number);return!e||!s||!r?new Date(t).getTime():new Date(e,s-1,r).getTime()}function Os(t){const e=qt[0];if(!e)return null;const s=Es(e.date),r=t-s;return r<0||r>Ps?null:e}function Is(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Ls(t,e){const s=Is(t);return s===null?!1:e-s>=Cs}function $s(){const t=R.c(52),e=W(),s=Pn(),r=Zt(),o=Ot(),a=!!s,i=r===ie.home&&!s;let d;t[0]!==o||t[1]!==a?(d=a&&!!o&&zt(o),t[0]=o,t[1]=a,t[2]=d):d=t[2];const m=d,{data:h}=Ke.useSession(),{isSeen:v,markSeen:c}=_s(),[b,p]=V.useState(!1);let l,f,u;if(t[3]!==v||t[4]!==h?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{const O=Date.now();if(l=Os(O),!l){u=null;break e}if(!Ls(h?.user?.createdAt,O)){u=null;break e}f=v(l.id)}t[3]=v,t[4]=h?.user?.createdAt,t[5]=l,t[6]=f,t[7]=u}else l=t[5],f=t[6],u=t[7];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(f)return null;let x;t[8]!==l.id||t[9]!==a||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==e?(x=()=>{c(l.id),ws(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[8]=l.id,t[9]=a,t[10]=c,t[11]=i,t[12]=m,t[13]=e,t[14]=x):x=t[14];const S=x;let y;t[15]!==e?(y=e("announcements.release.ariaLabel"),t[15]=e,t[16]=y):y=t[16];let w;t[17]!==e?(w=e("announcements.release.dismiss"),t[17]=e,t[18]=w):w=t[18];const _=l.eyebrow,P=l.title;let N;t[19]!==l.id||t[20]!==c?(N=()=>c(l.id),t[19]=l.id,t[20]=c,t[21]=N):N=t[21];let j;t[22]!==l.id||t[23]!==l.learnMoreHref||t[24]!==c||t[25]!==e?(j=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>c(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[22]=l.id,t[23]=l.learnMoreHref,t[24]=c,t[25]=e,t[26]=j):j=t[26];let g;t[27]!==l.cta||t[28]!==l.id||t[29]!==c||t[30]!==S?(g=l.cta?"href"in l.cta?n.jsx(F,{asChild:!0,size:"sm",onClick:()=>c(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):l.cta.action==="start-tour"?n.jsx(F,{size:"sm",onClick:S,children:l.cta.label}):n.jsx(F,{size:"sm",onClick:()=>p(!0),children:l.cta.label}):null,t[27]=l.cta,t[28]=l.id,t[29]=c,t[30]=S,t[31]=g):g=t[31];let T;t[32]!==l.bullets?(T=l.bullets.map(Ds),t[32]=l.bullets,t[33]=T):T=t[33];let k;t[34]!==T?(k=n.jsx("ul",{className:"flex flex-col gap-3",children:T}),t[34]=T,t[35]=k):k=t[35];let A;t[36]!==l.id||t[37]!==c?(A=O=>{p(O),O||c(l.id)},t[36]=l.id,t[37]=c,t[38]=A):A=t[38];let E;t[39]!==b||t[40]!==A?(E=n.jsx(An,{open:b,onOpenChange:A}),t[39]=b,t[40]=A,t[41]=E):E=t[41];let C;return t[42]!==l.eyebrow||t[43]!==l.title||t[44]!==g||t[45]!==k||t[46]!==E||t[47]!==y||t[48]!==w||t[49]!==N||t[50]!==j?(C=n.jsxs(Rt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,onDismiss:N,footerLeading:j,actions:g,children:[k,E]}),t[42]=l.eyebrow,t[43]=l.title,t[44]=g,t[45]=k,t[46]=E,t[47]=y,t[48]=w,t[49]=N,t[50]=j,t[51]=C):C=t[51],C}function Ds(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Kt=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ce=Kt?"⌘":"Ctrl",J={commandPalette:{keys:[ce,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[ce,"["],description:"Back to previous"},focusChatInput:{keys:[ce,"L"],description:"Focus chat input"},saveAndFormat:{keys:[ce,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[ce,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[ce,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",ce,"S"],description:"New task"},toggleDaemon:{keys:[ce,"D"],description:"Toggle daemon logs"}},Rs=[{label:"General",shortcuts:[J.commandPalette,J.keyboardShortcuts,J.back,J.newTask,J.toggleDaemon]},{label:"Editor",shortcuts:[J.saveAndFormat]},{label:"Chat",shortcuts:[J.focusChatInput,J.togglePlanMode,J.sendMessage,J.newLine]},{label:"Questions",shortcuts:[J.selectOption]},{label:"Monitoring",shortcuts:[J.applyFilter]}];function vt(t){return Kt?t.metaKey:t.ctrlKey}function Ms(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}function Fs(t){const e=R.c(11),{open:s,onOpenChange:r}=t,o=W();let a;e[0]!==o?(a=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(It,{children:n.jsx(Lt,{children:a})}),e[2]=a,e[3]=i):i=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("div",{className:"flex flex-col gap-4",children:Rs.map(zs)}),e[4]=d):d=e[4];let m;e[5]!==i?(m=n.jsxs($t,{className:"sm:max-w-md",children:[i,d]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==s||e[9]!==m?(h=n.jsx(Dt,{open:s,onOpenChange:r,children:m}),e[7]=r,e[8]=s,e[9]=m,e[10]=h):h=e[10],h}function zs(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(qs)})]},t.label)}function qs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Bs)})]},t.description)}function Bs(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const jt=8;function Ks(t){const{org:e}=ft(),s=Bn({connectionId:At,orgId:e.id,orgSlug:e.slug}),{data:r}=He({queryKey:Ue.globalSearch(e.id,t,jt),enabled:!!s&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!s)return[];try{return(await s.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:jt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Hs(t){const e=R.c(195),{open:s,onOpenChange:r}=t,o=W(),a=_t(),{org:i}=ft(),{projects:d,hasProjects:m}=Cn(),[h,v]=V.useState(""),c=V.useDeferredValue(h),b=Ks(c);let p;e[0]!==r?(p=()=>{r(!1),v("")},e[0]=r,e[1]=p):p=e[1];const l=p;let f;e[2]!==l?(f=(z,Y)=>{dt("command_palette_used",{kind:Y}),z(),l()},e[2]=l,e[3]=f):f=e[3];const u=f;let x;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(x=z=>{if(z.type==="connection"){if(!z.slug){a({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}a({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:z.slug}});return}if(z.type==="task"){a({to:ie.tasks,params:{org:i.slug,taskKey:z.key??void 0}});return}const Y=Pt(i.id).id;en(a,tn({org:i.slug,agentId:z.virtual_mcp_id??Y,superAgentId:Y}),{search:()=>({thread:z.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let y;e[8]!==h?(y=[h],e[8]=h,e[9]=y):y=e[9];const w=y;let _,P,N,j,g,T,k,A,E,C,O,I,M;if(e[10]!==l||e[11]!==u||e[12]!==m||e[13]!==b||e[14]!==a||e[15]!==r||e[16]!==s||e[17]!==S||e[18]!==i.slug||e[19]!==d||e[20]!==w||e[21]!==o||e[22]!==h){const z=b.filter(Gs),Y=b.filter(Us);let ne;e[36]!==i.slug?(ne={org:i.slug},e[36]=i.slug,e[37]=ne):ne=e[37];const D=ne;let ee;e[38]!==o?(ee=o("sidebar.navDestinations.home"),e[38]=o,e[39]=ee):ee=e[39];let Q;e[40]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx(jn,{"aria-hidden":"true"}),e[40]=Q):Q=e[40];let K;e[41]!==D||e[42]!==ee?(K={key:"home",label:ee,icon:Q,to:ie.home,params:D},e[41]=D,e[42]=ee,e[43]=K):K=e[43];let X;e[44]!==o?(X=o("sidebar.navDestinations.reports"),e[44]=o,e[45]=X):X=e[45];let se;e[46]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(kn,{"aria-hidden":"true"}),e[46]=se):se=e[46];let H;e[47]!==D||e[48]!==X?(H={key:"reports",label:X,icon:se,to:ie.reports,params:D},e[47]=D,e[48]=X,e[49]=H):H=e[49];let U;e[50]!==o?(U=o("sidebar.navDestinations.tasks"),e[50]=o,e[51]=U):U=e[51];let oe;e[52]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(yt,{"aria-hidden":"true"}),e[52]=oe):oe=e[52];let Z;e[53]!==i.slug?(Z={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=Z):Z=e[54];let L;e[55]!==U||e[56]!==Z?(L={key:"tasks",label:U,icon:oe,to:ie.tasks,params:Z},e[55]=U,e[56]=Z,e[57]=L):L=e[57];let q;e[58]!==o?(q=o("sidebar.navDestinations.library"),e[58]=o,e[59]=q):q=e[59];let Qe;e[60]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(Ln,{"aria-hidden":"true"}),e[60]=Qe):Qe=e[60];let fe;e[61]!==D||e[62]!==q?(fe={key:"library",label:q,icon:Qe,to:ie.library,params:D},e[61]=D,e[62]=q,e[63]=fe):fe=e[63];let ge;e[64]!==o?(ge=o("sidebar.navDestinations.discover"),e[64]=o,e[65]=ge):ge=e[65];let Xe;e[66]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(Tn,{"aria-hidden":"true"}),e[66]=Xe):Xe=e[66];let he;e[67]!==D||e[68]!==ge?(he={key:"discover",label:ge,icon:Xe,to:ie.discover,params:D},e[67]=D,e[68]=ge,e[69]=he):he=e[69];let Ze;e[70]!==K||e[71]!==H||e[72]!==L||e[73]!==fe||e[74]!==he?(Ze=[K,H,L,fe,he],e[70]=K,e[71]=H,e[72]=L,e[73]=fe,e[74]=he,e[75]=Ze):Ze=e[75];const at=Ze;P=Dn,j=s,e[76]!==l||e[77]!==r?(g=$=>$?r(!0):l(),e[76]=l,e[77]=r,e[78]=g):g=e[78],e[79]!==o?(T=o("commandPalette.title"),e[79]=o,e[80]=T):T=e[80],e[81]!==o?(k=o("commandPalette.description"),e[81]=o,e[82]=k):k=e[82];let pe;e[83]!==o?(pe=o("commandPalette.placeholder"),e[83]=o,e[84]=pe):pe=e[84];let ye;e[85]!==o?(ye=o("commandPalette.placeholder"),e[85]=o,e[86]=ye):ye=e[86],e[87]!==pe||e[88]!==ye||e[89]!==h?(A=n.jsx(Rn,{placeholder:pe,"aria-label":ye,value:h,onValueChange:v}),e[87]=pe,e[88]=ye,e[89]=h,e[90]=A):A=e[90],_=Mn;let be;e[91]!==o?(be=o("commandPalette.empty"),e[91]=o,e[92]=be):be=e[92],e[93]!==be?(E=n.jsx(Fn,{children:be}),e[93]=be,e[94]=E):E=e[94];let xe;e[95]!==o?(xe=o("commandPalette.goTo"),e[95]=o,e[96]=xe):xe=e[96];let Se;e[97]!==at||e[98]!==u||e[99]!==a?(Se=at.map($=>n.jsxs(le,{onSelect:()=>u(()=>a({to:$.to,params:$.params}),"destination"),children:[$.icon,n.jsx("span",{children:$.label})]},$.key)),e[97]=at,e[98]=u,e[99]=a,e[100]=Se):Se=e[100],e[101]!==xe||e[102]!==Se?(C=n.jsx(Ge,{heading:xe,children:Se}),e[101]=xe,e[102]=Se,e[103]=C):C=e[103],e[104]!==u||e[105]!==m||e[106]!==a||e[107]!==i.slug||e[108]!==d||e[109]!==o?(O=m&&n.jsx(Ge,{heading:o("commandPalette.projects"),children:d.map($=>n.jsxs(le,{value:`project ${$.title}`,onSelect:()=>u(()=>a({to:ie.projects,params:{org:i.slug,agentId:$.id}}),"project"),children:[n.jsx(qn,{icon:$.icon,name:$.title,"aria-hidden":"true"}),n.jsx("span",{children:$.title})]},$.id))}),e[104]=u,e[105]=m,e[106]=a,e[107]=i.slug,e[108]=d,e[109]=o,e[110]=O):O=e[110];let we;e[111]!==o?(we=o("commandPalette.actions"),e[111]=o,e[112]=we):we=e[112];let ve;e[113]!==o?(ve=o("commandPalette.newProject"),e[113]=o,e[114]=ve):ve=e[114];let je;e[115]!==u||e[116]!==a||e[117]!==D?(je=()=>u(()=>a({to:ie.home,params:D}),"new_project"),e[115]=u,e[116]=a,e[117]=D,e[118]=je):je=e[118];let et;e[119]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(xt,{"aria-hidden":"true"}),e[119]=et):et=e[119];let ke;e[120]!==o?(ke=o("commandPalette.newProject"),e[120]=o,e[121]=ke):ke=e[121];let Te;e[122]!==ke?(Te=n.jsx("span",{children:ke}),e[122]=ke,e[123]=Te):Te=e[123];let Ne;e[124]!==ve||e[125]!==je||e[126]!==Te?(Ne=n.jsxs(le,{value:ve,onSelect:je,children:[et,Te]}),e[124]=ve,e[125]=je,e[126]=Te,e[127]=Ne):Ne=e[127];let _e;e[128]!==o?(_e=o("commandPalette.inviteTeammate"),e[128]=o,e[129]=_e):_e=e[129];let Ae;e[130]!==u||e[131]!==a||e[132]!==D?(Ae=()=>u(()=>a({to:"/$org/settings/members",params:D}),"invite"),e[130]=u,e[131]=a,e[132]=D,e[133]=Ae):Ae=e[133];let tt;e[134]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(Nn,{"aria-hidden":"true"}),e[134]=tt):tt=e[134];let Pe;e[135]!==o?(Pe=o("commandPalette.inviteTeammate"),e[135]=o,e[136]=Pe):Pe=e[136];let Ce;e[137]!==Pe?(Ce=n.jsx("span",{children:Pe}),e[137]=Pe,e[138]=Ce):Ce=e[138];let Ee;e[139]!==_e||e[140]!==Ae||e[141]!==Ce?(Ee=n.jsxs(le,{value:_e,onSelect:Ae,children:[tt,Ce]}),e[139]=_e,e[140]=Ae,e[141]=Ce,e[142]=Ee):Ee=e[142];let Oe;e[143]!==o?(Oe=o("commandPalette.addConnection"),e[143]=o,e[144]=Oe):Oe=e[144];let Ie;e[145]!==u||e[146]!==a||e[147]!==D?(Ie=()=>u(()=>a({to:"/$org/settings/connections",params:D,search:{tab:"all"}}),"add_connection"),e[145]=u,e[146]=a,e[147]=D,e[148]=Ie):Ie=e[148];let nt;e[149]===Symbol.for("react.memo_cache_sentinel")?(nt=n.jsx(xt,{"aria-hidden":"true"}),e[149]=nt):nt=e[149];let Le;e[150]!==o?(Le=o("commandPalette.addConnection"),e[150]=o,e[151]=Le):Le=e[151];let $e;e[152]!==Le?($e=n.jsx("span",{children:Le}),e[152]=Le,e[153]=$e):$e=e[153];let De;e[154]!==Oe||e[155]!==Ie||e[156]!==$e?(De=n.jsxs(le,{value:Oe,onSelect:Ie,children:[nt,$e]}),e[154]=Oe,e[155]=Ie,e[156]=$e,e[157]=De):De=e[157];let Re;e[158]!==o?(Re=o("commandPalette.settings"),e[158]=o,e[159]=Re):Re=e[159];let Me;e[160]!==u||e[161]!==a||e[162]!==D?(Me=()=>u(()=>a({to:"/$org/settings/general",params:D}),"settings"),e[160]=u,e[161]=a,e[162]=D,e[163]=Me):Me=e[163];let st;e[164]===Symbol.for("react.memo_cache_sentinel")?(st=n.jsx($n,{"aria-hidden":"true"}),e[164]=st):st=e[164];let Fe;e[165]!==o?(Fe=o("commandPalette.settings"),e[165]=o,e[166]=Fe):Fe=e[166];let ze;e[167]!==Fe?(ze=n.jsx("span",{children:Fe}),e[167]=Fe,e[168]=ze):ze=e[168];let qe;e[169]!==Re||e[170]!==Me||e[171]!==ze?(qe=n.jsxs(le,{value:Re,onSelect:Me,children:[st,ze]}),e[169]=Re,e[170]=Me,e[171]=ze,e[172]=qe):qe=e[172],e[173]!==we||e[174]!==Ne||e[175]!==Ee||e[176]!==De||e[177]!==qe?(I=n.jsxs(Ge,{heading:we,children:[Ne,Ee,De,qe]}),e[173]=we,e[174]=Ne,e[175]=Ee,e[176]=De,e[177]=qe,e[178]=I):I=e[178],M=z.length>0&&n.jsx(Ge,{heading:o("commandPalette.connections"),children:z.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>u(()=>S($),"connection"),children:[n.jsx(zn,{icon:$.icon,name:$.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:$.title})]},`connection:${$.id}`))}),N=Y.length>0&&n.jsx(Ge,{heading:o("commandPalette.results"),children:Y.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>u(()=>S($),$.type),children:[$.type==="thread"?n.jsx(vn,{"aria-hidden":"true"}):n.jsx(yt,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:$.title}),$.type==="task"&&$.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:$.key})]},`${$.type}:${$.id}`))}),e[10]=l,e[11]=u,e[12]=m,e[13]=b,e[14]=a,e[15]=r,e[16]=s,e[17]=S,e[18]=i.slug,e[19]=d,e[20]=w,e[21]=o,e[22]=h,e[23]=_,e[24]=P,e[25]=N,e[26]=j,e[27]=g,e[28]=T,e[29]=k,e[30]=A,e[31]=E,e[32]=C,e[33]=O,e[34]=I,e[35]=M}else _=e[23],P=e[24],N=e[25],j=e[26],g=e[27],T=e[28],k=e[29],A=e[30],E=e[31],C=e[32],O=e[33],I=e[34],M=e[35];let B;e[179]!==_||e[180]!==N||e[181]!==E||e[182]!==C||e[183]!==O||e[184]!==I||e[185]!==M?(B=n.jsxs(_,{children:[E,C,O,I,M,N]}),e[179]=_,e[180]=N,e[181]=E,e[182]=C,e[183]=O,e[184]=I,e[185]=M,e[186]=B):B=e[186];let G;return e[187]!==P||e[188]!==j||e[189]!==g||e[190]!==T||e[191]!==k||e[192]!==A||e[193]!==B?(G=n.jsxs(P,{open:j,onOpenChange:g,title:T,description:k,children:[A,B]}),e[187]=P,e[188]=j,e[189]=g,e[190]=T,e[191]=k,e[192]=A,e[193]=B,e[194]=G):G=e[194],G}function Us(t){return t.type!=="connection"}function Gs(t){return t.type==="connection"}const We=new Hn(!1);function Js(){We.set(!0)}function Vs(){We.set(!1)}function Ws(){const t=R.c(2),e=V.useSyncExternalStore(We.subscribe,We.get);let s;return t[0]!==e?(s=[e,We.set],t[0]=e,t[1]=s):s=t[1],s}const Ys=300*1e3,Qs=2;function Xs(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Zs(t,e){return t.count>=Qs&&t.version!==null&&t.version!==e}function eo(){const t=R.c(43),e=W(),s=Gn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:no},t[0]=r):r=t[0];const o=Ye(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:Ue.appVersionCheck(),queryFn:to,refetchInterval:Ys,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:d}=He(a),[m,h]=V.useState(0);let v;t[2]===Symbol.for("react.memo_cache_sentinel")?(v={version:null,count:0},t[2]=v):v=t[2];const[c,b]=V.useState(v);d!==m&&(h(d),b(B=>Xs(B,i,"4.373.2")));const[p,l]=V.useState(null),f=s;let u;t[3]!==s||t[4]!==o?(u=()=>window.location.reload(),t[3]=s,t[4]=o,t[5]=u):u=t[5];const x=u,S="announcements.version.refresh";if(!Zs(c,p))return null;let y;t[6]!==e?(y=e("announcements.version.ariaLabel"),t[6]=e,t[7]=y):y=t[7];let w;t[8]!==e?(w=e("announcements.version.dismiss"),t[8]=e,t[9]=w):w=t[9];let _;t[10]!==e?(_=e("announcements.version.eyebrow"),t[10]=e,t[11]=_):_=t[11];let P;t[12]!==e?(P=e("announcements.version.title"),t[12]=e,t[13]=P):P=t[13];const N="announcements.version.description";let j;t[14]!==e||t[15]!==N?(j=e(N),t[14]=e,t[15]=N,t[16]=j):j=t[16];let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(pt,{size:16}),t[17]=g):g=t[17];let T;t[18]!==c.version?(T=()=>l(c.version),t[18]=c.version,t[19]=T):T=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.373.2"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==S||t[23]!==e?(A=e(S),t[22]=S,t[23]=e,t[24]=A):A=t[24];const E=f;let C;t[25]!==E?(C=ct(E),t[25]=E,t[26]=C):C=t[26];let O;t[27]!==C?(O=n.jsx(pt,{size:14,className:C}),t[27]=C,t[28]=O):O=t[28];let I;t[29]!==x||t[30]!==f||t[31]!==A||t[32]!==O?(I=n.jsxs(F,{size:"sm",disabled:f,onClick:x,children:[A,O]}),t[29]=x,t[30]=f,t[31]=A,t[32]=O,t[33]=I):I=t[33];let M;return t[34]!==T||t[35]!==k||t[36]!==I||t[37]!==y||t[38]!==w||t[39]!==_||t[40]!==P||t[41]!==j?(M=n.jsx(Rt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,description:j,icon:g,tone:"system",onDismiss:T,footerLeading:k,actions:I}),t[34]=T,t[35]=k,t[36]=I,t[37]=y,t[38]=w,t[39]=_,t[40]=P,t[41]=j,t[42]=M):M=t[42],M}async function to(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function no(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function so(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const oo=Date.parse("2026-07-21T00:00:00Z"),kt=t=>so(Be.ptBrAnnouncementSeen(t));function io(){const t=R.c(35),e=W(),[s,r]=nn(),{data:o,isPending:a}=Ke.useSession(),i=o?.user,d=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<oo,v=sn()==="pt-BR",c=!a&&!!d&&h&&v&&s.language==="en"&&!kt(d).has(),[b,p]=V.useState(!1),[l,f]=V.useState(!1);!b&&!a&&(p(!0),c&&d&&(kt(d).mark(),r(ro),f(!0),dt("pt_br_auto_switch_shown")));let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=G=>{dt("pt_br_auto_switch_closed",{action:G}),f(!1)},t[0]=u):u=t[0];const x=u;let S;t[1]!==r?(S=()=>{r(ao),x("switch-back")},t[1]=r,t[2]=S):S=t[2];const y=S;let w;t[3]===Symbol.for("react.memo_cache_sentinel")?(w=G=>!G&&x("dismiss"),t[3]=w):w=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=_):_=t[4];let P;t[5]!==e?(P=e("announcements.ptBr.title"),t[5]=e,t[6]=P):P=t[6];let N;t[7]!==P?(N=n.jsx(Lt,{children:P}),t[7]=P,t[8]=N):N=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let g;t[11]!==j?(g=n.jsx(On,{children:j}),t[11]=j,t[12]=g):g=t[12];let T;t[13]!==N||t[14]!==g?(T=n.jsxs(It,{children:[N,g]}),t[13]=N,t[14]=g,t[15]=T):T=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let A;t[18]!==y||t[19]!==k?(A=n.jsx(F,{variant:"outline",onClick:y,children:k}),t[18]=y,t[19]=k,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>x("ok"),t[21]=E):E=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let O;t[24]!==C?(O=n.jsx(F,{onClick:E,children:C}),t[24]=C,t[25]=O):O=t[25];let I;t[26]!==A||t[27]!==O?(I=n.jsxs(In,{children:[A,O]}),t[26]=A,t[27]=O,t[28]=I):I=t[28];let M;t[29]!==I||t[30]!==T?(M=n.jsxs($t,{className:"sm:max-w-md",children:[_,T,I]}),t[29]=I,t[30]=T,t[31]=M):M=t[31];let B;return t[32]!==l||t[33]!==M?(B=n.jsx(Dt,{open:l,onOpenChange:w,children:M}),t[32]=l,t[33]=M,t[34]=B):B=t[34],B}function ao(t){return{...t,language:"en"}}function ro(t){return{...t,language:"pt-BR"}}function lo(t){const e=on(t);return typeof e=="string"?e:void 0}function co(){return lo("experiment-pipeline-check"),null}function uo(t){const e=R.c(1),{activeOrg:s}=t;if(!s)return null;an(s.id,{name:s.name??void 0,slug:s.slug??void 0}),rn();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(co,{}),e[0]=r):r=e[0],r}function mo(t){const{prev:e,virtualMcpId:s,decopilotId:r,savedLayout:o,opts:a,autosendValue:i}=t,d={mainpanel:void 0};s?d.virtualmcpid=s:e.virtualmcpid&&(d.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,v=(s??m)!==m;let c,b;return a?.panel?b=a.panel:o?(b=o.tab,o.sidepanel!==void 0&&(c=o.sidepanel),o.mainpanel!==void 0&&(d.mainpanel=o.mainpanel)):!v&&e.tabId&&!ln(e.tabId)&&(b=e.tabId),c!==void 0&&(d.sidepanel=c),a?.autosend&&(d.autosend=i),{tabId:b,search:d}}const Ht="studio:thread-layout:v4",fo=50;function Ut(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function go(t,e,s,r=fo){const o=t.filter(([a])=>a!==e);for(o.push([e,Ut(s)]);o.length>r;)o.shift();return o}function gt(){try{const t=sessionStorage.getItem(Ht);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Gt(t){try{sessionStorage.setItem(Ht,JSON.stringify(t))}catch{}}function ho(t,e){t&&Gt(go(gt(),t,e))}function po(t){if(!t)return null;const e=gt().find(([s])=>s===t);return e?Ut(e[1]):null}function li(t){if(!t)return;const e=gt(),s=e.filter(([r])=>r!==t);s.length!==e.length&&Gt(s)}function Jt(t){return{queryKey:Ue.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function ci(t){const e=R.c(10);let s;e[0]!==t?(s=Jt(t),e[0]=t,e[1]=s):s=e[1];const r=He(s);let o;e[2]!==r.data?.prompts?(o=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=o):o=e[3];let a;e[4]!==r.data?.tiles?(a=r.data?.tiles??[],e[4]=r.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==r.isLoading||e[7]!==o||e[8]!==a?(i={isLoading:r.isLoading,prompts:o,tiles:a},e[6]=r.isLoading,e[7]=o,e[8]=a,e[9]=i):i=e[9],i}function yo(t){const e=R.c(31),{orgSlug:s,orgName:r,domain:o}=t,a=W();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const d=i,m=bo;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Tt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let v;e[3]!==a?(v=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=v):v=e[4];let c;e[5]!==v?(c=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[5]=v,e[6]=c):c=e[6];let b;e[7]!==o||e[8]!==r||e[9]!==a?(b=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${a("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=r,e[9]=a,e[10]=b):b=e[10];let p;e[11]!==b?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[11]=b,e[12]=p):p=e[12];let l;e[13]!==c||e[14]!==p?(l=n.jsxs("div",{className:"space-y-2",children:[c,p]}),e[13]=c,e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let u;e[18]!==d||e[19]!==f?(u=n.jsx(F,{onClick:d,children:f}),e[18]=d,e[19]=f,e[20]=u):u=e[20];let x;e[21]!==a?(x=a("common.ssoRequiredScreen.goBack"),e[21]=a,e[22]=x):x=e[22];let S;e[23]!==x?(S=n.jsx(F,{variant:"ghost",onClick:m,children:x}),e[23]=x,e[24]=S):S=e[24];let y;e[25]!==S||e[26]!==u?(y=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[u,S]}),e[25]=S,e[26]=u,e[27]=y):y=e[27];let w;return e[28]!==y||e[29]!==l?(w=n.jsxs(me,{children:[h,l,y]}),e[28]=y,e[29]=l,e[30]=w):w=e[30],w}function bo(){window.location.href="/"}function xo(t){const e=R.c(27),{notice:s,orgSlug:r}=t,o=W();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(cn,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==s.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let d;e[3]!==s.message?(d=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=d):d=e[4];let m;e[5]!==i||e[6]!==d?(m=n.jsxs("div",{className:"space-y-2",children:[i,d]}),e[5]=i,e[6]=d,e[7]=m):m=e[7];let h;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(h=s.ctaUrl&&s.ctaLabel?n.jsx(F,{asChild:!0,children:n.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=h):h=e[10];const v=`/${encodeURIComponent(r)}/settings/infra-billing`;let c;e[11]!==o?(c=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=c):c=e[12];let b;e[13]!==v||e[14]!==c?(b=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:v,children:c})}),e[13]=v,e[14]=c,e[15]=b):b=e[15];let p;e[16]!==o?(p=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=p):p=e[17];let l;e[18]!==p?(l=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:p})}),e[18]=p,e[19]=l):l=e[19];let f;e[20]!==l||e[21]!==h||e[22]!==b?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,b,l]}),e[20]=l,e[21]=h,e[22]=b,e[23]=f):f=e[23];let u;return e[24]!==f||e[25]!==m?(u=n.jsxs(me,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=u):u=e[26],u}function So(t){const e=R.c(8);let s;e[0]!==t?(s=Ue.orgNotice(t??""),e[0]=t,e[1]=s):s=e[1];let r;e[2]!==t?(r=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=r):r=e[3];const o=!!t;let a;return e[4]!==s||e[5]!==r||e[6]!==o?(a={queryKey:s,queryFn:r,enabled:o,staleTime:6e4},e[4]=s,e[5]=r,e[6]=o,e[7]=a):a=e[7],He(a)}const wo="/settings/infra-billing";function vo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(wo)}function jo(t){const e=R.c(8),{org:s,children:r}=t,a=Zn(s.id,s.slug)?.enabled_plugins??null;let i;e[0]!==s.id||e[1]!==s.name||e[2]!==a?(i={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:a,ui:null},e[0]=s.id,e[1]=s.name,e[2]=a,e[3]=i):i=e[3];const d=i;let m;return e[4]!==r||e[5]!==s||e[6]!==d?(m=n.jsx(yn,{org:s,project:d,children:r}),e[4]=r,e[5]=s,e[6]=d,e[7]=m):m=e[7],m}function ko(){const t=_t(),e=Un(),{org:s}=ft(),r=dn({strict:!1}),o=Ot(),{openPanel:a,closePanel:i}=En(),d=Wn(),m=Yn(),h=Qn(),v=Xn(),c=(f,u=!0)=>t({to:".",search:f,replace:u}),b=()=>c(f=>({...f,sidepanel:!0})),p=(f,u,x)=>{const S=!!m&&m===f;m&&!S&&ho(m,{tab:o,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const y=S?null:po(f),w=Pt(s.id).id,_=mo({prev:{virtualmcpid:d,tabId:o},virtualMcpId:u,decopilotId:w,savedLayout:y,opts:x,autosendValue:Vn});return v(f,()=>_.search,{virtualMcpId:u,view:{tabId:_.tabId}})};return{openSidePanel:b,setTaskId:p,createNewTask:async(f,u,x)=>{const S=crypto.randomUUID(),y=f??h;try{await e?.create({id:S,virtual_mcp_id:y,...u?{branch:u}:{}})}catch{}p(S,y,x)},openTab:a,closeTab:i}}const To=new Set(["/$org/","/$org/home"]);function No(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:_o},t[0]=e):e=t[0],Ct(e)}function _o(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&To.has(e)}function Ao(){const t=R.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=un(e)?.params.org,[o,a]=V.useState(!1),[i,d]=Ws(),m=mn(),h=No(),v=r??"";let c;t[1]!==v?(c=Jt(v),t[1]=v,t[2]=c):c=t[2];const b=!!r&&h;let p;t[3]!==c||t[4]!==b?(p={...c,enabled:b},t[3]=c,t[4]=b,t[5]=p):p=t[5],He(p);const{data:l}=Ke.useSession(),f=l?.user?.id;let u;t[6]!==r||t[7]!==f?(u=r&&f?fn(f,r):null,t[6]=r,t[7]=f,t[8]=u):u=t[8];const x=u;let S,y;t[9]!==m?(S=()=>{const L=q=>{if(vt(q)&&q.code==="KeyK"){q.preventDefault(),Js();return}if(q.key==="?"&&!Ms(q.target)){q.preventDefault(),a(!0);return}vt(q)&&q.code==="BracketLeft"&&m.history.canGoBack()&&(q.preventDefault(),m.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},y=[m],t[9]=m,t[10]=S,t[11]=y):(S=t[10],y=t[11]),V.useEffect(S,y);let w;t[12]!==r?(w=Ue.activeOrganization(r),t[12]=r,t[13]=w):w=t[13];let _;t[14]!==r||t[15]!==f?(_=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:L}=await Ke.organization.getFullOrganization({query:{organizationSlug:r}}).finally(Co),q=rt(L);return L&&!q&&localStorage.setItem(Be.lastOrgSlug(),r),f&&L&&hn(f,r,L),L},t[14]=r,t[15]=f,t[16]=_):_=t[16];const P=x?x.data:void 0,N=x?.updatedAt;let j;t[17]!==P||t[18]!==N||t[19]!==w||t[20]!==_?(j={queryKey:w,queryFn:_,initialData:P,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=P,t[18]=N,t[19]=w,t[20]=_,t[21]=j):j=t[21];const{data:g}=Nt(j),T=g?.id,k=g?.slug,{data:A}=es(T,k),E=!!A?.ssoRequired&&!A.authenticated,{data:C}=So(k);let O;t[22]===Symbol.for("react.memo_cache_sentinel")?(O={select:Po},t[22]=O):O=t[22];const I=Ct(O),M=C?.severity==="block"&&!vo(I),B=T??"",G=k??"";let z;t[23]!==B||t[24]!==G?(z=Kn({connectionId:At,orgId:B,orgSlug:G}),t[23]=B,t[24]=G,t[25]=z):z=t[25];const Y=!!T&&!!k;let ne;if(t[26]!==z||t[27]!==Y?(ne={...z,enabled:Y},t[26]=z,t[27]=Y,t[28]=ne):ne=t[28],He(ne),(!g||rt(g)||E||M)&&Vs(),!g){let L;return t[29]!==r?(L=n.jsx(us,{orgSlug:r}),t[29]=r,t[30]=L):L=t[30],L}if(rt(g)){localStorage.getItem(Be.lastOrgSlug())===r&&localStorage.removeItem(Be.lastOrgSlug());let L;return t[31]!==g.name?(L=n.jsx(gn,{orgName:g.name}),t[31]=g.name,t[32]=L):L=t[32],L}if(M&&C){let L;return t[33]!==g.slug||t[34]!==C?(L=n.jsx(xo,{notice:C,orgSlug:g.slug}),t[33]=g.slug,t[34]=C,t[35]=L):L=t[35],L}if(E){let L;return t[36]!==g.id||t[37]!==g.name||t[38]!==g.slug||t[39]!==A.domain?(L=n.jsx(yo,{orgId:g.id,orgSlug:g.slug,orgName:g.name,domain:A.domain}),t[36]=g.id,t[37]=g.name,t[38]=g.slug,t[39]=A.domain,t[40]=L):L=t[40],L}const ee=g.logo??null;let Q;t[41]!==g||t[42]!==ee?(Q={...g,logo:ee},t[41]=g,t[42]=ee,t[43]=Q):Q=t[43];let K;t[44]!==g?(K=n.jsx(uo,{activeOrg:g}),t[44]=g,t[45]=K):K=t[45];let X;t[46]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(pn,{}),t[46]=X):X=t[46];let se;t[47]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx($s,{}),n.jsx(eo,{})]}),t[47]=se):se=t[47];let H;t[48]!==i||t[49]!==d?(H=i&&n.jsx(Hs,{open:i,onOpenChange:d}),t[48]=i,t[49]=d,t[50]=H):H=t[50];let U;t[51]!==o?(U=n.jsx(Fs,{open:o,onOpenChange:a}),t[51]=o,t[52]=U):U=t[52];let oe;t[53]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(io,{}),t[53]=oe):oe=t[53];let Z;return t[54]!==Q||t[55]!==K||t[56]!==H||t[57]!==U?(Z=n.jsxs(jo,{org:Q,children:[K,X,se,H,U,oe]}),t[54]=Q,t[55]=K,t[56]=H,t[57]=U,t[58]=Z):Z=t[58],Z}function Po(t){return t.location.pathname}function Co(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Eo(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Jn,{children:n.jsx(Ao,{})}),t[0]=e):e=t[0],e}const di=Object.freeze(Object.defineProperty({__proto__:null,default:Eo,usePanelActions:ko},Symbol.toStringTag,{value:"Module"}));export{J as K,ms as L,ko as a,vt as b,vs as c,ci as d,di as e,li as f,zt as i,Js as o,ai as r,ri as s,So as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as O,c as y,j as o,l as N,B as A,bd as P,aF as R}from"./index-EcuFIS2a.js";import{i as H}from"./LayoutLeft-BfySK4h8.js";import{u as V}from"./use-mobile-BZ15DgEB.js";import{b as W,c as F,S as L,d as q,a as G}from"./sheet-DWSThpSZ.js";import{b as $,T as z,a as B,c as E}from"./tooltip-nr5oS_bm.js";const J="15rem",K="18rem",Q="4.5rem",k=O.createContext(null);function D(){const l=O.useContext(k);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function ie(l){const e=y.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:i}=l,d=s===void 0?!1:s,r=V(),[n,x]=O.useState(d),[f,g]=O.useState(!1),c=a!==void 0,b=c?a:n;let S;e[0]!==c||e[1]!==i?(S=C=>{c||x(C),i?.(C)},e[0]=c,e[1]=i,e[2]=S):S=e[2];const u=S;let w;e[3]!==r||e[4]!==b||e[5]!==u?(w=()=>{r?g(U):u(!b)},e[3]=r,e[4]=b,e[5]=u,e[6]=w):w=e[6];const j=w,m=b?"expanded":"collapsed";let p;e[7]!==r||e[8]!==b||e[9]!==f||e[10]!==u||e[11]!==m||e[12]!==j?(p={state:m,open:b,setOpen:u,isMobile:r,openMobile:f,setOpenMobile:g,toggleSidebar:j},e[7]=r,e[8]=b,e[9]=f,e[10]=u,e[11]=m,e[12]=j,e[13]=p):p=e[13];const v=p;let h;e[14]!==t?(h=o.jsx($,{delayDuration:0,children:t}),e[14]=t,e[15]=h):h=e[15];let _;return e[16]!==v||e[17]!==h?(_=o.jsx(k.Provider,{value:v,children:h}),e[16]=v,e[17]=h,e[18]=_):_=e[18],_}function U(l){return!l}function le(l){const e=y.c(14);let t,s,a,i;e[0]!==l?({className:s,style:i,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i):(t=e[1],s=e[2],a=e[3],i=e[4]);let d;e[5]!==i?(d={"--sidebar-width":J,"--sidebar-width-icon":Q,...i},e[5]=i,e[6]=d):d=e[6];const r=d;let n;e[7]!==s?(n=N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=n):n=e[8];let x;return e[9]!==t||e[10]!==a||e[11]!==r||e[12]!==n?(x=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:n,...a,children:t}),e[9]=t,e[10]=a,e[11]=r,e[12]=n,e[13]=x):x=e[13],x}function re(l){const e=y.c(36);let t,s,a,i,d;e[0]!==l?({side:i,variant:d,className:s,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5]);const r=i===void 0?"left":i,n=d===void 0?"sidebar":d,{isMobile:x,state:f,openMobile:g,setOpenMobile:c}=D();if(x){let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_={"--sidebar-width":K},e[6]=_):_=e[6];let C;e[7]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsxs(F,{className:"sr-only",children:[o.jsx(L,{children:"Sidebar"}),o.jsx(q,{children:"Displays the mobile sidebar."})]}),e[7]=C):C=e[7];let M;e[8]!==t?(M=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=M):M=e[9];let I;e[10]!==r||e[11]!==M?(I=o.jsxs(G,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:_,side:r,children:[C,M]}),e[10]=r,e[11]=M,e[12]=I):I=e[12];let T;return e[13]!==g||e[14]!==a||e[15]!==c||e[16]!==I?(T=o.jsx(W,{open:g,onOpenChange:c,...a,children:I}),e[13]=g,e[14]=a,e[15]=c,e[16]=I,e[17]=T):T=e[17],T}const b=f==="expanded",S=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let u;e[18]!==S?(u=N("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",S),e[18]=S,e[19]=u):u=e[19];const w=b?void 0:"icon",j=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let m;e[20]!==s||e[21]!==j?(m=N("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",j,s),e[20]=s,e[21]=j,e[22]=m):m=e[22];let p;e[23]!==t?(p=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=p):p=e[24];let v;e[25]!==a||e[26]!==m||e[27]!==p?(v=o.jsx("div",{"data-slot":"sidebar-container",className:m,...a,children:p}),e[25]=a,e[26]=m,e[27]=p,e[28]=v):v=e[28];let h;return e[29]!==r||e[30]!==f||e[31]!==u||e[32]!==w||e[33]!==v||e[34]!==n?(h=o.jsx("div",{className:u,"data-state":f,"data-collapsible":w,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:v}),e[29]=r,e[30]=f,e[31]=u,e[32]=w,e[33]=v,e[34]=n,e[35]=h):h=e[35],h}function ne(l){const e=y.c(18);let t,s,a;e[0]!==l?({className:t,onClick:s,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:i}=D();let d;e[4]!==t?(d=N("size-7",t),e[4]=t,e[5]=d):d=e[5];let r;e[6]!==s||e[7]!==i?(r=b=>{s?.(b),i()},e[6]=s,e[7]=i,e[8]=r):r=e[8];let n,x;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(H,{}),x=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=n,e[10]=x):(n=e[9],x=e[10]);let f;e[11]!==a||e[12]!==d||e[13]!==r?(f=o.jsx(z,{asChild:!0,children:o.jsxs(A,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:r,...a,children:[n,x]})}),e[11]=a,e[12]=d,e[13]=r,e[14]=f):f=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsxs(B,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(X)})]}),e[15]=g):g=e[15];let c;return e[16]!==f?(c=o.jsx($,{delayDuration:300,children:o.jsxs(E,{children:[f,g]})}),e[16]=f,e[17]=c):c=e[17],c}function X(l){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:l},l)}function oe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function de(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ce(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ue(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function fe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}const Y=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 classic:[&_svg]:opacity-60 classic:hover:[&_svg]:opacity-100 compact:[&_svg:not([class*='text-'])]:text-muted-foreground compact:hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 classic:group-data-[state=collapsed]/sidebar:w-full! classic:group-data-[state=collapsed]/sidebar:aspect-square! classic:group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! classic:group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm compact:group-data-[state=collapsed]/sidebar:size-8! compact:group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function pe(l){const e=y.c(28);let t,s,a,i,d,r,n;e[0]!==l?({asChild:a,isActive:i,variant:d,size:r,tooltip:n,className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d,e[6]=r,e[7]=n):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5],r=e[6],n=e[7]);const x=a===void 0?!1:a,f=i===void 0?!1:i,g=d===void 0?"default":d,c=r===void 0?"default":r,b=x?P:"button",{isMobile:S}=D();let u;e[8]!==t||e[9]!==c||e[10]!==g?(u=N(Y({variant:g,size:c}),t),e[8]=t,e[9]=c,e[10]=g,e[11]=u):u=e[11];let w;e[12]!==b||e[13]!==f||e[14]!==s||e[15]!==c||e[16]!==u?(w=o.jsx(b,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":f,className:u,...s}),e[12]=b,e[13]=f,e[14]=s,e[15]=c,e[16]=u,e[17]=w):w=e[17];const j=w;if(!n)return j;if(typeof n=="string"){let h;e[18]!==n?(h={children:n},e[18]=n,e[19]=h):h=e[19],n=h}let m;e[20]!==j?(m=o.jsx(z,{asChild:!0,children:j}),e[20]=j,e[21]=m):m=e[21];let p;e[22]!==S||e[23]!==n?(p=o.jsx(B,{side:"right",align:"center",hidden:S,...n}),e[22]=S,e[23]=n,e[24]=p):p=e[24];let v;return e[25]!==m||e[26]!==p?(v=o.jsxs(E,{children:[m,p]}),e[25]=m,e[26]=p,e[27]=v):v=e[27],v}export{ie as S,le as a,oe as b,pe as c,ue as d,fe as e,de as f,ce as g,re as h,ne as i,D as u};
|
|
1
|
+
import{r as O,c as y,j as o,l as N,B as A,bd as P,aF as R}from"./index-CC7J7MsT.js";import{i as H}from"./LayoutLeft-Cr5_A1QG.js";import{u as V}from"./use-mobile-X_9uHXB5.js";import{b as W,c as F,S as L,d as q,a as G}from"./sheet-B5ncClVO.js";import{b as $,T as z,a as B,c as E}from"./tooltip-DSCGYdw1.js";const J="15rem",K="18rem",Q="4.5rem",k=O.createContext(null);function D(){const l=O.useContext(k);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function ie(l){const e=y.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:i}=l,d=s===void 0?!1:s,r=V(),[n,x]=O.useState(d),[f,g]=O.useState(!1),c=a!==void 0,b=c?a:n;let S;e[0]!==c||e[1]!==i?(S=C=>{c||x(C),i?.(C)},e[0]=c,e[1]=i,e[2]=S):S=e[2];const u=S;let w;e[3]!==r||e[4]!==b||e[5]!==u?(w=()=>{r?g(U):u(!b)},e[3]=r,e[4]=b,e[5]=u,e[6]=w):w=e[6];const j=w,m=b?"expanded":"collapsed";let p;e[7]!==r||e[8]!==b||e[9]!==f||e[10]!==u||e[11]!==m||e[12]!==j?(p={state:m,open:b,setOpen:u,isMobile:r,openMobile:f,setOpenMobile:g,toggleSidebar:j},e[7]=r,e[8]=b,e[9]=f,e[10]=u,e[11]=m,e[12]=j,e[13]=p):p=e[13];const v=p;let h;e[14]!==t?(h=o.jsx($,{delayDuration:0,children:t}),e[14]=t,e[15]=h):h=e[15];let _;return e[16]!==v||e[17]!==h?(_=o.jsx(k.Provider,{value:v,children:h}),e[16]=v,e[17]=h,e[18]=_):_=e[18],_}function U(l){return!l}function le(l){const e=y.c(14);let t,s,a,i;e[0]!==l?({className:s,style:i,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i):(t=e[1],s=e[2],a=e[3],i=e[4]);let d;e[5]!==i?(d={"--sidebar-width":J,"--sidebar-width-icon":Q,...i},e[5]=i,e[6]=d):d=e[6];const r=d;let n;e[7]!==s?(n=N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=n):n=e[8];let x;return e[9]!==t||e[10]!==a||e[11]!==r||e[12]!==n?(x=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:n,...a,children:t}),e[9]=t,e[10]=a,e[11]=r,e[12]=n,e[13]=x):x=e[13],x}function re(l){const e=y.c(36);let t,s,a,i,d;e[0]!==l?({side:i,variant:d,className:s,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5]);const r=i===void 0?"left":i,n=d===void 0?"sidebar":d,{isMobile:x,state:f,openMobile:g,setOpenMobile:c}=D();if(x){let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_={"--sidebar-width":K},e[6]=_):_=e[6];let C;e[7]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsxs(F,{className:"sr-only",children:[o.jsx(L,{children:"Sidebar"}),o.jsx(q,{children:"Displays the mobile sidebar."})]}),e[7]=C):C=e[7];let M;e[8]!==t?(M=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=M):M=e[9];let I;e[10]!==r||e[11]!==M?(I=o.jsxs(G,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:_,side:r,children:[C,M]}),e[10]=r,e[11]=M,e[12]=I):I=e[12];let T;return e[13]!==g||e[14]!==a||e[15]!==c||e[16]!==I?(T=o.jsx(W,{open:g,onOpenChange:c,...a,children:I}),e[13]=g,e[14]=a,e[15]=c,e[16]=I,e[17]=T):T=e[17],T}const b=f==="expanded",S=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let u;e[18]!==S?(u=N("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",S),e[18]=S,e[19]=u):u=e[19];const w=b?void 0:"icon",j=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let m;e[20]!==s||e[21]!==j?(m=N("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",j,s),e[20]=s,e[21]=j,e[22]=m):m=e[22];let p;e[23]!==t?(p=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=p):p=e[24];let v;e[25]!==a||e[26]!==m||e[27]!==p?(v=o.jsx("div",{"data-slot":"sidebar-container",className:m,...a,children:p}),e[25]=a,e[26]=m,e[27]=p,e[28]=v):v=e[28];let h;return e[29]!==r||e[30]!==f||e[31]!==u||e[32]!==w||e[33]!==v||e[34]!==n?(h=o.jsx("div",{className:u,"data-state":f,"data-collapsible":w,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:v}),e[29]=r,e[30]=f,e[31]=u,e[32]=w,e[33]=v,e[34]=n,e[35]=h):h=e[35],h}function ne(l){const e=y.c(18);let t,s,a;e[0]!==l?({className:t,onClick:s,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:i}=D();let d;e[4]!==t?(d=N("size-7",t),e[4]=t,e[5]=d):d=e[5];let r;e[6]!==s||e[7]!==i?(r=b=>{s?.(b),i()},e[6]=s,e[7]=i,e[8]=r):r=e[8];let n,x;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(H,{}),x=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=n,e[10]=x):(n=e[9],x=e[10]);let f;e[11]!==a||e[12]!==d||e[13]!==r?(f=o.jsx(z,{asChild:!0,children:o.jsxs(A,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:r,...a,children:[n,x]})}),e[11]=a,e[12]=d,e[13]=r,e[14]=f):f=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsxs(B,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(X)})]}),e[15]=g):g=e[15];let c;return e[16]!==f?(c=o.jsx($,{delayDuration:300,children:o.jsxs(E,{children:[f,g]})}),e[16]=f,e[17]=c):c=e[17],c}function X(l){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:l},l)}function oe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function de(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ce(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ue(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function fe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}const Y=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 classic:[&_svg]:opacity-60 classic:hover:[&_svg]:opacity-100 compact:[&_svg:not([class*='text-'])]:text-muted-foreground compact:hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 classic:group-data-[state=collapsed]/sidebar:w-full! classic:group-data-[state=collapsed]/sidebar:aspect-square! classic:group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! classic:group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm compact:group-data-[state=collapsed]/sidebar:size-8! compact:group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function pe(l){const e=y.c(28);let t,s,a,i,d,r,n;e[0]!==l?({asChild:a,isActive:i,variant:d,size:r,tooltip:n,className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d,e[6]=r,e[7]=n):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5],r=e[6],n=e[7]);const x=a===void 0?!1:a,f=i===void 0?!1:i,g=d===void 0?"default":d,c=r===void 0?"default":r,b=x?P:"button",{isMobile:S}=D();let u;e[8]!==t||e[9]!==c||e[10]!==g?(u=N(Y({variant:g,size:c}),t),e[8]=t,e[9]=c,e[10]=g,e[11]=u):u=e[11];let w;e[12]!==b||e[13]!==f||e[14]!==s||e[15]!==c||e[16]!==u?(w=o.jsx(b,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":f,className:u,...s}),e[12]=b,e[13]=f,e[14]=s,e[15]=c,e[16]=u,e[17]=w):w=e[17];const j=w;if(!n)return j;if(typeof n=="string"){let h;e[18]!==n?(h={children:n},e[18]=n,e[19]=h):h=e[19],n=h}let m;e[20]!==j?(m=o.jsx(z,{asChild:!0,children:j}),e[20]=j,e[21]=m):m=e[21];let p;e[22]!==S||e[23]!==n?(p=o.jsx(B,{side:"right",align:"center",hidden:S,...n}),e[22]=S,e[23]=n,e[24]=p):p=e[24];let v;return e[25]!==m||e[26]!==p?(v=o.jsxs(E,{children:[m,p]}),e[25]=m,e[26]=p,e[27]=v):v=e[27],v}export{ie as S,le as a,oe as b,pe as c,ue as d,fe as e,de as f,ce as g,re as h,ne as i,D as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as E,j as s,r as K,aP as u,l as M,B as T}from"./index-
|
|
1
|
+
import{c as E,j as s,r as K,aP as u,l as M,B as T}from"./index-CC7J7MsT.js";import{b as R,D as _,d as q,i as A}from"./dialog-BKhaq-Xf.js";import{i as $}from"./X-DTaqHNcB.js";import{i as G}from"./Zap-D3d1wpzw.js";import{M as H}from"./markdown-tOSThun8.js";import{F as J}from"./file-preview-BFDgPeRr.js";import{F as Q}from"./file-type-icon-Co9lETmZ.js";import{i as V,c as W,n as X}from"./use-org-fs-C4AEj3YR.js";import{p as Y,b as c}from"./location-oTTXFrSF.js";import{p as Z}from"./skill-md-ChfVs4uF.js";function ee(n){const e=E.c(18),{skillPath:m,onClose:a,variant:t}=n,i=Y(m),{volume:r,dirPath:o}=i,F=V(),U=F(r??"",`${o}/SKILL.md`),d=W(U),D=X(r??"",o);let g;e[0]!==o?(g=c(o),e[0]=o,e[1]=g):g=e[1];const B=g;let j;e[2]!==d.data?(j=d.data?Z(d.data):null,e[2]=d.data,e[3]=j):j=e[3];const b=j,v=te;let N;e[4]===Symbol.for("react.memo_cache_sentinel")?(N=(l,h)=>v(l.path)?-1:v(h.path)?1:c(l.path).localeCompare(c(h.path)),e[4]=N):N=e[4];const L=(D.data??[]).filter(se).sort(N),[P,I]=K.useState(null),x=P===null?null:L.find(l=>l.path===P)??null,k=b?.name??B;let w;e[5]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:s.jsx(G,{size:18})}),e[5]=w):w=e[5];let f;e[6]!==k||e[7]!==t?(f=t==="dialog"?s.jsx(q,{className:"flex-1 truncate text-base font-medium text-foreground",children:k}):s.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:k}),e[6]=k,e[7]=t,e[8]=f):f=e[8];let p;e[9]!==a||e[10]!==t?(p=t==="dialog"?s.jsx(A,{asChild:!0,children:s.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:s.jsx($,{size:16})})}):s.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:a,children:s.jsx($,{size:16})}),e[9]=a,e[10]=t,e[11]=p):p=e[11];let y;e[12]!==f||e[13]!==p?(y=s.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[w,f,p]}),e[12]=f,e[13]=p,e[14]=y):y=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=C):C=e[15];const O="relative flex min-w-0 flex-1 flex-col overflow-y-auto",z=x?s.jsx(J,{file:{key:x.path,filename:c(x.path),size:x.size,downloadUrl:F(r??"",x.path)}}):d.isPending?s.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[s.jsx(u,{className:"h-4 w-1/3"}),s.jsx(u,{className:"h-3 w-full"}),s.jsx(u,{className:"h-3 w-5/6"}),s.jsx(u,{className:"h-3 w-2/3"})]}):d.isError||!b?s.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),s.jsx("p",{className:"text-base text-muted-foreground",children:b.description??"Claude Code skill"})]}),s.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:s.jsx(H,{id:`skill-preview-${m}`,text:b.body})})]});let S;return e[16]!==z?(S=s.jsx("div",{className:O,children:z}),e[16]=z,e[17]=S):S=e[17],s.jsxs(s.Fragment,{children:[y,s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[C,D.isPending?s.jsx(u,{className:"mx-2 h-4 w-24"}):L.map(l=>{const h=v(l.path)?x===null:P===l.path;return s.jsxs("button",{type:"button",onClick:()=>I(v(l.path)?null:l.path),className:M("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",h?"bg-background shadow-sm":"hover:bg-muted/60"),children:[s.jsx(Q,{filename:c(l.path),className:"h-6 w-5 shrink-0"}),s.jsx("span",{className:M("truncate text-sm",h?"text-foreground":"text-muted-foreground"),children:c(l.path)})]},l.path)})]}),S]})]})}function se(n){return n.kind==="file"}function te(n){return c(n)==="SKILL.md"}function fe(n){const e=E.c(8),{skillPath:m,onClose:a}=n;let t;e[0]!==a?(t=o=>{o||a()},e[0]=a,e[1]=t):t=e[1];let i;e[2]!==a||e[3]!==m?(i=s.jsx(R,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:s.jsx(ee,{skillPath:m,onClose:a,variant:"dialog"})}),e[2]=a,e[3]=m,e[4]=i):i=e[4];let r;return e[5]!==t||e[6]!==i?(r=s.jsx(_,{open:!0,onOpenChange:t,children:i}),e[5]=t,e[6]=i,e[7]=r):r=e[7],r}export{fe as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Z as ae,b as te,a0 as se,o as ce,r as T,j as t,B as G,n as R,aP as me,T as de,t as D,aj as pe,c as ie,l as ue,I as ge,F as fe,H as he,G as xe,K as Q,eL as je}from"./index-EcuFIS2a.js";import{i as ke}from"./DotsVertical-CE2o6L6N.js";import{a as ve}from"./Package-CvzEol5_.js";import{s as ye}from"./Trash01-DtE0n00a.js";import{i as Se}from"./Upload01-Ba-RLxE1.js";import{i as le}from"./Zap-DZAIluO6.js";import{S as be}from"./search-input-BHVk6m6A.js";import{f as we,e as Ce,b as De,A as Ne,a as Pe,d as Ee,c as Ae,g as Te}from"./alert-dialog-9n2p5SCQ.js";import{E as Z}from"./empty-state-Y08kvU5o.js";import{C as Me}from"./collection-tabs-aKKPIP9M.js";import{F as Ie}from"./folder-icon-DVG7PK8X.js";import{p as Oe,h as ze,q as Fe}from"./use-org-fs-Bf6n51Xm.js";import{H as J,d as $e}from"./location-oTTXFrSF.js";import{S as Le}from"./skill-preview-QgrtYNqp.js";import{p as Re}from"./skill-md-ChfVs4uF.js";import"./SearchMd-Bb5gjLcX.js";import"./badge-C5M6nZd4.js";import"./Eye-Dq6Vw6FI.js";import"./dialog-AoC07APJ.js";import"./X-BtMi8Qau.js";import"./markdown-VKlC4_bJ.js";import"./Copy01-BgwuTJFm.js";import"./Download01-DNhEQzg0.js";import"./ZoomOut-DUFJq3-K.js";import"./org-file-open-context-D26BTBiX.js";import"./use-mobile-BZ15DgEB.js";import"./use-panel-navigate-IItrbgmN.js";import"./thread-route-CHwqHPf_.js";import"./use-project-scope-CCxyXvEU.js";import"./use-virtual-mcp-Ji9vcgUj.js";import"./use-mcp-client-B_gcvvCy.js";import"./auth-BBW3DF0r.js";import"./github-repo-BknN0SVI.js";import"./file-preview-iaqpqUYi.js";import"./utils-y2q6u6PK.js";import"./Image01-QB6twEDu.js";import"./editor-oL1B7LVJ.js";import"./file-type-icon-lZW2ows7.js";const V=200,_e=new Set(["node_modules","__pycache__"]);function U(r){const[,...e]=r.webkitRelativePath.split("/");return e.length>0?e.join("/"):r.name}function Be(r){return U(r).split("/").every(e=>!e.startsWith(".")&&!_e.has(e))}function Ke(r){return r.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function He(r,e){const i=new Map;for(const l of r){const o=U(l).split("/");o.pop();const c=["skills",e,...o].join("/");i.set(c,[...i.get(c)??[],l])}return i}async function qe(r,e){const l=(await Promise.allSettled([...r].map(([o,c])=>e({dir:o,files:c})))).find(o=>o.status==="rejected");if(l)throw l.reason}function Qe(r,e){const i=Re(e),l=`skills/${r}`;return{id:`home/${l}`,name:i.name??r,description:i.description,source:"home",volume:J,path:l,sandboxPath:`org/${J}/${l}`}}const _="*";function B(r){return r.volume==="home"}function re(r,e){const i=r.indexOf(":");return i===-1?{label:e,glyph:le}:{label:r.slice(i+1),glyph:r.startsWith("repo:")?pe:ve}}function Ge(r){const e=ie.c(48),{entry:i,pending:l,onOpen:o,onDelete:c}=r,a=te(),{org:S}=se();let m;e[0]!==i.source||e[1]!==S.name?(m=re(i.source,S.name),e[0]=i.source,e[1]=S.name,e[2]=m):m=e[2];const{label:M,glyph:I}=m;let O;e[3]!==i?(O=B(i),e[3]=i,e[4]=O):O=e[4];const F=O,z=l?"opacity-60":"hover:bg-muted/50";let p;e[5]!==z?(p=ue("relative transition-colors group overflow-hidden flex flex-col h-full",z),e[5]=z,e[6]=p):p=e[6];let f;e[7]!==i.name||e[8]!==o||e[9]!==l?(f=!l&&t.jsx("button",{type:"button",onClick:o,className:"absolute inset-0 z-0","aria-label":i.name}),e[7]=i.name,e[8]=o,e[9]=l,e[10]=f):f=e[10];const b=F?"default":"system",N=!F;let w;e[11]!==I||e[12]!==b||e[13]!==N?(w=t.jsx(Ie,{glyph:I,tone:b,readOnly:N,className:"size-8 shrink-0"}),e[11]=I,e[12]=b,e[13]=N,e[14]=w):w=e[14];let h;e[15]!==c||e[16]!==a?(h=c&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(ge,{children:[t.jsx(fe,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ke,{size:16})})}),t.jsx(he,{align:"end",children:t.jsxs(xe,{variant:"destructive",onClick:K=>{K.stopPropagation(),c()},children:[t.jsx(ye,{size:16}),a("settings.skills.deleteButton")]})})]})}),e[15]=c,e[16]=a,e[17]=h):h=e[17];let x;e[18]!==w||e[19]!==h?(x=t.jsxs("div",{className:"flex items-start justify-between",children:[w,h]}),e[18]=w,e[19]=h,e[20]=x):x=e[20];let j;e[21]!==i.name?(j=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:i.name}),e[21]=i.name,e[22]=j):j=e[22];let C;e[23]!==i.description||e[24]!==a?(C=i.description||a("settings.skills.noDescription"),e[23]=i.description,e[24]=a,e[25]=C):C=e[25];let k;e[26]!==C?(k=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:C}),e[26]=C,e[27]=k):k=e[27];let d;e[28]!==j||e[29]!==k?(d=t.jsxs("div",{className:"flex flex-col gap-1",children:[j,k]}),e[28]=j,e[29]=k,e[30]=d):d=e[30];let v;e[31]!==x||e[32]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[x,d]}),e[31]=x,e[32]=d,e[33]=v):v=e[33];let u;e[34]!==M||e[35]!==l||e[36]!==a?(u=l?a("settings.skills.importing"):M,e[34]=M,e[35]=l,e[36]=a,e[37]=u):u=e[37];let y;e[38]!==u?(y=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:u})})}),e[38]=u,e[39]=y):y=e[39];let g;e[40]!==v||e[41]!==y?(g=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[v,y]}),e[40]=v,e[41]=y,e[42]=g):g=e[42];let P;return e[43]!==l||e[44]!==g||e[45]!==p||e[46]!==f?(P=t.jsxs(je,{"aria-busy":l,className:p,children:[f,g]}),e[43]=l,e[44]=g,e[45]=p,e[46]=f,e[47]=P):P=e[47],P}function ee(r){const e=ie.c(2),{children:i}=r;let l;return e[0]!==i?(l=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:i}),e[0]=i,e[1]=l):l=e[1],l}function Tt(){const r=ae(),e=te(),{org:i}=se(),l=Oe(),{remove:o,upload:c}=ze("home"),a=ce(),S=T.useRef(null),[m,M]=T.useState(""),[I,O]=T.useState(_),[F,z]=T.useState(!1),[p,f]=T.useState(null),[b,N]=T.useState(null),[w,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:Q.slashSkills(i.id)}),a.invalidateQueries({queryKey:Q.orgFsSkills(i.id)})},j=s=>a.setQueryData(Q.slashSkills(i.id),n=>s(n??[]));async function C(s){const n=[...s??[]];if(S.current&&(S.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){D.error(e("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",L=n.filter(Be),W=L.find(A=>U(A)==="SKILL.md");if(!W){D.error(e("settings.skills.importMissingSkillMd"));return}if(L.length>V){D.error(e("settings.skills.importTooManyFiles",{count:String(L.length),max:String(V)}));return}const $=Ke(q),X=`skills/${$}`;let Y=!1;z(!0);try{if(await Fe(i.slug,"home",X)){D.error(e("settings.skills.importSlugTaken",{slug:$}));return}Y=!0;const A=Qe($,await W.text());j(oe=>[A,...oe]),h(A.id),await qe(He(L,$),c.mutateAsync),D.success(e("settings.skills.importSuccess",{name:$}))}catch(A){Y&&await o.mutateAsync(X).catch(()=>{}),D.error(A instanceof Error?A.message:e("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=m.toLowerCase(),d=(l.data??[]).filter(s=>s.name.toLowerCase().includes(k)||(s.description??"").toLowerCase().includes(k)).sort((s,n)=>Number(B(n))-Number(B(s))||s.name.localeCompare(n.name)),v=new Set((l.data??[]).map(s=>s.source)),u=new Map;for(const s of d)u.set(s.source,(u.get(s.source)??0)+1);const y=[{id:_,label:e("settings.skills.filterAll"),count:d.length},...[...v].map(s=>({id:s,label:re(s,i.name).label,count:u.get(s)??0}))],g=v.has(I)?I:_,P=g===_?d:d.filter(s=>s.source===g),K=s=>f($e(s.volume,s.path)),ne=async()=>{if(!b)return;const{id:s,path:n}=b;N(null),j(E=>E.filter(q=>q.id!==s));try{await o.mutateAsync(n),D.success(e("settings.skills.deleteSuccess"))}catch(E){D.error(E instanceof Error?E.message:e("settings.skills.deleteError"))}finally{x()}},H=t.jsxs(G,{size:"sm",disabled:F,onClick:()=>S.current?.click(),children:[t.jsx(Se,{size:14}),e(F?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(R,{children:[t.jsx(R.Content,{children:t.jsx(R.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(R.Title,{actions:r&&H,children:e("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(be,{value:m,onChange:M,placeholder:e("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:s=>{s.key==="Escape"&&(M(""),s.target.blur())}}),!r&&H,t.jsx("input",{ref:S,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:s=>{C(s.target.files)}})]}),y.length>2&&t.jsx(Me,{placement:"page",tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(s,n)=>t.jsx(me,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(de,{size:48,className:"text-muted-foreground"}),title:e("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:e("settings.skills.errorDescription"),actions:t.jsx(G,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:e("settings.skills.retry")})})}):P.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:e(m?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:m?e("settings.skills.noResultsDescription",{search:m}):e("settings.skills.emptyDescription"),actions:!r&&!m&&H})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:P.map(s=>{const n=s.id===w;return t.jsx(Ge,{entry:s,pending:n,onOpen:()=>K(s),onDelete:B(s)&&!n?()=>N(s):void 0},s.id)})})})]})})}),p&&t.jsx(Le,{skillPath:p,onClose:()=>f(null)},p),t.jsx(we,{open:b!==null,onOpenChange:s=>!s&&N(null),children:t.jsxs(Ce,{children:[t.jsxs(De,{children:[t.jsx(Ne,{children:e("settings.skills.deleteDialogTitle")}),t.jsx(Pe,{children:e("settings.skills.deleteDialogDescription",{name:b?.name??""})})]}),t.jsxs(Ee,{children:[t.jsx(Ae,{children:e("settings.skills.cancel")}),t.jsx(Te,{onClick:ne,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:e("settings.skills.deleteButton")})]})]})})]})}export{Tt as default};
|
|
1
|
+
import{Z as ae,b as te,a0 as se,o as ce,r as T,j as t,B as G,n as R,aP as me,T as de,t as D,aj as pe,c as ie,l as ue,I as ge,F as fe,H as he,G as xe,K as Q,eL as je}from"./index-CC7J7MsT.js";import{i as ke}from"./DotsVertical-DMzYFBsd.js";import{a as ve}from"./Package-Cd3aVeK8.js";import{s as ye}from"./Trash01-CpN6r-a0.js";import{i as Se}from"./Upload01-DkDsqCWe.js";import{i as le}from"./Zap-D3d1wpzw.js";import{S as be}from"./search-input-MlNEh696.js";import{f as we,e as Ce,b as De,A as Ne,a as Pe,d as Ee,c as Ae,g as Te}from"./alert-dialog-D6rlFoy0.js";import{E as Z}from"./empty-state-DiRnF-wA.js";import{C as Me}from"./collection-tabs-BW0egx-_.js";import{F as Ie}from"./folder-icon-CPH1Bszw.js";import{p as Oe,h as ze,q as Fe}from"./use-org-fs-C4AEj3YR.js";import{H as J,d as $e}from"./location-oTTXFrSF.js";import{S as Le}from"./skill-preview-CeIBKDR2.js";import{p as Re}from"./skill-md-ChfVs4uF.js";import"./SearchMd-C6gkQ2l2.js";import"./badge-BSirYRuD.js";import"./Eye-Bxxku7SE.js";import"./dialog-BKhaq-Xf.js";import"./X-DTaqHNcB.js";import"./markdown-tOSThun8.js";import"./Copy01-CrFZhFXo.js";import"./Download01-B93GUT2-.js";import"./ZoomOut-B3S7N50e.js";import"./org-file-open-context-k2zY7W2A.js";import"./use-mobile-X_9uHXB5.js";import"./use-panel-navigate-YnjVvVnu.js";import"./thread-route-DnE31jZ2.js";import"./use-project-scope-azWGklpf.js";import"./use-virtual-mcp-Bt7oX0ej.js";import"./use-mcp-client-jmamuSRM.js";import"./auth-B_QE3yd2.js";import"./github-repo-BknN0SVI.js";import"./file-preview-BFDgPeRr.js";import"./utils-CcX7wgow.js";import"./Image01-DPvj49a-.js";import"./editor-DMij_Pa1.js";import"./file-type-icon-Co9lETmZ.js";const V=200,_e=new Set(["node_modules","__pycache__"]);function U(r){const[,...e]=r.webkitRelativePath.split("/");return e.length>0?e.join("/"):r.name}function Be(r){return U(r).split("/").every(e=>!e.startsWith(".")&&!_e.has(e))}function Ke(r){return r.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function He(r,e){const i=new Map;for(const l of r){const o=U(l).split("/");o.pop();const c=["skills",e,...o].join("/");i.set(c,[...i.get(c)??[],l])}return i}async function qe(r,e){const l=(await Promise.allSettled([...r].map(([o,c])=>e({dir:o,files:c})))).find(o=>o.status==="rejected");if(l)throw l.reason}function Qe(r,e){const i=Re(e),l=`skills/${r}`;return{id:`home/${l}`,name:i.name??r,description:i.description,source:"home",volume:J,path:l,sandboxPath:`org/${J}/${l}`}}const _="*";function B(r){return r.volume==="home"}function re(r,e){const i=r.indexOf(":");return i===-1?{label:e,glyph:le}:{label:r.slice(i+1),glyph:r.startsWith("repo:")?pe:ve}}function Ge(r){const e=ie.c(48),{entry:i,pending:l,onOpen:o,onDelete:c}=r,a=te(),{org:S}=se();let m;e[0]!==i.source||e[1]!==S.name?(m=re(i.source,S.name),e[0]=i.source,e[1]=S.name,e[2]=m):m=e[2];const{label:M,glyph:I}=m;let O;e[3]!==i?(O=B(i),e[3]=i,e[4]=O):O=e[4];const F=O,z=l?"opacity-60":"hover:bg-muted/50";let p;e[5]!==z?(p=ue("relative transition-colors group overflow-hidden flex flex-col h-full",z),e[5]=z,e[6]=p):p=e[6];let f;e[7]!==i.name||e[8]!==o||e[9]!==l?(f=!l&&t.jsx("button",{type:"button",onClick:o,className:"absolute inset-0 z-0","aria-label":i.name}),e[7]=i.name,e[8]=o,e[9]=l,e[10]=f):f=e[10];const b=F?"default":"system",N=!F;let w;e[11]!==I||e[12]!==b||e[13]!==N?(w=t.jsx(Ie,{glyph:I,tone:b,readOnly:N,className:"size-8 shrink-0"}),e[11]=I,e[12]=b,e[13]=N,e[14]=w):w=e[14];let h;e[15]!==c||e[16]!==a?(h=c&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(ge,{children:[t.jsx(fe,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ke,{size:16})})}),t.jsx(he,{align:"end",children:t.jsxs(xe,{variant:"destructive",onClick:K=>{K.stopPropagation(),c()},children:[t.jsx(ye,{size:16}),a("settings.skills.deleteButton")]})})]})}),e[15]=c,e[16]=a,e[17]=h):h=e[17];let x;e[18]!==w||e[19]!==h?(x=t.jsxs("div",{className:"flex items-start justify-between",children:[w,h]}),e[18]=w,e[19]=h,e[20]=x):x=e[20];let j;e[21]!==i.name?(j=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:i.name}),e[21]=i.name,e[22]=j):j=e[22];let C;e[23]!==i.description||e[24]!==a?(C=i.description||a("settings.skills.noDescription"),e[23]=i.description,e[24]=a,e[25]=C):C=e[25];let k;e[26]!==C?(k=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:C}),e[26]=C,e[27]=k):k=e[27];let d;e[28]!==j||e[29]!==k?(d=t.jsxs("div",{className:"flex flex-col gap-1",children:[j,k]}),e[28]=j,e[29]=k,e[30]=d):d=e[30];let v;e[31]!==x||e[32]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[x,d]}),e[31]=x,e[32]=d,e[33]=v):v=e[33];let u;e[34]!==M||e[35]!==l||e[36]!==a?(u=l?a("settings.skills.importing"):M,e[34]=M,e[35]=l,e[36]=a,e[37]=u):u=e[37];let y;e[38]!==u?(y=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:u})})}),e[38]=u,e[39]=y):y=e[39];let g;e[40]!==v||e[41]!==y?(g=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[v,y]}),e[40]=v,e[41]=y,e[42]=g):g=e[42];let P;return e[43]!==l||e[44]!==g||e[45]!==p||e[46]!==f?(P=t.jsxs(je,{"aria-busy":l,className:p,children:[f,g]}),e[43]=l,e[44]=g,e[45]=p,e[46]=f,e[47]=P):P=e[47],P}function ee(r){const e=ie.c(2),{children:i}=r;let l;return e[0]!==i?(l=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:i}),e[0]=i,e[1]=l):l=e[1],l}function Tt(){const r=ae(),e=te(),{org:i}=se(),l=Oe(),{remove:o,upload:c}=ze("home"),a=ce(),S=T.useRef(null),[m,M]=T.useState(""),[I,O]=T.useState(_),[F,z]=T.useState(!1),[p,f]=T.useState(null),[b,N]=T.useState(null),[w,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:Q.slashSkills(i.id)}),a.invalidateQueries({queryKey:Q.orgFsSkills(i.id)})},j=s=>a.setQueryData(Q.slashSkills(i.id),n=>s(n??[]));async function C(s){const n=[...s??[]];if(S.current&&(S.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){D.error(e("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",L=n.filter(Be),W=L.find(A=>U(A)==="SKILL.md");if(!W){D.error(e("settings.skills.importMissingSkillMd"));return}if(L.length>V){D.error(e("settings.skills.importTooManyFiles",{count:String(L.length),max:String(V)}));return}const $=Ke(q),X=`skills/${$}`;let Y=!1;z(!0);try{if(await Fe(i.slug,"home",X)){D.error(e("settings.skills.importSlugTaken",{slug:$}));return}Y=!0;const A=Qe($,await W.text());j(oe=>[A,...oe]),h(A.id),await qe(He(L,$),c.mutateAsync),D.success(e("settings.skills.importSuccess",{name:$}))}catch(A){Y&&await o.mutateAsync(X).catch(()=>{}),D.error(A instanceof Error?A.message:e("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=m.toLowerCase(),d=(l.data??[]).filter(s=>s.name.toLowerCase().includes(k)||(s.description??"").toLowerCase().includes(k)).sort((s,n)=>Number(B(n))-Number(B(s))||s.name.localeCompare(n.name)),v=new Set((l.data??[]).map(s=>s.source)),u=new Map;for(const s of d)u.set(s.source,(u.get(s.source)??0)+1);const y=[{id:_,label:e("settings.skills.filterAll"),count:d.length},...[...v].map(s=>({id:s,label:re(s,i.name).label,count:u.get(s)??0}))],g=v.has(I)?I:_,P=g===_?d:d.filter(s=>s.source===g),K=s=>f($e(s.volume,s.path)),ne=async()=>{if(!b)return;const{id:s,path:n}=b;N(null),j(E=>E.filter(q=>q.id!==s));try{await o.mutateAsync(n),D.success(e("settings.skills.deleteSuccess"))}catch(E){D.error(E instanceof Error?E.message:e("settings.skills.deleteError"))}finally{x()}},H=t.jsxs(G,{size:"sm",disabled:F,onClick:()=>S.current?.click(),children:[t.jsx(Se,{size:14}),e(F?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(R,{children:[t.jsx(R.Content,{children:t.jsx(R.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(R.Title,{actions:r&&H,children:e("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(be,{value:m,onChange:M,placeholder:e("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:s=>{s.key==="Escape"&&(M(""),s.target.blur())}}),!r&&H,t.jsx("input",{ref:S,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:s=>{C(s.target.files)}})]}),y.length>2&&t.jsx(Me,{placement:"page",tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(s,n)=>t.jsx(me,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(de,{size:48,className:"text-muted-foreground"}),title:e("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:e("settings.skills.errorDescription"),actions:t.jsx(G,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:e("settings.skills.retry")})})}):P.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:e(m?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:m?e("settings.skills.noResultsDescription",{search:m}):e("settings.skills.emptyDescription"),actions:!r&&!m&&H})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:P.map(s=>{const n=s.id===w;return t.jsx(Ge,{entry:s,pending:n,onOpen:()=>K(s),onDelete:B(s)&&!n?()=>N(s):void 0},s.id)})})})]})})}),p&&t.jsx(Le,{skillPath:p,onClose:()=>f(null)},p),t.jsx(we,{open:b!==null,onOpenChange:s=>!s&&N(null),children:t.jsxs(Ce,{children:[t.jsxs(De,{children:[t.jsx(Ne,{children:e("settings.skills.deleteDialogTitle")}),t.jsx(Pe,{children:e("settings.skills.deleteDialogDescription",{name:b?.name??""})})]}),t.jsxs(Ee,{children:[t.jsx(Ae,{children:e("settings.skills.cancel")}),t.jsx(Te,{onClick:ne,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:e("settings.skills.deleteButton")})]})]})})]})}export{Tt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as B,a0 as L,r as v,j as e,n as x,e_ as k,dW as E,dX as y,dY as a,fx as D,B as m,q as C,t as c,c as z}from"./index-
|
|
1
|
+
import{b as B,a0 as L,r as v,j as e,n as x,e_ as k,dW as E,dX as y,dY as a,fx as D,B as m,q as C,t as c,c as z}from"./index-CC7J7MsT.js";import{D as T}from"./domain-settings-CUKpZjNV.js";import{f as O,e as R,b as q,A as F,d as M,c as U,g as $}from"./alert-dialog-D6rlFoy0.js";import{I as d}from"./input-DSV_9cOM.js";import{S as H}from"./switch-C_FmZ5Us.js";import{a as W,b as X,c as Y,d as G}from"./use-org-sso-CbtWg6df.js";import{s as J}from"./Trash01-CpN6r-a0.js";import{R as K}from"./require-capability-B9l2cjC7.js";import"./badge-BSirYRuD.js";import"./select-C_C7jdl-.js";import"./index-D2HOssRq.js";import"./ChevronUp-CodzCI7T.js";import"./access-gate-DAO7tJ5A.js";import"./capability-load-error-l-yxDu1W.js";function Q(){const s=B(),{org:o}=L(),{data:f,isLoading:I}=W(o.id,o.slug),h=X(o.id,o.slug),S=Y(o.id,o.slug),b=G(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,p]=v.useState(!1),[P,j]=v.useState(!1),u=f?.configured&&f.config,n=f?.config,_=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},N=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!u&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(u?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),p(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await S.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),p(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Container,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(T,{}),I?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[u&&!g&&e.jsx(E,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx(H,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(m,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:S.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(J,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(m,{variant:"outline",size:"sm",onClick:_,children:s("settings.orgSso.editConfigButton")})]})]})}),(!u||g)&&e.jsx(E,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&u?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(m,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(m,{onClick:N,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(O,{open:P,onOpenChange:j,children:e.jsxs(R,{children:[e.jsx(q,{children:e.jsx(F,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(M,{children:[e.jsx(U,{disabled:S.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx($,{onClick:w,disabled:S.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function ue(){const s=z.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(K,{capability:"org:manage",area:"security",children:e.jsx(Q,{})}),s[0]=o):o=s[0],o}export{ue as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as X,b as Z,j as i,n as te,r as J,e_ as ue,aP as pe,E as xe,a0 as Se,o as he,W as re,dY as H,B as V,d as ye,f as je,an as ve,q as ae,K as Ce,dX as ie,dW as ne,e as _e,t as ge}from"./index-EcuFIS2a.js";import{i as be}from"./AlertCircle-2L7lI8NL.js";import{s as Re}from"./Plus-BSp00qOC.js";import{s as ke}from"./Trash01-DtE0n00a.js";import{I as le}from"./input-Buz_7xoG.js";import{S as de}from"./switch-BIfmgDHS.js";import{A as me}from"./avatar-BzRNaDEk.js";import{P as Ne,a as Pe,b as Te}from"./popover-Bff85VlI.js";import{b as fe}from"./use-connection-BKZRi94S.js";import{u as we}from"./use-registry-connections-Bd4wJHbx.js";import{f as Ae,m as ze}from"./use-organization-settings-DvtBymY3.js";import{R as Ee}from"./require-capability-gpVnF6U4.js";import"./User01-DHd46PZp.js";import"./use-mcp-client-B_gcvvCy.js";import"./auth-BBW3DF0r.js";import"./schema-FDf70VFI.js";import"./task-board-Dip4Wu9j.js";import"./access-gate-C9Dl5e5c.js";import"./capability-load-error-BVb3VEU2.js";function Me(t){const e=X.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(be,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function $e(t){const e=X.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,p]=J.useState(""),[a,A]=J.useState(""),[x,b]=J.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==x||e[4]!==a?(j=async()=>(await o.create.mutateAsync({title:r||s("settings.orgStore.privateRegistry"),description:s("settings.orgStore.privateMcpRegistry"),connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=s,e[3]=x,e[4]=a,e[5]=j):j=e[5];let d;e[6]!==c||e[7]!==s?(d=y=>{ae("store_private_registry_added",{connection_id:y}),ge.success(s("settings.orgStore.privateRegistryAdded")),c(y)},e[6]=c,e[7]=s,e[8]=d):d=e[8];let S;e[9]!==s?(S=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=S):S=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==S?(m={mutationFn:j,onSuccess:d,onError:S},e[11]=j,e[12]=d,e[13]=S,e[14]=m):m=e[14];const{mutate:v,isPending:g}=_e(m);let h;e[15]!==s?(h=s("settings.orgStore.nameLabel"),e[15]=s,e[16]=h):h=e[16];let f;e[17]!==s?(f=s("settings.orgStore.namePlaceholder"),e[17]=s,e[18]=f):f=e[18];let u;e[19]===Symbol.for("react.memo_cache_sentinel")?(u=y=>p(y.target.value),e[19]=u):u=e[19];let C;e[20]!==r||e[21]!==f?(C=i.jsx(le,{placeholder:f,value:r,onChange:u,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=C):C=e[22];let R;e[23]!==h||e[24]!==C?(R=i.jsx(H,{title:h,action:C}),e[23]=h,e[24]=C,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let U;e[28]!==s?(U=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=U):U=e[29];let B;e[30]===Symbol.for("react.memo_cache_sentinel")?(B=y=>A(y.target.value),e[30]=B):B=e[30];let Y;e[31]!==U||e[32]!==a?(Y=i.jsx(le,{placeholder:U,value:a,onChange:B,className:"w-[280px]"}),e[31]=U,e[32]=a,e[33]=Y):Y=e[33];let q;e[34]!==F||e[35]!==Y?(q=i.jsx(H,{title:F,action:Y}),e[34]=F,e[35]=Y,e[36]=q):q=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let _;e[39]!==s?(_=s("settings.orgStore.optional"),e[39]=s,e[40]=_):_=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=y=>b(y.target.value),e[43]=O):O=e[43];let M;e[44]!==E||e[45]!==x?(M=i.jsx(le,{type:"password",placeholder:E,value:x,onChange:O,className:"w-[280px]"}),e[44]=E,e[45]=x,e[46]=M):M=e[46];let I;e[47]!==z||e[48]!==_||e[49]!==M?(I=i.jsx(H,{title:z,description:_,action:M}),e[47]=z,e[48]=_,e[49]=M,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(V,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(V,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let $;return e[69]!==q||e[70]!==I||e[71]!==w||e[72]!==R?($=i.jsxs(ie,{children:[R,q,I,w]}),e[69]=q,e[70]=I,e[71]=w,e[72]=R,e[73]=$):$=e[73],$}function se(t){const e=X.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:p,href:a}=t,A=Z(),x=ye();let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={from:"/shell/$org"},e[0]=b):b=e[0];const{org:j}=je(b);let d;e[1]!==o||e[2]!==a||e[3]!==x||e[4]!==r||e[5]!==j?(d=()=>{a?x({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=x,e[4]=r,e[5]=j,e[6]=d):d=e[6];const S=d;let m;e[7]!==s||e[8]!==l?(m=s?i.jsx("img",{src:s,alt:l,className:"size-8 rounded-md object-contain"}):i.jsx(me,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=s,e[8]=l,e[9]=m):m=e[9];let v;e[10]!==p||e[11]!==A?(v=p&&i.jsxs(Ne,{children:[i.jsx(Pe,{asChild:!0,children:i.jsx(V,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Ie,children:i.jsx(ke,{size:14})})}),i.jsx(Te,{className:"w-auto p-2",align:"end",children:i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("p",{className:"text-xs font-medium",children:A("settings.orgStore.removeRegistry")}),i.jsx(V,{variant:"destructive",size:"xs",onClick:R=>{R.stopPropagation(),p()},children:A("settings.orgStore.remove")})]})})]}),e[10]=p,e[11]=A,e[12]=v):v=e[12];let g;e[13]!==r?(g=R=>r(R),e[13]=r,e[14]=g):g=e[14];let h;e[15]!==o||e[16]!==g?(h=i.jsx(de,{checked:o,onClick:Fe,onCheckedChange:g}),e[15]=o,e[16]=g,e[17]=h):h=e[17];let f;e[18]!==a?(f=a&&i.jsx(ve,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let u;e[20]!==v||e[21]!==h||e[22]!==f?(u=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=u):u=e[23];let C;return e[24]!==c||e[25]!==S||e[26]!==l||e[27]!==m||e[28]!==u?(C=i.jsx(H,{title:l,description:c,onClick:S,icon:m,action:u}),e[24]=c,e[25]=S,e[26]=l,e[27]=m,e[28]=u,e[29]=C):C=e[29],C}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=X.c(78),e=Z(),{org:l}=Se(),c=we(),s=fe(),o=Ae(),{mutateAsync:r}=ze(),p=he(),[a,A]=J.useState(!1);let x,b,j,d,S,m;if(t[0]!==s||t[1]!==l.id||t[2]!==p||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=re.REGISTRY(l.id),u=n=>{if(!o)return n===f;const K=o.registries[n];return K?K.enabled:n===f},C=re.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===C||n.id==="community-registry"),U=F?.id??C,B=re.SELF(l.id),Y=new Set([f,C,"community-registry",B]),q=c.filter(n=>!Y.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,K)=>{ae("store_registry_toggled",{connection_id:n,enabled:K});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:K}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const _=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==p?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),p.invalidateQueries({queryKey:Ce.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=p,t[20]=E):E=t[20];const O=E;let M;t[21]!==o||t[22]!==r?(M=async n=>{A(!1);const K=o??{registries:{},blockedMcps:[]};await r({...K,registries:{...K.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=M):M=t[23];const I=M;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:u(f),onToggle:n=>_(f,n)}):i.jsx(H,{title:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.connectionNotFound")});let N;t[26]!==D?(N=i.jsx(ie,{children:D}),t[26]=D,t[27]=N):N=t[27],t[28]!==k||t[29]!==N?(S=i.jsx(ne,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=S):S=t[30];let L;t[31]!==e?(L=e("settings.orgStore.privateRegistriesSection"),t[31]=e,t[32]=L):L=t[32];let P;t[33]!==a||t[34]!==e?(P=a?void 0:i.jsxs(V,{variant:"outline",size:"sm",onClick:()=>A(!0),children:[i.jsx(Re,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx($e,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let $;t[41]!==e?($=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=$):$=t[42];let y;t[43]!==u?(y=u("self"),t[43]=u,t[44]=y):y=t[44];let W;t[45]!==_?(W=n=>_("self",n),t[45]=_,t[46]=W):W=t[46];let G;t[47]!==w||t[48]!==$||t[49]!==y||t[50]!==W?(G=i.jsx(se,{name:w,description:$,enabled:y,onToggle:W,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=$,t[49]=y,t[50]=W,t[51]=G):G=t[51];let ee;t[52]!==O||t[53]!==_||t[54]!==u||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:u(n.id),onToggle:K=>_(n.id,K),onDelete:()=>O(n.id)},n.id),t[52]=O,t[53]=_,t[54]=u,t[55]=e,t[56]=ee):ee=t[56];const oe=q.map(ee);let Q;t[57]!==G||t[58]!==oe?(Q=i.jsxs(ie,{children:[G,oe]}),t[57]=G,t[58]=oe,t[59]=Q):Q=t[59],t[60]!==L||t[61]!==P||t[62]!==T||t[63]!==Q?(m=i.jsxs(ne,{title:L,actions:P,children:[T,Q]}),t[60]=L,t[61]=P,t[62]=T,t[63]=Q,t[64]=m):m=t[64],b=ne,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],x=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:u(U),onToggle:n=>_(U,n)}):i.jsx(H,{title:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryNotAdded"),icon:i.jsx(me,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:i.jsx(de,{checked:!1,disabled:!0,onCheckedChange:Le})}),t[0]=s,t[1]=l.id,t[2]=p,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=x,t[9]=b,t[10]=j,t[11]=d,t[12]=S,t[13]=m}else x=t[8],b=t[9],j=t[10],d=t[11],S=t[12],m=t[13];let v;t[67]!==x||t[68]!==j?(v=i.jsx(x,{children:j}),t[67]=x,t[68]=j,t[69]=v):v=t[69];let g;t[70]!==b||t[71]!==d||t[72]!==v?(g=i.jsx(b,{title:d,children:v}),t[70]=b,t[71]=d,t[72]=v,t[73]=g):g=t[73];let h;return t[74]!==S||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[S,m,g]}),t[74]=S,t[75]=m,t[76]=g,t[77]=h):h=t[77],h}function Le(){}function Ke(){const t=X.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:x}=A;return i.jsx(Me,{error:x??new Error(e("settings.orgStore.failedLoadStoreSettings"))})},t[0]=e,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(pe,{className:"h-64 w-full"}),t[2]=c):c=t[2];let s;t[3]!==e?(s=e("settings.orgStore.pageTitle"),t[3]=e,t[4]=s):s=t[4];let o;t[5]!==s?(o=i.jsx(te.Title,{children:s}),t[5]=s,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(De,{}),t[7]=r):r=t[7];let p;t[8]!==o?(p=i.jsx(J.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Container,{children:i.jsxs(ue,{children:[o,r]})})})})}),t[8]=o,t[9]=p):p=t[9];let a;return t[10]!==l||t[11]!==p?(a=i.jsx(xe,{fallback:l,children:p}),t[10]=l,t[11]=p,t[12]=a):a=t[12],a}function nt(){const t=X.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee,{capability:"registry:manage",area:"the store",children:i.jsx(Ke,{})}),t[0]=e):e=t[0],e}export{nt as default};
|
|
1
|
+
import{c as X,b as Z,j as i,n as te,r as J,e_ as ue,aP as pe,E as xe,a0 as Se,o as he,W as re,dY as H,B as V,d as ye,f as je,an as ve,q as ae,K as Ce,dX as ie,dW as ne,e as _e,t as ge}from"./index-CC7J7MsT.js";import{i as be}from"./AlertCircle-D0XfIdP3.js";import{s as Re}from"./Plus-BjOenFFb.js";import{s as ke}from"./Trash01-CpN6r-a0.js";import{I as le}from"./input-DSV_9cOM.js";import{S as de}from"./switch-C_FmZ5Us.js";import{A as me}from"./avatar-Dwn9Bjsb.js";import{P as Ne,a as Pe,b as Te}from"./popover-tYq49O5I.js";import{b as fe}from"./use-connection-DAR6kA6F.js";import{u as we}from"./use-registry-connections-Dr6Tl0jy.js";import{f as Ae,m as ze}from"./use-organization-settings-DiOLzOn-.js";import{R as Ee}from"./require-capability-B9l2cjC7.js";import"./User01-CmNzW4kH.js";import"./use-mcp-client-jmamuSRM.js";import"./auth-B_QE3yd2.js";import"./schema-CStbpjQf.js";import"./task-board-BtEMyO1f.js";import"./access-gate-DAO7tJ5A.js";import"./capability-load-error-l-yxDu1W.js";function Me(t){const e=X.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(be,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function $e(t){const e=X.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,p]=J.useState(""),[a,A]=J.useState(""),[x,b]=J.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==x||e[4]!==a?(j=async()=>(await o.create.mutateAsync({title:r||s("settings.orgStore.privateRegistry"),description:s("settings.orgStore.privateMcpRegistry"),connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=s,e[3]=x,e[4]=a,e[5]=j):j=e[5];let d;e[6]!==c||e[7]!==s?(d=y=>{ae("store_private_registry_added",{connection_id:y}),ge.success(s("settings.orgStore.privateRegistryAdded")),c(y)},e[6]=c,e[7]=s,e[8]=d):d=e[8];let S;e[9]!==s?(S=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=S):S=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==S?(m={mutationFn:j,onSuccess:d,onError:S},e[11]=j,e[12]=d,e[13]=S,e[14]=m):m=e[14];const{mutate:v,isPending:g}=_e(m);let h;e[15]!==s?(h=s("settings.orgStore.nameLabel"),e[15]=s,e[16]=h):h=e[16];let f;e[17]!==s?(f=s("settings.orgStore.namePlaceholder"),e[17]=s,e[18]=f):f=e[18];let u;e[19]===Symbol.for("react.memo_cache_sentinel")?(u=y=>p(y.target.value),e[19]=u):u=e[19];let C;e[20]!==r||e[21]!==f?(C=i.jsx(le,{placeholder:f,value:r,onChange:u,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=C):C=e[22];let R;e[23]!==h||e[24]!==C?(R=i.jsx(H,{title:h,action:C}),e[23]=h,e[24]=C,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let U;e[28]!==s?(U=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=U):U=e[29];let B;e[30]===Symbol.for("react.memo_cache_sentinel")?(B=y=>A(y.target.value),e[30]=B):B=e[30];let Y;e[31]!==U||e[32]!==a?(Y=i.jsx(le,{placeholder:U,value:a,onChange:B,className:"w-[280px]"}),e[31]=U,e[32]=a,e[33]=Y):Y=e[33];let q;e[34]!==F||e[35]!==Y?(q=i.jsx(H,{title:F,action:Y}),e[34]=F,e[35]=Y,e[36]=q):q=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let _;e[39]!==s?(_=s("settings.orgStore.optional"),e[39]=s,e[40]=_):_=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=y=>b(y.target.value),e[43]=O):O=e[43];let M;e[44]!==E||e[45]!==x?(M=i.jsx(le,{type:"password",placeholder:E,value:x,onChange:O,className:"w-[280px]"}),e[44]=E,e[45]=x,e[46]=M):M=e[46];let I;e[47]!==z||e[48]!==_||e[49]!==M?(I=i.jsx(H,{title:z,description:_,action:M}),e[47]=z,e[48]=_,e[49]=M,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(V,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(V,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let $;return e[69]!==q||e[70]!==I||e[71]!==w||e[72]!==R?($=i.jsxs(ie,{children:[R,q,I,w]}),e[69]=q,e[70]=I,e[71]=w,e[72]=R,e[73]=$):$=e[73],$}function se(t){const e=X.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:p,href:a}=t,A=Z(),x=ye();let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={from:"/shell/$org"},e[0]=b):b=e[0];const{org:j}=je(b);let d;e[1]!==o||e[2]!==a||e[3]!==x||e[4]!==r||e[5]!==j?(d=()=>{a?x({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=x,e[4]=r,e[5]=j,e[6]=d):d=e[6];const S=d;let m;e[7]!==s||e[8]!==l?(m=s?i.jsx("img",{src:s,alt:l,className:"size-8 rounded-md object-contain"}):i.jsx(me,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=s,e[8]=l,e[9]=m):m=e[9];let v;e[10]!==p||e[11]!==A?(v=p&&i.jsxs(Ne,{children:[i.jsx(Pe,{asChild:!0,children:i.jsx(V,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Ie,children:i.jsx(ke,{size:14})})}),i.jsx(Te,{className:"w-auto p-2",align:"end",children:i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("p",{className:"text-xs font-medium",children:A("settings.orgStore.removeRegistry")}),i.jsx(V,{variant:"destructive",size:"xs",onClick:R=>{R.stopPropagation(),p()},children:A("settings.orgStore.remove")})]})})]}),e[10]=p,e[11]=A,e[12]=v):v=e[12];let g;e[13]!==r?(g=R=>r(R),e[13]=r,e[14]=g):g=e[14];let h;e[15]!==o||e[16]!==g?(h=i.jsx(de,{checked:o,onClick:Fe,onCheckedChange:g}),e[15]=o,e[16]=g,e[17]=h):h=e[17];let f;e[18]!==a?(f=a&&i.jsx(ve,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let u;e[20]!==v||e[21]!==h||e[22]!==f?(u=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=u):u=e[23];let C;return e[24]!==c||e[25]!==S||e[26]!==l||e[27]!==m||e[28]!==u?(C=i.jsx(H,{title:l,description:c,onClick:S,icon:m,action:u}),e[24]=c,e[25]=S,e[26]=l,e[27]=m,e[28]=u,e[29]=C):C=e[29],C}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=X.c(78),e=Z(),{org:l}=Se(),c=we(),s=fe(),o=Ae(),{mutateAsync:r}=ze(),p=he(),[a,A]=J.useState(!1);let x,b,j,d,S,m;if(t[0]!==s||t[1]!==l.id||t[2]!==p||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=re.REGISTRY(l.id),u=n=>{if(!o)return n===f;const K=o.registries[n];return K?K.enabled:n===f},C=re.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===C||n.id==="community-registry"),U=F?.id??C,B=re.SELF(l.id),Y=new Set([f,C,"community-registry",B]),q=c.filter(n=>!Y.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,K)=>{ae("store_registry_toggled",{connection_id:n,enabled:K});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:K}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const _=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==p?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),p.invalidateQueries({queryKey:Ce.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=p,t[20]=E):E=t[20];const O=E;let M;t[21]!==o||t[22]!==r?(M=async n=>{A(!1);const K=o??{registries:{},blockedMcps:[]};await r({...K,registries:{...K.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=M):M=t[23];const I=M;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:u(f),onToggle:n=>_(f,n)}):i.jsx(H,{title:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.connectionNotFound")});let N;t[26]!==D?(N=i.jsx(ie,{children:D}),t[26]=D,t[27]=N):N=t[27],t[28]!==k||t[29]!==N?(S=i.jsx(ne,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=S):S=t[30];let L;t[31]!==e?(L=e("settings.orgStore.privateRegistriesSection"),t[31]=e,t[32]=L):L=t[32];let P;t[33]!==a||t[34]!==e?(P=a?void 0:i.jsxs(V,{variant:"outline",size:"sm",onClick:()=>A(!0),children:[i.jsx(Re,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx($e,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let $;t[41]!==e?($=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=$):$=t[42];let y;t[43]!==u?(y=u("self"),t[43]=u,t[44]=y):y=t[44];let W;t[45]!==_?(W=n=>_("self",n),t[45]=_,t[46]=W):W=t[46];let G;t[47]!==w||t[48]!==$||t[49]!==y||t[50]!==W?(G=i.jsx(se,{name:w,description:$,enabled:y,onToggle:W,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=$,t[49]=y,t[50]=W,t[51]=G):G=t[51];let ee;t[52]!==O||t[53]!==_||t[54]!==u||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:u(n.id),onToggle:K=>_(n.id,K),onDelete:()=>O(n.id)},n.id),t[52]=O,t[53]=_,t[54]=u,t[55]=e,t[56]=ee):ee=t[56];const oe=q.map(ee);let Q;t[57]!==G||t[58]!==oe?(Q=i.jsxs(ie,{children:[G,oe]}),t[57]=G,t[58]=oe,t[59]=Q):Q=t[59],t[60]!==L||t[61]!==P||t[62]!==T||t[63]!==Q?(m=i.jsxs(ne,{title:L,actions:P,children:[T,Q]}),t[60]=L,t[61]=P,t[62]=T,t[63]=Q,t[64]=m):m=t[64],b=ne,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],x=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:u(U),onToggle:n=>_(U,n)}):i.jsx(H,{title:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryNotAdded"),icon:i.jsx(me,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:i.jsx(de,{checked:!1,disabled:!0,onCheckedChange:Le})}),t[0]=s,t[1]=l.id,t[2]=p,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=x,t[9]=b,t[10]=j,t[11]=d,t[12]=S,t[13]=m}else x=t[8],b=t[9],j=t[10],d=t[11],S=t[12],m=t[13];let v;t[67]!==x||t[68]!==j?(v=i.jsx(x,{children:j}),t[67]=x,t[68]=j,t[69]=v):v=t[69];let g;t[70]!==b||t[71]!==d||t[72]!==v?(g=i.jsx(b,{title:d,children:v}),t[70]=b,t[71]=d,t[72]=v,t[73]=g):g=t[73];let h;return t[74]!==S||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[S,m,g]}),t[74]=S,t[75]=m,t[76]=g,t[77]=h):h=t[77],h}function Le(){}function Ke(){const t=X.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:x}=A;return i.jsx(Me,{error:x??new Error(e("settings.orgStore.failedLoadStoreSettings"))})},t[0]=e,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(pe,{className:"h-64 w-full"}),t[2]=c):c=t[2];let s;t[3]!==e?(s=e("settings.orgStore.pageTitle"),t[3]=e,t[4]=s):s=t[4];let o;t[5]!==s?(o=i.jsx(te.Title,{children:s}),t[5]=s,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(De,{}),t[7]=r):r=t[7];let p;t[8]!==o?(p=i.jsx(J.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Container,{children:i.jsxs(ue,{children:[o,r]})})})})}),t[8]=o,t[9]=p):p=t[9];let a;return t[10]!==l||t[11]!==p?(a=i.jsx(xe,{fallback:l,children:p}),t[10]=l,t[11]=p,t[12]=a):a=t[12],a}function nt(){const t=X.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee,{capability:"registry:manage",area:"the store",children:i.jsx(Ke,{})}),t[0]=e):e=t[0],e}export{nt as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-tLc7-FpU.js","assets/index-CC7J7MsT.js","assets/index-BOHOyAF8.css","assets/Tool02-CFu103hl.js","assets/CheckCircle-GwUJIVVh.js","assets/Settings02-DH86cX_B.js","assets/use-mcp-client-jmamuSRM.js","assets/auth-B_QE3yd2.js","assets/useInfiniteQuery-zZoTJbYm.js","assets/infiniteQueryObserver-CKT-6XMq.js","assets/badge-BSirYRuD.js","assets/input-DSV_9cOM.js","assets/table-mH2G1tkg.js","assets/toggle-group-C-J6fFSZ.js","assets/use-view-mode-CUHkIbeG.js","assets/use-mobile-X_9uHXB5.js","assets/DotsVertical-DMzYFBsd.js","assets/Globe01-DjdW3vEO.js","assets/SearchMd-C6gkQ2l2.js","assets/dialog-BKhaq-Xf.js","assets/X-DTaqHNcB.js","assets/AlertCircle-D0XfIdP3.js","assets/Download01-B93GUT2-.js","assets/Upload01-DkDsqCWe.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-D6rlFoy0.js","assets/Trash01-CpN6r-a0.js","assets/label-YKssz_GS.js","assets/select-C_C7jdl-.js","assets/index-D2HOssRq.js","assets/ChevronUp-CodzCI7T.js","assets/switch-C_FmZ5Us.js","assets/textarea-B7wqTmSc.js","assets/ArrowLeft-COesgQ7q.js","assets/ArrowRight-CnMpegh6.js","assets/Link01-D8T6mRIR.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-VSstjUSb.js","assets/Eye-Bxxku7SE.js","assets/LinkExternal01-CWPNoGQ_.js","assets/XCircle-BR8ZZHlj.js","assets/use-infinite-scroll-BEJH1fno.js","assets/use-copy-CLZ5Gmjm.js","assets/Copy01-CrFZhFXo.js","assets/Key01-O_Ykzy8v.js","assets/Plus-BjOenFFb.js","assets/tooltip-DSCGYdw1.js","assets/mcp-oauth-Cr_ZflCp.js","assets/Play-CaxaoMwA.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as n,d as c,f as m,j as t,h as f,r as l,aJ as p}from"./index-CC7J7MsT.js";import{R as u}from"./require-capability-B9l2cjC7.js";import"./access-gate-DAO7tJ5A.js";import"./capability-load-error-l-yxDu1W.js";const g=l.lazy(()=>p(()=>import("./registry-layout-tLc7-FpU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{className:"size-5 text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as i,bo as C,bm as y,bu as T,bp as I,bE as M,bJ as H,bF as z,c as A,l as g}from"./index-
|
|
1
|
+
import{r as c,j as i,bo as C,bm as y,bu as T,bp as I,bE as M,bJ as H,bF as z,c as A,l as g}from"./index-CC7J7MsT.js";var m="Switch",[U]=z(m),[q,F]=U(m),E=c.forwardRef((a,e)=>{const{__scopeSwitch:t,name:r,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=a,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(a.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((a,e)=>{const{__scopeSwitch:t,...r}=a,s=F(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});R.displayName=P;var L="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:a,control:e,checked:t,bubbles:r=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:r});h.call(l,t),l.dispatchEvent(v)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=L;function j(a){return a?"checked":"unchecked"}var O=E,$=R;function J(a){const e=A.c(9);let t,r;e[0]!==a?({className:t,...r}=a,e[0]=a,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==s?(o=i.jsx(O,{"data-slot":"switch",className:s,...r,children:n}),e[6]=r,e[7]=s,e[8]=o):o=e[8],o}export{J as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as se,j as s,fr as ye,b as ue,r as ae,B as te,aj as ge,l as je,t as ce,aP as Re}from"./index-EcuFIS2a.js";import{s as xe}from"./Plus-BSp00qOC.js";import{A as be,a as ve,b as Se,c as De,g as Ne,d as Pe,e as _e,f as Ce}from"./alert-dialog-9n2p5SCQ.js";import{d as Ae,h as ke,c as we,e as ze,b as Ee,D as Oe}from"./dialog-AoC07APJ.js";import{I as Ie}from"./input-Buz_7xoG.js";import{u as $e,G as Fe,R as Te}from"./repository-picker-BKj90hIS.js";import{u as Ge,d as Be,h as He,t as qe}from"./use-org-repo-syncs-CnBqiATM.js";import{R as Le}from"./require-capability-gpVnF6U4.js";import"./X-BtMi8Qau.js";import"./ArrowLeft-8rouBEwC.js";import"./LinkExternal01-DQD59o7F.js";import"./tooltip-nr5oS_bm.js";import"./index-Exw_Yjch.js";import"./label-BX1BwzZ4.js";import"./github-icon-swNUSpAU.js";import"./useInfiniteQuery-CzQJkRT9.js";import"./infiniteQueryObserver-3RxH1tr-.js";import"./avatar-BzRNaDEk.js";import"./User01-DHd46PZp.js";import"./collection-search-DM8MkJfo.js";import"./SearchMd-Bb5gjLcX.js";import"./use-debounced-value-BgYHDTDk.js";import"./use-org-fs-Bf6n51Xm.js";import"./DotsVertical-CE2o6L6N.js";import"./Download01-DNhEQzg0.js";import"./Share07-CZ7JzYs9.js";import"./Globe01-g_y8gAs1.js";import"./Key01-CO_i2QPb.js";import"./Palette-DT856bn6.js";import"./Trash01-DtE0n00a.js";import"./Zap-DZAIluO6.js";import"./file-type-icon-lZW2ows7.js";import"./folder-icon-DVG7PK8X.js";import"./Eye-Dq6Vw6FI.js";import"./skill-md-ChfVs4uF.js";import"./access-gate-C9Dl5e5c.js";import"./capability-load-error-BVb3VEU2.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:qe(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=se.c(38),{config:l,onRemove:i}=e,o=ue();let u;t[0]!==l||t[1]!==o?(u=Je(l,o),t[0]=l,t[1]=o,t[2]=u):u=t[2];const m=u,r=$e();let f;t[3]!==l.repositoryId||t[4]!==r.data?(f=r.data?.find(_=>_.id===l.repositoryId),t[3]=l.repositoryId,t[4]=r.data,t[5]=f):f=t[5];const n=f;let g;t[6]!==n?(g=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:n?s.jsx(Fe,{provider:n.provider,size:16,className:"text-muted-foreground"}):s.jsx(ge,{size:16,className:"text-muted-foreground"})}),t[6]=n,t[7]=g):g=t[7];const c=n?.path??`${l.repoOwner}/${l.repoName}`;let d;t[8]!==c?(d=s.jsx("span",{className:"font-medium text-sm truncate",children:c}),t[8]=c,t[9]=d):d=t[9];let p;t[10]!==l.ref?(p=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[10]=l.ref,t[11]=p):p=t[11];let S;t[12]!==d||t[13]!==p?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[d,p]}),t[12]=d,t[13]=p,t[14]=S):S=t[14];const P=m.error?"text-destructive":"text-muted-foreground";let D;t[15]!==P?(D=je("text-xs mt-0.5 truncate",P),t[15]=P,t[16]=D):D=t[16];let R;t[17]!==l.volume||t[18]!==o?(R=o("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[17]=l.volume,t[18]=o,t[19]=R):R=t[19];let b;t[20]!==m.label||t[21]!==R||t[22]!==D?(b=s.jsxs("p",{className:D,children:[R," ·"," ",m.label]}),t[20]=m.label,t[21]=R,t[22]=D,t[23]=b):b=t[23];let x;t[24]!==b||t[25]!==S?(x=s.jsxs("div",{className:"min-w-0",children:[S,b]}),t[24]=b,t[25]=S,t[26]=x):x=t[26];let h;t[27]!==x||t[28]!==g?(h=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[g,x]}),t[27]=x,t[28]=g,t[29]=h):h=t[29];let y;t[30]!==o?(y=o("settings.syncedRepos.remove"),t[30]=o,t[31]=y):y=t[31];let j;t[32]!==i||t[33]!==y?(j=s.jsx(te,{variant:"outline",size:"sm",onClick:i,children:y}),t[32]=i,t[33]=y,t[34]=j):j=t[34];let N;return t[35]!==h||t[36]!==j?(N=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[h,j]}),t[35]=h,t[36]=j,t[37]=N):N=t[37],N}function Me(e){const t=se.c(21),{onAdd:l}=e,i=ue();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(ge,{size:20,className:"text-muted-foreground"})}),t[0]=o):o=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let m;t[3]!==u?(m=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=m):m=t[4];let r;t[5]!==i?(r=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=r):r=t[6];let f;t[7]!==r?(f=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:r}),t[7]=r,t[8]=f):f=t[8];let n;t[9]!==m||t[10]!==f?(n=s.jsxs("div",{children:[m,f]}),t[9]=m,t[10]=f,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let c;t[13]!==i?(c=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=c):c=t[14];let d;t[15]!==l||t[16]!==c?(d=s.jsxs(te,{onClick:l,size:"sm",className:"mt-2",children:[g,c]}),t[15]=l,t[16]=c,t[17]=d):d=t[17];let p;return t[18]!==n||t[19]!==d?(p=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[o,n,d]}),t[18]=n,t[19]=d,t[20]=p):p=t[20],p}function Qe(){const e=se.c(107),t=ue(),l=Ge(),i=Be(),o=He(),[u,m]=ae.useState(!1),[r,f]=ae.useState(null),[n,g]=ae.useState(""),[c,d]=ae.useState(null);let p;e[0]!==i||e[1]!==r||e[2]!==t||e[3]!==n?(p=function(){!r||!n.trim()||i.mutate({repositoryId:r.id,volume:n.trim()},{onSuccess:v=>{f(null),ce.success(t("settings.syncedRepos.created",{volume:v.volume}))},onError:v=>{ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=r,e[2]=t,e[3]=n,e[4]=p):p=e[4];const S=p;let P;e[5]!==c||e[6]!==o||e[7]!==t?(P=function(){c&&o.mutate(c.id,{onSuccess:()=>ce.success(t("settings.syncedRepos.removed")),onError:v=>ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=c,e[6]=o,e[7]=t,e[8]=P):P=e[8];const D=P;if(l.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Re,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let R;e[10]!==l.data?(R=l.data??[],e[10]=l.data,e[11]=R):R=e[11];const b=R;let x;e[12]!==t?(x=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=x):x=e[13];let h;e[14]!==x?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[14]=x,e[15]=h):h=e[15];let y;e[16]!==b||e[17]!==t?(y=b.length===0?s.jsx(Me,{onAdd:()=>m(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(te,{onClick:()=>m(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:b.map(a=>s.jsx(Ke,{config:a,onRemove:()=>d(a)},a.id))})]}),e[16]=b,e[17]=t,e[18]=y):y=e[18];let j;e[19]!==t?(j=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=j):j=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=a=>{const{repository:v}=a;m(!1),f(v),g(Ve(v.path.split("/").at(-1)??v.path))},e[21]=N):N=e[21];let _;e[22]!==u||e[23]!==j?(_=s.jsx(Te,{open:u,onOpenChange:m,title:j,onPicked:N}),e[22]=u,e[23]=j,e[24]=_):_=e[24];const de=r!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>{a||f(null)},e[25]=ie):ie=e[25];let C;e[26]!==t?(C=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=C):C=e[27];let A;e[28]!==C?(A=s.jsx(Ae,{children:C}),e[28]=C,e[29]=A):A=e[29];const me=r?r.path:"";let k;e[30]!==t||e[31]!==me?(k=t("settings.syncedRepos.nameDialogDescription",{repo:me}),e[30]=t,e[31]=me,e[32]=k):k=e[32];let w;e[33]!==k?(w=s.jsx(ke,{children:k}),e[33]=k,e[34]=w):w=e[34];let z;e[35]!==A||e[36]!==w?(z=s.jsxs(we,{children:[A,w]}),e[35]=A,e[36]=w,e[37]=z):z=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=a=>g(a.target.value),e[38]=le):le=e[38];let E;e[39]!==t?(E=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=E):E=e[40];let O;e[41]!==E||e[42]!==n?(O=s.jsx(Ie,{value:n,onChange:le,placeholder:E,autoFocus:!0}),e[41]=E,e[42]=n,e[43]=O):O=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f(null),e[44]=ne):ne=e[44];const he=i.isPending;let I;e[45]!==t?(I=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=I):I=e[46];let $;e[47]!==i.isPending||e[48]!==I?($=s.jsx(te,{variant:"outline",onClick:ne,disabled:he,children:I}),e[47]=i.isPending,e[48]=I,e[49]=$):$=e[49];let F;e[50]!==i.isPending||e[51]!==n?(F=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=F):F=e[52];let T;e[53]!==i.isPending||e[54]!==t?(T=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=T):T=e[55];let G;e[56]!==S||e[57]!==F||e[58]!==T?(G=s.jsx(te,{disabled:F,onClick:S,children:T}),e[56]=S,e[57]=F,e[58]=T,e[59]=G):G=e[59];let B;e[60]!==$||e[61]!==G?(B=s.jsxs(ze,{children:[$,G]}),e[60]=$,e[61]=G,e[62]=B):B=e[62];let H;e[63]!==z||e[64]!==O||e[65]!==B?(H=s.jsxs(Ee,{className:"sm:max-w-sm",children:[z,O,B]}),e[63]=z,e[64]=O,e[65]=B,e[66]=H):H=e[66];let q;e[67]!==H||e[68]!==de?(q=s.jsx(Oe,{open:de,onOpenChange:ie,children:H}),e[67]=H,e[68]=de,e[69]=q):q=e[69];const fe=c!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=a=>{a||d(null)},e[70]=oe):oe=e[70];const pe=c?.volume??"";let L;e[71]!==t||e[72]!==pe?(L=t("settings.syncedRepos.removeTitle",{volume:pe}),e[71]=t,e[72]=pe,e[73]=L):L=e[73];let V;e[74]!==L?(V=s.jsx(be,{children:L}),e[74]=L,e[75]=V):V=e[75];let J;e[76]!==t?(J=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=J):J=e[77];let K;e[78]!==J?(K=s.jsx(ve,{children:J}),e[78]=J,e[79]=K):K=e[79];let M;e[80]!==V||e[81]!==K?(M=s.jsxs(Se,{children:[V,K]}),e[80]=V,e[81]=K,e[82]=M):M=e[82];let Q;e[83]!==t?(Q=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=Q):Q=e[84];let U;e[85]!==Q?(U=s.jsx(De,{children:Q}),e[85]=Q,e[86]=U):U=e[86];let W;e[87]!==t?(W=t("settings.syncedRepos.remove"),e[87]=t,e[88]=W):W=e[88];let X;e[89]!==D||e[90]!==W?(X=s.jsx(Ne,{onClick:D,children:W}),e[89]=D,e[90]=W,e[91]=X):X=e[91];let Y;e[92]!==U||e[93]!==X?(Y=s.jsxs(Pe,{children:[U,X]}),e[92]=U,e[93]=X,e[94]=Y):Y=e[94];let Z;e[95]!==M||e[96]!==Y?(Z=s.jsxs(_e,{children:[M,Y]}),e[95]=M,e[96]=Y,e[97]=Z):Z=e[97];let ee;e[98]!==fe||e[99]!==Z?(ee=s.jsx(Ce,{open:fe,onOpenChange:oe,children:Z}),e[98]=fe,e[99]=Z,e[100]=ee):ee=e[100];let re;return e[101]!==q||e[102]!==h||e[103]!==ee||e[104]!==y||e[105]!==_?(re=s.jsxs(s.Fragment,{children:[h,y,_,q,ee]}),e[101]=q,e[102]=h,e[103]=ee,e[104]=y,e[105]=_,e[106]=re):re=e[106],re}function Ue(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ye,{group:"storage",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}function Et(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{Et as default};
|
|
1
|
+
import{c as se,j as s,fr as ye,b as ue,r as ae,B as te,aj as ge,l as je,t as ce,aP as Re}from"./index-CC7J7MsT.js";import{s as xe}from"./Plus-BjOenFFb.js";import{A as be,a as ve,b as Se,c as De,g as Ne,d as Pe,e as _e,f as Ce}from"./alert-dialog-D6rlFoy0.js";import{d as Ae,h as ke,c as we,e as ze,b as Ee,D as Oe}from"./dialog-BKhaq-Xf.js";import{I as Ie}from"./input-DSV_9cOM.js";import{u as $e,G as Fe,R as Te}from"./repository-picker-DMUsWfjy.js";import{u as Ge,d as Be,h as He,t as qe}from"./use-org-repo-syncs-D5-YS2q1.js";import{R as Le}from"./require-capability-B9l2cjC7.js";import"./X-DTaqHNcB.js";import"./ArrowLeft-COesgQ7q.js";import"./LinkExternal01-CWPNoGQ_.js";import"./tooltip-DSCGYdw1.js";import"./index-D2HOssRq.js";import"./label-YKssz_GS.js";import"./github-icon-DSeg1rga.js";import"./useInfiniteQuery-zZoTJbYm.js";import"./infiniteQueryObserver-CKT-6XMq.js";import"./avatar-Dwn9Bjsb.js";import"./User01-CmNzW4kH.js";import"./collection-search-Dvf73igt.js";import"./SearchMd-C6gkQ2l2.js";import"./use-debounced-value-C7PP6GCc.js";import"./use-org-fs-C4AEj3YR.js";import"./DotsVertical-DMzYFBsd.js";import"./Download01-B93GUT2-.js";import"./Share07-Bw4Wicv2.js";import"./Globe01-DjdW3vEO.js";import"./Key01-O_Ykzy8v.js";import"./Palette-HRmzWYeK.js";import"./Trash01-CpN6r-a0.js";import"./Zap-D3d1wpzw.js";import"./file-type-icon-Co9lETmZ.js";import"./folder-icon-CPH1Bszw.js";import"./Eye-Bxxku7SE.js";import"./skill-md-ChfVs4uF.js";import"./access-gate-DAO7tJ5A.js";import"./capability-load-error-l-yxDu1W.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:qe(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=se.c(38),{config:l,onRemove:i}=e,o=ue();let u;t[0]!==l||t[1]!==o?(u=Je(l,o),t[0]=l,t[1]=o,t[2]=u):u=t[2];const m=u,r=$e();let f;t[3]!==l.repositoryId||t[4]!==r.data?(f=r.data?.find(_=>_.id===l.repositoryId),t[3]=l.repositoryId,t[4]=r.data,t[5]=f):f=t[5];const n=f;let g;t[6]!==n?(g=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:n?s.jsx(Fe,{provider:n.provider,size:16,className:"text-muted-foreground"}):s.jsx(ge,{size:16,className:"text-muted-foreground"})}),t[6]=n,t[7]=g):g=t[7];const c=n?.path??`${l.repoOwner}/${l.repoName}`;let d;t[8]!==c?(d=s.jsx("span",{className:"font-medium text-sm truncate",children:c}),t[8]=c,t[9]=d):d=t[9];let p;t[10]!==l.ref?(p=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[10]=l.ref,t[11]=p):p=t[11];let S;t[12]!==d||t[13]!==p?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[d,p]}),t[12]=d,t[13]=p,t[14]=S):S=t[14];const P=m.error?"text-destructive":"text-muted-foreground";let D;t[15]!==P?(D=je("text-xs mt-0.5 truncate",P),t[15]=P,t[16]=D):D=t[16];let R;t[17]!==l.volume||t[18]!==o?(R=o("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[17]=l.volume,t[18]=o,t[19]=R):R=t[19];let b;t[20]!==m.label||t[21]!==R||t[22]!==D?(b=s.jsxs("p",{className:D,children:[R," ·"," ",m.label]}),t[20]=m.label,t[21]=R,t[22]=D,t[23]=b):b=t[23];let x;t[24]!==b||t[25]!==S?(x=s.jsxs("div",{className:"min-w-0",children:[S,b]}),t[24]=b,t[25]=S,t[26]=x):x=t[26];let h;t[27]!==x||t[28]!==g?(h=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[g,x]}),t[27]=x,t[28]=g,t[29]=h):h=t[29];let y;t[30]!==o?(y=o("settings.syncedRepos.remove"),t[30]=o,t[31]=y):y=t[31];let j;t[32]!==i||t[33]!==y?(j=s.jsx(te,{variant:"outline",size:"sm",onClick:i,children:y}),t[32]=i,t[33]=y,t[34]=j):j=t[34];let N;return t[35]!==h||t[36]!==j?(N=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[h,j]}),t[35]=h,t[36]=j,t[37]=N):N=t[37],N}function Me(e){const t=se.c(21),{onAdd:l}=e,i=ue();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(ge,{size:20,className:"text-muted-foreground"})}),t[0]=o):o=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let m;t[3]!==u?(m=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=m):m=t[4];let r;t[5]!==i?(r=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=r):r=t[6];let f;t[7]!==r?(f=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:r}),t[7]=r,t[8]=f):f=t[8];let n;t[9]!==m||t[10]!==f?(n=s.jsxs("div",{children:[m,f]}),t[9]=m,t[10]=f,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let c;t[13]!==i?(c=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=c):c=t[14];let d;t[15]!==l||t[16]!==c?(d=s.jsxs(te,{onClick:l,size:"sm",className:"mt-2",children:[g,c]}),t[15]=l,t[16]=c,t[17]=d):d=t[17];let p;return t[18]!==n||t[19]!==d?(p=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[o,n,d]}),t[18]=n,t[19]=d,t[20]=p):p=t[20],p}function Qe(){const e=se.c(107),t=ue(),l=Ge(),i=Be(),o=He(),[u,m]=ae.useState(!1),[r,f]=ae.useState(null),[n,g]=ae.useState(""),[c,d]=ae.useState(null);let p;e[0]!==i||e[1]!==r||e[2]!==t||e[3]!==n?(p=function(){!r||!n.trim()||i.mutate({repositoryId:r.id,volume:n.trim()},{onSuccess:v=>{f(null),ce.success(t("settings.syncedRepos.created",{volume:v.volume}))},onError:v=>{ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=r,e[2]=t,e[3]=n,e[4]=p):p=e[4];const S=p;let P;e[5]!==c||e[6]!==o||e[7]!==t?(P=function(){c&&o.mutate(c.id,{onSuccess:()=>ce.success(t("settings.syncedRepos.removed")),onError:v=>ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=c,e[6]=o,e[7]=t,e[8]=P):P=e[8];const D=P;if(l.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Re,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let R;e[10]!==l.data?(R=l.data??[],e[10]=l.data,e[11]=R):R=e[11];const b=R;let x;e[12]!==t?(x=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=x):x=e[13];let h;e[14]!==x?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[14]=x,e[15]=h):h=e[15];let y;e[16]!==b||e[17]!==t?(y=b.length===0?s.jsx(Me,{onAdd:()=>m(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(te,{onClick:()=>m(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:b.map(a=>s.jsx(Ke,{config:a,onRemove:()=>d(a)},a.id))})]}),e[16]=b,e[17]=t,e[18]=y):y=e[18];let j;e[19]!==t?(j=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=j):j=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=a=>{const{repository:v}=a;m(!1),f(v),g(Ve(v.path.split("/").at(-1)??v.path))},e[21]=N):N=e[21];let _;e[22]!==u||e[23]!==j?(_=s.jsx(Te,{open:u,onOpenChange:m,title:j,onPicked:N}),e[22]=u,e[23]=j,e[24]=_):_=e[24];const de=r!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>{a||f(null)},e[25]=ie):ie=e[25];let C;e[26]!==t?(C=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=C):C=e[27];let A;e[28]!==C?(A=s.jsx(Ae,{children:C}),e[28]=C,e[29]=A):A=e[29];const me=r?r.path:"";let k;e[30]!==t||e[31]!==me?(k=t("settings.syncedRepos.nameDialogDescription",{repo:me}),e[30]=t,e[31]=me,e[32]=k):k=e[32];let w;e[33]!==k?(w=s.jsx(ke,{children:k}),e[33]=k,e[34]=w):w=e[34];let z;e[35]!==A||e[36]!==w?(z=s.jsxs(we,{children:[A,w]}),e[35]=A,e[36]=w,e[37]=z):z=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=a=>g(a.target.value),e[38]=le):le=e[38];let E;e[39]!==t?(E=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=E):E=e[40];let O;e[41]!==E||e[42]!==n?(O=s.jsx(Ie,{value:n,onChange:le,placeholder:E,autoFocus:!0}),e[41]=E,e[42]=n,e[43]=O):O=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f(null),e[44]=ne):ne=e[44];const he=i.isPending;let I;e[45]!==t?(I=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=I):I=e[46];let $;e[47]!==i.isPending||e[48]!==I?($=s.jsx(te,{variant:"outline",onClick:ne,disabled:he,children:I}),e[47]=i.isPending,e[48]=I,e[49]=$):$=e[49];let F;e[50]!==i.isPending||e[51]!==n?(F=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=F):F=e[52];let T;e[53]!==i.isPending||e[54]!==t?(T=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=T):T=e[55];let G;e[56]!==S||e[57]!==F||e[58]!==T?(G=s.jsx(te,{disabled:F,onClick:S,children:T}),e[56]=S,e[57]=F,e[58]=T,e[59]=G):G=e[59];let B;e[60]!==$||e[61]!==G?(B=s.jsxs(ze,{children:[$,G]}),e[60]=$,e[61]=G,e[62]=B):B=e[62];let H;e[63]!==z||e[64]!==O||e[65]!==B?(H=s.jsxs(Ee,{className:"sm:max-w-sm",children:[z,O,B]}),e[63]=z,e[64]=O,e[65]=B,e[66]=H):H=e[66];let q;e[67]!==H||e[68]!==de?(q=s.jsx(Oe,{open:de,onOpenChange:ie,children:H}),e[67]=H,e[68]=de,e[69]=q):q=e[69];const fe=c!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=a=>{a||d(null)},e[70]=oe):oe=e[70];const pe=c?.volume??"";let L;e[71]!==t||e[72]!==pe?(L=t("settings.syncedRepos.removeTitle",{volume:pe}),e[71]=t,e[72]=pe,e[73]=L):L=e[73];let V;e[74]!==L?(V=s.jsx(be,{children:L}),e[74]=L,e[75]=V):V=e[75];let J;e[76]!==t?(J=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=J):J=e[77];let K;e[78]!==J?(K=s.jsx(ve,{children:J}),e[78]=J,e[79]=K):K=e[79];let M;e[80]!==V||e[81]!==K?(M=s.jsxs(Se,{children:[V,K]}),e[80]=V,e[81]=K,e[82]=M):M=e[82];let Q;e[83]!==t?(Q=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=Q):Q=e[84];let U;e[85]!==Q?(U=s.jsx(De,{children:Q}),e[85]=Q,e[86]=U):U=e[86];let W;e[87]!==t?(W=t("settings.syncedRepos.remove"),e[87]=t,e[88]=W):W=e[88];let X;e[89]!==D||e[90]!==W?(X=s.jsx(Ne,{onClick:D,children:W}),e[89]=D,e[90]=W,e[91]=X):X=e[91];let Y;e[92]!==U||e[93]!==X?(Y=s.jsxs(Pe,{children:[U,X]}),e[92]=U,e[93]=X,e[94]=Y):Y=e[94];let Z;e[95]!==M||e[96]!==Y?(Z=s.jsxs(_e,{children:[M,Y]}),e[95]=M,e[96]=Y,e[97]=Z):Z=e[97];let ee;e[98]!==fe||e[99]!==Z?(ee=s.jsx(Ce,{open:fe,onOpenChange:oe,children:Z}),e[98]=fe,e[99]=Z,e[100]=ee):ee=e[100];let re;return e[101]!==q||e[102]!==h||e[103]!==ee||e[104]!==y||e[105]!==_?(re=s.jsxs(s.Fragment,{children:[h,y,_,q,ee]}),e[101]=q,e[102]=h,e[103]=ee,e[104]=y,e[105]=_,e[106]=re):re=e[106],re}function Ue(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ye,{group:"storage",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}function Et(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{Et as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,l as i,j as r}from"./index-
|
|
1
|
+
import{c,l as i,j as r}from"./index-CC7J7MsT.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{m as T,f as a,p as b,x as c,b as d,d as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as v,j as d,eq as k,bo as p,bp as T,es as F,dj as M,bt as P,bu as S,bn as V,er as y,bF as D,c as x,l as g}from"./index-
|
|
1
|
+
import{r as v,j as d,eq as k,bo as p,bp as T,es as F,dj as M,bt as P,bu as S,bn as V,er as y,bF as D,c as x,l as g}from"./index-CC7J7MsT.js";var m="Tabs",[G]=D(m,[y]),w=y(),[L,h]=G(m),C=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:V(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...f,ref:e})})});C.displayName=m;var N="TabsList",j=v.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(F,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=v.useRef(u);return v.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(M,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,q=_,B=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(q,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(B,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{Q as T,J as a,O as b,U as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as s}from"./schema-
|
|
1
|
+
import{o as s}from"./schema-CStbpjQf.js";const u="super-agent",o=["#9ca3af","#ef4444","#f97316","#f59e0b","#22c55e","#3b82f6","#a855f7","#ec4899"],c=o[0];function T(e){return o[e%o.length]??c}function A(e){return e.createdBy==="system"}const p="chore",l=["reviewer"],_={reviewer:"Reviewer"},d=["QA Agent","Code Reviewer"];function w(e){return e?.reviewer_enabled===void 0&&e?.qa_agent_enabled===!1&&e?.code_reviewer_enabled===!1?!1:s(e,"reviewer_enabled")}const R=["triage","todo","in_progress","in_review","approved","merged","post_deploy_validation","done","archived"],D=["approved","merged","post_deploy_validation"];function S(e,t){return e?[_[t],...d].some(r=>e.startsWith(`${r}:`)):!1}function E(e,t){if(t)return new Date(t).getTime();let r=0;for(const n of e)n.action==="status_changed"&&n.data?.to==="in_review"&&(r=Math.max(r,new Date(n.occurredAt).getTime()));return r}function v(e,t){const r=E(e,t.cycleStartedAt),n=new Map;for(const a of e){if(a.action!=="review_approved"&&a.action!=="review_changes_requested"||new Date(a.occurredAt).getTime()<r)continue;const i=a.data??{};if(i.reviewer==="reviewer")if(a.action==="review_approved"){if(t?.verifiedOnly&&i.verified!==!0)continue;n.set("reviewer","approved")}else n.set("reviewer","changes_requested")}return n}function g(e,t,r){if(t.length===0)return!1;const n=v(e,r);return t.every(a=>n.get(a)==="approved")}const L="task-board.item.updated",m="task-board.item.deleted",b="task-board.item.prs.updated",C=4e3;export{R as C,p as D,l as R,u as S,L as T,m as a,b,c,D as d,g as e,S as f,C as g,A as i,T as n,w as r};
|