fix: wire terminal events through V2 listener [LET-7999] (#1430)
Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
@@ -357,11 +357,40 @@ export interface SyncCommand {
|
||||
runtime: RuntimeScope;
|
||||
}
|
||||
|
||||
export interface TerminalSpawnCommand {
|
||||
type: "terminal_spawn";
|
||||
terminal_id: string;
|
||||
cols: number;
|
||||
rows: number;
|
||||
}
|
||||
|
||||
export interface TerminalInputCommand {
|
||||
type: "terminal_input";
|
||||
terminal_id: string;
|
||||
data: string;
|
||||
}
|
||||
|
||||
export interface TerminalResizeCommand {
|
||||
type: "terminal_resize";
|
||||
terminal_id: string;
|
||||
cols: number;
|
||||
rows: number;
|
||||
}
|
||||
|
||||
export interface TerminalKillCommand {
|
||||
type: "terminal_kill";
|
||||
terminal_id: string;
|
||||
}
|
||||
|
||||
export type WsProtocolCommand =
|
||||
| InputCommand
|
||||
| ChangeDeviceStateCommand
|
||||
| AbortMessageCommand
|
||||
| SyncCommand;
|
||||
| SyncCommand
|
||||
| TerminalSpawnCommand
|
||||
| TerminalInputCommand
|
||||
| TerminalResizeCommand
|
||||
| TerminalKillCommand;
|
||||
|
||||
export type WsProtocolMessage =
|
||||
| DeviceStatusUpdateMessage
|
||||
|
||||
Reference in New Issue
Block a user