MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / clearUpdateCache

Function clearUpdateCache

src/utils/updateCheck.ts:143–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141
142/** Invalidate the cached "latest" so the next launch re-checks. */
143export function clearUpdateCache(): void {
144 try {
145 fs.unlinkSync(getCachePath());
146 } catch {
147 // ignore
148 }
149}
150
151/** Run `npm install -g <pkg>@latest` and return the exit code (0 = success). */
152export function runNpmUpdate(pkg: string): Promise<number> {

Callers 1

runUpdateFunction · 0.85

Calls 1

getCachePathFunction · 0.85

Tested by

no test coverage detected