@mastra/client-js 0.0.0-llamaindex-extract-20250416163822 → 0.0.0-llamaindex-switch-core-20250424001624
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 +89 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +5 -2
- package/src/client.ts +0 -9
- package/src/resources/memory-thread.ts +1 -8
- package/src/types.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,101 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
-
## 0.0.0-llamaindex-
|
|
3
|
+
## 0.0.0-llamaindex-switch-core-20250424001624
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- Updated dependencies [81fb7f6]
|
|
8
|
+
- Updated dependencies [7d1892c]
|
|
9
|
+
- Updated dependencies [a90a082]
|
|
10
|
+
- Updated dependencies [35955b0]
|
|
11
|
+
- Updated dependencies [2d4001d]
|
|
12
|
+
- @mastra/core@0.0.0-llamaindex-switch-core-20250424001624
|
|
13
|
+
|
|
14
|
+
## 0.1.19-alpha.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [81fb7f6]
|
|
19
|
+
- @mastra/core@0.9.1-alpha.0
|
|
20
|
+
|
|
21
|
+
## 0.1.18
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- 2538066: Fix memory thread creation from client SDK
|
|
26
|
+
- Updated dependencies [000a6d4]
|
|
27
|
+
- Updated dependencies [08bb78e]
|
|
28
|
+
- Updated dependencies [ed2f549]
|
|
29
|
+
- Updated dependencies [7e92011]
|
|
7
30
|
- Updated dependencies [9ee4293]
|
|
8
31
|
- Updated dependencies [03f3cd0]
|
|
32
|
+
- Updated dependencies [c0f22b4]
|
|
33
|
+
- Updated dependencies [71d9444]
|
|
34
|
+
- Updated dependencies [157c741]
|
|
9
35
|
- Updated dependencies [8a8a73b]
|
|
36
|
+
- Updated dependencies [0a033fa]
|
|
37
|
+
- Updated dependencies [fe3ae4d]
|
|
38
|
+
- Updated dependencies [9c26508]
|
|
39
|
+
- Updated dependencies [0f4eae3]
|
|
40
|
+
- Updated dependencies [16a8648]
|
|
10
41
|
- Updated dependencies [6f92295]
|
|
11
|
-
- @mastra/core@0.
|
|
42
|
+
- @mastra/core@0.9.0
|
|
43
|
+
|
|
44
|
+
## 0.1.18-alpha.8
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- 2538066: Fix memory thread creation from client SDK
|
|
49
|
+
- Updated dependencies [000a6d4]
|
|
50
|
+
- Updated dependencies [ed2f549]
|
|
51
|
+
- Updated dependencies [c0f22b4]
|
|
52
|
+
- Updated dependencies [0a033fa]
|
|
53
|
+
- Updated dependencies [9c26508]
|
|
54
|
+
- Updated dependencies [0f4eae3]
|
|
55
|
+
- Updated dependencies [16a8648]
|
|
56
|
+
- @mastra/core@0.9.0-alpha.8
|
|
57
|
+
|
|
58
|
+
## 0.1.18-alpha.7
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- Updated dependencies [71d9444]
|
|
63
|
+
- @mastra/core@0.9.0-alpha.7
|
|
64
|
+
|
|
65
|
+
## 0.1.18-alpha.6
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- Updated dependencies [157c741]
|
|
70
|
+
- @mastra/core@0.9.0-alpha.6
|
|
71
|
+
|
|
72
|
+
## 0.1.18-alpha.5
|
|
73
|
+
|
|
74
|
+
### Patch Changes
|
|
75
|
+
|
|
76
|
+
- Updated dependencies [08bb78e]
|
|
77
|
+
- @mastra/core@0.9.0-alpha.5
|
|
78
|
+
|
|
79
|
+
## 0.1.18-alpha.4
|
|
80
|
+
|
|
81
|
+
### Patch Changes
|
|
82
|
+
|
|
83
|
+
- Updated dependencies [7e92011]
|
|
84
|
+
- @mastra/core@0.9.0-alpha.4
|
|
85
|
+
|
|
86
|
+
## 0.1.18-alpha.3
|
|
87
|
+
|
|
88
|
+
### Patch Changes
|
|
89
|
+
|
|
90
|
+
- Updated dependencies [fe3ae4d]
|
|
91
|
+
- @mastra/core@0.9.0-alpha.3
|
|
92
|
+
|
|
93
|
+
## 0.1.18-alpha.2
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- Updated dependencies [9ee4293]
|
|
98
|
+
- @mastra/core@0.8.4-alpha.2
|
|
12
99
|
|
|
13
100
|
## 0.1.18-alpha.1
|
|
14
101
|
|
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.0.0-llamaindex-
|
|
3
|
+
"version": "0.0.0-llamaindex-switch-core-20250424001624",
|
|
4
4
|
"description": "The official TypeScript library for the Mastra Client API",
|
|
5
5
|
"author": "",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,10 @@
|
|
|
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.0.0-llamaindex-
|
|
29
|
+
"@mastra/core": "0.0.0-llamaindex-switch-core-20250424001624"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"zod": "^3.24.2"
|
|
30
33
|
},
|
|
31
34
|
"devDependencies": {
|
|
32
35
|
"@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 {
|