Extensions MCP refactor (#12413)

This commit is contained in:
Jacob MacDonald
2025-11-04 07:51:18 -08:00
committed by GitHub
parent 2b77c1ded4
commit da4fa5ad75
28 changed files with 877 additions and 478 deletions

View File

@@ -4,6 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
import type { ExtensionEvents, McpClient } from '@google/gemini-cli-core';
import { EventEmitter } from 'node:events';
export enum AppEvent {
@@ -11,6 +12,15 @@ export enum AppEvent {
LogError = 'log-error',
OauthDisplayMessage = 'oauth-display-message',
Flicker = 'flicker',
McpClientUpdate = 'mcp-client-update',
}
export const appEvents = new EventEmitter();
export interface AppEvents extends ExtensionEvents {
[AppEvent.OpenDebugConsole]: never[];
[AppEvent.LogError]: string[];
[AppEvent.OauthDisplayMessage]: string[];
[AppEvent.Flicker]: never[];
[AppEvent.McpClientUpdate]: Array<Map<string, McpClient> | never>;
}
export const appEvents = new EventEmitter<AppEvents>();