Expand media, agents, applications, and messaging module APIs on main.
Adds snapshot(), batch helpers, and clearAll aliases across media-streaming (20), agents-workflows, applications-collab/economy, messaging pubsub/streams/gossip. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -100,6 +100,15 @@ class HyperP2PDocumentLineLock extends EventEmitter {
|
||||
return n
|
||||
}
|
||||
|
||||
snapshot () {
|
||||
return { locks: this._locks.size }
|
||||
}
|
||||
|
||||
acquireBatch (entries) {
|
||||
if (!Array.isArray(entries)) throw new Error('entries array required')
|
||||
return entries.map((e) => this.acquire(e.docId, e.line))
|
||||
}
|
||||
|
||||
_onGossip (data) {
|
||||
if (!data) return
|
||||
this._stats.gossipIn++
|
||||
|
||||
Reference in New Issue
Block a user