From df5891b663165d806d99b062d164d037f944bc0b Mon Sep 17 00:00:00 2001 From: Gustavo Madeira Santana Date: Wed, 1 Apr 2026 17:25:32 -0400 Subject: [PATCH] test: guard Matrix packaged runtime shim --- test/scripts/bundled-plugin-build-entries.test.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/scripts/bundled-plugin-build-entries.test.ts b/test/scripts/bundled-plugin-build-entries.test.ts index 765fc362af2..d7cda2ae873 100644 --- a/test/scripts/bundled-plugin-build-entries.test.ts +++ b/test/scripts/bundled-plugin-build-entries.test.ts @@ -19,6 +19,15 @@ describe("bundled plugin build entries", () => { }); }); + it("keeps the Matrix packaged runtime shim in bundled plugin build entries", () => { + const entries = listBundledPluginBuildEntries(); + + expect(entries).toMatchObject({ + "extensions/matrix/plugin-entry.handlers.runtime": + "extensions/matrix/plugin-entry.handlers.runtime.ts", + }); + }); + it("packs runtime core support packages without requiring plugin manifests", () => { const artifacts = listBundledPluginPackArtifacts(); @@ -32,4 +41,10 @@ describe("bundled plugin build entries", () => { expect(artifacts).toContain("dist/extensions/speech-core/runtime-api.js"); expect(artifacts).not.toContain("dist/extensions/speech-core/openclaw.plugin.json"); }); + + it("packs the Matrix packaged runtime shim", () => { + const artifacts = listBundledPluginPackArtifacts(); + + expect(artifacts).toContain("dist/extensions/matrix/plugin-entry.handlers.runtime.js"); + }); });