MCPcopy Create free account
hub / github.com/pbakaus/impeccable / writeUpdateCache

Function writeUpdateCache

skill/scripts/context.mjs:741–748  ·  view source on GitHub ↗
(cache)

Source from the content-addressed store, hash-verified

739}
740
741function writeUpdateCache(cache) {
742 try {
743 fs.mkdirSync(path.dirname(UPDATE_CACHE_PATH), { recursive: true });
744 fs.writeFileSync(UPDATE_CACHE_PATH, JSON.stringify(cache));
745 } catch {
746 // Best-effort: a read-only home dir just means we re-poll next session.
747 }
748}
749
750/** Compare dotted numeric versions. Returns >0 when a is newer than b. */
751function compareSemver(a, b) {

Callers 1

computeUpdateDirectiveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected