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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user