refactor: route plugin runtime through bundled seams

This commit is contained in:
Peter Steinberger
2026-03-27 16:36:43 +00:00
parent e425056aa3
commit ed055f44ae
87 changed files with 2129 additions and 1582 deletions

View File

@@ -47,6 +47,7 @@
"account-helpers",
"account-id",
"account-resolution",
"agent-config-primitives",
"allow-from",
"allowlist-config-edit",
"bluebubbles",
@@ -62,6 +63,7 @@
"discord-core",
"extension-shared",
"channel-config-helpers",
"channel-config-primitives",
"channel-config-schema",
"channel-actions",
"channel-contract",

View File

@@ -5,17 +5,9 @@ import { existsSync, mkdtempSync, readFileSync, rmSync } from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { pathToFileURL } from "node:url";
import { BUNDLED_RUNTIME_SIDECAR_PATHS } from "../src/plugins/public-artifacts.ts";
import { parseReleaseVersion, resolveNpmCommandInvocation } from "./openclaw-npm-release-check.ts";
const REQUIRED_RUNTIME_SIDECARS = [
"dist/extensions/whatsapp/light-runtime-api.js",
"dist/extensions/whatsapp/runtime-api.js",
"dist/extensions/matrix/helper-api.js",
"dist/extensions/matrix/runtime-api.js",
"dist/extensions/matrix/thread-bindings-runtime.js",
"dist/extensions/msteams/runtime-api.js",
] as const;
type InstalledPackageJson = {
version?: string;
};
@@ -65,7 +57,7 @@ export function collectInstalledPackageErrors(params: {
);
}
for (const relativePath of REQUIRED_RUNTIME_SIDECARS) {
for (const relativePath of BUNDLED_RUNTIME_SIDECAR_PATHS) {
if (!existsSync(join(params.packageRoot, relativePath))) {
errors.push(`installed package is missing required bundled runtime sidecar: ${relativePath}`);
}