mirror of
https://github.com/openai/codex.git
synced 2026-05-05 05:42:33 +03:00
64 lines
1.5 KiB
TOML
64 lines
1.5 KiB
TOML
[package]
|
|
name = "codex-session"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[[bin]]
|
|
name = "codex-session"
|
|
path = "src/main.rs"
|
|
|
|
[lib]
|
|
name = "codex_session"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
clap = { version = "4", features = ["derive"] }
|
|
codex-core = { path = "../core" }
|
|
tokio = { version = "1", features = [
|
|
"io-std",
|
|
"macros",
|
|
"process",
|
|
"rt-multi-thread",
|
|
"signal",
|
|
] }
|
|
tracing = { version = "0.1.41", features = ["log"] }
|
|
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
|
|
|
|
# --- additions for PTY/TUI support ---
|
|
|
|
# Raw terminal handling when attaching to TUI sessions
|
|
|
|
# PTY helpers (unix only)
|
|
|
|
# new dependencies for session management
|
|
uuid = { version = "1", features = ["v4"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1"
|
|
dirs = "5"
|
|
sysinfo = "0.29"
|
|
tabwriter = "1.3"
|
|
serde_yaml = "0.9"
|
|
names = "0.14"
|
|
|
|
# unix-only process helpers
|
|
nix = { version = "0.27", default-features = false, features = ["process", "signal", "term", "fs"] }
|
|
|
|
# Re-use the codex-exec library for its CLI definition
|
|
codex_exec = { package = "codex-exec", path = "../exec" }
|
|
codex_repl = { package = "codex-repl", path = "../repl" }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { version = "0.48", features = [
|
|
"Win32_Foundation",
|
|
"Win32_System_Console",
|
|
"Win32_System_Threading",
|
|
] }
|