Expand messaging, routing, measurement, storage, oracle, and time modules

Add subscription lease release-all and clear, intent router bulk
unregister, bucket rate limit token probe, drive GC stale clear,
oracle feed clear and latest aggregate, and temporal index remove/clear.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 02:54:11 -04:00
co-authored by Cursor
parent 105e69eb7b
commit aa2de03538
6 changed files with 83 additions and 0 deletions
@@ -106,6 +106,20 @@ class HyperP2PSubscriptionLease extends EventEmitter {
return this.activeLeases().length
}
releaseAll () {
let n = 0
for (const channel of this.listChannels()) {
if (this.release(channel)) n++
}
return n
}
clearAll () {
const n = this._leases.size
this._leases.clear()
return n
}
_expireSweep () {
const now = Date.now()
for (const [ch, lease] of this._leases) {