ferrik-core 0.0.3

Core runtime, triple-response engine, AI discovery, and testing framework for Ferrik
Documentation
//! Core runtime for the Ferrik web framework.
//!
//! Provides the triple-response engine (`ActionResponse<T>`), AI discovery protocol,
//! multi-database SeaORM helpers, unified error handling, and the `testing` harness.

pub mod auth;
pub mod config;
pub mod db;
pub mod discovery;
pub mod error;
pub mod extract;
pub mod mcp;
pub mod response;
pub mod testing;

/// Framework version string.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

/// Re-exports of commonly used crates and Ferrik primitives.
pub mod prelude {
    pub use crate::auth::{
        generate_agent_key, hash_agent_key, parse_scopes, AgentKeyStore, AgentPrincipal, AuthActor,
        HasAgentKeyStore, OAuthTokenRequest, OAuthTokenResponse, UserSession, AGENT_KEY_PREFIX,
    };
    pub use crate::config::{AppConfig, DatabaseConfig};
    pub use crate::db;
    pub use crate::discovery::{
        discovery_link_header, discovery_router, AgentEndpoint, AgentManifest,
    };
    pub use crate::error::{AppError, FormattedError};
    pub use crate::extract::{
        deserialize_bool_from_anything, validation_errors_to_vec, ActionInput,
    };
    pub use crate::mcp::{mcp_router, McpServer};
    pub use crate::response::{ActionAffordance, ActionResponse, Format, ResponseFormat};
    pub use askama::Template;
    pub use async_trait::async_trait;
    pub use axum::http::StatusCode;
    pub use axum::response::IntoResponse;
    pub use axum::routing::{delete, get, post, put};
    pub use axum::Router;
    pub use schemars::JsonSchema;
    pub use serde::{Deserialize, Serialize};
    pub use validator::Validate;
}

pub use askama;
pub use async_trait;
pub use axum;
pub use chrono;
pub use rust_decimal;
pub use schemars;
pub use sea_orm;
pub use serde;
pub use serde_json;
pub use tokio;
pub use tower;
pub use tower_http;
pub use tracing;
pub use tracing_subscriber;
pub use validator;