14 lines
337 B
TypeScript
14 lines
337 B
TypeScript
import type { ClawdbotPluginApi } from "../../src/plugins/types.js";
|
|
|
|
import { createLobsterTool } from "./src/lobster-tool.js";
|
|
|
|
export default function register(api: ClawdbotPluginApi) {
|
|
api.registerTool(
|
|
(ctx) => {
|
|
if (ctx.sandboxed) return null;
|
|
return createLobsterTool(api);
|
|
},
|
|
{ optional: true },
|
|
);
|
|
}
|