@halcyonlabs/app 0.47.0-halcyon.604 → 0.47.0-halcyon.607

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 (782) hide show
  1. package/app/dist/assets/{AddMachineDialog-BHF-GkBG.js → AddMachineDialog-CG2ZZhp-.js} +1 -1
  2. package/app/dist/assets/AddMachineDialog-CG2ZZhp-.js.br +0 -0
  3. package/app/dist/assets/AddMachineDialog-CG2ZZhp-.js.gz +0 -0
  4. package/app/dist/assets/{AppCommandShortcutHint-7JPI7Au-.js → AppCommandShortcutHint-CCVkbqD1.js} +1 -1
  5. package/app/dist/assets/{AppFileExternalNavigationDispatcher-BNbJsP1g.js → AppFileExternalNavigationDispatcher-DETVZfBW.js} +1 -1
  6. package/app/dist/assets/AppFileExternalNavigationDispatcher-DETVZfBW.js.br +0 -0
  7. package/app/dist/assets/AppFileExternalNavigationDispatcher-DETVZfBW.js.gz +0 -0
  8. package/app/dist/assets/{AppToasterView-DP33gZcS.js → AppToasterView-BpJaGVQ1.js} +1 -1
  9. package/app/dist/assets/{BrowserTabDeck-BlOoU-vR.js → BrowserTabDeck-c6VRKA-g.js} +1 -1
  10. package/app/dist/assets/BrowserTabDeck-c6VRKA-g.js.br +0 -0
  11. package/app/dist/assets/BrowserTabDeck-c6VRKA-g.js.gz +0 -0
  12. package/app/dist/assets/{CommandPaletteBody-CBbTgLrW.js → CommandPaletteBody-BeiWvSTK.js} +1 -1
  13. package/app/dist/assets/CommandPaletteBody-BeiWvSTK.js.br +0 -0
  14. package/app/dist/assets/CommandPaletteBody-BeiWvSTK.js.gz +0 -0
  15. package/app/dist/assets/{DiffHost-DYBSO1_c.js → DiffHost-xesYsZUt.js} +1 -1
  16. package/app/dist/assets/DiffHost-xesYsZUt.js.br +0 -0
  17. package/app/dist/assets/DiffHost-xesYsZUt.js.gz +0 -0
  18. package/app/dist/assets/{ExperimentalFileLinkMenu-DO2lGQoK.js → ExperimentalFileLinkMenu-CDVoETHe.js} +1 -1
  19. package/app/dist/assets/ExperimentalFileLinkMenu-CDVoETHe.js.br +0 -0
  20. package/app/dist/assets/ExperimentalFileLinkMenu-CDVoETHe.js.gz +0 -0
  21. package/app/dist/assets/{FilePreview-ORcgsTax.js → FilePreview-CzacGZ35.js} +1 -1
  22. package/app/dist/assets/FilePreview-CzacGZ35.js.br +0 -0
  23. package/app/dist/assets/FilePreview-CzacGZ35.js.gz +0 -0
  24. package/app/dist/assets/{GitDiffCardHeader-i4vt7tT5.js → GitDiffCardHeader-CJtFaq1K.js} +1 -1
  25. package/app/dist/assets/GitDiffCardHeader-CJtFaq1K.js.br +0 -0
  26. package/app/dist/assets/GitDiffCardHeader-CJtFaq1K.js.gz +0 -0
  27. package/app/dist/assets/{InlineMessageEditorFrame-y089xCLP.js → InlineMessageEditorFrame-C0rqOlNn.js} +1 -1
  28. package/app/dist/assets/InlineMessageEditorFrame-C0rqOlNn.js.br +0 -0
  29. package/app/dist/assets/InlineMessageEditorFrame-C0rqOlNn.js.gz +0 -0
  30. package/app/dist/assets/{MachineLabel-D07WUIMh.js → MachineLabel-vUI5j8ve.js} +1 -1
  31. package/app/dist/assets/MachineLabel-vUI5j8ve.js.br +0 -0
  32. package/app/dist/assets/MachineLabel-vUI5j8ve.js.gz +0 -0
  33. package/app/dist/assets/{MachineRenameDialog-RyrwvNas.js → MachineRenameDialog-CrnZuppe.js} +1 -1
  34. package/app/dist/assets/MachineRenameDialog-CrnZuppe.js.br +0 -0
  35. package/app/dist/assets/MachineRenameDialog-CrnZuppe.js.gz +0 -0
  36. package/app/dist/assets/{MachineSettingsView-Bg6Op62W.js → MachineSettingsView-BR6qseai.js} +1 -1
  37. package/app/dist/assets/MachineSettingsView-BR6qseai.js.br +0 -0
  38. package/app/dist/assets/MachineSettingsView-BR6qseai.js.gz +0 -0
  39. package/app/dist/assets/{MicrophonePreferences-DwsTYfON.js → MicrophonePreferences-wMQ36e_Q.js} +1 -1
  40. package/app/dist/assets/MicrophonePreferences-wMQ36e_Q.js.br +0 -0
  41. package/app/dist/assets/MicrophonePreferences-wMQ36e_Q.js.gz +0 -0
  42. package/app/dist/assets/{ModelReasoningMenu-Dth3XXm8.js → ModelReasoningMenu-Do0jyo5Q.js} +1 -1
  43. package/app/dist/assets/ModelReasoningMenu-Do0jyo5Q.js.br +0 -0
  44. package/app/dist/assets/ModelReasoningMenu-Do0jyo5Q.js.gz +0 -0
  45. package/app/dist/assets/{MoonletDiff-Da65ABAI.js → MoonletDiff-CCvaiEEC.js} +1 -1
  46. package/app/dist/assets/MoonletDiff-CCvaiEEC.js.br +0 -0
  47. package/app/dist/assets/MoonletDiff-CCvaiEEC.js.gz +0 -0
  48. package/app/dist/assets/{MoonletDiffSplit-Phl7m23w.js → MoonletDiffSplit-3xEwFpfu.js} +2 -2
  49. package/app/dist/assets/MoonletDiffSplit-3xEwFpfu.js.br +0 -0
  50. package/app/dist/assets/MoonletDiffSplit-3xEwFpfu.js.gz +0 -0
  51. package/app/dist/assets/{MoonletSourceCode-C5aa88dK.js → MoonletSourceCode-BgaVW-e6.js} +1 -1
  52. package/app/dist/assets/MoonletSourceCode-BgaVW-e6.js.br +0 -0
  53. package/app/dist/assets/MoonletSourceCode-BgaVW-e6.js.gz +0 -0
  54. package/app/dist/assets/{NewTabPage-BKkv1maV.js → NewTabPage-BOqCqqLe.js} +1 -1
  55. package/app/dist/assets/NewTabPage-BOqCqqLe.js.br +0 -0
  56. package/app/dist/assets/NewTabPage-BOqCqqLe.js.gz +0 -0
  57. package/app/dist/assets/{NewThreadComposer-00DY4i8k.js → NewThreadComposer-DyB52pmS.js} +1 -1
  58. package/app/dist/assets/NewThreadComposer-DyB52pmS.js.br +0 -0
  59. package/app/dist/assets/NewThreadComposer-DyB52pmS.js.gz +0 -0
  60. package/app/dist/assets/{OnboardingFlow-GwpuTTqu.js → OnboardingFlow-DTPixZrb.js} +1 -1
  61. package/app/dist/assets/OnboardingFlow-DTPixZrb.js.br +0 -0
  62. package/app/dist/assets/OnboardingFlow-DTPixZrb.js.gz +0 -0
  63. package/app/dist/assets/{OptionPicker-Cy_W5NWS.js → OptionPicker-CxOGHDd8.js} +1 -1
  64. package/app/dist/assets/OptionPicker-CxOGHDd8.js.br +0 -0
  65. package/app/dist/assets/OptionPicker-CxOGHDd8.js.gz +0 -0
  66. package/app/dist/assets/{PaletteShell-CRwrb4lb.js → PaletteShell-BMkwhUdz.js} +1 -1
  67. package/app/dist/assets/PaletteShell-BMkwhUdz.js.br +0 -0
  68. package/app/dist/assets/PaletteShell-BMkwhUdz.js.gz +0 -0
  69. package/app/dist/assets/{PaneMaximizeButton-CMp4cCoZ.js → PaneMaximizeButton-DgXn2p5T.js} +1 -1
  70. package/app/dist/assets/PaneMaximizeButton-DgXn2p5T.js.br +0 -0
  71. package/app/dist/assets/PaneMaximizeButton-DgXn2p5T.js.gz +0 -0
  72. package/app/dist/assets/{PierreLineSelectionActions-BXbCJV8P.js → PierreLineSelectionActions-V_GPrVau.js} +1 -1
  73. package/app/dist/assets/PierreLineSelectionActions-V_GPrVau.js.br +0 -0
  74. package/app/dist/assets/PierreLineSelectionActions-V_GPrVau.js.gz +0 -0
  75. package/app/dist/assets/{PluginPanelRightPanelHost-CuKRaAaL.js → PluginPanelRightPanelHost-CRDSntoM.js} +1 -1
  76. package/app/dist/assets/PluginPanelRightPanelHost-CRDSntoM.js.br +0 -0
  77. package/app/dist/assets/PluginPanelRightPanelHost-CRDSntoM.js.gz +0 -0
  78. package/app/dist/assets/{PluginSettingsSections-DJo5h7Qh.js → PluginSettingsSections-ZnUNrvlJ.js} +1 -1
  79. package/app/dist/assets/PluginSettingsSections-ZnUNrvlJ.js.br +0 -0
  80. package/app/dist/assets/PluginSettingsSections-ZnUNrvlJ.js.gz +0 -0
  81. package/app/dist/assets/{PluginThreadChat-BV6OMCzu.js → PluginThreadChat-DtIyKaqq.js} +1 -1
  82. package/app/dist/assets/PluginThreadChat-DtIyKaqq.js.br +0 -0
  83. package/app/dist/assets/PluginThreadChat-DtIyKaqq.js.gz +0 -0
  84. package/app/dist/assets/{ProjectDetailSettingsView-DdF6YsSg.js → ProjectDetailSettingsView-B3apTKMj.js} +1 -1
  85. package/app/dist/assets/ProjectDetailSettingsView-B3apTKMj.js.br +0 -0
  86. package/app/dist/assets/ProjectDetailSettingsView-B3apTKMj.js.gz +0 -0
  87. package/app/dist/assets/{ProjectMachineSetupDialog-CtbI4XxM.js → ProjectMachineSetupDialog-C43S09Ex.js} +1 -1
  88. package/app/dist/assets/ProjectMachineSetupDialog-C43S09Ex.js.br +0 -0
  89. package/app/dist/assets/ProjectMachineSetupDialog-C43S09Ex.js.gz +0 -0
  90. package/app/dist/assets/{ProjectsSettingsSection-BT1kXbPn.js → ProjectsSettingsSection-CIshX8Xc.js} +1 -1
  91. package/app/dist/assets/ProjectsSettingsSection-CIshX8Xc.js.br +0 -0
  92. package/app/dist/assets/ProjectsSettingsSection-CIshX8Xc.js.gz +0 -0
  93. package/app/dist/assets/{QueuedMessagesList-D1aAchqp.js → QueuedMessagesList-Dh5dxmNK.js} +1 -1
  94. package/app/dist/assets/QueuedMessagesList-Dh5dxmNK.js.br +0 -0
  95. package/app/dist/assets/QueuedMessagesList-Dh5dxmNK.js.gz +0 -0
  96. package/app/dist/assets/{RemotePathBrowser-vPIL8lVm.js → RemotePathBrowser-1A5-qAxD.js} +1 -1
  97. package/app/dist/assets/RemotePathBrowser-1A5-qAxD.js.br +0 -0
  98. package/app/dist/assets/RemotePathBrowser-1A5-qAxD.js.gz +0 -0
  99. package/app/dist/assets/{RootComposeView-DV6JGFlA.js → RootComposeView-BIZpqYG3.js} +1 -1
  100. package/app/dist/assets/RootComposeView-BIZpqYG3.js.br +0 -0
  101. package/app/dist/assets/RootComposeView-BIZpqYG3.js.gz +0 -0
  102. package/app/dist/assets/{SecondaryPanelLayout-BpHDgFJ_.js → SecondaryPanelLayout-BIQDxJLi.js} +1 -1
  103. package/app/dist/assets/SecondaryPanelLayout-BIQDxJLi.js.br +0 -0
  104. package/app/dist/assets/SecondaryPanelLayout-BIQDxJLi.js.gz +0 -0
  105. package/app/dist/assets/{ServerMoveOverlayView-CGkGzv8t.js → ServerMoveOverlayView-BSJahQeB.js} +1 -1
  106. package/app/dist/assets/ServerMoveOverlayView-BSJahQeB.js.br +0 -0
  107. package/app/dist/assets/ServerMoveOverlayView-BSJahQeB.js.gz +0 -0
  108. package/app/dist/assets/{SettingsSidebar-1XC0Uxwo.js → SettingsSidebar-DY_kbv4v.js} +1 -1
  109. package/app/dist/assets/SettingsSidebar-DY_kbv4v.js.br +0 -0
  110. package/app/dist/assets/SettingsSidebar-DY_kbv4v.js.gz +0 -0
  111. package/app/dist/assets/SettingsView-CR1GzBCl.js +7 -0
  112. package/app/dist/assets/SettingsView-CR1GzBCl.js.br +0 -0
  113. package/app/dist/assets/SettingsView-CR1GzBCl.js.gz +0 -0
  114. package/app/dist/assets/{SidebarFooterCustomize-D7sLYPwD.js → SidebarFooterCustomize-pIj856Zr.js} +1 -1
  115. package/app/dist/assets/SidebarFooterCustomize-pIj856Zr.js.br +0 -0
  116. package/app/dist/assets/SidebarFooterCustomize-pIj856Zr.js.gz +0 -0
  117. package/app/dist/assets/{SidebarVisibilityCustomize-DpTzFoGl.js → SidebarVisibilityCustomize-CR7hQOIF.js} +1 -1
  118. package/app/dist/assets/SidebarVisibilityCustomize-CR7hQOIF.js.br +0 -0
  119. package/app/dist/assets/SidebarVisibilityCustomize-CR7hQOIF.js.gz +0 -0
  120. package/app/dist/assets/{SourceCodeHost-DVEXLJK1.js → SourceCodeHost-DkoXO-RM.js} +2 -2
  121. package/app/dist/assets/SourceCodeHost-DkoXO-RM.js.br +0 -0
  122. package/app/dist/assets/SourceCodeHost-DkoXO-RM.js.gz +0 -0
  123. package/app/dist/assets/{SplitWorkspaceRoute-BfxQQdOx.js → SplitWorkspaceRoute-DN3j-Nio.js} +2 -2
  124. package/app/dist/assets/SplitWorkspaceRoute-DN3j-Nio.js.br +0 -0
  125. package/app/dist/assets/SplitWorkspaceRoute-DN3j-Nio.js.gz +0 -0
  126. package/app/dist/assets/{TerminalOutputBlock-COQNamKR.js → TerminalOutputBlock-DKsNjK8s.js} +1 -1
  127. package/app/dist/assets/TerminalOutputBlock-DKsNjK8s.js.br +0 -0
  128. package/app/dist/assets/TerminalOutputBlock-DKsNjK8s.js.gz +0 -0
  129. package/app/dist/assets/{ThreadActionsMenu-064Gcy7T.js → ThreadActionsMenu-BulopjpY.js} +1 -1
  130. package/app/dist/assets/ThreadActionsMenu-BulopjpY.js.br +0 -0
  131. package/app/dist/assets/ThreadActionsMenu-BulopjpY.js.gz +0 -0
  132. package/app/dist/assets/{ThreadDetailView-CjoXzweq.js → ThreadDetailView-C6cu9JmT.js} +3 -3
  133. package/app/dist/assets/ThreadDetailView-C6cu9JmT.js.br +0 -0
  134. package/app/dist/assets/ThreadDetailView-C6cu9JmT.js.gz +0 -0
  135. package/app/dist/assets/{ThreadSearchPaletteMode-CwdePsHK.js → ThreadSearchPaletteMode-D0MKJ8PL.js} +1 -1
  136. package/app/dist/assets/ThreadSearchPaletteMode-D0MKJ8PL.js.br +0 -0
  137. package/app/dist/assets/ThreadSearchPaletteMode-D0MKJ8PL.js.gz +0 -0
  138. package/app/dist/assets/{ThreadSecondaryPanel-CtYtgTla.js → ThreadSecondaryPanel-CzjhigwP.js} +1 -1
  139. package/app/dist/assets/ThreadSecondaryPanel-CzjhigwP.js.br +0 -0
  140. package/app/dist/assets/ThreadSecondaryPanel-CzjhigwP.js.gz +0 -0
  141. package/app/dist/assets/{ThreadSecondaryPanelTabContent-BNQi8b2n.js → ThreadSecondaryPanelTabContent-BX5A98YK.js} +1 -1
  142. package/app/dist/assets/ThreadSecondaryPanelTabContent-BX5A98YK.js.br +0 -0
  143. package/app/dist/assets/ThreadSecondaryPanelTabContent-BX5A98YK.js.gz +0 -0
  144. package/app/dist/assets/{ThreadStatusGlyph-DxxHDn0P.js → ThreadStatusGlyph-BYavMHiP.js} +1 -1
  145. package/app/dist/assets/ThreadStatusGlyph-BYavMHiP.js.br +0 -0
  146. package/app/dist/assets/ThreadStatusGlyph-BYavMHiP.js.gz +0 -0
  147. package/app/dist/assets/{ThreadTerminalPanel-fb5Kk0KG.js → ThreadTerminalPanel-Cfe76daj.js} +1 -1
  148. package/app/dist/assets/ThreadTerminalPanel-Cfe76daj.js.br +0 -0
  149. package/app/dist/assets/ThreadTerminalPanel-Cfe76daj.js.gz +0 -0
  150. package/app/dist/assets/{ThreadTerminalView-BiGdt3Fd.js → ThreadTerminalView-CgMKh6rk.js} +1 -1
  151. package/app/dist/assets/ThreadTerminalView-CgMKh6rk.js.br +0 -0
  152. package/app/dist/assets/ThreadTerminalView-CgMKh6rk.js.gz +0 -0
  153. package/app/dist/assets/{ThreadTimelineNavigationContext-epkIpS1J.js → ThreadTimelineNavigationContext-2--wIUmU.js} +2 -2
  154. package/app/dist/assets/ThreadTimelineNavigationContext-2--wIUmU.js.br +0 -0
  155. package/app/dist/assets/ThreadTimelineNavigationContext-2--wIUmU.js.gz +0 -0
  156. package/app/dist/assets/{ThreadUnarchiveButton-CExEP4wZ.js → ThreadUnarchiveButton-CiDbuPzJ.js} +1 -1
  157. package/app/dist/assets/{TimelineDetailScroll-D8gge5Y9.js → TimelineDetailScroll-DnMC8nYC.js} +1 -1
  158. package/app/dist/assets/TimelineDetailScroll-DnMC8nYC.js.br +0 -0
  159. package/app/dist/assets/TimelineDetailScroll-DnMC8nYC.js.gz +0 -0
  160. package/app/dist/assets/{TimelineFileDiffBlock-BJt7kifl.js → TimelineFileDiffBlock-D8pKEcE0.js} +1 -1
  161. package/app/dist/assets/TimelineFileDiffBlock-D8pKEcE0.js.br +0 -0
  162. package/app/dist/assets/TimelineFileDiffBlock-D8pKEcE0.js.gz +0 -0
  163. package/app/dist/assets/{TimelineSelectionMenu-DrK39LAT.js → TimelineSelectionMenu-DDYrgVgK.js} +1 -1
  164. package/app/dist/assets/TimelineSelectionMenu-DDYrgVgK.js.br +0 -0
  165. package/app/dist/assets/TimelineSelectionMenu-DDYrgVgK.js.gz +0 -0
  166. package/app/dist/assets/{ToolsView-4tUvUv2U.js → ToolsView-CXmmNmMz.js} +1 -1
  167. package/app/dist/assets/ToolsView-CXmmNmMz.js.br +0 -0
  168. package/app/dist/assets/ToolsView-CXmmNmMz.js.gz +0 -0
  169. package/app/dist/assets/{ToolsViewSplits-BWOxgNc1.js → ToolsViewSplits-VIMb0WxO.js} +2 -2
  170. package/app/dist/assets/ToolsViewSplits-VIMb0WxO.js.br +0 -0
  171. package/app/dist/assets/ToolsViewSplits-VIMb0WxO.js.gz +0 -0
  172. package/app/dist/assets/{WaveformVisualizer-C1SzIkiu.js → WaveformVisualizer-CyOfIcDU.js} +1 -1
  173. package/app/dist/assets/WaveformVisualizer-CyOfIcDU.js.br +0 -0
  174. package/app/dist/assets/WaveformVisualizer-CyOfIcDU.js.gz +0 -0
  175. package/app/dist/assets/{absolute-file-path-CbI5cppS.js → absolute-file-path-BxWHDkiV.js} +1 -1
  176. package/app/dist/assets/{app-fixed-tab-navigation-Cv4Tj7xZ.js → app-fixed-tab-navigation-nG5duhr6.js} +1 -1
  177. package/app/dist/assets/app-fixed-tab-navigation-nG5duhr6.js.br +0 -0
  178. package/app/dist/assets/app-fixed-tab-navigation-nG5duhr6.js.gz +0 -0
  179. package/app/dist/assets/{audio-input-device-preference-D8tr0bqw.js → audio-input-device-preference-Civxk2e_.js} +1 -1
  180. package/app/dist/assets/audio-input-device-preference-Civxk2e_.js.br +0 -0
  181. package/app/dist/assets/audio-input-device-preference-Civxk2e_.js.gz +0 -0
  182. package/app/dist/assets/{bottom-anchored-scroll-body-VYrnz8Hl.js → bottom-anchored-scroll-body-izL_2xQo.js} +1 -1
  183. package/app/dist/assets/bottom-anchored-scroll-body-izL_2xQo.js.br +0 -0
  184. package/app/dist/assets/bottom-anchored-scroll-body-izL_2xQo.js.gz +0 -0
  185. package/app/dist/assets/{browser-url-jhAVtSw2.js → browser-url-DQsPFWqd.js} +1 -1
  186. package/app/dist/assets/browser-url-DQsPFWqd.js.br +0 -0
  187. package/app/dist/assets/browser-url-DQsPFWqd.js.gz +0 -0
  188. package/app/dist/assets/{checkbox-qaQbU8-H.js → checkbox-Dxs9oAMl.js} +1 -1
  189. package/app/dist/assets/checkbox-Dxs9oAMl.js.br +0 -0
  190. package/app/dist/assets/checkbox-Dxs9oAMl.js.gz +0 -0
  191. package/app/dist/assets/{code-loading-skeletons-pfQDO26Y.js → code-loading-skeletons-CkiXPS0M.js} +1 -1
  192. package/app/dist/assets/code-loading-skeletons-CkiXPS0M.js.br +0 -0
  193. package/app/dist/assets/code-loading-skeletons-CkiXPS0M.js.gz +0 -0
  194. package/app/dist/assets/{code-rendering-CuFk1qJ1.js → code-rendering-DjLdb6cB.js} +1 -1
  195. package/app/dist/assets/{code-theme-registration-wCS4GRn4.js → code-theme-registration-DWaGQiqG.js} +1 -1
  196. package/app/dist/assets/{detail-card-C3OH86kJ.js → detail-card-BFm1NEQz.js} +1 -1
  197. package/app/dist/assets/detail-card-BFm1NEQz.js.br +0 -0
  198. package/app/dist/assets/detail-card-BFm1NEQz.js.gz +0 -0
  199. package/app/dist/assets/{diff-stats-tally-DkIHmiEl.js → diff-stats-tally-DQHS3tHN.js} +1 -1
  200. package/app/dist/assets/diff-stats-tally-DQHS3tHN.js.br +0 -0
  201. package/app/dist/assets/diff-stats-tally-DQHS3tHN.js.gz +0 -0
  202. package/app/dist/assets/{dist-CWXlD45B.js → dist-DCULoGTS.js} +1 -1
  203. package/app/dist/assets/dist-DCULoGTS.js.br +0 -0
  204. package/app/dist/assets/dist-DCULoGTS.js.gz +0 -0
  205. package/app/dist/assets/{environment-mutations-BrA6u8Ev.js → environment-mutations-Zes88JN-.js} +1 -1
  206. package/app/dist/assets/environment-mutations-Zes88JN-.js.br +0 -0
  207. package/app/dist/assets/environment-mutations-Zes88JN-.js.gz +0 -0
  208. package/app/dist/assets/{environment-workspace-display-0oqBMXMB.js → environment-workspace-display-Blt7U9Mn.js} +3 -3
  209. package/app/dist/assets/environment-workspace-display-Blt7U9Mn.js.br +0 -0
  210. package/app/dist/assets/environment-workspace-display-Blt7U9Mn.js.gz +0 -0
  211. package/app/dist/assets/{event-code-block-BfPSBXNn.js → event-code-block-QXnzoFqm.js} +1 -1
  212. package/app/dist/assets/event-code-block-QXnzoFqm.js.br +0 -0
  213. package/app/dist/assets/event-code-block-QXnzoFqm.js.gz +0 -0
  214. package/app/dist/assets/{expandable-text-01SvfXRm.js → expandable-text-DkUA9RQT.js} +1 -1
  215. package/app/dist/assets/expandable-text-DkUA9RQT.js.br +0 -0
  216. package/app/dist/assets/expandable-text-DkUA9RQT.js.gz +0 -0
  217. package/app/dist/assets/{file-opener-preference-C5_P-Zfr.js → file-opener-preference-CXZHmESv.js} +1 -1
  218. package/app/dist/assets/{file-path-link-Ddg7Fzor.js → file-path-link-D7DFjBWZ.js} +1 -1
  219. package/app/dist/assets/file-path-link-D7DFjBWZ.js.br +0 -0
  220. package/app/dist/assets/file-path-link-D7DFjBWZ.js.gz +0 -0
  221. package/app/dist/assets/{host-mutations-CAtir6jv.js → host-mutations-Fl0RjER0.js} +1 -1
  222. package/app/dist/assets/host-mutations-Fl0RjER0.js.br +0 -0
  223. package/app/dist/assets/host-mutations-Fl0RjER0.js.gz +0 -0
  224. package/app/dist/assets/{icon-extended-D2fR2GTF.js → icon-extended-C0LTNXfN.js} +1 -1
  225. package/app/dist/assets/icon-extended-C0LTNXfN.js.br +0 -0
  226. package/app/dist/assets/icon-extended-C0LTNXfN.js.gz +0 -0
  227. package/app/dist/assets/{image-lightbox-Dhmri6WK.js → image-lightbox-DhNslR-8.js} +1 -1
  228. package/app/dist/assets/image-lightbox-DhNslR-8.js.br +0 -0
  229. package/app/dist/assets/image-lightbox-DhNslR-8.js.gz +0 -0
  230. package/app/dist/assets/index-C2K528W0.css +2 -0
  231. package/app/dist/assets/index-C2K528W0.css.br +0 -0
  232. package/app/dist/assets/index-C2K528W0.css.gz +0 -0
  233. package/app/dist/assets/{index-CfvM6UcU.js → index-DCps_qBD.js} +8 -8
  234. package/app/dist/assets/index-DCps_qBD.js.br +0 -0
  235. package/app/dist/assets/index-DCps_qBD.js.gz +0 -0
  236. package/app/dist/assets/{inline-rename-editor-Bg8SXoZ3.js → inline-rename-editor-nrH2d_Gy.js} +1 -1
  237. package/app/dist/assets/inline-rename-editor-nrH2d_Gy.js.br +0 -0
  238. package/app/dist/assets/inline-rename-editor-nrH2d_Gy.js.gz +0 -0
  239. package/app/dist/assets/{launcherRow-CqPaUYWn.js → launcherRow-CVYGyeOl.js} +1 -1
  240. package/app/dist/assets/launcherRow-CVYGyeOl.js.br +0 -0
  241. package/app/dist/assets/launcherRow-CVYGyeOl.js.gz +0 -0
  242. package/app/dist/assets/{localhost-link-rewrite-description-DP-bXSL8.js → localhost-link-rewrite-description-C0FphFZq.js} +1 -1
  243. package/app/dist/assets/localhost-link-rewrite-description-C0FphFZq.js.br +0 -0
  244. package/app/dist/assets/localhost-link-rewrite-description-C0FphFZq.js.gz +0 -0
  245. package/app/dist/assets/{machine-provider-queries-CoghZyj9.js → machine-provider-queries-BTz8Sz3J.js} +1 -1
  246. package/app/dist/assets/{machine-server-access-Drk0mdHH.js → machine-server-access-CGfd5e1r.js} +1 -1
  247. package/app/dist/assets/{markdown-file-image-routing-BJjI1Te3.js → markdown-file-image-routing-BhGjphhz.js} +1 -1
  248. package/app/dist/assets/{markdown-html-BU8qsXmq.js → markdown-html-CLi3FhDR.js} +1 -1
  249. package/app/dist/assets/markdown-html-CLi3FhDR.js.br +0 -0
  250. package/app/dist/assets/markdown-html-CLi3FhDR.js.gz +0 -0
  251. package/app/dist/assets/{markdown-local-file-link-D-MSnVWD.js → markdown-local-file-link-BROpdQPF.js} +1 -1
  252. package/app/dist/assets/markdown-local-file-link-BROpdQPF.js.br +0 -0
  253. package/app/dist/assets/markdown-local-file-link-BROpdQPF.js.gz +0 -0
  254. package/app/dist/assets/{markdown-preview-BLL1QuNp.js → markdown-preview-CGXXNhJo.js} +3 -3
  255. package/app/dist/assets/markdown-preview-CGXXNhJo.js.br +0 -0
  256. package/app/dist/assets/markdown-preview-CGXXNhJo.js.gz +0 -0
  257. package/app/dist/assets/{markdown-prompt-mentions-B5LVmCbO.js → markdown-prompt-mentions-CPWKCtMa.js} +1 -1
  258. package/app/dist/assets/markdown-prompt-mentions-CPWKCtMa.js.br +0 -0
  259. package/app/dist/assets/markdown-prompt-mentions-CPWKCtMa.js.gz +0 -0
  260. package/app/dist/assets/{model-load-error-message-Dmp1hUNg.js → model-load-error-message-CH_k4E7q.js} +1 -1
  261. package/app/dist/assets/model-load-error-message-CH_k4E7q.js.br +0 -0
  262. package/app/dist/assets/model-load-error-message-CH_k4E7q.js.gz +0 -0
  263. package/app/dist/assets/onboarding-telemetry-BXIyQ5F4.js +1 -0
  264. package/app/dist/assets/{open-in-editor-button-D0wnpT6x.js → open-in-editor-button-tA10Nkqn.js} +1 -1
  265. package/app/dist/assets/open-in-editor-button-tA10Nkqn.js.br +0 -0
  266. package/app/dist/assets/open-in-editor-button-tA10Nkqn.js.gz +0 -0
  267. package/app/dist/assets/{page-shell-CgSxnF9m.js → page-shell-CNCVT3Uj.js} +1 -1
  268. package/app/dist/assets/page-shell-CNCVT3Uj.js.br +0 -0
  269. package/app/dist/assets/page-shell-CNCVT3Uj.js.gz +0 -0
  270. package/app/dist/assets/{pierre-worker-pool-CHGWu76e.js → pierre-worker-pool-pXJFsMd7.js} +1 -1
  271. package/app/dist/assets/pierre-worker-pool-pXJFsMd7.js.br +0 -0
  272. package/app/dist/assets/pierre-worker-pool-pXJFsMd7.js.gz +0 -0
  273. package/app/dist/assets/{plugin-detail-navigation-DuR8_JCx.js → plugin-detail-navigation-SAqiVR3K.js} +1 -1
  274. package/app/dist/assets/plugin-detail-navigation-SAqiVR3K.js.br +0 -0
  275. package/app/dist/assets/plugin-detail-navigation-SAqiVR3K.js.gz +0 -0
  276. package/app/dist/assets/{plugin-frontend-D5ijLuKC.js → plugin-frontend-DoWZV45B.js} +3 -3
  277. package/app/dist/assets/plugin-frontend-DoWZV45B.js.br +0 -0
  278. package/app/dist/assets/plugin-frontend-DoWZV45B.js.gz +0 -0
  279. package/app/dist/assets/{plugin-ui-Dpa8hcuk.js → plugin-ui-Cu8MrXLJ.js} +1 -1
  280. package/app/dist/assets/plugin-ui-Cu8MrXLJ.js.br +0 -0
  281. package/app/dist/assets/plugin-ui-Cu8MrXLJ.js.gz +0 -0
  282. package/app/dist/assets/{project-default-execution-options-query-DfOIRKKL.js → project-default-execution-options-query-gaQEWNK0.js} +1 -1
  283. package/app/dist/assets/{queued-editor-typeahead-layout-Czaq8Cl9.js → queued-editor-typeahead-layout-DTUSPVuA.js} +1 -1
  284. package/app/dist/assets/queued-editor-typeahead-layout-DTUSPVuA.js.br +0 -0
  285. package/app/dist/assets/queued-editor-typeahead-layout-DTUSPVuA.js.gz +0 -0
  286. package/app/dist/assets/{queued-messages-layout-B5xwiued.js → queued-messages-layout-Bj1foecI.js} +1 -1
  287. package/app/dist/assets/queued-messages-layout-Bj1foecI.js.br +0 -0
  288. package/app/dist/assets/queued-messages-layout-Bj1foecI.js.gz +0 -0
  289. package/app/dist/assets/{resource-list-BKpxiO2e.js → resource-list-DLZLjUCf.js} +1 -1
  290. package/app/dist/assets/resource-list-DLZLjUCf.js.br +0 -0
  291. package/app/dist/assets/resource-list-DLZLjUCf.js.gz +0 -0
  292. package/app/dist/assets/root-compose-create-preference-Bv_dFEsH.js +1 -0
  293. package/app/dist/assets/{save-file-CNFl2iiR.js → save-file-B8sl9wgP.js} +1 -1
  294. package/app/dist/assets/{settings-nav-C9-jh_HN.js → settings-nav-D5tWYG52.js} +1 -1
  295. package/app/dist/assets/settings-nav-D5tWYG52.js.br +0 -0
  296. package/app/dist/assets/settings-nav-D5tWYG52.js.gz +0 -0
  297. package/app/dist/assets/{settings-sections-BMr_XU5l.js → settings-sections-Dfo35J2q.js} +1 -1
  298. package/app/dist/assets/settings-sections-Dfo35J2q.js.br +0 -0
  299. package/app/dist/assets/settings-sections-Dfo35J2q.js.gz +0 -0
  300. package/app/dist/assets/{shortcut-pill-_XSUZHxZ.js → shortcut-pill-BMlNncTw.js} +1 -1
  301. package/app/dist/assets/{sidebarTouchSensor-DG_A1RmT.js → sidebarTouchSensor-Da_E8eSx.js} +1 -1
  302. package/app/dist/assets/sidebarTouchSensor-Da_E8eSx.js.br +0 -0
  303. package/app/dist/assets/sidebarTouchSensor-Da_E8eSx.js.gz +0 -0
  304. package/app/dist/assets/{switch-BjJ8825r.js → switch-BRYzbFH-.js} +1 -1
  305. package/app/dist/assets/switch-BRYzbFH-.js.br +0 -0
  306. package/app/dist/assets/switch-BRYzbFH-.js.gz +0 -0
  307. package/app/dist/assets/{textarea-DY_k-BJR.js → textarea-DpRLVuDl.js} +1 -1
  308. package/app/dist/assets/{thread-event-parser-ma5CGP66.js → thread-event-parser-BrLyjs4v.js} +1 -1
  309. package/app/dist/assets/thread-event-parser-BrLyjs4v.js.br +0 -0
  310. package/app/dist/assets/thread-event-parser-BrLyjs4v.js.gz +0 -0
  311. package/app/dist/assets/{thread-panel-queries-BXeOzk_6.js → thread-panel-queries-s8vzntf7.js} +1 -1
  312. package/app/dist/assets/thread-panel-queries-s8vzntf7.js.br +0 -0
  313. package/app/dist/assets/thread-panel-queries-s8vzntf7.js.gz +0 -0
  314. package/app/dist/assets/{thread-runtime-mutations-DmKkyel0.js → thread-runtime-mutations-BOdkZ-H-.js} +1 -1
  315. package/app/dist/assets/thread-runtime-mutations-BOdkZ-H-.js.br +0 -0
  316. package/app/dist/assets/thread-runtime-mutations-BOdkZ-H-.js.gz +0 -0
  317. package/app/dist/assets/{thread-terminal-queries-AFVZ5K6p.js → thread-terminal-queries-Blou76c_.js} +1 -1
  318. package/app/dist/assets/thread-terminal-queries-Blou76c_.js.br +0 -0
  319. package/app/dist/assets/thread-terminal-queries-Blou76c_.js.gz +0 -0
  320. package/app/dist/assets/{threadRecentItems-DXsdcpBk.js → threadRecentItems-BiCe3SkL.js} +1 -1
  321. package/app/dist/assets/threadRecentItems-BiCe3SkL.js.br +0 -0
  322. package/app/dist/assets/threadRecentItems-BiCe3SkL.js.gz +0 -0
  323. package/app/dist/assets/{threadWorkspaceOpenPath-DwKd-s_5.js → threadWorkspaceOpenPath-C9eC_XGN.js} +1 -1
  324. package/app/dist/assets/threadWorkspaceOpenPath-C9eC_XGN.js.br +0 -0
  325. package/app/dist/assets/threadWorkspaceOpenPath-C9eC_XGN.js.gz +0 -0
  326. package/app/dist/assets/{title-bar-scroll-fade-Dw_BPLyx.js → title-bar-scroll-fade-OrK4M84v.js} +1 -1
  327. package/app/dist/assets/title-bar-scroll-fade-OrK4M84v.js.br +0 -0
  328. package/app/dist/assets/title-bar-scroll-fade-OrK4M84v.js.gz +0 -0
  329. package/app/dist/assets/{truncate-start-CGyRoGtG.js → truncate-start-Ck1IPV62.js} +1 -1
  330. package/app/dist/assets/{use-hover-popover-DzrAfLzd.js → use-hover-popover-uokpMJ80.js} +1 -1
  331. package/app/dist/assets/use-hover-popover-uokpMJ80.js.br +0 -0
  332. package/app/dist/assets/use-hover-popover-uokpMJ80.js.gz +0 -0
  333. package/app/dist/assets/{useElementWidth-Kv5FX-9C.js → useElementWidth-EbzKQ0bg.js} +1 -1
  334. package/app/dist/assets/useElementWidth-EbzKQ0bg.js.br +0 -0
  335. package/app/dist/assets/useElementWidth-EbzKQ0bg.js.gz +0 -0
  336. package/app/dist/assets/{useLocalOpenTargets-B7rqz64L.js → useLocalOpenTargets-CtvcdlZg.js} +1 -1
  337. package/app/dist/assets/useLocalOpenTargets-CtvcdlZg.js.br +0 -0
  338. package/app/dist/assets/useLocalOpenTargets-CtvcdlZg.js.gz +0 -0
  339. package/app/dist/assets/{usePanelResizeSnap-Dizp45Ab.js → usePanelResizeSnap-CuwA4rg3.js} +1 -1
  340. package/app/dist/assets/usePanelResizeSnap-CuwA4rg3.js.br +0 -0
  341. package/app/dist/assets/usePanelResizeSnap-CuwA4rg3.js.gz +0 -0
  342. package/app/dist/assets/{usePanelTerminals-ByzphxXd.js → usePanelTerminals-BZhTVWNX.js} +1 -1
  343. package/app/dist/assets/usePanelTerminals-BZhTVWNX.js.br +0 -0
  344. package/app/dist/assets/usePanelTerminals-BZhTVWNX.js.gz +0 -0
  345. package/app/dist/assets/{usePathSuggestions-Bd5UhdCh.js → usePathSuggestions-DZ1XPM_t.js} +1 -1
  346. package/app/dist/assets/usePathSuggestions-DZ1XPM_t.js.br +0 -0
  347. package/app/dist/assets/usePathSuggestions-DZ1XPM_t.js.gz +0 -0
  348. package/app/dist/assets/{useResolvedLiveFileTarget-x5Gd-Gzx.js → useResolvedLiveFileTarget-DlZUgf7A.js} +1 -1
  349. package/app/dist/assets/useResolvedLiveFileTarget-DlZUgf7A.js.br +0 -0
  350. package/app/dist/assets/useResolvedLiveFileTarget-DlZUgf7A.js.gz +0 -0
  351. package/app/dist/assets/{useThreadTerminalController-CUnfO0Da.js → useThreadTerminalController-D4Cr2aY0.js} +1 -1
  352. package/app/dist/assets/useThreadTerminalController-D4Cr2aY0.js.br +0 -0
  353. package/app/dist/assets/useThreadTerminalController-D4Cr2aY0.js.gz +0 -0
  354. package/app/dist/assets/{workspace-change-summary-CLNpSq_E.js → workspace-change-summary-C1EKX0Np.js} +1 -1
  355. package/app/dist/assets/workspace-change-summary-C1EKX0Np.js.br +0 -0
  356. package/app/dist/assets/workspace-change-summary-C1EKX0Np.js.gz +0 -0
  357. package/app/dist/assets/{workspace-checkout-display-Aad1Wxi4.js → workspace-checkout-display-DRAc3j4u.js} +4 -4
  358. package/app/dist/assets/workspace-checkout-display-DRAc3j4u.js.br +0 -0
  359. package/app/dist/assets/workspace-checkout-display-DRAc3j4u.js.gz +0 -0
  360. package/app/dist/index.html +17 -17
  361. package/app/dist/index.html.br +0 -0
  362. package/app/dist/index.html.gz +0 -0
  363. package/dist/bb-app.js +1 -1
  364. package/dist/index.d.ts +64 -64
  365. package/dist/index.js +39 -34
  366. package/host-daemon/dist/bb +2 -2
  367. package/host-daemon/dist/daemon-bundle.mjs +9 -9
  368. package/host-daemon/dist/moonlet +2 -2
  369. package/host-daemon/dist/moonlet-chunks/{browser-LWDG5PCA.js → browser-3YADF5CZ.js} +1 -1
  370. package/host-daemon/dist/moonlet-chunks/{chunk-4BNITW7L.js → chunk-CJVCV7LA.js} +1 -1
  371. package/host-daemon/dist/moonlet-chunks/{chunk-5AOUW4I4.js → chunk-DYWN65E6.js} +1 -1
  372. package/host-daemon/dist/moonlet-chunks/{chunk-GUMXNH56.js → chunk-GJNT53PW.js} +1 -1
  373. package/host-daemon/dist/moonlet-chunks/chunk-MNJOOMMT.js +2 -0
  374. package/host-daemon/dist/moonlet-chunks/{chunk-2QTAZF4P.js → chunk-OZFHGPH4.js} +2 -2
  375. package/host-daemon/dist/moonlet-chunks/{chunk-OW2VWWPF.js → chunk-UASCWFYV.js} +1 -1
  376. package/host-daemon/dist/moonlet-chunks/{chunk-3GDA5QRC.js → chunk-UBCGVKZ2.js} +1 -1
  377. package/host-daemon/dist/moonlet-chunks/{chunk-ZJ3M74CR.js → chunk-UZIJUXRX.js} +1 -1
  378. package/host-daemon/dist/moonlet-chunks/{chunk-I2TDLRZL.js → chunk-VRIDG567.js} +80 -80
  379. package/host-daemon/dist/moonlet-chunks/{chunk-LQ55GYT2.js → chunk-Z7UFAOBI.js} +1 -1
  380. package/host-daemon/dist/moonlet-chunks/{chunk-IRGDLZXQ.js → chunk-ZY4JRPPT.js} +1 -1
  381. package/host-daemon/dist/moonlet-chunks/{client-LVL2RUQ5.js → client-HJ57QVLD.js} +1 -1
  382. package/host-daemon/dist/moonlet-chunks/{commander-errors-RQKAT5HQ.js → commander-errors-VI7J6RNT.js} +1 -1
  383. package/host-daemon/dist/moonlet-chunks/{context-env-74PECPQU.js → context-env-C4YEBBVX.js} +1 -1
  384. package/host-daemon/dist/moonlet-chunks/{context-hints-GQMM7IUB.js → context-hints-FZ224BCX.js} +1 -1
  385. package/host-daemon/dist/moonlet-chunks/{diagnostics-GZNLDKFH.js → diagnostics-OU2KW3CN.js} +1 -1
  386. package/host-daemon/dist/moonlet-chunks/{environment-2OF5OYK6.js → environment-45XH2PJT.js} +1 -1
  387. package/host-daemon/dist/moonlet-chunks/{file-ICBUEP7H.js → file-OHC2H5AH.js} +1 -1
  388. package/host-daemon/dist/moonlet-chunks/{guide-I3LO3KWD.js → guide-T2HEZTCZ.js} +1 -1
  389. package/host-daemon/dist/moonlet-chunks/{machine-ZH4VN36Y.js → machine-7DB7FE7G.js} +1 -1
  390. package/host-daemon/dist/moonlet-chunks/{marketplace-72G2CIZT.js → marketplace-GSP2IPGS.js} +1 -1
  391. package/host-daemon/dist/moonlet-chunks/{permissions-ZKMW6XVA.js → permissions-SOZPETLR.js} +1 -1
  392. package/host-daemon/dist/moonlet-chunks/{plugin-J33MYYP6.js → plugin-672NQWPG.js} +26 -26
  393. package/host-daemon/dist/moonlet-chunks/{plugin-cli-proxy-KK4YO745.js → plugin-cli-proxy-YK6LMDCS.js} +1 -1
  394. package/host-daemon/dist/moonlet-chunks/{project-CAOBT6PT.js → project-KMNJH6RG.js} +1 -1
  395. package/host-daemon/dist/moonlet-chunks/{prompt-history-3CTG22DW.js → prompt-history-H3Y2IHDY.js} +1 -1
  396. package/host-daemon/dist/moonlet-chunks/{provider-T7SNTFH5.js → provider-EKKSYF2D.js} +1 -1
  397. package/host-daemon/dist/moonlet-chunks/{schedule-2G2I4DCW.js → schedule-KVSISSIR.js} +1 -1
  398. package/host-daemon/dist/moonlet-chunks/{server-R3LHIEJF.js → server-53I6IGAP.js} +2 -2
  399. package/host-daemon/dist/moonlet-chunks/{settings-WR7UCFPE.js → settings-MKGSGNIO.js} +1 -1
  400. package/host-daemon/dist/moonlet-chunks/{skill-GHMBJF4G.js → skill-DXINIPQ3.js} +1 -1
  401. package/host-daemon/dist/moonlet-chunks/{status-ES5SEMUE.js → status-BSMUYEAO.js} +1 -1
  402. package/host-daemon/dist/moonlet-chunks/{terminal-45KOGD2U.js → terminal-VKBGZFLN.js} +1 -1
  403. package/host-daemon/dist/moonlet-chunks/{theme-DEIR5VHK.js → theme-3YCCZBGC.js} +1 -1
  404. package/host-daemon/dist/moonlet-chunks/{thread-NNUIM6R7.js → thread-PFBPLD4F.js} +1 -1
  405. package/host-daemon/dist/moonlet-chunks/{updates-23J52P44.js → updates-OO7GE7UB.js} +1 -1
  406. package/host-daemon/dist/moonlet-chunks/{voice-CSQR656B.js → voice-ZJOSAJW7.js} +1 -1
  407. package/package.json +3 -3
  408. package/server/dist/builtin-plugins/account-pool/dist/app.js +9 -9
  409. package/server/dist/builtin-plugins/account-pool/skills/account-pool/SKILL.md +1 -1
  410. package/server/dist/builtin-plugins/agent-annotations/dist/app.js +2 -2
  411. package/server/dist/builtin-plugins/agent-board/dist/THIRD_PARTY_NOTICES.md +3 -3
  412. package/server/dist/builtin-plugins/agent-board/dist/app.js +6 -6
  413. package/server/dist/builtin-plugins/agent-board/dist/server.js +1 -1
  414. package/server/dist/builtin-plugins/ask-user-question/dist/app.js +6 -6
  415. package/server/dist/builtin-plugins/automations/dist/app.js +1 -1
  416. package/server/dist/builtin-plugins/automations/skills/automations/SKILL.md +1 -1
  417. package/server/dist/builtin-plugins/bb-account/dist/app.js +1 -1
  418. package/server/dist/builtin-plugins/bb-account/skills/bb-account/SKILL.md +1 -1
  419. package/server/dist/builtin-plugins/bb-ai/dist/server.js +2 -2
  420. package/server/dist/builtin-plugins/bb-ai/skills/bb-cloud-ai/SKILL.md +1 -1
  421. package/server/dist/builtin-plugins/bb-guide/dist/app.js +1 -1
  422. package/server/dist/builtin-plugins/bb-guide/dist/server.js +2 -2
  423. package/server/dist/builtin-plugins/bb-guide/package.json +2 -2
  424. package/server/dist/builtin-plugins/bb-guide/skills/bb-cli/SKILL.md +3 -3
  425. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/SKILL.md +4 -4
  426. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-cli-agents.md +6 -6
  427. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-events.md +2 -2
  428. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-foundation.md +1 -1
  429. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-sdk.md +1 -1
  430. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/distribution.md +2 -2
  431. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/frontend-components.md +4 -4
  432. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/frontend-core-slots.md +15 -15
  433. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/frontend-hooks-and-ui.md +9 -9
  434. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/providers.md +3 -3
  435. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/quickstart.md +10 -10
  436. package/server/dist/builtin-plugins/bb-guide/skills/skill-creator/SKILL.md +2 -2
  437. package/server/dist/builtin-plugins/bb-guide/skills/submit-a-plugin/SKILL.md +3 -3
  438. package/server/dist/builtin-plugins/bb-guide/skills/submit-a-plugin/references/marketplace-entry.md +8 -8
  439. package/server/dist/builtin-plugins/bb-guide/skills/submit-a-plugin/references/plugin-release.md +1 -1
  440. package/server/dist/builtin-plugins/browser-automation/dist/app.js +1 -1
  441. package/server/dist/builtin-plugins/browser-automation/dist/server.js +2 -2
  442. package/server/dist/builtin-plugins/browser-automation/skills/browser-automation/SKILL.md +3 -3
  443. package/server/dist/builtin-plugins/composer/dist/app.js +4 -4
  444. package/server/dist/builtin-plugins/concurrency-limit/dist/app.js +1 -1
  445. package/server/dist/builtin-plugins/concurrency-limit/skills/concurrency-limit/SKILL.md +1 -1
  446. package/server/dist/builtin-plugins/connect/dist/app.js +2 -2
  447. package/server/dist/builtin-plugins/connect/skills/share-server-links/SKILL.md +1 -1
  448. package/server/dist/builtin-plugins/connect-next/dist/app.js +2 -2
  449. package/server/dist/builtin-plugins/connect-next/dist/server.js +1 -1
  450. package/server/dist/builtin-plugins/connect-next/skills/connect-next/SKILL.md +1 -1
  451. package/server/dist/builtin-plugins/custom-instructions/dist/app.js +1 -1
  452. package/server/dist/builtin-plugins/docs/dist/app.js +3 -3
  453. package/server/dist/builtin-plugins/docs/skills/docs/SKILL.md +1 -1
  454. package/server/dist/builtin-plugins/drafts/dist/app.js +1 -1
  455. package/server/dist/builtin-plugins/environment-git-worktree/dist/app.js +1 -1
  456. package/server/dist/builtin-plugins/environment-modal-sandbox/dist/app.js +1 -1
  457. package/server/dist/builtin-plugins/environment-modal-sandbox/dist/server.js +1 -1
  458. package/server/dist/builtin-plugins/environment-modal-sandbox/skills/modal-sandboxes/SKILL.md +5 -5
  459. package/server/dist/builtin-plugins/environment-project-checkout/dist/app.js +1 -1
  460. package/server/dist/builtin-plugins/github/dist/app.js +2 -2
  461. package/server/dist/builtin-plugins/github/dist/server.js +7 -7
  462. package/server/dist/builtin-plugins/github/package.json +2 -2
  463. package/server/dist/builtin-plugins/github/skills/github-change/SKILL.md +2 -2
  464. package/server/dist/builtin-plugins/github/skills/github-change/references/merging.md +8 -8
  465. package/server/dist/builtin-plugins/github-pr-status/dist/app.js +6 -6
  466. package/server/dist/builtin-plugins/inline-vis/dist/app.js +2 -2
  467. package/server/dist/builtin-plugins/inline-vis/skills/inline-vis/SKILL.md +2 -2
  468. package/server/dist/builtin-plugins/keep-awake/dist/app.js +1 -1
  469. package/server/dist/builtin-plugins/keep-awake/dist/server.js +1 -1
  470. package/server/dist/builtin-plugins/library/dist/app.js +2 -2
  471. package/server/dist/builtin-plugins/mail/skills/mail/SKILL.md +1 -1
  472. package/server/dist/builtin-plugins/marketplace.json +10 -10
  473. package/server/dist/builtin-plugins/mcp/dist/server.js +8 -8
  474. package/server/dist/builtin-plugins/mcp/skills/mcp/SKILL.md +1 -1
  475. package/server/dist/builtin-plugins/memory/dist/app.js +1 -1
  476. package/server/dist/builtin-plugins/memory/dist/server.js +4 -4
  477. package/server/dist/builtin-plugins/memory/skills/memory/SKILL.md +5 -5
  478. package/server/dist/builtin-plugins/monaco-editor/dist/app.js +1 -1
  479. package/server/dist/builtin-plugins/navigation/dist/app.js +1 -1
  480. package/server/dist/builtin-plugins/notify-feed/dist/app.js +3 -3
  481. package/server/dist/builtin-plugins/notify-feed/dist/server.js +2 -2
  482. package/server/dist/builtin-plugins/orbit/dist/app.js +2 -2
  483. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/docs/handoff-to-new-conversation.md +1 -1
  484. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/manifest.json +4 -4
  485. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/revision +1 -1
  486. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/source.json +1 -1
  487. package/server/dist/builtin-plugins/orbit/dist/assets/plugins/moonlet/back/CLAUDE.md +5 -5
  488. package/server/dist/builtin-plugins/orbit/dist/assets/plugins/moonlet/front/CLAUDE.md +15 -15
  489. package/server/dist/builtin-plugins/orbit/dist/host.js +49 -49
  490. package/server/dist/builtin-plugins/orbit/dist/host.meta.json +1 -1
  491. package/server/dist/builtin-plugins/orbit/dist/server.js +148 -148
  492. package/server/dist/builtin-plugins/pdf-preview/dist/app.js +1 -1
  493. package/server/dist/builtin-plugins/plugin-api-docs/dist/app.js +2 -2
  494. package/server/dist/builtin-plugins/plugin-api-tester/dist/app.js +1 -1
  495. package/server/dist/builtin-plugins/prompt-library/dist/app.js +2 -2
  496. package/server/dist/builtin-plugins/prompt-library/skills/prompt-library/SKILL.md +1 -1
  497. package/server/dist/builtin-plugins/provider-acp/dist/app.js +1 -1
  498. package/server/dist/builtin-plugins/provider-acp/dist/host.js +5 -5
  499. package/server/dist/builtin-plugins/provider-acp/dist/host.meta.json +1 -1
  500. package/server/dist/builtin-plugins/provider-acp/dist/server.js +97 -97
  501. package/server/dist/builtin-plugins/provider-acp/skills/acp-provider/SKILL.md +9 -9
  502. package/server/dist/builtin-plugins/provider-claude-code/dist/app.js +1 -1
  503. package/server/dist/builtin-plugins/provider-claude-code/dist/host.js +3 -3
  504. package/server/dist/builtin-plugins/provider-claude-code/dist/host.meta.json +1 -1
  505. package/server/dist/builtin-plugins/provider-claude-code/dist/server.js +1 -1
  506. package/server/dist/builtin-plugins/provider-codex/dist/app.js +2 -2
  507. package/server/dist/builtin-plugins/provider-codex/dist/host.js +45 -45
  508. package/server/dist/builtin-plugins/provider-codex/dist/host.meta.json +1 -1
  509. package/server/dist/builtin-plugins/provider-codex/dist/server.js +1 -1
  510. package/server/dist/builtin-plugins/provider-pi/dist/app.js +1 -1
  511. package/server/dist/builtin-plugins/provider-pi/skills/pi-provider/SKILL.md +1 -1
  512. package/server/dist/builtin-plugins/provider-retry/dist/app.js +1 -1
  513. package/server/dist/builtin-plugins/provider-retry/skills/provider-retry/SKILL.md +1 -1
  514. package/server/dist/builtin-plugins/provider-usage/dist/app.js +12 -12
  515. package/server/dist/builtin-plugins/push-notifications/dist/app.js +2 -2
  516. package/server/dist/builtin-plugins/push-notifications/skills/push-notifications/SKILL.md +1 -1
  517. package/server/dist/builtin-plugins/scheduled-send/dist/app.js +1 -1
  518. package/server/dist/builtin-plugins/secrets/dist/app.js +1 -1
  519. package/server/dist/builtin-plugins/side-chat/dist/app.js +1 -1
  520. package/server/dist/builtin-plugins/storage-retention/dist/app.js +1 -1
  521. package/server/dist/builtin-plugins/storage-retention/dist/server.js +2 -2
  522. package/server/dist/builtin-plugins/storage-retention/skills/storage-retention/SKILL.md +5 -5
  523. package/server/dist/builtin-plugins/tasks/dist/app.js +4 -4
  524. package/server/dist/builtin-plugins/tasks/skills/tasks/SKILL.md +1 -1
  525. package/server/dist/builtin-plugins/theme-preview/dist/app.js +2 -2
  526. package/server/dist/builtin-plugins/theme-preview/skills/bb-theme-authoring/SKILL.md +1 -1
  527. package/server/dist/builtin-plugins/thread-list/dist/app.js +2 -2
  528. package/server/dist/builtin-plugins/thread-list/dist/server.js +2 -2
  529. package/server/dist/builtin-plugins/workflows/dist/app.js +1 -1
  530. package/server/dist/builtin-plugins/workflows/dist/server.js +4 -4
  531. package/server/dist/builtin-plugins/workflows/skills/workflows/SKILL.md +4 -4
  532. package/server/dist/builtin-plugins/workflows/skills/workflows/references/authoring.md +7 -7
  533. package/server/dist/builtin-skills/bb-cli/SKILL.md +3 -3
  534. package/server/dist/builtin-skills/bb-plugin-authoring/SKILL.md +4 -4
  535. package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-cli-agents.md +6 -6
  536. package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-events.md +2 -2
  537. package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-foundation.md +1 -1
  538. package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-sdk.md +1 -1
  539. package/server/dist/builtin-skills/bb-plugin-authoring/references/distribution.md +2 -2
  540. package/server/dist/builtin-skills/bb-plugin-authoring/references/frontend-components.md +4 -4
  541. package/server/dist/builtin-skills/bb-plugin-authoring/references/frontend-core-slots.md +15 -15
  542. package/server/dist/builtin-skills/bb-plugin-authoring/references/frontend-hooks-and-ui.md +9 -9
  543. package/server/dist/builtin-skills/bb-plugin-authoring/references/providers.md +3 -3
  544. package/server/dist/builtin-skills/bb-plugin-authoring/references/quickstart.md +10 -10
  545. package/server/dist/builtin-skills/skill-creator/SKILL.md +2 -2
  546. package/server/dist/builtin-skills/submit-a-plugin/SKILL.md +3 -3
  547. package/server/dist/builtin-skills/submit-a-plugin/references/marketplace-entry.md +8 -8
  548. package/server/dist/builtin-skills/submit-a-plugin/references/plugin-release.md +1 -1
  549. package/server/dist/start-server.js +75 -70
  550. package/app/dist/assets/AddMachineDialog-BHF-GkBG.js.br +0 -0
  551. package/app/dist/assets/AddMachineDialog-BHF-GkBG.js.gz +0 -0
  552. package/app/dist/assets/AppFileExternalNavigationDispatcher-BNbJsP1g.js.br +0 -0
  553. package/app/dist/assets/AppFileExternalNavigationDispatcher-BNbJsP1g.js.gz +0 -0
  554. package/app/dist/assets/BrowserTabDeck-BlOoU-vR.js.br +0 -0
  555. package/app/dist/assets/BrowserTabDeck-BlOoU-vR.js.gz +0 -0
  556. package/app/dist/assets/CommandPaletteBody-CBbTgLrW.js.br +0 -0
  557. package/app/dist/assets/CommandPaletteBody-CBbTgLrW.js.gz +0 -0
  558. package/app/dist/assets/DiffHost-DYBSO1_c.js.br +0 -0
  559. package/app/dist/assets/DiffHost-DYBSO1_c.js.gz +0 -0
  560. package/app/dist/assets/ExperimentalFileLinkMenu-DO2lGQoK.js.br +0 -0
  561. package/app/dist/assets/ExperimentalFileLinkMenu-DO2lGQoK.js.gz +0 -0
  562. package/app/dist/assets/FilePreview-ORcgsTax.js.br +0 -0
  563. package/app/dist/assets/FilePreview-ORcgsTax.js.gz +0 -0
  564. package/app/dist/assets/GitDiffCardHeader-i4vt7tT5.js.br +0 -0
  565. package/app/dist/assets/GitDiffCardHeader-i4vt7tT5.js.gz +0 -0
  566. package/app/dist/assets/InlineMessageEditorFrame-y089xCLP.js.br +0 -0
  567. package/app/dist/assets/InlineMessageEditorFrame-y089xCLP.js.gz +0 -0
  568. package/app/dist/assets/MachineLabel-D07WUIMh.js.br +0 -0
  569. package/app/dist/assets/MachineLabel-D07WUIMh.js.gz +0 -0
  570. package/app/dist/assets/MachineRenameDialog-RyrwvNas.js.br +0 -0
  571. package/app/dist/assets/MachineRenameDialog-RyrwvNas.js.gz +0 -0
  572. package/app/dist/assets/MachineSettingsView-Bg6Op62W.js.br +0 -0
  573. package/app/dist/assets/MachineSettingsView-Bg6Op62W.js.gz +0 -0
  574. package/app/dist/assets/MicrophonePreferences-DwsTYfON.js.br +0 -0
  575. package/app/dist/assets/MicrophonePreferences-DwsTYfON.js.gz +0 -0
  576. package/app/dist/assets/ModelReasoningMenu-Dth3XXm8.js.br +0 -0
  577. package/app/dist/assets/ModelReasoningMenu-Dth3XXm8.js.gz +0 -0
  578. package/app/dist/assets/MoonletDiff-Da65ABAI.js.br +0 -0
  579. package/app/dist/assets/MoonletDiff-Da65ABAI.js.gz +0 -0
  580. package/app/dist/assets/MoonletDiffSplit-Phl7m23w.js.br +0 -0
  581. package/app/dist/assets/MoonletDiffSplit-Phl7m23w.js.gz +0 -0
  582. package/app/dist/assets/MoonletSourceCode-C5aa88dK.js.br +0 -0
  583. package/app/dist/assets/MoonletSourceCode-C5aa88dK.js.gz +0 -0
  584. package/app/dist/assets/NewTabPage-BKkv1maV.js.br +0 -0
  585. package/app/dist/assets/NewTabPage-BKkv1maV.js.gz +0 -0
  586. package/app/dist/assets/NewThreadComposer-00DY4i8k.js.br +0 -0
  587. package/app/dist/assets/NewThreadComposer-00DY4i8k.js.gz +0 -0
  588. package/app/dist/assets/OnboardingFlow-GwpuTTqu.js.br +0 -0
  589. package/app/dist/assets/OnboardingFlow-GwpuTTqu.js.gz +0 -0
  590. package/app/dist/assets/OptionPicker-Cy_W5NWS.js.br +0 -0
  591. package/app/dist/assets/OptionPicker-Cy_W5NWS.js.gz +0 -0
  592. package/app/dist/assets/PaletteShell-CRwrb4lb.js.br +0 -0
  593. package/app/dist/assets/PaletteShell-CRwrb4lb.js.gz +0 -0
  594. package/app/dist/assets/PaneMaximizeButton-CMp4cCoZ.js.br +0 -0
  595. package/app/dist/assets/PaneMaximizeButton-CMp4cCoZ.js.gz +0 -0
  596. package/app/dist/assets/PierreLineSelectionActions-BXbCJV8P.js.br +0 -0
  597. package/app/dist/assets/PierreLineSelectionActions-BXbCJV8P.js.gz +0 -0
  598. package/app/dist/assets/PluginPanelRightPanelHost-CuKRaAaL.js.br +0 -0
  599. package/app/dist/assets/PluginPanelRightPanelHost-CuKRaAaL.js.gz +0 -0
  600. package/app/dist/assets/PluginSettingsSections-DJo5h7Qh.js.br +0 -0
  601. package/app/dist/assets/PluginSettingsSections-DJo5h7Qh.js.gz +0 -0
  602. package/app/dist/assets/PluginThreadChat-BV6OMCzu.js.br +0 -0
  603. package/app/dist/assets/PluginThreadChat-BV6OMCzu.js.gz +0 -0
  604. package/app/dist/assets/ProjectDetailSettingsView-DdF6YsSg.js.br +0 -0
  605. package/app/dist/assets/ProjectDetailSettingsView-DdF6YsSg.js.gz +0 -0
  606. package/app/dist/assets/ProjectMachineSetupDialog-CtbI4XxM.js.br +0 -0
  607. package/app/dist/assets/ProjectMachineSetupDialog-CtbI4XxM.js.gz +0 -0
  608. package/app/dist/assets/ProjectsSettingsSection-BT1kXbPn.js.br +0 -0
  609. package/app/dist/assets/ProjectsSettingsSection-BT1kXbPn.js.gz +0 -0
  610. package/app/dist/assets/QueuedMessagesList-D1aAchqp.js.br +0 -0
  611. package/app/dist/assets/QueuedMessagesList-D1aAchqp.js.gz +0 -0
  612. package/app/dist/assets/RemotePathBrowser-vPIL8lVm.js.br +0 -0
  613. package/app/dist/assets/RemotePathBrowser-vPIL8lVm.js.gz +0 -0
  614. package/app/dist/assets/RootComposeView-DV6JGFlA.js.br +0 -0
  615. package/app/dist/assets/RootComposeView-DV6JGFlA.js.gz +0 -0
  616. package/app/dist/assets/SecondaryPanelLayout-BpHDgFJ_.js.br +0 -0
  617. package/app/dist/assets/SecondaryPanelLayout-BpHDgFJ_.js.gz +0 -0
  618. package/app/dist/assets/ServerMoveOverlayView-CGkGzv8t.js.br +0 -0
  619. package/app/dist/assets/ServerMoveOverlayView-CGkGzv8t.js.gz +0 -0
  620. package/app/dist/assets/SettingsSidebar-1XC0Uxwo.js.br +0 -0
  621. package/app/dist/assets/SettingsSidebar-1XC0Uxwo.js.gz +0 -0
  622. package/app/dist/assets/SettingsView-BUobmesT.js +0 -7
  623. package/app/dist/assets/SettingsView-BUobmesT.js.br +0 -0
  624. package/app/dist/assets/SettingsView-BUobmesT.js.gz +0 -0
  625. package/app/dist/assets/SidebarFooterCustomize-D7sLYPwD.js.br +0 -0
  626. package/app/dist/assets/SidebarFooterCustomize-D7sLYPwD.js.gz +0 -0
  627. package/app/dist/assets/SidebarVisibilityCustomize-DpTzFoGl.js.br +0 -0
  628. package/app/dist/assets/SidebarVisibilityCustomize-DpTzFoGl.js.gz +0 -0
  629. package/app/dist/assets/SourceCodeHost-DVEXLJK1.js.br +0 -0
  630. package/app/dist/assets/SourceCodeHost-DVEXLJK1.js.gz +0 -0
  631. package/app/dist/assets/SplitWorkspaceRoute-BfxQQdOx.js.br +0 -0
  632. package/app/dist/assets/SplitWorkspaceRoute-BfxQQdOx.js.gz +0 -0
  633. package/app/dist/assets/TerminalOutputBlock-COQNamKR.js.br +0 -0
  634. package/app/dist/assets/TerminalOutputBlock-COQNamKR.js.gz +0 -0
  635. package/app/dist/assets/ThreadActionsMenu-064Gcy7T.js.br +0 -0
  636. package/app/dist/assets/ThreadActionsMenu-064Gcy7T.js.gz +0 -0
  637. package/app/dist/assets/ThreadDetailView-CjoXzweq.js.br +0 -0
  638. package/app/dist/assets/ThreadDetailView-CjoXzweq.js.gz +0 -0
  639. package/app/dist/assets/ThreadSearchPaletteMode-CwdePsHK.js.br +0 -0
  640. package/app/dist/assets/ThreadSearchPaletteMode-CwdePsHK.js.gz +0 -0
  641. package/app/dist/assets/ThreadSecondaryPanel-CtYtgTla.js.br +0 -0
  642. package/app/dist/assets/ThreadSecondaryPanel-CtYtgTla.js.gz +0 -0
  643. package/app/dist/assets/ThreadSecondaryPanelTabContent-BNQi8b2n.js.br +0 -0
  644. package/app/dist/assets/ThreadSecondaryPanelTabContent-BNQi8b2n.js.gz +0 -0
  645. package/app/dist/assets/ThreadStatusGlyph-DxxHDn0P.js.br +0 -0
  646. package/app/dist/assets/ThreadStatusGlyph-DxxHDn0P.js.gz +0 -0
  647. package/app/dist/assets/ThreadTerminalPanel-fb5Kk0KG.js.br +0 -0
  648. package/app/dist/assets/ThreadTerminalPanel-fb5Kk0KG.js.gz +0 -0
  649. package/app/dist/assets/ThreadTerminalView-BiGdt3Fd.js.br +0 -0
  650. package/app/dist/assets/ThreadTerminalView-BiGdt3Fd.js.gz +0 -0
  651. package/app/dist/assets/ThreadTimelineNavigationContext-epkIpS1J.js.br +0 -0
  652. package/app/dist/assets/ThreadTimelineNavigationContext-epkIpS1J.js.gz +0 -0
  653. package/app/dist/assets/TimelineDetailScroll-D8gge5Y9.js.br +0 -0
  654. package/app/dist/assets/TimelineDetailScroll-D8gge5Y9.js.gz +0 -0
  655. package/app/dist/assets/TimelineFileDiffBlock-BJt7kifl.js.br +0 -0
  656. package/app/dist/assets/TimelineFileDiffBlock-BJt7kifl.js.gz +0 -0
  657. package/app/dist/assets/TimelineSelectionMenu-DrK39LAT.js.br +0 -0
  658. package/app/dist/assets/TimelineSelectionMenu-DrK39LAT.js.gz +0 -0
  659. package/app/dist/assets/ToolsView-4tUvUv2U.js.br +0 -0
  660. package/app/dist/assets/ToolsView-4tUvUv2U.js.gz +0 -0
  661. package/app/dist/assets/ToolsViewSplits-BWOxgNc1.js.br +0 -0
  662. package/app/dist/assets/ToolsViewSplits-BWOxgNc1.js.gz +0 -0
  663. package/app/dist/assets/WaveformVisualizer-C1SzIkiu.js.br +0 -0
  664. package/app/dist/assets/WaveformVisualizer-C1SzIkiu.js.gz +0 -0
  665. package/app/dist/assets/app-fixed-tab-navigation-Cv4Tj7xZ.js.br +0 -0
  666. package/app/dist/assets/app-fixed-tab-navigation-Cv4Tj7xZ.js.gz +0 -0
  667. package/app/dist/assets/audio-input-device-preference-D8tr0bqw.js.br +0 -0
  668. package/app/dist/assets/audio-input-device-preference-D8tr0bqw.js.gz +0 -0
  669. package/app/dist/assets/bottom-anchored-scroll-body-VYrnz8Hl.js.br +0 -0
  670. package/app/dist/assets/bottom-anchored-scroll-body-VYrnz8Hl.js.gz +0 -0
  671. package/app/dist/assets/browser-url-jhAVtSw2.js.br +0 -0
  672. package/app/dist/assets/browser-url-jhAVtSw2.js.gz +0 -0
  673. package/app/dist/assets/checkbox-qaQbU8-H.js.br +0 -0
  674. package/app/dist/assets/checkbox-qaQbU8-H.js.gz +0 -0
  675. package/app/dist/assets/code-loading-skeletons-pfQDO26Y.js.br +0 -0
  676. package/app/dist/assets/code-loading-skeletons-pfQDO26Y.js.gz +0 -0
  677. package/app/dist/assets/detail-card-C3OH86kJ.js.br +0 -0
  678. package/app/dist/assets/detail-card-C3OH86kJ.js.gz +0 -0
  679. package/app/dist/assets/diff-stats-tally-DkIHmiEl.js.br +0 -0
  680. package/app/dist/assets/diff-stats-tally-DkIHmiEl.js.gz +0 -0
  681. package/app/dist/assets/dist-CWXlD45B.js.br +0 -0
  682. package/app/dist/assets/dist-CWXlD45B.js.gz +0 -0
  683. package/app/dist/assets/environment-mutations-BrA6u8Ev.js.br +0 -0
  684. package/app/dist/assets/environment-mutations-BrA6u8Ev.js.gz +0 -0
  685. package/app/dist/assets/environment-workspace-display-0oqBMXMB.js.br +0 -0
  686. package/app/dist/assets/environment-workspace-display-0oqBMXMB.js.gz +0 -0
  687. package/app/dist/assets/event-code-block-BfPSBXNn.js.br +0 -0
  688. package/app/dist/assets/event-code-block-BfPSBXNn.js.gz +0 -0
  689. package/app/dist/assets/expandable-text-01SvfXRm.js.br +0 -0
  690. package/app/dist/assets/expandable-text-01SvfXRm.js.gz +0 -0
  691. package/app/dist/assets/file-path-link-Ddg7Fzor.js.br +0 -0
  692. package/app/dist/assets/file-path-link-Ddg7Fzor.js.gz +0 -0
  693. package/app/dist/assets/host-mutations-CAtir6jv.js.br +0 -0
  694. package/app/dist/assets/host-mutations-CAtir6jv.js.gz +0 -0
  695. package/app/dist/assets/icon-extended-D2fR2GTF.js.br +0 -0
  696. package/app/dist/assets/icon-extended-D2fR2GTF.js.gz +0 -0
  697. package/app/dist/assets/image-lightbox-Dhmri6WK.js.br +0 -0
  698. package/app/dist/assets/image-lightbox-Dhmri6WK.js.gz +0 -0
  699. package/app/dist/assets/index-5EQKiTkW.css +0 -2
  700. package/app/dist/assets/index-5EQKiTkW.css.br +0 -0
  701. package/app/dist/assets/index-5EQKiTkW.css.gz +0 -0
  702. package/app/dist/assets/index-CfvM6UcU.js.br +0 -0
  703. package/app/dist/assets/index-CfvM6UcU.js.gz +0 -0
  704. package/app/dist/assets/inline-rename-editor-Bg8SXoZ3.js.br +0 -0
  705. package/app/dist/assets/inline-rename-editor-Bg8SXoZ3.js.gz +0 -0
  706. package/app/dist/assets/launcherRow-CqPaUYWn.js.br +0 -0
  707. package/app/dist/assets/launcherRow-CqPaUYWn.js.gz +0 -0
  708. package/app/dist/assets/localhost-link-rewrite-description-DP-bXSL8.js.br +0 -0
  709. package/app/dist/assets/localhost-link-rewrite-description-DP-bXSL8.js.gz +0 -0
  710. package/app/dist/assets/markdown-html-BU8qsXmq.js.br +0 -0
  711. package/app/dist/assets/markdown-html-BU8qsXmq.js.gz +0 -0
  712. package/app/dist/assets/markdown-local-file-link-D-MSnVWD.js.br +0 -0
  713. package/app/dist/assets/markdown-local-file-link-D-MSnVWD.js.gz +0 -0
  714. package/app/dist/assets/markdown-preview-BLL1QuNp.js.br +0 -0
  715. package/app/dist/assets/markdown-preview-BLL1QuNp.js.gz +0 -0
  716. package/app/dist/assets/markdown-prompt-mentions-B5LVmCbO.js.br +0 -0
  717. package/app/dist/assets/markdown-prompt-mentions-B5LVmCbO.js.gz +0 -0
  718. package/app/dist/assets/model-load-error-message-Dmp1hUNg.js.br +0 -0
  719. package/app/dist/assets/model-load-error-message-Dmp1hUNg.js.gz +0 -0
  720. package/app/dist/assets/onboarding-telemetry-BSt5c7Sg.js +0 -1
  721. package/app/dist/assets/open-in-editor-button-D0wnpT6x.js.br +0 -0
  722. package/app/dist/assets/open-in-editor-button-D0wnpT6x.js.gz +0 -0
  723. package/app/dist/assets/page-shell-CgSxnF9m.js.br +0 -0
  724. package/app/dist/assets/page-shell-CgSxnF9m.js.gz +0 -0
  725. package/app/dist/assets/pierre-worker-pool-CHGWu76e.js.br +0 -0
  726. package/app/dist/assets/pierre-worker-pool-CHGWu76e.js.gz +0 -0
  727. package/app/dist/assets/plugin-detail-navigation-DuR8_JCx.js.br +0 -0
  728. package/app/dist/assets/plugin-detail-navigation-DuR8_JCx.js.gz +0 -0
  729. package/app/dist/assets/plugin-frontend-D5ijLuKC.js.br +0 -0
  730. package/app/dist/assets/plugin-frontend-D5ijLuKC.js.gz +0 -0
  731. package/app/dist/assets/plugin-ui-Dpa8hcuk.js.br +0 -0
  732. package/app/dist/assets/plugin-ui-Dpa8hcuk.js.gz +0 -0
  733. package/app/dist/assets/queued-editor-typeahead-layout-Czaq8Cl9.js.br +0 -0
  734. package/app/dist/assets/queued-editor-typeahead-layout-Czaq8Cl9.js.gz +0 -0
  735. package/app/dist/assets/queued-messages-layout-B5xwiued.js.br +0 -0
  736. package/app/dist/assets/queued-messages-layout-B5xwiued.js.gz +0 -0
  737. package/app/dist/assets/resource-list-BKpxiO2e.js.br +0 -0
  738. package/app/dist/assets/resource-list-BKpxiO2e.js.gz +0 -0
  739. package/app/dist/assets/root-compose-create-preference-BeAvwSHy.js +0 -1
  740. package/app/dist/assets/settings-nav-C9-jh_HN.js.br +0 -0
  741. package/app/dist/assets/settings-nav-C9-jh_HN.js.gz +0 -0
  742. package/app/dist/assets/settings-sections-BMr_XU5l.js.br +0 -0
  743. package/app/dist/assets/settings-sections-BMr_XU5l.js.gz +0 -0
  744. package/app/dist/assets/sidebarTouchSensor-DG_A1RmT.js.br +0 -0
  745. package/app/dist/assets/sidebarTouchSensor-DG_A1RmT.js.gz +0 -0
  746. package/app/dist/assets/switch-BjJ8825r.js.br +0 -0
  747. package/app/dist/assets/switch-BjJ8825r.js.gz +0 -0
  748. package/app/dist/assets/thread-event-parser-ma5CGP66.js.br +0 -0
  749. package/app/dist/assets/thread-event-parser-ma5CGP66.js.gz +0 -0
  750. package/app/dist/assets/thread-panel-queries-BXeOzk_6.js.br +0 -0
  751. package/app/dist/assets/thread-panel-queries-BXeOzk_6.js.gz +0 -0
  752. package/app/dist/assets/thread-runtime-mutations-DmKkyel0.js.br +0 -0
  753. package/app/dist/assets/thread-runtime-mutations-DmKkyel0.js.gz +0 -0
  754. package/app/dist/assets/thread-terminal-queries-AFVZ5K6p.js.br +0 -0
  755. package/app/dist/assets/thread-terminal-queries-AFVZ5K6p.js.gz +0 -0
  756. package/app/dist/assets/threadRecentItems-DXsdcpBk.js.br +0 -0
  757. package/app/dist/assets/threadRecentItems-DXsdcpBk.js.gz +0 -0
  758. package/app/dist/assets/threadWorkspaceOpenPath-DwKd-s_5.js.br +0 -0
  759. package/app/dist/assets/threadWorkspaceOpenPath-DwKd-s_5.js.gz +0 -0
  760. package/app/dist/assets/title-bar-scroll-fade-Dw_BPLyx.js.br +0 -0
  761. package/app/dist/assets/title-bar-scroll-fade-Dw_BPLyx.js.gz +0 -0
  762. package/app/dist/assets/use-hover-popover-DzrAfLzd.js.br +0 -0
  763. package/app/dist/assets/use-hover-popover-DzrAfLzd.js.gz +0 -0
  764. package/app/dist/assets/useElementWidth-Kv5FX-9C.js.br +0 -0
  765. package/app/dist/assets/useElementWidth-Kv5FX-9C.js.gz +0 -0
  766. package/app/dist/assets/useLocalOpenTargets-B7rqz64L.js.br +0 -0
  767. package/app/dist/assets/useLocalOpenTargets-B7rqz64L.js.gz +0 -0
  768. package/app/dist/assets/usePanelResizeSnap-Dizp45Ab.js.br +0 -0
  769. package/app/dist/assets/usePanelResizeSnap-Dizp45Ab.js.gz +0 -0
  770. package/app/dist/assets/usePanelTerminals-ByzphxXd.js.br +0 -0
  771. package/app/dist/assets/usePanelTerminals-ByzphxXd.js.gz +0 -0
  772. package/app/dist/assets/usePathSuggestions-Bd5UhdCh.js.br +0 -0
  773. package/app/dist/assets/usePathSuggestions-Bd5UhdCh.js.gz +0 -0
  774. package/app/dist/assets/useResolvedLiveFileTarget-x5Gd-Gzx.js.br +0 -0
  775. package/app/dist/assets/useResolvedLiveFileTarget-x5Gd-Gzx.js.gz +0 -0
  776. package/app/dist/assets/useThreadTerminalController-CUnfO0Da.js.br +0 -0
  777. package/app/dist/assets/useThreadTerminalController-CUnfO0Da.js.gz +0 -0
  778. package/app/dist/assets/workspace-change-summary-CLNpSq_E.js.br +0 -0
  779. package/app/dist/assets/workspace-change-summary-CLNpSq_E.js.gz +0 -0
  780. package/app/dist/assets/workspace-checkout-display-Aad1Wxi4.js.br +0 -0
  781. package/app/dist/assets/workspace-checkout-display-Aad1Wxi4.js.gz +0 -0
  782. package/host-daemon/dist/moonlet-chunks/chunk-4XWRV5U3.js +0 -2
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Br as t,Hr as n,hi as r,jr as i,kr as a,ri as o}from"./boot-vendor-CKEhulXz.js";import{t as s}from"./permission-mode-options-BrNWKCMS.js";import{$r as c,Dh as l,Fh as ee,Go as u,Gr as d,Jr as f,Ki as p,Lc as m,Na as h,P_ as g,Qi as _,Rr as v,Si as y,Xr as b,Yr as x,ea as S,ei as C,jh as te,jm as w,km as T,ni as E,qi as D,qr as O,ri as k}from"./index-CfvM6UcU.js";import{a as A,i as ne,n as re,o as j,r as M,s as ie}from"./dist-CWXlD45B.js";import{t as ae}from"./switch-BjJ8825r.js";import{b as N}from"./resource-list-BKpxiO2e.js";import{t as P}from"./page-shell-CgSxnF9m.js";import{t as oe}from"./project-default-execution-options-query-DfOIRKKL.js";import{n as se,r as F,s as ce}from"./ProjectsSettingsSection-BT1kXbPn.js";import"./icon-extended-D2fR2GTF.js";import{n as le,r as ue,t as de}from"./ProjectMachineSetupDialog-CtbI4XxM.js";var I=e(r(),1),L=a(),R=e(o(),1);function fe(e){let t=(0,L.c)(8),{target:n,pending:r,onOpenChange:i,onDelete:a}=e,o=n!==null,s;t[0]!==a||t[1]!==r||t[2]!==n?(s=n?(0,R.jsx)(z,{target:n,pending:r,onDelete:a}):null,t[0]=a,t[1]=r,t[2]=n,t[3]=s):s=t[3];let c;return t[4]!==i||t[5]!==o||t[6]!==s?(c=(0,R.jsx)(f,{open:o,onOpenChange:i,children:s}),t[4]=i,t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function z(e){let t=(0,L.c)(7),{target:n,pending:r,onDelete:i}=e,a=`Remove "${n.label}" from this project? This cannot be undone.`,o;t[0]!==i||t[1]!==n.id?(o=()=>i(n.id),t[0]=i,t[1]=n.id,t[2]=o):o=t[2];let s;return t[3]!==r||t[4]!==a||t[5]!==o?(s=(0,R.jsx)(x,{title:`Remove source?`,description:a,confirmLabel:`Remove source`,pending:r,onConfirm:o}),t[3]=r,t[4]=a,t[5]=o,t[6]=s):s=t[6],s}var pe=`Where this project lives on each machine. A machine needs a checkout before it can run threads for this project.`,me=`Every turn in this project, including your own messages, is refused instead of asking when it needs to leave the workspace sandbox. Full access has nothing to ask.`,he=`What new threads in this project start with. Moonlet remembers the last options you used here.`;function ge(e){let t=(0,L.c)(41),{host:n,isPrimary:r,source:a,isPathInvalid:o,canEditPath:s,isOnlySource:c,pending:u,onSetUp:d,onChangePath:f,onRemove:p}=e,m=n.status===`connected`,h=!m&&`opacity-60`,g;t[0]===h?g=t[1]:(g=ee(`size-4 shrink-0 text-muted-foreground`,h),t[0]=h,t[1]=g);let _;t[2]===g?_=t[3]:(_=(0,R.jsx)(l,{name:`Laptop`,className:g}),t[2]=g,t[3]=_);let y;t[4]===m?y=t[5]:(y=(0,R.jsx)(S,{connected:m}),t[4]=m,t[5]=y);let b;t[6]===n.id?b=t[7]:(b=T(n.id),t[6]=n.id,t[7]=b);let x;t[8]!==n.name||t[9]!==b?(x=(0,R.jsx)(i,{to:b,className:`min-w-0 truncate text-sm font-medium text-foreground hover:underline`,children:n.name}),t[8]=n.name,t[9]=b,t[10]=x):x=t[10];let C;t[11]===r?C=t[12]:(C=r?(0,R.jsx)(re,{children:`primary`}):null,t[11]=r,t[12]=C);let w;t[13]===o?w=t[14]:(w=o?(0,R.jsx)(v,{variant:`destructive`,children:`Path not found`}):null,t[13]=o,t[14]=w);let E;t[15]!==_||t[16]!==y||t[17]!==x||t[18]!==C||t[19]!==w?(E=(0,R.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[_,y,x,C,w]}),t[15]=_,t[16]=y,t[17]=x,t[18]=C,t[19]=w,t[20]=E):E=t[20];let D;t[21]===a?D=t[22]:(D=a===null?(0,R.jsx)(`span`,{className:`font-sans italic`,children:`Not set up on this machine`}):a.path,t[21]=a,t[22]=D);let O;t[23]===D?O=t[24]:(O=(0,R.jsx)(`div`,{className:`min-w-0 truncate font-mono text-xs text-subtle-foreground/75`,children:D}),t[23]=D,t[24]=O);let k;t[25]!==O||t[26]!==E?(k=(0,R.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-0.5`,children:[E,O]}),t[25]=O,t[26]=E,t[27]=k):k=t[27];let A;t[28]!==s||t[29]!==m||t[30]!==n.name||t[31]!==c||t[32]!==f||t[33]!==p||t[34]!==d||t[35]!==u||t[36]!==a?(A=(0,R.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:a===null?(0,R.jsx)(te,{type:`button`,variant:`outline`,size:`sm`,disabled:u||!m,onClick:d,children:m?`Set up`:`Offline`}):(0,R.jsx)(N,{label:`${n.name} checkout actions`,items:[{label:`Change folder`,icon:`Folder`,disabled:!s||u,disabledReason:s?void 0:`Folders on other machines are changed from that machine.`,onSelect:f},{label:`Remove checkout`,icon:`Trash2`,tone:`destructive`,disabled:c||u,disabledReason:c?`A project needs at least one checkout.`:void 0,onSelect:p}]})}),t[28]=s,t[29]=m,t[30]=n.name,t[31]=c,t[32]=f,t[33]=p,t[34]=d,t[35]=u,t[36]=a,t[37]=A):A=t[37];let j;return t[38]!==k||t[39]!==A?(j=(0,R.jsxs)(ne,{className:`items-start`,children:[k,A]}),t[38]=k,t[39]=A,t[40]=j):j=t[40],j}function B(e){let t=(0,L.c)(4),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=w(`projects`),t[0]=r):r=t[0];let a;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,R.jsxs)(i,{to:r,className:`inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,R.jsx)(l,{name:`ChevronLeft`,className:`size-3.5`}),`Projects`]}),t[1]=a):a=t[1];let o;return t[2]===n?o=t[3]:(o=(0,R.jsx)(P,{contentClassName:`pt-4 md:pt-5`,children:(0,R.jsxs)(`div`,{className:`mx-auto w-full max-w-3xl space-y-3`,children:[a,n]})}),t[2]=n,t[3]=o),o}function _e(){let{projectId:e}=n(),r=t(),a=m(),o=_(),f=u(),v=oe({projectId:e}),x=k(),S=C(),T=b(),L=E(),z=c(),[_e,V]=(0,I.useState)(null),[ve,H]=(0,I.useState)(null),[ye,U]=(0,I.useState)(null),[be,W]=(0,I.useState)(null),xe=a.data?.projects,G=xe?.find(t=>t.id===e)??null,Se=G?.sources,K=(0,I.useMemo)(()=>Se??[],[Se]),Ce=G?.name??``,we=(0,I.useMemo)(()=>D(o.data,`all`),[o.data]),Te=(0,I.useMemo)(()=>D(o.data,`persistent`),[o.data]),[q,Ee]=(0,I.useState)(!1),J=q?we:Te,De=we.length-Te.length,Oe=f.data?.primaryHostId??null,Y=T.isPending||L.isPending,X=y({isPending:Y,submit:(0,I.useCallback)(({path:t,hostId:n,target:r,closeDialog:i})=>{if(e){if(r.kind===`add-source`)T.mutate({projectId:e,path:t,hostId:n},{onSuccess:i});else if(r.kind===`update`){let r=K.find(e=>e.hostId===n);if(!r)return;L.mutate({projectId:e,sourceId:r.id,path:t},{onSuccess:i})}}},[T,e,K,L])}),Z=X.hostId,ke=ue(Z,(0,I.useMemo)(()=>Z?K.filter(e=>e.hostId===Z).map(e=>e.path):[],[Z,K])),Ae=(0,I.useCallback)(e=>{if(G){if(e.id===Z){X.openPicker({kind:`add-source`,projectId:G.id,projectName:G.name});return}W({projectId:G.id,projectName:G.name,gitRemoteUrl:G.gitRemoteUrl,hostId:e.id,hostName:e.name})}},[X,Z,G]);if(a.isError||o.isError)return(0,R.jsx)(B,{children:(0,R.jsx)(`p`,{className:`text-sm text-destructive`,role:`alert`,children:`Couldn't load this project.`})});if(xe===void 0||o.data===void 0)return(0,R.jsx)(B,{children:(0,R.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Loading…`})});if(G===null)return(0,R.jsx)(B,{children:(0,R.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`This project no longer exists.`})});let je=G.gitRemoteUrl===null?null:se(G.gitRemoteUrl),Me=new Set(K.map(e=>e.hostId)),Q=J.filter(e=>Me.has(e.id)).length,$=v.data??null,Ne=$===null?null:s.find(e=>e.value===$.permissionMode)?.label??$.permissionMode,Pe=Date.now();return(0,R.jsxs)(P,{contentClassName:`pt-4 md:pt-5`,children:[(0,R.jsxs)(`div`,{className:`mx-auto w-full max-w-3xl space-y-6 pb-10`,children:[(0,R.jsxs)(`div`,{className:`space-y-3`,children:[(0,R.jsxs)(i,{to:w(`projects`),className:`inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,R.jsx)(l,{name:`ChevronLeft`,className:`size-3.5`}),`Projects`]}),(0,R.jsxs)(`div`,{className:`flex min-w-0 items-start justify-between gap-3`,children:[(0,R.jsxs)(`div`,{className:`min-w-0`,children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,R.jsx)(l,{name:`FolderGit`,className:`size-4 shrink-0 text-muted-foreground`}),(0,R.jsx)(`h1`,{className:`min-w-0 truncate text-sm font-semibold text-foreground`,children:G.name}),Q===0?(0,R.jsx)(re,{children:`needs setup`}):null]}),(0,R.jsxs)(`p`,{className:`mt-1 min-w-0 truncate text-xs text-subtle-foreground/75`,children:[je??`No git remote`,` · `,J.length>1?`${Q} of ${F(J.length,`machine`)}`:F(Q,`machine`),` · `,F(G.threads.length,`thread`)]})]}),(0,R.jsx)(N,{label:`${G.name} actions`,items:[{label:`Rename`,icon:`Edit`,onSelect:()=>{x.reset(),V({id:G.id,currentName:G.name})}}]})]})]}),(0,R.jsxs)(j,{title:`Checkouts`,description:pe,children:[J.length===0?(0,R.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No machines are paired yet.`}):(0,R.jsx)(A,{children:J.map(e=>{let t=g(K,e.id),n=e.id===Z;return(0,R.jsx)(ge,{host:e,isPrimary:J.length>1&&e.id===Oe,source:t??null,isPathInvalid:t!==void 0&&n&&le(ke,t.path),canEditPath:n,isOnlySource:K.length<=1,pending:Y||z.isPending,onSetUp:()=>Ae(e),onChangePath:()=>{t&&X.openPicker({kind:`update`,projectId:G.id,projectName:Ce,currentPath:t.path})},onRemove:()=>{t&&U({id:t.id,label:`${e.name} · ${t.path}`})}},e.id)})}),De>0?(0,R.jsxs)(`button`,{type:`button`,"aria-expanded":q,onClick:()=>Ee(e=>!e),className:`-ml-1 inline-flex items-center gap-1.5 self-start rounded-md px-1.5 py-0.5 text-xs text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground`,children:[(0,R.jsx)(l,{name:`ChevronDown`,className:ee(`size-3.5 transition-transform`,q&&`rotate-180`),"aria-hidden":!0}),(0,R.jsx)(`span`,{children:q?`Show fewer machines`:`Show all machines`})]}):null]}),(0,R.jsx)(j,{title:`Thread defaults`,description:he,children:v.isError?(0,R.jsx)(`p`,{className:`text-sm text-destructive`,role:`alert`,children:`Couldn't load thread defaults.`}):v.isPending?(0,R.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Loading…`}):$===null?(0,R.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No threads have run here yet. The first thread's options become the defaults.`}):(0,R.jsxs)(A,{children:[(0,R.jsx)(M,{label:`Provider`,children:(0,R.jsx)(`span`,{children:$.providerId})}),(0,R.jsx)(M,{label:`Model`,children:(0,R.jsx)(`span`,{className:`font-mono text-xs`,children:$.model})}),(0,R.jsx)(M,{label:`Permission mode`,children:(0,R.jsx)(`span`,{children:Ne})}),(0,R.jsx)(M,{label:`Reasoning`,children:(0,R.jsx)(`span`,{children:$.reasoningLevel})})]})}),(0,R.jsx)(j,{title:`Approvals`,children:(0,R.jsx)(ie,{label:`Never ask for approval`,description:me,children:(0,R.jsx)(ae,{checked:G.permissionEscalation===`deny`,disabled:x.isPending,"aria-label":`Never ask for approval`,onCheckedChange:e=>x.mutate({id:G.id,permissionEscalation:e?`deny`:`ask`})})})}),(0,R.jsx)(j,{title:`Project information`,children:(0,R.jsxs)(A,{children:[(0,R.jsx)(M,{label:`Git remote`,children:G.gitRemoteUrl===null?(0,R.jsx)(`span`,{children:`None detected`}):(0,R.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:G.gitRemoteUrl})}),(0,R.jsx)(M,{label:`Project ID`,children:(0,R.jsx)(`span`,{className:`font-mono text-xs`,children:G.id})}),(0,R.jsx)(M,{label:`Created`,children:(0,R.jsx)(`span`,{children:h({timestamp:G.createdAt,now:Pe})})})]})}),(0,R.jsx)(ce,{projectId:G.id}),(0,R.jsx)(j,{title:`Danger zone`,description:`Deleting ${G.name} removes the project and every thread in it, including archived ones. Checkouts stay on disk.`,children:(0,R.jsx)(A,{children:(0,R.jsx)(ne,{children:(0,R.jsx)(te,{type:`button`,variant:`destructive`,size:`sm`,onClick:()=>{S.reset(),H({id:G.id,name:G.name})},children:`Delete project`})})})})]}),(0,R.jsx)(p,{target:X.projectPathDialog.target,pending:Y,platform:X.platform,hostId:X.hostId,hostName:X.hostName,onOpenChange:X.projectPathDialog.onOpenChange,onSubmit:X.submitProjectPath}),(0,R.jsx)(de,{target:be,onOpenChange:e=>{e||W(null)},onComplete:()=>W(null)}),(0,R.jsx)(fe,{target:ye,pending:z.isPending,onOpenChange:e=>{e||U(null)},onDelete:e=>z.mutate({projectId:G.id,sourceId:e},{onSuccess:()=>U(null)})}),(0,R.jsx)(d,{target:_e,pending:x.isPending,onOpenChange:e=>{!e&&!x.isPending&&V(null)},onRename:(e,t)=>x.mutate({id:e,name:t},{onSuccess:()=>V(null)})}),(0,R.jsx)(O,{target:ve,pending:S.isPending,onOpenChange:e=>{!e&&!S.isPending&&H(null)},onDelete:e=>S.mutate(e,{onSuccess:()=>{H(null),r(w(`projects`),{replace:!0})}})})]})}export{_e as ProjectDetailSettingsView};
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Br as t,Hr as n,hi as r,jr as i,kr as a,ri as o}from"./boot-vendor-CKEhulXz.js";import{t as s}from"./permission-mode-options-BrNWKCMS.js";import{$r as c,Dh as l,Fh as ee,Go as u,Gr as d,Jr as f,Ki as p,Lc as m,Na as h,P_ as g,Qi as _,Rr as v,Si as y,Xr as b,Yr as x,ea as S,ei as C,jh as te,jm as w,km as T,ni as E,qi as D,qr as O,ri as k}from"./index-DCps_qBD.js";import{a as A,i as ne,n as re,o as j,r as M,s as ie}from"./dist-DCULoGTS.js";import{t as ae}from"./switch-BRYzbFH-.js";import{b as N}from"./resource-list-DLZLjUCf.js";import{t as P}from"./page-shell-CNCVT3Uj.js";import{t as oe}from"./project-default-execution-options-query-gaQEWNK0.js";import{n as se,r as F,s as ce}from"./ProjectsSettingsSection-CIshX8Xc.js";import"./icon-extended-C0LTNXfN.js";import{n as le,r as ue,t as de}from"./ProjectMachineSetupDialog-C43S09Ex.js";var I=e(r(),1),L=a(),R=e(o(),1);function fe(e){let t=(0,L.c)(8),{target:n,pending:r,onOpenChange:i,onDelete:a}=e,o=n!==null,s;t[0]!==a||t[1]!==r||t[2]!==n?(s=n?(0,R.jsx)(z,{target:n,pending:r,onDelete:a}):null,t[0]=a,t[1]=r,t[2]=n,t[3]=s):s=t[3];let c;return t[4]!==i||t[5]!==o||t[6]!==s?(c=(0,R.jsx)(f,{open:o,onOpenChange:i,children:s}),t[4]=i,t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function z(e){let t=(0,L.c)(7),{target:n,pending:r,onDelete:i}=e,a=`Remove "${n.label}" from this project? This cannot be undone.`,o;t[0]!==i||t[1]!==n.id?(o=()=>i(n.id),t[0]=i,t[1]=n.id,t[2]=o):o=t[2];let s;return t[3]!==r||t[4]!==a||t[5]!==o?(s=(0,R.jsx)(x,{title:`Remove source?`,description:a,confirmLabel:`Remove source`,pending:r,onConfirm:o}),t[3]=r,t[4]=a,t[5]=o,t[6]=s):s=t[6],s}var pe=`Where this project lives on each machine. A machine needs a checkout before it can run threads for this project.`,me=`Every turn in this project, including your own messages, is refused instead of asking when it needs to leave the workspace sandbox. Full access has nothing to ask.`,he=`What new threads in this project start with. Moonlet remembers the last options you used here.`;function ge(e){let t=(0,L.c)(41),{host:n,isPrimary:r,source:a,isPathInvalid:o,canEditPath:s,isOnlySource:c,pending:u,onSetUp:d,onChangePath:f,onRemove:p}=e,m=n.status===`connected`,h=!m&&`opacity-60`,g;t[0]===h?g=t[1]:(g=ee(`size-4 shrink-0 text-muted-foreground`,h),t[0]=h,t[1]=g);let _;t[2]===g?_=t[3]:(_=(0,R.jsx)(l,{name:`Laptop`,className:g}),t[2]=g,t[3]=_);let y;t[4]===m?y=t[5]:(y=(0,R.jsx)(S,{connected:m}),t[4]=m,t[5]=y);let b;t[6]===n.id?b=t[7]:(b=T(n.id),t[6]=n.id,t[7]=b);let x;t[8]!==n.name||t[9]!==b?(x=(0,R.jsx)(i,{to:b,className:`min-w-0 truncate text-sm font-medium text-foreground hover:underline`,children:n.name}),t[8]=n.name,t[9]=b,t[10]=x):x=t[10];let C;t[11]===r?C=t[12]:(C=r?(0,R.jsx)(re,{children:`primary`}):null,t[11]=r,t[12]=C);let w;t[13]===o?w=t[14]:(w=o?(0,R.jsx)(v,{variant:`destructive`,children:`Path not found`}):null,t[13]=o,t[14]=w);let E;t[15]!==_||t[16]!==y||t[17]!==x||t[18]!==C||t[19]!==w?(E=(0,R.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[_,y,x,C,w]}),t[15]=_,t[16]=y,t[17]=x,t[18]=C,t[19]=w,t[20]=E):E=t[20];let D;t[21]===a?D=t[22]:(D=a===null?(0,R.jsx)(`span`,{className:`font-sans italic`,children:`Not set up on this machine`}):a.path,t[21]=a,t[22]=D);let O;t[23]===D?O=t[24]:(O=(0,R.jsx)(`div`,{className:`min-w-0 truncate font-mono text-xs text-subtle-foreground/75`,children:D}),t[23]=D,t[24]=O);let k;t[25]!==O||t[26]!==E?(k=(0,R.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-0.5`,children:[E,O]}),t[25]=O,t[26]=E,t[27]=k):k=t[27];let A;t[28]!==s||t[29]!==m||t[30]!==n.name||t[31]!==c||t[32]!==f||t[33]!==p||t[34]!==d||t[35]!==u||t[36]!==a?(A=(0,R.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:a===null?(0,R.jsx)(te,{type:`button`,variant:`outline`,size:`sm`,disabled:u||!m,onClick:d,children:m?`Set up`:`Offline`}):(0,R.jsx)(N,{label:`${n.name} checkout actions`,items:[{label:`Change folder`,icon:`Folder`,disabled:!s||u,disabledReason:s?void 0:`Folders on other machines are changed from that machine.`,onSelect:f},{label:`Remove checkout`,icon:`Trash2`,tone:`destructive`,disabled:c||u,disabledReason:c?`A project needs at least one checkout.`:void 0,onSelect:p}]})}),t[28]=s,t[29]=m,t[30]=n.name,t[31]=c,t[32]=f,t[33]=p,t[34]=d,t[35]=u,t[36]=a,t[37]=A):A=t[37];let j;return t[38]!==k||t[39]!==A?(j=(0,R.jsxs)(ne,{className:`items-start`,children:[k,A]}),t[38]=k,t[39]=A,t[40]=j):j=t[40],j}function B(e){let t=(0,L.c)(4),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=w(`projects`),t[0]=r):r=t[0];let a;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,R.jsxs)(i,{to:r,className:`inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,R.jsx)(l,{name:`ChevronLeft`,className:`size-3.5`}),`Projects`]}),t[1]=a):a=t[1];let o;return t[2]===n?o=t[3]:(o=(0,R.jsx)(P,{contentClassName:`pt-4 md:pt-5`,children:(0,R.jsxs)(`div`,{className:`mx-auto w-full max-w-3xl space-y-3`,children:[a,n]})}),t[2]=n,t[3]=o),o}function _e(){let{projectId:e}=n(),r=t(),a=m(),o=_(),f=u(),v=oe({projectId:e}),x=k(),S=C(),T=b(),L=E(),z=c(),[_e,V]=(0,I.useState)(null),[ve,H]=(0,I.useState)(null),[ye,U]=(0,I.useState)(null),[be,W]=(0,I.useState)(null),xe=a.data?.projects,G=xe?.find(t=>t.id===e)??null,Se=G?.sources,K=(0,I.useMemo)(()=>Se??[],[Se]),Ce=G?.name??``,we=(0,I.useMemo)(()=>D(o.data,`all`),[o.data]),Te=(0,I.useMemo)(()=>D(o.data,`persistent`),[o.data]),[q,Ee]=(0,I.useState)(!1),J=q?we:Te,De=we.length-Te.length,Oe=f.data?.primaryHostId??null,Y=T.isPending||L.isPending,X=y({isPending:Y,submit:(0,I.useCallback)(({path:t,hostId:n,target:r,closeDialog:i})=>{if(e){if(r.kind===`add-source`)T.mutate({projectId:e,path:t,hostId:n},{onSuccess:i});else if(r.kind===`update`){let r=K.find(e=>e.hostId===n);if(!r)return;L.mutate({projectId:e,sourceId:r.id,path:t},{onSuccess:i})}}},[T,e,K,L])}),Z=X.hostId,ke=ue(Z,(0,I.useMemo)(()=>Z?K.filter(e=>e.hostId===Z).map(e=>e.path):[],[Z,K])),Ae=(0,I.useCallback)(e=>{if(G){if(e.id===Z){X.openPicker({kind:`add-source`,projectId:G.id,projectName:G.name});return}W({projectId:G.id,projectName:G.name,gitRemoteUrl:G.gitRemoteUrl,hostId:e.id,hostName:e.name})}},[X,Z,G]);if(a.isError||o.isError)return(0,R.jsx)(B,{children:(0,R.jsx)(`p`,{className:`text-sm text-destructive`,role:`alert`,children:`Couldn't load this project.`})});if(xe===void 0||o.data===void 0)return(0,R.jsx)(B,{children:(0,R.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Loading…`})});if(G===null)return(0,R.jsx)(B,{children:(0,R.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`This project no longer exists.`})});let je=G.gitRemoteUrl===null?null:se(G.gitRemoteUrl),Me=new Set(K.map(e=>e.hostId)),Q=J.filter(e=>Me.has(e.id)).length,$=v.data??null,Ne=$===null?null:s.find(e=>e.value===$.permissionMode)?.label??$.permissionMode,Pe=Date.now();return(0,R.jsxs)(P,{contentClassName:`pt-4 md:pt-5`,children:[(0,R.jsxs)(`div`,{className:`mx-auto w-full max-w-3xl space-y-6 pb-10`,children:[(0,R.jsxs)(`div`,{className:`space-y-3`,children:[(0,R.jsxs)(i,{to:w(`projects`),className:`inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,R.jsx)(l,{name:`ChevronLeft`,className:`size-3.5`}),`Projects`]}),(0,R.jsxs)(`div`,{className:`flex min-w-0 items-start justify-between gap-3`,children:[(0,R.jsxs)(`div`,{className:`min-w-0`,children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,R.jsx)(l,{name:`FolderGit`,className:`size-4 shrink-0 text-muted-foreground`}),(0,R.jsx)(`h1`,{className:`min-w-0 truncate text-sm font-semibold text-foreground`,children:G.name}),Q===0?(0,R.jsx)(re,{children:`needs setup`}):null]}),(0,R.jsxs)(`p`,{className:`mt-1 min-w-0 truncate text-xs text-subtle-foreground/75`,children:[je??`No git remote`,` · `,J.length>1?`${Q} of ${F(J.length,`machine`)}`:F(Q,`machine`),` · `,F(G.threads.length,`thread`)]})]}),(0,R.jsx)(N,{label:`${G.name} actions`,items:[{label:`Rename`,icon:`Edit`,onSelect:()=>{x.reset(),V({id:G.id,currentName:G.name})}}]})]})]}),(0,R.jsxs)(j,{title:`Checkouts`,description:pe,children:[J.length===0?(0,R.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No machines are paired yet.`}):(0,R.jsx)(A,{children:J.map(e=>{let t=g(K,e.id),n=e.id===Z;return(0,R.jsx)(ge,{host:e,isPrimary:J.length>1&&e.id===Oe,source:t??null,isPathInvalid:t!==void 0&&n&&le(ke,t.path),canEditPath:n,isOnlySource:K.length<=1,pending:Y||z.isPending,onSetUp:()=>Ae(e),onChangePath:()=>{t&&X.openPicker({kind:`update`,projectId:G.id,projectName:Ce,currentPath:t.path})},onRemove:()=>{t&&U({id:t.id,label:`${e.name} · ${t.path}`})}},e.id)})}),De>0?(0,R.jsxs)(`button`,{type:`button`,"aria-expanded":q,onClick:()=>Ee(e=>!e),className:`-ml-1 inline-flex items-center gap-1.5 self-start rounded-md px-1.5 py-0.5 text-xs text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground`,children:[(0,R.jsx)(l,{name:`ChevronDown`,className:ee(`size-3.5 transition-transform`,q&&`rotate-180`),"aria-hidden":!0}),(0,R.jsx)(`span`,{children:q?`Show fewer machines`:`Show all machines`})]}):null]}),(0,R.jsx)(j,{title:`Thread defaults`,description:he,children:v.isError?(0,R.jsx)(`p`,{className:`text-sm text-destructive`,role:`alert`,children:`Couldn't load thread defaults.`}):v.isPending?(0,R.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Loading…`}):$===null?(0,R.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No threads have run here yet. The first thread's options become the defaults.`}):(0,R.jsxs)(A,{children:[(0,R.jsx)(M,{label:`Provider`,children:(0,R.jsx)(`span`,{children:$.providerId})}),(0,R.jsx)(M,{label:`Model`,children:(0,R.jsx)(`span`,{className:`font-mono text-xs`,children:$.model})}),(0,R.jsx)(M,{label:`Permission mode`,children:(0,R.jsx)(`span`,{children:Ne})}),(0,R.jsx)(M,{label:`Reasoning`,children:(0,R.jsx)(`span`,{children:$.reasoningLevel})})]})}),(0,R.jsx)(j,{title:`Approvals`,children:(0,R.jsx)(ie,{label:`Never ask for approval`,description:me,children:(0,R.jsx)(ae,{checked:G.permissionEscalation===`deny`,disabled:x.isPending,"aria-label":`Never ask for approval`,onCheckedChange:e=>x.mutate({id:G.id,permissionEscalation:e?`deny`:`ask`})})})}),(0,R.jsx)(j,{title:`Project information`,children:(0,R.jsxs)(A,{children:[(0,R.jsx)(M,{label:`Git remote`,children:G.gitRemoteUrl===null?(0,R.jsx)(`span`,{children:`None detected`}):(0,R.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:G.gitRemoteUrl})}),(0,R.jsx)(M,{label:`Project ID`,children:(0,R.jsx)(`span`,{className:`font-mono text-xs`,children:G.id})}),(0,R.jsx)(M,{label:`Created`,children:(0,R.jsx)(`span`,{children:h({timestamp:G.createdAt,now:Pe})})})]})}),(0,R.jsx)(ce,{projectId:G.id}),(0,R.jsx)(j,{title:`Danger zone`,description:`Deleting ${G.name} removes the project and every thread in it, including archived ones. Checkouts stay on disk.`,children:(0,R.jsx)(A,{children:(0,R.jsx)(ne,{children:(0,R.jsx)(te,{type:`button`,variant:`destructive`,size:`sm`,onClick:()=>{S.reset(),H({id:G.id,name:G.name})},children:`Delete project`})})})})]}),(0,R.jsx)(p,{target:X.projectPathDialog.target,pending:Y,platform:X.platform,hostId:X.hostId,hostName:X.hostName,onOpenChange:X.projectPathDialog.onOpenChange,onSubmit:X.submitProjectPath}),(0,R.jsx)(de,{target:be,onOpenChange:e=>{e||W(null)},onComplete:()=>W(null)}),(0,R.jsx)(fe,{target:ye,pending:z.isPending,onOpenChange:e=>{e||U(null)},onDelete:e=>z.mutate({projectId:G.id,sourceId:e},{onSuccess:()=>U(null)})}),(0,R.jsx)(d,{target:_e,pending:x.isPending,onOpenChange:e=>{!e&&!x.isPending&&V(null)},onRename:(e,t)=>x.mutate({id:e,name:t},{onSuccess:()=>V(null)})}),(0,R.jsx)(O,{target:ve,pending:S.isPending,onOpenChange:e=>{!e&&!S.isPending&&H(null)},onDelete:e=>S.mutate(e,{onSuccess:()=>{H(null),r(w(`projects`),{replace:!0})}})})]})}export{_e as ProjectDetailSettingsView};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Qr as t,fi as n,hi as r,kr as i,ri as a}from"./boot-vendor-CKEhulXz.js";import{Co as o,Dh as s,Do as c,Eo as l,F_ as u,Fh as d,Gd as f,I_ as p,Qg as m,So as h,To as g,Yi as _,Zo as v,Zr as y,_g as b,ia as ee,jh as te,ta as ne,wo as re}from"./index-CfvM6UcU.js";var x=e(r(),1),ie=i();function ae(e,r){let i=(0,ie.c)(14),a;bb0:{if(r.length===0){let e;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=[],i[0]=e):e=i[0],a=e;break bb0}let e;i[1]===r?e=i[2]:(e=[...new Set(r)].sort(),i[1]=r,i[2]=e),a=e}let o=a,s=e!==null&&o.length>0?e:null,c;i[3]!==e||i[4]!==o?(c=b(e,o),i[3]=e,i[4]=o,i[5]=c):c=i[5];let l;i[6]!==s||i[7]!==o?(l=s?async e=>{let{signal:t}=e;return(await f.hosts.pathsExist({hostId:s,paths:o,signal:t})).existence}:n,i[6]=s,i[7]=o,i[8]=l):l=i[8];let u;i[9]!==c||i[10]!==l?(u={queryKey:c,queryFn:l,staleTime:1e4},i[9]=c,i[10]=l,i[11]=u):u=i[11];let d=t(u),p;return i[12]===d.data?p=i[13]:(p=d.data??{},i[12]=d.data,i[13]=p),p}function oe(e,t){return t==null?!1:e[t]===!1}var S=e(a(),1);function C(e){let t=(0,ie.c)(20),{target:n,onOpenChange:r,onComplete:i}=e,a=y(),s=n?`${n.projectId}:${n.hostId}`:null,c=a.reset,l;t[0]===c?l=t[1]:(l=()=>{c()},t[0]=c,t[1]=l);let u;t[2]!==c||t[3]!==s?(u=[c,s],t[2]=c,t[3]=s,t[4]=u):u=t[4],(0,x.useEffect)(l,u);let d=n!==null,f;t[5]!==a.isPending||t[6]!==r?(f=e=>{!e&&a.isPending||r(e)},t[5]=a.isPending,t[6]=r,t[7]=f):f=t[7];let p;t[8]!==a||t[9]!==i||t[10]!==r||t[11]!==n||t[12]!==s?(p=n?(0,S.jsx)(w,{target:n,addSource:a,onOpenChange:r,onComplete:i},s):null,t[8]=a,t[9]=i,t[10]=r,t[11]=n,t[12]=s,t[13]=p):p=t[13];let m;t[14]===p?m=t[15]:(m=(0,S.jsx)(o,{children:p}),t[14]=p,t[15]=m);let g;return t[16]!==d||t[17]!==f||t[18]!==m?(g=(0,S.jsx)(h,{open:d,onOpenChange:f,children:m}),t[16]=d,t[17]=f,t[18]=m,t[19]=g):g=t[19],g}function w(e){let t=(0,ie.c)(88),{target:n,addSource:r,onOpenChange:i,onComplete:a}=e,o=n.gitRemoteUrl!==null,[d,f]=(0,x.useState)(o?`clone`:`folder`),[h,y]=(0,x.useState)(null),[b,C]=(0,x.useState)(!1),[w,ce]=(0,x.useState)(``),[T,le]=(0,x.useState)(null),[E,D]=(0,x.useState)(null),O;t[0]===o?O=t[1]:(O={enabled:o},t[0]=o,t[1]=O);let ue=_(n.hostId,n.projectId,O),k=h??ue.data??null,de;t[2]===T?de=t[3]:(de=T===null?[]:[T],t[2]=T,t[3]=de);let fe=ae(d===`folder`?n.hostId:null,de),A=r.isPending,j;t[4]!==r||t[5]!==d||t[6]!==A?(j=e=>{A||d===e||(f(e),D(null),C(!1),r.reset())},t[4]=r,t[5]=d,t[6]=A,t[7]=j):j=t[7];let M=j,N;t[8]!==r||t[9]!==w?(N=()=>{C(!1);let e=p(w);e&&(y(e),D(null),r.reset())},t[8]=r,t[9]=w,t[10]=N):N=t[10];let P=N,F;t[11]!==r||t[12]!==a||t[13]!==n.hostId?(F=e=>{r.mutate(e,{onSuccess:e=>{a({hostId:n.hostId,source:e})}})},t[11]=r,t[12]=a,t[13]=n.hostId,t[14]=F):F=t[14];let I=F,L;t[15]!==h||t[16]!==fe||t[17]!==T||t[18]!==d||t[19]!==A||t[20]!==I||t[21]!==n.hostId||t[22]!==n.hostName||t[23]!==n.projectId?(L=e=>{if(e.preventDefault(),!A){if(D(null),d===`clone`){if(h!==null){let e=u(h);if(e){D(e);return}}I({projectId:n.projectId,request:{type:`clone`,hostId:n.hostId,...h===null?{}:{targetPath:h}}});return}if(T===null){D(`Choose a folder.`);return}if(oe(fe,T)){D(`That folder no longer exists on ${n.hostName}.`);return}I({projectId:n.projectId,request:{type:`local_path`,hostId:n.hostId,path:T}})}},t[15]=h,t[16]=fe,t[17]=T,t[18]=d,t[19]=A,t[20]=I,t[21]=n.hostId,t[22]=n.hostName,t[23]=n.projectId,t[24]=L):L=t[24];let pe=L,R;t[25]!==r.error||t[26]!==r.isError||t[27]!==n.hostName||t[28]!==n.projectName?(R=r.isError?v({error:r.error,fallbackMessage:`Couldn't set up ${n.projectName} on ${n.hostName}.`}):null,t[25]=r.error,t[26]=r.isError,t[27]=n.hostName,t[28]=n.projectName,t[29]=R):R=t[29];let z=R,me=r.error instanceof m&&r.error.code===`target_not_empty`,he=A||(d===`clone`?k===null:T===null),B;t[30]!==k||t[31]!==w||t[32]!==P||t[33]!==ue||t[34]!==b||t[35]!==A?(B=b?(0,S.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,S.jsx)(ee,{"aria-label":`Clone destination`,className:`h-7 flex-1 text-xs`,value:w,disabled:A,autoFocus:!0,placeholder:ue.data??`/path/to/checkout`,onChange:e=>ce(e.target.value),onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),P()):e.key===`Escape`&&(e.preventDefault(),C(!1))}}),(0,S.jsx)(te,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"aria-label":`Use this destination`,disabled:A,onClick:P,children:(0,S.jsx)(s,{name:`Check`})})]}):(0,S.jsxs)(`p`,{className:`break-all text-xs text-muted-foreground`,children:[`into `,(0,S.jsx)(`span`,{className:`text-foreground`,children:k??`…`}),` `,(0,S.jsx)(`button`,{type:`button`,className:`text-primary hover:underline disabled:opacity-50`,disabled:A,onClick:()=>{ce(k??``),C(!0)},children:`change`})]}),t[30]=k,t[31]=w,t[32]=P,t[33]=ue,t[34]=b,t[35]=A,t[36]=B):B=t[36];let ge=B,V;t[37]!==n.hostName||t[38]!==n.projectName?(V=(0,S.jsxs)(c,{children:[`Set up `,n.projectName,` on `,n.hostName]}),t[37]=n.hostName,t[38]=n.projectName,t[39]=V):V=t[39];let _e=o?`${n.hostName} doesn't have this project yet. Pick how to get it there — this happens once.`:`${n.hostName} doesn't have this project yet. Point at the project folder on ${n.hostName} — this happens once.`,H;t[40]===_e?H=t[41]:(H=(0,S.jsx)(re,{children:_e}),t[40]=_e,t[41]=H);let U;t[42]!==H||t[43]!==V?(U=(0,S.jsxs)(l,{children:[V,H]}),t[42]=H,t[43]=V,t[44]=U):U=t[44];let W;t[45]!==ge||t[46]!==o||t[47]!==d||t[48]!==A||t[49]!==M||t[50]!==n.gitRemoteUrl||t[51]!==n.hostName?(W=o?(0,S.jsxs)(`div`,{role:`radiogroup`,"aria-label":`Setup method`,className:`flex flex-col gap-2`,children:[(0,S.jsxs)(se,{selected:d===`clone`,disabled:A,onSelect:()=>M(`clone`),title:`Clone from the project remote`,children:[(0,S.jsx)(`p`,{className:`break-all text-xs text-muted-foreground`,children:n.gitRemoteUrl}),d===`clone`?ge:null]}),(0,S.jsx)(se,{selected:d===`folder`,disabled:A,onSelect:()=>M(`folder`),title:`Use an existing folder on ${n.hostName}`,children:(0,S.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Browse `,n.hostName,`'s files and point at a checkout you already have.`]})})]}):null,t[45]=ge,t[46]=o,t[47]=d,t[48]=A,t[49]=M,t[50]=n.gitRemoteUrl,t[51]=n.hostName,t[52]=W):W=t[52];let G;t[53]!==d||t[54]!==A||t[55]!==n.hostId?(G=d===`folder`?(0,S.jsx)(ne,{hostId:n.hostId,allowCreateFolder:!1,onDirectoryChange:e=>{le(e),D(null)},disabled:A}):null,t[53]=d,t[54]=A,t[55]=n.hostId,t[56]=G):G=t[56];let K;t[57]!==d||t[58]!==A||t[59]!==n.hostName?(K=A&&d===`clone`?(0,S.jsxs)(`p`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:[(0,S.jsx)(s,{name:`Spinner`,className:`size-4 shrink-0 animate-spin`}),`Cloning onto `,n.hostName,`… This can take a while.`]}):null,t[57]=d,t[58]=A,t[59]=n.hostName,t[60]=K):K=t[60];let q;t[61]===E?q=t[62]:(q=E?(0,S.jsx)(`p`,{className:`text-sm text-destructive`,children:E}):null,t[61]=E,t[62]=q);let J;t[63]!==z||t[64]!==me?(J=z?(0,S.jsxs)(`div`,{className:`space-y-1`,children:[(0,S.jsx)(`p`,{className:`whitespace-pre-wrap break-words text-sm text-destructive`,children:z}),me?(0,S.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Pick a different destination, or use the existing-folder option to point at what's already there.`}):null]}):null,t[63]=z,t[64]=me,t[65]=J):J=t[65];let Y;t[66]===i?Y=t[67]:(Y=()=>i(!1),t[66]=i,t[67]=Y);let X;t[68]!==A||t[69]!==Y?(X=(0,S.jsx)(te,{type:`button`,variant:`ghost`,disabled:A,onClick:Y,children:`Cancel`}),t[68]=A,t[69]=Y,t[70]=X):X=t[70];let ve=d===`clone`?`Clone & continue`:`Use folder & continue`,Z;t[71]!==he||t[72]!==ve?(Z=(0,S.jsx)(te,{type:`submit`,disabled:he,children:ve}),t[71]=he,t[72]=ve,t[73]=Z):Z=t[73];let Q;t[74]!==X||t[75]!==Z?(Q=(0,S.jsxs)(g,{children:[X,Z]}),t[74]=X,t[75]=Z,t[76]=Q):Q=t[76];let $;t[77]!==pe||t[78]!==W||t[79]!==G||t[80]!==K||t[81]!==q||t[82]!==J||t[83]!==Q?($=(0,S.jsxs)(`form`,{className:`space-y-4`,onSubmit:pe,children:[W,G,K,q,J,Q]}),t[77]=pe,t[78]=W,t[79]=G,t[80]=K,t[81]=q,t[82]=J,t[83]=Q,t[84]=$):$=t[84];let ye;return t[85]!==U||t[86]!==$?(ye=(0,S.jsxs)(S.Fragment,{children:[U,$]}),t[85]=U,t[86]=$,t[87]=ye):ye=t[87],ye}function se(e){let t=(0,ie.c)(28),{selected:n,disabled:r,onSelect:i,title:a,children:o}=e,s=r?-1:0,c=n?`border-primary`:`border-border`,l=!r&&`cursor-pointer`,u;t[0]!==c||t[1]!==l?(u=d(`flex items-start gap-3 rounded-md border p-3`,c,l),t[0]=c,t[1]=l,t[2]=u):u=t[2];let f,p;t[3]!==r||t[4]!==i?(f=()=>{r||i()},p=e=>{r||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),i())},t[3]=r,t[4]=i,t[5]=f,t[6]=p):(f=t[5],p=t[6]);let m=n?`border-primary`:`border-muted-foreground`,h;t[7]===m?h=t[8]:(h=d(`mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full border`,m),t[7]=m,t[8]=h);let g;t[9]===n?g=t[10]:(g=n?(0,S.jsx)(`span`,{className:`size-2 rounded-full bg-primary`}):null,t[9]=n,t[10]=g);let _;t[11]!==h||t[12]!==g?(_=(0,S.jsx)(`span`,{"aria-hidden":!0,className:h,children:g}),t[11]=h,t[12]=g,t[13]=_):_=t[13];let v;t[14]===a?v=t[15]:(v=(0,S.jsx)(`p`,{className:`text-sm font-medium`,children:a}),t[14]=a,t[15]=v);let y;t[16]!==o||t[17]!==v?(y=(0,S.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1`,children:[v,o]}),t[16]=o,t[17]=v,t[18]=y):y=t[18];let b;return t[19]!==n||t[20]!==s||t[21]!==_||t[22]!==y||t[23]!==u||t[24]!==f||t[25]!==p||t[26]!==a?(b=(0,S.jsxs)(`div`,{role:`radio`,"aria-checked":n,"aria-label":a,tabIndex:s,className:u,onClick:f,onKeyDown:p,children:[_,y]}),t[19]=n,t[20]=s,t[21]=_,t[22]=y,t[23]=u,t[24]=f,t[25]=p,t[26]=a,t[27]=b):b=t[27],b}export{oe as n,ae as r,C as t};
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Qr as t,fi as n,hi as r,kr as i,ri as a}from"./boot-vendor-CKEhulXz.js";import{Co as o,Dh as s,Do as c,Eo as l,F_ as u,Fh as d,Gd as f,I_ as p,Qg as m,So as h,To as g,Yi as _,Zo as v,Zr as y,_g as b,ia as ee,jh as te,ta as ne,wo as re}from"./index-DCps_qBD.js";var x=e(r(),1),ie=i();function ae(e,r){let i=(0,ie.c)(14),a;bb0:{if(r.length===0){let e;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=[],i[0]=e):e=i[0],a=e;break bb0}let e;i[1]===r?e=i[2]:(e=[...new Set(r)].sort(),i[1]=r,i[2]=e),a=e}let o=a,s=e!==null&&o.length>0?e:null,c;i[3]!==e||i[4]!==o?(c=b(e,o),i[3]=e,i[4]=o,i[5]=c):c=i[5];let l;i[6]!==s||i[7]!==o?(l=s?async e=>{let{signal:t}=e;return(await f.hosts.pathsExist({hostId:s,paths:o,signal:t})).existence}:n,i[6]=s,i[7]=o,i[8]=l):l=i[8];let u;i[9]!==c||i[10]!==l?(u={queryKey:c,queryFn:l,staleTime:1e4},i[9]=c,i[10]=l,i[11]=u):u=i[11];let d=t(u),p;return i[12]===d.data?p=i[13]:(p=d.data??{},i[12]=d.data,i[13]=p),p}function oe(e,t){return t==null?!1:e[t]===!1}var S=e(a(),1);function C(e){let t=(0,ie.c)(20),{target:n,onOpenChange:r,onComplete:i}=e,a=y(),s=n?`${n.projectId}:${n.hostId}`:null,c=a.reset,l;t[0]===c?l=t[1]:(l=()=>{c()},t[0]=c,t[1]=l);let u;t[2]!==c||t[3]!==s?(u=[c,s],t[2]=c,t[3]=s,t[4]=u):u=t[4],(0,x.useEffect)(l,u);let d=n!==null,f;t[5]!==a.isPending||t[6]!==r?(f=e=>{!e&&a.isPending||r(e)},t[5]=a.isPending,t[6]=r,t[7]=f):f=t[7];let p;t[8]!==a||t[9]!==i||t[10]!==r||t[11]!==n||t[12]!==s?(p=n?(0,S.jsx)(w,{target:n,addSource:a,onOpenChange:r,onComplete:i},s):null,t[8]=a,t[9]=i,t[10]=r,t[11]=n,t[12]=s,t[13]=p):p=t[13];let m;t[14]===p?m=t[15]:(m=(0,S.jsx)(o,{children:p}),t[14]=p,t[15]=m);let g;return t[16]!==d||t[17]!==f||t[18]!==m?(g=(0,S.jsx)(h,{open:d,onOpenChange:f,children:m}),t[16]=d,t[17]=f,t[18]=m,t[19]=g):g=t[19],g}function w(e){let t=(0,ie.c)(88),{target:n,addSource:r,onOpenChange:i,onComplete:a}=e,o=n.gitRemoteUrl!==null,[d,f]=(0,x.useState)(o?`clone`:`folder`),[h,y]=(0,x.useState)(null),[b,C]=(0,x.useState)(!1),[w,ce]=(0,x.useState)(``),[T,le]=(0,x.useState)(null),[E,D]=(0,x.useState)(null),O;t[0]===o?O=t[1]:(O={enabled:o},t[0]=o,t[1]=O);let ue=_(n.hostId,n.projectId,O),k=h??ue.data??null,de;t[2]===T?de=t[3]:(de=T===null?[]:[T],t[2]=T,t[3]=de);let fe=ae(d===`folder`?n.hostId:null,de),A=r.isPending,j;t[4]!==r||t[5]!==d||t[6]!==A?(j=e=>{A||d===e||(f(e),D(null),C(!1),r.reset())},t[4]=r,t[5]=d,t[6]=A,t[7]=j):j=t[7];let M=j,N;t[8]!==r||t[9]!==w?(N=()=>{C(!1);let e=p(w);e&&(y(e),D(null),r.reset())},t[8]=r,t[9]=w,t[10]=N):N=t[10];let P=N,F;t[11]!==r||t[12]!==a||t[13]!==n.hostId?(F=e=>{r.mutate(e,{onSuccess:e=>{a({hostId:n.hostId,source:e})}})},t[11]=r,t[12]=a,t[13]=n.hostId,t[14]=F):F=t[14];let I=F,L;t[15]!==h||t[16]!==fe||t[17]!==T||t[18]!==d||t[19]!==A||t[20]!==I||t[21]!==n.hostId||t[22]!==n.hostName||t[23]!==n.projectId?(L=e=>{if(e.preventDefault(),!A){if(D(null),d===`clone`){if(h!==null){let e=u(h);if(e){D(e);return}}I({projectId:n.projectId,request:{type:`clone`,hostId:n.hostId,...h===null?{}:{targetPath:h}}});return}if(T===null){D(`Choose a folder.`);return}if(oe(fe,T)){D(`That folder no longer exists on ${n.hostName}.`);return}I({projectId:n.projectId,request:{type:`local_path`,hostId:n.hostId,path:T}})}},t[15]=h,t[16]=fe,t[17]=T,t[18]=d,t[19]=A,t[20]=I,t[21]=n.hostId,t[22]=n.hostName,t[23]=n.projectId,t[24]=L):L=t[24];let pe=L,R;t[25]!==r.error||t[26]!==r.isError||t[27]!==n.hostName||t[28]!==n.projectName?(R=r.isError?v({error:r.error,fallbackMessage:`Couldn't set up ${n.projectName} on ${n.hostName}.`}):null,t[25]=r.error,t[26]=r.isError,t[27]=n.hostName,t[28]=n.projectName,t[29]=R):R=t[29];let z=R,me=r.error instanceof m&&r.error.code===`target_not_empty`,he=A||(d===`clone`?k===null:T===null),B;t[30]!==k||t[31]!==w||t[32]!==P||t[33]!==ue||t[34]!==b||t[35]!==A?(B=b?(0,S.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,S.jsx)(ee,{"aria-label":`Clone destination`,className:`h-7 flex-1 text-xs`,value:w,disabled:A,autoFocus:!0,placeholder:ue.data??`/path/to/checkout`,onChange:e=>ce(e.target.value),onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),P()):e.key===`Escape`&&(e.preventDefault(),C(!1))}}),(0,S.jsx)(te,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"aria-label":`Use this destination`,disabled:A,onClick:P,children:(0,S.jsx)(s,{name:`Check`})})]}):(0,S.jsxs)(`p`,{className:`break-all text-xs text-muted-foreground`,children:[`into `,(0,S.jsx)(`span`,{className:`text-foreground`,children:k??`…`}),` `,(0,S.jsx)(`button`,{type:`button`,className:`text-primary hover:underline disabled:opacity-50`,disabled:A,onClick:()=>{ce(k??``),C(!0)},children:`change`})]}),t[30]=k,t[31]=w,t[32]=P,t[33]=ue,t[34]=b,t[35]=A,t[36]=B):B=t[36];let ge=B,V;t[37]!==n.hostName||t[38]!==n.projectName?(V=(0,S.jsxs)(c,{children:[`Set up `,n.projectName,` on `,n.hostName]}),t[37]=n.hostName,t[38]=n.projectName,t[39]=V):V=t[39];let _e=o?`${n.hostName} doesn't have this project yet. Pick how to get it there — this happens once.`:`${n.hostName} doesn't have this project yet. Point at the project folder on ${n.hostName} — this happens once.`,H;t[40]===_e?H=t[41]:(H=(0,S.jsx)(re,{children:_e}),t[40]=_e,t[41]=H);let U;t[42]!==H||t[43]!==V?(U=(0,S.jsxs)(l,{children:[V,H]}),t[42]=H,t[43]=V,t[44]=U):U=t[44];let W;t[45]!==ge||t[46]!==o||t[47]!==d||t[48]!==A||t[49]!==M||t[50]!==n.gitRemoteUrl||t[51]!==n.hostName?(W=o?(0,S.jsxs)(`div`,{role:`radiogroup`,"aria-label":`Setup method`,className:`flex flex-col gap-2`,children:[(0,S.jsxs)(se,{selected:d===`clone`,disabled:A,onSelect:()=>M(`clone`),title:`Clone from the project remote`,children:[(0,S.jsx)(`p`,{className:`break-all text-xs text-muted-foreground`,children:n.gitRemoteUrl}),d===`clone`?ge:null]}),(0,S.jsx)(se,{selected:d===`folder`,disabled:A,onSelect:()=>M(`folder`),title:`Use an existing folder on ${n.hostName}`,children:(0,S.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Browse `,n.hostName,`'s files and point at a checkout you already have.`]})})]}):null,t[45]=ge,t[46]=o,t[47]=d,t[48]=A,t[49]=M,t[50]=n.gitRemoteUrl,t[51]=n.hostName,t[52]=W):W=t[52];let G;t[53]!==d||t[54]!==A||t[55]!==n.hostId?(G=d===`folder`?(0,S.jsx)(ne,{hostId:n.hostId,allowCreateFolder:!1,onDirectoryChange:e=>{le(e),D(null)},disabled:A}):null,t[53]=d,t[54]=A,t[55]=n.hostId,t[56]=G):G=t[56];let K;t[57]!==d||t[58]!==A||t[59]!==n.hostName?(K=A&&d===`clone`?(0,S.jsxs)(`p`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:[(0,S.jsx)(s,{name:`Spinner`,className:`size-4 shrink-0 animate-spin`}),`Cloning onto `,n.hostName,`… This can take a while.`]}):null,t[57]=d,t[58]=A,t[59]=n.hostName,t[60]=K):K=t[60];let q;t[61]===E?q=t[62]:(q=E?(0,S.jsx)(`p`,{className:`text-sm text-destructive`,children:E}):null,t[61]=E,t[62]=q);let J;t[63]!==z||t[64]!==me?(J=z?(0,S.jsxs)(`div`,{className:`space-y-1`,children:[(0,S.jsx)(`p`,{className:`whitespace-pre-wrap break-words text-sm text-destructive`,children:z}),me?(0,S.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Pick a different destination, or use the existing-folder option to point at what's already there.`}):null]}):null,t[63]=z,t[64]=me,t[65]=J):J=t[65];let Y;t[66]===i?Y=t[67]:(Y=()=>i(!1),t[66]=i,t[67]=Y);let X;t[68]!==A||t[69]!==Y?(X=(0,S.jsx)(te,{type:`button`,variant:`ghost`,disabled:A,onClick:Y,children:`Cancel`}),t[68]=A,t[69]=Y,t[70]=X):X=t[70];let ve=d===`clone`?`Clone & continue`:`Use folder & continue`,Z;t[71]!==he||t[72]!==ve?(Z=(0,S.jsx)(te,{type:`submit`,disabled:he,children:ve}),t[71]=he,t[72]=ve,t[73]=Z):Z=t[73];let Q;t[74]!==X||t[75]!==Z?(Q=(0,S.jsxs)(g,{children:[X,Z]}),t[74]=X,t[75]=Z,t[76]=Q):Q=t[76];let $;t[77]!==pe||t[78]!==W||t[79]!==G||t[80]!==K||t[81]!==q||t[82]!==J||t[83]!==Q?($=(0,S.jsxs)(`form`,{className:`space-y-4`,onSubmit:pe,children:[W,G,K,q,J,Q]}),t[77]=pe,t[78]=W,t[79]=G,t[80]=K,t[81]=q,t[82]=J,t[83]=Q,t[84]=$):$=t[84];let ye;return t[85]!==U||t[86]!==$?(ye=(0,S.jsxs)(S.Fragment,{children:[U,$]}),t[85]=U,t[86]=$,t[87]=ye):ye=t[87],ye}function se(e){let t=(0,ie.c)(28),{selected:n,disabled:r,onSelect:i,title:a,children:o}=e,s=r?-1:0,c=n?`border-primary`:`border-border`,l=!r&&`cursor-pointer`,u;t[0]!==c||t[1]!==l?(u=d(`flex items-start gap-3 rounded-md border p-3`,c,l),t[0]=c,t[1]=l,t[2]=u):u=t[2];let f,p;t[3]!==r||t[4]!==i?(f=()=>{r||i()},p=e=>{r||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),i())},t[3]=r,t[4]=i,t[5]=f,t[6]=p):(f=t[5],p=t[6]);let m=n?`border-primary`:`border-muted-foreground`,h;t[7]===m?h=t[8]:(h=d(`mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full border`,m),t[7]=m,t[8]=h);let g;t[9]===n?g=t[10]:(g=n?(0,S.jsx)(`span`,{className:`size-2 rounded-full bg-primary`}):null,t[9]=n,t[10]=g);let _;t[11]!==h||t[12]!==g?(_=(0,S.jsx)(`span`,{"aria-hidden":!0,className:h,children:g}),t[11]=h,t[12]=g,t[13]=_):_=t[13];let v;t[14]===a?v=t[15]:(v=(0,S.jsx)(`p`,{className:`text-sm font-medium`,children:a}),t[14]=a,t[15]=v);let y;t[16]!==o||t[17]!==v?(y=(0,S.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1`,children:[v,o]}),t[16]=o,t[17]=v,t[18]=y):y=t[18];let b;return t[19]!==n||t[20]!==s||t[21]!==_||t[22]!==y||t[23]!==u||t[24]!==f||t[25]!==p||t[26]!==a?(b=(0,S.jsxs)(`div`,{role:`radio`,"aria-checked":n,"aria-label":a,tabIndex:s,className:u,onClick:f,onKeyDown:p,children:[_,y]}),t[19]=n,t[20]=s,t[21]=_,t[22]=y,t[23]=u,t[24]=f,t[25]=p,t[26]=a,t[27]=b):b=t[27],b}export{oe as n,ae as r,C as t};
@@ -1,3 +1,3 @@
1
- import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Br as t,Qr as n,hi as r,jr as i,kr as a,ni as o,qr as s,ri as c}from"./boot-vendor-CKEhulXz.js";import{Am as l,Co as u,Dh as d,Do as f,Eo as p,Fh as m,Gd as h,Go as g,Gr as _,Gt as v,Ki as y,Lc as b,Qi as x,So as S,To as C,ei as w,g as T,ia as E,jh as D,jn as O,qi as k,qr as A,qt as j,ri as M,s_ as N,ti as P,vg as F,wo as I}from"./index-CfvM6UcU.js";import{r as L}from"./settings-sections-BMr_XU5l.js";import{n as R}from"./index.browser-usHDzq3C.js";import{t as z}from"./OptionPicker-Cy_W5NWS.js";import{a as B,i as V,n as H,o as ee}from"./dist-CWXlD45B.js";import{t as U}from"./textarea-DY_k-BJR.js";import{t as W}from"./switch-BjJ8825r.js";import{C as te,S as ne,b as re}from"./resource-list-BKpxiO2e.js";import{_ as G,a as K,d as q,g as J,h as Y,i as X,l as ie,n as ae,o as Z,p as oe,s as se,t as ce}from"./sortable.esm-Bb-mbyoc.js";import"./icon-extended-D2fR2GTF.js";var le=e(r(),1),Q=a();function ue(e){return e.replace(/\\(n|r|t|"|\\)/gu,(e,t)=>t===`n`?`
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Br as t,Qr as n,hi as r,jr as i,kr as a,ni as o,qr as s,ri as c}from"./boot-vendor-CKEhulXz.js";import{Am as l,Co as u,Dh as d,Do as f,Eo as p,Fh as m,Gd as h,Go as g,Gr as _,Gt as v,Ki as y,Lc as b,Qi as x,So as S,To as C,ei as w,g as T,ia as E,jh as D,jn as O,qi as k,qr as A,qt as j,ri as M,s_ as N,ti as P,vg as F,wo as I}from"./index-DCps_qBD.js";import{r as L}from"./settings-sections-Dfo35J2q.js";import{n as R}from"./index.browser-usHDzq3C.js";import{t as z}from"./OptionPicker-CxOGHDd8.js";import{a as B,i as V,n as H,o as ee}from"./dist-DCULoGTS.js";import{t as U}from"./textarea-DpRLVuDl.js";import{t as W}from"./switch-BRYzbFH-.js";import{C as te,S as ne,b as re}from"./resource-list-DLZLjUCf.js";import{_ as G,a as K,d as q,g as J,h as Y,i as X,l as ie,n as ae,o as Z,p as oe,s as se,t as ce}from"./sortable.esm-Bb-mbyoc.js";import"./icon-extended-C0LTNXfN.js";var le=e(r(),1),Q=a();function ue(e){return e.replace(/\\(n|r|t|"|\\)/gu,(e,t)=>t===`n`?`
2
2
  `:t===`r`?`\r`:t===`t`?` `:t)}function de(e){let t=/\s+#/u.exec(e);return t?e.slice(0,t.index):e}function fe(e){let t=e.split(/\r?\n/u),n=[],r=[];for(let e=0;e<t.length;e+=1){let i=e+1,a=(t[e]??``).trim();if(a===``||a.startsWith(`#`))continue;let o=/^(?:export\s+)?([^=\s]+)\s*=\s*(.*)$/su.exec(a);if(!o){r.push(`Line ${e+1}: expected NAME=value.`);continue}let s=o[1]??``,c=o[2]??``,l=c.startsWith(`"`)?`"`:c.startsWith(`'`)?`'`:null;if(l===null){n.push({name:s,value:de(c).trim()});continue}c=c.slice(1);let u=``,d=!1;for(;;){let n=-1,a=!1;for(let e=0;e<c.length;e+=1){let t=c[e];if(t===l&&!a){n=e;break}a=l===`"`&&t===`\\`&&!a}if(n!==-1){let e=c.slice(n+1).trim();e!==``&&!e.startsWith(`#`)&&r.push(`Line ${i}: unexpected text after closing quote.`),u+=c.slice(0,n),d=!0;break}if(u+=`${c}\n`,e+=1,e>=t.length)break;c=t[e]??``}if(!d){r.push(`Line ${i}: unterminated ${l} quote.`);continue}n.push({name:s,value:l===`"`?ue(u):u})}return{entries:n,errors:r}}var $=e(c(),1);function pe(e){let t=(0,Q.c)(50),{open:n,onOpenChange:r,onImport:i}=e,[a,o]=(0,le.useState)(``),s,c,l,d,m,h,g,_,v,y,b;if(t[0]!==r||t[1]!==n||t[2]!==a){d=fe(a);let e;t[14]===r?e=t[15]:(e=()=>{o(``),r(!1)},t[14]=r,t[15]=e),l=e,c=S,y=n,t[16]!==l||t[17]!==r?(b=e=>e?r(!0):l(),t[16]=l,t[17]=r,t[18]=b):b=t[18],s=u,m=`sm:max-w-xl`,t[19]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsxs)(p,{children:[(0,$.jsx)(f,{children:`Import from .env`}),(0,$.jsx)(I,{children:`Paste the contents of a .env file. Existing variables with the same name are replaced; nothing is saved until you save the section.`})]}),t[19]=h):h=t[19];let i;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(i=e=>o(e.target.value),t[20]=i):i=t[20],t[21]===a?g=t[22]:(g=(0,$.jsx)(U,{className:`min-h-48 font-mono text-xs`,"aria-label":`Environment file contents`,placeholder:`DATABASE_URL=postgres://…
3
3
  SENTRY_DSN=https://…`,autoComplete:`off`,spellCheck:!1,value:a,onChange:i}),t[21]=a,t[22]=g);let x=a.trim()===``?`Comments and blank lines are ignored.`:`${d.entries.length} variable${d.entries.length===1?``:`s`} found.`;t[23]===x?_=t[24]:(_=(0,$.jsx)(`p`,{className:`text-xs text-subtle-foreground`,role:`status`,children:x}),t[23]=x,t[24]=_),v=d.errors.length>0&&(0,$.jsx)(`ul`,{role:`alert`,className:`space-y-1 text-xs text-destructive-text`,children:d.errors.slice(0,5).map(me)}),t[0]=r,t[1]=n,t[2]=a,t[3]=s,t[4]=c,t[5]=l,t[6]=d,t[7]=m,t[8]=h,t[9]=g,t[10]=_,t[11]=v,t[12]=y,t[13]=b}else s=t[3],c=t[4],l=t[5],d=t[6],m=t[7],h=t[8],g=t[9],_=t[10],v=t[11],y=t[12],b=t[13];let x;t[25]===l?x=t[26]:(x=(0,$.jsx)(D,{size:`sm`,variant:`ghost`,onClick:l,children:`Cancel`}),t[25]=l,t[26]=x);let w=d.entries.length===0||d.errors.length>0,T;t[27]!==l||t[28]!==i||t[29]!==d.entries?(T=()=>{i(d.entries),l()},t[27]=l,t[28]=i,t[29]=d.entries,t[30]=T):T=t[30];let E;t[31]!==T||t[32]!==w?(E=(0,$.jsx)(D,{size:`sm`,disabled:w,onClick:T,children:`Import`}),t[31]=T,t[32]=w,t[33]=E):E=t[33];let O;t[34]!==E||t[35]!==x?(O=(0,$.jsxs)(C,{children:[x,E]}),t[34]=E,t[35]=x,t[36]=O):O=t[36];let k;t[37]!==s||t[38]!==m||t[39]!==O||t[40]!==h||t[41]!==g||t[42]!==_||t[43]!==v?(k=(0,$.jsxs)(s,{className:m,children:[h,g,_,v,O]}),t[37]=s,t[38]=m,t[39]=O,t[40]=h,t[41]=g,t[42]=_,t[43]=v,t[44]=k):k=t[44];let A;return t[45]!==c||t[46]!==k||t[47]!==y||t[48]!==b?(A=(0,$.jsx)(c,{open:y,onOpenChange:b,children:k}),t[45]=c,t[46]=k,t[47]=y,t[48]=b,t[49]=A):A=t[49],A}function me(e){return(0,$.jsx)(`li`,{children:e},e)}var he=`global`;function ge(){let e=(0,Q.c)(2),[t,n]=(0,le.useState)(he),r=b().data?.projects??[],i=r.find(e=>e.id===t)??null,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(`span`,{className:`text-sm text-subtle-foreground`,children:`Showing variables for`}),e[0]=a):a=e[0];let o;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(o={value:he,label:`All projects`},e[1]=o):o=e[1],(0,$.jsx)(ve,{projectId:i?.id??null,scopeControl:(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-1`,children:[a,(0,$.jsx)(z,{modal:!1,label:`Scope`,className:`text-sm`,value:i?.id??he,onChange:n,options:[o,...r.map(_e)]})]})},i?.id??he)}function _e(e){return{value:e.id,label:e.name}}function ve(e){let t=(0,Q.c)(32),{projectId:r,scopeControl:i}=e,a=o(),s=g().data?.generalSettings,c=T(),l;t[0]===r?l=t[1]:(l=F(r),t[0]=r,t[1]=l);let u;t[2]===r?u=t[3]:(u=async()=>r===null?{...await h.system.machineEnvironment(),inheritedVariables:[]}:h.projects.machineEnvironment({projectId:r}),t[2]=r,t[3]=u);let d;t[4]!==l||t[5]!==u?(d={queryKey:l,queryFn:u},t[4]=l,t[5]=u,t[6]=d):d=t[6];let f=n(d),p;t[7]===r?p=t[8]:(p=async e=>{let t={variables:e.map(ye)};r===null?await h.system.replaceMachineEnvironment(t):await h.projects.replaceMachineEnvironment({...t,projectId:r})},t[7]=r,t[8]=p);let m=p,_=r??he,y=r!==null,b;t[9]===f.data?.inheritedVariables?b=t[10]:(b=f.data?.inheritedVariables??[],t[9]=f.data?.inheritedVariables,t[10]=b);let x=f.data??null,S=s?.machineGitCredentialsEnabled??!0,C=!s,w;t[11]===a?w=t[12]:(w=()=>{v({queryClient:a}),j({queryClient:a})},t[11]=a,t[12]=w);let E;t[13]===f?E=t[14]:(E=()=>void f.refetch(),t[13]=f,t[14]=E);let D;t[15]!==f||t[16]!==s||t[17]!==c?(D=e=>{s&&c.mutate({machineGitCredentialsEnabled:e},{onSuccess:()=>void f.refetch()})},t[15]=f,t[16]=s,t[17]=c,t[18]=D):D=t[18];let O;return t[19]!==f.isError||t[20]!==m||t[21]!==i||t[22]!==C||t[23]!==w||t[24]!==E||t[25]!==D||t[26]!==_||t[27]!==y||t[28]!==b||t[29]!==x||t[30]!==S?(O=(0,$.jsx)(be,{projectScope:y,scopeControl:i,inheritedVariables:b,environment:x,loadFailed:f.isError,gitCredentialsEnabled:S,gitSwitchDisabled:C,onSave:m,onSaved:w,onSaveFailed:E,onSetGitCredentials:D},_),t[19]=f.isError,t[20]=m,t[21]=i,t[22]=C,t[23]=w,t[24]=E,t[25]=D,t[26]=_,t[27]=y,t[28]=b,t[29]=x,t[30]=S,t[31]=O):O=t[31],O}function ye(e){return{name:e.name,value:e.value,note:e.note}}function be(e){let t=(0,Q.c)(34),{environment:n,projectScope:r,scopeControl:i,inheritedVariables:a,loadFailed:o,gitCredentialsEnabled:c,gitSwitchDisabled:l,onSave:u,onSaved:d,onSaveFailed:f,onSetGitCredentials:p}=e,m=r===void 0?!1:r,h=a===void 0?[]:a,g=o===void 0?!1:o,_=l===void 0?!1:l,[v,y]=(0,le.useState)(null),b;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=new Set,t[0]=b):b=t[0];let[x,S]=(0,le.useState)(b),C;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(C=new Set,t[1]=C):C=t[1];let[w,T]=(0,le.useState)(C),[E,O]=(0,le.useState)(null),[k,A]=(0,le.useState)(!1),j=v??(n?.variables??[]).map(Ce),M=j.map(e=>j.filter(t=>t.name===e.name).length>1?`Variable name already exists.`:N.safeParse({name:e.name,value:e.value??``,note:e.note}).success?null:e.name?`Use uppercase letters, numbers, and underscores; start with a letter or underscore.`:`Enter a variable name.`),P;t[2]===d?P=t[3]:(P=async()=>{await d?.(),y(null),S(new Set),O(null)},t[2]=d,t[3]=P);let F;t[4]===f?F=t[5]:(F=()=>{f?.(),O(`Some changes could not be saved. Your edits are retained; try saving again.`)},t[4]=f,t[5]=F);let I=s({mutationFn:()=>u(j),onSuccess:P,onError:F}),L=n===null||I.isPending,z;t[6]===n?.variables?z=t[7]:(z=n?.variables??[],t[6]=n?.variables,t[7]=z);let B=z,V;t[8]!==v||t[9]!==B?(V=v!==null&&(v.length!==B.length||v.some((e,t)=>{let n=B[t];return n===void 0||n.name!==e.name||n.note!==e.note||e.value!==null})),t[8]=v,t[9]=B,t[10]=V):V=t[10];let H=V,U=(e,t)=>{y(j.map(n=>n.id===e?{...n,...t}:n)),O(null)},W=()=>y([...j,{id:R(),nameLocked:!1,name:``,value:``,secret:!0,note:null}]),te=e=>{let t=[...j];for(let n of e){let e=t.findIndex(e=>e.name===n.name),r=e===-1?void 0:t[e];r?t[e]={...r,value:n.value}:t.push({id:R(),nameLocked:!1,name:n.name,value:n.value,secret:!0,note:null})}y(t),O(null)},ne=e=>y([...j,{...e,id:e.name,nameLocked:!0,value:``}]),re=m?h:[],G=new Set(re.map(Se)),K=[];for(let e of re){let t=j.findIndex(t=>t.name===e.name),n=j[t];K.push(n?{kind:`row`,row:n,index:t,overridesGlobal:!0}:{kind:`inherited`,variable:e})}j.forEach((e,t)=>{G.has(e.name)||K.push({kind:`row`,row:e,index:t,overridesGlobal:!1})});let q=n?.builtInGit,J=j.some(xe)||G.has(`GH_TOKEN`),Y=ee,X;t[11]!==n||t[12]!==g?(X=n===null&&!g&&(0,$.jsx)(`p`,{className:`text-xs text-subtle-foreground`,children:`Loading…`}),t[11]=n,t[12]=g,t[13]=X):X=t[13];let ie=(n!==null||g)&&(0,$.jsx)(Oe,{git:q,enabled:c,switchDisabled:_,projectScope:m,overridden:J,overrideDisabled:L||J,onSetEnabled:p,onOverride:()=>ne({name:`GH_TOKEN`,value:null,secret:!0,note:null})}),ae=n!==null&&K.map(e=>e.kind===`inherited`?(0,$.jsx)(ke,{variable:e.variable,disabled:L,onOverride:()=>ne(e.variable)},`inherited:${e.variable.name}`):(0,$.jsx)(Ae,{row:e.row,index:e.index,disabled:L,error:w.has(e.row.id)?M[e.index]??null:null,revealed:x.has(e.row.id),caption:e.overridesGlobal?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(De,{children:`Override`}),e.row.note??`Replaces the global value; remove it to inherit again.`]}):e.row.note,onBlur:()=>T(t=>new Set(t).add(e.row.id)),onNameChange:t=>U(e.row.id,{name:t}),onValueChange:t=>U(e.row.id,{value:t}),onToggleReveal:()=>S(t=>{let n=new Set(t);return n.has(e.row.id)?n.delete(e.row.id):n.add(e.row.id),n}),onRemove:()=>y(j.filter(t=>t.id!==e.row.id))},e.row.id)),Z;t[14]!==i||t[15]!==X||t[16]!==ie||t[17]!==ae?(Z=(0,$.jsxs)(`div`,{className:`space-y-5`,children:[i,X,ie,ae]}),t[14]=i,t[15]=X,t[16]=ie,t[17]=ae,t[18]=Z):Z=t[18];let oe;t[19]===g?oe=t[20]:(oe=g&&(0,$.jsx)(`p`,{role:`alert`,className:`text-xs text-destructive-text`,children:`Could not load machine variables. Try refreshing this page.`}),t[19]=g,t[20]=oe);let se;t[21]===E?se=t[22]:(se=E&&(0,$.jsx)(`p`,{role:`alert`,className:`text-xs text-destructive-text`,children:E}),t[21]=E,t[22]=se);let ce=n!==null&&(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,$.jsx)(D,{size:`sm`,variant:`outline`,className:`flex-1 @min-[36rem]/settings:flex-none`,disabled:L,onClick:W,children:`Add variable`}),(0,$.jsx)(D,{size:`sm`,variant:`outline`,className:`flex-1 @min-[36rem]/settings:flex-none`,disabled:L,onClick:()=>A(!0),children:`Import from .env`}),(0,$.jsxs)(`div`,{className:`ml-auto flex w-full items-center justify-end gap-2 @min-[36rem]/settings:w-auto`,children:[H&&(0,$.jsx)(D,{size:`sm`,variant:`ghost`,disabled:I.isPending,onClick:()=>{y(null),O(null),S(new Set)},children:`Discard changes`}),(0,$.jsx)(D,{size:`sm`,disabled:L||!H||M.some(Boolean),onClick:()=>I.mutate(),children:I.isPending?`Saving…`:`Save variables`})]})]}),ue;t[23]!==te||t[24]!==k||t[25]!==A?(ue=(0,$.jsx)(pe,{open:k,onOpenChange:A,onImport:te}),t[23]=te,t[24]=k,t[25]=A,t[26]=ue):ue=t[26];let de;return t[27]!==Y||t[28]!==Z||t[29]!==oe||t[30]!==se||t[31]!==ce||t[32]!==ue?(de=(0,$.jsxs)(Y,{title:`Environment variables`,description:`Global variables are available to Moonlet-managed processes on every connected machine. Project variables override them for work in that project.`,bodyClassName:`space-y-8`,children:[Z,oe,se,ce,ue]}),t[27]=Y,t[28]=Z,t[29]=oe,t[30]=se,t[31]=ce,t[32]=ue,t[33]=de):de=t[33],de}function xe(e){return e.name===`GH_TOKEN`}function Se(e){return e.name}function Ce(e){return{...e,id:e.name,nameLocked:!0}}var we=`grid min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-2 @min-[32rem]/variable:grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto]`,Te=`text-xs leading-snug text-subtle-foreground`;function Ee(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(i,{to:L(`environment-variables`),className:`rounded-sm underline underline-offset-2 hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,children:`global settings`}),e[0]=t):t=e[0],t}function De(e){let t=(0,Q.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:`text-foreground`,children:n}),` · `]}),t[0]=n,t[1]=r),r}function Oe(e){let t=(0,Q.c)(35),{git:n,enabled:r,switchDisabled:i,projectScope:a,overridden:o,overrideDisabled:s,onSetEnabled:c,onOverride:l}=e,u=i===void 0?!1:i,f=a===void 0?!1:a,p=o===void 0?!1:o,m=s===void 0?!1:s,h=!r||p,g=n?.status===`not logged in`,_=`col-span-2 font-mono @min-[32rem]/variable:col-span-1 ${h?`opacity-50`:``}`,v;t[0]===_?v=t[1]:(v=(0,$.jsx)(E,{className:_,"aria-label":`Automatic variable name`,value:`GH_TOKEN`,readOnly:!0}),t[0]=_,t[1]=v);let y=`font-mono ${h?`opacity-50`:``}`,b=n?.status===`logged in`?`••••••••`:``,x=n?.status===`disabled`?`Disabled`:g?`Not available`:`Checking…`,S;t[2]!==y||t[3]!==b||t[4]!==x?(S=(0,$.jsx)(E,{className:y,"aria-label":`Automatic GH_TOKEN value`,value:b,placeholder:x,readOnly:!0}),t[2]=y,t[3]=b,t[4]=x,t[5]=S):S=t[5];let C;t[6]!==r||t[7]!==l||t[8]!==c||t[9]!==m||t[10]!==f||t[11]!==u?(C=(0,$.jsx)(`div`,{className:`flex size-8 items-center justify-center`,children:f?(0,$.jsx)(D,{size:`icon`,variant:`ghost`,className:`size-8 text-subtle-foreground`,"aria-label":`Override GH_TOKEN`,disabled:m,onClick:l,children:(0,$.jsx)(d,{name:`Edit`,className:`size-4`})}):(0,$.jsx)(W,{"aria-label":`Automatic GH_TOKEN`,checked:r,disabled:u,onCheckedChange:c})}),t[6]=r,t[7]=l,t[8]=c,t[9]=m,t[10]=f,t[11]=u,t[12]=C):C=t[12];let w;t[13]!==S||t[14]!==C||t[15]!==v?(w=(0,$.jsxs)(`div`,{className:we,children:[v,S,C]}),t[13]=S,t[14]=C,t[15]=v,t[16]=w):w=t[16];let T=`${Te} ${h?`opacity-50`:``}`,O;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(De,{children:`Automatic`}),t[17]=O):O=t[17];let k=g&&!p?`alert`:`status`,A=g&&!p?`text-destructive-text`:void 0,j;t[18]!==n?.status||t[19]!==g||t[20]!==p?(j=p?`Overridden by the GH_TOKEN variable below.`:g?`GitHub is not logged in. Run gh auth login on the server, or add your own GH_TOKEN.`:n?.status===`logged in`?(0,$.jsxs)($.Fragment,{children:[`Forwarded to other machines using`,` `,(0,$.jsx)(`code`,{children:`gh auth token --hostname github.com`}),`. The primary machine uses its local Git authentication.`]}):n?.status===`disabled`?`Disabled — no automatic GitHub credentials are sent to other machines.`:n?.status===`overridden`?`The server’s GitHub login will be used after saving.`:`Checking the server’s GitHub login…`,t[18]=n?.status,t[19]=g,t[20]=p,t[21]=j):j=t[21];let M;t[22]===f?M=t[23]:(M=f?(0,$.jsxs)($.Fragment,{children:[` Managed in `,(0,$.jsx)(Ee,{}),`.`]}):null,t[22]=f,t[23]=M);let N;t[24]!==k||t[25]!==A||t[26]!==j||t[27]!==M?(N=(0,$.jsxs)(`span`,{role:k,className:A,children:[j,M]}),t[24]=k,t[25]=A,t[26]=j,t[27]=M,t[28]=N):N=t[28];let P;t[29]!==T||t[30]!==N?(P=(0,$.jsxs)(`p`,{className:T,children:[O,N]}),t[29]=T,t[30]=N,t[31]=P):P=t[31];let F;return t[32]!==w||t[33]!==P?(F=(0,$.jsxs)(`div`,{className:`@container/variable space-y-2`,children:[w,P]}),t[32]=w,t[33]=P,t[34]=F):F=t[34],F}function ke(e){let t=(0,Q.c)(22),{variable:n,disabled:r,onOverride:i}=e,a=r===void 0?!1:r,o=`Global variable ${n.name}`,s;t[0]!==o||t[1]!==n.name?(s=(0,$.jsx)(E,{className:`col-span-2 font-mono @min-[32rem]/variable:col-span-1`,"aria-label":o,value:n.name,readOnly:!0}),t[0]=o,t[1]=n.name,t[2]=s):s=t[2];let c=`Global value for ${n.name}`,l;t[3]===c?l=t[4]:(l=(0,$.jsx)(E,{className:`font-mono`,"aria-label":c,value:`••••••••`,readOnly:!0}),t[3]=c,t[4]=l);let u=`Override ${n.name}`,f;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,$.jsx)(d,{name:`Edit`,className:`size-4`}),t[5]=f):f=t[5];let p;t[6]!==a||t[7]!==i||t[8]!==u?(p=(0,$.jsx)(D,{size:`icon`,variant:`ghost`,className:`size-8 text-subtle-foreground`,"aria-label":u,disabled:a,onClick:i,children:f}),t[6]=a,t[7]=i,t[8]=u,t[9]=p):p=t[9];let m;t[10]!==s||t[11]!==l||t[12]!==p?(m=(0,$.jsxs)(`div`,{className:we,children:[s,l,p]}),t[10]=s,t[11]=l,t[12]=p,t[13]=m):m=t[13];let h;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(De,{children:`Global`}),t[14]=h):h=t[14];let g;t[15]===n.note?g=t[16]:(g=n.note??(0,$.jsxs)($.Fragment,{children:[`Inherited from `,(0,$.jsx)(Ee,{}),`.`]}),t[15]=n.note,t[16]=g);let _;t[17]===g?_=t[18]:(_=(0,$.jsxs)(`p`,{className:Te,children:[h,g]}),t[17]=g,t[18]=_);let v;return t[19]!==_||t[20]!==m?(v=(0,$.jsxs)(`div`,{className:`@container/variable space-y-2`,children:[m,_]}),t[19]=_,t[20]=m,t[21]=v):v=t[21],v}function Ae(e){let t=(0,Q.c)(46),{row:n,index:r,disabled:i,error:a,revealed:o,caption:s,onBlur:c,onNameChange:l,onValueChange:u,onToggleReveal:f,onRemove:p}=e,m=i===void 0?!1:i,h=a===void 0?null:a,g=o===void 0?!1:o,_=s===void 0?null:s,v=`Variable name ${r+1}`,y=h!==null,b;t[0]===l?b=t[1]:(b=e=>l(e.target.value),t[0]=l,t[1]=b);let x;t[2]!==m||t[3]!==c||t[4]!==n.name||t[5]!==n.nameLocked||t[6]!==v||t[7]!==y||t[8]!==b?(x=(0,$.jsx)(E,{className:`col-span-2 font-mono @min-[32rem]/variable:col-span-1`,"aria-label":v,placeholder:`KEY`,value:n.name,disabled:m,readOnly:n.nameLocked,"aria-invalid":y,onBlur:c,onChange:b}),t[2]=m,t[3]=c,t[4]=n.name,t[5]=n.nameLocked,t[6]=v,t[7]=y,t[8]=b,t[9]=x):x=t[9];let S=`Value for ${n.name||`variable ${r+1}`}`,C=g?`text`:`password`,w=n.value===null?`Saved secret · enter to replace`:`VALUE`,T=n.value??``,O;t[10]===u?O=t[11]:(O=e=>u(e.target.value),t[10]=u,t[11]=O);let k;t[12]!==m||t[13]!==C||t[14]!==w||t[15]!==T||t[16]!==O||t[17]!==S?(k=(0,$.jsx)(E,{className:`min-w-0 pr-9 font-mono`,"aria-label":S,type:C,placeholder:w,value:T,autoComplete:`off`,disabled:m,onChange:O}),t[12]=m,t[13]=C,t[14]=w,t[15]=T,t[16]=O,t[17]=S,t[18]=k):k=t[18];let A=`${g?`Hide`:`Show`} ${n.name||`value`}`,j=m||n.value===null,M=g?`EyeOff`:`Eye`,N;t[19]===M?N=t[20]:(N=(0,$.jsx)(d,{name:M,className:`size-4`}),t[19]=M,t[20]=N);let P;t[21]!==f||t[22]!==A||t[23]!==j||t[24]!==N?(P=(0,$.jsx)(D,{size:`icon`,variant:`ghost`,className:`absolute inset-y-0 right-0 my-auto size-8 text-subtle-foreground`,"aria-label":A,disabled:j,onClick:f,children:N}),t[21]=f,t[22]=A,t[23]=j,t[24]=N,t[25]=P):P=t[25];let F;t[26]!==k||t[27]!==P?(F=(0,$.jsxs)(`div`,{className:`relative min-w-0`,children:[k,P]}),t[26]=k,t[27]=P,t[28]=F):F=t[28];let I=`Remove ${n.name||`variable`}`,L;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,$.jsx)(d,{name:`X`,className:`size-4`}),t[29]=L):L=t[29];let R;t[30]!==m||t[31]!==p||t[32]!==I?(R=(0,$.jsx)(D,{size:`icon`,className:`size-8 text-subtle-foreground`,variant:`ghost`,"aria-label":I,disabled:m,onClick:p,children:L}),t[30]=m,t[31]=p,t[32]=I,t[33]=R):R=t[33];let z;t[34]!==F||t[35]!==R||t[36]!==x?(z=(0,$.jsxs)(`div`,{className:we,children:[x,F,R]}),t[34]=F,t[35]=R,t[36]=x,t[37]=z):z=t[37];let B;t[38]===_?B=t[39]:(B=_&&(0,$.jsx)(`p`,{className:Te,children:_}),t[38]=_,t[39]=B);let V;t[40]===h?V=t[41]:(V=h&&(0,$.jsx)(`p`,{role:`alert`,className:`text-xs text-destructive-text`,children:h}),t[40]=h,t[41]=V);let H;return t[42]!==z||t[43]!==B||t[44]!==V?(H=(0,$.jsxs)(`div`,{className:`@container/variable space-y-2`,children:[z,B,V]}),t[42]=z,t[43]=B,t[44]=V,t[45]=H):H=t[45],H}var je=[({transform:e})=>({...e,x:0})];function Me(e){let t=(0,Q.c)(14),{ids:n,disabled:r,onReorder:i,children:a}=e,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={activationConstraint:{distance:4}},t[0]=o):o=t[0];let s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s={coordinateGetter:X},t[1]=s):s=t[1];let c=J(Y(q,o),Y(ie,s)),l;t[2]!==r||t[3]!==i?(l=e=>{r||typeof e.active.id!=`string`||typeof e.over?.id!=`string`||i(e.active.id,e.over.id)},t[2]=r,t[3]=i,t[4]=l):l=t[4];let u=l,d;t[5]===a?d=t[6]:(d=(0,$.jsx)(B,{children:a}),t[5]=a,t[6]=d);let f;t[7]!==n||t[8]!==d?(f=(0,$.jsx)(ce,{items:n,strategy:Z,children:d}),t[7]=n,t[8]=d,t[9]=f):f=t[9];let p;return t[10]!==u||t[11]!==c||t[12]!==f?(p=(0,$.jsx)(se,{sensors:c,collisionDetection:oe,modifiers:je,onDragEnd:u,children:f}),t[10]=u,t[11]=c,t[12]=f,t[13]=p):p=t[13],p}function Ne(e){let t=(0,Q.c)(23),{id:n,disabled:r,label:i}=e,a;t[0]!==r||t[1]!==n?(a={id:n,disabled:r},t[0]=r,t[1]=n,t[2]=a):a=t[2];let{attributes:o,isDragging:s,listeners:c,setActivatorNodeRef:l,setNodeRef:u,transform:f,transition:p}=K(a),h;t[3]===f?h=t[4]:(h=G.Translate.toString(f),t[3]=f,t[4]=h);let g;t[5]!==h||t[6]!==p?(g={transform:h,transition:p},t[5]=h,t[6]=p,t[7]=g):g=t[7];let _=g,v=!r&&`cursor-grab active:cursor-grabbing`,y;t[8]===v?y=t[9]:(y=m(`-ml-2 h-8 w-7 shrink-0 touch-none text-muted-foreground`,v),t[8]=v,t[9]=y);let b=`Reorder ${i}`,x;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(d,{name:`DragDropVertical`,"aria-hidden":`true`}),t[10]=x):x=t[10];let S;t[11]!==o||t[12]!==r||t[13]!==c||t[14]!==l||t[15]!==y||t[16]!==b?(S=(0,$.jsx)(D,{ref:l,type:`button`,variant:`ghost`,size:`icon`,className:y,disabled:r,"aria-label":b,...o,...c,children:x}),t[11]=o,t[12]=r,t[13]=c,t[14]=l,t[15]=y,t[16]=b,t[17]=S):S=t[17];let C=S,w;return t[18]!==C||t[19]!==s||t[20]!==u||t[21]!==_?(w={setNodeRef:u,style:_,isDragging:s,handle:C},t[18]=C,t[19]=s,t[20]=u,t[21]=_,t[22]=w):w=t[22],w}var Pe=`Repositories Moonlet can work in. Drag to change the order projects appear in the sidebar.`;function Fe(e){let t=/^[^@]+@([^:]+):(.+?)(?:\.git)?$/.exec(e);if(t)return`${t[1]}/${t[2]}`;try{let t=new URL(e);return`${t.host}${t.pathname.replace(/\.git$/,``)}`}catch{return e}}function Ie(e,t,n){if(t===n)return null;let r=e.indexOf(t),i=e.indexOf(n);if(r===-1||i===-1)return null;let a=ae([...e],r,i);return{order:a,previousProjectId:a[i-1]??null,nextProjectId:a[i+1]??null}}function Le(e,t){return`${e} ${e===1?t:`${t}s`}`}function Re(e,t){let n=0,r=0;for(let i of new Set(e.sources.map(e=>e.hostId))){let e=t.get(i);e&&(n+=1,e.status===`connected`&&(r+=1))}return{configuredMachineCount:n,onlineMachineCount:r,totalMachineCount:t.size}}function ze(e){return e.configuredMachineCount===0?`Not set up on any machine`:e.totalMachineCount<=1?`1 machine`:`${e.configuredMachineCount} of ${e.totalMachineCount} machines`}function Be(e){let n=(0,Q.c)(73),{project:r,summary:a,dragDisabled:o,onRename:s,onDelete:c}=e,u;n[0]!==o||n[1]!==r.id||n[2]!==r.name?(u={id:r.id,disabled:o,label:r.name},n[0]=o,n[1]=r.id,n[2]=r.name,n[3]=u):u=n[3];let{setNodeRef:f,style:p,isDragging:h,handle:g}=Ne(u),_=t(),v;n[4]===r.id?v=n[5]:(v=l(r.id),n[4]=r.id,n[5]=v);let y=v,b;n[6]===r.gitRemoteUrl?b=n[7]:(b=r.gitRemoteUrl===null?null:Fe(r.gitRemoteUrl),n[6]=r.gitRemoteUrl,n[7]=b);let x=b,S=a.configuredMachineCount===0,C=a.configuredMachineCount>0&&a.onlineMachineCount===0,w=h&&`relative z-10 rounded-md bg-card opacity-90 shadow-lift`,T;n[8]===w?T=n[9]:(T=m(`items-start`,w),n[8]=w,n[9]=T);let E;n[10]!==y||n[11]!==_?(E=e=>{te(e)||_(y)},n[10]=y,n[11]=_,n[12]=E):E=n[12];let D=`Open ${r.name} settings`,O;n[13]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(d,{name:`FolderGit`,className:`size-4 shrink-0 text-muted-foreground`}),n[13]=O):O=n[13];let k;n[14]===r.name?k=n[15]:(k=(0,$.jsx)(`span`,{className:`min-w-0 truncate text-sm font-medium text-foreground`,children:r.name}),n[14]=r.name,n[15]=k);let A;n[16]===S?A=n[17]:(A=S?(0,$.jsx)(H,{children:`needs setup`}):null,n[16]=S,n[17]=A);let j;n[18]===C?j=n[19]:(j=C?(0,$.jsx)(H,{children:`offline`}):null,n[18]=C,n[19]=j);let M;n[20]!==A||n[21]!==j||n[22]!==k?(M=(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[O,k,A,j]}),n[20]=A,n[21]=j,n[22]=k,n[23]=M):M=n[23];let N;n[24]===x?N=n[25]:(N=x===null?(0,$.jsx)(`div`,{className:`italic`,children:`No git remote`}):(0,$.jsx)(`div`,{className:`truncate`,children:x}),n[24]=x,n[25]=N);let P=S&&`text-warning-text`,F;n[26]===P?F=n[27]:(F=m(`shrink-0`,P),n[26]=P,n[27]=F);let I;n[28]===a?I=n[29]:(I=ze(a),n[28]=a,n[29]=I);let L;n[30]!==F||n[31]!==I?(L=(0,$.jsx)(`span`,{className:F,children:I}),n[30]=F,n[31]=I,n[32]=L):L=n[32];let R;n[33]===r.threads.length?R=n[34]:(R=Le(r.threads.length,`thread`),n[33]=r.threads.length,n[34]=R);let z;n[35]===R?z=n[36]:(z=(0,$.jsx)(`span`,{className:`shrink-0`,children:R}),n[35]=R,n[36]=z);let B;n[37]!==L||n[38]!==z?(B=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-0.5`,children:[L,z]}),n[37]=L,n[38]=z,n[39]=B):B=n[39];let ee;n[40]!==N||n[41]!==B?(ee=(0,$.jsxs)(`div`,{className:`min-w-0 space-y-0.5 text-xs text-subtle-foreground/75`,children:[N,B]}),n[40]=N,n[41]=B,n[42]=ee):ee=n[42];let U;n[43]!==M||n[44]!==ee?(U=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-0.5`,children:[M,ee]}),n[43]=M,n[44]=ee,n[45]=U):U=n[45];let W;n[46]!==y||n[47]!==U||n[48]!==D?(W=(0,$.jsx)(i,{to:y,"aria-label":D,className:`min-w-0 flex-1 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:U}),n[46]=y,n[47]=U,n[48]=D,n[49]=W):W=n[49];let G=`${r.name} actions`,K;n[50]===s?K=n[51]:(K={label:`Rename`,icon:`Edit`,onSelect:s},n[50]=s,n[51]=K);let q;n[52]===c?q=n[53]:(q={label:`Delete project`,icon:`Trash2`,tone:`destructive`,onSelect:c},n[52]=c,n[53]=q);let J;n[54]!==K||n[55]!==q?(J=[K,q],n[54]=K,n[55]=q,n[56]=J):J=n[56];let Y;n[57]!==G||n[58]!==J?(Y=(0,$.jsx)(re,{label:G,items:J}),n[57]=G,n[58]=J,n[59]=Y):Y=n[59];let X;n[60]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,$.jsx)(ne,{}),n[60]=X):X=n[60];let ie;n[61]===Y?ie=n[62]:(ie=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[Y,X]}),n[61]=Y,n[62]=ie);let ae;n[63]!==W||n[64]!==ie||n[65]!==E?(ae=(0,$.jsxs)(`div`,{"data-project-row":!0,className:`group -mx-2 flex min-w-0 flex-1 cursor-pointer items-start gap-2 rounded-md px-2 py-1.5 transition-colors hover:bg-state-hover focus-within:bg-state-hover`,onClick:E,children:[W,ie]}),n[63]=W,n[64]=ie,n[65]=E,n[66]=ae):ae=n[66];let Z;return n[67]!==g||n[68]!==f||n[69]!==p||n[70]!==ae||n[71]!==T?(Z=(0,$.jsxs)(V,{ref:f,style:p,className:T,children:[g,ae]}),n[67]=g,n[68]=f,n[69]=p,n[70]=ae,n[71]=T,n[72]=Z):Z=n[72],Z}function Ve(){let e=(0,Q.c)(67),t=b(),n=x(),r=M(),i=w(),a=P(),o=O(),[s,c]=(0,le.useState)(null),[l,u]=(0,le.useState)(null),[f,p]=(0,le.useState)(null),m=t.data?.projects,h;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>{p(null)},e[0]=h):h=e[0];let g;e[1]===m?g=e[2]:(g=[m],e[1]=m,e[2]=g),(0,le.useEffect)(h,g);let v;bb0:{if(!m){v=void 0;break bb0}if(!f){v=m;break bb0}let t;if(e[3]!==f||e[4]!==m){let n=new Map(m.map(We)),r=f.flatMap(e=>n.get(e)??[]),i;e[6]===f?i=e[7]:(i=new Set(f),e[6]=f,e[7]=i);let a=i,o;e[8]===a?o=e[9]:(o=e=>!a.has(e.id),e[8]=a,e[9]=o),t=[...r,...m.filter(o)],e[3]=f,e[4]=m,e[5]=t}else t=e[5];v=t}let S=v,C;e[10]===S?C=e[11]:(C=S?.map(Ue)??[],e[10]=S,e[11]=C);let T=C,E;e[12]===n.data?E=e[13]:(E=k(n.data,`persistent`),e[12]=n.data,e[13]=E);let j=E,N;e[14]===j?N=e[15]:(N=new Map(j.map(He)),e[14]=j,e[15]=N);let F=N,I=a.isPending||T.length<2,L;e[16]!==T||e[17]!==a?(L=(e,t)=>{let n=Ie(T,e,t);n!==null&&(p(n.order),a.mutate({id:e,previousProjectId:n.previousProjectId,nextProjectId:n.nextProjectId},{onError:()=>p(null)}))},e[16]=T,e[17]=a,e[18]=L):L=e[18];let R=L,z=!o.isAvailable||o.isCreating,B;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,$.jsx)(d,{name:`Plus`,className:`size-3.5`}),e[19]=B):B=e[19];let V;e[20]!==o.openCreateDialog||e[21]!==z?(V=(0,$.jsxs)(D,{variant:`outline`,size:`sm`,disabled:z,onClick:o.openCreateDialog,children:[B,`Add a project`]}),e[20]=o.openCreateDialog,e[21]=z,e[22]=V):V=e[22];let H;e[23]!==i||e[24]!==I||e[25]!==R||e[26]!==F||e[27]!==T||e[28]!==S||e[29]!==t.isError||e[30]!==r?(H=t.isError?(0,$.jsx)(`p`,{className:`text-sm text-destructive`,role:`alert`,children:`Couldn't load projects.`}):S===void 0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Loading…`}):S.length===0?(0,$.jsx)(`p`,{className:`text-sm text-subtle-foreground`,children:`No projects yet. Add a project to start running threads in a repository.`}):(0,$.jsx)(Me,{ids:T,disabled:I,onReorder:R,children:S.map(e=>(0,$.jsx)(Be,{project:e,summary:Re(e,F),dragDisabled:I,onRename:()=>{r.reset(),c({id:e.id,currentName:e.name})},onDelete:()=>{i.reset(),u({id:e.id,name:e.name})}},e.id))}),e[23]=i,e[24]=I,e[25]=R,e[26]=F,e[27]=T,e[28]=S,e[29]=t.isError,e[30]=r,e[31]=H):H=e[31];let U;e[32]!==H||e[33]!==V?(U=(0,$.jsx)(ee,{title:`Projects`,description:Pe,action:V,children:H}),e[32]=H,e[33]=V,e[34]=U):U=e[34];let W;e[35]!==o.hostId||e[36]!==o.hostName||e[37]!==o.hosts||e[38]!==o.isCreating||e[39]!==o.platform||e[40]!==o.projectPathDialog.onOpenChange||e[41]!==o.projectPathDialog.target||e[42]!==o.submitProjectPath?(W=(0,$.jsx)(y,{target:o.projectPathDialog.target,pending:o.isCreating,platform:o.platform,hostId:o.hostId,hostName:o.hostName,hosts:o.hosts,onOpenChange:o.projectPathDialog.onOpenChange,onSubmit:o.submitProjectPath}),e[35]=o.hostId,e[36]=o.hostName,e[37]=o.hosts,e[38]=o.isCreating,e[39]=o.platform,e[40]=o.projectPathDialog.onOpenChange,e[41]=o.projectPathDialog.target,e[42]=o.submitProjectPath,e[43]=W):W=e[43];let te;e[44]===r.isPending?te=e[45]:(te=e=>{!e&&!r.isPending&&c(null)},e[44]=r.isPending,e[45]=te);let ne;e[46]===r?ne=e[47]:(ne=(e,t)=>r.mutate({id:e,name:t},{onSuccess:()=>c(null)}),e[46]=r,e[47]=ne);let re;e[48]!==s||e[49]!==te||e[50]!==ne||e[51]!==r.isPending?(re=(0,$.jsx)(_,{target:s,pending:r.isPending,onOpenChange:te,onRename:ne}),e[48]=s,e[49]=te,e[50]=ne,e[51]=r.isPending,e[52]=re):re=e[52];let G;e[53]===i.isPending?G=e[54]:(G=e=>{!e&&!i.isPending&&u(null)},e[53]=i.isPending,e[54]=G);let K;e[55]===i?K=e[56]:(K=e=>i.mutate(e,{onSuccess:()=>u(null)}),e[55]=i,e[56]=K);let q;e[57]!==i.isPending||e[58]!==l||e[59]!==G||e[60]!==K?(q=(0,$.jsx)(A,{target:l,pending:i.isPending,onOpenChange:G,onDelete:K}),e[57]=i.isPending,e[58]=l,e[59]=G,e[60]=K,e[61]=q):q=e[61];let J;return e[62]!==U||e[63]!==W||e[64]!==re||e[65]!==q?(J=(0,$.jsxs)($.Fragment,{children:[U,W,re,q]}),e[62]=U,e[63]=W,e[64]=re,e[65]=q,e[66]=J):J=e[66],J}function He(e){return[e.id,e]}function Ue(e){return e.id}function We(e){return[e.id,e]}export{Ne as a,Me as i,Fe as n,ge as o,Le as r,ve as s,Ve as t};
@@ -1,3 +1,3 @@
1
- import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,kr as n,ri as r}from"./boot-vendor-CKEhulXz.js";import{n as i,r as a}from"./queued-message-reorder-DaGBnmhZ.js";import{_ as o,a as s,b as c,d as l,f as u,g as d,h as f,l as p,m,n as h,p as g,t as _,u as v,v as y,x as b,y as x}from"./queued-messages-layout-B5xwiued.js";import{$f as S,Dh as C,Fh as w,Tn as T,bu as E,ep as D,jh as O,np as k,pu as ee,tp as te,uu as ne,wu as re}from"./index-CfvM6UcU.js";import{t as ie}from"./useScrollOverflowState-DEziQkLz.js";import{r as A}from"./bottom-anchored-scroll-body-VYrnz8Hl.js";import{n as ae,o as oe,t as j}from"./queued-editor-typeahead-layout-Czaq8Cl9.js";import{t as M}from"./lib-EkxklCWa.js";import{m as se,n as N,r as P,t as F,u as I}from"./markdown-prompt-mentions-B5LVmCbO.js";import{_ as L,a as ce,d as le,g as ue,h as de,i as fe,l as pe,n as me,o as R,p as he,s as ge,t as _e}from"./sortable.esm-Bb-mbyoc.js";import{r as z,t as ve}from"./InlineMessageEditorFrame-y089xCLP.js";var B=n(),V=e(t(),1),H=e(r(),1),U=`__queued_message_group_divider__`,ye=240,W=360,G=56,K=40,be=8;function xe({messageCount:e}){return We(G+Math.max(1,e)*K,ye,W)}function Se({containerHeight:e,surfaceHeight:t,viewportHeight:n}){let r=Math.max(0,e-t);return Math.max(44,Math.floor(n-r))}function q(e){return w(`block min-w-0 truncate`,e?`!text-xs !leading-4`:`!text-sm !leading-5`)}var J=[se,N];function Y(e){return(0,H.jsxs)(`span`,{children:[e,` `]})}var X={a:({children:e})=>(0,H.jsx)(`span`,{children:e}),blockquote:({children:e})=>(0,H.jsx)(`span`,{className:`inline border-l-2 border-surface-selected-border pl-2 text-muted-foreground`,children:e}),br:()=>` `,code:({children:e})=>(0,H.jsx)(`code`,{className:`rounded bg-muted/70 px-1.5 py-0.5 font-mono text-xs`,children:e}),h1:({children:e})=>(0,H.jsxs)(`span`,{className:`font-semibold text-foreground`,children:[e,` `]}),h2:({children:e})=>(0,H.jsxs)(`span`,{className:`font-semibold text-foreground`,children:[e,` `]}),h3:({children:e})=>(0,H.jsxs)(`span`,{className:`font-semibold text-foreground`,children:[e,` `]}),h4:({children:e})=>(0,H.jsxs)(`span`,{className:`font-semibold text-foreground`,children:[e,` `]}),h5:({children:e})=>(0,H.jsxs)(`span`,{className:`font-semibold text-foreground`,children:[e,` `]}),h6:({children:e})=>(0,H.jsxs)(`span`,{className:`font-semibold text-foreground`,children:[e,` `]}),img:({alt:e})=>e?(0,H.jsx)(`span`,{children:e}):null,li:({children:e})=>(0,H.jsxs)(`span`,{children:[e,` `]}),ol:({children:e})=>(0,H.jsx)(`span`,{children:e}),p:({children:e})=>Y(e),pre:({children:e})=>(0,H.jsx)(`span`,{children:e}),table:({children:e})=>(0,H.jsx)(`span`,{children:e}),tbody:({children:e})=>(0,H.jsx)(`span`,{children:e}),td:({children:e})=>(0,H.jsxs)(`span`,{children:[e,` `]}),th:({children:e})=>(0,H.jsxs)(`span`,{children:[e,` `]}),thead:({children:e})=>(0,H.jsx)(`span`,{children:e}),tr:({children:e})=>(0,H.jsxs)(`span`,{children:[e,` `]}),ul:({children:e})=>(0,H.jsx)(`span`,{children:e})};function Z(e){let t=(0,B.c)(18),{compact:n,preview:r,resolveMentionLink:i}=e,a;t[0]!==r.mentions||t[1]!==r.text?(a=P(r.text,r.mentions),t[0]=r.mentions,t[1]=r.text,t[2]=a):a=t[2];let o=a,s;t[3]===o.content?s=t[4]:(s=I(o.content),t[3]=o.content,t[4]=s);let c=s,l;t[5]!==o.mentions||t[6]!==i?(l=F({mentions:o.mentions,resolveMentionLink:i}),t[5]=o.mentions,t[6]=i,t[7]=l):l=t[7];let u;t[8]===l?u=t[9]:(u={...X,"bb-prompt-mention":l},t[8]=l,t[9]=u);let d=u,f;t[10]===n?f=t[11]:(f=q(n),t[10]=n,t[11]=f);let p;t[12]!==d||t[13]!==c?(p=(0,H.jsx)(M,{components:d,remarkPlugins:J,children:c}),t[12]=d,t[13]=c,t[14]=p):p=t[14];let m;return t[15]!==f||t[16]!==p?(m=(0,H.jsx)(`span`,{className:f,children:p}),t[15]=f,t[16]=p,t[17]=m):m=t[17],m}function Ce({activeId:e,combinedIds:t,orderedMessages:n,overId:r}){if(e===r)return null;let o=t.indexOf(e),s=t.indexOf(r);if(o===-1||s===-1)return null;let c=me([...t],o,s),l=new Map(n.map(e=>[e.id,e])),u=c.indexOf(U),d=c.filter(e=>e!==U).map(e=>l.get(e)).filter(e=>e!==void 0);if(e===U){let e=Math.max(u-1,0),t=d[e]?.id;return t?{kind:`divider`,orderedMessages:d.map((t,n)=>({...t,groupWithNext:n<e})),request:{expectedGroupedPrefixQueuedMessageIds:d.slice(0,e+1).map(e=>e.id),groupBoundaryQueuedMessageId:t}}:null}let f=d.findIndex(t=>t.id===e);return f===-1?null:{kind:`row`,orderedMessages:a({queuedMessages:d,originalLeadGroupIds:i(n)}),request:{queuedMessageId:e,previousQueuedMessageId:d[f-1]?.id??null,nextQueuedMessageId:d[f+1]?.id??null}}}function we({draggingNodeRect:e,listRect:t,scrollRect:n,transform:r}){if(!e||!t&&!n)return{...r,x:0};let i=Math.max(t?.top??-1/0,n?.top??-1/0),a=Math.min(t?.bottom??1/0,n?.bottom??1/0),o=i-e.top,s=a-e.bottom;return{...r,x:0,y:Math.min(Math.max(r.y,o),s)}}function Te({activeId:e,activeNodeRect:t,overId:n,overRect:r,transform:i}){if(e!==U||!t)return i;if(n===U||!r)return{...i,x:0};let a=t.top+t.height/2;return{...i,x:0,y:r.bottom-a}}function Q(e){let t=e.data?.value;return typeof t==`number`?t:1/0}var Ee=e=>{if(String(e.active.id)!==U||!e.pointerCoordinates)return he(e);let t=[];for(let n of e.droppableContainers){if(String(n.id)===U)continue;let r=e.droppableRects.get(n.id);r&&t.push({id:n.id,data:{droppableContainer:n,value:Math.abs(e.pointerCoordinates.y-r.bottom)}})}return t.sort((e,t)=>Q(e)-Q(t))};function De(e,t){return e[t.activeIndex]===U&&t.index!==t.activeIndex?null:R(t)}function $(e){return e.filter(e=>e.type===`text`&&e.visibility!==`agent-only`)}function Oe(e,t){return e.payload.kind===`retry`?null:e.initiator===`system`?`System`:e.initiator===`agent`?t.get(e.senderThreadId??``)?.title??e.senderThreadId??`Agent`:null}function ke(e,t){return t===0?[...e]:e.map(e=>({...e,start:e.start+t,end:e.end+t}))}function Ae({mentions:e,rangeEnd:t,rangeStart:n,text:r}){let i=r.slice(n,t),a=i.length-i.trimStart().length,o=i.trimEnd().length;if(o<=a)return null;let s=n+a,c=n+o;return{text:r.slice(s,c),mentions:ee({mentions:e,rangeStart:s,rangeEnd:c})}}function je(e){let t=``,n=[];for(let r of $(e)){let e=Ae({text:r.text,mentions:r.mentions,rangeStart:0,rangeEnd:r.text.length});if(!e)continue;let i=t.length>0?`
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,kr as n,ri as r}from"./boot-vendor-CKEhulXz.js";import{n as i,r as a}from"./queued-message-reorder-DaGBnmhZ.js";import{_ as o,a as s,b as c,d as l,f as u,g as d,h as f,l as p,m,n as h,p as g,t as _,u as v,v as y,x as b,y as x}from"./queued-messages-layout-Bj1foecI.js";import{$f as S,Dh as C,Fh as w,Tn as T,bu as E,ep as D,jh as O,np as k,pu as ee,tp as te,uu as ne,wu as re}from"./index-DCps_qBD.js";import{t as ie}from"./useScrollOverflowState-DEziQkLz.js";import{r as A}from"./bottom-anchored-scroll-body-izL_2xQo.js";import{n as ae,o as oe,t as j}from"./queued-editor-typeahead-layout-DTUSPVuA.js";import{t as M}from"./lib-EkxklCWa.js";import{m as se,n as N,r as P,t as F,u as I}from"./markdown-prompt-mentions-CPWKCtMa.js";import{_ as L,a as ce,d as le,g as ue,h as de,i as fe,l as pe,n as me,o as R,p as he,s as ge,t as _e}from"./sortable.esm-Bb-mbyoc.js";import{r as z,t as ve}from"./InlineMessageEditorFrame-C0rqOlNn.js";var B=n(),V=e(t(),1),H=e(r(),1),U=`__queued_message_group_divider__`,ye=240,W=360,G=56,K=40,be=8;function xe({messageCount:e}){return We(G+Math.max(1,e)*K,ye,W)}function Se({containerHeight:e,surfaceHeight:t,viewportHeight:n}){let r=Math.max(0,e-t);return Math.max(44,Math.floor(n-r))}function q(e){return w(`block min-w-0 truncate`,e?`!text-xs !leading-4`:`!text-sm !leading-5`)}var J=[se,N];function Y(e){return(0,H.jsxs)(`span`,{children:[e,` `]})}var X={a:({children:e})=>(0,H.jsx)(`span`,{children:e}),blockquote:({children:e})=>(0,H.jsx)(`span`,{className:`inline border-l-2 border-surface-selected-border pl-2 text-muted-foreground`,children:e}),br:()=>` `,code:({children:e})=>(0,H.jsx)(`code`,{className:`rounded bg-muted/70 px-1.5 py-0.5 font-mono text-xs`,children:e}),h1:({children:e})=>(0,H.jsxs)(`span`,{className:`font-semibold text-foreground`,children:[e,` `]}),h2:({children:e})=>(0,H.jsxs)(`span`,{className:`font-semibold text-foreground`,children:[e,` `]}),h3:({children:e})=>(0,H.jsxs)(`span`,{className:`font-semibold text-foreground`,children:[e,` `]}),h4:({children:e})=>(0,H.jsxs)(`span`,{className:`font-semibold text-foreground`,children:[e,` `]}),h5:({children:e})=>(0,H.jsxs)(`span`,{className:`font-semibold text-foreground`,children:[e,` `]}),h6:({children:e})=>(0,H.jsxs)(`span`,{className:`font-semibold text-foreground`,children:[e,` `]}),img:({alt:e})=>e?(0,H.jsx)(`span`,{children:e}):null,li:({children:e})=>(0,H.jsxs)(`span`,{children:[e,` `]}),ol:({children:e})=>(0,H.jsx)(`span`,{children:e}),p:({children:e})=>Y(e),pre:({children:e})=>(0,H.jsx)(`span`,{children:e}),table:({children:e})=>(0,H.jsx)(`span`,{children:e}),tbody:({children:e})=>(0,H.jsx)(`span`,{children:e}),td:({children:e})=>(0,H.jsxs)(`span`,{children:[e,` `]}),th:({children:e})=>(0,H.jsxs)(`span`,{children:[e,` `]}),thead:({children:e})=>(0,H.jsx)(`span`,{children:e}),tr:({children:e})=>(0,H.jsxs)(`span`,{children:[e,` `]}),ul:({children:e})=>(0,H.jsx)(`span`,{children:e})};function Z(e){let t=(0,B.c)(18),{compact:n,preview:r,resolveMentionLink:i}=e,a;t[0]!==r.mentions||t[1]!==r.text?(a=P(r.text,r.mentions),t[0]=r.mentions,t[1]=r.text,t[2]=a):a=t[2];let o=a,s;t[3]===o.content?s=t[4]:(s=I(o.content),t[3]=o.content,t[4]=s);let c=s,l;t[5]!==o.mentions||t[6]!==i?(l=F({mentions:o.mentions,resolveMentionLink:i}),t[5]=o.mentions,t[6]=i,t[7]=l):l=t[7];let u;t[8]===l?u=t[9]:(u={...X,"bb-prompt-mention":l},t[8]=l,t[9]=u);let d=u,f;t[10]===n?f=t[11]:(f=q(n),t[10]=n,t[11]=f);let p;t[12]!==d||t[13]!==c?(p=(0,H.jsx)(M,{components:d,remarkPlugins:J,children:c}),t[12]=d,t[13]=c,t[14]=p):p=t[14];let m;return t[15]!==f||t[16]!==p?(m=(0,H.jsx)(`span`,{className:f,children:p}),t[15]=f,t[16]=p,t[17]=m):m=t[17],m}function Ce({activeId:e,combinedIds:t,orderedMessages:n,overId:r}){if(e===r)return null;let o=t.indexOf(e),s=t.indexOf(r);if(o===-1||s===-1)return null;let c=me([...t],o,s),l=new Map(n.map(e=>[e.id,e])),u=c.indexOf(U),d=c.filter(e=>e!==U).map(e=>l.get(e)).filter(e=>e!==void 0);if(e===U){let e=Math.max(u-1,0),t=d[e]?.id;return t?{kind:`divider`,orderedMessages:d.map((t,n)=>({...t,groupWithNext:n<e})),request:{expectedGroupedPrefixQueuedMessageIds:d.slice(0,e+1).map(e=>e.id),groupBoundaryQueuedMessageId:t}}:null}let f=d.findIndex(t=>t.id===e);return f===-1?null:{kind:`row`,orderedMessages:a({queuedMessages:d,originalLeadGroupIds:i(n)}),request:{queuedMessageId:e,previousQueuedMessageId:d[f-1]?.id??null,nextQueuedMessageId:d[f+1]?.id??null}}}function we({draggingNodeRect:e,listRect:t,scrollRect:n,transform:r}){if(!e||!t&&!n)return{...r,x:0};let i=Math.max(t?.top??-1/0,n?.top??-1/0),a=Math.min(t?.bottom??1/0,n?.bottom??1/0),o=i-e.top,s=a-e.bottom;return{...r,x:0,y:Math.min(Math.max(r.y,o),s)}}function Te({activeId:e,activeNodeRect:t,overId:n,overRect:r,transform:i}){if(e!==U||!t)return i;if(n===U||!r)return{...i,x:0};let a=t.top+t.height/2;return{...i,x:0,y:r.bottom-a}}function Q(e){let t=e.data?.value;return typeof t==`number`?t:1/0}var Ee=e=>{if(String(e.active.id)!==U||!e.pointerCoordinates)return he(e);let t=[];for(let n of e.droppableContainers){if(String(n.id)===U)continue;let r=e.droppableRects.get(n.id);r&&t.push({id:n.id,data:{droppableContainer:n,value:Math.abs(e.pointerCoordinates.y-r.bottom)}})}return t.sort((e,t)=>Q(e)-Q(t))};function De(e,t){return e[t.activeIndex]===U&&t.index!==t.activeIndex?null:R(t)}function $(e){return e.filter(e=>e.type===`text`&&e.visibility!==`agent-only`)}function Oe(e,t){return e.payload.kind===`retry`?null:e.initiator===`system`?`System`:e.initiator===`agent`?t.get(e.senderThreadId??``)?.title??e.senderThreadId??`Agent`:null}function ke(e,t){return t===0?[...e]:e.map(e=>({...e,start:e.start+t,end:e.end+t}))}function Ae({mentions:e,rangeEnd:t,rangeStart:n,text:r}){let i=r.slice(n,t),a=i.length-i.trimStart().length,o=i.trimEnd().length;if(o<=a)return null;let s=n+a,c=n+o;return{text:r.slice(s,c),mentions:ee({mentions:e,rangeStart:s,rangeEnd:c})}}function je(e){let t=``,n=[];for(let r of $(e)){let e=Ae({text:r.text,mentions:r.mentions,rangeStart:0,rangeEnd:r.text.length});if(!e)continue;let i=t.length>0?`
2
2
 
3
3
  `:``,a=t.length+i.length;t+=i+e.text,n.push(...ke(e.mentions,a))}return{text:t,mentions:n}}function Me(e){let t=(0,B.c)(9),{compact:n,queuedMessage:r}=e,i=y(),a;t[0]!==i||t[1]!==r.createdAt||t[2]!==r.payload?(a=m({createdAt:r.createdAt,now:i,payload:r.payload}),t[0]=i,t[1]=r.createdAt,t[2]=r.payload,t[3]=a):a=t[3];let o=a,s;t[4]===n?s=t[5]:(s=q(n),t[4]=n,t[5]=s);let c;return t[6]!==s||t[7]!==o?(c=(0,H.jsx)(`span`,{className:s,title:o,children:o}),t[6]=s,t[7]=o,t[8]=c):c=t[8],c}function Ne(e){let t=(0,B.c)(15),{compact:n,queuedMessage:r,resolveMentionLink:i}=e,a;t[0]===r.content?a=t[1]:(a=c(r.content,{truncate:!1}),t[0]=r.content,t[1]=a);let o=a,s;t[2]===r.content?s=t[3]:(s=je(r.content),t[2]=r.content,t[3]=s);let l=s;if(r.payload.kind===`retry`){let e;return t[4]!==n||t[5]!==r?(e=(0,H.jsx)(`div`,{className:`min-w-0 flex-1 overflow-hidden text-foreground`,children:(0,H.jsx)(Me,{compact:n,queuedMessage:r})}),t[4]=n,t[5]=r,t[6]=e):e=t[6],e}let u;t[7]!==n||t[8]!==l||t[9]!==o||t[10]!==i?(u=l.text.length>0?(0,H.jsx)(Z,{compact:n,preview:l,resolveMentionLink:i}):(0,H.jsx)(`span`,{className:q(n),children:o}),t[7]=n,t[8]=l,t[9]=o,t[10]=i,t[11]=u):u=t[11];let d;return t[12]!==o||t[13]!==u?(d=(0,H.jsx)(`div`,{className:`min-w-0 flex-1 overflow-hidden text-foreground`,title:o,children:u}),t[12]=o,t[13]=u,t[14]=d):d=t[14],d}function Pe(e){let t=(0,B.c)(27),{pluginDisplayName:n,queuedMessage:r}=e,i=y(),a;t[0]!==i||t[1]!==n||t[2]!==r.failureReason||t[3]!==r.payload||t[4]!==r.sendAt||t[5]!==r.waitingOn?(a=v({failureReason:r.failureReason,now:i,payload:r.payload,pluginDisplayName:n,sendAt:r.sendAt,waitingOn:r.waitingOn}),t[0]=i,t[1]=n,t[2]=r.failureReason,t[3]=r.payload,t[4]=r.sendAt,t[5]=r.waitingOn,t[6]=a):a=t[6];let o=a;if(o===null)return null;let s=r.failureReason!==null,c;t[7]===r?c=t[8]:(c=d(r),t[7]=r,t[8]=c);let u=c,f=g(r),p;t[9]!==f||t[10]!==i?(p=f===null?null:l(f-i),t[9]=f,t[10]=i,t[11]=p):p=t[11];let m=p,h=s?``:void 0,_=s?`text-destructive-text`:`text-subtle-foreground`,b;t[12]===_?b=t[13]:(b=w(`flex min-w-0 items-center gap-1 text-2xs`,_),t[12]=_,t[13]=b);let x;t[14]!==u||t[15]!==r.waitingOn?(x=u===null?r.waitingOn?.kind===`plugin`?(0,H.jsx)(E,{pluginId:r.waitingOn.pluginId,icon:null,fallbackIcon:null,className:`size-3`}):null:(0,H.jsx)(C,{name:u,className:`size-3 shrink-0`,"aria-hidden":!0}),t[14]=u,t[15]=r.waitingOn,t[16]=x):x=t[16];let S;t[17]===o?S=t[18]:(S=(0,H.jsx)(`span`,{className:`min-w-0 truncate`,children:o}),t[17]=o,t[18]=S);let T;t[19]===m?T=t[20]:(T=m===null?null:(0,H.jsxs)(`span`,{className:`shrink-0 tabular-nums`,children:[`· `,m]}),t[19]=m,t[20]=T);let D;return t[21]!==h||t[22]!==b||t[23]!==x||t[24]!==S||t[25]!==T?(D=(0,H.jsxs)(`span`,{"data-queued-message-wait":``,"data-queued-message-failed":h,className:b,children:[x,S,T]}),t[21]=h,t[22]=b,t[23]=x,t[24]=S,t[25]=T,t[26]=D):D=t[26],D}function Fe(e){let t=(0,B.c)(5),{queuedMessages:n}=e,r;if(t[0]!==n){let e=[...n].sort(Le);r=e.find(Ie)??e.find(f),t[0]=n,t[1]=r}else r=t[1];let i=r,a=re(i?.waitingOn?.kind===`plugin`?i.waitingOn.pluginId:``);if(!i)return null;let o;return t[2]!==i||t[3]!==a?(o=(0,H.jsx)(Pe,{pluginDisplayName:a,queuedMessage:i}),t[2]=i,t[3]=a,t[4]=o):o=t[4],o}function Ie(e){return e.failureReason!==null}function Le(e,t){return t.createdAt-e.createdAt}function Re(e){let t=(0,B.c)(2),n;t[0]===e?n=t[1]:(n=()=>({arrivals:0,count:e.length,seenIds:new Set(e.map(Be))}),t[0]=e,t[1]=n);let[r,i]=(0,V.useState)(n),a=e.some(e=>!r.seenIds.has(e.id));return(a||r.count!==e.length)&&i({arrivals:a&&e.length>r.count?r.arrivals+1:r.arrivals,count:e.length,seenIds:a?new Set([...r.seenIds,...e.map(ze)]):r.seenIds}),r.arrivals}function ze(e){return e.id}function Be(e){return e.id}function Ve(e){let t=(0,B.c)(3),{label:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,H.jsx)(C,{name:`Spinner`,className:`size-3 shrink-0 animate-spin`,"aria-hidden":!0}),t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,H.jsxs)(`div`,{"data-queued-message-processing":``,className:`flex min-w-0 items-center gap-1 text-2xs text-muted-foreground`,children:[r,(0,H.jsx)(`span`,{className:`min-w-0 truncate`,children:n})]}),t[1]=n,t[2]=i),i}var He=(0,V.memo)(function(e){let t=(0,B.c)(84),{senderLabel:n,queuedMessage:r,resolveMentionLink:i,index:a,isProcessing:o,processingLabel:s,dragDisabled:c,sendAction:l,sendDisabled:d,actionDisabled:p,mobileActionsExpanded:m,onExpandMobileActions:h,onSend:g,onEdit:_,onDelete:v,compact:y,isGroupBoundary:b}=e,T=(0,V.useRef)(null),E=(0,V.useRef)(!1),ee,ie;t[0]===m?(ee=t[1],ie=t[2]):(ee=()=>{!m||!E.current||(E.current=!1,T.current?.querySelector(`button:not(:disabled)`)?.focus({preventScroll:!0}))},ie=[m],t[0]=m,t[1]=ee,t[2]=ie),(0,V.useLayoutEffect)(ee,ie);let A=x(r.content),ae=re(r.waitingOn?.kind===`plugin`?r.waitingOn.pluginId:``),oe;t[3]===r?oe=t[4]:(oe=f(r),t[3]=r,t[4]=oe);let j=oe,M;t[5]!==r||t[6]!==l?(M=l===`steer-when-ready`||u(r),t[5]=r,t[6]=l,t[7]=M):M=t[7];let se=M,N=l===`steer-when-ready`?`Steer queued message ${a+1} when ready`:`Send queued message ${a+1} now`,P=l===`steer-when-ready`?`Steer when ready`:`Send now`,F;t[8]!==c||t[9]!==r.id?(F={id:r.id,disabled:c},t[8]=c,t[9]=r.id,t[10]=F):F=t[10];let{attributes:I,isDragging:le,listeners:ue,setActivatorNodeRef:de,setNodeRef:fe,transform:pe,transition:me}=ce(F),R;t[11]===pe?R=t[12]:(R=L.Translate.toString(pe),t[11]=pe,t[12]=R);let he;t[13]!==R||t[14]!==me?(he={transform:R,transition:me},t[13]=R,t[14]=me,t[15]=he):he=t[15];let ge=he,_e=r.id,ve=b?``:void 0,U=!b&&`last:border-b-0`,ye=le&&`z-20 rounded-lg border border-border bg-background opacity-90 shadow-lift`,W;t[16]!==U||t[17]!==ye?(W=w(`group/dispatch-row relative border-b border-border/35 px-2.5 py-0.5`,U,ye),t[16]=U,t[17]=ye,t[18]=W):W=t[18];let G=!c&&`cursor-grab active:cursor-grabbing`,K;t[19]===G?K=t[20]:(K=w(`-ml-2 flex h-7 w-5 shrink-0 touch-none items-center justify-center rounded-md px-0.5 text-muted-foreground`,G),t[19]=G,t[20]=K);let be=`Reorder queued message ${a+1}`,xe=!c&&`group-hover/dispatch-row:opacity-100 group-focus-within/dispatch-row:opacity-100 [@media(hover:none)]:opacity-100`,Se=le&&`opacity-100`,q;t[21]!==xe||t[22]!==Se?(q=w(`size-3.5 shrink-0 opacity-0 transition-opacity`,xe,Se),t[21]=xe,t[22]=Se,t[23]=q):q=t[23];let J;t[24]===q?J=t[25]:(J=(0,H.jsx)(C,{name:`DragDropVertical`,className:q,"aria-hidden":`true`}),t[24]=q,t[25]=J);let Y;t[26]!==I||t[27]!==c||t[28]!==ue||t[29]!==de||t[30]!==K||t[31]!==be||t[32]!==J?(Y=(0,H.jsx)(O,{ref:de,type:`button`,variant:`ghost`,className:K,disabled:c,"aria-label":be,...I,...ue,children:J}),t[26]=I,t[27]=c,t[28]=ue,t[29]=de,t[30]=K,t[31]=be,t[32]=J,t[33]=Y):Y=t[33];let X=(n!==null||j||o)&&`py-1.5`,Z;t[34]===X?Z=t[35]:(Z=w(`min-w-0 flex-1 py-1`,X),t[34]=X,t[35]=Z);let Ce;t[36]!==y||t[37]!==r||t[38]!==i?(Ce=(0,H.jsx)(Ne,{compact:y,queuedMessage:r,resolveMentionLink:i}),t[36]=y,t[37]=r,t[38]=i,t[39]=Ce):Ce=t[39];let we;t[40]!==A||t[41]!==o?(we=A>0?(0,H.jsxs)(`span`,{"data-queued-message-attachment":``,className:w(`ml-auto inline-flex shrink-0 items-center gap-0.5 text-2xs text-subtle-foreground opacity-70 transition-opacity duration-[120ms] ease-out`,!o&&`group-hover/dispatch-row:opacity-0 group-focus-within/dispatch-row:opacity-0 [@media(hover:none)]:opacity-0`),role:`img`,"aria-label":A===1?`1 attachment`:`${A} attachments`,children:[(0,H.jsx)(C,{name:`FileAttachment`,className:`size-3.5`,"aria-hidden":!0}),(0,H.jsx)(`span`,{"aria-hidden":!0,children:A})]}):null,t[40]=A,t[41]=o,t[42]=we):we=t[42];let Te;t[43]!==Ce||t[44]!==we?(Te=(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1`,children:[Ce,we]}),t[43]=Ce,t[44]=we,t[45]=Te):Te=t[45];let Q;t[46]!==j||t[47]!==o||t[48]!==ae||t[49]!==s||t[50]!==r||t[51]!==n?(Q=n!==null||o||j?(0,H.jsxs)(`div`,{"data-queued-message-metadata":``,className:`mt-0.5 flex min-w-0 items-center gap-1 text-2xs text-subtle-foreground`,children:[n===null?null:(0,H.jsxs)(`span`,{"data-queued-message-sender":``,className:w(`inline-flex min-w-0 items-center gap-1`,(o||j)&&`max-w-[40%] shrink-0`),title:`From ${n}`,children:[(0,H.jsx)(`span`,{className:`shrink-0`,children:`From`}),r.initiator===`agent`&&r.senderThreadId!==null?(0,H.jsx)(`span`,{className:`flex min-w-0 [&>.prompt-mention-pill]:text-2xs`,children:(0,H.jsx)(ne,{interactive:!1,resource:{kind:`thread`,threadId:r.senderThreadId,label:n},serializedText:`@thread:${r.senderThreadId}`})}):(0,H.jsx)(`span`,{className:`min-w-0 truncate`,children:n})]}),n!==null&&(o||j)?(0,H.jsx)(`span`,{"aria-hidden":!0,className:`shrink-0`,children:`·`}):null,o?(0,H.jsx)(Ve,{label:s}):j?(0,H.jsx)(Pe,{pluginDisplayName:ae,queuedMessage:r}):null]}):null,t[46]=j,t[47]=o,t[48]=ae,t[49]=s,t[50]=r,t[51]=n,t[52]=Q):Q=t[52];let Ee;t[53]!==Z||t[54]!==Te||t[55]!==Q?(Ee=(0,H.jsxs)(`div`,{className:Z,children:[Te,Q]}),t[53]=Z,t[54]=Te,t[55]=Q,t[56]=Ee):Ee=t[56];let De;t[57]!==p||t[58]!==y||t[59]!==a||t[60]!==o||t[61]!==m||t[62]!==v||t[63]!==_||t[64]!==h||t[65]!==g||t[66]!==r.editable||t[67]!==r.id||t[68]!==se||t[69]!==N||t[70]!==d||t[71]!==P?(De=o?null:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(te,{delayDuration:300,children:(0,H.jsxs)(`div`,{ref:T,"data-queued-message-actions":``,className:w(z,`pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2 items-center gap-0.5 rounded-md opacity-0 transition-opacity duration-[120ms] ease-out md:flex`,m?`flex max-md:pointer-events-auto max-md:opacity-100`:`max-md:hidden`,`group-hover/dispatch-row:pointer-events-auto group-hover/dispatch-row:opacity-100`,`group-focus-within/dispatch-row:pointer-events-auto group-focus-within/dispatch-row:opacity-100`),children:[se?(0,H.jsxs)(S,{children:[(0,H.jsx)(k,{asChild:!0,children:(0,H.jsx)(O,{type:`button`,size:`icon`,variant:`ghost`,className:w(`shrink-0 text-muted-foreground`,y?`size-7`:`size-8`),disabled:p||d,onClick:()=>g(r.id),"aria-label":N,children:(0,H.jsx)(C,{name:`Sent`,className:`size-4`,"aria-hidden":!0})})}),(0,H.jsx)(D,{className:`max-md:hidden`,children:P})]}):null,r.editable?(0,H.jsxs)(S,{children:[(0,H.jsx)(k,{asChild:!0,children:(0,H.jsx)(O,{type:`button`,size:`icon`,variant:`ghost`,className:w(`shrink-0 text-muted-foreground`,y?`size-7`:`size-8`),disabled:p,onClick:()=>_({queuedMessageId:r.id,queuedMessageIndex:a}),"aria-label":`Edit queued message ${a+1}`,children:(0,H.jsx)(C,{name:`Edit`,className:`size-4`,"aria-hidden":!0})})}),(0,H.jsx)(D,{className:`max-md:hidden`,children:`Edit`})]}):null,(0,H.jsxs)(S,{children:[(0,H.jsx)(k,{asChild:!0,children:(0,H.jsx)(O,{type:`button`,size:`icon`,variant:`ghost`,className:w(`shrink-0 text-muted-foreground hover:text-destructive max-md:text-destructive`,y?`size-7`:`size-8`),disabled:p,onClick:()=>v(r.id),"aria-label":`Delete queued message ${a+1}`,children:(0,H.jsx)(C,{name:`Trash2`,className:`size-4`,"aria-hidden":!0})})}),(0,H.jsx)(D,{className:`max-md:hidden`,children:`Delete`})]})]})}),(0,H.jsx)(O,{type:`button`,size:`icon`,variant:`ghost`,className:w(z,`pointer-events-none absolute right-2.5 top-1/2 shrink-0 -translate-y-1/2 text-muted-foreground opacity-0 transition-opacity duration-[120ms] ease-out md:hidden`,`group-hover/dispatch-row:pointer-events-auto group-hover/dispatch-row:opacity-100`,`group-focus-within/dispatch-row:pointer-events-auto group-focus-within/dispatch-row:opacity-100`,`[@media(hover:none)]:pointer-events-auto [@media(hover:none)]:opacity-100`,y?`size-7`:`size-8`,m&&`hidden`),disabled:p,"aria-label":`Queued message ${a+1} actions`,"aria-expanded":m,onClick:e=>{E.current=e.detail===0,h(r.id)},children:(0,H.jsx)(C,{name:`MoreHorizontal`,className:`size-4`,"aria-hidden":!0})})]}),t[57]=p,t[58]=y,t[59]=a,t[60]=o,t[61]=m,t[62]=v,t[63]=_,t[64]=h,t[65]=g,t[66]=r.editable,t[67]=r.id,t[68]=se,t[69]=N,t[70]=d,t[71]=P,t[72]=De):De=t[72];let $;t[73]!==Y||t[74]!==Ee||t[75]!==De?($=(0,H.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[Y,Ee,De]}),t[73]=Y,t[74]=Ee,t[75]=De,t[76]=$):$=t[76];let Oe;return t[77]!==r.id||t[78]!==ge||t[79]!==fe||t[80]!==W||t[81]!==$||t[82]!==ve?(Oe=(0,H.jsx)(`li`,{ref:fe,style:ge,"data-queued-message-row":``,"data-queued-message-id":_e,"data-queued-message-group-boundary-row":ve,className:W,children:$}),t[77]=r.id,t[78]=ge,t[79]=fe,t[80]=W,t[81]=$,t[82]=ve,t[83]=Oe):Oe=t[83],Oe});function Ue(e){let t=(0,B.c)(26),{disabled:n}=e,r;t[0]===n?r=t[1]:(r={id:U,disabled:n},t[0]=n,t[1]=r);let{active:i,attributes:a,isDragging:o,listeners:s,setActivatorNodeRef:c,setNodeRef:l,transform:u,transition:d}=ce(r),f=i!==null&&i.id!==U,p;t[2]!==o||t[3]!==u?(p=o?L.Translate.toString(u):void 0,t[2]=o,t[3]=u,t[4]=p):p=t[4];let m=o?d:void 0,h;t[5]!==p||t[6]!==m?(h={transform:p,transition:m},t[5]=p,t[6]=m,t[7]=h):h=t[7];let g=f?`pointer-events-none opacity-0`:`opacity-100`,_=!n&&`cursor-grab active:cursor-grabbing`,v=o&&`pointer-events-auto cursor-grabbing border-border bg-background text-foreground opacity-100 shadow-sm`,y;t[8]!==g||t[9]!==_||t[10]!==v?(y=w(`pointer-events-auto flex size-6 shrink-0 touch-none select-none items-center justify-center rounded-full border border-transparent bg-transparent text-muted-foreground transition-[background-color,border-color,box-shadow,color] focus-visible:border-border focus-visible:bg-background focus-visible:shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring queue-boundary-row-hover:border-border queue-boundary-row-hover:bg-background queue-boundary-row-hover:shadow-sm queue-boundary-row-focus-within:border-border queue-boundary-row-focus-within:bg-background queue-boundary-row-focus-within:shadow-sm hover:border-border hover:bg-background hover:shadow-sm [@media(hover:none)]:border-border [@media(hover:none)]:bg-background [@media(hover:none)]:shadow-sm`,g,_,v),t[8]=g,t[9]=_,t[10]=v,t[11]=y):y=t[11];let b;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,H.jsx)(C,{name:`DragDropHorizontal`,className:`size-3.5 opacity-55 transition-opacity queue-boundary-row-hover:opacity-100 queue-boundary-row-focus-within:opacity-100 [@media(hover:none)]:opacity-100`,"aria-hidden":`true`}),t[12]=b):b=t[12];let x;t[13]!==a||t[14]!==n||t[15]!==s||t[16]!==c||t[17]!==y?(x=(0,H.jsx)(k,{asChild:!0,children:(0,H.jsx)(`button`,{ref:c,type:`button`,className:y,disabled:n,"aria-label":`Messages above send together`,...a,...s,children:b})}),t[13]=a,t[14]=n,t[15]=s,t[16]=c,t[17]=y,t[18]=x):x=t[18];let T;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,H.jsx)(D,{className:`max-md:hidden`,children:`Messages above send together`}),t[19]=T):T=t[19];let E;t[20]===x?E=t[21]:(E=(0,H.jsx)(`div`,{className:`absolute left-1/2 top-[-0.5px] -translate-x-1/2 -translate-y-1/2`,children:(0,H.jsx)(`div`,{className:`pointer-events-none`,children:(0,H.jsx)(te,{delayDuration:300,children:(0,H.jsxs)(S,{children:[x,T]})})})}),t[20]=x,t[21]=E);let O;return t[22]!==l||t[23]!==E||t[24]!==h?(O=(0,H.jsx)(`li`,{ref:l,"data-queued-message-group-divider":``,style:h,className:`pointer-events-none relative z-10 h-0 list-none`,children:E}),t[22]=l,t[23]=E,t[24]=h,t[25]=O):O=t[25],O}function We(e,t,n){return Math.min(n,Math.max(t,e))}function Ge(e){let t=e.querySelector(`[data-queued-message-inline-editor]`);if(!t)return null;let n=Array.from(e.children),r=n.indexOf(t),i=n.slice(0,r).reverse().find(e=>e.hasAttribute(`data-queued-message-row`)),a=n.slice(r+1).find(e=>e.hasAttribute(`data-queued-message-row`));return{editorElement:t,firstElement:i??t,lastElement:a??t}}function Ke(e){let t=(0,B.c)(14),{editor:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={height:0,isOpen:!1},t[0]=r):r=t[0];let[i,a]=(0,V.useState)(r),o=i.isOpen?Math.ceil(i.height)+be:0,s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,H.jsx)(T,{placement:`above`,tone:`surface-raised`,className:`z-10`}),t[1]=s):s=t[1];let c=`Editing queued message ${n.queuedMessageIndex+1}`,l;t[2]===o?l=t[3]:(l={paddingTop:o},t[2]=o,t[3]=l);let u;t[4]!==n.content||t[5]!==l?(u=(0,H.jsx)(j.Provider,{value:a,children:(0,H.jsx)(`div`,{"data-queued-editor-typeahead-reservation":``,style:l,children:n.content})}),t[4]=n.content,t[5]=l,t[6]=u):u=t[6];let d;t[7]!==n.onDismiss||t[8]!==c||t[9]!==u?(d=(0,H.jsx)(ve,{cancelLabel:`Stop editing queued message`,label:c,onCancel:n.onDismiss,children:u}),t[7]=n.onDismiss,t[8]=c,t[9]=u,t[10]=d):d=t[10];let f;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,H.jsx)(T,{placement:`below`,tone:`surface-raised`,className:`z-10`}),t[11]=f):f=t[11];let p;return t[12]===d?p=t[13]:(p=(0,H.jsxs)(`li`,{"data-queued-message-inline-editor":``,className:`relative z-10 border-b border-border/35 px-2.5 py-1 last:border-b-0`,children:[s,d,f]}),t[12]=d,t[13]=p),p}function qe(e){let t=(0,B.c)(9),n;t[0]===e.queuedMessages?n=t[1]:(n=e.queuedMessages.filter(b),t[0]=e.queuedMessages,t[1]=n);let r=n,i=e.queuedMessages.length-r.length>0,a;t[2]===e?a=t[3]:(a=t=>e.onEdit({...t,queuedMessageIndex:e.queuedMessages.findIndex(e=>e.id===t.queuedMessageId)}),t[2]=e,t[3]=a);let o;return t[4]!==e||t[5]!==r||t[6]!==i||t[7]!==a?(o=(0,H.jsx)(H.Fragment,{children:(0,H.jsx)(Je,{...e,queuedMessages:r,disableSorting:i,onEdit:a})}),t[4]=e,t[5]=r,t[6]=i,t[7]=a,t[8]=o):o=t[8],o}function Je({disableSorting:e,attachedToComposer:t,queuedMessages:n,resolveMentionLink:r,sendAction:i,sendDisabled:a,actionDisabled:c,processingMessageId:l,processingAction:u,inlineEditor:d,onSend:f,onReorder:m,onSetGroupBoundary:g,onEdit:v,onDelete:y,expanded:b,onExpandedChange:x}){let S=o(),C=u===`edit`?`Editing…`:u===`delete`?`Deleting…`:`Sending…`,E=ue(de(le,{activationConstraint:{distance:4}}),de(pe,{coordinateGetter:fe})),[D,O]=(0,V.useState)(!1),k=D?`workspace`:b?`drawer`:`collapsed`,ee=Re(n),[te,ne]=(0,V.useState)(null),re=(0,V.useId)(),[j,M]=(0,V.useState)(null),[se,N]=(0,V.useState)(null),P=d!==void 0,F=A()?.getScrollElement,I=(0,V.useRef)(null),L=(0,V.useRef)(null),ce=(0,V.useRef)(!1);(0,V.useEffect)(()=>{if(te===null)return;let e=e=>{e.target instanceof Node&&!I.current?.contains(e.target)&&ne(null)};return document.addEventListener(`pointerdown`,e,!0),()=>{document.removeEventListener(`pointerdown`,e,!0)}},[te]);let{aboveOverflow:me,belowOverflow:R,bottomSentinelRef:he,scrollRef:z,topSentinelRef:ve}=ie({measureOverflow:!0}),B=(0,V.useCallback)(()=>{let e=L.current,t=z.current,n=e?Ge(e):null;if(!t||!n)return;let{editorElement:r,firstElement:i,lastElement:a}=n,o=t.getBoundingClientRect(),s=i.getBoundingClientRect(),c=a.getBoundingClientRect(),l=c.bottom-s.top,u=0;if(l<=o.height)s.top<o.top?u=s.top-o.top:c.bottom>o.bottom&&(u=c.bottom-o.bottom);else{let e=r.getBoundingClientRect();e.height>o.height||e.top<o.top?u=e.top-o.top:e.bottom>o.bottom&&(u=e.bottom-o.bottom)}u!==0&&(t.scrollTop+=u)},[z]),W=(0,V.useCallback)(()=>{if(!P){M(null),N(null);return}let e=F?.(),t=I.current,n=t?.closest(`[data-app-composer]`)?.parentElement;if(!e||!t||!n){M(null);return}let r=Se({containerHeight:n.getBoundingClientRect().height,surfaceHeight:t.getBoundingClientRect().height,viewportHeight:e.clientHeight});M(e=>e===r?e:r);let i=L.current,a=z.current,o=i?Ge(i):null;if(!a||!o){N(null);return}let{firstElement:s,lastElement:c}=o,l=t.getBoundingClientRect(),u=a.getBoundingClientRect(),d=c.getBoundingClientRect().bottom-s.getBoundingClientRect().top,f=Math.max(0,l.height-u.height),p=Math.max(ye,Math.ceil(d+f));N(e=>e===p?e:p),B()},[F,P,B,z]);(0,V.useLayoutEffect)(()=>{if(W(),!P)return;let e=F?.(),t=I.current,n=t?.closest(`[data-app-composer]`),r=n?.parentElement,i=window.requestAnimationFrame(W),a=typeof ResizeObserver>`u`?null:new ResizeObserver(W);e&&a?.observe(e),t&&a?.observe(t),L.current&&a?.observe(L.current);let o=L.current?.querySelector(`[data-queued-message-inline-editor]`);return o&&a?.observe(o),n&&a?.observe(n),r&&a?.observe(r),window.addEventListener(`resize`,W),()=>{window.cancelAnimationFrame(i),a?.disconnect(),window.removeEventListener(`resize`,W)}},[F,P,W]);let[G,K]=(0,V.useState)(n),be=n.map(e=>`${e.id}:${e.groupWithNext?`1`:`0`}:${e.updatedAt}`).join(`|`),[q,J]=(0,V.useState)(be);be!==q&&(J(be),K(n));let Y=(0,V.useMemo)(()=>{let e=G.findIndex(e=>!e.groupWithNext);return e===-1?Math.max(0,G.length-1):e},[G]),X=(0,V.useMemo)(()=>{let e=G.map(e=>e.id);return e.length<2?e:[...e.slice(0,Y+1),U,...e.slice(Y+1)]},[Y,G]),Z=e||c||l!==null||n.length<2,Q=(0,V.useMemo)(()=>d?X.filter(e=>e!==d.queuedMessageId):X,[X,d]),$=(0,V.useCallback)(e=>De(Q,e),[Q]),ke=(0,V.useCallback)(e=>{if(!e.over)return;let t=Ce({activeId:String(e.active.id),combinedIds:X,orderedMessages:G,overId:String(e.over.id)});if(t){if(K(t.orderedMessages),t.kind===`divider`){g(t.request);return}m(t.request)}},[X,m,g,G]),Ae=(0,V.useCallback)(({draggingNodeRect:e,transform:t})=>we({draggingNodeRect:e,listRect:L.current?.getBoundingClientRect()??null,scrollRect:z.current?.getBoundingClientRect()??null,transform:t}),[z]),je=(0,V.useCallback)(({active:e,activeNodeRect:t,over:n,transform:r})=>Te({activeId:e?String(e.id):null,activeNodeRect:t,overId:n?String(n.id):null,overRect:n?.rect??null,transform:r}),[]);(0,V.useEffect)(()=>{d?O(!0):ce.current&&O(!1),ce.current=d!==void 0},[d]);let Me=(0,V.useCallback)(()=>{O(!0)},[]),Ne=(0,V.useCallback)(()=>{ne(null),O(!1),x(!1),d?.onDismiss()},[d,x]),Pe=(0,V.useCallback)(()=>{x(!0)},[x]),Ie=k!==`collapsed`,Le=p(Ie,Ie?Ne:Pe),ze=(0,V.useCallback)(e=>{ne(null),Me(),v(e)},[v,Me]),Be=d||k===`workspace`?xe({messageCount:n.length}):k===`drawer`?_({queuedMessages:n,processingMessageId:l}):44,Ve=d&&j!==null?Math.min(se??Be,j):Be;(0,V.useLayoutEffect)(()=>{if(!d)return;let e=window.requestAnimationFrame(()=>{B()});return()=>window.cancelAnimationFrame(e)},[d,B,Ve]);let We=[],qe=0,Je=!1;for(let e of X){if(e===U){We.push((0,H.jsx)(Ue,{disabled:Z||d!==void 0},U));continue}let t=G.find(t=>t.id===e);t&&(d&&!Je&&t.id===d.queuedMessageId&&(We.push((0,H.jsx)(Ke,{editor:d},`inline-editor:${d.queuedMessageId}`)),Je=!0),t.id!==d?.queuedMessageId&&We.push((0,H.jsx)(He,{queuedMessage:t,senderLabel:Oe(t,S),resolveMentionLink:r,index:qe,isProcessing:l===t.id,processingLabel:C,dragDisabled:Z||d!==void 0,sendAction:i,sendDisabled:a,actionDisabled:c,mobileActionsExpanded:te===t.id,onExpandMobileActions:ne,compact:k!==`workspace`,isGroupBoundary:qe===Y,onSend:f,onEdit:ze,onDelete:y},t.id)),qe+=1)}return d&&!Je&&We.push((0,H.jsx)(Ke,{editor:d},`inline-editor:${d.queuedMessageId}`)),n.length===0&&!d?null:(0,H.jsxs)(oe,{rootRef:I,ariaLabel:`Queued messages`,style:{height:Ve},className:w(`relative z-10 flex min-h-0 flex-col overflow-hidden bg-surface-raised-solid shadow-lift`,d||!t?`mb-0 rounded-xl pb-4`:`-mb-5 rounded-xl rounded-b-none border-b-0 pb-3`,`transition-[height,margin,border-radius,padding] duration-[260ms] ease-[cubic-bezier(0.16,1,0.3,1)] motion-reduce:transition-none`),children:[(0,H.jsx)(`header`,{"data-queued-messages-mode":k,className:`shrink-0`,children:(0,H.jsxs)(`button`,{ref:Le.triggerRef,type:`button`,"aria-label":`Toggle queued messages`,"aria-expanded":Ie,"aria-controls":re,onClick:Le.onTriggerClick,className:w(ae,`hover:bg-state-hover focus-visible:bg-state-hover active:bg-state-hover`,Ie&&`border-b border-border/35`),children:[(0,H.jsx)(`span`,{className:`font-normal`,children:`Queue`}),Ie?null:(0,H.jsx)(Fe,{queuedMessages:n}),(0,H.jsx)(h,{arrivals:ee,count:n.length})]})}),(0,H.jsxs)(`div`,{className:`relative min-h-0 flex-1`,id:re,"data-queued-messages-scroll-frame":``,"aria-hidden":k===`collapsed`,inert:k===`collapsed`?!0:void 0,children:[(0,H.jsxs)(`div`,{ref:z,"data-queued-messages-scroll":``,className:`h-full min-w-0 overflow-y-auto overflow-x-hidden overscroll-contain`,tabIndex:k===`collapsed`?-1:0,children:[(0,H.jsx)(`div`,{ref:ve,"aria-hidden":!0,className:`h-px w-full`}),(0,H.jsx)(ge,{sensors:E,collisionDetection:Ee,modifiers:[Ae,je],onDragEnd:ke,children:(0,H.jsx)(_e,{items:Q,strategy:$,children:(0,H.jsx)(`ul`,{ref:L,className:`group/queue pt-1`,children:We})})}),(0,H.jsx)(`div`,{ref:he,"aria-hidden":!0,className:`h-px w-full`})]}),me&&k!==`collapsed`?(0,H.jsx)(T,{placement:`above`,tone:`surface-raised`,inset:!0,className:`z-10`}):null,R&&k!==`collapsed`?(0,H.jsx)(T,{placement:`below`,tone:`surface-raised`,inset:!0,className:`z-10`}):null]}),Ie?(0,H.jsx)(`div`,{className:`shrink-0`,children:(0,H.jsx)(s,{buttonRef:Le.collapseRef,className:w(`rounded-none`,t&&!d&&`-mb-3 min-h-7.5 pb-3`),controlsId:re,label:`Collapse queued messages`,onCollapse:Le.onCollapseClick})}):null]})}export{qe as QueuedMessagesList};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,ni as n,qr as r,ri as i}from"./boot-vendor-CKEhulXz.js";import{Dh as a,Fh as o,Gd as s,I_ as ee,Sc as c,Xi as l,Zo as u,aa as d,ha as te,hg as f,ia as p,jh as m,la as ne,na as h,sa as g}from"./index-CfvM6UcU.js";import{t as _}from"./esm-CUQGeFi6.js";var v=e(t(),1);function y({queryClient:e,hostId:t,directory:n}){return e.invalidateQueries({queryKey:f(t,n),refetchType:`none`})}var b=e(i(),1);function re(e){if(!/^[A-Za-z]:/.test(e)){let t=[{label:`/`,path:`/`}],n=``;for(let r of e.split(`/`).filter(Boolean))n=`${n}/${r}`,t.push({label:r,path:n});return t}let t=e.replace(/\//g,`\\`).split(`\\`).filter(Boolean),n=t[0]??``,r=[{label:n,path:`${n}\\`}],i=n;for(let e of t.slice(1))i=`${i}\\${e}`,r.push({label:e,path:i});return r}function ie(e,t){return/^[A-Za-z]:/.test(e)?`${e.replace(/[\\/]+$/,``)}\\${t}`:`${e.replace(/\/+$/,``)}/${t}`}function ae(e){return!e||e===`.`||e===`..`?`Enter a folder name.`:/[\\/]/.test(e)?`Folder names can't contain slashes.`:null}var oe=28,se=10,ce=[],le=[];function x({hostId:e,initialPath:t=null,allowCreateFolder:i,onDirectoryChange:f,disabled:x=!1}){let[S,ue]=(0,v.useState)(t),[C,w]=(0,v.useState)(!1),[T,E]=(0,v.useState)(``),D=(0,v.useRef)(null),[O,k]=(0,v.useState)(!1),[A,j]=(0,v.useState)(``),[M,N]=(0,v.useState)(null),P=(0,v.useRef)(null),F=c(),I=n(),{data:L,isError:R,error:z,isPlaceholderData:B}=l(e,S),V=L?.directory??null,H=V?re(V):[],U=L?.entries??ce,W=L?.roots??le,G=(0,v.useRef)(null),de=(0,v.useCallback)(()=>G.current,[]),fe=(0,v.useCallback)(()=>oe,[]),pe=(0,v.useCallback)(e=>U[e]?.path??e,[U]),K=_({count:U.length,getScrollElement:de,estimateSize:fe,getItemKey:pe,overscan:se}),q=()=>{k(!1),N(null)},J=e=>{q(),K.scrollToOffset(0),ue(e)},me=()=>{!i||x||Y.isPending||!V||R||B||(j(``),N(null),k(!0))},Y=r({mutationFn:async({parent:t,name:n})=>{let r=ie(t,n);return await s.files.mkdir({hostId:e,path:r}),r},onSuccess:async(t,{parent:n})=>{j(``),J(t),await y({queryClient:I,hostId:e,directory:n})},onError:e=>{N(u({error:e,fallbackMessage:`Couldn't create that folder.`}))}}),X=()=>{if(x||Y.isPending||!V||R||B)return;let e=A.trim(),t=ae(e);if(t){N(t);return}N(null),Y.mutate({parent:V,name:e})};(0,v.useEffect)(()=>{f(V)},[V,f]),(0,v.useEffect)(()=>{C&&!F&&D.current?.focus()},[C,F]),(0,v.useEffect)(()=>{O&&!F&&P.current?.focus()},[O,F]);let he=()=>{q(),E(V??``),w(!0)},Z=()=>{let e=ee(T);w(!1),e&&J(e)},Q=x||Y.isPending,ge=i&&!Q&&V!==null&&!R&&!B,$;return $=R?(0,b.jsx)(h,{icon:`AlertCircle`,message:u({error:z,fallbackMessage:`Couldn't read this folder.`}),messageClassName:`text-destructive`,className:`px-2 py-3`}):L?U.length===0?(0,b.jsx)(h,{message:`This folder is empty.`,className:`px-2 py-3`}):(0,b.jsx)(`ul`,{className:`relative`,style:{height:K.getTotalSize()},children:K.getVirtualItems().map(e=>{let t=U[e.index];return t?t.kind===`file`?(0,b.jsxs)(`li`,{"data-index":e.index,ref:K.measureElement,className:`absolute left-0 flex w-full items-center gap-2 px-2 py-1 text-sm text-muted-foreground`,style:{top:e.start},children:[(0,b.jsx)(a,{name:`File`,className:`size-4 shrink-0`}),(0,b.jsx)(`span`,{className:`min-w-0 truncate`,title:t.name,children:t.name})]},t.path):(0,b.jsx)(`li`,{"data-index":e.index,ref:K.measureElement,className:`absolute left-0 w-full`,style:{top:e.start},children:(0,b.jsxs)(`button`,{type:`button`,disabled:Q,className:`flex w-full items-center gap-2 rounded-sm px-2 py-1 text-left text-sm hover:bg-muted disabled:pointer-events-none`,onClick:()=>J(t.path),children:[(0,b.jsx)(a,{name:`Folder`,className:`size-4 shrink-0 text-muted-foreground`}),(0,b.jsx)(`span`,{className:`min-w-0 truncate`,title:t.name,children:t.name}),(0,b.jsx)(a,{name:`ChevronRight`,className:`ml-auto size-4 shrink-0 text-muted-foreground`})]})},t.path):null})}):(0,b.jsx)(h,{icon:`Spinner`,iconClassName:`animate-spin`,message:`Loading…`,className:`px-2 py-3`}),(0,b.jsxs)(`div`,{className:`flex flex-col rounded-md border`,children:[(0,b.jsx)(`div`,{className:`flex items-center gap-1 border-b px-1.5 py-1`,children:C?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(p,{ref:D,"aria-label":`Project path`,className:`h-7 flex-1 text-xs`,value:T,disabled:x,placeholder:`/path/to/project`,onChange:e=>E(e.target.value),onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),Z()):e.key===`Escape`&&(e.preventDefault(),w(!1))}}),(0,b.jsx)(m,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"aria-label":`Go to path`,disabled:x,onClick:Z,children:(0,b.jsx)(a,{name:`Check`})})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(m,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"aria-label":`Go to parent folder`,disabled:Q||!L?.parent,onClick:()=>{L?.parent&&J(L.parent)},children:(0,b.jsx)(a,{name:`ArrowUp`})}),(0,b.jsx)(`div`,{className:`flex min-w-0 flex-1 items-center overflow-x-auto whitespace-nowrap text-xs text-muted-foreground`,children:H.map((e,t)=>(0,b.jsxs)(`span`,{className:`flex items-center`,children:[t>0?(0,b.jsx)(a,{name:`ChevronRight`,className:`size-3 shrink-0 opacity-50`}):null,t===0&&W.length>1?(0,b.jsxs)(d,{children:[(0,b.jsx)(te,{asChild:!0,disabled:Q,children:(0,b.jsxs)(`button`,{type:`button`,className:o(`flex items-center gap-0.5 rounded px-1 py-0.5 hover:bg-muted hover:text-foreground`,H.length===1&&`font-medium text-foreground`),children:[e.label,(0,b.jsx)(a,{name:`ChevronDown`,className:`size-3 shrink-0 opacity-50`})]})}),(0,b.jsx)(g,{align:`start`,mobileTitle:`Drive`,className:`max-h-72 overflow-y-auto`,children:W.map(e=>(0,b.jsx)(ne,{onSelect:()=>J(e),children:e},e))})]}):(0,b.jsx)(`button`,{type:`button`,disabled:Q,className:o(`rounded px-1 py-0.5 hover:bg-muted hover:text-foreground`,t===H.length-1&&`font-medium text-foreground`),onClick:()=>J(e.path),children:e.label})]},e.path))}),i?(0,b.jsx)(m,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"aria-label":`New folder`,disabled:!ge,onClick:me,children:(0,b.jsx)(a,{name:`FolderPlus`})}):null,(0,b.jsx)(m,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"aria-label":`Edit path`,disabled:Q,onClick:he,children:(0,b.jsx)(a,{name:`Edit`})})]})}),(0,b.jsxs)(`div`,{ref:G,className:o(`h-56 min-h-0 overflow-y-auto px-1.5 py-1`,B&&`opacity-60`),children:[O?(0,b.jsxs)(`div`,{role:`group`,"aria-label":`Create new folder`,className:`mb-1 flex flex-col gap-1`,children:[(0,b.jsxs)(`div`,{className:`flex items-center gap-2 px-2`,children:[(0,b.jsx)(a,{name:`Folder`,className:`size-4 shrink-0 text-muted-foreground`}),(0,b.jsx)(p,{ref:P,"aria-label":`New folder name`,className:`-ml-1 h-7 min-w-0 flex-1 px-1 text-sm`,value:A,disabled:Q,placeholder:`Folder name`,onChange:e=>{j(e.target.value),N(null)},onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),X()):e.key===`Escape`&&(e.preventDefault(),q())}}),(0,b.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[(0,b.jsx)(m,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"aria-label":`Create folder`,disabled:Q,onClick:X,children:(0,b.jsx)(a,{name:Y.isPending?`Spinner`:`Check`,className:o(Y.isPending&&`animate-spin`)})}),(0,b.jsx)(m,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"aria-label":`Cancel new folder`,disabled:Q,onClick:q,children:(0,b.jsx)(a,{name:`X`})})]})]}),M?(0,b.jsx)(`p`,{role:`alert`,className:`px-2 text-xs text-destructive`,children:M}):null]}):null,$]})]})}export{x as RemotePathBrowser};
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,ni as n,qr as r,ri as i}from"./boot-vendor-CKEhulXz.js";import{Dh as a,Fh as o,Gd as s,I_ as ee,Sc as c,Xi as l,Zo as u,aa as d,ha as te,hg as f,ia as p,jh as m,la as ne,na as h,sa as g}from"./index-DCps_qBD.js";import{t as _}from"./esm-CUQGeFi6.js";var v=e(t(),1);function y({queryClient:e,hostId:t,directory:n}){return e.invalidateQueries({queryKey:f(t,n),refetchType:`none`})}var b=e(i(),1);function re(e){if(!/^[A-Za-z]:/.test(e)){let t=[{label:`/`,path:`/`}],n=``;for(let r of e.split(`/`).filter(Boolean))n=`${n}/${r}`,t.push({label:r,path:n});return t}let t=e.replace(/\//g,`\\`).split(`\\`).filter(Boolean),n=t[0]??``,r=[{label:n,path:`${n}\\`}],i=n;for(let e of t.slice(1))i=`${i}\\${e}`,r.push({label:e,path:i});return r}function ie(e,t){return/^[A-Za-z]:/.test(e)?`${e.replace(/[\\/]+$/,``)}\\${t}`:`${e.replace(/\/+$/,``)}/${t}`}function ae(e){return!e||e===`.`||e===`..`?`Enter a folder name.`:/[\\/]/.test(e)?`Folder names can't contain slashes.`:null}var oe=28,se=10,ce=[],le=[];function x({hostId:e,initialPath:t=null,allowCreateFolder:i,onDirectoryChange:f,disabled:x=!1}){let[S,ue]=(0,v.useState)(t),[C,w]=(0,v.useState)(!1),[T,E]=(0,v.useState)(``),D=(0,v.useRef)(null),[O,k]=(0,v.useState)(!1),[A,j]=(0,v.useState)(``),[M,N]=(0,v.useState)(null),P=(0,v.useRef)(null),F=c(),I=n(),{data:L,isError:R,error:z,isPlaceholderData:B}=l(e,S),V=L?.directory??null,H=V?re(V):[],U=L?.entries??ce,W=L?.roots??le,G=(0,v.useRef)(null),de=(0,v.useCallback)(()=>G.current,[]),fe=(0,v.useCallback)(()=>oe,[]),pe=(0,v.useCallback)(e=>U[e]?.path??e,[U]),K=_({count:U.length,getScrollElement:de,estimateSize:fe,getItemKey:pe,overscan:se}),q=()=>{k(!1),N(null)},J=e=>{q(),K.scrollToOffset(0),ue(e)},me=()=>{!i||x||Y.isPending||!V||R||B||(j(``),N(null),k(!0))},Y=r({mutationFn:async({parent:t,name:n})=>{let r=ie(t,n);return await s.files.mkdir({hostId:e,path:r}),r},onSuccess:async(t,{parent:n})=>{j(``),J(t),await y({queryClient:I,hostId:e,directory:n})},onError:e=>{N(u({error:e,fallbackMessage:`Couldn't create that folder.`}))}}),X=()=>{if(x||Y.isPending||!V||R||B)return;let e=A.trim(),t=ae(e);if(t){N(t);return}N(null),Y.mutate({parent:V,name:e})};(0,v.useEffect)(()=>{f(V)},[V,f]),(0,v.useEffect)(()=>{C&&!F&&D.current?.focus()},[C,F]),(0,v.useEffect)(()=>{O&&!F&&P.current?.focus()},[O,F]);let he=()=>{q(),E(V??``),w(!0)},Z=()=>{let e=ee(T);w(!1),e&&J(e)},Q=x||Y.isPending,ge=i&&!Q&&V!==null&&!R&&!B,$;return $=R?(0,b.jsx)(h,{icon:`AlertCircle`,message:u({error:z,fallbackMessage:`Couldn't read this folder.`}),messageClassName:`text-destructive`,className:`px-2 py-3`}):L?U.length===0?(0,b.jsx)(h,{message:`This folder is empty.`,className:`px-2 py-3`}):(0,b.jsx)(`ul`,{className:`relative`,style:{height:K.getTotalSize()},children:K.getVirtualItems().map(e=>{let t=U[e.index];return t?t.kind===`file`?(0,b.jsxs)(`li`,{"data-index":e.index,ref:K.measureElement,className:`absolute left-0 flex w-full items-center gap-2 px-2 py-1 text-sm text-muted-foreground`,style:{top:e.start},children:[(0,b.jsx)(a,{name:`File`,className:`size-4 shrink-0`}),(0,b.jsx)(`span`,{className:`min-w-0 truncate`,title:t.name,children:t.name})]},t.path):(0,b.jsx)(`li`,{"data-index":e.index,ref:K.measureElement,className:`absolute left-0 w-full`,style:{top:e.start},children:(0,b.jsxs)(`button`,{type:`button`,disabled:Q,className:`flex w-full items-center gap-2 rounded-sm px-2 py-1 text-left text-sm hover:bg-muted disabled:pointer-events-none`,onClick:()=>J(t.path),children:[(0,b.jsx)(a,{name:`Folder`,className:`size-4 shrink-0 text-muted-foreground`}),(0,b.jsx)(`span`,{className:`min-w-0 truncate`,title:t.name,children:t.name}),(0,b.jsx)(a,{name:`ChevronRight`,className:`ml-auto size-4 shrink-0 text-muted-foreground`})]})},t.path):null})}):(0,b.jsx)(h,{icon:`Spinner`,iconClassName:`animate-spin`,message:`Loading…`,className:`px-2 py-3`}),(0,b.jsxs)(`div`,{className:`flex flex-col rounded-md border`,children:[(0,b.jsx)(`div`,{className:`flex items-center gap-1 border-b px-1.5 py-1`,children:C?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(p,{ref:D,"aria-label":`Project path`,className:`h-7 flex-1 text-xs`,value:T,disabled:x,placeholder:`/path/to/project`,onChange:e=>E(e.target.value),onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),Z()):e.key===`Escape`&&(e.preventDefault(),w(!1))}}),(0,b.jsx)(m,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"aria-label":`Go to path`,disabled:x,onClick:Z,children:(0,b.jsx)(a,{name:`Check`})})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(m,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"aria-label":`Go to parent folder`,disabled:Q||!L?.parent,onClick:()=>{L?.parent&&J(L.parent)},children:(0,b.jsx)(a,{name:`ArrowUp`})}),(0,b.jsx)(`div`,{className:`flex min-w-0 flex-1 items-center overflow-x-auto whitespace-nowrap text-xs text-muted-foreground`,children:H.map((e,t)=>(0,b.jsxs)(`span`,{className:`flex items-center`,children:[t>0?(0,b.jsx)(a,{name:`ChevronRight`,className:`size-3 shrink-0 opacity-50`}):null,t===0&&W.length>1?(0,b.jsxs)(d,{children:[(0,b.jsx)(te,{asChild:!0,disabled:Q,children:(0,b.jsxs)(`button`,{type:`button`,className:o(`flex items-center gap-0.5 rounded px-1 py-0.5 hover:bg-muted hover:text-foreground`,H.length===1&&`font-medium text-foreground`),children:[e.label,(0,b.jsx)(a,{name:`ChevronDown`,className:`size-3 shrink-0 opacity-50`})]})}),(0,b.jsx)(g,{align:`start`,mobileTitle:`Drive`,className:`max-h-72 overflow-y-auto`,children:W.map(e=>(0,b.jsx)(ne,{onSelect:()=>J(e),children:e},e))})]}):(0,b.jsx)(`button`,{type:`button`,disabled:Q,className:o(`rounded px-1 py-0.5 hover:bg-muted hover:text-foreground`,t===H.length-1&&`font-medium text-foreground`),onClick:()=>J(e.path),children:e.label})]},e.path))}),i?(0,b.jsx)(m,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"aria-label":`New folder`,disabled:!ge,onClick:me,children:(0,b.jsx)(a,{name:`FolderPlus`})}):null,(0,b.jsx)(m,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"aria-label":`Edit path`,disabled:Q,onClick:he,children:(0,b.jsx)(a,{name:`Edit`})})]})}),(0,b.jsxs)(`div`,{ref:G,className:o(`h-56 min-h-0 overflow-y-auto px-1.5 py-1`,B&&`opacity-60`),children:[O?(0,b.jsxs)(`div`,{role:`group`,"aria-label":`Create new folder`,className:`mb-1 flex flex-col gap-1`,children:[(0,b.jsxs)(`div`,{className:`flex items-center gap-2 px-2`,children:[(0,b.jsx)(a,{name:`Folder`,className:`size-4 shrink-0 text-muted-foreground`}),(0,b.jsx)(p,{ref:P,"aria-label":`New folder name`,className:`-ml-1 h-7 min-w-0 flex-1 px-1 text-sm`,value:A,disabled:Q,placeholder:`Folder name`,onChange:e=>{j(e.target.value),N(null)},onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),X()):e.key===`Escape`&&(e.preventDefault(),q())}}),(0,b.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[(0,b.jsx)(m,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"aria-label":`Create folder`,disabled:Q,onClick:X,children:(0,b.jsx)(a,{name:Y.isPending?`Spinner`:`Check`,className:o(Y.isPending&&`animate-spin`)})}),(0,b.jsx)(m,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"aria-label":`Cancel new folder`,disabled:Q,onClick:q,children:(0,b.jsx)(a,{name:`X`})})]})]}),M?(0,b.jsx)(`p`,{role:`alert`,className:`px-2 text-xs text-destructive`,children:M}):null]}):null,$]})]})}export{x as RemotePathBrowser};