refactor(core): consolidate pty service (#30537)

This commit is contained in:
Shoubhit Dash 2026-06-03 15:17:46 +05:30 committed by GitHub
commit 932fb6c9ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 504 additions and 576 deletions

View file

@ -0,0 +1,25 @@
export type Disp = {
dispose(): void
}
export type Exit = {
exitCode: number
signal?: number | string
}
export type Opts = {
name: string
cols?: number
rows?: number
cwd?: string
env?: Record<string, string>
}
export type Proc = {
pid: number
onData(listener: (data: string) => void): Disp
onExit(listener: (event: Exit) => void): Disp
write(data: string): void
resize(cols: number, rows: number): void
kill(signal?: string): void
}