Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openclaw/scripts/   (KI Agentensystem Version 22©)  Datei vom 26.3.2026 mit Größe 1 kB image not shown  

Quelle  check-src-extension-import-boundary.mjs   Sprache: unbekannt

 
Spracherkennung für: .mjs vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

#!/usr/bin/env node

import { createExtensionImportBoundaryChecker } from "./lib/extension-import-boundary-checker.mjs";
import { runAsScript } from "./lib/ts-guard-utils.mjs";

const ALLOWED_EXTENSION_PUBLIC_SURFACE_RE = /^extensions\/[^/]+\/(?:api|runtime-api)\.js$/;

const checker = createExtensionImportBoundaryChecker({
  roots: ["src"],
  boundaryLabel: "src",
  rule: "Rule: production src/** must not import bundled plugin files",
  cleanMessage: "No src import boundary violations found.",
  inventoryTitle: "Src extension import boundary inventory:",
  skipSourcesWithoutBundledPluginPrefix: true,
  allowResolvedPath(resolvedPath) {
    return ALLOWED_EXTENSION_PUBLIC_SURFACE_RE.test(resolvedPath);
  },
  shouldSkipFile(relativeFile) {
    return (
      relativeFile.endsWith(".test.ts") ||
      relativeFile.endsWith(".test.tsx") ||
      relativeFile.endsWith(".e2e.test.ts") ||
      relativeFile.endsWith(".e2e.test.tsx")
    );
  },
});

export const collectSrcExtensionImportBoundaryInventory = checker.collectInventory;
export const main = checker.main;

runAsScript(import.meta.url, main);

[zur Elbe Produktseite wechseln0.27QuellennavigatorsAnalyse erneut starten2026-04-27]