@mastra/client-js 0.11.2 → 0.11.3-alpha.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @mastra/client-js@0.11.1 build /home/runner/work/mastra/mastra/client-sdks/client-js
2
+ > @mastra/client-js@0.11.3-alpha.0 build /home/runner/work/mastra/mastra/client-sdks/client-js
3
3
  > tsup --config tsup.config.ts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,9 +10,9 @@
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
- ESM dist/index.js 95.75 KB
14
- ESM dist/index.js.map 206.00 KB
15
- ESM ⚡️ Build success in 2566ms
16
- CJS dist/index.cjs 96.10 KB
17
- CJS dist/index.cjs.map 206.18 KB
18
- CJS ⚡️ Build success in 2566ms
13
+ CJS dist/index.cjs 96.64 KB
14
+ CJS dist/index.cjs.map 207.01 KB
15
+ CJS ⚡️ Build success in 3307ms
16
+ ESM dist/index.js 96.30 KB
17
+ ESM dist/index.js.map 206.83 KB
18
+ ESM ⚡️ Build success in 3308ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 0.11.3-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#7109](https://github.com/mastra-ai/mastra/pull/7109) [`5de1555`](https://github.com/mastra-ai/mastra/commit/5de15554d3d6695211945a36928f6657e76cddc9) Thanks [@epinzur](https://github.com/epinzur)! - Fixed tracingContext on tool executions in AI tracing
8
+
9
+ - Updated dependencies [[`00c74e7`](https://github.com/mastra-ai/mastra/commit/00c74e73b1926be0d475693bb886fb67a22ff352), [`af90672`](https://github.com/mastra-ai/mastra/commit/af906722d8da28688882193b1e531026f9e2e81e), [`56041d0`](https://github.com/mastra-ai/mastra/commit/56041d018863a3da6b98c512e47348647c075fb3), [`5de1555`](https://github.com/mastra-ai/mastra/commit/5de15554d3d6695211945a36928f6657e76cddc9), [`1ed5a3e`](https://github.com/mastra-ai/mastra/commit/1ed5a3e19330374c4347a4237cd2f4b9ffb60376)]:
10
+ - @mastra/core@0.15.3-alpha.0
11
+
3
12
  ## 0.11.2
4
13
 
5
14
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -381,7 +381,14 @@ async function executeToolCallAndRespond({
381
381
  const clientTool = params.clientTools?.[toolCall.toolName];
382
382
  if (clientTool && clientTool.execute) {
383
383
  const result = await clientTool.execute(
384
- { context: toolCall?.args, runId, resourceId, threadId, runtimeContext },
384
+ {
385
+ context: toolCall?.args,
386
+ runId,
387
+ resourceId,
388
+ threadId,
389
+ runtimeContext,
390
+ tracingContext: { currentSpan: void 0 }
391
+ },
385
392
  {
386
393
  messages: response.messages,
387
394
  toolCallId: toolCall?.toolCallId
@@ -506,7 +513,14 @@ var Agent = class extends BaseResource {
506
513
  const clientTool = params.clientTools?.[toolCall.toolName];
507
514
  if (clientTool && clientTool.execute) {
508
515
  const result = await clientTool.execute(
509
- { context: toolCall?.args, runId, resourceId, threadId, runtimeContext },
516
+ {
517
+ context: toolCall?.args,
518
+ runId,
519
+ resourceId,
520
+ threadId,
521
+ runtimeContext,
522
+ tracingContext: { currentSpan: void 0 }
523
+ },
510
524
  {
511
525
  messages: response.messages,
512
526
  toolCallId: toolCall?.toolCallId
@@ -1153,7 +1167,9 @@ var Agent = class extends BaseResource {
1153
1167
  runId: processedParams.runId,
1154
1168
  resourceId: processedParams.resourceId,
1155
1169
  threadId: processedParams.threadId,
1156
- runtimeContext: processedParams.runtimeContext
1170
+ runtimeContext: processedParams.runtimeContext,
1171
+ // TODO: Pass proper tracing context when client-js supports tracing
1172
+ tracingContext: { currentSpan: void 0 }
1157
1173
  },
1158
1174
  {
1159
1175
  messages: response.messages,
@@ -1289,7 +1305,9 @@ var Agent = class extends BaseResource {
1289
1305
  runId: processedParams.runId,
1290
1306
  resourceId: processedParams.resourceId,
1291
1307
  threadId: processedParams.threadId,
1292
- runtimeContext: processedParams.runtimeContext
1308
+ runtimeContext: processedParams.runtimeContext,
1309
+ // TODO: Pass proper tracing context when client-js supports tracing
1310
+ tracingContext: { currentSpan: void 0 }
1293
1311
  },
1294
1312
  {
1295
1313
  messages: response.messages,