mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:40:44 +00:00
Revert "fix(plugins): align beta external launch metadata"
This reverts commit 34581bf46c.
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
"./index.ts"
|
||||
],
|
||||
"install": {
|
||||
"npmSpec": "@openclaw/acpx@beta",
|
||||
"npmSpec": "@openclaw/acpx",
|
||||
"defaultChoice": "npm",
|
||||
"minHostVersion": ">=2026.4.25"
|
||||
},
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
]
|
||||
},
|
||||
"install": {
|
||||
"npmSpec": "@openclaw/googlechat@beta",
|
||||
"npmSpec": "@openclaw/googlechat",
|
||||
"defaultChoice": "npm",
|
||||
"minHostVersion": ">=2026.4.10"
|
||||
},
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
"quickstartAllowFrom": true
|
||||
},
|
||||
"install": {
|
||||
"npmSpec": "@openclaw/line@beta",
|
||||
"npmSpec": "@openclaw/line",
|
||||
"defaultChoice": "npm",
|
||||
"minHostVersion": ">=2026.4.10"
|
||||
},
|
||||
|
||||
@@ -356,7 +356,6 @@
|
||||
"label": "Twitch",
|
||||
"selectionLabel": "Twitch (Chat)",
|
||||
"docsPath": "/channels/twitch",
|
||||
"docsLabel": "twitch",
|
||||
"blurb": "Twitch chat integration",
|
||||
"aliases": ["twitch-chat"]
|
||||
},
|
||||
|
||||
@@ -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([]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user