diff --git a/Cargo.lock b/Cargo.lock index cdbdd05..f251ada 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2712,11 +2712,11 @@ dependencies = [ "memmap2", "paste", "peg", + "poc-agent", "ratatui 0.29.0", "rayon", "redb", "regex", - "reqwest", "rkyv", "serde", "serde_json", @@ -3289,9 +3289,7 @@ dependencies = [ "base64", "bytes", "encoding_rs", - "futures-channel", "futures-core", - "futures-util", "h2", "http", "http-body", diff --git a/poc-agent/Cargo.toml b/poc-agent/Cargo.toml index 4948350..12f6a22 100644 --- a/poc-agent/Cargo.toml +++ b/poc-agent/Cargo.toml @@ -4,6 +4,14 @@ version.workspace = true edition = "2024" description = "Substrate-independent AI agent framework" +[lib] +name = "poc_agent" +path = "src/lib.rs" + +[[bin]] +name = "poc-agent" +path = "src/main.rs" + [dependencies] reqwest = { version = "0.12", features = ["json"] } serde = { version = "1", features = ["derive"] } diff --git a/poc-agent/src/lib.rs b/poc-agent/src/lib.rs new file mode 100644 index 0000000..fab483a --- /dev/null +++ b/poc-agent/src/lib.rs @@ -0,0 +1,11 @@ +// poc-agent library — reusable components for LLM agent work +// +// The binary (main.rs) is the full interactive agent with TUI. +// This lib exposes the building blocks that other crates (poc-memory) +// can use for their own agent loops. + +pub mod api; +pub mod journal; +pub mod types; +pub mod tools; +pub mod ui_channel; diff --git a/poc-memory/Cargo.toml b/poc-memory/Cargo.toml index d382231..fa814c1 100644 --- a/poc-memory/Cargo.toml +++ b/poc-memory/Cargo.toml @@ -21,7 +21,6 @@ peg = "0.8" paste = "1" jobkit = { git = "https://evilpiepirate.org/git/jobkit.git/" } jobkit-daemon = { git = "https://evilpiepirate.org/git/jobkit-daemon.git/" } -reqwest = { version = "0.12", features = ["blocking", "json"] } poc-agent = { path = "../poc-agent" } redb = "2" log = "0.4"