refactor(plugins): remove extension jiti test hooks

This commit is contained in:
Peter Steinberger
2026-05-01 23:43:09 +01:00
parent 194c516957
commit 8043923910
8 changed files with 19 additions and 272 deletions

View File

@@ -192,7 +192,7 @@ collapsed here.
### Fixes
- Plugins/bundled runtimes: ship bundled plugin runtime sidecars like WhatsApp `light-runtime-api.js`, Matrix `runtime-api.js`, and other plugin runtime entry files in the npm package again, so global installs stop failing on missing bundled plugin runtime surfaces.
- Plugins/Matrix: avoid duplicate `resolveMatrixAccountStringValues` runtime-api exports under Jiti so bundled Matrix installs no longer crash at startup with `Cannot redefine property: resolveMatrixAccountStringValues`. Fixes #52909 and #52891. Thanks @vincentkoc.
- Plugins/Matrix: avoid duplicate `resolveMatrixAccountStringValues` runtime-api exports under source loaders so bundled Matrix installs no longer crash at startup with `Cannot redefine property: resolveMatrixAccountStringValues`. Fixes #52909 and #52891. Thanks @vincentkoc.
## 2026.3.22

View File

@@ -123,16 +123,11 @@ it("loads the packaged runtime wrapper without recursing through the stable root
);
}, 240_000);
it("does not use Jiti when only a TypeScript Matrix runtime shim exists", async () => {
it("does not load when only a TypeScript Matrix runtime shim exists", async () => {
const fixtureRoot = makeFixtureRoot(".tmp-matrix-runtime-ts-only-");
writeOpenClawPackageFixture(fixtureRoot);
writeSourceRuntimeWrapperFixture(fixtureRoot, { runtimeExtension: ".ts" });
writeFixtureFile(
fixtureRoot,
"node_modules/jiti/index.js",
"throw new Error('matrix wrapper must not require jiti');\n",
);
await expect(
importFixtureModule(fixtureRoot, "extensions/matrix/src/plugin-entry.runtime.js"),