MCPcopy
hub / github.com/CodebuffAI/codebuff / isGreater

Function isGreater

packages/internal/src/utils/version-utils.ts:39–49  ·  view source on GitHub ↗
(v1: Version, v2: Version)

Source from the content-addressed store, hash-verified

37}
38
39export function isGreater(v1: Version, v2: Version): boolean {
40 if (v1.major !== v2.major) {
41 return v1.major > v2.major
42 }
43
44 if (v1.minor !== v2.minor) {
45 return v1.minor > v2.minor
46 }
47
48 return v1.patch > v2.patch
49}
50
51/**
52 * Get the latest version for an agent from the database

Callers 2

determineNextVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected