mockforge-intelligence 0.3.141

AI-powered behavior, response generation, and behavioral cloning for MockForge
Documentation
[package]
name = "mockforge-intelligence"
description = "AI-powered behavior, response generation, and behavioral cloning for MockForge"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
readme = "../../README.md"
keywords = ["mock", "ai", "llm", "intelligence"]
categories = ["development-tools::testing"]

[dependencies]
# Intentionally NO `mockforge-core` dep — Issue #562 broke this cycle so
# `mockforge-core` can re-export modules that live here (currently
# `pr_generation`). The only thing this crate needs from core was
# `Result`/`Error` (now sourced from `mockforge-foundation` directly) and
# `ScenarioDefinition` (the one method that produced one now lives in
# `mockforge-http::handlers::behavioral_cloning`, the only caller).
mockforge-foundation = { version = "0.3.141", path = "../mockforge-foundation", default-features = false }
# `intelligent_behavior` (#562 phase 2) needs `OpenApiSpec`, `ResponseGenerator`,
# and `OpenApiRouteRegistry`. `mockforge-openapi` is foundation-only, so this
# dep is cycle-safe — it does NOT pull `mockforge-core` back in.
mockforge-openapi = { version = "0.3.141", path = "../mockforge-openapi" }
async-trait = { workspace = true }
base64 = { workspace = true }
chrono = { workspace = true }
dirs = "5.0"
indexmap = "2.14"
once_cell = { workspace = true }
openapiv3 = { workspace = true }
rand = { workspace = true }
regex = { workspace = true }
reqwest = { workspace = true }
schemars = { version = "0.8", features = ["derive"], optional = true }
serde = { workspace = true }
serde_json = { workspace = true }
serde_yaml = { workspace = true }
sha2 = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
urlencoding = { workspace = true }
uuid = { workspace = true }

[features]
# Mirrors mockforge-core's `schema` feature so the moved `pr_generation`
# types still gate their `JsonSchema` derive the same way.
schema = ["schemars", "mockforge-foundation/schema"]
# Mirrors mockforge-core's `database` feature so ai_studio's org_controls_db
# (sqlx-backed) only compiles when the consumer opts in.
database = ["sqlx"]

[dependencies.sqlx]
version = "0.8"
features = ["runtime-tokio-rustls", "postgres", "chrono", "uuid"]
optional = true

[dev-dependencies]
mockforge-template-expansion = { version = "0.3.141", path = "../mockforge-template-expansion" }