Expand economy, autobase, network, observability, and scheduling modules.

Add auction withdraw/cancel, marketplace search helpers, update gossip history, autobase fork/lease/indexer/view APIs, link-probe and circuit-loom utilities, trace trees, pheromone ranking, and scheduling/measurement helpers with tests.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 01:09:29 -04:00
co-authored by Cursor
parent b8b815fce6
commit 44b8a80907
36 changed files with 508 additions and 4 deletions
@@ -35,3 +35,13 @@ test('getStats', async (t) => {
t.is(m.getStats().allocated, 1)
await m.close()
})
test('canConsume totalRemaining', async (t) => {
const m = new HyperP2PSlaBudget()
m.allocate('a', 5)
m.allocate('b', 3)
t.ok(m.canConsume('a', 4))
t.not(m.canConsume('a', 6))
t.is(m.totalRemaining(), 8)
await m.close()
})