@mastra/playground-ui 12.0.0 → 13.0.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 +112 -0
- package/dist/index.cjs.js +2300 -811
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2293 -813
- package/dist/index.es.js.map +1 -1
- package/dist/src/domains/agents/components/agent-cms-form-shell.d.ts +2 -1
- package/dist/src/domains/agents/components/agent-cms-layout/agent-cms-layout.d.ts +2 -1
- package/dist/src/domains/agents/components/agent-cms-pages/index.d.ts +1 -0
- package/dist/src/domains/agents/components/agent-cms-pages/skill-edit-dialog.d.ts +8 -0
- package/dist/src/domains/agents/components/agent-cms-pages/skill-file-tree.d.ts +15 -0
- package/dist/src/domains/agents/components/agent-cms-pages/skill-folder.d.ts +14 -0
- package/dist/src/domains/agents/components/agent-cms-pages/skills-page.d.ts +1 -0
- package/dist/src/domains/agents/components/agent-cms-sidebar/use-sidebar-descriptions.d.ts +4 -0
- package/dist/src/domains/agents/components/agent-edit-page/use-agent-edit-form.d.ts +32 -0
- package/dist/src/domains/agents/components/agent-edit-page/utils/form-validation.d.ts +43 -0
- package/dist/src/domains/agents/components/agent-version-panel.d.ts +7 -0
- package/dist/src/domains/agents/hooks/use-agent-cms-form.d.ts +33 -0
- package/dist/src/domains/agents/hooks/use-agent-skills.d.ts +12 -0
- package/dist/src/domains/agents/hooks/use-agent-workspace.d.ts +13 -0
- package/dist/src/domains/agents/hooks/use-create-skill.d.ts +10 -0
- package/dist/src/domains/agents/hooks/use-stored-skills.d.ts +1 -0
- package/dist/src/domains/agents/index.d.ts +3 -0
- package/dist/src/domains/agents/utils/agent-form-mappers.d.ts +6 -1
- package/dist/src/domains/agents/utils/compute-agent-initial-values.d.ts +3 -0
- package/dist/src/domains/datasets/components/dataset-combobox.d.ts +11 -0
- package/dist/src/domains/datasets/hooks/use-dataset-item-versions.d.ts +1 -1
- package/dist/src/domains/datasets/index.d.ts +2 -0
- package/dist/src/domains/experiments/hooks/use-experiment-trace.d.ts +1 -1
- package/dist/src/domains/mcps/components/mcp-client-create/mcp-client-create-content.d.ts +7 -1
- package/dist/src/domains/mcps/components/mcp-client-create/mcp-client-form-sidebar.d.ts +2 -1
- package/dist/src/domains/mcps/components/mcp-client-create/mcp-client-tool-preview.d.ts +6 -1
- package/dist/src/ds/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/src/ds/components/CodeDiff/code-diff.d.ts +5 -0
- package/dist/src/ds/components/CodeDiff/code-diff.stories.d.ts +9 -0
- package/dist/src/ds/components/CodeDiff/index.d.ts +2 -0
- package/dist/src/ds/components/FormFields/select-field.d.ts +1 -0
- package/dist/src/ds/components/Tree/index.d.ts +1 -0
- package/dist/src/ds/components/Tree/tree-context.d.ts +15 -0
- package/dist/src/ds/components/Tree/tree-file.d.ts +7 -0
- package/dist/src/ds/components/Tree/tree-folder-content.d.ts +6 -0
- package/dist/src/ds/components/Tree/tree-folder-trigger.d.ts +7 -0
- package/dist/src/ds/components/Tree/tree-folder.d.ts +9 -0
- package/dist/src/ds/components/Tree/tree-icon.d.ts +6 -0
- package/dist/src/ds/components/Tree/tree-input.d.ts +11 -0
- package/dist/src/ds/components/Tree/tree-label.d.ts +6 -0
- package/dist/src/ds/components/Tree/tree-root.d.ts +8 -0
- package/dist/src/ds/components/Tree/tree.d.ts +9 -0
- package/dist/src/ds/components/Tree/tree.stories.d.ts +10 -0
- package/dist/src/index.d.ts +2 -0
- package/package.json +14 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,117 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 13.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added `Tree.Input` component for inline file and folder creation within the Tree. Supports auto-focus, Enter to confirm, Escape to cancel, and blur handling with correct depth indentation. ([#13264](https://github.com/mastra-ai/mastra/pull/13264))
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import { Tree } from '@mastra/playground-ui';
|
|
11
|
+
|
|
12
|
+
<Tree.Folder name="src" defaultOpen>
|
|
13
|
+
<Tree.Input
|
|
14
|
+
type="file"
|
|
15
|
+
placeholder="new-file.ts"
|
|
16
|
+
onSubmit={name => createFile(name)}
|
|
17
|
+
onCancel={() => setCreating(false)}
|
|
18
|
+
/>
|
|
19
|
+
<Tree.File name="index.ts" />
|
|
20
|
+
</Tree.Folder>;
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- dependencies updates: ([#13284](https://github.com/mastra-ai/mastra/pull/13284))
|
|
26
|
+
- Updated dependency [`sonner@^2.0.7` ↗︎](https://www.npmjs.com/package/sonner/v/2.0.7) (from `^2.0.5`, in `dependencies`)
|
|
27
|
+
|
|
28
|
+
- dependencies updates: ([#13300](https://github.com/mastra-ai/mastra/pull/13300))
|
|
29
|
+
- Updated dependency [`superjson@^2.2.6` ↗︎](https://www.npmjs.com/package/superjson/v/2.2.6) (from `^2.2.2`, in `dependencies`)
|
|
30
|
+
|
|
31
|
+
- Added per-tool selection for MCP clients in the agent editor. When connecting to an HTTP MCP server, each tool now has a toggle switch so you can choose exactly which tools the agent should use. Selected tools persist across saves and reloads. ([#13262](https://github.com/mastra-ai/mastra/pull/13262))
|
|
32
|
+
|
|
33
|
+
- Fixed agent publish flow to no longer auto-save a draft. Publish now only activates the latest saved version. Save and Publish buttons are disabled when there are no changes or no unpublished draft, respectively. ([#13292](https://github.com/mastra-ai/mastra/pull/13292))
|
|
34
|
+
|
|
35
|
+
Memory page improvements:
|
|
36
|
+
- Renamed "Last Messages" to "Message History" and added a toggle switch for consistency with other memory options.
|
|
37
|
+
- Moved Observational Memory to the top of the memory list.
|
|
38
|
+
- Observational Memory and Message History are now mutually exclusive — enabling one disables the other.
|
|
39
|
+
|
|
40
|
+
- Added a side-by-side diff view to the Dataset comparison pages (Compare Items and Compare Item Versions), making it easier to spot differences between dataset entries at a glance. ([#13267](https://github.com/mastra-ai/mastra/pull/13267))
|
|
41
|
+
|
|
42
|
+
- Fixed the Experiment Result panel crashing with a type error when results contained nested objects instead of plain strings. ([#13275](https://github.com/mastra-ai/mastra/pull/13275))
|
|
43
|
+
|
|
44
|
+
- Added a searchable combobox header to the Dataset page, allowing you to quickly filter and switch between datasets without scrolling through a long list. ([#13273](https://github.com/mastra-ai/mastra/pull/13273))
|
|
45
|
+
|
|
46
|
+
- Added skill editing and workspace support in the agent CMS. Agents can now toggle skills on/off and associate a workspace. Fixed auto-versioning to compare against the latest draft version instead of the published one, preventing stale draft configs from being returned after saves. ([#13314](https://github.com/mastra-ai/mastra/pull/13314))
|
|
47
|
+
|
|
48
|
+
- Added a composable Tree component for displaying file-system-like views with collapsible folders, file type icons, selection support, and action slots ([#13259](https://github.com/mastra-ai/mastra/pull/13259))
|
|
49
|
+
|
|
50
|
+
- Added a version history panel to the right side of the agent CMS edit page. The version selector moved from a combobox dropdown in the header to a dedicated side panel, making it easier to browse and switch between agent versions. ([#13279](https://github.com/mastra-ai/mastra/pull/13279))
|
|
51
|
+
|
|
52
|
+
- Updated dependencies [[`e4034e5`](https://github.com/mastra-ai/mastra/commit/e4034e5442b27f1bcae80456bfd21be388962eb8), [`0d9efb4`](https://github.com/mastra-ai/mastra/commit/0d9efb47992c34aa90581c18b9f51f774f6252a5), [`7184d87`](https://github.com/mastra-ai/mastra/commit/7184d87c9237d26862f500ccfd0c9f9eadd38ddf), [`5caa13d`](https://github.com/mastra-ai/mastra/commit/5caa13d1b2a496e2565ab124a11de9a51ad3e3b9), [`940163f`](https://github.com/mastra-ai/mastra/commit/940163fc492401d7562301e6f106ccef4fefe06f), [`47892c8`](https://github.com/mastra-ai/mastra/commit/47892c85708eac348209f99f10f9a5f5267e11c0), [`3f8f1b3`](https://github.com/mastra-ai/mastra/commit/3f8f1b31146d2a8316157171962ad825628aa251), [`45bb78b`](https://github.com/mastra-ai/mastra/commit/45bb78b70bd9db29678fe49476cd9f4ed01bfd0b), [`70eef84`](https://github.com/mastra-ai/mastra/commit/70eef84b8f44493598fdafa2980a0e7283415eda), [`d84e52d`](https://github.com/mastra-ai/mastra/commit/d84e52d0f6511283ddd21ed5fe7f945449d0f799), [`24b80af`](https://github.com/mastra-ai/mastra/commit/24b80af87da93bb84d389340181e17b7477fa9ca), [`608e156`](https://github.com/mastra-ai/mastra/commit/608e156def954c9604c5e3f6d9dfce3bcc7aeab0), [`2b2e157`](https://github.com/mastra-ai/mastra/commit/2b2e157a092cd597d9d3f0000d62b8bb4a7348ed), [`59d30b5`](https://github.com/mastra-ai/mastra/commit/59d30b5d0cb44ea7a1c440e7460dfb57eac9a9b5), [`453693b`](https://github.com/mastra-ai/mastra/commit/453693bf9e265ddccecef901d50da6caaea0fbc6), [`78d1c80`](https://github.com/mastra-ai/mastra/commit/78d1c808ad90201897a300af551bcc1d34458a20), [`c204b63`](https://github.com/mastra-ai/mastra/commit/c204b632d19e66acb6d6e19b11c4540dd6ad5380), [`742a417`](https://github.com/mastra-ai/mastra/commit/742a417896088220a3b5560c354c45c5ca6d88b9)]:
|
|
53
|
+
- @mastra/react@0.2.5
|
|
54
|
+
- @mastra/core@1.6.0
|
|
55
|
+
- @mastra/client-js@1.6.0
|
|
56
|
+
- @mastra/schema-compat@1.1.2
|
|
57
|
+
- @mastra/ai-sdk@1.0.5
|
|
58
|
+
|
|
59
|
+
## 13.0.0-alpha.0
|
|
60
|
+
|
|
61
|
+
### Minor Changes
|
|
62
|
+
|
|
63
|
+
- Added `Tree.Input` component for inline file and folder creation within the Tree. Supports auto-focus, Enter to confirm, Escape to cancel, and blur handling with correct depth indentation. ([#13264](https://github.com/mastra-ai/mastra/pull/13264))
|
|
64
|
+
|
|
65
|
+
```tsx
|
|
66
|
+
import { Tree } from '@mastra/playground-ui';
|
|
67
|
+
|
|
68
|
+
<Tree.Folder name="src" defaultOpen>
|
|
69
|
+
<Tree.Input
|
|
70
|
+
type="file"
|
|
71
|
+
placeholder="new-file.ts"
|
|
72
|
+
onSubmit={name => createFile(name)}
|
|
73
|
+
onCancel={() => setCreating(false)}
|
|
74
|
+
/>
|
|
75
|
+
<Tree.File name="index.ts" />
|
|
76
|
+
</Tree.Folder>;
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
- dependencies updates: ([#13284](https://github.com/mastra-ai/mastra/pull/13284))
|
|
82
|
+
- Updated dependency [`sonner@^2.0.7` ↗︎](https://www.npmjs.com/package/sonner/v/2.0.7) (from `^2.0.5`, in `dependencies`)
|
|
83
|
+
|
|
84
|
+
- dependencies updates: ([#13300](https://github.com/mastra-ai/mastra/pull/13300))
|
|
85
|
+
- Updated dependency [`superjson@^2.2.6` ↗︎](https://www.npmjs.com/package/superjson/v/2.2.6) (from `^2.2.2`, in `dependencies`)
|
|
86
|
+
|
|
87
|
+
- Added per-tool selection for MCP clients in the agent editor. When connecting to an HTTP MCP server, each tool now has a toggle switch so you can choose exactly which tools the agent should use. Selected tools persist across saves and reloads. ([#13262](https://github.com/mastra-ai/mastra/pull/13262))
|
|
88
|
+
|
|
89
|
+
- Fixed agent publish flow to no longer auto-save a draft. Publish now only activates the latest saved version. Save and Publish buttons are disabled when there are no changes or no unpublished draft, respectively. ([#13292](https://github.com/mastra-ai/mastra/pull/13292))
|
|
90
|
+
|
|
91
|
+
Memory page improvements:
|
|
92
|
+
- Renamed "Last Messages" to "Message History" and added a toggle switch for consistency with other memory options.
|
|
93
|
+
- Moved Observational Memory to the top of the memory list.
|
|
94
|
+
- Observational Memory and Message History are now mutually exclusive — enabling one disables the other.
|
|
95
|
+
|
|
96
|
+
- Added a side-by-side diff view to the Dataset comparison pages (Compare Items and Compare Item Versions), making it easier to spot differences between dataset entries at a glance. ([#13267](https://github.com/mastra-ai/mastra/pull/13267))
|
|
97
|
+
|
|
98
|
+
- Fixed the Experiment Result panel crashing with a type error when results contained nested objects instead of plain strings. ([#13275](https://github.com/mastra-ai/mastra/pull/13275))
|
|
99
|
+
|
|
100
|
+
- Added a searchable combobox header to the Dataset page, allowing you to quickly filter and switch between datasets without scrolling through a long list. ([#13273](https://github.com/mastra-ai/mastra/pull/13273))
|
|
101
|
+
|
|
102
|
+
- Added skill editing and workspace support in the agent CMS. Agents can now toggle skills on/off and associate a workspace. Fixed auto-versioning to compare against the latest draft version instead of the published one, preventing stale draft configs from being returned after saves. ([#13314](https://github.com/mastra-ai/mastra/pull/13314))
|
|
103
|
+
|
|
104
|
+
- Added a composable Tree component for displaying file-system-like views with collapsible folders, file type icons, selection support, and action slots ([#13259](https://github.com/mastra-ai/mastra/pull/13259))
|
|
105
|
+
|
|
106
|
+
- Added a version history panel to the right side of the agent CMS edit page. The version selector moved from a combobox dropdown in the header to a dedicated side panel, making it easier to browse and switch between agent versions. ([#13279](https://github.com/mastra-ai/mastra/pull/13279))
|
|
107
|
+
|
|
108
|
+
- Updated dependencies [[`e4034e5`](https://github.com/mastra-ai/mastra/commit/e4034e5442b27f1bcae80456bfd21be388962eb8), [`0d9efb4`](https://github.com/mastra-ai/mastra/commit/0d9efb47992c34aa90581c18b9f51f774f6252a5), [`7184d87`](https://github.com/mastra-ai/mastra/commit/7184d87c9237d26862f500ccfd0c9f9eadd38ddf), [`5caa13d`](https://github.com/mastra-ai/mastra/commit/5caa13d1b2a496e2565ab124a11de9a51ad3e3b9), [`940163f`](https://github.com/mastra-ai/mastra/commit/940163fc492401d7562301e6f106ccef4fefe06f), [`b260123`](https://github.com/mastra-ai/mastra/commit/b2601234bd093d358c92081a58f9b0befdae52b3), [`47892c8`](https://github.com/mastra-ai/mastra/commit/47892c85708eac348209f99f10f9a5f5267e11c0), [`3f8f1b3`](https://github.com/mastra-ai/mastra/commit/3f8f1b31146d2a8316157171962ad825628aa251), [`45bb78b`](https://github.com/mastra-ai/mastra/commit/45bb78b70bd9db29678fe49476cd9f4ed01bfd0b), [`70eef84`](https://github.com/mastra-ai/mastra/commit/70eef84b8f44493598fdafa2980a0e7283415eda), [`d84e52d`](https://github.com/mastra-ai/mastra/commit/d84e52d0f6511283ddd21ed5fe7f945449d0f799), [`24b80af`](https://github.com/mastra-ai/mastra/commit/24b80af87da93bb84d389340181e17b7477fa9ca), [`608e156`](https://github.com/mastra-ai/mastra/commit/608e156def954c9604c5e3f6d9dfce3bcc7aeab0), [`2b2e157`](https://github.com/mastra-ai/mastra/commit/2b2e157a092cd597d9d3f0000d62b8bb4a7348ed), [`59d30b5`](https://github.com/mastra-ai/mastra/commit/59d30b5d0cb44ea7a1c440e7460dfb57eac9a9b5), [`453693b`](https://github.com/mastra-ai/mastra/commit/453693bf9e265ddccecef901d50da6caaea0fbc6), [`78d1c80`](https://github.com/mastra-ai/mastra/commit/78d1c808ad90201897a300af551bcc1d34458a20), [`c204b63`](https://github.com/mastra-ai/mastra/commit/c204b632d19e66acb6d6e19b11c4540dd6ad5380), [`742a417`](https://github.com/mastra-ai/mastra/commit/742a417896088220a3b5560c354c45c5ca6d88b9)]:
|
|
109
|
+
- @mastra/react@0.2.5-alpha.0
|
|
110
|
+
- @mastra/core@1.6.0-alpha.0
|
|
111
|
+
- @mastra/client-js@1.6.0-alpha.0
|
|
112
|
+
- @mastra/schema-compat@1.1.2-alpha.0
|
|
113
|
+
- @mastra/ai-sdk@1.0.5
|
|
114
|
+
|
|
3
115
|
## 12.0.0
|
|
4
116
|
|
|
5
117
|
### Minor Changes
|