@mastra/playground-ui 6.3.0-alpha.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,67 @@
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
+
14
+ ## 6.3.0
15
+
16
+ ### Minor Changes
17
+
18
+ - Breaking change to move the agent.streamVNext/generateVNext implementation to the default stream/generate. The old stream/generate have now been moved to streamLegacy and generateLegacy ([#8097](https://github.com/mastra-ai/mastra/pull/8097))
19
+
20
+ ### Patch Changes
21
+
22
+ - dependencies updates: ([#8298](https://github.com/mastra-ai/mastra/pull/8298))
23
+ - Updated dependency [`@xyflow/react@^12.8.6` ↗︎](https://www.npmjs.com/package/@xyflow/react/v/12.8.6) (from `^12.8.5`, in `dependencies`)
24
+
25
+ - dependencies updates: ([#8333](https://github.com/mastra-ai/mastra/pull/8333))
26
+ - Updated dependency [`motion@^12.23.22` ↗︎](https://www.npmjs.com/package/motion/v/12.23.22) (from `^12.23.13`, in `dependencies`)
27
+
28
+ - better memory message ([#8382](https://github.com/mastra-ai/mastra/pull/8382))
29
+
30
+ - generateVNext into react SDK + to asistant ui message ([#8345](https://github.com/mastra-ai/mastra/pull/8345))
31
+
32
+ - Add doc url to netlify gateway ([#8356](https://github.com/mastra-ai/mastra/pull/8356))
33
+
34
+ - fix codeblock line number color contrast for legacy traces ([#8385](https://github.com/mastra-ai/mastra/pull/8385))
35
+
36
+ - distinguish between legacy and regular messages in agent chat for useChat usage ([#8409](https://github.com/mastra-ai/mastra/pull/8409))
37
+
38
+ - Model router documentation and playground UI improvements ([#8372](https://github.com/mastra-ai/mastra/pull/8372))
39
+
40
+ **Documentation generation (`@mastra/core`):**
41
+ - Fixed inverted dynamic model selection logic in provider examples
42
+ - Improved copy: replaced marketing language with action-oriented descriptions
43
+ - Added generated file comments with timestamps to all MDX outputs so maintainers know not to directly edit generated files
44
+
45
+ **Playground UI model picker (`@mastra/playground-ui`):**
46
+ - Fixed provider field clearing when typing in model input
47
+ - Added responsive layout (stacks on mobile, side-by-side on desktop)
48
+ - Improved general styling of provider/model pickers
49
+
50
+ **Environment variables (`@mastra/deployer`):**
51
+ - Properly handle array of env vars (e.g., NETLIFY_TOKEN, NETLIFY_SITE_ID)
52
+ - Added correct singular/plural handling for "environment variable(s)"
53
+
54
+ - fix playground message history initial state for v1 models ([#8427](https://github.com/mastra-ai/mastra/pull/8427))
55
+
56
+ - show thread list in desc order ([#8381](https://github.com/mastra-ai/mastra/pull/8381))
57
+
58
+ - Add observe strean to get streans after workflow has been interrupted ([#8318](https://github.com/mastra-ai/mastra/pull/8318))
59
+
60
+ - Updated dependencies [[`00cb6bd`](https://github.com/mastra-ai/mastra/commit/00cb6bdf78737c0fac14a5a0c7b532a11e38558a), [`869ba22`](https://github.com/mastra-ai/mastra/commit/869ba222e1d6b58fc1b65e7c9fd55ca4e01b8c2f), [`1b73665`](https://github.com/mastra-ai/mastra/commit/1b73665e8e23f5c09d49fcf3e7d709c75259259e), [`b537cce`](https://github.com/mastra-ai/mastra/commit/b537cce9f83d801f73b3328a17eb61b7701a11ea), [`f7d7475`](https://github.com/mastra-ai/mastra/commit/f7d747507341aef60ed39e4b49318db1f86034a6), [`084b77b`](https://github.com/mastra-ai/mastra/commit/084b77b2955960e0190af8db3f77138aa83ed65c), [`a93ff84`](https://github.com/mastra-ai/mastra/commit/a93ff84b5e1af07ee236ac8873dac9b49aa5d501), [`96d4600`](https://github.com/mastra-ai/mastra/commit/96d4600723d5c26cd4cb67ea3c02f76ad78a6887), [`bc5aacb`](https://github.com/mastra-ai/mastra/commit/bc5aacb646d468d325327e36117129f28cd13bf6), [`6b5af12`](https://github.com/mastra-ai/mastra/commit/6b5af12ce9e09066e0c32e821c203a6954498bea), [`bf60e4a`](https://github.com/mastra-ai/mastra/commit/bf60e4a89c515afd9570b7b79f33b95e7d07c397), [`d41aee5`](https://github.com/mastra-ai/mastra/commit/d41aee526d124e35f42720a08e64043229193679), [`e8fe13c`](https://github.com/mastra-ai/mastra/commit/e8fe13c4b4c255a42520127797ec394310f7c919), [`3ca833d`](https://github.com/mastra-ai/mastra/commit/3ca833dc994c38e3c9b4f9b4478a61cd8e07b32a), [`1edb8d1`](https://github.com/mastra-ai/mastra/commit/1edb8d1cfb963e72a12412990fb9170936c9904c), [`fbf6e32`](https://github.com/mastra-ai/mastra/commit/fbf6e324946332d0f5ed8930bf9d4d4479cefd7a), [`4753027`](https://github.com/mastra-ai/mastra/commit/4753027ee889288775c6958bdfeda03ff909af67)]:
61
+ - @mastra/core@0.20.0
62
+ - @mastra/react@0.0.3
63
+ - @mastra/client-js@0.15.0
64
+
3
65
  ## 6.3.0-alpha.0
4
66
 
5
67
  ### 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
  {