Add batch helpers and domain utilities across modules missing Batch APIs.
Third enrichment pass: *Batch methods for agents, economy, consensus, core, messaging, network, observability, pear-platform, scheduling, storage, supercomputer, and time-ordering modules. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -147,6 +147,11 @@ class HyperPearPreflightSync extends EventEmitter {
|
||||
return { jobs: this._jobs.size, pending: this.listPending().length }
|
||||
}
|
||||
|
||||
startBatch (entries) {
|
||||
if (!Array.isArray(entries)) throw new Error('entries array required')
|
||||
return entries.map((e) => this.start(e.target, e.meta || {}))
|
||||
}
|
||||
|
||||
getStats () {
|
||||
return platformStats(this._stats, PROTOCOL, {
|
||||
jobs: this._jobs.size,
|
||||
|
||||
Reference in New Issue
Block a user