@mastra/playground-ui 6.9.6-alpha.0 → 6.9.7-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 +41 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 6.9.7-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`54cc99c`](https://github.com/mastra-ai/mastra/commit/54cc99cb99483b9e08ec41fa1502f43b71b4c351)]:
|
|
8
|
+
- @mastra/core@0.24.7-alpha.0
|
|
9
|
+
- @mastra/client-js@0.16.16-alpha.0
|
|
10
|
+
- @mastra/react@0.0.22-alpha.0
|
|
11
|
+
|
|
12
|
+
## 6.9.6
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- fix(agent): persist messages before tool suspension ([#10542](https://github.com/mastra-ai/mastra/pull/10542))
|
|
17
|
+
|
|
18
|
+
Fixes issues where thread and messages were not saved before suspension when tools require approval or call suspend() during execution. This caused conversation history to be lost if users refreshed during tool approval or suspension.
|
|
19
|
+
|
|
20
|
+
**Backend changes (@mastra/core):**
|
|
21
|
+
- Add assistant messages to messageList immediately after LLM execution
|
|
22
|
+
- Flush messages synchronously before suspension to persist state
|
|
23
|
+
- Create thread if it doesn't exist before flushing
|
|
24
|
+
- Add metadata helpers to persist and remove tool approval state
|
|
25
|
+
- Pass saveQueueManager and memory context through workflow for immediate persistence
|
|
26
|
+
|
|
27
|
+
**Frontend changes (@mastra/react):**
|
|
28
|
+
- Extract runId from pending approvals to enable resumption after refresh
|
|
29
|
+
- Convert `pendingToolApprovals` (DB format) to `requireApprovalMetadata` (runtime format)
|
|
30
|
+
- Handle both `dynamic-tool` and `tool-{NAME}` part types for approval state
|
|
31
|
+
- Change runId from hardcoded `agentId` to unique `uuid()`
|
|
32
|
+
|
|
33
|
+
**UI changes (@mastra/playground-ui):**
|
|
34
|
+
- Handle tool calls awaiting approval in message initialization
|
|
35
|
+
- Convert approval metadata format when loading initial messages
|
|
36
|
+
|
|
37
|
+
Fixes #9745, #9906
|
|
38
|
+
|
|
39
|
+
- Updated dependencies [[`5657314`](https://github.com/mastra-ai/mastra/commit/5657314a1f9d49019bb53f357fa48f75a69247ca), [`e5aca78`](https://github.com/mastra-ai/mastra/commit/e5aca78bb7f263bb8b470bedae81efe9805d7544), [`33a607a`](https://github.com/mastra-ai/mastra/commit/33a607a1f716c2029d4a1ff1603dd756129a33b3), [`cc10fc1`](https://github.com/mastra-ai/mastra/commit/cc10fc192d9f527c71a23cc9def10d8718935ee1), [`1f7ee84`](https://github.com/mastra-ai/mastra/commit/1f7ee841a643ef12d90392125881f06fdf877293), [`e7d5149`](https://github.com/mastra-ai/mastra/commit/e7d514995260b63b2108308e85c64de37dcd0f71), [`f195082`](https://github.com/mastra-ai/mastra/commit/f1950822a2425d5ccae78c5d010e02ddb027a869), [`d9986dd`](https://github.com/mastra-ai/mastra/commit/d9986dd3513f7ca3244a8e599a440ccf4d8bc28b), [`a45b0f0`](https://github.com/mastra-ai/mastra/commit/a45b0f0cd19eab1fe4deceae3abf029442c22f74), [`f6e8eb3`](https://github.com/mastra-ai/mastra/commit/f6e8eb3dac53b70b06e906b2818b1d2a5b0486d7), [`58b0f0c`](https://github.com/mastra-ai/mastra/commit/58b0f0c87e28e838f5a05980f0f326e75ddc3132), [`ce57a2b`](https://github.com/mastra-ai/mastra/commit/ce57a2b62fd0d5f6532e4ecd1ba9ba93ac9b95fc), [`3236f35`](https://github.com/mastra-ai/mastra/commit/3236f352ae13cc8552c2965164e97bd125dae48d), [`ce57a2b`](https://github.com/mastra-ai/mastra/commit/ce57a2b62fd0d5f6532e4ecd1ba9ba93ac9b95fc), [`0230321`](https://github.com/mastra-ai/mastra/commit/02303217870bedea0ef009bea9a952f24ed38aaf), [`7b541f4`](https://github.com/mastra-ai/mastra/commit/7b541f49eda6f5a87b738198edbd136927599475), [`0eea842`](https://github.com/mastra-ai/mastra/commit/0eea8423cbdd37f2111593c6f7d2efcde4b7e4ce), [`63ae8a2`](https://github.com/mastra-ai/mastra/commit/63ae8a22c0c09bbb8b9779f5f38934cd75f616af), [`bf810c5`](https://github.com/mastra-ai/mastra/commit/bf810c5c561bd8ef221c0f6bd84e69770b9a38cc), [`ac7ef07`](https://github.com/mastra-ai/mastra/commit/ac7ef07633caee89707142171d2873c888ffef85), [`522f0b4`](https://github.com/mastra-ai/mastra/commit/522f0b45330719858794eabffffde4f343f55549), [`bf810c5`](https://github.com/mastra-ai/mastra/commit/bf810c5c561bd8ef221c0f6bd84e69770b9a38cc), [`8b51d55`](https://github.com/mastra-ai/mastra/commit/8b51d55bae531edf7e383958d7ecee04df31f5d5), [`2131ac5`](https://github.com/mastra-ai/mastra/commit/2131ac571d5065f0a656c57494bca98691bb7609)]:
|
|
40
|
+
- @mastra/core@0.24.6
|
|
41
|
+
- @mastra/react@0.0.21
|
|
42
|
+
- @mastra/client-js@0.16.15
|
|
43
|
+
|
|
3
44
|
## 6.9.6-alpha.0
|
|
4
45
|
|
|
5
46
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.9.
|
|
4
|
+
"version": "6.9.7-alpha.0",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"react-dom": ">=19.0.0",
|
|
108
108
|
"tailwindcss": "^3.0.0",
|
|
109
109
|
"@tanstack/react-query": "^5.81.5",
|
|
110
|
-
"@mastra/
|
|
111
|
-
"@mastra/
|
|
110
|
+
"@mastra/react": "0.0.22-alpha.0",
|
|
111
|
+
"@mastra/client-js": "^0.16.16-alpha.0"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@storybook/addon-docs": "^9.1.10",
|
|
@@ -131,9 +131,9 @@
|
|
|
131
131
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
132
132
|
"vitest": "^3.2.4",
|
|
133
133
|
"@tanstack/react-query": "^5.81.5",
|
|
134
|
-
"@mastra/client-js": "^0.16.
|
|
135
|
-
"@mastra/
|
|
136
|
-
"@mastra/
|
|
134
|
+
"@mastra/client-js": "^0.16.16-alpha.0",
|
|
135
|
+
"@mastra/core": "0.24.7-alpha.0",
|
|
136
|
+
"@mastra/react": "0.0.22-alpha.0"
|
|
137
137
|
},
|
|
138
138
|
"homepage": "https://mastra.ai",
|
|
139
139
|
"repository": {
|