import { JupyterFrontEndPlugin } from '@jupyterlab/application'; /** * Hide the "Run" and "Kernel" top-level menus while no kernel-using widget * is open in the main area. The agent-first launcher does not use kernels, * so showing those menus on a fresh workspace surfaces commands the user * cannot meaningfully invoke; remove them until a notebook or console is * opened, then restore them at their original ranks. * * Detection is duck-typed on `sessionContext`: NotebookPanel and ConsolePanel * both expose it, which avoids pulling in `@jupyterlab/notebook` and * `@jupyterlab/console` just to identify their widgets. */ declare const plugin: JupyterFrontEndPlugin; export default plugin;