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:
@@ -118,6 +118,10 @@ class HyperBareTargetMatrix extends EventEmitter {
|
||||
return this.snapshot()
|
||||
}
|
||||
|
||||
isEmpty () {
|
||||
return this.snapshot().targets === 0
|
||||
}
|
||||
|
||||
addTargetBatch (entries) {
|
||||
if (!Array.isArray(entries)) throw new Error('entries array required')
|
||||
return entries.map((e) => this.addTarget(e.os, e.arch, e.extra || {}))
|
||||
|
||||
Reference in New Issue
Block a user