2026-01-30 03:15:10 +01:00
|
|
|
import type { OpenClawConfig } from "../config/config.js";
|
2026-01-14 05:39:47 +00:00
|
|
|
import type { RuntimeEnv } from "../runtime.js";
|
2026-02-16 14:52:09 +00:00
|
|
|
import { requireValidConfigSnapshot } from "./config-validation.js";
|
2026-01-14 05:39:47 +00:00
|
|
|
|
|
|
|
|
export function createQuietRuntime(runtime: RuntimeEnv): RuntimeEnv {
|
|
|
|
|
return { ...runtime, log: () => {} };
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-30 03:15:10 +01:00
|
|
|
export async function requireValidConfig(runtime: RuntimeEnv): Promise<OpenClawConfig | null> {
|
2026-02-16 14:52:09 +00:00
|
|
|
return await requireValidConfigSnapshot(runtime);
|
2026-01-14 05:39:47 +00:00
|
|
|
}
|