@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,112 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 7.0.0-beta.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix workflow observability view broken by invalid entityType parameter ([#11427](https://github.com/mastra-ai/mastra/pull/11427))
|
|
8
|
+
|
|
9
|
+
The UI workflow observability view was failing with a Zod validation error when trying to filter traces by workflow. The UI was sending `entityType=workflow`, but the backend's `EntityType` enum only accepts `workflow_run`.
|
|
10
|
+
|
|
11
|
+
**Root Cause**: The legacy value transformation was happening in the handler (after validation), but Zod validation occurred earlier in the request pipeline, rejecting the request before it could be transformed.
|
|
12
|
+
|
|
13
|
+
**Solution**:
|
|
14
|
+
- Added `z.preprocess()` to the query schema to transform `workflow` → `workflow_run` before validation
|
|
15
|
+
- Kept handler transformation for defense in depth
|
|
16
|
+
- Updated UI to use `EntityType.WORKFLOW_RUN` enum value for type safety
|
|
17
|
+
|
|
18
|
+
This maintains backward compatibility with legacy clients while fixing the validation error.
|
|
19
|
+
|
|
20
|
+
Fixes #11412
|
|
21
|
+
|
|
22
|
+
- Add container queries, adjust the agent chat and use container queries to better display information on the agent sidebar ([#11408](https://github.com/mastra-ai/mastra/pull/11408))
|
|
23
|
+
|
|
24
|
+
- 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), [`6cbb549`](https://github.com/mastra-ai/mastra/commit/6cbb549475201a2fbf158f0fd7323f6495f46d08), [`8a73529`](https://github.com/mastra-ai/mastra/commit/8a73529ca01187f604b1f3019d0a725ac63ae55f)]:
|
|
25
|
+
- @mastra/core@1.0.0-beta.16
|
|
26
|
+
- @mastra/client-js@1.0.0-beta.16
|
|
27
|
+
- @mastra/react@0.1.0-beta.16
|
|
28
|
+
- @mastra/ai-sdk@1.0.0-beta.11
|
|
29
|
+
|
|
30
|
+
## 7.0.0-beta.15
|
|
31
|
+
|
|
32
|
+
### Minor Changes
|
|
33
|
+
|
|
34
|
+
- Unified observability schema with entity-based span identification ([#11132](https://github.com/mastra-ai/mastra/pull/11132))
|
|
35
|
+
|
|
36
|
+
## What changed
|
|
37
|
+
|
|
38
|
+
Spans now use a unified identification model with `entityId`, `entityType`, and `entityName` instead of separate `agentId`, `toolId`, `workflowId` fields.
|
|
39
|
+
|
|
40
|
+
**Before:**
|
|
41
|
+
|
|
42
|
+
```typescript
|
|
43
|
+
// Old span structure
|
|
44
|
+
span.agentId; // 'my-agent'
|
|
45
|
+
span.toolId; // undefined
|
|
46
|
+
span.workflowId; // undefined
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**After:**
|
|
50
|
+
|
|
51
|
+
```typescript
|
|
52
|
+
// New span structure
|
|
53
|
+
span.entityType; // EntityType.AGENT
|
|
54
|
+
span.entityId; // 'my-agent'
|
|
55
|
+
span.entityName; // 'My Agent'
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## New `listTraces()` API
|
|
59
|
+
|
|
60
|
+
Query traces with filtering, pagination, and sorting:
|
|
61
|
+
|
|
62
|
+
```typescript
|
|
63
|
+
const { spans, pagination } = await storage.listTraces({
|
|
64
|
+
filters: {
|
|
65
|
+
entityType: EntityType.AGENT,
|
|
66
|
+
entityId: 'my-agent',
|
|
67
|
+
userId: 'user-123',
|
|
68
|
+
environment: 'production',
|
|
69
|
+
status: TraceStatus.SUCCESS,
|
|
70
|
+
startedAt: { start: new Date('2024-01-01'), end: new Date('2024-01-31') },
|
|
71
|
+
},
|
|
72
|
+
pagination: { page: 0, perPage: 50 },
|
|
73
|
+
orderBy: { field: 'startedAt', direction: 'DESC' },
|
|
74
|
+
});
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**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`.
|
|
78
|
+
|
|
79
|
+
## New retrieval methods
|
|
80
|
+
- `getSpan({ traceId, spanId })` - Get a single span
|
|
81
|
+
- `getRootSpan({ traceId })` - Get the root span of a trace
|
|
82
|
+
- `getTrace({ traceId })` - Get all spans for a trace
|
|
83
|
+
|
|
84
|
+
## Backward compatibility
|
|
85
|
+
|
|
86
|
+
The legacy `getTraces()` method continues to work. When you pass `name: "agent run: my-agent"`, it automatically transforms to `entityId: "my-agent", entityType: AGENT`.
|
|
87
|
+
|
|
88
|
+
## Migration
|
|
89
|
+
|
|
90
|
+
**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`.
|
|
91
|
+
|
|
92
|
+
**No action required:** Your existing code continues to work. Adopt the new fields and `listTraces()` API at your convenience.
|
|
93
|
+
|
|
94
|
+
### Patch Changes
|
|
95
|
+
|
|
96
|
+
- Add Mastra version footer component that displays installed packages and checks npm registry for available updates and deprecation warnings ([#11211](https://github.com/mastra-ai/mastra/pull/11211))
|
|
97
|
+
|
|
98
|
+
- Fix clicking nested workflows in sidepanel: resolve runtime error when clicking "View Nested Graph" inside an already-open nested workflow panel, and ensure the graph updates when switching between nested workflows. ([#11391](https://github.com/mastra-ai/mastra/pull/11391))
|
|
99
|
+
|
|
100
|
+
- Add resizable and collapsible side panels for agents and workflows ([#11371](https://github.com/mastra-ai/mastra/pull/11371))
|
|
101
|
+
|
|
102
|
+
- Add debugger-like click-through UI to workflow graph ([#11350](https://github.com/mastra-ai/mastra/pull/11350))
|
|
103
|
+
|
|
104
|
+
- 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), [`632fdb8`](https://github.com/mastra-ai/mastra/commit/632fdb8b3cd9ff6f90399256d526db439fc1758b), [`10c2735`](https://github.com/mastra-ai/mastra/commit/10c27355edfdad1ee2b826b897df74125eb81fb8), [`1924cf0`](https://github.com/mastra-ai/mastra/commit/1924cf06816e5e4d4d5333065ec0f4bb02a97799), [`184f01d`](https://github.com/mastra-ai/mastra/commit/184f01d1f534ec0be9703d3996f2e088b4a560eb), [`b339816`](https://github.com/mastra-ai/mastra/commit/b339816df0984d0243d944ac2655d6ba5f809cde)]:
|
|
105
|
+
- @mastra/core@1.0.0-beta.15
|
|
106
|
+
- @mastra/ai-sdk@1.0.0-beta.11
|
|
107
|
+
- @mastra/client-js@1.0.0-beta.15
|
|
108
|
+
- @mastra/react@0.1.0-beta.15
|
|
109
|
+
|
|
3
110
|
## 7.0.0-beta.14
|
|
4
111
|
|
|
5
112
|
### Patch Changes
|
|
@@ -392,111 +499,4 @@
|
|
|
392
499
|
// Before
|
|
393
500
|
const messages = await storage.getMessages({ threadId: 'thread-1' });
|
|
394
501
|
|
|
395
|
-
|
|
396
|
-
const result = await storage.listMessages({
|
|
397
|
-
threadId: 'thread-1',
|
|
398
|
-
page: 0,
|
|
399
|
-
perPage: 50,
|
|
400
|
-
});
|
|
401
|
-
const messages = result.messages; // Access messages array
|
|
402
|
-
console.log(result.total); // Total count
|
|
403
|
-
console.log(result.hasMore); // Whether more pages exist
|
|
404
|
-
```
|
|
405
|
-
|
|
406
|
-
### Message ordering default
|
|
407
|
-
|
|
408
|
-
`listMessages()` defaults to ASC (oldest first) ordering by `createdAt`, matching the previous `getMessages()` behavior.
|
|
409
|
-
|
|
410
|
-
**To use DESC ordering (newest first):**
|
|
411
|
-
|
|
412
|
-
```typescript
|
|
413
|
-
const result = await storage.listMessages({
|
|
414
|
-
threadId: 'thread-1',
|
|
415
|
-
orderBy: { field: 'createdAt', direction: 'DESC' },
|
|
416
|
-
});
|
|
417
|
-
```
|
|
418
|
-
|
|
419
|
-
## Client SDK
|
|
420
|
-
|
|
421
|
-
### BREAKING: Renamed `client.getThreadMessages()` → `client.listThreadMessages()`
|
|
422
|
-
|
|
423
|
-
**Migration:**
|
|
424
|
-
|
|
425
|
-
```typescript
|
|
426
|
-
// Before
|
|
427
|
-
const response = await client.getThreadMessages(threadId, { agentId });
|
|
428
|
-
|
|
429
|
-
// After
|
|
430
|
-
const response = await client.listThreadMessages(threadId, { agentId });
|
|
431
|
-
```
|
|
432
|
-
|
|
433
|
-
The response format remains the same.
|
|
434
|
-
|
|
435
|
-
## Type Changes
|
|
436
|
-
|
|
437
|
-
### BREAKING: Removed `StorageGetMessagesArg` type
|
|
438
|
-
|
|
439
|
-
Use `StorageListMessagesInput` instead:
|
|
440
|
-
|
|
441
|
-
```typescript
|
|
442
|
-
// Before
|
|
443
|
-
import type { StorageGetMessagesArg } from '@mastra/core';
|
|
444
|
-
|
|
445
|
-
// After
|
|
446
|
-
import type { StorageListMessagesInput } from '@mastra/core';
|
|
447
|
-
```
|
|
448
|
-
|
|
449
|
-
- Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
|
|
450
|
-
|
|
451
|
-
- Replace `getThreadsByResourceIdPaginated` with `listThreadsByResourceId` across memory handlers. Update client SDK to use `listThreads()` with `offset`/`limit` parameters instead of deprecated `getMemoryThreads()`. Consolidate `/api/memory/threads` routes to single paginated endpoint. ([#9508](https://github.com/mastra-ai/mastra/pull/9508))
|
|
452
|
-
|
|
453
|
-
- Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
|
|
454
|
-
|
|
455
|
-
- Renamed a bunch of observability/tracing-related things to drop the AI prefix. ([#9744](https://github.com/mastra-ai/mastra/pull/9744))
|
|
456
|
-
|
|
457
|
-
- **Breaking Change**: Remove legacy v1 watch events and consolidate on v2 implementation. ([#9252](https://github.com/mastra-ai/mastra/pull/9252))
|
|
458
|
-
|
|
459
|
-
This change simplifies the workflow watching API by removing the legacy v1 event system and promoting v2 as the standard (renamed to just `watch`).
|
|
460
|
-
|
|
461
|
-
### What's Changed
|
|
462
|
-
- Removed legacy v1 watch event handlers and types
|
|
463
|
-
- Renamed `watch-v2` to `watch` throughout the codebase
|
|
464
|
-
- Removed `.watch()` method from client-js SDK (`Workflow` and `AgentBuilder` classes)
|
|
465
|
-
- Removed `/watch` HTTP endpoints from server and deployer
|
|
466
|
-
- Removed `WorkflowWatchResult` and v1 `WatchEvent` types
|
|
467
|
-
|
|
468
|
-
- **BREAKING CHANGE**: Pagination APIs now use `page`/`perPage` instead of `offset`/`limit` ([#9592](https://github.com/mastra-ai/mastra/pull/9592))
|
|
469
|
-
|
|
470
|
-
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.
|
|
471
|
-
|
|
472
|
-
**Affected APIs:**
|
|
473
|
-
- `Memory.listThreadsByResourceId()`
|
|
474
|
-
- `Memory.listMessages()`
|
|
475
|
-
- `Storage.listWorkflowRuns()`
|
|
476
|
-
|
|
477
|
-
**Migration:**
|
|
478
|
-
|
|
479
|
-
```typescript
|
|
480
|
-
// Before
|
|
481
|
-
await memory.listThreadsByResourceId({
|
|
482
|
-
resourceId: 'user-123',
|
|
483
|
-
offset: 20,
|
|
484
|
-
limit: 10,
|
|
485
|
-
});
|
|
486
|
-
|
|
487
|
-
// After
|
|
488
|
-
await memory.listThreadsByResourceId({
|
|
489
|
-
resourceId: 'user-123',
|
|
490
|
-
page: 2, // page = Math.floor(offset / limit)
|
|
491
|
-
perPage: 10,
|
|
492
|
-
});
|
|
493
|
-
|
|
494
|
-
// Before
|
|
495
|
-
await memory.listMessages({
|
|
496
|
-
threadId: 'thread-456',
|
|
497
|
-
offset: 20,
|
|
498
|
-
limit: 10,
|
|
499
|
-
});
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
... 4311 more lines hidden. See full changelog in package directory.
|
|
502
|
+
... 4418 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,81 @@
|
|
|
1
1
|
# @mastra/react-hooks
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`6cbb549`](https://github.com/mastra-ai/mastra/commit/6cbb549475201a2fbf158f0fd7323f6495f46d08)]:
|
|
8
|
+
- @mastra/client-js@1.0.0-beta.16
|
|
9
|
+
|
|
10
|
+
## 0.1.0-beta.15
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- Unified observability schema with entity-based span identification ([#11132](https://github.com/mastra-ai/mastra/pull/11132))
|
|
15
|
+
|
|
16
|
+
## What changed
|
|
17
|
+
|
|
18
|
+
Spans now use a unified identification model with `entityId`, `entityType`, and `entityName` instead of separate `agentId`, `toolId`, `workflowId` fields.
|
|
19
|
+
|
|
20
|
+
**Before:**
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
// Old span structure
|
|
24
|
+
span.agentId; // 'my-agent'
|
|
25
|
+
span.toolId; // undefined
|
|
26
|
+
span.workflowId; // undefined
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**After:**
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
// New span structure
|
|
33
|
+
span.entityType; // EntityType.AGENT
|
|
34
|
+
span.entityId; // 'my-agent'
|
|
35
|
+
span.entityName; // 'My Agent'
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## New `listTraces()` API
|
|
39
|
+
|
|
40
|
+
Query traces with filtering, pagination, and sorting:
|
|
41
|
+
|
|
42
|
+
```typescript
|
|
43
|
+
const { spans, pagination } = await storage.listTraces({
|
|
44
|
+
filters: {
|
|
45
|
+
entityType: EntityType.AGENT,
|
|
46
|
+
entityId: 'my-agent',
|
|
47
|
+
userId: 'user-123',
|
|
48
|
+
environment: 'production',
|
|
49
|
+
status: TraceStatus.SUCCESS,
|
|
50
|
+
startedAt: { start: new Date('2024-01-01'), end: new Date('2024-01-31') },
|
|
51
|
+
},
|
|
52
|
+
pagination: { page: 0, perPage: 50 },
|
|
53
|
+
orderBy: { field: 'startedAt', direction: 'DESC' },
|
|
54
|
+
});
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**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`.
|
|
58
|
+
|
|
59
|
+
## New retrieval methods
|
|
60
|
+
- `getSpan({ traceId, spanId })` - Get a single span
|
|
61
|
+
- `getRootSpan({ traceId })` - Get the root span of a trace
|
|
62
|
+
- `getTrace({ traceId })` - Get all spans for a trace
|
|
63
|
+
|
|
64
|
+
## Backward compatibility
|
|
65
|
+
|
|
66
|
+
The legacy `getTraces()` method continues to work. When you pass `name: "agent run: my-agent"`, it automatically transforms to `entityId: "my-agent", entityType: AGENT`.
|
|
67
|
+
|
|
68
|
+
## Migration
|
|
69
|
+
|
|
70
|
+
**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`.
|
|
71
|
+
|
|
72
|
+
**No action required:** Your existing code continues to work. Adopt the new fields and `listTraces()` API at your convenience.
|
|
73
|
+
|
|
74
|
+
### Patch Changes
|
|
75
|
+
|
|
76
|
+
- Updated dependencies [[`d90ea65`](https://github.com/mastra-ai/mastra/commit/d90ea6536f7aa51c6545a4e9215b55858e98e16d), [`d171e55`](https://github.com/mastra-ai/mastra/commit/d171e559ead9f52ec728d424844c8f7b164c4510), [`632fdb8`](https://github.com/mastra-ai/mastra/commit/632fdb8b3cd9ff6f90399256d526db439fc1758b), [`184f01d`](https://github.com/mastra-ai/mastra/commit/184f01d1f534ec0be9703d3996f2e088b4a560eb)]:
|
|
77
|
+
- @mastra/client-js@1.0.0-beta.15
|
|
78
|
+
|
|
3
79
|
## 0.1.0-beta.14
|
|
4
80
|
|
|
5
81
|
### Patch Changes
|
|
@@ -423,80 +499,4 @@
|
|
|
423
499
|
|
|
424
500
|
- Convert WorkflowWatchResult to WorkflowResult in workflow graph ([#8541](https://github.com/mastra-ai/mastra/pull/8541))
|
|
425
501
|
|
|
426
|
-
|
|
427
|
-
- @mastra/client-js@0.15.1-alpha.1
|
|
428
|
-
|
|
429
|
-
## 0.0.4-alpha.0
|
|
430
|
-
|
|
431
|
-
### Patch Changes
|
|
432
|
-
|
|
433
|
-
- Updated dependencies []:
|
|
434
|
-
- @mastra/client-js@0.15.1-alpha.0
|
|
435
|
-
|
|
436
|
-
## 0.0.3
|
|
437
|
-
|
|
438
|
-
### Patch Changes
|
|
439
|
-
|
|
440
|
-
- generateVNext into react SDK + to asistant ui message ([#8345](https://github.com/mastra-ai/mastra/pull/8345))
|
|
441
|
-
|
|
442
|
-
- distinguish between legacy and regular messages in agent chat for useChat usage ([#8409](https://github.com/mastra-ai/mastra/pull/8409))
|
|
443
|
-
|
|
444
|
-
- Updated dependencies [[`d41aee5`](https://github.com/mastra-ai/mastra/commit/d41aee526d124e35f42720a08e64043229193679), [`fbf6e32`](https://github.com/mastra-ai/mastra/commit/fbf6e324946332d0f5ed8930bf9d4d4479cefd7a), [`4753027`](https://github.com/mastra-ai/mastra/commit/4753027ee889288775c6958bdfeda03ff909af67)]:
|
|
445
|
-
- @mastra/client-js@0.15.0
|
|
446
|
-
|
|
447
|
-
## 0.0.3-alpha.0
|
|
448
|
-
|
|
449
|
-
### Patch Changes
|
|
450
|
-
|
|
451
|
-
- generateVNext into react SDK + to asistant ui message ([#8345](https://github.com/mastra-ai/mastra/pull/8345))
|
|
452
|
-
|
|
453
|
-
- distinguish between legacy and regular messages in agent chat for useChat usage ([#8409](https://github.com/mastra-ai/mastra/pull/8409))
|
|
454
|
-
|
|
455
|
-
- Updated dependencies [[`d41aee5`](https://github.com/mastra-ai/mastra/commit/d41aee526d124e35f42720a08e64043229193679), [`fbf6e32`](https://github.com/mastra-ai/mastra/commit/fbf6e324946332d0f5ed8930bf9d4d4479cefd7a), [`4753027`](https://github.com/mastra-ai/mastra/commit/4753027ee889288775c6958bdfeda03ff909af67)]:
|
|
456
|
-
- @mastra/client-js@0.15.0-alpha.0
|
|
457
|
-
|
|
458
|
-
## 0.0.2
|
|
459
|
-
|
|
460
|
-
### Patch Changes
|
|
461
|
-
|
|
462
|
-
- Updated dependencies []:
|
|
463
|
-
- @mastra/client-js@0.14.1
|
|
464
|
-
|
|
465
|
-
## 0.0.2-alpha.1
|
|
466
|
-
|
|
467
|
-
### Patch Changes
|
|
468
|
-
|
|
469
|
-
- Updated dependencies []:
|
|
470
|
-
- @mastra/client-js@0.14.1-alpha.1
|
|
471
|
-
|
|
472
|
-
## 0.0.2-alpha.0
|
|
473
|
-
|
|
474
|
-
### Patch Changes
|
|
475
|
-
|
|
476
|
-
- Updated dependencies []:
|
|
477
|
-
- @mastra/client-js@0.14.1-alpha.0
|
|
478
|
-
|
|
479
|
-
## 0.0.1
|
|
480
|
-
|
|
481
|
-
### Patch Changes
|
|
482
|
-
|
|
483
|
-
- modify the useMastraChat hook to useChat ([#8265](https://github.com/mastra-ai/mastra/pull/8265))
|
|
484
|
-
|
|
485
|
-
- Updated dependencies [[`dc099b4`](https://github.com/mastra-ai/mastra/commit/dc099b40fb31147ba3f362f98d991892033c4c67), [`5cb4596`](https://github.com/mastra-ai/mastra/commit/5cb4596c644104ea817bb0c5a07b8b1f8de595a8), [`86be6be`](https://github.com/mastra-ai/mastra/commit/86be6bee7e64b7d828a6b4eec283265c820dfa43), [`57b6dd5`](https://github.com/mastra-ai/mastra/commit/57b6dd50f9e6d92c0ed3e7199e6a92752025e3a1), [`ea8d386`](https://github.com/mastra-ai/mastra/commit/ea8d386cd8c5593664515fd5770c06bf2aa980ef), [`67b0f00`](https://github.com/mastra-ai/mastra/commit/67b0f005b520335c71fb85cbaa25df4ce8484a81), [`6f67656`](https://github.com/mastra-ai/mastra/commit/6f676562276926e2982401574d1e07157579be30)]:
|
|
486
|
-
- @mastra/client-js@0.14.0
|
|
487
|
-
|
|
488
|
-
## 0.0.1-alpha.1
|
|
489
|
-
|
|
490
|
-
### Patch Changes
|
|
491
|
-
|
|
492
|
-
- modify the useMastraChat hook to useChat ([#8265](https://github.com/mastra-ai/mastra/pull/8265))
|
|
493
|
-
|
|
494
|
-
- Updated dependencies [[`5cb4596`](https://github.com/mastra-ai/mastra/commit/5cb4596c644104ea817bb0c5a07b8b1f8de595a8), [`86be6be`](https://github.com/mastra-ai/mastra/commit/86be6bee7e64b7d828a6b4eec283265c820dfa43), [`57b6dd5`](https://github.com/mastra-ai/mastra/commit/57b6dd50f9e6d92c0ed3e7199e6a92752025e3a1), [`ea8d386`](https://github.com/mastra-ai/mastra/commit/ea8d386cd8c5593664515fd5770c06bf2aa980ef), [`6f67656`](https://github.com/mastra-ai/mastra/commit/6f676562276926e2982401574d1e07157579be30)]:
|
|
495
|
-
- @mastra/client-js@0.14.0-alpha.1
|
|
496
|
-
|
|
497
|
-
## 0.0.1-alpha.1
|
|
498
|
-
|
|
499
|
-
### Patch Changes
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
... 3 more lines hidden. See full changelog in package directory.
|
|
502
|
+
... 79 more lines hidden. See full changelog in package directory.
|