Expand experimental, supercomputer, pear, collab, and messaging modules
Add manual API helpers across categories: entropy spiral prune, paradox clock compare/clear, mycelium pool borrow checks, pheromone and memetic batch helpers, phase-shift align, paradox merge all-open, mirror realm clear, work-stealer and thermal clearAll, cache warmBatch, GPU releaseAll, disk stripe completion, pear worker-pipe and channel registry, OTA history clear, import-map has/count, collab whiteboard batch and line locks, cursor presence, gossip mesh publishBatch, dedup allSeen, key rotation revokeAll, similarity LSH embedBatch, and bandwidth offer listing. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -96,6 +96,23 @@ class HyperP2PParadoxClock extends EventEmitter {
|
||||
return this._stamps.size
|
||||
}
|
||||
|
||||
compareEvents (eventA, eventB) {
|
||||
const a = this.getStamp(eventA)
|
||||
const b = this.getStamp(eventB)
|
||||
if (!a || !b) return null
|
||||
const w = this.resolve(a, b)
|
||||
if (w === a && w !== b) return -1
|
||||
if (w === b && w !== a) return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
clearAll () {
|
||||
const n = this._stamps.size
|
||||
this._stamps.clear()
|
||||
this._logical = 0
|
||||
return n
|
||||
}
|
||||
|
||||
async ready () {
|
||||
if (this.swarm || !this.topic) return this
|
||||
await initModuleSwarm(this, {
|
||||
|
||||
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "hyper-p2p-paradox-clock",
|
||||
"version": "0.3.1",
|
||||
"version": "0.3.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "hyper-p2p-paradox-clock",
|
||||
"version": "0.3.1",
|
||||
"version": "0.3.2",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"b4a": "^1.6.7",
|
||||
|
||||
Reference in New Issue
Block a user