@mastra/client-js 0.10.15-alpha.1 → 0.10.15-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 +37 -0
- package/README.md +1 -0
- package/dist/index.cjs +327 -248
- package/dist/index.d.cts +124 -19
- package/dist/index.d.ts +124 -19
- package/dist/index.js +327 -248
- package/package.json +2 -2
- package/src/client.ts +97 -0
- package/src/index.test.ts +294 -6
- package/src/resources/agent.ts +272 -297
- package/src/resources/base.ts +3 -1
- package/src/resources/memory-thread.ts +18 -0
- package/src/resources/network.ts +4 -3
- package/src/resources/workflow.ts +9 -0
- package/src/types.ts +75 -1
- package/src/utils/process-client-tools.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/client-js@0.10.15-alpha.
|
|
2
|
+
> @mastra/client-js@0.10.15-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
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m71.60 KB[39m
|
|
13
|
-
[32mCJS[39m ⚡️ Build success in 2098ms
|
|
14
|
-
[32mESM[39m [1mdist/index.js [22m[32m71.31 KB[39m
|
|
15
|
-
[32mESM[39m ⚡️ Build success in 2105ms
|
|
16
12
|
[34mDTS[39m Build start
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m73.69 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 2366ms
|
|
15
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m74.00 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 2376ms
|
|
17
|
+
[32mDTS[39m ⚡️ Build success in 18213ms
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m46.04 KB[39m
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m46.04 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 0.10.15-alpha.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @mastra/core@0.11.0-alpha.3
|
|
8
|
+
|
|
9
|
+
## 0.10.15-alpha.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 4832752: Do not set content-type header when making POST/PUT requests without a body
|
|
14
|
+
- f248d53: Adding `getMessagesPaginated` to the serve, deployer, and client-js
|
|
15
|
+
- 2affc57: Fix output type of network loop
|
|
16
|
+
- 032cb66: ClientJS
|
|
17
|
+
- 65e3395: Add Scores playground-ui and add scorer hooks
|
|
18
|
+
- 80c2b06: Fix agent chat stop button to cancel stream/generate reqs in the playground
|
|
19
|
+
- 6f6e651: Alias createRun -> createRunAsync to match Mastra Workflow class
|
|
20
|
+
- Updated dependencies [f248d53]
|
|
21
|
+
- Updated dependencies [2affc57]
|
|
22
|
+
- Updated dependencies [66e13e3]
|
|
23
|
+
- Updated dependencies [edd9482]
|
|
24
|
+
- Updated dependencies [18344d7]
|
|
25
|
+
- Updated dependencies [9d372c2]
|
|
26
|
+
- Updated dependencies [40c2525]
|
|
27
|
+
- Updated dependencies [e473f27]
|
|
28
|
+
- Updated dependencies [032cb66]
|
|
29
|
+
- Updated dependencies [703ac71]
|
|
30
|
+
- Updated dependencies [a723d69]
|
|
31
|
+
- Updated dependencies [5889a31]
|
|
32
|
+
- Updated dependencies [65e3395]
|
|
33
|
+
- Updated dependencies [4933192]
|
|
34
|
+
- Updated dependencies [d1c77a4]
|
|
35
|
+
- Updated dependencies [bea9dd1]
|
|
36
|
+
- Updated dependencies [dcd4802]
|
|
37
|
+
- Updated dependencies [7ba91fa]
|
|
38
|
+
- @mastra/core@0.11.0-alpha.2
|
|
39
|
+
|
|
3
40
|
## 0.10.15-alpha.1
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -80,6 +80,7 @@ const client = new MastraClient({
|
|
|
80
80
|
- `getWorkflow(workflowId)`: Get a workflow instance
|
|
81
81
|
- `workflow.details()`: Get workflow details
|
|
82
82
|
- `workflow.createRun()`: Create workflow run
|
|
83
|
+
- `workflow.createRunAsync()`: Create workflow run (alias)
|
|
83
84
|
- `workflow.startAsync(params)`: Execute the workflow and wait for execution results
|
|
84
85
|
- `workflow.resumeAsync(parmas)`: Resume suspended workflow step async
|
|
85
86
|
- `workflow.watch({runId},(record)=>{})`: Watch the step transitions of the workflow run
|