@mastra/client-js 1.11.1-alpha.0 → 1.11.1-alpha.1

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,5 +1,12 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 1.11.1-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`9140989`](https://github.com/mastra-ai/mastra/commit/91409890e83f4f1d9c1b39223f1af91a6a53b549), [`d7c98cf`](https://github.com/mastra-ai/mastra/commit/d7c98cfc9d75baba9ecbf1a8835b5183d0a0aec8), [`acf5fbc`](https://github.com/mastra-ai/mastra/commit/acf5fbcb890dc7ca7167bec386ce5874dfadb997), [`24ca2ae`](https://github.com/mastra-ai/mastra/commit/24ca2ae57538ec189fabb9daee6175ad27035853), [`0762516`](https://github.com/mastra-ai/mastra/commit/07625167e029a8268ea7aaf0402416e6d8832874), [`2de3d36`](https://github.com/mastra-ai/mastra/commit/2de3d36932b7f73ad26bc403f7da26cfe89e903e), [`d3736cb`](https://github.com/mastra-ai/mastra/commit/d3736cb9ce074d2b8e8b00218a01f790fe81a1b4), [`c627366`](https://github.com/mastra-ai/mastra/commit/c6273666f9ef4c8c617c68b7d07fe878a322f85c)]:
8
+ - @mastra/core@1.18.1-alpha.1
9
+
3
10
  ## 1.11.1-alpha.0
4
11
 
5
12
  ### Patch Changes
@@ -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.11.1-alpha.0"
6
+ version: "1.11.1-alpha.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.11.1-alpha.0",
2
+ "version": "1.11.1-alpha.1",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -61,7 +61,7 @@ export const mastra = new Mastra({
61
61
 
62
62
  > **Info:** Visit [MastraJwtAuth](https://mastra.ai/reference/auth/jwt) for all available configuration options.
63
63
 
64
- Inside [Studio](https://mastra.ai/docs/getting-started/studio), go to **Settings** and under **Headers** select the **"Add Header"** button. Enter `Authorization` as the header name and `Bearer <your-jwt>` as the value.
64
+ Inside [Studio](https://mastra.ai/docs/studio/overview), go to **Settings** and under **Headers** select the **"Add Header"** button. Enter `Authorization` as the header name and `Bearer <your-jwt>` as the value.
65
65
 
66
66
  ## Configuring `MastraClient`
67
67
 
@@ -10,9 +10,7 @@ To ensure smooth local development, make sure you have:
10
10
  - TypeScript `v4.7` or higher (if using TypeScript)
11
11
  - Your local Mastra server running (typically on port `4111`)
12
12
 
13
- ## Usage
14
-
15
- The Mastra Client SDK is designed for browser environments and uses the native `fetch` API for making HTTP requests to your Mastra server.
13
+ > **Note:** The Mastra Client SDK is designed for browser environments and uses the native `fetch` API for making HTTP requests to your Mastra server.
16
14
 
17
15
  ## Installation
18
16
 
@@ -55,7 +55,7 @@ The `resourceId` parameter associates the workflow run with a specific resource
55
55
 
56
56
  ### `startAsync()`
57
57
 
58
- Start a workflow run and await the full result:
58
+ Start a workflow run and await its completion, returning the full result as the workflow output.
59
59
 
60
60
  ```typescript
61
61
  const run = await workflow.createRun()
@@ -97,7 +97,7 @@ const result = await run.startAsync({
97
97
 
98
98
  ### `start()`
99
99
 
100
- Start a workflow run without waiting for completion:
100
+ Start a workflow run without waiting for completion (fire-and-forget). Returns immediately with a success message. Use `runById()` on the workflow instance to check results later:
101
101
 
102
102
  ```typescript
103
103
  const run = await workflow.createRun()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "1.11.1-alpha.0",
3
+ "version": "1.11.1-alpha.1",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "type": "module",
@@ -37,7 +37,7 @@
37
37
  "@ai-sdk/ui-utils": "^1.2.11",
38
38
  "@lukeed/uuid": "^2.0.1",
39
39
  "json-schema": "^0.4.0",
40
- "@mastra/core": "1.18.1-alpha.0",
40
+ "@mastra/core": "1.18.1-alpha.1",
41
41
  "@mastra/schema-compat": "1.2.7"
42
42
  },
43
43
  "peerDependencies": {
@@ -54,8 +54,8 @@
54
54
  "vitest": "4.0.18",
55
55
  "zod": "^4.3.6",
56
56
  "@internal/ai-sdk-v4": "0.0.22",
57
- "@internal/ai-sdk-v5": "0.0.22",
58
57
  "@internal/lint": "0.0.75",
58
+ "@internal/ai-sdk-v5": "0.0.22",
59
59
  "@internal/types-builder": "0.0.50"
60
60
  },
61
61
  "engines": {