mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-23 10:55:31 -06:00
9497450511
Burn the grandfathered unused-export baseline to zero and enforce a hard-zero Knip gate.
24 lines
712 B
TypeScript
24 lines
712 B
TypeScript
import type { LocalCommandProbe } from "../system-agent/probes.js";
|
|
import "./onboard-inference.js";
|
|
|
|
type TestApi = {
|
|
detectNativeCodexAppServer(options?: {
|
|
env?: NodeJS.ProcessEnv;
|
|
platform?: NodeJS.Platform;
|
|
probeLocalCommand?: (
|
|
command: string,
|
|
args?: string[],
|
|
options?: { timeoutMs?: number },
|
|
) => Promise<LocalCommandProbe>;
|
|
}): Promise<LocalCommandProbe>;
|
|
};
|
|
|
|
function getTestApi(): TestApi {
|
|
return (globalThis as Record<PropertyKey, unknown>)[
|
|
Symbol.for("openclaw.onboardInferenceTestApi")
|
|
] as TestApi;
|
|
}
|
|
|
|
export const detectNativeCodexAppServer: TestApi["detectNativeCodexAppServer"] = (options) =>
|
|
getTestApi().detectNativeCodexAppServer(options);
|