add tokio-console for async task debugging
console-subscriber on unix socket at ~/.consciousness/agent-sessions/console.sock. Connect with: tokio-console ~/.consciousness/agent-sessions/console.sock Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
35f231233f
commit
0148dbaa06
2 changed files with 9 additions and 1 deletions
|
|
@ -37,7 +37,8 @@ rayon = "1"
|
||||||
peg = "0.8"
|
peg = "0.8"
|
||||||
paste = "1"
|
paste = "1"
|
||||||
jobkit = { path = "/home/kent/jobkit", features = ["daemon", "console"] }
|
jobkit = { path = "/home/kent/jobkit", features = ["daemon", "console"] }
|
||||||
tokio = { version = "1", features = ["full"] }
|
tokio = { version = "1", features = ["full", "tracing"] }
|
||||||
|
console-subscriber = "0.4"
|
||||||
reqwest = { version = "0.12", features = ["json"] }
|
reqwest = { version = "0.12", features = ["json"] }
|
||||||
walkdir = "2"
|
walkdir = "2"
|
||||||
glob = "0.3"
|
glob = "0.3"
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,13 @@ fn compaction_threshold(app: &AppConfig) -> u32 {
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
|
let console_sock = dirs::home_dir()
|
||||||
|
.unwrap_or_default()
|
||||||
|
.join(".consciousness/agent-sessions/console.sock");
|
||||||
|
let _ = std::fs::remove_file(&console_sock);
|
||||||
|
console_subscriber::ConsoleLayer::builder()
|
||||||
|
.server_addr(console_sock.as_path())
|
||||||
|
.init();
|
||||||
let cli = cli::CliArgs::parse();
|
let cli = cli::CliArgs::parse();
|
||||||
|
|
||||||
// Subcommands that don't launch the TUI
|
// Subcommands that don't launch the TUI
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue