import fs from "node:fs/promises"; import JSON5 from "json5"; import { z } from "zod"; import type { OpenClawConfig } from "../config/types.js"; import type { RuntimeEnv } from "../runtime.js"; import { defaultRuntime } from "../runtime.js"; import { shortenHomePath } from "../utils.js"; import { safeParseWithSchema } from "../utils/zod-parse.js";
type AgentWorkspaceModule = typeofimport("../agents/workspace.js");
type ConfigIOModule = typeofimport("../config/io.js");
type ConfigLoggingModule = typeofimport("../config/logging.js");
let agentWorkspaceModulePromise: Promise<AgentWorkspaceModule> | undefined;
let configIOModulePromise: Promise<ConfigIOModule> | undefined;
let configLoggingModulePromise: Promise<ConfigLoggingModule> | undefined;
function loadAgentWorkspaceModule(): Promise<AgentWorkspaceModule> {
agentWorkspaceModulePromise ??= import("../agents/workspace.js"); return agentWorkspaceModulePromise;
}
function loadConfigIOModule(): Promise<ConfigIOModule> {
configIOModulePromise ??= import("../config/io.js"); return configIOModulePromise;
}
function loadConfigLoggingModule(): Promise<ConfigLoggingModule> {
configLoggingModulePromise ??= import("../config/logging.js"); return configLoggingModulePromise;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.