mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
Handle unhandled rejections more gracefully. (#4417)
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
This commit is contained in:
parent
fb751c542b
commit
21fef1620d
7 changed files with 321 additions and 214 deletions
14
packages/cli/src/utils/events.ts
Normal file
14
packages/cli/src/utils/events.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright 2025 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { EventEmitter } from 'events';
|
||||
|
||||
export enum AppEvent {
|
||||
OpenDebugConsole = 'open-debug-console',
|
||||
LogError = 'log-error',
|
||||
}
|
||||
|
||||
export const appEvents = new EventEmitter();
|
||||
Loading…
Add table
Add a link
Reference in a new issue