export type Message = { session?: string id?: string type: "input" | "output" | "commands" | "error" data: CommandResult | string | string[] } export type CommandResult = { status: "ok" | "error" output: string }