Proves that spawning `claude -p` in a pseudo-terminal from Rust gets Max subscription billing (apiKeySource: "none", rateLimitType: "five_hour") instead of per-token API charges. Concurrent agents run in parallel PTY sessions with session resumption via --resume for multi-turn conversations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
959 B
TOML
31 lines
959 B
TOML
[package]
|
|
name = "story-kit-server"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
build = "build.rs"
|
|
|
|
[dependencies]
|
|
poem = { workspace = true, features = ["websocket"] }
|
|
poem-openapi = { workspace = true, features = ["swagger-ui"] }
|
|
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "sync"] }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
reqwest = { workspace = true, features = ["json", "stream"] }
|
|
futures = { workspace = true }
|
|
uuid = { workspace = true, features = ["v4", "serde"] }
|
|
chrono = { workspace = true, features = ["serde"] }
|
|
async-trait = { workspace = true }
|
|
ignore = { workspace = true }
|
|
walkdir = { workspace = true }
|
|
eventsource-stream = { workspace = true }
|
|
rust-embed = { workspace = true }
|
|
mime_guess = { workspace = true }
|
|
homedir = { workspace = true }
|
|
serde_yaml = "0.9"
|
|
portable-pty = { workspace = true }
|
|
strip-ansi-escapes = { workspace = true }
|
|
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|