mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 05:47:39 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -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",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user