feat(devtools): migrate devtools package into monorepo (#18936)

This commit is contained in:
Sandy Tao
2026-02-18 12:04:02 -08:00
committed by GitHub
parent 858918fe31
commit 65ad78b9c0
17 changed files with 2626 additions and 22 deletions

View File

@@ -19,7 +19,6 @@ interface IDevTools {
getPort(): number;
}
const DEVTOOLS_PKG = 'gemini-cli-devtools';
const DEFAULT_DEVTOOLS_PORT = 25417;
const DEFAULT_DEVTOOLS_HOST = '127.0.0.1';
const MAX_PROMOTION_ATTEMPTS = 3;
@@ -62,7 +61,7 @@ async function startOrJoinDevTools(
defaultHost: string,
defaultPort: number,
): Promise<{ host: string; port: number }> {
const mod = await import(DEVTOOLS_PKG);
const mod = await import('@google/gemini-cli-devtools');
const devtools: IDevTools = mod.DevTools.getInstance();
const url = await devtools.start();
const actualPort = devtools.getPort();