@mastra/playground-ui 6.5.1-alpha.0 → 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 +24 -0
- package/dist/index.cjs.js +10 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +10 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
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
|
+
|
|
16
|
+
## 6.5.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Add @mastra/react to peer deps ([#8857](https://github.com/mastra-ai/mastra/pull/8857))
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`9ba695e`](https://github.com/mastra-ai/mastra/commit/9ba695e9ff977b8f13cc71df3b452775757361e5), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
23
|
+
- @mastra/core@0.21.1
|
|
24
|
+
- @mastra/react@0.0.7
|
|
25
|
+
- @mastra/client-js@0.16.1
|
|
26
|
+
|
|
3
27
|
## 6.5.1-alpha.0
|
|
4
28
|
|
|
5
29
|
### 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("
|
|
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",
|