Expand pear-platform, observability, messaging, and network module APIs

Add batch parse, registry, log filtering, stream helpers, routing utilities, handshake management, and related clear/list/count methods across shorter modules.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 03:12:42 -04:00
co-authored by Cursor
parent b663b5413c
commit c3b112f435
26 changed files with 278 additions and 4 deletions
@@ -83,6 +83,16 @@ class HyperPearDeepLink extends EventEmitter {
return this.peek(link).route
}
openBatch (links) {
if (!Array.isArray(links)) throw new Error('links must be an array')
return links.map((link) => this.open(link))
}
setDefaultEntry (entry) {
this.defaultEntry = String(entry)
return this.defaultEntry
}
getStats () {
return platformStats(this._stats, PROTOCOL, { history: this._history.length })
}