@mastra/mssql 0.2.3 → 0.3.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.
Files changed (38) hide show
  1. package/.turbo/turbo-build.log +2 -21
  2. package/CHANGELOG.md +28 -1
  3. package/dist/index.cjs +1568 -1104
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.ts +2 -4
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +1568 -1104
  8. package/dist/index.js.map +1 -0
  9. package/dist/storage/domains/legacy-evals/index.d.ts +20 -0
  10. package/dist/storage/domains/legacy-evals/index.d.ts.map +1 -0
  11. package/dist/storage/domains/memory/index.d.ts +90 -0
  12. package/dist/storage/domains/memory/index.d.ts.map +1 -0
  13. package/dist/storage/domains/operations/index.d.ts +51 -0
  14. package/dist/storage/domains/operations/index.d.ts.map +1 -0
  15. package/dist/storage/domains/scores/index.d.ts +46 -0
  16. package/dist/storage/domains/scores/index.d.ts.map +1 -0
  17. package/dist/storage/domains/traces/index.d.ts +37 -0
  18. package/dist/storage/domains/traces/index.d.ts.map +1 -0
  19. package/dist/storage/domains/utils.d.ts +6 -0
  20. package/dist/storage/domains/utils.d.ts.map +1 -0
  21. package/dist/storage/domains/workflows/index.d.ts +36 -0
  22. package/dist/storage/domains/workflows/index.d.ts.map +1 -0
  23. package/dist/{_tsup-dts-rollup.d.cts → storage/index.d.ts} +81 -117
  24. package/dist/storage/index.d.ts.map +1 -0
  25. package/package.json +6 -6
  26. package/src/storage/domains/legacy-evals/index.ts +175 -0
  27. package/src/storage/domains/memory/index.ts +1024 -0
  28. package/src/storage/domains/operations/index.ts +401 -0
  29. package/src/storage/domains/scores/index.ts +315 -0
  30. package/src/storage/domains/traces/index.ts +212 -0
  31. package/src/storage/domains/utils.ts +12 -0
  32. package/src/storage/domains/workflows/index.ts +259 -0
  33. package/src/storage/index.ts +147 -1835
  34. package/tsconfig.build.json +9 -0
  35. package/tsconfig.json +1 -1
  36. package/tsup.config.ts +22 -0
  37. package/dist/_tsup-dts-rollup.d.ts +0 -251
  38. package/dist/index.d.cts +0 -4
@@ -0,0 +1,46 @@
1
+ import type { PaginationInfo, StoragePagination } from '@mastra/core';
2
+ import type { ScoreRowData } from '@mastra/core/scores';
3
+ import { ScoresStorage } from '@mastra/core/storage';
4
+ import type { ConnectionPool } from 'mssql';
5
+ import type { StoreOperationsMSSQL } from '../operations';
6
+ export declare class ScoresMSSQL extends ScoresStorage {
7
+ pool: ConnectionPool;
8
+ private operations;
9
+ private schema?;
10
+ constructor({ pool, operations, schema, }: {
11
+ pool: ConnectionPool;
12
+ operations: StoreOperationsMSSQL;
13
+ schema?: string;
14
+ });
15
+ getScoreById({ id }: {
16
+ id: string;
17
+ }): Promise<ScoreRowData | null>;
18
+ saveScore(score: Omit<ScoreRowData, 'id' | 'createdAt' | 'updatedAt'>): Promise<{
19
+ score: ScoreRowData;
20
+ }>;
21
+ getScoresByScorerId({ scorerId, pagination, }: {
22
+ scorerId: string;
23
+ pagination: StoragePagination;
24
+ entityId?: string;
25
+ entityType?: string;
26
+ }): Promise<{
27
+ pagination: PaginationInfo;
28
+ scores: ScoreRowData[];
29
+ }>;
30
+ getScoresByRunId({ runId, pagination, }: {
31
+ runId: string;
32
+ pagination: StoragePagination;
33
+ }): Promise<{
34
+ pagination: PaginationInfo;
35
+ scores: ScoreRowData[];
36
+ }>;
37
+ getScoresByEntityId({ entityId, entityType, pagination, }: {
38
+ pagination: StoragePagination;
39
+ entityId: string;
40
+ entityType: string;
41
+ }): Promise<{
42
+ pagination: PaginationInfo;
43
+ scores: ScoreRowData[];
44
+ }>;
45
+ }
46
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtE,OAAO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Ac,CAAC;QAAC,MAAM,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;IAsD7D,mBAAmB,CAAC,EACxB,QAAQ,EACR,UAAU,EACV,UAAU,GACX,EAAE;QACD,UAAU,EAAE,iBAAiB,CAAC;QAC9B,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,MAAM,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;CAuDpE"}
@@ -0,0 +1,37 @@
1
+ import type { PaginationInfo, PaginationArgs } from '@mastra/core/storage';
2
+ import { TracesStorage } from '@mastra/core/storage';
3
+ import sql from 'mssql';
4
+ import type { StoreOperationsMSSQL } from '../operations';
5
+ export declare class TracesMSSQL extends TracesStorage {
6
+ pool: sql.ConnectionPool;
7
+ private operations;
8
+ private schema?;
9
+ constructor({ pool, operations, schema, }: {
10
+ pool: sql.ConnectionPool;
11
+ operations: StoreOperationsMSSQL;
12
+ schema?: string;
13
+ });
14
+ /** @deprecated use getTracesPaginated instead*/
15
+ getTraces(args: {
16
+ name?: string;
17
+ scope?: string;
18
+ attributes?: Record<string, string>;
19
+ filters?: Record<string, any>;
20
+ page: number;
21
+ perPage?: number;
22
+ fromDate?: Date;
23
+ toDate?: Date;
24
+ }): Promise<any[]>;
25
+ getTracesPaginated(args: {
26
+ name?: string;
27
+ scope?: string;
28
+ attributes?: Record<string, string>;
29
+ filters?: Record<string, any>;
30
+ } & PaginationArgs): Promise<PaginationInfo & {
31
+ traces: any[];
32
+ }>;
33
+ batchTraceInsert({ records }: {
34
+ records: Record<string, any>[];
35
+ }): Promise<void>;
36
+ }
37
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/traces/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBA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,gBAAgB,CAAC,EAAE,OAAO,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAOvF"}
@@ -0,0 +1,6 @@
1
+ export declare function getSchemaName(schema?: string): string | undefined;
2
+ export declare function getTableName({ indexName, schemaName }: {
3
+ indexName: string;
4
+ schemaName?: string;
5
+ }): string;
6
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/storage/domains/utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,sBAE5C;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,UAKjG"}
@@ -0,0 +1,36 @@
1
+ import type { WorkflowRun, WorkflowRuns, WorkflowRunState } from '@mastra/core';
2
+ import { WorkflowsStorage } from '@mastra/core/storage';
3
+ import sql from 'mssql';
4
+ import type { StoreOperationsMSSQL } from '../operations';
5
+ export declare class WorkflowsMSSQL extends WorkflowsStorage {
6
+ pool: sql.ConnectionPool;
7
+ private operations;
8
+ private schema;
9
+ constructor({ pool, operations, schema, }: {
10
+ pool: sql.ConnectionPool;
11
+ operations: StoreOperationsMSSQL;
12
+ schema: string;
13
+ });
14
+ persistWorkflowSnapshot({ workflowName, runId, snapshot, }: {
15
+ workflowName: string;
16
+ runId: string;
17
+ snapshot: WorkflowRunState;
18
+ }): Promise<void>;
19
+ loadWorkflowSnapshot({ workflowName, runId, }: {
20
+ workflowName: string;
21
+ runId: string;
22
+ }): Promise<WorkflowRunState | null>;
23
+ getWorkflowRunById({ runId, workflowName, }: {
24
+ runId: string;
25
+ workflowName?: string;
26
+ }): Promise<WorkflowRun | null>;
27
+ getWorkflowRuns({ workflowName, fromDate, toDate, limit, offset, resourceId, }?: {
28
+ workflowName?: string;
29
+ fromDate?: Date;
30
+ toDate?: Date;
31
+ limit?: number;
32
+ offset?: number;
33
+ resourceId?: string;
34
+ }): Promise<WorkflowRuns>;
35
+ }
36
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/workflows/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhF,OAAO,EAAE,gBAAgB,EAA2B,MAAM,sBAAsB,CAAC;AACjF,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAsB1D,qBAAa,cAAe,SAAQ,gBAAgB;IAC3C,IAAI,EAAE,GAAG,CAAC,cAAc,CAAC;IAChC,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,MAAM,CAAS;gBAEX,EACV,IAAI,EACJ,UAAU,EACV,MAAM,GACP,EAAE;QACD,IAAI,EAAE,GAAG,CAAC,cAAc,CAAC;QACzB,UAAU,EAAE,oBAAoB,CAAC;QACjC,MAAM,EAAE,MAAM,CAAC;KAChB;IAOK,uBAAuB,CAAC,EAC5B,YAAY,EACZ,KAAK,EACL,QAAQ,GACT,EAAE;QACD,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,gBAAgB,CAAC;KAC5B,GAAG,OAAO,CAAC,IAAI,CAAC;IAmCX,oBAAoB,CAAC,EACzB,YAAY,EACZ,KAAK,GACN,EAAE;QACD,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IA6B9B,kBAAkB,CAAC,EACvB,KAAK,EACL,YAAY,GACb,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IA2CzB,eAAe,CAAC,EACpB,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,KAAK,EACL,MAAM,EACN,UAAU,GACX,GAAE;QACD,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,MAAM,CAAC,EAAE,IAAI,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC,YAAY,CAAC;CAuE/B"}
@@ -1,33 +1,15 @@
1
- import type { EvalRow } from '@mastra/core/storage';
2
- import type { MastraMessageContentV2 } from '@mastra/core/agent';
3
- import type { MastraMessageV1 } from '@mastra/core/memory';
4
- import type { MastraMessageV2 } from '@mastra/core/agent';
5
- import { MastraStorage } from '@mastra/core/storage';
6
- import type { PaginationArgs } from '@mastra/core/storage';
7
- import type { PaginationInfo } from '@mastra/core/storage';
8
- import type { ScoreRowData } from '@mastra/core/scores';
9
- import sql from 'mssql';
10
- import type { StorageColumn } from '@mastra/core/storage';
11
- import type { StorageGetMessagesArg } from '@mastra/core/storage';
12
- import type { StoragePagination } from '@mastra/core/storage';
13
- import type { StorageResourceType } from '@mastra/core/storage';
14
- import type { StorageThreadType } from '@mastra/core/memory';
15
- import type { TABLE_NAMES } from '@mastra/core/storage';
16
- import type { WorkflowRun } from '@mastra/core/storage';
17
- import type { WorkflowRuns } from '@mastra/core/storage';
18
- import type { WorkflowRunState } from '@mastra/core/workflows';
19
-
20
- declare type MastraMessageV2WithTypedContent = Omit<MastraMessageV2, 'content'> & {
1
+ import type { MastraMessageContentV2, MastraMessageV2 } from '@mastra/core/agent';
2
+ export type MastraMessageV2WithTypedContent = Omit<MastraMessageV2, 'content'> & {
21
3
  content: MastraMessageContentV2;
22
4
  };
23
- export { MastraMessageV2WithTypedContent }
24
- export { MastraMessageV2WithTypedContent as MastraMessageV2WithTypedContent_alias_1 }
25
-
26
- declare type MSSQLConfig = MSSQLConfigType;
27
- export { MSSQLConfig }
28
- export { MSSQLConfig as MSSQLConfig_alias_1 }
29
-
30
- declare type MSSQLConfigType = {
5
+ import type { MastraMessageV1, StorageThreadType } from '@mastra/core/memory';
6
+ import type { ScoreRowData } from '@mastra/core/scores';
7
+ import { MastraStorage } from '@mastra/core/storage';
8
+ import type { EvalRow, PaginationInfo, StorageColumn, StorageGetMessagesArg, StorageResourceType, TABLE_NAMES, WorkflowRun, WorkflowRuns, PaginationArgs, StoragePagination, ThreadSortOptions, StorageDomains, StorageGetTracesArg, StorageGetTracesPaginatedArg } from '@mastra/core/storage';
9
+ import type { Trace } from '@mastra/core/telemetry';
10
+ import type { WorkflowRunState } from '@mastra/core/workflows';
11
+ import sql from 'mssql';
12
+ export type MSSQLConfigType = {
31
13
  schemaName?: string;
32
14
  } & ({
33
15
  server: string;
@@ -39,15 +21,12 @@ declare type MSSQLConfigType = {
39
21
  } | {
40
22
  connectionString: string;
41
23
  });
42
- export { MSSQLConfigType }
43
- export { MSSQLConfigType as MSSQLConfigType_alias_1 }
44
-
45
- declare class MSSQLStore extends MastraStorage {
24
+ export type MSSQLConfig = MSSQLConfigType;
25
+ export declare class MSSQLStore extends MastraStorage {
46
26
  pool: sql.ConnectionPool;
47
27
  private schema?;
48
- private setupSchemaPromise;
49
- private schemaSetupComplete;
50
28
  private isConnected;
29
+ stores: StorageDomains;
51
30
  constructor(config: MSSQLConfigType);
52
31
  init(): Promise<void>;
53
32
  private _performInitializationAndStore;
@@ -58,41 +37,28 @@ declare class MSSQLStore extends MastraStorage {
58
37
  createTable: boolean;
59
38
  deleteMessages: boolean;
60
39
  };
61
- private getTableName;
62
- private getSchemaName;
63
- private transformEvalRow;
64
40
  /** @deprecated use getEvals instead */
65
41
  getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
66
- batchInsert({ tableName, records }: {
67
- tableName: TABLE_NAMES;
68
- records: Record<string, any>[];
69
- }): Promise<void>;
70
- /** @deprecated use getTracesPaginated instead*/
71
- getTraces(args: {
72
- name?: string;
73
- scope?: string;
74
- attributes?: Record<string, string>;
75
- filters?: Record<string, any>;
76
- page: number;
77
- perPage?: number;
78
- fromDate?: Date;
79
- toDate?: Date;
80
- }): Promise<any[]>;
81
- getTracesPaginated(args: {
82
- name?: string;
83
- scope?: string;
84
- attributes?: Record<string, string>;
85
- filters?: Record<string, any>;
42
+ getEvals(options?: {
43
+ agentName?: string;
44
+ type?: 'test' | 'live';
86
45
  } & PaginationArgs): Promise<PaginationInfo & {
87
- traces: any[];
46
+ evals: EvalRow[];
88
47
  }>;
89
- private setupSchema;
90
- protected getSqlType(type: StorageColumn['type'], isPrimaryKey?: boolean): string;
48
+ /**
49
+ * @deprecated use getTracesPaginated instead
50
+ */
51
+ getTraces(args: StorageGetTracesArg): Promise<Trace[]>;
52
+ getTracesPaginated(args: StorageGetTracesPaginatedArg): Promise<PaginationInfo & {
53
+ traces: Trace[];
54
+ }>;
55
+ batchTraceInsert({ records }: {
56
+ records: Record<string, any>[];
57
+ }): Promise<void>;
91
58
  createTable({ tableName, schema, }: {
92
59
  tableName: TABLE_NAMES;
93
60
  schema: Record<string, StorageColumn>;
94
61
  }): Promise<void>;
95
- protected getDefaultValue(type: StorageColumn['type']): string;
96
62
  alterTable({ tableName, schema, ifNotExists, }: {
97
63
  tableName: TABLE_NAMES;
98
64
  schema: Record<string, StorageColumn>;
@@ -101,34 +67,43 @@ declare class MSSQLStore extends MastraStorage {
101
67
  clearTable({ tableName }: {
102
68
  tableName: TABLE_NAMES;
103
69
  }): Promise<void>;
70
+ dropTable({ tableName }: {
71
+ tableName: TABLE_NAMES;
72
+ }): Promise<void>;
104
73
  insert({ tableName, record }: {
105
74
  tableName: TABLE_NAMES;
106
75
  record: Record<string, any>;
107
76
  }): Promise<void>;
77
+ batchInsert({ tableName, records }: {
78
+ tableName: TABLE_NAMES;
79
+ records: Record<string, any>[];
80
+ }): Promise<void>;
108
81
  load<R>({ tableName, keys }: {
109
82
  tableName: TABLE_NAMES;
110
83
  keys: Record<string, string>;
111
84
  }): Promise<R | null>;
85
+ /**
86
+ * Memory
87
+ */
112
88
  getThreadById({ threadId }: {
113
89
  threadId: string;
114
90
  }): Promise<StorageThreadType | null>;
91
+ /**
92
+ * @deprecated use getThreadsByResourceIdPaginated instead
93
+ */
94
+ getThreadsByResourceId(args: {
95
+ resourceId: string;
96
+ } & ThreadSortOptions): Promise<StorageThreadType[]>;
115
97
  getThreadsByResourceIdPaginated(args: {
116
98
  resourceId: string;
117
- } & PaginationArgs): Promise<PaginationInfo & {
99
+ page: number;
100
+ perPage: number;
101
+ } & ThreadSortOptions): Promise<PaginationInfo & {
118
102
  threads: StorageThreadType[];
119
103
  }>;
120
104
  saveThread({ thread }: {
121
105
  thread: StorageThreadType;
122
106
  }): Promise<StorageThreadType>;
123
- /**
124
- * @deprecated use getThreadsByResourceIdPaginated instead
125
- */
126
- getThreadsByResourceId(args: {
127
- resourceId: string;
128
- }): Promise<StorageThreadType[]>;
129
- /**
130
- * Updates a thread's title and metadata, merging with existing metadata. Returns the updated thread.
131
- */
132
107
  updateThread({ id, title, metadata, }: {
133
108
  id: string;
134
109
  title: string;
@@ -137,7 +112,6 @@ declare class MSSQLStore extends MastraStorage {
137
112
  deleteThread({ threadId }: {
138
113
  threadId: string;
139
114
  }): Promise<void>;
140
- private _getIncludedMessages;
141
115
  /**
142
116
  * @deprecated use getMessagesPaginated instead
143
117
  */
@@ -152,7 +126,6 @@ declare class MSSQLStore extends MastraStorage {
152
126
  }): Promise<PaginationInfo & {
153
127
  messages: MastraMessageV1[] | MastraMessageV2[];
154
128
  }>;
155
- private _parseAndFormatMessages;
156
129
  saveMessages(args: {
157
130
  messages: MastraMessageV1[];
158
131
  format?: undefined | 'v1';
@@ -161,6 +134,30 @@ declare class MSSQLStore extends MastraStorage {
161
134
  messages: MastraMessageV2[];
162
135
  format: 'v2';
163
136
  }): Promise<MastraMessageV2[]>;
137
+ updateMessages({ messages, }: {
138
+ messages: (Partial<Omit<MastraMessageV2, 'createdAt'>> & {
139
+ id: string;
140
+ content?: {
141
+ metadata?: MastraMessageContentV2['metadata'];
142
+ content?: MastraMessageContentV2['content'];
143
+ };
144
+ })[];
145
+ }): Promise<MastraMessageV2[]>;
146
+ deleteMessages(messageIds: string[]): Promise<void>;
147
+ getResourceById({ resourceId }: {
148
+ resourceId: string;
149
+ }): Promise<StorageResourceType | null>;
150
+ saveResource({ resource }: {
151
+ resource: StorageResourceType;
152
+ }): Promise<StorageResourceType>;
153
+ updateResource({ resourceId, workingMemory, metadata, }: {
154
+ resourceId: string;
155
+ workingMemory?: string;
156
+ metadata?: Record<string, unknown>;
157
+ }): Promise<StorageResourceType>;
158
+ /**
159
+ * Workflows
160
+ */
164
161
  persistWorkflowSnapshot({ workflowName, runId, snapshot, }: {
165
162
  workflowName: string;
166
163
  runId: string;
@@ -170,8 +167,6 @@ declare class MSSQLStore extends MastraStorage {
170
167
  workflowName: string;
171
168
  runId: string;
172
169
  }): Promise<WorkflowRunState | null>;
173
- private hasColumn;
174
- private parseWorkflowRun;
175
170
  getWorkflowRuns({ workflowName, fromDate, toDate, limit, offset, resourceId, }?: {
176
171
  workflowName?: string;
177
172
  fromDate?: Date;
@@ -184,56 +179,31 @@ declare class MSSQLStore extends MastraStorage {
184
179
  runId: string;
185
180
  workflowName?: string;
186
181
  }): Promise<WorkflowRun | null>;
187
- updateMessages({ messages, }: {
188
- messages: (Partial<Omit<MastraMessageV2, 'createdAt'>> & {
189
- id: string;
190
- content?: {
191
- metadata?: MastraMessageContentV2['metadata'];
192
- content?: MastraMessageContentV2['content'];
193
- };
194
- })[];
195
- }): Promise<MastraMessageV2[]>;
196
182
  close(): Promise<void>;
197
- getEvals(options?: {
198
- agentName?: string;
199
- type?: 'test' | 'live';
200
- } & PaginationArgs): Promise<PaginationInfo & {
201
- evals: EvalRow[];
202
- }>;
203
- saveResource({ resource }: {
204
- resource: StorageResourceType;
205
- }): Promise<StorageResourceType>;
206
- updateResource({ resourceId, workingMemory, metadata, }: {
207
- resourceId: string;
208
- workingMemory?: string;
209
- metadata?: Record<string, unknown>;
210
- }): Promise<StorageResourceType>;
211
- getResourceById({ resourceId }: {
212
- resourceId: string;
213
- }): Promise<StorageResourceType | null>;
214
- getScoreById({ id }: {
183
+ /**
184
+ * Scorers
185
+ */
186
+ getScoreById({ id: _id }: {
215
187
  id: string;
216
188
  }): Promise<ScoreRowData | null>;
217
- saveScore(_score: Omit<ScoreRowData, 'id' | 'createdAt' | 'updatedAt'>): Promise<{
218
- score: ScoreRowData;
219
- }>;
220
- getScoresByScorerId({ scorerId, pagination: _pagination, entityId, entityType, }: {
189
+ getScoresByScorerId({ scorerId: _scorerId, pagination: _pagination, }: {
221
190
  scorerId: string;
222
191
  pagination: StoragePagination;
223
- entityId?: string;
224
- entityType?: string;
225
192
  }): Promise<{
226
193
  pagination: PaginationInfo;
227
194
  scores: ScoreRowData[];
228
195
  }>;
229
- getScoresByRunId({ runId, pagination: _pagination, }: {
196
+ saveScore(_score: ScoreRowData): Promise<{
197
+ score: ScoreRowData;
198
+ }>;
199
+ getScoresByRunId({ runId: _runId, pagination: _pagination, }: {
230
200
  runId: string;
231
201
  pagination: StoragePagination;
232
202
  }): Promise<{
233
203
  pagination: PaginationInfo;
234
204
  scores: ScoreRowData[];
235
205
  }>;
236
- getScoresByEntityId({ entityId, entityType, pagination: _pagination, }: {
206
+ getScoresByEntityId({ entityId: _entityId, entityType: _entityType, pagination: _pagination, }: {
237
207
  pagination: StoragePagination;
238
208
  entityId: string;
239
209
  entityType: string;
@@ -241,11 +211,5 @@ declare class MSSQLStore extends MastraStorage {
241
211
  pagination: PaginationInfo;
242
212
  scores: ScoreRowData[];
243
213
  }>;
244
- dropTable({ tableName }: {
245
- tableName: TABLE_NAMES;
246
- }): Promise<void>;
247
214
  }
248
- export { MSSQLStore }
249
- export { MSSQLStore as MSSQLStore_alias_1 }
250
-
251
- export { }
215
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClF,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,sBAAsB,CAAA;CAAE,CAAC;AAErH,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,4BAA4B,EAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,GAAG,MAAM,OAAO,CAAC;AAQxB,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,CACA;IACE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC,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;IAIvE,mBAAmB,CAAC,EACxB,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,WAAW,GACxB,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,iBAAiB,CAAC;KAC/B,GAAG,OAAO,CAAC;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,MAAM,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;IAI7D,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,CAAC;IAIjE,gBAAgB,CAAC,EACrB,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,WAAW,GACxB,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,iBAAiB,CAAC;KAC/B,GAAG,OAAO,CAAC;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,MAAM,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;IAI7D,mBAAmB,CAAC,EACxB,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,WAAW,EACvB,UAAU,EAAE,WAAW,GACxB,EAAE;QACD,UAAU,EAAE,iBAAiB,CAAC;QAC9B,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,MAAM,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;CAOpE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mssql",
3
- "version": "0.2.3",
3
+ "version": "0.3.0-alpha.0",
4
4
  "description": "MSSQL provider for Mastra - db storage capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,16 +30,16 @@
30
30
  "tsup": "^8.5.0",
31
31
  "typescript": "^5.8.3",
32
32
  "vitest": "^3.2.4",
33
- "@internal/storage-test-utils": "0.0.20",
34
- "@mastra/core": "0.12.0",
35
- "@internal/lint": "0.0.24"
33
+ "@internal/lint": "0.0.26",
34
+ "@internal/storage-test-utils": "0.0.22",
35
+ "@mastra/core": "0.13.0-alpha.1"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@mastra/core": ">=0.10.7-0 <0.13.0-0"
39
39
  },
40
40
  "scripts": {
41
- "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
42
- "build:watch": "pnpm build --watch",
41
+ "build": "tsup --silent --config tsup.config.ts",
42
+ "build:watch": "tsup --watch --silent --config tsup.config.ts",
43
43
  "pretest": "docker compose up -d && (for i in $(seq 1 30); do docker compose ps | grep mssql && break || sleep 1; done) && (for i in $(seq 1 30); do docker inspect --format='{{.State.Health.Status}}' $(docker compose ps -q mssql) | grep healthy && break || sleep 2; done)",
44
44
  "test": "vitest run",
45
45
  "pretest:watch": "docker compose up -d",