[package]
name = "sage-core"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
description = "Core library for Sage Agent"
keywords.workspace = true
categories.workspace = true

[dependencies]
# Async runtime
tokio = { workspace = true }
tokio-util = { workspace = true }
tokio-stream = { version = "0.1", features = ["io-util"] }
futures = { workspace = true }

# HTTP client
reqwest = { workspace = true }

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

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

# Logging
tracing = { workspace = true }

# CLI and formatting
colored = { workspace = true }

# Random number generation (for retry jitter)
rand = "0.9.3"

# Utilities
uuid = { workspace = true }
chrono = { workspace = true }
dirs = { workspace = true }
shellexpand = { workspace = true }
flate2 = "1.0"
dashmap = "6.0"
once_cell = { workspace = true }
shell-words = "1.1"
glob = "0.3"
parking_lot = { workspace = true }

# File system watching
notify = { workspace = true }
notify-debouncer-mini = { workspace = true }

# Async traits
async-trait = { workspace = true }

# Configuration
config = { workspace = true }

# Sandbox
regex = { workspace = true }
humantime-serde = { workspace = true }
sha2 = "0.10.9"

# Platform-specific temporary files (for macOS sandbox profiles)
tempfile = "3.10"

[target.'cfg(unix)'.dependencies]
libc = { workspace = true }
nix = { workspace = true }

[dev-dependencies]
mockall = { workspace = true }
tokio-test = "0.4"
tracing-subscriber = { workspace = true }
serial_test = "3"
wiremock = "0.6"

# Note: Examples are defined in the root workspace package to avoid filename collisions
