Complete module API expansion: snapshot() on all remaining modules.

Adds snapshot(), clearAll aliases, and batch helpers across storage (hyperbee, hypercore, hyperdrive, autobase), indexes, pear-platform, trust, routing intent-router, and temporal-index.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 04:07:12 -04:00
co-authored by Cursor
parent 38e30b63a1
commit 557c7e83b6
43 changed files with 190 additions and 0 deletions
@@ -111,6 +111,10 @@ class HyperP2PCoreBitfieldScheduler extends EventEmitter {
return { queue: q, served: s }
}
snapshot () {
return { pending: this._queue.length, served: this._served.size }
}
getStats () {
return coreStats(this._stats, PROTOCOL, {
pending: this._queue.length,