mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
The automated rebrand sed script replaced "OpenClaw" with "Hanzo Bot" (with space) instead of "HanzoBot" in 8,315 TypeScript identifier occurrences across 1,632 files. This fixes all broken class names, type names, function names, and variable names. Co-authored-by: Hanzo Dev <[email protected]>
33 lines
985 B
TypeScript
33 lines
985 B
TypeScript
import type { HanzoBotPluginApi } from "openclaw/plugin-sdk/plugin-runtime";
|
|
|
|
type TestPluginApiInput = Partial<HanzoBotPluginApi> &
|
|
Pick<HanzoBotPluginApi, "id" | "name" | "source" | "config" | "runtime">;
|
|
|
|
export function createTestPluginApi(api: TestPluginApiInput): HanzoBotPluginApi {
|
|
return {
|
|
registrationMode: "full",
|
|
logger: { info() {}, warn() {}, error() {}, debug() {} },
|
|
registerTool() {},
|
|
registerHook() {},
|
|
registerHttpRoute() {},
|
|
registerChannel() {},
|
|
registerGatewayMethod() {},
|
|
registerCli() {},
|
|
registerService() {},
|
|
registerProvider() {},
|
|
registerSpeechProvider() {},
|
|
registerMediaUnderstandingProvider() {},
|
|
registerImageGenerationProvider() {},
|
|
registerWebSearchProvider() {},
|
|
registerInteractiveHandler() {},
|
|
onConversationBindingResolved() {},
|
|
registerCommand() {},
|
|
registerContextEngine() {},
|
|
resolvePath(input: string) {
|
|
return input;
|
|
},
|
|
on() {},
|
|
...api,
|
|
};
|
|
}
|