mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-27 06:09:33 +00:00
fix: include persisted plugin contracts for migrations (#89612)
This commit is contained in:
@@ -63,7 +63,6 @@ describe("resolveManifestContractRuntimePluginResolution", () => {
|
||||
expect(loadPluginMetadataSnapshot).toHaveBeenCalledWith({
|
||||
config: {},
|
||||
env: process.env,
|
||||
preferPersisted: false,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -13,10 +13,6 @@ export type ManifestContractRuntimePluginResolution = {
|
||||
bundledCompatPluginIds: string[];
|
||||
};
|
||||
|
||||
const DEMAND_ONLY_CONTRACT_LOOKUP_OPTIONS = {
|
||||
preferPersisted: false,
|
||||
} as const;
|
||||
|
||||
export function resolveManifestContractRuntimePluginResolution(params: {
|
||||
cfg?: OpenClawConfig;
|
||||
contract: PluginManifestContractListKey;
|
||||
@@ -25,7 +21,6 @@ export function resolveManifestContractRuntimePluginResolution(params: {
|
||||
const snapshot = loadPluginMetadataSnapshot({
|
||||
config: params.cfg ?? {},
|
||||
env: process.env,
|
||||
...DEMAND_ONLY_CONTRACT_LOOKUP_OPTIONS,
|
||||
});
|
||||
const allContractPlugins = snapshot.plugins.filter((plugin) =>
|
||||
hasManifestContractValue({
|
||||
|
||||
@@ -226,7 +226,6 @@ describe("migration provider runtime", () => {
|
||||
expect(mocks.loadPluginRegistrySnapshotWithMetadata).toHaveBeenCalledWith({
|
||||
config: cfg,
|
||||
env: process.env,
|
||||
preferPersisted: false,
|
||||
});
|
||||
const manifestParams = requireMockCallArg(
|
||||
mocks.loadPluginManifestRegistry,
|
||||
@@ -289,7 +288,6 @@ describe("migration provider runtime", () => {
|
||||
expect(mocks.loadPluginRegistrySnapshotWithMetadata).toHaveBeenCalledWith({
|
||||
config: {},
|
||||
env: process.env,
|
||||
preferPersisted: false,
|
||||
workspaceDir: undefined,
|
||||
});
|
||||
const manifestParams = requireMockCallArg(
|
||||
|
||||
Reference in New Issue
Block a user