MCPcopy Create free account
hub / github.com/EvoMap/evolver / _recentlySpawned

Function _recentlySpawned

src/atp/atpTaskPickup.js:90–95  ·  view source on GitHub ↗
(ledger, taskId)

Source from the content-addressed store, hash-verified

88}
89
90function _recentlySpawned(ledger, taskId) {
91 const entry = ledger.spawned && ledger.spawned[taskId];
92 if (!entry || typeof entry !== 'object') return false;
93 const ts = Number(entry.at) || 0;
94 return Date.now() - ts < SPAWN_COOLDOWN_MS;
95}
96
97function _clipQuestion(q) {
98 const s = String(q || '').trim();

Callers 1

pickOneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected