@mastra/playground-ui 7.0.0-beta.14 → 7.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/CHANGELOG.md +107 -0
- package/dist/index.cjs.js +1054 -420
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1050 -423
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/ui/combobox.d.ts +3 -3
- package/dist/src/components/ui/containers/MainContent.d.ts +7 -0
- package/dist/src/domains/agents/components/agent-combobox.d.ts +1 -3
- package/dist/src/domains/agents/components/agent-layout.d.ts +7 -0
- package/dist/src/domains/agents/index.d.ts +1 -0
- package/dist/src/domains/configuration/components/mastra-version-footer.d.ts +17 -0
- package/dist/src/domains/configuration/hooks/use-mastra-packages.d.ts +1 -0
- package/dist/src/domains/configuration/hooks/use-package-updates.d.ts +18 -0
- package/dist/src/domains/configuration/index.d.ts +3 -0
- package/dist/src/domains/mcps/components/mcp-server-combobox.d.ts +1 -3
- package/dist/src/domains/observability/components/helpers.d.ts +11 -3
- package/dist/src/domains/observability/components/span-dialog.d.ts +2 -1
- package/dist/src/domains/observability/components/span-score-list.d.ts +1 -1
- package/dist/src/domains/observability/components/span-tabs.d.ts +2 -1
- package/dist/src/domains/observability/components/trace-span-usage.d.ts +1 -1
- package/dist/src/domains/observability/components/traces-list.d.ts +1 -1
- package/dist/src/domains/observability/components/traces-tools.d.ts +10 -1
- package/dist/src/domains/observability/context/tracing-settings-context.d.ts +1 -0
- package/dist/src/domains/observability/hooks/use-tracing-settings-state.d.ts +1 -0
- package/dist/src/domains/scores/components/score-dialog.d.ts +2 -2
- package/dist/src/domains/scores/components/scorer-combobox.d.ts +1 -3
- package/dist/src/domains/scores/hooks/use-trace-span-scores.d.ts +41 -1
- package/dist/src/domains/tools/components/tool-combobox.d.ts +1 -3
- package/dist/src/domains/workflows/components/workflow-combobox.d.ts +1 -3
- package/dist/src/domains/workflows/components/workflow-layout.d.ts +7 -0
- package/dist/src/domains/workflows/context/workflow-run-context.d.ts +3 -1
- package/dist/src/domains/workflows/hooks/use-workflows-actions.d.ts +6 -2
- package/dist/src/domains/workflows/index.d.ts +1 -0
- package/dist/src/domains/workflows/workflow/workflow-default-node.d.ts +2 -1
- package/dist/src/domains/workflows/workflow/workflow-nested-node.d.ts +2 -1
- package/dist/src/domains/workflows/workflow/workflow-run-options.d.ts +1 -0
- package/dist/src/domains/workflows/workflow/workflow-step-action-bar.d.ts +4 -2
- package/dist/src/domains/workflows/workflow/workflow-time-travel-form.d.ts +5 -1
- package/dist/src/domains/workflows/workflow/workflow-trigger.d.ts +4 -2
- package/dist/src/lib/resize/collapsible-panel.d.ts +5 -0
- package/dist/src/lib/resize/separator.d.ts +1 -0
- package/package.json +14 -11
package/CHANGELOG.md
CHANGED
|
@@ -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
|