Skip to main content

Module services

Module services 

Source
Expand description

Composition root for oxicode-cli.

Wires concrete file-based port implementations (from oxicode-fs) to the Oxicode engine. Future run modes (TUI / print / RPC) build on top of the Oxicode produced here.

Migration note:

  • Legacy App in lib.rs is the single-user interactive composition. This module is the port-based composition.
  • Both paths coexist; new run modes consume build_oxicode(...) here.

Structs§

MnemopiEmbeddingBridge
Bridges oxicode-mnemopi’s synchronous oxicode_mnemopi::EmbeddingProvider to the SDK’s async oxicode_sdk::ports::EmbeddingProvider port trait. Each embed() call runs on the blocking thread pool via spawn_blocking.
OxicodePaths
Resolved paths under the oxicode home directory.

Functions§

build_embedding_provider
Build the embedding provider configured by the user.
build_memory_recall
Build a project-memory recall block for injection into the system prompt. Returns an empty string when no memories exist.
build_oxicode
Build an Oxicode engine wired with file-based port implementations.
build_oxicode_with_catalog
Build an Oxicode engine with a custom catalog config. Useful for tests (e.g. pointing the catalog at a tempdir).
create_memory_backend
Create a memory backend if memory is enabled in settings.
read_path_block
Build the autonomous-memory read-path block (omp read-path.md) by reading <memory-root>/memory_summary.md if it exists.
session_reflect
Store a session summary into the memory backend.
spawn_catalog_event_logger
Spawn a background task that drains the catalog event channel and logs at info level.
start_memory_pipeline
Open (or create) the autonomous-memory pipeline DB and spawn the background Phase-1 / Phase-2 workers. Returns None when the pipeline is disabled (default).
wrap_extracting
Wrap a memory backend with the LLM/heuristic fact extractor.