@mastra/client-js 1.57.0-alpha.4 → 1.57.0-alpha.5

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/dist/index.js CHANGED
@@ -5340,10 +5340,11 @@ var Observability = class extends BaseResource {
5340
5340
  * Groups and measures the traces selected by a time range and optional trace-query predicate.
5341
5341
  * Check `capabilities.traceAggregate` from `getObservabilityCapabilities()` first; servers without it return 404 or 501.
5342
5342
  */
5343
- aggregateTraces(params) {
5343
+ aggregateTraces(params, options) {
5344
5344
  return this.request("/observability/traces/aggregate", {
5345
5345
  method: "POST",
5346
- body: params
5346
+ body: params,
5347
+ signal: options?.signal
5347
5348
  });
5348
5349
  }
5349
5350
  /**
@@ -7041,7 +7042,7 @@ var AgentControllerSession = class extends BaseResource {
7041
7042
  const abort = new AbortController();
7042
7043
  currentAbort = abort;
7043
7044
  let openTimer;
7044
- const request = this.request(`${this.base()}/stream`, {
7045
+ const request = this.request(`${this.base()}/stream${options.displayState === false ? "?displayState=false" : ""}`, {
7045
7046
  stream: true,
7046
7047
  signal: abort.signal
7047
7048
  });
@@ -8205,8 +8206,8 @@ var MastraClient = class extends BaseResource {
8205
8206
  * Groups and measures the traces selected by a time range and optional trace-query predicate.
8206
8207
  * Check `capabilities.traceAggregate` from `getObservabilityCapabilities()` first; servers without it return 404 or 501.
8207
8208
  */
8208
- aggregateTraces(params) {
8209
- return this.observability.aggregateTraces(params);
8209
+ aggregateTraces(params, options) {
8210
+ return this.observability.aggregateTraces(params, options);
8210
8211
  }
8211
8212
  /**
8212
8213
  * Groups and measures individual completed spans selected by a time range and optional span-query predicate.