feat(modules): manual deepen pear, trust, crdt, storage, gossip, network

Trust gate and detached registry helpers, blind handoff cancel, LWW
snapshot/compare, fork forceChoose, dedup restore, DHT prune, indexer
bus subscribers, inverted hasDoc, similarity listIds.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 02:31:04 -04:00
co-authored by Cursor
parent f370b86662
commit bed98ff300
18 changed files with 163 additions and 8 deletions
@@ -74,6 +74,23 @@ class HyperPearWorkerPipe extends EventEmitter {
return true
}
peek (pipeId) {
const p = this._pipes.get(assertId(pipeId))
return p ? [...p.buffer] : []
}
pipeCount () {
return this._pipes.size
}
flushAll () {
let n = 0
for (const id of this._pipes.keys()) {
n += this.drain(id).length
}
return n
}
getStats () {
return platformStats(this._stats, PROTOCOL, { pipes: this._pipes.size })
}