@mastra/mssql 0.0.0-fix-message-list-merge-20250718043058 → 0.0.0-fix-tool-call-history-20250730195323
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 +116 -3
- package/dist/_tsup-dts-rollup.d.cts +38 -0
- package/dist/_tsup-dts-rollup.d.ts +38 -0
- package/dist/index.cjs +70 -1
- package/dist/index.js +70 -1
- package/docker-compose.yaml +1 -1
- package/package.json +6 -6
- package/src/storage/index.test.ts +2211 -2222
- package/src/storage/index.ts +92 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,128 @@
|
|
|
1
1
|
# Changelog for mastra-mssql
|
|
2
2
|
|
|
3
|
-
## 0.0.0-fix-
|
|
3
|
+
## 0.0.0-fix-tool-call-history-20250730195323
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- Updated dependencies [f953f00]
|
|
8
|
+
- @mastra/core@0.0.0-fix-tool-call-history-20250730195323
|
|
9
|
+
|
|
10
|
+
## 0.2.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 4230a13: dependencies updates:
|
|
15
|
+
- Updated dependency [`mssql@^10.0.4` ↗︎](https://www.npmjs.com/package/mssql/v/10.0.4) (from `^10.0.0`, in `dependencies`)
|
|
16
|
+
- f42c4c2: update peer deps for packages to latest core range
|
|
17
|
+
- Updated dependencies [510e2c8]
|
|
18
|
+
- Updated dependencies [2f72fb2]
|
|
19
|
+
- Updated dependencies [27cc97a]
|
|
20
|
+
- Updated dependencies [3f89307]
|
|
21
|
+
- Updated dependencies [9eda7d4]
|
|
22
|
+
- Updated dependencies [9d49408]
|
|
23
|
+
- Updated dependencies [41daa63]
|
|
24
|
+
- Updated dependencies [ad0a58b]
|
|
25
|
+
- Updated dependencies [254a36b]
|
|
26
|
+
- Updated dependencies [2ecf658]
|
|
27
|
+
- Updated dependencies [7a7754f]
|
|
28
|
+
- Updated dependencies [fc92d80]
|
|
29
|
+
- Updated dependencies [e0f73c6]
|
|
30
|
+
- Updated dependencies [0b89602]
|
|
31
|
+
- Updated dependencies [4d37822]
|
|
32
|
+
- Updated dependencies [23a6a7c]
|
|
33
|
+
- Updated dependencies [cda801d]
|
|
34
|
+
- Updated dependencies [a77c823]
|
|
35
|
+
- Updated dependencies [ff9c125]
|
|
36
|
+
- Updated dependencies [09bca64]
|
|
37
|
+
- Updated dependencies [b8efbb9]
|
|
38
|
+
- Updated dependencies [71466e7]
|
|
39
|
+
- Updated dependencies [0c99fbe]
|
|
40
|
+
- @mastra/core@0.12.0
|
|
41
|
+
|
|
42
|
+
## 0.2.3-alpha.1
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- f42c4c2: update peer deps for packages to latest core range
|
|
47
|
+
- @mastra/core@0.12.0-alpha.5
|
|
48
|
+
|
|
49
|
+
## 0.2.3-alpha.0
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- 4230a13: dependencies updates:
|
|
54
|
+
- Updated dependency [`mssql@^10.0.4` ↗︎](https://www.npmjs.com/package/mssql/v/10.0.4) (from `^10.0.0`, in `dependencies`)
|
|
55
|
+
- Updated dependencies [27cc97a]
|
|
56
|
+
- Updated dependencies [41daa63]
|
|
57
|
+
- Updated dependencies [254a36b]
|
|
58
|
+
- Updated dependencies [0b89602]
|
|
59
|
+
- Updated dependencies [4d37822]
|
|
60
|
+
- Updated dependencies [ff9c125]
|
|
61
|
+
- Updated dependencies [b8efbb9]
|
|
62
|
+
- Updated dependencies [71466e7]
|
|
63
|
+
- Updated dependencies [0c99fbe]
|
|
64
|
+
- @mastra/core@0.12.0-alpha.2
|
|
65
|
+
|
|
66
|
+
## 0.2.2
|
|
67
|
+
|
|
68
|
+
### Patch Changes
|
|
69
|
+
|
|
70
|
+
- ce088f5: Update all peerdeps to latest core
|
|
71
|
+
- @mastra/core@0.11.1
|
|
72
|
+
|
|
73
|
+
## 0.2.1
|
|
74
|
+
|
|
75
|
+
### Patch Changes
|
|
76
|
+
|
|
77
|
+
- 7ba91fa: Throw mastra errors methods not implemented yet
|
|
7
78
|
- 03745fa: mssql provider
|
|
79
|
+
- Updated dependencies [f248d53]
|
|
80
|
+
- Updated dependencies [2affc57]
|
|
81
|
+
- Updated dependencies [66e13e3]
|
|
82
|
+
- Updated dependencies [edd9482]
|
|
83
|
+
- Updated dependencies [18344d7]
|
|
84
|
+
- Updated dependencies [9d372c2]
|
|
85
|
+
- Updated dependencies [40c2525]
|
|
86
|
+
- Updated dependencies [e473f27]
|
|
87
|
+
- Updated dependencies [032cb66]
|
|
88
|
+
- Updated dependencies [703ac71]
|
|
89
|
+
- Updated dependencies [a723d69]
|
|
8
90
|
- Updated dependencies [7827943]
|
|
91
|
+
- Updated dependencies [5889a31]
|
|
9
92
|
- Updated dependencies [bf1e7e7]
|
|
10
|
-
- Updated dependencies [
|
|
93
|
+
- Updated dependencies [65e3395]
|
|
94
|
+
- Updated dependencies [4933192]
|
|
95
|
+
- Updated dependencies [d1c77a4]
|
|
96
|
+
- Updated dependencies [bea9dd1]
|
|
97
|
+
- Updated dependencies [dcd4802]
|
|
11
98
|
- Updated dependencies [cbddd18]
|
|
12
|
-
|
|
99
|
+
- Updated dependencies [7ba91fa]
|
|
100
|
+
- @mastra/core@0.11.0
|
|
101
|
+
|
|
102
|
+
## 0.2.1-alpha.1
|
|
103
|
+
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- 7ba91fa: Throw mastra errors methods not implemented yet
|
|
107
|
+
- Updated dependencies [f248d53]
|
|
108
|
+
- Updated dependencies [2affc57]
|
|
109
|
+
- Updated dependencies [66e13e3]
|
|
110
|
+
- Updated dependencies [edd9482]
|
|
111
|
+
- Updated dependencies [18344d7]
|
|
112
|
+
- Updated dependencies [9d372c2]
|
|
113
|
+
- Updated dependencies [40c2525]
|
|
114
|
+
- Updated dependencies [e473f27]
|
|
115
|
+
- Updated dependencies [032cb66]
|
|
116
|
+
- Updated dependencies [703ac71]
|
|
117
|
+
- Updated dependencies [a723d69]
|
|
118
|
+
- Updated dependencies [5889a31]
|
|
119
|
+
- Updated dependencies [65e3395]
|
|
120
|
+
- Updated dependencies [4933192]
|
|
121
|
+
- Updated dependencies [d1c77a4]
|
|
122
|
+
- Updated dependencies [bea9dd1]
|
|
123
|
+
- Updated dependencies [dcd4802]
|
|
124
|
+
- Updated dependencies [7ba91fa]
|
|
125
|
+
- @mastra/core@0.11.0-alpha.2
|
|
13
126
|
|
|
14
127
|
## 0.2.1-alpha.0
|
|
15
128
|
|
|
@@ -5,9 +5,11 @@ import type { MastraMessageV2 } from '@mastra/core/agent';
|
|
|
5
5
|
import { MastraStorage } from '@mastra/core/storage';
|
|
6
6
|
import type { PaginationArgs } from '@mastra/core/storage';
|
|
7
7
|
import type { PaginationInfo } from '@mastra/core/storage';
|
|
8
|
+
import type { ScoreRowData } from '@mastra/core/scores';
|
|
8
9
|
import sql from 'mssql';
|
|
9
10
|
import type { StorageColumn } from '@mastra/core/storage';
|
|
10
11
|
import type { StorageGetMessagesArg } from '@mastra/core/storage';
|
|
12
|
+
import type { StoragePagination } from '@mastra/core/storage';
|
|
11
13
|
import type { StorageResourceType } from '@mastra/core/storage';
|
|
12
14
|
import type { StorageThreadType } from '@mastra/core/memory';
|
|
13
15
|
import type { TABLE_NAMES } from '@mastra/core/storage';
|
|
@@ -52,6 +54,9 @@ declare class MSSQLStore extends MastraStorage {
|
|
|
52
54
|
get supports(): {
|
|
53
55
|
selectByIncludeResourceScope: boolean;
|
|
54
56
|
resourceWorkingMemory: boolean;
|
|
57
|
+
hasColumn: boolean;
|
|
58
|
+
createTable: boolean;
|
|
59
|
+
deleteMessages: boolean;
|
|
55
60
|
};
|
|
56
61
|
private getTableName;
|
|
57
62
|
private getSchemaName;
|
|
@@ -206,6 +211,39 @@ declare class MSSQLStore extends MastraStorage {
|
|
|
206
211
|
getResourceById({ resourceId }: {
|
|
207
212
|
resourceId: string;
|
|
208
213
|
}): Promise<StorageResourceType | null>;
|
|
214
|
+
getScoreById({ id }: {
|
|
215
|
+
id: string;
|
|
216
|
+
}): Promise<ScoreRowData | null>;
|
|
217
|
+
saveScore(_score: Omit<ScoreRowData, 'id' | 'createdAt' | 'updatedAt'>): Promise<{
|
|
218
|
+
score: ScoreRowData;
|
|
219
|
+
}>;
|
|
220
|
+
getScoresByScorerId({ scorerId, pagination: _pagination, entityId, entityType, }: {
|
|
221
|
+
scorerId: string;
|
|
222
|
+
pagination: StoragePagination;
|
|
223
|
+
entityId?: string;
|
|
224
|
+
entityType?: string;
|
|
225
|
+
}): Promise<{
|
|
226
|
+
pagination: PaginationInfo;
|
|
227
|
+
scores: ScoreRowData[];
|
|
228
|
+
}>;
|
|
229
|
+
getScoresByRunId({ runId, pagination: _pagination, }: {
|
|
230
|
+
runId: string;
|
|
231
|
+
pagination: StoragePagination;
|
|
232
|
+
}): Promise<{
|
|
233
|
+
pagination: PaginationInfo;
|
|
234
|
+
scores: ScoreRowData[];
|
|
235
|
+
}>;
|
|
236
|
+
getScoresByEntityId({ entityId, entityType, pagination: _pagination, }: {
|
|
237
|
+
pagination: StoragePagination;
|
|
238
|
+
entityId: string;
|
|
239
|
+
entityType: string;
|
|
240
|
+
}): Promise<{
|
|
241
|
+
pagination: PaginationInfo;
|
|
242
|
+
scores: ScoreRowData[];
|
|
243
|
+
}>;
|
|
244
|
+
dropTable({ tableName }: {
|
|
245
|
+
tableName: TABLE_NAMES;
|
|
246
|
+
}): Promise<void>;
|
|
209
247
|
}
|
|
210
248
|
export { MSSQLStore }
|
|
211
249
|
export { MSSQLStore as MSSQLStore_alias_1 }
|
|
@@ -5,9 +5,11 @@ import type { MastraMessageV2 } from '@mastra/core/agent';
|
|
|
5
5
|
import { MastraStorage } from '@mastra/core/storage';
|
|
6
6
|
import type { PaginationArgs } from '@mastra/core/storage';
|
|
7
7
|
import type { PaginationInfo } from '@mastra/core/storage';
|
|
8
|
+
import type { ScoreRowData } from '@mastra/core/scores';
|
|
8
9
|
import sql from 'mssql';
|
|
9
10
|
import type { StorageColumn } from '@mastra/core/storage';
|
|
10
11
|
import type { StorageGetMessagesArg } from '@mastra/core/storage';
|
|
12
|
+
import type { StoragePagination } from '@mastra/core/storage';
|
|
11
13
|
import type { StorageResourceType } from '@mastra/core/storage';
|
|
12
14
|
import type { StorageThreadType } from '@mastra/core/memory';
|
|
13
15
|
import type { TABLE_NAMES } from '@mastra/core/storage';
|
|
@@ -52,6 +54,9 @@ declare class MSSQLStore extends MastraStorage {
|
|
|
52
54
|
get supports(): {
|
|
53
55
|
selectByIncludeResourceScope: boolean;
|
|
54
56
|
resourceWorkingMemory: boolean;
|
|
57
|
+
hasColumn: boolean;
|
|
58
|
+
createTable: boolean;
|
|
59
|
+
deleteMessages: boolean;
|
|
55
60
|
};
|
|
56
61
|
private getTableName;
|
|
57
62
|
private getSchemaName;
|
|
@@ -206,6 +211,39 @@ declare class MSSQLStore extends MastraStorage {
|
|
|
206
211
|
getResourceById({ resourceId }: {
|
|
207
212
|
resourceId: string;
|
|
208
213
|
}): Promise<StorageResourceType | null>;
|
|
214
|
+
getScoreById({ id }: {
|
|
215
|
+
id: string;
|
|
216
|
+
}): Promise<ScoreRowData | null>;
|
|
217
|
+
saveScore(_score: Omit<ScoreRowData, 'id' | 'createdAt' | 'updatedAt'>): Promise<{
|
|
218
|
+
score: ScoreRowData;
|
|
219
|
+
}>;
|
|
220
|
+
getScoresByScorerId({ scorerId, pagination: _pagination, entityId, entityType, }: {
|
|
221
|
+
scorerId: string;
|
|
222
|
+
pagination: StoragePagination;
|
|
223
|
+
entityId?: string;
|
|
224
|
+
entityType?: string;
|
|
225
|
+
}): Promise<{
|
|
226
|
+
pagination: PaginationInfo;
|
|
227
|
+
scores: ScoreRowData[];
|
|
228
|
+
}>;
|
|
229
|
+
getScoresByRunId({ runId, pagination: _pagination, }: {
|
|
230
|
+
runId: string;
|
|
231
|
+
pagination: StoragePagination;
|
|
232
|
+
}): Promise<{
|
|
233
|
+
pagination: PaginationInfo;
|
|
234
|
+
scores: ScoreRowData[];
|
|
235
|
+
}>;
|
|
236
|
+
getScoresByEntityId({ entityId, entityType, pagination: _pagination, }: {
|
|
237
|
+
pagination: StoragePagination;
|
|
238
|
+
entityId: string;
|
|
239
|
+
entityType: string;
|
|
240
|
+
}): Promise<{
|
|
241
|
+
pagination: PaginationInfo;
|
|
242
|
+
scores: ScoreRowData[];
|
|
243
|
+
}>;
|
|
244
|
+
dropTable({ tableName }: {
|
|
245
|
+
tableName: TABLE_NAMES;
|
|
246
|
+
}): Promise<void>;
|
|
209
247
|
}
|
|
210
248
|
export { MSSQLStore }
|
|
211
249
|
export { MSSQLStore as MSSQLStore_alias_1 }
|
package/dist/index.cjs
CHANGED
|
@@ -82,7 +82,10 @@ var MSSQLStore = class extends storage.MastraStorage {
|
|
|
82
82
|
get supports() {
|
|
83
83
|
return {
|
|
84
84
|
selectByIncludeResourceScope: true,
|
|
85
|
-
resourceWorkingMemory: true
|
|
85
|
+
resourceWorkingMemory: true,
|
|
86
|
+
hasColumn: true,
|
|
87
|
+
createTable: true,
|
|
88
|
+
deleteMessages: false
|
|
86
89
|
};
|
|
87
90
|
}
|
|
88
91
|
getTableName(indexName) {
|
|
@@ -1747,6 +1750,72 @@ ${columns}
|
|
|
1747
1750
|
throw mastraError;
|
|
1748
1751
|
}
|
|
1749
1752
|
}
|
|
1753
|
+
async getScoreById({ id }) {
|
|
1754
|
+
throw new error.MastraError({
|
|
1755
|
+
id: "STORAGE_MONGODB_STORE_GET_SCORE_BY_ID_FAILED",
|
|
1756
|
+
domain: error.ErrorDomain.STORAGE,
|
|
1757
|
+
category: error.ErrorCategory.THIRD_PARTY,
|
|
1758
|
+
details: { id },
|
|
1759
|
+
text: "getScoreById is not implemented yet in MongoDBStore"
|
|
1760
|
+
});
|
|
1761
|
+
}
|
|
1762
|
+
async saveScore(_score) {
|
|
1763
|
+
throw new error.MastraError({
|
|
1764
|
+
id: "STORAGE_MONGODB_STORE_SAVE_SCORE_FAILED",
|
|
1765
|
+
domain: error.ErrorDomain.STORAGE,
|
|
1766
|
+
category: error.ErrorCategory.THIRD_PARTY,
|
|
1767
|
+
details: {},
|
|
1768
|
+
text: "saveScore is not implemented yet in MongoDBStore"
|
|
1769
|
+
});
|
|
1770
|
+
}
|
|
1771
|
+
async getScoresByScorerId({
|
|
1772
|
+
scorerId,
|
|
1773
|
+
pagination: _pagination,
|
|
1774
|
+
entityId,
|
|
1775
|
+
entityType
|
|
1776
|
+
}) {
|
|
1777
|
+
throw new error.MastraError({
|
|
1778
|
+
id: "STORAGE_MONGODB_STORE_GET_SCORES_BY_SCORER_ID_FAILED",
|
|
1779
|
+
domain: error.ErrorDomain.STORAGE,
|
|
1780
|
+
category: error.ErrorCategory.THIRD_PARTY,
|
|
1781
|
+
details: { scorerId, entityId: entityId || "", entityType: entityType || "" },
|
|
1782
|
+
text: "getScoresByScorerId is not implemented yet in MongoDBStore"
|
|
1783
|
+
});
|
|
1784
|
+
}
|
|
1785
|
+
async getScoresByRunId({
|
|
1786
|
+
runId,
|
|
1787
|
+
pagination: _pagination
|
|
1788
|
+
}) {
|
|
1789
|
+
throw new error.MastraError({
|
|
1790
|
+
id: "STORAGE_MONGODB_STORE_GET_SCORES_BY_RUN_ID_FAILED",
|
|
1791
|
+
domain: error.ErrorDomain.STORAGE,
|
|
1792
|
+
category: error.ErrorCategory.THIRD_PARTY,
|
|
1793
|
+
details: { runId },
|
|
1794
|
+
text: "getScoresByRunId is not implemented yet in MongoDBStore"
|
|
1795
|
+
});
|
|
1796
|
+
}
|
|
1797
|
+
async getScoresByEntityId({
|
|
1798
|
+
entityId,
|
|
1799
|
+
entityType,
|
|
1800
|
+
pagination: _pagination
|
|
1801
|
+
}) {
|
|
1802
|
+
throw new error.MastraError({
|
|
1803
|
+
id: "STORAGE_MONGODB_STORE_GET_SCORES_BY_ENTITY_ID_FAILED",
|
|
1804
|
+
domain: error.ErrorDomain.STORAGE,
|
|
1805
|
+
category: error.ErrorCategory.THIRD_PARTY,
|
|
1806
|
+
details: { entityId, entityType },
|
|
1807
|
+
text: "getScoresByEntityId is not implemented yet in MongoDBStore"
|
|
1808
|
+
});
|
|
1809
|
+
}
|
|
1810
|
+
async dropTable({ tableName }) {
|
|
1811
|
+
throw new error.MastraError({
|
|
1812
|
+
id: "STORAGE_MONGODB_STORE_DROP_TABLE_FAILED",
|
|
1813
|
+
domain: error.ErrorDomain.STORAGE,
|
|
1814
|
+
category: error.ErrorCategory.THIRD_PARTY,
|
|
1815
|
+
details: { tableName },
|
|
1816
|
+
text: "dropTable is not implemented yet in MongoDBStore"
|
|
1817
|
+
});
|
|
1818
|
+
}
|
|
1750
1819
|
};
|
|
1751
1820
|
|
|
1752
1821
|
exports.MSSQLStore = MSSQLStore;
|
package/dist/index.js
CHANGED
|
@@ -76,7 +76,10 @@ var MSSQLStore = class extends MastraStorage {
|
|
|
76
76
|
get supports() {
|
|
77
77
|
return {
|
|
78
78
|
selectByIncludeResourceScope: true,
|
|
79
|
-
resourceWorkingMemory: true
|
|
79
|
+
resourceWorkingMemory: true,
|
|
80
|
+
hasColumn: true,
|
|
81
|
+
createTable: true,
|
|
82
|
+
deleteMessages: false
|
|
80
83
|
};
|
|
81
84
|
}
|
|
82
85
|
getTableName(indexName) {
|
|
@@ -1741,6 +1744,72 @@ ${columns}
|
|
|
1741
1744
|
throw mastraError;
|
|
1742
1745
|
}
|
|
1743
1746
|
}
|
|
1747
|
+
async getScoreById({ id }) {
|
|
1748
|
+
throw new MastraError({
|
|
1749
|
+
id: "STORAGE_MONGODB_STORE_GET_SCORE_BY_ID_FAILED",
|
|
1750
|
+
domain: ErrorDomain.STORAGE,
|
|
1751
|
+
category: ErrorCategory.THIRD_PARTY,
|
|
1752
|
+
details: { id },
|
|
1753
|
+
text: "getScoreById is not implemented yet in MongoDBStore"
|
|
1754
|
+
});
|
|
1755
|
+
}
|
|
1756
|
+
async saveScore(_score) {
|
|
1757
|
+
throw new MastraError({
|
|
1758
|
+
id: "STORAGE_MONGODB_STORE_SAVE_SCORE_FAILED",
|
|
1759
|
+
domain: ErrorDomain.STORAGE,
|
|
1760
|
+
category: ErrorCategory.THIRD_PARTY,
|
|
1761
|
+
details: {},
|
|
1762
|
+
text: "saveScore is not implemented yet in MongoDBStore"
|
|
1763
|
+
});
|
|
1764
|
+
}
|
|
1765
|
+
async getScoresByScorerId({
|
|
1766
|
+
scorerId,
|
|
1767
|
+
pagination: _pagination,
|
|
1768
|
+
entityId,
|
|
1769
|
+
entityType
|
|
1770
|
+
}) {
|
|
1771
|
+
throw new MastraError({
|
|
1772
|
+
id: "STORAGE_MONGODB_STORE_GET_SCORES_BY_SCORER_ID_FAILED",
|
|
1773
|
+
domain: ErrorDomain.STORAGE,
|
|
1774
|
+
category: ErrorCategory.THIRD_PARTY,
|
|
1775
|
+
details: { scorerId, entityId: entityId || "", entityType: entityType || "" },
|
|
1776
|
+
text: "getScoresByScorerId is not implemented yet in MongoDBStore"
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
async getScoresByRunId({
|
|
1780
|
+
runId,
|
|
1781
|
+
pagination: _pagination
|
|
1782
|
+
}) {
|
|
1783
|
+
throw new MastraError({
|
|
1784
|
+
id: "STORAGE_MONGODB_STORE_GET_SCORES_BY_RUN_ID_FAILED",
|
|
1785
|
+
domain: ErrorDomain.STORAGE,
|
|
1786
|
+
category: ErrorCategory.THIRD_PARTY,
|
|
1787
|
+
details: { runId },
|
|
1788
|
+
text: "getScoresByRunId is not implemented yet in MongoDBStore"
|
|
1789
|
+
});
|
|
1790
|
+
}
|
|
1791
|
+
async getScoresByEntityId({
|
|
1792
|
+
entityId,
|
|
1793
|
+
entityType,
|
|
1794
|
+
pagination: _pagination
|
|
1795
|
+
}) {
|
|
1796
|
+
throw new MastraError({
|
|
1797
|
+
id: "STORAGE_MONGODB_STORE_GET_SCORES_BY_ENTITY_ID_FAILED",
|
|
1798
|
+
domain: ErrorDomain.STORAGE,
|
|
1799
|
+
category: ErrorCategory.THIRD_PARTY,
|
|
1800
|
+
details: { entityId, entityType },
|
|
1801
|
+
text: "getScoresByEntityId is not implemented yet in MongoDBStore"
|
|
1802
|
+
});
|
|
1803
|
+
}
|
|
1804
|
+
async dropTable({ tableName }) {
|
|
1805
|
+
throw new MastraError({
|
|
1806
|
+
id: "STORAGE_MONGODB_STORE_DROP_TABLE_FAILED",
|
|
1807
|
+
domain: ErrorDomain.STORAGE,
|
|
1808
|
+
category: ErrorCategory.THIRD_PARTY,
|
|
1809
|
+
details: { tableName },
|
|
1810
|
+
text: "dropTable is not implemented yet in MongoDBStore"
|
|
1811
|
+
});
|
|
1812
|
+
}
|
|
1744
1813
|
};
|
|
1745
1814
|
|
|
1746
1815
|
export { MSSQLStore };
|
package/docker-compose.yaml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mssql",
|
|
3
|
-
"version": "0.0.0-fix-
|
|
3
|
+
"version": "0.0.0-fix-tool-call-history-20250730195323",
|
|
4
4
|
"description": "MSSQL provider for Mastra - db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"mssql": "^10.0.
|
|
23
|
+
"mssql": "^10.0.4"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@microsoft/api-extractor": "^7.52.8",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"tsup": "^8.5.0",
|
|
31
31
|
"typescript": "^5.8.3",
|
|
32
32
|
"vitest": "^3.2.4",
|
|
33
|
-
"@internal/lint": "0.0.0-fix-
|
|
34
|
-
"@internal/storage-test-utils": "0.0.
|
|
35
|
-
"@mastra/core": "0.0.0-fix-
|
|
33
|
+
"@internal/lint": "0.0.0-fix-tool-call-history-20250730195323",
|
|
34
|
+
"@internal/storage-test-utils": "0.0.20",
|
|
35
|
+
"@mastra/core": "0.0.0-fix-tool-call-history-20250730195323"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@mastra/core": "0.0.0-fix-
|
|
38
|
+
"@mastra/core": "0.0.0-fix-tool-call-history-20250730195323"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
|