1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Copyright (c) 2025, 2026 Julius ML
// Licensed under the MIT License. See LICENSE at the workspace root.
//! `post-cortex` — facade meta-crate.
//!
//! One dependency for the whole post-cortex stack. Re-exports the
//! workspace member crates so callers can write
//! `use post_cortex::{ConversationMemorySystem, SystemConfig};` or
//! reach the canonical service trait via `post_cortex::PostCortexService`.
//!
//! ## Picking the right crate
//!
//! Direct dependence on a single member crate is usually preferable —
//! it scopes the build to exactly what you need:
//!
//! | Goal | Crate |
//! |------|-------|
//! | Domain types, traits, error | [`post_cortex_core`] |
//! | gRPC client (no server) | [`post_cortex_proto`] |
//! | Custom storage backend | [`post_cortex_storage`] |
//! | Embedding engine + HNSW | [`post_cortex_embeddings`] |
//! | Full memory orchestrator | [`post_cortex_memory`] |
//! | MCP tool functions | [`post_cortex_mcp`] |
//! | Running daemon + `pcx` CLI | [`post_cortex_daemon`] |
//!
//! This facade is for **end-to-end consumers** (e.g. integration
//! tests, sample apps) that want the entire surface without picking.
// Core domain — types, error, graph/session/workspace/summary helpers,
// the `core::*` cross-cutting primitives, and the canonical
// `PostCortexService` trait.
pub use *;
// Storage backends (RocksDB + optional SurrealDB). Re-exported under
// `post_cortex::storage::*`.
pub use post_cortex_storage as storage;
// Embedding engines + HNSW vector database.
pub use post_cortex_embeddings as embeddings;
// Memory orchestrator: `ConversationMemorySystem`, `SystemConfig`,
// `MemoryServiceImpl`, the non-blocking write `Pipeline`.
pub use ;
/// MCP tool functions. Re-exported under `post_cortex::mcp` so
/// downstream callers writing custom MCP servers can embed them.
/// `tools::mcp::*` historical path — preserved as a convenience for
/// existing code; new callers should use [`mcp`] directly.
/// Daemon runtime (axum + tonic + rmcp + SSE). Pulled in transitively
/// by depending on this crate; reach individual pieces under
/// `post_cortex::daemon::*`. The `pcx` CLI binary is shipped by
/// `post-cortex-daemon` directly via its `[[bin]]` entry — depend on
/// that crate (not this facade) if you only want to run the daemon.
pub use daemon;
/// Re-export the proto wire types under `post_cortex::proto`.
pub use proto;