mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 06:11:46 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -7,7 +7,7 @@ export type HookInstallSpec = {
|
||||
bins?: string[];
|
||||
};
|
||||
|
||||
export type ClawdbotHookMetadata = {
|
||||
export type MoltbotHookMetadata = {
|
||||
always?: boolean;
|
||||
hookKey?: string;
|
||||
emoji?: string;
|
||||
@@ -35,7 +35,7 @@ export type ParsedHookFrontmatter = Record<string, string>;
|
||||
export type Hook = {
|
||||
name: string;
|
||||
description: string;
|
||||
source: "clawdbot-bundled" | "clawdbot-managed" | "clawdbot-workspace" | "clawdbot-plugin";
|
||||
source: "moltbot-bundled" | "moltbot-managed" | "moltbot-workspace" | "moltbot-plugin";
|
||||
pluginId?: string;
|
||||
filePath: string; // Path to HOOK.md
|
||||
baseDir: string; // Directory containing hook
|
||||
@@ -47,7 +47,7 @@ export type HookSource = Hook["source"];
|
||||
export type HookEntry = {
|
||||
hook: Hook;
|
||||
frontmatter: ParsedHookFrontmatter;
|
||||
clawdbot?: ClawdbotHookMetadata;
|
||||
metadata?: MoltbotHookMetadata;
|
||||
invocation?: HookInvocationPolicy;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user