Files
openclaw/src/commands/agents.command-shared.ts

12 lines
441 B
TypeScript
Raw Normal View History

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";
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> {
return await requireValidConfigSnapshot(runtime);
2026-01-14 05:39:47 +00:00
}