codemem-core 0.6.2

Shared types, traits, and errors for the Codemem memory engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# codemem-core

Shared types, traits, and errors for the Codemem memory engine.

## Overview

This is the foundation crate with zero internal dependencies. All other Codemem crates depend on it.

## Key Exports

- **Types** (`types.rs`): `MemoryNode`, `Edge`, `Session`, `DetectedPattern`, `ScoringWeights`, `VectorConfig`, `GraphConfig`
- **Enums**: `MemoryType` (7 variants), `RelationshipType` (23 variants), `NodeKind` (12 variants), `PatternType` (5 variants)
- **Traits** (`traits.rs`): `VectorBackend`, `GraphBackend`, `StorageBackend`
- **Config** (`config.rs`): `CodememConfig`, `EmbeddingConfig`, `StorageConfig` — TOML-backed persistent configuration
- **Errors** (`error.rs`): `CodememError` with variants for storage, embedding, graph, config, lock poisoning, and more