Merge branch 't3/claude-chat-panel'
# Conflicts: # .agents/mind/gotchas.md # packages/core/src/protocol.ts
This commit is contained in:
@@ -146,3 +146,22 @@ export interface MoveNotebookRequest { path: string; baseVersion: string }
|
||||
export interface DeleteNotebookRequest { baseVersion: string }
|
||||
export interface NotebookMutationResponse { path: string; version: string }
|
||||
export interface DeleteNotebookResponse { deleted: boolean }
|
||||
|
||||
// Chat: JSON WebSocket frames on /api/chat (separate from run events).
|
||||
export interface ChatConversation {
|
||||
id: string;
|
||||
title: string;
|
||||
sessionId?: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
export type ChatClientMessage =
|
||||
| { type: "send"; conversationId?: string; message: string; notebookPath?: string; allowShell: boolean }
|
||||
| { type: "cancel" };
|
||||
export type ChatEvent =
|
||||
| { type: "history"; conversations: ChatConversation[] }
|
||||
| { type: "conversation"; conversation: ChatConversation }
|
||||
| { type: "delta"; text: string }
|
||||
| { type: "tool"; name: string; path?: string }
|
||||
| { type: "finished"; cancelled?: boolean; costUsd?: number; durationMs?: number }
|
||||
| { type: "error"; code: "login" | "missing" | "cli" | "busy" | "invalid" | "limit" | "timeout"; message: string };
|
||||
|
||||
Reference in New Issue
Block a user