feat(supercomputer,experimental): deepen share, steal, beacon, whisper

Bandwidth revoke/best offer, work-stealer batch/flush, entropy snapshot,
whisper clearSeen, and phase-shift setPhase/maxPeerDelta.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 02:28:21 -04:00
co-authored by Cursor
parent 8ac24ac6a2
commit a4e9131f66
7 changed files with 73 additions and 4 deletions
@@ -87,6 +87,18 @@ class HyperP2PWorkStealer extends EventEmitter {
return null
}
pushBatch (shard, tasks) {
if (!Array.isArray(tasks)) throw new Error('tasks array required')
return tasks.map((task) => this.push(shard, task))
}
flushShard (shard = 'default') {
const q = this._queue(shard)
const n = q.length
q.length = 0
return n
}
async ready () {
if (this.swarm || !this.topic) return this
await initModuleSwarm(this, {