Plugins: internalize lobster SDK imports
This commit is contained in:
parent
ed479f96a1
commit
02826eaa0c
@ -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({
|
||||
|
||||
1
extensions/lobster/runtime-api.ts
Normal file
1
extensions/lobster/runtime-api.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from "openclaw/plugin-sdk/lobster";
|
||||
@ -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 =
|
||||
|
||||
@ -2,7 +2,7 @@ import {
|
||||
applyWindowsSpawnProgramPolicy,
|
||||
materializeWindowsSpawnProgram,
|
||||
resolveWindowsSpawnProgramCandidate,
|
||||
} from "openclaw/plugin-sdk/lobster";
|
||||
} from "../runtime-api.js";
|
||||
|
||||
type SpawnTarget = {
|
||||
command: string;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user