refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions

View File

@@ -1,4 +1,4 @@
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import type { RuntimeEnv } from "../runtime.js";
import type { WizardPrompter } from "../wizard/prompts.js";
import { buildWorkspaceHookStatus } from "../hooks/hooks-status.js";
@@ -6,16 +6,16 @@ import { resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agents/agent
import { formatCliCommand } from "../cli/command-format.js";
export async function setupInternalHooks(
cfg: MoltbotConfig,
cfg: OpenClawConfig,
runtime: RuntimeEnv,
prompter: WizardPrompter,
): Promise<MoltbotConfig> {
): Promise<OpenClawConfig> {
await prompter.note(
[
"Hooks let you automate actions when agent commands are issued.",
"Example: Save session context to memory when you issue /new.",
"",
"Learn more: https://docs.molt.bot/hooks",
"Learn more: https://docs.openclaw.ai/hooks",
].join("\n"),
"Hooks",
);
@@ -58,7 +58,7 @@ export async function setupInternalHooks(
entries[name] = { enabled: true };
}
const next: MoltbotConfig = {
const next: OpenClawConfig = {
...cfg,
hooks: {
...cfg.hooks,
@@ -74,9 +74,9 @@ export async function setupInternalHooks(
`Enabled ${selected.length} hook${selected.length > 1 ? "s" : ""}: ${selected.join(", ")}`,
"",
"You can manage hooks later with:",
` ${formatCliCommand("moltbot hooks list")}`,
` ${formatCliCommand("moltbot hooks enable <name>")}`,
` ${formatCliCommand("moltbot hooks disable <name>")}`,
` ${formatCliCommand("openclaw hooks list")}`,
` ${formatCliCommand("openclaw hooks enable <name>")}`,
` ${formatCliCommand("openclaw hooks disable <name>")}`,
].join("\n"),
"Hooks Configured",
);