Files
openclaw/scripts/check-no-runtime-action-load-config.mts
T
Peter Steinberger c70aee247e refactor(scripts): migrate JavaScript tools to TypeScript (#121005)
* refactor(scripts): migrate JavaScript tools to TypeScript

* fix(ci): keep changed-scope preflight zero-install

* fix(ci): preserve zero-install script owners

* fix(ci): complete script migration follow-through

* fix(release): keep stable closeout zero-install

* fix(scripts): preserve standalone execution boundaries

* fix(scripts): repair standalone loader boundaries

* fix(scripts): normalize gateway observation ids

* fix(scripts): keep Docker packager standalone

* test(scripts): preserve rebase cleanup helpers

* test(sessions): use tracked temp directory
2026-08-09 07:21:35 -07:00

22 lines
621 B
TypeScript

#!/usr/bin/env node
// Prevents runtime action paths from loading global config directly.
import { collectRuntimeActionLoadConfigViolations } from "./lib/config-boundary-guard.mts";
function main() {
const violations = collectRuntimeActionLoadConfigViolations();
if (violations.length === 0) {
return 0;
}
console.error(
[
"Runtime channel send/action/client/pairing helpers must not call loadConfig().",
"Load and resolve config at the command/gateway/monitor boundary, then pass cfg through.",
"",
...violations,
].join("\n"),
);
return 1;
}
process.exitCode = main();