@mastra/playground-ui 22.0.0-alpha.3 → 22.0.0

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 CHANGED
@@ -1,5 +1,71 @@
1
1
  # @mastra/playground-ui
2
2
 
3
+ ## 22.0.0
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
+ - Consolidated Tab button styles into the Tab component, removing duplicated child selectors from TabList. Removed unused alignment prop. Active underline now uses the neutral4 design token. ([#15004](https://github.com/mastra-ai/mastra/pull/15004))
19
+
20
+ - Matched tooltip panel background to dropdown and default button surface in Studio. ([#15009](https://github.com/mastra-ai/mastra/pull/15009))
21
+
22
+ - Fixed Scores Over Time chart to always show a 24-hour view by collapsing multi-day ranges into hourly averages across all days in the selected period ([#14981](https://github.com/mastra-ai/mastra/pull/14981))
23
+
24
+ - Added browser tools to the Agent details UI in Playground. Agents configured with browser support now show a "Browser Tools" section in metadata. ([#14998](https://github.com/mastra-ai/mastra/pull/14998))
25
+
26
+ - Added gateway memory indicator in Studio agent memory panel. When an agent uses gateway-backed memory, the panel hides local-only sections (search, working memory, config) and shows a "Memory Gateway" badge instead. ([#14952](https://github.com/mastra-ai/mastra/pull/14952))
27
+
28
+ - Aligned dropdown menu panel background with default button styling in Studio. ([#15009](https://github.com/mastra-ai/mastra/pull/15009))
29
+
30
+ - 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))
31
+
32
+ - Fixed deep links for scorer, observability, and agent trace dialogs. ([#14970](https://github.com/mastra-ai/mastra/pull/14970))
33
+
34
+ Developers can now share and reload URLs that keep the selected trace, scoring tab, span, and score in Studio.
35
+
36
+ **Before**
37
+ `/observability`
38
+ `/agents/chef-agent/traces`
39
+ `/evaluation/scorers/response-quality`
40
+
41
+ **After**
42
+ `/observability?traceId=...&spanId=...&tab=scores&scoreId=...`
43
+ `/agents/chef-agent/traces?traceId=...&spanId=...&tab=scores&scoreId=...`
44
+ `/evaluation/scorers/response-quality?entity=...&scoreId=...`
45
+
46
+ This makes review links reliable across the scorer page, observability, and the agent traces view.
47
+
48
+ - 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))
49
+
50
+ - Refactored chat error messages to use the Alert design system component instead of inline hardcoded styles, fixing text overflow on long error messages ([#15012](https://github.com/mastra-ai/mastra/pull/15012))
51
+
52
+ - Updated dependencies [[`cb15509`](https://github.com/mastra-ai/mastra/commit/cb15509b58f6a83e11b765c945082afc027db972), [`81e4259`](https://github.com/mastra-ai/mastra/commit/81e425939b4ceeb4f586e9b6d89c3b1c1f2d2fe7), [`951b8a1`](https://github.com/mastra-ai/mastra/commit/951b8a1b5ef7e1474c59dc4f2b9fc1a8b1e508b6), [`80c5668`](https://github.com/mastra-ai/mastra/commit/80c5668e365470d3a96d3e953868fd7a643ff67c), [`3d478c1`](https://github.com/mastra-ai/mastra/commit/3d478c1e13f17b80f330ac49d7aa42ef929b93ff), [`2b4ea10`](https://github.com/mastra-ai/mastra/commit/2b4ea10b053e4ea1ab232d536933a4a3c4cba999), [`d87e6e6`](https://github.com/mastra-ai/mastra/commit/d87e6e61c42475a7b57768e71dfa12964326a632), [`c8c86aa`](https://github.com/mastra-ai/mastra/commit/c8c86aa1458017fbd1c0776fdc0c520d129df8a6), [`a0544f0`](https://github.com/mastra-ai/mastra/commit/a0544f0a1e6bd52ac12676228967c1938e43648d), [`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), [`c8c86aa`](https://github.com/mastra-ai/mastra/commit/c8c86aa1458017fbd1c0776fdc0c520d129df8a6)]:
53
+ - @mastra/core@1.22.0
54
+ - @mastra/client-js@1.13.0
55
+ - @mastra/ai-sdk@1.3.1
56
+ - @mastra/react@0.2.22
57
+
58
+ ## 22.0.0-alpha.4
59
+
60
+ ### Patch Changes
61
+
62
+ - Added browser tools to the Agent details UI in Playground. Agents configured with browser support now show a "Browser Tools" section in metadata. ([#14998](https://github.com/mastra-ai/mastra/pull/14998))
63
+
64
+ - Updated dependencies [[`d87e6e6`](https://github.com/mastra-ai/mastra/commit/d87e6e61c42475a7b57768e71dfa12964326a632)]:
65
+ - @mastra/client-js@1.13.0-alpha.3
66
+ - @mastra/react@0.2.22-alpha.3
67
+ - @mastra/core@1.22.0-alpha.3
68
+
3
69
  ## 22.0.0-alpha.3
4
70
 
5
71
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -22448,6 +22448,7 @@ const AgentMetadata = ({ agentId }) => {
22448
22448
  const workflows = Object.keys(agentWorkflows).map((key) => ({ id: key, ...agentWorkflows[key] }));
22449
22449
  const skills = agent.skills ?? [];
22450
22450
  const workspaceTools = agent.workspaceTools ?? [];
22451
+ const browserTools = agent.browserTools ?? [];
22451
22452
  const workspaceId = agent.workspaceId;
22452
22453
  const inputProcessors = agent.inputProcessors ?? [];
22453
22454
  const outputProcessors = agent.outputProcessors ?? [];
@@ -22547,6 +22548,17 @@ const AgentMetadata = ({ agentId }) => {
22547
22548
  children: /* @__PURE__ */ jsxRuntime.jsx(AgentMetadataWorkspaceToolsList, { tools: workspaceTools })
22548
22549
  }
22549
22550
  ),
22551
+ browserTools.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
22552
+ AgentMetadataSection,
22553
+ {
22554
+ title: "Browser Tools",
22555
+ hint: {
22556
+ link: "https://mastra.ai/en/docs/agents/adding-browser-control",
22557
+ title: "Browser tools documentation"
22558
+ },
22559
+ children: /* @__PURE__ */ jsxRuntime.jsx(AgentMetadataBrowserToolsList, { tools: browserTools })
22560
+ }
22561
+ ),
22550
22562
  (inputProcessors.length > 0 || outputProcessors.length > 0) && /* @__PURE__ */ jsxRuntime.jsx(
22551
22563
  AgentMetadataSection,
22552
22564
  {
@@ -22648,6 +22660,12 @@ const AgentMetadataWorkspaceToolsList = ({ tools }) => {
22648
22660
  }
22649
22661
  return /* @__PURE__ */ jsxRuntime.jsx(AgentMetadataList, { children: tools.map((tool) => /* @__PURE__ */ jsxRuntime.jsx(AgentMetadataListItem, { children: /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Folder, { className: "h-3 w-3 text-accent1" }), children: formatWorkspaceToolName(tool) }) }, tool)) });
22650
22662
  };
22663
+ const AgentMetadataBrowserToolsList = ({ tools }) => {
22664
+ if (tools.length === 0) {
22665
+ return /* @__PURE__ */ jsxRuntime.jsx(AgentMetadataListEmpty, { children: "No browser tools" });
22666
+ }
22667
+ return /* @__PURE__ */ jsxRuntime.jsx(AgentMetadataList, { children: tools.map((tool) => /* @__PURE__ */ jsxRuntime.jsx(AgentMetadataListItem, { children: /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Globe, { className: "h-3 w-3 text-cyan-500" }), children: tool }) }, tool)) });
22668
+ };
22651
22669
  const AgentMetadataCombinedProcessorList = ({
22652
22670
  inputProcessors,
22653
22671
  outputProcessors
@@ -59726,6 +59744,7 @@ exports.AgentInformationTabLayout = AgentInformationTabLayout;
59726
59744
  exports.AgentLayout = AgentLayout;
59727
59745
  exports.AgentMemory = AgentMemory;
59728
59746
  exports.AgentMetadata = AgentMetadata;
59747
+ exports.AgentMetadataBrowserToolsList = AgentMetadataBrowserToolsList;
59729
59748
  exports.AgentMetadataCombinedProcessorList = AgentMetadataCombinedProcessorList;
59730
59749
  exports.AgentMetadataList = AgentMetadataList;
59731
59750
  exports.AgentMetadataListEmpty = AgentMetadataListEmpty;