fix(guardian): use openclaw/plugin-sdk/core instead of monolithic import

Bundled plugins must use scoped plugin-sdk imports (e.g. /core, /compat)
instead of the monolithic openclaw/plugin-sdk entry point.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
ShengtongZhu 2026-03-15 14:11:46 +08:00
parent 9fbbc97e9a
commit 474a41a3ee
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ vi.mock("./summary.js", () => ({
generateSummary: vi.fn(),
}));
import type { OpenClawPluginApi, PluginRuntime } from "openclaw/plugin-sdk";
import type { OpenClawPluginApi, PluginRuntime } from "openclaw/plugin-sdk/core";
import { callGuardian, callForText } from "./guardian-client.js";
import guardianPlugin, { __testing } from "./index.js";
import {

View File

@ -1,5 +1,5 @@
import type { OpenClawPluginApi, PluginRuntime } from "openclaw/plugin-sdk";
import type { OpenClawConfig } from "openclaw/plugin-sdk";
import type { OpenClawPluginApi, PluginRuntime } from "openclaw/plugin-sdk/core";
import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
import { callGuardian } from "./guardian-client.js";
import {
getAllTurns,

View File

@ -1,4 +1,4 @@
import type { OpenClawConfig } from "openclaw/plugin-sdk";
import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
/**
* Guardian plugin configuration.