Download packages/cli/src/utils/events.ts from SaylorTwift/gemini-cli: direct link, hf CLI and curl.
- Browser
- Download file 976 Bytes
-
https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/cli/src/utils/events.ts
- Command line
-
hf download hf://SaylorTwift/gemini-cli/packages/cli/src/utils/events.ts
-
curl -L -o events.ts https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/cli/src/utils/events.ts
976 Bytes
| /** | |
| * @license | |
| * Copyright 2025 Google LLC | |
| * SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| import { EventEmitter } from 'node:events'; | |
| export enum TransientMessageType { | |
| Warning = 'warning', | |
| Hint = 'hint', | |
| } | |
| export interface TransientMessagePayload { | |
| message: string; | |
| type: TransientMessageType; | |
| } | |
| export enum AppEvent { | |
| OpenDebugConsole = 'open-debug-console', | |
| Flicker = 'flicker', | |
| SelectionWarning = 'selection-warning', | |
| PasteTimeout = 'paste-timeout', | |
| TerminalBackground = 'terminal-background', | |
| TransientMessage = 'transient-message', | |
| ScrollToBottom = 'scroll-to-bottom', | |
| } | |
| export interface AppEvents { | |
| [AppEvent.OpenDebugConsole]: never[]; | |
| [AppEvent.Flicker]: never[]; | |
| [AppEvent.SelectionWarning]: never[]; | |
| [AppEvent.PasteTimeout]: never[]; | |
| [AppEvent.TerminalBackground]: [string]; | |
| [AppEvent.TransientMessage]: [TransientMessagePayload]; | |
| [AppEvent.ScrollToBottom]: never[]; | |
| } | |
| export const appEvents = new EventEmitter<AppEvents>(); | |