惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MyScale Blog
MyScale Blog
F
Fortinet All Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
V
Visual Studio Blog
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
L
LangChain Blog
Vercel News
Vercel News
阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
P
Proofpoint News Feed
博客园_首页
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Check Point Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(plugins): stop ClawHub version install from inheritin...
IsaiahStaple · 2026-06-25 · via Recent Commits to openclaw:main

@@ -810,6 +810,173 @@ describe("installPluginFromClawHub", () => {

810810

expect(success.clawhub?.clawpackSize).toBeUndefined();

811811

});

812812813+

it("does not inherit package-level compatibility when version-specific compatibility is absent for pinned older version", async () => {

814+

parseClawHubPluginSpecMock.mockReturnValueOnce({ name: "demo", version: "2026.6.8" });

815+

resolveLatestVersionFromPackageMock.mockReturnValue("2026.6.10");

816+

fetchClawHubPackageDetailMock.mockResolvedValueOnce({

817+

package: {

818+

name: "demo",

819+

displayName: "Demo",

820+

family: "code-plugin",

821+

channel: "official",

822+

isOfficial: true,

823+

createdAt: 0,

824+

updatedAt: 0,

825+

latestVersion: "2026.6.10",

826+

compatibility: {

827+

pluginApiRange: ">=2026.6.10",

828+

minGatewayVersion: "2026.6.10",

829+

},

830+

},

831+

});

832+

resolveCompatibilityHostVersionMock.mockReturnValue("2026.6.8");

833+

fetchClawHubPackageVersionMock.mockResolvedValueOnce({

834+

version: {

835+

version: "2026.6.8",

836+

createdAt: 0,

837+

changelog: "",

838+

sha256hash: "a9eac48c6129bc44b6f93c9a9f48f6c700d191b7279a1e1915f28df6f59bb1af",

839+

},

840+

});

841+842+

const result = await installPluginFromClawHub({

843+

spec: "clawhub:demo@2026.6.8",

844+

baseUrl: "https://clawhub.ai",

845+

});

846+847+

expectSuccessfulClawHubInstall(result);

848+

});

849+850+

it("recovers version-specific compatibility from version endpoint when artifact metadata is sparse", async () => {

851+

parseClawHubPluginSpecMock.mockReturnValueOnce({ name: "demo", version: "2026.6.8" });

852+

resolveLatestVersionFromPackageMock.mockReturnValue("2026.6.10");

853+

fetchClawHubPackageDetailMock.mockResolvedValueOnce({

854+

package: {

855+

name: "demo",

856+

displayName: "Demo",

857+

family: "code-plugin",

858+

channel: "official",

859+

isOfficial: true,

860+

createdAt: 0,

861+

updatedAt: 0,

862+

latestVersion: "2026.6.10",

863+

compatibility: {

864+

pluginApiRange: ">=2026.6.10",

865+

minGatewayVersion: "2026.6.10",

866+

},

867+

},

868+

});

869+

resolveCompatibilityHostVersionMock.mockReturnValue("2026.6.5");

870+

// Artifact endpoint returns sparse metadata (no compatibility).

871+

fetchClawHubPackageArtifactMock.mockResolvedValueOnce({

872+

version: {

873+

version: "2026.6.8",

874+

createdAt: 0,

875+

changelog: "",

876+

sha256hash: "a9eac48c6129bc44b6f93c9a9f48f6c700d191b7279a1e1915f28df6f59bb1af",

877+

},

878+

});

879+

// Version endpoint has the real version-specific compatibility.

880+

fetchClawHubPackageVersionMock.mockResolvedValueOnce({

881+

version: {

882+

version: "2026.6.8",

883+

createdAt: 0,

884+

changelog: "",

885+

sha256hash: "a9eac48c6129bc44b6f93c9a9f48f6c700d191b7279a1e1915f28df6f59bb1af",

886+

compatibility: {

887+

pluginApiRange: ">=2026.6.8",

888+

minGatewayVersion: "2026.6.8",

889+

},

890+

},

891+

});

892+893+

const result = await installPluginFromClawHub({

894+

spec: "clawhub:demo@2026.6.8",

895+

baseUrl: "https://clawhub.ai",

896+

});

897+898+

const failure = expectInstallFailure(result);

899+

expect(failure.error).toContain("2026.6.8");

900+

});

901+902+

it("fails closed when version endpoint is unavailable for sparse artifact metadata on pinned version", async () => {

903+

parseClawHubPluginSpecMock.mockReturnValueOnce({ name: "demo", version: "2026.6.8" });

904+

resolveLatestVersionFromPackageMock.mockReturnValue("2026.6.10");

905+

fetchClawHubPackageDetailMock.mockResolvedValueOnce({

906+

package: {

907+

name: "demo",

908+

displayName: "Demo",

909+

family: "code-plugin",

910+

channel: "official",

911+

isOfficial: true,

912+

createdAt: 0,

913+

updatedAt: 0,

914+

latestVersion: "2026.6.10",

915+

compatibility: {

916+

pluginApiRange: ">=2026.6.10",

917+

minGatewayVersion: "2026.6.10",

918+

},

919+

},

920+

});

921+

resolveCompatibilityHostVersionMock.mockReturnValue("2026.6.8");

922+

// Artifact endpoint returns sparse metadata (no compatibility).

923+

fetchClawHubPackageArtifactMock.mockResolvedValueOnce({

924+

version: {

925+

version: "2026.6.8",

926+

createdAt: 0,

927+

changelog: "",

928+

sha256hash: "a9eac48c6129bc44b6f93c9a9f48f6c700d191b7279a1e1915f28df6f59bb1af",

929+

},

930+

});

931+

// Version endpoint fails.

932+

fetchClawHubPackageVersionMock.mockRejectedValueOnce(new Error("500 Internal Server Error"));

933+934+

const result = await installPluginFromClawHub({

935+

spec: "clawhub:demo@2026.6.8",

936+

baseUrl: "https://clawhub.ai",

937+

});

938+939+

const failure = expectInstallFailure(result);

940+

expect(failure.ok).toBe(false);

941+

});

942+943+

it("enforces package-level compatibility for unpinned latest install when version response omits compatibility", async () => {

944+

resolveLatestVersionFromPackageMock.mockReturnValue("2026.6.10");

945+

fetchClawHubPackageDetailMock.mockResolvedValueOnce({

946+

package: {

947+

name: "demo",

948+

displayName: "Demo",

949+

family: "code-plugin",

950+

channel: "official",

951+

isOfficial: true,

952+

createdAt: 0,

953+

updatedAt: 0,

954+

latestVersion: "2026.6.10",

955+

compatibility: {

956+

pluginApiRange: ">=2026.6.10",

957+

minGatewayVersion: "2026.6.10",

958+

},

959+

},

960+

});

961+

resolveCompatibilityHostVersionMock.mockReturnValue("2026.6.8");

962+

fetchClawHubPackageVersionMock.mockResolvedValueOnce({

963+

version: {

964+

version: "2026.6.10",

965+

createdAt: 0,

966+

changelog: "",

967+

sha256hash: "a9eac48c6129bc44b6f93c9a9f48f6c700d191b7279a1e1915f28df6f59bb1af",

968+

},

969+

});

970+971+

const result = await installPluginFromClawHub({

972+

spec: "clawhub:demo",

973+

baseUrl: "https://clawhub.ai",

974+

});

975+976+

const failure = expectInstallFailure(result);

977+

expect(failure.error).toContain("2026.6.10");

978+

});

979+813980

it("installs when ClawHub advertises a wildcard plugin API range", async () => {

814981

fetchClawHubPackageVersionMock.mockResolvedValueOnce({

815982

version: {