@mastra/playground-ui 6.2.2-alpha.3 → 6.2.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.
- package/CHANGELOG.md +40 -0
- package/dist/index.cjs.js +2 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -15981,10 +15981,11 @@ const ToolListInner = ({ toolsWithAgents }) => {
|
|
|
15981
15981
|
const ToolEntity = ({ tool }) => {
|
|
15982
15982
|
const linkRef = useRef(null);
|
|
15983
15983
|
const { Link, paths } = useLinkComponent();
|
|
15984
|
+
const toolLink = tool.agents.length > 0 ? paths.agentToolLink(tool.agents[0].id, tool.id) : paths.toolLink(tool.id);
|
|
15984
15985
|
return /* @__PURE__ */ jsxs(Entity, { onClick: () => linkRef.current?.click(), children: [
|
|
15985
15986
|
/* @__PURE__ */ jsx(EntityIcon, { children: /* @__PURE__ */ jsx(ToolsIcon, { className: "group-hover/entity:text-[#ECB047]" }) }),
|
|
15986
15987
|
/* @__PURE__ */ jsxs(EntityContent, { children: [
|
|
15987
|
-
/* @__PURE__ */ jsx(EntityName, { children: /* @__PURE__ */ jsx(Link, { ref: linkRef, href:
|
|
15988
|
+
/* @__PURE__ */ jsx(EntityName, { children: /* @__PURE__ */ jsx(Link, { ref: linkRef, href: toolLink, children: tool.id }) }),
|
|
15988
15989
|
/* @__PURE__ */ jsx(EntityDescription, { children: tool.description }),
|
|
15989
15990
|
/* @__PURE__ */ jsx("div", { className: "inline-flex flex-wrap gap-2 pt-4", children: tool.agents.map((agent) => {
|
|
15990
15991
|
return /* @__PURE__ */ jsx(
|