MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / nextVersionNumber

Function nextVersionNumber

src/artifacts/store.ts:96–98  ·  view source on GitHub ↗
(manifest: ArtifactManifest)

Source from the content-addressed store, hash-verified

94
95/** Next version number for a manifest (max existing + 1). */
96export function nextVersionNumber(manifest: ArtifactManifest): number {
97 return manifest.versions.reduce((max, v) => Math.max(max, v.v), 0) + 1;
98}
99
100/** Build a fresh manifest for a new artifact's first version. */
101export function buildManifest(id: string, title: string, type: ArtifactType, file: string, now: string, note?: string): ArtifactManifest {

Callers 3

addVersionFunction · 0.85
updateArtifactFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected