Expand collab, network-stack, messaging, storage, pear, and experimental modules

Add manual helpers: overlay topology neighbor management, stream chunker
drainAll, whiteboard and line-lock clear, fork picker and cursor presence
bulk ops, anycast unregister, bandwidth broker reset, log gossip filtering,
bee tombstone clear, gossip mesh clearSeen, update gossip unsubscribeAll,
congestion throttled peers, histogram reset, preflight cancelAll, sticky
session clearAll, gravity well and collab room bulk helpers, stream resume
reset, stream transform clearPending, entropy spiral advanceBatch, and
related list/clear utilities.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 02:56:47 -04:00
co-authored by Cursor
parent aa2de03538
commit 5a24a4eec8
21 changed files with 226 additions and 0 deletions
@@ -91,6 +91,22 @@ class HyperP2PGravityWell extends EventEmitter {
return this._sink.slice(0, Math.max(0, n | 0))
}
wellIds () {
return [...this._wells.keys()]
}
clearSink () {
const n = this._sink.length
this._sink = []
return n
}
clearWells () {
const n = this._wells.size
this._wells.clear()
return n
}
async ready () {
if (this.swarm || !this.topic) return this
await initModuleSwarm(this, {