@mastra/client-js 0.1.18-alpha.7 → 0.1.18-alpha.8
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/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +14 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +2 -2
- package/src/client.ts +0 -9
- package/src/resources/memory-thread.ts +1 -8
- package/src/types.ts +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/client-js@0.1.18-alpha.
|
|
2
|
+
> @mastra/client-js@0.1.18-alpha.8 build /home/runner/work/mastra/mastra/client-sdks/client-js
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts --clean --treeshake=smallest --splitting
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
[34mESM[39m Build start
|
|
11
11
|
[34mCJS[39m Build start
|
|
12
12
|
[32mCJS[39m [1mdist/index.cjs [22m[32m21.79 KB[39m
|
|
13
|
-
[32mCJS[39m ⚡️ Build success in
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 1051ms
|
|
14
14
|
[32mESM[39m [1mdist/index.js [22m[32m21.61 KB[39m
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 1054ms
|
|
16
16
|
[34mDTS[39m Build start
|
|
17
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
+
[32mDTS[39m ⚡️ Build success in 11762ms
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m19.77 KB[39m
|
|
19
19
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m19.77 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 0.1.18-alpha.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2538066: Fix memory thread creation from client SDK
|
|
8
|
+
- Updated dependencies [000a6d4]
|
|
9
|
+
- Updated dependencies [ed2f549]
|
|
10
|
+
- Updated dependencies [c0f22b4]
|
|
11
|
+
- Updated dependencies [0a033fa]
|
|
12
|
+
- Updated dependencies [9c26508]
|
|
13
|
+
- Updated dependencies [0f4eae3]
|
|
14
|
+
- Updated dependencies [16a8648]
|
|
15
|
+
- @mastra/core@0.9.0-alpha.8
|
|
16
|
+
|
|
3
17
|
## 0.1.18-alpha.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.d.cts
CHANGED
|
@@ -97,7 +97,7 @@ type SaveMessageToMemoryResponse = MessageType[];
|
|
|
97
97
|
interface CreateMemoryThreadParams {
|
|
98
98
|
title: string;
|
|
99
99
|
metadata: Record<string, any>;
|
|
100
|
-
|
|
100
|
+
resourceId: string;
|
|
101
101
|
threadId: string;
|
|
102
102
|
agentId: string;
|
|
103
103
|
}
|
|
@@ -110,7 +110,7 @@ type GetMemoryThreadResponse = StorageThreadType[];
|
|
|
110
110
|
interface UpdateMemoryThreadParams {
|
|
111
111
|
title: string;
|
|
112
112
|
metadata: Record<string, any>;
|
|
113
|
-
|
|
113
|
+
resourceId: string;
|
|
114
114
|
}
|
|
115
115
|
interface GetMemoryThreadMessagesResponse {
|
|
116
116
|
messages: CoreMessage[];
|
package/dist/index.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ type SaveMessageToMemoryResponse = MessageType[];
|
|
|
97
97
|
interface CreateMemoryThreadParams {
|
|
98
98
|
title: string;
|
|
99
99
|
metadata: Record<string, any>;
|
|
100
|
-
|
|
100
|
+
resourceId: string;
|
|
101
101
|
threadId: string;
|
|
102
102
|
agentId: string;
|
|
103
103
|
}
|
|
@@ -110,7 +110,7 @@ type GetMemoryThreadResponse = StorageThreadType[];
|
|
|
110
110
|
interface UpdateMemoryThreadParams {
|
|
111
111
|
title: string;
|
|
112
112
|
metadata: Record<string, any>;
|
|
113
|
-
|
|
113
|
+
resourceId: string;
|
|
114
114
|
}
|
|
115
115
|
interface GetMemoryThreadMessagesResponse {
|
|
116
116
|
messages: CoreMessage[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/client-js",
|
|
3
|
-
"version": "0.1.18-alpha.
|
|
3
|
+
"version": "0.1.18-alpha.8",
|
|
4
4
|
"description": "The official TypeScript library for the Mastra Client API",
|
|
5
5
|
"author": "",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"json-schema": "^0.4.0",
|
|
27
27
|
"zod": "^3.24.2",
|
|
28
28
|
"zod-to-json-schema": "^3.24.3",
|
|
29
|
-
"@mastra/core": "^0.9.0-alpha.
|
|
29
|
+
"@mastra/core": "^0.9.0-alpha.8"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@babel/preset-env": "^7.26.9",
|
package/src/client.ts
CHANGED
|
@@ -14,7 +14,6 @@ import type {
|
|
|
14
14
|
GetTelemetryResponse,
|
|
15
15
|
GetToolResponse,
|
|
16
16
|
GetWorkflowResponse,
|
|
17
|
-
RequestOptions,
|
|
18
17
|
SaveMessageToMemoryParams,
|
|
19
18
|
SaveMessageToMemoryResponse,
|
|
20
19
|
} from './types';
|
|
@@ -166,14 +165,6 @@ export class MastraClient extends BaseResource {
|
|
|
166
165
|
const { name, scope, page, perPage, attribute } = params || {};
|
|
167
166
|
const _attribute = attribute ? Object.entries(attribute).map(([key, value]) => `${key}:${value}`) : [];
|
|
168
167
|
|
|
169
|
-
const queryObj = {
|
|
170
|
-
...(name ? { name } : {}),
|
|
171
|
-
...(scope ? { scope } : {}),
|
|
172
|
-
...(page ? { page: String(page) } : {}),
|
|
173
|
-
...(perPage ? { perPage: String(perPage) } : {}),
|
|
174
|
-
...(_attribute?.length ? { attribute: _attribute } : {}),
|
|
175
|
-
} as const;
|
|
176
|
-
|
|
177
168
|
const searchParams = new URLSearchParams();
|
|
178
169
|
if (name) {
|
|
179
170
|
searchParams.set('name', name);
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import type { StorageThreadType } from '@mastra/core';
|
|
2
2
|
|
|
3
|
-
import type {
|
|
4
|
-
CreateMemoryThreadParams,
|
|
5
|
-
GetMemoryThreadMessagesResponse,
|
|
6
|
-
GetMemoryThreadResponse,
|
|
7
|
-
ClientOptions,
|
|
8
|
-
SaveMessageToMemoryParams,
|
|
9
|
-
UpdateMemoryThreadParams,
|
|
10
|
-
} from '../types';
|
|
3
|
+
import type { GetMemoryThreadMessagesResponse, ClientOptions, UpdateMemoryThreadParams } from '../types';
|
|
11
4
|
|
|
12
5
|
import { BaseResource } from './base';
|
|
13
6
|
|
package/src/types.ts
CHANGED
|
@@ -118,7 +118,7 @@ export type SaveMessageToMemoryResponse = MessageType[];
|
|
|
118
118
|
export interface CreateMemoryThreadParams {
|
|
119
119
|
title: string;
|
|
120
120
|
metadata: Record<string, any>;
|
|
121
|
-
|
|
121
|
+
resourceId: string;
|
|
122
122
|
threadId: string;
|
|
123
123
|
agentId: string;
|
|
124
124
|
}
|
|
@@ -135,7 +135,7 @@ export type GetMemoryThreadResponse = StorageThreadType[];
|
|
|
135
135
|
export interface UpdateMemoryThreadParams {
|
|
136
136
|
title: string;
|
|
137
137
|
metadata: Record<string, any>;
|
|
138
|
-
|
|
138
|
+
resourceId: string;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
export interface GetMemoryThreadMessagesResponse {
|