decocms 3.31.1 → 3.31.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/dist/client/assets/{AlertCircle-CNjNg2wb.js → AlertCircle-B4gYnOPQ.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-7-SM74wR.js → ArrowUpRight-D0kjnBU3.js} +1 -1
  3. package/dist/client/assets/{Check-CkY-NLLZ.js → Check-Cy2gwr8C.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-DYKqL__C.js → CheckCircle-CNdjtGTh.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-B8XrNXeE.js → ChevronDown-3x5m66Bs.js} +1 -1
  6. package/dist/client/assets/{ChevronLeft-B6gErU0k.js → ChevronLeft-2_IuBsKu.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-BJRYs8bt.js → ChevronRight-CeIr4WsE.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-CgxnjYlU.js → ChevronUp-Bh0YaH7H.js} +1 -1
  9. package/dist/client/assets/{Container-Dt-ev6Gi.js → Container-CYA7KoET.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-BwZzHCbU.js → DotsVertical-FCIPj2jh.js} +1 -1
  11. package/dist/client/assets/{Eye-Co-ItdFE.js → Eye-BEaX-nOW.js} +1 -1
  12. package/dist/client/assets/{FilterLines-DwPmuK2v.js → FilterLines-PIiHcomo.js} +1 -1
  13. package/dist/client/assets/{Globe01-BnLBFtky.js → Globe01-DCcLGAPs.js} +1 -1
  14. package/dist/client/assets/{HardDrive-DmPQQU2w.js → HardDrive-DF3wR4Ey.js} +1 -1
  15. package/dist/client/assets/{Key01-BuFH2ztD.js → Key01-DOICf9Yf.js} +1 -1
  16. package/dist/client/assets/{LayoutLeft-DOdRMzln.js → LayoutLeft-XvA4efJR.js} +1 -1
  17. package/dist/client/assets/{LinkExternal01-ZepkFy5p.js → LinkExternal01-kEaZ-3VP.js} +1 -1
  18. package/dist/client/assets/{Monitor01-5IIvvy6H.js → Monitor01-BQ2ab3I8.js} +1 -1
  19. package/dist/client/assets/{Palette-Cu3PTFf5.js → Palette-BvgmCjcf.js} +1 -1
  20. package/dist/client/assets/{Play-4vubxqND.js → Play-CgnBFM99.js} +1 -1
  21. package/dist/client/assets/{Plus-DrYyBDmj.js → Plus-CZoFo8m3.js} +1 -1
  22. package/dist/client/assets/{RefreshCcw01-eSV0Gr10.js → RefreshCcw01-CoOu-1-t.js} +1 -1
  23. package/dist/client/assets/{SearchMd-Dq0euRWv.js → SearchMd-Cd3g9OHi.js} +1 -1
  24. package/dist/client/assets/{Settings02-B_z2JeIq.js → Settings02-h4KhooA8.js} +1 -1
  25. package/dist/client/assets/{Shield01-Dmf7TklI.js → Shield01-CxluyAom.js} +1 -1
  26. package/dist/client/assets/{Star01-ChWAyIjY.js → Star01-BQu9_hS7.js} +1 -1
  27. package/dist/client/assets/{Stars01-DbI-YGmK.js → Stars01-D3E_UsFP.js} +1 -1
  28. package/dist/client/assets/{Stars02-WR3K9Daq.js → Stars02-DQPSVMUP.js} +1 -1
  29. package/dist/client/assets/{Sun-BIJajZBA.js → Sun-CGlOqn-C.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-BjyN-RbX.js → SwitchHorizontal01-DruCuOB9.js} +1 -1
  31. package/dist/client/assets/{Tool01-Nn7pl58k.js → Tool01-DXZCxrW7.js} +1 -1
  32. package/dist/client/assets/{Trash01-BW2v6vxa.js → Trash01-CdVc63JX.js} +1 -1
  33. package/dist/client/assets/{Upload01-CyW8Wv9e.js → Upload01-hFtvGOKc.js} +1 -1
  34. package/dist/client/assets/{User01-BBVMvdD1.js → User01-DkghkjfJ.js} +1 -1
  35. package/dist/client/assets/{Users01-3QXDJ7kM.js → Users01-DSIM6pEW.js} +1 -1
  36. package/dist/client/assets/{Users03-Dc2Q2YCx.js → Users03-cwi85RQL.js} +1 -1
  37. package/dist/client/assets/{X-BUrHvnq3.js → X-CiRjfhfc.js} +1 -1
  38. package/dist/client/assets/{XCircle-Bz32In76.js → XCircle-m30sBtwe.js} +1 -1
  39. package/dist/client/assets/{XClose-D4SdKRIc.js → XClose-DEtxBka1.js} +1 -1
  40. package/dist/client/assets/{Zap-DAhQN3Qe.js → Zap-BqoFLQhx.js} +1 -1
  41. package/dist/client/assets/{ZapSquare-DdYqdyu4.js → ZapSquare-88gaWy0c.js} +1 -1
  42. package/dist/client/assets/{ZoomOut-BP5vTMyD.js → ZoomOut-OQ9XVMLx.js} +1 -1
  43. package/dist/client/assets/{access-gate-CGZv0aLQ.js → access-gate-DADwk2R8.js} +1 -1
  44. package/dist/client/assets/{accordion-CGxHoi6P.js → accordion-67DY3M-J.js} +1 -1
  45. package/dist/client/assets/{add-section-modal-DLCZWYmt.js → add-section-modal-CAjwD6Pd.js} +1 -1
  46. package/dist/client/assets/{agent-capabilities-BOt7wU7l.js → agent-capabilities-f1C_QUMa.js} +1 -1
  47. package/dist/client/assets/{agent-icon-DbC1U9Lv.js → agent-icon-DRs2sxx6.js} +1 -1
  48. package/dist/client/assets/{agent-icons-B273VQSG.js → agent-icons-4ZuoYvOM.js} +1 -1
  49. package/dist/client/assets/{agents-list-Dpi-AAFb.js → agents-list-BawKTAIq.js} +1 -1
  50. package/dist/client/assets/{ai-providers-DGbRuhig.js → ai-providers-Cw6JIdBf.js} +1 -1
  51. package/dist/client/assets/{alert-dB15ZxT2.js → alert-DvSgp-Ux.js} +1 -1
  52. package/dist/client/assets/{alert-dialog-CstddcEP.js → alert-dialog-CvpxH7Lf.js} +1 -1
  53. package/dist/client/assets/app-editor-DFjSiVlG.js +1 -0
  54. package/dist/client/assets/{auth-catchall-2_Uziri1.js → auth-catchall-DYNGMvE3.js} +1 -1
  55. package/dist/client/assets/{auth-split-layout-BBSUM3P9.js → auth-split-layout-NbrrlaWV.js} +1 -1
  56. package/dist/client/assets/{automation-list-row-DeSlvYhB.js → automation-list-row-DUFXJruv.js} +1 -1
  57. package/dist/client/assets/{automation-runs-D6XH4v3a.js → automation-runs-CAmeSsSa.js} +1 -1
  58. package/dist/client/assets/{automations-DouKICLt.js → automations-CgeuUTLU.js} +1 -1
  59. package/dist/client/assets/{avatar-Glcqg-C7.js → avatar-CWn5LER_.js} +1 -1
  60. package/dist/client/assets/{badge-CjjK5Sr7.js → badge-CIMelj9a.js} +1 -1
  61. package/dist/client/assets/{brand-context-DdQVWL7M.js → brand-context-H1clX-er.js} +1 -1
  62. package/dist/client/assets/{buckets-DVxXOURG.js → buckets-CC7y0QTv.js} +1 -1
  63. package/dist/client/assets/{calendar-D0KKVHnd.js → calendar-YPBFp_E0.js} +1 -1
  64. package/dist/client/assets/{capability-load-error-B_GRCsfG.js → capability-load-error-mbutkBah.js} +1 -1
  65. package/dist/client/assets/{card-DeDg0Mpx.js → card-CPe96wry.js} +1 -1
  66. package/dist/client/assets/{chat-context-Dd9y-6Y-.js → chat-context-BjxJIMHx.js} +1 -1
  67. package/dist/client/assets/{checkbox-D292XxeM.js → checkbox-CMfBi1P9.js} +1 -1
  68. package/dist/client/assets/{cli-auth-success-DF9o-evj.js → cli-auth-success-DYhb7-ie.js} +1 -1
  69. package/dist/client/assets/{collection-detail-ZNirTQKs.js → collection-detail-BxKQrABJ.js} +1 -1
  70. package/dist/client/assets/{collection-display-button-BHNg4RzF.js → collection-display-button-CT3gbaW0.js} +1 -1
  71. package/dist/client/assets/{collection-search-CFFTRK3x.js → collection-search-CR7VmYXP.js} +1 -1
  72. package/dist/client/assets/{collection-table-wrapper-CJC6Vyfs.js → collection-table-wrapper-8RUKrDnB.js} +1 -1
  73. package/dist/client/assets/{collection-tabs-Da8fu2pB.js → collection-tabs-DyRPz2M0.js} +1 -1
  74. package/dist/client/assets/{collections-CWnO7g9J.js → collections-D3ATOWCI.js} +1 -1
  75. package/dist/client/assets/{command-Dm1ALJPS.js → command-DwAn8s0z.js} +1 -1
  76. package/dist/client/assets/{connect-desktop-dialog-CNaHa2Dn.js → connect-desktop-dialog-CUd_SkHU.js} +1 -1
  77. package/dist/client/assets/{connection-card-J_g5yRQM.js → connection-card-0Tyv2fap.js} +1 -1
  78. package/dist/client/assets/{connection-detail-CtdPxsW2.js → connection-detail-Ci7FJpsv.js} +1 -1
  79. package/dist/client/assets/{connection-form-helpers-0bmqzhLl.js → connection-form-helpers-Csat880R.js} +1 -1
  80. package/dist/client/assets/{connections-P_p0V_Q0.js → connections-CCuMprHu.js} +1 -1
  81. package/dist/client/assets/decopilot-sse-pool-Qs-1EY0r.js +1 -0
  82. package/dist/client/assets/{dialog-B4Gk40Ec.js → dialog-BgALXZ6h.js} +1 -1
  83. package/dist/client/assets/{domain-settings-BDb8F-pn.js → domain-settings-AaPYLR4t.js} +1 -1
  84. package/dist/client/assets/{drawer-C8AwBmXm.js → drawer-DLAFbROZ.js} +1 -1
  85. package/dist/client/assets/{dropdown-menu-D2S2HMhI.js → dropdown-menu-uYsl4z-0.js} +1 -1
  86. package/dist/client/assets/{dynamic-plugin-layout-Dg3kd-lT.js → dynamic-plugin-layout-OZf-s4Vh.js} +1 -1
  87. package/dist/client/assets/{empty-state-ZcLmoTrQ.js → empty-state-CzSsahKD.js} +1 -1
  88. package/dist/client/assets/{empty-state-BEPxxZyq.js → empty-state-DaQUj4WW.js} +1 -1
  89. package/dist/client/assets/{extract-connection-data-Cdme2PYD.js → extract-connection-data-8yLRil2N.js} +1 -1
  90. package/dist/client/assets/{features-Dg5ySgax.js → features-BUlOTs5u.js} +1 -1
  91. package/dist/client/assets/{file-explorer-NmtOY4n0.js → file-explorer-1z_jfh76.js} +1 -1
  92. package/dist/client/assets/{file-type-icon-ByhQy2rW.js → file-type-icon-BI-57QdR.js} +1 -1
  93. package/dist/client/assets/{files-CGUJegiW.js → files-CXNJllw8.js} +1 -1
  94. package/dist/client/assets/{form-DzqpARCW.js → form-BSWyFOE3.js} +1 -1
  95. package/dist/client/assets/{general-BaZ3r2GW.js → general-D0FEa5ER.js} +1 -1
  96. package/dist/client/assets/{generate-id-DCN1LrlB.js → generate-id-Cx2Cl6ns.js} +1 -1
  97. package/dist/client/assets/{github-repo-picker-DifHpnDV.js → github-repo-picker-DFc58L4T.js} +1 -1
  98. package/dist/client/assets/{header-tab-button-CyQ_CUpS.js → header-tab-button-EU-XSa1F.js} +1 -1
  99. package/dist/client/assets/{hover-card-fQ5zGcbl.js → hover-card-B2Xe1JoR.js} +1 -1
  100. package/dist/client/assets/{image-field-_Av_lLAg.js → image-field-D5MmzFT-.js} +1 -1
  101. package/dist/client/assets/{index-D_v0xAjK.js → index-8eGpjmNk.js} +1 -1
  102. package/dist/client/assets/{index-BlbwvYId.js → index-9-_G5hYz.js} +1 -1
  103. package/dist/client/assets/{index-H-an7LFa.js → index-BHORPjEK.js} +1 -1
  104. package/dist/client/assets/{index-D3IoOs9k.js → index-BK9zbgCs.js} +1 -1
  105. package/dist/client/assets/{index-DjCrtoJM.js → index-BPnG82q8.js} +3 -3
  106. package/dist/client/assets/{index-snZrdd2U.js → index-B_KbH-mb.js} +1 -1
  107. package/dist/client/assets/{index-D7vPwljU.js → index-BpKJI7Dd.js} +1 -1
  108. package/dist/client/assets/{index--VFF-Fa0.js → index-C0KuwIPp.js} +1 -1
  109. package/dist/client/assets/{index-Bkgvp8b5.js → index-CUVr6lcg.js} +1 -1
  110. package/dist/client/assets/{index-grq1eXi6.js → index-CUWw06mX.js} +1 -1
  111. package/dist/client/assets/{index-CDPDznJw.js → index-CU_dpGl4.js} +1 -1
  112. package/dist/client/assets/{index-Brb5zXrs.js → index-CYt0V3AS.js} +1 -1
  113. package/dist/client/assets/{index-CDa8r-Ay.js → index-DMmuIje2.js} +1 -1
  114. package/dist/client/assets/{index-CXYYh-WP.js → index-DaOT4XJB.js} +1 -1
  115. package/dist/client/assets/{index-0pKQiQw5.js → index-Nndg_EdX.js} +19 -19
  116. package/dist/client/assets/{index-redirect-DtYqdHDy.js → index-redirect--1iDHaDV.js} +1 -1
  117. package/dist/client/assets/{input-odGTsdHi.js → input-Dp561wvu.js} +1 -1
  118. package/dist/client/assets/{integration-icon-CYVpZTf5.js → integration-icon-CcFsasgm.js} +1 -1
  119. package/dist/client/assets/{label-CO8q2BMX.js → label-BSaEPU5n.js} +1 -1
  120. package/dist/client/assets/{layout-mA5Rj_u2.js → layout-DhLz9U2X.js} +1 -1
  121. package/dist/client/assets/{login-BdTiL4Ph.js → login-KELNaPBJ.js} +1 -1
  122. package/dist/client/assets/{members-K2LSrSOy.js → members-W8grzhWu.js} +1 -1
  123. package/dist/client/assets/{monaco-editor-DKpM33ac.js → monaco-editor-BR_tbU8a.js} +1 -1
  124. package/dist/client/assets/{monitoring-stats-row-C1HQhYEp.js → monitoring-stats-row-5K-iNny9.js} +1 -1
  125. package/dist/client/assets/{oauth-callback-RCth5FgJ.js → oauth-callback-8KL4StZE.js} +1 -1
  126. package/dist/client/assets/{oauth-callback-ai-provider-Bx_f4SNv.js → oauth-callback-ai-provider-N8VomC_I.js} +1 -1
  127. package/dist/client/assets/{onboarding-Cw0yv-ax.js → onboarding-DtdxPB0K.js} +1 -1
  128. package/dist/client/assets/{org-install-C5oIAlaU.js → org-install-D5FbkY3j.js} +1 -1
  129. package/dist/client/assets/{org-layout-AJN3IVEY.js → org-layout-KSFpSPTk.js} +1 -1
  130. package/dist/client/assets/{org-plugin-layout-DeLJrvoA.js → org-plugin-layout-DJo1Z-Pr.js} +1 -1
  131. package/dist/client/assets/{page-seo-form-2v7yqwmW.js → page-seo-form-DJY-iA3B.js} +1 -1
  132. package/dist/client/assets/page-seo-sheet-BmGMfOzX.js +1 -0
  133. package/dist/client/assets/{pair-C9I7jtDw.js → pair-B6H2XHda.js} +1 -1
  134. package/dist/client/assets/{plugin-empty-state-BllJH9a8.js → plugin-empty-state-APGWpnYe.js} +1 -1
  135. package/dist/client/assets/{plugin-header-pbmKrc1L.js → plugin-header-CfyEfwUD.js} +1 -1
  136. package/dist/client/assets/{plugin-layout-DRXLQokx.js → plugin-layout-Bu5dLcrn.js} +1 -1
  137. package/dist/client/assets/{popover-ChUM3TFy.js → popover-BYJBybY_.js} +1 -1
  138. package/dist/client/assets/{post-editor-DBJSrVd6.js → post-editor-CYVdmKp6.js} +1 -1
  139. package/dist/client/assets/{primitives-CDySgipF.js → primitives-H10wZI-E.js} +1 -1
  140. package/dist/client/assets/{profile-C7vJk0Kt.js → profile-CRrSZ5vD.js} +1 -1
  141. package/dist/client/assets/project-app-view-Dy7VlptC.js +1 -0
  142. package/dist/client/assets/record-editor-BnPSQQYA.js +1 -0
  143. package/dist/client/assets/registry-CX-ET0zi.js +2 -0
  144. package/dist/client/assets/{registry-layout-CBGi99kW.js → registry-layout-B7ptEXAi.js} +1 -1
  145. package/dist/client/assets/{require-capability-XeIce_Pd.js → require-capability-C4c85-CT.js} +1 -1
  146. package/dist/client/assets/{required-auth-layout-BBVKG7Ms.js → required-auth-layout-BApuEUpI.js} +1 -1
  147. package/dist/client/assets/{reset-password-CZ2_k_ln.js → reset-password-CAbJ7zW-.js} +1 -1
  148. package/dist/client/assets/{resizable-DYZX4GYZ.js → resizable-D7pt8dup.js} +1 -1
  149. package/dist/client/assets/{roles-eO3gNPsn.js → roles-xJLawXZj.js} +1 -1
  150. package/dist/client/assets/save-referenced-block-ShdGpmDs.js +1 -0
  151. package/dist/client/assets/{save-status-DGCu0Kou.js → save-status-oczKxF1W.js} +1 -1
  152. package/dist/client/assets/{schema-form-CnMZQoIC.js → schema-form-974itnxa.js} +1 -1
  153. package/dist/client/assets/{scroll-area-D-xuBg8S.js → scroll-area-DuFY4R5d.js} +1 -1
  154. package/dist/client/assets/{search-input-BOFnCDgB.js → search-input-DACBbzIk.js} +1 -1
  155. package/dist/client/assets/{secrets-BLYQN7Zp.js → secrets-DMWeEvqW.js} +1 -1
  156. package/dist/client/assets/{sections-editor-BFS_rZo4.js → sections-editor-DM97T9Hx.js} +1 -1
  157. package/dist/client/assets/{select-B1gidrpT.js → select-gqSNOxQD.js} +1 -1
  158. package/dist/client/assets/{select-model-CCz1D052.js → select-model-CbdvfMbD.js} +1 -1
  159. package/dist/client/assets/{seo-editor-ClvdYMyV.js → seo-editor-BNi1XNxf.js} +1 -1
  160. package/dist/client/assets/{settings-layout-ParxM_Ja.js → settings-layout-XPdklskX.js} +1 -1
  161. package/dist/client/assets/{settings-section-DDBr5t6q.js → settings-section-BgPOTco2.js} +1 -1
  162. package/dist/client/assets/{sheet-BwcUAu7J.js → sheet-J-5zCitH.js} +1 -1
  163. package/dist/client/assets/{shell-controls-a5C7q3sv.js → shell-controls-BB8JT3cu.js} +1 -1
  164. package/dist/client/assets/{shell-layout-jPbG1TxD.js → shell-layout-B1bpQmja.js} +1 -1
  165. package/dist/client/assets/{shell-route-loading-CrwP7Moq.js → shell-route-loading-BL818aqT.js} +1 -1
  166. package/dist/client/assets/{sidebar-D0YkKw2Q.js → sidebar-DpznaqAr.js} +1 -1
  167. package/dist/client/assets/{skeleton-BnLuwQl0.js → skeleton-BrZY2U4q.js} +1 -1
  168. package/dist/client/assets/{sortable.esm-DHNuKLSF.js → sortable.esm-DAdL_KCM.js} +1 -1
  169. package/dist/client/assets/{spinner-C_dp5faG.js → spinner-DWj9d3Oy.js} +1 -1
  170. package/dist/client/assets/{sso-Dv0vfQwF.js → sso-_Gw_BXbF.js} +1 -1
  171. package/dist/client/assets/{store-CzOlrmK7.js → store-C4geYRDc.js} +1 -1
  172. package/dist/client/assets/store-registry-WC9BumXE.js +2 -0
  173. package/dist/client/assets/{studio-tools-C1zamUp1.js → studio-tools-YbndxaJx.js} +1 -1
  174. package/dist/client/assets/{switch-Co2WNb8L.js → switch-CWe9x1dO.js} +1 -1
  175. package/dist/client/assets/{tab-id-Br9ttHTZ.js → tab-id-Bc_4nZgl.js} +1 -1
  176. package/dist/client/assets/{table-DXm5sFe0.js → table-MDhW4B8D.js} +1 -1
  177. package/dist/client/assets/{tabs-Bhgl3qMn.js → tabs-9ZkZ5CXu.js} +1 -1
  178. package/dist/client/assets/{task-status-BYl9XRWC.js → task-status-BNkxxOv6.js} +1 -1
  179. package/dist/client/assets/{textarea-DkHK4zFC.js → textarea-CimG5sWW.js} +1 -1
  180. package/dist/client/assets/{toggle-group-i9f6SFf7.js → toggle-group-BqOsII08.js} +1 -1
  181. package/dist/client/assets/{toolbar-CJqhxN0I.js → toolbar-oWPvqwRC.js} +1 -1
  182. package/dist/client/assets/{tools-list-C1LX0lcn.js → tools-list-C2in0sGo.js} +1 -1
  183. package/dist/client/assets/{tooltip-MvXJgTec.js → tooltip-BwiZr2GD.js} +1 -1
  184. package/dist/client/assets/{types-B5hLLDbz.js → types-BYtVTpDQ.js} +1 -1
  185. package/dist/client/assets/{use-ai-providers-BsaGHbRZ.js → use-ai-providers-B4z2G4rP.js} +1 -1
  186. package/dist/client/assets/{use-automations-CsEWrXaA.js → use-automations-Cgz4YKs5.js} +1 -1
  187. package/dist/client/assets/{use-capability-COL6vTbP.js → use-capability-CtdbYGMh.js} +1 -1
  188. package/dist/client/assets/{use-clock-tick-DOOx6g7A.js → use-clock-tick-CPPdyWgW.js} +1 -1
  189. package/dist/client/assets/{use-collections-BTo2RzuF.js → use-collections-D52tQdGt.js} +1 -1
  190. package/dist/client/assets/{use-connection-C7K5Qf-S.js → use-connection-DyyYYs8L.js} +1 -1
  191. package/dist/client/assets/{use-copy-CGrsfbTf.js → use-copy-BEZFUgho.js} +1 -1
  192. package/dist/client/assets/{use-create-virtual-mcp-D9KVCrT1.js → use-create-virtual-mcp-w-CGYLKc.js} +1 -1
  193. package/dist/client/assets/{use-debounced-autosave-6YBhwe_F.js → use-debounced-autosave-7GLgaJXq.js} +1 -1
  194. package/dist/client/assets/{use-delete-connection-BfZlr78w.js → use-delete-connection-6bfkbwg3.js} +1 -1
  195. package/dist/client/assets/{use-file-configs-2cFOqoXA.js → use-file-configs-fZ_0pNgv.js} +1 -1
  196. package/dist/client/assets/{use-infinite-scroll-CHxQ8pHV.js → use-infinite-scroll-D2-BvjXC.js} +1 -1
  197. package/dist/client/assets/{use-list-state-ohTb0Oa4.js → use-list-state-BiQdeo-3.js} +1 -1
  198. package/dist/client/assets/{use-mcp-client-Wf5qUXFF.js → use-mcp-client-iXdxenz3.js} +1 -1
  199. package/dist/client/assets/{use-mcp-prompts-C3LVS9Ph.js → use-mcp-prompts-BZ3M88pO.js} +1 -1
  200. package/dist/client/assets/{use-mcp-tools-CHOFkJhf.js → use-mcp-tools-BFte_Z9f.js} +1 -1
  201. package/dist/client/assets/{use-members-DPGvEZAM.js → use-members-lO5UPidt.js} +1 -1
  202. package/dist/client/assets/{use-navigate-to-agent-Cyv38GW6.js → use-navigate-to-agent-DIjWe8In.js} +1 -1
  203. package/dist/client/assets/{use-org-auth-client-DEFpPA_h.js → use-org-auth-client-CjM9gfPH.js} +1 -1
  204. package/dist/client/assets/{use-org-sso-DXk1g-4_.js → use-org-sso-Sk1A6q8-.js} +1 -1
  205. package/dist/client/assets/{use-organization-roles-CgzLzx7m.js → use-organization-roles-C5mxX9Rk.js} +1 -1
  206. package/dist/client/assets/{use-organization-settings-DYscqYOA.js → use-organization-settings-MrnwSgAR.js} +1 -1
  207. package/dist/client/assets/{use-registry-connections-BWH6CWaF.js → use-registry-connections-CC-YLphz.js} +1 -1
  208. package/dist/client/assets/{use-secrets-C2K4Jrkd.js → use-secrets-CajEM27b.js} +1 -1
  209. package/dist/client/assets/{use-status-sounds-CFQ4LNhs.js → use-status-sounds-BwNN0Dt-.js} +1 -1
  210. package/dist/client/assets/{use-view-mode-Dg3ZmYU0.js → use-view-mode-B5-wFbmS.js} +1 -1
  211. package/dist/client/assets/{use-virtual-mcp-3Wk6GVmY.js → use-virtual-mcp-Cw_yVFMO.js} +1 -1
  212. package/dist/client/assets/useInfiniteQuery-DHhL-q8j.js +1 -0
  213. package/dist/client/assets/{useRouterState-DyL85Esh.js → useRouterState-IhZ1SxRm.js} +1 -1
  214. package/dist/client/assets/useSuspenseInfiniteQuery-oHftqcSU.js +1 -0
  215. package/dist/client/assets/{user-CNkzK1zV.js → user-CJUwgqvV.js} +1 -1
  216. package/dist/client/assets/{view-mode-toggle-Do2GCdol.js → view-mode-toggle-CMrO4dTZ.js} +1 -1
  217. package/dist/client/assets/{watch-sse-pool-WsArg2kN.js → watch-sse-pool-BZQA3Ki3.js} +1 -1
  218. package/dist/client/assets/{workflow-C2UTibro.js → workflow-CrJS-2vt.js} +1 -1
  219. package/dist/client/assets/workflow-detail-CBOkNhJP.js +1 -0
  220. package/dist/client/index.html +1 -1
  221. package/dist/server/cli.js +1 -1
  222. package/package.json +1 -1
  223. package/dist/client/assets/app-editor-Cq82w23j.js +0 -1
  224. package/dist/client/assets/decopilot-sse-pool-BemyIcDl.js +0 -1
  225. package/dist/client/assets/page-seo-sheet-DEYwDlV3.js +0 -1
  226. package/dist/client/assets/project-app-view-iV-1n2vK.js +0 -1
  227. package/dist/client/assets/record-editor-bmEKAE4B.js +0 -1
  228. package/dist/client/assets/registry-CT2kzs1z.js +0 -2
  229. package/dist/client/assets/save-referenced-block-erNAPeZK.js +0 -1
  230. package/dist/client/assets/store-registry-BBiSNL3g.js +0 -2
  231. package/dist/client/assets/useInfiniteQuery-DiweShIv.js +0 -1
  232. package/dist/client/assets/useSuspenseInfiniteQuery-BHYoMCUL.js +0 -1
  233. package/dist/client/assets/workflow-detail-B3lltIYe.js +0 -1
@@ -1 +1 @@
1
- import{e as k,j as o,p as T,r as N,O as D}from"./index-DjCrtoJM.js";import{u as z,S as E,a as I,b as L}from"./sidebar-D0YkKw2Q.js";import{T as M,a as O,b as A,u as P}from"./tooltip-MvXJgTec.js";import{S as $,a as W,b as B}from"./shell-route-loading-CrwP7Moq.js";import{u as X,C as H}from"./chat-context-Dd9y-6Y-.js";import{T as F}from"./tab-id-Br9ttHTZ.js";import{i as q}from"./Monitor01-5IIvvy6H.js";import{v as G,C as K}from"./connect-desktop-dialog-CNaHa2Dn.js";import{T as Y,a as b}from"./toolbar-CJqhxN0I.js";import{S as U,M as J}from"./shell-controls-a5C7q3sv.js";import"./LayoutLeft-DOdRMzln.js";import"./sheet-BwcUAu7J.js";import"./X-BUrHvnq3.js";import"./useRouterState-DyL85Esh.js";import"./ZoomOut-BP5vTMyD.js";import"./skeleton-BnLuwQl0.js";import"./popover-ChUM3TFy.js";import"./drawer-C8AwBmXm.js";import"./SearchMd-Dq0euRWv.js";import"./Star01-ChWAyIjY.js";import"./Plus-DrYyBDmj.js";import"./use-mcp-client-Wf5qUXFF.js";import"./use-virtual-mcp-3Wk6GVmY.js";import"./use-collections-BTo2RzuF.js";import"./use-create-virtual-mcp-D9KVCrT1.js";import"./use-navigate-to-agent-Cyv38GW6.js";import"./github-repo-picker-DifHpnDV.js";import"./use-connection-C7K5Qf-S.js";import"./dialog-B4Gk40Ec.js";import"./RefreshCcw01-eSV0Gr10.js";import"./collection-search-CFFTRK3x.js";import"./checkbox-D292XxeM.js";import"./Check-CkY-NLLZ.js";import"./agent-icon-DbC1U9Lv.js";import"./AlertCircle-CNjNg2wb.js";import"./Tool01-Nn7pl58k.js";import"./SwitchHorizontal01-BjyN-RbX.js";import"./XCircle-Bz32In76.js";import"./ArrowUpRight-7-SM74wR.js";import"./ZapSquare-DdYqdyu4.js";import"./Users03-Dc2Q2YCx.js";import"./CheckCircle-DYKqL__C.js";import"./ChevronDown-B8XrNXeE.js";import"./ChevronLeft-B6gErU0k.js";import"./ChevronRight-BJRYs8bt.js";import"./ChevronUp-CgxnjYlU.js";import"./DotsVertical-BwZzHCbU.js";import"./Container-Dt-ev6Gi.js";import"./Eye-Co-ItdFE.js";import"./Globe01-BnLBFtky.js";import"./FilterLines-DwPmuK2v.js";import"./Palette-Cu3PTFf5.js";import"./HardDrive-DmPQQU2w.js";import"./Stars02-WR3K9Daq.js";import"./Key01-BuFH2ztD.js";import"./LinkExternal01-ZepkFy5p.js";import"./Sun-BIJajZBA.js";import"./Play-4vubxqND.js";import"./Settings02-B_z2JeIq.js";import"./Shield01-Dmf7TklI.js";import"./Stars01-DbI-YGmK.js";import"./Trash01-BW2v6vxa.js";import"./Upload01-CyW8Wv9e.js";import"./User01-BBVMvdD1.js";import"./Users01-3QXDJ7kM.js";import"./XClose-D4SdKRIc.js";import"./Zap-DAhQN3Qe.js";import"./use-mcp-tools-CHOFkJhf.js";import"./extract-connection-data-Cdme2PYD.js";import"./generate-id-DCN1LrlB.js";import"./collections-CWnO7g9J.js";import"./shell-layout-jPbG1TxD.js";import"./avatar-Glcqg-C7.js";import"./required-auth-layout-BBVKG7Ms.js";import"./use-organization-settings-DYscqYOA.js";import"./use-org-sso-DXk1g-4_.js";import"./alert-dialog-CstddcEP.js";import"./form-DzqpARCW.js";import"./label-CO8q2BMX.js";import"./input-odGTsdHi.js";import"./spinner-C_dp5faG.js";import"./index-Bkgvp8b5.js";import"./sortable.esm-DHNuKLSF.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-J_g5yRQM.js";import"./use-registry-connections-BWH6CWaF.js";import"./useInfiniteQuery-DiweShIv.js";import"./use-infinite-scroll-CHxQ8pHV.js";import"./card-DeDg0Mpx.js";import"./integration-icon-CYVpZTf5.js";import"./collection-tabs-Da8fu2pB.js";import"./badge-CjjK5Sr7.js";import"./select-B1gidrpT.js";import"./textarea-DkHK4zFC.js";import"./connection-form-helpers-0bmqzhLl.js";import"./useSuspenseInfiniteQuery-BHYoMCUL.js";import"./use-ai-providers-BsaGHbRZ.js";import"./command-Dm1ALJPS.js";import"./index-BlbwvYId.js";import"./studio-tools-C1zamUp1.js";import"./use-org-auth-client-DEFpPA_h.js";import"./hover-card-fQ5zGcbl.js";import"./task-status-BYl9XRWC.js";import"./use-clock-tick-DOOx6g7A.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./watch-sse-pool-WsArg2kN.js";import"./decopilot-sse-pool-BemyIcDl.js";function Q(e){const t=k.c(5),{onPointerDown:r,onDoubleClick:d}=e,{state:f,isMobile:u}=z();if(u||f==="collapsed")return null;let s,n;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={left:"var(--sidebar-width)"},n=o.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border"}),t[0]=s,t[1]=n):(s=t[0],n=t[1]);let i;return t[2]!==d||t[3]!==r?(i=o.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar",title:"Drag to resize, double-click to reset",onPointerDown:r,onDoubleClick:d,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize",style:s,children:n}),t[2]=d,t[3]=r,t[4]=i):i=t[4],i}const R=240,V=400,Z="sidebar.width";function _(e){return Math.max(R,Math.min(V,e))}function ee(){const e=k.c(11),[t,r]=T(Z,te),d=N.useRef(null);let f;e[0]!==r||e[1]!==t?(f=a=>{a.preventDefault();const m=a.clientX,p=_(t),c=d.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),h=c?Array.from(c.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const x of h)x.style.transition="none";const j=x=>{const g=_(p+(x.clientX-m));c?.style.setProperty("--sidebar-width",`${g}px`)},S=x=>{const g=_(p+(x.clientX-m));r(g);for(const v of h)v.style.transition="";window.removeEventListener("pointermove",j),window.removeEventListener("pointerup",S),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",j),window.addEventListener("pointerup",S)},e[0]=r,e[1]=t,e[2]=f):f=e[2];const u=f;let s;e[3]!==r?(s=()=>{r(R)},e[3]=r,e[4]=s):s=e[4];const n=s;let i;e[5]!==t?(i=_(t),e[5]=t,e[6]=i):i=e[6];let l;return e[7]!==u||e[8]!==n||e[9]!==i?(l={width:i,wrapperRef:d,onStartResize:u,resetWidth:n},e[7]=u,e[8]=n,e[9]=i,e[10]=l):l=e[10],l}function te(e){return typeof e=="number"?_(e):R}function oe(){const e=k.c(22),t=X(),[r,d]=N.useState(!1);let f;if(e[0]!==t.capabilities||e[1]!==t.hostname||e[2]!==t.machineId||e[3]!==t.online){const j=G(t.capabilities);f=t.online?o.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",children:[o.jsx("span",{className:"font-medium",children:t.hostname??t.machineId??"Desktop linked"}),o.jsx("span",{className:"text-muted-foreground",children:j.length>0?`Available: ${j.join(", ")}`:"No CLI agents detected"})]}):o.jsx("span",{className:"text-xs",children:"Desktop disconnected"}),e[0]=t.capabilities,e[1]=t.hostname,e[2]=t.machineId,e[3]=t.online,e[4]=f}else f=e[4];const u=f;let s;e[5]===Symbol.for("react.memo_cache_sentinel")?(s=()=>d(!0),e[5]=s):s=e[5];const n=t.online?"Desktop linked":"Connect your desktop";let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(q,{size:16}),e[6]=i):i=e[6];let l;e[7]!==t.online?(l=t.online&&o.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-success ring-2 ring-background animate-pulse"}),e[7]=t.online,e[8]=l):l=e[8];let a;e[9]!==n||e[10]!==l?(a=o.jsx(M,{asChild:!0,children:o.jsxs(Y,{onClick:s,"aria-label":n,children:[i,l]})}),e[9]=n,e[10]=l,e[11]=a):a=e[11];let m;e[12]!==u?(m=o.jsx(O,{side:"bottom",children:u}),e[12]=u,e[13]=m):m=e[13];let p;e[14]!==a||e[15]!==m?(p=o.jsxs(A,{children:[a,m]}),e[14]=a,e[15]=m,e[16]=p):p=e[16];let c;e[17]!==r?(c=o.jsx(K,{open:r,onOpenChange:d}),e[17]=r,e[18]=c):c=e[18];let h;return e[19]!==p||e[20]!==c?(h=o.jsxs(o.Fragment,{children:[p,c]}),e[19]=p,e[20]=c,e[21]=h):h=e[21],h}const ie="sidebar.open";function re(){const e=k.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=o.jsx(B,{}),e[0]=t):t=e[0],t}function so(){const e=k.c(26),t=P(),[r,d]=T(ie,!1),{width:f,wrapperRef:u,onStartResize:s,resetWidth:n}=ee();let i,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(b.LogoLink,{}),l=o.jsx(U,{}),e[0]=i,e[1]=l):(i=e[0],l=e[1]);let a,m;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsxs(b.LeftColumn,{children:[i,l,o.jsx("span",{className:"hidden md:contents",children:o.jsx(b.Nav,{})}),o.jsx(b.TogglesSlot,{}),o.jsx(oe,{})]}),m=o.jsx(b.CenterSlot,{}),e[2]=a,e[3]=m):(a=e[2],m=e[3]);let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsxs(b.Header,{children:[a,m,o.jsxs(b.RightColumn,{children:[o.jsx("div",{className:"min-w-0 flex-1 overflow-x-auto [scrollbar-width:none] flex justify-end",children:o.jsx(b.TabsSlot,{})}),o.jsx(b.RightSlot,{})]})]}),e[4]=p):p=e[4];const c=`${f}px`;let h;e[5]!==c?(h={"--sidebar-width":c,"--sidebar-width-icon":"3.5rem"},e[5]=c,e[6]=h):h=e[6];const j=h;let S;e[7]!==t||e[8]!==s||e[9]!==n?(S=!t&&o.jsxs(o.Fragment,{children:[o.jsx($,{}),o.jsx(Q,{onPointerDown:s,onDoubleClick:n})]}),e[7]=t,e[8]=s,e[9]=n,e[10]=S):S=e[10];let x;e[11]===Symbol.for("react.memo_cache_sentinel")?(x={background:"transparent",containerType:"inline-size"},e[11]=x):x=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(E,{className:"flex flex-col",style:x,children:o.jsx("div",{className:"flex flex-col h-full min-h-0",children:o.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:o.jsx(N.Suspense,{fallback:o.jsx(re,{}),children:o.jsx(D,{})})})})}),e[12]=g):g=e[12];let v;e[13]!==j||e[14]!==S||e[15]!==u?(v=o.jsxs(I,{ref:u,className:"flex-1 bg-sidebar relative min-h-0",style:j,children:[S,g]}),e[13]=j,e[14]=S,e[15]=u,e[16]=v):v=e[16];let y;e[17]!==t?(y=t&&o.jsx(J,{renderSidebar:se}),e[17]=t,e[18]=y):y=e[18];let w;e[19]!==v||e[20]!==y?(w=o.jsx(H,{children:o.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[p,v,y]})}),e[19]=v,e[20]=y,e[21]=w):w=e[21];let C;return e[22]!==d||e[23]!==r||e[24]!==w?(C=o.jsx(F,{children:o.jsx(b.Provider,{children:o.jsx(L,{open:r,onOpenChange:d,children:w})})}),e[22]=d,e[23]=r,e[24]=w,e[25]=C):C=e[25],C}function se(e){const{onClose:t}=e;return o.jsx("div",{className:"flex h-full",children:o.jsx("div",{className:"w-full bg-sidebar flex flex-col overflow-y-auto group/sidebar","data-state":"expanded",children:o.jsx(W,{onClose:t})})})}export{so as default};
1
+ import{e as k,j as o,p as T,r as N,O as D}from"./index-BPnG82q8.js";import{u as z,S as E,a as I,b as L}from"./sidebar-DpznaqAr.js";import{T as M,a as O,b as A,u as P}from"./tooltip-BwiZr2GD.js";import{S as $,a as W,b as B}from"./shell-route-loading-BL818aqT.js";import{u as X,C as H}from"./chat-context-BjxJIMHx.js";import{T as F}from"./tab-id-Bc_4nZgl.js";import{i as q}from"./Monitor01-BQ2ab3I8.js";import{v as G,C as K}from"./connect-desktop-dialog-CUd_SkHU.js";import{T as Y,a as b}from"./toolbar-oWPvqwRC.js";import{S as U,M as J}from"./shell-controls-BB8JT3cu.js";import"./LayoutLeft-XvA4efJR.js";import"./sheet-J-5zCitH.js";import"./X-CiRjfhfc.js";import"./useRouterState-IhZ1SxRm.js";import"./ZoomOut-OQ9XVMLx.js";import"./skeleton-BrZY2U4q.js";import"./popover-BYJBybY_.js";import"./drawer-DLAFbROZ.js";import"./SearchMd-Cd3g9OHi.js";import"./Star01-BQu9_hS7.js";import"./Plus-CZoFo8m3.js";import"./use-mcp-client-iXdxenz3.js";import"./use-virtual-mcp-Cw_yVFMO.js";import"./use-collections-D52tQdGt.js";import"./use-create-virtual-mcp-w-CGYLKc.js";import"./use-navigate-to-agent-DIjWe8In.js";import"./github-repo-picker-DFc58L4T.js";import"./use-connection-DyyYYs8L.js";import"./dialog-BgALXZ6h.js";import"./RefreshCcw01-CoOu-1-t.js";import"./collection-search-CR7VmYXP.js";import"./checkbox-CMfBi1P9.js";import"./Check-Cy2gwr8C.js";import"./agent-icon-DRs2sxx6.js";import"./AlertCircle-B4gYnOPQ.js";import"./Tool01-DXZCxrW7.js";import"./SwitchHorizontal01-DruCuOB9.js";import"./XCircle-m30sBtwe.js";import"./ArrowUpRight-D0kjnBU3.js";import"./ZapSquare-88gaWy0c.js";import"./Users03-cwi85RQL.js";import"./CheckCircle-CNdjtGTh.js";import"./ChevronDown-3x5m66Bs.js";import"./ChevronLeft-2_IuBsKu.js";import"./ChevronRight-CeIr4WsE.js";import"./ChevronUp-Bh0YaH7H.js";import"./DotsVertical-FCIPj2jh.js";import"./Container-CYA7KoET.js";import"./Eye-BEaX-nOW.js";import"./Globe01-DCcLGAPs.js";import"./FilterLines-PIiHcomo.js";import"./Palette-BvgmCjcf.js";import"./HardDrive-DF3wR4Ey.js";import"./Stars02-DQPSVMUP.js";import"./Key01-DOICf9Yf.js";import"./LinkExternal01-kEaZ-3VP.js";import"./Sun-CGlOqn-C.js";import"./Play-CgnBFM99.js";import"./Settings02-h4KhooA8.js";import"./Shield01-CxluyAom.js";import"./Stars01-D3E_UsFP.js";import"./Trash01-CdVc63JX.js";import"./Upload01-hFtvGOKc.js";import"./User01-DkghkjfJ.js";import"./Users01-DSIM6pEW.js";import"./XClose-DEtxBka1.js";import"./Zap-BqoFLQhx.js";import"./use-mcp-tools-BFte_Z9f.js";import"./extract-connection-data-8yLRil2N.js";import"./generate-id-Cx2Cl6ns.js";import"./collections-D3ATOWCI.js";import"./shell-layout-B1bpQmja.js";import"./avatar-CWn5LER_.js";import"./required-auth-layout-BApuEUpI.js";import"./use-organization-settings-MrnwSgAR.js";import"./use-org-sso-Sk1A6q8-.js";import"./alert-dialog-CvpxH7Lf.js";import"./form-BSWyFOE3.js";import"./label-BSaEPU5n.js";import"./input-Dp561wvu.js";import"./spinner-DWj9d3Oy.js";import"./index-CUVr6lcg.js";import"./sortable.esm-DAdL_KCM.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-0Tyv2fap.js";import"./use-registry-connections-CC-YLphz.js";import"./useInfiniteQuery-DHhL-q8j.js";import"./use-infinite-scroll-D2-BvjXC.js";import"./card-CPe96wry.js";import"./integration-icon-CcFsasgm.js";import"./collection-tabs-DyRPz2M0.js";import"./badge-CIMelj9a.js";import"./select-gqSNOxQD.js";import"./textarea-CimG5sWW.js";import"./connection-form-helpers-Csat880R.js";import"./useSuspenseInfiniteQuery-oHftqcSU.js";import"./use-ai-providers-B4z2G4rP.js";import"./command-DwAn8s0z.js";import"./index-9-_G5hYz.js";import"./studio-tools-YbndxaJx.js";import"./use-org-auth-client-CjM9gfPH.js";import"./hover-card-B2Xe1JoR.js";import"./task-status-BNkxxOv6.js";import"./use-clock-tick-CPPdyWgW.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./watch-sse-pool-BZQA3Ki3.js";import"./decopilot-sse-pool-Qs-1EY0r.js";function Q(e){const t=k.c(5),{onPointerDown:r,onDoubleClick:d}=e,{state:f,isMobile:u}=z();if(u||f==="collapsed")return null;let s,n;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={left:"var(--sidebar-width)"},n=o.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border"}),t[0]=s,t[1]=n):(s=t[0],n=t[1]);let i;return t[2]!==d||t[3]!==r?(i=o.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar",title:"Drag to resize, double-click to reset",onPointerDown:r,onDoubleClick:d,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize",style:s,children:n}),t[2]=d,t[3]=r,t[4]=i):i=t[4],i}const R=240,V=400,Z="sidebar.width";function _(e){return Math.max(R,Math.min(V,e))}function ee(){const e=k.c(11),[t,r]=T(Z,te),d=N.useRef(null);let f;e[0]!==r||e[1]!==t?(f=a=>{a.preventDefault();const m=a.clientX,p=_(t),c=d.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),h=c?Array.from(c.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const x of h)x.style.transition="none";const j=x=>{const g=_(p+(x.clientX-m));c?.style.setProperty("--sidebar-width",`${g}px`)},S=x=>{const g=_(p+(x.clientX-m));r(g);for(const v of h)v.style.transition="";window.removeEventListener("pointermove",j),window.removeEventListener("pointerup",S),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",j),window.addEventListener("pointerup",S)},e[0]=r,e[1]=t,e[2]=f):f=e[2];const u=f;let s;e[3]!==r?(s=()=>{r(R)},e[3]=r,e[4]=s):s=e[4];const n=s;let i;e[5]!==t?(i=_(t),e[5]=t,e[6]=i):i=e[6];let l;return e[7]!==u||e[8]!==n||e[9]!==i?(l={width:i,wrapperRef:d,onStartResize:u,resetWidth:n},e[7]=u,e[8]=n,e[9]=i,e[10]=l):l=e[10],l}function te(e){return typeof e=="number"?_(e):R}function oe(){const e=k.c(22),t=X(),[r,d]=N.useState(!1);let f;if(e[0]!==t.capabilities||e[1]!==t.hostname||e[2]!==t.machineId||e[3]!==t.online){const j=G(t.capabilities);f=t.online?o.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",children:[o.jsx("span",{className:"font-medium",children:t.hostname??t.machineId??"Desktop linked"}),o.jsx("span",{className:"text-muted-foreground",children:j.length>0?`Available: ${j.join(", ")}`:"No CLI agents detected"})]}):o.jsx("span",{className:"text-xs",children:"Desktop disconnected"}),e[0]=t.capabilities,e[1]=t.hostname,e[2]=t.machineId,e[3]=t.online,e[4]=f}else f=e[4];const u=f;let s;e[5]===Symbol.for("react.memo_cache_sentinel")?(s=()=>d(!0),e[5]=s):s=e[5];const n=t.online?"Desktop linked":"Connect your desktop";let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(q,{size:16}),e[6]=i):i=e[6];let l;e[7]!==t.online?(l=t.online&&o.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-success ring-2 ring-background animate-pulse"}),e[7]=t.online,e[8]=l):l=e[8];let a;e[9]!==n||e[10]!==l?(a=o.jsx(M,{asChild:!0,children:o.jsxs(Y,{onClick:s,"aria-label":n,children:[i,l]})}),e[9]=n,e[10]=l,e[11]=a):a=e[11];let m;e[12]!==u?(m=o.jsx(O,{side:"bottom",children:u}),e[12]=u,e[13]=m):m=e[13];let p;e[14]!==a||e[15]!==m?(p=o.jsxs(A,{children:[a,m]}),e[14]=a,e[15]=m,e[16]=p):p=e[16];let c;e[17]!==r?(c=o.jsx(K,{open:r,onOpenChange:d}),e[17]=r,e[18]=c):c=e[18];let h;return e[19]!==p||e[20]!==c?(h=o.jsxs(o.Fragment,{children:[p,c]}),e[19]=p,e[20]=c,e[21]=h):h=e[21],h}const ie="sidebar.open";function re(){const e=k.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=o.jsx(B,{}),e[0]=t):t=e[0],t}function so(){const e=k.c(26),t=P(),[r,d]=T(ie,!1),{width:f,wrapperRef:u,onStartResize:s,resetWidth:n}=ee();let i,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(b.LogoLink,{}),l=o.jsx(U,{}),e[0]=i,e[1]=l):(i=e[0],l=e[1]);let a,m;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsxs(b.LeftColumn,{children:[i,l,o.jsx("span",{className:"hidden md:contents",children:o.jsx(b.Nav,{})}),o.jsx(b.TogglesSlot,{}),o.jsx(oe,{})]}),m=o.jsx(b.CenterSlot,{}),e[2]=a,e[3]=m):(a=e[2],m=e[3]);let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsxs(b.Header,{children:[a,m,o.jsxs(b.RightColumn,{children:[o.jsx("div",{className:"min-w-0 flex-1 overflow-x-auto [scrollbar-width:none] flex justify-end",children:o.jsx(b.TabsSlot,{})}),o.jsx(b.RightSlot,{})]})]}),e[4]=p):p=e[4];const c=`${f}px`;let h;e[5]!==c?(h={"--sidebar-width":c,"--sidebar-width-icon":"3.5rem"},e[5]=c,e[6]=h):h=e[6];const j=h;let S;e[7]!==t||e[8]!==s||e[9]!==n?(S=!t&&o.jsxs(o.Fragment,{children:[o.jsx($,{}),o.jsx(Q,{onPointerDown:s,onDoubleClick:n})]}),e[7]=t,e[8]=s,e[9]=n,e[10]=S):S=e[10];let x;e[11]===Symbol.for("react.memo_cache_sentinel")?(x={background:"transparent",containerType:"inline-size"},e[11]=x):x=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(E,{className:"flex flex-col",style:x,children:o.jsx("div",{className:"flex flex-col h-full min-h-0",children:o.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:o.jsx(N.Suspense,{fallback:o.jsx(re,{}),children:o.jsx(D,{})})})})}),e[12]=g):g=e[12];let v;e[13]!==j||e[14]!==S||e[15]!==u?(v=o.jsxs(I,{ref:u,className:"flex-1 bg-sidebar relative min-h-0",style:j,children:[S,g]}),e[13]=j,e[14]=S,e[15]=u,e[16]=v):v=e[16];let y;e[17]!==t?(y=t&&o.jsx(J,{renderSidebar:se}),e[17]=t,e[18]=y):y=e[18];let w;e[19]!==v||e[20]!==y?(w=o.jsx(H,{children:o.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[p,v,y]})}),e[19]=v,e[20]=y,e[21]=w):w=e[21];let C;return e[22]!==d||e[23]!==r||e[24]!==w?(C=o.jsx(F,{children:o.jsx(b.Provider,{children:o.jsx(L,{open:r,onOpenChange:d,children:w})})}),e[22]=d,e[23]=r,e[24]=w,e[25]=C):C=e[25],C}function se(e){const{onClose:t}=e;return o.jsx("div",{className:"flex h-full",children:o.jsx("div",{className:"w-full bg-sidebar flex flex-col overflow-y-auto group/sidebar","data-state":"expanded",children:o.jsx(W,{onClose:t})})})}export{so as default};
@@ -1 +1 @@
1
- import{e as f,c as d,r as p,j as r}from"./index-DjCrtoJM.js";import{m as w}from"./sidebar-D0YkKw2Q.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};
1
+ import{e as f,c as d,r as p,j as r}from"./index-BPnG82q8.js";import{m as w}from"./sidebar-DpznaqAr.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};
@@ -1,3 +1,3 @@
1
- import{e as S,r as E,j as t,n as J,B as T,K as M,c as Y,f as Ce,d as Se,E as re,q as $e,G as Ge,C as Xe,o as I}from"./index-DjCrtoJM.js";import{i as Qe}from"./ChevronRight-BJRYs8bt.js";import{s as De}from"./Eye-Co-ItdFE.js";import{n as ae,i as We}from"./Globe01-BnLBFtky.js";import{i as Ye,c as Ze}from"./ZoomOut-BP5vTMyD.js";import{s as Je}from"./Plus-DrYyBDmj.js";import{t as et}from"./Stars01-DbI-YGmK.js";import{i as ze}from"./Upload01-CyW8Wv9e.js";import{b as K,T as V,a as q,u as Fe}from"./tooltip-MvXJgTec.js";import{A as tt,a as lt,b as st,c as nt,d as it,e as rt,f as ot,g as at}from"./alert-dialog-CstddcEP.js";import{c as Z,D as ce,a as de,f as ct,b as dt,e as ft,d as mt}from"./dialog-B4Gk40Ec.js";import{I as ut}from"./input-odGTsdHi.js";import{S as H}from"./skeleton-BnLuwQl0.js";import{F as A,d as _e,M as ht}from"./file-type-icon-ByhQy2rW.js";import{a as xt}from"./toolbar-CJqhxN0I.js";import{i as Oe,j as Pe,H as Te,k as Ue,h as Ae,f as fe,F as Ee,a as me,m as Me,l as pt,u as ye,b as jt,n as Le,o as gt}from"./header-tab-button-CyQ_CUpS.js";import{i as ue}from"./DotsVertical-BwZzHCbU.js";import{s as he}from"./Trash01-BW2v6vxa.js";import{i as Re}from"./Zap-DAhQN3Qe.js";import{a as xe,c as X,b as pe,D as je}from"./dropdown-menu-D2S2HMhI.js";import{R as ve,a as bt,b as yt}from"./resizable-DYZX4GYZ.js";import{n as Be}from"./LinkExternal01-ZepkFy5p.js";import{s as Ie}from"./XClose-D4SdKRIc.js";import{i as vt}from"./X-BUrHvnq3.js";import"./Check-CkY-NLLZ.js";import"./ChevronLeft-B6gErU0k.js";import"./index-H-an7LFa.js";import"./LayoutLeft-DOdRMzln.js";const wt=new Set(["output","upload","public","home"]),Nt=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;function kt(l){return wt.has(l)||!Nt.test(l)?"home":l}function Ct(l){const e=S.c(33);let s,i,o;e[0]!==l?({glyph:s,readOnly:o,...i}=l,e[0]=l,e[1]=s,e[2]=i,e[3]=o):(s=e[1],i=e[2],o=e[3]);const c=E.useId(),r=`${c}-back`,a=`${c}-front`,n=`url(#${r})`;let d;e[4]!==n?(d=t.jsx("path",{d:"M2.53738 2.55C1.13602 2.55 0 3.68602 0 5.08738V11.535H31.931V7.65326C31.931 6.23616 30.7822 5.08738 29.3651 5.08738H14.7681L13.8775 5.02542C13.3886 4.99141 12.9197 4.81809 12.5261 4.52596L10.7726 3.22419C10.1828 2.78638 9.46784 2.55 8.73334 2.55H2.53738Z",fill:n}),e[4]=n,e[5]=d):d=e[5];const m=`url(#${a})`;let f;e[6]!==m?(f=t.jsx("rect",{y:"8.72",width:"32",height:"21",rx:"2.566",fill:m}),e[6]=m,e[7]=f):f=e[7];let u,g,b;e[8]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("rect",{x:"0.3",y:"8.86",width:"31.4",height:"0.55",rx:"0.275",fill:"#FFFFFF",opacity:"0.25"}),g=t.jsx("rect",{y:"25.81",width:"32",height:"0.552",fill:"#84CDFB"}),b=t.jsx("rect",{y:"27.05",width:"32",height:"0.552",fill:"#84CDFB"}),e[8]=u,e[9]=g,e[10]=b):(u=e[8],g=e[9],b=e[10]);let p;e[11]!==s?(p=s&&t.jsx(s,{x:10.5,y:13.2,width:11,height:11,strokeWidth:2.2,style:{color:"#014AC9",opacity:.55}}),e[11]=s,e[12]=p):p=e[12];let x;e[13]!==o?(x=o&&t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"25.5",cy:"25.5",r:"6.2",strokeWidth:"1",className:"fill-background stroke-border"}),t.jsx(De,{x:22.1,y:22.1,width:6.8,height:6.8,strokeWidth:2.2,className:"text-muted-foreground"})]}),e[13]=o,e[14]=x):x=e[14];let h,N;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("stop",{offset:"0.3",stopColor:"#4D87DF"}),N=t.jsx("stop",{offset:"1",stopColor:"#296FE8"}),e[15]=h,e[16]=N):(h=e[15],N=e[16]);let v;e[17]!==r?(v=t.jsxs("linearGradient",{id:r,x1:"15.97",y1:"2.55",x2:"15.97",y2:"9.53",gradientUnits:"userSpaceOnUse",children:[h,N]}),e[17]=r,e[18]=v):v=e[18];let w,j;e[19]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("stop",{stopColor:"#72B6FA"}),j=t.jsx("stop",{offset:"1",stopColor:"#5BB1EF"}),e[19]=w,e[20]=j):(w=e[19],j=e[20]);let C;e[21]!==a?(C=t.jsxs("radialGradient",{id:a,cx:"0",cy:"0",r:"10",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1.6 0 0 2.1538 16 19.22)",children:[w,j]}),e[21]=a,e[22]=C):C=e[22];let k;e[23]!==v||e[24]!==C?(k=t.jsxs("defs",{children:[v,C]}),e[23]=v,e[24]=C,e[25]=k):k=e[25];let $;return e[26]!==i||e[27]!==k||e[28]!==d||e[29]!==f||e[30]!==p||e[31]!==x?($=t.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...i,children:[d,f,u,g,b,p,x,k]}),e[26]=i,e[27]=k,e[28]=d,e[29]=f,e[30]=p,e[31]=x,e[32]=$):$=e[32],$}function St(l){const e={};for(const s of l.split(`
1
+ import{e as S,r as E,j as t,n as J,B as T,K as M,c as Y,f as Ce,d as Se,E as re,q as $e,G as Ge,C as Xe,o as I}from"./index-BPnG82q8.js";import{i as Qe}from"./ChevronRight-CeIr4WsE.js";import{s as De}from"./Eye-BEaX-nOW.js";import{n as ae,i as We}from"./Globe01-DCcLGAPs.js";import{i as Ye,c as Ze}from"./ZoomOut-OQ9XVMLx.js";import{s as Je}from"./Plus-CZoFo8m3.js";import{t as et}from"./Stars01-D3E_UsFP.js";import{i as ze}from"./Upload01-hFtvGOKc.js";import{b as K,T as V,a as q,u as Fe}from"./tooltip-BwiZr2GD.js";import{A as tt,a as lt,b as st,c as nt,d as it,e as rt,f as ot,g as at}from"./alert-dialog-CvpxH7Lf.js";import{c as Z,D as ce,a as de,f as ct,b as dt,e as ft,d as mt}from"./dialog-BgALXZ6h.js";import{I as ut}from"./input-Dp561wvu.js";import{S as H}from"./skeleton-BrZY2U4q.js";import{F as A,d as _e,M as ht}from"./file-type-icon-BI-57QdR.js";import{a as xt}from"./toolbar-oWPvqwRC.js";import{i as Oe,j as Pe,H as Te,k as Ue,h as Ae,f as fe,F as Ee,a as me,m as Me,l as pt,u as ye,b as jt,n as Le,o as gt}from"./header-tab-button-EU-XSa1F.js";import{i as ue}from"./DotsVertical-FCIPj2jh.js";import{s as he}from"./Trash01-CdVc63JX.js";import{i as Re}from"./Zap-BqoFLQhx.js";import{a as xe,c as X,b as pe,D as je}from"./dropdown-menu-uYsl4z-0.js";import{R as ve,a as bt,b as yt}from"./resizable-D7pt8dup.js";import{n as Be}from"./LinkExternal01-kEaZ-3VP.js";import{s as Ie}from"./XClose-DEtxBka1.js";import{i as vt}from"./X-CiRjfhfc.js";import"./Check-Cy2gwr8C.js";import"./ChevronLeft-2_IuBsKu.js";import"./index-BHORPjEK.js";import"./LayoutLeft-XvA4efJR.js";const wt=new Set(["output","upload","public","home"]),Nt=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;function kt(l){return wt.has(l)||!Nt.test(l)?"home":l}function Ct(l){const e=S.c(33);let s,i,o;e[0]!==l?({glyph:s,readOnly:o,...i}=l,e[0]=l,e[1]=s,e[2]=i,e[3]=o):(s=e[1],i=e[2],o=e[3]);const c=E.useId(),r=`${c}-back`,a=`${c}-front`,n=`url(#${r})`;let d;e[4]!==n?(d=t.jsx("path",{d:"M2.53738 2.55C1.13602 2.55 0 3.68602 0 5.08738V11.535H31.931V7.65326C31.931 6.23616 30.7822 5.08738 29.3651 5.08738H14.7681L13.8775 5.02542C13.3886 4.99141 12.9197 4.81809 12.5261 4.52596L10.7726 3.22419C10.1828 2.78638 9.46784 2.55 8.73334 2.55H2.53738Z",fill:n}),e[4]=n,e[5]=d):d=e[5];const m=`url(#${a})`;let f;e[6]!==m?(f=t.jsx("rect",{y:"8.72",width:"32",height:"21",rx:"2.566",fill:m}),e[6]=m,e[7]=f):f=e[7];let u,g,b;e[8]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("rect",{x:"0.3",y:"8.86",width:"31.4",height:"0.55",rx:"0.275",fill:"#FFFFFF",opacity:"0.25"}),g=t.jsx("rect",{y:"25.81",width:"32",height:"0.552",fill:"#84CDFB"}),b=t.jsx("rect",{y:"27.05",width:"32",height:"0.552",fill:"#84CDFB"}),e[8]=u,e[9]=g,e[10]=b):(u=e[8],g=e[9],b=e[10]);let p;e[11]!==s?(p=s&&t.jsx(s,{x:10.5,y:13.2,width:11,height:11,strokeWidth:2.2,style:{color:"#014AC9",opacity:.55}}),e[11]=s,e[12]=p):p=e[12];let x;e[13]!==o?(x=o&&t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"25.5",cy:"25.5",r:"6.2",strokeWidth:"1",className:"fill-background stroke-border"}),t.jsx(De,{x:22.1,y:22.1,width:6.8,height:6.8,strokeWidth:2.2,className:"text-muted-foreground"})]}),e[13]=o,e[14]=x):x=e[14];let h,N;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("stop",{offset:"0.3",stopColor:"#4D87DF"}),N=t.jsx("stop",{offset:"1",stopColor:"#296FE8"}),e[15]=h,e[16]=N):(h=e[15],N=e[16]);let v;e[17]!==r?(v=t.jsxs("linearGradient",{id:r,x1:"15.97",y1:"2.55",x2:"15.97",y2:"9.53",gradientUnits:"userSpaceOnUse",children:[h,N]}),e[17]=r,e[18]=v):v=e[18];let w,j;e[19]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("stop",{stopColor:"#72B6FA"}),j=t.jsx("stop",{offset:"1",stopColor:"#5BB1EF"}),e[19]=w,e[20]=j):(w=e[19],j=e[20]);let C;e[21]!==a?(C=t.jsxs("radialGradient",{id:a,cx:"0",cy:"0",r:"10",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1.6 0 0 2.1538 16 19.22)",children:[w,j]}),e[21]=a,e[22]=C):C=e[22];let k;e[23]!==v||e[24]!==C?(k=t.jsxs("defs",{children:[v,C]}),e[23]=v,e[24]=C,e[25]=k):k=e[25];let $;return e[26]!==i||e[27]!==k||e[28]!==d||e[29]!==f||e[30]!==p||e[31]!==x?($=t.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...i,children:[d,f,u,g,b,p,x,k]}),e[26]=i,e[27]=k,e[28]=d,e[29]=f,e[30]=p,e[31]=x,e[32]=$):$=e[32],$}function St(l){const e={};for(const s of l.split(`
2
2
  `)){const i=s.match(/^([A-Za-z][\w-]*):\s*(.*)$/);i?.[1]&&i[2]!==void 0&&(e[i[1].toLowerCase()]=i[2].trim())}return e}function we(l){for(const e of l.split(/\n\s*\n/)){const s=e.trim();if(!(!s||s.startsWith("#")))return s.replace(/\n/g," ")}return null}function He(l){const e=l.match(/^---\n([\s\S]*?)\n---\n?/);if(!e||e[1]===void 0)return{name:null,description:we(l),body:l};const s=St(e[1]),i=l.slice(e[0].length);return{name:s.name||null,description:s.description||we(i),body:i}}const $t=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),Dt=new Set(["csv","tsv"]),zt=new Set(["mp4","webm","mov","m4v"]),Ft=new Set(["txt","md","markdown","json","log","yaml","yml","xml","html","htm"]),_t=256*1024;function ee(l){const e=new Date(l);if(Number.isNaN(e.getTime()))return"";const s=Date.now()-e.getTime(),i=Math.floor(s/6e4);if(i<1)return"just now";if(i<60)return`${i}m ago`;const o=Math.floor(i/60);if(o<24)return`${o}h ago`;const c=Math.floor(o/24);return c<30?`${c}d ago`:e.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Ot(l){return l.split(".").pop()?.toLowerCase()??""}function Ke(l){const e=S.c(15),{downloadUrl:s,filename:i,onDelete:o}=l,c=`Actions for ${i}`;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(ue,{size:14}),e[0]=r):r=e[0];let a;e[1]!==c?(a=t.jsx(xe,{asChild:!0,children:t.jsx(T,{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":c,children:r})}),e[1]=c,e[2]=a):a=e[2];let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(ae,{size:14}),e[3]=n):n=e[3];let d;e[4]!==s||e[5]!==i?(d=t.jsx(X,{asChild:!0,children:t.jsxs("a",{href:s,download:i,children:[n,"Download"]})}),e[4]=s,e[5]=i,e[6]=d):d=e[6];let m;e[7]!==o?(m=o&&t.jsxs(X,{variant:"destructive",onClick:o,children:[t.jsx(he,{size:14}),"Delete"]}),e[7]=o,e[8]=m):m=e[8];let f;e[9]!==d||e[10]!==m?(f=t.jsxs(pe,{align:"end",onClick:Pt,children:[d,m]}),e[9]=d,e[10]=m,e[11]=f):f=e[11];let u;return e[12]!==a||e[13]!==f?(u=t.jsxs(je,{children:[a,f]}),e[12]=a,e[13]=f,e[14]=u):u=e[14],u}function Pt(l){return l.stopPropagation()}function Tt(l){return l.stopPropagation()}function te(l){const e=S.c(9),{onOpen:s,children:i,className:o}=l;let c;e[0]!==s?(c=n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),s())},e[0]=s,e[1]=c):c=e[1];let r;e[2]!==o?(r=Y("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",o),e[2]=o,e[3]=r):r=e[3];let a;return e[4]!==i||e[5]!==s||e[6]!==c||e[7]!==r?(a=t.jsx("div",{role:"button",tabIndex:0,onClick:s,onKeyDown:c,className:r,children:i}),e[4]=i,e[5]=s,e[6]=c,e[7]=r,e[8]=a):a=e[8],a}function le(l){const e=S.c(16),{icon:s,name:i,meta:o,subtitle:c,actions:r}=l;let a;e[0]!==i?(a=t.jsx("span",{className:"min-w-0 flex-1 truncate text-[13px] text-foreground",title:i,children:i}),e[0]=i,e[1]=a):a=e[1];let n;e[2]!==o?(n=o&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:o}),e[2]=o,e[3]=n):n=e[3];let d;e[4]!==a||e[5]!==n?(d=t.jsxs("div",{className:"flex items-start gap-3",children:[a,n]}),e[4]=a,e[5]=n,e[6]=d):d=e[6];let m;e[7]!==c?(m=c&&t.jsx("span",{className:"text-xs text-muted-foreground",children:c}),e[7]=c,e[8]=m):m=e[8];let f;e[9]!==d||e[10]!==m?(f=t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col justify-center",children:[d,m]}),e[9]=d,e[10]=m,e[11]=f):f=e[11];let u;return e[12]!==r||e[13]!==s||e[14]!==f?(u=t.jsxs("div",{className:"flex w-full items-center gap-2.5",children:[s,f,r]}),e[12]=r,e[13]=s,e[14]=f,e[15]=u):u=e[15],u}function se(l){const e=S.c(15),{name:s,meta:i,subtitle:o,glyph:c,readOnly:r,onOpen:a,onDelete:n}=l;let d;e[0]!==c||e[1]!==r?(d=t.jsx(Ct,{glyph:c,readOnly:r,className:"size-8 shrink-0"}),e[0]=c,e[1]=r,e[2]=d):d=e[2];let m;e[3]!==s||e[4]!==n?(m=n?t.jsxs(je,{children:[t.jsx(xe,{asChild:!0,children:t.jsx(T,{variant:"ghost",size:"icon",className:"size-6 shrink-0 opacity-0 transition-opacity group-hover/card:opacity-100 data-[state=open]:opacity-100",onClick:At,"aria-label":`Actions for ${s}`,children:t.jsx(ue,{size:14})})}),t.jsx(pe,{align:"end",onClick:Ut,children:t.jsxs(X,{variant:"destructive",onClick:n,children:[t.jsx(he,{size:14}),"Delete"]})})]}):void 0,e[3]=s,e[4]=n,e[5]=m):m=e[5];let f;e[6]!==i||e[7]!==s||e[8]!==o||e[9]!==d||e[10]!==m?(f=t.jsx(le,{icon:d,name:s,meta:i,subtitle:o,actions:m}),e[6]=i,e[7]=s,e[8]=o,e[9]=d,e[10]=m,e[11]=f):f=e[11];let u;return e[12]!==a||e[13]!==f?(u=t.jsx(te,{onOpen:a,children:f}),e[12]=a,e[13]=f,e[14]=u):u=e[14],u}function Ut(l){return l.stopPropagation()}function At(l){return l.stopPropagation()}function Ve(l){const e=S.c(19),{filename:s,updatedAt:i,downloadUrl:o,onOpen:c,onDelete:r}=l;let a;e[0]!==s?(a=t.jsx(A,{filename:s,className:"h-8 w-6.5 shrink-0"}),e[0]=s,e[1]=a):a=e[1];let n;e[2]!==i?(n=ee(i),e[2]=i,e[3]=n):n=e[3];let d;e[4]!==s?(d=_e(s),e[4]=s,e[5]=d):d=e[5];let m;e[6]!==o||e[7]!==s||e[8]!==r?(m=t.jsx(Ke,{downloadUrl:o,filename:s,onDelete:r}),e[6]=o,e[7]=s,e[8]=r,e[9]=m):m=e[9];let f;e[10]!==s||e[11]!==a||e[12]!==n||e[13]!==d||e[14]!==m?(f=t.jsx(le,{icon:a,name:s,meta:n,subtitle:d,actions:m}),e[10]=s,e[11]=a,e[12]=n,e[13]=d,e[14]=m,e[15]=f):f=e[15];let u;return e[16]!==c||e[17]!==f?(u=t.jsx(te,{onOpen:c,children:f}),e[16]=c,e[17]=f,e[18]=u):u=e[18],u}function Et(l){const e=S.c(36),{dirName:s,updatedAt:i,skillMdUrl:o,onOpen:c,onBrowse:r,onDelete:a}=l;let n;e[0]!==o?(n=M.fileText(o),e[0]=o,e[1]=n):n=e[1];let d;e[2]!==o?(d=async()=>{const F=await fetch(o,{credentials:"include"});if(!F.ok)throw new Error(`fetch failed: ${F.status}`);return F.text()},e[2]=o,e[3]=d):d=e[3];let m;e[4]!==n||e[5]!==d?(m={queryKey:n,queryFn:d,staleTime:6e4,retry:!1},e[4]=n,e[5]=d,e[6]=m):m=e[6];const{data:f}=J(m);let u;e[7]!==f?(u=f?He(f):null,e[7]=f,e[8]=u):u=e[8];const g=u;let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary",children:t.jsx(Re,{size:16})}),e[9]=b):b=e[9];const p=g?.name??s;let x;e[10]!==i?(x=ee(i),e[10]=i,e[11]=x):x=e[11];const h=`Actions for ${s}`;let N;e[12]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(ue,{size:14}),e[12]=N):N=e[12];let v;e[13]!==h?(v=t.jsx(xe,{asChild:!0,children:t.jsx(T,{variant:"ghost",size:"icon",className:"size-6 shrink-0 opacity-0 transition-opacity group-hover/card:opacity-100 data-[state=open]:opacity-100",onClick:Lt,"aria-label":h,children:N})}),e[13]=h,e[14]=v):v=e[14];let w;e[15]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(Ye,{size:14}),e[15]=w):w=e[15];let j;e[16]!==r?(j=t.jsxs(X,{onClick:r,children:[w,"Browse files"]}),e[16]=r,e[17]=j):j=e[17];let C;e[18]!==a?(C=a&&t.jsxs(X,{variant:"destructive",onClick:a,children:[t.jsx(he,{size:14}),"Delete"]}),e[18]=a,e[19]=C):C=e[19];let k;e[20]!==j||e[21]!==C?(k=t.jsxs(pe,{align:"end",onClick:Mt,children:[j,C]}),e[20]=j,e[21]=C,e[22]=k):k=e[22];let $;e[23]!==v||e[24]!==k?($=t.jsxs(je,{children:[v,k]}),e[23]=v,e[24]=k,e[25]=$):$=e[25];let z;e[26]!==$||e[27]!==p||e[28]!==x?(z=t.jsx(le,{icon:b,name:p,meta:x,subtitle:"Skill",actions:$}),e[26]=$,e[27]=p,e[28]=x,e[29]=z):z=e[29];const P=g?.description??"";let D;e[30]!==P?(D=t.jsx("p",{className:"line-clamp-2 min-h-8 text-xs leading-4 text-muted-foreground",children:P}),e[30]=P,e[31]=D):D=e[31];let y;return e[32]!==c||e[33]!==z||e[34]!==D?(y=t.jsxs(te,{onOpen:c,children:[z,D]}),e[32]=c,e[33]=z,e[34]=D,e[35]=y):y=e[35],y}function Mt(l){return l.stopPropagation()}function Lt(l){return l.stopPropagation()}function oe(l){const e=S.c(4),{children:s}=l,[i,o]=E.useState(!1);let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=()=>n=>{if(!n)return;const d=new IntersectionObserver(m=>{const[f]=m;f?.isIntersecting&&(o(!0),d.disconnect())},{rootMargin:"200px"});d.observe(n)},e[0]=c):c=e[0];const[r]=E.useState(c);if(i){let n;return e[1]!==s?(n=t.jsx(t.Fragment,{children:s}),e[1]=s,e[2]=n):n=e[2],n}let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{ref:r,className:"h-full w-full"}),e[3]=a):a=e[3],a}function Rt(l){const e=S.c(11),{url:s}=l;let i;e[0]!==s?(i=M.fileText(s),e[0]=s,e[1]=i):i=e[1];let o;e[2]!==s?(o=async()=>{const d=await fetch(s,{credentials:"include"});if(!d.ok)throw new Error(`fetch failed: ${d.status}`);return d.text()},e[2]=s,e[3]=o):o=e[3];let c;e[4]!==i||e[5]!==o?(c={queryKey:i,queryFn:o,staleTime:6e4,retry:!1},e[4]=i,e[5]=o,e[6]=c):c=e[6];const{data:r}=J(c);if(!r)return null;let a;e[7]!==r?(a=r.slice(0,2e3),e[7]=r,e[8]=a):a=e[8];let n;return e[9]!==a?(n=t.jsx("pre",{className:"pointer-events-none h-full w-full overflow-hidden bg-background p-3 font-mono text-[9px] leading-[1.5] text-muted-foreground select-none",children:a}),e[9]=a,e[10]=n):n=e[10],n}function Bt(l){const e=S.c(23),{url:s,ext:i}=l;let o;e[0]!==s?(o=M.csvThumb(s),e[0]=s,e[1]=o):o=e[1];let c;e[2]!==s?(c=async()=>{const x=await fetch(s,{credentials:"include",headers:{Range:"bytes=0-8191"}});if(!x.ok)throw new Error(`fetch failed: ${x.status}`);return x.text()},e[2]=s,e[3]=c):c=e[3];let r;e[4]!==o||e[5]!==c?(r={queryKey:o,queryFn:c,staleTime:6e4,retry:!1},e[4]=o,e[5]=c,e[6]=r):r=e[6];const{data:a}=J(r);if(!a)return null;const n=i==="tsv"?" ":",";let d,m,f,u;if(e[7]!==a||e[8]!==n){u=Symbol.for("react.early_return_sentinel");e:{let x;e[13]!==n?(x=N=>N.split(n).slice(0,6).map(Kt),e[13]=n,e[14]=x):x=e[14];const h=a.split(`
3
3
  `).filter(Boolean).slice(0,7).map(x);if(h.length===0){u=null;break e}f="pointer-events-none h-full w-full overflow-hidden bg-background p-2 select-none",m="w-full border-collapse",d=h.map(It)}e[7]=a,e[8]=n,e[9]=d,e[10]=m,e[11]=f,e[12]=u}else d=e[9],m=e[10],f=e[11],u=e[12];if(u!==Symbol.for("react.early_return_sentinel"))return u;let g;e[15]!==d?(g=t.jsx("tbody",{children:d}),e[15]=d,e[16]=g):g=e[16];let b;e[17]!==m||e[18]!==g?(b=t.jsx("table",{className:m,children:g}),e[17]=m,e[18]=g,e[19]=b):b=e[19];let p;return e[20]!==f||e[21]!==b?(p=t.jsx("div",{className:f,children:b}),e[20]=f,e[21]=b,e[22]=p):p=e[22],p}function It(l,e){return t.jsx("tr",{className:Y(e===0&&"bg-muted/50 font-medium"),children:l.map(Ht)},e)}function Ht(l,e){return t.jsx("td",{className:"max-w-[56px] overflow-hidden border border-border/30 px-1 py-px text-[7px] leading-[1.4] text-muted-foreground",style:{maxWidth:56},children:t.jsx("span",{className:"block truncate",children:l})},e)}function Kt(l){return l.trim().replace(/^"|"$/g,"")}function Vt(l){const e=S.c(14),{filename:s,size:i,downloadUrl:o}=l;let c;if(e[0]!==o||e[1]!==s||e[2]!==i){const r=Ot(s);let a;if($t.has(r)){let n;e[4]!==o?(n=t.jsx("img",{src:o,alt:"",loading:"lazy",className:"h-full w-full object-cover"}),e[4]=o,e[5]=n):n=e[5],a=n}else if(zt.has(r)){const n=`${o}#t=0.1`;let d;e[6]!==n?(d=t.jsx(oe,{children:t.jsx("video",{src:n,preload:"metadata",muted:!0,playsInline:!0,className:"pointer-events-none h-full w-full object-cover"})}),e[6]=n,e[7]=d):d=e[7],a=d}else if(r==="pdf"){let n;e[8]!==s?(n=t.jsx("div",{className:"flex h-full w-full items-center justify-center",children:t.jsx(A,{filename:s,className:"h-14 w-11 opacity-60"})}),e[8]=s,e[9]=n):n=e[9],a=n}else if(Dt.has(r))a=t.jsx(oe,{children:t.jsx(Bt,{url:o,ext:r})});else if(Ft.has(r)&&i<=_t){let n;e[10]!==o?(n=t.jsx(oe,{children:t.jsx(Rt,{url:o})}),e[10]=o,e[11]=n):n=e[11],a=n}else{let n;e[12]!==s?(n=t.jsx("div",{className:"flex h-full w-full items-center justify-center",children:t.jsx(A,{filename:s,className:"h-14 w-11 opacity-60"})}),e[12]=s,e[13]=n):n=e[13],a=n}c=t.jsx("div",{className:"aspect-[400/265] w-full overflow-hidden rounded-lg border border-border/60 bg-muted/30",children:a}),e[0]=o,e[1]=s,e[2]=i,e[3]=c}else c=e[3];return c}function qt(l){const e=S.c(24),s=l.onOpen;let i;e[0]!==l.filename?(i=t.jsx(A,{filename:l.filename,className:"h-8 w-6.5 shrink-0"}),e[0]=l.filename,e[1]=i):i=e[1];const o=l.filename;let c;e[2]!==l.updatedAt?(c=ee(l.updatedAt),e[2]=l.updatedAt,e[3]=c):c=e[3];let r;e[4]!==l.filename?(r=_e(l.filename),e[4]=l.filename,e[5]=r):r=e[5];let a;e[6]!==l.downloadUrl||e[7]!==l.filename||e[8]!==l.onDelete?(a=t.jsx(Ke,{downloadUrl:l.downloadUrl,filename:l.filename,onDelete:l.onDelete}),e[6]=l.downloadUrl,e[7]=l.filename,e[8]=l.onDelete,e[9]=a):a=e[9];let n;e[10]!==l.filename||e[11]!==i||e[12]!==c||e[13]!==r||e[14]!==a?(n=t.jsx(le,{icon:i,name:o,meta:c,subtitle:r,actions:a}),e[10]=l.filename,e[11]=i,e[12]=c,e[13]=r,e[14]=a,e[15]=n):n=e[15];let d;e[16]!==l.downloadUrl||e[17]!==l.filename||e[18]!==l.size?(d=t.jsx(Vt,{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 m;return e[20]!==l.onOpen||e[21]!==n||e[22]!==d?(m=t.jsxs(te,{onOpen:s,children:[n,d]}),e[20]=l.onOpen,e[21]=n,e[22]=d,e[23]=m):m=e[23],m}function ne(l){const e=l?l.split("/").filter(Boolean):[],s=e[0]==="public",i=s?e[1]??null:null,o=s?i?`public-${i}`:null:e[0]??null,c=(s?e.slice(2):e.slice(1)).join("/");return{segments:e,volume:o,dirPath:c,isPublic:s,publicSet:i,readOnly:s}}function W(l,e){return l.isPublic&&l.publicSet?`public/${l.publicSet}/${e}`:l.volume?`${l.volume}/${e}`:e}function O(l){const e=l.lastIndexOf("/");return e===-1?l:l.slice(e+1)}const Gt=l=>/\.html?$/i.test(l);function Xt(l){const e=S.c(26),{previewPath:s,onClose:i}=l;let o;e[0]!==s?(o=ne(s),e[0]=s,e[1]=o):o=e[1];const c=o,{volume:r,dirPath:a}=c,{data:n,isPending:d}=Oe(r,a),m=Pe(r??"");let f,u,g,b,p,x;if(e[2]!==m||e[3]!==n||e[4]!==a||e[5]!==d||e[6]!==i||e[7]!==s||e[8]!==r){const v=O(a),w=n&&n.kind==="file"?{key:s,filename:v,size:n.size,downloadUrl:m(n.path)}:null;u=ce,p=!0,e[15]!==i?(x=j=>{j||i()},e[15]=i,e[16]=x):x=e[16],f=de,g="flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",b=w&&n&&Gt(v)?t.jsxs(t.Fragment,{children:[t.jsx(Z,{className:"sr-only",children:v}),t.jsx(Te,{readUrl:w.downloadUrl,marker:Ue(n),title:v,savePath:r==="home"?a:void 0,trailing:t.jsx("div",{className:"w-8 shrink-0"})},s)]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex h-11 shrink-0 items-center gap-1 border-b border-border/60 py-1 pr-12 pl-2",children:[t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 px-2",children:[t.jsx(A,{filename:v,className:"h-4.5 w-3.5 shrink-0"}),t.jsx(Z,{className:"truncate text-xs font-medium text-foreground",children:v}),w&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:Ae(w.size)})]}),w&&t.jsxs(t.Fragment,{children:[t.jsxs(K,{children:[t.jsx(V,{asChild:!0,children:t.jsx(T,{variant:"ghost",size:"icon",asChild:!0,children:t.jsx("a",{href:w.downloadUrl,download:w.filename,children:t.jsx(ae,{size:14})})})}),t.jsx(q,{side:"bottom",children:"Download"})]}),t.jsxs(K,{children:[t.jsx(V,{asChild:!0,children:t.jsx(T,{variant:"ghost",size:"icon",onClick:()=>window.open(w.downloadUrl,"_blank","noopener"),children:t.jsx(Be,{size:14})})}),t.jsx(q,{side:"bottom",children:"Open in new tab"})]})]})]}),t.jsx("div",{className:"relative min-h-0 flex-1 bg-background",children:w?t.jsx(fe,{file:w}):d?t.jsx(Ee,{}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[t.jsx(A,{filename:v,className:"h-7.5 w-6"}),t.jsx("span",{className:"text-sm text-muted-foreground",children:"This file is no longer available."})]})})]}),e[2]=m,e[3]=n,e[4]=a,e[5]=d,e[6]=i,e[7]=s,e[8]=r,e[9]=f,e[10]=u,e[11]=g,e[12]=b,e[13]=p,e[14]=x}else f=e[9],u=e[10],g=e[11],b=e[12],p=e[13],x=e[14];let h;e[17]!==f||e[18]!==g||e[19]!==b?(h=t.jsx(f,{className:g,children:b}),e[17]=f,e[18]=g,e[19]=b,e[20]=h):h=e[20];let N;return e[21]!==u||e[22]!==p||e[23]!==x||e[24]!==h?(N=t.jsx(u,{open:p,onOpenChange:x,children:h}),e[21]=u,e[22]=p,e[23]=x,e[24]=h,e[25]=N):N=e[25],N}const Qt=l=>/\.html?$/i.test(l);function Wt(l){const e=S.c(6),{onClose:s}=l;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Ie,{size:14}),e[0]=i):i=e[0];let o;e[1]!==s?(o=t.jsx(V,{asChild:!0,children:t.jsx(T,{variant:"ghost",size:"icon",onClick:s,children:i})}),e[1]=s,e[2]=o):o=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(q,{side:"bottom",children:"Close"}),e[3]=c):c=e[3];let r;return e[4]!==o?(r=t.jsxs(K,{children:[o,c]}),e[4]=o,e[5]=r):r=e[5],r}function Yt(l){const e=S.c(49),{previewPath:s,onClose:i}=l;let o;e[0]!==s?(o=ne(s),e[0]=s,e[1]=o):o=e[1];const c=o,{volume:r,dirPath:a}=c,{data:n,isPending:d}=Oe(r,a),m=Pe(r??"");let f,u,g,b,p,x,h,N,v;if(e[2]!==m||e[3]!==n||e[4]!==a||e[5]!==i||e[6]!==s||e[7]!==r){v=Symbol.for("react.early_return_sentinel");e:{if(u=O(a),f=n&&n.kind==="file"?{key:s,filename:u,size:n.size,downloadUrl:m(n.path)}:null,f&&n&&Qt(u)){const F=f.downloadUrl;let U;e[17]!==n?(U=Ue(n),e[17]=n,e[18]=U):U=e[18];let B;e[19]!==i?(B=t.jsx(Wt,{onClose:i}),e[19]=i,e[20]=B):B=e[20],v=t.jsx(Te,{readUrl:F,marker:U,title:u,savePath:r==="home"?a:void 0,trailing:B},s);break e}N="flex h-full w-full flex-col bg-background",h="flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",g="flex min-w-0 flex-1 items-center gap-2 px-2",b=t.jsx(A,{filename:u,className:"h-4.5 w-3.5 shrink-0"}),e[21]!==u?(p=t.jsx("span",{className:"truncate text-xs font-medium text-foreground",children:u}),e[21]=u,e[22]=p):p=e[22],x=f&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:Ae(f.size)})}e[2]=m,e[3]=n,e[4]=a,e[5]=i,e[6]=s,e[7]=r,e[8]=f,e[9]=u,e[10]=g,e[11]=b,e[12]=p,e[13]=x,e[14]=h,e[15]=N,e[16]=v}else f=e[8],u=e[9],g=e[10],b=e[11],p=e[12],x=e[13],h=e[14],N=e[15],v=e[16];if(v!==Symbol.for("react.early_return_sentinel"))return v;let w;e[23]!==g||e[24]!==b||e[25]!==p||e[26]!==x?(w=t.jsxs("div",{className:g,children:[b,p,x]}),e[23]=g,e[24]=b,e[25]=p,e[26]=x,e[27]=w):w=e[27];let j;e[28]!==f?(j=f&&t.jsxs(t.Fragment,{children:[t.jsxs(K,{children:[t.jsx(V,{asChild:!0,children:t.jsx(T,{variant:"ghost",size:"icon",asChild:!0,children:t.jsx("a",{href:f.downloadUrl,download:f.filename,children:t.jsx(ae,{size:14})})})}),t.jsx(q,{side:"bottom",children:"Download"})]}),t.jsxs(K,{children:[t.jsx(V,{asChild:!0,children:t.jsx(T,{variant:"ghost",size:"icon",onClick:()=>window.open(f.downloadUrl,"_blank","noopener"),children:t.jsx(Be,{size:14})})}),t.jsx(q,{side:"bottom",children:"Open in new tab"})]})]}),e[28]=f,e[29]=j):j=e[29];let C;e[30]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(Ie,{size:14}),e[30]=C):C=e[30];let k;e[31]!==i?(k=t.jsx(V,{asChild:!0,children:t.jsx(T,{variant:"ghost",size:"icon",onClick:i,children:C})}),e[31]=i,e[32]=k):k=e[32];let $;e[33]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(q,{side:"bottom",children:"Close"}),e[33]=$):$=e[33];let z;e[34]!==k?(z=t.jsxs(K,{children:[k,$]}),e[34]=k,e[35]=z):z=e[35];let P;e[36]!==j||e[37]!==z||e[38]!==h||e[39]!==w?(P=t.jsxs("div",{className:h,children:[w,j,z]}),e[36]=j,e[37]=z,e[38]=h,e[39]=w,e[40]=P):P=e[40];let D;e[41]!==f||e[42]!==u||e[43]!==d?(D=t.jsx("div",{className:"relative min-h-0 flex-1",children:f?t.jsx(fe,{file:f}):d?t.jsx(Ee,{}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[t.jsx(A,{filename:u,className:"h-7.5 w-6"}),t.jsx("span",{className:"text-sm text-muted-foreground",children:"This file is no longer available."})]})}),e[41]=f,e[42]=u,e[43]=d,e[44]=D):D=e[44];let y;return e[45]!==P||e[46]!==D||e[47]!==N?(y=t.jsxs("div",{className:N,children:[P,D]}),e[45]=P,e[46]=D,e[47]=N,e[48]=y):y=e[48],y}function Zt(l){const e=S.c(21),{skillPath:s,onClose:i}=l,o=ne(s),{volume:c,dirPath:r}=o,a=me(),n=a(c??"",`${r}/SKILL.md`),d=M.fileText(n);let m;e[0]!==n?(m=async()=>{const _=await fetch(n,{credentials:"include"});if(!_.ok)throw new Error(`fetch failed: ${_.status}`);return _.text()},e[0]=n,e[1]=m):m=e[1];let f;e[2]!==d||e[3]!==m?(f={queryKey:d,queryFn:m,staleTime:6e4,retry:!1},e[2]=d,e[3]=m,e[4]=f):f=e[4];const u=J(f),g=Me(c??"",r);let b;e[5]!==r?(b=O(r),e[5]=r,e[6]=b):b=e[6];const p=b;let x;e[7]!==u.data?(x=u.data?He(u.data):null,e[7]=u.data,e[8]=x):x=e[8];const h=x,N=el;let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=(_,G)=>N(_.path)?-1:N(G.path)?1:O(_.path).localeCompare(O(G.path)),e[9]=v):v=e[9];const w=(g.data??[]).filter(Jt).sort(v),[j,C]=E.useState(null),k=j===null?null:w.find(_=>_.path===j)??null;let $;e[10]!==i?($=_=>{_||i()},e[10]=i,e[11]=$):$=e[11];let z;e[12]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:t.jsx(Re,{size:18})}),e[12]=z):z=e[12];const P=h?.name??p;let D;e[13]!==P?(D=t.jsx(Z,{className:"flex-1 truncate text-base font-medium text-foreground",children:P}),e[13]=P,e[14]=D):D=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(ct,{asChild:!0,children:t.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:t.jsx(vt,{size:16})})}),e[15]=y):y=e[15];let F;e[16]!==D?(F=t.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[z,D,y]}),e[16]=D,e[17]=F):F=e[17];let U;e[18]===Symbol.for("react.memo_cache_sentinel")?(U=t.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[18]=U):U=e[18];const B="relative flex min-w-0 flex-1 flex-col overflow-y-auto",ie=k?t.jsx(fe,{file:{key:k.path,filename:O(k.path),size:k.size,downloadUrl:a(c??"",k.path)}}):u.isPending?t.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[t.jsx(H,{className:"h-4 w-1/3"}),t.jsx(H,{className:"h-3 w-full"}),t.jsx(H,{className:"h-3 w-5/6"}),t.jsx(H,{className:"h-3 w-2/3"})]}):u.isError||!h?t.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),t.jsx("p",{className:"text-base text-muted-foreground",children:h.description??"Claude Code skill"})]}),t.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:t.jsx(ht,{id:`skill-preview-${s}`,text:h.body})})]});let Q;return e[19]!==ie?(Q=t.jsx("div",{className:B,children:ie}),e[19]=ie,e[20]=Q):Q=e[20],t.jsx(ce,{open:!0,onOpenChange:$,children:t.jsxs(de,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:[F,t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[U,g.isPending?t.jsx(H,{className:"mx-2 h-4 w-24"}):w.map(_=>{const G=N(_.path)?k===null:j===_.path;return t.jsxs("button",{type:"button",onClick:()=>C(N(_.path)?null:_.path),className:Y("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",G?"bg-background shadow-sm":"hover:bg-muted/60"),children:[t.jsx(A,{filename:O(_.path),className:"h-6 w-5 shrink-0"}),t.jsx("span",{className:Y("truncate text-sm",G?"text-foreground":"text-muted-foreground"),children:O(_.path)})]},_.path)})]}),Q]})]})})}function Jt(l){return l.kind==="file"}function el(l){return O(l)==="SKILL.md"}const qe=[{id:"home",description:"Your organization's home folder",glyph:Ze},{id:"uploads",description:"Files your team uploads",glyph:ze},{id:"outputs",description:"Agent run outputs",glyph:et}],Ne=3;function R(l){const e=S.c(2),{children:s}=l;let i;return e[0]!==s?(i=t.jsx("p",{className:"text-[13px] text-foreground",children:s}),e[0]=s,e[1]=i):i=e[1],i}function L(l){const e=S.c(2),{children:s}=l;let i;return e[0]!==s?(i=t.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:s}),e[0]=s,e[1]=i):i=e[1],i}function ge(l){const e=S.c(2),{rows:s}=l,i=s===void 0?1:s;let o;return e[0]!==i?(o=t.jsx(L,{children:Array.from({length:i*3},tl)}),e[0]=i,e[1]=o):o=e[1],o}function tl(l,e){return t.jsx(H,{className:"h-16 rounded-2xl"},e)}function be(l){const e=S.c(2),{children:s}=l;let i;return e[0]!==s?(i=t.jsx("p",{className:"text-sm text-muted-foreground",children:s}),e[0]=s,e[1]=i):i=e[1],i}function ll(l){const e=S.c(6),{volume:s,displayName:i,description:o,glyph:c,onOpen:r}=l,a=gt(s),n=i??s,d=a.data?`${a.data.files} files`:void 0;let m;return e[0]!==o||e[1]!==c||e[2]!==r||e[3]!==n||e[4]!==d?(m=t.jsx(se,{name:n,meta:d,subtitle:o,glyph:c,onOpen:r}),e[0]=o,e[1]=c,e[2]=r,e[3]=n,e[4]=d,e[5]=m):m=e[5],m}function sl(l){const e=S.c(8),{segments:s,onNavigate:i}=l;let o;e[0]!==i?(o=t.jsx("button",{type:"button",className:"text-muted-foreground hover:text-foreground hover:underline",onClick:()=>i(""),children:"Library"}),e[0]=i,e[1]=o):o=e[1];let c;e[2]!==i||e[3]!==s?(c=s.map((a,n)=>{const d=s.slice(0,n+1).join("/"),m=n===s.length-1;return t.jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[t.jsx(Qe,{size:12,className:"shrink-0 text-muted-foreground"}),m?t.jsx("span",{className:"truncate font-medium text-foreground",children:a}):t.jsx("button",{type:"button",className:"truncate text-muted-foreground hover:text-foreground hover:underline",onClick:()=>i(d),children:a})]},d)}),e[2]=i,e[3]=s,e[4]=c):c=e[4];let r;return e[5]!==o||e[6]!==c?(r=t.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-1 text-sm",children:[o,c]}),e[5]=o,e[6]=c,e[7]=r):r=e[7],r}function nl(l){const e=S.c(19),{onOpenDir:s,onOpenFile:i,onDelete:o}=l,{org:c}=$e(),r=jt(),a=Le(),n=me();let d;if(e[0]!==n||e[1]!==o||e[2]!==s||e[3]!==i||e[4]!==c||e[5]!==a.data?.length||e[6]!==r.data||e[7]!==r.isPending){const m=r.data??[],f=m.slice(0,Ne),u=m.slice(Ne);let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(R,{children:"Folders"}),e[9]=g):g=e[9];let b;e[10]!==s||e[11]!==c?(b=qe.map(h=>t.jsx(ll,{volume:h.id,displayName:h.id==="home"?kt(c.slug):void 0,description:h.description,glyph:h.glyph,onOpen:()=>s(h.id)},h.id)),e[10]=s,e[11]=c,e[12]=b):b=e[12];let p;e[13]!==s||e[14]!==a.data?.length?(p=(a.data?.length??0)>0&&t.jsx(se,{name:"public",meta:`${a.data?.length} sets`,subtitle:"Curated skill sets — read-only",glyph:We,readOnly:!0,onOpen:()=>s("public")}),e[13]=s,e[14]=a.data?.length,e[15]=p):p=e[15];let x;e[16]!==b||e[17]!==p?(x=t.jsxs("div",{className:"flex flex-col gap-3",children:[g,t.jsxs(L,{children:[b,p]})]}),e[16]=b,e[17]=p,e[18]=x):x=e[18],d=t.jsxs(t.Fragment,{children:[r.isPending?t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(R,{children:"Recently added"}),t.jsx(ge,{})]}):f.length>0?t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(R,{children:"Recently added"}),t.jsx(L,{children:f.map(h=>t.jsx(qt,{filename:O(h.path),updatedAt:h.updatedAt,size:h.size,downloadUrl:n(h.volume,h.path),onOpen:()=>i(`${h.volume}/${h.path}`),onDelete:()=>o({volume:h.volume,path:h.path,kind:"file"})},`${h.volume}/${h.path}`))})]}):t.jsx(be,{children:"No files yet — upload one, or ask an agent to produce something."}),x,u.length>0&&t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(R,{children:"All files"}),t.jsx(L,{children:u.map(h=>t.jsx(Ve,{filename:O(h.path),updatedAt:h.updatedAt,downloadUrl:n(h.volume,h.path),onOpen:()=>i(`${h.volume}/${h.path}`),onDelete:()=>o({volume:h.volume,path:h.path,kind:"file"})},`${h.volume}/${h.path}`))})]})]}),e[0]=n,e[1]=o,e[2]=s,e[3]=i,e[4]=c,e[5]=a.data?.length,e[6]=r.data,e[7]=r.isPending,e[8]=d}else d=e[8];return d}function il(l){const e=S.c(11),{onOpenDir:s}=l,i=Le();if(i.isPending){let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(ge,{}),e[0]=n):n=e[0],n}let o;e[1]!==i.data?(o=i.data??[],e[1]=i.data,e[2]=o):o=e[2];const c=o;if(c.length===0){let n;return e[3]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(be,{children:"No public skill sets are configured."}),e[3]=n):n=e[3],n}let r;if(e[4]!==s||e[5]!==c){let n;e[7]!==s?(n=d=>t.jsx(se,{name:d,subtitle:"Read-only",readOnly:!0,onOpen:()=>s(`public/${d}`)},d),e[7]=s,e[8]=n):n=e[8],r=c.map(n),e[4]=s,e[5]=c,e[6]=r}else r=e[6];let a;return e[9]!==r?(a=t.jsx(L,{children:r}),e[9]=r,e[10]=a):a=e[10],a}function rl(l){const e=S.c(25),{location:s,onOpenDir:i,onOpenFile:o,onOpenSkill:c,onDelete:r}=l,a=s.volume??"",n=Me(a,s.dirPath),d=me();if(n.isPending){let p;return e[0]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(ge,{rows:2}),e[0]=p):p=e[0],p}if(n.isError){const p=n.error instanceof Error?n.error.message:"Failed to load";let x;return e[1]!==p?(x=t.jsx("p",{className:"text-sm text-destructive",children:p}),e[1]=p,e[2]=x):x=e[2],x}let m,f,u,g;if(e[3]!==d||e[4]!==n.data||e[5]!==s||e[6]!==r||e[7]!==i||e[8]!==o||e[9]!==c||e[10]!==a){g=Symbol.for("react.early_return_sentinel");e:{const p=n.data??[],x=p.filter(cl),h=p.filter(al),N=p.filter(ol);if(p.length===0){const j=s.readOnly?"Empty — this read-only set syncs from its GitHub source.":"Empty folder — upload a file or create a folder to get started.";let C;e[15]!==j?(C=t.jsx(be,{children:j}),e[15]=j,e[16]=C):C=e[16],g=C;break e}let v;e[17]!==s.readOnly||e[18]!==r||e[19]!==a?(v=j=>s.readOnly?void 0:()=>r({volume:a,path:j.path,kind:j.kind}),e[17]=s.readOnly,e[18]=r,e[19]=a,e[20]=v):v=e[20];const w=v;m=x.length>0&&t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(R,{children:"Skills"}),t.jsx(L,{children:x.map(j=>t.jsx(Et,{dirName:O(j.path),updatedAt:j.updatedAt,skillMdUrl:d(a,`${j.path}/SKILL.md`),onOpen:()=>c(W(s,j.path)),onBrowse:()=>i(W(s,j.path)),onDelete:w(j)},j.path))})]}),f=h.length>0&&t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(R,{children:"Folders"}),t.jsx(L,{children:h.map(j=>t.jsx(se,{name:O(j.path),meta:ee(j.updatedAt),readOnly:s.readOnly,onOpen:()=>i(W(s,j.path)),onDelete:w(j)},j.path))})]}),u=N.length>0&&t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(R,{children:"Files"}),t.jsx(L,{children:N.map(j=>t.jsx(Ve,{filename:O(j.path),updatedAt:j.updatedAt,downloadUrl:d(a,j.path),onOpen:()=>o(W(s,j.path)),onDelete:w(j)},j.path))})]})}e[3]=d,e[4]=n.data,e[5]=s,e[6]=r,e[7]=i,e[8]=o,e[9]=c,e[10]=a,e[11]=m,e[12]=f,e[13]=u,e[14]=g}else m=e[11],f=e[12],u=e[13],g=e[14];if(g!==Symbol.for("react.early_return_sentinel"))return g;let b;return e[21]!==m||e[22]!==f||e[23]!==u?(b=t.jsxs(t.Fragment,{children:[m,f,u]}),e[21]=m,e[22]=f,e[23]=u,e[24]=b):b=e[24],b}function ol(l){return l.kind==="file"}function al(l){return l.kind==="dir"&&!l.hasSkill}function cl(l){return l.kind==="dir"&&l.hasSkill}function ke(){const{org:l}=$e(),e=Ge(),s=Ce(),i=Fe(),o=Se({strict:!1}),c=o.path??"",r=ne(c),a=r.segments.length===0,n=(y,F)=>s({to:".",search:U=>({...U,[y]:F||void 0})}),d=y=>n("path",y),m=y=>n("preview",y),f=y=>n("skill",y),[u,g]=E.useState(null),[b,p]=E.useState(!1),[x,h]=E.useState(""),N=E.useRef(null),v=r.readOnly?null:r.volume??"uploads",w=r.volume?r.dirPath:"",{upload:j,mkdir:C}=ye(v??"uploads"),{remove:k}=ye(u?.volume??"uploads");async function $(y){if(!(!v||!y||y.length===0))try{await j.mutateAsync({dir:w,files:[...y]}),I.success(y.length===1?`Uploaded ${y[0]?.name}`:`Uploaded ${y.length} files`)}catch(F){I.error(F instanceof Error?F.message:"Upload failed")}finally{N.current&&(N.current.value="")}}async function z(){const y=x.trim();if(!(!v||!y))try{await C.mutateAsync(w?`${w}/${y}`:y),I.success(`Folder "${y}" created`),p(!1),h("")}catch(F){I.error(F instanceof Error?F.message:"Failed to create folder")}}async function P(){if(!u)return;const y=u;try{await k.mutateAsync(y.path),I.success(`Deleted ${O(y.path)}`)}catch(F){I.error(F instanceof Error?F.message:"Delete failed")}finally{g(null)}}function D(){for(const y of qe)e.invalidateQueries({queryKey:M.orgFsVolume(l.id,y.id)});r.volume&&e.invalidateQueries({queryKey:M.orgFsVolume(l.id,r.volume)}),e.invalidateQueries({queryKey:M.orgFsRecent(l.id)}),e.invalidateQueries({queryKey:M.orgFsPublicSets(l.id)})}return t.jsxs("div",{className:"h-full overflow-y-auto",children:[t.jsxs("div",{className:"mx-auto flex w-full max-w-[900px] flex-col gap-10 px-6 py-10 lg:px-10",children:[t.jsxs("div",{className:"flex flex-col gap-2",children:[!a&&t.jsx(sl,{segments:r.segments,onNavigate:d}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("h1",{className:"min-w-0 flex-1 truncate text-xl font-medium text-foreground",children:a?"Library":r.segments.at(-1)??"Library"}),t.jsx(T,{variant:"ghost",size:"icon",onClick:D,"aria-label":"Refresh",children:t.jsx(Xe,{size:14})}),!a&&v&&t.jsxs(T,{variant:"outline",size:"sm",onClick:()=>p(!0),children:[t.jsx(Je,{size:14}),"New folder"]}),r.readOnly?t.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[t.jsx(De,{size:12}),"Read-only"]}):t.jsxs(T,{size:"sm",disabled:j.isPending,onClick:()=>N.current?.click(),children:[t.jsx(ze,{size:14}),j.isPending?"Uploading…":"Upload file"]}),t.jsx("input",{ref:N,type:"file",multiple:!0,className:"hidden",onChange:y=>{$(y.target.files)}})]})]}),a?t.jsx(nl,{onOpenDir:d,onOpenFile:m,onDelete:g}):r.volume===null?t.jsx(il,{onOpenDir:d}):t.jsx(rl,{location:r,onOpenDir:d,onOpenFile:m,onOpenSkill:f,onDelete:g},r.volume)]}),o.preview?i&&t.jsx(Xt,{previewPath:o.preview,onClose:()=>n("preview",null)}):o.skill?t.jsx(Zt,{skillPath:o.skill,onClose:()=>n("skill",null)},o.skill):null,t.jsx(ce,{open:b,onOpenChange:p,children:t.jsxs(de,{children:[t.jsxs(dt,{children:[t.jsx(Z,{children:"New folder"}),t.jsxs(ft,{children:["Create a folder in ",c||"the library","."]})]}),t.jsx(ut,{autoFocus:!0,placeholder:"folder-name",value:x,onChange:y=>h(y.target.value),onKeyDown:y=>{y.key==="Enter"&&z()}}),t.jsxs(mt,{children:[t.jsx(T,{variant:"outline",onClick:()=>p(!1),children:"Cancel"}),t.jsx(T,{disabled:!x.trim()||C.isPending,onClick:()=>{z()},children:"Create"})]})]})}),t.jsx(tt,{open:u!==null,onOpenChange:y=>{y||g(null)},children:t.jsxs(lt,{children:[t.jsxs(st,{children:[t.jsxs(nt,{children:["Delete ",u?O(u.path):"","?"]}),t.jsx(it,{children:u?.kind==="dir"?"The folder and everything inside it will be deleted for the whole organization. Sandboxes see this change within seconds.":"The file will be deleted for the whole organization. Sandboxes see this change within seconds."})]}),t.jsxs(rt,{children:[t.jsx(ot,{children:"Cancel"}),t.jsx(at,{onClick:()=>{P()},children:"Delete"})]})]})})]})}function Ll(){const l=S.c(13),e=Fe(),s=Ce();let i;l[0]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},l[0]=i):i=l[0];const c=Se(i).preview;let r;l[1]!==c?(r=c?O(c):"",l[1]=c,l[2]=r):r=l[2];const a=r;let n;l[3]!==s?(n=()=>s({to:".",search:dl}),l[3]=s,l[4]=n):n=l[4];const d=n;if(e){let g;return l[5]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden bg-background",children:t.jsx(re,{children:t.jsx(ke,{})})}),l[5]=g):g=l[5],g}let m;l[6]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(ve,{order:1,minSize:30,defaultSize:55,children:t.jsx("div",{className:"h-full p-0.5 pt-0.25",children:t.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:t.jsx(re,{children:t.jsx(ke,{})})})})}),l[6]=m):m=l[6];let f;l[7]!==d||l[8]!==a||l[9]!==c?(f=c&&t.jsxs(t.Fragment,{children:[t.jsx(xt.Tabs,{children:t.jsx(pt,{title:a,icon:{kind:"component",Component:g=>t.jsx(A,{filename:a,...g})},active:!0,onClick:d})}),t.jsx(bt,{className:"bg-sidebar"}),t.jsx(ve,{order:2,minSize:25,defaultSize:45,children:t.jsx("div",{className:"h-full p-0.5 pt-0.25",children:t.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:t.jsx(re,{children:t.jsx(Yt,{previewPath:c,onClose:d})})})})})]}),l[7]=d,l[8]=a,l[9]=c,l[10]=f):f=l[10];let u;return l[11]!==f?(u=t.jsxs(yt,{direction:"horizontal",className:"min-h-0 flex-1 pt-0 pr-1 pb-1 pl-0",children:[m,f]}),l[11]=f,l[12]=u):u=l[12],u}function dl(l){return{...l,preview:void 0}}export{Ll as default};
@@ -1 +1 @@
1
- import{r as h}from"./index-DjCrtoJM.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-BPnG82q8.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})`}})});