Add isEmpty() helpers across all modules with clearable state.

Seventh expansion pass: domain-specific isEmpty() after moduleSnapshot on every module that has clearAll(), using existing count/snapshot helpers (async variants for temporal, spatial, semantic-vector, and reactive-state indexes).

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 04:58:23 -04:00
co-authored by Cursor
parent f509060710
commit b3c6059598
205 changed files with 857 additions and 0 deletions
@@ -139,6 +139,10 @@ class HyperP2PStreamMultiplex extends EventEmitter {
return this.snapshot()
}
isEmpty () {
return this.snapshot().open === 0
}
openStreamBatch (ids) {
if (!Array.isArray(ids)) throw new Error('ids array required')
return ids.map((id) => this.openStream(id))