Files
openclaw/src/commands/onboard-inference.test-support.ts
T
Peter Steinberger 9497450511 refactor: eliminate dead-export baseline (#108376)
Burn the grandfathered unused-export baseline to zero and enforce a hard-zero Knip gate.
2026-07-15 17:05:07 +01:00

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);