| //! Selects a coherent memory pipeline and its generated-artifact namespace. | |
| use schemars::JsonSchema; | |
| use serde::Deserialize; | |
| use serde::Serialize; | |
| pub enum MemoryVersion { | |
| V1, | |
| V2, | |
| } | |
| impl MemoryVersion { | |
| /// Sibling roots keep v1 cleanup and rollback independent of v2 artifacts. | |
| pub fn directory_name(self) -> &'static str { | |
| match self { | |
| Self::V1 => "memories", | |
| Self::V2 => "memories_v2", | |
| } | |
| } | |
| } | |