@mastra/ai-sdk 0.0.0-chore-core-swap-aiv5-ai-package-naming-20251009203931 → 0.0.0-cloud-storage-adapter-20251106204059
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 +213 -5
- package/README.md +65 -1
- package/dist/chat-route.d.ts.map +1 -1
- package/dist/convert-messages.d.ts +10 -0
- package/dist/convert-messages.d.ts.map +1 -0
- package/dist/convert-streams.d.ts +18 -0
- package/dist/convert-streams.d.ts.map +1 -0
- package/dist/helpers.d.ts +13 -4
- package/dist/helpers.d.ts.map +1 -1
- package/dist/index.cjs +642 -89
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +640 -89
- package/dist/index.js.map +1 -1
- package/dist/network-route.d.ts +14 -0
- package/dist/network-route.d.ts.map +1 -0
- package/dist/to-ai-sdk-format.d.ts +15 -32
- package/dist/to-ai-sdk-format.d.ts.map +1 -1
- package/dist/transformers.d.ts +133 -0
- package/dist/transformers.d.ts.map +1 -0
- package/dist/ui.cjs +16 -0
- package/dist/ui.cjs.map +1 -0
- package/dist/ui.d.ts +2 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +13 -0
- package/dist/ui.js.map +1 -0
- package/dist/utils.d.ts +10 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/workflow-route.d.ts +10 -0
- package/dist/workflow-route.d.ts.map +1 -0
- package/package.json +19 -6
package/dist/ui.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/convert-messages.ts"],"names":[],"mappings":";;;AAMO,SAAS,kBAAkB,QAAA,EAA4B;AAC5D,EAAA,OAAO,IAAI,WAAA,EAAY,CAAE,GAAA,CAAI,QAAA,EAAU,QAAQ,CAAA,CAAE,GAAA,CAAI,GAAA,CAAI,IAAA,CAAK,EAAA,EAAG;AACnE;AAKO,SAAS,kBAAkB,QAAA,EAA4B;AAC5D,EAAA,OAAO,IAAI,WAAA,EAAY,CAAE,GAAA,CAAI,QAAA,EAAU,QAAQ,CAAA,CAAE,GAAA,CAAI,GAAA,CAAI,IAAA,CAAK,EAAA,EAAG;AACnE","file":"ui.js","sourcesContent":["import { MessageList } from '@mastra/core/agent/message-list';\nimport type { MessageListInput } from '@mastra/core/agent/message-list';\n\n/**\n * Converts messages to AI SDK V5 UI format\n */\nexport function toAISdkV5Messages(messages: MessageListInput) {\n return new MessageList().add(messages, `memory`).get.all.aiV5.ui();\n}\n\n/**\n * Converts messages to AI SDK V4 UI format\n */\nexport function toAISdkV4Messages(messages: MessageListInput) {\n return new MessageList().add(messages, `memory`).get.all.aiV4.ui();\n}\n"]}
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DataChunkType, NetworkChunkType } from '@mastra/core/stream';
|
|
2
|
+
export declare const isDataChunkType: (chunk: any) => chunk is DataChunkType;
|
|
3
|
+
export declare function safeParseErrorObject(obj: unknown): string;
|
|
4
|
+
export declare const isAgentExecutionDataChunkType: (chunk: any) => chunk is Omit<NetworkChunkType, "payload"> & {
|
|
5
|
+
payload: DataChunkType;
|
|
6
|
+
};
|
|
7
|
+
export declare const isWorkflowExecutionDataChunkType: (chunk: any) => chunk is Omit<NetworkChunkType, "payload"> & {
|
|
8
|
+
payload: DataChunkType;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE3E,eAAO,MAAM,eAAe,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,aAErD,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAgBzD;AAED,eAAO,MAAM,6BAA6B,GACxC,OAAO,GAAG,KACT,KAAK,IAAI,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,aAAa,CAAA;CAWvE,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAC3C,OAAO,GAAG,KACT,KAAK,IAAI,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,EAAE,aAAa,CAAA;CAWvE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { registerApiRoute } from '@mastra/core/server';
|
|
2
|
+
export type WorkflowRouteOptions = {
|
|
3
|
+
path: `${string}:workflowId${string}`;
|
|
4
|
+
workflow?: never;
|
|
5
|
+
} | {
|
|
6
|
+
path: string;
|
|
7
|
+
workflow: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function workflowRoute({ path, workflow, }: WorkflowRouteOptions): ReturnType<typeof registerApiRoute>;
|
|
10
|
+
//# sourceMappingURL=workflow-route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-route.d.ts","sourceRoot":"","sources":["../src/workflow-route.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAYvD,MAAM,MAAM,oBAAoB,GAC5B;IAAE,IAAI,EAAE,GAAG,MAAM,cAAc,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAA;CAAE,GAC3D;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvC,wBAAgB,aAAa,CAAC,EAC5B,IAA0C,EAC1C,QAAQ,GACT,EAAE,oBAAoB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAuF5D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/ai-sdk",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-cloud-storage-adapter-20251106204059",
|
|
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",
|
|
@@ -15,6 +15,16 @@
|
|
|
15
15
|
"default": "./dist/index.cjs"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
+
"./ui": {
|
|
19
|
+
"import": {
|
|
20
|
+
"types": "./dist/ui.d.ts",
|
|
21
|
+
"default": "./dist/ui.js"
|
|
22
|
+
},
|
|
23
|
+
"require": {
|
|
24
|
+
"types": "./dist/ui.d.ts",
|
|
25
|
+
"default": "./dist/ui.cjs"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
18
28
|
"./package.json": "./package.json"
|
|
19
29
|
},
|
|
20
30
|
"files": [
|
|
@@ -23,18 +33,18 @@
|
|
|
23
33
|
],
|
|
24
34
|
"peerDependencies": {
|
|
25
35
|
"zod": "^3.25.0 || ^4.0.0",
|
|
26
|
-
"@mastra/core": "0.0.0-
|
|
36
|
+
"@mastra/core": "0.0.0-cloud-storage-adapter-20251106204059"
|
|
27
37
|
},
|
|
28
38
|
"devDependencies": {
|
|
29
39
|
"@types/json-schema": "^7.0.15",
|
|
30
|
-
"eslint": "^9.
|
|
40
|
+
"eslint": "^9.37.0",
|
|
31
41
|
"tsup": "^8.5.0",
|
|
32
42
|
"typescript": "^5.8.3",
|
|
33
43
|
"vitest": "^3.2.4",
|
|
34
44
|
"zod": "^3.25.76",
|
|
35
|
-
"@internal/lint": "0.0.0-
|
|
36
|
-
"@internal/types-builder": "0.0.0-
|
|
37
|
-
"@mastra/core": "0.0.0-
|
|
45
|
+
"@internal/lint": "0.0.0-cloud-storage-adapter-20251106204059",
|
|
46
|
+
"@internal/types-builder": "0.0.0-cloud-storage-adapter-20251106204059",
|
|
47
|
+
"@mastra/core": "0.0.0-cloud-storage-adapter-20251106204059"
|
|
38
48
|
},
|
|
39
49
|
"keywords": [
|
|
40
50
|
"mastra",
|
|
@@ -54,6 +64,9 @@
|
|
|
54
64
|
"dependencies": {
|
|
55
65
|
"ai": "^5.0.60"
|
|
56
66
|
},
|
|
67
|
+
"engines": {
|
|
68
|
+
"node": ">=22.13.0"
|
|
69
|
+
},
|
|
57
70
|
"scripts": {
|
|
58
71
|
"lint": "eslint .",
|
|
59
72
|
"build": "tsup --config tsup.config.ts",
|