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

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
@@ -1641,13 +1641,14 @@ var Agent = class extends BaseResource {
1641
1641
  return this.requestSignalRoute(`/agents/${this.agentId}/queue-signal`, params);
1642
1642
  }
1643
1643
  async subscribeToThread(params) {
1644
- const { resourceId, threadId, withInitialHistory } = params;
1644
+ const { resourceId, threadId, withInitialHistory, withRunStatus } = params;
1645
1645
  const requestSubscription = () => this.request(`/agents/${this.agentId}/threads/subscribe`, {
1646
1646
  method: "POST",
1647
1647
  body: {
1648
1648
  resourceId,
1649
1649
  threadId,
1650
- ...withInitialHistory ? { withInitialHistory } : {}
1650
+ ...withInitialHistory ? { withInitialHistory } : {},
1651
+ ...withRunStatus ? { withRunStatus } : {}
1651
1652
  },
1652
1653
  stream: true
1653
1654
  });