@gguf/claw
Version:
WhatsApp gateway CLI (Baileys web) with Pi RPC agent
15 lines (13 loc) • 354 B
text/typescript
import type { OpenClawPluginApi } from "../../src/plugins/types.js";
import { createLobsterTool } from "./src/lobster-tool.js";
export default function register(api: OpenClawPluginApi) {
api.registerTool(
(ctx) => {
if (ctx.sandboxed) {
return null;
}
return createLobsterTool(api);
},
{ optional: true },
);
}