feat(skin): connect v4 runtime prototype to WebClient

This commit is contained in:
illusia committed 2026-10-10 15:53:50 +08:00
1 parent 7993b38eee
commit 7650bd650b
14 files changed
+683 -49

No files matched your search

+4
View File
@@ -50,6 +50,10 @@ test("v4 plugin descriptors recognize Wasm entries and reject a runtime/file mis
() => parseSkinRuntimePluginDocument(document([{ ...plugin, runtime: "native" }]) as never),
(error: unknown) => error instanceof SkinRuntimePluginValidationError && error.code === "SKIN_RUNTIME_PLUGIN_RUNTIME_INVALID",
);
assert.throws(
() => parseSkinRuntimePluginDocument(document([{ ...plugin, permissions: ["ui.surface.replace"] }]) as never),
(error: unknown) => error instanceof SkinRuntimePluginValidationError && error.code === "SKIN_RUNTIME_PLUGIN_PERMISSION_INVALID",
);
});
test("surface replacement is an explicit page-scoped plugin capability", () => {