refactor: hide script helper internals

This commit is contained in:
Peter Steinberger
2026-05-02 07:22:24 +01:00
parent 817e6e810b
commit a3e0231252
5 changed files with 4 additions and 5 deletions

View File

@@ -216,7 +216,7 @@ function formatInventoryHuman(inventory) {
return lines.join("\n");
}
export async function runArchitectureSmellsCheck(argv = process.argv.slice(2), io) {
async function runArchitectureSmellsCheck(argv = process.argv.slice(2), io) {
const streams = io ?? { stdout: process.stdout, stderr: process.stderr };
const json = argv.includes("--json");
const inventory = await collectArchitectureSmells();

View File

@@ -10,7 +10,7 @@ const OPENWEBUI_TIMEOUT_MS = 20 * 60 * 1000;
export const BUNDLED_PLUGIN_INSTALL_UNINSTALL_SHARDS = 24;
const upgradeSurvivorCommand = "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:upgrade-survivor";
export const LIVE_RETRY_PATTERNS = [
const LIVE_RETRY_PATTERNS = [
/529\b/i,
/overloaded/i,
/capacity/i,

View File

@@ -8,7 +8,6 @@ export type BundledExtensionSourceClassification = {
isProductionSource: boolean;
};
export function normalizeExtensionSourcePath(filePath: string): string;
export function classifyBundledExtensionSourcePath(
filePath: string,
): BundledExtensionSourceClassification;

View File

@@ -13,7 +13,7 @@ const SUFFIX_SKIP_RE = /\.(?:test|spec|fixture)\./u;
const INFRA_DIR_RE = /(^|\/)(?:coverage|dist|node_modules)(?:\/|$)/u;
const INFRA_NAME_RE = /(test-harness|test-support|test-helpers|test-fixtures)/u;
export function normalizeExtensionSourcePath(filePath) {
function normalizeExtensionSourcePath(filePath) {
return filePath.replaceAll("\\", "/");
}

View File

@@ -16,7 +16,7 @@ export function signalExitCode(signal) {
* @param {import("node:child_process").ChildProcess} child
* @param {NodeJS.Signals} [signal]
*/
export function terminateManagedChild(child, signal = "SIGTERM") {
function terminateManagedChild(child, signal = "SIGTERM") {
if (!child.pid) {
return;
}