mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-06 14:51:08 +00:00
19 lines
655 B
TypeScript
19 lines
655 B
TypeScript
import type { OpenClawConfig } from "../config/config.js";
|
|
import type { RuntimeEnv } from "../runtime.js";
|
|
import {
|
|
requireValidConfigFileSnapshot as requireValidConfigFileSnapshotBase,
|
|
requireValidConfigSnapshot,
|
|
} from "./config-validation.js";
|
|
|
|
export function createQuietRuntime(runtime: RuntimeEnv): RuntimeEnv {
|
|
return { ...runtime, log: () => {} };
|
|
}
|
|
|
|
export async function requireValidConfigFileSnapshot(runtime: RuntimeEnv) {
|
|
return await requireValidConfigFileSnapshotBase(runtime);
|
|
}
|
|
|
|
export async function requireValidConfig(runtime: RuntimeEnv): Promise<OpenClawConfig | null> {
|
|
return await requireValidConfigSnapshot(runtime);
|
|
}
|