Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
fix(tests): relax eval-gate timeouts on Windows and align dep version pins
fuxicodex032ec2fc0394
diff --git a/Cargo.toml b/Cargo.tomlindex b2323f5b..b6cfa2b6 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -53,7 +53,7 @@ ai-memory-llm = { path = "crates/ai-memory-llm", version = "2.3.2" }ai-memory-consolidate = { path = "crates/ai-memory-consolidate", version = "2.3.2" }ai-memory-web = { path = "crates/ai-memory-web", version = "2.3.2" }ai-memory-workstream = { path = "crates/ai-memory-workstream", version = "2.3.2" }-ai-memory-test-support = { path = "crates/ai-memory-test-support", version = "2.1.1" }+ai-memory-test-support = { path = "crates/ai-memory-test-support", version = "2.3.2" }# (Workspace shared deps follow below)@@ -136,7 +136,7 @@ winapi-util = "0.1"# `aws_lc_rs`, which is exactly the C/JNI toolchain the bridge avoids by using# rmcp's `reqwest-tls-no-provider`. `ring` is already in the lockfile via reqwest 0.12.rustls = { version = "0.23", default-features = false, features = ["ring", "logging", "std", "tls12"] }-rmcp = { version = "2.1", features = ["server", "macros", "transport-io", "transport-streamable-http-server", "schemars"] }+rmcp = { version = "2.2", features = ["server", "macros", "transport-io", "transport-streamable-http-server", "schemars"] }schemars = "1"axum = "0.8"# Same `http` 1.x rmcp/axum use, so handlers can read the injecteddiff --git a/crates/ai-memory-consolidate/src/auto_improve.rs b/crates/ai-memory-consolidate/src/auto_improve.rsindex 166b824e..cbf5946d 100644--- a/crates/ai-memory-consolidate/src/auto_improve.rs+++ b/crates/ai-memory-consolidate/src/auto_improve.rs@@ -1969,7 +1969,10 @@ mod tests {AutoImproveEvalConfig {enabled: true,command,- timeout_secs: 2,+ // Windows PowerShell cold-start is slower than 2s, and these gate+ // tests run in parallel — timeouts here are for the eval command+ // itself, not for interpreter startup.+ timeout_secs: if cfg!(windows) { 8 } else { 2 },targets: default_auto_improve_eval_targets(),min_delta: 0.01,}@@ -2012,7 +2015,9 @@ mod tests {"$null = [Console]::In.ReadToEnd()\n[Console]::Out.Write('not-json')\n".into()}"#!/bin/sh\ncat >/dev/null\nsleep 3\n" => {- "$null = [Console]::In.ReadToEnd()\nStart-Sleep -Seconds 3\n".into()+ // Must exceed the Windows eval timeout (8s, see `eval_cfg`)+ // so the timeout case still times out instead of completing.+ "$null = [Console]::In.ReadToEnd()\nStart-Sleep -Seconds 12\n".into()}"#!/bin/sh\nsleep 5\n" => "Start-Sleep -Seconds 20\n".into(),"#!/bin/sh\ni=0\nwhile [ $i -lt 70000 ]; do printf x; i=$((i + 1)); done\n" => {@@ -2116,7 +2121,7 @@ mod tests {];for (command, expected_reason) in cases {let mut cfg = eval_cfg(command);- cfg.timeout_secs = 1;+ cfg.timeout_secs = if cfg!(windows) { 8 } else { 1 };let mut proposals = vec![proposal("_rules/test.md", "rule", 0.9)];let mut rejected = Vec::new();let mut warnings = Vec::new();