@mastra/client-js 1.40.0-alpha.3 → 1.40.0-alpha.4
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 +16 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/agent-controller.d.ts +7 -0
- package/dist/resources/agent-controller.d.ts.map +1 -1
- package/dist/route-types.generated.d.ts +31 -0
- package/dist/route-types.generated.d.ts.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 1.40.0-alpha.4
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added an active-runs listing for agent controllers. It reports every run currently in flight on the controller from in-memory tracking — a cheap read suited to polling activity indicators, with no session created as a side effect. ([#21353](https://github.com/mastra-ai/mastra/pull/21353))
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
const runs = await client.getAgentController('code').listActiveRuns();
|
|
11
|
+
// [{ runId: 'run-1', resourceId: 'workspace-a', threadId: 'thread-1' }]
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`79dd7c2`](https://github.com/mastra-ai/mastra/commit/79dd7c261ee6be1fafedd4651959394db21d2cba), [`b9a28ec`](https://github.com/mastra-ai/mastra/commit/b9a28ecf7acdc0cb7a543d5b660f9fbee301df9a), [`be31796`](https://github.com/mastra-ai/mastra/commit/be3179624ad5f77cff5fa342cd08046bf7605283)]:
|
|
17
|
+
- @mastra/core@1.59.0-alpha.4
|
|
18
|
+
|
|
3
19
|
## 1.40.0-alpha.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
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.40.0-alpha.
|
|
6
|
+
version: "1.40.0-alpha.4"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/dist/index.cjs
CHANGED
|
@@ -6177,6 +6177,10 @@ var AgentController = class extends BaseResource {
|
|
|
6177
6177
|
async listModels() {
|
|
6178
6178
|
return (await this.request(`${this.basePath()}/models`)).models;
|
|
6179
6179
|
}
|
|
6180
|
+
/** List the runs in flight on this controller, across all resources. */
|
|
6181
|
+
async listActiveRuns() {
|
|
6182
|
+
return (await this.request(`${this.basePath()}/active-runs`)).runs;
|
|
6183
|
+
}
|
|
6180
6184
|
/** Get workspace status for this agent controller. */
|
|
6181
6185
|
async workspaceStatus() {
|
|
6182
6186
|
return this.request(`${this.basePath()}/workspace`);
|