mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 17:41:40 +00:00
* fix(pr): route hosted gate reads through cache * test(control-ui): stabilize process readiness * fix(ci): stabilize startup memory sampling * fix(gateway): route OpenClaw approval listing * fix(state): reuse schema repair transaction * test(agents): assert host authority scope * chore(plugin-sdk): refresh API baseline * test(agents): assert delegate tool fixture * test(sessions): stabilize concurrency worker startup
76 lines
1.7 KiB
TypeScript
76 lines
1.7 KiB
TypeScript
#!/usr/bin/env node
|
|
export namespace testing {
|
|
export { cases };
|
|
export { nodeImportSpecifierForPath };
|
|
export { parseArgs };
|
|
export { readPositiveIntEnv };
|
|
export { readPositiveNumberEnv };
|
|
export { repoRoot };
|
|
export { resolveDefaultLimitsMb };
|
|
export { runCase };
|
|
export { runStartupMemoryCheck };
|
|
export { sampleCount };
|
|
}
|
|
declare const cases: {
|
|
id: string;
|
|
label: string;
|
|
args: string[];
|
|
limitMb: unknown;
|
|
}[];
|
|
declare function nodeImportSpecifierForPath(filePath: unknown): string;
|
|
declare function parseArgs(argv: unknown): {
|
|
jsonPath: string;
|
|
summaryPath: string;
|
|
};
|
|
declare function readPositiveIntEnv(
|
|
name: unknown,
|
|
fallback: unknown,
|
|
env?: NodeJS.ProcessEnv,
|
|
): unknown;
|
|
declare function readPositiveNumberEnv(
|
|
name: unknown,
|
|
fallback: unknown,
|
|
env?: NodeJS.ProcessEnv,
|
|
): unknown;
|
|
declare const repoRoot: string;
|
|
declare const sampleCount: number;
|
|
declare function resolveDefaultLimitsMb(platform?: NodeJS.Platform): {
|
|
help: number;
|
|
pluginsList: number;
|
|
statusJson: number;
|
|
gatewayStatus: number;
|
|
};
|
|
declare function runCase(
|
|
testCase: unknown,
|
|
params?: Record<string, unknown>,
|
|
): {
|
|
id: unknown;
|
|
label: unknown;
|
|
command: string;
|
|
limitMb: unknown;
|
|
maxRssMb: number | null;
|
|
rssSamplesMb?: number[];
|
|
status: string;
|
|
exitCode: unknown;
|
|
signal: unknown;
|
|
error: string | null;
|
|
};
|
|
declare function runStartupMemoryCheck(
|
|
argv?: string[],
|
|
params?: Record<string, unknown>,
|
|
): {
|
|
skipped: boolean;
|
|
results: {
|
|
id: unknown;
|
|
label: unknown;
|
|
command: string;
|
|
limitMb: unknown;
|
|
maxRssMb: number | null;
|
|
rssSamplesMb?: number[];
|
|
status: string;
|
|
exitCode: unknown;
|
|
signal: unknown;
|
|
error: string | null;
|
|
}[];
|
|
};
|