@halcyonlabs/app 0.47.0-halcyon.604 → 0.47.0-halcyon.607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/dist/assets/{AddMachineDialog-BHF-GkBG.js → AddMachineDialog-CG2ZZhp-.js} +1 -1
- package/app/dist/assets/AddMachineDialog-CG2ZZhp-.js.br +0 -0
- package/app/dist/assets/AddMachineDialog-CG2ZZhp-.js.gz +0 -0
- package/app/dist/assets/{AppCommandShortcutHint-7JPI7Au-.js → AppCommandShortcutHint-CCVkbqD1.js} +1 -1
- package/app/dist/assets/{AppFileExternalNavigationDispatcher-BNbJsP1g.js → AppFileExternalNavigationDispatcher-DETVZfBW.js} +1 -1
- package/app/dist/assets/AppFileExternalNavigationDispatcher-DETVZfBW.js.br +0 -0
- package/app/dist/assets/AppFileExternalNavigationDispatcher-DETVZfBW.js.gz +0 -0
- package/app/dist/assets/{AppToasterView-DP33gZcS.js → AppToasterView-BpJaGVQ1.js} +1 -1
- package/app/dist/assets/{BrowserTabDeck-BlOoU-vR.js → BrowserTabDeck-c6VRKA-g.js} +1 -1
- package/app/dist/assets/BrowserTabDeck-c6VRKA-g.js.br +0 -0
- package/app/dist/assets/BrowserTabDeck-c6VRKA-g.js.gz +0 -0
- package/app/dist/assets/{CommandPaletteBody-CBbTgLrW.js → CommandPaletteBody-BeiWvSTK.js} +1 -1
- package/app/dist/assets/CommandPaletteBody-BeiWvSTK.js.br +0 -0
- package/app/dist/assets/CommandPaletteBody-BeiWvSTK.js.gz +0 -0
- package/app/dist/assets/{DiffHost-DYBSO1_c.js → DiffHost-xesYsZUt.js} +1 -1
- package/app/dist/assets/DiffHost-xesYsZUt.js.br +0 -0
- package/app/dist/assets/DiffHost-xesYsZUt.js.gz +0 -0
- package/app/dist/assets/{ExperimentalFileLinkMenu-DO2lGQoK.js → ExperimentalFileLinkMenu-CDVoETHe.js} +1 -1
- package/app/dist/assets/ExperimentalFileLinkMenu-CDVoETHe.js.br +0 -0
- package/app/dist/assets/ExperimentalFileLinkMenu-CDVoETHe.js.gz +0 -0
- package/app/dist/assets/{FilePreview-ORcgsTax.js → FilePreview-CzacGZ35.js} +1 -1
- package/app/dist/assets/FilePreview-CzacGZ35.js.br +0 -0
- package/app/dist/assets/FilePreview-CzacGZ35.js.gz +0 -0
- package/app/dist/assets/{GitDiffCardHeader-i4vt7tT5.js → GitDiffCardHeader-CJtFaq1K.js} +1 -1
- package/app/dist/assets/GitDiffCardHeader-CJtFaq1K.js.br +0 -0
- package/app/dist/assets/GitDiffCardHeader-CJtFaq1K.js.gz +0 -0
- package/app/dist/assets/{InlineMessageEditorFrame-y089xCLP.js → InlineMessageEditorFrame-C0rqOlNn.js} +1 -1
- package/app/dist/assets/InlineMessageEditorFrame-C0rqOlNn.js.br +0 -0
- package/app/dist/assets/InlineMessageEditorFrame-C0rqOlNn.js.gz +0 -0
- package/app/dist/assets/{MachineLabel-D07WUIMh.js → MachineLabel-vUI5j8ve.js} +1 -1
- package/app/dist/assets/MachineLabel-vUI5j8ve.js.br +0 -0
- package/app/dist/assets/MachineLabel-vUI5j8ve.js.gz +0 -0
- package/app/dist/assets/{MachineRenameDialog-RyrwvNas.js → MachineRenameDialog-CrnZuppe.js} +1 -1
- package/app/dist/assets/MachineRenameDialog-CrnZuppe.js.br +0 -0
- package/app/dist/assets/MachineRenameDialog-CrnZuppe.js.gz +0 -0
- package/app/dist/assets/{MachineSettingsView-Bg6Op62W.js → MachineSettingsView-BR6qseai.js} +1 -1
- package/app/dist/assets/MachineSettingsView-BR6qseai.js.br +0 -0
- package/app/dist/assets/MachineSettingsView-BR6qseai.js.gz +0 -0
- package/app/dist/assets/{MicrophonePreferences-DwsTYfON.js → MicrophonePreferences-wMQ36e_Q.js} +1 -1
- package/app/dist/assets/MicrophonePreferences-wMQ36e_Q.js.br +0 -0
- package/app/dist/assets/MicrophonePreferences-wMQ36e_Q.js.gz +0 -0
- package/app/dist/assets/{ModelReasoningMenu-Dth3XXm8.js → ModelReasoningMenu-Do0jyo5Q.js} +1 -1
- package/app/dist/assets/ModelReasoningMenu-Do0jyo5Q.js.br +0 -0
- package/app/dist/assets/ModelReasoningMenu-Do0jyo5Q.js.gz +0 -0
- package/app/dist/assets/{MoonletDiff-Da65ABAI.js → MoonletDiff-CCvaiEEC.js} +1 -1
- package/app/dist/assets/MoonletDiff-CCvaiEEC.js.br +0 -0
- package/app/dist/assets/MoonletDiff-CCvaiEEC.js.gz +0 -0
- package/app/dist/assets/{MoonletDiffSplit-Phl7m23w.js → MoonletDiffSplit-3xEwFpfu.js} +2 -2
- package/app/dist/assets/MoonletDiffSplit-3xEwFpfu.js.br +0 -0
- package/app/dist/assets/MoonletDiffSplit-3xEwFpfu.js.gz +0 -0
- package/app/dist/assets/{MoonletSourceCode-C5aa88dK.js → MoonletSourceCode-BgaVW-e6.js} +1 -1
- package/app/dist/assets/MoonletSourceCode-BgaVW-e6.js.br +0 -0
- package/app/dist/assets/MoonletSourceCode-BgaVW-e6.js.gz +0 -0
- package/app/dist/assets/{NewTabPage-BKkv1maV.js → NewTabPage-BOqCqqLe.js} +1 -1
- package/app/dist/assets/NewTabPage-BOqCqqLe.js.br +0 -0
- package/app/dist/assets/NewTabPage-BOqCqqLe.js.gz +0 -0
- package/app/dist/assets/{NewThreadComposer-00DY4i8k.js → NewThreadComposer-DyB52pmS.js} +1 -1
- package/app/dist/assets/NewThreadComposer-DyB52pmS.js.br +0 -0
- package/app/dist/assets/NewThreadComposer-DyB52pmS.js.gz +0 -0
- package/app/dist/assets/{OnboardingFlow-GwpuTTqu.js → OnboardingFlow-DTPixZrb.js} +1 -1
- package/app/dist/assets/OnboardingFlow-DTPixZrb.js.br +0 -0
- package/app/dist/assets/OnboardingFlow-DTPixZrb.js.gz +0 -0
- package/app/dist/assets/{OptionPicker-Cy_W5NWS.js → OptionPicker-CxOGHDd8.js} +1 -1
- package/app/dist/assets/OptionPicker-CxOGHDd8.js.br +0 -0
- package/app/dist/assets/OptionPicker-CxOGHDd8.js.gz +0 -0
- package/app/dist/assets/{PaletteShell-CRwrb4lb.js → PaletteShell-BMkwhUdz.js} +1 -1
- package/app/dist/assets/PaletteShell-BMkwhUdz.js.br +0 -0
- package/app/dist/assets/PaletteShell-BMkwhUdz.js.gz +0 -0
- package/app/dist/assets/{PaneMaximizeButton-CMp4cCoZ.js → PaneMaximizeButton-DgXn2p5T.js} +1 -1
- package/app/dist/assets/PaneMaximizeButton-DgXn2p5T.js.br +0 -0
- package/app/dist/assets/PaneMaximizeButton-DgXn2p5T.js.gz +0 -0
- package/app/dist/assets/{PierreLineSelectionActions-BXbCJV8P.js → PierreLineSelectionActions-V_GPrVau.js} +1 -1
- package/app/dist/assets/PierreLineSelectionActions-V_GPrVau.js.br +0 -0
- package/app/dist/assets/PierreLineSelectionActions-V_GPrVau.js.gz +0 -0
- package/app/dist/assets/{PluginPanelRightPanelHost-CuKRaAaL.js → PluginPanelRightPanelHost-CRDSntoM.js} +1 -1
- package/app/dist/assets/PluginPanelRightPanelHost-CRDSntoM.js.br +0 -0
- package/app/dist/assets/PluginPanelRightPanelHost-CRDSntoM.js.gz +0 -0
- package/app/dist/assets/{PluginSettingsSections-DJo5h7Qh.js → PluginSettingsSections-ZnUNrvlJ.js} +1 -1
- package/app/dist/assets/PluginSettingsSections-ZnUNrvlJ.js.br +0 -0
- package/app/dist/assets/PluginSettingsSections-ZnUNrvlJ.js.gz +0 -0
- package/app/dist/assets/{PluginThreadChat-BV6OMCzu.js → PluginThreadChat-DtIyKaqq.js} +1 -1
- package/app/dist/assets/PluginThreadChat-DtIyKaqq.js.br +0 -0
- package/app/dist/assets/PluginThreadChat-DtIyKaqq.js.gz +0 -0
- package/app/dist/assets/{ProjectDetailSettingsView-DdF6YsSg.js → ProjectDetailSettingsView-B3apTKMj.js} +1 -1
- package/app/dist/assets/ProjectDetailSettingsView-B3apTKMj.js.br +0 -0
- package/app/dist/assets/ProjectDetailSettingsView-B3apTKMj.js.gz +0 -0
- package/app/dist/assets/{ProjectMachineSetupDialog-CtbI4XxM.js → ProjectMachineSetupDialog-C43S09Ex.js} +1 -1
- package/app/dist/assets/ProjectMachineSetupDialog-C43S09Ex.js.br +0 -0
- package/app/dist/assets/ProjectMachineSetupDialog-C43S09Ex.js.gz +0 -0
- package/app/dist/assets/{ProjectsSettingsSection-BT1kXbPn.js → ProjectsSettingsSection-CIshX8Xc.js} +1 -1
- package/app/dist/assets/ProjectsSettingsSection-CIshX8Xc.js.br +0 -0
- package/app/dist/assets/ProjectsSettingsSection-CIshX8Xc.js.gz +0 -0
- package/app/dist/assets/{QueuedMessagesList-D1aAchqp.js → QueuedMessagesList-Dh5dxmNK.js} +1 -1
- package/app/dist/assets/QueuedMessagesList-Dh5dxmNK.js.br +0 -0
- package/app/dist/assets/QueuedMessagesList-Dh5dxmNK.js.gz +0 -0
- package/app/dist/assets/{RemotePathBrowser-vPIL8lVm.js → RemotePathBrowser-1A5-qAxD.js} +1 -1
- package/app/dist/assets/RemotePathBrowser-1A5-qAxD.js.br +0 -0
- package/app/dist/assets/RemotePathBrowser-1A5-qAxD.js.gz +0 -0
- package/app/dist/assets/{RootComposeView-DV6JGFlA.js → RootComposeView-BIZpqYG3.js} +1 -1
- package/app/dist/assets/RootComposeView-BIZpqYG3.js.br +0 -0
- package/app/dist/assets/RootComposeView-BIZpqYG3.js.gz +0 -0
- package/app/dist/assets/{SecondaryPanelLayout-BpHDgFJ_.js → SecondaryPanelLayout-BIQDxJLi.js} +1 -1
- package/app/dist/assets/SecondaryPanelLayout-BIQDxJLi.js.br +0 -0
- package/app/dist/assets/SecondaryPanelLayout-BIQDxJLi.js.gz +0 -0
- package/app/dist/assets/{ServerMoveOverlayView-CGkGzv8t.js → ServerMoveOverlayView-BSJahQeB.js} +1 -1
- package/app/dist/assets/ServerMoveOverlayView-BSJahQeB.js.br +0 -0
- package/app/dist/assets/ServerMoveOverlayView-BSJahQeB.js.gz +0 -0
- package/app/dist/assets/{SettingsSidebar-1XC0Uxwo.js → SettingsSidebar-DY_kbv4v.js} +1 -1
- package/app/dist/assets/SettingsSidebar-DY_kbv4v.js.br +0 -0
- package/app/dist/assets/SettingsSidebar-DY_kbv4v.js.gz +0 -0
- package/app/dist/assets/SettingsView-CR1GzBCl.js +7 -0
- package/app/dist/assets/SettingsView-CR1GzBCl.js.br +0 -0
- package/app/dist/assets/SettingsView-CR1GzBCl.js.gz +0 -0
- package/app/dist/assets/{SidebarFooterCustomize-D7sLYPwD.js → SidebarFooterCustomize-pIj856Zr.js} +1 -1
- package/app/dist/assets/SidebarFooterCustomize-pIj856Zr.js.br +0 -0
- package/app/dist/assets/SidebarFooterCustomize-pIj856Zr.js.gz +0 -0
- package/app/dist/assets/{SidebarVisibilityCustomize-DpTzFoGl.js → SidebarVisibilityCustomize-CR7hQOIF.js} +1 -1
- package/app/dist/assets/SidebarVisibilityCustomize-CR7hQOIF.js.br +0 -0
- package/app/dist/assets/SidebarVisibilityCustomize-CR7hQOIF.js.gz +0 -0
- package/app/dist/assets/{SourceCodeHost-DVEXLJK1.js → SourceCodeHost-DkoXO-RM.js} +2 -2
- package/app/dist/assets/SourceCodeHost-DkoXO-RM.js.br +0 -0
- package/app/dist/assets/SourceCodeHost-DkoXO-RM.js.gz +0 -0
- package/app/dist/assets/{SplitWorkspaceRoute-BfxQQdOx.js → SplitWorkspaceRoute-DN3j-Nio.js} +2 -2
- package/app/dist/assets/SplitWorkspaceRoute-DN3j-Nio.js.br +0 -0
- package/app/dist/assets/SplitWorkspaceRoute-DN3j-Nio.js.gz +0 -0
- package/app/dist/assets/{TerminalOutputBlock-COQNamKR.js → TerminalOutputBlock-DKsNjK8s.js} +1 -1
- package/app/dist/assets/TerminalOutputBlock-DKsNjK8s.js.br +0 -0
- package/app/dist/assets/TerminalOutputBlock-DKsNjK8s.js.gz +0 -0
- package/app/dist/assets/{ThreadActionsMenu-064Gcy7T.js → ThreadActionsMenu-BulopjpY.js} +1 -1
- package/app/dist/assets/ThreadActionsMenu-BulopjpY.js.br +0 -0
- package/app/dist/assets/ThreadActionsMenu-BulopjpY.js.gz +0 -0
- package/app/dist/assets/{ThreadDetailView-CjoXzweq.js → ThreadDetailView-C6cu9JmT.js} +3 -3
- package/app/dist/assets/ThreadDetailView-C6cu9JmT.js.br +0 -0
- package/app/dist/assets/ThreadDetailView-C6cu9JmT.js.gz +0 -0
- package/app/dist/assets/{ThreadSearchPaletteMode-CwdePsHK.js → ThreadSearchPaletteMode-D0MKJ8PL.js} +1 -1
- package/app/dist/assets/ThreadSearchPaletteMode-D0MKJ8PL.js.br +0 -0
- package/app/dist/assets/ThreadSearchPaletteMode-D0MKJ8PL.js.gz +0 -0
- package/app/dist/assets/{ThreadSecondaryPanel-CtYtgTla.js → ThreadSecondaryPanel-CzjhigwP.js} +1 -1
- package/app/dist/assets/ThreadSecondaryPanel-CzjhigwP.js.br +0 -0
- package/app/dist/assets/ThreadSecondaryPanel-CzjhigwP.js.gz +0 -0
- package/app/dist/assets/{ThreadSecondaryPanelTabContent-BNQi8b2n.js → ThreadSecondaryPanelTabContent-BX5A98YK.js} +1 -1
- package/app/dist/assets/ThreadSecondaryPanelTabContent-BX5A98YK.js.br +0 -0
- package/app/dist/assets/ThreadSecondaryPanelTabContent-BX5A98YK.js.gz +0 -0
- package/app/dist/assets/{ThreadStatusGlyph-DxxHDn0P.js → ThreadStatusGlyph-BYavMHiP.js} +1 -1
- package/app/dist/assets/ThreadStatusGlyph-BYavMHiP.js.br +0 -0
- package/app/dist/assets/ThreadStatusGlyph-BYavMHiP.js.gz +0 -0
- package/app/dist/assets/{ThreadTerminalPanel-fb5Kk0KG.js → ThreadTerminalPanel-Cfe76daj.js} +1 -1
- package/app/dist/assets/ThreadTerminalPanel-Cfe76daj.js.br +0 -0
- package/app/dist/assets/ThreadTerminalPanel-Cfe76daj.js.gz +0 -0
- package/app/dist/assets/{ThreadTerminalView-BiGdt3Fd.js → ThreadTerminalView-CgMKh6rk.js} +1 -1
- package/app/dist/assets/ThreadTerminalView-CgMKh6rk.js.br +0 -0
- package/app/dist/assets/ThreadTerminalView-CgMKh6rk.js.gz +0 -0
- package/app/dist/assets/{ThreadTimelineNavigationContext-epkIpS1J.js → ThreadTimelineNavigationContext-2--wIUmU.js} +2 -2
- package/app/dist/assets/ThreadTimelineNavigationContext-2--wIUmU.js.br +0 -0
- package/app/dist/assets/ThreadTimelineNavigationContext-2--wIUmU.js.gz +0 -0
- package/app/dist/assets/{ThreadUnarchiveButton-CExEP4wZ.js → ThreadUnarchiveButton-CiDbuPzJ.js} +1 -1
- package/app/dist/assets/{TimelineDetailScroll-D8gge5Y9.js → TimelineDetailScroll-DnMC8nYC.js} +1 -1
- package/app/dist/assets/TimelineDetailScroll-DnMC8nYC.js.br +0 -0
- package/app/dist/assets/TimelineDetailScroll-DnMC8nYC.js.gz +0 -0
- package/app/dist/assets/{TimelineFileDiffBlock-BJt7kifl.js → TimelineFileDiffBlock-D8pKEcE0.js} +1 -1
- package/app/dist/assets/TimelineFileDiffBlock-D8pKEcE0.js.br +0 -0
- package/app/dist/assets/TimelineFileDiffBlock-D8pKEcE0.js.gz +0 -0
- package/app/dist/assets/{TimelineSelectionMenu-DrK39LAT.js → TimelineSelectionMenu-DDYrgVgK.js} +1 -1
- package/app/dist/assets/TimelineSelectionMenu-DDYrgVgK.js.br +0 -0
- package/app/dist/assets/TimelineSelectionMenu-DDYrgVgK.js.gz +0 -0
- package/app/dist/assets/{ToolsView-4tUvUv2U.js → ToolsView-CXmmNmMz.js} +1 -1
- package/app/dist/assets/ToolsView-CXmmNmMz.js.br +0 -0
- package/app/dist/assets/ToolsView-CXmmNmMz.js.gz +0 -0
- package/app/dist/assets/{ToolsViewSplits-BWOxgNc1.js → ToolsViewSplits-VIMb0WxO.js} +2 -2
- package/app/dist/assets/ToolsViewSplits-VIMb0WxO.js.br +0 -0
- package/app/dist/assets/ToolsViewSplits-VIMb0WxO.js.gz +0 -0
- package/app/dist/assets/{WaveformVisualizer-C1SzIkiu.js → WaveformVisualizer-CyOfIcDU.js} +1 -1
- package/app/dist/assets/WaveformVisualizer-CyOfIcDU.js.br +0 -0
- package/app/dist/assets/WaveformVisualizer-CyOfIcDU.js.gz +0 -0
- package/app/dist/assets/{absolute-file-path-CbI5cppS.js → absolute-file-path-BxWHDkiV.js} +1 -1
- package/app/dist/assets/{app-fixed-tab-navigation-Cv4Tj7xZ.js → app-fixed-tab-navigation-nG5duhr6.js} +1 -1
- package/app/dist/assets/app-fixed-tab-navigation-nG5duhr6.js.br +0 -0
- package/app/dist/assets/app-fixed-tab-navigation-nG5duhr6.js.gz +0 -0
- package/app/dist/assets/{audio-input-device-preference-D8tr0bqw.js → audio-input-device-preference-Civxk2e_.js} +1 -1
- package/app/dist/assets/audio-input-device-preference-Civxk2e_.js.br +0 -0
- package/app/dist/assets/audio-input-device-preference-Civxk2e_.js.gz +0 -0
- package/app/dist/assets/{bottom-anchored-scroll-body-VYrnz8Hl.js → bottom-anchored-scroll-body-izL_2xQo.js} +1 -1
- package/app/dist/assets/bottom-anchored-scroll-body-izL_2xQo.js.br +0 -0
- package/app/dist/assets/bottom-anchored-scroll-body-izL_2xQo.js.gz +0 -0
- package/app/dist/assets/{browser-url-jhAVtSw2.js → browser-url-DQsPFWqd.js} +1 -1
- package/app/dist/assets/browser-url-DQsPFWqd.js.br +0 -0
- package/app/dist/assets/browser-url-DQsPFWqd.js.gz +0 -0
- package/app/dist/assets/{checkbox-qaQbU8-H.js → checkbox-Dxs9oAMl.js} +1 -1
- package/app/dist/assets/checkbox-Dxs9oAMl.js.br +0 -0
- package/app/dist/assets/checkbox-Dxs9oAMl.js.gz +0 -0
- package/app/dist/assets/{code-loading-skeletons-pfQDO26Y.js → code-loading-skeletons-CkiXPS0M.js} +1 -1
- package/app/dist/assets/code-loading-skeletons-CkiXPS0M.js.br +0 -0
- package/app/dist/assets/code-loading-skeletons-CkiXPS0M.js.gz +0 -0
- package/app/dist/assets/{code-rendering-CuFk1qJ1.js → code-rendering-DjLdb6cB.js} +1 -1
- package/app/dist/assets/{code-theme-registration-wCS4GRn4.js → code-theme-registration-DWaGQiqG.js} +1 -1
- package/app/dist/assets/{detail-card-C3OH86kJ.js → detail-card-BFm1NEQz.js} +1 -1
- package/app/dist/assets/detail-card-BFm1NEQz.js.br +0 -0
- package/app/dist/assets/detail-card-BFm1NEQz.js.gz +0 -0
- package/app/dist/assets/{diff-stats-tally-DkIHmiEl.js → diff-stats-tally-DQHS3tHN.js} +1 -1
- package/app/dist/assets/diff-stats-tally-DQHS3tHN.js.br +0 -0
- package/app/dist/assets/diff-stats-tally-DQHS3tHN.js.gz +0 -0
- package/app/dist/assets/{dist-CWXlD45B.js → dist-DCULoGTS.js} +1 -1
- package/app/dist/assets/dist-DCULoGTS.js.br +0 -0
- package/app/dist/assets/dist-DCULoGTS.js.gz +0 -0
- package/app/dist/assets/{environment-mutations-BrA6u8Ev.js → environment-mutations-Zes88JN-.js} +1 -1
- package/app/dist/assets/environment-mutations-Zes88JN-.js.br +0 -0
- package/app/dist/assets/environment-mutations-Zes88JN-.js.gz +0 -0
- package/app/dist/assets/{environment-workspace-display-0oqBMXMB.js → environment-workspace-display-Blt7U9Mn.js} +3 -3
- package/app/dist/assets/environment-workspace-display-Blt7U9Mn.js.br +0 -0
- package/app/dist/assets/environment-workspace-display-Blt7U9Mn.js.gz +0 -0
- package/app/dist/assets/{event-code-block-BfPSBXNn.js → event-code-block-QXnzoFqm.js} +1 -1
- package/app/dist/assets/event-code-block-QXnzoFqm.js.br +0 -0
- package/app/dist/assets/event-code-block-QXnzoFqm.js.gz +0 -0
- package/app/dist/assets/{expandable-text-01SvfXRm.js → expandable-text-DkUA9RQT.js} +1 -1
- package/app/dist/assets/expandable-text-DkUA9RQT.js.br +0 -0
- package/app/dist/assets/expandable-text-DkUA9RQT.js.gz +0 -0
- package/app/dist/assets/{file-opener-preference-C5_P-Zfr.js → file-opener-preference-CXZHmESv.js} +1 -1
- package/app/dist/assets/{file-path-link-Ddg7Fzor.js → file-path-link-D7DFjBWZ.js} +1 -1
- package/app/dist/assets/file-path-link-D7DFjBWZ.js.br +0 -0
- package/app/dist/assets/file-path-link-D7DFjBWZ.js.gz +0 -0
- package/app/dist/assets/{host-mutations-CAtir6jv.js → host-mutations-Fl0RjER0.js} +1 -1
- package/app/dist/assets/host-mutations-Fl0RjER0.js.br +0 -0
- package/app/dist/assets/host-mutations-Fl0RjER0.js.gz +0 -0
- package/app/dist/assets/{icon-extended-D2fR2GTF.js → icon-extended-C0LTNXfN.js} +1 -1
- package/app/dist/assets/icon-extended-C0LTNXfN.js.br +0 -0
- package/app/dist/assets/icon-extended-C0LTNXfN.js.gz +0 -0
- package/app/dist/assets/{image-lightbox-Dhmri6WK.js → image-lightbox-DhNslR-8.js} +1 -1
- package/app/dist/assets/image-lightbox-DhNslR-8.js.br +0 -0
- package/app/dist/assets/image-lightbox-DhNslR-8.js.gz +0 -0
- package/app/dist/assets/index-C2K528W0.css +2 -0
- package/app/dist/assets/index-C2K528W0.css.br +0 -0
- package/app/dist/assets/index-C2K528W0.css.gz +0 -0
- package/app/dist/assets/{index-CfvM6UcU.js → index-DCps_qBD.js} +8 -8
- package/app/dist/assets/index-DCps_qBD.js.br +0 -0
- package/app/dist/assets/index-DCps_qBD.js.gz +0 -0
- package/app/dist/assets/{inline-rename-editor-Bg8SXoZ3.js → inline-rename-editor-nrH2d_Gy.js} +1 -1
- package/app/dist/assets/inline-rename-editor-nrH2d_Gy.js.br +0 -0
- package/app/dist/assets/inline-rename-editor-nrH2d_Gy.js.gz +0 -0
- package/app/dist/assets/{launcherRow-CqPaUYWn.js → launcherRow-CVYGyeOl.js} +1 -1
- package/app/dist/assets/launcherRow-CVYGyeOl.js.br +0 -0
- package/app/dist/assets/launcherRow-CVYGyeOl.js.gz +0 -0
- package/app/dist/assets/{localhost-link-rewrite-description-DP-bXSL8.js → localhost-link-rewrite-description-C0FphFZq.js} +1 -1
- package/app/dist/assets/localhost-link-rewrite-description-C0FphFZq.js.br +0 -0
- package/app/dist/assets/localhost-link-rewrite-description-C0FphFZq.js.gz +0 -0
- package/app/dist/assets/{machine-provider-queries-CoghZyj9.js → machine-provider-queries-BTz8Sz3J.js} +1 -1
- package/app/dist/assets/{machine-server-access-Drk0mdHH.js → machine-server-access-CGfd5e1r.js} +1 -1
- package/app/dist/assets/{markdown-file-image-routing-BJjI1Te3.js → markdown-file-image-routing-BhGjphhz.js} +1 -1
- package/app/dist/assets/{markdown-html-BU8qsXmq.js → markdown-html-CLi3FhDR.js} +1 -1
- package/app/dist/assets/markdown-html-CLi3FhDR.js.br +0 -0
- package/app/dist/assets/markdown-html-CLi3FhDR.js.gz +0 -0
- package/app/dist/assets/{markdown-local-file-link-D-MSnVWD.js → markdown-local-file-link-BROpdQPF.js} +1 -1
- package/app/dist/assets/markdown-local-file-link-BROpdQPF.js.br +0 -0
- package/app/dist/assets/markdown-local-file-link-BROpdQPF.js.gz +0 -0
- package/app/dist/assets/{markdown-preview-BLL1QuNp.js → markdown-preview-CGXXNhJo.js} +3 -3
- package/app/dist/assets/markdown-preview-CGXXNhJo.js.br +0 -0
- package/app/dist/assets/markdown-preview-CGXXNhJo.js.gz +0 -0
- package/app/dist/assets/{markdown-prompt-mentions-B5LVmCbO.js → markdown-prompt-mentions-CPWKCtMa.js} +1 -1
- package/app/dist/assets/markdown-prompt-mentions-CPWKCtMa.js.br +0 -0
- package/app/dist/assets/markdown-prompt-mentions-CPWKCtMa.js.gz +0 -0
- package/app/dist/assets/{model-load-error-message-Dmp1hUNg.js → model-load-error-message-CH_k4E7q.js} +1 -1
- package/app/dist/assets/model-load-error-message-CH_k4E7q.js.br +0 -0
- package/app/dist/assets/model-load-error-message-CH_k4E7q.js.gz +0 -0
- package/app/dist/assets/onboarding-telemetry-BXIyQ5F4.js +1 -0
- package/app/dist/assets/{open-in-editor-button-D0wnpT6x.js → open-in-editor-button-tA10Nkqn.js} +1 -1
- package/app/dist/assets/open-in-editor-button-tA10Nkqn.js.br +0 -0
- package/app/dist/assets/open-in-editor-button-tA10Nkqn.js.gz +0 -0
- package/app/dist/assets/{page-shell-CgSxnF9m.js → page-shell-CNCVT3Uj.js} +1 -1
- package/app/dist/assets/page-shell-CNCVT3Uj.js.br +0 -0
- package/app/dist/assets/page-shell-CNCVT3Uj.js.gz +0 -0
- package/app/dist/assets/{pierre-worker-pool-CHGWu76e.js → pierre-worker-pool-pXJFsMd7.js} +1 -1
- package/app/dist/assets/pierre-worker-pool-pXJFsMd7.js.br +0 -0
- package/app/dist/assets/pierre-worker-pool-pXJFsMd7.js.gz +0 -0
- package/app/dist/assets/{plugin-detail-navigation-DuR8_JCx.js → plugin-detail-navigation-SAqiVR3K.js} +1 -1
- package/app/dist/assets/plugin-detail-navigation-SAqiVR3K.js.br +0 -0
- package/app/dist/assets/plugin-detail-navigation-SAqiVR3K.js.gz +0 -0
- package/app/dist/assets/{plugin-frontend-D5ijLuKC.js → plugin-frontend-DoWZV45B.js} +3 -3
- package/app/dist/assets/plugin-frontend-DoWZV45B.js.br +0 -0
- package/app/dist/assets/plugin-frontend-DoWZV45B.js.gz +0 -0
- package/app/dist/assets/{plugin-ui-Dpa8hcuk.js → plugin-ui-Cu8MrXLJ.js} +1 -1
- package/app/dist/assets/plugin-ui-Cu8MrXLJ.js.br +0 -0
- package/app/dist/assets/plugin-ui-Cu8MrXLJ.js.gz +0 -0
- package/app/dist/assets/{project-default-execution-options-query-DfOIRKKL.js → project-default-execution-options-query-gaQEWNK0.js} +1 -1
- package/app/dist/assets/{queued-editor-typeahead-layout-Czaq8Cl9.js → queued-editor-typeahead-layout-DTUSPVuA.js} +1 -1
- package/app/dist/assets/queued-editor-typeahead-layout-DTUSPVuA.js.br +0 -0
- package/app/dist/assets/queued-editor-typeahead-layout-DTUSPVuA.js.gz +0 -0
- package/app/dist/assets/{queued-messages-layout-B5xwiued.js → queued-messages-layout-Bj1foecI.js} +1 -1
- package/app/dist/assets/queued-messages-layout-Bj1foecI.js.br +0 -0
- package/app/dist/assets/queued-messages-layout-Bj1foecI.js.gz +0 -0
- package/app/dist/assets/{resource-list-BKpxiO2e.js → resource-list-DLZLjUCf.js} +1 -1
- package/app/dist/assets/resource-list-DLZLjUCf.js.br +0 -0
- package/app/dist/assets/resource-list-DLZLjUCf.js.gz +0 -0
- package/app/dist/assets/root-compose-create-preference-Bv_dFEsH.js +1 -0
- package/app/dist/assets/{save-file-CNFl2iiR.js → save-file-B8sl9wgP.js} +1 -1
- package/app/dist/assets/{settings-nav-C9-jh_HN.js → settings-nav-D5tWYG52.js} +1 -1
- package/app/dist/assets/settings-nav-D5tWYG52.js.br +0 -0
- package/app/dist/assets/settings-nav-D5tWYG52.js.gz +0 -0
- package/app/dist/assets/{settings-sections-BMr_XU5l.js → settings-sections-Dfo35J2q.js} +1 -1
- package/app/dist/assets/settings-sections-Dfo35J2q.js.br +0 -0
- package/app/dist/assets/settings-sections-Dfo35J2q.js.gz +0 -0
- package/app/dist/assets/{shortcut-pill-_XSUZHxZ.js → shortcut-pill-BMlNncTw.js} +1 -1
- package/app/dist/assets/{sidebarTouchSensor-DG_A1RmT.js → sidebarTouchSensor-Da_E8eSx.js} +1 -1
- package/app/dist/assets/sidebarTouchSensor-Da_E8eSx.js.br +0 -0
- package/app/dist/assets/sidebarTouchSensor-Da_E8eSx.js.gz +0 -0
- package/app/dist/assets/{switch-BjJ8825r.js → switch-BRYzbFH-.js} +1 -1
- package/app/dist/assets/switch-BRYzbFH-.js.br +0 -0
- package/app/dist/assets/switch-BRYzbFH-.js.gz +0 -0
- package/app/dist/assets/{textarea-DY_k-BJR.js → textarea-DpRLVuDl.js} +1 -1
- package/app/dist/assets/{thread-event-parser-ma5CGP66.js → thread-event-parser-BrLyjs4v.js} +1 -1
- package/app/dist/assets/thread-event-parser-BrLyjs4v.js.br +0 -0
- package/app/dist/assets/thread-event-parser-BrLyjs4v.js.gz +0 -0
- package/app/dist/assets/{thread-panel-queries-BXeOzk_6.js → thread-panel-queries-s8vzntf7.js} +1 -1
- package/app/dist/assets/thread-panel-queries-s8vzntf7.js.br +0 -0
- package/app/dist/assets/thread-panel-queries-s8vzntf7.js.gz +0 -0
- package/app/dist/assets/{thread-runtime-mutations-DmKkyel0.js → thread-runtime-mutations-BOdkZ-H-.js} +1 -1
- package/app/dist/assets/thread-runtime-mutations-BOdkZ-H-.js.br +0 -0
- package/app/dist/assets/thread-runtime-mutations-BOdkZ-H-.js.gz +0 -0
- package/app/dist/assets/{thread-terminal-queries-AFVZ5K6p.js → thread-terminal-queries-Blou76c_.js} +1 -1
- package/app/dist/assets/thread-terminal-queries-Blou76c_.js.br +0 -0
- package/app/dist/assets/thread-terminal-queries-Blou76c_.js.gz +0 -0
- package/app/dist/assets/{threadRecentItems-DXsdcpBk.js → threadRecentItems-BiCe3SkL.js} +1 -1
- package/app/dist/assets/threadRecentItems-BiCe3SkL.js.br +0 -0
- package/app/dist/assets/threadRecentItems-BiCe3SkL.js.gz +0 -0
- package/app/dist/assets/{threadWorkspaceOpenPath-DwKd-s_5.js → threadWorkspaceOpenPath-C9eC_XGN.js} +1 -1
- package/app/dist/assets/threadWorkspaceOpenPath-C9eC_XGN.js.br +0 -0
- package/app/dist/assets/threadWorkspaceOpenPath-C9eC_XGN.js.gz +0 -0
- package/app/dist/assets/{title-bar-scroll-fade-Dw_BPLyx.js → title-bar-scroll-fade-OrK4M84v.js} +1 -1
- package/app/dist/assets/title-bar-scroll-fade-OrK4M84v.js.br +0 -0
- package/app/dist/assets/title-bar-scroll-fade-OrK4M84v.js.gz +0 -0
- package/app/dist/assets/{truncate-start-CGyRoGtG.js → truncate-start-Ck1IPV62.js} +1 -1
- package/app/dist/assets/{use-hover-popover-DzrAfLzd.js → use-hover-popover-uokpMJ80.js} +1 -1
- package/app/dist/assets/use-hover-popover-uokpMJ80.js.br +0 -0
- package/app/dist/assets/use-hover-popover-uokpMJ80.js.gz +0 -0
- package/app/dist/assets/{useElementWidth-Kv5FX-9C.js → useElementWidth-EbzKQ0bg.js} +1 -1
- package/app/dist/assets/useElementWidth-EbzKQ0bg.js.br +0 -0
- package/app/dist/assets/useElementWidth-EbzKQ0bg.js.gz +0 -0
- package/app/dist/assets/{useLocalOpenTargets-B7rqz64L.js → useLocalOpenTargets-CtvcdlZg.js} +1 -1
- package/app/dist/assets/useLocalOpenTargets-CtvcdlZg.js.br +0 -0
- package/app/dist/assets/useLocalOpenTargets-CtvcdlZg.js.gz +0 -0
- package/app/dist/assets/{usePanelResizeSnap-Dizp45Ab.js → usePanelResizeSnap-CuwA4rg3.js} +1 -1
- package/app/dist/assets/usePanelResizeSnap-CuwA4rg3.js.br +0 -0
- package/app/dist/assets/usePanelResizeSnap-CuwA4rg3.js.gz +0 -0
- package/app/dist/assets/{usePanelTerminals-ByzphxXd.js → usePanelTerminals-BZhTVWNX.js} +1 -1
- package/app/dist/assets/usePanelTerminals-BZhTVWNX.js.br +0 -0
- package/app/dist/assets/usePanelTerminals-BZhTVWNX.js.gz +0 -0
- package/app/dist/assets/{usePathSuggestions-Bd5UhdCh.js → usePathSuggestions-DZ1XPM_t.js} +1 -1
- package/app/dist/assets/usePathSuggestions-DZ1XPM_t.js.br +0 -0
- package/app/dist/assets/usePathSuggestions-DZ1XPM_t.js.gz +0 -0
- package/app/dist/assets/{useResolvedLiveFileTarget-x5Gd-Gzx.js → useResolvedLiveFileTarget-DlZUgf7A.js} +1 -1
- package/app/dist/assets/useResolvedLiveFileTarget-DlZUgf7A.js.br +0 -0
- package/app/dist/assets/useResolvedLiveFileTarget-DlZUgf7A.js.gz +0 -0
- package/app/dist/assets/{useThreadTerminalController-CUnfO0Da.js → useThreadTerminalController-D4Cr2aY0.js} +1 -1
- package/app/dist/assets/useThreadTerminalController-D4Cr2aY0.js.br +0 -0
- package/app/dist/assets/useThreadTerminalController-D4Cr2aY0.js.gz +0 -0
- package/app/dist/assets/{workspace-change-summary-CLNpSq_E.js → workspace-change-summary-C1EKX0Np.js} +1 -1
- package/app/dist/assets/workspace-change-summary-C1EKX0Np.js.br +0 -0
- package/app/dist/assets/workspace-change-summary-C1EKX0Np.js.gz +0 -0
- package/app/dist/assets/{workspace-checkout-display-Aad1Wxi4.js → workspace-checkout-display-DRAc3j4u.js} +4 -4
- package/app/dist/assets/workspace-checkout-display-DRAc3j4u.js.br +0 -0
- package/app/dist/assets/workspace-checkout-display-DRAc3j4u.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 +1 -1
- package/dist/index.d.ts +64 -64
- package/dist/index.js +39 -34
- package/host-daemon/dist/bb +2 -2
- package/host-daemon/dist/daemon-bundle.mjs +9 -9
- package/host-daemon/dist/moonlet +2 -2
- package/host-daemon/dist/moonlet-chunks/{browser-LWDG5PCA.js → browser-3YADF5CZ.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-4BNITW7L.js → chunk-CJVCV7LA.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-5AOUW4I4.js → chunk-DYWN65E6.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-GUMXNH56.js → chunk-GJNT53PW.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/chunk-MNJOOMMT.js +2 -0
- package/host-daemon/dist/moonlet-chunks/{chunk-2QTAZF4P.js → chunk-OZFHGPH4.js} +2 -2
- package/host-daemon/dist/moonlet-chunks/{chunk-OW2VWWPF.js → chunk-UASCWFYV.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-3GDA5QRC.js → chunk-UBCGVKZ2.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-ZJ3M74CR.js → chunk-UZIJUXRX.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-I2TDLRZL.js → chunk-VRIDG567.js} +80 -80
- package/host-daemon/dist/moonlet-chunks/{chunk-LQ55GYT2.js → chunk-Z7UFAOBI.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-IRGDLZXQ.js → chunk-ZY4JRPPT.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{client-LVL2RUQ5.js → client-HJ57QVLD.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{commander-errors-RQKAT5HQ.js → commander-errors-VI7J6RNT.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{context-env-74PECPQU.js → context-env-C4YEBBVX.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{context-hints-GQMM7IUB.js → context-hints-FZ224BCX.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{diagnostics-GZNLDKFH.js → diagnostics-OU2KW3CN.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{environment-2OF5OYK6.js → environment-45XH2PJT.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{file-ICBUEP7H.js → file-OHC2H5AH.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{guide-I3LO3KWD.js → guide-T2HEZTCZ.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{machine-ZH4VN36Y.js → machine-7DB7FE7G.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{marketplace-72G2CIZT.js → marketplace-GSP2IPGS.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{permissions-ZKMW6XVA.js → permissions-SOZPETLR.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{plugin-J33MYYP6.js → plugin-672NQWPG.js} +26 -26
- package/host-daemon/dist/moonlet-chunks/{plugin-cli-proxy-KK4YO745.js → plugin-cli-proxy-YK6LMDCS.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{project-CAOBT6PT.js → project-KMNJH6RG.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{prompt-history-3CTG22DW.js → prompt-history-H3Y2IHDY.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{provider-T7SNTFH5.js → provider-EKKSYF2D.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{schedule-2G2I4DCW.js → schedule-KVSISSIR.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{server-R3LHIEJF.js → server-53I6IGAP.js} +2 -2
- package/host-daemon/dist/moonlet-chunks/{settings-WR7UCFPE.js → settings-MKGSGNIO.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{skill-GHMBJF4G.js → skill-DXINIPQ3.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{status-ES5SEMUE.js → status-BSMUYEAO.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{terminal-45KOGD2U.js → terminal-VKBGZFLN.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{theme-DEIR5VHK.js → theme-3YCCZBGC.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{thread-NNUIM6R7.js → thread-PFBPLD4F.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{updates-23J52P44.js → updates-OO7GE7UB.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{voice-CSQR656B.js → voice-ZJOSAJW7.js} +1 -1
- package/package.json +3 -3
- package/server/dist/builtin-plugins/account-pool/dist/app.js +9 -9
- package/server/dist/builtin-plugins/account-pool/skills/account-pool/SKILL.md +1 -1
- package/server/dist/builtin-plugins/agent-annotations/dist/app.js +2 -2
- package/server/dist/builtin-plugins/agent-board/dist/THIRD_PARTY_NOTICES.md +3 -3
- package/server/dist/builtin-plugins/agent-board/dist/app.js +6 -6
- package/server/dist/builtin-plugins/agent-board/dist/server.js +1 -1
- package/server/dist/builtin-plugins/ask-user-question/dist/app.js +6 -6
- package/server/dist/builtin-plugins/automations/dist/app.js +1 -1
- package/server/dist/builtin-plugins/automations/skills/automations/SKILL.md +1 -1
- package/server/dist/builtin-plugins/bb-account/dist/app.js +1 -1
- package/server/dist/builtin-plugins/bb-account/skills/bb-account/SKILL.md +1 -1
- package/server/dist/builtin-plugins/bb-ai/dist/server.js +2 -2
- package/server/dist/builtin-plugins/bb-ai/skills/bb-cloud-ai/SKILL.md +1 -1
- package/server/dist/builtin-plugins/bb-guide/dist/app.js +1 -1
- package/server/dist/builtin-plugins/bb-guide/dist/server.js +2 -2
- package/server/dist/builtin-plugins/bb-guide/package.json +2 -2
- package/server/dist/builtin-plugins/bb-guide/skills/bb-cli/SKILL.md +3 -3
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/SKILL.md +4 -4
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-cli-agents.md +6 -6
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-events.md +2 -2
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-foundation.md +1 -1
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-sdk.md +1 -1
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/distribution.md +2 -2
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/frontend-components.md +4 -4
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/frontend-core-slots.md +15 -15
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/frontend-hooks-and-ui.md +9 -9
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/providers.md +3 -3
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/quickstart.md +10 -10
- package/server/dist/builtin-plugins/bb-guide/skills/skill-creator/SKILL.md +2 -2
- package/server/dist/builtin-plugins/bb-guide/skills/submit-a-plugin/SKILL.md +3 -3
- package/server/dist/builtin-plugins/bb-guide/skills/submit-a-plugin/references/marketplace-entry.md +8 -8
- package/server/dist/builtin-plugins/bb-guide/skills/submit-a-plugin/references/plugin-release.md +1 -1
- package/server/dist/builtin-plugins/browser-automation/dist/app.js +1 -1
- package/server/dist/builtin-plugins/browser-automation/dist/server.js +2 -2
- package/server/dist/builtin-plugins/browser-automation/skills/browser-automation/SKILL.md +3 -3
- package/server/dist/builtin-plugins/composer/dist/app.js +4 -4
- package/server/dist/builtin-plugins/concurrency-limit/dist/app.js +1 -1
- package/server/dist/builtin-plugins/concurrency-limit/skills/concurrency-limit/SKILL.md +1 -1
- package/server/dist/builtin-plugins/connect/dist/app.js +2 -2
- package/server/dist/builtin-plugins/connect/skills/share-server-links/SKILL.md +1 -1
- package/server/dist/builtin-plugins/connect-next/dist/app.js +2 -2
- package/server/dist/builtin-plugins/connect-next/dist/server.js +1 -1
- package/server/dist/builtin-plugins/connect-next/skills/connect-next/SKILL.md +1 -1
- package/server/dist/builtin-plugins/custom-instructions/dist/app.js +1 -1
- package/server/dist/builtin-plugins/docs/dist/app.js +3 -3
- package/server/dist/builtin-plugins/docs/skills/docs/SKILL.md +1 -1
- package/server/dist/builtin-plugins/drafts/dist/app.js +1 -1
- package/server/dist/builtin-plugins/environment-git-worktree/dist/app.js +1 -1
- package/server/dist/builtin-plugins/environment-modal-sandbox/dist/app.js +1 -1
- package/server/dist/builtin-plugins/environment-modal-sandbox/dist/server.js +1 -1
- package/server/dist/builtin-plugins/environment-modal-sandbox/skills/modal-sandboxes/SKILL.md +5 -5
- package/server/dist/builtin-plugins/environment-project-checkout/dist/app.js +1 -1
- package/server/dist/builtin-plugins/github/dist/app.js +2 -2
- package/server/dist/builtin-plugins/github/dist/server.js +7 -7
- package/server/dist/builtin-plugins/github/package.json +2 -2
- package/server/dist/builtin-plugins/github/skills/github-change/SKILL.md +2 -2
- package/server/dist/builtin-plugins/github/skills/github-change/references/merging.md +8 -8
- package/server/dist/builtin-plugins/github-pr-status/dist/app.js +6 -6
- package/server/dist/builtin-plugins/inline-vis/dist/app.js +2 -2
- package/server/dist/builtin-plugins/inline-vis/skills/inline-vis/SKILL.md +2 -2
- package/server/dist/builtin-plugins/keep-awake/dist/app.js +1 -1
- package/server/dist/builtin-plugins/keep-awake/dist/server.js +1 -1
- package/server/dist/builtin-plugins/library/dist/app.js +2 -2
- package/server/dist/builtin-plugins/mail/skills/mail/SKILL.md +1 -1
- package/server/dist/builtin-plugins/marketplace.json +10 -10
- package/server/dist/builtin-plugins/mcp/dist/server.js +8 -8
- package/server/dist/builtin-plugins/mcp/skills/mcp/SKILL.md +1 -1
- package/server/dist/builtin-plugins/memory/dist/app.js +1 -1
- package/server/dist/builtin-plugins/memory/dist/server.js +4 -4
- package/server/dist/builtin-plugins/memory/skills/memory/SKILL.md +5 -5
- package/server/dist/builtin-plugins/monaco-editor/dist/app.js +1 -1
- package/server/dist/builtin-plugins/navigation/dist/app.js +1 -1
- package/server/dist/builtin-plugins/notify-feed/dist/app.js +3 -3
- package/server/dist/builtin-plugins/notify-feed/dist/server.js +2 -2
- package/server/dist/builtin-plugins/orbit/dist/app.js +2 -2
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/docs/handoff-to-new-conversation.md +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/manifest.json +4 -4
- 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/back/CLAUDE.md +5 -5
- package/server/dist/builtin-plugins/orbit/dist/assets/plugins/moonlet/front/CLAUDE.md +15 -15
- package/server/dist/builtin-plugins/orbit/dist/host.js +49 -49
- package/server/dist/builtin-plugins/orbit/dist/host.meta.json +1 -1
- package/server/dist/builtin-plugins/orbit/dist/server.js +148 -148
- package/server/dist/builtin-plugins/pdf-preview/dist/app.js +1 -1
- package/server/dist/builtin-plugins/plugin-api-docs/dist/app.js +2 -2
- package/server/dist/builtin-plugins/plugin-api-tester/dist/app.js +1 -1
- package/server/dist/builtin-plugins/prompt-library/dist/app.js +2 -2
- package/server/dist/builtin-plugins/prompt-library/skills/prompt-library/SKILL.md +1 -1
- package/server/dist/builtin-plugins/provider-acp/dist/app.js +1 -1
- package/server/dist/builtin-plugins/provider-acp/dist/host.js +5 -5
- package/server/dist/builtin-plugins/provider-acp/dist/host.meta.json +1 -1
- package/server/dist/builtin-plugins/provider-acp/dist/server.js +97 -97
- package/server/dist/builtin-plugins/provider-acp/skills/acp-provider/SKILL.md +9 -9
- package/server/dist/builtin-plugins/provider-claude-code/dist/app.js +1 -1
- package/server/dist/builtin-plugins/provider-claude-code/dist/host.js +3 -3
- package/server/dist/builtin-plugins/provider-claude-code/dist/host.meta.json +1 -1
- package/server/dist/builtin-plugins/provider-claude-code/dist/server.js +1 -1
- package/server/dist/builtin-plugins/provider-codex/dist/app.js +2 -2
- package/server/dist/builtin-plugins/provider-codex/dist/host.js +45 -45
- package/server/dist/builtin-plugins/provider-codex/dist/host.meta.json +1 -1
- package/server/dist/builtin-plugins/provider-codex/dist/server.js +1 -1
- package/server/dist/builtin-plugins/provider-pi/dist/app.js +1 -1
- package/server/dist/builtin-plugins/provider-pi/skills/pi-provider/SKILL.md +1 -1
- package/server/dist/builtin-plugins/provider-retry/dist/app.js +1 -1
- package/server/dist/builtin-plugins/provider-retry/skills/provider-retry/SKILL.md +1 -1
- package/server/dist/builtin-plugins/provider-usage/dist/app.js +12 -12
- package/server/dist/builtin-plugins/push-notifications/dist/app.js +2 -2
- package/server/dist/builtin-plugins/push-notifications/skills/push-notifications/SKILL.md +1 -1
- package/server/dist/builtin-plugins/scheduled-send/dist/app.js +1 -1
- package/server/dist/builtin-plugins/secrets/dist/app.js +1 -1
- package/server/dist/builtin-plugins/side-chat/dist/app.js +1 -1
- package/server/dist/builtin-plugins/storage-retention/dist/app.js +1 -1
- package/server/dist/builtin-plugins/storage-retention/dist/server.js +2 -2
- package/server/dist/builtin-plugins/storage-retention/skills/storage-retention/SKILL.md +5 -5
- package/server/dist/builtin-plugins/tasks/dist/app.js +4 -4
- package/server/dist/builtin-plugins/tasks/skills/tasks/SKILL.md +1 -1
- package/server/dist/builtin-plugins/theme-preview/dist/app.js +2 -2
- package/server/dist/builtin-plugins/theme-preview/skills/bb-theme-authoring/SKILL.md +1 -1
- package/server/dist/builtin-plugins/thread-list/dist/app.js +2 -2
- package/server/dist/builtin-plugins/thread-list/dist/server.js +2 -2
- package/server/dist/builtin-plugins/workflows/dist/app.js +1 -1
- package/server/dist/builtin-plugins/workflows/dist/server.js +4 -4
- package/server/dist/builtin-plugins/workflows/skills/workflows/SKILL.md +4 -4
- package/server/dist/builtin-plugins/workflows/skills/workflows/references/authoring.md +7 -7
- package/server/dist/builtin-skills/bb-cli/SKILL.md +3 -3
- package/server/dist/builtin-skills/bb-plugin-authoring/SKILL.md +4 -4
- package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-cli-agents.md +6 -6
- package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-events.md +2 -2
- package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-foundation.md +1 -1
- package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-sdk.md +1 -1
- package/server/dist/builtin-skills/bb-plugin-authoring/references/distribution.md +2 -2
- package/server/dist/builtin-skills/bb-plugin-authoring/references/frontend-components.md +4 -4
- package/server/dist/builtin-skills/bb-plugin-authoring/references/frontend-core-slots.md +15 -15
- package/server/dist/builtin-skills/bb-plugin-authoring/references/frontend-hooks-and-ui.md +9 -9
- package/server/dist/builtin-skills/bb-plugin-authoring/references/providers.md +3 -3
- package/server/dist/builtin-skills/bb-plugin-authoring/references/quickstart.md +10 -10
- package/server/dist/builtin-skills/skill-creator/SKILL.md +2 -2
- package/server/dist/builtin-skills/submit-a-plugin/SKILL.md +3 -3
- package/server/dist/builtin-skills/submit-a-plugin/references/marketplace-entry.md +8 -8
- package/server/dist/builtin-skills/submit-a-plugin/references/plugin-release.md +1 -1
- package/server/dist/start-server.js +75 -70
- package/app/dist/assets/AddMachineDialog-BHF-GkBG.js.br +0 -0
- package/app/dist/assets/AddMachineDialog-BHF-GkBG.js.gz +0 -0
- package/app/dist/assets/AppFileExternalNavigationDispatcher-BNbJsP1g.js.br +0 -0
- package/app/dist/assets/AppFileExternalNavigationDispatcher-BNbJsP1g.js.gz +0 -0
- package/app/dist/assets/BrowserTabDeck-BlOoU-vR.js.br +0 -0
- package/app/dist/assets/BrowserTabDeck-BlOoU-vR.js.gz +0 -0
- package/app/dist/assets/CommandPaletteBody-CBbTgLrW.js.br +0 -0
- package/app/dist/assets/CommandPaletteBody-CBbTgLrW.js.gz +0 -0
- package/app/dist/assets/DiffHost-DYBSO1_c.js.br +0 -0
- package/app/dist/assets/DiffHost-DYBSO1_c.js.gz +0 -0
- package/app/dist/assets/ExperimentalFileLinkMenu-DO2lGQoK.js.br +0 -0
- package/app/dist/assets/ExperimentalFileLinkMenu-DO2lGQoK.js.gz +0 -0
- package/app/dist/assets/FilePreview-ORcgsTax.js.br +0 -0
- package/app/dist/assets/FilePreview-ORcgsTax.js.gz +0 -0
- package/app/dist/assets/GitDiffCardHeader-i4vt7tT5.js.br +0 -0
- package/app/dist/assets/GitDiffCardHeader-i4vt7tT5.js.gz +0 -0
- package/app/dist/assets/InlineMessageEditorFrame-y089xCLP.js.br +0 -0
- package/app/dist/assets/InlineMessageEditorFrame-y089xCLP.js.gz +0 -0
- package/app/dist/assets/MachineLabel-D07WUIMh.js.br +0 -0
- package/app/dist/assets/MachineLabel-D07WUIMh.js.gz +0 -0
- package/app/dist/assets/MachineRenameDialog-RyrwvNas.js.br +0 -0
- package/app/dist/assets/MachineRenameDialog-RyrwvNas.js.gz +0 -0
- package/app/dist/assets/MachineSettingsView-Bg6Op62W.js.br +0 -0
- package/app/dist/assets/MachineSettingsView-Bg6Op62W.js.gz +0 -0
- package/app/dist/assets/MicrophonePreferences-DwsTYfON.js.br +0 -0
- package/app/dist/assets/MicrophonePreferences-DwsTYfON.js.gz +0 -0
- package/app/dist/assets/ModelReasoningMenu-Dth3XXm8.js.br +0 -0
- package/app/dist/assets/ModelReasoningMenu-Dth3XXm8.js.gz +0 -0
- package/app/dist/assets/MoonletDiff-Da65ABAI.js.br +0 -0
- package/app/dist/assets/MoonletDiff-Da65ABAI.js.gz +0 -0
- package/app/dist/assets/MoonletDiffSplit-Phl7m23w.js.br +0 -0
- package/app/dist/assets/MoonletDiffSplit-Phl7m23w.js.gz +0 -0
- package/app/dist/assets/MoonletSourceCode-C5aa88dK.js.br +0 -0
- package/app/dist/assets/MoonletSourceCode-C5aa88dK.js.gz +0 -0
- package/app/dist/assets/NewTabPage-BKkv1maV.js.br +0 -0
- package/app/dist/assets/NewTabPage-BKkv1maV.js.gz +0 -0
- package/app/dist/assets/NewThreadComposer-00DY4i8k.js.br +0 -0
- package/app/dist/assets/NewThreadComposer-00DY4i8k.js.gz +0 -0
- package/app/dist/assets/OnboardingFlow-GwpuTTqu.js.br +0 -0
- package/app/dist/assets/OnboardingFlow-GwpuTTqu.js.gz +0 -0
- package/app/dist/assets/OptionPicker-Cy_W5NWS.js.br +0 -0
- package/app/dist/assets/OptionPicker-Cy_W5NWS.js.gz +0 -0
- package/app/dist/assets/PaletteShell-CRwrb4lb.js.br +0 -0
- package/app/dist/assets/PaletteShell-CRwrb4lb.js.gz +0 -0
- package/app/dist/assets/PaneMaximizeButton-CMp4cCoZ.js.br +0 -0
- package/app/dist/assets/PaneMaximizeButton-CMp4cCoZ.js.gz +0 -0
- package/app/dist/assets/PierreLineSelectionActions-BXbCJV8P.js.br +0 -0
- package/app/dist/assets/PierreLineSelectionActions-BXbCJV8P.js.gz +0 -0
- package/app/dist/assets/PluginPanelRightPanelHost-CuKRaAaL.js.br +0 -0
- package/app/dist/assets/PluginPanelRightPanelHost-CuKRaAaL.js.gz +0 -0
- package/app/dist/assets/PluginSettingsSections-DJo5h7Qh.js.br +0 -0
- package/app/dist/assets/PluginSettingsSections-DJo5h7Qh.js.gz +0 -0
- package/app/dist/assets/PluginThreadChat-BV6OMCzu.js.br +0 -0
- package/app/dist/assets/PluginThreadChat-BV6OMCzu.js.gz +0 -0
- package/app/dist/assets/ProjectDetailSettingsView-DdF6YsSg.js.br +0 -0
- package/app/dist/assets/ProjectDetailSettingsView-DdF6YsSg.js.gz +0 -0
- package/app/dist/assets/ProjectMachineSetupDialog-CtbI4XxM.js.br +0 -0
- package/app/dist/assets/ProjectMachineSetupDialog-CtbI4XxM.js.gz +0 -0
- package/app/dist/assets/ProjectsSettingsSection-BT1kXbPn.js.br +0 -0
- package/app/dist/assets/ProjectsSettingsSection-BT1kXbPn.js.gz +0 -0
- package/app/dist/assets/QueuedMessagesList-D1aAchqp.js.br +0 -0
- package/app/dist/assets/QueuedMessagesList-D1aAchqp.js.gz +0 -0
- package/app/dist/assets/RemotePathBrowser-vPIL8lVm.js.br +0 -0
- package/app/dist/assets/RemotePathBrowser-vPIL8lVm.js.gz +0 -0
- package/app/dist/assets/RootComposeView-DV6JGFlA.js.br +0 -0
- package/app/dist/assets/RootComposeView-DV6JGFlA.js.gz +0 -0
- package/app/dist/assets/SecondaryPanelLayout-BpHDgFJ_.js.br +0 -0
- package/app/dist/assets/SecondaryPanelLayout-BpHDgFJ_.js.gz +0 -0
- package/app/dist/assets/ServerMoveOverlayView-CGkGzv8t.js.br +0 -0
- package/app/dist/assets/ServerMoveOverlayView-CGkGzv8t.js.gz +0 -0
- package/app/dist/assets/SettingsSidebar-1XC0Uxwo.js.br +0 -0
- package/app/dist/assets/SettingsSidebar-1XC0Uxwo.js.gz +0 -0
- package/app/dist/assets/SettingsView-BUobmesT.js +0 -7
- package/app/dist/assets/SettingsView-BUobmesT.js.br +0 -0
- package/app/dist/assets/SettingsView-BUobmesT.js.gz +0 -0
- package/app/dist/assets/SidebarFooterCustomize-D7sLYPwD.js.br +0 -0
- package/app/dist/assets/SidebarFooterCustomize-D7sLYPwD.js.gz +0 -0
- package/app/dist/assets/SidebarVisibilityCustomize-DpTzFoGl.js.br +0 -0
- package/app/dist/assets/SidebarVisibilityCustomize-DpTzFoGl.js.gz +0 -0
- package/app/dist/assets/SourceCodeHost-DVEXLJK1.js.br +0 -0
- package/app/dist/assets/SourceCodeHost-DVEXLJK1.js.gz +0 -0
- package/app/dist/assets/SplitWorkspaceRoute-BfxQQdOx.js.br +0 -0
- package/app/dist/assets/SplitWorkspaceRoute-BfxQQdOx.js.gz +0 -0
- package/app/dist/assets/TerminalOutputBlock-COQNamKR.js.br +0 -0
- package/app/dist/assets/TerminalOutputBlock-COQNamKR.js.gz +0 -0
- package/app/dist/assets/ThreadActionsMenu-064Gcy7T.js.br +0 -0
- package/app/dist/assets/ThreadActionsMenu-064Gcy7T.js.gz +0 -0
- package/app/dist/assets/ThreadDetailView-CjoXzweq.js.br +0 -0
- package/app/dist/assets/ThreadDetailView-CjoXzweq.js.gz +0 -0
- package/app/dist/assets/ThreadSearchPaletteMode-CwdePsHK.js.br +0 -0
- package/app/dist/assets/ThreadSearchPaletteMode-CwdePsHK.js.gz +0 -0
- package/app/dist/assets/ThreadSecondaryPanel-CtYtgTla.js.br +0 -0
- package/app/dist/assets/ThreadSecondaryPanel-CtYtgTla.js.gz +0 -0
- package/app/dist/assets/ThreadSecondaryPanelTabContent-BNQi8b2n.js.br +0 -0
- package/app/dist/assets/ThreadSecondaryPanelTabContent-BNQi8b2n.js.gz +0 -0
- package/app/dist/assets/ThreadStatusGlyph-DxxHDn0P.js.br +0 -0
- package/app/dist/assets/ThreadStatusGlyph-DxxHDn0P.js.gz +0 -0
- package/app/dist/assets/ThreadTerminalPanel-fb5Kk0KG.js.br +0 -0
- package/app/dist/assets/ThreadTerminalPanel-fb5Kk0KG.js.gz +0 -0
- package/app/dist/assets/ThreadTerminalView-BiGdt3Fd.js.br +0 -0
- package/app/dist/assets/ThreadTerminalView-BiGdt3Fd.js.gz +0 -0
- package/app/dist/assets/ThreadTimelineNavigationContext-epkIpS1J.js.br +0 -0
- package/app/dist/assets/ThreadTimelineNavigationContext-epkIpS1J.js.gz +0 -0
- package/app/dist/assets/TimelineDetailScroll-D8gge5Y9.js.br +0 -0
- package/app/dist/assets/TimelineDetailScroll-D8gge5Y9.js.gz +0 -0
- package/app/dist/assets/TimelineFileDiffBlock-BJt7kifl.js.br +0 -0
- package/app/dist/assets/TimelineFileDiffBlock-BJt7kifl.js.gz +0 -0
- package/app/dist/assets/TimelineSelectionMenu-DrK39LAT.js.br +0 -0
- package/app/dist/assets/TimelineSelectionMenu-DrK39LAT.js.gz +0 -0
- package/app/dist/assets/ToolsView-4tUvUv2U.js.br +0 -0
- package/app/dist/assets/ToolsView-4tUvUv2U.js.gz +0 -0
- package/app/dist/assets/ToolsViewSplits-BWOxgNc1.js.br +0 -0
- package/app/dist/assets/ToolsViewSplits-BWOxgNc1.js.gz +0 -0
- package/app/dist/assets/WaveformVisualizer-C1SzIkiu.js.br +0 -0
- package/app/dist/assets/WaveformVisualizer-C1SzIkiu.js.gz +0 -0
- package/app/dist/assets/app-fixed-tab-navigation-Cv4Tj7xZ.js.br +0 -0
- package/app/dist/assets/app-fixed-tab-navigation-Cv4Tj7xZ.js.gz +0 -0
- package/app/dist/assets/audio-input-device-preference-D8tr0bqw.js.br +0 -0
- package/app/dist/assets/audio-input-device-preference-D8tr0bqw.js.gz +0 -0
- package/app/dist/assets/bottom-anchored-scroll-body-VYrnz8Hl.js.br +0 -0
- package/app/dist/assets/bottom-anchored-scroll-body-VYrnz8Hl.js.gz +0 -0
- package/app/dist/assets/browser-url-jhAVtSw2.js.br +0 -0
- package/app/dist/assets/browser-url-jhAVtSw2.js.gz +0 -0
- package/app/dist/assets/checkbox-qaQbU8-H.js.br +0 -0
- package/app/dist/assets/checkbox-qaQbU8-H.js.gz +0 -0
- package/app/dist/assets/code-loading-skeletons-pfQDO26Y.js.br +0 -0
- package/app/dist/assets/code-loading-skeletons-pfQDO26Y.js.gz +0 -0
- package/app/dist/assets/detail-card-C3OH86kJ.js.br +0 -0
- package/app/dist/assets/detail-card-C3OH86kJ.js.gz +0 -0
- package/app/dist/assets/diff-stats-tally-DkIHmiEl.js.br +0 -0
- package/app/dist/assets/diff-stats-tally-DkIHmiEl.js.gz +0 -0
- package/app/dist/assets/dist-CWXlD45B.js.br +0 -0
- package/app/dist/assets/dist-CWXlD45B.js.gz +0 -0
- package/app/dist/assets/environment-mutations-BrA6u8Ev.js.br +0 -0
- package/app/dist/assets/environment-mutations-BrA6u8Ev.js.gz +0 -0
- package/app/dist/assets/environment-workspace-display-0oqBMXMB.js.br +0 -0
- package/app/dist/assets/environment-workspace-display-0oqBMXMB.js.gz +0 -0
- package/app/dist/assets/event-code-block-BfPSBXNn.js.br +0 -0
- package/app/dist/assets/event-code-block-BfPSBXNn.js.gz +0 -0
- package/app/dist/assets/expandable-text-01SvfXRm.js.br +0 -0
- package/app/dist/assets/expandable-text-01SvfXRm.js.gz +0 -0
- package/app/dist/assets/file-path-link-Ddg7Fzor.js.br +0 -0
- package/app/dist/assets/file-path-link-Ddg7Fzor.js.gz +0 -0
- package/app/dist/assets/host-mutations-CAtir6jv.js.br +0 -0
- package/app/dist/assets/host-mutations-CAtir6jv.js.gz +0 -0
- package/app/dist/assets/icon-extended-D2fR2GTF.js.br +0 -0
- package/app/dist/assets/icon-extended-D2fR2GTF.js.gz +0 -0
- package/app/dist/assets/image-lightbox-Dhmri6WK.js.br +0 -0
- package/app/dist/assets/image-lightbox-Dhmri6WK.js.gz +0 -0
- package/app/dist/assets/index-5EQKiTkW.css +0 -2
- package/app/dist/assets/index-5EQKiTkW.css.br +0 -0
- package/app/dist/assets/index-5EQKiTkW.css.gz +0 -0
- package/app/dist/assets/index-CfvM6UcU.js.br +0 -0
- package/app/dist/assets/index-CfvM6UcU.js.gz +0 -0
- package/app/dist/assets/inline-rename-editor-Bg8SXoZ3.js.br +0 -0
- package/app/dist/assets/inline-rename-editor-Bg8SXoZ3.js.gz +0 -0
- package/app/dist/assets/launcherRow-CqPaUYWn.js.br +0 -0
- package/app/dist/assets/launcherRow-CqPaUYWn.js.gz +0 -0
- package/app/dist/assets/localhost-link-rewrite-description-DP-bXSL8.js.br +0 -0
- package/app/dist/assets/localhost-link-rewrite-description-DP-bXSL8.js.gz +0 -0
- package/app/dist/assets/markdown-html-BU8qsXmq.js.br +0 -0
- package/app/dist/assets/markdown-html-BU8qsXmq.js.gz +0 -0
- package/app/dist/assets/markdown-local-file-link-D-MSnVWD.js.br +0 -0
- package/app/dist/assets/markdown-local-file-link-D-MSnVWD.js.gz +0 -0
- package/app/dist/assets/markdown-preview-BLL1QuNp.js.br +0 -0
- package/app/dist/assets/markdown-preview-BLL1QuNp.js.gz +0 -0
- package/app/dist/assets/markdown-prompt-mentions-B5LVmCbO.js.br +0 -0
- package/app/dist/assets/markdown-prompt-mentions-B5LVmCbO.js.gz +0 -0
- package/app/dist/assets/model-load-error-message-Dmp1hUNg.js.br +0 -0
- package/app/dist/assets/model-load-error-message-Dmp1hUNg.js.gz +0 -0
- package/app/dist/assets/onboarding-telemetry-BSt5c7Sg.js +0 -1
- package/app/dist/assets/open-in-editor-button-D0wnpT6x.js.br +0 -0
- package/app/dist/assets/open-in-editor-button-D0wnpT6x.js.gz +0 -0
- package/app/dist/assets/page-shell-CgSxnF9m.js.br +0 -0
- package/app/dist/assets/page-shell-CgSxnF9m.js.gz +0 -0
- package/app/dist/assets/pierre-worker-pool-CHGWu76e.js.br +0 -0
- package/app/dist/assets/pierre-worker-pool-CHGWu76e.js.gz +0 -0
- package/app/dist/assets/plugin-detail-navigation-DuR8_JCx.js.br +0 -0
- package/app/dist/assets/plugin-detail-navigation-DuR8_JCx.js.gz +0 -0
- package/app/dist/assets/plugin-frontend-D5ijLuKC.js.br +0 -0
- package/app/dist/assets/plugin-frontend-D5ijLuKC.js.gz +0 -0
- package/app/dist/assets/plugin-ui-Dpa8hcuk.js.br +0 -0
- package/app/dist/assets/plugin-ui-Dpa8hcuk.js.gz +0 -0
- package/app/dist/assets/queued-editor-typeahead-layout-Czaq8Cl9.js.br +0 -0
- package/app/dist/assets/queued-editor-typeahead-layout-Czaq8Cl9.js.gz +0 -0
- package/app/dist/assets/queued-messages-layout-B5xwiued.js.br +0 -0
- package/app/dist/assets/queued-messages-layout-B5xwiued.js.gz +0 -0
- package/app/dist/assets/resource-list-BKpxiO2e.js.br +0 -0
- package/app/dist/assets/resource-list-BKpxiO2e.js.gz +0 -0
- package/app/dist/assets/root-compose-create-preference-BeAvwSHy.js +0 -1
- package/app/dist/assets/settings-nav-C9-jh_HN.js.br +0 -0
- package/app/dist/assets/settings-nav-C9-jh_HN.js.gz +0 -0
- package/app/dist/assets/settings-sections-BMr_XU5l.js.br +0 -0
- package/app/dist/assets/settings-sections-BMr_XU5l.js.gz +0 -0
- package/app/dist/assets/sidebarTouchSensor-DG_A1RmT.js.br +0 -0
- package/app/dist/assets/sidebarTouchSensor-DG_A1RmT.js.gz +0 -0
- package/app/dist/assets/switch-BjJ8825r.js.br +0 -0
- package/app/dist/assets/switch-BjJ8825r.js.gz +0 -0
- package/app/dist/assets/thread-event-parser-ma5CGP66.js.br +0 -0
- package/app/dist/assets/thread-event-parser-ma5CGP66.js.gz +0 -0
- package/app/dist/assets/thread-panel-queries-BXeOzk_6.js.br +0 -0
- package/app/dist/assets/thread-panel-queries-BXeOzk_6.js.gz +0 -0
- package/app/dist/assets/thread-runtime-mutations-DmKkyel0.js.br +0 -0
- package/app/dist/assets/thread-runtime-mutations-DmKkyel0.js.gz +0 -0
- package/app/dist/assets/thread-terminal-queries-AFVZ5K6p.js.br +0 -0
- package/app/dist/assets/thread-terminal-queries-AFVZ5K6p.js.gz +0 -0
- package/app/dist/assets/threadRecentItems-DXsdcpBk.js.br +0 -0
- package/app/dist/assets/threadRecentItems-DXsdcpBk.js.gz +0 -0
- package/app/dist/assets/threadWorkspaceOpenPath-DwKd-s_5.js.br +0 -0
- package/app/dist/assets/threadWorkspaceOpenPath-DwKd-s_5.js.gz +0 -0
- package/app/dist/assets/title-bar-scroll-fade-Dw_BPLyx.js.br +0 -0
- package/app/dist/assets/title-bar-scroll-fade-Dw_BPLyx.js.gz +0 -0
- package/app/dist/assets/use-hover-popover-DzrAfLzd.js.br +0 -0
- package/app/dist/assets/use-hover-popover-DzrAfLzd.js.gz +0 -0
- package/app/dist/assets/useElementWidth-Kv5FX-9C.js.br +0 -0
- package/app/dist/assets/useElementWidth-Kv5FX-9C.js.gz +0 -0
- package/app/dist/assets/useLocalOpenTargets-B7rqz64L.js.br +0 -0
- package/app/dist/assets/useLocalOpenTargets-B7rqz64L.js.gz +0 -0
- package/app/dist/assets/usePanelResizeSnap-Dizp45Ab.js.br +0 -0
- package/app/dist/assets/usePanelResizeSnap-Dizp45Ab.js.gz +0 -0
- package/app/dist/assets/usePanelTerminals-ByzphxXd.js.br +0 -0
- package/app/dist/assets/usePanelTerminals-ByzphxXd.js.gz +0 -0
- package/app/dist/assets/usePathSuggestions-Bd5UhdCh.js.br +0 -0
- package/app/dist/assets/usePathSuggestions-Bd5UhdCh.js.gz +0 -0
- package/app/dist/assets/useResolvedLiveFileTarget-x5Gd-Gzx.js.br +0 -0
- package/app/dist/assets/useResolvedLiveFileTarget-x5Gd-Gzx.js.gz +0 -0
- package/app/dist/assets/useThreadTerminalController-CUnfO0Da.js.br +0 -0
- package/app/dist/assets/useThreadTerminalController-CUnfO0Da.js.gz +0 -0
- package/app/dist/assets/workspace-change-summary-CLNpSq_E.js.br +0 -0
- package/app/dist/assets/workspace-change-summary-CLNpSq_E.js.gz +0 -0
- package/app/dist/assets/workspace-checkout-display-Aad1Wxi4.js.br +0 -0
- package/app/dist/assets/workspace-checkout-display-Aad1Wxi4.js.gz +0 -0
- package/host-daemon/dist/moonlet-chunks/chunk-4XWRV5U3.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var $e=globalThis.__bbPluginRuntime;if($e==null||$e.react==null)throw new Error('Cannot load "react": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Re=$e.react,ta="default"in Re?Re.default:Re,{Activity:na,Children:aa,Component:ra,Fragment:Q,Profiler:ia,PureComponent:sa,StrictMode:oa,Suspense:la,act:da,cache:ca,cacheSignal:pa,captureOwnerStack:ua,cloneElement:ma,createContext:lt,createElement:Ve,createRef:ga,forwardRef:Ee,isValidElement:ha,lazy:fa,memo:ba,startTransition:xa,unstable_useCacheRefresh:va,use:wa,useActionState:Pa,useCallback:re,useContext:Me,useDebugValue:ya,useDeferredValue:Sa,useEffect:O,useEffectEvent:ka,useId:Ca,useImperativeHandle:Na,useInsertionEffect:Ra,useLayoutEffect:dt,useMemo:qe,useOptimistic:Ea,useReducer:Ma,useRef:_,useState:y,useSyncExternalStore:_a,useTransition:Aa,version:Ta}=Re;var Ke=globalThis.__bbPluginRuntime;if(Ke==null||Ke.sharedUiIcon==null)throw new Error('Cannot load "@moonlet/shared-ui/icon": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var _e=Ke.sharedUiIcon,Ia="default"in _e?_e.default:_e,{ICON_NAMES:La,Icon:ct,isBuiltinIconName:Oa,preloadExtendedIcons:Ba}=_e;var Ye=globalThis.__bbPluginRuntime;if(Ye==null||Ye.clsx==null)throw new Error('Cannot load "clsx": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ae=Ye.clsx,Ha="default"in Ae?Ae.default:Ae,{clsx:pt}=Ae;var Xe=globalThis.__bbPluginRuntime;if(Xe==null||Xe.tailwindMerge==null)throw new Error('Cannot load "tailwind-merge": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Te=Xe.tailwindMerge,za="default"in Te?Te.default:Te,{createTailwindMerge:Wa,extendTailwindMerge:Ua,fromTheme:Ga,getDefaultConfig:ja,mergeConfigs:$a,twJoin:Va,twMerge:ut,validators:qa}=Te;function d(...t){return ut(pt(t))}var Qe=globalThis.__bbPluginRuntime;if(Qe==null||Qe.jsxRuntime==null)throw new Error('Cannot load "react/jsx-runtime": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ie=Qe.jsxRuntime,Za="default"in Ie?Ie.default:Ie,{Fragment:Y,jsx:e,jsxs:n}=Ie;function un({url:t,className:a,style:i}){let r=`url(${JSON.stringify(t)})`;return e("span",{"aria-hidden":"true","data-plugin-icon-asset":t,"data-icon-root":"",className:d("inline-block size-4 shrink-0",a),style:{...i,backgroundColor:"currentColor",maskImage:r,maskPosition:"center",maskRepeat:"no-repeat",maskSize:"contain",WebkitMaskImage:r,WebkitMaskPosition:"center",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain"}})}function mt({icon:t,iconUrl:a,iconTinted:i,className:r}){let[s,o]=y(null);return a!==null&&i?e(un,{url:a,className:r}):a===null||a===s?e(ct,{name:t??"Zap",className:r,"aria-hidden":!0}):e("img",{src:a,alt:"",className:d("rounded-sm object-contain",r),onError:()=>o(a)})}var Ze=globalThis.__bbPluginRuntime;if(Ze==null||Ze.pluginSdkApp==null)throw new Error('Cannot load "@get-bb/plugin-sdk/app": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Le=Ze.pluginSdkApp,ir="default"in Le?Le.default:Le,{Markdown:sr,ThreadChat:or,ThreadTitle:lr,UrlLink:dr,definePluginApp:gt,experimental_BranchPicker:cr,experimental_ComposerRoot:pr,experimental_DetailRow:ur,experimental_Diff:mr,experimental_FailedVoiceRecordings:gr,experimental_FileLink:hr,experimental_Icon:ht,experimental_ImageLightbox:fr,experimental_InfoList:br,experimental_InfoListRow:xr,experimental_InfoSection:vr,experimental_NewThreadComposer:wr,experimental_PermissionModePicker:Pr,experimental_PluginIcon:yr,experimental_PluginRpcCallError:Sr,experimental_PromptMentionIcon:kr,experimental_ProviderIcon:Cr,experimental_ProviderModelPicker:Nr,experimental_SettingsRow:Rr,experimental_SettingsSection:Er,experimental_ShortcutHint:Mr,experimental_SidebarNavigationIcon:_r,experimental_SourceCode:Ar,experimental_THREAD_ACTION_GROUPS:Tr,experimental_THREAD_CONTEXT_SEGMENT_GROUPS:Ir,experimental_THREAD_INFO_ROW_GROUPS:Lr,experimental_THREAD_INFO_SECTION_GROUPS:Or,experimental_ThreadActionsContextMenu:Br,experimental_ThreadActionsMenu:Dr,experimental_ThreadStatusGlyph:Hr,experimental_ThreadTitleText:Fr,experimental_VoiceInputButton:zr,experimental_VoiceInputTextarea:Wr,experimental_VoiceRecordingBar:Ur,experimental_copyToClipboard:ft,experimental_describePromptMention:Gr,experimental_promptMentionClipboardAttributes:jr,experimental_readPromptMentionClipboard:$r,experimental_saveFile:Vr,experimental_useAppPanel:qr,experimental_useArchiveEnvironmentThreads:Kr,experimental_useBranches:Yr,experimental_useCheckoutState:Xr,experimental_useCodeTheme:Qr,experimental_useComposerCommandSearch:Zr,experimental_useComposerContributions:Jr,experimental_useComposerMentionSearch:ei,experimental_useComposerRenderer:ti,experimental_useExperiment:ni,experimental_useFixedTabTarget:ai,experimental_usePluginId:ri,experimental_useProviders:ii,experimental_useQuestionFormHost:si,experimental_useRpcKeyedQuery:oi,experimental_useRpcMutation:li,experimental_useRpcQuery:di,experimental_useRpcRefresh:ci,experimental_useSidebar:pi,experimental_useSidebarNavigation:ui,experimental_useSidebarNavigationSplit:mi,experimental_useSidebarThreadActions:gi,experimental_useSidebarThreadSplit:hi,experimental_useSidebarThreads:fi,experimental_useThreadActionRegistrations:bi,experimental_useThreadActions:xi,experimental_useThreadTitleDisplayText:vi,internal_DO_NOT_USE_Outlet:wi,internal_DO_NOT_USE_useOutletFilled:Pi,useBbContext:yi,useBbNavigate:bt,useComposer:Si,useComposerView:ki,useComposers:Ci,useEnvironmentProviders:Ni,useRealtime:Ri,useRealtimeConnectionState:Ei,useRpc:Mi,useSdk:xt,useSettings:_i,useSidebarSplitLayout:Ai,useSidebarThreadDraft:Ti,useSidebarThreadDraftIds:Ii,useSidebarThreadRowStatus:Li,useSidebarThreadRowStatuses:Oi,useSidebarThreadShortcut:Bi,experimental_useSidebarThreadPullRequest:Di}=Le;var mn={"&":"&","<":"<",">":">",'"':""","'":"'"};function ue(t){return t.replace(/[&<>"']/gu,a=>mn[a]??a)}function vt(t){return t.fixtureKind==="spatial"?"scale-together":"reflow"}var Oe=[{id:"app-shell",title:"The Moonlet app window",fixtureKind:"spatial",blurb:"The main Moonlet window, containing the sidebar, the conversation, and the side panel. A plugin can add rows, controls, panel tabs, and message content to the numbered regions.",surfaces:[{id:"sidebar-navigation",title:"Sidebar navigation",summary:"Replace the sidebar's navigation, as a rail or as rows above the thread list. With this, a plugin can:",bullets:["Arrange New thread, Search, Plugins, Skills, and plugin pages in any layout","Choose the rail or list placement, and get Moonlet's layout around it","Keep saved order and badges; Cmd/Ctrl-click splits supported pages or opens Plugins/Skills in tabs","Add controls to the header row beside the sidebar toggle"],apiSymbols:["ExperimentalSidebarNavigationRegistration","ExperimentalSidebarNavigationPlacement","ExperimentalSidebarNavigationProps","experimental_useSidebarNavigation","ExperimentalSidebarNavigationState","ExperimentalSidebarNavigationItem","ExperimentalSidebarNavigationAction","ExperimentalSidebarNavigationActions","ExperimentalSidebarNavigationIcon","experimental_SidebarNavigationIcon","ExperimentalSidebarNavigationIconProps","ExperimentalSidebarNavigationShortcut","ExperimentalSidebarNavigationActivationOptions","ExperimentalSidebarNavigationTarget","experimental_useSidebarNavigationSplit","ExperimentalSidebarNavigationSplit","ExperimentalSidebarNavigationSplitOptions","ExperimentalSidebarHeaderProps"],experimental:!0},{id:"nav-panel",title:"Full-page panels",summary:"Add a navigation rail destination that opens a full page your plugin renders. With this, a plugin can:",bullets:["Build dashboards, boards or inboxes with a custom sidebar on their own routes","Give the page a shareable URL, pane breadcrumbs and a focused window title","Add fixed tabs beside Browser and Terminal, and open terminals it started in any folder","Show a live badge or hide its navigation entry while keeping the page reachable by URL"],apiSymbols:["PluginNavPanelRegistration","PluginNavPanelRegistration.experimental_sidebar","PluginNavPanelRegistration.experimental_useNavigationVisible","PluginNavPanelProps","ExperimentalBadge","ExperimentalBadgeTone","ExperimentalFixedTabTargetContract","experimental_useAppPanel","ExperimentalAppPanel","ExperimentalOpenFixedTabOptions","experimental_useFixedTabTarget","ExperimentalFixedTabTargetState","PluginNavPanelRegistration.experimental_usePageTitle","ExperimentalPageTitle","ExperimentalPageBreadcrumb","useBbContext","useBbNavigate","BbNavigate.toPluginPanel","BbNavigate.experimental_openTerminal","internal_DO_NOT_USE_Outlet","InternalDoNotUseOutletHostProps","internal_DO_NOT_USE_useOutletFilled","PluginAppSlots.internal_DO_NOT_USE_outlet","InternalDoNotUseOutletRegistration","InternalDoNotUseOutletTarget","InternalDoNotUseOutletProps"],firstParty:["Automations","Docs","GitHub","Tasks","Theme Preview"]},{id:"thread-row-status",title:"Thread row status",summary:"Add a small status icon to a thread's row in the sidebar. With this, a plugin can:",bullets:["Show that the plugin is working on a thread, with a shimmering icon","Settle the icon to succeeded or failed when the work ends","Set it from an [app-wide script](content-scripts), which Moonlet cleans up after"],apiSymbols:["PluginComposerThreadRowStatus","PluginContentScriptContext"],experimental:!0},{id:"thread-list",title:"The thread list",summary:"Replace the sidebar's thread list with one your plugin renders. With this, a plugin can:",bullets:["Group, sort, and draw every row your own way","Read live threads, sections, projects, and run status","Use optimistic SDK writes and Moonlet's move, pin, rename, restore, archive and split actions","Keep Moonlet's New thread button, search, and footer around it"],apiSymbols:["PluginThreadListRegistration","PluginThreadListProps","experimental_useSidebarThreads","PluginSidebarThreadsState.experimental_archived","PluginSidebarThreadsState.experimental_hosts","PluginSidebarThreadsState","PluginSidebarThread","PluginSidebarSection","experimental_useArchiveEnvironmentThreads","BbNavigate.toThread","BbNavigate.toCompose","experimental_useSidebarThreadSplit","PluginSidebarThreadSplit","PluginSidebarThreadSplitOptions","experimental_useExperiment","useSidebarThreadDraft","PluginSidebarThreadDraftState","useSidebarThreadDraftIds","useSidebarThreadRowStatus","useSidebarThreadRowStatuses","PluginSidebarThreadRowStatus","useSidebarSplitLayout","PluginSidebarSplitLayout","useSidebarThreadShortcut","PluginSidebarThreadShortcut","ThreadTitle","PluginThreadTitleProps","experimental_ThreadStatusGlyph","PluginThreadStatusGlyphProps","useEnvironmentProviders","PluginEnvironmentProvidersState","useSdk","PluginBrowserBbSdk","experimental_usePluginId"],firstParty:["Thread list"],experimental:!0},{id:"sidebar-footer",title:"Sidebar footer items",summary:"Add an icon to the bottom of Moonlet's sidebar. With this, a plugin can:",bullets:["Run an action, or open a small panel above the footer","Show quick status, such as usage limits, without leaving the thread","Follow the user's order and visibility choices in Appearance"],apiSymbols:["ExperimentalSidebarFooter","ExperimentalSidebarFooterItemBase","ExperimentalSidebarFooterItemRegistration","ExperimentalSidebarFooterActionRegistration","ExperimentalSidebarFooterActionContext","ExperimentalSidebarFooterDisclosureRegistration","ExperimentalSidebarFooterDisclosureProps","ExperimentalSidebarFooterDisclosureController","PluginSidebarFooterActionRegistration","PluginSidebarFooterActionProps"],firstParty:["Provider usage"],experimental:!0},{id:"thread-header",title:"Thread header controls",summary:"Add a control to the header of an open thread. With this, a plugin can:",bullets:["Show live state for the thread on screen, not just a static button","Sit in the same row as Moonlet's own header controls"],apiSymbols:["PluginThreadHeaderActionRegistration","PluginThreadHeaderActionProps"],experimental:!0},{id:"thread-actions",title:"Thread menu actions",summary:"Add an action to every thread menu and the sidebar row's quick actions. With this, a plugin can:",bullets:["Appear in the header menu, the row menu, the right-click menu, and the long-press drawer","Offer a list of choices that Moonlet renders as a submenu, a drawer step, or a popover","Read app-wide data once and derive each thread's entry from it","Render Moonlet's own thread menus in a replacement thread list"],apiSymbols:["PluginThreadActionRegistration","PluginThreadActionDataInput","PluginThreadActionItemInput","PluginThreadActionTarget","PluginThreadAction","PluginThreadActionChoices","PluginThreadActionChoice","PluginThreadActionEntry","experimental_useThreadActions","experimental_useThreadActionRegistrations","experimental_ThreadActionsMenu","experimental_ThreadActionsContextMenu","experimental_THREAD_ACTION_GROUPS"],firstParty:["Push notifications","Thread list"],experimental:!0},{id:"timeline-renderers",title:"Timeline entry content",summary:"Add rich detail to the timeline entries your plugin creates. With this, a plugin can:",bullets:["Draw custom content under each entry while Moonlet keeps its header and controls","Fall back to Moonlet's default view if the plugin is off or crashes"],apiSymbols:["PluginTimelineRendererRegistration","PluginTimelineRendererProps"],experimental:!0},{id:"message-directives",title:"Rich message embeds",summary:"Add live components to an agent's reply. With this, a plugin can:",bullets:["Let an agent write `::name` to place your component in its message","Show charts, task lists, or previews inline in the conversation","Open workspace files when someone clicks the embed"],apiSymbols:["PluginMessageDirectiveRegistration","PluginMessageDirectiveProps","PluginMessageDirectiveOpenWorkspaceFile"],firstParty:["Browser Automation","Docs","Inline visualizations","Tasks","Workflows"]},{id:"code-fence-renderers",title:"Inline code-block renderers",summary:"Replace fenced code blocks in an agent's reply with live UI. With this, a plugin can:",bullets:["Let an agent write a fenced ```ui block that your component renders live as the reply streams","Keep one component, with its state, per block for the whole reply","Tell a block that is still streaming from one that closed or was cut off","Fall back to Moonlet's code block when the plugin is off or a block's component throws"],apiSymbols:["ExperimentalCodeFenceRendererRegistration","ExperimentalCodeFenceRendererProps","ExperimentalCodeFenceStatus"],experimental:!0},{id:"message-actions",title:"Message actions",summary:"Add an action to messages in a thread. With this, a plugin can:",bullets:["Appear under messages on hover, or on text selected in a reply, in the main timeline only","Receive the message with the sequence its link uses, or the selected text","Open a [side-panel tab](thread-panel) or write into the composer with the result"],apiSymbols:["PluginMessageActionRegistration","PluginMessageActionContext","ThreadChatMessageReference"],firstParty:["Side chat"]},{id:"pending-interaction",title:"In-thread forms",summary:"Add a form that asks the person a question and returns the answer to the agent. With this, a plugin can:",bullets:["Replace the prompt box with your form, even after the turn has ended","Return the answer or cancellation to the agent and keep a record in the thread","Show Moonlet's answer shortcuts and respond when the person presses one","Dictate editable answers and wait for voice input before navigating or submitting"],apiSymbols:["PluginUi","PluginInteractionRequest","PluginInteractionDescription","PluginRowPresentation","PluginPendingInteractionRegistration","experimental_useQuestionFormHost","PluginPendingInteractionProps","PluginPendingInteractionView"],firstParty:["Ask User Question","Pi provider","Secrets"]},{id:"thread-info",title:"Thread Info rows and sections",summary:"Add a row to a thread's Info tab details, or a section below them. With this, a plugin can:",bullets:["Show plugin state for the thread beside Project, Environment, Branch, and Pull request",`List related items in a section with Moonlet's heading, count, collapse, and "N more" list`,"Sit at any position among Moonlet's own rows and sections, which use the same slots"],apiSymbols:["ExperimentalThreadInfoRowRegistration","ExperimentalThreadInfoSectionRegistration","ExperimentalThreadInfoProps","experimental_THREAD_INFO_ROW_GROUPS","experimental_THREAD_INFO_SECTION_GROUPS","experimental_InfoSection","ExperimentalInfoSectionProps","experimental_DetailRow","ExperimentalDetailRowProps","experimental_InfoList","ExperimentalInfoListProps","experimental_InfoListRow","ExperimentalInfoListRowProps"],firstParty:["Automations","GitHub PR Status"],experimental:!0},{id:"code-renderers",title:"Code & diff renderers",summary:"Replace Moonlet's code or diff viewer everywhere it appears. With this, a plugin can:",bullets:["Restyle file previews, timeline diffs, and plugin pages in one place","Replace code and diffs independently","Hand any render back to Moonlet, which also takes over if the plugin crashes"],apiSymbols:["PluginSourceCodeRendererRegistration","PluginSourceCodeRendererProps","PluginDiffRendererRegistration","PluginDiffRendererProps"],experimental:!0},{id:"browser-toolbar",title:"Browser toolbar controls",summary:"Add a control to the toolbar of each Browser tab. With this, a plugin can:",bullets:["Act on the page the person is looking at, with its URL and thread","Run scripts in the page on desktop and get results back"],apiSymbols:["ExperimentalPluginBrowserToolbarActionRegistration","ExperimentalPluginBrowserToolbarActionProps","ExperimentalPluginBrowserPage","ExperimentalPluginBrowserPageEvaluateOptions","ExperimentalPluginBrowserPageWorld"],firstParty:["Agent Annotations"],experimental:!0},{id:"thread-panel",title:"Thread side-panel tabs",summary:"Add a tab to the side panel next to a thread. With this, a plugin can:",bullets:["Show closable or pinned plugin tabs alongside the conversation","Know which thread the tab belongs to and hide pinned tabs when they do not apply","Use one tab registration for thread and navigation-page contexts; core Info and Diff use it too","Open from a [message action](message-actions), the side panel's + button, or plugin code"],reference:["Register tabs with app.slots.experimental_tab({ id, title, icon, tooltip?, layout?, context, availability, useVisible?, component }). context is { kind: 'thread' } or { kind: 'nav-panel', panelId }; the component receives threadId or subPath. Core Info and Diff use thread + fixed registrations. tooltip defaults to title; layout is padded (default) or flush.","availability: 'fixed' creates one pinned, non-closable destination per owner and tab id. availability: 'action' adds a launcher for closable instances; only actions accept run, default params and persisted instance params. Identical params focus the existing instance; different params open siblings. useVisible controls the fixed tab or launcher, never existing action instances. Hooks and components run in plugin scope with crash isolation.","Open through experimental_useAppPanel().experimental_openTab({ surface: { kind: 'current' }, tab: { id, context, availability }, params?, title?, target? }). Actions accept JSON params and an optional title. Navigation-page fixed tabs may declare experimental_target and receive validated session targets through experimental_useFixedTabTarget; thread fixed tabs reject targets. Unknown, hidden or wrong-context destinations return false. Existing openFixedTab, openThreadPanel and action openPanel calls delegate to the same opening path.","Identity and order survive hiding, disabling and reload. Thread fixed tabs persist as { id, kind: 'plugin-fixed', pluginId, tabId }; navigation-page fixed tabs and action instances keep their existing storage identities. SDK threads.tabs.get/update and CLI moonlet thread tabs show/set support thread tab entries with revision checks. Selection stays client-local. See the authoring skill's Tab API migration section for upgrading source registrations."],apiSymbols:["PluginAppSlots.experimental_tab","experimental_useAppPanel","ExperimentalTabRegistration","ExperimentalTabRegistration.tooltip","ExperimentalTabReference","ExperimentalTabContext","ExperimentalAppPanel.experimental_openTab","ExperimentalTabOpenOptions","ExperimentalTabTargetReference","ExperimentalThreadActionTabProps","BbNavigate.openThreadPanel","ExperimentalThreadTabActionContext"],firstParty:["Docs","GitHub","Side chat","Tasks","Workflows"]},{id:"file-opener",title:"File viewers & editors",summary:"Add a viewer or editor for the file types you choose. With this, a plugin can:",bullets:["Open files such as `.csv` or `.excalidraw` in your own view","Use lowercase alphanumeric extension names with single `_` or `-` separators between segments","Jump to the linked lines when someone opens a file reference","Hand individual files back to Moonlet's built-in preview"],apiSymbols:["PluginFileOpenerRegistration","PluginFileOpenerProps","PluginFileOpenerSource"],firstParty:["Docs","File Editor","PDF preview"]},{id:"app-overlay",title:"App-wide overlays",summary:"Add a floating widget that stays on screen across Moonlet. With this, a plugin can:",bullets:["Show persistent UI, such as a timer or a status badge, on every page","Control its own position and visibility","Fail on its own without affecting the rest of the app"],apiSymbols:["ExperimentalAppOverlayRegistration","ExperimentalAppOverlayProps"],firstParty:["Browser Automation","Push notifications"],experimental:!0},{id:"content-scripts",title:"App-wide scripts",summary:"Run code in every Moonlet window, without a UI of its own. With this, a plugin can:",bullets:["Add app-wide behavior, such as a keyboard shortcut","Set a [thread row status](thread-row-status) on any thread","Clean up automatically when the window reloads"],apiSymbols:["PluginContentScriptRegistration","PluginContentScriptContext"],firstParty:["Provider usage"]}]},{id:"command-palette",title:"Command palette",fixtureKind:"spatial",blurb:"Moonlet's searchable command menu. A plugin can add actions that match, rank, and run alongside Moonlet's own commands.",surfaces:[{id:"command-palette-actions",title:"Command palette actions",summary:"Add commands to Moonlet's command palette. With this, a plugin can:",bullets:["Run plugin actions from the palette or a keyboard shortcut","Suggest a default shortcut that people can rebind","Show a command only when the current thread or project fits","Open a plugin panel for the focused thread or New thread screen"],apiSymbols:["PluginAppBuilder.commands","PluginAppCommands","PluginCommandRegistration","PluginCommandContext","PluginCommandShortcut"],firstParty:["File Editor"]}]},{id:"composer",title:"The composer",fixtureKind:"spatial",blurb:"The prompt box used to start a thread and to reply inside one. A plugin can replace the box, add banners, menu entries, and action buttons to it, answer mention searches, highlight the draft prompt, and supply the agent that runs the message.",surfaces:[{id:"composer-replacement",title:"The composer box",summary:"Replace the prompt box with one your plugin draws, everywhere Moonlet shows a composer. With this, a plugin can:",bullets:["Bring its own editor, from a plain textarea to a code editor","Search Moonlet's @-mentions and commands; keep its pills, attachments, history and voice input","Place Moonlet's model, mode and handoff controls where it wants them","Keep other plugins' actions, popups and menu entries working inside it"],apiSymbols:["ExperimentalComposerRegistration","ExperimentalComposerProps","experimental_useComposerRenderer","ExperimentalComposerRendererApi","ExperimentalComposerInput","ExperimentalComposerView","experimental_ComposerRoot","ExperimentalComposerRootProps","ExperimentalComposerEditor","ExperimentalComposerEditorState","ExperimentalComposerEditorVoice","experimental_useComposerContributions","ExperimentalComposerContributions","experimental_useComposerMentionSearch","ExperimentalComposerMentionSearch","ExperimentalComposerMentionSuggestion","experimental_useComposerCommandSearch","ExperimentalComposerCommandSearch","ExperimentalComposerCommandSuggestionGroup","experimental_describePromptMention","experimental_promptMentionClipboardAttributes","experimental_readPromptMentionClipboard","experimental_PromptMentionIcon","experimental_VoiceInputButton","experimental_VoiceRecordingBar"],firstParty:["Composer"],experimental:!0},{id:"composer-banners",title:"Banners",summary:"Add a banner above the prompt box. With this, a plugin can:",bullets:["Warn or inform before someone sends, such as a rate limit or a retry","Show only on new threads, open threads, or queued messages","Add a segment to an open thread's context row, with details below it"],apiSymbols:["ComposerCustomization","PluginComposerScope","PluginAppSlots.experimental_threadContextSegment","experimental_THREAD_CONTEXT_SEGMENT_GROUPS","ExperimentalThreadContextSegmentRegistration","ExperimentalThreadContextSegmentProps","ExperimentalThreadContextSegmentInput","ExperimentalThreadContextSegmentReference","ExperimentalThreadEnvironment"],firstParty:["Send later","Workflows","GitHub PR Status"]},{id:"composer-state",title:"Draft prompt state & locking",summary:"Use the draft prompt from plugin code. With this, a plugin can:",bullets:["Read the draft's text, @-mentions, and attachments","Insert or rewrite text, @-mentions, and thread pills in one step","Lock the prompt box while the plugin works, then release it","Write into any prompt box on screen from a panel or page"],apiSymbols:["useComposer","useComposers","PluginComposerApi","ComposerDraft","ComposerDraftReplacement","ComposerAttachment","PluginComposerApi.replace","ComposerDraftSnapshot","PluginComposerApi.insert","ComposerMention"],firstParty:["Agent Annotations","Docs","Send later","Workflows"]},{id:"mention-provider",title:"Mentions",summary:"Add items to the menu that opens when someone types @ or another trigger. With this, a plugin can:",bullets:["Search the plugin's own data as the person types","Claim its own trigger, such as # or $","Turn a pick into a chip whose content reaches the agent on send"],apiSymbols:["PluginMentionProviderRegistration","PluginMentionSearchContext","PluginMentionItem"],firstParty:["Agent Annotations","Docs","GitHub","Tasks"]},{id:"composer-rich-text",title:"Draft prompt highlighting",summary:"Add highlighting to text as someone types a prompt. With this, a plugin can:",bullets:["Highlight matches such as ticket numbers or TODOs without changing the text","Respond after a message is sent or queued"],apiSymbols:["ComposerRichTextSpec","PluginComposerApi.replace","PluginComposerApi.onSubmitted"]},{id:"composer-plus-menu",title:"The + and send menus",summary:"Add rows to the + menu or the menu beside the send button. With this, a plugin can:",bullets:["Offer actions such as templates from the prompt box","Send the draft later, keeping its attachments and mentions","Attach plugin data to a send for its [dispatch hook](dispatch-hook)"],apiSymbols:["ComposerPlusMenuItem","ComposerSendMenuItem","ComposerSubmitOptions"],firstParty:["Automations","BB guide","Drafts","Send later"]},{id:"provider-picker",title:"Agent providers",summary:"Provide an agent people can pick in Moonlet's model picker. With this, a plugin can:",bullets:["Bring any CLI agent into Moonlet, with its own models and icon","Run every thread started with it through a bridge the plugin ships","Report context usage, service tiers, and install status","Stop provider startup when required environment protection is unavailable or conflicts"],reference:["Use providers.experimental_contributeEnv(providerId, resolver, { experimental_required: true }) when an unavailable or conflicting contribution must stop provider environment construction.","Empty results may exclude hosts outside the resolver scope. This does not attest native isolation, replace authorization or retire already running provider processes."],apiSymbols:["contextSnapshotSchema","ContextSnapshot","ContextCategory","ContextEntry","PluginProviderDeclaration","AvailableModel","ModelServiceTier","providerInstallationStatusParamsSchema","ProviderInstallationStatusParams","PluginProviderIconRegistration","experimental_useProviders","PluginProvidersState","ExperimentalPluginProviderEnvContext","ExperimentalPluginProviderEnvEntry","PluginProviders.experimental_contributeEnv","ExperimentalPluginProviderEnvHealthContext","ExperimentalPluginProviderEnvHealth","experimental_spawnPortableProcess","experimental_killPortableProcess","PluginProviders"],firstParty:["ACP providers","Claude Code provider","Codex provider","Pi provider"],experimental:!0},{id:"composer-actions",title:"Inline actions",summary:"Add a button inside the prompt box, beside voice and send. With this, a plugin can:",bullets:["Rewrite the draft, for example to rephrase it or insert a template","Open a popup anchored to the prompt box","Run from a keyboard shortcut people can rebind"],apiSymbols:["PluginComposerApi","PluginComposerApi.insert","ComposerInsertPart","ComposerInsertOptions","ComposerCustomization.experimental_popups","ExperimentalComposerPopupRegistration","PluginComposerApi.experimental_openPopup","PluginComposerApi.experimental_closePopup","PluginAppComposer.experimental_registerCommand","ExperimentalComposerCommandRegistration","PluginComposerApi.setSelection","PluginComposerApi.selection","ComposerSelection"]}]},{id:"home",title:"Home page",fixtureKind:"spatial",blurb:"The screen Moonlet opens on, holding the new-thread composer and a side panel. A plugin can add a section below the composer, and an action in that panel that opens its own tab.",surfaces:[{id:"home-page",title:"The home page",summary:"Replace the home page with one of your plugin's pages. With this, a plugin can:",bullets:["Open at its own page instead of Moonlet's new-thread page","Leave New thread a click away, at /new","Let the owner pin it, or Moonlet's page, in Appearance","Open or close the sidebar, show or hide the rail's names, and send the user home from any page"],apiSymbols:["ExperimentalPluginHomeRegistration","experimental_useSidebar","ExperimentalSidebarControl"],experimental:!0},{id:"homepage-section",title:"Home-screen sections",summary:"Add a section to Moonlet's home page. With this, a plugin can:",bullets:["Show shortcuts, pinned work, or recent activity before any thread exists","Span the full width below the composer on desktop"],apiSymbols:["PluginHomepageSectionRegistration","PluginHomepageSectionProps"]},{id:"new-thread-panel",title:"New-thread side panel",summary:"Add a side-panel tab to the new-thread screen. With this, a plugin can:",bullets:["Help people set up work while they write the first prompt","Use the project selected in the prompt box"],apiSymbols:["PluginNewThreadPanelActionRegistration","PluginNewThreadPanelProps"],experimental:!0}]},{id:"settings",title:"Plugin settings page",fixtureKind:"spatial",blurb:"The settings page Moonlet creates for every installed plugin. A plugin can declare fields for Moonlet to render and add its own section below them.",surfaces:[{id:"declarative-settings",title:"Settings fields",summary:"Add settings fields to the plugin's settings page without writing UI. With this, a plugin can:",bullets:["Declare text, number, toggle, choice, or project fields as data","Get validation and autosave without extra code","Have each field found by Settings search through its label, key, or description","Keep secret values on the server, never sent to the browser"],apiSymbols:["PluginSettings","PluginSettingsHandle","PluginSettingDescriptor","PluginSettingsState","useSettings","PluginSettingsValues"],firstParty:["ACP providers","Moonlet Connect","BB guide","Claude Code provider","Codex provider","Custom instructions","GitHub","Modal Sandbox [Experimental]","Provider retry","Push notifications","Workflows"]},{id:"settings-section",title:"Custom settings section",summary:"Add your own section to the plugin's settings page. With this, a plugin can:",bullets:["Show anything that isn't a form field, such as a connect-account button","Place a section on a core Settings page, or on its own page in a sidebar group","Move [generated fields](declarative-settings) into a section, keeping values and autosave","Draw cards and rows with the same components core Settings pages use"],apiSymbols:["PluginSettingsSectionRegistration.experimental_page","PluginSettingsSectionRegistration.experimental_placement","PluginSettingsSectionRegistration.experimental_useTitle","PluginSettingsSectionRegistration.experimental_useGroupTitle","PluginSettingsSectionRegistration.experimental_fields","PluginSettingsSectionRegistration","PluginSettingsSectionProps","experimental_SettingsSection","ExperimentalSettingsSectionProps","experimental_SettingsRow","ExperimentalSettingsRowProps"],firstParty:["Account Pooler [Experimental]","Moonlet account","Moonlet Connect","Concurrency limit","Keep Awake","Memory","Modal Sandbox [Experimental]","Provider usage","Push notifications"]},{id:"first-run-step",title:"First-run step",summary:"Add a step to the setup a new install walks through once. With this, a plugin can:",bullets:["Ask a new owner a few questions after the agent step, before projects","Save each answer where it lives, so it stays editable in Settings afterward","Show again when the owner replays first run from Settings or the CLI"],apiSymbols:["ExperimentalFirstRunStepRegistration","ExperimentalFirstRunStepProps"],experimental:!0}]},{id:"extensions",title:"Plugin page",fixtureKind:"spatial",blurb:"The page Moonlet shows for an installed plugin under Plugins: what it is, what it registers, and whether it is healthy. A plugin can report that it needs configuring, and Moonlet says so at the top of this page.",surfaces:[{id:"plugin-status",title:"Configuration status",summary:"Add a needs-configuration warning to the plugin's page. With this, a plugin can:",bullets:["Tell people what's missing instead of failing silently","Send them to Settings, then reload after they save"],apiSymbols:["PluginStatusApi"],firstParty:["Account Pooler [Experimental]","GitHub","Modal Sandbox [Experimental]","Workflows"]}]},{id:"headless",title:"Plugin backend",fixtureKind:"capability-grid",blurb:"The parts of the plugin API with no interface of their own.",sections:[{title:"Commands & agent capabilities",surfaceIds:["cli","agent-tools"]},{title:"Running & reacting",surfaceIds:["background","wire","thread-events","system-messages","dispatch-hook","environment-providers","machine-providers","server-access","host-workers","provider-bridges"]},{title:"Data & platform",surfaceIds:["storage","bb-sdk","thread-plugin-metadata","desktop-browsers","ai-services","host-components"]},{title:"Confidence",surfaceIds:["testing"]}],surfaces:[{id:"cli",tagline:"Your own `Moonlet <name>` command",title:"Moonlet CLI commands",summary:"Add a `Moonlet <name>` command for people and agents. With this, a plugin can:",bullets:["Run the same command from a terminal, a script, or an agent mid-task","Get argument parsing, `--help`, and JSON errors from one declaration","Know which thread and project it was run from","Decode message newline escapes when accepting command text"],apiSymbols:["PluginCli","PluginCliResult","defineCli","cliCommand","experimental_decodeCliNewlines","PluginCliError","PluginCliSpec","PluginCliCommand","PluginCliOption","PluginCliContext","PluginCliRegistration.internal_DO_NOT_USE_topLevel","PluginCliSpec.internal_DO_NOT_USE_pluginOnly"],firstParty:["Account Pooler [Experimental]","Automations","Moonlet account","Moonlet cloud AI","Moonlet Connect","Browser Automation","Concurrency limit","Custom instructions","Docs","GitHub","Keep Awake","Memory","Modal Sandbox [Experimental]","Provider retry","Push notifications","Secrets","Tasks","Thread list","Workflows"]},{id:"agent-tools",tagline:"Native tools, skills, and instructions in every session",title:"Agent tools & skills",summary:"Add tools, skills, and instructions to every agent session. With this, a plugin can:",bullets:["Give agents native tools that work like Moonlet's built-in ones","Choose per thread which tools and skills are available","Add instructions to the system prompt when a session starts","Publish skills at runtime that every session sees, and withdraw them [Experimental]"],apiSymbols:["PluginAgents","PluginAgentToolContext","PluginRowPresentation","PluginRowLabels","ExperimentalPluginPublishedSkill","ExperimentalPluginPublishedSkillFile","ExperimentalPluginPublishSkillsResult","ExperimentalPluginPublishSkillsProblem"],firstParty:["Account Pooler [Experimental]","ACP providers","Agent Annotations","Ask User Question","Automations","Moonlet account","Moonlet cloud AI","Moonlet Connect","BB guide","Browser Automation","Claude Code provider","Codex provider","Concurrency limit","Custom instructions","Docs","Inline visualizations","Memory","Modal Sandbox [Experimental]","Pi provider","Provider retry","Secrets","Tasks","Theme Preview","Thread list","Workflows"]},{id:"background",tagline:"Supervised services and cron schedules",title:"Background work",summary:"Run code on the Moonlet server when no window is open. With this, a plugin can:",bullets:["Keep services running, with automatic restarts after a failure","Run jobs on a cron schedule","Set things up once, right after install"],apiSymbols:["PluginBackground","PluginServerApi.internal_DO_NOT_USE_stationSettingsJob","BbPluginApi.onInstall","BbPluginApi.internal_DO_NOT_USE_schedules","internal_DO_NOT_USE_retireScheduleSource"],firstParty:["Account Pooler [Experimental]","ACP providers","Automations","Moonlet account","Moonlet Connect","Concurrency limit","Docs","GitHub","Keep Awake","Modal Sandbox [Experimental]","Push notifications","Side chat","Theme Preview","Workflows"]},{id:"wire",tagline:"Typed RPC, HTTP & WebSocket routes, realtime push",title:"HTTP, WebSocket, RPC & realtime",summary:"Use RPC, HTTP, WebSocket, and realtime messages to connect the plugin. With this, a plugin can:",bullets:["Call its server from its UI with schema-checked RPC and typed refusals","Receive webhooks and serve HTTP or WebSocket routes","Share live reads and optimistic updates; finish pending writes at server acknowledgement","Publish RPC methods other plugins can discover; run producers while reads are watched"],reference:["All live hooks take { contract, method, ... } and infer their types: plain reads add input, keyed reads add keys and optional select, and mutations add optional optimistic","Data retains successful values and shared predictions during refresh errors. Plain reads start undefined; keyed reads expose loaded rows, initially an empty record, through select","isLoading means an enabled read is fetching never-loaded data, including missing requested keys. isFetching includes background attempts; keyed views share their method's activity","error is an experimental_PluginRpcCallError or null. Success clears it; retrying a first load clears its previous error while loading. refetch forces a read, waits through retries, and records failures in error without rejecting","Reads stay fresh for two seconds without polling. Focus does not refetch while Moonlet's realtime connection is healthy; while disconnected, focus/browser-online events recheck stale active reads. Moonlet reconnect invalidates all plugin reads. Page hiding cancels active attempts and resume restarts those cancelled reads","Invalidations refresh immediately. Network/abort failures retry twice at 250 ms, HTTP failures never retry, and writes never retry automatically. Tags are plain strings shared between read dependencies and write invalidations","mutate, isPending and pendingInputs settle at write acknowledgement; matched reads refresh in the background. Shared predictions stay until confirmed reads arrive, or roll back on write failure","Optimistic updaters must be pure and replayable; generate IDs and timestamps before mutate","RPC error codes may grow: switch on error.code with a fallback. Newer server codes become unknown_error with the original serverCode; transport_error and invalid_response cover client failures. CLI output preserves unknown codes"],apiSymbols:["PluginRpc","PluginRpcMethodContract","ExperimentalPluginRpcHandlersWithContext","ExperimentalPluginRpcHandlerContext","ExperimentalPluginRpcCaller","PluginBbSdk.plugins.experimental_discoverRpc","PluginHttp","PluginRealtime","useRpc","experimental_useRpcQuery","experimental_useRpcKeyedQuery","experimental_useRpcMutation","experimental_useRpcRefresh","ExperimentalRpcQueryState","ExperimentalRpcKeyedMethod","ExperimentalRpcKeyedValue","experimental_PluginRpcCallError","ExperimentalRpcKeyedQueryState","ExperimentalRpcQueryOptions","ExperimentalRpcMutationOptions","ExperimentalRpcOptimisticCache","ExperimentalRpcMutationState","PluginRpc.experimental_invalidate","PluginRpc.experimental_invalidateAll","PluginRpc.experimental_whileWatched","PluginRpcClient","useRealtime","useRealtimeConnectionState","PluginRealtimeConnectionState","ExperimentalPluginWebSocket","ExperimentalPluginWebSocketContext","ExperimentalPluginWebSocketHandler","ExperimentalPluginWebSocketHandlers","defineRpcContract","PluginRpcContract","PluginRpcError","PluginRpcErrorCode","experimental_PluginRpcRefusal","PluginRpcHandlers"],firstParty:["Account Pooler [Experimental]","ACP providers","Agent Annotations","Automations","Moonlet account","Moonlet cloud AI","Moonlet Connect","Browser Automation","Claude Code provider","Codex provider","Concurrency limit","Docs","File Editor","GitHub","GitHub PR Status","Inline visualizations","Keep Awake","Memory","Modal Sandbox [Experimental]","Provider usage","Push notifications","Side chat","Tasks","Theme Preview","Thread list","Workflows","Worktree"]},{id:"thread-events",tagline:"React when threads and environments change",title:"Lifecycle events",summary:"Run server code when threads change state or environments are removed. With this, a plugin can:",bullets:["React when threads start, finish, fail, change parent, are archived or unarchived, or are deleted","Follow owner messages and queued messages, including ones cancelled before dispatch","Get the provider's error and rate-limit windows when a turn fails","Observe successful environment removal with its previous machine and path"],apiSymbols:["PluginEvents","PluginThreadEventPayloads","PluginTurnFailedEvent"],firstParty:["Automations","Moonlet Connect","Browser Automation","Concurrency limit","Modal Sandbox [Experimental]","Provider retry","Provider usage","Push notifications","Tasks","Workflows"]},{id:"system-messages",tagline:"Wake a thread the way Moonlet does",title:"System messages",summary:"Use labeled notices to wake a thread, the way Moonlet tells a parent that a child finished. With this, a plugin can:",bullets:["Start a turn, steer a working one, or wait for an offline host, as Moonlet's own notices do","Show a collapsed line in the chat instead of a message from the user","Mark a notice quiet, so the agent's reply isn't shown in the chat or sent as a push notification","Post a message to the user outside any turn, the one way a quiet turn reaches them"],apiSymbols:["PluginThreads","PluginSystemMessage","PluginOwnerMessage","PluginOwnerMessageReceipt","PluginQuietTurn"],experimental:!0},{id:"dispatch-hook",tagline:"Decide whether a message may go",title:"Dispatch hook",summary:"Run a check before each message reaches an agent. With this, a plugin can:",bullets:["Let a message go, queue it with a reason, or refuse it","See the thread, project, machine, and prompt before the turn runs","Hold messages until a condition clears, such as a concurrency limit","Leave people a Send now override"],apiSymbols:["PluginHooks","PluginHookSignatures","MessageDispatchHookContext","PluginDispatchEnvironmentIntent","MessageDispatchHookDecision"],firstParty:["Concurrency limit","Drafts"],experimental:!0},{id:"environment-providers",tagline:"Provision where a thread runs",title:"Environment providers",summary:"Provide new places a thread can run, picked like any environment. With this, a plugin can:",bullets:["Create a workspace for each thread, such as a worktree or a cloud checkout","Ask for inputs, such as a branch, on the new-thread screen","Stream setup progress, clean up finished threads, and opt in to clear failed starts","Restore a thread's workspace after it was removed"],reference:["Opt in with policy.experimental_cleanupFailedBeforeRun to clean up failed starts before any provider session or turn, without archiving."],apiSymbols:["PluginEnvironments","PluginEnvironmentProviderDeclaration","PluginEnvironmentProviderRequirements","PluginEnvironmentValidateDecision","PluginEnvironmentProviderInputsRegistration","PluginEnvironmentProviderInputsProps","PluginEnvironmentProviderInputsChange","experimental_BranchPicker","BranchPickerProps","experimental_useBranches","UseBranchesArgs","BranchesState","experimental_useCheckoutState","UseCheckoutStateArgs","CheckoutState","PluginEnvironmentProviderDefinition","PluginEnvironmentProviderInputsSchema","PluginEnvironmentProviderPolicy","PluginEnvironmentProviderValidateContext","PluginEnvironmentProviderAvailabilityContext","PluginEnvironmentProviderAvailability","PluginEnvironmentProviderCreateContext","PluginEnvironmentProviderRestoreContext","PluginEnvironmentProviderCreateResult","PluginEnvironmentProviderProgress","PluginEnvironmentProviderRemoveContext","PluginEnvironmentProviderRemoveResult"],firstParty:["Modal Sandbox [Experimental]","Personal workspace","Project checkout","Worktree"],experimental:!0},{id:"machine-providers",tagline:"Create and own execution machines",title:"Machine providers",summary:"Provide machines that Moonlet creates and manages, such as cloud sandboxes. With this, a plugin can:",bullets:["Create, suspend, resume, and remove machines on demand","Pause a machine with its memory, so its turns and terminals carry on after it wakes","Pair them with an [environment provider](environment-providers) for one-step threads","Recover safely after restarts or cancelled creates"],apiSymbols:["PluginMachines","PluginBbSdk.hosts.experimental_create","PluginBbSdk.hosts.experimental_getEnrollmentCommand","PluginBbSdk.hosts.experimental_listProviders","PluginBbSdk.hosts.experimental_suspend","PluginBbSdk.terminals.experimental_listRunning","PluginBbSdk.hosts.experimental_reconcile","PluginBbSdk.hosts.experimental_resume","PluginBbSdk.hosts.experimental_retryCleanup","PluginBbSdk.hosts.delete","PluginMachines.getResource","MachineExecutorRequest","MachineExecutor","MachineBootstrapRequest","MachineBootstrapApi","PluginMachineProviderDeclaration","PluginMachineValidateDecision","PluginMachineProviderInputsRegistration","PluginMachineProviderInputsProps","PluginMachineProviderInputsChange","PluginMachineProviderDefinition","PluginMachineProviderInputsSchema","PluginMachineProviderAvailability","PluginMachineProviderValidateContext","PluginMachineProviderCreateContext","PluginMachineProviderCreateResult","PluginMachineProviderLifecycleContext","PluginMachineProviderProgress","PluginMachineProviderResourceResult","PluginMachineProviderResource","PluginMachineProviderRemoveResult"],firstParty:["Modal Sandbox [Experimental]","E2B Moonlets"],experimental:!0},{id:"server-access",tagline:"Connect machines to their server",title:"Machine server access",summary:"Provide the connection machines use to reach their Moonlet server. With this, a plugin can:",bullets:["Give new machines what they need to enroll, such as a tunnel URL","Appear as a choice in Machines settings and manual setup"],apiSymbols:["PluginServerAccess","ServerAccessProviderDeclaration","ServerAccessGrant","PluginHosts.declareSharedPorts","PluginHosts.ensureSharedPortTunnel","PluginSharedPortTunnelIdentity"],firstParty:["Moonlet Connect"],experimental:!0},{id:"host-workers",tagline:"Run code on enrolled machines",title:"Host workers",summary:"Run plugin code on enrolled machines, not only on the server. With this, a plugin can:",bullets:["Watch files, hold a wake lock, or run local commands on that machine","Call the worker from server code over typed RPC","Stop leftover processes before a workspace is deleted","Queue git and gh with priority, cancellation, and reserved foreground capacity"],apiSymbols:["PluginHosts","experimental_killProcessesWithCwdUnder","experimental_readProcessIdentity","ExperimentalProcessIdentity","experimental_sanitizeInheritedChildProcessEnv","ExperimentalSanitizeInheritedChildProcessEnvArgs","experimental_spawnPortableOutputProcess","experimental_runVcsProcess","ExperimentalVcsProcessOptions","ExperimentalVcsProcessPriority","experimental_defineHostEntry","ExperimentalHostEntry","ExperimentalHostClient","ExperimentalHostRpcContext","ExperimentalHostRpcHandlers","ExperimentalHostSignals","ExperimentalHostWatchOptions","ExperimentalHostWatchSubscription","ExperimentalHostWorkerLease","ExperimentalHostPaths"],firstParty:["ACP providers","Browser Automation","Claude Code provider","Codex provider","Concurrency limit","GitHub PR Status","Keep Awake","Personal workspace","Pi provider","Project checkout","Worktree"],experimental:!0},{id:"provider-bridges",title:"Provider bridges",tagline:"Bring any agent's runtime into Moonlet",summary:"Run an agent's sessions through a bridge your plugin ships to each machine. With this, a plugin can:",bullets:["Translate an agent CLI or SDK into Moonlet's timeline, tool calls, approvals, and usage","Run any Agent Client Protocol agent through the bundled ACP bridge, with no bridge code","Show native skills, commands, and plugins; validate selections with the shared skills index","Test it against Moonlet's conformance suite and recorded sessions, without a running Moonlet"],apiSymbols:["experimental_defineProviderBridge","experimental_scanSkillFiles","experimental_selectedSkillMentions","ExperimentalSkillScanRoot","ExperimentalIndexedSkillFile","ProviderBridgeDefinition","ProviderBridgeContext","ProviderBridgeEntry","PROVIDER_BRIDGE_EXPORT_NAME","PROVIDER_BRIDGE_PROTOCOL_VERSION","ThreadDelta","threadDeltaSchema","BridgeCapabilities","experimental_BridgeRecoveryError","experimental_toolPresentation","experimental_resolveExecutablePath","experimental_recordProviderChildIo","experimental_acpProviderBridge","AcpLaunchSpec","experimental_acpLaunchSpecSchema","experimental_probeAcpAgent","experimental_registerAcpDialect","AcpDialect","experimental_nativeRootsHostContract","experimental_filterResolvedNativeRoots","experimental_resolveClaudePluginRoots","experimental_resolveVendorPluginRoots","experimental_createBridgeJsonRpcTestHarness","experimental_runBridgeConformance","experimental_replayRecording"],firstParty:["ACP providers","Claude Code provider","Codex provider","Pi provider"],experimental:!0},{id:"storage",tagline:"Namespaced KV plus your own SQLite",title:"Storage",summary:"Use storage on the Moonlet server that only your plugin can see. With this, a plugin can:",bullets:["Keep small values such as flags and cursors in a key-value store","Get its own SQLite database with migrations","Keep internal credentials out of settings","Store secret files in a private base directory on the server"],apiSymbols:["PluginStorage","PluginStorage.experimental_secretDirectory"],firstParty:["Account Pooler [Experimental]","Agent Annotations","Automations","Moonlet account","Moonlet cloud AI","Moonlet Connect","Browser Automation","Concurrency limit","Custom instructions","Docs","GitHub","Keep Awake","Memory","Modal Sandbox [Experimental]","Push notifications","Side chat","Tasks","Thread list","Workflows"]},{id:"bb-sdk",tagline:"Create threads and projects from plugin code",title:"The Moonlet SDK",summary:"Use Moonlet's own API from plugin server code. With this, a plugin can:",bullets:["Create threads attributed to the plugin, send messages, and manage projects and machines","Follow plugin updates and rollbacks, and read required plugin and recovery status","Read Viewed state for up to 500 file paths; mark and clear return acknowledgements","Retry failed environment cleanup with recover: true after inspecting processes using the workspace"],reference:["sdk.experimental_permissions uses the protected settings routes for policy, approvals and recipients. It never answers an interaction; machine clients remain refused.","plugins.enable/disable and system.uiPreferences.set accept expectedPlugin to refuse a changed source or enabled value; sidebar writes also require the current preference revision."],apiSymbols:["BbPluginApi","PluginServerApi","PluginBbSdk.hosts.get","PluginBbSdk.experimental_permissions.policy","PluginBbSdk.experimental_permissions.edit","PluginBbSdk.experimental_permissions.takeBack","PluginBbSdk.experimental_permissions.revokeGrant","PluginBbSdk.hosts.experimental_inventory","PluginBbSdk.hosts.experimental_setRole","PluginBbSdk.hosts.experimental_discoverRepos","PluginBbSdk.experimental_promptHistory.list","PluginBbSdk.environments.experimental_cleanup","PluginBbSdk.environments.experimental_diffViewed","PluginBbSdk.environments.experimental_markDiffViewed","PluginBbSdk.environments.experimental_clearDiffViewed","PluginBbSdk.plugins.experimental_appView","PluginBbSdk.plugins.experimental_getLifecycleStatus","PluginBbSdk.system.uiPreferences.set","PluginBbSdk.plugins.disable","PluginBbSdk.plugins.enable","PluginBbSdk.plugins.remove","PluginBbSdk.plugins.experimental_getSafeMode","PluginBbSdk.plugins.experimental_setSafeMode","PluginBbSdk.plugins.experimental_pruneCache","PluginBbSdk.plugins.experimental_startUpdate","PluginBbSdk.plugins.experimental_updateJobs","PluginBbSdk.threads.queuedMessages.experimental_holdForEdit","PluginBbSdk.threads.queuedMessages.experimental_releaseEditHold","PluginBbSdk.threads.experimental_listDescendants"],firstParty:["Account Pooler [Experimental]","ACP providers","Automations","Moonlet cloud AI","Moonlet Connect","Browser Automation","Claude Code provider","Codex provider","Concurrency limit","Docs","File Editor","GitHub","Inline visualizations","Keep Awake","Modal Sandbox [Experimental]","Project checkout","Provider retry","Provider usage","Push notifications","Secrets","Side chat","Storage & retention [Experimental]","Tasks","Theme Preview","Thread list","Workflows","Worktree"]},{id:"thread-plugin-metadata",tagline:"Keep plugin data with a thread",title:"Thread plugin metadata",summary:"Use a private JSON record on each thread. With this, a plugin can:",bullets:["Keep plugin data with the thread it belongs to, hidden from the model","Seed it when spawning or forking a thread","Read it when configuring that thread's agent","Read it for many threads at once, along with each thread's ancestors"],apiSymbols:["PluginBbSdk","PluginAgentConfigurationContext","ReadonlyJsonValue","BbPluginApi"],firstParty:["Push notifications","Workflows"]},{id:"desktop-browsers",title:"Desktop browser control",tagline:"Use your automation tool on Moonlet-owned tabs",summary:"Use Moonlet's desktop browser tabs from plugin code. With this, a plugin can:",bullets:["Open signed-in tabs that belong to a thread","Give an automation tool private control of a tab","Copy a profile's sign-in from another browser"],apiSymbols:["ExperimentalDesktopBrowsersArea","ExperimentalDesktopBrowserScope","ExperimentalDesktopBrowserLease","ExperimentalDesktopBrowserCreateInput","ExperimentalDesktopBrowserAcquireInput","ExperimentalDesktopBrowsersArea.listImportSources","ExperimentalDesktopBrowsersArea.importCookies"],firstParty:["Browser Automation"],experimental:!0},{id:"ai-services",tagline:"Write Moonlet's titles, commit messages, and transcripts",title:"AI services",summary:"Provide the models that write Moonlet's titles, commit messages, and transcripts. With this, a plugin can:",bullets:["Write thread titles and commit messages with any model","Transcribe voice input from the microphone button","Appear as a choice under AI services in Settings \u2192 Providers"],apiSymbols:["PluginAiServices","PluginAiServiceDeclaration","PluginAiServiceStatus"],firstParty:["Moonlet cloud AI","Codex provider"],experimental:!0},{id:"host-components",tagline:"Embed Moonlet's chat and prompt box",title:"Host components",summary:"Use Moonlet's own chat, prompt box, and pickers inside plugin pages. With this, a plugin can:",bullets:["Embed a thread with queued or steered messages, a new-thread composer, or editable voice input","Render Markdown, code, diffs, and file links, and copy text and save files, the way Moonlet does","Add or override app icons","Match Moonlet's styling with no extra work"],apiSymbols:["experimental_Icon","experimental_ProviderIcon","ExperimentalProviderIconProps","ExperimentalIconProps","ExperimentalIconRegistration","ExperimentalAppIcons","PluginAppBuilder.experimental_icons","ThreadChat","ThreadChatProps.experimental_messageFooter","ThreadChatProps.experimental_sendMode","Markdown","MarkdownProps.experimental_document","experimental_NewThreadComposer","experimental_VoiceInputTextarea","ExperimentalVoiceInputTextareaProps","experimental_ProviderModelPicker","ExperimentalProviderModelPickerProps","experimental_PermissionModePicker","ExperimentalPermissionModePickerProps","experimental_SourceCode","SourceCodeProps","experimental_Diff","DiffProps","experimental_useCodeTheme","PluginCodeThemeState","experimental_copyToClipboard","ExperimentalClipboardContent","experimental_saveFile","ExperimentalSaveFileRequest","ExperimentalSaveFileOutcome","UrlLink","UrlLinkProps","experimental_FileLink","ExperimentalFileLinkProps","ExperimentalLiveFileTarget","ExperimentalFileLocation","ExperimentalFileOpenOptions","BbNavigate.openUrl","BbNavigate.experimental_openFilePreview","BbNavigate.experimental_openFileExternally"],firstParty:["Account Pooler [Experimental]","Automations","Moonlet account","Moonlet Connect","Docs","File Editor","GitHub","Inline visualizations","Provider usage","Side chat","Tasks","Thread list"]},{id:"testing",tagline:"Unit-test every surface without a running Moonlet",title:"Testing harnesses",summary:"Use test harnesses that run without Moonlet. With this, a plugin can:",bullets:["Test server code against an in-process fake Moonlet server","Render UI slots under vitest","Drive host workers without a machine"],apiSymbols:["createFakePluginHost","renderSlot","RenderedSlotInspectionState.experimental_pageTitle","createFakeSdk","experimental_createHostEntryHarness","loadPluginApp","mountPluginContentScripts","installTestPluginRuntime","experimental_scanPublicSdkOnly"],firstParty:["Account Pooler [Experimental]","ACP providers","Agent Annotations","Ask User Question","Automations","Moonlet account","Moonlet cloud AI","Moonlet Connect","BB guide","Browser Automation","Claude Code provider","Codex provider","Concurrency limit","Custom instructions","Docs","Drafts","File Editor","GitHub","Inline visualizations","Keep Awake","Memory","Modal Sandbox [Experimental]","PDF preview","Personal workspace","Pi provider","Project checkout","Provider retry","Provider usage","Push notifications","Secrets","Send later","Side chat","Tasks","Theme Preview","Thread list","Workflows","Worktree"]}]}],Be=new Map(Oe.flatMap(t=>t.surfaces.map(a=>[a.id,{id:t.id,title:t.title}]))),De=new Map(Oe.flatMap(t=>t.surfaces.map(a=>[a.id,a])));var gn="plugin-api-docs",hn="surface",wt="Build a plugin that uses ",Pt=" ";function fn(t){let a={provider:hn,id:t.id,label:t.title},i=`@${a.label}`,r={kind:"plugin",pluginId:gn,icon:null,itemId:`${a.provider}:${a.id}`,label:a.label},s={text:`${wt}${i}${Pt}`,html:`${ue(wt)}<span data-prompt-mention="true" data-prompt-mention-resource="${ue(JSON.stringify(r))}" data-prompt-mention-serialized-text="${ue(i)}">${ue(i)}</span>${ue(Pt)}`},o=[`Plugin Guide surface: ${t.title} (${t.id}).`,`Relevant @get-bb/plugin-sdk symbols: ${t.apiSymbols.join(", ")}.`,...t.reference??[],"Use the bb-plugin-authoring skill and the authoritative @get-bb/plugin-sdk declarations to build a similar plugin capability."].join(`
|
|
2
|
-
`);return{identity:a,resource:r,clipboard:s,context:o}}function bn(t){return fn(t).clipboard}function yt(t){return ft(bn(t))}var St=[["path",{d:"M19 9H6.65856C5.65277 9 5.14987 9 5.02472 8.69134C4.89957 8.38268 5.25517 8.01942 5.96637 7.29289L8.21091 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 15H17.3414C18.3472 15 18.8501 15 18.9753 15.3087C19.1004 15.6173 18.7448 15.9806 18.0336 16.7071L15.7891 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var kt=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var He=[["path",{d:"M14 21H16M14 21C13.1716 21 12.5 20.3284 12.5 19.5V17L12 17M14 21H10M10 21H8M10 21C10.8284 21 11.5 20.3284 11.5 19.5V17L12 17M12 17V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16 3H8C5.17157 3 3.75736 3 2.87868 3.87868C2 4.75736 2 6.17157 2 9V11C2 13.8284 2 15.2426 2.87868 16.1213C3.75736 17 5.17157 17 8 17H16C18.8284 17 20.2426 17 21.1213 16.1213C22 15.2426 22 13.8284 22 11V9C22 6.17157 22 4.75736 21.1213 3.87868C20.2426 3 18.8284 3 16 3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Ct=[["ellipse",{cx:"12",cy:"5",rx:"8",ry:"3",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 10.842C7.60158 11.0229 8.27434 11.1718 9 11.282",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 12C20 13.6569 16.4183 15 12 15C7.58172 15 4 13.6569 4 12",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M7 17.842C7.60158 18.0229 8.27434 18.1718 9 18.282",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M20 5V19C20 20.6569 16.4183 22 12 22C7.58172 22 4 20.6569 4 19V5",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]];var Nt=[["path",{d:"M8.64298 3.14559L6.93816 3.93362C4.31272 5.14719 3 5.75397 3 6.75C3 7.74603 4.31272 8.35281 6.93817 9.56638L8.64298 10.3544C10.2952 11.1181 11.1214 11.5 12 11.5C12.8786 11.5 13.7048 11.1181 15.357 10.3544L17.0618 9.56638C19.6873 8.35281 21 7.74603 21 6.75C21 5.75397 19.6873 5.14719 17.0618 3.93362L15.357 3.14559C13.7048 2.38186 12.8786 2 12 2C11.1214 2 10.2952 2.38186 8.64298 3.14559Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.788 11.0972C20.9293 11.2959 21 11.5031 21 11.7309C21 12.7127 19.6873 13.3109 17.0618 14.5072L15.357 15.284C13.7048 16.0368 12.8786 16.4133 12 16.4133C11.1214 16.4133 10.2952 16.0368 8.64298 15.284L6.93817 14.5072C4.31272 13.3109 3 12.7127 3 11.7309C3 11.5031 3.07067 11.2959 3.212 11.0972",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.3767 16.2661C20.7922 16.5971 21 16.927 21 17.3176C21 18.2995 19.6873 18.8976 17.0618 20.0939L15.357 20.8707C13.7048 21.6236 12.8786 22 12 22C11.1214 22 10.2952 21.6236 8.64298 20.8707L6.93817 20.0939C4.31272 18.8976 3 18.2995 3 17.3176C3 16.927 3.20778 16.5971 3.62334 16.2661",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var Rt=[["path",{d:"M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 4L9.5 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var Et=[["path",{d:"M15 2L15.5387 4.39157C15.9957 6.42015 17.5798 8.00431 19.6084 8.46127L22 9L19.6084 9.53873C17.5798 9.99569 15.9957 11.5798 15.5387 13.6084L15 16L14.4613 13.6084C14.0043 11.5798 12.4202 9.99569 10.3916 9.53873L8 9L10.3916 8.46127C12.4201 8.00431 14.0043 6.42015 14.4613 4.39158L15 2Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 12L7.38481 13.7083C7.71121 15.1572 8.84275 16.2888 10.2917 16.6152L12 17L10.2917 17.3848C8.84275 17.7112 7.71121 18.8427 7.38481 20.2917L7 22L6.61519 20.2917C6.28879 18.8427 5.15725 17.7112 3.70827 17.3848L2 17L3.70827 16.6152C5.15725 16.2888 6.28879 15.1573 6.61519 13.7083L7 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Mt=[["path",{d:"M7.5 7.5L8.72654 8.55719C9.24218 9.00163 9.5 9.22386 9.5 9.5C9.5 9.77614 9.24218 9.99836 8.72654 10.4428L7.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.5 12.5H15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 21C15.7497 21 17.6246 21 18.9389 20.0451C19.3634 19.7367 19.7367 19.3634 20.0451 18.9389C21 17.6246 21 15.7497 21 12C21 8.25027 21 6.3754 20.0451 5.06107C19.7367 4.6366 19.3634 4.26331 18.9389 3.95491C17.6246 3 15.7497 3 12 3C8.25027 3 6.3754 3 5.06107 3.95491C4.6366 4.26331 4.26331 4.6366 3.95491 5.06107C3 6.3754 3 8.25027 3 12C3 15.7497 3 17.6246 3.95491 18.9389C4.26331 19.3634 4.6366 19.7367 5.06107 20.0451C6.3754 21 8.25027 21 12 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var _t=[["path",{d:"M11.223 6V7.98898C11.223 9.38733 11.223 10.0865 11.4102 10.7577C11.5974 11.4289 11.9644 12.0452 12.6984 13.2779L13.6929 14.9482C15.5632 18.0892 16.4984 19.6597 15.7312 20.824L15.7193 20.8418C14.9409 22 12.9606 22 9 22C5.03938 22 3.05907 22 2.2807 20.8418L2.26884 20.824C1.50164 19.6597 2.43679 18.0892 4.30708 14.9482L5.30163 13.2779C6.03558 12.0452 6.40256 11.4289 6.5898 10.7577C6.77704 10.0865 6.77704 9.38733 6.77704 7.98898V6",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 6L12 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5.5 13.2803C6.16667 12.699 7.73448 13.1181 9.00155 13.6643C10.6682 14.3828 12.1667 13.8019 12.5 13.2803",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.5 7C11.5 9 13.8624 11.2121 15.4728 11C15.4728 12.6569 16.934 14 18.7364 14C20.5388 14 22 12.6569 22 11C22 9.34315 21 8 19 8C19 6 17.5 4 15.3799 4C15.3799 2.45687 14.5 2 13.5 2C12.5 2 12 3 12 3C12 3 9 3 9 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]];var At=[["path",{d:"M4.31802 19.682C3 18.364 3 16.2426 3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 12H8.5L10.5 8L13.5 16L15.5 12H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Je=[{id:"account-pool",name:"Account Pooler [Experimental]",icon:"Layers"},{id:"ask-user-question",name:"Ask User Question",icon:"MessageQuestion"},{id:"automations",name:"Automations",icon:"Repeat"},{id:"bb--composer",name:"Composer",icon:"MessageSquare"},{id:"bb-ai",name:"Moonlet cloud AI",icon:"AiBrain01"},{id:"browser-automation",name:"Browser Automation",icon:"Globe"},{id:"concurrency-limit",name:"Concurrency limit",icon:"Limitation"},{id:"custom-instructions",name:"Custom instructions",icon:"EditFile"},{id:"simple-notes",name:"Docs",icon:"FileText"},{id:"drafts",name:"Drafts",icon:"EditFile"},{id:"monaco-editor",name:"File Editor",icon:"Code"},{id:"github",name:"GitHub",icon:"Github"},{id:"bb--github-pr-status",name:"GitHub PR Status",icon:"GitPullRequest"},{id:"inline-vis",name:"Inline visualizations",icon:"AppWindow"},{id:"keep-awake",name:"Keep Awake",icon:"Coffee"},{id:"memory",name:"Memory",icon:"Brain"},{id:"navigation",name:"Navigation",icon:"PanelLeft"},{id:"environment-modal-sandbox",name:"Modal Sandbox [Experimental]",icon:null},{id:"bb--e2b-moonlets",name:"E2B Moonlets",icon:"ComputerCloud"},{id:"environment-personal-workspace",name:"Personal workspace",icon:"Folder"},{id:"environment-project-checkout",name:"Project checkout",icon:"Laptop"},{id:"bb--provider-usage",name:"Provider usage",icon:"ChartColumn"},{id:"provider-retry",name:"Provider retry",icon:"ArrowReloadHorizontal"},{id:"push-notifications",name:"Push notifications",icon:"BellDot"},{id:"connect",name:"Moonlet Connect",icon:"ComputerCloud"},{id:"secrets",name:"Secrets",icon:"Lock"},{id:"scheduled-send",name:"Send later",icon:"Calendar"},{id:"side-chat",name:"Side chat",icon:"SideChat"},{id:"bb--storage-retention",name:"Storage & retention [Experimental]",icon:null},{id:"tasks",name:"Tasks",icon:"ListTodo"},{id:"workflows",name:"Workflows",icon:"Workflow"},{id:"environment-git-worktree",name:"Worktree",icon:"FolderGit"},{id:"provider-acp",name:"ACP providers",icon:null},{id:"provider-claude-code",name:"Claude Code provider",icon:null},{id:"provider-codex",name:"Codex provider",icon:null},{id:"provider-pi",name:"Pi provider",icon:null},{id:"agent-annotations",name:"Agent Annotations",icon:"MessageSquarePlus"},{id:"bb-account",name:"Moonlet account",icon:"UserRound"},{id:"bb-guide",name:"BB guide",icon:"Explore"},{id:"pdf-preview",name:"PDF preview",icon:"FileText"},{id:"theme-preview",name:"Theme Preview",icon:"Palette"},{id:"thread-list",name:"Thread list",icon:"ListView"}];function Tt(t){return Je.find(a=>a.name===t)?.icon??null}function et(t){return Je.find(a=>a.name===t)?.id??null}var vn={cli:Mt,"agent-tools":Et,background:kt,wire:St,storage:Ct,"thread-events":At,"host-workers":He,"bb-sdk":Rt,"host-components":Nt,testing:_t};function Fe(t){return vn[t]??null}var $=ht;var wn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},le=Ee(({color:t="currentColor",size:a=24,strokeWidth:i,absoluteStrokeWidth:r=!1,className:s="",altIcon:o,showAlt:c=!1,icon:u,primaryColor:m,secondaryColor:g,disableSecondaryOpacity:P=!1,...R},T)=>{let b=i!==void 0?r?Number(i)*24/Number(a):i:void 0,H=b!==void 0?{strokeWidth:b,stroke:"currentColor"}:{},f={ref:T,...wn,width:a,height:a,color:m||t,className:s,...H,...R},I=[...c&&o?o:u].sort(([,j],[,N])=>{let h=j.opacity!==void 0;return N.opacity!==void 0?1:h?-1:0}).map(([j,N])=>{let h=N.opacity!==void 0,C=h&&!P?N.opacity:void 0,S=g?{...N.stroke!==void 0?{stroke:h?g:m||t}:{fill:h?g:m||t}}:{};return Ve(j,{...N,...H,...S,opacity:C,key:N.key})});return Ve("svg",f,I)});le.displayName="HugeiconsIcon";var It=[["path",{d:"M13.5 2H10.5C8.14298 2 6.96447 2 6.23223 2.73223C5.5 3.46447 5.5 4.64298 5.5 7V17C5.5 19.357 5.5 20.5355 6.23223 21.2678C6.96447 22 8.14298 22 10.5 22H13.5C15.857 22 17.0355 22 17.7678 21.2678C18.5 20.5355 18.5 19.357 18.5 17V7C18.5 4.64298 18.5 3.46447 17.7678 2.73223C17.0355 2 15.857 2 13.5 2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.125 19H12M12.25 19C12.25 19.1381 12.1381 19.25 12 19.25C11.8619 19.25 11.75 19.1381 11.75 19C11.75 18.8619 11.8619 18.75 12 18.75C12.1381 18.75 12.25 18.8619 12.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Lt=/(`[^`]+`)|(\[[^\]]+\]\([a-z0-9-]+\))|(\{experimental\})/g;function fe(t,a){return d("flex size-5 shrink-0 items-center justify-center rounded-full font-mono text-xs font-semibold leading-none transition-colors","scale-[var(--guide-chip-scale,1)]",t?"bg-file-accent text-background":"bg-[color-mix(in_oklch,var(--ink)_18%,var(--canvas))] text-foreground",a)}var tt="--guide-chip-scale",Pn=3;function be(t){return!Number.isFinite(t)||t<=0?1:Math.min(Pn,Math.max(1,1/t))}var W="focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",Ot={corner:"-right-2 -top-2","corner-inset":"right-2 -top-2",side:"-right-2 top-1/2 -translate-y-1/2","outside-above":"left-1/2 -top-6 -translate-x-1/2"};function xe(){return e("span",{className:"inline-flex items-center rounded border border-attention/50 bg-surface-attention px-1.5 py-px font-mono text-xs text-foreground",title:"Experimental: audited before stabilizing \u2014 see docs/api_to_audit.md in the Moonlet repository.",children:"experimental"})}function ve(t,a){let i=t.split(Lt).filter(r=>r!==void 0);return i.length<2?t:i.map((r,s)=>{if(r.startsWith("`")&&r.endsWith("`"))return e("code",{className:"rounded bg-surface-recessed px-1 py-px font-mono text-[0.85em]",children:r.slice(1,-1)},s);if(r==="{experimental}")return n(Q,{children:[" ",e(xe,{})]},s);let o=/^\[([^\]]+)\]\(([a-z0-9-]+)\)$/.exec(r);if(!o)return e(Q,{children:r},s);let[,c,u]=o,m=a?.(u)??null;return m?e("button",{type:"button",onClick:m.onOpen,title:m.otherPage?`On ${m.otherPage}`:void 0,"aria-label":m.otherPage?`Go to ${c} on ${m.otherPage}`:`Go to ${c} on this page`,className:`cursor-pointer rounded-sm underline decoration-border underline-offset-2 hover:text-foreground hover:decoration-foreground ${W}`,children:c},s):e(Q,{children:c},s)})}var ze="[scrollbar-width:none] [&::-webkit-scrollbar]:hidden",Bt="28px";function We(t,a){if(!t&&!a)return;let i=t?`transparent, black ${Bt}`:"black",r=a?`black calc(100% - ${Bt}), transparent`:"black";return{maskImage:`linear-gradient(to right, ${i}, ${r})`}}function yn(t){return{canScrollLeft:t.scrollLeft>1,canScrollRight:t.scrollLeft+t.clientWidth<t.scrollWidth-1}}function Ue(t){let[a,i]=y({canScrollLeft:!1,canScrollRight:!1}),r=re(()=>{let s=t.current;s&&i(yn(s))},[t]);return O(()=>{let s=t.current;if(!s)return;r();let o=new ResizeObserver(r);return o.observe(s),s.firstElementChild&&o.observe(s.firstElementChild),s.addEventListener("scroll",r,{passive:!0}),()=>{o.disconnect(),s.removeEventListener("scroll",r)}},[t,r]),a}var Sn=32,kn=80;function Cn(t){return Math.max(t-Sn,kn)}function Nn(t,a,{reducedMotion:i}){t.scrollBy({left:a*Cn(t.clientWidth),behavior:i?"auto":"smooth"})}function Rn(){let[t,a]=y(!1);return O(()=>{let i=window.matchMedia?.("(prefers-reduced-motion: reduce)");if(!i)return;let r=()=>a(i.matches);return r(),i.addEventListener("change",r),()=>i.removeEventListener("change",r)},[]),t}function Dt({direction:t,shown:a,onClick:i}){return e("button",{type:"button",tabIndex:-1,"aria-label":`Scroll ${t}`,"aria-hidden":!a,disabled:!a,onClick:i,className:d("inline-flex size-4 shrink-0 cursor-pointer items-center justify-center rounded text-subtle-foreground transition-colors hover:bg-state-hover hover:text-foreground",!a&&"invisible"),children:e($,{name:t==="left"?"ChevronLeft":"ChevronRight",className:"size-3.5"})})}function Ht({items:t,renderItem:a}){let i=_(null),r=Ue(i),s=Rn(),o=u=>{let m=i.current;m&&Nn(m,u,{reducedMotion:s})},c=r.canScrollLeft||r.canScrollRight;return n("div",{className:"flex min-w-0 flex-1 items-center gap-1",children:[c?e(Dt,{direction:"left",shown:r.canScrollLeft,onClick:()=>o(-1)}):null,e("div",{ref:i,...c?{tabIndex:0,role:"group","aria-label":"Used by"}:{},onKeyDown:u=>{c&&(u.key==="ArrowLeft"||u.key==="ArrowRight")&&u.stopPropagation()},className:d("min-w-0 flex-1 overflow-x-auto focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",ze),style:We(r.canScrollLeft,r.canScrollRight),children:e("ul",{className:"flex w-max gap-x-3",children:t.map(u=>e("li",{className:"shrink-0",children:a(u)},u))})}),c?e(Dt,{direction:"right",shown:r.canScrollRight,onClick:()=>o(1)}):null]})}function Ft({items:t,renderItem:a}){let[i,r]=y(0),s=Math.min(i,t.length-1),o=t[s];return o?n("div",{role:"group","aria-label":"Example plugins",className:"flex min-w-0 flex-1 items-center gap-1",onKeyDown:c=>{c.key!=="ArrowLeft"&&c.key!=="ArrowRight"||(c.preventDefault(),c.stopPropagation(),r(Math.max(0,Math.min(t.length-1,s+(c.key==="ArrowLeft"?-1:1)))))},children:[t.length>1?e("button",{type:"button","aria-label":"Previous example plugin",disabled:s===0,onClick:()=>r(s-1),className:`inline-flex size-9 @2xl/guide:size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-state-hover hover:text-foreground disabled:cursor-default disabled:opacity-35 ${W}`,children:e($,{name:"ChevronLeft",className:"size-3.5"})}):null,n("div",{className:"min-w-0 flex-1","aria-live":"polite","aria-atomic":"true",children:[n("span",{className:"sr-only",children:["Example ",s+1," of ",t.length,": "]}),a(o)]}),t.length>1?e("button",{type:"button","aria-label":"Next example plugin",disabled:s===t.length-1,onClick:()=>r(s+1),className:`inline-flex size-9 @2xl/guide:size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-state-hover hover:text-foreground disabled:cursor-default disabled:opacity-35 ${W}`,children:e($,{name:"ChevronRight",className:"size-3.5"})}):null]}):null}var zt="transition-colors duration-150 hover:duration-0";var we=Ee(({checked:t,className:a,disabled:i,size:r="sm",onCheckedChange:s,onClick:o,...c},u)=>e("button",{...c,ref:u,type:"button",role:"switch","aria-checked":t,disabled:i,"data-state":t?"checked":"unchecked",className:d(`peer inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-input shadow-xs ${zt} outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-foreground data-[state=unchecked]:border-input data-[state=unchecked]:bg-muted`,r==="default"&&"h-5 w-9",r==="sm"&&"h-4 w-7",a),onClick:m=>{o?.(m),m.defaultPrevented||s?.(!t)},children:e("span",{"aria-hidden":!0,"data-state":t?"checked":"unchecked",className:d("pointer-events-none block rounded-full bg-background ring-0 transition-transform data-[state=unchecked]:bg-foreground data-[state=unchecked]:translate-x-0",r==="default"&&"size-4 data-[state=checked]:translate-x-4",r==="sm"&&"size-3 data-[state=checked]:translate-x-3")})}));we.displayName="Switch";var Pe={$comment:"Shared UI-anatomy contract between the Plugin Guide surface fixtures (wireframes.tsx) and the real app. Ordered regions are rendered by both sides. surfaceFixtures records authoritative source anchors plus the minimum deterministic fidelity and states for interaction-heavy fixtures.",appSidebar:["top-reserve","thread-list","footer"],sidebarFooter:["plugin-footer-items","bug-report"],messageActionBar:["copy","edit","plugin-actions","message-menu"],mobileLayout:{sources:[{path:"packages/shared-ui/src/components/ui/hooks/use-compact-viewport.tsx",anchors:["(max-width: 767px)"]},{path:"apps/app/src/views/RootComposeSecondaryContent.tsx",anchors:["RootComposeCompactHome composer={children}","PluginHomepageSections"]},{path:"apps/app/src/components/secondary-panel/CompactSecondaryPanelShelf.tsx",anchors:["CompactSecondaryPanelShelf"]},{path:"apps/app/src/components/ui/sidebar.tsx",anchors:["SIDEBAR_WIDTH_MOBILE","SIDEBAR_MOBILE_VIEWPORT_FRACTION"]}]},surfaceFixtures:{"composer-banners":{groupId:"composer",fidelity:"flow",responsiveStrategy:"scale-together",requiredStates:["anchor","triggered"],labels:{anchor:["Your banner","Your context","Changed files"],triggered:["Context details"]},fixtureClassAnchors:["overflow-hidden","rounded-lg"],sources:[{path:"apps/app/src/components/promptbox/banner/ThreadPromptContextBanner.tsx",anchors:["function ParentThreadSummary","function ChangedFilesSummary",'mount(entry, "summary")','mount(entry, "details")']},{path:"apps/app/src/components/plugin/PluginThreadContextSegments.tsx",anchors:["entry.slot[part]","onVisible(slot, threadId, visible)"]}]},"composer-actions":{groupId:"composer",fidelity:"flow",responsiveStrategy:"scale-together",requiredStates:["anchor","triggered"],labels:{anchor:[],triggered:["Search saved prompts","Review this change"]},fixtureClassAnchors:["bottom-full","bg-popover"],sources:[{path:"plugins/composer/src/ComposerPopupHost.tsx",anchors:["data-promptbox-typeahead-menu","bottom-full mb-2","top-full mt-2","ResponsiveDrawerShell"]},{path:"apps/app/src/components/plugin/PluginComposerPopup.tsx",anchors:['slotKind="composerPopup"',"<popup.component />"]}]},"command-palette-actions":{groupId:"command-palette",fidelity:"flow",responsiveStrategy:"scale-together",requiredStates:["anchor","triggered","outcome"],labels:{anchor:["Quick palette","\u21E7\u2318P"],triggered:["Search commands","Plugins","Run release checklist"],outcome:["Release checklist"]},fixtureClassAnchors:["top-[12%]","max-w-xl","bg-black/40","bg-background","shadow-sm","h-11","rounded","px-2","py-1.5","bg-state-hover","text-foreground"],sources:[{path:"apps/app/src/components/commands/CommandPalette.tsx",anchors:["top-[12%] max-w-[640px] translate-y-0 gap-0 p-0"]},{path:"apps/app/src/components/commands/CommandPaletteBody.tsx",anchors:["aria-selected={isActive}","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","bg-state-hover text-foreground"]},{path:"apps/app/src/components/commands/PaletteShell.tsx",anchors:["aria-label={inputLabel}",'role="listbox"']},{path:"apps/app/src/lib/command-palette/palette-plugin-actions.ts",anchors:['bucket: "Plugins"',"run: () =>"]},{path:"apps/app/src/components/commands/CommandPalette.test.tsx",anchors:["lists a plugin's registered command and runs it",'expect(testState.calls).toEqual(["plugin-ran"])','expect(screen.queryByRole("combobox")).toBeNull()']},{path:"packages/shared-ui/src/components/ui/dialog.tsx",anchors:["fixed inset-0 z-50 bg-black/40","bg-background p-6 shadow-sm","sm:rounded-lg"]}]},"app-overlay":{groupId:"app-shell",fidelity:"anchor",responsiveStrategy:"scale-together",requiredStates:["anchor"],labels:{anchor:["Floating widget","2 agents active"]},fixtureClassAnchors:["absolute bottom-24 right-12","bg-popover","shadow-md"],sources:[{path:"apps/app/src/components/plugin/PluginAppOverlays.tsx",anchors:['data-bb-plugin-app-overlays=""','slotKind="appOverlay"',"crashFallback={null}"]},{path:"apps/app/src/components/layout/AppLayout.tsx",anchors:["<PluginAppOverlays />"]},{path:"apps/app/src/components/plugin/PluginAppOverlays.test.tsx",anchors:["keeps sidebar thread actions available through a portal and route change","hides a crashing overlay without unmounting additive siblings"]}]},"sidebar-footer":{groupId:"app-shell",fidelity:"state",responsiveStrategy:"scale-together",requiredStates:["action","disclosure"],labels:{action:["Plugin action"],disclosure:["5-hour limit","18% left"]},fixtureClassAnchors:["rounded-md border border-border","rounded-full bg-warning"],sources:[{path:"apps/app/src/components/plugin/PluginSidebarFooterItems.tsx",anchors:['"aria-expanded": active','onDisclosureCommand(footerItemKey(slot), "toggle")',"<Component dismiss={onDismiss} />"]},{path:"packages/plugin-sdk/src/internal/plugin-app-registration-collector.ts",anchors:["adaptSidebarFooterAction","experimental_sidebarFooter.register",'registration.kind === "action"','registration.kind === "disclosure"']},{path:"apps/app/src/components/plugin/PluginSidebarFooterItems.test.tsx",anchors:["toggles and dismisses a disclosure accessibly","lets the host coordinate disclosures from multiple plugins"]}]},"declarative-settings":{groupId:"settings",fidelity:"anchor",responsiveStrategy:"scale-together",requiredStates:["anchor"],labels:{anchor:["Configuration","[set]","Case-sensitive search"]},fixtureClassAnchors:["bg-surface-recessed-solid p-3"],sources:[{path:"apps/app/src/components/plugin/PluginSettings.tsx",anchors:["<Switch",'placeholder={isSecret ? (secretIsSet ? "[set]" : "[not set]") : undefined}','<ResourceDetailConfigurationSection label="Configuration">']}]},"plugin-status":{groupId:"extensions",fidelity:"anchor",responsiveStrategy:"scale-together",requiredStates:["anchor"],labels:{anchor:["Needs configuration","Open settings","Details","Capabilities"]},fixtureClassAnchors:["bg-surface-recessed/55"],sources:[{path:"apps/app/src/components/tools/PluginCapabilities.tsx",anchors:['plugin.status === "needs-configuration" && hasSettingsPage',"Open settings",'name="ChevronRight"']},{path:"apps/app/src/components/plugin/management/plugin-status.ts",anchors:["Complete the required settings."]},{path:"apps/app/src/components/tools/PluginDetail.tsx",anchors:['label="Details"','label={updatesWithMoonlet ? "Delivery" : "Installed"}',"<PluginIncludes plugin={plugin} configurationPath={configurationPath} />"]}]},"thread-info":{groupId:"app-shell",fidelity:"anchor",responsiveStrategy:"scale-together",requiredStates:["anchor"],labels:{anchor:["Project","Branch","Deploy","Automations","Commits"]},fixtureClassAnchors:["grid-cols-[96px_minmax(0,1fr)]","mt-3","border-t","pt-3"],sources:[{path:"apps/app/src/components/secondary-panel/ThreadMetadataContent.tsx",anchors:["CORE_THREAD_INFO_ROWS","CORE_THREAD_INFO_SECTIONS","<ThreadInfoRows","<ThreadInfoSections","[&_[data-info-section]]:mt-3"]},{path:"apps/app/src/components/secondary-panel/info/ThreadInfoSlots.tsx",anchors:['slotKind="threadInfoRow"','slotKind="threadInfoSection"',"crashFallback={null}","value={`${pluginId}/${id}`}"]},{path:"apps/app/src/components/ui/detail-card.tsx",anchors:["grid grid-cols-[var(--detail-label-width,96px)_minmax(0,1fr)] gap-x-3"]},{path:"apps/app/src/components/secondary-panel/info/ThreadInfoSlots.test.tsx",anchors:["places plugin rows and sections by group, then order, after core on a tie","drops only a crashing plugin row or section","collapses each section on its own, keyed by registration"]}]}}};var Se=lt(null);function K(){let t=Me(Se);if(!t)throw new Error("useSurfaceMap must be used inside a SurfaceMapContext");return t}function Z(t){let{activeId:a,expandedId:i}=K();return{active:a===t||i===t,outlined:a!==null?a===t:i===t}}function Ge(t){let{setActiveId:a}=K();return{onMouseEnter:()=>a(t),onMouseLeave:()=>a(null),onFocus:()=>a(t),onBlur:()=>a(null)}}function Vt(t,a,i,r){r?.(),i&&(t.preventDefault(),t.stopPropagation(),i(a))}function qt({id:t,active:a,chip:i}){let{numberOf:r}=K();return e("span",{"aria-hidden":!0,"data-guide-badge":t,className:fe(a,d("absolute z-50 ring-2 ring-card",Ot[i])),children:r(t)})}function me(t){return t?"bg-surface-selected/30 ring-1 ring-inset ring-surface-selected-border":void 0}function v({id:t,label:a,className:i,chip:r="corner",showChip:s=!0,target:o=!1,onActivate:c,children:u}){let{onSelect:m}=K(),{active:g,outlined:P}=Z(t),R=Ge(t);return n("a",{"data-guide-region":t,"data-guide-target":o?t:void 0,href:`#surface-${t}`,"aria-label":`${a} \u2014 jump to details`,onClick:T=>Vt(T,t,m,c),...R,className:d("relative rounded-md ring-1 ring-inset transition-all",W,P?"bg-surface-selected ring-surface-selected-border":"ring-transparent hover:bg-state-hover",i),children:[s?e(qt,{id:t,active:g,chip:r}):null,u]})}var Mn=2400;function _n({onRun:t}){let a="command-palette-actions",{onSelect:i}=K(),{outlined:r}=Z(a),s=Ge(a);return n("button",{"data-guide-region":a,type:"button",role:"option","aria-selected":"true",onClick:()=>{t(),i?.(a)},...s,"data-guide-fixture":"command-palette-action",className:d("flex w-full cursor-pointer items-center gap-1.5 rounded bg-state-hover px-2 py-1.5 text-left text-foreground ring-1 ring-inset transition-all",r?"ring-surface-selected-border":"ring-transparent"),children:[e("span",{children:"Run release checklist"}),e("span",{className:"ml-auto text-xs text-subtle-foreground",children:"Plugins"})]})}function ge({id:t,label:a,className:i,chip:r="corner",showChip:s=!0,children:o}){let{onSelect:c}=K(),{active:u,outlined:m}=Z(t),g=Ge(t);return n("div",{"data-guide-region":t,className:d("relative",i),children:[e("a",{href:`#surface-${t}`,"aria-label":`${a} \u2014 jump to details`,onClick:c?P=>{P.preventDefault(),P.stopPropagation(),c(t)}:void 0,...g,className:d("absolute inset-0 z-[1] rounded-md ring-1 ring-inset transition-all",W,m?"bg-surface-selected/30 ring-surface-selected-border":"ring-transparent hover:bg-state-hover"),children:s?e(qt,{id:t,active:u,chip:r}):null}),o]})}var oe=typeof window>"u"?O:dt,Wt=20,An=8;function D({id:t,label:a,anchor:i,at:r,align:s="center",flush:o=!1,clipTo:c}){let{numberOf:u,onSelect:m}=K(),{active:g}=Z(t),P=Ge(t),R=_(null),[T,b]=y(null);return oe(()=>{let H=R.current,f=H?.offsetParent;if(!H||!(f instanceof HTMLElement))return;let U=f.closest("[data-map-section]")??f,I=U.querySelector(i);if(!I)return;let j=S=>{let G=0,L=0,B=S;for(;B;)G+=B.offsetLeft,L+=B.offsetTop,B=B.offsetParent instanceof HTMLElement?B.offsetParent:null;for(B=S.parentElement;B;)G-=B.scrollLeft,L-=B.scrollTop,B=B.parentElement;return{x:G,y:L}},N=()=>{let S=f.closest("[data-guide-responsive-strategy]"),G=be(Number(S?.dataset.guideScale??"1")),L=Wt*G,F=(o?parseFloat(getComputedStyle(f).borderLeftWidth||"0"):An)*G,E=4*G,te=(L-Wt)/2,V=j(f),ne=j(I),M={left:ne.x-V.x,top:ne.y-V.y,width:I.offsetWidth,height:I.offsetHeight},de=c?U.querySelector(c):null;if(de){let X=j(de),J=ne.x-X.x;if(J<0||J+I.offsetWidth>de.clientWidth){b(null);return}}let ke=M.top+M.height/2-L/2,Ce=s==="start"?M.top:s==="end"?M.top+M.height-L:ke,k=f.querySelector("[data-guide-frame]"),ae=k?j(k):V,ce=k?k.offsetWidth:f.offsetWidth,pe={left:ae.x-V.x,right:ae.x-V.x+ce,top:ae.y-V.y},z=r==="start"?{left:pe.left-L-F,top:Ce}:r==="end"?{left:pe.right+F,top:Ce}:r==="above"?{left:M.left+M.width/2-L/2,top:M.top-L-E}:{left:M.left+M.width/2-L/2,top:Math.max(0,(pe.top-L)/2)},Ne=(X,J)=>Math.max(0,Math.min(X,Math.max(0,J-L))),he=f.closest("[data-guide-frame]");if(he){let J=j(he).x-V.x;z.left=Math.min(Math.max(z.left,J+E),J+he.offsetWidth-L-E)}o||(z.left=Ne(z.left,f.offsetWidth)),z.top=Ne(z.top,f.offsetHeight),z.left+=te,z.top+=te,b(X=>X&&Math.abs(X.left-z.left)<.5&&Math.abs(X.top-z.top)<.5?X:z)};N();let h=new ResizeObserver(N);h.observe(f),h.observe(I);let C=f.closest("[data-guide-responsive-strategy]");return C&&h.observe(C),U.addEventListener("scroll",N,!0),()=>{h.disconnect(),U.removeEventListener("scroll",N,!0)}},[i,r,s,o,c]),e("a",{ref:R,"data-guide-badge":t,"data-guide-badge-placement":r,"data-guide-badge-align":s,href:`#surface-${t}`,"aria-label":`${a} \u2014 jump to details`,onClick:H=>Vt(H,t,m,void 0),...P,className:d("pointer-events-auto absolute z-50",W),style:T??{visibility:"hidden"},children:e("span",{"aria-hidden":!0,className:fe(g,"ring-2 ring-card"),children:u(t)})})}function p({icon:t,className:a}){return e($,{name:t,className:d("size-4 shrink-0 text-muted-foreground",a)})}function w({className:t}){return e($,{name:"Plug02",className:d("size-4 shrink-0 text-foreground",t)})}function Kt(){let{renderPluginIcon:t}=K();return t?.("Claude Code provider")??e($,{name:"Code",className:"size-3.5"})}var se="aspect-[9/19]";function ie({children:t,className:a}){return e("div",{"data-guide-frame":!0,className:d("select-none overflow-hidden rounded-lg border border-border bg-surface-raised-solid text-xs leading-none text-muted-foreground shadow-sm",a),children:t})}function je(){return n("span",{"aria-hidden":!0,className:"flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-muted"}),e("span",{className:"size-2 rounded-full bg-muted"}),e("span",{className:"size-2 rounded-full bg-muted"})]})}var Tn=[{title:"Fix flaky checkout tests",glyph:"spin"},{title:"Refactor settings page"},{title:"Ship dark mode",glyph:"dot"}],Yt={"plugin-footer-items":()=>n("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"flex size-5.5 items-center justify-center rounded-md",children:e(w,{className:"size-3.5"})}),e("span",{className:"flex size-5.5 items-center justify-center rounded-md bg-state-hover",children:e(w,{className:"size-3.5"})})]}),"bug-report":()=>e(p,{icon:"Bug",className:"size-4"})},ye="flex size-7 items-center justify-center rounded-md";function Ut(){return e(ge,{id:"sidebar-navigation",label:"The sidebar navigation, drawn by Moonlet or one plugin",className:"flex shrink-0",showChip:!1,children:n("div",{"data-guide-fixture":"sidebar-rail",className:"flex w-11 shrink-0 flex-col items-center gap-1 border-r border-border-hairline py-3",children:[e("span",{className:d(ye,"bg-sidebar-accent"),children:e(p,{icon:"Home",className:"text-foreground"})}),e("span",{className:ye,children:e(p,{icon:"Plug02"})}),e("span",{className:ye,children:e(p,{icon:"Zap"})}),n(v,{id:"nav-panel",label:"Plugin nav panels, in the navigation rail",className:"z-[2] flex size-7 items-center justify-center text-sidebar-foreground",showChip:!1,children:[e(w,{}),e("span",{className:"sr-only",children:"Your panel"})]}),e("span",{className:ye,children:e(p,{icon:"MoreHorizontal"})}),e("span",{className:"flex-1"}),e("span",{className:ye,children:e(p,{icon:"Settings"})})]})})}var nt={"top-reserve":()=>n("div",{"data-guide-fixture":"sidebar-top-reserve",className:"flex h-12 items-center justify-end px-2",children:[e(p,{icon:"ChevronLeft",className:"size-3.5"}),e(p,{icon:"ChevronRight",className:"ml-1.5 size-3.5"})]}),"thread-list":()=>n(ge,{id:"thread-list",label:"The thread list, replaceable by one plugin",className:"mx-1.5 flex-1 px-1.5 py-1.5",showChip:!1,children:[e("span",{className:"block px-2 pb-1 pt-1.5 text-xs text-subtle-foreground/75",children:"Pinned"}),Tn.map(t=>n("span",{className:"flex h-6.5 items-center gap-2 rounded-md px-2",children:[e("span",{className:"min-w-0 flex-1 truncate",children:t.title}),t.glyph==="spin"?e(v,{id:"thread-row-status",label:"A thread row status set by a plugin",className:"z-[2] flex size-5 shrink-0 items-center justify-center",children:e("span",{"aria-hidden":!0,className:"size-2.5 rounded-full border border-muted-foreground border-t-transparent"})}):t.glyph==="dot"?e("span",{"aria-hidden":!0,className:"size-2 rounded-full bg-success"}):null]},t.title)),e("span",{className:"block px-2 pb-1 pt-2 text-xs text-subtle-foreground/75",children:"Projects"}),["acme-app","dotfiles"].map(t=>n("span",{className:"flex h-6.5 items-center gap-1.5 rounded-md px-2",children:[e("span",{className:"min-w-0 truncate",children:t}),e(p,{icon:"ChevronRight",className:"size-3.5"})]},t))]}),footer:()=>n(v,{id:"sidebar-footer",label:"Plugin footer items can run actions or reveal content",className:"mx-1.5 mb-1.5 flex w-44 flex-col gap-1.5 p-1.5",children:[n("span",{className:"block w-full overflow-hidden rounded-md border border-border bg-surface-raised-solid",children:[n("span",{className:"flex h-6 items-center gap-1 border-b border-border px-1.5",children:[e("span",{className:"flex size-4 items-center justify-center rounded bg-state-hover text-2xs text-foreground",children:"A"}),e("span",{className:"flex size-4 items-center justify-center rounded text-2xs",children:"B"}),e("span",{className:"ml-auto text-2xs",children:"\xD7"})]}),n("span",{className:"block space-y-1.5 p-2",children:[n("span",{className:"flex items-center justify-between text-2xs",children:[e("span",{children:"5-hour limit"}),e("span",{className:"text-warning",children:"18% left"})]}),e("span",{className:"block h-1 overflow-hidden rounded-full bg-muted",children:e("span",{className:"block h-full w-4/5 rounded-full bg-warning"})})]})]}),e("span",{className:"flex w-full items-center gap-2 px-1 py-0.5",children:Pe.sidebarFooter.map(t=>e(Q,{children:Yt[t]?.()},t))})]})},Xt={copy:()=>e(p,{icon:"Copy",className:"size-3.5"}),edit:()=>e(p,{icon:"Edit",className:"size-3.5"}),"plugin-actions":()=>e(w,{className:"size-3.5"}),"message-menu":()=>e(p,{icon:"MoreHorizontal",className:"size-3.5"})},Ks={appSidebar:Object.keys(nt),sidebarFooter:Object.keys(Yt),messageActionBar:Object.keys(Xt)};function In({mobile:t}){let a=t?'[data-guide-fixture="right-panel-tab-strip"]':void 0;return n(Y,{children:[e(D,{id:"thread-info",label:"Plugin rows and sections in Moonlet's Info tab",anchor:'[data-guide-region="thread-info"]',clipTo:a,at:"lane"}),e(D,{id:"code-renderers",label:"Plugin code and diff renderers on Moonlet's Diff tab",anchor:'[data-guide-region="code-renderers"]',clipTo:a,at:"lane"}),e(D,{id:"browser-toolbar",label:"Plugin controls beside the Browser address bar",anchor:'[data-guide-tab="browser-toolbar"]',clipTo:a,at:"lane"}),e(D,{id:"thread-panel",label:"A plugin tab in the thread side panel",anchor:'[data-guide-region="thread-panel"]',clipTo:a,at:"lane"}),e(D,{id:"file-opener",label:"A plugin file viewer or editor tab",anchor:'[data-guide-region="file-opener"]',clipTo:a,at:"lane"})]})}function Qt({mobile:t=!1}){let[a,i]=y(!0),[r,s]=y(!1),o=_(void 0),c=()=>i(!0),u=()=>{i(!1),s(!0),window.clearTimeout(o.current),o.current=window.setTimeout(()=>i(!0),Mn)};return O(()=>()=>window.clearTimeout(o.current),[]),n("div",{"data-guide-fixture":"command-palette-flow","data-guide-state":a?"palette-open":"release-checklist-open",className:d("relative pb-2 pt-4",t?"px-6":"px-7"),children:[e(ie,{className:t?d("flex flex-col",se):void 0,children:n("div",{className:t?"relative min-h-0 flex-1":"relative min-h-[500px]",children:[n("div",{"data-guide-fixture":"command-palette-thread",className:d("flex bg-background",t?"h-full":"min-h-[500px]"),children:[t?null:n("aside",{className:"flex w-48 shrink-0 flex-col border-r border-border-seam bg-sidebar px-2.5 py-3",children:[n("div",{className:"flex items-center gap-1.5 px-1 text-foreground",children:[e(je,{}),e("span",{className:"ml-auto"}),e(p,{icon:"PanelLeft",className:"size-3.5"})]}),n("div",{className:"mt-5 flex items-center gap-2 rounded-md px-2 py-1.5 text-foreground",children:[e(p,{icon:"MessageSquarePlus",className:"size-3.5"}),"New thread"]}),n("div",{className:"flex items-center gap-2 rounded-md px-2 py-1.5",children:[e(p,{icon:"Search",className:"size-3.5"}),"Search threads"]}),e("div",{className:"mt-3 px-2 text-2xs font-medium uppercase tracking-wide text-subtle-foreground",children:"Threads"}),e("div",{className:"mt-1 rounded-md bg-state-hover px-2 py-2 text-foreground",children:"Ship release candidate"}),e("div",{className:"px-2 py-2",children:"Fix flaky checkout tests"}),e("div",{className:"px-2 py-2",children:"Update onboarding copy"}),n("div",{className:"mt-auto flex items-center gap-2 border-t border-border-hairline px-2 pt-3",children:[e(p,{icon:"Settings",className:"size-3.5"}),"Settings"]})]}),n("main",{className:d("min-w-0 flex-1 flex-col",t&&r&&!a?"hidden":"flex"),children:[n("header",{className:"flex h-12 items-center gap-2 border-b border-border-hairline px-4",children:[e("span",{className:"truncate text-foreground",children:"Ship release candidate"}),e(p,{icon:"MoreHorizontal",className:"size-3.5"}),e("span",{className:"flex-1"}),n("button",{type:"button",onClick:c,"aria-label":"Open Quick palette (Shift Command P)","data-guide-fixture":"command-palette-shortcut",className:"flex h-7 cursor-pointer items-center gap-1.5 rounded-md border border-border-hairline px-2 text-subtle-foreground hover:bg-state-hover hover:text-foreground",children:[e(p,{icon:"Search",className:"size-3.5"}),e("span",{children:"Quick palette"}),t?null:e("kbd",{className:"rounded bg-surface-recessed px-1.5 py-0.5 font-mono text-2xs text-foreground",children:"\u21E7\u2318P"})]})]}),n("div",{className:"flex-1 space-y-5 px-6 py-6",children:[e("div",{className:"flex justify-end",children:e("span",{className:"max-w-[76%] rounded-xl border border-border-seam bg-surface-recessed px-3 py-2 leading-relaxed text-foreground",children:"Prepare this branch for the release candidate."})}),n("div",{className:"max-w-[88%] space-y-3 leading-relaxed",children:[e("p",{className:"text-foreground",children:"The release build is ready for final checks. I verified the focused tests and collected the latest UI evidence."}),n("div",{className:"space-y-2 rounded-lg border border-border-hairline bg-surface-raised-solid p-3",children:[n("div",{className:"flex items-center gap-2 text-foreground",children:[e(p,{icon:"GitBranch",className:"size-3.5"}),"release/2026-08-25"]}),e("div",{className:"h-1.5 w-4/5 rounded-sm bg-muted/60"}),e("div",{className:"h-1.5 w-3/5 rounded-sm bg-muted/60"})]})]})]}),e("div",{className:"mx-5 mb-5 rounded-xl border border-border bg-card px-3 py-3 text-subtle-foreground shadow-sm",children:"Ask for a follow-up\u2026"})]}),r?n("aside",{"data-guide-fixture":"release-checklist-panel",className:d("flex shrink-0 flex-col border-l border-border-seam bg-sidebar",t?"w-full":"w-60"),children:[n("div",{className:"flex h-12 items-center gap-1.5 border-b border-border-hairline px-3",children:[e("span",{className:"flex size-7 items-center justify-center rounded-md",children:e(p,{icon:"Info",className:"size-3.5"})}),n("span",{role:"tab","aria-selected":"true","data-guide-fixture":"release-checklist-tab",className:"flex h-7 items-center gap-1.5 rounded-md bg-state-hover px-2 text-foreground",children:[e(w,{className:"size-3.5"}),"Release checklist"]})]}),n("div",{className:"space-y-4 p-4",children:[n("div",{children:[e("p",{className:"font-medium text-foreground",children:"Release checklist"}),e("p",{className:"mt-1 leading-relaxed text-subtle-foreground",children:"Final checks for this thread and branch."})]}),[["Tests and typecheck","Passed"],["UI evidence","Ready"],["Mergeability","Clean"]].map(([m,g])=>n("div",{className:"flex items-center gap-2 border-t border-border-hairline pt-3",children:[e("span",{className:"size-2 rounded-full bg-success"}),e("span",{className:"min-w-0 flex-1 text-foreground",children:m}),e("span",{className:"text-2xs text-subtle-foreground",children:g})]},m))]})]}):null]}),a?e("div",{"data-guide-fixture":"command-palette-overlay",className:"absolute inset-0 z-10 bg-black/40",children:n("div",{"data-guide-fixture":"command-palette-dialog",className:d("absolute grid grid-cols-[minmax(0,1fr)] gap-0 overflow-visible rounded-lg border border-border bg-background shadow-sm",t?"inset-x-0 bottom-0 rounded-b-none rounded-t-xl border-x-0 border-b-0 pb-3":"left-1/2 top-[12%] w-full max-w-xl -translate-x-1/2"),children:[t?e("span",{"aria-hidden":!0,className:"flex h-6 items-center justify-center",children:e("span",{className:"h-1 w-10 rounded-full bg-muted-foreground/20"})}):null,n("div",{className:"flex items-center gap-2 border-b px-3 text-sm",children:[e(p,{icon:"Search",className:"size-4 shrink-0 text-muted-foreground"}),e("input",{"aria-label":"Search commands",readOnly:!0,value:">release",className:"h-11 min-w-0 flex-1 bg-transparent text-foreground outline-none"})]}),n("div",{role:"listbox","aria-label":"Commands",className:"max-h-[min(24rem,50dvh)] overflow-y-auto p-1 text-sm",children:[n("span",{className:"flex w-full min-w-0 items-center gap-1.5 rounded px-2 py-1.5 text-left",children:["Open release notes",e("span",{className:"ml-auto text-muted-foreground",children:"Navigation"})]}),e(_n,{onRun:u}),n("span",{className:"flex w-full min-w-0 items-center gap-1.5 rounded px-2 py-1.5 text-left",children:["Copy link",e("span",{className:"ml-auto text-muted-foreground",children:"Thread"})]})]}),t?null:e(D,{id:"command-palette-actions",label:"Plugin actions in Moonlet's quick command palette",anchor:'[data-guide-region="command-palette-actions"]',at:"start",flush:!0})]})}):null]})}),t&&a?e(D,{id:"command-palette-actions",label:"Plugin actions in Moonlet's quick command palette",anchor:'[data-guide-region="command-palette-actions"]',at:"start"}):null]})}function Zt({mobile:t=!1,mobileScene:a="navigation"}){let[i,r]=y("browser-toolbar"),{expandedId:s}=K();O(()=>{(s==="thread-info"||s==="browser-toolbar"||s==="code-renderers"||s==="thread-panel"||s==="file-opener")&&r(s)},[s]);let o=t?a:"desktop";return n("div",{"data-guide-mobile-scene":t?o:void 0,className:t?"relative w-full px-6 pb-0 pt-[26px]":"relative w-full px-10 pb-0 pt-[26px]",children:[o==="desktop"||o==="navigation"?n(Y,{children:[e(D,{id:"sidebar-navigation",label:"The sidebar navigation, drawn by Moonlet or one plugin",anchor:'[data-guide-region="sidebar-navigation"]',at:"start",align:"start"}),e(D,{id:"nav-panel",label:"Plugin nav panels, in the navigation rail",anchor:'[data-guide-region="nav-panel"]',at:"start"}),e(D,{id:"thread-list",label:"The thread list, replaceable by one plugin",anchor:'[data-guide-region="thread-list"]',at:"start"})]}):null,o==="desktop"||o==="conversation"?n(Y,{children:[e(D,{id:"thread-header",label:"Plugin thread-header control, left end of the action row",anchor:'[data-guide-region="thread-header"]',at:"above"}),e(D,{id:"thread-actions",label:"Plugin thread actions, in the thread menu",anchor:'[data-guide-region="thread-actions"]',at:"above"}),e(D,{id:"content-scripts",label:"App-wide plugin scripts, running in the whole window",anchor:"[data-guide-frame]",at:"end",align:"end"})]}):null,o==="desktop"||o==="panel"?e(In,{mobile:t},i):null,e(Ln,{scene:o,rightPanelTab:i,onRightPanelTabSelect:r})]},o)}function Ln({scene:t,rightPanelTab:a,onRightPanelTabSelect:i}){let{expandedId:r}=K(),[s,o]=y(!1),c=Z("content-scripts"),u=r==="message-actions",m=t==="conversation"||s||u;if(t==="navigation")return e(ie,{className:d("flex bg-background",se),children:n("div",{className:"flex w-[86%] border-r border-border-seam bg-sidebar text-sidebar-foreground",children:[e(Ut,{}),n("div",{className:"flex min-w-0 flex-1 flex-col",children:[n("div",{className:"flex h-12 items-center gap-3 px-3 text-sm",children:[e(p,{icon:"MessageSquarePlus"}),"New thread"]}),Pe.appSidebar.filter(P=>P!=="top-reserve").map(P=>e(Q,{children:nt[P]?.()},P))]})]})});if(t==="panel")return e(ie,{className:d("flex flex-col",se),children:e(jt,{compact:!0,activeTab:a,onTabSelect:i})});let g=t==="conversation";return n(ie,{className:g?d("relative flex flex-col",se):"relative overflow-visible",children:[e("span",{"aria-hidden":!0,"data-guide-target":"content-scripts",className:d("pointer-events-none absolute inset-0 z-[5] rounded-lg",me(c.outlined))}),g?null:e("span",{"aria-hidden":!0,"data-guide-fixture":"sidebar-trigger-overlay",className:"absolute left-2 top-2.5 z-[4] flex size-7 items-center justify-center rounded-md",children:e(p,{icon:"PanelLeft",className:"size-4"})}),n("div",{className:g?"flex min-h-0 flex-1 items-stretch":"flex min-h-[650px] items-stretch",children:[g?null:n("div",{className:"flex w-[300px] shrink-0 border-r border-border-seam bg-sidebar text-sidebar-foreground",children:[e(Ut,{}),e("div",{className:"flex min-w-0 flex-1 flex-col",children:Pe.appSidebar.map(P=>e(Q,{children:nt[P]?.()},P))})]}),n("div",{className:"flex min-w-0 flex-1 flex-col",children:[n("div",{className:"flex h-12 items-center gap-2 border-b border-border-hairline px-4",children:[g?e(p,{icon:"PanelLeft",className:"size-5"}):null,e("span",{className:"truncate text-foreground",children:"Fix flaky checkout tests"}),e(v,{id:"thread-actions",label:"Plugin thread actions, in the thread menu",className:"flex h-6.5 items-center px-1",showChip:!1,children:e(p,{icon:"MoreHorizontal",className:"size-3.5"})}),e("span",{className:"flex-1"}),e(v,{id:"thread-header",label:"Plugin thread-header control, left end of the action row",className:"flex h-6.5 items-center gap-1 px-2",showChip:!1,children:e(w,{className:"size-3.5"})}),g?e(p,{icon:"PanelRight",className:"size-5"}):null]}),n("div",{"data-guide-fixture":"app-window-timeline",className:g?"flex min-h-0 flex-1 flex-col justify-end gap-5 overflow-hidden px-4 py-4 text-sm leading-relaxed":"min-h-[510px] flex-1 space-y-7 overflow-hidden px-5 py-6",children:[e("div",{className:"flex justify-end",children:e("span",{className:"max-w-[70%] rounded-xl border border-border-seam bg-surface-recessed px-2.5 py-2 leading-snug text-foreground",children:"Fix the flaky checkout tests"})}),n("div",{className:"w-[78%] space-y-1",children:[n("span",{className:"flex items-center gap-1.5 text-foreground",children:[e(w,{className:"size-3.5"}),"Re-ran checkout suite",e("span",{className:"text-subtle-foreground",children:"Completed"})]}),e(ge,{id:"timeline-renderers",label:"Plugin-owned content inside a timeline entry",className:"ml-5 block space-y-1 px-2.5 py-2",chip:"side",children:n("div",{className:"flex items-center gap-2","aria-hidden":!0,children:[e("span",{className:"h-1.5 w-2/3 rounded-sm bg-muted/60"}),e("span",{className:"h-1.5 w-12 rounded-sm bg-foreground/40"})]})})]}),n("div",{"data-guide-fixture":"assistant-message",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onFocusCapture:()=>o(!0),onBlurCapture:()=>o(!1),className:"w-[88%] space-y-2",children:[e("p",{className:"leading-relaxed",children:"The retries cluster in two suites. Failure rate by suite:"}),n(v,{id:"message-directives",label:"A plugin component rendered inline by a message directive",className:"block w-3/5 px-2.5 py-2.5",children:[n("span",{className:"flex items-end gap-1.5","aria-hidden":!0,children:[e("span",{className:"h-4 w-3.5 rounded-sm bg-muted"}),e("span",{className:"h-8 w-3.5 rounded-sm bg-foreground/40"}),e("span",{className:"h-2.5 w-3.5 rounded-sm bg-muted"}),e("span",{className:"h-6 w-3.5 rounded-sm bg-muted"}),e("span",{className:"h-2 w-3.5 rounded-sm bg-muted"})]}),n("span",{className:"mt-1.5 flex items-center gap-1.5",children:[e(w,{className:"size-3.5"}),"::your-directive"]})]}),n(v,{id:"code-fence-renderers",label:"A plugin component rendering a fenced code block",className:"block w-3/5 px-2.5 py-2.5",children:[n("span",{className:"flex gap-1.5","aria-hidden":!0,children:[e("span",{className:"h-5 w-12 rounded-sm bg-muted"}),e("span",{className:"h-5 w-8 rounded-sm bg-foreground/40"})]}),n("span",{className:"mt-1.5 flex items-center gap-1.5",children:[e(w,{className:"size-3.5"}),"```ui"]})]}),n("div",{className:"space-y-1.5",children:[u?n("div",{"aria-hidden":!0,"data-guide-fixture":"message-action-selection-toolbar",className:"inline-flex items-center gap-0.5 rounded-md border border-border bg-popover p-0.5 text-2xs text-foreground shadow-md",children:[n("span",{className:"flex items-center gap-1 rounded px-1.5 py-0.5",children:[e(p,{icon:"MessageSquarePlus",className:"size-3.5"}),"Add to chat"]}),e("span",{className:"mx-0.5 h-4 w-px bg-border"}),n("span",{className:"flex items-center gap-1 rounded bg-state-hover px-1.5 py-0.5",children:[e(w,{className:"size-3.5"}),"Your action"]})]}):null,n("p",{className:"leading-relaxed",children:["Fixed by isolating the"," ",e("span",{"data-guide-fixture":"message-action-selected-text",className:d("rounded-sm px-0.5",u&&"bg-file-accent/25 text-foreground"),children:"Stripe mock"})," ","per test."]})]}),e("div",{className:"flex h-7 items-start",children:e(v,{id:"message-actions",label:"Plugin message actions fit inline before overflowing into the menu",className:"inline-flex items-center px-2 py-1.5",children:e("span",{"data-guide-fixture":"message-action-hover-row",className:d("inline-flex items-center gap-2 transition-opacity",m?"opacity-100":"opacity-0"),children:Pe.messageActionBar.map(P=>e(Q,{children:Xt[P]?.()},P))})})})]})]}),e("div",{className:"space-y-2 border-t border-border-hairline p-4",children:n(v,{id:"pending-interaction",label:"A plugin ask-the-user form, shown in place of the composer",className:"block border border-border bg-card p-3",children:[n("span",{className:"flex items-center gap-1.5 text-foreground",children:[e(w,{className:"size-3.5"}),"Pick a release channel"]}),n("span",{className:"mt-2 flex gap-1.5","aria-hidden":!0,children:[e("span",{className:"h-5.5 flex-1 rounded-md border border-border"}),e("span",{className:"flex h-5.5 items-center rounded-md border border-border px-2",children:"Cancel"}),e("span",{className:"flex h-5.5 items-center rounded-md bg-foreground px-2 text-background",children:"Submit"})]})]})})]}),g?null:e(jt,{activeTab:a,onTabSelect:i})]}),n(v,{id:"app-overlay",label:"App-wide floating plugin interface",className:d("z-[6] flex w-44 items-center gap-2 border border-border bg-popover px-3 py-2 text-foreground shadow-md",g?"relative mb-4 ml-auto mr-4 shrink-0":"absolute bottom-24 right-12"),children:[e(w,{className:"size-4 shrink-0"}),n("span",{className:"min-w-0",children:[e("span",{className:"block truncate font-medium",children:"Floating widget"}),e("span",{className:"block truncate text-2xs text-subtle-foreground",children:"2 agents active"})]})]})]})}var On=[{icon:"Folder",label:"Project",value:"checkout-service"},{icon:"GitBranch",label:"Branch",value:"fix/retry-flake"}];function Gt({icon:t,label:a,children:i}){return n("div",{className:"grid grid-cols-[96px_minmax(0,1fr)] items-center gap-x-3 py-0.5 text-xs leading-5",children:[n("span",{className:"flex items-center gap-1.5 text-muted-foreground",children:[t,a]}),e("span",{className:"min-w-0 truncate text-foreground",children:i})]})}function Bn(){return n("div",{"data-guide-fixture":"thread-info",className:"flex flex-col text-xs",children:[n("div",{className:"flex flex-col gap-1.5",children:[On.map(t=>e(Gt,{icon:e(p,{icon:t.icon,className:"size-3"}),label:t.label,children:t.value},t.label)),e(v,{id:"thread-info",label:"Plugin rows and sections in Moonlet's Info tab",className:"block rounded-md",showChip:!1,children:e(Gt,{icon:e(w,{className:"size-3"}),label:"Deploy",children:"Staging \xB7 healthy"})})]}),n(v,{id:"thread-info",label:"Plugin rows and sections in Moonlet's Info tab",className:"mt-3 block rounded-md border-t border-border-hairline pt-3",showChip:!1,children:[n("span",{className:"mb-1 flex items-center font-medium text-muted-foreground",children:["Automations",e("span",{className:"ml-1.5 rounded-full bg-surface-recessed px-1.5 text-2xs leading-4 font-normal tabular-nums",children:"1"})]}),n("span",{className:"flex h-6 items-center gap-1.5",children:[e(p,{icon:"Calendar",className:"size-3"}),e("span",{className:"min-w-0 flex-1 truncate text-foreground",children:"Nightly CI check"}),e("span",{className:"shrink-0 text-2xs text-subtle-foreground",children:"Next 9:00 AM"})]})]}),n("div",{className:"mt-3 border-t border-border-hairline pt-3",children:[n("span",{className:"mb-1 flex items-center font-medium text-muted-foreground",children:["Commits",e("span",{className:"ml-1.5 rounded-full bg-surface-recessed px-1.5 text-2xs leading-4 font-normal tabular-nums",children:"2"})]}),e("span",{className:"block h-2 w-3/5 rounded-sm bg-muted/60"})]})]})}function jt({compact:t=!1,activeTab:a,onTabSelect:i}){let r=_(null);oe(()=>{if(!t)return;let o=r.current,u=o?.querySelector(`[data-guide-tab="${a}"]`)?.closest("a, button");if(!o||!u)return;let m=o.getBoundingClientRect(),g=u.getBoundingClientRect();g.left<m.left?o.scrollLeft+=g.left-m.left-12:g.right>m.right&&(o.scrollLeft+=g.right-m.right+12)},[a,t]);let s=o=>d("flex h-7 shrink-0 items-center rounded-md",a===o&&"bg-state-hover");return n("div",{className:d("flex shrink-0 flex-col bg-sidebar",t?"min-h-0 w-full flex-1":"w-[380px] border-l border-border-seam"),children:[n("div",{ref:r,"data-guide-fixture":"right-panel-tab-strip",className:d("flex h-12 items-center gap-1.5 border-b border-border-hairline px-3",t&&"overflow-x-auto"),children:[n("span",{"data-guide-fixture":"right-panel-fixed-tabs",className:"flex shrink-0 items-center gap-1.5",children:[e(v,{id:"thread-info",label:"Plugin rows and sections in Moonlet's Info tab",className:d(s("thread-info"),"px-1.5"),showChip:!1,onActivate:()=>i("thread-info"),children:e("span",{"data-guide-tab":"thread-info",className:"contents",children:e(p,{icon:"Info",className:"size-3.5"})})}),e(v,{id:"code-renderers",label:"Plugin code and diff renderers on Moonlet's Diff tab",className:d(s("code-renderers"),"gap-1.5 whitespace-nowrap pl-1.5 pr-2"),showChip:!1,onActivate:()=>i("code-renderers"),children:n("span",{"data-guide-tab":"code-renderers",className:"contents",children:[e(p,{icon:"FileDiff",className:"size-3.5"}),e("span",{className:"text-foreground",children:"Diff"})]})})]}),n("span",{"data-guide-fixture":"right-panel-content-tabs",className:d("flex items-center gap-1.5",t?"shrink-0":"min-w-0 overflow-hidden"),children:[e(v,{id:"browser-toolbar",label:"Plugin controls beside the Browser address bar",className:d(s("browser-toolbar"),"gap-1.5 whitespace-nowrap px-2 text-foreground"),showChip:!1,onActivate:()=>i("browser-toolbar"),children:e("span",{"data-guide-tab":"browser-toolbar",children:"Browser"})}),e(v,{id:"thread-panel",label:"A plugin tab in the thread side panel",className:d(s("thread-panel"),"gap-1.5 whitespace-nowrap pl-1.5 pr-2"),showChip:!1,onActivate:()=>i("thread-panel"),children:n("span",{"data-guide-tab":"thread-panel",className:"contents",children:[e(w,{className:"size-3.5"}),e("span",{className:"text-foreground",children:"Your tab"})]})}),e(v,{id:"file-opener",label:"A plugin file viewer or editor tab",className:d(s("file-opener"),"gap-1.5 whitespace-nowrap pl-1.5 pr-2",!t&&"min-w-0 shrink"),showChip:!1,onActivate:()=>i("file-opener"),children:n("span",{"data-guide-tab":"file-opener",className:"contents",children:[e(p,{icon:"FileText",className:"size-3.5 shrink-0"}),e("span",{className:"min-w-0 truncate text-foreground",children:"retry-notes.md"})]})})]}),e("span",{className:"flex-1"}),e(p,{icon:"Plus",className:"size-3.5 shrink-0"}),e(p,{icon:"PanelRight",className:"size-3.5 shrink-0"})]}),e("div",{"data-guide-tab-body":a,className:d("min-h-0 flex-1 p-4",t&&"text-sm leading-relaxed"),children:a==="thread-info"?e(Bn,{}):a==="browser-toolbar"?n("div",{"data-guide-fixture":"browser-toolbar",className:"space-y-4",children:[n("div",{className:"flex items-center gap-2 border-b border-border-hairline pb-3",children:[e(p,{icon:"ChevronLeft",className:"size-3.5"}),e("div",{className:"min-w-0 flex-1 truncate rounded-md bg-surface-recessed px-2 py-1.5 text-subtle-foreground",children:"https://example.com"}),e(v,{id:"browser-toolbar",label:"Plugin controls beside the Browser address bar",className:"flex size-7 items-center justify-center",showChip:!1,children:e(w,{className:"size-3.5"})})]}),n("div",{className:"space-y-3 rounded-md border border-border-hairline bg-background p-4",children:[e("span",{className:"block h-2 w-2/5 rounded-sm bg-foreground/50"}),e("span",{className:"block h-2 w-4/5 rounded-sm bg-muted/60"}),e("span",{className:"block h-2 w-3/5 rounded-sm bg-muted/60"})]})]}):a==="thread-panel"?n("div",{"data-guide-fixture":"thread-panel",className:"space-y-2",children:[n("div",{className:"flex items-center gap-1.5 text-foreground",children:[e(w,{className:"size-3.5"}),"Release checklist"]}),e("p",{className:"leading-relaxed text-subtle-foreground",children:"Your plugin owns this tab and receives the thread it was opened from."}),e("span",{className:"block h-2 w-4/5 rounded-sm bg-muted/60"}),e("span",{className:"block h-2 w-3/5 rounded-sm bg-muted/60"})]}):a==="file-opener"?n("div",{"data-guide-fixture":"file-viewer",className:"space-y-3",children:[n("div",{className:"flex items-center gap-1.5 text-xs text-subtle-foreground",children:[e(p,{icon:"FileText",className:"size-3.5"}),e("span",{children:"docs"}),e("span",{children:"/"}),e("span",{className:"text-foreground",children:"retry-notes.md"})]}),n("article",{className:"space-y-3 rounded-lg border border-border-hairline bg-background p-4",children:[n("div",{className:"flex items-center gap-2",children:[e("h3",{className:"text-sm font-semibold text-foreground",children:"Checkout retry notes"}),n("span",{className:"ml-auto flex items-center gap-1 rounded bg-surface-recessed px-1.5 py-1 text-2xs text-subtle-foreground",children:[e(w,{className:"size-3"}),"Custom viewer"]})]}),e("p",{className:"leading-relaxed text-subtle-foreground",children:"Flakes cluster around shared test state. Reset each mock between cases before rerunning the suite."}),e("div",{className:"rounded-md border-l-2 border-file-accent bg-surface-recessed px-3 py-2 leading-relaxed text-foreground",children:"Next: isolate the Stripe mock per test."})]})]}):n("div",{"data-guide-fixture":"diff-renderer",className:"space-y-3",children:[n("div",{className:"flex items-center gap-1.5 text-foreground",children:[e(p,{icon:"FileDiff",className:"size-3.5"}),e("span",{className:"font-medium",children:"tests/checkout.test.ts"}),n("span",{className:"ml-auto flex items-center gap-1 rounded bg-surface-recessed px-1.5 py-1 text-2xs text-subtle-foreground",children:[e(w,{className:"size-3"}),"Custom diff"]})]}),n("div",{className:"overflow-hidden rounded-md border border-border-hairline bg-background font-mono text-2xs leading-relaxed",children:[e("div",{className:"border-b border-border-hairline bg-surface-recessed px-2 py-1.5 text-subtle-foreground",children:'@@ -18,7 +18,8 @@ describe("checkout")'}),n("div",{className:"grid grid-cols-[24px_24px_1fr] px-2 py-1 text-subtle-foreground",children:[e("span",{children:"18"}),e("span",{children:"18"}),e("span",{children:"beforeEach(() => {"})]}),n("div",{className:"grid grid-cols-[24px_24px_1fr] bg-destructive/10 px-2 py-1 text-destructive-text",children:[e("span",{children:"19"}),e("span",{}),e("span",{children:"\u2212 sharedMock.reset()"})]}),n("div",{className:"grid grid-cols-[24px_24px_1fr] bg-success/10 px-2 py-1 text-success",children:[e("span",{}),e("span",{children:"19"}),e("span",{children:"+ stripeMock.reset()"})]}),n("div",{className:"grid grid-cols-[24px_24px_1fr] bg-success/10 px-2 py-1 text-success",children:[e("span",{}),e("span",{children:"20"}),e("span",{children:"+ inventoryMock.reset()"})]}),n("div",{className:"grid grid-cols-[24px_24px_1fr] px-2 py-1 text-subtle-foreground",children:[e("span",{children:"20"}),e("span",{children:"21"}),e("span",{children:"})"})]})]})]})})]})}function Jt({mobile:t=!1}){let a=Z("composer-banners"),[i,r]=y(!1);return e("div",{className:d("relative pb-2 pt-4",t?"px-6":"px-7"),children:n("div",{className:"relative w-full select-none text-xs leading-none text-muted-foreground",children:[n("div",{"data-guide-annotation-layer":"composer-controls",className:"pointer-events-none absolute inset-0 z-50",children:[e(D,{id:"composer-banners",label:"Plugin banners and thread context, above the prompt box",anchor:'[data-guide-target="composer-banners"]',at:"end"}),e(D,{id:"composer-replacement",label:"The composer box, replaceable by one plugin",anchor:'[data-guide-region="composer-replacement"]',at:"start"}),e(D,{id:"composer-state",label:"The draft prompt a plugin can read and lock",anchor:'[data-guide-target="composer-state"]',at:"above"}),e(D,{id:"composer-plus-menu",label:"Plugin rows in the composer's + menu",anchor:'[data-guide-target="composer-plus-menu"]',at:"above"}),e(D,{id:"provider-picker",label:"Your agent provider and its mark, in the model picker",anchor:'[data-guide-target="provider-picker"]',at:"above"}),e(D,{id:"composer-actions",label:"Plugin composer actions, before voice and send",anchor:'[data-guide-target="composer-actions"]',at:"above"})]}),e(ie,{className:t?d("flex flex-col",se):void 0,children:n("div",{className:d("flex flex-col",t?"min-h-0 flex-1":"min-h-[506px]"),children:[n("div",{"aria-hidden":!0,className:"flex h-11 items-center gap-2 border-b border-border-hairline px-4 text-sm",children:[e("span",{className:"truncate text-foreground",children:"Ship the release notes"}),e(p,{icon:"MoreHorizontal",className:"size-3.5"}),e("span",{className:"flex-1"})]}),n("div",{"aria-hidden":!0,className:"min-h-0 flex-1 space-y-4 overflow-hidden px-4 py-4 text-sm leading-relaxed",children:[e("div",{className:"flex justify-end",children:e("span",{className:"max-w-[70%] rounded-xl border border-border-seam bg-surface-recessed px-3 py-2 text-foreground",children:"Draft the release notes"})}),e("p",{className:"w-[88%]",children:"Drafted. Two rough edges left in checkout \u2014 reply with what to fold in."})]}),n("div",{className:"px-4 pb-4",children:[n(v,{id:"composer-banners",label:"Plugin banners and thread context, above the prompt box",showChip:!1,target:!0,className:d("relative mb-2.5 block space-y-2 text-sm",me(a.outlined)),onActivate:()=>r(s=>!s),children:[n("span",{className:"flex items-center gap-2 rounded-md border border-border-hairline bg-surface-raised px-3 py-3",children:[e(w,{className:"size-3.5"}),e("span",{className:"text-foreground",children:"Your banner"})]}),n("span",{"data-guide-fixture":"thread-context-segment",className:"block overflow-hidden rounded-lg border border-border-hairline bg-surface-raised text-xs",children:[n("span",{className:"flex items-center gap-2 px-3 py-2",children:[e(p,{icon:"UserRound",className:"size-3.5"}),n("span",{className:"flex items-center gap-1.5 text-foreground",children:[e(w,{className:"size-3.5"}),"Your context"]}),e("span",{className:"flex-1",children:"Changed files"})]}),i?e("span",{className:"block border-t border-border-hairline px-3 py-2",children:"Context details"}):null]})]}),e(Dn,{mobile:t})]})]})})]})})}function Dn({mobile:t=!1}){let a=Z("composer-state"),i=Z("mention-provider"),r=Z("composer-plus-menu"),s=Z("provider-picker"),o=Z("composer-actions");return n("div",{"data-guide-fixture":"embedded-composer",className:"space-y-2",children:[e(ge,{id:"composer-replacement",label:"The composer box, replaceable by one plugin",showChip:!1,className:d("flex flex-col rounded-xl border border-border bg-background shadow-lift",t?"min-h-48":"h-36"),children:n("div",{"data-guide-layer":"composer-content",className:d("pointer-events-none relative z-[2] flex flex-1 flex-col px-2 pb-2 pt-7 [&_a]:pointer-events-auto",t&&"gap-7"),children:[n("div",{className:d("mx-2 flex items-center rounded-md text-sm leading-none text-foreground",t?"min-h-7 flex-wrap gap-y-7":"h-7",me(a.outlined)),children:[n(v,{id:"composer-state",label:"The draft prompt a plugin can read and lock",showChip:!1,target:!0,className:"whitespace-pre",children:["Summarize"," "]}),n("span",{className:"relative",children:[i.outlined?n("span",{"aria-hidden":!0,"data-guide-transient-for":"mention-provider",className:"pointer-events-none absolute bottom-full left-0 z-[60] mb-7 block w-44 overflow-hidden rounded-md border border-border bg-popover pb-1 text-xs shadow-md",children:[e("span",{className:"block px-3 pb-1 pt-1.5 text-muted-foreground",children:"Your plugin"}),n("span",{className:"mx-1 flex h-7 items-center gap-1.5 rounded-md bg-state-hover px-2 text-foreground",children:[e(w,{className:"size-3.5"}),"release-notes"]}),n("span",{className:"mx-1 flex h-7 items-center gap-1.5 px-2",children:[e(w,{className:"size-3.5 opacity-60"}),"roadmap"]})]}):null,e(ge,{id:"mention-provider",label:"Plugin mention results in the @ typeahead",className:"flex h-5.5 items-center rounded-full border border-surface-selected-border bg-surface-selected px-1.5",chip:"outside-above",showChip:!r.outlined,children:e("span",{"aria-hidden":!0,children:"@release-notes"})})]}),n("span",{"aria-hidden":!0,className:"whitespace-pre",children:[" ","and fix the"," "]}),e(ge,{id:"composer-rich-text",label:"Plugin highlighting, painted over the draft prompt",className:"flex h-5.5 items-center rounded bg-warning/25 px-1 ring-1 ring-warning/40",chip:"outside-above",showChip:!r.outlined,children:e("span",{"aria-hidden":!0,children:"TODO"})}),n("span",{"aria-hidden":!0,className:"whitespace-pre",children:[" ","in checkout."]})]}),n("div",{className:"mt-auto flex h-10 items-center gap-1",children:[n("span",{className:"relative",children:[r.outlined?n("span",{"aria-hidden":!0,"data-guide-transient-for":"composer-plus-menu",className:"pointer-events-none absolute bottom-full left-0 z-[60] mb-7 block w-44 rounded-md border border-border bg-popover p-1 shadow-md",children:[n("span",{className:"flex h-6 items-center gap-1.5 px-1.5",children:[e(p,{icon:"Paperclip",className:"size-3.5"}),"Attach files"]}),n("span",{className:"flex h-6 items-center gap-1.5 px-1.5",children:[e(p,{icon:"Zap",className:"size-3.5"}),"Skills"]}),n("span",{className:"flex h-6 items-center gap-1.5 rounded bg-state-hover px-1.5 text-foreground",children:[e(w,{className:"size-3.5"}),"Your action"]})]}):null,e(v,{id:"composer-plus-menu",label:"Plugin rows in the composer's + menu",showChip:!1,target:!0,className:d("flex size-10 items-center justify-center rounded-md",me(r.outlined)),children:e(p,{icon:"Plus",className:"size-4"})})]}),n(v,{id:"provider-picker",label:"Your agent provider and its mark, in the model picker",showChip:!1,target:!0,className:d("flex h-10 items-center gap-1.5 whitespace-nowrap rounded-md px-2 text-foreground",me(s.outlined)),children:[e(Kt,{}),"Fable 5",t?null:e("span",{className:"text-subtle-foreground",children:"High"})]}),e("span",{className:"flex-1"}),n("span",{className:"relative",children:[o.outlined?n("span",{"aria-hidden":!0,"data-guide-transient-for":"composer-actions",className:"pointer-events-none absolute bottom-full right-0 z-[60] mb-7 block w-48 rounded-md border border-border bg-popover p-2 shadow-md",children:[e("span",{className:"block border-b border-border pb-1 text-xs text-subtle-foreground",children:"Search saved prompts"}),e("span",{className:"mt-1 block rounded bg-state-hover px-2 py-1 text-xs",children:"Review this change"})]}):null,e(v,{id:"composer-actions",label:"Plugin composer actions, before voice and send",showChip:!1,target:!0,className:d("flex size-9 items-center justify-center rounded-md bg-state-hover",me(o.outlined)),children:e("span",{"data-guide-fixture":"plugin-composer-action",children:e(w,{className:"size-3.5"})})})]}),e("span",{className:"flex size-9 items-center justify-center",children:e(p,{icon:"Mic",className:"size-4"})}),e("span",{"data-guide-icon":"CornerDownLeft",className:"flex size-9 items-center justify-center rounded-md bg-foreground",children:e(p,{icon:"CornerDownLeft",className:"size-3.5 text-background"})})]})]})}),n("div",{className:"flex items-center justify-between px-2.5","aria-hidden":!0,children:[n("span",{className:"flex items-center gap-1.5",children:[e(p,{icon:"Folder",className:"size-3.5"}),"acme-app \xB7 worktree"]}),e("span",{children:"Full Access"})]})]})}function en({mobile:t=!1,panel:a=!1}){return t?e("div",{className:"px-6 pt-4",children:n(ie,{className:d("flex flex-col",se),children:[n("div",{className:"flex h-12 shrink-0 items-center gap-3 border-b border-border-seam px-3 text-sm",children:[e(p,{icon:"PanelLeft",className:"size-5"}),e("span",{className:"min-w-0 flex-1",children:"New thread"}),e(v,{id:"home-page",label:"The home page, which a plugin can replace with one of its pages",className:"px-2 text-xs",children:"Home"}),e(p,{icon:"PanelRight",className:"size-5"})]}),a?n("div",{"data-guide-mobile-scene":"panel",className:"min-h-0 flex-1 space-y-1 p-3 text-sm",children:[e("div",{className:"px-2 pb-1 text-subtle-foreground",children:"Actions"}),n("div",{className:"flex h-10 items-center gap-2 rounded-md px-2",children:[e(p,{icon:"Globe"}),"Open browser"]}),n("div",{className:"flex h-10 items-center gap-2 rounded-md px-2",children:[e(p,{icon:"Terminal"}),"Start terminal"]}),n(v,{id:"new-thread-panel",label:"A plugin action in the new-thread panel launcher",className:"flex h-10 items-center gap-2 px-2",children:[e(w,{}),"Your action"]})]}):n("div",{className:"flex min-h-0 flex-1 flex-col justify-end gap-4 overflow-hidden p-4 text-sm leading-relaxed",children:[e("div",{className:"text-xs text-subtle-foreground",children:"Recent threads"}),e("div",{children:"Fix flaky checkout tests"}),n(v,{id:"homepage-section",label:"A plugin homepage section, in the home content above the mobile composer",className:"block border border-border-seam p-3",children:[n("span",{className:"flex items-center gap-2 font-medium",children:[e(w,{}),"Your section"]}),e("span",{className:"mt-3 block",children:"Release 1.4 \xB7 Bug triage \xB7 Design QA"})]}),e($t,{})]})]})}):n("div",{className:"relative px-7 pb-2 pt-4",children:[e(D,{id:"new-thread-panel",label:"A plugin action in the new-thread panel launcher",anchor:'[data-guide-region="new-thread-panel"]',at:"end"}),e("div",{children:n(ie,{children:[n("div",{className:"flex items-center gap-2 border-b border-border-hairline px-3 py-2",children:[e(je,{}),e(v,{id:"home-page",label:"The home page, which a plugin can replace with one of its pages",className:"ml-2 px-2 text-xs",children:"Home"})]}),n("div",{className:"flex min-h-[485px] items-stretch",children:[e("div",{className:"min-w-0 flex-1 px-6 pb-6 pt-4",children:n("div",{className:"mx-auto w-full max-w-[560px] space-y-2.5",children:[e($t,{}),n(v,{id:"homepage-section",label:"A plugin homepage section, below the composer",className:"mt-4 block px-3 py-2.5",children:[n("span",{className:"flex items-center gap-1.5 pb-2 font-medium text-foreground",children:[e(w,{className:"size-3.5"}),"Your section"]}),e("span",{className:"grid grid-cols-3 gap-2","aria-hidden":!0,children:["Release 1.4","Bug triage","Design QA"].map(i=>n("span",{className:"space-y-1.5 rounded-md border border-border-hairline bg-surface-raised p-2.5",children:[e("span",{className:"block text-foreground",children:i}),e("span",{className:"block h-1.5 w-4/5 rounded-sm bg-muted/60"}),e("span",{className:"block h-1.5 w-3/5 rounded-sm bg-muted/60"})]},i))})]})]})}),n("div",{className:"w-[210px] shrink-0 border-l border-border-seam bg-sidebar p-2",children:[e("span",{className:"block px-1.5 pb-1.5 pt-1 text-xs text-subtle-foreground/75",children:"Actions"}),n("span",{className:"flex h-6.5 items-center gap-2 rounded-md px-2",children:[e(p,{icon:"Globe",className:"size-3.5"}),"Open browser"]}),n("span",{className:"flex h-6.5 items-center gap-2 rounded-md px-2",children:[e(p,{icon:"Terminal",className:"size-3.5"}),"Start terminal"]}),n(v,{id:"new-thread-panel",label:"A plugin action in the new-thread panel launcher",className:"flex h-6.5 items-center gap-2 px-2",showChip:!1,children:[e(w,{className:"size-3.5"}),e("span",{className:"text-foreground",children:"Your action"})]})]})]})]})})]})}function tn({mobile:t=!1}){let a=n(ie,{className:t?d("flex flex-col",se):void 0,children:[n("div",{className:"flex items-center gap-2 border-b border-border-hairline px-3 py-2.5",children:[t?e(p,{icon:"PanelLeft",className:"size-5"}):e(je,{}),e("span",{className:"pl-1 font-medium text-foreground",children:"Settings"})]}),n("div",{className:d("mx-auto w-full max-w-[520px] space-y-4 px-4 pb-5 pt-4",t?"min-h-0 flex-1 overflow-hidden":"min-h-[470px]"),children:[n("span",{className:"flex items-center gap-1 text-muted-foreground",children:[e(p,{icon:"ChevronLeft",className:"size-3.5"}),"Plugin details"]}),n("div",{className:"flex items-center gap-3",children:[e("span",{className:"flex size-9 shrink-0 items-center justify-center",children:e(w,{className:"size-5"})}),n("span",{className:"min-w-0 flex-1",children:[e("span",{className:"block text-sm font-semibold text-foreground",children:"Hello"}),e("span",{className:"block truncate pt-1 text-subtle-foreground",children:"A friendly example plugin."})]}),e(we,{checked:!0,"aria-hidden":!0,tabIndex:-1,className:"pointer-events-none"})]}),n("div",{className:"space-y-2",children:[e("span",{className:"block text-subtle-foreground",children:"Configuration"}),n(v,{id:"declarative-settings",label:"The form Moonlet generates from the fields you declare",className:"block bg-surface-recessed-solid p-3",children:[n("span",{className:d("flex items-start justify-between gap-3 py-1.5",t&&"flex-wrap"),children:[n("span",{className:"min-w-0",children:[n("span",{className:"flex items-center gap-1.5 text-foreground",children:["API key",e("span",{className:"rounded border border-border px-1.5 py-0.5 text-xs",children:"secret"})]}),e("span",{className:"block pt-1 leading-relaxed",children:"Stored server-side; never sent to the browser."})]}),e("span",{"aria-hidden":!0,className:"flex h-6 w-32 shrink-0 items-center rounded-md border border-border bg-card px-2 text-xs text-subtle-foreground",children:"[set]"})]}),n("span",{className:d("flex items-start justify-between gap-3 py-1.5",t&&"flex-wrap"),children:[n("span",{className:"min-w-0",children:[e("span",{className:"block text-foreground",children:"Case-sensitive search"}),e("span",{className:"block pt-1 leading-relaxed",children:"Match capitalisation when looking things up."})]}),e(we,{checked:!0,"aria-hidden":!0,tabIndex:-1,className:"pointer-events-none mt-0.5"})]}),t?null:n(Y,{children:[n("span",{className:d("flex items-start justify-between gap-3 py-1.5",t&&"flex-wrap"),children:[n("span",{className:"min-w-0",children:[e("span",{className:"block text-foreground",children:"Retry attempts"}),e("span",{className:"block pt-1 leading-relaxed",children:"Maximum retries before stopping."})]}),e("span",{"aria-hidden":!0,className:"flex h-6 w-32 shrink-0 items-center rounded-md border border-border bg-card px-2 text-xs text-foreground",children:"3"})]}),n("span",{className:"block py-1.5",children:[e("span",{className:"block text-foreground",children:"Custom instructions"}),e("span",{className:"block pt-1 leading-relaxed",children:"Added to every agent task on this host."}),e("span",{"aria-hidden":!0,className:"mt-2 block h-12 rounded-md border border-border bg-card px-2 py-1.5 text-subtle-foreground",children:"Keep answers concise and run focused tests."})]})]})]}),n(v,{id:"settings-section",label:"A React component you write, under the generated form",className:"block px-1 pb-2 pt-2",children:[n("span",{className:"flex items-center gap-1.5 pb-2 font-medium text-foreground",children:[e(w,{className:"size-3.5"}),"Your section"]}),n("span",{"aria-hidden":!0,className:"block space-y-2 rounded-md border border-border bg-card p-2.5",children:[n("span",{className:"flex flex-wrap items-center justify-between gap-2",children:[e("span",{className:"text-foreground",children:"Connected as @acme-bot"}),e("span",{className:"flex h-5.5 items-center rounded-md border border-border px-2 text-foreground",children:"Test connection"})]}),e("span",{className:"block h-2 w-2/3 rounded-sm bg-muted/60"})]})]}),t?null:n(v,{id:"first-run-step",label:"A step you add to first-run setup, shown once per install",className:"block px-1 pb-2 pt-2",children:[n("span",{className:"flex items-center gap-1.5 pb-2 font-medium text-foreground",children:[e(w,{className:"size-3.5"}),"First run: About you"]}),n("span",{"aria-hidden":!0,className:"flex items-center justify-between gap-2 rounded-md border border-border bg-card p-2.5",children:[e("span",{className:"block h-2 w-1/2 rounded-sm bg-muted/60"}),e("span",{className:"flex h-5.5 items-center rounded-md border border-border px-2 text-foreground",children:"Save and continue"})]})]})]})]})]});return t?e("div",{className:"px-6 pt-4",children:a}):a}function nn({mobile:t=!1}){let a=n(ie,{className:t?d("flex flex-col",se):void 0,children:[n("div",{className:"flex h-10 shrink-0 items-center gap-2 border-b border-border-hairline px-3 text-sm",children:[t?e(p,{icon:"PanelLeft",className:"size-5"}):e(je,{}),e("span",{className:"text-foreground",children:"Plugins"})]}),n("div",{className:d("flex flex-col",t?"min-h-0 flex-1":"min-h-[470px]"),children:[n(v,{id:"plugin-status",label:"The needs-configuration banner Moonlet shows for a plugin that reports it",className:"flex items-center gap-2 border-b border-border bg-surface-recessed/55 px-5 py-1.5 text-xs",chip:"corner-inset",children:[e(p,{icon:"Settings",className:"size-3.5 text-warning"}),e("span",{className:"min-w-0 flex-1 font-medium text-foreground",children:"Needs configuration"}),n("span",{className:"flex h-7 shrink-0 items-center gap-0.5 rounded-md px-2.5 text-xs font-normal text-muted-foreground",children:["Open settings",e(p,{icon:"ChevronRight",className:"size-3"})]})]}),n("div",{className:"mx-auto w-full max-w-[560px] space-y-4 px-4 pb-5 pt-4",children:[n("div",{className:"flex items-center gap-2.5",children:[e(w,{className:"size-4"}),e("span",{className:"text-sm font-semibold text-foreground",children:"Hello"}),e("span",{className:"rounded border border-border px-1.5 py-0.5 text-xs",children:"BB Official"}),e("span",{className:"flex-1"}),e(p,{icon:"Settings",className:"size-3.5"}),e(we,{checked:!0,"aria-hidden":!0,tabIndex:-1,className:"pointer-events-none"}),e(p,{icon:"MoreHorizontal",className:"size-3.5"})]}),e("span",{className:"block font-mono text-xs text-subtle-foreground",children:"~/.bb/plugins/hello"}),e("div",{className:"space-y-1.5 border-t border-border-hairline pt-3",children:e("span",{className:"block text-foreground",children:"A friendly example plugin."})}),n("div",{className:"space-y-1.5 border-t border-border-hairline pt-3",children:[e("span",{className:"block text-subtle-foreground",children:"Details"}),e("span",{className:"block divide-y divide-border-hairline rounded-md border border-border-hairline",children:[["Delivery","Updates with Moonlet"],["Version","0.1.0"]].map(([i,r])=>n("span",{className:"flex items-center gap-3 px-2.5 py-1.5",children:[e("span",{className:"w-24 shrink-0 text-foreground",children:i}),e("span",{children:r})]},i))})]}),n("div",{className:"space-y-1.5 border-t border-border-hairline pt-3",children:[e("span",{className:"block text-subtle-foreground",children:"Capabilities"}),e("span",{"aria-hidden":!0,className:"block divide-y divide-border-hairline rounded-md border border-border-hairline",children:[["Settings","API key, Case-sensitive search"],["bb hello","Say hello from the terminal"]].map(([i,r])=>n("span",{className:"flex items-center gap-3 px-2.5 py-1.5",children:[e("span",{className:"w-24 shrink-0 text-foreground",children:i}),e("span",{className:"truncate",children:r})]},i))})]})]})]})]});return t?e("div",{className:"px-6 pt-4",children:a}):a}function $t(){return n(Y,{children:[n("div",{className:"rounded-xl border border-border bg-background p-3 shadow-lift",children:[e("p",{className:"px-1 pt-1 leading-relaxed text-subtle-foreground",children:"Ask anything. @ to mention files, folders, or sections"}),e("div",{"aria-hidden":!0,className:"h-10"}),n("div",{className:"flex items-center gap-2 px-0.5","aria-hidden":!0,children:[e("span",{className:"flex size-6 items-center justify-center rounded-md border border-border",children:e(p,{icon:"Plus",className:"size-3.5"})}),n("span",{className:"flex h-6 items-center gap-1.5 rounded-md px-1.5 text-foreground",children:[e(Kt,{}),"Fable 5 \xB7 High"]}),e("span",{className:"flex-1"}),e(p,{icon:"Mic",className:"size-3.5"}),e("span",{className:"flex size-6 items-center justify-center rounded-md bg-foreground",children:e(p,{icon:"CornerDownLeft",className:"size-3.5 text-background"})})]})]}),n("div",{className:"flex items-center justify-between gap-2 whitespace-nowrap px-2.5","aria-hidden":!0,children:[n("span",{className:"flex min-w-0 items-center gap-1.5",children:[e(p,{icon:"Folder",className:"size-3.5 shrink-0"}),n("span",{className:"truncate",children:["acme-app ",e("span",{className:"text-subtle-foreground",children:"\xB7 worktree"})]})]}),e("span",{className:"shrink-0",children:"Full Access"})]})]})}function at({surface:t,number:a,onDismiss:i,onCopyForAgent:r,navigation:s,probe:o=!1,mobile:c=!1}){let u=_(null),m=c?Ft:Ht,g=Me(Se),P=g?.pluginPageHref,R=Fe(t.id),{currentGroupId:T,onGoToSurface:b,numberOf:H}=g??{},[f,U]=y("idle"),I=_(null);O(()=>{U("idle"),I.current!==null&&(window.clearTimeout(I.current),I.current=null)},[t.id]),O(()=>()=>{I.current!==null&&window.clearTimeout(I.current)},[]);let j=re(async()=>{if(!r||f==="copying")return;U("copying");let h=await r(t);U(h?"copied":"failed"),I.current=window.setTimeout(()=>{U("idle"),I.current=null},2e3)},[f,r,t]),N=re(h=>{let C=Be.get(h);return!C||!b?null:{number:H?.(h)??null,otherPage:C.id===T?null:C.title,onOpen:()=>b(h)}},[T,H,b]);return O(()=>{if(o)return;let h=C=>{C.key==="Escape"&&i()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[i,o]),O(()=>{if(o)return;let h=window.setTimeout(()=>{u.current?.scrollIntoView({block:"nearest",behavior:"smooth"})},350);return()=>window.clearTimeout(h)},[o]),n("div",{ref:u,role:o?void 0:"dialog","aria-label":o?void 0:t.title,className:"w-full rounded-lg border border-border bg-popover p-3.5 shadow-lg [overflow-wrap:anywhere]",children:[n("div",{className:"flex items-start gap-2",children:[a===null?R?e(le,{icon:R,className:"mt-0.5 size-4 shrink-0 text-file-accent"}):null:e("span",{"aria-hidden":!0,className:fe(!0,"mt-0.5"),children:a}),e("div",{className:"min-w-0 flex-1",children:n("div",{className:"flex flex-wrap items-center gap-2",children:[e("h3",{className:"text-base font-medium text-foreground",children:t.title}),t.experimental?e(xe,{}):null]})}),n("div",{className:"-mr-1 -mt-1 flex shrink-0 items-center gap-0.5",children:[s?e("div",{role:"group","aria-label":"Annotation navigation",className:"flex items-center gap-0.5",children:[["previous",s.previous,"ChevronLeft"],["next",s.next,"ChevronRight"]].map(([h,C,S])=>{let L=C?`${h==="previous"?"Previous":"Next"} annotation: ${C.title}`:`No ${h} annotation`;return e("button",{type:"button",onClick:()=>{C&&s.onOpen(C.id)},disabled:!C,"aria-label":L,title:L,className:`inline-flex size-9 @2xl/guide:size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground disabled:cursor-default disabled:opacity-35 disabled:hover:bg-transparent disabled:hover:text-muted-foreground ${W}`,children:e($,{name:S,className:"size-3.5"})},h)})}):null,e("button",{type:"button",onClick:i,"aria-label":"Close",title:"Close annotation",className:`inline-flex size-9 @2xl/guide:size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground ${W}`,children:e($,{name:"X",className:"size-3.5"})})]})]}),e("p",{className:"mt-2 text-sm leading-relaxed text-muted-foreground",children:ve(t.summary,N)}),e("ul",{className:"mt-1.5 list-disc space-y-1.5 pl-4 text-sm leading-relaxed text-muted-foreground marker:text-subtle-foreground",children:t.bullets.map(h=>e("li",{children:ve(h,N)},h))}),t.reference?n("details",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:[e("summary",{className:`cursor-pointer rounded-sm ${W}`,children:"API behavior"}),e("div",{className:"mt-2 space-y-2",children:t.reference.map(h=>e("p",{children:h},h))})]}):null,t.firstParty&&t.firstParty.length>0||r?n("div",{className:"mt-3 flex min-w-0 items-center gap-2 border-t border-border-hairline pt-2.5",children:[t.firstParty&&t.firstParty.length>0?n("div",{className:`flex min-w-0 flex-1 items-center ${c?"gap-1":"gap-2"}`,children:[e("span",{className:`shrink-0 whitespace-nowrap text-xs text-subtle-foreground ${c?"":"rounded bg-surface-recessed px-2 py-0.5 font-normal"}`,children:"Used by"}),e(m,{items:t.firstParty,renderItem:h=>{let C=Tt(h),S=P?.(h)??null,G=n(Y,{children:[g?.renderPluginIcon?.(h)??(C?e($,{name:C,className:"size-3.5 shrink-0 text-subtle-foreground"}):null),c?e("span",{className:"min-w-0 truncate",children:h}):h]});return S?e("a",{href:S,title:h,className:c?`flex min-h-9 items-center justify-center gap-1.5 rounded-md bg-surface-recessed px-2 py-1 text-xs text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground ${W}`:"flex items-center gap-1 whitespace-nowrap text-xs text-muted-foreground underline decoration-border underline-offset-2 hover:text-foreground hover:decoration-foreground",children:G}):e("span",{className:c?"flex min-h-9 items-center justify-center gap-1.5 rounded-md bg-surface-recessed px-2 py-1 text-xs text-muted-foreground":"flex items-center gap-1 whitespace-nowrap text-xs text-muted-foreground",children:G})}},t.id)]}):null,r?n("button",{type:"button",onClick:()=>{j()},disabled:f==="copying","aria-label":f==="failed"?"Copy failed. Retry copy for agent":"Copy for agent",title:f==="failed"?"Copy failed. Retry copy for agent":"Copy for agent",className:`ml-auto inline-flex shrink-0 cursor-pointer items-center rounded-md text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground disabled:cursor-wait disabled:opacity-60 ${c?"size-9 @2xl/guide:size-7 justify-center":"h-7 gap-1.5 whitespace-nowrap px-2 text-xs font-medium"} ${W}`,children:[e($,{name:f==="copied"?"Check":f==="failed"?"AlertCircle":"Copy",className:"size-3.5"}),e("span",{className:c?"sr-only":void 0,"aria-live":"polite",children:f==="copying"?"Copying\u2026":f==="copied"?"Copied":f==="failed"?"Copy failed":"Copy for agent"})]}):null]}):null]})}function an(){let[t,a]=y(null);return{openId:t,open:i=>a(i),close:()=>a(null)}}var ln=Oe.map(t=>({...t,groupId:t.id})),rn=ln.flatMap(t=>t.id==="composer"?[{...t,blurb:"Plugins can replace the prompt box, or add banners, actions, providers, and rich text to it."}]:t.id==="app-shell"?[{...t,title:"Sidebar",blurb:"Plugins can add navigation, thread status, and footer controls.",appShellScene:"navigation",surfaces:t.surfaces.filter(a=>["nav-panel","thread-row-status","thread-list","sidebar-footer"].includes(a.id))},{...t,id:"app-shell-thread",title:"Thread",blurb:"Plugins can extend the thread header, conversation, and composer.",appShellScene:"conversation",surfaces:t.surfaces.filter(a=>["thread-header","timeline-renderers","message-directives","code-fence-renderers","message-actions","pending-interaction","app-overlay","content-scripts"].includes(a.id))},{...t,id:"app-shell-panel",title:"Side panel",blurb:"Explore plugin controls and content in the side panel\u2019s tabs.",appShellScene:"panel",surfaces:t.surfaces.filter(a=>["thread-info","code-renderers","browser-toolbar","thread-panel","file-opener"].includes(a.id))}]:t.id==="home"?[{...t,surfaces:t.surfaces.filter(a=>a.id==="homepage-section")},{...t,id:"home-actions",title:"New thread actions",blurb:"Plugins can add an action to the new-thread panel launcher.",homePanel:!0,surfaces:t.surfaces.filter(a=>a.id==="new-thread-panel")}]:[t]);function dn(t,a){let i=t.findIndex(r=>r.id===a);return i===-1?{previous:null,next:null}:{previous:t[i-1]??null,next:t[i+1]??null}}function Hn({surface:t}){let{activeId:a,setActiveId:i,expandedId:r,onSelect:s}=K(),o=a===t.id||r===t.id,c=Fe(t.id);return n("a",{href:`#surface-${t.id}`,"aria-label":`${t.title} \u2014 jump to details`,onClick:s?u=>{u.preventDefault(),s(t.id)}:void 0,onMouseEnter:()=>i(t.id),onMouseLeave:()=>i(null),className:d("flex h-full items-center gap-3 rounded-lg border px-4 py-4 transition-colors",W,o?"border-border bg-surface-selected":"border-border-hairline bg-surface-raised-solid hover:border-border hover:bg-state-hover"),children:[c?e(le,{icon:c,className:d("size-4 shrink-0",o?"text-file-accent":"text-foreground")}):null,n("span",{className:"min-w-0",children:[n("span",{className:"flex items-center gap-2",children:[e("span",{className:"min-w-0 truncate text-sm font-medium text-foreground",children:t.title}),t.experimental?e(xe,{}):null]}),e("span",{className:"line-clamp-2 text-sm text-muted-foreground @3xl:line-clamp-1",children:ve(t.tagline??t.summary)})]})]})}function Fn({group:t}){return e("div",{className:"space-y-3",children:(t.sections??[]).map(a=>{let i=a.surfaceIds.map(r=>De.get(r)).filter(r=>!!r);return n("section",{"aria-label":a.title,children:[e("h3",{className:"text-xs font-medium uppercase tracking-wide text-subtle-foreground",children:a.title}),e("ul",{className:"mt-1 grid gap-1.5 @min-[40rem]/guide:grid-cols-2",children:i.map(r=>e("li",{className:"min-w-0",children:e(Hn,{surface:r})},r.id))})]},a.title)})})}var st=1.2;function zn(t,a,i,r){if(t<=0||a<=0)return 1;let s=i!==void 0&&r!==void 0&&i>0&&r>0?i/r:Number.POSITIVE_INFINITY;return Math.min(st,t/a,s)}var Wn={"app-shell":{min:1260,max:1440},"command-palette":{min:860,max:1200},composer:{min:720,max:768},home:{min:560,max:1080},settings:{min:640,max:900},extensions:{min:640,max:900}};function Un({band:t,maxScale:a=st,children:i}){let r=_(null),s=_(null),o=_(0),[c,u]=y({scale:1,height:null,width:null,offsetX:0});oe(()=>{let g=r.current,P=s.current;if(!g||!P)return;let R=g.closest("[data-guide-stage-viewport]"),T=()=>{let N=P.scrollWidth,h=P.scrollHeight,C=g.closest("section")?.querySelector("[data-guide-card-flow]");C?o.current=Math.max(o.current,C.getBoundingClientRect().height+parseFloat(getComputedStyle(C).marginTop||"0")):o.current=0;let S=g.closest("[data-map-section]")?.querySelector("[data-guide-card-probe]"),G=0;if(S)for(let M of Array.from(S.children))M instanceof HTMLElement&&(G=Math.max(G,M.offsetHeight+parseFloat(getComputedStyle(M).marginTop||"0")));let L=C?Math.max(G,o.current):0,B=R&&g.clientWidth>=640?R.clientHeight-(g.getBoundingClientRect().top-R.getBoundingClientRect().top+R.scrollTop)-L-8:void 0,F=Math.min(a,zn(g.clientWidth,N,B,h)),E=Math.abs(F-1)>=1e-4,te=h*F,V=E?N:null,ne=E?(g.clientWidth-N)/2:0;u(M=>Math.abs(M.scale-F)<1e-4&&M.height===te&&M.width===V&&Math.abs(M.offsetX-ne)<.5?M:{scale:F,height:te,width:V,offsetX:ne})};T();let b=new ResizeObserver(T);b.observe(g),b.observe(P),R&&b.observe(R);let H=g.closest("[data-map-section]")?.querySelector("[data-guide-card-probe]");H?.firstElementChild&&b.observe(H.firstElementChild);let f=g.closest("section"),U=null,I=()=>{let N=f?.querySelector("[data-guide-card-flow]")??null;N!==U&&(U&&b.unobserve(U),U=N,N&&b.observe(N),T())};I();let j=f?new MutationObserver(I):null;return j?.observe(f,{childList:!0}),()=>{b.disconnect(),j?.disconnect()}},[a]);let m=c.width!==null;return e("div",{ref:r,"data-guide-responsive-strategy":"scale-together","data-guide-scale":c.scale.toFixed(4),className:"w-full overflow-x-clip transition-[height] duration-300 ease-out",style:{height:c.height??void 0},children:e("div",{ref:s,className:"mx-auto w-full origin-top transition-transform duration-300 ease-out",style:{minWidth:t?.min,maxWidth:t?.max,[tt]:be(c.scale),...m?{transform:`scale(${c.scale})`,width:c.width??void 0,marginLeft:c.offsetX,marginRight:0}:void 0},children:i})})}var rt=350,Gn=72;function jn({children:t}){let a=_(null),i=_(null),[r,s]=y({scale:1,height:null,offsetX:0});return oe(()=>{let o=a.current,c=i.current;if(!o||!c)return;let u=()=>{let P=o.closest("[data-guide-stage-viewport]")?.clientHeight??document.documentElement.clientHeight,R=c.offsetHeight;if(R===0||o.clientWidth===0)return;let T=Math.min(1,o.clientWidth/rt,(P-Gn)/R),b=Math.ceil(R*T),H=Math.max(0,(o.clientWidth-rt*T)/2);s(f=>Math.abs(f.scale-T)<.001&&f.height===b&&Math.abs(f.offsetX-H)<.5?f:{scale:T,height:b,offsetX:H})};u();let m=new ResizeObserver(u);return m.observe(o),m.observe(c),window.addEventListener("resize",u),()=>{m.disconnect(),window.removeEventListener("resize",u)}},[]),e("div",{ref:a,"data-guide-responsive-strategy":"mobile","data-guide-scale":r.scale.toFixed(4),className:"w-full overflow-x-clip",style:{height:r.height??void 0},children:e("div",{ref:i,className:"origin-top-left",style:{width:rt,marginLeft:r.offsetX,transform:r.scale===1?void 0:`scale(${r.scale})`,[tt]:be(r.scale)},children:t})})}function it({group:t,mobile:a=!1}){switch(t.groupId){case"app-shell":return e(Zt,{mobile:a,mobileScene:t.appShellScene});case"command-palette":return e(Qt,{mobile:a});case"composer":return e(Jt,{mobile:a});case"home":return e(en,{mobile:a,panel:t.homePanel});case"settings":return e(tn,{mobile:a});case"extensions":return e(nn,{mobile:a});case"headless":return e(Fn,{group:t})}}var sn=()=>{},$n=async()=>!1;function Vn({group:t}){let{numberOf:a}=K();return e("div",{inert:!0,"aria-hidden":!0,"data-guide-card-probe":!0,className:"invisible h-0 overflow-hidden",children:t.surfaces.map(i=>e("div",{className:"mt-[clamp(8px,var(--guide-stage-gap,8px),28px)] w-full",children:e(at,{probe:!0,surface:i,number:a(i.id),onDismiss:sn,onCopyForAgent:$n,navigation:{...dn(t.surfaces,i.id),onOpen:sn}})},i.id))})}function qn({group:t,mobile:a,compactLayout:i}){return a&&i&&t.id!=="headless"?e(jn,{children:e(it,{group:t,mobile:!0})}):vt(t)==="reflow"?e("div",{"data-guide-responsive-strategy":"reflow",className:"w-full",children:e(it,{group:t})}):n(Y,{children:[e(Un,{band:a?{min:390,max:390}:Wn[t.groupId],maxScale:a?1:st,children:e(it,{group:t,mobile:a})}),e(Vn,{group:t})]})}function Kn({title:t,brandMark:a}){let i=t.split(/\bbb\b/);return i.length===1?e(Y,{children:t}):e(Y,{children:i.map((r,s)=>n(Q,{children:[s>0?a??e("span",{className:"font-bold italic",children:"Moonlet"}):null,r]},s))})}function Yn(t,a){return{previous:t>0,next:t<a-1}}function on({direction:t,disabled:a,onClick:i}){return e("button",{type:"button",onClick:i,disabled:a,"aria-label":`${t==="previous"?"Previous":"Next"} surface`,className:d("inline-flex size-10 @2xl/guide:size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground disabled:cursor-default disabled:opacity-40 disabled:hover:bg-transparent disabled:hover:text-muted-foreground",W),children:e($,{name:t==="previous"?"ChevronLeft":"ChevronRight",className:"size-4"})})}function Xn(t,a){let[i,r]=y(null),[s,o]=y(!1),c=_(!1);return O(()=>{if(!c.current){c.current=!0;return}o(!0);let u=window.setTimeout(()=>o(!1),350);return()=>window.clearTimeout(u)},[t]),O(()=>{let u=a.current[t];if(!u)return;let m=()=>r(u.getBoundingClientRect().height);m();let g=new ResizeObserver(m);return g.observe(u),()=>g.disconnect()},[t,a]),{height:i,animate:s}}function Qn({children:t}){let a=_(null),i=_(null);return oe(()=>{let r=a.current,s=i.current;if(!r||!s)return;let o=()=>{r.style.height=`${s.getBoundingClientRect().height}px`};o();let c=new ResizeObserver(o);return c.observe(s),()=>c.disconnect()},[]),e("div",{ref:a,className:"overflow-y-clip transition-[height] duration-300 ease-out motion-reduce:transition-none",style:{height:0},children:e("div",{ref:i,className:"flow-root",children:t})})}function cn({pluginPageHref:t,renderPluginIcon:a,initialSlideId:i,onSlideChange:r,onCopyForAgent:s,brandMark:o,mobileOnlyOnCompactViewport:c=!1}){let u=_(null),m=_([]),g=_(null),P=_([]),R=_(null),T=_(0),b=an(),[H,f]=y(null),[U,I]=y(null),[j,N]=y(()=>typeof window<"u"&&window.matchMedia?.("(max-width: 767px)").matches===!0),[h,C]=y(null),S=h??j;oe(()=>{let l=u.current;if(l===null)return;let x=()=>{let q=l.getBoundingClientRect().width;q>0&&C(q<768)};x();let A=new ResizeObserver(x);return A.observe(l),()=>A.disconnect()},[]);let[G,L]=y(null),B=c&&j,F=B||(G===null?S:G==="mobile"),E=F?rn:ln,te=qe(()=>new Map(E.filter(l=>l.groupId!=="headless").flatMap(l=>l.surfaces.map((x,A)=>[x.id,A+1]))),[E]);O(()=>{let l=window.matchMedia?.("(max-width: 767px)");if(!l)return;let x=()=>N(l.matches);return l.addEventListener("change",x),()=>l.removeEventListener("change",x)},[]);let V=l=>{I(l),b.open(l)},ne=Ue(g),[M,de]=y(i??"app-shell"),ke=_(F);oe(()=>{if(ke.current===F||(ke.current=F,!F||!b.openId))return;let l=E.find(x=>x.surfaces.some(A=>A.id===b.openId));l&&l.id!==M&&(de(l.id),r?.(l.id))},[F,b.openId,E,M,r]);let Ce=rn.find(l=>l.id===M),k=Math.max(0,E.findIndex(l=>l.id===M||!F&&l.id===Ce?.groupId)),ae=Xn(k,m);O(()=>{if(S)return;let l=g.current,x=P.current[k];if(!l||!x)return;let A=l.getBoundingClientRect(),q=x.getBoundingClientRect(),ee=q.left-A.left,ot=q.right-A.right;ee<0?l.scrollLeft+=ee:ot>0&&(l.scrollLeft+=ot)},[k,S]);let ce=b.openId?De.get(b.openId):void 0,pe=Yn(k,E.length),z=l=>{l===k||l<0||l>=E.length||(b.close(),I(null),f(null),de(E[l].id),r?.(E[l].id))},Ne=l=>{if(!Be.get(l))return;let A=E.findIndex(q=>q.surfaces.some(ee=>ee.id===l));A!==-1&&(A!==k&&z(A),V(l))},he=l=>{l.target instanceof HTMLSelectElement||l.target instanceof Element&&l.target.closest('[role="dialog"]')||(l.key==="ArrowRight"?(l.preventDefault(),z(k+1)):l.key==="ArrowLeft"&&(l.preventDefault(),z(k-1)))},X=qe(()=>({activeId:H,setActiveId:f,expandedId:b.openId??U,numberOf:l=>te.get(l)??null,onSelect:V,pluginPageHref:t,renderPluginIcon:a,currentGroupId:E[k].groupId,onGoToSurface:Ne}),[H,b.openId,t,a,k,U,F,E,te]),J=ce?e("div",{"data-guide-card-flow":!0,className:"mx-auto mt-[clamp(8px,var(--guide-stage-gap,8px),28px)] w-full",children:e(at,{surface:ce,mobile:S,number:te.get(ce.id)??null,onDismiss:b.close,onCopyForAgent:s,navigation:{...dn(E[k].surfaces,ce.id),onOpen:V}})}):null;return O(()=>{if(b.openId===null)return;let l=u.current;if(l===null)return;let x=l.closest("[data-bb-plugin]")??l,A=q=>{let ee=q.target;ee instanceof Element&&(ee.closest('[role="dialog"]')||ee.closest('a[href^="#surface-"], [data-guide-display-mode]')||b.close())};return x.addEventListener("pointerdown",A),()=>x.removeEventListener("pointerdown",A)},[b.openId]),e(Se.Provider,{value:X,children:e("div",{ref:u,className:"@container/guide relative",children:e("div",{"data-map-column":!0,className:"mx-auto w-full max-w-[100rem]",children:n("section",{"aria-roledescription":"carousel","aria-label":"Moonlet surfaces a plugin can extend",onKeyDown:he,className:"mt-2",children:[B?e("h2",{className:"sr-only",children:E[k].title}):n("div",{className:"mb-3 border-b border-border-hairline pb-3",children:[e("h2",{className:"text-base font-semibold",children:e(Kn,{title:E[k].title,brandMark:o})}),e("p",{className:"mt-1 max-w-2xl text-sm leading-relaxed text-subtle-foreground/75",children:E[k].blurb})]}),n("div",{"data-guide-navigation-toolbar":!0,className:"flex w-full items-center gap-2",children:[n("div",{className:"flex min-w-0 flex-1 items-center justify-center gap-1",children:[e(on,{direction:"previous",disabled:!pe.previous,onClick:()=>z(k-1)}),e("div",{ref:g,"data-guide-page-list-scroll":!0,"data-no-secondary-panel-swipe":!0,className:d(S?"min-w-0 flex-1 touch-pan-y overflow-hidden":"min-w-0 overflow-x-auto",ze),style:S?void 0:We(ne.canScrollLeft,ne.canScrollRight),onTouchStartCapture:l=>{T.current=0;let x=l.touches[0];R.current=S&&l.touches.length===1&&x?{x:x.clientX,y:x.clientY}:null},onTouchCancelCapture:()=>{R.current=null},onTouchEndCapture:l=>{let x=R.current;R.current=null;let A=l.changedTouches[0];if(!x||!A)return;let q=A.clientX-x.x,ee=A.clientY-x.y;Math.abs(q)<30||Math.abs(q)<=Math.abs(ee)||(T.current=Date.now()+500,z(k+(q<0?1:-1)))},onClickCapture:l=>{Date.now()>=T.current||(T.current=0,l.preventDefault(),l.stopPropagation())},children:e("ul",{className:S?"flex w-full flex-nowrap items-center":"flex w-max flex-nowrap items-center gap-1",children:E.map((l,x)=>e("li",{hidden:S&&x!==k,className:d("shrink-0",S&&"w-full"),children:e("button",{ref:A=>{P.current[x]=A},type:"button",onClick:()=>z(x),"aria-current":x===k?"true":void 0,className:d("cursor-pointer whitespace-nowrap rounded-md px-2.5 py-2.5 text-sm @2xl/guide:py-1 @2xl/guide:text-xs transition-colors",S&&"block w-full truncate",W,x===k?"bg-surface-selected text-foreground":"text-subtle-foreground hover:bg-state-hover hover:text-foreground"),children:l.title})},l.id))})}),e(on,{direction:"next",disabled:!pe.next,onClick:()=>z(k+1)})]}),e("div",{"data-guide-display-mode":!0,role:"group","aria-label":"Preview layout",className:"flex shrink-0 items-center gap-0.5 border-l border-border-hairline pl-2",children:["mobile","desktop"].map(l=>e("button",{type:"button","aria-label":l==="mobile"?"Mobile layout":"Desktop layout",title:l==="mobile"?"Mobile layout":B?"Desktop layout is available on wider screens":"Desktop layout","aria-pressed":(F?"mobile":"desktop")===l,disabled:l==="desktop"&&B,onClick:()=>L(l),className:d("inline-flex size-10 @2xl/guide:size-8 cursor-pointer items-center justify-center rounded-md disabled:cursor-not-allowed disabled:opacity-40",W,(F?"mobile":"desktop")===l?"bg-surface-selected text-foreground":"text-muted-foreground enabled:hover:bg-state-hover"),children:e(le,{icon:l==="mobile"?It:He,className:"size-4","aria-hidden":!0})},l))})]}),e("div",{className:d("overflow-x-clip",ae.animate&&"transition-[height] duration-300 ease-out"),style:{...ae.height===null?void 0:{height:ae.height},clipPath:"inset(0 0 -24rem 0)"},children:e("div",{className:"flex transition-transform duration-300 ease-out",style:{transform:`translateX(-${k*100}%)`},children:E.map((l,x)=>e("div",{"data-map-section":l.id,ref:A=>{m.current[x]=A},inert:x!==k,style:x===k||ae.height===null?void 0:{maxHeight:ae.height,overflow:"hidden"},className:"min-w-0 w-full shrink-0 self-start px-1 pt-2",children:e(qn,{group:l,mobile:F,compactLayout:S})},l.id))})}),S?e(Qn,{children:J}):J]})})})})}async function Zn(t,a){let[i,r]=await Promise.all([t.plugins.list({signal:a}).then(s=>s.plugins.map(o=>({id:o.id,icon:o.icon,iconUrl:o.iconUrl,iconTinted:!0}))).catch(()=>[]),t.plugins.catalog.search({query:"",signal:a}).then(s=>s.results.map(o=>({id:o.pluginId,icon:o.icon,iconUrl:o.iconUrl,iconTinted:o.iconTinted}))).catch(()=>[])]);return new Map([...r,...i].map(s=>[s.id,s]))}function Jn(){let t=xt(),[a,i]=y(()=>new Map);return O(()=>{let r=new AbortController;return Zn(t,r.signal).then(s=>{r.signal.aborted||i(s)}),()=>r.abort()},[t]),a}function ea({subPath:t}){let a=Jn(),i=bt(),r=re(c=>{let u=et(c);return!u||!a.has(u)?null:`/plugins/${u}`},[a]),s=re(c=>{let u=et(c),m=u?a.get(u):void 0;return m?e(mt,{icon:m.icon,iconUrl:m.iconUrl,iconTinted:m.iconTinted,className:"inline-block size-3.5 shrink-0 text-subtle-foreground"}):null},[a]),o=re(c=>{i.toPluginPanel("plugin-api",{subPath:c,replace:!0})},[i]);return e("div",{className:"@container/guide-page flex h-full min-h-0 min-w-0 flex-1",children:e("div",{"data-guide-stage-viewport":!0,className:"h-full min-h-0 w-full flex-1 overflow-y-auto px-3 pb-6 pt-5 @min-[40rem]/guide-page:px-6 [container-type:size] [--guide-stage-gap:3cqh] @min-[64rem]/guide-page:pb-0 @min-[64rem]/guide-page:pt-4",children:e(cn,{pluginPageHref:r,renderPluginIcon:s,initialSlideId:t.split("/")[0]||void 0,onSlideChange:o,onCopyForAgent:yt})})})}var Eo=gt(t=>{t.slots.navPanel({id:"plugin-api",title:"Plugin Guide",icon:"plugin-api-docs/guide",path:"plugin-api",component:ea})});export{Eo as default,Zn as loadPluginReferences};
|
|
1
|
+
var $e=globalThis.__bbPluginRuntime;if($e==null||$e.react==null)throw new Error('Cannot load "react": this bundle must be loaded by the Moonlet app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Re=$e.react,ta="default"in Re?Re.default:Re,{Activity:na,Children:aa,Component:ra,Fragment:Q,Profiler:ia,PureComponent:sa,StrictMode:oa,Suspense:la,act:da,cache:ca,cacheSignal:pa,captureOwnerStack:ua,cloneElement:ma,createContext:lt,createElement:Ve,createRef:ga,forwardRef:Ee,isValidElement:ha,lazy:fa,memo:ba,startTransition:xa,unstable_useCacheRefresh:va,use:wa,useActionState:Pa,useCallback:re,useContext:Me,useDebugValue:ya,useDeferredValue:Sa,useEffect:O,useEffectEvent:ka,useId:Ca,useImperativeHandle:Na,useInsertionEffect:Ra,useLayoutEffect:dt,useMemo:qe,useOptimistic:Ea,useReducer:Ma,useRef:_,useState:y,useSyncExternalStore:_a,useTransition:Aa,version:Ta}=Re;var Ke=globalThis.__bbPluginRuntime;if(Ke==null||Ke.sharedUiIcon==null)throw new Error('Cannot load "@moonlet/shared-ui/icon": this bundle must be loaded by the Moonlet app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var _e=Ke.sharedUiIcon,Ia="default"in _e?_e.default:_e,{ICON_NAMES:La,Icon:ct,isBuiltinIconName:Oa,preloadExtendedIcons:Da}=_e;var Ye=globalThis.__bbPluginRuntime;if(Ye==null||Ye.clsx==null)throw new Error('Cannot load "clsx": this bundle must be loaded by the Moonlet app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ae=Ye.clsx,Ha="default"in Ae?Ae.default:Ae,{clsx:pt}=Ae;var Xe=globalThis.__bbPluginRuntime;if(Xe==null||Xe.tailwindMerge==null)throw new Error('Cannot load "tailwind-merge": this bundle must be loaded by the Moonlet app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Te=Xe.tailwindMerge,za="default"in Te?Te.default:Te,{createTailwindMerge:Wa,extendTailwindMerge:Ua,fromTheme:Ga,getDefaultConfig:ja,mergeConfigs:$a,twJoin:Va,twMerge:ut,validators:qa}=Te;function d(...t){return ut(pt(t))}var Qe=globalThis.__bbPluginRuntime;if(Qe==null||Qe.jsxRuntime==null)throw new Error('Cannot load "react/jsx-runtime": this bundle must be loaded by the Moonlet app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ie=Qe.jsxRuntime,Za="default"in Ie?Ie.default:Ie,{Fragment:Y,jsx:e,jsxs:n}=Ie;function un({url:t,className:a,style:i}){let r=`url(${JSON.stringify(t)})`;return e("span",{"aria-hidden":"true","data-plugin-icon-asset":t,"data-icon-root":"",className:d("inline-block size-4 shrink-0",a),style:{...i,backgroundColor:"currentColor",maskImage:r,maskPosition:"center",maskRepeat:"no-repeat",maskSize:"contain",WebkitMaskImage:r,WebkitMaskPosition:"center",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain"}})}function mt({icon:t,iconUrl:a,iconTinted:i,className:r}){let[s,o]=y(null);return a!==null&&i?e(un,{url:a,className:r}):a===null||a===s?e(ct,{name:t??"Zap",className:r,"aria-hidden":!0}):e("img",{src:a,alt:"",className:d("rounded-sm object-contain",r),onError:()=>o(a)})}var Ze=globalThis.__bbPluginRuntime;if(Ze==null||Ze.pluginSdkApp==null)throw new Error('Cannot load "@get-bb/plugin-sdk/app": this bundle must be loaded by the Moonlet app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Le=Ze.pluginSdkApp,ir="default"in Le?Le.default:Le,{Markdown:sr,ThreadChat:or,ThreadTitle:lr,UrlLink:dr,definePluginApp:gt,experimental_BranchPicker:cr,experimental_ComposerRoot:pr,experimental_DetailRow:ur,experimental_Diff:mr,experimental_FailedVoiceRecordings:gr,experimental_FileLink:hr,experimental_Icon:ht,experimental_ImageLightbox:fr,experimental_InfoList:br,experimental_InfoListRow:xr,experimental_InfoSection:vr,experimental_NewThreadComposer:wr,experimental_PermissionModePicker:Pr,experimental_PluginIcon:yr,experimental_PluginRpcCallError:Sr,experimental_PromptMentionIcon:kr,experimental_ProviderIcon:Cr,experimental_ProviderModelPicker:Nr,experimental_SettingsRow:Rr,experimental_SettingsSection:Er,experimental_ShortcutHint:Mr,experimental_SidebarNavigationIcon:_r,experimental_SourceCode:Ar,experimental_THREAD_ACTION_GROUPS:Tr,experimental_THREAD_CONTEXT_SEGMENT_GROUPS:Ir,experimental_THREAD_INFO_ROW_GROUPS:Lr,experimental_THREAD_INFO_SECTION_GROUPS:Or,experimental_ThreadActionsContextMenu:Dr,experimental_ThreadActionsMenu:Br,experimental_ThreadStatusGlyph:Hr,experimental_ThreadTitleText:Fr,experimental_VoiceInputButton:zr,experimental_VoiceInputTextarea:Wr,experimental_VoiceRecordingBar:Ur,experimental_copyToClipboard:ft,experimental_describePromptMention:Gr,experimental_promptMentionClipboardAttributes:jr,experimental_readPromptMentionClipboard:$r,experimental_saveFile:Vr,experimental_useAppPanel:qr,experimental_useArchiveEnvironmentThreads:Kr,experimental_useBranches:Yr,experimental_useCheckoutState:Xr,experimental_useCodeTheme:Qr,experimental_useComposerCommandSearch:Zr,experimental_useComposerContributions:Jr,experimental_useComposerMentionSearch:ei,experimental_useComposerRenderer:ti,experimental_useExperiment:ni,experimental_useFixedTabTarget:ai,experimental_usePluginId:ri,experimental_useProviders:ii,experimental_useQuestionFormHost:si,experimental_useRpcKeyedQuery:oi,experimental_useRpcMutation:li,experimental_useRpcQuery:di,experimental_useRpcRefresh:ci,experimental_useSidebar:pi,experimental_useSidebarNavigation:ui,experimental_useSidebarNavigationSplit:mi,experimental_useSidebarThreadActions:gi,experimental_useSidebarThreadSplit:hi,experimental_useSidebarThreads:fi,experimental_useThreadActionRegistrations:bi,experimental_useThreadActions:xi,experimental_useThreadTitleDisplayText:vi,internal_DO_NOT_USE_Outlet:wi,internal_DO_NOT_USE_useOutletFilled:Pi,useBbContext:yi,useBbNavigate:bt,useComposer:Si,useComposerView:ki,useComposers:Ci,useEnvironmentProviders:Ni,useRealtime:Ri,useRealtimeConnectionState:Ei,useRpc:Mi,useSdk:xt,useSettings:_i,useSidebarSplitLayout:Ai,useSidebarThreadDraft:Ti,useSidebarThreadDraftIds:Ii,useSidebarThreadRowStatus:Li,useSidebarThreadRowStatuses:Oi,useSidebarThreadShortcut:Di,experimental_useSidebarThreadPullRequest:Bi}=Le;var mn={"&":"&","<":"<",">":">",'"':""","'":"'"};function ue(t){return t.replace(/[&<>"']/gu,a=>mn[a]??a)}function vt(t){return t.fixtureKind==="spatial"?"scale-together":"reflow"}var Oe=[{id:"app-shell",title:"The Moonlet app window",fixtureKind:"spatial",blurb:"The main Moonlet window, containing the sidebar, the conversation, and the side panel. A plugin can add rows, controls, panel tabs, and message content to the numbered regions.",surfaces:[{id:"sidebar-navigation",title:"Sidebar navigation",summary:"Replace the sidebar's navigation, as a rail or as rows above the thread list. With this, a plugin can:",bullets:["Arrange New thread, Search, Plugins, Skills, and plugin pages in any layout","Choose the rail or list placement, and get Moonlet's layout around it","Keep saved order and badges; Cmd/Ctrl-click splits supported pages or opens Plugins/Skills in tabs","Add controls to the header row beside the sidebar toggle"],apiSymbols:["ExperimentalSidebarNavigationRegistration","ExperimentalSidebarNavigationPlacement","ExperimentalSidebarNavigationProps","experimental_useSidebarNavigation","ExperimentalSidebarNavigationState","ExperimentalSidebarNavigationItem","ExperimentalSidebarNavigationAction","ExperimentalSidebarNavigationActions","ExperimentalSidebarNavigationIcon","experimental_SidebarNavigationIcon","ExperimentalSidebarNavigationIconProps","ExperimentalSidebarNavigationShortcut","ExperimentalSidebarNavigationActivationOptions","ExperimentalSidebarNavigationTarget","experimental_useSidebarNavigationSplit","ExperimentalSidebarNavigationSplit","ExperimentalSidebarNavigationSplitOptions","ExperimentalSidebarHeaderProps"],experimental:!0},{id:"nav-panel",title:"Full-page panels",summary:"Add a navigation rail destination that opens a full page your plugin renders. With this, a plugin can:",bullets:["Build dashboards, boards or inboxes with a custom sidebar on their own routes","Give the page a shareable URL, pane breadcrumbs and a focused window title","Add fixed tabs beside Browser and Terminal, and open terminals it started in any folder","Show a live badge or hide its navigation entry while keeping the page reachable by URL"],apiSymbols:["PluginNavPanelRegistration","PluginNavPanelRegistration.experimental_sidebar","PluginNavPanelRegistration.experimental_useNavigationVisible","PluginNavPanelProps","ExperimentalBadge","ExperimentalBadgeTone","ExperimentalFixedTabTargetContract","experimental_useAppPanel","ExperimentalAppPanel","ExperimentalOpenFixedTabOptions","experimental_useFixedTabTarget","ExperimentalFixedTabTargetState","PluginNavPanelRegistration.experimental_usePageTitle","ExperimentalPageTitle","ExperimentalPageBreadcrumb","useBbContext","useBbNavigate","BbNavigate.toPluginPanel","BbNavigate.experimental_openTerminal","internal_DO_NOT_USE_Outlet","InternalDoNotUseOutletHostProps","internal_DO_NOT_USE_useOutletFilled","PluginAppSlots.internal_DO_NOT_USE_outlet","InternalDoNotUseOutletRegistration","InternalDoNotUseOutletTarget","InternalDoNotUseOutletProps"],firstParty:["Automations","Docs","GitHub","Tasks","Theme Preview"]},{id:"thread-row-status",title:"Thread row status",summary:"Add a small status icon to a thread's row in the sidebar. With this, a plugin can:",bullets:["Show that the plugin is working on a thread, with a shimmering icon","Settle the icon to succeeded or failed when the work ends","Set it from an [app-wide script](content-scripts), which Moonlet cleans up after"],apiSymbols:["PluginComposerThreadRowStatus","PluginContentScriptContext"],experimental:!0},{id:"thread-list",title:"The thread list",summary:"Replace the sidebar's thread list with one your plugin renders. With this, a plugin can:",bullets:["Group, sort, and draw every row your own way","Read live threads, sections, projects, and run status","Use optimistic SDK writes and Moonlet's move, pin, rename, restore, archive and split actions","Keep Moonlet's New thread button, search, and footer around it"],apiSymbols:["PluginThreadListRegistration","PluginThreadListProps","experimental_useSidebarThreads","PluginSidebarThreadsState.experimental_archived","PluginSidebarThreadsState.experimental_hosts","PluginSidebarThreadsState","PluginSidebarThread","PluginSidebarSection","experimental_useArchiveEnvironmentThreads","BbNavigate.toThread","BbNavigate.toCompose","experimental_useSidebarThreadSplit","PluginSidebarThreadSplit","PluginSidebarThreadSplitOptions","experimental_useExperiment","useSidebarThreadDraft","PluginSidebarThreadDraftState","useSidebarThreadDraftIds","useSidebarThreadRowStatus","useSidebarThreadRowStatuses","PluginSidebarThreadRowStatus","useSidebarSplitLayout","PluginSidebarSplitLayout","useSidebarThreadShortcut","PluginSidebarThreadShortcut","ThreadTitle","PluginThreadTitleProps","experimental_ThreadStatusGlyph","PluginThreadStatusGlyphProps","useEnvironmentProviders","PluginEnvironmentProvidersState","useSdk","PluginBrowserBbSdk","experimental_usePluginId"],firstParty:["Thread list"],experimental:!0},{id:"sidebar-footer",title:"Sidebar footer items",summary:"Add an icon to the bottom of Moonlet's sidebar. With this, a plugin can:",bullets:["Run an action, or open a small panel above the footer","Show quick status, such as usage limits, without leaving the thread","Follow the user's order and visibility choices in Appearance"],apiSymbols:["ExperimentalSidebarFooter","ExperimentalSidebarFooterItemBase","ExperimentalSidebarFooterItemRegistration","ExperimentalSidebarFooterActionRegistration","ExperimentalSidebarFooterActionContext","ExperimentalSidebarFooterDisclosureRegistration","ExperimentalSidebarFooterDisclosureProps","ExperimentalSidebarFooterDisclosureController","PluginSidebarFooterActionRegistration","PluginSidebarFooterActionProps"],firstParty:["Provider usage"],experimental:!0},{id:"thread-header",title:"Thread header controls",summary:"Add a control to the header of an open thread. With this, a plugin can:",bullets:["Show live state for the thread on screen, not just a static button","Sit in the same row as Moonlet's own header controls"],apiSymbols:["PluginThreadHeaderActionRegistration","PluginThreadHeaderActionProps"],experimental:!0},{id:"thread-actions",title:"Thread menu actions",summary:"Add an action to every thread menu and the sidebar row's quick actions. With this, a plugin can:",bullets:["Appear in the header menu, the row menu, the right-click menu, and the long-press drawer","Offer a list of choices that Moonlet renders as a submenu, a drawer step, or a popover","Read app-wide data once and derive each thread's entry from it","Render Moonlet's own thread menus in a replacement thread list"],apiSymbols:["PluginThreadActionRegistration","PluginThreadActionDataInput","PluginThreadActionItemInput","PluginThreadActionTarget","PluginThreadAction","PluginThreadActionChoices","PluginThreadActionChoice","PluginThreadActionEntry","experimental_useThreadActions","experimental_useThreadActionRegistrations","experimental_ThreadActionsMenu","experimental_ThreadActionsContextMenu","experimental_THREAD_ACTION_GROUPS"],firstParty:["Push notifications","Thread list"],experimental:!0},{id:"timeline-renderers",title:"Timeline entry content",summary:"Add rich detail to the timeline entries your plugin creates. With this, a plugin can:",bullets:["Draw custom content under each entry while Moonlet keeps its header and controls","Fall back to Moonlet's default view if the plugin is off or crashes"],apiSymbols:["PluginTimelineRendererRegistration","PluginTimelineRendererProps"],experimental:!0},{id:"message-directives",title:"Rich message embeds",summary:"Add live components to an agent's reply. With this, a plugin can:",bullets:["Let an agent write `::name` to place your component in its message","Show charts, task lists, or previews inline in the conversation","Open workspace files when someone clicks the embed"],apiSymbols:["PluginMessageDirectiveRegistration","PluginMessageDirectiveProps","PluginMessageDirectiveOpenWorkspaceFile"],firstParty:["Browser Automation","Docs","Inline visualizations","Tasks","Workflows"]},{id:"code-fence-renderers",title:"Inline code-block renderers",summary:"Replace fenced code blocks in an agent's reply with live UI. With this, a plugin can:",bullets:["Let an agent write a fenced ```ui block that your component renders live as the reply streams","Keep one component, with its state, per block for the whole reply","Tell a block that is still streaming from one that closed or was cut off","Fall back to Moonlet's code block when the plugin is off or a block's component throws"],apiSymbols:["ExperimentalCodeFenceRendererRegistration","ExperimentalCodeFenceRendererProps","ExperimentalCodeFenceStatus"],experimental:!0},{id:"message-actions",title:"Message actions",summary:"Add an action to messages in a thread. With this, a plugin can:",bullets:["Appear under messages on hover, or on text selected in a reply, in the main timeline only","Receive the message with the sequence its link uses, or the selected text","Open a [side-panel tab](thread-panel) or write into the composer with the result"],apiSymbols:["PluginMessageActionRegistration","PluginMessageActionContext","ThreadChatMessageReference"],firstParty:["Side chat"]},{id:"pending-interaction",title:"In-thread forms",summary:"Add a form that asks the person a question and returns the answer to the agent. With this, a plugin can:",bullets:["Replace the prompt box with your form, even after the turn has ended","Return the answer or cancellation to the agent and keep a record in the thread","Show Moonlet's answer shortcuts and respond when the person presses one","Dictate editable answers and wait for voice input before navigating or submitting"],apiSymbols:["PluginUi","PluginInteractionRequest","PluginInteractionDescription","PluginRowPresentation","PluginPendingInteractionRegistration","experimental_useQuestionFormHost","PluginPendingInteractionProps","PluginPendingInteractionView"],firstParty:["Ask User Question","Pi provider","Secrets"]},{id:"thread-info",title:"Thread Info rows and sections",summary:"Add a row to a thread's Info tab details, or a section below them. With this, a plugin can:",bullets:["Show plugin state for the thread beside Project, Environment, Branch, and Pull request",`List related items in a section with Moonlet's heading, count, collapse, and "N more" list`,"Sit at any position among Moonlet's own rows and sections, which use the same slots"],apiSymbols:["ExperimentalThreadInfoRowRegistration","ExperimentalThreadInfoSectionRegistration","ExperimentalThreadInfoProps","experimental_THREAD_INFO_ROW_GROUPS","experimental_THREAD_INFO_SECTION_GROUPS","experimental_InfoSection","ExperimentalInfoSectionProps","experimental_DetailRow","ExperimentalDetailRowProps","experimental_InfoList","ExperimentalInfoListProps","experimental_InfoListRow","ExperimentalInfoListRowProps"],firstParty:["Automations","GitHub PR Status"],experimental:!0},{id:"code-renderers",title:"Code & diff renderers",summary:"Replace Moonlet's code or diff viewer everywhere it appears. With this, a plugin can:",bullets:["Restyle file previews, timeline diffs, and plugin pages in one place","Replace code and diffs independently","Hand any render back to Moonlet, which also takes over if the plugin crashes"],apiSymbols:["PluginSourceCodeRendererRegistration","PluginSourceCodeRendererProps","PluginDiffRendererRegistration","PluginDiffRendererProps"],experimental:!0},{id:"browser-toolbar",title:"Browser toolbar controls",summary:"Add a control to the toolbar of each Browser tab. With this, a plugin can:",bullets:["Act on the page the person is looking at, with its URL and thread","Run scripts in the page on desktop and get results back"],apiSymbols:["ExperimentalPluginBrowserToolbarActionRegistration","ExperimentalPluginBrowserToolbarActionProps","ExperimentalPluginBrowserPage","ExperimentalPluginBrowserPageEvaluateOptions","ExperimentalPluginBrowserPageWorld"],firstParty:["Agent Annotations"],experimental:!0},{id:"thread-panel",title:"Thread side-panel tabs",summary:"Add a tab to the side panel next to a thread. With this, a plugin can:",bullets:["Show closable or pinned plugin tabs alongside the conversation","Know which thread the tab belongs to and hide pinned tabs when they do not apply","Use one tab registration for thread and navigation-page contexts; core Info and Diff use it too","Open from a [message action](message-actions), the side panel's + button, or plugin code"],reference:["Register tabs with app.slots.experimental_tab({ id, title, icon, tooltip?, layout?, context, availability, useVisible?, component }). context is { kind: 'thread' } or { kind: 'nav-panel', panelId }; the component receives threadId or subPath. Core Info and Diff use thread + fixed registrations. tooltip defaults to title; layout is padded (default) or flush.","availability: 'fixed' creates one pinned, non-closable destination per owner and tab id. availability: 'action' adds a launcher for closable instances; only actions accept run, default params and persisted instance params. Identical params focus the existing instance; different params open siblings. useVisible controls the fixed tab or launcher, never existing action instances. Hooks and components run in plugin scope with crash isolation.","Open through experimental_useAppPanel().experimental_openTab({ surface: { kind: 'current' }, tab: { id, context, availability }, params?, title?, target? }). Actions accept JSON params and an optional title. Navigation-page fixed tabs may declare experimental_target and receive validated session targets through experimental_useFixedTabTarget; thread fixed tabs reject targets. Unknown, hidden or wrong-context destinations return false. Existing openFixedTab, openThreadPanel and action openPanel calls delegate to the same opening path.","Identity and order survive hiding, disabling and reload. Thread fixed tabs persist as { id, kind: 'plugin-fixed', pluginId, tabId }; navigation-page fixed tabs and action instances keep their existing storage identities. SDK threads.tabs.get/update and CLI moonlet thread tabs show/set support thread tab entries with revision checks. Selection stays client-local. See the authoring skill's Tab API migration section for upgrading source registrations."],apiSymbols:["PluginAppSlots.experimental_tab","experimental_useAppPanel","ExperimentalTabRegistration","ExperimentalTabRegistration.tooltip","ExperimentalTabReference","ExperimentalTabContext","ExperimentalAppPanel.experimental_openTab","ExperimentalTabOpenOptions","ExperimentalTabTargetReference","ExperimentalThreadActionTabProps","BbNavigate.openThreadPanel","ExperimentalThreadTabActionContext"],firstParty:["Docs","GitHub","Side chat","Tasks","Workflows"]},{id:"file-opener",title:"File viewers & editors",summary:"Add a viewer or editor for the file types you choose. With this, a plugin can:",bullets:["Open files such as `.csv` or `.excalidraw` in your own view","Use lowercase alphanumeric extension names with single `_` or `-` separators between segments","Jump to the linked lines when someone opens a file reference","Hand individual files back to Moonlet's built-in preview"],apiSymbols:["PluginFileOpenerRegistration","PluginFileOpenerProps","PluginFileOpenerSource"],firstParty:["Docs","File Editor","PDF preview"]},{id:"app-overlay",title:"App-wide overlays",summary:"Add a floating widget that stays on screen across Moonlet. With this, a plugin can:",bullets:["Show persistent UI, such as a timer or a status badge, on every page","Control its own position and visibility","Fail on its own without affecting the rest of the app"],apiSymbols:["ExperimentalAppOverlayRegistration","ExperimentalAppOverlayProps"],firstParty:["Browser Automation","Push notifications"],experimental:!0},{id:"content-scripts",title:"App-wide scripts",summary:"Run code in every Moonlet window, without a UI of its own. With this, a plugin can:",bullets:["Add app-wide behavior, such as a keyboard shortcut","Set a [thread row status](thread-row-status) on any thread","Clean up automatically when the window reloads"],apiSymbols:["PluginContentScriptRegistration","PluginContentScriptContext"],firstParty:["Provider usage"]}]},{id:"command-palette",title:"Command palette",fixtureKind:"spatial",blurb:"Moonlet's searchable command menu. A plugin can add actions that match, rank, and run alongside Moonlet's own commands.",surfaces:[{id:"command-palette-actions",title:"Command palette actions",summary:"Add commands to Moonlet's command palette. With this, a plugin can:",bullets:["Run plugin actions from the palette or a keyboard shortcut","Suggest a default shortcut that people can rebind","Show a command only when the current thread or project fits","Open a plugin panel for the focused thread or New thread screen"],apiSymbols:["PluginAppBuilder.commands","PluginAppCommands","PluginCommandRegistration","PluginCommandContext","PluginCommandShortcut"],firstParty:["File Editor"]}]},{id:"composer",title:"The composer",fixtureKind:"spatial",blurb:"The prompt box used to start a thread and to reply inside one. A plugin can replace the box, add banners, menu entries, and action buttons to it, answer mention searches, highlight the draft prompt, and supply the agent that runs the message.",surfaces:[{id:"composer-replacement",title:"The composer box",summary:"Replace the prompt box with one your plugin draws, everywhere Moonlet shows a composer. With this, a plugin can:",bullets:["Bring its own editor, from a plain textarea to a code editor","Search Moonlet's @-mentions and commands; keep its pills, attachments, history and voice input","Place Moonlet's model, mode and handoff controls where it wants them","Keep other plugins' actions, popups and menu entries working inside it"],apiSymbols:["ExperimentalComposerRegistration","ExperimentalComposerProps","experimental_useComposerRenderer","ExperimentalComposerRendererApi","ExperimentalComposerInput","ExperimentalComposerView","experimental_ComposerRoot","ExperimentalComposerRootProps","ExperimentalComposerEditor","ExperimentalComposerEditorState","ExperimentalComposerEditorVoice","experimental_useComposerContributions","ExperimentalComposerContributions","experimental_useComposerMentionSearch","ExperimentalComposerMentionSearch","ExperimentalComposerMentionSuggestion","experimental_useComposerCommandSearch","ExperimentalComposerCommandSearch","ExperimentalComposerCommandSuggestionGroup","experimental_describePromptMention","experimental_promptMentionClipboardAttributes","experimental_readPromptMentionClipboard","experimental_PromptMentionIcon","experimental_VoiceInputButton","experimental_VoiceRecordingBar"],firstParty:["Composer"],experimental:!0},{id:"composer-banners",title:"Banners",summary:"Add a banner above the prompt box. With this, a plugin can:",bullets:["Warn or inform before someone sends, such as a rate limit or a retry","Show only on new threads, open threads, or queued messages","Add a segment to an open thread's context row, with details below it"],apiSymbols:["ComposerCustomization","PluginComposerScope","PluginAppSlots.experimental_threadContextSegment","experimental_THREAD_CONTEXT_SEGMENT_GROUPS","ExperimentalThreadContextSegmentRegistration","ExperimentalThreadContextSegmentProps","ExperimentalThreadContextSegmentInput","ExperimentalThreadContextSegmentReference","ExperimentalThreadEnvironment"],firstParty:["Send later","Workflows","GitHub PR Status"]},{id:"composer-state",title:"Draft prompt state & locking",summary:"Use the draft prompt from plugin code. With this, a plugin can:",bullets:["Read the draft's text, @-mentions, and attachments","Insert or rewrite text, @-mentions, and thread pills in one step","Lock the prompt box while the plugin works, then release it","Write into any prompt box on screen from a panel or page"],apiSymbols:["useComposer","useComposers","PluginComposerApi","ComposerDraft","ComposerDraftReplacement","ComposerAttachment","PluginComposerApi.replace","ComposerDraftSnapshot","PluginComposerApi.insert","ComposerMention"],firstParty:["Agent Annotations","Docs","Send later","Workflows"]},{id:"mention-provider",title:"Mentions",summary:"Add items to the menu that opens when someone types @ or another trigger. With this, a plugin can:",bullets:["Search the plugin's own data as the person types","Claim its own trigger, such as # or $","Turn a pick into a chip whose content reaches the agent on send"],apiSymbols:["PluginMentionProviderRegistration","PluginMentionSearchContext","PluginMentionItem"],firstParty:["Agent Annotations","Docs","GitHub","Tasks"]},{id:"composer-rich-text",title:"Draft prompt highlighting",summary:"Add highlighting to text as someone types a prompt. With this, a plugin can:",bullets:["Highlight matches such as ticket numbers or TODOs without changing the text","Respond after a message is sent or queued"],apiSymbols:["ComposerRichTextSpec","PluginComposerApi.replace","PluginComposerApi.onSubmitted"]},{id:"composer-plus-menu",title:"The + and send menus",summary:"Add rows to the + menu or the menu beside the send button. With this, a plugin can:",bullets:["Offer actions such as templates from the prompt box","Send the draft later, keeping its attachments and mentions","Attach plugin data to a send for its [dispatch hook](dispatch-hook)"],apiSymbols:["ComposerPlusMenuItem","ComposerSendMenuItem","ComposerSubmitOptions"],firstParty:["Automations","BB guide","Drafts","Send later"]},{id:"provider-picker",title:"Agent providers",summary:"Provide an agent people can pick in Moonlet's model picker. With this, a plugin can:",bullets:["Bring any CLI agent into Moonlet, with its own models and icon","Run every thread started with it through a bridge the plugin ships","Report context usage, service tiers, and install status","Stop provider startup when required environment protection is unavailable or conflicts"],reference:["Use providers.experimental_contributeEnv(providerId, resolver, { experimental_required: true }) when an unavailable or conflicting contribution must stop provider environment construction.","Empty results may exclude hosts outside the resolver scope. This does not attest native isolation, replace authorization or retire already running provider processes."],apiSymbols:["contextSnapshotSchema","ContextSnapshot","ContextCategory","ContextEntry","PluginProviderDeclaration","AvailableModel","ModelServiceTier","providerInstallationStatusParamsSchema","ProviderInstallationStatusParams","PluginProviderIconRegistration","experimental_useProviders","PluginProvidersState","ExperimentalPluginProviderEnvContext","ExperimentalPluginProviderEnvEntry","PluginProviders.experimental_contributeEnv","ExperimentalPluginProviderEnvHealthContext","ExperimentalPluginProviderEnvHealth","experimental_spawnPortableProcess","experimental_killPortableProcess","PluginProviders"],firstParty:["ACP providers","Claude Code provider","Codex provider","Pi provider"],experimental:!0},{id:"composer-actions",title:"Inline actions",summary:"Add a button inside the prompt box, beside voice and send. With this, a plugin can:",bullets:["Rewrite the draft, for example to rephrase it or insert a template","Open a popup anchored to the prompt box","Run from a keyboard shortcut people can rebind"],apiSymbols:["PluginComposerApi","PluginComposerApi.insert","ComposerInsertPart","ComposerInsertOptions","ComposerCustomization.experimental_popups","ExperimentalComposerPopupRegistration","PluginComposerApi.experimental_openPopup","PluginComposerApi.experimental_closePopup","PluginAppComposer.experimental_registerCommand","ExperimentalComposerCommandRegistration","PluginComposerApi.setSelection","PluginComposerApi.selection","ComposerSelection"]}]},{id:"home",title:"Home page",fixtureKind:"spatial",blurb:"The screen Moonlet opens on, holding the new-thread composer and a side panel. A plugin can add a section below the composer, and an action in that panel that opens its own tab.",surfaces:[{id:"home-page",title:"The home page",summary:"Replace the home page with one of your plugin's pages. With this, a plugin can:",bullets:["Open at its own page instead of Moonlet's new-thread page","Leave New thread a click away, at /new","Let the owner pin it, or Moonlet's page, in Appearance","Open or close the sidebar, show or hide the rail's names, and send the user home from any page"],apiSymbols:["ExperimentalPluginHomeRegistration","experimental_useSidebar","ExperimentalSidebarControl"],experimental:!0},{id:"homepage-section",title:"Home-screen sections",summary:"Add a section to Moonlet's home page. With this, a plugin can:",bullets:["Show shortcuts, pinned work, or recent activity before any thread exists","Span the full width below the composer on desktop"],apiSymbols:["PluginHomepageSectionRegistration","PluginHomepageSectionProps"]},{id:"new-thread-panel",title:"New-thread side panel",summary:"Add a side-panel tab to the new-thread screen. With this, a plugin can:",bullets:["Help people set up work while they write the first prompt","Use the project selected in the prompt box"],apiSymbols:["PluginNewThreadPanelActionRegistration","PluginNewThreadPanelProps"],experimental:!0}]},{id:"settings",title:"Plugin settings page",fixtureKind:"spatial",blurb:"The settings page Moonlet creates for every installed plugin. A plugin can declare fields for Moonlet to render and add its own section below them.",surfaces:[{id:"declarative-settings",title:"Settings fields",summary:"Add settings fields to the plugin's settings page without writing UI. With this, a plugin can:",bullets:["Declare text, number, toggle, choice, or project fields as data","Get validation and autosave without extra code","Have each field found by Settings search through its label, key, or description","Keep secret values on the server, never sent to the browser"],apiSymbols:["PluginSettings","PluginSettingsHandle","PluginSettingDescriptor","PluginSettingsState","useSettings","PluginSettingsValues"],firstParty:["ACP providers","Moonlet Connect","BB guide","Claude Code provider","Codex provider","Custom instructions","GitHub","Modal Sandbox [Experimental]","Provider retry","Push notifications","Workflows"]},{id:"settings-section",title:"Custom settings section",summary:"Add your own section to the plugin's settings page. With this, a plugin can:",bullets:["Show anything that isn't a form field, such as a connect-account button","Place a section on a core Settings page, or on its own page in a sidebar group","Move [generated fields](declarative-settings) into a section, keeping values and autosave","Draw cards and rows with the same components core Settings pages use"],apiSymbols:["PluginSettingsSectionRegistration.experimental_page","PluginSettingsSectionRegistration.experimental_placement","PluginSettingsSectionRegistration.experimental_useTitle","PluginSettingsSectionRegistration.experimental_useGroupTitle","PluginSettingsSectionRegistration.experimental_fields","PluginSettingsSectionRegistration","PluginSettingsSectionProps","experimental_SettingsSection","ExperimentalSettingsSectionProps","experimental_SettingsRow","ExperimentalSettingsRowProps"],firstParty:["Account Pooler [Experimental]","Moonlet account","Moonlet Connect","Concurrency limit","Keep Awake","Memory","Modal Sandbox [Experimental]","Provider usage","Push notifications"]},{id:"first-run-step",title:"First-run step",summary:"Add a step to the setup a new install walks through once. With this, a plugin can:",bullets:["Ask a new owner a few questions after the agent step, before projects","Save each answer where it lives, so it stays editable in Settings afterward","Show again when the owner replays first run from Settings or the CLI"],apiSymbols:["ExperimentalFirstRunStepRegistration","ExperimentalFirstRunStepProps"],experimental:!0}]},{id:"extensions",title:"Plugin page",fixtureKind:"spatial",blurb:"The page Moonlet shows for an installed plugin under Plugins: what it is, what it registers, and whether it is healthy. A plugin can report that it needs configuring, and Moonlet says so at the top of this page.",surfaces:[{id:"plugin-status",title:"Configuration status",summary:"Add a needs-configuration warning to the plugin's page. With this, a plugin can:",bullets:["Tell people what's missing instead of failing silently","Send them to Settings, then reload after they save"],apiSymbols:["PluginStatusApi"],firstParty:["Account Pooler [Experimental]","GitHub","Modal Sandbox [Experimental]","Workflows"]}]},{id:"headless",title:"Plugin backend",fixtureKind:"capability-grid",blurb:"The parts of the plugin API with no interface of their own.",sections:[{title:"Commands & agent capabilities",surfaceIds:["cli","agent-tools"]},{title:"Running & reacting",surfaceIds:["background","wire","thread-events","system-messages","dispatch-hook","environment-providers","machine-providers","server-access","host-workers","provider-bridges"]},{title:"Data & platform",surfaceIds:["storage","bb-sdk","thread-plugin-metadata","desktop-browsers","ai-services","host-components"]},{title:"Confidence",surfaceIds:["testing"]}],surfaces:[{id:"cli",tagline:"Your own `Moonlet <name>` command",title:"Moonlet CLI commands",summary:"Add a `Moonlet <name>` command for people and agents. With this, a plugin can:",bullets:["Run the same command from a terminal, a script, or an agent mid-task","Get argument parsing, `--help`, and JSON errors from one declaration","Know which thread and project it was run from","Decode message newline escapes when accepting command text"],apiSymbols:["PluginCli","PluginCliResult","defineCli","cliCommand","experimental_decodeCliNewlines","PluginCliError","PluginCliSpec","PluginCliCommand","PluginCliOption","PluginCliContext","PluginCliRegistration.internal_DO_NOT_USE_topLevel","PluginCliSpec.internal_DO_NOT_USE_pluginOnly"],firstParty:["Account Pooler [Experimental]","Automations","Moonlet account","Moonlet cloud AI","Moonlet Connect","Browser Automation","Concurrency limit","Custom instructions","Docs","GitHub","Keep Awake","Memory","Modal Sandbox [Experimental]","Provider retry","Push notifications","Secrets","Tasks","Thread list","Workflows"]},{id:"agent-tools",tagline:"Native tools, skills, and instructions in every session",title:"Agent tools & skills",summary:"Add tools, skills, and instructions to every agent session. With this, a plugin can:",bullets:["Give agents native tools that work like Moonlet's built-in ones","Choose per thread which tools and skills are available","Add instructions to the system prompt when a session starts","Publish skills at runtime that every session sees, and withdraw them [Experimental]"],apiSymbols:["PluginAgents","PluginAgentToolContext","PluginRowPresentation","PluginRowLabels","ExperimentalPluginPublishedSkill","ExperimentalPluginPublishedSkillFile","ExperimentalPluginPublishSkillsResult","ExperimentalPluginPublishSkillsProblem"],firstParty:["Account Pooler [Experimental]","ACP providers","Agent Annotations","Ask User Question","Automations","Moonlet account","Moonlet cloud AI","Moonlet Connect","BB guide","Browser Automation","Claude Code provider","Codex provider","Concurrency limit","Custom instructions","Docs","Inline visualizations","Memory","Modal Sandbox [Experimental]","Pi provider","Provider retry","Secrets","Tasks","Theme Preview","Thread list","Workflows"]},{id:"background",tagline:"Supervised services and cron schedules",title:"Background work",summary:"Run code on the Moonlet server when no window is open. With this, a plugin can:",bullets:["Keep services running, with automatic restarts after a failure","Run jobs on a cron schedule","Set things up once, right after install"],apiSymbols:["PluginBackground","PluginServerApi.internal_DO_NOT_USE_stationSettingsJob","BbPluginApi.onInstall","BbPluginApi.internal_DO_NOT_USE_schedules","internal_DO_NOT_USE_retireScheduleSource"],firstParty:["Account Pooler [Experimental]","ACP providers","Automations","Moonlet account","Moonlet Connect","Concurrency limit","Docs","GitHub","Keep Awake","Modal Sandbox [Experimental]","Push notifications","Side chat","Theme Preview","Workflows"]},{id:"wire",tagline:"Typed RPC, HTTP & WebSocket routes, realtime push",title:"HTTP, WebSocket, RPC & realtime",summary:"Use RPC, HTTP, WebSocket, and realtime messages to connect the plugin. With this, a plugin can:",bullets:["Call its server from its UI with schema-checked RPC and typed refusals","Receive webhooks and serve HTTP or WebSocket routes","Share live reads and optimistic updates; finish pending writes at server acknowledgement","Publish RPC methods other plugins can discover; run producers while reads are watched"],reference:["All live hooks take { contract, method, ... } and infer their types: plain reads add input, keyed reads add keys and optional select, and mutations add optional optimistic","Data retains successful values and shared predictions during refresh errors. Plain reads start undefined; keyed reads expose loaded rows, initially an empty record, through select","isLoading means an enabled read is fetching never-loaded data, including missing requested keys. isFetching includes background attempts; keyed views share their method's activity","error is an experimental_PluginRpcCallError or null. Success clears it; retrying a first load clears its previous error while loading. refetch forces a read, waits through retries, and records failures in error without rejecting","Reads stay fresh for two seconds without polling. Focus does not refetch while Moonlet's realtime connection is healthy; while disconnected, focus/browser-online events recheck stale active reads. Moonlet reconnect invalidates all plugin reads. Page hiding cancels active attempts and resume restarts those cancelled reads","Invalidations refresh immediately. Network/abort failures retry twice at 250 ms, HTTP failures never retry, and writes never retry automatically. Tags are plain strings shared between read dependencies and write invalidations","mutate, isPending and pendingInputs settle at write acknowledgement; matched reads refresh in the background. Shared predictions stay until confirmed reads arrive, or roll back on write failure","Optimistic updaters must be pure and replayable; generate IDs and timestamps before mutate","RPC error codes may grow: switch on error.code with a fallback. Newer server codes become unknown_error with the original serverCode; transport_error and invalid_response cover client failures. CLI output preserves unknown codes"],apiSymbols:["PluginRpc","PluginRpcMethodContract","ExperimentalPluginRpcHandlersWithContext","ExperimentalPluginRpcHandlerContext","ExperimentalPluginRpcCaller","PluginBbSdk.plugins.experimental_discoverRpc","PluginHttp","PluginRealtime","useRpc","experimental_useRpcQuery","experimental_useRpcKeyedQuery","experimental_useRpcMutation","experimental_useRpcRefresh","ExperimentalRpcQueryState","ExperimentalRpcKeyedMethod","ExperimentalRpcKeyedValue","experimental_PluginRpcCallError","ExperimentalRpcKeyedQueryState","ExperimentalRpcQueryOptions","ExperimentalRpcMutationOptions","ExperimentalRpcOptimisticCache","ExperimentalRpcMutationState","PluginRpc.experimental_invalidate","PluginRpc.experimental_invalidateAll","PluginRpc.experimental_whileWatched","PluginRpcClient","useRealtime","useRealtimeConnectionState","PluginRealtimeConnectionState","ExperimentalPluginWebSocket","ExperimentalPluginWebSocketContext","ExperimentalPluginWebSocketHandler","ExperimentalPluginWebSocketHandlers","defineRpcContract","PluginRpcContract","PluginRpcError","PluginRpcErrorCode","experimental_PluginRpcRefusal","PluginRpcHandlers"],firstParty:["Account Pooler [Experimental]","ACP providers","Agent Annotations","Automations","Moonlet account","Moonlet cloud AI","Moonlet Connect","Browser Automation","Claude Code provider","Codex provider","Concurrency limit","Docs","File Editor","GitHub","GitHub PR Status","Inline visualizations","Keep Awake","Memory","Modal Sandbox [Experimental]","Provider usage","Push notifications","Side chat","Tasks","Theme Preview","Thread list","Workflows","Worktree"]},{id:"thread-events",tagline:"React when threads and environments change",title:"Lifecycle events",summary:"Run server code when threads change state or environments are removed. With this, a plugin can:",bullets:["React when threads start, finish, fail, change parent, are archived or unarchived, or are deleted","Follow owner messages and queued messages, including ones cancelled before dispatch","Get the provider's error and rate-limit windows when a turn fails","Observe successful environment removal with its previous machine and path"],apiSymbols:["PluginEvents","PluginThreadEventPayloads","PluginTurnFailedEvent"],firstParty:["Automations","Moonlet Connect","Browser Automation","Concurrency limit","Modal Sandbox [Experimental]","Provider retry","Provider usage","Push notifications","Tasks","Workflows"]},{id:"system-messages",tagline:"Wake a thread the way Moonlet does",title:"System messages",summary:"Use labeled notices to wake a thread, the way Moonlet tells a parent that a child finished. With this, a plugin can:",bullets:["Start a turn, steer a working one, or wait for an offline host, as Moonlet's own notices do","Show a collapsed line in the chat instead of a message from the user","Mark a notice quiet, so the agent's reply isn't shown in the chat or sent as a push notification","Post a message to the user outside any turn, the one way a quiet turn reaches them"],apiSymbols:["PluginThreads","PluginSystemMessage","PluginOwnerMessage","PluginOwnerMessageReceipt","PluginQuietTurn"],experimental:!0},{id:"dispatch-hook",tagline:"Decide whether a message may go",title:"Dispatch hook",summary:"Run a check before each message reaches an agent. With this, a plugin can:",bullets:["Let a message go, queue it with a reason, or refuse it","See the thread, project, machine, and prompt before the turn runs","Hold messages until a condition clears, such as a concurrency limit","Leave people a Send now override"],apiSymbols:["PluginHooks","PluginHookSignatures","MessageDispatchHookContext","PluginDispatchEnvironmentIntent","MessageDispatchHookDecision"],firstParty:["Concurrency limit","Drafts"],experimental:!0},{id:"environment-providers",tagline:"Provision where a thread runs",title:"Environment providers",summary:"Provide new places a thread can run, picked like any environment. With this, a plugin can:",bullets:["Create a workspace for each thread, such as a worktree or a cloud checkout","Ask for inputs, such as a branch, on the new-thread screen","Stream setup progress, clean up finished threads, and opt in to clear failed starts","Restore a thread's workspace after it was removed"],reference:["Opt in with policy.experimental_cleanupFailedBeforeRun to clean up failed starts before any provider session or turn, without archiving."],apiSymbols:["PluginEnvironments","PluginEnvironmentProviderDeclaration","PluginEnvironmentProviderRequirements","PluginEnvironmentValidateDecision","PluginEnvironmentProviderInputsRegistration","PluginEnvironmentProviderInputsProps","PluginEnvironmentProviderInputsChange","experimental_BranchPicker","BranchPickerProps","experimental_useBranches","UseBranchesArgs","BranchesState","experimental_useCheckoutState","UseCheckoutStateArgs","CheckoutState","PluginEnvironmentProviderDefinition","PluginEnvironmentProviderInputsSchema","PluginEnvironmentProviderPolicy","PluginEnvironmentProviderValidateContext","PluginEnvironmentProviderAvailabilityContext","PluginEnvironmentProviderAvailability","PluginEnvironmentProviderCreateContext","PluginEnvironmentProviderRestoreContext","PluginEnvironmentProviderCreateResult","PluginEnvironmentProviderProgress","PluginEnvironmentProviderRemoveContext","PluginEnvironmentProviderRemoveResult"],firstParty:["Modal Sandbox [Experimental]","Personal workspace","Project checkout","Worktree"],experimental:!0},{id:"machine-providers",tagline:"Create and own execution machines",title:"Machine providers",summary:"Provide machines that Moonlet creates and manages, such as cloud sandboxes. With this, a plugin can:",bullets:["Create, suspend, resume, and remove machines on demand","Pause a machine with its memory, so its turns and terminals carry on after it wakes","Pair them with an [environment provider](environment-providers) for one-step threads","Recover safely after restarts or cancelled creates"],apiSymbols:["PluginMachines","PluginBbSdk.hosts.experimental_create","PluginBbSdk.hosts.experimental_getEnrollmentCommand","PluginBbSdk.hosts.experimental_listProviders","PluginBbSdk.hosts.experimental_suspend","PluginBbSdk.terminals.experimental_listRunning","PluginBbSdk.hosts.experimental_reconcile","PluginBbSdk.hosts.experimental_resume","PluginBbSdk.hosts.experimental_retryCleanup","PluginBbSdk.hosts.delete","PluginMachines.getResource","MachineExecutorRequest","MachineExecutor","MachineBootstrapRequest","MachineBootstrapApi","PluginMachineProviderDeclaration","PluginMachineValidateDecision","PluginMachineProviderInputsRegistration","PluginMachineProviderInputsProps","PluginMachineProviderInputsChange","PluginMachineProviderDefinition","PluginMachineProviderInputsSchema","PluginMachineProviderAvailability","PluginMachineProviderValidateContext","PluginMachineProviderCreateContext","PluginMachineProviderCreateResult","PluginMachineProviderLifecycleContext","PluginMachineProviderProgress","PluginMachineProviderResourceResult","PluginMachineProviderResource","PluginMachineProviderRemoveResult"],firstParty:["Modal Sandbox [Experimental]","E2B Moonlets"],experimental:!0},{id:"server-access",tagline:"Connect machines to their server",title:"Machine server access",summary:"Provide the connection machines use to reach their Moonlet server. With this, a plugin can:",bullets:["Give new machines what they need to enroll, such as a tunnel URL","Appear as a choice in Machines settings and manual setup"],apiSymbols:["PluginServerAccess","ServerAccessProviderDeclaration","ServerAccessGrant","PluginHosts.declareSharedPorts","PluginHosts.ensureSharedPortTunnel","PluginSharedPortTunnelIdentity"],firstParty:["Moonlet Connect"],experimental:!0},{id:"host-workers",tagline:"Run code on enrolled machines",title:"Host workers",summary:"Run plugin code on enrolled machines, not only on the server. With this, a plugin can:",bullets:["Watch files, hold a wake lock, or run local commands on that machine","Call the worker from server code over typed RPC","Stop leftover processes before a workspace is deleted","Queue git and gh with priority, cancellation, and reserved foreground capacity"],apiSymbols:["PluginHosts","experimental_killProcessesWithCwdUnder","experimental_readProcessIdentity","ExperimentalProcessIdentity","experimental_sanitizeInheritedChildProcessEnv","ExperimentalSanitizeInheritedChildProcessEnvArgs","experimental_spawnPortableOutputProcess","experimental_runVcsProcess","ExperimentalVcsProcessOptions","ExperimentalVcsProcessPriority","experimental_defineHostEntry","ExperimentalHostEntry","ExperimentalHostClient","ExperimentalHostRpcContext","ExperimentalHostRpcHandlers","ExperimentalHostSignals","ExperimentalHostWatchOptions","ExperimentalHostWatchSubscription","ExperimentalHostWorkerLease","ExperimentalHostPaths"],firstParty:["ACP providers","Browser Automation","Claude Code provider","Codex provider","Concurrency limit","GitHub PR Status","Keep Awake","Personal workspace","Pi provider","Project checkout","Worktree"],experimental:!0},{id:"provider-bridges",title:"Provider bridges",tagline:"Bring any agent's runtime into Moonlet",summary:"Run an agent's sessions through a bridge your plugin ships to each machine. With this, a plugin can:",bullets:["Translate an agent CLI or SDK into Moonlet's timeline, tool calls, approvals, and usage","Run any Agent Client Protocol agent through the bundled ACP bridge, with no bridge code","Show native skills, commands, and plugins; validate selections with the shared skills index","Test it against Moonlet's conformance suite and recorded sessions, without a running Moonlet"],apiSymbols:["experimental_defineProviderBridge","experimental_scanSkillFiles","experimental_selectedSkillMentions","ExperimentalSkillScanRoot","ExperimentalIndexedSkillFile","ProviderBridgeDefinition","ProviderBridgeContext","ProviderBridgeEntry","PROVIDER_BRIDGE_EXPORT_NAME","PROVIDER_BRIDGE_PROTOCOL_VERSION","ThreadDelta","threadDeltaSchema","BridgeCapabilities","experimental_BridgeRecoveryError","experimental_toolPresentation","experimental_resolveExecutablePath","experimental_recordProviderChildIo","experimental_acpProviderBridge","AcpLaunchSpec","experimental_acpLaunchSpecSchema","experimental_probeAcpAgent","experimental_registerAcpDialect","AcpDialect","experimental_nativeRootsHostContract","experimental_filterResolvedNativeRoots","experimental_resolveClaudePluginRoots","experimental_resolveVendorPluginRoots","experimental_createBridgeJsonRpcTestHarness","experimental_runBridgeConformance","experimental_replayRecording"],firstParty:["ACP providers","Claude Code provider","Codex provider","Pi provider"],experimental:!0},{id:"storage",tagline:"Namespaced KV plus your own SQLite",title:"Storage",summary:"Use storage on the Moonlet server that only your plugin can see. With this, a plugin can:",bullets:["Keep small values such as flags and cursors in a key-value store","Get its own SQLite database with migrations","Keep internal credentials out of settings","Store secret files in a private base directory on the server"],apiSymbols:["PluginStorage","PluginStorage.experimental_secretDirectory"],firstParty:["Account Pooler [Experimental]","Agent Annotations","Automations","Moonlet account","Moonlet cloud AI","Moonlet Connect","Browser Automation","Concurrency limit","Custom instructions","Docs","GitHub","Keep Awake","Memory","Modal Sandbox [Experimental]","Push notifications","Side chat","Tasks","Thread list","Workflows"]},{id:"bb-sdk",tagline:"Create threads and projects from plugin code",title:"The Moonlet SDK",summary:"Use Moonlet's own API from plugin server code. With this, a plugin can:",bullets:["Create threads attributed to the plugin, send messages, and manage projects and machines","Follow plugin updates and rollbacks, and read required plugin and recovery status","Read Viewed state for up to 500 file paths; mark and clear return acknowledgements","Retry failed environment cleanup with recover: true after inspecting processes using the workspace"],reference:["sdk.experimental_permissions uses the protected settings routes for policy, approvals and recipients. It never answers an interaction; machine clients remain refused.","plugins.enable/disable and system.uiPreferences.set accept expectedPlugin to refuse a changed source or enabled value; sidebar writes also require the current preference revision."],apiSymbols:["BbPluginApi","PluginServerApi","PluginBbSdk.hosts.get","PluginBbSdk.experimental_permissions.policy","PluginBbSdk.experimental_permissions.edit","PluginBbSdk.experimental_permissions.takeBack","PluginBbSdk.experimental_permissions.revokeGrant","PluginBbSdk.hosts.experimental_inventory","PluginBbSdk.hosts.experimental_setRole","PluginBbSdk.hosts.experimental_discoverRepos","PluginBbSdk.experimental_promptHistory.list","PluginBbSdk.environments.experimental_cleanup","PluginBbSdk.environments.experimental_diffViewed","PluginBbSdk.environments.experimental_markDiffViewed","PluginBbSdk.environments.experimental_clearDiffViewed","PluginBbSdk.plugins.experimental_appView","PluginBbSdk.plugins.experimental_getLifecycleStatus","PluginBbSdk.system.uiPreferences.set","PluginBbSdk.plugins.disable","PluginBbSdk.plugins.enable","PluginBbSdk.plugins.remove","PluginBbSdk.plugins.experimental_getSafeMode","PluginBbSdk.plugins.experimental_setSafeMode","PluginBbSdk.plugins.experimental_pruneCache","PluginBbSdk.plugins.experimental_startUpdate","PluginBbSdk.plugins.experimental_updateJobs","PluginBbSdk.threads.queuedMessages.experimental_holdForEdit","PluginBbSdk.threads.queuedMessages.experimental_releaseEditHold","PluginBbSdk.threads.experimental_listDescendants"],firstParty:["Account Pooler [Experimental]","ACP providers","Automations","Moonlet cloud AI","Moonlet Connect","Browser Automation","Claude Code provider","Codex provider","Concurrency limit","Docs","File Editor","GitHub","Inline visualizations","Keep Awake","Modal Sandbox [Experimental]","Project checkout","Provider retry","Provider usage","Push notifications","Secrets","Side chat","Storage & retention [Experimental]","Tasks","Theme Preview","Thread list","Workflows","Worktree"]},{id:"thread-plugin-metadata",tagline:"Keep plugin data with a thread",title:"Thread plugin metadata",summary:"Use a private JSON record on each thread. With this, a plugin can:",bullets:["Keep plugin data with the thread it belongs to, hidden from the model","Seed it when spawning or forking a thread","Read it when configuring that thread's agent","Read it for many threads at once, along with each thread's ancestors"],apiSymbols:["PluginBbSdk","PluginAgentConfigurationContext","ReadonlyJsonValue","BbPluginApi"],firstParty:["Push notifications","Workflows"]},{id:"desktop-browsers",title:"Desktop browser control",tagline:"Use your automation tool on Moonlet-owned tabs",summary:"Use Moonlet's desktop browser tabs from plugin code. With this, a plugin can:",bullets:["Open signed-in tabs that belong to a thread","Give an automation tool private control of a tab","Copy a profile's sign-in from another browser"],apiSymbols:["ExperimentalDesktopBrowsersArea","ExperimentalDesktopBrowserScope","ExperimentalDesktopBrowserLease","ExperimentalDesktopBrowserCreateInput","ExperimentalDesktopBrowserAcquireInput","ExperimentalDesktopBrowsersArea.listImportSources","ExperimentalDesktopBrowsersArea.importCookies"],firstParty:["Browser Automation"],experimental:!0},{id:"ai-services",tagline:"Write Moonlet's titles, commit messages, and transcripts",title:"AI services",summary:"Provide the models that write Moonlet's titles, commit messages, and transcripts. With this, a plugin can:",bullets:["Write thread titles and commit messages with any model","Transcribe voice input from the microphone button","Appear as a choice under AI services in Settings \u2192 Providers"],apiSymbols:["PluginAiServices","PluginAiServiceDeclaration","PluginAiServiceStatus"],firstParty:["Moonlet cloud AI","Codex provider"],experimental:!0},{id:"host-components",tagline:"Embed Moonlet's chat and prompt box",title:"Host components",summary:"Use Moonlet's own chat, prompt box, and pickers inside plugin pages. With this, a plugin can:",bullets:["Embed a thread with queued or steered messages, a new-thread composer, or editable voice input","Render Markdown, code, diffs, and file links, and copy text and save files, the way Moonlet does","Add or override app icons","Match Moonlet's styling with no extra work"],apiSymbols:["experimental_Icon","experimental_ProviderIcon","ExperimentalProviderIconProps","ExperimentalIconProps","ExperimentalIconRegistration","ExperimentalAppIcons","PluginAppBuilder.experimental_icons","ThreadChat","ThreadChatProps.experimental_messageFooter","ThreadChatProps.experimental_sendMode","Markdown","MarkdownProps.experimental_document","experimental_NewThreadComposer","experimental_VoiceInputTextarea","ExperimentalVoiceInputTextareaProps","experimental_ProviderModelPicker","ExperimentalProviderModelPickerProps","experimental_PermissionModePicker","ExperimentalPermissionModePickerProps","experimental_SourceCode","SourceCodeProps","experimental_Diff","DiffProps","experimental_useCodeTheme","PluginCodeThemeState","experimental_copyToClipboard","ExperimentalClipboardContent","experimental_saveFile","ExperimentalSaveFileRequest","ExperimentalSaveFileOutcome","UrlLink","UrlLinkProps","experimental_FileLink","ExperimentalFileLinkProps","ExperimentalLiveFileTarget","ExperimentalFileLocation","ExperimentalFileOpenOptions","BbNavigate.openUrl","BbNavigate.experimental_openFilePreview","BbNavigate.experimental_openFileExternally"],firstParty:["Account Pooler [Experimental]","Automations","Moonlet account","Moonlet Connect","Docs","File Editor","GitHub","Inline visualizations","Provider usage","Side chat","Tasks","Thread list"]},{id:"testing",tagline:"Unit-test every surface without a running Moonlet",title:"Testing harnesses",summary:"Use test harnesses that run without Moonlet. With this, a plugin can:",bullets:["Test server code against an in-process fake Moonlet server","Render UI slots under vitest","Drive host workers without a machine"],apiSymbols:["createFakePluginHost","renderSlot","RenderedSlotInspectionState.experimental_pageTitle","createFakeSdk","experimental_createHostEntryHarness","loadPluginApp","mountPluginContentScripts","installTestPluginRuntime","experimental_scanPublicSdkOnly"],firstParty:["Account Pooler [Experimental]","ACP providers","Agent Annotations","Ask User Question","Automations","Moonlet account","Moonlet cloud AI","Moonlet Connect","BB guide","Browser Automation","Claude Code provider","Codex provider","Concurrency limit","Custom instructions","Docs","Drafts","File Editor","GitHub","Inline visualizations","Keep Awake","Memory","Modal Sandbox [Experimental]","PDF preview","Personal workspace","Pi provider","Project checkout","Provider retry","Provider usage","Push notifications","Secrets","Send later","Side chat","Tasks","Theme Preview","Thread list","Workflows","Worktree"]}]}],De=new Map(Oe.flatMap(t=>t.surfaces.map(a=>[a.id,{id:t.id,title:t.title}]))),Be=new Map(Oe.flatMap(t=>t.surfaces.map(a=>[a.id,a])));var gn="plugin-api-docs",hn="surface",wt="Build a plugin that uses ",Pt=" ";function fn(t){let a={provider:hn,id:t.id,label:t.title},i=`@${a.label}`,r={kind:"plugin",pluginId:gn,icon:null,itemId:`${a.provider}:${a.id}`,label:a.label},s={text:`${wt}${i}${Pt}`,html:`${ue(wt)}<span data-prompt-mention="true" data-prompt-mention-resource="${ue(JSON.stringify(r))}" data-prompt-mention-serialized-text="${ue(i)}">${ue(i)}</span>${ue(Pt)}`},o=[`Plugin Guide surface: ${t.title} (${t.id}).`,`Relevant @get-bb/plugin-sdk symbols: ${t.apiSymbols.join(", ")}.`,...t.reference??[],"Use the bb-plugin-authoring skill and the authoritative @get-bb/plugin-sdk declarations to build a similar plugin capability."].join(`
|
|
2
|
+
`);return{identity:a,resource:r,clipboard:s,context:o}}function bn(t){return fn(t).clipboard}function yt(t){return ft(bn(t))}var St=[["path",{d:"M19 9H6.65856C5.65277 9 5.14987 9 5.02472 8.69134C4.89957 8.38268 5.25517 8.01942 5.96637 7.29289L8.21091 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 15H17.3414C18.3472 15 18.8501 15 18.9753 15.3087C19.1004 15.6173 18.7448 15.9806 18.0336 16.7071L15.7891 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var kt=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var He=[["path",{d:"M14 21H16M14 21C13.1716 21 12.5 20.3284 12.5 19.5V17L12 17M14 21H10M10 21H8M10 21C10.8284 21 11.5 20.3284 11.5 19.5V17L12 17M12 17V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16 3H8C5.17157 3 3.75736 3 2.87868 3.87868C2 4.75736 2 6.17157 2 9V11C2 13.8284 2 15.2426 2.87868 16.1213C3.75736 17 5.17157 17 8 17H16C18.8284 17 20.2426 17 21.1213 16.1213C22 15.2426 22 13.8284 22 11V9C22 6.17157 22 4.75736 21.1213 3.87868C20.2426 3 18.8284 3 16 3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Ct=[["ellipse",{cx:"12",cy:"5",rx:"8",ry:"3",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 10.842C7.60158 11.0229 8.27434 11.1718 9 11.282",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 12C20 13.6569 16.4183 15 12 15C7.58172 15 4 13.6569 4 12",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M7 17.842C7.60158 18.0229 8.27434 18.1718 9 18.282",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M20 5V19C20 20.6569 16.4183 22 12 22C7.58172 22 4 20.6569 4 19V5",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]];var Nt=[["path",{d:"M8.64298 3.14559L6.93816 3.93362C4.31272 5.14719 3 5.75397 3 6.75C3 7.74603 4.31272 8.35281 6.93817 9.56638L8.64298 10.3544C10.2952 11.1181 11.1214 11.5 12 11.5C12.8786 11.5 13.7048 11.1181 15.357 10.3544L17.0618 9.56638C19.6873 8.35281 21 7.74603 21 6.75C21 5.75397 19.6873 5.14719 17.0618 3.93362L15.357 3.14559C13.7048 2.38186 12.8786 2 12 2C11.1214 2 10.2952 2.38186 8.64298 3.14559Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.788 11.0972C20.9293 11.2959 21 11.5031 21 11.7309C21 12.7127 19.6873 13.3109 17.0618 14.5072L15.357 15.284C13.7048 16.0368 12.8786 16.4133 12 16.4133C11.1214 16.4133 10.2952 16.0368 8.64298 15.284L6.93817 14.5072C4.31272 13.3109 3 12.7127 3 11.7309C3 11.5031 3.07067 11.2959 3.212 11.0972",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.3767 16.2661C20.7922 16.5971 21 16.927 21 17.3176C21 18.2995 19.6873 18.8976 17.0618 20.0939L15.357 20.8707C13.7048 21.6236 12.8786 22 12 22C11.1214 22 10.2952 21.6236 8.64298 20.8707L6.93817 20.0939C4.31272 18.8976 3 18.2995 3 17.3176C3 16.927 3.20778 16.5971 3.62334 16.2661",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var Rt=[["path",{d:"M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 4L9.5 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var Et=[["path",{d:"M15 2L15.5387 4.39157C15.9957 6.42015 17.5798 8.00431 19.6084 8.46127L22 9L19.6084 9.53873C17.5798 9.99569 15.9957 11.5798 15.5387 13.6084L15 16L14.4613 13.6084C14.0043 11.5798 12.4202 9.99569 10.3916 9.53873L8 9L10.3916 8.46127C12.4201 8.00431 14.0043 6.42015 14.4613 4.39158L15 2Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 12L7.38481 13.7083C7.71121 15.1572 8.84275 16.2888 10.2917 16.6152L12 17L10.2917 17.3848C8.84275 17.7112 7.71121 18.8427 7.38481 20.2917L7 22L6.61519 20.2917C6.28879 18.8427 5.15725 17.7112 3.70827 17.3848L2 17L3.70827 16.6152C5.15725 16.2888 6.28879 15.1573 6.61519 13.7083L7 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Mt=[["path",{d:"M7.5 7.5L8.72654 8.55719C9.24218 9.00163 9.5 9.22386 9.5 9.5C9.5 9.77614 9.24218 9.99836 8.72654 10.4428L7.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.5 12.5H15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 21C15.7497 21 17.6246 21 18.9389 20.0451C19.3634 19.7367 19.7367 19.3634 20.0451 18.9389C21 17.6246 21 15.7497 21 12C21 8.25027 21 6.3754 20.0451 5.06107C19.7367 4.6366 19.3634 4.26331 18.9389 3.95491C17.6246 3 15.7497 3 12 3C8.25027 3 6.3754 3 5.06107 3.95491C4.6366 4.26331 4.26331 4.6366 3.95491 5.06107C3 6.3754 3 8.25027 3 12C3 15.7497 3 17.6246 3.95491 18.9389C4.26331 19.3634 4.6366 19.7367 5.06107 20.0451C6.3754 21 8.25027 21 12 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var _t=[["path",{d:"M11.223 6V7.98898C11.223 9.38733 11.223 10.0865 11.4102 10.7577C11.5974 11.4289 11.9644 12.0452 12.6984 13.2779L13.6929 14.9482C15.5632 18.0892 16.4984 19.6597 15.7312 20.824L15.7193 20.8418C14.9409 22 12.9606 22 9 22C5.03938 22 3.05907 22 2.2807 20.8418L2.26884 20.824C1.50164 19.6597 2.43679 18.0892 4.30708 14.9482L5.30163 13.2779C6.03558 12.0452 6.40256 11.4289 6.5898 10.7577C6.77704 10.0865 6.77704 9.38733 6.77704 7.98898V6",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 6L12 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5.5 13.2803C6.16667 12.699 7.73448 13.1181 9.00155 13.6643C10.6682 14.3828 12.1667 13.8019 12.5 13.2803",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.5 7C11.5 9 13.8624 11.2121 15.4728 11C15.4728 12.6569 16.934 14 18.7364 14C20.5388 14 22 12.6569 22 11C22 9.34315 21 8 19 8C19 6 17.5 4 15.3799 4C15.3799 2.45687 14.5 2 13.5 2C12.5 2 12 3 12 3C12 3 9 3 9 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]];var At=[["path",{d:"M4.31802 19.682C3 18.364 3 16.2426 3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 12H8.5L10.5 8L13.5 16L15.5 12H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Je=[{id:"account-pool",name:"Account Pooler [Experimental]",icon:"Layers"},{id:"ask-user-question",name:"Ask User Question",icon:"MessageQuestion"},{id:"automations",name:"Automations",icon:"Repeat"},{id:"bb--composer",name:"Composer",icon:"MessageSquare"},{id:"bb-ai",name:"Moonlet cloud AI",icon:"AiBrain01"},{id:"browser-automation",name:"Browser Automation",icon:"Globe"},{id:"concurrency-limit",name:"Concurrency limit",icon:"Limitation"},{id:"custom-instructions",name:"Custom instructions",icon:"EditFile"},{id:"simple-notes",name:"Docs",icon:"FileText"},{id:"drafts",name:"Drafts",icon:"EditFile"},{id:"monaco-editor",name:"File Editor",icon:"Code"},{id:"github",name:"GitHub",icon:"Github"},{id:"bb--github-pr-status",name:"GitHub PR Status",icon:"GitPullRequest"},{id:"inline-vis",name:"Inline visualizations",icon:"AppWindow"},{id:"keep-awake",name:"Keep Awake",icon:"Coffee"},{id:"memory",name:"Memory",icon:"Brain"},{id:"navigation",name:"Navigation",icon:"PanelLeft"},{id:"environment-modal-sandbox",name:"Modal Sandbox [Experimental]",icon:null},{id:"bb--e2b-moonlets",name:"E2B Moonlets",icon:"ComputerCloud"},{id:"environment-personal-workspace",name:"Personal workspace",icon:"Folder"},{id:"environment-project-checkout",name:"Project checkout",icon:"Laptop"},{id:"bb--provider-usage",name:"Provider usage",icon:"ChartColumn"},{id:"provider-retry",name:"Provider retry",icon:"ArrowReloadHorizontal"},{id:"push-notifications",name:"Push notifications",icon:"BellDot"},{id:"connect",name:"Moonlet Connect",icon:"ComputerCloud"},{id:"secrets",name:"Secrets",icon:"Lock"},{id:"scheduled-send",name:"Send later",icon:"Calendar"},{id:"side-chat",name:"Side chat",icon:"SideChat"},{id:"bb--storage-retention",name:"Storage & retention [Experimental]",icon:null},{id:"tasks",name:"Tasks",icon:"ListTodo"},{id:"workflows",name:"Workflows",icon:"Workflow"},{id:"environment-git-worktree",name:"Worktree",icon:"FolderGit"},{id:"provider-acp",name:"ACP providers",icon:null},{id:"provider-claude-code",name:"Claude Code provider",icon:null},{id:"provider-codex",name:"Codex provider",icon:null},{id:"provider-pi",name:"Pi provider",icon:null},{id:"agent-annotations",name:"Agent Annotations",icon:"MessageSquarePlus"},{id:"bb-account",name:"Moonlet account",icon:"UserRound"},{id:"bb-guide",name:"BB guide",icon:"Explore"},{id:"pdf-preview",name:"PDF preview",icon:"FileText"},{id:"theme-preview",name:"Theme Preview",icon:"Palette"},{id:"thread-list",name:"Thread list",icon:"ListView"}];function Tt(t){return Je.find(a=>a.name===t)?.icon??null}function et(t){return Je.find(a=>a.name===t)?.id??null}var vn={cli:Mt,"agent-tools":Et,background:kt,wire:St,storage:Ct,"thread-events":At,"host-workers":He,"bb-sdk":Rt,"host-components":Nt,testing:_t};function Fe(t){return vn[t]??null}var $=ht;var wn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},le=Ee(({color:t="currentColor",size:a=24,strokeWidth:i,absoluteStrokeWidth:r=!1,className:s="",altIcon:o,showAlt:c=!1,icon:u,primaryColor:m,secondaryColor:g,disableSecondaryOpacity:P=!1,...R},T)=>{let b=i!==void 0?r?Number(i)*24/Number(a):i:void 0,H=b!==void 0?{strokeWidth:b,stroke:"currentColor"}:{},f={ref:T,...wn,width:a,height:a,color:m||t,className:s,...H,...R},I=[...c&&o?o:u].sort(([,j],[,N])=>{let h=j.opacity!==void 0;return N.opacity!==void 0?1:h?-1:0}).map(([j,N])=>{let h=N.opacity!==void 0,C=h&&!P?N.opacity:void 0,S=g?{...N.stroke!==void 0?{stroke:h?g:m||t}:{fill:h?g:m||t}}:{};return Ve(j,{...N,...H,...S,opacity:C,key:N.key})});return Ve("svg",f,I)});le.displayName="HugeiconsIcon";var It=[["path",{d:"M13.5 2H10.5C8.14298 2 6.96447 2 6.23223 2.73223C5.5 3.46447 5.5 4.64298 5.5 7V17C5.5 19.357 5.5 20.5355 6.23223 21.2678C6.96447 22 8.14298 22 10.5 22H13.5C15.857 22 17.0355 22 17.7678 21.2678C18.5 20.5355 18.5 19.357 18.5 17V7C18.5 4.64298 18.5 3.46447 17.7678 2.73223C17.0355 2 15.857 2 13.5 2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.125 19H12M12.25 19C12.25 19.1381 12.1381 19.25 12 19.25C11.8619 19.25 11.75 19.1381 11.75 19C11.75 18.8619 11.8619 18.75 12 18.75C12.1381 18.75 12.25 18.8619 12.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Lt=/(`[^`]+`)|(\[[^\]]+\]\([a-z0-9-]+\))|(\{experimental\})/g;function fe(t,a){return d("flex size-5 shrink-0 items-center justify-center rounded-full font-mono text-xs font-semibold leading-none transition-colors","scale-[var(--guide-chip-scale,1)]",t?"bg-file-accent text-background":"bg-[color-mix(in_oklch,var(--ink)_18%,var(--canvas))] text-foreground",a)}var tt="--guide-chip-scale",Pn=3;function be(t){return!Number.isFinite(t)||t<=0?1:Math.min(Pn,Math.max(1,1/t))}var W="focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",Ot={corner:"-right-2 -top-2","corner-inset":"right-2 -top-2",side:"-right-2 top-1/2 -translate-y-1/2","outside-above":"left-1/2 -top-6 -translate-x-1/2"};function xe(){return e("span",{className:"inline-flex items-center rounded border border-attention/50 bg-surface-attention px-1.5 py-px font-mono text-xs text-foreground",title:"Experimental: audited before stabilizing \u2014 see docs/api_to_audit.md in the Moonlet repository.",children:"experimental"})}function ve(t,a){let i=t.split(Lt).filter(r=>r!==void 0);return i.length<2?t:i.map((r,s)=>{if(r.startsWith("`")&&r.endsWith("`"))return e("code",{className:"rounded bg-surface-recessed px-1 py-px font-mono text-[0.85em]",children:r.slice(1,-1)},s);if(r==="{experimental}")return n(Q,{children:[" ",e(xe,{})]},s);let o=/^\[([^\]]+)\]\(([a-z0-9-]+)\)$/.exec(r);if(!o)return e(Q,{children:r},s);let[,c,u]=o,m=a?.(u)??null;return m?e("button",{type:"button",onClick:m.onOpen,title:m.otherPage?`On ${m.otherPage}`:void 0,"aria-label":m.otherPage?`Go to ${c} on ${m.otherPage}`:`Go to ${c} on this page`,className:`cursor-pointer rounded-sm underline decoration-border underline-offset-2 hover:text-foreground hover:decoration-foreground ${W}`,children:c},s):e(Q,{children:c},s)})}var ze="[scrollbar-width:none] [&::-webkit-scrollbar]:hidden",Dt="28px";function We(t,a){if(!t&&!a)return;let i=t?`transparent, black ${Dt}`:"black",r=a?`black calc(100% - ${Dt}), transparent`:"black";return{maskImage:`linear-gradient(to right, ${i}, ${r})`}}function yn(t){return{canScrollLeft:t.scrollLeft>1,canScrollRight:t.scrollLeft+t.clientWidth<t.scrollWidth-1}}function Ue(t){let[a,i]=y({canScrollLeft:!1,canScrollRight:!1}),r=re(()=>{let s=t.current;s&&i(yn(s))},[t]);return O(()=>{let s=t.current;if(!s)return;r();let o=new ResizeObserver(r);return o.observe(s),s.firstElementChild&&o.observe(s.firstElementChild),s.addEventListener("scroll",r,{passive:!0}),()=>{o.disconnect(),s.removeEventListener("scroll",r)}},[t,r]),a}var Sn=32,kn=80;function Cn(t){return Math.max(t-Sn,kn)}function Nn(t,a,{reducedMotion:i}){t.scrollBy({left:a*Cn(t.clientWidth),behavior:i?"auto":"smooth"})}function Rn(){let[t,a]=y(!1);return O(()=>{let i=window.matchMedia?.("(prefers-reduced-motion: reduce)");if(!i)return;let r=()=>a(i.matches);return r(),i.addEventListener("change",r),()=>i.removeEventListener("change",r)},[]),t}function Bt({direction:t,shown:a,onClick:i}){return e("button",{type:"button",tabIndex:-1,"aria-label":`Scroll ${t}`,"aria-hidden":!a,disabled:!a,onClick:i,className:d("inline-flex size-4 shrink-0 cursor-pointer items-center justify-center rounded text-subtle-foreground transition-colors hover:bg-state-hover hover:text-foreground",!a&&"invisible"),children:e($,{name:t==="left"?"ChevronLeft":"ChevronRight",className:"size-3.5"})})}function Ht({items:t,renderItem:a}){let i=_(null),r=Ue(i),s=Rn(),o=u=>{let m=i.current;m&&Nn(m,u,{reducedMotion:s})},c=r.canScrollLeft||r.canScrollRight;return n("div",{className:"flex min-w-0 flex-1 items-center gap-1",children:[c?e(Bt,{direction:"left",shown:r.canScrollLeft,onClick:()=>o(-1)}):null,e("div",{ref:i,...c?{tabIndex:0,role:"group","aria-label":"Used by"}:{},onKeyDown:u=>{c&&(u.key==="ArrowLeft"||u.key==="ArrowRight")&&u.stopPropagation()},className:d("min-w-0 flex-1 overflow-x-auto focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",ze),style:We(r.canScrollLeft,r.canScrollRight),children:e("ul",{className:"flex w-max gap-x-3",children:t.map(u=>e("li",{className:"shrink-0",children:a(u)},u))})}),c?e(Bt,{direction:"right",shown:r.canScrollRight,onClick:()=>o(1)}):null]})}function Ft({items:t,renderItem:a}){let[i,r]=y(0),s=Math.min(i,t.length-1),o=t[s];return o?n("div",{role:"group","aria-label":"Example plugins",className:"flex min-w-0 flex-1 items-center gap-1",onKeyDown:c=>{c.key!=="ArrowLeft"&&c.key!=="ArrowRight"||(c.preventDefault(),c.stopPropagation(),r(Math.max(0,Math.min(t.length-1,s+(c.key==="ArrowLeft"?-1:1)))))},children:[t.length>1?e("button",{type:"button","aria-label":"Previous example plugin",disabled:s===0,onClick:()=>r(s-1),className:`inline-flex size-9 @2xl/guide:size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-state-hover hover:text-foreground disabled:cursor-default disabled:opacity-35 ${W}`,children:e($,{name:"ChevronLeft",className:"size-3.5"})}):null,n("div",{className:"min-w-0 flex-1","aria-live":"polite","aria-atomic":"true",children:[n("span",{className:"sr-only",children:["Example ",s+1," of ",t.length,": "]}),a(o)]}),t.length>1?e("button",{type:"button","aria-label":"Next example plugin",disabled:s===t.length-1,onClick:()=>r(s+1),className:`inline-flex size-9 @2xl/guide:size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-state-hover hover:text-foreground disabled:cursor-default disabled:opacity-35 ${W}`,children:e($,{name:"ChevronRight",className:"size-3.5"})}):null]}):null}var zt="transition-colors duration-150 hover:duration-0";var we=Ee(({checked:t,className:a,disabled:i,size:r="sm",onCheckedChange:s,onClick:o,...c},u)=>e("button",{...c,ref:u,type:"button",role:"switch","aria-checked":t,disabled:i,"data-state":t?"checked":"unchecked",className:d(`peer inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-input shadow-xs ${zt} outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-foreground data-[state=unchecked]:border-input data-[state=unchecked]:bg-muted`,r==="default"&&"h-5 w-9",r==="sm"&&"h-4 w-7",a),onClick:m=>{o?.(m),m.defaultPrevented||s?.(!t)},children:e("span",{"aria-hidden":!0,"data-state":t?"checked":"unchecked",className:d("pointer-events-none block rounded-full bg-background ring-0 transition-transform data-[state=unchecked]:bg-foreground data-[state=unchecked]:translate-x-0",r==="default"&&"size-4 data-[state=checked]:translate-x-4",r==="sm"&&"size-3 data-[state=checked]:translate-x-3")})}));we.displayName="Switch";var Pe={$comment:"Shared UI-anatomy contract between the Plugin Guide surface fixtures (wireframes.tsx) and the real app. Ordered regions are rendered by both sides. surfaceFixtures records authoritative source anchors plus the minimum deterministic fidelity and states for interaction-heavy fixtures.",appSidebar:["top-reserve","thread-list","footer"],sidebarFooter:["plugin-footer-items","bug-report"],messageActionBar:["copy","edit","plugin-actions","message-menu"],mobileLayout:{sources:[{path:"packages/shared-ui/src/components/ui/hooks/use-compact-viewport.tsx",anchors:["(max-width: 767px)"]},{path:"apps/app/src/views/RootComposeSecondaryContent.tsx",anchors:["RootComposeCompactHome composer={children}","PluginHomepageSections"]},{path:"apps/app/src/components/secondary-panel/CompactSecondaryPanelShelf.tsx",anchors:["CompactSecondaryPanelShelf"]},{path:"apps/app/src/components/ui/sidebar.tsx",anchors:["SIDEBAR_WIDTH_MOBILE","SIDEBAR_MOBILE_VIEWPORT_FRACTION"]}]},surfaceFixtures:{"composer-banners":{groupId:"composer",fidelity:"flow",responsiveStrategy:"scale-together",requiredStates:["anchor","triggered"],labels:{anchor:["Your banner","Your context","Changed files"],triggered:["Context details"]},fixtureClassAnchors:["overflow-hidden","rounded-lg"],sources:[{path:"apps/app/src/components/promptbox/banner/ThreadPromptContextBanner.tsx",anchors:["function ParentThreadSummary","function ChangedFilesSummary",'mount(entry, "summary")','mount(entry, "details")']},{path:"apps/app/src/components/plugin/PluginThreadContextSegments.tsx",anchors:["entry.slot[part]","onVisible(slot, threadId, visible)"]}]},"composer-actions":{groupId:"composer",fidelity:"flow",responsiveStrategy:"scale-together",requiredStates:["anchor","triggered"],labels:{anchor:[],triggered:["Search saved prompts","Review this change"]},fixtureClassAnchors:["bottom-full","bg-popover"],sources:[{path:"plugins/composer/src/ComposerPopupHost.tsx",anchors:["data-promptbox-typeahead-menu","bottom-full mb-2","top-full mt-2","ResponsiveDrawerShell"]},{path:"apps/app/src/components/plugin/PluginComposerPopup.tsx",anchors:['slotKind="composerPopup"',"<popup.component />"]}]},"command-palette-actions":{groupId:"command-palette",fidelity:"flow",responsiveStrategy:"scale-together",requiredStates:["anchor","triggered","outcome"],labels:{anchor:["Quick palette","\u21E7\u2318P"],triggered:["Search commands","Plugins","Run release checklist"],outcome:["Release checklist"]},fixtureClassAnchors:["top-[12%]","max-w-xl","bg-black/40","bg-background","shadow-sm","h-11","rounded","px-2","py-1.5","bg-state-hover","text-foreground"],sources:[{path:"apps/app/src/components/commands/CommandPalette.tsx",anchors:["top-[12%] max-w-[640px] translate-y-0 gap-0 p-0"]},{path:"apps/app/src/components/commands/CommandPaletteBody.tsx",anchors:["aria-selected={isActive}","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","bg-state-hover text-foreground"]},{path:"apps/app/src/components/commands/PaletteShell.tsx",anchors:["aria-label={inputLabel}",'role="listbox"']},{path:"apps/app/src/lib/command-palette/palette-plugin-actions.ts",anchors:['bucket: "Plugins"',"run: () =>"]},{path:"apps/app/src/components/commands/CommandPalette.test.tsx",anchors:["lists a plugin's registered command and runs it",'expect(testState.calls).toEqual(["plugin-ran"])','expect(screen.queryByRole("combobox")).toBeNull()']},{path:"packages/shared-ui/src/components/ui/dialog.tsx",anchors:["fixed inset-0 z-50 bg-black/40","bg-background p-6 shadow-sm","sm:rounded-lg"]}]},"app-overlay":{groupId:"app-shell",fidelity:"anchor",responsiveStrategy:"scale-together",requiredStates:["anchor"],labels:{anchor:["Floating widget","2 agents active"]},fixtureClassAnchors:["absolute bottom-24 right-12","bg-popover","shadow-md"],sources:[{path:"apps/app/src/components/plugin/PluginAppOverlays.tsx",anchors:['data-bb-plugin-app-overlays=""','slotKind="appOverlay"',"crashFallback={null}"]},{path:"apps/app/src/components/layout/AppLayout.tsx",anchors:["<PluginAppOverlays />"]},{path:"apps/app/src/components/plugin/PluginAppOverlays.test.tsx",anchors:["keeps sidebar thread actions available through a portal and route change","hides a crashing overlay without unmounting additive siblings"]}]},"sidebar-footer":{groupId:"app-shell",fidelity:"state",responsiveStrategy:"scale-together",requiredStates:["action","disclosure"],labels:{action:["Plugin action"],disclosure:["5-hour limit","18% left"]},fixtureClassAnchors:["rounded-md border border-border","rounded-full bg-warning"],sources:[{path:"apps/app/src/components/plugin/PluginSidebarFooterItems.tsx",anchors:['"aria-expanded": active','onDisclosureCommand(footerItemKey(slot), "toggle")',"<Component dismiss={onDismiss} />"]},{path:"packages/plugin-sdk/src/internal/plugin-app-registration-collector.ts",anchors:["adaptSidebarFooterAction","experimental_sidebarFooter.register",'registration.kind === "action"','registration.kind === "disclosure"']},{path:"apps/app/src/components/plugin/PluginSidebarFooterItems.test.tsx",anchors:["toggles and dismisses a disclosure accessibly","lets the host coordinate disclosures from multiple plugins"]}]},"declarative-settings":{groupId:"settings",fidelity:"anchor",responsiveStrategy:"scale-together",requiredStates:["anchor"],labels:{anchor:["Configuration","[set]","Case-sensitive search"]},fixtureClassAnchors:["bg-surface-recessed-solid p-3"],sources:[{path:"apps/app/src/components/plugin/PluginSettings.tsx",anchors:["<Switch",'placeholder={isSecret ? (secretIsSet ? "[set]" : "[not set]") : undefined}','<ResourceDetailConfigurationSection label="Configuration">']}]},"plugin-status":{groupId:"extensions",fidelity:"anchor",responsiveStrategy:"scale-together",requiredStates:["anchor"],labels:{anchor:["Needs configuration","Open settings","Details","Capabilities"]},fixtureClassAnchors:["bg-surface-recessed/55"],sources:[{path:"apps/app/src/components/tools/PluginCapabilities.tsx",anchors:['plugin.status === "needs-configuration" && hasSettingsPage',"Open settings",'name="ChevronRight"']},{path:"apps/app/src/components/plugin/management/plugin-status.ts",anchors:["Complete the required settings."]},{path:"apps/app/src/components/tools/PluginDetail.tsx",anchors:['label="Details"','label={updatesWithMoonlet ? "Delivery" : "Installed"}',"<PluginIncludes plugin={plugin} configurationPath={configurationPath} />"]}]},"thread-info":{groupId:"app-shell",fidelity:"anchor",responsiveStrategy:"scale-together",requiredStates:["anchor"],labels:{anchor:["Project","Branch","Deploy","Automations","Commits"]},fixtureClassAnchors:["grid-cols-[96px_minmax(0,1fr)]","mt-3","border-t","pt-3"],sources:[{path:"apps/app/src/components/secondary-panel/ThreadMetadataContent.tsx",anchors:["CORE_THREAD_INFO_ROWS","CORE_THREAD_INFO_SECTIONS","<ThreadInfoRows","<ThreadInfoSections","[&_[data-info-section]]:mt-3"]},{path:"apps/app/src/components/secondary-panel/info/ThreadInfoSlots.tsx",anchors:['slotKind="threadInfoRow"','slotKind="threadInfoSection"',"crashFallback={null}","value={`${pluginId}/${id}`}"]},{path:"apps/app/src/components/ui/detail-card.tsx",anchors:["grid grid-cols-[var(--detail-label-width,96px)_minmax(0,1fr)] gap-x-3"]},{path:"apps/app/src/components/secondary-panel/info/ThreadInfoSlots.test.tsx",anchors:["places plugin rows and sections by group, then order, after core on a tie","drops only a crashing plugin row or section","collapses each section on its own, keyed by registration"]}]}}};var Se=lt(null);function K(){let t=Me(Se);if(!t)throw new Error("useSurfaceMap must be used inside a SurfaceMapContext");return t}function Z(t){let{activeId:a,expandedId:i}=K();return{active:a===t||i===t,outlined:a!==null?a===t:i===t}}function Ge(t){let{setActiveId:a}=K();return{onMouseEnter:()=>a(t),onMouseLeave:()=>a(null),onFocus:()=>a(t),onBlur:()=>a(null)}}function Vt(t,a,i,r){r?.(),i&&(t.preventDefault(),t.stopPropagation(),i(a))}function qt({id:t,active:a,chip:i}){let{numberOf:r}=K();return e("span",{"aria-hidden":!0,"data-guide-badge":t,className:fe(a,d("absolute z-50 ring-2 ring-card",Ot[i])),children:r(t)})}function me(t){return t?"bg-surface-selected/30 ring-1 ring-inset ring-surface-selected-border":void 0}function v({id:t,label:a,className:i,chip:r="corner",showChip:s=!0,target:o=!1,onActivate:c,children:u}){let{onSelect:m}=K(),{active:g,outlined:P}=Z(t),R=Ge(t);return n("a",{"data-guide-region":t,"data-guide-target":o?t:void 0,href:`#surface-${t}`,"aria-label":`${a} \u2014 jump to details`,onClick:T=>Vt(T,t,m,c),...R,className:d("relative rounded-md ring-1 ring-inset transition-all",W,P?"bg-surface-selected ring-surface-selected-border":"ring-transparent hover:bg-state-hover",i),children:[s?e(qt,{id:t,active:g,chip:r}):null,u]})}var Mn=2400;function _n({onRun:t}){let a="command-palette-actions",{onSelect:i}=K(),{outlined:r}=Z(a),s=Ge(a);return n("button",{"data-guide-region":a,type:"button",role:"option","aria-selected":"true",onClick:()=>{t(),i?.(a)},...s,"data-guide-fixture":"command-palette-action",className:d("flex w-full cursor-pointer items-center gap-1.5 rounded bg-state-hover px-2 py-1.5 text-left text-foreground ring-1 ring-inset transition-all",r?"ring-surface-selected-border":"ring-transparent"),children:[e("span",{children:"Run release checklist"}),e("span",{className:"ml-auto text-xs text-subtle-foreground",children:"Plugins"})]})}function ge({id:t,label:a,className:i,chip:r="corner",showChip:s=!0,children:o}){let{onSelect:c}=K(),{active:u,outlined:m}=Z(t),g=Ge(t);return n("div",{"data-guide-region":t,className:d("relative",i),children:[e("a",{href:`#surface-${t}`,"aria-label":`${a} \u2014 jump to details`,onClick:c?P=>{P.preventDefault(),P.stopPropagation(),c(t)}:void 0,...g,className:d("absolute inset-0 z-[1] rounded-md ring-1 ring-inset transition-all",W,m?"bg-surface-selected/30 ring-surface-selected-border":"ring-transparent hover:bg-state-hover"),children:s?e(qt,{id:t,active:u,chip:r}):null}),o]})}var oe=typeof window>"u"?O:dt,Wt=20,An=8;function B({id:t,label:a,anchor:i,at:r,align:s="center",flush:o=!1,clipTo:c}){let{numberOf:u,onSelect:m}=K(),{active:g}=Z(t),P=Ge(t),R=_(null),[T,b]=y(null);return oe(()=>{let H=R.current,f=H?.offsetParent;if(!H||!(f instanceof HTMLElement))return;let U=f.closest("[data-map-section]")??f,I=U.querySelector(i);if(!I)return;let j=S=>{let G=0,L=0,D=S;for(;D;)G+=D.offsetLeft,L+=D.offsetTop,D=D.offsetParent instanceof HTMLElement?D.offsetParent:null;for(D=S.parentElement;D;)G-=D.scrollLeft,L-=D.scrollTop,D=D.parentElement;return{x:G,y:L}},N=()=>{let S=f.closest("[data-guide-responsive-strategy]"),G=be(Number(S?.dataset.guideScale??"1")),L=Wt*G,F=(o?parseFloat(getComputedStyle(f).borderLeftWidth||"0"):An)*G,E=4*G,te=(L-Wt)/2,V=j(f),ne=j(I),M={left:ne.x-V.x,top:ne.y-V.y,width:I.offsetWidth,height:I.offsetHeight},de=c?U.querySelector(c):null;if(de){let X=j(de),J=ne.x-X.x;if(J<0||J+I.offsetWidth>de.clientWidth){b(null);return}}let ke=M.top+M.height/2-L/2,Ce=s==="start"?M.top:s==="end"?M.top+M.height-L:ke,k=f.querySelector("[data-guide-frame]"),ae=k?j(k):V,ce=k?k.offsetWidth:f.offsetWidth,pe={left:ae.x-V.x,right:ae.x-V.x+ce,top:ae.y-V.y},z=r==="start"?{left:pe.left-L-F,top:Ce}:r==="end"?{left:pe.right+F,top:Ce}:r==="above"?{left:M.left+M.width/2-L/2,top:M.top-L-E}:{left:M.left+M.width/2-L/2,top:Math.max(0,(pe.top-L)/2)},Ne=(X,J)=>Math.max(0,Math.min(X,Math.max(0,J-L))),he=f.closest("[data-guide-frame]");if(he){let J=j(he).x-V.x;z.left=Math.min(Math.max(z.left,J+E),J+he.offsetWidth-L-E)}o||(z.left=Ne(z.left,f.offsetWidth)),z.top=Ne(z.top,f.offsetHeight),z.left+=te,z.top+=te,b(X=>X&&Math.abs(X.left-z.left)<.5&&Math.abs(X.top-z.top)<.5?X:z)};N();let h=new ResizeObserver(N);h.observe(f),h.observe(I);let C=f.closest("[data-guide-responsive-strategy]");return C&&h.observe(C),U.addEventListener("scroll",N,!0),()=>{h.disconnect(),U.removeEventListener("scroll",N,!0)}},[i,r,s,o,c]),e("a",{ref:R,"data-guide-badge":t,"data-guide-badge-placement":r,"data-guide-badge-align":s,href:`#surface-${t}`,"aria-label":`${a} \u2014 jump to details`,onClick:H=>Vt(H,t,m,void 0),...P,className:d("pointer-events-auto absolute z-50",W),style:T??{visibility:"hidden"},children:e("span",{"aria-hidden":!0,className:fe(g,"ring-2 ring-card"),children:u(t)})})}function p({icon:t,className:a}){return e($,{name:t,className:d("size-4 shrink-0 text-muted-foreground",a)})}function w({className:t}){return e($,{name:"Plug02",className:d("size-4 shrink-0 text-foreground",t)})}function Kt(){let{renderPluginIcon:t}=K();return t?.("Claude Code provider")??e($,{name:"Code",className:"size-3.5"})}var se="aspect-[9/19]";function ie({children:t,className:a}){return e("div",{"data-guide-frame":!0,className:d("select-none overflow-hidden rounded-lg border border-border bg-surface-raised-solid text-xs leading-none text-muted-foreground shadow-sm",a),children:t})}function je(){return n("span",{"aria-hidden":!0,className:"flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-muted"}),e("span",{className:"size-2 rounded-full bg-muted"}),e("span",{className:"size-2 rounded-full bg-muted"})]})}var Tn=[{title:"Fix flaky checkout tests",glyph:"spin"},{title:"Refactor settings page"},{title:"Ship dark mode",glyph:"dot"}],Yt={"plugin-footer-items":()=>n("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"flex size-5.5 items-center justify-center rounded-md",children:e(w,{className:"size-3.5"})}),e("span",{className:"flex size-5.5 items-center justify-center rounded-md bg-state-hover",children:e(w,{className:"size-3.5"})})]}),"bug-report":()=>e(p,{icon:"Bug",className:"size-4"})},ye="flex size-7 items-center justify-center rounded-md";function Ut(){return e(ge,{id:"sidebar-navigation",label:"The sidebar navigation, drawn by Moonlet or one plugin",className:"flex shrink-0",showChip:!1,children:n("div",{"data-guide-fixture":"sidebar-rail",className:"flex w-11 shrink-0 flex-col items-center gap-1 border-r border-border-hairline py-3",children:[e("span",{className:d(ye,"bg-sidebar-accent"),children:e(p,{icon:"Home",className:"text-foreground"})}),e("span",{className:ye,children:e(p,{icon:"Plug02"})}),e("span",{className:ye,children:e(p,{icon:"Zap"})}),n(v,{id:"nav-panel",label:"Plugin nav panels, in the navigation rail",className:"z-[2] flex size-7 items-center justify-center text-sidebar-foreground",showChip:!1,children:[e(w,{}),e("span",{className:"sr-only",children:"Your panel"})]}),e("span",{className:ye,children:e(p,{icon:"MoreHorizontal"})}),e("span",{className:"flex-1"}),e("span",{className:ye,children:e(p,{icon:"Settings"})})]})})}var nt={"top-reserve":()=>n("div",{"data-guide-fixture":"sidebar-top-reserve",className:"flex h-12 items-center justify-end px-2",children:[e(p,{icon:"ChevronLeft",className:"size-3.5"}),e(p,{icon:"ChevronRight",className:"ml-1.5 size-3.5"})]}),"thread-list":()=>n(ge,{id:"thread-list",label:"The thread list, replaceable by one plugin",className:"mx-1.5 flex-1 px-1.5 py-1.5",showChip:!1,children:[e("span",{className:"block px-2 pb-1 pt-1.5 text-xs text-subtle-foreground/75",children:"Pinned"}),Tn.map(t=>n("span",{className:"flex h-6.5 items-center gap-2 rounded-md px-2",children:[e("span",{className:"min-w-0 flex-1 truncate",children:t.title}),t.glyph==="spin"?e(v,{id:"thread-row-status",label:"A thread row status set by a plugin",className:"z-[2] flex size-5 shrink-0 items-center justify-center",children:e("span",{"aria-hidden":!0,className:"size-2.5 rounded-full border border-muted-foreground border-t-transparent"})}):t.glyph==="dot"?e("span",{"aria-hidden":!0,className:"size-2 rounded-full bg-success"}):null]},t.title)),e("span",{className:"block px-2 pb-1 pt-2 text-xs text-subtle-foreground/75",children:"Projects"}),["acme-app","dotfiles"].map(t=>n("span",{className:"flex h-6.5 items-center gap-1.5 rounded-md px-2",children:[e("span",{className:"min-w-0 truncate",children:t}),e(p,{icon:"ChevronRight",className:"size-3.5"})]},t))]}),footer:()=>n(v,{id:"sidebar-footer",label:"Plugin footer items can run actions or reveal content",className:"mx-1.5 mb-1.5 flex w-44 flex-col gap-1.5 p-1.5",children:[n("span",{className:"block w-full overflow-hidden rounded-md border border-border bg-surface-raised-solid",children:[n("span",{className:"flex h-6 items-center gap-1 border-b border-border px-1.5",children:[e("span",{className:"flex size-4 items-center justify-center rounded bg-state-hover text-2xs text-foreground",children:"A"}),e("span",{className:"flex size-4 items-center justify-center rounded text-2xs",children:"B"}),e("span",{className:"ml-auto text-2xs",children:"\xD7"})]}),n("span",{className:"block space-y-1.5 p-2",children:[n("span",{className:"flex items-center justify-between text-2xs",children:[e("span",{children:"5-hour limit"}),e("span",{className:"text-warning",children:"18% left"})]}),e("span",{className:"block h-1 overflow-hidden rounded-full bg-muted",children:e("span",{className:"block h-full w-4/5 rounded-full bg-warning"})})]})]}),e("span",{className:"flex w-full items-center gap-2 px-1 py-0.5",children:Pe.sidebarFooter.map(t=>e(Q,{children:Yt[t]?.()},t))})]})},Xt={copy:()=>e(p,{icon:"Copy",className:"size-3.5"}),edit:()=>e(p,{icon:"Edit",className:"size-3.5"}),"plugin-actions":()=>e(w,{className:"size-3.5"}),"message-menu":()=>e(p,{icon:"MoreHorizontal",className:"size-3.5"})},Ks={appSidebar:Object.keys(nt),sidebarFooter:Object.keys(Yt),messageActionBar:Object.keys(Xt)};function In({mobile:t}){let a=t?'[data-guide-fixture="right-panel-tab-strip"]':void 0;return n(Y,{children:[e(B,{id:"thread-info",label:"Plugin rows and sections in Moonlet's Info tab",anchor:'[data-guide-region="thread-info"]',clipTo:a,at:"lane"}),e(B,{id:"code-renderers",label:"Plugin code and diff renderers on Moonlet's Diff tab",anchor:'[data-guide-region="code-renderers"]',clipTo:a,at:"lane"}),e(B,{id:"browser-toolbar",label:"Plugin controls beside the Browser address bar",anchor:'[data-guide-tab="browser-toolbar"]',clipTo:a,at:"lane"}),e(B,{id:"thread-panel",label:"A plugin tab in the thread side panel",anchor:'[data-guide-region="thread-panel"]',clipTo:a,at:"lane"}),e(B,{id:"file-opener",label:"A plugin file viewer or editor tab",anchor:'[data-guide-region="file-opener"]',clipTo:a,at:"lane"})]})}function Qt({mobile:t=!1}){let[a,i]=y(!0),[r,s]=y(!1),o=_(void 0),c=()=>i(!0),u=()=>{i(!1),s(!0),window.clearTimeout(o.current),o.current=window.setTimeout(()=>i(!0),Mn)};return O(()=>()=>window.clearTimeout(o.current),[]),n("div",{"data-guide-fixture":"command-palette-flow","data-guide-state":a?"palette-open":"release-checklist-open",className:d("relative pb-2 pt-4",t?"px-6":"px-7"),children:[e(ie,{className:t?d("flex flex-col",se):void 0,children:n("div",{className:t?"relative min-h-0 flex-1":"relative min-h-[500px]",children:[n("div",{"data-guide-fixture":"command-palette-thread",className:d("flex bg-background",t?"h-full":"min-h-[500px]"),children:[t?null:n("aside",{className:"flex w-48 shrink-0 flex-col border-r border-border-seam bg-sidebar px-2.5 py-3",children:[n("div",{className:"flex items-center gap-1.5 px-1 text-foreground",children:[e(je,{}),e("span",{className:"ml-auto"}),e(p,{icon:"PanelLeft",className:"size-3.5"})]}),n("div",{className:"mt-5 flex items-center gap-2 rounded-md px-2 py-1.5 text-foreground",children:[e(p,{icon:"MessageSquarePlus",className:"size-3.5"}),"New thread"]}),n("div",{className:"flex items-center gap-2 rounded-md px-2 py-1.5",children:[e(p,{icon:"Search",className:"size-3.5"}),"Search threads"]}),e("div",{className:"mt-3 px-2 text-2xs font-medium uppercase tracking-wide text-subtle-foreground",children:"Threads"}),e("div",{className:"mt-1 rounded-md bg-state-hover px-2 py-2 text-foreground",children:"Ship release candidate"}),e("div",{className:"px-2 py-2",children:"Fix flaky checkout tests"}),e("div",{className:"px-2 py-2",children:"Update onboarding copy"}),n("div",{className:"mt-auto flex items-center gap-2 border-t border-border-hairline px-2 pt-3",children:[e(p,{icon:"Settings",className:"size-3.5"}),"Settings"]})]}),n("main",{className:d("min-w-0 flex-1 flex-col",t&&r&&!a?"hidden":"flex"),children:[n("header",{className:"flex h-12 items-center gap-2 border-b border-border-hairline px-4",children:[e("span",{className:"truncate text-foreground",children:"Ship release candidate"}),e(p,{icon:"MoreHorizontal",className:"size-3.5"}),e("span",{className:"flex-1"}),n("button",{type:"button",onClick:c,"aria-label":"Open Quick palette (Shift Command P)","data-guide-fixture":"command-palette-shortcut",className:"flex h-7 cursor-pointer items-center gap-1.5 rounded-md border border-border-hairline px-2 text-subtle-foreground hover:bg-state-hover hover:text-foreground",children:[e(p,{icon:"Search",className:"size-3.5"}),e("span",{children:"Quick palette"}),t?null:e("kbd",{className:"rounded bg-surface-recessed px-1.5 py-0.5 font-mono text-2xs text-foreground",children:"\u21E7\u2318P"})]})]}),n("div",{className:"flex-1 space-y-5 px-6 py-6",children:[e("div",{className:"flex justify-end",children:e("span",{className:"max-w-[76%] rounded-xl border border-border-seam bg-surface-recessed px-3 py-2 leading-relaxed text-foreground",children:"Prepare this branch for the release candidate."})}),n("div",{className:"max-w-[88%] space-y-3 leading-relaxed",children:[e("p",{className:"text-foreground",children:"The release build is ready for final checks. I verified the focused tests and collected the latest UI evidence."}),n("div",{className:"space-y-2 rounded-lg border border-border-hairline bg-surface-raised-solid p-3",children:[n("div",{className:"flex items-center gap-2 text-foreground",children:[e(p,{icon:"GitBranch",className:"size-3.5"}),"release/2026-08-25"]}),e("div",{className:"h-1.5 w-4/5 rounded-sm bg-muted/60"}),e("div",{className:"h-1.5 w-3/5 rounded-sm bg-muted/60"})]})]})]}),e("div",{className:"mx-5 mb-5 rounded-xl border border-border bg-card px-3 py-3 text-subtle-foreground shadow-sm",children:"Ask for a follow-up\u2026"})]}),r?n("aside",{"data-guide-fixture":"release-checklist-panel",className:d("flex shrink-0 flex-col border-l border-border-seam bg-sidebar",t?"w-full":"w-60"),children:[n("div",{className:"flex h-12 items-center gap-1.5 border-b border-border-hairline px-3",children:[e("span",{className:"flex size-7 items-center justify-center rounded-md",children:e(p,{icon:"Info",className:"size-3.5"})}),n("span",{role:"tab","aria-selected":"true","data-guide-fixture":"release-checklist-tab",className:"flex h-7 items-center gap-1.5 rounded-md bg-state-hover px-2 text-foreground",children:[e(w,{className:"size-3.5"}),"Release checklist"]})]}),n("div",{className:"space-y-4 p-4",children:[n("div",{children:[e("p",{className:"font-medium text-foreground",children:"Release checklist"}),e("p",{className:"mt-1 leading-relaxed text-subtle-foreground",children:"Final checks for this thread and branch."})]}),[["Tests and typecheck","Passed"],["UI evidence","Ready"],["Mergeability","Clean"]].map(([m,g])=>n("div",{className:"flex items-center gap-2 border-t border-border-hairline pt-3",children:[e("span",{className:"size-2 rounded-full bg-success"}),e("span",{className:"min-w-0 flex-1 text-foreground",children:m}),e("span",{className:"text-2xs text-subtle-foreground",children:g})]},m))]})]}):null]}),a?e("div",{"data-guide-fixture":"command-palette-overlay",className:"absolute inset-0 z-10 bg-black/40",children:n("div",{"data-guide-fixture":"command-palette-dialog",className:d("absolute grid grid-cols-[minmax(0,1fr)] gap-0 overflow-visible rounded-lg border border-border bg-background shadow-sm",t?"inset-x-0 bottom-0 rounded-b-none rounded-t-xl border-x-0 border-b-0 pb-3":"left-1/2 top-[12%] w-full max-w-xl -translate-x-1/2"),children:[t?e("span",{"aria-hidden":!0,className:"flex h-6 items-center justify-center",children:e("span",{className:"h-1 w-10 rounded-full bg-muted-foreground/20"})}):null,n("div",{className:"flex items-center gap-2 border-b px-3 text-sm",children:[e(p,{icon:"Search",className:"size-4 shrink-0 text-muted-foreground"}),e("input",{"aria-label":"Search commands",readOnly:!0,value:">release",className:"h-11 min-w-0 flex-1 bg-transparent text-foreground outline-none"})]}),n("div",{role:"listbox","aria-label":"Commands",className:"max-h-[min(24rem,50dvh)] overflow-y-auto p-1 text-sm",children:[n("span",{className:"flex w-full min-w-0 items-center gap-1.5 rounded px-2 py-1.5 text-left",children:["Open release notes",e("span",{className:"ml-auto text-muted-foreground",children:"Navigation"})]}),e(_n,{onRun:u}),n("span",{className:"flex w-full min-w-0 items-center gap-1.5 rounded px-2 py-1.5 text-left",children:["Copy link",e("span",{className:"ml-auto text-muted-foreground",children:"Thread"})]})]}),t?null:e(B,{id:"command-palette-actions",label:"Plugin actions in Moonlet's quick command palette",anchor:'[data-guide-region="command-palette-actions"]',at:"start",flush:!0})]})}):null]})}),t&&a?e(B,{id:"command-palette-actions",label:"Plugin actions in Moonlet's quick command palette",anchor:'[data-guide-region="command-palette-actions"]',at:"start"}):null]})}function Zt({mobile:t=!1,mobileScene:a="navigation"}){let[i,r]=y("browser-toolbar"),{expandedId:s}=K();O(()=>{(s==="thread-info"||s==="browser-toolbar"||s==="code-renderers"||s==="thread-panel"||s==="file-opener")&&r(s)},[s]);let o=t?a:"desktop";return n("div",{"data-guide-mobile-scene":t?o:void 0,className:t?"relative w-full px-6 pb-0 pt-[26px]":"relative w-full px-10 pb-0 pt-[26px]",children:[o==="desktop"||o==="navigation"?n(Y,{children:[e(B,{id:"sidebar-navigation",label:"The sidebar navigation, drawn by Moonlet or one plugin",anchor:'[data-guide-region="sidebar-navigation"]',at:"start",align:"start"}),e(B,{id:"nav-panel",label:"Plugin nav panels, in the navigation rail",anchor:'[data-guide-region="nav-panel"]',at:"start"}),e(B,{id:"thread-list",label:"The thread list, replaceable by one plugin",anchor:'[data-guide-region="thread-list"]',at:"start"})]}):null,o==="desktop"||o==="conversation"?n(Y,{children:[e(B,{id:"thread-header",label:"Plugin thread-header control, left end of the action row",anchor:'[data-guide-region="thread-header"]',at:"above"}),e(B,{id:"thread-actions",label:"Plugin thread actions, in the thread menu",anchor:'[data-guide-region="thread-actions"]',at:"above"}),e(B,{id:"content-scripts",label:"App-wide plugin scripts, running in the whole window",anchor:"[data-guide-frame]",at:"end",align:"end"})]}):null,o==="desktop"||o==="panel"?e(In,{mobile:t},i):null,e(Ln,{scene:o,rightPanelTab:i,onRightPanelTabSelect:r})]},o)}function Ln({scene:t,rightPanelTab:a,onRightPanelTabSelect:i}){let{expandedId:r}=K(),[s,o]=y(!1),c=Z("content-scripts"),u=r==="message-actions",m=t==="conversation"||s||u;if(t==="navigation")return e(ie,{className:d("flex bg-background",se),children:n("div",{className:"flex w-[86%] border-r border-border-seam bg-sidebar text-sidebar-foreground",children:[e(Ut,{}),n("div",{className:"flex min-w-0 flex-1 flex-col",children:[n("div",{className:"flex h-12 items-center gap-3 px-3 text-sm",children:[e(p,{icon:"MessageSquarePlus"}),"New thread"]}),Pe.appSidebar.filter(P=>P!=="top-reserve").map(P=>e(Q,{children:nt[P]?.()},P))]})]})});if(t==="panel")return e(ie,{className:d("flex flex-col",se),children:e(jt,{compact:!0,activeTab:a,onTabSelect:i})});let g=t==="conversation";return n(ie,{className:g?d("relative flex flex-col",se):"relative overflow-visible",children:[e("span",{"aria-hidden":!0,"data-guide-target":"content-scripts",className:d("pointer-events-none absolute inset-0 z-[5] rounded-lg",me(c.outlined))}),g?null:e("span",{"aria-hidden":!0,"data-guide-fixture":"sidebar-trigger-overlay",className:"absolute left-2 top-2.5 z-[4] flex size-7 items-center justify-center rounded-md",children:e(p,{icon:"PanelLeft",className:"size-4"})}),n("div",{className:g?"flex min-h-0 flex-1 items-stretch":"flex min-h-[650px] items-stretch",children:[g?null:n("div",{className:"flex w-[300px] shrink-0 border-r border-border-seam bg-sidebar text-sidebar-foreground",children:[e(Ut,{}),e("div",{className:"flex min-w-0 flex-1 flex-col",children:Pe.appSidebar.map(P=>e(Q,{children:nt[P]?.()},P))})]}),n("div",{className:"flex min-w-0 flex-1 flex-col",children:[n("div",{className:"flex h-12 items-center gap-2 border-b border-border-hairline px-4",children:[g?e(p,{icon:"PanelLeft",className:"size-5"}):null,e("span",{className:"truncate text-foreground",children:"Fix flaky checkout tests"}),e(v,{id:"thread-actions",label:"Plugin thread actions, in the thread menu",className:"flex h-6.5 items-center px-1",showChip:!1,children:e(p,{icon:"MoreHorizontal",className:"size-3.5"})}),e("span",{className:"flex-1"}),e(v,{id:"thread-header",label:"Plugin thread-header control, left end of the action row",className:"flex h-6.5 items-center gap-1 px-2",showChip:!1,children:e(w,{className:"size-3.5"})}),g?e(p,{icon:"PanelRight",className:"size-5"}):null]}),n("div",{"data-guide-fixture":"app-window-timeline",className:g?"flex min-h-0 flex-1 flex-col justify-end gap-5 overflow-hidden px-4 py-4 text-sm leading-relaxed":"min-h-[510px] flex-1 space-y-7 overflow-hidden px-5 py-6",children:[e("div",{className:"flex justify-end",children:e("span",{className:"max-w-[70%] rounded-xl border border-border-seam bg-surface-recessed px-2.5 py-2 leading-snug text-foreground",children:"Fix the flaky checkout tests"})}),n("div",{className:"w-[78%] space-y-1",children:[n("span",{className:"flex items-center gap-1.5 text-foreground",children:[e(w,{className:"size-3.5"}),"Re-ran checkout suite",e("span",{className:"text-subtle-foreground",children:"Completed"})]}),e(ge,{id:"timeline-renderers",label:"Plugin-owned content inside a timeline entry",className:"ml-5 block space-y-1 px-2.5 py-2",chip:"side",children:n("div",{className:"flex items-center gap-2","aria-hidden":!0,children:[e("span",{className:"h-1.5 w-2/3 rounded-sm bg-muted/60"}),e("span",{className:"h-1.5 w-12 rounded-sm bg-foreground/40"})]})})]}),n("div",{"data-guide-fixture":"assistant-message",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onFocusCapture:()=>o(!0),onBlurCapture:()=>o(!1),className:"w-[88%] space-y-2",children:[e("p",{className:"leading-relaxed",children:"The retries cluster in two suites. Failure rate by suite:"}),n(v,{id:"message-directives",label:"A plugin component rendered inline by a message directive",className:"block w-3/5 px-2.5 py-2.5",children:[n("span",{className:"flex items-end gap-1.5","aria-hidden":!0,children:[e("span",{className:"h-4 w-3.5 rounded-sm bg-muted"}),e("span",{className:"h-8 w-3.5 rounded-sm bg-foreground/40"}),e("span",{className:"h-2.5 w-3.5 rounded-sm bg-muted"}),e("span",{className:"h-6 w-3.5 rounded-sm bg-muted"}),e("span",{className:"h-2 w-3.5 rounded-sm bg-muted"})]}),n("span",{className:"mt-1.5 flex items-center gap-1.5",children:[e(w,{className:"size-3.5"}),"::your-directive"]})]}),n(v,{id:"code-fence-renderers",label:"A plugin component rendering a fenced code block",className:"block w-3/5 px-2.5 py-2.5",children:[n("span",{className:"flex gap-1.5","aria-hidden":!0,children:[e("span",{className:"h-5 w-12 rounded-sm bg-muted"}),e("span",{className:"h-5 w-8 rounded-sm bg-foreground/40"})]}),n("span",{className:"mt-1.5 flex items-center gap-1.5",children:[e(w,{className:"size-3.5"}),"```ui"]})]}),n("div",{className:"space-y-1.5",children:[u?n("div",{"aria-hidden":!0,"data-guide-fixture":"message-action-selection-toolbar",className:"inline-flex items-center gap-0.5 rounded-md border border-border bg-popover p-0.5 text-2xs text-foreground shadow-md",children:[n("span",{className:"flex items-center gap-1 rounded px-1.5 py-0.5",children:[e(p,{icon:"MessageSquarePlus",className:"size-3.5"}),"Add to chat"]}),e("span",{className:"mx-0.5 h-4 w-px bg-border"}),n("span",{className:"flex items-center gap-1 rounded bg-state-hover px-1.5 py-0.5",children:[e(w,{className:"size-3.5"}),"Your action"]})]}):null,n("p",{className:"leading-relaxed",children:["Fixed by isolating the"," ",e("span",{"data-guide-fixture":"message-action-selected-text",className:d("rounded-sm px-0.5",u&&"bg-file-accent/25 text-foreground"),children:"Stripe mock"})," ","per test."]})]}),e("div",{className:"flex h-7 items-start",children:e(v,{id:"message-actions",label:"Plugin message actions fit inline before overflowing into the menu",className:"inline-flex items-center px-2 py-1.5",children:e("span",{"data-guide-fixture":"message-action-hover-row",className:d("inline-flex items-center gap-2 transition-opacity",m?"opacity-100":"opacity-0"),children:Pe.messageActionBar.map(P=>e(Q,{children:Xt[P]?.()},P))})})})]})]}),e("div",{className:"space-y-2 border-t border-border-hairline p-4",children:n(v,{id:"pending-interaction",label:"A plugin ask-the-user form, shown in place of the composer",className:"block border border-border bg-card p-3",children:[n("span",{className:"flex items-center gap-1.5 text-foreground",children:[e(w,{className:"size-3.5"}),"Pick a release channel"]}),n("span",{className:"mt-2 flex gap-1.5","aria-hidden":!0,children:[e("span",{className:"h-5.5 flex-1 rounded-md border border-border"}),e("span",{className:"flex h-5.5 items-center rounded-md border border-border px-2",children:"Cancel"}),e("span",{className:"flex h-5.5 items-center rounded-md bg-foreground px-2 text-background",children:"Submit"})]})]})})]}),g?null:e(jt,{activeTab:a,onTabSelect:i})]}),n(v,{id:"app-overlay",label:"App-wide floating plugin interface",className:d("z-[6] flex w-44 items-center gap-2 border border-border bg-popover px-3 py-2 text-foreground shadow-md",g?"relative mb-4 ml-auto mr-4 shrink-0":"absolute bottom-24 right-12"),children:[e(w,{className:"size-4 shrink-0"}),n("span",{className:"min-w-0",children:[e("span",{className:"block truncate font-medium",children:"Floating widget"}),e("span",{className:"block truncate text-2xs text-subtle-foreground",children:"2 agents active"})]})]})]})}var On=[{icon:"Folder",label:"Project",value:"checkout-service"},{icon:"GitBranch",label:"Branch",value:"fix/retry-flake"}];function Gt({icon:t,label:a,children:i}){return n("div",{className:"grid grid-cols-[96px_minmax(0,1fr)] items-center gap-x-3 py-0.5 text-xs leading-5",children:[n("span",{className:"flex items-center gap-1.5 text-muted-foreground",children:[t,a]}),e("span",{className:"min-w-0 truncate text-foreground",children:i})]})}function Dn(){return n("div",{"data-guide-fixture":"thread-info",className:"flex flex-col text-xs",children:[n("div",{className:"flex flex-col gap-1.5",children:[On.map(t=>e(Gt,{icon:e(p,{icon:t.icon,className:"size-3"}),label:t.label,children:t.value},t.label)),e(v,{id:"thread-info",label:"Plugin rows and sections in Moonlet's Info tab",className:"block rounded-md",showChip:!1,children:e(Gt,{icon:e(w,{className:"size-3"}),label:"Deploy",children:"Staging \xB7 healthy"})})]}),n(v,{id:"thread-info",label:"Plugin rows and sections in Moonlet's Info tab",className:"mt-3 block rounded-md border-t border-border-hairline pt-3",showChip:!1,children:[n("span",{className:"mb-1 flex items-center font-medium text-muted-foreground",children:["Automations",e("span",{className:"ml-1.5 rounded-full bg-surface-recessed px-1.5 text-2xs leading-4 font-normal tabular-nums",children:"1"})]}),n("span",{className:"flex h-6 items-center gap-1.5",children:[e(p,{icon:"Calendar",className:"size-3"}),e("span",{className:"min-w-0 flex-1 truncate text-foreground",children:"Nightly CI check"}),e("span",{className:"shrink-0 text-2xs text-subtle-foreground",children:"Next 9:00 AM"})]})]}),n("div",{className:"mt-3 border-t border-border-hairline pt-3",children:[n("span",{className:"mb-1 flex items-center font-medium text-muted-foreground",children:["Commits",e("span",{className:"ml-1.5 rounded-full bg-surface-recessed px-1.5 text-2xs leading-4 font-normal tabular-nums",children:"2"})]}),e("span",{className:"block h-2 w-3/5 rounded-sm bg-muted/60"})]})]})}function jt({compact:t=!1,activeTab:a,onTabSelect:i}){let r=_(null);oe(()=>{if(!t)return;let o=r.current,u=o?.querySelector(`[data-guide-tab="${a}"]`)?.closest("a, button");if(!o||!u)return;let m=o.getBoundingClientRect(),g=u.getBoundingClientRect();g.left<m.left?o.scrollLeft+=g.left-m.left-12:g.right>m.right&&(o.scrollLeft+=g.right-m.right+12)},[a,t]);let s=o=>d("flex h-7 shrink-0 items-center rounded-md",a===o&&"bg-state-hover");return n("div",{className:d("flex shrink-0 flex-col bg-sidebar",t?"min-h-0 w-full flex-1":"w-[380px] border-l border-border-seam"),children:[n("div",{ref:r,"data-guide-fixture":"right-panel-tab-strip",className:d("flex h-12 items-center gap-1.5 border-b border-border-hairline px-3",t&&"overflow-x-auto"),children:[n("span",{"data-guide-fixture":"right-panel-fixed-tabs",className:"flex shrink-0 items-center gap-1.5",children:[e(v,{id:"thread-info",label:"Plugin rows and sections in Moonlet's Info tab",className:d(s("thread-info"),"px-1.5"),showChip:!1,onActivate:()=>i("thread-info"),children:e("span",{"data-guide-tab":"thread-info",className:"contents",children:e(p,{icon:"Info",className:"size-3.5"})})}),e(v,{id:"code-renderers",label:"Plugin code and diff renderers on Moonlet's Diff tab",className:d(s("code-renderers"),"gap-1.5 whitespace-nowrap pl-1.5 pr-2"),showChip:!1,onActivate:()=>i("code-renderers"),children:n("span",{"data-guide-tab":"code-renderers",className:"contents",children:[e(p,{icon:"FileDiff",className:"size-3.5"}),e("span",{className:"text-foreground",children:"Diff"})]})})]}),n("span",{"data-guide-fixture":"right-panel-content-tabs",className:d("flex items-center gap-1.5",t?"shrink-0":"min-w-0 overflow-hidden"),children:[e(v,{id:"browser-toolbar",label:"Plugin controls beside the Browser address bar",className:d(s("browser-toolbar"),"gap-1.5 whitespace-nowrap px-2 text-foreground"),showChip:!1,onActivate:()=>i("browser-toolbar"),children:e("span",{"data-guide-tab":"browser-toolbar",children:"Browser"})}),e(v,{id:"thread-panel",label:"A plugin tab in the thread side panel",className:d(s("thread-panel"),"gap-1.5 whitespace-nowrap pl-1.5 pr-2"),showChip:!1,onActivate:()=>i("thread-panel"),children:n("span",{"data-guide-tab":"thread-panel",className:"contents",children:[e(w,{className:"size-3.5"}),e("span",{className:"text-foreground",children:"Your tab"})]})}),e(v,{id:"file-opener",label:"A plugin file viewer or editor tab",className:d(s("file-opener"),"gap-1.5 whitespace-nowrap pl-1.5 pr-2",!t&&"min-w-0 shrink"),showChip:!1,onActivate:()=>i("file-opener"),children:n("span",{"data-guide-tab":"file-opener",className:"contents",children:[e(p,{icon:"FileText",className:"size-3.5 shrink-0"}),e("span",{className:"min-w-0 truncate text-foreground",children:"retry-notes.md"})]})})]}),e("span",{className:"flex-1"}),e(p,{icon:"Plus",className:"size-3.5 shrink-0"}),e(p,{icon:"PanelRight",className:"size-3.5 shrink-0"})]}),e("div",{"data-guide-tab-body":a,className:d("min-h-0 flex-1 p-4",t&&"text-sm leading-relaxed"),children:a==="thread-info"?e(Dn,{}):a==="browser-toolbar"?n("div",{"data-guide-fixture":"browser-toolbar",className:"space-y-4",children:[n("div",{className:"flex items-center gap-2 border-b border-border-hairline pb-3",children:[e(p,{icon:"ChevronLeft",className:"size-3.5"}),e("div",{className:"min-w-0 flex-1 truncate rounded-md bg-surface-recessed px-2 py-1.5 text-subtle-foreground",children:"https://example.com"}),e(v,{id:"browser-toolbar",label:"Plugin controls beside the Browser address bar",className:"flex size-7 items-center justify-center",showChip:!1,children:e(w,{className:"size-3.5"})})]}),n("div",{className:"space-y-3 rounded-md border border-border-hairline bg-background p-4",children:[e("span",{className:"block h-2 w-2/5 rounded-sm bg-foreground/50"}),e("span",{className:"block h-2 w-4/5 rounded-sm bg-muted/60"}),e("span",{className:"block h-2 w-3/5 rounded-sm bg-muted/60"})]})]}):a==="thread-panel"?n("div",{"data-guide-fixture":"thread-panel",className:"space-y-2",children:[n("div",{className:"flex items-center gap-1.5 text-foreground",children:[e(w,{className:"size-3.5"}),"Release checklist"]}),e("p",{className:"leading-relaxed text-subtle-foreground",children:"Your plugin owns this tab and receives the thread it was opened from."}),e("span",{className:"block h-2 w-4/5 rounded-sm bg-muted/60"}),e("span",{className:"block h-2 w-3/5 rounded-sm bg-muted/60"})]}):a==="file-opener"?n("div",{"data-guide-fixture":"file-viewer",className:"space-y-3",children:[n("div",{className:"flex items-center gap-1.5 text-xs text-subtle-foreground",children:[e(p,{icon:"FileText",className:"size-3.5"}),e("span",{children:"docs"}),e("span",{children:"/"}),e("span",{className:"text-foreground",children:"retry-notes.md"})]}),n("article",{className:"space-y-3 rounded-lg border border-border-hairline bg-background p-4",children:[n("div",{className:"flex items-center gap-2",children:[e("h3",{className:"text-sm font-semibold text-foreground",children:"Checkout retry notes"}),n("span",{className:"ml-auto flex items-center gap-1 rounded bg-surface-recessed px-1.5 py-1 text-2xs text-subtle-foreground",children:[e(w,{className:"size-3"}),"Custom viewer"]})]}),e("p",{className:"leading-relaxed text-subtle-foreground",children:"Flakes cluster around shared test state. Reset each mock between cases before rerunning the suite."}),e("div",{className:"rounded-md border-l-2 border-file-accent bg-surface-recessed px-3 py-2 leading-relaxed text-foreground",children:"Next: isolate the Stripe mock per test."})]})]}):n("div",{"data-guide-fixture":"diff-renderer",className:"space-y-3",children:[n("div",{className:"flex items-center gap-1.5 text-foreground",children:[e(p,{icon:"FileDiff",className:"size-3.5"}),e("span",{className:"font-medium",children:"tests/checkout.test.ts"}),n("span",{className:"ml-auto flex items-center gap-1 rounded bg-surface-recessed px-1.5 py-1 text-2xs text-subtle-foreground",children:[e(w,{className:"size-3"}),"Custom diff"]})]}),n("div",{className:"overflow-hidden rounded-md border border-border-hairline bg-background font-mono text-2xs leading-relaxed",children:[e("div",{className:"border-b border-border-hairline bg-surface-recessed px-2 py-1.5 text-subtle-foreground",children:'@@ -18,7 +18,8 @@ describe("checkout")'}),n("div",{className:"grid grid-cols-[24px_24px_1fr] px-2 py-1 text-subtle-foreground",children:[e("span",{children:"18"}),e("span",{children:"18"}),e("span",{children:"beforeEach(() => {"})]}),n("div",{className:"grid grid-cols-[24px_24px_1fr] bg-destructive/10 px-2 py-1 text-destructive-text",children:[e("span",{children:"19"}),e("span",{}),e("span",{children:"\u2212 sharedMock.reset()"})]}),n("div",{className:"grid grid-cols-[24px_24px_1fr] bg-success/10 px-2 py-1 text-success",children:[e("span",{}),e("span",{children:"19"}),e("span",{children:"+ stripeMock.reset()"})]}),n("div",{className:"grid grid-cols-[24px_24px_1fr] bg-success/10 px-2 py-1 text-success",children:[e("span",{}),e("span",{children:"20"}),e("span",{children:"+ inventoryMock.reset()"})]}),n("div",{className:"grid grid-cols-[24px_24px_1fr] px-2 py-1 text-subtle-foreground",children:[e("span",{children:"20"}),e("span",{children:"21"}),e("span",{children:"})"})]})]})]})})]})}function Jt({mobile:t=!1}){let a=Z("composer-banners"),[i,r]=y(!1);return e("div",{className:d("relative pb-2 pt-4",t?"px-6":"px-7"),children:n("div",{className:"relative w-full select-none text-xs leading-none text-muted-foreground",children:[n("div",{"data-guide-annotation-layer":"composer-controls",className:"pointer-events-none absolute inset-0 z-50",children:[e(B,{id:"composer-banners",label:"Plugin banners and thread context, above the prompt box",anchor:'[data-guide-target="composer-banners"]',at:"end"}),e(B,{id:"composer-replacement",label:"The composer box, replaceable by one plugin",anchor:'[data-guide-region="composer-replacement"]',at:"start"}),e(B,{id:"composer-state",label:"The draft prompt a plugin can read and lock",anchor:'[data-guide-target="composer-state"]',at:"above"}),e(B,{id:"composer-plus-menu",label:"Plugin rows in the composer's + menu",anchor:'[data-guide-target="composer-plus-menu"]',at:"above"}),e(B,{id:"provider-picker",label:"Your agent provider and its mark, in the model picker",anchor:'[data-guide-target="provider-picker"]',at:"above"}),e(B,{id:"composer-actions",label:"Plugin composer actions, before voice and send",anchor:'[data-guide-target="composer-actions"]',at:"above"})]}),e(ie,{className:t?d("flex flex-col",se):void 0,children:n("div",{className:d("flex flex-col",t?"min-h-0 flex-1":"min-h-[506px]"),children:[n("div",{"aria-hidden":!0,className:"flex h-11 items-center gap-2 border-b border-border-hairline px-4 text-sm",children:[e("span",{className:"truncate text-foreground",children:"Ship the release notes"}),e(p,{icon:"MoreHorizontal",className:"size-3.5"}),e("span",{className:"flex-1"})]}),n("div",{"aria-hidden":!0,className:"min-h-0 flex-1 space-y-4 overflow-hidden px-4 py-4 text-sm leading-relaxed",children:[e("div",{className:"flex justify-end",children:e("span",{className:"max-w-[70%] rounded-xl border border-border-seam bg-surface-recessed px-3 py-2 text-foreground",children:"Draft the release notes"})}),e("p",{className:"w-[88%]",children:"Drafted. Two rough edges left in checkout \u2014 reply with what to fold in."})]}),n("div",{className:"px-4 pb-4",children:[n(v,{id:"composer-banners",label:"Plugin banners and thread context, above the prompt box",showChip:!1,target:!0,className:d("relative mb-2.5 block space-y-2 text-sm",me(a.outlined)),onActivate:()=>r(s=>!s),children:[n("span",{className:"flex items-center gap-2 rounded-md border border-border-hairline bg-surface-raised px-3 py-3",children:[e(w,{className:"size-3.5"}),e("span",{className:"text-foreground",children:"Your banner"})]}),n("span",{"data-guide-fixture":"thread-context-segment",className:"block overflow-hidden rounded-lg border border-border-hairline bg-surface-raised text-xs",children:[n("span",{className:"flex items-center gap-2 px-3 py-2",children:[e(p,{icon:"UserRound",className:"size-3.5"}),n("span",{className:"flex items-center gap-1.5 text-foreground",children:[e(w,{className:"size-3.5"}),"Your context"]}),e("span",{className:"flex-1",children:"Changed files"})]}),i?e("span",{className:"block border-t border-border-hairline px-3 py-2",children:"Context details"}):null]})]}),e(Bn,{mobile:t})]})]})})]})})}function Bn({mobile:t=!1}){let a=Z("composer-state"),i=Z("mention-provider"),r=Z("composer-plus-menu"),s=Z("provider-picker"),o=Z("composer-actions");return n("div",{"data-guide-fixture":"embedded-composer",className:"space-y-2",children:[e(ge,{id:"composer-replacement",label:"The composer box, replaceable by one plugin",showChip:!1,className:d("flex flex-col rounded-xl border border-border bg-background shadow-lift",t?"min-h-48":"h-36"),children:n("div",{"data-guide-layer":"composer-content",className:d("pointer-events-none relative z-[2] flex flex-1 flex-col px-2 pb-2 pt-7 [&_a]:pointer-events-auto",t&&"gap-7"),children:[n("div",{className:d("mx-2 flex items-center rounded-md text-sm leading-none text-foreground",t?"min-h-7 flex-wrap gap-y-7":"h-7",me(a.outlined)),children:[n(v,{id:"composer-state",label:"The draft prompt a plugin can read and lock",showChip:!1,target:!0,className:"whitespace-pre",children:["Summarize"," "]}),n("span",{className:"relative",children:[i.outlined?n("span",{"aria-hidden":!0,"data-guide-transient-for":"mention-provider",className:"pointer-events-none absolute bottom-full left-0 z-[60] mb-7 block w-44 overflow-hidden rounded-md border border-border bg-popover pb-1 text-xs shadow-md",children:[e("span",{className:"block px-3 pb-1 pt-1.5 text-muted-foreground",children:"Your plugin"}),n("span",{className:"mx-1 flex h-7 items-center gap-1.5 rounded-md bg-state-hover px-2 text-foreground",children:[e(w,{className:"size-3.5"}),"release-notes"]}),n("span",{className:"mx-1 flex h-7 items-center gap-1.5 px-2",children:[e(w,{className:"size-3.5 opacity-60"}),"roadmap"]})]}):null,e(ge,{id:"mention-provider",label:"Plugin mention results in the @ typeahead",className:"flex h-5.5 items-center rounded-full border border-surface-selected-border bg-surface-selected px-1.5",chip:"outside-above",showChip:!r.outlined,children:e("span",{"aria-hidden":!0,children:"@release-notes"})})]}),n("span",{"aria-hidden":!0,className:"whitespace-pre",children:[" ","and fix the"," "]}),e(ge,{id:"composer-rich-text",label:"Plugin highlighting, painted over the draft prompt",className:"flex h-5.5 items-center rounded bg-warning/25 px-1 ring-1 ring-warning/40",chip:"outside-above",showChip:!r.outlined,children:e("span",{"aria-hidden":!0,children:"TODO"})}),n("span",{"aria-hidden":!0,className:"whitespace-pre",children:[" ","in checkout."]})]}),n("div",{className:"mt-auto flex h-10 items-center gap-1",children:[n("span",{className:"relative",children:[r.outlined?n("span",{"aria-hidden":!0,"data-guide-transient-for":"composer-plus-menu",className:"pointer-events-none absolute bottom-full left-0 z-[60] mb-7 block w-44 rounded-md border border-border bg-popover p-1 shadow-md",children:[n("span",{className:"flex h-6 items-center gap-1.5 px-1.5",children:[e(p,{icon:"Paperclip",className:"size-3.5"}),"Attach files"]}),n("span",{className:"flex h-6 items-center gap-1.5 px-1.5",children:[e(p,{icon:"Zap",className:"size-3.5"}),"Skills"]}),n("span",{className:"flex h-6 items-center gap-1.5 rounded bg-state-hover px-1.5 text-foreground",children:[e(w,{className:"size-3.5"}),"Your action"]})]}):null,e(v,{id:"composer-plus-menu",label:"Plugin rows in the composer's + menu",showChip:!1,target:!0,className:d("flex size-10 items-center justify-center rounded-md",me(r.outlined)),children:e(p,{icon:"Plus",className:"size-4"})})]}),n(v,{id:"provider-picker",label:"Your agent provider and its mark, in the model picker",showChip:!1,target:!0,className:d("flex h-10 items-center gap-1.5 whitespace-nowrap rounded-md px-2 text-foreground",me(s.outlined)),children:[e(Kt,{}),"Fable 5",t?null:e("span",{className:"text-subtle-foreground",children:"High"})]}),e("span",{className:"flex-1"}),n("span",{className:"relative",children:[o.outlined?n("span",{"aria-hidden":!0,"data-guide-transient-for":"composer-actions",className:"pointer-events-none absolute bottom-full right-0 z-[60] mb-7 block w-48 rounded-md border border-border bg-popover p-2 shadow-md",children:[e("span",{className:"block border-b border-border pb-1 text-xs text-subtle-foreground",children:"Search saved prompts"}),e("span",{className:"mt-1 block rounded bg-state-hover px-2 py-1 text-xs",children:"Review this change"})]}):null,e(v,{id:"composer-actions",label:"Plugin composer actions, before voice and send",showChip:!1,target:!0,className:d("flex size-9 items-center justify-center rounded-md bg-state-hover",me(o.outlined)),children:e("span",{"data-guide-fixture":"plugin-composer-action",children:e(w,{className:"size-3.5"})})})]}),e("span",{className:"flex size-9 items-center justify-center",children:e(p,{icon:"Mic",className:"size-4"})}),e("span",{"data-guide-icon":"CornerDownLeft",className:"flex size-9 items-center justify-center rounded-md bg-foreground",children:e(p,{icon:"CornerDownLeft",className:"size-3.5 text-background"})})]})]})}),n("div",{className:"flex items-center justify-between px-2.5","aria-hidden":!0,children:[n("span",{className:"flex items-center gap-1.5",children:[e(p,{icon:"Folder",className:"size-3.5"}),"acme-app \xB7 worktree"]}),e("span",{children:"Full Access"})]})]})}function en({mobile:t=!1,panel:a=!1}){return t?e("div",{className:"px-6 pt-4",children:n(ie,{className:d("flex flex-col",se),children:[n("div",{className:"flex h-12 shrink-0 items-center gap-3 border-b border-border-seam px-3 text-sm",children:[e(p,{icon:"PanelLeft",className:"size-5"}),e("span",{className:"min-w-0 flex-1",children:"New thread"}),e(v,{id:"home-page",label:"The home page, which a plugin can replace with one of its pages",className:"px-2 text-xs",children:"Home"}),e(p,{icon:"PanelRight",className:"size-5"})]}),a?n("div",{"data-guide-mobile-scene":"panel",className:"min-h-0 flex-1 space-y-1 p-3 text-sm",children:[e("div",{className:"px-2 pb-1 text-subtle-foreground",children:"Actions"}),n("div",{className:"flex h-10 items-center gap-2 rounded-md px-2",children:[e(p,{icon:"Globe"}),"Open browser"]}),n("div",{className:"flex h-10 items-center gap-2 rounded-md px-2",children:[e(p,{icon:"Terminal"}),"Start terminal"]}),n(v,{id:"new-thread-panel",label:"A plugin action in the new-thread panel launcher",className:"flex h-10 items-center gap-2 px-2",children:[e(w,{}),"Your action"]})]}):n("div",{className:"flex min-h-0 flex-1 flex-col justify-end gap-4 overflow-hidden p-4 text-sm leading-relaxed",children:[e("div",{className:"text-xs text-subtle-foreground",children:"Recent threads"}),e("div",{children:"Fix flaky checkout tests"}),n(v,{id:"homepage-section",label:"A plugin homepage section, in the home content above the mobile composer",className:"block border border-border-seam p-3",children:[n("span",{className:"flex items-center gap-2 font-medium",children:[e(w,{}),"Your section"]}),e("span",{className:"mt-3 block",children:"Release 1.4 \xB7 Bug triage \xB7 Design QA"})]}),e($t,{})]})]})}):n("div",{className:"relative px-7 pb-2 pt-4",children:[e(B,{id:"new-thread-panel",label:"A plugin action in the new-thread panel launcher",anchor:'[data-guide-region="new-thread-panel"]',at:"end"}),e("div",{children:n(ie,{children:[n("div",{className:"flex items-center gap-2 border-b border-border-hairline px-3 py-2",children:[e(je,{}),e(v,{id:"home-page",label:"The home page, which a plugin can replace with one of its pages",className:"ml-2 px-2 text-xs",children:"Home"})]}),n("div",{className:"flex min-h-[485px] items-stretch",children:[e("div",{className:"min-w-0 flex-1 px-6 pb-6 pt-4",children:n("div",{className:"mx-auto w-full max-w-[560px] space-y-2.5",children:[e($t,{}),n(v,{id:"homepage-section",label:"A plugin homepage section, below the composer",className:"mt-4 block px-3 py-2.5",children:[n("span",{className:"flex items-center gap-1.5 pb-2 font-medium text-foreground",children:[e(w,{className:"size-3.5"}),"Your section"]}),e("span",{className:"grid grid-cols-3 gap-2","aria-hidden":!0,children:["Release 1.4","Bug triage","Design QA"].map(i=>n("span",{className:"space-y-1.5 rounded-md border border-border-hairline bg-surface-raised p-2.5",children:[e("span",{className:"block text-foreground",children:i}),e("span",{className:"block h-1.5 w-4/5 rounded-sm bg-muted/60"}),e("span",{className:"block h-1.5 w-3/5 rounded-sm bg-muted/60"})]},i))})]})]})}),n("div",{className:"w-[210px] shrink-0 border-l border-border-seam bg-sidebar p-2",children:[e("span",{className:"block px-1.5 pb-1.5 pt-1 text-xs text-subtle-foreground/75",children:"Actions"}),n("span",{className:"flex h-6.5 items-center gap-2 rounded-md px-2",children:[e(p,{icon:"Globe",className:"size-3.5"}),"Open browser"]}),n("span",{className:"flex h-6.5 items-center gap-2 rounded-md px-2",children:[e(p,{icon:"Terminal",className:"size-3.5"}),"Start terminal"]}),n(v,{id:"new-thread-panel",label:"A plugin action in the new-thread panel launcher",className:"flex h-6.5 items-center gap-2 px-2",showChip:!1,children:[e(w,{className:"size-3.5"}),e("span",{className:"text-foreground",children:"Your action"})]})]})]})]})})]})}function tn({mobile:t=!1}){let a=n(ie,{className:t?d("flex flex-col",se):void 0,children:[n("div",{className:"flex items-center gap-2 border-b border-border-hairline px-3 py-2.5",children:[t?e(p,{icon:"PanelLeft",className:"size-5"}):e(je,{}),e("span",{className:"pl-1 font-medium text-foreground",children:"Settings"})]}),n("div",{className:d("mx-auto w-full max-w-[520px] space-y-4 px-4 pb-5 pt-4",t?"min-h-0 flex-1 overflow-hidden":"min-h-[470px]"),children:[n("span",{className:"flex items-center gap-1 text-muted-foreground",children:[e(p,{icon:"ChevronLeft",className:"size-3.5"}),"Plugin details"]}),n("div",{className:"flex items-center gap-3",children:[e("span",{className:"flex size-9 shrink-0 items-center justify-center",children:e(w,{className:"size-5"})}),n("span",{className:"min-w-0 flex-1",children:[e("span",{className:"block text-sm font-semibold text-foreground",children:"Hello"}),e("span",{className:"block truncate pt-1 text-subtle-foreground",children:"A friendly example plugin."})]}),e(we,{checked:!0,"aria-hidden":!0,tabIndex:-1,className:"pointer-events-none"})]}),n("div",{className:"space-y-2",children:[e("span",{className:"block text-subtle-foreground",children:"Configuration"}),n(v,{id:"declarative-settings",label:"The form Moonlet generates from the fields you declare",className:"block bg-surface-recessed-solid p-3",children:[n("span",{className:d("flex items-start justify-between gap-3 py-1.5",t&&"flex-wrap"),children:[n("span",{className:"min-w-0",children:[n("span",{className:"flex items-center gap-1.5 text-foreground",children:["API key",e("span",{className:"rounded border border-border px-1.5 py-0.5 text-xs",children:"secret"})]}),e("span",{className:"block pt-1 leading-relaxed",children:"Stored server-side; never sent to the browser."})]}),e("span",{"aria-hidden":!0,className:"flex h-6 w-32 shrink-0 items-center rounded-md border border-border bg-card px-2 text-xs text-subtle-foreground",children:"[set]"})]}),n("span",{className:d("flex items-start justify-between gap-3 py-1.5",t&&"flex-wrap"),children:[n("span",{className:"min-w-0",children:[e("span",{className:"block text-foreground",children:"Case-sensitive search"}),e("span",{className:"block pt-1 leading-relaxed",children:"Match capitalisation when looking things up."})]}),e(we,{checked:!0,"aria-hidden":!0,tabIndex:-1,className:"pointer-events-none mt-0.5"})]}),t?null:n(Y,{children:[n("span",{className:d("flex items-start justify-between gap-3 py-1.5",t&&"flex-wrap"),children:[n("span",{className:"min-w-0",children:[e("span",{className:"block text-foreground",children:"Retry attempts"}),e("span",{className:"block pt-1 leading-relaxed",children:"Maximum retries before stopping."})]}),e("span",{"aria-hidden":!0,className:"flex h-6 w-32 shrink-0 items-center rounded-md border border-border bg-card px-2 text-xs text-foreground",children:"3"})]}),n("span",{className:"block py-1.5",children:[e("span",{className:"block text-foreground",children:"Custom instructions"}),e("span",{className:"block pt-1 leading-relaxed",children:"Added to every agent task on this host."}),e("span",{"aria-hidden":!0,className:"mt-2 block h-12 rounded-md border border-border bg-card px-2 py-1.5 text-subtle-foreground",children:"Keep answers concise and run focused tests."})]})]})]}),n(v,{id:"settings-section",label:"A React component you write, under the generated form",className:"block px-1 pb-2 pt-2",children:[n("span",{className:"flex items-center gap-1.5 pb-2 font-medium text-foreground",children:[e(w,{className:"size-3.5"}),"Your section"]}),n("span",{"aria-hidden":!0,className:"block space-y-2 rounded-md border border-border bg-card p-2.5",children:[n("span",{className:"flex flex-wrap items-center justify-between gap-2",children:[e("span",{className:"text-foreground",children:"Connected as @acme-bot"}),e("span",{className:"flex h-5.5 items-center rounded-md border border-border px-2 text-foreground",children:"Test connection"})]}),e("span",{className:"block h-2 w-2/3 rounded-sm bg-muted/60"})]})]}),t?null:n(v,{id:"first-run-step",label:"A step you add to first-run setup, shown once per install",className:"block px-1 pb-2 pt-2",children:[n("span",{className:"flex items-center gap-1.5 pb-2 font-medium text-foreground",children:[e(w,{className:"size-3.5"}),"First run: About you"]}),n("span",{"aria-hidden":!0,className:"flex items-center justify-between gap-2 rounded-md border border-border bg-card p-2.5",children:[e("span",{className:"block h-2 w-1/2 rounded-sm bg-muted/60"}),e("span",{className:"flex h-5.5 items-center rounded-md border border-border px-2 text-foreground",children:"Save and continue"})]})]})]})]})]});return t?e("div",{className:"px-6 pt-4",children:a}):a}function nn({mobile:t=!1}){let a=n(ie,{className:t?d("flex flex-col",se):void 0,children:[n("div",{className:"flex h-10 shrink-0 items-center gap-2 border-b border-border-hairline px-3 text-sm",children:[t?e(p,{icon:"PanelLeft",className:"size-5"}):e(je,{}),e("span",{className:"text-foreground",children:"Plugins"})]}),n("div",{className:d("flex flex-col",t?"min-h-0 flex-1":"min-h-[470px]"),children:[n(v,{id:"plugin-status",label:"The needs-configuration banner Moonlet shows for a plugin that reports it",className:"flex items-center gap-2 border-b border-border bg-surface-recessed/55 px-5 py-1.5 text-xs",chip:"corner-inset",children:[e(p,{icon:"Settings",className:"size-3.5 text-warning"}),e("span",{className:"min-w-0 flex-1 font-medium text-foreground",children:"Needs configuration"}),n("span",{className:"flex h-7 shrink-0 items-center gap-0.5 rounded-md px-2.5 text-xs font-normal text-muted-foreground",children:["Open settings",e(p,{icon:"ChevronRight",className:"size-3"})]})]}),n("div",{className:"mx-auto w-full max-w-[560px] space-y-4 px-4 pb-5 pt-4",children:[n("div",{className:"flex items-center gap-2.5",children:[e(w,{className:"size-4"}),e("span",{className:"text-sm font-semibold text-foreground",children:"Hello"}),e("span",{className:"rounded border border-border px-1.5 py-0.5 text-xs",children:"BB Official"}),e("span",{className:"flex-1"}),e(p,{icon:"Settings",className:"size-3.5"}),e(we,{checked:!0,"aria-hidden":!0,tabIndex:-1,className:"pointer-events-none"}),e(p,{icon:"MoreHorizontal",className:"size-3.5"})]}),e("span",{className:"block font-mono text-xs text-subtle-foreground",children:"~/.bb/plugins/hello"}),e("div",{className:"space-y-1.5 border-t border-border-hairline pt-3",children:e("span",{className:"block text-foreground",children:"A friendly example plugin."})}),n("div",{className:"space-y-1.5 border-t border-border-hairline pt-3",children:[e("span",{className:"block text-subtle-foreground",children:"Details"}),e("span",{className:"block divide-y divide-border-hairline rounded-md border border-border-hairline",children:[["Delivery","Updates with Moonlet"],["Version","0.1.0"]].map(([i,r])=>n("span",{className:"flex items-center gap-3 px-2.5 py-1.5",children:[e("span",{className:"w-24 shrink-0 text-foreground",children:i}),e("span",{children:r})]},i))})]}),n("div",{className:"space-y-1.5 border-t border-border-hairline pt-3",children:[e("span",{className:"block text-subtle-foreground",children:"Capabilities"}),e("span",{"aria-hidden":!0,className:"block divide-y divide-border-hairline rounded-md border border-border-hairline",children:[["Settings","API key, Case-sensitive search"],["bb hello","Say hello from the terminal"]].map(([i,r])=>n("span",{className:"flex items-center gap-3 px-2.5 py-1.5",children:[e("span",{className:"w-24 shrink-0 text-foreground",children:i}),e("span",{className:"truncate",children:r})]},i))})]})]})]})]});return t?e("div",{className:"px-6 pt-4",children:a}):a}function $t(){return n(Y,{children:[n("div",{className:"rounded-xl border border-border bg-background p-3 shadow-lift",children:[e("p",{className:"px-1 pt-1 leading-relaxed text-subtle-foreground",children:"Ask anything. @ to mention files, folders, or sections"}),e("div",{"aria-hidden":!0,className:"h-10"}),n("div",{className:"flex items-center gap-2 px-0.5","aria-hidden":!0,children:[e("span",{className:"flex size-6 items-center justify-center rounded-md border border-border",children:e(p,{icon:"Plus",className:"size-3.5"})}),n("span",{className:"flex h-6 items-center gap-1.5 rounded-md px-1.5 text-foreground",children:[e(Kt,{}),"Fable 5 \xB7 High"]}),e("span",{className:"flex-1"}),e(p,{icon:"Mic",className:"size-3.5"}),e("span",{className:"flex size-6 items-center justify-center rounded-md bg-foreground",children:e(p,{icon:"CornerDownLeft",className:"size-3.5 text-background"})})]})]}),n("div",{className:"flex items-center justify-between gap-2 whitespace-nowrap px-2.5","aria-hidden":!0,children:[n("span",{className:"flex min-w-0 items-center gap-1.5",children:[e(p,{icon:"Folder",className:"size-3.5 shrink-0"}),n("span",{className:"truncate",children:["acme-app ",e("span",{className:"text-subtle-foreground",children:"\xB7 worktree"})]})]}),e("span",{className:"shrink-0",children:"Full Access"})]})]})}function at({surface:t,number:a,onDismiss:i,onCopyForAgent:r,navigation:s,probe:o=!1,mobile:c=!1}){let u=_(null),m=c?Ft:Ht,g=Me(Se),P=g?.pluginPageHref,R=Fe(t.id),{currentGroupId:T,onGoToSurface:b,numberOf:H}=g??{},[f,U]=y("idle"),I=_(null);O(()=>{U("idle"),I.current!==null&&(window.clearTimeout(I.current),I.current=null)},[t.id]),O(()=>()=>{I.current!==null&&window.clearTimeout(I.current)},[]);let j=re(async()=>{if(!r||f==="copying")return;U("copying");let h=await r(t);U(h?"copied":"failed"),I.current=window.setTimeout(()=>{U("idle"),I.current=null},2e3)},[f,r,t]),N=re(h=>{let C=De.get(h);return!C||!b?null:{number:H?.(h)??null,otherPage:C.id===T?null:C.title,onOpen:()=>b(h)}},[T,H,b]);return O(()=>{if(o)return;let h=C=>{C.key==="Escape"&&i()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[i,o]),O(()=>{if(o)return;let h=window.setTimeout(()=>{u.current?.scrollIntoView({block:"nearest",behavior:"smooth"})},350);return()=>window.clearTimeout(h)},[o]),n("div",{ref:u,role:o?void 0:"dialog","aria-label":o?void 0:t.title,className:"w-full rounded-lg border border-border bg-popover p-3.5 shadow-lg [overflow-wrap:anywhere]",children:[n("div",{className:"flex items-start gap-2",children:[a===null?R?e(le,{icon:R,className:"mt-0.5 size-4 shrink-0 text-file-accent"}):null:e("span",{"aria-hidden":!0,className:fe(!0,"mt-0.5"),children:a}),e("div",{className:"min-w-0 flex-1",children:n("div",{className:"flex flex-wrap items-center gap-2",children:[e("h3",{className:"text-base font-medium text-foreground",children:t.title}),t.experimental?e(xe,{}):null]})}),n("div",{className:"-mr-1 -mt-1 flex shrink-0 items-center gap-0.5",children:[s?e("div",{role:"group","aria-label":"Annotation navigation",className:"flex items-center gap-0.5",children:[["previous",s.previous,"ChevronLeft"],["next",s.next,"ChevronRight"]].map(([h,C,S])=>{let L=C?`${h==="previous"?"Previous":"Next"} annotation: ${C.title}`:`No ${h} annotation`;return e("button",{type:"button",onClick:()=>{C&&s.onOpen(C.id)},disabled:!C,"aria-label":L,title:L,className:`inline-flex size-9 @2xl/guide:size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground disabled:cursor-default disabled:opacity-35 disabled:hover:bg-transparent disabled:hover:text-muted-foreground ${W}`,children:e($,{name:S,className:"size-3.5"})},h)})}):null,e("button",{type:"button",onClick:i,"aria-label":"Close",title:"Close annotation",className:`inline-flex size-9 @2xl/guide:size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground ${W}`,children:e($,{name:"X",className:"size-3.5"})})]})]}),e("p",{className:"mt-2 text-sm leading-relaxed text-muted-foreground",children:ve(t.summary,N)}),e("ul",{className:"mt-1.5 list-disc space-y-1.5 pl-4 text-sm leading-relaxed text-muted-foreground marker:text-subtle-foreground",children:t.bullets.map(h=>e("li",{children:ve(h,N)},h))}),t.reference?n("details",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:[e("summary",{className:`cursor-pointer rounded-sm ${W}`,children:"API behavior"}),e("div",{className:"mt-2 space-y-2",children:t.reference.map(h=>e("p",{children:h},h))})]}):null,t.firstParty&&t.firstParty.length>0||r?n("div",{className:"mt-3 flex min-w-0 items-center gap-2 border-t border-border-hairline pt-2.5",children:[t.firstParty&&t.firstParty.length>0?n("div",{className:`flex min-w-0 flex-1 items-center ${c?"gap-1":"gap-2"}`,children:[e("span",{className:`shrink-0 whitespace-nowrap text-xs text-subtle-foreground ${c?"":"rounded bg-surface-recessed px-2 py-0.5 font-normal"}`,children:"Used by"}),e(m,{items:t.firstParty,renderItem:h=>{let C=Tt(h),S=P?.(h)??null,G=n(Y,{children:[g?.renderPluginIcon?.(h)??(C?e($,{name:C,className:"size-3.5 shrink-0 text-subtle-foreground"}):null),c?e("span",{className:"min-w-0 truncate",children:h}):h]});return S?e("a",{href:S,title:h,className:c?`flex min-h-9 items-center justify-center gap-1.5 rounded-md bg-surface-recessed px-2 py-1 text-xs text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground ${W}`:"flex items-center gap-1 whitespace-nowrap text-xs text-muted-foreground underline decoration-border underline-offset-2 hover:text-foreground hover:decoration-foreground",children:G}):e("span",{className:c?"flex min-h-9 items-center justify-center gap-1.5 rounded-md bg-surface-recessed px-2 py-1 text-xs text-muted-foreground":"flex items-center gap-1 whitespace-nowrap text-xs text-muted-foreground",children:G})}},t.id)]}):null,r?n("button",{type:"button",onClick:()=>{j()},disabled:f==="copying","aria-label":f==="failed"?"Copy failed. Retry copy for agent":"Copy for agent",title:f==="failed"?"Copy failed. Retry copy for agent":"Copy for agent",className:`ml-auto inline-flex shrink-0 cursor-pointer items-center rounded-md text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground disabled:cursor-wait disabled:opacity-60 ${c?"size-9 @2xl/guide:size-7 justify-center":"h-7 gap-1.5 whitespace-nowrap px-2 text-xs font-medium"} ${W}`,children:[e($,{name:f==="copied"?"Check":f==="failed"?"AlertCircle":"Copy",className:"size-3.5"}),e("span",{className:c?"sr-only":void 0,"aria-live":"polite",children:f==="copying"?"Copying\u2026":f==="copied"?"Copied":f==="failed"?"Copy failed":"Copy for agent"})]}):null]}):null]})}function an(){let[t,a]=y(null);return{openId:t,open:i=>a(i),close:()=>a(null)}}var ln=Oe.map(t=>({...t,groupId:t.id})),rn=ln.flatMap(t=>t.id==="composer"?[{...t,blurb:"Plugins can replace the prompt box, or add banners, actions, providers, and rich text to it."}]:t.id==="app-shell"?[{...t,title:"Sidebar",blurb:"Plugins can add navigation, thread status, and footer controls.",appShellScene:"navigation",surfaces:t.surfaces.filter(a=>["nav-panel","thread-row-status","thread-list","sidebar-footer"].includes(a.id))},{...t,id:"app-shell-thread",title:"Thread",blurb:"Plugins can extend the thread header, conversation, and composer.",appShellScene:"conversation",surfaces:t.surfaces.filter(a=>["thread-header","timeline-renderers","message-directives","code-fence-renderers","message-actions","pending-interaction","app-overlay","content-scripts"].includes(a.id))},{...t,id:"app-shell-panel",title:"Side panel",blurb:"Explore plugin controls and content in the side panel\u2019s tabs.",appShellScene:"panel",surfaces:t.surfaces.filter(a=>["thread-info","code-renderers","browser-toolbar","thread-panel","file-opener"].includes(a.id))}]:t.id==="home"?[{...t,surfaces:t.surfaces.filter(a=>a.id==="homepage-section")},{...t,id:"home-actions",title:"New thread actions",blurb:"Plugins can add an action to the new-thread panel launcher.",homePanel:!0,surfaces:t.surfaces.filter(a=>a.id==="new-thread-panel")}]:[t]);function dn(t,a){let i=t.findIndex(r=>r.id===a);return i===-1?{previous:null,next:null}:{previous:t[i-1]??null,next:t[i+1]??null}}function Hn({surface:t}){let{activeId:a,setActiveId:i,expandedId:r,onSelect:s}=K(),o=a===t.id||r===t.id,c=Fe(t.id);return n("a",{href:`#surface-${t.id}`,"aria-label":`${t.title} \u2014 jump to details`,onClick:s?u=>{u.preventDefault(),s(t.id)}:void 0,onMouseEnter:()=>i(t.id),onMouseLeave:()=>i(null),className:d("flex h-full items-center gap-3 rounded-lg border px-4 py-4 transition-colors",W,o?"border-border bg-surface-selected":"border-border-hairline bg-surface-raised-solid hover:border-border hover:bg-state-hover"),children:[c?e(le,{icon:c,className:d("size-4 shrink-0",o?"text-file-accent":"text-foreground")}):null,n("span",{className:"min-w-0",children:[n("span",{className:"flex items-center gap-2",children:[e("span",{className:"min-w-0 truncate text-sm font-medium text-foreground",children:t.title}),t.experimental?e(xe,{}):null]}),e("span",{className:"line-clamp-2 text-sm text-muted-foreground @3xl:line-clamp-1",children:ve(t.tagline??t.summary)})]})]})}function Fn({group:t}){return e("div",{className:"space-y-3",children:(t.sections??[]).map(a=>{let i=a.surfaceIds.map(r=>Be.get(r)).filter(r=>!!r);return n("section",{"aria-label":a.title,children:[e("h3",{className:"text-xs font-medium uppercase tracking-wide text-subtle-foreground",children:a.title}),e("ul",{className:"mt-1 grid gap-1.5 @min-[40rem]/guide:grid-cols-2",children:i.map(r=>e("li",{className:"min-w-0",children:e(Hn,{surface:r})},r.id))})]},a.title)})})}var st=1.2;function zn(t,a,i,r){if(t<=0||a<=0)return 1;let s=i!==void 0&&r!==void 0&&i>0&&r>0?i/r:Number.POSITIVE_INFINITY;return Math.min(st,t/a,s)}var Wn={"app-shell":{min:1260,max:1440},"command-palette":{min:860,max:1200},composer:{min:720,max:768},home:{min:560,max:1080},settings:{min:640,max:900},extensions:{min:640,max:900}};function Un({band:t,maxScale:a=st,children:i}){let r=_(null),s=_(null),o=_(0),[c,u]=y({scale:1,height:null,width:null,offsetX:0});oe(()=>{let g=r.current,P=s.current;if(!g||!P)return;let R=g.closest("[data-guide-stage-viewport]"),T=()=>{let N=P.scrollWidth,h=P.scrollHeight,C=g.closest("section")?.querySelector("[data-guide-card-flow]");C?o.current=Math.max(o.current,C.getBoundingClientRect().height+parseFloat(getComputedStyle(C).marginTop||"0")):o.current=0;let S=g.closest("[data-map-section]")?.querySelector("[data-guide-card-probe]"),G=0;if(S)for(let M of Array.from(S.children))M instanceof HTMLElement&&(G=Math.max(G,M.offsetHeight+parseFloat(getComputedStyle(M).marginTop||"0")));let L=C?Math.max(G,o.current):0,D=R&&g.clientWidth>=640?R.clientHeight-(g.getBoundingClientRect().top-R.getBoundingClientRect().top+R.scrollTop)-L-8:void 0,F=Math.min(a,zn(g.clientWidth,N,D,h)),E=Math.abs(F-1)>=1e-4,te=h*F,V=E?N:null,ne=E?(g.clientWidth-N)/2:0;u(M=>Math.abs(M.scale-F)<1e-4&&M.height===te&&M.width===V&&Math.abs(M.offsetX-ne)<.5?M:{scale:F,height:te,width:V,offsetX:ne})};T();let b=new ResizeObserver(T);b.observe(g),b.observe(P),R&&b.observe(R);let H=g.closest("[data-map-section]")?.querySelector("[data-guide-card-probe]");H?.firstElementChild&&b.observe(H.firstElementChild);let f=g.closest("section"),U=null,I=()=>{let N=f?.querySelector("[data-guide-card-flow]")??null;N!==U&&(U&&b.unobserve(U),U=N,N&&b.observe(N),T())};I();let j=f?new MutationObserver(I):null;return j?.observe(f,{childList:!0}),()=>{b.disconnect(),j?.disconnect()}},[a]);let m=c.width!==null;return e("div",{ref:r,"data-guide-responsive-strategy":"scale-together","data-guide-scale":c.scale.toFixed(4),className:"w-full overflow-x-clip transition-[height] duration-300 ease-out",style:{height:c.height??void 0},children:e("div",{ref:s,className:"mx-auto w-full origin-top transition-transform duration-300 ease-out",style:{minWidth:t?.min,maxWidth:t?.max,[tt]:be(c.scale),...m?{transform:`scale(${c.scale})`,width:c.width??void 0,marginLeft:c.offsetX,marginRight:0}:void 0},children:i})})}var rt=350,Gn=72;function jn({children:t}){let a=_(null),i=_(null),[r,s]=y({scale:1,height:null,offsetX:0});return oe(()=>{let o=a.current,c=i.current;if(!o||!c)return;let u=()=>{let P=o.closest("[data-guide-stage-viewport]")?.clientHeight??document.documentElement.clientHeight,R=c.offsetHeight;if(R===0||o.clientWidth===0)return;let T=Math.min(1,o.clientWidth/rt,(P-Gn)/R),b=Math.ceil(R*T),H=Math.max(0,(o.clientWidth-rt*T)/2);s(f=>Math.abs(f.scale-T)<.001&&f.height===b&&Math.abs(f.offsetX-H)<.5?f:{scale:T,height:b,offsetX:H})};u();let m=new ResizeObserver(u);return m.observe(o),m.observe(c),window.addEventListener("resize",u),()=>{m.disconnect(),window.removeEventListener("resize",u)}},[]),e("div",{ref:a,"data-guide-responsive-strategy":"mobile","data-guide-scale":r.scale.toFixed(4),className:"w-full overflow-x-clip",style:{height:r.height??void 0},children:e("div",{ref:i,className:"origin-top-left",style:{width:rt,marginLeft:r.offsetX,transform:r.scale===1?void 0:`scale(${r.scale})`,[tt]:be(r.scale)},children:t})})}function it({group:t,mobile:a=!1}){switch(t.groupId){case"app-shell":return e(Zt,{mobile:a,mobileScene:t.appShellScene});case"command-palette":return e(Qt,{mobile:a});case"composer":return e(Jt,{mobile:a});case"home":return e(en,{mobile:a,panel:t.homePanel});case"settings":return e(tn,{mobile:a});case"extensions":return e(nn,{mobile:a});case"headless":return e(Fn,{group:t})}}var sn=()=>{},$n=async()=>!1;function Vn({group:t}){let{numberOf:a}=K();return e("div",{inert:!0,"aria-hidden":!0,"data-guide-card-probe":!0,className:"invisible h-0 overflow-hidden",children:t.surfaces.map(i=>e("div",{className:"mt-[clamp(8px,var(--guide-stage-gap,8px),28px)] w-full",children:e(at,{probe:!0,surface:i,number:a(i.id),onDismiss:sn,onCopyForAgent:$n,navigation:{...dn(t.surfaces,i.id),onOpen:sn}})},i.id))})}function qn({group:t,mobile:a,compactLayout:i}){return a&&i&&t.id!=="headless"?e(jn,{children:e(it,{group:t,mobile:!0})}):vt(t)==="reflow"?e("div",{"data-guide-responsive-strategy":"reflow",className:"w-full",children:e(it,{group:t})}):n(Y,{children:[e(Un,{band:a?{min:390,max:390}:Wn[t.groupId],maxScale:a?1:st,children:e(it,{group:t,mobile:a})}),e(Vn,{group:t})]})}function Kn({title:t,brandMark:a}){let i=t.split(/\bbb\b/);return i.length===1?e(Y,{children:t}):e(Y,{children:i.map((r,s)=>n(Q,{children:[s>0?a??e("span",{className:"font-bold italic",children:"Moonlet"}):null,r]},s))})}function Yn(t,a){return{previous:t>0,next:t<a-1}}function on({direction:t,disabled:a,onClick:i}){return e("button",{type:"button",onClick:i,disabled:a,"aria-label":`${t==="previous"?"Previous":"Next"} surface`,className:d("inline-flex size-10 @2xl/guide:size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground disabled:cursor-default disabled:opacity-40 disabled:hover:bg-transparent disabled:hover:text-muted-foreground",W),children:e($,{name:t==="previous"?"ChevronLeft":"ChevronRight",className:"size-4"})})}function Xn(t,a){let[i,r]=y(null),[s,o]=y(!1),c=_(!1);return O(()=>{if(!c.current){c.current=!0;return}o(!0);let u=window.setTimeout(()=>o(!1),350);return()=>window.clearTimeout(u)},[t]),O(()=>{let u=a.current[t];if(!u)return;let m=()=>r(u.getBoundingClientRect().height);m();let g=new ResizeObserver(m);return g.observe(u),()=>g.disconnect()},[t,a]),{height:i,animate:s}}function Qn({children:t}){let a=_(null),i=_(null);return oe(()=>{let r=a.current,s=i.current;if(!r||!s)return;let o=()=>{r.style.height=`${s.getBoundingClientRect().height}px`};o();let c=new ResizeObserver(o);return c.observe(s),()=>c.disconnect()},[]),e("div",{ref:a,className:"overflow-y-clip transition-[height] duration-300 ease-out motion-reduce:transition-none",style:{height:0},children:e("div",{ref:i,className:"flow-root",children:t})})}function cn({pluginPageHref:t,renderPluginIcon:a,initialSlideId:i,onSlideChange:r,onCopyForAgent:s,brandMark:o,mobileOnlyOnCompactViewport:c=!1}){let u=_(null),m=_([]),g=_(null),P=_([]),R=_(null),T=_(0),b=an(),[H,f]=y(null),[U,I]=y(null),[j,N]=y(()=>typeof window<"u"&&window.matchMedia?.("(max-width: 767px)").matches===!0),[h,C]=y(null),S=h??j;oe(()=>{let l=u.current;if(l===null)return;let x=()=>{let q=l.getBoundingClientRect().width;q>0&&C(q<768)};x();let A=new ResizeObserver(x);return A.observe(l),()=>A.disconnect()},[]);let[G,L]=y(null),D=c&&j,F=D||(G===null?S:G==="mobile"),E=F?rn:ln,te=qe(()=>new Map(E.filter(l=>l.groupId!=="headless").flatMap(l=>l.surfaces.map((x,A)=>[x.id,A+1]))),[E]);O(()=>{let l=window.matchMedia?.("(max-width: 767px)");if(!l)return;let x=()=>N(l.matches);return l.addEventListener("change",x),()=>l.removeEventListener("change",x)},[]);let V=l=>{I(l),b.open(l)},ne=Ue(g),[M,de]=y(i??"app-shell"),ke=_(F);oe(()=>{if(ke.current===F||(ke.current=F,!F||!b.openId))return;let l=E.find(x=>x.surfaces.some(A=>A.id===b.openId));l&&l.id!==M&&(de(l.id),r?.(l.id))},[F,b.openId,E,M,r]);let Ce=rn.find(l=>l.id===M),k=Math.max(0,E.findIndex(l=>l.id===M||!F&&l.id===Ce?.groupId)),ae=Xn(k,m);O(()=>{if(S)return;let l=g.current,x=P.current[k];if(!l||!x)return;let A=l.getBoundingClientRect(),q=x.getBoundingClientRect(),ee=q.left-A.left,ot=q.right-A.right;ee<0?l.scrollLeft+=ee:ot>0&&(l.scrollLeft+=ot)},[k,S]);let ce=b.openId?Be.get(b.openId):void 0,pe=Yn(k,E.length),z=l=>{l===k||l<0||l>=E.length||(b.close(),I(null),f(null),de(E[l].id),r?.(E[l].id))},Ne=l=>{if(!De.get(l))return;let A=E.findIndex(q=>q.surfaces.some(ee=>ee.id===l));A!==-1&&(A!==k&&z(A),V(l))},he=l=>{l.target instanceof HTMLSelectElement||l.target instanceof Element&&l.target.closest('[role="dialog"]')||(l.key==="ArrowRight"?(l.preventDefault(),z(k+1)):l.key==="ArrowLeft"&&(l.preventDefault(),z(k-1)))},X=qe(()=>({activeId:H,setActiveId:f,expandedId:b.openId??U,numberOf:l=>te.get(l)??null,onSelect:V,pluginPageHref:t,renderPluginIcon:a,currentGroupId:E[k].groupId,onGoToSurface:Ne}),[H,b.openId,t,a,k,U,F,E,te]),J=ce?e("div",{"data-guide-card-flow":!0,className:"mx-auto mt-[clamp(8px,var(--guide-stage-gap,8px),28px)] w-full",children:e(at,{surface:ce,mobile:S,number:te.get(ce.id)??null,onDismiss:b.close,onCopyForAgent:s,navigation:{...dn(E[k].surfaces,ce.id),onOpen:V}})}):null;return O(()=>{if(b.openId===null)return;let l=u.current;if(l===null)return;let x=l.closest("[data-bb-plugin]")??l,A=q=>{let ee=q.target;ee instanceof Element&&(ee.closest('[role="dialog"]')||ee.closest('a[href^="#surface-"], [data-guide-display-mode]')||b.close())};return x.addEventListener("pointerdown",A),()=>x.removeEventListener("pointerdown",A)},[b.openId]),e(Se.Provider,{value:X,children:e("div",{ref:u,className:"@container/guide relative",children:e("div",{"data-map-column":!0,className:"mx-auto w-full max-w-[100rem]",children:n("section",{"aria-roledescription":"carousel","aria-label":"Moonlet surfaces a plugin can extend",onKeyDown:he,className:"mt-2",children:[D?e("h2",{className:"sr-only",children:E[k].title}):n("div",{className:"mb-3 border-b border-border-hairline pb-3",children:[e("h2",{className:"text-base font-semibold",children:e(Kn,{title:E[k].title,brandMark:o})}),e("p",{className:"mt-1 max-w-2xl text-sm leading-relaxed text-subtle-foreground/75",children:E[k].blurb})]}),n("div",{"data-guide-navigation-toolbar":!0,className:"flex w-full items-center gap-2",children:[n("div",{className:"flex min-w-0 flex-1 items-center justify-center gap-1",children:[e(on,{direction:"previous",disabled:!pe.previous,onClick:()=>z(k-1)}),e("div",{ref:g,"data-guide-page-list-scroll":!0,"data-no-secondary-panel-swipe":!0,className:d(S?"min-w-0 flex-1 touch-pan-y overflow-hidden":"min-w-0 overflow-x-auto",ze),style:S?void 0:We(ne.canScrollLeft,ne.canScrollRight),onTouchStartCapture:l=>{T.current=0;let x=l.touches[0];R.current=S&&l.touches.length===1&&x?{x:x.clientX,y:x.clientY}:null},onTouchCancelCapture:()=>{R.current=null},onTouchEndCapture:l=>{let x=R.current;R.current=null;let A=l.changedTouches[0];if(!x||!A)return;let q=A.clientX-x.x,ee=A.clientY-x.y;Math.abs(q)<30||Math.abs(q)<=Math.abs(ee)||(T.current=Date.now()+500,z(k+(q<0?1:-1)))},onClickCapture:l=>{Date.now()>=T.current||(T.current=0,l.preventDefault(),l.stopPropagation())},children:e("ul",{className:S?"flex w-full flex-nowrap items-center":"flex w-max flex-nowrap items-center gap-1",children:E.map((l,x)=>e("li",{hidden:S&&x!==k,className:d("shrink-0",S&&"w-full"),children:e("button",{ref:A=>{P.current[x]=A},type:"button",onClick:()=>z(x),"aria-current":x===k?"true":void 0,className:d("cursor-pointer whitespace-nowrap rounded-md px-2.5 py-2.5 text-sm @2xl/guide:py-1 @2xl/guide:text-xs transition-colors",S&&"block w-full truncate",W,x===k?"bg-surface-selected text-foreground":"text-subtle-foreground hover:bg-state-hover hover:text-foreground"),children:l.title})},l.id))})}),e(on,{direction:"next",disabled:!pe.next,onClick:()=>z(k+1)})]}),e("div",{"data-guide-display-mode":!0,role:"group","aria-label":"Preview layout",className:"flex shrink-0 items-center gap-0.5 border-l border-border-hairline pl-2",children:["mobile","desktop"].map(l=>e("button",{type:"button","aria-label":l==="mobile"?"Mobile layout":"Desktop layout",title:l==="mobile"?"Mobile layout":D?"Desktop layout is available on wider screens":"Desktop layout","aria-pressed":(F?"mobile":"desktop")===l,disabled:l==="desktop"&&D,onClick:()=>L(l),className:d("inline-flex size-10 @2xl/guide:size-8 cursor-pointer items-center justify-center rounded-md disabled:cursor-not-allowed disabled:opacity-40",W,(F?"mobile":"desktop")===l?"bg-surface-selected text-foreground":"text-muted-foreground enabled:hover:bg-state-hover"),children:e(le,{icon:l==="mobile"?It:He,className:"size-4","aria-hidden":!0})},l))})]}),e("div",{className:d("overflow-x-clip",ae.animate&&"transition-[height] duration-300 ease-out"),style:{...ae.height===null?void 0:{height:ae.height},clipPath:"inset(0 0 -24rem 0)"},children:e("div",{className:"flex transition-transform duration-300 ease-out",style:{transform:`translateX(-${k*100}%)`},children:E.map((l,x)=>e("div",{"data-map-section":l.id,ref:A=>{m.current[x]=A},inert:x!==k,style:x===k||ae.height===null?void 0:{maxHeight:ae.height,overflow:"hidden"},className:"min-w-0 w-full shrink-0 self-start px-1 pt-2",children:e(qn,{group:l,mobile:F,compactLayout:S})},l.id))})}),S?e(Qn,{children:J}):J]})})})})}async function Zn(t,a){let[i,r]=await Promise.all([t.plugins.list({signal:a}).then(s=>s.plugins.map(o=>({id:o.id,icon:o.icon,iconUrl:o.iconUrl,iconTinted:!0}))).catch(()=>[]),t.plugins.catalog.search({query:"",signal:a}).then(s=>s.results.map(o=>({id:o.pluginId,icon:o.icon,iconUrl:o.iconUrl,iconTinted:o.iconTinted}))).catch(()=>[])]);return new Map([...r,...i].map(s=>[s.id,s]))}function Jn(){let t=xt(),[a,i]=y(()=>new Map);return O(()=>{let r=new AbortController;return Zn(t,r.signal).then(s=>{r.signal.aborted||i(s)}),()=>r.abort()},[t]),a}function ea({subPath:t}){let a=Jn(),i=bt(),r=re(c=>{let u=et(c);return!u||!a.has(u)?null:`/plugins/${u}`},[a]),s=re(c=>{let u=et(c),m=u?a.get(u):void 0;return m?e(mt,{icon:m.icon,iconUrl:m.iconUrl,iconTinted:m.iconTinted,className:"inline-block size-3.5 shrink-0 text-subtle-foreground"}):null},[a]),o=re(c=>{i.toPluginPanel("plugin-api",{subPath:c,replace:!0})},[i]);return e("div",{className:"@container/guide-page flex h-full min-h-0 min-w-0 flex-1",children:e("div",{"data-guide-stage-viewport":!0,className:"h-full min-h-0 w-full flex-1 overflow-y-auto px-3 pb-6 pt-5 @min-[40rem]/guide-page:px-6 [container-type:size] [--guide-stage-gap:3cqh] @min-[64rem]/guide-page:pb-0 @min-[64rem]/guide-page:pt-4",children:e(cn,{pluginPageHref:r,renderPluginIcon:s,initialSlideId:t.split("/")[0]||void 0,onSlideChange:o,onCopyForAgent:yt})})})}var Eo=gt(t=>{t.slots.navPanel({id:"plugin-api",title:"Plugin Guide",icon:"plugin-api-docs/guide",path:"plugin-api",component:ea})});export{Eo as default,Zn as loadPluginReferences};
|