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:
@@ -271,6 +271,10 @@ class SpatialIndex extends EventEmitter {
|
||||
return [...this.localPoints.keys()]
|
||||
}
|
||||
|
||||
async snapshot () {
|
||||
return { points: this.localPoints.size, ids: this.pointIds() }
|
||||
}
|
||||
|
||||
getStats () {
|
||||
return {
|
||||
...this._stats,
|
||||
|
||||
Reference in New Issue
Block a user