@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.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +9 -0
- package/dist/index.cjs +22 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -4
- package/dist/index.js.map +1 -1
- package/dist/resources/agent.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/resources/agent.ts +20 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/client-js@0.11.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m96.64 KB[39m
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m207.01 KB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 3307ms
|
|
16
|
+
[32mESM[39m [1mdist/index.js [22m[32m96.30 KB[39m
|
|
17
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m206.83 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ 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
|
-
{
|
|
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
|
-
{
|
|
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,
|