@mastra/mcp-docs-server 1.0.0-beta.14 → 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 +41 -41
- package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +51 -51
- package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +235 -235
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +85 -85
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +235 -235
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +235 -235
- package/.docs/organized/changelogs/%40mastra%2Fconvex.md +258 -0
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +338 -338
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +27 -27
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +67 -67
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +235 -235
- package/.docs/organized/changelogs/%40mastra%2Fevals.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Ffastembed.md +6 -0
- package/.docs/organized/changelogs/%40mastra%2Flance.md +235 -235
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +235 -235
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +30 -30
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +168 -168
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +259 -259
- package/.docs/organized/changelogs/%40mastra%2Fmssql.md +259 -259
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +279 -279
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +108 -108
- package/.docs/organized/changelogs/%40mastra%2Freact.md +77 -77
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +180 -180
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +235 -235
- package/.docs/organized/changelogs/create-mastra.md +11 -11
- package/.docs/organized/changelogs/mastra.md +40 -40
- package/.docs/organized/code-examples/agent-v6.md +70 -11
- package/.docs/organized/code-examples/client-side-tools.md +1 -1
- package/.docs/raw/agents/adding-voice.mdx +8 -3
- package/.docs/raw/deployment/overview.mdx +3 -4
- package/.docs/raw/deployment/workflow-runners.mdx +14 -0
- package/.docs/raw/getting-started/studio.mdx +1 -1
- package/.docs/raw/guides/deployment/inngest.mdx +198 -140
- package/.docs/raw/guides/migrations/upgrade-to-v1/memory.mdx +11 -3
- package/.docs/raw/guides/migrations/upgrade-to-v1/processors.mdx +11 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/storage.mdx +68 -0
- package/.docs/raw/mastra-cloud/deployment.mdx +39 -0
- package/.docs/raw/mastra-cloud/observability.mdx +9 -15
- package/.docs/raw/mastra-cloud/overview.mdx +14 -44
- package/.docs/raw/mastra-cloud/setup.mdx +64 -0
- package/.docs/raw/mastra-cloud/studio.mdx +35 -0
- package/.docs/raw/reference/client-js/workflows.mdx +15 -0
- package/.docs/raw/reference/logging/pino-logger.mdx +1 -1
- package/.docs/raw/reference/processors/token-limiter-processor.mdx +39 -18
- package/.docs/raw/reference/storage/cloudflare-d1.mdx +4 -2
- package/.docs/raw/reference/storage/composite.mdx +223 -0
- package/.docs/raw/reference/storage/lance.mdx +3 -2
- package/.docs/raw/reference/storage/libsql.mdx +5 -2
- package/.docs/raw/reference/storage/mongodb.mdx +4 -2
- package/.docs/raw/reference/storage/mssql.mdx +4 -2
- package/.docs/raw/reference/storage/postgresql.mdx +4 -2
- 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/.docs/raw/voice/overview.mdx +1 -1
- package/.docs/raw/workflows/overview.mdx +1 -1
- package/.docs/raw/workflows/snapshots.mdx +2 -1
- package/CHANGELOG.md +15 -0
- package/package.json +5 -5
- package/.docs/raw/mastra-cloud/dashboard.mdx +0 -96
- package/.docs/raw/mastra-cloud/setting-up.mdx +0 -106
- package/.docs/raw/workflows/inngest-workflow.mdx +0 -362
|
@@ -1,5 +1,89 @@
|
|
|
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
|
+
|
|
12
|
+
## 1.0.0-beta.15
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- Unified observability schema with entity-based span identification ([#11132](https://github.com/mastra-ai/mastra/pull/11132))
|
|
17
|
+
|
|
18
|
+
## What changed
|
|
19
|
+
|
|
20
|
+
Spans now use a unified identification model with `entityId`, `entityType`, and `entityName` instead of separate `agentId`, `toolId`, `workflowId` fields.
|
|
21
|
+
|
|
22
|
+
**Before:**
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
// Old span structure
|
|
26
|
+
span.agentId; // 'my-agent'
|
|
27
|
+
span.toolId; // undefined
|
|
28
|
+
span.workflowId; // undefined
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**After:**
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
// New span structure
|
|
35
|
+
span.entityType; // EntityType.AGENT
|
|
36
|
+
span.entityId; // 'my-agent'
|
|
37
|
+
span.entityName; // 'My Agent'
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## New `listTraces()` API
|
|
41
|
+
|
|
42
|
+
Query traces with filtering, pagination, and sorting:
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
const { spans, pagination } = await storage.listTraces({
|
|
46
|
+
filters: {
|
|
47
|
+
entityType: EntityType.AGENT,
|
|
48
|
+
entityId: 'my-agent',
|
|
49
|
+
userId: 'user-123',
|
|
50
|
+
environment: 'production',
|
|
51
|
+
status: TraceStatus.SUCCESS,
|
|
52
|
+
startedAt: { start: new Date('2024-01-01'), end: new Date('2024-01-31') },
|
|
53
|
+
},
|
|
54
|
+
pagination: { page: 0, perPage: 50 },
|
|
55
|
+
orderBy: { field: 'startedAt', direction: 'DESC' },
|
|
56
|
+
});
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Available filters:** date ranges (`startedAt`, `endedAt`), entity (`entityType`, `entityId`, `entityName`), identity (`userId`, `organizationId`), correlation IDs (`runId`, `sessionId`, `threadId`), deployment (`environment`, `source`, `serviceName`), `tags`, `metadata`, and `status`.
|
|
60
|
+
|
|
61
|
+
## New retrieval methods
|
|
62
|
+
- `getSpan({ traceId, spanId })` - Get a single span
|
|
63
|
+
- `getRootSpan({ traceId })` - Get the root span of a trace
|
|
64
|
+
- `getTrace({ traceId })` - Get all spans for a trace
|
|
65
|
+
|
|
66
|
+
## Backward compatibility
|
|
67
|
+
|
|
68
|
+
The legacy `getTraces()` method continues to work. When you pass `name: "agent run: my-agent"`, it automatically transforms to `entityId: "my-agent", entityType: AGENT`.
|
|
69
|
+
|
|
70
|
+
## Migration
|
|
71
|
+
|
|
72
|
+
**Automatic:** SQL-based stores (PostgreSQL, LibSQL, MSSQL) automatically add new columns to existing `spans` tables on initialization. Existing data is preserved with new columns set to `NULL`.
|
|
73
|
+
|
|
74
|
+
**No action required:** Your existing code continues to work. Adopt the new fields and `listTraces()` API at your convenience.
|
|
75
|
+
|
|
76
|
+
### Patch Changes
|
|
77
|
+
|
|
78
|
+
- Add debugger-like click-through UI to workflow graph ([#11350](https://github.com/mastra-ai/mastra/pull/11350))
|
|
79
|
+
|
|
80
|
+
- Add `getSystemPackages()` method to retrieve installed Mastra packages and their versions from the server ([#11211](https://github.com/mastra-ai/mastra/pull/11211))
|
|
81
|
+
|
|
82
|
+
- Fix error parsing json body for reset agent endpoint ([#11379](https://github.com/mastra-ai/mastra/pull/11379))
|
|
83
|
+
|
|
84
|
+
- Updated dependencies [[`33a4d2e`](https://github.com/mastra-ai/mastra/commit/33a4d2e4ed8af51f69256232f00c34d6b6b51d48), [`4aaa844`](https://github.com/mastra-ai/mastra/commit/4aaa844a4f19d054490f43638a990cc57bda8d2f), [`4a1a6cb`](https://github.com/mastra-ai/mastra/commit/4a1a6cb3facad54b2bb6780b00ce91d6de1edc08), [`31d13d5`](https://github.com/mastra-ai/mastra/commit/31d13d5fdc2e2380e2e3ee3ec9fb29d2a00f265d), [`4c62166`](https://github.com/mastra-ai/mastra/commit/4c621669f4a29b1f443eca3ba70b814afa286266), [`7bcbf10`](https://github.com/mastra-ai/mastra/commit/7bcbf10133516e03df964b941f9a34e9e4ab4177), [`4353600`](https://github.com/mastra-ai/mastra/commit/43536005a65988a8eede236f69122e7f5a284ba2), [`6986fb0`](https://github.com/mastra-ai/mastra/commit/6986fb064f5db6ecc24aa655e1d26529087b43b3), [`053e979`](https://github.com/mastra-ai/mastra/commit/053e9793b28e970086b0507f7f3b76ea32c1e838), [`e26dc9c`](https://github.com/mastra-ai/mastra/commit/e26dc9c3ccfec54ae3dc3e2b2589f741f9ae60a6), [`55edf73`](https://github.com/mastra-ai/mastra/commit/55edf7302149d6c964fbb7908b43babfc2b52145), [`27c0009`](https://github.com/mastra-ai/mastra/commit/27c0009777a6073d7631b0eb7b481d94e165b5ca), [`dee388d`](https://github.com/mastra-ai/mastra/commit/dee388dde02f2e63c53385ae69252a47ab6825cc), [`3f3fc30`](https://github.com/mastra-ai/mastra/commit/3f3fc3096f24c4a26cffeecfe73085928f72aa63), [`d90ea65`](https://github.com/mastra-ai/mastra/commit/d90ea6536f7aa51c6545a4e9215b55858e98e16d), [`d171e55`](https://github.com/mastra-ai/mastra/commit/d171e559ead9f52ec728d424844c8f7b164c4510), [`10c2735`](https://github.com/mastra-ai/mastra/commit/10c27355edfdad1ee2b826b897df74125eb81fb8), [`1924cf0`](https://github.com/mastra-ai/mastra/commit/1924cf06816e5e4d4d5333065ec0f4bb02a97799), [`b339816`](https://github.com/mastra-ai/mastra/commit/b339816df0984d0243d944ac2655d6ba5f809cde)]:
|
|
85
|
+
- @mastra/core@1.0.0-beta.15
|
|
86
|
+
|
|
3
87
|
## 1.0.0-beta.14
|
|
4
88
|
|
|
5
89
|
### Patch Changes
|
|
@@ -414,89 +498,5 @@
|
|
|
414
498
|
**Stricter validation:**
|
|
415
499
|
- `listMessages()` requires non-empty, non-whitespace `threadId` (throws error instead of returning empty results)
|
|
416
500
|
|
|
417
|
-
**Migration:**
|
|
418
|
-
|
|
419
|
-
```typescript
|
|
420
|
-
// Storage/Memory: Replace getMessagesPaginated with listMessages
|
|
421
|
-
- storage.getMessagesPaginated({ threadId, selectBy: { pagination: { page: 0, perPage: 20 } } })
|
|
422
|
-
+ storage.listMessages({ threadId, page: 0, perPage: 20 })
|
|
423
|
-
+ storage.listMessages({ threadId, page: 0, perPage: false }) // Fetch all
|
|
424
|
-
|
|
425
|
-
// Memory: Replace selectBy with flat parameters
|
|
426
|
-
- memory.query({ threadId, selectBy: { last: 20, include: [...] } })
|
|
427
|
-
+ memory.query({ threadId, perPage: 20, include: [...] })
|
|
428
|
-
|
|
429
|
-
// Client SDK
|
|
430
|
-
- thread.getMessagesPaginated({ selectBy: { pagination: { page: 0 } } })
|
|
431
|
-
+ thread.listMessages({ page: 0, perPage: 20 })
|
|
432
|
-
```
|
|
433
|
-
|
|
434
|
-
- # Major Changes ([#9695](https://github.com/mastra-ai/mastra/pull/9695))
|
|
435
|
-
|
|
436
|
-
## Storage Layer
|
|
437
|
-
|
|
438
|
-
### BREAKING: Removed `storage.getMessages()`
|
|
439
|
-
|
|
440
|
-
The `getMessages()` method has been removed from all storage implementations. Use `listMessages()` instead, which provides pagination support.
|
|
441
|
-
|
|
442
|
-
**Migration:**
|
|
443
|
-
|
|
444
|
-
```typescript
|
|
445
|
-
// Before
|
|
446
|
-
const messages = await storage.getMessages({ threadId: 'thread-1' });
|
|
447
|
-
|
|
448
|
-
// After
|
|
449
|
-
const result = await storage.listMessages({
|
|
450
|
-
threadId: 'thread-1',
|
|
451
|
-
page: 0,
|
|
452
|
-
perPage: 50,
|
|
453
|
-
});
|
|
454
|
-
const messages = result.messages; // Access messages array
|
|
455
|
-
console.log(result.total); // Total count
|
|
456
|
-
console.log(result.hasMore); // Whether more pages exist
|
|
457
|
-
```
|
|
458
|
-
|
|
459
|
-
### Message ordering default
|
|
460
|
-
|
|
461
|
-
`listMessages()` defaults to ASC (oldest first) ordering by `createdAt`, matching the previous `getMessages()` behavior.
|
|
462
|
-
|
|
463
|
-
**To use DESC ordering (newest first):**
|
|
464
|
-
|
|
465
|
-
```typescript
|
|
466
|
-
const result = await storage.listMessages({
|
|
467
|
-
threadId: 'thread-1',
|
|
468
|
-
orderBy: { field: 'createdAt', direction: 'DESC' },
|
|
469
|
-
});
|
|
470
|
-
```
|
|
471
|
-
|
|
472
|
-
## Client SDK
|
|
473
|
-
|
|
474
|
-
### BREAKING: Renamed `client.getThreadMessages()` → `client.listThreadMessages()`
|
|
475
|
-
|
|
476
|
-
**Migration:**
|
|
477
|
-
|
|
478
|
-
```typescript
|
|
479
|
-
// Before
|
|
480
|
-
const response = await client.getThreadMessages(threadId, { agentId });
|
|
481
|
-
|
|
482
|
-
// After
|
|
483
|
-
const response = await client.listThreadMessages(threadId, { agentId });
|
|
484
|
-
```
|
|
485
|
-
|
|
486
|
-
The response format remains the same.
|
|
487
|
-
|
|
488
|
-
## Type Changes
|
|
489
|
-
|
|
490
|
-
### BREAKING: Removed `StorageGetMessagesArg` type
|
|
491
|
-
|
|
492
|
-
Use `StorageListMessagesInput` instead:
|
|
493
|
-
|
|
494
|
-
```typescript
|
|
495
|
-
// Before
|
|
496
|
-
import type { StorageGetMessagesArg } from '@mastra/core';
|
|
497
|
-
|
|
498
|
-
// After
|
|
499
|
-
import type { StorageListMessagesInput } from '@mastra/core';
|
|
500
|
-
```
|
|
501
501
|
|
|
502
|
-
...
|
|
502
|
+
... 3556 more lines hidden. See full changelog in package directory.
|