decocms 2.443.2 → 2.443.3

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.
Files changed (225) hide show
  1. package/dist/client/assets/{AlertCircle-DnC_4-aH.js → AlertCircle-CZUdxzu_.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-BbHnOLMA.js → ArrowUpRight-Ckf8qDoK.js} +1 -1
  3. package/dist/client/assets/{Check-J16uJKEA.js → Check-xwts9G2J.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-Bn1opDbW.js → CheckCircle-CdtozJUx.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-BMQmid7F.js → ChevronDown-C1vxQNd3.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-DGEJKjKF.js → ChevronRight-D5DpowYO.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-DsZ27x1e.js → ChevronUp-CBggsaUA.js} +1 -1
  8. package/dist/client/assets/{Container-BEXJVDeX.js → Container-BCobWGsJ.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-DIU7iQOr.js → DotsVertical-BGN9ibyU.js} +1 -1
  10. package/dist/client/assets/{Eye-DGTaoPip.js → Eye-MHwkC0Bm.js} +1 -1
  11. package/dist/client/assets/{FilterLines-ihO-BOSo.js → FilterLines-MmWX7Ysm.js} +1 -1
  12. package/dist/client/assets/{Globe01-EL-63tMj.js → Globe01-ZT5vmTMf.js} +1 -1
  13. package/dist/client/assets/{HardDrive-DH3YXoR5.js → HardDrive-CiJMrXnz.js} +1 -1
  14. package/dist/client/assets/{Key01-Uu38RiTq.js → Key01-6HahYsd8.js} +1 -1
  15. package/dist/client/assets/{LinkExternal01-DUyPujY1.js → LinkExternal01-DyZjuYqx.js} +1 -1
  16. package/dist/client/assets/{Monitor01-CSp7kTBc.js → Monitor01-DQ4W7WkG.js} +1 -1
  17. package/dist/client/assets/{Palette-Dm2B2aWH.js → Palette-Bc5k-b6V.js} +1 -1
  18. package/dist/client/assets/{Play-_v67HnUl.js → Play-Dkm_MGgj.js} +1 -1
  19. package/dist/client/assets/{Plus-2dxUo5Gk.js → Plus-CsnODh95.js} +1 -1
  20. package/dist/client/assets/{RefreshCcw01-wYUm6j8U.js → RefreshCcw01-B_9fKaFo.js} +1 -1
  21. package/dist/client/assets/{SearchMd-BEAj_Tol.js → SearchMd-CTsuydPj.js} +1 -1
  22. package/dist/client/assets/{Settings02--quM5obQ.js → Settings02-DSEzadZL.js} +1 -1
  23. package/dist/client/assets/{Shield01-BmW8AbQ-.js → Shield01-DOIioasK.js} +1 -1
  24. package/dist/client/assets/{Star01-cWWe-fM3.js → Star01-Ytz2fdRH.js} +1 -1
  25. package/dist/client/assets/{Stars01-ByMVzm20.js → Stars01-DxQPpWJA.js} +1 -1
  26. package/dist/client/assets/{Stars02-B3NUztPs.js → Stars02-qXelOgIp.js} +1 -1
  27. package/dist/client/assets/{Sun-2edPErlj.js → Sun-pWEzytrr.js} +1 -1
  28. package/dist/client/assets/{SwitchHorizontal01-ChMk-c2p.js → SwitchHorizontal01-BcpyEVy6.js} +1 -1
  29. package/dist/client/assets/{Tool01-BVHZgMyD.js → Tool01-B9i3jYjq.js} +1 -1
  30. package/dist/client/assets/{Trash01--dscDyOn.js → Trash01-BIBfIkQ_.js} +1 -1
  31. package/dist/client/assets/{Upload01-DHbZQDwg.js → Upload01-Dh5J3z7m.js} +1 -1
  32. package/dist/client/assets/{User01-BKSpWmao.js → User01-C_ID9x9E.js} +1 -1
  33. package/dist/client/assets/{Users01-BZWtF34f.js → Users01-DqbuPj9p.js} +1 -1
  34. package/dist/client/assets/{Users03-BYDlCvnW.js → Users03-CNIYpSXa.js} +1 -1
  35. package/dist/client/assets/{X-CM6QpVzE.js → X-5JYlDYV-.js} +1 -1
  36. package/dist/client/assets/{XCircle-qIbNI5i3.js → XCircle-Cri1mHI7.js} +1 -1
  37. package/dist/client/assets/{XClose-ItMIqiRG.js → XClose-P7eY6MuP.js} +1 -1
  38. package/dist/client/assets/{Zap-JtT0wYK8.js → Zap-DUKmeTe3.js} +1 -1
  39. package/dist/client/assets/{ZapSquare-CRhWmOBI.js → ZapSquare-D7KADoNB.js} +1 -1
  40. package/dist/client/assets/{ZoomOut-94598aZa.js → ZoomOut-DMIdbERz.js} +1 -1
  41. package/dist/client/assets/{access-gate-CkaXtmJV.js → access-gate-C1FV8QYc.js} +1 -1
  42. package/dist/client/assets/{accordion-pXaJWDz6.js → accordion-BMXhHTts.js} +1 -1
  43. package/dist/client/assets/{add-section-modal-DW0JgTS8.js → add-section-modal-d3CpdDXX.js} +1 -1
  44. package/dist/client/assets/{agent-capabilities-OXDugmFh.js → agent-capabilities-bZEKhzBa.js} +1 -1
  45. package/dist/client/assets/{agent-icon-7qAr93xD.js → agent-icon-CoJ-1ofl.js} +1 -1
  46. package/dist/client/assets/{agent-icons-BEQWubEs.js → agent-icons-B57Rqcl6.js} +1 -1
  47. package/dist/client/assets/{agents-list-uKZd9xX7.js → agents-list-Dd0msDR_.js} +1 -1
  48. package/dist/client/assets/{ai-providers-buSq74n7.js → ai-providers-BNYyMuRI.js} +1 -1
  49. package/dist/client/assets/{alert-CR95B63F.js → alert-CDRh4Kau.js} +1 -1
  50. package/dist/client/assets/{alert-dialog-BbnUiGi3.js → alert-dialog-ocZJkxTi.js} +1 -1
  51. package/dist/client/assets/app-editor-DqRtvbIx.js +1 -0
  52. package/dist/client/assets/{auth-catchall-IiQD1HFz.js → auth-catchall-e5nsfg9D.js} +1 -1
  53. package/dist/client/assets/{auth-split-layout-DEuV3P90.js → auth-split-layout-BHMwDwvx.js} +1 -1
  54. package/dist/client/assets/{automation-list-row-znfqm5Rn.js → automation-list-row-BBu7Hfwo.js} +1 -1
  55. package/dist/client/assets/{automation-runs-DdnGvg90.js → automation-runs-PtDrWmE9.js} +1 -1
  56. package/dist/client/assets/{automations-DV3Hwvkh.js → automations-6ZDBE3Jn.js} +1 -1
  57. package/dist/client/assets/{avatar-BtAQCO-2.js → avatar-DjODigMT.js} +1 -1
  58. package/dist/client/assets/{badge-1XsLmnCd.js → badge-Bxxp86rs.js} +1 -1
  59. package/dist/client/assets/{brand-context-Cy-mOFme.js → brand-context-BrSVDylM.js} +1 -1
  60. package/dist/client/assets/{buckets-BJavIeNL.js → buckets-COO92am2.js} +1 -1
  61. package/dist/client/assets/{calendar-DDr4OpOw.js → calendar-ClkUcJkH.js} +1 -1
  62. package/dist/client/assets/{capability-load-error-RHVeL-ZD.js → capability-load-error-D3nKtpb_.js} +1 -1
  63. package/dist/client/assets/{card-BEPIE5c3.js → card-Bz3pkcqs.js} +1 -1
  64. package/dist/client/assets/{chat-context-D6aO01ix.js → chat-context-BYTcgj4I.js} +1 -1
  65. package/dist/client/assets/{checkbox-BBjpY9PF.js → checkbox-hvwQxR_d.js} +1 -1
  66. package/dist/client/assets/{cli-auth-success-C80PQRdD.js → cli-auth-success-2K70KX-O.js} +1 -1
  67. package/dist/client/assets/{collection-detail-BmeI38cL.js → collection-detail-BGQaXWxq.js} +1 -1
  68. package/dist/client/assets/{collection-display-button-b6a7UYE5.js → collection-display-button-ZJqkj41W.js} +1 -1
  69. package/dist/client/assets/{collection-search-zyQA1nxB.js → collection-search-BY6XeZri.js} +1 -1
  70. package/dist/client/assets/{collection-table-wrapper-BVqZr_Qu.js → collection-table-wrapper-DU08qPAI.js} +1 -1
  71. package/dist/client/assets/{collection-tabs-Cj0N0ju7.js → collection-tabs-CUc5H1eV.js} +1 -1
  72. package/dist/client/assets/{collections-Bjtc-hAu.js → collections-r09uqGla.js} +1 -1
  73. package/dist/client/assets/{command-Cra4G6CA.js → command-CNcDlPsG.js} +1 -1
  74. package/dist/client/assets/{connect-desktop-dialog--2F6IlSo.js → connect-desktop-dialog-BlU6WUFF.js} +1 -1
  75. package/dist/client/assets/{connection-card-BryVQVNj.js → connection-card-CwkQR1LL.js} +1 -1
  76. package/dist/client/assets/{connection-detail-CJ3YGQTJ.js → connection-detail-DpNWzjtg.js} +1 -1
  77. package/dist/client/assets/{connection-form-helpers-BrVODh8v.js → connection-form-helpers-DaUUFujM.js} +1 -1
  78. package/dist/client/assets/{connections-DHNRJmth.js → connections-DozLnlLB.js} +1 -1
  79. package/dist/client/assets/{constants-B90dSsdp.js → constants-DGbRKSQq.js} +1 -1
  80. package/dist/client/assets/{decopilot-sse-pool-CGDUUcoH.js → decopilot-sse-pool-CmNJsqg-.js} +1 -1
  81. package/dist/client/assets/{dialog-CkRRGZnc.js → dialog-Cr0Lqq3q.js} +1 -1
  82. package/dist/client/assets/{domain-settings-Cv6h80DI.js → domain-settings-QixFLqWa.js} +1 -1
  83. package/dist/client/assets/{drawer-D9a9biew.js → drawer-BxQavFqW.js} +1 -1
  84. package/dist/client/assets/{dropdown-menu-OXHZ7kAR.js → dropdown-menu-CvaGrQxV.js} +1 -1
  85. package/dist/client/assets/{dynamic-plugin-layout-WQX2dbye.js → dynamic-plugin-layout-Bji4PA81.js} +1 -1
  86. package/dist/client/assets/{empty-state-CrnpTs87.js → empty-state-BJq8Oiur.js} +1 -1
  87. package/dist/client/assets/{empty-state-HuDuVXt9.js → empty-state-C5MMJv4e.js} +1 -1
  88. package/dist/client/assets/{extract-connection-data-zhKCs3hG.js → extract-connection-data-BknkQ0Rk.js} +1 -1
  89. package/dist/client/assets/{features-B2DYM1KA.js → features-DS--Lmoh.js} +1 -1
  90. package/dist/client/assets/{file-explorer-CodmJ5if.js → file-explorer-xzLnx2_S.js} +1 -1
  91. package/dist/client/assets/{file-preview-CI4QFiCQ.js → file-preview-BJpkPGnT.js} +1 -1
  92. package/dist/client/assets/{file-type-icon-D2uT8L4_.js → file-type-icon-BCikryQ0.js} +1 -1
  93. package/dist/client/assets/{files-CVOuUBU3.js → files-eAmURTo1.js} +1 -1
  94. package/dist/client/assets/{form-DB_SF1NK.js → form-Cfexl65M.js} +1 -1
  95. package/dist/client/assets/{general-vWqND5zS.js → general-DqvZ55ZS.js} +1 -1
  96. package/dist/client/assets/{generate-id-CACjqlq9.js → generate-id-D41sn45c.js} +1 -1
  97. package/dist/client/assets/{github-repo-picker-DYd9iz4o.js → github-repo-picker-DQeiKwsx.js} +1 -1
  98. package/dist/client/assets/{hover-card-BuRqave8.js → hover-card-gTPLI0_V.js} +1 -1
  99. package/dist/client/assets/{image-field-Dl50PYRh.js → image-field-C5SDGvB8.js} +1 -1
  100. package/dist/client/assets/{index-BZNyLwY8.js → index-BHvsdgtu.js} +1 -1
  101. package/dist/client/assets/{index-J4gua_Pf.js → index-BZf7dLag.js} +1 -1
  102. package/dist/client/assets/{index-BrlS6ckp.js → index-BhVL9dHA.js} +1 -1
  103. package/dist/client/assets/{index-CtxvqkUX.js → index-BnvhSRu1.js} +1 -1
  104. package/dist/client/assets/{index-C0hyS3dF.js → index-C-GrIODL.js} +1 -1
  105. package/dist/client/assets/{index-CfZkqwiZ.js → index-CHwrxx2w.js} +3 -3
  106. package/dist/client/assets/{index-CVj-R_ah.js → index-CKjr19kh.js} +1 -1
  107. package/dist/client/assets/{index-BfF2luiz.js → index-CVV0W9Wt.js} +1 -1
  108. package/dist/client/assets/{index-Bv83EN60.js → index-ClpqDc-J.js} +4 -4
  109. package/dist/client/assets/{index-adulDWjY.js → index-DIps7jWX.js} +1 -1
  110. package/dist/client/assets/{index-B3mW6knO.js → index-DNUqrDcV.js} +1 -1
  111. package/dist/client/assets/{index-8UgO20ro.js → index-U4TtXBlU.js} +1 -1
  112. package/dist/client/assets/{index-D8CSJJ8c.js → index-oTaALKXb.js} +1 -1
  113. package/dist/client/assets/{index-redirect-BFJQIlkE.js → index-redirect-v3eWWKKh.js} +1 -1
  114. package/dist/client/assets/{index-FNnK1HRr.js → index-ye4JP67x.js} +1 -1
  115. package/dist/client/assets/{infiniteQueryObserver-CrBAaz5f.js → infiniteQueryObserver-DvfAuCaA.js} +1 -1
  116. package/dist/client/assets/{input-Bo10McUW.js → input-BsiCsTx_.js} +1 -1
  117. package/dist/client/assets/{integration-icon-DVKcDoT_.js → integration-icon-D9uiqhUj.js} +1 -1
  118. package/dist/client/assets/{label-DeJyoAdf.js → label-CUurCsVU.js} +1 -1
  119. package/dist/client/assets/{layout-z7PUq8Py.js → layout-BlkFnmnU.js} +1 -1
  120. package/dist/client/assets/{login-CnjNBA1X.js → login-CPLRxr0T.js} +1 -1
  121. package/dist/client/assets/{members-DYWejlv3.js → members-By3Cdesg.js} +1 -1
  122. package/dist/client/assets/{monaco-editor-CqmI1KNs.js → monaco-editor-ByyJd0JT.js} +1 -1
  123. package/dist/client/assets/{monitoring-stats-row-B87lwM70.js → monitoring-stats-row-u1uu-TaR.js} +1 -1
  124. package/dist/client/assets/{oauth-callback-BcVHS0MK.js → oauth-callback-BUCIPmWj.js} +1 -1
  125. package/dist/client/assets/{oauth-callback-ai-provider-DRHXM6OL.js → oauth-callback-ai-provider-CsLDW21C.js} +1 -1
  126. package/dist/client/assets/{onboarding-BzJZtima.js → onboarding-CUf9sMbB.js} +1 -1
  127. package/dist/client/assets/{org-install-YeCG58Rs.js → org-install-n0EsvfUs.js} +1 -1
  128. package/dist/client/assets/{org-layout-C6tvIE4n.js → org-layout-BDsjAMwx.js} +1 -1
  129. package/dist/client/assets/{org-plugin-layout-CSeUEC6W.js → org-plugin-layout-pRKLHe9T.js} +1 -1
  130. package/dist/client/assets/{page-seo-form-27ssB04C.js → page-seo-form-BBa96MiF.js} +1 -1
  131. package/dist/client/assets/page-seo-sheet-BtMjZSEx.js +1 -0
  132. package/dist/client/assets/{pair-3Ly6FRTU.js → pair-BhFm7zEp.js} +1 -1
  133. package/dist/client/assets/{plugin-empty-state-DRuPL8Mv.js → plugin-empty-state-DlqcueY-.js} +1 -1
  134. package/dist/client/assets/{plugin-header-DAxR9AVC.js → plugin-header-BtB-4X-C.js} +1 -1
  135. package/dist/client/assets/{plugin-layout-b5wiHu3V.js → plugin-layout-3wsU2ax3.js} +1 -1
  136. package/dist/client/assets/{popover-Bd7ax5LE.js → popover-DRtmCV3Y.js} +1 -1
  137. package/dist/client/assets/{post-editor-4p9ApTUQ.js → post-editor-DVSvtKmi.js} +1 -1
  138. package/dist/client/assets/{primitives-DKQ5HhlZ.js → primitives-BRxEBOA1.js} +1 -1
  139. package/dist/client/assets/{profile-C9tpCrcC.js → profile-CxkrbdC1.js} +1 -1
  140. package/dist/client/assets/{project-app-view-B3kuvoTa.js → project-app-view-Bmw2vsjt.js} +1 -1
  141. package/dist/client/assets/record-editor-BIAmKwnm.js +1 -0
  142. package/dist/client/assets/registry-D7NGwbmW.js +2 -0
  143. package/dist/client/assets/{registry-layout-CwSfcNM7.js → registry-layout-CIYxyZOl.js} +1 -1
  144. package/dist/client/assets/{require-capability-CimNrW1R.js → require-capability-BdEucscS.js} +1 -1
  145. package/dist/client/assets/{required-auth-layout-CKYrXOdT.js → required-auth-layout-DWEjgRK5.js} +1 -1
  146. package/dist/client/assets/{reset-password-VqN3JOVe.js → reset-password-figyTMz0.js} +1 -1
  147. package/dist/client/assets/{roles-DkHv6AP7.js → roles-BvcIr8kC.js} +1 -1
  148. package/dist/client/assets/{save-status-DcMmk-lM.js → save-status-CMMknrm_.js} +1 -1
  149. package/dist/client/assets/{schema-form-D6utjQNJ.js → schema-form-CZbxPq5Y.js} +1 -1
  150. package/dist/client/assets/{scroll-area-DaONxw8l.js → scroll-area-BkG2xMKa.js} +1 -1
  151. package/dist/client/assets/{search-input-Df2c1m7s.js → search-input-DhDuFfgS.js} +1 -1
  152. package/dist/client/assets/{secrets-DdjscyJ_.js → secrets-d_a7Pzer.js} +1 -1
  153. package/dist/client/assets/{sections-editor-gZPJp9Sx.js → sections-editor-BWlb557B.js} +1 -1
  154. package/dist/client/assets/{select-BMjAzYm-.js → select-1w9zaIxM.js} +1 -1
  155. package/dist/client/assets/{select-model-Bli_ehQ1.js → select-model-CgDhZf6h.js} +1 -1
  156. package/dist/client/assets/{seo-editor-CJXt1p2W.js → seo-editor-V5U2wUF2.js} +1 -1
  157. package/dist/client/assets/{settings-layout-Pn7scIb3.js → settings-layout-Cxm0nH91.js} +1 -1
  158. package/dist/client/assets/{settings-section-BQBkAedV.js → settings-section-eHpffAQC.js} +1 -1
  159. package/dist/client/assets/{sheet-BJ3bW92v.js → sheet-B_HwqFgT.js} +1 -1
  160. package/dist/client/assets/{shell-controls-BZteSBrG.js → shell-controls-bf-SKezU.js} +1 -1
  161. package/dist/client/assets/{shell-layout-Dsomzf8V.js → shell-layout-CIIJdxoP.js} +1 -1
  162. package/dist/client/assets/{shell-route-loading-CpAzFhDh.js → shell-route-loading-CMm4004V.js} +1 -1
  163. package/dist/client/assets/{sidebar-CL9yZebM.js → sidebar-dkkCYhm2.js} +1 -1
  164. package/dist/client/assets/{skeleton-CI2wWNuJ.js → skeleton-DIaIyZIy.js} +1 -1
  165. package/dist/client/assets/{sortable.esm-D5BZ5JbX.js → sortable.esm-B7f4Alsc.js} +1 -1
  166. package/dist/client/assets/{spinner-DF36atd1.js → spinner-zDPMtPt5.js} +1 -1
  167. package/dist/client/assets/{sso-BVFomjSj.js → sso-Dmb_OPkP.js} +1 -1
  168. package/dist/client/assets/{store-VVYF_oq6.js → store-DUqLAFED.js} +1 -1
  169. package/dist/client/assets/store-registry-BHROQShM.js +2 -0
  170. package/dist/client/assets/{switch-CVCd-1RP.js → switch-DpyT-X6C.js} +1 -1
  171. package/dist/client/assets/{tab-id-DNCjIkOQ.js → tab-id-CUycGir1.js} +1 -1
  172. package/dist/client/assets/{table-B88DYSpu.js → table-bDbiBDg8.js} +1 -1
  173. package/dist/client/assets/{tabs-DpVci7De.js → tabs-ClVghzr5.js} +1 -1
  174. package/dist/client/assets/{task-status-CssRvy-C.js → task-status-UME2YDCM.js} +1 -1
  175. package/dist/client/assets/{textarea-Ckk3if9k.js → textarea-BUM6BzhG.js} +1 -1
  176. package/dist/client/assets/{toggle-group-B_PXvWYp.js → toggle-group-B4qG6hF5.js} +1 -1
  177. package/dist/client/assets/{toolbar-BBrIRnWM.js → toolbar-QSFGKRF9.js} +1 -1
  178. package/dist/client/assets/{tools-list-DnIfcR1E.js → tools-list-CCyLWR8s.js} +1 -1
  179. package/dist/client/assets/{tooltip-CfqlCvT2.js → tooltip-lUpcIPGH.js} +1 -1
  180. package/dist/client/assets/{types-BjfkOQkC.js → types-D_efEM4V.js} +1 -1
  181. package/dist/client/assets/{use-ai-providers-BJa_hJvx.js → use-ai-providers-DB7ojWtS.js} +1 -1
  182. package/dist/client/assets/{use-automations-FVoVOV9R.js → use-automations-DPQ-768f.js} +1 -1
  183. package/dist/client/assets/{use-capability-BBI5hTlm.js → use-capability-D50zF9Hp.js} +1 -1
  184. package/dist/client/assets/{use-collections-ICJ6kTy2.js → use-collections-Bf-v75yp.js} +1 -1
  185. package/dist/client/assets/{use-connection-DkEqcF8U.js → use-connection-fbegA2Sr.js} +1 -1
  186. package/dist/client/assets/{use-copy-BJS9L5jV.js → use-copy-BbpDjfq3.js} +1 -1
  187. package/dist/client/assets/{use-create-virtual-mcp-D1VCPSqP.js → use-create-virtual-mcp-D-SDzc8G.js} +1 -1
  188. package/dist/client/assets/{use-debounced-autosave-CMzFqAwx.js → use-debounced-autosave-DU89mAx9.js} +1 -1
  189. package/dist/client/assets/{use-delete-connection-Btg8O9dc.js → use-delete-connection-DMToAmAx.js} +1 -1
  190. package/dist/client/assets/{use-file-configs-BVJ0gRIl.js → use-file-configs-B1_NrtMR.js} +1 -1
  191. package/dist/client/assets/{use-infinite-scroll-BU26n5pY.js → use-infinite-scroll-DLszWpbX.js} +1 -1
  192. package/dist/client/assets/{use-list-state-CTiC5L3e.js → use-list-state-DYP1ZGgm.js} +1 -1
  193. package/dist/client/assets/{use-mcp-prompts-CKe0_SlQ.js → use-mcp-prompts-C-3ONdzW.js} +1 -1
  194. package/dist/client/assets/{use-mcp-tools-CZizGVNS.js → use-mcp-tools-a5ty3etm.js} +1 -1
  195. package/dist/client/assets/{use-members-1OgqK7Qv.js → use-members-BL8hEVLT.js} +1 -1
  196. package/dist/client/assets/{use-navigate-to-agent-hwOcyt3u.js → use-navigate-to-agent-DxjoYFjz.js} +1 -1
  197. package/dist/client/assets/{use-org-auth-client-BidTbwfV.js → use-org-auth-client-DVJHDy7u.js} +1 -1
  198. package/dist/client/assets/{use-org-sso-CL3vguua.js → use-org-sso-D7PsvUVV.js} +1 -1
  199. package/dist/client/assets/{use-organization-roles-DJMm5Q4p.js → use-organization-roles-CJX_27_B.js} +1 -1
  200. package/dist/client/assets/{use-organization-settings-Bf7xjdWE.js → use-organization-settings-C79X-vTJ.js} +1 -1
  201. package/dist/client/assets/{use-registry-connections-CCW1N8Qx.js → use-registry-connections-C3Lo4utR.js} +1 -1
  202. package/dist/client/assets/{use-secrets-BWnP55Jc.js → use-secrets-F04NffI6.js} +1 -1
  203. package/dist/client/assets/{use-status-sounds-UJAv4S8H.js → use-status-sounds-BTW-payM.js} +1 -1
  204. package/dist/client/assets/{use-view-mode-CU8SdpcX.js → use-view-mode-q5qrXWBH.js} +1 -1
  205. package/dist/client/assets/{use-virtual-mcp-Y4_4PdHC.js → use-virtual-mcp-gRD34dSD.js} +1 -1
  206. package/dist/client/assets/useInfiniteQuery-KmawUBeu.js +1 -0
  207. package/dist/client/assets/{useRouterState-DD4VLDS4.js → useRouterState-CE1pG0Ht.js} +1 -1
  208. package/dist/client/assets/useSuspenseInfiniteQuery-BEuKSaeK.js +1 -0
  209. package/dist/client/assets/{user-sCHxaUTE.js → user-Co3OfX6G.js} +1 -1
  210. package/dist/client/assets/{view-mode-toggle-DtDdB_XX.js → view-mode-toggle-BVeJGdmm.js} +1 -1
  211. package/dist/client/assets/{workflow-CAOlw1bP.js → workflow-CBHfDBlV.js} +1 -1
  212. package/dist/client/assets/workflow-detail-Bnj68Okr.js +1 -0
  213. package/dist/client/index.html +1 -1
  214. package/dist/server/cli.js +277 -277
  215. package/dist/server/migrate.js +66 -66
  216. package/dist/server/server.js +194 -194
  217. package/package.json +1 -1
  218. package/dist/client/assets/app-editor-BtpJAeSV.js +0 -1
  219. package/dist/client/assets/page-seo-sheet-ePDfcFUB.js +0 -1
  220. package/dist/client/assets/record-editor-DvWyQ1zV.js +0 -1
  221. package/dist/client/assets/registry-DgD5qwPp.js +0 -2
  222. package/dist/client/assets/store-registry-BrR-0Jjf.js +0 -2
  223. package/dist/client/assets/useInfiniteQuery-kqO70TvN.js +0 -1
  224. package/dist/client/assets/useSuspenseInfiniteQuery-CAC6RxXP.js +0 -1
  225. package/dist/client/assets/workflow-detail-ozALCkrV.js +0 -1
@@ -1 +1 @@
1
- import{r as h}from"./index-CfZkqwiZ.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});
1
+ import{r as h}from"./index-CHwrxx2w.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});
@@ -1,4 +1,4 @@
1
- import{dW as se,e as I,j as o,B as te,l as Yt,b1 as We,dX as Gs,r as X,q as oe,c as $,g as Qs,F as Zt,dY as Nt,dZ as es,o as Ys,v as Zs,d_ as en,d$ as tn}from"./index-CfZkqwiZ.js";import{D as sn,F as nn,B as on}from"./index-J4gua_Pf.js";import{h as De,i as rn,u as ae}from"./constants-B90dSsdp.js";import{a as ts}from"./use-virtual-mcp-Y4_4PdHC.js";import{M as Oe}from"./monaco-editor-CqmI1KNs.js";import{A as ln,c as cn,a as an,b as un,e as dn,R as zt,d as fn}from"./accordion-pXaJWDz6.js";import{B as le}from"./badge-1XsLmnCd.js";import{b as xt,d as ht,c as Ze,a as gt,S as bt}from"./select-BMjAzYm-.js";import{S as et}from"./spinner-DF36atd1.js";import{V as mn}from"./view-mode-toggle-DtDdB_XX.js";import{ak as pn,o as xn,i as hn,y as ss,al as gn,a5 as bn,s as jn,am as ns,ab as Sn,M as os,an as yn,ao as wn,a7 as ft,ap as vn}from"./agent-icon-7qAr93xD.js";import{i as rs}from"./Play-_v67HnUl.js";import{b as Nn,a as kn,V as Ge}from"./layout-z7PUq8Py.js";import{c as is,b as ls,T as cs,a as as}from"./tooltip-CfqlCvT2.js";import{u as In,a as _n}from"./use-connection-DkEqcF8U.js";import{u as kt,d as It,b as us}from"./use-mcp-tools-CZizGVNS.js";import{b as Cn,c as Tn,e as En,d as $n,a as On,D as Mn}from"./dialog-CkRRGZnc.js";import"./index-CtxvqkUX.js";import{N as Rn,m as Ln,n as zn,o as Ke,P as Wn,i as An,R as Pn,u as Dn,p as Fn,e as Wt,d as Vn,q as qn,S as Hn}from"./scroll-area-DaONxw8l.js";import{S as Un}from"./index-BZNyLwY8.js";import{H as Kn,a as Bn,b as Xn}from"./hover-card-BuRqave8.js";import{D as ds,a as fs,b as ms,c as Qe}from"./dropdown-menu-OXHZ7kAR.js";import{s as Jn}from"./Plus-2dxUo5Gk.js";import{b as ps}from"./Tool01-BVHZgMyD.js";import{i as Fe}from"./Check-J16uJKEA.js";import{s as _t}from"./XClose-ItMIqiRG.js";import{I as Ct}from"./integration-icon-DVKcDoT_.js";import"./index-adulDWjY.js";import{i as xs}from"./X-CM6QpVzE.js";import{u as hs,a as Gn}from"./use-collections-ICJ6kTy2.js";import{E as gs}from"./empty-state-CrnpTs87.js";import{c as Qn}from"./create-sse-subscription-BS5983N4.js";import{I as At}from"./input-Bo10McUW.js";const bs=se("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const js=se("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const tt=se("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const st=se("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const Yn=se("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const Ss=se("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const Zn=se("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const ys=se("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const ws=se("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);const vs=se("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const eo=se("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const Ns=se("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const ks=se("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const to=se("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const Is=se("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);function so(t){const e=I.c(15),{onSave:n,onUndo:s,isDirty:i,isSaving:r,saveLabel:l,undoLabel:c}=t,a=l===void 0?"Save":l,u=c===void 0?"Undo":c;if(!i)return null;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(pn,{size:14}),e[0]=d):d=e[0];let f;e[1]!==r||e[2]!==s||e[3]!==u?(f=o.jsxs(te,{variant:"outline",size:"sm",onClick:s,disabled:r,"aria-label":u,children:[d,u]}),e[1]=r,e[2]=s,e[3]=u,e[4]=f):f=e[4];let m;e[5]!==r?(m=r?o.jsx(Yt,{size:14,className:"animate-spin"}):o.jsx(xn,{size:14}),e[5]=r,e[6]=m):m=e[6];let p;e[7]!==r||e[8]!==n||e[9]!==a||e[10]!==m?(p=o.jsxs(te,{variant:"default",size:"sm",onClick:n,disabled:r,"aria-label":a,children:[m,a]}),e[7]=r,e[8]=n,e[9]=a,e[10]=m,e[11]=p):p=e[11];let x;return e[12]!==f||e[13]!==p?(x=o.jsxs(o.Fragment,{children:[f,p]}),e[12]=f,e[13]=p,e[14]=x):x=e[14],x}const Pt=t=>{let e;const n=new Set,s=(u,d)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const m=e;e=d??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(p=>p(e,m))}},i=()=>e,c={setState:s,getState:i,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=e=t(s,i,c);return c},Tt=(t=>t?Pt(t):Pt),no=t=>t;function jt(t,e=no){const n=We.useSyncExternalStore(t.subscribe,We.useCallback(()=>e(t.getState()),[t,e]),We.useCallback(()=>e(t.getInitialState()),[t,e]));return We.useDebugValue(n),n}const oo=t=>{const e=Tt(t),n=s=>jt(e,s);return Object.assign(n,e),n},ro=(t=>oo);function _s(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var r;const l=a=>a===null?null:JSON.parse(a,void 0),c=(r=n.getItem(i))!=null?r:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,r)=>n.setItem(i,JSON.stringify(r,void 0)),removeItem:i=>n.removeItem(i)}}const St=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return St(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return St(s)(n)}}}},io=(t,e)=>(n,s,i)=>{let r={storage:_s(()=>window.localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},l=!1,c=0;const a=new Set,u=new Set;let d=r.storage;if(!d)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},s,i);const f=()=>{const g=r.partialize({...s()});return d.setItem(r.name,{state:g,version:r.version})},m=i.setState;i.setState=(g,b)=>(m(g,b),f());const p=t((...g)=>(n(...g),f()),s,i);i.getInitialState=()=>p;let x;const h=()=>{var g,b;if(!d)return;const S=++c;l=!1,a.forEach(y=>{var j;return y((j=s())!=null?j:p)});const w=((b=r.onRehydrateStorage)==null?void 0:b.call(r,(g=s())!=null?g:p))||void 0;return St(d.getItem.bind(d))(r.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==r.version){if(r.migrate){const j=r.migrate(y.state,y.version);return j instanceof Promise?j.then(v=>[!0,v]):[!0,j]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var j;if(S!==c)return;const[v,N]=y;if(x=r.merge(N,(j=s())!=null?j:p),n(x,!0),v)return f()}).then(()=>{S===c&&(w?.(s(),void 0),x=s(),l=!0,u.forEach(y=>y(x)))}).catch(y=>{S===c&&w?.(void 0,y)})};return i.persist={setOptions:g=>{r={...r,...g},g.storage&&(d=g.storage)},clearStorage:()=>{d?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(u.add(g),()=>{u.delete(g)})},r.skipHydration||h(),x||p},Cs=io,{useSyncExternalStoreWithSelector:lo}=Gs,co=t=>t;function ao(t,e=co,n){const s=lo(t.subscribe,t.getState,t.getInitialState,e,n);return We.useDebugValue(s),s}const Dt=t=>Symbol.iterator in t,Ft=t=>"entries"in t,Vt=(t,e)=>{const n=t instanceof Map?t:new Map(t.entries()),s=e instanceof Map?e:new Map(e.entries());if(n.size!==s.size)return!1;for(const[i,r]of n)if(!s.has(i)||!Object.is(r,s.get(i)))return!1;return!0},uo=(t,e)=>{const n=t[Symbol.iterator](),s=e[Symbol.iterator]();let i=n.next(),r=s.next();for(;!i.done&&!r.done;){if(!Object.is(i.value,r.value))return!1;i=n.next(),r=s.next()}return!!i.done&&!!r.done};function fo(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:Dt(t)&&Dt(e)?Ft(t)&&Ft(e)?Vt(t,e):uo(t,e):Vt({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}function Ts(t,e="Output"){if(!t)return`interface ${e} {}`;function n(r){if(!r||typeof r!="object")return"unknown";const l=r.type;if(Array.isArray(l))return l.map(c=>s(c)).join(" | ");switch(l){case"string":return r.enum?r.enum.map(c=>`"${c}"`).join(" | "):"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";case"array":{const c=r.items;return c?`${n(c)}[]`:"unknown[]"}case"object":return i(r);default:return r.anyOf?r.anyOf.map(n).join(" | "):r.oneOf?r.oneOf.map(n).join(" | "):r.allOf?r.allOf.map(n).join(" & "):"unknown"}}function s(r){switch(r){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";default:return"unknown"}}function i(r){const l=r.properties;if(!l)return"Record<string, unknown>";const c=new Set(r.required||[]);return`{
1
+ import{dW as se,e as I,j as o,B as te,l as Yt,b1 as We,dX as Gs,r as X,q as oe,c as $,g as Qs,F as Zt,dY as Nt,dZ as es,o as Ys,v as Zs,d_ as en,d$ as tn}from"./index-CHwrxx2w.js";import{D as sn,F as nn,B as on}from"./index-BZf7dLag.js";import{h as De,i as rn,u as ae}from"./constants-DGbRKSQq.js";import{a as ts}from"./use-virtual-mcp-gRD34dSD.js";import{M as Oe}from"./monaco-editor-ByyJd0JT.js";import{A as ln,c as cn,a as an,b as un,e as dn,R as zt,d as fn}from"./accordion-BMXhHTts.js";import{B as le}from"./badge-Bxxp86rs.js";import{b as xt,d as ht,c as Ze,a as gt,S as bt}from"./select-1w9zaIxM.js";import{S as et}from"./spinner-zDPMtPt5.js";import{V as mn}from"./view-mode-toggle-BVeJGdmm.js";import{ak as pn,o as xn,i as hn,y as ss,al as gn,a5 as bn,s as jn,am as ns,ab as Sn,M as os,an as yn,ao as wn,a7 as ft,ap as vn}from"./agent-icon-CoJ-1ofl.js";import{i as rs}from"./Play-Dkm_MGgj.js";import{b as Nn,a as kn,V as Ge}from"./layout-BlkFnmnU.js";import{c as is,b as ls,T as cs,a as as}from"./tooltip-lUpcIPGH.js";import{u as In,a as _n}from"./use-connection-fbegA2Sr.js";import{u as kt,d as It,b as us}from"./use-mcp-tools-a5ty3etm.js";import{b as Cn,c as Tn,e as En,d as $n,a as On,D as Mn}from"./dialog-Cr0Lqq3q.js";import"./index-BnvhSRu1.js";import{N as Rn,m as Ln,n as zn,o as Ke,P as Wn,i as An,R as Pn,u as Dn,p as Fn,e as Wt,d as Vn,q as qn,S as Hn}from"./scroll-area-BkG2xMKa.js";import{S as Un}from"./index-BHvsdgtu.js";import{H as Kn,a as Bn,b as Xn}from"./hover-card-gTPLI0_V.js";import{D as ds,a as fs,b as ms,c as Qe}from"./dropdown-menu-CvaGrQxV.js";import{s as Jn}from"./Plus-CsnODh95.js";import{b as ps}from"./Tool01-B9i3jYjq.js";import{i as Fe}from"./Check-xwts9G2J.js";import{s as _t}from"./XClose-P7eY6MuP.js";import{I as Ct}from"./integration-icon-D9uiqhUj.js";import"./index-DIps7jWX.js";import{i as xs}from"./X-5JYlDYV-.js";import{u as hs,a as Gn}from"./use-collections-Bf-v75yp.js";import{E as gs}from"./empty-state-BJq8Oiur.js";import{c as Qn}from"./create-sse-subscription-BS5983N4.js";import{I as At}from"./input-BsiCsTx_.js";const bs=se("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const js=se("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const tt=se("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const st=se("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const Yn=se("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const Ss=se("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const Zn=se("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const ys=se("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const ws=se("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);const vs=se("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const eo=se("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const Ns=se("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const ks=se("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const to=se("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const Is=se("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);function so(t){const e=I.c(15),{onSave:n,onUndo:s,isDirty:i,isSaving:r,saveLabel:l,undoLabel:c}=t,a=l===void 0?"Save":l,u=c===void 0?"Undo":c;if(!i)return null;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(pn,{size:14}),e[0]=d):d=e[0];let f;e[1]!==r||e[2]!==s||e[3]!==u?(f=o.jsxs(te,{variant:"outline",size:"sm",onClick:s,disabled:r,"aria-label":u,children:[d,u]}),e[1]=r,e[2]=s,e[3]=u,e[4]=f):f=e[4];let m;e[5]!==r?(m=r?o.jsx(Yt,{size:14,className:"animate-spin"}):o.jsx(xn,{size:14}),e[5]=r,e[6]=m):m=e[6];let p;e[7]!==r||e[8]!==n||e[9]!==a||e[10]!==m?(p=o.jsxs(te,{variant:"default",size:"sm",onClick:n,disabled:r,"aria-label":a,children:[m,a]}),e[7]=r,e[8]=n,e[9]=a,e[10]=m,e[11]=p):p=e[11];let x;return e[12]!==f||e[13]!==p?(x=o.jsxs(o.Fragment,{children:[f,p]}),e[12]=f,e[13]=p,e[14]=x):x=e[14],x}const Pt=t=>{let e;const n=new Set,s=(u,d)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const m=e;e=d??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(p=>p(e,m))}},i=()=>e,c={setState:s,getState:i,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=e=t(s,i,c);return c},Tt=(t=>t?Pt(t):Pt),no=t=>t;function jt(t,e=no){const n=We.useSyncExternalStore(t.subscribe,We.useCallback(()=>e(t.getState()),[t,e]),We.useCallback(()=>e(t.getInitialState()),[t,e]));return We.useDebugValue(n),n}const oo=t=>{const e=Tt(t),n=s=>jt(e,s);return Object.assign(n,e),n},ro=(t=>oo);function _s(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var r;const l=a=>a===null?null:JSON.parse(a,void 0),c=(r=n.getItem(i))!=null?r:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,r)=>n.setItem(i,JSON.stringify(r,void 0)),removeItem:i=>n.removeItem(i)}}const St=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return St(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return St(s)(n)}}}},io=(t,e)=>(n,s,i)=>{let r={storage:_s(()=>window.localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},l=!1,c=0;const a=new Set,u=new Set;let d=r.storage;if(!d)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},s,i);const f=()=>{const g=r.partialize({...s()});return d.setItem(r.name,{state:g,version:r.version})},m=i.setState;i.setState=(g,b)=>(m(g,b),f());const p=t((...g)=>(n(...g),f()),s,i);i.getInitialState=()=>p;let x;const h=()=>{var g,b;if(!d)return;const S=++c;l=!1,a.forEach(y=>{var j;return y((j=s())!=null?j:p)});const w=((b=r.onRehydrateStorage)==null?void 0:b.call(r,(g=s())!=null?g:p))||void 0;return St(d.getItem.bind(d))(r.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==r.version){if(r.migrate){const j=r.migrate(y.state,y.version);return j instanceof Promise?j.then(v=>[!0,v]):[!0,j]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var j;if(S!==c)return;const[v,N]=y;if(x=r.merge(N,(j=s())!=null?j:p),n(x,!0),v)return f()}).then(()=>{S===c&&(w?.(s(),void 0),x=s(),l=!0,u.forEach(y=>y(x)))}).catch(y=>{S===c&&w?.(void 0,y)})};return i.persist={setOptions:g=>{r={...r,...g},g.storage&&(d=g.storage)},clearStorage:()=>{d?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(u.add(g),()=>{u.delete(g)})},r.skipHydration||h(),x||p},Cs=io,{useSyncExternalStoreWithSelector:lo}=Gs,co=t=>t;function ao(t,e=co,n){const s=lo(t.subscribe,t.getState,t.getInitialState,e,n);return We.useDebugValue(s),s}const Dt=t=>Symbol.iterator in t,Ft=t=>"entries"in t,Vt=(t,e)=>{const n=t instanceof Map?t:new Map(t.entries()),s=e instanceof Map?e:new Map(e.entries());if(n.size!==s.size)return!1;for(const[i,r]of n)if(!s.has(i)||!Object.is(r,s.get(i)))return!1;return!0},uo=(t,e)=>{const n=t[Symbol.iterator](),s=e[Symbol.iterator]();let i=n.next(),r=s.next();for(;!i.done&&!r.done;){if(!Object.is(i.value,r.value))return!1;i=n.next(),r=s.next()}return!!i.done&&!!r.done};function fo(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:Dt(t)&&Dt(e)?Ft(t)&&Ft(e)?Vt(t,e):uo(t,e):Vt({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}function Ts(t,e="Output"){if(!t)return`interface ${e} {}`;function n(r){if(!r||typeof r!="object")return"unknown";const l=r.type;if(Array.isArray(l))return l.map(c=>s(c)).join(" | ");switch(l){case"string":return r.enum?r.enum.map(c=>`"${c}"`).join(" | "):"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";case"array":{const c=r.items;return c?`${n(c)}[]`:"unknown[]"}case"object":return i(r);default:return r.anyOf?r.anyOf.map(n).join(" | "):r.oneOf?r.oneOf.map(n).join(" | "):r.allOf?r.allOf.map(n).join(" & "):"unknown"}}function s(r){switch(r){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";default:return"unknown"}}function i(r){const l=r.properties;if(!l)return"Record<string, unknown>";const c=new Set(r.required||[]);return`{
2
2
  ${Object.entries(l).map(([u,d])=>{const f=c.has(u)?"":"?";return`${d.description?` /** ${d.description} */
3
3
  `:""} ${u}${f}: ${n(d)};`}).join(`
4
4
  `)}
@@ -1,2 +1,2 @@
1
- import{e as N,q as E,F as Fe,a as ie,K as U,n as L,b2 as Me,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 Q}from"./index-CfZkqwiZ.js";import{i as Ve}from"./ChevronRight-DGEJKjKF.js";import{s as Ce}from"./Eye-DGTaoPip.js";import{n as Se,i as He}from"./Globe01-EL-63tMj.js";import{s as Qe}from"./Plus-2dxUo5Gk.js";import{t as Ge}from"./Stars01-ByMVzm20.js";import{i as De}from"./Upload01-DHbZQDwg.js";import{b as ye,T as we,a as be,u as Xe}from"./tooltip-CfqlCvT2.js";import{A as We,a as Ye,b as Ze,c as Je,d as et,e as tt,f as st,g as lt}from"./alert-dialog-BbnUiGi3.js";import{D as re,a as oe,c as ae,b as nt,e as it,d as rt}from"./dialog-CkRRGZnc.js";import{I as ot}from"./input-Bo10McUW.js";import{S as W}from"./skeleton-CI2wWNuJ.js";import{i as ce}from"./DotsVertical-DIU7iQOr.js";import{i as Oe}from"./ZoomOut-94598aZa.js";import{s as de}from"./Trash01--dscDyOn.js";import{i as ze}from"./Zap-JtT0wYK8.js";import{a as fe,c as Z,b as ue,D as me}from"./dropdown-menu-OXHZ7kAR.js";import{F as G,d as Pe,M as at}from"./file-type-icon-D2uT8L4_.js";import{n as ct}from"./LinkExternal01-DUyPujY1.js";import{f as Ue,a as dt,F as ft}from"./file-preview-CI4QFiCQ.js";import"./X-CM6QpVzE.js";import"./Check-J16uJKEA.js";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 Te(l,e){const t=N.c(11),{org:n}=E();let i;t[0]!==n.id||t[1]!==e||t[2]!==l?(i=U.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(ut),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:Me,queryFn:r},t[8]=i,t[9]=r,t[10]=a):a=t[10],L(a)}function ut(l,e){return l.kind!==e.kind?l.kind==="dir"?-1:1:l.path.localeCompare(e.path)}function mt(l,e){const t=N.c(12),{org:n}=E();let i;t[0]!==n.id||t[1]!==e||t[2]!==l?(i=U.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],L(c)}function ht(l){const e=N.c(9),{org:t}=E();let n;e[0]!==t.id||e[1]!==l?(n=U.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],L(r)}function xt(l){const e=N.c(8),t=60,{org:n}=E();let i;e[0]!==n.id?(i=U.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],L(a)}function Ae(){const l=N.c(7),{org:e}=E();let t;l[0]!==e.id?(t=U.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],L(i)}function pt(l){const e=N.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=N.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=N.c(26),{org:t}=E(),n=Fe();let i;e[0]!==t||e[1]!==n||e[2]!==l?(i=()=>{n.invalidateQueries({queryKey:U.orgFsVolume(t.id,l)}),n.invalidateQueries({queryKey:U.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 g=>{for(const h of g.files){const $=g.dir?`${g.dir}/${h.name}`:h.name;await R(_(t.slug,l,"file",{path:$}),{method:"PUT",headers:{"content-type":h.type||"application/octet-stream"},body:h})}},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 g=>{await R(_(t.slug,l,"dir",{path:g}),{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 g=>{await R(_(t.slug,l,"file",{path:g}),{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 p;return e[22]!==f||e[23]!==w||e[24]!==o?(p={upload:o,mkdir:f,remove:w},e[22]=f,e[23]=w,e[24]=o,e[25]=p):p=e[25],p}function gt(l){const e=N.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 p;e[11]!==t?(p=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]=p):p=e[12];let g;e[13]!==i?(g=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]=g):g=e[14];let h,$;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx("stop",{offset:"0.3",stopColor:"#4D87DF"}),$=s.jsx("stop",{offset:"1",stopColor:"#296FE8"}),e[15]=h,e[16]=$):(h=e[15],$=e[16]);let b;e[17]!==a?(b=s.jsxs("linearGradient",{id:a,x1:"15.97",y1:"2.55",x2:"15.97",y2:"9.53",gradientUnits:"userSpaceOnUse",children:[h,$]}),e[17]=a,e[18]=b):b=e[18];let k,x;e[19]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("stop",{stopColor:"#72B6FA"}),x=s.jsx("stop",{offset:"1",stopColor:"#5BB1EF"}),e[19]=k,e[20]=x):(k=e[19],x=e[20]);let v;e[21]!==c?(v=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:[k,x]}),e[21]=c,e[22]=v):v=e[22];let F;e[23]!==b||e[24]!==v?(F=s.jsxs("defs",{children:[b,v]}),e[23]=b,e[24]=v,e[25]=F):F=e[25];let S;return e[26]!==n||e[27]!==F||e[28]!==d||e[29]!==f||e[30]!==p||e[31]!==g?(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,p,g,F]}),e[26]=n,e[27]=F,e[28]=d,e[29]=f,e[30]=p,e[31]=g,e[32]=S):S=e[32],S}function jt(l){const e={};for(const t of l.split(`
1
+ import{e as N,q as E,F as Fe,a as ie,K as U,n as L,b2 as Me,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 Q}from"./index-CHwrxx2w.js";import{i as Ve}from"./ChevronRight-D5DpowYO.js";import{s as Ce}from"./Eye-MHwkC0Bm.js";import{n as Se,i as He}from"./Globe01-ZT5vmTMf.js";import{s as Qe}from"./Plus-CsnODh95.js";import{t as Ge}from"./Stars01-DxQPpWJA.js";import{i as De}from"./Upload01-Dh5J3z7m.js";import{b as ye,T as we,a as be,u as Xe}from"./tooltip-lUpcIPGH.js";import{A as We,a as Ye,b as Ze,c as Je,d as et,e as tt,f as st,g as lt}from"./alert-dialog-ocZJkxTi.js";import{D as re,a as oe,c as ae,b as nt,e as it,d as rt}from"./dialog-Cr0Lqq3q.js";import{I as ot}from"./input-BsiCsTx_.js";import{S as W}from"./skeleton-DIaIyZIy.js";import{i as ce}from"./DotsVertical-BGN9ibyU.js";import{i as Oe}from"./ZoomOut-DMIdbERz.js";import{s as de}from"./Trash01-BIBfIkQ_.js";import{i as ze}from"./Zap-DUKmeTe3.js";import{a as fe,c as Z,b as ue,D as me}from"./dropdown-menu-CvaGrQxV.js";import{F as G,d as Pe,M as at}from"./file-type-icon-BCikryQ0.js";import{n as ct}from"./LinkExternal01-DyZjuYqx.js";import{f as Ue,a as dt,F as ft}from"./file-preview-BJpkPGnT.js";import"./X-5JYlDYV-.js";import"./Check-xwts9G2J.js";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 Te(l,e){const t=N.c(11),{org:n}=E();let i;t[0]!==n.id||t[1]!==e||t[2]!==l?(i=U.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(ut),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:Me,queryFn:r},t[8]=i,t[9]=r,t[10]=a):a=t[10],L(a)}function ut(l,e){return l.kind!==e.kind?l.kind==="dir"?-1:1:l.path.localeCompare(e.path)}function mt(l,e){const t=N.c(12),{org:n}=E();let i;t[0]!==n.id||t[1]!==e||t[2]!==l?(i=U.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],L(c)}function ht(l){const e=N.c(9),{org:t}=E();let n;e[0]!==t.id||e[1]!==l?(n=U.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],L(r)}function xt(l){const e=N.c(8),t=60,{org:n}=E();let i;e[0]!==n.id?(i=U.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],L(a)}function Ae(){const l=N.c(7),{org:e}=E();let t;l[0]!==e.id?(t=U.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],L(i)}function pt(l){const e=N.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=N.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=N.c(26),{org:t}=E(),n=Fe();let i;e[0]!==t||e[1]!==n||e[2]!==l?(i=()=>{n.invalidateQueries({queryKey:U.orgFsVolume(t.id,l)}),n.invalidateQueries({queryKey:U.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 g=>{for(const h of g.files){const $=g.dir?`${g.dir}/${h.name}`:h.name;await R(_(t.slug,l,"file",{path:$}),{method:"PUT",headers:{"content-type":h.type||"application/octet-stream"},body:h})}},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 g=>{await R(_(t.slug,l,"dir",{path:g}),{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 g=>{await R(_(t.slug,l,"file",{path:g}),{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 p;return e[22]!==f||e[23]!==w||e[24]!==o?(p={upload:o,mkdir:f,remove:w},e[22]=f,e[23]=w,e[24]=o,e[25]=p):p=e[25],p}function gt(l){const e=N.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 p;e[11]!==t?(p=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]=p):p=e[12];let g;e[13]!==i?(g=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]=g):g=e[14];let h,$;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx("stop",{offset:"0.3",stopColor:"#4D87DF"}),$=s.jsx("stop",{offset:"1",stopColor:"#296FE8"}),e[15]=h,e[16]=$):(h=e[15],$=e[16]);let b;e[17]!==a?(b=s.jsxs("linearGradient",{id:a,x1:"15.97",y1:"2.55",x2:"15.97",y2:"9.53",gradientUnits:"userSpaceOnUse",children:[h,$]}),e[17]=a,e[18]=b):b=e[18];let k,x;e[19]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("stop",{stopColor:"#72B6FA"}),x=s.jsx("stop",{offset:"1",stopColor:"#5BB1EF"}),e[19]=k,e[20]=x):(k=e[19],x=e[20]);let v;e[21]!==c?(v=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:[k,x]}),e[21]=c,e[22]=v):v=e[22];let F;e[23]!==b||e[24]!==v?(F=s.jsxs("defs",{children:[b,v]}),e[23]=b,e[24]=v,e[25]=F):F=e[25];let S;return e[26]!==n||e[27]!==F||e[28]!==d||e[29]!==f||e[30]!==p||e[31]!==g?(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,p,g,F]}),e[26]=n,e[27]=F,e[28]=d,e[29]=f,e[30]=p,e[31]=g,e[32]=S):S=e[32],S}function jt(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=jt(e[1]),n=l.slice(e[0].length);return{name:t.name||null,description:t.description||ke(n),body:n}}const yt=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),wt=new Set(["txt","md","markdown","json","csv","tsv","log","yaml","yml","xml","html","htm"]),bt=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 vt(l){return l.split(".").pop()?.toLowerCase()??""}function _e(l){const e=N.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:Nt,"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:kt,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 kt(l){return l.stopPropagation()}function Nt(l){return l.stopPropagation()}function te(l){const e=N.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=N.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=N.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(gt,{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:Ft,"aria-label":`Actions for ${t}`,children:s.jsx(ce,{size:14})})}),s.jsx(ue,{align:"end",onClick:$t,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 $t(l){return l.stopPropagation()}function Ft(l){return l.stopPropagation()}function qe(l){const e=N.c(19),{filename:t,updatedAt:n,downloadUrl:i,onOpen:r,onDelete:a}=l;let c;e[0]!==t?(c=s.jsx(G,{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 Ct(l){const e=N.c(36),{dirName:t,updatedAt:n,skillMdUrl:i,onOpen:r,onBrowse:a,onDelete:c}=l;let o;e[0]!==i?(o=U.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}=L(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 p=y?.name??t;let g;e[10]!==n?(g=ee(n),e[10]=n,e[11]=g):g=e[11];const h=`Actions for ${t}`;let $;e[12]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(ce,{size:14}),e[12]=$):$=e[12];let b;e[13]!==h?(b=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:Dt,"aria-label":h,children:$})}),e[13]=h,e[14]=b):b=e[14];let k;e[15]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Oe,{size:14}),e[15]=k):k=e[15];let x;e[16]!==a?(x=s.jsxs(Z,{onClick:a,children:[k,"Browse files"]}),e[16]=a,e[17]=x):x=e[17];let v;e[18]!==c?(v=c&&s.jsxs(Z,{variant:"destructive",onClick:c,children:[s.jsx(de,{size:14}),"Delete"]}),e[18]=c,e[19]=v):v=e[19];let F;e[20]!==x||e[21]!==v?(F=s.jsxs(ue,{align:"end",onClick:St,children:[x,v]}),e[20]=x,e[21]=v,e[22]=F):F=e[22];let S;e[23]!==b||e[24]!==F?(S=s.jsxs(me,{children:[b,F]}),e[23]=b,e[24]=F,e[25]=S):S=e[25];let D;e[26]!==S||e[27]!==p||e[28]!==g?(D=s.jsx(se,{icon:w,name:p,meta:g,subtitle:"Skill",actions:S}),e[26]=S,e[27]=p,e[28]=g,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 St(l){return l.stopPropagation()}function Dt(l){return l.stopPropagation()}function Ot(l){const e=N.c(11),{url:t}=l;let n;e[0]!==t?(n=U.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}=L(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 zt(l){const e=N.c(4),{filename:t,size:n,downloadUrl:i}=l;let r;if(e[0]!==i||e[1]!==t||e[2]!==n){const a=vt(t),c=yt.has(a)?s.jsx("img",{src:i,alt:"",loading:"lazy",className:"h-full w-full object-cover"}):wt.has(a)&&n<=bt?s.jsx(Ot,{url:i}):s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsx(G,{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 Pt(l){const e=N.c(24),t=l.onOpen;let n;e[0]!==l.filename?(n=s.jsx(G,{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(zt,{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 T(l){const e=l.lastIndexOf("/");return e===-1?l:l.slice(e+1)}function Ut(l){const e=N.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}=mt(a,c),u=pt(a??"");let f,m,y,w,p,g,h,$,b,k,x,v;e[2]!==u||e[3]!==o||e[4]!==c||e[5]!==n||e[6]!==t?(w=T(c),y=o&&o.kind==="file"?{key:t,filename:w,size:o.size,downloadUrl:u(o.path)}:null,m=re,x=!0,e[19]!==n?(v=C=>{C||n()},e[19]=n,e[20]=v):v=e[20],f=oe,k="flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",b="flex h-11 shrink-0 items-center gap-1 border-b border-border/60 py-1 pr-12 pl-2",p="flex min-w-0 flex-1 items-center gap-2 px-2",g=s.jsx(G,{filename:w,className:"h-4.5 w-3.5 shrink-0"}),e[21]!==w?(h=s.jsx(ae,{className:"truncate text-xs font-medium text-foreground",children:w}),e[21]=w,e[22]=h):h=e[22],$=y&&s.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:Ue(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]=p,e[12]=g,e[13]=h,e[14]=$,e[15]=b,e[16]=k,e[17]=x,e[18]=v):(f=e[7],m=e[8],y=e[9],w=e[10],p=e[11],g=e[12],h=e[13],$=e[14],b=e[15],k=e[16],x=e[17],v=e[18]);let F;e[23]!==p||e[24]!==g||e[25]!==h||e[26]!==$?(F=s.jsxs("div",{className:p,children:[g,h,$]}),e[23]=p,e[24]=g,e[25]=h,e[26]=$,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(ct,{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]!==b?(D=s.jsxs("div",{className:b,children:[F,S]}),e[30]=F,e[31]=S,e[32]=b,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(dt,{file:y}):d?s.jsx(ft,{}):s.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[s.jsx(G,{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]!==k?(O=s.jsxs(f,{className:k,children:[D,z]}),e[38]=f,e[39]=D,e[40]=z,e[41]=k,e[42]=O):O=e[42];let j;return e[43]!==m||e[44]!==O||e[45]!==x||e[46]!==v?(j=s.jsx(m,{open:x,onOpenChange:v,children:O}),e[43]=m,e[44]=O,e[45]=x,e[46]=v,e[47]=j):j=e[47],j}function Tt(l){const e=N.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=L({queryKey:U.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=Te(c??"",o);let y;e[0]!==o?(y=T(o),e[0]=o,e[1]=y):y=e[1];const w=y;let p;e[2]!==f.data?(p=f.data?Ee(f.data):null,e[2]=f.data,e[3]=p):p=e[3];const g=p,h=(m.data??[]).filter(At),$=re,b=!0;let k;e[4]!==n?(k=A=>{A||n()},e[4]=n,e[5]=k):k=e[5];const x=oe,v="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=g?.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=g?.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(Oe,{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 V;e[23]!==f.isError||e[24]!==f.isPending||e[25]!==g||e[26]!==t?(V=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||!g?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(at,{id:`skill-preview-${t}`,text:g.body})})}),e[23]=f.isError,e[24]=f.isPending,e[25]=g,e[26]=t,e[27]=V):V=e[27];const ne=h.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"}),h.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(G,{filename:T(A.path),className:"h-5 w-4 shrink-0"}),s.jsx("span",{className:"min-w-0 flex-1 truncate text-[13px] text-foreground",children:T(A.path)}),s.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:Ue(A.size)})]},A.path))]});let H;e[28]!==x||e[29]!==I||e[30]!==V||e[31]!==ne?(H=s.jsxs(x,{className:v,children:[I,V,ne]}),e[28]=x,e[29]=I,e[30]=V,e[31]=ne,e[32]=H):H=e[32];let J;return e[33]!==$||e[34]!==H||e[35]!==k?(J=s.jsx($,{open:b,onOpenChange:k,children:H}),e[33]=$,e[34]=H,e[35]=k,e[36]=J):J=e[36],J}function At(l){return l.kind==="file"&&T(l.path)!=="SKILL.md"}const Le=[{id:"uploads",description:"Files your team uploads",glyph:De},{id:"outputs",description:"Agent run outputs",glyph:Ge}],Ne=3;function M(l){const e=N.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 q(l){const e=N.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=N.c(2),{rows:t}=l,n=t===void 0?1:t;let i;return e[0]!==n?(i=s.jsx(q,{children:Array.from({length:n*3},Et)}),e[0]=n,e[1]=i):i=e[1],i}function Et(l,e){return s.jsx(W,{className:"h-16 rounded-2xl"},e)}function ge(l){const e=N.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 _t(){const l=N.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 qt(l){const e=N.c(6),{volume:t,description:n,glyph:i,onOpen:r}=l,a=ht(t),c=a.data?`${a.data.files} files`:void 0;let o;return e[0]!==n||e[1]!==i||e[2]!==r||e[3]!==c||e[4]!==t?(o=s.jsx(le,{name:t,meta:c,subtitle:n,glyph:i,onOpen:r}),e[0]=n,e[1]=i,e[2]=r,e[3]=c,e[4]=t,e[5]=o):o=e[5],o}function Lt(l){const e=N.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(Ve,{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 Mt(l){const e=N.c(18),{onOpenDir:t,onOpenFile:n,onDelete:i}=l,r=xt(),a=Ae(),c=he();let o;if(e[0]!==c||e[1]!==i||e[2]!==t||e[3]!==n||e[4]!==a.data?.length||e[5]!==r.data||e[6]!==r.isPending){const d=r.data??[],u=d.slice(0,Ne),f=d.slice(Ne);let m,y;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(M,{children:"Folders"}),y=s.jsx(_t,{}),e[8]=m,e[9]=y):(m=e[8],y=e[9]);let w;e[10]!==t?(w=Le.map(h=>s.jsx(qt,{volume:h.id,description:h.description,glyph:h.glyph,onOpen:()=>t(h.id)},h.id)),e[10]=t,e[11]=w):w=e[11];let p;e[12]!==t||e[13]!==a.data?.length?(p=(a.data?.length??0)>0&&s.jsx(le,{name:"public",meta:`${a.data?.length} sets`,subtitle:"Curated skill sets — read-only",glyph:He,readOnly:!0,onOpen:()=>t("public")}),e[12]=t,e[13]=a.data?.length,e[14]=p):p=e[14];let g;e[15]!==w||e[16]!==p?(g=s.jsxs("div",{className:"flex flex-col gap-3",children:[m,y,s.jsxs(q,{children:[w,p]})]}),e[15]=w,e[16]=p,e[17]=g):g=e[17],o=s.jsxs(s.Fragment,{children:[r.isPending?s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(M,{children:"Recently added"}),s.jsx(pe,{})]}):u.length>0?s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(M,{children:"Recently added"}),s.jsx(q,{children:u.map(h=>s.jsx(Pt,{filename:T(h.path),updatedAt:h.updatedAt,size:h.size,downloadUrl:c(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."}),g,f.length>0&&s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(M,{children:"All files"}),s.jsx(q,{children:f.map(h=>s.jsx(qe,{filename:T(h.path),updatedAt:h.updatedAt,downloadUrl:c(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]=c,e[1]=i,e[2]=t,e[3]=n,e[4]=a.data?.length,e[5]=r.data,e[6]=r.isPending,e[7]=o}else o=e[7];return o}function Rt(l){const e=N.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(q,{children:a}),e[9]=a,e[10]=c):c=e[10],c}function Bt(l){const e=N.c(25),{location:t,onOpenDir:n,onOpenFile:i,onOpenSkill:r,onDelete:a}=l,c=t.volume??"",o=Te(c,t.dirPath),d=he();if(o.isPending){let p;return e[0]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(pe,{rows:2}),e[0]=p):p=e[0],p}if(o.isError){const p=o.error instanceof Error?o.error.message:"Failed to load";let g;return e[1]!==p?(g=s.jsx("p",{className:"text-sm text-destructive",children:p}),e[1]=p,e[2]=g):g=e[2],g}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 p=o.data??[],g=p.filter(Vt),h=p.filter(It),$=p.filter(Kt);if(p.length===0){const x=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 v;e[15]!==x?(v=s.jsx(ge,{children:x}),e[15]=x,e[16]=v):v=e[16],y=v;break e}let b;e[17]!==t.readOnly||e[18]!==a||e[19]!==c?(b=x=>t.readOnly?void 0:()=>a({volume:c,path:x.path,kind:x.kind}),e[17]=t.readOnly,e[18]=a,e[19]=c,e[20]=b):b=e[20];const k=b;u=g.length>0&&s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(M,{children:"Skills"}),s.jsx(q,{children:g.map(x=>s.jsx(Ct,{dirName:T(x.path),updatedAt:x.updatedAt,skillMdUrl:d(c,`${x.path}/SKILL.md`),onOpen:()=>r(Y(t,x.path)),onBrowse:()=>n(Y(t,x.path)),onDelete:k(x)},x.path))})]}),f=h.length>0&&s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(M,{children:"Folders"}),s.jsx(q,{children:h.map(x=>s.jsx(le,{name:T(x.path),meta:ee(x.updatedAt),readOnly:t.readOnly,onOpen:()=>n(Y(t,x.path)),onDelete:k(x)},x.path))})]}),m=$.length>0&&s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(M,{children:"Files"}),s.jsx(q,{children:$.map(x=>s.jsx(qe,{filename:T(x.path),updatedAt:x.updatedAt,downloadUrl:d(c,x.path),onOpen:()=>i(Y(t,x.path)),onDelete:k(x)},x.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 Kt(l){return l.kind==="file"}function It(l){return l.kind==="dir"&&!l.hasSkill}function Vt(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,p]=X.useState(!1),[g,h]=X.useState(""),$=X.useRef(null),b=r.readOnly?null:r.volume??"uploads",k=r.volume?r.dirPath:"",{upload:x,mkdir:v}=ve(b??"uploads"),{remove:F}=ve(m?.volume??"uploads");async function S(j){if(!(!b||!j||j.length===0))try{await x.mutateAsync({dir:k,files:[...j]}),Q.success(j.length===1?`Uploaded ${j[0]?.name}`:`Uploaded ${j.length} files`)}catch(C){Q.error(C instanceof Error?C.message:"Upload failed")}finally{$.current&&($.current.value="")}}async function D(){const j=g.trim();if(!(!b||!j))try{await v.mutateAsync(k?`${k}/${j}`:j),Q.success(`Folder "${j}" created`),p(!1),h("")}catch(C){Q.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),Q.success(`Deleted ${T(j.path)}`)}catch(C){Q.error(C instanceof Error?C.message:"Delete failed")}finally{y(null)}}function O(){for(const j of Le)e.invalidateQueries({queryKey:U.orgFsVolume(l.id,j.id)});r.volume&&e.invalidateQueries({queryKey:U.orgFsVolume(l.id,r.volume)}),e.invalidateQueries({queryKey:U.orgFsRecent(l.id)}),e.invalidateQueries({queryKey:U.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(Lt,{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&&b&&s.jsxs(P,{variant:"outline",size:"sm",onClick:()=>p(!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:x.isPending,onClick:()=>$.current?.click(),children:[s.jsx(De,{size:14}),x.isPending?"Uploading…":"Upload file"]}),s.jsx("input",{ref:$,type:"file",multiple:!0,className:"hidden",onChange:j=>{S(j.target.files)}})]})]}),a?s.jsx(Mt,{onOpenDir:o,onOpenFile:d,onDelete:y}):r.volume===null?s.jsx(Rt,{onOpenDir:o}):s.jsx(Bt,{location:r,onOpenDir:o,onOpenFile:d,onOpenSkill:u,onDelete:y},r.volume)]}),n.preview?s.jsx(Ut,{previewPath:n.preview,onClose:()=>c("preview",null)}):n.skill?s.jsx(Tt,{skillPath:n.skill,onClose:()=>c("skill",null),onOpenFile:d,onBrowse:f}):null,s.jsx(re,{open:w,onOpenChange:p,children:s.jsxs(oe,{children:[s.jsxs(nt,{children:[s.jsx(ae,{children:"New folder"}),s.jsxs(it,{children:["Create a folder in ",i||"the library","."]})]}),s.jsx(ot,{autoFocus:!0,placeholder:"folder-name",value:g,onChange:j=>h(j.target.value),onKeyDown:j=>{j.key==="Enter"&&D()}}),s.jsxs(rt,{children:[s.jsx(P,{variant:"outline",onClick:()=>p(!1),children:"Cancel"}),s.jsx(P,{disabled:!g.trim()||v.isPending,onClick:()=>{D()},children:"Create"})]})]})}),s.jsx(We,{open:m!==null,onOpenChange:j=>{j||y(null)},children:s.jsxs(Ye,{children:[s.jsxs(Ze,{children:[s.jsxs(Je,{children:["Delete ",m?T(m.path):"","?"]}),s.jsx(et,{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(tt,{children:[s.jsx(st,{children:"Cancel"}),s.jsx(lt,{onClick:()=>{z()},children:"Delete"})]})]})})]})}function hs(){const l=N.c(2);if(Xe()){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{hs as default};