diff --git a/scripts/plugin-publication-artifact.mjs b/scripts/plugin-publication-artifact.mjs index 99f1d06e59ca..9ab8e31ec3d8 100644 --- a/scripts/plugin-publication-artifact.mjs +++ b/scripts/plugin-publication-artifact.mjs @@ -39,7 +39,8 @@ const MAX_ARCHIVE_BYTES = 256 * 1024 * 1024; const MAX_EXPANDED_BYTES = 512 * 1024 * 1024; const MAX_MANIFEST_BYTES = 4 * 1024 * 1024; const MAX_PLUGIN_MANIFEST_BYTES = 2 * 1024 * 1024; -const MAX_TAR_ENTRIES = 10_000; +// Bundled SDKs can exceed 10k files; byte, path, and expansion caps remain authoritative. +const MAX_TAR_ENTRIES = 20_000; const MAX_TAR_PATH_BYTES = 4 * 1024 * 1024; const MAX_TAR_TOTAL_FILE_BYTES = 512 * 1024 * 1024; export const CLAWHUB_PUBLICATION_TAR_LIMITS = Object.freeze({ diff --git a/test/scripts/plugin-publication-artifact.test.ts b/test/scripts/plugin-publication-artifact.test.ts index 41574d466f75..559858a9d2f8 100644 --- a/test/scripts/plugin-publication-artifact.test.ts +++ b/test/scripts/plugin-publication-artifact.test.ts @@ -1158,14 +1158,14 @@ describe("plugin publication artifact", () => { createTarball([ { path: "package/", type: "5" }, { content: metaPackageJson(markerPath), path: "package/package.json" }, - ...Array.from({ length: 10_000 }, (_, index) => ({ + ...Array.from({ length: 20_000 }, (_, index) => ({ path: `package/file-${index.toString().padStart(5, "0")}`, })), ]), ); expect(() => createPluginPublicationArtifact(publicationParams(artifactDir))).toThrow( - /exceeds the 10000 entry limit/u, + /exceeds the 20000 entry limit/u, ); });