mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 21:00:41 +00:00
23 lines
570 B
TypeScript
23 lines
570 B
TypeScript
import type { HookEntry } from "../hooks/types.js";
|
|
import type { PluginHookRegistration as TypedPluginHookRegistration } from "./hook-types.js";
|
|
|
|
export type PluginLegacyHookRegistration = {
|
|
pluginId: string;
|
|
entry: HookEntry;
|
|
events: string[];
|
|
source: string;
|
|
rootDir?: string;
|
|
};
|
|
|
|
export type HookRunnerRegistry = {
|
|
hooks: PluginLegacyHookRegistration[];
|
|
typedHooks: TypedPluginHookRegistration[];
|
|
};
|
|
|
|
export type GlobalHookRunnerRegistry = HookRunnerRegistry & {
|
|
plugins: Array<{
|
|
id: string;
|
|
status: "loaded" | "disabled" | "error";
|
|
}>;
|
|
};
|