[package]
authors.workspace = true
categories.workspace = true
description = "Core library for type-safe AI agent execution with MDX → Nickel → MD pipeline"
edition.workspace = true
keywords.workspace = true
license.workspace = true
name = "typedialog-ag-core"
repository.workspace = true
rust-version.workspace = true
version.workspace = true

[dependencies]
# Async
async-trait = { workspace = true }
futures = { workspace = true }
tokio = { workspace = true }

# Nickel
nickel-lang-core = { workspace = true }

# Templates
tera = { workspace = true }

# Serialization
serde = { workspace = true }
serde_json = { workspace = true }
serde_yaml = { workspace = true }
toml = { workspace = true }

# HTTP Client
reqwest = { workspace = true }

# Glob & Files
globset = { workspace = true }
ignore = { workspace = true }

# Cache
bincode = { workspace = true }
hex = { workspace = true }
lru = { workspace = true }
sha2 = { workspace = true }

# Parsing
nom = { workspace = true }

# Error handling
anyhow = { workspace = true }
thiserror = { workspace = true }

# Logging
tracing = { workspace = true }

# Utilities
chrono = { workspace = true }
dirs = { workspace = true }
uuid = { workspace = true }

[dev-dependencies]
criterion.workspace = true
proptest.workspace = true

[features]
cache = []                              # Cache layer
default = ["markup", "nickel", "cache"]
markdown = []                           # Legacy .agent.md support
markup = []                             # MDX parsing + transpiler
nickel = []                             # Nickel evaluation

[lib]
name = "typedialog_ag_core"
path = "src/lib.rs"
