MCPcopy Create free account
hub / github.com/tiann/hapi / parseCodexVersion

Function parseCodexVersion

cli/src/codex/utils/codexVersion.ts:26–33  ·  view source on GitHub ↗
(output: string)

Source from the content-addressed store, hash-verified

24}
25
26export function parseCodexVersion(output: string): string | null {
27 const tuple = parseVersionTuple(output)
28 if (!tuple) {
29 return null
30 }
31
32 return tuple.join('.')
33}
34
35export function isCodexVersionAtLeast(version: string, minimum: string): boolean {
36 const versionTuple = parseVersionTuple(version)

Callers 2

Calls 1

parseVersionTupleFunction · 0.85

Tested by

no test coverage detected