feat(attachments): fondation pipeline durable d'attachments agent/chat + sandbox-safe (#154, QA verte)

Socle #154 : entité attachment, store, contrat DTO et routage session. Modules : domain/chat_attachment, application/chat_attachments, infrastructure/chat_attachments, app-tauri (commands/lib), backend dto.
This commit is contained in:
2026-08-06 10:44:15 +02:00
parent fb19ee48dc
commit 1c80d08f92
16 changed files with 1210 additions and 158 deletions

View File

@ -6,8 +6,9 @@
//! with one error shape when building its `ErrorDTO`.
use domain::ports::{
AgentSessionError, EmbedderError, FsError, GitError, MemoryError, ModelServerError,
ProcessError, PtyError, RemoteError, RuntimeError, SecretStoreError, StoreError,
AgentSessionError, ChatAttachmentStoreError, EmbedderError, FsError, GitError, MemoryError,
ModelServerError, ProcessError, PtyError, RemoteError, RuntimeError, SecretStoreError,
StoreError,
};
use domain::{AgentId, NodeId};
use domain::{IssueStoreError, SprintStoreError};
@ -168,6 +169,16 @@ impl From<SprintStoreError> for AppError {
}
}
impl From<ChatAttachmentStoreError> for AppError {
fn from(e: ChatAttachmentStoreError) -> Self {
match e {
ChatAttachmentStoreError::NotFound => Self::NotFound("chat attachment".to_owned()),
ChatAttachmentStoreError::Invalid(message) => Self::Invalid(message),
ChatAttachmentStoreError::Store(message) => Self::Store(message),
}
}
}
impl From<MemoryError> for AppError {
fn from(e: MemoryError) -> Self {
match e {