Skip to main content

Module core

Module core 

Source

Re-exports§

pub use data_source::DataSource;
pub use identity::ActorIdentity;

Modules§

config
Config loading: workspace .kaizen/config.toml then ~/.kaizen/config.toml. Missing files → defaults. User config wins on overlap.
cost
Model cost estimation from bundled price table. All values in cost_usd_e6 (1 USD = 1_000_000 units).
data_source
Whether read-side commands use local SQLite, provider cache, or a merged view.
event
Core event + session-record types. Pure data, no IO.
identity
Optional cleartext identity fields for session/event payloads (redaction by default; allowlisted in config).
machine_registry
Machine-local SQLite registry ($KAIZEN_HOME/machine.db) — known workspace roots, init history.
migrate_home
One-shot, idempotent migration: <workspace>/.kaizen/~/.kaizen/projects/<slug>/.
paths
Shared path helpers (used by workspace and machine_registry to avoid import cycles).
repo
Git-bound repo facts. Shell out only at boundary.
session
Session lifecycle state machine — pure core, no IO.
workspace
Workspace path canonicalization + machine-local registry.