@mastra/mcp-docs-server 1.0.0-beta.15 → 1.0.0-beta.17

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 (31) hide show
  1. package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +41 -41
  2. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +41 -41
  3. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +18 -18
  4. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +41 -41
  5. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +41 -41
  6. package/.docs/organized/changelogs/%40mastra%2Fconvex.md +40 -0
  7. package/.docs/organized/changelogs/%40mastra%2Fcore.md +179 -179
  8. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +17 -17
  9. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +49 -49
  10. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +41 -41
  11. package/.docs/organized/changelogs/%40mastra%2Flance.md +41 -41
  12. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +41 -41
  13. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +16 -16
  14. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +30 -30
  15. package/.docs/organized/changelogs/%40mastra%2Fmemory.md +49 -49
  16. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +41 -41
  17. package/.docs/organized/changelogs/%40mastra%2Fmssql.md +41 -41
  18. package/.docs/organized/changelogs/%40mastra%2Fpg.md +45 -45
  19. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +38 -38
  20. package/.docs/organized/changelogs/%40mastra%2Freact.md +15 -15
  21. package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +10 -0
  22. package/.docs/organized/changelogs/%40mastra%2Fserver.md +63 -63
  23. package/.docs/organized/changelogs/%40mastra%2Fupstash.md +41 -41
  24. package/.docs/raw/guides/migrations/upgrade-to-v1/storage.mdx +27 -0
  25. package/.docs/raw/reference/client-js/workflows.mdx +15 -0
  26. package/.docs/raw/reference/storage/composite.mdx +223 -0
  27. package/.docs/raw/reference/tools/mcp-server.mdx +9 -0
  28. package/.docs/raw/reference/workflows/run-methods/cancel.mdx +51 -3
  29. package/.docs/raw/reference/workflows/run.mdx +8 -2
  30. package/CHANGELOG.md +15 -0
  31. package/package.json +4 -4
@@ -1,5 +1,45 @@
1
1
  # @mastra/agent-builder
2
2
 
3
+ ## 1.0.0-beta.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`b5dc973`](https://github.com/mastra-ai/mastra/commit/b5dc9733a5158850298dfb103acb3babdba8a318)]:
8
+ - @mastra/core@1.0.0-beta.17
9
+ - @mastra/memory@1.0.0-beta.9
10
+
11
+ ## 1.0.0-beta.8
12
+
13
+ ### Patch Changes
14
+
15
+ - Fixed inline type narrowing for `tool.execute()` return type when using `outputSchema`. ([#11420](https://github.com/mastra-ai/mastra/pull/11420))
16
+
17
+ **Problem:** When calling `tool.execute()`, TypeScript couldn't narrow the `ValidationError | OutputType` union after checking `'error' in result && result.error`, causing type errors when accessing output properties.
18
+
19
+ **Solution:**
20
+ - Added `{ error?: never }` to the success type, enabling proper discriminated union narrowing
21
+ - Simplified `createTool` generics so `inputData` is correctly typed based on `inputSchema`
22
+
23
+ **Note:** Tool output schemas should not use `error` as a field name since it's reserved for ValidationError discrimination. Use `errorMessage` or similar instead.
24
+
25
+ **Usage:**
26
+
27
+ ```typescript
28
+ const result = await myTool.execute({ firstName: 'Hans' });
29
+
30
+ if ('error' in result && result.error) {
31
+ console.error('Validation failed:', result.message);
32
+ return;
33
+ }
34
+
35
+ // ✅ TypeScript now correctly narrows result
36
+ return { fullName: result.fullName };
37
+ ```
38
+
39
+ - Updated dependencies [[`3d93a15`](https://github.com/mastra-ai/mastra/commit/3d93a15796b158c617461c8b98bede476ebb43e2), [`efe406a`](https://github.com/mastra-ai/mastra/commit/efe406a1353c24993280ebc2ed61dd9f65b84b26), [`119e5c6`](https://github.com/mastra-ai/mastra/commit/119e5c65008f3e5cfca954eefc2eb85e3bf40da4), [`74e504a`](https://github.com/mastra-ai/mastra/commit/74e504a3b584eafd2f198001c6a113bbec589fd3), [`e33fdbd`](https://github.com/mastra-ai/mastra/commit/e33fdbd07b33920d81e823122331b0c0bee0bb59), [`929f69c`](https://github.com/mastra-ai/mastra/commit/929f69c3436fa20dd0f0e2f7ebe8270bd82a1529), [`8a73529`](https://github.com/mastra-ai/mastra/commit/8a73529ca01187f604b1f3019d0a725ac63ae55f)]:
40
+ - @mastra/core@1.0.0-beta.16
41
+ - @mastra/memory@1.0.0-beta.8
42
+
3
43
  ## 1.0.0-beta.7
4
44
 
5
45
  ### Patch Changes
@@ -459,44 +499,4 @@
459
499
 
460
500
  ### Patch Changes
461
501
 
462
- - 376913a: Update peerdeps
463
- - Updated dependencies [8fbf79e]
464
- - Updated dependencies [376913a]
465
- - Updated dependencies [38020d5]
466
- - @mastra/core@0.16.0-alpha.1
467
- - @mastra/memory@0.14.4-alpha.0
468
-
469
- ## 0.0.2-alpha.0
470
-
471
- ### Patch Changes
472
-
473
- - cf4e353: Agent Builder Template - adding in UI components to use agent builder template actions
474
- - 8b7dbbf: Various clean up in the agent builder package. Mark package as experimental.
475
- - Updated dependencies [fd83526]
476
- - Updated dependencies [d0b90ab]
477
- - Updated dependencies [6f5eb7a]
478
- - Updated dependencies [a01cf14]
479
- - Updated dependencies [a9e50ee]
480
- - Updated dependencies [5397eb4]
481
- - Updated dependencies [c9f4e4a]
482
- - Updated dependencies [0acbc80]
483
- - @mastra/core@0.16.0-alpha.0
484
-
485
- ## 0.0.1
486
-
487
- ### Patch Changes
488
-
489
- - ab48c97: dependencies updates:
490
- - Updated dependency [`zod@^3.25.76` ↗︎](https://www.npmjs.com/package/zod/v/3.25.76) (from `^3.25.67`, in `dependencies`)
491
- - de3cbc6: Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
492
- - b8e1a83: Fix package.json
493
- - 671a392: Fix core imports inside agent-builder
494
- - 48b9e55: Add Agent Builder package with template installation workflow
495
-
496
- Introduces a new package for programmatically building and managing Mastra agents with intelligent template merging capabilities. Features include automated dependency resolution, file conflict handling, and validation fixes.
497
-
498
- - 48f0742: add deployer, server and clientjs handlers for agent builder template
499
- - Updated dependencies [ab48c97]
500
- - Updated dependencies [ab48c97]
501
-
502
- ... 100 more lines hidden. See full changelog in package directory.
502
+ ... 140 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,45 @@
1
1
  # @mastra/clickhouse
2
2
 
3
+ ## 1.0.0-beta.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Add storage composition to MastraStorage ([#11401](https://github.com/mastra-ai/mastra/pull/11401))
8
+
9
+ `MastraStorage` can now compose storage domains from different adapters. Use it when you need different databases for different purposes - for example, PostgreSQL for memory and workflows, but a different database for observability.
10
+
11
+ ```typescript
12
+ import { MastraStorage } from '@mastra/core/storage';
13
+ import { MemoryPG, WorkflowsPG, ScoresPG } from '@mastra/pg';
14
+ import { MemoryLibSQL } from '@mastra/libsql';
15
+
16
+ // Compose domains from different stores
17
+ const storage = new MastraStorage({
18
+ id: 'composite',
19
+ domains: {
20
+ memory: new MemoryLibSQL({ url: 'file:./local.db' }),
21
+ workflows: new WorkflowsPG({ connectionString: process.env.DATABASE_URL }),
22
+ scores: new ScoresPG({ connectionString: process.env.DATABASE_URL }),
23
+ },
24
+ });
25
+ ```
26
+
27
+ **Breaking changes:**
28
+ - `storage.supports` property no longer exists
29
+ - `StorageSupports` type is no longer exported from `@mastra/core/storage`
30
+
31
+ All stores now support the same features. For domain availability, use `getStore()`:
32
+
33
+ ```typescript
34
+ const store = await storage.getStore('memory');
35
+ if (store) {
36
+ // domain is available
37
+ }
38
+ ```
39
+
40
+ - Updated dependencies [[`3d93a15`](https://github.com/mastra-ai/mastra/commit/3d93a15796b158c617461c8b98bede476ebb43e2), [`efe406a`](https://github.com/mastra-ai/mastra/commit/efe406a1353c24993280ebc2ed61dd9f65b84b26), [`119e5c6`](https://github.com/mastra-ai/mastra/commit/119e5c65008f3e5cfca954eefc2eb85e3bf40da4), [`74e504a`](https://github.com/mastra-ai/mastra/commit/74e504a3b584eafd2f198001c6a113bbec589fd3), [`e33fdbd`](https://github.com/mastra-ai/mastra/commit/e33fdbd07b33920d81e823122331b0c0bee0bb59), [`929f69c`](https://github.com/mastra-ai/mastra/commit/929f69c3436fa20dd0f0e2f7ebe8270bd82a1529), [`8a73529`](https://github.com/mastra-ai/mastra/commit/8a73529ca01187f604b1f3019d0a725ac63ae55f)]:
41
+ - @mastra/core@1.0.0-beta.16
42
+
3
43
  ## 1.0.0-beta.7
4
44
 
5
45
  ### Minor Changes
@@ -458,45 +498,5 @@
458
498
 
459
499
  - Renamed a bunch of observability/tracing-related things to drop the AI prefix. ([#9744](https://github.com/mastra-ai/mastra/pull/9744))
460
500
 
461
- - **BREAKING CHANGE**: Pagination APIs now use `page`/`perPage` instead of `offset`/`limit` ([#9592](https://github.com/mastra-ai/mastra/pull/9592))
462
-
463
- All storage and memory pagination APIs have been updated to use `page` (0-indexed) and `perPage` instead of `offset` and `limit`, aligning with standard REST API patterns.
464
-
465
- **Affected APIs:**
466
- - `Memory.listThreadsByResourceId()`
467
- - `Memory.listMessages()`
468
- - `Storage.listWorkflowRuns()`
469
-
470
- **Migration:**
471
-
472
- ```typescript
473
- // Before
474
- await memory.listThreadsByResourceId({
475
- resourceId: 'user-123',
476
- offset: 20,
477
- limit: 10,
478
- });
479
-
480
- // After
481
- await memory.listThreadsByResourceId({
482
- resourceId: 'user-123',
483
- page: 2, // page = Math.floor(offset / limit)
484
- perPage: 10,
485
- });
486
-
487
- // Before
488
- await memory.listMessages({
489
- threadId: 'thread-456',
490
- offset: 20,
491
- limit: 10,
492
- });
493
-
494
- // After
495
- await memory.listMessages({
496
- threadId: 'thread-456',
497
- page: 2,
498
- perPage: 10,
499
- });
500
-
501
501
 
502
- ... 1511 more lines hidden. See full changelog in package directory.
502
+ ... 1551 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,22 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 1.0.0-beta.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`b5dc973`](https://github.com/mastra-ai/mastra/commit/b5dc9733a5158850298dfb103acb3babdba8a318), [`af56599`](https://github.com/mastra-ai/mastra/commit/af56599d73244ae3bf0d7bcade656410f8ded37b)]:
8
+ - @mastra/core@1.0.0-beta.17
9
+ - @mastra/schema-compat@1.0.0-beta.4
10
+
11
+ ## 1.0.0-beta.16
12
+
13
+ ### Patch Changes
14
+
15
+ - Add `cancel()` method as an alias for `cancelRun()` in the Run class. The new method provides a more concise API while maintaining backward compatibility. Includes comprehensive documentation about abort signals and how steps can respond to cancellation. ([#11417](https://github.com/mastra-ai/mastra/pull/11417))
16
+
17
+ - Updated dependencies [[`3d93a15`](https://github.com/mastra-ai/mastra/commit/3d93a15796b158c617461c8b98bede476ebb43e2), [`efe406a`](https://github.com/mastra-ai/mastra/commit/efe406a1353c24993280ebc2ed61dd9f65b84b26), [`119e5c6`](https://github.com/mastra-ai/mastra/commit/119e5c65008f3e5cfca954eefc2eb85e3bf40da4), [`74e504a`](https://github.com/mastra-ai/mastra/commit/74e504a3b584eafd2f198001c6a113bbec589fd3), [`e33fdbd`](https://github.com/mastra-ai/mastra/commit/e33fdbd07b33920d81e823122331b0c0bee0bb59), [`929f69c`](https://github.com/mastra-ai/mastra/commit/929f69c3436fa20dd0f0e2f7ebe8270bd82a1529), [`8a73529`](https://github.com/mastra-ai/mastra/commit/8a73529ca01187f604b1f3019d0a725ac63ae55f)]:
18
+ - @mastra/core@1.0.0-beta.16
19
+
3
20
  ## 1.0.0-beta.15
4
21
 
5
22
  ### Minor Changes
@@ -482,21 +499,4 @@
482
499
  - Scores: `listScoresBySpan()`, `listScoresByRunId()`, `listScoresByExecutionId()`
483
500
  - HTTP query parser accepts `"false"` string (e.g., `?perPage=false`)
484
501
 
485
- **Memory changes:**
486
- - `memory.query()` parameter type changed from `StorageGetMessagesArg` to `StorageListMessagesInput`
487
- - Uses flat parameters (`page`, `perPage`, `include`, `filter`, `vectorSearchString`) instead of `selectBy` object
488
-
489
- **Stricter validation:**
490
- - `listMessages()` requires non-empty, non-whitespace `threadId` (throws error instead of returning empty results)
491
-
492
- **Migration:**
493
-
494
- ```typescript
495
- // Storage/Memory: Replace getMessagesPaginated with listMessages
496
- - storage.getMessagesPaginated({ threadId, selectBy: { pagination: { page: 0, perPage: 20 } } })
497
- + storage.listMessages({ threadId, page: 0, perPage: 20 })
498
- + storage.listMessages({ threadId, page: 0, perPage: false }) // Fetch all
499
-
500
- // Memory: Replace selectBy with flat parameters
501
-
502
- ... 3547 more lines hidden. See full changelog in package directory.
502
+ ... 3564 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,45 @@
1
1
  # @mastra/cloudflare-d1
2
2
 
3
+ ## 1.0.0-beta.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Add storage composition to MastraStorage ([#11401](https://github.com/mastra-ai/mastra/pull/11401))
8
+
9
+ `MastraStorage` can now compose storage domains from different adapters. Use it when you need different databases for different purposes - for example, PostgreSQL for memory and workflows, but a different database for observability.
10
+
11
+ ```typescript
12
+ import { MastraStorage } from '@mastra/core/storage';
13
+ import { MemoryPG, WorkflowsPG, ScoresPG } from '@mastra/pg';
14
+ import { MemoryLibSQL } from '@mastra/libsql';
15
+
16
+ // Compose domains from different stores
17
+ const storage = new MastraStorage({
18
+ id: 'composite',
19
+ domains: {
20
+ memory: new MemoryLibSQL({ url: 'file:./local.db' }),
21
+ workflows: new WorkflowsPG({ connectionString: process.env.DATABASE_URL }),
22
+ scores: new ScoresPG({ connectionString: process.env.DATABASE_URL }),
23
+ },
24
+ });
25
+ ```
26
+
27
+ **Breaking changes:**
28
+ - `storage.supports` property no longer exists
29
+ - `StorageSupports` type is no longer exported from `@mastra/core/storage`
30
+
31
+ All stores now support the same features. For domain availability, use `getStore()`:
32
+
33
+ ```typescript
34
+ const store = await storage.getStore('memory');
35
+ if (store) {
36
+ // domain is available
37
+ }
38
+ ```
39
+
40
+ - Updated dependencies [[`3d93a15`](https://github.com/mastra-ai/mastra/commit/3d93a15796b158c617461c8b98bede476ebb43e2), [`efe406a`](https://github.com/mastra-ai/mastra/commit/efe406a1353c24993280ebc2ed61dd9f65b84b26), [`119e5c6`](https://github.com/mastra-ai/mastra/commit/119e5c65008f3e5cfca954eefc2eb85e3bf40da4), [`74e504a`](https://github.com/mastra-ai/mastra/commit/74e504a3b584eafd2f198001c6a113bbec589fd3), [`e33fdbd`](https://github.com/mastra-ai/mastra/commit/e33fdbd07b33920d81e823122331b0c0bee0bb59), [`929f69c`](https://github.com/mastra-ai/mastra/commit/929f69c3436fa20dd0f0e2f7ebe8270bd82a1529), [`8a73529`](https://github.com/mastra-ai/mastra/commit/8a73529ca01187f604b1f3019d0a725ac63ae55f)]:
41
+ - @mastra/core@1.0.0-beta.16
42
+
3
43
  ## 1.0.0-beta.7
4
44
 
5
45
  ### Minor Changes
@@ -459,44 +499,4 @@
459
499
  - `Memory.listMessages()`
460
500
  - `Storage.listWorkflowRuns()`
461
501
 
462
- **Migration:**
463
-
464
- ```typescript
465
- // Before
466
- await memory.listThreadsByResourceId({
467
- resourceId: 'user-123',
468
- offset: 20,
469
- limit: 10,
470
- });
471
-
472
- // After
473
- await memory.listThreadsByResourceId({
474
- resourceId: 'user-123',
475
- page: 2, // page = Math.floor(offset / limit)
476
- perPage: 10,
477
- });
478
-
479
- // Before
480
- await memory.listMessages({
481
- threadId: 'thread-456',
482
- offset: 20,
483
- limit: 10,
484
- });
485
-
486
- // After
487
- await memory.listMessages({
488
- threadId: 'thread-456',
489
- page: 2,
490
- perPage: 10,
491
- });
492
-
493
- // Before
494
- await storage.listWorkflowRuns({
495
- workflowName: 'my-workflow',
496
- offset: 20,
497
- limit: 10,
498
- });
499
-
500
- // After
501
-
502
- ... 1246 more lines hidden. See full changelog in package directory.
502
+ ... 1286 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,45 @@
1
1
  # @mastra/cloudflare
2
2
 
3
+ ## 1.0.0-beta.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Add storage composition to MastraStorage ([#11401](https://github.com/mastra-ai/mastra/pull/11401))
8
+
9
+ `MastraStorage` can now compose storage domains from different adapters. Use it when you need different databases for different purposes - for example, PostgreSQL for memory and workflows, but a different database for observability.
10
+
11
+ ```typescript
12
+ import { MastraStorage } from '@mastra/core/storage';
13
+ import { MemoryPG, WorkflowsPG, ScoresPG } from '@mastra/pg';
14
+ import { MemoryLibSQL } from '@mastra/libsql';
15
+
16
+ // Compose domains from different stores
17
+ const storage = new MastraStorage({
18
+ id: 'composite',
19
+ domains: {
20
+ memory: new MemoryLibSQL({ url: 'file:./local.db' }),
21
+ workflows: new WorkflowsPG({ connectionString: process.env.DATABASE_URL }),
22
+ scores: new ScoresPG({ connectionString: process.env.DATABASE_URL }),
23
+ },
24
+ });
25
+ ```
26
+
27
+ **Breaking changes:**
28
+ - `storage.supports` property no longer exists
29
+ - `StorageSupports` type is no longer exported from `@mastra/core/storage`
30
+
31
+ All stores now support the same features. For domain availability, use `getStore()`:
32
+
33
+ ```typescript
34
+ const store = await storage.getStore('memory');
35
+ if (store) {
36
+ // domain is available
37
+ }
38
+ ```
39
+
40
+ - Updated dependencies [[`3d93a15`](https://github.com/mastra-ai/mastra/commit/3d93a15796b158c617461c8b98bede476ebb43e2), [`efe406a`](https://github.com/mastra-ai/mastra/commit/efe406a1353c24993280ebc2ed61dd9f65b84b26), [`119e5c6`](https://github.com/mastra-ai/mastra/commit/119e5c65008f3e5cfca954eefc2eb85e3bf40da4), [`74e504a`](https://github.com/mastra-ai/mastra/commit/74e504a3b584eafd2f198001c6a113bbec589fd3), [`e33fdbd`](https://github.com/mastra-ai/mastra/commit/e33fdbd07b33920d81e823122331b0c0bee0bb59), [`929f69c`](https://github.com/mastra-ai/mastra/commit/929f69c3436fa20dd0f0e2f7ebe8270bd82a1529), [`8a73529`](https://github.com/mastra-ai/mastra/commit/8a73529ca01187f604b1f3019d0a725ac63ae55f)]:
41
+ - @mastra/core@1.0.0-beta.16
42
+
3
43
  ## 1.0.0-beta.8
4
44
 
5
45
  ### Minor Changes
@@ -459,44 +499,4 @@
459
499
 
460
500
  - Remove `getMessagesById` method from storage interfaces in favor of `listMessagesById`. The new method only returns V2-format messages and removes the format parameter, simplifying the API surface. Users should migrate from `getMessagesById({ messageIds, format })` to `listMessagesById({ messageIds })`. ([#9534](https://github.com/mastra-ai/mastra/pull/9534))
461
501
 
462
- - Renamed a bunch of observability/tracing-related things to drop the AI prefix. ([#9744](https://github.com/mastra-ai/mastra/pull/9744))
463
-
464
- - **BREAKING CHANGE**: Pagination APIs now use `page`/`perPage` instead of `offset`/`limit` ([#9592](https://github.com/mastra-ai/mastra/pull/9592))
465
-
466
- All storage and memory pagination APIs have been updated to use `page` (0-indexed) and `perPage` instead of `offset` and `limit`, aligning with standard REST API patterns.
467
-
468
- **Affected APIs:**
469
- - `Memory.listThreadsByResourceId()`
470
- - `Memory.listMessages()`
471
- - `Storage.listWorkflowRuns()`
472
-
473
- **Migration:**
474
-
475
- ```typescript
476
- // Before
477
- await memory.listThreadsByResourceId({
478
- resourceId: 'user-123',
479
- offset: 20,
480
- limit: 10,
481
- });
482
-
483
- // After
484
- await memory.listThreadsByResourceId({
485
- resourceId: 'user-123',
486
- page: 2, // page = Math.floor(offset / limit)
487
- perPage: 10,
488
- });
489
-
490
- // Before
491
- await memory.listMessages({
492
- threadId: 'thread-456',
493
- offset: 20,
494
- limit: 10,
495
- });
496
-
497
- // After
498
- await memory.listMessages({
499
- threadId: 'thread-456',
500
- page: 2,
501
-
502
- ... 1475 more lines hidden. See full changelog in package directory.
502
+ ... 1515 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,45 @@
1
1
  # @mastra/convex
2
2
 
3
+ ## 0.1.0-beta.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Add storage composition to MastraStorage ([#11401](https://github.com/mastra-ai/mastra/pull/11401))
8
+
9
+ `MastraStorage` can now compose storage domains from different adapters. Use it when you need different databases for different purposes - for example, PostgreSQL for memory and workflows, but a different database for observability.
10
+
11
+ ```typescript
12
+ import { MastraStorage } from '@mastra/core/storage';
13
+ import { MemoryPG, WorkflowsPG, ScoresPG } from '@mastra/pg';
14
+ import { MemoryLibSQL } from '@mastra/libsql';
15
+
16
+ // Compose domains from different stores
17
+ const storage = new MastraStorage({
18
+ id: 'composite',
19
+ domains: {
20
+ memory: new MemoryLibSQL({ url: 'file:./local.db' }),
21
+ workflows: new WorkflowsPG({ connectionString: process.env.DATABASE_URL }),
22
+ scores: new ScoresPG({ connectionString: process.env.DATABASE_URL }),
23
+ },
24
+ });
25
+ ```
26
+
27
+ **Breaking changes:**
28
+ - `storage.supports` property no longer exists
29
+ - `StorageSupports` type is no longer exported from `@mastra/core/storage`
30
+
31
+ All stores now support the same features. For domain availability, use `getStore()`:
32
+
33
+ ```typescript
34
+ const store = await storage.getStore('memory');
35
+ if (store) {
36
+ // domain is available
37
+ }
38
+ ```
39
+
40
+ - Updated dependencies [[`3d93a15`](https://github.com/mastra-ai/mastra/commit/3d93a15796b158c617461c8b98bede476ebb43e2), [`efe406a`](https://github.com/mastra-ai/mastra/commit/efe406a1353c24993280ebc2ed61dd9f65b84b26), [`119e5c6`](https://github.com/mastra-ai/mastra/commit/119e5c65008f3e5cfca954eefc2eb85e3bf40da4), [`74e504a`](https://github.com/mastra-ai/mastra/commit/74e504a3b584eafd2f198001c6a113bbec589fd3), [`e33fdbd`](https://github.com/mastra-ai/mastra/commit/e33fdbd07b33920d81e823122331b0c0bee0bb59), [`929f69c`](https://github.com/mastra-ai/mastra/commit/929f69c3436fa20dd0f0e2f7ebe8270bd82a1529), [`8a73529`](https://github.com/mastra-ai/mastra/commit/8a73529ca01187f604b1f3019d0a725ac63ae55f)]:
41
+ - @mastra/core@1.0.0-beta.16
42
+
3
43
  ## 0.1.0-beta.6
4
44
 
5
45
  ### Minor Changes