@mastra/playground-ui 7.0.0-beta.19 → 7.0.0-beta.20
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 +104 -0
- package/dist/index.cjs.js +536 -847
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +534 -842
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/assistant-ui/tooltip-icon-button.d.ts +2 -7
- package/dist/src/components/ui/combobox.d.ts +2 -2
- package/dist/src/components/ui/elements/buttons/index.d.ts +0 -1
- package/dist/src/components/ui/elements/tabs/index.d.ts +4 -1
- package/dist/src/components/ui/elements/tabs/tabs-root.d.ts +1 -1
- package/dist/src/components/ui/elements/tabs/tabs-tab.d.ts +2 -1
- package/dist/src/components/ui/input.d.ts +1 -1
- package/dist/src/components/ui/text.d.ts +2 -2
- package/dist/src/domains/memory/hooks/use-memory.d.ts +5 -0
- package/dist/src/domains/scores/hooks/use-trace-span-scores.d.ts +3 -3
- package/dist/src/domains/templates/template-form.d.ts +2 -1
- package/dist/src/domains/workflows/hooks/use-workflows-actions.d.ts +1 -0
- package/dist/src/domains/workflows/workflow/workflow-trigger.d.ts +2 -1
- package/dist/src/ds/components/Avatar/Avatar.d.ts +5 -3
- package/dist/src/ds/components/Button/Button.d.ts +6 -2
- package/dist/src/ds/components/CodeEditor/code-editor.d.ts +12 -0
- package/dist/src/ds/components/CodeEditor/index.d.ts +1 -0
- package/dist/src/ds/tokens/sizes.d.ts +3 -1
- package/dist/src/hooks/use-workflow-runs.d.ts +1 -1
- package/dist/src/index.d.ts +0 -2
- package/dist/tokens.cjs.js +3 -1
- package/dist/tokens.cjs.js.map +1 -1
- package/dist/tokens.es.js +3 -1
- package/dist/tokens.es.js.map +1 -1
- package/package.json +13 -25
- package/dist/src/components/assistant-ui/syntax-highlighter.d.ts +0 -1
- package/dist/src/components/syntax-highlighter.d.ts +0 -5
- package/dist/src/components/ui/avatar.d.ts +0 -6
- package/dist/src/components/ui/badge.d.ts +0 -9
- package/dist/src/components/ui/button.d.ts +0 -16
- package/dist/src/components/ui/calendar.d.ts +0 -8
- package/dist/src/components/ui/card.d.ts +0 -8
- package/dist/src/components/ui/command.d.ts +0 -78
- package/dist/src/components/ui/date-picker.d.ts +0 -23
- package/dist/src/components/ui/elements/buttons/button.d.ts +0 -8
- package/dist/src/components/ui/elements/tabs/tabs.d.ts +0 -24
- package/dist/src/components/ui/form.d.ts +0 -23
- package/dist/src/components/ui/playground-tabs.d.ts +0 -25
- package/dist/src/components/ui/syntax-highlighter.d.ts +0 -7
- package/dist/src/components/ui/table.d.ts +0 -10
- package/dist/src/components/ui/tabs.d.ts +0 -7
- package/dist/src/components/ui/textarea.d.ts +0 -5
- package/dist/src/ds/components/TraceTree/Span.d.ts +0 -32
- package/dist/src/ds/components/TraceTree/Spans.d.ts +0 -5
- package/dist/src/ds/components/TraceTree/Time.d.ts +0 -8
- package/dist/src/ds/components/TraceTree/Trace.d.ts +0 -13
- package/dist/src/ds/components/TraceTree/TraceTree.d.ts +0 -5
- package/dist/src/ds/components/TraceTree/index.d.ts +0 -1
- package/dist/src/ds/components/types.d.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,109 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 7.0.0-beta.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dependencies updates: ([#11404](https://github.com/mastra-ai/mastra/pull/11404))
|
|
8
|
+
- Updated dependency [`zustand@^5.0.9` ↗︎](https://www.npmjs.com/package/zustand/v/5.0.9) (from `^5.0.8`, in `dependencies`)
|
|
9
|
+
|
|
10
|
+
- dependencies updates: ([#11588](https://github.com/mastra-ai/mastra/pull/11588))
|
|
11
|
+
- Updated dependency [`zustand@^5.0.9` ↗︎](https://www.npmjs.com/package/zustand/v/5.0.9) (from `^5.0.8`, in `dependencies`)
|
|
12
|
+
|
|
13
|
+
- Add missing loading state handlers to TanStack Query hooks. Components now properly show skeleton/loading UI instead of returning null or rendering incomplete states while data is being fetched. ([#11681](https://github.com/mastra-ai/mastra/pull/11681))
|
|
14
|
+
|
|
15
|
+
- Remove `streamVNext`, `resumeStreamVNext`, and `observeStreamVNext` methods, call `stream`, `resumeStream` and `observeStream` directly ([#11499](https://github.com/mastra-ai/mastra/pull/11499))
|
|
16
|
+
|
|
17
|
+
```diff
|
|
18
|
+
+ const run = await workflow.createRun({ runId: '123' });
|
|
19
|
+
- const stream = await run.streamVNext({ inputData: { ... } });
|
|
20
|
+
+ const stream = await run.stream({ inputData: { ... } });
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
- Dedupe Avatar component by removing UI avatar and using DS Avatar with size variants ([#11637](https://github.com/mastra-ai/mastra/pull/11637))
|
|
24
|
+
|
|
25
|
+
- Consolidate date picker components by removing duplicate DatePicker and Calendar components. DateField now uses the DayPicker wrapper from date-time-picker folder directly. ([#11649](https://github.com/mastra-ai/mastra/pull/11649))
|
|
26
|
+
|
|
27
|
+
- Consolidate tabs components: remove redundant implementations and add onClose prop support ([#11650](https://github.com/mastra-ai/mastra/pull/11650))
|
|
28
|
+
|
|
29
|
+
- Use the same Button component every where. Remove duplicates. ([#11635](https://github.com/mastra-ai/mastra/pull/11635))
|
|
30
|
+
|
|
31
|
+
- Add initial state input to workflow form in studio ([#11560](https://github.com/mastra-ai/mastra/pull/11560))
|
|
32
|
+
|
|
33
|
+
- Remove unused files and dependencies identified by Knip ([#11677](https://github.com/mastra-ai/mastra/pull/11677))
|
|
34
|
+
|
|
35
|
+
- Fix react/react-DOM version mismatch. ([#11620](https://github.com/mastra-ai/mastra/pull/11620))
|
|
36
|
+
|
|
37
|
+
- Adds thread cloning to create independent copies of conversations that can diverge. ([#11517](https://github.com/mastra-ai/mastra/pull/11517))
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
// Clone a thread
|
|
41
|
+
const { thread, clonedMessages } = await memory.cloneThread({
|
|
42
|
+
sourceThreadId: 'thread-123',
|
|
43
|
+
title: 'My Clone',
|
|
44
|
+
options: {
|
|
45
|
+
messageLimit: 10, // optional: only copy last N messages
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
// Check if a thread is a clone
|
|
50
|
+
if (memory.isClone(thread)) {
|
|
51
|
+
const source = await memory.getSourceThread(thread.id);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// List all clones of a thread
|
|
55
|
+
const clones = await memory.listClones('thread-123');
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Includes:
|
|
59
|
+
- Storage implementations for InMemory, PostgreSQL, LibSQL, Upstash
|
|
60
|
+
- API endpoint: `POST /api/memory/threads/:threadId/clone`
|
|
61
|
+
- Embeddings created for cloned messages (semantic recall)
|
|
62
|
+
- Clone button in playground UI Memory tab
|
|
63
|
+
|
|
64
|
+
- Display network completion validation results and scorer feedback in the Playground when viewing agent network runs, letting users see pass/fail status and actionable feedback from completion scorers ([#11562](https://github.com/mastra-ai/mastra/pull/11562))
|
|
65
|
+
|
|
66
|
+
- Unified `getWorkflowRunById` and `getWorkflowRunExecutionResult` into a single API that returns `WorkflowState` with both metadata and execution state. ([#11429](https://github.com/mastra-ai/mastra/pull/11429))
|
|
67
|
+
|
|
68
|
+
**What changed:**
|
|
69
|
+
- `getWorkflowRunById` now returns a unified `WorkflowState` object containing metadata (runId, workflowName, resourceId, createdAt, updatedAt) along with processed execution state (status, result, error, payload, steps)
|
|
70
|
+
- Added optional `fields` parameter to request only specific fields for better performance
|
|
71
|
+
- Added optional `withNestedWorkflows` parameter to control nested workflow step inclusion
|
|
72
|
+
- Removed `getWorkflowRunExecutionResult` - use `getWorkflowRunById` instead (breaking change)
|
|
73
|
+
- Removed `/execution-result` API endpoints from server (breaking change)
|
|
74
|
+
- Removed `runExecutionResult()` method from client SDK (breaking change)
|
|
75
|
+
- Removed `GetWorkflowRunExecutionResultResponse` type from client SDK (breaking change)
|
|
76
|
+
|
|
77
|
+
**Before:**
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
// Had to call two different methods for different data
|
|
81
|
+
const run = await workflow.getWorkflowRunById(runId); // Returns raw WorkflowRun with snapshot
|
|
82
|
+
const result = await workflow.getWorkflowRunExecutionResult(runId); // Returns processed execution state
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**After:**
|
|
86
|
+
|
|
87
|
+
```typescript
|
|
88
|
+
// Single method returns everything
|
|
89
|
+
const run = await workflow.getWorkflowRunById(runId);
|
|
90
|
+
// Returns: { runId, workflowName, resourceId, createdAt, updatedAt, status, result, error, payload, steps }
|
|
91
|
+
|
|
92
|
+
// Request only specific fields for better performance (avoids expensive step fetching)
|
|
93
|
+
const status = await workflow.getWorkflowRunById(runId, { fields: ['status'] });
|
|
94
|
+
|
|
95
|
+
// Skip nested workflow steps for faster response
|
|
96
|
+
const run = await workflow.getWorkflowRunById(runId, { withNestedWorkflows: false });
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**Why:** The previous API required calling two separate methods to get complete workflow run information. This unification simplifies the API surface and gives users control over performance - fetching all steps (especially nested workflows) can be expensive, so the `fields` and `withNestedWorkflows` options let users request only what they need.
|
|
100
|
+
|
|
101
|
+
- Updated dependencies [[`d2d3e22`](https://github.com/mastra-ai/mastra/commit/d2d3e22a419ee243f8812a84e3453dd44365ecb0), [`bc72b52`](https://github.com/mastra-ai/mastra/commit/bc72b529ee4478fe89ecd85a8be47ce0127b82a0), [`05b8bee`](https://github.com/mastra-ai/mastra/commit/05b8bee9e50e6c2a4a2bf210eca25ee212ca24fa), [`c042bd0`](https://github.com/mastra-ai/mastra/commit/c042bd0b743e0e86199d0cb83344ca7690e34a9c), [`940a2b2`](https://github.com/mastra-ai/mastra/commit/940a2b27480626ed7e74f55806dcd2181c1dd0c2), [`e0941c3`](https://github.com/mastra-ai/mastra/commit/e0941c3d7fc75695d5d258e7008fd5d6e650800c), [`0c0580a`](https://github.com/mastra-ai/mastra/commit/0c0580a42f697cd2a7d5973f25bfe7da9055038a), [`28f5f89`](https://github.com/mastra-ai/mastra/commit/28f5f89705f2409921e3c45178796c0e0d0bbb64), [`e601b27`](https://github.com/mastra-ai/mastra/commit/e601b272c70f3a5ecca610373aa6223012704892), [`3d3366f`](https://github.com/mastra-ai/mastra/commit/3d3366f31683e7137d126a3a57174a222c5801fb), [`5a4953f`](https://github.com/mastra-ai/mastra/commit/5a4953f7d25bb15ca31ed16038092a39cb3f98b3), [`eb9e522`](https://github.com/mastra-ai/mastra/commit/eb9e522ce3070a405e5b949b7bf5609ca51d7fe2), [`20e6f19`](https://github.com/mastra-ai/mastra/commit/20e6f1971d51d3ff6dd7accad8aaaae826d540ed), [`2b7aede`](https://github.com/mastra-ai/mastra/commit/2b7aede89494efaf7c28efe264a86cad8ee1cee6), [`4f0b3c6`](https://github.com/mastra-ai/mastra/commit/4f0b3c66f196c06448487f680ccbb614d281e2f7), [`74c4f22`](https://github.com/mastra-ai/mastra/commit/74c4f22ed4c71e72598eacc346ba95cdbc00294f), [`81b6a8f`](https://github.com/mastra-ai/mastra/commit/81b6a8ff79f49a7549d15d66624ac1a0b8f5f971), [`e4d366a`](https://github.com/mastra-ai/mastra/commit/e4d366aeb500371dd4210d6aa8361a4c21d87034), [`a4f010b`](https://github.com/mastra-ai/mastra/commit/a4f010b22e4355a5fdee70a1fe0f6e4a692cc29e), [`73b0bb3`](https://github.com/mastra-ai/mastra/commit/73b0bb394dba7c9482eb467a97ab283dbc0ef4db), [`5627a8c`](https://github.com/mastra-ai/mastra/commit/5627a8c6dc11fe3711b3fa7a6ffd6eb34100a306), [`3ff45d1`](https://github.com/mastra-ai/mastra/commit/3ff45d10e0c80c5335a957ab563da72feb623520), [`251df45`](https://github.com/mastra-ai/mastra/commit/251df4531407dfa46d805feb40ff3fb49769f455), [`f894d14`](https://github.com/mastra-ai/mastra/commit/f894d148946629af7b1f452d65a9cf864cec3765), [`c2b9547`](https://github.com/mastra-ai/mastra/commit/c2b9547bf435f56339f23625a743b2147ab1c7a6), [`580b592`](https://github.com/mastra-ai/mastra/commit/580b5927afc82fe460dfdf9a38a902511b6b7e7f), [`58e3931`](https://github.com/mastra-ai/mastra/commit/58e3931af9baa5921688566210f00fb0c10479fa), [`580b592`](https://github.com/mastra-ai/mastra/commit/580b5927afc82fe460dfdf9a38a902511b6b7e7f), [`08bb631`](https://github.com/mastra-ai/mastra/commit/08bb631ae2b14684b2678e3549d0b399a6f0561e), [`4fba91b`](https://github.com/mastra-ai/mastra/commit/4fba91bec7c95911dc28e369437596b152b04cd0), [`106c960`](https://github.com/mastra-ai/mastra/commit/106c960df5d110ec15ac8f45de8858597fb90ad5), [`12b0cc4`](https://github.com/mastra-ai/mastra/commit/12b0cc4077d886b1a552637dedb70a7ade93528c)]:
|
|
102
|
+
- @mastra/core@1.0.0-beta.20
|
|
103
|
+
- @mastra/client-js@1.0.0-beta.20
|
|
104
|
+
- @mastra/ai-sdk@1.0.0-beta.13
|
|
105
|
+
- @mastra/react@0.1.0-beta.20
|
|
106
|
+
|
|
3
107
|
## 7.0.0-beta.19
|
|
4
108
|
|
|
5
109
|
### Patch Changes
|