mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:20:43 +00:00
refactor(plugins): remove extension jiti test hooks
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user