Add toJSON() serialization helpers across all module categories on main.
Fourth pass: toJSON() delegates to snapshot() (or exportSnapshot/stateSnapshot) for JSON export and logging across agents, applications, consensus, core, encoding, experimental, indexes, media, messaging, network, observability, pear-platform, routing, scheduling, storage, supercomputer, trust, measurement, oracles, and time-ordering modules. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -147,6 +147,10 @@ class HyperPearPreflightSync extends EventEmitter {
|
||||
return { jobs: this._jobs.size, pending: this.listPending().length }
|
||||
}
|
||||
|
||||
toJSON () {
|
||||
return this.snapshot()
|
||||
}
|
||||
|
||||
startBatch (entries) {
|
||||
if (!Array.isArray(entries)) throw new Error('entries array required')
|
||||
return entries.map((e) => this.start(e.target, e.meta || {}))
|
||||
|
||||
Reference in New Issue
Block a user