MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / parseLatestTagFromLocation

Function parseLatestTagFromLocation

src/upgrade/index.ts:209–213  ·  view source on GitHub ↗
(location: string | undefined)

Source from the content-addressed store, hash-verified

207 * `/releases/latest` → `…/releases/tag/v0.9.9`. Pure so it's unit-tested.
208 */
209export function parseLatestTagFromLocation(location: string | undefined): string | null {
210 if (!location) return null;
211 const m = /\/releases\/tag\/([^/?#]+)/.exec(location);
212 return m ? decodeURIComponent(m[1]!) : null;
213}
214
215// ---------------------------------------------------------------------------
216// Latest-version resolution (network)

Callers 2

upgrade.test.tsFile · 0.90
resolveLatestVersionFunction · 0.85

Calls 1

execMethod · 0.65

Tested by

no test coverage detected