[package]
name = "agtop"
version = "2.4.17"
edition = "2021"
rust-version = "1.74"
description = "Terminal UI for monitoring AI coding agents (Claude Code, Codex, Aider, Cursor, Gemini, Goose, ...) — like top, but for agents."
authors = ["Matt Brassey <matt@brassey.io>"]
license = "MIT"
homepage = "https://github.com/mbrassey/agtop"
repository = "https://github.com/mbrassey/agtop"
readme = "README.md"
keywords = ["agent", "ai", "monitor", "tui", "top"]
categories = ["command-line-utilities"]

[dependencies]
ratatui    = "0.30"
crossterm  = "0.29"
clap       = { version = "4.5", features = ["derive"] }
serde      = { version = "1", features = ["derive"] }
serde_json = "1"
regex      = "1.10"
anyhow     = "1"
dirs       = "6"
chrono     = { version = "0.4", default-features = false, features = ["clock"] }
toml       = { version = "1", default-features = false, features = ["parse", "serde"] }
sysinfo    = { version = "0.38", default-features = false, features = ["system"] }

[target.'cfg(unix)'.dependencies]
libc       = "0.2"

# Windows: enumerate the system handle table to find file handles
# opened with write access by the target PID.  windows-sys is
# Microsoft-maintained and tree-shakes per-feature, so binary size
# stays small.
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.59", features = [
    "Win32_Foundation",
    "Win32_Storage_FileSystem",
    "Win32_System_Threading",
    "Win32_System_WindowsProgramming",
    "Win32_NetworkManagement_IpHelper",
    "Win32_Networking_WinSock",
    "Wdk_System_SystemInformation",
    "Wdk_Foundation",
] }

[dev-dependencies]
tempfile   = "3"

[profile.release]
lto = "thin"
codegen-units = 1
strip = true
opt-level = 3

[[bin]]
name = "agtop"
path = "src/main.rs"
