@mastra/client-js 0.0.0-workflow-deno-20250616132510 → 0.0.0-working-memory-per-user-20250620163010

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 CHANGED
@@ -1,6 +1,26 @@
1
1
  # @mastra/client-js
2
2
 
3
- ## 0.0.0-workflow-deno-20250616132510
3
+ ## 0.0.0-working-memory-per-user-20250620163010
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [df82a7b]
8
+ - Updated dependencies [d8f2d19]
9
+ - Updated dependencies [9d52b17]
10
+ - Updated dependencies [2097952]
11
+ - Updated dependencies [8ba1b51]
12
+ - @mastra/core@0.0.0-working-memory-per-user-20250620163010
13
+
14
+ ## 0.10.6-alpha.0
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [d8f2d19]
19
+ - Updated dependencies [9d52b17]
20
+ - Updated dependencies [8ba1b51]
21
+ - @mastra/core@0.10.7-alpha.0
22
+
23
+ ## 0.10.5
4
24
 
5
25
  ### Patch Changes
6
26
 
@@ -8,16 +28,66 @@
8
28
  - Updated dependency [`@ai-sdk/ui-utils@^1.2.11` ↗︎](https://www.npmjs.com/package/@ai-sdk/ui-utils/v/1.2.11) (from `^1.1.19`, in `dependencies`)
9
29
  - Updated dependency [`zod@^3.25.57` ↗︎](https://www.npmjs.com/package/zod/v/3.25.57) (from `^3.25.56`, in `dependencies`)
10
30
  - ee9af57: Add api for polling run execution result and get run by id
11
- - b0c32de: Make createRun async to support storage
31
+ - 3270d9d: Fix runtime context being undefined
12
32
  - Updated dependencies [63f6b7d]
33
+ - Updated dependencies [12a95fc]
34
+ - Updated dependencies [4b0f8a6]
35
+ - Updated dependencies [51264a5]
36
+ - Updated dependencies [8e6f677]
37
+ - Updated dependencies [d70c420]
13
38
  - Updated dependencies [ee9af57]
14
39
  - Updated dependencies [36f1c36]
40
+ - Updated dependencies [2a16996]
15
41
  - Updated dependencies [10d352e]
16
- - Updated dependencies [b0c32de]
42
+ - Updated dependencies [9589624]
17
43
  - Updated dependencies [53d3c37]
44
+ - Updated dependencies [751c894]
45
+ - Updated dependencies [577ce3a]
46
+ - Updated dependencies [9260b3a]
47
+ - @mastra/core@0.10.6
48
+
49
+ ## 0.10.5-alpha.5
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [12a95fc]
54
+ - Updated dependencies [51264a5]
55
+ - Updated dependencies [8e6f677]
56
+ - @mastra/core@0.10.6-alpha.5
57
+
58
+ ## 0.10.5-alpha.4
59
+
60
+ ### Patch Changes
61
+
62
+ - Updated dependencies [9589624]
63
+ - @mastra/core@0.10.6-alpha.4
64
+
65
+ ## 0.10.5-alpha.3
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [d70c420]
70
+ - Updated dependencies [2a16996]
71
+ - @mastra/core@0.10.6-alpha.3
72
+
73
+ ## 0.10.5-alpha.2
74
+
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies [4b0f8a6]
78
+ - @mastra/core@0.10.6-alpha.2
79
+
80
+ ## 0.10.5-alpha.1
81
+
82
+ ### Patch Changes
83
+
84
+ - ee9af57: Add api for polling run execution result and get run by id
85
+ - 3270d9d: Fix runtime context being undefined
86
+ - Updated dependencies [ee9af57]
87
+ - Updated dependencies [751c894]
18
88
  - Updated dependencies [577ce3a]
19
89
  - Updated dependencies [9260b3a]
20
- - @mastra/core@0.0.0-workflow-deno-20250616132510
90
+ - @mastra/core@0.10.6-alpha.1
21
91
 
22
92
  ## 0.10.5-alpha.0
23
93
 
package/README.md CHANGED
@@ -11,7 +11,7 @@ npm install @mastra/client-js
11
11
  ## Quick Start
12
12
 
13
13
  ```typescript
14
- import { MastraClient } from '@mastra/client';
14
+ import { MastraClient } from '@mastra/client-js';
15
15
 
16
16
  // Initialize the client
17
17
  const client = new MastraClient({
package/dist/index.cjs CHANGED
@@ -1012,7 +1012,7 @@ var Workflow = class extends BaseResource {
1012
1012
  if (!!params?.runId) {
1013
1013
  searchParams.set("runId", params.runId);
1014
1014
  }
1015
- const runtimeContext = params.runtimeContext ? Object.fromEntries(params.runtimeContext.entries()) : void 0;
1015
+ const runtimeContext = parseClientRuntimeContext(params.runtimeContext);
1016
1016
  const response = await this.request(
1017
1017
  `/api/workflows/${this.workflowId}/stream?${searchParams.toString()}`,
1018
1018
  {
package/dist/index.js CHANGED
@@ -1006,7 +1006,7 @@ var Workflow = class extends BaseResource {
1006
1006
  if (!!params?.runId) {
1007
1007
  searchParams.set("runId", params.runId);
1008
1008
  }
1009
- const runtimeContext = params.runtimeContext ? Object.fromEntries(params.runtimeContext.entries()) : void 0;
1009
+ const runtimeContext = parseClientRuntimeContext(params.runtimeContext);
1010
1010
  const response = await this.request(
1011
1011
  `/api/workflows/${this.workflowId}/stream?${searchParams.toString()}`,
1012
1012
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "0.0.0-workflow-deno-20250616132510",
3
+ "version": "0.0.0-working-memory-per-user-20250620163010",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "type": "module",
@@ -33,7 +33,7 @@
33
33
  "rxjs": "7.8.1",
34
34
  "zod": "^3.25.57",
35
35
  "zod-to-json-schema": "^3.24.5",
36
- "@mastra/core": "0.0.0-workflow-deno-20250616132510"
36
+ "@mastra/core": "0.0.0-working-memory-per-user-20250620163010"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "zod": "^3.0.0"
@@ -47,7 +47,7 @@
47
47
  "tsup": "^8.5.0",
48
48
  "typescript": "^5.8.3",
49
49
  "vitest": "^3.2.3",
50
- "@internal/lint": "0.0.0-workflow-deno-20250616132510"
50
+ "@internal/lint": "0.0.0-working-memory-per-user-20250620163010"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "tsup src/index.ts --format esm,cjs --dts --clean --treeshake=smallest --splitting",
package/src/example.ts CHANGED
@@ -45,7 +45,7 @@ import { MastraClient } from './client';
45
45
  // const workflowId = 'myWorkflow';
46
46
  // const workflow = client.getWorkflow(workflowId);
47
47
 
48
- // const { runId } = await workflow.createRun();
48
+ // const { runId } = await workflow.createRun();
49
49
 
50
50
  // workflow.watch({ runId }, record => {
51
51
  // console.log(new Date().toTimeString(), record);
@@ -248,7 +248,7 @@ export class Workflow extends BaseResource {
248
248
  searchParams.set('runId', params.runId);
249
249
  }
250
250
 
251
- const runtimeContext = params.runtimeContext ? Object.fromEntries(params.runtimeContext.entries()) : undefined;
251
+ const runtimeContext = parseClientRuntimeContext(params.runtimeContext);
252
252
  const response: Response = await this.request(
253
253
  `/api/workflows/${this.workflowId}/stream?${searchParams.toString()}`,
254
254
  {
@@ -1,19 +0,0 @@
1
-
2
- > @mastra/client-js@0.10.5-alpha.0 build /home/runner/work/mastra/mastra/client-sdks/client-js
3
- > tsup src/index.ts --format esm,cjs --dts --clean --treeshake=smallest --splitting
4
-
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.0
8
- CLI Target: es2022
9
- CLI Cleaning output folder
10
- ESM Build start
11
- CJS Build start
12
- CJS dist/index.cjs 47.27 KB
13
- CJS ⚡️ Build success in 1634ms
14
- ESM dist/index.js 46.98 KB
15
- ESM ⚡️ Build success in 1644ms
16
- DTS Build start
17
- DTS ⚡️ Build success in 12991ms
18
- DTS dist/index.d.ts 33.64 KB
19
- DTS dist/index.d.cts 33.64 KB