Skip to main content

Module space

Module space 

Source
Expand description

Space: logical work partition for context isolation.

A Space provides isolated memory and workspace for different contexts (projects, topics, domains). The OS automatically routes user messages to the appropriate Space based on filesystem paths, keywords, or LLM-based topic detection.

Re-exports§

pub use conversation_buffer::ConversationBuffer;
pub use conversation_buffer::ConversationTurn;
pub use detection::extract_filesystem_path;
pub use detection::match_keywords;
pub use detection::PathMatcher;
pub use manager::SpaceManager;
pub use manager::SpaceManagerError;
pub use space_bridge::CrossRefEntry;
pub use space_bridge::MemoryFlow;
pub use space_bridge::SpaceBridge;

Modules§

conversation_buffer
ConversationBuffer: in-memory circular buffer of recent conversation turns.
detection
Detection: 3-layer Space detection strategy.
manager
SpaceManager: manages Space lifecycle and routing.
space_bridge
SpaceBridge: manages memory flow between Spaces.

Structs§

Space
A logical work partition.

Enums§

SpaceSource
How a Space was created.

Statics§

DEFAULT_SPACE_ID

Functions§

default_space_id
Get the default Space ID.

Type Aliases§

SpaceId
Unique identifier for a Space.