feat(web): parité layout AppImage desktop + switch TUI naïf/CLI custom — #208

This commit is contained in:
2026-08-15 09:08:42 +02:00
parent 780f91a211
commit 7cdb97ae89
7 changed files with 914 additions and 661 deletions

View File

@ -14,6 +14,8 @@
* survives JSON.
*/
import type { ReplyChunk } from "@/domain";
// ---------------------------------------------------------------------------
// Base64 helpers (binary PTY bytes over JSON frames)
// ---------------------------------------------------------------------------
@ -137,5 +139,18 @@ export interface StatusPayload {
/** Payload of a `chat.output` frame (structured assistant stream). */
export interface ChatOutputPayload {
sessionId: string;
chunk: unknown; // ReplyChunk-shaped (kind-tagged); normalized by the caller.
chunk: ReplyChunk;
}
/** Payload of a `chat.attached` acknowledgement. */
export interface ChatAttachedPayload {
sessionId?: string;
session?: {
sessionId: string;
projectId?: string;
nodeId?: string | null;
};
cellKind?: "chat" | "pty";
assignedConversationId?: string;
scrollback?: ReplyChunk[];
}