Files
openclaw/scripts/check-live-cache.ts
Peter Steinberger 3b3c540896 refactor: remove dead branches and test-only helpers (#121345)
* refactor: remove dead branches and test-only helpers

* fix: preserve codex cleanup error causes

* fix: preserve gateway error code compatibility

* chore: update plugin sdk api baseline

* docs: fix live cache runner path
2026-08-10 06:47:43 -07:00

28 lines
986 B
TypeScript

// Check Live Cache script supports OpenClaw repository automation.
import { LIVE_CACHE_TEST_ENABLED, logLiveCache } from "../src/agents/live-cache-test-support.js";
import { runLiveCacheRegression } from "../src/agents/test-helpers/live-cache-regression-runner.js";
if (!LIVE_CACHE_TEST_ENABLED) {
logLiveCache("skipped; set OPENCLAW_LIVE_TEST=1 and OPENCLAW_LIVE_CACHE_TEST=1");
process.exit(0);
}
const result = await runLiveCacheRegression();
if (result.warnings.length > 0) {
process.stderr.write("\n[live-cache] non-blocking cache observations:\n");
for (const warning of result.warnings) {
process.stderr.write(`- ${warning}\n`);
}
}
if (result.regressions.length > 0) {
process.stderr.write("\n[live-cache] regressions detected:\n");
for (const regression of result.regressions) {
process.stderr.write(`- ${regression}\n`);
}
process.exit(1);
} else {
process.stderr.write("\n[live-cache] all regression floors satisfied\n");
process.exit(0);
}