Expand category docs and module APIs across the library.
Manual pass adds helpers (listChannels, taskCounts, openProposals), richer getStats with protocol fields, category README hubs, and tightened api.md for core, messaging, network, routing, supercomputer, and consensus modules. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -40,8 +40,12 @@ class HyperP2PStatsExporter extends EventEmitter {
|
||||
return JSON.stringify(this.snapshot(), null, 2)
|
||||
}
|
||||
|
||||
listSources () { return [...this._sources.keys()] }
|
||||
|
||||
hasSource (name) { return this._sources.has(name) }
|
||||
|
||||
getStats () {
|
||||
return { ...this._stats, protocol: PROTOCOL }
|
||||
return { ...this._stats, registered: this._sources.size, protocol: PROTOCOL }
|
||||
}
|
||||
|
||||
async ready () { return this }
|
||||
|
||||
Reference in New Issue
Block a user