@mastra/client-js 1.32.0-alpha.13 → 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 +0 -77
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +2 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -10
- package/dist/index.js.map +1 -1
- package/dist/resources/agent-controller.d.ts +3 -35
- package/dist/resources/agent-controller.d.ts.map +1 -1
- package/dist/route-types.generated.d.ts +0 -14
- package/dist/route-types.generated.d.ts.map +1 -1
- package/dist/types.d.ts +0 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,82 +1,5 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
-
## 1.32.0-alpha.13
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- Added caller-defined dataset item identities for safe retries across all dataset storage adapters. ([#19384](https://github.com/mastra-ai/mastra/pull/19384))
|
|
8
|
-
|
|
9
|
-
Dataset items can now include an `externalId` when calling `addItem` or `addItems`:
|
|
10
|
-
|
|
11
|
-
```ts
|
|
12
|
-
await dataset.addItem({
|
|
13
|
-
externalId: 'source-item-123',
|
|
14
|
-
input: { prompt: 'Hello' },
|
|
15
|
-
});
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Retrying with the same identity and payload returns the existing item. Reusing an identity with different content returns a typed conflict, including during concurrent writes. Updates and deletes preserve the identity, Spanner retries transactions without changing the outcome, and MySQL batch writes now preserve every supported dataset item field.
|
|
19
|
-
|
|
20
|
-
### Patch Changes
|
|
21
|
-
|
|
22
|
-
- Type structured Agent Controller notification message content so Web clients can render notification provenance from live and persisted transcript messages. ([#19446](https://github.com/mastra-ai/mastra/pull/19446))
|
|
23
|
-
|
|
24
|
-
```ts
|
|
25
|
-
if (part.type === 'notification') {
|
|
26
|
-
renderNotification(part.message, part.source);
|
|
27
|
-
}
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
- Updated dependencies [[`a99eae8`](https://github.com/mastra-ai/mastra/commit/a99eae8908e500c1b2d12f9d277be616b98617a5), [`fd13f8e`](https://github.com/mastra-ai/mastra/commit/fd13f8e21990f9904c3eedba3a626bb4a929cdb8), [`f703f87`](https://github.com/mastra-ai/mastra/commit/f703f878de072d51fda557f9c50867d8252bef05), [`0ad646f`](https://github.com/mastra-ai/mastra/commit/0ad646f71a530f2454664299e5e01bfd13fa12e5)]:
|
|
31
|
-
- @mastra/core@1.51.0-alpha.13
|
|
32
|
-
|
|
33
|
-
## 1.32.0-alpha.12
|
|
34
|
-
|
|
35
|
-
### Patch Changes
|
|
36
|
-
|
|
37
|
-
- 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)]:
|
|
38
|
-
- @mastra/core@1.51.0-alpha.12
|
|
39
|
-
|
|
40
|
-
## 1.32.0-alpha.11
|
|
41
|
-
|
|
42
|
-
### Patch Changes
|
|
43
|
-
|
|
44
|
-
- 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)]:
|
|
45
|
-
- @mastra/core@1.51.0-alpha.11
|
|
46
|
-
|
|
47
|
-
## 1.32.0-alpha.10
|
|
48
|
-
|
|
49
|
-
### Patch Changes
|
|
50
|
-
|
|
51
|
-
- 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)]:
|
|
52
|
-
- @mastra/core@1.51.0-alpha.10
|
|
53
|
-
- @mastra/schema-compat@1.3.4-alpha.2
|
|
54
|
-
|
|
55
|
-
## 1.32.0-alpha.9
|
|
56
|
-
|
|
57
|
-
### Patch Changes
|
|
58
|
-
|
|
59
|
-
- Updated dependencies [[`edce8d2`](https://github.com/mastra-ai/mastra/commit/edce8d2769f19e27a05737c627af2d765472a4f8)]:
|
|
60
|
-
- @mastra/core@1.51.0-alpha.9
|
|
61
|
-
|
|
62
|
-
## 1.32.0-alpha.8
|
|
63
|
-
|
|
64
|
-
### Minor Changes
|
|
65
|
-
|
|
66
|
-
- 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))
|
|
67
|
-
|
|
68
|
-
```ts
|
|
69
|
-
await session.sendMessage({
|
|
70
|
-
content: 'What is in this screenshot?',
|
|
71
|
-
files: [{ data: base64Png, mediaType: 'image/png', filename: 'screenshot.png' }],
|
|
72
|
-
});
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Patch Changes
|
|
76
|
-
|
|
77
|
-
- 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)]:
|
|
78
|
-
- @mastra/core@1.51.0-alpha.8
|
|
79
|
-
|
|
80
3
|
## 1.32.0-alpha.7
|
|
81
4
|
|
|
82
5
|
### Minor Changes
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -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.
|
|
6
|
+
version: "1.32.0-alpha.7"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
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
|
-
|
|
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() {
|