@mastra/playground-ui 21.0.1-alpha.0 → 22.0.0-alpha.2

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 (37) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/index.cjs.js +2378 -335
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.css +133 -11
  5. package/dist/index.es.js +2365 -337
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/src/domains/agents/components/agent-layout.d.ts +2 -1
  8. package/dist/src/domains/agents/components/agent-traces-panel.d.ts +9 -2
  9. package/dist/src/domains/agents/components/browser-view/agent-busy-overlay.d.ts +11 -0
  10. package/dist/src/domains/agents/components/browser-view/browser-sidebar-tab.d.ts +5 -0
  11. package/dist/src/domains/agents/components/browser-view/browser-thumbnail.d.ts +12 -0
  12. package/dist/src/domains/agents/components/browser-view/browser-tool-call-history.d.ts +9 -0
  13. package/dist/src/domains/agents/components/browser-view/browser-tool-call-item.d.ts +6 -0
  14. package/dist/src/domains/agents/components/browser-view/browser-view-frame.d.ts +15 -0
  15. package/dist/src/domains/agents/components/browser-view/browser-view-header.d.ts +15 -0
  16. package/dist/src/domains/agents/components/browser-view/browser-view-panel.d.ts +12 -0
  17. package/dist/src/domains/agents/components/browser-view/click-ripple-overlay.d.ts +16 -0
  18. package/dist/src/domains/agents/components/browser-view/index.d.ts +8 -0
  19. package/dist/src/domains/agents/context/browser-session-context.d.ts +62 -0
  20. package/dist/src/domains/agents/context/browser-tool-calls-context.d.ts +33 -0
  21. package/dist/src/domains/agents/context/index.d.ts +2 -0
  22. package/dist/src/domains/agents/hooks/use-browser-stream.d.ts +34 -0
  23. package/dist/src/domains/agents/hooks/use-click-ripple.d.ts +29 -0
  24. package/dist/src/domains/agents/hooks/use-close-browser.d.ts +12 -0
  25. package/dist/src/domains/agents/hooks/use-input-coordination.d.ts +20 -0
  26. package/dist/src/domains/agents/hooks/use-keyboard-interaction.d.ts +19 -0
  27. package/dist/src/domains/agents/hooks/use-mouse-interaction.d.ts +28 -0
  28. package/dist/src/domains/agents/index.d.ts +1 -0
  29. package/dist/src/domains/agents/utils/__tests__/coordinate-mapping.test.d.ts +1 -0
  30. package/dist/src/domains/agents/utils/coordinate-mapping.d.ts +68 -0
  31. package/dist/src/domains/agents/utils/key-mapping.d.ts +8 -0
  32. package/dist/src/domains/datasets/components/bulk-trace-review-dialog.d.ts +18 -0
  33. package/dist/src/domains/datasets/components/dataset-detail/dataset-item-form.d.ts +3 -1
  34. package/dist/src/domains/datasets/components/save-as-dataset-item-dialog.d.ts +5 -1
  35. package/dist/src/domains/metrics/hooks/use-avg-score-kpi-metrics.d.ts +1 -1
  36. package/dist/src/lib/ai-ui/thread.d.ts +2 -1
  37. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,55 @@
1
1
  # @mastra/playground-ui
2
2
 
3
+ ## 22.0.0-alpha.2
4
+
5
+ ### Minor Changes
6
+
7
+ - Add browser view UI components for agent threads ([#14938](https://github.com/mastra-ai/mastra/pull/14938))
8
+ - Browser thumbnail with expandable preview in chat
9
+ - Full-screen modal and sidebar browser views
10
+ - Real-time screencast display with mouse/keyboard interaction
11
+ - Browser tool call history visualization
12
+ - URL bar and tab information display
13
+
14
+ - Added trajectory support to the playground UI. Expected trajectory is now visible and editable across all dataset views — item list, item detail panels, item dialogs, and standalone item pages. Trajectory scorers are visually distinguished in scorer lists and experiment results. Saving a trace as a dataset item auto-extracts the trajectory. ([#14902](https://github.com/mastra-ai/mastra/pull/14902))
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [[`cb15509`](https://github.com/mastra-ai/mastra/commit/cb15509b58f6a83e11b765c945082afc027db972), [`80c5668`](https://github.com/mastra-ai/mastra/commit/80c5668e365470d3a96d3e953868fd7a643ff67c), [`3d478c1`](https://github.com/mastra-ai/mastra/commit/3d478c1e13f17b80f330ac49d7aa42ef929b93ff), [`6039f17`](https://github.com/mastra-ai/mastra/commit/6039f176f9c457304825ff1df8c83b8e457376c0), [`06b928d`](https://github.com/mastra-ai/mastra/commit/06b928dfc2f5630d023467476cc5919dfa858d0a), [`8791bb3`](https://github.com/mastra-ai/mastra/commit/8791bb358bef4daaa8a9413560c45b726edbdc66), [`6a8d984`](https://github.com/mastra-ai/mastra/commit/6a8d9841f2933456ee1598099f488d742b600054)]:
19
+ - @mastra/core@1.22.0-alpha.2
20
+ - @mastra/client-js@1.13.0-alpha.2
21
+ - @mastra/ai-sdk@1.3.1-alpha.0
22
+ - @mastra/react@0.2.22-alpha.2
23
+
24
+ ## 21.0.1-alpha.1
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated scores metrics to use aggregate and time series APIs instead of fetching raw scores. Scores Over Time chart now always shows hourly data points regardless of the selected time range. Avg Score KPI uses weighted averages via the aggregate API. Updated metrics card layout to use flexible row heights and refined chart legend styling. ([#14937](https://github.com/mastra-ai/mastra/pull/14937))
29
+
30
+ - Fixed deep links for scorer, observability, and agent trace dialogs. ([#14970](https://github.com/mastra-ai/mastra/pull/14970))
31
+
32
+ Developers can now share and reload URLs that keep the selected trace, scoring tab, span, and score in Studio.
33
+
34
+ **Before**
35
+ `/observability`
36
+ `/agents/chef-agent/traces`
37
+ `/evaluation/scorers/response-quality`
38
+
39
+ **After**
40
+ `/observability?traceId=...&spanId=...&tab=scores&scoreId=...`
41
+ `/agents/chef-agent/traces?traceId=...&spanId=...&tab=scores&scoreId=...`
42
+ `/evaluation/scorers/response-quality?entity=...&scoreId=...`
43
+
44
+ This makes review links reliable across the scorer page, observability, and the agent traces view.
45
+
46
+ - Fixed light theme visibility for metrics charts: CartesianGrid lines now adapt to the current theme, and HorizontalBars use reduced opacity in light mode so labels remain readable. Updated MetricsCard minimum height. ([#14975](https://github.com/mastra-ai/mastra/pull/14975))
47
+
48
+ - Updated dependencies [[`81e4259`](https://github.com/mastra-ai/mastra/commit/81e425939b4ceeb4f586e9b6d89c3b1c1f2d2fe7), [`951b8a1`](https://github.com/mastra-ai/mastra/commit/951b8a1b5ef7e1474c59dc4f2b9fc1a8b1e508b6)]:
49
+ - @mastra/core@1.22.0-alpha.1
50
+ - @mastra/client-js@1.12.1-alpha.1
51
+ - @mastra/react@0.2.22-alpha.1
52
+
3
53
  ## 21.0.1-alpha.0
4
54
 
5
55
  ### Patch Changes