Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
test(kimi-code): join expected script path with host separator in command test
Lucas Oliveira109343847b70
diff --git a/crates/ai-memory-cli/src/commands/render_shared.rs b/crates/ai-memory-cli/src/commands/render_shared.rsindex 1203c3ee..2029273d 100644--- a/crates/ai-memory-cli/src/commands/render_shared.rs+++ b/crates/ai-memory-cli/src/commands/render_shared.rs@@ -1844,8 +1844,9 @@ mod tests {for (event, script) in KIMI_CODE_EVENTS {assert!(events.contains(&event), "missing Kimi Code event {event}");let (_, cmd) = commands.iter().find(|(e, _)| *e == event).unwrap();+ let expected = root.join(script);assert!(- cmd.contains(&format!("/host/hooks/kimi-code/{script}")),+ cmd.contains(expected.to_string_lossy().as_ref()),"{event}: command must point at the staged script: {cmd}");}