@mastra/ai-sdk 0.0.0-ai-sdk-network-text-delta-20251017172601 → 0.0.0-allow-to-pass-a-mastra-url-instance-20251105224938
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 +85 -5
- 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 +2 -3
- package/dist/helpers.d.ts.map +1 -1
- package/dist/index.cjs +198 -81
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +198 -82
- package/dist/index.js.map +1 -1
- package/dist/network-route.d.ts.map +1 -1
- package/dist/to-ai-sdk-format.d.ts +15 -13
- package/dist/to-ai-sdk-format.d.ts.map +1 -1
- package/dist/transformers.d.ts +50 -43
- package/dist/transformers.d.ts.map +1 -1
- 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.map +1 -1
- package/package.json +18 -5
package/dist/transformers.d.ts
CHANGED
|
@@ -1,12 +1,39 @@
|
|
|
1
1
|
import type { LLMStepResult } from '@mastra/core/agent';
|
|
2
|
-
import type { ChunkType, NetworkChunkType } from '@mastra/core/stream';
|
|
2
|
+
import type { ChunkType, DataChunkType, NetworkChunkType } from '@mastra/core/stream';
|
|
3
3
|
import type { WorkflowRunStatus, WorkflowStepStatus } from '@mastra/core/workflows';
|
|
4
|
+
import type { InferUIMessageChunk, UIMessage } from 'ai';
|
|
4
5
|
import type { ZodType } from 'zod';
|
|
6
|
+
type LanguageModelV2Usage = {
|
|
7
|
+
/**
|
|
8
|
+
The number of input (prompt) tokens used.
|
|
9
|
+
*/
|
|
10
|
+
inputTokens: number | undefined;
|
|
11
|
+
/**
|
|
12
|
+
The number of output (completion) tokens used.
|
|
13
|
+
*/
|
|
14
|
+
outputTokens: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
The total number of tokens as reported by the provider.
|
|
17
|
+
This number might be different from the sum of `inputTokens` and `outputTokens`
|
|
18
|
+
and e.g. include reasoning tokens or other overhead.
|
|
19
|
+
*/
|
|
20
|
+
totalTokens: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
The number of reasoning tokens used.
|
|
23
|
+
*/
|
|
24
|
+
reasoningTokens?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
The number of cached input tokens.
|
|
27
|
+
*/
|
|
28
|
+
cachedInputTokens?: number | undefined;
|
|
29
|
+
};
|
|
5
30
|
type StepResult = {
|
|
6
31
|
name: string;
|
|
7
32
|
status: WorkflowStepStatus;
|
|
8
33
|
input: Record<string, unknown> | null;
|
|
9
34
|
output: unknown | null;
|
|
35
|
+
suspendPayload: Record<string, unknown> | null;
|
|
36
|
+
resumePayload: Record<string, unknown> | null;
|
|
10
37
|
};
|
|
11
38
|
export type WorkflowDataPart = {
|
|
12
39
|
type: 'data-workflow' | 'data-tool-workflow';
|
|
@@ -31,6 +58,7 @@ export type NetworkDataPart = {
|
|
|
31
58
|
name: string;
|
|
32
59
|
status: 'running' | 'finished';
|
|
33
60
|
steps: StepResult[];
|
|
61
|
+
usage: LanguageModelV2Usage | null;
|
|
34
62
|
output: unknown | null;
|
|
35
63
|
};
|
|
36
64
|
};
|
|
@@ -43,18 +71,11 @@ export declare function WorkflowStreamToAISDKTransformer(): import("stream/web")
|
|
|
43
71
|
data?: string;
|
|
44
72
|
type?: "start" | "finish";
|
|
45
73
|
}>;
|
|
46
|
-
export declare function AgentNetworkToAISDKTransformer(): import("stream/web").TransformStream<NetworkChunkType, NetworkDataPart | {
|
|
74
|
+
export declare function AgentNetworkToAISDKTransformer(): import("stream/web").TransformStream<NetworkChunkType, DataChunkType | NetworkDataPart | {
|
|
47
75
|
data?: string;
|
|
48
76
|
type?: "start" | "finish";
|
|
49
|
-
} |
|
|
50
|
-
|
|
51
|
-
id: string;
|
|
52
|
-
delta: string;
|
|
53
|
-
} | {
|
|
54
|
-
type: "text-start";
|
|
55
|
-
id: string;
|
|
56
|
-
}>;
|
|
57
|
-
export declare function AgentStreamToAISDKTransformer<TOutput extends ZodType<any>>(): import("stream/web").TransformStream<ChunkType<TOutput>, object>;
|
|
77
|
+
} | InferUIMessageChunk<UIMessage<unknown, import("ai").UIDataTypes, import("ai").UITools>>>;
|
|
78
|
+
export declare function AgentStreamToAISDKTransformer<TOutput extends ZodType<any>>(lastMessageId?: string): import("stream/web").TransformStream<ChunkType<TOutput>, object>;
|
|
58
79
|
export declare function transformAgent<TOutput extends ZodType<any>>(payload: ChunkType<TOutput>, bufferedSteps: Map<string, any>): {
|
|
59
80
|
type: "data-tool-agent";
|
|
60
81
|
id: string;
|
|
@@ -63,7 +84,12 @@ export declare function transformAgent<TOutput extends ZodType<any>>(payload: Ch
|
|
|
63
84
|
export declare function transformWorkflow<TOutput extends ZodType<any>>(payload: ChunkType<TOutput>, bufferedWorkflows: Map<string, {
|
|
64
85
|
name: string;
|
|
65
86
|
steps: Record<string, StepResult>;
|
|
66
|
-
}>, isNested?: boolean): {
|
|
87
|
+
}>, isNested?: boolean): (DataChunkType & {
|
|
88
|
+
from: never;
|
|
89
|
+
runId: never;
|
|
90
|
+
metadata?: Record<string, any> | undefined;
|
|
91
|
+
payload: never;
|
|
92
|
+
}) | {
|
|
67
93
|
readonly type: "data-workflow" | "data-tool-workflow";
|
|
68
94
|
readonly id: string;
|
|
69
95
|
readonly data: {
|
|
@@ -72,6 +98,15 @@ export declare function transformWorkflow<TOutput extends ZodType<any>>(payload:
|
|
|
72
98
|
readonly steps: Record<string, StepResult>;
|
|
73
99
|
readonly output: null;
|
|
74
100
|
};
|
|
101
|
+
} | {
|
|
102
|
+
readonly type: "data-workflow" | "data-tool-workflow";
|
|
103
|
+
readonly id: string;
|
|
104
|
+
readonly data: {
|
|
105
|
+
readonly name: string;
|
|
106
|
+
readonly status: "suspended";
|
|
107
|
+
readonly steps: Record<string, StepResult>;
|
|
108
|
+
readonly output: null;
|
|
109
|
+
};
|
|
75
110
|
} | {
|
|
76
111
|
readonly type: "data-workflow" | "data-tool-workflow";
|
|
77
112
|
readonly id: string;
|
|
@@ -91,36 +126,8 @@ export declare function transformWorkflow<TOutput extends ZodType<any>>(payload:
|
|
|
91
126
|
export declare function transformNetwork(payload: NetworkChunkType, bufferedNetworks: Map<string, {
|
|
92
127
|
name: string;
|
|
93
128
|
steps: StepResult[];
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
readonly delta?: undefined;
|
|
98
|
-
readonly data?: undefined;
|
|
99
|
-
} | {
|
|
100
|
-
readonly type: "text-delta";
|
|
101
|
-
readonly id: string;
|
|
102
|
-
readonly delta: string;
|
|
103
|
-
readonly data?: undefined;
|
|
104
|
-
} | {
|
|
105
|
-
readonly type: "data-network" | "data-tool-network";
|
|
106
|
-
readonly id: string;
|
|
107
|
-
readonly data: {
|
|
108
|
-
readonly name: string;
|
|
109
|
-
readonly status: "running";
|
|
110
|
-
readonly steps: StepResult[];
|
|
111
|
-
readonly output: {} | null;
|
|
112
|
-
};
|
|
113
|
-
readonly delta?: undefined;
|
|
114
|
-
} | {
|
|
115
|
-
readonly type: "data-network" | "data-tool-network";
|
|
116
|
-
readonly id: string;
|
|
117
|
-
readonly data: {
|
|
118
|
-
readonly name: string;
|
|
119
|
-
readonly status: "finished";
|
|
120
|
-
readonly steps: StepResult[];
|
|
121
|
-
readonly output: string;
|
|
122
|
-
};
|
|
123
|
-
readonly delta?: undefined;
|
|
124
|
-
} | null;
|
|
129
|
+
usage: LanguageModelV2Usage | null;
|
|
130
|
+
output: unknown | null;
|
|
131
|
+
}>, isNested?: boolean): InferUIMessageChunk<UIMessage> | NetworkDataPart | DataChunkType | null;
|
|
125
132
|
export {};
|
|
126
133
|
//# sourceMappingURL=transformers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformers.d.ts","sourceRoot":"","sources":["../src/transformers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"transformers.d.ts","sourceRoot":"","sources":["../src/transformers.ts"],"names":[],"mappings":"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"}
|
package/dist/ui.cjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var messageList = require('@mastra/core/agent/message-list');
|
|
4
|
+
|
|
5
|
+
// src/convert-messages.ts
|
|
6
|
+
function toAISdkV5Messages(messages) {
|
|
7
|
+
return new messageList.MessageList().add(messages, `memory`).get.all.aiV5.ui();
|
|
8
|
+
}
|
|
9
|
+
function toAISdkV4Messages(messages) {
|
|
10
|
+
return new messageList.MessageList().add(messages, `memory`).get.all.aiV4.ui();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
exports.toAISdkV4Messages = toAISdkV4Messages;
|
|
14
|
+
exports.toAISdkV5Messages = toAISdkV5Messages;
|
|
15
|
+
//# sourceMappingURL=ui.cjs.map
|
|
16
|
+
//# sourceMappingURL=ui.cjs.map
|
package/dist/ui.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/convert-messages.ts"],"names":["MessageList"],"mappings":";;;;;AAMO,SAAS,kBAAkB,QAAA,EAA4B;AAC5D,EAAA,OAAO,IAAIA,uBAAA,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,IAAIA,uBAAA,EAAY,CAAE,GAAA,CAAI,QAAA,EAAU,QAAQ,CAAA,CAAE,GAAA,CAAI,GAAA,CAAI,IAAA,CAAK,EAAA,EAAG;AACnE","file":"ui.cjs","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/ui.d.ts
ADDED
package/dist/ui.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/ui.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MessageList } from '@mastra/core/agent/message-list';
|
|
2
|
+
|
|
3
|
+
// src/convert-messages.ts
|
|
4
|
+
function toAISdkV5Messages(messages) {
|
|
5
|
+
return new MessageList().add(messages, `memory`).get.all.aiV5.ui();
|
|
6
|
+
}
|
|
7
|
+
function toAISdkV4Messages(messages) {
|
|
8
|
+
return new MessageList().add(messages, `memory`).get.all.aiV4.ui();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { toAISdkV4Messages, toAISdkV5Messages };
|
|
12
|
+
//# sourceMappingURL=ui.js.map
|
|
13
|
+
//# sourceMappingURL=ui.js.map
|
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"}
|
|
@@ -1 +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;
|
|
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-allow-to-pass-a-mastra-url-instance-20251105224938",
|
|
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,7 +33,7 @@
|
|
|
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-allow-to-pass-a-mastra-url-instance-20251105224938"
|
|
27
37
|
},
|
|
28
38
|
"devDependencies": {
|
|
29
39
|
"@types/json-schema": "^7.0.15",
|
|
@@ -32,9 +42,9 @@
|
|
|
32
42
|
"typescript": "^5.8.3",
|
|
33
43
|
"vitest": "^3.2.4",
|
|
34
44
|
"zod": "^3.25.76",
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@internal/
|
|
45
|
+
"@mastra/core": "0.0.0-allow-to-pass-a-mastra-url-instance-20251105224938",
|
|
46
|
+
"@internal/types-builder": "0.0.0-allow-to-pass-a-mastra-url-instance-20251105224938",
|
|
47
|
+
"@internal/lint": "0.0.0-allow-to-pass-a-mastra-url-instance-20251105224938"
|
|
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",
|