feat(cli): références d'attachments [file n]/[image n] dans le transcript + zone chat redimensionnable — #188 (QA verte)

- Attachments: projection canonique ChatPromptAttachmentDto (référence [file n]/[image n] par compteur de type, ordre d'import) insérée dans le prompt modèle et transportée par ReplyChunk::UserPrompt (attachmentRefs) ; rendu compact côté CustomAgentChatView.
- Resize: la zone chat (LeafView/LayoutGrid) est redimensionnable, taille actuelle conservée par défaut, préférence locale persistée.
- Tests: commands (projection des refs), dto_chat, chat_bridge, CustomAgentChatView, LayoutGrid.chat.
This commit is contained in:
2026-08-13 13:01:03 +02:00
parent 8b8468dacd
commit 4f38e1c506
10 changed files with 513 additions and 42 deletions

View File

@ -1691,8 +1691,21 @@ export interface ReplyProgress {
toolName?: string;
}
export interface ChatPromptAttachment {
reference: string;
filename: string;
mime?: string;
sizeBytes?: number;
readablePath?: string;
}
export type ReplyChunk =
| { kind: "userPrompt"; text: string; attachments?: string[] }
| {
kind: "userPrompt";
text: string;
attachments?: string[];
attachmentRefs?: ChatPromptAttachment[];
}
| { kind: "textDelta"; text: string }
| { kind: "toolActivity"; label: string }
| { kind: "progress"; progress: ReplyProgress }