@mastra/playground-ui 6.2.0-alpha.3 → 6.2.0-alpha.4
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 +12 -0
- package/dist/index.cjs.js +19 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +19 -1
- package/dist/index.es.js.map +1 -1
- package/dist/src/hooks/use-workflows.d.ts +2 -2
- package/dist/src/index.d.ts +1 -0
- package/dist/src/lib/errors.d.ts +4 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 6.2.0-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed createRun change in agent builder that was missed ([#7966](https://github.com/mastra-ai/mastra/pull/7966))
|
|
8
|
+
|
|
9
|
+
- fix error message when fetching observability things ([#7956](https://github.com/mastra-ai/mastra/pull/7956))
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`4f9ea8c`](https://github.com/mastra-ai/mastra/commit/4f9ea8c95ea74ba9abbf3b2ab6106c7d7bc45689)]:
|
|
12
|
+
- @mastra/core@0.17.0-alpha.7
|
|
13
|
+
- @mastra/client-js@0.13.0-alpha.7
|
|
14
|
+
|
|
3
15
|
## 6.2.0-alpha.3
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -18708,6 +18708,24 @@ const MemorySearch = ({
|
|
|
18708
18708
|
] });
|
|
18709
18709
|
};
|
|
18710
18710
|
|
|
18711
|
+
const errorFallback = "Something went wrong while fetching the data.";
|
|
18712
|
+
const parseError = (error) => {
|
|
18713
|
+
try {
|
|
18714
|
+
const httpErrorPattern = /^HTTP error! status:\s*\d+\s*- \s*/;
|
|
18715
|
+
const errorMessage = error?.message.replace(httpErrorPattern, "");
|
|
18716
|
+
const jsonError = JSON.parse(errorMessage || "{}");
|
|
18717
|
+
return {
|
|
18718
|
+
error: jsonError?.error || errorFallback,
|
|
18719
|
+
stack: jsonError?.stack || error?.stack
|
|
18720
|
+
};
|
|
18721
|
+
} catch {
|
|
18722
|
+
return {
|
|
18723
|
+
error: error?.message || errorFallback,
|
|
18724
|
+
stack: void 0
|
|
18725
|
+
};
|
|
18726
|
+
}
|
|
18727
|
+
};
|
|
18728
|
+
|
|
18711
18729
|
exports.AgentChat = AgentChat;
|
|
18712
18730
|
exports.AgentCoinIcon = AgentCoinIcon;
|
|
18713
18731
|
exports.AgentEntityHeader = AgentEntityHeader;
|
|
@@ -18910,6 +18928,7 @@ exports.getColumnTemplate = getColumnTemplate;
|
|
|
18910
18928
|
exports.getShortId = getShortId;
|
|
18911
18929
|
exports.getSpanTypeUi = getSpanTypeUi;
|
|
18912
18930
|
exports.mapWorkflowStreamChunkToWatchResult = mapWorkflowStreamChunkToWatchResult;
|
|
18931
|
+
exports.parseError = parseError;
|
|
18913
18932
|
exports.providerMapToIcon = providerMapToIcon;
|
|
18914
18933
|
exports.spanTypePrefixes = spanTypePrefixes;
|
|
18915
18934
|
exports.transformKey = transformKey;
|