Skip to content

Commit 6c321ce

Browse files
committed
test(sdk): refresh surface export budget
1 parent 16623b7 commit 6c321ce

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

scripts/plugin-sdk-surface-report.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ let publicDeprecatedExportsByEntrypointBudget;
202202
try {
203203
budgets = {
204204
publicEntrypoints: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_ENTRYPOINTS", 322),
205-
publicExports: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_EXPORTS", 10388),
205+
publicExports: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_EXPORTS", 10389),
206206
publicFunctionExports: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_FUNCTION_EXPORTS", 5214),
207207
publicDeprecatedExports: readBudgetEnv(
208208
"OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_DEPRECATED_EXPORTS",

test/scripts/plugin-sdk-surface-report.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ function readCurrentPublicSurfaceCounts(): PublicSurfaceCounts {
4747
}
4848

4949
function parseCurrentPublicCounts(stdout: string): PublicSurfaceCounts {
50-
const totalsMatch = /public package SDK entrypoints:[\s\S]*?\n\s{2}exports: (\d+)\n\s{2}callable exports: (\d+)/u
51-
.exec(stdout);
50+
const totalsMatch =
51+
/public package SDK entrypoints:[\s\S]*?\n\s{2}exports: (\d+)\n\s{2}callable exports: (\d+)/u.exec(
52+
stdout,
53+
);
5254
const wildcardsMatch = /public wildcard reexports: (\d+)/u.exec(stdout);
5355
if (
5456
totalsMatch === null ||

0 commit comments

Comments
 (0)