@mastra/playground-ui 22.0.0-alpha.3 → 22.0.0-alpha.4
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 +11 -0
- package/dist/index.cjs.js +19 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +5 -0
- package/dist/index.es.js +20 -2
- package/dist/index.es.js.map +1 -1
- package/dist/src/domains/agents/components/agent-metadata/agent-metadata.d.ts +4 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 22.0.0-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 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))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`d87e6e6`](https://github.com/mastra-ai/mastra/commit/d87e6e61c42475a7b57768e71dfa12964326a632)]:
|
|
10
|
+
- @mastra/client-js@1.13.0-alpha.3
|
|
11
|
+
- @mastra/react@0.2.22-alpha.3
|
|
12
|
+
- @mastra/core@1.22.0-alpha.3
|
|
13
|
+
|
|
3
14
|
## 22.0.0-alpha.3
|
|
4
15
|
|
|
5
16
|
### 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;
|