@mastra/mssql 0.0.0-fix-backport-setserver-20251201151948 → 0.0.0-fix-request-context-as-query-key-20251209093005
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 +588 -53
- package/README.md +28 -20
- package/dist/index.cjs +470 -776
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +469 -775
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/memory/index.d.ts +14 -43
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/observability/index.d.ts +16 -16
- package/dist/storage/domains/observability/index.d.ts.map +1 -1
- package/dist/storage/domains/operations/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +6 -6
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/domains/utils.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +5 -11
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +58 -96
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +12 -14
- package/dist/storage/domains/legacy-evals/index.d.ts +0 -20
- package/dist/storage/domains/legacy-evals/index.d.ts.map +0 -1
- package/dist/storage/domains/traces/index.d.ts +0 -37
- package/dist/storage/domains/traces/index.d.ts.map +0 -1
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-request-context-as-query-key-20251209093005",
|
|
4
4
|
"description": "MSSQL provider for Mastra - db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,18 +25,20 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@microsoft/api-extractor": "^7.52.8",
|
|
27
27
|
"@types/mssql": "^9.1.8",
|
|
28
|
-
"@types/node": "
|
|
28
|
+
"@types/node": "22.13.17",
|
|
29
|
+
"@vitest/coverage-v8": "4.0.12",
|
|
30
|
+
"@vitest/ui": "4.0.12",
|
|
29
31
|
"eslint": "^9.37.0",
|
|
30
32
|
"tsup": "^8.5.0",
|
|
31
33
|
"typescript": "^5.8.3",
|
|
32
|
-
"vitest": "
|
|
33
|
-
"@internal/lint": "0.0.0-fix-
|
|
34
|
-
"@internal/storage-test-utils": "0.0.
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
34
|
+
"vitest": "4.0.12",
|
|
35
|
+
"@internal/lint": "0.0.0-fix-request-context-as-query-key-20251209093005",
|
|
36
|
+
"@internal/storage-test-utils": "0.0.49",
|
|
37
|
+
"@mastra/core": "0.0.0-fix-request-context-as-query-key-20251209093005",
|
|
38
|
+
"@internal/types-builder": "0.0.0-fix-request-context-as-query-key-20251209093005"
|
|
37
39
|
},
|
|
38
40
|
"peerDependencies": {
|
|
39
|
-
"@mastra/core": "0.0.0-fix-
|
|
41
|
+
"@mastra/core": "0.0.0-fix-request-context-as-query-key-20251209093005"
|
|
40
42
|
},
|
|
41
43
|
"files": [
|
|
42
44
|
"dist",
|
|
@@ -51,12 +53,8 @@
|
|
|
51
53
|
"bugs": {
|
|
52
54
|
"url": "https://github.com/mastra-ai/mastra/issues"
|
|
53
55
|
},
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"publish-branch": [
|
|
57
|
-
"main",
|
|
58
|
-
"0.x"
|
|
59
|
-
]
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": ">=22.13.0"
|
|
60
58
|
},
|
|
61
59
|
"scripts": {
|
|
62
60
|
"build": "tsup --silent --config tsup.config.ts",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { LegacyEvalsStorage } from '@mastra/core/storage';
|
|
2
|
-
import type { PaginationArgs, PaginationInfo, EvalRow } from '@mastra/core/storage';
|
|
3
|
-
import sql from 'mssql';
|
|
4
|
-
export declare class LegacyEvalsMSSQL extends LegacyEvalsStorage {
|
|
5
|
-
private pool;
|
|
6
|
-
private schema;
|
|
7
|
-
constructor({ pool, schema }: {
|
|
8
|
-
pool: sql.ConnectionPool;
|
|
9
|
-
schema: string;
|
|
10
|
-
});
|
|
11
|
-
/** @deprecated use getEvals instead */
|
|
12
|
-
getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
|
|
13
|
-
getEvals(options?: {
|
|
14
|
-
agentName?: string;
|
|
15
|
-
type?: 'test' | 'live';
|
|
16
|
-
} & PaginationArgs): Promise<PaginationInfo & {
|
|
17
|
-
evals: EvalRow[];
|
|
18
|
-
}>;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/legacy-evals/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAe,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,GAAG,MAAM,OAAO,CAAC;AA8BxB,qBAAa,gBAAiB,SAAQ,kBAAkB;IACtD,OAAO,CAAC,IAAI,CAAqB;IACjC,OAAO,CAAC,MAAM,CAAS;gBACX,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAAE,IAAI,EAAE,GAAG,CAAC,cAAc,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;IAM1E,uCAAuC;IACjC,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IA0BlF,QAAQ,CACZ,OAAO,GAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACxB,GAAG,cAAmB,GACtB,OAAO,CAAC,cAAc,GAAG;QAAE,KAAK,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC;CAmGlD"}
|
|
@@ -1,37 +0,0 @@
|
|
|
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/index.js';
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/traces/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,cAA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