@halcyonlabs/app 0.47.0-halcyon.15 → 0.47.0-halcyon.150

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 (1076) hide show
  1. package/LICENSE +113 -0
  2. package/THIRD-PARTY-NOTICES +65 -0
  3. package/app/dist/assets/AddMachineDialog-UUUJINN_.js +1 -0
  4. package/app/dist/assets/AddMachineDialog-UUUJINN_.js.br +0 -0
  5. package/app/dist/assets/AddMachineDialog-UUUJINN_.js.gz +0 -0
  6. package/app/dist/assets/AppCommandShortcutHint-XqWnnhwm.js +1 -0
  7. package/app/dist/assets/AppFileExternalNavigationDispatcher-BSAKfw3w.js +1 -0
  8. package/app/dist/assets/AppFileExternalNavigationDispatcher-BSAKfw3w.js.br +0 -0
  9. package/app/dist/assets/AppFileExternalNavigationDispatcher-BSAKfw3w.js.gz +0 -0
  10. package/app/dist/assets/AppToasterView-CXc7iVrR.js +1 -0
  11. package/app/dist/assets/BbDiff-DphdUFhF.js +1 -0
  12. package/app/dist/assets/BbDiff-DphdUFhF.js.br +0 -0
  13. package/app/dist/assets/BbDiff-DphdUFhF.js.gz +0 -0
  14. package/app/dist/assets/BbDiffSplit-DoZzLlkG.js +2 -0
  15. package/app/dist/assets/BbDiffSplit-DoZzLlkG.js.br +0 -0
  16. package/app/dist/assets/BbDiffSplit-DoZzLlkG.js.gz +0 -0
  17. package/app/dist/assets/BbSourceCode-BpW5o86b.js +2 -0
  18. package/app/dist/assets/BbSourceCode-BpW5o86b.js.br +0 -0
  19. package/app/dist/assets/BbSourceCode-BpW5o86b.js.gz +0 -0
  20. package/app/dist/assets/BrowserTabDeck-BAqPQSof.js +1 -0
  21. package/app/dist/assets/BrowserTabDeck-BAqPQSof.js.br +0 -0
  22. package/app/dist/assets/BrowserTabDeck-BAqPQSof.js.gz +0 -0
  23. package/app/dist/assets/CommandPaletteBody-DP0u2Xvo.js +1 -0
  24. package/app/dist/assets/CommandPaletteBody-DP0u2Xvo.js.br +0 -0
  25. package/app/dist/assets/CommandPaletteBody-DP0u2Xvo.js.gz +0 -0
  26. package/app/dist/assets/DiffHost-BYfjGqQR.js +1 -0
  27. package/app/dist/assets/DiffHost-BYfjGqQR.js.br +0 -0
  28. package/app/dist/assets/DiffHost-BYfjGqQR.js.gz +0 -0
  29. package/app/dist/assets/ExperimentalFileLinkMenu-BAq3i6fs.js +1 -0
  30. package/app/dist/assets/ExperimentalFileLinkMenu-BAq3i6fs.js.br +0 -0
  31. package/app/dist/assets/ExperimentalFileLinkMenu-BAq3i6fs.js.gz +0 -0
  32. package/app/dist/assets/FilePreview-D3M2shlJ.js +3 -0
  33. package/app/dist/assets/FilePreview-D3M2shlJ.js.br +0 -0
  34. package/app/dist/assets/FilePreview-D3M2shlJ.js.gz +0 -0
  35. package/app/dist/assets/GitDiffCardHeader-CRpu_qP7.js +1 -0
  36. package/app/dist/assets/GitDiffCardHeader-CRpu_qP7.js.br +0 -0
  37. package/app/dist/assets/GitDiffCardHeader-CRpu_qP7.js.gz +0 -0
  38. package/app/dist/assets/InlineMessageEditorFrame-BIfhlo1r.js +1 -0
  39. package/app/dist/assets/InlineMessageEditorFrame-BIfhlo1r.js.br +0 -0
  40. package/app/dist/assets/InlineMessageEditorFrame-BIfhlo1r.js.gz +0 -0
  41. package/app/dist/assets/MachineRenameDialog-KYbZxaU8.js +1 -0
  42. package/app/dist/assets/MachineRenameDialog-KYbZxaU8.js.br +0 -0
  43. package/app/dist/assets/MachineRenameDialog-KYbZxaU8.js.gz +0 -0
  44. package/app/dist/assets/MachineSettingsView-B2gik2Fi.js +1 -0
  45. package/app/dist/assets/MachineSettingsView-B2gik2Fi.js.br +0 -0
  46. package/app/dist/assets/MachineSettingsView-B2gik2Fi.js.gz +0 -0
  47. package/app/dist/assets/MicrophonePreferences-D8yXHTVX.js +1 -0
  48. package/app/dist/assets/MicrophonePreferences-D8yXHTVX.js.br +0 -0
  49. package/app/dist/assets/MicrophonePreferences-D8yXHTVX.js.gz +0 -0
  50. package/app/dist/assets/ModelReasoningMenu-64I3wWj8.js +1 -0
  51. package/app/dist/assets/ModelReasoningMenu-64I3wWj8.js.br +0 -0
  52. package/app/dist/assets/ModelReasoningMenu-64I3wWj8.js.gz +0 -0
  53. package/app/dist/assets/NewTabPage-0D1zh52c.js +2 -0
  54. package/app/dist/assets/NewTabPage-0D1zh52c.js.br +0 -0
  55. package/app/dist/assets/NewTabPage-0D1zh52c.js.gz +0 -0
  56. package/app/dist/assets/NewThreadComposer-CzhJPPA-.js +1 -0
  57. package/app/dist/assets/NewThreadComposer-CzhJPPA-.js.br +0 -0
  58. package/app/dist/assets/NewThreadComposer-CzhJPPA-.js.gz +0 -0
  59. package/app/dist/assets/OnboardingFlow-B7dIXW5b.js +1 -0
  60. package/app/dist/assets/OnboardingFlow-B7dIXW5b.js.br +0 -0
  61. package/app/dist/assets/OnboardingFlow-B7dIXW5b.js.gz +0 -0
  62. package/app/dist/assets/OptionPicker-CVNc9bQV.js +1 -0
  63. package/app/dist/assets/OptionPicker-CVNc9bQV.js.br +0 -0
  64. package/app/dist/assets/OptionPicker-CVNc9bQV.js.gz +0 -0
  65. package/app/dist/assets/PaletteShell-BmMN3w8R.js +1 -0
  66. package/app/dist/assets/PaletteShell-BmMN3w8R.js.br +0 -0
  67. package/app/dist/assets/PaletteShell-BmMN3w8R.js.gz +0 -0
  68. package/app/dist/assets/PaneMaximizeButton-CJ2jMV6A.js +1 -0
  69. package/app/dist/assets/PaneMaximizeButton-CJ2jMV6A.js.br +0 -0
  70. package/app/dist/assets/PaneMaximizeButton-CJ2jMV6A.js.gz +0 -0
  71. package/app/dist/assets/PierreLineSelectionActions-CKcwMnwZ.js +1 -0
  72. package/app/dist/assets/PierreLineSelectionActions-CKcwMnwZ.js.br +0 -0
  73. package/app/dist/assets/PierreLineSelectionActions-CKcwMnwZ.js.gz +0 -0
  74. package/app/dist/assets/PluginPanelRightPanelHost-CM5fWHYY.js +1 -0
  75. package/app/dist/assets/PluginPanelRightPanelHost-CM5fWHYY.js.br +0 -0
  76. package/app/dist/assets/PluginPanelRightPanelHost-CM5fWHYY.js.gz +0 -0
  77. package/app/dist/assets/PluginThreadChat-TLqw_QGC.js +1 -0
  78. package/app/dist/assets/PluginThreadChat-TLqw_QGC.js.br +0 -0
  79. package/app/dist/assets/PluginThreadChat-TLqw_QGC.js.gz +0 -0
  80. package/app/dist/assets/ProjectDetailSettingsView-BsUvPmd1.js +1 -0
  81. package/app/dist/assets/ProjectDetailSettingsView-BsUvPmd1.js.br +0 -0
  82. package/app/dist/assets/ProjectDetailSettingsView-BsUvPmd1.js.gz +0 -0
  83. package/app/dist/assets/ProjectMachineSetupDialog-BP7XMssh.js +1 -0
  84. package/app/dist/assets/ProjectMachineSetupDialog-BP7XMssh.js.br +0 -0
  85. package/app/dist/assets/ProjectMachineSetupDialog-BP7XMssh.js.gz +0 -0
  86. package/app/dist/assets/ProjectsSettingsSection-yZ2EdUuh.js +3 -0
  87. package/app/dist/assets/ProjectsSettingsSection-yZ2EdUuh.js.br +0 -0
  88. package/app/dist/assets/ProjectsSettingsSection-yZ2EdUuh.js.gz +0 -0
  89. package/app/dist/assets/QueuedMessagesList-BwnbJOmz.js +3 -0
  90. package/app/dist/assets/QueuedMessagesList-BwnbJOmz.js.br +0 -0
  91. package/app/dist/assets/QueuedMessagesList-BwnbJOmz.js.gz +0 -0
  92. package/app/dist/assets/RemotePathBrowser-DUrwe6ZE.js +1 -0
  93. package/app/dist/assets/RemotePathBrowser-DUrwe6ZE.js.br +0 -0
  94. package/app/dist/assets/RemotePathBrowser-DUrwe6ZE.js.gz +0 -0
  95. package/app/dist/assets/RootComposeView-oJcCn_s1.js +1 -0
  96. package/app/dist/assets/RootComposeView-oJcCn_s1.js.br +0 -0
  97. package/app/dist/assets/RootComposeView-oJcCn_s1.js.gz +0 -0
  98. package/app/dist/assets/SecondaryPanelLayout-CL5xgoDW.js +1 -0
  99. package/app/dist/assets/SecondaryPanelLayout-CL5xgoDW.js.br +0 -0
  100. package/app/dist/assets/SecondaryPanelLayout-CL5xgoDW.js.gz +0 -0
  101. package/app/dist/assets/ServerMoveOverlayView-BRspdcDG.js +1 -0
  102. package/app/dist/assets/ServerMoveOverlayView-BRspdcDG.js.br +0 -0
  103. package/app/dist/assets/ServerMoveOverlayView-BRspdcDG.js.gz +0 -0
  104. package/app/dist/assets/SettingsSidebar-ji-CSeC6.js +1 -0
  105. package/app/dist/assets/SettingsSidebar-ji-CSeC6.js.br +0 -0
  106. package/app/dist/assets/SettingsSidebar-ji-CSeC6.js.gz +0 -0
  107. package/app/dist/assets/SettingsView-CkBg3_lw.js +1244 -0
  108. package/app/dist/assets/SettingsView-CkBg3_lw.js.br +0 -0
  109. package/app/dist/assets/SettingsView-CkBg3_lw.js.gz +0 -0
  110. package/app/dist/assets/SidebarFooterCustomize-BzHHOUw-.js +1 -0
  111. package/app/dist/assets/SidebarFooterCustomize-BzHHOUw-.js.br +0 -0
  112. package/app/dist/assets/SidebarFooterCustomize-BzHHOUw-.js.gz +0 -0
  113. package/app/dist/assets/SidebarVisibilityCustomize-C1sJJmLO.js +1 -0
  114. package/app/dist/assets/SidebarVisibilityCustomize-C1sJJmLO.js.br +0 -0
  115. package/app/dist/assets/SidebarVisibilityCustomize-C1sJJmLO.js.gz +0 -0
  116. package/app/dist/assets/SourceCodeHost-BTHk84dk.js +2 -0
  117. package/app/dist/assets/SourceCodeHost-BTHk84dk.js.br +0 -0
  118. package/app/dist/assets/SourceCodeHost-BTHk84dk.js.gz +0 -0
  119. package/app/dist/assets/SplitWorkspaceRoute-B5Zx7J8C.js +2 -0
  120. package/app/dist/assets/SplitWorkspaceRoute-B5Zx7J8C.js.br +0 -0
  121. package/app/dist/assets/SplitWorkspaceRoute-B5Zx7J8C.js.gz +0 -0
  122. package/app/dist/assets/TerminalOutputBlock-D8Coy0K6.js +4 -0
  123. package/app/dist/assets/TerminalOutputBlock-D8Coy0K6.js.br +0 -0
  124. package/app/dist/assets/TerminalOutputBlock-D8Coy0K6.js.gz +0 -0
  125. package/app/dist/assets/ThreadActionsMenu-BB7XL5Ux.js +1 -0
  126. package/app/dist/assets/ThreadActionsMenu-BB7XL5Ux.js.br +0 -0
  127. package/app/dist/assets/ThreadActionsMenu-BB7XL5Ux.js.gz +0 -0
  128. package/app/dist/assets/ThreadDetailView-sCxYviMF.js +6 -0
  129. package/app/dist/assets/ThreadDetailView-sCxYviMF.js.br +0 -0
  130. package/app/dist/assets/ThreadDetailView-sCxYviMF.js.gz +0 -0
  131. package/app/dist/assets/ThreadSearchPaletteMode-CNuSxSDT.js +1 -0
  132. package/app/dist/assets/ThreadSearchPaletteMode-CNuSxSDT.js.br +0 -0
  133. package/app/dist/assets/ThreadSearchPaletteMode-CNuSxSDT.js.gz +0 -0
  134. package/app/dist/assets/ThreadSecondaryPanel--TXJtwro.js +1 -0
  135. package/app/dist/assets/ThreadSecondaryPanel--TXJtwro.js.br +0 -0
  136. package/app/dist/assets/ThreadSecondaryPanel--TXJtwro.js.gz +0 -0
  137. package/app/dist/assets/ThreadSecondaryPanelTabContent-I4ppwNUx.js +3 -0
  138. package/app/dist/assets/ThreadSecondaryPanelTabContent-I4ppwNUx.js.br +0 -0
  139. package/app/dist/assets/ThreadSecondaryPanelTabContent-I4ppwNUx.js.gz +0 -0
  140. package/app/dist/assets/ThreadStatusGlyph-DodjCUyJ.js +1 -0
  141. package/app/dist/assets/ThreadStatusGlyph-DodjCUyJ.js.br +0 -0
  142. package/app/dist/assets/ThreadStatusGlyph-DodjCUyJ.js.gz +0 -0
  143. package/app/dist/assets/ThreadTerminalPanel-BvegWjNb.js +1 -0
  144. package/app/dist/assets/ThreadTerminalPanel-BvegWjNb.js.br +0 -0
  145. package/app/dist/assets/ThreadTerminalPanel-BvegWjNb.js.gz +0 -0
  146. package/app/dist/assets/ThreadTerminalView-eitR3jHV.js +1 -0
  147. package/app/dist/assets/ThreadTerminalView-eitR3jHV.js.br +0 -0
  148. package/app/dist/assets/ThreadTerminalView-eitR3jHV.js.gz +0 -0
  149. package/app/dist/assets/ThreadTimelineNavigationContext-CsCsqcye.js +2 -0
  150. package/app/dist/assets/ThreadTimelineNavigationContext-CsCsqcye.js.br +0 -0
  151. package/app/dist/assets/ThreadTimelineNavigationContext-CsCsqcye.js.gz +0 -0
  152. package/app/dist/assets/ThreadUnarchiveButton-3l74PF2Y.js +1 -0
  153. package/app/dist/assets/TimelineDetailScroll-Wqjtt19Q.js +1 -0
  154. package/app/dist/assets/TimelineDetailScroll-Wqjtt19Q.js.br +0 -0
  155. package/app/dist/assets/TimelineDetailScroll-Wqjtt19Q.js.gz +0 -0
  156. package/app/dist/assets/TimelineFileDiffBlock-DP66VABD.js +6 -0
  157. package/app/dist/assets/TimelineFileDiffBlock-DP66VABD.js.br +0 -0
  158. package/app/dist/assets/TimelineFileDiffBlock-DP66VABD.js.gz +0 -0
  159. package/app/dist/assets/TimelineSelectionMenu-dDFIppSs.js +21 -0
  160. package/app/dist/assets/TimelineSelectionMenu-dDFIppSs.js.br +0 -0
  161. package/app/dist/assets/TimelineSelectionMenu-dDFIppSs.js.gz +0 -0
  162. package/app/dist/assets/ToolsView-BbgSCMyJ.js +5 -0
  163. package/app/dist/assets/ToolsView-BbgSCMyJ.js.br +0 -0
  164. package/app/dist/assets/ToolsView-BbgSCMyJ.js.gz +0 -0
  165. package/app/dist/assets/ToolsViewSplits-3v4dQMWH.js +2 -0
  166. package/app/dist/assets/ToolsViewSplits-3v4dQMWH.js.br +0 -0
  167. package/app/dist/assets/ToolsViewSplits-3v4dQMWH.js.gz +0 -0
  168. package/app/dist/assets/WaveformVisualizer-CTuYQaxv.js +1 -0
  169. package/app/dist/assets/WaveformVisualizer-CTuYQaxv.js.br +0 -0
  170. package/app/dist/assets/WaveformVisualizer-CTuYQaxv.js.gz +0 -0
  171. package/app/dist/assets/absolute-file-path-C52NE2Ra.js +1 -0
  172. package/app/dist/assets/app-fixed-tab-navigation-Bazo4E3N.js +1 -0
  173. package/app/dist/assets/app-fixed-tab-navigation-Bazo4E3N.js.br +0 -0
  174. package/app/dist/assets/app-fixed-tab-navigation-Bazo4E3N.js.gz +0 -0
  175. package/app/dist/assets/audio-input-device-preference-BInbKM6f.js +1 -0
  176. package/app/dist/assets/audio-input-device-preference-BInbKM6f.js.br +0 -0
  177. package/app/dist/assets/audio-input-device-preference-BInbKM6f.js.gz +0 -0
  178. package/app/dist/assets/bottom-anchored-scroll-body-BvJ4RPW1.js +1 -0
  179. package/app/dist/assets/bottom-anchored-scroll-body-BvJ4RPW1.js.br +0 -0
  180. package/app/dist/assets/bottom-anchored-scroll-body-BvJ4RPW1.js.gz +0 -0
  181. package/app/dist/assets/browser-url-BZwRHtdQ.js +1 -0
  182. package/app/dist/assets/browser-url-BZwRHtdQ.js.br +0 -0
  183. package/app/dist/assets/browser-url-BZwRHtdQ.js.gz +0 -0
  184. package/app/dist/assets/checkbox-DNIhYMDu.js +1 -0
  185. package/app/dist/assets/checkbox-DNIhYMDu.js.br +0 -0
  186. package/app/dist/assets/checkbox-DNIhYMDu.js.gz +0 -0
  187. package/app/dist/assets/code-loading-skeletons-IO1KXbza.js +1 -0
  188. package/app/dist/assets/code-loading-skeletons-IO1KXbza.js.br +0 -0
  189. package/app/dist/assets/code-loading-skeletons-IO1KXbza.js.gz +0 -0
  190. package/app/dist/assets/code-rendering-B0ibReMv.js +1 -0
  191. package/app/dist/assets/code-theme-registration-DQQ5WAyA.js +1 -0
  192. package/app/dist/assets/detail-card-DDIAUec5.js +1 -0
  193. package/app/dist/assets/detail-card-DDIAUec5.js.br +0 -0
  194. package/app/dist/assets/detail-card-DDIAUec5.js.gz +0 -0
  195. package/app/dist/assets/diff-stats-tally-CKiw6JxL.js +1 -0
  196. package/app/dist/assets/diff-stats-tally-CKiw6JxL.js.br +0 -0
  197. package/app/dist/assets/diff-stats-tally-CKiw6JxL.js.gz +0 -0
  198. package/app/dist/assets/environment-mutations-NoOecJ_m.js +1 -0
  199. package/app/dist/assets/environment-mutations-NoOecJ_m.js.br +0 -0
  200. package/app/dist/assets/environment-mutations-NoOecJ_m.js.gz +0 -0
  201. package/app/dist/assets/environment-workspace-display-DlH4-2Je.js +4 -0
  202. package/app/dist/assets/environment-workspace-display-DlH4-2Je.js.br +0 -0
  203. package/app/dist/assets/environment-workspace-display-DlH4-2Je.js.gz +0 -0
  204. package/app/dist/assets/event-code-block-BglioqVe.js +2 -0
  205. package/app/dist/assets/event-code-block-BglioqVe.js.br +0 -0
  206. package/app/dist/assets/event-code-block-BglioqVe.js.gz +0 -0
  207. package/app/dist/assets/expandable-text-roHqoKS6.js +1 -0
  208. package/app/dist/assets/expandable-text-roHqoKS6.js.br +0 -0
  209. package/app/dist/assets/expandable-text-roHqoKS6.js.gz +0 -0
  210. package/app/dist/assets/file-opener-preference-LZpK4AFI.js +1 -0
  211. package/app/dist/assets/file-path-link-BqX0yHKv.js +1 -0
  212. package/app/dist/assets/file-path-link-BqX0yHKv.js.br +0 -0
  213. package/app/dist/assets/file-path-link-BqX0yHKv.js.gz +0 -0
  214. package/app/dist/assets/host-mutations-BBHMe5SP.js +1 -0
  215. package/app/dist/assets/host-mutations-BBHMe5SP.js.br +0 -0
  216. package/app/dist/assets/host-mutations-BBHMe5SP.js.gz +0 -0
  217. package/app/dist/assets/icon-extended-QRecSyLO.js +1 -0
  218. package/app/dist/assets/icon-extended-QRecSyLO.js.br +0 -0
  219. package/app/dist/assets/icon-extended-QRecSyLO.js.gz +0 -0
  220. package/app/dist/assets/image-lightbox-DcW9NMfz.js +1 -0
  221. package/app/dist/assets/image-lightbox-DcW9NMfz.js.br +0 -0
  222. package/app/dist/assets/image-lightbox-DcW9NMfz.js.gz +0 -0
  223. package/app/dist/assets/index-D2OEUGpi.css +2 -0
  224. package/app/dist/assets/index-D2OEUGpi.css.br +0 -0
  225. package/app/dist/assets/index-D2OEUGpi.css.gz +0 -0
  226. package/app/dist/assets/index-DacqPN7W.js +395 -0
  227. package/app/dist/assets/index-DacqPN7W.js.br +0 -0
  228. package/app/dist/assets/index-DacqPN7W.js.gz +0 -0
  229. package/app/dist/assets/inline-rename-editor-C620Mj5u.js +1 -0
  230. package/app/dist/assets/inline-rename-editor-C620Mj5u.js.br +0 -0
  231. package/app/dist/assets/inline-rename-editor-C620Mj5u.js.gz +0 -0
  232. package/app/dist/assets/launcherRow-DKoO_khe.js +1 -0
  233. package/app/dist/assets/launcherRow-DKoO_khe.js.br +0 -0
  234. package/app/dist/assets/launcherRow-DKoO_khe.js.gz +0 -0
  235. package/app/dist/assets/localhost-link-rewrite-description-D0-Y3k5i.js +1 -0
  236. package/app/dist/assets/localhost-link-rewrite-description-D0-Y3k5i.js.br +0 -0
  237. package/app/dist/assets/localhost-link-rewrite-description-D0-Y3k5i.js.gz +0 -0
  238. package/app/dist/assets/machine-provider-queries-raWIen_P.js +1 -0
  239. package/app/dist/assets/machine-provider-queries-raWIen_P.js.br +0 -0
  240. package/app/dist/assets/machine-provider-queries-raWIen_P.js.gz +0 -0
  241. package/app/dist/assets/machine-server-access-DQREaCCd.js +1 -0
  242. package/app/dist/assets/markdown-file-image-routing-DVUeRAfb.js +1 -0
  243. package/app/dist/assets/markdown-html-DHd4UhWi.js +1 -0
  244. package/app/dist/assets/markdown-html-DHd4UhWi.js.br +0 -0
  245. package/app/dist/assets/markdown-html-DHd4UhWi.js.gz +0 -0
  246. package/app/dist/assets/markdown-local-file-link-C7ZSh39X.js +2 -0
  247. package/app/dist/assets/markdown-local-file-link-C7ZSh39X.js.br +0 -0
  248. package/app/dist/assets/markdown-local-file-link-C7ZSh39X.js.gz +0 -0
  249. package/app/dist/assets/markdown-preview-BDgTvGB7.js +38 -0
  250. package/app/dist/assets/markdown-preview-BDgTvGB7.js.br +0 -0
  251. package/app/dist/assets/markdown-preview-BDgTvGB7.js.gz +0 -0
  252. package/app/dist/assets/markdown-prompt-mentions-8OPHWmgV.js +18 -0
  253. package/app/dist/assets/markdown-prompt-mentions-8OPHWmgV.js.br +0 -0
  254. package/app/dist/assets/markdown-prompt-mentions-8OPHWmgV.js.gz +0 -0
  255. package/app/dist/assets/model-load-error-message-CvmPmrbk.js +1 -0
  256. package/app/dist/assets/model-load-error-message-CvmPmrbk.js.br +0 -0
  257. package/app/dist/assets/model-load-error-message-CvmPmrbk.js.gz +0 -0
  258. package/app/dist/assets/onboarding-telemetry-DmkuGs4P.js +1 -0
  259. package/app/dist/assets/open-in-editor-button-DRMlCZor.js +1 -0
  260. package/app/dist/assets/open-in-editor-button-DRMlCZor.js.br +0 -0
  261. package/app/dist/assets/open-in-editor-button-DRMlCZor.js.gz +0 -0
  262. package/app/dist/assets/page-shell-BK7L-DYe.js +1 -0
  263. package/app/dist/assets/page-shell-BK7L-DYe.js.br +0 -0
  264. package/app/dist/assets/page-shell-BK7L-DYe.js.gz +0 -0
  265. package/app/dist/assets/pierre-worker-pool-CuLcpsi8.js +1 -0
  266. package/app/dist/assets/pierre-worker-pool-CuLcpsi8.js.br +0 -0
  267. package/app/dist/assets/pierre-worker-pool-CuLcpsi8.js.gz +0 -0
  268. package/app/dist/assets/plugin-detail-navigation-CJlE114J.js +1 -0
  269. package/app/dist/assets/plugin-detail-navigation-CJlE114J.js.br +0 -0
  270. package/app/dist/assets/plugin-detail-navigation-CJlE114J.js.gz +0 -0
  271. package/app/dist/assets/plugin-frontend-47rHuwej.js +4 -0
  272. package/app/dist/assets/plugin-frontend-47rHuwej.js.br +0 -0
  273. package/app/dist/assets/plugin-frontend-47rHuwej.js.gz +0 -0
  274. package/app/dist/assets/plugin-ui-CfMeVtjo.js +1 -0
  275. package/app/dist/assets/plugin-ui-CfMeVtjo.js.br +0 -0
  276. package/app/dist/assets/plugin-ui-CfMeVtjo.js.gz +0 -0
  277. package/app/dist/assets/project-default-execution-options-query-BJDaiFOL.js +1 -0
  278. package/app/dist/assets/queued-editor-typeahead-layout-BLdiUUDF.js +1 -0
  279. package/app/dist/assets/queued-editor-typeahead-layout-BLdiUUDF.js.br +0 -0
  280. package/app/dist/assets/queued-editor-typeahead-layout-BLdiUUDF.js.gz +0 -0
  281. package/app/dist/assets/queued-messages-layout-BznV1BaT.js +3 -0
  282. package/app/dist/assets/queued-messages-layout-BznV1BaT.js.br +0 -0
  283. package/app/dist/assets/queued-messages-layout-BznV1BaT.js.gz +0 -0
  284. package/app/dist/assets/resource-list-CVE0YyK0.js +1 -0
  285. package/app/dist/assets/resource-list-CVE0YyK0.js.br +0 -0
  286. package/app/dist/assets/resource-list-CVE0YyK0.js.gz +0 -0
  287. package/app/dist/assets/root-compose-create-preference-CHbwpPRF.js +1 -0
  288. package/app/dist/assets/save-file-Bf9FfsXN.js +1 -0
  289. package/app/dist/assets/settings-nav-aUt1tDMl.js +1 -0
  290. package/app/dist/assets/settings-nav-aUt1tDMl.js.br +0 -0
  291. package/app/dist/assets/settings-nav-aUt1tDMl.js.gz +0 -0
  292. package/app/dist/assets/settings-sections-DBK3hwuR.js +1 -0
  293. package/app/dist/assets/settings-sections-DBK3hwuR.js.br +0 -0
  294. package/app/dist/assets/settings-sections-DBK3hwuR.js.gz +0 -0
  295. package/app/dist/assets/shortcut-pill-DEGa4D8O.js +1 -0
  296. package/app/dist/assets/sidebarTouchSensor-CYys9CY6.js +1 -0
  297. package/app/dist/assets/sidebarTouchSensor-CYys9CY6.js.br +0 -0
  298. package/app/dist/assets/sidebarTouchSensor-CYys9CY6.js.gz +0 -0
  299. package/app/dist/assets/switch-BtMcgx46.js +1 -0
  300. package/app/dist/assets/switch-BtMcgx46.js.br +0 -0
  301. package/app/dist/assets/switch-BtMcgx46.js.gz +0 -0
  302. package/app/dist/assets/textarea-D7Nd-tMA.js +1 -0
  303. package/app/dist/assets/thread-event-parser-BiJ_VfWf.js +1 -0
  304. package/app/dist/assets/thread-event-parser-BiJ_VfWf.js.br +0 -0
  305. package/app/dist/assets/thread-event-parser-BiJ_VfWf.js.gz +0 -0
  306. package/app/dist/assets/thread-panel-queries-Car_bb3A.js +1 -0
  307. package/app/dist/assets/thread-panel-queries-Car_bb3A.js.br +0 -0
  308. package/app/dist/assets/thread-panel-queries-Car_bb3A.js.gz +0 -0
  309. package/app/dist/assets/thread-runtime-mutations-Cwga71Aj.js +3 -0
  310. package/app/dist/assets/thread-runtime-mutations-Cwga71Aj.js.br +0 -0
  311. package/app/dist/assets/thread-runtime-mutations-Cwga71Aj.js.gz +0 -0
  312. package/app/dist/assets/thread-terminal-queries-Bg-tvpkN.js +1 -0
  313. package/app/dist/assets/thread-terminal-queries-Bg-tvpkN.js.br +0 -0
  314. package/app/dist/assets/thread-terminal-queries-Bg-tvpkN.js.gz +0 -0
  315. package/app/dist/assets/threadRecentItems-UnDeouJZ.js +1 -0
  316. package/app/dist/assets/threadRecentItems-UnDeouJZ.js.br +0 -0
  317. package/app/dist/assets/threadRecentItems-UnDeouJZ.js.gz +0 -0
  318. package/app/dist/assets/threadWorkspaceOpenPath-Dzhkj2zL.js +1 -0
  319. package/app/dist/assets/threadWorkspaceOpenPath-Dzhkj2zL.js.br +0 -0
  320. package/app/dist/assets/threadWorkspaceOpenPath-Dzhkj2zL.js.gz +0 -0
  321. package/app/dist/assets/title-bar-scroll-fade-xPf3yN9Y.js +1 -0
  322. package/app/dist/assets/title-bar-scroll-fade-xPf3yN9Y.js.br +0 -0
  323. package/app/dist/assets/title-bar-scroll-fade-xPf3yN9Y.js.gz +0 -0
  324. package/app/dist/assets/truncate-start-Czvfq52J.js +1 -0
  325. package/app/dist/assets/use-hover-popover-Ckcn2jmk.js +1 -0
  326. package/app/dist/assets/use-hover-popover-Ckcn2jmk.js.br +0 -0
  327. package/app/dist/assets/use-hover-popover-Ckcn2jmk.js.gz +0 -0
  328. package/app/dist/assets/useElementWidth-C1ACj7NT.js +1 -0
  329. package/app/dist/assets/useElementWidth-C1ACj7NT.js.br +0 -0
  330. package/app/dist/assets/useElementWidth-C1ACj7NT.js.gz +0 -0
  331. package/app/dist/assets/useLocalOpenTargets-BHW47emg.js +1 -0
  332. package/app/dist/assets/useLocalOpenTargets-BHW47emg.js.br +0 -0
  333. package/app/dist/assets/useLocalOpenTargets-BHW47emg.js.gz +0 -0
  334. package/app/dist/assets/usePanelResizeSnap-XNmZmBMC.js +1 -0
  335. package/app/dist/assets/usePanelResizeSnap-XNmZmBMC.js.br +0 -0
  336. package/app/dist/assets/usePanelResizeSnap-XNmZmBMC.js.gz +0 -0
  337. package/app/dist/assets/usePanelTerminals-D854-ktJ.js +1 -0
  338. package/app/dist/assets/usePanelTerminals-D854-ktJ.js.br +0 -0
  339. package/app/dist/assets/usePanelTerminals-D854-ktJ.js.gz +0 -0
  340. package/app/dist/assets/usePathSuggestions-C7sDK8nq.js +1 -0
  341. package/app/dist/assets/usePathSuggestions-C7sDK8nq.js.br +0 -0
  342. package/app/dist/assets/usePathSuggestions-C7sDK8nq.js.gz +0 -0
  343. package/app/dist/assets/useResolvedLiveFileTarget-Djned7dt.js +1 -0
  344. package/app/dist/assets/useResolvedLiveFileTarget-Djned7dt.js.br +0 -0
  345. package/app/dist/assets/useResolvedLiveFileTarget-Djned7dt.js.gz +0 -0
  346. package/app/dist/assets/useThreadTerminalController-DzFZD_xB.js +1 -0
  347. package/app/dist/assets/useThreadTerminalController-DzFZD_xB.js.br +0 -0
  348. package/app/dist/assets/useThreadTerminalController-DzFZD_xB.js.gz +0 -0
  349. package/app/dist/assets/workspace-change-summary-B0yf2owq.js +1 -0
  350. package/app/dist/assets/workspace-change-summary-B0yf2owq.js.br +0 -0
  351. package/app/dist/assets/workspace-change-summary-B0yf2owq.js.gz +0 -0
  352. package/app/dist/assets/workspace-checkout-display-lFuCbZPV.js +32 -0
  353. package/app/dist/assets/workspace-checkout-display-lFuCbZPV.js.br +0 -0
  354. package/app/dist/assets/workspace-checkout-display-lFuCbZPV.js.gz +0 -0
  355. package/app/dist/index.html +19 -19
  356. package/app/dist/index.html.br +0 -0
  357. package/app/dist/index.html.gz +0 -0
  358. package/app/dist/manifest-blue.webmanifest +2 -2
  359. package/app/dist/manifest-green.webmanifest +2 -2
  360. package/app/dist/manifest-orange.webmanifest +2 -2
  361. package/app/dist/manifest-pink.webmanifest +2 -2
  362. package/app/dist/manifest-purple.webmanifest +2 -2
  363. package/app/dist/manifest-red.webmanifest +2 -2
  364. package/app/dist/manifest-teal.webmanifest +2 -2
  365. package/app/dist/manifest-yellow.webmanifest +2 -2
  366. package/app/dist/manifest.webmanifest +2 -2
  367. package/dist/bb-app.js +2 -2
  368. package/dist/bb-host-daemon.js +2 -2
  369. package/dist/bb-server.js +2 -2
  370. package/dist/bb.js +2 -2
  371. package/dist/index.d.ts +249 -126
  372. package/dist/index.js +36 -10
  373. package/host-daemon/dist/bb +2 -2
  374. package/host-daemon/dist/bb-chunks/browser-YPHFBSVB.js +6 -0
  375. package/host-daemon/dist/bb-chunks/chunk-4LTU3BZP.js +134 -0
  376. package/host-daemon/dist/bb-chunks/chunk-5WC25JJR.js +2 -0
  377. package/host-daemon/dist/bb-chunks/chunk-A5EPBP3W.js +2 -0
  378. package/host-daemon/dist/bb-chunks/chunk-BKBU62SF.js +2 -0
  379. package/host-daemon/dist/bb-chunks/chunk-ER46DNTR.js +2 -0
  380. package/host-daemon/dist/bb-chunks/chunk-H7ZMW3KO.js +3 -0
  381. package/host-daemon/dist/bb-chunks/chunk-IFPJMI5M.js +6 -0
  382. package/host-daemon/dist/bb-chunks/chunk-LH4TBBGQ.js +2 -0
  383. package/host-daemon/dist/bb-chunks/chunk-MGFS7D6E.js +4 -0
  384. package/host-daemon/dist/bb-chunks/chunk-VLWNZSJS.js +2 -0
  385. package/host-daemon/dist/bb-chunks/chunk-X63QVO5F.js +2199 -0
  386. package/host-daemon/dist/bb-chunks/chunk-ZJPO4YH6.js +2 -0
  387. package/host-daemon/dist/bb-chunks/chunk-ZQP2RXIS.js +2 -0
  388. package/host-daemon/dist/bb-chunks/cli-error-log-PHJFENHA.js +2 -0
  389. package/host-daemon/dist/bb-chunks/client-TZLPC3BF.js +2 -0
  390. package/host-daemon/dist/bb-chunks/commander-errors-32JXRGRD.js +3 -0
  391. package/host-daemon/dist/bb-chunks/context-env-6CUQJXI7.js +2 -0
  392. package/host-daemon/dist/bb-chunks/context-hints-EXGBAHBP.js +2 -0
  393. package/host-daemon/dist/bb-chunks/diagnostics-U6HI5G5V.js +3 -0
  394. package/host-daemon/dist/bb-chunks/environment-6E2VT767.js +2 -0
  395. package/host-daemon/dist/bb-chunks/file-OM3MGTJZ.js +3 -0
  396. package/host-daemon/dist/bb-chunks/guide-2EVMHWEL.js +4 -0
  397. package/host-daemon/dist/bb-chunks/machine-53J3POIB.js +2 -0
  398. package/host-daemon/dist/bb-chunks/marketplace-CYKOR6QO.js +2 -0
  399. package/host-daemon/dist/bb-chunks/plugin-BD2V5QKV.js +2633 -0
  400. package/host-daemon/dist/bb-chunks/plugin-cli-proxy-DVR2UZ2H.js +2 -0
  401. package/host-daemon/dist/bb-chunks/project-SFF34VFX.js +2 -0
  402. package/host-daemon/dist/bb-chunks/prompt-history-QPAZVRGL.js +2 -0
  403. package/host-daemon/dist/bb-chunks/provider-7EX5JKW6.js +2 -0
  404. package/host-daemon/dist/bb-chunks/server-6XKNMUGR.js +8 -0
  405. package/host-daemon/dist/bb-chunks/settings-Z3W7VN6M.js +4 -0
  406. package/host-daemon/dist/bb-chunks/skill-Z4C767WB.js +5 -0
  407. package/host-daemon/dist/bb-chunks/status-FBZ7QAO7.js +2 -0
  408. package/host-daemon/dist/bb-chunks/terminal-7N5CXPEK.js +3 -0
  409. package/host-daemon/dist/bb-chunks/theme-OOZ4YUIP.js +2 -0
  410. package/host-daemon/dist/bb-chunks/thread-VKVOFAYM.js +29 -0
  411. package/host-daemon/dist/bb-chunks/thread-event-parser-BGAY3BK5.js +2 -0
  412. package/host-daemon/dist/bb-chunks/updates-FF4UHDLN.js +2 -0
  413. package/host-daemon/dist/bb-chunks/voice-J2G4CECQ.js +2 -0
  414. package/host-daemon/dist/daemon-bundle.mjs +124 -124
  415. package/package.json +6 -3
  416. package/server/dist/builtin-plugins/account-pool/dist/app.meta.json +2 -2
  417. package/server/dist/builtin-plugins/account-pool/dist/server.meta.json +2 -2
  418. package/server/dist/builtin-plugins/agent-annotations/dist/app.meta.json +2 -2
  419. package/server/dist/builtin-plugins/agent-annotations/dist/server.meta.json +2 -2
  420. package/server/dist/builtin-plugins/ask-user-question/dist/app.meta.json +2 -2
  421. package/server/dist/builtin-plugins/ask-user-question/dist/server.meta.json +2 -2
  422. package/server/dist/builtin-plugins/automations/dist/app.meta.json +2 -2
  423. package/server/dist/builtin-plugins/automations/dist/server.meta.json +2 -2
  424. package/server/dist/builtin-plugins/bb-account/dist/app.meta.json +2 -2
  425. package/server/dist/builtin-plugins/bb-account/dist/server.meta.json +2 -2
  426. package/server/dist/builtin-plugins/bb-ai/dist/server.js +1 -1
  427. package/server/dist/builtin-plugins/bb-ai/dist/server.meta.json +2 -2
  428. package/server/dist/builtin-plugins/bb-ai/package.json +3 -3
  429. package/server/dist/builtin-plugins/bb-guide/dist/app.meta.json +2 -2
  430. package/server/dist/builtin-plugins/bb-guide/dist/server.meta.json +2 -2
  431. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-api-index.md +6 -3
  432. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-cli-agents.md +37 -0
  433. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-events.md +3 -3
  434. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/frontend-components.md +6 -2
  435. package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/frontend-core-slots.md +9 -1
  436. package/server/dist/builtin-plugins/browser-automation/dist/app.meta.json +2 -2
  437. package/server/dist/builtin-plugins/browser-automation/dist/host.meta.json +2 -2
  438. package/server/dist/builtin-plugins/browser-automation/dist/server.meta.json +2 -2
  439. package/server/dist/builtin-plugins/browser-automation/package.json +2 -2
  440. package/server/dist/builtin-plugins/composer/dist/app.meta.json +2 -2
  441. package/server/dist/builtin-plugins/composer/dist/server.meta.json +2 -2
  442. package/server/dist/builtin-plugins/concurrency-limit/dist/app.meta.json +2 -2
  443. package/server/dist/builtin-plugins/concurrency-limit/dist/host.meta.json +2 -2
  444. package/server/dist/builtin-plugins/concurrency-limit/dist/server.meta.json +2 -2
  445. package/server/dist/builtin-plugins/connect/dist/app.meta.json +2 -2
  446. package/server/dist/builtin-plugins/connect/dist/server.meta.json +2 -2
  447. package/server/dist/builtin-plugins/connect/package.json +1 -1
  448. package/server/dist/builtin-plugins/connect-next/dist/app.meta.json +2 -2
  449. package/server/dist/builtin-plugins/connect-next/dist/server.meta.json +2 -2
  450. package/server/dist/builtin-plugins/custom-instructions/dist/server.meta.json +2 -2
  451. package/server/dist/builtin-plugins/docs/dist/app.meta.json +2 -2
  452. package/server/dist/builtin-plugins/docs/dist/server.meta.json +2 -2
  453. package/server/dist/builtin-plugins/drafts/dist/app.meta.json +2 -2
  454. package/server/dist/builtin-plugins/drafts/dist/server.meta.json +2 -2
  455. package/server/dist/builtin-plugins/environment-git-worktree/dist/app.meta.json +2 -2
  456. package/server/dist/builtin-plugins/environment-git-worktree/dist/host.meta.json +2 -2
  457. package/server/dist/builtin-plugins/environment-git-worktree/dist/server.meta.json +2 -2
  458. package/server/dist/builtin-plugins/environment-modal-sandbox/dist/app.meta.json +2 -2
  459. package/server/dist/builtin-plugins/environment-modal-sandbox/dist/server.meta.json +2 -2
  460. package/server/dist/builtin-plugins/environment-personal-workspace/dist/host.meta.json +2 -2
  461. package/server/dist/builtin-plugins/environment-personal-workspace/dist/server.meta.json +2 -2
  462. package/server/dist/builtin-plugins/environment-project-checkout/dist/app.meta.json +2 -2
  463. package/server/dist/builtin-plugins/environment-project-checkout/dist/host.meta.json +2 -2
  464. package/server/dist/builtin-plugins/environment-project-checkout/dist/server.meta.json +2 -2
  465. package/server/dist/builtin-plugins/github/dist/app.meta.json +2 -2
  466. package/server/dist/builtin-plugins/github/dist/server.meta.json +2 -2
  467. package/server/dist/builtin-plugins/github-pr-status/dist/app.meta.json +2 -2
  468. package/server/dist/builtin-plugins/github-pr-status/dist/host.meta.json +2 -2
  469. package/server/dist/builtin-plugins/github-pr-status/dist/server.meta.json +2 -2
  470. package/server/dist/builtin-plugins/inline-vis/dist/app.meta.json +2 -2
  471. package/server/dist/builtin-plugins/inline-vis/dist/server.meta.json +2 -2
  472. package/server/dist/builtin-plugins/keep-awake/dist/app.meta.json +2 -2
  473. package/server/dist/builtin-plugins/keep-awake/dist/host.meta.json +2 -2
  474. package/server/dist/builtin-plugins/keep-awake/dist/server.meta.json +2 -2
  475. package/server/dist/builtin-plugins/library/dist/app.css +2 -0
  476. package/server/dist/builtin-plugins/library/dist/app.js +62 -0
  477. package/server/dist/builtin-plugins/library/dist/app.meta.json +11 -0
  478. package/server/dist/builtin-plugins/library/dist/package.json +1 -0
  479. package/server/dist/builtin-plugins/library/dist/server.js +8 -0
  480. package/server/dist/builtin-plugins/library/dist/server.meta.json +11 -0
  481. package/server/dist/builtin-plugins/library/package.json +36 -0
  482. package/server/dist/builtin-plugins/marketplace.json +64 -5
  483. package/server/dist/builtin-plugins/mcp/dist/server.meta.json +2 -2
  484. package/server/dist/builtin-plugins/memory/dist/app.meta.json +2 -2
  485. package/server/dist/builtin-plugins/memory/dist/server.meta.json +2 -2
  486. package/server/dist/builtin-plugins/monaco-editor/dist/app.meta.json +2 -2
  487. package/server/dist/builtin-plugins/monaco-editor/dist/server.meta.json +2 -2
  488. package/server/dist/builtin-plugins/monaco-editor/package.json +2 -2
  489. package/server/dist/builtin-plugins/navigation/dist/app.meta.json +2 -2
  490. package/server/dist/builtin-plugins/navigation/dist/server.meta.json +2 -2
  491. package/server/dist/builtin-plugins/notify-feed/dist/LICENSE +21 -0
  492. package/server/dist/builtin-plugins/notify-feed/dist/app.css +2 -0
  493. package/server/dist/builtin-plugins/notify-feed/dist/app.js +7 -0
  494. package/server/dist/builtin-plugins/notify-feed/dist/app.meta.json +11 -0
  495. package/server/dist/builtin-plugins/notify-feed/dist/package.json +1 -0
  496. package/server/dist/builtin-plugins/notify-feed/dist/server.js +9 -0
  497. package/server/dist/builtin-plugins/notify-feed/dist/server.meta.json +11 -0
  498. package/server/dist/builtin-plugins/notify-feed/icon.svg +5 -0
  499. package/server/dist/builtin-plugins/notify-feed/package.json +44 -0
  500. package/server/dist/builtin-plugins/orbit/dist/app.css +2 -0
  501. package/server/dist/builtin-plugins/orbit/dist/app.js +162 -0
  502. package/server/dist/builtin-plugins/orbit/dist/app.meta.json +11 -0
  503. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/manifest.json +82 -0
  504. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/orbit/docs/handoff-to-new-conversation.md +63 -0
  505. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/orbit/skills/dossier/SKILL.md +126 -0
  506. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/back/CLAUDE.md +173 -0
  507. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/front/CLAUDE.md +937 -0
  508. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/before-after/SKILL.md +54 -0
  509. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/documents/SKILL.md +108 -0
  510. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/documents/page-template.html +226 -0
  511. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/github-change/SKILL.md +404 -0
  512. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/github-change/references/branches.md +132 -0
  513. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/github-change/references/merging.md +138 -0
  514. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/github-change/references/reviewing.md +37 -0
  515. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/github-change/references/work-queue.md +68 -0
  516. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/mail/SKILL.md +292 -0
  517. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/messages/SKILL.md +62 -0
  518. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/owner-changes/SKILL.md +47 -0
  519. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/station-build/SKILL.md +119 -0
  520. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/thread-replies/SKILL.md +26 -0
  521. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/userland/SKILL.md +70 -0
  522. package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/welcome/SKILL.md +37 -0
  523. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/bundle/scripts/orbit-job-supervisor +1423 -0
  524. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/config/policy.toml +225 -0
  525. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/docs/handoff-to-new-conversation.md +63 -0
  526. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/a11y-launchers.sh +27 -0
  527. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/antfly.sh +93 -0
  528. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/apps.sh +33 -0
  529. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/bwrap-userns.sh +13 -0
  530. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/chrome.sh +43 -0
  531. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/codex-model.sh +19 -0
  532. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/codex.sh +73 -0
  533. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/cua-driver.sh +102 -0
  534. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/desktop.sh +223 -0
  535. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/dev-tools.sh +20 -0
  536. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/doc-tools.sh +7 -0
  537. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/gh.sh +14 -0
  538. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/library.sh +37 -0
  539. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/linger.sh +7 -0
  540. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/networkd.sh +15 -0
  541. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/no-ipv6.sh +8 -0
  542. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/node.sh +12 -0
  543. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/npm-prefix.sh +4 -0
  544. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/op.sh +20 -0
  545. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/orbit-data.sh +3 -0
  546. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/packages.sh +18 -0
  547. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/proton-bridge.sh +121 -0
  548. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/proton-mail.sh +14 -0
  549. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/rclone.sh +14 -0
  550. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/shell-path.sh +5 -0
  551. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/signin.sh +352 -0
  552. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux/swap.sh +74 -0
  553. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-linux.toml +122 -0
  554. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/apps.sh +43 -0
  555. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/chrome-headless-shell.sh +19 -0
  556. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/chrome-policy.sh +29 -0
  557. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/cua-driver-agent.sh +107 -0
  558. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/cua-driver-telemetry.sh +5 -0
  559. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/cua-driver.sh +29 -0
  560. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/dev-tools.sh +36 -0
  561. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/doc-tools.sh +9 -0
  562. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/groups.sh +9 -0
  563. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/homebrew.sh +6 -0
  564. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/launchd-path.sh +10 -0
  565. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/no-ipv6.sh +6 -0
  566. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/no-screen-saver.sh +4 -0
  567. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/node.sh +5 -0
  568. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/op.sh +5 -0
  569. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/orbit-data.sh +3 -0
  570. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/proton-bridge.sh +93 -0
  571. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/retire-desktop.sh +24 -0
  572. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/screen-sharing.sh +20 -0
  573. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/shell-path.sh +8 -0
  574. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/skip-setup-assistant.sh +12 -0
  575. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/stay-awake.sh +4 -0
  576. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos/tailscale.sh +10 -0
  577. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/base-macos.toml +113 -0
  578. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/codex-npm.sh +55 -0
  579. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/default-linux.toml +25 -0
  580. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/default.toml +52 -0
  581. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/server-linux/bb-address.sh +39 -0
  582. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/server-linux/library-pull.sh +69 -0
  583. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/server-linux/libvirt.sh +49 -0
  584. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/server-linux/linger.sh +7 -0
  585. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/server-linux/packages.sh +5 -0
  586. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/server-linux/swap.sh +13 -0
  587. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/server-linux.toml +46 -0
  588. package/server/dist/builtin-plugins/orbit/dist/assets/orbit/revision +1 -0
  589. package/server/dist/builtin-plugins/orbit/dist/assets/plugins/orbit/back/CLAUDE.md +173 -0
  590. package/server/dist/builtin-plugins/orbit/dist/assets/plugins/orbit/front/CLAUDE.md +937 -0
  591. package/server/dist/builtin-plugins/orbit/dist/host.js +428 -0
  592. package/server/dist/builtin-plugins/orbit/dist/host.meta.json +12 -0
  593. package/server/dist/builtin-plugins/orbit/dist/package.json +1 -0
  594. package/server/dist/builtin-plugins/orbit/dist/server.js +907 -0
  595. package/server/dist/builtin-plugins/orbit/dist/server.meta.json +11 -0
  596. package/server/dist/builtin-plugins/orbit/icon.svg +5 -0
  597. package/server/dist/builtin-plugins/orbit/package.json +52 -0
  598. package/server/dist/builtin-plugins/orbit/skills/before-after/SKILL.md +54 -0
  599. package/server/dist/builtin-plugins/orbit/skills/before-after/before-after.mjs +329 -0
  600. package/server/dist/builtin-plugins/orbit/skills/documents/SKILL.md +108 -0
  601. package/server/dist/builtin-plugins/orbit/skills/documents/page-template.html +226 -0
  602. package/server/dist/builtin-plugins/orbit/skills/github-change/SKILL.md +404 -0
  603. package/server/dist/builtin-plugins/orbit/skills/github-change/declare-outputs.d.mts +2 -0
  604. package/server/dist/builtin-plugins/orbit/skills/github-change/declare-outputs.mjs +61 -0
  605. package/server/dist/builtin-plugins/orbit/skills/github-change/pre-push.d.mts +10 -0
  606. package/server/dist/builtin-plugins/orbit/skills/github-change/pre-push.mjs +277 -0
  607. package/server/dist/builtin-plugins/orbit/skills/github-change/references/branches.md +132 -0
  608. package/server/dist/builtin-plugins/orbit/skills/github-change/references/merging.md +138 -0
  609. package/server/dist/builtin-plugins/orbit/skills/github-change/references/reviewing.md +37 -0
  610. package/server/dist/builtin-plugins/orbit/skills/github-change/references/work-queue.md +68 -0
  611. package/server/dist/builtin-plugins/orbit/skills/mail/SKILL.md +292 -0
  612. package/server/dist/builtin-plugins/orbit/skills/messages/SKILL.md +62 -0
  613. package/server/dist/builtin-plugins/orbit/skills/owner-changes/SKILL.md +47 -0
  614. package/server/dist/builtin-plugins/orbit/skills/station-build/SKILL.md +119 -0
  615. package/server/dist/builtin-plugins/orbit/skills/thread-replies/SKILL.md +26 -0
  616. package/server/dist/builtin-plugins/orbit/skills/userland/SKILL.md +70 -0
  617. package/server/dist/builtin-plugins/orbit/skills/welcome/SKILL.md +37 -0
  618. package/server/dist/builtin-plugins/pdf-preview/dist/app.meta.json +2 -2
  619. package/server/dist/builtin-plugins/pdf-preview/dist/server.meta.json +2 -2
  620. package/server/dist/builtin-plugins/plugin-api-docs/dist/app.js +2 -2
  621. package/server/dist/builtin-plugins/plugin-api-docs/dist/app.meta.json +2 -2
  622. package/server/dist/builtin-plugins/plugin-api-docs/dist/server.js +1 -1
  623. package/server/dist/builtin-plugins/plugin-api-docs/dist/server.meta.json +2 -2
  624. package/server/dist/builtin-plugins/plugin-api-tester/dist/app.meta.json +2 -2
  625. package/server/dist/builtin-plugins/plugin-api-tester/dist/server.meta.json +2 -2
  626. package/server/dist/builtin-plugins/prompt-library/dist/app.meta.json +2 -2
  627. package/server/dist/builtin-plugins/prompt-library/dist/server.meta.json +2 -2
  628. package/server/dist/builtin-plugins/provider-acp/dist/app.meta.json +2 -2
  629. package/server/dist/builtin-plugins/provider-acp/dist/host.js +101 -101
  630. package/server/dist/builtin-plugins/provider-acp/dist/host.meta.json +3 -3
  631. package/server/dist/builtin-plugins/provider-acp/dist/server.js +107 -107
  632. package/server/dist/builtin-plugins/provider-acp/dist/server.meta.json +2 -2
  633. package/server/dist/builtin-plugins/provider-claude-code/dist/host.js +3 -2
  634. package/server/dist/builtin-plugins/provider-claude-code/dist/host.meta.json +3 -3
  635. package/server/dist/builtin-plugins/provider-claude-code/dist/server.meta.json +2 -2
  636. package/server/dist/builtin-plugins/provider-codex/dist/app.meta.json +2 -2
  637. package/server/dist/builtin-plugins/provider-codex/dist/host.js +2 -2
  638. package/server/dist/builtin-plugins/provider-codex/dist/host.meta.json +3 -3
  639. package/server/dist/builtin-plugins/provider-codex/dist/server.meta.json +2 -2
  640. package/server/dist/builtin-plugins/provider-pi/dist/app.meta.json +2 -2
  641. package/server/dist/builtin-plugins/provider-pi/dist/host.js +1 -1
  642. package/server/dist/builtin-plugins/provider-pi/dist/host.meta.json +3 -3
  643. package/server/dist/builtin-plugins/provider-pi/dist/server.meta.json +2 -2
  644. package/server/dist/builtin-plugins/provider-retry/dist/server.meta.json +2 -2
  645. package/server/dist/builtin-plugins/provider-usage/dist/app.meta.json +2 -2
  646. package/server/dist/builtin-plugins/provider-usage/dist/server.meta.json +2 -2
  647. package/server/dist/builtin-plugins/push-notifications/dist/app.meta.json +2 -2
  648. package/server/dist/builtin-plugins/push-notifications/dist/server.js +13 -13
  649. package/server/dist/builtin-plugins/push-notifications/dist/server.meta.json +2 -2
  650. package/server/dist/builtin-plugins/scheduled-send/dist/app.meta.json +2 -2
  651. package/server/dist/builtin-plugins/scheduled-send/dist/server.meta.json +2 -2
  652. package/server/dist/builtin-plugins/secrets/dist/app.meta.json +2 -2
  653. package/server/dist/builtin-plugins/secrets/dist/server.meta.json +2 -2
  654. package/server/dist/builtin-plugins/side-chat/dist/app.meta.json +2 -2
  655. package/server/dist/builtin-plugins/side-chat/dist/server.meta.json +2 -2
  656. package/server/dist/builtin-plugins/storage-retention/dist/app.meta.json +2 -2
  657. package/server/dist/builtin-plugins/storage-retention/dist/host.meta.json +2 -2
  658. package/server/dist/builtin-plugins/storage-retention/dist/server.meta.json +2 -2
  659. package/server/dist/builtin-plugins/tasks/dist/app.meta.json +2 -2
  660. package/server/dist/builtin-plugins/tasks/dist/server.js +68 -64
  661. package/server/dist/builtin-plugins/tasks/dist/server.meta.json +2 -2
  662. package/server/dist/builtin-plugins/theme-preview/dist/app.js +1 -1
  663. package/server/dist/builtin-plugins/theme-preview/dist/app.meta.json +2 -2
  664. package/server/dist/builtin-plugins/theme-preview/dist/server.meta.json +2 -2
  665. package/server/dist/builtin-plugins/thread-list/dist/app.meta.json +2 -2
  666. package/server/dist/builtin-plugins/thread-list/dist/server.meta.json +2 -2
  667. package/server/dist/builtin-plugins/workflows/dist/app.meta.json +2 -2
  668. package/server/dist/builtin-plugins/workflows/dist/server.meta.json +2 -2
  669. package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-api-index.md +6 -3
  670. package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-cli-agents.md +37 -0
  671. package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-events.md +3 -3
  672. package/server/dist/builtin-skills/bb-plugin-authoring/references/frontend-components.md +6 -2
  673. package/server/dist/builtin-skills/bb-plugin-authoring/references/frontend-core-slots.md +9 -1
  674. package/server/dist/drizzle/0147_project_permission_escalation.sql +1 -0
  675. package/server/dist/drizzle/0148_lame_wolfsbane.sql +2 -0
  676. package/server/dist/drizzle/0149_thread_reply_display.sql +1 -0
  677. package/server/dist/drizzle/meta/0147_snapshot.json +5295 -0
  678. package/server/dist/drizzle/meta/0148_snapshot.json +5303 -0
  679. package/server/dist/drizzle/meta/0149_snapshot.json +5311 -0
  680. package/server/dist/drizzle/meta/_journal.json +21 -0
  681. package/server/dist/index.js +4 -4
  682. package/server/dist/start-server.js +692 -72
  683. package/server/dist/zod-runtime.js +1 -1
  684. package/app/dist/assets/AddMachineDialog-yQJ5IYDT.js +0 -1
  685. package/app/dist/assets/AddMachineDialog-yQJ5IYDT.js.br +0 -0
  686. package/app/dist/assets/AddMachineDialog-yQJ5IYDT.js.gz +0 -0
  687. package/app/dist/assets/AppCommandShortcutHint-DqKKom-1.js +0 -1
  688. package/app/dist/assets/AppFileExternalNavigationDispatcher-CgJUL3ul.js +0 -1
  689. package/app/dist/assets/AppFileExternalNavigationDispatcher-CgJUL3ul.js.br +0 -0
  690. package/app/dist/assets/AppFileExternalNavigationDispatcher-CgJUL3ul.js.gz +0 -0
  691. package/app/dist/assets/AppToasterView-CP2UwC4v.js +0 -1
  692. package/app/dist/assets/BbDiff-5T3u53Vr.js +0 -1
  693. package/app/dist/assets/BbDiff-5T3u53Vr.js.br +0 -0
  694. package/app/dist/assets/BbDiff-5T3u53Vr.js.gz +0 -0
  695. package/app/dist/assets/BbDiffSplit-DZeRBbV8.js +0 -2
  696. package/app/dist/assets/BbDiffSplit-DZeRBbV8.js.br +0 -0
  697. package/app/dist/assets/BbDiffSplit-DZeRBbV8.js.gz +0 -0
  698. package/app/dist/assets/BbSourceCode-BSNJZMAm.js +0 -2
  699. package/app/dist/assets/BbSourceCode-BSNJZMAm.js.br +0 -0
  700. package/app/dist/assets/BbSourceCode-BSNJZMAm.js.gz +0 -0
  701. package/app/dist/assets/BrowserTabDeck-C5cqDOx1.js +0 -1
  702. package/app/dist/assets/BrowserTabDeck-C5cqDOx1.js.br +0 -0
  703. package/app/dist/assets/BrowserTabDeck-C5cqDOx1.js.gz +0 -0
  704. package/app/dist/assets/CommandPaletteBody-DEQTd4cw.js +0 -1
  705. package/app/dist/assets/CommandPaletteBody-DEQTd4cw.js.br +0 -0
  706. package/app/dist/assets/CommandPaletteBody-DEQTd4cw.js.gz +0 -0
  707. package/app/dist/assets/DiffHost-D9DooEWM.js +0 -1
  708. package/app/dist/assets/DiffHost-D9DooEWM.js.br +0 -0
  709. package/app/dist/assets/DiffHost-D9DooEWM.js.gz +0 -0
  710. package/app/dist/assets/ExperimentalFileLinkMenu-C4nvRE7i.js +0 -1
  711. package/app/dist/assets/ExperimentalFileLinkMenu-C4nvRE7i.js.br +0 -0
  712. package/app/dist/assets/ExperimentalFileLinkMenu-C4nvRE7i.js.gz +0 -0
  713. package/app/dist/assets/FilePreview-BqOdb9Ll.js +0 -3
  714. package/app/dist/assets/FilePreview-BqOdb9Ll.js.br +0 -0
  715. package/app/dist/assets/FilePreview-BqOdb9Ll.js.gz +0 -0
  716. package/app/dist/assets/GitDiffCardHeader-Dy0RVfE5.js +0 -1
  717. package/app/dist/assets/GitDiffCardHeader-Dy0RVfE5.js.br +0 -0
  718. package/app/dist/assets/GitDiffCardHeader-Dy0RVfE5.js.gz +0 -0
  719. package/app/dist/assets/InlineMessageEditorFrame-BFJ1uBei.js +0 -1
  720. package/app/dist/assets/InlineMessageEditorFrame-BFJ1uBei.js.br +0 -0
  721. package/app/dist/assets/InlineMessageEditorFrame-BFJ1uBei.js.gz +0 -0
  722. package/app/dist/assets/MachineRenameDialog-DGOhF4Q7.js +0 -1
  723. package/app/dist/assets/MachineRenameDialog-DGOhF4Q7.js.br +0 -0
  724. package/app/dist/assets/MachineRenameDialog-DGOhF4Q7.js.gz +0 -0
  725. package/app/dist/assets/MachineSettingsView-DIigi4ci.js +0 -1
  726. package/app/dist/assets/MachineSettingsView-DIigi4ci.js.br +0 -0
  727. package/app/dist/assets/MachineSettingsView-DIigi4ci.js.gz +0 -0
  728. package/app/dist/assets/MicrophonePreferences-DawN_pN8.js +0 -1
  729. package/app/dist/assets/MicrophonePreferences-DawN_pN8.js.br +0 -0
  730. package/app/dist/assets/MicrophonePreferences-DawN_pN8.js.gz +0 -0
  731. package/app/dist/assets/ModelReasoningMenu-CiQFCyM9.js +0 -1
  732. package/app/dist/assets/ModelReasoningMenu-CiQFCyM9.js.br +0 -0
  733. package/app/dist/assets/ModelReasoningMenu-CiQFCyM9.js.gz +0 -0
  734. package/app/dist/assets/NewTabPage-CQVuGxXN.js +0 -2
  735. package/app/dist/assets/NewTabPage-CQVuGxXN.js.br +0 -0
  736. package/app/dist/assets/NewTabPage-CQVuGxXN.js.gz +0 -0
  737. package/app/dist/assets/NewThreadComposer-DHSKLi4k.js +0 -1
  738. package/app/dist/assets/NewThreadComposer-DHSKLi4k.js.br +0 -0
  739. package/app/dist/assets/NewThreadComposer-DHSKLi4k.js.gz +0 -0
  740. package/app/dist/assets/OnboardingFlow-DMqzaee4.js +0 -1
  741. package/app/dist/assets/OnboardingFlow-DMqzaee4.js.br +0 -0
  742. package/app/dist/assets/OnboardingFlow-DMqzaee4.js.gz +0 -0
  743. package/app/dist/assets/OptionPicker-DGwuQQYT.js +0 -1
  744. package/app/dist/assets/OptionPicker-DGwuQQYT.js.br +0 -0
  745. package/app/dist/assets/OptionPicker-DGwuQQYT.js.gz +0 -0
  746. package/app/dist/assets/PaletteShell-CNr757WH.js +0 -1
  747. package/app/dist/assets/PaletteShell-CNr757WH.js.br +0 -0
  748. package/app/dist/assets/PaletteShell-CNr757WH.js.gz +0 -0
  749. package/app/dist/assets/PaneMaximizeButton-DTo_RHJB.js +0 -1
  750. package/app/dist/assets/PaneMaximizeButton-DTo_RHJB.js.br +0 -0
  751. package/app/dist/assets/PaneMaximizeButton-DTo_RHJB.js.gz +0 -0
  752. package/app/dist/assets/PierreLineSelectionActions-DnsA4KXB.js +0 -1
  753. package/app/dist/assets/PierreLineSelectionActions-DnsA4KXB.js.br +0 -0
  754. package/app/dist/assets/PierreLineSelectionActions-DnsA4KXB.js.gz +0 -0
  755. package/app/dist/assets/PluginPanelRightPanelHost-5NrTCs6f.js +0 -1
  756. package/app/dist/assets/PluginPanelRightPanelHost-5NrTCs6f.js.br +0 -0
  757. package/app/dist/assets/PluginPanelRightPanelHost-5NrTCs6f.js.gz +0 -0
  758. package/app/dist/assets/PluginThreadChat-B0KyQKvj.js +0 -1
  759. package/app/dist/assets/PluginThreadChat-B0KyQKvj.js.br +0 -0
  760. package/app/dist/assets/PluginThreadChat-B0KyQKvj.js.gz +0 -0
  761. package/app/dist/assets/ProjectDetailSettingsView-BqNoT__6.js +0 -1
  762. package/app/dist/assets/ProjectDetailSettingsView-BqNoT__6.js.br +0 -0
  763. package/app/dist/assets/ProjectDetailSettingsView-BqNoT__6.js.gz +0 -0
  764. package/app/dist/assets/ProjectMachineSetupDialog-Cf5R0tF4.js +0 -1
  765. package/app/dist/assets/ProjectMachineSetupDialog-Cf5R0tF4.js.br +0 -0
  766. package/app/dist/assets/ProjectMachineSetupDialog-Cf5R0tF4.js.gz +0 -0
  767. package/app/dist/assets/ProjectsSettingsSection-C9kIDuVg.js +0 -3
  768. package/app/dist/assets/ProjectsSettingsSection-C9kIDuVg.js.br +0 -0
  769. package/app/dist/assets/ProjectsSettingsSection-C9kIDuVg.js.gz +0 -0
  770. package/app/dist/assets/QueuedMessagesList-Z4v7sc5e.js +0 -3
  771. package/app/dist/assets/QueuedMessagesList-Z4v7sc5e.js.br +0 -0
  772. package/app/dist/assets/QueuedMessagesList-Z4v7sc5e.js.gz +0 -0
  773. package/app/dist/assets/RemotePathBrowser-DkFHr6GD.js +0 -1
  774. package/app/dist/assets/RemotePathBrowser-DkFHr6GD.js.br +0 -0
  775. package/app/dist/assets/RemotePathBrowser-DkFHr6GD.js.gz +0 -0
  776. package/app/dist/assets/RootComposeView-Dim3viYV.js +0 -1
  777. package/app/dist/assets/RootComposeView-Dim3viYV.js.br +0 -0
  778. package/app/dist/assets/RootComposeView-Dim3viYV.js.gz +0 -0
  779. package/app/dist/assets/SecondaryPanelLayout-BVRpqsSA.js +0 -1
  780. package/app/dist/assets/SecondaryPanelLayout-BVRpqsSA.js.br +0 -0
  781. package/app/dist/assets/SecondaryPanelLayout-BVRpqsSA.js.gz +0 -0
  782. package/app/dist/assets/ServerMoveOverlayView-DT8FzaZH.js +0 -1
  783. package/app/dist/assets/ServerMoveOverlayView-DT8FzaZH.js.br +0 -0
  784. package/app/dist/assets/ServerMoveOverlayView-DT8FzaZH.js.gz +0 -0
  785. package/app/dist/assets/SettingsSidebar-DOu8n7k9.js +0 -1
  786. package/app/dist/assets/SettingsSidebar-DOu8n7k9.js.br +0 -0
  787. package/app/dist/assets/SettingsSidebar-DOu8n7k9.js.gz +0 -0
  788. package/app/dist/assets/SettingsView-DWinGRb7.js +0 -1244
  789. package/app/dist/assets/SettingsView-DWinGRb7.js.br +0 -0
  790. package/app/dist/assets/SettingsView-DWinGRb7.js.gz +0 -0
  791. package/app/dist/assets/SidebarFooterCustomize-vLJeWqzc.js +0 -1
  792. package/app/dist/assets/SidebarFooterCustomize-vLJeWqzc.js.br +0 -0
  793. package/app/dist/assets/SidebarFooterCustomize-vLJeWqzc.js.gz +0 -0
  794. package/app/dist/assets/SidebarVisibilityCustomize-CLrOCIF9.js +0 -1
  795. package/app/dist/assets/SidebarVisibilityCustomize-CLrOCIF9.js.br +0 -0
  796. package/app/dist/assets/SidebarVisibilityCustomize-CLrOCIF9.js.gz +0 -0
  797. package/app/dist/assets/SourceCodeHost-BHOLmXYS.js +0 -2
  798. package/app/dist/assets/SourceCodeHost-BHOLmXYS.js.br +0 -0
  799. package/app/dist/assets/SourceCodeHost-BHOLmXYS.js.gz +0 -0
  800. package/app/dist/assets/SplitWorkspaceRoute-1Enz4jM_.js +0 -2
  801. package/app/dist/assets/SplitWorkspaceRoute-1Enz4jM_.js.br +0 -0
  802. package/app/dist/assets/SplitWorkspaceRoute-1Enz4jM_.js.gz +0 -0
  803. package/app/dist/assets/TerminalOutputBlock-OoPS86-F.js +0 -4
  804. package/app/dist/assets/TerminalOutputBlock-OoPS86-F.js.br +0 -0
  805. package/app/dist/assets/TerminalOutputBlock-OoPS86-F.js.gz +0 -0
  806. package/app/dist/assets/ThreadActionsMenu-CztzyAt8.js +0 -1
  807. package/app/dist/assets/ThreadActionsMenu-CztzyAt8.js.br +0 -0
  808. package/app/dist/assets/ThreadActionsMenu-CztzyAt8.js.gz +0 -0
  809. package/app/dist/assets/ThreadDetailView-BhluC0Q7.js +0 -6
  810. package/app/dist/assets/ThreadDetailView-BhluC0Q7.js.br +0 -0
  811. package/app/dist/assets/ThreadDetailView-BhluC0Q7.js.gz +0 -0
  812. package/app/dist/assets/ThreadSearchPaletteMode-C4DPAjYG.js +0 -1
  813. package/app/dist/assets/ThreadSearchPaletteMode-C4DPAjYG.js.br +0 -0
  814. package/app/dist/assets/ThreadSearchPaletteMode-C4DPAjYG.js.gz +0 -0
  815. package/app/dist/assets/ThreadSecondaryPanel-7b02Pk6u.js +0 -1
  816. package/app/dist/assets/ThreadSecondaryPanel-7b02Pk6u.js.br +0 -0
  817. package/app/dist/assets/ThreadSecondaryPanel-7b02Pk6u.js.gz +0 -0
  818. package/app/dist/assets/ThreadSecondaryPanelTabContent-Cyey43oG.js +0 -3
  819. package/app/dist/assets/ThreadSecondaryPanelTabContent-Cyey43oG.js.br +0 -0
  820. package/app/dist/assets/ThreadSecondaryPanelTabContent-Cyey43oG.js.gz +0 -0
  821. package/app/dist/assets/ThreadStatusGlyph-D1Fe7akH.js +0 -1
  822. package/app/dist/assets/ThreadStatusGlyph-D1Fe7akH.js.br +0 -0
  823. package/app/dist/assets/ThreadStatusGlyph-D1Fe7akH.js.gz +0 -0
  824. package/app/dist/assets/ThreadTerminalPanel-B6LJ7SvO.js +0 -1
  825. package/app/dist/assets/ThreadTerminalPanel-B6LJ7SvO.js.br +0 -0
  826. package/app/dist/assets/ThreadTerminalPanel-B6LJ7SvO.js.gz +0 -0
  827. package/app/dist/assets/ThreadTerminalView-DC5ezQ1T.js +0 -1
  828. package/app/dist/assets/ThreadTerminalView-DC5ezQ1T.js.br +0 -0
  829. package/app/dist/assets/ThreadTerminalView-DC5ezQ1T.js.gz +0 -0
  830. package/app/dist/assets/ThreadTimelineNavigationContext-ki7yvNy7.js +0 -2
  831. package/app/dist/assets/ThreadTimelineNavigationContext-ki7yvNy7.js.br +0 -0
  832. package/app/dist/assets/ThreadTimelineNavigationContext-ki7yvNy7.js.gz +0 -0
  833. package/app/dist/assets/ThreadUnarchiveButton-CScaJg47.js +0 -1
  834. package/app/dist/assets/TimelineDetailScroll-TcwS_jo8.js +0 -1
  835. package/app/dist/assets/TimelineDetailScroll-TcwS_jo8.js.br +0 -0
  836. package/app/dist/assets/TimelineDetailScroll-TcwS_jo8.js.gz +0 -0
  837. package/app/dist/assets/TimelineFileDiffBlock-XdrvcA6-.js +0 -6
  838. package/app/dist/assets/TimelineFileDiffBlock-XdrvcA6-.js.br +0 -0
  839. package/app/dist/assets/TimelineFileDiffBlock-XdrvcA6-.js.gz +0 -0
  840. package/app/dist/assets/TimelineSelectionMenu-BRSCjve_.js +0 -21
  841. package/app/dist/assets/TimelineSelectionMenu-BRSCjve_.js.br +0 -0
  842. package/app/dist/assets/TimelineSelectionMenu-BRSCjve_.js.gz +0 -0
  843. package/app/dist/assets/ToolsView-yLTuwaS-.js +0 -5
  844. package/app/dist/assets/ToolsView-yLTuwaS-.js.br +0 -0
  845. package/app/dist/assets/ToolsView-yLTuwaS-.js.gz +0 -0
  846. package/app/dist/assets/ToolsViewSplits-CY_z2ota.js +0 -2
  847. package/app/dist/assets/ToolsViewSplits-CY_z2ota.js.br +0 -0
  848. package/app/dist/assets/ToolsViewSplits-CY_z2ota.js.gz +0 -0
  849. package/app/dist/assets/WaveformVisualizer-C6OsXJSb.js +0 -1
  850. package/app/dist/assets/WaveformVisualizer-C6OsXJSb.js.br +0 -0
  851. package/app/dist/assets/WaveformVisualizer-C6OsXJSb.js.gz +0 -0
  852. package/app/dist/assets/absolute-file-path-BRzbe3pB.js +0 -1
  853. package/app/dist/assets/app-fixed-tab-navigation-OD2fj3n2.js +0 -1
  854. package/app/dist/assets/app-fixed-tab-navigation-OD2fj3n2.js.br +0 -0
  855. package/app/dist/assets/app-fixed-tab-navigation-OD2fj3n2.js.gz +0 -0
  856. package/app/dist/assets/audio-input-device-preference-Cjawgn1V.js +0 -1
  857. package/app/dist/assets/audio-input-device-preference-Cjawgn1V.js.br +0 -0
  858. package/app/dist/assets/audio-input-device-preference-Cjawgn1V.js.gz +0 -0
  859. package/app/dist/assets/bottom-anchored-scroll-body-Be1sbbU5.js +0 -1
  860. package/app/dist/assets/bottom-anchored-scroll-body-Be1sbbU5.js.br +0 -0
  861. package/app/dist/assets/bottom-anchored-scroll-body-Be1sbbU5.js.gz +0 -0
  862. package/app/dist/assets/browser-url-CBcMtLbr.js +0 -1
  863. package/app/dist/assets/browser-url-CBcMtLbr.js.br +0 -0
  864. package/app/dist/assets/browser-url-CBcMtLbr.js.gz +0 -0
  865. package/app/dist/assets/checkbox-CqCSNCR0.js +0 -1
  866. package/app/dist/assets/checkbox-CqCSNCR0.js.br +0 -0
  867. package/app/dist/assets/checkbox-CqCSNCR0.js.gz +0 -0
  868. package/app/dist/assets/code-loading-skeletons-vwEEdK4M.js +0 -1
  869. package/app/dist/assets/code-loading-skeletons-vwEEdK4M.js.br +0 -5
  870. package/app/dist/assets/code-loading-skeletons-vwEEdK4M.js.gz +0 -0
  871. package/app/dist/assets/code-rendering-Cuda95iW.js +0 -1
  872. package/app/dist/assets/code-theme-registration-orI1eXvk.js +0 -1
  873. package/app/dist/assets/detail-card-D5FGZbq8.js +0 -1
  874. package/app/dist/assets/detail-card-D5FGZbq8.js.br +0 -0
  875. package/app/dist/assets/detail-card-D5FGZbq8.js.gz +0 -0
  876. package/app/dist/assets/diff-stats-tally-BI_o_T-X.js +0 -1
  877. package/app/dist/assets/diff-stats-tally-BI_o_T-X.js.br +0 -0
  878. package/app/dist/assets/diff-stats-tally-BI_o_T-X.js.gz +0 -0
  879. package/app/dist/assets/environment-mutations-nzTIzaD-.js +0 -1
  880. package/app/dist/assets/environment-mutations-nzTIzaD-.js.br +0 -0
  881. package/app/dist/assets/environment-mutations-nzTIzaD-.js.gz +0 -0
  882. package/app/dist/assets/environment-workspace-display-Die1s6od.js +0 -4
  883. package/app/dist/assets/environment-workspace-display-Die1s6od.js.br +0 -0
  884. package/app/dist/assets/environment-workspace-display-Die1s6od.js.gz +0 -0
  885. package/app/dist/assets/event-code-block-iHl74oke.js +0 -2
  886. package/app/dist/assets/event-code-block-iHl74oke.js.br +0 -0
  887. package/app/dist/assets/event-code-block-iHl74oke.js.gz +0 -0
  888. package/app/dist/assets/expandable-text-BX3M2OAE.js +0 -1
  889. package/app/dist/assets/expandable-text-BX3M2OAE.js.br +0 -0
  890. package/app/dist/assets/expandable-text-BX3M2OAE.js.gz +0 -0
  891. package/app/dist/assets/file-opener-preference-B3LEhS5Y.js +0 -1
  892. package/app/dist/assets/file-path-link-A6EPQFpY.js +0 -1
  893. package/app/dist/assets/file-path-link-A6EPQFpY.js.br +0 -0
  894. package/app/dist/assets/file-path-link-A6EPQFpY.js.gz +0 -0
  895. package/app/dist/assets/host-mutations-C5Y994AF.js +0 -1
  896. package/app/dist/assets/host-mutations-C5Y994AF.js.br +0 -0
  897. package/app/dist/assets/host-mutations-C5Y994AF.js.gz +0 -0
  898. package/app/dist/assets/icon-extended-BV-a2FnE.js +0 -1
  899. package/app/dist/assets/icon-extended-BV-a2FnE.js.br +0 -0
  900. package/app/dist/assets/icon-extended-BV-a2FnE.js.gz +0 -0
  901. package/app/dist/assets/image-lightbox-em7rgvva.js +0 -1
  902. package/app/dist/assets/image-lightbox-em7rgvva.js.br +0 -0
  903. package/app/dist/assets/image-lightbox-em7rgvva.js.gz +0 -0
  904. package/app/dist/assets/index-BR1pQoni.css +0 -2
  905. package/app/dist/assets/index-BR1pQoni.css.br +0 -0
  906. package/app/dist/assets/index-BR1pQoni.css.gz +0 -0
  907. package/app/dist/assets/index-DRBIflab.js +0 -395
  908. package/app/dist/assets/index-DRBIflab.js.br +0 -0
  909. package/app/dist/assets/index-DRBIflab.js.gz +0 -0
  910. package/app/dist/assets/inline-rename-editor-DWUP-PrO.js +0 -1
  911. package/app/dist/assets/inline-rename-editor-DWUP-PrO.js.br +0 -0
  912. package/app/dist/assets/inline-rename-editor-DWUP-PrO.js.gz +0 -0
  913. package/app/dist/assets/launcherRow-BtI5QxCf.js +0 -1
  914. package/app/dist/assets/launcherRow-BtI5QxCf.js.br +0 -0
  915. package/app/dist/assets/launcherRow-BtI5QxCf.js.gz +0 -0
  916. package/app/dist/assets/localhost-link-rewrite-description-C7slwMDg.js +0 -1
  917. package/app/dist/assets/localhost-link-rewrite-description-C7slwMDg.js.br +0 -0
  918. package/app/dist/assets/localhost-link-rewrite-description-C7slwMDg.js.gz +0 -0
  919. package/app/dist/assets/machine-provider-queries-BT73m_uc.js +0 -1
  920. package/app/dist/assets/machine-provider-queries-BT73m_uc.js.br +0 -0
  921. package/app/dist/assets/machine-provider-queries-BT73m_uc.js.gz +0 -0
  922. package/app/dist/assets/machine-server-access-DRuoilQ8.js +0 -1
  923. package/app/dist/assets/markdown-file-image-routing-Dd_OdyTA.js +0 -1
  924. package/app/dist/assets/markdown-html-C0FnBCNK.js +0 -1
  925. package/app/dist/assets/markdown-html-C0FnBCNK.js.br +0 -0
  926. package/app/dist/assets/markdown-html-C0FnBCNK.js.gz +0 -0
  927. package/app/dist/assets/markdown-local-file-link-CVCbPmuZ.js +0 -2
  928. package/app/dist/assets/markdown-local-file-link-CVCbPmuZ.js.br +0 -0
  929. package/app/dist/assets/markdown-local-file-link-CVCbPmuZ.js.gz +0 -0
  930. package/app/dist/assets/markdown-preview-B4mAqrpO.js +0 -38
  931. package/app/dist/assets/markdown-preview-B4mAqrpO.js.br +0 -0
  932. package/app/dist/assets/markdown-preview-B4mAqrpO.js.gz +0 -0
  933. package/app/dist/assets/markdown-prompt-mentions-ByeNpwDj.js +0 -18
  934. package/app/dist/assets/markdown-prompt-mentions-ByeNpwDj.js.br +0 -0
  935. package/app/dist/assets/markdown-prompt-mentions-ByeNpwDj.js.gz +0 -0
  936. package/app/dist/assets/model-load-error-message-BpdA8W0j.js +0 -1
  937. package/app/dist/assets/model-load-error-message-BpdA8W0j.js.br +0 -0
  938. package/app/dist/assets/model-load-error-message-BpdA8W0j.js.gz +0 -0
  939. package/app/dist/assets/onboarding-telemetry-BPmEr6LM.js +0 -1
  940. package/app/dist/assets/open-in-editor-button-BqfuSbup.js +0 -1
  941. package/app/dist/assets/open-in-editor-button-BqfuSbup.js.br +0 -0
  942. package/app/dist/assets/open-in-editor-button-BqfuSbup.js.gz +0 -0
  943. package/app/dist/assets/page-shell-D87V-pCf.js +0 -1
  944. package/app/dist/assets/page-shell-D87V-pCf.js.br +0 -0
  945. package/app/dist/assets/page-shell-D87V-pCf.js.gz +0 -0
  946. package/app/dist/assets/pierre-worker-pool-_iXAhrI-.js +0 -1
  947. package/app/dist/assets/pierre-worker-pool-_iXAhrI-.js.br +0 -0
  948. package/app/dist/assets/pierre-worker-pool-_iXAhrI-.js.gz +0 -0
  949. package/app/dist/assets/plugin-detail-navigation-CcBBuWiq.js +0 -1
  950. package/app/dist/assets/plugin-detail-navigation-CcBBuWiq.js.br +0 -0
  951. package/app/dist/assets/plugin-detail-navigation-CcBBuWiq.js.gz +0 -0
  952. package/app/dist/assets/plugin-frontend-rNlgiMVl.js +0 -4
  953. package/app/dist/assets/plugin-frontend-rNlgiMVl.js.br +0 -0
  954. package/app/dist/assets/plugin-frontend-rNlgiMVl.js.gz +0 -0
  955. package/app/dist/assets/plugin-ui-DaKLtvog.js +0 -1
  956. package/app/dist/assets/plugin-ui-DaKLtvog.js.br +0 -0
  957. package/app/dist/assets/plugin-ui-DaKLtvog.js.gz +0 -0
  958. package/app/dist/assets/project-default-execution-options-query-DUiakRXf.js +0 -1
  959. package/app/dist/assets/queued-editor-typeahead-layout-h4RHQraO.js +0 -1
  960. package/app/dist/assets/queued-editor-typeahead-layout-h4RHQraO.js.br +0 -0
  961. package/app/dist/assets/queued-editor-typeahead-layout-h4RHQraO.js.gz +0 -0
  962. package/app/dist/assets/queued-messages-layout-BdLniFBD.js +0 -3
  963. package/app/dist/assets/queued-messages-layout-BdLniFBD.js.br +0 -0
  964. package/app/dist/assets/queued-messages-layout-BdLniFBD.js.gz +0 -0
  965. package/app/dist/assets/resource-list-CYDq9dWp.js +0 -1
  966. package/app/dist/assets/resource-list-CYDq9dWp.js.br +0 -0
  967. package/app/dist/assets/resource-list-CYDq9dWp.js.gz +0 -0
  968. package/app/dist/assets/root-compose-create-preference-D0IXsB3E.js +0 -1
  969. package/app/dist/assets/save-file-D0F8_X9o.js +0 -1
  970. package/app/dist/assets/settings-nav-CysX8O_a.js +0 -1
  971. package/app/dist/assets/settings-nav-CysX8O_a.js.br +0 -0
  972. package/app/dist/assets/settings-nav-CysX8O_a.js.gz +0 -0
  973. package/app/dist/assets/settings-sections-C52oOhIG.js +0 -1
  974. package/app/dist/assets/settings-sections-C52oOhIG.js.br +0 -0
  975. package/app/dist/assets/settings-sections-C52oOhIG.js.gz +0 -0
  976. package/app/dist/assets/shortcut-pill-BOmbh9i_.js +0 -1
  977. package/app/dist/assets/sidebarTouchSensor-BH9qZM-B.js +0 -1
  978. package/app/dist/assets/sidebarTouchSensor-BH9qZM-B.js.br +0 -1
  979. package/app/dist/assets/sidebarTouchSensor-BH9qZM-B.js.gz +0 -0
  980. package/app/dist/assets/switch-C1r9tK50.js +0 -1
  981. package/app/dist/assets/switch-C1r9tK50.js.br +0 -0
  982. package/app/dist/assets/switch-C1r9tK50.js.gz +0 -0
  983. package/app/dist/assets/textarea-DInZK00U.js +0 -1
  984. package/app/dist/assets/thread-event-parser-B8rpIkjW.js +0 -1
  985. package/app/dist/assets/thread-event-parser-B8rpIkjW.js.br +0 -0
  986. package/app/dist/assets/thread-event-parser-B8rpIkjW.js.gz +0 -0
  987. package/app/dist/assets/thread-panel-queries-DtUzaIKp.js +0 -1
  988. package/app/dist/assets/thread-panel-queries-DtUzaIKp.js.br +0 -0
  989. package/app/dist/assets/thread-panel-queries-DtUzaIKp.js.gz +0 -0
  990. package/app/dist/assets/thread-runtime-mutations-3zDX5AcF.js +0 -3
  991. package/app/dist/assets/thread-runtime-mutations-3zDX5AcF.js.br +0 -0
  992. package/app/dist/assets/thread-runtime-mutations-3zDX5AcF.js.gz +0 -0
  993. package/app/dist/assets/thread-terminal-queries-DqAYqsS-.js +0 -1
  994. package/app/dist/assets/thread-terminal-queries-DqAYqsS-.js.br +0 -0
  995. package/app/dist/assets/thread-terminal-queries-DqAYqsS-.js.gz +0 -0
  996. package/app/dist/assets/threadRecentItems-DTSf9Qyj.js +0 -1
  997. package/app/dist/assets/threadRecentItems-DTSf9Qyj.js.br +0 -0
  998. package/app/dist/assets/threadRecentItems-DTSf9Qyj.js.gz +0 -0
  999. package/app/dist/assets/threadWorkspaceOpenPath-Bye34uoi.js +0 -1
  1000. package/app/dist/assets/threadWorkspaceOpenPath-Bye34uoi.js.br +0 -0
  1001. package/app/dist/assets/threadWorkspaceOpenPath-Bye34uoi.js.gz +0 -0
  1002. package/app/dist/assets/title-bar-scroll-fade-4W-vT0Vx.js +0 -1
  1003. package/app/dist/assets/title-bar-scroll-fade-4W-vT0Vx.js.br +0 -0
  1004. package/app/dist/assets/title-bar-scroll-fade-4W-vT0Vx.js.gz +0 -0
  1005. package/app/dist/assets/truncate-start-sdlXnyfM.js +0 -1
  1006. package/app/dist/assets/use-hover-popover-hhRv5xZ7.js +0 -1
  1007. package/app/dist/assets/use-hover-popover-hhRv5xZ7.js.br +0 -0
  1008. package/app/dist/assets/use-hover-popover-hhRv5xZ7.js.gz +0 -0
  1009. package/app/dist/assets/useElementWidth-mwThvGL6.js +0 -1
  1010. package/app/dist/assets/useElementWidth-mwThvGL6.js.br +0 -0
  1011. package/app/dist/assets/useElementWidth-mwThvGL6.js.gz +0 -0
  1012. package/app/dist/assets/useLocalOpenTargets-CeVQn3j9.js +0 -1
  1013. package/app/dist/assets/useLocalOpenTargets-CeVQn3j9.js.br +0 -0
  1014. package/app/dist/assets/useLocalOpenTargets-CeVQn3j9.js.gz +0 -0
  1015. package/app/dist/assets/usePanelResizeSnap-OkCYsUxm.js +0 -1
  1016. package/app/dist/assets/usePanelResizeSnap-OkCYsUxm.js.br +0 -0
  1017. package/app/dist/assets/usePanelResizeSnap-OkCYsUxm.js.gz +0 -0
  1018. package/app/dist/assets/usePanelTerminals-DtNt6qVh.js +0 -1
  1019. package/app/dist/assets/usePanelTerminals-DtNt6qVh.js.br +0 -0
  1020. package/app/dist/assets/usePanelTerminals-DtNt6qVh.js.gz +0 -0
  1021. package/app/dist/assets/usePathSuggestions-Dm5qDS0J.js +0 -1
  1022. package/app/dist/assets/usePathSuggestions-Dm5qDS0J.js.br +0 -0
  1023. package/app/dist/assets/usePathSuggestions-Dm5qDS0J.js.gz +0 -0
  1024. package/app/dist/assets/useResolvedLiveFileTarget-CEXrFzEY.js +0 -1
  1025. package/app/dist/assets/useResolvedLiveFileTarget-CEXrFzEY.js.br +0 -0
  1026. package/app/dist/assets/useResolvedLiveFileTarget-CEXrFzEY.js.gz +0 -0
  1027. package/app/dist/assets/useThreadTerminalController-DQV_cIaM.js +0 -1
  1028. package/app/dist/assets/useThreadTerminalController-DQV_cIaM.js.br +0 -0
  1029. package/app/dist/assets/useThreadTerminalController-DQV_cIaM.js.gz +0 -0
  1030. package/app/dist/assets/workspace-change-summary-BLv8PZee.js +0 -1
  1031. package/app/dist/assets/workspace-change-summary-BLv8PZee.js.br +0 -0
  1032. package/app/dist/assets/workspace-change-summary-BLv8PZee.js.gz +0 -0
  1033. package/app/dist/assets/workspace-checkout-display-CVxUcBO-.js +0 -32
  1034. package/app/dist/assets/workspace-checkout-display-CVxUcBO-.js.br +0 -0
  1035. package/app/dist/assets/workspace-checkout-display-CVxUcBO-.js.gz +0 -0
  1036. package/host-daemon/dist/bb-chunks/browser-OT57GDFB.js +0 -6
  1037. package/host-daemon/dist/bb-chunks/chunk-2KPG6XYX.js +0 -2
  1038. package/host-daemon/dist/bb-chunks/chunk-CMYGRVFB.js +0 -2186
  1039. package/host-daemon/dist/bb-chunks/chunk-EGH22TVO.js +0 -2
  1040. package/host-daemon/dist/bb-chunks/chunk-MBS4FWHI.js +0 -3
  1041. package/host-daemon/dist/bb-chunks/chunk-N2P7TEXR.js +0 -4
  1042. package/host-daemon/dist/bb-chunks/chunk-NBU7UKST.js +0 -134
  1043. package/host-daemon/dist/bb-chunks/chunk-QE47NRKX.js +0 -2
  1044. package/host-daemon/dist/bb-chunks/chunk-RUJFA7ET.js +0 -2
  1045. package/host-daemon/dist/bb-chunks/chunk-SH7C4SUT.js +0 -2
  1046. package/host-daemon/dist/bb-chunks/chunk-TWHWHEKZ.js +0 -6
  1047. package/host-daemon/dist/bb-chunks/chunk-XDGWECDM.js +0 -2
  1048. package/host-daemon/dist/bb-chunks/chunk-XM3X2R5V.js +0 -2
  1049. package/host-daemon/dist/bb-chunks/chunk-ZRY32VDC.js +0 -2
  1050. package/host-daemon/dist/bb-chunks/cli-error-log-TEKKCITC.js +0 -2
  1051. package/host-daemon/dist/bb-chunks/client-YTSGSUT3.js +0 -2
  1052. package/host-daemon/dist/bb-chunks/commander-errors-HE7AQOJU.js +0 -3
  1053. package/host-daemon/dist/bb-chunks/context-env-AO6FXGD3.js +0 -2
  1054. package/host-daemon/dist/bb-chunks/context-hints-I2UY5TL7.js +0 -2
  1055. package/host-daemon/dist/bb-chunks/diagnostics-GY26CKXS.js +0 -3
  1056. package/host-daemon/dist/bb-chunks/environment-ZLKQU3KH.js +0 -2
  1057. package/host-daemon/dist/bb-chunks/file-TLCLA5P7.js +0 -3
  1058. package/host-daemon/dist/bb-chunks/guide-XU7ID5IO.js +0 -4
  1059. package/host-daemon/dist/bb-chunks/machine-LA3FG63M.js +0 -2
  1060. package/host-daemon/dist/bb-chunks/marketplace-IR6V7OTH.js +0 -2
  1061. package/host-daemon/dist/bb-chunks/plugin-RFKDMLEM.js +0 -2633
  1062. package/host-daemon/dist/bb-chunks/plugin-cli-proxy-R2CRXKBD.js +0 -2
  1063. package/host-daemon/dist/bb-chunks/project-CQHBRIXY.js +0 -2
  1064. package/host-daemon/dist/bb-chunks/prompt-history-WOD54AYQ.js +0 -2
  1065. package/host-daemon/dist/bb-chunks/provider-FNWLXFEB.js +0 -2
  1066. package/host-daemon/dist/bb-chunks/server-GDUVH6XH.js +0 -8
  1067. package/host-daemon/dist/bb-chunks/settings-EMM7CVP2.js +0 -4
  1068. package/host-daemon/dist/bb-chunks/skill-2OFCKOAW.js +0 -5
  1069. package/host-daemon/dist/bb-chunks/status-LNI3WKQC.js +0 -2
  1070. package/host-daemon/dist/bb-chunks/terminal-ILDJFAJK.js +0 -3
  1071. package/host-daemon/dist/bb-chunks/theme-4FKCX74Z.js +0 -2
  1072. package/host-daemon/dist/bb-chunks/thread-3P36ZSKD.js +0 -29
  1073. package/host-daemon/dist/bb-chunks/thread-event-parser-VC3WTCLZ.js +0 -2
  1074. package/host-daemon/dist/bb-chunks/updates-EFQBIYS4.js +0 -2
  1075. package/host-daemon/dist/bb-chunks/voice-DW6NIRE5.js +0 -2
  1076. /package/host-daemon/dist/bb-chunks/{chunk-7LJFYNRQ.js → chunk-BNG7SSF7.js} +0 -0
package/LICENSE ADDED
@@ -0,0 +1,113 @@
1
+ # Orbit Software License
2
+
3
+ Copyright (c) 2026 Pacific Venture Studios LLC. All rights reserved.
4
+
5
+ This license governs your use of the software distributed as the npm package
6
+ `@halcyonlabs/app` (or any successor name), including the Orbit components and any
7
+ updates, together with its documentation (the "Software"), except for the Third-Party
8
+ Components described in section 6. "Licensor" means Pacific Venture Studios LLC, a
9
+ Delaware limited liability company. "You" means the person or entity installing or using
10
+ the Software.
11
+
12
+ By installing, running or otherwise using the Software, you agree to these terms. If you
13
+ do not agree, do not install or use the Software.
14
+
15
+ ## 1. License grant
16
+
17
+ Subject to these terms, Licensor grants you a limited, revocable, non-exclusive,
18
+ non-transferable, non-sublicensable license to install and run the Software, in the form
19
+ Licensor distributes it, on computers you own or control, solely for your own personal or
20
+ internal business use.
21
+
22
+ If Licensor has given you access as part of a beta, evaluation or early-access program, the
23
+ license lasts only for that program's duration and any additional terms Licensor
24
+ communicated for it apply.
25
+
26
+ ## 2. Restrictions
27
+
28
+ Except as expressly permitted by these terms or by applicable law that cannot be waived,
29
+ you may not:
30
+
31
+ 1. copy the Software, except as needed to install and run it under section 1 and to keep
32
+ a reasonable number of backups;
33
+ 2. modify, translate, adapt or create derivative works of the Software;
34
+ 3. distribute, sell, lease, rent, lend, sublicense, publish or otherwise make the Software
35
+ available to any third party, including by offering it as a hosted or managed service;
36
+ 4. decompile, disassemble, reverse engineer or attempt to derive the source code,
37
+ structure, prompts, instructions or algorithms of the Software;
38
+ 5. use the Software, or any part of it, including its prompts, instructions, recipes or
39
+ configurations, to build, train or improve a product or service that competes with the
40
+ Software;
41
+ 6. remove, alter or obscure any copyright, license or proprietary notice in the Software;
42
+ 7. circumvent any license, access or security mechanism in the Software; or
43
+ 8. use the Software in violation of any applicable law.
44
+
45
+ ## 3. Ownership
46
+
47
+ The Software is licensed, not sold. Licensor and its licensors keep all right, title and
48
+ interest in and to the Software, including all intellectual property rights. All rights
49
+ not expressly granted are reserved.
50
+
51
+ ## 4. Feedback
52
+
53
+ If you give Licensor suggestions, ideas or other feedback about the Software, Licensor
54
+ may use them for any purpose without obligation to you.
55
+
56
+ ## 5. Your data
57
+
58
+ The Software runs on computers you control. Data you process with it stays yours. By
59
+ default the Software sends no usage data to Licensor or to anyone else. Optional features
60
+ you turn on that connect to an outside service send what that service needs to work.
61
+
62
+ ## 6. Third-party components
63
+
64
+ The Software includes components licensed by third parties under their own terms,
65
+ including bb (https://github.com/get-bb/bb), licensed under the MIT License. Those
66
+ components ("Third-Party Components") are listed with their licenses in the
67
+ `THIRD-PARTY-NOTICES` file distributed with the Software. Your use of a Third-Party
68
+ Component is governed by its license, and nothing in these terms limits rights that
69
+ license gives you. These terms apply to everything else in the Software.
70
+
71
+ ## 7. Updates
72
+
73
+ Licensor may provide updates. Updates are part of the Software and are governed by these
74
+ terms unless they come with different terms.
75
+
76
+ ## 8. Termination
77
+
78
+ This license terminates automatically if you breach these terms. Licensor may also
79
+ terminate it on notice to you, including when a beta or evaluation program ends. On
80
+ termination you must stop using the Software and delete all copies. Sections 2 through 6
81
+ and 9 through 12 survive termination.
82
+
83
+ ## 9. Disclaimer of warranties
84
+
85
+ THE SOFTWARE IS PROVIDED "AS IS" AND "AS AVAILABLE", WITHOUT WARRANTY OF ANY KIND, EXPRESS
86
+ OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
87
+ PURPOSE, TITLE AND NON-INFRINGEMENT. THE SOFTWARE CAN TAKE ACTIONS ON YOUR COMPUTERS AND
88
+ ACCOUNTS ON YOUR INSTRUCTION; YOU ARE RESPONSIBLE FOR REVIEWING AND APPROVING THOSE ACTIONS
89
+ AND FOR KEEPING BACKUPS OF YOUR DATA.
90
+
91
+ ## 10. Limitation of liability
92
+
93
+ TO THE MAXIMUM EXTENT PERMITTED BY LAW, LICENSOR WILL NOT BE LIABLE FOR ANY INDIRECT,
94
+ INCIDENTAL, SPECIAL, CONSEQUENTIAL OR PUNITIVE DAMAGES, OR FOR ANY LOSS OF PROFITS,
95
+ REVENUE, DATA OR GOODWILL, ARISING OUT OF OR RELATING TO THE SOFTWARE, EVEN IF ADVISED OF
96
+ THEIR POSSIBILITY. LICENSOR'S TOTAL LIABILITY ARISING OUT OF OR RELATING TO THE SOFTWARE
97
+ WILL NOT EXCEED THE GREATER OF THE AMOUNT YOU PAID FOR THE SOFTWARE IN THE TWELVE MONTHS
98
+ BEFORE THE CLAIM AND US $100.
99
+
100
+ ## 11. Governing law
101
+
102
+ These terms are governed by the laws of the State of Delaware, without regard to its
103
+ conflict-of-laws rules. The state and federal courts located in Placer County, California
104
+ have exclusive jurisdiction over any dispute arising out of or relating to these terms.
105
+
106
+ ## 12. General
107
+
108
+ These terms are the entire agreement between you and Licensor about the Software and
109
+ supersede any prior agreement on that subject, except any separate written agreement that
110
+ expressly overrides them. If any provision is unenforceable, the rest remains in effect.
111
+ Licensor's failure to enforce a provision is not a waiver. You may not assign these terms
112
+ without Licensor's prior written consent; Licensor may assign them in connection with a
113
+ merger, acquisition or sale of assets. Contact: matt@pacificventure.studio.
@@ -0,0 +1,65 @@
1
+ Third-party notices for @halcyonlabs/app
2
+
3
+ This package is built from a fork of bb (https://github.com/get-bb/bb). bb's code is
4
+ used under the MIT License, whose notice follows. The Notify Feed plugin in
5
+ server/dist/builtin-plugins/notify-feed/ is based on Notify Feed
6
+ (https://github.com/Sargares22/bb-plugin-notify-feed), used under the MIT License,
7
+ whose notice follows bb's; that plugin's folder carries the notice too (dist/LICENSE).
8
+ The package as a whole, including the Orbit, Library and Notify Feed
9
+ plugins in server/dist/builtin-plugins/, is under the terms in LICENSE; the code these
10
+ notices cover stays available under them, as LICENSE section 6 says.
11
+
12
+ Other open-source components bundled in this package keep their own licenses, as
13
+ their notices in the bundled files say.
14
+
15
+ -------------------------------------------------------------------------------
16
+ bb (https://github.com/get-bb/bb)
17
+ -------------------------------------------------------------------------------
18
+
19
+ MIT License
20
+
21
+ Copyright (c) 2026 Michael Yong
22
+
23
+ Permission is hereby granted, free of charge, to any person obtaining a copy
24
+ of this software and associated documentation files (the "Software"), to deal
25
+ in the Software without restriction, including without limitation the rights
26
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
27
+ copies of the Software, and to permit persons to whom the Software is
28
+ furnished to do so, subject to the following conditions:
29
+
30
+ The above copyright notice and this permission notice shall be included in all
31
+ copies or substantial portions of the Software.
32
+
33
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
36
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
37
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
38
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
39
+ SOFTWARE.
40
+
41
+ -------------------------------------------------------------------------------
42
+ Notify Feed (https://github.com/Sargares22/bb-plugin-notify-feed)
43
+ -------------------------------------------------------------------------------
44
+
45
+ MIT License
46
+
47
+ Copyright (c) 2026 Sargares22
48
+
49
+ Permission is hereby granted, free of charge, to any person obtaining a copy
50
+ of this software and associated documentation files (the "Software"), to deal
51
+ in the Software without restriction, including without limitation the rights
52
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
53
+ copies of the Software, and to permit persons to whom the Software is
54
+ furnished to do so, subject to the following conditions:
55
+
56
+ The above copyright notice and this permission notice shall be included in all
57
+ copies or substantial portions of the Software.
58
+
59
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
60
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
61
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
62
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
63
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
64
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
65
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Ar as t,Kr as n,Or as r,mi as i,ni as a}from"./boot-vendor-BBLG7GwQ.js";import{Bo as o,Ea as s,Kp as c,Po as l,Qm as u,Ui as d,Vi as f,do as p,em as m,fo as h,go as g,ho as _,m as v,md as y,nh as b,po as x,qi as S,vi as C}from"./index-DacqPN7W.js";import{n as w}from"./index.browser-CVgpGTCr.js";import{t as T}from"./OptionPicker-CVNc9bQV.js";import{V as E}from"./resource-list-CVE0YyK0.js";import{n as D,r as O}from"./machine-server-access-DQREaCCd.js";var k=r(),A=e(i(),1),j=e(a(),1);function M(e){try{return new URL(e)}catch{return null}}function N(){let e=l(),t=v(),n=e.data?.generalSettings,r=e.data?.serverAccess,i=n?.machineServerUrl??``,[a,s]=(0,A.useState)(null),[c,u]=(0,A.useState)(null),d=!n,f=r?.defaultProviderId??`direct`,[p,m]=(0,A.useState)(null);(0,A.useEffect)(()=>{p===f&&m(null)},[f,p]);let h=p??f;return{access:r,disabled:d,draft:a,error:c,effective:r?.providers.find(e=>e.id===h),configurationMessage:D(r,h),saving:t.isPending,selected:h,value:i,editDraft:e=>{s(e),u(null)},selectProvider:e=>{!n||e===h||(m(e),t.mutate({defaultMachineAccess:e},{onError:()=>m(null)}))},commitUrl:async()=>{if(!n||a===null)return;let e=a.trim();if(e){let t=M(e);if(t===null||![`http:`,`https:`].includes(t.protocol)||t.username||t.password){u(`Enter a valid HTTP or HTTPS URL without credentials`);return}if(C(e)){u(`Other machines cannot reach localhost. Use a domain or shared-network address.`);return}}try{await t.mutateAsync({machineServerUrl:e||null})}catch(e){u(o({error:e,fallbackMessage:`Couldn't save the address.`}));return}s(null),u(null)}}}function P(e){let t=(0,k.c)(7),{children:n,title:r}=e,i=r===void 0?`Machine access`:r,a=N(),o;t[0]!==n||t[1]!==a?(o=n?.(a.selected===`direct`?null:a.effective?.pluginId??null),t[0]=n,t[1]=a,t[2]=o):o=t[2];let s;return t[3]!==a||t[4]!==o||t[5]!==i?(s=(0,j.jsx)(F,{machineAccess:a,title:i,children:o}),t[3]=a,t[4]=o,t[5]=i,t[6]=s):s=t[6],s}function F(e){let t=(0,k.c)(12),{machineAccess:n,children:r,title:i}=e,a=i===void 0?`Machine access`:i,o;t[0]===a?o=t[1]:(o=(0,j.jsx)(`h2`,{className:`text-sm font-semibold`,children:a}),t[0]=a,t[1]=o);let s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.jsx)(`p`,{className:`mt-1 text-xs text-subtle-foreground`,children:`Choose how your devices reach this Moonlet server.`}),t[2]=s):s=t[2];let c;t[3]===o?c=t[4]:(c=(0,j.jsxs)(`div`,{children:[o,s]}),t[3]=o,t[4]=c);let l;t[5]!==r||t[6]!==n?(l=(0,j.jsx)(`div`,{className:`overflow-hidden rounded-lg border border-border bg-card`,children:(0,j.jsx)(`div`,{className:`px-4 py-3`,children:n.access===void 0?(0,j.jsxs)(`p`,{role:`status`,className:`flex h-8 items-center gap-2 text-xs text-subtle-foreground`,children:[(0,j.jsx)(u,{name:`Spinner`,className:`size-3.5 animate-spin`}),`Loading connection settings…`]}):(0,j.jsxs)(j.Fragment,{children:[n.selected!==`direct`&&n.effective?(0,j.jsx)(V,{machineAccess:n,methodPicker:(0,j.jsx)(R,{machineAccess:n,align:`start`})}):(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsx)(`div`,{className:`flex`,children:(0,j.jsx)(R,{machineAccess:n,align:`start`})}),(0,j.jsx)(B,{machineAccess:n})]}),r]})})}),t[5]=r,t[6]=n,t[7]=l):l=t[7];let d;return t[8]!==c||t[9]!==l||t[10]!==a?(d=(0,j.jsxs)(`section`,{"aria-label":a,className:`space-y-3`,children:[c,l]}),t[8]=c,t[9]=l,t[10]=a,t[11]=d):d=t[11],d}function I(e){let t=(0,k.c)(3),{onNavigate:n}=e,r=N(),i;return t[0]!==r||t[1]!==n?(i=(0,j.jsx)(L,{machineAccess:r,onNavigate:n}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i}function L(e){let t=(0,k.c)(9),{machineAccess:n,onNavigate:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,j.jsx)(`span`,{className:`text-sm font-normal text-foreground`,children:`Connection method`}),t[0]=i):i=t[0];let a;t[1]===n?a=t[2]:(a=(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[i,(0,j.jsx)(R,{machineAccess:n})]}),t[1]=n,t[2]=a);let o;t[3]!==n||t[4]!==r?(o=(0,j.jsx)(B,{machineAccess:n,onNavigate:r}),t[3]=n,t[4]=r,t[5]=o):o=t[5];let s;return t[6]!==a||t[7]!==o?(s=(0,j.jsxs)(`div`,{className:`space-y-3`,children:[a,o]}),t[6]=a,t[7]=o,t[8]=s):s=t[8],s}function R(e){let t=(0,k.c)(15),{machineAccess:n,align:r}=e,i=r===void 0?`end`:r,{access:a,disabled:o,selected:s}=n,c;t[0]!==a||t[1]!==n.effective?(c=a&&!n.effective?{label:`Unavailable method`}:void 0,t[0]=a,t[1]=n.effective,t[2]=c):c=t[2];let l=i===`start`?`-ml-1`:void 0,u;t[3]===a?.providers?u=t[4]:(u=a?.providers??[],t[3]=a?.providers,t[4]=u);let d;t[5]===u?d=t[6]:(d=u.map(z),t[5]=u,t[6]=d);let f;return t[7]!==i||t[8]!==o||t[9]!==n.selectProvider||t[10]!==s||t[11]!==c||t[12]!==l||t[13]!==d?(f=(0,j.jsx)(T,{modal:!1,label:`Connection method`,value:s,displayOverride:c,disabled:o,showChevronWhenDisabled:!0,align:i,className:l,options:d,onChange:n.selectProvider}),t[7]=i,t[8]=o,t[9]=n.selectProvider,t[10]=s,t[11]=c,t[12]=l,t[13]=d,t[14]=f):f=t[14],f}function z(e){return{value:e.id,label:e.displayName,description:e.description}}function B(e){let t=(0,k.c)(21),{machineAccess:n,onNavigate:r}=e,{access:i,disabled:a,draft:o,effective:s,error:c,saving:l,selected:u,value:d}=n,f;t[0]!==s||t[1]!==n||t[2]!==r||t[3]!==u?(f=u!==`direct`&&s!==void 0&&(0,j.jsx)(V,{machineAccess:n,onNavigate:r}),t[0]=s,t[1]=n,t[2]=r,t[3]=u,t[4]=f):f=t[4];let p;t[5]!==s||t[6]!==u?(p=u!==`direct`&&s===void 0&&(0,j.jsx)(`p`,{className:`text-xs text-subtle-foreground`,children:`This connection method is not installed. Choose another method above.`}),t[5]=s,t[6]=u,t[7]=p):p=t[7];let m;t[8]!==i?.effectiveUrl||t[9]!==a||t[10]!==o||t[11]!==c||t[12]!==n||t[13]!==l||t[14]!==u||t[15]!==d?(m=u===`direct`&&(0,j.jsxs)(E,{label:`Server address`,description:`Use your own domain or an address on a shared network. Your devices must be able to reach this address; localhost won’t work.`,controlPlacement:`below`,children:[(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,j.jsx)(S,{className:`min-w-0 flex-1 basis-48`,"aria-label":`Server address`,"aria-invalid":c!==null,value:o??d,placeholder:i?.effectiveUrl??`https://bb.example.com`,disabled:a,onChange:e=>n.editDraft(e.target.value),onKeyDown:e=>{e.key===`Enter`&&n.commitUrl()}}),(0,j.jsx)(b,{variant:`outline`,className:`h-9 max-md:pointer-coarse:h-10`,disabled:a||o===null||o.trim()===d,onClick:()=>void n.commitUrl(),children:l?`Saving…`:`Save`})]}),c!==null&&(0,j.jsx)(`p`,{role:`alert`,className:`mt-2 text-xs text-destructive-text`,children:c})]}),t[8]=i?.effectiveUrl,t[9]=a,t[10]=o,t[11]=c,t[12]=n,t[13]=l,t[14]=u,t[15]=d,t[16]=m):m=t[16];let h;return t[17]!==f||t[18]!==p||t[19]!==m?(h=(0,j.jsxs)(j.Fragment,{children:[f,p,m]}),t[17]=f,t[18]=p,t[19]=m,t[20]=h):h=t[20],h}function V(e){let n=(0,k.c)(22),{machineAccess:r,onNavigate:i,methodPicker:a}=e,{effective:o,configurationMessage:s}=r;if(!o)return null;let l=s===null,d=o.availability?.status===`setup-required`&&o.pluginId!==null,f=d?`flex flex-col items-start gap-2`:`flex min-h-7 items-center justify-between gap-3`,p;n[0]!==s||n[1]!==o.description||n[2]!==d?(p=d&&(0,j.jsxs)(`p`,{className:`max-w-xl text-xs text-subtle-foreground`,children:[o.description,` `,s]}),n[0]=s,n[1]=o.description,n[2]=d,n[3]=p):p=n[3];let m;n[4]!==o.displayName||n[5]!==o.pluginId||n[6]!==i||n[7]!==d?(m=o.pluginId!==null&&(0,j.jsx)(b,{variant:d?`default`:`link`,size:`sm`,className:d?`shrink-0`:`h-7 shrink-0 px-3 font-normal text-subtle-foreground/75 no-underline hover:text-subtle-foreground hover:no-underline`,asChild:!0,children:(0,j.jsx)(t,{onClick:i,to:c({pluginId:o.pluginId}),children:d?(0,j.jsxs)(j.Fragment,{children:[`Set up `,o.displayName,(0,j.jsx)(u,{name:`ArrowRight`})]}):`Manage`})}),n[4]=o.displayName,n[5]=o.pluginId,n[6]=i,n[7]=d,n[8]=m):m=n[8];let h;n[9]!==a||n[10]!==f||n[11]!==p||n[12]!==m?(h=(0,j.jsxs)(`div`,{className:f,children:[a,p,m]}),n[9]=a,n[10]=f,n[11]=p,n[12]=m,n[13]=h):h=n[13];let g;n[14]!==s||n[15]!==o.availability||n[16]!==l||n[17]!==d?(g=!d&&(0,j.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-3 gap-y-1 text-xs`,children:[(0,j.jsxs)(`p`,{className:`inline-flex shrink-0 items-center gap-1.5 font-medium`,children:[l?(0,j.jsx)(`span`,{className:`size-1.5 shrink-0 rounded-full bg-success`,"aria-hidden":`true`}):null,l?`Ready`:`Unavailable`]}),(0,j.jsx)(`p`,{className:`min-w-0 break-words text-subtle-foreground [overflow-wrap:anywhere]`,children:s??(o.availability?.status===`available`?o.availability.serverUrl:null)??`Ready to connect devices.`})]}),n[14]=s,n[15]=o.availability,n[16]=l,n[17]=d,n[18]=g):g=n[18];let _;return n[19]!==h||n[20]!==g?(_=(0,j.jsxs)(`div`,{className:`space-y-0`,children:[h,g]}),n[19]=h,n[20]=g,n[21]=_):_=n[21],_}var H=`manual`;function U(e){let t=(0,k.c)(12),{open:n,onOpenChange:r}=e,i=f(),a;t[0]!==i||t[1]!==r?(a=e=>{e||i.refetch(),r(e)},t[0]=i,t[1]=r,t[2]=a):a=t[2];let o=a,s;t[3]!==o||t[4]!==n?(s=n&&(0,j.jsx)(W,{onOpenChange:o}),t[3]=o,t[4]=n,t[5]=s):s=t[5];let c;t[6]===s?c=t[7]:(c=(0,j.jsx)(h,{className:`max-h-[calc(100dvh-2rem)] overflow-y-auto`,children:s}),t[6]=s,t[7]=c);let l;return t[8]!==o||t[9]!==n||t[10]!==c?(l=(0,j.jsx)(p,{open:n,onOpenChange:o,modal:!1,children:c}),t[8]=o,t[9]=n,t[10]=c,t[11]=l):l=t[11],l}function W(e){let t=(0,k.c)(13),{onOpenChange:n}=e,r=l(),i=f();if(!O(r.data?.serverAccess)){let e;t[0]===r?e=t[1]:(e=r.isPending?{status:`checking`}:r.isError?{status:`failed`,onRetry:()=>void r.refetch()}:{status:`blocked`},t[0]=r,t[1]=e);let i;t[2]===n?i=t[3]:(i=(0,j.jsx)(I,{onNavigate:()=>n(!1)}),t[2]=n,t[3]=i);let a;return t[4]!==e||t[5]!==i?(a=(0,j.jsx)(K,{state:e,children:i}),t[4]=e,t[5]=i,t[6]=a):a=t[6],a}let a=r.data?.primaryHostId??null,o;t[7]!==i.data||t[8]!==a?(o=i.data?.find(e=>e.id===a)?.name??null,t[7]=i.data,t[8]=a,t[9]=o):o=t[9];let s=o,c;return t[10]!==n||t[11]!==s?(c=(0,j.jsx)(q,{serverMachineName:s,onOpenChange:n}),t[10]=n,t[11]=s,t[12]=c):c=t[12],c}function G(e){return e===null?`The new machine will connect to your Moonlet server. Keep the server machine on so the new machine can keep working.`:`The new machine will connect to the Moonlet server on ${e}. Keep that computer on so the new machine can keep working.`}function K(e){let t=(0,k.c)(7),{state:n,children:r}=e;if(n.status===`checking`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(g,{className:`sr-only`,children:`Add a machine`}),(0,j.jsx)(`p`,{role:`status`,className:`text-sm text-subtle-foreground`,children:`Checking machine access…`})]}),t[0]=e):e=t[0],e}if(n.status===`failed`){let e;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,j.jsxs)(_,{children:[(0,j.jsx)(g,{children:`Add a machine`}),(0,j.jsx)(x,{className:`text-destructive-text`,children:`Couldn’t check whether machines can reach this server.`})]}),t[1]=e):e=t[1];let r;return t[2]===n.onRetry?r=t[3]:(r=(0,j.jsxs)(j.Fragment,{children:[e,(0,j.jsx)(`div`,{className:`flex justify-end`,children:(0,j.jsx)(b,{variant:`outline`,size:`sm`,onClick:n.onRetry,children:`Try again`})})]}),t[2]=n.onRetry,t[3]=r),r}let i;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,j.jsxs)(_,{children:[(0,j.jsx)(g,{children:`Set up machine access`}),(0,j.jsx)(x,{children:`A new machine has to reach this server over the network. Choose the address it should use.`})]}),t[4]=i):i=t[4];let a;return t[5]===r?a=t[6]:(a=(0,j.jsxs)(j.Fragment,{children:[i,r]}),t[5]=r,t[6]=a),a}function q({serverMachineName:e,onOpenChange:t}){let r=(0,A.useRef)(null),i=(0,A.useRef)(null),a=(0,A.useRef)(new Set),s=(0,A.useRef)(0),[c,l]=(0,A.useState)(null),[u,d]=(0,A.useState)(null);(0,A.useEffect)(()=>()=>{s.current+=1,r.current?.abort(),i.current=null;for(let e of a.current)y.hosts.delete({hostId:e}).catch(()=>void 0);a.current.clear()},[]);let f=n({meta:{showErrorToast:!1},mutationFn:async e=>{let t=s.current;if(e.replaceLaunch){r.current?.abort(),r.current=null;let e=[...a.current];a.current.clear(),await Promise.all(e.map(e=>y.hosts.delete({hostId:e}))),i.current=null}l(null);let n=new AbortController;r.current=n,i.current??=w();try{let e=await y.hosts.experimental_create({key:i.current,machineProviderId:H,inputs:null,wait:!1,signal:n.signal});if(a.current.add(e.id),t!==s.current)throw a.current.delete(e.id),await y.hosts.delete({hostId:e.id}),Error(`Machine setup closed`);let r=null;for(;e.lifecycle.phase===`creating`;){n.signal.throwIfAborted();let t=await y.hosts.experimental_getEnrollmentCommand({hostId:e.id,signal:n.signal});if(t!==null)r=t,l({value:t.command,windowsValue:t.windowsCommand,expiresAt:t.expiresAt,unavailable:!1});else if(r!==null){let e=r;l(t=>t?.unavailable?t:{value:e.command,windowsValue:e.windowsCommand,expiresAt:e.expiresAt,unavailable:!0})}await new Promise(e=>setTimeout(e,1e3)),n.signal.throwIfAborted(),e=await y.hosts.get({hostId:e.id,signal:n.signal})}if(i.current=null,a.current.delete(e.id),e.lifecycle.phase!==`active`)throw Error(e.lifecycle.message??`Machine setup cancelled`);return e}finally{r.current===n&&(r.current=null)}},onSuccess:e=>{i.current=null,d(e)}}),p=f.mutate;return(0,A.useEffect)(()=>{p({replaceLaunch:!1})},[p]),(0,j.jsx)(J,{command:c,connectedHost:u,serverMachineName:e,errorMessage:f.isError?o({error:f.error,fallbackMessage:`Couldn't prepare an enrollment command.`}):null,onRetry:()=>f.mutate({replaceLaunch:!1}),onRegenerate:()=>f.mutate({replaceLaunch:!0}),onOpenMachine:()=>t(!1)})}function J(e){let n=(0,k.c)(24),{command:r,connectedHost:i,serverMachineName:a,errorMessage:o,onRetry:s,onRegenerate:c,onOpenMachine:l}=e,f;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,j.jsx)(g,{children:`Add a machine`}),n[0]=f):f=n[0];let p=o===null?void 0:`text-destructive-text`,h=o??`Run this command on the machine you want to add. It installs Moonlet and keeps the machine connected to this server.`,v;n[1]!==p||n[2]!==h?(v=(0,j.jsxs)(_,{children:[f,(0,j.jsx)(x,{className:p,children:h})]}),n[1]=p,n[2]=h,n[3]=v):v=n[3];let y;n[4]!==o||n[5]!==s?(y=o===null?null:(0,j.jsx)(`div`,{className:`flex justify-end`,children:(0,j.jsx)(b,{variant:`outline`,size:`sm`,onClick:s,children:`Try again`})}),n[4]=o,n[5]=s,n[6]=y):y=n[6];let S;n[7]!==r||n[8]!==c?(S=r===null?null:(0,j.jsx)(Z,{command:r.value,windowsCommand:r.windowsValue,expiresAt:r.expiresAt,unavailable:r.unavailable,onRegenerate:c},r.value),n[7]=r,n[8]=c,n[9]=S):S=n[9];let C;n[10]!==r||n[11]!==i||n[12]!==o||n[13]!==l?(C=o===null?(0,j.jsx)(`div`,{className:`flex items-center gap-2.5 rounded-md bg-muted/40 px-3 py-2.5`,children:i===null?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(u,{name:`Spinner`,className:`size-4 shrink-0 animate-spin text-muted-foreground`}),(0,j.jsx)(`span`,{role:`status`,className:`text-sm text-muted-foreground`,children:r===null?`Preparing an enrollment command…`:`Waiting for the machine to connect…`})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(d,{connected:!0}),(0,j.jsxs)(`span`,{role:`status`,className:`min-w-0 flex-1 truncate text-sm text-foreground`,children:[i.name,` connected`]}),(0,j.jsx)(b,{asChild:!0,size:`sm`,variant:`ghost`,className:`h-7 shrink-0 px-2 text-xs`,children:(0,j.jsxs)(t,{to:m(i.id),onClick:l,children:[`Open machine`,(0,j.jsx)(u,{name:`ArrowRight`})]})})]})}):null,n[10]=r,n[11]=i,n[12]=o,n[13]=l,n[14]=C):C=n[14];let w;n[15]!==o||n[16]!==a?(w=o===null?(0,j.jsx)(`p`,{className:`text-xs text-subtle-foreground`,children:G(a)}):null,n[15]=o,n[16]=a,n[17]=w):w=n[17];let T;return n[18]!==v||n[19]!==y||n[20]!==S||n[21]!==C||n[22]!==w?(T=(0,j.jsxs)(j.Fragment,{children:[v,y,S,C,w]}),n[18]=v,n[19]=y,n[20]=S,n[21]=C,n[22]=w,n[23]=T):T=n[23],T}function Y(e){let t=Math.max(0,Math.floor(e/1e3));return`${Math.floor(t/60)}:${(t%60).toString().padStart(2,`0`)}`}var X=[{id:`posix`,label:`macOS or Linux`},{id:`windows`,label:`Windows`}];function Z(e){let t=(0,k.c)(34),{command:n,windowsCommand:r,expiresAt:i,unavailable:a,onRegenerate:o}=e,c=a===void 0?!1:a,[l,u]=(0,A.useState)(`posix`),d=l===`windows`?r:n,f;t[0]===d?f=t[1]:(f={text:d},t[0]=d,t[1]=f);let{copied:p,copy:m}=s(f),h;t[2]===i?h=t[3]:(h=()=>i-Date.now(),t[2]=i,t[3]=h);let[g,_]=(0,A.useState)(h),v,y;t[4]===i?(v=t[5],y=t[6]):(v=()=>{let e=setInterval(()=>_(i-Date.now()),1e3);return()=>clearInterval(e)},y=[i],t[4]=i,t[5]=v,t[6]=y),(0,A.useEffect)(v,y);let x=g<=0,S;t[7]===l?S=t[8]:(S=X.map(e=>(0,j.jsx)(b,{type:`button`,size:`sm`,variant:l===e.id?`secondary`:`ghost`,"aria-pressed":l===e.id,className:`h-6 px-2 text-xs`,onClick:()=>u(e.id),children:e.label},e.id)),t[7]=l,t[8]=S);let C;t[9]===l?C=t[10]:(C=l===`windows`?(0,j.jsx)(`span`,{className:`ml-auto text-xs text-subtle-foreground`,children:`Run in PowerShell`}):null,t[9]=l,t[10]=C);let w;t[11]!==S||t[12]!==C?(w=(0,j.jsxs)(`div`,{role:`group`,"aria-label":`Machine operating system`,className:`flex items-center gap-1 border-b border-border px-2 py-1.5`,children:[S,C]}),t[11]=S,t[12]=C,t[13]=w):w=t[13];let T;t[14]===d?T=t[15]:(T=(0,j.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap break-all p-3 font-mono text-xs text-foreground`,children:d}),t[14]=d,t[15]=T);let E;t[16]!==x||t[17]!==o||t[18]!==g||t[19]!==c?(E=c?(0,j.jsx)(`span`,{role:`status`,className:`text-xs text-subtle-foreground`,children:`Command used`}):x?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{role:`status`,className:`text-xs text-subtle-foreground`,children:`Command expired`}),(0,j.jsx)(b,{type:`button`,size:`sm`,variant:`ghost`,className:`h-7 px-2 text-xs`,onClick:o,children:`Generate a new command`})]}):(0,j.jsxs)(`span`,{role:`status`,className:`text-xs tabular-nums text-subtle-foreground`,children:[`Command expires in `,Y(g)]}),t[16]=x,t[17]=o,t[18]=g,t[19]=c,t[20]=E):E=t[20];let D=x||c,O;t[21]===m?O=t[22]:(O=()=>void m(),t[21]=m,t[22]=O);let M=p?`Copied`:`Copy`,N;t[23]!==D||t[24]!==O||t[25]!==M?(N=(0,j.jsx)(b,{type:`button`,size:`sm`,variant:`outline`,className:`ml-auto h-7 px-2.5 text-xs`,disabled:D,onClick:O,children:M}),t[23]=D,t[24]=O,t[25]=M,t[26]=N):N=t[26];let P;t[27]!==E||t[28]!==N?(P=(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-t border-border px-3 py-2`,children:[E,N]}),t[27]=E,t[28]=N,t[29]=P):P=t[29];let F;return t[30]!==P||t[31]!==w||t[32]!==T?(F=(0,j.jsxs)(`div`,{className:`overflow-hidden rounded-md border border-border bg-muted/30`,children:[w,T,P]}),t[30]=P,t[31]=w,t[32]=T,t[33]=F):F=t[33],F}export{Z as n,P as r,U as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Or as t,ni as n}from"./boot-vendor-BBLG7GwQ.js";import{no as r}from"./index-DacqPN7W.js";import{t as i}from"./shortcut-pill-DEGa4D8O.js";var a=t(),o=e(n(),1);function s(e){let t=(0,a.c)(3),{shortcut:n,className:s}=e;if(!r()||!n)return null;let c;return t[0]!==s||t[1]!==n?(c=(0,o.jsx)(i,{shortcut:n,className:s}),t[0]=s,t[1]=n,t[2]=c):c=t[2],c}export{s as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Or as t,mi as n}from"./boot-vendor-BBLG7GwQ.js";import{Rn as r,Ym as i}from"./index-DacqPN7W.js";import{t as a}from"./useLocalOpenTargets-BHW47emg.js";import{t as o}from"./useResolvedLiveFileTarget-Djned7dt.js";var s=t(),c=e(n(),1);function l(e){let t=(0,s.c)(20),{intent:n,onSettled:l}=e,u=(0,c.useRef)(!1),d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d={enabled:!0},t[0]=d):d=t[0];let f=o(n.target,d),p=f.status===`available`,m;t[1]!==f.openContext||t[2]!==f.status?(m=f.status===`available`?{openContext:f.openContext}:{},t[1]=f.openContext,t[2]=f.status,t[3]=m):m=t[3];let h;t[4]!==p||t[5]!==m?(h={enabled:p,...m},t[4]=p,t[5]=m,t[6]=h):h=t[6];let{isLoading:g,openPathInPreferredFileTarget:_}=a(h),v;t[7]!==g||t[8]!==n.location||t[9]!==l||t[10]!==_||t[11]!==f.absolutePath||t[12]!==f.status?(v=()=>{if(u.current||f.status===`loading`||g)return;if(u.current=!0,l(),f.status===`unavailable`){i.error(`Failed to open file externally`,{description:`The file target is not available on its declared host.`});return}let e=r(n.location);_({columnNumber:e.columnNumber,lineNumber:e.lineNumber,path:f.absolutePath})},t[7]=g,t[8]=n.location,t[9]=l,t[10]=_,t[11]=f.absolutePath,t[12]=f.status,t[13]=v):v=t[13];let y;return t[14]!==g||t[15]!==n.location||t[16]!==l||t[17]!==_||t[18]!==f?(y=[n.location,g,_,l,f],t[14]=g,t[15]=n.location,t[16]=l,t[17]=_,t[18]=f,t[19]=y):y=t[19],(0,c.useEffect)(v,y),null}export{l as AppFileExternalNavigationDispatcher};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Or as t,mi as n,ni as r}from"./boot-vendor-BBLG7GwQ.js";import{Xf as i,Xm as a,ca as o,z as s}from"./index-DacqPN7W.js";import{r as c,t as l}from"./dist-4WsJ8dK6.js";var u=t(),d=e(n(),1),f=e(r(),1),p={top:`calc(env(safe-area-inset-top) + var(--bb-app-chrome-row-height) + 16px)`},m=[`top`,`left`,`right`];function h(){let e=(0,u.c)(8),t=s(),n=i(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=[],e[0]=r):r=e[0],(0,d.useEffect)(g,r);let a;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(a={zIndex:o.toast},e[1]=a):a=e[1];let c=n?`top-center`:`bottom-right`,h=n?p:void 0,_=n?p:void 0,v=n?m:void 0,y;return e[2]!==c||e[3]!==h||e[4]!==_||e[5]!==v||e[6]!==t?(y=(0,f.jsx)(l,{theme:t,style:a,position:c,offset:h,mobileOffset:_,swipeDirections:v}),e[2]=c,e[3]=h,e[4]=_,e[5]=v,e[6]=t,e[7]=y):y=e[7],y}function g(){a(c)}export{h as AppToasterView};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Or as t,mi as n,ni as r}from"./boot-vendor-BBLG7GwQ.js";import{I as i,oh as a,z as ee}from"./index-DacqPN7W.js";import{t as o}from"./code-loading-skeletons-IO1KXbza.js";import{n as s,t as c}from"./pierre-strict-mode-recovery-BhJkQvXP.js";import{t as l}from"./FileDiff-BLle8hNc.js";import{a as u,n as te,r as d,t as f}from"./git-diff-patch-text-Cs-divFw.js";import{t as p}from"./PierreLineSelectionActions-CKcwMnwZ.js";import{i as m}from"./pierre-worker-pool-gate-DzlPWuU3.js";var h=t(),g=e(n(),1),_=e(r(),1),v={"--diffs-font-size":`12px`,"--diffs-line-height":`18px`},y=30;function b(e){let t=(0,h.c)(47),{file:n,patchText:r,fullFileContents:b,view:x,overflow:S,showLineNumbers:C,className:w,onSelectionAddToChat:T}=e,E=b?.old.path,D=b?.old.content,O=b?.new.path,k=b?.new.content,A;bb0:{if(E===void 0||D===void 0||O===void 0||k===void 0){A=n;break bb0}let e;t[0]!==n||t[1]!==k||t[2]!==O||t[3]!==D||t[4]!==E||t[5]!==r?(e=u({fileDiff:n,oldFile:{name:E,contents:D},newFile:{name:O,contents:k},patchText:r??d(n)}),t[0]=n,t[1]=k,t[2]=O,t[3]=D,t[4]=E,t[5]=r,t[6]=e):e=t[6],A=e}let j=A,M=j!==n&&j.isPartial===!1?y:void 0,N=(0,g.useRef)(null),P=i(),F=ee(),I;t[7]!==j||t[8]!==x?(I=e=>te({displayStyle:x,fileDiff:j,range:e}),t[7]=j,t[8]=x,t[9]=I):I=t[9];let L=I,R;t[10]===j?R=t[11]:(R=e=>{let{containerElement:t}=e;return f({containerElement:t,fileDiff:j})},t[10]=j,t[11]=R);let z=R,B=T!==void 0,V;t[12]!==z||t[13]!==L||t[14]!==T||t[15]!==B?(V={buildFallbackSelectionText:z,buildSelectionText:L,containerRef:N,enabled:B,onSelectionAddToChat:T},t[12]=z,t[13]=L,t[14]=T,t[15]=B,t[16]=V):V=t[16];let H=p(V),U=!C,W;t[17]===M?W=t[18]:(W=M===void 0?{}:{expansionLineCount:M},t[17]=M,t[18]=W);let G=T!==void 0,K=T!==void 0,q=T===void 0?`disabled`:`number`,J=T===void 0?void 0:H.onGutterUtilityClick,Y;t[19]!==P||t[20]!==H.onLineSelectionChange||t[21]!==H.onLineSelectionEnd||t[22]!==H.onLineSelectionStart||t[23]!==S||t[24]!==q||t[25]!==J||t[26]!==U||t[27]!==W||t[28]!==G||t[29]!==K||t[30]!==F||t[31]!==x?(Y={diffStyle:x,overflow:S,disableLineNumbers:U,disableFileHeader:!0,...W,themeType:F,theme:P,enableGutterUtility:G,enableLineSelection:K,lineHoverHighlight:q,onGutterUtilityClick:J,onLineSelectionChange:H.onLineSelectionChange,onLineSelectionEnd:H.onLineSelectionEnd,onLineSelectionStart:H.onLineSelectionStart},t[19]=P,t[20]=H.onLineSelectionChange,t[21]=H.onLineSelectionEnd,t[22]=H.onLineSelectionStart,t[23]=S,t[24]=q,t[25]=J,t[26]=U,t[27]=W,t[28]=G,t[29]=K,t[30]=F,t[31]=x,t[32]=Y):Y=t[32];let X=c(Y);if(!m()){let e;return t[33]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(o,{}),t[33]=e):e=t[33],e}let Z;t[34]===w?Z=t[35]:(Z=a(`overflow-x-auto`,w),t[34]=w,t[35]=Z);let Q;t[36]!==H.selectedRange||t[37]!==X||t[38]!==j?(Q=(0,_.jsx)(`div`,{className:`w-full max-w-full`,style:v,children:(0,_.jsx)(s,{children:(0,_.jsx)(l,{fileDiff:j,options:X,selectedLines:H.selectedRange})})}),t[36]=H.selectedRange,t[37]=X,t[38]=j,t[39]=Q):Q=t[39];let $;return t[40]!==H.menu||t[41]!==H.onPointerDownCapture||t[42]!==H.onPointerMoveCapture||t[43]!==H.onPointerUpCapture||t[44]!==Z||t[45]!==Q?($=(0,_.jsxs)(`div`,{ref:N,className:Z,onPointerDownCapture:H.onPointerDownCapture,onPointerMoveCapture:H.onPointerMoveCapture,onPointerUpCapture:H.onPointerUpCapture,children:[Q,H.menu]}),t[40]=H.menu,t[41]=H.onPointerDownCapture,t[42]=H.onPointerMoveCapture,t[43]=H.onPointerUpCapture,t[44]=Z,t[45]=Q,t[46]=$):$=t[46],$}export{b as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/BbDiff-DphdUFhF.js","assets/rolldown-runtime-BM3Ffeng.js","assets/index-DacqPN7W.js","assets/boot-vendor-BBLG7GwQ.js","assets/index-D2OEUGpi.css","assets/code-loading-skeletons-IO1KXbza.js","assets/PierreLineSelectionActions-CKcwMnwZ.js","assets/git-diff-patch-text-Cs-divFw.js","assets/dist-CXXcNKpg.js","assets/ccount-Ddbz1Ovh.js","assets/lib-B4H0r8OP.js","assets/space-separated-tokens-DGOpQRo8.js","assets/lib-D0BdwZRm.js","assets/zwitch-Pm92m0zx.js","assets/TimelineSelectionMenu-dDFIppSs.js","assets/pierre-strict-mode-recovery-BhJkQvXP.js","assets/pierre-worker-pool-gate-DzlPWuU3.js","assets/FileDiff-BLle8hNc.js"])))=>i.map(i=>d[i]);
2
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Ur as t,ni as n}from"./boot-vendor-BBLG7GwQ.js";import{np as r}from"./index-DacqPN7W.js";import{t as i}from"./code-loading-skeletons-IO1KXbza.js";var a=e(n(),1),o=r({id:`bb-diff`,load:()=>t(()=>import(`./BbDiff-DphdUFhF.js`).then(e=>e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])),loading:()=>(0,a.jsx)(i,{}),tier:`intent`});export{o as t};
@@ -0,0 +1,2 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Or as t,mi as n,ni as r}from"./boot-vendor-BBLG7GwQ.js";import{I as i,nh as a,oh as o,z as s}from"./index-DacqPN7W.js";import{n as c}from"./code-loading-skeletons-IO1KXbza.js";import{i as l,n as ee,t as te}from"./pierre-strict-mode-recovery-BhJkQvXP.js";import{a as u}from"./dist-CXXcNKpg.js";import{t as ne}from"./File-D-Dyu8Un.js";import{i as d}from"./git-diff-patch-text-Cs-divFw.js";import{t as re}from"./PierreLineSelectionActions-CKcwMnwZ.js";import{i as ie,n as ae}from"./pierre-worker-pool-gate-DzlPWuU3.js";import{n as oe}from"./source-code-budget-DkjqujJR.js";var se=t(),f=e(n(),1),p=e(r(),1),m=18,h=16,ce={"--diffs-font-size":`12px`,"--diffs-line-height":`${m}px`,"--diffs-gap-block":`${h}px`},le={hunkLineCount:50,lineHeight:m,diffHeaderHeight:0,spacing:h};function g(e){return[e,...d(e)]}function ue(e){for(let t of g(e)){let e=t.querySelectorAll(`[data-bb-source-code-target-line]`);for(let t of e)t.removeAttribute(`data-bb-source-code-target-line`),t.removeAttribute(`data-selected-line`)}}function de(e,t){let n=g(e);for(let e of n){let n=e.querySelectorAll(`[data-line="${t}"]`);for(let e of n)if(e instanceof HTMLElement&&e.dataset.lineIndex!==void 0)return e}for(let e of n){let n=e.querySelectorAll(`[data-line="${t}"]`);for(let e of n)if(e instanceof HTMLElement)return e}return null}function _(e){return e.querySelector(`[data-bb-source-code-viewport]`)}function fe(e,t){let n=_(e);if(n===null)return;let r=n.getBoundingClientRect(),i=r.height/2,a=v(e);if(a===null){let e=h+(t-1)*m;n.scrollTop=Math.max(0,e-i);return}let{firstLineNumber:o,firstTop:s,lastLineNumber:c,lastBottom:l}=a;if(t>c){let e=l-r.top+(t-c-1)*m;n.scrollTop+=Math.max(0,e-i)}else if(t<o){let e=r.top-s+(o-t)*m;n.scrollTop=Math.max(0,n.scrollTop-e-i)}}function v(e){let t=null;for(let n of g(e))for(let e of n.querySelectorAll(`[data-line][data-line-index]`)){let n=Number(e.dataset.line);if(!Number.isFinite(n))continue;let r=e.getBoundingClientRect();if(t===null){t={firstLineNumber:n,firstTop:r.top,lastLineNumber:n,lastBottom:r.bottom};continue}n<t.firstLineNumber&&(t.firstLineNumber=n,t.firstTop=r.top),n>t.lastLineNumber&&(t.lastLineNumber=n,t.lastBottom=r.bottom)}return t}function pe(e,t){let n=_(e);if(n===null)return;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),a=r.top+r.height/2,o=i.top+i.height/2;n.scrollTop+=a-o}function y(e,t){return e===t?String(e):`${e}-${t}`}function me({contents:e,path:t,range:n}){let r=Math.max(1,Math.min(n.start,n.end)),i=Math.max(r,Math.max(n.start,n.end)),a=e.split(/\r\n|\n|\r/).slice(r-1,i);if(a.length===0)return null;let o=a.join(`
2
+ `).trimEnd();return o.trim().length===0?null:`${t}:${y(r,i)}\n${o}`}function b(e){let t=(0,se.c)(74),{content:n,path:r,cacheKey:a,overflow:l,highlightedLines:u,className:d,scrollToHighlightedLines:m,onSelectionAddToChat:h}=e,g=m===void 0?!1:m,v=a??r,y;t[0]!==n||t[1]!==v||t[2]!==r?(y={name:r,contents:n,cacheKey:v},t[0]=n,t[1]=v,t[2]=r,t[3]=y):y=t[3];let b=y,x=s(),ye=i(),S=(0,f.useRef)(null),be=ie(),C=ae(),xe=(0,f.useRef)(null),[Se,Ce]=(0,f.useState)(null),[,w]=(0,f.useState)(0),T=v,E;t[4]===n?E=t[5]:(E=oe(n),t[4]=n,t[5]=E);let D=E,[we,Te]=(0,f.useState)(null),O;t[6]!==n||t[7]!==r?(O=e=>me({contents:n,path:r,range:e}),t[6]=n,t[7]=r,t[8]=O):O=t[8];let k=O,A=h!==void 0,j;t[9]!==k||t[10]!==h||t[11]!==A?(j={buildSelectionText:k,containerRef:S,enabled:A,onSelectionAddToChat:h},t[9]=k,t[10]=h,t[11]=A,t[12]=j):j=t[12];let M=re(j),N=h!==void 0,Ee=u!==null||h!==void 0,P=h===void 0?`disabled`:`number`,De=h===void 0?void 0:M.onGutterUtilityClick,F;t[13]!==ye||t[14]!==M.onLineSelectionChange||t[15]!==M.onLineSelectionEnd||t[16]!==M.onLineSelectionStart||t[17]!==l||t[18]!==x||t[19]!==De||t[20]!==N||t[21]!==Ee||t[22]!==P?(F={themeType:x,theme:ye,overflow:l,disableFileHeader:!0,enableGutterUtility:N,enableLineSelection:Ee,lineHoverHighlight:P,onGutterUtilityClick:De,onLineSelectionChange:M.onLineSelectionChange,onLineSelectionEnd:M.onLineSelectionEnd,onLineSelectionStart:M.onLineSelectionStart},t[13]=ye,t[14]=M.onLineSelectionChange,t[15]=M.onLineSelectionEnd,t[16]=M.onLineSelectionStart,t[17]=l,t[18]=x,t[19]=De,t[20]=N,t[21]=Ee,t[22]=P,t[23]=F):F=t[23];let Oe=te(F),ke;bb0:{if(M.selectedRange!==null){ke=M.selectedRange;break bb0}let e;t[24]===u?e=t[25]:(e=u===null?null:{start:u.start,end:u.end},t[24]=u,t[25]=e),ke=e}let I=ke,L=g?I?.start??null:null,R=D===null||we===T||L!==null&&L>D.renderedLineCount,Ae;bb1:{if(R||D===null){Ae=b;break bb1}let e=`${v}:head`,n;t[26]!==b||t[27]!==e||t[28]!==D.contents?(n={...b,cacheKey:e,contents:D.contents},t[26]=b,t[27]=e,t[28]=D.contents,t[29]=n):n=t[29],Ae=n}let z=Ae,B=R||D===null?v:`${v}:head`,je=(0,f.useRef)(null),V;t[30]===T?V=t[31]:(V=()=>{je.current=(S.current===null?null:_(S.current))?.scrollTop??null,Te(T)},t[30]=T,t[31]=V);let Me=V,H;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(H=()=>{let e=je.current;if(e===null)return;je.current=null;let t=S.current===null?null:_(S.current);if(t===null)return;t.scrollTop=e;let n=window.requestAnimationFrame(()=>{t.scrollTop=e});return()=>window.cancelAnimationFrame(n)},t[32]=H):H=t[32];let U;t[33]===B?U=t[34]:(U=[B],t[33]=B,t[34]=U),(0,f.useLayoutEffect)(H,U);let W;t[35]!==w||t[36]!==C?(W=()=>{if(!C){Ce(null);return}return xe.current=null,C.subscribeToStatChanges(e=>{Ce(e);let t=[e.managerState,e.workersFailed,e.busyWorkers,e.queuedTasks,e.activeTasks,e.fileCacheSize].join(`:`);xe.current!==t&&(xe.current=t,w(he))})},t[35]=w,t[36]=C,t[37]=W):W=t[37];let G;t[38]!==b.contents||t[39]!==b.name||t[40]!==C?(G=[b.contents,b.name,C],t[38]=b.contents,t[39]=b.name,t[40]=C,t[41]=G):G=t[41],(0,f.useEffect)(W,G);let K=C!==void 0&&Se?.managerState!==`initialized`&&Se?.workersFailed!==!0,Ne=C?.getFileResultCache(z)===void 0?`plain`:`highlighted`,q;t[42]===L?q=t[43]:(q=()=>{let e=S.current,t=null,n=0,r=function(){t=window.requestAnimationFrame(i)};function i(){let e=S.current;if(!e||(ue(e),L===null))return;let t=de(e,L);if(t){t.setAttribute(`data-bb-source-code-target-line`,``),t.setAttribute(`data-selected-line`,`single`),pe(e,t);return}fe(e,L),n+=1,n<ge&&r()}return i(),()=>{e&&ue(e),t!==null&&window.cancelAnimationFrame(t)}},t[42]=L,t[43]=q);let J;if(t[44]!==z.contents||t[45]!==z.name||t[46]!==K||t[47]!==L||t[48]!==Ne?(J=[z.contents,z.name,K,L,Ne],t[44]=z.contents,t[45]=z.name,t[46]=K,t[47]=L,t[48]=Ne,t[49]=J):J=t[49],(0,f.useEffect)(q,J),K||!be){let e;return t[50]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(c,{}),t[50]=e):e=t[50],e}let Y;t[51]===d?Y=t[52]:(Y=o(`flex min-h-0 flex-1 flex-col`,d),t[51]=d,t[52]=Y);let Pe=L??void 0,Fe=Se?.workersFailed===!0,X;t[53]!==Oe||t[54]!==z||t[55]!==B||t[56]!==I||t[57]!==Fe?(X=(0,p.jsx)(ne,{disableWorkerPool:Fe,file:z,metrics:le,options:Oe,selectedLines:I},B),t[53]=Oe,t[54]=z,t[55]=B,t[56]=I,t[57]=Fe,t[58]=X):X=t[58];let Z;t[59]!==Me||t[60]!==R||t[61]!==D?(Z=D!==null&&!R?(0,p.jsx)(ve,{truncation:D,onLoadFullFile:Me}):null,t[59]=Me,t[60]=R,t[61]=D,t[62]=Z):Z=t[62];let Q;t[63]!==X||t[64]!==Z?(Q=(0,p.jsx)(ee,{children:(0,p.jsxs)(_e,{children:[X,Z]})}),t[63]=X,t[64]=Z,t[65]=Q):Q=t[65];let $;return t[66]!==M.menu||t[67]!==M.onPointerDownCapture||t[68]!==M.onPointerMoveCapture||t[69]!==M.onPointerUpCapture||t[70]!==Y||t[71]!==Pe||t[72]!==Q?($=(0,p.jsxs)(`div`,{ref:S,className:Y,style:ce,"data-bb-source-code-line-number":Pe,onPointerDownCapture:M.onPointerDownCapture,onPointerMoveCapture:M.onPointerMoveCapture,onPointerUpCapture:M.onPointerUpCapture,children:[Q,M.menu]}),t[66]=M.menu,t[67]=M.onPointerDownCapture,t[68]=M.onPointerMoveCapture,t[69]=M.onPointerUpCapture,t[70]=Y,t[71]=Pe,t[72]=Q,t[73]=$):$=t[73],$}function he(e){return e+1}var ge=40;function _e(e){let t=(0,se.c)(10),{children:n}=e,[r]=(0,f.useState)(x),i;t[0]===r?i=t[1]:(i=e=>{e===null?r?.cleanUp():r?.setup(e)},t[0]=r,t[1]=i);let a=i,o;t[2]===n?o=t[3]:(o=(0,p.jsx)(`div`,{children:n}),t[2]=n,t[3]=o);let s;t[4]!==o||t[5]!==a?(s=(0,p.jsx)(`div`,{ref:a,className:`min-h-0 flex-1 overflow-y-auto`,"data-bb-source-code-viewport":!0,children:o}),t[4]=o,t[5]=a,t[6]=s):s=t[6];let c;return t[7]!==s||t[8]!==r?(c=(0,p.jsx)(l.Provider,{value:r,children:s}),t[7]=s,t[8]=r,t[9]=c):c=t[9],c}function x(){return typeof window>`u`?void 0:new u}function ve(e){let t=(0,se.c)(12),{truncation:n,onLoadFullFile:r}=e,i;t[0]===n.renderedLineCount?i=t[1]:(i=n.renderedLineCount.toLocaleString(),t[0]=n.renderedLineCount,t[1]=i);let o;t[2]===n.totalLineCount?o=t[3]:(o=n.totalLineCount.toLocaleString(),t[2]=n.totalLineCount,t[3]=o);let s;t[4]!==i||t[5]!==o?(s=(0,p.jsxs)(`span`,{children:[`Showing the first `,i,` of`,` `,o,` lines.`]}),t[4]=i,t[5]=o,t[6]=s):s=t[6];let c;t[7]===r?c=t[8]:(c=(0,p.jsx)(a,{type:`button`,variant:`link`,size:`sm`,className:`h-auto p-0 text-xs underline underline-offset-4 hover:underline`,onClick:r,children:`Load full file`}),t[7]=r,t[8]=c);let l;return t[9]!==s||t[10]!==c?(l=(0,p.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 px-4 py-3 text-xs text-muted-foreground`,children:[s,c]}),t[9]=s,t[10]=c,t[11]=l):l=t[11],l}export{b as default};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Cr as t,Et as n,Or as r,St as i,bt as a,dr as o,mi as s,ni as c,t as l,vr as u,yr as d}from"./boot-vendor-BBLG7GwQ.js";import{$ as f,$a as p,Cp as m,Lf as h,Nf as g,Pf as _,Pu as v,Qm as y,Sa as b,Sn as x,Ta as S,Tr as C,W_ as w,Xf as T,Za as E,df as D,dr as O,fr as k,ft as A,lm as j,lr as ee,md as te,nh as M,oh as N,oo as P,pm as F,qf as I,uc as L,uf as R,vi as z,xo as B}from"./index-DacqPN7W.js";import{n as V,r as H,t as U}from"./browser-url-BZwRHtdQ.js";import{r as ne}from"./panelChromeClasses-DF5L8TjO.js";import{a as W,i as G,n as K,r as re}from"./launcherRow-DKoO_khe.js";var q=e(s(),1),J=r(),ie=`bb.thread.browserHistory`,ae=`1`,oe=24,Y=o(d({url:t().min(1),title:t().min(1).nullable(),visitedAt:u().int().nonnegative()}).strict()),se=[],ce=v({parse:(e,t)=>{if(e===null)return t;try{let n=Y.safeParse(JSON.parse(e));return n.success?n.data:t}catch{return t}},serialize:e=>JSON.stringify(e)});function le(e){return`${ie}-${encodeURIComponent(e.trim())}-${ae}`}var ue=n(se),de=l(e=>a(le(e),se,ce,{getOnInit:!0}));function fe(e){return e!=null&&e.trim().length>0}function pe(e){let t=(0,J.c)(10),n;t[0]===e?n=t[1]:(n=fe(e)?de(e):ue,t[0]=e,t[1]=n);let[r,a]=i(n),o;t[2]===a?o=t[3]:(o=e=>{let{url:t,title:n}=e;t.length!==0&&a(e=>[{url:t,title:n,visitedAt:Date.now()},...e.filter(e=>e.url!==t)].slice(0,oe))},t[2]=a,t[3]=o);let s=o,c;t[4]===a?c=t[5]:(c=()=>{a(se)},t[4]=a,t[5]=c);let l=c,u;return t[6]!==l||t[7]!==r||t[8]!==s?(u={entries:r,recordVisit:s,clear:l},t[6]=l,t[7]=r,t[8]=s,t[9]=u):u=t[9],u}var X=e(c(),1);function me(e){return e===null?null:`${e.activeMatchOrdinal}/${e.matches}`}function Z(e){let t=(0,J.c)(9),{icon:n,label:r,disabled:i,onClick:a,shortcut:o}=e,s=o?`${r} (${o.label})`:r,c=o?.ariaKeyshortcuts,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=N(`flex shrink-0 items-center justify-center transition-colors hover:bg-state-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-40`,h,f),t[0]=l):l=t[0];let u;t[1]===n?u=t[2]:(u=(0,X.jsx)(y,{name:n,"aria-hidden":!0}),t[1]=n,t[2]=u);let d;return t[3]!==s||t[4]!==i||t[5]!==a||t[6]!==c||t[7]!==u?(d=(0,X.jsx)(`button`,{type:`button`,onClick:a,disabled:i,"aria-label":s,"aria-keyshortcuts":c,className:l,children:u}),t[3]=s,t[4]=i,t[5]=a,t[6]=c,t[7]=u,t[8]=d):d=t[8],d}function he(e){let t=(0,J.c)(36),{inputRef:n,query:r,matches:i,onQueryChange:a,onFindNext:o,onFindPrevious:s,onClose:c,shortcut:l}=e,u;t[0]===i?u=t[1]:(u=me(i),t[0]=i,t[1]=u);let d=u,f=i!==null&&i.matches>0,p=i!==null&&i.matches===0,m;t[2]!==c||t[3]!==o||t[4]!==s?(m=e=>{if(!e.nativeEvent.isComposing){if(e.key===`Enter`){e.preventDefault(),e.shiftKey?s():o();return}e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),c())}},t[2]=c,t[3]=o,t[4]=s,t[5]=m):m=t[5];let h=m,g;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(g=N(`flex h-9 shrink-0 items-center gap-1 border-b border-border/70 py-1 pl-2 pr-2`,ne),t[6]=g):g=t[6];let _;t[7]===a?_=t[8]:(_=e=>a(e.target.value),t[7]=a,t[8]=_);let v=l?`Find in page (${l.label})`:`Find in page`,y=l?.ariaKeyshortcuts,b;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(b=N(`min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted-foreground`,I),t[9]=b):b=t[9];let x;t[10]!==h||t[11]!==n||t[12]!==r||t[13]!==_||t[14]!==v||t[15]!==y?(x=(0,X.jsx)(`input`,{ref:n,type:`text`,value:r,onChange:_,onKeyDown:h,placeholder:`Find in page`,"aria-label":v,"aria-keyshortcuts":y,autoComplete:`off`,spellCheck:!1,maxLength:j,className:b}),t[10]=h,t[11]=n,t[12]=r,t[13]=_,t[14]=v,t[15]=y,t[16]=x):x=t[16];let S;t[17]!==d||t[18]!==p?(S=d===null?null:(0,X.jsx)(`span`,{"data-testid":`browser-find-match-count`,"aria-live":`polite`,className:N(`shrink-0 tabular-nums`,p?`text-destructive`:`text-muted-foreground`,I),children:d}),t[17]=d,t[18]=p,t[19]=S):S=t[19];let C;t[20]!==x||t[21]!==S?(C=(0,X.jsxs)(`div`,{className:`flex h-7 min-w-0 flex-1 items-center gap-2 rounded-md border border-border/70 bg-background/70 px-2`,children:[x,S]}),t[20]=x,t[21]=S,t[22]=C):C=t[22];let w=!f,T;t[23]!==s||t[24]!==w?(T=(0,X.jsx)(Z,{icon:`ChevronUp`,label:`Previous match`,disabled:w,onClick:s}),t[23]=s,t[24]=w,t[25]=T):T=t[25];let E=!f,D;t[26]!==o||t[27]!==E?(D=(0,X.jsx)(Z,{icon:`ChevronDown`,label:`Next match`,disabled:E,onClick:o}),t[26]=o,t[27]=E,t[28]=D):D=t[28];let O;t[29]===c?O=t[30]:(O=(0,X.jsx)(Z,{icon:`X`,label:`Close find bar`,onClick:c}),t[29]=c,t[30]=O);let k;return t[31]!==C||t[32]!==T||t[33]!==D||t[34]!==O?(k=(0,X.jsxs)(`div`,{"data-testid":`browser-find-bar`,role:`search`,"aria-label":`Find in page`,className:g,children:[C,T,D,O]}),t[31]=C,t[32]=T,t[33]=D,t[34]=O,t[35]=k):k=t[35],k}function ge(e){let t=(0,J.c)(17),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({onFocus:r,onBlur:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=(0,q.useRef)(null),o=(0,q.useRef)(!1),s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=()=>{o.current=!0,a.current=null},t=()=>{o.current=!1};return window.addEventListener(`blur`,e),window.addEventListener(`keydown`,t,!0),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`keydown`,t,!0)}},c=[],t[4]=s,t[5]=c):(s=t[4],c=t[5]),(0,q.useEffect)(s,c);let l,u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=e=>{a.current=e.button===0&&(o.current||document.activeElement!==e.currentTarget)?{x:e.clientX,y:e.clientY}:null,o.current=!1},u=e=>{let t=a.current;t!==null&&Math.hypot(e.clientX-t.x,e.clientY-t.y)>4&&(a.current=null)},d=e=>{a.current!==null&&(a.current=null,e.preventDefault(),e.currentTarget.select())},t[6]=l,t[7]=u,t[8]=d):(l=t[6],u=t[7],d=t[8]);let f;t[9]===r?f=t[10]:(f=e=>{a.current===null&&!o.current&&e.currentTarget.select(),r?.(e)},t[9]=r,t[10]=f);let p;t[11]===n?p=t[12]:(p=e=>{a.current=null,n?.(e)},t[11]=n,t[12]=p);let m;return t[13]!==i||t[14]!==f||t[15]!==p?(m=(0,X.jsx)(`input`,{type:`text`,placeholder:`Enter a URL`,autoComplete:`off`,spellCheck:!1,...i,onMouseDown:l,onMouseMove:u,onMouseUp:d,onFocus:f,onBlur:p}),t[13]=i,t[14]=f,t[15]=p,t[16]=m):m=t[16],m}function _e(e){let t=(0,J.c)(27),{entry:n,now:r,onNavigate:i}=e,a;t[0]===n.url?a=t[1]:(a=U(n.url),t[0]=n.url,t[1]=a);let o=a,s;t[2]===n.title?s=t[3]:(s=n.title?.trim(),t[2]=n.title,t[3]=s);let c=s,l=c&&c.length>0?c:o,u;t[4]!==n.visitedAt||t[5]!==r?(u=b({timestamp:n.visitedAt,now:r}),t[4]=n.visitedAt,t[5]=r,t[6]=u):u=t[6];let d=u,f;t[7]!==n.url||t[8]!==i?(f=()=>i(n.url),t[7]=n.url,t[8]=i,t[9]=f):f=t[9];let p=n.url,m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=N(K,`hover:bg-state-hover`),t[10]=m):m=t[10];let h;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,X.jsx)(`span`,{className:re,children:(0,X.jsx)(y,{name:`Browser`,className:g,"aria-hidden":!0})}),t[11]=h):h=t[11];let _;t[12]===l?_=t[13]:(_=(0,X.jsx)(`span`,{className:`truncate text-foreground`,children:l}),t[12]=l,t[13]=_);let v;t[14]!==o||t[15]!==l?(v=l===o?null:(0,X.jsx)(`span`,{className:`truncate font-mono text-muted-foreground [flex-shrink:9999]`,children:o}),t[14]=o,t[15]=l,t[16]=v):v=t[16];let x;t[17]!==_||t[18]!==v?(x=(0,X.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center gap-1.5`,children:[_,v]}),t[17]=_,t[18]=v,t[19]=x):x=t[19];let S;t[20]===d?S=t[21]:(S=(0,X.jsx)(G,{idle:d,isActive:!1}),t[20]=d,t[21]=S);let C;return t[22]!==n.url||t[23]!==x||t[24]!==S||t[25]!==f?(C=(0,X.jsxs)(`button`,{type:`button`,onClick:f,title:p,className:m,children:[h,x,S]}),t[22]=n.url,t[23]=x,t[24]=S,t[25]=f,t[26]=C):C=t[26],C}function ve(e){let t=(0,J.c)(17),{onNavigateInput:n,recent:r,onClearRecent:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=Date.now(),t[0]=a):a=t[0];let o=a;if(r.length===0)return null;let s=r.length,c;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=N(`rounded text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,I),t[1]=c):c=t[1];let l;t[2]===i?l=t[3]:(l=(0,X.jsx)(`button`,{type:`button`,onClick:i,"aria-label":`Clear recently visited`,className:c,children:`Clear`}),t[2]=i,t[3]=l);let u;t[4]!==r.length||t[5]!==l?(u=(0,X.jsx)(W,{label:`Recently visited`,count:s,action:l}),t[4]=r.length,t[5]=l,t[6]=u):u=t[6];let d;if(t[7]!==n||t[8]!==r){let e;t[10]===n?e=t[11]:(e=e=>(0,X.jsx)(`li`,{children:(0,X.jsx)(_e,{entry:e,now:o,onNavigate:n})},e.url),t[10]=n,t[11]=e),d=r.map(e),t[7]=n,t[8]=r,t[9]=d}else d=t[9];let f;t[12]===d?f=t[13]:(f=(0,X.jsx)(`ul`,{"aria-label":`Recently visited`,className:`flex flex-col gap-px`,children:d}),t[12]=d,t[13]=f);let p;return t[14]!==u||t[15]!==f?(p=(0,X.jsx)(`div`,{className:`flex h-full flex-col overflow-y-auto px-4 pb-6 pt-8`,children:(0,X.jsx)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col gap-6`,children:(0,X.jsxs)(`section`,{children:[u,f]})})}),t[14]=u,t[15]=f,t[16]=p):p=t[16],p}function ye({desktopBrowser:e,pluginId:t,tabId:n}){let r=e?.evaluate,i=e?.onPageMessage;return r===void 0||i===void 0?null:{async evaluate(e,i){let a=await r({tabId:n,expression:e,world:i?.world??`isolated`,channel:t});if(!a.ok)throw Error(a.error);return a.value},onMessage(e){return i(r=>{r.tabId===n&&r.channel===t&&e(r.data)})}}}function be(e){let t=(0,J.c)(18),{slot:n,threadId:r,tabId:i,url:a,isCompactViewport:o}=e,s;t[0]!==n.pluginId||t[1]!==i?(s=ye({desktopBrowser:D(),pluginId:n.pluginId,tabId:i}),t[0]=n.pluginId,t[1]=i,t[2]=s):s=t[2];let c=s,l=n.component,u=`${r}/${i}`,d;t[3]!==l||t[4]!==o||t[5]!==c||t[6]!==i||t[7]!==r||t[8]!==a?(d=(0,X.jsx)(l,{threadId:r,tabId:i,url:a,isCompactViewport:o,experimental_page:c}),t[3]=l,t[4]=o,t[5]=c,t[6]=i,t[7]=r,t[8]=a,t[9]=d):d=t[9];let f;t[10]!==n.title||t[11]!==d?(f=(0,X.jsx)(`span`,{role:`group`,"aria-label":n.title,className:`flex shrink-0 items-center`,children:d}),t[10]=n.title,t[11]=d,t[12]=f):f=t[12];let p;return t[13]!==n.id||t[14]!==n.pluginId||t[15]!==u||t[16]!==f?(p=(0,X.jsx)(C,{pluginId:n.pluginId,slotKind:`browserToolbarAction`,slotId:n.id,instanceId:u,crashFallback:null,children:f}),t[13]=n.id,t[14]=n.pluginId,t[15]=u,t[16]=f,t[17]=p):p=t[17],p}function xe(e){let t=(0,J.c)(11),{threadId:n,tabId:r,url:i,isCompactViewport:a}=e,{browserToolbarActions:o}=m();if(o.length===0)return null;let s;if(t[0]!==o||t[1]!==a||t[2]!==r||t[3]!==n||t[4]!==i){let e;t[6]!==a||t[7]!==r||t[8]!==n||t[9]!==i?(e=e=>(0,X.jsx)(be,{slot:e,threadId:n,tabId:r,url:i,isCompactViewport:a},`${e.pluginId}/${e.id}/${e.generation}/${n}/${r}`),t[6]=a,t[7]=r,t[8]=n,t[9]=i,t[10]=e):e=t[10],s=o.map(e),t[0]=o,t[1]=a,t[2]=r,t[3]=n,t[4]=i,t[5]=s}else s=t[5];return s}var Se={x:0,y:0,width:0,height:0};function Ce(e){return{x:Math.round(e.left),y:Math.round(e.top),width:Math.round(e.width),height:Math.round(e.height)}}function we(){return{width:window.innerWidth,height:window.innerHeight}}function Te(e){return F({bounds:Ce(e.element.getBoundingClientRect()),viewport:we()})}function Ee(e){return e===`flex-grow`||e===`flex-basis`}function De(e){return e.a.x===e.b.x&&e.a.y===e.b.y&&e.a.width===e.b.width&&e.a.height===e.b.height}function Oe(e){return z(e.url)?`Server not reachable`:e.errorText.includes(`ERR_BLOCKED_BY_CLIENT`)?`Page blocked`:`Page unavailable`}function ke(e){let t=(0,J.c)(48),{addressDraft:n,isEditing:r,state:i,currentUrl:a,addressInputRef:o,onAddressChange:s,onAddressFocus:c,onAddressBlur:l,onAddressKeyDown:u,onSubmit:d,onBack:f,onForward:p,onReloadOrStop:m,onOpenExternal:h,locationShortcut:g,reloadShortcut:v,pluginActions:b}=e,x=i?.isLoading??!1,S;t[0]===a?S=t[1]:(S=V(a),t[0]=a,t[1]=S);let C=S,w=r?n:a,T,E;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(T=N(`relative h-11 shrink-0 overflow-hidden focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring max-md:pointer-coarse:h-[52px]`,ne),E=N(`absolute inset-x-0 top-0 flex h-11 translate-y-0 items-center gap-1 py-1.5 pl-2 pr-4 opacity-100 max-md:pointer-coarse:h-[52px]`),t[2]=T,t[3]=E):(T=t[2],E=t[3]);let D=!(i?.canGoBack??!1),O;t[4]!==f||t[5]!==D?(O=(0,X.jsx)(Z,{icon:`ChevronLeft`,label:`Go back`,disabled:D,onClick:f}),t[4]=f,t[5]=D,t[6]=O):O=t[6];let k=!(i?.canGoForward??!1),A;t[7]!==p||t[8]!==k?(A=(0,X.jsx)(Z,{icon:`ChevronRight`,label:`Go forward`,disabled:k,onClick:p}),t[7]=p,t[8]=k,t[9]=A):A=t[9];let j=x?`X`:`RotateCcw`,ee=x?`Stop loading`:`Reload`,te=x?null:v,M;t[10]!==m||t[11]!==te||t[12]!==j||t[13]!==ee?(M=(0,X.jsx)(Z,{icon:j,label:ee,shortcut:te,onClick:m}),t[10]=m,t[11]=te,t[12]=j,t[13]=ee,t[14]=M):M=t[14];let P;t[15]===C?P=t[16]:(P=C===`secure`?(0,X.jsx)(y,{name:`Lock`,className:N(_,`text-success`),"aria-label":`Secure connection`}):C===`insecure`?(0,X.jsx)(y,{name:`AlertTriangle`,className:N(_,`text-warning`),"aria-label":`Connection not secure`}):(0,X.jsx)(y,{name:`Search`,className:N(_,`text-muted-foreground`),"aria-hidden":!0}),t[15]=C,t[16]=P);let F;t[17]===s?F=t[18]:(F=e=>s(e.target.value),t[17]=s,t[18]=F);let L=g?`Address and search bar (${g.label})`:`Address and search bar`,R=g?.ariaKeyshortcuts,z;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(z=N(`min-w-0 flex-1 bg-transparent font-mono text-foreground outline-none placeholder:font-sans placeholder:text-muted-foreground`,I),t[19]=z):z=t[19];let B;t[20]!==o||t[21]!==w||t[22]!==l||t[23]!==c||t[24]!==u||t[25]!==F||t[26]!==L||t[27]!==R?(B=(0,X.jsx)(ge,{ref:o,value:w,onChange:F,onFocus:c,onBlur:l,onKeyDown:u,"aria-label":L,"aria-keyshortcuts":R,className:z}),t[20]=o,t[21]=w,t[22]=l,t[23]=c,t[24]=u,t[25]=F,t[26]=L,t[27]=R,t[28]=B):B=t[28];let H;t[29]!==P||t[30]!==B?(H=(0,X.jsxs)(`div`,{className:`flex h-8 items-center gap-2 rounded-full border border-border/70 bg-background/70 px-3 max-md:pointer-coarse:h-10`,children:[P,B]}),t[29]=P,t[30]=B,t[31]=H):H=t[31];let U;t[32]!==d||t[33]!==H?(U=(0,X.jsx)(`form`,{onSubmit:d,className:`min-w-0 flex-1`,children:H}),t[32]=d,t[33]=H,t[34]=U):U=t[34];let W=a.length===0,G;t[35]!==h||t[36]!==W?(G=(0,X.jsx)(Z,{icon:`ExternalLink`,label:`Open in external browser`,disabled:W,onClick:h}),t[35]=h,t[36]=W,t[37]=G):G=t[37];let K;t[38]===x?K=t[39]:(K=x?(0,X.jsx)(`span`,{className:`absolute inset-x-0 bottom-0 h-0.5 overflow-hidden`,children:(0,X.jsx)(`span`,{className:`block h-full w-1/3 animate-pulse bg-ring/70 motion-reduce:animate-none`})}):null,t[38]=x,t[39]=K);let re;return t[40]!==b||t[41]!==M||t[42]!==U||t[43]!==G||t[44]!==K||t[45]!==O||t[46]!==A?(re=(0,X.jsx)(`div`,{role:`region`,"aria-label":`Browser navigation`,tabIndex:-1,className:T,children:(0,X.jsxs)(`div`,{className:E,children:[O,A,M,U,b,G,K]})}),t[40]=b,t[41]=M,t[42]=U,t[43]=G,t[44]=K,t[45]=O,t[46]=A,t[47]=re):re=t[47],re}function Ae(){let e=(0,J.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsxs)(`div`,{className:`flex h-full flex-col items-center justify-center gap-3 px-6 text-center`,children:[(0,X.jsx)(`span`,{className:`flex size-11 items-center justify-center rounded-lg border border-border bg-card text-muted-foreground`,children:(0,X.jsx)(y,{name:`Globe`,className:`size-6`,"aria-hidden":!0})}),(0,X.jsx)(`div`,{className:`text-sm font-medium text-foreground`,children:`Browser tabs need the desktop app`}),(0,X.jsx)(`p`,{className:N(`max-w-xs text-muted-foreground`,I),children:`The in-app web browser runs in the Moonlet desktop app. Open this thread there to browse the web.`})]}),e[0]=t):t=e[0],t}function je(e){let t=(0,J.c)(32),{errorText:n,onOpenExternal:r,onRetry:i,url:a}=e,o;t[0]===a?o=t[1]:(o=U(a),t[0]=a,t[1]=o);let s=o,c;t[2]!==n||t[3]!==a?(c=Oe({errorText:n,url:a}),t[2]=n,t[3]=a,t[4]=c):c=t[4];let l=c,u;t[5]!==s||t[6]!==a?(u=z(a)?`The browser could not reach ${s||`this local server`}. Start the server, then reload.`:`The browser could not load this page. Try reloading or opening it externally.`,t[5]=s,t[6]=a,t[7]=u):u=t[7];let d=u,f;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,X.jsx)(`span`,{className:`flex size-11 items-center justify-center rounded-lg border border-border bg-surface-recessed text-muted-foreground`,children:(0,X.jsx)(y,{name:`Globe`,className:`size-6`,"aria-hidden":!0})}),t[8]=f):f=t[8];let p;t[9]===l?p=t[10]:(p=(0,X.jsx)(`p`,{className:`text-sm font-medium text-foreground`,children:l}),t[9]=l,t[10]=p);let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=N(`mt-1 text-muted-foreground`,I),t[11]=m):m=t[11];let h;t[12]===d?h=t[13]:(h=(0,X.jsx)(`p`,{className:m,children:d}),t[12]=d,t[13]=h);let g;t[14]!==p||t[15]!==h?(g=(0,X.jsxs)(`div`,{children:[p,h]}),t[14]=p,t[15]=h,t[16]=g):g=t[16];let _;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,X.jsx)(y,{name:`RotateCcw`,className:`size-3.5`,"aria-hidden":!0}),t[17]=_):_=t[17];let v;t[18]===i?v=t[19]:(v=(0,X.jsxs)(`button`,{type:`button`,onClick:i,className:`inline-flex h-8 items-center gap-1.5 rounded-md border border-border bg-background px-2.5 text-xs font-medium text-foreground transition-colors hover:bg-state-hover`,children:[_,`Reload`]}),t[18]=i,t[19]=v);let b;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,X.jsx)(y,{name:`ExternalLink`,className:`size-3.5`,"aria-hidden":!0}),t[20]=b):b=t[20];let x;t[21]===r?x=t[22]:(x=(0,X.jsxs)(`button`,{type:`button`,onClick:r,className:`inline-flex h-8 items-center gap-1.5 rounded-md px-2.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground`,children:[b,`Open externally`]}),t[21]=r,t[22]=x);let S;t[23]!==v||t[24]!==x?(S=(0,X.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center gap-2 pt-1`,children:[v,x]}),t[23]=v,t[24]=x,t[25]=S):S=t[25];let C;t[26]===n?C=t[27]:(C=(0,X.jsx)(`p`,{className:`max-w-full truncate pt-1 font-mono text-[11px] text-subtle-foreground`,children:n}),t[26]=n,t[27]=C);let w;return t[28]!==S||t[29]!==C||t[30]!==g?(w=(0,X.jsx)(`div`,{className:`flex h-full flex-col items-center justify-center px-6 text-center`,children:(0,X.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col items-center gap-3`,children:[f,g,S,C]})}),t[28]=S,t[29]=C,t[30]=g,t[31]=w):w=t[31],w}function Me({tabId:e,desktopTarget:t,existingOnly:n,initialUrl:r,addressFocusRequest:i,onAddressFocusRequestConsumed:a,canShowNativeBrowserView:o,canHandleBrowserCommands:s=o,onNativeFocus:c,visibilityCoordinator:l,environmentId:u,threadId:d,onUpdate:f,onOpenInNewTab:m}){let h=p(`browser.focusLocation`),g=p(`browser.reload`),_=p(`browser.find`),v=(0,q.useMemo)(()=>D(),[]),y=(0,q.useRef)(null),b=(0,q.useRef)(null),S=(0,q.useRef)(null),C=L(),A=T(),{entries:ee,recordVisit:te,clear:M}=pe(d),[N,F]=(0,q.useState)(null),[I,z]=(0,q.useState)(null);(0,q.useEffect)(()=>{let t=!0,n=!1;z(null);let r=n=>{t&&n.tabId===e&&n.threadId===d&&z(n.control)},i=v?.onControl?.(t=>{t.tabId!==e||t.threadId!==d||(n=!0,r(t))});return v?.getControl?.(e).then(e=>{e!==null&&!n&&r(e)}).catch(()=>void 0),()=>{t=!1,i?.()}},[v,e,d]);let[V,U]=(0,q.useState)(r),[ne,W]=(0,q.useState)(r),[G,K]=(0,q.useState)(!1),[re,J]=(0,q.useState)(!1),[ie,ae]=(0,q.useState)(!1),oe=(0,q.useRef)(!1);oe.current=ie;let[Y,se]=(0,q.useState)(``),[ce,le]=(0,q.useState)(null),[ue,de]=(0,q.useState)(null),fe=(0,q.useRef)(f),me=(0,q.useRef)(te);fe.current=f,me.current=te;let Z=(0,q.useRef)(r),ge=(0,q.useRef)(n),_e=(0,q.useRef)(t),[ye,be]=(0,q.useState)(null),Ce=ye!==null&&ye.environmentId===u&&ye.tabId===e&&ye.threadId===d,we=V.length>0,Oe=v?.focus!==void 0&&v.onFocus!==void 0&&v.setVisibleWithoutFocus!==void 0,Me=N?.errorText??null,Ne=Me!==null&&we,Pe=B(),Fe=(0,q.useRef)(null),Ie=(0,q.useCallback)(()=>{let e=y.current;return e===null?null:Te({element:e})},[]),Le=(0,q.useCallback)(t=>{v!==null&&(Fe.current=t,v.setBounds({tabId:e,bounds:t}))},[v,e]),Re=(0,q.useCallback)(({force:e})=>{let t=Ie();if(t===null)return;let n=Fe.current;!e&&n!==null&&De({a:n,b:t})||Le(t)},[Ie,Le]),ze=(0,q.useCallback)(()=>{Re({force:!0})},[Re]),Q=(0,q.useCallback)(()=>{Re({force:!1})},[Re]),Be=(0,q.useCallback)(()=>{let e=Ie();return Fe.current=e,e??Se},[Ie]);(0,q.useEffect)(()=>{if(v===null)return;let t=Be(),n=Z.current;O({environmentId:u,tabId:e,threadId:d});let r=_e.current,i=ge.current===!0&&(r===void 0||!k(e,r));v.attach({tabId:e,threadId:d,...i?{existingOnly:!0}:{},url:n,bounds:t,visible:!1}),be({environmentId:u,tabId:e,threadId:d});let a=null,o=v.onState(t=>{t.tabId===e&&(a!==null&&(a.url!==t.url||t.isLoading&&!a.isLoading)&&le(null),a=t,F(t),U(t.url),fe.current({tabId:e,url:t.url,title:t.title}),!t.isLoading&&t.url.length>0&&me.current({url:t.url,title:t.title}))}),s=v.onSnapshot?.(t=>{t.tabId===e&&de(t.dataUrl)}),c=v.onFindResult?.(t=>{t.tabId===e&&le({activeMatchOrdinal:t.activeMatchOrdinal,matches:t.matches})});return()=>{o(),s?.(),c?.(),oe.current&&v.stopFindInPage?.({tabId:e,action:`clearSelection`}),l?.release(e)}},[v,u,Be,l,e,d]),(0,q.useEffect)(()=>{let e=y.current;if(e===null||v===null)return;let t=new ResizeObserver(()=>{Q()});return t.observe(e),()=>{t.disconnect()}},[v,Q]),(0,q.useEffect)(()=>{if(v===null)return;let e=e=>{Ee(e.propertyName)&&Q()};return window.addEventListener(x,Q),window.addEventListener(`resize`,Q),document.addEventListener(`transitionend`,e,!0),document.addEventListener(`transitioncancel`,e,!0),()=>{window.removeEventListener(x,Q),window.removeEventListener(`resize`,Q),document.removeEventListener(`transitionend`,e,!0),document.removeEventListener(`transitioncancel`,e,!0)}},[v,Q]);let Ve=o&&(s||Oe)&&we&&!Ne&&Ce&&!Pe;(0,q.useLayoutEffect)(()=>{if(l!==null){if(Ve)return l.show(e,ze,{focus:!1}),()=>{l.hide(e)};l.hide(e)}},[l,e,Ve,ze]),(0,q.useLayoutEffect)(()=>{if(re){if(!o||!s||Ne||Pe){J(!1);return}Ve&&(J(!1),v?.focus?.(e))}},[re,o,s,Ne,Pe,Ve,v,e]),(0,q.useEffect)(()=>{if(!(v?.onFocus===void 0||c===void 0))return v.onFocus(t=>{t===e&&c()})},[v,c,e]),(0,q.useEffect)(()=>{if(i===null||i.tabId!==e)return;if(C){a?.(i);return}W(V),K(!0),b.current?.focus({preventScroll:!0});let t=requestAnimationFrame(()=>{b.current?.focus({preventScroll:!0}),a?.(i)});return()=>cancelAnimationFrame(t)},[i,V,C,a,e]);let He=(0,q.useCallback)(t=>{let n=H(t);n!==null&&(U(n),K(!1),b.current?.blur(),v?.navigate({tabId:e,url:n}),J(!0))},[v,e]),Ue=(0,q.useCallback)(e=>{e.preventDefault(),He(ne)},[ne,He]),We=(0,q.useCallback)(e=>{if(e.nativeEvent.isComposing)return;if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),W(V);let t=e.currentTarget;window.requestAnimationFrame(()=>{document.activeElement===t&&t.select()});return}if(m===null||e.key!==`Enter`||e.shiftKey||e.ctrlKey||!(w(P())?e.metaKey&&!e.altKey:e.altKey&&!e.metaKey))return;e.preventDefault();let t=H(ne);t!==null&&(W(V),K(!1),b.current?.blur(),m(t))},[ne,V,m]),Ge=(0,q.useCallback)(()=>{W(V),K(!0)},[V]),Ke=(0,q.useCallback)(()=>{if(N?.isLoading??!1){v?.stop(e);return}v?.reload(e)},[v,N?.isLoading,e]);E(`browser.focusLocation`,(0,q.useCallback)(()=>!s||v===null?!1:(W(V),K(!0),b.current?.focus({preventScroll:!0}),window.requestAnimationFrame(()=>{b.current?.focus({preventScroll:!0}),b.current?.select()}),!0),[s,V,v]),100);let qe=o&&v!==null&&v.findInPage!==void 0&&we,$=(0,q.useCallback)(t=>{v?.findInPage?.({tabId:e,...t})},[v,e]),Je=(0,q.useCallback)(()=>{v?.stopFindInPage?.({tabId:e,action:`clearSelection`}),le(null)},[v,e]),Ye=(0,q.useCallback)(()=>{S.current?.focus({preventScroll:!0}),window.requestAnimationFrame(()=>{S.current?.focus({preventScroll:!0}),S.current?.select()})},[]),Xe=(0,q.useCallback)(e=>{let t=e.slice(0,j);if(se(t),t.length===0){Je();return}$({text:t,forward:!0,newSession:!0})},[Je,$]),Ze=(0,q.useCallback)(()=>{Y.length!==0&&$({text:Y,forward:!0,newSession:!1})},[Y,$]),Qe=(0,q.useCallback)(()=>{Y.length!==0&&$({text:Y,forward:!1,newSession:!1})},[Y,$]),$e=(0,q.useCallback)(()=>{ae(!1),Je()},[Je]);E(`browser.find`,(0,q.useCallback)(()=>qe?(ae(!0),Y.length>0&&$({text:Y,forward:!0,newSession:!0}),Ye(),!0):!1,[qe,Y,Ye,$]),100),(0,q.useEffect)(()=>{ie&&!qe&&(ae(!1),Je())},[qe,Je,ie]),E(`browser.reload`,()=>!s||v===null||!we?!1:(v.reload(e),!0),100);let et=(0,q.useCallback)(()=>{R()?.openExternalUrl(V)},[V]);return v===null?(0,X.jsx)(Ae,{}):(0,X.jsxs)(`div`,{"data-app-browser":!0,className:`flex h-full min-h-0 flex-col`,children:[(0,X.jsx)(ke,{addressDraft:ne,isEditing:G,state:N,currentUrl:V,addressInputRef:b,onAddressChange:W,onAddressFocus:Ge,onAddressBlur:()=>K(!1),onAddressKeyDown:We,onSubmit:Ue,onBack:()=>{v.goBack(e)},onForward:()=>{v.goForward(e)},onReloadOrStop:Ke,onOpenExternal:et,locationShortcut:h,reloadShortcut:g,pluginActions:(0,X.jsx)(xe,{threadId:d,tabId:e,url:V,isCompactViewport:A})}),I===null?null:(0,X.jsxs)(`div`,{role:`status`,className:`flex shrink-0 items-center gap-3 border-b border-border bg-surface-recessed px-3 py-2 text-xs`,children:[(0,X.jsxs)(`span`,{className:`min-w-0 flex-1 truncate`,children:[I.controllerLabel,` is controlling this tab`]}),(0,X.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1 hover:bg-state-hover`,onClick:()=>v.releaseControl?.(e),children:`Stop`}),(0,X.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1 hover:bg-state-hover`,onClick:()=>{v.releaseControl?.(e),v.focus?.(e)},children:`Take over`})]}),ie?(0,X.jsx)(he,{inputRef:S,query:Y,matches:ce,onQueryChange:Xe,onFindNext:Ze,onFindPrevious:Qe,onClose:$e,shortcut:_}):null,(0,X.jsxs)(`div`,{ref:y,className:`relative min-h-0 flex-1`,children:[Ne?(0,X.jsx)(je,{errorText:Me,onOpenExternal:et,onRetry:Ke,url:V}):we&&!Pe?null:(0,X.jsx)(ve,{onNavigateInput:He,recent:ee,onClearRecent:M}),we&&ue!==null?(0,X.jsx)(`img`,{src:ue,alt:``,draggable:!1,className:`absolute inset-0 size-full`}):null]})]})}function Ne(e,t){return t===null?null:e.find(e=>e.id===t)??null}var Pe=4,Fe=32,Ie=2e3;function Le(e){return Math.min(250*2**(e-1),Ie)}function Re(e,t){if(e===void 0)return`open`;if(t.status===`pending`)return`pending`;let n=t.target;return n===null||n.hostId!==e.hostId?`unavailable`:n.instanceId===e.instanceId?`attach`:`check-saved-window`}function ze(e){let t=(0,J.c)(40),{browserTabs:n,activeBrowserTabId:r,addressFocusRequest:i,onAddressFocusRequestConsumed:a,environmentId:o,canShowNativeBrowserView:s,canHandleBrowserCommands:c,onNativeFocus:l,threadId:u,onUpdate:d,onOpenInNewTab:f}=e,p=i===void 0?null:i,m=c===void 0?s:c,h;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=D(),t[0]=h):h=t[0];let g=h,_;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(_=g===null?null:ee(g),t[1]=_):_=t[1];let v=_,y=Ne(n,r),b=y?.desktopTarget,x=b?.hostId,S;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>g?.getTarget===void 0?{status:`ready`,target:null}:{status:`pending`},t[2]=S):S=t[2];let[C,w]=(0,q.useState)(S),[T,E]=(0,q.useState)(0),O=b===void 0?null:`${y?.id}:${T}:${b.hostId}:${b.instanceId}:${b.generation}`,[k,A]=(0,q.useState)(null),j;t[3]!==O||t[4]!==A?(j=()=>{let e=g?.getTarget?.bind(g);if(e===void 0)return;let t=!0,n=0,r,i=()=>{e().catch(Be).then(e=>{if(t){if(e!==null){w({status:`ready`,target:e});return}if(n+=1,n>=Pe&&w({status:`ready`,target:null}),n>=Fe){A(O);return}r=setTimeout(i,Le(n))}})};return i(),()=>{t=!1,clearTimeout(r)}},t[3]=O,t[4]=A,t[5]=j):j=t[5],(0,q.useEffect)(j,[g,x,b?.instanceId,b?.generation,O]);let M=Re(b,C),N=M===`check-saved-window`?O:null,[P,F]=(0,q.useState)(null),I=b?.instanceId,L;t[6]!==O||t[7]!==I||t[8]!==N||t[9]!==A||t[10]!==x?(L=()=>{if(N===null||x===void 0||I===void 0)return;let e=!0,t=0,n,r=()=>{te.experimental_desktopBrowsers.listInstances({hostId:x}).then(t=>{let{instances:n}=t;e&&F({key:N,status:n.some(e=>e.instanceId===I)?`live`:`gone`})},()=>{if(e){if(t+=1,t>=Pe&&F({key:N,status:`unknown`}),t>=Fe){A(O);return}n=setTimeout(r,Le(t))}})};return r(),()=>{e=!1,clearTimeout(n)}},t[6]=O,t[7]=I,t[8]=N,t[9]=A,t[10]=x,t[11]=L):L=t[11];let R;if(t[12]!==O||t[13]!==I||t[14]!==N||t[15]!==x?(R=[N,x,I,O],t[12]=O,t[13]=I,t[14]=N,t[15]=x,t[16]=R):R=t[16],(0,q.useEffect)(L,R),y===null)return null;let z=P?.key===N?P.status:null,B=O!==null&&k===O;if(M===`pending`||M===`check-saved-window`&&z===null){let e;return t[17]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,X.jsx)(`div`,{className:`flex min-h-0 flex-1 bg-sidebar`}),t[17]=e):e=t[17],e}if(M===`unavailable`||M===`check-saved-window`&&z!==`gone`){let e;t[18]!==B||t[19]!==z||t[20]!==E?(e=B||z===`live`?()=>E(Q):null,t[18]=B,t[19]=z,t[20]=E,t[21]=e):e=t[21];let n=g===null?`desktop-required`:z===`live`?`other-window`:C.status===`ready`&&C.target!==null&&C.target.hostId!==b?.hostId?`other-computer`:B?`unreachable`:`reconnecting`,r;return t[22]!==y.url||t[23]!==n||t[24]!==e?(r=(0,X.jsx)(He,{url:y.url,onRetry:e,reason:n}),t[22]=y.url,t[23]=n,t[24]=e,t[25]=r):r=t[25],r}let V=M===`attach`?!0:void 0,H=p?.tabId===y.id?p:null,U;return t[26]!==y.id||t[27]!==y.url||t[28]!==m||t[29]!==s||t[30]!==o||t[31]!==a||t[32]!==l||t[33]!==f||t[34]!==d||t[35]!==H||t[36]!==V||t[37]!==b||t[38]!==u?(U=(0,X.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col bg-sidebar`,children:(0,X.jsx)(Me,{tabId:y.id,desktopTarget:b,existingOnly:V,initialUrl:y.url,addressFocusRequest:H,onAddressFocusRequestConsumed:a,canShowNativeBrowserView:s,canHandleBrowserCommands:m,onNativeFocus:l,visibilityCoordinator:v,environmentId:o,threadId:u,onUpdate:d,onOpenInNewTab:f},y.id)}),t[26]=y.id,t[27]=y.url,t[28]=m,t[29]=s,t[30]=o,t[31]=a,t[32]=l,t[33]=f,t[34]=d,t[35]=H,t[36]=V,t[37]=b,t[38]=u,t[39]=U):U=t[39],U}function Q(e){return e+1}function Be(){return null}var Ve={"desktop-required":{title:`Browser tabs need the desktop app`,body:`This tab is open in the Moonlet desktop app.`},"other-window":{title:`This tab is open in another Moonlet window`,body:`Switch to that window to keep browsing.`},"other-computer":{title:`This tab is open on another computer`,body:`It was opened in Moonlet on a different computer.`},reconnecting:{title:`Reconnecting to this tab`,body:`The tab opens again as soon as Moonlet reconnects.`},unreachable:{title:`Can't reach this tab`,body:`Moonlet couldn't reconnect. Try again in a moment.`}};function He(e){let t=(0,J.c)(24),{url:n,reason:r,onRetry:i}=e,a=Ve[r],o;t[0]===n?o=t[1]:(o=URL.canParse(n)?new URL(n):null,t[0]=n,t[1]=o);let s=o,c=s?.protocol===`https:`||s?.protocol===`http:`,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,X.jsx)(`span`,{className:`flex size-11 items-center justify-center rounded-lg border border-border bg-card text-muted-foreground`,children:(0,X.jsx)(y,{name:`Globe`,className:`size-6`,"aria-hidden":!0})}),t[2]=l):l=t[2];let u;t[3]===a.title?u=t[4]:(u=(0,X.jsx)(`div`,{className:`text-sm font-medium text-foreground`,children:a.title}),t[3]=a.title,t[4]=u);let d;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(d=N(`max-w-xs text-muted-foreground`,I),t[5]=d):d=t[5];let f;t[6]===a.body?f=t[7]:(f=(0,X.jsx)(`p`,{className:d,children:a.body}),t[6]=a.body,t[7]=f);let p;t[8]===n?p=t[9]:(p=n.length>0?(0,X.jsx)(`p`,{className:N(`max-w-full truncate font-mono text-muted-foreground select-text`,I),title:n,children:n}):null,t[8]=n,t[9]=p);let m;t[10]===i?m=t[11]:(m=i===null?null:(0,X.jsxs)(M,{type:`button`,variant:`outline`,size:`sm`,onClick:i,children:[(0,X.jsx)(y,{name:`RotateCcw`,"aria-hidden":!0}),`Try again`]}),t[10]=i,t[11]=m);let h;t[12]!==c||t[13]!==i||t[14]!==n?(h=n.length>0?(0,X.jsxs)(X.Fragment,{children:[c?(0,X.jsxs)(M,{type:`button`,variant:i===null?`outline`:`ghost`,size:`sm`,onClick:()=>A(n),children:[(0,X.jsx)(y,{name:`ExternalLink`,"aria-hidden":!0}),`Open in browser`]}):null,(0,X.jsxs)(M,{type:`button`,variant:`ghost`,size:`sm`,onClick:()=>{S(n,{successMessage:`Link copied`})},children:[(0,X.jsx)(y,{name:`Copy`,"aria-hidden":!0}),`Copy link`]})]}):null,t[12]=c,t[13]=i,t[14]=n,t[15]=h):h=t[15];let g;t[16]!==m||t[17]!==h?(g=(0,X.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center gap-2`,children:[m,h]}),t[16]=m,t[17]=h,t[18]=g):g=t[18];let _;return t[19]!==u||t[20]!==f||t[21]!==p||t[22]!==g?(_=(0,X.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col items-center justify-center gap-3 bg-sidebar px-6 text-center`,children:[l,u,f,p,g]}),t[19]=u,t[20]=f,t[21]=p,t[22]=g,t[23]=_):_=t[23],_}export{ze as BrowserTabDeck};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Or as t,mi as n,ni as r,zr as i}from"./boot-vendor-BBLG7GwQ.js";import{Cp as a,Ha as o,Ja as s,Jp as c,Kp as l,Xf as u,oh as d}from"./index-DacqPN7W.js";import{i as f,n as p,r as m,t as h}from"./PaletteShell-BmMN3w8R.js";import{n as g}from"./settings-sections-DBK3hwuR.js";import{r as _,t as v}from"./settings-nav-aUt1tDMl.js";var y=e(n(),1),b=t();function x(){let e=typeof window>`u`?void 0:window.bbDesktop;return e?.getServerChoices&&e.onServerChoicesChange&&e.selectServer?{list:e.getServerChoices.bind(e),subscribe:e.onServerChoicesChange.bind(e),select:e.selectServer.bind(e)}:null}function ee(){let e=(0,b.c)(7),[t]=(0,y.useState)(x),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[],e[0]=n):n=e[0];let[r,i]=(0,y.useState)(n),a,o;e[1]===t?(a=e[2],o=e[3]):(a=()=>{if(t===null)return;let e=!1,n=!1,r=t.subscribe(t=>{n=!0,e||i(t)});return t.list().then(t=>{!e&&!n&&i(t)}).catch(S),()=>{e=!0,r()}},o=[t],e[1]=t,e[2]=a,e[3]=o),(0,y.useEffect)(a,o);let s=t?.select,c;return e[4]!==r||e[5]!==s?(c={choices:r,select:s},e[4]=r,e[5]=s,e[6]=c):c=e[6],c}function S(){}var te=[`Threads`,`Actions`,`Settings`,`Plugins`];function ne(e){return[...e.sections.map(t=>({id:`settings:${t.id}`,bucket:`Settings`,group:`Settings`,title:`${t.label} settings`,shortcut:null,run:()=>e.navigate(g(t.id))})),...e.pluginEntries.map(t=>({id:`settings:plugin:${t.id}`,bucket:`Settings`,group:`Plugin settings`,title:`${t.label} settings`,shortcut:null,run:()=>e.navigate(l({pluginId:t.id}))}))]}function re(e){return e.panels.map(t=>({id:`plugin-page:${t.pluginId}/${t.id}`,bucket:`Plugins`,group:`Plugin pages`,title:t.title,shortcut:null,run:()=>e.navigate(c({pluginId:t.pluginId,path:t.path}))}))}var C=e(r(),1),ie=s(`thread.search`);function ae(e){let t=(0,b.c)(60),{actions:n,installedPlugins:r,recents:s,query:c,onQueryChange:l,onChoose:d}=e,m=i(),g=u(),x=(0,y.useId)(),S=(0,y.useId)(),[ae,w]=(0,y.useState)(0),T=a(),de=v(T.fileOpeners),E;t[0]!==r||t[1]!==T.settingsSections?(E=_({installedPlugins:r,settingsSections:T.settingsSections}),t[0]=r,t[1]=T.settingsSections,t[2]=E):E=t[2];let fe=E,D;t[3]===m?D=t[4]:(D=e=>void m(e),t[3]=m,t[4]=D);let O;t[5]!==fe||t[6]!==de||t[7]!==D?(O=ne({navigate:D,pluginEntries:fe,sections:de}),t[5]=fe,t[6]=de,t[7]=D,t[8]=O):O=t[8];let pe=O,k;t[9]===m?k=t[10]:(k=e=>void m(e),t[9]=m,t[10]=k);let A;t[11]!==T.navPanels||t[12]!==k?(A=re({navigate:k,panels:T.navPanels}),t[11]=T.navPanels,t[12]=k,t[13]=A):A=t[13];let me=A,{choices:he,select:j}=ee(),M;t[14]!==he||t[15]!==j?(M=j===void 0?[]:he.filter(le).map(e=>({id:`server:${e.id}`,title:`Switch to ${e.name}`,bucket:`Actions`,group:`Servers`,shortcut:null,run:()=>j(e.id)})),t[14]=he,t[15]=j,t[16]=M):M=t[16];let N=M,P;t[17]!==n||t[18]!==me||t[19]!==N||t[20]!==pe?(P=[...n,...pe,...me,...N],t[17]=n,t[18]=me,t[19]=N,t[20]=pe,t[21]=P):P=t[21];let ge=P,F;t[22]===c?F=t[23]:(F=c.startsWith(`>`)?c.slice(1):c,t[22]=c,t[23]=F);let I=F,L;t[24]!==ge||t[25]!==I||t[26]!==s?(L=f({actions:ge,query:I,recentIds:s}),t[24]=ge,t[25]=I,t[26]=s,t[27]=L):L=t[27];let R=L,z;t[28]===I?z=t[29]:(z=I.trim(),t[28]=I,t[29]=z);let B=z===``,V;if(t[30]!==R){let e=te.map(e=>({bucket:e,entries:R.filter(t=>t.action.bucket===e)})).filter(ce);V=e.map((t,n)=>({...t,startIndex:e.slice(0,n).reduce(se,0)})),t[30]=R,t[31]=V}else V=t[31];let H=V,U;t[32]!==B||t[33]!==R||t[34]!==H?(U=B?H.flatMap(oe):R,t[32]=B,t[33]=R,t[34]=H,t[35]=U):U=t[35];let W=U,G=W.length===0?-1:Math.min(ae,W.length-1),K=(0,y.useRef)(null),q=(0,y.useRef)(!1),J;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(J=()=>{q.current&&(q.current=!1,K.current?.querySelector(`[aria-selected="true"]`)?.scrollIntoView({block:`nearest`}))},t[36]=J):J=t[36];let Y;t[37]===G?Y=t[38]:(Y=[G],t[37]=G,t[38]=Y),(0,y.useEffect)(J,Y);let X;t[39]!==G||t[40]!==d||t[41]!==W?(X=e=>{if(!e.nativeEvent.isComposing&&W.length!==0){if(e.key===`ArrowDown`){e.preventDefault(),q.current=!0,w(e=>e+1>=W.length?0:e+1);return}if(e.key===`ArrowUp`){e.preventDefault(),q.current=!0,w(e=>e<=0?W.length-1:e-1);return}if(e.key===`Home`){e.preventDefault(),q.current=!0,w(0);return}if(e.key===`End`){e.preventDefault(),q.current=!0,w(W.length-1);return}if(e.key===`Enter`){let t=W[G];if(t===void 0)return;e.preventDefault(),d(t.action)}}},t[39]=G,t[40]=d,t[41]=W,t[42]=X):X=t[42];let _e=X,ve=G===-1?void 0:`${S}-${G}`,Z;t[43]===l?Z=t[44]:(Z=e=>{l(e),w(0),K.current!==null&&(K.current.scrollTop=0)},t[43]=l,t[44]=Z);let Q;t[45]!==G||t[46]!==g||t[47]!==B||t[48]!==d||t[49]!==S||t[50]!==H||t[51]!==W?(Q=!B&&W.length===0?(0,C.jsx)(`p`,{className:`px-3 py-4 text-center text-sm text-muted-foreground`,children:`No matching commands`}):B?H.map(e=>{let t=`${S}-${e.bucket.toLowerCase()}-label`;return(0,C.jsxs)(`div`,{role:`group`,"aria-labelledby":t,"data-palette-bucket":e.bucket,children:[(0,C.jsx)(`div`,{id:t,className:h,children:e.bucket}),e.entries.map((t,n)=>{let r=e.startIndex+n;return(0,C.jsx)(ue,{entry:t,id:`${S}-${r}`,isActive:r===G,isDrillIn:t.action.id===ie,showShortcut:!g,onActivate:()=>{w(r)},onSelect:()=>d(t.action)},t.action.id)})]},e.bucket)}):W.map((e,t)=>(0,C.jsx)(ue,{entry:e,id:`${S}-${t}`,isActive:t===G,isDrillIn:e.action.id===ie,showShortcut:!g,onActivate:()=>{w(t)},onSelect:()=>d(e.action)},e.action.id)),t[45]=G,t[46]=g,t[47]=B,t[48]=d,t[49]=S,t[50]=H,t[51]=W,t[52]=Q):Q=t[52];let $;return t[53]!==_e||t[54]!==x||t[55]!==c||t[56]!==ve||t[57]!==Z||t[58]!==Q?($=(0,C.jsx)(p,{activeDescendantId:ve,inputDescription:o.description,inputLabel:o.label,listId:x,listLabel:`Commands`,listRef:K,onInputChange:Z,onInputKeyDown:_e,placeholder:o.placeholder,value:c,children:Q}),t[53]=_e,t[54]=x,t[55]=c,t[56]=ve,t[57]=Z,t[58]=Q,t[59]=$):$=t[59],$}function oe(e){return e.entries}function se(e,t){return e+t.entries.length}function ce(e){return e.entries.length>0}function le(e){return!e.active}function ue(e){let t=(0,b.c)(19),{entry:n,id:r,isActive:i,isDrillIn:a,showShortcut:o,onActivate:s,onSelect:c}=e,l=n.action.group===`Browser`||n.action.id.startsWith(`plugin:`)?n.action.group:null,u=a?`${n.action.title}…`:n.action.title,f=o?n.action.shortcut:null,p=l!==null||f!==null||a,h=a?`drill-in`:`terminal`,g=i&&`bg-state-hover text-foreground`,_;t[0]===g?_=t[1]:(_=d(`flex min-h-8 w-full min-w-0 cursor-pointer items-center gap-3 rounded-md px-2 py-1.5 text-left text-sm outline-none`,g),t[0]=g,t[1]=_);let v;t[2]!==n.positions||t[3]!==u?(v=(0,C.jsx)(`span`,{className:`min-w-0 truncate`,children:(0,C.jsx)(w,{title:u,positions:n.positions})}),t[2]=n.positions,t[3]=u,t[4]=v):v=t[4];let y;t[5]!==p||t[6]!==a||t[7]!==l||t[8]!==f?(y=p?(0,C.jsxs)(`span`,{className:`ml-auto flex shrink-0 items-center gap-2`,children:[l===null?null:(0,C.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:l}),f===null?null:(0,C.jsx)(m,{children:f.label}),a?(0,C.jsx)(`span`,{className:`sr-only`,children:`Opens a search view`}):null]}):null,t[5]=p,t[6]=a,t[7]=l,t[8]=f,t[9]=y):y=t[9];let x;return t[10]!==r||t[11]!==i||t[12]!==s||t[13]!==c||t[14]!==h||t[15]!==_||t[16]!==v||t[17]!==y?(x=(0,C.jsxs)(`div`,{id:r,role:`option`,"aria-selected":i,"data-palette-action-kind":h,className:_,onPointerMove:s,onClick:c,children:[v,y]}),t[10]=r,t[11]=i,t[12]=s,t[13]=c,t[14]=h,t[15]=_,t[16]=v,t[17]=y,t[18]=x):x=t[18],x}function w(e){let t=(0,b.c)(9),{title:n,positions:r}=e;if(r.length===0){let e;return t[0]===n?e=t[1]:(e=(0,C.jsx)(C.Fragment,{children:n}),t[0]=n,t[1]=e),e}let i;t[2]===r?i=t[3]:(i=new Set(r),t[2]=r,t[3]=i);let a=i,o;t[4]===n?o=t[5]:(o=[...n],t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==o?(s=(0,C.jsx)(C.Fragment,{children:o.map((e,t)=>a.has(t)?(0,C.jsx)(`span`,{className:`font-semibold text-foreground`,children:e},t):(0,C.jsx)(`span`,{children:e},t))}),t[6]=a,t[7]=o,t[8]=s):s=t[8],s}export{ae as CommandPaletteBody};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Or as t,ni as n}from"./boot-vendor-BBLG7GwQ.js";import{X as r}from"./index-DacqPN7W.js";import{r as i}from"./git-diff-patch-text-Cs-divFw.js";import{t as a}from"./BbDiffSplit-DoZzLlkG.js";import{a as o,n as s,t as c}from"./code-rendering-B0ibReMv.js";var l=t(),u=e(n(),1),d=`diffRenderer`;function f(e){let t=(0,l.c)(25),{file:n,patchText:f,fullFileContents:p,view:m,overflow:h,showLineNumbers:g,className:_,onSelectionAddToChat:v}=e,y=m===void 0?s:m,b=h===void 0?c:h,x=g===void 0?!0:g,S=o(),C=S.kind===`plugin`,w;t[0]!==n||t[1]!==C||t[2]!==f?(w=C?f??i(n):``,t[0]=n,t[1]=C,t[2]=f,t[3]=w):w=t[3];let T=w,E;t[4]!==_||t[5]!==n||t[6]!==p||t[7]!==v||t[8]!==b||t[9]!==f||t[10]!==x||t[11]!==y?(E=(0,u.jsx)(a,{file:n,patchText:f,fullFileContents:p,view:y,overflow:b,showLineNumbers:x,className:_,onSelectionAddToChat:v}),t[4]=_,t[5]=n,t[6]=p,t[7]=v,t[8]=b,t[9]=f,t[10]=x,t[11]=y,t[12]=E):E=t[12];let D=E,O;t[13]!==_||t[14]!==n.name||t[15]!==p||t[16]!==b||t[17]!==T||t[18]!==x||t[19]!==y?(O=(e,t)=>(0,u.jsx)(`div`,{className:_,children:(0,u.jsx)(e.component,{patch:T,path:n.name,view:y,overflow:b,showLineNumbers:x,experimental_fullFileContents:p,Original:t})}),t[13]=_,t[14]=n.name,t[15]=p,t[16]=b,t[17]=T,t[18]=x,t[19]=y,t[20]=O):O=t[20];let k;return t[21]!==D||t[22]!==S||t[23]!==O?(k=(0,u.jsx)(r,{replacement:S,original:D,slotKind:d,children:O}),t[21]=D,t[22]=S,t[23]=O,t[24]=k):k=t[24],k}export{f as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Or as t,ni as n}from"./boot-vendor-BBLG7GwQ.js";import{Ai as r,Cp as i,Mi as a,Ni as o,Rn as s,Ta as c,Wn as l,ji as u,ki as d,zn as f}from"./index-DacqPN7W.js";import{t as p}from"./useLocalOpenTargets-BHW47emg.js";import{t as m}from"./useResolvedLiveFileTarget-Djned7dt.js";var h=t(),g=e(n(),1);function _(e){let t=f(e),n=t.lastIndexOf(`.`);return n>0&&n<t.length-1?t.slice(n+1).toLowerCase():null}function v(e){let t=(0,h.c)(40),{intent:n}=e,v=l(),y;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(y={enabled:!0},t[0]=y):y=t[0];let b=m(n.target,y),x=b.status===`available`,S;t[1]!==b.openContext||t[2]!==b.status?(S=b.status===`available`?{openContext:b.openContext}:{},t[1]=b.openContext,t[2]=b.status,t[3]=S):S=t[3];let C;t[4]!==x||t[5]!==S?(C={enabled:x,...S},t[4]=x,t[5]=S,t[6]=C):C=t[6];let w=p(C),{fileOpeners:T}=i(),E,D,O,k;if(t[7]!==T||t[8]!==n||t[9]!==w||t[10]!==v||t[11]!==b.absolutePath||t[12]!==b.status){let e=_(n.target.path),r=e===null?[]:T.filter(t=>t.extensions.includes(e)),i=s(n.location);t[17]!==n||t[18]!==v?(E=(0,g.jsx)(d,{onSelect:()=>v.openFilePreview(n),children:`Open preview`}),t[17]=n,t[18]=v,t[19]=E):E=t[19],D=r.length>0?(0,g.jsxs)(u,{children:[(0,g.jsx)(o,{children:`Open with`}),(0,g.jsxs)(a,{className:`min-w-52`,children:[(0,g.jsx)(d,{onSelect:()=>v.openFilePreview({...n,viewer:`builtin`}),children:`Moonlet preview`}),r.map(e=>(0,g.jsx)(d,{onSelect:()=>v.openFilePreview({...n,viewer:{pluginId:e.pluginId,openerId:e.id}}),children:e.title},`${e.pluginId}:${e.id}`))]})]}):null;let c=b.status!==`available`||w.isLoading||!w.canOpenPreferredFileTarget,l;t[20]!==n||t[21]!==v?(l=()=>v.openFileExternally(n),t[20]=n,t[21]=v,t[22]=l):l=t[22],t[23]!==l||t[24]!==c?(O=(0,g.jsx)(d,{disabled:c,onSelect:l,children:`Open externally`}),t[23]=l,t[24]=c,t[25]=O):O=t[25],k=b.status===`available`&&w.fileOpenTargets.length>0?(0,g.jsxs)(u,{children:[(0,g.jsx)(o,{children:`Open in`}),(0,g.jsx)(a,{className:`min-w-52`,children:w.fileOpenTargets.map(e=>(0,g.jsx)(d,{onSelect:()=>{w.openPathInFileTarget({columnNumber:i.columnNumber,lineNumber:i.lineNumber,path:b.absolutePath,rememberTarget:!1,targetId:e.id})},children:e.label},e.id))})]}):null,t[7]=T,t[8]=n,t[9]=w,t[10]=v,t[11]=b.absolutePath,t[12]=b.status,t[13]=E,t[14]=D,t[15]=O,t[16]=k}else E=t[13],D=t[14],O=t[15],k=t[16];let A;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,g.jsx)(r,{}),t[26]=A):A=t[26];let j;t[27]!==n.target.path||t[28]!==b.absolutePath||t[29]!==b.status?(j=(0,g.jsx)(d,{onSelect:()=>{c(b.status===`available`?b.absolutePath:n.target.path,{successMessage:`File path copied`,errorMessage:`Failed to copy file path`})},children:`Copy file path`}),t[27]=n.target.path,t[28]=b.absolutePath,t[29]=b.status,t[30]=j):j=t[30];let M;t[31]===n.target.path?M=t[32]:(M=(0,g.jsx)(d,{onSelect:()=>{c(f(n.target.path),{successMessage:`File name copied`,errorMessage:`Failed to copy file name`})},children:`Copy file name`}),t[31]=n.target.path,t[32]=M);let N;return t[33]!==j||t[34]!==M||t[35]!==E||t[36]!==D||t[37]!==O||t[38]!==k?(N=(0,g.jsxs)(g.Fragment,{children:[E,D,O,k,A,j,M]}),t[33]=j,t[34]=M,t[35]=E,t[36]=D,t[37]=O,t[38]=k,t[39]=N):N=t[39],N}export{v as ExperimentalFileLinkMenu};
@@ -0,0 +1,3 @@
1
+ import{o as e,r as t}from"./rolldown-runtime-BM3Ffeng.js";import{Or as n,mi as r,ni as i}from"./boot-vendor-BBLG7GwQ.js";import{$a as a,$i as o,Cf as s,Ji as c,Ki as l,On as u,Pf as d,Qi as f,Qm as p,Sf as m,Ta as h,Tf as g,Xf as _,Xi as v,Yi as y,Yt as b,ea as x,ft as S,ia as C,nh as w,oh as T,qf as E,uc as D,wf as O}from"./index-DacqPN7W.js";import{n as k}from"./code-loading-skeletons-IO1KXbza.js";import{a as A,i as j,o as M,r as N,t as P}from"./TimelineSelectionMenu-dDFIppSs.js";import{t as F}from"./esm-21iH_lfG.js";import{a as I,n as ee,r as te,t as ne}from"./useElementWidth-C1ACj7NT.js";import{n as L}from"./save-file-Bf9FfsXN.js";import{t as re}from"./AppCommandShortcutHint-XqWnnhwm.js";import{n as R,r as z}from"./image-lightbox-DcW9NMfz.js";import{h as ie,m as ae,t as B}from"./markdown-preview-BDgTvGB7.js";import{n as V}from"./SourceCodeHost-BTHk84dk.js";import{t as oe}from"./open-in-editor-button-DRMlCZor.js";var H=n(),U=e(r(),1),W=(0,U.createContext)(null),G=e(i(),1);function K(e,t){return t===null||!(e.target instanceof Node)?!1:t.contains(e.target)}function q(e,t){let{commonAncestorContainer:n}=e;return!!(t.contains(n)||typeof e.intersectsNode==`function`&&(()=>{try{return e.intersectsNode(t)}catch{return!1}})())}function J(e,t){let n=e.cloneRange();return t.contains(e.startContainer)||n.setStart(t,0),t.contains(e.endContainer)||n.setEnd(t,t.childNodes.length),M(n,t).text}function Y({anchor:e,markdown:t,node:n,pointerStartedInNode:r}){if(n===null||typeof window>`u`)return null;let i=window.getSelection();if(i===null||i.rangeCount===0||i.isCollapsed)return null;let a=i.toString().trim();if(a.length===0)return null;let o=i.getRangeAt(0);if(!r&&!q(o,n))return null;let s=e??null,c=j(o)??(s===null?n.getBoundingClientRect():new DOMRect(s.point.x,s.point.y,0,0)),l={text:t?J(o,n):a,rect:c};return s!==null&&(l.anchorPoint=s.point,l.anchorSide=s.side),l}function X(e){let t=(0,H.c)(22),{children:n,markdown:r,onSelectionAddToChat:i}=e,a=r===void 0?!1:r,o=(0,U.useRef)(null),s=(0,U.useRef)(!1),c=(0,U.useRef)(null),l=(0,U.useRef)(!1),u=(0,U.useRef)(null),d=D(),[f,p]=(0,U.useState)(null),m=!d,h;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>{p(null)},t[0]=h):h=t[0];let g=h,_;t[1]===a?_=t[2]:(_=e=>{p(Y({anchor:e,markdown:a,node:o.current,pointerStartedInNode:s.current}))},t[1]=a,t[2]=_);let v=_,y,b;t[3]!==m||t[4]!==v?(y=()=>{if(!m||typeof window>`u`)return;let e=null,t=()=>{e!==null&&(window.cancelAnimationFrame(e),e=null)},n=n=>{let r=n===void 0?null:n;t(),e=window.requestAnimationFrame(()=>{e=null,v(r)})},r=e=>{t(),s.current=K(e,o.current),c.current=s.current?N(e):null,l.current=!0},i=e=>{let t=s.current&&c.current!==null?A(c.current,e):null;t!==null&&(u.current=t),l.current=!1,c.current=null,n(t??u.current)},a=()=>{l.current=!1,c.current=null,n(u.current)},d=()=>{l.current||n(u.current)};return document.addEventListener(`pointerdown`,r),document.addEventListener(`pointerup`,i),document.addEventListener(`pointercancel`,a),document.addEventListener(`mouseup`,i),document.addEventListener(`selectionchange`,d),document.addEventListener(`keyup`,d),()=>{t(),document.removeEventListener(`pointerdown`,r),document.removeEventListener(`pointerup`,i),document.removeEventListener(`pointercancel`,a),document.removeEventListener(`mouseup`,i),document.removeEventListener(`selectionchange`,d),document.removeEventListener(`keyup`,d)}},b=[m,v],t[3]=m,t[4]=v,t[5]=y,t[6]=b):(y=t[5],b=t[6]),(0,U.useEffect)(y,b);let x,S;t[7]===a?(x=t[8],S=t[9]):(x=()=>{if(!a)return;let e=e=>{let t=o.current,n=window.getSelection();if(e.defaultPrevented||e.clipboardData===null||t===null||n===null||n.isCollapsed||n.rangeCount!==1)return;let r=n.getRangeAt(0);if(!t.contains(r.startContainer)||!t.contains(r.endContainer))return;let i=M(r,t);i.text&&(e.clipboardData.setData(`text/plain`,i.text),e.clipboardData.setData(`text/html`,i.html),e.preventDefault())};return document.addEventListener(`copy`,e),()=>document.removeEventListener(`copy`,e)},S=[a],t[7]=a,t[8]=x,t[9]=S),(0,U.useEffect)(x,S);let C;t[10]===i?C=t[11]:(C=e=>{i?.(e),p(null)},t[10]=i,t[11]=C);let w=C,T;t[12]===n?T=t[13]:(T=(0,G.jsx)(`div`,{ref:o,className:`contents`,children:n}),t[12]=n,t[13]=T);let E;t[14]!==w||t[15]!==m||t[16]!==i||t[17]!==f?(E=m?(0,G.jsx)(P,{selection:f,onAddToChat:i===void 0?void 0:w,onDismiss:g}):null,t[14]=w,t[15]=m,t[16]=i,t[17]=f,t[18]=E):E=t[18];let O;return t[19]!==E||t[20]!==T?(O=(0,G.jsxs)(G.Fragment,{children:[T,E]}),t[19]=E,t[20]=T,t[21]=O):O=t[21],O}var Z=new Set([`avif`,`bmp`,`gif`,`ico`,`jpeg`,`jpg`,`png`,`webp`]),Q=(0,U.createContext)(null);function se(e){if(e.tab.kind!==`workspace-file-preview`&&e.tab.kind!==`host-file-preview`&&e.tab.kind!==`thread-storage-file-preview`&&e.tab.kind!==`attachment-file-preview`)return!1;let t=e.tab.path.split(`.`).pop()?.toLowerCase();return t!==void 0&&Z.has(t)}function ce(e){let t=(0,H.c)(33),{activeTabId:n,children:r,tabs:i}=e,[a,o]=(0,U.useState)(null),[s,c]=(0,U.useState)(!1),[l,u]=(0,U.useState)(le),d;t[0]===i?d=t[1]:(d=i.filter(se),t[0]=i,t[1]=d);let f=d,p;t[2]!==f||t[3]!==l?(p=e=>{let t=f[e];t!==void 0&&(o(l.get(t.tab.id)??null),t.onSelect())},t[2]=f,t[3]=l,t[4]=p):p=t[4];let m=p,h;t[5]!==n||t[6]!==f||t[7]!==m?(h=e=>{let t=f.findIndex(e=>e.tab.id===n);t===-1||f.length<=1||m(z({currentIndex:t,direction:e,itemCount:f.length}))},t[5]=n,t[6]=f,t[7]=m,t[8]=h):h=t[8];let g=h,_;t[9]===n?_=t[10]:(_=e=>{o(e),n!==null&&u(t=>t.get(n)?.src===e.src?t:new Map(t).set(n,e))},t[9]=n,t[10]=_);let v=_,y;t[11]===v?y=t[12]:(y=e=>{v(e),c(!0)},t[11]=v,t[12]=y);let b;t[13]!==s||t[14]!==y||t[15]!==v?(b={isOpen:s,open:y,update:v},t[13]=s,t[14]=y,t[15]=v,t[16]=b):b=t[16];let x=b,S=a?.alt??`Image preview`,C=s?a?.src??null:null,w=a?.alt??`Image preview`,T=f.length>1,E,D;t[17]===g?(E=t[18],D=t[19]):(E=()=>g(`previous`),D=()=>g(`next`),t[17]=g,t[18]=E,t[19]=D);let O;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(O=()=>c(!1),t[20]=O):O=t[20];let k;t[21]!==s||t[22]!==T||t[23]!==E||t[24]!==D||t[25]!==S||t[26]!==C||t[27]!==w?(k=(0,G.jsx)(R,{imageAlt:S,imageSrc:C,isOpen:s,title:w,hasMultipleImages:T,onPrevious:E,onNext:D,onClose:O}),t[21]=s,t[22]=T,t[23]=E,t[24]=D,t[25]=S,t[26]=C,t[27]=w,t[28]=k):k=t[28];let A;return t[29]!==r||t[30]!==k||t[31]!==x?(A=(0,G.jsxs)(Q.Provider,{value:x,children:[r,k]}),t[29]=r,t[30]=k,t[31]=x,t[32]=A):A=t[32],A}function le(){return new Map}function ue(){return(0,U.useContext)(Q)}var de=t({FilePreview:()=>je,buildCsvPreviewData:()=>ke,getCsvTruncationNote:()=>Ae}),fe=100,pe=500,me=29,he=8,ge={width:`100%`,height:`100%`,border:0},_e=160,$=`h-5 w-5 rounded-sm p-0 [&_[data-icon-root]]:size-3 max-md:pointer-coarse:h-9 max-md:pointer-coarse:w-9 max-md:pointer-coarse:[&_[data-icon-root]]:size-5`,ve=`h-5 rounded-sm px-2 text-muted-foreground max-md:pointer-coarse:h-9`;function ye(e){return e.kind===`html`?e.iframe.url:null}function be(e){return typeof window>`u`?e:new URL(e,window.location.href).toString()}function xe(e){return e.kind===`html`?`html`:e.kind===`ready`?e.textPreviewKind:null}function Se(e){switch(e){case`csv`:return`CSV view mode`;case`html`:return`HTML view mode`;case`markdown`:return`Markdown view mode`}}function Ce(e){return e===`csv`?`Copy CSV`:e===`markdown`?`Copy markdown`:e===`html`?`Copy HTML source`:`Copy file contents`}function we(e){return e.kind===`html`||e.kind===`ready`?e.lineRange:null}function Te(e){return e.kind===`html`||e.kind===`ready`?e.file.contents:null}function Ee({lineRange:e,toggleKind:t}){return t===`csv`||t===`html`||t===`markdown`||e===null?`preview`:`source`}function De(e,t){return e.kind===`html`?t===`source`:e.kind===`ready`?e.textPreviewKind===null||t===`source`:!1}function Oe(e,t){let n=[],r=[],i=``,a=!1,o=!1,s=!1;for(let c=0;c<e.length;c+=1){let l=e[c];if(s=!1,a){l===`"`?e[c+1]===`"`?(i+=`"`,c+=1):a=!1:i+=l;continue}if(l===`"`&&i.length===0){a=!0,o=!0;continue}if(l===`,`){r.push(i),i=``,o=!1;continue}if(l===`
2
+ `||l===`\r`){if(r.push(i),n.push(r),r=[],i=``,o=!1,s=!0,l===`\r`&&e[c+1]===`
3
+ `&&(c+=1),n.length>=t)return{rows:n,truncatedRows:c+1<e.length};continue}i+=l}return(i.length>0||r.length>0||o||!s)&&(r.push(i),n.push(r)),{rows:n,truncatedRows:!1}}function ke(e){let{rows:t,truncatedRows:n}=Oe(e,pe+1),r=t.reduce((e,t)=>Math.max(e,t.length),0);return{columnCount:Math.min(r,fe),rows:t,truncatedColumns:r>fe,truncatedRows:n}}function Ae(e,t){let n=[];return e.truncatedRows&&n.push(`${t.toLocaleString()} rows`),e.truncatedColumns&&n.push(`${e.columnCount.toLocaleString()} columns`),n.length===0?null:`Showing the first ${n.join(` and `)}.`}function je(e){let t=(0,H.c)(61),{download:n,state:r,path:i,copyPath:a,headerMode:o,onSelectionAddToChat:s,onOpenInEditor:c,onRefresh:l,isRefreshing:u,markdownLinkRouting:d,statusLabel:f}=e,p=n===void 0?null:n,m=a===void 0?null:a,h=o===void 0?`file`:o,g=u===void 0?!1:u,_=f===void 0?null:f,v=r.kind===`html`?r.iframe:null,y;t[0]!==v?.url||t[1]!==r.file||t[2]!==r.kind?(y=JSON.stringify([r.kind,v?.url,r.kind===`html`?r.file.cacheKey:null]),t[0]=v?.url,t[1]=r.file,t[2]=r.kind,t[3]=y):y=t[3];let b=y,x;t[4]===b?x=t[5]:(x={key:b,status:`loading`},t[4]=b,t[5]=x);let[S,C]=(0,U.useState)(x);S.key!==b&&C({key:b,status:`loading`});let w=S.key===b?S.status:`loading`,E;t[6]!==b||t[7]!==w||t[8]!==v?(E=v===null?null:(0,G.jsx)(Ve,{...v,loadState:w,onLoadStateChange:e=>C(t=>t.key===b?{key:b,status:e}:t)},b),t[6]=b,t[7]=w,t[8]=v,t[9]=E):E=t[9];let D=E,O,k,A,j,M,N;t[10]===r?(O=t[11],k=t[12],A=t[13],j=t[14],M=t[15],N=t[16]):(N=xe(r),k=we(r),A=Te(r),O=ye(r),M=U.useState,j=Ee({lineRange:k,toggleKind:N}),t[10]=r,t[11]=O,t[12]=k,t[13]=A,t[14]=j,t[15]=M,t[16]=N);let[P,F]=M(j),[I,te]=(0,U.useState)(ae),ne;t[17]!==k||t[18]!==N?(ne=()=>{F(Ee({lineRange:k,toggleKind:N}))},t[17]=k,t[18]=N,t[19]=ne):ne=t[19];let L;t[20]!==k||t[21]!==i||t[22]!==N?(L=[k,i,N],t[20]=k,t[21]=i,t[22]=N,t[23]=L):L=t[23],(0,U.useEffect)(ne,L);let re=r.kind===`html`&&P===`preview`,R=N===null?`preview`:P,z;t[24]!==R||t[25]!==r?(z=De(r,R),t[24]=R,t[25]=r,t[26]=z):z=t[26];let ie=z,B=ie,V=r.kind===`ready`&&r.textPreviewKind===`markdown`&&R===`preview`,oe=r.kind===`ready`&&r.textPreviewKind===`csv`&&R===`preview`,W=re||oe||ie||V,K;t[27]!==W||t[28]!==V?(K=W?T(`@container/page flex h-full min-h-0 flex-col`,V&&`overflow-y-auto`):`@container/page min-h-full`,t[27]=W,t[28]=V,t[29]=K):K=t[29];let q=V?``:void 0,J;t[30]!==m||t[31]!==p||t[32]!==O||t[33]!==h||t[34]!==w||t[35]!==g||t[36]!==I||t[37]!==c||t[38]!==l||t[39]!==i||t[40]!==A||t[41]!==B||t[42]!==r.kind||t[43]!==_||t[44]!==N||t[45]!==re||t[46]!==P?(J=h===`file`?(0,G.jsx)(Ne,{download:p,previewIcon:(0,G.jsx)(Be,{loading:r.kind===`loading`||g||re&&w===`loading`},i),path:i,copyPath:m,rawContents:A,externalUrl:O,onOpenInEditor:c,onRefresh:l,isRefreshing:g,statusLabel:_,toggleKind:N,showLineOverflowToggle:B,lineOverflowMode:I,onLineOverflowModeChange:te,viewMode:P,onViewModeChange:F}):null,t[30]=m,t[31]=p,t[32]=O,t[33]=h,t[34]=w,t[35]=g,t[36]=I,t[37]=c,t[38]=l,t[39]=i,t[40]=A,t[41]=B,t[42]=r.kind,t[43]=_,t[44]=N,t[45]=re,t[46]=P,t[47]=J):J=t[47];let Y;t[48]!==R||t[49]!==D||t[50]!==I||t[51]!==d||t[52]!==s||t[53]!==i||t[54]!==r?(Y=(0,G.jsx)(Me,{iframePreview:D,state:r,path:i,lineOverflowMode:I,viewMode:R,markdownLinkRouting:d,onSelectionAddToChat:s}),t[48]=R,t[49]=D,t[50]=I,t[51]=d,t[52]=s,t[53]=i,t[54]=r,t[55]=Y):Y=t[55];let X;return t[56]!==K||t[57]!==q||t[58]!==J||t[59]!==Y?(X=(0,G.jsxs)(`div`,{className:K,"data-file-preview-scroll-container":q,style:ee,children:[J,Y]}),t[56]=K,t[57]=q,t[58]=J,t[59]=Y,t[60]=X):X=t[60],X}function Me(e){let t=(0,H.c)(32),{iframePreview:n,state:r,path:i,lineOverflowMode:a,viewMode:o,markdownLinkRouting:s,onSelectionAddToChat:c}=e;if(r.kind===`loading`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(k,{}),t[0]=e):e=t[0],e}if(r.kind===`empty`){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(Ue,{message:`Empty file.`}),t[1]=e):e=t[1],e}if(r.kind===`not-found`){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(Ue,{message:`File not found.`,role:`alert`}),t[2]=e):e=t[2],e}if(r.kind===`error`){let e=r.message??`Failed to load file`,n;return t[3]===e?n=t[4]:(n=(0,G.jsx)(Ue,{message:e,role:`alert`}),t[3]=e,t[4]=n),n}if(r.kind===`unsupported`){let e;return t[5]===r.file?e=t[6]:(e=(0,G.jsx)(He,{file:r.file}),t[5]=r.file,t[6]=e),e}if(r.kind===`image`){let e;return t[7]!==i||t[8]!==r.url?(e=(0,G.jsx)(Re,{url:r.url,alt:i}),t[7]=i,t[8]=r.url,t[9]=e):e=t[9],e}if(r.kind===`video`){let e;return t[10]!==i||t[11]!==r.url?(e=(0,G.jsx)(ze,{url:r.url,title:i}),t[10]=i,t[11]=r.url,t[12]=e):e=t[12],e}if(r.kind===`html`){let e;return t[13]!==n||t[14]!==a||t[15]!==c||t[16]!==r||t[17]!==o?(e=(0,G.jsx)(Fe,{iframePreview:n,lineOverflowMode:a,onSelectionAddToChat:c,state:r,viewMode:o}),t[13]=n,t[14]=a,t[15]=c,t[16]=r,t[17]=o,t[18]=e):e=t[18],e}if(r.textPreviewKind===`csv`&&o===`preview`){let e;return t[19]!==c||t[20]!==r.file?(e=(0,G.jsx)(Le,{file:r.file,onSelectionAddToChat:c}),t[19]=c,t[20]=r.file,t[21]=e):e=t[21],e}if(r.textPreviewKind===`markdown`&&o===`preview`){let e;return t[22]!==s||t[23]!==c||t[24]!==r.file?(e=(0,G.jsx)(Ie,{file:r.file,markdownLinkRouting:s,onSelectionAddToChat:c}),t[22]=s,t[23]=c,t[24]=r.file,t[25]=e):e=t[25],e}let l=r.lineRange??null,u;return t[26]!==a||t[27]!==c||t[28]!==i||t[29]!==r.file||t[30]!==l?(u=(0,G.jsx)(We,{file:r.file,lineOverflowMode:a,lineRange:l,onSelectionAddToChat:c,path:i}),t[26]=a,t[27]=c,t[28]=i,t[29]=r.file,t[30]=l,t[31]=u):u=t[31],u}function Ne(e){let t=(0,H.c)(45),{download:n,previewIcon:r,path:i,copyPath:l,rawContents:u,externalUrl:d,onOpenInEditor:D,onRefresh:k,isRefreshing:A,statusLabel:j,toggleKind:M,showLineOverflowToggle:N,lineOverflowMode:P,onLineOverflowModeChange:F,viewMode:ee,onViewModeChange:R}=e,z=a(`workspace.openPreferred`),{ref:ae,width:B}=ne(),V=_(),U=B>0?B<560:V,W=N||M!==null,K;t[0]===M?K=t[1]:(K=Ce(M),t[0]=M,t[1]=K);let q=K,J;t[2]!==l||t[3]!==i?(J=(0,G.jsx)(I,{path:i,copyPath:l}),t[2]=l,t[3]=i,t[4]=J):J=t[4];let Y;t[5]===j?Y=t[6]:(Y=j===null?null:(0,G.jsxs)(`span`,{className:T(`shrink-0 leading-5 text-muted-foreground`,E),children:[`(`,j,`)`]}),t[5]=j,t[6]=Y);let X;t[7]!==q||t[8]!==n||t[9]!==d||t[10]!==U||t[11]!==A||t[12]!==D||t[13]!==k||t[14]!==z||t[15]!==i||t[16]!==u?(X=U?null:(0,G.jsxs)(O,{delayDuration:300,children:[k?(0,G.jsxs)(m,{children:[(0,G.jsx)(g,{asChild:!0,children:(0,G.jsx)(w,{type:`button`,variant:`ghost`,size:`icon`,className:T($,`shrink-0 text-muted-foreground hover:bg-state-hover hover:text-foreground`),onClick:k,disabled:A,"aria-label":A?`Refreshing file`:`Refresh file`,children:(0,G.jsx)(p,{name:`RotateCcw`,"aria-hidden":!0})})}),(0,G.jsx)(s,{side:`bottom`,children:A?`Refreshing file`:`Refresh file`})]}):null,n===null?null:(0,G.jsxs)(m,{children:[(0,G.jsx)(g,{asChild:!0,children:(0,G.jsx)(w,{type:`button`,variant:`ghost`,size:`icon`,className:$,onClick:()=>void L(n),"aria-label":`Download`,children:(0,G.jsx)(p,{name:`Download`,"aria-hidden":!0})})}),(0,G.jsx)(s,{side:`bottom`,children:`Download`})]}),u===null?null:(0,G.jsxs)(m,{children:[(0,G.jsx)(g,{asChild:!0,children:(0,G.jsx)(b,{text:u,label:q,className:T($,`shrink-0 rounded-md hover:bg-state-hover hover:text-foreground`)})}),(0,G.jsx)(s,{side:`bottom`,children:q})]}),d===null?null:(0,G.jsxs)(m,{children:[(0,G.jsx)(g,{asChild:!0,children:(0,G.jsx)(w,{type:`button`,variant:`ghost`,size:`icon`,className:T($,`shrink-0 text-muted-foreground hover:bg-state-hover hover:text-foreground`),onClick:()=>{S(be(d))},"aria-label":`Open in external browser`,children:(0,G.jsx)(p,{name:`Globe`,"aria-hidden":!0})})}),(0,G.jsx)(s,{side:`bottom`,children:`Open in external browser`})]}),D?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(m,{children:[(0,G.jsx)(g,{asChild:!0,children:(0,G.jsx)(oe,{onClick:()=>D(i),className:$,label:z?`Open in editor (${z.label})`:`Open in editor`,"aria-keyshortcuts":z?.ariaKeyshortcuts})}),(0,G.jsx)(s,{side:`bottom`,children:z?`Open in editor (${z.label})`:`Open in editor`})]}),(0,G.jsx)(re,{shortcut:z})]}):null]}),t[7]=q,t[8]=n,t[9]=d,t[10]=U,t[11]=A,t[12]=D,t[13]=k,t[14]=z,t[15]=i,t[16]=u,t[17]=X):X=t[17];let Z;t[18]!==r||t[19]!==J||t[20]!==Y||t[21]!==X?(Z=(0,G.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-1.5`,children:[r,J,Y,X]}),t[18]=r,t[19]=J,t[20]=Y,t[21]=X,t[22]=Z):Z=t[22];let Q;t[23]!==q||t[24]!==l||t[25]!==n||t[26]!==d||t[27]!==U||t[28]!==A||t[29]!==P||t[30]!==F||t[31]!==D||t[32]!==k||t[33]!==R||t[34]!==i||t[35]!==u||t[36]!==W||t[37]!==N||t[38]!==M||t[39]!==ee?(Q=W||U?(0,G.jsxs)(`div`,{className:`ml-auto flex shrink-0 items-center gap-1`,children:[(0,G.jsx)(Pe,{showLineOverflowToggle:N&&!U,lineOverflowMode:P,onLineOverflowModeChange:F}),M===null?null:(0,G.jsxs)(`div`,{className:`inline-flex shrink-0 items-center gap-0.5 rounded-md border border-border p-0.5`,role:`tablist`,"aria-label":Se(M),children:[(0,G.jsx)(w,{type:`button`,variant:`ghost`,size:`sm`,className:T(ve,E),onClick:()=>R(`preview`),"aria-pressed":ee===`preview`,children:`Preview`}),(0,G.jsx)(w,{type:`button`,variant:`ghost`,size:`sm`,className:T(ve,E),onClick:()=>R(`source`),"aria-pressed":ee===`source`,children:`Raw`})]}),U?(0,G.jsxs)(c,{modal:!1,children:[(0,G.jsx)(C,{asChild:!0,children:(0,G.jsx)(w,{variant:`ghost`,size:`icon`,className:T($,`shrink-0 max-md:pointer-coarse:size-10`),"aria-label":`File actions`,children:(0,G.jsx)(p,{name:`MoreHorizontal`,"aria-hidden":!0})})}),(0,G.jsxs)(v,{align:`end`,mobileTitle:`File actions`,className:`max-md:pointer-coarse:[&_[role=menuitem]]:min-h-11 max-md:pointer-coarse:[&_[role=menuitem]]:text-sm max-md:pointer-coarse:[&_[role=menuitemcheckbox]]:min-h-11 max-md:pointer-coarse:[&_[role=menuitemcheckbox]]:text-sm`,children:[(0,G.jsx)(o,{className:`max-w-80 break-all font-mono`,children:i}),(0,G.jsx)(x,{}),(0,G.jsxs)(f,{onSelect:()=>{h(l??i,{successMessage:`File path copied`,errorMessage:`Failed to copy file path`})},children:[(0,G.jsx)(p,{name:`Copy`,"aria-hidden":!0}),` Copy file path`]}),u===null?null:(0,G.jsxs)(f,{onSelect:()=>{h(u,{successMessage:`Copied to clipboard`,errorMessage:`Failed to copy file contents`})},children:[(0,G.jsx)(p,{name:`Copy`,"aria-hidden":!0}),` `,q]}),n===null?null:(0,G.jsxs)(f,{onSelect:()=>void L(n),children:[(0,G.jsx)(p,{name:`Download`,"aria-hidden":!0}),` Download`]}),k?(0,G.jsxs)(f,{disabled:A,onSelect:k,children:[(0,G.jsx)(p,{name:`RotateCcw`,"aria-hidden":!0}),` `,A?`Refreshing file`:`Refresh file`]}):null,d===null?null:(0,G.jsxs)(f,{onSelect:()=>S(be(d)),children:[(0,G.jsx)(p,{name:`Globe`,"aria-hidden":!0}),` Open in external browser`]}),D?(0,G.jsxs)(f,{onSelect:()=>D(i),children:[(0,G.jsx)(p,{name:`ExternalLink`,"aria-hidden":!0}),` Open in editor`]}):null,N?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(x,{}),(0,G.jsxs)(y,{className:`gap-2 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0`,checked:P===`wrap`,onCheckedChange:e=>F(e?`wrap`:`scroll`),children:[(0,G.jsx)(p,{name:`TextWrap`,"aria-hidden":!0}),ie]})]}):null]})]}):null]}):null,t[23]=q,t[24]=l,t[25]=n,t[26]=d,t[27]=U,t[28]=A,t[29]=P,t[30]=F,t[31]=D,t[32]=k,t[33]=R,t[34]=i,t[35]=u,t[36]=W,t[37]=N,t[38]=M,t[39]=ee,t[40]=Q):Q=t[40];let se;return t[41]!==ae||t[42]!==Z||t[43]!==Q?(se=(0,G.jsxs)(te,{headerRef:ae,children:[Z,Q]}),t[41]=ae,t[42]=Z,t[43]=Q,t[44]=se):se=t[44],se}function Pe(e){let t=(0,H.c)(11),{showLineOverflowToggle:n,lineOverflowMode:r,onLineOverflowModeChange:i}=e;if(!n)return null;let a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=T($,`text-muted-foreground`),t[0]=a):a=t[0];let o=r===`wrap`,c;t[1]!==r||t[2]!==i?(c=()=>{i(r===`wrap`?`scroll`:`wrap`)},t[1]=r,t[2]=i,t[3]=c):c=t[3];let l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,G.jsx)(p,{name:`TextWrap`}),t[4]=l):l=t[4];let u;t[5]!==o||t[6]!==c?(u=(0,G.jsx)(g,{asChild:!0,children:(0,G.jsx)(w,{type:`button`,variant:`ghost`,size:`icon`,className:a,"aria-label":ie,"aria-pressed":o,onClick:c,children:l})}),t[5]=o,t[6]=c,t[7]=u):u=t[7];let d;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,G.jsx)(s,{side:`bottom`,children:ie}),t[8]=d):d=t[8];let f;return t[9]===u?f=t[10]:(f=(0,G.jsx)(O,{delayDuration:300,children:(0,G.jsxs)(m,{children:[u,d]})}),t[9]=u,t[10]=f),f}function Fe(e){let t=(0,H.c)(16),{iframePreview:n,lineOverflowMode:r,onSelectionAddToChat:i,state:a,viewMode:o}=e,s=o===`preview`,c=s?`contents`:`hidden`,l=s?void 0:!0,u;t[0]!==n||t[1]!==c||t[2]!==l?(u=(0,G.jsx)(`div`,{className:c,"aria-hidden":l,children:n}),t[0]=n,t[1]=c,t[2]=l,t[3]=u):u=t[3];let d=s?`hidden`:`contents`,f=s?!0:void 0,p;t[4]!==r||t[5]!==i||t[6]!==a.file||t[7]!==a.lineRange?(p=(0,G.jsx)(We,{file:a.file,lineOverflowMode:r,lineRange:a.lineRange,onSelectionAddToChat:i,path:a.file.name}),t[4]=r,t[5]=i,t[6]=a.file,t[7]=a.lineRange,t[8]=p):p=t[8];let m;t[9]!==d||t[10]!==f||t[11]!==p?(m=(0,G.jsx)(`div`,{className:d,"aria-hidden":f,children:p}),t[9]=d,t[10]=f,t[11]=p,t[12]=m):m=t[12];let h;return t[13]!==u||t[14]!==m?(h=(0,G.jsxs)(G.Fragment,{children:[u,m]}),t[13]=u,t[14]=m,t[15]=h):h=t[15],h}function Ie(e){let t=(0,H.c)(12),{file:n,onSelectionAddToChat:r,markdownLinkRouting:i}=e,a=(0,U.useRef)(null),o=(0,U.useContext)(W),s;t[0]===o?s=t[1]:(s=()=>{let e=a.current?.closest(`[data-file-preview-scroll-container]`);if(!e||!o)return;e.scrollTop=o.scrollTop;let t=()=>{o.scrollTop=e.scrollTop};return e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)},t[0]=o,t[1]=s);let c;t[2]!==n.contents||t[3]!==n.name||t[4]!==o?(c=[o,n.name,n.contents],t[2]=n.contents,t[3]=n.name,t[4]=o,t[5]=c):c=t[5],(0,U.useLayoutEffect)(s,c);let l;t[6]!==n.contents||t[7]!==i?(l=(0,G.jsx)(`div`,{ref:a,className:`flex-auto bg-background px-4 py-4`,children:(0,G.jsx)(B,{allowHtml:!0,content:n.contents,linkRouting:i})}),t[6]=n.contents,t[7]=i,t[8]=l):l=t[8];let u;return t[9]!==r||t[10]!==l?(u=(0,G.jsx)(X,{markdown:!0,onSelectionAddToChat:r,children:l}),t[9]=r,t[10]=l,t[11]=u):u=t[11],u}function Le({file:e,onSelectionAddToChat:t}){let n=(0,U.useMemo)(()=>ke(e.contents),[e.contents]),r=n.rows[0]??[],i=n.rows.slice(1),a=Array.from({length:n.columnCount},(e,t)=>({index:t,label:r[t]??``})),o=`max(100%, ${3+a.length*18}rem)`,s=Ae(n,i.length),c=(0,U.useRef)(null),l=F({count:i.length,getScrollElement:()=>c.current,estimateSize:()=>me,overscan:he}),u=l.getVirtualItems(),d=l.getTotalSize(),f=u[0],p=u[u.length-1],m=f?.start??0,h=p===void 0?d:d-p.end;return(0,G.jsx)(X,{onSelectionAddToChat:t,children:(0,G.jsxs)(`div`,{className:`flex min-h-0 flex-auto flex-col bg-surface-raised px-4 py-4`,children:[(0,G.jsx)(`div`,{ref:c,className:`persistent-scrollbar min-h-0 overflow-auto overscroll-contain rounded-md border border-border bg-background`,children:(0,G.jsxs)(`table`,{className:`min-w-full table-fixed border-separate border-spacing-0 font-mono text-xs leading-5`,"aria-label":`${e.name} CSV preview`,style:{width:o},children:[(0,G.jsxs)(`colgroup`,{children:[(0,G.jsx)(`col`,{className:`w-12`}),a.map(e=>(0,G.jsx)(`col`,{className:`w-72`},e.index))]}),(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`th`,{scope:`col`,className:`sticky left-0 top-0 z-30 w-12 min-w-12 border-b border-r border-border bg-surface-recessed-solid px-2 py-1 text-right font-medium text-muted-foreground`,children:`#`}),a.map(e=>(0,G.jsx)(`th`,{scope:`col`,className:`sticky top-0 z-20 w-72 max-w-72 border-b border-r border-border bg-surface-recessed-solid px-2 py-1 text-left font-medium text-foreground`,title:e.label,children:(0,G.jsx)(`span`,{className:`block max-w-full truncate`,children:e.label||`Column ${e.index+1}`})},e.index))]})}),(0,G.jsxs)(`tbody`,{children:[m>0?(0,G.jsx)(`tr`,{"aria-hidden":!0,style:{height:m},children:(0,G.jsx)(`td`,{colSpan:a.length+1,className:`p-0`})}):null,u.map(e=>{let t=e.index,n=i[t]??[];return(0,G.jsxs)(`tr`,{"data-index":t,ref:l.measureElement,children:[(0,G.jsx)(`th`,{scope:`row`,className:`sticky left-0 z-10 w-12 min-w-12 border-b border-r border-border bg-surface-recessed-solid px-2 py-1 text-right font-medium text-muted-foreground`,children:t+2}),a.map(e=>{let t=n[e.index]??``;return(0,G.jsx)(`td`,{className:`w-72 max-w-72 overflow-hidden border-b border-r border-border px-2 py-1 align-top text-foreground`,title:t,children:(0,G.jsx)(`span`,{className:`block max-w-full truncate`,children:t})},e.index)})]},e.key)}),h>0?(0,G.jsx)(`tr`,{"aria-hidden":!0,style:{height:h},children:(0,G.jsx)(`td`,{colSpan:a.length+1,className:`p-0`})}):null]})]})}),s===null?null:(0,G.jsx)(`p`,{className:`mt-2 shrink-0 text-xs leading-5 text-muted-foreground`,children:s})]})})}function Re(e){let t=(0,H.c)(24),{url:n,alt:r}=e,[i,a]=(0,U.useState)(!1),o=ue(),s,c;t[0]!==r||t[1]!==o||t[2]!==n?(s=()=>{o?.isOpen&&o.update({alt:r,src:n})},c=[r,o,n],t[0]=r,t[1]=o,t[2]=n,t[3]=s,t[4]=c):(s=t[3],c=t[4]),(0,U.useLayoutEffect)(s,c);let l=`Open ${r} in full screen preview`,u;t[5]!==r||t[6]!==o||t[7]!==n?(u=()=>{if(o){o.open({alt:r,src:n});return}a(!0)},t[5]=r,t[6]=o,t[7]=n,t[8]=u):u=t[8];let d;t[9]!==r||t[10]!==n?(d=(0,G.jsx)(`img`,{src:n,alt:r,className:`mx-auto block h-auto max-w-full`}),t[9]=r,t[10]=n,t[11]=d):d=t[11];let f;t[12]!==l||t[13]!==u||t[14]!==d?(f=(0,G.jsx)(`button`,{type:`button`,className:`block w-full cursor-zoom-in`,"aria-label":l,onClick:u,children:d}),t[12]=l,t[13]=u,t[14]=d,t[15]=f):f=t[15];let p;t[16]!==r||t[17]!==o||t[18]!==i||t[19]!==n?(p=o===null?(0,G.jsx)(R,{title:r,imageSrc:i?n:null,imageAlt:r,onClose:()=>a(!1)}):null,t[16]=r,t[17]=o,t[18]=i,t[19]=n,t[20]=p):p=t[20];let m;return t[21]!==f||t[22]!==p?(m=(0,G.jsxs)(`div`,{className:`pt-4`,children:[f,p]}),t[21]=f,t[22]=p,t[23]=m):m=t[23],m}function ze(e){let t=(0,H.c)(3),{url:n,title:r}=e,i;return t[0]!==r||t[1]!==n?(i=(0,G.jsx)(`div`,{className:`pt-4`,children:(0,G.jsx)(`video`,{src:n,title:r,className:`block max-h-[34rem] w-full bg-black`,controls:!0,preload:`metadata`})}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i}function Be(e){let t=(0,H.c)(14),{loading:n}=e,[r,i]=(0,U.useState)(!1),a,o;t[0]===n?(a=t[1],o=t[2]):(a=()=>{if(!n){i(!1);return}let e=window.setTimeout(()=>i(!0),_e);return()=>window.clearTimeout(e)},o=[n],t[0]=n,t[1]=a,t[2]=o),(0,U.useEffect)(a,o);let s=n&&r,c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=T(`flex items-center justify-center text-subtle-foreground`,d),t[3]=c):c=t[3];let l=s?`Spinner`:`File`,u=s&&`animate-spin motion-reduce:animate-none`,f;t[4]===u?f=t[5]:(f=T(`size-full`,u),t[4]=u,t[5]=f);let m;t[6]!==l||t[7]!==f?(m=(0,G.jsx)(p,{name:l,className:f,"aria-hidden":!0}),t[6]=l,t[7]=f,t[8]=m):m=t[8];let h;t[9]===s?h=t[10]:(h=s?(0,G.jsx)(`span`,{role:`status`,className:`sr-only`,children:`Loading preview…`}):null,t[9]=s,t[10]=h);let g;return t[11]!==m||t[12]!==h?(g=(0,G.jsxs)(`span`,{className:c,children:[m,h]}),t[11]=m,t[12]=h,t[13]=g):g=t[13],g}function Ve(e){let t=(0,H.c)(10),{sandbox:n,title:r,url:i,loadState:a,onLoadStateChange:o}=e;if(a===`error`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden`,children:(0,G.jsx)(Ue,{message:`Failed to load HTML preview.`,role:`alert`})}),t[0]=e):e=t[0],e}let s,c;t[1]===o?(s=t[2],c=t[3]):(s=()=>o(`loaded`),c=()=>o(`error`),t[1]=o,t[2]=s,t[3]=c);let l;return t[4]!==n||t[5]!==s||t[6]!==c||t[7]!==r||t[8]!==i?(l=(0,G.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden`,children:(0,G.jsx)(`iframe`,{title:r,src:i,sandbox:n,style:ge,onLoad:s,onError:c})}),t[4]=n,t[5]=s,t[6]=c,t[7]=r,t[8]=i,t[9]=l):l=t[9],l}function He(e){let t=(0,H.c)(24),{file:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,G.jsx)(`div`,{className:`flex size-12 items-center justify-center rounded-lg bg-surface-raised text-muted-foreground`,children:(0,G.jsx)(p,{name:`File`,className:`size-6`,"aria-hidden":!0})}),t[0]=r):r=t[0];let i;t[1]===n.name?i=t[2]:(i=(0,G.jsx)(`p`,{className:`truncate text-sm font-medium text-foreground`,children:n.name}),t[1]=n.name,t[2]=i);let a=n.mimeType,o;t[3]===n.sizeBytes?o=t[4]:(o=u(n.sizeBytes),t[3]=n.sizeBytes,t[4]=o);let s=`${a} · ${o}`,c;t[5]===s?c=t[6]:(c=(0,G.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:s}),t[5]=s,t[6]=c);let l;t[7]!==i||t[8]!==c?(l=(0,G.jsxs)(`div`,{className:`flex max-w-full min-w-0 flex-col gap-1`,children:[i,c]}),t[7]=i,t[8]=c,t[9]=l):l=t[9];let d=n.reason===`too-large`?`This file is too large to preview.`:`This file type can't be previewed.`,f;t[10]===d?f=t[11]:(f=(0,G.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:d}),t[10]=d,t[11]=f);let m;t[12]!==n.name||t[13]!==n.url?(m=e=>{e.preventDefault(),L({url:n.url,fileName:n.name})},t[12]=n.name,t[13]=n.url,t[14]=m):m=t[14];let h;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,G.jsx)(p,{name:`Download`,"aria-hidden":!0}),t[15]=h):h=t[15];let g;t[16]!==n.name||t[17]!==n.url||t[18]!==m?(g=(0,G.jsx)(w,{asChild:!0,variant:`outline`,size:`sm`,children:(0,G.jsxs)(`a`,{href:n.url,download:n.name,onClick:m,children:[h,`Download`]})}),t[16]=n.name,t[17]=n.url,t[18]=m,t[19]=g):g=t[19];let _;return t[20]!==g||t[21]!==l||t[22]!==f?(_=(0,G.jsxs)(`div`,{className:`flex flex-col items-center gap-4 px-6 py-12 text-center`,children:[r,l,f,g]}),t[20]=g,t[21]=l,t[22]=f,t[23]=_):_=t[23],_}function Ue(e){let t=(0,H.c)(3),{message:n,role:r}=e,i;return t[0]!==n||t[1]!==r?(i=(0,G.jsx)(l,{role:r,className:`mx-4 mt-4 rounded-lg`,children:n}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}function We(e){let t=(0,H.c)(9),{file:n,lineOverflowMode:r,lineRange:i,onSelectionAddToChat:a,path:o}=e,s;t[0]===i?s=t[1]:(s=i===null?null:{start:i.startLineNumber,end:i.endLineNumber},t[0]=i,t[1]=s);let c=s,l=n.cacheKey??n.name,u;return t[2]!==n.contents||t[3]!==c||t[4]!==r||t[5]!==a||t[6]!==o||t[7]!==l?(u=(0,G.jsx)(V,{content:n.contents,path:o,cacheKey:l,overflow:r,highlightedLines:c,scrollToHighlightedLines:!0,onSelectionAddToChat:a}),t[2]=n.contents,t[3]=c,t[4]=r,t[5]=a,t[6]=o,t[7]=l,t[8]=u):u=t[8],u}export{W as i,de as n,ce as r,je as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Or as t,mi as n,ni as r}from"./boot-vendor-BBLG7GwQ.js";import{On as i,Qm as a,Yt as o,nh as s,oh as c,uc as l}from"./index-DacqPN7W.js";import{t as u}from"./code-loading-skeletons-IO1KXbza.js";import{f as d,l as f,o as p,u as m}from"./git-diff-patch-text-Cs-divFw.js";import{t as h}from"./truncate-start-Czvfq52J.js";import{n as g,r as _,t as v}from"./image-lightbox-DcW9NMfz.js";import{a as y}from"./absolute-file-path-C52NE2Ra.js";import{n as b}from"./diff-stats-tally-CKiw6JxL.js";import{t as x}from"./open-in-editor-button-DRMlCZor.js";import{n as S,t as C}from"./file-path-link-BqX0yHKv.js";import{t as w}from"./DiffHost-BYfjGqQR.js";var T=t(),E=e(n(),1),D=e(r(),1),O={contain:`layout paint style`,contentVisibility:`auto`,containIntrinsicSize:`0 600px`};function k(e){return e===`modified`||e===`renamed`||e===`copied`}function ee(e){if(typeof window.requestIdleCallback==`function`){let t=window.requestIdleCallback(e,{timeout:2e3});return()=>window.cancelIdleCallback(t)}let t=window.setTimeout(e,200);return()=>window.clearTimeout(t)}function A(e,t,n){let r=d(e.name)??e.name,i=d(e.prevName)??r,a=t===`added`?{kind:`empty`,path:r}:{kind:`request`,path:t===`renamed`?i:r,side:`old`},o=t===`deleted`?{kind:`empty`,path:r}:{kind:`request`,path:r,side:`new`},s=e.hunks.map(e=>`${e.hunkSpecs??``}:${e.additionStart}:${e.additionCount}:${e.deletionStart}:${e.deletionCount}`).join(`|`);return{identity:[t,j(a),j(o),s,n??``,e.deletionLines.join(``),e.additionLines.join(``)].join(`:`),old:a,new:o}}function j(e){return e.kind===`empty`?`empty:${e.path}`:`request:${e.side}:${e.path}`}function te(e,t){return e.kind===`empty`?Promise.resolve({kind:`text`,file:{name:e.path,contents:``}}):t(e.path,e.side)}function M(e,t){return{old:{path:e.name,content:e.contents},new:{path:t.name,content:t.contents}}}function N(e,t){return e.hunks.length===0&&e.type!==`rename-pure`&&t!==void 0&&f(e.name)}function P(e,t){return e.type!==`rename-pure`&&t!==void 0&&m(e)}function F(e){let t=e.trim();return t.length===0?null:`data:image/svg+xml;charset=utf-8,${encodeURIComponent(t)}`}function I(e){let t=(0,T.c)(75),{fileDiff:n,changeKind:r,onRequestFileContents:i,patchText:a,renderBeforeVisible:o}=e,s=r===`deleted`,c;t[0]!==n||t[1]!==i?(c=N(n,i),t[0]=n,t[1]=i,t[2]=c):c=t[2];let u=c,d;t[3]!==n||t[4]!==i?(d=P(n,i),t[3]=n,t[4]=i,t[5]=d):d=t[5];let f=d,m;t[6]===n?m=t[7]:(m=p(n),t[6]=n,t[7]=m);let h=m,g;t[8]!==r||t[9]!==n||t[10]!==a?(g=A(n,r,a),t[8]=r,t[9]=n,t[10]=a,t[11]=g):g=t[11];let _=g,v;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(v={initialIsIntersecting:!1,rootMargin:`200px`},t[12]=v):v=t[12];let{ref:y,isIntersecting:b}=S(v),x=(0,E.useRef)(i),C;t[13]===i?C=t[14]:(C=()=>{x.current=i},t[13]=i,t[14]=C),(0,E.useEffect)(C);let w;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(w={status:`idle`},t[15]=w):w=t[15];let[D,O]=(0,E.useState)(w),j=(0,E.useRef)(`idle`),[I,z]=(0,E.useState)(o),[B,V]=(0,E.useState)(!1),[U,W]=(0,E.useState)(0),[G,re]=(0,E.useState)(!1),K=l(),q;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(q=()=>{j.current=`idle`,O({status:`idle`}),V(!1),W(0),re(!1)},t[16]=q):q=t[16];let J;t[17]!==_.identity||t[18]!==u||t[19]!==f?(J=[_.identity,u,f],t[17]=_.identity,t[18]=u,t[19]=f,t[20]=J):J=t[20],(0,E.useEffect)(q,J);let Y,X;t[21]===b?(Y=t[22],X=t[23]):(Y=()=>{b&&z(!0)},X=[b],t[21]=b,t[22]=Y,t[23]=X),(0,E.useEffect)(Y,X);let ie=s&&!u&&!f&&!B,Z=I&&!ie,ae=u||f,oe;t[24]!==r||t[25]!==n||t[26]!==ae||t[27]!==i||t[28]!==a?(oe=!ae&&i!==void 0&&a!==void 0&&n.hunks.length>0&&k(r),t[24]=r,t[25]=n,t[26]=ae,t[27]=i,t[28]=a,t[29]=oe):oe=t[29];let Q=oe,$=Z&&(ae||Q&&U>0),se,ce;t[30]!==Q||t[31]!==U||t[32]!==K||t[33]!==Z?(se=()=>{if(!(K||!Z||!Q||U>0))return ee(()=>{W(L)})},ce=[Q,U,K,Z],t[30]=Q,t[31]=U,t[32]=K,t[33]=Z,t[34]=se,t[35]=ce):(se=t[34],ce=t[35]),(0,E.useEffect)(se,ce);let le;t[36]!==_.new||t[37]!==_.old||t[38]!==f||t[39]!==$?(le=()=>{if(!$||j.current!==`idle`)return;let e=x.current;if(!e)return;let t=!1;return j.current=`loading`,O({status:`loading`}),Promise.all([te(_.old,e),te(_.new,e)]).then(e=>{let[n,r]=e;if(t)return;let i=n?.kind===`image`?n:null,a=r?.kind===`image`?r:null;if(i!==null||a!==null){j.current=`ready-image`,O({status:`ready-image`,oldImageUrl:i?.dataUrl??null,newImageUrl:a?.dataUrl??null,oldSizeBytes:i?.sizeBytes??null,newSizeBytes:a?.sizeBytes??null});return}if(n?.kind!==`text`||r?.kind!==`text`){j.current=`unavailable`,O({status:`unavailable`});return}let o=M(n.file,r.file);if(f){j.current=`ready-svg`,O({status:`ready-svg`,fullFileContents:o,oldImageUrl:F(n.file.contents),newImageUrl:F(r.file.contents)});return}j.current=`ready`,O({status:`ready`,fullFileContents:o})}).catch(()=>{t||(j.current=`error`,O({status:`error`}))}),()=>{t=!0,j.current===`loading`&&(j.current=`idle`)}},t[36]=_.new,t[37]=_.old,t[38]=f,t[39]=$,t[40]=le):le=t[40];let ue;t[41]!==U||t[42]!==_||t[43]!==n||t[44]!==f||t[45]!==a||t[46]!==$?(ue=[U,_,n,f,a,$],t[41]=U,t[42]=_,t[43]=n,t[44]=f,t[45]=a,t[46]=$,t[47]=ue):ue=t[47],(0,E.useEffect)(le,ue);let de;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(de=()=>{j.current===`error`&&(j.current=`idle`,O({status:`idle`})),re(!0),W(ne)},t[48]=de):de=t[48];let fe=de,pe=U>0,me=!K,he;t[49]!==Q||t[50]!==D.status||t[51]!==G||t[52]!==pe||t[53]!==me?(he=R({canExpandContext:Q,contextRequested:pe,enrichmentStatus:D.status,isPrefetchedAutomatically:me,isRequestedByUser:G}),t[49]=Q,t[50]=D.status,t[51]=G,t[52]=pe,t[53]=me,t[54]=he):he=t[54];let ge=he,_e;t[55]===ge?_e=t[56]:(_e={status:ge,request:fe},t[55]=ge,t[56]=_e);let ve=_e,ye=D.status===`ready`||D.status===`ready-svg`?D.fullFileContents:null,be;t[57]===Symbol.for(`react.memo_cache_sentinel`)?(be=()=>{V(!0),z(!0)},t[57]=be):be=t[57];let xe=be,Se;t[58]!==r||t[59]!==D||t[60]!==u?(Se=u&&D.status===`ready-image`?H(D,r):null,t[58]=r,t[59]=D,t[60]=u,t[61]=Se):Se=t[61];let Ce=Se,we;return t[62]!==y||t[63]!==ve||t[64]!==D||t[65]!==n||t[66]!==h||t[67]!==ye||t[68]!==Ce||t[69]!==u||t[70]!==f||t[71]!==a||t[72]!==ie||t[73]!==Z?(we={bodySentinelRef:y,enrichment:D,fileDiff:n,fileDiffLabel:h,isImageCard:u,isSvgPreviewCard:f,shouldGateDeletedDiff:ie,shouldRenderDiffView:Z,loadDeletedDiff:xe,imageSizeStat:Ce,contextExpansion:ve,fullFileContents:ye,patchText:a},t[62]=y,t[63]=ve,t[64]=D,t[65]=n,t[66]=h,t[67]=ye,t[68]=Ce,t[69]=u,t[70]=f,t[71]=a,t[72]=ie,t[73]=Z,t[74]=we):we=t[74],we}function ne(e){return e+1}function L(e){return e===0?1:e}function R({canExpandContext:e,contextRequested:t,enrichmentStatus:n,isPrefetchedAutomatically:r,isRequestedByUser:i}){if(!e)return`unavailable`;let a=i?`loading`:`prefetching`;switch(n){case`idle`:return t?a:r?`prefetching`:`idle`;case`loading`:return a;case`ready`:return`ready`;case`error`:return`error`;case`ready-image`:case`ready-svg`:case`unavailable`:return`unavailable`;default:return n}}function z(e,t){let n=e!==null&&t!==null,r=[];return e!==null&&r.push({url:e,caption:n?`Old`:null}),t!==null&&r.push({url:t,caption:n?`New`:null}),r}function B(e,t){return t.caption===null?e:`${e} (${t.caption.toLowerCase()})`}function V(e){return e.status!==`ready-image`&&e.status!==`ready-svg`?null:{oldImageUrl:e.oldImageUrl,newImageUrl:e.newImageUrl}}function H(e,t){let n=t===`deleted`?null:e.newSizeBytes,r=t===`added`?null:e.oldSizeBytes;return n===null&&r===null?null:{addedBytes:n,removedBytes:r}}function U(e){let t=(0,T.c)(32),{preview:n,fileDiffLabel:r,fitToFrame:i}=e,a=i===void 0?!1:i,[o,s]=(0,E.useState)(null),c,l,u,d,f,p,m,h;if(t[0]!==o||t[1]!==r||t[2]!==a||t[3]!==n.newImageUrl||t[4]!==n.oldImageUrl){h=Symbol.for(`react.early_return_sentinel`);bb0:{if(l=z(n.oldImageUrl,n.newImageUrl),l.length===0){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,D.jsx)(`div`,{className:`px-3 py-3 text-xs text-muted-foreground`,children:`No preview available for this image.`}),t[13]=e):e=t[13],h=e;break bb0}let e=o===null?void 0:l[o];u=e=>{s(t=>t===null?null:_({currentIndex:t,direction:e,itemCount:l.length}))};let i;t[14]!==r||t[15]!==a?(i=(e,t)=>(0,D.jsxs)(`figure`,{className:`min-w-0 max-w-full`,children:[(0,D.jsx)(`button`,{type:`button`,className:a?`flex h-64 w-full cursor-zoom-in items-center justify-center rounded-md border border-border bg-surface-recessed p-3`:`block max-w-full cursor-zoom-in`,onClick:()=>s(t),children:(0,D.jsx)(`img`,{src:e.url,alt:B(r,e),style:v,className:a?`block h-full w-full object-contain`:`block max-h-80 max-w-full rounded-md border border-border object-contain`})}),e.caption===null?null:(0,D.jsx)(`figcaption`,{className:`mt-1 text-xs text-muted-foreground`,children:e.caption})]},e.url),t[14]=r,t[15]=a,t[16]=i):i=t[16],m=(0,D.jsx)(`div`,{className:`@container/diff-preview min-w-0`,children:(0,D.jsx)(`div`,{className:a?l.length>1?`grid grid-cols-1 gap-3 px-3 py-3 @min-[32rem]/diff-preview:grid-cols-2`:`grid grid-cols-1 gap-3 px-3 py-3`:`flex flex-col items-start gap-3 px-3 py-3 @min-[32rem]/diff-preview:flex-row`,children:l.map(i)})}),c=g,d=`${r} image preview`,f=e?.url??null,p=e?B(r,e):r}t[0]=o,t[1]=r,t[2]=a,t[3]=n.newImageUrl,t[4]=n.oldImageUrl,t[5]=c,t[6]=l,t[7]=u,t[8]=d,t[9]=f,t[10]=p,t[11]=m,t[12]=h}else c=t[5],l=t[6],u=t[7],d=t[8],f=t[9],p=t[10],m=t[11],h=t[12];if(h!==Symbol.for(`react.early_return_sentinel`))return h;let y=l.length>1,b,x;t[17]===u?(b=t[18],x=t[19]):(b=()=>u(`previous`),x=()=>u(`next`),t[17]=u,t[18]=b,t[19]=x);let S;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>s(null),t[20]=S):S=t[20];let C;t[21]!==c||t[22]!==d||t[23]!==f||t[24]!==p||t[25]!==y||t[26]!==b||t[27]!==x?(C=(0,D.jsx)(c,{title:d,imageSrc:f,imageAlt:p,hasMultipleImages:y,onPrevious:b,onNext:x,onClose:S}),t[21]=c,t[22]=d,t[23]=f,t[24]=p,t[25]=y,t[26]=b,t[27]=x,t[28]=C):C=t[28];let w;return t[29]!==C||t[30]!==m?(w=(0,D.jsxs)(D.Fragment,{children:[m,C]}),t[29]=C,t[30]=m,t[31]=w):w=t[31],w}function W(e){let t=(0,T.c)(8),{enrichment:n,fileDiffLabel:r,fitToFrame:i}=e,a=i===void 0?!1:i;if(n.status===`idle`||n.status===`loading`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,D.jsx)(u,{}),t[0]=e):e=t[0],e}let o;t[1]===n?o=t[2]:(o=V(n),t[1]=n,t[2]=o);let s=o;if(s===null){let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,D.jsx)(`div`,{className:`px-3 py-3 text-xs text-muted-foreground`,children:`No preview available for this image.`}),t[3]=e):e=t[3],e}let c;return t[4]!==r||t[5]!==a||t[6]!==s?(c=(0,D.jsx)(U,{preview:s,fileDiffLabel:r,fitToFrame:a}),t[4]=r,t[5]=a,t[6]=s,t[7]=c):c=t[7],c}function G(e){let t=(0,T.c)(9),{displayMode:n,enrichment:r,fileDiff:i,fileDiffLabel:a,patchText:o,fullFileContents:s,presentation:c,onSelectionAddToChat:l}=e,u;return t[0]!==n||t[1]!==r||t[2]!==i||t[3]!==a||t[4]!==s||t[5]!==l||t[6]!==o||t[7]!==c?(u=n===`preview`?(0,D.jsx)(W,{enrichment:r,fileDiffLabel:a,fitToFrame:!0}):(0,D.jsx)(w,{file:i,patchText:o,fullFileContents:s,...c,onSelectionAddToChat:l}),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=s,t[5]=l,t[6]=o,t[7]=c,t[8]=u):u=t[8],u}function re(e){let t=(0,T.c)(19),{state:n,presentation:r,svgDisplayMode:i,reservesCollapseGutter:a,onSelectionAddToChat:o}=e,{bodySentinelRef:c,enrichment:l,fileDiff:d,fileDiffLabel:f,isImageCard:p,isSvgPreviewCard:m,shouldGateDeletedDiff:h,shouldRenderDiffView:g,loadDeletedDiff:_,contextExpansion:v,fullFileContents:y,patchText:b}=n,x;t[0]!==v||t[1]!==l||t[2]!==d||t[3]!==f||t[4]!==y||t[5]!==p||t[6]!==m||t[7]!==_||t[8]!==o||t[9]!==b||t[10]!==r||t[11]!==a||t[12]!==h||t[13]!==g||t[14]!==i?(x=h?(0,D.jsxs)(`div`,{className:`flex items-center py-3 pl-2 pr-3 text-xs text-muted-foreground`,children:[a?(0,D.jsx)(`span`,{"aria-hidden":!0,className:`w-8 shrink-0`}):null,(0,D.jsxs)(`span`,{className:`pl-[1ch]`,children:[(0,D.jsx)(`span`,{children:`This file was deleted.`}),` `,(0,D.jsx)(s,{type:`button`,variant:`link`,size:`sm`,className:`h-auto p-0 text-xs underline underline-offset-4 hover:underline`,onClick:_,children:`Load diff`})]})]}):g?p?(0,D.jsx)(W,{enrichment:l,fileDiffLabel:f}):m?(0,D.jsx)(G,{displayMode:i,enrichment:l,fileDiff:d,fileDiffLabel:f,patchText:b,fullFileContents:y,presentation:r,onSelectionAddToChat:o}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(w,{file:d,patchText:b,fullFileContents:y,...r,onSelectionAddToChat:o}),(0,D.jsx)(K,{contextExpansion:v,reservesCollapseGutter:a})]}):(0,D.jsx)(u,{}),t[0]=v,t[1]=l,t[2]=d,t[3]=f,t[4]=y,t[5]=p,t[6]=m,t[7]=_,t[8]=o,t[9]=b,t[10]=r,t[11]=a,t[12]=h,t[13]=g,t[14]=i,t[15]=x):x=t[15];let S;return t[16]!==c||t[17]!==x?(S=(0,D.jsx)(`div`,{ref:c,className:`overflow-hidden rounded-b-lg bg-background`,style:O,children:x}),t[16]=c,t[17]=x,t[18]=S):S=t[18],S}function K(e){let t=(0,T.c)(8),{contextExpansion:n,reservesCollapseGutter:r}=e,{status:i,request:a}=n;if(i===`unavailable`||i===`ready`||i===`prefetching`)return null;let o;t[0]===r?o=t[1]:(o=r?(0,D.jsx)(`span`,{"aria-hidden":!0,className:`w-8 shrink-0`}):null,t[0]=r,t[1]=o);let c;t[2]!==a||t[3]!==i?(c=(0,D.jsx)(`span`,{className:`pl-[1ch]`,children:i===`loading`?(0,D.jsx)(`span`,{role:`status`,children:`Loading context…`}):(0,D.jsxs)(D.Fragment,{children:[i===`error`?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(`span`,{className:`text-destructive`,children:`Couldn't load surrounding context.`}),` `]}):null,(0,D.jsx)(s,{type:`button`,variant:`link`,size:`sm`,className:`h-auto p-0 text-xs underline underline-offset-4 hover:underline`,onClick:a,children:i===`error`?`Retry`:`Expand context`})]})}),t[2]=a,t[3]=i,t[4]=c):c=t[4];let l;return t[5]!==o||t[6]!==c?(l=(0,D.jsxs)(`div`,{className:`flex items-center py-2 pl-2 pr-3 text-xs text-muted-foreground`,children:[o,c]}),t[5]=o,t[6]=c,t[7]=l):l=t[7],l}function q(e){let t=(0,T.c)(7),{stat:n}=e,r;t[0]===n.addedBytes?r=t[1]:(r=n.addedBytes===null?null:(0,D.jsx)(`span`,{className:`text-diff-added`,children:`+${i(n.addedBytes)}`}),t[0]=n.addedBytes,t[1]=r);let a;t[2]===n.removedBytes?a=t[3]:(a=n.removedBytes===null?null:(0,D.jsx)(`span`,{className:`text-diff-removed`,children:`-${i(n.removedBytes)}`}),t[2]=n.removedBytes,t[3]=a);let o;return t[4]!==r||t[5]!==a?(o=(0,D.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1 whitespace-nowrap text-xs tabular-nums`,children:[r,a]}),t[4]=r,t[5]=a,t[6]=o):o=t[6],o}function J(e){let t=(0,T.c)(5),{fileLabel:n,isRaw:r,onToggle:i}=e,o=r?`Show image preview for ${n}`:`Show raw SVG diff for ${n}`,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,D.jsx)(a,{name:`Code`,"aria-hidden":!0,className:`size-3.5`}),t[0]=s):s=t[0];let c;return t[1]!==r||t[2]!==o||t[3]!==i?(c=(0,D.jsx)(`button`,{type:`button`,className:`inline-flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-state-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring aria-pressed:bg-state-active aria-pressed:text-foreground`,onClick:i,"aria-label":o,"aria-pressed":r,children:s}),t[1]=r,t[2]=o,t[3]=i,t[4]=c):c=t[4],c}function Y(e,t){return e.changeKind!==`renamed`&&e.changeKind!==`copied`?null:t&&t!==e.path?{from:t,to:e.path}:null}function X(e){let t=(0,T.c)(53),{model:n,previousPath:r,filePathRoot:i,onOpenFileInEditor:s,onOpenFilePreview:l,isCollapsed:u,onToggleCollapsed:d,hasChanges:f,statSlot:p,actionSlot:m}=e,g=n.changeKind===`added`,_=n.changeKind===`deleted`,v=_?0:n.insertions,S=g?0:n.deletions,w=g||_,E;t[0]!==n||t[1]!==r?(E=Y(n,r),t[0]=n,t[1]=r,t[2]=E):E=t[2];let O=E,k=n.openablePath,ee;t[3]!==i||t[4]!==k?(ee=k?y({path:k,rootPath:i}):null,t[3]=i,t[4]=k,t[5]=ee):ee=t[5];let A=ee,j=!!k,te=u!==void 0&&d!==void 0,M;t[6]!==f||t[7]!==u||t[8]!==n.label||t[9]!==d||t[10]!==te?(M=te?(0,D.jsx)(`button`,{type:`button`,className:c(`inline-flex w-8 shrink-0 items-center justify-center text-muted-foreground transition-colors`,f?`hover:text-foreground`:`cursor-not-allowed opacity-40`),onClick:f?d:void 0,disabled:!f,"aria-label":f?`${u?`Expand`:`Collapse`} ${n.label}`:`${n.label} has no changes to expand`,"aria-expanded":f?!u:void 0,children:(0,D.jsx)(a,{name:`ChevronRight`,className:c(`size-3.5 shrink-0 transition-transform duration-150`,f&&!u&&`rotate-90`)})}):null,t[6]=f,t[7]=u,t[8]=n.label,t[9]=d,t[10]=te,t[11]=M):M=t[11];let N;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(N=c(`flex min-w-0 items-center gap-1.5`,`pl-[1ch]`),t[12]=N):N=t[12];let P;t[13]===O?P=t[14]:(P=O?(0,D.jsx)(h,{className:`min-w-0 font-mono text-xs leading-5 text-muted-foreground`,title:O.from,children:O.from}):null,t[13]=O,t[14]=P);let F;t[15]===O?F=t[16]:(F=O?(0,D.jsx)(a,{name:`ArrowRight`,"aria-hidden":`true`,className:`size-3 shrink-0 text-subtle-foreground`}):null,t[15]=O,t[16]=F);let I=k??n.path,ne=O?O.to:n.label,L;t[17]!==j||t[18]!==l||t[19]!==k?(L=j&&k&&l?()=>l(k):void 0,t[17]=j,t[18]=l,t[19]=k,t[20]=L):L=t[20];let R;t[21]!==I||t[22]!==ne||t[23]!==L?(R=(0,D.jsx)(C,{path:I,displayName:ne,onClick:L,className:`font-mono font-medium text-foreground`}),t[21]=I,t[22]=ne,t[23]=L,t[24]=R):R=t[24];let z;t[25]!==A||t[26]!==n.label?(z=A?(0,D.jsx)(o,{text:A,label:`Copy path for ${n.label}`,className:`rounded-md hover:bg-state-hover`}):null,t[25]=A,t[26]=n.label,t[27]=z):z=t[27];let B;t[28]!==j||t[29]!==n.label||t[30]!==s||t[31]!==k?(B=j&&k&&s?(0,D.jsx)(x,{onClick:()=>s(k),label:`Open ${n.label} in editor`}):null,t[28]=j,t[29]=n.label,t[30]=s,t[31]=k,t[32]=B):B=t[32];let V;t[33]!==R||t[34]!==z||t[35]!==B||t[36]!==P||t[37]!==F?(V=(0,D.jsxs)(`span`,{className:N,children:[P,F,R,z,B]}),t[33]=R,t[34]=z,t[35]=B,t[36]=P,t[37]=F,t[38]=V):V=t[38];let H;t[39]!==V||t[40]!==M?(H=(0,D.jsxs)(`span`,{className:`flex min-w-0 grow basis-48 items-center`,children:[M,V]}),t[39]=V,t[40]=M,t[41]=H):H=t[41];let U;t[42]!==S||t[43]!==v||t[44]!==w||t[45]!==p?(U=p??(0,D.jsx)(b,{insertions:v,deletions:S,hideZero:w,className:`text-xs`}),t[42]=S,t[43]=v,t[44]=w,t[45]=p,t[46]=U):U=t[46];let W;t[47]!==m||t[48]!==U?(W=(0,D.jsxs)(`span`,{className:`ml-auto flex shrink-0 items-center gap-2`,children:[U,m]}),t[47]=m,t[48]=U,t[49]=W):W=t[49];let G;return t[50]!==H||t[51]!==W?(G=(0,D.jsxs)(`div`,{className:`flex w-full min-w-0 flex-wrap items-center justify-between gap-x-2 gap-y-1`,children:[H,W]}),t[50]=H,t[51]=W,t[52]=G):G=t[52],G}var ie=`rounded-lg bg-background py-1.5 pl-2 pr-3 text-xs font-medium text-foreground`;function Z({stickyHeader:e,isBodyHidden:t,isStuck:n,showStuckHeaderEdge:r=!0}){return c(ie,e&&`sticky z-30`,e&&`top-0`,!t&&`rounded-b-none`,n&&`rounded-t-none`,n&&r&&`shadow-[inset_0_1px_0_var(--border)]`)}export{re as a,I as c,Z as i,q as n,U as o,J as r,H as s,X as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Or as t,mi as n,ni as r}from"./boot-vendor-BBLG7GwQ.js";import{Qm as i,nh as a,oh as o}from"./index-DacqPN7W.js";import{o as s}from"./queued-editor-typeahead-layout-BLdiUUDF.js";var c=t(),l=e(n(),1),u=e(r(),1),d=`bg-background shadow-xs`,f=`cursor-pointer text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60`,p=o(`inline-flex items-center whitespace-nowrap rounded border border-border px-1.5 py-0.5 text-xs`,d,f);o(`text-xs`,f,`focus-visible:z-10`);var m=(0,l.forwardRef)(function(e,t){let n=(0,c.c)(11),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({className:r,type:a,...i}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let s=a===void 0?`button`:a,l;n[4]===r?l=n[5]:(l=o(p,r),n[4]=r,n[5]=l);let d;return n[6]!==i||n[7]!==t||n[8]!==l||n[9]!==s?(d=(0,u.jsx)(`button`,{ref:t,type:s,className:l,...i}),n[6]=i,n[7]=t,n[8]=l,n[9]=s,n[10]=d):d=n[10],d}),h=`relative bg-surface-raised-solid before:pointer-events-none before:absolute before:inset-y-0 before:right-full before:w-4 before:bg-gradient-to-r before:from-transparent before:to-surface-raised-solid before:content-['']`;function g(e){let t=(0,c.c)(4),{children:n,hideInCompact:r,hideInTiny:i}=e,a=r===void 0?!1:r,o=i===void 0?!0:i,s=a?``:void 0,l=o?``:void 0,d;return t[0]!==n||t[1]!==s||t[2]!==l?(d=(0,u.jsx)(`div`,{className:`ml-auto flex shrink-0 items-center gap-1.5 pr-2 text-xs text-muted-foreground`,"data-promptbox-hide-compact":s,"data-promptbox-hide-tiny":l,children:n}),t[0]=n,t[1]=s,t[2]=l,t[3]=d):d=t[3],d}function _(e){let t=(0,c.c)(27),{cancelLabel:n,children:r,label:l,onCancel:d,variant:f}=e,p=f===void 0?`embedded`:f,m=p===`cap`?`h-8 px-3`:`mb-1.5 pl-1`,h;t[0]===m?h=t[1]:(h=o(`flex min-h-7 items-center gap-1.5 text-xs text-subtle-foreground`,m),t[0]=m,t[1]=h);let g;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,u.jsx)(i,{name:`Edit`,className:`size-3.5 shrink-0`,"aria-hidden":!0}),t[2]=g):g=t[2];let _=p===`cap`&&`font-medium`,v;t[3]===_?v=t[4]:(v=o(`shrink-0`,_),t[3]=_,t[4]=v);let y;t[5]!==l||t[6]!==v?(y=(0,u.jsx)(`span`,{className:v,children:l}),t[5]=l,t[6]=v,t[7]=y):y=t[7];let b;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,u.jsx)(i,{name:`X`,className:`size-3`,"aria-hidden":!0}),t[8]=b):b=t[8];let x;t[9]!==n||t[10]!==d?(x=(0,u.jsx)(a,{type:`button`,size:`icon`,variant:`ghost`,className:`ml-auto size-6 shrink-0 text-subtle-foreground`,onClick:d,"aria-label":n,children:b}),t[9]=n,t[10]=d,t[11]=x):x=t[11];let S;t[12]!==h||t[13]!==y||t[14]!==x?(S=(0,u.jsxs)(`div`,{className:h,children:[g,y,x]}),t[12]=h,t[13]=y,t[14]=x,t[15]=S):S=t[15];let C=S;if(p===`cap`){let e;t[16]!==C||t[17]!==l?(e=(0,u.jsx)(s,{ariaLabel:l,className:`relative z-10 -mb-5 rounded-xl rounded-b-none border-b-0 bg-surface-raised-solid pb-3 shadow-lift`,children:C}),t[16]=C,t[17]=l,t[18]=e):e=t[18];let n;t[19]===r?n=t[20]:(n=(0,u.jsx)(`div`,{className:`relative z-20`,children:r}),t[19]=r,t[20]=n);let i;return t[21]!==e||t[22]!==n?(i=(0,u.jsxs)(`div`,{className:`relative z-20 space-y-2`,"data-inline-message-editor-frame":`cap`,children:[e,n]}),t[21]=e,t[22]=n,t[23]=i):i=t[23],i}let w;return t[24]!==r||t[25]!==C?(w=(0,u.jsxs)(`div`,{className:`relative z-20`,"data-inline-message-editor-frame":`embedded`,children:[C,r]}),t[24]=r,t[25]=C,t[26]=w):w=t[26],w}export{m as i,g as n,h as r,_ as t};