12 lines
441 B
TypeScript
12 lines
441 B
TypeScript
import type { OpenClawConfig } from "../config/config.js";
|
|
import type { RuntimeEnv } from "../runtime.js";
|
|
import { requireValidConfigSnapshot } from "./config-validation.js";
|
|
|
|
export function createQuietRuntime(runtime: RuntimeEnv): RuntimeEnv {
|
|
return { ...runtime, log: () => {} };
|
|
}
|
|
|
|
export async function requireValidConfig(runtime: RuntimeEnv): Promise<OpenClawConfig | null> {
|
|
return await requireValidConfigSnapshot(runtime);
|
|
}
|