Revert "fix(plugins): align beta external launch metadata"

This reverts commit 34581bf46c.
This commit is contained in:
Vincent Koc
2026-05-03 02:53:36 -07:00
parent 34581bf46c
commit 3ee5df618a
5 changed files with 3 additions and 43 deletions

View File

@@ -20,7 +20,7 @@
"./index.ts"
],
"install": {
"npmSpec": "@openclaw/acpx@beta",
"npmSpec": "@openclaw/acpx",
"defaultChoice": "npm",
"minHostVersion": ">=2026.4.25"
},

View File

@@ -70,7 +70,7 @@
]
},
"install": {
"npmSpec": "@openclaw/googlechat@beta",
"npmSpec": "@openclaw/googlechat",
"defaultChoice": "npm",
"minHostVersion": ">=2026.4.10"
},

View File

@@ -40,7 +40,7 @@
"quickstartAllowFrom": true
},
"install": {
"npmSpec": "@openclaw/line@beta",
"npmSpec": "@openclaw/line",
"defaultChoice": "npm",
"minHostVersion": ">=2026.4.10"
},

View File

@@ -356,7 +356,6 @@
"label": "Twitch",
"selectionLabel": "Twitch (Chat)",
"docsPath": "/channels/twitch",
"docsLabel": "twitch",
"blurb": "Twitch chat integration",
"aliases": ["twitch-chat"]
},

View File

@@ -1,5 +1,3 @@
import fs from "node:fs";
import path from "node:path";
import { describe, expect, it } from "vitest";
import {
getOfficialExternalPluginCatalogEntry,
@@ -48,41 +46,4 @@ describe("official external plugin catalog", () => {
expect(ids.has("matrix")).toBe(false);
expect(ids.has("mattermost")).toBe(false);
});
it("keeps local package install metadata aligned with external catalog specs", () => {
const mismatches: string[] = [];
for (const entry of listOfficialExternalPluginCatalogEntries()) {
const pluginId = resolveOfficialExternalPluginId(entry);
const catalogInstall = resolveOfficialExternalPluginInstall(entry);
if (!pluginId || !catalogInstall) {
continue;
}
const packagePath = path.join("extensions", pluginId, "package.json");
if (!fs.existsSync(packagePath)) {
continue;
}
const packageJson = JSON.parse(fs.readFileSync(packagePath, "utf8")) as {
openclaw?: {
install?: {
clawhubSpec?: string;
npmSpec?: string;
};
};
};
const packageInstall = packageJson.openclaw?.install ?? {};
if (packageInstall.npmSpec && packageInstall.npmSpec !== catalogInstall.npmSpec) {
mismatches.push(
`${pluginId} npmSpec catalog=${catalogInstall.npmSpec ?? "<none>"} package=${packageInstall.npmSpec}`,
);
}
if (packageInstall.clawhubSpec && packageInstall.clawhubSpec !== catalogInstall.clawhubSpec) {
mismatches.push(
`${pluginId} clawhubSpec catalog=${catalogInstall.clawhubSpec ?? "<none>"} package=${packageInstall.clawhubSpec}`,
);
}
}
expect(mismatches).toEqual([]);
});
});