@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/dist/index.es.js
CHANGED
|
@@ -9108,7 +9108,7 @@ const Thread = ({ agentName, agentId, hasMemory, hasModelList }) => {
|
|
|
9108
9108
|
] });
|
|
9109
9109
|
};
|
|
9110
9110
|
const ThreadWrapper = ({ children }) => {
|
|
9111
|
-
return /* @__PURE__ */ jsx(ThreadPrimitive.Root, { className: "grid grid-rows-[1fr_auto] h-full overflow-y-auto", children });
|
|
9111
|
+
return /* @__PURE__ */ jsx(ThreadPrimitive.Root, { className: "grid grid-rows-[1fr_auto] h-full overflow-y-auto", "data-testid": "thread-wrapper", children });
|
|
9112
9112
|
};
|
|
9113
9113
|
const ThreadWelcome = ({ agentName }) => {
|
|
9114
9114
|
const safeAgentName = agentName ?? "";
|
|
@@ -9643,6 +9643,9 @@ function MastraRuntimeProvider({
|
|
|
9643
9643
|
if (chunk.type === "tool-execution-end" && chunk.payload?.toolName === "updateWorkingMemory" && typeof chunk.payload.result === "object" && "success" in chunk.payload.result && chunk.payload.result?.success) {
|
|
9644
9644
|
refreshWorkingMemory?.();
|
|
9645
9645
|
}
|
|
9646
|
+
if (chunk.type === "network-execution-event-step-finish") {
|
|
9647
|
+
refreshThreadList?.();
|
|
9648
|
+
}
|
|
9646
9649
|
}
|
|
9647
9650
|
});
|
|
9648
9651
|
} else {
|
|
@@ -9656,6 +9659,7 @@ function MastraRuntimeProvider({
|
|
|
9656
9659
|
modelSettings: modelSettingsArgs,
|
|
9657
9660
|
signal: controller.signal
|
|
9658
9661
|
});
|
|
9662
|
+
await refreshThreadList?.();
|
|
9659
9663
|
return;
|
|
9660
9664
|
} else {
|
|
9661
9665
|
await sendMessage({
|
|
@@ -9666,6 +9670,9 @@ function MastraRuntimeProvider({
|
|
|
9666
9670
|
threadId,
|
|
9667
9671
|
modelSettings: modelSettingsArgs,
|
|
9668
9672
|
onChunk: async (chunk) => {
|
|
9673
|
+
if (chunk.type === "finish") {
|
|
9674
|
+
await refreshThreadList?.();
|
|
9675
|
+
}
|
|
9669
9676
|
if (chunk.type === "tool-result" && chunk.payload?.toolName === "updateWorkingMemory" && typeof chunk.payload.result === "object" && "success" in chunk.payload.result && chunk.payload.result?.success) {
|
|
9670
9677
|
refreshWorkingMemory?.();
|
|
9671
9678
|
}
|
|
@@ -14016,7 +14023,7 @@ const ThreadLink = ({ children, as: Component = "a", href, className, prefetch,
|
|
|
14016
14023
|
);
|
|
14017
14024
|
};
|
|
14018
14025
|
const ThreadList = ({ children }) => {
|
|
14019
|
-
return /* @__PURE__ */ jsx("ol", { children });
|
|
14026
|
+
return /* @__PURE__ */ jsx("ol", { "data-testid": "thread-list", children });
|
|
14020
14027
|
};
|
|
14021
14028
|
const ThreadItem = ({ children, isActive, className }) => {
|
|
14022
14029
|
return /* @__PURE__ */ jsx(
|
|
@@ -14413,7 +14420,7 @@ function TemplatesList({ templates, linkComponent, className, isLoading }) {
|
|
|
14413
14420
|
"grid-cols-[8rem_1fr] lg:grid-cols-[12rem_1fr]": template.imageURL
|
|
14414
14421
|
}),
|
|
14415
14422
|
children: [
|
|
14416
|
-
template.imageURL && /* @__PURE__ */ jsx("div", { className: cn("
|
|
14423
|
+
template.imageURL && /* @__PURE__ */ jsx("div", { className: cn("overflow-hidden"), children: /* @__PURE__ */ jsx(
|
|
14417
14424
|
"div",
|
|
14418
14425
|
{
|
|
14419
14426
|
className: "w-full h-full bg-cover thumb transition-scale duration-150",
|