@mastra/ai-sdk 1.1.5-alpha.0 → 1.2.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.
- package/CHANGELOG.md +58 -0
- package/dist/chat-route.d.ts +7 -2
- package/dist/chat-route.d.ts.map +1 -1
- package/dist/index.cjs +80 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +80 -20
- package/dist/index.js.map +1 -1
- package/dist/middleware.d.ts +2 -0
- package/dist/middleware.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/middleware.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LanguageModelV2, LanguageModelV2Middleware } from './_types/@ai-sdk_provider/dist/index.js';
|
|
2
|
+
import type { LanguageModelV3 } from './_types/@internal_ai-v6/dist/index.js';
|
|
2
3
|
import type { MemoryConfig, SemanticRecall as SemanticRecallConfig } from '@mastra/core/memory';
|
|
3
4
|
import type { InputProcessor, OutputProcessor } from '@mastra/core/processors';
|
|
4
5
|
import type { MemoryStorage } from '@mastra/core/storage';
|
|
@@ -132,6 +133,7 @@ export interface WithMastraOptions {
|
|
|
132
133
|
* ```
|
|
133
134
|
*/
|
|
134
135
|
export declare function withMastra(model: LanguageModelV2, options?: WithMastraOptions): LanguageModelV2;
|
|
136
|
+
export declare function withMastra(model: LanguageModelV3, options?: WithMastraOptions): LanguageModelV3;
|
|
135
137
|
/**
|
|
136
138
|
* Creates AI SDK middleware that runs Mastra processors on input/output.
|
|
137
139
|
* For a simpler API, use `withMastra` instead.
|
package/dist/middleware.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,yBAAyB,EAG1B,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"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AM,GAAG,KAAK,CAAC;IAC9B,iEAAiE;IACjE,cAAc,CAAC,EAAE,+BAA+B,CAAC;IACjD,0DAA0D;IAC1D,aAAa,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAC9C,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,kDAAkD;IAClD,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;CACtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,eAAe,CAAC;AACjG,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,eAAe,CAAC;AAgRjG;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,0BAA0B,GAAG,yBAAyB,CA8WxG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/ai-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Adds custom API routes to be compatible with the AI SDK UI parts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
47
|
"vitest": "4.0.18",
|
|
48
48
|
"zod": "^4.3.6",
|
|
49
|
-
"@internal/ai-sdk-
|
|
50
|
-
"@internal/ai-sdk-
|
|
51
|
-
"@internal/
|
|
52
|
-
"@internal/
|
|
53
|
-
"@internal/
|
|
54
|
-
"@mastra/core": "1.15.0
|
|
49
|
+
"@internal/ai-sdk-v4": "0.0.20",
|
|
50
|
+
"@internal/ai-sdk-v5": "0.0.20",
|
|
51
|
+
"@internal/lint": "0.0.73",
|
|
52
|
+
"@internal/types-builder": "0.0.48",
|
|
53
|
+
"@internal/ai-v6": "0.0.20",
|
|
54
|
+
"@mastra/core": "1.15.0",
|
|
55
55
|
"@mastra/libsql": "1.7.1",
|
|
56
|
-
"@mastra/memory": "1.
|
|
56
|
+
"@mastra/memory": "1.9.0"
|
|
57
57
|
},
|
|
58
58
|
"keywords": [
|
|
59
59
|
"mastra",
|