fix: stop generating qa npm sidecars

This commit is contained in:
Peter Steinberger
2026-04-22 23:10:53 +01:00
parent f66098f8f6
commit a32a6c2f89
10 changed files with 15 additions and 119 deletions

View File

@@ -14,21 +14,6 @@ export const BUILD_ALL_STEPS = [
{ label: "canvas:a2ui:bundle", kind: "pnpm", pnpmArgs: ["canvas:a2ui:bundle"] },
{ label: "tsdown", kind: "node", args: ["scripts/tsdown-build.mjs"] },
{ label: "runtime-postbuild", kind: "node", args: ["scripts/runtime-postbuild.mjs"] },
{
label: "write-npm-update-compat-sidecars",
kind: "node",
args: ["--import", "tsx", "scripts/write-npm-update-compat-sidecars.ts"],
cache: {
inputs: [
"scripts/write-npm-update-compat-sidecars.ts",
"src/infra/npm-update-compat-sidecars.ts",
],
outputs: [
"dist/extensions/qa-channel/runtime-api.js",
"dist/extensions/qa-lab/runtime-api.js",
],
},
},
{ label: "build-stamp", kind: "node", args: ["scripts/build-stamp.mjs"] },
{
label: "build:plugin-sdk:dts",
@@ -107,7 +92,6 @@ export const BUILD_ALL_PROFILES = {
"canvas:a2ui:bundle",
"tsdown",
"runtime-postbuild",
"write-npm-update-compat-sidecars",
"build-stamp",
"canvas-a2ui-copy",
"copy-hook-metadata",

View File

@@ -51,7 +51,6 @@ parallels_package_run_with_build_lock() {
}
parallels_package_write_dist_inventory() {
node --import tsx scripts/write-npm-update-compat-sidecars.ts
node --import tsx --input-type=module --eval \
'import { writePackageDistInventory } from "./src/infra/package-dist-inventory.ts"; await writePackageDistInventory(process.cwd());'
}

View File

@@ -44,16 +44,9 @@ type InstalledBundledExtensionManifestRecord = {
const MAX_BUNDLED_EXTENSION_MANIFEST_BYTES = 1024 * 1024;
const LEGACY_CONTEXT_ENGINE_UNRESOLVED_RUNTIME_MARKER =
"Failed to load legacy context engine runtime.";
const LEGACY_UPDATE_COMPAT_RUNTIME_SIDECAR_PATHS = [
"dist/extensions/qa-channel/runtime-api.js",
"dist/extensions/qa-lab/runtime-api.js",
] as const;
const PUBLISHED_BUNDLED_RUNTIME_SIDECAR_PATHS = [
...BUNDLED_RUNTIME_SIDECAR_PATHS.filter((relativePath) =>
listBundledPluginPackArtifacts().includes(relativePath),
),
...LEGACY_UPDATE_COMPAT_RUNTIME_SIDECAR_PATHS,
] as const;
const PUBLISHED_BUNDLED_RUNTIME_SIDECAR_PATHS = BUNDLED_RUNTIME_SIDECAR_PATHS.filter(
(relativePath) => listBundledPluginPackArtifacts().includes(relativePath),
);
export type PublishedInstallScenario = {
name: string;

View File

@@ -34,20 +34,7 @@ const DEFAULT_PACKAGE_ROOT = join(__dirname, "..");
const DISABLE_POSTINSTALL_ENV = "OPENCLAW_DISABLE_BUNDLED_PLUGIN_POSTINSTALL";
const EAGER_BUNDLED_PLUGIN_DEPS_ENV = "OPENCLAW_EAGER_BUNDLED_PLUGIN_DEPS";
const DIST_INVENTORY_PATH = "dist/postinstall-inventory.json";
const LEGACY_UPDATE_COMPAT_SIDECARS = [
{
path: "dist/extensions/qa-channel/runtime-api.js",
removedPrefix: "dist/extensions/qa-channel/",
content:
"// Compatibility stub for older OpenClaw updaters. The QA channel implementation is not packaged.\nexport {};\n",
},
{
path: "dist/extensions/qa-lab/runtime-api.js",
removedPrefix: "dist/extensions/qa-lab/",
content:
"// Compatibility stub for older OpenClaw updaters. The QA lab implementation is not packaged.\nexport {};\n",
},
];
const LEGACY_UPDATE_COMPAT_SIDECARS = [];
const BAILEYS_MEDIA_FILE = join(
"node_modules",
"@whiskeysockets",