@mastra/playground-ui 13.0.0 → 14.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/dist/index.cjs.js +2736 -1633
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.es.js +2721 -1638
  5. package/dist/index.es.js.map +1 -1
  6. package/dist/src/domains/agents/components/agent-cms-blocks/agent-cms-ref-block.d.ts +8 -0
  7. package/dist/src/domains/agents/components/agent-cms-blocks/index.d.ts +2 -0
  8. package/dist/src/domains/agents/components/agent-cms-blocks/prompt-block-picker-dialog.d.ts +7 -0
  9. package/dist/src/domains/agents/components/agent-edit-page/use-agent-edit-form.d.ts +12 -4
  10. package/dist/src/domains/agents/components/agent-edit-page/utils/form-validation.d.ts +15 -4
  11. package/dist/src/domains/agents/hooks/use-agent-cms-form.d.ts +12 -4
  12. package/dist/src/domains/agents/utils/agent-form-mappers.d.ts +1 -5
  13. package/dist/src/domains/datasets/components/versions/dataset-compare-versions-list.d.ts +4 -1
  14. package/dist/src/domains/prompt-blocks/components/prompt-block-create-content.d.ts +7 -0
  15. package/dist/src/domains/prompt-blocks/components/prompt-block-edit-page/index.d.ts +4 -0
  16. package/dist/src/domains/prompt-blocks/components/prompt-block-edit-page/prompt-block-edit-main.d.ts +7 -0
  17. package/dist/src/domains/prompt-blocks/components/prompt-block-edit-page/prompt-block-edit-sidebar.d.ts +16 -0
  18. package/dist/src/domains/prompt-blocks/components/prompt-block-edit-page/use-prompt-block-edit-form.d.ts +19 -0
  19. package/dist/src/domains/prompt-blocks/components/prompt-block-edit-page/utils/form-validation.d.ts +10 -0
  20. package/dist/src/domains/prompt-blocks/components/prompt-block-version-combobox.d.ts +10 -0
  21. package/dist/src/domains/prompt-blocks/components/prompt-blocks-table/columns.d.ts +3 -0
  22. package/dist/src/domains/prompt-blocks/components/prompt-blocks-table/prompt-blocks-table.d.ts +6 -0
  23. package/dist/src/domains/prompt-blocks/components/prompt-blocks-table/types.d.ts +2 -0
  24. package/dist/src/domains/prompt-blocks/hooks/use-prompt-block-versions.d.ts +40 -0
  25. package/dist/src/domains/prompt-blocks/hooks/use-stored-prompt-blocks.d.ts +10 -0
  26. package/dist/src/domains/prompt-blocks/index.d.ts +9 -0
  27. package/dist/src/domains/workspace/constants.d.ts +2 -0
  28. package/dist/src/ds/components/Chip/chip.d.ts +7 -0
  29. package/dist/src/ds/components/Chip/chip.stories.d.ts +10 -0
  30. package/dist/src/ds/components/Chip/index.d.ts +1 -0
  31. package/dist/src/ds/components/FormFields/select-field.d.ts +1 -1
  32. package/dist/src/ds/components/ItemList/item-list-cell.d.ts +5 -0
  33. package/dist/src/ds/components/ItemList/item-list-date-cell.d.ts +6 -0
  34. package/dist/src/ds/components/ItemList/item-list-id-cell.d.ts +6 -0
  35. package/dist/src/ds/components/ItemList/item-list-link-cell.d.ts +6 -0
  36. package/dist/src/ds/components/ItemList/item-list-row-button.d.ts +3 -3
  37. package/dist/src/ds/components/ItemList/item-list-row.d.ts +3 -1
  38. package/dist/src/ds/components/ItemList/item-list-version-cell.d.ts +7 -0
  39. package/dist/src/ds/components/ItemList/item-list.d.ts +10 -2
  40. package/dist/src/index.d.ts +2 -0
  41. package/dist/src/lib/framework.d.ts +4 -0
  42. package/package.json +6 -6
  43. package/dist/src/ds/components/ItemList/item-list-flex-cell.d.ts +0 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,87 @@
1
1
  # @mastra/playground-ui
2
2
 
3
+ ## 14.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Added prompt block management to the Playground. You can now create, edit, version, and publish reusable prompt blocks from a dedicated "Prompts" tab in the sidebar. ([#13351](https://github.com/mastra-ai/mastra/pull/13351))
8
+
9
+ **Prompt block editor features:**
10
+ - Draft/published versioning with version history dropdown
11
+ - Variables editor (JSON schema) for defining template variables
12
+ - Display conditions for conditional block rendering
13
+ - Variable highlighting in the content editor
14
+
15
+ **Agent instruction block improvements:**
16
+ - Added support for referencing saved prompt blocks in agent instructions via a new "Reference saved prompt block" option in the add block dropdown
17
+ - Fixed save/publish button behavior — "Save" is now disabled when no changes have been made, and "Publish" is only enabled when there are unpublished drafts
18
+
19
+ - Added nested folder creation support in the skill tree editor for references and scripts folders ([#13453](https://github.com/mastra-ai/mastra/pull/13453))
20
+
21
+ - Added new Chip component and expanded ItemList with Cell, LinkCell, IdCell, DateCell, and VersionCell sub-components. Improved dataset version comparison page with inline navigation links, version status indicators, and a refreshed row layout. ([#13399](https://github.com/mastra-ai/mastra/pull/13399))
22
+
23
+ ### Patch Changes
24
+
25
+ - Improved comparison selection behavior: selecting a third item now replaces the most recent selection instead of being blocked. Applies to dataset version, item version, and dataset item comparison flows. ([#13406](https://github.com/mastra-ai/mastra/pull/13406))
26
+
27
+ - Improved the score dialog to show "N/A" with an explanation instead of "null" for empty scorer fields. Code-based scorers show "N/A — code-based scorer does not use prompts" and LLM scorers with unconfigured steps show "N/A — step not configured". Detection uses the `hasJudge` metadata flag with a heuristic fallback for older data. ([#13386](https://github.com/mastra-ai/mastra/pull/13386))
28
+
29
+ - Added workspace tools for background process management and improved sandbox execution UI. ([#13309](https://github.com/mastra-ai/mastra/pull/13309))
30
+ - `execute_command` now supports `background: true` to spawn long-running processes and return a PID
31
+ - New `get_process_output` tool to check output/status of background processes (supports `wait` to block until exit)
32
+ - New `kill_process` tool to terminate background processes
33
+ - Output truncation helpers with configurable tail lines
34
+ - Sandbox execution badge UI: terminal-style output display with streaming, exit codes, killed status, and workspace metadata
35
+
36
+ - Fixed publish button in agent CMS to be disabled when no draft exists, preventing unnecessary error toasts. Also fixed stale agent data after saving a draft or publishing by invalidating the agent query cache. Fixed tool count in the CMS sidebar and tools page to correctly include integration tools. ([#13325](https://github.com/mastra-ai/mastra/pull/13325))
37
+
38
+ - Updated dependencies [[`24284ff`](https://github.com/mastra-ai/mastra/commit/24284ffae306ddf0ab83273e13f033520839ef40), [`f5097cc`](https://github.com/mastra-ai/mastra/commit/f5097cc8a813c82c3378882c31178320cadeb655), [`71e237f`](https://github.com/mastra-ai/mastra/commit/71e237fa852a3ad9a50a3ddb3b5f3b20b9a8181c), [`13a291e`](https://github.com/mastra-ai/mastra/commit/13a291ebb9f9bca80befa0d9166b916bb348e8e9), [`397af5a`](https://github.com/mastra-ai/mastra/commit/397af5a69f34d4157f51a7c8da3f1ded1e1d611c), [`d4701f7`](https://github.com/mastra-ai/mastra/commit/d4701f7e24822b081b70f9c806c39411b1a712e7), [`2b40831`](https://github.com/mastra-ai/mastra/commit/2b40831dcca2275c9570ddf09b7f25ba3e8dc7fc), [`2b40831`](https://github.com/mastra-ai/mastra/commit/2b40831dcca2275c9570ddf09b7f25ba3e8dc7fc), [`6184727`](https://github.com/mastra-ai/mastra/commit/6184727e812bf7a65cee209bacec3a2f5a16e923), [`0c338b8`](https://github.com/mastra-ai/mastra/commit/0c338b87362dcd95ff8191ca00df645b6953f534), [`6f6385b`](https://github.com/mastra-ai/mastra/commit/6f6385be5b33687cd21e71fc27e972e6928bb34c), [`14aba61`](https://github.com/mastra-ai/mastra/commit/14aba61b9cff76d72bc7ef6f3a83ae2c5d059193), [`dd9dd1c`](https://github.com/mastra-ai/mastra/commit/dd9dd1c9ae32ae79093f8c4adde1732ac6357233)]:
39
+ - @mastra/core@1.7.0
40
+ - @mastra/client-js@1.7.0
41
+ - @mastra/ai-sdk@1.0.5
42
+ - @mastra/react@0.2.6
43
+
44
+ ## 14.0.0-alpha.0
45
+
46
+ ### Minor Changes
47
+
48
+ - Added prompt block management to the Playground. You can now create, edit, version, and publish reusable prompt blocks from a dedicated "Prompts" tab in the sidebar. ([#13351](https://github.com/mastra-ai/mastra/pull/13351))
49
+
50
+ **Prompt block editor features:**
51
+ - Draft/published versioning with version history dropdown
52
+ - Variables editor (JSON schema) for defining template variables
53
+ - Display conditions for conditional block rendering
54
+ - Variable highlighting in the content editor
55
+
56
+ **Agent instruction block improvements:**
57
+ - Added support for referencing saved prompt blocks in agent instructions via a new "Reference saved prompt block" option in the add block dropdown
58
+ - Fixed save/publish button behavior — "Save" is now disabled when no changes have been made, and "Publish" is only enabled when there are unpublished drafts
59
+
60
+ - Added nested folder creation support in the skill tree editor for references and scripts folders ([#13453](https://github.com/mastra-ai/mastra/pull/13453))
61
+
62
+ - Added new Chip component and expanded ItemList with Cell, LinkCell, IdCell, DateCell, and VersionCell sub-components. Improved dataset version comparison page with inline navigation links, version status indicators, and a refreshed row layout. ([#13399](https://github.com/mastra-ai/mastra/pull/13399))
63
+
64
+ ### Patch Changes
65
+
66
+ - Improved comparison selection behavior: selecting a third item now replaces the most recent selection instead of being blocked. Applies to dataset version, item version, and dataset item comparison flows. ([#13406](https://github.com/mastra-ai/mastra/pull/13406))
67
+
68
+ - Improved the score dialog to show "N/A" with an explanation instead of "null" for empty scorer fields. Code-based scorers show "N/A — code-based scorer does not use prompts" and LLM scorers with unconfigured steps show "N/A — step not configured". Detection uses the `hasJudge` metadata flag with a heuristic fallback for older data. ([#13386](https://github.com/mastra-ai/mastra/pull/13386))
69
+
70
+ - Added workspace tools for background process management and improved sandbox execution UI. ([#13309](https://github.com/mastra-ai/mastra/pull/13309))
71
+ - `execute_command` now supports `background: true` to spawn long-running processes and return a PID
72
+ - New `get_process_output` tool to check output/status of background processes (supports `wait` to block until exit)
73
+ - New `kill_process` tool to terminate background processes
74
+ - Output truncation helpers with configurable tail lines
75
+ - Sandbox execution badge UI: terminal-style output display with streaming, exit codes, killed status, and workspace metadata
76
+
77
+ - Fixed publish button in agent CMS to be disabled when no draft exists, preventing unnecessary error toasts. Also fixed stale agent data after saving a draft or publishing by invalidating the agent query cache. Fixed tool count in the CMS sidebar and tools page to correctly include integration tools. ([#13325](https://github.com/mastra-ai/mastra/pull/13325))
78
+
79
+ - Updated dependencies [[`24284ff`](https://github.com/mastra-ai/mastra/commit/24284ffae306ddf0ab83273e13f033520839ef40), [`f5097cc`](https://github.com/mastra-ai/mastra/commit/f5097cc8a813c82c3378882c31178320cadeb655), [`71e237f`](https://github.com/mastra-ai/mastra/commit/71e237fa852a3ad9a50a3ddb3b5f3b20b9a8181c), [`13a291e`](https://github.com/mastra-ai/mastra/commit/13a291ebb9f9bca80befa0d9166b916bb348e8e9), [`397af5a`](https://github.com/mastra-ai/mastra/commit/397af5a69f34d4157f51a7c8da3f1ded1e1d611c), [`d4701f7`](https://github.com/mastra-ai/mastra/commit/d4701f7e24822b081b70f9c806c39411b1a712e7), [`2b40831`](https://github.com/mastra-ai/mastra/commit/2b40831dcca2275c9570ddf09b7f25ba3e8dc7fc), [`2b40831`](https://github.com/mastra-ai/mastra/commit/2b40831dcca2275c9570ddf09b7f25ba3e8dc7fc), [`6184727`](https://github.com/mastra-ai/mastra/commit/6184727e812bf7a65cee209bacec3a2f5a16e923), [`6f6385b`](https://github.com/mastra-ai/mastra/commit/6f6385be5b33687cd21e71fc27e972e6928bb34c), [`14aba61`](https://github.com/mastra-ai/mastra/commit/14aba61b9cff76d72bc7ef6f3a83ae2c5d059193), [`dd9dd1c`](https://github.com/mastra-ai/mastra/commit/dd9dd1c9ae32ae79093f8c4adde1732ac6357233)]:
80
+ - @mastra/core@1.7.0-alpha.0
81
+ - @mastra/client-js@1.7.0-alpha.0
82
+ - @mastra/ai-sdk@1.0.5
83
+ - @mastra/react@0.2.6-alpha.0
84
+
3
85
  ## 13.0.0
4
86
 
5
87
  ### Minor Changes