Skip to main content

Module store

Module store 

Source
Expand description

oxicode-cli’s self-contained domain types and adapters.

Previously lived in a separate oxicode-store crate. After the port-based refactor, all of oxicode-cli’s storage-adjacent code lives here in a single module. The oxicode-sdk port traits (oxicode_sdk::ports::*) are the persistence contract; this module holds concrete types and file-based adapters.

§Removed during legacy cleanup

  • auth_guidance, settings_validation, session_navigation, model_resolver, model_registry — absorbed from the old oxicode-store crate with zero importers.
  • memory_mnemopi, memory_sqlite, memory_summary, memory_workers, mnemopi, extracting_backend — the pre-Foundation local durable memory stack. Under the Oxi Foundation v1 host the oxibrain daemon is the only durable-memory authority (Foundation plan §5); the legacy stores kept compiling through the migration window and were removed with the oxicode-mnemopi crate. oxicode migrate brain reads the legacy JSONL directly (foundation::migrate) and needs none of them.

Modules§

access_compat
Permission compatibility — partial port of grok-build xai-grok-workspace/src/permission/ (Apache-2.0).
auth_storage
Authentication storage for API keys, OAuth tokens, and session tokens.
fs_util
Atomic write helpers shared across store/*.
hook_approval
First-run approval gate for project-scoped [[hooks]].
router_config
Router configuration loading for oxicode-store.
session
Session management for the coding agent.
session_cwd
Session working directory tracking and validation.
settings
Settings management for oxicode CLI
todo_state
Session-scoped todo state.