Expand media, trust, encoding, consensus, and scheduling APIs

Add buffer health, graph clearing, codec registry counts, bitfield queue helpers, causal consensus listing, cron job utilities, and oracle feed management helpers.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 03:06:27 -04:00
co-authored by Cursor
parent 71056e533a
commit b663b5413c
7 changed files with 76 additions and 0 deletions
@@ -399,6 +399,20 @@ class HyperP2PCausalConsensus extends EventEmitter {
return Array.from(this.decidedOrders.values()).sort((a, b) => a.order - b.order)
}
pendingProposals () {
return [...this.proposals.values()].filter((p) => p.status === 'pending')
}
proposalIds () {
return [...this.proposals.keys()]
}
clearDecided () {
const n = this.decidedOrders.size
this.decidedOrders.clear()
return n
}
getMetrics () {
return { ...this._metrics, peers: this.peers.size, pendingProposals: this.proposals.size - this.decidedOrders.size }
}