




















@@ -1,5 +1,6 @@
11import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
22import type { OpenClawConfig } from "../config/config.js";
3+import { resolveInstalledPluginIndexPolicyHash } from "./installed-plugin-index-policy.js";
34import { createEmptyPluginRegistry } from "./registry.js";
4556type MockManifestRegistry = {
@@ -302,7 +303,7 @@ describe("resolvePluginCapabilityProviders", () => {
302303303304it("resolves bundled capability ids from the current metadata snapshot", () => {
304305setCurrentPluginMetadataSnapshot({
305-policyHash: "policy",
306+policyHash: resolveInstalledPluginIndexPolicyHash({}),
306307workspaceDir: "/workspace",
307308index: { plugins: [] },
308309registryDiagnostics: [],
@@ -348,7 +349,7 @@ describe("resolvePluginCapabilityProviders", () => {
348349349350it("resolves enabled external capability ids from the current metadata snapshot", () => {
350351setCurrentPluginMetadataSnapshot({
351-policyHash: "policy",
352+policyHash: resolveInstalledPluginIndexPolicyHash({}),
352353workspaceDir: "/workspace",
353354index: {
354355plugins: [
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。