Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
fix(tests): update ai-jail script to handle --dry-run option and increment migration version
Testdefc9337cb73
diff --git a/crates/ai-memory-cli/tests/suite/jail_toggles_e2e.rs b/crates/ai-memory-cli/tests/suite/jail_toggles_e2e.rsindex a34f2bfa..f60220fe 100644--- a/crates/ai-memory-cli/tests/suite/jail_toggles_e2e.rs+++ b/crates/ai-memory-cli/tests/suite/jail_toggles_e2e.rs@@ -103,10 +103,16 @@ impl Fixture {fs::write(&help_file, help).unwrap();let jail_argv = root.join("ai-jail-argv.txt");let claude_ran = root.join("claude-ran.txt");+ // `--help` feeds toggle support; `--dry-run` is the usable-ai-jail+ // preflight (`usable_ai_jail_here`). Neither is a real re-exec, so+ // neither may touch `jail_argv` — tests assert its absence when the+ // wrapper stays unjailed or rejects before exec.write_script(&bin.join("ai-jail"),&format!(- "if [ \"$1\" = --help ]; then cat '{}'; exit 0; fi\nprintf '%s\\n' \"$@\" > '{}'\n",+ "if [ \"$1\" = --help ]; then cat '{}'; exit 0; fi\n\+ if [ \"$1\" = --dry-run ]; then exit 0; fi\n\+ printf '%s\\n' \"$@\" > '{}'\n",help_file.display(),jail_argv.display()),diff --git a/crates/ai-memory-store/src/api_credentials.rs b/crates/ai-memory-store/src/api_credentials.rsindex 542fd65f..ac3e16af 100644--- a/crates/ai-memory-store/src/api_credentials.rs+++ b/crates/ai-memory-store/src/api_credentials.rs@@ -411,7 +411,7 @@ mod tests {|row| row.get(0),).unwrap();- assert_eq!(version, 70, "update the pin when adding a migration");+ assert_eq!(version, 71, "update the pin when adding a migration");let cols: i64 = conn.query_row("SELECT COUNT(*) FROM pragma_table_info('users') WHERE name = 'token_hash'",