fix(cli): resolve devtools build issues and update third-party notices

This commit is contained in:
Alisa Novikova
2026-02-19 16:23:16 -08:00
parent f1c0a695f8
commit 4a599db2bf
45 changed files with 5353 additions and 2960 deletions
+17 -3
View File
@@ -230,9 +230,8 @@ export async function toggleDevToolsPanel(
}
try {
const { openBrowserSecurely, shouldLaunchBrowser } = await import(
'@google/gemini-cli-core'
);
const { openBrowserSecurely, shouldLaunchBrowser } =
await import('@google/gemini-cli-core');
const url = await startDevToolsServer(config);
if (shouldLaunchBrowser()) {
try {
@@ -257,3 +256,18 @@ export function resetForTesting() {
serverStartPromise = null;
connectedUrl = null;
}
/**
* Stops the DevTools server if it was started by this process.
*/
export async function stopDevTools() {
try {
const mod = await import('@google/gemini-cli-devtools');
const devtools: IDevTools = mod.DevTools.getInstance();
await devtools.stop();
serverStartPromise = null;
connectedUrl = null;
} catch (err) {
debugLogger.debug('Failed to stop DevTools:', err);
}
}