Expand messaging, network, consensus, and platform module APIs.

Add batch helpers, clear utilities, and count methods for qos topics, brokers, probes, leases, locks, and registry modules.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 03:34:42 -04:00
co-authored by Cursor
parent e62d474134
commit 67219df1e1
21 changed files with 203 additions and 0 deletions
+11
View File
@@ -107,6 +107,17 @@ class HyperP2PGpuSlot extends EventEmitter {
return n
}
registerSlotBatch (entries) {
if (!Array.isArray(entries)) throw new Error('entries array required')
return entries.map((e) => this.registerSlot(e.slotId, e.caps || {}))
}
clearAll () {
const n = this._slots.size
this._slots.clear()
return n
}
async ready () {
if (this.swarm || !this.topic) return this
await initModuleSwarm(this, {