@mastra/playground-ui 7.0.0-beta.14 → 7.0.0-beta.15

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 (35) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/dist/index.cjs.js +835 -180
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.es.js +831 -183
  5. package/dist/index.es.js.map +1 -1
  6. package/dist/src/components/ui/containers/MainContent.d.ts +7 -0
  7. package/dist/src/domains/agents/components/agent-layout.d.ts +7 -0
  8. package/dist/src/domains/agents/index.d.ts +1 -0
  9. package/dist/src/domains/configuration/components/mastra-version-footer.d.ts +17 -0
  10. package/dist/src/domains/configuration/hooks/use-mastra-packages.d.ts +1 -0
  11. package/dist/src/domains/configuration/hooks/use-package-updates.d.ts +18 -0
  12. package/dist/src/domains/configuration/index.d.ts +3 -0
  13. package/dist/src/domains/observability/components/helpers.d.ts +11 -3
  14. package/dist/src/domains/observability/components/span-dialog.d.ts +2 -1
  15. package/dist/src/domains/observability/components/span-score-list.d.ts +1 -1
  16. package/dist/src/domains/observability/components/span-tabs.d.ts +2 -1
  17. package/dist/src/domains/observability/components/trace-span-usage.d.ts +1 -1
  18. package/dist/src/domains/observability/components/traces-list.d.ts +1 -1
  19. package/dist/src/domains/observability/context/tracing-settings-context.d.ts +1 -0
  20. package/dist/src/domains/observability/hooks/use-tracing-settings-state.d.ts +1 -0
  21. package/dist/src/domains/scores/components/score-dialog.d.ts +2 -2
  22. package/dist/src/domains/scores/hooks/use-trace-span-scores.d.ts +41 -1
  23. package/dist/src/domains/workflows/components/workflow-layout.d.ts +7 -0
  24. package/dist/src/domains/workflows/context/workflow-run-context.d.ts +3 -1
  25. package/dist/src/domains/workflows/hooks/use-workflows-actions.d.ts +6 -2
  26. package/dist/src/domains/workflows/index.d.ts +1 -0
  27. package/dist/src/domains/workflows/workflow/workflow-default-node.d.ts +2 -1
  28. package/dist/src/domains/workflows/workflow/workflow-nested-node.d.ts +2 -1
  29. package/dist/src/domains/workflows/workflow/workflow-run-options.d.ts +1 -0
  30. package/dist/src/domains/workflows/workflow/workflow-step-action-bar.d.ts +4 -2
  31. package/dist/src/domains/workflows/workflow/workflow-time-travel-form.d.ts +5 -1
  32. package/dist/src/domains/workflows/workflow/workflow-trigger.d.ts +4 -2
  33. package/dist/src/lib/resize/collapsible-panel.d.ts +5 -0
  34. package/dist/src/lib/resize/separator.d.ts +1 -0
  35. package/package.json +13 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,85 @@
1
1
  # @mastra/playground-ui
2
2
 
3
+ ## 7.0.0-beta.15
4
+
5
+ ### Minor Changes
6
+
7
+ - Unified observability schema with entity-based span identification ([#11132](https://github.com/mastra-ai/mastra/pull/11132))
8
+
9
+ ## What changed
10
+
11
+ Spans now use a unified identification model with `entityId`, `entityType`, and `entityName` instead of separate `agentId`, `toolId`, `workflowId` fields.
12
+
13
+ **Before:**
14
+
15
+ ```typescript
16
+ // Old span structure
17
+ span.agentId; // 'my-agent'
18
+ span.toolId; // undefined
19
+ span.workflowId; // undefined
20
+ ```
21
+
22
+ **After:**
23
+
24
+ ```typescript
25
+ // New span structure
26
+ span.entityType; // EntityType.AGENT
27
+ span.entityId; // 'my-agent'
28
+ span.entityName; // 'My Agent'
29
+ ```
30
+
31
+ ## New `listTraces()` API
32
+
33
+ Query traces with filtering, pagination, and sorting:
34
+
35
+ ```typescript
36
+ const { spans, pagination } = await storage.listTraces({
37
+ filters: {
38
+ entityType: EntityType.AGENT,
39
+ entityId: 'my-agent',
40
+ userId: 'user-123',
41
+ environment: 'production',
42
+ status: TraceStatus.SUCCESS,
43
+ startedAt: { start: new Date('2024-01-01'), end: new Date('2024-01-31') },
44
+ },
45
+ pagination: { page: 0, perPage: 50 },
46
+ orderBy: { field: 'startedAt', direction: 'DESC' },
47
+ });
48
+ ```
49
+
50
+ **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`.
51
+
52
+ ## New retrieval methods
53
+ - `getSpan({ traceId, spanId })` - Get a single span
54
+ - `getRootSpan({ traceId })` - Get the root span of a trace
55
+ - `getTrace({ traceId })` - Get all spans for a trace
56
+
57
+ ## Backward compatibility
58
+
59
+ The legacy `getTraces()` method continues to work. When you pass `name: "agent run: my-agent"`, it automatically transforms to `entityId: "my-agent", entityType: AGENT`.
60
+
61
+ ## Migration
62
+
63
+ **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`.
64
+
65
+ **No action required:** Your existing code continues to work. Adopt the new fields and `listTraces()` API at your convenience.
66
+
67
+ ### Patch Changes
68
+
69
+ - 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))
70
+
71
+ - 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))
72
+
73
+ - Add resizable and collapsible side panels for agents and workflows ([#11371](https://github.com/mastra-ai/mastra/pull/11371))
74
+
75
+ - Add debugger-like click-through UI to workflow graph ([#11350](https://github.com/mastra-ai/mastra/pull/11350))
76
+
77
+ - 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)]:
78
+ - @mastra/core@1.0.0-beta.15
79
+ - @mastra/ai-sdk@1.0.0-beta.11
80
+ - @mastra/client-js@1.0.0-beta.15
81
+ - @mastra/react@0.1.0-beta.15
82
+
3
83
  ## 7.0.0-beta.14
4
84
 
5
85
  ### Patch Changes