@halcyonlabs/app 0.47.0-halcyon.575 → 0.47.0-halcyon.581
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/dist/assets/AddMachineDialog-Chh_mb2Z.js +1 -0
- package/app/dist/assets/AddMachineDialog-Chh_mb2Z.js.br +0 -0
- package/app/dist/assets/AddMachineDialog-Chh_mb2Z.js.gz +0 -0
- package/app/dist/assets/AppCommandShortcutHint-CvnJ3Tvp.js +1 -0
- package/app/dist/assets/AppFileExternalNavigationDispatcher-4m2md0wh.js +1 -0
- package/app/dist/assets/AppFileExternalNavigationDispatcher-4m2md0wh.js.br +0 -0
- package/app/dist/assets/AppFileExternalNavigationDispatcher-4m2md0wh.js.gz +0 -0
- package/app/dist/assets/AppToasterView-CTqrU19h.js +1 -0
- package/app/dist/assets/BrowserTabDeck-7pfBjCUB.js +1 -0
- package/app/dist/assets/BrowserTabDeck-7pfBjCUB.js.br +0 -0
- package/app/dist/assets/BrowserTabDeck-7pfBjCUB.js.gz +0 -0
- package/app/dist/assets/CommandPaletteBody-B7ejd8FS.js +1 -0
- package/app/dist/assets/CommandPaletteBody-B7ejd8FS.js.br +0 -0
- package/app/dist/assets/CommandPaletteBody-B7ejd8FS.js.gz +0 -0
- package/app/dist/assets/DiffHost-C1JHHiNs.js +1 -0
- package/app/dist/assets/DiffHost-C1JHHiNs.js.br +0 -0
- package/app/dist/assets/DiffHost-C1JHHiNs.js.gz +0 -0
- package/app/dist/assets/ExperimentalFileLinkMenu-C6T2XD7T.js +1 -0
- package/app/dist/assets/ExperimentalFileLinkMenu-C6T2XD7T.js.br +0 -0
- package/app/dist/assets/ExperimentalFileLinkMenu-C6T2XD7T.js.gz +0 -0
- package/app/dist/assets/FilePreview-DQGJz6Sr.js +3 -0
- package/app/dist/assets/FilePreview-DQGJz6Sr.js.br +0 -0
- package/app/dist/assets/FilePreview-DQGJz6Sr.js.gz +0 -0
- package/app/dist/assets/GitDiffCardHeader-BcGJja9O.js +1 -0
- package/app/dist/assets/GitDiffCardHeader-BcGJja9O.js.br +0 -0
- package/app/dist/assets/GitDiffCardHeader-BcGJja9O.js.gz +0 -0
- package/app/dist/assets/InlineMessageEditorFrame-eb2Ed0RN.js +1 -0
- package/app/dist/assets/InlineMessageEditorFrame-eb2Ed0RN.js.br +0 -0
- package/app/dist/assets/InlineMessageEditorFrame-eb2Ed0RN.js.gz +0 -0
- package/app/dist/assets/MachineLabel-C-l0q-Ce.js +1 -0
- package/app/dist/assets/MachineLabel-C-l0q-Ce.js.br +0 -0
- package/app/dist/assets/MachineLabel-C-l0q-Ce.js.gz +0 -0
- package/app/dist/assets/MachineRenameDialog-BTeZ3MGO.js +1 -0
- package/app/dist/assets/MachineRenameDialog-BTeZ3MGO.js.br +0 -0
- package/app/dist/assets/MachineRenameDialog-BTeZ3MGO.js.gz +0 -0
- package/app/dist/assets/MachineSettingsView-C_Yv8rKu.js +1 -0
- package/app/dist/assets/MachineSettingsView-C_Yv8rKu.js.br +0 -0
- package/app/dist/assets/MachineSettingsView-C_Yv8rKu.js.gz +0 -0
- package/app/dist/assets/MicrophonePreferences-DmzltJkb.js +1 -0
- package/app/dist/assets/MicrophonePreferences-DmzltJkb.js.br +0 -0
- package/app/dist/assets/MicrophonePreferences-DmzltJkb.js.gz +0 -0
- package/app/dist/assets/ModelReasoningMenu-C28qCl5y.js +1 -0
- package/app/dist/assets/ModelReasoningMenu-C28qCl5y.js.br +0 -0
- package/app/dist/assets/ModelReasoningMenu-C28qCl5y.js.gz +0 -0
- package/app/dist/assets/MoonletDiff-Bhe4o6RM.js +1 -0
- package/app/dist/assets/MoonletDiff-Bhe4o6RM.js.br +0 -0
- package/app/dist/assets/MoonletDiff-Bhe4o6RM.js.gz +0 -0
- package/app/dist/assets/MoonletDiffSplit-Wkva9sZs.js +2 -0
- package/app/dist/assets/MoonletDiffSplit-Wkva9sZs.js.br +0 -0
- package/app/dist/assets/MoonletDiffSplit-Wkva9sZs.js.gz +0 -0
- package/app/dist/assets/MoonletSourceCode-DgJinZtl.js +2 -0
- package/app/dist/assets/MoonletSourceCode-DgJinZtl.js.br +0 -0
- package/app/dist/assets/MoonletSourceCode-DgJinZtl.js.gz +0 -0
- package/app/dist/assets/NewTabPage-BHxGH7hM.js +2 -0
- package/app/dist/assets/NewTabPage-BHxGH7hM.js.br +0 -0
- package/app/dist/assets/NewTabPage-BHxGH7hM.js.gz +0 -0
- package/app/dist/assets/NewThreadComposer-ByOlIG6m.js +1 -0
- package/app/dist/assets/NewThreadComposer-ByOlIG6m.js.br +0 -0
- package/app/dist/assets/NewThreadComposer-ByOlIG6m.js.gz +0 -0
- package/app/dist/assets/OnboardingFlow-dboIgESG.js +1 -0
- package/app/dist/assets/OnboardingFlow-dboIgESG.js.br +0 -0
- package/app/dist/assets/OnboardingFlow-dboIgESG.js.gz +0 -0
- package/app/dist/assets/OptionPicker-DqFHwDpg.js +1 -0
- package/app/dist/assets/OptionPicker-DqFHwDpg.js.br +0 -0
- package/app/dist/assets/OptionPicker-DqFHwDpg.js.gz +0 -0
- package/app/dist/assets/PaletteShell-DbSO6v5o.js +1 -0
- package/app/dist/assets/PaletteShell-DbSO6v5o.js.br +0 -0
- package/app/dist/assets/PaletteShell-DbSO6v5o.js.gz +0 -0
- package/app/dist/assets/PaneMaximizeButton-3ri5aGes.js +1 -0
- package/app/dist/assets/PaneMaximizeButton-3ri5aGes.js.br +0 -0
- package/app/dist/assets/PaneMaximizeButton-3ri5aGes.js.gz +0 -0
- package/app/dist/assets/PierreLineSelectionActions-Dbp9_sb9.js +1 -0
- package/app/dist/assets/PierreLineSelectionActions-Dbp9_sb9.js.br +0 -0
- package/app/dist/assets/PierreLineSelectionActions-Dbp9_sb9.js.gz +0 -0
- package/app/dist/assets/PluginPanelRightPanelHost-DJ9lN45o.js +1 -0
- package/app/dist/assets/PluginPanelRightPanelHost-DJ9lN45o.js.br +0 -0
- package/app/dist/assets/PluginPanelRightPanelHost-DJ9lN45o.js.gz +0 -0
- package/app/dist/assets/PluginSettingsSections-Cm_zOOr8.js +2 -0
- package/app/dist/assets/PluginSettingsSections-Cm_zOOr8.js.br +0 -0
- package/app/dist/assets/PluginSettingsSections-Cm_zOOr8.js.gz +0 -0
- package/app/dist/assets/PluginThreadChat-BpbUWuMg.js +1 -0
- package/app/dist/assets/PluginThreadChat-BpbUWuMg.js.br +0 -0
- package/app/dist/assets/PluginThreadChat-BpbUWuMg.js.gz +0 -0
- package/app/dist/assets/ProjectDetailSettingsView-dosGR6Hw.js +1 -0
- package/app/dist/assets/ProjectDetailSettingsView-dosGR6Hw.js.br +0 -0
- package/app/dist/assets/ProjectDetailSettingsView-dosGR6Hw.js.gz +0 -0
- package/app/dist/assets/ProjectMachineSetupDialog-Dr7NDBNy.js +1 -0
- package/app/dist/assets/ProjectMachineSetupDialog-Dr7NDBNy.js.br +0 -0
- package/app/dist/assets/ProjectMachineSetupDialog-Dr7NDBNy.js.gz +0 -0
- package/app/dist/assets/ProjectsSettingsSection-jMyKZztX.js +3 -0
- package/app/dist/assets/ProjectsSettingsSection-jMyKZztX.js.br +0 -0
- package/app/dist/assets/ProjectsSettingsSection-jMyKZztX.js.gz +0 -0
- package/app/dist/assets/QueuedMessagesList-BzCFDuHO.js +3 -0
- package/app/dist/assets/QueuedMessagesList-BzCFDuHO.js.br +0 -0
- package/app/dist/assets/QueuedMessagesList-BzCFDuHO.js.gz +0 -0
- package/app/dist/assets/RemotePathBrowser-C4wvQ9Np.js +1 -0
- package/app/dist/assets/RemotePathBrowser-C4wvQ9Np.js.br +0 -0
- package/app/dist/assets/RemotePathBrowser-C4wvQ9Np.js.gz +0 -0
- package/app/dist/assets/RootComposeView-BNXWGVrg.js +1 -0
- package/app/dist/assets/RootComposeView-BNXWGVrg.js.br +0 -0
- package/app/dist/assets/RootComposeView-BNXWGVrg.js.gz +0 -0
- package/app/dist/assets/SecondaryPanelLayout-DVv7o7T7.js +1 -0
- package/app/dist/assets/SecondaryPanelLayout-DVv7o7T7.js.br +0 -0
- package/app/dist/assets/SecondaryPanelLayout-DVv7o7T7.js.gz +0 -0
- package/app/dist/assets/ServerMoveOverlayView-DOYuQa6L.js +1 -0
- package/app/dist/assets/ServerMoveOverlayView-DOYuQa6L.js.br +0 -0
- package/app/dist/assets/ServerMoveOverlayView-DOYuQa6L.js.gz +0 -0
- package/app/dist/assets/SettingsSidebar-DmumgLsV.js +1 -0
- package/app/dist/assets/SettingsSidebar-DmumgLsV.js.br +0 -0
- package/app/dist/assets/SettingsSidebar-DmumgLsV.js.gz +0 -0
- package/app/dist/assets/SettingsView-DWn-CK3Y.js +7 -0
- package/app/dist/assets/SettingsView-DWn-CK3Y.js.br +0 -0
- package/app/dist/assets/SettingsView-DWn-CK3Y.js.gz +0 -0
- package/app/dist/assets/SidebarFooterCustomize-CZ--ft3l.js +1 -0
- package/app/dist/assets/SidebarFooterCustomize-CZ--ft3l.js.br +0 -0
- package/app/dist/assets/SidebarFooterCustomize-CZ--ft3l.js.gz +0 -0
- package/app/dist/assets/SidebarVisibilityCustomize-CWxH0XTw.js +1 -0
- package/app/dist/assets/SidebarVisibilityCustomize-CWxH0XTw.js.br +0 -0
- package/app/dist/assets/SidebarVisibilityCustomize-CWxH0XTw.js.gz +0 -0
- package/app/dist/assets/SourceCodeHost-JY-vRsj6.js +2 -0
- package/app/dist/assets/SourceCodeHost-JY-vRsj6.js.br +0 -0
- package/app/dist/assets/SourceCodeHost-JY-vRsj6.js.gz +0 -0
- package/app/dist/assets/SplitWorkspaceRoute-Cm-3-xak.js +2 -0
- package/app/dist/assets/SplitWorkspaceRoute-Cm-3-xak.js.br +0 -0
- package/app/dist/assets/SplitWorkspaceRoute-Cm-3-xak.js.gz +0 -0
- package/app/dist/assets/TerminalOutputBlock-D7puPQWC.js +4 -0
- package/app/dist/assets/TerminalOutputBlock-D7puPQWC.js.br +0 -0
- package/app/dist/assets/TerminalOutputBlock-D7puPQWC.js.gz +0 -0
- package/app/dist/assets/ThreadActionsMenu-CsUTnIGi.js +1 -0
- package/app/dist/assets/ThreadActionsMenu-CsUTnIGi.js.br +0 -0
- package/app/dist/assets/ThreadActionsMenu-CsUTnIGi.js.gz +0 -0
- package/app/dist/assets/ThreadDetailView-CLhVc3tU.js +6 -0
- package/app/dist/assets/ThreadDetailView-CLhVc3tU.js.br +0 -0
- package/app/dist/assets/ThreadDetailView-CLhVc3tU.js.gz +0 -0
- package/app/dist/assets/ThreadSearchPaletteMode-CZCoJ43F.js +1 -0
- package/app/dist/assets/ThreadSearchPaletteMode-CZCoJ43F.js.br +0 -0
- package/app/dist/assets/ThreadSearchPaletteMode-CZCoJ43F.js.gz +0 -0
- package/app/dist/assets/ThreadSecondaryPanel-DZP6hoAm.js +1 -0
- package/app/dist/assets/ThreadSecondaryPanel-DZP6hoAm.js.br +0 -0
- package/app/dist/assets/ThreadSecondaryPanel-DZP6hoAm.js.gz +0 -0
- package/app/dist/assets/ThreadSecondaryPanelTabContent-BhMnFbdh.js +3 -0
- package/app/dist/assets/ThreadSecondaryPanelTabContent-BhMnFbdh.js.br +0 -0
- package/app/dist/assets/ThreadSecondaryPanelTabContent-BhMnFbdh.js.gz +0 -0
- package/app/dist/assets/ThreadStatusGlyph-DLoXTt0W.js +1 -0
- package/app/dist/assets/ThreadStatusGlyph-DLoXTt0W.js.br +0 -0
- package/app/dist/assets/ThreadStatusGlyph-DLoXTt0W.js.gz +0 -0
- package/app/dist/assets/ThreadTerminalPanel-rmKhIpR2.js +1 -0
- package/app/dist/assets/ThreadTerminalPanel-rmKhIpR2.js.br +0 -0
- package/app/dist/assets/ThreadTerminalPanel-rmKhIpR2.js.gz +0 -0
- package/app/dist/assets/ThreadTerminalView-BCmNLbhZ.js +1 -0
- package/app/dist/assets/ThreadTerminalView-BCmNLbhZ.js.br +0 -0
- package/app/dist/assets/ThreadTerminalView-BCmNLbhZ.js.gz +0 -0
- package/app/dist/assets/ThreadTimelineNavigationContext-mz4CAz8g.js +2 -0
- package/app/dist/assets/ThreadTimelineNavigationContext-mz4CAz8g.js.br +0 -0
- package/app/dist/assets/ThreadTimelineNavigationContext-mz4CAz8g.js.gz +0 -0
- package/app/dist/assets/ThreadUnarchiveButton-Bckib2Kv.js +1 -0
- package/app/dist/assets/TimelineDetailScroll-DIYzpG14.js +1 -0
- package/app/dist/assets/TimelineDetailScroll-DIYzpG14.js.br +0 -0
- package/app/dist/assets/TimelineDetailScroll-DIYzpG14.js.gz +0 -0
- package/app/dist/assets/TimelineFileDiffBlock-rGxgMDQk.js +6 -0
- package/app/dist/assets/TimelineFileDiffBlock-rGxgMDQk.js.br +0 -0
- package/app/dist/assets/TimelineFileDiffBlock-rGxgMDQk.js.gz +0 -0
- package/app/dist/assets/TimelineSelectionMenu-BB3GIhnm.js +22 -0
- package/app/dist/assets/TimelineSelectionMenu-BB3GIhnm.js.br +0 -0
- package/app/dist/assets/TimelineSelectionMenu-BB3GIhnm.js.gz +0 -0
- package/app/dist/assets/ToolsView-CP-qiwHm.js +4 -0
- package/app/dist/assets/ToolsView-CP-qiwHm.js.br +0 -0
- package/app/dist/assets/ToolsView-CP-qiwHm.js.gz +0 -0
- package/app/dist/assets/ToolsViewSplits-6dyeEolR.js +2 -0
- package/app/dist/assets/ToolsViewSplits-6dyeEolR.js.br +0 -0
- package/app/dist/assets/ToolsViewSplits-6dyeEolR.js.gz +0 -0
- package/app/dist/assets/WaveformVisualizer-BQilSfuO.js +1 -0
- package/app/dist/assets/WaveformVisualizer-BQilSfuO.js.br +0 -0
- package/app/dist/assets/WaveformVisualizer-BQilSfuO.js.gz +0 -0
- package/app/dist/assets/absolute-file-path-DOHZ1cOR.js +1 -0
- package/app/dist/assets/app-fixed-tab-navigation-svbHtNX2.js +1 -0
- package/app/dist/assets/app-fixed-tab-navigation-svbHtNX2.js.br +0 -0
- package/app/dist/assets/app-fixed-tab-navigation-svbHtNX2.js.gz +0 -0
- package/app/dist/assets/audio-input-device-preference-ClRSlJ3W.js +1 -0
- package/app/dist/assets/audio-input-device-preference-ClRSlJ3W.js.br +0 -0
- package/app/dist/assets/audio-input-device-preference-ClRSlJ3W.js.gz +0 -0
- package/app/dist/assets/bottom-anchored-scroll-body-B6z2XqqB.js +1 -0
- package/app/dist/assets/bottom-anchored-scroll-body-B6z2XqqB.js.br +0 -0
- package/app/dist/assets/bottom-anchored-scroll-body-B6z2XqqB.js.gz +0 -0
- package/app/dist/assets/browser-url-BvXFj6Nb.js +1 -0
- package/app/dist/assets/browser-url-BvXFj6Nb.js.br +0 -0
- package/app/dist/assets/browser-url-BvXFj6Nb.js.gz +0 -0
- package/app/dist/assets/checkbox-BCAnVF8N.js +1 -0
- package/app/dist/assets/checkbox-BCAnVF8N.js.br +0 -0
- package/app/dist/assets/checkbox-BCAnVF8N.js.gz +0 -0
- package/app/dist/assets/code-loading-skeletons-D24eCxCr.js +1 -0
- package/app/dist/assets/code-loading-skeletons-D24eCxCr.js.br +0 -0
- package/app/dist/assets/code-loading-skeletons-D24eCxCr.js.gz +0 -0
- package/app/dist/assets/code-rendering-L5YOZIAv.js +1 -0
- package/app/dist/assets/code-theme-registration-CAlPtFZL.js +1 -0
- package/app/dist/assets/detail-card-CnEuQwQo.js +1 -0
- package/app/dist/assets/detail-card-CnEuQwQo.js.br +0 -0
- package/app/dist/assets/detail-card-CnEuQwQo.js.gz +0 -0
- package/app/dist/assets/diff-stats-tally-BSgKwNwX.js +1 -0
- package/app/dist/assets/diff-stats-tally-BSgKwNwX.js.br +0 -0
- package/app/dist/assets/diff-stats-tally-BSgKwNwX.js.gz +0 -0
- package/app/dist/assets/dist-i0jLXifx.js +1 -0
- package/app/dist/assets/dist-i0jLXifx.js.br +0 -0
- package/app/dist/assets/dist-i0jLXifx.js.gz +0 -0
- package/app/dist/assets/environment-mutations-cpb8jVwK.js +1 -0
- package/app/dist/assets/environment-mutations-cpb8jVwK.js.br +0 -0
- package/app/dist/assets/environment-mutations-cpb8jVwK.js.gz +0 -0
- package/app/dist/assets/environment-workspace-display-_0MorDrR.js +4 -0
- package/app/dist/assets/environment-workspace-display-_0MorDrR.js.br +0 -0
- package/app/dist/assets/environment-workspace-display-_0MorDrR.js.gz +0 -0
- package/app/dist/assets/event-code-block-C5YMFW1K.js +2 -0
- package/app/dist/assets/event-code-block-C5YMFW1K.js.br +0 -0
- package/app/dist/assets/event-code-block-C5YMFW1K.js.gz +0 -0
- package/app/dist/assets/expandable-text-U9LTvlBw.js +1 -0
- package/app/dist/assets/expandable-text-U9LTvlBw.js.br +0 -0
- package/app/dist/assets/expandable-text-U9LTvlBw.js.gz +0 -0
- package/app/dist/assets/file-opener-preference-B9Z7MrFB.js +1 -0
- package/app/dist/assets/file-path-link-DfHc0EYs.js +1 -0
- package/app/dist/assets/file-path-link-DfHc0EYs.js.br +0 -0
- package/app/dist/assets/file-path-link-DfHc0EYs.js.gz +0 -0
- package/app/dist/assets/host-mutations-C72k-mgV.js +1 -0
- package/app/dist/assets/host-mutations-C72k-mgV.js.br +0 -0
- package/app/dist/assets/host-mutations-C72k-mgV.js.gz +0 -0
- package/app/dist/assets/icon-extended-D303bkBT.js +1 -0
- package/app/dist/assets/icon-extended-D303bkBT.js.br +0 -0
- package/app/dist/assets/icon-extended-D303bkBT.js.gz +0 -0
- package/app/dist/assets/image-lightbox-BJhem-0h.js +1 -0
- package/app/dist/assets/image-lightbox-BJhem-0h.js.br +0 -0
- package/app/dist/assets/image-lightbox-BJhem-0h.js.gz +0 -0
- package/app/dist/assets/index-C0VsRvUA.js +395 -0
- package/app/dist/assets/index-C0VsRvUA.js.br +0 -0
- package/app/dist/assets/index-C0VsRvUA.js.gz +0 -0
- package/app/dist/assets/inline-rename-editor-DT8a9z60.js +1 -0
- package/app/dist/assets/inline-rename-editor-DT8a9z60.js.br +0 -0
- package/app/dist/assets/inline-rename-editor-DT8a9z60.js.gz +0 -0
- package/app/dist/assets/launcherRow-DSVHuxpF.js +1 -0
- package/app/dist/assets/launcherRow-DSVHuxpF.js.br +0 -0
- package/app/dist/assets/launcherRow-DSVHuxpF.js.gz +0 -0
- package/app/dist/assets/localhost-link-rewrite-description-D3Nk6hRe.js +1 -0
- package/app/dist/assets/localhost-link-rewrite-description-D3Nk6hRe.js.br +0 -0
- package/app/dist/assets/localhost-link-rewrite-description-D3Nk6hRe.js.gz +0 -0
- package/app/dist/assets/machine-provider-queries-DglOZNzs.js +1 -0
- package/app/dist/assets/machine-server-access-BRrRNc7m.js +1 -0
- package/app/dist/assets/markdown-file-image-routing-BsPXchpk.js +1 -0
- package/app/dist/assets/markdown-html-hGlIp2UW.js +1 -0
- package/app/dist/assets/markdown-html-hGlIp2UW.js.br +0 -0
- package/app/dist/assets/markdown-html-hGlIp2UW.js.gz +0 -0
- package/app/dist/assets/markdown-local-file-link-__LlkAqj.js +2 -0
- package/app/dist/assets/markdown-local-file-link-__LlkAqj.js.br +0 -0
- package/app/dist/assets/markdown-local-file-link-__LlkAqj.js.gz +0 -0
- package/app/dist/assets/markdown-preview-yjIRBQ-q.js +38 -0
- package/app/dist/assets/markdown-preview-yjIRBQ-q.js.br +0 -0
- package/app/dist/assets/markdown-preview-yjIRBQ-q.js.gz +0 -0
- package/app/dist/assets/markdown-prompt-mentions-CHt2H1VO.js +18 -0
- package/app/dist/assets/markdown-prompt-mentions-CHt2H1VO.js.br +0 -0
- package/app/dist/assets/markdown-prompt-mentions-CHt2H1VO.js.gz +0 -0
- package/app/dist/assets/model-load-error-message-CzJBN4Io.js +1 -0
- package/app/dist/assets/model-load-error-message-CzJBN4Io.js.br +0 -0
- package/app/dist/assets/model-load-error-message-CzJBN4Io.js.gz +0 -0
- package/app/dist/assets/onboarding-telemetry-Cj3fwztK.js +1 -0
- package/app/dist/assets/open-in-editor-button-DncCrasz.js +1 -0
- package/app/dist/assets/open-in-editor-button-DncCrasz.js.br +0 -0
- package/app/dist/assets/open-in-editor-button-DncCrasz.js.gz +0 -0
- package/app/dist/assets/page-shell-DuNWSxI3.js +1 -0
- package/app/dist/assets/page-shell-DuNWSxI3.js.br +0 -0
- package/app/dist/assets/page-shell-DuNWSxI3.js.gz +0 -0
- package/app/dist/assets/pierre-worker-pool-Edh20kGR.js +1 -0
- package/app/dist/assets/pierre-worker-pool-Edh20kGR.js.br +0 -0
- package/app/dist/assets/pierre-worker-pool-Edh20kGR.js.gz +0 -0
- package/app/dist/assets/plugin-detail-navigation-iBFdsMJq.js +1 -0
- package/app/dist/assets/plugin-detail-navigation-iBFdsMJq.js.br +0 -0
- package/app/dist/assets/plugin-detail-navigation-iBFdsMJq.js.gz +0 -0
- package/app/dist/assets/plugin-frontend-ejcyjP79.js +4 -0
- package/app/dist/assets/plugin-frontend-ejcyjP79.js.br +0 -0
- package/app/dist/assets/plugin-frontend-ejcyjP79.js.gz +0 -0
- package/app/dist/assets/plugin-ui-Cst8ozBH.js +1 -0
- package/app/dist/assets/plugin-ui-Cst8ozBH.js.br +0 -0
- package/app/dist/assets/plugin-ui-Cst8ozBH.js.gz +0 -0
- package/app/dist/assets/project-default-execution-options-query-BT8gE-uC.js +1 -0
- package/app/dist/assets/queued-editor-typeahead-layout-DwMEtAFX.js +1 -0
- package/app/dist/assets/queued-editor-typeahead-layout-DwMEtAFX.js.br +0 -0
- package/app/dist/assets/queued-editor-typeahead-layout-DwMEtAFX.js.gz +0 -0
- package/app/dist/assets/queued-messages-layout-DIM9KjmC.js +3 -0
- package/app/dist/assets/queued-messages-layout-DIM9KjmC.js.br +0 -0
- package/app/dist/assets/queued-messages-layout-DIM9KjmC.js.gz +0 -0
- package/app/dist/assets/resource-list-Dxgyp67l.js +1 -0
- package/app/dist/assets/resource-list-Dxgyp67l.js.br +0 -0
- package/app/dist/assets/resource-list-Dxgyp67l.js.gz +0 -0
- package/app/dist/assets/root-compose-create-preference-B3un2oJ3.js +1 -0
- package/app/dist/assets/save-file-CQwnhLOU.js +1 -0
- package/app/dist/assets/settings-nav-I0K9Uf3i.js +1 -0
- package/app/dist/assets/settings-nav-I0K9Uf3i.js.br +0 -0
- package/app/dist/assets/settings-nav-I0K9Uf3i.js.gz +0 -0
- package/app/dist/assets/settings-sections-bSLBnb1k.js +1 -0
- package/app/dist/assets/settings-sections-bSLBnb1k.js.br +0 -0
- package/app/dist/assets/settings-sections-bSLBnb1k.js.gz +0 -0
- package/app/dist/assets/shortcut-pill-BMcSaApF.js +1 -0
- package/app/dist/assets/sidebarTouchSensor-DQESNGm5.js +1 -0
- package/app/dist/assets/sidebarTouchSensor-DQESNGm5.js.br +0 -0
- package/app/dist/assets/sidebarTouchSensor-DQESNGm5.js.gz +0 -0
- package/app/dist/assets/switch-DCBxzJsf.js +1 -0
- package/app/dist/assets/switch-DCBxzJsf.js.br +0 -0
- package/app/dist/assets/switch-DCBxzJsf.js.gz +0 -0
- package/app/dist/assets/textarea-vqj_jZX6.js +1 -0
- package/app/dist/assets/thread-event-parser-Bcg3PFD6.js +1 -0
- package/app/dist/assets/thread-event-parser-Bcg3PFD6.js.br +0 -0
- package/app/dist/assets/thread-event-parser-Bcg3PFD6.js.gz +0 -0
- package/app/dist/assets/thread-panel-queries-BJ9JhzZt.js +1 -0
- package/app/dist/assets/thread-panel-queries-BJ9JhzZt.js.br +0 -0
- package/app/dist/assets/thread-panel-queries-BJ9JhzZt.js.gz +0 -0
- package/app/dist/assets/thread-runtime-mutations-DN73ZtMB.js +3 -0
- package/app/dist/assets/thread-runtime-mutations-DN73ZtMB.js.br +0 -0
- package/app/dist/assets/thread-runtime-mutations-DN73ZtMB.js.gz +0 -0
- package/app/dist/assets/thread-terminal-queries-BS92r_wi.js +1 -0
- package/app/dist/assets/thread-terminal-queries-BS92r_wi.js.br +0 -0
- package/app/dist/assets/thread-terminal-queries-BS92r_wi.js.gz +0 -0
- package/app/dist/assets/threadRecentItems-BzME9Np9.js +1 -0
- package/app/dist/assets/threadRecentItems-BzME9Np9.js.br +0 -0
- package/app/dist/assets/threadRecentItems-BzME9Np9.js.gz +0 -0
- package/app/dist/assets/threadWorkspaceOpenPath-CmjsLGk_.js +1 -0
- package/app/dist/assets/threadWorkspaceOpenPath-CmjsLGk_.js.br +0 -0
- package/app/dist/assets/threadWorkspaceOpenPath-CmjsLGk_.js.gz +0 -0
- package/app/dist/assets/title-bar-scroll-fade-BMBniPus.js +1 -0
- package/app/dist/assets/title-bar-scroll-fade-BMBniPus.js.br +0 -0
- package/app/dist/assets/title-bar-scroll-fade-BMBniPus.js.gz +0 -0
- package/app/dist/assets/truncate-start-CgQYzBGh.js +1 -0
- package/app/dist/assets/use-hover-popover-Cn06P4Ii.js +1 -0
- package/app/dist/assets/use-hover-popover-Cn06P4Ii.js.br +0 -0
- package/app/dist/assets/use-hover-popover-Cn06P4Ii.js.gz +0 -0
- package/app/dist/assets/useElementWidth-DhUbYVeV.js +1 -0
- package/app/dist/assets/useElementWidth-DhUbYVeV.js.br +0 -0
- package/app/dist/assets/useElementWidth-DhUbYVeV.js.gz +0 -0
- package/app/dist/assets/useLocalOpenTargets-DryOrrgz.js +1 -0
- package/app/dist/assets/useLocalOpenTargets-DryOrrgz.js.br +0 -0
- package/app/dist/assets/useLocalOpenTargets-DryOrrgz.js.gz +0 -0
- package/app/dist/assets/usePanelResizeSnap-BtRRStu7.js +1 -0
- package/app/dist/assets/usePanelResizeSnap-BtRRStu7.js.br +0 -0
- package/app/dist/assets/usePanelResizeSnap-BtRRStu7.js.gz +0 -0
- package/app/dist/assets/usePanelTerminals-BXeKB3Bd.js +1 -0
- package/app/dist/assets/usePanelTerminals-BXeKB3Bd.js.br +0 -0
- package/app/dist/assets/usePanelTerminals-BXeKB3Bd.js.gz +0 -0
- package/app/dist/assets/usePathSuggestions-0p4RTidV.js +1 -0
- package/app/dist/assets/usePathSuggestions-0p4RTidV.js.br +0 -0
- package/app/dist/assets/usePathSuggestions-0p4RTidV.js.gz +0 -0
- package/app/dist/assets/useResolvedLiveFileTarget-CQk3hWJe.js +1 -0
- package/app/dist/assets/useResolvedLiveFileTarget-CQk3hWJe.js.br +0 -0
- package/app/dist/assets/useResolvedLiveFileTarget-CQk3hWJe.js.gz +0 -0
- package/app/dist/assets/useThreadTerminalController-s_1VoUPw.js +1 -0
- package/app/dist/assets/useThreadTerminalController-s_1VoUPw.js.br +0 -0
- package/app/dist/assets/useThreadTerminalController-s_1VoUPw.js.gz +0 -0
- package/app/dist/assets/workspace-change-summary-mMeLQ_ov.js +1 -0
- package/app/dist/assets/workspace-change-summary-mMeLQ_ov.js.br +0 -0
- package/app/dist/assets/workspace-change-summary-mMeLQ_ov.js.gz +0 -0
- package/app/dist/assets/workspace-checkout-display-Jo1TNW1H.js +32 -0
- package/app/dist/assets/workspace-checkout-display-Jo1TNW1H.js.br +0 -0
- package/app/dist/assets/workspace-checkout-display-Jo1TNW1H.js.gz +0 -0
- package/app/dist/index.html +17 -17
- package/app/dist/index.html.br +0 -0
- package/app/dist/index.html.gz +0 -0
- package/dist/bb-app.js +8 -0
- package/dist/bb-host-daemon.js +8 -0
- package/dist/bb-server.js +8 -0
- package/dist/bb.js +8 -0
- package/dist/index.d.ts +69 -65
- package/dist/index.js +16 -5
- package/dist/moonlet.js +8 -0
- package/host-daemon/dist/bb +2 -2
- package/host-daemon/dist/daemon-bundle.mjs +123 -123
- package/host-daemon/dist/moonlet +2 -2
- package/host-daemon/dist/moonlet-chunks/browser-CUBKUSHZ.js +6 -0
- package/host-daemon/dist/moonlet-chunks/chunk-2FTSNIEI.js +139 -0
- package/host-daemon/dist/moonlet-chunks/chunk-4YJFQ5EA.js +2314 -0
- package/host-daemon/dist/moonlet-chunks/chunk-ADH4PTN6.js +2 -0
- package/host-daemon/dist/moonlet-chunks/chunk-AEPTTAIZ.js +2 -0
- package/host-daemon/dist/moonlet-chunks/chunk-N5W3CXPV.js +2 -0
- package/host-daemon/dist/moonlet-chunks/chunk-OEZHMQOB.js +2 -0
- package/host-daemon/dist/moonlet-chunks/chunk-OTD5OBME.js +2 -0
- package/host-daemon/dist/moonlet-chunks/chunk-X3FQVVLJ.js +2 -0
- package/host-daemon/dist/moonlet-chunks/chunk-XBV7EROQ.js +2 -0
- package/host-daemon/dist/moonlet-chunks/chunk-XD7PZOUX.js +2 -0
- package/host-daemon/dist/moonlet-chunks/chunk-XLZ7QHUF.js +6 -0
- package/host-daemon/dist/moonlet-chunks/client-2WIVWH3X.js +2 -0
- package/host-daemon/dist/moonlet-chunks/commander-errors-2AAIYL5I.js +3 -0
- package/host-daemon/dist/moonlet-chunks/context-env-IXWQJ2LT.js +2 -0
- package/host-daemon/dist/moonlet-chunks/context-hints-IQQMB675.js +2 -0
- package/host-daemon/dist/moonlet-chunks/diagnostics-UKD4IRCX.js +3 -0
- package/host-daemon/dist/moonlet-chunks/environment-QIWKOTCP.js +2 -0
- package/host-daemon/dist/moonlet-chunks/file-V764AHHN.js +3 -0
- package/host-daemon/dist/moonlet-chunks/guide-AQXGODI5.js +4 -0
- package/host-daemon/dist/moonlet-chunks/machine-Y6JSTCUN.js +2 -0
- package/host-daemon/dist/moonlet-chunks/marketplace-GPSSVYD2.js +2 -0
- package/host-daemon/dist/moonlet-chunks/permissions-GYAE5PHH.js +2 -0
- package/host-daemon/dist/moonlet-chunks/plugin-JQKPX5US.js +2633 -0
- package/host-daemon/dist/moonlet-chunks/plugin-cli-proxy-ZGZPCHBW.js +2 -0
- package/host-daemon/dist/moonlet-chunks/project-TDTQGN3T.js +2 -0
- package/host-daemon/dist/moonlet-chunks/prompt-history-5ZO7KUKJ.js +2 -0
- package/host-daemon/dist/moonlet-chunks/provider-S63KSJMT.js +2 -0
- package/host-daemon/dist/moonlet-chunks/schedule-VKAXMACK.js +2 -0
- package/host-daemon/dist/moonlet-chunks/server-DGETQJ4D.js +8 -0
- package/host-daemon/dist/moonlet-chunks/settings-FZI2AISJ.js +4 -0
- package/host-daemon/dist/moonlet-chunks/skill-ISLJGVCW.js +5 -0
- package/host-daemon/dist/moonlet-chunks/status-XOLHTLDG.js +2 -0
- package/host-daemon/dist/moonlet-chunks/terminal-7JA2544O.js +3 -0
- package/host-daemon/dist/moonlet-chunks/theme-T7N3VBAY.js +2 -0
- package/host-daemon/dist/moonlet-chunks/thread-YGOYKJJL.js +29 -0
- package/host-daemon/dist/moonlet-chunks/thread-event-parser-DW7UJPOR.js +2 -0
- package/host-daemon/dist/moonlet-chunks/updates-HYU6OPUD.js +2 -0
- package/host-daemon/dist/moonlet-chunks/voice-QT7PC67P.js +2 -0
- package/package.json +2 -2
- package/server/dist/builtin-plugins/library/dist/server.js +1 -1
- package/server/dist/builtin-plugins/orbit/dist/app.js +46 -46
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/bundle/scripts/orbit-job-supervisor +13 -93
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/manifest.json +6 -6
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/orbit-deploy +0 -0
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-linux/codex.sh +5 -13
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-linux/proton-mail.sh +5 -0
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-linux.toml +0 -8
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/codex-npm.sh +2 -4
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/default-linux.toml +0 -2
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/server-linux.toml +0 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/revision +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/source.json +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/plugins/moonlet/front/CLAUDE.md +24 -13
- package/server/dist/builtin-plugins/orbit/dist/assets/plugins/moonlet/front/platform.md +4 -3
- package/server/dist/builtin-plugins/orbit/dist/host.js +93 -180
- package/server/dist/builtin-plugins/orbit/dist/host.meta.json +1 -1
- package/server/dist/builtin-plugins/orbit/dist/server.js +525 -633
- package/server/dist/builtin-plugins/provider-acp/dist/host.js +131 -131
- package/server/dist/builtin-plugins/provider-acp/dist/host.meta.json +1 -1
- package/server/dist/builtin-plugins/provider-acp/dist/server.js +133 -133
- package/server/dist/builtin-plugins/provider-claude-code/dist/host.js +111 -111
- package/server/dist/builtin-plugins/provider-claude-code/dist/host.meta.json +1 -1
- package/server/dist/builtin-plugins/provider-codex/dist/host.js +53 -53
- package/server/dist/builtin-plugins/provider-codex/dist/host.meta.json +1 -1
- package/server/dist/builtin-plugins/provider-pi/dist/host.js +54 -54
- package/server/dist/builtin-plugins/provider-pi/dist/host.meta.json +1 -1
- package/server/dist/drizzle/0158_thread_provider_settings.sql +1 -0
- package/server/dist/drizzle/meta/0158_snapshot.json +6158 -0
- package/server/dist/drizzle/meta/_journal.json +7 -0
- package/server/dist/start-server.js +87 -9
- package/app/dist/assets/AddMachineDialog-Ow6c-943.js +0 -1
- package/app/dist/assets/AddMachineDialog-Ow6c-943.js.br +0 -0
- package/app/dist/assets/AddMachineDialog-Ow6c-943.js.gz +0 -0
- package/app/dist/assets/AppCommandShortcutHint-B0PFzJiA.js +0 -1
- package/app/dist/assets/AppFileExternalNavigationDispatcher-Q_sB9acE.js +0 -1
- package/app/dist/assets/AppFileExternalNavigationDispatcher-Q_sB9acE.js.br +0 -0
- package/app/dist/assets/AppFileExternalNavigationDispatcher-Q_sB9acE.js.gz +0 -0
- package/app/dist/assets/AppToasterView-BlINrtrZ.js +0 -1
- package/app/dist/assets/BrowserTabDeck-Bjh0cNqR.js +0 -1
- package/app/dist/assets/BrowserTabDeck-Bjh0cNqR.js.br +0 -0
- package/app/dist/assets/BrowserTabDeck-Bjh0cNqR.js.gz +0 -0
- package/app/dist/assets/CommandPaletteBody-D3LDmvAp.js +0 -1
- package/app/dist/assets/CommandPaletteBody-D3LDmvAp.js.br +0 -0
- package/app/dist/assets/CommandPaletteBody-D3LDmvAp.js.gz +0 -0
- package/app/dist/assets/DiffHost-CSAeunsC.js +0 -1
- package/app/dist/assets/DiffHost-CSAeunsC.js.br +0 -0
- package/app/dist/assets/DiffHost-CSAeunsC.js.gz +0 -0
- package/app/dist/assets/ExperimentalFileLinkMenu-BWwOEgvv.js +0 -1
- package/app/dist/assets/ExperimentalFileLinkMenu-BWwOEgvv.js.br +0 -0
- package/app/dist/assets/ExperimentalFileLinkMenu-BWwOEgvv.js.gz +0 -0
- package/app/dist/assets/FilePreview-YHTwIsoJ.js +0 -3
- package/app/dist/assets/FilePreview-YHTwIsoJ.js.br +0 -0
- package/app/dist/assets/FilePreview-YHTwIsoJ.js.gz +0 -0
- package/app/dist/assets/GitDiffCardHeader-7UAivwrb.js +0 -1
- package/app/dist/assets/GitDiffCardHeader-7UAivwrb.js.br +0 -0
- package/app/dist/assets/GitDiffCardHeader-7UAivwrb.js.gz +0 -0
- package/app/dist/assets/InlineMessageEditorFrame-DZjNaijP.js +0 -1
- package/app/dist/assets/InlineMessageEditorFrame-DZjNaijP.js.br +0 -0
- package/app/dist/assets/InlineMessageEditorFrame-DZjNaijP.js.gz +0 -0
- package/app/dist/assets/MachineLabel-B51DrQci.js +0 -1
- package/app/dist/assets/MachineLabel-B51DrQci.js.br +0 -0
- package/app/dist/assets/MachineLabel-B51DrQci.js.gz +0 -0
- package/app/dist/assets/MachineRenameDialog-VRNWTnis.js +0 -1
- package/app/dist/assets/MachineRenameDialog-VRNWTnis.js.br +0 -0
- package/app/dist/assets/MachineRenameDialog-VRNWTnis.js.gz +0 -0
- package/app/dist/assets/MachineSettingsView-DuRTADE7.js +0 -1
- package/app/dist/assets/MachineSettingsView-DuRTADE7.js.br +0 -0
- package/app/dist/assets/MachineSettingsView-DuRTADE7.js.gz +0 -0
- package/app/dist/assets/MicrophonePreferences-m4_bOx6H.js +0 -1
- package/app/dist/assets/MicrophonePreferences-m4_bOx6H.js.br +0 -0
- package/app/dist/assets/MicrophonePreferences-m4_bOx6H.js.gz +0 -0
- package/app/dist/assets/ModelReasoningMenu-uxobA86p.js +0 -1
- package/app/dist/assets/ModelReasoningMenu-uxobA86p.js.br +0 -0
- package/app/dist/assets/ModelReasoningMenu-uxobA86p.js.gz +0 -0
- package/app/dist/assets/MoonletDiff-DqMKHf_D.js +0 -1
- package/app/dist/assets/MoonletDiff-DqMKHf_D.js.br +0 -0
- package/app/dist/assets/MoonletDiff-DqMKHf_D.js.gz +0 -0
- package/app/dist/assets/MoonletDiffSplit-DI05Vay6.js +0 -2
- package/app/dist/assets/MoonletDiffSplit-DI05Vay6.js.br +0 -0
- package/app/dist/assets/MoonletDiffSplit-DI05Vay6.js.gz +0 -0
- package/app/dist/assets/MoonletSourceCode-BfJr6lWc.js +0 -2
- package/app/dist/assets/MoonletSourceCode-BfJr6lWc.js.br +0 -0
- package/app/dist/assets/MoonletSourceCode-BfJr6lWc.js.gz +0 -0
- package/app/dist/assets/NewTabPage-DSUNL96m.js +0 -2
- package/app/dist/assets/NewTabPage-DSUNL96m.js.br +0 -0
- package/app/dist/assets/NewTabPage-DSUNL96m.js.gz +0 -0
- package/app/dist/assets/NewThreadComposer-DhjQyTza.js +0 -1
- package/app/dist/assets/NewThreadComposer-DhjQyTza.js.br +0 -0
- package/app/dist/assets/NewThreadComposer-DhjQyTza.js.gz +0 -0
- package/app/dist/assets/OnboardingFlow-BV8xlQdp.js +0 -1
- package/app/dist/assets/OnboardingFlow-BV8xlQdp.js.br +0 -0
- package/app/dist/assets/OnboardingFlow-BV8xlQdp.js.gz +0 -0
- package/app/dist/assets/OptionPicker-DPsfVDVu.js +0 -1
- package/app/dist/assets/OptionPicker-DPsfVDVu.js.br +0 -0
- package/app/dist/assets/OptionPicker-DPsfVDVu.js.gz +0 -0
- package/app/dist/assets/PaletteShell-C-uKpq-z.js +0 -1
- package/app/dist/assets/PaletteShell-C-uKpq-z.js.br +0 -0
- package/app/dist/assets/PaletteShell-C-uKpq-z.js.gz +0 -0
- package/app/dist/assets/PaneMaximizeButton-BzkcIloO.js +0 -1
- package/app/dist/assets/PaneMaximizeButton-BzkcIloO.js.br +0 -0
- package/app/dist/assets/PaneMaximizeButton-BzkcIloO.js.gz +0 -0
- package/app/dist/assets/PierreLineSelectionActions-B_cVYuMu.js +0 -1
- package/app/dist/assets/PierreLineSelectionActions-B_cVYuMu.js.br +0 -0
- package/app/dist/assets/PierreLineSelectionActions-B_cVYuMu.js.gz +0 -0
- package/app/dist/assets/PluginPanelRightPanelHost-CuIJH3D6.js +0 -1
- package/app/dist/assets/PluginPanelRightPanelHost-CuIJH3D6.js.br +0 -0
- package/app/dist/assets/PluginPanelRightPanelHost-CuIJH3D6.js.gz +0 -0
- package/app/dist/assets/PluginSettingsSections-quTFx_zt.js +0 -2
- package/app/dist/assets/PluginSettingsSections-quTFx_zt.js.br +0 -0
- package/app/dist/assets/PluginSettingsSections-quTFx_zt.js.gz +0 -0
- package/app/dist/assets/PluginThreadChat-B6BM7m3u.js +0 -1
- package/app/dist/assets/PluginThreadChat-B6BM7m3u.js.br +0 -0
- package/app/dist/assets/PluginThreadChat-B6BM7m3u.js.gz +0 -0
- package/app/dist/assets/ProjectDetailSettingsView-BttDAy9_.js +0 -1
- package/app/dist/assets/ProjectDetailSettingsView-BttDAy9_.js.br +0 -0
- package/app/dist/assets/ProjectDetailSettingsView-BttDAy9_.js.gz +0 -0
- package/app/dist/assets/ProjectMachineSetupDialog-D2LAIU-D.js +0 -1
- package/app/dist/assets/ProjectMachineSetupDialog-D2LAIU-D.js.br +0 -0
- package/app/dist/assets/ProjectMachineSetupDialog-D2LAIU-D.js.gz +0 -0
- package/app/dist/assets/ProjectsSettingsSection--LYniCBk.js +0 -3
- package/app/dist/assets/ProjectsSettingsSection--LYniCBk.js.br +0 -0
- package/app/dist/assets/ProjectsSettingsSection--LYniCBk.js.gz +0 -0
- package/app/dist/assets/QueuedMessagesList-DFRDnic6.js +0 -3
- package/app/dist/assets/QueuedMessagesList-DFRDnic6.js.br +0 -0
- package/app/dist/assets/QueuedMessagesList-DFRDnic6.js.gz +0 -0
- package/app/dist/assets/RemotePathBrowser-BBsw-81O.js +0 -1
- package/app/dist/assets/RemotePathBrowser-BBsw-81O.js.br +0 -0
- package/app/dist/assets/RemotePathBrowser-BBsw-81O.js.gz +0 -0
- package/app/dist/assets/RootComposeView-CDoH-ufM.js +0 -1
- package/app/dist/assets/RootComposeView-CDoH-ufM.js.br +0 -0
- package/app/dist/assets/RootComposeView-CDoH-ufM.js.gz +0 -0
- package/app/dist/assets/SecondaryPanelLayout-DTNLdKqv.js +0 -1
- package/app/dist/assets/SecondaryPanelLayout-DTNLdKqv.js.br +0 -0
- package/app/dist/assets/SecondaryPanelLayout-DTNLdKqv.js.gz +0 -0
- package/app/dist/assets/ServerMoveOverlayView-BIpg7BAH.js +0 -1
- package/app/dist/assets/ServerMoveOverlayView-BIpg7BAH.js.br +0 -0
- package/app/dist/assets/ServerMoveOverlayView-BIpg7BAH.js.gz +0 -0
- package/app/dist/assets/SettingsSidebar-N5A3oK2E.js +0 -1
- package/app/dist/assets/SettingsSidebar-N5A3oK2E.js.br +0 -0
- package/app/dist/assets/SettingsSidebar-N5A3oK2E.js.gz +0 -0
- package/app/dist/assets/SettingsView-D3octbVP.js +0 -7
- package/app/dist/assets/SettingsView-D3octbVP.js.br +0 -0
- package/app/dist/assets/SettingsView-D3octbVP.js.gz +0 -0
- package/app/dist/assets/SidebarFooterCustomize-DzJSRgNu.js +0 -1
- package/app/dist/assets/SidebarFooterCustomize-DzJSRgNu.js.br +0 -0
- package/app/dist/assets/SidebarFooterCustomize-DzJSRgNu.js.gz +0 -0
- package/app/dist/assets/SidebarVisibilityCustomize-DV8JfnuK.js +0 -1
- package/app/dist/assets/SidebarVisibilityCustomize-DV8JfnuK.js.br +0 -0
- package/app/dist/assets/SidebarVisibilityCustomize-DV8JfnuK.js.gz +0 -0
- package/app/dist/assets/SourceCodeHost-B6Z-qk5v.js +0 -2
- package/app/dist/assets/SourceCodeHost-B6Z-qk5v.js.br +0 -0
- package/app/dist/assets/SourceCodeHost-B6Z-qk5v.js.gz +0 -0
- package/app/dist/assets/SplitWorkspaceRoute-CxxlEhz8.js +0 -2
- package/app/dist/assets/SplitWorkspaceRoute-CxxlEhz8.js.br +0 -0
- package/app/dist/assets/SplitWorkspaceRoute-CxxlEhz8.js.gz +0 -0
- package/app/dist/assets/TerminalOutputBlock-DRXON4Z0.js +0 -4
- package/app/dist/assets/TerminalOutputBlock-DRXON4Z0.js.br +0 -0
- package/app/dist/assets/TerminalOutputBlock-DRXON4Z0.js.gz +0 -0
- package/app/dist/assets/ThreadActionsMenu-DUzFD5MN.js +0 -1
- package/app/dist/assets/ThreadActionsMenu-DUzFD5MN.js.br +0 -0
- package/app/dist/assets/ThreadActionsMenu-DUzFD5MN.js.gz +0 -0
- package/app/dist/assets/ThreadDetailView-C3WRgLcc.js +0 -6
- package/app/dist/assets/ThreadDetailView-C3WRgLcc.js.br +0 -0
- package/app/dist/assets/ThreadDetailView-C3WRgLcc.js.gz +0 -0
- package/app/dist/assets/ThreadSearchPaletteMode-BuxwK8rt.js +0 -1
- package/app/dist/assets/ThreadSearchPaletteMode-BuxwK8rt.js.br +0 -0
- package/app/dist/assets/ThreadSearchPaletteMode-BuxwK8rt.js.gz +0 -0
- package/app/dist/assets/ThreadSecondaryPanel-CGErVdSC.js +0 -1
- package/app/dist/assets/ThreadSecondaryPanel-CGErVdSC.js.br +0 -0
- package/app/dist/assets/ThreadSecondaryPanel-CGErVdSC.js.gz +0 -0
- package/app/dist/assets/ThreadSecondaryPanelTabContent-3ayqIJeS.js +0 -3
- package/app/dist/assets/ThreadSecondaryPanelTabContent-3ayqIJeS.js.br +0 -0
- package/app/dist/assets/ThreadSecondaryPanelTabContent-3ayqIJeS.js.gz +0 -0
- package/app/dist/assets/ThreadStatusGlyph-ADqvs_ye.js +0 -1
- package/app/dist/assets/ThreadStatusGlyph-ADqvs_ye.js.br +0 -0
- package/app/dist/assets/ThreadStatusGlyph-ADqvs_ye.js.gz +0 -0
- package/app/dist/assets/ThreadTerminalPanel-BcKbYbVq.js +0 -1
- package/app/dist/assets/ThreadTerminalPanel-BcKbYbVq.js.br +0 -0
- package/app/dist/assets/ThreadTerminalPanel-BcKbYbVq.js.gz +0 -0
- package/app/dist/assets/ThreadTerminalView-vzP69mhO.js +0 -1
- package/app/dist/assets/ThreadTerminalView-vzP69mhO.js.br +0 -0
- package/app/dist/assets/ThreadTerminalView-vzP69mhO.js.gz +0 -0
- package/app/dist/assets/ThreadTimelineNavigationContext-CnewLM1o.js +0 -2
- package/app/dist/assets/ThreadTimelineNavigationContext-CnewLM1o.js.br +0 -0
- package/app/dist/assets/ThreadTimelineNavigationContext-CnewLM1o.js.gz +0 -0
- package/app/dist/assets/ThreadUnarchiveButton-DYp_u2rl.js +0 -1
- package/app/dist/assets/TimelineDetailScroll-CGhHjVy3.js +0 -1
- package/app/dist/assets/TimelineDetailScroll-CGhHjVy3.js.br +0 -0
- package/app/dist/assets/TimelineDetailScroll-CGhHjVy3.js.gz +0 -0
- package/app/dist/assets/TimelineFileDiffBlock-C9DuA8dq.js +0 -6
- package/app/dist/assets/TimelineFileDiffBlock-C9DuA8dq.js.br +0 -0
- package/app/dist/assets/TimelineFileDiffBlock-C9DuA8dq.js.gz +0 -0
- package/app/dist/assets/TimelineSelectionMenu-CjMRuhAE.js +0 -22
- package/app/dist/assets/TimelineSelectionMenu-CjMRuhAE.js.br +0 -0
- package/app/dist/assets/TimelineSelectionMenu-CjMRuhAE.js.gz +0 -0
- package/app/dist/assets/ToolsView-Cz9X2Grd.js +0 -4
- package/app/dist/assets/ToolsView-Cz9X2Grd.js.br +0 -0
- package/app/dist/assets/ToolsView-Cz9X2Grd.js.gz +0 -0
- package/app/dist/assets/ToolsViewSplits-CiBlkWtT.js +0 -2
- package/app/dist/assets/ToolsViewSplits-CiBlkWtT.js.br +0 -0
- package/app/dist/assets/ToolsViewSplits-CiBlkWtT.js.gz +0 -0
- package/app/dist/assets/WaveformVisualizer-NIjLj9ur.js +0 -1
- package/app/dist/assets/WaveformVisualizer-NIjLj9ur.js.br +0 -0
- package/app/dist/assets/WaveformVisualizer-NIjLj9ur.js.gz +0 -0
- package/app/dist/assets/absolute-file-path-CDwcM9Ef.js +0 -1
- package/app/dist/assets/app-fixed-tab-navigation-BuIF35bL.js +0 -1
- package/app/dist/assets/app-fixed-tab-navigation-BuIF35bL.js.br +0 -0
- package/app/dist/assets/app-fixed-tab-navigation-BuIF35bL.js.gz +0 -0
- package/app/dist/assets/audio-input-device-preference-_s4XN4ev.js +0 -1
- package/app/dist/assets/audio-input-device-preference-_s4XN4ev.js.br +0 -0
- package/app/dist/assets/audio-input-device-preference-_s4XN4ev.js.gz +0 -0
- package/app/dist/assets/bottom-anchored-scroll-body-DEBg6Xi2.js +0 -1
- package/app/dist/assets/bottom-anchored-scroll-body-DEBg6Xi2.js.br +0 -0
- package/app/dist/assets/bottom-anchored-scroll-body-DEBg6Xi2.js.gz +0 -0
- package/app/dist/assets/browser-url-DlQGZzAM.js +0 -1
- package/app/dist/assets/browser-url-DlQGZzAM.js.br +0 -0
- package/app/dist/assets/browser-url-DlQGZzAM.js.gz +0 -0
- package/app/dist/assets/checkbox-DUs8jBrc.js +0 -1
- package/app/dist/assets/checkbox-DUs8jBrc.js.br +0 -0
- package/app/dist/assets/checkbox-DUs8jBrc.js.gz +0 -0
- package/app/dist/assets/code-loading-skeletons-O8GLTN85.js +0 -1
- package/app/dist/assets/code-loading-skeletons-O8GLTN85.js.br +0 -0
- package/app/dist/assets/code-loading-skeletons-O8GLTN85.js.gz +0 -0
- package/app/dist/assets/code-rendering-rwYamNx_.js +0 -1
- package/app/dist/assets/code-theme-registration-BGsFUBT6.js +0 -1
- package/app/dist/assets/detail-card-BEiRrJPf.js +0 -1
- package/app/dist/assets/detail-card-BEiRrJPf.js.br +0 -0
- package/app/dist/assets/detail-card-BEiRrJPf.js.gz +0 -0
- package/app/dist/assets/diff-stats-tally-CCnkW9Vj.js +0 -1
- package/app/dist/assets/diff-stats-tally-CCnkW9Vj.js.br +0 -0
- package/app/dist/assets/diff-stats-tally-CCnkW9Vj.js.gz +0 -0
- package/app/dist/assets/dist-CNTFtoyE.js +0 -1
- package/app/dist/assets/dist-CNTFtoyE.js.br +0 -0
- package/app/dist/assets/dist-CNTFtoyE.js.gz +0 -0
- package/app/dist/assets/environment-mutations-CFgVveZw.js +0 -1
- package/app/dist/assets/environment-mutations-CFgVveZw.js.br +0 -0
- package/app/dist/assets/environment-mutations-CFgVveZw.js.gz +0 -0
- package/app/dist/assets/environment-workspace-display-C_txVr6Y.js +0 -4
- package/app/dist/assets/environment-workspace-display-C_txVr6Y.js.br +0 -0
- package/app/dist/assets/environment-workspace-display-C_txVr6Y.js.gz +0 -0
- package/app/dist/assets/event-code-block-CSGNxUHH.js +0 -2
- package/app/dist/assets/event-code-block-CSGNxUHH.js.br +0 -0
- package/app/dist/assets/event-code-block-CSGNxUHH.js.gz +0 -0
- package/app/dist/assets/expandable-text-JUuftVrI.js +0 -1
- package/app/dist/assets/expandable-text-JUuftVrI.js.br +0 -0
- package/app/dist/assets/expandable-text-JUuftVrI.js.gz +0 -0
- package/app/dist/assets/file-opener-preference-BW3PlwU3.js +0 -1
- package/app/dist/assets/file-path-link-CW08YrCP.js +0 -1
- package/app/dist/assets/file-path-link-CW08YrCP.js.br +0 -0
- package/app/dist/assets/file-path-link-CW08YrCP.js.gz +0 -0
- package/app/dist/assets/host-mutations-C23z-eC1.js +0 -1
- package/app/dist/assets/host-mutations-C23z-eC1.js.br +0 -0
- package/app/dist/assets/host-mutations-C23z-eC1.js.gz +0 -0
- package/app/dist/assets/icon-extended-CPPdYQso.js +0 -1
- package/app/dist/assets/icon-extended-CPPdYQso.js.br +0 -0
- package/app/dist/assets/icon-extended-CPPdYQso.js.gz +0 -0
- package/app/dist/assets/image-lightbox-DRZ90Eyk.js +0 -1
- package/app/dist/assets/image-lightbox-DRZ90Eyk.js.br +0 -0
- package/app/dist/assets/image-lightbox-DRZ90Eyk.js.gz +0 -0
- package/app/dist/assets/index-BEgYxomX.js +0 -395
- package/app/dist/assets/index-BEgYxomX.js.br +0 -0
- package/app/dist/assets/index-BEgYxomX.js.gz +0 -0
- package/app/dist/assets/inline-rename-editor-D-FJGDvY.js +0 -1
- package/app/dist/assets/inline-rename-editor-D-FJGDvY.js.br +0 -0
- package/app/dist/assets/inline-rename-editor-D-FJGDvY.js.gz +0 -0
- package/app/dist/assets/launcherRow-Dlb9skkR.js +0 -1
- package/app/dist/assets/launcherRow-Dlb9skkR.js.br +0 -0
- package/app/dist/assets/launcherRow-Dlb9skkR.js.gz +0 -0
- package/app/dist/assets/localhost-link-rewrite-description-CAnEithY.js +0 -1
- package/app/dist/assets/localhost-link-rewrite-description-CAnEithY.js.br +0 -0
- package/app/dist/assets/localhost-link-rewrite-description-CAnEithY.js.gz +0 -0
- package/app/dist/assets/machine-provider-queries-VGUPM35j.js +0 -1
- package/app/dist/assets/machine-server-access-CahGf_WO.js +0 -1
- package/app/dist/assets/markdown-file-image-routing-DSL32HVw.js +0 -1
- package/app/dist/assets/markdown-html-hVru8zTE.js +0 -1
- package/app/dist/assets/markdown-html-hVru8zTE.js.br +0 -0
- package/app/dist/assets/markdown-html-hVru8zTE.js.gz +0 -0
- package/app/dist/assets/markdown-local-file-link-CCG3lfBn.js +0 -2
- package/app/dist/assets/markdown-local-file-link-CCG3lfBn.js.br +0 -0
- package/app/dist/assets/markdown-local-file-link-CCG3lfBn.js.gz +0 -0
- package/app/dist/assets/markdown-preview-C0Qpours.js +0 -38
- package/app/dist/assets/markdown-preview-C0Qpours.js.br +0 -0
- package/app/dist/assets/markdown-preview-C0Qpours.js.gz +0 -0
- package/app/dist/assets/markdown-prompt-mentions-H-LUlwpD.js +0 -18
- package/app/dist/assets/markdown-prompt-mentions-H-LUlwpD.js.br +0 -0
- package/app/dist/assets/markdown-prompt-mentions-H-LUlwpD.js.gz +0 -0
- package/app/dist/assets/model-load-error-message-qpH_juN1.js +0 -1
- package/app/dist/assets/model-load-error-message-qpH_juN1.js.br +0 -0
- package/app/dist/assets/model-load-error-message-qpH_juN1.js.gz +0 -0
- package/app/dist/assets/onboarding-telemetry-Ogb5JaiK.js +0 -1
- package/app/dist/assets/open-in-editor-button-Drkvi3H9.js +0 -1
- package/app/dist/assets/open-in-editor-button-Drkvi3H9.js.br +0 -0
- package/app/dist/assets/open-in-editor-button-Drkvi3H9.js.gz +0 -0
- package/app/dist/assets/page-shell-CpF2z1BI.js +0 -1
- package/app/dist/assets/page-shell-CpF2z1BI.js.br +0 -0
- package/app/dist/assets/page-shell-CpF2z1BI.js.gz +0 -0
- package/app/dist/assets/pierre-worker-pool-D4DgR8ks.js +0 -1
- package/app/dist/assets/pierre-worker-pool-D4DgR8ks.js.br +0 -0
- package/app/dist/assets/pierre-worker-pool-D4DgR8ks.js.gz +0 -0
- package/app/dist/assets/plugin-detail-navigation-C4pzLByF.js +0 -1
- package/app/dist/assets/plugin-detail-navigation-C4pzLByF.js.br +0 -0
- package/app/dist/assets/plugin-detail-navigation-C4pzLByF.js.gz +0 -0
- package/app/dist/assets/plugin-frontend-BCIyxAyB.js +0 -4
- package/app/dist/assets/plugin-frontend-BCIyxAyB.js.br +0 -0
- package/app/dist/assets/plugin-frontend-BCIyxAyB.js.gz +0 -0
- package/app/dist/assets/plugin-ui-CcHDi-ru.js +0 -1
- package/app/dist/assets/plugin-ui-CcHDi-ru.js.br +0 -0
- package/app/dist/assets/plugin-ui-CcHDi-ru.js.gz +0 -0
- package/app/dist/assets/project-default-execution-options-query-VZ-GOPnt.js +0 -1
- package/app/dist/assets/queued-editor-typeahead-layout-BkOXKFNJ.js +0 -1
- package/app/dist/assets/queued-editor-typeahead-layout-BkOXKFNJ.js.br +0 -0
- package/app/dist/assets/queued-editor-typeahead-layout-BkOXKFNJ.js.gz +0 -0
- package/app/dist/assets/queued-messages-layout-Df9MDVGI.js +0 -3
- package/app/dist/assets/queued-messages-layout-Df9MDVGI.js.br +0 -0
- package/app/dist/assets/queued-messages-layout-Df9MDVGI.js.gz +0 -0
- package/app/dist/assets/resource-list-DVki7xWg.js +0 -1
- package/app/dist/assets/resource-list-DVki7xWg.js.br +0 -0
- package/app/dist/assets/resource-list-DVki7xWg.js.gz +0 -0
- package/app/dist/assets/root-compose-create-preference-DIAh1lgC.js +0 -1
- package/app/dist/assets/save-file-FImT3azH.js +0 -1
- package/app/dist/assets/settings-nav-C78F8UV4.js +0 -1
- package/app/dist/assets/settings-nav-C78F8UV4.js.br +0 -0
- package/app/dist/assets/settings-nav-C78F8UV4.js.gz +0 -0
- package/app/dist/assets/settings-sections-DCycTchT.js +0 -1
- package/app/dist/assets/settings-sections-DCycTchT.js.br +0 -0
- package/app/dist/assets/settings-sections-DCycTchT.js.gz +0 -0
- package/app/dist/assets/shortcut-pill-DEtZ910V.js +0 -1
- package/app/dist/assets/sidebarTouchSensor-rJ11ow8x.js +0 -1
- package/app/dist/assets/sidebarTouchSensor-rJ11ow8x.js.br +0 -0
- package/app/dist/assets/sidebarTouchSensor-rJ11ow8x.js.gz +0 -0
- package/app/dist/assets/switch-DzxbEiUj.js +0 -1
- package/app/dist/assets/switch-DzxbEiUj.js.br +0 -0
- package/app/dist/assets/switch-DzxbEiUj.js.gz +0 -0
- package/app/dist/assets/textarea-xkTrbHn2.js +0 -1
- package/app/dist/assets/thread-event-parser-BKdTDoIN.js +0 -1
- package/app/dist/assets/thread-event-parser-BKdTDoIN.js.br +0 -0
- package/app/dist/assets/thread-event-parser-BKdTDoIN.js.gz +0 -0
- package/app/dist/assets/thread-panel-queries-C2KYcUW4.js +0 -1
- package/app/dist/assets/thread-panel-queries-C2KYcUW4.js.br +0 -0
- package/app/dist/assets/thread-panel-queries-C2KYcUW4.js.gz +0 -0
- package/app/dist/assets/thread-runtime-mutations-leRMUDaI.js +0 -3
- package/app/dist/assets/thread-runtime-mutations-leRMUDaI.js.br +0 -0
- package/app/dist/assets/thread-runtime-mutations-leRMUDaI.js.gz +0 -0
- package/app/dist/assets/thread-terminal-queries-6-JHucMw.js +0 -1
- package/app/dist/assets/thread-terminal-queries-6-JHucMw.js.br +0 -0
- package/app/dist/assets/thread-terminal-queries-6-JHucMw.js.gz +0 -0
- package/app/dist/assets/threadRecentItems-B5l0vAYh.js +0 -1
- package/app/dist/assets/threadRecentItems-B5l0vAYh.js.br +0 -0
- package/app/dist/assets/threadRecentItems-B5l0vAYh.js.gz +0 -0
- package/app/dist/assets/threadWorkspaceOpenPath-BO2fNUfW.js +0 -1
- package/app/dist/assets/threadWorkspaceOpenPath-BO2fNUfW.js.br +0 -0
- package/app/dist/assets/threadWorkspaceOpenPath-BO2fNUfW.js.gz +0 -0
- package/app/dist/assets/title-bar-scroll-fade-BuYyDiQ5.js +0 -1
- package/app/dist/assets/title-bar-scroll-fade-BuYyDiQ5.js.br +0 -0
- package/app/dist/assets/title-bar-scroll-fade-BuYyDiQ5.js.gz +0 -0
- package/app/dist/assets/truncate-start-CQ_CZbUe.js +0 -1
- package/app/dist/assets/use-hover-popover-BEwx9ZYQ.js +0 -1
- package/app/dist/assets/use-hover-popover-BEwx9ZYQ.js.br +0 -0
- package/app/dist/assets/use-hover-popover-BEwx9ZYQ.js.gz +0 -0
- package/app/dist/assets/useElementWidth-Di8ar4jl.js +0 -1
- package/app/dist/assets/useElementWidth-Di8ar4jl.js.br +0 -0
- package/app/dist/assets/useElementWidth-Di8ar4jl.js.gz +0 -0
- package/app/dist/assets/useLocalOpenTargets-CFZK_Feh.js +0 -1
- package/app/dist/assets/useLocalOpenTargets-CFZK_Feh.js.br +0 -0
- package/app/dist/assets/useLocalOpenTargets-CFZK_Feh.js.gz +0 -0
- package/app/dist/assets/usePanelResizeSnap-CnsazqIj.js +0 -1
- package/app/dist/assets/usePanelResizeSnap-CnsazqIj.js.br +0 -0
- package/app/dist/assets/usePanelResizeSnap-CnsazqIj.js.gz +0 -0
- package/app/dist/assets/usePanelTerminals-BQSlglBH.js +0 -1
- package/app/dist/assets/usePanelTerminals-BQSlglBH.js.br +0 -0
- package/app/dist/assets/usePanelTerminals-BQSlglBH.js.gz +0 -0
- package/app/dist/assets/usePathSuggestions-Ba_nQtq9.js +0 -1
- package/app/dist/assets/usePathSuggestions-Ba_nQtq9.js.br +0 -0
- package/app/dist/assets/usePathSuggestions-Ba_nQtq9.js.gz +0 -0
- package/app/dist/assets/useResolvedLiveFileTarget-V7MWY9ym.js +0 -1
- package/app/dist/assets/useResolvedLiveFileTarget-V7MWY9ym.js.br +0 -0
- package/app/dist/assets/useResolvedLiveFileTarget-V7MWY9ym.js.gz +0 -0
- package/app/dist/assets/useThreadTerminalController-CObgt-yL.js +0 -1
- package/app/dist/assets/useThreadTerminalController-CObgt-yL.js.br +0 -0
- package/app/dist/assets/useThreadTerminalController-CObgt-yL.js.gz +0 -0
- package/app/dist/assets/workspace-change-summary-C5kgaY1U.js +0 -1
- package/app/dist/assets/workspace-change-summary-C5kgaY1U.js.br +0 -0
- package/app/dist/assets/workspace-change-summary-C5kgaY1U.js.gz +0 -0
- package/app/dist/assets/workspace-checkout-display-B70WFoit.js +0 -32
- package/app/dist/assets/workspace-checkout-display-B70WFoit.js.br +0 -0
- package/app/dist/assets/workspace-checkout-display-B70WFoit.js.gz +0 -0
- package/host-daemon/dist/moonlet-chunks/browser-D37JNHD2.js +0 -6
- package/host-daemon/dist/moonlet-chunks/chunk-2G6JO37O.js +0 -6
- package/host-daemon/dist/moonlet-chunks/chunk-34PF5ROC.js +0 -2
- package/host-daemon/dist/moonlet-chunks/chunk-GPVO2ZNL.js +0 -2297
- package/host-daemon/dist/moonlet-chunks/chunk-IOVJHPOK.js +0 -2
- package/host-daemon/dist/moonlet-chunks/chunk-IRW5HD5T.js +0 -139
- package/host-daemon/dist/moonlet-chunks/chunk-L4X3OY44.js +0 -2
- package/host-daemon/dist/moonlet-chunks/chunk-LWJK43W4.js +0 -2
- package/host-daemon/dist/moonlet-chunks/chunk-MBPV4R7K.js +0 -2
- package/host-daemon/dist/moonlet-chunks/chunk-R5HM45ME.js +0 -2
- package/host-daemon/dist/moonlet-chunks/chunk-RGGQS6FR.js +0 -2
- package/host-daemon/dist/moonlet-chunks/chunk-YWROR25L.js +0 -2
- package/host-daemon/dist/moonlet-chunks/client-NMJHXAUD.js +0 -2
- package/host-daemon/dist/moonlet-chunks/commander-errors-DDBWJNC4.js +0 -3
- package/host-daemon/dist/moonlet-chunks/context-env-7STRMSHM.js +0 -2
- package/host-daemon/dist/moonlet-chunks/context-hints-7NCE7ZU3.js +0 -2
- package/host-daemon/dist/moonlet-chunks/diagnostics-M57KPEMW.js +0 -3
- package/host-daemon/dist/moonlet-chunks/environment-FHTRZB57.js +0 -2
- package/host-daemon/dist/moonlet-chunks/file-FP7WPCVP.js +0 -3
- package/host-daemon/dist/moonlet-chunks/guide-5EAJP6N4.js +0 -4
- package/host-daemon/dist/moonlet-chunks/machine-2NAMLORG.js +0 -2
- package/host-daemon/dist/moonlet-chunks/marketplace-IEMVNNQX.js +0 -2
- package/host-daemon/dist/moonlet-chunks/permissions-UR5Y6F3M.js +0 -2
- package/host-daemon/dist/moonlet-chunks/plugin-OMIO7KAC.js +0 -2633
- package/host-daemon/dist/moonlet-chunks/plugin-cli-proxy-NJMWR5TF.js +0 -2
- package/host-daemon/dist/moonlet-chunks/project-RHXN6NBN.js +0 -2
- package/host-daemon/dist/moonlet-chunks/prompt-history-TZQYEZM2.js +0 -2
- package/host-daemon/dist/moonlet-chunks/provider-CQXRHECD.js +0 -2
- package/host-daemon/dist/moonlet-chunks/schedule-GSAHU64H.js +0 -2
- package/host-daemon/dist/moonlet-chunks/server-SWRGYJD5.js +0 -8
- package/host-daemon/dist/moonlet-chunks/settings-5S7LLMBA.js +0 -4
- package/host-daemon/dist/moonlet-chunks/skill-3745FTYW.js +0 -5
- package/host-daemon/dist/moonlet-chunks/status-2F77WR53.js +0 -2
- package/host-daemon/dist/moonlet-chunks/terminal-HCOJKOMG.js +0 -3
- package/host-daemon/dist/moonlet-chunks/theme-45GPWFTX.js +0 -2
- package/host-daemon/dist/moonlet-chunks/thread-PMQE6X3R.js +0 -29
- package/host-daemon/dist/moonlet-chunks/thread-event-parser-4NQU3VS4.js +0 -2
- package/host-daemon/dist/moonlet-chunks/updates-HXI2NHNK.js +0 -2
- package/host-daemon/dist/moonlet-chunks/voice-TGDKL2T5.js +0 -2
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/antfly.sh +0 -98
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/apps.sh +0 -43
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/chrome-headless-shell.sh +0 -19
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/chrome-policy.sh +0 -29
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/cua-driver-agent.sh +0 -107
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/cua-driver-telemetry.sh +0 -5
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/cua-driver.sh +0 -29
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/dev-tools.sh +0 -36
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/doc-tools.sh +0 -9
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/gnupg.sh +0 -6
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/groups.sh +0 -9
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/homebrew.sh +0 -6
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/launchd-path.sh +0 -10
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/library.sh +0 -42
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/no-ipv6.sh +0 -6
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/no-screen-saver.sh +0 -4
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/node.sh +0 -5
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/op.sh +0 -5
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/orbit-data.sh +0 -3
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/proton-bridge.sh +0 -93
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/rclone.sh +0 -14
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/retire-desktop.sh +0 -24
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/screen-sharing.sh +0 -20
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/shell-path.sh +0 -8
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/skip-setup-assistant.sh +0 -12
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/stay-awake.sh +0 -4
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/tailscale.sh +0 -10
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos.toml +0 -113
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/default.toml +0 -68
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,jr as n,kr as r,qr as i,ri as a}from"./boot-vendor-CKEhulXz.js";import{Co as o,Dh as s,Do as c,Eo as l,Gd as u,Go as d,La as f,Qi as p,So as m,Zo as h,ea as g,g as _,ia as v,jh as y,ki as b,km as x,wo as S,xm as C}from"./index-C0VsRvUA.js";import{n as w}from"./index.browser-usHDzq3C.js";import{t as T}from"./OptionPicker-DqFHwDpg.js";import{s as E}from"./dist-i0jLXifx.js";import{n as D,r as O}from"./machine-server-access-BRrRNc7m.js";var k=r(),A=e(t(),1),j=e(a(),1);function M(e){try{return new URL(e)}catch{return null}}function N(){let e=d(),t=_(),n=e.data?.generalSettings,r=e.data?.serverAccess,i=n?.machineServerUrl??``,[a,o]=(0,A.useState)(null),[s,c]=(0,A.useState)(null),l=!n,u=r?.defaultProviderId??`direct`,[f,p]=(0,A.useState)(null);(0,A.useEffect)(()=>{f===u&&p(null)},[u,f]);let m=f??u;return{access:r,disabled:l,draft:a,error:s,effective:r?.providers.find(e=>e.id===m),configurationMessage:D(r,m),saving:t.isPending,selected:m,value:i,editDraft:e=>{o(e),c(null)},selectProvider:e=>{!n||e===m||(p(e),t.mutate({defaultMachineAccess:e},{onError:()=>p(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){c(`Enter a valid HTTP or HTTPS URL without credentials`);return}if(b(e)){c(`Other machines cannot reach localhost. Use a domain or shared-network address.`);return}}try{await t.mutateAsync({machineServerUrl:e||null})}catch(e){c(h({error:e,fallbackMessage:`Couldn't save the address.`}));return}o(null),c(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 c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,j.jsx)(`p`,{className:`mt-1 text-xs text-subtle-foreground`,children:`Choose how your devices reach this Moonlet server.`}),t[2]=c):c=t[2];let l;t[3]===o?l=t[4]:(l=(0,j.jsxs)(`div`,{children:[o,c]}),t[3]=o,t[4]=l);let u;t[5]!==r||t[6]!==n?(u=(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)(s,{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]=u):u=t[7];let d;return t[8]!==l||t[9]!==u||t[10]!==a?(d=(0,j.jsxs)(`section`,{"aria-label":a,className:`space-y-3`,children:[l,u]}),t[8]=l,t[9]=u,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)(v,{className:`min-w-0 flex-1 basis-48`,"aria-label":`Server address`,"aria-invalid":c!==null,value:o??d,placeholder:i?.effectiveUrl??`https://moonlet.example.com`,disabled:a,onChange:e=>n.editDraft(e.target.value),onKeyDown:e=>{e.key===`Enter`&&n.commitUrl()}}),(0,j.jsx)(y,{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 t=(0,k.c)(22),{machineAccess:r,onNavigate:i,methodPicker:a}=e,{effective:o,configurationMessage:c}=r;if(!o)return null;let l=c===null,u=o.availability?.status===`setup-required`&&o.pluginId!==null,d=u?`flex flex-col items-start gap-2`:`flex min-h-7 items-center justify-between gap-3`,f;t[0]!==c||t[1]!==o.description||t[2]!==u?(f=u&&(0,j.jsxs)(`p`,{className:`max-w-xl text-xs text-subtle-foreground`,children:[o.description,` `,c]}),t[0]=c,t[1]=o.description,t[2]=u,t[3]=f):f=t[3];let p;t[4]!==o.displayName||t[5]!==o.pluginId||t[6]!==i||t[7]!==u?(p=o.pluginId!==null&&(0,j.jsx)(y,{variant:u?`default`:`link`,size:`sm`,className:u?`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)(n,{onClick:i,to:C({pluginId:o.pluginId}),children:u?(0,j.jsxs)(j.Fragment,{children:[`Set up `,o.displayName,(0,j.jsx)(s,{name:`ArrowRight`})]}):`Manage`})}),t[4]=o.displayName,t[5]=o.pluginId,t[6]=i,t[7]=u,t[8]=p):p=t[8];let m;t[9]!==a||t[10]!==d||t[11]!==f||t[12]!==p?(m=(0,j.jsxs)(`div`,{className:d,children:[a,f,p]}),t[9]=a,t[10]=d,t[11]=f,t[12]=p,t[13]=m):m=t[13];let h;t[14]!==c||t[15]!==o.availability||t[16]!==l||t[17]!==u?(h=!u&&(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:c??(o.availability?.status===`available`?o.availability.serverUrl:null)??`Ready to connect devices.`})]}),t[14]=c,t[15]=o.availability,t[16]=l,t[17]=u,t[18]=h):h=t[18];let g;return t[19]!==m||t[20]!==h?(g=(0,j.jsxs)(`div`,{className:`space-y-0`,children:[m,h]}),t[19]=m,t[20]=h,t[21]=g):g=t[21],g}var H=`manual`;function U(e){let t=(0,k.c)(12),{open:n,onOpenChange:r}=e,i=p(),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 s=a,c;t[3]!==s||t[4]!==n?(c=n&&(0,j.jsx)(W,{onOpenChange:s}),t[3]=s,t[4]=n,t[5]=c):c=t[5];let l;t[6]===c?l=t[7]:(l=(0,j.jsx)(o,{className:`max-h-[calc(100dvh-2rem)] overflow-y-auto`,children:c}),t[6]=c,t[7]=l);let u;return t[8]!==s||t[9]!==n||t[10]!==l?(u=(0,j.jsx)(m,{open:n,onOpenChange:s,modal:!1,children:l}),t[8]=s,t[9]=n,t[10]=l,t[11]=u):u=t[11],u}function W(e){let t=(0,k.c)(13),{onOpenChange:n}=e,r=d(),i=p();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)(c,{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)(l,{children:[(0,j.jsx)(c,{children:`Add a machine`}),(0,j.jsx)(S,{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)(y,{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)(l,{children:[(0,j.jsx)(c,{children:`Set up machine access`}),(0,j.jsx)(S,{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 n=(0,A.useRef)(null),r=(0,A.useRef)(null),a=(0,A.useRef)(new Set),o=(0,A.useRef)(0),[s,c]=(0,A.useState)(null),[l,d]=(0,A.useState)(null);(0,A.useEffect)(()=>()=>{o.current+=1,n.current?.abort(),r.current=null;for(let e of a.current)u.hosts.delete({hostId:e}).catch(()=>void 0);a.current.clear()},[]);let f=i({meta:{showErrorToast:!1},mutationFn:async e=>{let t=o.current;if(e.replaceLaunch){n.current?.abort(),n.current=null;let e=[...a.current];a.current.clear(),await Promise.all(e.map(e=>u.hosts.delete({hostId:e}))),r.current=null}c(null);let i=new AbortController;n.current=i,r.current??=w();try{let e=await u.hosts.experimental_create({key:r.current,machineProviderId:H,inputs:null,wait:!1,signal:i.signal});if(a.current.add(e.id),t!==o.current)throw a.current.delete(e.id),await u.hosts.delete({hostId:e.id}),Error(`Machine setup closed`);let n=null;for(;e.lifecycle.phase===`creating`;){i.signal.throwIfAborted();let t=await u.hosts.experimental_getEnrollmentCommand({hostId:e.id,signal:i.signal});if(t!==null)n=t,c({value:t.command,windowsValue:t.windowsCommand,expiresAt:t.expiresAt,unavailable:!1});else if(n!==null){let e=n;c(t=>t?.unavailable?t:{value:e.command,windowsValue:e.windowsCommand,expiresAt:e.expiresAt,unavailable:!0})}await new Promise(e=>setTimeout(e,1e3)),i.signal.throwIfAborted(),e=await u.hosts.get({hostId:e.id,signal:i.signal})}if(r.current=null,a.current.delete(e.id),e.lifecycle.phase!==`active`)throw Error(e.lifecycle.message??`Machine setup cancelled`);return e}finally{n.current===i&&(n.current=null)}},onSuccess:e=>{r.current=null,d(e)}}),p=f.mutate;return(0,A.useEffect)(()=>{p({replaceLaunch:!1})},[p]),(0,j.jsx)(J,{command:s,connectedHost:l,serverMachineName:e,errorMessage:f.isError?h({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 t=(0,k.c)(24),{command:r,connectedHost:i,serverMachineName:a,errorMessage:o,onRetry:u,onRegenerate:d,onOpenMachine:f}=e,p;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,j.jsx)(c,{children:`Add a machine`}),t[0]=p):p=t[0];let m=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.`,_;t[1]!==m||t[2]!==h?(_=(0,j.jsxs)(l,{children:[p,(0,j.jsx)(S,{className:m,children:h})]}),t[1]=m,t[2]=h,t[3]=_):_=t[3];let v;t[4]!==o||t[5]!==u?(v=o===null?null:(0,j.jsx)(`div`,{className:`flex justify-end`,children:(0,j.jsx)(y,{variant:`outline`,size:`sm`,onClick:u,children:`Try again`})}),t[4]=o,t[5]=u,t[6]=v):v=t[6];let b;t[7]!==r||t[8]!==d?(b=r===null?null:(0,j.jsx)(Z,{command:r.value,windowsCommand:r.windowsValue,expiresAt:r.expiresAt,unavailable:r.unavailable,onRegenerate:d},r.value),t[7]=r,t[8]=d,t[9]=b):b=t[9];let C;t[10]!==r||t[11]!==i||t[12]!==o||t[13]!==f?(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)(s,{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)(g,{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)(y,{asChild:!0,size:`sm`,variant:`ghost`,className:`h-7 shrink-0 px-2 text-xs`,children:(0,j.jsxs)(n,{to:x(i.id),onClick:f,children:[`Open machine`,(0,j.jsx)(s,{name:`ArrowRight`})]})})]})}):null,t[10]=r,t[11]=i,t[12]=o,t[13]=f,t[14]=C):C=t[14];let w;t[15]!==o||t[16]!==a?(w=o===null?(0,j.jsx)(`p`,{className:`text-xs text-subtle-foreground`,children:G(a)}):null,t[15]=o,t[16]=a,t[17]=w):w=t[17];let T;return t[18]!==_||t[19]!==v||t[20]!==b||t[21]!==C||t[22]!==w?(T=(0,j.jsxs)(j.Fragment,{children:[_,v,b,C,w]}),t[18]=_,t[19]=v,t[20]=b,t[21]=C,t[22]=w,t[23]=T):T=t[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,s=a===void 0?!1:a,[c,l]=(0,A.useState)(`posix`),u=c===`windows`?r:n,d;t[0]===u?d=t[1]:(d={text:u},t[0]=u,t[1]=d);let{copied:p,copy:m}=f(d),h;t[2]===i?h=t[3]:(h=()=>i-Date.now(),t[2]=i,t[3]=h);let[g,_]=(0,A.useState)(h),v,b;t[4]===i?(v=t[5],b=t[6]):(v=()=>{let e=setInterval(()=>_(i-Date.now()),1e3);return()=>clearInterval(e)},b=[i],t[4]=i,t[5]=v,t[6]=b),(0,A.useEffect)(v,b);let x=g<=0,S;t[7]===c?S=t[8]:(S=X.map(e=>(0,j.jsx)(y,{type:`button`,size:`sm`,variant:c===e.id?`secondary`:`ghost`,"aria-pressed":c===e.id,className:`h-6 px-2 text-xs`,onClick:()=>l(e.id),children:e.label},e.id)),t[7]=c,t[8]=S);let C;t[9]===c?C=t[10]:(C=c===`windows`?(0,j.jsx)(`span`,{className:`ml-auto text-xs text-subtle-foreground`,children:`Run in PowerShell`}):null,t[9]=c,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]===u?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:u}),t[14]=u,t[15]=T);let E;t[16]!==x||t[17]!==o||t[18]!==g||t[19]!==s?(E=s?(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)(y,{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]=s,t[20]=E):E=t[20];let D=x||s,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)(y,{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};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{po as r}from"./index-C0VsRvUA.js";import{t as i}from"./shortcut-pill-BMcSaApF.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{hi as t,kr as n}from"./boot-vendor-CKEhulXz.js";import{Wn as r,wh as i}from"./index-C0VsRvUA.js";import{t as a}from"./useLocalOpenTargets-DryOrrgz.js";import{t as o}from"./useResolvedLiveFileTarget-CQk3hWJe.js";var s=n(),c=e(t(),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{hi as t,kr as n,ri as r}from"./boot-vendor-CKEhulXz.js";import{Dp as i,Th as a,V as o,ya as s}from"./index-C0VsRvUA.js";import{r as c,t as l}from"./dist-5xeFhhwk.js";var u=n(),d=e(t(),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=o(),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:s.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{Cr as t,Et as n,St as r,bt as i,dr as a,hi as o,kr as s,ri as c,t as l,vr as u,yr as d}from"./boot-vendor-CKEhulXz.js";import{Cr as f,Dh as p,Dp as m,Fh as h,Gd as g,Hf as _,Ia as v,Ir as y,Mo as b,Na as x,On as S,Rm as C,Sc as w,Sr as T,Vf as E,Vm as D,_o as O,br as k,bv as A,co as j,dd as M,dp as N,em as P,ht as F,jh as I,ki as L,mp as R,nt as z,uo as B,up as V,wp as H}from"./index-C0VsRvUA.js";import{n as U,r as W,t as G}from"./browser-url-BvXFj6Nb.js";import{r as ee}from"./panelChromeClasses-BubpnwAb.js";import{a as K,i as q,n as J,r as te}from"./launcherRow-DSVHuxpF.js";var Y=e(o(),1),X=s(),ne=`bb.thread.browserHistory`,re=`1`,ie=24,Z=a(d({url:t().min(1),title:t().min(1).nullable(),visitedAt:u().int().nonnegative()}).strict()),ae=[],oe=M({parse:(e,t)=>{if(e===null)return t;try{let n=Z.safeParse(JSON.parse(e));return n.success?n.data:t}catch{return t}},serialize:e=>JSON.stringify(e)});function se(e){return`${ne}-${encodeURIComponent(e.trim())}-${re}`}var ce=n(ae),le=l(e=>i(se(e),ae,oe,{getOnInit:!0}));function ue(e){return e!=null&&e.trim().length>0}function de(e){let t=(0,X.c)(10),n;t[0]===e?n=t[1]:(n=ue(e)?le(e):ce,t[0]=e,t[1]=n);let[i,a]=r(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,ie))},t[2]=a,t[3]=o);let s=o,c;t[4]===a?c=t[5]:(c=()=>{a(ae)},t[4]=a,t[5]=c);let l=c,u;return t[6]!==l||t[7]!==i||t[8]!==s?(u={entries:i,recordVisit:s,clear:l},t[6]=l,t[7]=i,t[8]=s,t[9]=u):u=t[9],u}var Q=e(c(),1);function fe(e){return e===null?null:`${e.activeMatchOrdinal}/${e.matches}`}function pe(e){let t=(0,X.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=h(`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`,R,z),t[0]=l):l=t[0];let u;t[1]===n?u=t[2]:(u=(0,Q.jsx)(p,{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,Q.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 me(e){let t=(0,X.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=fe(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 g=m,_;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(_=h(`flex h-9 shrink-0 items-center gap-1 border-b border-border/70 py-1 pl-2 pr-2`,ee),t[6]=_):_=t[6];let v;t[7]===a?v=t[8]:(v=e=>a(e.target.value),t[7]=a,t[8]=v);let y=l?`Find in page (${l.label})`:`Find in page`,b=l?.ariaKeyshortcuts,x;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(x=h(`min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted-foreground`,H),t[9]=x):x=t[9];let S;t[10]!==g||t[11]!==n||t[12]!==r||t[13]!==v||t[14]!==y||t[15]!==b?(S=(0,Q.jsx)(`input`,{ref:n,type:`text`,value:r,onChange:v,onKeyDown:g,placeholder:`Find in page`,"aria-label":y,"aria-keyshortcuts":b,autoComplete:`off`,spellCheck:!1,maxLength:C,className:x}),t[10]=g,t[11]=n,t[12]=r,t[13]=v,t[14]=y,t[15]=b,t[16]=S):S=t[16];let w;t[17]!==d||t[18]!==p?(w=d===null?null:(0,Q.jsx)(`span`,{"data-testid":`browser-find-match-count`,"aria-live":`polite`,className:h(`shrink-0 tabular-nums`,p?`text-destructive`:`text-muted-foreground`,H),children:d}),t[17]=d,t[18]=p,t[19]=w):w=t[19];let T;t[20]!==S||t[21]!==w?(T=(0,Q.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:[S,w]}),t[20]=S,t[21]=w,t[22]=T):T=t[22];let E=!f,D;t[23]!==s||t[24]!==E?(D=(0,Q.jsx)(pe,{icon:`ChevronUp`,label:`Previous match`,disabled:E,onClick:s}),t[23]=s,t[24]=E,t[25]=D):D=t[25];let O=!f,k;t[26]!==o||t[27]!==O?(k=(0,Q.jsx)(pe,{icon:`ChevronDown`,label:`Next match`,disabled:O,onClick:o}),t[26]=o,t[27]=O,t[28]=k):k=t[28];let A;t[29]===c?A=t[30]:(A=(0,Q.jsx)(pe,{icon:`X`,label:`Close find bar`,onClick:c}),t[29]=c,t[30]=A);let j;return t[31]!==T||t[32]!==D||t[33]!==k||t[34]!==A?(j=(0,Q.jsxs)(`div`,{"data-testid":`browser-find-bar`,role:`search`,"aria-label":`Find in page`,className:_,children:[T,D,k,A]}),t[31]=T,t[32]=D,t[33]=k,t[34]=A,t[35]=j):j=t[35],j}function he(e){let t=(0,X.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,Y.useRef)(null),o=(0,Y.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,Y.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,Q.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 ge(e){let t=(0,X.c)(27),{entry:n,now:r,onNavigate:i}=e,a;t[0]===n.url?a=t[1]:(a=G(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=x({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 m=n.url,g;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(g=h(J,`hover:bg-state-hover`),t[10]=g):g=t[10];let _;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Q.jsx)(`span`,{className:te,children:(0,Q.jsx)(p,{name:`Browser`,className:V,"aria-hidden":!0})}),t[11]=_):_=t[11];let v;t[12]===l?v=t[13]:(v=(0,Q.jsx)(`span`,{className:`truncate text-foreground`,children:l}),t[12]=l,t[13]=v);let y;t[14]!==o||t[15]!==l?(y=l===o?null:(0,Q.jsx)(`span`,{className:`truncate font-mono text-muted-foreground [flex-shrink:9999]`,children:o}),t[14]=o,t[15]=l,t[16]=y):y=t[16];let b;t[17]!==v||t[18]!==y?(b=(0,Q.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center gap-1.5`,children:[v,y]}),t[17]=v,t[18]=y,t[19]=b):b=t[19];let S;t[20]===d?S=t[21]:(S=(0,Q.jsx)(q,{idle:d,isActive:!1}),t[20]=d,t[21]=S);let C;return t[22]!==n.url||t[23]!==b||t[24]!==S||t[25]!==f?(C=(0,Q.jsxs)(`button`,{type:`button`,onClick:f,title:m,className:g,children:[_,b,S]}),t[22]=n.url,t[23]=b,t[24]=S,t[25]=f,t[26]=C):C=t[26],C}function _e(e){let t=(0,X.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=h(`rounded text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,H),t[1]=c):c=t[1];let l;t[2]===i?l=t[3]:(l=(0,Q.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,Q.jsx)(K,{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,Q.jsx)(`li`,{children:(0,Q.jsx)(ge,{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,Q.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,Q.jsx)(`div`,{className:`flex h-full flex-col overflow-y-auto px-4 pb-6 pt-8`,children:(0,Q.jsx)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col gap-6`,children:(0,Q.jsxs)(`section`,{children:[u,f]})})}),t[14]=u,t[15]=f,t[16]=p):p=t[16],p}function ve({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 ye(e){let t=(0,X.c)(18),{slot:n,threadId:r,tabId:i,url:a,isCompactViewport:o}=e,s;t[0]!==n.pluginId||t[1]!==i?(s=ve({desktopBrowser:E(),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,Q.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,Q.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,Q.jsx)(y,{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 be(e){let t=(0,X.c)(11),{threadId:n,tabId:r,url:i,isCompactViewport:a}=e,{browserToolbarActions:o}=P();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,Q.jsx)(ye,{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 xe={x:0,y:0,width:0,height:0};function Se(e){return{x:Math.round(e.left),y:Math.round(e.top),width:Math.round(e.width),height:Math.round(e.height)}}function Ce(){return{width:window.innerWidth,height:window.innerHeight}}function we(e){return D({bounds:Se(e.element.getBoundingClientRect()),viewport:Ce()})}function Te(e){return e===`flex-grow`||e===`flex-basis`}function Ee(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 De(e){return L(e.url)?`Server not reachable`:e.errorText.includes(`ERR_BLOCKED_BY_CLIENT`)?`Page blocked`:`Page unavailable`}function Oe(e){let t=(0,X.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:m,onReloadOrStop:g,onOpenExternal:_,locationShortcut:v,reloadShortcut:y,pluginActions:b}=e,x=i?.isLoading??!1,S;t[0]===a?S=t[1]:(S=U(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=h(`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]`,ee),E=h(`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,Q.jsx)(pe,{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]!==m||t[8]!==k?(A=(0,Q.jsx)(pe,{icon:`ChevronRight`,label:`Go forward`,disabled:k,onClick:m}),t[7]=m,t[8]=k,t[9]=A):A=t[9];let j=x?`X`:`RotateCcw`,M=x?`Stop loading`:`Reload`,P=x?null:y,F;t[10]!==g||t[11]!==P||t[12]!==j||t[13]!==M?(F=(0,Q.jsx)(pe,{icon:j,label:M,shortcut:P,onClick:g}),t[10]=g,t[11]=P,t[12]=j,t[13]=M,t[14]=F):F=t[14];let I;t[15]===C?I=t[16]:(I=C===`secure`?(0,Q.jsx)(p,{name:`Lock`,className:h(N,`text-success`),"aria-label":`Secure connection`}):C===`insecure`?(0,Q.jsx)(p,{name:`AlertTriangle`,className:h(N,`text-warning`),"aria-label":`Connection not secure`}):(0,Q.jsx)(p,{name:`Search`,className:h(N,`text-muted-foreground`),"aria-hidden":!0}),t[15]=C,t[16]=I);let L;t[17]===s?L=t[18]:(L=e=>s(e.target.value),t[17]=s,t[18]=L);let R=v?`Address and search bar (${v.label})`:`Address and search bar`,z=v?.ariaKeyshortcuts,B;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(B=h(`min-w-0 flex-1 bg-transparent font-mono text-foreground outline-none placeholder:font-sans placeholder:text-muted-foreground`,H),t[19]=B):B=t[19];let V;t[20]!==o||t[21]!==w||t[22]!==l||t[23]!==c||t[24]!==u||t[25]!==L||t[26]!==R||t[27]!==z?(V=(0,Q.jsx)(he,{ref:o,value:w,onChange:L,onFocus:c,onBlur:l,onKeyDown:u,"aria-label":R,"aria-keyshortcuts":z,className:B}),t[20]=o,t[21]=w,t[22]=l,t[23]=c,t[24]=u,t[25]=L,t[26]=R,t[27]=z,t[28]=V):V=t[28];let W;t[29]!==I||t[30]!==V?(W=(0,Q.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:[I,V]}),t[29]=I,t[30]=V,t[31]=W):W=t[31];let G;t[32]!==d||t[33]!==W?(G=(0,Q.jsx)(`form`,{onSubmit:d,className:`min-w-0 flex-1`,children:W}),t[32]=d,t[33]=W,t[34]=G):G=t[34];let K=a.length===0,q;t[35]!==_||t[36]!==K?(q=(0,Q.jsx)(pe,{icon:`ExternalLink`,label:`Open in external browser`,disabled:K,onClick:_}),t[35]=_,t[36]=K,t[37]=q):q=t[37];let J;t[38]===x?J=t[39]:(J=x?(0,Q.jsx)(`span`,{className:`absolute inset-x-0 bottom-0 h-0.5 overflow-hidden`,children:(0,Q.jsx)(`span`,{className:`block h-full w-1/3 animate-pulse bg-ring/70 motion-reduce:animate-none`})}):null,t[38]=x,t[39]=J);let te;return t[40]!==b||t[41]!==F||t[42]!==G||t[43]!==q||t[44]!==J||t[45]!==O||t[46]!==A?(te=(0,Q.jsx)(`div`,{role:`region`,"aria-label":`Browser navigation`,tabIndex:-1,className:T,children:(0,Q.jsxs)(`div`,{className:E,children:[O,A,F,G,b,q,J]})}),t[40]=b,t[41]=F,t[42]=G,t[43]=q,t[44]=J,t[45]=O,t[46]=A,t[47]=te):te=t[47],te}function ke(){let e=(0,X.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Q.jsxs)(`div`,{className:`flex h-full flex-col items-center justify-center gap-3 px-6 text-center`,children:[(0,Q.jsx)(`span`,{className:`flex size-11 items-center justify-center rounded-lg border border-border bg-card text-muted-foreground`,children:(0,Q.jsx)(p,{name:`Globe`,className:`size-6`,"aria-hidden":!0})}),(0,Q.jsx)(`div`,{className:`text-sm font-medium text-foreground`,children:`Browser tabs need the desktop app`}),(0,Q.jsx)(`p`,{className:h(`max-w-xs text-muted-foreground`,H),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 Ae(e){let t=(0,X.c)(32),{errorText:n,onOpenExternal:r,onRetry:i,url:a}=e,o;t[0]===a?o=t[1]:(o=G(a),t[0]=a,t[1]=o);let s=o,c;t[2]!==n||t[3]!==a?(c=De({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=L(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,Q.jsx)(`span`,{className:`flex size-11 items-center justify-center rounded-lg border border-border bg-surface-recessed text-muted-foreground`,children:(0,Q.jsx)(p,{name:`Globe`,className:`size-6`,"aria-hidden":!0})}),t[8]=f):f=t[8];let m;t[9]===l?m=t[10]:(m=(0,Q.jsx)(`p`,{className:`text-sm font-medium text-foreground`,children:l}),t[9]=l,t[10]=m);let g;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(g=h(`mt-1 text-muted-foreground`,H),t[11]=g):g=t[11];let _;t[12]===d?_=t[13]:(_=(0,Q.jsx)(`p`,{className:g,children:d}),t[12]=d,t[13]=_);let v;t[14]!==m||t[15]!==_?(v=(0,Q.jsxs)(`div`,{children:[m,_]}),t[14]=m,t[15]=_,t[16]=v):v=t[16];let y;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Q.jsx)(p,{name:`RotateCcw`,className:`size-3.5`,"aria-hidden":!0}),t[17]=y):y=t[17];let b;t[18]===i?b=t[19]:(b=(0,Q.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:[y,`Reload`]}),t[18]=i,t[19]=b);let x;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,Q.jsx)(p,{name:`ExternalLink`,className:`size-3.5`,"aria-hidden":!0}),t[20]=x):x=t[20];let S;t[21]===r?S=t[22]:(S=(0,Q.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:[x,`Open externally`]}),t[21]=r,t[22]=S);let C;t[23]!==b||t[24]!==S?(C=(0,Q.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center gap-2 pt-1`,children:[b,S]}),t[23]=b,t[24]=S,t[25]=C):C=t[25];let w;t[26]===n?w=t[27]:(w=(0,Q.jsx)(`p`,{className:`max-w-full truncate pt-1 font-mono text-[11px] text-subtle-foreground`,children:n}),t[26]=n,t[27]=w);let T;return t[28]!==C||t[29]!==w||t[30]!==v?(T=(0,Q.jsx)(`div`,{className:`flex h-full flex-col items-center justify-center px-6 text-center`,children:(0,Q.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col items-center gap-3`,children:[f,v,C,w]})}),t[28]=C,t[29]=w,t[30]=v,t[31]=T):T=t[31],T}function je({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:p,onOpenInNewTab:h}){let g=B(`browser.focusLocation`),v=B(`browser.reload`),y=B(`browser.find`),x=(0,Y.useMemo)(()=>E(),[]),D=(0,Y.useRef)(null),k=(0,Y.useRef)(null),M=(0,Y.useRef)(null),N=w(),P=m(),{entries:F,recordVisit:I,clear:L}=de(d),[R,z]=(0,Y.useState)(null),[V,H]=(0,Y.useState)(null);(0,Y.useEffect)(()=>{let t=!0,n=!1;H(null);let r=n=>{t&&n.tabId===e&&n.threadId===d&&H(n.control)},i=x?.onControl?.(t=>{t.tabId!==e||t.threadId!==d||(n=!0,r(t))});return x?.getControl?.(e).then(e=>{e!==null&&!n&&r(e)}).catch(()=>void 0),()=>{t=!1,i?.()}},[x,e,d]);let[U,G]=(0,Y.useState)(r),[ee,K]=(0,Y.useState)(r),[q,J]=(0,Y.useState)(!1),[te,X]=(0,Y.useState)(!1),[ne,re]=(0,Y.useState)(!1),ie=(0,Y.useRef)(!1);ie.current=ne;let[Z,ae]=(0,Y.useState)(``),[oe,se]=(0,Y.useState)(null),[ce,le]=(0,Y.useState)(null),ue=(0,Y.useRef)(p),fe=(0,Y.useRef)(I);ue.current=p,fe.current=I;let pe=(0,Y.useRef)(r),he=(0,Y.useRef)(n),ge=(0,Y.useRef)(t),[ve,ye]=(0,Y.useState)(null),Se=ve!==null&&ve.environmentId===u&&ve.tabId===e&&ve.threadId===d,Ce=U.length>0,De=x?.focus!==void 0&&x.onFocus!==void 0&&x.setVisibleWithoutFocus!==void 0,je=R?.errorText??null,Me=je!==null&&Ce,Ne=b(),Pe=(0,Y.useRef)(null),Fe=(0,Y.useCallback)(()=>{let e=D.current;return e===null?null:we({element:e})},[]),Ie=(0,Y.useCallback)(t=>{x!==null&&(Pe.current=t,x.setBounds({tabId:e,bounds:t}))},[x,e]),Le=(0,Y.useCallback)(({force:e})=>{let t=Fe();if(t===null)return;let n=Pe.current;!e&&n!==null&&Ee({a:n,b:t})||Ie(t)},[Fe,Ie]),Re=(0,Y.useCallback)(()=>{Le({force:!0})},[Le]),$=(0,Y.useCallback)(()=>{Le({force:!1})},[Le]),ze=(0,Y.useCallback)(()=>{let e=Fe();return Pe.current=e,e??xe},[Fe]);(0,Y.useEffect)(()=>{if(x===null)return;let t=ze(),n=pe.current;T({environmentId:u,tabId:e,threadId:d});let r=ge.current,i=he.current===!0&&(r===void 0||!f(e,r));x.attach({tabId:e,threadId:d,...i?{existingOnly:!0}:{},url:n,bounds:t,visible:!1}),ye({environmentId:u,tabId:e,threadId:d});let a=null,o=x.onState(t=>{t.tabId===e&&(a!==null&&(a.url!==t.url||t.isLoading&&!a.isLoading)&&se(null),a=t,z(t),G(t.url),ue.current({tabId:e,url:t.url,title:t.title}),!t.isLoading&&t.url.length>0&&fe.current({url:t.url,title:t.title}))}),s=x.onSnapshot?.(t=>{t.tabId===e&&le(t.dataUrl)}),c=x.onFindResult?.(t=>{t.tabId===e&&se({activeMatchOrdinal:t.activeMatchOrdinal,matches:t.matches})});return()=>{o(),s?.(),c?.(),ie.current&&x.stopFindInPage?.({tabId:e,action:`clearSelection`}),l?.release(e)}},[x,u,ze,l,e,d]),(0,Y.useEffect)(()=>{let e=D.current;if(e===null||x===null)return;let t=new ResizeObserver(()=>{$()});return t.observe(e),()=>{t.disconnect()}},[x,$]),(0,Y.useEffect)(()=>{if(x===null)return;let e=e=>{Te(e.propertyName)&&$()};return window.addEventListener(S,$),window.addEventListener(`resize`,$),document.addEventListener(`transitionend`,e,!0),document.addEventListener(`transitioncancel`,e,!0),()=>{window.removeEventListener(S,$),window.removeEventListener(`resize`,$),document.removeEventListener(`transitionend`,e,!0),document.removeEventListener(`transitioncancel`,e,!0)}},[x,$]);let Be=o&&(s||De)&&Ce&&!Me&&Se&&!Ne;(0,Y.useLayoutEffect)(()=>{if(l!==null){if(Be)return l.show(e,Re,{focus:!1}),()=>{l.hide(e)};l.hide(e)}},[l,e,Be,Re]),(0,Y.useLayoutEffect)(()=>{if(te){if(!o||!s||Me||Ne){X(!1);return}Be&&(X(!1),x?.focus?.(e))}},[te,o,s,Me,Ne,Be,x,e]),(0,Y.useEffect)(()=>{if(!(x?.onFocus===void 0||c===void 0))return x.onFocus(t=>{t===e&&c()})},[x,c,e]),(0,Y.useEffect)(()=>{if(i===null||i.tabId!==e)return;if(N){a?.(i);return}K(U),J(!0),k.current?.focus({preventScroll:!0});let t=requestAnimationFrame(()=>{k.current?.focus({preventScroll:!0}),a?.(i)});return()=>cancelAnimationFrame(t)},[i,U,N,a,e]);let Ve=(0,Y.useCallback)(t=>{let n=W(t);n!==null&&(G(n),J(!1),k.current?.blur(),x?.navigate({tabId:e,url:n}),X(!0))},[x,e]),He=(0,Y.useCallback)(e=>{e.preventDefault(),Ve(ee)},[ee,Ve]),Ue=(0,Y.useCallback)(e=>{if(e.nativeEvent.isComposing)return;if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),K(U);let t=e.currentTarget;window.requestAnimationFrame(()=>{document.activeElement===t&&t.select()});return}if(h===null||e.key!==`Enter`||e.shiftKey||e.ctrlKey||!(A(O())?e.metaKey&&!e.altKey:e.altKey&&!e.metaKey))return;e.preventDefault();let t=W(ee);t!==null&&(K(U),J(!1),k.current?.blur(),h(t))},[ee,U,h]),We=(0,Y.useCallback)(()=>{K(U),J(!0)},[U]),Ge=(0,Y.useCallback)(()=>{if(R?.isLoading??!1){x?.stop(e);return}x?.reload(e)},[x,R?.isLoading,e]);j(`browser.focusLocation`,(0,Y.useCallback)(()=>!s||x===null?!1:(K(U),J(!0),k.current?.focus({preventScroll:!0}),window.requestAnimationFrame(()=>{k.current?.focus({preventScroll:!0}),k.current?.select()}),!0),[s,U,x]),100);let Ke=o&&x!==null&&x.findInPage!==void 0&&Ce,qe=(0,Y.useCallback)(t=>{x?.findInPage?.({tabId:e,...t})},[x,e]),Je=(0,Y.useCallback)(()=>{x?.stopFindInPage?.({tabId:e,action:`clearSelection`}),se(null)},[x,e]),Ye=(0,Y.useCallback)(()=>{M.current?.focus({preventScroll:!0}),window.requestAnimationFrame(()=>{M.current?.focus({preventScroll:!0}),M.current?.select()})},[]),Xe=(0,Y.useCallback)(e=>{let t=e.slice(0,C);if(ae(t),t.length===0){Je();return}qe({text:t,forward:!0,newSession:!0})},[Je,qe]),Ze=(0,Y.useCallback)(()=>{Z.length!==0&&qe({text:Z,forward:!0,newSession:!1})},[Z,qe]),Qe=(0,Y.useCallback)(()=>{Z.length!==0&&qe({text:Z,forward:!1,newSession:!1})},[Z,qe]),$e=(0,Y.useCallback)(()=>{re(!1),Je()},[Je]);j(`browser.find`,(0,Y.useCallback)(()=>Ke?(re(!0),Z.length>0&&qe({text:Z,forward:!0,newSession:!0}),Ye(),!0):!1,[Ke,Z,Ye,qe]),100),(0,Y.useEffect)(()=>{ne&&!Ke&&(re(!1),Je())},[Ke,Je,ne]),j(`browser.reload`,()=>!s||x===null||!Ce?!1:(x.reload(e),!0),100);let et=(0,Y.useCallback)(()=>{_()?.openExternalUrl(U)},[U]);return x===null?(0,Q.jsx)(ke,{}):(0,Q.jsxs)(`div`,{"data-app-browser":!0,className:`flex h-full min-h-0 flex-col`,children:[(0,Q.jsx)(Oe,{addressDraft:ee,isEditing:q,state:R,currentUrl:U,addressInputRef:k,onAddressChange:K,onAddressFocus:We,onAddressBlur:()=>J(!1),onAddressKeyDown:Ue,onSubmit:He,onBack:()=>{x.goBack(e)},onForward:()=>{x.goForward(e)},onReloadOrStop:Ge,onOpenExternal:et,locationShortcut:g,reloadShortcut:v,pluginActions:(0,Q.jsx)(be,{threadId:d,tabId:e,url:U,isCompactViewport:P})}),V===null?null:(0,Q.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,Q.jsxs)(`span`,{className:`min-w-0 flex-1 truncate`,children:[V.controllerLabel,` is controlling this tab`]}),(0,Q.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1 hover:bg-state-hover`,onClick:()=>x.releaseControl?.(e),children:`Stop`}),(0,Q.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1 hover:bg-state-hover`,onClick:()=>{x.releaseControl?.(e),x.focus?.(e)},children:`Take over`})]}),ne?(0,Q.jsx)(me,{inputRef:M,query:Z,matches:oe,onQueryChange:Xe,onFindNext:Ze,onFindPrevious:Qe,onClose:$e,shortcut:y}):null,(0,Q.jsxs)(`div`,{ref:D,className:`relative min-h-0 flex-1`,children:[Me?(0,Q.jsx)(Ae,{errorText:je,onOpenExternal:et,onRetry:Ge,url:U}):Ce&&!Ne?null:(0,Q.jsx)(_e,{onNavigateInput:Ve,recent:F,onClearRecent:L}),Ce&&ce!==null?(0,Q.jsx)(`img`,{src:ce,alt:``,draggable:!1,className:`absolute inset-0 size-full`}):null]})]})}function Me(e,t){return t===null?null:e.find(e=>e.id===t)??null}var Ne=4,Pe=32,Fe=2e3;function Ie(e){return Math.min(250*2**(e-1),Fe)}function Le(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 Re(e){let t=(0,X.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=E(),t[0]=h):h=t[0];let _=h,v;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(v=_===null?null:k(_),t[1]=v):v=t[1];let y=v,b=Me(n,r),x=b?.desktopTarget,S=x?.hostId,C;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>_?.getTarget===void 0?{status:`ready`,target:null}:{status:`pending`},t[2]=C):C=t[2];let[w,T]=(0,Y.useState)(C),[D,O]=(0,Y.useState)(0),A=x===void 0?null:`${b?.id}:${D}:${x.hostId}:${x.instanceId}:${x.generation}`,[j,M]=(0,Y.useState)(null),N;t[3]!==A||t[4]!==M?(N=()=>{let e=_?.getTarget?.bind(_);if(e===void 0)return;let t=!0,n=0,r,i=()=>{e().catch(ze).then(e=>{if(t){if(e!==null){T({status:`ready`,target:e});return}if(n+=1,n>=Ne&&T({status:`ready`,target:null}),n>=Pe){M(A);return}r=setTimeout(i,Ie(n))}})};return i(),()=>{t=!1,clearTimeout(r)}},t[3]=A,t[4]=M,t[5]=N):N=t[5],(0,Y.useEffect)(N,[_,S,x?.instanceId,x?.generation,A]);let P=Le(x,w),F=P===`check-saved-window`?A:null,[I,L]=(0,Y.useState)(null),R=x?.instanceId,z;t[6]!==A||t[7]!==R||t[8]!==F||t[9]!==M||t[10]!==S?(z=()=>{if(F===null||S===void 0||R===void 0)return;let e=!0,t=0,n,r=()=>{g.experimental_desktopBrowsers.listInstances({hostId:S}).then(t=>{let{instances:n}=t;e&&L({key:F,status:n.some(e=>e.instanceId===R)?`live`:`gone`})},()=>{if(e){if(t+=1,t>=Ne&&L({key:F,status:`unknown`}),t>=Pe){M(A);return}n=setTimeout(r,Ie(t))}})};return r(),()=>{e=!1,clearTimeout(n)}},t[6]=A,t[7]=R,t[8]=F,t[9]=M,t[10]=S,t[11]=z):z=t[11];let B;if(t[12]!==A||t[13]!==R||t[14]!==F||t[15]!==S?(B=[F,S,R,A],t[12]=A,t[13]=R,t[14]=F,t[15]=S,t[16]=B):B=t[16],(0,Y.useEffect)(z,B),b===null)return null;let V=I?.key===F?I.status:null,H=A!==null&&j===A;if(P===`pending`||P===`check-saved-window`&&V===null){let e;return t[17]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Q.jsx)(`div`,{className:`flex min-h-0 flex-1 bg-sidebar`}),t[17]=e):e=t[17],e}if(P===`unavailable`||P===`check-saved-window`&&V!==`gone`){let e;t[18]!==H||t[19]!==V||t[20]!==O?(e=H||V===`live`?()=>O($):null,t[18]=H,t[19]=V,t[20]=O,t[21]=e):e=t[21];let n=_===null?`desktop-required`:V===`live`?`other-window`:w.status===`ready`&&w.target!==null&&w.target.hostId!==x?.hostId?`other-computer`:H?`unreachable`:`reconnecting`,r;return t[22]!==b.url||t[23]!==n||t[24]!==e?(r=(0,Q.jsx)(Ve,{url:b.url,onRetry:e,reason:n}),t[22]=b.url,t[23]=n,t[24]=e,t[25]=r):r=t[25],r}let U=P===`attach`?!0:void 0,W=p?.tabId===b.id?p:null,G;return t[26]!==b.id||t[27]!==b.url||t[28]!==m||t[29]!==s||t[30]!==o||t[31]!==a||t[32]!==l||t[33]!==f||t[34]!==d||t[35]!==W||t[36]!==U||t[37]!==x||t[38]!==u?(G=(0,Q.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col bg-sidebar`,children:(0,Q.jsx)(je,{tabId:b.id,desktopTarget:x,existingOnly:U,initialUrl:b.url,addressFocusRequest:W,onAddressFocusRequestConsumed:a,canShowNativeBrowserView:s,canHandleBrowserCommands:m,onNativeFocus:l,visibilityCoordinator:y,environmentId:o,threadId:u,onUpdate:d,onOpenInNewTab:f},b.id)}),t[26]=b.id,t[27]=b.url,t[28]=m,t[29]=s,t[30]=o,t[31]=a,t[32]=l,t[33]=f,t[34]=d,t[35]=W,t[36]=U,t[37]=x,t[38]=u,t[39]=G):G=t[39],G}function $(e){return e+1}function ze(){return null}var Be={"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 Ve(e){let t=(0,X.c)(24),{url:n,reason:r,onRetry:i}=e,a=Be[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,Q.jsx)(`span`,{className:`flex size-11 items-center justify-center rounded-lg border border-border bg-card text-muted-foreground`,children:(0,Q.jsx)(p,{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,Q.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=h(`max-w-xs text-muted-foreground`,H),t[5]=d):d=t[5];let f;t[6]===a.body?f=t[7]:(f=(0,Q.jsx)(`p`,{className:d,children:a.body}),t[6]=a.body,t[7]=f);let m;t[8]===n?m=t[9]:(m=n.length>0?(0,Q.jsx)(`p`,{className:h(`max-w-full truncate font-mono text-muted-foreground select-text`,H),title:n,children:n}):null,t[8]=n,t[9]=m);let g;t[10]===i?g=t[11]:(g=i===null?null:(0,Q.jsxs)(I,{type:`button`,variant:`outline`,size:`sm`,onClick:i,children:[(0,Q.jsx)(p,{name:`RotateCcw`,"aria-hidden":!0}),`Try again`]}),t[10]=i,t[11]=g);let _;t[12]!==c||t[13]!==i||t[14]!==n?(_=n.length>0?(0,Q.jsxs)(Q.Fragment,{children:[c?(0,Q.jsxs)(I,{type:`button`,variant:i===null?`outline`:`ghost`,size:`sm`,onClick:()=>F(n),children:[(0,Q.jsx)(p,{name:`ExternalLink`,"aria-hidden":!0}),`Open in browser`]}):null,(0,Q.jsxs)(I,{type:`button`,variant:`ghost`,size:`sm`,onClick:()=>{v(n,{successMessage:`Link copied`})},children:[(0,Q.jsx)(p,{name:`Copy`,"aria-hidden":!0}),`Copy link`]})]}):null,t[12]=c,t[13]=i,t[14]=n,t[15]=_):_=t[15];let y;t[16]!==g||t[17]!==_?(y=(0,Q.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center gap-2`,children:[g,_]}),t[16]=g,t[17]=_,t[18]=y):y=t[18];let b;return t[19]!==u||t[20]!==f||t[21]!==m||t[22]!==y?(b=(0,Q.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,m,y]}),t[19]=u,t[20]=f,t[21]=m,t[22]=y,t[23]=b):b=t[23],b}export{Re as BrowserTabDeck};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Br as t,hi as n,kr as r,ri as i}from"./boot-vendor-CKEhulXz.js";import{$a as a,Cm as o,Dp as s,Fh as c,ao as l,em as u,xm as d}from"./index-C0VsRvUA.js";import{i as f,n as p,r as m,t as h}from"./PaletteShell-DbSO6v5o.js";import{r as g}from"./settings-sections-bSLBnb1k.js";import{s as _,t as v}from"./settings-nav-I0K9Uf3i.js";var y=e(n(),1),b=r();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(d({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(o({pluginId:t.pluginId,path:t.path}))}))}var C=e(i(),1),ie=l(`thread.search`);function ae(e){let n=(0,b.c)(60),{actions:r,installedPlugins:i,recents:o,query:c,onQueryChange:l,onChoose:d}=e,m=t(),g=s(),x=(0,y.useId)(),S=(0,y.useId)(),[ae,w]=(0,y.useState)(0),T=u(),de=v(T.fileOpeners),E;n[0]!==i||n[1]!==T.settingsSections?(E=_({installedPlugins:i,settingsSections:T.settingsSections}),n[0]=i,n[1]=T.settingsSections,n[2]=E):E=n[2];let fe=E,D;n[3]===m?D=n[4]:(D=e=>void m(e),n[3]=m,n[4]=D);let O;n[5]!==fe||n[6]!==de||n[7]!==D?(O=ne({navigate:D,pluginEntries:fe,sections:de}),n[5]=fe,n[6]=de,n[7]=D,n[8]=O):O=n[8];let pe=O,k;n[9]===m?k=n[10]:(k=e=>void m(e),n[9]=m,n[10]=k);let A;n[11]!==T.navPanels||n[12]!==k?(A=re({navigate:k,panels:T.navPanels}),n[11]=T.navPanels,n[12]=k,n[13]=A):A=n[13];let me=A,{choices:he,select:j}=ee(),M;n[14]!==he||n[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)})),n[14]=he,n[15]=j,n[16]=M):M=n[16];let N=M,P;n[17]!==r||n[18]!==me||n[19]!==N||n[20]!==pe?(P=[...r,...pe,...me,...N],n[17]=r,n[18]=me,n[19]=N,n[20]=pe,n[21]=P):P=n[21];let ge=P,F;n[22]===c?F=n[23]:(F=c.startsWith(`>`)?c.slice(1):c,n[22]=c,n[23]=F);let I=F,L;n[24]!==ge||n[25]!==I||n[26]!==o?(L=f({actions:ge,query:I,recentIds:o}),n[24]=ge,n[25]=I,n[26]=o,n[27]=L):L=n[27];let R=L,z;n[28]===I?z=n[29]:(z=I.trim(),n[28]=I,n[29]=z);let B=z===``,V;if(n[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)})),n[30]=R,n[31]=V}else V=n[31];let H=V,U;n[32]!==B||n[33]!==R||n[34]!==H?(U=B?H.flatMap(oe):R,n[32]=B,n[33]=R,n[34]=H,n[35]=U):U=n[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;n[36]===Symbol.for(`react.memo_cache_sentinel`)?(J=()=>{q.current&&(q.current=!1,K.current?.querySelector(`[aria-selected="true"]`)?.scrollIntoView({block:`nearest`}))},n[36]=J):J=n[36];let Y;n[37]===G?Y=n[38]:(Y=[G],n[37]=G,n[38]=Y),(0,y.useEffect)(J,Y);let X;n[39]!==G||n[40]!==d||n[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)}}},n[39]=G,n[40]=d,n[41]=W,n[42]=X):X=n[42];let _e=X,ve=G===-1?void 0:`${S}-${G}`,Z;n[43]===l?Z=n[44]:(Z=e=>{l(e),w(0),K.current!==null&&(K.current.scrollTop=0)},n[43]=l,n[44]=Z);let Q;n[45]!==G||n[46]!==g||n[47]!==B||n[48]!==d||n[49]!==S||n[50]!==H||n[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)),n[45]=G,n[46]=g,n[47]=B,n[48]=d,n[49]=S,n[50]=H,n[51]=W,n[52]=Q):Q=n[52];let $;return n[53]!==_e||n[54]!==x||n[55]!==c||n[56]!==ve||n[57]!==Z||n[58]!==Q?($=(0,C.jsx)(p,{activeDescendantId:ve,inputDescription:a.description,inputLabel:a.label,listId:x,listLabel:`Commands`,listRef:K,onInputChange:Z,onInputKeyDown:_e,placeholder:a.placeholder,value:c,children:Q}),n[53]=_e,n[54]=x,n[55]=c,n[56]=ve,n[57]=Z,n[58]=Q,n[59]=$):$=n[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:l}=e,u=n.action.group===`Browser`||n.action.id.startsWith(`plugin:`)?n.action.group:null,d=a?`${n.action.title}…`:n.action.title,f=o?n.action.shortcut:null,p=u!==null||f!==null||a,h=a?`drill-in`:`terminal`,g=i&&`bg-state-hover text-foreground`,_;t[0]===g?_=t[1]:(_=c(`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]!==d?(v=(0,C.jsx)(`span`,{className:`min-w-0 truncate`,children:(0,C.jsx)(w,{title:d,positions:n.positions})}),t[2]=n.positions,t[3]=d,t[4]=v):v=t[4];let y;t[5]!==p||t[6]!==a||t[7]!==u||t[8]!==f?(y=p?(0,C.jsxs)(`span`,{className:`ml-auto flex shrink-0 items-center gap-2`,children:[u===null?null:(0,C.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:u}),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]=u,t[8]=f,t[9]=y):y=t[9];let x;return t[10]!==r||t[11]!==i||t[12]!==s||t[13]!==l||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:l,children:[v,y]}),t[10]=r,t[11]=i,t[12]=s,t[13]=l,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};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{$ as r}from"./index-C0VsRvUA.js";import{r as i}from"./git-diff-patch-text-SHpUxhZL.js";import{t as a}from"./MoonletDiffSplit-Wkva9sZs.js";import{a as o,n as s,t as c}from"./code-rendering-L5YOZIAv.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};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{Bi as r,Gn as i,Hi as a,Ia as o,Ui as s,Vi as c,Wi as l,Wn as u,Xn as d,em as f}from"./index-C0VsRvUA.js";import{t as p}from"./useLocalOpenTargets-DryOrrgz.js";import{t as m}from"./useResolvedLiveFileTarget-CQk3hWJe.js";var h=t(),g=e(n(),1);function _(e){let t=i(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=d(),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}=f(),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),i=e===null?[]:T.filter(t=>t.extensions.includes(e)),o=u(n.location);t[17]!==n||t[18]!==v?(E=(0,g.jsx)(r,{onSelect:()=>v.openFilePreview(n),children:`Open preview`}),t[17]=n,t[18]=v,t[19]=E):E=t[19],D=i.length>0?(0,g.jsxs)(a,{children:[(0,g.jsx)(l,{children:`Open with`}),(0,g.jsxs)(s,{className:`min-w-52`,children:[(0,g.jsx)(r,{onSelect:()=>v.openFilePreview({...n,viewer:`builtin`}),children:`Moonlet preview`}),i.map(e=>(0,g.jsx)(r,{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,d;t[20]!==n||t[21]!==v?(d=()=>v.openFileExternally(n),t[20]=n,t[21]=v,t[22]=d):d=t[22],t[23]!==d||t[24]!==c?(O=(0,g.jsx)(r,{disabled:c,onSelect:d,children:`Open externally`}),t[23]=d,t[24]=c,t[25]=O):O=t[25],k=b.status===`available`&&w.fileOpenTargets.length>0?(0,g.jsxs)(a,{children:[(0,g.jsx)(l,{children:`Open in`}),(0,g.jsx)(s,{className:`min-w-52`,children:w.fileOpenTargets.map(e=>(0,g.jsx)(r,{onSelect:()=>{w.openPathInFileTarget({columnNumber:o.columnNumber,lineNumber:o.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)(c,{}),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)(r,{onSelect:()=>{o(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)(r,{onSelect:()=>{o(i(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};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{o as e,r as t}from"./rolldown-runtime-BM3Ffeng.js";import{hi as n,kr as r,ri as i}from"./boot-vendor-CKEhulXz.js";import{$f as a,Dh as o,Dp as s,Fh as c,Ia as l,Pn as u,Sc as d,Zt as f,aa as p,da as m,dp as h,ep as g,ha as _,ht as v,jh as y,la as b,np as x,oa as S,ra as C,sa as w,tp as T,ua as E,uo as D,wp as O}from"./index-C0VsRvUA.js";import{n as k}from"./code-loading-skeletons-D24eCxCr.js";import{a as A,i as j,o as M,r as N,t as P}from"./TimelineSelectionMenu-BB3GIhnm.js";import{t as F}from"./esm-CUQGeFi6.js";import{a as I,n as ee,r as te,t as ne}from"./useElementWidth-DhUbYVeV.js";import{n as L}from"./save-file-CQwnhLOU.js";import{t as re}from"./AppCommandShortcutHint-CvnJ3Tvp.js";import{n as R,r as z}from"./image-lightbox-BJhem-0h.js";import{h as ie,m as ae,t as B}from"./markdown-preview-yjIRBQ-q.js";import{n as V}from"./SourceCodeHost-JY-vRsj6.js";import{t as oe}from"./open-in-editor-button-DncCrasz.js";var H=r(),U=e(n(),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,`markdown`).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),f=d(),[p,m]=(0,U.useState)(null),h=!f,g;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>{m(null)},t[0]=g):g=t[0];let _=g,v;t[1]===a?v=t[2]:(v=e=>{m(Y({anchor:e,markdown:a,node:o.current,pointerStartedInNode:s.current}))},t[1]=a,t[2]=v);let y=v,b,x;t[3]!==h||t[4]!==y?(b=()=>{if(!h||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,y(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)}},x=[h,y],t[3]=h,t[4]=y,t[5]=b,t[6]=x):(b=t[5],x=t[6]),(0,U.useEffect)(b,x);let S,C;t[7]===a?(S=t[8],C=t[9]):(S=()=>{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,`text`);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)},C=[a],t[7]=a,t[8]=S,t[9]=C),(0,U.useEffect)(S,C);let w;t[10]===i?w=t[11]:(w=e=>{i?.(e),m(null)},t[10]=i,t[11]=w);let T=w,E;t[12]===n?E=t[13]:(E=(0,G.jsx)(`div`,{ref:o,className:`contents`,children:n}),t[12]=n,t[13]=E);let D;t[14]!==T||t[15]!==h||t[16]!==i||t[17]!==p?(D=h?(0,G.jsx)(P,{selection:p,onAddToChat:i===void 0?void 0:T,onDismiss:_}):null,t[14]=T,t[15]=h,t[16]=i,t[17]=p,t[18]=D):D=t[18];let O;return t[19]!==D||t[20]!==E?(O=(0,G.jsxs)(G.Fragment,{children:[E,D]}),t[19]=D,t[20]=E,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:l,onRefresh:u,isRefreshing:d,markdownLinkRouting:f,statusLabel:p}=e,m=n===void 0?null:n,h=a===void 0?null:a,g=o===void 0?`file`:o,_=d===void 0?!1:d,v=p===void 0?null:p,y=r.kind===`html`?r.iframe:null,b;t[0]!==y?.url||t[1]!==r.file||t[2]!==r.kind?(b=JSON.stringify([r.kind,y?.url,r.kind===`html`?r.file.cacheKey:null]),t[0]=y?.url,t[1]=r.file,t[2]=r.kind,t[3]=b):b=t[3];let x=b,S;t[4]===x?S=t[5]:(S={key:x,status:`loading`},t[4]=x,t[5]=S);let[C,w]=(0,U.useState)(S);C.key!==x&&w({key:x,status:`loading`});let T=C.key===x?C.status:`loading`,E;t[6]!==x||t[7]!==T||t[8]!==y?(E=y===null?null:(0,G.jsx)(Ve,{...y,loadState:T,onLoadStateChange:e=>w(t=>t.key===x?{key:x,status:e}:t)},x),t[6]=x,t[7]=T,t[8]=y,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?c(`@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]!==h||t[31]!==m||t[32]!==O||t[33]!==g||t[34]!==T||t[35]!==_||t[36]!==I||t[37]!==l||t[38]!==u||t[39]!==i||t[40]!==A||t[41]!==B||t[42]!==r.kind||t[43]!==v||t[44]!==N||t[45]!==re||t[46]!==P?(J=g===`file`?(0,G.jsx)(Ne,{download:m,previewIcon:(0,G.jsx)(Be,{loading:r.kind===`loading`||_||re&&T===`loading`},i),path:i,copyPath:h,rawContents:A,externalUrl:O,onOpenInEditor:l,onRefresh:u,isRefreshing:_,statusLabel:v,toggleKind:N,showLineOverflowToggle:B,lineOverflowMode:I,onLineOverflowModeChange:te,viewMode:P,onViewModeChange:F}):null,t[30]=h,t[31]=m,t[32]=O,t[33]=g,t[34]=T,t[35]=_,t[36]=I,t[37]=l,t[38]=u,t[39]=i,t[40]=A,t[41]=B,t[42]=r.kind,t[43]=v,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]!==f||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:f,onSelectionAddToChat:s}),t[48]=R,t[49]=D,t[50]=I,t[51]=f,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:u,rawContents:d,externalUrl:h,onOpenInEditor:C,onRefresh:k,isRefreshing:A,statusLabel:j,toggleKind:M,showLineOverflowToggle:N,lineOverflowMode:P,onLineOverflowModeChange:F,viewMode:ee,onViewModeChange:R}=e,z=D(`workspace.openPreferred`),{ref:ae,width:B}=ne(),V=s(),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]!==u||t[3]!==i?(J=(0,G.jsx)(I,{path:i,copyPath:u}),t[2]=u,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:c(`shrink-0 leading-5 text-muted-foreground`,O),children:[`(`,j,`)`]}),t[5]=j,t[6]=Y);let X;t[7]!==q||t[8]!==n||t[9]!==h||t[10]!==U||t[11]!==A||t[12]!==C||t[13]!==k||t[14]!==z||t[15]!==i||t[16]!==d?(X=U?null:(0,G.jsxs)(T,{delayDuration:300,children:[k?(0,G.jsxs)(a,{children:[(0,G.jsx)(x,{asChild:!0,children:(0,G.jsx)(y,{type:`button`,variant:`ghost`,size:`icon`,className:c($,`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)(o,{name:`RotateCcw`,"aria-hidden":!0})})}),(0,G.jsx)(g,{side:`bottom`,children:A?`Refreshing file`:`Refresh file`})]}):null,n===null?null:(0,G.jsxs)(a,{children:[(0,G.jsx)(x,{asChild:!0,children:(0,G.jsx)(y,{type:`button`,variant:`ghost`,size:`icon`,className:$,onClick:()=>void L(n),"aria-label":`Download`,children:(0,G.jsx)(o,{name:`Download`,"aria-hidden":!0})})}),(0,G.jsx)(g,{side:`bottom`,children:`Download`})]}),d===null?null:(0,G.jsxs)(a,{children:[(0,G.jsx)(x,{asChild:!0,children:(0,G.jsx)(f,{text:d,label:q,className:c($,`shrink-0 rounded-md hover:bg-state-hover hover:text-foreground`)})}),(0,G.jsx)(g,{side:`bottom`,children:q})]}),h===null?null:(0,G.jsxs)(a,{children:[(0,G.jsx)(x,{asChild:!0,children:(0,G.jsx)(y,{type:`button`,variant:`ghost`,size:`icon`,className:c($,`shrink-0 text-muted-foreground hover:bg-state-hover hover:text-foreground`),onClick:()=>{v(be(h))},"aria-label":`Open in external browser`,children:(0,G.jsx)(o,{name:`Globe`,"aria-hidden":!0})})}),(0,G.jsx)(g,{side:`bottom`,children:`Open in external browser`})]}),C?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(a,{children:[(0,G.jsx)(x,{asChild:!0,children:(0,G.jsx)(oe,{onClick:()=>C(i),className:$,label:z?`Open in editor (${z.label})`:`Open in editor`,"aria-keyshortcuts":z?.ariaKeyshortcuts})}),(0,G.jsx)(g,{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]=h,t[10]=U,t[11]=A,t[12]=C,t[13]=k,t[14]=z,t[15]=i,t[16]=d,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]!==u||t[25]!==n||t[26]!==h||t[27]!==U||t[28]!==A||t[29]!==P||t[30]!==F||t[31]!==C||t[32]!==k||t[33]!==R||t[34]!==i||t[35]!==d||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)(y,{type:`button`,variant:`ghost`,size:`sm`,className:c(ve,O),onClick:()=>R(`preview`),"aria-pressed":ee===`preview`,children:`Preview`}),(0,G.jsx)(y,{type:`button`,variant:`ghost`,size:`sm`,className:c(ve,O),onClick:()=>R(`source`),"aria-pressed":ee===`source`,children:`Raw`})]}),U?(0,G.jsxs)(p,{modal:!1,children:[(0,G.jsx)(_,{asChild:!0,children:(0,G.jsx)(y,{variant:`ghost`,size:`icon`,className:c($,`shrink-0 max-md:pointer-coarse:size-10`),"aria-label":`File actions`,children:(0,G.jsx)(o,{name:`MoreHorizontal`,"aria-hidden":!0})})}),(0,G.jsxs)(w,{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)(E,{className:`max-w-80 break-all font-mono`,children:i}),(0,G.jsx)(m,{}),(0,G.jsxs)(b,{onSelect:()=>{l(u??i,{successMessage:`File path copied`,errorMessage:`Failed to copy file path`})},children:[(0,G.jsx)(o,{name:`Copy`,"aria-hidden":!0}),` Copy file path`]}),d===null?null:(0,G.jsxs)(b,{onSelect:()=>{l(d,{successMessage:`Copied to clipboard`,errorMessage:`Failed to copy file contents`})},children:[(0,G.jsx)(o,{name:`Copy`,"aria-hidden":!0}),` `,q]}),n===null?null:(0,G.jsxs)(b,{onSelect:()=>void L(n),children:[(0,G.jsx)(o,{name:`Download`,"aria-hidden":!0}),` Download`]}),k?(0,G.jsxs)(b,{disabled:A,onSelect:k,children:[(0,G.jsx)(o,{name:`RotateCcw`,"aria-hidden":!0}),` `,A?`Refreshing file`:`Refresh file`]}):null,h===null?null:(0,G.jsxs)(b,{onSelect:()=>v(be(h)),children:[(0,G.jsx)(o,{name:`Globe`,"aria-hidden":!0}),` Open in external browser`]}),C?(0,G.jsxs)(b,{onSelect:()=>C(i),children:[(0,G.jsx)(o,{name:`ExternalLink`,"aria-hidden":!0}),` Open in editor`]}):null,N?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(m,{}),(0,G.jsxs)(S,{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)(o,{name:`TextWrap`,"aria-hidden":!0}),ie]})]}):null]})]}):null]}):null,t[23]=q,t[24]=u,t[25]=n,t[26]=h,t[27]=U,t[28]=A,t[29]=P,t[30]=F,t[31]=C,t[32]=k,t[33]=R,t[34]=i,t[35]=d,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 s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=c($,`text-muted-foreground`),t[0]=s):s=t[0];let l=r===`wrap`,u;t[1]!==r||t[2]!==i?(u=()=>{i(r===`wrap`?`scroll`:`wrap`)},t[1]=r,t[2]=i,t[3]=u):u=t[3];let d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,G.jsx)(o,{name:`TextWrap`}),t[4]=d):d=t[4];let f;t[5]!==l||t[6]!==u?(f=(0,G.jsx)(x,{asChild:!0,children:(0,G.jsx)(y,{type:`button`,variant:`ghost`,size:`icon`,className:s,"aria-label":ie,"aria-pressed":l,onClick:u,children:d})}),t[5]=l,t[6]=u,t[7]=f):f=t[7];let p;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,G.jsx)(g,{side:`bottom`,children:ie}),t[8]=p):p=t[8];let m;return t[9]===f?m=t[10]:(m=(0,G.jsx)(T,{delayDuration:300,children:(0,G.jsxs)(a,{children:[f,p]})}),t[9]=f,t[10]=m),m}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,s;t[0]===n?(a=t[1],s=t[2]):(a=()=>{if(!n){i(!1);return}let e=window.setTimeout(()=>i(!0),_e);return()=>window.clearTimeout(e)},s=[n],t[0]=n,t[1]=a,t[2]=s),(0,U.useEffect)(a,s);let l=n&&r,u;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=c(`flex items-center justify-center text-subtle-foreground`,h),t[3]=u):u=t[3];let d=l?`Spinner`:`File`,f=l&&`animate-spin motion-reduce:animate-none`,p;t[4]===f?p=t[5]:(p=c(`size-full`,f),t[4]=f,t[5]=p);let m;t[6]!==d||t[7]!==p?(m=(0,G.jsx)(o,{name:d,className:p,"aria-hidden":!0}),t[6]=d,t[7]=p,t[8]=m):m=t[8];let g;t[9]===l?g=t[10]:(g=l?(0,G.jsx)(`span`,{role:`status`,className:`sr-only`,children:`Loading preview…`}):null,t[9]=l,t[10]=g);let _;return t[11]!==m||t[12]!==g?(_=(0,G.jsxs)(`span`,{className:u,children:[m,g]}),t[11]=m,t[12]=g,t[13]=_):_=t[13],_}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)(o,{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,s;t[3]===n.sizeBytes?s=t[4]:(s=u(n.sizeBytes),t[3]=n.sizeBytes,t[4]=s);let c=`${a} · ${s}`,l;t[5]===c?l=t[6]:(l=(0,G.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:c}),t[5]=c,t[6]=l);let d;t[7]!==i||t[8]!==l?(d=(0,G.jsxs)(`div`,{className:`flex max-w-full min-w-0 flex-col gap-1`,children:[i,l]}),t[7]=i,t[8]=l,t[9]=d):d=t[9];let f=n.reason===`too-large`?`This file is too large to preview.`:`This file type can't be previewed.`,p;t[10]===f?p=t[11]:(p=(0,G.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:f}),t[10]=f,t[11]=p);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)(o,{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)(y,{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]!==d||t[22]!==p?(_=(0,G.jsxs)(`div`,{className:`flex flex-col items-center gap-4 px-6 py-12 text-center`,children:[r,d,p,g]}),t[20]=g,t[21]=d,t[22]=p,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)(C,{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};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,kr as n,ri as r}from"./boot-vendor-CKEhulXz.js";import{Dh as i,Fh as a,Pn as o,Sc as s,Zt as c,jh as l}from"./index-C0VsRvUA.js";import{t as u}from"./code-loading-skeletons-D24eCxCr.js";import{f as d,l as f,o as p,u as m}from"./git-diff-patch-text-SHpUxhZL.js";import{t as h}from"./truncate-start-CgQYzBGh.js";import{n as g,r as _,t as v}from"./image-lightbox-BJhem-0h.js";import{a as y}from"./absolute-file-path-DOHZ1cOR.js";import{n as b}from"./diff-stats-tally-BSgKwNwX.js";import{t as x}from"./open-in-editor-button-DncCrasz.js";import{n as S,t as C}from"./file-path-link-DfHc0EYs.js";import{t as w}from"./DiffHost-C1JHHiNs.js";var T=n(),E=e(t(),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,c=r===`deleted`,l;t[0]!==n||t[1]!==i?(l=N(n,i),t[0]=n,t[1]=i,t[2]=l):l=t[2];let u=l,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=s(),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=c&&!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:s,enrichment:c,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]!==c||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)(l,{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:c,fileDiffLabel:f}):m?(0,D.jsx)(G,{displayMode:i,enrichment:c,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]=c,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]!==s||t[17]!==x?(S=(0,D.jsx)(`div`,{ref:s,className:`overflow-hidden rounded-b-lg bg-background`,style:O,children:x}),t[16]=s,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 s;t[2]!==a||t[3]!==i?(s=(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)(l,{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]=s):s=t[4];let c;return t[5]!==o||t[6]!==s?(c=(0,D.jsxs)(`div`,{className:`flex items-center py-2 pl-2 pr-3 text-xs text-muted-foreground`,children:[o,s]}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}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:`+${o(n.addedBytes)}`}),t[0]=n.addedBytes,t[1]=r);let i;t[2]===n.removedBytes?i=t[3]:(i=n.removedBytes===null?null:(0,D.jsx)(`span`,{className:`text-diff-removed`,children:`-${o(n.removedBytes)}`}),t[2]=n.removedBytes,t[3]=i);let a;return t[4]!==r||t[5]!==i?(a=(0,D.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1 whitespace-nowrap text-xs tabular-nums`,children:[r,i]}),t[4]=r,t[5]=i,t[6]=a):a=t[6],a}function J(e){let t=(0,T.c)(5),{fileLabel:n,isRaw:r,onToggle:a}=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)(i,{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]!==a?(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:a,"aria-label":o,"aria-pressed":r,children:s}),t[1]=r,t[2]=o,t[3]=a,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:o,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]!==o||t[4]!==k?(ee=k?y({path:k,rootPath:o}):null,t[3]=o,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:a(`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)(i,{name:`ChevronRight`,className:a(`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=a(`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)(i,{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)(c,{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 a(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};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,kr as n,ri as r}from"./boot-vendor-CKEhulXz.js";import{Dh as i,Fh as a,jh as o}from"./index-C0VsRvUA.js";import{o as s}from"./queued-editor-typeahead-layout-DwMEtAFX.js";var c=n(),l=e(t(),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=a(`inline-flex items-center whitespace-nowrap rounded border border-border px-1.5 py-0.5 text-xs`,d,f);a(`text-xs`,f,`focus-visible:z-10`);var m=(0,l.forwardRef)(function(e,t){let n=(0,c.c)(11),r,i,o;n[0]===e?(r=n[1],i=n[2],o=n[3]):({className:r,type:o,...i}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o);let s=o===void 0?`button`:o,l;n[4]===r?l=n[5]:(l=a(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=a(`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=a(`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)(o,{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};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{Dh as r,Fh as i,tn as a}from"./index-C0VsRvUA.js";var o=t(),s=e(n(),1);function c(e){let t=(0,o.c)(3),{provider:n,className:r}=e,i;return t[0]!==r||t[1]!==n?(i=(0,s.jsx)(a,{providerKind:`machine`,provider:n,fallback:`Zap`,className:r}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i}function l(e,t){return e.type!==`ephemeral`||e.machineProviderId===null?null:t?.id===e.machineProviderId?t:{id:e.machineProviderId,displayName:e.machineProviderId,icon:`ComputerCloud`,logoUrl:null}}function u(e){let t=(0,o.c)(12),{host:n,machineProvider:a,className:u}=e,d;t[0]!==n||t[1]!==a?(d=l(n,a),t[0]=n,t[1]=a,t[2]=d):d=t[2];let f=d;if(f===null){let e;t[3]===u?e=t[4]:(e=i(`size-3.5 shrink-0`,u),t[3]=u,t[4]=e);let n;return t[5]===e?n=t[6]:(n=(0,s.jsx)(r,{name:`Laptop`,className:e,"aria-hidden":!0}),t[5]=e,t[6]=n),n}let p;t[7]===u?p=t[8]:(p=i(`size-3.5 shrink-0`,u),t[7]=u,t[8]=p);let m;return t[9]!==f||t[10]!==p?(m=(0,s.jsx)(c,{provider:f,className:p}),t[9]=f,t[10]=p,t[11]=m):m=t[11],m}function d(e){let t=(0,o.c)(15),{host:n,machineProvider:r,className:a,iconClassName:c,nameClassName:l}=e,d;t[0]===a?d=t[1]:(d=i(`inline-flex min-w-0 items-center gap-1.5`,a),t[0]=a,t[1]=d);let f;t[2]!==n||t[3]!==c||t[4]!==r?(f=(0,s.jsx)(u,{host:n,machineProvider:r,className:c}),t[2]=n,t[3]=c,t[4]=r,t[5]=f):f=t[5];let p;t[6]===l?p=t[7]:(p=i(`min-w-0 truncate`,l),t[6]=l,t[7]=p);let m;t[8]!==n.name||t[9]!==p?(m=(0,s.jsx)(`span`,{className:p,children:n.name}),t[8]=n.name,t[9]=p,t[10]=m):m=t[10];let h;return t[11]!==d||t[12]!==f||t[13]!==m?(h=(0,s.jsxs)(`span`,{className:d,children:[f,m]}),t[11]=d,t[12]=f,t[13]=m,t[14]=h):h=t[14],h}export{d as n,u as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Qr as t,hi as n,kr as r,ni as i,qr as a,ri as o}from"./boot-vendor-CKEhulXz.js";import{Co as s,Ct as c,Dh as l,Do as u,E as d,Eo as f,Fh as p,Gd as m,Jr as h,Kr as g,Na as _,O as v,Qi as y,S as b,So as x,To as S,Zo as C,__ as w,b as T,dc as E,ea as D,ia as O,jh as k,nc as A,v as j,wo as M,x as N}from"./index-C0VsRvUA.js";import{o as P}from"./dist-i0jLXifx.js";import{n as F}from"./AddMachineDialog-Chh_mb2Z.js";import{t as I}from"./checkbox-BCAnVF8N.js";import{t as L}from"./update-state-CuYJKY13.js";import{n as R,t as z}from"./host-mutations-C72k-mgV.js";var B=r(),V=()=>[`machine-inventory`];function H({queryClient:e}){return e.invalidateQueries({queryKey:V()})}var U=e(o(),1),ee=[{role:`workloads`,title:`Workloads`,description:`Default place for new work.`},{role:`request`,title:`On request`,description:`Only work you ask for, in a folder listed under Access.`},{role:`none`,title:`None`,description:`Your moonlet starts nothing here.`}];function te(e){let n=(0,B.c)(32),{hostId:r}=e,o;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={includeCreating:!0},n[0]=o):o=n[0];let s=y(o),c=i(),l;n[1]===Symbol.for(`react.memo_cache_sentinel`)?(l={queryKey:V(),queryFn:re,refetchInterval:5e3},n[1]=l):l=n[1];let u=t(l),d;n[2]===c?d=n[3]:(d={mutationFn:ne,onSuccess:async()=>{await H({queryClient:c})}},n[2]=c,n[3]=d);let f=a(d);if(u.isError){let e;return n[4]===u.error.message?e=n[5]:(e=(0,U.jsxs)(`p`,{role:`alert`,children:[`Could not load machine roles: `,u.error.message]}),n[4]=u.error.message,n[5]=e),e}if(!u.data){let e;return n[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,U.jsx)(`p`,{children:`Loading roles…`}),n[6]=e):e=n[6],e}let p;if(n[7]!==r||n[8]!==s||n[9]!==u.data.roles||n[10]!==f){let e;n[12]===r?e=n[13]:(e=e=>r===void 0||e.hostId===r,n[12]=r,n[13]=e);let t;n[14]!==s||n[15]!==f?(t=e=>(0,U.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,U.jsx)(`legend`,{className:`text-sm font-medium`,children:s.data?.find(t=>t.id===e.hostId)?.name??e.hostId}),ee.map(t=>(0,U.jsxs)(`label`,{className:`flex items-start gap-3 rounded-md border border-border p-3 text-sm`,children:[(0,U.jsx)(`input`,{type:`radio`,name:`role-${e.hostId}`,checked:e.role===t.role,disabled:f.isPending||e.isServer&&t.role!==`none`||t.role===`workloads`&&!e.supportsWorkloads,onChange:()=>f.mutate({hostId:e.hostId,role:t.role})}),(0,U.jsxs)(`span`,{children:[(0,U.jsx)(`span`,{className:`block font-medium`,children:t.title}),(0,U.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:t.description})]})]},t.role)),!e.isServer&&!e.supportsWorkloads?(0,U.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Workloads needs a machine already prepared for isolated work.`}):null,e.isServer?(0,U.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This machine runs the server, so it can only be None. Your moonlet and the server never share a machine.`}):null]},e.hostId),n[14]=s,n[15]=f,n[16]=t):t=n[16],p=u.data.roles.filter(e).map(t),n[7]=r,n[8]=s,n[9]=u.data.roles,n[10]=f,n[11]=p}else p=n[11];let m;n[17]!==f.error||n[18]!==f.isError?(m=f.isError?(0,U.jsx)(`p`,{role:`alert`,children:f.error.message}):null,n[17]=f.error,n[18]=f.isError,n[19]=m):m=n[19];let h;if(n[20]!==r||n[21]!==s||n[22]!==u.data.records){let e;n[24]===r?e=n[25]:(e=e=>r===void 0||e.hostId===r,n[24]=r,n[25]=e);let t;n[26]===s?t=n[27]:(t=e=>(0,U.jsx)(ie,{record:e,machineName:e=>s.data?.find(t=>t.id===e)?.name??e},`${e.kind}:${e.name}`),n[26]=s,n[27]=t),h=u.data.records.filter(e).map(t),n[20]=r,n[21]=s,n[22]=u.data.records,n[23]=h}else h=n[23];let g;return n[28]!==p||n[29]!==m||n[30]!==h?(g=(0,U.jsx)(P,{title:`Role`,description:`What your moonlet may start on each machine.`,children:(0,U.jsxs)(`div`,{className:`space-y-6 p-4`,children:[p,m,h]})}),n[28]=p,n[29]=m,n[30]=h,n[31]=g):g=n[31],g}function ne(e){let{hostId:t,role:n}=e;return m.hosts.experimental_setRole({hostId:t,role:n})}function re(){return m.hosts.experimental_inventory()}function ie(e){let t=(0,B.c)(13),{record:n,machineName:r}=e,i;if(t[0]!==r||t[1]!==n.hostId||t[2]!==n.managedFrom||t[3]!==n.name||t[4]!==n.record){let e=[{title:`Connection`,fields:[[`gate`,`Gate`],[`tunnel`,`Tunnel`]]},{title:`Hardware and accounts`,fields:[[`os`,`System`],[`driver`,`Virtual machine`],[`admin_user`,`Administrator`],[`desktop_user`,`Desktop user`],[`cpus`,`CPU cores`],[`memory_gb`,`Memory (GB)`],[`disk_gb`,`Disk (GB)`],[`hypervisor`,`Host`],[`server`,`Host record`],[`region`,`Region`],[`profile`,`Cloud profile`],[`instance_type`,`Instance type`]]},{title:`Installed`,fields:Object.entries(n.record).filter(q).sort(K).map(W)},{title:`Other saved settings`,fields:[[`orbit_thread`,`Conversation machine`],[`mail`,`Mail`],[`events`,`Event rules`]]}],a=ae,o;t[6]===n.name?o=t[7]:(o=(0,U.jsx)(`h3`,{className:`text-sm font-medium`,children:n.name}),t[6]=n.name,t[7]=o);let s;t[8]===n.hostId?s=t[9]:(s=n.hostId===null?(0,U.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Offline or not enrolled. Its saved settings stay here.`}):null,t[8]=n.hostId,t[9]=s);let c;t[10]!==r||t[11]!==n.managedFrom?(c=n.managedFrom?(0,U.jsxs)(`div`,{className:`text-sm`,children:[(0,U.jsx)(`h4`,{className:`font-medium`,children:`Managed from`}),(0,U.jsx)(`p`,{children:r(n.managedFrom)})]}):null,t[10]=r,t[11]=n.managedFrom,t[12]=c):c=t[12],i=(0,U.jsxs)(`section`,{className:`space-y-4 border-t border-border pt-4`,children:[o,s,c,e.map(e=>{let t=e.fields.filter(e=>{let[t]=e;return n.record[t]!==void 0});return t.length>0?(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`h4`,{className:`text-sm font-medium`,children:e.title}),(0,U.jsx)(`dl`,{className:`divide-y divide-border text-sm`,children:t.map(e=>{let[t,r]=e;return(0,U.jsxs)(`div`,{className:`flex flex-wrap justify-between gap-2 py-2`,children:[(0,U.jsx)(`dt`,{children:r}),(0,U.jsx)(`dd`,{className:`break-all text-xs`,children:a(n.record[t])})]},t)})})]},e.title):null})]}),t[0]=r,t[1]=n.hostId,t[2]=n.managedFrom,t[3]=n.name,t[4]=n.record,t[5]=i}else i=t[5];return i}function ae(e){return typeof e==`boolean`?e?`On`:`Off`:typeof e==`string`?e===`macos`?`macOS`:e===`linux`?`Linux`:e:JSON.stringify(e)}function W(e){let[t]=e;return[t,t===`vms`?`Virtual machines`:t.replace(/_/g,` `).replace(/^./,G)]}function G(e){return e.toUpperCase()}function K(e,t){let[n]=e,[r]=t;return n.localeCompare(r)}function q(e){let[t,n]=e;return typeof n==`boolean`&&![`orbit_thread`,`mail`].includes(t)}function J(e){return e.phase===`removing`&&e.teardown?.status===`failed`?`Cleanup failed`:e.phase===`suspending`?`Pausing`:e.phase===`suspended`?`Paused`:e.phase===`resuming`?`Resuming`:e.phase===`removing`?`Removing`:null}function oe(e){return J(e.lifecycle)===`Cleanup failed`?`failed`:e.lifecycle.phase===`removing`||e.lifecycle.phase===`suspending`||e.lifecycle.phase===`resuming`||e.status===`connected`&&e.delivery?.state===`stalled`?`attention`:e.status===`connected`?`online`:`offline`}function se({host:e,now:t}){let n=[],r=J(e.lifecycle);return n.push(r??(e.status===`connected`?e.delivery?.state===`stalled`?`Delivery stalled`:`Online`:`Offline`)),e.lifecycle.message===null?e.status!==`connected`&&e.lastSeenAt!==null&&n.push(`last seen ${_({timestamp:e.lastSeenAt,now:t})}`):n.push(e.lifecycle.message),n.join(` · `)}function ce(e){return e.status!==`connected`&&e.lifecycle.phase===`active`}function le(e){return e.status!==`connected`&&e.lifecycle.phase===`removing`&&e.lifecycle.teardown?.status===`failed`}var ue=5;function Y(e){return e?`The server machine can't be removed. Move the server to another machine first.`:`The server machine can't be removed.`}function X(e){return e.type===`ephemeral`?`The compute and its saved snapshots are deleted. Its environments remain as read-only history.`:e.machineProviderId===null?`Project checkouts stay on its disk, but its environments become read-only history and it cannot run new work until paired again.`:`The provider cleans up resources it owns. Its environments remain as read-only history.`}function de(e){let t=(0,B.c)(14),{hostId:n}=e,r;t[0]===n?r=t[1]:(r={hostId:n,limit:ue},t[0]=n,t[1]=r);let i=E(r);if(i.data===void 0||i.data.total===0)return null;let{threads:a,total:o}=i.data,s=o-a.length,c=o===1?`1 unarchived thread on this machine:`:`${o} unarchived threads on this machine:`,l;t[2]===c?l=t[3]:(l=(0,U.jsx)(`p`,{children:c}),t[2]=c,t[3]=l);let u;t[4]===a?u=t[5]:(u=a.map(fe),t[4]=a,t[5]=u);let d;t[6]===u?d=t[7]:(d=(0,U.jsx)(`ul`,{className:`list-disc space-y-0.5 pl-5 text-foreground marker:text-subtle-foreground`,children:u}),t[6]=u,t[7]=d);let f;t[8]===s?f=t[9]:(f=s>0?(0,U.jsxs)(`p`,{children:[`and `,s,` more`]}):null,t[8]=s,t[9]=f);let p;return t[10]!==l||t[11]!==d||t[12]!==f?(p=(0,U.jsxs)(`div`,{className:`space-y-1 text-sm text-muted-foreground`,children:[l,d,f]}),t[10]=l,t[11]=d,t[12]=f,t[13]=p):p=t[13],p}function fe(e){return(0,U.jsx)(`li`,{children:(0,U.jsx)(`span`,{className:`block truncate`,children:A(e)})},e.id)}function pe(e){let t=(0,B.c)(15),{target:n,onOpenChange:r,onRemoved:i}=e,a=R(),o;t[0]===n?o=t[1]:(o=n!==null&&le(n),t[0]=n,t[1]=o);let s=o,c=n!==null,l;t[2]!==r||t[3]!==a?(l=e=>{!e&&!a.isPending&&(a.reset(),r(!1))},t[2]=r,t[3]=a,t[4]=l):l=t[4];let d;t[5]!==s||t[6]!==r||t[7]!==i||t[8]!==a||t[9]!==n?(d=n===null?null:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(f,{children:[(0,U.jsxs)(u,{children:[`Remove `,n.name,`?`]}),(0,U.jsx)(M,{children:s?(0,U.jsxs)(U.Fragment,{children:[`Cleanup failed and `,n.name,` is not connected. Removing it now skips environment cleanup on the machine: files and worktrees left on its disk are not deleted, and its environments become read-only history. The machine provider's removal still runs. Use this only if the machine is gone or will not come back.`]}):(0,U.jsxs)(U.Fragment,{children:[`This revokes `,n.name,`'s access to this server.`,` `,X(n)]})})]}),(0,U.jsx)(de,{hostId:n.id}),a.isError?(0,U.jsx)(`p`,{className:`text-sm text-destructive`,role:`alert`,children:C({error:a.error,fallbackMessage:`Couldn't remove ${n.name}.`})}):null,(0,U.jsx)(S,{children:(0,U.jsx)(k,{type:`button`,variant:`destructive`,disabled:a.isPending,onClick:()=>a.mutate({hostId:n.id,force:s},{onSuccess:()=>{r(!1),i?.(n)}}),children:s?`Remove anyway`:`Remove machine`})})]}),t[5]=s,t[6]=r,t[7]=i,t[8]=a,t[9]=n,t[10]=d):d=t[10];let p;return t[11]!==c||t[12]!==l||t[13]!==d?(p=(0,U.jsx)(h,{open:c,onOpenChange:l,children:d}),t[11]=c,t[12]=l,t[13]=d,t[14]=p):p=t[14],p}function Z(e,t){return t?.supportsSuspend&&e.lifecycle.phase===`active`?{icon:`Pause`,label:`Suspend`,kind:`suspend`}:t?.supportsSuspend&&e.lifecycle.phase===`suspended`?{icon:`Play`,label:`Resume`,kind:`resume`}:e.lifecycle.phase===`removing`&&e.lifecycle.teardown?.status===`failed`?{icon:`RotateCcw`,label:`Retry cleanup`,kind:`retry-cleanup`}:null}function me(e){let t=(0,B.c)(10),{host:n,machineProvider:r,pending:i,onSuspend:a,onResume:o,onRetryCleanup:s}=e,c;t[0]!==n||t[1]!==r?(c=Z(n,r),t[0]=n,t[1]=r,t[2]=c):c=t[2];let u=c;if(u===null)return null;let d=u.kind===`suspend`?a:u.kind===`resume`?o:s,f;t[3]===u.icon?f=t[4]:(f=(0,U.jsx)(l,{name:u.icon,className:`size-3.5`,"aria-hidden":!0}),t[3]=u.icon,t[4]=f);let p;return t[5]!==u.label||t[6]!==d||t[7]!==i||t[8]!==f?(p=(0,U.jsxs)(k,{type:`button`,variant:`outline`,size:`sm`,disabled:i,onClick:d,children:[f,u.label]}),t[5]=u.label,t[6]=d,t[7]=i,t[8]=f,t[9]=p):p=t[9],p}function he(e){let t=[{id:`rename`,label:`Rename`,icon:`Edit`,onSelect:e.onRename}];ce(e.host)&&t.push({id:`reconnect`,label:`Reconnect`,icon:`RotateCcw`,onSelect:e.onReconnect});let n=e.onRetryUpdate;n!==void 0&&c(e.host)&&t.push({id:`retry-update`,label:e.retryUpdatePending??!1?`Retrying update…`:`Retry update`,icon:L,disabled:e.retryUpdatePending??!1,onSelect:n});let r=Z(e.host,e.machineProvider),i=r===null?void 0:r.kind===`suspend`?e.onSuspend:r.kind===`resume`?e.onResume:e.onRetryCleanup;r!==null&&i!==void 0&&t.push({id:`lifecycle`,label:r.label,icon:r.icon,disabled:e.lifecycleActionPending??!1,onSelect:i}),e.canMoveServerHere&&t.push({id:`move-server`,label:`Move server here`,icon:`MoveTo`,onSelect:e.onMoveServerHere});let a=e.onRemove;return a!==void 0&&t.push({id:`remove`,label:`Remove machine`,icon:`Trash2`,tone:`destructive`,...e.isPrimary?{disabled:!0,disabledReason:Y(e.serverMoveEnabled??!1)}:{},onSelect:a}),t}var Q=e(n(),1);function ge(e){let t=(0,B.c)(35),{target:n,onOpenChange:r}=e,i=z(),a=n?.id??null,{mutate:o,reset:c}=i,d,p;t[0]!==a||t[1]!==o||t[2]!==c?(d=()=>{if(a===null){c();return}o(a)},p=[a,o,c],t[0]=a,t[1]=o,t[2]=c,t[3]=d,t[4]=p):(d=t[3],p=t[4]),(0,Q.useEffect)(d,p);let m=i.data??null,h=n!==null&&n.status===`connected`,g;t[5]!==i.error||t[6]!==i.isError?(g=i.isError?C({error:i.error,fallbackMessage:`Couldn't prepare a reconnect command.`}):null,t[5]=i.error,t[6]=i.isError,t[7]=g):g=t[7];let _=g,v=n!==null,y;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,U.jsx)(u,{children:`Reconnect machine`}),t[8]=y):y=t[8];let b=_===null?void 0:`text-destructive-text`,S=_??`Run this command on ${n?.name??`the machine`} to bring it back online. It keeps the machine's projects, environments and history.`,w;t[9]!==b||t[10]!==S?(w=(0,U.jsxs)(f,{children:[y,(0,U.jsx)(M,{className:b,children:S})]}),t[9]=b,t[10]=S,t[11]=w):w=t[11];let T;t[12]!==_||t[13]!==a||t[14]!==o?(T=_===null?null:(0,U.jsx)(`div`,{className:`flex justify-end`,children:(0,U.jsx)(k,{variant:`outline`,size:`sm`,onClick:()=>{a!==null&&o(a)},children:`Try again`})}),t[12]=_,t[13]=a,t[14]=o,t[15]=T):T=t[15];let E;t[16]!==a||t[17]!==o||t[18]!==m?(E=m===null?null:(0,U.jsx)(F,{command:m.command,windowsCommand:m.windowsCommand,expiresAt:m.expiresAt,onRegenerate:()=>{a!==null&&o(a)}},m.command),t[16]=a,t[17]=o,t[18]=m,t[19]=E):E=t[19];let O;t[20]!==_||t[21]!==r||t[22]!==m||t[23]!==h||t[24]!==n?.name?(O=_===null?(0,U.jsx)(`div`,{className:`flex items-center gap-2.5 rounded-md bg-muted/40 px-3 py-2.5`,children:h?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(D,{connected:!0}),(0,U.jsxs)(`span`,{role:`status`,className:`min-w-0 flex-1 truncate text-sm text-foreground`,children:[n?.name,` reconnected`]}),(0,U.jsx)(k,{size:`sm`,variant:`ghost`,className:`h-7 shrink-0 px-2 text-xs`,onClick:()=>r(!1),children:`Done`})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(l,{name:`Spinner`,className:`size-4 shrink-0 animate-spin text-muted-foreground`}),(0,U.jsx)(`span`,{role:`status`,className:`text-sm text-muted-foreground`,children:m===null?`Preparing a reconnect command…`:`Waiting for the machine to reconnect…`})]})}):null,t[20]=_,t[21]=r,t[22]=m,t[23]=h,t[24]=n?.name,t[25]=O):O=t[25];let A;t[26]!==E||t[27]!==O||t[28]!==w||t[29]!==T?(A=(0,U.jsxs)(s,{className:`max-h-[calc(100dvh-2rem)] overflow-y-auto`,onInteractOutside:_e,children:[w,T,E,O]}),t[26]=E,t[27]=O,t[28]=w,t[29]=T,t[30]=A):A=t[30];let j;return t[31]!==r||t[32]!==A||t[33]!==v?(j=(0,U.jsx)(x,{open:v,onOpenChange:r,children:A}),t[31]=r,t[32]=A,t[33]=v,t[34]=j):j=t[34],j}function _e(e){return e.preventDefault()}var ve={blocker:{heading:`Fix before moving`,icon:`AlertCircle`,iconClassName:`text-destructive-text`},warning:{heading:`Before you move`,icon:`AlertTriangle`,iconClassName:`text-warning-text`},info:{heading:`Good to know`,icon:`Info`,iconClassName:`text-muted-foreground`}};function ye(e){let t=(0,B.c)(17),{target:n,onOpenChange:r}=e,i=v(),a;t[0]!==r||t[1]!==i?(a=()=>{i.isPending||(i.reset(),r(!1))},t[0]=r,t[1]=i,t[2]=a):a=t[2];let o=a,c=n!==null,l;t[3]===o?l=t[4]:(l=e=>{e||o()},t[3]=o,t[4]=l);let u;t[5]!==o||t[6]!==r||t[7]!==i||t[8]!==n?(u=n===null?null:(0,U.jsx)(be,{target:n,startMove:i,onCancel:o,onStarted:()=>r(!1)},n.id),t[5]=o,t[6]=r,t[7]=i,t[8]=n,t[9]=u):u=t[9];let d;t[10]!==i.isPending||t[11]!==u?(d=(0,U.jsx)(s,{className:`max-h-[calc(100dvh-2rem)] overflow-y-auto`,hideCloseButton:i.isPending,children:u}),t[10]=i.isPending,t[11]=u,t[12]=d):d=t[12];let f;return t[13]!==c||t[14]!==l||t[15]!==d?(f=(0,U.jsx)(x,{open:c,onOpenChange:l,children:d}),t[13]=c,t[14]=l,t[15]=d,t[16]=f):f=t[16],f}function be(e){let t=(0,B.c)(48),{target:n,startMove:r,onCancel:i,onStarted:a}=e,o=d(),[s,c]=(0,Q.useState)(null),[l,u]=(0,Q.useState)(null),[f,p]=(0,Q.useState)(``),[m,h]=(0,Q.useState)(!1),g=o.mutate,_=n.id,v,y;t[0]!==g||t[1]!==_?(v=()=>{g({targetHostId:_,serverUrl:null},{onSuccess:e=>{c(e),u(null),e.requiresServerUrl&&e.serverUrl!==null&&p(e.serverUrl)}})},y=[g,_],t[0]=g,t[1]=_,t[2]=v,t[3]=y):(v=t[2],y=t[3]),(0,Q.useEffect)(v,y);let x=s?.requiresServerUrl===!0||l!==null,S;t[4]!==f||t[5]!==o||t[6]!==s?.existingTargetServerData?.path||t[7]!==x||t[8]!==r||t[9]!==_?(S=()=>{let e=f.trim(),t=x&&e.length>0?e:null;r.reset(),o.mutate({targetHostId:_,serverUrl:t},{onSuccess:e=>{e.existingTargetServerData?.path!==s?.existingTargetServerData?.path&&h(!1),c(e),u(t)}})},t[4]=f,t[5]=o,t[6]=s?.existingTargetServerData?.path,t[7]=x,t[8]=r,t[9]=_,t[10]=S):S=t[10];let w=S,T;t[11]!==f||t[12]!==m||t[13]!==o.isPending||t[14]!==l||t[15]!==s||t[16]!==x||t[17]!==r.isPending?(T=b({result:s,checking:o.isPending,starting:r.isPending,showAddress:x,addressDraft:f,checkedServerUrl:l,archiveConfirmed:m}),t[11]=f,t[12]=m,t[13]=o.isPending,t[14]=l,t[15]=s,t[16]=x,t[17]=r.isPending,t[18]=T):T=t[18];let E=T,D;t[19]!==m||t[20]!==l||t[21]!==a||t[22]!==s||t[23]!==E||t[24]!==r||t[25]!==_?(D=()=>{s===null||!E||r.mutate({targetHostId:_,serverUrl:l,stopRunningWork:!0,archiveExistingTargetServerData:s.existingTargetServerData!==null&&m},{onSuccess:a,onError:e=>{let t=N(e);t!==null&&c({...s,items:t,canMove:!1})}})},t[19]=m,t[20]=l,t[21]=a,t[22]=s,t[23]=E,t[24]=r,t[25]=_,t[26]=D):D=t[26];let O=D,k;t[27]!==o.error||t[28]!==o.isError||t[29]!==n.name?(k=o.isError?C({error:o.error,fallbackMessage:`Couldn't check ${n.name}.`}):null,t[27]=o.error,t[28]=o.isError,t[29]=n.name,t[30]=k):k=t[30];let A;t[31]!==r.error||t[32]!==r.isError?(A=r.isError?C({error:r.error,fallbackMessage:`Couldn't start the move.`}):null,t[31]=r.error,t[32]=r.isError,t[33]=A):A=t[33];let j;return t[34]!==f||t[35]!==m||t[36]!==w||t[37]!==o.isPending||t[38]!==i||t[39]!==s||t[40]!==x||t[41]!==O||t[42]!==E||t[43]!==r.isPending||t[44]!==k||t[45]!==A||t[46]!==n.name?(j=(0,U.jsx)($,{targetName:n.name,result:s,checking:o.isPending,checkError:k,showAddress:x,addressDraft:f,archiveConfirmed:m,startAllowed:E,starting:r.isPending,startError:A,onAddressDraftChange:p,onCheck:w,onArchiveConfirmedChange:h,onStart:O,onCancel:i}),t[34]=f,t[35]=m,t[36]=w,t[37]=o.isPending,t[38]=i,t[39]=s,t[40]=x,t[41]=O,t[42]=E,t[43]=r.isPending,t[44]=k,t[45]=A,t[46]=n.name,t[47]=j):j=t[47],j}function $(e){let t=(0,B.c)(53),{targetName:n,result:r,checking:i,checkError:a,showAddress:o,addressDraft:s,archiveConfirmed:c,startAllowed:d,starting:p,startError:m,onAddressDraftChange:h,onCheck:g,onArchiveConfirmedChange:_,onStart:v,onCancel:y}=e,b;t[0]===r?.items?b=t[1]:(b=r?.items.some(xe)??!1,t[0]=r?.items,t[1]=b);let x=!i&&(a!==null||b)&&!o,C;t[2]===n?C=t[3]:(C=(0,U.jsxs)(f,{children:[(0,U.jsxs)(u,{children:[`Move the server to `,n]}),(0,U.jsxs)(M,{children:[`Your threads, settings and plugin data move to `,n,`. Every machine and app switches over when it's done, and the current server machine keeps running as a regular machine.`]})]}),t[2]=n,t[3]=C);let w;t[4]!==a||t[5]!==r||t[6]!==n?(w=r===null&&a===null?(0,U.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md bg-muted/40 px-3 py-2.5`,children:[(0,U.jsx)(l,{name:`Spinner`,className:`size-4 shrink-0 animate-spin text-muted-foreground`}),(0,U.jsxs)(`span`,{role:`status`,className:`text-sm text-muted-foreground`,children:[`Checking `,n,`…`]})]}):null,t[4]=a,t[5]=r,t[6]=n,t[7]=w):w=t[7];let T;t[8]!==s||t[9]!==i||t[10]!==h||t[11]!==g||t[12]!==o||t[13]!==p||t[14]!==n?(T=o?(0,U.jsx)(Se,{targetName:n,value:s,checking:i,disabled:p,onChange:h,onCheck:g}):null,t[8]=s,t[9]=i,t[10]=h,t[11]=g,t[12]=o,t[13]=p,t[14]=n,t[15]=T):T=t[15];let E;t[16]===a?E=t[17]:(E=a===null?null:(0,U.jsx)(`p`,{role:`alert`,className:`text-sm text-destructive-text`,children:a}),t[16]=a,t[17]=E);let D;t[18]!==i||t[19]!==r?(D=r===null?null:(0,U.jsx)(Ce,{items:r.items,dimmed:i}),t[18]=i,t[19]=r,t[20]=D):D=t[20];let O;t[21]!==c||t[22]!==_||t[23]!==r||t[24]!==p?(O=r?.existingTargetServerData?(0,U.jsx)(we,{path:r.existingTargetServerData.path,sizeBytes:r.existingTargetServerData.sizeBytes,checked:c,disabled:p,onCheckedChange:_}):null,t[21]=c,t[22]=_,t[23]=r,t[24]=p,t[25]=O):O=t[25];let A;t[26]===m?A=t[27]:(A=m===null?null:(0,U.jsx)(`p`,{role:`alert`,className:`text-sm text-destructive-text`,children:m}),t[26]=m,t[27]=A);let j;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,U.jsx)(`p`,{className:`text-xs text-subtle-foreground`,children:`Moving stops every running turn and pauses scheduled automations.`}),t[28]=j):j=t[28];let N;t[29]!==y||t[30]!==p?(N=(0,U.jsx)(k,{type:`button`,variant:`outline`,disabled:p,onClick:y,children:`Cancel`}),t[29]=y,t[30]=p,t[31]=N):N=t[31];let P;t[32]!==g||t[33]!==x||t[34]!==p?(P=x?(0,U.jsx)(k,{type:`button`,variant:`outline`,disabled:p,onClick:g,children:`Check again`}):null,t[32]=g,t[33]=x,t[34]=p,t[35]=P):P=t[35];let F=!d,I=p?`Starting…`:`Stop all and move`,L;t[36]!==v||t[37]!==F||t[38]!==I?(L=(0,U.jsx)(k,{type:`button`,disabled:F,onClick:v,children:I}),t[36]=v,t[37]=F,t[38]=I,t[39]=L):L=t[39];let R;t[40]!==N||t[41]!==P||t[42]!==L?(R=(0,U.jsxs)(S,{children:[N,P,L]}),t[40]=N,t[41]=P,t[42]=L,t[43]=R):R=t[43];let z;return t[44]!==R||t[45]!==C||t[46]!==w||t[47]!==T||t[48]!==E||t[49]!==D||t[50]!==O||t[51]!==A?(z=(0,U.jsxs)(U.Fragment,{children:[C,w,T,E,D,O,A,j,R]}),t[44]=R,t[45]=C,t[46]=w,t[47]=T,t[48]=E,t[49]=D,t[50]=O,t[51]=A,t[52]=z):z=t[52],z}function xe(e){return e.severity===`blocker`}function Se(e){let t=(0,B.c)(32),{targetName:n,value:r,checking:i,disabled:a,onChange:o,onCheck:s}=e,c=(0,Q.useId)(),l=(0,Q.useId)(),u;t[0]!==i||t[1]!==a||t[2]!==r?(u=!i&&!a&&r.trim().length>0,t[0]=i,t[1]=a,t[2]=r,t[3]=u):u=t[3];let d=u,f;t[4]===c?f=t[5]:(f=(0,U.jsx)(`label`,{htmlFor:c,className:`block text-sm font-medium text-foreground`,children:`New server address`}),t[4]=c,t[5]=f);let p;t[6]!==l||t[7]!==n?(p=(0,U.jsxs)(`p`,{id:l,className:`text-xs text-subtle-foreground`,children:[`Machines and apps use this address to reach the server on `,n,` `,`after the move.`]}),t[6]=l,t[7]=n,t[8]=p):p=t[8];let m;t[9]===o?m=t[10]:(m=e=>o(e.target.value),t[9]=o,t[10]=m);let h;t[11]!==d||t[12]!==s?(h=e=>{e.key===`Enter`&&(e.preventDefault(),d&&s())},t[11]=d,t[12]=s,t[13]=h):h=t[13];let g;t[14]!==a||t[15]!==l||t[16]!==c||t[17]!==m||t[18]!==h||t[19]!==r?(g=(0,U.jsx)(O,{id:c,"aria-describedby":l,className:`min-w-0 flex-1`,value:r,placeholder:`https://Moonlet.example.com`,inputMode:`url`,autoCapitalize:`off`,autoCorrect:`off`,spellCheck:!1,disabled:a,onChange:m,onKeyDown:h}),t[14]=a,t[15]=l,t[16]=c,t[17]=m,t[18]=h,t[19]=r,t[20]=g):g=t[20];let _=!d,v=i?`Checking…`:`Check address`,y;t[21]!==s||t[22]!==_||t[23]!==v?(y=(0,U.jsx)(k,{type:`button`,variant:`outline`,disabled:_,onClick:s,children:v}),t[21]=s,t[22]=_,t[23]=v,t[24]=y):y=t[24];let b;t[25]!==g||t[26]!==y?(b=(0,U.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[g,y]}),t[25]=g,t[26]=y,t[27]=b):b=t[27];let x;return t[28]!==b||t[29]!==f||t[30]!==p?(x=(0,U.jsxs)(`div`,{className:`space-y-2`,children:[f,p,b]}),t[28]=b,t[29]=f,t[30]=p,t[31]=x):x=t[31],x}function Ce(e){let t=(0,B.c)(11),{items:n,dimmed:r}=e,i,a,o;if(t[0]!==r||t[1]!==n){o=Symbol.for(`react.early_return_sentinel`);bb0:{let e=T(n);if(n.length===0){let e;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Nothing needs attention before the move.`}),t[5]=e):e=t[5],o=e;break bb0}let s=r&&`opacity-60`;t[6]===s?i=t[7]:(i=p(`space-y-3 transition-opacity`,s),t[6]=s,t[7]=i),a=j.map(t=>{let n=e[t];if(n.length===0)return null;let r=ve[t];return(0,U.jsxs)(`section`,{"aria-label":r.heading,className:`space-y-1.5`,children:[(0,U.jsx)(`h3`,{className:`text-xs font-medium text-muted-foreground`,children:r.heading}),(0,U.jsx)(`ul`,{className:`space-y-2`,children:n.map(e=>(0,U.jsxs)(`li`,{"data-severity":t,className:`flex items-start gap-2.5`,children:[(0,U.jsx)(l,{name:r.icon,"aria-hidden":!0,className:p(`mt-0.5 size-4 shrink-0`,r.iconClassName)}),(0,U.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,U.jsx)(`p`,{className:`text-sm break-words text-foreground`,children:e.title}),e.detail===null?null:(0,U.jsx)(`p`,{className:`text-xs break-words text-subtle-foreground`,children:e.detail})]})]},e.id))})]},t)})}t[0]=r,t[1]=n,t[2]=i,t[3]=a,t[4]=o}else i=t[2],a=t[3],o=t[4];if(o!==Symbol.for(`react.early_return_sentinel`))return o;let s;return t[8]!==i||t[9]!==a?(s=(0,U.jsx)(`div`,{className:i,children:a}),t[8]=i,t[9]=a,t[10]=s):s=t[10],s}function we(e){let t=(0,B.c)(18),{path:n,sizeBytes:r,checked:i,disabled:a,onCheckedChange:o}=e,s;t[0]===o?s=t[1]:(s=e=>o(e===!0),t[0]=o,t[1]=s);let c;t[2]!==i||t[3]!==a||t[4]!==s?(c=(0,U.jsx)(I,{className:`mt-0.5`,checked:i,disabled:a,onCheckedChange:s}),t[2]=i,t[3]=a,t[4]=s,t[5]=c):c=t[5];let l;t[6]===n?l=t[7]:(l=(0,U.jsxs)(`span`,{className:`block text-sm break-words text-foreground`,children:[`Archive the existing Moonlet data at `,n]}),t[6]=n,t[7]=l);let u;t[8]===r?u=t[9]:(u=w(r),t[8]=r,t[9]=u);let d;t[10]===u?d=t[11]:(d=(0,U.jsxs)(`span`,{className:`block text-xs text-subtle-foreground`,children:[u,`. Moonlet renames it to a backup folder next to it and never merges it.`]}),t[10]=u,t[11]=d);let f;t[12]!==l||t[13]!==d?(f=(0,U.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[l,d]}),t[12]=l,t[13]=d,t[14]=f):f=t[14];let p;return t[15]!==c||t[16]!==f?(p=(0,U.jsxs)(`label`,{className:`flex items-start gap-2.5 rounded-md border border-border px-3 py-2.5`,children:[c,f]}),t[15]=c,t[16]=f,t[17]=p):p=t[17],p}var Te=100;function Ee(e){let t=(0,B.c)(9),{target:n,pending:r,errorMessage:i,onOpenChange:a,onRename:o}=e,s=n!==null,c;t[0]!==i||t[1]!==o||t[2]!==r||t[3]!==n?(c=e=>n?(0,U.jsx)(De,{target:n,pending:r,errorMessage:i,onRename:o,inputRef:e},n.id):null,t[0]=i,t[1]=o,t[2]=r,t[3]=n,t[4]=c):c=t[4];let l;return t[5]!==a||t[6]!==s||t[7]!==c?(l=(0,U.jsx)(g,{open:s,onOpenChange:a,children:c}),t[5]=a,t[6]=s,t[7]=c,t[8]=l):l=t[8],l}function De(e){let t=(0,B.c)(30),{target:n,pending:r,errorMessage:i,onRename:a,inputRef:o}=e,[s,c]=(0,Q.useState)(n.name),l;t[0]!==s||t[1]!==a||t[2]!==r||t[3]!==n?(l=e=>{if(e.preventDefault(),r)return;let t=s.trim();t.length!==0&&a(n,t)},t[0]=s,t[1]=a,t[2]=r,t[3]=n,t[4]=l):l=t[4];let d=l,p;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,U.jsx)(u,{children:`Rename machine`}),t[5]=p):p=t[5];let m;t[6]===n.name?m=t[7]:(m=(0,U.jsxs)(f,{children:[p,(0,U.jsxs)(M,{children:[`Choose a new name for `,n.name,`.`]})]}),t[6]=n.name,t[7]=m);let h;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(h=e=>c(e.target.value),t[8]=h):h=t[8];let g;t[9]!==o||t[10]!==s||t[11]!==r?(g=(0,U.jsx)(O,{ref:o,"aria-label":`Machine name`,value:s,maxLength:Te,autoCorrect:`off`,spellCheck:!1,disabled:r,onChange:h}),t[9]=o,t[10]=s,t[11]=r,t[12]=g):g=t[12];let _;t[13]===i?_=t[14]:(_=i===null?null:(0,U.jsx)(`p`,{className:`text-sm text-destructive`,children:i}),t[13]=i,t[14]=_);let v;t[15]!==g||t[16]!==_?(v=(0,U.jsxs)(`div`,{className:`space-y-2`,children:[g,_]}),t[15]=g,t[16]=_,t[17]=v):v=t[17];let y;t[18]!==s||t[19]!==r?(y=r||s.trim().length===0,t[18]=s,t[19]=r,t[20]=y):y=t[20];let b;t[21]===y?b=t[22]:(b=(0,U.jsx)(S,{children:(0,U.jsx)(k,{type:`submit`,disabled:y,children:`Rename machine`})}),t[21]=y,t[22]=b);let x;t[23]!==d||t[24]!==v||t[25]!==b?(x=(0,U.jsxs)(`form`,{className:`space-y-4`,onSubmit:d,children:[v,b]}),t[23]=d,t[24]=v,t[25]=b,t[26]=x):x=t[26];let C;return t[27]!==x||t[28]!==m?(C=(0,U.jsxs)(U.Fragment,{children:[m,x]}),t[27]=x,t[28]=m,t[29]=C):C=t[29],C}export{me as a,Y as c,te as d,he as i,se as l,ye as n,pe as o,ge as r,X as s,Ee as t,oe as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Br as t,Hr as n,hi as r,jr as i,kr as a,ri as o}from"./boot-vendor-CKEhulXz.js";import{t as s}from"./permission-mode-options-BrNWKCMS.js";import{$o as c,$t as l,Am as u,Ci as d,Ct as f,D as p,Dh as m,Do as h,Eo as g,Fh as _,Go as v,Jr as y,Lc as b,Lt as x,Na as S,Qi as C,Rr as w,St as T,T as E,To as D,Xo as O,Zo as k,ea as ee,en as A,jh as j,jm as te,wh as M,wo as N,xt as ne,y as P}from"./index-C0VsRvUA.js";import{a as F,i as I,n as re,o as L,r as ie}from"./dist-i0jLXifx.js";import{b as ae}from"./resource-list-Dxgyp67l.js";import{t as oe}from"./machine-provider-queries-DglOZNzs.js";import{n as se}from"./MachineLabel-C-l0q-Ce.js";import{t as ce}from"./page-shell-DuNWSxI3.js";import{a as le,c as ue,d as de,i as fe,l as pe,n as me,o as he,r as ge,s as _e,t as ve,u as ye}from"./MachineRenameDialog-BTeZ3MGO.js";import{a as be,c as xe,i as Se,o as Ce,r as we,s as Te}from"./host-mutations-C72k-mgV.js";var R=a(),z=e(o(),1);function Ee(e){let t=(0,R.c)(5),{notice:n}=e;if(n===null||n.message===null)return null;let r=n.phase===`suspending`||n.phase===`resuming`?`text-subtle-foreground`:`text-destructive-text`,i;t[0]===r?i=t[1]:(i=_(`min-w-0 text-xs`,r),t[0]=r,t[1]=i);let a;return t[2]!==n.message||t[3]!==i?(a=(0,z.jsx)(`p`,{role:`status`,"aria-label":`Machine maintenance`,className:i,children:n.message}),t[2]=n.message,t[3]=i,t[4]=a):a=t[4],a}var De=e(r(),1);function Oe(e,t){return t!==null&&t.fromHostId===e.id&&t.oldCopyDeletedAt===null}function ke(e,t){let n=`The server moved from ${e.name} to ${t.toHostName}. The old server data is still on ${e.name}, locked so Moonlet won't start a server from it. Keep it as a backup, or delete it once the new server works.`;return e.status===`connected`?n:`${n} ${e.name} has to be online to delete it.`}function Ae(e){let t=(0,R.c)(33),{host:n,lastMove:r}=e,i=p(),[a,o]=(0,De.useState)(!1),s;t[0]===i?s=t[1]:(s=()=>{i.reset(),o(!0)},t[0]=i,t[1]=s);let c;t[2]!==n||t[3]!==r||t[4]!==s?(c=(0,z.jsx)(B,{host:n,lastMove:r,onDelete:s}),t[2]=n,t[3]=r,t[4]=s,t[5]=c):c=t[5];let l;t[6]===i?l=t[7]:(l=e=>{!e&&!i.isPending&&(i.reset(),o(!1))},t[6]=i,t[7]=l);let u;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,z.jsx)(h,{children:`Delete the old server copy?`}),t[8]=u):u=t[8];let d;t[9]!==n.name||t[10]!==r.toHostName?(d=(0,z.jsxs)(g,{children:[u,(0,z.jsxs)(N,{children:[`This permanently deletes the database, settings and plugin data`,` `,n.name,` kept when the server moved to `,r.toHostName,`. The server on `,r.toHostName,` is not affected.`]})]}),t[9]=n.name,t[10]=r.toHostName,t[11]=d):d=t[11];let f;t[12]!==i.error||t[13]!==i.isError||t[14]!==n.name?(f=i.isError?(0,z.jsx)(`p`,{className:`text-sm text-destructive-text`,role:`alert`,children:k({error:i.error,fallbackMessage:`Couldn't delete the old server copy on ${n.name}.`})}):null,t[12]=i.error,t[13]=i.isError,t[14]=n.name,t[15]=f):f=t[15];let m;t[16]!==i||t[17]!==n.id||t[18]!==n.name?(m=()=>i.mutate(n.id,{onSuccess:e=>{o(!1),M.success(e.deleted?`Deleted the old server copy on ${n.name}`:`No old server copy was left on ${n.name}`)}}),t[16]=i,t[17]=n.id,t[18]=n.name,t[19]=m):m=t[19];let _=i.isPending?`Deleting…`:`Delete old copy`,v;t[20]!==i.isPending||t[21]!==m||t[22]!==_?(v=(0,z.jsx)(D,{children:(0,z.jsx)(j,{type:`button`,variant:`destructive`,disabled:i.isPending,onClick:m,children:_})}),t[20]=i.isPending,t[21]=m,t[22]=_,t[23]=v):v=t[23];let b;t[24]!==a||t[25]!==l||t[26]!==d||t[27]!==f||t[28]!==v?(b=(0,z.jsxs)(y,{modal:!1,open:a,onOpenChange:l,children:[d,f,v]}),t[24]=a,t[25]=l,t[26]=d,t[27]=f,t[28]=v,t[29]=b):b=t[29];let x;return t[30]!==b||t[31]!==c?(x=(0,z.jsxs)(z.Fragment,{children:[c,b]}),t[30]=b,t[31]=c,t[32]=x):x=t[32],x}function B(e){let t=(0,R.c)(9),{host:n,lastMove:r,onDelete:i}=e,a;t[0]!==n||t[1]!==r?(a=ke(n,r),t[0]=n,t[1]=r,t[2]=a):a=t[2];let o=n.status!==`connected`,s;t[3]!==i||t[4]!==o?(s=(0,z.jsx)(F,{children:(0,z.jsx)(I,{children:(0,z.jsx)(j,{type:`button`,variant:`destructive`,size:`sm`,disabled:o,onClick:i,children:`Delete old copy`})})}),t[3]=i,t[4]=o,t[5]=s):s=t[5];let c;return t[6]!==a||t[7]!==s?(c=(0,z.jsx)(L,{title:`Old server copy`,description:a,children:s}),t[6]=a,t[7]=s,t[8]=c):c=t[8],c}var je=`Highest permission mode any thread on the selected machine may run with. Threads that ask for more resolve down to it, and a provider that supports nothing this low can't run here.`,Me={darwin:`macOS`,linux:`Linux`,wsl:`WSL`,win32:`Windows`,unknown:null};function V({host:e,platformLabel:t,now:n}){let r=[pe({host:e,now:n})];return t!==null&&r.push(t),r.push(`paired ${S({timestamp:e.createdAt,now:n})}`),r.join(` · `)}function Ne(e){let t=(0,R.c)(6),{disabled:n,onSelect:r,value:i}=e,a;t[0]!==n||t[1]!==r||t[2]!==i?(a=s.map(e=>{let t=e.value===i;return(0,z.jsx)(I,{className:`items-start`,children:(0,z.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":t,disabled:n,onClick:()=>{t||r(e.value)},className:_(`flex w-full items-start gap-3 rounded-md text-left outline-none focus-visible:ring-2 focus-visible:ring-ring`,n&&`opacity-70`),children:[(0,z.jsx)(`span`,{className:_(`mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full border`,t?`border-foreground`:`border-input`),children:t?(0,z.jsx)(`span`,{className:`size-2 rounded-full bg-foreground`}):null}),(0,z.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,z.jsx)(`span`,{className:`block text-sm text-foreground`,children:e.label}),e.description?(0,z.jsx)(`span`,{className:`mt-0.5 block text-xs leading-snug text-subtle-foreground/75`,children:e.description}):null]})]})},e.value)}),t[0]=n,t[1]=r,t[2]=i,t[3]=a):a=t[3];let o;return t[4]===a?o=t[5]:(o=(0,z.jsx)(`div`,{role:`radiogroup`,"aria-label":`Permission limit`,children:(0,z.jsx)(F,{children:a})}),t[4]=a,t[5]=o),o}function Pe(e){let t=(0,R.c)(57),{host:n,machineProvider:r,platformLabel:a,now:o,isPrimary:s,isThisMachine:c,showServerBadge:l,lifecycleNotice:u,lifecycleActionPending:d,onSuspend:f,onResume:p,onRetryCleanup:h,onRename:g,onReconnect:_,canMoveServerHere:v,onMoveServerHere:y}=e,b;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=te(`machines`),t[0]=b):b=t[0];let x;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,z.jsxs)(i,{to:b,className:`inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,z.jsx)(m,{name:`ChevronLeft`,className:`size-3.5`}),`Machines`]}),t[1]=x):x=t[1];let S;t[2]!==n||t[3]!==r?(S=(0,z.jsx)(`h1`,{className:`min-w-0 text-sm font-semibold text-foreground`,children:(0,z.jsx)(se,{host:n,machineProvider:r})}),t[2]=n,t[3]=r,t[4]=S):S=t[4];let C;t[5]===c?C=t[6]:(C=c?(0,z.jsx)(re,{children:`This machine`}):null,t[5]=c,t[6]=C);let w;t[7]===l?w=t[8]:(w=l?(0,z.jsx)(re,{children:`Server`}):null,t[7]=l,t[8]=w);let T;t[9]!==S||t[10]!==C||t[11]!==w?(T=(0,z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[S,C,w]}),t[9]=S,t[10]=C,t[11]=w,t[12]=T):T=t[12];let E;t[13]===n?E=t[14]:(E=ye(n),t[13]=n,t[14]=E);let D;t[15]===E?D=t[16]:(D=(0,z.jsx)(ee,{tone:E}),t[15]=E,t[16]=D);let O;t[17]!==n||t[18]!==o||t[19]!==a?(O=V({host:n,platformLabel:a,now:o}),t[17]=n,t[18]=o,t[19]=a,t[20]=O):O=t[20];let k;t[21]===O?k=t[22]:(k=(0,z.jsx)(`p`,{className:`min-w-0 text-xs text-subtle-foreground/75`,children:O}),t[21]=O,t[22]=k);let A;t[23]!==k||t[24]!==D?(A=(0,z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[D,k]}),t[23]=k,t[24]=D,t[25]=A):A=t[25];let j;t[26]===u?j=t[27]:(j=(0,z.jsx)(Ee,{notice:u}),t[26]=u,t[27]=j);let M;t[28]!==A||t[29]!==j||t[30]!==T?(M=(0,z.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[T,A,j]}),t[28]=A,t[29]=j,t[30]=T,t[31]=M):M=t[31];let N;t[32]!==n||t[33]!==d||t[34]!==r||t[35]!==p||t[36]!==h||t[37]!==f?(N=(0,z.jsx)(le,{host:n,machineProvider:r,pending:d,onSuspend:f,onResume:p,onRetryCleanup:h}),t[32]=n,t[33]=d,t[34]=r,t[35]=p,t[36]=h,t[37]=f,t[38]=N):N=t[38];let ne=`${n.name} actions`,P;t[39]!==v||t[40]!==n||t[41]!==s||t[42]!==d||t[43]!==r||t[44]!==y||t[45]!==_||t[46]!==g?(P=fe({host:n,machineProvider:r,isPrimary:s,canMoveServerHere:v,lifecycleActionPending:d,onRename:g,onReconnect:_,onMoveServerHere:y}),t[39]=v,t[40]=n,t[41]=s,t[42]=d,t[43]=r,t[44]=y,t[45]=_,t[46]=g,t[47]=P):P=t[47];let F;t[48]!==ne||t[49]!==P?(F=(0,z.jsx)(ae,{label:ne,items:P}),t[48]=ne,t[49]=P,t[50]=F):F=t[50];let I;t[51]!==N||t[52]!==F?(I=(0,z.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[N,F]}),t[51]=N,t[52]=F,t[53]=I):I=t[53];let L;return t[54]!==M||t[55]!==I?(L=(0,z.jsxs)(`div`,{className:`space-y-3`,children:[x,(0,z.jsxs)(`div`,{className:`flex min-w-0 items-start justify-between gap-3`,children:[M,I]})]}),t[54]=M,t[55]=I,t[56]=L):L=t[56],L}function Fe(){let e=(0,R.c)(120),{hostId:r}=n(),a=t(),o=C(),{providers:s}=oe(),l=v(),{localDaemonHostId:u,platform:p}=d(),h=b(),g=ne(),_=we(),y=Ce(),S=Te(),D=Se(),ee=be(),N=xe(),re=E(),[ae,se]=(0,De.useState)(!1),[le,fe]=(0,De.useState)(!1),[pe,ye]=(0,De.useState)(!1),[Ee,ke]=(0,De.useState)(!1),B=o.data,V=B?.find(e=>e.id===r)??null,Fe=V?.lifecycle.message??null,Be=V===null?null:{phase:V.lifecycle.phase,message:Fe},Ve=l.data?.primaryHostId??null,H=l.data?.experiments.serverMove??!1,U=V!==null&&V.id===Ve,He;e[0]===B?He=e[1]:(He=B?.filter(ze).length??0,e[0]=B,e[1]=He);let Ue=He>1&&V!==null&&V.id===u,We=V?.machineProviderId===null||V?.machineProviderId===void 0?null:s?.find(e=>e.id===V.machineProviderId)??null,Ge;if(e[2]!==r||e[3]!==h.data?.projects){let t=h.data?.projects??[],n;e[5]===r?n=e[6]:(n=e=>e.sources.some(e=>e.hostId===r),e[5]=r,e[6]=n),Ge=t.filter(n).map(Re),e[2]=r,e[3]=h.data?.projects,e[4]=Ge}else Ge=e[4];let Ke=Ge,W,qe;if(e[7]!==r||e[8]!==g.machines){let t;e[11]===r?t=e[12]:(t=e=>e.host.id===r,e[11]=r,e[12]=t),W=g.machines.find(t),qe=(W?.issues??[]).filter(x),e[7]=r,e[8]=g.machines,e[9]=W,e[10]=qe}else W=e[9],qe=e[10];let Je=qe.length,Ye=O().data;W?.providerStatus;let Xe;bb0:{let t=W?.providerStatus;if(!t){let t;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[13]=t):t=e[13],Xe=t;break bb0}let n;e[14]!==Ye||e[15]!==t?(n=Object.entries(t).flatMap(e=>{let[t,n]=e;if(!n.installed)return[];let r=Ye?.find(e=>e.id===t);return[{...n,providerId:t,provider:r,ProviderIcon:A(`agent`,t,r??null)?.icon}]}),e[14]=Ye,e[15]=t,e[16]=n):n=e[16],Xe=n}let Ze=Xe,Qe;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(Qe=Date.now(),e[17]=Qe):Qe=e[17];let $e=Qe,et=V!==null&&V.id===u&&p!==null?Me[p]:U&&l.data?.primaryHostPlatform?Me[l.data.primaryHostPlatform]:null;if(B===void 0){let t;return e[18]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,z.jsx)(ce,{contentClassName:`pt-4 md:pt-5`,children:(0,z.jsx)(`div`,{className:`mx-auto w-full max-w-3xl`,children:(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Loading…`})})}),e[18]=t):t=e[18],t}if(V===null){let t;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(t=te(`machines`),e[19]=t):t=e[19];let n;return e[20]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,z.jsx)(ce,{contentClassName:`pt-4 md:pt-5`,children:(0,z.jsxs)(`div`,{className:`mx-auto w-full max-w-3xl space-y-3`,children:[(0,z.jsxs)(i,{to:t,className:`inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,z.jsx)(m,{name:`ChevronLeft`,className:`size-3.5`}),`Machines`]}),(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Machine is no longer paired.`})]})}),e[20]=n):n=e[20],n}let tt=T(V),nt=re.data?.lastMove??null,rt=ce,it=Pe,at=S.isPending||D.isPending||ee.isPending,ot=()=>S.mutate(V.id),st=()=>D.mutate(V.id),ct=()=>ee.mutate(V.id),G;e[21]===_?G=e[22]:(G=()=>{_.reset(),se(!0)},e[21]=_,e[22]=G);let lt=l.data!==void 0&&P({host:V,primaryHostId:Ve,move:re.data?.move??null,serverMoveEnabled:H}),ut,dt;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(ut=()=>ke(!0),dt=()=>ye(!0),e[23]=ut,e[24]=dt):(ut=e[23],dt=e[24]);let ft;e[25]!==it||e[26]!==V||e[27]!==U||e[28]!==Ue||e[29]!==Be||e[30]!==We||e[31]!==$e||e[32]!==et||e[33]!==ct||e[34]!==G||e[35]!==lt||e[36]!==at||e[37]!==ot||e[38]!==st?(ft=(0,z.jsx)(it,{host:V,machineProvider:We,platformLabel:et,now:$e,isPrimary:U,isThisMachine:Ue,showServerBadge:U,lifecycleNotice:Be,lifecycleActionPending:at,onSuspend:ot,onResume:st,onRetryCleanup:ct,onRename:G,canMoveServerHere:lt,onReconnect:ut,onMoveServerHere:dt}),e[25]=it,e[26]=V,e[27]=U,e[28]=Ue,e[29]=Be,e[30]=We,e[31]=$e,e[32]=et,e[33]=ct,e[34]=G,e[35]=lt,e[36]=at,e[37]=ot,e[38]=st,e[39]=ft):ft=e[39];let K;e[40]!==V.id||e[41]!==V.name||e[42]!==N?(K=e=>N.mutate({hostId:V.id,maxPermissionMode:e},{onError:e=>{c({error:e,fallbackMessage:`Couldn't change the permission limit for ${V.name}.`})}}),e[40]=V.id,e[41]=V.name,e[42]=N,e[43]=K):K=e[43];let q;e[44]!==V.maxPermissionMode||e[45]!==K||e[46]!==N.isPending?(q=(0,z.jsx)(L,{title:`Permission limit`,description:je,children:(0,z.jsx)(Ne,{value:V.maxPermissionMode,disabled:N.isPending,onSelect:K})}),e[44]=V.maxPermissionMode,e[45]=K,e[46]=N.isPending,e[47]=q):q=e[47];let J;e[48]!==V.status||e[49]!==Ze||e[50]!==W?.statusError||e[51]!==W?.statusPending||e[52]!==Je?(J=(0,z.jsx)(L,{title:`Provider CLIs`,children:(0,z.jsx)(F,{children:(0,z.jsx)(ie,{label:`Installed`,children:V.status===`connected`?W?.statusPending?(0,z.jsx)(`span`,{children:`Checking…`}):W?.statusError?(0,z.jsx)(`span`,{children:`Status unavailable`}):(0,z.jsxs)(z.Fragment,{children:[Ze.length>0?(0,z.jsx)(`span`,{className:`flex min-w-0 flex-wrap items-center justify-start gap-x-3 gap-y-1 @min-[36rem]/settings:justify-end`,children:Ze.map(Le)}):(0,z.jsx)(`span`,{children:`None installed`}),Je>0?(0,z.jsx)(i,{to:te(`updates`),className:`shrink-0 rounded outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,children:(0,z.jsxs)(w,{variant:`outline`,size:`sm`,className:`border-attention/50 bg-surface-attention text-warning-text transition-colors hover:border-attention hover:text-foreground`,children:[Je,` to fix`]})}):null]}):(0,z.jsx)(`span`,{children:`Unavailable while offline`})})})}),e[48]=V.status,e[49]=Ze,e[50]=W?.statusError,e[51]=W?.statusPending,e[52]=Je,e[53]=J):J=e[53];let Y;e[54]===V.id?Y=e[55]:(Y=(0,z.jsx)(de,{hostId:V.id}),e[54]=V.id,e[55]=Y);let X;e[56]===Ke?X=e[57]:(X=(0,z.jsx)(ie,{label:`Projects`,children:Ke.length===0?(0,z.jsx)(`span`,{children:`None`}):(0,z.jsx)(`span`,{className:`min-w-0 truncate`,children:Ke.map(Ie)})}),e[56]=Ke,e[57]=X);let pt=tt??`Up to date`,Z;e[58]===pt?Z=e[59]:(Z=(0,z.jsx)(`span`,{children:pt}),e[58]=pt,e[59]=Z);let mt;e[60]!==V||e[61]!==y?(mt=f(V)?(0,z.jsx)(j,{type:`button`,variant:`outline`,size:`sm`,className:`h-6 px-2 text-xs`,disabled:y.isPending,onClick:()=>y.mutate(V.id,{onSuccess:()=>{M.success(`Update retry requested for ${V.name}`)}}),children:y.isPending?`Retrying…`:`Retry update`}):null,e[60]=V,e[61]=y,e[62]=mt):mt=e[62];let ht;e[63]!==Z||e[64]!==mt?(ht=(0,z.jsxs)(ie,{label:`Updates`,children:[Z,mt]}),e[63]=Z,e[64]=mt,e[65]=ht):ht=e[65];let gt;e[66]!==X||e[67]!==ht?(gt=(0,z.jsx)(L,{title:`Machine information`,children:(0,z.jsxs)(F,{children:[X,ht]})}),e[66]=X,e[67]=ht,e[68]=gt):gt=e[68];let _t;e[69]!==V||e[70]!==nt||e[71]!==H?(_t=H&&Oe(V,nt)?(0,z.jsx)(Ae,{host:V,lastMove:nt}):null,e[69]=V,e[70]=nt,e[71]=H,e[72]=_t):_t=e[72];let vt;e[73]!==V||e[74]!==U||e[75]!==H?(vt=U?ue(H):`Revokes ${V.name}'s access to this server. ${_e(V)}`,e[73]=V,e[74]=U,e[75]=H,e[76]=vt):vt=e[76];let yt;e[77]===Symbol.for(`react.memo_cache_sentinel`)?(yt=()=>fe(!0),e[77]=yt):yt=e[77];let bt;e[78]===U?bt=e[79]:(bt=(0,z.jsx)(F,{children:(0,z.jsx)(I,{children:(0,z.jsx)(j,{type:`button`,variant:`destructive`,size:`sm`,disabled:U,onClick:yt,children:`Remove machine`})})}),e[78]=U,e[79]=bt);let Q;e[80]!==vt||e[81]!==bt?(Q=(0,z.jsx)(L,{title:`Danger zone`,description:vt,children:bt}),e[80]=vt,e[81]=bt,e[82]=Q):Q=e[82];let xt;e[83]!==ft||e[84]!==q||e[85]!==J||e[86]!==Y||e[87]!==gt||e[88]!==_t||e[89]!==Q?(xt=(0,z.jsxs)(`div`,{className:`mx-auto w-full max-w-3xl space-y-6 pb-10`,children:[ft,q,J,Y,gt,_t,Q]}),e[83]=ft,e[84]=q,e[85]=J,e[86]=Y,e[87]=gt,e[88]=_t,e[89]=Q,e[90]=xt):xt=e[90];let St=ae?V:null,Ct;e[91]!==_.error||e[92]!==_.isError?(Ct=_.isError?k({error:_.error,fallbackMessage:`Couldn't rename the machine.`}):null,e[91]=_.error,e[92]=_.isError,e[93]=Ct):Ct=e[93];let wt;e[94]===_.isPending?wt=e[95]:(wt=e=>{!e&&!_.isPending&&se(!1)},e[94]=_.isPending,e[95]=wt);let Tt;e[96]===_?Tt=e[97]:(Tt=(e,t)=>_.mutate({hostId:e.id,name:t},{onSuccess:()=>se(!1)}),e[96]=_,e[97]=Tt);let Et;e[98]!==_.isPending||e[99]!==St||e[100]!==Ct||e[101]!==wt||e[102]!==Tt?(Et=(0,z.jsx)(ve,{target:St,pending:_.isPending,errorMessage:Ct,onOpenChange:wt,onRename:Tt}),e[98]=_.isPending,e[99]=St,e[100]=Ct,e[101]=wt,e[102]=Tt,e[103]=Et):Et=e[103];let Dt=le?V:null,Ot;e[104]===a?Ot=e[105]:(Ot=()=>a(te(`machines`)),e[104]=a,e[105]=Ot);let kt;e[106]!==Dt||e[107]!==Ot?(kt=(0,z.jsx)(he,{target:Dt,onOpenChange:fe,onRemoved:Ot}),e[106]=Dt,e[107]=Ot,e[108]=kt):kt=e[108];let At=Ee?V:null,jt;e[109]===At?jt=e[110]:(jt=(0,z.jsx)(ge,{target:At,onOpenChange:ke}),e[109]=At,e[110]=jt);let Mt=pe?V:null,$;e[111]===Mt?$=e[112]:($=(0,z.jsx)(me,{target:Mt,onOpenChange:ye}),e[111]=Mt,e[112]=$);let Nt;return e[113]!==rt||e[114]!==xt||e[115]!==Et||e[116]!==kt||e[117]!==jt||e[118]!==$?(Nt=(0,z.jsxs)(rt,{contentClassName:`pt-4 md:pt-5`,children:[xt,Et,kt,jt,$]}),e[113]=rt,e[114]=xt,e[115]=Et,e[116]=kt,e[117]=jt,e[118]=$,e[119]=Nt):Nt=e[119],Nt}function Ie(e,t){return(0,z.jsxs)(`span`,{children:[t>0?` · `:``,(0,z.jsx)(i,{to:u(e.id),className:`hover:text-foreground`,children:e.name})]},e.id)}function Le(e){return(0,z.jsxs)(`span`,{className:`inline-flex min-w-0 items-center gap-1.5`,children:[e.ProviderIcon?(0,z.jsx)(`span`,{"data-provider-icon":e.providerId,"aria-hidden":!0,className:`flex size-3.5 shrink-0 items-center justify-center`,children:e.provider===void 0?(0,z.jsx)(e.ProviderIcon,{className:`size-3.5`}):(0,z.jsx)(l,{provider:e.provider,icon:e.ProviderIcon,className:`size-3.5`})}):null,(0,z.jsx)(`span`,{children:e.displayName}),e.currentVersion?(0,z.jsx)(`span`,{children:e.currentVersion}):null]},e.providerId)}function Re(e){return{id:e.id,name:e.name}}function ze(e){return e.type===`persistent`}export{Fe as MachineSettingsView};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,kr as n,ri as r}from"./boot-vendor-CKEhulXz.js";import{Dh as i,Fh as a}from"./index-C0VsRvUA.js";import{a as o,i as s,n as c,t as l}from"./audio-input-device-preference-ClRSlJ3W.js";import{t as u}from"./WaveformVisualizer-BQilSfuO.js";var d=n(),f=e(t(),1),p=e(r(),1);function m(e){let t=(0,d.c)(43),{open:n,onCaptureReady:r}=e,[m,_]=c(),{devices:v,refresh:y,isSupported:b,hasDeviceAccess:x}=s(),[S,C]=(0,f.useState)(null),[w,T]=(0,f.useState)(null),E,D;t[0]!==b||t[1]!==n||t[2]!==m||t[3]!==y?(E=()=>{if(!n||!b)return;let e=!1,t=null;return T(null),C(null),l(navigator.mediaDevices,m).then(n=>{if(e){n.getTracks().forEach(g);return}t=n,C(n),y()}).catch(t=>{e||T(t instanceof DOMException&&t.name===`NotAllowedError`?`Allow mic access in your settings.`:`Can't open this mic. Choose another.`)}),()=>{e=!0,t?.getTracks().forEach(h),C(null)}},D=[n,m,y,b],t[0]=b,t[1]=n,t[2]=m,t[3]=y,t[4]=E,t[5]=D):(E=t[4],D=t[5]),(0,f.useEffect)(E,D);let O,k;t[6]!==r||t[7]!==n||t[8]!==S?(O=()=>{n&&S&&r?.()},k=[n,S,r],t[6]=r,t[7]=n,t[8]=S,t[9]=O,t[10]=k):(O=t[9],k=t[10]),(0,f.useEffect)(O,k);let A=n?S:null,{silent:j}=o(A,!1),M;t[11]===A?M=t[12]:(M=A?.getAudioTracks()[0]?.label,t[11]=A,t[12]=M);let N=M,P;t[13]!==v||t[14]!==x||t[15]!==m?(P=x&&m!==null&&v.length>0&&!v.some(e=>e.deviceId===m),t[13]=v,t[14]=x,t[15]=m,t[16]=P):P=t[16];let F=P,I;t[17]!==N||t[18]!==w||t[19]!==b||t[20]!==n||t[21]!==j||t[22]!==A?(I=n?(0,p.jsxs)(`div`,{className:`space-y-2 rounded-lg border bg-muted/30 p-3`,"aria-label":`Live microphone preview`,children:[(0,p.jsxs)(`div`,{className:`flex items-center justify-between gap-2 text-xs text-muted-foreground`,children:[(0,p.jsx)(`span`,{className:`shrink-0 font-medium`,children:`Live preview`}),(0,p.jsx)(`span`,{className:`min-w-0 truncate`,title:N,children:w||!b?`Unavailable`:A?N||`Listening`:`Connecting…`})]}),(0,p.jsx)(u,{stream:A,active:n&&A!==null,className:`h-9 w-full`}),(0,p.jsx)(`p`,{role:`status`,className:`min-h-5 text-sm text-muted-foreground`,children:w??(b?A?j?`No audio detected. Try another mic.`:`Speak to check your microphone.`:`Connecting to microphone…`:`This browser can't use a mic.`)})]}):null,t[17]=N,t[18]=w,t[19]=b,t[20]=n,t[21]=j,t[22]=A,t[23]=I):I=t[23];let L;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,p.jsx)(`p`,{className:`px-1 text-xs font-medium text-muted-foreground`,children:`Input device`}),t[24]=L):L=t[24];let R;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(R={deviceId:null,label:`System default`},t[25]=R):R=t[25];let z;t[26]!==m||t[27]!==F?(z=F?[{deviceId:m,label:`Preferred microphone (unavailable)`}]:[],t[26]=m,t[27]=F,t[28]=z):z=t[28];let B;t[29]!==v||t[30]!==z?(B=[R,...z,...v],t[29]=v,t[30]=z,t[31]=B):B=t[31];let V;t[32]!==m||t[33]!==F||t[34]!==_||t[35]!==B?(V=(0,p.jsxs)(`div`,{className:`space-y-2`,children:[L,(0,p.jsx)(`div`,{role:`group`,"aria-label":`Microphone`,className:`max-h-64 space-y-1 overflow-y-auto rounded-lg border p-1`,children:B.map(e=>(0,p.jsxs)(`button`,{type:`button`,"aria-pressed":m===e.deviceId,disabled:F&&e.deviceId===m,onClick:()=>_(e.deviceId),className:a(`flex min-h-11 w-full items-center gap-3 rounded-md px-3 py-2.5 text-left text-sm transition-colors hover:bg-state-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset disabled:opacity-50`,m===e.deviceId&&`bg-state-active`),children:[(0,p.jsx)(i,{name:e.deviceId===null?`Laptop`:`Mic`,className:`size-4 shrink-0 text-muted-foreground`}),(0,p.jsx)(`span`,{className:`min-w-0 flex-1 break-words`,children:e.label}),(0,p.jsx)(`span`,{className:`size-4 shrink-0`,"aria-hidden":`true`,children:m===e.deviceId?(0,p.jsx)(i,{name:`Check`,className:`size-4`}):null})]},e.deviceId??`system`))})]}),t[32]=m,t[33]=F,t[34]=_,t[35]=B,t[36]=V):V=t[36];let H;t[37]===F?H=t[38]:(H=F?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Preferred microphone unavailable. Using another input until it returns.`}):null,t[37]=F,t[38]=H);let U;return t[39]!==V||t[40]!==H||t[41]!==I?(U=(0,p.jsxs)(`div`,{className:`space-y-4`,children:[I,V,H]}),t[39]=V,t[40]=H,t[41]=I,t[42]=U):U=t[42],U}function h(e){return e.stop()}function g(e){return e.stop()}export{m as MicrophonePreferences};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{It as t,J as n,Qt as r,X as i,Xn as a,Y as o,Yt as s,Z as c,Zt as l,hi as u,kr as d,ri as f}from"./boot-vendor-CKEhulXz.js";import{Dh as p,Dp as m,Fh as h,Ha as g,Ov as _,Ph as v,Ua as y,Va as b,_a as ee,ga as x,gp as te,va as S}from"./index-C0VsRvUA.js";import{t as C}from"./switch-DCBxzJsf.js";import{a as w,i as T,o as E,r as D,s as O,t as k}from"./model-load-error-message-CzJBN4Io.js";var A=d(),j=e(u(),1),M=e(f(),1),N=`Toggle`,P=j.forwardRef((e,n)=>{let{pressed:i,defaultPressed:a,onPressedChange:o,...c}=e,[l,u]=t({prop:i,onChange:o,defaultProp:a??!1,caller:N});return(0,M.jsx)(s.button,{type:`button`,"aria-pressed":l,"data-state":l?`on`:`off`,"data-disabled":e.disabled?``:void 0,...c,ref:n,onClick:r(e.onClick,()=>{e.disabled||u(!l)})})});P.displayName=N;var F=P,I=`ToggleGroup`,[L,R]=l(I,[i]),z=i(),B=j.forwardRef((e,t)=>{let{type:n,...r}=e;if(n===`single`)return(0,M.jsx)(ne,{role:`radiogroup`,...r,ref:t});if(n===`multiple`)return(0,M.jsx)(re,{role:`toolbar`,...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${I}\``)});B.displayName=I;var[V,H]=L(I),ne=j.forwardRef((e,n)=>{let{value:r,defaultValue:i,onValueChange:a=()=>{},...o}=e,[s,c]=t({prop:r,defaultProp:i??``,onChange:a,caller:I});return(0,M.jsx)(V,{scope:e.__scopeToggleGroup,type:`single`,value:j.useMemo(()=>s?[s]:[],[s]),onItemActivate:c,onItemDeactivate:j.useCallback(()=>c(``),[c]),children:(0,M.jsx)(W,{...o,ref:n})})}),re=j.forwardRef((e,n)=>{let{value:r,defaultValue:i,onValueChange:a=()=>{},...o}=e,[s,c]=t({prop:r,defaultProp:i??[],onChange:a,caller:I}),l=j.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=j.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,M.jsx)(V,{scope:e.__scopeToggleGroup,type:`multiple`,value:s,onItemActivate:l,onItemDeactivate:u,children:(0,M.jsx)(W,{...o,ref:n})})});B.displayName=I;var[U,ie]=L(I),W=j.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:l,loop:u=!0,...d}=e,f=z(n),p=c(l),m={dir:p,...d};return(0,M.jsx)(U,{scope:n,rovingFocus:i,disabled:r,children:i?(0,M.jsx)(o,{asChild:!0,...f,orientation:a,dir:p,loop:u,children:(0,M.jsx)(s.div,{...m,ref:t})}):(0,M.jsx)(s.div,{...m,ref:t})})}),G=`ToggleGroupItem`,K=j.forwardRef((e,t)=>{let r=H(G,e.__scopeToggleGroup),i=ie(G,e.__scopeToggleGroup),a=z(e.__scopeToggleGroup),o=r.value.includes(e.value),s=i.disabled||e.disabled,c={...e,pressed:o,disabled:s},l=j.useRef(null);return i.rovingFocus?(0,M.jsx)(n,{asChild:!0,...a,focusable:!s,active:o,ref:l,children:(0,M.jsx)(q,{...c,ref:t})}):(0,M.jsx)(q,{...c,ref:t})});K.displayName=G;var q=j.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,a=H(G,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0};return(0,M.jsx)(P,{...a.type===`single`?o:void 0,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})}),J=a(`inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground`},size:{default:`h-9 px-2 min-w-9`,sm:`h-8 px-1.5 min-w-8`,lg:`h-10 px-2.5 min-w-10`}},defaultVariants:{variant:`default`,size:`default`}}),ae=j.forwardRef((e,t)=>{let n=(0,A.c)(13),r,i,a,o;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4]):({className:r,variant:o,size:a,...i}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o);let s;n[5]!==r||n[6]!==a||n[7]!==o?(s=h(J({variant:o,size:a,className:r})),n[5]=r,n[6]=a,n[7]=o,n[8]=s):s=n[8];let c;return n[9]!==i||n[10]!==t||n[11]!==s?(c=(0,M.jsx)(F,{ref:t,className:s,...i}),n[9]=i,n[10]=t,n[11]=s,n[12]=c):c=n[12],c});ae.displayName=F.displayName;var oe=j.createContext({size:`default`,variant:`default`}),se=j.forwardRef((e,t)=>{let n=(0,A.c)(19),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({className:i,variant:s,size:o,children:r,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c;n[6]===i?c=n[7]:(c=h(`flex items-center justify-center gap-1`,i),n[6]=i,n[7]=c);let l;n[8]!==o||n[9]!==s?(l={variant:s,size:o},n[8]=o,n[9]=s,n[10]=l):l=n[10];let u;n[11]!==r||n[12]!==l?(u=(0,M.jsx)(oe.Provider,{value:l,children:r}),n[11]=r,n[12]=l,n[13]=u):u=n[13];let d;return n[14]!==a||n[15]!==t||n[16]!==c||n[17]!==u?(d=(0,M.jsx)(B,{ref:t,className:c,...a,children:u}),n[14]=a,n[15]=t,n[16]=c,n[17]=u,n[18]=d):d=n[18],d});se.displayName=B.displayName;var Y=j.forwardRef((e,t)=>{let n=(0,A.c)(17),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({className:i,children:r,variant:s,size:o,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c=j.useContext(oe),l;n[6]!==i||n[7]!==c.size||n[8]!==c.variant||n[9]!==o||n[10]!==s?(l=h(J({variant:c.variant||s,size:c.size||o}),i),n[6]=i,n[7]=c.size,n[8]=c.variant,n[9]=o,n[10]=s,n[11]=l):l=n[11];let u;return n[12]!==r||n[13]!==a||n[14]!==t||n[15]!==l?(u=(0,M.jsx)(K,{ref:t,className:l,...a,children:r}),n[12]=r,n[13]=a,n[14]=t,n[15]=l,n[16]=u):u=n[16],u});Y.displayName=K.displayName;function ce(e){let t=(0,A.c)(64),{listRef:n,providerId:r,provider:i,providerLabel:a,listboxId:o,optionId:s,modelIsLoading:c,isShowingModelError:l,hasModelOptions:u,modelLoadError:d,modelLoadFailed:f,navRows:g,highlightedIndex:y,isSearching:b,showMoreModels:x,onToggleMoreModels:te,moreModelOptions:S,moreModelsOpen:w,onMoreModelsOpenChange:T,isPreviewing:N,modelValue:P,selectionBlocked:F,onModelSelect:I,showReasoningSection:L,reasoningValue:R,reasoningOptions:z,onReasoningSelect:B,serviceTierOptions:V,serviceTierValue:H,onServiceTierChange:ne,agentSections:re,onAgentOptionChange:U,onStartHandoff:ie}=e,W=m(),G=i?.brandPrefix,K=V.length===1?V[0]:void 0,q=K?`${K.label} mode`:``,J=V.some(e=>e.id===H)?H:_,ae;t[0]===T?ae=t[1]:(ae=()=>{T(!0)},t[0]=T,t[1]=ae);let oe=ae,Y=r||`no-provider`,ce=o?`listbox`:void 0,ye=o?`Models`:void 0,be=!W&&`max-h-64`,X;t[2]===be?X=t[3]:(X=h(`min-h-0 flex-1 overflow-y-auto overscroll-contain px-1 pb-1 pt-0`,be),t[2]=be,t[3]=X);let Z;t[4]===l?Z=t[5]:(Z=l?null:(0,M.jsx)(me,{children:`Model`}),t[4]=l,t[5]=Z);let Q;t[6]!==G||t[7]!==u||t[8]!==y||t[9]!==W||t[10]!==N||t[11]!==b||t[12]!==o||t[13]!==c||t[14]!==d||t[15]!==f||t[16]!==P||t[17]!==S||t[18]!==w||t[19]!==g||t[20]!==I||t[21]!==T||t[22]!==te||t[23]!==oe||t[24]!==s||t[25]!==i||t[26]!==a||t[27]!==F||t[28]!==x?(Q=c?(0,M.jsx)(E,{label:`Loading models`,rowDataAttribute:`data-model-loading-row`}):u?(0,M.jsxs)(M.Fragment,{children:[g.map((e,t)=>{let n=y===t,r=s(t);if(e.kind===`more-toggle`)return(0,M.jsx)(he,{id:r,isActive:n,expanded:x,onToggle:te},`more-toggle`);let i=e.option;return(0,M.jsx)(_e,{id:r,role:o?`option`:void 0,isActive:n,label:O(i.label,G),qualifier:i.routeProviderId,selected:!N&&i.value===P,disabled:F||i.disabled===!0,disabledReason:i.disabledReason,onClick:()=>I(i.value)},i.value)}),!W&&!b&&S.length>0?(0,M.jsx)(ge,{open:w,onOpenChange:T,openSub:oe,activeBrandPrefix:G,isPreviewing:N,modelValue:P,options:S,onSelect:I}):null,b&&g.length===0?(0,M.jsx)(`div`,{className:h(`px-2 text-xs text-muted-foreground`,`py-[0.3125rem] max-md:pointer-coarse:py-2`),children:`No models match your search`}):null]}):(0,M.jsx)(`div`,{className:h(`px-2 text-xs leading-relaxed text-muted-foreground`,`pb-2 pt-1.5 max-md:pointer-coarse:pb-3 max-md:pointer-coarse:pt-2`),title:d?D({error:d,providerLabel:a}):void 0,children:d?(0,M.jsx)(k,{error:d,providerLabel:a,...i?.installUrl===void 0?{}:{installUrl:i.installUrl}}):f?`Could not load models.`:`No models available`}),t[6]=G,t[7]=u,t[8]=y,t[9]=W,t[10]=N,t[11]=b,t[12]=o,t[13]=c,t[14]=d,t[15]=f,t[16]=P,t[17]=S,t[18]=w,t[19]=g,t[20]=I,t[21]=T,t[22]=te,t[23]=oe,t[24]=s,t[25]=i,t[26]=a,t[27]=F,t[28]=x,t[29]=Q):Q=t[29];let $;t[30]!==n||t[31]!==o||t[32]!==Y||t[33]!==ce||t[34]!==ye||t[35]!==X||t[36]!==Z||t[37]!==Q?($=(0,M.jsxs)(`div`,{ref:n,role:ce,id:o,"aria-label":ye,className:X,children:[Z,Q]},Y),t[30]=n,t[31]=o,t[32]=Y,t[33]=ce,t[34]=ye,t[35]=X,t[36]=Z,t[37]=Q,t[38]=$):$=t[38];let xe;t[39]!==B||t[40]!==z||t[41]!==R||t[42]!==F||t[43]!==L?(xe=L?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`shrink-0 border-t border-border`}),(0,M.jsxs)(`div`,{className:`shrink-0 px-2 py-2.5`,children:[(0,M.jsx)(me,{className:`mb-2 px-1 py-0`,children:`Reasoning`}),(0,M.jsx)(se,{type:`single`,"aria-label":`Reasoning`,value:R,onValueChange:e=>{let t=z.find(t=>t.value===e);t&&B(t.value)},disabled:F,className:`flex gap-1`,children:z.map(pe)})]})]}):null,t[39]=B,t[40]=z,t[41]=R,t[42]=F,t[43]=L,t[44]=xe):xe=t[44];let Se;t[45]!==ne||t[46]!==J||t[47]!==V||t[48]!==K||t[49]!==q?(Se=K?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`shrink-0 border-t border-border`}),(0,M.jsx)(`div`,{className:`shrink-0 p-1`,children:(0,M.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-sm px-2 py-[0.3125rem] text-xs`,title:K.description,children:[(0,M.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,M.jsx)(p,{name:`Zap`,className:`size-4 fill-current text-muted-foreground`}),(0,M.jsx)(`span`,{children:q})]}),(0,M.jsx)(C,{checked:J===K.id,onCheckedChange:e=>ne(e?K.id:_),"aria-label":q,className:h(v,`[&>span]:size-3.5`)})]})})]}):V.length>1?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`shrink-0 border-t border-border`}),(0,M.jsxs)(`div`,{className:`shrink-0 px-2 py-2.5`,children:[(0,M.jsx)(me,{className:`mb-2 px-1 py-0`,children:`Speed`}),(0,M.jsx)(se,{type:`single`,"aria-label":`Speed`,value:J,onValueChange:e=>{(e===`default`||V.some(t=>t.id===e))&&ne(e)},className:`flex flex-wrap gap-1`,children:[{id:_,label:`Default`},...V].map(fe)})]})]}):null,t[45]=ne,t[46]=J,t[47]=V,t[48]=K,t[49]=q,t[50]=Se):Se=t[50];let Ce;if(t[51]!==re||t[52]!==U){let e;t[54]===U?e=t[55]:(e=e=>{let t=e.appliesOnNextTurn?(0,M.jsx)(`span`,{className:`ml-1.5 font-normal text-subtle-foreground`,children:`from the next turn`}):null,n=e.items.find(de);return n===void 0?(0,M.jsxs)(j.Fragment,{children:[(0,M.jsx)(`div`,{className:`shrink-0 border-t border-border`}),(0,M.jsxs)(`div`,{className:`shrink-0 px-2 py-2.5`,children:[(0,M.jsxs)(me,{className:`mb-2 px-1 py-0`,children:[e.label,t]}),(0,M.jsx)(se,{type:`single`,"aria-label":e.label,value:e.items.find(ue)?.key??``,onValueChange:t=>{let n=e.items.find(e=>e.key===t);n!==void 0&&U(e.id,n.value)},className:`flex flex-wrap gap-1`,children:e.items.map(le)})]})]},e.id):(0,M.jsxs)(j.Fragment,{children:[(0,M.jsx)(`div`,{className:`shrink-0 border-t border-border`}),(0,M.jsx)(`div`,{className:`shrink-0 p-1`,children:(0,M.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-sm px-2 py-[0.3125rem] text-xs`,title:e.description??void 0,children:[(0,M.jsxs)(`span`,{className:`min-w-0 truncate`,children:[e.label,t]}),(0,M.jsx)(C,{checked:n.selected,onCheckedChange:t=>U(e.id,t),"aria-label":e.label,className:h(v,`[&>span]:size-3.5`)})]})})]},e.id)},t[54]=U,t[55]=e),Ce=re.map(e),t[51]=re,t[52]=U,t[53]=Ce}else Ce=t[53];let we;t[56]===ie?we=t[57]:(we=ie?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`shrink-0 border-t border-border`}),(0,M.jsx)(`div`,{className:`shrink-0 p-1`,children:(0,M.jsx)(ve,{label:`Handoff to new thread`,iconName:`MessageSquarePlus`,onClick:ie})})]}):null,t[56]=ie,t[57]=we);let Te;return t[58]!==xe||t[59]!==Se||t[60]!==Ce||t[61]!==we||t[62]!==$?(Te=(0,M.jsx)(ee,{children:(0,M.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden`,children:[$,xe,Se,Ce,we]})}),t[58]=xe,t[59]=Se,t[60]=Ce,t[61]=we,t[62]=$,t[63]=Te):Te=t[63],Te}function le(e){return(0,M.jsx)(Y,{value:e.key,title:e.description??void 0,className:h(`h-6 min-w-0 flex-auto shrink-0 whitespace-nowrap rounded-sm px-1 text-xs font-normal shadow-none hover:bg-state-hover hover:text-foreground data-[state=on]:bg-state-active data-[state=on]:text-foreground data-[state=on]:hover:bg-state-active`,`max-md:pointer-coarse:h-9 max-md:pointer-coarse:text-sm`,v),children:e.label},e.key)}function ue(e){return e.selected}function de(e){return e.value===!0}function fe(e){return(0,M.jsx)(Y,{value:e.id,title:e.description,className:h(`h-6 min-w-0 flex-auto shrink-0 whitespace-nowrap rounded-sm px-1 text-xs font-normal shadow-none hover:bg-state-hover hover:text-foreground data-[state=on]:bg-state-active data-[state=on]:text-foreground data-[state=on]:hover:bg-state-active`,`max-md:pointer-coarse:h-9 max-md:pointer-coarse:text-sm`,v),children:e.label},e.id)}function pe(e){return(0,M.jsx)(Y,{value:e.value,"aria-label":e.label,className:h(`h-6 min-w-0 flex-auto shrink-0 whitespace-nowrap rounded-sm px-1 text-xs font-normal shadow-none hover:bg-state-hover hover:text-foreground data-[state=on]:bg-state-active data-[state=on]:text-foreground data-[state=on]:hover:bg-state-active`,`max-md:pointer-coarse:h-9 max-md:pointer-coarse:text-sm`,v),children:e.label===`Medium`||e.label===`Extra High`?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`span`,{className:`max-[360px]:hidden`,children:e.label}),(0,M.jsx)(`span`,{className:`hidden max-[360px]:inline`,children:e.label===`Medium`?`Med`:`XHigh`})]}):e.label},e.value)}function me(e){let t=(0,A.c)(5),{children:n,className:r}=e,i;t[0]===r?i=t[1]:(i=h(`sticky top-0 z-10 bg-background px-2 text-xs font-medium text-muted-foreground`,`pb-[0.3125rem] pt-2 max-md:pointer-coarse:pb-1.5`,r),t[0]=r,t[1]=i);let a;return t[2]!==n||t[3]!==i?(a=(0,M.jsx)(`div`,{className:i,children:n}),t[2]=n,t[3]=i,t[4]=a):a=t[4],a}function he(e){let t=(0,A.c)(14),{expanded:n,onToggle:r,isActive:i,id:a}=e,{hoverProps:o}=S(),s=i&&`bg-state-active`,c;t[0]===s?c=t[1]:(c=h(`relative flex w-full cursor-default select-none items-center gap-1 rounded-sm px-2 text-xs text-muted-foreground outline-none hover:bg-state-hover hover:text-foreground`,v,x,s,`py-[0.3125rem] max-md:pointer-coarse:py-2`),t[0]=s,t[1]=c);let l=n?`Fewer models`:`More models`,u;t[2]===l?u=t[3]:(u=(0,M.jsx)(`span`,{children:l}),t[2]=l,t[3]=u);let d=n?`ChevronUp`:`ChevronDown`,f;t[4]===d?f=t[5]:(f=(0,M.jsx)(p,{name:d,className:`size-3.5 shrink-0`}),t[4]=d,t[5]=f);let m;return t[6]!==n||t[7]!==o||t[8]!==a||t[9]!==r||t[10]!==c||t[11]!==u||t[12]!==f?(m=(0,M.jsxs)(`button`,{type:`button`,id:a,onClick:r,"aria-expanded":n,className:c,...o,children:[u,f]}),t[6]=n,t[7]=o,t[8]=a,t[9]=r,t[10]=c,t[11]=u,t[12]=f,t[13]=m):m=t[13],m}function ge(e){let t=(0,A.c)(46),{open:n,onOpenChange:r,openSub:i,activeBrandPrefix:a,isPreviewing:o,modelValue:s,options:c,onSelect:l}=e,{isLastHovered:u,hoverProps:d}=S(),f=(0,j.useRef)(null),m=(0,j.useRef)(null),_;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>{window.setTimeout(()=>{m.current?.querySelector(`button`)?.focus()},0)},t[0]=_):_=t[0];let te=_,C,w;t[1]!==u||t[2]!==r||t[3]!==n?(C=()=>{n&&!u&&r(!1)},w=[n,u,r],t[1]=u,t[2]=r,t[3]=n,t[4]=C,t[5]=w):(C=t[4],w=t[5]),(0,j.useEffect)(C,w);let E;t[6]!==d||t[7]!==i?(E=e=>{d.onPointerEnter(e),i()},t[6]=d,t[7]=i,t[8]=E):E=t[8];let D;t[9]!==d||t[10]!==r||t[11]!==i?(D=e=>{if(d.onKeyDown(e),e.key===`Enter`||e.key===` `||e.key===`Spacebar`||e.key===`ArrowRight`){e.preventDefault(),i(),te();return}(e.key===`Escape`||e.key===`ArrowLeft`)&&(e.preventDefault(),r(!1))},t[9]=d,t[10]=r,t[11]=i,t[12]=D):D=t[12];let k;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(k=h(`relative flex w-full cursor-default select-none items-center gap-1 rounded-sm px-2 py-[0.3125rem] text-xs text-muted-foreground outline-none hover:bg-state-hover hover:text-foreground`,v,x),t[13]=k):k=t[13];let N=d[`data-last-hovered`],P,F;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,M.jsx)(`span`,{children:`More models`}),F=(0,M.jsx)(p,{name:`ChevronRight`,className:`size-3.5 shrink-0`}),t[14]=P,t[15]=F):(P=t[14],F=t[15]);let I;t[16]!==n||t[17]!==i||t[18]!==E||t[19]!==D||t[20]!==N?(I=(0,M.jsx)(g,{asChild:!0,children:(0,M.jsxs)(`button`,{ref:f,type:`button`,"aria-haspopup":`menu`,"aria-expanded":n,onClick:i,onPointerEnter:E,onKeyDown:D,className:k,"data-last-hovered":N,children:[P,F]})}),t[16]=n,t[17]=i,t[18]=E,t[19]=D,t[20]=N,t[21]=I):I=t[21];let L;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(L=h(`max-h-[min(20rem,var(--radix-popover-content-available-height),calc(100dvh-0.5rem))] overflow-y-auto overscroll-contain p-1 data-[state=closed]:animate-none`,T),t[22]=L):L=t[22];let R;t[23]===r?R=t[24]:(R=e=>{(e.key===`Escape`||e.key===`ArrowLeft`)&&(e.preventDefault(),r(!1),f.current?.focus())},t[23]=r,t[24]=R);let z;if(t[25]!==a||t[26]!==o||t[27]!==s||t[28]!==l||t[29]!==c){let e;t[31]!==a||t[32]!==o||t[33]!==s||t[34]!==l?(e=e=>(0,M.jsx)(_e,{label:O(e.label,a),qualifier:e.routeProviderId,selected:!o&&e.value===s,onClick:()=>l(e.value)},e.value),t[31]=a,t[32]=o,t[33]=s,t[34]=l,t[35]=e):e=t[35],z=c.map(e),t[25]=a,t[26]=o,t[27]=s,t[28]=l,t[29]=c,t[30]=z}else z=t[30];let B;t[36]===z?B=t[37]:(B=(0,M.jsx)(ee,{children:z}),t[36]=z,t[37]=B);let V;t[38]!==R||t[39]!==B?(V=(0,M.jsx)(y,{ref:m,side:`right`,align:`start`,sideOffset:6,className:L,onKeyDown:R,children:B}),t[38]=R,t[39]=B,t[40]=V):V=t[40];let H;return t[41]!==r||t[42]!==n||t[43]!==I||t[44]!==V?(H=(0,M.jsxs)(b,{open:n,onOpenChange:r,children:[I,V]}),t[41]=r,t[42]=n,t[43]=I,t[44]=V,t[45]=H):H=t[45],H}function _e(e){let t=(0,A.c)(28),{label:n,qualifier:r,selected:i,disabled:a,disabledReason:o,onClick:s,isActive:c,id:l,role:u}=e,d=a===void 0?!1:a,{hoverProps:f}=S(),m;t[0]===n?m=t[1]:(m=w(n),t[0]=n,t[1]=m);let{base:g,tag:_}=m,y=u===`option`?!!c:void 0,b=c&&`bg-state-active`,ee=d&&`cursor-not-allowed opacity-60`,C;t[2]!==b||t[3]!==ee?(C=h(`relative flex w-full cursor-default select-none items-center justify-between gap-3 rounded-sm px-2 text-xs outline-none hover:bg-state-hover hover:text-foreground`,v,x,b,ee,`py-[0.3125rem] max-md:pointer-coarse:py-2`),t[2]=b,t[3]=ee,t[4]=C):C=t[4];let T=o??(r?`${n} · ${r}`:n),E;t[5]===_?E=t[6]:(E=_?(0,M.jsx)(`span`,{className:`ml-1.5 text-subtle-foreground`,children:_}):null,t[5]=_,t[6]=E);let D;t[7]===r?D=t[8]:(D=r?(0,M.jsx)(`span`,{className:`ml-1.5 text-subtle-foreground`,children:r}):null,t[7]=r,t[8]=D);let O;t[9]!==g||t[10]!==T||t[11]!==E||t[12]!==D?(O=(0,M.jsxs)(`span`,{className:`truncate`,title:T,children:[g,E,D]}),t[9]=g,t[10]=T,t[11]=E,t[12]=D,t[13]=O):O=t[13];let k=i?`opacity-100`:`opacity-0`,j;t[14]===k?j=t[15]:(j=h(te,`text-subtle-foreground`,k),t[14]=k,t[15]=j);let N;t[16]===j?N=t[17]:(N=(0,M.jsx)(`span`,{className:`flex shrink-0 items-center gap-1.5`,children:(0,M.jsx)(p,{name:`Check`,className:j})}),t[16]=j,t[17]=N);let P;return t[18]!==d||t[19]!==f||t[20]!==l||t[21]!==s||t[22]!==u||t[23]!==O||t[24]!==N||t[25]!==y||t[26]!==C?(P=(0,M.jsxs)(`button`,{type:`button`,id:l,role:u,disabled:d,"aria-selected":y,onClick:s,className:C,...f,children:[O,N]}),t[18]=d,t[19]=f,t[20]=l,t[21]=s,t[22]=u,t[23]=O,t[24]=N,t[25]=y,t[26]=C,t[27]=P):P=t[27],P}function ve(e){let t=(0,A.c)(10),{label:n,iconName:r,onClick:i}=e,{hoverProps:a}=S(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=h(`relative flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 text-xs outline-none hover:bg-state-hover hover:text-foreground`,v,x,`py-[0.3125rem] max-md:pointer-coarse:py-2`),t[0]=o):o=t[0];let s;t[1]===r?s=t[2]:(s=(0,M.jsx)(p,{name:r,className:`size-3.5 shrink-0`,"aria-hidden":!0}),t[1]=r,t[2]=s);let c;t[3]===n?c=t[4]:(c=(0,M.jsx)(`span`,{className:`min-w-0 truncate`,children:n}),t[3]=n,t[4]=c);let l;return t[5]!==a||t[6]!==i||t[7]!==s||t[8]!==c?(l=(0,M.jsxs)(`button`,{type:`button`,onClick:i,className:o,...a,children:[s,c]}),t[5]=a,t[6]=i,t[7]=s,t[8]=c,t[9]=l):l=t[9],l}export{ce as ModelReasoningMenu};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,kr as n,ri as r}from"./boot-vendor-CKEhulXz.js";import{Fh as i,R as a,V as ee}from"./index-C0VsRvUA.js";import{t as o}from"./code-loading-skeletons-D24eCxCr.js";import{n as s,t as c}from"./pierre-strict-mode-recovery-CogG8fEr.js";import{t as l}from"./FileDiff-BRQrZnWt.js";import{a as u,n as te,r as d,t as f}from"./git-diff-patch-text-SHpUxhZL.js";import{t as p}from"./PierreLineSelectionActions-Dbp9_sb9.js";import{i as m}from"./pierre-worker-pool-gate-B91n9XZl.js";var h=n(),g=e(t(),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=a(),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=i(`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};
|
|
Binary file
|
|
Binary file
|