@mastra/mongodb 0.0.0-vnext-inngest-20250508131921 → 0.0.0-vnextAgentNetwork-20250527102918

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.
@@ -0,0 +1,30 @@
1
+ services:
2
+ mongodb-storage:
3
+ image: mongo:6.0.16
4
+ container_name: 'mongodb-storage-test-db'
5
+ ports:
6
+ - '27017:27017'
7
+ volumes:
8
+ - mongodbdata:/data/db
9
+ healthcheck:
10
+ test: ['CMD', 'mongosh', '--eval', "db.adminCommand('ping')"]
11
+ interval: 2s
12
+ timeout: 2s
13
+ retries: 15
14
+ start_period: 3s
15
+ mongodb-vector:
16
+ image: mongodb/mongodb-atlas-local
17
+ container_name: 'mongodb-vector-test-db'
18
+ environment:
19
+ MONGODB_INITDB_ROOT_USERNAME: mongodb
20
+ MONGODB_INITDB_ROOT_PASSWORD: mongodb
21
+ ports:
22
+ - 27018:27017
23
+ healthcheck:
24
+ test: ['CMD', 'mongosh', '-u', 'mongodb', '-p', 'mongodb', '--eval', "db.adminCommand('ping')"]
25
+ interval: 2s
26
+ timeout: 2s
27
+ retries: 15
28
+ start_period: 3s
29
+ volumes:
30
+ mongodbdata:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mongodb",
3
- "version": "0.0.0-vnext-inngest-20250508131921",
3
+ "version": "0.0.0-vnextAgentNetwork-20250527102918",
4
4
  "description": "MongoDB provider for Mastra - includes vector store capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -22,8 +22,7 @@
22
22
  "@types/mongodb": "^4.0.7",
23
23
  "cloudflare": "^4.1.0",
24
24
  "mongodb": "^6.15.0",
25
- "uuid": "^11.1.0",
26
- "@mastra/core": "0.0.0-vnext-inngest-20250508131921"
25
+ "uuid": "^11.1.0"
27
26
  },
28
27
  "devDependencies": {
29
28
  "@microsoft/api-extractor": "^7.52.5",
@@ -32,12 +31,16 @@
32
31
  "tsup": "^8.4.0",
33
32
  "typescript": "^5.8.2",
34
33
  "vitest": "^3.1.2",
35
- "@internal/lint": "0.0.0-vnext-inngest-20250508131921"
34
+ "@internal/lint": "0.0.0-vnextAgentNetwork-20250527102918",
35
+ "@mastra/core": "0.0.0-vnextAgentNetwork-20250527102918"
36
+ },
37
+ "peerDependencies": {
38
+ "@mastra/core": "^0.10.0"
36
39
  },
37
40
  "scripts": {
38
41
  "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
39
42
  "build:watch": "pnpm build --watch",
40
- "pretest": "docker compose up -d && (for i in $(seq 1 30); do docker compose exec -T mongodb mongosh --eval 'db.adminCommand(\"ping\")' --quiet && break || (sleep 1; [ $i -eq 30 ] && exit 1); done)",
43
+ "pretest": "docker compose up -d --wait",
41
44
  "test": "vitest run",
42
45
  "posttest": "docker compose down -v",
43
46
  "pretest:watch": "docker compose up -d",
package/src/index.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './vector';
2
+ export * from './storage';
2
3
  export { MONGODB_PROMPT } from './vector/prompt';