Plugins: internalize lobster SDK imports

This commit is contained in:
Vincent Koc 2026-03-17 22:58:03 -07:00
parent ed479f96a1
commit 02826eaa0c
4 changed files with 5 additions and 8 deletions

View File

@ -1,9 +1,5 @@
import {
definePluginEntry,
type AnyAgentTool,
type OpenClawPluginApi,
type OpenClawPluginToolFactory,
} from "openclaw/plugin-sdk/lobster";
import { definePluginEntry } from "openclaw/plugin-sdk/core";
import type { AnyAgentTool, OpenClawPluginApi, OpenClawPluginToolFactory } from "./runtime-api.js";
import { createLobsterTool } from "./src/lobster-tool.js";
export default definePluginEntry({

View File

@ -0,0 +1 @@
export * from "openclaw/plugin-sdk/lobster";

View File

@ -1,7 +1,7 @@
import { spawn } from "node:child_process";
import path from "node:path";
import { Type } from "@sinclair/typebox";
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/lobster";
import type { OpenClawPluginApi } from "../runtime-api.js";
import { resolveWindowsLobsterSpawn } from "./windows-spawn.js";
type LobsterEnvelope =

View File

@ -2,7 +2,7 @@ import {
applyWindowsSpawnProgramPolicy,
materializeWindowsSpawnProgram,
resolveWindowsSpawnProgramCandidate,
} from "openclaw/plugin-sdk/lobster";
} from "../runtime-api.js";
type SpawnTarget = {
command: string;