@mastra/client-js 0.1.20-alpha.6 → 0.1.21-alpha.0
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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +44 -0
- package/dist/index.cjs +4 -2
- package/dist/index.js +4 -2
- package/package.json +5 -5
- package/src/resources/agent.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/client-js@0.1.
|
|
2
|
+
> @mastra/client-js@0.1.21-alpha.0 build /home/runner/work/mastra/mastra/client-sdks/client-js
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts --clean --treeshake=smallest --splitting
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
[34mCLI[39m Cleaning output folder
|
|
10
10
|
[34mESM[39m Build start
|
|
11
11
|
[34mCJS[39m Build start
|
|
12
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m34.
|
|
13
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
-
[32mESM[39m [1mdist/index.js [22m[32m34.
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m34.86 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 1418ms
|
|
14
|
+
[32mESM[39m [1mdist/index.js [22m[32m34.64 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 1423ms
|
|
16
16
|
[34mDTS[39m Build start
|
|
17
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
+
[32mDTS[39m ⚡️ Build success in 13470ms
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m25.12 KB[39m
|
|
19
19
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m25.12 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 0.1.21-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 526c570: expose agent runtimeContext from clientSDK
|
|
8
|
+
- Updated dependencies [526c570]
|
|
9
|
+
- Updated dependencies [b5d2de0]
|
|
10
|
+
- Updated dependencies [644f8ad]
|
|
11
|
+
- @mastra/core@0.9.3-alpha.0
|
|
12
|
+
|
|
13
|
+
## 0.1.20
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 2cf3b8f: dependencies updates:
|
|
18
|
+
- Updated dependency [`zod@^3.24.3` ↗︎](https://www.npmjs.com/package/zod/v/3.24.3) (from `^3.24.2`, in `dependencies`)
|
|
19
|
+
- Updated dependency [`zod-to-json-schema@^3.24.5` ↗︎](https://www.npmjs.com/package/zod-to-json-schema/v/3.24.5) (from `^3.24.3`, in `dependencies`)
|
|
20
|
+
- 4155f47: Add parameters to filter workflow runs
|
|
21
|
+
Add fromDate and toDate to telemetry parameters
|
|
22
|
+
- 254f5c3: Audit, cleanup MastraClient
|
|
23
|
+
- 0097d50: Add serializedStepGraph to vNext workflow
|
|
24
|
+
Return serializedStepGraph from vNext workflow
|
|
25
|
+
Use serializedStepGraph in vNext workflow graph
|
|
26
|
+
- 2429c74: Add get workflow runs api to client-js
|
|
27
|
+
- 2e4f8e9: Agui client integration
|
|
28
|
+
- Updated dependencies [6052aa6]
|
|
29
|
+
- Updated dependencies [967b41c]
|
|
30
|
+
- Updated dependencies [3d2fb5c]
|
|
31
|
+
- Updated dependencies [26738f4]
|
|
32
|
+
- Updated dependencies [4155f47]
|
|
33
|
+
- Updated dependencies [7eeb2bc]
|
|
34
|
+
- Updated dependencies [b804723]
|
|
35
|
+
- Updated dependencies [8607972]
|
|
36
|
+
- Updated dependencies [ccef9f9]
|
|
37
|
+
- Updated dependencies [0097d50]
|
|
38
|
+
- Updated dependencies [7eeb2bc]
|
|
39
|
+
- Updated dependencies [17826a9]
|
|
40
|
+
- Updated dependencies [7d8b7c7]
|
|
41
|
+
- Updated dependencies [fba031f]
|
|
42
|
+
- Updated dependencies [3a5f1e1]
|
|
43
|
+
- Updated dependencies [51e6923]
|
|
44
|
+
- Updated dependencies [8398d89]
|
|
45
|
+
- @mastra/core@0.9.2
|
|
46
|
+
|
|
3
47
|
## 0.1.20-alpha.6
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -301,7 +301,8 @@ var Agent = class extends BaseResource {
|
|
|
301
301
|
const processedParams = {
|
|
302
302
|
...params,
|
|
303
303
|
output: params.output instanceof zod.ZodSchema ? zodToJsonSchema.zodToJsonSchema(params.output) : params.output,
|
|
304
|
-
experimental_output: params.experimental_output instanceof zod.ZodSchema ? zodToJsonSchema.zodToJsonSchema(params.experimental_output) : params.experimental_output
|
|
304
|
+
experimental_output: params.experimental_output instanceof zod.ZodSchema ? zodToJsonSchema.zodToJsonSchema(params.experimental_output) : params.experimental_output,
|
|
305
|
+
runtimeContext: params.runtimeContext ? Object.fromEntries(params.runtimeContext.entries()) : void 0
|
|
305
306
|
};
|
|
306
307
|
return this.request(`/api/agents/${this.agentId}/generate`, {
|
|
307
308
|
method: "POST",
|
|
@@ -317,7 +318,8 @@ var Agent = class extends BaseResource {
|
|
|
317
318
|
const processedParams = {
|
|
318
319
|
...params,
|
|
319
320
|
output: params.output instanceof zod.ZodSchema ? zodToJsonSchema.zodToJsonSchema(params.output) : params.output,
|
|
320
|
-
experimental_output: params.experimental_output instanceof zod.ZodSchema ? zodToJsonSchema.zodToJsonSchema(params.experimental_output) : params.experimental_output
|
|
321
|
+
experimental_output: params.experimental_output instanceof zod.ZodSchema ? zodToJsonSchema.zodToJsonSchema(params.experimental_output) : params.experimental_output,
|
|
322
|
+
runtimeContext: params.runtimeContext ? Object.fromEntries(params.runtimeContext.entries()) : void 0
|
|
321
323
|
};
|
|
322
324
|
const response = await this.request(`/api/agents/${this.agentId}/stream`, {
|
|
323
325
|
method: "POST",
|
package/dist/index.js
CHANGED
|
@@ -299,7 +299,8 @@ var Agent = class extends BaseResource {
|
|
|
299
299
|
const processedParams = {
|
|
300
300
|
...params,
|
|
301
301
|
output: params.output instanceof ZodSchema ? zodToJsonSchema(params.output) : params.output,
|
|
302
|
-
experimental_output: params.experimental_output instanceof ZodSchema ? zodToJsonSchema(params.experimental_output) : params.experimental_output
|
|
302
|
+
experimental_output: params.experimental_output instanceof ZodSchema ? zodToJsonSchema(params.experimental_output) : params.experimental_output,
|
|
303
|
+
runtimeContext: params.runtimeContext ? Object.fromEntries(params.runtimeContext.entries()) : void 0
|
|
303
304
|
};
|
|
304
305
|
return this.request(`/api/agents/${this.agentId}/generate`, {
|
|
305
306
|
method: "POST",
|
|
@@ -315,7 +316,8 @@ var Agent = class extends BaseResource {
|
|
|
315
316
|
const processedParams = {
|
|
316
317
|
...params,
|
|
317
318
|
output: params.output instanceof ZodSchema ? zodToJsonSchema(params.output) : params.output,
|
|
318
|
-
experimental_output: params.experimental_output instanceof ZodSchema ? zodToJsonSchema(params.experimental_output) : params.experimental_output
|
|
319
|
+
experimental_output: params.experimental_output instanceof ZodSchema ? zodToJsonSchema(params.experimental_output) : params.experimental_output,
|
|
320
|
+
runtimeContext: params.runtimeContext ? Object.fromEntries(params.runtimeContext.entries()) : void 0
|
|
319
321
|
};
|
|
320
322
|
const response = await this.request(`/api/agents/${this.agentId}/stream`, {
|
|
321
323
|
method: "POST",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/client-js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21-alpha.0",
|
|
4
4
|
"description": "The official TypeScript library for the Mastra Client API",
|
|
5
5
|
"author": "",
|
|
6
6
|
"type": "module",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@ai-sdk/ui-utils": "^1.1.19",
|
|
27
27
|
"json-schema": "^0.4.0",
|
|
28
28
|
"rxjs": "7.8.1",
|
|
29
|
-
"zod": "^3.24.
|
|
30
|
-
"zod-to-json-schema": "^3.24.
|
|
31
|
-
"@mastra/core": "^0.9.
|
|
29
|
+
"zod": "^3.24.3",
|
|
30
|
+
"zod-to-json-schema": "^3.24.5",
|
|
31
|
+
"@mastra/core": "^0.9.3-alpha.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"zod": "^3.24.2"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"tsup": "^8.4.0",
|
|
43
43
|
"typescript": "^5.8.2",
|
|
44
44
|
"vitest": "^3.1.2",
|
|
45
|
-
"@internal/lint": "0.0.
|
|
45
|
+
"@internal/lint": "0.0.3"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsup src/index.ts --format esm,cjs --dts --clean --treeshake=smallest --splitting",
|
package/src/resources/agent.ts
CHANGED
|
@@ -126,6 +126,7 @@ export class Agent extends BaseResource {
|
|
|
126
126
|
params.experimental_output instanceof ZodSchema
|
|
127
127
|
? zodToJsonSchema(params.experimental_output)
|
|
128
128
|
: params.experimental_output,
|
|
129
|
+
runtimeContext: params.runtimeContext ? Object.fromEntries(params.runtimeContext.entries()) : undefined,
|
|
129
130
|
};
|
|
130
131
|
|
|
131
132
|
return this.request(`/api/agents/${this.agentId}/generate`, {
|
|
@@ -153,6 +154,7 @@ export class Agent extends BaseResource {
|
|
|
153
154
|
params.experimental_output instanceof ZodSchema
|
|
154
155
|
? zodToJsonSchema(params.experimental_output)
|
|
155
156
|
: params.experimental_output,
|
|
157
|
+
runtimeContext: params.runtimeContext ? Object.fromEntries(params.runtimeContext.entries()) : undefined,
|
|
156
158
|
};
|
|
157
159
|
|
|
158
160
|
const response: Response & {
|