mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-14 01:56:10 +00:00
fix(release): allow larger plugin publication manifests (#105800)
This commit is contained in:
@@ -37,7 +37,7 @@ const TAR_USTAR_MAGIC = Buffer.from("ustar\0", "ascii");
|
||||
const TAR_USTAR_VERSION = Buffer.from("00", "ascii");
|
||||
const MAX_ARCHIVE_BYTES = 256 * 1024 * 1024;
|
||||
const MAX_EXPANDED_BYTES = 512 * 1024 * 1024;
|
||||
const MAX_MANIFEST_BYTES = 2 * 1024 * 1024;
|
||||
const MAX_MANIFEST_BYTES = 4 * 1024 * 1024;
|
||||
const MAX_PLUGIN_MANIFEST_BYTES = 2 * 1024 * 1024;
|
||||
const MAX_TAR_ENTRIES = 10_000;
|
||||
const MAX_TAR_PATH_BYTES = 4 * 1024 * 1024;
|
||||
|
||||
@@ -1090,7 +1090,7 @@ describe("plugin publication artifact", () => {
|
||||
it("caps publication JSON and tarball members before ZIP expansion", () => {
|
||||
const fixture = createFixture();
|
||||
const manifest = readFileSync(fixture.created.manifestPath);
|
||||
const oversizedManifest = Buffer.alloc(2 * 1024 * 1024 + 1, 0x20);
|
||||
const oversizedManifest = Buffer.alloc(4 * 1024 * 1024 + 1, 0x20);
|
||||
|
||||
replaceArtifactZip(fixture, [
|
||||
{ bytes: fixture.tarball, name: TARBALL_NAME },
|
||||
|
||||
Reference in New Issue
Block a user