mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 02:21:25 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
import { pathToFileURL } from "node:url";
|
||||
import path from "node:path";
|
||||
import { registerInternalHook } from "./internal-hooks.js";
|
||||
import type { MoltbotConfig } from "../config/config.js";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import type { InternalHookHandler } from "./internal-hooks.js";
|
||||
import { loadWorkspaceHookEntries } from "./workspace.js";
|
||||
import { resolveHookConfig } from "./config.js";
|
||||
@@ -21,7 +21,7 @@ import { shouldIncludeHook } from "./config.js";
|
||||
* 1. Directory-based discovery (bundled, managed, workspace)
|
||||
* 2. Legacy config handlers (backwards compatibility)
|
||||
*
|
||||
* @param cfg - Moltbot configuration
|
||||
* @param cfg - OpenClaw configuration
|
||||
* @param workspaceDir - Workspace directory for hook discovery
|
||||
* @returns Number of handlers successfully loaded
|
||||
*
|
||||
@@ -33,7 +33,10 @@ import { shouldIncludeHook } from "./config.js";
|
||||
* console.log(`Loaded ${count} hook handlers`);
|
||||
* ```
|
||||
*/
|
||||
export async function loadInternalHooks(cfg: MoltbotConfig, workspaceDir: string): Promise<number> {
|
||||
export async function loadInternalHooks(
|
||||
cfg: OpenClawConfig,
|
||||
workspaceDir: string,
|
||||
): Promise<number> {
|
||||
// Check if hooks are enabled
|
||||
if (!cfg.hooks?.internal?.enabled) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user