[package]
name = "meerkat-session"
description = "Session service orchestration for Meerkat"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
keywords.workspace = true
categories.workspace = true

[dependencies]
meerkat-capabilities = { workspace = true }
meerkat-core = { workspace = true }
meerkat-models = { workspace = true }
meerkat-contracts = { workspace = true }
async-trait = { workspace = true }
indexmap = "2"
tracing = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
thiserror = { workspace = true }
futures = { workspace = true }
sha2 = { workspace = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { workspace = true }
meerkat-skills = { workspace = true }
inventory = { workspace = true }

# Optional dependencies (gated by features, not available on wasm32)
meerkat-store = { workspace = true, optional = true }
meerkat-runtime = { workspace = true, optional = true }

[target.'cfg(target_arch = "wasm32")'.dependencies]
tokio_with_wasm = { workspace = true }

[dev-dependencies]
tempfile = { workspace = true }
tokio = { workspace = true, features = ["test-util", "macros"] }
meerkat-core = { workspace = true }
meerkat-store = { workspace = true, features = ["memory"] }
meerkat-runtime = { workspace = true }

[features]
default = []
session-store = ["dep:meerkat-store", "dep:meerkat-runtime"]
session-compaction = []

[lints]
workspace = true
