@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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-signals-thread-streams.md +34 -3
- package/dist/docs/references/reference-client-js-agents.md +2 -0
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/resources/agent.d.ts +4 -2
- package/dist/resources/agent.d.ts.map +1 -1
- package/dist/route-types.generated.d.ts +2 -0
- package/dist/route-types.generated.d.ts.map +1 -1
- package/dist/types.d.ts +6 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
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
|
});
|