@mastra/mcp-docs-server 1.0.0-beta.15 → 1.0.0-beta.16
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.
- package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +33 -33
- package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +41 -41
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +41 -41
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +41 -41
- package/.docs/organized/changelogs/%40mastra%2Fconvex.md +40 -0
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +166 -166
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +9 -9
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +41 -41
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +41 -41
- package/.docs/organized/changelogs/%40mastra%2Flance.md +41 -41
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +41 -41
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +9 -9
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +30 -30
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +41 -41
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +41 -41
- package/.docs/organized/changelogs/%40mastra%2Fmssql.md +41 -41
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +45 -45
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +28 -28
- package/.docs/organized/changelogs/%40mastra%2Freact.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +56 -56
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +41 -41
- package/.docs/raw/guides/migrations/upgrade-to-v1/storage.mdx +27 -0
- package/.docs/raw/reference/client-js/workflows.mdx +15 -0
- package/.docs/raw/reference/storage/composite.mdx +223 -0
- package/.docs/raw/reference/tools/mcp-server.mdx +9 -0
- package/.docs/raw/reference/workflows/run-methods/cancel.mdx +51 -3
- package/.docs/raw/reference/workflows/run.mdx +8 -2
- package/CHANGELOG.md +8 -0
- package/package.json +5 -5
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @mastra/agent-builder
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed inline type narrowing for `tool.execute()` return type when using `outputSchema`. ([#11420](https://github.com/mastra-ai/mastra/pull/11420))
|
|
8
|
+
|
|
9
|
+
**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.
|
|
10
|
+
|
|
11
|
+
**Solution:**
|
|
12
|
+
- Added `{ error?: never }` to the success type, enabling proper discriminated union narrowing
|
|
13
|
+
- Simplified `createTool` generics so `inputData` is correctly typed based on `inputSchema`
|
|
14
|
+
|
|
15
|
+
**Note:** Tool output schemas should not use `error` as a field name since it's reserved for ValidationError discrimination. Use `errorMessage` or similar instead.
|
|
16
|
+
|
|
17
|
+
**Usage:**
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
const result = await myTool.execute({ firstName: 'Hans' });
|
|
21
|
+
|
|
22
|
+
if ('error' in result && result.error) {
|
|
23
|
+
console.error('Validation failed:', result.message);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// ✅ TypeScript now correctly narrows result
|
|
28
|
+
return { fullName: result.fullName };
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
- 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)]:
|
|
32
|
+
- @mastra/core@1.0.0-beta.16
|
|
33
|
+
- @mastra/memory@1.0.0-beta.8
|
|
34
|
+
|
|
3
35
|
## 1.0.0-beta.7
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
|
@@ -466,37 +498,5 @@
|
|
|
466
498
|
- @mastra/core@0.16.0-alpha.1
|
|
467
499
|
- @mastra/memory@0.14.4-alpha.0
|
|
468
500
|
|
|
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
501
|
|
|
502
|
-
...
|
|
502
|
+
... 132 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
|
-
...
|
|
502
|
+
... 1551 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 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))
|
|
8
|
+
|
|
9
|
+
- 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)]:
|
|
10
|
+
- @mastra/core@1.0.0-beta.16
|
|
11
|
+
|
|
3
12
|
## 1.0.0-beta.15
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -489,14 +498,5 @@
|
|
|
489
498
|
**Stricter validation:**
|
|
490
499
|
- `listMessages()` requires non-empty, non-whitespace `threadId` (throws error instead of returning empty results)
|
|
491
500
|
|
|
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
501
|
|
|
502
|
-
...
|
|
502
|
+
... 3556 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
|
-
|
|
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
|
-
|
|
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
|