@mastra/client-js 0.10.1-alpha.1 → 0.10.1-alpha.3
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 +8 -8
- package/CHANGELOG.md +16 -0
- package/dist/index.cjs +5 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/package.json +2 -2
- package/src/resources/workflow.ts +5 -1
- package/src/types.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/client-js@0.10.1-alpha.
|
|
2
|
+
> @mastra/client-js@0.10.1-alpha.3 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
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
12
|
+
[32mESM[39m [1mdist/index.js [22m[32m43.40 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 891ms
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m43.69 KB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 892ms
|
|
16
16
|
[34mDTS[39m Build start
|
|
17
|
-
[32mDTS[39m ⚡️ Build success in
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m31.
|
|
19
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m31.
|
|
17
|
+
[32mDTS[39m ⚡️ Build success in 14678ms
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m31.64 KB[39m
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m31.64 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 0.10.1-alpha.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 267773e: Show map config on workflow graph
|
|
8
|
+
Highlight borders for conditions too on workflow graph
|
|
9
|
+
Fix watch stream
|
|
10
|
+
|
|
11
|
+
## 0.10.1-alpha.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 6015bdf: Leverage defaultAgentStreamOption, defaultAgentGenerateOption in playground
|
|
16
|
+
- Updated dependencies [6015bdf]
|
|
17
|
+
- @mastra/core@0.10.1-alpha.2
|
|
18
|
+
|
|
3
19
|
## 0.10.1-alpha.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1033,7 +1033,11 @@ var Workflow = class extends BaseResource {
|
|
|
1033
1033
|
throw new Error("Response body is null");
|
|
1034
1034
|
}
|
|
1035
1035
|
for await (const record of this.streamProcessor(response.body)) {
|
|
1036
|
-
|
|
1036
|
+
if (typeof record === "string") {
|
|
1037
|
+
onRecord(JSON.parse(record));
|
|
1038
|
+
} else {
|
|
1039
|
+
onRecord(record);
|
|
1040
|
+
}
|
|
1037
1041
|
}
|
|
1038
1042
|
}
|
|
1039
1043
|
/**
|
package/dist/index.d.cts
CHANGED
|
@@ -43,6 +43,8 @@ interface GetAgentResponse {
|
|
|
43
43
|
workflows: Record<string, GetWorkflowResponse>;
|
|
44
44
|
provider: string;
|
|
45
45
|
modelId: string;
|
|
46
|
+
defaultGenerateOptions: WithoutMethods<AgentGenerateOptions>;
|
|
47
|
+
defaultStreamOptions: WithoutMethods<AgentStreamOptions>;
|
|
46
48
|
}
|
|
47
49
|
type GenerateParams<T extends JSONSchema7 | ZodSchema | undefined = undefined> = {
|
|
48
50
|
messages: string | string[] | CoreMessage[] | AiMessageType[];
|
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,8 @@ interface GetAgentResponse {
|
|
|
43
43
|
workflows: Record<string, GetWorkflowResponse>;
|
|
44
44
|
provider: string;
|
|
45
45
|
modelId: string;
|
|
46
|
+
defaultGenerateOptions: WithoutMethods<AgentGenerateOptions>;
|
|
47
|
+
defaultStreamOptions: WithoutMethods<AgentStreamOptions>;
|
|
46
48
|
}
|
|
47
49
|
type GenerateParams<T extends JSONSchema7 | ZodSchema | undefined = undefined> = {
|
|
48
50
|
messages: string | string[] | CoreMessage[] | AiMessageType[];
|
package/dist/index.js
CHANGED
|
@@ -1027,7 +1027,11 @@ var Workflow = class extends BaseResource {
|
|
|
1027
1027
|
throw new Error("Response body is null");
|
|
1028
1028
|
}
|
|
1029
1029
|
for await (const record of this.streamProcessor(response.body)) {
|
|
1030
|
-
|
|
1030
|
+
if (typeof record === "string") {
|
|
1031
|
+
onRecord(JSON.parse(record));
|
|
1032
|
+
} else {
|
|
1033
|
+
onRecord(record);
|
|
1034
|
+
}
|
|
1031
1035
|
}
|
|
1032
1036
|
}
|
|
1033
1037
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/client-js",
|
|
3
|
-
"version": "0.10.1-alpha.
|
|
3
|
+
"version": "0.10.1-alpha.3",
|
|
4
4
|
"description": "The official TypeScript library for the Mastra Client API",
|
|
5
5
|
"author": "",
|
|
6
6
|
"type": "module",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"typescript": "^5.8.2",
|
|
44
44
|
"vitest": "^3.1.2",
|
|
45
45
|
"@internal/lint": "0.0.6",
|
|
46
|
-
"@mastra/core": "0.10.1-alpha.
|
|
46
|
+
"@mastra/core": "0.10.1-alpha.3"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsup src/index.ts --format esm,cjs --dts --clean --treeshake=smallest --splitting",
|
|
@@ -319,7 +319,11 @@ export class Workflow extends BaseResource {
|
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
for await (const record of this.streamProcessor(response.body)) {
|
|
322
|
-
|
|
322
|
+
if (typeof record === 'string') {
|
|
323
|
+
onRecord(JSON.parse(record));
|
|
324
|
+
} else {
|
|
325
|
+
onRecord(record);
|
|
326
|
+
}
|
|
323
327
|
}
|
|
324
328
|
}
|
|
325
329
|
|
package/src/types.ts
CHANGED
|
@@ -60,6 +60,8 @@ export interface GetAgentResponse {
|
|
|
60
60
|
workflows: Record<string, GetWorkflowResponse>;
|
|
61
61
|
provider: string;
|
|
62
62
|
modelId: string;
|
|
63
|
+
defaultGenerateOptions: WithoutMethods<AgentGenerateOptions>;
|
|
64
|
+
defaultStreamOptions: WithoutMethods<AgentStreamOptions>;
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
export type GenerateParams<T extends JSONSchema7 | ZodSchema | undefined = undefined> = {
|