openclaw/scripts/lib/update-compat-contract.mjs
Peter Steinberger 05bf4e050b
fix(update): keep old updaters able to restart the Gateway (#142195)
* fix(update): preserve old updater imports across package swaps

* chore(build): keep compatibility inventory types private

* test(build): preserve generated compatibility artifacts in fixtures

* test(build): include recorded bridges in source runner fixtures

* test(build): consolidate compatibility coverage under postbuild

* fix(update): cover the supported updater compatibility window

* fix(update): resolve compatibility exports with ESM semantics
2026-09-08 10:43:46 -07:00

7 lines
257 B
JavaScript

export const UPDATE_COMPATIBILITY_CHUNK_HEADER =
"// Generated by update-compat-inventory; do not edit.";
/** @param {string} source */
export function isUpdateCompatibilityChunk(source) {
return source.startsWith(UPDATE_COMPATIBILITY_CHUNK_HEADER);
}