fix: wire terminal events through V2 listener [LET-7999] (#1430)

Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
Shubham Naik
2026-03-18 12:03:43 -07:00
committed by GitHub
parent 16d060a7fa
commit 87eff23b81
3 changed files with 117 additions and 3 deletions

View File

@@ -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