2026-03-17 22:58:03 -07:00
|
|
|
import { definePluginEntry } from "openclaw/plugin-sdk/core";
|
|
|
|
|
import type { AnyAgentTool, OpenClawPluginApi, OpenClawPluginToolFactory } from "./runtime-api.js";
|
2026-01-17 20:18:54 -08:00
|
|
|
import { createLobsterTool } from "./src/lobster-tool.js";
|
|
|
|
|
|
2026-03-17 00:14:01 -07:00
|
|
|
export default definePluginEntry({
|
|
|
|
|
id: "lobster",
|
|
|
|
|
name: "Lobster",
|
|
|
|
|
description: "Optional local shell helper tools",
|
|
|
|
|
register(api: OpenClawPluginApi) {
|
|
|
|
|
api.registerTool(
|
|
|
|
|
((ctx) => {
|
|
|
|
|
if (ctx.sandboxed) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
return createLobsterTool(api) as AnyAgentTool;
|
|
|
|
|
}) as OpenClawPluginToolFactory,
|
|
|
|
|
{ optional: true },
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
});
|