fix(sdk): tighten surface report budgets

This commit is contained in:
Vincent Koc
2026-06-22 01:04:48 +02:00
parent 1425bb3a03
commit 77b6ca9a9b
2 changed files with 4 additions and 4 deletions

View File

@@ -163,8 +163,8 @@ let publicDeprecatedExportsByEntrypointBudget;
try {
budgets = {
publicEntrypoints: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_ENTRYPOINTS", 321),
publicExports: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_EXPORTS", 10340),
publicFunctionExports: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_FUNCTION_EXPORTS", 5188),
publicExports: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_EXPORTS", 10311),
publicFunctionExports: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_FUNCTION_EXPORTS", 5174),
publicDeprecatedExports: readBudgetEnv(
"OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_DEPRECATED_EXPORTS",
3246,

View File

@@ -51,11 +51,11 @@ describe("plugin SDK surface report", () => {
it("keeps generated package declarations out of source surface counts", () => {
const result = runSurfaceReport({
OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_FUNCTION_EXPORTS: "5186",
OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_FUNCTION_EXPORTS: "5173",
});
expect(result.status).toBe(1);
expect(result.stderr).toContain("public callable exports 5188 > 5186");
expect(result.stderr).toContain("public callable exports 5174 > 5173");
});
it("rejects deprecated export growth by public entrypoint", () => {