@mastra/client-js 1.36.0 → 1.36.1-alpha.1
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 +25 -0
- package/dist/client.d.ts +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/route-types.generated.d.ts +13 -1
- package/dist/route-types.generated.d.ts.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 1.36.1-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Added comment support to the experiment result API. The PATCH experiment result endpoint and the client updateDatasetExperimentResult method now accept and return a comment field, so review comments persist server-side instead of being lost on reload (https://github.com/mastra-ai/mastra/issues/19857). ([#19865](https://github.com/mastra-ai/mastra/pull/19865))
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
const result = await client.updateDatasetExperimentResult({
|
|
11
|
+
datasetId,
|
|
12
|
+
experimentId,
|
|
13
|
+
resultId,
|
|
14
|
+
comment: 'Agent hallucinated an API that does not exist',
|
|
15
|
+
});
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`c5e56ff`](https://github.com/mastra-ai/mastra/commit/c5e56ff3bcabdf062708f2d48744fec304df6792), [`4e35a56`](https://github.com/mastra-ai/mastra/commit/4e35a56cdf8d74a5ff6d5eda01f2c1deaf6cc7be)]:
|
|
19
|
+
- @mastra/core@1.56.0-alpha.1
|
|
20
|
+
|
|
21
|
+
## 1.36.1-alpha.0
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [[`7f4e26d`](https://github.com/mastra-ai/mastra/commit/7f4e26dd57bd9b23c278ea21235ab823a3810a6c), [`b582f7f`](https://github.com/mastra-ai/mastra/commit/b582f7fa2f9c1f87d19efc63d344fbe5dda2608c), [`b582f7f`](https://github.com/mastra-ai/mastra/commit/b582f7fa2f9c1f87d19efc63d344fbe5dda2608c)]:
|
|
26
|
+
- @mastra/core@1.56.0-alpha.0
|
|
27
|
+
|
|
3
28
|
## 1.36.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/dist/client.d.ts
CHANGED
|
@@ -822,7 +822,7 @@ export declare class MastraClient extends BaseResource {
|
|
|
822
822
|
pagination: PaginationInfo;
|
|
823
823
|
}>;
|
|
824
824
|
/**
|
|
825
|
-
* Updates an experiment result's status and/or
|
|
825
|
+
* Updates an experiment result's status, tags, and/or comment
|
|
826
826
|
*/
|
|
827
827
|
updateDatasetExperimentResult(params: UpdateExperimentResultParams): Promise<DatasetExperimentResult>;
|
|
828
828
|
/**
|
|
@@ -856,7 +856,7 @@ export declare class MastraClient extends BaseResource {
|
|
|
856
856
|
}>;
|
|
857
857
|
}>;
|
|
858
858
|
/**
|
|
859
|
-
* Updates the status and/or
|
|
859
|
+
* Updates the status, tags, and/or comment on an experiment result
|
|
860
860
|
*/
|
|
861
861
|
updateExperimentResult(params: UpdateExperimentResultParams): Promise<DatasetExperimentResult>;
|
|
862
862
|
/**
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-client-js
|
|
|
3
3
|
description: Documentation for @mastra/client-js. Use when working with @mastra/client-js APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/client-js"
|
|
6
|
-
version: "1.36.
|
|
6
|
+
version: "1.36.1-alpha.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/dist/index.cjs
CHANGED
|
@@ -7248,7 +7248,7 @@ var MastraClient = class extends BaseResource {
|
|
|
7248
7248
|
return this.request(`/datasets/${encodeURIComponent(datasetId)}/experiments/${encodeURIComponent(experimentId)}/results${qs ? `?${qs}` : ""}`);
|
|
7249
7249
|
}
|
|
7250
7250
|
/**
|
|
7251
|
-
* Updates an experiment result's status and/or
|
|
7251
|
+
* Updates an experiment result's status, tags, and/or comment
|
|
7252
7252
|
*/
|
|
7253
7253
|
updateDatasetExperimentResult(params) {
|
|
7254
7254
|
const { datasetId, experimentId, resultId, ...body } = params;
|
|
@@ -7268,7 +7268,7 @@ var MastraClient = class extends BaseResource {
|
|
|
7268
7268
|
});
|
|
7269
7269
|
}
|
|
7270
7270
|
/**
|
|
7271
|
-
* Updates the status and/or
|
|
7271
|
+
* Updates the status, tags, and/or comment on an experiment result
|
|
7272
7272
|
*/
|
|
7273
7273
|
updateExperimentResult(params) {
|
|
7274
7274
|
const { datasetId, experimentId, resultId, ...body } = params;
|