@agent-diaries/core 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +23 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  [![NPM Version](https://img.shields.io/npm/v/@agent-diaries/core?style=for-the-badge&logo=npm&color=CB3837)](https://www.npmjs.com/package/@agent-diaries/core)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?style=for-the-badge&logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
7
+ [![Cloud Tested](https://img.shields.io/badge/Tested-Cloud%20Ready-success?style=for-the-badge&logo=icloud&logoColor=white)](#-200-agent-real-world-cloud-benchmarks)
7
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
8
9
  </div>
9
10
 
@@ -126,7 +127,7 @@ console.log(` Actual Locks: ${successful}`); // Always exactly 1.
126
127
  ```
127
128
 
128
129
  ### The Results (Zero Race Conditions)
129
- > *Tested via WAN connection to an Upstash Serverless Redis instance*
130
+ > *Tested via WAN connection to an Upstash Serverless Redis instance and a Free Tier MongoDB Atlas Cluster*
130
131
 
131
132
  ```text
132
133
  =================================
@@ -149,6 +150,27 @@ console.log(` Actual Locks: ${successful}`); // Always exactly 1.
149
150
  Actual Written: 200
150
151
  Write Duration: 16267ms
151
152
  🟢 PASSED (Zero data corruption)
153
+
154
+ =================================
155
+ 🌪️ INITIALIZING 200-AGENT SWARM: MongoDB Atlas (Cloud Free Tier)
156
+ =================================
157
+ [Test 1] The Herd Effect: 200 Agents competing for exactly ONE viral task...
158
+ Expected Locks: 1
159
+ Actual Locks: 1
160
+ Resolution Time: 7362ms
161
+ 🟢 PASSED (199 race conditions prevented)
162
+
163
+ [Test 2] Real World Distribution: 200 Agents processing 10 common data tasks...
164
+ Expected Locks: 10
165
+ Actual Locks: 10
166
+ Resolution Time: 5545ms
167
+ 🟢 PASSED (190 duplicate LLM calls prevented)
168
+
169
+ [Test 3] Extreme Write Contention: 200 Agents blasting state updates at the exact same time...
170
+ Expected Written: 200
171
+ Actual Written: 200
172
+ Write Duration: 9410ms
173
+ 🟢 PASSED (Zero data corruption)
152
174
  ```
153
175
 
154
176
  **💡 Engineering Insight:** While SQL databases perform well on local network environments, relational connection poolers (like pgBouncer or Supavisor) completely buckle under the massive concurrent TCP bursts generated by serverless AI swarms. **Redis or MongoDB (via atomic upserts)** are strictly required for reliable lock management in high-concurrency serverless edge environments.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-diaries/core",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "The lightweight, framework-agnostic memory layer for edge AI agents.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",