@mastra/playground-ui 6.2.4-alpha.0 → 6.2.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
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 6.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- disable network label when memory is not enabled OR the agent has no subagents ([#8341](https://github.com/mastra-ai/mastra/pull/8341))
|
|
8
|
+
|
|
9
|
+
- Added Mastra model router to Playground UI ([#8332](https://github.com/mastra-ai/mastra/pull/8332))
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`4a70ccc`](https://github.com/mastra-ai/mastra/commit/4a70ccc5cfa12ae9c2b36545a5814cd98e5a0ead), [`0992b8b`](https://github.com/mastra-ai/mastra/commit/0992b8bf0f4f1ba7ad9940883ec4bb8d867d3105), [`283bea0`](https://github.com/mastra-ai/mastra/commit/283bea07adbaf04a27fa3ad2df611095e0825195)]:
|
|
12
|
+
- @mastra/core@0.19.1
|
|
13
|
+
- @mastra/client-js@0.14.1
|
|
14
|
+
- @mastra/react@0.0.2
|
|
15
|
+
|
|
16
|
+
## 6.2.4-alpha.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- disable network label when memory is not enabled OR the agent has no subagents ([#8341](https://github.com/mastra-ai/mastra/pull/8341))
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`4a70ccc`](https://github.com/mastra-ai/mastra/commit/4a70ccc5cfa12ae9c2b36545a5814cd98e5a0ead)]:
|
|
23
|
+
- @mastra/core@0.19.1-alpha.1
|
|
24
|
+
- @mastra/client-js@0.14.1-alpha.1
|
|
25
|
+
- @mastra/react@0.0.2-alpha.1
|
|
26
|
+
|
|
3
27
|
## 6.2.4-alpha.0
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -11468,7 +11468,39 @@ const AgentAdvancedSettings = () => {
|
|
|
11468
11468
|
] }) });
|
|
11469
11469
|
};
|
|
11470
11470
|
|
|
11471
|
-
const
|
|
11471
|
+
const NetworkCheckbox = ({ hasMemory, hasSubAgents }) => {
|
|
11472
|
+
const isNetworkAvailable = hasMemory && hasSubAgents;
|
|
11473
|
+
const radio = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
11474
|
+
/* @__PURE__ */ jsxRuntime.jsx(RadioGroupItem, { value: "network", id: "network", className: "text-icon6", disabled: !isNetworkAvailable }),
|
|
11475
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11476
|
+
Label,
|
|
11477
|
+
{
|
|
11478
|
+
className: clsx("text-icon6 text-ui-md", !isNetworkAvailable && "!text-icon3 cursor-not-allowed"),
|
|
11479
|
+
htmlFor: "network",
|
|
11480
|
+
children: "Network"
|
|
11481
|
+
}
|
|
11482
|
+
)
|
|
11483
|
+
] });
|
|
11484
|
+
if (isNetworkAvailable) {
|
|
11485
|
+
return radio;
|
|
11486
|
+
}
|
|
11487
|
+
const requirements = [];
|
|
11488
|
+
if (!hasMemory) {
|
|
11489
|
+
requirements.push("memory enabled");
|
|
11490
|
+
}
|
|
11491
|
+
if (!hasSubAgents) {
|
|
11492
|
+
requirements.push("at least one sub-agent");
|
|
11493
|
+
}
|
|
11494
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
|
|
11495
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: radio }),
|
|
11496
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
11497
|
+
"Network is not available. Please make sure you have ",
|
|
11498
|
+
requirements.join(" and "),
|
|
11499
|
+
"."
|
|
11500
|
+
] }) })
|
|
11501
|
+
] });
|
|
11502
|
+
};
|
|
11503
|
+
const AgentSettings = ({ modelVersion, hasMemory = false, hasSubAgents = false }) => {
|
|
11472
11504
|
const { settings, setSettings, resetAll } = useAgentSettings();
|
|
11473
11505
|
let radioValue;
|
|
11474
11506
|
if (modelVersion === "v2") {
|
|
@@ -11515,10 +11547,7 @@ const AgentSettings = ({ modelVersion }) => {
|
|
|
11515
11547
|
/* @__PURE__ */ jsxRuntime.jsx(RadioGroupItem, { value: "streamVNext", id: "streamVNext", className: "text-icon6" }),
|
|
11516
11548
|
/* @__PURE__ */ jsxRuntime.jsx(Label, { className: "text-icon6 text-ui-md", htmlFor: "streamVNext", children: "Stream vNext" })
|
|
11517
11549
|
] }),
|
|
11518
|
-
modelVersion === "v2" && /* @__PURE__ */ jsxRuntime.
|
|
11519
|
-
/* @__PURE__ */ jsxRuntime.jsx(RadioGroupItem, { value: "network", id: "network", className: "text-icon6" }),
|
|
11520
|
-
/* @__PURE__ */ jsxRuntime.jsx(Label, { className: "text-icon6 text-ui-md", htmlFor: "network", children: "Network" })
|
|
11521
|
-
] })
|
|
11550
|
+
modelVersion === "v2" && /* @__PURE__ */ jsxRuntime.jsx(NetworkCheckbox, { hasMemory, hasSubAgents })
|
|
11522
11551
|
]
|
|
11523
11552
|
}
|
|
11524
11553
|
) }),
|