fix(release): align prerelease contracts after provider rename

This commit is contained in:
Peter Steinberger
2026-05-31 00:52:02 +01:00
parent 6270d5326f
commit 16bae70af4
9 changed files with 20 additions and 22 deletions

View File

@@ -287,22 +287,7 @@ describe("activation planner", () => {
{
pluginId: "openai",
origin: "bundled",
reasons: ["manifest-provider-owner"],
},
]);
expect(
resolveManifestActivationPlan({
trigger: {
kind: "provider",
provider: "openai",
},
}).entries,
).toEqual([
{
pluginId: "openai",
origin: "bundled",
reasons: ["manifest-setup-provider-owner"],
reasons: ["manifest-provider-owner", "manifest-setup-provider-owner"],
},
]);

View File

@@ -455,6 +455,9 @@ export function isPluginMetadataSnapshotCompatible(params: {
function appendOwner(owners: Map<string, string[]>, ownedId: string, pluginId: string): void {
const existing = owners.get(ownedId);
if (existing) {
if (existing.includes(pluginId)) {
return;
}
existing.push(pluginId);
return;
}

View File

@@ -379,6 +379,7 @@ describe("plugin registry facade", () => {
path.join(rootDir, "openclaw.plugin.json"),
JSON.stringify({
id: "openai",
legacyPluginIds: ["openai-codex"],
configSchema: { type: "object" },
providers: ["openai", "openai"],
channels: ["openai-chat"],