MCPcopy Create free account
hub / github.com/backnotprop/plannotator / parseSemVersion

Function parseSemVersion

packages/shared/semantic-diff.ts:223–226  ·  view source on GitHub ↗
(stdout: string)

Source from the content-addressed store, hash-verified

221}
222
223export function parseSemVersion(stdout: string): string | null {
224 const match = stdout.trim().match(/^sem\s+([0-9]+(?:\.[0-9]+){1,3}(?:[-+][^\s]+)?)/);
225 return match?.[1] ?? null;
226}
227
228async function resolveSem(runtime: SemanticDiffRuntime): Promise<ResolvedSem | SemResolveFailure> {
229 for (const candidate of semCandidates(runtime)) {

Callers 2

resolveSemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected