decocms 3.0.1 → 3.1.1
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-B28Uw1RW.js → AlertCircle-CxNILHAI.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-WBmgYZrx.js → ArrowUpRight-CFrvlSKb.js} +1 -1
- package/dist/client/assets/{Check-BOCJLV3y.js → Check-BeL4GS1_.js} +1 -1
- package/dist/client/assets/{CheckCircle-_55pzSfM.js → CheckCircle-CBRDCM9J.js} +1 -1
- package/dist/client/assets/{ChevronDown-CV--xUvy.js → ChevronDown-MTne56XS.js} +1 -1
- package/dist/client/assets/{ChevronRight-heTs82to.js → ChevronRight-CvPPvt0o.js} +1 -1
- package/dist/client/assets/{ChevronUp-DcHWSSm7.js → ChevronUp-YTSuZxrL.js} +1 -1
- package/dist/client/assets/{Container-FzhKyFoZ.js → Container-Bit7n1Sh.js} +1 -1
- package/dist/client/assets/{DotsVertical-DDZ99W0f.js → DotsVertical-B4Bc-DLw.js} +1 -1
- package/dist/client/assets/{Eye-noiHkOrp.js → Eye-Ds4VIJhE.js} +1 -1
- package/dist/client/assets/{FilterLines-g2_N3FPU.js → FilterLines-BFeQ9DcO.js} +1 -1
- package/dist/client/assets/{Globe01-1jBlWSMT.js → Globe01-BQzG3iWN.js} +1 -1
- package/dist/client/assets/{HardDrive-CgUy3x0D.js → HardDrive-DTFLQufl.js} +1 -1
- package/dist/client/assets/{Key01-Cl2pzaXf.js → Key01-4js0dcqW.js} +1 -1
- package/dist/client/assets/{LinkExternal01-v2P5UzNk.js → LinkExternal01-BhtjVlM2.js} +1 -1
- package/dist/client/assets/{Monitor01-ClzfE62c.js → Monitor01-BVdINEC9.js} +1 -1
- package/dist/client/assets/{Palette-CffZacz4.js → Palette-BesE5Pxh.js} +1 -1
- package/dist/client/assets/{Play-B0ZxJ4t4.js → Play-lA-ptqjk.js} +1 -1
- package/dist/client/assets/{Plus-DqmuLdvr.js → Plus-qO_BvdHx.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-D-uNOUoR.js → RefreshCcw01-B128IIDx.js} +1 -1
- package/dist/client/assets/{SearchMd-P4X6ar44.js → SearchMd-BtButnkh.js} +1 -1
- package/dist/client/assets/{Settings02-RKrtu63s.js → Settings02-MdBElcG9.js} +1 -1
- package/dist/client/assets/{Shield01-DFRrNfSj.js → Shield01-D8p4DW6d.js} +1 -1
- package/dist/client/assets/{Star01-CtCNXz-P.js → Star01-COGAy9Dv.js} +1 -1
- package/dist/client/assets/{Stars01-CFzYkS6H.js → Stars01-DTRRtAlI.js} +1 -1
- package/dist/client/assets/{Stars02-CrBj8xZD.js → Stars02-BcY_Drly.js} +1 -1
- package/dist/client/assets/{Sun-aAROoCnk.js → Sun-Bas_PynU.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CcmLOL7q.js → SwitchHorizontal01-CxmKybBS.js} +1 -1
- package/dist/client/assets/{Tool01-6A9Fsblb.js → Tool01-BkMOx_Zg.js} +1 -1
- package/dist/client/assets/{Trash01-CkigyMZP.js → Trash01-Bn69e6b9.js} +1 -1
- package/dist/client/assets/{Upload01-BRod7cGG.js → Upload01-CIZcbYFv.js} +1 -1
- package/dist/client/assets/{User01-DWgC2swq.js → User01-2zSxOgFX.js} +1 -1
- package/dist/client/assets/{Users01-BG61NnOT.js → Users01-DgModWg5.js} +1 -1
- package/dist/client/assets/{Users03-asSX5JdR.js → Users03-Cz4uncjJ.js} +1 -1
- package/dist/client/assets/{X-B-g8de--.js → X-CE3UzM4P.js} +1 -1
- package/dist/client/assets/{XCircle-B_GpMcVM.js → XCircle-1-iiLXjU.js} +1 -1
- package/dist/client/assets/{XClose-D2vwNDde.js → XClose-g9G_Zn7s.js} +1 -1
- package/dist/client/assets/{Zap-Dq3iqyw0.js → Zap-C8mTTKvq.js} +1 -1
- package/dist/client/assets/{ZapSquare-DEoqsTT0.js → ZapSquare-B6OY2f4C.js} +1 -1
- package/dist/client/assets/{ZoomOut-DngaHA36.js → ZoomOut-28hLmjYh.js} +1 -1
- package/dist/client/assets/{access-gate-CZBmDEpE.js → access-gate-DgvEg9zV.js} +1 -1
- package/dist/client/assets/{accordion-BeMln10f.js → accordion-35QRcX3A.js} +1 -1
- package/dist/client/assets/{add-section-modal-Dv8lgSxh.js → add-section-modal-DrradozH.js} +1 -1
- package/dist/client/assets/{agent-capabilities-B7pJW0iv.js → agent-capabilities-DDgUvP6S.js} +1 -1
- package/dist/client/assets/{agent-icon-BW-u2w9v.js → agent-icon-Cskaw262.js} +1 -1
- package/dist/client/assets/{agent-icons-CdkoupjV.js → agent-icons-B5BeKXhV.js} +1 -1
- package/dist/client/assets/{agents-list-DvCZXIOD.js → agents-list-VFl2m_9Z.js} +1 -1
- package/dist/client/assets/{ai-providers-BUnuwaIZ.js → ai-providers-CfrS7pK8.js} +1 -1
- package/dist/client/assets/{alert-BsBYHEDK.js → alert-D25zRMkS.js} +1 -1
- package/dist/client/assets/{alert-dialog-Bdiqvhx7.js → alert-dialog-CTHJKvkc.js} +1 -1
- package/dist/client/assets/app-editor-D4bXXFjO.js +1 -0
- package/dist/client/assets/{auth-catchall-CwGo_6M1.js → auth-catchall-DbQXTRY4.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CBDU_mOY.js → auth-split-layout-CwF9ktSf.js} +1 -1
- package/dist/client/assets/{automation-list-row-BtOXkm1E.js → automation-list-row-DgdQ33ky.js} +1 -1
- package/dist/client/assets/{automation-runs-DnjNJbU3.js → automation-runs-DwVMM_f5.js} +1 -1
- package/dist/client/assets/{automations-CLCaZoxI.js → automations-BEsJQmQT.js} +1 -1
- package/dist/client/assets/{avatar-CQvVcwn4.js → avatar-CFfnEc-J.js} +1 -1
- package/dist/client/assets/{badge-F8rcWHzd.js → badge-C7r7dui9.js} +1 -1
- package/dist/client/assets/{brand-context-B0pTOkgw.js → brand-context-CFlEXUcG.js} +1 -1
- package/dist/client/assets/{buckets-D8LSo5Rf.js → buckets-DOpWF-IW.js} +1 -1
- package/dist/client/assets/{calendar-CZI0PiEV.js → calendar-DDYw9F8V.js} +1 -1
- package/dist/client/assets/{capability-load-error-VMfeetlU.js → capability-load-error-HBMyqEVf.js} +1 -1
- package/dist/client/assets/{card-6Ipz_CMl.js → card-CQeAx3Vx.js} +1 -1
- package/dist/client/assets/{chat-context-CWjtc6U6.js → chat-context-CoDmdsVu.js} +1 -1
- package/dist/client/assets/{checkbox-CkJGI0NI.js → checkbox-BnUvD6mT.js} +1 -1
- package/dist/client/assets/{cli-auth-success-iGGl-qml.js → cli-auth-success-DgBMSypx.js} +1 -1
- package/dist/client/assets/{collection-detail-C6rBDVT5.js → collection-detail-pzZ_eH5F.js} +1 -1
- package/dist/client/assets/{collection-display-button-CUDdEnYj.js → collection-display-button-C8INbai1.js} +1 -1
- package/dist/client/assets/{collection-search-Do544xDI.js → collection-search-djXmBIPE.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Ix2Vzre8.js → collection-table-wrapper-FUroqPQm.js} +1 -1
- package/dist/client/assets/{collection-tabs-BO0psFxz.js → collection-tabs-Bs1OSqt5.js} +1 -1
- package/dist/client/assets/{collections-BxFMfoOe.js → collections-CtABKNH_.js} +1 -1
- package/dist/client/assets/{command-DX3cLsY8.js → command-BHuJVvxL.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-liLXrHOC.js → connect-desktop-dialog-Bgqlrqoq.js} +1 -1
- package/dist/client/assets/{connection-card-DNsY9YF6.js → connection-card-DRDylcCs.js} +1 -1
- package/dist/client/assets/{connection-detail-C94DXBFr.js → connection-detail-xAj5CM6r.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DVZ8LWtH.js → connection-form-helpers-D5CHE7dE.js} +1 -1
- package/dist/client/assets/{connections-DslFl6fY.js → connections-B2094sHk.js} +1 -1
- package/dist/client/assets/{constants-4XM0nuBZ.js → constants-BYh-snCd.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CAAl5K5r.js → decopilot-sse-pool-0-0bl-bw.js} +1 -1
- package/dist/client/assets/{dialog-DHqPz-hD.js → dialog-B1WfX0fX.js} +1 -1
- package/dist/client/assets/{domain-settings-BuC2DAO8.js → domain-settings-Bj0SU3Jh.js} +1 -1
- package/dist/client/assets/{drawer-BqWTD1XZ.js → drawer-Dep0gGKV.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CS9F3-M0.js → dropdown-menu-CtbTHljl.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BUfQV_QY.js → dynamic-plugin-layout-DFDLPUiJ.js} +1 -1
- package/dist/client/assets/{empty-state-BkcDcS8h.js → empty-state-AxYPR9mA.js} +1 -1
- package/dist/client/assets/{empty-state-D62yzNVr.js → empty-state-C4k8yJuW.js} +1 -1
- package/dist/client/assets/{extract-connection-data-QmFQ277_.js → extract-connection-data-BEWjJFKe.js} +1 -1
- package/dist/client/assets/{features-DulMSc5j.js → features-BAJOu4LV.js} +1 -1
- package/dist/client/assets/{file-explorer-B065xE8P.js → file-explorer-CaAsV_yv.js} +1 -1
- package/dist/client/assets/{file-preview-sAXTRed7.js → file-preview-BGdcimIO.js} +1 -1
- package/dist/client/assets/{file-type-icon-Bb1j8Qic.js → file-type-icon-DdVRbJPB.js} +1 -1
- package/dist/client/assets/{files-8hCBQDCx.js → files-BOX6m6w-.js} +1 -1
- package/dist/client/assets/{form-C5aKGFfC.js → form-CpQMhVrb.js} +1 -1
- package/dist/client/assets/{general-QSPEykV3.js → general-DL2gq1lt.js} +1 -1
- package/dist/client/assets/{generate-id-7UivDdyz.js → generate-id-C_OqT9sT.js} +1 -1
- package/dist/client/assets/{github-repo-picker-C7eCjenw.js → github-repo-picker-CkY8kpmI.js} +1 -1
- package/dist/client/assets/{hover-card-B7gMm1Cu.js → hover-card-IdAGrE8c.js} +1 -1
- package/dist/client/assets/{image-field-Ddy39V1A.js → image-field-CCXEEm_r.js} +1 -1
- package/dist/client/assets/{index-BsmjP4VR.js → index-A1X2xYA3.js} +1 -1
- package/dist/client/assets/{index-RO6JiG_I.js → index-Bc32gYoS.js} +1 -1
- package/dist/client/assets/{index-BxPtVHIQ.js → index-BjwVvH1j.js} +3 -3
- package/dist/client/assets/{index-ChnoaxGH.js → index-BmWH7CJj.js} +1 -1
- package/dist/client/assets/{index-C66wfg1J.js → index-Br_CKeN5.js} +1 -1
- package/dist/client/assets/{index-BurgFS3K.js → index-BtsB6V7_.js} +1 -1
- package/dist/client/assets/{index-6DAHTzr2.js → index-Clwo7vBK.js} +1 -1
- package/dist/client/assets/{index-bMtWBHu-.js → index-D-gelnlt.js} +1 -1
- package/dist/client/assets/{index-XXzlBQR7.js → index-D3GsqLC9.js} +1 -1
- package/dist/client/assets/{index-DNfV0eRL.js → index-DRtry2B5.js} +4 -4
- package/dist/client/assets/{index-wny57JRh.js → index-DsSC-nYU.js} +1 -1
- package/dist/client/assets/{index-B4LQo6MM.js → index-DvwFUL0N.js} +1 -1
- package/dist/client/assets/{index-BYjeYZlJ.js → index-NrIASxVs.js} +1 -1
- package/dist/client/assets/{index-redirect-BgNAIXCI.js → index-redirect-D9hGZXDU.js} +1 -1
- package/dist/client/assets/{index-CZ0A0ITn.js → index-tFqoM1Ue.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-C7nbjefa.js → infiniteQueryObserver-zIrc5Qb-.js} +1 -1
- package/dist/client/assets/{input-xqkzX9eY.js → input-TCcH2B8J.js} +1 -1
- package/dist/client/assets/{integration-icon-BqPNwi_6.js → integration-icon-5HuLoYU0.js} +1 -1
- package/dist/client/assets/{label-BswrLMx-.js → label-BViApHhU.js} +1 -1
- package/dist/client/assets/{layout-b36OFeeD.js → layout-B9a5IDDQ.js} +1 -1
- package/dist/client/assets/{login-DEqGd1By.js → login-D3EioMPr.js} +1 -1
- package/dist/client/assets/{members-Dvxgo1fh.js → members-CN5s--K8.js} +1 -1
- package/dist/client/assets/{monaco-editor-D0UXn2-s.js → monaco-editor-CE4b2z1c.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BGhlfQeS.js → monitoring-stats-row-DGR7pZ3H.js} +1 -1
- package/dist/client/assets/{oauth-callback-DgTUjXzs.js → oauth-callback-DcFJji4Y.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BJvfWbGy.js → oauth-callback-ai-provider-D9t9n8Ym.js} +1 -1
- package/dist/client/assets/{onboarding-BEwnDAZB.js → onboarding-DHTDbj5z.js} +1 -1
- package/dist/client/assets/{org-install-Bk24nYFm.js → org-install-CIdRAEm2.js} +1 -1
- package/dist/client/assets/{org-layout-DqR3vx-5.js → org-layout-DRc-KmSs.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-DkFbCW9j.js → org-plugin-layout-DgmQetHp.js} +1 -1
- package/dist/client/assets/{page-seo-form-BIwkMhd0.js → page-seo-form-D5SZyBD6.js} +1 -1
- package/dist/client/assets/page-seo-sheet-B7uG_k7J.js +1 -0
- package/dist/client/assets/{pair-COenZshU.js → pair-Dm3vXKHB.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BiSI2wqx.js → plugin-empty-state-Bf9odw8A.js} +1 -1
- package/dist/client/assets/{plugin-header-CQlUyuwu.js → plugin-header-Cq5KYo9E.js} +1 -1
- package/dist/client/assets/{plugin-layout-aidofRRy.js → plugin-layout-BkNnTwna.js} +1 -1
- package/dist/client/assets/{popover-D4EHFN_E.js → popover-B1dASX2L.js} +1 -1
- package/dist/client/assets/{post-editor-CATQggX9.js → post-editor-3e4Nt15j.js} +1 -1
- package/dist/client/assets/{primitives-i68XN_YM.js → primitives-uPNqrnk9.js} +1 -1
- package/dist/client/assets/{profile-D9qqF1aF.js → profile-BgHkQW0e.js} +1 -1
- package/dist/client/assets/{project-app-view-Bmio7oXs.js → project-app-view-DiTZBc1v.js} +1 -1
- package/dist/client/assets/record-editor-jUcC7iQk.js +1 -0
- package/dist/client/assets/registry-gHvWojgu.js +2 -0
- package/dist/client/assets/{registry-layout-Cl5trTwQ.js → registry-layout-B1Hpl1yP.js} +1 -1
- package/dist/client/assets/{require-capability-SPJhKoEZ.js → require-capability-KE97O8Qd.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Dvx23MEH.js → required-auth-layout-czExuZSc.js} +1 -1
- package/dist/client/assets/{reset-password-CBI6bXoK.js → reset-password-BKRGZfbP.js} +1 -1
- package/dist/client/assets/{roles-DB9MQ90s.js → roles-BGyrSjtm.js} +1 -1
- package/dist/client/assets/{save-status-CsZC3Oqk.js → save-status-CPJd6ss9.js} +1 -1
- package/dist/client/assets/{schema-form-CGGKKtPJ.js → schema-form-BLcU5y90.js} +1 -1
- package/dist/client/assets/{scroll-area-BlEvmH6F.js → scroll-area-DZWAWvpP.js} +1 -1
- package/dist/client/assets/{search-input-Bgbw24J5.js → search-input-CdCRzERo.js} +1 -1
- package/dist/client/assets/{secrets-D0DS-M5P.js → secrets-cR95slO6.js} +1 -1
- package/dist/client/assets/{sections-editor-D-8Kc9kr.js → sections-editor-CvNT1WLU.js} +1 -1
- package/dist/client/assets/{select-CwF_WH3K.js → select-DNVrcssU.js} +1 -1
- package/dist/client/assets/{select-model-C6AV-kfx.js → select-model-B69NuWL6.js} +1 -1
- package/dist/client/assets/{seo-editor-BCS-OxCu.js → seo-editor-BlLr8Anw.js} +1 -1
- package/dist/client/assets/{settings-layout-BNWNtB8e.js → settings-layout-JDfHTLLv.js} +1 -1
- package/dist/client/assets/{settings-section-C06tz-Ci.js → settings-section-Q3UDwB5x.js} +1 -1
- package/dist/client/assets/{sheet-C-3A4CL_.js → sheet-Du3LaF1v.js} +1 -1
- package/dist/client/assets/{shell-controls-B_IgjqHv.js → shell-controls-Bk3erCNC.js} +1 -1
- package/dist/client/assets/{shell-layout-CYpRigPY.js → shell-layout-D_pe8ifX.js} +1 -1
- package/dist/client/assets/{shell-route-loading-DqukLP3Q.js → shell-route-loading-BoEMybHy.js} +1 -1
- package/dist/client/assets/{sidebar-CRv_4sw5.js → sidebar-Dd570BWA.js} +1 -1
- package/dist/client/assets/{skeleton-DSdWCJNI.js → skeleton-IVNi55cd.js} +1 -1
- package/dist/client/assets/{sortable.esm-Byw1-dw8.js → sortable.esm-B3QQU5eL.js} +1 -1
- package/dist/client/assets/{spinner-GIHAjKQd.js → spinner-DYX6X7R4.js} +1 -1
- package/dist/client/assets/{sso-DHqlB7rX.js → sso-j3NAsCEv.js} +1 -1
- package/dist/client/assets/{store-ClJTewu-.js → store-BgMFXMyn.js} +1 -1
- package/dist/client/assets/store-registry-BMLFpwYx.js +2 -0
- package/dist/client/assets/{switch-BJ4iX5me.js → switch-v-IGg8-o.js} +1 -1
- package/dist/client/assets/{tab-id-D8U7mvd8.js → tab-id-9wF6NJdU.js} +1 -1
- package/dist/client/assets/{table-BhK_M2f9.js → table-DPhKP8io.js} +1 -1
- package/dist/client/assets/{tabs-DPLHNyRl.js → tabs-DiXWlenI.js} +1 -1
- package/dist/client/assets/{task-status-Chg3otOt.js → task-status-X6M92gi6.js} +1 -1
- package/dist/client/assets/{textarea-BoqJ5Fkt.js → textarea-C5Q-gAUC.js} +1 -1
- package/dist/client/assets/{toggle-group-BTpbf6Pn.js → toggle-group-CinhryiV.js} +1 -1
- package/dist/client/assets/{toolbar-C2FhZ9uD.js → toolbar-CiwzJ7Ce.js} +1 -1
- package/dist/client/assets/{tools-list-eMW4fAZ0.js → tools-list-BQckCc_7.js} +1 -1
- package/dist/client/assets/{tooltip-CMsb2WnS.js → tooltip-DlPcHg_7.js} +1 -1
- package/dist/client/assets/{types-DjTmC9zb.js → types-CxzjkgWq.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CJUy3Gaz.js → use-ai-providers-WePD6A-o.js} +1 -1
- package/dist/client/assets/{use-automations-C4mh77MB.js → use-automations-BoufmASv.js} +1 -1
- package/dist/client/assets/{use-capability-DG5u8VaS.js → use-capability-Cy5OhZ8q.js} +1 -1
- package/dist/client/assets/{use-collections-DwIFB5kz.js → use-collections-CBTBl02k.js} +1 -1
- package/dist/client/assets/{use-connection-0YOaJAZN.js → use-connection-ByC-72lH.js} +1 -1
- package/dist/client/assets/{use-copy-DuyDzvoz.js → use-copy-CG7aV8Bw.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DNvqDb7E.js → use-create-virtual-mcp-C-9PxkTd.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CHIMVxh_.js → use-debounced-autosave-DzWM-CGc.js} +1 -1
- package/dist/client/assets/{use-delete-connection-D_ZDXUUg.js → use-delete-connection-DRg_9jbq.js} +1 -1
- package/dist/client/assets/{use-file-configs-DvgWm-To.js → use-file-configs-BZO0VMnL.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Bhwq1kxe.js → use-infinite-scroll-BqDKzW2x.js} +1 -1
- package/dist/client/assets/{use-list-state-DFaPhmOq.js → use-list-state-BdNzxfM6.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CEJFvBue.js → use-mcp-prompts-BeFY3ScJ.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CaykN2XX.js → use-mcp-tools-G51_uFwc.js} +1 -1
- package/dist/client/assets/{use-members-DLAWfPAh.js → use-members-BPoi4C1A.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-4QQ21AGg.js → use-navigate-to-agent-CtPEdzh1.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DBZvpLVA.js → use-org-auth-client-DdXOtn0H.js} +1 -1
- package/dist/client/assets/{use-org-sso-CsA5v0Z4.js → use-org-sso-fN4GsRuW.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C4R3M_W4.js → use-organization-roles-WXW_5wWn.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Y7Kj522-.js → use-organization-settings-By_UmZEV.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BMxBJYMf.js → use-registry-connections-BkZ2ZOJD.js} +1 -1
- package/dist/client/assets/{use-secrets-zwEzfKQ5.js → use-secrets-BJelzSB8.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DoL2NgT7.js → use-status-sounds-DU2Ydnj4.js} +1 -1
- package/dist/client/assets/{use-view-mode-hee7O7RX.js → use-view-mode-DogmWo4G.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-D_7Vq8Kw.js → use-virtual-mcp-CT-9keNI.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-scYJJ_GM.js +1 -0
- package/dist/client/assets/{useRouterState-C4SEkKex.js → useRouterState-CwEmwiBC.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BDTBkP42.js +1 -0
- package/dist/client/assets/{user-0jeQgz8M.js → user-CoJ75n6g.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C0KBvhcd.js → view-mode-toggle-Cab9lVhf.js} +1 -1
- package/dist/client/assets/{workflow-C8JhcI3f.js → workflow-DmweYSPb.js} +1 -1
- package/dist/client/assets/workflow-detail-Ce7Ha6ta.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +475 -466
- package/dist/server/server.js +298 -298
- package/package.json +1 -1
- package/dist/client/assets/app-editor-DKg44XSx.js +0 -1
- package/dist/client/assets/page-seo-sheet-C0Pr1Imd.js +0 -1
- package/dist/client/assets/record-editor-CirCM1IB.js +0 -1
- package/dist/client/assets/registry-BtN189el.js +0 -2
- package/dist/client/assets/store-registry-3Cjn6i2B.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CPC0r8em.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BodI3yGZ.js +0 -1
- package/dist/client/assets/workflow-detail-D0yOa3ow.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as $,q as E,F as Fe,a as ie,K as T,n as q,b2 as Le,r as X,j as s,B as P,c as Re,E as je,f as Be,d as Ke,z as Ie,o as G}from"./index-
|
|
1
|
+
import{e as $,q as E,F as Fe,a as ie,K as T,n as q,b2 as Le,r as X,j as s,B as P,c as Re,E as je,f as Be,d as Ke,z as Ie,o as G}from"./index-BjwVvH1j.js";import{i as He}from"./ChevronRight-CvPPvt0o.js";import{s as Ce}from"./Eye-Ds4VIJhE.js";import{n as Se,i as Ve}from"./Globe01-BQzG3iWN.js";import{i as De,a as Ge}from"./ZoomOut-28hLmjYh.js";import{s as Qe}from"./Plus-qO_BvdHx.js";import{t as Xe}from"./Stars01-DTRRtAlI.js";import{i as Oe}from"./Upload01-CIZcbYFv.js";import{b as ye,T as we,a as be,u as We}from"./tooltip-DlPcHg_7.js";import{A as Ye,a as Ze,b as Je,c as et,d as tt,e as st,f as lt,g as nt}from"./alert-dialog-CTHJKvkc.js";import{D as re,a as oe,c as ae,b as it,e as rt,d as ot}from"./dialog-B1WfX0fX.js";import{I as at}from"./input-TCcH2B8J.js";import{S as W}from"./skeleton-IVNi55cd.js";import{i as ce}from"./DotsVertical-B4Bc-DLw.js";import{s as de}from"./Trash01-Bn69e6b9.js";import{i as ze}from"./Zap-C8mTTKvq.js";import{a as fe,c as Z,b as ue,D as me}from"./dropdown-menu-CtbTHljl.js";import{F as Q,d as Pe,M as ct}from"./file-type-icon-DdVRbJPB.js";import{n as dt}from"./LinkExternal01-BhtjVlM2.js";import{f as Te,a as ft,F as ut}from"./file-preview-BGdcimIO.js";import"./X-CE3UzM4P.js";import"./Check-BeL4GS1_.js";const mt=new Set(["output","upload","public","home"]),ht=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;function xt(l){return mt.has(l)||!ht.test(l)?"home":l}function _(l,e,t,n){const i=new URLSearchParams(n).toString();return`/api/${encodeURIComponent(l)}/fs/${encodeURIComponent(e)}/${t}${i?`?${i}`:""}`}async function R(l,e){const t=await fetch(l,e);if(!t.ok){let n="";try{n=(await t.json()).error??""}catch{}throw new Error(n||`HTTP ${t.status}`)}return t}function Ue(l,e){const t=$.c(11),{org:n}=E();let i;t[0]!==n.id||t[1]!==e||t[2]!==l?(i=T.orgFsList(n.id,l,e),t[0]=n.id,t[1]=e,t[2]=l,t[3]=i):i=t[3];let r;t[4]!==n.slug||t[5]!==e||t[6]!==l?(r=async()=>(await(await R(_(n.slug,l,"list",{path:e}))).json()).entries.toSorted(pt),t[4]=n.slug,t[5]=e,t[6]=l,t[7]=r):r=t[7];let a;return t[8]!==i||t[9]!==r?(a={queryKey:i,placeholderData:Le,queryFn:r},t[8]=i,t[9]=r,t[10]=a):a=t[10],q(a)}function pt(l,e){return l.kind!==e.kind?l.kind==="dir"?-1:1:l.path.localeCompare(e.path)}function gt(l,e){const t=$.c(12),{org:n}=E();let i;t[0]!==n.id||t[1]!==e||t[2]!==l?(i=T.orgFsStat(n.id,l??"",e),t[0]=n.id,t[1]=e,t[2]=l,t[3]=i):i=t[3];const r=l!==null;let a;t[4]!==n.slug||t[5]!==e||t[6]!==l?(a=async()=>{const o=await fetch(_(n.slug,l??"","stat",{path:e}));if(o.status===404)return null;if(!o.ok)throw new Error(`HTTP ${o.status}`);return(await o.json()).entry},t[4]=n.slug,t[5]=e,t[6]=l,t[7]=a):a=t[7];let c;return t[8]!==i||t[9]!==r||t[10]!==a?(c={queryKey:i,enabled:r,queryFn:a},t[8]=i,t[9]=r,t[10]=a,t[11]=c):c=t[11],q(c)}function jt(l){const e=$.c(9),{org:t}=E();let n;e[0]!==t.id||e[1]!==l?(n=T.orgFsUsage(t.id,l),e[0]=t.id,e[1]=l,e[2]=n):n=e[2];let i;e[3]!==t.slug||e[4]!==l?(i=async()=>await(await R(_(t.slug,l,"usage"))).json(),e[3]=t.slug,e[4]=l,e[5]=i):i=e[5];let r;return e[6]!==n||e[7]!==i?(r={queryKey:n,queryFn:i},e[6]=n,e[7]=i,e[8]=r):r=e[8],q(r)}function yt(l){const e=$.c(8),t=60,{org:n}=E();let i;e[0]!==n.id?(i=T.orgFsRecent(n.id),e[0]=n.id,e[1]=i):i=e[1];let r;e[2]!==t||e[3]!==n.slug?(r=async()=>(await(await R(`/api/${encodeURIComponent(n.slug)}/fs/recent?limit=${t}`)).json()).entries,e[2]=t,e[3]=n.slug,e[4]=r):r=e[4];let a;return e[5]!==i||e[6]!==r?(a={queryKey:i,queryFn:r},e[5]=i,e[6]=r,e[7]=a):a=e[7],q(a)}function Ae(){const l=$.c(7),{org:e}=E();let t;l[0]!==e.id?(t=T.orgFsPublicSets(e.id),l[0]=e.id,l[1]=t):t=l[1];let n;l[2]!==e.slug?(n=async()=>(await(await R(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,l[2]=e.slug,l[3]=n):n=l[3];let i;return l[4]!==t||l[5]!==n?(i={queryKey:t,staleTime:3e5,queryFn:n},l[4]=t,l[5]=n,l[6]=i):i=l[6],q(i)}function wt(l){const e=$.c(3),{org:t}=E();let n;return e[0]!==t.slug||e[1]!==l?(n=i=>_(t.slug,l,"read",{path:i}),e[0]=t.slug,e[1]=l,e[2]=n):n=e[2],n}function he(){const l=$.c(2),{org:e}=E();let t;return l[0]!==e.slug?(t=(n,i)=>_(e.slug,n,"read",{path:i}),l[0]=e.slug,l[1]=t):t=l[1],t}function ve(l){const e=$.c(26),{org:t}=E(),n=Fe();let i;e[0]!==t||e[1]!==n||e[2]!==l?(i=()=>{n.invalidateQueries({queryKey:T.orgFsVolume(t.id,l)}),n.invalidateQueries({queryKey:T.orgFsRecent(t.id)})},e[0]=t,e[1]=n,e[2]=l,e[3]=i):i=e[3];const r=i;let a;e[4]!==t||e[5]!==l?(a=async x=>{for(const b of x.files){const h=x.dir?`${x.dir}/${b.name}`:b.name;await R(_(t.slug,l,"file",{path:h}),{method:"PUT",headers:{"content-type":b.type||"application/octet-stream"},body:b})}},e[4]=t,e[5]=l,e[6]=a):a=e[6];let c;e[7]!==r||e[8]!==a?(c={mutationFn:a,onSettled:r},e[7]=r,e[8]=a,e[9]=c):c=e[9];const o=ie(c);let d;e[10]!==t||e[11]!==l?(d=async x=>{await R(_(t.slug,l,"dir",{path:x}),{method:"POST"})},e[10]=t,e[11]=l,e[12]=d):d=e[12];let u;e[13]!==r||e[14]!==d?(u={mutationFn:d,onSuccess:r},e[13]=r,e[14]=d,e[15]=u):u=e[15];const f=ie(u);let m;e[16]!==t||e[17]!==l?(m=async x=>{await R(_(t.slug,l,"file",{path:x}),{method:"DELETE"})},e[16]=t,e[17]=l,e[18]=m):m=e[18];let y;e[19]!==r||e[20]!==m?(y={mutationFn:m,onSuccess:r},e[19]=r,e[20]=m,e[21]=y):y=e[21];const w=ie(y);let g;return e[22]!==f||e[23]!==w||e[24]!==o?(g={upload:o,mkdir:f,remove:w},e[22]=f,e[23]=w,e[24]=o,e[25]=g):g=e[25],g}function bt(l){const e=$.c(33);let t,n,i;e[0]!==l?({glyph:t,readOnly:i,...n}=l,e[0]=l,e[1]=t,e[2]=n,e[3]=i):(t=e[1],n=e[2],i=e[3]);const r=X.useId(),a=`${r}-back`,c=`${r}-front`,o=`url(#${a})`;let d;e[4]!==o?(d=s.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:o}),e[4]=o,e[5]=d):d=e[5];const u=`url(#${c})`;let f;e[6]!==u?(f=s.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,y,w;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("rect",{x:"0.3",y:"8.86",width:"31.4",height:"0.55",rx:"0.275",fill:"#FFFFFF",opacity:"0.25"}),y=s.jsx("rect",{y:"25.81",width:"32",height:"0.552",fill:"#84CDFB"}),w=s.jsx("rect",{y:"27.05",width:"32",height:"0.552",fill:"#84CDFB"}),e[8]=m,e[9]=y,e[10]=w):(m=e[8],y=e[9],w=e[10]);let g;e[11]!==t?(g=t&&s.jsx(t,{x:10.5,y:13.2,width:11,height:11,strokeWidth:2.2,style:{color:"#014AC9",opacity:.55}}),e[11]=t,e[12]=g):g=e[12];let x;e[13]!==i?(x=i&&s.jsxs(s.Fragment,{children:[s.jsx("circle",{cx:"25.5",cy:"25.5",r:"6.2",strokeWidth:"1",className:"fill-background stroke-border"}),s.jsx(Ce,{x:22.1,y:22.1,width:6.8,height:6.8,strokeWidth:2.2,className:"text-muted-foreground"})]}),e[13]=i,e[14]=x):x=e[14];let b,h;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("stop",{offset:"0.3",stopColor:"#4D87DF"}),h=s.jsx("stop",{offset:"1",stopColor:"#296FE8"}),e[15]=b,e[16]=h):(b=e[15],h=e[16]);let v;e[17]!==a?(v=s.jsxs("linearGradient",{id:a,x1:"15.97",y1:"2.55",x2:"15.97",y2:"9.53",gradientUnits:"userSpaceOnUse",children:[b,h]}),e[17]=a,e[18]=v):v=e[18];let N,p;e[19]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx("stop",{stopColor:"#72B6FA"}),p=s.jsx("stop",{offset:"1",stopColor:"#5BB1EF"}),e[19]=N,e[20]=p):(N=e[19],p=e[20]);let k;e[21]!==c?(k=s.jsxs("radialGradient",{id:c,cx:"0",cy:"0",r:"10",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1.6 0 0 2.1538 16 19.22)",children:[N,p]}),e[21]=c,e[22]=k):k=e[22];let F;e[23]!==v||e[24]!==k?(F=s.jsxs("defs",{children:[v,k]}),e[23]=v,e[24]=k,e[25]=F):F=e[25];let S;return e[26]!==n||e[27]!==F||e[28]!==d||e[29]!==f||e[30]!==g||e[31]!==x?(S=s.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...n,children:[d,f,m,y,w,g,x,F]}),e[26]=n,e[27]=F,e[28]=d,e[29]=f,e[30]=g,e[31]=x,e[32]=S):S=e[32],S}function vt(l){const e={};for(const t of l.split(`
|
|
2
2
|
`)){const n=t.match(/^([A-Za-z][\w-]*):\s*(.*)$/);n?.[1]&&n[2]!==void 0&&(e[n[1].toLowerCase()]=n[2].trim())}return e}function ke(l){for(const e of l.split(/\n\s*\n/)){const t=e.trim();if(!(!t||t.startsWith("#")))return t.replace(/\n/g," ")}return null}function Ee(l){const e=l.match(/^---\n([\s\S]*?)\n---\n?/);if(!e||e[1]===void 0)return{name:null,description:ke(l),body:l};const t=vt(e[1]),n=l.slice(e[0].length);return{name:t.name||null,description:t.description||ke(n),body:n}}const kt=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),Nt=new Set(["txt","md","markdown","json","csv","tsv","log","yaml","yml","xml","html","htm"]),$t=256*1024;function ee(l){const e=new Date(l);if(Number.isNaN(e.getTime()))return"";const t=Date.now()-e.getTime(),n=Math.floor(t/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 r=Math.floor(i/24);return r<30?`${r}d ago`:e.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Ft(l){return l.split(".").pop()?.toLowerCase()??""}function _e(l){const e=$.c(15),{downloadUrl:t,filename:n,onDelete:i}=l,r=`Actions for ${n}`;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(ce,{size:14}),e[0]=a):a=e[0];let c;e[1]!==r?(c=s.jsx(fe,{asChild:!0,children:s.jsx(P,{variant:"ghost",size:"icon",className:"size-6 shrink-0 opacity-0 transition-opacity group-hover/card:opacity-100 data-[state=open]:opacity-100",onClick:St,"aria-label":r,children:a})}),e[1]=r,e[2]=c):c=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Se,{size:14}),e[3]=o):o=e[3];let d;e[4]!==t||e[5]!==n?(d=s.jsx(Z,{asChild:!0,children:s.jsxs("a",{href:t,download:n,children:[o,"Download"]})}),e[4]=t,e[5]=n,e[6]=d):d=e[6];let u;e[7]!==i?(u=i&&s.jsxs(Z,{variant:"destructive",onClick:i,children:[s.jsx(de,{size:14}),"Delete"]}),e[7]=i,e[8]=u):u=e[8];let f;e[9]!==d||e[10]!==u?(f=s.jsxs(ue,{align:"end",onClick:Ct,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=s.jsxs(me,{children:[c,f]}),e[12]=c,e[13]=f,e[14]=m):m=e[14],m}function Ct(l){return l.stopPropagation()}function St(l){return l.stopPropagation()}function te(l){const e=$.c(9),{onOpen:t,children:n,className:i}=l;let r;e[0]!==t?(r=o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),t())},e[0]=t,e[1]=r):r=e[1];let a;e[2]!==i?(a=Re("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]!==t||e[6]!==r||e[7]!==a?(c=s.jsx("div",{role:"button",tabIndex:0,onClick:t,onKeyDown:r,className:a,children:n}),e[4]=n,e[5]=t,e[6]=r,e[7]=a,e[8]=c):c=e[8],c}function se(l){const e=$.c(16),{icon:t,name:n,meta:i,subtitle:r,actions:a}=l;let c;e[0]!==n?(c=s.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 o;e[2]!==i?(o=i&&s.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:i}),e[2]=i,e[3]=o):o=e[3];let d;e[4]!==c||e[5]!==o?(d=s.jsxs("div",{className:"flex items-start gap-3",children:[c,o]}),e[4]=c,e[5]=o,e[6]=d):d=e[6];let u;e[7]!==r?(u=r&&s.jsx("span",{className:"text-xs text-muted-foreground",children:r}),e[7]=r,e[8]=u):u=e[8];let f;e[9]!==d||e[10]!==u?(f=s.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]!==t||e[14]!==f?(m=s.jsxs("div",{className:"flex w-full items-center gap-2.5",children:[t,f,a]}),e[12]=a,e[13]=t,e[14]=f,e[15]=m):m=e[15],m}function le(l){const e=$.c(15),{name:t,meta:n,subtitle:i,glyph:r,readOnly:a,onOpen:c,onDelete:o}=l;let d;e[0]!==r||e[1]!==a?(d=s.jsx(bt,{glyph:r,readOnly:a,className:"size-8 shrink-0"}),e[0]=r,e[1]=a,e[2]=d):d=e[2];let u;e[3]!==t||e[4]!==o?(u=o?s.jsxs(me,{children:[s.jsx(fe,{asChild:!0,children:s.jsx(P,{variant:"ghost",size:"icon",className:"size-6 shrink-0 opacity-0 transition-opacity group-hover/card:opacity-100 data-[state=open]:opacity-100",onClick:Ot,"aria-label":`Actions for ${t}`,children:s.jsx(ce,{size:14})})}),s.jsx(ue,{align:"end",onClick:Dt,children:s.jsxs(Z,{variant:"destructive",onClick:o,children:[s.jsx(de,{size:14}),"Delete"]})})]}):void 0,e[3]=t,e[4]=o,e[5]=u):u=e[5];let f;e[6]!==n||e[7]!==t||e[8]!==i||e[9]!==d||e[10]!==u?(f=s.jsx(se,{icon:d,name:t,meta:n,subtitle:i,actions:u}),e[6]=n,e[7]=t,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=s.jsx(te,{onOpen:c,children:f}),e[12]=c,e[13]=f,e[14]=m):m=e[14],m}function Dt(l){return l.stopPropagation()}function Ot(l){return l.stopPropagation()}function Me(l){const e=$.c(19),{filename:t,updatedAt:n,downloadUrl:i,onOpen:r,onDelete:a}=l;let c;e[0]!==t?(c=s.jsx(Q,{filename:t,className:"h-8 w-6.5 shrink-0"}),e[0]=t,e[1]=c):c=e[1];let o;e[2]!==n?(o=ee(n),e[2]=n,e[3]=o):o=e[3];let d;e[4]!==t?(d=Pe(t),e[4]=t,e[5]=d):d=e[5];let u;e[6]!==i||e[7]!==t||e[8]!==a?(u=s.jsx(_e,{downloadUrl:i,filename:t,onDelete:a}),e[6]=i,e[7]=t,e[8]=a,e[9]=u):u=e[9];let f;e[10]!==t||e[11]!==c||e[12]!==o||e[13]!==d||e[14]!==u?(f=s.jsx(se,{icon:c,name:t,meta:o,subtitle:d,actions:u}),e[10]=t,e[11]=c,e[12]=o,e[13]=d,e[14]=u,e[15]=f):f=e[15];let m;return e[16]!==r||e[17]!==f?(m=s.jsx(te,{onOpen:r,children:f}),e[16]=r,e[17]=f,e[18]=m):m=e[18],m}function zt(l){const e=$.c(36),{dirName:t,updatedAt:n,skillMdUrl:i,onOpen:r,onBrowse:a,onDelete:c}=l;let o;e[0]!==i?(o=T.fileText(i),e[0]=i,e[1]=o):o=e[1];let d;e[2]!==i?(d=async()=>{const C=await fetch(i,{credentials:"include"});if(!C.ok)throw new Error(`fetch failed: ${C.status}`);return C.text()},e[2]=i,e[3]=d):d=e[3];let u;e[4]!==o||e[5]!==d?(u={queryKey:o,queryFn:d,staleTime:6e4,retry:!1},e[4]=o,e[5]=d,e[6]=u):u=e[6];const{data:f}=q(u);let m;e[7]!==f?(m=f?Ee(f):null,e[7]=f,e[8]=m):m=e[8];const y=m;let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary",children:s.jsx(ze,{size:16})}),e[9]=w):w=e[9];const g=y?.name??t;let x;e[10]!==n?(x=ee(n),e[10]=n,e[11]=x):x=e[11];const b=`Actions for ${t}`;let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(ce,{size:14}),e[12]=h):h=e[12];let v;e[13]!==b?(v=s.jsx(fe,{asChild:!0,children:s.jsx(P,{variant:"ghost",size:"icon",className:"size-6 shrink-0 opacity-0 transition-opacity group-hover/card:opacity-100 data-[state=open]:opacity-100",onClick:Tt,"aria-label":b,children:h})}),e[13]=b,e[14]=v):v=e[14];let N;e[15]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(De,{size:14}),e[15]=N):N=e[15];let p;e[16]!==a?(p=s.jsxs(Z,{onClick:a,children:[N,"Browse files"]}),e[16]=a,e[17]=p):p=e[17];let k;e[18]!==c?(k=c&&s.jsxs(Z,{variant:"destructive",onClick:c,children:[s.jsx(de,{size:14}),"Delete"]}),e[18]=c,e[19]=k):k=e[19];let F;e[20]!==p||e[21]!==k?(F=s.jsxs(ue,{align:"end",onClick:Pt,children:[p,k]}),e[20]=p,e[21]=k,e[22]=F):F=e[22];let S;e[23]!==v||e[24]!==F?(S=s.jsxs(me,{children:[v,F]}),e[23]=v,e[24]=F,e[25]=S):S=e[25];let D;e[26]!==S||e[27]!==g||e[28]!==x?(D=s.jsx(se,{icon:w,name:g,meta:x,subtitle:"Skill",actions:S}),e[26]=S,e[27]=g,e[28]=x,e[29]=D):D=e[29];const z=y?.description??"";let O;e[30]!==z?(O=s.jsx("p",{className:"line-clamp-2 min-h-8 text-xs leading-4 text-muted-foreground",children:z}),e[30]=z,e[31]=O):O=e[31];let j;return e[32]!==r||e[33]!==D||e[34]!==O?(j=s.jsxs(te,{onOpen:r,children:[D,O]}),e[32]=r,e[33]=D,e[34]=O,e[35]=j):j=e[35],j}function Pt(l){return l.stopPropagation()}function Tt(l){return l.stopPropagation()}function Ut(l){const e=$.c(11),{url:t}=l;let n;e[0]!==t?(n=T.fileText(t),e[0]=t,e[1]=n):n=e[1];let i;e[2]!==t?(i=async()=>{const d=await fetch(t,{credentials:"include"});if(!d.ok)throw new Error(`fetch failed: ${d.status}`);return d.text()},e[2]=t,e[3]=i):i=e[3];let r;e[4]!==n||e[5]!==i?(r={queryKey:n,queryFn:i,staleTime:6e4,retry:!1},e[4]=n,e[5]=i,e[6]=r):r=e[6];const{data:a}=q(r);if(!a)return null;let c;e[7]!==a?(c=a.slice(0,2e3),e[7]=a,e[8]=c):c=e[8];let o;return e[9]!==c?(o=s.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]=o):o=e[10],o}function At(l){const e=$.c(4),{filename:t,size:n,downloadUrl:i}=l;let r;if(e[0]!==i||e[1]!==t||e[2]!==n){const a=Ft(t),c=kt.has(a)?s.jsx("img",{src:i,alt:"",loading:"lazy",className:"h-full w-full object-cover"}):Nt.has(a)&&n<=$t?s.jsx(Ut,{url:i}):s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsx(Q,{filename:t,className:"h-14 w-11 opacity-60"})});r=s.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]=t,e[2]=n,e[3]=r}else r=e[3];return r}function Et(l){const e=$.c(24),t=l.onOpen;let n;e[0]!==l.filename?(n=s.jsx(Q,{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 r;e[2]!==l.updatedAt?(r=ee(l.updatedAt),e[2]=l.updatedAt,e[3]=r):r=e[3];let a;e[4]!==l.filename?(a=Pe(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=s.jsx(_e,{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 o;e[10]!==l.filename||e[11]!==n||e[12]!==r||e[13]!==a||e[14]!==c?(o=s.jsx(se,{icon:n,name:i,meta:r,subtitle:a,actions:c}),e[10]=l.filename,e[11]=n,e[12]=r,e[13]=a,e[14]=c,e[15]=o):o=e[15];let d;e[16]!==l.downloadUrl||e[17]!==l.filename||e[18]!==l.size?(d=s.jsx(At,{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]!==o||e[22]!==d?(u=s.jsxs(te,{onOpen:t,children:[o,d]}),e[20]=l.onOpen,e[21]=o,e[22]=d,e[23]=u):u=e[23],u}function xe(l){const e=l?l.split("/").filter(Boolean):[],t=e[0]==="public",n=t?e[1]??null:null,i=t?n?`public-${n}`:null:e[0]??null,r=(t?e.slice(2):e.slice(1)).join("/");return{segments:e,volume:i,dirPath:r,isPublic:t,publicSet:n,readOnly:t}}function Y(l,e){return l.isPublic&&l.publicSet?`public/${l.publicSet}/${e}`:l.volume?`${l.volume}/${e}`:e}function U(l){const e=l.lastIndexOf("/");return e===-1?l:l.slice(e+1)}function _t(l){const e=$.c(48),{previewPath:t,onClose:n}=l;let i;e[0]!==t?(i=xe(t),e[0]=t,e[1]=i):i=e[1];const r=i,{volume:a,dirPath:c}=r,{data:o,isPending:d}=gt(a,c),u=wt(a??"");let f,m,y,w,g,x,b,h,v,N,p,k;e[2]!==u||e[3]!==o||e[4]!==c||e[5]!==n||e[6]!==t?(w=U(c),y=o&&o.kind==="file"?{key:t,filename:w,size:o.size,downloadUrl:u(o.path)}:null,m=re,p=!0,e[19]!==n?(k=C=>{C||n()},e[19]=n,e[20]=k):k=e[20],f=oe,N="flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",v="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",x=s.jsx(Q,{filename:w,className:"h-4.5 w-3.5 shrink-0"}),e[21]!==w?(b=s.jsx(ae,{className:"truncate text-xs font-medium text-foreground",children:w}),e[21]=w,e[22]=b):b=e[22],h=y&&s.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:Te(y.size)}),e[2]=u,e[3]=o,e[4]=c,e[5]=n,e[6]=t,e[7]=f,e[8]=m,e[9]=y,e[10]=w,e[11]=g,e[12]=x,e[13]=b,e[14]=h,e[15]=v,e[16]=N,e[17]=p,e[18]=k):(f=e[7],m=e[8],y=e[9],w=e[10],g=e[11],x=e[12],b=e[13],h=e[14],v=e[15],N=e[16],p=e[17],k=e[18]);let F;e[23]!==g||e[24]!==x||e[25]!==b||e[26]!==h?(F=s.jsxs("div",{className:g,children:[x,b,h]}),e[23]=g,e[24]=x,e[25]=b,e[26]=h,e[27]=F):F=e[27];let S;e[28]!==y?(S=y&&s.jsxs(s.Fragment,{children:[s.jsxs(ye,{children:[s.jsx(we,{asChild:!0,children:s.jsx(P,{variant:"ghost",size:"icon",asChild:!0,children:s.jsx("a",{href:y.downloadUrl,download:y.filename,children:s.jsx(Se,{size:14})})})}),s.jsx(be,{side:"bottom",children:"Download"})]}),s.jsxs(ye,{children:[s.jsx(we,{asChild:!0,children:s.jsx(P,{variant:"ghost",size:"icon",onClick:()=>window.open(y.downloadUrl,"_blank","noopener"),children:s.jsx(dt,{size:14})})}),s.jsx(be,{side:"bottom",children:"Open in new tab"})]})]}),e[28]=y,e[29]=S):S=e[29];let D;e[30]!==F||e[31]!==S||e[32]!==v?(D=s.jsxs("div",{className:v,children:[F,S]}),e[30]=F,e[31]=S,e[32]=v,e[33]=D):D=e[33];let z;e[34]!==y||e[35]!==w||e[36]!==d?(z=s.jsx("div",{className:"relative min-h-0 flex-1 bg-background",children:y?s.jsx(ft,{file:y}):d?s.jsx(ut,{}):s.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[s.jsx(Q,{filename:w,className:"h-7.5 w-6"}),s.jsx("span",{className:"text-sm text-muted-foreground",children:"This file is no longer available."})]})}),e[34]=y,e[35]=w,e[36]=d,e[37]=z):z=e[37];let O;e[38]!==f||e[39]!==D||e[40]!==z||e[41]!==N?(O=s.jsxs(f,{className:N,children:[D,z]}),e[38]=f,e[39]=D,e[40]=z,e[41]=N,e[42]=O):O=e[42];let j;return e[43]!==m||e[44]!==O||e[45]!==p||e[46]!==k?(j=s.jsx(m,{open:p,onOpenChange:k,children:O}),e[43]=m,e[44]=O,e[45]=p,e[46]=k,e[47]=j):j=e[47],j}function Mt(l){const e=$.c(37),{skillPath:t,onClose:n,onOpenFile:i,onBrowse:r}=l,a=xe(t),{volume:c,dirPath:o}=a,u=he()(c??"",`${o}/SKILL.md`),f=q({queryKey:T.fileText(u),queryFn:async()=>{const A=await fetch(u,{credentials:"include"});if(!A.ok)throw new Error(`fetch failed: ${A.status}`);return A.text()},staleTime:6e4,retry:!1}),m=Ue(c??"",o);let y;e[0]!==o?(y=U(o),e[0]=o,e[1]=y):y=e[1];const w=y;let g;e[2]!==f.data?(g=f.data?Ee(f.data):null,e[2]=f.data,e[3]=g):g=e[3];const x=g,b=(m.data??[]).filter(qt),h=re,v=!0;let N;e[4]!==n?(N=A=>{A||n()},e[4]=n,e[5]=N):N=e[5];const p=oe,k="flex h-[85vh] w-[92vw] flex-col gap-0 overflow-hidden p-0 sm:max-w-3xl!";let F;e[6]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx("div",{className:"flex size-10 shrink-0 items-center justify-center rounded-xl bg-primary/10 text-primary",children:s.jsx(ze,{size:20})}),e[6]=F):F=e[6];const S=x?.name??w;let D;e[7]!==S?(D=s.jsx(ae,{className:"truncate text-sm font-medium text-foreground",children:S}),e[7]=S,e[8]=D):D=e[8];const z=x?.description??"Claude Code skill";let O;e[9]!==z?(O=s.jsx("p",{className:"line-clamp-2 text-xs text-muted-foreground",children:z}),e[9]=z,e[10]=O):O=e[10];let j;e[11]!==O||e[12]!==D?(j=s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[D,O]}),e[11]=O,e[12]=D,e[13]=j):j=e[13];let C;e[14]!==r||e[15]!==t?(C=()=>r(t),e[14]=r,e[15]=t,e[16]=C):C=e[16];let B;e[17]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(De,{size:14}),e[17]=B):B=e[17];let K;e[18]!==C?(K=s.jsxs(P,{variant:"outline",size:"sm",className:"shrink-0",onClick:C,children:[B,"Browse files"]}),e[18]=C,e[19]=K):K=e[19];let I;e[20]!==j||e[21]!==K?(I=s.jsxs("div",{className:"flex shrink-0 items-start gap-3 border-b border-border/60 py-4 pr-12 pl-5",children:[F,j,K]}),e[20]=j,e[21]=K,e[22]=I):I=e[22];let H;e[23]!==f.isError||e[24]!==f.isPending||e[25]!==x||e[26]!==t?(H=s.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:f.isPending?s.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[s.jsx(W,{className:"h-5 w-1/2"}),s.jsx(W,{className:"h-3 w-full"}),s.jsx(W,{className:"h-3 w-5/6"}),s.jsx(W,{className:"h-3 w-2/3"})]}):f.isError||!x?s.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):s.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none px-6 py-5",children:s.jsx(ct,{id:`skill-preview-${t}`,text:x.body})})}),e[23]=f.isError,e[24]=f.isPending,e[25]=x,e[26]=t,e[27]=H):H=e[27];const ne=b.length>0&&s.jsxs("div",{className:"flex max-h-44 shrink-0 flex-col gap-1 overflow-y-auto border-t border-border/60 px-3 py-2.5",children:[s.jsx("p",{className:"px-2 text-xs text-muted-foreground",children:"Files in this skill"}),b.map(A=>s.jsxs("button",{type:"button",onClick:()=>i(Y(a,A.path)),className:"flex items-center gap-2 rounded-lg px-2 py-1.5 text-left hover:bg-muted/60",children:[s.jsx(Q,{filename:U(A.path),className:"h-5 w-4 shrink-0"}),s.jsx("span",{className:"min-w-0 flex-1 truncate text-[13px] text-foreground",children:U(A.path)}),s.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:Te(A.size)})]},A.path))]});let V;e[28]!==p||e[29]!==I||e[30]!==H||e[31]!==ne?(V=s.jsxs(p,{className:k,children:[I,H,ne]}),e[28]=p,e[29]=I,e[30]=H,e[31]=ne,e[32]=V):V=e[32];let J;return e[33]!==h||e[34]!==V||e[35]!==N?(J=s.jsx(h,{open:v,onOpenChange:N,children:V}),e[33]=h,e[34]=V,e[35]=N,e[36]=J):J=e[36],J}function qt(l){return l.kind==="file"&&U(l.path)!=="SKILL.md"}const qe=[{id:"home",description:"Your organization's home folder",glyph:Ge},{id:"uploads",description:"Files your team uploads",glyph:Oe},{id:"outputs",description:"Agent run outputs",glyph:Xe}],Ne=3;function L(l){const e=$.c(2),{children:t}=l;let n;return e[0]!==t?(n=s.jsx("p",{className:"text-[13px] text-foreground",children:t}),e[0]=t,e[1]=n):n=e[1],n}function M(l){const e=$.c(2),{children:t}=l;let n;return e[0]!==t?(n=s.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:t}),e[0]=t,e[1]=n):n=e[1],n}function pe(l){const e=$.c(2),{rows:t}=l,n=t===void 0?1:t;let i;return e[0]!==n?(i=s.jsx(M,{children:Array.from({length:n*3},Lt)}),e[0]=n,e[1]=i):i=e[1],i}function Lt(l,e){return s.jsx(W,{className:"h-16 rounded-2xl"},e)}function ge(l){const e=$.c(2),{children:t}=l;let n;return e[0]!==t?(n=s.jsx("p",{className:"text-sm text-muted-foreground",children:t}),e[0]=t,e[1]=n):n=e[1],n}function Rt(){const l=$.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(P,{variant:"secondary",size:"sm",className:"h-7 px-2.5 text-xs",children:"All"}),s.jsx(P,{variant:"ghost",size:"sm",className:"h-7 px-2.5 text-xs",disabled:!0,title:"Coming soon",children:"Shared"}),s.jsx(P,{variant:"ghost",size:"sm",className:"h-7 px-2.5 text-xs",disabled:!0,title:"Coming soon",children:"Private"})]}),l[0]=e):e=l[0],e}function Bt(l){const e=$.c(6),{volume:t,displayName:n,description:i,glyph:r,onOpen:a}=l,c=jt(t),o=n??t,d=c.data?`${c.data.files} files`:void 0;let u;return e[0]!==i||e[1]!==r||e[2]!==a||e[3]!==o||e[4]!==d?(u=s.jsx(le,{name:o,meta:d,subtitle:i,glyph:r,onOpen:a}),e[0]=i,e[1]=r,e[2]=a,e[3]=o,e[4]=d,e[5]=u):u=e[5],u}function Kt(l){const e=$.c(8),{segments:t,onNavigate:n}=l;let i;e[0]!==n?(i=s.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 r;e[2]!==n||e[3]!==t?(r=t.map((c,o)=>{const d=t.slice(0,o+1).join("/"),u=o===t.length-1;return s.jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[s.jsx(He,{size:12,className:"shrink-0 text-muted-foreground"}),u?s.jsx("span",{className:"truncate font-medium text-foreground",children:c}):s.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]=t,e[4]=r):r=e[4];let a;return e[5]!==i||e[6]!==r?(a=s.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-1 text-sm",children:[i,r]}),e[5]=i,e[6]=r,e[7]=a):a=e[7],a}function It(l){const e=$.c(20),{onOpenDir:t,onOpenFile:n,onDelete:i}=l,{org:r}=E(),a=yt(),c=Ae(),o=he();let d;if(e[0]!==o||e[1]!==i||e[2]!==t||e[3]!==n||e[4]!==r||e[5]!==c.data?.length||e[6]!==a.data||e[7]!==a.isPending){const u=a.data??[],f=u.slice(0,Ne),m=u.slice(Ne);let y,w;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(L,{children:"Folders"}),w=s.jsx(Rt,{}),e[9]=y,e[10]=w):(y=e[9],w=e[10]);let g;e[11]!==t||e[12]!==r?(g=qe.map(h=>s.jsx(Bt,{volume:h.id,displayName:h.id==="home"?xt(r.slug):void 0,description:h.description,glyph:h.glyph,onOpen:()=>t(h.id)},h.id)),e[11]=t,e[12]=r,e[13]=g):g=e[13];let x;e[14]!==t||e[15]!==c.data?.length?(x=(c.data?.length??0)>0&&s.jsx(le,{name:"public",meta:`${c.data?.length} sets`,subtitle:"Curated skill sets — read-only",glyph:Ve,readOnly:!0,onOpen:()=>t("public")}),e[14]=t,e[15]=c.data?.length,e[16]=x):x=e[16];let b;e[17]!==g||e[18]!==x?(b=s.jsxs("div",{className:"flex flex-col gap-3",children:[y,w,s.jsxs(M,{children:[g,x]})]}),e[17]=g,e[18]=x,e[19]=b):b=e[19],d=s.jsxs(s.Fragment,{children:[a.isPending?s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(L,{children:"Recently added"}),s.jsx(pe,{})]}):f.length>0?s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(L,{children:"Recently added"}),s.jsx(M,{children:f.map(h=>s.jsx(Et,{filename:U(h.path),updatedAt:h.updatedAt,size:h.size,downloadUrl:o(h.volume,h.path),onOpen:()=>n(`${h.volume}/${h.path}`),onDelete:()=>i({volume:h.volume,path:h.path,kind:"file"})},`${h.volume}/${h.path}`))})]}):s.jsx(ge,{children:"No files yet — upload one, or ask an agent to produce something."}),b,m.length>0&&s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(L,{children:"All files"}),s.jsx(M,{children:m.map(h=>s.jsx(Me,{filename:U(h.path),updatedAt:h.updatedAt,downloadUrl:o(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]=o,e[1]=i,e[2]=t,e[3]=n,e[4]=r,e[5]=c.data?.length,e[6]=a.data,e[7]=a.isPending,e[8]=d}else d=e[8];return d}function Ht(l){const e=$.c(11),{onOpenDir:t}=l,n=Ae();if(n.isPending){let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(pe,{}),e[0]=o):o=e[0],o}let i;e[1]!==n.data?(i=n.data??[],e[1]=n.data,e[2]=i):i=e[2];const r=i;if(r.length===0){let o;return e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(ge,{children:"No public skill sets are configured."}),e[3]=o):o=e[3],o}let a;if(e[4]!==t||e[5]!==r){let o;e[7]!==t?(o=d=>s.jsx(le,{name:d,subtitle:"Read-only",readOnly:!0,onOpen:()=>t(`public/${d}`)},d),e[7]=t,e[8]=o):o=e[8],a=r.map(o),e[4]=t,e[5]=r,e[6]=a}else a=e[6];let c;return e[9]!==a?(c=s.jsx(M,{children:a}),e[9]=a,e[10]=c):c=e[10],c}function Vt(l){const e=$.c(25),{location:t,onOpenDir:n,onOpenFile:i,onOpenSkill:r,onDelete:a}=l,c=t.volume??"",o=Ue(c,t.dirPath),d=he();if(o.isPending){let g;return e[0]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(pe,{rows:2}),e[0]=g):g=e[0],g}if(o.isError){const g=o.error instanceof Error?o.error.message:"Failed to load";let x;return e[1]!==g?(x=s.jsx("p",{className:"text-sm text-destructive",children:g}),e[1]=g,e[2]=x):x=e[2],x}let u,f,m,y;if(e[3]!==d||e[4]!==o.data||e[5]!==t||e[6]!==a||e[7]!==n||e[8]!==i||e[9]!==r||e[10]!==c){y=Symbol.for("react.early_return_sentinel");e:{const g=o.data??[],x=g.filter(Xt),b=g.filter(Qt),h=g.filter(Gt);if(g.length===0){const p=t.readOnly?"Empty — this read-only set syncs from its GitHub source.":"Empty folder — upload a file or create a folder to get started.";let k;e[15]!==p?(k=s.jsx(ge,{children:p}),e[15]=p,e[16]=k):k=e[16],y=k;break e}let v;e[17]!==t.readOnly||e[18]!==a||e[19]!==c?(v=p=>t.readOnly?void 0:()=>a({volume:c,path:p.path,kind:p.kind}),e[17]=t.readOnly,e[18]=a,e[19]=c,e[20]=v):v=e[20];const N=v;u=x.length>0&&s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(L,{children:"Skills"}),s.jsx(M,{children:x.map(p=>s.jsx(zt,{dirName:U(p.path),updatedAt:p.updatedAt,skillMdUrl:d(c,`${p.path}/SKILL.md`),onOpen:()=>r(Y(t,p.path)),onBrowse:()=>n(Y(t,p.path)),onDelete:N(p)},p.path))})]}),f=b.length>0&&s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(L,{children:"Folders"}),s.jsx(M,{children:b.map(p=>s.jsx(le,{name:U(p.path),meta:ee(p.updatedAt),readOnly:t.readOnly,onOpen:()=>n(Y(t,p.path)),onDelete:N(p)},p.path))})]}),m=h.length>0&&s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(L,{children:"Files"}),s.jsx(M,{children:h.map(p=>s.jsx(Me,{filename:U(p.path),updatedAt:p.updatedAt,downloadUrl:d(c,p.path),onOpen:()=>i(Y(t,p.path)),onDelete:N(p)},p.path))})]})}e[3]=d,e[4]=o.data,e[5]=t,e[6]=a,e[7]=n,e[8]=i,e[9]=r,e[10]=c,e[11]=u,e[12]=f,e[13]=m,e[14]=y}else u=e[11],f=e[12],m=e[13],y=e[14];if(y!==Symbol.for("react.early_return_sentinel"))return y;let w;return e[21]!==u||e[22]!==f||e[23]!==m?(w=s.jsxs(s.Fragment,{children:[u,f,m]}),e[21]=u,e[22]=f,e[23]=m,e[24]=w):w=e[24],w}function Gt(l){return l.kind==="file"}function Qt(l){return l.kind==="dir"&&!l.hasSkill}function Xt(l){return l.kind==="dir"&&l.hasSkill}function $e(){const{org:l}=E(),e=Fe(),t=Be(),n=Ke({strict:!1}),i=n.path??"",r=xe(i),a=r.segments.length===0,c=(j,C)=>t({to:".",search:B=>({...B,[j]:C||void 0})}),o=j=>c("path",j),d=j=>c("preview",j),u=j=>c("skill",j),f=j=>t({to:".",search:C=>({...C,path:j,skill:void 0})}),[m,y]=X.useState(null),[w,g]=X.useState(!1),[x,b]=X.useState(""),h=X.useRef(null),v=r.readOnly?null:r.volume??"uploads",N=r.volume?r.dirPath:"",{upload:p,mkdir:k}=ve(v??"uploads"),{remove:F}=ve(m?.volume??"uploads");async function S(j){if(!(!v||!j||j.length===0))try{await p.mutateAsync({dir:N,files:[...j]}),G.success(j.length===1?`Uploaded ${j[0]?.name}`:`Uploaded ${j.length} files`)}catch(C){G.error(C instanceof Error?C.message:"Upload failed")}finally{h.current&&(h.current.value="")}}async function D(){const j=x.trim();if(!(!v||!j))try{await k.mutateAsync(N?`${N}/${j}`:j),G.success(`Folder "${j}" created`),g(!1),b("")}catch(C){G.error(C instanceof Error?C.message:"Failed to create folder")}}async function z(){if(!m)return;const j=m;try{await F.mutateAsync(j.path),G.success(`Deleted ${U(j.path)}`)}catch(C){G.error(C instanceof Error?C.message:"Delete failed")}finally{y(null)}}function O(){for(const j of qe)e.invalidateQueries({queryKey:T.orgFsVolume(l.id,j.id)});r.volume&&e.invalidateQueries({queryKey:T.orgFsVolume(l.id,r.volume)}),e.invalidateQueries({queryKey:T.orgFsRecent(l.id)}),e.invalidateQueries({queryKey:T.orgFsPublicSets(l.id)})}return s.jsxs("div",{className:"h-full overflow-y-auto",children:[s.jsxs("div",{className:"mx-auto flex w-full max-w-[900px] flex-col gap-10 px-6 py-10 lg:px-10",children:[s.jsxs("div",{className:"flex flex-col gap-2",children:[!a&&s.jsx(Kt,{segments:r.segments,onNavigate:o}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("h1",{className:"min-w-0 flex-1 truncate text-xl font-medium text-foreground",children:a?"Library":r.segments.at(-1)??"Library"}),s.jsx(P,{variant:"ghost",size:"icon",onClick:O,"aria-label":"Refresh",children:s.jsx(Ie,{size:14})}),!a&&v&&s.jsxs(P,{variant:"outline",size:"sm",onClick:()=>g(!0),children:[s.jsx(Qe,{size:14}),"New folder"]}),r.readOnly?s.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[s.jsx(Ce,{size:12}),"Read-only"]}):s.jsxs(P,{size:"sm",disabled:p.isPending,onClick:()=>h.current?.click(),children:[s.jsx(Oe,{size:14}),p.isPending?"Uploading…":"Upload file"]}),s.jsx("input",{ref:h,type:"file",multiple:!0,className:"hidden",onChange:j=>{S(j.target.files)}})]})]}),a?s.jsx(It,{onOpenDir:o,onOpenFile:d,onDelete:y}):r.volume===null?s.jsx(Ht,{onOpenDir:o}):s.jsx(Vt,{location:r,onOpenDir:o,onOpenFile:d,onOpenSkill:u,onDelete:y},r.volume)]}),n.preview?s.jsx(_t,{previewPath:n.preview,onClose:()=>c("preview",null)}):n.skill?s.jsx(Mt,{skillPath:n.skill,onClose:()=>c("skill",null),onOpenFile:d,onBrowse:f}):null,s.jsx(re,{open:w,onOpenChange:g,children:s.jsxs(oe,{children:[s.jsxs(it,{children:[s.jsx(ae,{children:"New folder"}),s.jsxs(rt,{children:["Create a folder in ",i||"the library","."]})]}),s.jsx(at,{autoFocus:!0,placeholder:"folder-name",value:x,onChange:j=>b(j.target.value),onKeyDown:j=>{j.key==="Enter"&&D()}}),s.jsxs(ot,{children:[s.jsx(P,{variant:"outline",onClick:()=>g(!1),children:"Cancel"}),s.jsx(P,{disabled:!x.trim()||k.isPending,onClick:()=>{D()},children:"Create"})]})]})}),s.jsx(Ye,{open:m!==null,onOpenChange:j=>{j||y(null)},children:s.jsxs(Ze,{children:[s.jsxs(Je,{children:[s.jsxs(et,{children:["Delete ",m?U(m.path):"","?"]}),s.jsx(tt,{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."})]}),s.jsxs(st,{children:[s.jsx(lt,{children:"Cancel"}),s.jsx(nt,{onClick:()=>{z()},children:"Delete"})]})]})})]})}function js(){const l=$.c(2);if(We()){let n;return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden bg-background",children:s.jsx(je,{children:s.jsx($e,{})})}),l[0]=n):n=l[0],n}let t;return l[1]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx("div",{className:"min-h-0 flex-1 pt-0 pr-1 pb-1 pl-0",children:s.jsx("div",{className:"h-full p-0.5 pt-0.25",children:s.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:s.jsx(je,{children:s.jsx($e,{})})})})}),l[1]=t):t=l[1],t}export{js as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as f,c as d,r as p,j as r}from"./index-
|
|
1
|
+
import{e as f,c as d,r as p,j as r}from"./index-BjwVvH1j.js";import{m as w}from"./sidebar-Dd570BWA.js";const v=p.createContext(void 0),H=v.Provider;function N(c,e){const l=p.Children.toArray(c);for(const i of l)if(p.isValidElement(i)&&i.type===e)return i;return null}function P(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex flex-col h-full w-full bg-background overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function C(c){const e=f.c(17),{children:l,className:i,hideSidebarTrigger:s}=c;let t;e[0]!==l?(t=N(l,j),e[0]=l,e[1]=t):t=e[1];const n=t;let a;e[2]!==l?(a=N(l,b),e[2]=l,e[3]=a):a=e[3];const o=a;let m;e[4]!==i?(m=d("shrink-0 w-full border-b border-border/50 h-11","flex items-center justify-between gap-3 pr-2 pl-2 md:pl-4",i),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==s?(x=!s&&r.jsx(w,{className:"md:hidden shrink-0"}),e[6]=s,e[7]=x):x=e[7];let u;e[8]!==n||e[9]!==x?(u=r.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[x,n]}),e[8]=n,e[9]=x,e[10]=u):u=e[10];let h;e[11]!==o?(h=r.jsx("div",{className:"flex items-center",children:o}),e[11]=o,e[12]=h):h=e[12];let g;return e[13]!==m||e[14]!==u||e[15]!==h?(g=r.jsxs("div",{className:m,children:[u,h]}),e[13]=m,e[14]=u,e[15]=h,e[16]=g):g=e[16],g}function j(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 min-w-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function b(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 shrink-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function $(c){const e=f.c(6),{children:l,className:i}=c,s=p.useContext(v);let t;e[0]!==i||e[1]!==s?(t=d("flex-1 overflow-auto",s,i),e[0]=i,e[1]=s,e[2]=t):t=e[2];let n;return e[3]!==l||e[4]!==t?(n=r.jsx("div",{className:t,children:l}),e[3]=l,e[4]=t,e[5]=n):n=e[5],n}function y(c){const e=f.c(10),{children:l,actions:i,className:s}=c;let t;e[0]!==s?(t=d("flex flex-wrap items-center justify-between gap-3",s),e[0]=s,e[1]=t):t=e[1];let n;e[2]!==l?(n=r.jsx("div",{className:"text-xl font-medium min-w-0",children:l}),e[2]=l,e[3]=n):n=e[3];let a;e[4]!==i?(a=i&&r.jsx("div",{className:"flex items-center gap-2",children:i}),e[4]=i,e[5]=a):a=e[5];let o;return e[6]!==t||e[7]!==n||e[8]!==a?(o=r.jsxs("div",{className:t,children:[n,a]}),e[6]=t,e[7]=n,e[8]=a,e[9]=o):o=e[9],o}function R(c){const e=f.c(6),{children:l,className:i,maxWidth:s}=c,t=s===void 0?"max-w-[1200px]":s;let n;e[0]!==i||e[1]!==t?(n=d("mx-auto w-full px-4 pt-8 pb-6 md:px-10 md:pt-12 md:pb-10",t,i),e[0]=i,e[1]=t,e[2]=n):n=e[2];let a;return e[3]!==l||e[4]!==n?(a=r.jsx("div",{className:n,children:l}),e[3]=l,e[4]=n,e[5]=a):a=e[5],a}const T=Object.assign(P,{Header:Object.assign(C,{Left:j,Right:b}),Content:$,Title:y,Body:R});export{T as P,H as a};
|