pub mod config;
pub mod credential;
pub mod db;
pub mod error;
pub mod event_bus;
pub mod identity;
pub mod logging;
pub mod memory;
pub mod notification;
pub mod onboarding;
pub mod plugins;
pub mod runtimes;
pub mod security;
pub mod skills;
pub mod tools;
pub mod user;
pub mod wiki;

#[cfg(feature = "ai")]
extern crate rig_core as rig;
#[cfg(feature = "ai")]
pub mod ai;
pub mod boot;
#[cfg(feature = "channels")]
pub mod channels;
#[cfg(feature = "gateway")]
pub mod gateway;
#[cfg(any(feature = "mcp-server", feature = "mcp-client"))]
pub mod mcp;
#[cfg(feature = "scheduler")]
pub mod scheduler;
#[cfg(feature = "workflows")]
pub mod workflows;

pub use error::ZeniiError;

pub type Result<T> = std::result::Result<T, ZeniiError>;
