Expand media-streaming, agents, applications, and experimental module APIs.

Add batch helpers, counts, and clear utilities across chunking, ladders, trees, workflows, collab rooms, and economy ledgers.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 03:27:26 -04:00
co-authored by Cursor
parent 161865c98d
commit e62d474134
17 changed files with 174 additions and 0 deletions
@@ -363,6 +363,13 @@ class HyperP2PTaskOrchestrator extends EventEmitter {
return [...this.tasks.keys()]
}
async submitBatch (specs) {
if (!Array.isArray(specs)) throw new Error('specs array required')
const ids = []
for (const spec of specs) ids.push(await this.submitTask(spec))
return ids
}
async cancelAllPending (reason = 'bulk-cancel') {
await this.ready()
let n = 0