openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
26 lines (25 loc) • 1.39 kB
JavaScript
import { r as theme } from "./theme-vjDs9tao.js";
import { n as defaultRuntime } from "./runtime-B4lgFmsS.js";
import { t as runCrestodian } from "./crestodian-Cgk0JfaT.js";
import { n as runCommandWithRuntime } from "./cli-utils-Cuzzfy1Q.js";
import { t as formatHelpExamples } from "./help-format-CAcwboTs.js";
//#region src/cli/program/register.crestodian.ts
/** Register the Crestodian helper command and its one-shot request flags. */
function registerCrestodianCommand(program) {
program.command("crestodian").description("Open the ring-zero setup and repair helper").option("-m, --message <text>", "Run one Crestodian request").option("--yes", "Approve persistent config writes for this request", false).option("--json", "Output startup overview as JSON", false).addHelpText("after", () => `\n${theme.heading("Examples:")}\n${formatHelpExamples([
["openclaw", "Start Crestodian."],
["openclaw crestodian", "Start Crestodian explicitly."],
["openclaw crestodian -m \"status\"", "Run one status request."],
["openclaw crestodian -m \"set default model openai/gpt-5.2\" --yes", "Apply a typed config write."]
])}`).action(async (opts) => {
await runCommandWithRuntime(defaultRuntime, async () => {
await runCrestodian({
message: opts.message,
yes: Boolean(opts.yes),
json: Boolean(opts.json)
});
});
});
}
//#endregion
export { registerCrestodianCommand };