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

Function addVersion

src/artifacts/store.ts:111–119  ·  view source on GitHub ↗
(manifest: ArtifactManifest, file: string, now: string, note?: string)

Source from the content-addressed store, hash-verified

109
110/** Append a new version to a manifest and make it current (immutably). */
111export function addVersion(manifest: ArtifactManifest, file: string, now: string, note?: string): ArtifactManifest {
112 const v = nextVersionNumber(manifest);
113 return {
114 ...manifest,
115 updatedAt: now,
116 current: v,
117 versions: [...manifest.versions, { v, file, createdAt: now, ...(note ? { note } : {}) }],
118 };
119}
120
121// ── path helpers ──────────────────────────────────────────────────────────────
122

Callers 2

updateArtifactFunction · 0.85

Calls 1

nextVersionNumberFunction · 0.85

Tested by

no test coverage detected