Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
fix(install.sh): run the smoke test from beside the install directory
Vinícius DS Andrade5e27a5c3df18
diff --git a/install.sh b/install.shindex 3310f4b0..49a24ee1 100755--- a/install.sh+++ b/install.sh@@ -194,13 +194,18 @@ main() {tar --no-same-owner -xzf "$work/$asset" -C "$work/release"[ -f "$work/release/ai-memory" ] || die "$asset has no ai-memory binary"chmod 0755 "$work/release/ai-memory"- "$work/release/ai-memory" --version >/dev/null 2>&1 ||- die "the downloaded binary does not run on this machine"mkdir -p "$(dirname "$lib_dir")" "$bin_dir"staged="$lib_dir.new.$$"rm -rf "$staged"mv "$work/release" "$staged"+ # Run the binary from beside its install directory, not from the work+ # directory: a TMPDIR mounted noexec refuses to execute anything there,+ # which would reject a release that runs where it is installed.+ if ! "$staged/ai-memory" --version >/dev/null 2>&1; then+ rm -rf "$staged"+ die "the downloaded binary does not run from $(dirname "$lib_dir") on this machine"+ fiif [ -e "$lib_dir" ]; thenprevious="$lib_dir.old.$$"mv "$lib_dir" "$previous"