mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-22 19:01:14 +00:00
* fix(teams-meetings): validate live web flows * chore(plugin-sdk): update meeting runtime baseline * test(teams-meetings): align live validation fixtures * fix(teams-meetings): harden live browser validation * fix(teams-meetings): preserve live transition lifecycles * fix(meeting-bot): pass wait budget during recovery * test(teams-meetings): satisfy extension lint * fix(teams-meetings): preserve browser session ownership * fix(teams-meetings): retire audio bridges after leave * fix(teams-meetings): harden leave and audio ownership * fix(teams-meetings): preserve leave transition ownership * fix(teams-meetings): serialize leave cleanup safely * fix(teams-meetings): guard live transition cleanup * fix(teams-meetings): preserve adapter boundaries * fix(teams-meetings): await caption readiness * fix(teams-meetings): surface caption blockers * fix(teams-meetings): retry transient media playback * chore(teams-meetings): defer release notes * refactor(meeting-bot): isolate navigation error helper * test(teams-meetings): keep page control helper private * fix(meeting-bot): bound caption lifecycle cleanup * chore(plugin-sdk): refresh API baseline * test(teams-meetings): split caption ownership coverage * fix(teams-meetings): retry pending audio routing * fix(teams-meetings): retain leave transition ownership * fix(teams-meetings): refresh transcript target * fix(teams-meetings): bound audio routing retries * fix(teams-meetings): retry pending remote audio * fix(teams-meetings): harden media source ownership
28 lines
1.4 KiB
JavaScript
28 lines
1.4 KiB
JavaScript
// Raised for meeting-browser origin permissions and current browser-session contracts;
|
|
// the cap exists to force a conscious decision on published declaration growth.
|
|
export const MAX_PUBLIC_PLUGIN_SDK_DECLARATION_BYTES = 5_250_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_275_000;
|
|
// Rolldown can repartition equivalent declaration chunks between clean builds; measured spread is
|
|
// about 29 KiB across hosts. Keep one 64 KiB scheduling window above the intentional size ratchet.
|
|
export const PLUGIN_SDK_DECLARATION_OUTPUT_VARIANCE_BYTES = 64 * 1024;
|
|
|
|
export function isPrivateQaPluginSdkBuild(env) {
|
|
return env.OPENCLAW_BUILD_PRIVATE_QA === "1";
|
|
}
|
|
|
|
export function evaluatePluginSdkDeclarationBudget({ declarationBytes, buildPrivateQa }) {
|
|
const ratchetBytes = buildPrivateQa
|
|
? MAX_PRIVATE_QA_PUBLIC_PLUGIN_SDK_DECLARATION_BYTES
|
|
: MAX_PUBLIC_PLUGIN_SDK_DECLARATION_BYTES;
|
|
const budgetBytes = ratchetBytes + PLUGIN_SDK_DECLARATION_OUTPUT_VARIANCE_BYTES;
|
|
return {
|
|
budgetBytes,
|
|
budgetKind: buildPrivateQa ? "private-qa-public-entry" : "public",
|
|
ratchetBytes,
|
|
shouldFail: declarationBytes > budgetBytes,
|
|
varianceBytes: PLUGIN_SDK_DECLARATION_OUTPUT_VARIANCE_BYTES,
|
|
};
|
|
}
|