[package]
name = "agor-pty"
version = "0.1.0"
edition = "2021"
description = "Standalone PTY multiplexer daemon — manages terminal sessions via Unix socket IPC"
license = "MIT"

# Standalone — NOT part of the workspace Cargo.toml (same pattern as ui-gpui)
[workspace]

# Binary: the daemon process
[[bin]]
name = "agor-ptyd"
path = "src/main.rs"

# Library: shared types for IPC clients (Tauri, Electrobun, tests)
[lib]
name = "agor_pty"
path = "src/lib.rs"

[dependencies]
portable-pty = "0.8"
tokio = { version = "1", features = ["full"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
uuid = { version = "1", features = ["v4"] }
log = "0.4"
env_logger = "0.11"
nix = { version = "0.29", features = ["process", "signal", "ioctl", "term"] }
rand = "0.8"
hex = "0.4"

[dev-dependencies]
tokio-test = "0.4"
