@mastra/client-js 1.20.1-alpha.0 → 1.21.0-alpha.2

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 CHANGED
@@ -1,5 +1,32 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 1.21.0-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`df1947a`](https://github.com/mastra-ai/mastra/commit/df1947affa40f742067542251fac7ca759492ef4), [`ee59b74`](https://github.com/mastra-ai/mastra/commit/ee59b743ce73ad11784b4d9c6fbba8568edee1c8), [`a97b1a0`](https://github.com/mastra-ai/mastra/commit/a97b1a0abaed83946c3519d1e0f680d0815b8a67)]:
8
+ - @mastra/core@1.37.0-alpha.2
9
+
10
+ ## 1.21.0-alpha.1
11
+
12
+ ### Minor Changes
13
+
14
+ - Client-side tool tracing is now built in. When server-side observability is configured, the SDK automatically measures execution duration and ships it back to the server. To add child spans and structured logs from inside your tool's `execute(input, context)` function, use the `observe` helper on the execution context: ([#16425](https://github.com/mastra-ai/mastra/pull/16425))
15
+
16
+ ```ts
17
+ execute: async ({ userId }, { observe }) => {
18
+ observe.log('info', 'fetching user', { userId });
19
+ return observe.span('fetch user', () => fetch(`/api/users/${userId}`));
20
+ };
21
+ ```
22
+
23
+ The `createTool()` helper now calls `execute(input, context)` so client tools receive the same execution context shape as core tools.
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [[`2f5f58a`](https://github.com/mastra-ai/mastra/commit/2f5f58a9a8bb13bcdc6789db221eef7c9bf1ff02)]:
28
+ - @mastra/core@1.37.0-alpha.1
29
+
3
30
  ## 1.20.1-alpha.0
4
31
 
5
32
  ### Patch Changes