
























@@ -3,7 +3,10 @@ import os from "node:os";
33import path from "node:path";
44import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
55import { resolveRegistryUpdateChannel } from "../../../infra/update-channels.js";
6-import { resolveNpmInstallSpecsForUpdateChannel } from "../../../plugins/install-channel-specs.js";
6+import {
7+resolveClawHubInstallSpecsForUpdateChannel,
8+resolveNpmInstallSpecsForUpdateChannel,
9+} from "../../../plugins/install-channel-specs.js";
710import { VERSION } from "../../../version.js";
811912function expectedNpmInstallSpec(spec: string): string {
@@ -13,6 +16,13 @@ function expectedNpmInstallSpec(spec: string): string {
1316}).installSpec;
1417}
151819+function expectedClawHubInstallSpec(spec: string): string {
20+return resolveClawHubInstallSpecsForUpdateChannel({
21+ spec,
22+updateChannel: resolveRegistryUpdateChannel({ currentVersion: VERSION }),
23+}).installSpec;
24+}
25+1626function expectRecordFields(record: unknown, expected: Record<string, unknown>) {
1727if (!record || typeof record !== "object") {
1828throw new Error("Expected record");
@@ -1264,7 +1274,7 @@ describe("repairMissingConfiguredPluginInstalls", () => {
12641274});
1265127512661276expectRecordFields(mockCallArg(mocks.installPluginFromClawHub), {
1267-spec: "clawhub:@openclaw/whatsapp",
1277+spec: expectedClawHubInstallSpec("clawhub:@openclaw/whatsapp"),
12681278env: {
12691279OPENCLAW_COMPATIBILITY_HOST_VERSION: "2026.5.19",
12701280OPENCLAW_UPDATE_POST_CORE_CONVERGENCE: "1",
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。