Expand description
Composition root for oxi-cli.
Wires concrete file-based port implementations (from oxi-fs) to
the Oxi engine. Future run modes (TUI / print / RPC) build on
top of the Oxi 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_oxi(...)here.
Structs§
- OxiPaths
- Resolved paths under the oxi 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_
oxi - Build an
Oxiengine wired with file-based port implementations. - build_
oxi_ with_ catalog - Build an
Oxiengine 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.