Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
fix(hooks): apply body-size middleware to /hook/batch route
OpenGithubsc77ee32429e5
diff --git a/crates/ai-memory-hooks/src/router.rs b/crates/ai-memory-hooks/src/router.rsindex dbdc3639..4d588826 100644--- a/crates/ai-memory-hooks/src/router.rs+++ b/crates/ai-memory-hooks/src/router.rs@@ -723,7 +723,10 @@ pub fn hook_router(state: HookState) -> Router {"/hook",post(handle_hook).route_layer(from_fn(repair_hook_json)),)- .route("/hook/batch", post(handle_hook_batch))+ .route(+ "/hook/batch",+ post(handle_hook_batch).route_layer(from_fn(repair_hook_json)),+ ).route("/handoff", get(handle_handoff)).route("/recap", get(crate::recap::handle_recap)).with_state(Arc::new(state))