@mastra/playground-ui 6.3.0 → 6.3.1-alpha.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,16 @@
1
1
  # @mastra/playground-ui
2
2
 
3
+ ## 6.3.1-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - streamLegacy/generateLegacy clarification in playground ([#8468](https://github.com/mastra-ai/mastra/pull/8468))
8
+
9
+ - Updated dependencies [[`10e633a`](https://github.com/mastra-ai/mastra/commit/10e633a07d333466d9734c97acfc3dbf757ad2d0)]:
10
+ - @mastra/core@0.20.1-alpha.0
11
+ - @mastra/client-js@0.15.1-alpha.0
12
+ - @mastra/react@0.0.4-alpha.0
13
+
3
14
  ## 6.3.0
4
15
 
5
16
  ### Minor Changes
package/dist/index.cjs.js CHANGED
@@ -11495,7 +11495,7 @@ const AgentSettings = ({ modelVersion, hasMemory = false, hasSubAgents = false }
11495
11495
  children: [
11496
11496
  modelVersion !== "v2" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
11497
11497
  /* @__PURE__ */ jsxRuntime.jsx(RadioGroupItem, { value: "generateLegacy", id: "generateLegacy", className: "text-icon6" }),
11498
- /* @__PURE__ */ jsxRuntime.jsx(Label, { className: "text-icon6 text-ui-md", htmlFor: "generateLegacy", children: "Generate" })
11498
+ /* @__PURE__ */ jsxRuntime.jsx(Label, { className: "text-icon6 text-ui-md", htmlFor: "generateLegacy", children: "Generate (Legacy)" })
11499
11499
  ] }),
11500
11500
  modelVersion === "v2" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
11501
11501
  /* @__PURE__ */ jsxRuntime.jsx(RadioGroupItem, { value: "generate", id: "generate", className: "text-icon6" }),
@@ -11503,7 +11503,7 @@ const AgentSettings = ({ modelVersion, hasMemory = false, hasSubAgents = false }
11503
11503
  ] }),
11504
11504
  modelVersion !== "v2" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
11505
11505
  /* @__PURE__ */ jsxRuntime.jsx(RadioGroupItem, { value: "streamLegacy", id: "streamLegacy", className: "text-icon6" }),
11506
- /* @__PURE__ */ jsxRuntime.jsx(Label, { className: "text-icon6 text-ui-md", htmlFor: "streamLegacy", children: "Stream" })
11506
+ /* @__PURE__ */ jsxRuntime.jsx(Label, { className: "text-icon6 text-ui-md", htmlFor: "streamLegacy", children: "Stream (Legacy)" })
11507
11507
  ] }),
11508
11508
  modelVersion === "v2" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
11509
11509
  /* @__PURE__ */ jsxRuntime.jsx(RadioGroupItem, { value: "stream", id: "stream", className: "text-icon6" }),
@@ -11777,7 +11777,7 @@ const AgentMetadataSection = ({ title, children, hint }) => {
11777
11777
  /* @__PURE__ */ jsxRuntime.jsxs(Txt, { as: "h3", variant: "ui-md", className: "text-icon3 flex items-center gap-1", children: [
11778
11778
  title,
11779
11779
  hint && /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
11780
- /* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Link, { href: hint.link, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "text-icon3", size: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.InfoIcon, {}) }) }) }),
11780
+ /* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Link, { href: hint.link, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "text-icon3", size: "sm", children: hint.icon || /* @__PURE__ */ jsxRuntime.jsx(lucideReact.InfoIcon, {}) }) }) }),
11781
11781
  /* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: hint.title })
11782
11782
  ] }) })
11783
11783
  ] }),
@@ -14123,7 +14123,8 @@ const AgentMetadata = ({
14123
14123
  updateModel,
14124
14124
  modelProviders,
14125
14125
  updateModelInModelList,
14126
- reorderModelList
14126
+ reorderModelList,
14127
+ modelVersion
14127
14128
  }) => {
14128
14129
  const networkAgentsMap = agent.agents ?? {};
14129
14130
  const networkAgents = Object.values(networkAgentsMap);
@@ -14140,15 +14141,26 @@ const AgentMetadata = ({
14140
14141
  updateModelInModelList,
14141
14142
  reorderModelList
14142
14143
  }
14143
- ) }) : /* @__PURE__ */ jsxRuntime.jsx(AgentMetadataSection, { title: "Model", children: /* @__PURE__ */ jsxRuntime.jsx(
14144
- AgentMetadataModelSwitcher,
14144
+ ) }) : /* @__PURE__ */ jsxRuntime.jsx(
14145
+ AgentMetadataSection,
14145
14146
  {
14146
- defaultProvider: agent.provider,
14147
- defaultModel: agent.modelId,
14148
- updateModel,
14149
- modelProviders
14147
+ title: "Model",
14148
+ hint: modelVersion === "v2" ? void 0 : {
14149
+ link: "https://mastra.ai/en/reference/agents/migration-guide",
14150
+ title: "You are using a legacy v1 model",
14151
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertTriangleIcon, { fontSize: 14, className: "mb-0.5" })
14152
+ },
14153
+ children: /* @__PURE__ */ jsxRuntime.jsx(
14154
+ AgentMetadataModelSwitcher,
14155
+ {
14156
+ defaultProvider: agent.provider,
14157
+ defaultModel: agent.modelId,
14158
+ updateModel,
14159
+ modelProviders
14160
+ }
14161
+ )
14150
14162
  }
14151
- ) }),
14163
+ ),
14152
14164
  /* @__PURE__ */ jsxRuntime.jsx(
14153
14165
  AgentMetadataSection,
14154
14166
  {