This commit is contained in:
Raven Scott
2026-05-20 23:14:20 -04:00
parent a2e7da7b5b
commit a020270cb1
11 changed files with 271 additions and 310 deletions
@@ -0,0 +1,11 @@
require('bare-process/global')
const { HyperP2PAgentMemory } = require('../index.js')
async function main () {
const mem = new HyperP2PAgentMemory({ enableSigning: true })
await mem.storeMemory({ note: 'wave agent memory demo' }, { tags: ['demo'] })
const hits = await mem.recall({ tags: ['demo'], limit: 5 })
console.log('[agent-memory]', hits.length, mem.getStats())
await mem.close()
}
main().catch(console.error)