mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-30 02:40:18 +00:00
Plugins/lobster: migrate to scoped plugin-sdk imports
This commit is contained in:
@@ -2,7 +2,7 @@ import type {
|
|||||||
AnyAgentTool,
|
AnyAgentTool,
|
||||||
OpenClawPluginApi,
|
OpenClawPluginApi,
|
||||||
OpenClawPluginToolFactory,
|
OpenClawPluginToolFactory,
|
||||||
} from "../../src/plugins/types.js";
|
} from "openclaw/plugin-sdk/lobster";
|
||||||
import { createLobsterTool } from "./src/lobster-tool.js";
|
import { createLobsterTool } from "./src/lobster-tool.js";
|
||||||
|
|
||||||
export default function register(api: OpenClawPluginApi) {
|
export default function register(api: OpenClawPluginApi) {
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import fs from "node:fs/promises";
|
|||||||
import os from "node:os";
|
import os from "node:os";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { PassThrough } from "node:stream";
|
import { PassThrough } from "node:stream";
|
||||||
|
import type { OpenClawPluginApi, OpenClawPluginToolContext } from "openclaw/plugin-sdk/lobster";
|
||||||
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
import type { OpenClawPluginApi, OpenClawPluginToolContext } from "../../../src/plugins/types.js";
|
|
||||||
import {
|
import {
|
||||||
createWindowsCmdShimFixture,
|
createWindowsCmdShimFixture,
|
||||||
restorePlatformPathEnv,
|
restorePlatformPathEnv,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { spawn } from "node:child_process";
|
import { spawn } from "node:child_process";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { Type } from "@sinclair/typebox";
|
import { Type } from "@sinclair/typebox";
|
||||||
import type { OpenClawPluginApi } from "../../../src/plugins/types.js";
|
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/lobster";
|
||||||
import { resolveWindowsLobsterSpawn } from "./windows-spawn.js";
|
import { resolveWindowsLobsterSpawn } from "./windows-spawn.js";
|
||||||
|
|
||||||
type LobsterEnvelope =
|
type LobsterEnvelope =
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import {
|
|||||||
applyWindowsSpawnProgramPolicy,
|
applyWindowsSpawnProgramPolicy,
|
||||||
materializeWindowsSpawnProgram,
|
materializeWindowsSpawnProgram,
|
||||||
resolveWindowsSpawnProgramCandidate,
|
resolveWindowsSpawnProgramCandidate,
|
||||||
} from "openclaw/plugin-sdk/compat";
|
} from "openclaw/plugin-sdk/lobster";
|
||||||
|
|
||||||
type SpawnTarget = {
|
type SpawnTarget = {
|
||||||
command: string;
|
command: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user