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
Appinlib.rsis the single-user interactive composition. This module is the port-based composition. - Both paths coexist; new run modes consume
build_oxicode(...)here.
Structs§
- Mnemopi
Embedding Bridge - Bridges oxicode-mnemopi’s synchronous
oxicode_mnemopi::EmbeddingProviderto the SDK’s asyncoxicode_sdk::ports::EmbeddingProviderport trait. Eachembed()call runs on the blocking thread pool viaspawn_blocking. - Oxicode
Paths - 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
Oxicodeengine wired with file-based port implementations. - build_
oxicode_ with_ catalog - Build an
Oxicodeengine 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.mdif 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
Nonewhen the pipeline is disabled (default). - wrap_
extracting - Wrap a memory backend with the LLM/heuristic fact extractor.