mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
The automated rebrand sed script replaced "OpenClaw" with "Hanzo Bot" (with space) instead of "HanzoBot" in 8,315 TypeScript identifier occurrences across 1,632 files. This fixes all broken class names, type names, function names, and variable names. Co-authored-by: Hanzo Dev <[email protected]>
31 lines
980 B
TypeScript
31 lines
980 B
TypeScript
import type { HanzoBotPluginApi } from "openclaw/plugin-sdk/core";
|
|
import { registerSandboxBackend } from "openclaw/plugin-sdk/sandbox";
|
|
import {
|
|
createOpenShellSandboxBackendFactory,
|
|
createOpenShellSandboxBackendManager,
|
|
} from "./src/backend.js";
|
|
import { createOpenShellPluginConfigSchema, resolveOpenShellPluginConfig } from "./src/config.js";
|
|
|
|
const plugin = {
|
|
id: "openshell",
|
|
name: "OpenShell Sandbox",
|
|
description: "OpenShell-backed sandbox runtime for agent exec and file tools.",
|
|
configSchema: createOpenShellPluginConfigSchema(),
|
|
register(api: HanzoBotPluginApi) {
|
|
if (api.registrationMode !== "full") {
|
|
return;
|
|
}
|
|
const pluginConfig = resolveOpenShellPluginConfig(api.pluginConfig);
|
|
registerSandboxBackend("openshell", {
|
|
factory: createOpenShellSandboxBackendFactory({
|
|
pluginConfig,
|
|
}),
|
|
manager: createOpenShellSandboxBackendManager({
|
|
pluginConfig,
|
|
}),
|
|
});
|
|
},
|
|
};
|
|
|
|
export default plugin;
|