{"_id":"@cognitive-swarm/memory-pool","name":"@cognitive-swarm/memory-pool","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@cognitive-swarm/memory-pool","version":"0.2.0","description":"Shared memory pool — collective knowledge across swarm agents","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc","test":"vitest run","test:watch":"vitest","lint":"eslint src/","clean":"rm -rf dist"},"dependencies":{"@cognitive-swarm/core":"*","@cognitive-engine/core":"^0.2.0"},"license":"Apache-2.0","author":{"name":"Dmitry Zorin"},"repository":{"type":"git","url":"git+https://github.com/medonomator/cognitive-swarm.git","directory":"packages/memory-pool"},"publishConfig":{"access":"public"},"homepage":"https://medonomator.github.io/cognitive-swarm/","bugs":{"url":"https://github.com/medonomator/cognitive-swarm/issues"},"gitHead":"8613f7b139c03719ef14fe9f2c01bdc1c5532a26","_id":"@cognitive-swarm/memory-pool@0.2.0","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-erZ73fAQtgAxvRSun10AuFJ2uwQH8SyXERr2Gq4vSqG68Wv/q/ECilxqPIMhxJ2CTQHV4bVBmR6ZZ2C7W+wvFw==","shasum":"f0ae313275cf7fffa5dc2d0943fd18e7d032c79f","tarball":"https://registry.npmjs.org/@cognitive-swarm/memory-pool/-/memory-pool-0.2.0.tgz","fileCount":14,"unpackedSize":31558,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDOnnG94KmhTS91EfHrTmVREdFekJ7L04XBDRTd+LJbYAiEA8Z92YBllPTkBsic5Bq2lVzXqdqb1QwCImDA9dY1OhG0="}]},"_npmUser":{"name":"medonomator","email":"budteschastlivi1@gmail.com"},"directories":{},"maintainers":[{"name":"medonomator","email":"budteschastlivi1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/memory-pool_0.2.0_1776497150081_0.6032570716005647"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-18T07:25:49.946Z","0.2.0":"2026-04-18T07:25:50.278Z","modified":"2026-04-18T07:25:50.586Z"},"maintainers":[{"name":"medonomator","email":"budteschastlivi1@gmail.com"}],"description":"Shared memory pool — collective knowledge across swarm agents","homepage":"https://medonomator.github.io/cognitive-swarm/","repository":{"type":"git","url":"git+https://github.com/medonomator/cognitive-swarm.git","directory":"packages/memory-pool"},"author":{"name":"Dmitry Zorin"},"bugs":{"url":"https://github.com/medonomator/cognitive-swarm/issues"},"license":"Apache-2.0","readme":"# @cognitive-swarm/memory-pool\n\nShared memory pool -- collective knowledge across swarm agents.\n\n## Install\n\n```bash\nnpm install @cognitive-swarm/memory-pool\n```\n\n## Overview\n\nAn in-memory shared knowledge store that agents use to publish and retrieve facts, discoveries, and intermediate results during a swarm session. Supports tagging, relevance search, and memory lifecycle management.\n\n## Usage\n\n```typescript\nimport { SharedMemoryPool } from '@cognitive-swarm/memory-pool'\nimport type { MemoryPoolConfig, ShareMemoryInput } from '@cognitive-swarm/memory-pool'\n\nconst pool = new SharedMemoryPool(config)\n\n// An agent shares a discovery\npool.share({\n  agentId: 'analyst',\n  key: 'dataset-correlation',\n  content: 'Variables X and Y are strongly correlated (r=0.93)',\n  tags: ['statistics', 'correlation'],\n})\n\n// Another agent searches for relevant memories\nconst results = pool.search({ query: 'correlation', limit: 5 })\n\n// Get pool statistics\nconst stats = pool.stats()\n```\n\n## Types\n\n| Type | Description |\n|------|-------------|\n| `SharedMemory` | A stored memory entry with metadata |\n| `MemoryState` | Current state snapshot of the pool |\n| `ShareMemoryInput` | Input for sharing a new memory |\n| `MemorySearchResult` | Search result with relevance score |\n| `MemoryPoolConfig` | Configuration options |\n| `PoolStats` | Pool usage statistics |\n\n## License\n\nApache-2.0\n\n## Links\n\n- [cognitive-swarm root](https://github.com/medonomator/cognitive-swarm)\n","readmeFilename":"README.md","_rev":"1-041d66ea5c00e5bcf0290b0831c0a387"}