mirror of https://github.com/openclaw/openclaw.git
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:
parent
9fbbc97e9a
commit
474a41a3ee
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { OpenClawConfig } from "openclaw/plugin-sdk";
|
||||
import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
|
||||
|
||||
/**
|
||||
* Guardian plugin configuration.
|
||||
|
|
|
|||
Loading…
Reference in New Issue