From 486913ed00675ea1c394183993403f3eda7f4f05 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 9 Oct 2026 04:23:14 +0000 Subject: [PATCH 1/2] build(deps): bump @zip.js/zip.js from 2.7.62 to 2.23.0 Bumps [@zip.js/zip.js](https://github.com/gildas-lormeau/zip.js) from 2.7.62 to 2.23.0. - [Release notes](https://github.com/gildas-lormeau/zip.js/releases) - [Commits](https://github.com/gildas-lormeau/zip.js/compare/v2.7.62...v2.23.0) --- updated-dependencies: - dependency-name: "@zip.js/zip.js" dependency-version: 2.23.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- backend/cli/package.json | 2 +- bun.lock | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/cli/package.json b/backend/cli/package.json index 6e6b51bfe..6c0a52b8e 100644 --- a/backend/cli/package.json +++ b/backend/cli/package.json @@ -72,7 +72,7 @@ "@synsci/plugin": "workspace:*", "@synsci/sdk": "workspace:*", "@synsci/util": "workspace:*", - "@zip.js/zip.js": "2.7.62", + "@zip.js/zip.js": "2.23.0", "ai": "catalog:", "bun-pty": "0.4.10", "decimal.js": "10.5.0", diff --git a/bun.lock b/bun.lock index 35a703add..fea4ab13c 100644 --- a/bun.lock +++ b/bun.lock @@ -53,7 +53,7 @@ "@synsci/plugin": "workspace:*", "@synsci/sdk": "workspace:*", "@synsci/util": "workspace:*", - "@zip.js/zip.js": "2.7.62", + "@zip.js/zip.js": "2.23.0", "ai": "catalog:", "bun-pty": "0.4.10", "decimal.js": "10.5.0", @@ -1054,7 +1054,7 @@ "@xmldom/xmldom": ["@xmldom/xmldom@0.8.15", "", {}, "sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA=="], - "@zip.js/zip.js": ["@zip.js/zip.js@2.7.62", "", {}, "sha512-OaLvZ8j4gCkLn048ypkZu29KX30r8/OfFF2w4Jo5WXFr+J04J+lzJ5TKZBVgFXhlvSkqNFQdfnY1Q8TMTCyBVA=="], + "@zip.js/zip.js": ["@zip.js/zip.js@2.23.0", "", {}, "sha512-K5obAqfrO7zhycnCupM9aaoZ9kx0SA0kv7+Z2oOUsdpWquv4s/Z4zyD7AdTqxrK3pgPM+ozaUi8kdRQbCWaIrQ=="], "abbrev": ["abbrev@4.0.0", "", {}, "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA=="], From ff33ea3fae9c80a33bf9fffdc2c344c7aa45e981 Mon Sep 17 00:00:00 2001 From: Aayam Bansal Date: Fri, 9 Oct 2026 15:22:01 +0800 Subject: [PATCH 2/2] fix(bionemo): narrow zip entries to files for zip.js 2.23 --- backend/cli/src/science/bionemo/download.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/backend/cli/src/science/bionemo/download.ts b/backend/cli/src/science/bionemo/download.ts index 5a8bce166..27519953c 100644 --- a/backend/cli/src/science/bionemo/download.ts +++ b/backend/cli/src/science/bionemo/download.ts @@ -1,4 +1,4 @@ -import { Uint8ArrayReader, ZipReader, type Entry } from "@zip.js/zip.js" +import { Uint8ArrayReader, ZipReader, type Entry, type FileEntry } from "@zip.js/zip.js" import { Network } from "@/settings/network" const LIMIT = 25 * 1024 * 1024 @@ -99,12 +99,10 @@ export async function decodeBioNemoResult(bytes: Uint8Array, limit = LIMIT) { throw new Error(`NVIDIA result ZIP exceeds the ${limit}-byte capture limit`) entries.push(entry) } - const payloads = entries.filter((entry) => !entry.directory && entry.filename.endsWith(".response")) - const candidates = payloads.length - ? payloads - : entries.filter((entry) => !entry.directory && entry.filename.endsWith(".json")) - if (candidates.length !== 1 || !candidates[0].getData) - throw new Error("NVIDIA result ZIP must contain one JSON response payload") + const files = entries.filter((entry): entry is FileEntry => !entry.directory) + const payloads = files.filter((entry) => entry.filename.endsWith(".response")) + const candidates = payloads.length ? payloads : files.filter((entry) => entry.filename.endsWith(".json")) + if (candidates.length !== 1) throw new Error("NVIDIA result ZIP must contain one JSON response payload") const chunks: Uint8Array[] = [] let size = 0 await candidates[0].getData(