@mastra/memory 0.14.3-alpha.1 → 0.14.3-alpha.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 (37) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/index.cjs +2 -5
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +2 -4
  6. package/dist/index.js.map +1 -1
  7. package/package.json +17 -4
  8. package/.turbo/turbo-build.log +0 -8
  9. package/eslint.config.js +0 -12
  10. package/integration-tests-v5/.env.test +0 -5
  11. package/integration-tests-v5/CHANGELOG.md +0 -175
  12. package/integration-tests-v5/docker-compose.yml +0 -39
  13. package/integration-tests-v5/node_modules/.bin/next +0 -21
  14. package/integration-tests-v5/node_modules/.bin/tsc +0 -21
  15. package/integration-tests-v5/node_modules/.bin/tsserver +0 -21
  16. package/integration-tests-v5/node_modules/.bin/vitest +0 -21
  17. package/integration-tests-v5/package.json +0 -43
  18. package/integration-tests-v5/src/agent-memory.test.ts +0 -621
  19. package/integration-tests-v5/src/mastra/agents/weather.ts +0 -75
  20. package/integration-tests-v5/src/mastra/index.ts +0 -13
  21. package/integration-tests-v5/src/mastra/tools/weather.ts +0 -24
  22. package/integration-tests-v5/src/processors.test.ts +0 -604
  23. package/integration-tests-v5/src/streaming-memory.test.ts +0 -367
  24. package/integration-tests-v5/src/test-utils.ts +0 -147
  25. package/integration-tests-v5/src/working-memory.test.ts +0 -1064
  26. package/integration-tests-v5/tsconfig.json +0 -13
  27. package/integration-tests-v5/vitest.config.ts +0 -18
  28. package/src/index.ts +0 -1040
  29. package/src/processors/index.test.ts +0 -246
  30. package/src/processors/index.ts +0 -2
  31. package/src/processors/token-limiter.ts +0 -159
  32. package/src/processors/tool-call-filter.ts +0 -77
  33. package/src/tools/working-memory.ts +0 -154
  34. package/tsconfig.build.json +0 -9
  35. package/tsconfig.json +0 -5
  36. package/tsup.config.ts +0 -17
  37. package/vitest.config.ts +0 -11
@@ -1,39 +0,0 @@
1
- services:
2
- postgres:
3
- image: ankane/pgvector:v0.5.1
4
- ports:
5
- - '5434:5432'
6
- environment:
7
- POSTGRES_USER: postgres
8
- POSTGRES_PASSWORD: password
9
- POSTGRES_DB: mastra
10
- volumes:
11
- - pg_data:/var/lib/postgresql/data
12
- healthcheck:
13
- test: ['CMD-SHELL', 'pg_isready -U postgres']
14
- interval: 5s
15
- timeout: 5s
16
- retries: 5
17
- redis:
18
- image: redis:7-alpine
19
- ports:
20
- - '6370:6379'
21
- command: redis-server --requirepass redis_password
22
- healthcheck:
23
- test: ['CMD', 'redis-cli', '--no-auth-warning', '-a', 'redis_password', 'ping']
24
- interval: 5s
25
- timeout: 5s
26
- retries: 5
27
- serverless-redis-http:
28
- image: hiett/serverless-redis-http:latest
29
- ports:
30
- - '8079:80'
31
- environment:
32
- SRH_MODE: env
33
- SRH_TOKEN: test_token
34
- SRH_CONNECTION_STRING: 'redis://:redis_password@redis:6379'
35
- depends_on:
36
- redis:
37
- condition: service_healthy
38
- volumes:
39
- pg_data:
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/mastra/mastra/node_modules/.pnpm/next@15.4.7_@opentelemetry+api@1.9.0_@playwright+test@1.53.1_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/bin/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/next@15.4.7_@opentelemetry+api@1.9.0_@playwright+test@1.53.1_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/next@15.4.7_@opentelemetry+api@1.9.0_@playwright+test@1.53.1_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/next@15.4.7_@opentelemetry+api@1.9.0_@playwright+test@1.53.1_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/home/runner/work/mastra/mastra/node_modules/.pnpm/next@15.4.7_@opentelemetry+api@1.9.0_@playwright+test@1.53.1_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/bin/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/next@15.4.7_@opentelemetry+api@1.9.0_@playwright+test@1.53.1_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/next@15.4.7_@opentelemetry+api@1.9.0_@playwright+test@1.53.1_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/next@15.4.7_@opentelemetry+api@1.9.0_@playwright+test@1.53.1_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../next/dist/bin/next" "$@"
19
- else
20
- exec node "$basedir/../next/dist/bin/next" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/mastra/mastra/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/home/runner/work/mastra/mastra/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
19
- else
20
- exec node "$basedir/../typescript/bin/tsc" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/mastra/mastra/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/home/runner/work/mastra/mastra/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
19
- else
20
- exec node "$basedir/../typescript/bin/tsserver" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/mastra/mastra/node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.11_@vitest+ui@3.2.3_jiti@2.4.2_jsdom_70e728ef477f1e37b982af437efd45b2/node_modules/vitest/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.11_@vitest+ui@3.2.3_jiti@2.4.2_jsdom_70e728ef477f1e37b982af437efd45b2/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/home/runner/work/mastra/mastra/node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.11_@vitest+ui@3.2.3_jiti@2.4.2_jsdom_70e728ef477f1e37b982af437efd45b2/node_modules/vitest/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.11_@vitest+ui@3.2.3_jiti@2.4.2_jsdom_70e728ef477f1e37b982af437efd45b2/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../vitest/vitest.mjs" "$@"
19
- else
20
- exec node "$basedir/../vitest/vitest.mjs" "$@"
21
- fi
@@ -1,43 +0,0 @@
1
- {
2
- "name": "@mastra/memory-integration-tests-v5",
3
- "private": true,
4
- "version": "0.1.6-alpha.2",
5
- "scripts": {
6
- "test": "pnpm test:streaming && pnpm test:working-memory && pnpm test:agent-memory && pnpm test:processors",
7
- "test:agent-memory": "vitest run ./src/agent-memory.test.ts",
8
- "test:libsql": "vitest run ./src/with-libsql-storage.test.ts",
9
- "test:streaming": "vitest run ./src/streaming-memory.test.ts",
10
- "test:working-memory": "vitest run ./src/working-memory.test.ts",
11
- "test:processors": "vitest run ./src/processors.test.ts",
12
- "dev": "mastra dev"
13
- },
14
- "dependencies": {
15
- "@mastra/fastembed": "workspace:*",
16
- "@mastra/libsql": "workspace:*",
17
- "@mastra/memory": "workspace:*",
18
- "dotenv": "^16.4.7",
19
- "json-schema": "^0.4.0",
20
- "zod": "^3.25.76"
21
- },
22
- "devDependencies": {
23
- "@ai-sdk/google": "^2.0.6",
24
- "@ai-sdk/openai": "^2.0.15",
25
- "@ai-sdk/react": "^2.0.15",
26
- "@faker-js/faker": "^9.6.0",
27
- "@mastra/core": "workspace:*",
28
- "@testing-library/react": "^16.2.0",
29
- "@types/json-schema": "^7.0.15",
30
- "@types/node": "^20.17.27",
31
- "ai": "^5.0.15",
32
- "jsdom": "^26.0.0",
33
- "mastra": "workspace:*",
34
- "next": "^15.2.4",
35
- "react": "^19.1.0",
36
- "react-dom": "^19.1.0",
37
- "typescript": "^5.8.2",
38
- "vitest": "^3.2.4"
39
- },
40
- "peerDependencies": {
41
- "@mastra/core": ">=0.10.7-0 <0.16.0-0"
42
- }
43
- }