mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
c70aee247e
* 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
25 lines
894 B
TypeScript
25 lines
894 B
TypeScript
#!/usr/bin/env node
|
|
|
|
// Runs the SDK-package extension import boundary checker.
|
|
import { createExtensionImportBoundaryChecker } from "./lib/extension-import-boundary-checker.mts";
|
|
import { runAsScript } from "./lib/ts-guard-utils.mts";
|
|
|
|
const checker = createExtensionImportBoundaryChecker({
|
|
roots: ["src/plugin-sdk", "packages"],
|
|
boundaryLabel: "sdk/package",
|
|
rule: "Rule: src/plugin-sdk/** and packages/** must not import bundled plugin files",
|
|
cleanMessage: "No sdk/package import boundary violations found.",
|
|
inventoryTitle: "SDK/package extension import boundary inventory:",
|
|
skipSourcesWithoutBundledPluginPrefix: true,
|
|
shouldSkipFile(relativeFile) {
|
|
return relativeFile.startsWith("packages/plugin-sdk/dist/");
|
|
},
|
|
});
|
|
|
|
/**
|
|
* Entrypoint for the SDK-package extension import boundary checker.
|
|
*/
|
|
export const main = checker.main;
|
|
|
|
runAsScript(import.meta.url, main);
|