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:
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user