for (const file of files) { const content = fs.readFileSync(file, "utf8"); if (FORBIDDEN_REPO_SRC_IMPORT.test(content)) {
offenders.push(file);
}
}
if (offenders.length > 0) {
console.error("Production extension files must not import the repo src/ tree directly."); for (const offender of offenders.toSorted()) {
console.error(`- ${relativeToCwd(offender)}`);
}
console.error( "Publish a focused openclaw/plugin-sdk/<subpath> surface or use the extension's own public barrel instead.",
);
process.exit(1);
}
console.log(
`OK: production extension files avoid direct repo src/ imports (${files.length} checked).`,
);
}
main();
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.