MCPcopy Create free account
hub / github.com/ResearAI/DeepScientist / markUpdateDeferred

Function markUpdateDeferred

bin/ds.js:589–598  ·  view source on GitHub ↗
(home, version)

Source from the content-addressed store, hash-verified

587}
588
589function markUpdateDeferred(home, version) {
590 const normalizedVersion = normalizeVersion(version || readUpdateState(home).latest_version || '');
591 const patched = mergeUpdateState(home, {
592 last_prompted_at: new Date().toISOString(),
593 last_deferred_at: new Date().toISOString(),
594 last_prompted_version: normalizedVersion || null,
595 latest_version: normalizedVersion || null,
596 });
597 return buildUpdateStatus(home, patched);
598}
599
600function markUpdateSkipped(home, version) {
601 const normalized = normalizeVersion(version);

Callers 2

maybeHandleStartupUpdateFunction · 0.85
updateMainFunction · 0.85

Calls 4

normalizeVersionFunction · 0.85
readUpdateStateFunction · 0.85
mergeUpdateStateFunction · 0.85
buildUpdateStatusFunction · 0.85

Tested by

no test coverage detected