mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
refactor: hide script helper internals
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -8,7 +8,6 @@ export type BundledExtensionSourceClassification = {
|
||||
isProductionSource: boolean;
|
||||
};
|
||||
|
||||
export function normalizeExtensionSourcePath(filePath: string): string;
|
||||
export function classifyBundledExtensionSourcePath(
|
||||
filePath: string,
|
||||
): BundledExtensionSourceClassification;
|
||||
|
||||
@@ -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("\\", "/");
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user