@mastra/playground-ui 6.5.1 → 6.5.2-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,18 @@
1
1
  # @mastra/playground-ui
2
2
 
3
+ ## 6.5.2-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Threads are not refreshing correctly after generate / stream / network ([#9015](https://github.com/mastra-ai/mastra/pull/9015))
8
+
9
+ - fix template background image overflow ([#9011](https://github.com/mastra-ai/mastra/pull/9011))
10
+
11
+ - Updated dependencies [[`c67ca32`](https://github.com/mastra-ai/mastra/commit/c67ca32e3c2cf69bfc146580770c720220ca44ac), [`dbc9e12`](https://github.com/mastra-ai/mastra/commit/dbc9e1216ba575ba59ead4afb727a01215f7de4f), [`99e41b9`](https://github.com/mastra-ai/mastra/commit/99e41b94957cdd25137d3ac12e94e8b21aa01b68), [`c28833c`](https://github.com/mastra-ai/mastra/commit/c28833c5b6d8e10eeffd7f7d39129d53b8bca240), [`f053e89`](https://github.com/mastra-ai/mastra/commit/f053e89160dbd0bd3333fc3492f68231b5c7c349), [`9a1a485`](https://github.com/mastra-ai/mastra/commit/9a1a4859b855e37239f652bf14b1ecd1029b8c4e), [`9257233`](https://github.com/mastra-ai/mastra/commit/9257233c4ffce09b2bedc2a9adbd70d7a83fa8e2), [`0f1a4c9`](https://github.com/mastra-ai/mastra/commit/0f1a4c984fb4b104b2f0b63ba18c9fa77f567700), [`2db6160`](https://github.com/mastra-ai/mastra/commit/2db6160e2022ff8827c15d30157e684683b934b5), [`8aeea37`](https://github.com/mastra-ai/mastra/commit/8aeea37efdde347c635a67fed56794943b7f74ec), [`02fe153`](https://github.com/mastra-ai/mastra/commit/02fe15351d6021d214da48ec982a0e9e4150bcee), [`74567b3`](https://github.com/mastra-ai/mastra/commit/74567b3d237ae3915cd0bca3cf55fa0a64e4e4a4), [`15a1733`](https://github.com/mastra-ai/mastra/commit/15a1733074cee8bd37370e1af34cd818e89fa7ac), [`fc2a774`](https://github.com/mastra-ai/mastra/commit/fc2a77468981aaddc3e77f83f0c4ad4a4af140da), [`4e08933`](https://github.com/mastra-ai/mastra/commit/4e08933625464dfde178347af5b6278fcf34188e)]:
12
+ - @mastra/core@0.21.2-alpha.0
13
+ - @mastra/client-js@0.16.2-alpha.0
14
+ - @mastra/react@0.0.8-alpha.0
15
+
3
16
  ## 6.5.1
4
17
 
5
18
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -9143,7 +9143,7 @@ const Thread = ({ agentName, agentId, hasMemory, hasModelList }) => {
9143
9143
  ] });
9144
9144
  };
9145
9145
  const ThreadWrapper = ({ children }) => {
9146
- return /* @__PURE__ */ jsxRuntime.jsx(react.ThreadPrimitive.Root, { className: "grid grid-rows-[1fr_auto] h-full overflow-y-auto", children });
9146
+ return /* @__PURE__ */ jsxRuntime.jsx(react.ThreadPrimitive.Root, { className: "grid grid-rows-[1fr_auto] h-full overflow-y-auto", "data-testid": "thread-wrapper", children });
9147
9147
  };
9148
9148
  const ThreadWelcome = ({ agentName }) => {
9149
9149
  const safeAgentName = agentName ?? "";
@@ -9678,6 +9678,9 @@ function MastraRuntimeProvider({
9678
9678
  if (chunk.type === "tool-execution-end" && chunk.payload?.toolName === "updateWorkingMemory" && typeof chunk.payload.result === "object" && "success" in chunk.payload.result && chunk.payload.result?.success) {
9679
9679
  refreshWorkingMemory?.();
9680
9680
  }
9681
+ if (chunk.type === "network-execution-event-step-finish") {
9682
+ refreshThreadList?.();
9683
+ }
9681
9684
  }
9682
9685
  });
9683
9686
  } else {
@@ -9691,6 +9694,7 @@ function MastraRuntimeProvider({
9691
9694
  modelSettings: modelSettingsArgs,
9692
9695
  signal: controller.signal
9693
9696
  });
9697
+ await refreshThreadList?.();
9694
9698
  return;
9695
9699
  } else {
9696
9700
  await sendMessage({
@@ -9701,6 +9705,9 @@ function MastraRuntimeProvider({
9701
9705
  threadId,
9702
9706
  modelSettings: modelSettingsArgs,
9703
9707
  onChunk: async (chunk) => {
9708
+ if (chunk.type === "finish") {
9709
+ await refreshThreadList?.();
9710
+ }
9704
9711
  if (chunk.type === "tool-result" && chunk.payload?.toolName === "updateWorkingMemory" && typeof chunk.payload.result === "object" && "success" in chunk.payload.result && chunk.payload.result?.success) {
9705
9712
  refreshWorkingMemory?.();
9706
9713
  }
@@ -14051,7 +14058,7 @@ const ThreadLink = ({ children, as: Component = "a", href, className, prefetch,
14051
14058
  );
14052
14059
  };
14053
14060
  const ThreadList = ({ children }) => {
14054
- return /* @__PURE__ */ jsxRuntime.jsx("ol", { children });
14061
+ return /* @__PURE__ */ jsxRuntime.jsx("ol", { "data-testid": "thread-list", children });
14055
14062
  };
14056
14063
  const ThreadItem = ({ children, isActive, className }) => {
14057
14064
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -14448,7 +14455,7 @@ function TemplatesList({ templates, linkComponent, className, isLoading }) {
14448
14455
  "grid-cols-[8rem_1fr] lg:grid-cols-[12rem_1fr]": template.imageURL
14449
14456
  }),
14450
14457
  children: [
14451
- template.imageURL && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("relative overflow-hidden"), children: /* @__PURE__ */ jsxRuntime.jsx(
14458
+ template.imageURL && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("overflow-hidden"), children: /* @__PURE__ */ jsxRuntime.jsx(
14452
14459
  "div",
14453
14460
  {
14454
14461
  className: "w-full h-full bg-cover thumb transition-scale duration-150",