mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-14 12:46:09 +00:00
* test(qa): prove Slack native chart delivery * test(qa): exercise Slack chart verifier through scenario * fix(build): bound private QA SDK declarations separately * fix(qa): normalize Slack chart history whitespace
20 lines
819 B
JavaScript
20 lines
819 B
JavaScript
export const MAX_PUBLIC_PLUGIN_SDK_DECLARATION_BYTES = 5_000_000;
|
|
// Private-only entrypoints reshape chunks reachable from public roots but are never published.
|
|
// Bound that topology overhead without counting local-only declarations as package surface.
|
|
export const MAX_PRIVATE_QA_PUBLIC_PLUGIN_SDK_DECLARATION_BYTES = 5_025_000;
|
|
|
|
export function isPrivateQaPluginSdkBuild(env) {
|
|
return env.OPENCLAW_BUILD_PRIVATE_QA === "1";
|
|
}
|
|
|
|
export function evaluatePluginSdkDeclarationBudget({ declarationBytes, buildPrivateQa }) {
|
|
const budgetBytes = buildPrivateQa
|
|
? MAX_PRIVATE_QA_PUBLIC_PLUGIN_SDK_DECLARATION_BYTES
|
|
: MAX_PUBLIC_PLUGIN_SDK_DECLARATION_BYTES;
|
|
return {
|
|
budgetBytes,
|
|
budgetKind: buildPrivateQa ? "private-qa-public-entry" : "public",
|
|
shouldFail: declarationBytes > budgetBytes,
|
|
};
|
|
}
|