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§

OxicodePaths
Resolved paths under the oxicode home directory.

Functions§

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.
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.