Câble la récolte automatique de mémoire de bout en bout, sous contrôle explicite, du domaine jusqu'à l'UI : - domain : modèle `memory_harvest` (candidats de récolte, décision) + exports `lib.rs`. - application : use case `memory/harvest` branché dans `memory/mod`, `lib.rs`, le cycle de vie d'agent (`agent/lifecycle`) et l'orchestrateur (`orchestrator/service`). - app-tauri : wiring runtime dans `state`. - frontend : DTO `domain/index` + hook `useMemory`. Couverture : domain `memory_harvest` (14), application `memory_harvest` (5) et `orchestrator_service` (récolte, 4), plus patch test-only du mock gateway `workState` (`mock.test.ts`) et UI `memory.test`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
27 lines
1.3 KiB
Rust
27 lines
1.3 KiB
Rust
//! Memory use cases (ARCHITECTURE §14.5.1; LOT A, étage 1: `.md`).
|
|
//!
|
|
//! The memory module owns the CRUD of a project's persistent knowledge base —
|
|
//! one Markdown note per [`domain::memory::Memory`], stored under
|
|
//! `.ideai/memory/<slug>.md` with a derived `MEMORY.md` index. On top of the
|
|
//! CRUD it exposes two read-only navigation helpers driving the graphical memory
|
|
//! view: [`ReadMemoryIndex`] (the structured index) and [`ResolveMemoryLinks`]
|
|
//! (a note's resolved `[[slug]]` outgoing links, broken links dropped).
|
|
//!
|
|
//! Every use case talks only to ports ([`domain::ports::MemoryStore`],
|
|
//! [`domain::ports::EventBus`]). Mutating use cases ([`CreateMemory`],
|
|
//! [`UpdateMemory`], [`DeleteMemory`]) announce a [`domain::DomainEvent`]; the
|
|
//! read use cases emit nothing.
|
|
|
|
mod harvest;
|
|
mod usecases;
|
|
|
|
pub use harvest::{HarvestMemoryFromTurn, MemoryHarvestOutcome};
|
|
|
|
pub use usecases::{
|
|
CreateMemory, CreateMemoryInput, CreateMemoryOutput, DeleteMemory, DeleteMemoryInput,
|
|
GetMemory, GetMemoryInput, GetMemoryOutput, ListMemories, ListMemoriesInput,
|
|
ListMemoriesOutput, ReadMemoryIndex, ReadMemoryIndexInput, ReadMemoryIndexOutput, RecallMemory,
|
|
RecallMemoryInput, RecallMemoryOutput, ResolveMemoryLinks, ResolveMemoryLinksInput,
|
|
ResolveMemoryLinksOutput, UpdateMemory, UpdateMemoryInput, UpdateMemoryOutput,
|
|
};
|