Skip to content

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

Rust

fix(release): write the Windows zip checksum with a LF terminator

rafaelkenedy1b37dfdff186
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 33b13882..f55278be 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -241,7 +241,12 @@ jobs:
# etc. land at the zip root, mirroring the Linux tarball layout.
Get-ChildItem $stage | Compress-Archive -DestinationPath $zip
$hash = (Get-FileHash $zip -Algorithm SHA256).Hash.ToLower()
- "$hash $zip" | Out-File -Encoding ascii "$zip.sha256"
+ # -NoNewline plus an explicit `n, because Out-File's own line
+ # terminator is CRLF on Windows. `sha256sum -c` treats the CR as part
+ # of the filename and fails with "No such file or directory", and the
+ # release body concatenates every platform's file into one block, so
+ # the stray byte shows up there too.
+ "$hash $zip`n" | Out-File -Encoding ascii -NoNewline "$zip.sha256"
- name: Smoke test release zip
shell: pwsh
@@ -264,7 +269,7 @@ jobs:
}
}
$checksum = Get-Content "$zip.sha256" -Raw
- if ($checksum -notmatch '^[0-9a-f]{64} ai-memory-windows-x86_64\.zip\r?\n?$') {
+ if ($checksum -cnotmatch '^[0-9a-f]{64} ai-memory-windows-x86_64\.zip\n$') {
throw "Windows release zip checksum is not sha256sum format"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9c59817a..589a62fe 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -25,6 +25,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
model ids, and which model goes through the Responses endpoint (#763).
### Fixed
+- The Windows release checksum (`ai-memory-windows-x86_64.zip.sha256`) is now
+ written with a LF terminator instead of CRLF. `Out-File`'s Windows line
+ ending made `sha256sum -c` fail with `No such file or directory` — the CR
+ is read as part of the filename — on the WSL2 and Git Bash paths where that
+ is the natural command, and placed a stray byte in the release body's
+ checksum block, which concatenates every platform's file. The zip's smoke
+ test now requires LF rather than tolerating either, so the format the
+ release claims is the format it ships.
- The Windows Docker wrapper (`bin/ai-memory.ps1`) now forwards the same
provider credentials and host-config env vars as the POSIX wrapper into the
helper container. A host-exported `GEMINI_API_KEY` / `GOOGLE_API_KEY`,