@mastra/client-js 1.34.0-alpha.5 → 1.35.0-alpha.0
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,50 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 1.35.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added exact metadata filtering to message history queries across Memory APIs and supported storage providers. ([#19991](https://github.com/mastra-ai/mastra/pull/19991))
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
const messages = await memory.recall({
|
|
11
|
+
threadId: 'thread-1',
|
|
12
|
+
filter: {
|
|
13
|
+
metadata: {
|
|
14
|
+
status: 'done',
|
|
15
|
+
priority: 'high',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Multiple fields use AND semantics. Supported values are strings, finite numbers, booleans, and `null`.
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [[`0dca9d0`](https://github.com/mastra-ai/mastra/commit/0dca9d0b1356024a53b72ea6f040db528b126caa)]:
|
|
26
|
+
- @mastra/core@1.54.0-alpha.0
|
|
27
|
+
|
|
28
|
+
## 1.34.0
|
|
29
|
+
|
|
30
|
+
### Minor Changes
|
|
31
|
+
|
|
32
|
+
- Added `autoPublish` to stored agent updates so callers can activate a newly created version immediately. ([#19794](https://github.com/mastra-ai/mastra/pull/19794))
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
await client.getStoredAgent('agent-id').update({
|
|
36
|
+
instructions: 'Updated instructions',
|
|
37
|
+
autoPublish: true,
|
|
38
|
+
});
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- Improved generated route type formatting. ([#19807](https://github.com/mastra-ai/mastra/pull/19807))
|
|
44
|
+
|
|
45
|
+
- Updated dependencies [[`c8d8a01`](https://github.com/mastra-ai/mastra/commit/c8d8a010ee2efe2b7bf4d07707382c34c87b14e4), [`df6a9ce`](https://github.com/mastra-ai/mastra/commit/df6a9ce87214f7aadb2edfe62f67605fe998a0a4), [`73839cb`](https://github.com/mastra-ai/mastra/commit/73839cb58322679c170627d1015669ede5f619aa), [`371cf60`](https://github.com/mastra-ai/mastra/commit/371cf6075cef88ac6919a08d59a82e485397364a), [`8e4dc79`](https://github.com/mastra-ai/mastra/commit/8e4dc793dcf035ea506f9ce79f56d2d501a4be14), [`2db93cc`](https://github.com/mastra-ai/mastra/commit/2db93ccd0b872e4de7853a93383efe0647901df8), [`094ab61`](https://github.com/mastra-ai/mastra/commit/094ab6129a1a3ecf6eeb86decac17d5faea4e02a), [`fe80944`](https://github.com/mastra-ai/mastra/commit/fe80944f3ef6681fea6eae8200fce387b7bb3c2f), [`263d2ca`](https://github.com/mastra-ai/mastra/commit/263d2cac80ba3b03b9c0f008db6f1f1b9eb0278c), [`75f843d`](https://github.com/mastra-ai/mastra/commit/75f843d09f758223e6eeb321321bdcc5c7e779d0), [`e51e166`](https://github.com/mastra-ai/mastra/commit/e51e166c52e220abc9b64554ce37359dca8544b1)]:
|
|
46
|
+
- @mastra/core@1.53.0
|
|
47
|
+
|
|
3
48
|
## 1.34.0-alpha.5
|
|
4
49
|
|
|
5
50
|
### Patch 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.
|
|
6
|
+
version: "1.35.0-alpha.0"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -154,8 +154,22 @@ const result = await thread.listMessages({
|
|
|
154
154
|
const result = await thread.listMessages({
|
|
155
155
|
orderBy: { field: 'createdAt', direction: 'ASC' },
|
|
156
156
|
})
|
|
157
|
+
|
|
158
|
+
// Get messages with shallow metadata filters
|
|
159
|
+
const result = await thread.listMessages({
|
|
160
|
+
filter: {
|
|
161
|
+
metadata: {
|
|
162
|
+
category: 'billing',
|
|
163
|
+
escalated: true,
|
|
164
|
+
priority: 2,
|
|
165
|
+
archivedAt: null,
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
})
|
|
157
169
|
```
|
|
158
170
|
|
|
171
|
+
Metadata filters match shallow scalar values only: `string`, finite `number`, `boolean`, and `null`. Every key-value pair must match with AND semantics. `null` matches an explicit `null` value, not a missing metadata key. Metadata keys must start with a letter or underscore, may contain only alphanumeric characters and underscores, must be 128 characters or fewer, and can't use reserved prototype keys such as `__proto__`, `constructor`, or `prototype`. Performance depends on the server storage backend, and arbitrary metadata filters may scan candidate messages.
|
|
172
|
+
|
|
159
173
|
### Delete Messages
|
|
160
174
|
|
|
161
175
|
Delete one or more messages from a thread:
|
|
@@ -977,6 +977,9 @@ type Shared_Type_65 = {
|
|
|
977
977
|
endExclusive?: boolean | undefined;
|
|
978
978
|
} | undefined;
|
|
979
979
|
roles?: string[] | undefined;
|
|
980
|
+
metadata?: {
|
|
981
|
+
[key: string]: string | number | boolean | null;
|
|
982
|
+
} | undefined;
|
|
980
983
|
};
|
|
981
984
|
type Shared_Type_66 = {
|
|
982
985
|
config: {
|