import { formatCliCommand } from "../cli/command-format.js"; import { readConfigFileSnapshot } from "../config/io.js"; import type { OpenClawConfig } from "../config/types.openclaw.js"; import type { RuntimeEnv } from "../runtime.js"; import { defaultRuntime } from "../runtime.js"; import { runNonInteractiveLocalSetup } from "./onboard-non-interactive/local.js"; import { runNonInteractiveRemoteSetup } from "./onboard-non-interactive/remote.js"; import type { OnboardOptions } from "./onboard-types.js";
export async function runNonInteractiveSetup(
opts: OnboardOptions,
runtime: RuntimeEnv = defaultRuntime,
) { const snapshot = await readConfigFileSnapshot(); if (snapshot.exists && !snapshot.valid) {
runtime.error(
`Config invalid. Run \`${formatCliCommand("openclaw doctor")}\` to repair it, then re-run setup.`,
);
runtime.exit(1); return;
}
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.