@mastra/client-js 1.32.0-alpha.12 → 1.32.0-alpha.7

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,52 +1,5 @@
1
1
  # @mastra/client-js
2
2
 
3
- ## 1.32.0-alpha.12
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [[`aa38805`](https://github.com/mastra-ai/mastra/commit/aa38805b878b827403be785eb90688d7172f5a40), [`2d22570`](https://github.com/mastra-ai/mastra/commit/2d22570c7dfdd02123d0ecc529efb05ccba2d9fc), [`4378341`](https://github.com/mastra-ai/mastra/commit/43783412df5ea3dd35f5b1f6e4851e79c346fc89)]:
8
- - @mastra/core@1.51.0-alpha.12
9
-
10
- ## 1.32.0-alpha.11
11
-
12
- ### Patch Changes
13
-
14
- - Updated dependencies [[`45a8e65`](https://github.com/mastra-ai/mastra/commit/45a8e65e1556d1362cb3f25187023c36de26661d), [`c8ed116`](https://github.com/mastra-ai/mastra/commit/c8ed11699f62bcac70102ab4ec84d80d20541da6), [`33f2b88`](https://github.com/mastra-ai/mastra/commit/33f2b88842c09a567f906fac4cb61cd5277ced59)]:
15
- - @mastra/core@1.51.0-alpha.11
16
-
17
- ## 1.32.0-alpha.10
18
-
19
- ### Patch Changes
20
-
21
- - Updated dependencies [[`4adc391`](https://github.com/mastra-ai/mastra/commit/4adc3911075249c352bb4832d2471922826344de), [`171c3a2`](https://github.com/mastra-ai/mastra/commit/171c3a23f36199ad1354166fb515b22b57f310c2), [`b486abf`](https://github.com/mastra-ai/mastra/commit/b486abfa2a7528c6f527e4015c819ea9fa54aaad)]:
22
- - @mastra/core@1.51.0-alpha.10
23
- - @mastra/schema-compat@1.3.4-alpha.2
24
-
25
- ## 1.32.0-alpha.9
26
-
27
- ### Patch Changes
28
-
29
- - Updated dependencies [[`edce8d2`](https://github.com/mastra-ai/mastra/commit/edce8d2769f19e27a05737c627af2d765472a4f8)]:
30
- - @mastra/core@1.51.0-alpha.9
31
-
32
- ## 1.32.0-alpha.8
33
-
34
- ### Minor Changes
35
-
36
- - Added image attachment support to agent controller chat. You can now send images (and other files) with a message, and the Mastra Code web chat lets you attach, paste, or drag-and-drop images which render inline in the transcript. ([#19368](https://github.com/mastra-ai/mastra/pull/19368))
37
-
38
- ```ts
39
- await session.sendMessage({
40
- content: 'What is in this screenshot?',
41
- files: [{ data: base64Png, mediaType: 'image/png', filename: 'screenshot.png' }],
42
- });
43
- ```
44
-
45
- ### Patch Changes
46
-
47
- - Updated dependencies [[`bd6d240`](https://github.com/mastra-ai/mastra/commit/bd6d2402db93dddaef0721667e7e8a030e7c6e16), [`0111486`](https://github.com/mastra-ai/mastra/commit/01114867612593eef5cfa2fda6a1194dfedda841), [`96a3749`](https://github.com/mastra-ai/mastra/commit/96a37492235f5b8076b3e3177d83ed5a5e44a640), [`3e26c87`](https://github.com/mastra-ai/mastra/commit/3e26c87de0c5bc2583b795ce6ca5889b6b161acb), [`a5008f2`](https://github.com/mastra-ai/mastra/commit/a5008f22ae710ad9402ea9f2547d8c02f74d384b)]:
48
- - @mastra/core@1.51.0-alpha.8
49
-
50
3
  ## 1.32.0-alpha.7
51
4
 
52
5
  ### Minor 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.32.0-alpha.12"
6
+ version: "1.32.0-alpha.7"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.32.0-alpha.12",
2
+ "version": "1.32.0-alpha.7",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {
5
5
  "RequestContext": {
package/dist/index.cjs CHANGED
@@ -6223,17 +6223,9 @@ var AgentControllerSession = class extends BaseResource {
6223
6223
  }
6224
6224
  };
6225
6225
  }
6226
- /**
6227
- * Send a user message. The reply streams over `subscribe()`.
6228
- * Pass a structured message to attach files (e.g. pasted images) as base64-encoded data:
6229
- * `sendMessage({ content: 'What is in this image?', files })`.
6230
- */
6226
+ /** Send a user message. The reply streams over `subscribe()`. */
6231
6227
  async sendMessage(message) {
6232
- const { content, files } = typeof message === "string" ? { content: message, files: void 0 } : message;
6233
- await this.request(this.url(`${this.base()}/messages`), {
6234
- method: "POST",
6235
- body: { message: content, ...files?.length ? { files } : {} }
6236
- });
6228
+ await this.request(this.url(`${this.base()}/messages`), { method: "POST", body: { message } });
6237
6229
  }
6238
6230
  /** Abort the in-flight run for this session. */
6239
6231
  async abort() {