decocms 3.2.0 → 3.2.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-eeQ8IQAG.js → AlertCircle-B4jsZ7IP.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Byg2JlTz.js → ArrowUpRight-Cy8Jts75.js} +1 -1
- package/dist/client/assets/{Check-DA5UKh5X.js → Check-BcJnSpP-.js} +1 -1
- package/dist/client/assets/{CheckCircle-mjn-ZBg3.js → CheckCircle-CS-5SeNh.js} +1 -1
- package/dist/client/assets/{ChevronDown-CYgGBXvc.js → ChevronDown-Dn2G7txX.js} +1 -1
- package/dist/client/assets/{ChevronLeft-BE2hdOnx.js → ChevronLeft-DMtbpB_E.js} +1 -1
- package/dist/client/assets/{ChevronRight-Bp_pdC8P.js → ChevronRight-CY3YFT-N.js} +1 -1
- package/dist/client/assets/{ChevronUp-BwxnNvDR.js → ChevronUp-DaIovYNP.js} +1 -1
- package/dist/client/assets/{Container-DZK-zSnO.js → Container-pwvMIQ8x.js} +1 -1
- package/dist/client/assets/{DotsVertical-L-zHFr4w.js → DotsVertical-BZmjvUjx.js} +1 -1
- package/dist/client/assets/{Eye-6gmxXOun.js → Eye-COqgNgOQ.js} +1 -1
- package/dist/client/assets/{FilterLines-DaVWBoHw.js → FilterLines-o2dXSd9m.js} +1 -1
- package/dist/client/assets/{Globe01-DLq7QB09.js → Globe01-C9VThViN.js} +1 -1
- package/dist/client/assets/{HardDrive-UOXMLLuN.js → HardDrive-BrK4QeY5.js} +1 -1
- package/dist/client/assets/{Key01-DQUmqdKK.js → Key01-Cv9DeFg9.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BbkedL4y.js → LinkExternal01-Dop0HaF1.js} +1 -1
- package/dist/client/assets/{Monitor01-me2M7qcF.js → Monitor01-Ov0MWegc.js} +1 -1
- package/dist/client/assets/{Palette-cwbQQzjc.js → Palette-C9vvRsl1.js} +1 -1
- package/dist/client/assets/{Play-D39faotb.js → Play-CpfveWpO.js} +1 -1
- package/dist/client/assets/{Plus-CxUOnaMo.js → Plus-CBBhRRCR.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-drWDN7HN.js → RefreshCcw01-C_SS_L3k.js} +1 -1
- package/dist/client/assets/{SearchMd-Cd3-NscL.js → SearchMd-C2Ooa8X-.js} +1 -1
- package/dist/client/assets/{Settings02-DWxCysLt.js → Settings02-BdIfFRAO.js} +1 -1
- package/dist/client/assets/{Shield01-CgUSh4ss.js → Shield01-Cav9VS8z.js} +1 -1
- package/dist/client/assets/{Star01-BCTguvLh.js → Star01-DU6VzyMA.js} +1 -1
- package/dist/client/assets/{Stars01-CScMgUNS.js → Stars01-CUBgq4tk.js} +1 -1
- package/dist/client/assets/{Stars02-DhCmA77R.js → Stars02-zmPvOQIG.js} +1 -1
- package/dist/client/assets/{Sun-Cl4W5MYc.js → Sun-BRLHiHpH.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-M-IO9U7X.js → SwitchHorizontal01-D6QQwdrB.js} +1 -1
- package/dist/client/assets/{Tool01-BGfKCaOe.js → Tool01-Cxk9aEZy.js} +1 -1
- package/dist/client/assets/{Trash01-BOqsHAki.js → Trash01-CiY0-H-z.js} +1 -1
- package/dist/client/assets/{Upload01-cIFihtD7.js → Upload01-WFvQ7PcR.js} +1 -1
- package/dist/client/assets/{User01-CRsYdqKf.js → User01-CSPM7-j5.js} +1 -1
- package/dist/client/assets/{Users01-CwvwFmnT.js → Users01-KGXeUnPr.js} +1 -1
- package/dist/client/assets/{Users03-Cy6p41F6.js → Users03-BjY9UbF_.js} +1 -1
- package/dist/client/assets/{X-D4woLNFq.js → X-DCPshBE5.js} +1 -1
- package/dist/client/assets/{XCircle-CdiDJXb-.js → XCircle-7OUszoCa.js} +1 -1
- package/dist/client/assets/{XClose-REUNo7hV.js → XClose-Dh42xuQx.js} +1 -1
- package/dist/client/assets/{Zap-mREy1Qov.js → Zap-DdcTYCbc.js} +1 -1
- package/dist/client/assets/{ZapSquare-DZf6Sug7.js → ZapSquare-BHv8IlMQ.js} +1 -1
- package/dist/client/assets/{ZoomOut-aDyKTD6y.js → ZoomOut-Cl1mwueX.js} +1 -1
- package/dist/client/assets/{access-gate-CzQMusXf.js → access-gate-CBv65jyA.js} +1 -1
- package/dist/client/assets/{accordion-CxUU-7zP.js → accordion-CIEVzq71.js} +1 -1
- package/dist/client/assets/{add-section-modal-Le33kmS8.js → add-section-modal-BNR3lyTT.js} +1 -1
- package/dist/client/assets/{agent-capabilities-C24cyovb.js → agent-capabilities-ZULVjZ6I.js} +1 -1
- package/dist/client/assets/{agent-icon-DQY5C0N2.js → agent-icon-S2kXebD8.js} +1 -1
- package/dist/client/assets/{agent-icons-CiX6fHGt.js → agent-icons-BiolkcA_.js} +1 -1
- package/dist/client/assets/{agents-list-DmjHmKun.js → agents-list-CGuCmg-I.js} +1 -1
- package/dist/client/assets/{ai-providers-mUhUziNN.js → ai-providers-miD8yIVm.js} +1 -1
- package/dist/client/assets/{alert-BbsUklRQ.js → alert-Dsr1Tkf7.js} +1 -1
- package/dist/client/assets/{alert-dialog-BPHTzN62.js → alert-dialog-CZ8DxHXn.js} +1 -1
- package/dist/client/assets/app-editor-qLxcbkzh.js +1 -0
- package/dist/client/assets/{auth-catchall-lSq11uBl.js → auth-catchall-W2h-8Fgb.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BCUlxOAp.js → auth-split-layout-C4vUHoIj.js} +1 -1
- package/dist/client/assets/{automation-list-row-zUvBCUZa.js → automation-list-row-BPG-TiQs.js} +1 -1
- package/dist/client/assets/{automation-runs-v18Lkih8.js → automation-runs-DOsjurBA.js} +1 -1
- package/dist/client/assets/{automations-Qm0D-6AG.js → automations-BpU6Ed1t.js} +1 -1
- package/dist/client/assets/{avatar-C8mqvhp_.js → avatar-BtEW5t9q.js} +1 -1
- package/dist/client/assets/{badge-aL_u7ZDP.js → badge-B5iIVekl.js} +1 -1
- package/dist/client/assets/{brand-context-CGxwlq0O.js → brand-context-DPMhbKzD.js} +1 -1
- package/dist/client/assets/{buckets-DYPtvGJ1.js → buckets-BJ0j2KLm.js} +1 -1
- package/dist/client/assets/{calendar-DddAMJZc.js → calendar-DJMqhuU_.js} +1 -1
- package/dist/client/assets/{capability-load-error-So5ymzsn.js → capability-load-error-DLVSOsZp.js} +1 -1
- package/dist/client/assets/{card-BIxqjUba.js → card-PGDlYSYu.js} +1 -1
- package/dist/client/assets/{chat-context-B5R7Bsxn.js → chat-context-Cn8Z9qNH.js} +1 -1
- package/dist/client/assets/{checkbox-DXKahMoV.js → checkbox-BXMwMWhn.js} +1 -1
- package/dist/client/assets/{cli-auth-success-C2saOMke.js → cli-auth-success-ByOEbre8.js} +1 -1
- package/dist/client/assets/{collection-detail-D8ggdXLI.js → collection-detail-BQ-x1NkW.js} +1 -1
- package/dist/client/assets/{collection-display-button-DvEoSW0w.js → collection-display-button-CG23ihWU.js} +1 -1
- package/dist/client/assets/{collection-search-ChQblPf0.js → collection-search-B_1t9PBO.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CHFC6KhT.js → collection-table-wrapper-DJMQgA1-.js} +1 -1
- package/dist/client/assets/{collection-tabs-GHQguzy_.js → collection-tabs-_m8_Oysw.js} +1 -1
- package/dist/client/assets/{collections-B2PRHYqJ.js → collections-Ctgd2_xQ.js} +1 -1
- package/dist/client/assets/{command-A1tt2dvQ.js → command-DVsD8zbf.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-CUc_k3J7.js → connect-desktop-dialog-rW3v-fhc.js} +1 -1
- package/dist/client/assets/{connection-card-ChcbOLys.js → connection-card-UvC-rBfq.js} +1 -1
- package/dist/client/assets/{connection-detail-U_5KXkyF.js → connection-detail-C7yYcwvq.js} +1 -1
- package/dist/client/assets/{connection-form-helpers--wI2Mdjh.js → connection-form-helpers-BFz0Oqzb.js} +1 -1
- package/dist/client/assets/{connections-07oXzLs7.js → connections-DgcdoyFQ.js} +1 -1
- package/dist/client/assets/{constants-BrUmWQ5v.js → constants-BWQ6Sd_e.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-bx3Tzt-N.js → decopilot-sse-pool-Tw1t3t_5.js} +1 -1
- package/dist/client/assets/{dialog-DJ-H5eyi.js → dialog-Dg7YCnw0.js} +1 -1
- package/dist/client/assets/{domain-settings-Bj8qY-gX.js → domain-settings-BojuNvDV.js} +1 -1
- package/dist/client/assets/{drawer-BDlt-eEN.js → drawer-Vui0Qe00.js} +1 -1
- package/dist/client/assets/{dropdown-menu-D2H5uhoI.js → dropdown-menu-CRPwqyA_.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-Cf_TaIUq.js → dynamic-plugin-layout-D04ue7Gd.js} +1 -1
- package/dist/client/assets/{empty-state-DxUsOjfR.js → empty-state-BmjzPls6.js} +1 -1
- package/dist/client/assets/{empty-state-PvmElhTC.js → empty-state-DBniKhnN.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BVH-NR56.js → extract-connection-data-C0XQgQkq.js} +1 -1
- package/dist/client/assets/{features-CNIUazHE.js → features-DXjEq73y.js} +1 -1
- package/dist/client/assets/{file-explorer-B_0gIGYU.js → file-explorer-Dk_zVrtP.js} +1 -1
- package/dist/client/assets/{file-type-icon-5-Jlm8ee.js → file-type-icon-DngJz3vh.js} +1 -1
- package/dist/client/assets/{files-Dmr-ntT-.js → files-CcPaGgft.js} +1 -1
- package/dist/client/assets/{form-CO8TZWfS.js → form-BxztHJPs.js} +1 -1
- package/dist/client/assets/{general-DH2-DqRy.js → general-BlkOonf1.js} +1 -1
- package/dist/client/assets/{generate-id-5eMpRIJR.js → generate-id-kkKlM_ZT.js} +1 -1
- package/dist/client/assets/{github-repo-picker-D1NpZ6ct.js → github-repo-picker-NzNJJ2mH.js} +1 -1
- package/dist/client/assets/{header-tab-button-B5RTsjq3.js → header-tab-button-C2bZpoGh.js} +1 -1
- package/dist/client/assets/{hover-card-B0ZnutE8.js → hover-card-BoNuGO9O.js} +1 -1
- package/dist/client/assets/{image-field-DH6NL7As.js → image-field-zdMprORm.js} +1 -1
- package/dist/client/assets/{index-CX5zsV6g.js → index-7sx6qeDB.js} +1 -1
- package/dist/client/assets/{index-CohPXzOU.js → index-B-6O4glO.js} +1 -1
- package/dist/client/assets/{index-BZB5wdSX.js → index-B-_a0Oss.js} +1 -1
- package/dist/client/assets/{index-Dd3eFW2j.js → index-B0SUBZdo.js} +1 -1
- package/dist/client/assets/{index-d4-4-LoF.js → index-B7817iVc.js} +1 -1
- package/dist/client/assets/{index-Dh_ZP8gM.js → index-BIkLnmgx.js} +1 -1
- package/dist/client/assets/{index-BK9ucwVY.js → index-BIycoEZO.js} +1 -1
- package/dist/client/assets/{index--ipoW5Od.js → index-BM1QEMf0.js} +1 -1
- package/dist/client/assets/{index-zuFZRdMw.js → index-BUBqDUve.js} +1 -1
- package/dist/client/assets/{index-Dj0KvohQ.js → index-BqIGGS2X.js} +3 -3
- package/dist/client/assets/{index-DY-bhBl7.js → index-CUhf1CAw.js} +4 -4
- package/dist/client/assets/{index-C8xgZP7Q.js → index-CpZ3-kDL.js} +1 -1
- package/dist/client/assets/{index-CTonnX5C.js → index-EqE4qoN3.js} +1 -1
- package/dist/client/assets/{index-BQA4WrEz.js → index-Q9wqmVcK.js} +1 -1
- package/dist/client/assets/{index--2_kkJgD.js → index-f_-lPfBP.js} +1 -1
- package/dist/client/assets/{index-redirect-DcDs3uRh.js → index-redirect-DwV22T_l.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-By84F0-S.js → infiniteQueryObserver-Dc8FQ59R.js} +1 -1
- package/dist/client/assets/{input-D7b0qTbD.js → input-CaVAm8U_.js} +1 -1
- package/dist/client/assets/{integration-icon-CfgTtI5o.js → integration-icon-B3LZ-ypH.js} +1 -1
- package/dist/client/assets/{label-CYTFcC5V.js → label-BdesrWkr.js} +1 -1
- package/dist/client/assets/{layout-CPR4jtia.js → layout-Dy7Xl8GD.js} +1 -1
- package/dist/client/assets/{login-C3iJJq1l.js → login-ClSpLxLe.js} +1 -1
- package/dist/client/assets/{members-C4ocetfC.js → members-AbFNyBGG.js} +1 -1
- package/dist/client/assets/{monaco-editor-KhKv-sJZ.js → monaco-editor-jUNgFLA_.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CKv35kXI.js → monitoring-stats-row-Bl7vBKPA.js} +1 -1
- package/dist/client/assets/{oauth-callback-DYj7ZiBe.js → oauth-callback-Cfg0BYlX.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BGdEvz_Y.js → oauth-callback-ai-provider-6-233q1O.js} +1 -1
- package/dist/client/assets/{onboarding-D6Xk0wL6.js → onboarding-CF8aT867.js} +1 -1
- package/dist/client/assets/{org-install-CEC4BLF-.js → org-install-BouKl_Hm.js} +1 -1
- package/dist/client/assets/{org-layout-BE5MLVkw.js → org-layout-CJYZ6hJx.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-L5iGkhHt.js → org-plugin-layout-C_i2p4nu.js} +1 -1
- package/dist/client/assets/{page-seo-form-jxY-H_g3.js → page-seo-form-CGlEWrly.js} +1 -1
- package/dist/client/assets/page-seo-sheet-D9OH76zu.js +1 -0
- package/dist/client/assets/{pair-BBpXnc-h.js → pair-nPVqMFKf.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DWClfnpF.js → plugin-empty-state-DxmNZcu2.js} +1 -1
- package/dist/client/assets/{plugin-header-Z6RQivcP.js → plugin-header-Cih3pw8c.js} +1 -1
- package/dist/client/assets/{plugin-layout-vnnJlQxa.js → plugin-layout-C0u4T8bf.js} +1 -1
- package/dist/client/assets/{popover-lyccXPhR.js → popover-Dh1FmH19.js} +1 -1
- package/dist/client/assets/{post-editor-DxyYIPy4.js → post-editor-DKzJCa2h.js} +1 -1
- package/dist/client/assets/{primitives-BJLFwP4M.js → primitives-Bpsqoi37.js} +1 -1
- package/dist/client/assets/{profile-D0mq2N64.js → profile-BKniS2eJ.js} +1 -1
- package/dist/client/assets/project-app-view-NeIgV6JC.js +1 -0
- package/dist/client/assets/record-editor-B0nFfN45.js +1 -0
- package/dist/client/assets/registry-lMOMpCMU.js +2 -0
- package/dist/client/assets/{registry-layout-DJdGkFsS.js → registry-layout-CywrtQu-.js} +1 -1
- package/dist/client/assets/{require-capability-l0UYKnJd.js → require-capability-DC0Is4D3.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BGUftSDY.js → required-auth-layout-ChMVNVuI.js} +1 -1
- package/dist/client/assets/{reset-password-FUpnkHMr.js → reset-password-C8Ac0h7h.js} +1 -1
- package/dist/client/assets/{resizable-DwJvPNj4.js → resizable-DnoMgmPk.js} +1 -1
- package/dist/client/assets/{roles-BuPsd2Xq.js → roles-Rx3zDvt6.js} +1 -1
- package/dist/client/assets/{save-status-QxvffYyD.js → save-status-5BzwhxLA.js} +1 -1
- package/dist/client/assets/{schema-form-BdWc4cV5.js → schema-form-GGiCnZqw.js} +1 -1
- package/dist/client/assets/{scroll-area-B_h8lIJ9.js → scroll-area-lKcEVEIp.js} +1 -1
- package/dist/client/assets/{search-input-BKOtoJjA.js → search-input-DLl3bcGX.js} +1 -1
- package/dist/client/assets/{secrets-Dtlt9ZmS.js → secrets-DfX78pXS.js} +1 -1
- package/dist/client/assets/{sections-editor-Dqu3z5Ot.js → sections-editor-DTXL7qNG.js} +1 -1
- package/dist/client/assets/{select-Beg_2fXg.js → select-aLHKiSfh.js} +1 -1
- package/dist/client/assets/{select-model-BMbD_9Ia.js → select-model-CKUscIjE.js} +1 -1
- package/dist/client/assets/{seo-editor-DPjxt-kB.js → seo-editor-BMslVCBp.js} +1 -1
- package/dist/client/assets/{settings-layout-BmGeDfut.js → settings-layout-DIID8x1q.js} +1 -1
- package/dist/client/assets/{settings-section-BTmXhjqn.js → settings-section-Cp0JxD81.js} +1 -1
- package/dist/client/assets/{sheet-D-WSQKVa.js → sheet-CrjSd0ee.js} +1 -1
- package/dist/client/assets/{shell-controls-Cjwnc3rm.js → shell-controls-3XxUtHpH.js} +1 -1
- package/dist/client/assets/{shell-layout-B5BcGCUv.js → shell-layout-C1QcgINV.js} +1 -1
- package/dist/client/assets/{shell-route-loading-CwaZaGaY.js → shell-route-loading-QSXXe5uW.js} +1 -1
- package/dist/client/assets/{sidebar-B3SUDWcE.js → sidebar-B5XsaO6I.js} +1 -1
- package/dist/client/assets/{skeleton-CFHIS59D.js → skeleton-C0D8_b7-.js} +1 -1
- package/dist/client/assets/{sortable.esm-qUS1Ad1E.js → sortable.esm-BT8c1g1j.js} +1 -1
- package/dist/client/assets/{spinner-w0j4pkm6.js → spinner-2Lki_FxR.js} +1 -1
- package/dist/client/assets/{sso-BzO1v4AH.js → sso-Dk4f1NLd.js} +1 -1
- package/dist/client/assets/{store-DDnRAbDj.js → store-CxWtyfZA.js} +1 -1
- package/dist/client/assets/store-registry-B6ii15gd.js +2 -0
- package/dist/client/assets/{switch-DigajlLH.js → switch-ChhMoO4B.js} +1 -1
- package/dist/client/assets/{tab-id-Dqk0Iqqp.js → tab-id-tG-5YHAn.js} +1 -1
- package/dist/client/assets/{table-CG9TNjwG.js → table-xtQhl8PY.js} +1 -1
- package/dist/client/assets/{tabs-hJQcRyAi.js → tabs-g3tAy1aN.js} +1 -1
- package/dist/client/assets/{task-status-BPOI6tWP.js → task-status-B8s-1rF4.js} +1 -1
- package/dist/client/assets/{textarea-F1h3gKD-.js → textarea-DTaE0QqC.js} +1 -1
- package/dist/client/assets/{toggle-group-DBo9mYwI.js → toggle-group-DN-y36Xr.js} +1 -1
- package/dist/client/assets/{toolbar-Chbc6IV1.js → toolbar-B1nEeO2l.js} +1 -1
- package/dist/client/assets/{tools-list-CabDoS9o.js → tools-list-elJwsP4L.js} +1 -1
- package/dist/client/assets/{tooltip-DR0ou5_h.js → tooltip-D9W-TwLE.js} +1 -1
- package/dist/client/assets/{types-B8jc6i3t.js → types-B3ytm7Q2.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Crp3aL-d.js → use-ai-providers-lWKhYcs-.js} +1 -1
- package/dist/client/assets/{use-automations-CvPaoJpy.js → use-automations-Cx1Icu0C.js} +1 -1
- package/dist/client/assets/{use-capability-C_bdrk_p.js → use-capability-B5qHp81z.js} +1 -1
- package/dist/client/assets/{use-collections-CIhR2Sfk.js → use-collections-DsyJRjKq.js} +1 -1
- package/dist/client/assets/{use-connection-B9u8CAro.js → use-connection-C51qpM4f.js} +1 -1
- package/dist/client/assets/{use-copy-BQU7kOTS.js → use-copy-CiQ5q1uw.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B-ZztG0t.js → use-create-virtual-mcp-C5di5h_F.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DSkO6_zp.js → use-debounced-autosave-BgqckX6w.js} +1 -1
- package/dist/client/assets/{use-delete-connection--aJNKbDc.js → use-delete-connection-5smOllWL.js} +1 -1
- package/dist/client/assets/{use-file-configs-DpObIFgQ.js → use-file-configs-9KLr3i9W.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-cj_fIBkS.js → use-infinite-scroll-D0jZyhlQ.js} +1 -1
- package/dist/client/assets/{use-list-state-CJLRzORi.js → use-list-state-CCenvwJV.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CbFGc10Q.js → use-mcp-prompts-D63BK4EU.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-5agNAepF.js → use-mcp-tools-DbyFJj3o.js} +1 -1
- package/dist/client/assets/{use-members-BxYNXFJP.js → use-members-Tv2gVVWu.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BF3wV5AT.js → use-navigate-to-agent-Bd9ehn7Y.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CXXJeS8t.js → use-org-auth-client-Bj_sA4qc.js} +1 -1
- package/dist/client/assets/{use-org-sso-78wZG6-f.js → use-org-sso-DrMKOP9k.js} +1 -1
- package/dist/client/assets/{use-organization-roles-8xWgqzTV.js → use-organization-roles-BSqim_9n.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CTFAMDf3.js → use-organization-settings-CMmcWWrW.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DLQyW9bq.js → use-registry-connections-tzElWLgC.js} +1 -1
- package/dist/client/assets/{use-secrets-Cmx_245Q.js → use-secrets-BEBy8eUJ.js} +1 -1
- package/dist/client/assets/{use-status-sounds-B-QYeuIF.js → use-status-sounds-DrcXZHth.js} +1 -1
- package/dist/client/assets/{use-view-mode-DmcUzuJT.js → use-view-mode-inO99fmS.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CLwhjRff.js → use-virtual-mcp-BmNsIAjR.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Cd0Pj7fS.js +1 -0
- package/dist/client/assets/{useRouterState-Dsvmx6NW.js → useRouterState-DipVSTx6.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Lk51cCbS.js +1 -0
- package/dist/client/assets/{user-C_mdefEx.js → user-3pmWA0m5.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CBJdrX89.js → view-mode-toggle-CeZvzPnX.js} +1 -1
- package/dist/client/assets/{workflow-Bs2NMxKI.js → workflow-De5nNOdK.js} +1 -1
- package/dist/client/assets/workflow-detail-NitZ_h6K.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +575 -2929
- package/dist/server/migrate.js +9 -9
- package/dist/server/server.js +299 -317
- package/package.json +1 -1
- package/dist/client/assets/app-editor-Cv2zA-6I.js +0 -1
- package/dist/client/assets/page-seo-sheet-DsZP33VR.js +0 -1
- package/dist/client/assets/project-app-view-Cf5PFYO6.js +0 -1
- package/dist/client/assets/record-editor-CNQSVEjq.js +0 -1
- package/dist/client/assets/registry-Ee2akcS9.js +0 -2
- package/dist/client/assets/store-registry-DdmX5Xjk.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DiBUJYe_.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Bu_otJLP.js +0 -1
- package/dist/client/assets/workflow-detail-BovMNGKv.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as k,j as o,p as T,r as N,O as D}from"./index-
|
|
1
|
+
import{e as k,j as o,p as T,r as N,O as D}from"./index-BqIGGS2X.js";import{u as z,S as E,a as I,b as L}from"./sidebar-B5XsaO6I.js";import{T as M,a as O,b as A,u as P}from"./tooltip-D9W-TwLE.js";import{S as $,a as W,b as B}from"./shell-route-loading-QSXXe5uW.js";import{u as X,C as H}from"./chat-context-Cn8Z9qNH.js";import{T as F}from"./tab-id-tG-5YHAn.js";import{i as q}from"./Monitor01-Ov0MWegc.js";import{v as G,C as K}from"./connect-desktop-dialog-rW3v-fhc.js";import{T as Y,a as b}from"./toolbar-B1nEeO2l.js";import{S as U,M as J}from"./shell-controls-3XxUtHpH.js";import"./sheet-CrjSd0ee.js";import"./X-DCPshBE5.js";import"./useRouterState-DipVSTx6.js";import"./ZoomOut-Cl1mwueX.js";import"./skeleton-C0D8_b7-.js";import"./popover-Dh1FmH19.js";import"./drawer-Vui0Qe00.js";import"./SearchMd-C2Ooa8X-.js";import"./Star01-DU6VzyMA.js";import"./Plus-CBBhRRCR.js";import"./constants-BWQ6Sd_e.js";import"./use-virtual-mcp-BmNsIAjR.js";import"./use-collections-DsyJRjKq.js";import"./use-create-virtual-mcp-C5di5h_F.js";import"./use-navigate-to-agent-Bd9ehn7Y.js";import"./github-repo-picker-NzNJJ2mH.js";import"./use-connection-C51qpM4f.js";import"./dialog-Dg7YCnw0.js";import"./RefreshCcw01-C_SS_L3k.js";import"./collection-search-B_1t9PBO.js";import"./checkbox-BXMwMWhn.js";import"./Check-BcJnSpP-.js";import"./agent-icon-S2kXebD8.js";import"./AlertCircle-B4jsZ7IP.js";import"./Tool01-Cxk9aEZy.js";import"./SwitchHorizontal01-D6QQwdrB.js";import"./XCircle-7OUszoCa.js";import"./ArrowUpRight-Cy8Jts75.js";import"./ZapSquare-BHv8IlMQ.js";import"./Users03-BjY9UbF_.js";import"./CheckCircle-CS-5SeNh.js";import"./ChevronDown-Dn2G7txX.js";import"./ChevronLeft-DMtbpB_E.js";import"./ChevronRight-CY3YFT-N.js";import"./ChevronUp-DaIovYNP.js";import"./DotsVertical-BZmjvUjx.js";import"./Container-pwvMIQ8x.js";import"./Eye-COqgNgOQ.js";import"./Globe01-C9VThViN.js";import"./FilterLines-o2dXSd9m.js";import"./Palette-C9vvRsl1.js";import"./HardDrive-BrK4QeY5.js";import"./Stars02-zmPvOQIG.js";import"./Key01-Cv9DeFg9.js";import"./LinkExternal01-Dop0HaF1.js";import"./Sun-BRLHiHpH.js";import"./Play-CpfveWpO.js";import"./Settings02-BdIfFRAO.js";import"./Shield01-Cav9VS8z.js";import"./Stars01-CUBgq4tk.js";import"./Trash01-CiY0-H-z.js";import"./Upload01-WFvQ7PcR.js";import"./User01-CSPM7-j5.js";import"./Users01-KGXeUnPr.js";import"./XClose-Dh42xuQx.js";import"./Zap-DdcTYCbc.js";import"./use-mcp-tools-DbyFJj3o.js";import"./extract-connection-data-C0XQgQkq.js";import"./generate-id-kkKlM_ZT.js";import"./collections-Ctgd2_xQ.js";import"./shell-layout-C1QcgINV.js";import"./avatar-BtEW5t9q.js";import"./required-auth-layout-ChMVNVuI.js";import"./use-organization-settings-CMmcWWrW.js";import"./use-org-sso-DrMKOP9k.js";import"./alert-dialog-CZ8DxHXn.js";import"./form-BxztHJPs.js";import"./label-BdesrWkr.js";import"./input-CaVAm8U_.js";import"./spinner-2Lki_FxR.js";import"./index-B-_a0Oss.js";import"./sortable.esm-BT8c1g1j.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-UvC-rBfq.js";import"./use-registry-connections-tzElWLgC.js";import"./useInfiniteQuery-Cd0Pj7fS.js";import"./infiniteQueryObserver-Dc8FQ59R.js";import"./card-PGDlYSYu.js";import"./integration-icon-B3LZ-ypH.js";import"./collection-tabs-_m8_Oysw.js";import"./badge-B5iIVekl.js";import"./select-aLHKiSfh.js";import"./textarea-DTaE0QqC.js";import"./connection-form-helpers-BFz0Oqzb.js";import"./use-infinite-scroll-D0jZyhlQ.js";import"./useSuspenseInfiniteQuery-Lk51cCbS.js";import"./use-ai-providers-lWKhYcs-.js";import"./command-DVsD8zbf.js";import"./index-f_-lPfBP.js";import"./use-org-auth-client-Bj_sA4qc.js";import"./hover-card-BoNuGO9O.js";import"./task-status-B8s-1rF4.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./decopilot-sse-pool-Tw1t3t_5.js";import"./create-sse-subscription-BS5983N4.js";function Q(e){const t=k.c(5),{onPointerDown:r,onDoubleClick:d}=e,{state:f,isMobile:u}=z();if(u||f==="collapsed")return null;let s,n;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={left:"var(--sidebar-width)"},n=o.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border"}),t[0]=s,t[1]=n):(s=t[0],n=t[1]);let i;return t[2]!==d||t[3]!==r?(i=o.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar",title:"Drag to resize, double-click to reset",onPointerDown:r,onDoubleClick:d,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize",style:s,children:n}),t[2]=d,t[3]=r,t[4]=i):i=t[4],i}const R=240,V=400,Z="sidebar.width";function _(e){return Math.max(R,Math.min(V,e))}function ee(){const e=k.c(11),[t,r]=T(Z,te),d=N.useRef(null);let f;e[0]!==r||e[1]!==t?(f=a=>{a.preventDefault();const m=a.clientX,p=_(t),c=d.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),h=c?Array.from(c.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const x of h)x.style.transition="none";const j=x=>{const g=_(p+(x.clientX-m));c?.style.setProperty("--sidebar-width",`${g}px`)},S=x=>{const g=_(p+(x.clientX-m));r(g);for(const v of h)v.style.transition="";window.removeEventListener("pointermove",j),window.removeEventListener("pointerup",S),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",j),window.addEventListener("pointerup",S)},e[0]=r,e[1]=t,e[2]=f):f=e[2];const u=f;let s;e[3]!==r?(s=()=>{r(R)},e[3]=r,e[4]=s):s=e[4];const n=s;let i;e[5]!==t?(i=_(t),e[5]=t,e[6]=i):i=e[6];let l;return e[7]!==u||e[8]!==n||e[9]!==i?(l={width:i,wrapperRef:d,onStartResize:u,resetWidth:n},e[7]=u,e[8]=n,e[9]=i,e[10]=l):l=e[10],l}function te(e){return typeof e=="number"?_(e):R}function oe(){const e=k.c(22),t=X(),[r,d]=N.useState(!1);let f;if(e[0]!==t.capabilities||e[1]!==t.hostname||e[2]!==t.machineId||e[3]!==t.online){const j=G(t.capabilities);f=t.online?o.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",children:[o.jsx("span",{className:"font-medium",children:t.hostname??t.machineId??"Desktop linked"}),o.jsx("span",{className:"text-muted-foreground",children:j.length>0?`Available: ${j.join(", ")}`:"No CLI agents detected"})]}):o.jsx("span",{className:"text-xs",children:"Desktop disconnected"}),e[0]=t.capabilities,e[1]=t.hostname,e[2]=t.machineId,e[3]=t.online,e[4]=f}else f=e[4];const u=f;let s;e[5]===Symbol.for("react.memo_cache_sentinel")?(s=()=>d(!0),e[5]=s):s=e[5];const n=t.online?"Desktop linked":"Connect your desktop";let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(q,{size:16}),e[6]=i):i=e[6];let l;e[7]!==t.online?(l=t.online&&o.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-success ring-2 ring-background animate-pulse"}),e[7]=t.online,e[8]=l):l=e[8];let a;e[9]!==n||e[10]!==l?(a=o.jsx(M,{asChild:!0,children:o.jsxs(Y,{onClick:s,"aria-label":n,children:[i,l]})}),e[9]=n,e[10]=l,e[11]=a):a=e[11];let m;e[12]!==u?(m=o.jsx(O,{side:"bottom",children:u}),e[12]=u,e[13]=m):m=e[13];let p;e[14]!==a||e[15]!==m?(p=o.jsxs(A,{children:[a,m]}),e[14]=a,e[15]=m,e[16]=p):p=e[16];let c;e[17]!==r?(c=o.jsx(K,{open:r,onOpenChange:d}),e[17]=r,e[18]=c):c=e[18];let h;return e[19]!==p||e[20]!==c?(h=o.jsxs(o.Fragment,{children:[p,c]}),e[19]=p,e[20]=c,e[21]=h):h=e[21],h}const ie="sidebar.open";function re(){const e=k.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=o.jsx(B,{}),e[0]=t):t=e[0],t}function so(){const e=k.c(26),t=P(),[r,d]=T(ie,!1),{width:f,wrapperRef:u,onStartResize:s,resetWidth:n}=ee();let i,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(b.LogoLink,{}),l=o.jsx(U,{}),e[0]=i,e[1]=l):(i=e[0],l=e[1]);let a,m;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsxs(b.LeftColumn,{children:[i,l,o.jsx("span",{className:"hidden md:contents",children:o.jsx(b.Nav,{})}),o.jsx(b.TogglesSlot,{}),o.jsx(oe,{})]}),m=o.jsx(b.CenterSlot,{}),e[2]=a,e[3]=m):(a=e[2],m=e[3]);let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsxs(b.Header,{children:[a,m,o.jsxs(b.RightColumn,{children:[o.jsx("div",{className:"min-w-0 flex-1 overflow-x-auto [scrollbar-width:none] flex justify-end",children:o.jsx(b.TabsSlot,{})}),o.jsx(b.RightSlot,{})]})]}),e[4]=p):p=e[4];const c=`${f}px`;let h;e[5]!==c?(h={"--sidebar-width":c,"--sidebar-width-icon":"3.5rem"},e[5]=c,e[6]=h):h=e[6];const j=h;let S;e[7]!==t||e[8]!==s||e[9]!==n?(S=!t&&o.jsxs(o.Fragment,{children:[o.jsx($,{}),o.jsx(Q,{onPointerDown:s,onDoubleClick:n})]}),e[7]=t,e[8]=s,e[9]=n,e[10]=S):S=e[10];let x;e[11]===Symbol.for("react.memo_cache_sentinel")?(x={background:"transparent",containerType:"inline-size"},e[11]=x):x=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(E,{className:"flex flex-col",style:x,children:o.jsx("div",{className:"flex flex-col h-full min-h-0",children:o.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:o.jsx(N.Suspense,{fallback:o.jsx(re,{}),children:o.jsx(D,{})})})})}),e[12]=g):g=e[12];let v;e[13]!==j||e[14]!==S||e[15]!==u?(v=o.jsxs(I,{ref:u,className:"flex-1 bg-sidebar relative min-h-0",style:j,children:[S,g]}),e[13]=j,e[14]=S,e[15]=u,e[16]=v):v=e[16];let y;e[17]!==t?(y=t&&o.jsx(J,{renderSidebar:se}),e[17]=t,e[18]=y):y=e[18];let w;e[19]!==v||e[20]!==y?(w=o.jsx(H,{children:o.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[p,v,y]})}),e[19]=v,e[20]=y,e[21]=w):w=e[21];let C;return e[22]!==d||e[23]!==r||e[24]!==w?(C=o.jsx(F,{children:o.jsx(b.Provider,{children:o.jsx(L,{open:r,onOpenChange:d,children:w})})}),e[22]=d,e[23]=r,e[24]=w,e[25]=C):C=e[25],C}function se(e){const{onClose:t}=e;return o.jsx("div",{className:"flex h-full",children:o.jsx("div",{className:"w-full bg-sidebar flex flex-col overflow-y-auto group/sidebar","data-state":"expanded",children:o.jsx(W,{onClose:t})})})}export{so as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{e as C,q as A,F as Fe,a as oe,K as _,n as M,b2 as Qe,r as R,j as t,B as U,c as ee,f as De,d as ze,E as ae,z as Xe,o as H}from"./index-
|
|
1
|
+
import{e as C,q as A,F as Fe,a as oe,K as _,n as M,b2 as Qe,r as R,j as t,B as U,c as ee,f as De,d as ze,E as ae,z as Xe,o as H}from"./index-BqIGGS2X.js";import{i as We}from"./ChevronRight-CY3YFT-N.js";import{s as Oe}from"./Eye-COqgNgOQ.js";import{n as de,i as Ye}from"./Globe01-C9VThViN.js";import{i as Ze,b as Je}from"./ZoomOut-Cl1mwueX.js";import{s as et}from"./Plus-CBBhRRCR.js";import{t as tt}from"./Stars01-CUBgq4tk.js";import{i as Pe}from"./Upload01-WFvQ7PcR.js";import{b as Q,T as X,a as W,u as Te}from"./tooltip-D9W-TwLE.js";import{A as st,a as lt,b as nt,c as it,d as rt,e as ot,f as at,g as ct}from"./alert-dialog-CZ8DxHXn.js";import{D as fe,a as ue,c as me,f as dt,b as ft,e as ut,d as mt}from"./dialog-Dg7YCnw0.js";import{I as ht}from"./input-CaVAm8U_.js";import{S as V}from"./skeleton-C0D8_b7-.js";import{F as E,d as _e,M as xt}from"./file-type-icon-DngJz3vh.js";import{a as pt}from"./toolbar-B1nEeO2l.js";import{f as Ue,a as he,F as Ee,H as gt}from"./header-tab-button-C2bZpoGh.js";import{i as xe}from"./DotsVertical-BZmjvUjx.js";import{s as pe}from"./Trash01-CiY0-H-z.js";import{i as Ae}from"./Zap-DdcTYCbc.js";import{a as ge,c as Y,b as je,D as ye}from"./dropdown-menu-CRPwqyA_.js";import{R as Ne,a as jt,b as yt}from"./resizable-DnoMgmPk.js";import{n as Me}from"./LinkExternal01-Dop0HaF1.js";import{s as bt}from"./XClose-Dh42xuQx.js";import{i as wt}from"./X-DCPshBE5.js";import"./Check-BcJnSpP-.js";import"./ChevronLeft-DMtbpB_E.js";import"./index-BIycoEZO.js";const vt=new Set(["output","upload","public","home"]),Nt=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;function kt(l){return vt.has(l)||!Nt.test(l)?"home":l}function q(l,e,s,n){const i=new URLSearchParams(n).toString();return`/api/${encodeURIComponent(l)}/fs/${encodeURIComponent(e)}/${s}${i?`?${i}`:""}`}async function K(l,e){const s=await fetch(l,e);if(!s.ok){let n="";try{n=(await s.json()).error??""}catch{}throw new Error(n||`HTTP ${s.status}`)}return s}function Re(l,e){const s=C.c(11),{org:n}=A();let i;s[0]!==n.id||s[1]!==e||s[2]!==l?(i=_.orgFsList(n.id,l,e),s[0]=n.id,s[1]=e,s[2]=l,s[3]=i):i=s[3];let o;s[4]!==n.slug||s[5]!==e||s[6]!==l?(o=async()=>(await(await K(q(n.slug,l,"list",{path:e}))).json()).entries.toSorted($t),s[4]=n.slug,s[5]=e,s[6]=l,s[7]=o):o=s[7];let a;return s[8]!==i||s[9]!==o?(a={queryKey:i,placeholderData:Qe,queryFn:o},s[8]=i,s[9]=o,s[10]=a):a=s[10],M(a)}function $t(l,e){return l.kind!==e.kind?l.kind==="dir"?-1:1:l.path.localeCompare(e.path)}function qe(l,e){const s=C.c(12),{org:n}=A();let i;s[0]!==n.id||s[1]!==e||s[2]!==l?(i=_.orgFsStat(n.id,l??"",e),s[0]=n.id,s[1]=e,s[2]=l,s[3]=i):i=s[3];const o=l!==null;let a;s[4]!==n.slug||s[5]!==e||s[6]!==l?(a=async()=>{const r=await fetch(q(n.slug,l??"","stat",{path:e}));if(r.status===404)return null;if(!r.ok)throw new Error(`HTTP ${r.status}`);return(await r.json()).entry},s[4]=n.slug,s[5]=e,s[6]=l,s[7]=a):a=s[7];let c;return s[8]!==i||s[9]!==o||s[10]!==a?(c={queryKey:i,enabled:o,queryFn:a},s[8]=i,s[9]=o,s[10]=a,s[11]=c):c=s[11],M(c)}function Ct(l){const e=C.c(9),{org:s}=A();let n;e[0]!==s.id||e[1]!==l?(n=_.orgFsUsage(s.id,l),e[0]=s.id,e[1]=l,e[2]=n):n=e[2];let i;e[3]!==s.slug||e[4]!==l?(i=async()=>await(await K(q(s.slug,l,"usage"))).json(),e[3]=s.slug,e[4]=l,e[5]=i):i=e[5];let o;return e[6]!==n||e[7]!==i?(o={queryKey:n,queryFn:i},e[6]=n,e[7]=i,e[8]=o):o=e[8],M(o)}function St(l){const e=C.c(8),s=60,{org:n}=A();let i;e[0]!==n.id?(i=_.orgFsRecent(n.id),e[0]=n.id,e[1]=i):i=e[1];let o;e[2]!==s||e[3]!==n.slug?(o=async()=>(await(await K(`/api/${encodeURIComponent(n.slug)}/fs/recent?limit=${s}`)).json()).entries,e[2]=s,e[3]=n.slug,e[4]=o):o=e[4];let a;return e[5]!==i||e[6]!==o?(a={queryKey:i,queryFn:o},e[5]=i,e[6]=o,e[7]=a):a=e[7],M(a)}function Le(){const l=C.c(7),{org:e}=A();let s;l[0]!==e.id?(s=_.orgFsPublicSets(e.id),l[0]=e.id,l[1]=s):s=l[1];let n;l[2]!==e.slug?(n=async()=>(await(await K(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,l[2]=e.slug,l[3]=n):n=l[3];let i;return l[4]!==s||l[5]!==n?(i={queryKey:s,staleTime:3e5,queryFn:n},l[4]=s,l[5]=n,l[6]=i):i=l[6],M(i)}function Ie(l){const e=C.c(3),{org:s}=A();let n;return e[0]!==s.slug||e[1]!==l?(n=i=>q(s.slug,l,"read",{path:i}),e[0]=s.slug,e[1]=l,e[2]=n):n=e[2],n}function be(){const l=C.c(2),{org:e}=A();let s;return l[0]!==e.slug?(s=(n,i)=>q(e.slug,n,"read",{path:i}),l[0]=e.slug,l[1]=s):s=l[1],s}function ke(l){const e=C.c(26),{org:s}=A(),n=Fe();let i;e[0]!==s||e[1]!==n||e[2]!==l?(i=()=>{n.invalidateQueries({queryKey:_.orgFsVolume(s.id,l)}),n.invalidateQueries({queryKey:_.orgFsRecent(s.id)})},e[0]=s,e[1]=n,e[2]=l,e[3]=i):i=e[3];const o=i;let a;e[4]!==s||e[5]!==l?(a=async p=>{for(const h of p.files){const v=p.dir?`${p.dir}/${h.name}`:h.name;await K(q(s.slug,l,"file",{path:v}),{method:"PUT",headers:{"content-type":h.type||"application/octet-stream"},body:h})}},e[4]=s,e[5]=l,e[6]=a):a=e[6];let c;e[7]!==o||e[8]!==a?(c={mutationFn:a,onSettled:o},e[7]=o,e[8]=a,e[9]=c):c=e[9];const r=oe(c);let d;e[10]!==s||e[11]!==l?(d=async p=>{await K(q(s.slug,l,"dir",{path:p}),{method:"POST"})},e[10]=s,e[11]=l,e[12]=d):d=e[12];let u;e[13]!==o||e[14]!==d?(u={mutationFn:d,onSuccess:o},e[13]=o,e[14]=d,e[15]=u):u=e[15];const f=oe(u);let m;e[16]!==s||e[17]!==l?(m=async p=>{await K(q(s.slug,l,"file",{path:p}),{method:"DELETE"})},e[16]=s,e[17]=l,e[18]=m):m=e[18];let x;e[19]!==o||e[20]!==m?(x={mutationFn:m,onSuccess:o},e[19]=o,e[20]=m,e[21]=x):x=e[21];const y=oe(x);let g;return e[22]!==f||e[23]!==y||e[24]!==r?(g={upload:r,mkdir:f,remove:y},e[22]=f,e[23]=y,e[24]=r,e[25]=g):g=e[25],g}function Ft(l){const e=C.c(33);let s,n,i;e[0]!==l?({glyph:s,readOnly:i,...n}=l,e[0]=l,e[1]=s,e[2]=n,e[3]=i):(s=e[1],n=e[2],i=e[3]);const o=R.useId(),a=`${o}-back`,c=`${o}-front`,r=`url(#${a})`;let d;e[4]!==r?(d=t.jsx("path",{d:"M2.53738 2.55C1.13602 2.55 0 3.68602 0 5.08738V11.535H31.931V7.65326C31.931 6.23616 30.7822 5.08738 29.3651 5.08738H14.7681L13.8775 5.02542C13.3886 4.99141 12.9197 4.81809 12.5261 4.52596L10.7726 3.22419C10.1828 2.78638 9.46784 2.55 8.73334 2.55H2.53738Z",fill:r}),e[4]=r,e[5]=d):d=e[5];const u=`url(#${c})`;let f;e[6]!==u?(f=t.jsx("rect",{y:"8.72",width:"32",height:"21",rx:"2.566",fill:u}),e[6]=u,e[7]=f):f=e[7];let m,x,y;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("rect",{x:"0.3",y:"8.86",width:"31.4",height:"0.55",rx:"0.275",fill:"#FFFFFF",opacity:"0.25"}),x=t.jsx("rect",{y:"25.81",width:"32",height:"0.552",fill:"#84CDFB"}),y=t.jsx("rect",{y:"27.05",width:"32",height:"0.552",fill:"#84CDFB"}),e[8]=m,e[9]=x,e[10]=y):(m=e[8],x=e[9],y=e[10]);let g;e[11]!==s?(g=s&&t.jsx(s,{x:10.5,y:13.2,width:11,height:11,strokeWidth:2.2,style:{color:"#014AC9",opacity:.55}}),e[11]=s,e[12]=g):g=e[12];let p;e[13]!==i?(p=i&&t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"25.5",cy:"25.5",r:"6.2",strokeWidth:"1",className:"fill-background stroke-border"}),t.jsx(Oe,{x:22.1,y:22.1,width:6.8,height:6.8,strokeWidth:2.2,className:"text-muted-foreground"})]}),e[13]=i,e[14]=p):p=e[14];let h,v;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("stop",{offset:"0.3",stopColor:"#4D87DF"}),v=t.jsx("stop",{offset:"1",stopColor:"#296FE8"}),e[15]=h,e[16]=v):(h=e[15],v=e[16]);let w;e[17]!==a?(w=t.jsxs("linearGradient",{id:a,x1:"15.97",y1:"2.55",x2:"15.97",y2:"9.53",gradientUnits:"userSpaceOnUse",children:[h,v]}),e[17]=a,e[18]=w):w=e[18];let k,j;e[19]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("stop",{stopColor:"#72B6FA"}),j=t.jsx("stop",{offset:"1",stopColor:"#5BB1EF"}),e[19]=k,e[20]=j):(k=e[19],j=e[20]);let N;e[21]!==c?(N=t.jsxs("radialGradient",{id:c,cx:"0",cy:"0",r:"10",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1.6 0 0 2.1538 16 19.22)",children:[k,j]}),e[21]=c,e[22]=N):N=e[22];let $;e[23]!==w||e[24]!==N?($=t.jsxs("defs",{children:[w,N]}),e[23]=w,e[24]=N,e[25]=$):$=e[25];let S;return e[26]!==n||e[27]!==$||e[28]!==d||e[29]!==f||e[30]!==g||e[31]!==p?(S=t.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...n,children:[d,f,m,x,y,g,p,$]}),e[26]=n,e[27]=$,e[28]=d,e[29]=f,e[30]=g,e[31]=p,e[32]=S):S=e[32],S}function Dt(l){const e={};for(const s of l.split(`
|
|
2
2
|
`)){const n=s.match(/^([A-Za-z][\w-]*):\s*(.*)$/);n?.[1]&&n[2]!==void 0&&(e[n[1].toLowerCase()]=n[2].trim())}return e}function $e(l){for(const e of l.split(/\n\s*\n/)){const s=e.trim();if(!(!s||s.startsWith("#")))return s.replace(/\n/g," ")}return null}function Ke(l){const e=l.match(/^---\n([\s\S]*?)\n---\n?/);if(!e||e[1]===void 0)return{name:null,description:$e(l),body:l};const s=Dt(e[1]),n=l.slice(e[0].length);return{name:s.name||null,description:s.description||$e(n),body:n}}const zt=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),Ot=new Set(["csv","tsv"]),Pt=new Set(["mp4","webm","mov","m4v"]),Tt=new Set(["txt","md","markdown","json","log","yaml","yml","xml","html","htm"]),_t=256*1024;function te(l){const e=new Date(l);if(Number.isNaN(e.getTime()))return"";const s=Date.now()-e.getTime(),n=Math.floor(s/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const i=Math.floor(n/60);if(i<24)return`${i}h ago`;const o=Math.floor(i/24);return o<30?`${o}d ago`:e.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Ut(l){return l.split(".").pop()?.toLowerCase()??""}function Be(l){const e=C.c(15),{downloadUrl:s,filename:n,onDelete:i}=l,o=`Actions for ${n}`;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(xe,{size:14}),e[0]=a):a=e[0];let c;e[1]!==o?(c=t.jsx(ge,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"icon",className:"size-6 shrink-0 opacity-0 transition-opacity group-hover/card:opacity-100 data-[state=open]:opacity-100",onClick:At,"aria-label":o,children:a})}),e[1]=o,e[2]=c):c=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(de,{size:14}),e[3]=r):r=e[3];let d;e[4]!==s||e[5]!==n?(d=t.jsx(Y,{asChild:!0,children:t.jsxs("a",{href:s,download:n,children:[r,"Download"]})}),e[4]=s,e[5]=n,e[6]=d):d=e[6];let u;e[7]!==i?(u=i&&t.jsxs(Y,{variant:"destructive",onClick:i,children:[t.jsx(pe,{size:14}),"Delete"]}),e[7]=i,e[8]=u):u=e[8];let f;e[9]!==d||e[10]!==u?(f=t.jsxs(je,{align:"end",onClick:Et,children:[d,u]}),e[9]=d,e[10]=u,e[11]=f):f=e[11];let m;return e[12]!==c||e[13]!==f?(m=t.jsxs(ye,{children:[c,f]}),e[12]=c,e[13]=f,e[14]=m):m=e[14],m}function Et(l){return l.stopPropagation()}function At(l){return l.stopPropagation()}function se(l){const e=C.c(9),{onOpen:s,children:n,className:i}=l;let o;e[0]!==s?(o=r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),s())},e[0]=s,e[1]=o):o=e[1];let a;e[2]!==i?(a=ee("group/card flex cursor-pointer flex-col gap-3 rounded-2xl border border-border bg-background p-4 text-left transition-colors hover:border-border hover:bg-muted/40",i),e[2]=i,e[3]=a):a=e[3];let c;return e[4]!==n||e[5]!==s||e[6]!==o||e[7]!==a?(c=t.jsx("div",{role:"button",tabIndex:0,onClick:s,onKeyDown:o,className:a,children:n}),e[4]=n,e[5]=s,e[6]=o,e[7]=a,e[8]=c):c=e[8],c}function le(l){const e=C.c(16),{icon:s,name:n,meta:i,subtitle:o,actions:a}=l;let c;e[0]!==n?(c=t.jsx("span",{className:"min-w-0 flex-1 truncate text-[13px] text-foreground",title:n,children:n}),e[0]=n,e[1]=c):c=e[1];let r;e[2]!==i?(r=i&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:i}),e[2]=i,e[3]=r):r=e[3];let d;e[4]!==c||e[5]!==r?(d=t.jsxs("div",{className:"flex items-start gap-3",children:[c,r]}),e[4]=c,e[5]=r,e[6]=d):d=e[6];let u;e[7]!==o?(u=o&&t.jsx("span",{className:"text-xs text-muted-foreground",children:o}),e[7]=o,e[8]=u):u=e[8];let f;e[9]!==d||e[10]!==u?(f=t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col justify-center",children:[d,u]}),e[9]=d,e[10]=u,e[11]=f):f=e[11];let m;return e[12]!==a||e[13]!==s||e[14]!==f?(m=t.jsxs("div",{className:"flex w-full items-center gap-2.5",children:[s,f,a]}),e[12]=a,e[13]=s,e[14]=f,e[15]=m):m=e[15],m}function ne(l){const e=C.c(15),{name:s,meta:n,subtitle:i,glyph:o,readOnly:a,onOpen:c,onDelete:r}=l;let d;e[0]!==o||e[1]!==a?(d=t.jsx(Ft,{glyph:o,readOnly:a,className:"size-8 shrink-0"}),e[0]=o,e[1]=a,e[2]=d):d=e[2];let u;e[3]!==s||e[4]!==r?(u=r?t.jsxs(ye,{children:[t.jsx(ge,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"icon",className:"size-6 shrink-0 opacity-0 transition-opacity group-hover/card:opacity-100 data-[state=open]:opacity-100",onClick:Rt,"aria-label":`Actions for ${s}`,children:t.jsx(xe,{size:14})})}),t.jsx(je,{align:"end",onClick:Mt,children:t.jsxs(Y,{variant:"destructive",onClick:r,children:[t.jsx(pe,{size:14}),"Delete"]})})]}):void 0,e[3]=s,e[4]=r,e[5]=u):u=e[5];let f;e[6]!==n||e[7]!==s||e[8]!==i||e[9]!==d||e[10]!==u?(f=t.jsx(le,{icon:d,name:s,meta:n,subtitle:i,actions:u}),e[6]=n,e[7]=s,e[8]=i,e[9]=d,e[10]=u,e[11]=f):f=e[11];let m;return e[12]!==c||e[13]!==f?(m=t.jsx(se,{onOpen:c,children:f}),e[12]=c,e[13]=f,e[14]=m):m=e[14],m}function Mt(l){return l.stopPropagation()}function Rt(l){return l.stopPropagation()}function He(l){const e=C.c(19),{filename:s,updatedAt:n,downloadUrl:i,onOpen:o,onDelete:a}=l;let c;e[0]!==s?(c=t.jsx(E,{filename:s,className:"h-8 w-6.5 shrink-0"}),e[0]=s,e[1]=c):c=e[1];let r;e[2]!==n?(r=te(n),e[2]=n,e[3]=r):r=e[3];let d;e[4]!==s?(d=_e(s),e[4]=s,e[5]=d):d=e[5];let u;e[6]!==i||e[7]!==s||e[8]!==a?(u=t.jsx(Be,{downloadUrl:i,filename:s,onDelete:a}),e[6]=i,e[7]=s,e[8]=a,e[9]=u):u=e[9];let f;e[10]!==s||e[11]!==c||e[12]!==r||e[13]!==d||e[14]!==u?(f=t.jsx(le,{icon:c,name:s,meta:r,subtitle:d,actions:u}),e[10]=s,e[11]=c,e[12]=r,e[13]=d,e[14]=u,e[15]=f):f=e[15];let m;return e[16]!==o||e[17]!==f?(m=t.jsx(se,{onOpen:o,children:f}),e[16]=o,e[17]=f,e[18]=m):m=e[18],m}function qt(l){const e=C.c(36),{dirName:s,updatedAt:n,skillMdUrl:i,onOpen:o,onBrowse:a,onDelete:c}=l;let r;e[0]!==i?(r=_.fileText(i),e[0]=i,e[1]=r):r=e[1];let d;e[2]!==i?(d=async()=>{const O=await fetch(i,{credentials:"include"});if(!O.ok)throw new Error(`fetch failed: ${O.status}`);return O.text()},e[2]=i,e[3]=d):d=e[3];let u;e[4]!==r||e[5]!==d?(u={queryKey:r,queryFn:d,staleTime:6e4,retry:!1},e[4]=r,e[5]=d,e[6]=u):u=e[6];const{data:f}=M(u);let m;e[7]!==f?(m=f?Ke(f):null,e[7]=f,e[8]=m):m=e[8];const x=m;let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary",children:t.jsx(Ae,{size:16})}),e[9]=y):y=e[9];const g=x?.name??s;let p;e[10]!==n?(p=te(n),e[10]=n,e[11]=p):p=e[11];const h=`Actions for ${s}`;let v;e[12]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(xe,{size:14}),e[12]=v):v=e[12];let w;e[13]!==h?(w=t.jsx(ge,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"icon",className:"size-6 shrink-0 opacity-0 transition-opacity group-hover/card:opacity-100 data-[state=open]:opacity-100",onClick:It,"aria-label":h,children:v})}),e[13]=h,e[14]=w):w=e[14];let k;e[15]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(Ze,{size:14}),e[15]=k):k=e[15];let j;e[16]!==a?(j=t.jsxs(Y,{onClick:a,children:[k,"Browse files"]}),e[16]=a,e[17]=j):j=e[17];let N;e[18]!==c?(N=c&&t.jsxs(Y,{variant:"destructive",onClick:c,children:[t.jsx(pe,{size:14}),"Delete"]}),e[18]=c,e[19]=N):N=e[19];let $;e[20]!==j||e[21]!==N?($=t.jsxs(je,{align:"end",onClick:Lt,children:[j,N]}),e[20]=j,e[21]=N,e[22]=$):$=e[22];let S;e[23]!==w||e[24]!==$?(S=t.jsxs(ye,{children:[w,$]}),e[23]=w,e[24]=$,e[25]=S):S=e[25];let F;e[26]!==S||e[27]!==g||e[28]!==p?(F=t.jsx(le,{icon:y,name:g,meta:p,subtitle:"Skill",actions:S}),e[26]=S,e[27]=g,e[28]=p,e[29]=F):F=e[29];const z=x?.description??"";let D;e[30]!==z?(D=t.jsx("p",{className:"line-clamp-2 min-h-8 text-xs leading-4 text-muted-foreground",children:z}),e[30]=z,e[31]=D):D=e[31];let b;return e[32]!==o||e[33]!==F||e[34]!==D?(b=t.jsxs(se,{onOpen:o,children:[F,D]}),e[32]=o,e[33]=F,e[34]=D,e[35]=b):b=e[35],b}function Lt(l){return l.stopPropagation()}function It(l){return l.stopPropagation()}function ce(l){const e=C.c(4),{children:s}=l,[n,i]=R.useState(!1);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>r=>{if(!r)return;const d=new IntersectionObserver(u=>{const[f]=u;f?.isIntersecting&&(i(!0),d.disconnect())},{rootMargin:"200px"});d.observe(r)},e[0]=o):o=e[0];const[a]=R.useState(o);if(n){let r;return e[1]!==s?(r=t.jsx(t.Fragment,{children:s}),e[1]=s,e[2]=r):r=e[2],r}let c;return e[3]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{ref:a,className:"h-full w-full"}),e[3]=c):c=e[3],c}function Kt(l){const e=C.c(11),{url:s}=l;let n;e[0]!==s?(n=_.fileText(s),e[0]=s,e[1]=n):n=e[1];let i;e[2]!==s?(i=async()=>{const d=await fetch(s,{credentials:"include"});if(!d.ok)throw new Error(`fetch failed: ${d.status}`);return d.text()},e[2]=s,e[3]=i):i=e[3];let o;e[4]!==n||e[5]!==i?(o={queryKey:n,queryFn:i,staleTime:6e4,retry:!1},e[4]=n,e[5]=i,e[6]=o):o=e[6];const{data:a}=M(o);if(!a)return null;let c;e[7]!==a?(c=a.slice(0,2e3),e[7]=a,e[8]=c):c=e[8];let r;return e[9]!==c?(r=t.jsx("pre",{className:"pointer-events-none h-full w-full overflow-hidden bg-background p-3 font-mono text-[9px] leading-[1.5] text-muted-foreground select-none",children:c}),e[9]=c,e[10]=r):r=e[10],r}function Bt(l){const e=C.c(23),{url:s,ext:n}=l;let i;e[0]!==s?(i=_.csvThumb(s),e[0]=s,e[1]=i):i=e[1];let o;e[2]!==s?(o=async()=>{const p=await fetch(s,{credentials:"include",headers:{Range:"bytes=0-8191"}});if(!p.ok)throw new Error(`fetch failed: ${p.status}`);return p.text()},e[2]=s,e[3]=o):o=e[3];let a;e[4]!==i||e[5]!==o?(a={queryKey:i,queryFn:o,staleTime:6e4,retry:!1},e[4]=i,e[5]=o,e[6]=a):a=e[6];const{data:c}=M(a);if(!c)return null;const r=n==="tsv"?" ":",";let d,u,f,m;if(e[7]!==c||e[8]!==r){m=Symbol.for("react.early_return_sentinel");e:{let p;e[13]!==r?(p=v=>v.split(r).slice(0,6).map(Gt),e[13]=r,e[14]=p):p=e[14];const h=c.split(`
|
|
3
3
|
`).filter(Boolean).slice(0,7).map(p);if(h.length===0){m=null;break e}f="pointer-events-none h-full w-full overflow-hidden bg-background p-2 select-none",u="w-full border-collapse",d=h.map(Ht)}e[7]=c,e[8]=r,e[9]=d,e[10]=u,e[11]=f,e[12]=m}else d=e[9],u=e[10],f=e[11],m=e[12];if(m!==Symbol.for("react.early_return_sentinel"))return m;let x;e[15]!==d?(x=t.jsx("tbody",{children:d}),e[15]=d,e[16]=x):x=e[16];let y;e[17]!==u||e[18]!==x?(y=t.jsx("table",{className:u,children:x}),e[17]=u,e[18]=x,e[19]=y):y=e[19];let g;return e[20]!==f||e[21]!==y?(g=t.jsx("div",{className:f,children:y}),e[20]=f,e[21]=y,e[22]=g):g=e[22],g}function Ht(l,e){return t.jsx("tr",{className:ee(e===0&&"bg-muted/50 font-medium"),children:l.map(Vt)},e)}function Vt(l,e){return t.jsx("td",{className:"max-w-[56px] overflow-hidden border border-border/30 px-1 py-px text-[7px] leading-[1.4] text-muted-foreground",style:{maxWidth:56},children:t.jsx("span",{className:"block truncate",children:l})},e)}function Gt(l){return l.trim().replace(/^"|"$/g,"")}function Qt(l){const e=C.c(14),{filename:s,size:n,downloadUrl:i}=l;let o;if(e[0]!==i||e[1]!==s||e[2]!==n){const a=Ut(s);let c;if(zt.has(a)){let r;e[4]!==i?(r=t.jsx("img",{src:i,alt:"",loading:"lazy",className:"h-full w-full object-cover"}),e[4]=i,e[5]=r):r=e[5],c=r}else if(Pt.has(a)){const r=`${i}#t=0.1`;let d;e[6]!==r?(d=t.jsx(ce,{children:t.jsx("video",{src:r,preload:"metadata",muted:!0,playsInline:!0,className:"pointer-events-none h-full w-full object-cover"})}),e[6]=r,e[7]=d):d=e[7],c=d}else if(a==="pdf"){let r;e[8]!==s?(r=t.jsx("div",{className:"flex h-full w-full items-center justify-center",children:t.jsx(E,{filename:s,className:"h-14 w-11 opacity-60"})}),e[8]=s,e[9]=r):r=e[9],c=r}else if(Ot.has(a))c=t.jsx(ce,{children:t.jsx(Bt,{url:i,ext:a})});else if(Tt.has(a)&&n<=_t){let r;e[10]!==i?(r=t.jsx(ce,{children:t.jsx(Kt,{url:i})}),e[10]=i,e[11]=r):r=e[11],c=r}else{let r;e[12]!==s?(r=t.jsx("div",{className:"flex h-full w-full items-center justify-center",children:t.jsx(E,{filename:s,className:"h-14 w-11 opacity-60"})}),e[12]=s,e[13]=r):r=e[13],c=r}o=t.jsx("div",{className:"aspect-[400/265] w-full overflow-hidden rounded-lg border border-border/60 bg-muted/30",children:c}),e[0]=i,e[1]=s,e[2]=n,e[3]=o}else o=e[3];return o}function Xt(l){const e=C.c(24),s=l.onOpen;let n;e[0]!==l.filename?(n=t.jsx(E,{filename:l.filename,className:"h-8 w-6.5 shrink-0"}),e[0]=l.filename,e[1]=n):n=e[1];const i=l.filename;let o;e[2]!==l.updatedAt?(o=te(l.updatedAt),e[2]=l.updatedAt,e[3]=o):o=e[3];let a;e[4]!==l.filename?(a=_e(l.filename),e[4]=l.filename,e[5]=a):a=e[5];let c;e[6]!==l.downloadUrl||e[7]!==l.filename||e[8]!==l.onDelete?(c=t.jsx(Be,{downloadUrl:l.downloadUrl,filename:l.filename,onDelete:l.onDelete}),e[6]=l.downloadUrl,e[7]=l.filename,e[8]=l.onDelete,e[9]=c):c=e[9];let r;e[10]!==l.filename||e[11]!==n||e[12]!==o||e[13]!==a||e[14]!==c?(r=t.jsx(le,{icon:n,name:i,meta:o,subtitle:a,actions:c}),e[10]=l.filename,e[11]=n,e[12]=o,e[13]=a,e[14]=c,e[15]=r):r=e[15];let d;e[16]!==l.downloadUrl||e[17]!==l.filename||e[18]!==l.size?(d=t.jsx(Qt,{filename:l.filename,size:l.size,downloadUrl:l.downloadUrl}),e[16]=l.downloadUrl,e[17]=l.filename,e[18]=l.size,e[19]=d):d=e[19];let u;return e[20]!==l.onOpen||e[21]!==r||e[22]!==d?(u=t.jsxs(se,{onOpen:s,children:[r,d]}),e[20]=l.onOpen,e[21]=r,e[22]=d,e[23]=u):u=e[23],u}function ie(l){const e=l?l.split("/").filter(Boolean):[],s=e[0]==="public",n=s?e[1]??null:null,i=s?n?`public-${n}`:null:e[0]??null,o=(s?e.slice(2):e.slice(1)).join("/");return{segments:e,volume:i,dirPath:o,isPublic:s,publicSet:n,readOnly:s}}function J(l,e){return l.isPublic&&l.publicSet?`public/${l.publicSet}/${e}`:l.volume?`${l.volume}/${e}`:e}function T(l){const e=l.lastIndexOf("/");return e===-1?l:l.slice(e+1)}function Wt(l){const e=C.c(48),{previewPath:s,onClose:n}=l;let i;e[0]!==s?(i=ie(s),e[0]=s,e[1]=i):i=e[1];const o=i,{volume:a,dirPath:c}=o,{data:r,isPending:d}=qe(a,c),u=Ie(a??"");let f,m,x,y,g,p,h,v,w,k,j,N;e[2]!==u||e[3]!==r||e[4]!==c||e[5]!==n||e[6]!==s?(y=T(c),x=r&&r.kind==="file"?{key:s,filename:y,size:r.size,downloadUrl:u(r.path)}:null,m=fe,j=!0,e[19]!==n?(N=O=>{O||n()},e[19]=n,e[20]=N):N=e[20],f=ue,k="flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",w="flex h-11 shrink-0 items-center gap-1 border-b border-border/60 py-1 pr-12 pl-2",g="flex min-w-0 flex-1 items-center gap-2 px-2",p=t.jsx(E,{filename:y,className:"h-4.5 w-3.5 shrink-0"}),e[21]!==y?(h=t.jsx(me,{className:"truncate text-xs font-medium text-foreground",children:y}),e[21]=y,e[22]=h):h=e[22],v=x&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:Ue(x.size)}),e[2]=u,e[3]=r,e[4]=c,e[5]=n,e[6]=s,e[7]=f,e[8]=m,e[9]=x,e[10]=y,e[11]=g,e[12]=p,e[13]=h,e[14]=v,e[15]=w,e[16]=k,e[17]=j,e[18]=N):(f=e[7],m=e[8],x=e[9],y=e[10],g=e[11],p=e[12],h=e[13],v=e[14],w=e[15],k=e[16],j=e[17],N=e[18]);let $;e[23]!==g||e[24]!==p||e[25]!==h||e[26]!==v?($=t.jsxs("div",{className:g,children:[p,h,v]}),e[23]=g,e[24]=p,e[25]=h,e[26]=v,e[27]=$):$=e[27];let S;e[28]!==x?(S=x&&t.jsxs(t.Fragment,{children:[t.jsxs(Q,{children:[t.jsx(X,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"icon",asChild:!0,children:t.jsx("a",{href:x.downloadUrl,download:x.filename,children:t.jsx(de,{size:14})})})}),t.jsx(W,{side:"bottom",children:"Download"})]}),t.jsxs(Q,{children:[t.jsx(X,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"icon",onClick:()=>window.open(x.downloadUrl,"_blank","noopener"),children:t.jsx(Me,{size:14})})}),t.jsx(W,{side:"bottom",children:"Open in new tab"})]})]}),e[28]=x,e[29]=S):S=e[29];let F;e[30]!==$||e[31]!==S||e[32]!==w?(F=t.jsxs("div",{className:w,children:[$,S]}),e[30]=$,e[31]=S,e[32]=w,e[33]=F):F=e[33];let z;e[34]!==x||e[35]!==y||e[36]!==d?(z=t.jsx("div",{className:"relative min-h-0 flex-1 bg-background",children:x?t.jsx(he,{file:x}):d?t.jsx(Ee,{}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[t.jsx(E,{filename:y,className:"h-7.5 w-6"}),t.jsx("span",{className:"text-sm text-muted-foreground",children:"This file is no longer available."})]})}),e[34]=x,e[35]=y,e[36]=d,e[37]=z):z=e[37];let D;e[38]!==f||e[39]!==F||e[40]!==z||e[41]!==k?(D=t.jsxs(f,{className:k,children:[F,z]}),e[38]=f,e[39]=F,e[40]=z,e[41]=k,e[42]=D):D=e[42];let b;return e[43]!==m||e[44]!==D||e[45]!==j||e[46]!==N?(b=t.jsx(m,{open:j,onOpenChange:N,children:D}),e[43]=m,e[44]=D,e[45]=j,e[46]=N,e[47]=b):b=e[47],b}function Yt(l){const e=C.c(42),{previewPath:s,onClose:n}=l;let i;e[0]!==s?(i=ie(s),e[0]=s,e[1]=i):i=e[1];const o=i,{volume:a,dirPath:c}=o,{data:r,isPending:d}=qe(a,c),u=Ie(a??"");let f,m,x,y,g,p,h,v;e[2]!==u||e[3]!==r||e[4]!==c||e[5]!==s?(m=T(c),f=r&&r.kind==="file"?{key:s,filename:m,size:r.size,downloadUrl:u(r.path)}:null,v="flex h-full w-full flex-col bg-background",h="flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",x="flex min-w-0 flex-1 items-center gap-2 px-2",y=t.jsx(E,{filename:m,className:"h-4.5 w-3.5 shrink-0"}),e[14]!==m?(g=t.jsx("span",{className:"truncate text-xs font-medium text-foreground",children:m}),e[14]=m,e[15]=g):g=e[15],p=f&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:Ue(f.size)}),e[2]=u,e[3]=r,e[4]=c,e[5]=s,e[6]=f,e[7]=m,e[8]=x,e[9]=y,e[10]=g,e[11]=p,e[12]=h,e[13]=v):(f=e[6],m=e[7],x=e[8],y=e[9],g=e[10],p=e[11],h=e[12],v=e[13]);let w;e[16]!==x||e[17]!==y||e[18]!==g||e[19]!==p?(w=t.jsxs("div",{className:x,children:[y,g,p]}),e[16]=x,e[17]=y,e[18]=g,e[19]=p,e[20]=w):w=e[20];let k;e[21]!==f?(k=f&&t.jsxs(t.Fragment,{children:[t.jsxs(Q,{children:[t.jsx(X,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"icon",asChild:!0,children:t.jsx("a",{href:f.downloadUrl,download:f.filename,children:t.jsx(de,{size:14})})})}),t.jsx(W,{side:"bottom",children:"Download"})]}),t.jsxs(Q,{children:[t.jsx(X,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"icon",onClick:()=>window.open(f.downloadUrl,"_blank","noopener"),children:t.jsx(Me,{size:14})})}),t.jsx(W,{side:"bottom",children:"Open in new tab"})]})]}),e[21]=f,e[22]=k):k=e[22];let j;e[23]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(bt,{size:14}),e[23]=j):j=e[23];let N;e[24]!==n?(N=t.jsx(X,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"icon",onClick:n,children:j})}),e[24]=n,e[25]=N):N=e[25];let $;e[26]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(W,{side:"bottom",children:"Close"}),e[26]=$):$=e[26];let S;e[27]!==N?(S=t.jsxs(Q,{children:[N,$]}),e[27]=N,e[28]=S):S=e[28];let F;e[29]!==S||e[30]!==h||e[31]!==w||e[32]!==k?(F=t.jsxs("div",{className:h,children:[w,k,S]}),e[29]=S,e[30]=h,e[31]=w,e[32]=k,e[33]=F):F=e[33];let z;e[34]!==f||e[35]!==m||e[36]!==d?(z=t.jsx("div",{className:"relative min-h-0 flex-1",children:f?t.jsx(he,{file:f}):d?t.jsx(Ee,{}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[t.jsx(E,{filename:m,className:"h-7.5 w-6"}),t.jsx("span",{className:"text-sm text-muted-foreground",children:"This file is no longer available."})]})}),e[34]=f,e[35]=m,e[36]=d,e[37]=z):z=e[37];let D;return e[38]!==F||e[39]!==z||e[40]!==v?(D=t.jsxs("div",{className:v,children:[F,z]}),e[38]=F,e[39]=z,e[40]=v,e[41]=D):D=e[41],D}function Zt(l){const e=C.c(21),{skillPath:s,onClose:n}=l,i=ie(s),{volume:o,dirPath:a}=i,c=be(),r=c(o??"",`${a}/SKILL.md`),d=_.fileText(r);let u;e[0]!==r?(u=async()=>{const P=await fetch(r,{credentials:"include"});if(!P.ok)throw new Error(`fetch failed: ${P.status}`);return P.text()},e[0]=r,e[1]=u):u=e[1];let f;e[2]!==d||e[3]!==u?(f={queryKey:d,queryFn:u,staleTime:6e4,retry:!1},e[2]=d,e[3]=u,e[4]=f):f=e[4];const m=M(f),x=Re(o??"",a);let y;e[5]!==a?(y=T(a),e[5]=a,e[6]=y):y=e[6];const g=y;let p;e[7]!==m.data?(p=m.data?Ke(m.data):null,e[7]=m.data,e[8]=p):p=e[8];const h=p,v=es;let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=(P,G)=>v(P.path)?-1:v(G.path)?1:T(P.path).localeCompare(T(G.path)),e[9]=w):w=e[9];const k=(x.data??[]).filter(Jt).sort(w),[j,N]=R.useState(null),$=j===null?null:k.find(P=>P.path===j)??null;let S;e[10]!==n?(S=P=>{P||n()},e[10]=n,e[11]=S):S=e[11];let F;e[12]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:t.jsx(Ae,{size:18})}),e[12]=F):F=e[12];const z=h?.name??g;let D;e[13]!==z?(D=t.jsx(me,{className:"flex-1 truncate text-base font-medium text-foreground",children:z}),e[13]=z,e[14]=D):D=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(dt,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:t.jsx(wt,{size:16})})}),e[15]=b):b=e[15];let O;e[16]!==D?(O=t.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[F,D,b]}),e[16]=D,e[17]=O):O=e[17];let B;e[18]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[18]=B):B=e[18];const Ge="relative flex min-w-0 flex-1 flex-col overflow-y-auto",re=$?t.jsx(he,{file:{key:$.path,filename:T($.path),size:$.size,downloadUrl:c(o??"",$.path)}}):m.isPending?t.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[t.jsx(V,{className:"h-4 w-1/3"}),t.jsx(V,{className:"h-3 w-full"}),t.jsx(V,{className:"h-3 w-5/6"}),t.jsx(V,{className:"h-3 w-2/3"})]}):m.isError||!h?t.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),t.jsx("p",{className:"text-base text-muted-foreground",children:h.description??"Claude Code skill"})]}),t.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:t.jsx(xt,{id:`skill-preview-${s}`,text:h.body})})]});let Z;return e[19]!==re?(Z=t.jsx("div",{className:Ge,children:re}),e[19]=re,e[20]=Z):Z=e[20],t.jsx(fe,{open:!0,onOpenChange:S,children:t.jsxs(ue,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:[O,t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[B,x.isPending?t.jsx(V,{className:"mx-2 h-4 w-24"}):k.map(P=>{const G=v(P.path)?$===null:j===P.path;return t.jsxs("button",{type:"button",onClick:()=>N(v(P.path)?null:P.path),className:ee("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",G?"bg-background shadow-sm":"hover:bg-muted/60"),children:[t.jsx(E,{filename:T(P.path),className:"h-6 w-5 shrink-0"}),t.jsx("span",{className:ee("truncate text-sm",G?"text-foreground":"text-muted-foreground"),children:T(P.path)})]},P.path)})]}),Z]})]})})}function Jt(l){return l.kind==="file"}function es(l){return T(l)==="SKILL.md"}const Ve=[{id:"home",description:"Your organization's home folder",glyph:Je},{id:"uploads",description:"Files your team uploads",glyph:Pe},{id:"outputs",description:"Agent run outputs",glyph:tt}],Ce=3;function I(l){const e=C.c(2),{children:s}=l;let n;return e[0]!==s?(n=t.jsx("p",{className:"text-[13px] text-foreground",children:s}),e[0]=s,e[1]=n):n=e[1],n}function L(l){const e=C.c(2),{children:s}=l;let n;return e[0]!==s?(n=t.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:s}),e[0]=s,e[1]=n):n=e[1],n}function we(l){const e=C.c(2),{rows:s}=l,n=s===void 0?1:s;let i;return e[0]!==n?(i=t.jsx(L,{children:Array.from({length:n*3},ts)}),e[0]=n,e[1]=i):i=e[1],i}function ts(l,e){return t.jsx(V,{className:"h-16 rounded-2xl"},e)}function ve(l){const e=C.c(2),{children:s}=l;let n;return e[0]!==s?(n=t.jsx("p",{className:"text-sm text-muted-foreground",children:s}),e[0]=s,e[1]=n):n=e[1],n}function ss(l){const e=C.c(6),{volume:s,displayName:n,description:i,glyph:o,onOpen:a}=l,c=Ct(s),r=n??s,d=c.data?`${c.data.files} files`:void 0;let u;return e[0]!==i||e[1]!==o||e[2]!==a||e[3]!==r||e[4]!==d?(u=t.jsx(ne,{name:r,meta:d,subtitle:i,glyph:o,onOpen:a}),e[0]=i,e[1]=o,e[2]=a,e[3]=r,e[4]=d,e[5]=u):u=e[5],u}function ls(l){const e=C.c(8),{segments:s,onNavigate:n}=l;let i;e[0]!==n?(i=t.jsx("button",{type:"button",className:"text-muted-foreground hover:text-foreground hover:underline",onClick:()=>n(""),children:"Library"}),e[0]=n,e[1]=i):i=e[1];let o;e[2]!==n||e[3]!==s?(o=s.map((c,r)=>{const d=s.slice(0,r+1).join("/"),u=r===s.length-1;return t.jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[t.jsx(We,{size:12,className:"shrink-0 text-muted-foreground"}),u?t.jsx("span",{className:"truncate font-medium text-foreground",children:c}):t.jsx("button",{type:"button",className:"truncate text-muted-foreground hover:text-foreground hover:underline",onClick:()=>n(d),children:c})]},d)}),e[2]=n,e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==i||e[6]!==o?(a=t.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-1 text-sm",children:[i,o]}),e[5]=i,e[6]=o,e[7]=a):a=e[7],a}function ns(l){const e=C.c(19),{onOpenDir:s,onOpenFile:n,onDelete:i}=l,{org:o}=A(),a=St(),c=Le(),r=be();let d;if(e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==n||e[4]!==o||e[5]!==c.data?.length||e[6]!==a.data||e[7]!==a.isPending){const u=a.data??[],f=u.slice(0,Ce),m=u.slice(Ce);let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(I,{children:"Folders"}),e[9]=x):x=e[9];let y;e[10]!==s||e[11]!==o?(y=Ve.map(h=>t.jsx(ss,{volume:h.id,displayName:h.id==="home"?kt(o.slug):void 0,description:h.description,glyph:h.glyph,onOpen:()=>s(h.id)},h.id)),e[10]=s,e[11]=o,e[12]=y):y=e[12];let g;e[13]!==s||e[14]!==c.data?.length?(g=(c.data?.length??0)>0&&t.jsx(ne,{name:"public",meta:`${c.data?.length} sets`,subtitle:"Curated skill sets — read-only",glyph:Ye,readOnly:!0,onOpen:()=>s("public")}),e[13]=s,e[14]=c.data?.length,e[15]=g):g=e[15];let p;e[16]!==y||e[17]!==g?(p=t.jsxs("div",{className:"flex flex-col gap-3",children:[x,t.jsxs(L,{children:[y,g]})]}),e[16]=y,e[17]=g,e[18]=p):p=e[18],d=t.jsxs(t.Fragment,{children:[a.isPending?t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(I,{children:"Recently added"}),t.jsx(we,{})]}):f.length>0?t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(I,{children:"Recently added"}),t.jsx(L,{children:f.map(h=>t.jsx(Xt,{filename:T(h.path),updatedAt:h.updatedAt,size:h.size,downloadUrl:r(h.volume,h.path),onOpen:()=>n(`${h.volume}/${h.path}`),onDelete:()=>i({volume:h.volume,path:h.path,kind:"file"})},`${h.volume}/${h.path}`))})]}):t.jsx(ve,{children:"No files yet — upload one, or ask an agent to produce something."}),p,m.length>0&&t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(I,{children:"All files"}),t.jsx(L,{children:m.map(h=>t.jsx(He,{filename:T(h.path),updatedAt:h.updatedAt,downloadUrl:r(h.volume,h.path),onOpen:()=>n(`${h.volume}/${h.path}`),onDelete:()=>i({volume:h.volume,path:h.path,kind:"file"})},`${h.volume}/${h.path}`))})]})]}),e[0]=r,e[1]=i,e[2]=s,e[3]=n,e[4]=o,e[5]=c.data?.length,e[6]=a.data,e[7]=a.isPending,e[8]=d}else d=e[8];return d}function is(l){const e=C.c(11),{onOpenDir:s}=l,n=Le();if(n.isPending){let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(we,{}),e[0]=r):r=e[0],r}let i;e[1]!==n.data?(i=n.data??[],e[1]=n.data,e[2]=i):i=e[2];const o=i;if(o.length===0){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(ve,{children:"No public skill sets are configured."}),e[3]=r):r=e[3],r}let a;if(e[4]!==s||e[5]!==o){let r;e[7]!==s?(r=d=>t.jsx(ne,{name:d,subtitle:"Read-only",readOnly:!0,onOpen:()=>s(`public/${d}`)},d),e[7]=s,e[8]=r):r=e[8],a=o.map(r),e[4]=s,e[5]=o,e[6]=a}else a=e[6];let c;return e[9]!==a?(c=t.jsx(L,{children:a}),e[9]=a,e[10]=c):c=e[10],c}function rs(l){const e=C.c(25),{location:s,onOpenDir:n,onOpenFile:i,onOpenSkill:o,onDelete:a}=l,c=s.volume??"",r=Re(c,s.dirPath),d=be();if(r.isPending){let g;return e[0]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(we,{rows:2}),e[0]=g):g=e[0],g}if(r.isError){const g=r.error instanceof Error?r.error.message:"Failed to load";let p;return e[1]!==g?(p=t.jsx("p",{className:"text-sm text-destructive",children:g}),e[1]=g,e[2]=p):p=e[2],p}let u,f,m,x;if(e[3]!==d||e[4]!==r.data||e[5]!==s||e[6]!==a||e[7]!==n||e[8]!==i||e[9]!==o||e[10]!==c){x=Symbol.for("react.early_return_sentinel");e:{const g=r.data??[],p=g.filter(cs),h=g.filter(as),v=g.filter(os);if(g.length===0){const j=s.readOnly?"Empty — this read-only set syncs from its GitHub source.":"Empty folder — upload a file or create a folder to get started.";let N;e[15]!==j?(N=t.jsx(ve,{children:j}),e[15]=j,e[16]=N):N=e[16],x=N;break e}let w;e[17]!==s.readOnly||e[18]!==a||e[19]!==c?(w=j=>s.readOnly?void 0:()=>a({volume:c,path:j.path,kind:j.kind}),e[17]=s.readOnly,e[18]=a,e[19]=c,e[20]=w):w=e[20];const k=w;u=p.length>0&&t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(I,{children:"Skills"}),t.jsx(L,{children:p.map(j=>t.jsx(qt,{dirName:T(j.path),updatedAt:j.updatedAt,skillMdUrl:d(c,`${j.path}/SKILL.md`),onOpen:()=>o(J(s,j.path)),onBrowse:()=>n(J(s,j.path)),onDelete:k(j)},j.path))})]}),f=h.length>0&&t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(I,{children:"Folders"}),t.jsx(L,{children:h.map(j=>t.jsx(ne,{name:T(j.path),meta:te(j.updatedAt),readOnly:s.readOnly,onOpen:()=>n(J(s,j.path)),onDelete:k(j)},j.path))})]}),m=v.length>0&&t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(I,{children:"Files"}),t.jsx(L,{children:v.map(j=>t.jsx(He,{filename:T(j.path),updatedAt:j.updatedAt,downloadUrl:d(c,j.path),onOpen:()=>i(J(s,j.path)),onDelete:k(j)},j.path))})]})}e[3]=d,e[4]=r.data,e[5]=s,e[6]=a,e[7]=n,e[8]=i,e[9]=o,e[10]=c,e[11]=u,e[12]=f,e[13]=m,e[14]=x}else u=e[11],f=e[12],m=e[13],x=e[14];if(x!==Symbol.for("react.early_return_sentinel"))return x;let y;return e[21]!==u||e[22]!==f||e[23]!==m?(y=t.jsxs(t.Fragment,{children:[u,f,m]}),e[21]=u,e[22]=f,e[23]=m,e[24]=y):y=e[24],y}function os(l){return l.kind==="file"}function as(l){return l.kind==="dir"&&!l.hasSkill}function cs(l){return l.kind==="dir"&&l.hasSkill}function Se(){const{org:l}=A(),e=Fe(),s=De(),n=Te(),i=ze({strict:!1}),o=i.path??"",a=ie(o),c=a.segments.length===0,r=(b,O)=>s({to:".",search:B=>({...B,[b]:O||void 0})}),d=b=>r("path",b),u=b=>r("preview",b),f=b=>r("skill",b),[m,x]=R.useState(null),[y,g]=R.useState(!1),[p,h]=R.useState(""),v=R.useRef(null),w=a.readOnly?null:a.volume??"uploads",k=a.volume?a.dirPath:"",{upload:j,mkdir:N}=ke(w??"uploads"),{remove:$}=ke(m?.volume??"uploads");async function S(b){if(!(!w||!b||b.length===0))try{await j.mutateAsync({dir:k,files:[...b]}),H.success(b.length===1?`Uploaded ${b[0]?.name}`:`Uploaded ${b.length} files`)}catch(O){H.error(O instanceof Error?O.message:"Upload failed")}finally{v.current&&(v.current.value="")}}async function F(){const b=p.trim();if(!(!w||!b))try{await N.mutateAsync(k?`${k}/${b}`:b),H.success(`Folder "${b}" created`),g(!1),h("")}catch(O){H.error(O instanceof Error?O.message:"Failed to create folder")}}async function z(){if(!m)return;const b=m;try{await $.mutateAsync(b.path),H.success(`Deleted ${T(b.path)}`)}catch(O){H.error(O instanceof Error?O.message:"Delete failed")}finally{x(null)}}function D(){for(const b of Ve)e.invalidateQueries({queryKey:_.orgFsVolume(l.id,b.id)});a.volume&&e.invalidateQueries({queryKey:_.orgFsVolume(l.id,a.volume)}),e.invalidateQueries({queryKey:_.orgFsRecent(l.id)}),e.invalidateQueries({queryKey:_.orgFsPublicSets(l.id)})}return t.jsxs("div",{className:"h-full overflow-y-auto",children:[t.jsxs("div",{className:"mx-auto flex w-full max-w-[900px] flex-col gap-10 px-6 py-10 lg:px-10",children:[t.jsxs("div",{className:"flex flex-col gap-2",children:[!c&&t.jsx(ls,{segments:a.segments,onNavigate:d}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("h1",{className:"min-w-0 flex-1 truncate text-xl font-medium text-foreground",children:c?"Library":a.segments.at(-1)??"Library"}),t.jsx(U,{variant:"ghost",size:"icon",onClick:D,"aria-label":"Refresh",children:t.jsx(Xe,{size:14})}),!c&&w&&t.jsxs(U,{variant:"outline",size:"sm",onClick:()=>g(!0),children:[t.jsx(et,{size:14}),"New folder"]}),a.readOnly?t.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[t.jsx(Oe,{size:12}),"Read-only"]}):t.jsxs(U,{size:"sm",disabled:j.isPending,onClick:()=>v.current?.click(),children:[t.jsx(Pe,{size:14}),j.isPending?"Uploading…":"Upload file"]}),t.jsx("input",{ref:v,type:"file",multiple:!0,className:"hidden",onChange:b=>{S(b.target.files)}})]})]}),c?t.jsx(ns,{onOpenDir:d,onOpenFile:u,onDelete:x}):a.volume===null?t.jsx(is,{onOpenDir:d}):t.jsx(rs,{location:a,onOpenDir:d,onOpenFile:u,onOpenSkill:f,onDelete:x},a.volume)]}),i.preview?n&&t.jsx(Wt,{previewPath:i.preview,onClose:()=>r("preview",null)}):i.skill?t.jsx(Zt,{skillPath:i.skill,onClose:()=>r("skill",null)},i.skill):null,t.jsx(fe,{open:y,onOpenChange:g,children:t.jsxs(ue,{children:[t.jsxs(ft,{children:[t.jsx(me,{children:"New folder"}),t.jsxs(ut,{children:["Create a folder in ",o||"the library","."]})]}),t.jsx(ht,{autoFocus:!0,placeholder:"folder-name",value:p,onChange:b=>h(b.target.value),onKeyDown:b=>{b.key==="Enter"&&F()}}),t.jsxs(mt,{children:[t.jsx(U,{variant:"outline",onClick:()=>g(!1),children:"Cancel"}),t.jsx(U,{disabled:!p.trim()||N.isPending,onClick:()=>{F()},children:"Create"})]})]})}),t.jsx(st,{open:m!==null,onOpenChange:b=>{b||x(null)},children:t.jsxs(lt,{children:[t.jsxs(nt,{children:[t.jsxs(it,{children:["Delete ",m?T(m.path):"","?"]}),t.jsx(rt,{children:m?.kind==="dir"?"The folder and everything inside it will be deleted for the whole organization. Sandboxes see this change within seconds.":"The file will be deleted for the whole organization. Sandboxes see this change within seconds."})]}),t.jsxs(ot,{children:[t.jsx(at,{children:"Cancel"}),t.jsx(ct,{onClick:()=>{z()},children:"Delete"})]})]})})]})}function Ms(){const l=C.c(13),e=Te(),s=De();let n;l[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},l[0]=n):n=l[0];const o=ze(n).preview;let a;l[1]!==o?(a=o?T(o):"",l[1]=o,l[2]=a):a=l[2];const c=a;let r;l[3]!==s?(r=()=>s({to:".",search:ds}),l[3]=s,l[4]=r):r=l[4];const d=r;if(e){let x;return l[5]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden bg-background",children:t.jsx(ae,{children:t.jsx(Se,{})})}),l[5]=x):x=l[5],x}let u;l[6]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(Ne,{order:1,minSize:30,defaultSize:55,children:t.jsx("div",{className:"h-full p-0.5 pt-0.25",children:t.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:t.jsx(ae,{children:t.jsx(Se,{})})})})}),l[6]=u):u=l[6];let f;l[7]!==d||l[8]!==c||l[9]!==o?(f=o&&t.jsxs(t.Fragment,{children:[t.jsx(pt.Tabs,{children:t.jsx(gt,{title:c,icon:{kind:"component",Component:x=>t.jsx(E,{filename:c,...x})},active:!0,onClick:d})}),t.jsx(jt,{className:"bg-sidebar"}),t.jsx(Ne,{order:2,minSize:25,defaultSize:45,children:t.jsx("div",{className:"h-full p-0.5 pt-0.25",children:t.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:t.jsx(ae,{children:t.jsx(Yt,{previewPath:o,onClose:d})})})})})]}),l[7]=d,l[8]=c,l[9]=o,l[10]=f):f=l[10];let m;return l[11]!==f?(m=t.jsxs(yt,{direction:"horizontal",className:"min-h-0 flex-1 pt-0 pr-1 pb-1 pl-0",children:[u,f]}),l[11]=f,l[12]=m):m=l[12],m}function ds(l){return{...l,preview:void 0}}export{Ms as default};
|