Skip to content

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

Rust

test(windows): qualify Copilot PowerShell test helpers

AkitaOnRails50debb257e17
diff --git a/crates/ai-memory-cli/src/commands/render_shared.rs b/crates/ai-memory-cli/src/commands/render_shared.rs
index d4347253..4ce04614 100644
--- a/crates/ai-memory-cli/src/commands/render_shared.rs
+++ b/crates/ai-memory-cli/src/commands/render_shared.rs
@@ -2551,7 +2551,7 @@ fn copilot_cli_windows_command_invokes_rather_than_quotes() {
fn copilot_cli_windows_command_executes_in_powershell() {
let temp = tempfile::tempdir().unwrap();
let script = temp.path().join("hook target.ps1");
- fs::write(
+ std::fs::write(
&script,
r#"$expected = '--data-dir|C:\data dir|hook|--event|pre-tool-use|--agent|copilot-cli|--server-url|http://127.0.0.1:49374'
if (($args -join '|') -ne $expected) { exit 9 }
@@ -2570,7 +2570,7 @@ if (($args -join '|') -ne $expected) { exit 9 }
None,
),
);
- let output = Command::new(ai_memory_test_support::powershell_exe())
+ let output = std::process::Command::new(ai_memory_test_support::powershell_exe())
.args([
"-NoLogo",
"-NoProfile",