Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

test(cli): accept native Windows hook quoting

AkitaOnRails3bb4a68e84bf
diff --git a/crates/ai-memory-cli/src/commands/render_shared.rs b/crates/ai-memory-cli/src/commands/render_shared.rs
index 5de9667a..3a5a2d0a 100644
--- a/crates/ai-memory-cli/src/commands/render_shared.rs
+++ b/crates/ai-memory-cli/src/commands/render_shared.rs
@@ -4290,10 +4290,12 @@ if (inheritOnly) {
command.contains(&format!("hook --event {event_name} --agent ibm-bob")),
"{event}: {command}"
);
- assert!(
- command.contains("--project-strategy repo-root"),
- "{command}"
- );
+ let expected_strategy = if cfg!(windows) {
+ r#"--project-strategy "repo-root""#
+ } else {
+ "--project-strategy repo-root"
+ };
+ assert!(command.contains(expected_strategy), "{command}");
assert!(!command.contains(".sh"), "{command}");
}
assert!(value["hooks"].get("SessionEnd").is_none());