mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 13:41:37 +00:00
* feat(mxc): add Windows MXC sandbox backend Add the official MXC sandbox plugin package with Windows ProcessContainer execution, plugin-owned MXC SDK dependency packaging, host-backed filesystem bridge support, and configured MXC policy file loading via mxcPolicyPaths. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(mxc): preserve Windows binary override paths * fix: remove stray sandbox barrel export Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ea19539-b8ca-44fb-93bd-b8496e3deb2c * fix(mxc): address sandbox review feedback Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * fix(mxc): satisfy test type checks Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * fix(mxc): clarify protected skill enforcement Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * test(mxc): align fail-closed expectations Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * fix(mxc): satisfy extension lint Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * fix(plugin-sdk): narrow fs-safe remove surface Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * fix(mxc): repair rebased CI failures * fix(scripts): declare shrinkwrap override normalizer --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Gio Della-Libera <235387111+giodl73-repo@users.noreply.github.com> Co-authored-by: Dallin Romney <dallinromney@gmail.com>
25 lines
892 B
TypeScript
25 lines
892 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import plugin from "./index.js";
|
|
import manifest from "./openclaw.plugin.json" with { type: "json" };
|
|
|
|
describe("mxc plugin entry", () => {
|
|
it("stays startup-off until the plugin entry is explicitly enabled", () => {
|
|
expect(manifest.activation).toEqual({
|
|
onStartup: false,
|
|
onConfigPaths: ["plugins.entries.mxc"],
|
|
});
|
|
});
|
|
|
|
it("keeps entry metadata aligned with the manifest", () => {
|
|
expect(plugin.id).toBe(manifest.id);
|
|
expect(plugin.name).toBe(manifest.name);
|
|
expect(plugin.description).toBe(
|
|
"OS-level sandboxed tool execution via MXC: runs commands in a Windows ProcessContainer with configured MXC policy files.",
|
|
);
|
|
});
|
|
|
|
it("wires the runtime config schema into the plugin entry and manifest", () => {
|
|
expect(plugin.configSchema?.jsonSchema).toEqual(manifest.configSchema);
|
|
});
|
|
});
|