perf(plugins): narrow boundary compile sdk imports

This commit is contained in:
Vincent Koc
2026-04-08 07:49:44 +01:00
parent 2e7a0fc7fb
commit 4260ac4cf6
28 changed files with 46 additions and 45 deletions

View File

@@ -1,4 +1,4 @@
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/core";
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
import { registerSandboxBackend } from "openclaw/plugin-sdk/sandbox";
import {
createOpenShellSandboxBackendFactory,
@@ -6,12 +6,12 @@ import {
} from "./src/backend.js";
import { createOpenShellPluginConfigSchema, resolveOpenShellPluginConfig } from "./src/config.js";
const plugin = {
export default definePluginEntry({
id: "openshell",
name: "OpenShell Sandbox",
description: "OpenShell-backed sandbox runtime for agent exec and file tools.",
configSchema: createOpenShellPluginConfigSchema(),
register(api: OpenClawPluginApi) {
register(api) {
if (api.registrationMode !== "full") {
return;
}
@@ -25,6 +25,4 @@ const plugin = {
}),
});
},
};
export default plugin;
});