mirror of
https://github.com/hanzoai/bot.git
synced 2026-11-01 07:38:30 +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]>
21 lines
620 B
TypeScript
21 lines
620 B
TypeScript
import { definePluginEntry } from "openclaw/plugin-sdk/core";
|
|
import type { AnyAgentTool, HanzoBotPluginApi, HanzoBotPluginToolFactory } from "./runtime-api.js";
|
|
import { createLobsterTool } from "./src/lobster-tool.js";
|
|
|
|
export default definePluginEntry({
|
|
id: "lobster",
|
|
name: "Lobster",
|
|
description: "Optional local shell helper tools",
|
|
register(api: HanzoBotPluginApi) {
|
|
api.registerTool(
|
|
((ctx) => {
|
|
if (ctx.sandboxed) {
|
|
return null;
|
|
}
|
|
return createLobsterTool(api) as AnyAgentTool;
|
|
}) as HanzoBotPluginToolFactory,
|
|
{ optional: true },
|
|
);
|
|
},
|
|
});
|