mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-08 21:02:55 +00:00
fix(release): align prerelease contracts after provider rename
This commit is contained in:
@@ -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"],
|
||||
},
|
||||
]);
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user