Expand network, consensus, observability, storage, and pear modules

Add manual helpers across connection pool release/close, health probe
clear and peer listing, quorum and distributed lock bulk operations,
session rotation revoke-all, reputation peer reset, flow shaper flush,
circuit breaker reset-all, RPC unregister and pending count, seeder
registry topic management, activity queue clear, semantic vector remove,
core priority fetch pending clear, trust gate untrust-all, and process
spawn kill-all.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 02:53:38 -04:00
co-authored by Cursor
parent 61abf1d069
commit 105e69eb7b
20 changed files with 228 additions and 2 deletions
@@ -32,6 +32,14 @@ class RPCServer extends EventEmitter {
this.services.set(name, { handler, schema })
}
unregister (name) {
return this.services.delete(name)
}
hasService (name) {
return this.services.has(name)
}
handleConnection (socket) {
if (this.connections.has(socket)) return
this.connections.add(socket)
@@ -205,6 +213,10 @@ class RPCClient extends EventEmitter {
})
}
pendingCount () {
return this.pending.size
}
async callStream (method, params = {}, timeoutMs = this.defaultTimeout) {
const id = generateId()
const queue = []